(()=>{var EWe=Object.create;var eA=Object.defineProperty;var MWe=Object.getOwnPropertyDescriptor;var BWe=Object.getOwnPropertyNames;var NWe=Object.getPrototypeOf,GWe=Object.prototype.hasOwnProperty;var FWe=(e,t,n)=>t in e?eA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var mp=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var Lt=(e,t)=>()=>(e&&(t=e(e=0)),t);var ne=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),$h=(e,t)=>{for(var n in t)eA(e,n,{get:t[n],enumerable:!0})},IWe=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of BWe(t))!GWe.call(e,i)&&i!==n&&eA(e,i,{get:()=>t[i],enumerable:!(r=MWe(t,i))||r.enumerable});return e};var ie=(e,t,n)=>(n=e!=null?EWe(NWe(e)):{},IWe(t||!e||!e.__esModule?eA(n,"default",{value:e,enumerable:!0}):n,e));var Kt=(e,t,n)=>(FWe(e,typeof t!="symbol"?t+"":t,n),n);var o1,mA=Lt(()=>{o1={logger:self.console,WebSocket:self.WebSocket}});var Ki,A6=Lt(()=>{mA();Ki={log(...e){this.enabled&&(e.push(Date.now()),o1.logger.log("[ActionCable]",...e))}}});var s_,gA,a_,vA,OD=Lt(()=>{A6();s_=()=>new Date().getTime(),gA=e=>(s_()-e)/1e3,a_=class{constructor(t){this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=t,this.reconnectAttempts=0}start(){this.isRunning()||(this.startedAt=s_(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),Ki.log(`ConnectionMonitor started. stale threshold = ${this.constructor.staleThreshold} s`))}stop(){this.isRunning()&&(this.stoppedAt=s_(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),Ki.log("ConnectionMonitor stopped"))}isRunning(){return this.startedAt&&!this.stoppedAt}recordPing(){this.pingedAt=s_()}recordConnect(){this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,Ki.log("ConnectionMonitor recorded connect")}recordDisconnect(){this.disconnectedAt=s_(),Ki.log("ConnectionMonitor recorded disconnect")}startPolling(){this.stopPolling(),this.poll()}stopPolling(){clearTimeout(this.pollTimeout)}poll(){this.pollTimeout=setTimeout(()=>{this.reconnectIfStale(),this.poll()},this.getPollInterval())}getPollInterval(){let{staleThreshold:t,reconnectionBackoffRate:n}=this.constructor,r=Math.pow(1+n,Math.min(this.reconnectAttempts,10)),o=(this.reconnectAttempts===0?1:n)*Math.random();return t*1e3*r*(1+o)}reconnectIfStale(){this.connectionIsStale()&&(Ki.log(`ConnectionMonitor detected stale connection. reconnectAttempts = ${this.reconnectAttempts}, time stale = ${gA(this.refreshedAt)} s, stale threshold = ${this.constructor.staleThreshold} s`),this.reconnectAttempts++,this.disconnectedRecently()?Ki.log(`ConnectionMonitor skipping reopening recent disconnect. time disconnected = ${gA(this.disconnectedAt)} s`):(Ki.log("ConnectionMonitor reopening"),this.connection.reopen()))}get refreshedAt(){return this.pingedAt?this.pingedAt:this.startedAt}connectionIsStale(){return gA(this.refreshedAt)>this.constructor.staleThreshold}disconnectedRecently(){return this.disconnectedAt&&gA(this.disconnectedAt)<this.constructor.staleThreshold}visibilityDidChange(){document.visibilityState==="visible"&&setTimeout(()=>{(this.connectionIsStale()||!this.connection.isOpen())&&(Ki.log(`ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = ${document.visibilityState}`),this.connection.reopen())},200)}};a_.staleThreshold=6;a_.reconnectionBackoffRate=.15;vA=a_});var l_,ED=Lt(()=>{l_={message_types:{welcome:"welcome",disconnect:"disconnect",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},disconnect_reasons:{unauthorized:"unauthorized",invalid_request:"invalid_request",server_restart:"server_restart"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]}});var u_,yA,RXe,Vre,c_,xA,MD=Lt(()=>{mA();OD();ED();A6();({message_types:u_,protocols:yA}=l_),RXe=yA.slice(0,yA.length-1),Vre=[].indexOf,c_=class{constructor(t){this.open=this.open.bind(this),this.consumer=t,this.subscriptions=this.consumer.subscriptions,this.monitor=new vA(this),this.disconnected=!0}send(t){return this.isOpen()?(this.webSocket.send(JSON.stringify(t)),!0):!1}open(){return this.isActive()?(Ki.log(`Attempted to open WebSocket, but existing socket is ${this.getState()}`),!1):(Ki.log(`Opening WebSocket, current state is ${this.getState()}, subprotocols: ${yA}`),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new o1.WebSocket(this.consumer.url,yA),this.installEventHandlers(),this.monitor.start(),!0)}close({allowReconnect:t}={allowReconnect:!0}){if(t||this.monitor.stop(),this.isOpen())return this.webSocket.close()}reopen(){if(Ki.log(`Reopening WebSocket, current state is ${this.getState()}`),this.isActive())try{return this.close()}catch(t){Ki.log("Failed to reopen WebSocket",t)}finally{Ki.log(`Reopening WebSocket in ${this.constructor.reopenDelay}ms`),setTimeout(this.open,this.constructor.reopenDelay)}else return this.open()}getProtocol(){if(this.webSocket)return this.webSocket.protocol}isOpen(){return this.isState("open")}isActive(){return this.isState("open","connecting")}isProtocolSupported(){return Vre.call(RXe,this.getProtocol())>=0}isState(...t){return Vre.call(t,this.getState())>=0}getState(){if(this.webSocket){for(let t in o1.WebSocket)if(o1.WebSocket[t]===this.webSocket.readyState)return t.toLowerCase()}return null}installEventHandlers(){for(let t in this.events){let n=this.events[t].bind(this);this.webSocket[`on${t}`]=n}}uninstallEventHandlers(){for(let t in this.events)this.webSocket[`on${t}`]=function(){}}};c_.reopenDelay=500;c_.prototype.events={message(e){if(!this.isProtocolSupported())return;let{identifier:t,message:n,reason:r,reconnect:i,type:o}=JSON.parse(e.data);switch(o){case u_.welcome:return this.monitor.recordConnect(),this.subscriptions.reload();case u_.disconnect:return Ki.log(`Disconnecting. Reason: ${r}`),this.close({allowReconnect:i});case u_.ping:return this.monitor.recordPing();case u_.confirmation:return this.subscriptions.confirmSubscription(t),this.subscriptions.notify(t,"connected");case u_.rejection:return this.subscriptions.reject(t);default:return this.subscriptions.notify(t,"received",n)}},open(){if(Ki.log(`WebSocket onopen event, using '${this.getProtocol()}' subprotocol`),this.disconnected=!1,!this.isProtocolSupported())return Ki.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close(e){if(Ki.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error(){Ki.log("WebSocket onerror event")}};xA=c_});var LXe,Yv,BD=Lt(()=>{LXe=function(e,t){if(t!=null)for(let n in t){let r=t[n];e[n]=r}return e},Yv=class{constructor(t,n={},r){this.consumer=t,this.identifier=JSON.stringify(n),LXe(this,r)}perform(t,n={}){return n.action=t,this.send(n)}send(t){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(t)})}unsubscribe(){return this.consumer.subscriptions.remove(this)}}});var ND,_A,GD=Lt(()=>{A6();ND=class{constructor(t){this.subscriptions=t,this.pendingSubscriptions=[]}guarantee(t){this.pendingSubscriptions.indexOf(t)==-1?(Ki.log(`SubscriptionGuarantor guaranteeing ${t.identifier}`),this.pendingSubscriptions.push(t)):Ki.log(`SubscriptionGuarantor already guaranteeing ${t.identifier}`),this.startGuaranteeing()}forget(t){Ki.log(`SubscriptionGuarantor forgetting ${t.identifier}`),this.pendingSubscriptions=this.pendingSubscriptions.filter(n=>n!==t)}startGuaranteeing(){this.stopGuaranteeing(),this.retrySubscribing()}stopGuaranteeing(){clearTimeout(this.retryTimeout)}retrySubscribing(){this.retryTimeout=setTimeout(()=>{this.subscriptions&&typeof this.subscriptions.subscribe=="function"&&this.pendingSubscriptions.map(t=>{Ki.log(`SubscriptionGuarantor resubscribing ${t.identifier}`),this.subscriptions.subscribe(t)})},500)}},_A=ND});var Zv,FD=Lt(()=>{BD();GD();A6();Zv=class{constructor(t){this.consumer=t,this.guarantor=new _A(this),this.subscriptions=[]}create(t,n){let r=t,i=typeof r=="object"?r:{channel:r},o=new Yv(this.consumer,i,n);return this.add(o)}add(t){return this.subscriptions.push(t),this.consumer.ensureActiveConnection(),this.notify(t,"initialized"),this.subscribe(t),t}remove(t){return this.forget(t),this.findAll(t.identifier).length||this.sendCommand(t,"unsubscribe"),t}reject(t){return this.findAll(t).map(n=>(this.forget(n),this.notify(n,"rejected"),n))}forget(t){return this.guarantor.forget(t),this.subscriptions=this.subscriptions.filter(n=>n!==t),t}findAll(t){return this.subscriptions.filter(n=>n.identifier===t)}reload(){return this.subscriptions.map(t=>this.subscribe(t))}notifyAll(t,...n){return this.subscriptions.map(r=>this.notify(r,t,...n))}notify(t,n,...r){let i;return typeof t=="string"?i=this.findAll(t):i=[t],i.map(o=>typeof o[n]=="function"?o[n](...r):void 0)}subscribe(t){this.sendCommand(t,"subscribe")&&this.guarantor.guarantee(t)}confirmSubscription(t){Ki.log(`Subscription confirmed ${t}`),this.findAll(t).map(n=>this.guarantor.forget(n))}sendCommand(t,n){let{identifier:r}=t;return this.consumer.send({command:n,identifier:r})}}});function ID(e){if(typeof e=="function"&&(e=e()),e&&!/^wss?:/i.test(e)){let t=document.createElement("a");return t.href=e,t.href=t.href,t.protocol=t.protocol.replace("http","ws"),t.href}else return e}var C6,Jre=Lt(()=>{MD();FD();C6=class{constructor(t){this._url=t,this.subscriptions=new Zv(this),this.connection=new xA(this)}get url(){return ID(this._url)}send(t){return this.connection.send(t)}connect(){return this.connection.open()}disconnect(){return this.connection.close({allowReconnect:!1})}ensureActiveConnection(){if(!this.connection.isActive())return this.connection.open()}}});var Hre={};$h(Hre,{Connection:()=>xA,ConnectionMonitor:()=>vA,Consumer:()=>C6,INTERNAL:()=>l_,Subscription:()=>Yv,SubscriptionGuarantor:()=>_A,Subscriptions:()=>Zv,adapters:()=>o1,createConsumer:()=>VXe,createWebSocketURL:()=>ID,getConfig:()=>jre,logger:()=>Ki});function VXe(e=jre("url")||l_.default_mount_path){return new C6(e)}function jre(e){let t=document.head.querySelector(`meta[name='action-cable-${e}']`);if(t)return t.getAttribute("content")}var Wre=Lt(()=>{MD();OD();Jre();ED();BD();FD();GD();mA();A6()});var hie=ne(Yr=>{"use strict";var g_=Symbol.for("react.element"),Dqe=Symbol.for("react.portal"),Rqe=Symbol.for("react.fragment"),Lqe=Symbol.for("react.strict_mode"),Vqe=Symbol.for("react.profiler"),Jqe=Symbol.for("react.provider"),jqe=Symbol.for("react.context"),Hqe=Symbol.for("react.forward_ref"),Wqe=Symbol.for("react.suspense"),Xqe=Symbol.for("react.memo"),qqe=Symbol.for("react.lazy"),iie=Symbol.iterator;function $qe(e){return e===null||typeof e!="object"?null:(e=iie&&e[iie]||e["@@iterator"],typeof e=="function"?e:null)}var aie={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},lie=Object.assign,uie={};function S6(e,t,n){this.props=e,this.context=t,this.refs=uie,this.updater=n||aie}S6.prototype.isReactComponent={};S6.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};S6.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function cie(){}cie.prototype=S6.prototype;function lR(e,t,n){this.props=e,this.context=t,this.refs=uie,this.updater=n||aie}var uR=lR.prototype=new cie;uR.constructor=lR;lie(uR,S6.prototype);uR.isPureReactComponent=!0;var oie=Array.isArray,die=Object.prototype.hasOwnProperty,cR={current:null},pie={key:!0,ref:!0,__self:!0,__source:!0};function fie(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)die.call(t,r)&&!pie.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:g_,type:e,key:o,ref:s,props:i,_owner:cR.current}}function Kqe(e,t){return{$$typeof:g_,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function dR(e){return typeof e=="object"&&e!==null&&e.$$typeof===g_}function Yqe(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var sie=/\/+/g;function aR(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Yqe(""+e.key):t.toString(36)}function OA(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case g_:case Dqe:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+aR(s,0):r,oie(i)?(n="",e!=null&&(n=e.replace(sie,"$&/")+"/"),OA(i,t,n,"",function(u){return u})):i!=null&&(dR(i)&&(i=Kqe(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(sie,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",oie(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+aR(o,a);s+=OA(o,t,n,l,i)}else if(l=$qe(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+aR(o,a++),s+=OA(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function SA(e,t,n){if(e==null)return e;var r=[],i=0;return OA(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Zqe(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Xl={current:null},EA={transition:null},Uqe={ReactCurrentDispatcher:Xl,ReactCurrentBatchConfig:EA,ReactCurrentOwner:cR};Yr.Children={map:SA,forEach:function(e,t,n){SA(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return SA(e,function(){t++}),t},toArray:function(e){return SA(e,function(t){return t})||[]},only:function(e){if(!dR(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Yr.Component=S6;Yr.Fragment=Rqe;Yr.Profiler=Vqe;Yr.PureComponent=lR;Yr.StrictMode=Lqe;Yr.Suspense=Wqe;Yr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Uqe;Yr.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=lie({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=cR.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)die.call(t,l)&&!pie.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:g_,type:e.type,key:i,ref:o,props:r,_owner:s}};Yr.createContext=function(e){return e={$$typeof:jqe,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Jqe,_context:e},e.Consumer=e};Yr.createElement=fie;Yr.createFactory=function(e){var t=fie.bind(null,e);return t.type=e,t};Yr.createRef=function(){return{current:null}};Yr.forwardRef=function(e){return{$$typeof:Hqe,render:e}};Yr.isValidElement=dR;Yr.lazy=function(e){return{$$typeof:qqe,_payload:{_status:-1,_result:e},_init:Zqe}};Yr.memo=function(e,t){return{$$typeof:Xqe,type:e,compare:t===void 0?null:t}};Yr.startTransition=function(e){var t=EA.transition;EA.transition={};try{e()}finally{EA.transition=t}};Yr.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Yr.useCallback=function(e,t){return Xl.current.useCallback(e,t)};Yr.useContext=function(e){return Xl.current.useContext(e)};Yr.useDebugValue=function(){};Yr.useDeferredValue=function(e){return Xl.current.useDeferredValue(e)};Yr.useEffect=function(e,t){return Xl.current.useEffect(e,t)};Yr.useId=function(){return Xl.current.useId()};Yr.useImperativeHandle=function(e,t,n){return Xl.current.useImperativeHandle(e,t,n)};Yr.useInsertionEffect=function(e,t){return Xl.current.useInsertionEffect(e,t)};Yr.useLayoutEffect=function(e,t){return Xl.current.useLayoutEffect(e,t)};Yr.useMemo=function(e,t){return Xl.current.useMemo(e,t)};Yr.useReducer=function(e,t,n){return Xl.current.useReducer(e,t,n)};Yr.useRef=function(e){return Xl.current.useRef(e)};Yr.useState=function(e){return Xl.current.useState(e)};Yr.useSyncExternalStore=function(e,t,n){return Xl.current.useSyncExternalStore(e,t,n)};Yr.useTransition=function(){return Xl.current.useTransition()};Yr.version="18.2.0"});var Pe=ne((TKt,mie)=>{"use strict";mie.exports=hie()});var Aie=ne(wo=>{"use strict";function mR(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(0<MA(i,t))e[r]=t,e[n]=i,n=r;else break e}}function xp(e){return e.length===0?null:e[0]}function NA(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,o=i>>>1;r<o;){var s=2*(r+1)-1,a=e[s],l=s+1,u=e[l];if(0>MA(a,n))l<i&&0>MA(u,a)?(e[r]=u,e[l]=n,r=l):(e[r]=a,e[s]=n,r=s);else if(l<i&&0>MA(u,n))e[r]=u,e[l]=n,r=l;else break e}}return t}function MA(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(gie=performance,wo.unstable_now=function(){return gie.now()}):(pR=Date,vie=pR.now(),wo.unstable_now=function(){return pR.now()-vie});var gie,pR,vie,Of=[],a1=[],Qqe=1,ld=null,ml=3,GA=!1,Uv=!1,y_=!1,_ie=typeof setTimeout=="function"?setTimeout:null,bie=typeof clearTimeout=="function"?clearTimeout:null,yie=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function gR(e){for(var t=xp(a1);t!==null;){if(t.callback===null)NA(a1);else if(t.startTime<=e)NA(a1),t.sortIndex=t.expirationTime,mR(Of,t);else break;t=xp(a1)}}function vR(e){if(y_=!1,gR(e),!Uv)if(xp(Of)!==null)Uv=!0,xR(yR);else{var t=xp(a1);t!==null&&_R(vR,t.startTime-e)}}function yR(e,t){Uv=!1,y_&&(y_=!1,bie(x_),x_=-1),GA=!0;var n=ml;try{for(gR(t),ld=xp(Of);ld!==null&&(!(ld.expirationTime>t)||e&&!kie());){var r=ld.callback;if(typeof r=="function"){ld.callback=null,ml=ld.priorityLevel;var i=r(ld.expirationTime<=t);t=wo.unstable_now(),typeof i=="function"?ld.callback=i:ld===xp(Of)&&NA(Of),gR(t)}else NA(Of);ld=xp(Of)}if(ld!==null)var o=!0;else{var s=xp(a1);s!==null&&_R(vR,s.startTime-t),o=!1}return o}finally{ld=null,ml=n,GA=!1}}var FA=!1,BA=null,x_=-1,wie=5,Pie=-1;function kie(){return!(wo.unstable_now()-Pie<wie)}function fR(){if(BA!==null){var e=wo.unstable_now();Pie=e;var t=!0;try{t=BA(!0,e)}finally{t?v_():(FA=!1,BA=null)}}else FA=!1}var v_;typeof yie=="function"?v_=function(){yie(fR)}:typeof MessageChannel<"u"?(hR=new MessageChannel,xie=hR.port2,hR.port1.onmessage=fR,v_=function(){xie.postMessage(null)}):v_=function(){_ie(fR,0)};var hR,xie;function xR(e){BA=e,FA||(FA=!0,v_())}function _R(e,t){x_=_ie(function(){e(wo.unstable_now())},t)}wo.unstable_IdlePriority=5;wo.unstable_ImmediatePriority=1;wo.unstable_LowPriority=4;wo.unstable_NormalPriority=3;wo.unstable_Profiling=null;wo.unstable_UserBlockingPriority=2;wo.unstable_cancelCallback=function(e){e.callback=null};wo.unstable_continueExecution=function(){Uv||GA||(Uv=!0,xR(yR))};wo.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):wie=0<e?Math.floor(1e3/e):5};wo.unstable_getCurrentPriorityLevel=function(){return ml};wo.unstable_getFirstCallbackNode=function(){return xp(Of)};wo.unstable_next=function(e){switch(ml){case 1:case 2:case 3:var t=3;break;default:t=ml}var n=ml;ml=t;try{return e()}finally{ml=n}};wo.unstable_pauseExecution=function(){};wo.unstable_requestPaint=function(){};wo.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=ml;ml=e;try{return t()}finally{ml=n}};wo.unstable_scheduleCallback=function(e,t,n){var r=wo.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?r+n:r):n=r,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return i=n+i,e={id:Qqe++,callback:t,priorityLevel:e,startTime:n,expirationTime:i,sortIndex:-1},n>r?(e.sortIndex=n,mR(a1,e),xp(Of)===null&&e===xp(a1)&&(y_?(bie(x_),x_=-1):y_=!0,_R(vR,n-r))):(e.sortIndex=i,mR(Of,e),Uv||GA||(Uv=!0,xR(yR))),e};wo.unstable_shouldYield=kie;wo.unstable_wrapCallback=function(e){var t=ml;return function(){var n=ml;ml=t;try{return e.apply(this,arguments)}finally{ml=n}}}});var Sie=ne((RKt,Cie)=>{"use strict";Cie.exports=Aie()});var Gae=ne(_c=>{"use strict";var Foe=Pe(),yc=Sie();function kt(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Ioe=new Set,V_={};function d2(e,t){$6(e,t),$6(e+"Capture",t)}function $6(e,t){for(V_[e]=t,e=0;e<t.length;e++)Ioe.add(t[e])}var r0=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jR=Object.prototype.hasOwnProperty,e$e=/^[: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]*$/,Oie={},Eie={};function t$e(e){return jR.call(Eie,e)?!0:jR.call(Oie,e)?!1:e$e.test(e)?Eie[e]=!0:(Oie[e]=!0,!1)}function n$e(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function r$e(e,t,n,r){if(t===null||typeof t>"u"||n$e(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Kl(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Ra={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ra[e]=new Kl(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ra[t]=new Kl(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ra[e]=new Kl(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ra[e]=new Kl(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ra[e]=new Kl(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ra[e]=new Kl(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ra[e]=new Kl(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ra[e]=new Kl(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ra[e]=new Kl(e,5,!1,e.toLowerCase(),null,!1,!1)});var IL=/[\-:]([a-z])/g;function zL(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(IL,zL);Ra[t]=new Kl(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(IL,zL);Ra[t]=new Kl(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(IL,zL);Ra[t]=new Kl(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ra[e]=new Kl(e,1,!1,e.toLowerCase(),null,!1,!1)});Ra.xlinkHref=new Kl("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ra[e]=new Kl(e,1,!1,e.toLowerCase(),null,!0,!0)});function TL(e,t,n,r){var i=Ra.hasOwnProperty(t)?Ra[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(r$e(t,n,i,r)&&(n=null),r||i===null?t$e(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var a0=Foe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,IA=Symbol.for("react.element"),M6=Symbol.for("react.portal"),B6=Symbol.for("react.fragment"),DL=Symbol.for("react.strict_mode"),HR=Symbol.for("react.profiler"),zoe=Symbol.for("react.provider"),Toe=Symbol.for("react.context"),RL=Symbol.for("react.forward_ref"),WR=Symbol.for("react.suspense"),XR=Symbol.for("react.suspense_list"),LL=Symbol.for("react.memo"),u1=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var Doe=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var Mie=Symbol.iterator;function __(e){return e===null||typeof e!="object"?null:(e=Mie&&e[Mie]||e["@@iterator"],typeof e=="function"?e:null)}var us=Object.assign,bR;function O_(e){if(bR===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);bR=t&&t[1]||""}return`
`+bR+e}var wR=!1;function PR(e,t){if(!e||wR)return"";wR=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
`),o=r.stack.split(`
`),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var l=`
`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{wR=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?O_(e):""}function i$e(e){switch(e.tag){case 5:return O_(e.type);case 16:return O_("Lazy");case 13:return O_("Suspense");case 19:return O_("SuspenseList");case 0:case 2:case 15:return e=PR(e.type,!1),e;case 11:return e=PR(e.type.render,!1),e;case 1:return e=PR(e.type,!0),e;default:return""}}function qR(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case B6:return"Fragment";case M6:return"Portal";case HR:return"Profiler";case DL:return"StrictMode";case WR:return"Suspense";case XR:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Toe:return(e.displayName||"Context")+".Consumer";case zoe:return(e._context.displayName||"Context")+".Provider";case RL:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case LL:return t=e.displayName||null,t!==null?t:qR(e.type)||"Memo";case u1:t=e._payload,e=e._init;try{return qR(e(t))}catch{}}return null}function o$e(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return qR(t);case 8:return t===DL?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function P1(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Roe(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function s$e(e){var t=Roe(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zA(e){e._valueTracker||(e._valueTracker=s$e(e))}function Loe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Roe(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function cC(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function $R(e,t){var n=t.checked;return us({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Bie(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=P1(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Voe(e,t){t=t.checked,t!=null&&TL(e,"checked",t,!1)}function KR(e,t){Voe(e,t);var n=P1(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?YR(e,t.type,n):t.hasOwnProperty("defaultValue")&&YR(e,t.type,P1(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Nie(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function YR(e,t,n){(t!=="number"||cC(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var E_=Array.isArray;function J6(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+P1(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function ZR(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(kt(91));return us({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Gie(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(kt(92));if(E_(n)){if(1<n.length)throw Error(kt(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:P1(n)}}function Joe(e,t){var n=P1(t.value),r=P1(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Fie(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function joe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function UR(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?joe(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var TA,Hoe=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(TA=TA||document.createElement("div"),TA.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=TA.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function J_(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var N_={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},a$e=["Webkit","ms","Moz","O"];Object.keys(N_).forEach(function(e){a$e.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),N_[t]=N_[e]})});function Woe(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||N_.hasOwnProperty(e)&&N_[e]?(""+t).trim():t+"px"}function Xoe(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Woe(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var l$e=us({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 QR(e,t){if(t){if(l$e[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(kt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(kt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(kt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(kt(62))}}function eL(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var tL=null;function VL(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var nL=null,j6=null,H6=null;function Iie(e){if(e=ab(e)){if(typeof nL!="function")throw Error(kt(280));var t=e.stateNode;t&&(t=DC(t),nL(e.stateNode,e.type,t))}}function qoe(e){j6?H6?H6.push(e):H6=[e]:j6=e}function $oe(){if(j6){var e=j6,t=H6;if(H6=j6=null,Iie(e),t)for(e=0;e<t.length;e++)Iie(t[e])}}function Koe(e,t){return e(t)}function Yoe(){}var kR=!1;function Zoe(e,t,n){if(kR)return e(t,n);kR=!0;try{return Koe(e,t,n)}finally{kR=!1,(j6!==null||H6!==null)&&(Yoe(),$oe())}}function j_(e,t){var n=e.stateNode;if(n===null)return null;var r=DC(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(kt(231,t,typeof n));return n}var rL=!1;if(r0)try{O6={},Object.defineProperty(O6,"passive",{get:function(){rL=!0}}),window.addEventListener("test",O6,O6),window.removeEventListener("test",O6,O6)}catch{rL=!1}var O6;function u$e(e,t,n,r,i,o,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var G_=!1,dC=null,pC=!1,iL=null,c$e={onError:function(e){G_=!0,dC=e}};function d$e(e,t,n,r,i,o,s,a,l){G_=!1,dC=null,u$e.apply(c$e,arguments)}function p$e(e,t,n,r,i,o,s,a,l){if(d$e.apply(this,arguments),G_){if(G_){var u=dC;G_=!1,dC=null}else throw Error(kt(198));pC||(pC=!0,iL=u)}}function p2(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Uoe(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function zie(e){if(p2(e)!==e)throw Error(kt(188))}function f$e(e){var t=e.alternate;if(!t){if(t=p2(e),t===null)throw Error(kt(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return zie(i),e;if(o===r)return zie(i),t;o=o.sibling}throw Error(kt(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s)throw Error(kt(189))}}if(n.alternate!==r)throw Error(kt(190))}if(n.tag!==3)throw Error(kt(188));return n.stateNode.current===n?e:t}function Qoe(e){return e=f$e(e),e!==null?ese(e):null}function ese(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ese(e);if(t!==null)return t;e=e.sibling}return null}var tse=yc.unstable_scheduleCallback,Tie=yc.unstable_cancelCallback,h$e=yc.unstable_shouldYield,m$e=yc.unstable_requestPaint,Ms=yc.unstable_now,g$e=yc.unstable_getCurrentPriorityLevel,JL=yc.unstable_ImmediatePriority,nse=yc.unstable_UserBlockingPriority,fC=yc.unstable_NormalPriority,v$e=yc.unstable_LowPriority,rse=yc.unstable_IdlePriority,FC=null,Nf=null;function y$e(e){if(Nf&&typeof Nf.onCommitFiberRoot=="function")try{Nf.onCommitFiberRoot(FC,e,void 0,(e.current.flags&128)===128)}catch{}}var kp=Math.clz32?Math.clz32:b$e,x$e=Math.log,_$e=Math.LN2;function b$e(e){return e>>>=0,e===0?32:31-(x$e(e)/_$e|0)|0}var DA=64,RA=4194304;function M_(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function hC(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=M_(a):(o&=s,o!==0&&(r=M_(o)))}else s=n&~i,s!==0?r=M_(s):o!==0&&(r=M_(o));if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-kp(t),i=1<<n,r|=e[n],t&=~i;return r}function w$e(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function P$e(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-kp(o),a=1<<s,l=i[s];l===-1?((a&n)===0||(a&r)!==0)&&(i[s]=w$e(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function oL(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ise(){var e=DA;return DA<<=1,(DA&4194240)===0&&(DA=64),e}function AR(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ib(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-kp(t),e[t]=n}function k$e(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-kp(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function jL(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-kp(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Yi=0;function ose(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var sse,HL,ase,lse,use,sL=!1,LA=[],m1=null,g1=null,v1=null,H_=new Map,W_=new Map,d1=[],A$e="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Die(e,t){switch(e){case"focusin":case"focusout":m1=null;break;case"dragenter":case"dragleave":g1=null;break;case"mouseover":case"mouseout":v1=null;break;case"pointerover":case"pointerout":H_.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":W_.delete(t.pointerId)}}function b_(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=ab(t),t!==null&&HL(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function C$e(e,t,n,r,i){switch(t){case"focusin":return m1=b_(m1,e,t,n,r,i),!0;case"dragenter":return g1=b_(g1,e,t,n,r,i),!0;case"mouseover":return v1=b_(v1,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return H_.set(o,b_(H_.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,W_.set(o,b_(W_.get(o)||null,e,t,n,r,i)),!0}return!1}function cse(e){var t=t2(e.target);if(t!==null){var n=p2(t);if(n!==null){if(t=n.tag,t===13){if(t=Uoe(n),t!==null){e.blockedOn=t,use(e.priority,function(){ase(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function eC(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=aL(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);tL=r,n.target.dispatchEvent(r),tL=null}else return t=ab(n),t!==null&&HL(t),e.blockedOn=n,!1;t.shift()}return!0}function Rie(e,t,n){eC(e)&&n.delete(t)}function S$e(){sL=!1,m1!==null&&eC(m1)&&(m1=null),g1!==null&&eC(g1)&&(g1=null),v1!==null&&eC(v1)&&(v1=null),H_.forEach(Rie),W_.forEach(Rie)}function w_(e,t){e.blockedOn===t&&(e.blockedOn=null,sL||(sL=!0,yc.unstable_scheduleCallback(yc.unstable_NormalPriority,S$e)))}function X_(e){function t(i){return w_(i,e)}if(0<LA.length){w_(LA[0],e);for(var n=1;n<LA.length;n++){var r=LA[n];r.blockedOn===e&&(r.blockedOn=null)}}for(m1!==null&&w_(m1,e),g1!==null&&w_(g1,e),v1!==null&&w_(v1,e),H_.forEach(t),W_.forEach(t),n=0;n<d1.length;n++)r=d1[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<d1.length&&(n=d1[0],n.blockedOn===null);)cse(n),n.blockedOn===null&&d1.shift()}var W6=a0.ReactCurrentBatchConfig,mC=!0;function O$e(e,t,n,r){var i=Yi,o=W6.transition;W6.transition=null;try{Yi=1,WL(e,t,n,r)}finally{Yi=i,W6.transition=o}}function E$e(e,t,n,r){var i=Yi,o=W6.transition;W6.transition=null;try{Yi=4,WL(e,t,n,r)}finally{Yi=i,W6.transition=o}}function WL(e,t,n,r){if(mC){var i=aL(e,t,n,r);if(i===null)NR(e,t,r,gC,n),Die(e,r);else if(C$e(i,e,t,n,r))r.stopPropagation();else if(Die(e,r),t&4&&-1<A$e.indexOf(e)){for(;i!==null;){var o=ab(i);if(o!==null&&sse(o),o=aL(e,t,n,r),o===null&&NR(e,t,r,gC,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else NR(e,t,r,null,n)}}var gC=null;function aL(e,t,n,r){if(gC=null,e=VL(r),e=t2(e),e!==null)if(t=p2(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Uoe(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return gC=e,null}function dse(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(g$e()){case JL:return 1;case nse:return 4;case fC:case v$e:return 16;case rse:return 536870912;default:return 16}default:return 16}}var f1=null,XL=null,tC=null;function pse(){if(tC)return tC;var e,t=XL,n=t.length,r,i="value"in f1?f1.value:f1.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return tC=i.slice(e,1<r?1-r:void 0)}function nC(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function VA(){return!0}function Lie(){return!1}function xc(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?VA:Lie,this.isPropagationStopped=Lie,this}return us(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=VA)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=VA)},persist:function(){},isPersistent:VA}),t}var t3={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qL=xc(t3),sb=us({},t3,{view:0,detail:0}),M$e=xc(sb),CR,SR,P_,IC=us({},sb,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$L,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==P_&&(P_&&e.type==="mousemove"?(CR=e.screenX-P_.screenX,SR=e.screenY-P_.screenY):SR=CR=0,P_=e),CR)},movementY:function(e){return"movementY"in e?e.movementY:SR}}),Vie=xc(IC),B$e=us({},IC,{dataTransfer:0}),N$e=xc(B$e),G$e=us({},sb,{relatedTarget:0}),OR=xc(G$e),F$e=us({},t3,{animationName:0,elapsedTime:0,pseudoElement:0}),I$e=xc(F$e),z$e=us({},t3,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),T$e=xc(z$e),D$e=us({},t3,{data:0}),Jie=xc(D$e),R$e={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},L$e={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},V$e={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function J$e(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=V$e[e])?!!t[e]:!1}function $L(){return J$e}var j$e=us({},sb,{key:function(e){if(e.key){var t=R$e[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=nC(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?L$e[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$L,charCode:function(e){return e.type==="keypress"?nC(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?nC(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),H$e=xc(j$e),W$e=us({},IC,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jie=xc(W$e),X$e=us({},sb,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$L}),q$e=xc(X$e),$$e=us({},t3,{propertyName:0,elapsedTime:0,pseudoElement:0}),K$e=xc($$e),Y$e=us({},IC,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Z$e=xc(Y$e),U$e=[9,13,27,32],KL=r0&&"CompositionEvent"in window,F_=null;r0&&"documentMode"in document&&(F_=document.documentMode);var Q$e=r0&&"TextEvent"in window&&!F_,fse=r0&&(!KL||F_&&8<F_&&11>=F_),Hie=String.fromCharCode(32),Wie=!1;function hse(e,t){switch(e){case"keyup":return U$e.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mse(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var N6=!1;function eKe(e,t){switch(e){case"compositionend":return mse(t);case"keypress":return t.which!==32?null:(Wie=!0,Hie);case"textInput":return e=t.data,e===Hie&&Wie?null:e;default:return null}}function tKe(e,t){if(N6)return e==="compositionend"||!KL&&hse(e,t)?(e=pse(),tC=XL=f1=null,N6=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return fse&&t.locale!=="ko"?null:t.data;default:return null}}var nKe={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Xie(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!nKe[e.type]:t==="textarea"}function gse(e,t,n,r){qoe(r),t=vC(t,"onChange"),0<t.length&&(n=new qL("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var I_=null,q_=null;function rKe(e){Sse(e,0)}function zC(e){var t=I6(e);if(Loe(t))return e}function iKe(e,t){if(e==="change")return t}var vse=!1;r0&&(r0?(jA="oninput"in document,jA||(ER=document.createElement("div"),ER.setAttribute("oninput","return;"),jA=typeof ER.oninput=="function"),JA=jA):JA=!1,vse=JA&&(!document.documentMode||9<document.documentMode));var JA,jA,ER;function qie(){I_&&(I_.detachEvent("onpropertychange",yse),q_=I_=null)}function yse(e){if(e.propertyName==="value"&&zC(q_)){var t=[];gse(t,q_,e,VL(e)),Zoe(rKe,t)}}function oKe(e,t,n){e==="focusin"?(qie(),I_=t,q_=n,I_.attachEvent("onpropertychange",yse)):e==="focusout"&&qie()}function sKe(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return zC(q_)}function aKe(e,t){if(e==="click")return zC(t)}function lKe(e,t){if(e==="input"||e==="change")return zC(t)}function uKe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Cp=typeof Object.is=="function"?Object.is:uKe;function $_(e,t){if(Cp(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!jR.call(t,i)||!Cp(e[i],t[i]))return!1}return!0}function $ie(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Kie(e,t){var n=$ie(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$ie(n)}}function xse(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xse(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _se(){for(var e=window,t=cC();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=cC(e.document)}return t}function YL(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function cKe(e){var t=_se(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xse(n.ownerDocument.documentElement,n)){if(r!==null&&YL(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Kie(n,o);var s=Kie(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var dKe=r0&&"documentMode"in document&&11>=document.documentMode,G6=null,lL=null,z_=null,uL=!1;function Yie(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;uL||G6==null||G6!==cC(r)||(r=G6,"selectionStart"in r&&YL(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),z_&&$_(z_,r)||(z_=r,r=vC(lL,"onSelect"),0<r.length&&(t=new qL("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=G6)))}function HA(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var F6={animationend:HA("Animation","AnimationEnd"),animationiteration:HA("Animation","AnimationIteration"),animationstart:HA("Animation","AnimationStart"),transitionend:HA("Transition","TransitionEnd")},MR={},bse={};r0&&(bse=document.createElement("div").style,"AnimationEvent"in window||(delete F6.animationend.animation,delete F6.animationiteration.animation,delete F6.animationstart.animation),"TransitionEvent"in window||delete F6.transitionend.transition);function TC(e){if(MR[e])return MR[e];if(!F6[e])return e;var t=F6[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in bse)return MR[e]=t[n];return e}var wse=TC("animationend"),Pse=TC("animationiteration"),kse=TC("animationstart"),Ase=TC("transitionend"),Cse=new Map,Zie="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function A1(e,t){Cse.set(e,t),d2(t,[e])}for(WA=0;WA<Zie.length;WA++)XA=Zie[WA],Uie=XA.toLowerCase(),Qie=XA[0].toUpperCase()+XA.slice(1),A1(Uie,"on"+Qie);var XA,Uie,Qie,WA;A1(wse,"onAnimationEnd");A1(Pse,"onAnimationIteration");A1(kse,"onAnimationStart");A1("dblclick","onDoubleClick");A1("focusin","onFocus");A1("focusout","onBlur");A1(Ase,"onTransitionEnd");$6("onMouseEnter",["mouseout","mouseover"]);$6("onMouseLeave",["mouseout","mouseover"]);$6("onPointerEnter",["pointerout","pointerover"]);$6("onPointerLeave",["pointerout","pointerover"]);d2("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));d2("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));d2("onBeforeInput",["compositionend","keypress","textInput","paste"]);d2("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));d2("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));d2("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var B_="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),pKe=new Set("cancel close invalid load scroll toggle".split(" ").concat(B_));function eoe(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,p$e(r,t,void 0,e),e.currentTarget=null}function Sse(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;eoe(i,a,u),o=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;eoe(i,a,u),o=l}}}if(pC)throw e=iL,pC=!1,iL=null,e}function Go(e,t){var n=t[hL];n===void 0&&(n=t[hL]=new Set);var r=e+"__bubble";n.has(r)||(Ose(t,e,2,!1),n.add(r))}function BR(e,t,n){var r=0;t&&(r|=4),Ose(n,e,r,t)}var qA="_reactListening"+Math.random().toString(36).slice(2);function K_(e){if(!e[qA]){e[qA]=!0,Ioe.forEach(function(n){n!=="selectionchange"&&(pKe.has(n)||BR(n,!1,e),BR(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[qA]||(t[qA]=!0,BR("selectionchange",!1,t))}}function Ose(e,t,n,r){switch(dse(t)){case 1:var i=O$e;break;case 4:i=E$e;break;default:i=WL}n=i.bind(null,t,n,e),i=void 0,!rL||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function NR(e,t,n,r,i){var o=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;s=s.return}for(;a!==null;){if(s=t2(a),s===null)return;if(l=s.tag,l===5||l===6){r=o=s;continue e}a=a.parentNode}}r=r.return}Zoe(function(){var u=o,c=VL(n),f=[];e:{var d=Cse.get(e);if(d!==void 0){var h=qL,m=e;switch(e){case"keypress":if(nC(n)===0)break e;case"keydown":case"keyup":h=H$e;break;case"focusin":m="focus",h=OR;break;case"focusout":m="blur",h=OR;break;case"beforeblur":case"afterblur":h=OR;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=Vie;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=N$e;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=q$e;break;case wse:case Pse:case kse:h=I$e;break;case Ase:h=K$e;break;case"scroll":h=M$e;break;case"wheel":h=Z$e;break;case"copy":case"cut":case"paste":h=T$e;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=jie}var g=(t&4)!==0,b=!g&&e==="scroll",v=g?d!==null?d+"Capture":null:d;g=[];for(var x=u,y;x!==null;){y=x;var _=y.stateNode;if(y.tag===5&&_!==null&&(y=_,v!==null&&(_=j_(x,v),_!=null&&g.push(Y_(x,_,y)))),b)break;x=x.return}0<g.length&&(d=new h(d,m,null,n,c),f.push({event:d,listeners:g}))}}if((t&7)===0){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&n!==tL&&(m=n.relatedTarget||n.fromElement)&&(t2(m)||m[i0]))break e;if((h||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,h?(m=n.relatedTarget||n.toElement,h=u,m=m?t2(m):null,m!==null&&(b=p2(m),m!==b||m.tag!==5&&m.tag!==6)&&(m=null)):(h=null,m=u),h!==m)){if(g=Vie,_="onMouseLeave",v="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(g=jie,_="onPointerLeave",v="onPointerEnter",x="pointer"),b=h==null?d:I6(h),y=m==null?d:I6(m),d=new g(_,x+"leave",h,n,c),d.target=b,d.relatedTarget=y,_=null,t2(c)===u&&(g=new g(v,x+"enter",m,n,c),g.target=y,g.relatedTarget=b,_=g),b=_,h&&m)t:{for(g=h,v=m,x=0,y=g;y;y=E6(y))x++;for(y=0,_=v;_;_=E6(_))y++;for(;0<x-y;)g=E6(g),x--;for(;0<y-x;)v=E6(v),y--;for(;x--;){if(g===v||v!==null&&g===v.alternate)break t;g=E6(g),v=E6(v)}g=null}else g=null;h!==null&&toe(f,d,h,g,!1),m!==null&&b!==null&&toe(f,b,m,g,!0)}}e:{if(d=u?I6(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var w=iKe;else if(Xie(d))if(vse)w=lKe;else{w=sKe;var k=oKe}else(h=d.nodeName)&&h.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(w=aKe);if(w&&(w=w(e,u))){gse(f,w,n,c);break e}k&&k(e,d,u),e==="focusout"&&(k=d._wrapperState)&&k.controlled&&d.type==="number"&&YR(d,"number",d.value)}switch(k=u?I6(u):window,e){case"focusin":(Xie(k)||k.contentEditable==="true")&&(G6=k,lL=u,z_=null);break;case"focusout":z_=lL=G6=null;break;case"mousedown":uL=!0;break;case"contextmenu":case"mouseup":case"dragend":uL=!1,Yie(f,n,c);break;case"selectionchange":if(dKe)break;case"keydown":case"keyup":Yie(f,n,c)}var O;if(KL)e:{switch(e){case"compositionstart":var M="onCompositionStart";break e;case"compositionend":M="onCompositionEnd";break e;case"compositionupdate":M="onCompositionUpdate";break e}M=void 0}else N6?hse(e,n)&&(M="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(M="onCompositionStart");M&&(fse&&n.locale!=="ko"&&(N6||M!=="onCompositionStart"?M==="onCompositionEnd"&&N6&&(O=pse()):(f1=c,XL="value"in f1?f1.value:f1.textContent,N6=!0)),k=vC(u,M),0<k.length&&(M=new Jie(M,e,null,n,c),f.push({event:M,listeners:k}),O?M.data=O:(O=mse(n),O!==null&&(M.data=O)))),(O=Q$e?eKe(e,n):tKe(e,n))&&(u=vC(u,"onBeforeInput"),0<u.length&&(c=new Jie("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=O))}Sse(f,t)})}function Y_(e,t,n){return{instance:e,listener:t,currentTarget:n}}function vC(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=j_(e,n),o!=null&&r.unshift(Y_(e,o,i)),o=j_(e,t),o!=null&&r.push(Y_(e,o,i))),e=e.return}return r}function E6(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function toe(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,i?(l=j_(n,o),l!=null&&s.unshift(Y_(n,l,a))):i||(l=j_(n,o),l!=null&&s.push(Y_(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var fKe=/\r\n?/g,hKe=/\u0000|\uFFFD/g;function noe(e){return(typeof e=="string"?e:""+e).replace(fKe,`
`).replace(hKe,"")}function $A(e,t,n){if(t=noe(t),noe(e)!==t&&n)throw Error(kt(425))}function yC(){}var cL=null,dL=null;function pL(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var fL=typeof setTimeout=="function"?setTimeout:void 0,mKe=typeof clearTimeout=="function"?clearTimeout:void 0,roe=typeof Promise=="function"?Promise:void 0,gKe=typeof queueMicrotask=="function"?queueMicrotask:typeof roe<"u"?function(e){return roe.resolve(null).then(e).catch(vKe)}:fL;function vKe(e){setTimeout(function(){throw e})}function GR(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),X_(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);X_(t)}function y1(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function ioe(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var n3=Math.random().toString(36).slice(2),Bf="__reactFiber$"+n3,Z_="__reactProps$"+n3,i0="__reactContainer$"+n3,hL="__reactEvents$"+n3,yKe="__reactListeners$"+n3,xKe="__reactHandles$"+n3;function t2(e){var t=e[Bf];if(t)return t;for(var n=e.parentNode;n;){if(t=n[i0]||n[Bf]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ioe(e);e!==null;){if(n=e[Bf])return n;e=ioe(e)}return t}e=n,n=e.parentNode}return null}function ab(e){return e=e[Bf]||e[i0],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function I6(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(kt(33))}function DC(e){return e[Z_]||null}var mL=[],z6=-1;function C1(e){return{current:e}}function Fo(e){0>z6||(e.current=mL[z6],mL[z6]=null,z6--)}function Po(e,t){z6++,mL[z6]=e.current,e.current=t}var k1={},xl=C1(k1),Du=C1(!1),s2=k1;function K6(e,t){var n=e.type.contextTypes;if(!n)return k1;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ru(e){return e=e.childContextTypes,e!=null}function xC(){Fo(Du),Fo(xl)}function ooe(e,t,n){if(xl.current!==k1)throw Error(kt(168));Po(xl,t),Po(Du,n)}function Ese(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(kt(108,o$e(e)||"Unknown",i));return us({},n,r)}function _C(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||k1,s2=xl.current,Po(xl,e),Po(Du,Du.current),!0}function soe(e,t,n){var r=e.stateNode;if(!r)throw Error(kt(169));n?(e=Ese(e,t,s2),r.__reactInternalMemoizedMergedChildContext=e,Fo(Du),Fo(xl),Po(xl,e)):Fo(Du),Po(Du,n)}var Qh=null,RC=!1,FR=!1;function Mse(e){Qh===null?Qh=[e]:Qh.push(e)}function _Ke(e){RC=!0,Mse(e)}function S1(){if(!FR&&Qh!==null){FR=!0;var e=0,t=Yi;try{var n=Qh;for(Yi=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Qh=null,RC=!1}catch(i){throw Qh!==null&&(Qh=Qh.slice(e+1)),tse(JL,S1),i}finally{Yi=t,FR=!1}}return null}var T6=[],D6=0,bC=null,wC=0,ud=[],cd=0,a2=null,e0=1,t0="";function Qv(e,t){T6[D6++]=wC,T6[D6++]=bC,bC=e,wC=t}function Bse(e,t,n){ud[cd++]=e0,ud[cd++]=t0,ud[cd++]=a2,a2=e;var r=e0;e=t0;var i=32-kp(r)-1;r&=~(1<<i),n+=1;var o=32-kp(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,e0=1<<32-kp(t)+i|n<<i|r,t0=o+e}else e0=1<<o|n<<i|r,t0=e}function ZL(e){e.return!==null&&(Qv(e,1),Bse(e,1,0))}function UL(e){for(;e===bC;)bC=T6[--D6],T6[D6]=null,wC=T6[--D6],T6[D6]=null;for(;e===a2;)a2=ud[--cd],ud[cd]=null,t0=ud[--cd],ud[cd]=null,e0=ud[--cd],ud[cd]=null}var vc=null,gc=null,Xo=!1,Pp=null;function Nse(e,t){var n=dd(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function aoe(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,vc=e,gc=y1(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,vc=e,gc=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=a2!==null?{id:e0,overflow:t0}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=dd(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,vc=e,gc=null,!0):!1;default:return!1}}function gL(e){return(e.mode&1)!==0&&(e.flags&128)===0}function vL(e){if(Xo){var t=gc;if(t){var n=t;if(!aoe(e,t)){if(gL(e))throw Error(kt(418));t=y1(n.nextSibling);var r=vc;t&&aoe(e,t)?Nse(r,n):(e.flags=e.flags&-4097|2,Xo=!1,vc=e)}}else{if(gL(e))throw Error(kt(418));e.flags=e.flags&-4097|2,Xo=!1,vc=e}}}function loe(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;vc=e}function KA(e){if(e!==vc)return!1;if(!Xo)return loe(e),Xo=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!pL(e.type,e.memoizedProps)),t&&(t=gc)){if(gL(e))throw Gse(),Error(kt(418));for(;t;)Nse(e,t),t=y1(t.nextSibling)}if(loe(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(kt(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){gc=y1(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}gc=null}}else gc=vc?y1(e.stateNode.nextSibling):null;return!0}function Gse(){for(var e=gc;e;)e=y1(e.nextSibling)}function Y6(){gc=vc=null,Xo=!1}function QL(e){Pp===null?Pp=[e]:Pp.push(e)}var bKe=a0.ReactCurrentBatchConfig;function bp(e,t){if(e&&e.defaultProps){t=us({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var PC=C1(null),kC=null,R6=null,eV=null;function tV(){eV=R6=kC=null}function nV(e){var t=PC.current;Fo(PC),e._currentValue=t}function yL(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function X6(e,t){kC=e,eV=R6=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Tu=!0),e.firstContext=null)}function fd(e){var t=e._currentValue;if(eV!==e)if(e={context:e,memoizedValue:t,next:null},R6===null){if(kC===null)throw Error(kt(308));R6=e,kC.dependencies={lanes:0,firstContext:e}}else R6=R6.next=e;return t}var n2=null;function rV(e){n2===null?n2=[e]:n2.push(e)}function Fse(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,rV(t)):(n.next=i.next,i.next=n),t.interleaved=n,o0(e,r)}function o0(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var c1=!1;function iV(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ise(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function n0(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function x1(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(bi&2)!==0){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,o0(e,n)}return i=r.interleaved,i===null?(t.next=t,rV(r)):(t.next=i.next,i.next=t),r.interleaved=t,o0(e,n)}function rC(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,jL(e,n)}}function uoe(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function AC(e,t,n,r){var i=e.updateQueue;c1=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(o!==null){var f=i.baseState;s=0,c=u=l=null,a=o;do{var d=a.lane,h=a.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,g=a;switch(d=t,h=n,g.tag){case 1:if(m=g.payload,typeof m=="function"){f=m.call(h,f,d);break e}f=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,d=typeof m=="function"?m.call(h,f,d):m,d==null)break e;f=us({},f,d);break e;case 2:c1=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[a]:d.push(a))}else h={eventTime:h,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=h,l=f):c=c.next=h,s|=d;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;d=a,a=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(1);if(c===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);u2|=s,e.lanes=s,e.memoizedState=f}}function coe(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(kt(191,i));i.call(r)}}}var zse=new Foe.Component().refs;function xL(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:us({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var LC={isMounted:function(e){return(e=e._reactInternals)?p2(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=$l(),i=b1(e),o=n0(r,i);o.payload=t,n!=null&&(o.callback=n),t=x1(e,o,i),t!==null&&(Ap(t,e,i,r),rC(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=$l(),i=b1(e),o=n0(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=x1(e,o,i),t!==null&&(Ap(t,e,i,r),rC(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=$l(),r=b1(e),i=n0(n,r);i.tag=2,t!=null&&(i.callback=t),t=x1(e,i,r),t!==null&&(Ap(t,e,r,n),rC(t,e,r))}};function doe(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!$_(n,r)||!$_(i,o):!0}function Tse(e,t,n){var r=!1,i=k1,o=t.contextType;return typeof o=="object"&&o!==null?o=fd(o):(i=Ru(t)?s2:xl.current,r=t.contextTypes,o=(r=r!=null)?K6(e,i):k1),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=LC,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function poe(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&LC.enqueueReplaceState(t,t.state,null)}function _L(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=zse,iV(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=fd(o):(o=Ru(t)?s2:xl.current,i.context=K6(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(xL(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&LC.enqueueReplaceState(i,i.state,null),AC(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function k_(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(kt(309));var r=n.stateNode}if(!r)throw Error(kt(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var a=i.refs;a===zse&&(a=i.refs={}),s===null?delete a[o]:a[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(kt(284));if(!n._owner)throw Error(kt(290,e))}return e}function YA(e,t){throw e=Object.prototype.toString.call(t),Error(kt(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function foe(e){var t=e._init;return t(e._payload)}function Dse(e){function t(v,x){if(e){var y=v.deletions;y===null?(v.deletions=[x],v.flags|=16):y.push(x)}}function n(v,x){if(!e)return null;for(;x!==null;)t(v,x),x=x.sibling;return null}function r(v,x){for(v=new Map;x!==null;)x.key!==null?v.set(x.key,x):v.set(x.index,x),x=x.sibling;return v}function i(v,x){return v=w1(v,x),v.index=0,v.sibling=null,v}function o(v,x,y){return v.index=y,e?(y=v.alternate,y!==null?(y=y.index,y<x?(v.flags|=2,x):y):(v.flags|=2,x)):(v.flags|=1048576,x)}function s(v){return e&&v.alternate===null&&(v.flags|=2),v}function a(v,x,y,_){return x===null||x.tag!==6?(x=VR(y,v.mode,_),x.return=v,x):(x=i(x,y),x.return=v,x)}function l(v,x,y,_){var w=y.type;return w===B6?c(v,x,y.props.children,_,y.key):x!==null&&(x.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===u1&&foe(w)===x.type)?(_=i(x,y.props),_.ref=k_(v,x,y),_.return=v,_):(_=uC(y.type,y.key,y.props,null,v.mode,_),_.ref=k_(v,x,y),_.return=v,_)}function u(v,x,y,_){return x===null||x.tag!==4||x.stateNode.containerInfo!==y.containerInfo||x.stateNode.implementation!==y.implementation?(x=JR(y,v.mode,_),x.return=v,x):(x=i(x,y.children||[]),x.return=v,x)}function c(v,x,y,_,w){return x===null||x.tag!==7?(x=o2(y,v.mode,_,w),x.return=v,x):(x=i(x,y),x.return=v,x)}function f(v,x,y){if(typeof x=="string"&&x!==""||typeof x=="number")return x=VR(""+x,v.mode,y),x.return=v,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case IA:return y=uC(x.type,x.key,x.props,null,v.mode,y),y.ref=k_(v,null,x),y.return=v,y;case M6:return x=JR(x,v.mode,y),x.return=v,x;case u1:var _=x._init;return f(v,_(x._payload),y)}if(E_(x)||__(x))return x=o2(x,v.mode,y,null),x.return=v,x;YA(v,x)}return null}function d(v,x,y,_){var w=x!==null?x.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return w!==null?null:a(v,x,""+y,_);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case IA:return y.key===w?l(v,x,y,_):null;case M6:return y.key===w?u(v,x,y,_):null;case u1:return w=y._init,d(v,x,w(y._payload),_)}if(E_(y)||__(y))return w!==null?null:c(v,x,y,_,null);YA(v,y)}return null}function h(v,x,y,_,w){if(typeof _=="string"&&_!==""||typeof _=="number")return v=v.get(y)||null,a(x,v,""+_,w);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case IA:return v=v.get(_.key===null?y:_.key)||null,l(x,v,_,w);case M6:return v=v.get(_.key===null?y:_.key)||null,u(x,v,_,w);case u1:var k=_._init;return h(v,x,y,k(_._payload),w)}if(E_(_)||__(_))return v=v.get(y)||null,c(x,v,_,w,null);YA(x,_)}return null}function m(v,x,y,_){for(var w=null,k=null,O=x,M=x=0,I=null;O!==null&&M<y.length;M++){O.index>M?(I=O,O=null):I=O.sibling;var W=d(v,O,y[M],_);if(W===null){O===null&&(O=I);break}e&&O&&W.alternate===null&&t(v,O),x=o(W,x,M),k===null?w=W:k.sibling=W,k=W,O=I}if(M===y.length)return n(v,O),Xo&&Qv(v,M),w;if(O===null){for(;M<y.length;M++)O=f(v,y[M],_),O!==null&&(x=o(O,x,M),k===null?w=O:k.sibling=O,k=O);return Xo&&Qv(v,M),w}for(O=r(v,O);M<y.length;M++)I=h(O,v,M,y[M],_),I!==null&&(e&&I.alternate!==null&&O.delete(I.key===null?M:I.key),x=o(I,x,M),k===null?w=I:k.sibling=I,k=I);return e&&O.forEach(function(J){return t(v,J)}),Xo&&Qv(v,M),w}function g(v,x,y,_){var w=__(y);if(typeof w!="function")throw Error(kt(150));if(y=w.call(y),y==null)throw Error(kt(151));for(var k=w=null,O=x,M=x=0,I=null,W=y.next();O!==null&&!W.done;M++,W=y.next()){O.index>M?(I=O,O=null):I=O.sibling;var J=d(v,O,W.value,_);if(J===null){O===null&&(O=I);break}e&&O&&J.alternate===null&&t(v,O),x=o(J,x,M),k===null?w=J:k.sibling=J,k=J,O=I}if(W.done)return n(v,O),Xo&&Qv(v,M),w;if(O===null){for(;!W.done;M++,W=y.next())W=f(v,W.value,_),W!==null&&(x=o(W,x,M),k===null?w=W:k.sibling=W,k=W);return Xo&&Qv(v,M),w}for(O=r(v,O);!W.done;M++,W=y.next())W=h(O,v,M,W.value,_),W!==null&&(e&&W.alternate!==null&&O.delete(W.key===null?M:W.key),x=o(W,x,M),k===null?w=W:k.sibling=W,k=W);return e&&O.forEach(function(H){return t(v,H)}),Xo&&Qv(v,M),w}function b(v,x,y,_){if(typeof y=="object"&&y!==null&&y.type===B6&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case IA:e:{for(var w=y.key,k=x;k!==null;){if(k.key===w){if(w=y.type,w===B6){if(k.tag===7){n(v,k.sibling),x=i(k,y.props.children),x.return=v,v=x;break e}}else if(k.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===u1&&foe(w)===k.type){n(v,k.sibling),x=i(k,y.props),x.ref=k_(v,k,y),x.return=v,v=x;break e}n(v,k);break}else t(v,k);k=k.sibling}y.type===B6?(x=o2(y.props.children,v.mode,_,y.key),x.return=v,v=x):(_=uC(y.type,y.key,y.props,null,v.mode,_),_.ref=k_(v,x,y),_.return=v,v=_)}return s(v);case M6:e:{for(k=y.key;x!==null;){if(x.key===k)if(x.tag===4&&x.stateNode.containerInfo===y.containerInfo&&x.stateNode.implementation===y.implementation){n(v,x.sibling),x=i(x,y.children||[]),x.return=v,v=x;break e}else{n(v,x);break}else t(v,x);x=x.sibling}x=JR(y,v.mode,_),x.return=v,v=x}return s(v);case u1:return k=y._init,b(v,x,k(y._payload),_)}if(E_(y))return m(v,x,y,_);if(__(y))return g(v,x,y,_);YA(v,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,x!==null&&x.tag===6?(n(v,x.sibling),x=i(x,y),x.return=v,v=x):(n(v,x),x=VR(y,v.mode,_),x.return=v,v=x),s(v)):n(v,x)}return b}var Z6=Dse(!0),Rse=Dse(!1),lb={},Gf=C1(lb),U_=C1(lb),Q_=C1(lb);function r2(e){if(e===lb)throw Error(kt(174));return e}function oV(e,t){switch(Po(Q_,t),Po(U_,e),Po(Gf,lb),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:UR(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=UR(t,e)}Fo(Gf),Po(Gf,t)}function U6(){Fo(Gf),Fo(U_),Fo(Q_)}function Lse(e){r2(Q_.current);var t=r2(Gf.current),n=UR(t,e.type);t!==n&&(Po(U_,e),Po(Gf,n))}function sV(e){U_.current===e&&(Fo(Gf),Fo(U_))}var as=C1(0);function CC(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var IR=[];function aV(){for(var e=0;e<IR.length;e++)IR[e]._workInProgressVersionPrimary=null;IR.length=0}var iC=a0.ReactCurrentDispatcher,zR=a0.ReactCurrentBatchConfig,l2=0,ls=null,ea=null,fa=null,SC=!1,T_=!1,eb=0,wKe=0;function gl(){throw Error(kt(321))}function lV(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Cp(e[n],t[n]))return!1;return!0}function uV(e,t,n,r,i,o){if(l2=o,ls=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,iC.current=e===null||e.memoizedState===null?CKe:SKe,e=n(r,i),T_){o=0;do{if(T_=!1,eb=0,25<=o)throw Error(kt(301));o+=1,fa=ea=null,t.updateQueue=null,iC.current=OKe,e=n(r,i)}while(T_)}if(iC.current=OC,t=ea!==null&&ea.next!==null,l2=0,fa=ea=ls=null,SC=!1,t)throw Error(kt(300));return e}function cV(){var e=eb!==0;return eb=0,e}function Mf(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return fa===null?ls.memoizedState=fa=e:fa=fa.next=e,fa}function hd(){if(ea===null){var e=ls.alternate;e=e!==null?e.memoizedState:null}else e=ea.next;var t=fa===null?ls.memoizedState:fa.next;if(t!==null)fa=t,ea=e;else{if(e===null)throw Error(kt(310));ea=e,e={memoizedState:ea.memoizedState,baseState:ea.baseState,baseQueue:ea.baseQueue,queue:ea.queue,next:null},fa===null?ls.memoizedState=fa=e:fa=fa.next=e}return fa}function tb(e,t){return typeof t=="function"?t(e):t}function TR(e){var t=hd(),n=t.queue;if(n===null)throw Error(kt(311));n.lastRenderedReducer=e;var r=ea,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var a=s=null,l=null,u=o;do{var c=u.lane;if((l2&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=f,s=r):l=l.next=f,ls.lanes|=c,u2|=c}u=u.next}while(u!==null&&u!==o);l===null?s=r:l.next=a,Cp(r,t.memoizedState)||(Tu=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,ls.lanes|=o,u2|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function DR(e){var t=hd(),n=t.queue;if(n===null)throw Error(kt(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Cp(o,t.memoizedState)||(Tu=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Vse(){}function Jse(e,t){var n=ls,r=hd(),i=t(),o=!Cp(r.memoizedState,i);if(o&&(r.memoizedState=i,Tu=!0),r=r.queue,dV(Wse.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||fa!==null&&fa.memoizedState.tag&1){if(n.flags|=2048,nb(9,Hse.bind(null,n,r,i,t),void 0,null),ha===null)throw Error(kt(349));(l2&30)!==0||jse(n,t,i)}return i}function jse(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ls.updateQueue,t===null?(t={lastEffect:null,stores:null},ls.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Hse(e,t,n,r){t.value=n,t.getSnapshot=r,Xse(t)&&qse(e)}function Wse(e,t,n){return n(function(){Xse(t)&&qse(e)})}function Xse(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Cp(e,n)}catch{return!0}}function qse(e){var t=o0(e,1);t!==null&&Ap(t,e,1,-1)}function hoe(e){var t=Mf();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:tb,lastRenderedState:e},t.queue=e,e=e.dispatch=AKe.bind(null,ls,e),[t.memoizedState,e]}function nb(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ls.updateQueue,t===null?(t={lastEffect:null,stores:null},ls.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function $se(){return hd().memoizedState}function oC(e,t,n,r){var i=Mf();ls.flags|=e,i.memoizedState=nb(1|t,n,void 0,r===void 0?null:r)}function VC(e,t,n,r){var i=hd();r=r===void 0?null:r;var o=void 0;if(ea!==null){var s=ea.memoizedState;if(o=s.destroy,r!==null&&lV(r,s.deps)){i.memoizedState=nb(t,n,o,r);return}}ls.flags|=e,i.memoizedState=nb(1|t,n,o,r)}function moe(e,t){return oC(8390656,8,e,t)}function dV(e,t){return VC(2048,8,e,t)}function Kse(e,t){return VC(4,2,e,t)}function Yse(e,t){return VC(4,4,e,t)}function Zse(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Use(e,t,n){return n=n!=null?n.concat([e]):null,VC(4,4,Zse.bind(null,t,e),n)}function pV(){}function Qse(e,t){var n=hd();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&lV(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function eae(e,t){var n=hd();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&lV(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function tae(e,t,n){return(l2&21)===0?(e.baseState&&(e.baseState=!1,Tu=!0),e.memoizedState=n):(Cp(n,t)||(n=ise(),ls.lanes|=n,u2|=n,e.baseState=!0),t)}function PKe(e,t){var n=Yi;Yi=n!==0&&4>n?n:4,e(!0);var r=zR.transition;zR.transition={};try{e(!1),t()}finally{Yi=n,zR.transition=r}}function nae(){return hd().memoizedState}function kKe(e,t,n){var r=b1(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rae(e))iae(t,n);else if(n=Fse(e,t,n,r),n!==null){var i=$l();Ap(n,e,r,i),oae(n,t,r)}}function AKe(e,t,n){var r=b1(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rae(e))iae(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,Cp(a,s)){var l=t.interleaved;l===null?(i.next=i,rV(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Fse(e,t,i,r),n!==null&&(i=$l(),Ap(n,e,r,i),oae(n,t,r))}}function rae(e){var t=e.alternate;return e===ls||t!==null&&t===ls}function iae(e,t){T_=SC=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function oae(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,jL(e,n)}}var OC={readContext:fd,useCallback:gl,useContext:gl,useEffect:gl,useImperativeHandle:gl,useInsertionEffect:gl,useLayoutEffect:gl,useMemo:gl,useReducer:gl,useRef:gl,useState:gl,useDebugValue:gl,useDeferredValue:gl,useTransition:gl,useMutableSource:gl,useSyncExternalStore:gl,useId:gl,unstable_isNewReconciler:!1},CKe={readContext:fd,useCallback:function(e,t){return Mf().memoizedState=[e,t===void 0?null:t],e},useContext:fd,useEffect:moe,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,oC(4194308,4,Zse.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oC(4194308,4,e,t)},useInsertionEffect:function(e,t){return oC(4,2,e,t)},useMemo:function(e,t){var n=Mf();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Mf();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=kKe.bind(null,ls,e),[r.memoizedState,e]},useRef:function(e){var t=Mf();return e={current:e},t.memoizedState=e},useState:hoe,useDebugValue:pV,useDeferredValue:function(e){return Mf().memoizedState=e},useTransition:function(){var e=hoe(!1),t=e[0];return e=PKe.bind(null,e[1]),Mf().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ls,i=Mf();if(Xo){if(n===void 0)throw Error(kt(407));n=n()}else{if(n=t(),ha===null)throw Error(kt(349));(l2&30)!==0||jse(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,moe(Wse.bind(null,r,o,e),[e]),r.flags|=2048,nb(9,Hse.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Mf(),t=ha.identifierPrefix;if(Xo){var n=t0,r=e0;n=(r&~(1<<32-kp(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=eb++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=wKe++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},SKe={readContext:fd,useCallback:Qse,useContext:fd,useEffect:dV,useImperativeHandle:Use,useInsertionEffect:Kse,useLayoutEffect:Yse,useMemo:eae,useReducer:TR,useRef:$se,useState:function(){return TR(tb)},useDebugValue:pV,useDeferredValue:function(e){var t=hd();return tae(t,ea.memoizedState,e)},useTransition:function(){var e=TR(tb)[0],t=hd().memoizedState;return[e,t]},useMutableSource:Vse,useSyncExternalStore:Jse,useId:nae,unstable_isNewReconciler:!1},OKe={readContext:fd,useCallback:Qse,useContext:fd,useEffect:dV,useImperativeHandle:Use,useInsertionEffect:Kse,useLayoutEffect:Yse,useMemo:eae,useReducer:DR,useRef:$se,useState:function(){return DR(tb)},useDebugValue:pV,useDeferredValue:function(e){var t=hd();return ea===null?t.memoizedState=e:tae(t,ea.memoizedState,e)},useTransition:function(){var e=DR(tb)[0],t=hd().memoizedState;return[e,t]},useMutableSource:Vse,useSyncExternalStore:Jse,useId:nae,unstable_isNewReconciler:!1};function Q6(e,t){try{var n="",r=t;do n+=i$e(r),r=r.return;while(r);var i=n}catch(o){i=`
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function RR(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function bL(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var EKe=typeof WeakMap=="function"?WeakMap:Map;function sae(e,t,n){n=n0(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){MC||(MC=!0,BL=r),bL(e,t)},n}function aae(e,t,n){n=n0(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){bL(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){bL(e,t),typeof r!="function"&&(_1===null?_1=new Set([this]):_1.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function goe(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new EKe;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=jKe.bind(null,e,t,n),t.then(e,e))}function voe(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function yoe(e,t,n,r,i){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=n0(-1,1),t.tag=2,x1(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var MKe=a0.ReactCurrentOwner,Tu=!1;function ql(e,t,n,r){t.child=e===null?Rse(t,null,n,r):Z6(t,e.child,n,r)}function xoe(e,t,n,r,i){n=n.render;var o=t.ref;return X6(t,i),r=uV(e,t,n,r,o,i),n=cV(),e!==null&&!Tu?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,s0(e,t,i)):(Xo&&n&&ZL(t),t.flags|=1,ql(e,t,r,i),t.child)}function _oe(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!_V(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,lae(e,t,o,r,i)):(e=uC(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,(e.lanes&i)===0){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:$_,n(s,r)&&e.ref===t.ref)return s0(e,t,i)}return t.flags|=1,e=w1(o,r),e.ref=t.ref,e.return=t,t.child=e}function lae(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if($_(o,r)&&e.ref===t.ref)if(Tu=!1,t.pendingProps=r=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&(Tu=!0);else return t.lanes=e.lanes,s0(e,t,i)}return wL(e,t,n,r,i)}function uae(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Po(V6,mc),mc|=n;else{if((n&1073741824)===0)return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Po(V6,mc),mc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Po(V6,mc),mc|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Po(V6,mc),mc|=r;return ql(e,t,i,n),t.child}function cae(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function wL(e,t,n,r,i){var o=Ru(n)?s2:xl.current;return o=K6(t,o),X6(t,i),n=uV(e,t,n,r,o,i),r=cV(),e!==null&&!Tu?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,s0(e,t,i)):(Xo&&r&&ZL(t),t.flags|=1,ql(e,t,n,i),t.child)}function boe(e,t,n,r,i){if(Ru(n)){var o=!0;_C(t)}else o=!1;if(X6(t,i),t.stateNode===null)sC(e,t),Tse(t,n,r),_L(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=fd(u):(u=Ru(n)?s2:xl.current,u=K6(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&poe(t,s,r,u),c1=!1;var d=t.memoizedState;s.state=d,AC(t,r,s,i),l=t.memoizedState,a!==r||d!==l||Du.current||c1?(typeof c=="function"&&(xL(t,n,c,r),l=t.memoizedState),(a=c1||doe(t,n,a,r,d,l,u))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Ise(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:bp(t.type,a),s.props=u,f=t.pendingProps,d=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=fd(l):(l=Ru(n)?s2:xl.current,l=K6(t,l));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==f||d!==l)&&poe(t,s,r,l),c1=!1,d=t.memoizedState,s.state=d,AC(t,r,s,i);var m=t.memoizedState;a!==f||d!==m||Du.current||c1?(typeof h=="function"&&(xL(t,n,h,r),m=t.memoizedState),(u=c1||doe(t,n,u,r,d,m,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,m,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,m,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),s.props=r,s.state=m,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return PL(e,t,n,r,o,i)}function PL(e,t,n,r,i,o){cae(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&soe(t,n,!1),s0(e,t,o);r=t.stateNode,MKe.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Z6(t,e.child,null,o),t.child=Z6(t,null,a,o)):ql(e,t,a,o),t.memoizedState=r.state,i&&soe(t,n,!0),t.child}function dae(e){var t=e.stateNode;t.pendingContext?ooe(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ooe(e,t.context,!1),oV(e,t.containerInfo)}function woe(e,t,n,r,i){return Y6(),QL(i),t.flags|=256,ql(e,t,n,r),t.child}var kL={dehydrated:null,treeContext:null,retryLane:0};function AL(e){return{baseLanes:e,cachePool:null,transitions:null}}function pae(e,t,n){var r=t.pendingProps,i=as.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Po(as,i&1),e===null)return vL(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},(r&1)===0&&o!==null?(o.childLanes=0,o.pendingProps=s):o=HC(s,r,0,null),e=o2(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=AL(n),t.memoizedState=kL,e):fV(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return BKe(e,t,s,r,a,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return(s&1)===0&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=w1(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=w1(a,o):(o=o2(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?AL(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=kL,r}return o=e.child,e=o.sibling,r=w1(o,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function fV(e,t){return t=HC({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ZA(e,t,n,r){return r!==null&&QL(r),Z6(t,e.child,null,n),e=fV(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function BKe(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=RR(Error(kt(422))),ZA(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=HC({mode:"visible",children:r.children},i,0,null),o=o2(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,(t.mode&1)!==0&&Z6(t,e.child,null,s),t.child.memoizedState=AL(s),t.memoizedState=kL,o);if((t.mode&1)===0)return ZA(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(kt(419)),r=RR(o,r,void 0),ZA(e,t,s,r)}if(a=(s&e.childLanes)!==0,Tu||a){if(r=ha,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=(i&(r.suspendedLanes|s))!==0?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,o0(e,i),Ap(r,e,i,-1))}return xV(),r=RR(Error(kt(421))),ZA(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=HKe.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,gc=y1(i.nextSibling),vc=t,Xo=!0,Pp=null,e!==null&&(ud[cd++]=e0,ud[cd++]=t0,ud[cd++]=a2,e0=e.id,t0=e.overflow,a2=t),t=fV(t,r.children),t.flags|=4096,t)}function Poe(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),yL(e.return,t,n)}function LR(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function fae(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ql(e,t,r.children,n),r=as.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Poe(e,n,t);else if(e.tag===19)Poe(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Po(as,r),(t.mode&1)===0)t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&CC(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),LR(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&CC(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}LR(t,!0,n,null,o);break;case"together":LR(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function sC(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function s0(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),u2|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(kt(153));if(t.child!==null){for(e=t.child,n=w1(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=w1(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function NKe(e,t,n){switch(t.tag){case 3:dae(t),Y6();break;case 5:Lse(t);break;case 1:Ru(t.type)&&_C(t);break;case 4:oV(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Po(PC,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Po(as,as.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?pae(e,t,n):(Po(as,as.current&1),e=s0(e,t,n),e!==null?e.sibling:null);Po(as,as.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return fae(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Po(as,as.current),r)break;return null;case 22:case 23:return t.lanes=0,uae(e,t,n)}return s0(e,t,n)}var hae,CL,mae,gae;hae=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};CL=function(){};mae=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,r2(Gf.current);var o=null;switch(n){case"input":i=$R(e,i),r=$R(e,r),o=[];break;case"select":i=us({},i,{value:void 0}),r=us({},r,{value:void 0}),o=[];break;case"textarea":i=ZR(e,i),r=ZR(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=yC)}QR(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(V_.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];if(a=i?.[u],r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(V_.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Go("scroll",e),o||a===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};gae=function(e,t,n,r){n!==r&&(t.flags|=4)};function A_(e,t){if(!Xo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function vl(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function GKe(e,t,n){var r=t.pendingProps;switch(UL(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vl(t),null;case 1:return Ru(t.type)&&xC(),vl(t),null;case 3:return r=t.stateNode,U6(),Fo(Du),Fo(xl),aV(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(KA(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Pp!==null&&(FL(Pp),Pp=null))),CL(e,t),vl(t),null;case 5:sV(t);var i=r2(Q_.current);if(n=t.type,e!==null&&t.stateNode!=null)mae(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(kt(166));return vl(t),null}if(e=r2(Gf.current),KA(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Bf]=t,r[Z_]=o,e=(t.mode&1)!==0,n){case"dialog":Go("cancel",r),Go("close",r);break;case"iframe":case"object":case"embed":Go("load",r);break;case"video":case"audio":for(i=0;i<B_.length;i++)Go(B_[i],r);break;case"source":Go("error",r);break;case"img":case"image":case"link":Go("error",r),Go("load",r);break;case"details":Go("toggle",r);break;case"input":Bie(r,o),Go("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Go("invalid",r);break;case"textarea":Gie(r,o),Go("invalid",r)}QR(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];s==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&$A(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&$A(r.textContent,a,e),i=["children",""+a]):V_.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Go("scroll",r)}switch(n){case"input":zA(r),Nie(r,o,!0);break;case"textarea":zA(r),Fie(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=yC)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=joe(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Bf]=t,e[Z_]=r,hae(e,t,!1,!1),t.stateNode=e;e:{switch(s=eL(n,r),n){case"dialog":Go("cancel",e),Go("close",e),i=r;break;case"iframe":case"object":case"embed":Go("load",e),i=r;break;case"video":case"audio":for(i=0;i<B_.length;i++)Go(B_[i],e);i=r;break;case"source":Go("error",e),i=r;break;case"img":case"image":case"link":Go("error",e),Go("load",e),i=r;break;case"details":Go("toggle",e),i=r;break;case"input":Bie(e,r),i=$R(e,r),Go("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=us({},r,{value:void 0}),Go("invalid",e);break;case"textarea":Gie(e,r),i=ZR(e,r),Go("invalid",e);break;default:i=r}QR(n,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?Xoe(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Hoe(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&J_(e,l):typeof l=="number"&&J_(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(V_.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Go("scroll",e):l!=null&&TL(e,o,l,s))}switch(n){case"input":zA(e),Nie(e,r,!1);break;case"textarea":zA(e),Fie(e);break;case"option":r.value!=null&&e.setAttribute("value",""+P1(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?J6(e,!!r.multiple,o,!1):r.defaultValue!=null&&J6(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=yC)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return vl(t),null;case 6:if(e&&t.stateNode!=null)gae(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(kt(166));if(n=r2(Q_.current),r2(Gf.current),KA(t)){if(r=t.stateNode,n=t.memoizedProps,r[Bf]=t,(o=r.nodeValue!==n)&&(e=vc,e!==null))switch(e.tag){case 3:$A(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&$A(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Bf]=t,t.stateNode=r}return vl(t),null;case 13:if(Fo(as),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Xo&&gc!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Gse(),Y6(),t.flags|=98560,o=!1;else if(o=KA(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(kt(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(kt(317));o[Bf]=t}else Y6(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;vl(t),o=!1}else Pp!==null&&(FL(Pp),Pp=null),o=!0;if(!o)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(as.current&1)!==0?ta===0&&(ta=3):xV())),t.updateQueue!==null&&(t.flags|=4),vl(t),null);case 4:return U6(),CL(e,t),e===null&&K_(t.stateNode.containerInfo),vl(t),null;case 10:return nV(t.type._context),vl(t),null;case 17:return Ru(t.type)&&xC(),vl(t),null;case 19:if(Fo(as),o=t.memoizedState,o===null)return vl(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)A_(o,!1);else{if(ta!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=CC(e),s!==null){for(t.flags|=128,A_(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Po(as,as.current&1|2),t.child}e=e.sibling}o.tail!==null&&Ms()>e3&&(t.flags|=128,r=!0,A_(o,!1),t.lanes=4194304)}else{if(!r)if(e=CC(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),A_(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Xo)return vl(t),null}else 2*Ms()-o.renderingStartTime>e3&&n!==1073741824&&(t.flags|=128,r=!0,A_(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ms(),t.sibling=null,n=as.current,Po(as,r?n&1|2:n&1),t):(vl(t),null);case 22:case 23:return yV(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(mc&1073741824)!==0&&(vl(t),t.subtreeFlags&6&&(t.flags|=8192)):vl(t),null;case 24:return null;case 25:return null}throw Error(kt(156,t.tag))}function FKe(e,t){switch(UL(t),t.tag){case 1:return Ru(t.type)&&xC(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return U6(),Fo(Du),Fo(xl),aV(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return sV(t),null;case 13:if(Fo(as),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(kt(340));Y6()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fo(as),null;case 4:return U6(),null;case 10:return nV(t.type._context),null;case 22:case 23:return yV(),null;case 24:return null;default:return null}}var UA=!1,yl=!1,IKe=typeof WeakSet=="function"?WeakSet:Set,Qt=null;function L6(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ys(e,t,r)}else n.current=null}function SL(e,t,n){try{n()}catch(r){ys(e,t,r)}}var koe=!1;function zKe(e,t){if(cL=mC,e=_se(),YL(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(a=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++u===i&&(a=s),d===o&&++c===r&&(l=s),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(dL={focusedElem:e,selectionRange:n},mC=!1,Qt=t;Qt!==null;)if(t=Qt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Qt=e;else for(;Qt!==null;){t=Qt;try{var m=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,b=m.memoizedState,v=t.stateNode,x=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:bp(t.type,g),b);v.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(kt(163))}}catch(_){ys(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,Qt=e;break}Qt=t.return}return m=koe,koe=!1,m}function D_(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&SL(t,n,o)}i=i.next}while(i!==r)}}function JC(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function OL(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function vae(e){var t=e.alternate;t!==null&&(e.alternate=null,vae(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Bf],delete t[Z_],delete t[hL],delete t[yKe],delete t[xKe])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function yae(e){return e.tag===5||e.tag===3||e.tag===4}function Aoe(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yae(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function EL(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=yC));else if(r!==4&&(e=e.child,e!==null))for(EL(e,t,n),e=e.sibling;e!==null;)EL(e,t,n),e=e.sibling}function ML(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ML(e,t,n),e=e.sibling;e!==null;)ML(e,t,n),e=e.sibling}var Ta=null,wp=!1;function l1(e,t,n){for(n=n.child;n!==null;)xae(e,t,n),n=n.sibling}function xae(e,t,n){if(Nf&&typeof Nf.onCommitFiberUnmount=="function")try{Nf.onCommitFiberUnmount(FC,n)}catch{}switch(n.tag){case 5:yl||L6(n,t);case 6:var r=Ta,i=wp;Ta=null,l1(e,t,n),Ta=r,wp=i,Ta!==null&&(wp?(e=Ta,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ta.removeChild(n.stateNode));break;case 18:Ta!==null&&(wp?(e=Ta,n=n.stateNode,e.nodeType===8?GR(e.parentNode,n):e.nodeType===1&&GR(e,n),X_(e)):GR(Ta,n.stateNode));break;case 4:r=Ta,i=wp,Ta=n.stateNode.containerInfo,wp=!0,l1(e,t,n),Ta=r,wp=i;break;case 0:case 11:case 14:case 15:if(!yl&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&((o&2)!==0||(o&4)!==0)&&SL(n,t,s),i=i.next}while(i!==r)}l1(e,t,n);break;case 1:if(!yl&&(L6(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ys(n,t,a)}l1(e,t,n);break;case 21:l1(e,t,n);break;case 22:n.mode&1?(yl=(r=yl)||n.memoizedState!==null,l1(e,t,n),yl=r):l1(e,t,n);break;default:l1(e,t,n)}}function Coe(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new IKe),t.forEach(function(r){var i=WKe.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function _p(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:Ta=a.stateNode,wp=!1;break e;case 3:Ta=a.stateNode.containerInfo,wp=!0;break e;case 4:Ta=a.stateNode.containerInfo,wp=!0;break e}a=a.return}if(Ta===null)throw Error(kt(160));xae(o,s,i),Ta=null,wp=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){ys(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)_ae(t,e),t=t.sibling}function _ae(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(_p(t,e),Ef(e),r&4){try{D_(3,e,e.return),JC(3,e)}catch(g){ys(e,e.return,g)}try{D_(5,e,e.return)}catch(g){ys(e,e.return,g)}}break;case 1:_p(t,e),Ef(e),r&512&&n!==null&&L6(n,n.return);break;case 5:if(_p(t,e),Ef(e),r&512&&n!==null&&L6(n,n.return),e.flags&32){var i=e.stateNode;try{J_(i,"")}catch(g){ys(e,e.return,g)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&Voe(i,o),eL(a,s);var u=eL(a,o);for(s=0;s<l.length;s+=2){var c=l[s],f=l[s+1];c==="style"?Xoe(i,f):c==="dangerouslySetInnerHTML"?Hoe(i,f):c==="children"?J_(i,f):TL(i,c,f,u)}switch(a){case"input":KR(i,o);break;case"textarea":Joe(i,o);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;h!=null?J6(i,!!o.multiple,h,!1):d!==!!o.multiple&&(o.defaultValue!=null?J6(i,!!o.multiple,o.defaultValue,!0):J6(i,!!o.multiple,o.multiple?[]:"",!1))}i[Z_]=o}catch(g){ys(e,e.return,g)}}break;case 6:if(_p(t,e),Ef(e),r&4){if(e.stateNode===null)throw Error(kt(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(g){ys(e,e.return,g)}}break;case 3:if(_p(t,e),Ef(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{X_(t.containerInfo)}catch(g){ys(e,e.return,g)}break;case 4:_p(t,e),Ef(e);break;case 13:_p(t,e),Ef(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(gV=Ms())),r&4&&Coe(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(yl=(u=yl)||c,_p(t,e),yl=u):_p(t,e),Ef(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&(e.mode&1)!==0)for(Qt=e,c=e.child;c!==null;){for(f=Qt=c;Qt!==null;){switch(d=Qt,h=d.child,d.tag){case 0:case 11:case 14:case 15:D_(4,d,d.return);break;case 1:L6(d,d.return);var m=d.stateNode;if(typeof m.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){ys(r,n,g)}}break;case 5:L6(d,d.return);break;case 22:if(d.memoizedState!==null){Ooe(f);continue}}h!==null?(h.return=d,Qt=h):Ooe(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Woe("display",s))}catch(g){ys(e,e.return,g)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(g){ys(e,e.return,g)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:_p(t,e),Ef(e),r&4&&Coe(e);break;case 21:break;default:_p(t,e),Ef(e)}}function Ef(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(yae(n)){var r=n;break e}n=n.return}throw Error(kt(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(J_(i,""),r.flags&=-33);var o=Aoe(e);ML(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,a=Aoe(e);EL(e,a,s);break;default:throw Error(kt(161))}}catch(l){ys(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function TKe(e,t,n){Qt=e,bae(e,t,n)}function bae(e,t,n){for(var r=(e.mode&1)!==0;Qt!==null;){var i=Qt,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||UA;if(!s){var a=i.alternate,l=a!==null&&a.memoizedState!==null||yl;a=UA;var u=yl;if(UA=s,(yl=l)&&!u)for(Qt=i;Qt!==null;)s=Qt,l=s.child,s.tag===22&&s.memoizedState!==null?Eoe(i):l!==null?(l.return=s,Qt=l):Eoe(i);for(;o!==null;)Qt=o,bae(o,t,n),o=o.sibling;Qt=i,UA=a,yl=u}Soe(e,t,n)}else(i.subtreeFlags&8772)!==0&&o!==null?(o.return=i,Qt=o):Soe(e,t,n)}}function Soe(e){for(;Qt!==null;){var t=Qt;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:yl||JC(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!yl)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:bp(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&coe(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}coe(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&X_(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(kt(163))}yl||t.flags&512&&OL(t)}catch(d){ys(t,t.return,d)}}if(t===e){Qt=null;break}if(n=t.sibling,n!==null){n.return=t.return,Qt=n;break}Qt=t.return}}function Ooe(e){for(;Qt!==null;){var t=Qt;if(t===e){Qt=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Qt=n;break}Qt=t.return}}function Eoe(e){for(;Qt!==null;){var t=Qt;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{JC(4,t)}catch(l){ys(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){ys(t,i,l)}}var o=t.return;try{OL(t)}catch(l){ys(t,o,l)}break;case 5:var s=t.return;try{OL(t)}catch(l){ys(t,s,l)}}}catch(l){ys(t,t.return,l)}if(t===e){Qt=null;break}var a=t.sibling;if(a!==null){a.return=t.return,Qt=a;break}Qt=t.return}}var DKe=Math.ceil,EC=a0.ReactCurrentDispatcher,hV=a0.ReactCurrentOwner,pd=a0.ReactCurrentBatchConfig,bi=0,ha=null,Ds=null,Da=0,mc=0,V6=C1(0),ta=0,rb=null,u2=0,jC=0,mV=0,R_=null,zu=null,gV=0,e3=1/0,Uh=null,MC=!1,BL=null,_1=null,QA=!1,h1=null,BC=0,L_=0,NL=null,aC=-1,lC=0;function $l(){return(bi&6)!==0?Ms():aC!==-1?aC:aC=Ms()}function b1(e){return(e.mode&1)===0?1:(bi&2)!==0&&Da!==0?Da&-Da:bKe.transition!==null?(lC===0&&(lC=ise()),lC):(e=Yi,e!==0||(e=window.event,e=e===void 0?16:dse(e.type)),e)}function Ap(e,t,n,r){if(50<L_)throw L_=0,NL=null,Error(kt(185));ib(e,n,r),((bi&2)===0||e!==ha)&&(e===ha&&((bi&2)===0&&(jC|=n),ta===4&&p1(e,Da)),Lu(e,r),n===1&&bi===0&&(t.mode&1)===0&&(e3=Ms()+500,RC&&S1()))}function Lu(e,t){var n=e.callbackNode;P$e(e,t);var r=hC(e,e===ha?Da:0);if(r===0)n!==null&&Tie(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Tie(n),t===1)e.tag===0?_Ke(Moe.bind(null,e)):Mse(Moe.bind(null,e)),gKe(function(){(bi&6)===0&&S1()}),n=null;else{switch(ose(r)){case 1:n=JL;break;case 4:n=nse;break;case 16:n=fC;break;case 536870912:n=rse;break;default:n=fC}n=Eae(n,wae.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function wae(e,t){if(aC=-1,lC=0,(bi&6)!==0)throw Error(kt(327));var n=e.callbackNode;if(q6()&&e.callbackNode!==n)return null;var r=hC(e,e===ha?Da:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=NC(e,r);else{t=r;var i=bi;bi|=2;var o=kae();(ha!==e||Da!==t)&&(Uh=null,e3=Ms()+500,i2(e,t));do try{VKe();break}catch(a){Pae(e,a)}while(1);tV(),EC.current=o,bi=i,Ds!==null?t=0:(ha=null,Da=0,t=ta)}if(t!==0){if(t===2&&(i=oL(e),i!==0&&(r=i,t=GL(e,i))),t===1)throw n=rb,i2(e,0),p1(e,r),Lu(e,Ms()),n;if(t===6)p1(e,r);else{if(i=e.current.alternate,(r&30)===0&&!RKe(i)&&(t=NC(e,r),t===2&&(o=oL(e),o!==0&&(r=o,t=GL(e,o))),t===1))throw n=rb,i2(e,0),p1(e,r),Lu(e,Ms()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(kt(345));case 2:e2(e,zu,Uh);break;case 3:if(p1(e,r),(r&130023424)===r&&(t=gV+500-Ms(),10<t)){if(hC(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){$l(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=fL(e2.bind(null,e,zu,Uh),t);break}e2(e,zu,Uh);break;case 4:if(p1(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-kp(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=Ms()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*DKe(r/1960))-r,10<r){e.timeoutHandle=fL(e2.bind(null,e,zu,Uh),r);break}e2(e,zu,Uh);break;case 5:e2(e,zu,Uh);break;default:throw Error(kt(329))}}}return Lu(e,Ms()),e.callbackNode===n?wae.bind(null,e):null}function GL(e,t){var n=R_;return e.current.memoizedState.isDehydrated&&(i2(e,t).flags|=256),e=NC(e,t),e!==2&&(t=zu,zu=n,t!==null&&FL(t)),e}function FL(e){zu===null?zu=e:zu.push.apply(zu,e)}function RKe(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Cp(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function p1(e,t){for(t&=~mV,t&=~jC,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-kp(t),r=1<<n;e[n]=-1,t&=~r}}function Moe(e){if((bi&6)!==0)throw Error(kt(327));q6();var t=hC(e,0);if((t&1)===0)return Lu(e,Ms()),null;var n=NC(e,t);if(e.tag!==0&&n===2){var r=oL(e);r!==0&&(t=r,n=GL(e,r))}if(n===1)throw n=rb,i2(e,0),p1(e,t),Lu(e,Ms()),n;if(n===6)throw Error(kt(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,e2(e,zu,Uh),Lu(e,Ms()),null}function vV(e,t){var n=bi;bi|=1;try{return e(t)}finally{bi=n,bi===0&&(e3=Ms()+500,RC&&S1())}}function c2(e){h1!==null&&h1.tag===0&&(bi&6)===0&&q6();var t=bi;bi|=1;var n=pd.transition,r=Yi;try{if(pd.transition=null,Yi=1,e)return e()}finally{Yi=r,pd.transition=n,bi=t,(bi&6)===0&&S1()}}function yV(){mc=V6.current,Fo(V6)}function i2(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,mKe(n)),Ds!==null)for(n=Ds.return;n!==null;){var r=n;switch(UL(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&xC();break;case 3:U6(),Fo(Du),Fo(xl),aV();break;case 5:sV(r);break;case 4:U6();break;case 13:Fo(as);break;case 19:Fo(as);break;case 10:nV(r.type._context);break;case 22:case 23:yV()}n=n.return}if(ha=e,Ds=e=w1(e.current,null),Da=mc=t,ta=0,rb=null,mV=jC=u2=0,zu=R_=null,n2!==null){for(t=0;t<n2.length;t++)if(n=n2[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}n2=null}return e}function Pae(e,t){do{var n=Ds;try{if(tV(),iC.current=OC,SC){for(var r=ls.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}SC=!1}if(l2=0,fa=ea=ls=null,T_=!1,eb=0,hV.current=null,n===null||n.return===null){ta=1,rb=t,Ds=null;break}e:{var o=e,s=n.return,a=n,l=t;if(t=Da,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,f=c.tag;if((c.mode&1)===0&&(f===0||f===11||f===15)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=voe(s);if(h!==null){h.flags&=-257,yoe(h,s,a,o,t),h.mode&1&&goe(o,u,t),t=h,l=u;var m=t.updateQueue;if(m===null){var g=new Set;g.add(l),t.updateQueue=g}else m.add(l);break e}else{if((t&1)===0){goe(o,u,t),xV();break e}l=Error(kt(426))}}else if(Xo&&a.mode&1){var b=voe(s);if(b!==null){(b.flags&65536)===0&&(b.flags|=256),yoe(b,s,a,o,t),QL(Q6(l,a));break e}}o=l=Q6(l,a),ta!==4&&(ta=2),R_===null?R_=[o]:R_.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=sae(o,l,t);uoe(o,v);break e;case 1:a=l;var x=o.type,y=o.stateNode;if((o.flags&128)===0&&(typeof x.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(_1===null||!_1.has(y)))){o.flags|=65536,t&=-t,o.lanes|=t;var _=aae(o,a,t);uoe(o,_);break e}}o=o.return}while(o!==null)}Cae(n)}catch(w){t=w,Ds===n&&n!==null&&(Ds=n=n.return);continue}break}while(1)}function kae(){var e=EC.current;return EC.current=OC,e===null?OC:e}function xV(){(ta===0||ta===3||ta===2)&&(ta=4),ha===null||(u2&268435455)===0&&(jC&268435455)===0||p1(ha,Da)}function NC(e,t){var n=bi;bi|=2;var r=kae();(ha!==e||Da!==t)&&(Uh=null,i2(e,t));do try{LKe();break}catch(i){Pae(e,i)}while(1);if(tV(),bi=n,EC.current=r,Ds!==null)throw Error(kt(261));return ha=null,Da=0,ta}function LKe(){for(;Ds!==null;)Aae(Ds)}function VKe(){for(;Ds!==null&&!h$e();)Aae(Ds)}function Aae(e){var t=Oae(e.alternate,e,mc);e.memoizedProps=e.pendingProps,t===null?Cae(e):Ds=t,hV.current=null}function Cae(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=GKe(n,t,mc),n!==null){Ds=n;return}}else{if(n=FKe(n,t),n!==null){n.flags&=32767,Ds=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ta=6,Ds=null;return}}if(t=t.sibling,t!==null){Ds=t;return}Ds=t=e}while(t!==null);ta===0&&(ta=5)}function e2(e,t,n){var r=Yi,i=pd.transition;try{pd.transition=null,Yi=1,JKe(e,t,n,r)}finally{pd.transition=i,Yi=r}return null}function JKe(e,t,n,r){do q6();while(h1!==null);if((bi&6)!==0)throw Error(kt(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(kt(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(k$e(e,o),e===ha&&(Ds=ha=null,Da=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||QA||(QA=!0,Eae(fC,function(){return q6(),null})),o=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||o){o=pd.transition,pd.transition=null;var s=Yi;Yi=1;var a=bi;bi|=4,hV.current=null,zKe(e,n),_ae(n,e),cKe(dL),mC=!!cL,dL=cL=null,e.current=n,TKe(n,e,i),m$e(),bi=a,Yi=s,pd.transition=o}else e.current=n;if(QA&&(QA=!1,h1=e,BC=i),o=e.pendingLanes,o===0&&(_1=null),y$e(n.stateNode,r),Lu(e,Ms()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(MC)throw MC=!1,e=BL,BL=null,e;return(BC&1)!==0&&e.tag!==0&&q6(),o=e.pendingLanes,(o&1)!==0?e===NL?L_++:(L_=0,NL=e):L_=0,S1(),null}function q6(){if(h1!==null){var e=ose(BC),t=pd.transition,n=Yi;try{if(pd.transition=null,Yi=16>e?16:e,h1===null)var r=!1;else{if(e=h1,h1=null,BC=0,(bi&6)!==0)throw Error(kt(331));var i=bi;for(bi|=4,Qt=e.current;Qt!==null;){var o=Qt,s=o.child;if((Qt.flags&16)!==0){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(Qt=u;Qt!==null;){var c=Qt;switch(c.tag){case 0:case 11:case 15:D_(8,c,o)}var f=c.child;if(f!==null)f.return=c,Qt=f;else for(;Qt!==null;){c=Qt;var d=c.sibling,h=c.return;if(vae(c),c===u){Qt=null;break}if(d!==null){d.return=h,Qt=d;break}Qt=h}}}var m=o.alternate;if(m!==null){var g=m.child;if(g!==null){m.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(g!==null)}}Qt=o}}if((o.subtreeFlags&2064)!==0&&s!==null)s.return=o,Qt=s;else e:for(;Qt!==null;){if(o=Qt,(o.flags&2048)!==0)switch(o.tag){case 0:case 11:case 15:D_(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,Qt=v;break e}Qt=o.return}}var x=e.current;for(Qt=x;Qt!==null;){s=Qt;var y=s.child;if((s.subtreeFlags&2064)!==0&&y!==null)y.return=s,Qt=y;else e:for(s=x;Qt!==null;){if(a=Qt,(a.flags&2048)!==0)try{switch(a.tag){case 0:case 11:case 15:JC(9,a)}}catch(w){ys(a,a.return,w)}if(a===s){Qt=null;break e}var _=a.sibling;if(_!==null){_.return=a.return,Qt=_;break e}Qt=a.return}}if(bi=i,S1(),Nf&&typeof Nf.onPostCommitFiberRoot=="function")try{Nf.onPostCommitFiberRoot(FC,e)}catch{}r=!0}return r}finally{Yi=n,pd.transition=t}}return!1}function Boe(e,t,n){t=Q6(n,t),t=sae(e,t,1),e=x1(e,t,1),t=$l(),e!==null&&(ib(e,1,t),Lu(e,t))}function ys(e,t,n){if(e.tag===3)Boe(e,e,n);else for(;t!==null;){if(t.tag===3){Boe(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(_1===null||!_1.has(r))){e=Q6(n,e),e=aae(t,e,1),t=x1(t,e,1),e=$l(),t!==null&&(ib(t,1,e),Lu(t,e));break}}t=t.return}}function jKe(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=$l(),e.pingedLanes|=e.suspendedLanes&n,ha===e&&(Da&n)===n&&(ta===4||ta===3&&(Da&130023424)===Da&&500>Ms()-gV?i2(e,0):mV|=n),Lu(e,t)}function Sae(e,t){t===0&&((e.mode&1)===0?t=1:(t=RA,RA<<=1,(RA&130023424)===0&&(RA=4194304)));var n=$l();e=o0(e,t),e!==null&&(ib(e,t,n),Lu(e,n))}function HKe(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Sae(e,n)}function WKe(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(kt(314))}r!==null&&r.delete(t),Sae(e,n)}var Oae;Oae=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Du.current)Tu=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return Tu=!1,NKe(e,t,n);Tu=(e.flags&131072)!==0}else Tu=!1,Xo&&(t.flags&1048576)!==0&&Bse(t,wC,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;sC(e,t),e=t.pendingProps;var i=K6(t,xl.current);X6(t,n),i=uV(null,t,r,e,i,n);var o=cV();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ru(r)?(o=!0,_C(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,iV(t),i.updater=LC,t.stateNode=i,i._reactInternals=t,_L(t,r,e,n),t=PL(null,t,r,!0,o,n)):(t.tag=0,Xo&&o&&ZL(t),ql(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(sC(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=qKe(r),e=bp(r,e),i){case 0:t=wL(null,t,r,e,n);break e;case 1:t=boe(null,t,r,e,n);break e;case 11:t=xoe(null,t,r,e,n);break e;case 14:t=_oe(null,t,r,bp(r.type,e),n);break e}throw Error(kt(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:bp(r,i),wL(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:bp(r,i),boe(e,t,r,i,n);case 3:e:{if(dae(t),e===null)throw Error(kt(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Ise(e,t),AC(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Q6(Error(kt(423)),t),t=woe(e,t,r,n,i);break e}else if(r!==i){i=Q6(Error(kt(424)),t),t=woe(e,t,r,n,i);break e}else for(gc=y1(t.stateNode.containerInfo.firstChild),vc=t,Xo=!0,Pp=null,n=Rse(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Y6(),r===i){t=s0(e,t,n);break e}ql(e,t,r,n)}t=t.child}return t;case 5:return Lse(t),e===null&&vL(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,pL(r,i)?s=null:o!==null&&pL(r,o)&&(t.flags|=32),cae(e,t),ql(e,t,s,n),t.child;case 6:return e===null&&vL(t),null;case 13:return pae(e,t,n);case 4:return oV(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Z6(t,null,r,n):ql(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:bp(r,i),xoe(e,t,r,i,n);case 7:return ql(e,t,t.pendingProps,n),t.child;case 8:return ql(e,t,t.pendingProps.children,n),t.child;case 12:return ql(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Po(PC,r._currentValue),r._currentValue=s,o!==null)if(Cp(o.value,s)){if(o.children===i.children&&!Du.current){t=s0(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=n0(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),yL(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(kt(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),yL(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}ql(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,X6(t,n),i=fd(i),r=r(i),t.flags|=1,ql(e,t,r,n),t.child;case 14:return r=t.type,i=bp(r,t.pendingProps),i=bp(r.type,i),_oe(e,t,r,i,n);case 15:return lae(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:bp(r,i),sC(e,t),t.tag=1,Ru(r)?(e=!0,_C(t)):e=!1,X6(t,n),Tse(t,r,i),_L(t,r,i,n),PL(null,t,r,!0,e,n);case 19:return fae(e,t,n);case 22:return uae(e,t,n)}throw Error(kt(156,t.tag))};function Eae(e,t){return tse(e,t)}function XKe(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function dd(e,t,n,r){return new XKe(e,t,n,r)}function _V(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qKe(e){if(typeof e=="function")return _V(e)?1:0;if(e!=null){if(e=e.$$typeof,e===RL)return 11;if(e===LL)return 14}return 2}function w1(e,t){var n=e.alternate;return n===null?(n=dd(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function uC(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")_V(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case B6:return o2(n.children,i,o,t);case DL:s=8,i|=8;break;case HR:return e=dd(12,n,t,i|2),e.elementType=HR,e.lanes=o,e;case WR:return e=dd(13,n,t,i),e.elementType=WR,e.lanes=o,e;case XR:return e=dd(19,n,t,i),e.elementType=XR,e.lanes=o,e;case Doe:return HC(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case zoe:s=10;break e;case Toe:s=9;break e;case RL:s=11;break e;case LL:s=14;break e;case u1:s=16,r=null;break e}throw Error(kt(130,e==null?e:typeof e,""))}return t=dd(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function o2(e,t,n,r){return e=dd(7,e,r,t),e.lanes=n,e}function HC(e,t,n,r){return e=dd(22,e,r,t),e.elementType=Doe,e.lanes=n,e.stateNode={isHidden:!1},e}function VR(e,t,n){return e=dd(6,e,null,t),e.lanes=n,e}function JR(e,t,n){return t=dd(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $Ke(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=AR(0),this.expirationTimes=AR(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=AR(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function bV(e,t,n,r,i,o,s,a,l){return e=new $Ke(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=dd(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},iV(o),e}function KKe(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:M6,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Mae(e){if(!e)return k1;e=e._reactInternals;e:{if(p2(e)!==e||e.tag!==1)throw Error(kt(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ru(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(kt(171))}if(e.tag===1){var n=e.type;if(Ru(n))return Ese(e,n,t)}return t}function Bae(e,t,n,r,i,o,s,a,l){return e=bV(n,r,!0,e,i,o,s,a,l),e.context=Mae(null),n=e.current,r=$l(),i=b1(n),o=n0(r,i),o.callback=t??null,x1(n,o,i),e.current.lanes=i,ib(e,i,r),Lu(e,r),e}function WC(e,t,n,r){var i=t.current,o=$l(),s=b1(i);return n=Mae(n),t.context===null?t.context=n:t.pendingContext=n,t=n0(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=x1(i,t,s),e!==null&&(Ap(e,i,s,o),rC(e,i,s)),s}function GC(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Noe(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function wV(e,t){Noe(e,t),(e=e.alternate)&&Noe(e,t)}function YKe(){return null}var Nae=typeof reportError=="function"?reportError:function(e){console.error(e)};function PV(e){this._internalRoot=e}XC.prototype.render=PV.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(kt(409));WC(e,t,null,null)};XC.prototype.unmount=PV.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;c2(function(){WC(null,e,null,null)}),t[i0]=null}};function XC(e){this._internalRoot=e}XC.prototype.unstable_scheduleHydration=function(e){if(e){var t=lse();e={blockedOn:null,target:e,priority:t};for(var n=0;n<d1.length&&t!==0&&t<d1[n].priority;n++);d1.splice(n,0,e),n===0&&cse(e)}};function kV(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function qC(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Goe(){}function ZKe(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=GC(s);o.call(u)}}var s=Bae(t,r,e,0,null,!1,!1,"",Goe);return e._reactRootContainer=s,e[i0]=s.current,K_(e.nodeType===8?e.parentNode:e),c2(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=GC(l);a.call(u)}}var l=bV(e,0,!1,null,null,!1,!1,"",Goe);return e._reactRootContainer=l,e[i0]=l.current,K_(e.nodeType===8?e.parentNode:e),c2(function(){WC(t,l,n,r)}),l}function $C(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var a=i;i=function(){var l=GC(s);a.call(l)}}WC(t,s,e,i)}else s=ZKe(n,t,e,i,r);return GC(s)}sse=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=M_(t.pendingLanes);n!==0&&(jL(t,n|1),Lu(t,Ms()),(bi&6)===0&&(e3=Ms()+500,S1()))}break;case 13:c2(function(){var r=o0(e,1);if(r!==null){var i=$l();Ap(r,e,1,i)}}),wV(e,1)}};HL=function(e){if(e.tag===13){var t=o0(e,134217728);if(t!==null){var n=$l();Ap(t,e,134217728,n)}wV(e,134217728)}};ase=function(e){if(e.tag===13){var t=b1(e),n=o0(e,t);if(n!==null){var r=$l();Ap(n,e,t,r)}wV(e,t)}};lse=function(){return Yi};use=function(e,t){var n=Yi;try{return Yi=e,t()}finally{Yi=n}};nL=function(e,t,n){switch(t){case"input":if(KR(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=DC(r);if(!i)throw Error(kt(90));Loe(r),KR(r,i)}}}break;case"textarea":Joe(e,n);break;case"select":t=n.value,t!=null&&J6(e,!!n.multiple,t,!1)}};Koe=vV;Yoe=c2;var UKe={usingClientEntryPoint:!1,Events:[ab,I6,DC,qoe,$oe,vV]},C_={findFiberByHostInstance:t2,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},QKe={bundleType:C_.bundleType,version:C_.version,rendererPackageName:C_.rendererPackageName,rendererConfig:C_.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:a0.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Qoe(e),e===null?null:e.stateNode},findFiberByHostInstance:C_.findFiberByHostInstance||YKe,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(S_=__REACT_DEVTOOLS_GLOBAL_HOOK__,!S_.isDisabled&&S_.supportsFiber))try{FC=S_.inject(QKe),Nf=S_}catch{}var S_;_c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=UKe;_c.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!kV(t))throw Error(kt(200));return KKe(e,t,null,n)};_c.createRoot=function(e,t){if(!kV(e))throw Error(kt(299));var n=!1,r="",i=Nae;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=bV(e,1,!1,null,null,n,!1,r,i),e[i0]=t.current,K_(e.nodeType===8?e.parentNode:e),new PV(t)};_c.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(kt(188)):(e=Object.keys(e).join(","),Error(kt(268,e)));return e=Qoe(t),e=e===null?null:e.stateNode,e};_c.flushSync=function(e){return c2(e)};_c.hydrate=function(e,t,n){if(!qC(t))throw Error(kt(200));return $C(null,e,t,!0,n)};_c.hydrateRoot=function(e,t,n){if(!kV(e))throw Error(kt(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=Nae;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Bae(t,null,e,1,n??null,i,!1,o,s),e[i0]=t.current,K_(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new XC(t)};_c.render=function(e,t,n){if(!qC(t))throw Error(kt(200));return $C(null,e,t,!1,n)};_c.unmountComponentAtNode=function(e){if(!qC(e))throw Error(kt(40));return e._reactRootContainer?(c2(function(){$C(null,null,e,!1,function(){e._reactRootContainer=null,e[i0]=null})}),!0):!1};_c.unstable_batchedUpdates=vV;_c.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!qC(n))throw Error(kt(200));if(e==null||e._reactInternals===void 0)throw Error(kt(38));return $C(e,t,n,!1,r)};_c.version="18.2.0-next-9e3b772b8-20220608"});var Yl=ne((VKt,Iae)=>{"use strict";function Fae(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Fae)}catch(e){console.error(e)}}Fae(),Iae.exports=Gae()});var Tae=ne(AV=>{"use strict";var zae=Yl();AV.createRoot=zae.createRoot,AV.hydrateRoot=zae.hydrateRoot;var JKt});var Rle=ne((fS,aJ)=>{(function(t,n){typeof fS=="object"&&typeof aJ=="object"?aJ.exports=n():typeof define=="function"&&define.amd?define([],n):typeof fS=="object"?fS.Pusher=n():t.Pusher=n()})(window,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(r,i,o){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:o})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,i){if(i&1&&(r=n(r)),i&8||i&4&&typeof r=="object"&&r&&r.__esModule)return r;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),i&2&&typeof r!="string")for(var s in r)n.d(o,s,function(a){return r[a]}.bind(null,s));return o},n.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(i,"a",i),i},n.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},n.p="",n(n.s=2)}([function(e,t,n){"use strict";var r=this&&this.__extends||function(){var h=function(m,g){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,v){b.__proto__=v}||function(b,v){for(var x in v)v.hasOwnProperty(x)&&(b[x]=v[x])},h(m,g)};return function(m,g){h(m,g);function b(){this.constructor=m}m.prototype=g===null?Object.create(g):(b.prototype=g.prototype,new b)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=256,o=function(){function h(m){m===void 0&&(m="="),this._paddingCharacter=m}return h.prototype.encodedLength=function(m){return this._paddingCharacter?(m+2)/3*4|0:(m*8+5)/6|0},h.prototype.encode=function(m){for(var g="",b=0;b<m.length-2;b+=3){var v=m[b]<<16|m[b+1]<<8|m[b+2];g+=this._encodeByte(v>>>3*6&63),g+=this._encodeByte(v>>>2*6&63),g+=this._encodeByte(v>>>1*6&63),g+=this._encodeByte(v>>>0*6&63)}var x=m.length-b;if(x>0){var v=m[b]<<16|(x===2?m[b+1]<<8:0);g+=this._encodeByte(v>>>3*6&63),g+=this._encodeByte(v>>>2*6&63),x===2?g+=this._encodeByte(v>>>1*6&63):g+=this._paddingCharacter||"",g+=this._paddingCharacter||""}return g},h.prototype.maxDecodedLength=function(m){return this._paddingCharacter?m/4*3|0:(m*6+7)/8|0},h.prototype.decodedLength=function(m){return this.maxDecodedLength(m.length-this._getPaddingLength(m))},h.prototype.decode=function(m){if(m.length===0)return new Uint8Array(0);for(var g=this._getPaddingLength(m),b=m.length-g,v=new Uint8Array(this.maxDecodedLength(b)),x=0,y=0,_=0,w=0,k=0,O=0,M=0;y<b-4;y+=4)w=this._decodeChar(m.charCodeAt(y+0)),k=this._decodeChar(m.charCodeAt(y+1)),O=this._decodeChar(m.charCodeAt(y+2)),M=this._decodeChar(m.charCodeAt(y+3)),v[x++]=w<<2|k>>>4,v[x++]=k<<4|O>>>2,v[x++]=O<<6|M,_|=w&i,_|=k&i,_|=O&i,_|=M&i;if(y<b-1&&(w=this._decodeChar(m.charCodeAt(y)),k=this._decodeChar(m.charCodeAt(y+1)),v[x++]=w<<2|k>>>4,_|=w&i,_|=k&i),y<b-2&&(O=this._decodeChar(m.charCodeAt(y+2)),v[x++]=k<<4|O>>>2,_|=O&i),y<b-3&&(M=this._decodeChar(m.charCodeAt(y+3)),v[x++]=O<<6|M,_|=M&i),_!==0)throw new Error("Base64Coder: incorrect characters for decoding");return v},h.prototype._encodeByte=function(m){var g=m;return g+=65,g+=25-m>>>8&0-65-26+97,g+=51-m>>>8&26-97-52+48,g+=61-m>>>8&52-48-62+43,g+=62-m>>>8&62-43-63+47,String.fromCharCode(g)},h.prototype._decodeChar=function(m){var g=i;return g+=(42-m&m-44)>>>8&-i+m-43+62,g+=(46-m&m-48)>>>8&-i+m-47+63,g+=(47-m&m-58)>>>8&-i+m-48+52,g+=(64-m&m-91)>>>8&-i+m-65+0,g+=(96-m&m-123)>>>8&-i+m-97+26,g},h.prototype._getPaddingLength=function(m){var g=0;if(this._paddingCharacter){for(var b=m.length-1;b>=0&&m[b]===this._paddingCharacter;b--)g++;if(m.length<4||g>2)throw new Error("Base64Coder: incorrect padding")}return g},h}();t.Coder=o;var s=new o;function a(h){return s.encode(h)}t.encode=a;function l(h){return s.decode(h)}t.decode=l;var u=function(h){r(m,h);function m(){return h!==null&&h.apply(this,arguments)||this}return m.prototype._encodeByte=function(g){var b=g;return b+=65,b+=25-g>>>8&0-65-26+97,b+=51-g>>>8&26-97-52+48,b+=61-g>>>8&52-48-62+45,b+=62-g>>>8&62-45-63+95,String.fromCharCode(b)},m.prototype._decodeChar=function(g){var b=i;return b+=(44-g&g-46)>>>8&-i+g-45+62,b+=(94-g&g-96)>>>8&-i+g-95+63,b+=(47-g&g-58)>>>8&-i+g-48+52,b+=(64-g&g-91)>>>8&-i+g-65+0,b+=(96-g&g-123)>>>8&-i+g-97+26,b},m}(o);t.URLSafeCoder=u;var c=new u;function f(h){return c.encode(h)}t.encodeURLSafe=f;function d(h){return c.decode(h)}t.decodeURLSafe=d,t.encodedLength=function(h){return s.encodedLength(h)},t.maxDecodedLength=function(h){return s.maxDecodedLength(h)},t.decodedLength=function(h){return s.decodedLength(h)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="utf8: invalid string",i="utf8: invalid source encoding";function o(l){for(var u=new Uint8Array(s(l)),c=0,f=0;f<l.length;f++){var d=l.charCodeAt(f);d<128?u[c++]=d:d<2048?(u[c++]=192|d>>6,u[c++]=128|d&63):d<55296?(u[c++]=224|d>>12,u[c++]=128|d>>6&63,u[c++]=128|d&63):(f++,d=(d&1023)<<10,d|=l.charCodeAt(f)&1023,d+=65536,u[c++]=240|d>>18,u[c++]=128|d>>12&63,u[c++]=128|d>>6&63,u[c++]=128|d&63)}return u}t.encode=o;function s(l){for(var u=0,c=0;c<l.length;c++){var f=l.charCodeAt(c);if(f<128)u+=1;else if(f<2048)u+=2;else if(f<55296)u+=3;else if(f<=57343){if(c>=l.length-1)throw new Error(r);c++,u+=4}else throw new Error(r)}return u}t.encodedLength=s;function a(l){for(var u=[],c=0;c<l.length;c++){var f=l[c];if(f&128){var d=void 0;if(f<224){if(c>=l.length)throw new Error(i);var h=l[++c];if((h&192)!==128)throw new Error(i);f=(f&31)<<6|h&63,d=128}else if(f<240){if(c>=l.length-1)throw new Error(i);var h=l[++c],m=l[++c];if((h&192)!==128||(m&192)!==128)throw new Error(i);f=(f&15)<<12|(h&63)<<6|m&63,d=2048}else if(f<248){if(c>=l.length-2)throw new Error(i);var h=l[++c],m=l[++c],g=l[++c];if((h&192)!==128||(m&192)!==128||(g&192)!==128)throw new Error(i);f=(f&15)<<18|(h&63)<<12|(m&63)<<6|g&63,d=65536}else throw new Error(i);if(f<d||f>=55296&&f<=57343)throw new Error(i);if(f>=65536){if(f>1114111)throw new Error(i);f-=65536,u.push(String.fromCharCode(55296|f>>10)),f=56320|f&1023}}u.push(String.fromCharCode(f))}return u.join("")}t.decode=a},function(e,t,n){e.exports=n(3).default},function(e,t,n){"use strict";n.r(t);class r{constructor(q,ae){this.lastId=0,this.prefix=q,this.name=ae}create(q){this.lastId++;var ae=this.lastId,Se=this.prefix+ae,Ie=this.name+"["+ae+"]",ot=!1,bt=function(){ot||(q.apply(null,arguments),ot=!0)};return this[ae]=bt,{number:ae,id:Se,name:Ie,callback:bt}}remove(q){delete this[q.number]}}var i=new r("_pusher_script_","Pusher.ScriptReceivers"),o={VERSION:"8.3.0",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,userAuthentication:{endpoint:"/pusher/user-auth",transport:"ajax"},channelAuthorization:{endpoint:"/pusher/auth",transport:"ajax"},cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""},s=o;class a{constructor(q){this.options=q,this.receivers=q.receivers||i,this.loading={}}load(q,ae,Se){var Ie=this;if(Ie.loading[q]&&Ie.loading[q].length>0)Ie.loading[q].push(Se);else{Ie.loading[q]=[Se];var ot=Pn.createScriptRequest(Ie.getPath(q,ae)),bt=Ie.receivers.create(function(qt){if(Ie.receivers.remove(bt),Ie.loading[q]){var kn=Ie.loading[q];delete Ie.loading[q];for(var Cr=function(ro){ro||ot.cleanup()},Br=0;Br<kn.length;Br++)kn[Br](qt,Cr)}});ot.send(bt)}}getRoot(q){var ae,Se=Pn.getDocument().location.protocol;return q&&q.useTLS||Se==="https:"?ae=this.options.cdn_https:ae=this.options.cdn_http,ae.replace(/\/*$/,"")+"/"+this.options.version}getPath(q,ae){return this.getRoot(ae)+"/"+q+this.options.suffix+".js"}}var l=new r("_pusher_dependencies","Pusher.DependenciesReceivers"),u=new a({cdn_http:s.cdn_http,cdn_https:s.cdn_https,version:s.VERSION,suffix:s.dependency_suffix,receivers:l});let c={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}}};var d={buildLogSuffix:function(le){let q="See:",ae=c.urls[le];if(!ae)return"";let Se;return ae.fullUrl?Se=ae.fullUrl:ae.path&&(Se=c.baseUrl+ae.path),Se?`${q} ${Se}`:""}},h;(function(le){le.UserAuthentication="user-authentication",le.ChannelAuthorization="channel-authorization"})(h||(h={}));class m extends Error{constructor(q){super(q),Object.setPrototypeOf(this,new.target.prototype)}}class g extends Error{constructor(q){super(q),Object.setPrototypeOf(this,new.target.prototype)}}class b extends Error{constructor(q){super(q),Object.setPrototypeOf(this,new.target.prototype)}}class v extends Error{constructor(q){super(q),Object.setPrototypeOf(this,new.target.prototype)}}class x extends Error{constructor(q){super(q),Object.setPrototypeOf(this,new.target.prototype)}}class y extends Error{constructor(q){super(q),Object.setPrototypeOf(this,new.target.prototype)}}class _ extends Error{constructor(q){super(q),Object.setPrototypeOf(this,new.target.prototype)}}class w extends Error{constructor(q){super(q),Object.setPrototypeOf(this,new.target.prototype)}}class k extends Error{constructor(q,ae){super(ae),this.status=q,Object.setPrototypeOf(this,new.target.prototype)}}var M=function(le,q,ae,Se,Ie){let ot=Pn.createXHR();ot.open("POST",ae.endpoint,!0),ot.setRequestHeader("Content-Type","application/x-www-form-urlencoded");for(var bt in ae.headers)ot.setRequestHeader(bt,ae.headers[bt]);if(ae.headersProvider!=null){let qt=ae.headersProvider();for(var bt in qt)ot.setRequestHeader(bt,qt[bt])}return ot.onreadystatechange=function(){if(ot.readyState===4)if(ot.status===200){let qt,kn=!1;try{qt=JSON.parse(ot.responseText),kn=!0}catch{Ie(new k(200,`JSON returned from ${Se.toString()} endpoint was invalid, yet status code was 200. Data was: ${ot.responseText}`),null)}kn&&Ie(null,qt)}else{let qt="";switch(Se){case h.UserAuthentication:qt=d.buildLogSuffix("authenticationEndpoint");break;case h.ChannelAuthorization:qt=`Clients must be authorized to join private or presence channels. ${d.buildLogSuffix("authorizationEndpoint")}`;break}Ie(new k(ot.status,`Unable to retrieve auth string from ${Se.toString()} endpoint - received status: ${ot.status} from ${ae.endpoint}. ${qt}`),null)}},ot.send(q),ot};function I(le){return C(B(le))}for(var W=String.fromCharCode,J="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",H={},ee=0,j=J.length;ee<j;ee++)H[J.charAt(ee)]=ee;var V=function(le){var q=le.charCodeAt(0);return q<128?le:q<2048?W(192|q>>>6)+W(128|q&63):W(224|q>>>12&15)+W(128|q>>>6&63)+W(128|q&63)},B=function(le){return le.replace(/[^\x00-\x7F]/g,V)},N=function(le){var q=[0,2,1][le.length%3],ae=le.charCodeAt(0)<<16|(le.length>1?le.charCodeAt(1):0)<<8|(le.length>2?le.charCodeAt(2):0),Se=[J.charAt(ae>>>18),J.charAt(ae>>>12&63),q>=2?"=":J.charAt(ae>>>6&63),q>=1?"=":J.charAt(ae&63)];return Se.join("")},C=window.btoa||function(le){return le.replace(/[\s\S]{1,3}/g,N)};class S{constructor(q,ae,Se,Ie){this.clear=ae,this.timer=q(()=>{this.timer&&(this.timer=Ie(this.timer))},Se)}isRunning(){return this.timer!==null}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}}var G=S;function T(le){window.clearTimeout(le)}function Q(le){window.clearInterval(le)}class U extends G{constructor(q,ae){super(setTimeout,T,q,function(Se){return ae(),null})}}class F extends G{constructor(q,ae){super(setInterval,Q,q,function(Se){return ae(),Se})}}var D={now(){return Date.now?Date.now():new Date().valueOf()},defer(le){return new U(0,le)},method(le,...q){var ae=Array.prototype.slice.call(arguments,1);return function(Se){return Se[le].apply(Se,ae.concat(arguments))}}},L=D;function $(le,...q){for(var ae=0;ae<q.length;ae++){var Se=q[ae];for(var Ie in Se)Se[Ie]&&Se[Ie].constructor&&Se[Ie].constructor===Object?le[Ie]=$(le[Ie]||{},Se[Ie]):le[Ie]=Se[Ie]}return le}function Z(){for(var le=["Pusher"],q=0;q<arguments.length;q++)typeof arguments[q]=="string"?le.push(arguments[q]):le.push(je(arguments[q]));return le.join(" : ")}function se(le,q){var ae=Array.prototype.indexOf;if(le===null)return-1;if(ae&&le.indexOf===ae)return le.indexOf(q);for(var Se=0,Ie=le.length;Se<Ie;Se++)if(le[Se]===q)return Se;return-1}function Y(le,q){for(var ae in le)Object.prototype.hasOwnProperty.call(le,ae)&&q(le[ae],ae,le)}function ue(le){var q=[];return Y(le,function(ae,Se){q.push(Se)}),q}function pe(le){var q=[];return Y(le,function(ae){q.push(ae)}),q}function oe(le,q,ae){for(var Se=0;Se<le.length;Se++)q.call(ae||window,le[Se],Se,le)}function de(le,q){for(var ae=[],Se=0;Se<le.length;Se++)ae.push(q(le[Se],Se,le,ae));return ae}function ve(le,q){var ae={};return Y(le,function(Se,Ie){ae[Ie]=q(Se)}),ae}function Ae(le,q){q=q||function(Ie){return!!Ie};for(var ae=[],Se=0;Se<le.length;Se++)q(le[Se],Se,le,ae)&&ae.push(le[Se]);return ae}function Ce(le,q){var ae={};return Y(le,function(Se,Ie){(q&&q(Se,Ie,le,ae)||Boolean(Se))&&(ae[Ie]=Se)}),ae}function Ge(le){var q=[];return Y(le,function(ae,Se){q.push([Se,ae])}),q}function Ee(le,q){for(var ae=0;ae<le.length;ae++)if(q(le[ae],ae,le))return!0;return!1}function Ne(le,q){for(var ae=0;ae<le.length;ae++)if(!q(le[ae],ae,le))return!1;return!0}function De(le){return ve(le,function(q){return typeof q=="object"&&(q=je(q)),encodeURIComponent(I(q.toString()))})}function Ue(le){var q=Ce(le,function(Se){return Se!==void 0}),ae=de(Ge(De(q)),L.method("join","=")).join("&");return ae}function Re(le){var q=[],ae=[];return function Se(Ie,ot){var bt,qt,kn;switch(typeof Ie){case"object":if(!Ie)return null;for(bt=0;bt<q.length;bt+=1)if(q[bt]===Ie)return{$ref:ae[bt]};if(q.push(Ie),ae.push(ot),Object.prototype.toString.apply(Ie)==="[object Array]")for(kn=[],bt=0;bt<Ie.length;bt+=1)kn[bt]=Se(Ie[bt],ot+"["+bt+"]");else{kn={};for(qt in Ie)Object.prototype.hasOwnProperty.call(Ie,qt)&&(kn[qt]=Se(Ie[qt],ot+"["+JSON.stringify(qt)+"]"))}return kn;case"number":case"string":case"boolean":return Ie}}(le,"$")}function je(le){try{return JSON.stringify(le)}catch{return JSON.stringify(Re(le))}}class $e{constructor(){this.globalLog=q=>{window.console&&window.console.log&&window.console.log(q)}}debug(...q){this.log(this.globalLog,q)}warn(...q){this.log(this.globalLogWarn,q)}error(...q){this.log(this.globalLogError,q)}globalLogWarn(q){window.console&&window.console.warn?window.console.warn(q):this.globalLog(q)}globalLogError(q){window.console&&window.console.error?window.console.error(q):this.globalLogWarn(q)}log(q,...ae){var Se=Z.apply(this,arguments);ip.log?ip.log(Se):ip.logToConsole&&q.bind(this)(Se)}}var Le=new $e,Xe=function(le,q,ae,Se,Ie){(ae.headers!==void 0||ae.headersProvider!=null)&&Le.warn(`To send headers with the ${Se.toString()} request, you must use AJAX, rather than JSONP.`);var ot=le.nextAuthCallbackID.toString();le.nextAuthCallbackID++;var bt=le.getDocument(),qt=bt.createElement("script");le.auth_callbacks[ot]=function(Br){Ie(null,Br)};var kn="Pusher.auth_callbacks['"+ot+"']";qt.src=ae.endpoint+"?callback="+encodeURIComponent(kn)+"&"+q;var Cr=bt.getElementsByTagName("head")[0]||bt.documentElement;Cr.insertBefore(qt,Cr.firstChild)},mt=Xe;class fe{constructor(q){this.src=q}send(q){var ae=this,Se="Error loading "+ae.src;ae.script=document.createElement("script"),ae.script.id=q.id,ae.script.src=ae.src,ae.script.type="text/javascript",ae.script.charset="UTF-8",ae.script.addEventListener?(ae.script.onerror=function(){q.callback(Se)},ae.script.onload=function(){q.callback(null)}):ae.script.onreadystatechange=function(){(ae.script.readyState==="loaded"||ae.script.readyState==="complete")&&q.callback(null)},ae.script.async===void 0&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(ae.errorScript=document.createElement("script"),ae.errorScript.id=q.id+"_error",ae.errorScript.text=q.name+"('"+Se+"');",ae.script.async=ae.errorScript.async=!1):ae.script.async=!0;var Ie=document.getElementsByTagName("head")[0];Ie.insertBefore(ae.script,Ie.firstChild),ae.errorScript&&Ie.insertBefore(ae.errorScript,ae.script.nextSibling)}cleanup(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null}}class be{constructor(q,ae){this.url=q,this.data=ae}send(q){if(!this.request){var ae=Ue(this.data),Se=this.url+"/"+q.number+"?"+ae;this.request=Pn.createScriptRequest(Se),this.request.send(q)}}cleanup(){this.request&&this.request.cleanup()}}var ye=function(le,q){return function(ae,Se){var Ie="http"+(q?"s":"")+"://",ot=Ie+(le.host||le.options.host)+le.options.path,bt=Pn.createJSONPRequest(ot,ae),qt=Pn.ScriptReceivers.create(function(kn,Cr){i.remove(qt),bt.cleanup(),Cr&&Cr.host&&(le.host=Cr.host),Se&&Se(kn,Cr)});bt.send(qt)}},Oe={name:"jsonp",getAgent:ye},Me=Oe;function Ke(le,q,ae){var Se=le+(q.useTLS?"s":""),Ie=q.useTLS?q.hostTLS:q.hostNonTLS;return Se+"://"+Ie+ae}function gt(le,q){var ae="/app/"+le,Se="?protocol="+s.PROTOCOL+"&client=js&version="+s.VERSION+(q?"&"+q:"");return ae+Se}var ft={getInitial:function(le,q){var ae=(q.httpPath||"")+gt(le,"flash=false");return Ke("ws",q,ae)}},Bt={getInitial:function(le,q){var ae=(q.httpPath||"/pusher")+gt(le);return Ke("http",q,ae)}},Ft={getInitial:function(le,q){return Ke("http",q,q.httpPath||"/pusher")},getPath:function(le,q){return gt(le)}};class Kn{constructor(){this._callbacks={}}get(q){return this._callbacks[Ut(q)]}add(q,ae,Se){var Ie=Ut(q);this._callbacks[Ie]=this._callbacks[Ie]||[],this._callbacks[Ie].push({fn:ae,context:Se})}remove(q,ae,Se){if(!q&&!ae&&!Se){this._callbacks={};return}var Ie=q?[Ut(q)]:ue(this._callbacks);ae||Se?this.removeCallback(Ie,ae,Se):this.removeAllCallbacks(Ie)}removeCallback(q,ae,Se){oe(q,function(Ie){this._callbacks[Ie]=Ae(this._callbacks[Ie]||[],function(ot){return ae&&ae!==ot.fn||Se&&Se!==ot.context}),this._callbacks[Ie].length===0&&delete this._callbacks[Ie]},this)}removeAllCallbacks(q){oe(q,function(ae){delete this._callbacks[ae]},this)}}function Ut(le){return"_"+le}class ln{constructor(q){this.callbacks=new Kn,this.global_callbacks=[],this.failThrough=q}bind(q,ae,Se){return this.callbacks.add(q,ae,Se),this}bind_global(q){return this.global_callbacks.push(q),this}unbind(q,ae,Se){return this.callbacks.remove(q,ae,Se),this}unbind_global(q){return q?(this.global_callbacks=Ae(this.global_callbacks||[],ae=>ae!==q),this):(this.global_callbacks=[],this)}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(q,ae,Se){for(var Ie=0;Ie<this.global_callbacks.length;Ie++)this.global_callbacks[Ie](q,ae);var ot=this.callbacks.get(q),bt=[];if(Se?bt.push(ae,Se):ae&&bt.push(ae),ot&&ot.length>0)for(var Ie=0;Ie<ot.length;Ie++)ot[Ie].fn.apply(ot[Ie].context||window,bt);else this.failThrough&&this.failThrough(q,ae);return this}}class Yn extends ln{constructor(q,ae,Se,Ie,ot){super(),this.initialize=Pn.transportConnectionInitializer,this.hooks=q,this.name=ae,this.priority=Se,this.key=Ie,this.options=ot,this.state="new",this.timeline=ot.timeline,this.activityTimeout=ot.activityTimeout,this.id=this.timeline.generateUniqueID()}handlesActivityChecks(){return Boolean(this.hooks.handlesActivityChecks)}supportsPing(){return Boolean(this.hooks.supportsPing)}connect(){if(this.socket||this.state!=="initialized")return!1;var q=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(q,this.options)}catch(ae){return L.defer(()=>{this.onError(ae),this.changeState("closed")}),!1}return this.bindListeners(),Le.debug("Connecting",{transport:this.name,url:q}),this.changeState("connecting"),!0}close(){return this.socket?(this.socket.close(),!0):!1}send(q){return this.state==="open"?(L.defer(()=>{this.socket&&this.socket.send(q)}),!0):!1}ping(){this.state==="open"&&this.supportsPing()&&this.socket.ping()}onOpen(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0}onError(q){this.emit("error",{type:"WebSocketError",error:q}),this.timeline.error(this.buildTimelineMessage({error:q.toString()}))}onClose(q){q?this.changeState("closed",{code:q.code,reason:q.reason,wasClean:q.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(q){this.emit("message",q)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=>{this.onOpen()},this.socket.onerror=q=>{this.onError(q)},this.socket.onclose=q=>{this.onClose(q)},this.socket.onmessage=q=>{this.onMessage(q)},this.supportsPing()&&(this.socket.onactivity=()=>{this.onActivity()})}unbindListeners(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))}changeState(q,ae){this.state=q,this.timeline.info(this.buildTimelineMessage({state:q,params:ae})),this.emit(q,ae)}buildTimelineMessage(q){return $({cid:this.id},q)}}class jn{constructor(q){this.hooks=q}isSupported(q){return this.hooks.isSupported(q)}createConnection(q,ae,Se,Ie){return new Yn(this.hooks,q,ae,Se,Ie)}}var Hn=new jn({urls:ft,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return Boolean(Pn.getWebSocketAPI())},isSupported:function(){return Boolean(Pn.getWebSocketAPI())},getSocket:function(le){return Pn.createWebSocket(le)}}),dn={urls:Bt,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},cr=$({getSocket:function(le){return Pn.HTTPFactory.createStreamingSocket(le)}},dn),Bn=$({getSocket:function(le){return Pn.HTTPFactory.createPollingSocket(le)}},dn),Si={isSupported:function(){return Pn.isXHRSupported()}},ir=new jn($({},cr,Si)),Mr=new jn($({},Bn,Si)),ct={ws:Hn,xhr_streaming:ir,xhr_polling:Mr},_n=ct,Oi=new jn({file:"sockjs",urls:Ft,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return window.SockJS!==void 0},getSocket:function(le,q){return new window.SockJS(le,null,{js_path:u.getPath("sockjs",{useTLS:q.useTLS}),ignore_null_origin:q.ignoreNullOrigin})},beforeOpen:function(le,q){le.send(JSON.stringify({path:q}))}}),or={isSupported:function(le){var q=Pn.isXDRSupported(le.useTLS);return q}},bn=new jn($({},cr,or)),Qn=new jn($({},Bn,or));_n.xdr_streaming=bn,_n.xdr_polling=Qn,_n.sockjs=Oi;var Ho=_n;class ds extends ln{constructor(){super();var q=this;window.addEventListener!==void 0&&(window.addEventListener("online",function(){q.emit("online")},!1),window.addEventListener("offline",function(){q.emit("offline")},!1))}isOnline(){return window.navigator.onLine===void 0?!0:window.navigator.onLine}}var $r=new ds;class co{constructor(q,ae,Se){this.manager=q,this.transport=ae,this.minPingDelay=Se.minPingDelay,this.maxPingDelay=Se.maxPingDelay,this.pingDelay=void 0}createConnection(q,ae,Se,Ie){Ie=$({},Ie,{activityTimeout:this.pingDelay});var ot=this.transport.createConnection(q,ae,Se,Ie),bt=null,qt=function(){ot.unbind("open",qt),ot.bind("closed",kn),bt=L.now()},kn=Cr=>{if(ot.unbind("closed",kn),Cr.code===1002||Cr.code===1003)this.manager.reportDeath();else if(!Cr.wasClean&&bt){var Br=L.now()-bt;Br<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(Br/2,this.minPingDelay))}};return ot.bind("open",qt),ot}isSupported(q){return this.manager.isAlive()&&this.transport.isSupported(q)}}let gr={decodeMessage:function(le){try{var q=JSON.parse(le.data),ae=q.data;if(typeof ae=="string")try{ae=JSON.parse(q.data)}catch{}var Se={event:q.event,channel:q.channel,data:ae};return q.user_id&&(Se.user_id=q.user_id),Se}catch(Ie){throw{type:"MessageParseError",error:Ie,data:le.data}}},encodeMessage:function(le){return JSON.stringify(le)},processHandshake:function(le){var q=gr.decodeMessage(le);if(q.event==="pusher:connection_established"){if(!q.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:q.data.socket_id,activityTimeout:q.data.activity_timeout*1e3}}else{if(q.event==="pusher:error")return{action:this.getCloseAction(q.data),error:this.getCloseError(q.data)};throw"Invalid handshake"}},getCloseAction:function(le){return le.code<4e3?le.code>=1002&&le.code<=1004?"backoff":null:le.code===4e3?"tls_only":le.code<4100?"refused":le.code<4200?"backoff":le.code<4300?"retry":"refused"},getCloseError:function(le){return le.code!==1e3&&le.code!==1001?{type:"PusherError",data:{code:le.code,message:le.reason||le.message}}:null}};var sr=gr;class We extends ln{constructor(q,ae){super(),this.id=q,this.transport=ae,this.activityTimeout=ae.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(q){return this.transport.send(q)}send_event(q,ae,Se){var Ie={event:q,data:ae};return Se&&(Ie.channel=Se),Le.debug("Event sent",Ie),this.send(sr.encodeMessage(Ie))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var q={message:Se=>{var Ie;try{Ie=sr.decodeMessage(Se)}catch(ot){this.emit("error",{type:"MessageParseError",error:ot,data:Se.data})}if(Ie!==void 0){switch(Le.debug("Event recd",Ie),Ie.event){case"pusher:error":this.emit("error",{type:"PusherError",data:Ie.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong");break}this.emit("message",Ie)}},activity:()=>{this.emit("activity")},error:Se=>{this.emit("error",Se)},closed:Se=>{ae(),Se&&Se.code&&this.handleCloseEvent(Se),this.transport=null,this.emit("closed")}},ae=()=>{Y(q,(Se,Ie)=>{this.transport.unbind(Ie,Se)})};Y(q,(Se,Ie)=>{this.transport.bind(Ie,Se)})}handleCloseEvent(q){var ae=sr.getCloseAction(q),Se=sr.getCloseError(q);Se&&this.emit("error",Se),ae&&this.emit(ae,{action:ae,error:Se})}}class an{constructor(q,ae){this.transport=q,this.callback=ae,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=q=>{this.unbindListeners();var ae;try{ae=sr.processHandshake(q)}catch(Se){this.finish("error",{error:Se}),this.transport.close();return}ae.action==="connected"?this.finish("connected",{connection:new We(ae.id,this.transport),activityTimeout:ae.activityTimeout}):(this.finish(ae.action,{error:ae.error}),this.transport.close())},this.onClosed=q=>{this.unbindListeners();var ae=sr.getCloseAction(q)||"backoff",Se=sr.getCloseError(q);this.finish(ae,{error:Se})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)}unbindListeners(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)}finish(q,ae){this.callback($({transport:this.transport,action:q},ae))}}class tn{constructor(q,ae){this.timeline=q,this.options=ae||{}}send(q,ae){this.timeline.isEmpty()||this.timeline.send(Pn.TimelineTransport.getAgent(this,q),ae)}}class Ze extends ln{constructor(q,ae){super(function(Se,Ie){Le.debug("No callbacks on "+q+" for "+Se)}),this.name=q,this.pusher=ae,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(q,ae){return ae(null,{auth:""})}trigger(q,ae){if(q.indexOf("client-")!==0)throw new m("Event '"+q+"' does not start with 'client-'");if(!this.subscribed){var Se=d.buildLogSuffix("triggeringClientEvents");Le.warn(`Client event triggered before channel 'subscription_succeeded' event . ${Se}`)}return this.pusher.send_event(q,ae,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(q){var ae=q.event,Se=q.data;if(ae==="pusher_internal:subscription_succeeded")this.handleSubscriptionSucceededEvent(q);else if(ae==="pusher_internal:subscription_count")this.handleSubscriptionCountEvent(q);else if(ae.indexOf("pusher_internal:")!==0){var Ie={};this.emit(ae,Se,Ie)}}handleSubscriptionSucceededEvent(q){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",q.data)}handleSubscriptionCountEvent(q){q.data.subscription_count&&(this.subscriptionCount=q.data.subscription_count),this.emit("pusher:subscription_count",q.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(q,ae)=>{q?(this.subscriptionPending=!1,Le.error(q.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:q.message},q instanceof k?{status:q.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:ae.auth,channel_data:ae.channel_data,channel:this.name})}))}unsubscribe(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})}cancelSubscription(){this.subscriptionCancelled=!0}reinstateSubscription(){this.subscriptionCancelled=!1}}class zt extends Ze{authorize(q,ae){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:q},ae)}}class rn{constructor(){this.reset()}get(q){return Object.prototype.hasOwnProperty.call(this.members,q)?{id:q,info:this.members[q]}:null}each(q){Y(this.members,(ae,Se)=>{q(this.get(Se))})}setMyID(q){this.myID=q}onSubscription(q){this.members=q.presence.hash,this.count=q.presence.count,this.me=this.get(this.myID)}addMember(q){return this.get(q.user_id)===null&&this.count++,this.members[q.user_id]=q.user_info,this.get(q.user_id)}removeMember(q){var ae=this.get(q.user_id);return ae&&(delete this.members[q.user_id],this.count--),ae}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}var Rt=function(le,q,ae,Se){function Ie(ot){return ot instanceof ae?ot:new ae(function(bt){bt(ot)})}return new(ae||(ae=Promise))(function(ot,bt){function qt(Br){try{Cr(Se.next(Br))}catch(ro){bt(ro)}}function kn(Br){try{Cr(Se.throw(Br))}catch(ro){bt(ro)}}function Cr(Br){Br.done?ot(Br.value):Ie(Br.value).then(qt,kn)}Cr((Se=Se.apply(le,q||[])).next())})};class gn extends zt{constructor(q,ae){super(q,ae),this.members=new rn}authorize(q,ae){super.authorize(q,(Se,Ie)=>Rt(this,void 0,void 0,function*(){if(!Se)if(Ie=Ie,Ie.channel_data!=null){var ot=JSON.parse(Ie.channel_data);this.members.setMyID(ot.user_id)}else if(yield this.pusher.user.signinDonePromise,this.pusher.user.user_data!=null)this.members.setMyID(this.pusher.user.user_data.id);else{let bt=d.buildLogSuffix("authorizationEndpoint");Le.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${bt}, or the user should be signed in.`),ae("Invalid auth response");return}ae(Se,Ie)}))}handleEvent(q){var ae=q.event;if(ae.indexOf("pusher_internal:")===0)this.handleInternalEvent(q);else{var Se=q.data,Ie={};q.user_id&&(Ie.user_id=q.user_id),this.emit(ae,Se,Ie)}}handleInternalEvent(q){var ae=q.event,Se=q.data;switch(ae){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(q);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(q);break;case"pusher_internal:member_added":var Ie=this.members.addMember(Se);this.emit("pusher:member_added",Ie);break;case"pusher_internal:member_removed":var ot=this.members.removeMember(Se);ot&&this.emit("pusher:member_removed",ot);break}}handleSubscriptionSucceededEvent(q){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(q.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var Xt=n(1),wn=n(0);class _o extends zt{constructor(q,ae,Se){super(q,ae),this.key=null,this.nacl=Se}authorize(q,ae){super.authorize(q,(Se,Ie)=>{if(Se){ae(Se,Ie);return}let ot=Ie.shared_secret;if(!ot){ae(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null);return}this.key=Object(wn.decode)(ot),delete Ie.shared_secret,ae(null,Ie)})}trigger(q,ae){throw new y("Client events are not currently supported for encrypted channels")}handleEvent(q){var ae=q.event,Se=q.data;if(ae.indexOf("pusher_internal:")===0||ae.indexOf("pusher:")===0){super.handleEvent(q);return}this.handleEncryptedEvent(ae,Se)}handleEncryptedEvent(q,ae){if(!this.key){Le.debug("Received encrypted event before key has been retrieved from the authEndpoint");return}if(!ae.ciphertext||!ae.nonce){Le.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+ae);return}let Se=Object(wn.decode)(ae.ciphertext);if(Se.length<this.nacl.secretbox.overheadLength){Le.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${Se.length}`);return}let Ie=Object(wn.decode)(ae.nonce);if(Ie.length<this.nacl.secretbox.nonceLength){Le.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${Ie.length}`);return}let ot=this.nacl.secretbox.open(Se,Ie,this.key);if(ot===null){Le.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),this.authorize(this.pusher.connection.socket_id,(bt,qt)=>{if(bt){Le.error(`Failed to make a request to the authEndpoint: ${qt}. Unable to fetch new key, so dropping encrypted event`);return}if(ot=this.nacl.secretbox.open(Se,Ie,this.key),ot===null){Le.error("Failed to decrypt event with new key. Dropping encrypted event");return}this.emit(q,this.getDataToEmit(ot))});return}this.emit(q,this.getDataToEmit(ot))}getDataToEmit(q){let ae=Object(Xt.decode)(q);try{return JSON.parse(ae)}catch{return ae}}}class Tl extends ln{constructor(q,ae){super(),this.state="initialized",this.connection=null,this.key=q,this.options=ae,this.timeline=this.options.timeline,this.usingTLS=this.options.useTLS,this.errorCallbacks=this.buildErrorCallbacks(),this.connectionCallbacks=this.buildConnectionCallbacks(this.errorCallbacks),this.handshakeCallbacks=this.buildHandshakeCallbacks(this.errorCallbacks);var Se=Pn.getNetwork();Se.bind("online",()=>{this.timeline.info({netinfo:"online"}),(this.state==="connecting"||this.state==="unavailable")&&this.retryIn(0)}),Se.bind("offline",()=>{this.timeline.info({netinfo:"offline"}),this.connection&&this.sendActivityCheck()}),this.updateStrategy()}connect(){if(!(this.connection||this.runner)){if(!this.strategy.isSupported()){this.updateState("failed");return}this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()}}send(q){return this.connection?this.connection.send(q):!1}send_event(q,ae,Se){return this.connection?this.connection.send_event(q,ae,Se):!1}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var q=(ae,Se)=>{ae?this.runner=this.strategy.connect(0,q):Se.action==="error"?(this.emit("error",{type:"HandshakeError",error:Se.error}),this.timeline.error({handshakeError:Se.error})):(this.abortConnecting(),this.handshakeCallbacks[Se.action](Se))};this.runner=this.strategy.connect(0,q)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){if(this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection){var q=this.abandonConnection();q.close()}}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(q){this.timeline.info({action:"retry",delay:q}),q>0&&this.emit("connecting_in",Math.round(q/1e3)),this.retryTimer=new U(q||0,()=>{this.disconnectInternally(),this.connect()})}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new U(this.options.unavailableTimeout,()=>{this.updateState("unavailable")})}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new U(this.options.pongTimeout,()=>{this.timeline.error({pong_timed_out:this.options.pongTimeout}),this.retryIn(0)})}resetActivityCheck(){this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new U(this.activityTimeout,()=>{this.sendActivityCheck()}))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(q){return $({},q,{message:ae=>{this.resetActivityCheck(),this.emit("message",ae)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:ae=>{this.emit("error",ae)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(q){return $({},q,{connected:ae=>{this.activityTimeout=Math.min(this.options.activityTimeout,ae.activityTimeout,ae.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(ae.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let q=ae=>Se=>{Se.error&&this.emit("error",{type:"WebSocketError",error:Se.error}),ae(Se)};return{tls_only:q(()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)}),refused:q(()=>{this.disconnect()}),backoff:q(()=>{this.retryIn(1e3)}),retry:q(()=>{this.retryIn(0)})}}setConnection(q){this.connection=q;for(var ae in this.connectionCallbacks)this.connection.bind(ae,this.connectionCallbacks[ae]);this.resetActivityCheck()}abandonConnection(){if(!!this.connection){this.stopActivityCheck();for(var q in this.connectionCallbacks)this.connection.unbind(q,this.connectionCallbacks[q]);var ae=this.connection;return this.connection=null,ae}}updateState(q,ae){var Se=this.state;if(this.state=q,Se!==q){var Ie=q;Ie==="connected"&&(Ie+=" with new socket ID "+ae.socket_id),Le.debug("State changed",Se+" -> "+Ie),this.timeline.info({state:q,params:ae}),this.emit("state_change",{previous:Se,current:q}),this.emit(q,ae)}}shouldRetry(){return this.state==="connecting"||this.state==="connected"}}class Dl{constructor(){this.channels={}}add(q,ae){return this.channels[q]||(this.channels[q]=Ks(q,ae)),this.channels[q]}all(){return pe(this.channels)}find(q){return this.channels[q]}remove(q){var ae=this.channels[q];return delete this.channels[q],ae}disconnect(){Y(this.channels,function(q){q.disconnect()})}}function Ks(le,q){if(le.indexOf("private-encrypted-")===0){if(q.config.nacl)return ca.createEncryptedChannel(le,q,q.config.nacl);let ae="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",Se=d.buildLogSuffix("encryptedChannelSupport");throw new y(`${ae}. ${Se}`)}else{if(le.indexOf("private-")===0)return ca.createPrivateChannel(le,q);if(le.indexOf("presence-")===0)return ca.createPresenceChannel(le,q);if(le.indexOf("#")===0)throw new g('Cannot create a channel with name "'+le+'".');return ca.createChannel(le,q)}}var ul={createChannels(){return new Dl},createConnectionManager(le,q){return new Tl(le,q)},createChannel(le,q){return new Ze(le,q)},createPrivateChannel(le,q){return new zt(le,q)},createPresenceChannel(le,q){return new gn(le,q)},createEncryptedChannel(le,q,ae){return new _o(le,q,ae)},createTimelineSender(le,q){return new tn(le,q)},createHandshake(le,q){return new an(le,q)},createAssistantToTheTransportManager(le,q,ae){return new co(le,q,ae)}},ca=ul;class sc{constructor(q){this.options=q||{},this.livesLeft=this.options.lives||1/0}getAssistant(q){return ca.createAssistantToTheTransportManager(this,q,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class ps{constructor(q,ae){this.strategies=q,this.loop=Boolean(ae.loop),this.failFast=Boolean(ae.failFast),this.timeout=ae.timeout,this.timeoutLimit=ae.timeoutLimit}isSupported(){return Ee(this.strategies,L.method("isSupported"))}connect(q,ae){var Se=this.strategies,Ie=0,ot=this.timeout,bt=null,qt=(kn,Cr)=>{Cr?ae(null,Cr):(Ie=Ie+1,this.loop&&(Ie=Ie%Se.length),Ie<Se.length?(ot&&(ot=ot*2,this.timeoutLimit&&(ot=Math.min(ot,this.timeoutLimit))),bt=this.tryStrategy(Se[Ie],q,{timeout:ot,failFast:this.failFast},qt)):ae(!0))};return bt=this.tryStrategy(Se[Ie],q,{timeout:ot,failFast:this.failFast},qt),{abort:function(){bt.abort()},forceMinPriority:function(kn){q=kn,bt&&bt.forceMinPriority(kn)}}}tryStrategy(q,ae,Se,Ie){var ot=null,bt=null;return Se.timeout>0&&(ot=new U(Se.timeout,function(){bt.abort(),Ie(!0)})),bt=q.connect(ae,function(qt,kn){qt&&ot&&ot.isRunning()&&!Se.failFast||(ot&&ot.ensureAborted(),Ie(qt,kn))}),{abort:function(){ot&&ot.ensureAborted(),bt.abort()},forceMinPriority:function(qt){bt.forceMinPriority(qt)}}}}class Qd{constructor(q){this.strategies=q}isSupported(){return Ee(this.strategies,L.method("isSupported"))}connect(q,ae){return Sm(this.strategies,q,function(Se,Ie){return function(ot,bt){if(Ie[Se].error=ot,ot){kh(Ie)&&ae(!0);return}oe(Ie,function(qt){qt.forceMinPriority(bt.transport.priority)}),ae(null,bt)}})}}function Sm(le,q,ae){var Se=de(le,function(Ie,ot,bt,qt){return Ie.connect(q,ae(ot,qt))});return{abort:function(){oe(Se,Om)},forceMinPriority:function(Ie){oe(Se,function(ot){ot.forceMinPriority(Ie)})}}}function kh(le){return Ne(le,function(q){return Boolean(q.error)})}function Om(le){!le.error&&!le.aborted&&(le.abort(),le.aborted=!0)}class Ah{constructor(q,ae,Se){this.strategy=q,this.transports=ae,this.ttl=Se.ttl||1800*1e3,this.usingTLS=Se.useTLS,this.timeline=Se.timeline}isSupported(){return this.strategy.isSupported()}connect(q,ae){var Se=this.usingTLS,Ie=Ch(Se),ot=Ie&&Ie.cacheSkipCount?Ie.cacheSkipCount:0,bt=[this.strategy];if(Ie&&Ie.timestamp+this.ttl>=L.now()){var qt=this.transports[Ie.transport];qt&&(["ws","wss"].includes(Ie.transport)||ot>3?(this.timeline.info({cached:!0,transport:Ie.transport,latency:Ie.latency}),bt.push(new ps([qt],{timeout:Ie.latency*2+1e3,failFast:!0}))):ot++)}var kn=L.now(),Cr=bt.pop().connect(q,function Br(ro,ac){ro?(ku(Se),bt.length>0?(kn=L.now(),Cr=bt.pop().connect(q,Br)):ae(ro)):(Pv(Se,ac.transport.name,L.now()-kn,ot),ae(null,ac))});return{abort:function(){Cr.abort()},forceMinPriority:function(Br){q=Br,Cr&&Cr.forceMinPriority(Br)}}}}function Sa(le){return"pusherTransport"+(le?"TLS":"NonTLS")}function Ch(le){var q=Pn.getLocalStorage();if(q)try{var ae=q[Sa(le)];if(ae)return JSON.parse(ae)}catch{ku(le)}return null}function Pv(le,q,ae,Se){var Ie=Pn.getLocalStorage();if(Ie)try{Ie[Sa(le)]=je({timestamp:L.now(),transport:q,latency:ae,cacheSkipCount:Se})}catch{}}function ku(le){var q=Pn.getLocalStorage();if(q)try{delete q[Sa(le)]}catch{}}class cl{constructor(q,{delay:ae}){this.strategy=q,this.options={delay:ae}}isSupported(){return this.strategy.isSupported()}connect(q,ae){var Se=this.strategy,Ie,ot=new U(this.options.delay,function(){Ie=Se.connect(q,ae)});return{abort:function(){ot.ensureAborted(),Ie&&Ie.abort()},forceMinPriority:function(bt){q=bt,Ie&&Ie.forceMinPriority(bt)}}}}class dl{constructor(q,ae,Se){this.test=q,this.trueBranch=ae,this.falseBranch=Se}isSupported(){var q=this.test()?this.trueBranch:this.falseBranch;return q.isSupported()}connect(q,ae){var Se=this.test()?this.trueBranch:this.falseBranch;return Se.connect(q,ae)}}class lf{constructor(q){this.strategy=q}isSupported(){return this.strategy.isSupported()}connect(q,ae){var Se=this.strategy.connect(q,function(Ie,ot){ot&&Se.abort(),ae(Ie,ot)});return Se}}function Oa(le){return function(){return le.isSupported()}}var Ea=function(le,q,ae){var Se={};function Ie(jm,Iv,Ih,op,da){var Su=ae(le,jm,Iv,Ih,op,da);return Se[jm]=Su,Su}var ot=Object.assign({},q,{hostNonTLS:le.wsHost+":"+le.wsPort,hostTLS:le.wsHost+":"+le.wssPort,httpPath:le.wsPath}),bt=Object.assign({},ot,{useTLS:!0}),qt=Object.assign({},q,{hostNonTLS:le.httpHost+":"+le.httpPort,hostTLS:le.httpHost+":"+le.httpsPort,httpPath:le.httpPath}),kn={loop:!0,timeout:15e3,timeoutLimit:6e4},Cr=new sc({minPingDelay:1e4,maxPingDelay:le.activityTimeout}),Br=new sc({lives:2,minPingDelay:1e4,maxPingDelay:le.activityTimeout}),ro=Ie("ws","ws",3,ot,Cr),ac=Ie("wss","ws",3,bt,Cr),Fv=Ie("sockjs","sockjs",1,qt),vf=Ie("xhr_streaming","xhr_streaming",1,qt,Br),ms=Ie("xdr_streaming","xdr_streaming",1,qt,Br),yf=Ie("xhr_polling","xhr_polling",1,qt),Uc=Ie("xdr_polling","xdr_polling",1,qt),vi=new ps([ro],kn),Lm=new ps([ac],kn),xf=new ps([Fv],kn),Gh=new ps([new dl(Oa(vf),vf,ms)],kn),Vm=new ps([new dl(Oa(yf),yf,Uc)],kn),Jm=new ps([new dl(Oa(Gh),new Qd([Gh,new cl(Vm,{delay:4e3})]),Vm)],kn),Fh=new dl(Oa(Jm),Jm,xf),Ys;return q.useTLS?Ys=new Qd([vi,new cl(Fh,{delay:2e3})]):Ys=new Qd([vi,new cl(Lm,{delay:2e3}),new cl(Fh,{delay:5e3})]),new Ah(new lf(new dl(Oa(ro),Ys,Fh)),Se,{ttl:18e5,timeline:q.timeline,useTLS:q.useTLS})},Sh=Ea,Kc=function(){var le=this;le.timeline.info(le.buildTimelineMessage({transport:le.name+(le.options.useTLS?"s":"")})),le.hooks.isInitialized()?le.changeState("initialized"):le.hooks.file?(le.changeState("initializing"),u.load(le.hooks.file,{useTLS:le.options.useTLS},function(q,ae){le.hooks.isInitialized()?(le.changeState("initialized"),ae(!0)):(q&&le.onError(q),le.onClose(),ae(!1))})):le.onClose()},Em={getRequest:function(le){var q=new window.XDomainRequest;return q.ontimeout=function(){le.emit("error",new b),le.close()},q.onerror=function(ae){le.emit("error",ae),le.close()},q.onprogress=function(){q.responseText&&q.responseText.length>0&&le.onChunk(200,q.responseText)},q.onload=function(){q.responseText&&q.responseText.length>0&&le.onChunk(200,q.responseText),le.emit("finished",200),le.close()},q},abortRequest:function(le){le.ontimeout=le.onerror=le.onprogress=le.onload=null,le.abort()}},Mm=Em;let kv=256*1024;class Yc extends ln{constructor(q,ae,Se){super(),this.hooks=q,this.method=ae,this.url=Se}start(q){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},Pn.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(q)}close(){this.unloader&&(Pn.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(q,ae){for(;;){var Se=this.advanceBuffer(ae);if(Se)this.emit("chunk",{status:q,data:Se});else break}this.isBufferTooLong(ae)&&this.emit("buffer_too_long")}advanceBuffer(q){var ae=q.slice(this.position),Se=ae.indexOf(`
`);return Se!==-1?(this.position+=Se+1,ae.slice(0,Se)):null}isBufferTooLong(q){return this.position===q.length&&q.length>kv}}var uf;(function(le){le[le.CONNECTING=0]="CONNECTING",le[le.OPEN=1]="OPEN",le[le.CLOSED=3]="CLOSED"})(uf||(uf={}));var Rl=uf,cf=1;class Av{constructor(q,ae){this.hooks=q,this.session=Nm(1e3)+"/"+Ov(8),this.location=Bm(ae),this.readyState=Rl.CONNECTING,this.openStream()}send(q){return this.sendRaw(JSON.stringify([q]))}ping(){this.hooks.sendHeartbeat(this)}close(q,ae){this.onClose(q,ae,!0)}sendRaw(q){if(this.readyState===Rl.OPEN)try{return Pn.createSocketRequest("POST",Oh(Cv(this.location,this.session))).start(q),!0}catch{return!1}else return!1}reconnect(){this.closeStream(),this.openStream()}onClose(q,ae,Se){this.closeStream(),this.readyState=Rl.CLOSED,this.onclose&&this.onclose({code:q,reason:ae,wasClean:Se})}onChunk(q){if(q.status===200){this.readyState===Rl.OPEN&&this.onActivity();var ae,Se=q.data.slice(0,1);switch(Se){case"o":ae=JSON.parse(q.data.slice(1)||"{}"),this.onOpen(ae);break;case"a":ae=JSON.parse(q.data.slice(1)||"[]");for(var Ie=0;Ie<ae.length;Ie++)this.onEvent(ae[Ie]);break;case"m":ae=JSON.parse(q.data.slice(1)||"null"),this.onEvent(ae);break;case"h":this.hooks.onHeartbeat(this);break;case"c":ae=JSON.parse(q.data.slice(1)||"[]"),this.onClose(ae[0],ae[1],!0);break}}}onOpen(q){this.readyState===Rl.CONNECTING?(q&&q.hostname&&(this.location.base=Sv(this.location.base,q.hostname)),this.readyState=Rl.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(q){this.readyState===Rl.OPEN&&this.onmessage&&this.onmessage({data:q})}onActivity(){this.onactivity&&this.onactivity()}onError(q){this.onerror&&this.onerror(q)}openStream(){this.stream=Pn.createSocketRequest("POST",Oh(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",q=>{this.onChunk(q)}),this.stream.bind("finished",q=>{this.hooks.onFinished(this,q)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(q){L.defer(()=>{this.onError(q),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function Bm(le){var q=/([^\?]*)\/*(\??.*)/.exec(le);return{base:q[1],queryString:q[2]}}function Cv(le,q){return le.base+"/"+q+"/xhr_send"}function Oh(le){var q=le.indexOf("?")===-1?"?":"&";return le+q+"t="+ +new Date+"&n="+cf++}function Sv(le,q){var ae=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(le);return ae[1]+q+ae[3]}function Nm(le){return Pn.randomInt(le)}function Ov(le){for(var q=[],ae=0;ae<le;ae++)q.push(Nm(32).toString(32));return q.join("")}var Ev=Av,df={getReceiveURL:function(le,q){return le.base+"/"+q+"/xhr_streaming"+le.queryString},onHeartbeat:function(le){le.sendRaw("[]")},sendHeartbeat:function(le){le.sendRaw("[]")},onFinished:function(le,q){le.onClose(1006,"Connection interrupted ("+q+")",!1)}},Mv=df,Au={getReceiveURL:function(le,q){return le.base+"/"+q+"/xhr"+le.queryString},onHeartbeat:function(){},sendHeartbeat:function(le){le.sendRaw("[]")},onFinished:function(le,q){q===200?le.reconnect():le.onClose(1006,"Connection interrupted ("+q+")",!1)}},Bv=Au,Gm={getRequest:function(le){var q=Pn.getXHRAPI(),ae=new q;return ae.onreadystatechange=ae.onprogress=function(){switch(ae.readyState){case 3:ae.responseText&&ae.responseText.length>0&&le.onChunk(ae.status,ae.responseText);break;case 4:ae.responseText&&ae.responseText.length>0&&le.onChunk(ae.status,ae.responseText),le.emit("finished",ae.status),le.close();break}},ae},abortRequest:function(le){le.onreadystatechange=null,le.abort()}},ep=Gm,Ni={createStreamingSocket(le){return this.createSocket(Mv,le)},createPollingSocket(le){return this.createSocket(Bv,le)},createSocket(le,q){return new Ev(le,q)},createXHR(le,q){return this.createRequest(ep,le,q)},createRequest(le,q,ae){return new Yc(le,q,ae)}},gi=Ni;gi.createXDR=function(le,q){return this.createRequest(Mm,le,q)};var Nv=gi,pf={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:i,DependenciesReceivers:l,getDefaultStrategy:Sh,Transports:Ho,transportConnectionInitializer:Kc,HTTPFactory:Nv,TimelineTransport:Me,getXHRAPI(){return window.XMLHttpRequest},getWebSocketAPI(){return window.WebSocket||window.MozWebSocket},setup(le){window.Pusher=le;var q=()=>{this.onDocumentBody(le.ready)};window.JSON?q():u.load("json2",{},q)},getDocument(){return document},getProtocol(){return this.getDocument().location.protocol},getAuthorizers(){return{ajax:M,jsonp:mt}},onDocumentBody(le){document.body?le():setTimeout(()=>{this.onDocumentBody(le)},0)},createJSONPRequest(le,q){return new be(le,q)},createScriptRequest(le){return new fe(le)},getLocalStorage(){try{return window.localStorage}catch{return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){var le=this.getXHRAPI();return new le},createMicrosoftXHR(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork(){return $r},createWebSocket(le){var q=this.getWebSocketAPI();return new q(le)},createSocketRequest(le,q){if(this.isXHRSupported())return this.HTTPFactory.createXHR(le,q);if(this.isXDRSupported(q.indexOf("https:")===0))return this.HTTPFactory.createXDR(le,q);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var le=this.getXHRAPI();return Boolean(le)&&new le().withCredentials!==void 0},isXDRSupported(le){var q=le?"https:":"http:",ae=this.getProtocol();return Boolean(window.XDomainRequest)&&ae===q},addUnloadListener(le){window.addEventListener!==void 0?window.addEventListener("unload",le,!1):window.attachEvent!==void 0&&window.attachEvent("onunload",le)},removeUnloadListener(le){window.addEventListener!==void 0?window.removeEventListener("unload",le,!1):window.detachEvent!==void 0&&window.detachEvent("onunload",le)},randomInt(le){return Math.floor(function(){return(window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)}()*le)}},Pn=pf,Eh;(function(le){le[le.ERROR=3]="ERROR",le[le.INFO=6]="INFO",le[le.DEBUG=7]="DEBUG"})(Eh||(Eh={}));var tp=Eh;class Fm{constructor(q,ae,Se){this.key=q,this.session=ae,this.events=[],this.options=Se||{},this.sent=0,this.uniqueID=0}log(q,ae){q<=this.options.level&&(this.events.push($({},ae,{timestamp:L.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(q){this.log(tp.ERROR,q)}info(q){this.log(tp.INFO,q)}debug(q){this.log(tp.DEBUG,q)}isEmpty(){return this.events.length===0}send(q,ae){var Se=$({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],q(Se,(Ie,ot)=>{Ie||this.sent++,ae&&ae(Ie,ot)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class Im{constructor(q,ae,Se,Ie){this.name=q,this.priority=ae,this.transport=Se,this.options=Ie||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(q,ae){if(this.isSupported()){if(this.priority<q)return zm(new v,ae)}else return zm(new w,ae);var Se=!1,Ie=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),ot=null,bt=function(){Ie.unbind("initialized",bt),Ie.connect()},qt=function(){ot=ca.createHandshake(Ie,function(ro){Se=!0,Br(),ae(null,ro)})},kn=function(ro){Br(),ae(ro)},Cr=function(){Br();var ro;ro=je(Ie),ae(new x(ro))},Br=function(){Ie.unbind("initialized",bt),Ie.unbind("open",qt),Ie.unbind("error",kn),Ie.unbind("closed",Cr)};return Ie.bind("initialized",bt),Ie.bind("open",qt),Ie.bind("error",kn),Ie.bind("closed",Cr),Ie.initialize(),{abort:()=>{Se||(Br(),ot?ot.close():Ie.close())},forceMinPriority:ro=>{Se||this.priority<ro&&(ot?ot.close():Ie.close())}}}}function zm(le,q){return L.defer(function(){q(le)}),{abort:function(){},forceMinPriority:function(){}}}let{Transports:Wo}=Pn;var Mh=function(le,q,ae,Se,Ie,ot){var bt=Wo[ae];if(!bt)throw new _(ae);var qt=(!le.enabledTransports||se(le.enabledTransports,q)!==-1)&&(!le.disabledTransports||se(le.disabledTransports,q)===-1),kn;return qt?(Ie=Object.assign({ignoreNullOrigin:le.ignoreNullOrigin},Ie),kn=new Im(q,Se,ot?ot.getAssistant(bt):bt,Ie)):kn=Cu,kn},Cu={isSupported:function(){return!1},connect:function(le,q){var ae=L.defer(function(){q(new w)});return{abort:function(){ae.ensureAborted()},forceMinPriority:function(){}}}};function Gi(le){if(le==null)throw"You must pass an options object";if(le.cluster==null)throw"Options object must provide a cluster";"disableStats"in le&&Le.warn("The disableStats option is deprecated in favor of enableStats")}let Ll=(le,q)=>{var ae="socket_id="+encodeURIComponent(le.socketId);for(var Se in q.params)ae+="&"+encodeURIComponent(Se)+"="+encodeURIComponent(q.params[Se]);if(q.paramsProvider!=null){let Ie=q.paramsProvider();for(var Se in Ie)ae+="&"+encodeURIComponent(Se)+"="+encodeURIComponent(Ie[Se])}return ae};var Tm=le=>{if(typeof Pn.getAuthorizers()[le.transport]>"u")throw`'${le.transport}' is not a recognized auth transport`;return(q,ae)=>{let Se=Ll(q,le);Pn.getAuthorizers()[le.transport](Pn,Se,le,h.UserAuthentication,ae)}};let Bh=(le,q)=>{var ae="socket_id="+encodeURIComponent(le.socketId);ae+="&channel_name="+encodeURIComponent(le.channelName);for(var Se in q.params)ae+="&"+encodeURIComponent(Se)+"="+encodeURIComponent(q.params[Se]);if(q.paramsProvider!=null){let Ie=q.paramsProvider();for(var Se in Ie)ae+="&"+encodeURIComponent(Se)+"="+encodeURIComponent(Ie[Se])}return ae};var Nh=le=>{if(typeof Pn.getAuthorizers()[le.transport]>"u")throw`'${le.transport}' is not a recognized auth transport`;return(q,ae)=>{let Se=Bh(q,le);Pn.getAuthorizers()[le.transport](Pn,Se,le,h.ChannelAuthorization,ae)}};let np=(le,q,ae)=>{let Se={authTransport:q.transport,authEndpoint:q.endpoint,auth:{params:q.params,headers:q.headers}};return(Ie,ot)=>{let bt=le.channel(Ie.channelName);ae(bt,Se).authorize(Ie.socketId,ot)}};function Ma(le,q){let ae={activityTimeout:le.activityTimeout||s.activityTimeout,cluster:le.cluster,httpPath:le.httpPath||s.httpPath,httpPort:le.httpPort||s.httpPort,httpsPort:le.httpsPort||s.httpsPort,pongTimeout:le.pongTimeout||s.pongTimeout,statsHost:le.statsHost||s.stats_host,unavailableTimeout:le.unavailableTimeout||s.unavailableTimeout,wsPath:le.wsPath||s.wsPath,wsPort:le.wsPort||s.wsPort,wssPort:le.wssPort||s.wssPort,enableStats:hf(le),httpHost:hs(le),useTLS:ff(le),wsHost:Dm(le),userAuthenticator:Vl(le),channelAuthorizer:mf(le,q)};return"disabledTransports"in le&&(ae.disabledTransports=le.disabledTransports),"enabledTransports"in le&&(ae.enabledTransports=le.enabledTransports),"ignoreNullOrigin"in le&&(ae.ignoreNullOrigin=le.ignoreNullOrigin),"timelineParams"in le&&(ae.timelineParams=le.timelineParams),"nacl"in le&&(ae.nacl=le.nacl),ae}function hs(le){return le.httpHost?le.httpHost:le.cluster?`sockjs-${le.cluster}.pusher.com`:s.httpHost}function Dm(le){return le.wsHost?le.wsHost:no(le.cluster)}function no(le){return`ws-${le}.pusher.com`}function ff(le){return Pn.getProtocol()==="https:"?!0:le.forceTLS!==!1}function hf(le){return"enableStats"in le?le.enableStats:"disableStats"in le?!le.disableStats:!1}function Vl(le){let q=Object.assign(Object.assign({},s.userAuthentication),le.userAuthentication);return"customHandler"in q&&q.customHandler!=null?q.customHandler:Tm(q)}function rp(le,q){let ae;return"channelAuthorization"in le?ae=Object.assign(Object.assign({},s.channelAuthorization),le.channelAuthorization):(ae={transport:le.authTransport||s.authTransport,endpoint:le.authEndpoint||s.authEndpoint},"auth"in le&&("params"in le.auth&&(ae.params=le.auth.params),"headers"in le.auth&&(ae.headers=le.auth.headers)),"authorizer"in le&&(ae.customHandler=np(q,ae,le.authorizer))),ae}function mf(le,q){let ae=rp(le,q);return"customHandler"in ae&&ae.customHandler!=null?ae.customHandler:Nh(ae)}class li extends ln{constructor(q){super(function(ae,Se){Le.debug(`No callbacks on watchlist events for ${ae}`)}),this.pusher=q,this.bindWatchlistInternalEvent()}handleEvent(q){q.data.events.forEach(ae=>{this.emit(ae.name,ae)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",q=>{var ae=q.event;ae==="pusher_internal:watchlist_events"&&this.handleEvent(q)})}}function Ba(){let le,q;return{promise:new Promise((Se,Ie)=>{le=Se,q=Ie}),resolve:le,reject:q}}var gf=Ba;class Rm extends ln{constructor(q){super(function(ae,Se){Le.debug("No callbacks on user for "+ae)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(ae,Se)=>{if(ae){Le.warn(`Error during signin: ${ae}`),this._cleanup();return}this.pusher.send_event("pusher:signin",{auth:Se.auth,user_data:Se.user_data})},this.pusher=q,this.pusher.connection.bind("state_change",({previous:ae,current:Se})=>{ae!=="connected"&&Se==="connected"&&this._signin(),ae==="connected"&&Se!=="connected"&&(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new li(q),this.pusher.connection.bind("message",ae=>{var Se=ae.event;Se==="pusher:signin_success"&&this._onSigninSuccess(ae.data),this.serverToUserChannel&&this.serverToUserChannel.name===ae.channel&&this.serverToUserChannel.handleEvent(ae)})}signin(){this.signin_requested||(this.signin_requested=!0,this._signin())}_signin(){!this.signin_requested||(this._newSigninPromiseIfNeeded(),this.pusher.connection.state==="connected"&&this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))}_onSigninSuccess(q){try{this.user_data=JSON.parse(q.user_data)}catch{Le.error(`Failed parsing user data after signin: ${q.user_data}`),this._cleanup();return}if(typeof this.user_data.id!="string"||this.user_data.id===""){Le.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),this._cleanup();return}this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){let q=ae=>{ae.subscriptionPending&&ae.subscriptionCancelled?ae.reinstateSubscription():!ae.subscriptionPending&&this.pusher.connection.state==="connected"&&ae.subscribe()};this.serverToUserChannel=new Ze(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((ae,Se)=>{ae.indexOf("pusher_internal:")===0||ae.indexOf("pusher:")===0||this.emit(ae,Se)}),q(this.serverToUserChannel)}_cleanup(){this.user_data=null,this.serverToUserChannel&&(this.serverToUserChannel.unbind_all(),this.serverToUserChannel.disconnect(),this.serverToUserChannel=null),this.signin_requested&&this._signinDoneResolve()}_newSigninPromiseIfNeeded(){if(!this.signin_requested||this.signinDonePromise&&!this.signinDonePromise.done)return;let{promise:q,resolve:ae,reject:Se}=gf();q.done=!1;let Ie=()=>{q.done=!0};q.then(Ie).catch(Ie),this.signinDonePromise=q,this._signinDoneResolve=ae}}class bo{static ready(){bo.isReady=!0;for(var q=0,ae=bo.instances.length;q<ae;q++)bo.instances[q].connect()}static getClientFeatures(){return ue(Ce({ws:Pn.Transports.ws},function(q){return q.isSupported({})}))}constructor(q,ae){Zc(q),Gi(ae),this.key=q,this.config=Ma(ae,this),this.channels=ca.createChannels(),this.global_emitter=new ln,this.sessionID=Pn.randomInt(1e9),this.timeline=new Fm(this.key,this.sessionID,{cluster:this.config.cluster,features:bo.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:tp.INFO,version:s.VERSION}),this.config.enableStats&&(this.timelineSender=ca.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+Pn.TimelineTransport.name}));var Se=Ie=>Pn.getDefaultStrategy(this.config,Ie,Mh);this.connection=ca.createConnectionManager(this.key,{getStrategy:Se,timeline:this.timeline,activityTimeout:this.config.activityTimeout,pongTimeout:this.config.pongTimeout,unavailableTimeout:this.config.unavailableTimeout,useTLS:Boolean(this.config.useTLS)}),this.connection.bind("connected",()=>{this.subscribeAll(),this.timelineSender&&this.timelineSender.send(this.connection.isUsingTLS())}),this.connection.bind("message",Ie=>{var ot=Ie.event,bt=ot.indexOf("pusher_internal:")===0;if(Ie.channel){var qt=this.channel(Ie.channel);qt&&qt.handleEvent(Ie)}bt||this.global_emitter.emit(Ie.event,Ie.data)}),this.connection.bind("connecting",()=>{this.channels.disconnect()}),this.connection.bind("disconnected",()=>{this.channels.disconnect()}),this.connection.bind("error",Ie=>{Le.warn(Ie)}),bo.instances.push(this),this.timeline.info({instances:bo.instances.length}),this.user=new Rm(this),bo.isReady&&this.connect()}channel(q){return this.channels.find(q)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var q=this.connection.isUsingTLS(),ae=this.timelineSender;this.timelineSenderTimer=new F(6e4,function(){ae.send(q)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(q,ae,Se){return this.global_emitter.bind(q,ae,Se),this}unbind(q,ae,Se){return this.global_emitter.unbind(q,ae,Se),this}bind_global(q){return this.global_emitter.bind_global(q),this}unbind_global(q){return this.global_emitter.unbind_global(q),this}unbind_all(q){return this.global_emitter.unbind_all(),this}subscribeAll(){var q;for(q in this.channels.channels)this.channels.channels.hasOwnProperty(q)&&this.subscribe(q)}subscribe(q){var ae=this.channels.add(q,this);return ae.subscriptionPending&&ae.subscriptionCancelled?ae.reinstateSubscription():!ae.subscriptionPending&&this.connection.state==="connected"&&ae.subscribe(),ae}unsubscribe(q){var ae=this.channels.find(q);ae&&ae.subscriptionPending?ae.cancelSubscription():(ae=this.channels.remove(q),ae&&ae.subscribed&&ae.unsubscribe())}send_event(q,ae,Se){return this.connection.send_event(q,ae,Se)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}bo.instances=[],bo.isReady=!1,bo.logToConsole=!1,bo.Runtime=Pn,bo.ScriptReceivers=Pn.ScriptReceivers,bo.DependenciesReceivers=Pn.DependenciesReceivers,bo.auth_callbacks=Pn.auth_callbacks;var ip=t.default=bo;function Zc(le){if(le==null)throw"You must pass your app key when you instantiate Pusher."}Pn.setup(bo)}])})});var Fde=ne((Hf,Zj)=>{(function(e,t){typeof Hf=="object"&&typeof Zj<"u"?Zj.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.Sweetalert2=t())})(Hf,function(){"use strict";let t={},n=()=>{t.previousActiveElement instanceof HTMLElement?(t.previousActiveElement.focus(),t.previousActiveElement=null):document.body&&document.body.focus()},r=X=>new Promise(K=>{if(!X)return K();let me=window.scrollX,Fe=window.scrollY;t.restoreFocusTimeout=setTimeout(()=>{n(),K()},100),window.scrollTo(me,Fe)});var i={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};let o="swal2-",a=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"].reduce((X,K)=>(X[K]=o+K,X),{}),u=["success","warning","info","question","error"].reduce((X,K)=>(X[K]=o+K,X),{}),c="SweetAlert2:",f=X=>{let K=[];for(let me=0;me<X.length;me++)K.indexOf(X[me])===-1&&K.push(X[me]);return K},d=X=>X.charAt(0).toUpperCase()+X.slice(1),h=X=>{console.warn(`${c} ${typeof X=="object"?X.join(" "):X}`)},m=X=>{console.error(`${c} ${X}`)},g=[],b=X=>{g.includes(X)||(g.push(X),h(X))},v=(X,K)=>{b(`"${X}" is deprecated and will be removed in the next major release. Please use "${K}" instead.`)},x=X=>typeof X=="function"?X():X,y=X=>X&&typeof X.toPromise=="function",_=X=>y(X)?X.toPromise():Promise.resolve(X),w=X=>X&&Promise.resolve(X)===X,k=()=>document.body.querySelector(`.${a.container}`),O=X=>{let K=k();return K?K.querySelector(X):null},M=X=>O(`.${X}`),I=()=>M(a.popup),W=()=>M(a.icon),J=()=>M(a["icon-content"]),H=()=>M(a.title),ee=()=>M(a["html-container"]),j=()=>M(a.image),V=()=>M(a["progress-steps"]),B=()=>M(a["validation-message"]),N=()=>O(`.${a.actions} .${a.confirm}`),C=()=>O(`.${a.actions} .${a.cancel}`),S=()=>O(`.${a.actions} .${a.deny}`),G=()=>M(a["input-label"]),T=()=>O(`.${a.loader}`),Q=()=>M(a.actions),U=()=>M(a.footer),F=()=>M(a["timer-progress-bar"]),D=()=>M(a.close),L=`
  a[href],
  area[href],
  input:not([disabled]),
  select:not([disabled]),
  textarea:not([disabled]),
  button:not([disabled]),
  iframe,
  object,
  embed,
  [tabindex="0"],
  [contenteditable],
  audio[controls],
  video[controls],
  summary
`,$=()=>{let X=Array.from(I().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((me,Fe)=>{let nt=parseInt(me.getAttribute("tabindex")),on=parseInt(Fe.getAttribute("tabindex"));return nt>on?1:nt<on?-1:0}),K=Array.from(I().querySelectorAll(L)).filter(me=>me.getAttribute("tabindex")!=="-1");return f(X.concat(K)).filter(me=>Xe(me))},Z=()=>oe(document.body,a.shown)&&!oe(document.body,a["toast-shown"])&&!oe(document.body,a["no-backdrop"]),se=()=>I()&&oe(I(),a.toast),Y=()=>I().hasAttribute("data-loading"),ue={previousBodyPadding:null},pe=(X,K)=>{if(X.textContent="",K){let Fe=new DOMParser().parseFromString(K,"text/html");Array.from(Fe.querySelector("head").childNodes).forEach(nt=>{X.appendChild(nt)}),Array.from(Fe.querySelector("body").childNodes).forEach(nt=>{nt instanceof HTMLVideoElement||nt instanceof HTMLAudioElement?X.appendChild(nt.cloneNode(!0)):X.appendChild(nt)})}},oe=(X,K)=>{if(!K)return!1;let me=K.split(/\s+/);for(let Fe=0;Fe<me.length;Fe++)if(!X.classList.contains(me[Fe]))return!1;return!0},de=(X,K)=>{Array.from(X.classList).forEach(me=>{!Object.values(a).includes(me)&&!Object.values(u).includes(me)&&!Object.values(K.showClass).includes(me)&&X.classList.remove(me)})},ve=(X,K,me)=>{if(de(X,K),K.customClass&&K.customClass[me]){if(typeof K.customClass[me]!="string"&&!K.customClass[me].forEach){h(`Invalid type of customClass.${me}! Expected string or iterable object, got "${typeof K.customClass[me]}"`);return}Ee(X,K.customClass[me])}},Ae=(X,K)=>{if(!K)return null;switch(K){case"select":case"textarea":case"file":return X.querySelector(`.${a.popup} > .${a[K]}`);case"checkbox":return X.querySelector(`.${a.popup} > .${a.checkbox} input`);case"radio":return X.querySelector(`.${a.popup} > .${a.radio} input:checked`)||X.querySelector(`.${a.popup} > .${a.radio} input:first-child`);case"range":return X.querySelector(`.${a.popup} > .${a.range} input`);default:return X.querySelector(`.${a.popup} > .${a.input}`)}},Ce=X=>{if(X.focus(),X.type!=="file"){let K=X.value;X.value="",X.value=K}},Ge=(X,K,me)=>{!X||!K||(typeof K=="string"&&(K=K.split(/\s+/).filter(Boolean)),K.forEach(Fe=>{Array.isArray(X)?X.forEach(nt=>{me?nt.classList.add(Fe):nt.classList.remove(Fe)}):me?X.classList.add(Fe):X.classList.remove(Fe)}))},Ee=(X,K)=>{Ge(X,K,!0)},Ne=(X,K)=>{Ge(X,K,!1)},De=(X,K)=>{let me=Array.from(X.children);for(let Fe=0;Fe<me.length;Fe++){let nt=me[Fe];if(nt instanceof HTMLElement&&oe(nt,K))return nt}},Ue=(X,K,me)=>{me===`${parseInt(me)}`&&(me=parseInt(me)),me||parseInt(me)===0?X.style[K]=typeof me=="number"?`${me}px`:me:X.style.removeProperty(K)},Re=function(X){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"flex";X.style.display=K},je=X=>{X.style.display="none"},$e=(X,K,me,Fe)=>{let nt=X.querySelector(K);nt&&(nt.style[me]=Fe)},Le=function(X,K){let me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"flex";K?Re(X,me):je(X)},Xe=X=>!!(X&&(X.offsetWidth||X.offsetHeight||X.getClientRects().length)),mt=()=>!Xe(N())&&!Xe(S())&&!Xe(C()),fe=X=>X.scrollHeight>X.clientHeight,be=X=>{let K=window.getComputedStyle(X),me=parseFloat(K.getPropertyValue("animation-duration")||"0"),Fe=parseFloat(K.getPropertyValue("transition-duration")||"0");return me>0||Fe>0},ye=function(X){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,me=F();Xe(me)&&(K&&(me.style.transition="none",me.style.width="100%"),setTimeout(()=>{me.style.transition=`width ${X/1e3}s linear`,me.style.width="0%"},10))},Oe=()=>{let X=F(),K=parseInt(window.getComputedStyle(X).width);X.style.removeProperty("transition"),X.style.width="100%";let me=parseInt(window.getComputedStyle(X).width),Fe=K/me*100;X.style.width=`${Fe}%`},Me=()=>typeof window>"u"||typeof document>"u",Ke=`
 <div aria-labelledby="${a.title}" aria-describedby="${a["html-container"]}" class="${a.popup}" tabindex="-1">
   <button type="button" class="${a.close}"></button>
   <ul class="${a["progress-steps"]}"></ul>
   <div class="${a.icon}"></div>
   <img class="${a.image}" />
   <h2 class="${a.title}" id="${a.title}"></h2>
   <div class="${a["html-container"]}" id="${a["html-container"]}"></div>
   <input class="${a.input}" />
   <input type="file" class="${a.file}" />
   <div class="${a.range}">
     <input type="range" />
     <output></output>
   </div>
   <select class="${a.select}"></select>
   <div class="${a.radio}"></div>
   <label for="${a.checkbox}" class="${a.checkbox}">
     <input type="checkbox" />
     <span class="${a.label}"></span>
   </label>
   <textarea class="${a.textarea}"></textarea>
   <div class="${a["validation-message"]}" id="${a["validation-message"]}"></div>
   <div class="${a.actions}">
     <div class="${a.loader}"></div>
     <button type="button" class="${a.confirm}"></button>
     <button type="button" class="${a.deny}"></button>
     <button type="button" class="${a.cancel}"></button>
   </div>
   <div class="${a.footer}"></div>
   <div class="${a["timer-progress-bar-container"]}">
     <div class="${a["timer-progress-bar"]}"></div>
   </div>
 </div>
`.replace(/(^|\n)\s*/g,""),gt=()=>{let X=k();return X?(X.remove(),Ne([document.documentElement,document.body],[a["no-backdrop"],a["toast-shown"],a["has-column"]]),!0):!1},ft=()=>{t.currentInstance.resetValidationMessage()},Bt=()=>{let X=I(),K=De(X,a.input),me=De(X,a.file),Fe=X.querySelector(`.${a.range} input`),nt=X.querySelector(`.${a.range} output`),on=De(X,a.select),xi=X.querySelector(`.${a.checkbox} input`),Ga=De(X,a.textarea);K.oninput=ft,me.onchange=ft,on.onchange=ft,xi.onchange=ft,Ga.oninput=ft,Fe.oninput=()=>{ft(),nt.value=Fe.value},Fe.onchange=()=>{ft(),nt.value=Fe.value}},Ft=X=>typeof X=="string"?document.querySelector(X):X,Kn=X=>{let K=I();K.setAttribute("role",X.toast?"alert":"dialog"),K.setAttribute("aria-live",X.toast?"polite":"assertive"),X.toast||K.setAttribute("aria-modal","true")},Ut=X=>{window.getComputedStyle(X).direction==="rtl"&&Ee(k(),a.rtl)},ln=X=>{let K=gt();if(Me()){m("SweetAlert2 requires document to initialize");return}let me=document.createElement("div");me.className=a.container,K&&Ee(me,a["no-transition"]),pe(me,Ke);let Fe=Ft(X.target);Fe.appendChild(me),Kn(X),Ut(Fe),Bt()},Yn=(X,K)=>{X instanceof HTMLElement?K.appendChild(X):typeof X=="object"?jn(X,K):X&&pe(K,X)},jn=(X,K)=>{X.jquery?Hn(K,X):pe(K,X.toString())},Hn=(X,K)=>{if(X.textContent="",0 in K)for(let me=0;me in K;me++)X.appendChild(K[me].cloneNode(!0));else X.appendChild(K.cloneNode(!0))},dn=(()=>{if(Me())return!1;let X=document.createElement("div"),K={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(let me in K)if(Object.prototype.hasOwnProperty.call(K,me)&&typeof X.style[me]<"u")return K[me];return!1})(),cr=()=>{let X=document.createElement("div");X.className=a["scrollbar-measure"],document.body.appendChild(X);let K=X.getBoundingClientRect().width-X.clientWidth;return document.body.removeChild(X),K},Bn=(X,K)=>{let me=Q(),Fe=T();!K.showConfirmButton&&!K.showDenyButton&&!K.showCancelButton?je(me):Re(me),ve(me,K,"actions"),Si(me,Fe,K),pe(Fe,K.loaderHtml),ve(Fe,K,"loader")};function Si(X,K,me){let Fe=N(),nt=S(),on=C();Mr(Fe,"confirm",me),Mr(nt,"deny",me),Mr(on,"cancel",me),ir(Fe,nt,on,me),me.reverseButtons&&(me.toast?(X.insertBefore(on,Fe),X.insertBefore(nt,Fe)):(X.insertBefore(on,K),X.insertBefore(nt,K),X.insertBefore(Fe,K)))}function ir(X,K,me,Fe){if(!Fe.buttonsStyling){Ne([X,K,me],a.styled);return}Ee([X,K,me],a.styled),Fe.confirmButtonColor&&(X.style.backgroundColor=Fe.confirmButtonColor,Ee(X,a["default-outline"])),Fe.denyButtonColor&&(K.style.backgroundColor=Fe.denyButtonColor,Ee(K,a["default-outline"])),Fe.cancelButtonColor&&(me.style.backgroundColor=Fe.cancelButtonColor,Ee(me,a["default-outline"]))}function Mr(X,K,me){Le(X,me[`show${d(K)}Button`],"inline-block"),pe(X,me[`${K}ButtonText`]),X.setAttribute("aria-label",me[`${K}ButtonAriaLabel`]),X.className=a[K],ve(X,me,`${K}Button`),Ee(X,me[`${K}ButtonClass`])}let ct=(X,K)=>{let me=D();pe(me,K.closeButtonHtml),ve(me,K,"closeButton"),Le(me,K.showCloseButton),me.setAttribute("aria-label",K.closeButtonAriaLabel)},_n=(X,K)=>{let me=k();!me||(Oi(me,K.backdrop),or(me,K.position),bn(me,K.grow),ve(me,K,"container"))};function Oi(X,K){typeof K=="string"?X.style.background=K:K||Ee([document.documentElement,document.body],a["no-backdrop"])}function or(X,K){K in a?Ee(X,a[K]):(h('The "position" parameter is not valid, defaulting to "center"'),Ee(X,a.center))}function bn(X,K){if(K&&typeof K=="string"){let me=`grow-${K}`;me in a&&Ee(X,a[me])}}let Qn=["input","file","range","select","radio","checkbox","textarea"],Ho=(X,K)=>{let me=I(),Fe=i.innerParams.get(X),nt=!Fe||K.input!==Fe.input;Qn.forEach(on=>{let xi=De(me,a[on]);co(on,K.inputAttributes),xi.className=a[on],nt&&je(xi)}),K.input&&(nt&&ds(K),gr(K))},ds=X=>{if(!Ze[X.input]){m(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${X.input}"`);return}let K=an(X.input),me=Ze[X.input](K,X);Re(K),X.inputAutoFocus&&setTimeout(()=>{Ce(me)})},$r=X=>{for(let K=0;K<X.attributes.length;K++){let me=X.attributes[K].name;["type","value","style"].includes(me)||X.removeAttribute(me)}},co=(X,K)=>{let me=Ae(I(),X);if(!!me){$r(me);for(let Fe in K)me.setAttribute(Fe,K[Fe])}},gr=X=>{let K=an(X.input);typeof X.customClass=="object"&&Ee(K,X.customClass.input)},sr=(X,K)=>{(!X.placeholder||K.inputPlaceholder)&&(X.placeholder=K.inputPlaceholder)},We=(X,K,me)=>{if(me.inputLabel){X.id=a.input;let Fe=document.createElement("label"),nt=a["input-label"];Fe.setAttribute("for",X.id),Fe.className=nt,typeof me.customClass=="object"&&Ee(Fe,me.customClass.inputLabel),Fe.innerText=me.inputLabel,K.insertAdjacentElement("beforebegin",Fe)}},an=X=>De(I(),a[X]||a.input),tn=(X,K)=>{["string","number"].includes(typeof K)?X.value=`${K}`:w(K)||h(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof K}"`)},Ze={};Ze.text=Ze.email=Ze.password=Ze.number=Ze.tel=Ze.url=(X,K)=>(tn(X,K.inputValue),We(X,X,K),sr(X,K),X.type=K.input,X),Ze.file=(X,K)=>(We(X,X,K),sr(X,K),X),Ze.range=(X,K)=>{let me=X.querySelector("input"),Fe=X.querySelector("output");return tn(me,K.inputValue),me.type=K.input,tn(Fe,K.inputValue),We(me,X,K),X},Ze.select=(X,K)=>{if(X.textContent="",K.inputPlaceholder){let me=document.createElement("option");pe(me,K.inputPlaceholder),me.value="",me.disabled=!0,me.selected=!0,X.appendChild(me)}return We(X,X,K),X},Ze.radio=X=>(X.textContent="",X),Ze.checkbox=(X,K)=>{let me=Ae(I(),"checkbox");me.value="1",me.id=a.checkbox,me.checked=Boolean(K.inputValue);let Fe=X.querySelector("span");return pe(Fe,K.inputPlaceholder),me},Ze.textarea=(X,K)=>{tn(X,K.inputValue),sr(X,K),We(X,X,K);let me=Fe=>parseInt(window.getComputedStyle(Fe).marginLeft)+parseInt(window.getComputedStyle(Fe).marginRight);return setTimeout(()=>{if("MutationObserver"in window){let Fe=parseInt(window.getComputedStyle(I()).width),nt=()=>{let on=X.offsetWidth+me(X);on>Fe?I().style.width=`${on}px`:I().style.width=null};new MutationObserver(nt).observe(X,{attributes:!0,attributeFilter:["style"]})}}),X};let zt=(X,K)=>{let me=ee();ve(me,K,"htmlContainer"),K.html?(Yn(K.html,me),Re(me,"block")):K.text?(me.textContent=K.text,Re(me,"block")):je(me),Ho(X,K)},rn=(X,K)=>{let me=U();Le(me,K.footer),K.footer&&Yn(K.footer,me),ve(me,K,"footer")},Rt=(X,K)=>{let me=i.innerParams.get(X),Fe=W();if(me&&K.icon===me.icon){Tl(Fe,K),gn(Fe,K);return}if(!K.icon&&!K.iconHtml){je(Fe);return}if(K.icon&&Object.keys(u).indexOf(K.icon)===-1){m(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${K.icon}"`),je(Fe);return}Re(Fe),Tl(Fe,K),gn(Fe,K),Ee(Fe,K.showClass.icon)},gn=(X,K)=>{for(let me in u)K.icon!==me&&Ne(X,u[me]);Ee(X,u[K.icon]),Dl(X,K),Xt(),ve(X,K,"icon")},Xt=()=>{let X=I(),K=window.getComputedStyle(X).getPropertyValue("background-color"),me=X.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let Fe=0;Fe<me.length;Fe++)me[Fe].style.backgroundColor=K},wn=`
  <div class="swal2-success-circular-line-left"></div>
  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
  <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
  <div class="swal2-success-circular-line-right"></div>
`,_o=`
  <span class="swal2-x-mark">
    <span class="swal2-x-mark-line-left"></span>
    <span class="swal2-x-mark-line-right"></span>
  </span>
`,Tl=(X,K)=>{let me=X.innerHTML,Fe;K.iconHtml?Fe=Ks(K.iconHtml):K.icon==="success"?(Fe=wn,me=me.replace(/ style=".*?"/g,"")):K.icon==="error"?Fe=_o:Fe=Ks({question:"?",warning:"!",info:"i"}[K.icon]),me.trim()!==Fe.trim()&&pe(X,Fe)},Dl=(X,K)=>{if(!!K.iconColor){X.style.color=K.iconColor,X.style.borderColor=K.iconColor;for(let me of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])$e(X,me,"backgroundColor",K.iconColor);$e(X,".swal2-success-ring","borderColor",K.iconColor)}},Ks=X=>`<div class="${a["icon-content"]}">${X}</div>`,ul=(X,K)=>{let me=j();if(!!me){if(!K.imageUrl){je(me);return}Re(me,""),me.setAttribute("src",K.imageUrl),me.setAttribute("alt",K.imageAlt||""),Ue(me,"width",K.imageWidth),Ue(me,"height",K.imageHeight),me.className=a.image,ve(me,K,"image")}},ca=(X,K)=>{let me=k(),Fe=I();K.toast?(Ue(me,"width",K.width),Fe.style.width="100%",Fe.insertBefore(T(),W())):Ue(Fe,"width",K.width),Ue(Fe,"padding",K.padding),K.color&&(Fe.style.color=K.color),K.background&&(Fe.style.background=K.background),je(B()),sc(Fe,K)},sc=(X,K)=>{X.className=`${a.popup} ${Xe(X)?K.showClass.popup:""}`,K.toast?(Ee([document.documentElement,document.body],a["toast-shown"]),Ee(X,a.toast)):Ee(X,a.modal),ve(X,K,"popup"),typeof K.customClass=="string"&&Ee(X,K.customClass),K.icon&&Ee(X,a[`icon-${K.icon}`])},ps=(X,K)=>{let me=V();if(!K.progressSteps||K.progressSteps.length===0){je(me);return}Re(me),me.textContent="",K.currentProgressStep>=K.progressSteps.length&&h("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),K.progressSteps.forEach((Fe,nt)=>{let on=Qd(Fe);if(me.appendChild(on),nt===K.currentProgressStep&&Ee(on,a["active-progress-step"]),nt!==K.progressSteps.length-1){let xi=Sm(K);me.appendChild(xi)}})},Qd=X=>{let K=document.createElement("li");return Ee(K,a["progress-step"]),pe(K,X),K},Sm=X=>{let K=document.createElement("li");return Ee(K,a["progress-step-line"]),X.progressStepsDistance&&Ue(K,"width",X.progressStepsDistance),K},kh=(X,K)=>{let me=H();Le(me,K.title||K.titleText,"block"),K.title&&Yn(K.title,me),K.titleText&&(me.innerText=K.titleText),ve(me,K,"title")},Om=(X,K)=>{ca(X,K),_n(X,K),ps(X,K),Rt(X,K),ul(X,K),kh(X,K),ct(X,K),zt(X,K),Bn(X,K),rn(X,K),typeof K.didRender=="function"&&K.didRender(I())},Ah=()=>Xe(I()),Sa=()=>N()&&N().click(),Ch=()=>S()&&S().click(),Pv=()=>C()&&C().click(),ku=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),cl=X=>{X.keydownTarget&&X.keydownHandlerAdded&&(X.keydownTarget.removeEventListener("keydown",X.keydownHandler,{capture:X.keydownListenerCapture}),X.keydownHandlerAdded=!1)},dl=(X,K,me,Fe)=>{cl(K),me.toast||(K.keydownHandler=nt=>Sh(X,nt,Fe),K.keydownTarget=me.keydownListenerCapture?window:I(),K.keydownListenerCapture=me.keydownListenerCapture,K.keydownTarget.addEventListener("keydown",K.keydownHandler,{capture:K.keydownListenerCapture}),K.keydownHandlerAdded=!0)},lf=(X,K)=>{let me=$();if(me.length){X=X+K,X===me.length?X=0:X===-1&&(X=me.length-1),me[X].focus();return}I().focus()},Oa=["ArrowRight","ArrowDown"],Ea=["ArrowLeft","ArrowUp"],Sh=(X,K,me)=>{let Fe=i.innerParams.get(X);!Fe||K.isComposing||K.keyCode===229||(Fe.stopKeydownPropagation&&K.stopPropagation(),K.key==="Enter"?Kc(X,K,Fe):K.key==="Tab"?Em(K):[...Oa,...Ea].includes(K.key)?Mm(K.key):K.key==="Escape"&&kv(K,Fe,me))},Kc=(X,K,me)=>{if(!!x(me.allowEnterKey)&&K.target&&X.getInput()&&K.target instanceof HTMLElement&&K.target.outerHTML===X.getInput().outerHTML){if(["textarea","file"].includes(me.input))return;Sa(),K.preventDefault()}},Em=X=>{let K=X.target,me=$(),Fe=-1;for(let nt=0;nt<me.length;nt++)if(K===me[nt]){Fe=nt;break}X.shiftKey?lf(Fe,-1):lf(Fe,1),X.stopPropagation(),X.preventDefault()},Mm=X=>{let K=N(),me=S(),Fe=C(),nt=[K,me,Fe];if(document.activeElement instanceof HTMLElement&&!nt.includes(document.activeElement))return;let on=Oa.includes(X)?"nextElementSibling":"previousElementSibling",xi=document.activeElement;for(let Ga=0;Ga<Q().children.length;Ga++){if(xi=xi[on],!xi)return;if(xi instanceof HTMLButtonElement&&Xe(xi))break}xi instanceof HTMLButtonElement&&xi.focus()},kv=(X,K,me)=>{x(K.allowEscapeKey)&&(X.preventDefault(),me(ku.esc))};var Yc={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};let uf=()=>{Array.from(document.body.children).forEach(K=>{K===k()||K.contains(k())||(K.hasAttribute("aria-hidden")&&K.setAttribute("data-previous-aria-hidden",K.getAttribute("aria-hidden")),K.setAttribute("aria-hidden","true"))})},Rl=()=>{Array.from(document.body.children).forEach(K=>{K.hasAttribute("data-previous-aria-hidden")?(K.setAttribute("aria-hidden",K.getAttribute("data-previous-aria-hidden")),K.removeAttribute("data-previous-aria-hidden")):K.removeAttribute("aria-hidden")})},cf=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!oe(document.body,a.iosfix)){let K=document.body.scrollTop;document.body.style.top=`${K*-1}px`,Ee(document.body,a.iosfix),Bm(),Av()}},Av=()=>{let X=navigator.userAgent,K=!!X.match(/iPad/i)||!!X.match(/iPhone/i),me=!!X.match(/WebKit/i);K&&me&&!X.match(/CriOS/i)&&I().scrollHeight>window.innerHeight-44&&(k().style.paddingBottom=`${44}px`)},Bm=()=>{let X=k(),K;X.ontouchstart=me=>{K=Cv(me)},X.ontouchmove=me=>{K&&(me.preventDefault(),me.stopPropagation())}},Cv=X=>{let K=X.target,me=k();return Oh(X)||Sv(X)?!1:K===me||!fe(me)&&K instanceof HTMLElement&&K.tagName!=="INPUT"&&K.tagName!=="TEXTAREA"&&!(fe(ee())&&ee().contains(K))},Oh=X=>X.touches&&X.touches.length&&X.touches[0].touchType==="stylus",Sv=X=>X.touches&&X.touches.length>1,Nm=()=>{if(oe(document.body,a.iosfix)){let X=parseInt(document.body.style.top,10);Ne(document.body,a.iosfix),document.body.style.top="",document.body.scrollTop=X*-1}},Ov=()=>{ue.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(ue.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${ue.previousBodyPadding+cr()}px`)},Ev=()=>{ue.previousBodyPadding!==null&&(document.body.style.paddingRight=`${ue.previousBodyPadding}px`,ue.previousBodyPadding=null)};function df(X,K,me,Fe){se()?pf(X,Fe):(r(me).then(()=>pf(X,Fe)),cl(t)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(K.setAttribute("style","display:none !important"),K.removeAttribute("class"),K.innerHTML=""):K.remove(),Z()&&(Ev(),Nm(),Rl()),Mv()}function Mv(){Ne([document.documentElement,document.body],[a.shown,a["height-auto"],a["no-backdrop"],a["toast-shown"]])}function Au(X){X=Ni(X);let K=Yc.swalPromiseResolve.get(this),me=Bv(this);this.isAwaitingPromise?X.isDismissed||(ep(this),K(X)):me&&K(X)}let Bv=X=>{let K=I();if(!K)return!1;let me=i.innerParams.get(X);if(!me||oe(K,me.hideClass.popup))return!1;Ne(K,me.showClass.popup),Ee(K,me.hideClass.popup);let Fe=k();return Ne(Fe,me.showClass.backdrop),Ee(Fe,me.hideClass.backdrop),gi(X,K,me),!0};function Gm(X){let K=Yc.swalPromiseReject.get(this);ep(this),K&&K(X)}let ep=X=>{X.isAwaitingPromise&&(delete X.isAwaitingPromise,i.innerParams.get(X)||X._destroy())},Ni=X=>typeof X>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},X),gi=(X,K,me)=>{let Fe=k(),nt=dn&&be(K);typeof me.willClose=="function"&&me.willClose(K),nt?Nv(X,K,Fe,me.returnFocus,me.didClose):df(X,Fe,me.returnFocus,me.didClose)},Nv=(X,K,me,Fe,nt)=>{t.swalCloseEventFinishedCallback=df.bind(null,X,me,Fe,nt),K.addEventListener(dn,function(on){on.target===K&&(t.swalCloseEventFinishedCallback(),delete t.swalCloseEventFinishedCallback)})},pf=(X,K)=>{setTimeout(()=>{typeof K=="function"&&K.bind(X.params)(),X._destroy&&X._destroy()})},Pn=X=>{let K=I();K||new sp,K=I();let me=T();se()?je(W()):Eh(K,X),Re(me),K.setAttribute("data-loading","true"),K.setAttribute("aria-busy","true"),K.focus()},Eh=(X,K)=>{let me=Q(),Fe=T();!K&&Xe(N())&&(K=N()),Re(me),K&&(je(K),Fe.setAttribute("data-button-to-replace",K.className)),Fe.parentNode.insertBefore(Fe,K),Ee([X,me],a.loading)},tp=(X,K)=>{K.input==="select"||K.input==="radio"?Mh(X,K):["text","email","number","tel","textarea"].includes(K.input)&&(y(K.inputValue)||w(K.inputValue))&&(Pn(N()),Cu(X,K))},Fm=(X,K)=>{let me=X.getInput();if(!me)return null;switch(K.input){case"checkbox":return Im(me);case"radio":return zm(me);case"file":return Wo(me);default:return K.inputAutoTrim?me.value.trim():me.value}},Im=X=>X.checked?1:0,zm=X=>X.checked?X.value:null,Wo=X=>X.files.length?X.getAttribute("multiple")!==null?X.files:X.files[0]:null,Mh=(X,K)=>{let me=I(),Fe=nt=>{Gi[K.input](me,Ll(nt),K)};y(K.inputOptions)||w(K.inputOptions)?(Pn(N()),_(K.inputOptions).then(nt=>{X.hideLoading(),Fe(nt)})):typeof K.inputOptions=="object"?Fe(K.inputOptions):m(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof K.inputOptions}`)},Cu=(X,K)=>{let me=X.getInput();je(me),_(K.inputValue).then(Fe=>{me.value=K.input==="number"?`${parseFloat(Fe)||0}`:`${Fe}`,Re(me),me.focus(),X.hideLoading()}).catch(Fe=>{m(`Error in inputValue promise: ${Fe}`),me.value="",Re(me),me.focus(),X.hideLoading()})},Gi={select:(X,K,me)=>{let Fe=De(X,a.select),nt=(on,xi,Ga)=>{let Us=document.createElement("option");Us.value=Ga,pe(Us,xi),Us.selected=fs(Ga,me.inputValue),on.appendChild(Us)};K.forEach(on=>{let xi=on[0],Ga=on[1];if(Array.isArray(Ga)){let Us=document.createElement("optgroup");Us.label=xi,Us.disabled=!1,Fe.appendChild(Us),Ga.forEach(bf=>nt(Us,bf[1],bf[0]))}else nt(Fe,Ga,xi)}),Fe.focus()},radio:(X,K,me)=>{let Fe=De(X,a.radio);K.forEach(on=>{let xi=on[0],Ga=on[1],Us=document.createElement("input"),bf=document.createElement("label");Us.type="radio",Us.name=a.radio,Us.value=xi,fs(xi,me.inputValue)&&(Us.checked=!0);let wf=document.createElement("span");pe(wf,Ga),wf.className=a.label,bf.appendChild(Us),bf.appendChild(wf),Fe.appendChild(bf)});let nt=Fe.querySelectorAll("input");nt.length&&nt[0].focus()}},Ll=X=>{let K=[];return typeof Map<"u"&&X instanceof Map?X.forEach((me,Fe)=>{let nt=me;typeof nt=="object"&&(nt=Ll(nt)),K.push([Fe,nt])}):Object.keys(X).forEach(me=>{let Fe=X[me];typeof Fe=="object"&&(Fe=Ll(Fe)),K.push([me,Fe])}),K},fs=(X,K)=>K&&K.toString()===X.toString(),Tm=X=>{let K=i.innerParams.get(X);X.disableButtons(),K.input?Nh(X,"confirm"):no(X,!0)},Bh=X=>{let K=i.innerParams.get(X);X.disableButtons(),K.returnInputValueOnDeny?Nh(X,"deny"):Ma(X,!1)},Gv=(X,K)=>{X.disableButtons(),K(ku.cancel)},Nh=(X,K)=>{let me=i.innerParams.get(X);if(!me.input){m(`The "input" parameter is needed to be set when using returnInputValueOn${d(K)}`);return}let Fe=Fm(X,me);me.inputValidator?np(X,Fe,K):X.getInput().checkValidity()?K==="deny"?Ma(X,Fe):no(X,Fe):(X.enableButtons(),X.showValidationMessage(me.validationMessage))},np=(X,K,me)=>{let Fe=i.innerParams.get(X);X.disableInput(),Promise.resolve().then(()=>_(Fe.inputValidator(K,Fe.validationMessage))).then(on=>{X.enableButtons(),X.enableInput(),on?X.showValidationMessage(on):me==="deny"?Ma(X,K):no(X,K)})},Ma=(X,K)=>{let me=i.innerParams.get(X||void 0);me.showLoaderOnDeny&&Pn(S()),me.preDeny?(X.isAwaitingPromise=!0,Promise.resolve().then(()=>_(me.preDeny(K,me.validationMessage))).then(nt=>{nt===!1?(X.hideLoading(),ep(X)):X.close({isDenied:!0,value:typeof nt>"u"?K:nt})}).catch(nt=>Dm(X||void 0,nt))):X.close({isDenied:!0,value:K})},hs=(X,K)=>{X.close({isConfirmed:!0,value:K})},Dm=(X,K)=>{X.rejectPromise(K)},no=(X,K)=>{let me=i.innerParams.get(X||void 0);me.showLoaderOnConfirm&&Pn(),me.preConfirm?(X.resetValidationMessage(),X.isAwaitingPromise=!0,Promise.resolve().then(()=>_(me.preConfirm(K,me.validationMessage))).then(nt=>{Xe(B())||nt===!1?(X.hideLoading(),ep(X)):hs(X,typeof nt>"u"?K:nt)}).catch(nt=>Dm(X||void 0,nt))):hs(X,K)};function ff(){let X=i.innerParams.get(this);if(!X)return;let K=i.domCache.get(this);je(K.loader),se()?X.icon&&Re(W()):hf(K),Ne([K.popup,K.actions],a.loading),K.popup.removeAttribute("aria-busy"),K.popup.removeAttribute("data-loading"),K.confirmButton.disabled=!1,K.denyButton.disabled=!1,K.cancelButton.disabled=!1}let hf=X=>{let K=X.popup.getElementsByClassName(X.loader.getAttribute("data-button-to-replace"));K.length?Re(K[0],"inline-block"):mt()&&je(X.actions)};function Vl(){let X=i.innerParams.get(this),K=i.domCache.get(this);return K?Ae(K.popup,X.input):null}function rp(X,K,me){let Fe=i.domCache.get(X);K.forEach(nt=>{Fe[nt].disabled=me})}function mf(X,K){if(!!X)if(X.type==="radio"){let Fe=X.parentNode.parentNode.querySelectorAll("input");for(let nt=0;nt<Fe.length;nt++)Fe[nt].disabled=K}else X.disabled=K}function li(){rp(this,["confirmButton","denyButton","cancelButton"],!1)}function Ba(){rp(this,["confirmButton","denyButton","cancelButton"],!0)}function gf(){mf(this.getInput(),!1)}function Rm(){mf(this.getInput(),!0)}function bo(X){let K=i.domCache.get(this),me=i.innerParams.get(this);pe(K.validationMessage,X),K.validationMessage.className=a["validation-message"],me.customClass&&me.customClass.validationMessage&&Ee(K.validationMessage,me.customClass.validationMessage),Re(K.validationMessage);let Fe=this.getInput();Fe&&(Fe.setAttribute("aria-invalid",!0),Fe.setAttribute("aria-describedby",a["validation-message"]),Ce(Fe),Ee(Fe,a.inputerror))}function ip(){let X=i.domCache.get(this);X.validationMessage&&je(X.validationMessage);let K=this.getInput();K&&(K.removeAttribute("aria-invalid"),K.removeAttribute("aria-describedby"),Ne(K,a.inputerror))}let Zc={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},le=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],q={},ae=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Se=X=>Object.prototype.hasOwnProperty.call(Zc,X),Ie=X=>le.indexOf(X)!==-1,ot=X=>q[X],bt=X=>{Se(X)||h(`Unknown parameter "${X}"`)},qt=X=>{ae.includes(X)&&h(`The parameter "${X}" is incompatible with toasts`)},kn=X=>{ot(X)&&v(X,ot(X))},Cr=X=>{X.backdrop===!1&&X.allowOutsideClick&&h('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(let K in X)bt(K),X.toast&&qt(K),kn(K)};function Br(X){let K=I(),me=i.innerParams.get(this);if(!K||oe(K,me.hideClass.popup)){h("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}let Fe=ro(X),nt=Object.assign({},me,Fe);Om(this,nt),i.innerParams.set(this,nt),Object.defineProperties(this,{params:{value:Object.assign({},this.params,X),writable:!1,enumerable:!0}})}let ro=X=>{let K={};return Object.keys(X).forEach(me=>{Ie(me)?K[me]=X[me]:h(`Invalid parameter to update: ${me}`)}),K};function ac(){let X=i.domCache.get(this),K=i.innerParams.get(this);if(!K){vf(this);return}X.popup&&t.swalCloseEventFinishedCallback&&(t.swalCloseEventFinishedCallback(),delete t.swalCloseEventFinishedCallback),typeof K.didDestroy=="function"&&K.didDestroy(),Fv(this)}let Fv=X=>{vf(X),delete X.params,delete t.keydownHandler,delete t.keydownTarget,delete t.currentInstance},vf=X=>{X.isAwaitingPromise?(ms(i,X),X.isAwaitingPromise=!0):(ms(Yc,X),ms(i,X),delete X.isAwaitingPromise,delete X.disableButtons,delete X.enableButtons,delete X.getInput,delete X.disableInput,delete X.enableInput,delete X.hideLoading,delete X.disableLoading,delete X.showValidationMessage,delete X.resetValidationMessage,delete X.close,delete X.closePopup,delete X.closeModal,delete X.closeToast,delete X.rejectPromise,delete X.update,delete X._destroy)},ms=(X,K)=>{for(let me in X)X[me].delete(K)};var yf=Object.freeze({__proto__:null,_destroy:ac,close:Au,closeModal:Au,closePopup:Au,closeToast:Au,disableButtons:Ba,disableInput:Rm,disableLoading:ff,enableButtons:li,enableInput:gf,getInput:Vl,handleAwaitingPromise:ep,hideLoading:ff,rejectPromise:Gm,resetValidationMessage:ip,showValidationMessage:bo,update:Br});let Uc=(X,K,me)=>{i.innerParams.get(X).toast?vi(X,K,me):(Gh(K),Vm(K),Jm(X,K,me))},vi=(X,K,me)=>{K.popup.onclick=()=>{let Fe=i.innerParams.get(X);Fe&&(Lm(Fe)||Fe.timer||Fe.input)||me(ku.close)}},Lm=X=>X.showConfirmButton||X.showDenyButton||X.showCancelButton||X.showCloseButton,xf=!1,Gh=X=>{X.popup.onmousedown=()=>{X.container.onmouseup=function(K){X.container.onmouseup=void 0,K.target===X.container&&(xf=!0)}}},Vm=X=>{X.container.onmousedown=()=>{X.popup.onmouseup=function(K){X.popup.onmouseup=void 0,(K.target===X.popup||X.popup.contains(K.target))&&(xf=!0)}}},Jm=(X,K,me)=>{K.container.onclick=Fe=>{let nt=i.innerParams.get(X);if(xf){xf=!1;return}Fe.target===K.container&&x(nt.allowOutsideClick)&&me(ku.backdrop)}},Fh=X=>typeof X=="object"&&X.jquery,Ys=X=>X instanceof Element||Fh(X),jm=X=>{let K={};return typeof X[0]=="object"&&!Ys(X[0])?Object.assign(K,X[0]):["title","html","icon"].forEach((me,Fe)=>{let nt=X[Fe];typeof nt=="string"||Ys(nt)?K[me]=nt:nt!==void 0&&m(`Unexpected type of ${me}! Expected "string" or "Element", got ${typeof nt}`)}),K};function Iv(){let X=this;for(var K=arguments.length,me=new Array(K),Fe=0;Fe<K;Fe++)me[Fe]=arguments[Fe];return new X(...me)}function Ih(X){class K extends this{_main(Fe,nt){return super._main(Fe,Object.assign({},X,nt))}}return K}let op=()=>t.timeout&&t.timeout.getTimerLeft(),da=()=>{if(t.timeout)return Oe(),t.timeout.stop()},Su=()=>{if(t.timeout){let X=t.timeout.start();return ye(X),X}},S5=()=>{let X=t.timeout;return X&&(X.running?da():Su())},t6=X=>{if(t.timeout){let K=t.timeout.increase(X);return ye(K,!0),K}},O5=()=>t.timeout&&t.timeout.isRunning(),lc=!1,Zs={};function Hm(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";Zs[X]=this,lc||(document.body.addEventListener("click",E5),lc=!0)}let E5=X=>{for(let K=X.target;K&&K!==document;K=K.parentNode)for(let me in Zs){let Fe=K.getAttribute(me);if(Fe){Zs[me].fire({template:Fe});return}}};var M5=Object.freeze({__proto__:null,argsToParams:jm,bindClickHandler:Hm,clickCancel:Pv,clickConfirm:Sa,clickDeny:Ch,enableLoading:Pn,fire:Iv,getActions:Q,getCancelButton:C,getCloseButton:D,getConfirmButton:N,getContainer:k,getDenyButton:S,getFocusableElements:$,getFooter:U,getHtmlContainer:ee,getIcon:W,getIconContent:J,getImage:j,getInputLabel:G,getLoader:T,getPopup:I,getProgressSteps:V,getTimerLeft:op,getTimerProgressBar:F,getTitle:H,getValidationMessage:B,increaseTimer:t6,isDeprecatedParameter:ot,isLoading:Y,isTimerRunning:O5,isUpdatableParameter:Ie,isValidParameter:Se,isVisible:Ah,mixin:Ih,resumeTimer:Su,showLoading:Pn,stopTimer:da,toggleTimer:S5});class B5{constructor(K,me){this.callback=K,this.remaining=me,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(K){let me=this.running;return me&&this.stop(),this.remaining+=K,me&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}let n6=["swal-title","swal-html","swal-footer"],N5=X=>{let K=typeof X.template=="string"?document.querySelector(X.template):X.template;if(!K)return{};let me=K.content;return rs(me),Object.assign(Qc(me),He(me),st(me),tt(me),Vt(me),zn(me),ei(me,n6))},Qc=X=>{let K={};return Array.from(X.querySelectorAll("swal-param")).forEach(Fe=>{Wn(Fe,["name","value"]);let nt=Fe.getAttribute("name"),on=Fe.getAttribute("value");typeof Zc[nt]=="boolean"?K[nt]=on!=="false":typeof Zc[nt]=="object"?K[nt]=JSON.parse(on):K[nt]=on}),K},He=X=>{let K={};return Array.from(X.querySelectorAll("swal-function-param")).forEach(Fe=>{let nt=Fe.getAttribute("name"),on=Fe.getAttribute("value");K[nt]=new Function(`return ${on}`)()}),K},st=X=>{let K={};return Array.from(X.querySelectorAll("swal-button")).forEach(Fe=>{Wn(Fe,["type","color","aria-label"]);let nt=Fe.getAttribute("type");K[`${nt}ButtonText`]=Fe.innerHTML,K[`show${d(nt)}Button`]=!0,Fe.hasAttribute("color")&&(K[`${nt}ButtonColor`]=Fe.getAttribute("color")),Fe.hasAttribute("aria-label")&&(K[`${nt}ButtonAriaLabel`]=Fe.getAttribute("aria-label"))}),K},tt=X=>{let K={},me=X.querySelector("swal-image");return me&&(Wn(me,["src","width","height","alt"]),me.hasAttribute("src")&&(K.imageUrl=me.getAttribute("src")),me.hasAttribute("width")&&(K.imageWidth=me.getAttribute("width")),me.hasAttribute("height")&&(K.imageHeight=me.getAttribute("height")),me.hasAttribute("alt")&&(K.imageAlt=me.getAttribute("alt"))),K},Vt=X=>{let K={},me=X.querySelector("swal-icon");return me&&(Wn(me,["type","color"]),me.hasAttribute("type")&&(K.icon=me.getAttribute("type")),me.hasAttribute("color")&&(K.iconColor=me.getAttribute("color")),K.iconHtml=me.innerHTML),K},zn=X=>{let K={},me=X.querySelector("swal-input");me&&(Wn(me,["type","label","placeholder","value"]),K.input=me.getAttribute("type")||"text",me.hasAttribute("label")&&(K.inputLabel=me.getAttribute("label")),me.hasAttribute("placeholder")&&(K.inputPlaceholder=me.getAttribute("placeholder")),me.hasAttribute("value")&&(K.inputValue=me.getAttribute("value")));let Fe=Array.from(X.querySelectorAll("swal-input-option"));return Fe.length&&(K.inputOptions={},Fe.forEach(nt=>{Wn(nt,["value"]);let on=nt.getAttribute("value"),xi=nt.innerHTML;K.inputOptions[on]=xi})),K},ei=(X,K)=>{let me={};for(let Fe in K){let nt=K[Fe],on=X.querySelector(nt);on&&(Wn(on,[]),me[nt.replace(/^swal-/,"")]=on.innerHTML.trim())}return me},rs=X=>{let K=n6.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(X.children).forEach(me=>{let Fe=me.tagName.toLowerCase();K.includes(Fe)||h(`Unrecognized element <${Fe}>`)})},Wn=(X,K)=>{Array.from(X.attributes).forEach(me=>{K.indexOf(me.name)===-1&&h([`Unrecognized attribute "${me.name}" on <${X.tagName.toLowerCase()}>.`,`${K.length?`Allowed attributes are: ${K.join(", ")}`:"To set the value, use HTML within the element."}`])})},Ou=10,r6=X=>{let K=k(),me=I();typeof X.willOpen=="function"&&X.willOpen(me);let nt=window.getComputedStyle(document.body).overflowY;_f(K,me,X),setTimeout(()=>{zh(K,me)},Ou),Z()&&(i6(K,X.scrollbarPadding,nt),uf()),!se()&&!t.previousActiveElement&&(t.previousActiveElement=document.activeElement),typeof X.didOpen=="function"&&setTimeout(()=>X.didOpen(me)),Ne(K,a["no-transition"])},Na=X=>{let K=I();if(X.target!==K)return;let me=k();K.removeEventListener(dn,Na),me.style.overflowY="auto"},zh=(X,K)=>{dn&&be(K)?(X.style.overflowY="hidden",K.addEventListener(dn,Na)):X.style.overflowY="auto"},i6=(X,K,me)=>{cf(),K&&me!=="hidden"&&Ov(),setTimeout(()=>{X.scrollTop=0})},_f=(X,K,me)=>{Ee(X,me.showClass.backdrop),K.style.setProperty("opacity","0","important"),Re(K,"grid"),setTimeout(()=>{Ee(K,me.showClass.popup),K.style.removeProperty("opacity")},Ou),Ee([document.documentElement,document.body],a.shown),me.heightAuto&&me.backdrop&&!me.toast&&Ee([document.documentElement,document.body],a["height-auto"])};var Th={email:(X,K)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(X)?Promise.resolve():Promise.resolve(K||"Invalid email address"),url:(X,K)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(X)?Promise.resolve():Promise.resolve(K||"Invalid URL")};function Dh(X){X.inputValidator||Object.keys(Th).forEach(K=>{X.input===K&&(X.inputValidator=Th[K])})}function yi(X){(!X.target||typeof X.target=="string"&&!document.querySelector(X.target)||typeof X.target!="string"&&!X.target.appendChild)&&(h('Target parameter is not valid, defaulting to "body"'),X.target="body")}function G5(X){Dh(X),X.showLoaderOnConfirm&&!X.preConfirm&&h(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
showLoaderOnConfirm should be used together with preConfirm, see usage example:
https://sweetalert2.github.io/#ajax-request`),yi(X),typeof X.title=="string"&&(X.title=X.title.split(`
`).join("<br />")),ln(X)}let pl;class io{constructor(){if(typeof window>"u")return;pl=this;for(var K=arguments.length,me=new Array(K),Fe=0;Fe<K;Fe++)me[Fe]=arguments[Fe];let nt=Object.freeze(this.constructor.argsToParams(me));Object.defineProperties(this,{params:{value:nt,writable:!1,enumerable:!0,configurable:!0}}),this.isAwaitingPromise=!1;let on=pl._main(pl.params);i.promise.set(this,on)}_main(K){let me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Cr(Object.assign({},me,K)),t.currentInstance&&(t.currentInstance._destroy(),Z()&&Rl()),t.currentInstance=pl;let Fe=I5(K,me);G5(Fe),Object.freeze(Fe),t.timeout&&(t.timeout.stop(),delete t.timeout),clearTimeout(t.restoreFocusTimeout);let nt=z5(pl);return Om(pl,Fe),i.innerParams.set(pl,Fe),F5(pl,nt,Fe)}then(K){return i.promise.get(this).then(K)}finally(K){return i.promise.get(this).finally(K)}}let F5=(X,K,me)=>new Promise((Fe,nt)=>{let on=xi=>{X.close({isDismissed:!0,dismiss:xi})};Yc.swalPromiseResolve.set(X,Fe),Yc.swalPromiseReject.set(X,nt),K.confirmButton.onclick=()=>{Tm(X)},K.denyButton.onclick=()=>{Bh(X)},K.cancelButton.onclick=()=>{Gv(X,on)},K.closeButton.onclick=()=>{on(ku.close)},Uc(X,K,on),dl(X,t,me,on),tp(X,me),r6(me),Wm(t,me,on),ed(K,me),setTimeout(()=>{K.container.scrollTop=0})}),I5=(X,K)=>{let me=N5(X),Fe=Object.assign({},Zc,K,me,X);return Fe.showClass=Object.assign({},Zc.showClass,Fe.showClass),Fe.hideClass=Object.assign({},Zc.hideClass,Fe.hideClass),Fe},z5=X=>{let K={popup:I(),container:k(),actions:Q(),confirmButton:N(),denyButton:S(),cancelButton:C(),loader:T(),closeButton:D(),validationMessage:B(),progressSteps:V()};return i.domCache.set(X,K),K},Wm=(X,K,me)=>{let Fe=F();je(Fe),K.timer&&(X.timeout=new B5(()=>{me("timer"),delete X.timeout},K.timer),K.timerProgressBar&&(Re(Fe),ve(Fe,K,"timerProgressBar"),setTimeout(()=>{X.timeout&&X.timeout.running&&ye(K.timer)})))},ed=(X,K)=>{if(!K.toast){if(!x(K.allowEnterKey)){o6();return}Xm(X,K)||lf(-1,1)}},Xm=(X,K)=>K.focusDeny&&Xe(X.denyButton)?(X.denyButton.focus(),!0):K.focusCancel&&Xe(X.cancelButton)?(X.cancelButton.focus(),!0):K.focusConfirm&&Xe(X.confirmButton)?(X.confirmButton.focus(),!0):!1,o6=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};if(typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)){let X=new Date,K=localStorage.getItem("swal-initiation");K?(X.getTime()-Date.parse(K))/(1e3*60*60*24)>3&&setTimeout(()=>{document.body.style.pointerEvents="none";let me=document.createElement("audio");me.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",me.loop=!0,document.body.appendChild(me),setTimeout(()=>{me.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation",`${X}`)}io.prototype.disableButtons=Ba,io.prototype.enableButtons=li,io.prototype.getInput=Vl,io.prototype.disableInput=Rm,io.prototype.enableInput=gf,io.prototype.hideLoading=ff,io.prototype.disableLoading=ff,io.prototype.showValidationMessage=bo,io.prototype.resetValidationMessage=ip,io.prototype.close=Au,io.prototype.closePopup=Au,io.prototype.closeModal=Au,io.prototype.closeToast=Au,io.prototype.rejectPromise=Gm,io.prototype.update=Br,io.prototype._destroy=ac,Object.assign(io,M5),Object.keys(yf).forEach(X=>{io[X]=function(){return pl&&pl[X]?pl[X](...arguments):null}}),io.DismissReason=ku,io.version="11.7.8";let sp=io;return sp.default=sp,sp});typeof Hf<"u"&&Hf.Sweetalert2&&(Hf.swal=Hf.sweetAlert=Hf.Swal=Hf.SweetAlert=Hf.Sweetalert2);typeof document<"u"&&function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch{n.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start     top            top-end" "center-start  center         center-end" "bottom-start  bottom-center  bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:rgba(0,0,0,0) !important}.swal2-container.swal2-top-start,.swal2-container.swal2-center-start,.swal2-container.swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}.swal2-container.swal2-top,.swal2-container.swal2-center,.swal2-container.swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}.swal2-container.swal2-top-end,.swal2-container.swal2-center-end,.swal2-container.swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-start>.swal2-popup,.swal2-container.swal2-center-left>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-start>.swal2-popup,.swal2-container.swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-row>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none !important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:none}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}.swal2-loader{display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}.swal2-styled{margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:none}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.swal2-close:hover{transform:none;background:rgba(0,0,0,0);color:#f27474}.swal2-close:focus{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}.swal2-close::-moz-focus-inner{border:0}.swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-input,.swal2-file,.swal2-textarea,.swal2-select,.swal2-radio,.swal2-checkbox{margin:1em 2em 3px}.swal2-input,.swal2-file,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}.swal2-input.swal2-inputerror,.swal2-file.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}.swal2-input:focus,.swal2-file:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}.swal2-input::placeholder,.swal2-file::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}.swal2-radio,.swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-radio label,.swal2-checkbox label{margin:0 .6em;font-size:1.125em}.swal2-radio input,.swal2-checkbox input{flex-shrink:0;margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}')});var nx=ne((idn,lpe)=>{"use strict";var w0={DEBUG:!1,LIB_VERSION:"2.47.0"},cs;typeof window>"u"?(eH={hostname:""},cs={navigator:{userAgent:""},document:{location:eH,referrer:""},screen:{width:0,height:0},location:eH}):cs=window;var eH,LO=Array.prototype,uit=Function.prototype,Zde=Object.prototype,$1=LO.slice,aw=Zde.toString,VO=Zde.hasOwnProperty,Vs=cs.console,K1=cs.navigator,po=cs.document,GO=cs.opera,FO=cs.screen,Xf=K1.userAgent,tH=uit.bind,Jde=LO.forEach,jde=LO.indexOf,Hde=LO.map,cit=Array.isArray,iH={},_e={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},so={log:function(){if(w0.DEBUG&&!_e.isUndefined(Vs)&&Vs)try{Vs.log.apply(Vs,arguments)}catch{_e.each(arguments,function(t){Vs.log(t)})}},warn:function(){if(w0.DEBUG&&!_e.isUndefined(Vs)&&Vs){var e=["Mixpanel warning:"].concat(_e.toArray(arguments));try{Vs.warn.apply(Vs,e)}catch{_e.each(e,function(n){Vs.warn(n)})}}},error:function(){if(w0.DEBUG&&!_e.isUndefined(Vs)&&Vs){var e=["Mixpanel error:"].concat(_e.toArray(arguments));try{Vs.error.apply(Vs,e)}catch{_e.each(e,function(n){Vs.error(n)})}}},critical:function(){if(!_e.isUndefined(Vs)&&Vs){var e=["Mixpanel error:"].concat(_e.toArray(arguments));try{Vs.error.apply(Vs,e)}catch{_e.each(e,function(n){Vs.error(n)})}}}},nH=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(so,arguments)}},sH=function(e){return{log:nH(so.log,e),error:nH(so.error,e),critical:nH(so.critical,e)}};_e.bind=function(e,t){var n,r;if(tH&&e.bind===tH)return tH.apply(e,$1.call(arguments,1));if(!_e.isFunction(e))throw new TypeError;return n=$1.call(arguments,2),r=function(){if(!(this instanceof r))return e.apply(t,n.concat($1.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,n.concat($1.call(arguments)));return Object(s)===s?s:o},r};_e.each=function(e,t,n){if(e!=null){if(Jde&&e.forEach===Jde)e.forEach(t,n);else if(e.length===+e.length){for(var r=0,i=e.length;r<i;r++)if(r in e&&t.call(n,e[r],r,e)===iH)return}else for(var o in e)if(VO.call(e,o)&&t.call(n,e[o],o,e)===iH)return}};_e.extend=function(e){return _e.each($1.call(arguments,1),function(t){for(var n in t)t[n]!==void 0&&(e[n]=t[n])}),e};_e.isArray=cit||function(e){return aw.call(e)==="[object Array]"};_e.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch{return!1}};_e.isArguments=function(e){return!!(e&&VO.call(e,"callee"))};_e.toArray=function(e){return e?e.toArray?e.toArray():_e.isArray(e)||_e.isArguments(e)?$1.call(e):_e.values(e):[]};_e.map=function(e,t,n){if(Hde&&e.map===Hde)return e.map(t,n);var r=[];return _e.each(e,function(i){r.push(t.call(n,i))}),r};_e.keys=function(e){var t=[];return e===null||_e.each(e,function(n,r){t[t.length]=r}),t};_e.values=function(e){var t=[];return e===null||_e.each(e,function(n){t[t.length]=n}),t};_e.include=function(e,t){var n=!1;return e===null?n:jde&&e.indexOf===jde?e.indexOf(t)!=-1:(_e.each(e,function(r){if(n||(n=r===t))return iH}),n)};_e.includes=function(e,t){return e.indexOf(t)!==-1};_e.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e};_e.isObject=function(e){return e===Object(e)&&!_e.isArray(e)};_e.isEmptyObject=function(e){if(_e.isObject(e)){for(var t in e)if(VO.call(e,t))return!1;return!0}return!1};_e.isUndefined=function(e){return e===void 0};_e.isString=function(e){return aw.call(e)=="[object String]"};_e.isDate=function(e){return aw.call(e)=="[object Date]"};_e.isNumber=function(e){return aw.call(e)=="[object Number]"};_e.isElement=function(e){return!!(e&&e.nodeType===1)};_e.encodeDates=function(e){return _e.each(e,function(t,n){_e.isDate(t)?e[n]=_e.formatDate(t):_e.isObject(t)&&(e[n]=_e.encodeDates(t))}),e};_e.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()};_e.formatDate=function(e){function t(n){return n<10?"0"+n:n}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())};_e.strip_empty_properties=function(e){var t={};return _e.each(e,function(n,r){_e.isString(n)&&n.length>0&&(t[r]=n)}),t};_e.truncate=function(e,t){var n;return typeof e=="string"?n=e.slice(0,t):_e.isArray(e)?(n=[],_e.each(e,function(r){n.push(_e.truncate(r,t))})):_e.isObject(e)?(n={},_e.each(e,function(r,i){n[i]=_e.truncate(r,t)})):n=e,n};_e.JSONEncode=function(){return function(e){var t=e,n=function(i){var o=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,s={"\b":"\\b","	":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return o.lastIndex=0,o.test(i)?'"'+i.replace(o,function(a){var l=s[a];return typeof l=="string"?l:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+i+'"'},r=function(i,o){var s="",a="    ",l=0,u="",c="",f=0,d=s,h=[],m=o[i];switch(m&&typeof m=="object"&&typeof m.toJSON=="function"&&(m=m.toJSON(i)),typeof m){case"string":return n(m);case"number":return isFinite(m)?String(m):"null";case"boolean":case"null":return String(m);case"object":if(!m)return"null";if(s+=a,h=[],aw.apply(m)==="[object Array]"){for(f=m.length,l=0;l<f;l+=1)h[l]=r(l,m)||"null";return c=h.length===0?"[]":s?`[
`+s+h.join(`,
`+s)+`
`+d+"]":"["+h.join(",")+"]",s=d,c}for(u in m)VO.call(m,u)&&(c=r(u,m),c&&h.push(n(u)+(s?": ":":")+c));return c=h.length===0?"{}":s?"{"+h.join(",")+d+"}":"{"+h.join(",")+"}",s=d,c}};return r("",{"":t})}}();_e.JSONDecode=function(){var e,t,n={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
`,r:"\r",t:"	"},r,i=function(h){var m=new SyntaxError(h);throw m.at=e,m.text=r,m},o=function(h){return h&&h!==t&&i("Expected '"+h+"' instead of '"+t+"'"),t=r.charAt(e),e+=1,t},s=function(){var h,m="";for(t==="-"&&(m="-",o("-"));t>="0"&&t<="9";)m+=t,o();if(t===".")for(m+=".";o()&&t>="0"&&t<="9";)m+=t;if(t==="e"||t==="E")for(m+=t,o(),(t==="-"||t==="+")&&(m+=t,o());t>="0"&&t<="9";)m+=t,o();if(h=+m,!isFinite(h))i("Bad number");else return h},a=function(){var h,m,g="",b;if(t==='"')for(;o();){if(t==='"')return o(),g;if(t==="\\")if(o(),t==="u"){for(b=0,m=0;m<4&&(h=parseInt(o(),16),!!isFinite(h));m+=1)b=b*16+h;g+=String.fromCharCode(b)}else if(typeof n[t]=="string")g+=n[t];else break;else g+=t}i("Bad string")},l=function(){for(;t&&t<=" ";)o()},u=function(){switch(t){case"t":return o("t"),o("r"),o("u"),o("e"),!0;case"f":return o("f"),o("a"),o("l"),o("s"),o("e"),!1;case"n":return o("n"),o("u"),o("l"),o("l"),null}i('Unexpected "'+t+'"')},c,f=function(){var h=[];if(t==="["){if(o("["),l(),t==="]")return o("]"),h;for(;t;){if(h.push(c()),l(),t==="]")return o("]"),h;o(","),l()}}i("Bad array")},d=function(){var h,m={};if(t==="{"){if(o("{"),l(),t==="}")return o("}"),m;for(;t;){if(h=a(),l(),o(":"),Object.hasOwnProperty.call(m,h)&&i('Duplicate key "'+h+'"'),m[h]=c(),l(),t==="}")return o("}"),m;o(","),l()}}i("Bad object")};return c=function(){switch(l(),t){case"{":return d();case"[":return f();case'"':return a();case"-":return s();default:return t>="0"&&t<="9"?s():u()}},function(h){var m;return r=h,e=0,t=" ",m=c(),l(),t&&i("Syntax error"),m}}();_e.base64Encode=function(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n,r,i,o,s,a,l,u,c=0,f=0,d="",h=[];if(!e)return e;e=_e.utf8Encode(e);do n=e.charCodeAt(c++),r=e.charCodeAt(c++),i=e.charCodeAt(c++),u=n<<16|r<<8|i,o=u>>18&63,s=u>>12&63,a=u>>6&63,l=u&63,h[f++]=t.charAt(o)+t.charAt(s)+t.charAt(a)+t.charAt(l);while(c<e.length);switch(d=h.join(""),e.length%3){case 1:d=d.slice(0,-2)+"==";break;case 2:d=d.slice(0,-1)+"=";break}return d};_e.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,`
`).replace(/\r/g,`
`);var t="",n,r,i=0,o;for(n=r=0,i=e.length,o=0;o<i;o++){var s=e.charCodeAt(o),a=null;s<128?r++:s>127&&s<2048?a=String.fromCharCode(s>>6|192,s&63|128):a=String.fromCharCode(s>>12|224,s>>6&63|128,s&63|128),a!==null&&(r>n&&(t+=e.substring(n,r)),t+=a,n=r=o+1)}return r>n&&(t+=e.substring(n,e.length)),t};_e.UUID=function(){var e=function(){var r=1*new Date,i;if(cs.performance&&cs.performance.now)i=cs.performance.now();else for(i=0;r==1*new Date;)i++;return r.toString(16)+Math.floor(i).toString(16)},t=function(){return Math.random().toString(16).replace(".","")},n=function(){var r=Xf,i,o,s=[],a=0;function l(u,c){var f,d=0;for(f=0;f<c.length;f++)d|=s[f]<<f*8;return u^d}for(i=0;i<r.length;i++)o=r.charCodeAt(i),s.unshift(o&255),s.length>=4&&(a=l(a,s),s=[]);return s.length>0&&(a=l(a,s)),a.toString(16)};return function(){var r=(FO.height*FO.width).toString(16);return e()+"-"+t()+"-"+n()+"-"+r+"-"+e()}}();var Wde=["ahrefsbot","baiduspider","bingbot","bingpreview","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandexbot","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];_e.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<Wde.length;t++)if(e.indexOf(Wde[t])!==-1)return!0;return!1};_e.HTTPBuildQuery=function(e,t){var n,r,i=[];return _e.isUndefined(t)&&(t="&"),_e.each(e,function(o,s){n=encodeURIComponent(o.toString()),r=encodeURIComponent(s),i[i.length]=r+"="+n}),i.join(t)};_e.getQueryParam=function(e,t){t=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]");var n="[\\?&]"+t+"=([^&#]*)",r=new RegExp(n),i=r.exec(e);if(i===null||i&&typeof i[1]!="string"&&i[1].length)return"";var o=i[1];try{o=decodeURIComponent(o)}catch{so.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")};_e.cookie={get:function(e){for(var t=e+"=",n=po.cookie.split(";"),r=0;r<n.length;r++){for(var i=n[r];i.charAt(0)==" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=_e.JSONDecode(_e.cookie.get(e))||{}}catch{}return t},set_seconds:function(e,t,n,r,i,o,s){var a="",l="",u="";if(s)a="; domain="+s;else if(r){var c=Xde(po.location.hostname);a=c?"; domain=."+c:""}if(n){var f=new Date;f.setTime(f.getTime()+n*1e3),l="; expires="+f.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure"),po.cookie=e+"="+encodeURIComponent(t)+l+"; path=/"+a+u},set:function(e,t,n,r,i,o,s){var a="",l="",u="";if(s)a="; domain="+s;else if(r){var c=Xde(po.location.hostname);a=c?"; domain=."+c:""}if(n){var f=new Date;f.setTime(f.getTime()+n*24*60*60*1e3),l="; expires="+f.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure");var d=e+"="+encodeURIComponent(t)+l+"; path=/"+a+u;return po.cookie=d,d},remove:function(e,t,n){_e.cookie.set(e,"",-1,t,!1,!1,n)}};var rH=null,IO=function(e,t){if(rH!==null&&!t)return rH;var n=!0;try{e=e||window.localStorage;var r="__mplss_"+aH(8),i="xyz";e.setItem(r,i),e.getItem(r)!==i&&(n=!1),e.removeItem(r)}catch{n=!1}return rH=n,n};_e.localStorage={is_supported:function(e){var t=IO(null,e);return t||so.error("localStorage unsupported; falling back to cookie store"),t},error:function(e){so.error("localStorage error: "+e)},get:function(e){try{return window.localStorage.getItem(e)}catch(t){_e.localStorage.error(t)}return null},parse:function(e){try{return _e.JSONDecode(_e.localStorage.get(e))||{}}catch{}return null},set:function(e,t){try{window.localStorage.setItem(e,t)}catch(n){_e.localStorage.error(n)}},remove:function(e){try{window.localStorage.removeItem(e)}catch(t){_e.localStorage.error(t)}}};_e.register_event=function(){var e=function(r,i,o,s,a){if(!r){so.error("No valid element provided to register_event");return}if(r.addEventListener&&!s)r.addEventListener(i,o,!!a);else{var l="on"+i,u=r[l];r[l]=t(r,o,u)}};function t(r,i,o){var s=function(a){if(a=a||n(window.event),!!a){var l=!0,u,c;return _e.isFunction(o)&&(u=o(a)),c=i.call(r,a),(u===!1||c===!1)&&(l=!1),l}};return s}function n(r){return r&&(r.preventDefault=n.preventDefault,r.stopPropagation=n.stopPropagation),r}return n.preventDefault=function(){this.returnValue=!1},n.stopPropagation=function(){this.cancelBubble=!0},e}();var dit=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');_e.dom_query=function(){function e(i){return i.all?i.all:i.getElementsByTagName("*")}var t=/[\t\r\n]/g;function n(i,o){var s=" "+o+" ";return(" "+i.className+" ").replace(t," ").indexOf(s)>=0}function r(i){if(!po.getElementsByTagName)return[];var o=i.split(" "),s,a,l,u,c,f,d,h,m,g,b=[po];for(f=0;f<o.length;f++){if(s=o[f].replace(/^\s+/,"").replace(/\s+$/,""),s.indexOf("#")>-1){a=s.split("#"),l=a[0];var v=a[1],x=po.getElementById(v);if(!x||l&&x.nodeName.toLowerCase()!=l)return[];b=[x];continue}if(s.indexOf(".")>-1){a=s.split("."),l=a[0];var y=a[1];for(l||(l="*"),u=[],c=0,d=0;d<b.length;d++)for(l=="*"?m=e(b[d]):m=b[d].getElementsByTagName(l),h=0;h<m.length;h++)u[c++]=m[h];for(b=[],g=0,d=0;d<u.length;d++)u[d].className&&_e.isString(u[d].className)&&n(u[d],y)&&(b[g++]=u[d]);continue}var _=s.match(dit);if(_){l=_[1];var w=_[2],k=_[3],O=_[4];for(l||(l="*"),u=[],c=0,d=0;d<b.length;d++)for(l=="*"?m=e(b[d]):m=b[d].getElementsByTagName(l),h=0;h<m.length;h++)u[c++]=m[h];b=[],g=0;var M;switch(k){case"=":M=function(I){return I.getAttribute(w)==O};break;case"~":M=function(I){return I.getAttribute(w).match(new RegExp("\\b"+O+"\\b"))};break;case"|":M=function(I){return I.getAttribute(w).match(new RegExp("^"+O+"-?"))};break;case"^":M=function(I){return I.getAttribute(w).indexOf(O)===0};break;case"$":M=function(I){return I.getAttribute(w).lastIndexOf(O)==I.getAttribute(w).length-O.length};break;case"*":M=function(I){return I.getAttribute(w).indexOf(O)>-1};break;default:M=function(I){return I.getAttribute(w)}}for(b=[],g=0,d=0;d<u.length;d++)M(u[d])&&(b[g++]=u[d]);continue}for(l=s,u=[],c=0,d=0;d<b.length;d++)for(m=b[d].getElementsByTagName(l),h=0;h<m.length;h++)u[c++]=m[h];b=u}return b}return function(i){return _e.isElement(i)?[i]:_e.isObject(i)&&!_e.isUndefined(i.length)?i:r.call(this,i)}}();var pit=["utm_source","utm_medium","utm_campaign","utm_content","utm_term"],fit=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","ttclid","twclid","wbraid"];_e.info={campaignParams:function(e){var t="",n={};return _e.each(pit,function(r){t=_e.getQueryParam(po.URL,r),t.length?n[r]=t:e!==void 0&&(n[r]=e)}),n},clickParams:function(){var e="",t={};return _e.each(fit,function(n){e=_e.getQueryParam(po.URL,n),e.length&&(t[n]=e)}),t},marketingParams:function(){return _e.extend(_e.info.campaignParams(),_e.info.clickParams())},searchEngine:function(e){return e.search("https?://(.*)google.([^/?]*)")===0?"google":e.search("https?://(.*)bing.com")===0?"bing":e.search("https?://(.*)yahoo.com")===0?"yahoo":e.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null},searchInfo:function(e){var t=_e.info.searchEngine(e),n=t!="yahoo"?"q":"p",r={};if(t!==null){r.$search_engine=t;var i=_e.getQueryParam(e,n);i.length&&(r.mp_keyword=i)}return r},browser:function(e,t,n){return t=t||"",n||_e.includes(e," OPR/")?_e.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":_e.includes(e,"IEMobile")||_e.includes(e,"WPDesktop")?"Internet Explorer Mobile":_e.includes(e,"SamsungBrowser/")?"Samsung Internet":_e.includes(e,"Edge")||_e.includes(e,"Edg/")?"Microsoft Edge":_e.includes(e,"FBIOS")?"Facebook Mobile":_e.includes(e,"Chrome")?"Chrome":_e.includes(e,"CriOS")?"Chrome iOS":_e.includes(e,"UCWEB")||_e.includes(e,"UCBrowser")?"UC Browser":_e.includes(e,"FxiOS")?"Firefox iOS":_e.includes(t,"Apple")?_e.includes(e,"Mobile")?"Mobile Safari":"Safari":_e.includes(e,"Android")?"Android Mobile":_e.includes(e,"Konqueror")?"Konqueror":_e.includes(e,"Firefox")?"Firefox":_e.includes(e,"MSIE")||_e.includes(e,"Trident/")?"Internet Explorer":_e.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,n){var r=_e.info.browser(e,t,n),i={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/},o=i[r];if(o===void 0)return null;var s=e.match(o);return s?parseFloat(s[s.length-2]):null},os:function(){var e=Xf;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},properties:function(){return _e.extend(_e.strip_empty_properties({$os:_e.info.os(),$browser:_e.info.browser(Xf,K1.vendor,GO),$referrer:po.referrer,$referring_domain:_e.info.referringDomain(po.referrer),$device:_e.info.device(Xf)}),{$current_url:cs.location.href,$browser_version:_e.info.browserVersion(Xf,K1.vendor,GO),$screen_height:FO.height,$screen_width:FO.width,mp_lib:"web",$lib_version:w0.LIB_VERSION,$insert_id:aH(),time:_e.timestamp()/1e3})},people_properties:function(){return _e.extend(_e.strip_empty_properties({$os:_e.info.os(),$browser:_e.info.browser(Xf,K1.vendor,GO)}),{$browser_version:_e.info.browserVersion(Xf,K1.vendor,GO)})},mpPageViewProperties:function(){return _e.strip_empty_properties({current_page_title:po.title,current_domain:cs.location.hostname,current_url_path:cs.location.pathname,current_url_protocol:cs.location.protocol,current_url_search:cs.location.search})}};var aH=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},hit=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,mit=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Xde=function(e){var t=mit,n=e.split("."),r=n[n.length-1];(r.length>4||r==="com"||r==="org")&&(t=hit);var i=e.match(t);return i?i[0]:""},zO=null,TO=null;typeof JSON<"u"&&(zO=JSON.stringify,TO=JSON.parse);zO=zO||_e.JSONEncode;TO=TO||_e.JSONDecode;_e.toArray=_e.toArray;_e.isObject=_e.isObject;_e.JSONEncode=_e.JSONEncode;_e.JSONDecode=_e.JSONDecode;_e.isBlockedUA=_e.isBlockedUA;_e.isEmptyObject=_e.isEmptyObject;_e.info=_e.info;_e.info.device=_e.info.device;_e.info.browser=_e.info.browser;_e.info.browserVersion=_e.info.browserVersion;_e.info.properties=_e.info.properties;var k0=function(){};k0.prototype.create_properties=function(){};k0.prototype.event_handler=function(){};k0.prototype.after_track_handler=function(){};k0.prototype.init=function(e){return this.mp=e,this};k0.prototype.track=function(e,t,n,r){var i=this,o=_e.dom_query(e);if(o.length===0){so.error("The DOM query ("+e+") returned 0 elements");return}return _e.each(o,function(s){_e.register_event(s,this.override_event,function(a){var l={},u=i.create_properties(n,this),c=i.mp.get_config("track_links_timeout");i.event_handler(a,this,l),window.setTimeout(i.track_callback(r,u,l,!0),c),i.mp.track(t,u,i.track_callback(r,u,l))})},this),!0};k0.prototype.track_callback=function(e,t,n,r){r=r||!1;var i=this;return function(){n.callback_fired||(n.callback_fired=!0,!(e&&e(r,t)===!1)&&i.after_track_handler(t,n,r))}};k0.prototype.create_properties=function(e,t){var n;return typeof e=="function"?n=e(t):n=_e.extend({},e),n};var U3=function(){this.override_event="click"};_e.inherit(U3,k0);U3.prototype.create_properties=function(e,t){var n=U3.superclass.create_properties.apply(this,arguments);return t.href&&(n.url=t.href),n};U3.prototype.event_handler=function(e,t,n){n.new_tab=e.which===2||e.metaKey||e.ctrlKey||t.target==="_blank",n.href=t.href,n.new_tab||e.preventDefault()};U3.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var JO=function(){this.override_event="submit"};_e.inherit(JO,k0);JO.prototype.event_handler=function(e,t,n){n.element=t,e.preventDefault()};JO.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var git=sH("lock"),Ude=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3};Ude.prototype.withLock=function(e,t,n){!n&&typeof t!="function"&&(n=t,t=null);var r=n||new Date().getTime()+"|"+Math.random(),i=new Date().getTime(),o=this.storageKey,s=this.pollIntervalMS,a=this.timeoutMS,l=this.storage,u=o+":X",c=o+":Y",f=o+":Z",d=function(x){t&&t(x)},h=function(x){if(new Date().getTime()-i>a){git.error("Timeout waiting for mutex on "+o+"; clearing lock. ["+r+"]"),l.removeItem(f),l.removeItem(c),b();return}setTimeout(function(){try{x()}catch(y){d(y)}},s*(Math.random()+.1))},m=function(x,y){x()?y():h(function(){m(x,y)})},g=function(){var x=l.getItem(c);if(x&&x!==r)return!1;if(l.setItem(c,r),l.getItem(c)===r)return!0;if(!IO(l,!0))throw new Error("localStorage support dropped while acquiring lock");return!1},b=function(){l.setItem(u,r),m(g,function(){if(l.getItem(u)===r){v();return}h(function(){if(l.getItem(c)!==r){b();return}m(function(){return!l.getItem(f)},v)})})},v=function(){l.setItem(f,"1");try{e()}finally{l.removeItem(f),l.getItem(c)===r&&l.removeItem(c),l.getItem(u)===r&&l.removeItem(u)}};try{if(IO(l,!0))b();else throw new Error("localStorage support check failed")}catch(x){d(x)}};var qde=sH("batch"),U1=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.reportError=t.errorReporter||_e.bind(qde.error,qde),this.lock=new Ude(e,{storage:this.storage}),this.pid=t.pid||null,this.memQueue=[]};U1.prototype.enqueue=function(e,t,n){var r={id:aH(),flushAfter:new Date().getTime()+t*2,payload:e};this.lock.withLock(_e.bind(function(){var o;try{var s=this.readFromStorage();s.push(r),o=this.saveToStorage(s),o&&this.memQueue.push(r)}catch{this.reportError("Error enqueueing item",e),o=!1}n&&n(o)},this),_e.bind(function(o){this.reportError("Error acquiring storage lock",o),n&&n(!1)},this),this.pid)};U1.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);if(t.length<e){var n=this.readFromStorage();if(n.length){var r={};_e.each(t,function(s){r[s.id]=!0});for(var i=0;i<n.length;i++){var o=n[i];if(new Date().getTime()>o.flushAfter&&!r[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}}return t};var $de=function(e,t){var n=[];return _e.each(e,function(r){r.id&&!t[r.id]&&n.push(r)}),n};U1.prototype.removeItemsByID=function(e,t){var n={};_e.each(e,function(i){n[i]=!0}),this.memQueue=$de(this.memQueue,n);var r=_e.bind(function(){var i;try{var o=this.readFromStorage();if(o=$de(o,n),i=this.saveToStorage(o),i){o=this.readFromStorage();for(var s=0;s<o.length;s++){var a=o[s];if(a.id&&!!n[a.id])return this.reportError("Item not removed from storage"),!1}}}catch{this.reportError("Error removing items",e),i=!1}return i},this);this.lock.withLock(function(){var o=r();t&&t(o)},_e.bind(function(o){var s=!1;if(this.reportError("Error acquiring storage lock",o),!IO(this.storage,!0)&&(s=r(),!s))try{this.storage.removeItem(this.storageKey)}catch(a){this.reportError("Error clearing queue",a)}t&&t(s)},this),this.pid)};var Kde=function(e,t){var n=[];return _e.each(e,function(r){var i=r.id;if(i in t){var o=t[i];o!==null&&(r.payload=o,n.push(r))}else n.push(r)}),n};U1.prototype.updatePayloads=function(e,t){this.memQueue=Kde(this.memQueue,e),this.lock.withLock(_e.bind(function(){var r;try{var i=this.readFromStorage();i=Kde(i,e),r=this.saveToStorage(i)}catch{this.reportError("Error updating items",e),r=!1}t&&t(r)},this),_e.bind(function(r){this.reportError("Error acquiring storage lock",r),t&&t(!1)},this),this.pid)};U1.prototype.readFromStorage=function(){var e;try{e=this.storage.getItem(this.storageKey),e&&(e=TO(e),_e.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null))}catch(t){this.reportError("Error retrieving queue",t),e=null}return e||[]};U1.prototype.saveToStorage=function(e){try{return this.storage.setItem(this.storageKey,zO(e)),!0}catch(t){return this.reportError("Error saving queue",t),!1}};U1.prototype.clear=function(){this.memQueue=[],this.storage.removeItem(this.storageKey)};var vit=10*60*1e3,iw=sH("batch"),qf=function(e,t){this.errorReporter=t.errorReporter,this.queue=new U1(e,{errorReporter:_e.bind(this.reportError,this),storage:t.storage}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={}};qf.prototype.enqueue=function(e,t){this.queue.enqueue(e,this.flushInterval,t)};qf.prototype.start=function(){this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()};qf.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)};qf.prototype.clear=function(){this.queue.clear()};qf.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size};qf.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)};qf.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(_e.bind(this.flush,this),this.flushInterval))};qf.prototype.flush=function(e){try{if(this.requestInProgress){iw.log("Flush: Request already in progress");return}e=e||{};var t=this.libConfig.batch_request_timeout_ms,n=new Date().getTime(),r=this.batchSize,i=this.queue.fillBatch(r),o=[],s={};if(_e.each(i,function(u){var c=u.payload;if(this.beforeSendHook&&!u.orphaned&&(c=this.beforeSendHook(c)),c){c.event&&c.properties&&(c.properties=_e.extend({},c.properties,{mp_sent_by_lib_version:w0.LIB_VERSION}));var f=!0,d=u.id;d?(this.itemIdsSentSuccessfully[d]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:u,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[d]}),f=!1):this.reportError("[dupe] found item with no ID",{item:u}),f&&o.push(c)}s[u.id]=c},this),o.length<1){this.resetFlush();return}this.requestInProgress=!0;var a=_e.bind(function(u){this.requestInProgress=!1;try{var c=!1;if(e.unloading)this.queue.updatePayloads(s);else if(_e.isObject(u)&&u.error==="timeout"&&new Date().getTime()-n>=t)this.reportError("Network timeout; retrying"),this.flush();else if(_e.isObject(u)&&u.xhr_req&&(u.xhr_req.status>=500||u.xhr_req.status===429||u.error==="timeout")){var f=this.flushInterval*2,d=u.xhr_req.responseHeaders;if(d){var h=d["Retry-After"];h&&(f=parseInt(h,10)*1e3||f)}f=Math.min(vit,f),this.reportError("Error; retry in "+f+" ms"),this.scheduleFlush(f)}else if(_e.isObject(u)&&u.xhr_req&&u.xhr_req.status===413)if(i.length>1){var m=Math.max(1,Math.floor(r/2));this.batchSize=Math.min(this.batchSize,m,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush()}else this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),c=!0;else c=!0;c&&(this.queue.removeItemsByID(_e.map(i,function(g){return g.id}),_e.bind(function(g){g?(this.consecutiveRemovalFailures=0,this.flush()):(this.reportError("Failed to remove items from queue"),++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush())},this)),_e.each(i,_e.bind(function(g){var b=g.id;b?(this.itemIdsSentSuccessfully[b]=this.itemIdsSentSuccessfully[b]||0,this.itemIdsSentSuccessfully[b]++,this.itemIdsSentSuccessfully[b]>5&&this.reportError("[dupe] item ID sent too many times",{item:g,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[b]})):this.reportError("[dupe] found item with no ID while removing",{item:g})},this)))}catch(g){this.reportError("Error handling API response",g),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};e.unloading&&(l.transport="sendBeacon"),iw.log("MIXPANEL REQUEST:",o),this.sendRequest(o,l,a)}catch(u){this.reportError("Error flushing request queue",u),this.resetFlush()}};qf.prototype.reportError=function(e,t){if(iw.error.apply(iw.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(n){iw.error(n)}};var yit="__mp_opt_in_out_";function xit(e,t){tpe(!0,e,t)}function _it(e,t){tpe(!1,e,t)}function bit(e,t){return epe(e,t)==="1"}function Qde(e,t){if(Pit(t))return so.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var n=epe(e,t)==="0";return n&&so.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),n}function ex(e){return cH(e,function(t){return this.get_config(t)})}function Q1(e){return cH(e,function(t){return this._get_config(t)})}function tx(e){return cH(e,function(t){return this._get_config(t)})}function wit(e,t){t=t||{},lH(t).remove(uH(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function lH(e){return e=e||{},e.persistenceType==="localStorage"?_e.localStorage:_e.cookie}function uH(e,t){return t=t||{},(t.persistencePrefix||yit)+e}function epe(e,t){return lH(t).get(uH(e,t))}function Pit(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||cs,n=t.navigator||{},r=!1;return _e.each([n.doNotTrack,n.msDoNotTrack,t.doNotTrack],function(i){_e.includes([!0,1,"1","yes"],i)&&(r=!0)}),r}function tpe(e,t,n){if(!_e.isString(t)||!t.length){so.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token");return}n=n||{},lH(n).set(uH(t,n),e?1:0,_e.isNumber(n.cookieExpiration)?n.cookieExpiration:null,!!n.crossSubdomainCookie,!!n.secureCookie,!!n.crossSiteCookie,n.cookieDomain),n.track&&e&&n.track(n.trackEventName||"$opt_in",n.trackProperties,{send_immediately:!0})}function cH(e,t){return function(){var n=!1;try{var r=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");r&&(n=Qde(r,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(u){so.error("Unexpected error when checking tracking opt-out status: "+u)}if(!n)return e.apply(this,arguments);var l=arguments[arguments.length-1];typeof l=="function"&&l(0)}}var Y1="$set",Q3="$set_once",Tp="$unset",E2="$add",P0="$append",M2="$union",Z1="$remove",kit="$delete",npe={set_action:function(e,t){var n={},r={};return _e.isObject(e)?_e.each(e,function(i,o){this._is_reserved_property(o)||(r[o]=i)},this):r[e]=t,n[Y1]=r,n},unset_action:function(e){var t={},n=[];return _e.isArray(e)||(e=[e]),_e.each(e,function(r){this._is_reserved_property(r)||n.push(r)},this),t[Tp]=n,t},set_once_action:function(e,t){var n={},r={};return _e.isObject(e)?_e.each(e,function(i,o){this._is_reserved_property(o)||(r[o]=i)},this):r[e]=t,n[Q3]=r,n},union_action:function(e,t){var n={},r={};return _e.isObject(e)?_e.each(e,function(i,o){this._is_reserved_property(o)||(r[o]=_e.isArray(i)?i:[i])},this):r[e]=_e.isArray(t)?t:[t],n[M2]=r,n},append_action:function(e,t){var n={},r={};return _e.isObject(e)?_e.each(e,function(i,o){this._is_reserved_property(o)||(r[o]=i)},this):r[e]=t,n[P0]=r,n},remove_action:function(e,t){var n={},r={};return _e.isObject(e)?_e.each(e,function(i,o){this._is_reserved_property(o)||(r[o]=i)},this):r[e]=t,n[Z1]=r,n},delete_action:function(){var e={};return e[kit]="",e}},Do=function(){};_e.extend(Do.prototype,npe);Do.prototype._init=function(e,t,n){this._mixpanel=e,this._group_key=t,this._group_id=n};Do.prototype.set=tx(function(e,t,n){var r=this.set_action(e,t);return _e.isObject(e)&&(n=t),this._send_request(r,n)});Do.prototype.set_once=tx(function(e,t,n){var r=this.set_once_action(e,t);return _e.isObject(e)&&(n=t),this._send_request(r,n)});Do.prototype.unset=tx(function(e,t){var n=this.unset_action(e);return this._send_request(n,t)});Do.prototype.union=tx(function(e,t,n){_e.isObject(e)&&(n=t);var r=this.union_action(e,t);return this._send_request(r,n)});Do.prototype.delete=tx(function(e){var t=this.delete_action();return this._send_request(t,e)});Do.prototype.remove=tx(function(e,t,n){var r=this.remove_action(e,t);return this._send_request(r,n)});Do.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var n=_e.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:n,endpoint:this._get_config("api_host")+"/groups/",batcher:this._mixpanel.request_batchers.groups},t)};Do.prototype._is_reserved_property=function(e){return e==="$group_key"||e==="$group_id"};Do.prototype._get_config=function(e){return this._mixpanel.get_config(e)};Do.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id};Do.prototype.remove=Do.prototype.remove;Do.prototype.set=Do.prototype.set;Do.prototype.set_once=Do.prototype.set_once;Do.prototype.union=Do.prototype.union;Do.prototype.unset=Do.prototype.unset;Do.prototype.toString=Do.prototype.toString;var ur=function(){};_e.extend(ur.prototype,npe);ur.prototype._init=function(e){this._mixpanel=e};ur.prototype.set=Q1(function(e,t,n){var r=this.set_action(e,t);return _e.isObject(e)&&(n=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),r[Y1]=_e.extend({},_e.info.people_properties(),this._mixpanel.persistence.get_referrer_info(),r[Y1]),this._send_request(r,n)});ur.prototype.set_once=Q1(function(e,t,n){var r=this.set_once_action(e,t);return _e.isObject(e)&&(n=t),this._send_request(r,n)});ur.prototype.unset=Q1(function(e,t){var n=this.unset_action(e);return this._send_request(n,t)});ur.prototype.increment=Q1(function(e,t,n){var r={},i={};return _e.isObject(e)?(_e.each(e,function(o,s){if(!this._is_reserved_property(s))if(isNaN(parseFloat(o))){so.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}else i[s]=o},this),n=t):(_e.isUndefined(t)&&(t=1),i[e]=t),r[E2]=i,this._send_request(r,n)});ur.prototype.append=Q1(function(e,t,n){_e.isObject(e)&&(n=t);var r=this.append_action(e,t);return this._send_request(r,n)});ur.prototype.remove=Q1(function(e,t,n){_e.isObject(e)&&(n=t);var r=this.remove_action(e,t);return this._send_request(r,n)});ur.prototype.union=Q1(function(e,t,n){_e.isObject(e)&&(n=t);var r=this.union_action(e,t);return this._send_request(r,n)});ur.prototype.track_charge=Q1(function(e,t,n){if(!_e.isNumber(e)&&(e=parseFloat(e),isNaN(e))){so.error("Invalid value passed to mixpanel.people.track_charge - must be a number");return}return this.append("$transactions",_e.extend({$amount:e},t),n)});ur.prototype.clear_charges=function(e){return this.set("$transactions",[],e)};ur.prototype.delete_user=function(){if(!this._identify_called()){so.error("mixpanel.people.delete_user() requires you to call identify() first");return}var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)};ur.prototype.toString=function(){return this._mixpanel.toString()+".people"};ur.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var n=this._mixpanel.get_property("$device_id"),r=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");n&&(e.$device_id=n),r&&(e.$user_id=r),i&&(e.$had_persisted_distinct_id=i);var o=_e.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._get_config("api_host")+"/engage/",batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),_e.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),_e.truncate(o,255))};ur.prototype._get_config=function(e){return this._mixpanel.get_config(e)};ur.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0};ur.prototype._enqueue=function(e){Y1 in e?this._mixpanel.persistence._add_to_people_queue(Y1,e):Q3 in e?this._mixpanel.persistence._add_to_people_queue(Q3,e):Tp in e?this._mixpanel.persistence._add_to_people_queue(Tp,e):E2 in e?this._mixpanel.persistence._add_to_people_queue(E2,e):P0 in e?this._mixpanel.persistence._add_to_people_queue(P0,e):Z1 in e?this._mixpanel.persistence._add_to_people_queue(Z1,e):M2 in e?this._mixpanel.persistence._add_to_people_queue(M2,e):so.error("Invalid call to _enqueue():",e)};ur.prototype._flush_one_queue=function(e,t,n,r){var i=this,o=_e.extend({},this._mixpanel.persistence._get_queue(e)),s=o;!_e.isUndefined(o)&&_e.isObject(o)&&!_e.isEmptyObject(o)&&(i._mixpanel.persistence._pop_from_people_queue(e,o),r&&(s=r(o)),t.call(i,s,function(a,l){a===0&&i._mixpanel.persistence._add_to_people_queue(e,o),_e.isUndefined(n)||n(a,l)}))};ur.prototype._flush=function(e,t,n,r,i,o,s){var a=this,l=this._mixpanel.persistence._get_queue(P0),u=this._mixpanel.persistence._get_queue(Z1);if(this._flush_one_queue(Y1,this.set,e),this._flush_one_queue(Q3,this.set_once,r),this._flush_one_queue(Tp,this.unset,o,function(b){return _e.keys(b)}),this._flush_one_queue(E2,this.increment,t),this._flush_one_queue(M2,this.union,i),!_e.isUndefined(l)&&_e.isArray(l)&&l.length){for(var c,f=function(b,v){b===0&&a._mixpanel.persistence._add_to_people_queue(P0,c),_e.isUndefined(n)||n(b,v)},d=l.length-1;d>=0;d--)c=l.pop(),_e.isEmptyObject(c)||a.append(c,f);a._mixpanel.persistence.save()}if(!_e.isUndefined(u)&&_e.isArray(u)&&u.length){for(var h,m=function(b,v){b===0&&a._mixpanel.persistence._add_to_people_queue(Z1,h),_e.isUndefined(s)||s(b,v)},g=u.length-1;g>=0;g--)h=u.pop(),_e.isEmptyObject(h)||a.remove(h,m);a._mixpanel.persistence.save()}};ur.prototype._is_reserved_property=function(e){return e==="$distinct_id"||e==="$token"||e==="$device_id"||e==="$user_id"||e==="$had_persisted_distinct_id"};ur.prototype.set=ur.prototype.set;ur.prototype.set_once=ur.prototype.set_once;ur.prototype.unset=ur.prototype.unset;ur.prototype.increment=ur.prototype.increment;ur.prototype.append=ur.prototype.append;ur.prototype.remove=ur.prototype.remove;ur.prototype.union=ur.prototype.union;ur.prototype.track_charge=ur.prototype.track_charge;ur.prototype.clear_charges=ur.prototype.clear_charges;ur.prototype.delete_user=ur.prototype.delete_user;ur.prototype.toString=ur.prototype.toString;var dH="__mps",pH="__mpso",fH="__mpus",hH="__mpa",mH="__mpap",gH="__mpr",vH="__mpu",rpe="$people_distinct_id",DO="__alias",ow="__timers",Ait=[dH,pH,fH,hH,mH,gH,vH,rpe,DO,ow],Gr=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;t!=="cookie"&&t!=="localStorage"&&(so.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),t==="localStorage"&&_e.localStorage.is_supported()?this.storage=_e.localStorage:this.storage=_e.cookie,this.load(),this.update_config(e),this.upgrade(e),this.save()};Gr.prototype.properties=function(){var e={};return _e.each(this.props,function(t,n){_e.include(Ait,n)||(e[n]=t)}),e};Gr.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=_e.extend({},e))}};Gr.prototype.upgrade=function(e){var t=e.upgrade,n,r;t&&(n="mp_super_properties",typeof t=="string"&&(n=t),r=this.storage.parse(n),this.storage.remove(n),this.storage.remove(n,!0),r&&(this.props=_e.extend(this.props,r.all,r.events))),!e.cookie_name&&e.name!=="mixpanel"&&(n="mp_"+e.token+"_"+e.name,r=this.storage.parse(n),r&&(this.storage.remove(n),this.storage.remove(n,!0),this.register_once(r))),this.storage===_e.localStorage&&(r=_e.cookie.parse(this.name),_e.cookie.remove(this.name),_e.cookie.remove(this.name,!0),r&&this.register_once(r))};Gr.prototype.save=function(){this.disabled||this.storage.set(this.name,_e.JSONEncode(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)};Gr.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)};Gr.prototype.clear=function(){this.remove(),this.props={}};Gr.prototype.register_once=function(e,t,n){return _e.isObject(e)?(typeof t>"u"&&(t="None"),this.expire_days=typeof n>"u"?this.default_expiry:n,_e.each(e,function(r,i){(!this.props.hasOwnProperty(i)||this.props[i]===t)&&(this.props[i]=r)},this),this.save(),!0):!1};Gr.prototype.register=function(e,t){return _e.isObject(e)?(this.expire_days=typeof t>"u"?this.default_expiry:t,_e.extend(this.props,e),this.save(),!0):!1};Gr.prototype.unregister=function(e){e in this.props&&(delete this.props[e],this.save())};Gr.prototype.update_search_keyword=function(e){this.register(_e.info.searchInfo(e))};Gr.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:_e.info.referringDomain(e)||"$direct"},"")};Gr.prototype.get_referrer_info=function(){return _e.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})};Gr.prototype.safe_merge=function(e){return _e.each(this.props,function(t,n){n in e||(e[n]=t)}),e};Gr.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)};Gr.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()};Gr.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())};Gr.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())};Gr.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())};Gr.prototype.get_cross_subdomain=function(){return this.cross_subdomain};Gr.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())};Gr.prototype._add_to_people_queue=function(e,t){var n=this._get_queue_key(e),r=t[e],i=this._get_or_create_queue(Y1),o=this._get_or_create_queue(Q3),s=this._get_or_create_queue(Tp),a=this._get_or_create_queue(E2),l=this._get_or_create_queue(M2),u=this._get_or_create_queue(Z1,[]),c=this._get_or_create_queue(P0,[]);n===dH?(_e.extend(i,r),this._pop_from_people_queue(E2,r),this._pop_from_people_queue(M2,r),this._pop_from_people_queue(Tp,r)):n===pH?(_e.each(r,function(f,d){d in o||(o[d]=f)}),this._pop_from_people_queue(Tp,r)):n===fH?_e.each(r,function(f){_e.each([i,o,a,l],function(d){f in d&&delete d[f]}),_e.each(c,function(d){f in d&&delete d[f]}),s[f]=!0}):n===hH?(_e.each(r,function(f,d){d in i?i[d]+=f:(d in a||(a[d]=0),a[d]+=f)},this),this._pop_from_people_queue(Tp,r)):n===vH?(_e.each(r,function(f,d){_e.isArray(f)&&(d in l||(l[d]=[]),l[d]=l[d].concat(f))}),this._pop_from_people_queue(Tp,r)):n===gH?(u.push(r),this._pop_from_people_queue(P0,r)):n===mH&&(c.push(r),this._pop_from_people_queue(Tp,r)),so.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),so.log(t),this.save()};Gr.prototype._pop_from_people_queue=function(e,t){var n=this._get_queue(e);_e.isUndefined(n)||(_e.each(t,function(r,i){e===P0||e===Z1?_e.each(n,function(o){o[i]===r&&delete o[i]}):delete n[i]},this),this.save())};Gr.prototype._get_queue_key=function(e){if(e===Y1)return dH;if(e===Q3)return pH;if(e===Tp)return fH;if(e===E2)return hH;if(e===P0)return mH;if(e===Z1)return gH;if(e===M2)return vH;so.error("Invalid queue:",e)};Gr.prototype._get_queue=function(e){return this.props[this._get_queue_key(e)]};Gr.prototype._get_or_create_queue=function(e,t){var n=this._get_queue_key(e);return t=_e.isUndefined(t)?{}:t,this.props[n]||(this.props[n]=t)};Gr.prototype.set_event_timer=function(e,t){var n=this.props[ow]||{};n[e]=t,this.props[ow]=n,this.save()};Gr.prototype.remove_event_timer=function(e){var t=this.props[ow]||{},n=t[e];return _e.isUndefined(n)||(delete this.props[ow][e],this.save()),n};var yH,Al,ipe=0,Cit=1,Sit=function(e){return e},sw=function(){},kd="mixpanel",ope="base64",Oit="json",xH="$device:",Z3=cs.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,spe=!Z3&&Xf.indexOf("MSIE")===-1&&Xf.indexOf("Mozilla")===-1,RO=null;K1.sendBeacon&&(RO=function(){return K1.sendBeacon.apply(K1,arguments)});var Yde={api_host:"https://api-js.mixpanel.com",api_method:"POST",api_transport:"XHR",api_payload_format:ope,app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:sw,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:sw,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{}},ape=!1,ut=function(){},oH=function(e,t,n){var r,i=n===kd?Al:Al[n];if(i&&yH===ipe)r=i;else{if(i&&!_e.isArray(i)){so.error("You have already initialized "+n);return}r=new ut}if(r._cached_groups={},r._init(e,t,n),r.people=new ur,r.people._init(r),!r.get_config("skip_first_touch_marketing")){var o=_e.info.campaignParams(null),s={},a=!1;_e.each(o,function(l,u){s["initial_"+u]=l,l&&(a=!0)}),a&&r.people.set_once(s)}return w0.DEBUG=w0.DEBUG||r.get_config("debug"),!_e.isUndefined(i)&&_e.isArray(i)&&(r._execute_array.call(r.people,i.people),r._execute_array(i)),r};ut.prototype.init=function(e,t,n){if(_e.isUndefined(n)){this.report_error("You must name your new library: init(token, config, name)");return}if(n===kd){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var r=oH(e,t,n);return Al[n]=r,r._loaded(),r};ut.prototype._init=function(e,t,n){t=t||{},this.__loaded=!0,this.config={};var r={};if(!("api_payload_format"in t)){var i=t.api_host||Yde.api_host;i.match(/\.mixpanel\.com/)&&(r.api_payload_format=Oit)}if(this.set_config(_e.extend({},Yde,r,t,{name:n,token:e,callback_fn:(n===kd?n:kd+"."+n)+"._jsc"})),this._jsc=sw,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests){if(!_e.localStorage.is_supported(!0)||!Z3)this._batch_requests=!1,so.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support");else if(this.init_batchers(),RO&&cs.addEventListener){var o=_e.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);cs.addEventListener("pagehide",function(a){a.persisted&&o()}),cs.addEventListener("visibilitychange",function(){po.visibilityState==="hidden"&&o()})}}this.persistence=this.cookie=new Gr(this.config),this.unpersisted_superprops={},this._gdpr_init();var s=_e.UUID();this.get_distinct_id()||this.register_once({distinct_id:xH+s,$device_id:s},""),this.get_config("track_pageview")&&this.track_pageview()};ut.prototype._loaded=function(){this.get_config("loaded")(this),this._set_default_superprops()};ut.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(po.referrer),this.get_config("store_google")&&this.register(_e.info.campaignParams(),{persistent:!1}),this.get_config("save_referrer")&&this.persistence.update_referrer_info(po.referrer)};ut.prototype._dom_loaded=function(){_e.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||_e.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue};ut.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!ape)return this.__dom_loaded_queue.push([e,t]),!1;var n=new e().init(this);return n.track.apply(n,t)};ut.prototype._prepare_callback=function(e,t){if(_e.isUndefined(e))return null;if(Z3){var n=function(s){e(s,t)};return n}else{var r=this._jsc,i=""+Math.floor(Math.random()*1e8),o=this.get_config("callback_fn")+"["+i+"]";return r[i]=function(s){delete r[i],e(s,t)},o}};ut.prototype._send_request=function(e,t,n,r){var i=!0;if(spe)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;!r&&(_e.isFunction(n)||typeof n=="string")&&(r=n,n=null),n=_e.extend(o,n||{}),Z3||(n.method="GET");var a=n.method==="POST",l=RO&&a&&n.transport.toLowerCase()==="sendbeacon",u=n.verbose;t.verbose&&(u=!0),this.get_config("test")&&(t.test=1),u&&(t.verbose=1),this.get_config("img")&&(t.img=1),Z3||(r?t.callback=r:(u||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=new Date().getTime().toString(),a&&(s="data="+encodeURIComponent(t.data),delete t.data),e+="?"+_e.HTTPBuildQuery(t);var c=this;if("img"in t){var f=po.createElement("img");f.src=e,po.body.appendChild(f)}else if(l){try{i=RO(e,s)}catch(v){c.report_error(v),i=!1}try{r&&r(i?1:0)}catch(v){c.report_error(v)}}else if(Z3)try{var d=new XMLHttpRequest;d.open(n.method,e,!0);var h=this.get_config("xhr_headers");if(a&&(h["Content-Type"]="application/x-www-form-urlencoded"),_e.each(h,function(v,x){d.setRequestHeader(x,v)}),n.timeout_ms&&typeof d.timeout<"u"){d.timeout=n.timeout_ms;var m=new Date().getTime()}d.withCredentials=!0,d.onreadystatechange=function(){if(d.readyState===4)if(d.status===200){if(r)if(u){var v;try{v=_e.JSONDecode(d.responseText)}catch(y){if(c.report_error(y),n.ignore_json_errors)v=d.responseText;else return}r(v)}else r(Number(d.responseText))}else{var x;d.timeout&&!d.status&&new Date().getTime()-m>=d.timeout?x="timeout":x="Bad HTTP status: "+d.status+" "+d.statusText,c.report_error(x),r&&r(u?{status:0,error:x,xhr_req:d}:0)}},d.send(s)}catch(v){c.report_error(v),i=!1}else{var g=po.createElement("script");g.type="text/javascript",g.async=!0,g.defer=!0,g.src=e;var b=po.getElementsByTagName("script")[0];b.parentNode.insertBefore(g,b)}return i};ut.prototype._execute_array=function(e){var t,n=[],r=[],i=[];_e.each(e,function(s){s&&(t=s[0],_e.isArray(t)?i.push(s):typeof s=="function"?s.call(this):_e.isArray(s)&&t==="alias"?n.push(s):_e.isArray(s)&&t.indexOf("track")!==-1&&typeof this[t]=="function"?i.push(s):r.push(s))},this);var o=function(s,a){_e.each(s,function(l){if(_e.isArray(l[0])){var u=a;_e.each(l,function(c){u=u[c[0]].apply(u,c.slice(1))})}else this[l[0]].apply(this,l.slice(1))},a)};o(n,this),o(r,this),o(i,this)};ut.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events};ut.prototype.init_batchers=function(){var e=this.get_config("token");if(!this.are_batchers_initialized()){var t=_e.bind(function(n){return new qf("__mpq_"+e+n.queue_suffix,{libConfig:this.config,sendRequestFunc:_e.bind(function(r,i,o){this._send_request(this.get_config("api_host")+n.endpoint,this._encode_data_for_request(r),i,this._prepare_callback(o,r))},this),beforeSendHook:_e.bind(function(r){return this._run_hook("before_send_"+n.type,r)},this),errorReporter:this.get_config("error_reporter"),stopAllBatchingFunc:_e.bind(this.stop_batch_senders,this)})},this);this.request_batchers={events:t({type:"events",endpoint:"/track/",queue_suffix:"_ev"}),people:t({type:"people",endpoint:"/engage/",queue_suffix:"_pp"}),groups:t({type:"groups",endpoint:"/groups/",queue_suffix:"_gr"})}}this.get_config("batch_autostart")&&this.start_batch_senders()};ut.prototype.start_batch_senders=function(){this.are_batchers_initialized()&&(this._batch_requests=!0,_e.each(this.request_batchers,function(e){e.start()}))};ut.prototype.stop_batch_senders=function(){this._batch_requests=!1,_e.each(this.request_batchers,function(e){e.stop(),e.clear()})};ut.prototype.push=function(e){this._execute_array([e])};ut.prototype.disable=function(e){typeof e>"u"?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)};ut.prototype._encode_data_for_request=function(e){var t=_e.JSONEncode(e);return this.get_config("api_payload_format")===ope&&(t=_e.base64Encode(t)),{data:t}};ut.prototype._track_or_batch=function(e,t){var n=_e.truncate(e.data,255),r=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||sw;var a=!0,l=_e.bind(function(){return s.skip_hooks||(n=this._run_hook("before_send_"+e.type,n)),n?(so.log("MIXPANEL REQUEST:"),so.log(n),this._send_request(r,this._encode_data_for_request(n),s,this._prepare_callback(t,n))):null},this);return this._batch_requests&&!o?i.enqueue(n,function(u){u?t(1,n):l()}):a=l(),a&&n};ut.prototype.track=ex(function(e,t,n,r){!r&&typeof n=="function"&&(r=n,n=null),n=n||{};var i=n.transport;i&&(n.transport=i);var o=n.send_immediately;if(typeof r!="function"&&(r=sw),_e.isUndefined(e)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(e)){r(0);return}t=t||{},t.token=this.get_config("token");var s=this.persistence.remove_event_timer(e);if(!_e.isUndefined(s)){var a=new Date().getTime()-s;t.$duration=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops();var l=this.get_config("track_marketing")?_e.info.marketingParams():{};t=_e.extend({},_e.info.properties(),l,this.persistence.properties(),this.unpersisted_superprops,t);var u=this.get_config("property_blacklist");_e.isArray(u)?_e.each(u,function(d){delete t[d]}):this.report_error("Invalid value for property_blacklist config: "+u);var c={event:e,properties:t},f=this._track_or_batch({type:"events",data:c,endpoint:this.get_config("api_host")+"/track/",batcher:this.request_batchers.events,should_send_immediately:o,send_request_options:n},r);return f});ut.prototype.set_group=ex(function(e,t,n){_e.isArray(t)||(t=[t]);var r={};return r[e]=t,this.register(r),this.people.set(e,t,n)});ut.prototype.add_group=ex(function(e,t,n){var r=this.get_property(e);if(r===void 0){var i={};i[e]=[t],this.register(i)}else r.indexOf(t)===-1&&(r.push(t),this.register(i));return this.people.union(e,t,n)});ut.prototype.remove_group=ex(function(e,t,n){var r=this.get_property(e);if(r!==void 0){var i=r.indexOf(t);i>-1&&(r.splice(i,1),this.register({group_key:r})),r.length===0&&this.unregister(e)}return this.people.remove(e,t,n)});ut.prototype.track_with_groups=ex(function(e,t,n,r){var i=_e.extend({},t||{});return _e.each(n,function(o,s){o!=null&&(i[s]=o)}),this.track(e,i,r)});ut.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)};ut.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]};ut.prototype.get_group=function(e,t){var n=this._create_map_key(e,t),r=this._cached_groups[n];return(r===void 0||r._group_key!==e||r._group_id!==t)&&(r=new Do,r._init(this,e,t),this._cached_groups[n]=r),r};ut.prototype.track_pageview=ex(function(e,t){typeof e!="object"&&(e={}),t=t||{};var n=t.event_name||"$mp_web_page_view",r=_e.extend(_e.info.mpPageViewProperties(),_e.info.campaignParams(),_e.info.clickParams()),i=_e.extend({},r,e);return this.track(n,i)});ut.prototype.track_links=function(){return this._track_dom.call(this,U3,arguments)};ut.prototype.track_forms=function(){return this._track_dom.call(this,JO,arguments)};ut.prototype.time_event=function(e){if(_e.isUndefined(e)){this.report_error("No event name provided to mixpanel.time_event");return}this._event_is_disabled(e)||this.persistence.set_event_timer(e,new Date().getTime())};var Eit={persistent:!0},_H=function(e){var t;return _e.isObject(e)?t=e:_e.isUndefined(e)?t={}:t={days:e},_e.extend({},Eit,t)};ut.prototype.register=function(e,t){var n=_H(t);n.persistent?this.persistence.register(e,n.days):_e.extend(this.unpersisted_superprops,e)};ut.prototype.register_once=function(e,t,n){var r=_H(n);r.persistent?this.persistence.register_once(e,t,r.days):(typeof t>"u"&&(t="None"),_e.each(e,function(i,o){(!this.unpersisted_superprops.hasOwnProperty(o)||this.unpersisted_superprops[o]===t)&&(this.unpersisted_superprops[o]=i)},this))};ut.prototype.unregister=function(e,t){t=_H(t),t.persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]};ut.prototype._register_single=function(e,t){var n={};n[e]=t,this.register(n)};ut.prototype.identify=function(e,t,n,r,i,o,s,a){var l=this.get_distinct_id();if(e&&l!==e){if(typeof e=="string"&&e.indexOf(xH)===0)return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var u=l;this.register_once({$had_persisted_distinct_id:!0,$device_id:u},"")}e!==l&&e!==this.get_property(DO)&&(this.unregister(DO),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,n,r,i,o,s,a),e!==l&&this.track("$identify",{distinct_id:e,$anon_distinct_id:l},{skip_hooks:!0})};ut.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var e=_e.UUID();this.register_once({distinct_id:xH+e,$device_id:e},"")};ut.prototype.get_distinct_id=function(){return this.get_property("distinct_id")};ut.prototype.alias=function(e,t){if(e===this.get_property(rpe))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var n=this;return _e.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(DO,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){n.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)};ut.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)};ut.prototype.set_config=function(e){if(_e.isObject(e)){_e.extend(this.config,e);var t=e.batch_size;t&&_e.each(this.request_batchers,function(n){n.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),w0.DEBUG=w0.DEBUG||this.get_config("debug")}};ut.prototype.get_config=function(e){return this.config[e]};ut.prototype._run_hook=function(e){var t=(this.config.hooks[e]||Sit).apply(this,$1.call(arguments,1));return typeof t>"u"&&(this.report_error(e+" hook did not return a value"),t=null),t};ut.prototype.get_property=function(e){return this.persistence.props[e]};ut.prototype.toString=function(){var e=this.get_config("name");return e!==kd&&(e=kd+"."+e),e};ut.prototype._event_is_disabled=function(e){return _e.isBlockedUA(Xf)||this._flags.disable_all_events||_e.include(this.__disabled_events,e)};ut.prototype._gdpr_init=function(){var e=this.get_config("opt_out_tracking_persistence_type")==="localStorage";e&&_e.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):!this.has_opted_in_tracking()&&(this.get_config("opt_out_tracking_by_default")||_e.cookie.get("mp_optout"))&&(_e.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))};ut.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else if(e&&e.enable_persistence)t=!1;else return;!this.get_config("disable_persistence")&&this.persistence.disabled!==t&&this.persistence.set_disabled(t),t&&_e.each(this.request_batchers,function(n){n.clear()})};ut.prototype._gdpr_call_func=function(e,t){return t=_e.extend({track:_e.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),_e.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})};ut.prototype.opt_in_tracking=function(e){e=_e.extend({enable_persistence:!0},e),this._gdpr_call_func(xit,e),this._gdpr_update_persistence(e)};ut.prototype.opt_out_tracking=function(e){e=_e.extend({clear_persistence:!0,delete_user:!0},e),e.delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(_it,e),this._gdpr_update_persistence(e)};ut.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(bit,e)};ut.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(Qde,e)};ut.prototype.clear_opt_in_out_tracking=function(e){e=_e.extend({enable_persistence:!0},e),this._gdpr_call_func(wit,e),this._gdpr_update_persistence(e)};ut.prototype.report_error=function(e,t){so.error.apply(so.error,arguments);try{!t&&!(e instanceof Error)&&(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(n){so.error(n)}};ut.prototype.init=ut.prototype.init;ut.prototype.reset=ut.prototype.reset;ut.prototype.disable=ut.prototype.disable;ut.prototype.time_event=ut.prototype.time_event;ut.prototype.track=ut.prototype.track;ut.prototype.track_links=ut.prototype.track_links;ut.prototype.track_forms=ut.prototype.track_forms;ut.prototype.track_pageview=ut.prototype.track_pageview;ut.prototype.register=ut.prototype.register;ut.prototype.register_once=ut.prototype.register_once;ut.prototype.unregister=ut.prototype.unregister;ut.prototype.identify=ut.prototype.identify;ut.prototype.alias=ut.prototype.alias;ut.prototype.name_tag=ut.prototype.name_tag;ut.prototype.set_config=ut.prototype.set_config;ut.prototype.get_config=ut.prototype.get_config;ut.prototype.get_property=ut.prototype.get_property;ut.prototype.get_distinct_id=ut.prototype.get_distinct_id;ut.prototype.toString=ut.prototype.toString;ut.prototype.opt_out_tracking=ut.prototype.opt_out_tracking;ut.prototype.opt_in_tracking=ut.prototype.opt_in_tracking;ut.prototype.has_opted_out_tracking=ut.prototype.has_opted_out_tracking;ut.prototype.has_opted_in_tracking=ut.prototype.has_opted_in_tracking;ut.prototype.clear_opt_in_out_tracking=ut.prototype.clear_opt_in_out_tracking;ut.prototype.get_group=ut.prototype.get_group;ut.prototype.set_group=ut.prototype.set_group;ut.prototype.add_group=ut.prototype.add_group;ut.prototype.remove_group=ut.prototype.remove_group;ut.prototype.track_with_groups=ut.prototype.track_with_groups;ut.prototype.start_batch_senders=ut.prototype.start_batch_senders;ut.prototype.stop_batch_senders=ut.prototype.stop_batch_senders;Gr.prototype.properties=Gr.prototype.properties;Gr.prototype.update_search_keyword=Gr.prototype.update_search_keyword;Gr.prototype.update_referrer_info=Gr.prototype.update_referrer_info;Gr.prototype.get_cross_subdomain=Gr.prototype.get_cross_subdomain;Gr.prototype.clear=Gr.prototype.clear;var Y3={},Mit=function(){_e.each(Y3,function(e,t){t!==kd&&(Al[t]=e)}),Al._=_e},Bit=function(){Al.init=function(e,t,n){if(n)return Al[n]||(Al[n]=Y3[n]=oH(e,t,n),Al[n]._loaded()),Al[n];var r=Al;Y3[kd]?r=Y3[kd]:e&&(r=oH(e,t,kd),r._loaded(),Y3[kd]=r),Al=r,yH===Cit&&(cs[kd]=Al),Mit()}},Nit=function(){function e(){e.done||(e.done=!0,ape=!0,spe=!1,_e.each(Y3,function(r){r._dom_loaded()}))}function t(){try{po.documentElement.doScroll("left")}catch{setTimeout(t,1);return}e()}if(po.addEventListener)po.readyState==="complete"?e():po.addEventListener("DOMContentLoaded",e,!1);else if(po.attachEvent){po.attachEvent("onreadystatechange",e);var n=!1;try{n=cs.frameElement===null}catch{}po.documentElement.doScroll&&n&&t()}_e.register_event(cs,"load",e,!0)};function Git(){return yH=ipe,Al=new ut,Bit(),Al.init(),Nit(),Al}var Fit=Git();lpe.exports=Fit});function Ko(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");bH(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function jO(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Et(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(c){try{u(r.next(c))}catch(f){s(f)}}function l(c){try{u(r.throw(c))}catch(f){s(f)}}function u(c){c.done?o(c.value):i(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}function Mt(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=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++,i=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]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function So(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var bH,et,ri=Lt(()=>{bH=function(e,t){return bH=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},bH(e,t)};et=function(){return et=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},et.apply(this,arguments)}});var rx,HO=Lt(()=>{rx=function(){function e(){this.callbacks={}}return e.prototype.on=function(t,n){return this.callbacks[t]?this.callbacks[t].push(n):this.callbacks[t]=[n],this},e.prototype.once=function(t,n){var r=this,i=function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];r.off(t,i),n.apply(r,o)};return this.on(t,i),this},e.prototype.off=function(t,n){var r,i=(r=this.callbacks[t])!==null&&r!==void 0?r:[],o=i.filter(function(s){return s!==n});return this.callbacks[t]=o,this},e.prototype.emit=function(t){for(var n=this,r,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];var s=(r=this.callbacks[t])!==null&&r!==void 0?r:[];return s.forEach(function(a){a.apply(n,i)}),this},e}()});var upe=Lt(()=>{});var cpe=Lt(()=>{});var wH=Lt(()=>{});function eg(e,t,n){t.split&&(t=t.split("."));for(var r=0,i=t.length,o=e,s,a;r<i&&(a=t[r++],!(a==="__proto__"||a==="constructor"||a==="prototype"));)o=o[a]=r===i?n:typeof(s=o[a])==typeof t?s:t[r]*0!==0||!!~(""+t[r]).indexOf(".")?{}:[]}var WO=Lt(()=>{});var dpe,ppe=Lt(()=>{dpe=function(e,t){return Object.keys(e).filter(function(n){return t(n,e[n])}).reduce(function(n,r){return n[r]=e[r],n},{})}});var Dp,PH=Lt(()=>{ri();Dp=function(e){Ko(t,e);function t(n,r){var i=e.call(this,"".concat(n," ").concat(r))||this;return i.field=n,i}return t}(Error)});function A0(e){return typeof e=="string"}function XO(e){return typeof e=="number"}function B2(e){return typeof e=="function"}function kH(e){return e!=null}function Js(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()==="object"}var AH=Lt(()=>{});function OH(e){var t=".userId/anonymousId/previousId/groupId",n=function(i){var o,s,a;return(a=(s=(o=i.userId)!==null&&o!==void 0?o:i.anonymousId)!==null&&s!==void 0?s:i.groupId)!==null&&a!==void 0?a:i.previousId},r=n(e);if(kH(r)){if(!A0(r))throw new Dp(t,CH)}else throw new Dp(t,fpe)}function EH(e){if(!kH(e))throw new Dp("Event",fpe);if(typeof e!="object")throw new Dp("Event",SH)}function MH(e){if(!A0(e.type))throw new Dp(".type",CH)}function BH(e){if(!A0(e.event))throw new Dp(".event",CH)}function Iit(e){if(!Js(e.properties))throw new Dp(".properties",SH)}function zit(e){if(!Js(e.traits))throw new Dp(".traits",SH)}function hpe(e){EH(e),MH(e),e.type==="track"&&(BH(e),Iit(e)),["group","identify"].includes(e.type)&&zit(e),OH(e)}var CH,SH,fpe,NH=Lt(()=>{PH();AH();CH="is not a string",SH="is not an object",fpe="is nil"});var xdn,mpe=Lt(()=>{ri();wH();WO();ppe();NH();xdn=function(){function e(t){this.user=t.user,this.createMessageId=t.createMessageId}return e.prototype.track=function(t,n,r,i){return this.normalize(et(et({},this.baseEvent()),{event:t,type:"track",properties:n??{},options:et({},r),integrations:et({},i)}))},e.prototype.page=function(t,n,r,i,o){var s,a={type:"page",properties:et({},r),options:et({},i),integrations:et({},o)};return t!==null&&(a.category=t,a.properties=(s=a.properties)!==null&&s!==void 0?s:{},a.properties.category=t),n!==null&&(a.name=n),this.normalize(et(et({},this.baseEvent()),a))},e.prototype.screen=function(t,n,r,i,o){var s={type:"screen",properties:et({},r),options:et({},i),integrations:et({},o)};return t!==null&&(s.category=t),n!==null&&(s.name=n),this.normalize(et(et({},this.baseEvent()),s))},e.prototype.identify=function(t,n,r,i){return this.normalize(et(et({},this.baseEvent()),{type:"identify",userId:t,traits:n??{},options:et({},r),integrations:i}))},e.prototype.group=function(t,n,r,i){return this.normalize(et(et({},this.baseEvent()),{type:"group",traits:n??{},options:et({},r),integrations:et({},i),groupId:t}))},e.prototype.alias=function(t,n,r,i){var o={userId:t,type:"alias",options:et({},r),integrations:et({},i)};return n!==null&&(o.previousId=n),t===void 0?this.normalize(et(et({},o),this.baseEvent())):this.normalize(et(et({},this.baseEvent()),o))},e.prototype.baseEvent=function(){var t={integrations:{},options:{}};if(!this.user)return t;var n=this.user;return n.id()&&(t.userId=n.id()),n.anonymousId()&&(t.anonymousId=n.anonymousId()),t},e.prototype.context=function(t){var n,r=["userId","anonymousId","timestamp"];delete t.integrations;var i=Object.keys(t),o=(n=t.context)!==null&&n!==void 0?n:{},s={};return i.forEach(function(a){a!=="context"&&(r.includes(a)?eg(s,a,t[a]):eg(o,a,t[a]))}),[o,s]},e.prototype.normalize=function(t){var n,r,i=Object.keys((n=t.integrations)!==null&&n!==void 0?n:{}).reduce(function(h,m){var g,b;return et(et({},h),(g={},g[m]=Boolean((b=t.integrations)===null||b===void 0?void 0:b[m]),g))},{});t.options=dpe(t.options||{},function(h,m){return m!==void 0});var o=et(et({},i),(r=t.options)===null||r===void 0?void 0:r.integrations),s=t.options?this.context(t.options):[],a=s[0],l=s[1],u=t.options,c=jO(t,["options"]),f=et(et(et({timestamp:new Date},c),{integrations:o,context:a}),l),d=et(et({},f),{messageId:this.createMessageId()});return hpe(d),d},e}()});function lw(e,t){return new Promise(function(n,r){var i=setTimeout(function(){r(Error("Promise timed out"))},t);e.then(function(o){return clearTimeout(i),n(o)}).catch(r)})}function Tit(e){return new Promise(function(t){return setTimeout(t,e)})}function GH(e,t,n){var r=function(){try{return Promise.resolve(t(e))}catch(i){return Promise.reject(i)}};return Tit(n).then(function(){return lw(r(),1e3)}).catch(function(i){e?.log("warn","Callback Error",{error:i}),e?.stats.increment("callback_error")}).then(function(){return e})}var FH=Lt(()=>{});function gpe(e){var t=Math.random()+1,n=e.minTimeout,r=n===void 0?500:n,i=e.factor,o=i===void 0?2:i,s=e.attempt,a=e.maxTimeout,l=a===void 0?1/0:a;return Math.min(t*r*Math.pow(o,s),l)}var vpe=Lt(()=>{});var qO,C0,IH=Lt(()=>{ri();HO();vpe();qO="onRemoveFromFuture",C0=function(e){Ko(t,e);function t(n,r,i){var o=e.call(this)||this;return o.future=[],o.maxAttempts=n,o.queue=r,o.seen=i??{},o}return t.prototype.push=function(){for(var n=this,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=r.map(function(s){var a=n.updateAttempts(s);return a>n.maxAttempts||n.includes(s)?!1:(n.queue.push(s),!0)});return this.queue=this.queue.sort(function(s,a){return n.getAttempts(s)-n.getAttempts(a)}),o},t.prototype.pushWithBackoff=function(n){var r=this;if(this.getAttempts(n)===0)return this.push(n)[0];var i=this.updateAttempts(n);if(i>this.maxAttempts||this.includes(n))return!1;var o=gpe({attempt:i-1});return setTimeout(function(){r.queue.push(n),r.future=r.future.filter(function(s){return s.id!==n.id}),r.emit(qO)},o),this.future.push(n),!0},t.prototype.getAttempts=function(n){var r;return(r=this.seen[n.id])!==null&&r!==void 0?r:0},t.prototype.updateAttempts=function(n){return this.seen[n.id]=this.getAttempts(n)+1,this.getAttempts(n)},t.prototype.includes=function(n){return this.queue.includes(n)||this.future.includes(n)||Boolean(this.queue.find(function(r){return r.id===n.id}))||Boolean(this.future.find(function(r){return r.id===n.id}))},t.prototype.pop=function(){return this.queue.shift()},Object.defineProperty(t.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"todo",{get:function(){return this.queue.length+this.future.length},enumerable:!1,configurable:!0}),t}(rx)});function ix(){var e=0,t,n="";if(!$O||N2+16>256){for($O=Array(e=256);e--;)$O[e]=256*Math.random()|0;e=N2=0}for(;e<16;e++)t=$O[N2+e],e==6?n+=KO[t&15|64]:e==8?n+=KO[t&63|128]:n+=KO[t],e&1&&e>1&&e<11&&(n+="-");return N2++,n}var N2,KO,$O,YO=Lt(()=>{N2=256,KO=[];for(;N2--;)KO[N2]=(N2+256).toString(16).substring(1)});var ype,xpe=Lt(()=>{ri();ype=function(){function e(){this._logs=[]}return e.prototype.log=function(t,n,r){var i=new Date;this._logs.push({level:t,message:n,time:i,extras:r})},Object.defineProperty(e.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),e.prototype.flush=function(){if(this.logs.length>1){var t=this._logs.reduce(function(n,r){var i,o,s,a=et(et({},r),{json:JSON.stringify(r.extras,null," "),extras:r.extras});delete a.time;var l=(s=(o=r.time)===null||o===void 0?void 0:o.toISOString())!==null&&s!==void 0?s:"";return n[l]&&(l="".concat(l,"-").concat(Math.random())),et(et({},n),(i={},i[l]=a,i))},{});console.table?console.table(t):console.log(t)}else this.logs.forEach(function(n){var r=n.level,i=n.message,o=n.extras;r==="info"||r==="debug"?console.log(i,o??""):console[r](i,o??"")});this._logs=[]},e}()});var Dit,zH,_pe,TH=Lt(()=>{ri();Dit=function(e){var t={gauge:"g",counter:"c"};return t[e]},zH=function(){function e(){this.metrics=[]}return e.prototype.increment=function(t,n,r){n===void 0&&(n=1),this.metrics.push({metric:t,value:n,tags:r??[],type:"counter",timestamp:Date.now()})},e.prototype.gauge=function(t,n,r){this.metrics.push({metric:t,value:n,tags:r??[],type:"gauge",timestamp:Date.now()})},e.prototype.flush=function(){var t=this.metrics.map(function(n){return et(et({},n),{tags:n.tags.join(",")})});console.table?console.table(t):console.log(t),this.metrics=[]},e.prototype.serialize=function(){return this.metrics.map(function(t){return{m:t.metric,v:t.value,t:t.tags,k:Dit(t.type),e:t.timestamp}})},e}(),_pe=function(e){Ko(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.gauge=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r]},t.prototype.increment=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r]},t.prototype.flush=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r]},t.prototype.serialize=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return[]},t}(zH)});var Ju,G2,ZO=Lt(()=>{YO();WO();xpe();TH();Ju=function(){function e(t){var n,r,i;this.retry=(n=t.retry)!==null&&n!==void 0?n:!0,this.type=(r=t.type)!==null&&r!==void 0?r:"plugin Error",this.reason=(i=t.reason)!==null&&i!==void 0?i:""}return e}(),G2=function(){function e(t,n,r,i){n===void 0&&(n=ix()),r===void 0&&(r=new _pe),i===void 0&&(i=new ype),this.attempts=0,this.event=t,this._id=n,this.logger=i,this.stats=r}return e.system=function(){},e.prototype.isSame=function(t){return t.id===this.id},e.prototype.cancel=function(t){throw t||new Ju({reason:"Context Cancel"})},e.prototype.log=function(t,n,r){this.logger.log(t,n,r)},Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e.prototype.updateEvent=function(t,n){var r;if(t.split(".")[0]==="integrations"){var i=t.split(".")[1];if(((r=this.event.integrations)===null||r===void 0?void 0:r[i])===!1)return this.event}return eg(this.event,t,n),this.event},e.prototype.failedDelivery=function(){return this._failedDelivery},e.prototype.setFailedDelivery=function(t){this._failedDelivery=t},e.prototype.logs=function(){return this.logger.logs},e.prototype.flush=function(){this.logger.flush(),this.stats.flush()},e.prototype.toJSON=function(){return{id:this._id,event:this.event,logs:this.logger.logs,metrics:this.stats.metrics}},e}()});function bpe(e,t){var n={};return e.forEach(function(r){var i,o=void 0;if(typeof t=="string"){var s=r[t];o=typeof s!="string"?JSON.stringify(s):s}else t instanceof Function&&(o=t(r));o!==void 0&&(n[o]=So(So([],(i=n[o])!==null&&i!==void 0?i:[],!0),[r],!1))}),n}var wpe=Lt(()=>{ri()});var Ppe,kpe=Lt(()=>{Ppe=function(e){return typeof e=="object"&&e!==null&&"then"in e&&typeof e.then=="function"}});var Ape,Cpe=Lt(()=>{kpe();Ape=function(){var e,t,n=0;return{done:function(){return e},run:function(r){var i=r();return Ppe(i)&&(++n===1&&(e=new Promise(function(o){return t=o})),i.finally(function(){return--n===0&&t()})),i}}}});function Rit(e){return Et(this,void 0,void 0,function(){var t;return Mt(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e()];case 1:return[2,n.sent()];case 2:return t=n.sent(),[2,Promise.reject(t)];case 3:return[2]}})})}function S0(e,t){e.log("debug","plugin",{plugin:t.name});var n=new Date().getTime(),r=t[e.event.type];if(r===void 0)return Promise.resolve(e);var i=Rit(function(){return r.apply(t,[e])}).then(function(o){var s=new Date().getTime()-n;return o.stats.gauge("plugin_time",s,["plugin:".concat(t.name)]),o}).catch(function(o){if(o instanceof Ju&&o.type==="middleware_cancellation")throw o;return o instanceof Ju?(e.log("warn",o.type,{plugin:t.name,error:o}),o):(e.log("error","plugin Error",{plugin:t.name,error:o}),e.stats.increment("plugin_error",1,["plugin:".concat(t.name)]),o)});return i}function Spe(e,t){return S0(e,t).then(function(n){if(n instanceof G2)return n;e.log("debug","Context canceled"),e.stats.increment("context_canceled"),e.cancel(n)})}var DH=Lt(()=>{ri();ZO()});var Ope,Epe=Lt(()=>{ri();wpe();IH();ZO();HO();Cpe();DH();Ope=function(e){Ko(t,e);function t(n){var r=e.call(this)||this;return r.criticalTasks=Ape(),r.plugins=[],r.failedInitializations=[],r.flushing=!1,r.queue=n,r.queue.on(qO,function(){r.scheduleFlush(0)}),r}return t.prototype.register=function(n,r,i){return Et(this,void 0,void 0,function(){var o=this;return Mt(this,function(s){switch(s.label){case 0:return[4,Promise.resolve(r.load(n,i)).then(function(){o.plugins.push(r)}).catch(function(a){if(r.type==="destination"){o.failedInitializations.push(r.name),console.warn(r.name,a),n.log("warn","Failed to load destination",{plugin:r.name,error:a});return}throw a})];case 1:return s.sent(),[2]}})})},t.prototype.deregister=function(n,r,i){return Et(this,void 0,void 0,function(){var o;return Mt(this,function(s){switch(s.label){case 0:return s.trys.push([0,3,,4]),r.unload?[4,Promise.resolve(r.unload(n,i))]:[3,2];case 1:s.sent(),s.label=2;case 2:return this.plugins=this.plugins.filter(function(a){return a.name!==r.name}),[3,4];case 3:return o=s.sent(),n.log("warn","Failed to unload destination",{plugin:r.name,error:o}),[3,4];case 4:return[2]}})})},t.prototype.dispatch=function(n){return Et(this,void 0,void 0,function(){var r;return Mt(this,function(i){return n.log("debug","Dispatching"),n.stats.increment("message_dispatched"),this.queue.push(n),r=this.subscribeToDelivery(n),this.scheduleFlush(0),[2,r]})})},t.prototype.subscribeToDelivery=function(n){return Et(this,void 0,void 0,function(){var r=this;return Mt(this,function(i){return[2,new Promise(function(o){var s=function(a,l){a.isSame(n)&&(r.off("flush",s),o(a))};r.on("flush",s)})]})})},t.prototype.dispatchSingle=function(n){return Et(this,void 0,void 0,function(){var r=this;return Mt(this,function(i){return n.log("debug","Dispatching"),n.stats.increment("message_dispatched"),this.queue.updateAttempts(n),n.attempts=1,[2,this.deliver(n).catch(function(o){var s=r.enqueuRetry(o,n);return s?r.subscribeToDelivery(n):(n.setFailedDelivery({reason:o}),n)})]})})},t.prototype.isEmpty=function(){return this.queue.length===0},t.prototype.scheduleFlush=function(n){var r=this;n===void 0&&(n=500),!this.flushing&&(this.flushing=!0,setTimeout(function(){r.flush().then(function(){setTimeout(function(){r.flushing=!1,r.queue.length&&r.scheduleFlush(0)},0)})},n))},t.prototype.deliver=function(n){return Et(this,void 0,void 0,function(){var r,i,o,s;return Mt(this,function(a){switch(a.label){case 0:return[4,this.criticalTasks.done()];case 1:a.sent(),r=Date.now(),a.label=2;case 2:return a.trys.push([2,4,,5]),[4,this.flushOne(n)];case 3:return n=a.sent(),i=Date.now()-r,this.emit("delivery_success",n),n.stats.gauge("delivered",i),n.log("debug","Delivered",n.event),[2,n];case 4:throw o=a.sent(),s=o,n.log("error","Failed to deliver",s),this.emit("delivery_failure",n,s),n.stats.increment("delivery_failed"),o;case 5:return[2]}})})},t.prototype.enqueuRetry=function(n,r){var i=!(n instanceof Ju)||n.retry;return i?this.queue.pushWithBackoff(r):!1},t.prototype.flush=function(){return Et(this,void 0,void 0,function(){var n,r,i;return Mt(this,function(o){switch(o.label){case 0:if(this.queue.length===0)return[2,[]];if(n=this.queue.pop(),!n)return[2,[]];n.attempts=this.queue.getAttempts(n),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.deliver(n)];case 2:return n=o.sent(),this.emit("flush",n,!0),[3,4];case 3:return r=o.sent(),i=this.enqueuRetry(r,n),i||(n.setFailedDelivery({reason:r}),this.emit("flush",n,!1)),[2,[]];case 4:return[2,[n]]}})})},t.prototype.isReady=function(){return!0},t.prototype.availableExtensions=function(n){var r=this.plugins.filter(function(h){var m,g,b;if(h.type!=="destination"&&h.name!=="Segment.io")return!0;var v=void 0;return(m=h.alternativeNames)===null||m===void 0||m.forEach(function(x){n[x]!==void 0&&(v=n[x])}),(b=(g=n[h.name])!==null&&g!==void 0?g:v)!==null&&b!==void 0?b:(h.name==="Segment.io"?!0:n.All)!==!1}),i=bpe(r,"type"),o=i.before,s=o===void 0?[]:o,a=i.enrichment,l=a===void 0?[]:a,u=i.destination,c=u===void 0?[]:u,f=i.after,d=f===void 0?[]:f;return{before:s,enrichment:l,destinations:c,after:d}},t.prototype.flushOne=function(n){var r,i;return Et(this,void 0,void 0,function(){var o,s,a,l,u,c,m,f,d,h,m,g,b,v,x;return Mt(this,function(y){switch(y.label){case 0:if(!this.isReady())throw new Error("Not ready");n.attempts>1&&this.emit("delivery_retry",n),o=this.availableExtensions((r=n.event.integrations)!==null&&r!==void 0?r:{}),s=o.before,a=o.enrichment,l=0,u=s,y.label=1;case 1:return l<u.length?(c=u[l],[4,Spe(n,c)]):[3,4];case 2:m=y.sent(),m instanceof G2&&(n=m),this.emit("message_enriched",n,c),y.label=3;case 3:return l++,[3,1];case 4:f=0,d=a,y.label=5;case 5:return f<d.length?(h=d[f],[4,S0(n,h)]):[3,8];case 6:m=y.sent(),m instanceof G2&&(n=m),this.emit("message_enriched",n,h),y.label=7;case 7:return f++,[3,5];case 8:return g=this.availableExtensions((i=n.event.integrations)!==null&&i!==void 0?i:{}),b=g.destinations,v=g.after,[4,new Promise(function(_,w){setTimeout(function(){var k=b.map(function(O){return S0(n,O)});Promise.all(k).then(_).catch(w)},0)})];case 9:return y.sent(),n.stats.increment("message_delivered"),this.emit("message_delivered",n),x=v.map(function(_){return S0(n,_)}),[4,Promise.all(x)];case 10:return y.sent(),[2,n]}})})},t}(rx)});var Mpe=Lt(()=>{});function Bpe(e,t,n,r){return Et(this,void 0,void 0,function(){var i,o;return Mt(this,function(s){switch(s.label){case 0:return n.emit("dispatch_start",e),i=Date.now(),t.isEmpty()?[4,t.dispatchSingle(e)]:[3,2];case 1:return o=s.sent(),[3,4];case 2:return[4,t.dispatch(e)];case 3:o=s.sent(),s.label=4;case 4:return r?.callback?[4,GH(o,r.callback,Lit(i,r.timeout))]:[3,6];case 5:o=s.sent(),s.label=6;case 6:return r?.debug&&o.flush(),[2,o]}})})}var Lit,Npe=Lt(()=>{ri();FH();Lit=function(e,t){var n=Date.now()-e;return Math.max((t??300)-n,0)}});var Gpe=Lt(()=>{});var Ac=Lt(()=>{HO();upe();cpe();wH();mpe();FH();IH();ZO();Epe();Mpe();Npe();AH();PH();NH();Gpe();TH();DH()});function uw(){return typeof window<"u"}function UO(){return!uw()}var cw=Lt(()=>{});function VH(){return uw()?window.navigator.onLine:!0}function Ad(){return!VH()}var ox=Lt(()=>{cw()});function zpe(e,t){return t=t||{},new Promise(function(n,r){var i=new XMLHttpRequest,o=[],s=[],a={},l=function(){return{ok:(i.status/100|0)==2,statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:l,headers:{keys:function(){return o},entries:function(){return s},get:function(c){return a[c.toLowerCase()]},has:function(c){return c.toLowerCase()in a}}}};for(var u in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(c,f,d){o.push(f=f.toLowerCase()),s.push([f,d]),a[f]=a[f]?a[f]+","+d:d}),n(l())},i.onerror=r,i.withCredentials=t.credentials=="include",t.headers)i.setRequestHeader(u,t.headers[u]);i.send(t.body||null)})}var Tpe=Lt(()=>{});var sx,QO=Lt(()=>{sx=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:null}});var tg,dw=Lt(()=>{Tpe();QO();tg=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=sx();return(n&&n.fetch||zpe).apply(void 0,e)}});var $f,pw=Lt(()=>{$f="1.51.7"});function eE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}function JH(e,t){function n(i,o,s){if(!(typeof document>"u")){s=eE({},t,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in s)!s[l]||(a+="; "+l,s[l]!==!0&&(a+="="+s[l].split(";")[0]));return document.cookie=i+"="+e.write(o,i)+a}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],s={},a=0;a<o.length;a++){var l=o[a].split("="),u=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(s[c]=e.read(u,c),i===c)break}catch{}}return i?s[i]:s}}return Object.create({set:n,get:r,remove:function(i,o){n(i,"",eE({},o,{expires:-1}))},withAttributes:function(i){return JH(this.converter,eE({},this.attributes,i))},withConverter:function(i){return JH(eE({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Vit,Jit,ju,tE=Lt(()=>{Vit={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};Jit=JH(Vit,{path:"/"}),ju=Jit});function nE(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return e}}var jH=Lt(()=>{});function jit(e){var t=e.hostname,n=t.split("."),r=n[n.length-1],i=[];if(n.length===4&&parseInt(r,10)>0||n.length<=1)return i;for(var o=n.length-2;o>=0;--o)i.push(n.slice(o).join("."));return i}function Hit(e){try{return new URL(e)}catch{return}}function rE(e){var t=Hit(e);if(!!t)for(var n=jit(t),r=0;r<n.length;++r){var i="__tld__",o=n[r],s={domain:"."+o};try{if(ju.set(i,"1",s),ju.get(i))return ju.remove(i,s),o}catch{return}}}var HH=Lt(()=>{tE()});function ax(e){for(var t=e.constructor.prototype,n=0,r=Object.getOwnPropertyNames(t);n<r.length;n++){var i=r[n];if(i!=="constructor"){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,i);!!o&&typeof o.value=="function"&&(e[i]=e[i].bind(e))}}return e}var WH=Lt(()=>{});function fw(e){return{cookie:Dpe.available()?new Dpe(e):void 0,localStorage:Rpe.available()?new Rpe:void 0,memory:new qH}}var lx,qH,Wit,Dpe,XH,Rpe,F2,$H,Xit,Lpe,KH=Lt(()=>{ri();YO();tE();HH();WH();lx={persist:!0,cookie:{key:"ajs_user_id",oldKey:"ajs_user"},localStorage:{key:"ajs_user_traits"}},qH=function(){function e(){this.cache={}}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,n){this.cache[t]=n},e.prototype.remove=function(t){delete this.cache[t]},Object.defineProperty(e.prototype,"type",{get:function(){return"memory"},enumerable:!1,configurable:!0}),e}(),Wit=365,Dpe=function(e){Ko(t,e);function t(n){n===void 0&&(n=t.defaults);var r=e.call(this)||this;return r.options=et(et({},t.defaults),n),r}return t.available=function(){var n=window.navigator.cookieEnabled;return n||(ju.set("ajs:cookies","test"),n=document.cookie.includes("ajs:cookies"),ju.remove("ajs:cookies")),n},Object.defineProperty(t,"defaults",{get:function(){return{maxage:Wit,domain:rE(window.location.href),path:"/",sameSite:"Lax"}},enumerable:!1,configurable:!0}),t.prototype.opts=function(){return{sameSite:this.options.sameSite,expires:this.options.maxage,domain:this.options.domain,path:this.options.path,secure:this.options.secure}},t.prototype.get=function(n){try{var r=ju.get(n);if(!r)return null;try{return JSON.parse(r)}catch{return r}}catch{return null}},t.prototype.set=function(n,r){typeof r=="string"?ju.set(n,r,this.opts()):r===null?ju.remove(n,this.opts()):ju.set(n,JSON.stringify(r),this.opts())},t.prototype.remove=function(n){return ju.remove(n,this.opts())},Object.defineProperty(t.prototype,"type",{get:function(){return"cookie"},enumerable:!1,configurable:!0}),t}(qH),XH=function(e,t){console.warn("Unable to access ".concat(e,", localStorage may be ").concat(t))},Rpe=function(e){Ko(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.available=function(){var n="test";try{return localStorage.setItem(n,n),localStorage.removeItem(n),!0}catch{return!1}},t.prototype.get=function(n){try{var r=localStorage.getItem(n);if(r===null)return null;try{return JSON.parse(r)}catch{return r}}catch{return XH(n,"unavailable"),null}},t.prototype.set=function(n,r){try{localStorage.setItem(n,JSON.stringify(r))}catch{XH(n,"full")}},t.prototype.remove=function(n){try{return localStorage.removeItem(n)}catch{XH(n,"unavailable")}},Object.defineProperty(t.prototype,"type",{get:function(){return"localStorage"},enumerable:!1,configurable:!0}),t}(qH),F2=function(){function e(t,n){this.storageOptions=n,this.enabledStores=t}return e.prototype.getStores=function(t){var n=this,r=[];return this.enabledStores.filter(function(i){return!t||t?.includes(i)}).forEach(function(i){var o=n.storageOptions[i];o!==void 0&&r.push(o)}),r},e.prototype.getAndSync=function(t,n){var r=this.get(t,n),i=typeof r=="number"?r.toString():r;return this.set(t,i,n),i},e.prototype.get=function(t,n){for(var r=null,i=0,o=this.getStores(n);i<o.length;i++){var s=o[i];if(r=s.get(t),r)return r}return null},e.prototype.set=function(t,n,r){for(var i=0,o=this.getStores(r);i<o.length;i++){var s=o[i];s.set(t,n)}},e.prototype.clear=function(t,n){for(var r=0,i=this.getStores(n);r<i.length;r++){var o=i[r];o.remove(t)}},e}();$H=function(){function e(t,n){t===void 0&&(t=lx);var r=this,i,o,s,a;this.options={},this.id=function(h){if(r.options.disable)return null;var m=r.identityStore.getAndSync(r.idKey);if(h!==void 0){r.identityStore.set(r.idKey,h);var g=h!==m&&m!==null&&h!==null;g&&r.anonymousId(null)}var b=r.identityStore.getAndSync(r.idKey);if(b)return b;var v=r.legacyUserStore.get(lx.cookie.oldKey);return v?typeof v=="object"?v.id:v:null},this.anonymousId=function(h){var m,g;if(r.options.disable)return null;if(h===void 0){var b=(m=r.identityStore.getAndSync(r.anonKey))!==null&&m!==void 0?m:(g=r.legacySIO())===null||g===void 0?void 0:g[0];if(b)return b}return h===null?(r.identityStore.set(r.anonKey,null),r.identityStore.getAndSync(r.anonKey)):(r.identityStore.set(r.anonKey,h??ix()),r.identityStore.getAndSync(r.anonKey))},this.traits=function(h){var m;if(!r.options.disable)return h===null&&(h={}),h&&r.traitsStore.set(r.traitsKey,h??{}),(m=r.traitsStore.get(r.traitsKey))!==null&&m!==void 0?m:{}},this.options=t,this.cookieOptions=n,this.idKey=(o=(i=t.cookie)===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:lx.cookie.key,this.traitsKey=(a=(s=t.localStorage)===null||s===void 0?void 0:s.key)!==null&&a!==void 0?a:lx.localStorage.key,this.anonKey="ajs_anonymous_id";var l=t.disable===!0,u=t.persist!==!1,c=l?[]:u?["localStorage","cookie","memory"]:["memory"],f=fw(n);t.localStorageFallbackDisabled&&(c=c.filter(function(h){return h!=="localStorage"})),this.identityStore=new F2(c,f),this.legacyUserStore=new F2(c.filter(function(h){return h!=="localStorage"&&h!=="memory"}),f),this.traitsStore=new F2(c.filter(function(h){return h!=="cookie"}),f);var d=this.legacyUserStore.get(lx.cookie.oldKey);d&&typeof d=="object"&&(d.id&&this.id(d.id),d.traits&&this.traits(d.traits)),ax(this)}return e.prototype.legacySIO=function(){var t=this.legacyUserStore.get("_sio");if(!t)return null;var n=t.split("----"),r=n[0],i=n[1];return[r,i]},e.prototype.identify=function(t,n){if(!this.options.disable){n=n??{};var r=this.id();(r===null||r===t)&&(n=et(et({},this.traits()),n)),t&&this.id(t),this.traits(n)}},e.prototype.logout=function(){this.anonymousId(null),this.id(null),this.traits({})},e.prototype.reset=function(){this.logout(),this.identityStore.clear(this.idKey),this.identityStore.clear(this.anonKey),this.traitsStore.clear(this.traitsKey)},e.prototype.load=function(){return new e(this.options,this.cookieOptions)},e.prototype.save=function(){return!0},e.defaults=lx,e}(),Xit={persist:!0,cookie:{key:"ajs_group_id"},localStorage:{key:"ajs_group_properties"}},Lpe=function(e){Ko(t,e);function t(n,r){n===void 0&&(n=Xit);var i=e.call(this,n,r)||this;return i.anonymousId=function(o){},ax(i),i}return t}($H)});function qit(){if(hw)return hw;var e=rE(window.location.href);return hw={expires:31536e6,secure:!1,path:"/"},e&&(hw.domain=e),hw}function YH(){return $it}function Kit(){var e=ju.get("_ga");if(e&&e.startsWith("amp"))return e}function Yit(e){return e.startsWith("?")&&(e=e.substring(1)),e=e.replace(/\?/g,"&"),e.split("&").reduce(function(t,n){var r=n.split("="),i=r[0],o=r[1],s=o===void 0?"":o;if(i.includes("utm_")&&i.length>4){var a=i.substr(4);a==="campaign"&&(a="name"),t[a]=nE(s)}return t},{})}function Zit(e){var t={btid:"dataxu",urid:"millennial-media"};e.startsWith("?")&&(e=e.substring(1)),e=e.replace(/\?/g,"&");for(var n=e.split("&"),r=0,i=n;r<i.length;r++){var o=i[r],s=o.split("="),a=s[0],l=s[1];if(t[a])return{id:l,type:t[a]}}}function Uit(e,t,n){var r=new F2(n?[]:["cookie"],fw(qit())),i=r.get("s:context.referrer"),o=Zit(e);o=o??i,o&&(t&&(t.referrer=et(et({},t.referrer),o)),r.set("s:context.referrer",o))}function Vpe(e,t,n,r){var i,o,s,a,l,u=e.user();t.context=(o=(i=t.context)!==null&&i!==void 0?i:t.options)!==null&&o!==void 0?o:{};var c=t.context,f=((s=c.page)===null||s===void 0?void 0:s.search)||"";delete t.options,t.writeKey=n?.apiKey,c.userAgent=window.navigator.userAgent;var d=navigator.userLanguage||navigator.language;if(typeof c.locale>"u"&&typeof d<"u"&&(c.locale=d),!c.library){var h=YH();h==="web"?c.library={name:"analytics.js",version:"next-".concat($f)}:c.library={name:"analytics.js",version:"npm:next-".concat($f)}}f&&!c.campaign&&(c.campaign=Yit(f)),Uit(f,c,(a=e.options.disableClientPersistence)!==null&&a!==void 0?a:!1),t.userId=t.userId||u.id(),t.anonymousId=t.anonymousId||u.anonymousId(),t.sentAt=new Date;var m=e.queue.failedInitializations||[];m.length>0&&(t._metadata={failedInitializations:m});var g=[],b=[];for(var v in r){var x=r[v];v==="Segment.io"&&g.push(v),x.bundlingStatus==="bundled"&&g.push(v),x.bundlingStatus==="unbundled"&&b.push(v)}for(var y=0,_=n?.unbundledIntegrations||[];y<_.length;y++){var w=_[y];b.includes(w)||b.push(w)}var k=(l=n?.maybeBundledConfigIds)!==null&&l!==void 0?l:{},O=[];g.sort().forEach(function(I){var W;((W=k[I])!==null&&W!==void 0?W:[]).forEach(function(J){O.push(J)})}),n?.addBundledMetadata!==!1&&(t._metadata=et(et({},t._metadata),{bundled:g.sort(),unbundled:b.sort(),bundledIds:O}));var M=Kit();return M&&(c.amp={id:M}),t}var hw,$it,ZH=Lt(()=>{ri();tE();jH();HH();pw();KH();$it="npm"});var iE,UH=Lt(()=>{iE="api.segment.io/v1"});function QH(e){console.error("Error sending segment performance metrics",e)}var Qit,Jpe,jpe=Lt(()=>{ri();dw();pw();ZH();UH();Qit=function(e,t,n){var r=t.reduce(function(i,o){var s=o.split(":"),a=s[0],l=s[1];return i[a]=l,i},{});return{type:"Counter",metric:e,value:1,tags:et(et({},r),{library:"analytics.js",library_version:n==="web"?"next-".concat($f):"npm:next-".concat($f)})}};Jpe=function(){function e(t){var n=this,r,i,o,s;if(this.host=(r=t?.host)!==null&&r!==void 0?r:iE,this.sampleRate=(i=t?.sampleRate)!==null&&i!==void 0?i:1,this.flushTimer=(o=t?.flushTimer)!==null&&o!==void 0?o:30*1e3,this.maxQueueSize=(s=t?.maxQueueSize)!==null&&s!==void 0?s:20,this.queue=[],this.sampleRate>0){var a=!1,l=function(){a||(a=!0,n.flush().catch(QH),a=!1,setTimeout(l,n.flushTimer))};l()}}return e.prototype.increment=function(t,n){if(!!t.includes("analytics_js.")&&n.length!==0&&!(Math.random()>this.sampleRate)&&!(this.queue.length>=this.maxQueueSize)){var r=Qit(t,n,YH());this.queue.push(r),t.includes("error")&&this.flush().catch(QH)}},e.prototype.flush=function(){return Et(this,void 0,void 0,function(){var t=this;return Mt(this,function(n){switch(n.label){case 0:return this.queue.length<=0?[2]:[4,this.send().catch(function(r){QH(r),t.sampleRate=0})];case 1:return n.sent(),[2]}})})},e.prototype.send=function(){return Et(this,void 0,void 0,function(){var t,n,r;return Mt(this,function(i){return t={series:this.queue},this.queue=[],n={"Content-Type":"text/plain"},r="https://".concat(this.host,"/m"),[2,tg(r,{headers:n,body:JSON.stringify(t),method:"POST"})]})})},e}()});var oE,sE,eW=Lt(()=>{ri();Ac();jpe();sE=function(e){Ko(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.initRemoteMetrics=function(n){oE=new Jpe(n)},t.prototype.increment=function(n,r,i){e.prototype.increment.call(this,n,r,i),oE?.increment(n,i??[])},t}(zH)});var Cd,I2=Lt(()=>{ri();Ac();eW();Cd=function(e){Ko(t,e);function t(n,r){return e.call(this,n,r,new sE)||this}return t.system=function(){return new this({type:"track",event:"system"})},t}(G2)});var Xpe=ne((Hpe,Wpe)=>{(function(e){if(typeof Hpe=="object")Wpe.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t;try{t=window}catch{t=self}t.SparkMD5=e()}})(function(e){"use strict";var t=function(v,x){return v+x&4294967295},n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function r(v,x,y,_,w,k){return x=t(t(x,v),t(_,k)),t(x<<w|x>>>32-w,y)}function i(v,x){var y=v[0],_=v[1],w=v[2],k=v[3];y+=(_&w|~_&k)+x[0]-680876936|0,y=(y<<7|y>>>25)+_|0,k+=(y&_|~y&w)+x[1]-389564586|0,k=(k<<12|k>>>20)+y|0,w+=(k&y|~k&_)+x[2]+606105819|0,w=(w<<17|w>>>15)+k|0,_+=(w&k|~w&y)+x[3]-1044525330|0,_=(_<<22|_>>>10)+w|0,y+=(_&w|~_&k)+x[4]-176418897|0,y=(y<<7|y>>>25)+_|0,k+=(y&_|~y&w)+x[5]+1200080426|0,k=(k<<12|k>>>20)+y|0,w+=(k&y|~k&_)+x[6]-1473231341|0,w=(w<<17|w>>>15)+k|0,_+=(w&k|~w&y)+x[7]-45705983|0,_=(_<<22|_>>>10)+w|0,y+=(_&w|~_&k)+x[8]+1770035416|0,y=(y<<7|y>>>25)+_|0,k+=(y&_|~y&w)+x[9]-1958414417|0,k=(k<<12|k>>>20)+y|0,w+=(k&y|~k&_)+x[10]-42063|0,w=(w<<17|w>>>15)+k|0,_+=(w&k|~w&y)+x[11]-1990404162|0,_=(_<<22|_>>>10)+w|0,y+=(_&w|~_&k)+x[12]+1804603682|0,y=(y<<7|y>>>25)+_|0,k+=(y&_|~y&w)+x[13]-40341101|0,k=(k<<12|k>>>20)+y|0,w+=(k&y|~k&_)+x[14]-1502002290|0,w=(w<<17|w>>>15)+k|0,_+=(w&k|~w&y)+x[15]+1236535329|0,_=(_<<22|_>>>10)+w|0,y+=(_&k|w&~k)+x[1]-165796510|0,y=(y<<5|y>>>27)+_|0,k+=(y&w|_&~w)+x[6]-1069501632|0,k=(k<<9|k>>>23)+y|0,w+=(k&_|y&~_)+x[11]+643717713|0,w=(w<<14|w>>>18)+k|0,_+=(w&y|k&~y)+x[0]-373897302|0,_=(_<<20|_>>>12)+w|0,y+=(_&k|w&~k)+x[5]-701558691|0,y=(y<<5|y>>>27)+_|0,k+=(y&w|_&~w)+x[10]+38016083|0,k=(k<<9|k>>>23)+y|0,w+=(k&_|y&~_)+x[15]-660478335|0,w=(w<<14|w>>>18)+k|0,_+=(w&y|k&~y)+x[4]-405537848|0,_=(_<<20|_>>>12)+w|0,y+=(_&k|w&~k)+x[9]+568446438|0,y=(y<<5|y>>>27)+_|0,k+=(y&w|_&~w)+x[14]-1019803690|0,k=(k<<9|k>>>23)+y|0,w+=(k&_|y&~_)+x[3]-187363961|0,w=(w<<14|w>>>18)+k|0,_+=(w&y|k&~y)+x[8]+1163531501|0,_=(_<<20|_>>>12)+w|0,y+=(_&k|w&~k)+x[13]-1444681467|0,y=(y<<5|y>>>27)+_|0,k+=(y&w|_&~w)+x[2]-51403784|0,k=(k<<9|k>>>23)+y|0,w+=(k&_|y&~_)+x[7]+1735328473|0,w=(w<<14|w>>>18)+k|0,_+=(w&y|k&~y)+x[12]-1926607734|0,_=(_<<20|_>>>12)+w|0,y+=(_^w^k)+x[5]-378558|0,y=(y<<4|y>>>28)+_|0,k+=(y^_^w)+x[8]-2022574463|0,k=(k<<11|k>>>21)+y|0,w+=(k^y^_)+x[11]+1839030562|0,w=(w<<16|w>>>16)+k|0,_+=(w^k^y)+x[14]-35309556|0,_=(_<<23|_>>>9)+w|0,y+=(_^w^k)+x[1]-1530992060|0,y=(y<<4|y>>>28)+_|0,k+=(y^_^w)+x[4]+1272893353|0,k=(k<<11|k>>>21)+y|0,w+=(k^y^_)+x[7]-155497632|0,w=(w<<16|w>>>16)+k|0,_+=(w^k^y)+x[10]-1094730640|0,_=(_<<23|_>>>9)+w|0,y+=(_^w^k)+x[13]+681279174|0,y=(y<<4|y>>>28)+_|0,k+=(y^_^w)+x[0]-358537222|0,k=(k<<11|k>>>21)+y|0,w+=(k^y^_)+x[3]-722521979|0,w=(w<<16|w>>>16)+k|0,_+=(w^k^y)+x[6]+76029189|0,_=(_<<23|_>>>9)+w|0,y+=(_^w^k)+x[9]-640364487|0,y=(y<<4|y>>>28)+_|0,k+=(y^_^w)+x[12]-421815835|0,k=(k<<11|k>>>21)+y|0,w+=(k^y^_)+x[15]+530742520|0,w=(w<<16|w>>>16)+k|0,_+=(w^k^y)+x[2]-995338651|0,_=(_<<23|_>>>9)+w|0,y+=(w^(_|~k))+x[0]-198630844|0,y=(y<<6|y>>>26)+_|0,k+=(_^(y|~w))+x[7]+1126891415|0,k=(k<<10|k>>>22)+y|0,w+=(y^(k|~_))+x[14]-1416354905|0,w=(w<<15|w>>>17)+k|0,_+=(k^(w|~y))+x[5]-57434055|0,_=(_<<21|_>>>11)+w|0,y+=(w^(_|~k))+x[12]+1700485571|0,y=(y<<6|y>>>26)+_|0,k+=(_^(y|~w))+x[3]-1894986606|0,k=(k<<10|k>>>22)+y|0,w+=(y^(k|~_))+x[10]-1051523|0,w=(w<<15|w>>>17)+k|0,_+=(k^(w|~y))+x[1]-2054922799|0,_=(_<<21|_>>>11)+w|0,y+=(w^(_|~k))+x[8]+1873313359|0,y=(y<<6|y>>>26)+_|0,k+=(_^(y|~w))+x[15]-30611744|0,k=(k<<10|k>>>22)+y|0,w+=(y^(k|~_))+x[6]-1560198380|0,w=(w<<15|w>>>17)+k|0,_+=(k^(w|~y))+x[13]+1309151649|0,_=(_<<21|_>>>11)+w|0,y+=(w^(_|~k))+x[4]-145523070|0,y=(y<<6|y>>>26)+_|0,k+=(_^(y|~w))+x[11]-1120210379|0,k=(k<<10|k>>>22)+y|0,w+=(y^(k|~_))+x[2]+718787259|0,w=(w<<15|w>>>17)+k|0,_+=(k^(w|~y))+x[9]-343485551|0,_=(_<<21|_>>>11)+w|0,v[0]=y+v[0]|0,v[1]=_+v[1]|0,v[2]=w+v[2]|0,v[3]=k+v[3]|0}function o(v){var x=[],y;for(y=0;y<64;y+=4)x[y>>2]=v.charCodeAt(y)+(v.charCodeAt(y+1)<<8)+(v.charCodeAt(y+2)<<16)+(v.charCodeAt(y+3)<<24);return x}function s(v){var x=[],y;for(y=0;y<64;y+=4)x[y>>2]=v[y]+(v[y+1]<<8)+(v[y+2]<<16)+(v[y+3]<<24);return x}function a(v){var x=v.length,y=[1732584193,-271733879,-1732584194,271733878],_,w,k,O,M,I;for(_=64;_<=x;_+=64)i(y,o(v.substring(_-64,_)));for(v=v.substring(_-64),w=v.length,k=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],_=0;_<w;_+=1)k[_>>2]|=v.charCodeAt(_)<<(_%4<<3);if(k[_>>2]|=128<<(_%4<<3),_>55)for(i(y,k),_=0;_<16;_+=1)k[_]=0;return O=x*8,O=O.toString(16).match(/(.*?)(.{0,8})$/),M=parseInt(O[2],16),I=parseInt(O[1],16)||0,k[14]=M,k[15]=I,i(y,k),y}function l(v){var x=v.length,y=[1732584193,-271733879,-1732584194,271733878],_,w,k,O,M,I;for(_=64;_<=x;_+=64)i(y,s(v.subarray(_-64,_)));for(v=_-64<x?v.subarray(_-64):new Uint8Array(0),w=v.length,k=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],_=0;_<w;_+=1)k[_>>2]|=v[_]<<(_%4<<3);if(k[_>>2]|=128<<(_%4<<3),_>55)for(i(y,k),_=0;_<16;_+=1)k[_]=0;return O=x*8,O=O.toString(16).match(/(.*?)(.{0,8})$/),M=parseInt(O[2],16),I=parseInt(O[1],16)||0,k[14]=M,k[15]=I,i(y,k),y}function u(v){var x="",y;for(y=0;y<4;y+=1)x+=n[v>>y*8+4&15]+n[v>>y*8&15];return x}function c(v){var x;for(x=0;x<v.length;x+=1)v[x]=u(v[x]);return v.join("")}c(a("hello"))!=="5d41402abc4b2a76b9719d911017c592"&&(t=function(v,x){var y=(v&65535)+(x&65535),_=(v>>16)+(x>>16)+(y>>16);return _<<16|y&65535}),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function v(x,y){return x=x|0||0,x<0?Math.max(x+y,0):Math.min(x,y)}ArrayBuffer.prototype.slice=function(x,y){var _=this.byteLength,w=v(x,_),k=_,O,M,I,W;return y!==e&&(k=v(y,_)),w>k?new ArrayBuffer(0):(O=k-w,M=new ArrayBuffer(O),I=new Uint8Array(M),W=new Uint8Array(this,w,O),I.set(W),M)}}();function f(v){return/[\u0080-\uFFFF]/.test(v)&&(v=unescape(encodeURIComponent(v))),v}function d(v,x){var y=v.length,_=new ArrayBuffer(y),w=new Uint8Array(_),k;for(k=0;k<y;k+=1)w[k]=v.charCodeAt(k);return x?w:_}function h(v){return String.fromCharCode.apply(null,new Uint8Array(v))}function m(v,x,y){var _=new Uint8Array(v.byteLength+x.byteLength);return _.set(new Uint8Array(v)),_.set(new Uint8Array(x),v.byteLength),y?_:_.buffer}function g(v){var x=[],y=v.length,_;for(_=0;_<y-1;_+=2)x.push(parseInt(v.substr(_,2),16));return String.fromCharCode.apply(String,x)}function b(){this.reset()}return b.prototype.append=function(v){return this.appendBinary(f(v)),this},b.prototype.appendBinary=function(v){this._buff+=v,this._length+=v.length;var x=this._buff.length,y;for(y=64;y<=x;y+=64)i(this._hash,o(this._buff.substring(y-64,y)));return this._buff=this._buff.substring(y-64),this},b.prototype.end=function(v){var x=this._buff,y=x.length,_,w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],k;for(_=0;_<y;_+=1)w[_>>2]|=x.charCodeAt(_)<<(_%4<<3);return this._finish(w,y),k=c(this._hash),v&&(k=g(k)),this.reset(),k},b.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},b.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},b.prototype.setState=function(v){return this._buff=v.buff,this._length=v.length,this._hash=v.hash,this},b.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},b.prototype._finish=function(v,x){var y=x,_,w,k;if(v[y>>2]|=128<<(y%4<<3),y>55)for(i(this._hash,v),y=0;y<16;y+=1)v[y]=0;_=this._length*8,_=_.toString(16).match(/(.*?)(.{0,8})$/),w=parseInt(_[2],16),k=parseInt(_[1],16)||0,v[14]=w,v[15]=k,i(this._hash,v)},b.hash=function(v,x){return b.hashBinary(f(v),x)},b.hashBinary=function(v,x){var y=a(v),_=c(y);return x?g(_):_},b.ArrayBuffer=function(){this.reset()},b.ArrayBuffer.prototype.append=function(v){var x=m(this._buff.buffer,v,!0),y=x.length,_;for(this._length+=v.byteLength,_=64;_<=y;_+=64)i(this._hash,s(x.subarray(_-64,_)));return this._buff=_-64<y?new Uint8Array(x.buffer.slice(_-64)):new Uint8Array(0),this},b.ArrayBuffer.prototype.end=function(v){var x=this._buff,y=x.length,_=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],w,k;for(w=0;w<y;w+=1)_[w>>2]|=x[w]<<(w%4<<3);return this._finish(_,y),k=c(this._hash),v&&(k=g(k)),this.reset(),k},b.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},b.ArrayBuffer.prototype.getState=function(){var v=b.prototype.getState.call(this);return v.buff=h(v.buff),v},b.ArrayBuffer.prototype.setState=function(v){return v.buff=d(v.buff,!0),b.prototype.setState.call(this,v)},b.ArrayBuffer.prototype.destroy=b.prototype.destroy,b.ArrayBuffer.prototype._finish=b.prototype._finish,b.ArrayBuffer.hash=function(v,x){var y=l(new Uint8Array(v)),_=c(y);return x?g(_):_},b})});var mw=Lt(()=>{Ac()});function Ype(e){var t=Kf.getItem(e);return(t?JSON.parse(t):[]).map(function(n){return new Cd(n.event,n.id)})}function eot(e,t){var n=Ype(e),r=So(So([],t,!0),n,!0),i=r.reduce(function(o,s){var a;return et(et({},o),(a={},a[s.id]=s,a))},{});Kf.setItem(e,JSON.stringify(Object.values(i)))}function Zpe(e){var t=Kf.getItem(e);return t?JSON.parse(t):{}}function tot(e,t){var n=Zpe(e);Kf.setItem(e,JSON.stringify(et(et({},n),t)))}function Kpe(e){Kf.removeItem(e)}function tW(e,t,n){n===void 0&&(n=0);var r=50,i="persisted-queue:v1:".concat(e,":lock"),o=function(u){return new Date().getTime()>u},s=Kf.getItem(i),a=s?JSON.parse(s):null,l=a===null||o(a);if(l){Kf.setItem(i,JSON.stringify(not()+r)),t(),Kf.removeItem(i);return}!l&&n<3?setTimeout(function(){tW(e,t,n+1)},r):console.error("Unable to retrieve lock")}var Kf,not,ng,gw=Lt(()=>{ri();mw();I2();cw();Kf={getItem:function(){},setItem:function(){},removeItem:function(){}};try{Kf=uw()&&window.localStorage?window.localStorage:Kf}catch(e){console.warn("Unable to access localStorage",e)}not=function(){return new Date().getTime()};ng=function(e){Ko(t,e);function t(n,r){var i=e.call(this,n,[])||this,o="persisted-queue:v1:".concat(r,":items"),s="persisted-queue:v1:".concat(r,":seen"),a=[],l={};return tW(r,function(){try{a=Ype(o),l=Zpe(s),Kpe(o),Kpe(s),i.queue=So(So([],a,!0),i.queue,!0),i.seen=et(et({},l),i.seen)}catch(u){console.error(u)}}),window.addEventListener("pagehide",function(){if(i.todo>0){var u=So(So([],i.queue,!0),i.future,!0);try{tW(r,function(){eot(o,u),tot(s,i.seen)})}catch(c){console.error(c)}}}),i}return t}(C0)});var Qpe=Lt(()=>{Ac()});var vw={};$h(vw,{form:()=>sot,link:()=>oot});function rot(e){var t=e;return!!(t.ctrlKey||t.shiftKey||t.metaKey||t.button&&t.button==1)}function iot(e,t){return!!(e.target==="_blank"&&t)}function oot(e,t,n,r){var i=this,o=[];return e?(e instanceof Element?o=[e]:"toArray"in e?o=e.toArray():o=e,o.forEach(function(s){s.addEventListener("click",function(a){var l,u,c=t instanceof Function?t(s):t,f=n instanceof Function?n(s):n,d=s.getAttribute("href")||s.getAttributeNS("http://www.w3.org/1999/xlink","href")||s.getAttribute("xlink:href")||((l=s.getElementsByTagName("a")[0])===null||l===void 0?void 0:l.getAttribute("href")),h=lw(i.track(c,f,r??{}),(u=i.settings.timeout)!==null&&u!==void 0?u:500);!iot(s,d)&&!rot(a)&&d&&(a.preventDefault?a.preventDefault():a.returnValue=!1,h.catch(console.error).then(function(){window.location.href=d}).catch(console.error))},!1)}),this):this}function sot(e,t,n,r){var i=this;if(!e)return this;e instanceof HTMLFormElement&&(e=[e]);var o=e;return o.forEach(function(s){if(!(s instanceof Element))throw new TypeError("Must pass HTMLElement to trackForm/trackSubmit.");var a=function(u){var c;u.preventDefault?u.preventDefault():u.returnValue=!1;var f=t instanceof Function?t(s):t,d=n instanceof Function?n(s):n,h=lw(i.track(f,d,r??{}),(c=i.settings.timeout)!==null&&c!==void 0?c:500);h.catch(console.error).then(function(){s.submit()}).catch(console.error)},l=window.jQuery||window.Zepto;l?l(s).submit(a):s.addEventListener("submit",a,!1)}),this}var yw=Lt(()=>{Qpe()});var xw=ne((Nfn,ux)=>{ux.exports=nW(aot);ux.exports.find=ux.exports;ux.exports.replace=function(e,t,n,r){return nW(uot).call(this,e,t,n,r),e};ux.exports.del=function(e,t,n){return nW(lot).call(this,e,t,null,n),e};function nW(e){return function(t,n,r,i){var o=i&&dot(i.normalizer)?i.normalizer:cot;n=o(n);for(var s,a=!1;!a;)l();function l(){for(s in t){var u=o(s);if(n.indexOf(u)===0){var c=n.substr(u.length);if(c.charAt(0)==="."||c.length===0){n=c.substr(1);var f=t[s];if(f==null){a=!0;return}if(!n.length){a=!0;return}t=f;return}}}s=void 0,a=!0}if(!!s)return t==null?t:e(t,s,r)}}function aot(e,t){if(e.hasOwnProperty(t))return e[t]}function lot(e,t){return e.hasOwnProperty(t)&&delete e[t],e}function uot(e,t,n){return e.hasOwnProperty(t)&&(e[t]=n),e}function cot(e){return e.replace(/[^a-zA-Z0-9\.]+/g,"").toLowerCase()}function dot(e){return typeof e=="function"}});var efe=ne(_w=>{"use strict";var pot=_w&&_w.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_w,"__esModule",{value:!0});var rg=pot(xw());function cx(e,t){return function(){var n=this.traits(),r=this.properties?this.properties():{};return rg.default(n,"address."+e)||rg.default(n,e)||(t?rg.default(n,"address."+t):null)||(t?rg.default(n,t):null)||rg.default(r,"address."+e)||rg.default(r,e)||(t?rg.default(r,"address."+t):null)||(t?rg.default(r,t):null)}}function fot(e){e.zip=cx("postalCode","zip"),e.country=cx("country"),e.street=cx("street"),e.state=cx("state"),e.city=cx("city"),e.region=cx("region")}_w.default=fot});var tfe=ne(aE=>{"use strict";Object.defineProperty(aE,"__esModule",{value:!0});aE.clone=void 0;function rW(e){if(typeof e!="object")return e;if(Object.prototype.toString.call(e)==="[object Object]"){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=rW(e[n]));return t}else return Array.isArray(e)?e.map(rW):e}aE.clone=rW});var nfe=ne(iW=>{"use strict";Object.defineProperty(iW,"__esModule",{value:!0});var hot={Salesforce:!0};function mot(e){return!hot[e]}iW.default=mot});var sW=ne(oW=>{"use strict";var rfe=/^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;oW.parse=function(e){var t=[1,5,6,7,11,12],n=rfe.exec(e),r=0;if(!n)return new Date(e);for(var i=0,o;o=t[i];i++)n[o]=parseInt(n[o],10)||0;n[2]=parseInt(n[2],10)||1,n[3]=parseInt(n[3],10)||1,n[2]--,n[8]=n[8]?(n[8]+"00").substring(0,3):0,n[4]===" "?r=new Date().getTimezoneOffset():n[9]!=="Z"&&n[10]&&(r=n[11]*60+n[12],n[10]==="+"&&(r=0-r));var s=Date.UTC(n[1],n[2],n[3],n[5],n[6]+r,n[7],n[8]);return new Date(s)};oW.is=function(e,t){return typeof e!="string"||t&&/^\d{4}-\d{2}-\d{2}/.test(e)===!1?!1:rfe.test(e)}});var ife=ne(aW=>{"use strict";var got=/\d{13}/;aW.is=function(e){return got.test(e)};aW.parse=function(e){return e=parseInt(e,10),new Date(e)}});var ofe=ne(lW=>{"use strict";var vot=/\d{10}/;lW.is=function(e){return vot.test(e)};lW.parse=function(e){var t=parseInt(e,10)*1e3;return new Date(t)}});var lE=ne((Rfn,cfe)=>{"use strict";var sfe=sW(),afe=ife(),lfe=ofe(),yot=Object.prototype,ufe=yot.toString;function xot(e){return ufe.call(e)==="[object Date]"}function _ot(e){return ufe.call(e)==="[object Number]"}cfe.exports=function(t){return xot(t)?t:_ot(t)?new Date(bot(t)):sfe.is(t)?sfe.parse(t):afe.is(t)?afe.parse(t):lfe.is(t)?lfe.parse(t):new Date(t)};function bot(e){return e<315576e5?e*1e3:e}});var ffe=ne((Lfn,pfe)=>{"use strict";var dfe=sW();pfe.exports=uW;function uW(e,t){return t===void 0&&(t=!0),e&&typeof e=="object"?wot(e,t):Array.isArray(e)?Pot(e,t):dfe.is(e,t)?dfe.parse(e):e}function wot(e,t){return Object.keys(e).forEach(function(n){e[n]=uW(e[n],t)}),e}function Pot(e,t){return e.forEach(function(n,r){e[r]=uW(n,t)}),e}});var ig=ne(px=>{"use strict";var bw=px&&px.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(px,"__esModule",{value:!0});px.Facade=void 0;var kot=bw(efe()),dx=tfe(),Aot=bw(nfe()),Cot=bw(lE()),cW=bw(xw()),Sot=bw(ffe());function Cc(e,t){t=t||{},this.raw=dx.clone(e),"clone"in t||(t.clone=!0),t.clone&&(e=dx.clone(e)),"traverse"in t||(t.traverse=!0),"timestamp"in e?e.timestamp=Cot.default(e.timestamp):e.timestamp=new Date,t.traverse&&Sot.default(e),this.opts=t,this.obj=e}px.Facade=Cc;var Yo=Cc.prototype;Yo.proxy=function(e){var t=e.split(".");e=t.shift();var n=this[e]||this.obj[e];return n&&(typeof n=="function"&&(n=n.call(this)||{}),t.length===0?this.opts.clone?dW(n):n:(n=cW.default(n,t.join(".")),this.opts.clone?dW(n):n))};Yo.field=function(e){var t=this.obj[e];return this.opts.clone?dW(t):t};Cc.proxy=function(e){return function(){return this.proxy(e)}};Cc.field=function(e){return function(){return this.field(e)}};Cc.multi=function(e){return function(){var t=this.proxy(e+"s");if(Array.isArray(t))return t;var n=this.proxy(e);return n&&(n=[this.opts.clone?dx.clone(n):n]),n||[]}};Cc.one=function(e){return function(){var t=this.proxy(e);if(t)return t;var n=this.proxy(e+"s");if(Array.isArray(n))return n[0]}};Yo.json=function(){var e=this.opts.clone?dx.clone(this.obj):this.obj;return this.type&&(e.type=this.type()),e};Yo.rawEvent=function(){return this.raw};Yo.options=function(e){var t=this.obj.options||this.obj.context||{},n=this.opts.clone?dx.clone(t):t;if(!e)return n;if(!!this.enabled(e)){var r=this.integrations(),i=r[e]||cW.default(r,e);return typeof i!="object"&&(i=cW.default(this.options(),e)),typeof i=="object"?i:{}}};Yo.context=Yo.options;Yo.enabled=function(e){var t=this.proxy("options.providers.all");typeof t!="boolean"&&(t=this.proxy("options.all")),typeof t!="boolean"&&(t=this.proxy("integrations.all")),typeof t!="boolean"&&(t=!0);var n=t&&Aot.default(e),r=this.integrations();if(r.providers&&r.providers.hasOwnProperty(e)&&(n=r.providers[e]),r.hasOwnProperty(e)){var i=r[e];typeof i=="boolean"?n=i:n=!0}return!!n};Yo.integrations=function(){return this.obj.integrations||this.proxy("options.providers")||this.options()};Yo.active=function(){var e=this.proxy("options.active");return e==null&&(e=!0),e};Yo.anonymousId=function(){return this.field("anonymousId")||this.field("sessionId")};Yo.sessionId=Yo.anonymousId;Yo.groupId=Cc.proxy("options.groupId");Yo.traits=function(e){var t=this.proxy("options.traits")||{},n=this.userId();e=e||{},n&&(t.id=n);for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=this[r]==null?this.proxy("options.traits."+r):this[r]();if(i==null)continue;t[e[r]]=i,delete t[r]}return t};Yo.library=function(){var e=this.proxy("options.library");return e?typeof e=="string"?{name:e,version:null}:e:{name:"unknown",version:null}};Yo.device=function(){var e=this.proxy("context.device");(typeof e!="object"||e===null)&&(e={});var t=this.library().name;return e.type||(t.indexOf("ios")>-1&&(e.type="ios"),t.indexOf("android")>-1&&(e.type="android")),e};Yo.userAgent=Cc.proxy("context.userAgent");Yo.timezone=Cc.proxy("context.timezone");Yo.timestamp=Cc.field("timestamp");Yo.channel=Cc.field("channel");Yo.ip=Cc.proxy("context.ip");Yo.userId=Cc.field("userId");kot.default(Yo);function dW(e){return dx.clone(e)}});var og=ne((Jfn,pW)=>{typeof Object.create=="function"?pW.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:pW.exports=function(t,n){if(n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}}});var mfe=ne(fx=>{"use strict";var Oot=fx&&fx.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fx,"__esModule",{value:!0});fx.Alias=void 0;var Eot=Oot(og()),hfe=ig();function Rp(e,t){hfe.Facade.call(this,e,t)}fx.Alias=Rp;Eot.default(Rp,hfe.Facade);Rp.prototype.action=function(){return"alias"};Rp.prototype.type=Rp.prototype.action;Rp.prototype.previousId=function(){return this.field("previousId")||this.field("from")};Rp.prototype.from=Rp.prototype.previousId;Rp.prototype.userId=function(){return this.field("userId")||this.field("to")};Rp.prototype.to=Rp.prototype.userId});var ww=ne(fW=>{"use strict";Object.defineProperty(fW,"__esModule",{value:!0});var Mot=/.+\@.+\..+/;function Bot(e){return Mot.test(e)}fW.default=Bot});var gfe=ne(hx=>{"use strict";var hW=hx&&hx.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(hx,"__esModule",{value:!0});hx.Group=void 0;var Not=hW(og()),Got=hW(ww()),Fot=hW(lE()),mx=ig();function mW(e,t){mx.Facade.call(this,e,t)}hx.Group=mW;Not.default(mW,mx.Facade);var Lp=mW.prototype;Lp.action=function(){return"group"};Lp.type=Lp.action;Lp.groupId=mx.Facade.field("groupId");Lp.created=function(){var e=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(e)return Fot.default(e)};Lp.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.groupId();if(Got.default(t))return t};Lp.traits=function(e){var t=this.properties(),n=this.groupId();e=e||{},n&&(t.id=n);for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=this[r]==null?this.proxy("traits."+r):this[r]();if(i==null)continue;t[e[r]]=i,delete t[r]}return t};Lp.name=mx.Facade.proxy("traits.name");Lp.industry=mx.Facade.proxy("traits.industry");Lp.employees=mx.Facade.proxy("traits.employees");Lp.properties=function(){return this.field("traits")||this.field("properties")||{}}});var vW=ne(vx=>{"use strict";var uE=vx&&vx.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vx,"__esModule",{value:!0});vx.Identify=void 0;var Yf=ig(),gx=uE(xw()),Iot=uE(og()),zot=uE(ww()),vfe=uE(lE()),z2=function(e){return e.trim()};function gW(e,t){Yf.Facade.call(this,e,t)}vx.Identify=gW;Iot.default(gW,Yf.Facade);var Zo=gW.prototype;Zo.action=function(){return"identify"};Zo.type=Zo.action;Zo.traits=function(e){var t=this.field("traits")||{},n=this.userId();e=e||{},n&&(t.id=n);for(var r in e){var i=this[r]==null?this.proxy("traits."+r):this[r]();i!=null&&(t[e[r]]=i,r!==e[r]&&delete t[r])}return t};Zo.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.userId();if(zot.default(t))return t};Zo.created=function(){var e=this.proxy("traits.created")||this.proxy("traits.createdAt");if(e)return vfe.default(e)};Zo.companyCreated=function(){var e=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(e)return vfe.default(e)};Zo.companyName=function(){return this.proxy("traits.company.name")};Zo.name=function(){var e=this.proxy("traits.name");if(typeof e=="string")return z2(e);var t=this.firstName(),n=this.lastName();if(t&&n)return z2(t+" "+n)};Zo.firstName=function(){var e=this.proxy("traits.firstName");if(typeof e=="string")return z2(e);var t=this.proxy("traits.name");if(typeof t=="string")return z2(t).split(" ")[0]};Zo.lastName=function(){var e=this.proxy("traits.lastName");if(typeof e=="string")return z2(e);var t=this.proxy("traits.name");if(typeof t=="string"){var n=z2(t).indexOf(" ");if(n!==-1)return z2(t.substr(n+1))}};Zo.uid=function(){return this.userId()||this.username()||this.email()};Zo.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")};Zo.age=function(){var e=this.birthday(),t=gx.default(this.traits(),"age");if(t!=null)return t;if(e instanceof Date){var n=new Date;return n.getFullYear()-e.getFullYear()}};Zo.avatar=function(){var e=this.traits();return gx.default(e,"avatar")||gx.default(e,"photoUrl")||gx.default(e,"avatarUrl")};Zo.position=function(){var e=this.traits();return gx.default(e,"position")||gx.default(e,"jobTitle")};Zo.username=Yf.Facade.proxy("traits.username");Zo.website=Yf.Facade.one("traits.website");Zo.websites=Yf.Facade.multi("traits.website");Zo.phone=Yf.Facade.one("traits.phone");Zo.phones=Yf.Facade.multi("traits.phone");Zo.address=Yf.Facade.proxy("traits.address");Zo.gender=Yf.Facade.proxy("traits.gender");Zo.birthday=Yf.Facade.proxy("traits.birthday")});var cE=ne(yx=>{"use strict";var yW=yx&&yx.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yx,"__esModule",{value:!0});yx.Track=void 0;var Tot=yW(og()),ga=ig(),Dot=vW(),Rot=yW(ww()),yfe=yW(xw());function xW(e,t){ga.Facade.call(this,e,t)}yx.Track=xW;Tot.default(xW,ga.Facade);var xr=xW.prototype;xr.action=function(){return"track"};xr.type=xr.action;xr.event=ga.Facade.field("event");xr.value=ga.Facade.proxy("properties.value");xr.category=ga.Facade.proxy("properties.category");xr.id=ga.Facade.proxy("properties.id");xr.productId=function(){return this.proxy("properties.product_id")||this.proxy("properties.productId")};xr.promotionId=function(){return this.proxy("properties.promotion_id")||this.proxy("properties.promotionId")};xr.cartId=function(){return this.proxy("properties.cart_id")||this.proxy("properties.cartId")};xr.checkoutId=function(){return this.proxy("properties.checkout_id")||this.proxy("properties.checkoutId")};xr.paymentId=function(){return this.proxy("properties.payment_id")||this.proxy("properties.paymentId")};xr.couponId=function(){return this.proxy("properties.coupon_id")||this.proxy("properties.couponId")};xr.wishlistId=function(){return this.proxy("properties.wishlist_id")||this.proxy("properties.wishlistId")};xr.reviewId=function(){return this.proxy("properties.review_id")||this.proxy("properties.reviewId")};xr.orderId=function(){return this.proxy("properties.id")||this.proxy("properties.order_id")||this.proxy("properties.orderId")};xr.sku=ga.Facade.proxy("properties.sku");xr.tax=ga.Facade.proxy("properties.tax");xr.name=ga.Facade.proxy("properties.name");xr.price=ga.Facade.proxy("properties.price");xr.total=ga.Facade.proxy("properties.total");xr.repeat=ga.Facade.proxy("properties.repeat");xr.coupon=ga.Facade.proxy("properties.coupon");xr.shipping=ga.Facade.proxy("properties.shipping");xr.discount=ga.Facade.proxy("properties.discount");xr.shippingMethod=function(){return this.proxy("properties.shipping_method")||this.proxy("properties.shippingMethod")};xr.paymentMethod=function(){return this.proxy("properties.payment_method")||this.proxy("properties.paymentMethod")};xr.description=ga.Facade.proxy("properties.description");xr.plan=ga.Facade.proxy("properties.plan");xr.subtotal=function(){var e=yfe.default(this.properties(),"subtotal"),t=this.total()||this.revenue();if(e)return e;if(!t)return 0;if(this.total()){var n=this.tax();n&&(t-=n),n=this.shipping(),n&&(t-=n),n=this.discount(),n&&(t+=n)}return t};xr.products=function(){var e=this.properties(),t=yfe.default(e,"products");return Array.isArray(t)?t.filter(function(n){return n!==null}):[]};xr.quantity=function(){var e=this.obj.properties||{};return e.quantity||1};xr.currency=function(){var e=this.obj.properties||{};return e.currency||"USD"};xr.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")};xr.query=ga.Facade.proxy("options.query");xr.properties=function(e){var t=this.field("properties")||{};e=e||{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=this[n]==null?this.proxy("properties."+n):this[n]();if(r==null)continue;t[e[n]]=r,delete t[n]}return t};xr.username=function(){return this.proxy("traits.username")||this.proxy("properties.username")||this.userId()||this.sessionId()};xr.email=function(){var e=this.proxy("traits.email")||this.proxy("properties.email")||this.proxy("options.traits.email");if(e)return e;var t=this.userId();if(Rot.default(t))return t};xr.revenue=function(){var e=this.proxy("properties.revenue"),t=this.event(),n=/^[ _]?completed[ _]?order[ _]?|^[ _]?order[ _]?completed[ _]?$/i;return!e&&t&&t.match(n)&&(e=this.proxy("properties.total")),Lot(e)};xr.cents=function(){var e=this.revenue();return typeof e!="number"?this.value()||0:e*100};xr.identify=function(){var e=this.json();return e.traits=this.traits(),new Dot.Identify(e,this.opts)};function Lot(e){if(!!e){if(typeof e=="number")return e;if(typeof e=="string"&&(e=e.replace(/\$/g,""),e=parseFloat(e),!isNaN(e)))return e}}});var bW=ne(xx=>{"use strict";var xfe=xx&&xx.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xx,"__esModule",{value:!0});xx.Page=void 0;var Vot=xfe(og()),T2=ig(),Jot=cE(),jot=xfe(ww());function _W(e,t){T2.Facade.call(this,e,t)}xx.Page=_W;Vot.default(_W,T2.Facade);var Hu=_W.prototype;Hu.action=function(){return"page"};Hu.type=Hu.action;Hu.category=T2.Facade.field("category");Hu.name=T2.Facade.field("name");Hu.title=T2.Facade.proxy("properties.title");Hu.path=T2.Facade.proxy("properties.path");Hu.url=T2.Facade.proxy("properties.url");Hu.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")};Hu.properties=function(e){var t=this.field("properties")||{},n=this.category(),r=this.name();e=e||{},n&&(t.category=n),r&&(t.name=r);for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=this[i]==null?this.proxy("properties."+i):this[i]();if(o==null)continue;t[e[i]]=o,i!==e[i]&&delete t[i]}return t};Hu.email=function(){var e=this.proxy("context.traits.email")||this.proxy("properties.email");if(e)return e;var t=this.userId();if(jot.default(t))return t};Hu.fullName=function(){var e=this.category(),t=this.name();return t&&e?e+" "+t:t};Hu.event=function(e){return e?"Viewed "+e+" Page":"Loaded a Page"};Hu.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new Jot.Track(t,this.opts)}});var bfe=ne(_x=>{"use strict";var Hot=_x&&_x.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_x,"__esModule",{value:!0});_x.Screen=void 0;var Wot=Hot(og()),_fe=bW(),Xot=cE();function D2(e,t){_fe.Page.call(this,e,t)}_x.Screen=D2;Wot.default(D2,_fe.Page);D2.prototype.action=function(){return"screen"};D2.prototype.type=D2.prototype.action;D2.prototype.event=function(e){return e?"Viewed "+e+" Screen":"Loaded a Screen"};D2.prototype.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new Xot.Track(t,this.opts)}});var Pfe=ne(bx=>{"use strict";var qot=bx&&bx.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(bx,"__esModule",{value:!0});bx.Delete=void 0;var $ot=qot(og()),wfe=ig();function wW(e,t){wfe.Facade.call(this,e,t)}bx.Delete=wW;$ot.default(wW,wfe.Facade);wW.prototype.type=function(){return"delete"}});var PW=ne(Ns=>{"use strict";var dE=Ns&&Ns.__assign||function(){return dE=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},dE.apply(this,arguments)};Object.defineProperty(Ns,"__esModule",{value:!0});Ns.Delete=Ns.Screen=Ns.Page=Ns.Track=Ns.Identify=Ns.Group=Ns.Alias=Ns.Facade=void 0;var kfe=ig();Object.defineProperty(Ns,"Facade",{enumerable:!0,get:function(){return kfe.Facade}});var Afe=mfe();Object.defineProperty(Ns,"Alias",{enumerable:!0,get:function(){return Afe.Alias}});var Cfe=gfe();Object.defineProperty(Ns,"Group",{enumerable:!0,get:function(){return Cfe.Group}});var Sfe=vW();Object.defineProperty(Ns,"Identify",{enumerable:!0,get:function(){return Sfe.Identify}});var Ofe=cE();Object.defineProperty(Ns,"Track",{enumerable:!0,get:function(){return Ofe.Track}});var Efe=bW();Object.defineProperty(Ns,"Page",{enumerable:!0,get:function(){return Efe.Page}});var Mfe=bfe();Object.defineProperty(Ns,"Screen",{enumerable:!0,get:function(){return Mfe.Screen}});var Bfe=Pfe();Object.defineProperty(Ns,"Delete",{enumerable:!0,get:function(){return Bfe.Delete}});Ns.default=dE(dE({},kfe.Facade),{Alias:Afe.Alias,Group:Cfe.Group,Identify:Sfe.Identify,Track:Ofe.Track,Page:Efe.Page,Screen:Mfe.Screen,Delete:Bfe.Delete})});function wx(e,t){var n=new Wu.Facade(e,t);return e.type==="track"&&(n=new Wu.Track(e,t)),e.type==="identify"&&(n=new Wu.Identify(e,t)),e.type==="page"&&(n=new Wu.Page(e,t)),e.type==="alias"&&(n=new Wu.Alias(e,t)),e.type==="group"&&(n=new Wu.Group(e,t)),e.type==="screen"&&(n=new Wu.Screen(e,t)),Object.defineProperty(n,"obj",{value:e,writable:!0}),n}var Wu,kW=Lt(()=>{Wu=ie(PW())});var Nfe={};$h(Nfe,{applyDestinationMiddleware:()=>Pw,sourceMiddlewarePlugin:()=>Kot});function Pw(e,t,n){return Et(this,void 0,void 0,function(){function r(u,c){return Et(this,void 0,void 0,function(){var f,d,h;return Mt(this,function(m){switch(m.label){case 0:return f=!1,d=null,[4,c({payload:wx(u,{clone:!0,traverse:!1}),integration:e,next:function(g){f=!0,g===null&&(d=null),g&&(d=g.obj)}})];case 1:return m.sent(),!f&&d!==null&&(d=d,d.integrations=et(et({},u.integrations),(h={},h[e]=!1,h))),[2,d]}})})}var i,o,s,a,l;return Mt(this,function(u){switch(u.label){case 0:i=wx(t,{clone:!0,traverse:!1}).rawEvent(),o=0,s=n,u.label=1;case 1:return o<s.length?(a=s[o],[4,r(i,a)]):[3,4];case 2:if(l=u.sent(),l===null)return[2,null];i=l,u.label=3;case 3:return o++,[3,1];case 4:return[2,i]}})})}function Kot(e,t){function n(r){return Et(this,void 0,void 0,function(){var i;return Mt(this,function(o){switch(o.label){case 0:return i=!1,[4,e({payload:wx(r.event,{clone:!0,traverse:!1}),integrations:t??{},next:function(s){i=!0,s&&(r.event=s.obj)}})];case 1:if(o.sent(),!i)throw new Ju({retry:!1,type:"middleware_cancellation",reason:"Middleware `next` function skipped"});return[2,r]}})})}return{name:"Source Middleware ".concat(e.name),type:"before",version:"0.1.0",isLoaded:function(){return!0},load:function(r){return Promise.resolve(r)},track:n,page:n,identify:n,alias:n,group:n}}var pE=Lt(()=>{ri();I2();kW()});function AW(e,t){return Object.keys(t).reduce(function(n,r){if(r.startsWith(e)){var i=r.substr(e.length);n[i]=t[r]}return n},{})}var Gfe=Lt(()=>{});var Ffe={};$h(Ffe,{queryString:()=>Yot});function Yot(e,t){var n=document.createElement("a");n.href=t;var r=n.search.slice(1),i=r.split("&").reduce(function(y,_){var w=_.split("="),k=w[0],O=w[1];return y[k]=nE(O),y},{}),o=[],s=i.ajs_uid,a=i.ajs_event,l=i.ajs_aid,u=Js(e.options.useQueryString)?e.options.useQueryString:{},c=u.aid,f=c===void 0?/.+/:c,d=u.uid,h=d===void 0?/.+/:d;if(l){var m=Array.isArray(i.ajs_aid)?i.ajs_aid[0]:i.ajs_aid;f.test(m)&&e.setAnonymousId(m)}if(s){var g=Array.isArray(i.ajs_uid)?i.ajs_uid[0]:i.ajs_uid;if(h.test(g)){var b=AW("ajs_trait_",i);o.push(e.identify(g,b))}}if(a){var v=Array.isArray(i.ajs_event)?i.ajs_event[0]:i.ajs_event,x=AW("ajs_prop_",i);o.push(e.track(v,x))}return Promise.all(o)}var Ife=Lt(()=>{Gfe();jH();Ac()});var Uot,Qot,fE,est,Tfe,kw,Aw,Cw=Lt(()=>{Uot=/(https:\/\/.*)\/analytics\.js\/v1\/(?:.*?)\/(?:platform|analytics.*)?/,Qot=function(){var e,t=Array.prototype.slice.call(document.querySelectorAll("script"));return t.forEach(function(n){var r,i=(r=n.getAttribute("src"))!==null&&r!==void 0?r:"",o=Uot.exec(i);o&&o[1]&&(e=o[1])}),e},est=function(){var e,t=fE??((e=window.analytics)===null||e===void 0?void 0:e._cdn);return t},Tfe=function(e){window.analytics&&(window.analytics._cdn=e),fE=e},kw=function(){var e=est();if(e)return e;var t=Qot();return t||"https://cdn.segment.com"},Aw=function(){var e=kw();return"".concat(e,"/next-integrations")}});function hE(e,t){var n,r=Object.entries((n=t.integrations)!==null&&n!==void 0?n:{}).reduce(function(i,o){var s,a,l=o[0],u=o[1];return typeof u=="object"?et(et({},i),(s={},s[l]=u,s)):et(et({},i),(a={},a[l]={},a))},{});return Object.entries(e.integrations).reduce(function(i,o){var s,a=o[0],l=o[1];return et(et({},i),(s={},s[a]=et(et({},l),r[a]),s))},{})}var EW=Lt(()=>{ri()});function Jfe(e){var t=Array.prototype.slice.call(window.document.querySelectorAll("script"));return t.find(function(n){return n.src===e})}function O0(e,t){var n=Jfe(e);if(n!==void 0){var r=n?.getAttribute("status");if(r==="loaded")return Promise.resolve(n);if(r==="loading")return new Promise(function(i,o){n.addEventListener("load",function(){return i(n)}),n.addEventListener("error",function(s){return o(s)})})}return new Promise(function(i,o){var s,a=window.document.createElement("script");a.type="text/javascript",a.src=e,a.async=!0,a.setAttribute("status","loading");for(var l=0,u=Object.entries(t??{});l<u.length;l++){var c=u[l],f=c[0],d=c[1];a.setAttribute(f,d)}a.onload=function(){a.onerror=a.onload=null,a.setAttribute("status","loaded"),i(a)},a.onerror=function(){a.onerror=a.onload=null,a.setAttribute("status","error"),o(new Error("Failed to load ".concat(e)))};var h=window.document.getElementsByTagName("script")[0];(s=h.parentElement)===null||s===void 0||s.insertBefore(a,h)})}function jfe(e){var t=Jfe(e);return t!==void 0&&t.remove(),Promise.resolve()}var mE=Lt(()=>{});var gE,BW=Lt(()=>{ri();gE=function(e,t){return Et(void 0,void 0,void 0,function(){var n;return Mt(this,function(r){return n=function(i){return Et(void 0,void 0,void 0,function(){var o;return Mt(this,function(s){switch(s.label){case 0:return e(i)?(o=n,[4,t()]):[3,2];case 1:return[2,o.apply(void 0,[s.sent()])];case 2:return[2]}})})},[2,n(void 0)]})})}});var ahe=ne((x0n,she)=>{for(FW=[],ag=0;ag<64;)FW[ag]=0|4294967296*Math.sin(++ag%Math.PI);var FW,ag;she.exports=function(e){var t,n,r,i=[t=1732584193,n=4023233417,~t,~n],o=[],s=unescape(encodeURI(e))+"\x80",a=s.length;for(e=--a/4+2|15,o[--e]=8*a;~a;)o[a>>2]|=s.charCodeAt(a)<<8*a--;for(ag=s=0;ag<e;ag+=16){for(a=i;s<64;a=[r=a[3],t+((r=a[0]+[t&n|~t&r,r&t|~r&n,t^n^r,n^(t|~r)][a=s>>4]+FW[s]+~~o[ag|15&[s,5*s+1,3*s+5,7*s][a]])<<(a=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*a+s++%4])|r>>>-a),t,n])t=0|a[1],n=a[2];for(s=4;s;)i[--s]+=a[s]}for(e="";s<32;)e+=(i[s>>3]>>4*(1^s++)&15).toString(16);return e}});var yE=ne((IW,zW)=>{(function(e,t){typeof IW=="object"&&typeof zW<"u"?zW.exports=function(n,r,i,o,s){for(r=r.split?r.split("."):r,o=0;o<r.length;o++)n=n?n[r[o]]:s;return n===s?i:n}:typeof define=="function"&&define.amd?define(function(){return function(n,r,i,o,s){for(r=r.split?r.split("."):r,o=0;o<r.length;o++)n=n?n[r[o]]:s;return n===s?i:n}}):e.dlv=function(n,r,i,o,s){for(r=r.split?r.split("."):r,o=0;o<r.length;o++)n=n?n[r[o]]:s;return n===s?i:n}})(IW)});var TW=ne((_0n,lhe)=>{"use strict";var gst=Number.POSITIVE_INFINITY;lhe.exports=gst});var che=ne((b0n,uhe)=>{"use strict";uhe.exports=Number});var phe=ne((w0n,dhe)=>{"use strict";var vst=che();dhe.exports=vst});var DW=ne((P0n,fhe)=>{"use strict";var yst=phe(),xst=yst.NEGATIVE_INFINITY;fhe.exports=xst});var RW=ne((k0n,hhe)=>{"use strict";var _st=1023;hhe.exports=_st});var ghe=ne((A0n,mhe)=>{"use strict";var bst=1023;mhe.exports=bst});var yhe=ne((C0n,vhe)=>{"use strict";var wst=-1023;vhe.exports=wst});var _he=ne((S0n,xhe)=>{"use strict";var Pst=-1074;xhe.exports=Pst});var whe=ne((O0n,bhe)=>{"use strict";function kst(e){return e!==e}bhe.exports=kst});var LW=ne((E0n,Phe)=>{"use strict";var Ast=whe();Phe.exports=Ast});var Ahe=ne((M0n,khe)=>{"use strict";var Cst=TW(),Sst=DW();function Ost(e){return e===Cst||e===Sst}khe.exports=Ost});var VW=ne((B0n,Che)=>{"use strict";var Est=Ahe();Che.exports=Est});var Ohe=ne((N0n,She)=>{"use strict";var Mst=2147483648;She.exports=Mst});var Mhe=ne((G0n,Ehe)=>{"use strict";var Bst=2147483647;Ehe.exports=Bst});var Nhe=ne((F0n,Bhe)=>{"use strict";var Nst=typeof Object.defineProperty=="function"?Object.defineProperty:null;Bhe.exports=Nst});var Fhe=ne((I0n,Ghe)=>{"use strict";var Gst=Nhe();function Fst(){try{return Gst({},"x",{}),!0}catch{return!1}}Ghe.exports=Fst});var zhe=ne((z0n,Ihe)=>{"use strict";var Ist=Object.defineProperty;Ihe.exports=Ist});var Vhe=ne((T0n,Lhe)=>{"use strict";var kx=Object.prototype,The=kx.toString,Dhe=kx.__defineGetter__,Rhe=kx.__defineSetter__,zst=kx.__lookupGetter__,Tst=kx.__lookupSetter__;function Dst(e,t,n){var r,i,o,s;if(typeof e!="object"||e===null||The.call(e)==="[object Array]")throw new TypeError("invalid argument. First argument must be an object. Value: `"+e+"`.");if(typeof n!="object"||n===null||The.call(n)==="[object Array]")throw new TypeError("invalid argument. Property descriptor must be an object. Value: `"+n+"`.");if(i="value"in n,i&&(zst.call(e,t)||Tst.call(e,t)?(r=e.__proto__,e.__proto__=kx,delete e[t],e[t]=n.value,e.__proto__=r):e[t]=n.value),o="get"in n,s="set"in n,i&&(o||s))throw new Error("invalid argument. Cannot specify one or more accessors and a value or writable attribute in the property descriptor.");return o&&Dhe&&Dhe.call(e,t,n.get),s&&Rhe&&Rhe.call(e,t,n.set),e}Lhe.exports=Dst});var jhe=ne((D0n,Jhe)=>{"use strict";var Rst=Fhe(),Lst=zhe(),Vst=Vhe(),JW;Rst()?JW=Lst:JW=Vst;Jhe.exports=JW});var Whe=ne((R0n,Hhe)=>{"use strict";var Jst=jhe();function jst(e,t,n){Jst(e,t,{configurable:!1,enumerable:!1,writable:!1,value:n})}Hhe.exports=jst});var jW=ne((L0n,Xhe)=>{"use strict";var Hst=Whe();Xhe.exports=Hst});var $he=ne((V0n,qhe)=>{"use strict";function Wst(){return typeof Symbol=="function"&&typeof Symbol("foo")=="symbol"}qhe.exports=Wst});var Yhe=ne((J0n,Khe)=>{"use strict";var Xst=$he();Khe.exports=Xst});var Uhe=ne((j0n,Zhe)=>{"use strict";var qst=Yhe(),$st=qst();function Kst(){return $st&&typeof Symbol.toStringTag=="symbol"}Zhe.exports=Kst});var e0e=ne((H0n,Qhe)=>{"use strict";var Yst=Uhe();Qhe.exports=Yst});var HW=ne((W0n,t0e)=>{"use strict";var Zst=Object.prototype.toString;t0e.exports=Zst});var r0e=ne((X0n,n0e)=>{"use strict";var Ust=HW();function Qst(e){return Ust.call(e)}n0e.exports=Qst});var o0e=ne((q0n,i0e)=>{"use strict";var eat=Object.prototype.hasOwnProperty;function tat(e,t){return e==null?!1:eat.call(e,t)}i0e.exports=tat});var a0e=ne(($0n,s0e)=>{"use strict";var nat=o0e();s0e.exports=nat});var u0e=ne((K0n,l0e)=>{"use strict";var rat=typeof Symbol=="function"?Symbol.toStringTag:"";l0e.exports=rat});var d0e=ne((Y0n,c0e)=>{"use strict";var iat=a0e(),Ow=u0e(),WW=HW();function oat(e){var t,n,r;if(e==null)return WW.call(e);n=e[Ow],t=iat(e,Ow);try{e[Ow]=void 0}catch{return WW.call(e)}return r=WW.call(e),t?e[Ow]=n:delete e[Ow],r}c0e.exports=oat});var Ew=ne((Z0n,p0e)=>{"use strict";var sat=e0e(),aat=r0e(),lat=d0e(),XW;sat()?XW=lat:XW=aat;p0e.exports=XW});var h0e=ne((U0n,f0e)=>{"use strict";var uat=Ew(),cat=typeof Uint32Array=="function";function dat(e){return cat&&e instanceof Uint32Array||uat(e)==="[object Uint32Array]"}f0e.exports=dat});var g0e=ne((Q0n,m0e)=>{"use strict";var pat=h0e();m0e.exports=pat});var y0e=ne((emn,v0e)=>{"use strict";var fat=4294967295;v0e.exports=fat});var _0e=ne((tmn,x0e)=>{"use strict";var hat=typeof Uint32Array=="function"?Uint32Array:null;x0e.exports=hat});var P0e=ne((nmn,w0e)=>{"use strict";var mat=g0e(),qW=y0e(),b0e=_0e();function gat(){var e,t;if(typeof b0e!="function")return!1;try{t=[1,3.14,-3.14,qW+1,qW+2],t=new b0e(t),e=mat(t)&&t[0]===1&&t[1]===3&&t[2]===qW-2&&t[3]===0&&t[4]===1}catch{e=!1}return e}w0e.exports=gat});var A0e=ne((rmn,k0e)=>{"use strict";var vat=P0e();k0e.exports=vat});var S0e=ne((imn,C0e)=>{"use strict";var yat=typeof Uint32Array=="function"?Uint32Array:void 0;C0e.exports=yat});var E0e=ne((omn,O0e)=>{"use strict";function xat(){throw new Error("not implemented")}O0e.exports=xat});var xE=ne((smn,M0e)=>{"use strict";var _at=A0e(),bat=S0e(),wat=E0e(),$W;_at()?$W=bat:$W=wat;M0e.exports=$W});var N0e=ne((amn,B0e)=>{"use strict";var Pat=Ew(),kat=typeof Float64Array=="function";function Aat(e){return kat&&e instanceof Float64Array||Pat(e)==="[object Float64Array]"}B0e.exports=Aat});var F0e=ne((lmn,G0e)=>{"use strict";var Cat=N0e();G0e.exports=Cat});var z0e=ne((umn,I0e)=>{"use strict";var Sat=typeof Float64Array=="function"?Float64Array:null;I0e.exports=Sat});var R0e=ne((cmn,D0e)=>{"use strict";var Oat=F0e(),T0e=z0e();function Eat(){var e,t;if(typeof T0e!="function")return!1;try{t=new T0e([1,3.14,-3.14,NaN]),e=Oat(t)&&t[0]===1&&t[1]===3.14&&t[2]===-3.14&&t[3]!==t[3]}catch{e=!1}return e}D0e.exports=Eat});var V0e=ne((dmn,L0e)=>{"use strict";var Mat=R0e();L0e.exports=Mat});var j0e=ne((pmn,J0e)=>{"use strict";var Bat=typeof Float64Array=="function"?Float64Array:void 0;J0e.exports=Bat});var W0e=ne((fmn,H0e)=>{"use strict";function Nat(){throw new Error("not implemented")}H0e.exports=Nat});var _E=ne((hmn,X0e)=>{"use strict";var Gat=V0e(),Fat=j0e(),Iat=W0e(),KW;Gat()?KW=Fat:KW=Iat;X0e.exports=KW});var $0e=ne((mmn,q0e)=>{"use strict";var zat=Ew(),Tat=typeof Uint8Array=="function";function Dat(e){return Tat&&e instanceof Uint8Array||zat(e)==="[object Uint8Array]"}q0e.exports=Dat});var Y0e=ne((gmn,K0e)=>{"use strict";var Rat=$0e();K0e.exports=Rat});var U0e=ne((vmn,Z0e)=>{"use strict";var Lat=255;Z0e.exports=Lat});var eme=ne((ymn,Q0e)=>{"use strict";var Vat=typeof Uint8Array=="function"?Uint8Array:null;Q0e.exports=Vat});var rme=ne((xmn,nme)=>{"use strict";var Jat=Y0e(),YW=U0e(),tme=eme();function jat(){var e,t;if(typeof tme!="function")return!1;try{t=[1,3.14,-3.14,YW+1,YW+2],t=new tme(t),e=Jat(t)&&t[0]===1&&t[1]===3&&t[2]===YW-2&&t[3]===0&&t[4]===1}catch{e=!1}return e}nme.exports=jat});var ome=ne((_mn,ime)=>{"use strict";var Hat=rme();ime.exports=Hat});var ame=ne((bmn,sme)=>{"use strict";var Wat=typeof Uint8Array=="function"?Uint8Array:void 0;sme.exports=Wat});var ume=ne((wmn,lme)=>{"use strict";function Xat(){throw new Error("not implemented")}lme.exports=Xat});var dme=ne((Pmn,cme)=>{"use strict";var qat=ome(),$at=ame(),Kat=ume(),ZW;qat()?ZW=$at:ZW=Kat;cme.exports=ZW});var fme=ne((kmn,pme)=>{"use strict";var Yat=Ew(),Zat=typeof Uint16Array=="function";function Uat(e){return Zat&&e instanceof Uint16Array||Yat(e)==="[object Uint16Array]"}pme.exports=Uat});var mme=ne((Amn,hme)=>{"use strict";var Qat=fme();hme.exports=Qat});var vme=ne((Cmn,gme)=>{"use strict";var elt=65535;gme.exports=elt});var xme=ne((Smn,yme)=>{"use strict";var tlt=typeof Uint16Array=="function"?Uint16Array:null;yme.exports=tlt});var wme=ne((Omn,bme)=>{"use strict";var nlt=mme(),UW=vme(),_me=xme();function rlt(){var e,t;if(typeof _me!="function")return!1;try{t=[1,3.14,-3.14,UW+1,UW+2],t=new _me(t),e=nlt(t)&&t[0]===1&&t[1]===3&&t[2]===UW-2&&t[3]===0&&t[4]===1}catch{e=!1}return e}bme.exports=rlt});var kme=ne((Emn,Pme)=>{"use strict";var ilt=wme();Pme.exports=ilt});var Cme=ne((Mmn,Ame)=>{"use strict";var olt=typeof Uint16Array=="function"?Uint16Array:void 0;Ame.exports=olt});var Ome=ne((Bmn,Sme)=>{"use strict";function slt(){throw new Error("not implemented")}Sme.exports=slt});var Mme=ne((Nmn,Eme)=>{"use strict";var alt=kme(),llt=Cme(),ult=Ome(),QW;alt()?QW=llt:QW=ult;Eme.exports=QW});var Nme=ne((Gmn,Bme)=>{"use strict";var clt=dme(),dlt=Mme(),plt={uint16:dlt,uint8:clt};Bme.exports=plt});var zme=ne((Fmn,Ime)=>{"use strict";var Gme=Nme(),Fme;function flt(){var e,t;return e=new Gme.uint16(1),e[0]=4660,t=new Gme.uint8(e.buffer),t[0]===52}Fme=flt();Ime.exports=Fme});var bE=ne((Imn,Tme)=>{"use strict";var hlt=zme();Tme.exports=hlt});var Lme=ne((zmn,Rme)=>{"use strict";var mlt=bE(),Dme,eX,tX;mlt===!0?(eX=1,tX=0):(eX=0,tX=1);Dme={HIGH:eX,LOW:tX};Rme.exports=Dme});var nX=ne((Tmn,Hme)=>{"use strict";var glt=xE(),vlt=_E(),Jme=Lme(),jme=new vlt(1),Vme=new glt(jme.buffer),ylt=Jme.HIGH,xlt=Jme.LOW;function _lt(e,t,n,r){return jme[0]=e,t[r]=Vme[ylt],t[r+n]=Vme[xlt],t}Hme.exports=_lt});var Xme=ne((Dmn,Wme)=>{"use strict";var blt=nX();function wlt(e){return blt(e,[0>>>0,0>>>0],1,0)}Wme.exports=wlt});var rX=ne((Rmn,$me)=>{"use strict";var Plt=jW(),qme=Xme(),klt=nX();Plt(qme,"assign",klt);$me.exports=qme});var Yme=ne((Lmn,Kme)=>{"use strict";var Alt=bE(),iX;Alt===!0?iX=1:iX=0;Kme.exports=iX});var Qme=ne((Vmn,Ume)=>{"use strict";var Clt=xE(),Slt=_E(),Olt=Yme(),Zme=new Slt(1),Elt=new Clt(Zme.buffer);function Mlt(e){return Zme[0]=e,Elt[Olt]}Ume.exports=Mlt});var oX=ne((Jmn,e1e)=>{"use strict";var Blt=Qme();e1e.exports=Blt});var r1e=ne((jmn,n1e)=>{"use strict";var Nlt=bE(),t1e,sX,aX;Nlt===!0?(sX=1,aX=0):(sX=0,aX=1);t1e={HIGH:sX,LOW:aX};n1e.exports=t1e});var l1e=ne((Hmn,a1e)=>{"use strict";var Glt=xE(),Flt=_E(),o1e=r1e(),s1e=new Flt(1),i1e=new Glt(s1e.buffer),Ilt=o1e.HIGH,zlt=o1e.LOW;function Tlt(e,t){return i1e[Ilt]=e,i1e[zlt]=t,s1e[0]}a1e.exports=Tlt});var lX=ne((Wmn,u1e)=>{"use strict";var Dlt=l1e();u1e.exports=Dlt});var d1e=ne((Xmn,c1e)=>{"use strict";var Rlt=Ohe(),Llt=Mhe(),Vlt=rX(),Jlt=oX(),jlt=lX(),uX=[0,0];function Hlt(e,t){var n,r;return Vlt.assign(e,uX,1,0),n=uX[0],n&=Llt,r=Jlt(t),r&=Rlt,n|=r,jlt(n,uX[1])}c1e.exports=Hlt});var f1e=ne((qmn,p1e)=>{"use strict";var Wlt=d1e();p1e.exports=Wlt});var m1e=ne(($mn,h1e)=>{"use strict";var Xlt=22250738585072014e-324;h1e.exports=Xlt});var v1e=ne((Kmn,g1e)=>{"use strict";function qlt(e){return Math.abs(e)}g1e.exports=qlt});var x1e=ne((Ymn,y1e)=>{"use strict";var $lt=v1e();y1e.exports=$lt});var cX=ne((Zmn,_1e)=>{"use strict";var Klt=m1e(),Ylt=VW(),Zlt=LW(),Ult=x1e(),Qlt=4503599627370496;function eut(e,t,n,r){return Zlt(e)||Ylt(e)?(t[r]=e,t[r+n]=0,t):e!==0&&Ult(e)<Klt?(t[r]=e*Qlt,t[r+n]=-52,t):(t[r]=e,t[r+n]=0,t)}_1e.exports=eut});var w1e=ne((Umn,b1e)=>{"use strict";var tut=cX();function nut(e){return tut(e,[0,0],1,0)}b1e.exports=nut});var A1e=ne((Qmn,k1e)=>{"use strict";var rut=jW(),P1e=w1e(),iut=cX();rut(P1e,"assign",iut);k1e.exports=P1e});var S1e=ne((e1n,C1e)=>{"use strict";var out=2146435072;C1e.exports=out});var E1e=ne((t1n,O1e)=>{"use strict";var sut=oX(),aut=S1e(),lut=RW();function uut(e){var t=sut(e);return t=(t&aut)>>>20,t-lut|0}O1e.exports=uut});var B1e=ne((n1n,M1e)=>{"use strict";var cut=E1e();M1e.exports=cut});var G1e=ne((r1n,N1e)=>{"use strict";var dut=TW(),put=DW(),fut=RW(),hut=ghe(),mut=yhe(),gut=_he(),vut=LW(),yut=VW(),xut=f1e(),_ut=A1e(),but=B1e(),wut=rX(),Put=lX(),kut=2220446049250313e-31,Aut=2148532223>>>0,dX=[0,0],pX=[0,0];function Cut(e,t){var n,r;return e===0||vut(e)||yut(e)?e:(_ut(dX,e),e=dX[0],t+=dX[1],t+=but(e),t<gut?xut(0,e):t>hut?e<0?put:dut:(t<=mut?(t+=52,r=kut):r=1,wut(pX,e),n=pX[0],n&=Aut,n|=t+fut<<20,r*Put(n,pX[1])))}N1e.exports=Cut});var I1e=ne((i1n,F1e)=>{"use strict";var Sut=G1e();F1e.exports=Sut});var T1e=ne(z1e=>{function Out(e,t,n){t.split&&(t=t.split("."));for(var r=0,i=t.length,o=e,s,a;r<i&&(a=t[r++],!(a==="__proto__"||a==="constructor"||a==="prototype"));)o=o[a]=r===i?n:typeof(s=o[a])==typeof t?s:t[r]*0!==0||!!~(""+t[r]).indexOf(".")?{}:[]}z1e.dset=Out});var D1e=ne(Ax=>{"use strict";var Eut=Ax&&Ax.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ax,"__esModule",{value:!0});Ax.unset=void 0;var Mut=Eut(yE());function But(e,t){if((0,Mut.default)(e,t)){for(var n=t.split("."),r=n.pop();n.length&&n[n.length-1].slice(-1)==="\\";)r=n.pop().slice(0,-1)+"."+r;for(;n.length;)e=e[t=n.shift()];return delete e[r]}return!0}Ax.unset=But});var L1e=ne(Bw=>{"use strict";var fX=Bw&&Bw.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Bw,"__esModule",{value:!0});var Nut=fX(ahe()),L2=fX(yE()),Gut=fX(I1e()),Mw=T1e(),Fut=D1e();function Iut(e,t){for(var n=e,r=0,i=t;r<i.length;r++){var o=i[r];switch(o.type){case"drop":return null;case"drop_properties":zut(n,o.config);break;case"allow_properties":Tut(n,o.config);break;case"sample_event":if(Rut(n,o.config))break;return null;case"map_properties":Dut(n,o.config);break;case"hash_properties":break;default:throw new Error('Transformer of type "'.concat(o.type,'" is unsupported.'))}}return n}Bw.default=Iut;function zut(e,t){for(var n in t.drop)if(!!t.drop.hasOwnProperty(n)){var r=n===""?e:(0,L2.default)(e,n);if(!(typeof r!="object"||r===null))for(var i=0,o=t.drop[n];i<o.length;i++){var s=o[i];delete r[s]}}}function Tut(e,t){for(var n in t.allow)if(!!t.allow.hasOwnProperty(n)){var r=n===""?e:(0,L2.default)(e,n);if(!(typeof r!="object"||r===null))for(var i in r)!r.hasOwnProperty(i)||t.allow[n].indexOf(i)===-1&&delete r[i]}}function Dut(e,t){var n=JSON.parse(JSON.stringify(e));for(var r in t.map)if(!!t.map.hasOwnProperty(r)){var i=t.map[r],o=r.split("."),s=void 0;if(o.length>1?(o.pop(),s=(0,L2.default)(n,o.join("."))):s=e,typeof s=="object"){if(i.copy){var a=(0,L2.default)(n,i.copy);a!==void 0&&(0,Mw.dset)(e,r,a)}else if(i.move){var l=(0,L2.default)(n,i.move);l!==void 0&&(0,Mw.dset)(e,r,l),(0,Fut.unset)(e,i.move)}else i.hasOwnProperty("set")&&(0,Mw.dset)(e,r,i.set);if(i.to_string){var u=(0,L2.default)(e,r);if(typeof u=="string"||typeof u=="object"&&u!==null)continue;u!==void 0?(0,Mw.dset)(e,r,JSON.stringify(u)):(0,Mw.dset)(e,r,"undefined")}}}}function Rut(e,t){return t.sample.percent<=0?!1:t.sample.percent>=1?!0:t.sample.path?Vut(e,t):Lut(t.sample.percent)}function Lut(e){return Math.random()<=e}function Vut(e,t){var n=(0,L2.default)(e,t.sample.path),r=(0,Nut.default)(JSON.stringify(n)),i=-64,o=[];R1e(r.slice(0,8),o);for(var s=0,a=0;a<64&&o[a]!==1;a++)s++;if(s!==0){var l=[];R1e(r.slice(9,16),l),i-=s,o.splice(0,s),l.splice(64-s),o=o.concat(l)}return o[63]=o[63]===0?1:0,(0,Gut.default)(parseInt(o.join(""),2),i)<t.sample.percent}function R1e(e,t){for(var n=0;n<8;n++)for(var r=e[n],i=128;i>=1;i/=2)r-i>=0?(r-=i,t.push(1)):t.push(0)}});var j1e=ne(Nw=>{"use strict";var Jut=Nw&&Nw.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Nw,"__esModule",{value:!0});var jut=Jut(yE());function Hut(e,t){if(!t)throw new Error("No matcher supplied!");switch(t.type){case"all":return Wut();case"fql":return Xut(t.ir,e);default:throw new Error("Matcher of type ".concat(t.type," unsupported."))}}Nw.default=Hut;function Wut(){return!0}function Xut(e,t){if(!e)return!1;try{e=JSON.parse(e)}catch(r){throw new Error('Failed to JSON.parse FQL intermediate representation "'.concat(e,'": ').concat(r))}var n=lg(e,t);return typeof n!="boolean"?!1:n}function lg(e,t){if(!Array.isArray(e))return ru(e,t)===!0;var n=e[0];switch(n){case"!":return!lg(e[1],t);case"or":for(var r=1;r<e.length;r++)if(lg(e[r],t))return!0;return!1;case"and":for(var r=1;r<e.length;r++)if(!lg(e[r],t))return!1;return!0;case"=":case"!=":return Kut(ru(e[1],t),ru(e[2],t),n,t);case"<=":case"<":case">":case">=":return $ut(ru(e[1],t),ru(e[2],t),n,t);case"in":return qut(ru(e[1],t),ru(e[2],t),t);case"contains":return Yut(ru(e[1],t),ru(e[2],t));case"match":return Zut(ru(e[1],t),ru(e[2],t));case"lowercase":var i=ru(e[1],t);return typeof i!="string"?null:i.toLowerCase();case"typeof":return typeof ru(e[1],t);case"length":return Uut(ru(e[1],t));default:throw new Error("FQL IR could not evaluate for token: ".concat(n))}}function ru(e,t){return Array.isArray(e)?e:typeof e=="object"?e.value:(0,jut.default)(t,e)}function qut(e,t,n){return t.find(function(r){return ru(r,n)===e})!==void 0}function $ut(e,t,n,r){if(wE(e)&&(e=lg(e,r)),wE(t)&&(t=lg(t,r)),typeof e!="number"||typeof t!="number")return!1;switch(n){case"<=":return e<=t;case">=":return e>=t;case"<":return e<t;case">":return e>t;default:throw new Error("Invalid operator in compareNumbers: ".concat(n))}}function Kut(e,t,n,r){switch(wE(e)&&(e=lg(e,r)),wE(t)&&(t=lg(t,r)),typeof e=="object"&&typeof t=="object"&&(e=JSON.stringify(e),t=JSON.stringify(t)),n){case"=":return e===t;case"!=":return e!==t;default:throw new Error("Invalid operator in compareItems: ".concat(n))}}function Yut(e,t){return typeof e!="string"||typeof t!="string"?!1:e.indexOf(t)!==-1}function Zut(e,t){return typeof e!="string"||typeof t!="string"?!1:Qut(t,e)}function Uut(e){return e===null?0:!Array.isArray(e)&&typeof e!="string"?NaN:e.length}function wE(e){return Array.isArray(e)?(e[0]==="lowercase"||e[0]==="length"||e[0]==="typeof")&&e.length===2||(e[0]==="contains"||e[0]==="match")&&e.length===3:!1}function Qut(e,t){var n,r;e:for(;e.length>0;){var i=void 0,o=void 0;if(n=ect(e),i=n.star,o=n.chunk,e=n.pattern,i&&o==="")return!0;var s=V1e(o,t),a=s.t,l=s.ok,u=s.err;if(u)return!1;if(l&&(a.length===0||e.length>0)){t=a;continue}if(i)for(var c=0;c<t.length;c++){if(r=V1e(o,t.slice(c+1)),a=r.t,l=r.ok,u=r.err,l){if(e.length===0&&a.length>0)continue;t=a;continue e}if(u)return!1}return!1}return t.length===0}function ect(e){for(var t={star:!1,chunk:"",pattern:""};e.length>0&&e[0]==="*";)e=e.slice(1),t.star=!0;var n=!1,r;e:for(r=0;r<e.length;r++)switch(e[r]){case"\\":r+1<e.length&&r++;break;case"[":n=!0;break;case"]":n=!1;break;case"*":if(!n)break e}return t.chunk=e.slice(0,r),t.pattern=e.slice(r),t}function V1e(e,t){for(var n,r,i={t:"",ok:!1,err:!1};e.length>0;){if(t.length===0)return i;switch(e[0]){case"[":var o=t[0];t=t.slice(1),e=e.slice(1);var s=!0;e.length>0&&e[0]==="^"&&(s=!1,e=e.slice(1));for(var a=!1,l=0;;){if(e.length>0&&e[0]==="]"&&l>0){e=e.slice(1);break}var u="",c="",f=void 0;if(n=J1e(e),u=n.char,e=n.newChunk,f=n.err,f||(c=u,e[0]==="-"&&(r=J1e(e.slice(1)),c=r.char,e=r.newChunk,f=r.err,f)))return i;u<=o&&o<=c&&(a=!0),l++}if(a!==s)return i;break;case"?":t=t.slice(1),e=e.slice(1);break;case"\\":if(e=e.slice(1),e.length===0)return i.err=!0,i;default:if(e[0]!==t[0])return i;t=t.slice(1),e=e.slice(1)}}return i.t=t,i.ok=!0,i.err=!1,i}function J1e(e){var t={char:"",newChunk:"",err:!1};return e.length===0||e[0]==="-"||e[0]==="]"||e[0]==="\\"&&(e=e.slice(1),e.length===0)?(t.err=!0,t):(t.char=e[0],t.newChunk=e.slice(1),t.newChunk.length===0&&(t.err=!0),t)}});var H1e=ne(hX=>{"use strict";Object.defineProperty(hX,"__esModule",{value:!0});var tct=function(){function e(t){this.rules=[],this.rules=t||[]}return e.prototype.getRulesByDestinationName=function(t){for(var n=[],r=0,i=this.rules;r<i.length;r++){var o=i[r];(o.destinationName===t||o.destinationName===void 0)&&n.push(o)}return n},e}();hX.default=tct});var W1e=ne(Uf=>{"use strict";var mX=Uf&&Uf.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Uf,"__esModule",{value:!0});Uf.Store=Uf.matches=Uf.transform=void 0;var nct=L1e();Object.defineProperty(Uf,"transform",{enumerable:!0,get:function(){return mX(nct).default}});var rct=j1e();Object.defineProperty(Uf,"matches",{enumerable:!0,get:function(){return mX(rct).default}});var ict=H1e();Object.defineProperty(Uf,"Store",{enumerable:!0,get:function(){return mX(ict).default}})});var X1e={};$h(X1e,{tsubMiddleware:()=>oct});var Cx,oct,q1e=Lt(()=>{Cx=ie(W1e()),oct=function(e){return function(t){var n=t.payload,r=t.integration,i=t.next,o=new Cx.Store(e),s=o.getRulesByDestinationName(r);s.forEach(function(a){for(var l=a.matchers,u=a.transformers,c=0;c<l.length;c++)if(Cx.matches(n.obj,l[c])&&(n.obj=Cx.transform(n.obj,u[c]),n.obj===null))return i(null)}),i(n)}}});function PE(e,t){var n,r;return typeof t?.enabled=="boolean"?t.enabled:(r=(n=e?.__default)===null||n===void 0?void 0:n.enabled)!==null&&r!==void 0?r:!0}var gX=Lt(()=>{});function $1e(e){return e.toLowerCase().replace(".","").replace(/\s+/g,"-")}function K1e(e,t){return t===void 0&&(t=!1),t?btoa(e).replace(/=/g,""):void 0}function Y1e(e){return("Integration"in e?e.Integration:e).prototype.name}function sct(e,t,n){var r,i;try{var o=((i=(r=window?.performance)===null||r===void 0?void 0:r.getEntriesByName(e,"resource"))!==null&&i!==void 0?i:[])[0];o&&t.stats.gauge("legacy_destination_time",Math.round(o.duration),So([n],o.duration<100?["cached"]:[],!0))}catch{}}function Z1e(e,t,n){var r;if("Integration"in e){var i={user:function(){return n.user()},addIntegration:function(){}};e(i),r=e.Integration}else r=e;var o=new r(t);return o.analytics=n,o}function U1e(e,t,n,r){return Et(this,void 0,void 0,function(){var i,o,s,a,l,u;return Mt(this,function(c){switch(c.label){case 0:i=$1e(t),o=K1e(i,r),s=Aw(),a="".concat(s,"/integrations/").concat(o??i,"/").concat(n,"/").concat(o??i,".dynamic.js.gz"),c.label=1;case 1:return c.trys.push([1,3,,4]),[4,O0(a)];case 2:return c.sent(),sct(a,e,t),[3,4];case 3:throw l=c.sent(),e.stats.gauge("legacy_destination_time",-1,["plugin:".concat(t),"failed"]),l;case 4:return u=window["".concat(i,"Deps")],[4,Promise.all(u.map(function(f){return O0(s+f+".gz")}))];case 5:return c.sent(),window["".concat(i,"Loader")](),[2,window["".concat(i,"Integration")]]}})})}function Q1e(e,t,n){return Et(this,void 0,void 0,function(){var r,i,o,s;return Mt(this,function(a){return r=Aw(),i=$1e(e),o=K1e(e,n),s="".concat(r,"/integrations/").concat(o??i,"/").concat(t,"/").concat(o??i,".dynamic.js.gz"),[2,jfe(s)]})})}function ege(e){var t,n,r,i;return(i=(n=(t=e?.versionSettings)===null||t===void 0?void 0:t.override)!==null&&n!==void 0?n:(r=e?.versionSettings)===null||r===void 0?void 0:r.version)!==null&&i!==void 0?i:"latest"}var tge=Lt(()=>{ri();Cw();mE()});var nge,rge,ige=Lt(()=>{nge=function(e,t){var n,r=t.type,i=t.bundlingStatus,o=t.versionSettings,s=i!=="unbundled"&&(r==="browser"||((n=o?.componentTypes)===null||n===void 0?void 0:n.includes("browser")));return!e.startsWith("Segment")&&e!=="Iterable"&&s},rge=function(e,t){var n=t.All===!1&&t[e]===void 0;return t[e]===!1||n}});var sge={};$h(sge,{LegacyDestination:()=>oge,ajsDestinations:()=>lct});function act(e,t){return Et(this,void 0,void 0,function(){var n,r=this;return Mt(this,function(i){switch(i.label){case 0:return n=[],Ad()?[2,t]:[4,gE(function(){return t.length>0&&VH()},function(){return Et(r,void 0,void 0,function(){var o,s,a;return Mt(this,function(l){switch(l.label){case 0:return o=t.pop(),o?[4,S0(o,e)]:[2];case 1:return s=l.sent(),a=s instanceof Cd,a||n.push(o),[2]}})})})];case 1:return i.sent(),n.map(function(o){return t.pushWithBackoff(o)}),[2,t]}})})}function lct(e,t,n,r,i){var o,s;if(t===void 0&&(t={}),n===void 0&&(n={}),UO())return[];e.plan&&(n=n??{},n.plan=e.plan);var a=(s=(o=e.middlewareSettings)===null||o===void 0?void 0:o.routingRules)!==null&&s!==void 0?s:[],l=e.integrations,u=n.integrations,c=hE(e,n??{}),f=i?.reduce(function(h,m){var g;return et(et({},h),(g={},g[Y1e(m)]=m,g))},{}),d=new Set(So(So([],Object.keys(l).filter(function(h){return nge(h,l[h])}),!0),Object.keys(f||{}).filter(function(h){return Js(l[h])||Js(u?.[h])}),!0));return Array.from(d).filter(function(h){return!rge(h,t)}).map(function(h){var m=l[h],g=ege(m),b=new oge(h,g,c[h],n,f?.[h]),v=a.filter(function(x){return x.destinationName===h});return v.length>0&&r&&b.addMiddleware(r),b})}var Qf,oge,age=Lt(()=>{ri();Qf=ie(PW());ox();I2();cw();Ac();gX();EW();BW();mw();gw();pE();tge();Ac();ige();oge=function(){function e(t,n,r,i,o){r===void 0&&(r={}),this.options={},this.type="destination",this.middleware=[],this._ready=!1,this._initialized=!1,this.flushing=!1,this.name=t,this.version=n,this.settings=et({},r),this.disableAutoISOConversion=i.disableAutoISOConversion||!1,this.integrationSource=o,this.settings.type&&this.settings.type==="browser"&&delete this.settings.type,this.options=i,this.buffer=i.disableClientPersistence?new C0(4,[]):new ng(4,"dest-".concat(t)),this.scheduleFlush()}return e.prototype.isLoaded=function(){return this._ready},e.prototype.ready=function(){var t;return(t=this.onReady)!==null&&t!==void 0?t:Promise.resolve()},e.prototype.load=function(t,n){var r;return Et(this,void 0,void 0,function(){var i,o,s=this;return Mt(this,function(a){switch(a.label){case 0:return this._ready||this.onReady!==void 0?[2]:(r=this.integrationSource)!==null&&r!==void 0?(o=r,[3,3]):[3,1];case 1:return[4,U1e(t,this.name,this.version,this.options.obfuscate)];case 2:o=a.sent(),a.label=3;case 3:i=o,this.integration=Z1e(i,this.settings,n),this.onReady=new Promise(function(l){var u=function(){s._ready=!0,l(!0)};s.integration.once("ready",u)}),this.onInitialize=new Promise(function(l){var u=function(){s._initialized=!0,l(!0)};s.integration.on("initialize",u)});try{t.stats.increment("analytics_js.integration.invoke",1,["method:initialize","integration_name:".concat(this.name)]),this.integration.initialize()}catch(l){throw t.stats.increment("analytics_js.integration.invoke.error",1,["method:initialize","integration_name:".concat(this.name)]),l}return[2]}})})},e.prototype.unload=function(t,n){return Q1e(this.name,this.version,this.options.obfuscate)},e.prototype.addMiddleware=function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this.middleware=(t=this.middleware).concat.apply(t,n)},e.prototype.shouldBuffer=function(t){return t.event.type!=="page"&&(Ad()||this._ready===!1||this._initialized===!1)},e.prototype.send=function(t,n,r){var i,o;return Et(this,void 0,void 0,function(){var s,a,l,u,c,f;return Mt(this,function(d){switch(d.label){case 0:if(this.shouldBuffer(t))return this.buffer.push(t),this.scheduleFlush(),[2,t];if(s=(o=(i=this.options)===null||i===void 0?void 0:i.plan)===null||o===void 0?void 0:o.track,a=t.event.event,s&&a&&this.name!=="Segment.io"){if(l=s[a],PE(s,l))t.updateEvent("integrations",et(et({},t.event.integrations),l?.integrations));else return t.updateEvent("integrations",et(et({},t.event.integrations),{All:!1,"Segment.io":!0})),t.cancel(new Ju({retry:!1,reason:"Event ".concat(a," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"})),[2,t];if(l?.enabled&&l?.integrations[this.name]===!1)return t.cancel(new Ju({retry:!1,reason:"Event ".concat(a," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"})),[2,t]}return[4,Pw(this.name,t.event,this.middleware)];case 1:if(u=d.sent(),u===null)return[2,t];c=new n(u,{traverse:!this.disableAutoISOConversion}),t.stats.increment("analytics_js.integration.invoke",1,["method:".concat(r),"integration_name:".concat(this.name)]),d.label=2;case 2:return d.trys.push([2,5,,6]),this.integration?[4,this.integration.invoke.call(this.integration,r,c)]:[3,4];case 3:d.sent(),d.label=4;case 4:return[3,6];case 5:throw f=d.sent(),t.stats.increment("analytics_js.integration.invoke.error",1,["method:".concat(r),"integration_name:".concat(this.name)]),f;case 6:return[2,t]}})})},e.prototype.track=function(t){return Et(this,void 0,void 0,function(){return Mt(this,function(n){return[2,this.send(t,Qf.Track,"track")]})})},e.prototype.page=function(t){var n;return Et(this,void 0,void 0,function(){var r=this;return Mt(this,function(i){return((n=this.integration)===null||n===void 0?void 0:n._assumesPageview)&&!this._initialized&&this.integration.initialize(),[2,this.onInitialize.then(function(){return r.send(t,Qf.Page,"page")})]})})},e.prototype.identify=function(t){return Et(this,void 0,void 0,function(){return Mt(this,function(n){return[2,this.send(t,Qf.Identify,"identify")]})})},e.prototype.alias=function(t){return Et(this,void 0,void 0,function(){return Mt(this,function(n){return[2,this.send(t,Qf.Alias,"alias")]})})},e.prototype.group=function(t){return Et(this,void 0,void 0,function(){return Mt(this,function(n){return[2,this.send(t,Qf.Group,"group")]})})},e.prototype.scheduleFlush=function(){var t=this;this.flushing||setTimeout(function(){return Et(t,void 0,void 0,function(){var n;return Mt(this,function(r){switch(r.label){case 0:return this.flushing=!0,n=this,[4,act(this,this.buffer)];case 1:return n.buffer=r.sent(),this.flushing=!1,this.buffer.todo>0&&this.scheduleFlush(),[2]}})})},Math.random()*5e3)},e}()});var lge=ne((kE,vX)=>{(function(e,t){typeof kE=="object"&&typeof vX=="object"?vX.exports=t():typeof define=="function"&&define.amd?define([],t):typeof kE=="object"?kE.analyticsVideoPlugins=t():e.analyticsVideoPlugins=t()})(window,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(r,i,o){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:o})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,i){if(1&i&&(r=n(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var s in r)n.d(o,s,function(a){return r[a]}.bind(null,s));return o},n.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(i,"a",i),i},n.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},n.p="",n(n.s=2)}([function(e,t,n){"use strict";n.r(t);var r=typeof fetch=="function"?fetch.bind():function(i,o){return o=o||{},new Promise(function(s,a){var l=new XMLHttpRequest;for(var u in l.open(o.method||"get",i,!0),o.headers)l.setRequestHeader(u,o.headers[u]);function c(){var f,d=[],h=[],m={};return l.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(g,b,v){d.push(b=b.toLowerCase()),h.push([b,v]),f=m[b],m[b]=f?f+","+v:v}),{ok:(l.status/100|0)==2,status:l.status,statusText:l.statusText,url:l.responseURL,clone:c,text:function(){return Promise.resolve(l.responseText)},json:function(){return Promise.resolve(l.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([l.response]))},headers:{keys:function(){return d},entries:function(){return h},get:function(g){return m[g.toLowerCase()]},has:function(g){return g.toLowerCase()in m}}}}l.withCredentials=o.credentials=="include",l.onload=function(){s(c())},l.onerror=a,l.send(o.body)})};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function o(s,a){for(var l=0;l<a.length;l++){var u=a[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,u.key,u)}}return function(s,a,l){return a&&o(s.prototype,a),l&&o(s,l),s}}(),i=function(){function o(s,a){(function(l,u){if(!(l instanceof u))throw new TypeError("Cannot call a class as a function")})(this,o),this.pluginName=s}return r(o,[{key:"track",value:function(s,a){window.analytics.track(s,a,{integration:{name:this.pluginName}})}}]),o}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YouTubeAnalytics=t.VimeoAnalytics=void 0;var r=o(n(3)),i=o(n(4));function o(s){return s&&s.__esModule?s:{default:s}}t.VimeoAnalytics=r.default,t.YouTubeAnalytics=i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function a(l,u){for(var c=0;c<u.length;c++){var f=u[c];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(l,f.key,f)}}return function(l,u,c){return u&&a(l.prototype,u),c&&a(l,c),l}}(),i=o(n(0));function o(a){return a&&a.__esModule?a:{default:a}}var s=function(a){function l(u,c){(function(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")})(this,l);var f=function(d,h){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||typeof h!="object"&&typeof h!="function"?d:h}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,"VimeoAnalytics"));return f.authToken=c,f.player=u,f.metadata={content:{},playback:{videoPlayer:"Vimeo"}},f.mostRecentHeartbeat=0,f.isPaused=!1,f}return function(u,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);u.prototype=Object.create(c&&c.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(u,c):u.__proto__=c)}(l,a),r(l,[{key:"initialize",value:function(){var u=this,c={loaded:this.retrieveMetadata,play:this.trackPlay,pause:this.trackPause,ended:this.trackEnded,timeupdate:this.trackHeartbeat};for(var f in c)this.registerHandler(f,c[f]);this.player.getVideoId().then(function(d){u.retrieveMetadata({id:d})}).catch(console.error)}},{key:"registerHandler",value:function(u,c){var f=this;this.player.on(u,function(d){f.updateMetadata(d),c.call(f,d)})}},{key:"trackPlay",value:function(){this.isPaused?(this.track("Video Playback Resumed",this.metadata.playback),this.isPaused=!1):(this.track("Video Playback Started",this.metadata.playback),this.track("Video Content Started",this.metadata.content))}},{key:"trackEnded",value:function(){this.track("Video Playback Completed",this.metadata.playback),this.track("Video Content Completed",this.metadata.content)}},{key:"trackHeartbeat",value:function(){var u=this.mostRecentHeartbeat,c=this.metadata.playback.position;c!==u&&c-u>=10&&(this.track("Video Content Playing",this.metadata.content),this.mostRecentHeartbeat=Math.floor(c))}},{key:"trackPause",value:function(){this.isPaused=!0,this.track("Video Playback Paused",this.metadata.playback)}},{key:"retrieveMetadata",value:function(u){var c=this;return new Promise(function(f,d){var h=u.id;(0,i.default)("https://api.vimeo.com/videos/"+h,{headers:{Authorization:"Bearer "+c.authToken}}).then(function(m){return m.ok?m.json():d(m)}).then(function(m){c.metadata.content.title=m.name,c.metadata.content.description=m.description,c.metadata.content.publisher=m.user.name,c.metadata.playback.position=0,c.metadata.playback.totalLength=m.duration}).catch(function(m){return console.error("Request to Vimeo API Failed with: ",m),d(m)})})}},{key:"updateMetadata",value:function(u){var c=this;return new Promise(function(f,d){c.player.getVolume().then(function(h){h&&(c.metadata.playback.sound=100*h),c.metadata.playback.position=u.seconds,f()}).catch(d)})}}]),l}(o(n(1)).default);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function u(c,f){for(var d=0;d<f.length;d++){var h=f[d];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(c,h.key,h)}}return function(c,f,d){return f&&u(c.prototype,f),d&&u(c,d),c}}(),i=s(n(0)),o=s(n(1));function s(u){return u&&u.__esModule?u:{default:u}}var a=function(u){function c(f,d){(function(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")})(this,c);var h=function(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!g||typeof g!="object"&&typeof g!="function"?m:g}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,"YoutubeAnalytics"));return h.player=f,h.apiKey=d,h.playerLoaded=!1,h.playbackStarted=!1,h.contentStarted=!1,h.isPaused=!1,h.isBuffering=!1,h.isSeeking=!1,h.lastRecordedTime={timeReported:Date.now(),timeElapsed:0},h.metadata=[{playback:{video_player:"youtube"},content:{}}],h.playlistIndex=0,h}return function(f,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);f.prototype=Object.create(d&&d.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(f,d):f.__proto__=d)}(c,u),r(c,[{key:"initialize",value:function(){window.segmentYoutubeOnStateChange=this.onPlayerStateChange.bind(this),window.segmentYoutubeOnReady=this.onPlayerReady.bind(this),this.player.addEventListener("onReady","segmentYoutubeOnReady"),this.player.addEventListener("onStateChange","segmentYoutubeOnStateChange")}},{key:"onPlayerReady",value:function(f){this.retrieveMetadata()}},{key:"onPlayerStateChange",value:function(f){var d=this.player.getCurrentTime();switch(this.metadata[this.playlistIndex]&&(this.metadata[this.playlistIndex].playback.position=this.metadata[this.playlistIndex].content.position=d,this.metadata[this.playlistIndex].playback.quality=this.player.getPlaybackQuality(),this.metadata[this.playlistIndex].playback.sound=this.player.isMuted()?0:this.player.getVolume()),f.data){case-1:if(this.playerLoaded)break;this.retrieveMetadata(),this.playerLoaded=!0;break;case YT.PlayerState.BUFFERING:this.handleBuffer();break;case YT.PlayerState.PLAYING:this.handlePlay();break;case YT.PlayerState.PAUSED:this.handlePause();break;case YT.PlayerState.ENDED:this.handleEnd()}this.lastRecordedTime={timeReported:Date.now(),timeElapsed:1e3*this.player.getCurrentTime()}}},{key:"retrieveMetadata",value:function(){var f=this;return new Promise(function(d,h){var m=f.player.getVideoData(),g=f.player.getPlaylist()||[m.video_id],b=g.join();(0,i.default)("https://www.googleapis.com/youtube/v3/videos?id="+b+"&part=snippet,contentDetails&key="+f.apiKey).then(function(v){if(!v.ok){var x=new Error("Segment request to Youtube API failed (likely due to a bad API Key. Events will still be sent but will not contain video metadata)");throw x.response=v,x}return v.json()}).then(function(v){f.metadata=[];for(var x=0,y=0;y<g.length;y++){var _=v.items[y];f.metadata.push({content:{title:_.snippet.title,description:_.snippet.description,keywords:_.snippet.tags,channel:_.snippet.channelTitle,airdate:_.snippet.publishedAt}}),x+=l(_.contentDetails.duration)}for(y=0;y<g.length;y++)f.metadata[y].playback={total_length:x,video_player:"youtube"};d()}).catch(function(v){f.metadata=g.map(function(x){return{playback:{video_player:"youtube"},content:{}}}),h(v)})})}},{key:"handleBuffer",value:function(){var f=this.determineSeek();this.playbackStarted||(this.playbackStarted=!0,this.track("Video Playback Started",this.metadata[this.playlistIndex].playback)),f&&!this.isSeeking&&(this.isSeeking=!0,this.track("Video Playback Seek Started",this.metadata[this.playlistIndex].playback)),this.isSeeking&&(this.track("Video Playback Seek Completed",this.metadata[this.playlistIndex].playback),this.isSeeking=!1);var d=this.player.getPlaylist();d&&this.player.getCurrentTime()===0&&this.player.getPlaylistIndex()!==this.playlistIndex&&(this.contentStarted=!1,this.playlistIndex===d.length-1&&this.player.getPlaylistIndex()===0&&(this.track("Video Playback Completed",this.metadata[this.player.getPlaylistIndex()].playback),this.track("Video Playback Started",this.metadata[this.player.getPlaylistIndex()].playback))),this.track("Video Playback Buffer Started",this.metadata[this.playlistIndex].playback),this.isBuffering=!0}},{key:"handlePlay",value:function(){this.contentStarted||(this.playlistIndex=this.player.getPlaylistIndex(),this.playlistIndex===-1&&(this.playlistIndex=0),this.track("Video Content Started",this.metadata[this.playlistIndex].content),this.contentStarted=!0),this.isBuffering&&(this.track("Video Playback Buffer Completed",this.metadata[this.playlistIndex].playback),this.isBuffering=!1),this.isPaused&&(this.track("Video Playback Resumed",this.metadata[this.playlistIndex].playback),this.isPaused=!1)}},{key:"handlePause",value:function(){var f=this.determineSeek();this.isBuffering&&(this.track("Video Playback Buffer Completed",this.metadata[this.playlistIndex].playback),this.isBuffering=!1),this.isPaused||(f?(this.track("Video Playback Seek Started",this.metadata[this.playlistIndex].playback),this.isSeeking=!0):(this.track("Video Playback Paused",this.metadata[this.playlistIndex].playback),this.isPaused=!0))}},{key:"handleEnd",value:function(){this.track("Video Content Completed",this.metadata[this.playlistIndex].content),this.contentStarted=!1;var f=this.player.getPlaylistIndex(),d=this.player.getPlaylist();(d&&f===d.length-1||f===-1)&&(this.track("Video Playback Completed",this.metadata[this.playlistIndex].playback),this.playbackStarted=!1)}},{key:"determineSeek",value:function(){var f=this.isPaused||this.isBuffering?0:Date.now()-this.lastRecordedTime.timeReported,d=1e3*this.player.getCurrentTime()-this.lastRecordedTime.timeElapsed;return Math.abs(f-d)>2e3}}]),c}(o.default);function l(u){var c=u.match(/PT(\d+H)?(\d+M)?(\d+S)?/);return c=c.slice(1).map(function(f){if(f!=null)return f.replace(/\D/,"")}),3600*(parseInt(c[0])||0)+60*(parseInt(c[1])||0)+(parseInt(c[2])||0)}t.default=a}])})});var uge={};$h(uge,{loadLegacyVideoPlugins:()=>uct});function uct(e){return Et(this,void 0,void 0,function(){var t;return Mt(this,function(n){switch(n.label){case 0:return[4,Promise.resolve().then(()=>ie(lge()))];case 1:return t=n.sent(),e._plugins=t,[2]}})})}var cge=Lt(()=>{ri()});var dge={};$h(dge,{schemaFilter:()=>dct});function cct(e,t){var n,r;if(!e||!Object.keys(e))return{};var i=e.integrations?Object.keys(e.integrations).filter(function(s){return e.integrations[s]===!1}):[],o=[];return((n=t.remotePlugins)!==null&&n!==void 0?n:[]).forEach(function(s){i.forEach(function(a){(s.name.includes(a)||a.includes(s.name))&&o.push(s.name)})}),((r=t.remotePlugins)!==null&&r!==void 0?r:[]).reduce(function(s,a){return a.settings.subscriptions&&o.includes(a.name)&&a.settings.subscriptions.forEach(function(l){return s["".concat(a.name," ").concat(l.partnerAction)]=!1}),s},{})}function dct(e,t){function n(r){var i=e,o=r.event.event;if(i&&o){var s=i[o];if(PE(i,s)){var a=cct(s,t);r.updateEvent("integrations",et(et(et({},r.event.integrations),s?.integrations),a))}else return r.updateEvent("integrations",et(et({},r.event.integrations),{All:!1,"Segment.io":!0})),r}return r}return{name:"Schema Filter",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},type:"before",page:n,alias:n,track:n,identify:n,group:n}}var pge=Lt(()=>{ri();gX()});var fge={};$h(fge,{remoteMiddlewares:()=>pct});function pct(e,t,n){var r;return Et(this,void 0,void 0,function(){var i,o,s,a,l,u=this;return Mt(this,function(c){switch(c.label){case 0:return UO()?[2,[]]:(i=Aw(),o=(r=t.enabledMiddleware)!==null&&r!==void 0?r:{},s=Object.entries(o).filter(function(f){var d=f[0],h=f[1];return h}).map(function(f){var d=f[0];return d}),a=s.map(function(f){return Et(u,void 0,void 0,function(){var d,h,m,g;return Mt(this,function(b){switch(b.label){case 0:d=f.replace("@segment/",""),h=d,n&&(h=btoa(d).replace(/=/g,"")),m="".concat(i,"/middleware/").concat(h,"/latest/").concat(h,".js.gz"),b.label=1;case 1:return b.trys.push([1,3,,4]),[4,O0(m)];case 2:return b.sent(),[2,window["".concat(d,"Middleware")]];case 3:return g=b.sent(),e.log("error",g),e.stats.increment("failed_remote_middleware"),[3,4];case 4:return[2]}})})}),[4,Promise.all(a)]);case 1:return l=c.sent(),l=l.filter(Boolean),[2,l]}})})}var hge=Lt(()=>{ri();cw();mE();Cw()});var Xa=ne((xX,Ox)=>{(function(e,t){typeof xX=="object"&&typeof Ox<"u"?Ox.exports=t():typeof define=="function"&&define.amd?define(t):e.moment=t()})(xX,function(){"use strict";var e;function t(){return e.apply(null,arguments)}function n(E){e=E}function r(E){return E instanceof Array||Object.prototype.toString.call(E)==="[object Array]"}function i(E){return E!=null&&Object.prototype.toString.call(E)==="[object Object]"}function o(E,R){return Object.prototype.hasOwnProperty.call(E,R)}function s(E){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(E).length===0;var R;for(R in E)if(o(E,R))return!1;return!0}function a(E){return E===void 0}function l(E){return typeof E=="number"||Object.prototype.toString.call(E)==="[object Number]"}function u(E){return E instanceof Date||Object.prototype.toString.call(E)==="[object Date]"}function c(E,R){var re=[],ce,xe=E.length;for(ce=0;ce<xe;++ce)re.push(R(E[ce],ce));return re}function f(E,R){for(var re in R)o(R,re)&&(E[re]=R[re]);return o(R,"toString")&&(E.toString=R.toString),o(R,"valueOf")&&(E.valueOf=R.valueOf),E}function d(E,R,re,ce){return Uc(E,R,re,ce,!0).utc()}function h(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function m(E){return E._pf==null&&(E._pf=h()),E._pf}var g;Array.prototype.some?g=Array.prototype.some:g=function(E){var R=Object(this),re=R.length>>>0,ce;for(ce=0;ce<re;ce++)if(ce in R&&E.call(this,R[ce],ce,R))return!0;return!1};function b(E){if(E._isValid==null){var R=m(E),re=g.call(R.parsedDateParts,function(xe){return xe!=null}),ce=!isNaN(E._d.getTime())&&R.overflow<0&&!R.empty&&!R.invalidEra&&!R.invalidMonth&&!R.invalidWeekday&&!R.weekdayMismatch&&!R.nullInput&&!R.invalidFormat&&!R.userInvalidated&&(!R.meridiem||R.meridiem&&re);if(E._strict&&(ce=ce&&R.charsLeftOver===0&&R.unusedTokens.length===0&&R.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(E))E._isValid=ce;else return ce}return E._isValid}function v(E){var R=d(NaN);return E!=null?f(m(R),E):m(R).userInvalidated=!0,R}var x=t.momentProperties=[],y=!1;function _(E,R){var re,ce,xe,Ve=x.length;if(a(R._isAMomentObject)||(E._isAMomentObject=R._isAMomentObject),a(R._i)||(E._i=R._i),a(R._f)||(E._f=R._f),a(R._l)||(E._l=R._l),a(R._strict)||(E._strict=R._strict),a(R._tzm)||(E._tzm=R._tzm),a(R._isUTC)||(E._isUTC=R._isUTC),a(R._offset)||(E._offset=R._offset),a(R._pf)||(E._pf=m(R)),a(R._locale)||(E._locale=R._locale),Ve>0)for(re=0;re<Ve;re++)ce=x[re],xe=R[ce],a(xe)||(E[ce]=xe);return E}function w(E){_(this,E),this._d=new Date(E._d!=null?E._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),y===!1&&(y=!0,t.updateOffset(this),y=!1)}function k(E){return E instanceof w||E!=null&&E._isAMomentObject!=null}function O(E){t.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+E)}function M(E,R){var re=!0;return f(function(){if(t.deprecationHandler!=null&&t.deprecationHandler(null,E),re){var ce=[],xe,Ve,it,mn=arguments.length;for(Ve=0;Ve<mn;Ve++){if(xe="",typeof arguments[Ve]=="object"){xe+=`
[`+Ve+"] ";for(it in arguments[0])o(arguments[0],it)&&(xe+=it+": "+arguments[0][it]+", ");xe=xe.slice(0,-2)}else xe=arguments[Ve];ce.push(xe)}O(E+`
Arguments: `+Array.prototype.slice.call(ce).join("")+`
`+new Error().stack),re=!1}return R.apply(this,arguments)},R)}var I={};function W(E,R){t.deprecationHandler!=null&&t.deprecationHandler(E,R),I[E]||(O(R),I[E]=!0)}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;function J(E){return typeof Function<"u"&&E instanceof Function||Object.prototype.toString.call(E)==="[object Function]"}function H(E){var R,re;for(re in E)o(E,re)&&(R=E[re],J(R)?this[re]=R:this["_"+re]=R);this._config=E,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function ee(E,R){var re=f({},E),ce;for(ce in R)o(R,ce)&&(i(E[ce])&&i(R[ce])?(re[ce]={},f(re[ce],E[ce]),f(re[ce],R[ce])):R[ce]!=null?re[ce]=R[ce]:delete re[ce]);for(ce in E)o(E,ce)&&!o(R,ce)&&i(E[ce])&&(re[ce]=f({},re[ce]));return re}function j(E){E!=null&&this.set(E)}var V;Object.keys?V=Object.keys:V=function(E){var R,re=[];for(R in E)o(E,R)&&re.push(R);return re};var B={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function N(E,R,re){var ce=this._calendar[E]||this._calendar.sameElse;return J(ce)?ce.call(R,re):ce}function C(E,R,re){var ce=""+Math.abs(E),xe=R-ce.length,Ve=E>=0;return(Ve?re?"+":"":"-")+Math.pow(10,Math.max(0,xe)).toString().substr(1)+ce}var S=/(\[[^\[]*\])|(\\)?([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,G=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,T={},Q={};function U(E,R,re,ce){var xe=ce;typeof ce=="string"&&(xe=function(){return this[ce]()}),E&&(Q[E]=xe),R&&(Q[R[0]]=function(){return C(xe.apply(this,arguments),R[1],R[2])}),re&&(Q[re]=function(){return this.localeData().ordinal(xe.apply(this,arguments),E)})}function F(E){return E.match(/\[[\s\S]/)?E.replace(/^\[|\]$/g,""):E.replace(/\\/g,"")}function D(E){var R=E.match(S),re,ce;for(re=0,ce=R.length;re<ce;re++)Q[R[re]]?R[re]=Q[R[re]]:R[re]=F(R[re]);return function(xe){var Ve="",it;for(it=0;it<ce;it++)Ve+=J(R[it])?R[it].call(xe,E):R[it];return Ve}}function L(E,R){return E.isValid()?(R=$(R,E.localeData()),T[R]=T[R]||D(R),T[R](E)):E.localeData().invalidDate()}function $(E,R){var re=5;function ce(xe){return R.longDateFormat(xe)||xe}for(G.lastIndex=0;re>=0&&G.test(E);)E=E.replace(G,ce),G.lastIndex=0,re-=1;return E}var Z={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 se(E){var R=this._longDateFormat[E],re=this._longDateFormat[E.toUpperCase()];return R||!re?R:(this._longDateFormat[E]=re.match(S).map(function(ce){return ce==="MMMM"||ce==="MM"||ce==="DD"||ce==="dddd"?ce.slice(1):ce}).join(""),this._longDateFormat[E])}var Y="Invalid date";function ue(){return this._invalidDate}var pe="%d",oe=/\d{1,2}/;function de(E){return this._ordinal.replace("%d",E)}var ve={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 Ae(E,R,re,ce){var xe=this._relativeTime[re];return J(xe)?xe(E,R,re,ce):xe.replace(/%d/i,E)}function Ce(E,R){var re=this._relativeTime[E>0?"future":"past"];return J(re)?re(R):re.replace(/%s/i,R)}var Ge={};function Ee(E,R){var re=E.toLowerCase();Ge[re]=Ge[re+"s"]=Ge[R]=E}function Ne(E){return typeof E=="string"?Ge[E]||Ge[E.toLowerCase()]:void 0}function De(E){var R={},re,ce;for(ce in E)o(E,ce)&&(re=Ne(ce),re&&(R[re]=E[ce]));return R}var Ue={};function Re(E,R){Ue[E]=R}function je(E){var R=[],re;for(re in E)o(E,re)&&R.push({unit:re,priority:Ue[re]});return R.sort(function(ce,xe){return ce.priority-xe.priority}),R}function $e(E){return E%4===0&&E%100!==0||E%400===0}function Le(E){return E<0?Math.ceil(E)||0:Math.floor(E)}function Xe(E){var R=+E,re=0;return R!==0&&isFinite(R)&&(re=Le(R)),re}function mt(E,R){return function(re){return re!=null?(be(this,E,re),t.updateOffset(this,R),this):fe(this,E)}}function fe(E,R){return E.isValid()?E._d["get"+(E._isUTC?"UTC":"")+R]():NaN}function be(E,R,re){E.isValid()&&!isNaN(re)&&(R==="FullYear"&&$e(E.year())&&E.month()===1&&E.date()===29?(re=Xe(re),E._d["set"+(E._isUTC?"UTC":"")+R](re,E.month(),gn(re,E.month()))):E._d["set"+(E._isUTC?"UTC":"")+R](re))}function ye(E){return E=Ne(E),J(this[E])?this[E]():this}function Oe(E,R){if(typeof E=="object"){E=De(E);var re=je(E),ce,xe=re.length;for(ce=0;ce<xe;ce++)this[re[ce].unit](E[re[ce].unit])}else if(E=Ne(E),J(this[E]))return this[E](R);return this}var Me=/\d/,Ke=/\d\d/,gt=/\d{3}/,ft=/\d{4}/,Bt=/[+-]?\d{6}/,Ft=/\d\d?/,Kn=/\d\d\d\d?/,Ut=/\d\d\d\d\d\d?/,ln=/\d{1,3}/,Yn=/\d{1,4}/,jn=/[+-]?\d{1,6}/,Hn=/\d+/,dn=/[+-]?\d+/,cr=/Z|[+-]\d\d:?\d\d/gi,Bn=/Z|[+-]\d\d(?::?\d\d)?/gi,Si=/[+-]?\d+(\.\d{1,3})?/,ir=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Mr;Mr={};function ct(E,R,re){Mr[E]=J(R)?R:function(ce,xe){return ce&&re?re:R}}function _n(E,R){return o(Mr,E)?Mr[E](R._strict,R._locale):new RegExp(Oi(E))}function Oi(E){return or(E.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(R,re,ce,xe,Ve){return re||ce||xe||Ve}))}function or(E){return E.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var bn={};function Qn(E,R){var re,ce=R,xe;for(typeof E=="string"&&(E=[E]),l(R)&&(ce=function(Ve,it){it[R]=Xe(Ve)}),xe=E.length,re=0;re<xe;re++)bn[E[re]]=ce}function Ho(E,R){Qn(E,function(re,ce,xe,Ve){xe._w=xe._w||{},R(re,xe._w,xe,Ve)})}function ds(E,R,re){R!=null&&o(bn,E)&&bn[E](R,re._a,re,E)}var $r=0,co=1,gr=2,sr=3,We=4,an=5,tn=6,Ze=7,zt=8;function rn(E,R){return(E%R+R)%R}var Rt;Array.prototype.indexOf?Rt=Array.prototype.indexOf:Rt=function(E){var R;for(R=0;R<this.length;++R)if(this[R]===E)return R;return-1};function gn(E,R){if(isNaN(E)||isNaN(R))return NaN;var re=rn(R,12);return E+=(R-re)/12,re===1?$e(E)?29:28:31-re%7%2}U("M",["MM",2],"Mo",function(){return this.month()+1}),U("MMM",0,0,function(E){return this.localeData().monthsShort(this,E)}),U("MMMM",0,0,function(E){return this.localeData().months(this,E)}),Ee("month","M"),Re("month",8),ct("M",Ft),ct("MM",Ft,Ke),ct("MMM",function(E,R){return R.monthsShortRegex(E)}),ct("MMMM",function(E,R){return R.monthsRegex(E)}),Qn(["M","MM"],function(E,R){R[co]=Xe(E)-1}),Qn(["MMM","MMMM"],function(E,R,re,ce){var xe=re._locale.monthsParse(E,ce,re._strict);xe!=null?R[co]=xe:m(re).invalidMonth=E});var Xt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),wn="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),_o=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Tl=ir,Dl=ir;function Ks(E,R){return E?r(this._months)?this._months[E.month()]:this._months[(this._months.isFormat||_o).test(R)?"format":"standalone"][E.month()]:r(this._months)?this._months:this._months.standalone}function ul(E,R){return E?r(this._monthsShort)?this._monthsShort[E.month()]:this._monthsShort[_o.test(R)?"format":"standalone"][E.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ca(E,R,re){var ce,xe,Ve,it=E.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],ce=0;ce<12;++ce)Ve=d([2e3,ce]),this._shortMonthsParse[ce]=this.monthsShort(Ve,"").toLocaleLowerCase(),this._longMonthsParse[ce]=this.months(Ve,"").toLocaleLowerCase();return re?R==="MMM"?(xe=Rt.call(this._shortMonthsParse,it),xe!==-1?xe:null):(xe=Rt.call(this._longMonthsParse,it),xe!==-1?xe:null):R==="MMM"?(xe=Rt.call(this._shortMonthsParse,it),xe!==-1?xe:(xe=Rt.call(this._longMonthsParse,it),xe!==-1?xe:null)):(xe=Rt.call(this._longMonthsParse,it),xe!==-1?xe:(xe=Rt.call(this._shortMonthsParse,it),xe!==-1?xe:null))}function sc(E,R,re){var ce,xe,Ve;if(this._monthsParseExact)return ca.call(this,E,R,re);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),ce=0;ce<12;ce++){if(xe=d([2e3,ce]),re&&!this._longMonthsParse[ce]&&(this._longMonthsParse[ce]=new RegExp("^"+this.months(xe,"").replace(".","")+"$","i"),this._shortMonthsParse[ce]=new RegExp("^"+this.monthsShort(xe,"").replace(".","")+"$","i")),!re&&!this._monthsParse[ce]&&(Ve="^"+this.months(xe,"")+"|^"+this.monthsShort(xe,""),this._monthsParse[ce]=new RegExp(Ve.replace(".",""),"i")),re&&R==="MMMM"&&this._longMonthsParse[ce].test(E))return ce;if(re&&R==="MMM"&&this._shortMonthsParse[ce].test(E))return ce;if(!re&&this._monthsParse[ce].test(E))return ce}}function ps(E,R){var re;if(!E.isValid())return E;if(typeof R=="string"){if(/^\d+$/.test(R))R=Xe(R);else if(R=E.localeData().monthsParse(R),!l(R))return E}return re=Math.min(E.date(),gn(E.year(),R)),E._d["set"+(E._isUTC?"UTC":"")+"Month"](R,re),E}function Qd(E){return E!=null?(ps(this,E),t.updateOffset(this,!0),this):fe(this,"Month")}function Sm(){return gn(this.year(),this.month())}function kh(E){return this._monthsParseExact?(o(this,"_monthsRegex")||Ah.call(this),E?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=Tl),this._monthsShortStrictRegex&&E?this._monthsShortStrictRegex:this._monthsShortRegex)}function Om(E){return this._monthsParseExact?(o(this,"_monthsRegex")||Ah.call(this),E?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=Dl),this._monthsStrictRegex&&E?this._monthsStrictRegex:this._monthsRegex)}function Ah(){function E(it,mn){return mn.length-it.length}var R=[],re=[],ce=[],xe,Ve;for(xe=0;xe<12;xe++)Ve=d([2e3,xe]),R.push(this.monthsShort(Ve,"")),re.push(this.months(Ve,"")),ce.push(this.months(Ve,"")),ce.push(this.monthsShort(Ve,""));for(R.sort(E),re.sort(E),ce.sort(E),xe=0;xe<12;xe++)R[xe]=or(R[xe]),re[xe]=or(re[xe]);for(xe=0;xe<24;xe++)ce[xe]=or(ce[xe]);this._monthsRegex=new RegExp("^("+ce.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+re.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+R.join("|")+")","i")}U("Y",0,0,function(){var E=this.year();return E<=9999?C(E,4):"+"+E}),U(0,["YY",2],0,function(){return this.year()%100}),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),Ee("year","y"),Re("year",1),ct("Y",dn),ct("YY",Ft,Ke),ct("YYYY",Yn,ft),ct("YYYYY",jn,Bt),ct("YYYYYY",jn,Bt),Qn(["YYYYY","YYYYYY"],$r),Qn("YYYY",function(E,R){R[$r]=E.length===2?t.parseTwoDigitYear(E):Xe(E)}),Qn("YY",function(E,R){R[$r]=t.parseTwoDigitYear(E)}),Qn("Y",function(E,R){R[$r]=parseInt(E,10)});function Sa(E){return $e(E)?366:365}t.parseTwoDigitYear=function(E){return Xe(E)+(Xe(E)>68?1900:2e3)};var Ch=mt("FullYear",!0);function Pv(){return $e(this.year())}function ku(E,R,re,ce,xe,Ve,it){var mn;return E<100&&E>=0?(mn=new Date(E+400,R,re,ce,xe,Ve,it),isFinite(mn.getFullYear())&&mn.setFullYear(E)):mn=new Date(E,R,re,ce,xe,Ve,it),mn}function cl(E){var R,re;return E<100&&E>=0?(re=Array.prototype.slice.call(arguments),re[0]=E+400,R=new Date(Date.UTC.apply(null,re)),isFinite(R.getUTCFullYear())&&R.setUTCFullYear(E)):R=new Date(Date.UTC.apply(null,arguments)),R}function dl(E,R,re){var ce=7+R-re,xe=(7+cl(E,0,ce).getUTCDay()-R)%7;return-xe+ce-1}function lf(E,R,re,ce,xe){var Ve=(7+re-ce)%7,it=dl(E,ce,xe),mn=1+7*(R-1)+Ve+it,ar,_i;return mn<=0?(ar=E-1,_i=Sa(ar)+mn):mn>Sa(E)?(ar=E+1,_i=mn-Sa(E)):(ar=E,_i=mn),{year:ar,dayOfYear:_i}}function Oa(E,R,re){var ce=dl(E.year(),R,re),xe=Math.floor((E.dayOfYear()-ce-1)/7)+1,Ve,it;return xe<1?(it=E.year()-1,Ve=xe+Ea(it,R,re)):xe>Ea(E.year(),R,re)?(Ve=xe-Ea(E.year(),R,re),it=E.year()+1):(it=E.year(),Ve=xe),{week:Ve,year:it}}function Ea(E,R,re){var ce=dl(E,R,re),xe=dl(E+1,R,re);return(Sa(E)-ce+xe)/7}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),Ee("week","w"),Ee("isoWeek","W"),Re("week",5),Re("isoWeek",5),ct("w",Ft),ct("ww",Ft,Ke),ct("W",Ft),ct("WW",Ft,Ke),Ho(["w","ww","W","WW"],function(E,R,re,ce){R[ce.substr(0,1)]=Xe(E)});function Sh(E){return Oa(E,this._week.dow,this._week.doy).week}var Kc={dow:0,doy:6};function Em(){return this._week.dow}function Mm(){return this._week.doy}function kv(E){var R=this.localeData().week(this);return E==null?R:this.add((E-R)*7,"d")}function Yc(E){var R=Oa(this,1,4).week;return E==null?R:this.add((E-R)*7,"d")}U("d",0,"do","day"),U("dd",0,0,function(E){return this.localeData().weekdaysMin(this,E)}),U("ddd",0,0,function(E){return this.localeData().weekdaysShort(this,E)}),U("dddd",0,0,function(E){return this.localeData().weekdays(this,E)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),Ee("day","d"),Ee("weekday","e"),Ee("isoWeekday","E"),Re("day",11),Re("weekday",11),Re("isoWeekday",11),ct("d",Ft),ct("e",Ft),ct("E",Ft),ct("dd",function(E,R){return R.weekdaysMinRegex(E)}),ct("ddd",function(E,R){return R.weekdaysShortRegex(E)}),ct("dddd",function(E,R){return R.weekdaysRegex(E)}),Ho(["dd","ddd","dddd"],function(E,R,re,ce){var xe=re._locale.weekdaysParse(E,ce,re._strict);xe!=null?R.d=xe:m(re).invalidWeekday=E}),Ho(["d","e","E"],function(E,R,re,ce){R[ce]=Xe(E)});function uf(E,R){return typeof E!="string"?E:isNaN(E)?(E=R.weekdaysParse(E),typeof E=="number"?E:null):parseInt(E,10)}function Rl(E,R){return typeof E=="string"?R.weekdaysParse(E)%7||7:isNaN(E)?null:E}function cf(E,R){return E.slice(R,7).concat(E.slice(0,R))}var Av="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Bm="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Cv="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Oh=ir,Sv=ir,Nm=ir;function Ov(E,R){var re=r(this._weekdays)?this._weekdays:this._weekdays[E&&E!==!0&&this._weekdays.isFormat.test(R)?"format":"standalone"];return E===!0?cf(re,this._week.dow):E?re[E.day()]:re}function Ev(E){return E===!0?cf(this._weekdaysShort,this._week.dow):E?this._weekdaysShort[E.day()]:this._weekdaysShort}function df(E){return E===!0?cf(this._weekdaysMin,this._week.dow):E?this._weekdaysMin[E.day()]:this._weekdaysMin}function Mv(E,R,re){var ce,xe,Ve,it=E.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],ce=0;ce<7;++ce)Ve=d([2e3,1]).day(ce),this._minWeekdaysParse[ce]=this.weekdaysMin(Ve,"").toLocaleLowerCase(),this._shortWeekdaysParse[ce]=this.weekdaysShort(Ve,"").toLocaleLowerCase(),this._weekdaysParse[ce]=this.weekdays(Ve,"").toLocaleLowerCase();return re?R==="dddd"?(xe=Rt.call(this._weekdaysParse,it),xe!==-1?xe:null):R==="ddd"?(xe=Rt.call(this._shortWeekdaysParse,it),xe!==-1?xe:null):(xe=Rt.call(this._minWeekdaysParse,it),xe!==-1?xe:null):R==="dddd"?(xe=Rt.call(this._weekdaysParse,it),xe!==-1||(xe=Rt.call(this._shortWeekdaysParse,it),xe!==-1)?xe:(xe=Rt.call(this._minWeekdaysParse,it),xe!==-1?xe:null)):R==="ddd"?(xe=Rt.call(this._shortWeekdaysParse,it),xe!==-1||(xe=Rt.call(this._weekdaysParse,it),xe!==-1)?xe:(xe=Rt.call(this._minWeekdaysParse,it),xe!==-1?xe:null)):(xe=Rt.call(this._minWeekdaysParse,it),xe!==-1||(xe=Rt.call(this._weekdaysParse,it),xe!==-1)?xe:(xe=Rt.call(this._shortWeekdaysParse,it),xe!==-1?xe:null))}function Au(E,R,re){var ce,xe,Ve;if(this._weekdaysParseExact)return Mv.call(this,E,R,re);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),ce=0;ce<7;ce++){if(xe=d([2e3,1]).day(ce),re&&!this._fullWeekdaysParse[ce]&&(this._fullWeekdaysParse[ce]=new RegExp("^"+this.weekdays(xe,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[ce]=new RegExp("^"+this.weekdaysShort(xe,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[ce]=new RegExp("^"+this.weekdaysMin(xe,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[ce]||(Ve="^"+this.weekdays(xe,"")+"|^"+this.weekdaysShort(xe,"")+"|^"+this.weekdaysMin(xe,""),this._weekdaysParse[ce]=new RegExp(Ve.replace(".",""),"i")),re&&R==="dddd"&&this._fullWeekdaysParse[ce].test(E))return ce;if(re&&R==="ddd"&&this._shortWeekdaysParse[ce].test(E))return ce;if(re&&R==="dd"&&this._minWeekdaysParse[ce].test(E))return ce;if(!re&&this._weekdaysParse[ce].test(E))return ce}}function Bv(E){if(!this.isValid())return E!=null?this:NaN;var R=this._isUTC?this._d.getUTCDay():this._d.getDay();return E!=null?(E=uf(E,this.localeData()),this.add(E-R,"d")):R}function Gm(E){if(!this.isValid())return E!=null?this:NaN;var R=(this.day()+7-this.localeData()._week.dow)%7;return E==null?R:this.add(E-R,"d")}function ep(E){if(!this.isValid())return E!=null?this:NaN;if(E!=null){var R=Rl(E,this.localeData());return this.day(this.day()%7?R:R-7)}else return this.day()||7}function Ni(E){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||pf.call(this),E?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Oh),this._weekdaysStrictRegex&&E?this._weekdaysStrictRegex:this._weekdaysRegex)}function gi(E){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||pf.call(this),E?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Sv),this._weekdaysShortStrictRegex&&E?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Nv(E){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||pf.call(this),E?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Nm),this._weekdaysMinStrictRegex&&E?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function pf(){function E(Ia,id){return id.length-Ia.length}var R=[],re=[],ce=[],xe=[],Ve,it,mn,ar,_i;for(Ve=0;Ve<7;Ve++)it=d([2e3,1]).day(Ve),mn=or(this.weekdaysMin(it,"")),ar=or(this.weekdaysShort(it,"")),_i=or(this.weekdays(it,"")),R.push(mn),re.push(ar),ce.push(_i),xe.push(mn),xe.push(ar),xe.push(_i);R.sort(E),re.sort(E),ce.sort(E),xe.sort(E),this._weekdaysRegex=new RegExp("^("+xe.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+ce.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+re.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+R.join("|")+")","i")}function Pn(){return this.hours()%12||12}function Eh(){return this.hours()||24}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,Pn),U("k",["kk",2],0,Eh),U("hmm",0,0,function(){return""+Pn.apply(this)+C(this.minutes(),2)}),U("hmmss",0,0,function(){return""+Pn.apply(this)+C(this.minutes(),2)+C(this.seconds(),2)}),U("Hmm",0,0,function(){return""+this.hours()+C(this.minutes(),2)}),U("Hmmss",0,0,function(){return""+this.hours()+C(this.minutes(),2)+C(this.seconds(),2)});function tp(E,R){U(E,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),R)})}tp("a",!0),tp("A",!1),Ee("hour","h"),Re("hour",13);function Fm(E,R){return R._meridiemParse}ct("a",Fm),ct("A",Fm),ct("H",Ft),ct("h",Ft),ct("k",Ft),ct("HH",Ft,Ke),ct("hh",Ft,Ke),ct("kk",Ft,Ke),ct("hmm",Kn),ct("hmmss",Ut),ct("Hmm",Kn),ct("Hmmss",Ut),Qn(["H","HH"],sr),Qn(["k","kk"],function(E,R,re){var ce=Xe(E);R[sr]=ce===24?0:ce}),Qn(["a","A"],function(E,R,re){re._isPm=re._locale.isPM(E),re._meridiem=E}),Qn(["h","hh"],function(E,R,re){R[sr]=Xe(E),m(re).bigHour=!0}),Qn("hmm",function(E,R,re){var ce=E.length-2;R[sr]=Xe(E.substr(0,ce)),R[We]=Xe(E.substr(ce)),m(re).bigHour=!0}),Qn("hmmss",function(E,R,re){var ce=E.length-4,xe=E.length-2;R[sr]=Xe(E.substr(0,ce)),R[We]=Xe(E.substr(ce,2)),R[an]=Xe(E.substr(xe)),m(re).bigHour=!0}),Qn("Hmm",function(E,R,re){var ce=E.length-2;R[sr]=Xe(E.substr(0,ce)),R[We]=Xe(E.substr(ce))}),Qn("Hmmss",function(E,R,re){var ce=E.length-4,xe=E.length-2;R[sr]=Xe(E.substr(0,ce)),R[We]=Xe(E.substr(ce,2)),R[an]=Xe(E.substr(xe))});function Im(E){return(E+"").toLowerCase().charAt(0)==="p"}var zm=/[ap]\.?m?\.?/i,Wo=mt("Hours",!0);function Mh(E,R,re){return E>11?re?"pm":"PM":re?"am":"AM"}var Cu={calendar:B,longDateFormat:Z,invalidDate:Y,ordinal:pe,dayOfMonthOrdinalParse:oe,relativeTime:ve,months:Xt,monthsShort:wn,week:Kc,weekdays:Av,weekdaysMin:Cv,weekdaysShort:Bm,meridiemParse:zm},Gi={},Ll={},fs;function Tm(E,R){var re,ce=Math.min(E.length,R.length);for(re=0;re<ce;re+=1)if(E[re]!==R[re])return re;return ce}function Bh(E){return E&&E.toLowerCase().replace("_","-")}function Gv(E){for(var R=0,re,ce,xe,Ve;R<E.length;){for(Ve=Bh(E[R]).split("-"),re=Ve.length,ce=Bh(E[R+1]),ce=ce?ce.split("-"):null;re>0;){if(xe=np(Ve.slice(0,re).join("-")),xe)return xe;if(ce&&ce.length>=re&&Tm(Ve,ce)>=re-1)break;re--}R++}return fs}function Nh(E){return E.match("^[^/\\\\]*$")!=null}function np(E){var R=null,re;if(Gi[E]===void 0&&typeof Ox<"u"&&Ox&&Ox.exports&&Nh(E))try{R=fs._abbr,re=mp,re("./locale/"+E),Ma(R)}catch{Gi[E]=null}return Gi[E]}function Ma(E,R){var re;return E&&(a(R)?re=no(E):re=hs(E,R),re?fs=re:typeof console<"u"&&console.warn&&console.warn("Locale "+E+" not found. Did you forget to load it?")),fs._abbr}function hs(E,R){if(R!==null){var re,ce=Cu;if(R.abbr=E,Gi[E]!=null)W("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."),ce=Gi[E]._config;else if(R.parentLocale!=null)if(Gi[R.parentLocale]!=null)ce=Gi[R.parentLocale]._config;else if(re=np(R.parentLocale),re!=null)ce=re._config;else return Ll[R.parentLocale]||(Ll[R.parentLocale]=[]),Ll[R.parentLocale].push({name:E,config:R}),null;return Gi[E]=new j(ee(ce,R)),Ll[E]&&Ll[E].forEach(function(xe){hs(xe.name,xe.config)}),Ma(E),Gi[E]}else return delete Gi[E],null}function Dm(E,R){if(R!=null){var re,ce,xe=Cu;Gi[E]!=null&&Gi[E].parentLocale!=null?Gi[E].set(ee(Gi[E]._config,R)):(ce=np(E),ce!=null&&(xe=ce._config),R=ee(xe,R),ce==null&&(R.abbr=E),re=new j(R),re.parentLocale=Gi[E],Gi[E]=re),Ma(E)}else Gi[E]!=null&&(Gi[E].parentLocale!=null?(Gi[E]=Gi[E].parentLocale,E===Ma()&&Ma(E)):Gi[E]!=null&&delete Gi[E]);return Gi[E]}function no(E){var R;if(E&&E._locale&&E._locale._abbr&&(E=E._locale._abbr),!E)return fs;if(!r(E)){if(R=np(E),R)return R;E=[E]}return Gv(E)}function ff(){return V(Gi)}function hf(E){var R,re=E._a;return re&&m(E).overflow===-2&&(R=re[co]<0||re[co]>11?co:re[gr]<1||re[gr]>gn(re[$r],re[co])?gr:re[sr]<0||re[sr]>24||re[sr]===24&&(re[We]!==0||re[an]!==0||re[tn]!==0)?sr:re[We]<0||re[We]>59?We:re[an]<0||re[an]>59?an:re[tn]<0||re[tn]>999?tn:-1,m(E)._overflowDayOfYear&&(R<$r||R>gr)&&(R=gr),m(E)._overflowWeeks&&R===-1&&(R=Ze),m(E)._overflowWeekday&&R===-1&&(R=zt),m(E).overflow=R),E}var Vl=/^\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)?)?$/,rp=/^\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)?)?$/,mf=/Z|[+-]\d\d(?::?\d\d)?/,li=[["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]],Ba=[["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/]],gf=/^\/?Date\((-?\d+)/i,Rm=/^(?:(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}))$/,bo={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 ip(E){var R,re,ce=E._i,xe=Vl.exec(ce)||rp.exec(ce),Ve,it,mn,ar,_i=li.length,Ia=Ba.length;if(xe){for(m(E).iso=!0,R=0,re=_i;R<re;R++)if(li[R][1].exec(xe[1])){it=li[R][0],Ve=li[R][2]!==!1;break}if(it==null){E._isValid=!1;return}if(xe[3]){for(R=0,re=Ia;R<re;R++)if(Ba[R][1].exec(xe[3])){mn=(xe[2]||" ")+Ba[R][0];break}if(mn==null){E._isValid=!1;return}}if(!Ve&&mn!=null){E._isValid=!1;return}if(xe[4])if(mf.exec(xe[4]))ar="Z";else{E._isValid=!1;return}E._f=it+(mn||"")+(ar||""),Br(E)}else E._isValid=!1}function Zc(E,R,re,ce,xe,Ve){var it=[le(E),wn.indexOf(R),parseInt(re,10),parseInt(ce,10),parseInt(xe,10)];return Ve&&it.push(parseInt(Ve,10)),it}function le(E){var R=parseInt(E,10);return R<=49?2e3+R:R<=999?1900+R:R}function q(E){return E.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ae(E,R,re){if(E){var ce=Bm.indexOf(E),xe=new Date(R[0],R[1],R[2]).getDay();if(ce!==xe)return m(re).weekdayMismatch=!0,re._isValid=!1,!1}return!0}function Se(E,R,re){if(E)return bo[E];if(R)return 0;var ce=parseInt(re,10),xe=ce%100,Ve=(ce-xe)/100;return Ve*60+xe}function Ie(E){var R=Rm.exec(q(E._i)),re;if(R){if(re=Zc(R[4],R[3],R[2],R[5],R[6],R[7]),!ae(R[1],re,E))return;E._a=re,E._tzm=Se(R[8],R[9],R[10]),E._d=cl.apply(null,E._a),E._d.setUTCMinutes(E._d.getUTCMinutes()-E._tzm),m(E).rfc2822=!0}else E._isValid=!1}function ot(E){var R=gf.exec(E._i);if(R!==null){E._d=new Date(+R[1]);return}if(ip(E),E._isValid===!1)delete E._isValid;else return;if(Ie(E),E._isValid===!1)delete E._isValid;else return;E._strict?E._isValid=!1:t.createFromInputFallback(E)}t.createFromInputFallback=M("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(E){E._d=new Date(E._i+(E._useUTC?" UTC":""))});function bt(E,R,re){return E??R??re}function qt(E){var R=new Date(t.now());return E._useUTC?[R.getUTCFullYear(),R.getUTCMonth(),R.getUTCDate()]:[R.getFullYear(),R.getMonth(),R.getDate()]}function kn(E){var R,re,ce=[],xe,Ve,it;if(!E._d){for(xe=qt(E),E._w&&E._a[gr]==null&&E._a[co]==null&&Cr(E),E._dayOfYear!=null&&(it=bt(E._a[$r],xe[$r]),(E._dayOfYear>Sa(it)||E._dayOfYear===0)&&(m(E)._overflowDayOfYear=!0),re=cl(it,0,E._dayOfYear),E._a[co]=re.getUTCMonth(),E._a[gr]=re.getUTCDate()),R=0;R<3&&E._a[R]==null;++R)E._a[R]=ce[R]=xe[R];for(;R<7;R++)E._a[R]=ce[R]=E._a[R]==null?R===2?1:0:E._a[R];E._a[sr]===24&&E._a[We]===0&&E._a[an]===0&&E._a[tn]===0&&(E._nextDay=!0,E._a[sr]=0),E._d=(E._useUTC?cl:ku).apply(null,ce),Ve=E._useUTC?E._d.getUTCDay():E._d.getDay(),E._tzm!=null&&E._d.setUTCMinutes(E._d.getUTCMinutes()-E._tzm),E._nextDay&&(E._a[sr]=24),E._w&&typeof E._w.d<"u"&&E._w.d!==Ve&&(m(E).weekdayMismatch=!0)}}function Cr(E){var R,re,ce,xe,Ve,it,mn,ar,_i;R=E._w,R.GG!=null||R.W!=null||R.E!=null?(Ve=1,it=4,re=bt(R.GG,E._a[$r],Oa(vi(),1,4).year),ce=bt(R.W,1),xe=bt(R.E,1),(xe<1||xe>7)&&(ar=!0)):(Ve=E._locale._week.dow,it=E._locale._week.doy,_i=Oa(vi(),Ve,it),re=bt(R.gg,E._a[$r],_i.year),ce=bt(R.w,_i.week),R.d!=null?(xe=R.d,(xe<0||xe>6)&&(ar=!0)):R.e!=null?(xe=R.e+Ve,(R.e<0||R.e>6)&&(ar=!0)):xe=Ve),ce<1||ce>Ea(re,Ve,it)?m(E)._overflowWeeks=!0:ar!=null?m(E)._overflowWeekday=!0:(mn=lf(re,ce,xe,Ve,it),E._a[$r]=mn.year,E._dayOfYear=mn.dayOfYear)}t.ISO_8601=function(){},t.RFC_2822=function(){};function Br(E){if(E._f===t.ISO_8601){ip(E);return}if(E._f===t.RFC_2822){Ie(E);return}E._a=[],m(E).empty=!0;var R=""+E._i,re,ce,xe,Ve,it,mn=R.length,ar=0,_i,Ia;for(xe=$(E._f,E._locale).match(S)||[],Ia=xe.length,re=0;re<Ia;re++)Ve=xe[re],ce=(R.match(_n(Ve,E))||[])[0],ce&&(it=R.substr(0,R.indexOf(ce)),it.length>0&&m(E).unusedInput.push(it),R=R.slice(R.indexOf(ce)+ce.length),ar+=ce.length),Q[Ve]?(ce?m(E).empty=!1:m(E).unusedTokens.push(Ve),ds(Ve,ce,E)):E._strict&&!ce&&m(E).unusedTokens.push(Ve);m(E).charsLeftOver=mn-ar,R.length>0&&m(E).unusedInput.push(R),E._a[sr]<=12&&m(E).bigHour===!0&&E._a[sr]>0&&(m(E).bigHour=void 0),m(E).parsedDateParts=E._a.slice(0),m(E).meridiem=E._meridiem,E._a[sr]=ro(E._locale,E._a[sr],E._meridiem),_i=m(E).era,_i!==null&&(E._a[$r]=E._locale.erasConvertYear(_i,E._a[$r])),kn(E),hf(E)}function ro(E,R,re){var ce;return re==null?R:E.meridiemHour!=null?E.meridiemHour(R,re):(E.isPM!=null&&(ce=E.isPM(re),ce&&R<12&&(R+=12),!ce&&R===12&&(R=0)),R)}function ac(E){var R,re,ce,xe,Ve,it,mn=!1,ar=E._f.length;if(ar===0){m(E).invalidFormat=!0,E._d=new Date(NaN);return}for(xe=0;xe<ar;xe++)Ve=0,it=!1,R=_({},E),E._useUTC!=null&&(R._useUTC=E._useUTC),R._f=E._f[xe],Br(R),b(R)&&(it=!0),Ve+=m(R).charsLeftOver,Ve+=m(R).unusedTokens.length*10,m(R).score=Ve,mn?Ve<ce&&(ce=Ve,re=R):(ce==null||Ve<ce||it)&&(ce=Ve,re=R,it&&(mn=!0));f(E,re||R)}function Fv(E){if(!E._d){var R=De(E._i),re=R.day===void 0?R.date:R.day;E._a=c([R.year,R.month,re,R.hour,R.minute,R.second,R.millisecond],function(ce){return ce&&parseInt(ce,10)}),kn(E)}}function vf(E){var R=new w(hf(ms(E)));return R._nextDay&&(R.add(1,"d"),R._nextDay=void 0),R}function ms(E){var R=E._i,re=E._f;return E._locale=E._locale||no(E._l),R===null||re===void 0&&R===""?v({nullInput:!0}):(typeof R=="string"&&(E._i=R=E._locale.preparse(R)),k(R)?new w(hf(R)):(u(R)?E._d=R:r(re)?ac(E):re?Br(E):yf(E),b(E)||(E._d=null),E))}function yf(E){var R=E._i;a(R)?E._d=new Date(t.now()):u(R)?E._d=new Date(R.valueOf()):typeof R=="string"?ot(E):r(R)?(E._a=c(R.slice(0),function(re){return parseInt(re,10)}),kn(E)):i(R)?Fv(E):l(R)?E._d=new Date(R):t.createFromInputFallback(E)}function Uc(E,R,re,ce,xe){var Ve={};return(R===!0||R===!1)&&(ce=R,R=void 0),(re===!0||re===!1)&&(ce=re,re=void 0),(i(E)&&s(E)||r(E)&&E.length===0)&&(E=void 0),Ve._isAMomentObject=!0,Ve._useUTC=Ve._isUTC=xe,Ve._l=re,Ve._i=E,Ve._f=R,Ve._strict=ce,vf(Ve)}function vi(E,R,re,ce){return Uc(E,R,re,ce,!1)}var Lm=M("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var E=vi.apply(null,arguments);return this.isValid()&&E.isValid()?E<this?this:E:v()}),xf=M("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var E=vi.apply(null,arguments);return this.isValid()&&E.isValid()?E>this?this:E:v()});function Gh(E,R){var re,ce;if(R.length===1&&r(R[0])&&(R=R[0]),!R.length)return vi();for(re=R[0],ce=1;ce<R.length;++ce)(!R[ce].isValid()||R[ce][E](re))&&(re=R[ce]);return re}function Vm(){var E=[].slice.call(arguments,0);return Gh("isBefore",E)}function Jm(){var E=[].slice.call(arguments,0);return Gh("isAfter",E)}var Fh=function(){return Date.now?Date.now():+new Date},Ys=["year","quarter","month","week","day","hour","minute","second","millisecond"];function jm(E){var R,re=!1,ce,xe=Ys.length;for(R in E)if(o(E,R)&&!(Rt.call(Ys,R)!==-1&&(E[R]==null||!isNaN(E[R]))))return!1;for(ce=0;ce<xe;++ce)if(E[Ys[ce]]){if(re)return!1;parseFloat(E[Ys[ce]])!==Xe(E[Ys[ce]])&&(re=!0)}return!0}function Iv(){return this._isValid}function Ih(){return Wn(NaN)}function op(E){var R=De(E),re=R.year||0,ce=R.quarter||0,xe=R.month||0,Ve=R.week||R.isoWeek||0,it=R.day||0,mn=R.hour||0,ar=R.minute||0,_i=R.second||0,Ia=R.millisecond||0;this._isValid=jm(R),this._milliseconds=+Ia+_i*1e3+ar*6e4+mn*1e3*60*60,this._days=+it+Ve*7,this._months=+xe+ce*3+re*12,this._data={},this._locale=no(),this._bubble()}function da(E){return E instanceof op}function Su(E){return E<0?Math.round(-1*E)*-1:Math.round(E)}function S5(E,R,re){var ce=Math.min(E.length,R.length),xe=Math.abs(E.length-R.length),Ve=0,it;for(it=0;it<ce;it++)(re&&E[it]!==R[it]||!re&&Xe(E[it])!==Xe(R[it]))&&Ve++;return Ve+xe}function t6(E,R){U(E,0,0,function(){var re=this.utcOffset(),ce="+";return re<0&&(re=-re,ce="-"),ce+C(~~(re/60),2)+R+C(~~re%60,2)})}t6("Z",":"),t6("ZZ",""),ct("Z",Bn),ct("ZZ",Bn),Qn(["Z","ZZ"],function(E,R,re){re._useUTC=!0,re._tzm=lc(Bn,E)});var O5=/([\+\-]|\d\d)/gi;function lc(E,R){var re=(R||"").match(E),ce,xe,Ve;return re===null?null:(ce=re[re.length-1]||[],xe=(ce+"").match(O5)||["-",0,0],Ve=+(xe[1]*60)+Xe(xe[2]),Ve===0?0:xe[0]==="+"?Ve:-Ve)}function Zs(E,R){var re,ce;return R._isUTC?(re=R.clone(),ce=(k(E)||u(E)?E.valueOf():vi(E).valueOf())-re.valueOf(),re._d.setTime(re._d.valueOf()+ce),t.updateOffset(re,!1),re):vi(E).local()}function Hm(E){return-Math.round(E._d.getTimezoneOffset())}t.updateOffset=function(){};function E5(E,R,re){var ce=this._offset||0,xe;if(!this.isValid())return E!=null?this:NaN;if(E!=null){if(typeof E=="string"){if(E=lc(Bn,E),E===null)return this}else Math.abs(E)<16&&!re&&(E=E*60);return!this._isUTC&&R&&(xe=Hm(this)),this._offset=E,this._isUTC=!0,xe!=null&&this.add(xe,"m"),ce!==E&&(!R||this._changeInProgress?i6(this,Wn(E-ce,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?ce:Hm(this)}function M5(E,R){return E!=null?(typeof E!="string"&&(E=-E),this.utcOffset(E,R),this):-this.utcOffset()}function B5(E){return this.utcOffset(0,E)}function n6(E){return this._isUTC&&(this.utcOffset(0,E),this._isUTC=!1,E&&this.subtract(Hm(this),"m")),this}function N5(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var E=lc(cr,this._i);E!=null?this.utcOffset(E):this.utcOffset(0,!0)}return this}function Qc(E){return this.isValid()?(E=E?vi(E).utcOffset():0,(this.utcOffset()-E)%60===0):!1}function He(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function st(){if(!a(this._isDSTShifted))return this._isDSTShifted;var E={},R;return _(E,this),E=ms(E),E._a?(R=E._isUTC?d(E._a):vi(E._a),this._isDSTShifted=this.isValid()&&S5(E._a,R.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function tt(){return this.isValid()?!this._isUTC:!1}function Vt(){return this.isValid()?this._isUTC:!1}function zn(){return this.isValid()?this._isUTC&&this._offset===0:!1}var ei=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,rs=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Wn(E,R){var re=E,ce=null,xe,Ve,it;return da(E)?re={ms:E._milliseconds,d:E._days,M:E._months}:l(E)||!isNaN(+E)?(re={},R?re[R]=+E:re.milliseconds=+E):(ce=ei.exec(E))?(xe=ce[1]==="-"?-1:1,re={y:0,d:Xe(ce[gr])*xe,h:Xe(ce[sr])*xe,m:Xe(ce[We])*xe,s:Xe(ce[an])*xe,ms:Xe(Su(ce[tn]*1e3))*xe}):(ce=rs.exec(E))?(xe=ce[1]==="-"?-1:1,re={y:Ou(ce[2],xe),M:Ou(ce[3],xe),w:Ou(ce[4],xe),d:Ou(ce[5],xe),h:Ou(ce[6],xe),m:Ou(ce[7],xe),s:Ou(ce[8],xe)}):re==null?re={}:typeof re=="object"&&("from"in re||"to"in re)&&(it=Na(vi(re.from),vi(re.to)),re={},re.ms=it.milliseconds,re.M=it.months),Ve=new op(re),da(E)&&o(E,"_locale")&&(Ve._locale=E._locale),da(E)&&o(E,"_isValid")&&(Ve._isValid=E._isValid),Ve}Wn.fn=op.prototype,Wn.invalid=Ih;function Ou(E,R){var re=E&&parseFloat(E.replace(",","."));return(isNaN(re)?0:re)*R}function r6(E,R){var re={};return re.months=R.month()-E.month()+(R.year()-E.year())*12,E.clone().add(re.months,"M").isAfter(R)&&--re.months,re.milliseconds=+R-+E.clone().add(re.months,"M"),re}function Na(E,R){var re;return E.isValid()&&R.isValid()?(R=Zs(R,E),E.isBefore(R)?re=r6(E,R):(re=r6(R,E),re.milliseconds=-re.milliseconds,re.months=-re.months),re):{milliseconds:0,months:0}}function zh(E,R){return function(re,ce){var xe,Ve;return ce!==null&&!isNaN(+ce)&&(W(R,"moment()."+R+"(period, number) is deprecated. Please use moment()."+R+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),Ve=re,re=ce,ce=Ve),xe=Wn(re,ce),i6(this,xe,E),this}}function i6(E,R,re,ce){var xe=R._milliseconds,Ve=Su(R._days),it=Su(R._months);!E.isValid()||(ce=ce??!0,it&&ps(E,fe(E,"Month")+it*re),Ve&&be(E,"Date",fe(E,"Date")+Ve*re),xe&&E._d.setTime(E._d.valueOf()+xe*re),ce&&t.updateOffset(E,Ve||it))}var _f=zh(1,"add"),Th=zh(-1,"subtract");function Dh(E){return typeof E=="string"||E instanceof String}function yi(E){return k(E)||u(E)||Dh(E)||l(E)||pl(E)||G5(E)||E===null||E===void 0}function G5(E){var R=i(E)&&!s(E),re=!1,ce=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],xe,Ve,it=ce.length;for(xe=0;xe<it;xe+=1)Ve=ce[xe],re=re||o(E,Ve);return R&&re}function pl(E){var R=r(E),re=!1;return R&&(re=E.filter(function(ce){return!l(ce)&&Dh(E)}).length===0),R&&re}function io(E){var R=i(E)&&!s(E),re=!1,ce=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],xe,Ve;for(xe=0;xe<ce.length;xe+=1)Ve=ce[xe],re=re||o(E,Ve);return R&&re}function F5(E,R){var re=E.diff(R,"days",!0);return re<-6?"sameElse":re<-1?"lastWeek":re<0?"lastDay":re<1?"sameDay":re<2?"nextDay":re<7?"nextWeek":"sameElse"}function I5(E,R){arguments.length===1&&(arguments[0]?yi(arguments[0])?(E=arguments[0],R=void 0):io(arguments[0])&&(R=arguments[0],E=void 0):(E=void 0,R=void 0));var re=E||vi(),ce=Zs(re,this).startOf("day"),xe=t.calendarFormat(this,ce)||"sameElse",Ve=R&&(J(R[xe])?R[xe].call(this,re):R[xe]);return this.format(Ve||this.localeData().calendar(xe,this,vi(re)))}function z5(){return new w(this)}function Wm(E,R){var re=k(E)?E:vi(E);return this.isValid()&&re.isValid()?(R=Ne(R)||"millisecond",R==="millisecond"?this.valueOf()>re.valueOf():re.valueOf()<this.clone().startOf(R).valueOf()):!1}function ed(E,R){var re=k(E)?E:vi(E);return this.isValid()&&re.isValid()?(R=Ne(R)||"millisecond",R==="millisecond"?this.valueOf()<re.valueOf():this.clone().endOf(R).valueOf()<re.valueOf()):!1}function Xm(E,R,re,ce){var xe=k(E)?E:vi(E),Ve=k(R)?R:vi(R);return this.isValid()&&xe.isValid()&&Ve.isValid()?(ce=ce||"()",(ce[0]==="("?this.isAfter(xe,re):!this.isBefore(xe,re))&&(ce[1]===")"?this.isBefore(Ve,re):!this.isAfter(Ve,re))):!1}function o6(E,R){var re=k(E)?E:vi(E),ce;return this.isValid()&&re.isValid()?(R=Ne(R)||"millisecond",R==="millisecond"?this.valueOf()===re.valueOf():(ce=re.valueOf(),this.clone().startOf(R).valueOf()<=ce&&ce<=this.clone().endOf(R).valueOf())):!1}function sp(E,R){return this.isSame(E,R)||this.isAfter(E,R)}function X(E,R){return this.isSame(E,R)||this.isBefore(E,R)}function K(E,R,re){var ce,xe,Ve;if(!this.isValid())return NaN;if(ce=Zs(E,this),!ce.isValid())return NaN;switch(xe=(ce.utcOffset()-this.utcOffset())*6e4,R=Ne(R),R){case"year":Ve=me(this,ce)/12;break;case"month":Ve=me(this,ce);break;case"quarter":Ve=me(this,ce)/3;break;case"second":Ve=(this-ce)/1e3;break;case"minute":Ve=(this-ce)/6e4;break;case"hour":Ve=(this-ce)/36e5;break;case"day":Ve=(this-ce-xe)/864e5;break;case"week":Ve=(this-ce-xe)/6048e5;break;default:Ve=this-ce}return re?Ve:Le(Ve)}function me(E,R){if(E.date()<R.date())return-me(R,E);var re=(R.year()-E.year())*12+(R.month()-E.month()),ce=E.clone().add(re,"months"),xe,Ve;return R-ce<0?(xe=E.clone().add(re-1,"months"),Ve=(R-ce)/(ce-xe)):(xe=E.clone().add(re+1,"months"),Ve=(R-ce)/(xe-ce)),-(re+Ve)||0}t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Fe(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function nt(E){if(!this.isValid())return null;var R=E!==!0,re=R?this.clone().utc():this;return re.year()<0||re.year()>9999?L(re,R?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):J(Date.prototype.toISOString)?R?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",L(re,"Z")):L(re,R?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function on(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var E="moment",R="",re,ce,xe,Ve;return this.isLocal()||(E=this.utcOffset()===0?"moment.utc":"moment.parseZone",R="Z"),re="["+E+'("]',ce=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",xe="-MM-DD[T]HH:mm:ss.SSS",Ve=R+'[")]',this.format(re+ce+xe+Ve)}function xi(E){E||(E=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var R=L(this,E);return this.localeData().postformat(R)}function Ga(E,R){return this.isValid()&&(k(E)&&E.isValid()||vi(E).isValid())?Wn({to:this,from:E}).locale(this.locale()).humanize(!R):this.localeData().invalidDate()}function Us(E){return this.from(vi(),E)}function bf(E,R){return this.isValid()&&(k(E)&&E.isValid()||vi(E).isValid())?Wn({from:this,to:E}).locale(this.locale()).humanize(!R):this.localeData().invalidDate()}function wf(E){return this.to(vi(),E)}function zv(E){var R;return E===void 0?this._locale._abbr:(R=no(E),R!=null&&(this._locale=R),this)}var s6=M("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(E){return E===void 0?this.localeData():this.locale(E)});function y9(){return this._locale}var Tv=1e3,qm=60*Tv,a6=60*qm,gs=(365*400+97)*24*a6;function is(E,R){return(E%R+R)%R}function x9(E,R,re){return E<100&&E>=0?new Date(E+400,R,re)-gs:new Date(E,R,re).valueOf()}function _9(E,R,re){return E<100&&E>=0?Date.UTC(E+400,R,re)-gs:Date.UTC(E,R,re)}function b9(E){var R,re;if(E=Ne(E),E===void 0||E==="millisecond"||!this.isValid())return this;switch(re=this._isUTC?_9:x9,E){case"year":R=re(this.year(),0,1);break;case"quarter":R=re(this.year(),this.month()-this.month()%3,1);break;case"month":R=re(this.year(),this.month(),1);break;case"week":R=re(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":R=re(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":R=re(this.year(),this.month(),this.date());break;case"hour":R=this._d.valueOf(),R-=is(R+(this._isUTC?0:this.utcOffset()*qm),a6);break;case"minute":R=this._d.valueOf(),R-=is(R,qm);break;case"second":R=this._d.valueOf(),R-=is(R,Tv);break}return this._d.setTime(R),t.updateOffset(this,!0),this}function Jz(E){var R,re;if(E=Ne(E),E===void 0||E==="millisecond"||!this.isValid())return this;switch(re=this._isUTC?_9:x9,E){case"year":R=re(this.year()+1,0,1)-1;break;case"quarter":R=re(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":R=re(this.year(),this.month()+1,1)-1;break;case"week":R=re(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":R=re(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":R=re(this.year(),this.month(),this.date()+1)-1;break;case"hour":R=this._d.valueOf(),R+=a6-is(R+(this._isUTC?0:this.utcOffset()*qm),a6)-1;break;case"minute":R=this._d.valueOf(),R+=qm-is(R,qm)-1;break;case"second":R=this._d.valueOf(),R+=Tv-is(R,Tv)-1;break}return this._d.setTime(R),t.updateOffset(this,!0),this}function T5(){return this._d.valueOf()-(this._offset||0)*6e4}function Dv(){return Math.floor(this.valueOf()/1e3)}function D5(){return new Date(this.valueOf())}function $m(){var E=this;return[E.year(),E.month(),E.date(),E.hour(),E.minute(),E.second(),E.millisecond()]}function Rv(){var E=this;return{years:E.year(),months:E.month(),date:E.date(),hours:E.hours(),minutes:E.minutes(),seconds:E.seconds(),milliseconds:E.milliseconds()}}function Lv(){return this.isValid()?this.toISOString():null}function l6(){return b(this)}function Km(){return f({},m(this))}function jz(){return m(this).overflow}function Hz(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}U("N",0,0,"eraAbbr"),U("NN",0,0,"eraAbbr"),U("NNN",0,0,"eraAbbr"),U("NNNN",0,0,"eraName"),U("NNNNN",0,0,"eraNarrow"),U("y",["y",1],"yo","eraYear"),U("y",["yy",2],0,"eraYear"),U("y",["yyy",3],0,"eraYear"),U("y",["yyyy",4],0,"eraYear"),ct("N",_r),ct("NN",_r),ct("NNN",_r),ct("NNNN",$z),ct("NNNNN",Kz),Qn(["N","NN","NNN","NNNN","NNNNN"],function(E,R,re,ce){var xe=re._locale.erasParse(E,ce,re._strict);xe?m(re).era=xe:m(re).invalidEra=E}),ct("y",Hn),ct("yy",Hn),ct("yyy",Hn),ct("yyyy",Hn),ct("yo",Yz),Qn(["y","yy","yyy","yyyy"],$r),Qn(["yo"],function(E,R,re,ce){var xe;re._locale._eraYearOrdinalRegex&&(xe=E.match(re._locale._eraYearOrdinalRegex)),re._locale.eraYearOrdinalParse?R[$r]=re._locale.eraYearOrdinalParse(E,xe):R[$r]=parseInt(E,10)});function Wz(E,R){var re,ce,xe,Ve=this._eras||no("en")._eras;for(re=0,ce=Ve.length;re<ce;++re){switch(typeof Ve[re].since){case"string":xe=t(Ve[re].since).startOf("day"),Ve[re].since=xe.valueOf();break}switch(typeof Ve[re].until){case"undefined":Ve[re].until=1/0;break;case"string":xe=t(Ve[re].until).startOf("day").valueOf(),Ve[re].until=xe.valueOf();break}}return Ve}function Xz(E,R,re){var ce,xe,Ve=this.eras(),it,mn,ar;for(E=E.toUpperCase(),ce=0,xe=Ve.length;ce<xe;++ce)if(it=Ve[ce].name.toUpperCase(),mn=Ve[ce].abbr.toUpperCase(),ar=Ve[ce].narrow.toUpperCase(),re)switch(R){case"N":case"NN":case"NNN":if(mn===E)return Ve[ce];break;case"NNNN":if(it===E)return Ve[ce];break;case"NNNNN":if(ar===E)return Ve[ce];break}else if([it,mn,ar].indexOf(E)>=0)return Ve[ce]}function qz(E,R){var re=E.since<=E.until?1:-1;return R===void 0?t(E.since).year():t(E.since).year()+(R-E.offset)*re}function u6(){var E,R,re,ce=this.localeData().eras();for(E=0,R=ce.length;E<R;++E)if(re=this.clone().startOf("day").valueOf(),ce[E].since<=re&&re<=ce[E].until||ce[E].until<=re&&re<=ce[E].since)return ce[E].name;return""}function Vv(){var E,R,re,ce=this.localeData().eras();for(E=0,R=ce.length;E<R;++E)if(re=this.clone().startOf("day").valueOf(),ce[E].since<=re&&re<=ce[E].until||ce[E].until<=re&&re<=ce[E].since)return ce[E].narrow;return""}function w9(){var E,R,re,ce=this.localeData().eras();for(E=0,R=ce.length;E<R;++E)if(re=this.clone().startOf("day").valueOf(),ce[E].since<=re&&re<=ce[E].until||ce[E].until<=re&&re<=ce[E].since)return ce[E].abbr;return""}function we(){var E,R,re,ce,xe=this.localeData().eras();for(E=0,R=xe.length;E<R;++E)if(re=xe[E].since<=xe[E].until?1:-1,ce=this.clone().startOf("day").valueOf(),xe[E].since<=ce&&ce<=xe[E].until||xe[E].until<=ce&&ce<=xe[E].since)return(this.year()-t(xe[E].since).year())*re+xe[E].offset;return this.year()}function Ym(E){return o(this,"_erasNameRegex")||ap.call(this),E?this._erasNameRegex:this._erasRegex}function c6(E){return o(this,"_erasAbbrRegex")||ap.call(this),E?this._erasAbbrRegex:this._erasRegex}function Eu(E){return o(this,"_erasNarrowRegex")||ap.call(this),E?this._erasNarrowRegex:this._erasRegex}function _r(E,R){return R.erasAbbrRegex(E)}function $z(E,R){return R.erasNameRegex(E)}function Kz(E,R){return R.erasNarrowRegex(E)}function Yz(E,R){return R._eraYearOrdinalRegex||Hn}function ap(){var E=[],R=[],re=[],ce=[],xe,Ve,it=this.eras();for(xe=0,Ve=it.length;xe<Ve;++xe)R.push(or(it[xe].name)),E.push(or(it[xe].abbr)),re.push(or(it[xe].narrow)),ce.push(or(it[xe].name)),ce.push(or(it[xe].abbr)),ce.push(or(it[xe].narrow));this._erasRegex=new RegExp("^("+ce.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+R.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+E.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+re.join("|")+")","i")}U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100});function d6(E,R){U(0,[E,E.length],0,R)}d6("gggg","weekYear"),d6("ggggg","weekYear"),d6("GGGG","isoWeekYear"),d6("GGGGG","isoWeekYear"),Ee("weekYear","gg"),Ee("isoWeekYear","GG"),Re("weekYear",1),Re("isoWeekYear",1),ct("G",dn),ct("g",dn),ct("GG",Ft,Ke),ct("gg",Ft,Ke),ct("GGGG",Yn,ft),ct("gggg",Yn,ft),ct("GGGGG",jn,Bt),ct("ggggg",jn,Bt),Ho(["gggg","ggggg","GGGG","GGGGG"],function(E,R,re,ce){R[ce.substr(0,2)]=Xe(E)}),Ho(["gg","GG"],function(E,R,re,ce){R[ce]=t.parseTwoDigitYear(E)});function Zz(E){return P9.call(this,E,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Uz(E){return P9.call(this,E,this.isoWeek(),this.isoWeekday(),1,4)}function Qz(){return Ea(this.year(),1,4)}function eT(){return Ea(this.isoWeekYear(),1,4)}function lp(){var E=this.localeData()._week;return Ea(this.year(),E.dow,E.doy)}function tT(){var E=this.localeData()._week;return Ea(this.weekYear(),E.dow,E.doy)}function P9(E,R,re,ce,xe){var Ve;return E==null?Oa(this,ce,xe).year:(Ve=Ea(E,ce,xe),R>Ve&&(R=Ve),nT.call(this,E,R,re,ce,xe))}function nT(E,R,re,ce,xe){var Ve=lf(E,R,re,ce,xe),it=cl(Ve.year,0,Ve.dayOfYear);return this.year(it.getUTCFullYear()),this.month(it.getUTCMonth()),this.date(it.getUTCDate()),this}U("Q",0,"Qo","quarter"),Ee("quarter","Q"),Re("quarter",7),ct("Q",Me),Qn("Q",function(E,R){R[co]=(Xe(E)-1)*3});function rT(E){return E==null?Math.ceil((this.month()+1)/3):this.month((E-1)*3+this.month()%3)}U("D",["DD",2],"Do","date"),Ee("date","D"),Re("date",9),ct("D",Ft),ct("DD",Ft,Ke),ct("Do",function(E,R){return E?R._dayOfMonthOrdinalParse||R._ordinalParse:R._dayOfMonthOrdinalParseLenient}),Qn(["D","DD"],gr),Qn("Do",function(E,R){R[gr]=Xe(E.match(Ft)[0])});var k9=mt("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),Ee("dayOfYear","DDD"),Re("dayOfYear",4),ct("DDD",ln),ct("DDDD",gt),Qn(["DDD","DDDD"],function(E,R,re){re._dayOfYear=Xe(E)});function up(E){var R=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return E==null?R:this.add(E-R,"d")}U("m",["mm",2],0,"minute"),Ee("minute","m"),Re("minute",14),ct("m",Ft),ct("mm",Ft,Ke),Qn(["m","mm"],We);var iT=mt("Minutes",!1);U("s",["ss",2],0,"second"),Ee("second","s"),Re("second",15),ct("s",Ft),ct("ss",Ft,Ke),Qn(["s","ss"],an);var oT=mt("Seconds",!1);U("S",0,0,function(){return~~(this.millisecond()/100)}),U(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,function(){return this.millisecond()*10}),U(0,["SSSSS",5],0,function(){return this.millisecond()*100}),U(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),U(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),U(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),U(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Ee("millisecond","ms"),Re("millisecond",16),ct("S",ln,Me),ct("SS",ln,Ke),ct("SSS",ln,gt);var Pf,A9;for(Pf="SSSS";Pf.length<=9;Pf+="S")ct(Pf,Hn);function sT(E,R){R[tn]=Xe(("0."+E)*1e3)}for(Pf="S";Pf.length<=9;Pf+="S")Qn(Pf,sT);A9=mt("Milliseconds",!1),U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");function Rh(){return this._isUTC?"UTC":""}function aT(){return this._isUTC?"Coordinated Universal Time":""}var wt=w.prototype;wt.add=_f,wt.calendar=I5,wt.clone=z5,wt.diff=K,wt.endOf=Jz,wt.format=xi,wt.from=Ga,wt.fromNow=Us,wt.to=bf,wt.toNow=wf,wt.get=ye,wt.invalidAt=jz,wt.isAfter=Wm,wt.isBefore=ed,wt.isBetween=Xm,wt.isSame=o6,wt.isSameOrAfter=sp,wt.isSameOrBefore=X,wt.isValid=l6,wt.lang=s6,wt.locale=zv,wt.localeData=y9,wt.max=xf,wt.min=Lm,wt.parsingFlags=Km,wt.set=Oe,wt.startOf=b9,wt.subtract=Th,wt.toArray=$m,wt.toObject=Rv,wt.toDate=D5,wt.toISOString=nt,wt.inspect=on,typeof Symbol<"u"&&Symbol.for!=null&&(wt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),wt.toJSON=Lv,wt.toString=Fe,wt.unix=Dv,wt.valueOf=T5,wt.creationData=Hz,wt.eraName=u6,wt.eraNarrow=Vv,wt.eraAbbr=w9,wt.eraYear=we,wt.year=Ch,wt.isLeapYear=Pv,wt.weekYear=Zz,wt.isoWeekYear=Uz,wt.quarter=wt.quarters=rT,wt.month=Qd,wt.daysInMonth=Sm,wt.week=wt.weeks=kv,wt.isoWeek=wt.isoWeeks=Yc,wt.weeksInYear=lp,wt.weeksInWeekYear=tT,wt.isoWeeksInYear=Qz,wt.isoWeeksInISOWeekYear=eT,wt.date=k9,wt.day=wt.days=Bv,wt.weekday=Gm,wt.isoWeekday=ep,wt.dayOfYear=up,wt.hour=wt.hours=Wo,wt.minute=wt.minutes=iT,wt.second=wt.seconds=oT,wt.millisecond=wt.milliseconds=A9,wt.utcOffset=E5,wt.utc=B5,wt.local=n6,wt.parseZone=N5,wt.hasAlignedHourOffset=Qc,wt.isDST=He,wt.isLocal=tt,wt.isUtcOffset=Vt,wt.isUtc=zn,wt.isUTC=zn,wt.zoneAbbr=Rh,wt.zoneName=aT,wt.dates=M("dates accessor is deprecated. Use date instead.",k9),wt.months=M("months accessor is deprecated. Use month instead",Qd),wt.years=M("years accessor is deprecated. Use year instead",Ch),wt.zone=M("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",M5),wt.isDSTShifted=M("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",st);function uc(E){return vi(E*1e3)}function lT(){return vi.apply(null,arguments).parseZone()}function C9(E){return E}var ui=j.prototype;ui.calendar=N,ui.longDateFormat=se,ui.invalidDate=ue,ui.ordinal=de,ui.preparse=C9,ui.postformat=C9,ui.relativeTime=Ae,ui.pastFuture=Ce,ui.set=H,ui.eras=Wz,ui.erasParse=Xz,ui.erasConvertYear=qz,ui.erasAbbrRegex=c6,ui.erasNameRegex=Ym,ui.erasNarrowRegex=Eu,ui.months=Ks,ui.monthsShort=ul,ui.monthsParse=sc,ui.monthsRegex=Om,ui.monthsShortRegex=kh,ui.week=Sh,ui.firstDayOfYear=Mm,ui.firstDayOfWeek=Em,ui.weekdays=Ov,ui.weekdaysMin=df,ui.weekdaysShort=Ev,ui.weekdaysParse=Au,ui.weekdaysRegex=Ni,ui.weekdaysShortRegex=gi,ui.weekdaysMinRegex=Nv,ui.isPM=Im,ui.meridiem=Mh;function p6(E,R,re,ce){var xe=no(),Ve=d().set(ce,R);return xe[re](Ve,E)}function S9(E,R,re){if(l(E)&&(R=E,E=void 0),E=E||"",R!=null)return p6(E,R,re,"month");var ce,xe=[];for(ce=0;ce<12;ce++)xe[ce]=p6(E,ce,re,"month");return xe}function f6(E,R,re,ce){typeof E=="boolean"?(l(R)&&(re=R,R=void 0),R=R||""):(R=E,re=R,E=!1,l(R)&&(re=R,R=void 0),R=R||"");var xe=no(),Ve=E?xe._week.dow:0,it,mn=[];if(re!=null)return p6(R,(re+Ve)%7,ce,"day");for(it=0;it<7;it++)mn[it]=p6(R,(it+Ve)%7,ce,"day");return mn}function O9(E,R){return S9(E,R,"months")}function uT(E,R){return S9(E,R,"monthsShort")}function cT(E,R,re){return f6(E,R,re,"weekdays")}function R5(E,R,re){return f6(E,R,re,"weekdaysShort")}function Jv(E,R,re){return f6(E,R,re,"weekdaysMin")}Ma("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(E){var R=E%10,re=Xe(E%100/10)===1?"th":R===1?"st":R===2?"nd":R===3?"rd":"th";return E+re}}),t.lang=M("moment.lang is deprecated. Use moment.locale instead.",Ma),t.langData=M("moment.langData is deprecated. Use moment.localeData instead.",no);var Mu=Math.abs;function dT(){var E=this._data;return this._milliseconds=Mu(this._milliseconds),this._days=Mu(this._days),this._months=Mu(this._months),E.milliseconds=Mu(E.milliseconds),E.seconds=Mu(E.seconds),E.minutes=Mu(E.minutes),E.hours=Mu(E.hours),E.months=Mu(E.months),E.years=Mu(E.years),this}function L5(E,R,re,ce){var xe=Wn(R,re);return E._milliseconds+=ce*xe._milliseconds,E._days+=ce*xe._days,E._months+=ce*xe._months,E._bubble()}function pT(E,R){return L5(this,E,R,1)}function cp(E,R){return L5(this,E,R,-1)}function h6(E){return E<0?Math.floor(E):Math.ceil(E)}function Lh(){var E=this._milliseconds,R=this._days,re=this._months,ce=this._data,xe,Ve,it,mn,ar;return E>=0&&R>=0&&re>=0||E<=0&&R<=0&&re<=0||(E+=h6(V5(re)+R)*864e5,R=0,re=0),ce.milliseconds=E%1e3,xe=Le(E/1e3),ce.seconds=xe%60,Ve=Le(xe/60),ce.minutes=Ve%60,it=Le(Ve/60),ce.hours=it%24,R+=Le(it/24),ar=Le(Jl(R)),re+=ar,R-=h6(V5(ar)),mn=Le(re/12),re%=12,ce.days=R,ce.months=re,ce.years=mn,this}function Jl(E){return E*4800/146097}function V5(E){return E*146097/4800}function E9(E){if(!this.isValid())return NaN;var R,re,ce=this._milliseconds;if(E=Ne(E),E==="month"||E==="quarter"||E==="year")switch(R=this._days+ce/864e5,re=this._months+Jl(R),E){case"month":return re;case"quarter":return re/3;case"year":return re/12}else switch(R=this._days+Math.round(V5(this._months)),E){case"week":return R/7+ce/6048e5;case"day":return R+ce/864e5;case"hour":return R*24+ce/36e5;case"minute":return R*1440+ce/6e4;case"second":return R*86400+ce/1e3;case"millisecond":return Math.floor(R*864e5)+ce;default:throw new Error("Unknown unit "+E)}}function M9(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+Xe(this._months/12)*31536e6:NaN}function jl(E){return function(){return this.as(E)}}var kf=jl("ms"),B9=jl("s"),fT=jl("m"),m6=jl("h"),hT=jl("d"),N9=jl("w"),Qs=jl("M"),J5=jl("Q"),G9=jl("y");function td(){return Wn(this)}function j5(E){return E=Ne(E),this.isValid()?this[E+"s"]():NaN}function nd(E){return function(){return this.isValid()?this._data[E]:NaN}}var Vh=nd("milliseconds"),F9=nd("seconds"),Fa=nd("minutes"),H5=nd("hours"),mT=nd("days"),gT=nd("months"),vT=nd("years");function W5(){return Le(this.days()/7)}var dp=Math.round,rd={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function I9(E,R,re,ce,xe){return xe.relativeTime(R||1,!!re,E,ce)}function yT(E,R,re,ce){var xe=Wn(E).abs(),Ve=dp(xe.as("s")),it=dp(xe.as("m")),mn=dp(xe.as("h")),ar=dp(xe.as("d")),_i=dp(xe.as("M")),Ia=dp(xe.as("w")),id=dp(xe.as("y")),pp=Ve<=re.ss&&["s",Ve]||Ve<re.s&&["ss",Ve]||it<=1&&["m"]||it<re.m&&["mm",it]||mn<=1&&["h"]||mn<re.h&&["hh",mn]||ar<=1&&["d"]||ar<re.d&&["dd",ar];return re.w!=null&&(pp=pp||Ia<=1&&["w"]||Ia<re.w&&["ww",Ia]),pp=pp||_i<=1&&["M"]||_i<re.M&&["MM",_i]||id<=1&&["y"]||["yy",id],pp[2]=R,pp[3]=+E>0,pp[4]=ce,I9.apply(null,pp)}function xT(E){return E===void 0?dp:typeof E=="function"?(dp=E,!0):!1}function jv(E,R){return rd[E]===void 0?!1:R===void 0?rd[E]:(rd[E]=R,E==="s"&&(rd.ss=R-1),!0)}function _T(E,R){if(!this.isValid())return this.localeData().invalidDate();var re=!1,ce=rd,xe,Ve;return typeof E=="object"&&(R=E,E=!1),typeof E=="boolean"&&(re=E),typeof R=="object"&&(ce=Object.assign({},rd,R),R.s!=null&&R.ss==null&&(ce.ss=R.s-1)),xe=this.localeData(),Ve=yT(this,!re,ce,xe),re&&(Ve=xe.pastFuture(+this,Ve)),xe.postformat(Ve)}var X5=Math.abs;function Af(E){return(E>0)-(E<0)||+E}function Hv(){if(!this.isValid())return this.localeData().invalidDate();var E=X5(this._milliseconds)/1e3,R=X5(this._days),re=X5(this._months),ce,xe,Ve,it,mn=this.asSeconds(),ar,_i,Ia,id;return mn?(ce=Le(E/60),xe=Le(ce/60),E%=60,ce%=60,Ve=Le(re/12),re%=12,it=E?E.toFixed(3).replace(/\.?0+$/,""):"",ar=mn<0?"-":"",_i=Af(this._months)!==Af(mn)?"-":"",Ia=Af(this._days)!==Af(mn)?"-":"",id=Af(this._milliseconds)!==Af(mn)?"-":"",ar+"P"+(Ve?_i+Ve+"Y":"")+(re?_i+re+"M":"")+(R?Ia+R+"D":"")+(xe||ce||E?"T":"")+(xe?id+xe+"H":"")+(ce?id+ce+"M":"")+(E?id+it+"S":"")):"P0D"}var Kr=op.prototype;Kr.isValid=Iv,Kr.abs=dT,Kr.add=pT,Kr.subtract=cp,Kr.as=E9,Kr.asMilliseconds=kf,Kr.asSeconds=B9,Kr.asMinutes=fT,Kr.asHours=m6,Kr.asDays=hT,Kr.asWeeks=N9,Kr.asMonths=Qs,Kr.asQuarters=J5,Kr.asYears=G9,Kr.valueOf=M9,Kr._bubble=Lh,Kr.clone=td,Kr.get=j5,Kr.milliseconds=Vh,Kr.seconds=F9,Kr.minutes=Fa,Kr.hours=H5,Kr.days=mT,Kr.weeks=W5,Kr.months=gT,Kr.years=vT,Kr.humanize=_T,Kr.toISOString=Hv,Kr.toString=Hv,Kr.toJSON=Hv,Kr.locale=zv,Kr.localeData=y9,Kr.toIsoString=M("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Hv),Kr.lang=s6,U("X",0,0,"unix"),U("x",0,0,"valueOf"),ct("x",dn),ct("X",Si),Qn("X",function(E,R,re){re._d=new Date(parseFloat(E)*1e3)}),Qn("x",function(E,R,re){re._d=new Date(Xe(E))});return t.version="2.29.4",n(vi),t.fn=wt,t.min=Vm,t.max=Jm,t.now=Fh,t.utc=d,t.unix=uc,t.months=O9,t.isDate=u,t.locale=Ma,t.invalid=v,t.duration=Wn,t.isMoment=k,t.weekdays=cT,t.parseZone=lT,t.localeData=no,t.isDuration=da,t.monthsShort=uT,t.weekdaysMin=Jv,t.defineLocale=hs,t.updateLocale=Dm,t.locales=ff,t.weekdaysShort=R5,t.normalizeUnits=Ne,t.relativeTimeRounding=xT,t.relativeTimeThreshold=jv,t.calendarFormat=F5,t.prototype=wt,t.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"},t})});var Ex=ne((eh,Pge)=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});function Vp(e){return typeof e=="object"&&!("toString"in e)?Object.prototype.toString.call(e).slice(8,-1):e}var kct=typeof process=="object"&&!0;function Sd(e,t){if(!e)throw kct?new Error("Invariant failed"):new Error(t())}eh.invariant=Sd;var bX=Object.prototype.hasOwnProperty,Act=Array.prototype.splice,Cct=Object.prototype.toString;function V2(e){return Cct.call(e).slice(8,-1)}var EE=Object.assign||function(e,t){return wX(t).forEach(function(n){bX.call(t,n)&&(e[n]=t[n])}),e},wX=typeof Object.getOwnPropertySymbols=="function"?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function ug(e){return Array.isArray(e)?EE(e.constructor(e.length),e):V2(e)==="Map"?new Map(e):V2(e)==="Set"?new Set(e):e&&typeof e=="object"?EE(Object.create(Object.getPrototypeOf(e)),e):e}var bge=function(){function e(){this.commands=EE({},Sct),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(t,n){return t===n},this.update.newContext=function(){return new e().update}}return Object.defineProperty(e.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(t){this.update.isEquals=t},enumerable:!0,configurable:!0}),e.prototype.extend=function(t,n){this.commands[t]=n},e.prototype.update=function(t,n){var r=this,i=typeof n=="function"?{$apply:n}:n;Array.isArray(t)&&Array.isArray(i)||Sd(!Array.isArray(i),function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."}),Sd(typeof i=="object"&&i!==null,function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the "+("following commands: "+Object.keys(r.commands).join(", ")+".")});var o=t;return wX(i).forEach(function(s){if(bX.call(r.commands,s)){var a=t===o;o=r.commands[s](i[s],o,i,t),a&&r.isEquals(o,t)&&(o=t)}else{var l=V2(t)==="Map"?r.update(t.get(s),i[s]):r.update(t[s],i[s]),u=V2(o)==="Map"?o.get(s):o[s];(!r.isEquals(l,u)||typeof l>"u"&&!bX.call(t,s))&&(o===t&&(o=ug(t)),V2(o)==="Map"?o.set(s,l):o[s]=l)}}),o},e}();eh.Context=bge;var Sct={$push:function(e,t,n){return xge(t,n,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,n){return xge(t,n,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,n,r){return Oct(t,n),e.forEach(function(i){wge(i),t===r&&i.length&&(t=ug(r)),Act.apply(t,i)}),t},$set:function(e,t,n){return Mct(n),e},$toggle:function(e,t){Gw(e,"$toggle");var n=e.length?ug(t):t;return e.forEach(function(r){n[r]=!t[r]}),n},$unset:function(e,t,n,r){return Gw(e,"$unset"),e.forEach(function(i){Object.hasOwnProperty.call(t,i)&&(t===r&&(t=ug(r)),delete t[i])}),t},$add:function(e,t,n,r){return _ge(t,"$add"),Gw(e,"$add"),V2(t)==="Map"?e.forEach(function(i){var o=i[0],s=i[1];t===r&&t.get(o)!==s&&(t=ug(r)),t.set(o,s)}):e.forEach(function(i){t===r&&!t.has(i)&&(t=ug(r)),t.add(i)}),t},$remove:function(e,t,n,r){return _ge(t,"$remove"),Gw(e,"$remove"),e.forEach(function(i){t===r&&t.has(i)&&(t=ug(r)),t.delete(i)}),t},$merge:function(e,t,n,r){return Bct(t,e),wX(e).forEach(function(i){e[i]!==t[i]&&(t===r&&(t=ug(r)),t[i]=e[i])}),t},$apply:function(e,t){return Ect(e),e(t)}},PX=new bge;eh.isEquals=PX.update.isEquals;eh.extend=PX.extend;eh.default=PX.update;eh.default.default=Pge.exports=EE(eh.default,eh);function xge(e,t,n){Sd(Array.isArray(e),function(){return"update(): expected target of "+Vp(n)+" to be an array; got "+Vp(e)+"."}),Gw(t[n],n)}function Gw(e,t){Sd(Array.isArray(e),function(){return"update(): expected spec of "+Vp(t)+" to be an array; got "+Vp(e)+". Did you forget to wrap your parameter in an array?"})}function Oct(e,t){Sd(Array.isArray(e),function(){return"Expected $splice target to be an array; got "+Vp(e)}),wge(t.$splice)}function wge(e){Sd(Array.isArray(e),function(){return"update(): expected spec of $splice to be an array of arrays; got "+Vp(e)+". Did you forget to wrap your parameters in an array?"})}function Ect(e){Sd(typeof e=="function",function(){return"update(): expected spec of $apply to be a function; got "+Vp(e)+"."})}function Mct(e){Sd(Object.keys(e).length===1,function(){return"Cannot have more than one key in an object with $set"})}function Bct(e,t){Sd(t&&typeof t=="object",function(){return"update(): $merge expects a spec of type 'object'; got "+Vp(t)}),Sd(e&&typeof e=="object",function(){return"update(): $merge expects a target of type 'object'; got "+Vp(e)})}function _ge(e,t){var n=V2(e);Sd(n==="Map"||n==="Set",function(){return"update(): "+Vp(t)+" expects a target of type Set or Map; got "+Vp(n)})}});var Age=ne((Ign,kge)=>{"use strict";var Nct="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";kge.exports=Nct});var Ege=ne((zgn,Oge)=>{"use strict";var Gct=Age();function Cge(){}function Sge(){}Sge.resetWarningCache=Cge;Oge.exports=function(){function e(r,i,o,s,a,l){if(l!==Gct){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:Sge,resetWarningCache:Cge};return n.PropTypes=n,n}});var Jp=ne((Rgn,Mge)=>{Mge.exports=Ege()();var Tgn,Dgn});var Fw=ne(Bge=>{"use strict";var Fct=/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/;Bge.validate=function(e){if(!e||e.length>254)return!1;var t=Fct.test(e);if(!t)return!1;var n=e.split("@");if(n[0].length>64)return!1;var r=n[1].split(".");return!r.some(function(i){return i.length>63})}});var Ige=ne(BE=>{"use strict";var Tct=Pe(),Dct=Symbol.for("react.element"),Rct=Symbol.for("react.fragment"),Lct=Object.prototype.hasOwnProperty,Vct=Tct.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Jct={key:!0,ref:!0,__self:!0,__source:!0};function Fge(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Lct.call(t,r)&&!Jct.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Dct,type:e,key:o,ref:s,props:i,_owner:Vct.current}}BE.Fragment=Rct;BE.jsx=Fge;BE.jsxs=Fge});var St=ne((qgn,zge)=>{"use strict";zge.exports=Ige()});var Gt=ne(($gn,NE)=>{(function(){"use strict";var e={}.hasOwnProperty,t="[native code]";function n(){for(var r=[],i=0;i<arguments.length;i++){var o=arguments[i];if(!!o){var s=typeof o;if(s==="string"||s==="number")r.push(o);else if(Array.isArray(o)){if(o.length){var a=n.apply(null,o);a&&r.push(a)}}else if(s==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){r.push(o.toString());continue}for(var l in o)e.call(o,l)&&o[l]&&r.push(l)}}}return r.join(" ")}typeof NE<"u"&&NE.exports?(n.default=n,NE.exports=n):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return n}):window.classNames=n})()});var d6e=ne(($x,r7)=>{(function(){var e,t="4.17.21",n=200,r="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",o="Invalid `variable` option passed into `_.template`",s="__lodash_hash_undefined__",a=500,l="__lodash_placeholder__",u=1,c=2,f=4,d=1,h=2,m=1,g=2,b=4,v=8,x=16,y=32,_=64,w=128,k=256,O=512,M=30,I="...",W=800,J=16,H=1,ee=2,j=3,V=1/0,B=9007199254740991,N=17976931348623157e292,C=0/0,S=4294967295,G=S-1,T=S>>>1,Q=[["ary",w],["bind",m],["bindKey",g],["curry",v],["curryRight",x],["flip",O],["partial",y],["partialRight",_],["rearg",k]],U="[object Arguments]",F="[object Array]",D="[object AsyncFunction]",L="[object Boolean]",$="[object Date]",Z="[object DOMException]",se="[object Error]",Y="[object Function]",ue="[object GeneratorFunction]",pe="[object Map]",oe="[object Number]",de="[object Null]",ve="[object Object]",Ae="[object Promise]",Ce="[object Proxy]",Ge="[object RegExp]",Ee="[object Set]",Ne="[object String]",De="[object Symbol]",Ue="[object Undefined]",Re="[object WeakMap]",je="[object WeakSet]",$e="[object ArrayBuffer]",Le="[object DataView]",Xe="[object Float32Array]",mt="[object Float64Array]",fe="[object Int8Array]",be="[object Int16Array]",ye="[object Int32Array]",Oe="[object Uint8Array]",Me="[object Uint8ClampedArray]",Ke="[object Uint16Array]",gt="[object Uint32Array]",ft=/\b__p \+= '';/g,Bt=/\b(__p \+=) '' \+/g,Ft=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Kn=/&(?:amp|lt|gt|quot|#39);/g,Ut=/[&<>"']/g,ln=RegExp(Kn.source),Yn=RegExp(Ut.source),jn=/<%-([\s\S]+?)%>/g,Hn=/<%([\s\S]+?)%>/g,dn=/<%=([\s\S]+?)%>/g,cr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bn=/^\w*$/,Si=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ir=/[\\^$.*+?()[\]{}|]/g,Mr=RegExp(ir.source),ct=/^\s+/,_n=/\s/,Oi=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,or=/\{\n\/\* \[wrapped with (.+)\] \*/,bn=/,? & /,Qn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ho=/[()=,{}\[\]\/\s]/,ds=/\\(\\)?/g,$r=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,co=/\w*$/,gr=/^[-+]0x[0-9a-f]+$/i,sr=/^0b[01]+$/i,We=/^\[object .+?Constructor\]$/,an=/^0o[0-7]+$/i,tn=/^(?:0|[1-9]\d*)$/,Ze=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zt=/($^)/,rn=/['\n\r\u2028\u2029\\]/g,Rt="\\ud800-\\udfff",gn="\\u0300-\\u036f",Xt="\\ufe20-\\ufe2f",wn="\\u20d0-\\u20ff",_o=gn+Xt+wn,Tl="\\u2700-\\u27bf",Dl="a-z\\xdf-\\xf6\\xf8-\\xff",Ks="\\xac\\xb1\\xd7\\xf7",ul="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ca="\\u2000-\\u206f",sc=" \\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",ps="A-Z\\xc0-\\xd6\\xd8-\\xde",Qd="\\ufe0e\\ufe0f",Sm=Ks+ul+ca+sc,kh="['\u2019]",Om="["+Rt+"]",Ah="["+Sm+"]",Sa="["+_o+"]",Ch="\\d+",Pv="["+Tl+"]",ku="["+Dl+"]",cl="[^"+Rt+Sm+Ch+Tl+Dl+ps+"]",dl="\\ud83c[\\udffb-\\udfff]",lf="(?:"+Sa+"|"+dl+")",Oa="[^"+Rt+"]",Ea="(?:\\ud83c[\\udde6-\\uddff]){2}",Sh="[\\ud800-\\udbff][\\udc00-\\udfff]",Kc="["+ps+"]",Em="\\u200d",Mm="(?:"+ku+"|"+cl+")",kv="(?:"+Kc+"|"+cl+")",Yc="(?:"+kh+"(?:d|ll|m|re|s|t|ve))?",uf="(?:"+kh+"(?:D|LL|M|RE|S|T|VE))?",Rl=lf+"?",cf="["+Qd+"]?",Av="(?:"+Em+"(?:"+[Oa,Ea,Sh].join("|")+")"+cf+Rl+")*",Bm="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Cv="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Oh=cf+Rl+Av,Sv="(?:"+[Pv,Ea,Sh].join("|")+")"+Oh,Nm="(?:"+[Oa+Sa+"?",Sa,Ea,Sh,Om].join("|")+")",Ov=RegExp(kh,"g"),Ev=RegExp(Sa,"g"),df=RegExp(dl+"(?="+dl+")|"+Nm+Oh,"g"),Mv=RegExp([Kc+"?"+ku+"+"+Yc+"(?="+[Ah,Kc,"$"].join("|")+")",kv+"+"+uf+"(?="+[Ah,Kc+Mm,"$"].join("|")+")",Kc+"?"+Mm+"+"+Yc,Kc+"+"+uf,Cv,Bm,Ch,Sv].join("|"),"g"),Au=RegExp("["+Em+Rt+_o+Qd+"]"),Bv=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Gm=["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"],ep=-1,Ni={};Ni[Xe]=Ni[mt]=Ni[fe]=Ni[be]=Ni[ye]=Ni[Oe]=Ni[Me]=Ni[Ke]=Ni[gt]=!0,Ni[U]=Ni[F]=Ni[$e]=Ni[L]=Ni[Le]=Ni[$]=Ni[se]=Ni[Y]=Ni[pe]=Ni[oe]=Ni[ve]=Ni[Ge]=Ni[Ee]=Ni[Ne]=Ni[Re]=!1;var gi={};gi[U]=gi[F]=gi[$e]=gi[Le]=gi[L]=gi[$]=gi[Xe]=gi[mt]=gi[fe]=gi[be]=gi[ye]=gi[pe]=gi[oe]=gi[ve]=gi[Ge]=gi[Ee]=gi[Ne]=gi[De]=gi[Oe]=gi[Me]=gi[Ke]=gi[gt]=!0,gi[se]=gi[Y]=gi[Re]=!1;var Nv={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},pf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Pn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Eh={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tp=parseFloat,Fm=parseInt,Im=typeof global=="object"&&global&&global.Object===Object&&global,zm=typeof self=="object"&&self&&self.Object===Object&&self,Wo=Im||zm||Function("return this")(),Mh=typeof $x=="object"&&$x&&!$x.nodeType&&$x,Cu=Mh&&typeof r7=="object"&&r7&&!r7.nodeType&&r7,Gi=Cu&&Cu.exports===Mh,Ll=Gi&&Im.process,fs=function(){try{var He=Cu&&Cu.require&&Cu.require("util").types;return He||Ll&&Ll.binding&&Ll.binding("util")}catch{}}(),Tm=fs&&fs.isArrayBuffer,Bh=fs&&fs.isDate,Gv=fs&&fs.isMap,Nh=fs&&fs.isRegExp,np=fs&&fs.isSet,Ma=fs&&fs.isTypedArray;function hs(He,st,tt){switch(tt.length){case 0:return He.call(st);case 1:return He.call(st,tt[0]);case 2:return He.call(st,tt[0],tt[1]);case 3:return He.call(st,tt[0],tt[1],tt[2])}return He.apply(st,tt)}function Dm(He,st,tt,Vt){for(var zn=-1,ei=He==null?0:He.length;++zn<ei;){var rs=He[zn];st(Vt,rs,tt(rs),He)}return Vt}function no(He,st){for(var tt=-1,Vt=He==null?0:He.length;++tt<Vt&&st(He[tt],tt,He)!==!1;);return He}function ff(He,st){for(var tt=He==null?0:He.length;tt--&&st(He[tt],tt,He)!==!1;);return He}function hf(He,st){for(var tt=-1,Vt=He==null?0:He.length;++tt<Vt;)if(!st(He[tt],tt,He))return!1;return!0}function Vl(He,st){for(var tt=-1,Vt=He==null?0:He.length,zn=0,ei=[];++tt<Vt;){var rs=He[tt];st(rs,tt,He)&&(ei[zn++]=rs)}return ei}function rp(He,st){var tt=He==null?0:He.length;return!!tt&&Se(He,st,0)>-1}function mf(He,st,tt){for(var Vt=-1,zn=He==null?0:He.length;++Vt<zn;)if(tt(st,He[Vt]))return!0;return!1}function li(He,st){for(var tt=-1,Vt=He==null?0:He.length,zn=Array(Vt);++tt<Vt;)zn[tt]=st(He[tt],tt,He);return zn}function Ba(He,st){for(var tt=-1,Vt=st.length,zn=He.length;++tt<Vt;)He[zn+tt]=st[tt];return He}function gf(He,st,tt,Vt){var zn=-1,ei=He==null?0:He.length;for(Vt&&ei&&(tt=He[++zn]);++zn<ei;)tt=st(tt,He[zn],zn,He);return tt}function Rm(He,st,tt,Vt){var zn=He==null?0:He.length;for(Vt&&zn&&(tt=He[--zn]);zn--;)tt=st(tt,He[zn],zn,He);return tt}function bo(He,st){for(var tt=-1,Vt=He==null?0:He.length;++tt<Vt;)if(st(He[tt],tt,He))return!0;return!1}var ip=qt("length");function Zc(He){return He.split("")}function le(He){return He.match(Qn)||[]}function q(He,st,tt){var Vt;return tt(He,function(zn,ei,rs){if(st(zn,ei,rs))return Vt=ei,!1}),Vt}function ae(He,st,tt,Vt){for(var zn=He.length,ei=tt+(Vt?1:-1);Vt?ei--:++ei<zn;)if(st(He[ei],ei,He))return ei;return-1}function Se(He,st,tt){return st===st?t6(He,st,tt):ae(He,ot,tt)}function Ie(He,st,tt,Vt){for(var zn=tt-1,ei=He.length;++zn<ei;)if(Vt(He[zn],st))return zn;return-1}function ot(He){return He!==He}function bt(He,st){var tt=He==null?0:He.length;return tt?ro(He,st)/tt:C}function qt(He){return function(st){return st==null?e:st[He]}}function kn(He){return function(st){return He==null?e:He[st]}}function Cr(He,st,tt,Vt,zn){return zn(He,function(ei,rs,Wn){tt=Vt?(Vt=!1,ei):st(tt,ei,rs,Wn)}),tt}function Br(He,st){var tt=He.length;for(He.sort(st);tt--;)He[tt]=He[tt].value;return He}function ro(He,st){for(var tt,Vt=-1,zn=He.length;++Vt<zn;){var ei=st(He[Vt]);ei!==e&&(tt=tt===e?ei:tt+ei)}return tt}function ac(He,st){for(var tt=-1,Vt=Array(He);++tt<He;)Vt[tt]=st(tt);return Vt}function Fv(He,st){return li(st,function(tt){return[tt,He[tt]]})}function vf(He){return He&&He.slice(0,Hm(He)+1).replace(ct,"")}function ms(He){return function(st){return He(st)}}function yf(He,st){return li(st,function(tt){return He[tt]})}function Uc(He,st){return He.has(st)}function vi(He,st){for(var tt=-1,Vt=He.length;++tt<Vt&&Se(st,He[tt],0)>-1;);return tt}function Lm(He,st){for(var tt=He.length;tt--&&Se(st,He[tt],0)>-1;);return tt}function xf(He,st){for(var tt=He.length,Vt=0;tt--;)He[tt]===st&&++Vt;return Vt}var Gh=kn(Nv),Vm=kn(pf);function Jm(He){return"\\"+Eh[He]}function Fh(He,st){return He==null?e:He[st]}function Ys(He){return Au.test(He)}function jm(He){return Bv.test(He)}function Iv(He){for(var st,tt=[];!(st=He.next()).done;)tt.push(st.value);return tt}function Ih(He){var st=-1,tt=Array(He.size);return He.forEach(function(Vt,zn){tt[++st]=[zn,Vt]}),tt}function op(He,st){return function(tt){return He(st(tt))}}function da(He,st){for(var tt=-1,Vt=He.length,zn=0,ei=[];++tt<Vt;){var rs=He[tt];(rs===st||rs===l)&&(He[tt]=l,ei[zn++]=tt)}return ei}function Su(He){var st=-1,tt=Array(He.size);return He.forEach(function(Vt){tt[++st]=Vt}),tt}function S5(He){var st=-1,tt=Array(He.size);return He.forEach(function(Vt){tt[++st]=[Vt,Vt]}),tt}function t6(He,st,tt){for(var Vt=tt-1,zn=He.length;++Vt<zn;)if(He[Vt]===st)return Vt;return-1}function O5(He,st,tt){for(var Vt=tt+1;Vt--;)if(He[Vt]===st)return Vt;return Vt}function lc(He){return Ys(He)?M5(He):ip(He)}function Zs(He){return Ys(He)?B5(He):Zc(He)}function Hm(He){for(var st=He.length;st--&&_n.test(He.charAt(st)););return st}var E5=kn(Pn);function M5(He){for(var st=df.lastIndex=0;df.test(He);)++st;return st}function B5(He){return He.match(df)||[]}function n6(He){return He.match(Mv)||[]}var N5=function He(st){st=st==null?Wo:Qc.defaults(Wo.Object(),st,Qc.pick(Wo,Gm));var tt=st.Array,Vt=st.Date,zn=st.Error,ei=st.Function,rs=st.Math,Wn=st.Object,Ou=st.RegExp,r6=st.String,Na=st.TypeError,zh=tt.prototype,i6=ei.prototype,_f=Wn.prototype,Th=st["__core-js_shared__"],Dh=i6.toString,yi=_f.hasOwnProperty,G5=0,pl=function(){var P=/[^.]+$/.exec(Th&&Th.keys&&Th.keys.IE_PROTO||"");return P?"Symbol(src)_1."+P:""}(),io=_f.toString,F5=Dh.call(Wn),I5=Wo._,z5=Ou("^"+Dh.call(yi).replace(ir,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Wm=Gi?st.Buffer:e,ed=st.Symbol,Xm=st.Uint8Array,o6=Wm?Wm.allocUnsafe:e,sp=op(Wn.getPrototypeOf,Wn),X=Wn.create,K=_f.propertyIsEnumerable,me=zh.splice,Fe=ed?ed.isConcatSpreadable:e,nt=ed?ed.iterator:e,on=ed?ed.toStringTag:e,xi=function(){try{var P=Wv(Wn,"defineProperty");return P({},"",{}),P}catch{}}(),Ga=st.clearTimeout!==Wo.clearTimeout&&st.clearTimeout,Us=Vt&&Vt.now!==Wo.Date.now&&Vt.now,bf=st.setTimeout!==Wo.setTimeout&&st.setTimeout,wf=rs.ceil,zv=rs.floor,s6=Wn.getOwnPropertySymbols,y9=Wm?Wm.isBuffer:e,Tv=st.isFinite,qm=zh.join,a6=op(Wn.keys,Wn),gs=rs.max,is=rs.min,x9=Vt.now,_9=st.parseInt,b9=rs.random,Jz=zh.reverse,T5=Wv(st,"DataView"),Dv=Wv(st,"Map"),D5=Wv(st,"Promise"),$m=Wv(st,"Set"),Rv=Wv(st,"WeakMap"),Lv=Wv(Wn,"create"),l6=Rv&&new Rv,Km={},jz=Xv(T5),Hz=Xv(Dv),Wz=Xv(D5),Xz=Xv($m),qz=Xv(Rv),u6=ed?ed.prototype:e,Vv=u6?u6.valueOf:e,w9=u6?u6.toString:e;function we(P){if(vs(P)&&!lr(P)&&!(P instanceof _r)){if(P instanceof Eu)return P;if(yi.call(P,"__wrapped__"))return qne(P)}return new Eu(P)}var Ym=function(){function P(){}return function(A){if(!os(A))return{};if(X)return X(A);P.prototype=A;var z=new P;return P.prototype=e,z}}();function c6(){}function Eu(P,A){this.__wrapped__=P,this.__actions__=[],this.__chain__=!!A,this.__index__=0,this.__values__=e}we.templateSettings={escape:jn,evaluate:Hn,interpolate:dn,variable:"",imports:{_:we}},we.prototype=c6.prototype,we.prototype.constructor=we,Eu.prototype=Ym(c6.prototype),Eu.prototype.constructor=Eu;function _r(P){this.__wrapped__=P,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=S,this.__views__=[]}function $z(){var P=new _r(this.__wrapped__);return P.__actions__=Bu(this.__actions__),P.__dir__=this.__dir__,P.__filtered__=this.__filtered__,P.__iteratees__=Bu(this.__iteratees__),P.__takeCount__=this.__takeCount__,P.__views__=Bu(this.__views__),P}function Kz(){if(this.__filtered__){var P=new _r(this);P.__dir__=-1,P.__filtered__=!0}else P=this.clone(),P.__dir__*=-1;return P}function Yz(){var P=this.__wrapped__.value(),A=this.__dir__,z=lr(P),te=A<0,ge=z?P.length:0,ke=nVe(0,ge,this.__views__),Te=ke.start,Je=ke.end,qe=Je-Te,dt=te?Je:Te-1,pt=this.__iteratees__,yt=pt.length,Tt=0,pn=is(qe,this.__takeCount__);if(!z||!te&&ge==qe&&pn==qe)return gne(P,this.__actions__);var Nn=[];e:for(;qe--&&Tt<pn;){dt+=A;for(var br=-1,Gn=P[dt];++br<yt;){var Lr=pt[br],ti=Lr.iteratee,pc=Lr.type,Wl=ti(Gn);if(pc==ee)Gn=Wl;else if(!Wl){if(pc==H)continue e;break e}}Nn[Tt++]=Gn}return Nn}_r.prototype=Ym(c6.prototype),_r.prototype.constructor=_r;function ap(P){var A=-1,z=P==null?0:P.length;for(this.clear();++A<z;){var te=P[A];this.set(te[0],te[1])}}function d6(){this.__data__=Lv?Lv(null):{},this.size=0}function Zz(P){var A=this.has(P)&&delete this.__data__[P];return this.size-=A?1:0,A}function Uz(P){var A=this.__data__;if(Lv){var z=A[P];return z===s?e:z}return yi.call(A,P)?A[P]:e}function Qz(P){var A=this.__data__;return Lv?A[P]!==e:yi.call(A,P)}function eT(P,A){var z=this.__data__;return this.size+=this.has(P)?0:1,z[P]=Lv&&A===e?s:A,this}ap.prototype.clear=d6,ap.prototype.delete=Zz,ap.prototype.get=Uz,ap.prototype.has=Qz,ap.prototype.set=eT;function lp(P){var A=-1,z=P==null?0:P.length;for(this.clear();++A<z;){var te=P[A];this.set(te[0],te[1])}}function tT(){this.__data__=[],this.size=0}function P9(P){var A=this.__data__,z=Mu(A,P);if(z<0)return!1;var te=A.length-1;return z==te?A.pop():me.call(A,z,1),--this.size,!0}function nT(P){var A=this.__data__,z=Mu(A,P);return z<0?e:A[z][1]}function rT(P){return Mu(this.__data__,P)>-1}function k9(P,A){var z=this.__data__,te=Mu(z,P);return te<0?(++this.size,z.push([P,A])):z[te][1]=A,this}lp.prototype.clear=tT,lp.prototype.delete=P9,lp.prototype.get=nT,lp.prototype.has=rT,lp.prototype.set=k9;function up(P){var A=-1,z=P==null?0:P.length;for(this.clear();++A<z;){var te=P[A];this.set(te[0],te[1])}}function iT(){this.size=0,this.__data__={hash:new ap,map:new(Dv||lp),string:new ap}}function oT(P){var A=H9(this,P).delete(P);return this.size-=A?1:0,A}function Pf(P){return H9(this,P).get(P)}function A9(P){return H9(this,P).has(P)}function sT(P,A){var z=H9(this,P),te=z.size;return z.set(P,A),this.size+=z.size==te?0:1,this}up.prototype.clear=iT,up.prototype.delete=oT,up.prototype.get=Pf,up.prototype.has=A9,up.prototype.set=sT;function Rh(P){var A=-1,z=P==null?0:P.length;for(this.__data__=new up;++A<z;)this.add(P[A])}function aT(P){return this.__data__.set(P,s),this}function wt(P){return this.__data__.has(P)}Rh.prototype.add=Rh.prototype.push=aT,Rh.prototype.has=wt;function uc(P){var A=this.__data__=new lp(P);this.size=A.size}function lT(){this.__data__=new lp,this.size=0}function C9(P){var A=this.__data__,z=A.delete(P);return this.size=A.size,z}function ui(P){return this.__data__.get(P)}function p6(P){return this.__data__.has(P)}function S9(P,A){var z=this.__data__;if(z instanceof lp){var te=z.__data__;if(!Dv||te.length<n-1)return te.push([P,A]),this.size=++z.size,this;z=this.__data__=new up(te)}return z.set(P,A),this.size=z.size,this}uc.prototype.clear=lT,uc.prototype.delete=C9,uc.prototype.get=ui,uc.prototype.has=p6,uc.prototype.set=S9;function f6(P,A){var z=lr(P),te=!z&&qv(P),ge=!z&&!te&&e1(P),ke=!z&&!te&&!ge&&x6(P),Te=z||te||ge||ke,Je=Te?ac(P.length,r6):[],qe=Je.length;for(var dt in P)(A||yi.call(P,dt))&&!(Te&&(dt=="length"||ge&&(dt=="offset"||dt=="parent")||ke&&(dt=="buffer"||dt=="byteLength"||dt=="byteOffset")||Hh(dt,qe)))&&Je.push(dt);return Je}function O9(P){var A=P.length;return A?P[wT(0,A-1)]:e}function uT(P,A){return W9(Bu(P),Lh(A,0,P.length))}function cT(P){return W9(Bu(P))}function R5(P,A,z){(z!==e&&!fp(P[A],z)||z===e&&!(A in P))&&cp(P,A,z)}function Jv(P,A,z){var te=P[A];(!(yi.call(P,A)&&fp(te,z))||z===e&&!(A in P))&&cp(P,A,z)}function Mu(P,A){for(var z=P.length;z--;)if(fp(P[z][0],A))return z;return-1}function dT(P,A,z,te){return kf(P,function(ge,ke,Te){A(te,ge,z(ge),Te)}),te}function L5(P,A){return P&&Cf(A,pa(A),P)}function pT(P,A){return P&&Cf(A,Gu(A),P)}function cp(P,A,z){A=="__proto__"&&xi?xi(P,A,{configurable:!0,enumerable:!0,value:z,writable:!0}):P[A]=z}function h6(P,A){for(var z=-1,te=A.length,ge=tt(te),ke=P==null;++z<te;)ge[z]=ke?e:qT(P,A[z]);return ge}function Lh(P,A,z){return P===P&&(z!==e&&(P=P<=z?P:z),A!==e&&(P=P>=A?P:A)),P}function Jl(P,A,z,te,ge,ke){var Te,Je=A&u,qe=A&c,dt=A&f;if(z&&(Te=ge?z(P,te,ge,ke):z(P)),Te!==e)return Te;if(!os(P))return P;var pt=lr(P);if(pt){if(Te=iVe(P),!Je)return Bu(P,Te)}else{var yt=fl(P),Tt=yt==Y||yt==ue;if(e1(P))return xne(P,Je);if(yt==ve||yt==U||Tt&&!ge){if(Te=qe||Tt?{}:Dne(P),!Je)return qe?qLe(P,pT(Te,P)):XLe(P,L5(Te,P))}else{if(!gi[yt])return ge?P:{};Te=oVe(P,yt,Je)}}ke||(ke=new uc);var pn=ke.get(P);if(pn)return pn;ke.set(P,Te),fre(P)?P.forEach(function(Gn){Te.add(Jl(Gn,A,z,Gn,P,ke))}):dre(P)&&P.forEach(function(Gn,Lr){Te.set(Lr,Jl(Gn,A,z,Lr,P,ke))});var Nn=dt?qe?GT:NT:qe?Gu:pa,br=pt?e:Nn(P);return no(br||P,function(Gn,Lr){br&&(Lr=Gn,Gn=P[Lr]),Jv(Te,Lr,Jl(Gn,A,z,Lr,P,ke))}),Te}function V5(P){var A=pa(P);return function(z){return E9(z,P,A)}}function E9(P,A,z){var te=z.length;if(P==null)return!te;for(P=Wn(P);te--;){var ge=z[te],ke=A[ge],Te=P[ge];if(Te===e&&!(ge in P)||!ke(Te))return!1}return!0}function M9(P,A,z){if(typeof P!="function")throw new Na(i);return Y5(function(){P.apply(e,z)},A)}function jl(P,A,z,te){var ge=-1,ke=rp,Te=!0,Je=P.length,qe=[],dt=A.length;if(!Je)return qe;z&&(A=li(A,ms(z))),te?(ke=mf,Te=!1):A.length>=n&&(ke=Uc,Te=!1,A=new Rh(A));e:for(;++ge<Je;){var pt=P[ge],yt=z==null?pt:z(pt);if(pt=te||pt!==0?pt:0,Te&&yt===yt){for(var Tt=dt;Tt--;)if(A[Tt]===yt)continue e;qe.push(pt)}else ke(A,yt,te)||qe.push(pt)}return qe}var kf=kne(td),B9=kne(j5,!0);function fT(P,A){var z=!0;return kf(P,function(te,ge,ke){return z=!!A(te,ge,ke),z}),z}function m6(P,A,z){for(var te=-1,ge=P.length;++te<ge;){var ke=P[te],Te=A(ke);if(Te!=null&&(Je===e?Te===Te&&!dc(Te):z(Te,Je)))var Je=Te,qe=ke}return qe}function hT(P,A,z,te){var ge=P.length;for(z=vr(z),z<0&&(z=-z>ge?0:ge+z),te=te===e||te>ge?ge:vr(te),te<0&&(te+=ge),te=z>te?0:mre(te);z<te;)P[z++]=A;return P}function N9(P,A){var z=[];return kf(P,function(te,ge,ke){A(te,ge,ke)&&z.push(te)}),z}function Qs(P,A,z,te,ge){var ke=-1,Te=P.length;for(z||(z=aVe),ge||(ge=[]);++ke<Te;){var Je=P[ke];A>0&&z(Je)?A>1?Qs(Je,A-1,z,te,ge):Ba(ge,Je):te||(ge[ge.length]=Je)}return ge}var J5=Ane(),G9=Ane(!0);function td(P,A){return P&&J5(P,A,pa)}function j5(P,A){return P&&G9(P,A,pa)}function nd(P,A){return Vl(A,function(z){return Wh(P[z])})}function Vh(P,A){A=Um(A,P);for(var z=0,te=A.length;P!=null&&z<te;)P=P[Sf(A[z++])];return z&&z==te?P:e}function F9(P,A,z){var te=A(P);return lr(P)?te:Ba(te,z(P))}function Fa(P){return P==null?P===e?Ue:de:on&&on in Wn(P)?tVe(P):hVe(P)}function H5(P,A){return P>A}function mT(P,A){return P!=null&&yi.call(P,A)}function gT(P,A){return P!=null&&A in Wn(P)}function vT(P,A,z){return P>=is(A,z)&&P<gs(A,z)}function W5(P,A,z){for(var te=z?mf:rp,ge=P[0].length,ke=P.length,Te=ke,Je=tt(ke),qe=1/0,dt=[];Te--;){var pt=P[Te];Te&&A&&(pt=li(pt,ms(A))),qe=is(pt.length,qe),Je[Te]=!z&&(A||ge>=120&&pt.length>=120)?new Rh(Te&&pt):e}pt=P[0];var yt=-1,Tt=Je[0];e:for(;++yt<ge&&dt.length<qe;){var pn=pt[yt],Nn=A?A(pn):pn;if(pn=z||pn!==0?pn:0,!(Tt?Uc(Tt,Nn):te(dt,Nn,z))){for(Te=ke;--Te;){var br=Je[Te];if(!(br?Uc(br,Nn):te(P[Te],Nn,z)))continue e}Tt&&Tt.push(Nn),dt.push(pn)}}return dt}function dp(P,A,z,te){return td(P,function(ge,ke,Te){A(te,z(ge),ke,Te)}),te}function rd(P,A,z){A=Um(A,P),P=Jne(P,A);var te=P==null?P:P[Sf(sd(A))];return te==null?e:hs(te,P,z)}function I9(P){return vs(P)&&Fa(P)==U}function yT(P){return vs(P)&&Fa(P)==$e}function xT(P){return vs(P)&&Fa(P)==$}function jv(P,A,z,te,ge){return P===A?!0:P==null||A==null||!vs(P)&&!vs(A)?P!==P&&A!==A:_T(P,A,z,te,jv,ge)}function _T(P,A,z,te,ge,ke){var Te=lr(P),Je=lr(A),qe=Te?F:fl(P),dt=Je?F:fl(A);qe=qe==U?ve:qe,dt=dt==U?ve:dt;var pt=qe==ve,yt=dt==ve,Tt=qe==dt;if(Tt&&e1(P)){if(!e1(A))return!1;Te=!0,pt=!1}if(Tt&&!pt)return ke||(ke=new uc),Te||x6(P)?Ine(P,A,z,te,ge,ke):QLe(P,A,qe,z,te,ge,ke);if(!(z&d)){var pn=pt&&yi.call(P,"__wrapped__"),Nn=yt&&yi.call(A,"__wrapped__");if(pn||Nn){var br=pn?P.value():P,Gn=Nn?A.value():A;return ke||(ke=new uc),ge(br,Gn,z,te,ke)}}return Tt?(ke||(ke=new uc),eVe(P,A,z,te,ge,ke)):!1}function X5(P){return vs(P)&&fl(P)==pe}function Af(P,A,z,te){var ge=z.length,ke=ge,Te=!te;if(P==null)return!ke;for(P=Wn(P);ge--;){var Je=z[ge];if(Te&&Je[2]?Je[1]!==P[Je[0]]:!(Je[0]in P))return!1}for(;++ge<ke;){Je=z[ge];var qe=Je[0],dt=P[qe],pt=Je[1];if(Te&&Je[2]){if(dt===e&&!(qe in P))return!1}else{var yt=new uc;if(te)var Tt=te(dt,pt,qe,P,A,yt);if(!(Tt===e?jv(pt,dt,d|h,te,yt):Tt))return!1}}return!0}function Hv(P){if(!os(P)||uVe(P))return!1;var A=Wh(P)?z5:We;return A.test(Xv(P))}function Kr(P){return vs(P)&&Fa(P)==Ge}function E(P){return vs(P)&&fl(P)==Ee}function R(P){return vs(P)&&Z9(P.length)&&!!Ni[Fa(P)]}function re(P){return typeof P=="function"?P:P==null?Fu:typeof P=="object"?lr(P)?ar(P[0],P[1]):mn(P):Cre(P)}function ce(P){if(!K5(P))return a6(P);var A=[];for(var z in Wn(P))yi.call(P,z)&&z!="constructor"&&A.push(z);return A}function xe(P){if(!os(P))return fVe(P);var A=K5(P),z=[];for(var te in P)te=="constructor"&&(A||!yi.call(P,te))||z.push(te);return z}function Ve(P,A){return P<A}function it(P,A){var z=-1,te=Nu(P)?tt(P.length):[];return kf(P,function(ge,ke,Te){te[++z]=A(ge,ke,Te)}),te}function mn(P){var A=IT(P);return A.length==1&&A[0][2]?Lne(A[0][0],A[0][1]):function(z){return z===P||Af(z,P,A)}}function ar(P,A){return TT(P)&&Rne(A)?Lne(Sf(P),A):function(z){var te=qT(z,P);return te===e&&te===A?$T(z,P):jv(A,te,d|h)}}function _i(P,A,z,te,ge){P!==A&&J5(A,function(ke,Te){if(ge||(ge=new uc),os(ke))Ia(P,A,Te,z,_i,te,ge);else{var Je=te?te(RT(P,Te),ke,Te+"",P,A,ge):e;Je===e&&(Je=ke),R5(P,Te,Je)}},Gu)}function Ia(P,A,z,te,ge,ke,Te){var Je=RT(P,z),qe=RT(A,z),dt=Te.get(qe);if(dt){R5(P,z,dt);return}var pt=ke?ke(Je,qe,z+"",P,A,Te):e,yt=pt===e;if(yt){var Tt=lr(qe),pn=!Tt&&e1(qe),Nn=!Tt&&!pn&&x6(qe);pt=qe,Tt||pn||Nn?lr(Je)?pt=Je:Os(Je)?pt=Bu(Je):pn?(yt=!1,pt=xne(qe,!0)):Nn?(yt=!1,pt=_ne(qe,!0)):pt=[]:Z5(qe)||qv(qe)?(pt=Je,qv(Je)?pt=gre(Je):(!os(Je)||Wh(Je))&&(pt=Dne(qe))):yt=!1}yt&&(Te.set(qe,pt),ge(pt,qe,te,ke,Te),Te.delete(qe)),R5(P,z,pt)}function id(P,A){var z=P.length;if(!!z)return A+=A<0?z:0,Hh(A,z)?P[A]:e}function pp(P,A,z){A.length?A=li(A,function(ke){return lr(ke)?function(Te){return Vh(Te,ke.length===1?ke[0]:ke)}:ke}):A=[Fu];var te=-1;A=li(A,ms(En()));var ge=it(P,function(ke,Te,Je){var qe=li(A,function(dt){return dt(ke)});return{criteria:qe,index:++te,value:ke}});return Br(ge,function(ke,Te){return WLe(ke,Te,z)})}function GLe(P,A){return cne(P,A,function(z,te){return $T(P,te)})}function cne(P,A,z){for(var te=-1,ge=A.length,ke={};++te<ge;){var Te=A[te],Je=Vh(P,Te);z(Je,Te)&&q5(ke,Um(Te,P),Je)}return ke}function FLe(P){return function(A){return Vh(A,P)}}function bT(P,A,z,te){var ge=te?Ie:Se,ke=-1,Te=A.length,Je=P;for(P===A&&(A=Bu(A)),z&&(Je=li(P,ms(z)));++ke<Te;)for(var qe=0,dt=A[ke],pt=z?z(dt):dt;(qe=ge(Je,pt,qe,te))>-1;)Je!==P&&me.call(Je,qe,1),me.call(P,qe,1);return P}function dne(P,A){for(var z=P?A.length:0,te=z-1;z--;){var ge=A[z];if(z==te||ge!==ke){var ke=ge;Hh(ge)?me.call(P,ge,1):AT(P,ge)}}return P}function wT(P,A){return P+zv(b9()*(A-P+1))}function ILe(P,A,z,te){for(var ge=-1,ke=gs(wf((A-P)/(z||1)),0),Te=tt(ke);ke--;)Te[te?ke:++ge]=P,P+=z;return Te}function PT(P,A){var z="";if(!P||A<1||A>B)return z;do A%2&&(z+=P),A=zv(A/2),A&&(P+=P);while(A);return z}function Sr(P,A){return LT(Vne(P,A,Fu),P+"")}function zLe(P){return O9(_6(P))}function TLe(P,A){var z=_6(P);return W9(z,Lh(A,0,z.length))}function q5(P,A,z,te){if(!os(P))return P;A=Um(A,P);for(var ge=-1,ke=A.length,Te=ke-1,Je=P;Je!=null&&++ge<ke;){var qe=Sf(A[ge]),dt=z;if(qe==="__proto__"||qe==="constructor"||qe==="prototype")return P;if(ge!=Te){var pt=Je[qe];dt=te?te(pt,qe,Je):e,dt===e&&(dt=os(pt)?pt:Hh(A[ge+1])?[]:{})}Jv(Je,qe,dt),Je=Je[qe]}return P}var pne=l6?function(P,A){return l6.set(P,A),P}:Fu,DLe=xi?function(P,A){return xi(P,"toString",{configurable:!0,enumerable:!1,value:ZT(A),writable:!0})}:Fu;function RLe(P){return W9(_6(P))}function od(P,A,z){var te=-1,ge=P.length;A<0&&(A=-A>ge?0:ge+A),z=z>ge?ge:z,z<0&&(z+=ge),ge=A>z?0:z-A>>>0,A>>>=0;for(var ke=tt(ge);++te<ge;)ke[te]=P[te+A];return ke}function LLe(P,A){var z;return kf(P,function(te,ge,ke){return z=A(te,ge,ke),!z}),!!z}function z9(P,A,z){var te=0,ge=P==null?te:P.length;if(typeof A=="number"&&A===A&&ge<=T){for(;te<ge;){var ke=te+ge>>>1,Te=P[ke];Te!==null&&!dc(Te)&&(z?Te<=A:Te<A)?te=ke+1:ge=ke}return ge}return kT(P,A,Fu,z)}function kT(P,A,z,te){var ge=0,ke=P==null?0:P.length;if(ke===0)return 0;A=z(A);for(var Te=A!==A,Je=A===null,qe=dc(A),dt=A===e;ge<ke;){var pt=zv((ge+ke)/2),yt=z(P[pt]),Tt=yt!==e,pn=yt===null,Nn=yt===yt,br=dc(yt);if(Te)var Gn=te||Nn;else dt?Gn=Nn&&(te||Tt):Je?Gn=Nn&&Tt&&(te||!pn):qe?Gn=Nn&&Tt&&!pn&&(te||!br):pn||br?Gn=!1:Gn=te?yt<=A:yt<A;Gn?ge=pt+1:ke=pt}return is(ke,G)}function fne(P,A){for(var z=-1,te=P.length,ge=0,ke=[];++z<te;){var Te=P[z],Je=A?A(Te):Te;if(!z||!fp(Je,qe)){var qe=Je;ke[ge++]=Te===0?0:Te}}return ke}function hne(P){return typeof P=="number"?P:dc(P)?C:+P}function cc(P){if(typeof P=="string")return P;if(lr(P))return li(P,cc)+"";if(dc(P))return w9?w9.call(P):"";var A=P+"";return A=="0"&&1/P==-V?"-0":A}function Zm(P,A,z){var te=-1,ge=rp,ke=P.length,Te=!0,Je=[],qe=Je;if(z)Te=!1,ge=mf;else if(ke>=n){var dt=A?null:ZLe(P);if(dt)return Su(dt);Te=!1,ge=Uc,qe=new Rh}else qe=A?[]:Je;e:for(;++te<ke;){var pt=P[te],yt=A?A(pt):pt;if(pt=z||pt!==0?pt:0,Te&&yt===yt){for(var Tt=qe.length;Tt--;)if(qe[Tt]===yt)continue e;A&&qe.push(yt),Je.push(pt)}else ge(qe,yt,z)||(qe!==Je&&qe.push(yt),Je.push(pt))}return Je}function AT(P,A){return A=Um(A,P),P=Jne(P,A),P==null||delete P[Sf(sd(A))]}function mne(P,A,z,te){return q5(P,A,z(Vh(P,A)),te)}function T9(P,A,z,te){for(var ge=P.length,ke=te?ge:-1;(te?ke--:++ke<ge)&&A(P[ke],ke,P););return z?od(P,te?0:ke,te?ke+1:ge):od(P,te?ke+1:0,te?ge:ke)}function gne(P,A){var z=P;return z instanceof _r&&(z=z.value()),gf(A,function(te,ge){return ge.func.apply(ge.thisArg,Ba([te],ge.args))},z)}function CT(P,A,z){var te=P.length;if(te<2)return te?Zm(P[0]):[];for(var ge=-1,ke=tt(te);++ge<te;)for(var Te=P[ge],Je=-1;++Je<te;)Je!=ge&&(ke[ge]=jl(ke[ge]||Te,P[Je],A,z));return Zm(Qs(ke,1),A,z)}function vne(P,A,z){for(var te=-1,ge=P.length,ke=A.length,Te={};++te<ge;){var Je=te<ke?A[te]:e;z(Te,P[te],Je)}return Te}function ST(P){return Os(P)?P:[]}function OT(P){return typeof P=="function"?P:Fu}function Um(P,A){return lr(P)?P:TT(P,A)?[P]:Xne(ji(P))}var VLe=Sr;function Qm(P,A,z){var te=P.length;return z=z===e?te:z,!A&&z>=te?P:od(P,A,z)}var yne=Ga||function(P){return Wo.clearTimeout(P)};function xne(P,A){if(A)return P.slice();var z=P.length,te=o6?o6(z):new P.constructor(z);return P.copy(te),te}function ET(P){var A=new P.constructor(P.byteLength);return new Xm(A).set(new Xm(P)),A}function JLe(P,A){var z=A?ET(P.buffer):P.buffer;return new P.constructor(z,P.byteOffset,P.byteLength)}function jLe(P){var A=new P.constructor(P.source,co.exec(P));return A.lastIndex=P.lastIndex,A}function HLe(P){return Vv?Wn(Vv.call(P)):{}}function _ne(P,A){var z=A?ET(P.buffer):P.buffer;return new P.constructor(z,P.byteOffset,P.length)}function bne(P,A){if(P!==A){var z=P!==e,te=P===null,ge=P===P,ke=dc(P),Te=A!==e,Je=A===null,qe=A===A,dt=dc(A);if(!Je&&!dt&&!ke&&P>A||ke&&Te&&qe&&!Je&&!dt||te&&Te&&qe||!z&&qe||!ge)return 1;if(!te&&!ke&&!dt&&P<A||dt&&z&&ge&&!te&&!ke||Je&&z&&ge||!Te&&ge||!qe)return-1}return 0}function WLe(P,A,z){for(var te=-1,ge=P.criteria,ke=A.criteria,Te=ge.length,Je=z.length;++te<Te;){var qe=bne(ge[te],ke[te]);if(qe){if(te>=Je)return qe;var dt=z[te];return qe*(dt=="desc"?-1:1)}}return P.index-A.index}function wne(P,A,z,te){for(var ge=-1,ke=P.length,Te=z.length,Je=-1,qe=A.length,dt=gs(ke-Te,0),pt=tt(qe+dt),yt=!te;++Je<qe;)pt[Je]=A[Je];for(;++ge<Te;)(yt||ge<ke)&&(pt[z[ge]]=P[ge]);for(;dt--;)pt[Je++]=P[ge++];return pt}function Pne(P,A,z,te){for(var ge=-1,ke=P.length,Te=-1,Je=z.length,qe=-1,dt=A.length,pt=gs(ke-Je,0),yt=tt(pt+dt),Tt=!te;++ge<pt;)yt[ge]=P[ge];for(var pn=ge;++qe<dt;)yt[pn+qe]=A[qe];for(;++Te<Je;)(Tt||ge<ke)&&(yt[pn+z[Te]]=P[ge++]);return yt}function Bu(P,A){var z=-1,te=P.length;for(A||(A=tt(te));++z<te;)A[z]=P[z];return A}function Cf(P,A,z,te){var ge=!z;z||(z={});for(var ke=-1,Te=A.length;++ke<Te;){var Je=A[ke],qe=te?te(z[Je],P[Je],Je,z,P):e;qe===e&&(qe=P[Je]),ge?cp(z,Je,qe):Jv(z,Je,qe)}return z}function XLe(P,A){return Cf(P,zT(P),A)}function qLe(P,A){return Cf(P,zne(P),A)}function D9(P,A){return function(z,te){var ge=lr(z)?Dm:dT,ke=A?A():{};return ge(z,P,En(te,2),ke)}}function g6(P){return Sr(function(A,z){var te=-1,ge=z.length,ke=ge>1?z[ge-1]:e,Te=ge>2?z[2]:e;for(ke=P.length>3&&typeof ke=="function"?(ge--,ke):e,Te&&Hl(z[0],z[1],Te)&&(ke=ge<3?e:ke,ge=1),A=Wn(A);++te<ge;){var Je=z[te];Je&&P(A,Je,te,ke)}return A})}function kne(P,A){return function(z,te){if(z==null)return z;if(!Nu(z))return P(z,te);for(var ge=z.length,ke=A?ge:-1,Te=Wn(z);(A?ke--:++ke<ge)&&te(Te[ke],ke,Te)!==!1;);return z}}function Ane(P){return function(A,z,te){for(var ge=-1,ke=Wn(A),Te=te(A),Je=Te.length;Je--;){var qe=Te[P?Je:++ge];if(z(ke[qe],qe,ke)===!1)break}return A}}function $Le(P,A,z){var te=A&m,ge=$5(P);function ke(){var Te=this&&this!==Wo&&this instanceof ke?ge:P;return Te.apply(te?z:this,arguments)}return ke}function Cne(P){return function(A){A=ji(A);var z=Ys(A)?Zs(A):e,te=z?z[0]:A.charAt(0),ge=z?Qm(z,1).join(""):A.slice(1);return te[P]()+ge}}function v6(P){return function(A){return gf(kre(Pre(A).replace(Ov,"")),P,"")}}function $5(P){return function(){var A=arguments;switch(A.length){case 0:return new P;case 1:return new P(A[0]);case 2:return new P(A[0],A[1]);case 3:return new P(A[0],A[1],A[2]);case 4:return new P(A[0],A[1],A[2],A[3]);case 5:return new P(A[0],A[1],A[2],A[3],A[4]);case 6:return new P(A[0],A[1],A[2],A[3],A[4],A[5]);case 7:return new P(A[0],A[1],A[2],A[3],A[4],A[5],A[6])}var z=Ym(P.prototype),te=P.apply(z,A);return os(te)?te:z}}function KLe(P,A,z){var te=$5(P);function ge(){for(var ke=arguments.length,Te=tt(ke),Je=ke,qe=y6(ge);Je--;)Te[Je]=arguments[Je];var dt=ke<3&&Te[0]!==qe&&Te[ke-1]!==qe?[]:da(Te,qe);if(ke-=dt.length,ke<z)return Bne(P,A,R9,ge.placeholder,e,Te,dt,e,e,z-ke);var pt=this&&this!==Wo&&this instanceof ge?te:P;return hs(pt,this,Te)}return ge}function Sne(P){return function(A,z,te){var ge=Wn(A);if(!Nu(A)){var ke=En(z,3);A=pa(A),z=function(Je){return ke(ge[Je],Je,ge)}}var Te=P(A,z,te);return Te>-1?ge[ke?A[Te]:Te]:e}}function One(P){return jh(function(A){var z=A.length,te=z,ge=Eu.prototype.thru;for(P&&A.reverse();te--;){var ke=A[te];if(typeof ke!="function")throw new Na(i);if(ge&&!Te&&j9(ke)=="wrapper")var Te=new Eu([],!0)}for(te=Te?te:z;++te<z;){ke=A[te];var Je=j9(ke),qe=Je=="wrapper"?FT(ke):e;qe&&DT(qe[0])&&qe[1]==(w|v|y|k)&&!qe[4].length&&qe[9]==1?Te=Te[j9(qe[0])].apply(Te,qe[3]):Te=ke.length==1&&DT(ke)?Te[Je]():Te.thru(ke)}return function(){var dt=arguments,pt=dt[0];if(Te&&dt.length==1&&lr(pt))return Te.plant(pt).value();for(var yt=0,Tt=z?A[yt].apply(this,dt):pt;++yt<z;)Tt=A[yt].call(this,Tt);return Tt}})}function R9(P,A,z,te,ge,ke,Te,Je,qe,dt){var pt=A&w,yt=A&m,Tt=A&g,pn=A&(v|x),Nn=A&O,br=Tt?e:$5(P);function Gn(){for(var Lr=arguments.length,ti=tt(Lr),pc=Lr;pc--;)ti[pc]=arguments[pc];if(pn)var Wl=y6(Gn),fc=xf(ti,Wl);if(te&&(ti=wne(ti,te,ge,pn)),ke&&(ti=Pne(ti,ke,Te,pn)),Lr-=fc,pn&&Lr<dt){var Es=da(ti,Wl);return Bne(P,A,R9,Gn.placeholder,z,ti,Es,Je,qe,dt-Lr)}var hp=yt?z:this,qh=Tt?hp[P]:P;return Lr=ti.length,Je?ti=mVe(ti,Je):Nn&&Lr>1&&ti.reverse(),pt&&qe<Lr&&(ti.length=qe),this&&this!==Wo&&this instanceof Gn&&(qh=br||$5(qh)),qh.apply(hp,ti)}return Gn}function Ene(P,A){return function(z,te){return dp(z,P,A(te),{})}}function L9(P,A){return function(z,te){var ge;if(z===e&&te===e)return A;if(z!==e&&(ge=z),te!==e){if(ge===e)return te;typeof z=="string"||typeof te=="string"?(z=cc(z),te=cc(te)):(z=hne(z),te=hne(te)),ge=P(z,te)}return ge}}function MT(P){return jh(function(A){return A=li(A,ms(En())),Sr(function(z){var te=this;return P(A,function(ge){return hs(ge,te,z)})})})}function V9(P,A){A=A===e?" ":cc(A);var z=A.length;if(z<2)return z?PT(A,P):A;var te=PT(A,wf(P/lc(A)));return Ys(A)?Qm(Zs(te),0,P).join(""):te.slice(0,P)}function YLe(P,A,z,te){var ge=A&m,ke=$5(P);function Te(){for(var Je=-1,qe=arguments.length,dt=-1,pt=te.length,yt=tt(pt+qe),Tt=this&&this!==Wo&&this instanceof Te?ke:P;++dt<pt;)yt[dt]=te[dt];for(;qe--;)yt[dt++]=arguments[++Je];return hs(Tt,ge?z:this,yt)}return Te}function Mne(P){return function(A,z,te){return te&&typeof te!="number"&&Hl(A,z,te)&&(z=te=e),A=Xh(A),z===e?(z=A,A=0):z=Xh(z),te=te===e?A<z?1:-1:Xh(te),ILe(A,z,te,P)}}function J9(P){return function(A,z){return typeof A=="string"&&typeof z=="string"||(A=ad(A),z=ad(z)),P(A,z)}}function Bne(P,A,z,te,ge,ke,Te,Je,qe,dt){var pt=A&v,yt=pt?Te:e,Tt=pt?e:Te,pn=pt?ke:e,Nn=pt?e:ke;A|=pt?y:_,A&=~(pt?_:y),A&b||(A&=~(m|g));var br=[P,A,ge,pn,yt,Nn,Tt,Je,qe,dt],Gn=z.apply(e,br);return DT(P)&&jne(Gn,br),Gn.placeholder=te,Hne(Gn,P,A)}function BT(P){var A=rs[P];return function(z,te){if(z=ad(z),te=te==null?0:is(vr(te),292),te&&Tv(z)){var ge=(ji(z)+"e").split("e"),ke=A(ge[0]+"e"+(+ge[1]+te));return ge=(ji(ke)+"e").split("e"),+(ge[0]+"e"+(+ge[1]-te))}return A(z)}}var ZLe=$m&&1/Su(new $m([,-0]))[1]==V?function(P){return new $m(P)}:eD;function Nne(P){return function(A){var z=fl(A);return z==pe?Ih(A):z==Ee?S5(A):Fv(A,P(A))}}function Jh(P,A,z,te,ge,ke,Te,Je){var qe=A&g;if(!qe&&typeof P!="function")throw new Na(i);var dt=te?te.length:0;if(dt||(A&=~(y|_),te=ge=e),Te=Te===e?Te:gs(vr(Te),0),Je=Je===e?Je:vr(Je),dt-=ge?ge.length:0,A&_){var pt=te,yt=ge;te=ge=e}var Tt=qe?e:FT(P),pn=[P,A,z,te,ge,pt,yt,ke,Te,Je];if(Tt&&pVe(pn,Tt),P=pn[0],A=pn[1],z=pn[2],te=pn[3],ge=pn[4],Je=pn[9]=pn[9]===e?qe?0:P.length:gs(pn[9]-dt,0),!Je&&A&(v|x)&&(A&=~(v|x)),!A||A==m)var Nn=$Le(P,A,z);else A==v||A==x?Nn=KLe(P,A,Je):(A==y||A==(m|y))&&!ge.length?Nn=YLe(P,A,z,te):Nn=R9.apply(e,pn);var br=Tt?pne:jne;return Hne(br(Nn,pn),P,A)}function Gne(P,A,z,te){return P===e||fp(P,_f[z])&&!yi.call(te,z)?A:P}function Fne(P,A,z,te,ge,ke){return os(P)&&os(A)&&(ke.set(A,P),_i(P,A,e,Fne,ke),ke.delete(A)),P}function ULe(P){return Z5(P)?e:P}function Ine(P,A,z,te,ge,ke){var Te=z&d,Je=P.length,qe=A.length;if(Je!=qe&&!(Te&&qe>Je))return!1;var dt=ke.get(P),pt=ke.get(A);if(dt&&pt)return dt==A&&pt==P;var yt=-1,Tt=!0,pn=z&h?new Rh:e;for(ke.set(P,A),ke.set(A,P);++yt<Je;){var Nn=P[yt],br=A[yt];if(te)var Gn=Te?te(br,Nn,yt,A,P,ke):te(Nn,br,yt,P,A,ke);if(Gn!==e){if(Gn)continue;Tt=!1;break}if(pn){if(!bo(A,function(Lr,ti){if(!Uc(pn,ti)&&(Nn===Lr||ge(Nn,Lr,z,te,ke)))return pn.push(ti)})){Tt=!1;break}}else if(!(Nn===br||ge(Nn,br,z,te,ke))){Tt=!1;break}}return ke.delete(P),ke.delete(A),Tt}function QLe(P,A,z,te,ge,ke,Te){switch(z){case Le:if(P.byteLength!=A.byteLength||P.byteOffset!=A.byteOffset)return!1;P=P.buffer,A=A.buffer;case $e:return!(P.byteLength!=A.byteLength||!ke(new Xm(P),new Xm(A)));case L:case $:case oe:return fp(+P,+A);case se:return P.name==A.name&&P.message==A.message;case Ge:case Ne:return P==A+"";case pe:var Je=Ih;case Ee:var qe=te&d;if(Je||(Je=Su),P.size!=A.size&&!qe)return!1;var dt=Te.get(P);if(dt)return dt==A;te|=h,Te.set(P,A);var pt=Ine(Je(P),Je(A),te,ge,ke,Te);return Te.delete(P),pt;case De:if(Vv)return Vv.call(P)==Vv.call(A)}return!1}function eVe(P,A,z,te,ge,ke){var Te=z&d,Je=NT(P),qe=Je.length,dt=NT(A),pt=dt.length;if(qe!=pt&&!Te)return!1;for(var yt=qe;yt--;){var Tt=Je[yt];if(!(Te?Tt in A:yi.call(A,Tt)))return!1}var pn=ke.get(P),Nn=ke.get(A);if(pn&&Nn)return pn==A&&Nn==P;var br=!0;ke.set(P,A),ke.set(A,P);for(var Gn=Te;++yt<qe;){Tt=Je[yt];var Lr=P[Tt],ti=A[Tt];if(te)var pc=Te?te(ti,Lr,Tt,A,P,ke):te(Lr,ti,Tt,P,A,ke);if(!(pc===e?Lr===ti||ge(Lr,ti,z,te,ke):pc)){br=!1;break}Gn||(Gn=Tt=="constructor")}if(br&&!Gn){var Wl=P.constructor,fc=A.constructor;Wl!=fc&&"constructor"in P&&"constructor"in A&&!(typeof Wl=="function"&&Wl instanceof Wl&&typeof fc=="function"&&fc instanceof fc)&&(br=!1)}return ke.delete(P),ke.delete(A),br}function jh(P){return LT(Vne(P,e,Yne),P+"")}function NT(P){return F9(P,pa,zT)}function GT(P){return F9(P,Gu,zne)}var FT=l6?function(P){return l6.get(P)}:eD;function j9(P){for(var A=P.name+"",z=Km[A],te=yi.call(Km,A)?z.length:0;te--;){var ge=z[te],ke=ge.func;if(ke==null||ke==P)return ge.name}return A}function y6(P){var A=yi.call(we,"placeholder")?we:P;return A.placeholder}function En(){var P=we.iteratee||UT;return P=P===UT?re:P,arguments.length?P(arguments[0],arguments[1]):P}function H9(P,A){var z=P.__data__;return lVe(A)?z[typeof A=="string"?"string":"hash"]:z.map}function IT(P){for(var A=pa(P),z=A.length;z--;){var te=A[z],ge=P[te];A[z]=[te,ge,Rne(ge)]}return A}function Wv(P,A){var z=Fh(P,A);return Hv(z)?z:e}function tVe(P){var A=yi.call(P,on),z=P[on];try{P[on]=e;var te=!0}catch{}var ge=io.call(P);return te&&(A?P[on]=z:delete P[on]),ge}var zT=s6?function(P){return P==null?[]:(P=Wn(P),Vl(s6(P),function(A){return K.call(P,A)}))}:tD,zne=s6?function(P){for(var A=[];P;)Ba(A,zT(P)),P=sp(P);return A}:tD,fl=Fa;(T5&&fl(new T5(new ArrayBuffer(1)))!=Le||Dv&&fl(new Dv)!=pe||D5&&fl(D5.resolve())!=Ae||$m&&fl(new $m)!=Ee||Rv&&fl(new Rv)!=Re)&&(fl=function(P){var A=Fa(P),z=A==ve?P.constructor:e,te=z?Xv(z):"";if(te)switch(te){case jz:return Le;case Hz:return pe;case Wz:return Ae;case Xz:return Ee;case qz:return Re}return A});function nVe(P,A,z){for(var te=-1,ge=z.length;++te<ge;){var ke=z[te],Te=ke.size;switch(ke.type){case"drop":P+=Te;break;case"dropRight":A-=Te;break;case"take":A=is(A,P+Te);break;case"takeRight":P=gs(P,A-Te);break}}return{start:P,end:A}}function rVe(P){var A=P.match(or);return A?A[1].split(bn):[]}function Tne(P,A,z){A=Um(A,P);for(var te=-1,ge=A.length,ke=!1;++te<ge;){var Te=Sf(A[te]);if(!(ke=P!=null&&z(P,Te)))break;P=P[Te]}return ke||++te!=ge?ke:(ge=P==null?0:P.length,!!ge&&Z9(ge)&&Hh(Te,ge)&&(lr(P)||qv(P)))}function iVe(P){var A=P.length,z=new P.constructor(A);return A&&typeof P[0]=="string"&&yi.call(P,"index")&&(z.index=P.index,z.input=P.input),z}function Dne(P){return typeof P.constructor=="function"&&!K5(P)?Ym(sp(P)):{}}function oVe(P,A,z){var te=P.constructor;switch(A){case $e:return ET(P);case L:case $:return new te(+P);case Le:return JLe(P,z);case Xe:case mt:case fe:case be:case ye:case Oe:case Me:case Ke:case gt:return _ne(P,z);case pe:return new te;case oe:case Ne:return new te(P);case Ge:return jLe(P);case Ee:return new te;case De:return HLe(P)}}function sVe(P,A){var z=A.length;if(!z)return P;var te=z-1;return A[te]=(z>1?"& ":"")+A[te],A=A.join(z>2?", ":" "),P.replace(Oi,`{
/* [wrapped with `+A+`] */
`)}function aVe(P){return lr(P)||qv(P)||!!(Fe&&P&&P[Fe])}function Hh(P,A){var z=typeof P;return A=A??B,!!A&&(z=="number"||z!="symbol"&&tn.test(P))&&P>-1&&P%1==0&&P<A}function Hl(P,A,z){if(!os(z))return!1;var te=typeof A;return(te=="number"?Nu(z)&&Hh(A,z.length):te=="string"&&A in z)?fp(z[A],P):!1}function TT(P,A){if(lr(P))return!1;var z=typeof P;return z=="number"||z=="symbol"||z=="boolean"||P==null||dc(P)?!0:Bn.test(P)||!cr.test(P)||A!=null&&P in Wn(A)}function lVe(P){var A=typeof P;return A=="string"||A=="number"||A=="symbol"||A=="boolean"?P!=="__proto__":P===null}function DT(P){var A=j9(P),z=we[A];if(typeof z!="function"||!(A in _r.prototype))return!1;if(P===z)return!0;var te=FT(z);return!!te&&P===te[0]}function uVe(P){return!!pl&&pl in P}var cVe=Th?Wh:nD;function K5(P){var A=P&&P.constructor,z=typeof A=="function"&&A.prototype||_f;return P===z}function Rne(P){return P===P&&!os(P)}function Lne(P,A){return function(z){return z==null?!1:z[P]===A&&(A!==e||P in Wn(z))}}function dVe(P){var A=K9(P,function(te){return z.size===a&&z.clear(),te}),z=A.cache;return A}function pVe(P,A){var z=P[1],te=A[1],ge=z|te,ke=ge<(m|g|w),Te=te==w&&z==v||te==w&&z==k&&P[7].length<=A[8]||te==(w|k)&&A[7].length<=A[8]&&z==v;if(!(ke||Te))return P;te&m&&(P[2]=A[2],ge|=z&m?0:b);var Je=A[3];if(Je){var qe=P[3];P[3]=qe?wne(qe,Je,A[4]):Je,P[4]=qe?da(P[3],l):A[4]}return Je=A[5],Je&&(qe=P[5],P[5]=qe?Pne(qe,Je,A[6]):Je,P[6]=qe?da(P[5],l):A[6]),Je=A[7],Je&&(P[7]=Je),te&w&&(P[8]=P[8]==null?A[8]:is(P[8],A[8])),P[9]==null&&(P[9]=A[9]),P[0]=A[0],P[1]=ge,P}function fVe(P){var A=[];if(P!=null)for(var z in Wn(P))A.push(z);return A}function hVe(P){return io.call(P)}function Vne(P,A,z){return A=gs(A===e?P.length-1:A,0),function(){for(var te=arguments,ge=-1,ke=gs(te.length-A,0),Te=tt(ke);++ge<ke;)Te[ge]=te[A+ge];ge=-1;for(var Je=tt(A+1);++ge<A;)Je[ge]=te[ge];return Je[A]=z(Te),hs(P,this,Je)}}function Jne(P,A){return A.length<2?P:Vh(P,od(A,0,-1))}function mVe(P,A){for(var z=P.length,te=is(A.length,z),ge=Bu(P);te--;){var ke=A[te];P[te]=Hh(ke,z)?ge[ke]:e}return P}function RT(P,A){if(!(A==="constructor"&&typeof P[A]=="function")&&A!="__proto__")return P[A]}var jne=Wne(pne),Y5=bf||function(P,A){return Wo.setTimeout(P,A)},LT=Wne(DLe);function Hne(P,A,z){var te=A+"";return LT(P,sVe(te,gVe(rVe(te),z)))}function Wne(P){var A=0,z=0;return function(){var te=x9(),ge=J-(te-z);if(z=te,ge>0){if(++A>=W)return arguments[0]}else A=0;return P.apply(e,arguments)}}function W9(P,A){var z=-1,te=P.length,ge=te-1;for(A=A===e?te:A;++z<A;){var ke=wT(z,ge),Te=P[ke];P[ke]=P[z],P[z]=Te}return P.length=A,P}var Xne=dVe(function(P){var A=[];return P.charCodeAt(0)===46&&A.push(""),P.replace(Si,function(z,te,ge,ke){A.push(ge?ke.replace(ds,"$1"):te||z)}),A});function Sf(P){if(typeof P=="string"||dc(P))return P;var A=P+"";return A=="0"&&1/P==-V?"-0":A}function Xv(P){if(P!=null){try{return Dh.call(P)}catch{}try{return P+""}catch{}}return""}function gVe(P,A){return no(Q,function(z){var te="_."+z[0];A&z[1]&&!rp(P,te)&&P.push(te)}),P.sort()}function qne(P){if(P instanceof _r)return P.clone();var A=new Eu(P.__wrapped__,P.__chain__);return A.__actions__=Bu(P.__actions__),A.__index__=P.__index__,A.__values__=P.__values__,A}function vVe(P,A,z){(z?Hl(P,A,z):A===e)?A=1:A=gs(vr(A),0);var te=P==null?0:P.length;if(!te||A<1)return[];for(var ge=0,ke=0,Te=tt(wf(te/A));ge<te;)Te[ke++]=od(P,ge,ge+=A);return Te}function yVe(P){for(var A=-1,z=P==null?0:P.length,te=0,ge=[];++A<z;){var ke=P[A];ke&&(ge[te++]=ke)}return ge}function xVe(){var P=arguments.length;if(!P)return[];for(var A=tt(P-1),z=arguments[0],te=P;te--;)A[te-1]=arguments[te];return Ba(lr(z)?Bu(z):[z],Qs(A,1))}var _Ve=Sr(function(P,A){return Os(P)?jl(P,Qs(A,1,Os,!0)):[]}),bVe=Sr(function(P,A){var z=sd(A);return Os(z)&&(z=e),Os(P)?jl(P,Qs(A,1,Os,!0),En(z,2)):[]}),wVe=Sr(function(P,A){var z=sd(A);return Os(z)&&(z=e),Os(P)?jl(P,Qs(A,1,Os,!0),e,z):[]});function PVe(P,A,z){var te=P==null?0:P.length;return te?(A=z||A===e?1:vr(A),od(P,A<0?0:A,te)):[]}function kVe(P,A,z){var te=P==null?0:P.length;return te?(A=z||A===e?1:vr(A),A=te-A,od(P,0,A<0?0:A)):[]}function AVe(P,A){return P&&P.length?T9(P,En(A,3),!0,!0):[]}function CVe(P,A){return P&&P.length?T9(P,En(A,3),!0):[]}function SVe(P,A,z,te){var ge=P==null?0:P.length;return ge?(z&&typeof z!="number"&&Hl(P,A,z)&&(z=0,te=ge),hT(P,A,z,te)):[]}function $ne(P,A,z){var te=P==null?0:P.length;if(!te)return-1;var ge=z==null?0:vr(z);return ge<0&&(ge=gs(te+ge,0)),ae(P,En(A,3),ge)}function Kne(P,A,z){var te=P==null?0:P.length;if(!te)return-1;var ge=te-1;return z!==e&&(ge=vr(z),ge=z<0?gs(te+ge,0):is(ge,te-1)),ae(P,En(A,3),ge,!0)}function Yne(P){var A=P==null?0:P.length;return A?Qs(P,1):[]}function OVe(P){var A=P==null?0:P.length;return A?Qs(P,V):[]}function EVe(P,A){var z=P==null?0:P.length;return z?(A=A===e?1:vr(A),Qs(P,A)):[]}function MVe(P){for(var A=-1,z=P==null?0:P.length,te={};++A<z;){var ge=P[A];te[ge[0]]=ge[1]}return te}function Zne(P){return P&&P.length?P[0]:e}function BVe(P,A,z){var te=P==null?0:P.length;if(!te)return-1;var ge=z==null?0:vr(z);return ge<0&&(ge=gs(te+ge,0)),Se(P,A,ge)}function NVe(P){var A=P==null?0:P.length;return A?od(P,0,-1):[]}var GVe=Sr(function(P){var A=li(P,ST);return A.length&&A[0]===P[0]?W5(A):[]}),FVe=Sr(function(P){var A=sd(P),z=li(P,ST);return A===sd(z)?A=e:z.pop(),z.length&&z[0]===P[0]?W5(z,En(A,2)):[]}),IVe=Sr(function(P){var A=sd(P),z=li(P,ST);return A=typeof A=="function"?A:e,A&&z.pop(),z.length&&z[0]===P[0]?W5(z,e,A):[]});function zVe(P,A){return P==null?"":qm.call(P,A)}function sd(P){var A=P==null?0:P.length;return A?P[A-1]:e}function TVe(P,A,z){var te=P==null?0:P.length;if(!te)return-1;var ge=te;return z!==e&&(ge=vr(z),ge=ge<0?gs(te+ge,0):is(ge,te-1)),A===A?O5(P,A,ge):ae(P,ot,ge,!0)}function DVe(P,A){return P&&P.length?id(P,vr(A)):e}var RVe=Sr(Une);function Une(P,A){return P&&P.length&&A&&A.length?bT(P,A):P}function LVe(P,A,z){return P&&P.length&&A&&A.length?bT(P,A,En(z,2)):P}function VVe(P,A,z){return P&&P.length&&A&&A.length?bT(P,A,e,z):P}var JVe=jh(function(P,A){var z=P==null?0:P.length,te=h6(P,A);return dne(P,li(A,function(ge){return Hh(ge,z)?+ge:ge}).sort(bne)),te});function jVe(P,A){var z=[];if(!(P&&P.length))return z;var te=-1,ge=[],ke=P.length;for(A=En(A,3);++te<ke;){var Te=P[te];A(Te,te,P)&&(z.push(Te),ge.push(te))}return dne(P,ge),z}function VT(P){return P==null?P:Jz.call(P)}function HVe(P,A,z){var te=P==null?0:P.length;return te?(z&&typeof z!="number"&&Hl(P,A,z)?(A=0,z=te):(A=A==null?0:vr(A),z=z===e?te:vr(z)),od(P,A,z)):[]}function WVe(P,A){return z9(P,A)}function XVe(P,A,z){return kT(P,A,En(z,2))}function qVe(P,A){var z=P==null?0:P.length;if(z){var te=z9(P,A);if(te<z&&fp(P[te],A))return te}return-1}function $Ve(P,A){return z9(P,A,!0)}function KVe(P,A,z){return kT(P,A,En(z,2),!0)}function YVe(P,A){var z=P==null?0:P.length;if(z){var te=z9(P,A,!0)-1;if(fp(P[te],A))return te}return-1}function ZVe(P){return P&&P.length?fne(P):[]}function UVe(P,A){return P&&P.length?fne(P,En(A,2)):[]}function QVe(P){var A=P==null?0:P.length;return A?od(P,1,A):[]}function eJe(P,A,z){return P&&P.length?(A=z||A===e?1:vr(A),od(P,0,A<0?0:A)):[]}function tJe(P,A,z){var te=P==null?0:P.length;return te?(A=z||A===e?1:vr(A),A=te-A,od(P,A<0?0:A,te)):[]}function nJe(P,A){return P&&P.length?T9(P,En(A,3),!1,!0):[]}function rJe(P,A){return P&&P.length?T9(P,En(A,3)):[]}var iJe=Sr(function(P){return Zm(Qs(P,1,Os,!0))}),oJe=Sr(function(P){var A=sd(P);return Os(A)&&(A=e),Zm(Qs(P,1,Os,!0),En(A,2))}),sJe=Sr(function(P){var A=sd(P);return A=typeof A=="function"?A:e,Zm(Qs(P,1,Os,!0),e,A)});function aJe(P){return P&&P.length?Zm(P):[]}function lJe(P,A){return P&&P.length?Zm(P,En(A,2)):[]}function uJe(P,A){return A=typeof A=="function"?A:e,P&&P.length?Zm(P,e,A):[]}function JT(P){if(!(P&&P.length))return[];var A=0;return P=Vl(P,function(z){if(Os(z))return A=gs(z.length,A),!0}),ac(A,function(z){return li(P,qt(z))})}function Qne(P,A){if(!(P&&P.length))return[];var z=JT(P);return A==null?z:li(z,function(te){return hs(A,e,te)})}var cJe=Sr(function(P,A){return Os(P)?jl(P,A):[]}),dJe=Sr(function(P){return CT(Vl(P,Os))}),pJe=Sr(function(P){var A=sd(P);return Os(A)&&(A=e),CT(Vl(P,Os),En(A,2))}),fJe=Sr(function(P){var A=sd(P);return A=typeof A=="function"?A:e,CT(Vl(P,Os),e,A)}),hJe=Sr(JT);function mJe(P,A){return vne(P||[],A||[],Jv)}function gJe(P,A){return vne(P||[],A||[],q5)}var vJe=Sr(function(P){var A=P.length,z=A>1?P[A-1]:e;return z=typeof z=="function"?(P.pop(),z):e,Qne(P,z)});function ere(P){var A=we(P);return A.__chain__=!0,A}function yJe(P,A){return A(P),P}function X9(P,A){return A(P)}var xJe=jh(function(P){var A=P.length,z=A?P[0]:0,te=this.__wrapped__,ge=function(ke){return h6(ke,P)};return A>1||this.__actions__.length||!(te instanceof _r)||!Hh(z)?this.thru(ge):(te=te.slice(z,+z+(A?1:0)),te.__actions__.push({func:X9,args:[ge],thisArg:e}),new Eu(te,this.__chain__).thru(function(ke){return A&&!ke.length&&ke.push(e),ke}))});function _Je(){return ere(this)}function bJe(){return new Eu(this.value(),this.__chain__)}function wJe(){this.__values__===e&&(this.__values__=hre(this.value()));var P=this.__index__>=this.__values__.length,A=P?e:this.__values__[this.__index__++];return{done:P,value:A}}function PJe(){return this}function kJe(P){for(var A,z=this;z instanceof c6;){var te=qne(z);te.__index__=0,te.__values__=e,A?ge.__wrapped__=te:A=te;var ge=te;z=z.__wrapped__}return ge.__wrapped__=P,A}function AJe(){var P=this.__wrapped__;if(P instanceof _r){var A=P;return this.__actions__.length&&(A=new _r(this)),A=A.reverse(),A.__actions__.push({func:X9,args:[VT],thisArg:e}),new Eu(A,this.__chain__)}return this.thru(VT)}function CJe(){return gne(this.__wrapped__,this.__actions__)}var SJe=D9(function(P,A,z){yi.call(P,z)?++P[z]:cp(P,z,1)});function OJe(P,A,z){var te=lr(P)?hf:fT;return z&&Hl(P,A,z)&&(A=e),te(P,En(A,3))}function EJe(P,A){var z=lr(P)?Vl:N9;return z(P,En(A,3))}var MJe=Sne($ne),BJe=Sne(Kne);function NJe(P,A){return Qs(q9(P,A),1)}function GJe(P,A){return Qs(q9(P,A),V)}function FJe(P,A,z){return z=z===e?1:vr(z),Qs(q9(P,A),z)}function tre(P,A){var z=lr(P)?no:kf;return z(P,En(A,3))}function nre(P,A){var z=lr(P)?ff:B9;return z(P,En(A,3))}var IJe=D9(function(P,A,z){yi.call(P,z)?P[z].push(A):cp(P,z,[A])});function zJe(P,A,z,te){P=Nu(P)?P:_6(P),z=z&&!te?vr(z):0;var ge=P.length;return z<0&&(z=gs(ge+z,0)),U9(P)?z<=ge&&P.indexOf(A,z)>-1:!!ge&&Se(P,A,z)>-1}var TJe=Sr(function(P,A,z){var te=-1,ge=typeof A=="function",ke=Nu(P)?tt(P.length):[];return kf(P,function(Te){ke[++te]=ge?hs(A,Te,z):rd(Te,A,z)}),ke}),DJe=D9(function(P,A,z){cp(P,z,A)});function q9(P,A){var z=lr(P)?li:it;return z(P,En(A,3))}function RJe(P,A,z,te){return P==null?[]:(lr(A)||(A=A==null?[]:[A]),z=te?e:z,lr(z)||(z=z==null?[]:[z]),pp(P,A,z))}var LJe=D9(function(P,A,z){P[z?0:1].push(A)},function(){return[[],[]]});function VJe(P,A,z){var te=lr(P)?gf:Cr,ge=arguments.length<3;return te(P,En(A,4),z,ge,kf)}function JJe(P,A,z){var te=lr(P)?Rm:Cr,ge=arguments.length<3;return te(P,En(A,4),z,ge,B9)}function jJe(P,A){var z=lr(P)?Vl:N9;return z(P,Y9(En(A,3)))}function HJe(P){var A=lr(P)?O9:zLe;return A(P)}function WJe(P,A,z){(z?Hl(P,A,z):A===e)?A=1:A=vr(A);var te=lr(P)?uT:TLe;return te(P,A)}function XJe(P){var A=lr(P)?cT:RLe;return A(P)}function qJe(P){if(P==null)return 0;if(Nu(P))return U9(P)?lc(P):P.length;var A=fl(P);return A==pe||A==Ee?P.size:ce(P).length}function $Je(P,A,z){var te=lr(P)?bo:LLe;return z&&Hl(P,A,z)&&(A=e),te(P,En(A,3))}var KJe=Sr(function(P,A){if(P==null)return[];var z=A.length;return z>1&&Hl(P,A[0],A[1])?A=[]:z>2&&Hl(A[0],A[1],A[2])&&(A=[A[0]]),pp(P,Qs(A,1),[])}),$9=Us||function(){return Wo.Date.now()};function YJe(P,A){if(typeof A!="function")throw new Na(i);return P=vr(P),function(){if(--P<1)return A.apply(this,arguments)}}function rre(P,A,z){return A=z?e:A,A=P&&A==null?P.length:A,Jh(P,w,e,e,e,e,A)}function ire(P,A){var z;if(typeof A!="function")throw new Na(i);return P=vr(P),function(){return--P>0&&(z=A.apply(this,arguments)),P<=1&&(A=e),z}}var jT=Sr(function(P,A,z){var te=m;if(z.length){var ge=da(z,y6(jT));te|=y}return Jh(P,te,A,z,ge)}),ore=Sr(function(P,A,z){var te=m|g;if(z.length){var ge=da(z,y6(ore));te|=y}return Jh(A,te,P,z,ge)});function sre(P,A,z){A=z?e:A;var te=Jh(P,v,e,e,e,e,e,A);return te.placeholder=sre.placeholder,te}function are(P,A,z){A=z?e:A;var te=Jh(P,x,e,e,e,e,e,A);return te.placeholder=are.placeholder,te}function lre(P,A,z){var te,ge,ke,Te,Je,qe,dt=0,pt=!1,yt=!1,Tt=!0;if(typeof P!="function")throw new Na(i);A=ad(A)||0,os(z)&&(pt=!!z.leading,yt="maxWait"in z,ke=yt?gs(ad(z.maxWait)||0,A):ke,Tt="trailing"in z?!!z.trailing:Tt);function pn(Es){var hp=te,qh=ge;return te=ge=e,dt=Es,Te=P.apply(qh,hp),Te}function Nn(Es){return dt=Es,Je=Y5(Lr,A),pt?pn(Es):Te}function br(Es){var hp=Es-qe,qh=Es-dt,Sre=A-hp;return yt?is(Sre,ke-qh):Sre}function Gn(Es){var hp=Es-qe,qh=Es-dt;return qe===e||hp>=A||hp<0||yt&&qh>=ke}function Lr(){var Es=$9();if(Gn(Es))return ti(Es);Je=Y5(Lr,br(Es))}function ti(Es){return Je=e,Tt&&te?pn(Es):(te=ge=e,Te)}function pc(){Je!==e&&yne(Je),dt=0,te=qe=ge=Je=e}function Wl(){return Je===e?Te:ti($9())}function fc(){var Es=$9(),hp=Gn(Es);if(te=arguments,ge=this,qe=Es,hp){if(Je===e)return Nn(qe);if(yt)return yne(Je),Je=Y5(Lr,A),pn(qe)}return Je===e&&(Je=Y5(Lr,A)),Te}return fc.cancel=pc,fc.flush=Wl,fc}var ZJe=Sr(function(P,A){return M9(P,1,A)}),UJe=Sr(function(P,A,z){return M9(P,ad(A)||0,z)});function QJe(P){return Jh(P,O)}function K9(P,A){if(typeof P!="function"||A!=null&&typeof A!="function")throw new Na(i);var z=function(){var te=arguments,ge=A?A.apply(this,te):te[0],ke=z.cache;if(ke.has(ge))return ke.get(ge);var Te=P.apply(this,te);return z.cache=ke.set(ge,Te)||ke,Te};return z.cache=new(K9.Cache||up),z}K9.Cache=up;function Y9(P){if(typeof P!="function")throw new Na(i);return function(){var A=arguments;switch(A.length){case 0:return!P.call(this);case 1:return!P.call(this,A[0]);case 2:return!P.call(this,A[0],A[1]);case 3:return!P.call(this,A[0],A[1],A[2])}return!P.apply(this,A)}}function eje(P){return ire(2,P)}var tje=VLe(function(P,A){A=A.length==1&&lr(A[0])?li(A[0],ms(En())):li(Qs(A,1),ms(En()));var z=A.length;return Sr(function(te){for(var ge=-1,ke=is(te.length,z);++ge<ke;)te[ge]=A[ge].call(this,te[ge]);return hs(P,this,te)})}),HT=Sr(function(P,A){var z=da(A,y6(HT));return Jh(P,y,e,A,z)}),ure=Sr(function(P,A){var z=da(A,y6(ure));return Jh(P,_,e,A,z)}),nje=jh(function(P,A){return Jh(P,k,e,e,e,A)});function rje(P,A){if(typeof P!="function")throw new Na(i);return A=A===e?A:vr(A),Sr(P,A)}function ije(P,A){if(typeof P!="function")throw new Na(i);return A=A==null?0:gs(vr(A),0),Sr(function(z){var te=z[A],ge=Qm(z,0,A);return te&&Ba(ge,te),hs(P,this,ge)})}function oje(P,A,z){var te=!0,ge=!0;if(typeof P!="function")throw new Na(i);return os(z)&&(te="leading"in z?!!z.leading:te,ge="trailing"in z?!!z.trailing:ge),lre(P,A,{leading:te,maxWait:A,trailing:ge})}function sje(P){return rre(P,1)}function aje(P,A){return HT(OT(A),P)}function lje(){if(!arguments.length)return[];var P=arguments[0];return lr(P)?P:[P]}function uje(P){return Jl(P,f)}function cje(P,A){return A=typeof A=="function"?A:e,Jl(P,f,A)}function dje(P){return Jl(P,u|f)}function pje(P,A){return A=typeof A=="function"?A:e,Jl(P,u|f,A)}function fje(P,A){return A==null||E9(P,A,pa(A))}function fp(P,A){return P===A||P!==P&&A!==A}var hje=J9(H5),mje=J9(function(P,A){return P>=A}),qv=I9(function(){return arguments}())?I9:function(P){return vs(P)&&yi.call(P,"callee")&&!K.call(P,"callee")},lr=tt.isArray,gje=Tm?ms(Tm):yT;function Nu(P){return P!=null&&Z9(P.length)&&!Wh(P)}function Os(P){return vs(P)&&Nu(P)}function vje(P){return P===!0||P===!1||vs(P)&&Fa(P)==L}var e1=y9||nD,yje=Bh?ms(Bh):xT;function xje(P){return vs(P)&&P.nodeType===1&&!Z5(P)}function _je(P){if(P==null)return!0;if(Nu(P)&&(lr(P)||typeof P=="string"||typeof P.splice=="function"||e1(P)||x6(P)||qv(P)))return!P.length;var A=fl(P);if(A==pe||A==Ee)return!P.size;if(K5(P))return!ce(P).length;for(var z in P)if(yi.call(P,z))return!1;return!0}function bje(P,A){return jv(P,A)}function wje(P,A,z){z=typeof z=="function"?z:e;var te=z?z(P,A):e;return te===e?jv(P,A,e,z):!!te}function WT(P){if(!vs(P))return!1;var A=Fa(P);return A==se||A==Z||typeof P.message=="string"&&typeof P.name=="string"&&!Z5(P)}function Pje(P){return typeof P=="number"&&Tv(P)}function Wh(P){if(!os(P))return!1;var A=Fa(P);return A==Y||A==ue||A==D||A==Ce}function cre(P){return typeof P=="number"&&P==vr(P)}function Z9(P){return typeof P=="number"&&P>-1&&P%1==0&&P<=B}function os(P){var A=typeof P;return P!=null&&(A=="object"||A=="function")}function vs(P){return P!=null&&typeof P=="object"}var dre=Gv?ms(Gv):X5;function kje(P,A){return P===A||Af(P,A,IT(A))}function Aje(P,A,z){return z=typeof z=="function"?z:e,Af(P,A,IT(A),z)}function Cje(P){return pre(P)&&P!=+P}function Sje(P){if(cVe(P))throw new zn(r);return Hv(P)}function Oje(P){return P===null}function Eje(P){return P==null}function pre(P){return typeof P=="number"||vs(P)&&Fa(P)==oe}function Z5(P){if(!vs(P)||Fa(P)!=ve)return!1;var A=sp(P);if(A===null)return!0;var z=yi.call(A,"constructor")&&A.constructor;return typeof z=="function"&&z instanceof z&&Dh.call(z)==F5}var XT=Nh?ms(Nh):Kr;function Mje(P){return cre(P)&&P>=-B&&P<=B}var fre=np?ms(np):E;function U9(P){return typeof P=="string"||!lr(P)&&vs(P)&&Fa(P)==Ne}function dc(P){return typeof P=="symbol"||vs(P)&&Fa(P)==De}var x6=Ma?ms(Ma):R;function Bje(P){return P===e}function Nje(P){return vs(P)&&fl(P)==Re}function Gje(P){return vs(P)&&Fa(P)==je}var Fje=J9(Ve),Ije=J9(function(P,A){return P<=A});function hre(P){if(!P)return[];if(Nu(P))return U9(P)?Zs(P):Bu(P);if(nt&&P[nt])return Iv(P[nt]());var A=fl(P),z=A==pe?Ih:A==Ee?Su:_6;return z(P)}function Xh(P){if(!P)return P===0?P:0;if(P=ad(P),P===V||P===-V){var A=P<0?-1:1;return A*N}return P===P?P:0}function vr(P){var A=Xh(P),z=A%1;return A===A?z?A-z:A:0}function mre(P){return P?Lh(vr(P),0,S):0}function ad(P){if(typeof P=="number")return P;if(dc(P))return C;if(os(P)){var A=typeof P.valueOf=="function"?P.valueOf():P;P=os(A)?A+"":A}if(typeof P!="string")return P===0?P:+P;P=vf(P);var z=sr.test(P);return z||an.test(P)?Fm(P.slice(2),z?2:8):gr.test(P)?C:+P}function gre(P){return Cf(P,Gu(P))}function zje(P){return P?Lh(vr(P),-B,B):P===0?P:0}function ji(P){return P==null?"":cc(P)}var Tje=g6(function(P,A){if(K5(A)||Nu(A)){Cf(A,pa(A),P);return}for(var z in A)yi.call(A,z)&&Jv(P,z,A[z])}),vre=g6(function(P,A){Cf(A,Gu(A),P)}),Q9=g6(function(P,A,z,te){Cf(A,Gu(A),P,te)}),Dje=g6(function(P,A,z,te){Cf(A,pa(A),P,te)}),Rje=jh(h6);function Lje(P,A){var z=Ym(P);return A==null?z:L5(z,A)}var Vje=Sr(function(P,A){P=Wn(P);var z=-1,te=A.length,ge=te>2?A[2]:e;for(ge&&Hl(A[0],A[1],ge)&&(te=1);++z<te;)for(var ke=A[z],Te=Gu(ke),Je=-1,qe=Te.length;++Je<qe;){var dt=Te[Je],pt=P[dt];(pt===e||fp(pt,_f[dt])&&!yi.call(P,dt))&&(P[dt]=ke[dt])}return P}),Jje=Sr(function(P){return P.push(e,Fne),hs(yre,e,P)});function jje(P,A){return q(P,En(A,3),td)}function Hje(P,A){return q(P,En(A,3),j5)}function Wje(P,A){return P==null?P:J5(P,En(A,3),Gu)}function Xje(P,A){return P==null?P:G9(P,En(A,3),Gu)}function qje(P,A){return P&&td(P,En(A,3))}function $je(P,A){return P&&j5(P,En(A,3))}function Kje(P){return P==null?[]:nd(P,pa(P))}function Yje(P){return P==null?[]:nd(P,Gu(P))}function qT(P,A,z){var te=P==null?e:Vh(P,A);return te===e?z:te}function Zje(P,A){return P!=null&&Tne(P,A,mT)}function $T(P,A){return P!=null&&Tne(P,A,gT)}var Uje=Ene(function(P,A,z){A!=null&&typeof A.toString!="function"&&(A=io.call(A)),P[A]=z},ZT(Fu)),Qje=Ene(function(P,A,z){A!=null&&typeof A.toString!="function"&&(A=io.call(A)),yi.call(P,A)?P[A].push(z):P[A]=[z]},En),eHe=Sr(rd);function pa(P){return Nu(P)?f6(P):ce(P)}function Gu(P){return Nu(P)?f6(P,!0):xe(P)}function tHe(P,A){var z={};return A=En(A,3),td(P,function(te,ge,ke){cp(z,A(te,ge,ke),te)}),z}function nHe(P,A){var z={};return A=En(A,3),td(P,function(te,ge,ke){cp(z,ge,A(te,ge,ke))}),z}var rHe=g6(function(P,A,z){_i(P,A,z)}),yre=g6(function(P,A,z,te){_i(P,A,z,te)}),iHe=jh(function(P,A){var z={};if(P==null)return z;var te=!1;A=li(A,function(ke){return ke=Um(ke,P),te||(te=ke.length>1),ke}),Cf(P,GT(P),z),te&&(z=Jl(z,u|c|f,ULe));for(var ge=A.length;ge--;)AT(z,A[ge]);return z});function oHe(P,A){return xre(P,Y9(En(A)))}var sHe=jh(function(P,A){return P==null?{}:GLe(P,A)});function xre(P,A){if(P==null)return{};var z=li(GT(P),function(te){return[te]});return A=En(A),cne(P,z,function(te,ge){return A(te,ge[0])})}function aHe(P,A,z){A=Um(A,P);var te=-1,ge=A.length;for(ge||(ge=1,P=e);++te<ge;){var ke=P==null?e:P[Sf(A[te])];ke===e&&(te=ge,ke=z),P=Wh(ke)?ke.call(P):ke}return P}function lHe(P,A,z){return P==null?P:q5(P,A,z)}function uHe(P,A,z,te){return te=typeof te=="function"?te:e,P==null?P:q5(P,A,z,te)}var _re=Nne(pa),bre=Nne(Gu);function cHe(P,A,z){var te=lr(P),ge=te||e1(P)||x6(P);if(A=En(A,4),z==null){var ke=P&&P.constructor;ge?z=te?new ke:[]:os(P)?z=Wh(ke)?Ym(sp(P)):{}:z={}}return(ge?no:td)(P,function(Te,Je,qe){return A(z,Te,Je,qe)}),z}function dHe(P,A){return P==null?!0:AT(P,A)}function pHe(P,A,z){return P==null?P:mne(P,A,OT(z))}function fHe(P,A,z,te){return te=typeof te=="function"?te:e,P==null?P:mne(P,A,OT(z),te)}function _6(P){return P==null?[]:yf(P,pa(P))}function hHe(P){return P==null?[]:yf(P,Gu(P))}function mHe(P,A,z){return z===e&&(z=A,A=e),z!==e&&(z=ad(z),z=z===z?z:0),A!==e&&(A=ad(A),A=A===A?A:0),Lh(ad(P),A,z)}function gHe(P,A,z){return A=Xh(A),z===e?(z=A,A=0):z=Xh(z),P=ad(P),vT(P,A,z)}function vHe(P,A,z){if(z&&typeof z!="boolean"&&Hl(P,A,z)&&(A=z=e),z===e&&(typeof A=="boolean"?(z=A,A=e):typeof P=="boolean"&&(z=P,P=e)),P===e&&A===e?(P=0,A=1):(P=Xh(P),A===e?(A=P,P=0):A=Xh(A)),P>A){var te=P;P=A,A=te}if(z||P%1||A%1){var ge=b9();return is(P+ge*(A-P+tp("1e-"+((ge+"").length-1))),A)}return wT(P,A)}var yHe=v6(function(P,A,z){return A=A.toLowerCase(),P+(z?wre(A):A)});function wre(P){return KT(ji(P).toLowerCase())}function Pre(P){return P=ji(P),P&&P.replace(Ze,Gh).replace(Ev,"")}function xHe(P,A,z){P=ji(P),A=cc(A);var te=P.length;z=z===e?te:Lh(vr(z),0,te);var ge=z;return z-=A.length,z>=0&&P.slice(z,ge)==A}function _He(P){return P=ji(P),P&&Yn.test(P)?P.replace(Ut,Vm):P}function bHe(P){return P=ji(P),P&&Mr.test(P)?P.replace(ir,"\\$&"):P}var wHe=v6(function(P,A,z){return P+(z?"-":"")+A.toLowerCase()}),PHe=v6(function(P,A,z){return P+(z?" ":"")+A.toLowerCase()}),kHe=Cne("toLowerCase");function AHe(P,A,z){P=ji(P),A=vr(A);var te=A?lc(P):0;if(!A||te>=A)return P;var ge=(A-te)/2;return V9(zv(ge),z)+P+V9(wf(ge),z)}function CHe(P,A,z){P=ji(P),A=vr(A);var te=A?lc(P):0;return A&&te<A?P+V9(A-te,z):P}function SHe(P,A,z){P=ji(P),A=vr(A);var te=A?lc(P):0;return A&&te<A?V9(A-te,z)+P:P}function OHe(P,A,z){return z||A==null?A=0:A&&(A=+A),_9(ji(P).replace(ct,""),A||0)}function EHe(P,A,z){return(z?Hl(P,A,z):A===e)?A=1:A=vr(A),PT(ji(P),A)}function MHe(){var P=arguments,A=ji(P[0]);return P.length<3?A:A.replace(P[1],P[2])}var BHe=v6(function(P,A,z){return P+(z?"_":"")+A.toLowerCase()});function NHe(P,A,z){return z&&typeof z!="number"&&Hl(P,A,z)&&(A=z=e),z=z===e?S:z>>>0,z?(P=ji(P),P&&(typeof A=="string"||A!=null&&!XT(A))&&(A=cc(A),!A&&Ys(P))?Qm(Zs(P),0,z):P.split(A,z)):[]}var GHe=v6(function(P,A,z){return P+(z?" ":"")+KT(A)});function FHe(P,A,z){return P=ji(P),z=z==null?0:Lh(vr(z),0,P.length),A=cc(A),P.slice(z,z+A.length)==A}function IHe(P,A,z){var te=we.templateSettings;z&&Hl(P,A,z)&&(A=e),P=ji(P),A=Q9({},A,te,Gne);var ge=Q9({},A.imports,te.imports,Gne),ke=pa(ge),Te=yf(ge,ke),Je,qe,dt=0,pt=A.interpolate||zt,yt="__p += '",Tt=Ou((A.escape||zt).source+"|"+pt.source+"|"+(pt===dn?$r:zt).source+"|"+(A.evaluate||zt).source+"|$","g"),pn="//# sourceURL="+(yi.call(A,"sourceURL")?(A.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ep+"]")+`
`;P.replace(Tt,function(Gn,Lr,ti,pc,Wl,fc){return ti||(ti=pc),yt+=P.slice(dt,fc).replace(rn,Jm),Lr&&(Je=!0,yt+=`' +
__e(`+Lr+`) +
'`),Wl&&(qe=!0,yt+=`';
`+Wl+`;
__p += '`),ti&&(yt+=`' +
((__t = (`+ti+`)) == null ? '' : __t) +
'`),dt=fc+Gn.length,Gn}),yt+=`';
`;var Nn=yi.call(A,"variable")&&A.variable;if(!Nn)yt=`with (obj) {
`+yt+`
}
`;else if(Ho.test(Nn))throw new zn(o);yt=(qe?yt.replace(ft,""):yt).replace(Bt,"$1").replace(Ft,"$1;"),yt="function("+(Nn||"obj")+`) {
`+(Nn?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(Je?", __e = _.escape":"")+(qe?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+yt+`return __p
}`;var br=Are(function(){return ei(ke,pn+"return "+yt).apply(e,Te)});if(br.source=yt,WT(br))throw br;return br}function zHe(P){return ji(P).toLowerCase()}function THe(P){return ji(P).toUpperCase()}function DHe(P,A,z){if(P=ji(P),P&&(z||A===e))return vf(P);if(!P||!(A=cc(A)))return P;var te=Zs(P),ge=Zs(A),ke=vi(te,ge),Te=Lm(te,ge)+1;return Qm(te,ke,Te).join("")}function RHe(P,A,z){if(P=ji(P),P&&(z||A===e))return P.slice(0,Hm(P)+1);if(!P||!(A=cc(A)))return P;var te=Zs(P),ge=Lm(te,Zs(A))+1;return Qm(te,0,ge).join("")}function LHe(P,A,z){if(P=ji(P),P&&(z||A===e))return P.replace(ct,"");if(!P||!(A=cc(A)))return P;var te=Zs(P),ge=vi(te,Zs(A));return Qm(te,ge).join("")}function VHe(P,A){var z=M,te=I;if(os(A)){var ge="separator"in A?A.separator:ge;z="length"in A?vr(A.length):z,te="omission"in A?cc(A.omission):te}P=ji(P);var ke=P.length;if(Ys(P)){var Te=Zs(P);ke=Te.length}if(z>=ke)return P;var Je=z-lc(te);if(Je<1)return te;var qe=Te?Qm(Te,0,Je).join(""):P.slice(0,Je);if(ge===e)return qe+te;if(Te&&(Je+=qe.length-Je),XT(ge)){if(P.slice(Je).search(ge)){var dt,pt=qe;for(ge.global||(ge=Ou(ge.source,ji(co.exec(ge))+"g")),ge.lastIndex=0;dt=ge.exec(pt);)var yt=dt.index;qe=qe.slice(0,yt===e?Je:yt)}}else if(P.indexOf(cc(ge),Je)!=Je){var Tt=qe.lastIndexOf(ge);Tt>-1&&(qe=qe.slice(0,Tt))}return qe+te}function JHe(P){return P=ji(P),P&&ln.test(P)?P.replace(Kn,E5):P}var jHe=v6(function(P,A,z){return P+(z?" ":"")+A.toUpperCase()}),KT=Cne("toUpperCase");function kre(P,A,z){return P=ji(P),A=z?e:A,A===e?jm(P)?n6(P):le(P):P.match(A)||[]}var Are=Sr(function(P,A){try{return hs(P,e,A)}catch(z){return WT(z)?z:new zn(z)}}),HHe=jh(function(P,A){return no(A,function(z){z=Sf(z),cp(P,z,jT(P[z],P))}),P});function WHe(P){var A=P==null?0:P.length,z=En();return P=A?li(P,function(te){if(typeof te[1]!="function")throw new Na(i);return[z(te[0]),te[1]]}):[],Sr(function(te){for(var ge=-1;++ge<A;){var ke=P[ge];if(hs(ke[0],this,te))return hs(ke[1],this,te)}})}function XHe(P){return V5(Jl(P,u))}function ZT(P){return function(){return P}}function qHe(P,A){return P==null||P!==P?A:P}var $He=One(),KHe=One(!0);function Fu(P){return P}function UT(P){return re(typeof P=="function"?P:Jl(P,u))}function YHe(P){return mn(Jl(P,u))}function ZHe(P,A){return ar(P,Jl(A,u))}var UHe=Sr(function(P,A){return function(z){return rd(z,P,A)}}),QHe=Sr(function(P,A){return function(z){return rd(P,z,A)}});function QT(P,A,z){var te=pa(A),ge=nd(A,te);z==null&&!(os(A)&&(ge.length||!te.length))&&(z=A,A=P,P=this,ge=nd(A,pa(A)));var ke=!(os(z)&&"chain"in z)||!!z.chain,Te=Wh(P);return no(ge,function(Je){var qe=A[Je];P[Je]=qe,Te&&(P.prototype[Je]=function(){var dt=this.__chain__;if(ke||dt){var pt=P(this.__wrapped__),yt=pt.__actions__=Bu(this.__actions__);return yt.push({func:qe,args:arguments,thisArg:P}),pt.__chain__=dt,pt}return qe.apply(P,Ba([this.value()],arguments))})}),P}function eWe(){return Wo._===this&&(Wo._=I5),this}function eD(){}function tWe(P){return P=vr(P),Sr(function(A){return id(A,P)})}var nWe=MT(li),rWe=MT(hf),iWe=MT(bo);function Cre(P){return TT(P)?qt(Sf(P)):FLe(P)}function oWe(P){return function(A){return P==null?e:Vh(P,A)}}var sWe=Mne(),aWe=Mne(!0);function tD(){return[]}function nD(){return!1}function lWe(){return{}}function uWe(){return""}function cWe(){return!0}function dWe(P,A){if(P=vr(P),P<1||P>B)return[];var z=S,te=is(P,S);A=En(A),P-=S;for(var ge=ac(te,A);++z<P;)A(z);return ge}function pWe(P){return lr(P)?li(P,Sf):dc(P)?[P]:Bu(Xne(ji(P)))}function fWe(P){var A=++G5;return ji(P)+A}var hWe=L9(function(P,A){return P+A},0),mWe=BT("ceil"),gWe=L9(function(P,A){return P/A},1),vWe=BT("floor");function yWe(P){return P&&P.length?m6(P,Fu,H5):e}function xWe(P,A){return P&&P.length?m6(P,En(A,2),H5):e}function _We(P){return bt(P,Fu)}function bWe(P,A){return bt(P,En(A,2))}function wWe(P){return P&&P.length?m6(P,Fu,Ve):e}function PWe(P,A){return P&&P.length?m6(P,En(A,2),Ve):e}var kWe=L9(function(P,A){return P*A},1),AWe=BT("round"),CWe=L9(function(P,A){return P-A},0);function SWe(P){return P&&P.length?ro(P,Fu):0}function OWe(P,A){return P&&P.length?ro(P,En(A,2)):0}return we.after=YJe,we.ary=rre,we.assign=Tje,we.assignIn=vre,we.assignInWith=Q9,we.assignWith=Dje,we.at=Rje,we.before=ire,we.bind=jT,we.bindAll=HHe,we.bindKey=ore,we.castArray=lje,we.chain=ere,we.chunk=vVe,we.compact=yVe,we.concat=xVe,we.cond=WHe,we.conforms=XHe,we.constant=ZT,we.countBy=SJe,we.create=Lje,we.curry=sre,we.curryRight=are,we.debounce=lre,we.defaults=Vje,we.defaultsDeep=Jje,we.defer=ZJe,we.delay=UJe,we.difference=_Ve,we.differenceBy=bVe,we.differenceWith=wVe,we.drop=PVe,we.dropRight=kVe,we.dropRightWhile=AVe,we.dropWhile=CVe,we.fill=SVe,we.filter=EJe,we.flatMap=NJe,we.flatMapDeep=GJe,we.flatMapDepth=FJe,we.flatten=Yne,we.flattenDeep=OVe,we.flattenDepth=EVe,we.flip=QJe,we.flow=$He,we.flowRight=KHe,we.fromPairs=MVe,we.functions=Kje,we.functionsIn=Yje,we.groupBy=IJe,we.initial=NVe,we.intersection=GVe,we.intersectionBy=FVe,we.intersectionWith=IVe,we.invert=Uje,we.invertBy=Qje,we.invokeMap=TJe,we.iteratee=UT,we.keyBy=DJe,we.keys=pa,we.keysIn=Gu,we.map=q9,we.mapKeys=tHe,we.mapValues=nHe,we.matches=YHe,we.matchesProperty=ZHe,we.memoize=K9,we.merge=rHe,we.mergeWith=yre,we.method=UHe,we.methodOf=QHe,we.mixin=QT,we.negate=Y9,we.nthArg=tWe,we.omit=iHe,we.omitBy=oHe,we.once=eje,we.orderBy=RJe,we.over=nWe,we.overArgs=tje,we.overEvery=rWe,we.overSome=iWe,we.partial=HT,we.partialRight=ure,we.partition=LJe,we.pick=sHe,we.pickBy=xre,we.property=Cre,we.propertyOf=oWe,we.pull=RVe,we.pullAll=Une,we.pullAllBy=LVe,we.pullAllWith=VVe,we.pullAt=JVe,we.range=sWe,we.rangeRight=aWe,we.rearg=nje,we.reject=jJe,we.remove=jVe,we.rest=rje,we.reverse=VT,we.sampleSize=WJe,we.set=lHe,we.setWith=uHe,we.shuffle=XJe,we.slice=HVe,we.sortBy=KJe,we.sortedUniq=ZVe,we.sortedUniqBy=UVe,we.split=NHe,we.spread=ije,we.tail=QVe,we.take=eJe,we.takeRight=tJe,we.takeRightWhile=nJe,we.takeWhile=rJe,we.tap=yJe,we.throttle=oje,we.thru=X9,we.toArray=hre,we.toPairs=_re,we.toPairsIn=bre,we.toPath=pWe,we.toPlainObject=gre,we.transform=cHe,we.unary=sje,we.union=iJe,we.unionBy=oJe,we.unionWith=sJe,we.uniq=aJe,we.uniqBy=lJe,we.uniqWith=uJe,we.unset=dHe,we.unzip=JT,we.unzipWith=Qne,we.update=pHe,we.updateWith=fHe,we.values=_6,we.valuesIn=hHe,we.without=cJe,we.words=kre,we.wrap=aje,we.xor=dJe,we.xorBy=pJe,we.xorWith=fJe,we.zip=hJe,we.zipObject=mJe,we.zipObjectDeep=gJe,we.zipWith=vJe,we.entries=_re,we.entriesIn=bre,we.extend=vre,we.extendWith=Q9,QT(we,we),we.add=hWe,we.attempt=Are,we.camelCase=yHe,we.capitalize=wre,we.ceil=mWe,we.clamp=mHe,we.clone=uje,we.cloneDeep=dje,we.cloneDeepWith=pje,we.cloneWith=cje,we.conformsTo=fje,we.deburr=Pre,we.defaultTo=qHe,we.divide=gWe,we.endsWith=xHe,we.eq=fp,we.escape=_He,we.escapeRegExp=bHe,we.every=OJe,we.find=MJe,we.findIndex=$ne,we.findKey=jje,we.findLast=BJe,we.findLastIndex=Kne,we.findLastKey=Hje,we.floor=vWe,we.forEach=tre,we.forEachRight=nre,we.forIn=Wje,we.forInRight=Xje,we.forOwn=qje,we.forOwnRight=$je,we.get=qT,we.gt=hje,we.gte=mje,we.has=Zje,we.hasIn=$T,we.head=Zne,we.identity=Fu,we.includes=zJe,we.indexOf=BVe,we.inRange=gHe,we.invoke=eHe,we.isArguments=qv,we.isArray=lr,we.isArrayBuffer=gje,we.isArrayLike=Nu,we.isArrayLikeObject=Os,we.isBoolean=vje,we.isBuffer=e1,we.isDate=yje,we.isElement=xje,we.isEmpty=_je,we.isEqual=bje,we.isEqualWith=wje,we.isError=WT,we.isFinite=Pje,we.isFunction=Wh,we.isInteger=cre,we.isLength=Z9,we.isMap=dre,we.isMatch=kje,we.isMatchWith=Aje,we.isNaN=Cje,we.isNative=Sje,we.isNil=Eje,we.isNull=Oje,we.isNumber=pre,we.isObject=os,we.isObjectLike=vs,we.isPlainObject=Z5,we.isRegExp=XT,we.isSafeInteger=Mje,we.isSet=fre,we.isString=U9,we.isSymbol=dc,we.isTypedArray=x6,we.isUndefined=Bje,we.isWeakMap=Nje,we.isWeakSet=Gje,we.join=zVe,we.kebabCase=wHe,we.last=sd,we.lastIndexOf=TVe,we.lowerCase=PHe,we.lowerFirst=kHe,we.lt=Fje,we.lte=Ije,we.max=yWe,we.maxBy=xWe,we.mean=_We,we.meanBy=bWe,we.min=wWe,we.minBy=PWe,we.stubArray=tD,we.stubFalse=nD,we.stubObject=lWe,we.stubString=uWe,we.stubTrue=cWe,we.multiply=kWe,we.nth=DVe,we.noConflict=eWe,we.noop=eD,we.now=$9,we.pad=AHe,we.padEnd=CHe,we.padStart=SHe,we.parseInt=OHe,we.random=vHe,we.reduce=VJe,we.reduceRight=JJe,we.repeat=EHe,we.replace=MHe,we.result=aHe,we.round=AWe,we.runInContext=He,we.sample=HJe,we.size=qJe,we.snakeCase=BHe,we.some=$Je,we.sortedIndex=WVe,we.sortedIndexBy=XVe,we.sortedIndexOf=qVe,we.sortedLastIndex=$Ve,we.sortedLastIndexBy=KVe,we.sortedLastIndexOf=YVe,we.startCase=GHe,we.startsWith=FHe,we.subtract=CWe,we.sum=SWe,we.sumBy=OWe,we.template=IHe,we.times=dWe,we.toFinite=Xh,we.toInteger=vr,we.toLength=mre,we.toLower=zHe,we.toNumber=ad,we.toSafeInteger=zje,we.toString=ji,we.toUpper=THe,we.trim=DHe,we.trimEnd=RHe,we.trimStart=LHe,we.truncate=VHe,we.unescape=JHe,we.uniqueId=fWe,we.upperCase=jHe,we.upperFirst=KT,we.each=tre,we.eachRight=nre,we.first=Zne,QT(we,function(){var P={};return td(we,function(A,z){yi.call(we.prototype,z)||(P[z]=A)}),P}(),{chain:!1}),we.VERSION=t,no(["bind","bindKey","curry","curryRight","partial","partialRight"],function(P){we[P].placeholder=we}),no(["drop","take"],function(P,A){_r.prototype[P]=function(z){z=z===e?1:gs(vr(z),0);var te=this.__filtered__&&!A?new _r(this):this.clone();return te.__filtered__?te.__takeCount__=is(z,te.__takeCount__):te.__views__.push({size:is(z,S),type:P+(te.__dir__<0?"Right":"")}),te},_r.prototype[P+"Right"]=function(z){return this.reverse()[P](z).reverse()}}),no(["filter","map","takeWhile"],function(P,A){var z=A+1,te=z==H||z==j;_r.prototype[P]=function(ge){var ke=this.clone();return ke.__iteratees__.push({iteratee:En(ge,3),type:z}),ke.__filtered__=ke.__filtered__||te,ke}}),no(["head","last"],function(P,A){var z="take"+(A?"Right":"");_r.prototype[P]=function(){return this[z](1).value()[0]}}),no(["initial","tail"],function(P,A){var z="drop"+(A?"":"Right");_r.prototype[P]=function(){return this.__filtered__?new _r(this):this[z](1)}}),_r.prototype.compact=function(){return this.filter(Fu)},_r.prototype.find=function(P){return this.filter(P).head()},_r.prototype.findLast=function(P){return this.reverse().find(P)},_r.prototype.invokeMap=Sr(function(P,A){return typeof P=="function"?new _r(this):this.map(function(z){return rd(z,P,A)})}),_r.prototype.reject=function(P){return this.filter(Y9(En(P)))},_r.prototype.slice=function(P,A){P=vr(P);var z=this;return z.__filtered__&&(P>0||A<0)?new _r(z):(P<0?z=z.takeRight(-P):P&&(z=z.drop(P)),A!==e&&(A=vr(A),z=A<0?z.dropRight(-A):z.take(A-P)),z)},_r.prototype.takeRightWhile=function(P){return this.reverse().takeWhile(P).reverse()},_r.prototype.toArray=function(){return this.take(S)},td(_r.prototype,function(P,A){var z=/^(?:filter|find|map|reject)|While$/.test(A),te=/^(?:head|last)$/.test(A),ge=we[te?"take"+(A=="last"?"Right":""):A],ke=te||/^find/.test(A);!ge||(we.prototype[A]=function(){var Te=this.__wrapped__,Je=te?[1]:arguments,qe=Te instanceof _r,dt=Je[0],pt=qe||lr(Te),yt=function(Lr){var ti=ge.apply(we,Ba([Lr],Je));return te&&Tt?ti[0]:ti};pt&&z&&typeof dt=="function"&&dt.length!=1&&(qe=pt=!1);var Tt=this.__chain__,pn=!!this.__actions__.length,Nn=ke&&!Tt,br=qe&&!pn;if(!ke&&pt){Te=br?Te:new _r(this);var Gn=P.apply(Te,Je);return Gn.__actions__.push({func:X9,args:[yt],thisArg:e}),new Eu(Gn,Tt)}return Nn&&br?P.apply(this,Je):(Gn=this.thru(yt),Nn?te?Gn.value()[0]:Gn.value():Gn)})}),no(["pop","push","shift","sort","splice","unshift"],function(P){var A=zh[P],z=/^(?:push|sort|unshift)$/.test(P)?"tap":"thru",te=/^(?:pop|shift)$/.test(P);we.prototype[P]=function(){var ge=arguments;if(te&&!this.__chain__){var ke=this.value();return A.apply(lr(ke)?ke:[],ge)}return this[z](function(Te){return A.apply(lr(Te)?Te:[],ge)})}}),td(_r.prototype,function(P,A){var z=we[A];if(z){var te=z.name+"";yi.call(Km,te)||(Km[te]=[]),Km[te].push({name:A,func:z})}}),Km[R9(e,g).name]=[{name:"wrapper",func:e}],_r.prototype.clone=$z,_r.prototype.reverse=Kz,_r.prototype.value=Yz,we.prototype.at=xJe,we.prototype.chain=_Je,we.prototype.commit=bJe,we.prototype.next=wJe,we.prototype.plant=kJe,we.prototype.reverse=AJe,we.prototype.toJSON=we.prototype.valueOf=we.prototype.value=CJe,we.prototype.first=we.prototype.head,nt&&(we.prototype[nt]=PJe),we},Qc=N5();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Wo._=Qc,define(function(){return Qc})):Cu?((Cu.exports=Qc)._=Qc,Mh._=Qc):Wo._=Qc}).call($x)});var Yx=ne((fbn,T0)=>{function g$(e){return T0.exports=g$=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},T0.exports.__esModule=!0,T0.exports.default=T0.exports,g$(e)}T0.exports=g$,T0.exports.__esModule=!0,T0.exports.default=T0.exports});var f6e=ne((hbn,a7)=>{var p6e=Yx().default;function qdt(e,t){if(p6e(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(p6e(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}a7.exports=qdt,a7.exports.__esModule=!0,a7.exports.default=a7.exports});var v$=ne((mbn,l7)=>{var $dt=Yx().default,Kdt=f6e();function Ydt(e){var t=Kdt(e,"string");return $dt(t)==="symbol"?t:String(t)}l7.exports=Ydt,l7.exports.__esModule=!0,l7.exports.default=l7.exports});var PM=ne((gbn,u7)=>{var Zdt=v$();function Udt(e,t,n){return t=Zdt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}u7.exports=Udt,u7.exports.__esModule=!0,u7.exports.default=u7.exports});var d7=ne((vbn,c7)=>{var Qdt=PM();function h6e(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 ept(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h6e(Object(n),!0).forEach(function(r){Qdt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h6e(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}c7.exports=ept,c7.exports.__esModule=!0,c7.exports.default=c7.exports});var m6e=ne((ybn,p7)=>{function tpt(e){if(Array.isArray(e))return e}p7.exports=tpt,p7.exports.__esModule=!0,p7.exports.default=p7.exports});var g6e=ne((xbn,f7)=>{function npt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}f7.exports=npt,f7.exports.__esModule=!0,f7.exports.default=f7.exports});var y$=ne((_bn,h7)=>{function rpt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}h7.exports=rpt,h7.exports.__esModule=!0,h7.exports.default=h7.exports});var x$=ne((bbn,m7)=>{var v6e=y$();function ipt(e,t){if(!!e){if(typeof e=="string")return v6e(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 v6e(e,t)}}m7.exports=ipt,m7.exports.__esModule=!0,m7.exports.default=m7.exports});var y6e=ne((wbn,g7)=>{function opt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}g7.exports=opt,g7.exports.__esModule=!0,g7.exports.default=g7.exports});var kM=ne((Pbn,v7)=>{var spt=m6e(),apt=g6e(),lpt=x$(),upt=y6e();function cpt(e,t){return spt(e)||apt(e,t)||lpt(e,t)||upt()}v7.exports=cpt,v7.exports.__esModule=!0,v7.exports.default=v7.exports});var x6e=ne((kbn,y7)=>{function dpt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}y7.exports=dpt,y7.exports.__esModule=!0,y7.exports.default=y7.exports});var _7=ne((Abn,x7)=>{var ppt=x6e();function fpt(e,t){if(e==null)return{};var n=ppt(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}x7.exports=fpt,x7.exports.__esModule=!0,x7.exports.default=x7.exports});var w6e=ne(b6e=>{"use strict";var _6e=d7(),_$=kM(),hpt=_7(),ty=Pe(),mpt=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function gpt(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,o=e.defaultValue,s=o===void 0?null:o,a=e.inputValue,l=e.menuIsOpen,u=e.onChange,c=e.onInputChange,f=e.onMenuClose,d=e.onMenuOpen,h=e.value,m=hpt(e,mpt),g=ty.useState(a!==void 0?a:n),b=_$(g,2),v=b[0],x=b[1],y=ty.useState(l!==void 0?l:i),_=_$(y,2),w=_[0],k=_[1],O=ty.useState(h!==void 0?h:s),M=_$(O,2),I=M[0],W=M[1],J=ty.useCallback(function(C,S){typeof u=="function"&&u(C,S),W(C)},[u]),H=ty.useCallback(function(C,S){var G;typeof c=="function"&&(G=c(C,S)),x(G!==void 0?G:C)},[c]),ee=ty.useCallback(function(){typeof d=="function"&&d(),k(!0)},[d]),j=ty.useCallback(function(){typeof f=="function"&&f(),k(!1)},[f]),V=a!==void 0?a:v,B=l!==void 0?l:w,N=h!==void 0?h:I;return _6e(_6e({},m),{},{inputValue:V,menuIsOpen:B,onChange:J,onInputChange:H,onMenuClose:j,onMenuOpen:ee,value:N})}b6e.useStateManager=gpt});var Zx=ne((Sbn,D0)=>{function b$(){return D0.exports=b$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D0.exports.__esModule=!0,D0.exports.default=D0.exports,b$.apply(this,arguments)}D0.exports=b$,D0.exports.__esModule=!0,D0.exports.default=D0.exports});var w$=ne((Obn,b7)=>{function vpt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}b7.exports=vpt,b7.exports.__esModule=!0,b7.exports.default=b7.exports});var P$=ne((Ebn,w7)=>{var ypt=v$();function P6e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ypt(r.key),r)}}function xpt(e,t,n){return t&&P6e(e.prototype,t),n&&P6e(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}w7.exports=xpt,w7.exports.__esModule=!0,w7.exports.default=w7.exports});var k6e=ne((Mbn,R0)=>{function k$(e,t){return R0.exports=k$=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},R0.exports.__esModule=!0,R0.exports.default=R0.exports,k$(e,t)}R0.exports=k$,R0.exports.__esModule=!0,R0.exports.default=R0.exports});var A$=ne((Bbn,P7)=>{var _pt=k6e();function bpt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_pt(e,t)}P7.exports=bpt,P7.exports.__esModule=!0,P7.exports.default=P7.exports});var A6e=ne((Nbn,L0)=>{function C$(e){return L0.exports=C$=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},L0.exports.__esModule=!0,L0.exports.default=L0.exports,C$(e)}L0.exports=C$,L0.exports.__esModule=!0,L0.exports.default=L0.exports});var C6e=ne((Gbn,k7)=>{function wpt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}k7.exports=wpt,k7.exports.__esModule=!0,k7.exports.default=k7.exports});var S6e=ne((Fbn,A7)=>{function Ppt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}A7.exports=Ppt,A7.exports.__esModule=!0,A7.exports.default=A7.exports});var O6e=ne((Ibn,C7)=>{var kpt=Yx().default,Apt=S6e();function Cpt(e,t){if(t&&(kpt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Apt(e)}C7.exports=Cpt,C7.exports.__esModule=!0,C7.exports.default=C7.exports});var S$=ne((zbn,S7)=>{var E6e=A6e(),Spt=C6e(),Opt=O6e();function Ept(e){var t=Spt();return function(){var r=E6e(e),i;if(t){var o=E6e(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Opt(this,i)}}S7.exports=Ept,S7.exports.__esModule=!0,S7.exports.default=S7.exports});var M6e=ne((Tbn,O7)=>{var Mpt=y$();function Bpt(e){if(Array.isArray(e))return Mpt(e)}O7.exports=Bpt,O7.exports.__esModule=!0,O7.exports.default=O7.exports});var B6e=ne((Dbn,E7)=>{function Npt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}E7.exports=Npt,E7.exports.__esModule=!0,E7.exports.default=E7.exports});var N6e=ne((Rbn,M7)=>{function Gpt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}M7.exports=Gpt,M7.exports.__esModule=!0,M7.exports.default=M7.exports});var O$=ne((Lbn,B7)=>{var Fpt=M6e(),Ipt=B6e(),zpt=x$(),Tpt=N6e();function Dpt(e){return Fpt(e)||Ipt(e)||zpt(e)||Tpt()}B7.exports=Dpt,B7.exports.__esModule=!0,B7.exports.default=B7.exports});var G6e=ne(E$=>{"use strict";Object.defineProperty(E$,"__esModule",{value:!0});function Rpt(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Lpt(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Vpt=function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Lpt(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Rpt(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},e}();E$.StyleSheet=Vpt});var I6e=ne((Jbn,F6e)=>{"use strict";F6e.exports=G6e()});var T6e=ne((AM,z6e)=>{(function(e,t){typeof AM=="object"&&typeof z6e<"u"?t(AM):typeof define=="function"&&define.amd?define(["exports"],t):(e=e||self,t(e.stylis={}))})(AM,function(e){"use strict";var t="-ms-",n="-moz-",r="-webkit-",i="comm",o="rule",s="decl",a="@page",l="@media",u="@import",c="@charset",f="@viewport",d="@supports",h="@document",m="@namespace",g="@keyframes",b="@font-face",v="@counter-style",x="@font-feature-values",y="@layer",_=Math.abs,w=String.fromCharCode,k=Object.assign;function O(fe,be){return H(fe,0)^45?(((be<<2^H(fe,0))<<2^H(fe,1))<<2^H(fe,2))<<2^H(fe,3):0}function M(fe){return fe.trim()}function I(fe,be){return(fe=be.exec(fe))?fe[0]:fe}function W(fe,be,ye){return fe.replace(be,ye)}function J(fe,be){return fe.indexOf(be)}function H(fe,be){return fe.charCodeAt(be)|0}function ee(fe,be,ye){return fe.slice(be,ye)}function j(fe){return fe.length}function V(fe){return fe.length}function B(fe,be){return be.push(fe),fe}function N(fe,be){return fe.map(be).join("")}e.line=1,e.column=1,e.length=0,e.position=0,e.character=0,e.characters="";function C(fe,be,ye,Oe,Me,Ke,gt){return{value:fe,root:be,parent:ye,type:Oe,props:Me,children:Ke,line:e.line,column:e.column,length:gt,return:""}}function S(fe,be){return k(C("",null,null,"",null,null,0),fe,{length:-fe.length},be)}function G(){return e.character}function T(){return e.character=e.position>0?H(e.characters,--e.position):0,e.column--,e.character===10&&(e.column=1,e.line--),e.character}function Q(){return e.character=e.position<e.length?H(e.characters,e.position++):0,e.column++,e.character===10&&(e.column=1,e.line++),e.character}function U(){return H(e.characters,e.position)}function F(){return e.position}function D(fe,be){return ee(e.characters,fe,be)}function L(fe){switch(fe){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $(fe){return e.line=e.column=1,e.length=j(e.characters=fe),e.position=0,[]}function Z(fe){return e.characters="",fe}function se(fe){return M(D(e.position-1,de(fe===91?fe+2:fe===40?fe+1:fe)))}function Y(fe){return Z(pe($(fe)))}function ue(fe){for(;(e.character=U())&&e.character<33;)Q();return L(fe)>2||L(e.character)>3?"":" "}function pe(fe){for(;Q();)switch(L(e.character)){case 0:B(Ae(e.position-1),fe);break;case 2:B(se(e.character),fe);break;default:B(w(e.character),fe)}return fe}function oe(fe,be){for(;--be&&Q()&&!(e.character<48||e.character>102||e.character>57&&e.character<65||e.character>70&&e.character<97););return D(fe,F()+(be<6&&U()==32&&Q()==32))}function de(fe){for(;Q();)switch(e.character){case fe:return e.position;case 34:case 39:fe!==34&&fe!==39&&de(e.character);break;case 40:fe===41&&de(fe);break;case 92:Q();break}return e.position}function ve(fe,be){for(;Q()&&fe+e.character!==47+10;)if(fe+e.character===42+42&&U()===47)break;return"/*"+D(be,e.position-1)+"*"+w(fe===47?fe:Q())}function Ae(fe){for(;!L(U());)Q();return D(fe,e.position)}function Ce(fe){return Z(Ge("",null,null,null,[""],fe=$(fe),0,[0],fe))}function Ge(fe,be,ye,Oe,Me,Ke,gt,ft,Bt){for(var Ft=0,Kn=0,Ut=gt,ln=0,Yn=0,jn=0,Hn=1,dn=1,cr=1,Bn=0,Si="",ir=Me,Mr=Ke,ct=Oe,_n=Si;dn;)switch(jn=Bn,Bn=Q()){case 40:if(jn!=108&&H(_n,Ut-1)==58){J(_n+=W(se(Bn),"&","&\f"),"&\f")!=-1&&(cr=-1);break}case 34:case 39:case 91:_n+=se(Bn);break;case 9:case 10:case 13:case 32:_n+=ue(jn);break;case 92:_n+=oe(F()-1,7);continue;case 47:switch(U()){case 42:case 47:B(Ne(ve(Q(),F()),be,ye),Bt);break;default:_n+="/"}break;case 123*Hn:ft[Ft++]=j(_n)*cr;case 125*Hn:case 59:case 0:switch(Bn){case 0:case 125:dn=0;case 59+Kn:cr==-1&&(_n=W(_n,/\f/g,"")),Yn>0&&j(_n)-Ut&&B(Yn>32?De(_n+";",Oe,ye,Ut-1):De(W(_n," ","")+";",Oe,ye,Ut-2),Bt);break;case 59:_n+=";";default:if(B(ct=Ee(_n,be,ye,Ft,Kn,Me,ft,Si,ir=[],Mr=[],Ut),Ke),Bn===123)if(Kn===0)Ge(_n,be,ct,ct,ir,Ke,Ut,ft,Mr);else switch(ln===99&&H(_n,3)===110?100:ln){case 100:case 108:case 109:case 115:Ge(fe,ct,ct,Oe&&B(Ee(fe,ct,ct,0,0,Me,ft,Si,Me,ir=[],Ut),Mr),Me,Mr,Ut,ft,Oe?ir:Mr);break;default:Ge(_n,ct,ct,ct,[""],Mr,0,ft,Mr)}}Ft=Kn=Yn=0,Hn=cr=1,Si=_n="",Ut=gt;break;case 58:Ut=1+j(_n),Yn=jn;default:if(Hn<1){if(Bn==123)--Hn;else if(Bn==125&&Hn++==0&&T()==125)continue}switch(_n+=w(Bn),Bn*Hn){case 38:cr=Kn>0?1:(_n+="\f",-1);break;case 44:ft[Ft++]=(j(_n)-1)*cr,cr=1;break;case 64:U()===45&&(_n+=se(Q())),ln=U(),Kn=Ut=j(Si=_n+=Ae(F())),Bn++;break;case 45:jn===45&&j(_n)==2&&(Hn=0)}}return Ke}function Ee(fe,be,ye,Oe,Me,Ke,gt,ft,Bt,Ft,Kn){for(var Ut=Me-1,ln=Me===0?Ke:[""],Yn=V(ln),jn=0,Hn=0,dn=0;jn<Oe;++jn)for(var cr=0,Bn=ee(fe,Ut+1,Ut=_(Hn=gt[jn])),Si=fe;cr<Yn;++cr)(Si=M(Hn>0?ln[cr]+" "+Bn:W(Bn,/&\f/g,ln[cr])))&&(Bt[dn++]=Si);return C(fe,be,ye,Me===0?o:ft,Bt,Ft,Kn)}function Ne(fe,be,ye){return C(fe,be,ye,i,w(G()),ee(fe,2,-2),0)}function De(fe,be,ye,Oe){return C(fe,be,ye,s,ee(fe,0,Oe),ee(fe,Oe+1,-1),Oe)}function Ue(fe,be,ye){switch(O(fe,be)){case 5103:return r+"print-"+fe+fe;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return r+fe+fe;case 4789:return n+fe+fe;case 5349:case 4246:case 4810:case 6968:case 2756:return r+fe+n+fe+t+fe+fe;case 5936:switch(H(fe,be+11)){case 114:return r+fe+t+W(fe,/[svh]\w+-[tblr]{2}/,"tb")+fe;case 108:return r+fe+t+W(fe,/[svh]\w+-[tblr]{2}/,"tb-rl")+fe;case 45:return r+fe+t+W(fe,/[svh]\w+-[tblr]{2}/,"lr")+fe}case 6828:case 4268:case 2903:return r+fe+t+fe+fe;case 6165:return r+fe+t+"flex-"+fe+fe;case 5187:return r+fe+W(fe,/(\w+).+(:[^]+)/,r+"box-$1$2"+t+"flex-$1$2")+fe;case 5443:return r+fe+t+"flex-item-"+W(fe,/flex-|-self/g,"")+(I(fe,/flex-|baseline/)?"":t+"grid-row-"+W(fe,/flex-|-self/g,""))+fe;case 4675:return r+fe+t+"flex-line-pack"+W(fe,/align-content|flex-|-self/g,"")+fe;case 5548:return r+fe+t+W(fe,"shrink","negative")+fe;case 5292:return r+fe+t+W(fe,"basis","preferred-size")+fe;case 6060:return r+"box-"+W(fe,"-grow","")+r+fe+t+W(fe,"grow","positive")+fe;case 4554:return r+W(fe,/([^-])(transform)/g,"$1"+r+"$2")+fe;case 6187:return W(W(W(fe,/(zoom-|grab)/,r+"$1"),/(image-set)/,r+"$1"),fe,"")+fe;case 5495:case 3959:return W(fe,/(image-set\([^]*)/,r+"$1$`$1");case 4968:return W(W(fe,/(.+:)(flex-)?(.*)/,r+"box-pack:$3"+t+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+r+fe+fe;case 4200:if(!I(fe,/flex-|baseline/))return t+"grid-column-align"+ee(fe,be)+fe;break;case 2592:case 3360:return t+W(fe,"template-","")+fe;case 4384:case 3616:return ye&&ye.some(function(Oe,Me){return be=Me,I(Oe.props,/grid-\w+-end/)})?~J(fe+(ye=ye[be].value),"span")?fe:t+W(fe,"-start","")+fe+t+"grid-row-span:"+(~J(ye,"span")?I(ye,/\d+/):+I(ye,/\d+/)-+I(fe,/\d+/))+";":t+W(fe,"-start","")+fe;case 4896:case 4128:return ye&&ye.some(function(Oe){return I(Oe.props,/grid-\w+-start/)})?fe:t+W(W(fe,"-end","-span"),"span ","")+fe;case 4095:case 3583:case 4068:case 2532:return W(fe,/(.+)-inline(.+)/,r+"$1$2")+fe;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(j(fe)-1-be>6)switch(H(fe,be+1)){case 109:if(H(fe,be+4)!==45)break;case 102:return W(fe,/(.+:)(.+)-([^]+)/,"$1"+r+"$2-$3$1"+n+(H(fe,be+3)==108?"$3":"$2-$3"))+fe;case 115:return~J(fe,"stretch")?Ue(W(fe,"stretch","fill-available"),be,ye)+fe:fe}break;case 5152:case 5920:return W(fe,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(Oe,Me,Ke,gt,ft,Bt,Ft){return t+Me+":"+Ke+Ft+(gt?t+Me+"-span:"+(ft?Bt:+Bt-+Ke)+Ft:"")+fe});case 4949:if(H(fe,be+6)===121)return W(fe,":",":"+r)+fe;break;case 6444:switch(H(fe,H(fe,14)===45?18:11)){case 120:return W(fe,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+r+(H(fe,14)===45?"inline-":"")+"box$3$1"+r+"$2$3$1"+t+"$2box$3")+fe;case 100:return W(fe,":",":"+t)+fe}break;case 5719:case 2647:case 2135:case 3927:case 2391:return W(fe,"scroll-","scroll-snap-")+fe}return fe}function Re(fe,be){for(var ye="",Oe=V(fe),Me=0;Me<Oe;Me++)ye+=be(fe[Me],Me,fe,be)||"";return ye}function je(fe,be,ye,Oe){switch(fe.type){case y:if(fe.children.length)break;case u:case s:return fe.return=fe.return||fe.value;case i:return"";case g:return fe.return=fe.value+"{"+Re(fe.children,Oe)+"}";case o:fe.value=fe.props.join(",")}return j(ye=Re(fe.children,Oe))?fe.return=fe.value+"{"+ye+"}":""}function $e(fe){var be=V(fe);return function(ye,Oe,Me,Ke){for(var gt="",ft=0;ft<be;ft++)gt+=fe[ft](ye,Oe,Me,Ke)||"";return gt}}function Le(fe){return function(be){be.root||(be=be.return)&&fe(be)}}function Xe(fe,be,ye,Oe){if(fe.length>-1&&!fe.return)switch(fe.type){case s:fe.return=Ue(fe.value,fe.length,ye);return;case g:return Re([S(fe,{value:W(fe.value,"@","@"+r)})],Oe);case o:if(fe.length)return N(fe.props,function(Me){switch(I(Me,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Re([S(fe,{props:[W(Me,/:(read-\w+)/,":"+n+"$1")]})],Oe);case"::placeholder":return Re([S(fe,{props:[W(Me,/:(plac\w+)/,":"+r+"input-$1")]}),S(fe,{props:[W(Me,/:(plac\w+)/,":"+n+"$1")]}),S(fe,{props:[W(Me,/:(plac\w+)/,t+"input-$1")]})],Oe)}return""})}}function mt(fe){switch(fe.type){case o:fe.props=fe.props.map(function(be){return N(Y(be),function(ye,Oe,Me){switch(H(ye,0)){case 12:return ee(ye,1,j(ye));case 0:case 40:case 43:case 62:case 126:return ye;case 58:Me[++Oe]==="global"&&(Me[Oe]="",Me[++Oe]="\f"+ee(Me[Oe],Oe=1,-1));case 32:return Oe===1?"":ye;default:switch(Oe){case 0:return fe=ye,V(Me)>1?"":ye;case(Oe=V(Me)-1):case 2:return Oe===2?ye+fe+fe:ye+fe;default:return ye}}})})}}e.CHARSET=c,e.COMMENT=i,e.COUNTER_STYLE=v,e.DECLARATION=s,e.DOCUMENT=h,e.FONT_FACE=b,e.FONT_FEATURE_VALUES=x,e.IMPORT=u,e.KEYFRAMES=g,e.LAYER=y,e.MEDIA=l,e.MOZ=n,e.MS=t,e.NAMESPACE=m,e.PAGE=a,e.RULESET=o,e.SUPPORTS=d,e.VIEWPORT=f,e.WEBKIT=r,e.abs=_,e.alloc=$,e.append=B,e.assign=k,e.caret=F,e.char=G,e.charat=H,e.combine=N,e.comment=Ne,e.commenter=ve,e.compile=Ce,e.copy=S,e.dealloc=Z,e.declaration=De,e.delimit=se,e.delimiter=de,e.escaping=oe,e.from=w,e.hash=O,e.identifier=Ae,e.indexof=J,e.match=I,e.middleware=$e,e.namespace=mt,e.next=Q,e.node=C,e.parse=Ge,e.peek=U,e.prefix=Ue,e.prefixer=Xe,e.prev=T,e.replace=W,e.ruleset=Ee,e.rulesheet=Le,e.serialize=Re,e.sizeof=V,e.slice=D,e.stringify=je,e.strlen=j,e.substr=ee,e.token=L,e.tokenize=Y,e.tokenizer=pe,e.trim=M,e.whitespace=ue,Object.defineProperty(e,"__esModule",{value:!0})})});var D6e=ne(M$=>{"use strict";Object.defineProperty(M$,"__esModule",{value:!0});var Jpt=function(t){var n=new WeakMap;return function(r){if(n.has(r))return n.get(r);var i=t(r);return n.set(r,i),i}};M$.default=Jpt});var CM=ne((Hbn,R6e)=>{"use strict";R6e.exports=D6e()});var L6e=ne(B$=>{"use strict";Object.defineProperty(B$,"__esModule",{value:!0});function jpt(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}B$.default=jpt});var N$=ne((Xbn,V6e)=>{"use strict";V6e.exports=L6e()});var W6e=ne(G$=>{"use strict";Object.defineProperty(G$,"__esModule",{value:!0});var Hpt=I6e(),at=T6e(),Wpt=CM(),Xpt=N$();function j6e(e){return e&&e.__esModule?e:{default:e}}var qpt=j6e(Wpt),$pt=j6e(Xpt),Kpt=function(t,n,r){for(var i=0,o=0;i=o,o=at.peek(),i===38&&o===12&&(n[r]=1),!at.token(o);)at.next();return at.slice(t,at.position)},Ypt=function(t,n){var r=-1,i=44;do switch(at.token(i)){case 0:i===38&&at.peek()===12&&(n[r]=1),t[r]+=Kpt(at.position-1,n,r);break;case 2:t[r]+=at.delimit(i);break;case 4:if(i===44){t[++r]=at.peek()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=at.from(i)}while(i=at.next());return t},Zpt=function(t,n){return at.dealloc(Ypt(at.alloc(t),n))},J6e=new WeakMap,Upt=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!J6e.get(r))&&!i){J6e.set(t,!0);for(var o=[],s=Zpt(n,o),a=r.props,l=0,u=0;l<s.length;l++)for(var c=0;c<a.length;c++,u++)t.props[u]=o[l]?s[l].replace(/&\f/g,a[c]):a[c]+" "+s[l]}}},Qpt=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function H6e(e,t){switch(at.hash(e,t)){case 5103:return at.WEBKIT+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return at.WEBKIT+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return at.WEBKIT+e+at.MOZ+e+at.MS+e+e;case 6828:case 4268:return at.WEBKIT+e+at.MS+e+e;case 6165:return at.WEBKIT+e+at.MS+"flex-"+e+e;case 5187:return at.WEBKIT+e+at.replace(e,/(\w+).+(:[^]+)/,at.WEBKIT+"box-$1$2"+at.MS+"flex-$1$2")+e;case 5443:return at.WEBKIT+e+at.MS+"flex-item-"+at.replace(e,/flex-|-self/,"")+e;case 4675:return at.WEBKIT+e+at.MS+"flex-line-pack"+at.replace(e,/align-content|flex-|-self/,"")+e;case 5548:return at.WEBKIT+e+at.MS+at.replace(e,"shrink","negative")+e;case 5292:return at.WEBKIT+e+at.MS+at.replace(e,"basis","preferred-size")+e;case 6060:return at.WEBKIT+"box-"+at.replace(e,"-grow","")+at.WEBKIT+e+at.MS+at.replace(e,"grow","positive")+e;case 4554:return at.WEBKIT+at.replace(e,/([^-])(transform)/g,"$1"+at.WEBKIT+"$2")+e;case 6187:return at.replace(at.replace(at.replace(e,/(zoom-|grab)/,at.WEBKIT+"$1"),/(image-set)/,at.WEBKIT+"$1"),e,"")+e;case 5495:case 3959:return at.replace(e,/(image-set\([^]*)/,at.WEBKIT+"$1$`$1");case 4968:return at.replace(at.replace(e,/(.+:)(flex-)?(.*)/,at.WEBKIT+"box-pack:$3"+at.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+at.WEBKIT+e+e;case 4095:case 3583:case 4068:case 2532:return at.replace(e,/(.+)-inline(.+)/,at.WEBKIT+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(at.strlen(e)-1-t>6)switch(at.charat(e,t+1)){case 109:if(at.charat(e,t+4)!==45)break;case 102:return at.replace(e,/(.+:)(.+)-([^]+)/,"$1"+at.WEBKIT+"$2-$3$1"+at.MOZ+(at.charat(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~at.indexof(e,"stretch")?H6e(at.replace(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(at.charat(e,t+1)!==115)break;case 6444:switch(at.charat(e,at.strlen(e)-3-(~at.indexof(e,"!important")&&10))){case 107:return at.replace(e,":",":"+at.WEBKIT)+e;case 101:return at.replace(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+at.WEBKIT+(at.charat(e,14)===45?"inline-":"")+"box$3$1"+at.WEBKIT+"$2$3$1"+at.MS+"$2box$3")+e}break;case 5936:switch(at.charat(e,t+11)){case 114:return at.WEBKIT+e+at.MS+at.replace(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return at.WEBKIT+e+at.MS+at.replace(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return at.WEBKIT+e+at.MS+at.replace(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return at.WEBKIT+e+at.MS+e+e}return e}var eft=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case at.DECLARATION:t.return=H6e(t.value,t.length);break;case at.KEYFRAMES:return at.serialize([at.copy(t,{value:at.replace(t.value,"@","@"+at.WEBKIT)})],i);case at.RULESET:if(t.length)return at.combine(t.props,function(o){switch(at.match(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return at.serialize([at.copy(t,{props:[at.replace(o,/:(read-\w+)/,":"+at.MOZ+"$1")]})],i);case"::placeholder":return at.serialize([at.copy(t,{props:[at.replace(o,/:(plac\w+)/,":"+at.WEBKIT+"input-$1")]}),at.copy(t,{props:[at.replace(o,/:(plac\w+)/,":"+at.MOZ+"$1")]}),at.copy(t,{props:[at.replace(o,/:(plac\w+)/,at.MS+"input-$1")]})],i)}return""})}},SM=typeof document<"u",tft=SM?void 0:qpt.default(function(){return $pt.default(function(){var e={};return function(t){return e[t]}})}),nft=[eft],rft=function(t){var n=t.key;if(SM&&n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(_){var w=_.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var i=t.stylisPlugins||nft,o={},s,a=[];SM&&(s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(_){for(var w=_.getAttribute("data-emotion").split(" "),k=1;k<w.length;k++)o[w[k]]=!0;a.push(_)}));var l,u=[Upt,Qpt];if(SM){var c,f=[at.stringify,at.rulesheet(function(_){c.insert(_)})],d=at.middleware(u.concat(i,f)),h=function(w){return at.serialize(at.compile(w),d)};l=function(w,k,O,M){c=O,h(w?w+"{"+k.styles+"}":k.styles),M&&(y.inserted[k.name]=!0)}}else{var m=[at.stringify],g=at.middleware(u.concat(i,m)),b=function(w){return at.serialize(at.compile(w),g)},v=tft(i)(n),x=function(w,k){var O=k.name;return v[O]===void 0&&(v[O]=b(w?w+"{"+k.styles+"}":k.styles)),v[O]};l=function(w,k,O,M){var I=k.name,W=x(w,k);if(y.compat===void 0)return M&&(y.inserted[I]=!0),W;if(M)y.inserted[I]=W;else return W}}var y={key:n,sheet:new Hpt.StyleSheet({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return y.sheet.hydrate(a),y};G$.default=rft});var OM=ne(($bn,X6e)=>{"use strict";X6e.exports=W6e()});var $6e=ne(Zi=>{"use strict";var ya=typeof Symbol=="function"&&Symbol.for,F$=ya?Symbol.for("react.element"):60103,I$=ya?Symbol.for("react.portal"):60106,EM=ya?Symbol.for("react.fragment"):60107,MM=ya?Symbol.for("react.strict_mode"):60108,BM=ya?Symbol.for("react.profiler"):60114,NM=ya?Symbol.for("react.provider"):60109,GM=ya?Symbol.for("react.context"):60110,z$=ya?Symbol.for("react.async_mode"):60111,FM=ya?Symbol.for("react.concurrent_mode"):60111,IM=ya?Symbol.for("react.forward_ref"):60112,zM=ya?Symbol.for("react.suspense"):60113,ift=ya?Symbol.for("react.suspense_list"):60120,TM=ya?Symbol.for("react.memo"):60115,DM=ya?Symbol.for("react.lazy"):60116,oft=ya?Symbol.for("react.block"):60121,sft=ya?Symbol.for("react.fundamental"):60117,aft=ya?Symbol.for("react.responder"):60118,lft=ya?Symbol.for("react.scope"):60119;function Bc(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case F$:switch(e=e.type,e){case z$:case FM:case EM:case BM:case MM:case zM:return e;default:switch(e=e&&e.$$typeof,e){case GM:case IM:case DM:case TM:case NM:return e;default:return t}}case I$:return t}}}function q6e(e){return Bc(e)===FM}Zi.AsyncMode=z$;Zi.ConcurrentMode=FM;Zi.ContextConsumer=GM;Zi.ContextProvider=NM;Zi.Element=F$;Zi.ForwardRef=IM;Zi.Fragment=EM;Zi.Lazy=DM;Zi.Memo=TM;Zi.Portal=I$;Zi.Profiler=BM;Zi.StrictMode=MM;Zi.Suspense=zM;Zi.isAsyncMode=function(e){return q6e(e)||Bc(e)===z$};Zi.isConcurrentMode=q6e;Zi.isContextConsumer=function(e){return Bc(e)===GM};Zi.isContextProvider=function(e){return Bc(e)===NM};Zi.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===F$};Zi.isForwardRef=function(e){return Bc(e)===IM};Zi.isFragment=function(e){return Bc(e)===EM};Zi.isLazy=function(e){return Bc(e)===DM};Zi.isMemo=function(e){return Bc(e)===TM};Zi.isPortal=function(e){return Bc(e)===I$};Zi.isProfiler=function(e){return Bc(e)===BM};Zi.isStrictMode=function(e){return Bc(e)===MM};Zi.isSuspense=function(e){return Bc(e)===zM};Zi.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===EM||e===FM||e===BM||e===MM||e===zM||e===ift||typeof e=="object"&&e!==null&&(e.$$typeof===DM||e.$$typeof===TM||e.$$typeof===NM||e.$$typeof===GM||e.$$typeof===IM||e.$$typeof===sft||e.$$typeof===aft||e.$$typeof===lft||e.$$typeof===oft)};Zi.typeOf=Bc});var Y6e=ne((Ybn,K6e)=>{"use strict";K6e.exports=$6e()});var R$=ne((Zbn,n3e)=>{"use strict";var T$=Y6e(),uft={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},cft={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},dft={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},e3e={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},D$={};D$[T$.ForwardRef]=dft;D$[T$.Memo]=e3e;function Z6e(e){return T$.isMemo(e)?e3e:D$[e.$$typeof]||uft}var pft=Object.defineProperty,fft=Object.getOwnPropertyNames,U6e=Object.getOwnPropertySymbols,hft=Object.getOwnPropertyDescriptor,mft=Object.getPrototypeOf,Q6e=Object.prototype;function t3e(e,t,n){if(typeof t!="string"){if(Q6e){var r=mft(t);r&&r!==Q6e&&t3e(e,r,n)}var i=fft(t);U6e&&(i=i.concat(U6e(t)));for(var o=Z6e(e),s=Z6e(t),a=0;a<i.length;++a){var l=i[a];if(!cft[l]&&!(n&&n[l])&&!(s&&s[l])&&!(o&&o[l])){var u=hft(t,l);try{pft(e,l,u)}catch{}}}}return e}n3e.exports=t3e});var V$=ne(L$=>{"use strict";Object.defineProperty(L$,"__esModule",{value:!0});var gft=R$();function vft(e){return e&&e.__esModule?e:{default:e}}var yft=vft(gft),xft=function(e,t){return yft.default(e,t)};L$.default=xft});var i3e=ne(N7=>{"use strict";Object.defineProperty(N7,"__esModule",{value:!0});var J$=typeof document<"u";function _ft(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var r3e=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||J$===!1&&t.compat!==void 0)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},bft=function(t,n,r){r3e(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o="",s=n;do{var a=t.insert(n===s?"."+i:"",s,t.sheet,!0);!J$&&a!==void 0&&(o+=a),s=s.next}while(s!==void 0);if(!J$&&o.length!==0)return o}};N7.getRegisteredStyles=_ft;N7.insertStyles=bft;N7.registerStyles=r3e});var j$=ne((e8n,o3e)=>{"use strict";o3e.exports=i3e()});var s3e=ne(H$=>{"use strict";Object.defineProperty(H$,"__esModule",{value:!0});function wft(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}H$.default=wft});var l3e=ne((n8n,a3e)=>{"use strict";a3e.exports=s3e()});var u3e=ne(W$=>{"use strict";Object.defineProperty(W$,"__esModule",{value:!0});var Pft={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};W$.default=Pft});var d3e=ne((i8n,c3e)=>{"use strict";c3e.exports=u3e()});var g3e=ne($$=>{"use strict";Object.defineProperty($$,"__esModule",{value:!0});var kft=l3e(),Aft=d3e(),Cft=N$();function q$(e){return e&&e.__esModule?e:{default:e}}var Sft=q$(kft),Oft=q$(Aft),Eft=q$(Cft),Mft=/[A-Z]|^ms/g,Bft=/_EMO_([^_]+?)_([^]*?)_EMO_/g,m3e=function(t){return t.charCodeAt(1)===45},p3e=function(t){return t!=null&&typeof t!="boolean"},X$=Eft.default(function(e){return m3e(e)?e:e.replace(Mft,"-$&").toLowerCase()}),f3e=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Bft,function(r,i,o){return rh={name:i,styles:o,next:rh},i})}return Oft.default[t]!==1&&!m3e(t)&&typeof n=="number"&&n!==0?n+"px":n};function G7(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return rh={name:n.name,styles:n.styles,next:rh},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)rh={name:r.name,styles:r.styles,next:rh},r=r.next;var i=n.styles+";";return i}return Nft(e,t,n)}case"function":{if(e!==void 0){var o=rh,s=n(e);return rh=o,G7(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function Nft(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=G7(e,t,n[i])+";";else for(var o in n){var s=n[o];if(typeof s!="object")t!=null&&t[s]!==void 0?r+=o+"{"+t[s]+"}":p3e(s)&&(r+=X$(o)+":"+f3e(o,s)+";");else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var a=0;a<s.length;a++)p3e(s[a])&&(r+=X$(o)+":"+f3e(o,s[a])+";");else{var l=G7(e,t,s);switch(o){case"animation":case"animationName":{r+=X$(o)+":"+l+";";break}default:r+=o+"{"+l+"}"}}}return r}var h3e=/label:\s*([^\s;\n{]+)\s*(;|$)/g,rh,Gft=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,o="";rh=void 0;var s=t[0];s==null||s.raw===void 0?(i=!1,o+=G7(r,n,s)):o+=s[0];for(var a=1;a<t.length;a++)o+=G7(r,n,t[a]),i&&(o+=s[a]);h3e.lastIndex=0;for(var l="",u;(u=h3e.exec(o))!==null;)l+="-"+u[1];var c=Sft.default(o)+l;return{name:c,styles:o,next:rh}};$$.serializeStyles=Gft});var K$=ne((s8n,v3e)=>{"use strict";v3e.exports=g3e()});var _3e=ne(RM=>{"use strict";Object.defineProperty(RM,"__esModule",{value:!0});var Fft=Pe();function Ift(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var Y$=Ift(Fft),zft=typeof document<"u",y3e=function(t){return t()},x3e=Y$["useInsertionEffect"]?Y$["useInsertionEffect"]:!1,Tft=zft&&x3e||y3e,Dft=x3e||Y$.useLayoutEffect;RM.useInsertionEffectAlwaysWithSyncFallback=Tft;RM.useInsertionEffectWithLayoutFallback=Dft});var Z$=ne((l8n,b3e)=>{"use strict";b3e.exports=_3e()});var C3e=ne(qu=>{"use strict";var F7=Pe(),Rft=OM(),P3e=Zx(),Lft=CM(),Vft=V$(),U$=j$(),Jft=K$(),jft=Z$();function k3e(e){return e&&e.__esModule?e:{default:e}}function Hft(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var au=Hft(F7),A3e=k3e(Rft),w3e=k3e(Lft),eK=typeof document<"u",tK={}.hasOwnProperty,I7=au.createContext(typeof HTMLElement<"u"?A3e.default({key:"css"}):null),Wft=I7.Provider,Xft=function(){return F7.useContext(I7)};qu.withEmotionCache=function(t){return F7.forwardRef(function(n,r){var i=F7.useContext(I7);return t(n,i,r)})};eK||(qu.withEmotionCache=function(t){return function(n){var r=F7.useContext(I7);return r===null?(r=A3e.default({key:"css"}),au.createElement(I7.Provider,{value:r},t(n,r))):t(n,r)}});var Ux=au.createContext({}),qft=function(){return au.useContext(Ux)},$ft=function(t,n){if(typeof n=="function"){var r=n(t);return r}return P3e({},t,n)},Kft=w3e.default(function(e){return w3e.default(function(t){return $ft(e,t)})}),Yft=function(t){var n=au.useContext(Ux);return t.theme!==n&&(n=Kft(n)(t.theme)),au.createElement(Ux.Provider,{value:n},t.children)};function Zft(e){var t=e.displayName||e.name||"Component",n=function(o,s){var a=au.useContext(Ux);return au.createElement(e,P3e({theme:a,ref:s},o))},r=au.forwardRef(n);return r.displayName="WithTheme("+t+")",Vft.default(r,e)}var Q$="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Uft=function(t,n){var r={};for(var i in n)tK.call(n,i)&&(r[i]=n[i]);return r[Q$]=t,r},Qft=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;U$.registerStyles(n,r,i);var o=jft.useInsertionEffectAlwaysWithSyncFallback(function(){return U$.insertStyles(n,r,i)});if(!eK&&o!==void 0){for(var s,a=r.name,l=r.next;l!==void 0;)a+=" "+l.name,l=l.next;return au.createElement("style",(s={},s["data-emotion"]=n.key+" "+a,s.dangerouslySetInnerHTML={__html:o},s.nonce=n.sheet.nonce,s))}return null},eht=qu.withEmotionCache(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Q$],o=[r],s="";typeof e.className=="string"?s=U$.getRegisteredStyles(t.registered,o,e.className):e.className!=null&&(s=e.className+" ");var a=Jft.serializeStyles(o,void 0,au.useContext(Ux));s+=t.key+"-"+a.name;var l={};for(var u in e)tK.call(e,u)&&u!=="css"&&u!==Q$&&(l[u]=e[u]);return l.ref=n,l.className=s,au.createElement(au.Fragment,null,au.createElement(Qft,{cache:t,serialized:a,isStringTag:typeof i=="string"}),au.createElement(i,l))}),tht=eht;qu.CacheProvider=Wft;qu.Emotion=tht;qu.ThemeContext=Ux;qu.ThemeProvider=Yft;qu.__unsafe_useEmotionCache=Xft;qu.createEmotionProps=Uft;qu.hasOwnProperty=tK;qu.isBrowser=eK;qu.useTheme=qft;qu.withTheme=Zft});var E3e=ne(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});var xa=C3e(),nht=Pe(),LM=j$(),nK=Z$(),rK=K$();OM();Zx();CM();V$();R$();function rht(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var ih=rht(nht),S3e=function(t,n){var r=arguments;if(n==null||!xa.hasOwnProperty.call(n,"css"))return ih.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=xa.Emotion,o[1]=xa.createEmotionProps(t,n);for(var s=2;s<i;s++)o[s]=r[s];return ih.createElement.apply(null,o)},iht=xa.withEmotionCache(function(e,t){var n=e.styles,r=rK.serializeStyles([n],void 0,ih.useContext(xa.ThemeContext));if(!xa.isBrowser){for(var i,o=r.name,s=r.styles,a=r.next;a!==void 0;)o+=" "+a.name,s+=a.styles,a=a.next;var l=t.compat===!0,u=t.insert("",{name:o,styles:s},t.sheet,l);return l?null:ih.createElement("style",(i={},i["data-emotion"]=t.key+"-global "+o,i.dangerouslySetInnerHTML={__html:u},i.nonce=t.sheet.nonce,i))}var c=ih.useRef();return nK.useInsertionEffectWithLayoutFallback(function(){var f=t.key+"-global",d=new t.sheet.constructor({key:f,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),h=!1,m=document.querySelector('style[data-emotion="'+f+" "+r.name+'"]');return t.sheet.tags.length&&(d.before=t.sheet.tags[0]),m!==null&&(h=!0,m.setAttribute("data-emotion",f),d.hydrate([m])),c.current=[d,h],function(){d.flush()}},[t]),nK.useInsertionEffectWithLayoutFallback(function(){var f=c.current,d=f[0],h=f[1];if(h){f[1]=!1;return}if(r.next!==void 0&&LM.insertStyles(t,r.next,!0),d.tags.length){var m=d.tags[d.tags.length-1].nextElementSibling;d.before=m,d.flush()}t.insert("",r,d,!1)},[t,r.name]),null});function O3e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return rK.serializeStyles(t)}var oht=function(){var t=O3e.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},sht=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(o!=null){var s=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))s=e(o);else{s="";for(var a in o)o[a]&&a&&(s&&(s+=" "),s+=a)}break}default:s=o}s&&(i&&(i+=" "),i+=s)}}return i};function aht(e,t,n){var r=[],i=LM.getRegisteredStyles(e,r,n);return r.length<2?n:i+t(r)}var lht=function(t){var n=t.cache,r=t.serializedArr,i=nK.useInsertionEffectAlwaysWithSyncFallback(function(){for(var s="",a=0;a<r.length;a++){var l=LM.insertStyles(n,r[a],!1);!xa.isBrowser&&l!==void 0&&(s+=l)}if(!xa.isBrowser)return s});if(!xa.isBrowser&&i.length!==0){var o;return ih.createElement("style",(o={},o["data-emotion"]=n.key+" "+r.map(function(s){return s.name}).join(" "),o.dangerouslySetInnerHTML={__html:i},o.nonce=n.sheet.nonce,o))}return null},uht=xa.withEmotionCache(function(e,t){var n=!1,r=[],i=function(){for(var u=arguments.length,c=new Array(u),f=0;f<u;f++)c[f]=arguments[f];var d=rK.serializeStyles(c,t.registered);return r.push(d),LM.registerStyles(t,d,!1),t.key+"-"+d.name},o=function(){for(var u=arguments.length,c=new Array(u),f=0;f<u;f++)c[f]=arguments[f];return aht(t.registered,i,sht(c))},s={css:i,cx:o,theme:ih.useContext(xa.ThemeContext)},a=e.children(s);return n=!0,ih.createElement(ih.Fragment,null,ih.createElement(lht,{cache:t,serializedArr:r}),a)});lu.CacheProvider=xa.CacheProvider;lu.ThemeContext=xa.ThemeContext;lu.ThemeProvider=xa.ThemeProvider;lu.__unsafe_useEmotionCache=xa.__unsafe_useEmotionCache;lu.useTheme=xa.useTheme;Object.defineProperty(lu,"withEmotionCache",{enumerable:!0,get:function(){return xa.withEmotionCache}});lu.withTheme=xa.withTheme;lu.ClassNames=uht;lu.Global=iht;lu.createElement=S3e;lu.css=O3e;lu.jsx=S3e;lu.keyframes=oht});var VM=ne((d8n,M3e)=>{"use strict";M3e.exports=E3e()});var iK=ne((p8n,z7)=>{function cht(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}z7.exports=cht,z7.exports.__esModule=!0,z7.exports.default=z7.exports});var N3e=ne((JM,B3e)=>{(function(e,t){typeof JM=="object"&&typeof B3e<"u"?t(JM):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.FloatingUICore={}))})(JM,function(e){"use strict";function t(F){return F.split("-")[1]}function n(F){return F==="y"?"height":"width"}function r(F){return F.split("-")[0]}function i(F){return["top","bottom"].includes(r(F))?"x":"y"}function o(F,D,L){let{reference:$,floating:Z}=F,se=$.x+$.width/2-Z.width/2,Y=$.y+$.height/2-Z.height/2,ue=i(D),pe=n(ue),oe=$[pe]/2-Z[pe]/2,de=r(D),ve=ue==="x",Ae;switch(de){case"top":Ae={x:se,y:$.y-Z.height};break;case"bottom":Ae={x:se,y:$.y+$.height};break;case"right":Ae={x:$.x+$.width,y:Y};break;case"left":Ae={x:$.x-Z.width,y:Y};break;default:Ae={x:$.x,y:$.y}}switch(t(D)){case"start":Ae[ue]-=oe*(L&&ve?-1:1);break;case"end":Ae[ue]+=oe*(L&&ve?-1:1);break}return Ae}let s=async(F,D,L)=>{let{placement:$="bottom",strategy:Z="absolute",middleware:se=[],platform:Y}=L,ue=se.filter(Boolean),pe=await(Y.isRTL==null?void 0:Y.isRTL(D)),oe=await Y.getElementRects({reference:F,floating:D,strategy:Z}),{x:de,y:ve}=o(oe,$,pe),Ae=$,Ce={},Ge=0;for(let Ee=0;Ee<ue.length;Ee++){let{name:Ne,fn:De}=ue[Ee],{x:Ue,y:Re,data:je,reset:$e}=await De({x:de,y:ve,initialPlacement:$,placement:Ae,strategy:Z,middlewareData:Ce,rects:oe,platform:Y,elements:{reference:F,floating:D}});if(de=Ue??de,ve=Re??ve,Ce={...Ce,[Ne]:{...Ce[Ne],...je}},$e&&Ge<=50){Ge++,typeof $e=="object"&&($e.placement&&(Ae=$e.placement),$e.rects&&(oe=$e.rects===!0?await Y.getElementRects({reference:F,floating:D,strategy:Z}):$e.rects),{x:de,y:ve}=o(oe,Ae,pe)),Ee=-1;continue}}return{x:de,y:ve,placement:Ae,strategy:Z,middlewareData:Ce}};function a(F){return{top:0,right:0,bottom:0,left:0,...F}}function l(F){return typeof F!="number"?a(F):{top:F,right:F,bottom:F,left:F}}function u(F){return{...F,top:F.y,left:F.x,right:F.x+F.width,bottom:F.y+F.height}}async function c(F,D){var L;D===void 0&&(D={});let{x:$,y:Z,platform:se,rects:Y,elements:ue,strategy:pe}=F,{boundary:oe="clippingAncestors",rootBoundary:de="viewport",elementContext:ve="floating",altBoundary:Ae=!1,padding:Ce=0}=D,Ge=l(Ce),Ne=ue[Ae?ve==="floating"?"reference":"floating":ve],De=u(await se.getClippingRect({element:(L=await(se.isElement==null?void 0:se.isElement(Ne)))==null||L?Ne:Ne.contextElement||await(se.getDocumentElement==null?void 0:se.getDocumentElement(ue.floating)),boundary:oe,rootBoundary:de,strategy:pe})),Ue=ve==="floating"?{...Y.floating,x:$,y:Z}:Y.reference,Re=await(se.getOffsetParent==null?void 0:se.getOffsetParent(ue.floating)),je=await(se.isElement==null?void 0:se.isElement(Re))?await(se.getScale==null?void 0:se.getScale(Re))||{x:1,y:1}:{x:1,y:1},$e=u(se.convertOffsetParentRelativeRectToViewportRelativeRect?await se.convertOffsetParentRelativeRectToViewportRelativeRect({rect:Ue,offsetParent:Re,strategy:pe}):Ue);return{top:(De.top-$e.top+Ge.top)/je.y,bottom:($e.bottom-De.bottom+Ge.bottom)/je.y,left:(De.left-$e.left+Ge.left)/je.x,right:($e.right-De.right+Ge.right)/je.x}}let f=Math.min,d=Math.max;function h(F,D,L){return d(F,f(D,L))}let m=F=>({name:"arrow",options:F,async fn(D){let{element:L,padding:$=0}=F||{},{x:Z,y:se,placement:Y,rects:ue,platform:pe,elements:oe}=D;if(L==null)return{};let de=l($),ve={x:Z,y:se},Ae=i(Y),Ce=n(Ae),Ge=await pe.getDimensions(L),Ee=Ae==="y",Ne=Ee?"top":"left",De=Ee?"bottom":"right",Ue=Ee?"clientHeight":"clientWidth",Re=ue.reference[Ce]+ue.reference[Ae]-ve[Ae]-ue.floating[Ce],je=ve[Ae]-ue.reference[Ae],$e=await(pe.getOffsetParent==null?void 0:pe.getOffsetParent(L)),Le=$e?$e[Ue]:0;(!Le||!await(pe.isElement==null?void 0:pe.isElement($e)))&&(Le=oe.floating[Ue]||ue.floating[Ce]);let Xe=Re/2-je/2,mt=de[Ne],fe=Le-Ge[Ce]-de[De],be=Le/2-Ge[Ce]/2+Xe,ye=h(mt,be,fe),Me=t(Y)!=null&&be!=ye&&ue.reference[Ce]/2-(be<mt?de[Ne]:de[De])-Ge[Ce]/2<0?be<mt?mt-be:fe-be:0;return{[Ae]:ve[Ae]-Me,data:{[Ae]:ye,centerOffset:be-ye}}}}),g=["top","right","bottom","left"],b=g.reduce((F,D)=>F.concat(D,D+"-start",D+"-end"),[]),v={left:"right",right:"left",bottom:"top",top:"bottom"};function x(F){return F.replace(/left|right|bottom|top/g,D=>v[D])}function y(F,D,L){L===void 0&&(L=!1);let $=t(F),Z=i(F),se=n(Z),Y=Z==="x"?$===(L?"end":"start")?"right":"left":$==="start"?"bottom":"top";return D.reference[se]>D.floating[se]&&(Y=x(Y)),{main:Y,cross:x(Y)}}let _={start:"end",end:"start"};function w(F){return F.replace(/start|end/g,D=>_[D])}function k(F,D,L){return(F?[...L.filter(Z=>t(Z)===F),...L.filter(Z=>t(Z)!==F)]:L.filter(Z=>r(Z)===Z)).filter(Z=>F?t(Z)===F||(D?w(Z)!==Z:!1):!0)}let O=function(F){return F===void 0&&(F={}),{name:"autoPlacement",options:F,async fn(D){var L,$,Z;let{rects:se,middlewareData:Y,placement:ue,platform:pe,elements:oe}=D,{crossAxis:de=!1,alignment:ve,allowedPlacements:Ae=b,autoAlignment:Ce=!0,...Ge}=F,Ee=ve!==void 0||Ae===b?k(ve||null,Ce,Ae):Ae,Ne=await c(D,Ge),De=((L=Y.autoPlacement)==null?void 0:L.index)||0,Ue=Ee[De];if(Ue==null)return{};let{main:Re,cross:je}=y(Ue,se,await(pe.isRTL==null?void 0:pe.isRTL(oe.floating)));if(ue!==Ue)return{reset:{placement:Ee[0]}};let $e=[Ne[r(Ue)],Ne[Re],Ne[je]],Le=[...(($=Y.autoPlacement)==null?void 0:$.overflows)||[],{placement:Ue,overflows:$e}],Xe=Ee[De+1];if(Xe)return{data:{index:De+1,overflows:Le},reset:{placement:Xe}};let mt=Le.map(ye=>{let Oe=t(ye.placement);return[ye.placement,Oe&&de?ye.overflows.slice(0,2).reduce((Me,Ke)=>Me+Ke,0):ye.overflows[0],ye.overflows]}).sort((ye,Oe)=>ye[1]-Oe[1]),be=((Z=mt.filter(ye=>ye[2].slice(0,t(ye[0])?2:3).every(Oe=>Oe<=0))[0])==null?void 0:Z[0])||mt[0][0];return be!==ue?{data:{index:De+1,overflows:Le},reset:{placement:be}}:{}}}};function M(F){let D=x(F);return[w(F),D,w(D)]}function I(F,D,L){let $=["left","right"],Z=["right","left"],se=["top","bottom"],Y=["bottom","top"];switch(F){case"top":case"bottom":return L?D?Z:$:D?$:Z;case"left":case"right":return D?se:Y;default:return[]}}function W(F,D,L,$){let Z=t(F),se=I(r(F),L==="start",$);return Z&&(se=se.map(Y=>Y+"-"+Z),D&&(se=se.concat(se.map(w)))),se}let J=function(F){return F===void 0&&(F={}),{name:"flip",options:F,async fn(D){var L;let{placement:$,middlewareData:Z,rects:se,initialPlacement:Y,platform:ue,elements:pe}=D,{mainAxis:oe=!0,crossAxis:de=!0,fallbackPlacements:ve,fallbackStrategy:Ae="bestFit",fallbackAxisSideDirection:Ce="none",flipAlignment:Ge=!0,...Ee}=F,Ne=r($),De=r(Y)===Y,Ue=await(ue.isRTL==null?void 0:ue.isRTL(pe.floating)),Re=ve||(De||!Ge?[x(Y)]:M(Y));!ve&&Ce!=="none"&&Re.push(...W(Y,Ge,Ce,Ue));let je=[Y,...Re],$e=await c(D,Ee),Le=[],Xe=((L=Z.flip)==null?void 0:L.overflows)||[];if(oe&&Le.push($e[Ne]),de){let{main:ye,cross:Oe}=y($,se,Ue);Le.push($e[ye],$e[Oe])}if(Xe=[...Xe,{placement:$,overflows:Le}],!Le.every(ye=>ye<=0)){var mt,fe;let ye=(((mt=Z.flip)==null?void 0:mt.index)||0)+1,Oe=je[ye];if(Oe)return{data:{index:ye,overflows:Xe},reset:{placement:Oe}};let Me=(fe=Xe.filter(Ke=>Ke.overflows[0]<=0).sort((Ke,gt)=>Ke.overflows[1]-gt.overflows[1])[0])==null?void 0:fe.placement;if(!Me)switch(Ae){case"bestFit":{var be;let Ke=(be=Xe.map(gt=>[gt.placement,gt.overflows.filter(ft=>ft>0).reduce((ft,Bt)=>ft+Bt,0)]).sort((gt,ft)=>gt[1]-ft[1])[0])==null?void 0:be[0];Ke&&(Me=Ke);break}case"initialPlacement":Me=Y;break}if($!==Me)return{reset:{placement:Me}}}return{}}}};function H(F,D){return{top:F.top-D.height,right:F.right-D.width,bottom:F.bottom-D.height,left:F.left-D.width}}function ee(F){return g.some(D=>F[D]>=0)}let j=function(F){return F===void 0&&(F={}),{name:"hide",options:F,async fn(D){let{strategy:L="referenceHidden",...$}=F,{rects:Z}=D;switch(L){case"referenceHidden":{let se=await c(D,{...$,elementContext:"reference"}),Y=H(se,Z.reference);return{data:{referenceHiddenOffsets:Y,referenceHidden:ee(Y)}}}case"escaped":{let se=await c(D,{...$,altBoundary:!0}),Y=H(se,Z.floating);return{data:{escapedOffsets:Y,escaped:ee(Y)}}}default:return{}}}}};function V(F){let D=f(...F.map(se=>se.left)),L=f(...F.map(se=>se.top)),$=d(...F.map(se=>se.right)),Z=d(...F.map(se=>se.bottom));return{x:D,y:L,width:$-D,height:Z-L}}function B(F){let D=F.slice().sort((Z,se)=>Z.y-se.y),L=[],$=null;for(let Z=0;Z<D.length;Z++){let se=D[Z];!$||se.y-$.y>$.height/2?L.push([se]):L[L.length-1].push(se),$=se}return L.map(Z=>u(V(Z)))}let N=function(F){return F===void 0&&(F={}),{name:"inline",options:F,async fn(D){let{placement:L,elements:$,rects:Z,platform:se,strategy:Y}=D,{padding:ue=2,x:pe,y:oe}=F,de=Array.from(await(se.getClientRects==null?void 0:se.getClientRects($.reference))||[]),ve=B(de),Ae=u(V(de)),Ce=l(ue);function Ge(){if(ve.length===2&&ve[0].left>ve[1].right&&pe!=null&&oe!=null)return ve.find(Ne=>pe>Ne.left-Ce.left&&pe<Ne.right+Ce.right&&oe>Ne.top-Ce.top&&oe<Ne.bottom+Ce.bottom)||Ae;if(ve.length>=2){if(i(L)==="x"){let be=ve[0],ye=ve[ve.length-1],Oe=r(L)==="top",Me=be.top,Ke=ye.bottom,gt=Oe?be.left:ye.left,ft=Oe?be.right:ye.right,Bt=ft-gt,Ft=Ke-Me;return{top:Me,bottom:Ke,left:gt,right:ft,width:Bt,height:Ft,x:gt,y:Me}}let Ne=r(L)==="left",De=d(...ve.map(be=>be.right)),Ue=f(...ve.map(be=>be.left)),Re=ve.filter(be=>Ne?be.left===Ue:be.right===De),je=Re[0].top,$e=Re[Re.length-1].bottom,Le=Ue,Xe=De,mt=Xe-Le,fe=$e-je;return{top:je,bottom:$e,left:Le,right:Xe,width:mt,height:fe,x:Le,y:je}}return Ae}let Ee=await se.getElementRects({reference:{getBoundingClientRect:Ge},floating:$.floating,strategy:Y});return Z.reference.x!==Ee.reference.x||Z.reference.y!==Ee.reference.y||Z.reference.width!==Ee.reference.width||Z.reference.height!==Ee.reference.height?{reset:{rects:Ee}}:{}}}};async function C(F,D){let{placement:L,platform:$,elements:Z}=F,se=await($.isRTL==null?void 0:$.isRTL(Z.floating)),Y=r(L),ue=t(L),pe=i(L)==="x",oe=["left","top"].includes(Y)?-1:1,de=se&&pe?-1:1,ve=typeof D=="function"?D(F):D,{mainAxis:Ae,crossAxis:Ce,alignmentAxis:Ge}=typeof ve=="number"?{mainAxis:ve,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...ve};return ue&&typeof Ge=="number"&&(Ce=ue==="end"?Ge*-1:Ge),pe?{x:Ce*de,y:Ae*oe}:{x:Ae*oe,y:Ce*de}}let S=function(F){return F===void 0&&(F=0),{name:"offset",options:F,async fn(D){let{x:L,y:$}=D,Z=await C(D,F);return{x:L+Z.x,y:$+Z.y,data:Z}}}};function G(F){return F==="x"?"y":"x"}let T=function(F){return F===void 0&&(F={}),{name:"shift",options:F,async fn(D){let{x:L,y:$,placement:Z}=D,{mainAxis:se=!0,crossAxis:Y=!1,limiter:ue={fn:Ne=>{let{x:De,y:Ue}=Ne;return{x:De,y:Ue}}},...pe}=F,oe={x:L,y:$},de=await c(D,pe),ve=i(r(Z)),Ae=G(ve),Ce=oe[ve],Ge=oe[Ae];if(se){let Ne=ve==="y"?"top":"left",De=ve==="y"?"bottom":"right",Ue=Ce+de[Ne],Re=Ce-de[De];Ce=h(Ue,Ce,Re)}if(Y){let Ne=Ae==="y"?"top":"left",De=Ae==="y"?"bottom":"right",Ue=Ge+de[Ne],Re=Ge-de[De];Ge=h(Ue,Ge,Re)}let Ee=ue.fn({...D,[ve]:Ce,[Ae]:Ge});return{...Ee,data:{x:Ee.x-L,y:Ee.y-$}}}}},Q=function(F){return F===void 0&&(F={}),{options:F,fn(D){let{x:L,y:$,placement:Z,rects:se,middlewareData:Y}=D,{offset:ue=0,mainAxis:pe=!0,crossAxis:oe=!0}=F,de={x:L,y:$},ve=i(Z),Ae=G(ve),Ce=de[ve],Ge=de[Ae],Ee=typeof ue=="function"?ue(D):ue,Ne=typeof Ee=="number"?{mainAxis:Ee,crossAxis:0}:{mainAxis:0,crossAxis:0,...Ee};if(pe){let Re=ve==="y"?"height":"width",je=se.reference[ve]-se.floating[Re]+Ne.mainAxis,$e=se.reference[ve]+se.reference[Re]-Ne.mainAxis;Ce<je?Ce=je:Ce>$e&&(Ce=$e)}if(oe){var De,Ue;let Re=ve==="y"?"width":"height",je=["top","left"].includes(r(Z)),$e=se.reference[Ae]-se.floating[Re]+(je&&((De=Y.offset)==null?void 0:De[Ae])||0)+(je?0:Ne.crossAxis),Le=se.reference[Ae]+se.reference[Re]+(je?0:((Ue=Y.offset)==null?void 0:Ue[Ae])||0)-(je?Ne.crossAxis:0);Ge<$e?Ge=$e:Ge>Le&&(Ge=Le)}return{[ve]:Ce,[Ae]:Ge}}}},U=function(F){return F===void 0&&(F={}),{name:"size",options:F,async fn(D){let{placement:L,rects:$,platform:Z,elements:se}=D,{apply:Y=()=>{},...ue}=F,pe=await c(D,ue),oe=r(L),de=t(L),Ae=i(L)==="x",{width:Ce,height:Ge}=$.floating,Ee,Ne;oe==="top"||oe==="bottom"?(Ee=oe,Ne=de===(await(Z.isRTL==null?void 0:Z.isRTL(se.floating))?"start":"end")?"left":"right"):(Ne=oe,Ee=de==="end"?"top":"bottom");let De=Ge-pe[Ee],Ue=Ce-pe[Ne],Re=!D.middlewareData.shift,je=De,$e=Ue;if(Ae){let Xe=Ce-pe.left-pe.right;$e=de||Re?f(Ue,Xe):Xe}else{let Xe=Ge-pe.top-pe.bottom;je=de||Re?f(De,Xe):Xe}if(Re&&!de){let Xe=d(pe.left,0),mt=d(pe.right,0),fe=d(pe.top,0),be=d(pe.bottom,0);Ae?$e=Ce-2*(Xe!==0||mt!==0?Xe+mt:d(pe.left,pe.right)):je=Ge-2*(fe!==0||be!==0?fe+be:d(pe.top,pe.bottom))}await Y({...D,availableWidth:$e,availableHeight:je});let Le=await Z.getDimensions(se.floating);return Ce!==Le.width||Ge!==Le.height?{reset:{rects:!0}}:{}}}};e.arrow=m,e.autoPlacement=O,e.computePosition=s,e.detectOverflow=c,e.flip=J,e.hide=j,e.inline=N,e.limitShift=Q,e.offset=S,e.rectToClientRect=u,e.shift=T,e.size=U,Object.defineProperty(e,"__esModule",{value:!0})})});var oK=ne((jM,G3e)=>{(function(e,t){typeof jM=="object"&&typeof G3e<"u"?t(jM,N3e()):typeof define=="function"&&define.amd?define(["exports","@floating-ui/core"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.FloatingUIDOM={},e.FloatingUICore))})(jM,function(e,t){"use strict";function n(Y){var ue;return((ue=Y.ownerDocument)==null?void 0:ue.defaultView)||window}function r(Y){return n(Y).getComputedStyle(Y)}function i(Y){return Y instanceof n(Y).Node}function o(Y){return i(Y)?(Y.nodeName||"").toLowerCase():""}function s(Y){return Y instanceof n(Y).HTMLElement}function a(Y){return Y instanceof n(Y).Element}function l(Y){if(typeof ShadowRoot>"u")return!1;let ue=n(Y).ShadowRoot;return Y instanceof ue||Y instanceof ShadowRoot}function u(Y){let{overflow:ue,overflowX:pe,overflowY:oe,display:de}=r(Y);return/auto|scroll|overlay|hidden|clip/.test(ue+oe+pe)&&!["inline","contents"].includes(de)}function c(Y){return["table","td","th"].includes(o(Y))}function f(Y){let ue=d(),pe=r(Y);return pe.transform!=="none"||pe.perspective!=="none"||!ue&&(pe.backdropFilter?pe.backdropFilter!=="none":!1)||!ue&&(pe.filter?pe.filter!=="none":!1)||["transform","perspective","filter"].some(oe=>(pe.willChange||"").includes(oe))||["paint","layout","strict","content"].some(oe=>(pe.contain||"").includes(oe))}function d(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function h(Y){return["html","body","#document"].includes(o(Y))}let m=Math.min,g=Math.max,b=Math.round;function v(Y){let ue=r(Y),pe=parseFloat(ue.width)||0,oe=parseFloat(ue.height)||0,de=s(Y),ve=de?Y.offsetWidth:pe,Ae=de?Y.offsetHeight:oe,Ce=b(pe)!==ve||b(oe)!==Ae;return Ce&&(pe=ve,oe=Ae),{width:pe,height:oe,fallback:Ce}}function x(Y){return a(Y)?Y:Y.contextElement}let y={x:1,y:1};function _(Y){let ue=x(Y);if(!s(ue))return y;let pe=ue.getBoundingClientRect(),{width:oe,height:de,fallback:ve}=v(ue),Ae=(ve?b(pe.width):pe.width)/oe,Ce=(ve?b(pe.height):pe.height)/de;return(!Ae||!Number.isFinite(Ae))&&(Ae=1),(!Ce||!Number.isFinite(Ce))&&(Ce=1),{x:Ae,y:Ce}}let w={x:0,y:0};function k(Y,ue,pe){var oe,de;if(ue===void 0&&(ue=!0),!d())return w;let ve=Y?n(Y):window;return!pe||ue&&pe!==ve?w:{x:((oe=ve.visualViewport)==null?void 0:oe.offsetLeft)||0,y:((de=ve.visualViewport)==null?void 0:de.offsetTop)||0}}function O(Y,ue,pe,oe){ue===void 0&&(ue=!1),pe===void 0&&(pe=!1);let de=Y.getBoundingClientRect(),ve=x(Y),Ae=y;ue&&(oe?a(oe)&&(Ae=_(oe)):Ae=_(Y));let Ce=k(ve,pe,oe),Ge=(de.left+Ce.x)/Ae.x,Ee=(de.top+Ce.y)/Ae.y,Ne=de.width/Ae.x,De=de.height/Ae.y;if(ve){let Ue=n(ve),Re=oe&&a(oe)?n(oe):oe,je=Ue.frameElement;for(;je&&oe&&Re!==Ue;){let $e=_(je),Le=je.getBoundingClientRect(),Xe=getComputedStyle(je);Le.x+=(je.clientLeft+parseFloat(Xe.paddingLeft))*$e.x,Le.y+=(je.clientTop+parseFloat(Xe.paddingTop))*$e.y,Ge*=$e.x,Ee*=$e.y,Ne*=$e.x,De*=$e.y,Ge+=Le.x,Ee+=Le.y,je=n(je).frameElement}}return t.rectToClientRect({width:Ne,height:De,x:Ge,y:Ee})}function M(Y){return((i(Y)?Y.ownerDocument:Y.document)||window.document).documentElement}function I(Y){return a(Y)?{scrollLeft:Y.scrollLeft,scrollTop:Y.scrollTop}:{scrollLeft:Y.pageXOffset,scrollTop:Y.pageYOffset}}function W(Y){let{rect:ue,offsetParent:pe,strategy:oe}=Y,de=s(pe),ve=M(pe);if(pe===ve)return ue;let Ae={scrollLeft:0,scrollTop:0},Ce={x:1,y:1},Ge={x:0,y:0};if((de||!de&&oe!=="fixed")&&((o(pe)!=="body"||u(ve))&&(Ae=I(pe)),s(pe))){let Ee=O(pe);Ce=_(pe),Ge.x=Ee.x+pe.clientLeft,Ge.y=Ee.y+pe.clientTop}return{width:ue.width*Ce.x,height:ue.height*Ce.y,x:ue.x*Ce.x-Ae.scrollLeft*Ce.x+Ge.x,y:ue.y*Ce.y-Ae.scrollTop*Ce.y+Ge.y}}function J(Y){return O(M(Y)).left+I(Y).scrollLeft}function H(Y){let ue=M(Y),pe=I(Y),oe=Y.ownerDocument.body,de=g(ue.scrollWidth,ue.clientWidth,oe.scrollWidth,oe.clientWidth),ve=g(ue.scrollHeight,ue.clientHeight,oe.scrollHeight,oe.clientHeight),Ae=-pe.scrollLeft+J(Y),Ce=-pe.scrollTop;return r(oe).direction==="rtl"&&(Ae+=g(ue.clientWidth,oe.clientWidth)-de),{width:de,height:ve,x:Ae,y:Ce}}function ee(Y){if(o(Y)==="html")return Y;let ue=Y.assignedSlot||Y.parentNode||l(Y)&&Y.host||M(Y);return l(ue)?ue.host:ue}function j(Y){let ue=ee(Y);return h(ue)?ue.ownerDocument.body:s(ue)&&u(ue)?ue:j(ue)}function V(Y,ue){var pe;ue===void 0&&(ue=[]);let oe=j(Y),de=oe===((pe=Y.ownerDocument)==null?void 0:pe.body),ve=n(oe);return de?ue.concat(ve,ve.visualViewport||[],u(oe)?oe:[]):ue.concat(oe,V(oe))}function B(Y,ue){let pe=n(Y),oe=M(Y),de=pe.visualViewport,ve=oe.clientWidth,Ae=oe.clientHeight,Ce=0,Ge=0;if(de){ve=de.width,Ae=de.height;let Ee=d();(!Ee||Ee&&ue==="fixed")&&(Ce=de.offsetLeft,Ge=de.offsetTop)}return{width:ve,height:Ae,x:Ce,y:Ge}}function N(Y,ue){let pe=O(Y,!0,ue==="fixed"),oe=pe.top+Y.clientTop,de=pe.left+Y.clientLeft,ve=s(Y)?_(Y):{x:1,y:1},Ae=Y.clientWidth*ve.x,Ce=Y.clientHeight*ve.y,Ge=de*ve.x,Ee=oe*ve.y;return{width:Ae,height:Ce,x:Ge,y:Ee}}function C(Y,ue,pe){let oe;if(ue==="viewport")oe=B(Y,pe);else if(ue==="document")oe=H(M(Y));else if(a(ue))oe=N(ue,pe);else{let de=k(Y);oe={...ue,x:ue.x-de.x,y:ue.y-de.y}}return t.rectToClientRect(oe)}function S(Y,ue){let pe=ee(Y);return pe===ue||!a(pe)||h(pe)?!1:r(pe).position==="fixed"||S(pe,ue)}function G(Y,ue){let pe=ue.get(Y);if(pe)return pe;let oe=V(Y).filter(Ce=>a(Ce)&&o(Ce)!=="body"),de=null,ve=r(Y).position==="fixed",Ae=ve?ee(Y):Y;for(;a(Ae)&&!h(Ae);){let Ce=r(Ae),Ge=f(Ae);!Ge&&Ce.position==="fixed"&&(de=null),(ve?!Ge&&!de:!Ge&&Ce.position==="static"&&!!de&&["absolute","fixed"].includes(de.position)||u(Ae)&&!Ge&&S(Y,Ae))?oe=oe.filter(Ne=>Ne!==Ae):de=Ce,Ae=ee(Ae)}return ue.set(Y,oe),oe}function T(Y){let{element:ue,boundary:pe,rootBoundary:oe,strategy:de}=Y,Ae=[...pe==="clippingAncestors"?G(ue,this._c):[].concat(pe),oe],Ce=Ae[0],Ge=Ae.reduce((Ee,Ne)=>{let De=C(ue,Ne,de);return Ee.top=g(De.top,Ee.top),Ee.right=m(De.right,Ee.right),Ee.bottom=m(De.bottom,Ee.bottom),Ee.left=g(De.left,Ee.left),Ee},C(ue,Ce,de));return{width:Ge.right-Ge.left,height:Ge.bottom-Ge.top,x:Ge.left,y:Ge.top}}function Q(Y){return v(Y)}function U(Y,ue){return!s(Y)||r(Y).position==="fixed"?null:ue?ue(Y):Y.offsetParent}function F(Y){let ue=ee(Y);for(;s(ue)&&!h(ue);){if(f(ue))return ue;ue=ee(ue)}return null}function D(Y,ue){let pe=n(Y);if(!s(Y))return pe;let oe=U(Y,ue);for(;oe&&c(oe)&&r(oe).position==="static";)oe=U(oe,ue);return oe&&(o(oe)==="html"||o(oe)==="body"&&r(oe).position==="static"&&!f(oe))?pe:oe||F(Y)||pe}function L(Y,ue,pe){let oe=s(ue),de=M(ue),ve=pe==="fixed",Ae=O(Y,!0,ve,ue),Ce={scrollLeft:0,scrollTop:0},Ge={x:0,y:0};if(oe||!oe&&!ve)if((o(ue)!=="body"||u(de))&&(Ce=I(ue)),s(ue)){let Ee=O(ue,!0,ve,ue);Ge.x=Ee.x+ue.clientLeft,Ge.y=Ee.y+ue.clientTop}else de&&(Ge.x=J(de));return{x:Ae.left+Ce.scrollLeft-Ge.x,y:Ae.top+Ce.scrollTop-Ge.y,width:Ae.width,height:Ae.height}}let $={getClippingRect:T,convertOffsetParentRelativeRectToViewportRelativeRect:W,isElement:a,getDimensions:Q,getOffsetParent:D,getDocumentElement:M,getScale:_,async getElementRects(Y){let{reference:ue,floating:pe,strategy:oe}=Y,de=this.getOffsetParent||D,ve=this.getDimensions;return{reference:L(ue,await de(pe),oe),floating:{x:0,y:0,...await ve(pe)}}},getClientRects:Y=>Array.from(Y.getClientRects()),isRTL:Y=>r(Y).direction==="rtl"};function Z(Y,ue,pe,oe){oe===void 0&&(oe={});let{ancestorScroll:de=!0,ancestorResize:ve=!0,elementResize:Ae=!0,animationFrame:Ce=!1}=oe,Ge=de||ve?[...a(Y)?V(Y):Y.contextElement?V(Y.contextElement):[],...V(ue)]:[];Ge.forEach(Re=>{let je=!a(Re)&&Re.toString().includes("V");de&&(Ce?je:!0)&&Re.addEventListener("scroll",pe,{passive:!0}),ve&&Re.addEventListener("resize",pe)});let Ee=null;Ae&&(Ee=new ResizeObserver(()=>{pe()}),a(Y)&&!Ce&&Ee.observe(Y),!a(Y)&&Y.contextElement&&!Ce&&Ee.observe(Y.contextElement),Ee.observe(ue));let Ne,De=Ce?O(Y):null;Ce&&Ue();function Ue(){let Re=O(Y);De&&(Re.x!==De.x||Re.y!==De.y||Re.width!==De.width||Re.height!==De.height)&&pe(),De=Re,Ne=requestAnimationFrame(Ue)}return pe(),()=>{var Re;Ge.forEach(je=>{de&&je.removeEventListener("scroll",pe),ve&&je.removeEventListener("resize",pe)}),(Re=Ee)==null||Re.disconnect(),Ee=null,Ce&&cancelAnimationFrame(Ne)}}let se=(Y,ue,pe)=>{let oe=new Map,de={platform:$,...pe},ve={...de.platform,_c:oe};return t.computePosition(Y,ue,{...de,platform:ve})};Object.defineProperty(e,"arrow",{enumerable:!0,get:function(){return t.arrow}}),Object.defineProperty(e,"autoPlacement",{enumerable:!0,get:function(){return t.autoPlacement}}),Object.defineProperty(e,"detectOverflow",{enumerable:!0,get:function(){return t.detectOverflow}}),Object.defineProperty(e,"flip",{enumerable:!0,get:function(){return t.flip}}),Object.defineProperty(e,"hide",{enumerable:!0,get:function(){return t.hide}}),Object.defineProperty(e,"inline",{enumerable:!0,get:function(){return t.inline}}),Object.defineProperty(e,"limitShift",{enumerable:!0,get:function(){return t.limitShift}}),Object.defineProperty(e,"offset",{enumerable:!0,get:function(){return t.offset}}),Object.defineProperty(e,"shift",{enumerable:!0,get:function(){return t.shift}}),Object.defineProperty(e,"size",{enumerable:!0,get:function(){return t.size}}),e.autoUpdate=Z,e.computePosition=se,e.getOverflowAncestors=V,e.platform=$,Object.defineProperty(e,"__esModule",{value:!0})})});var aK=ne(sK=>{"use strict";Object.defineProperty(sK,"__esModule",{value:!0});var dht=Pe(),pht=dht.useLayoutEffect;sK.default=pht});var dK=ne(Pr=>{"use strict";var Ti=d7(),Ro=Zx(),fr=VM(),Qx=kM(),KM=_7(),fht=Yx(),hht=iK(),HM=PM(),Nc=Pe(),mht=Yl(),ght=oK(),vht=aK();function yht(e){return e&&e.__esModule?e:{default:e}}var uK=yht(vht),xht=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],qM=function(){};function _ht(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function bht(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var s in t)t.hasOwnProperty(s)&&t[s]&&o.push("".concat(_ht(e,s)));return o.filter(function(a){return a}).map(function(a){return String(a).trim()}).join(" ")}var wht=function(t){return Fht(t)?t.filter(Boolean):fht(t)==="object"&&t!==null?[t]:[]},I3e=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=KM(t,xht);return Ti({},n)},_s=function(t,n,r){var i=t.cx,o=t.getStyles,s=t.getClassNames,a=t.className;return{css:o(n,t),className:i(r??{},s(n,t),a)}};function Pht(e,t,n){if(n){var r=n(e,t);if(typeof r=="string")return r}return e}function YM(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function kht(e){return YM(e)?window.innerHeight:e.clientHeight}function z3e(e){return YM(e)?window.pageYOffset:e.scrollTop}function $M(e,t){if(YM(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Aht(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function Cht(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function WM(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:qM,i=z3e(e),o=t-i,s=10,a=0;function l(){a+=s;var u=Cht(a,i,o,n);$M(e,u),a<n?window.requestAnimationFrame(l):r(e)}l()}function Sht(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?$M(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&$M(e,Math.max(t.offsetTop-i,0))}function Oht(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function Eht(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function Mht(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var T3e=!1,Bht={get passive(){return T3e=!0}},XM=typeof window<"u"?window:{};XM.addEventListener&&XM.removeEventListener&&(XM.addEventListener("p",qM,Bht),XM.removeEventListener("p",qM,!1));var Nht=T3e;function Ght(e){return e!=null}function Fht(e){return Array.isArray(e)}function Iht(e,t,n){return e?t:n}function zht(e){return e}function Tht(e){return e}var Dht=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=Object.entries(t).filter(function(s){var a=Qx(s,1),l=a[0];return!r.includes(l)});return o.reduce(function(s,a){var l=Qx(a,2),u=l[0],c=l[1];return s[u]=c,s},{})};function Rht(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,s=e.isFixedPosition,a=e.controlHeight,l=Aht(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect(),f=c.height,d=n.getBoundingClientRect(),h=d.bottom,m=d.height,g=d.top,b=n.offsetParent.getBoundingClientRect(),v=b.top,x=s?window.innerHeight:kht(l),y=z3e(l),_=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),k=v-w,O=x-g,M=k+y,I=f-y-g,W=h-x+y+_,J=y+g-w,H=160;switch(i){case"auto":case"bottom":if(O>=m)return{placement:"bottom",maxHeight:t};if(I>=m&&!s)return o&&WM(l,W,H),{placement:"bottom",maxHeight:t};if(!s&&I>=r||s&&O>=r){o&&WM(l,W,H);var ee=s?O-_:I-_;return{placement:"bottom",maxHeight:ee}}if(i==="auto"||s){var j=t,V=s?k:M;return V>=r&&(j=Math.min(V-_-a,t)),{placement:"top",maxHeight:j}}if(i==="bottom")return o&&$M(l,W),{placement:"bottom",maxHeight:t};break;case"top":if(k>=m)return{placement:"top",maxHeight:t};if(M>=m&&!s)return o&&WM(l,J,H),{placement:"top",maxHeight:t};if(!s&&M>=r||s&&k>=r){var B=t;return(!s&&M>=r||s&&k>=r)&&(B=s?k-w:M-w),o&&WM(l,J,H),{placement:"top",maxHeight:B}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return u}function Lht(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var D3e=function(t){return t==="auto"?"bottom":t},Vht=function(t,n){var r,i=t.placement,o=t.theme,s=o.borderRadius,a=o.spacing,l=o.colors;return Ti((r={label:"menu"},HM(r,Lht(i),"100%"),HM(r,"position","absolute"),HM(r,"width","100%"),HM(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},R3e=Nc.createContext(null),Jht=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,o=t.menuPlacement,s=t.menuPosition,a=t.menuShouldScrollIntoView,l=t.theme,u=Nc.useContext(R3e)||{},c=u.setPortalPlacement,f=Nc.useRef(null),d=Nc.useState(i),h=Qx(d,2),m=h[0],g=h[1],b=Nc.useState(null),v=Qx(b,2),x=v[0],y=v[1],_=l.spacing.controlHeight;return uK.default(function(){var w=f.current;if(!!w){var k=s==="fixed",O=a&&!k,M=Rht({maxHeight:i,menuEl:w,minHeight:r,placement:o,shouldScroll:O,isFixedPosition:k,controlHeight:_});g(M.maxHeight),y(M.placement),c?.(M.placement)}},[i,o,s,a,r,c,_]),n({ref:f,placerProps:Ti(Ti({},t),{},{placement:x||D3e(o),maxHeight:m})})},jht=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return fr.jsx("div",Ro({},_s(t,"menu",{menu:!0}),{ref:r},i),n)},Hht=jht,Wht=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return Ti({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},Xht=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,o=t.isMulti;return fr.jsx("div",Ro({},_s(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},r),n)},L3e=function(t,n){var r=t.theme,i=r.spacing.baseUnit,o=r.colors;return Ti({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},qht=L3e,$ht=L3e,V3e=function(t){var n=t.children,r=t.innerProps;return fr.jsx("div",Ro({},_s(t,"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)};V3e.defaultProps={children:"No options"};var J3e=function(t){var n=t.children,r=t.innerProps;return fr.jsx("div",Ro({},_s(t,"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)};J3e.defaultProps={children:"Loading..."};var Kht=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},Yht=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,o=t.innerProps,s=t.menuPlacement,a=t.menuPosition,l=Nc.useRef(null),u=Nc.useRef(null),c=Nc.useState(D3e(s)),f=Qx(c,2),d=f[0],h=f[1],m=Nc.useMemo(function(){return{setPortalPlacement:h}},[]),g=Nc.useState(null),b=Qx(g,2),v=b[0],x=b[1],y=Nc.useCallback(function(){if(!!i){var O=Oht(i),M=a==="fixed"?0:window.pageYOffset,I=O[d]+M;(I!==v?.offset||O.left!==v?.rect.left||O.width!==v?.rect.width)&&x({offset:I,rect:O})}},[i,a,d,v?.offset,v?.rect.left,v?.rect.width]);uK.default(function(){y()},[y]);var _=Nc.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),i&&l.current&&(u.current=ght.autoUpdate(i,l.current,y,{elementResize:"ResizeObserver"in window}))},[i,y]);uK.default(function(){_()},[_]);var w=Nc.useCallback(function(O){l.current=O,_()},[_]);if(!n&&a!=="fixed"||!v)return null;var k=fr.jsx("div",Ro({ref:w},_s(Ti(Ti({},t),{},{offset:v.offset,position:a,rect:v.rect}),"menuPortal",{"menu-portal":!0}),o),r);return fr.jsx(R3e.Provider,{value:m},n?mht.createPortal(k,n):k)},Zht=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},Uht=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,o=t.isRtl;return fr.jsx("div",Ro({},_s(t,"container",{"--is-disabled":i,"--is-rtl":o}),r),n)},Qht=function(t,n){var r=t.theme.spacing,i=t.isMulti,o=t.hasValue,s=t.selectProps.controlShouldRenderValue;return Ti({alignItems:"center",display:i&&o&&s?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},e0t=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,o=t.hasValue;return fr.jsx("div",Ro({},_s(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),r),n)},t0t=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},n0t=function(t){var n=t.children,r=t.innerProps;return fr.jsx("div",Ro({},_s(t,"indicatorsContainer",{indicators:!0}),r),n)},F3e,r0t=["size"],i0t={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},j3e=function(t){var n=t.size,r=KM(t,r0t);return fr.jsx("svg",Ro({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:i0t},r))},cK=function(t){return fr.jsx(j3e,Ro({size:20},t),fr.jsx("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},H3e=function(t){return fr.jsx(j3e,Ro({size:20},t),fr.jsx("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},W3e=function(t,n){var r=t.isFocused,i=t.theme,o=i.spacing.baseUnit,s=i.colors;return Ti({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?s.neutral60:s.neutral20,padding:o*2,":hover":{color:r?s.neutral80:s.neutral40}})},o0t=W3e,s0t=function(t){var n=t.children,r=t.innerProps;return fr.jsx("div",Ro({},_s(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||fr.jsx(H3e,null))},a0t=W3e,l0t=function(t){var n=t.children,r=t.innerProps;return fr.jsx("div",Ro({},_s(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||fr.jsx(cK,null))},u0t=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing.baseUnit,s=i.colors;return Ti({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?s.neutral10:s.neutral20,marginBottom:o*2,marginTop:o*2})},c0t=function(t){var n=t.innerProps;return fr.jsx("span",Ro({},n,_s(t,"indicatorSeparator",{"indicator-separator":!0})))},d0t=fr.keyframes(F3e||(F3e=hht([`
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
`]))),p0t=function(t,n){var r=t.isFocused,i=t.size,o=t.theme,s=o.colors,a=o.spacing.baseUnit;return Ti({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?s.neutral60:s.neutral20,padding:a*2})},lK=function(t){var n=t.delay,r=t.offset;return fr.jsx("span",{css:fr.css({animation:"".concat(d0t," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},X3e=function(t){var n=t.innerProps,r=t.isRtl;return fr.jsx("div",Ro({},_s(t,"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),fr.jsx(lK,{delay:0,offset:r}),fr.jsx(lK,{delay:160,offset:!0}),fr.jsx(lK,{delay:320,offset:!r}))};X3e.defaultProps={size:4};var f0t=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.theme,s=o.colors,a=o.borderRadius,l=o.spacing;return Ti({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?s.neutral5:s.neutral0,borderColor:r?s.neutral10:i?s.primary:s.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(s.primary):void 0,"&:hover":{borderColor:i?s.primary:s.neutral30}})},h0t=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.innerRef,s=t.innerProps,a=t.menuIsOpen;return fr.jsx("div",Ro({ref:o},_s(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":a}),s),n)},m0t=h0t,g0t=["data"],v0t=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},y0t=function(t){var n=t.children,r=t.cx,i=t.getStyles,o=t.getClassNames,s=t.Heading,a=t.headingProps,l=t.innerProps,u=t.label,c=t.theme,f=t.selectProps;return fr.jsx("div",Ro({},_s(t,"group",{group:!0}),l),fr.jsx(s,Ro({},a,{selectProps:f,theme:c,getStyles:i,getClassNames:o,cx:r}),u),fr.jsx("div",null,n))},x0t=function(t,n){var r=t.theme,i=r.colors,o=r.spacing;return Ti({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},_0t=function(t){var n=I3e(t);n.data;var r=KM(n,g0t);return fr.jsx("div",Ro({},_s(t,"groupHeading",{"group-heading":!0}),r))},b0t=y0t,w0t=["innerRef","isDisabled","isHidden","inputClassName"],P0t=function(t,n){var r=t.isDisabled,i=t.value,o=t.theme,s=o.spacing,a=o.colors;return Ti(Ti({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},k0t),n?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:a.neutral80})},q3e={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},k0t={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Ti({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},q3e)},A0t=function(t){return Ti({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},q3e)},C0t=function(t){var n=t.cx,r=t.value,i=I3e(t),o=i.innerRef,s=i.isDisabled,a=i.isHidden,l=i.inputClassName,u=KM(i,w0t);return fr.jsx("div",Ro({},_s(t,"input",{"input-container":!0}),{"data-value":r||""}),fr.jsx("input",Ro({className:n({input:!0},l),ref:o,style:A0t(a),disabled:s},u)))},S0t=C0t,O0t=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,s=r.colors;return Ti({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:s.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},E0t=function(t,n){var r=t.theme,i=r.borderRadius,o=r.colors,s=t.cropWithEllipsis;return Ti({overflow:"hidden",textOverflow:s||s===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},M0t=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,s=r.colors,a=t.isFocused;return Ti({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:a?s.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:s.dangerLight,color:s.danger}})},$3e=function(t){var n=t.children,r=t.innerProps;return fr.jsx("div",r,n)},B0t=$3e,N0t=$3e;function G0t(e){var t=e.children,n=e.innerProps;return fr.jsx("div",Ro({role:"button"},n),t||fr.jsx(cK,{size:14}))}var F0t=function(t){var n=t.children,r=t.components,i=t.data,o=t.innerProps,s=t.isDisabled,a=t.removeProps,l=t.selectProps,u=r.Container,c=r.Label,f=r.Remove;return fr.jsx(u,{data:i,innerProps:Ti(Ti({},_s(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),o),selectProps:l},fr.jsx(c,{data:i,innerProps:Ti({},_s(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),fr.jsx(f,{data:i,innerProps:Ti(Ti({},_s(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},a),selectProps:l}))},I0t=F0t,z0t=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.isSelected,s=t.theme,a=s.spacing,l=s.colors;return Ti({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?l.primary:i?l.primary25:"transparent",color:r?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(a.baseUnit*2,"px ").concat(a.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:o?l.primary:l.primary50}})},T0t=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.isSelected,s=t.innerRef,a=t.innerProps;return fr.jsx("div",Ro({},_s(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":o}),{ref:s,"aria-disabled":r},a),n)},D0t=T0t,R0t=function(t,n){var r=t.theme,i=r.spacing,o=r.colors;return Ti({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},L0t=function(t){var n=t.children,r=t.innerProps;return fr.jsx("div",Ro({},_s(t,"placeholder",{placeholder:!0}),r),n)},V0t=L0t,J0t=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing,s=i.colors;return Ti({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?s.neutral40:s.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},j0t=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return fr.jsx("div",Ro({},_s(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},H0t=j0t,K3e={ClearIndicator:l0t,Control:m0t,DropdownIndicator:s0t,DownChevron:H3e,CrossIcon:cK,Group:b0t,GroupHeading:_0t,IndicatorsContainer:n0t,IndicatorSeparator:c0t,Input:S0t,LoadingIndicator:X3e,Menu:Hht,MenuList:Xht,MenuPortal:Yht,LoadingMessage:J3e,NoOptionsMessage:V3e,MultiValue:I0t,MultiValueContainer:B0t,MultiValueLabel:N0t,MultiValueRemove:G0t,Option:D0t,Placeholder:V0t,SelectContainer:Uht,SingleValue:H0t,ValueContainer:e0t},W0t=function(t){return Ti(Ti({},K3e),t.components)};Pr.MenuPlacer=Jht;Pr.classNames=bht;Pr.cleanValue=wht;Pr.clearIndicatorCSS=a0t;Pr.components=K3e;Pr.containerCSS=Zht;Pr.css=f0t;Pr.css$1=J0t;Pr.defaultComponents=W0t;Pr.dropdownIndicatorCSS=o0t;Pr.groupCSS=v0t;Pr.groupHeadingCSS=x0t;Pr.handleInputChange=Pht;Pr.indicatorSeparatorCSS=u0t;Pr.indicatorsContainerCSS=t0t;Pr.inputCSS=P0t;Pr.isDocumentElement=YM;Pr.isMobileDevice=Mht;Pr.isTouchCapable=Eht;Pr.loadingIndicatorCSS=p0t;Pr.loadingMessageCSS=$ht;Pr.menuCSS=Vht;Pr.menuListCSS=Wht;Pr.menuPortalCSS=Kht;Pr.multiValueAsValue=Tht;Pr.multiValueCSS=O0t;Pr.multiValueLabelCSS=E0t;Pr.multiValueRemoveCSS=M0t;Pr.noOptionsMessageCSS=qht;Pr.noop=qM;Pr.notNullish=Ght;Pr.optionCSS=z0t;Pr.placeholderCSS=R0t;Pr.removeProps=Dht;Pr.scrollIntoView=Sht;Pr.singleValueAsValue=zht;Pr.supportsPassiveEvents=Nht;Pr.valueContainerCSS=Qht;Pr.valueTernary=Iht});var pK=ne((m8n,Z3e)=>{"use strict";var Y3e=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function X0t(e,t){return!!(e===t||Y3e(e)&&Y3e(t))}function q0t(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!X0t(e[n],t[n]))return!1;return!0}function $0t(e,t){t===void 0&&(t=q0t);var n=null;function r(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var s=e.apply(this,i);return n={lastResult:s,lastArgs:i,lastThis:this},s}return r.clear=function(){n=null},r}Z3e.exports=$0t});var Axe=ne(bg=>{"use strict";var bs=Zx(),$u=d7(),K0t=w$(),Y0t=P$(),Z0t=A$(),U0t=S$(),uxe=O$(),Oo=Pe(),Zn=dK(),Md=VM(),Q0t=pK(),emt=_7();function tmt(e){return e&&e.__esModule?e:{default:e}}function nmt(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var Ui=nmt(Oo),rmt=tmt(Q0t),imt={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},omt=function(t){return Md.jsx("span",bs({css:imt},t))},U3e=omt,smt={guidance:function(t){var n=t.isSearchable,r=t.isMulti,i=t.isDisabled,o=t.tabSelectsValue,s=t.context;switch(s){case"menu":return"Use Up and Down to choose options".concat(i?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,r=t.label,i=r===void 0?"":r,o=t.labels,s=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return s?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,o=t.label,s=o===void 0?"":o,a=t.selectValue,l=t.isDisabled,u=t.isSelected,c=function(m,g){return m&&m.length?"".concat(m.indexOf(g)+1," of ").concat(m.length):""};if(n==="value"&&a)return"value ".concat(s," focused, ").concat(c(a,r),".");if(n==="menu"){var f=l?" disabled":"",d="".concat(u?"selected":"focused").concat(f);return"option ".concat(s," ").concat(d,", ").concat(c(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},amt=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.focusableOptions,s=t.isFocused,a=t.selectValue,l=t.selectProps,u=t.id,c=l.ariaLiveMessages,f=l.getOptionLabel,d=l.inputValue,h=l.isMulti,m=l.isOptionDisabled,g=l.isSearchable,b=l.menuIsOpen,v=l.options,x=l.screenReaderStatus,y=l.tabSelectsValue,_=l["aria-label"],w=l["aria-live"],k=Oo.useMemo(function(){return $u($u({},smt),c||{})},[c]),O=Oo.useMemo(function(){var j="";if(n&&k.onChange){var V=n.option,B=n.options,N=n.removedValue,C=n.removedValues,S=n.value,G=function($){return Array.isArray($)?null:$},T=N||V||G(S),Q=T?f(T):"",U=B||C||void 0,F=U?U.map(f):[],D=$u({isDisabled:T&&m(T,a),label:Q,labels:F},n);j=k.onChange(D)}return j},[n,k,m,a,f]),M=Oo.useMemo(function(){var j="",V=r||i,B=!!(r&&a&&a.includes(r));if(V&&k.onFocus){var N={focused:V,label:f(V),isDisabled:m(V,a),isSelected:B,options:o,context:V===r?"menu":"value",selectValue:a};j=k.onFocus(N)}return j},[r,i,f,m,k,o,a]),I=Oo.useMemo(function(){var j="";if(b&&v.length&&k.onFilter){var V=x({count:o.length});j=k.onFilter({inputValue:d,resultsMessage:V})}return j},[o,d,b,k,v,x]),W=Oo.useMemo(function(){var j="";if(k.guidance){var V=i?"value":b?"menu":"input";j=k.guidance({"aria-label":_,context:V,isDisabled:r&&m(r,a),isMulti:h,isSearchable:g,tabSelectsValue:y})}return j},[_,r,i,h,m,g,b,k,a,y]),J="".concat(M," ").concat(I," ").concat(W),H=Md.jsx(Oo.Fragment,null,Md.jsx("span",{id:"aria-selection"},O),Md.jsx("span",{id:"aria-context"},J)),ee=n?.action==="initial-input-focus";return Md.jsx(Oo.Fragment,null,Md.jsx(U3e,{id:u},ee&&H),Md.jsx(U3e,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},s&&!ee&&H))},lmt=amt,fK=[{base:"A",letters:"A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F"},{base:"AA",letters:"\uA732"},{base:"AE",letters:"\xC6\u01FC\u01E2"},{base:"AO",letters:"\uA734"},{base:"AU",letters:"\uA736"},{base:"AV",letters:"\uA738\uA73A"},{base:"AY",letters:"\uA73C"},{base:"B",letters:"B\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181"},{base:"C",letters:"C\u24B8\uFF23\u0106\u0108\u010A\u010C\xC7\u1E08\u0187\u023B\uA73E"},{base:"D",letters:"D\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779"},{base:"DZ",letters:"\u01F1\u01C4"},{base:"Dz",letters:"\u01F2\u01C5"},{base:"E",letters:"E\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E"},{base:"F",letters:"F\u24BB\uFF26\u1E1E\u0191\uA77B"},{base:"G",letters:"G\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E"},{base:"H",letters:"H\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D"},{base:"I",letters:"I\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197"},{base:"J",letters:"J\u24BF\uFF2A\u0134\u0248"},{base:"K",letters:"K\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2"},{base:"L",letters:"L\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780"},{base:"LJ",letters:"\u01C7"},{base:"Lj",letters:"\u01C8"},{base:"M",letters:"M\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C"},{base:"N",letters:"N\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4"},{base:"NJ",letters:"\u01CA"},{base:"Nj",letters:"\u01CB"},{base:"O",letters:"O\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C"},{base:"OI",letters:"\u01A2"},{base:"OO",letters:"\uA74E"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754"},{base:"Q",letters:"Q\u24C6\uFF31\uA756\uA758\u024A"},{base:"R",letters:"R\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782"},{base:"S",letters:"S\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784"},{base:"T",letters:"T\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786"},{base:"TZ",letters:"\uA728"},{base:"U",letters:"U\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244"},{base:"V",letters:"V\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245"},{base:"VY",letters:"\uA760"},{base:"W",letters:"W\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72"},{base:"X",letters:"X\u24CD\uFF38\u1E8A\u1E8C"},{base:"Y",letters:"Y\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE"},{base:"Z",letters:"Z\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762"},{base:"a",letters:"a\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250"},{base:"aa",letters:"\uA733"},{base:"ae",letters:"\xE6\u01FD\u01E3"},{base:"ao",letters:"\uA735"},{base:"au",letters:"\uA737"},{base:"av",letters:"\uA739\uA73B"},{base:"ay",letters:"\uA73D"},{base:"b",letters:"b\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253"},{base:"c",letters:"c\u24D2\uFF43\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184"},{base:"d",letters:"d\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A"},{base:"dz",letters:"\u01F3\u01C6"},{base:"e",letters:"e\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD"},{base:"f",letters:"f\u24D5\uFF46\u1E1F\u0192\uA77C"},{base:"g",letters:"g\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F"},{base:"h",letters:"h\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131"},{base:"j",letters:"j\u24D9\uFF4A\u0135\u01F0\u0249"},{base:"k",letters:"k\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3"},{base:"l",letters:"l\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747"},{base:"lj",letters:"\u01C9"},{base:"m",letters:"m\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F"},{base:"n",letters:"n\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5"},{base:"nj",letters:"\u01CC"},{base:"o",letters:"o\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\u0254\uA74B\uA74D\u0275"},{base:"oi",letters:"\u01A3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\uA74F"},{base:"p",letters:"p\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755"},{base:"q",letters:"q\u24E0\uFF51\u024B\uA757\uA759"},{base:"r",letters:"r\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783"},{base:"s",letters:"s\u24E2\uFF53\xDF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B"},{base:"t",letters:"t\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787"},{base:"tz",letters:"\uA729"},{base:"u",letters:"u\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289"},{base:"v",letters:"v\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C"},{base:"vy",letters:"\uA761"},{base:"w",letters:"w\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73"},{base:"x",letters:"x\u24E7\uFF58\u1E8B\u1E8D"},{base:"y",letters:"y\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF"},{base:"z",letters:"z\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763"}],umt=new RegExp("["+fK.map(function(e){return e.letters}).join("")+"]","g"),cxe={};for(ZM=0;ZM<fK.length;ZM++)for(UM=fK[ZM],QM=0;QM<UM.letters.length;QM++)cxe[UM.letters[QM]]=UM.base;var UM,QM,ZM,dxe=function(t){return t.replace(umt,function(n){return cxe[n]})},cmt=rmt.default(dxe),Q3e=function(t){return t.replace(/^\s+|\s+$/g,"")},dmt=function(t){return"".concat(t.label," ").concat(t.value)},pxe=function(t){return function(n,r){if(n.data.__isNew__)return!0;var i=$u({ignoreCase:!0,ignoreAccents:!0,stringify:dmt,trim:!0,matchFrom:"any"},t),o=i.ignoreCase,s=i.ignoreAccents,a=i.stringify,l=i.trim,u=i.matchFrom,c=l?Q3e(r):r,f=l?Q3e(a(n)):a(n);return o&&(c=c.toLowerCase(),f=f.toLowerCase()),s&&(c=cmt(c),f=dxe(f)),u==="start"?f.substr(0,c.length)===c:f.indexOf(c)>-1}},pmt=["innerRef"];function fmt(e){var t=e.innerRef,n=emt(e,pmt),r=Zn.removeProps(n,"onExited","in","enter","exit","appear");return Md.jsx("input",bs({ref:t},r,{css:Md.css({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var hmt=function(t){t.preventDefault(),t.stopPropagation()};function mmt(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,s=Oo.useRef(!1),a=Oo.useRef(!1),l=Oo.useRef(0),u=Oo.useRef(null),c=Oo.useCallback(function(b,v){if(u.current!==null){var x=u.current,y=x.scrollTop,_=x.scrollHeight,w=x.clientHeight,k=u.current,O=v>0,M=_-w-y,I=!1;M>v&&s.current&&(r&&r(b),s.current=!1),O&&a.current&&(o&&o(b),a.current=!1),O&&v>M?(n&&!s.current&&n(b),k.scrollTop=_,I=!0,s.current=!0):!O&&-v>y&&(i&&!a.current&&i(b),k.scrollTop=0,I=!0,a.current=!0),I&&hmt(b)}},[n,r,i,o]),f=Oo.useCallback(function(b){c(b,b.deltaY)},[c]),d=Oo.useCallback(function(b){l.current=b.changedTouches[0].clientY},[]),h=Oo.useCallback(function(b){var v=l.current-b.changedTouches[0].clientY;c(b,v)},[c]),m=Oo.useCallback(function(b){if(!!b){var v=Zn.supportsPassiveEvents?{passive:!1}:!1;b.addEventListener("wheel",f,v),b.addEventListener("touchstart",d,v),b.addEventListener("touchmove",h,v)}},[h,d,f]),g=Oo.useCallback(function(b){!b||(b.removeEventListener("wheel",f,!1),b.removeEventListener("touchstart",d,!1),b.removeEventListener("touchmove",h,!1))},[h,d,f]);return Oo.useEffect(function(){if(!!t){var b=u.current;return m(b),function(){g(b)}}},[t,m,g]),function(b){u.current=b}}var exe=["boxSizing","height","overflow","paddingRight","position"],txe={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function nxe(e){e.preventDefault()}function rxe(e){e.stopPropagation()}function ixe(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function oxe(){return"ontouchstart"in window||navigator.maxTouchPoints}var sxe=!!(typeof window<"u"&&window.document&&window.document.createElement),T7=0,e4={capture:!1,passive:!1};function gmt(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=Oo.useRef({}),o=Oo.useRef(null),s=Oo.useCallback(function(l){if(!!sxe){var u=document.body,c=u&&u.style;if(r&&exe.forEach(function(m){var g=c&&c[m];i.current[m]=g}),r&&T7<1){var f=parseInt(i.current.paddingRight,10)||0,d=document.body?document.body.clientWidth:0,h=window.innerWidth-d+f||0;Object.keys(txe).forEach(function(m){var g=txe[m];c&&(c[m]=g)}),c&&(c.paddingRight="".concat(h,"px"))}u&&oxe()&&(u.addEventListener("touchmove",nxe,e4),l&&(l.addEventListener("touchstart",ixe,e4),l.addEventListener("touchmove",rxe,e4))),T7+=1}},[r]),a=Oo.useCallback(function(l){if(!!sxe){var u=document.body,c=u&&u.style;T7=Math.max(T7-1,0),r&&T7<1&&exe.forEach(function(f){var d=i.current[f];c&&(c[f]=d)}),u&&oxe()&&(u.removeEventListener("touchmove",nxe,e4),l&&(l.removeEventListener("touchstart",ixe,e4),l.removeEventListener("touchmove",rxe,e4)))}},[r]);return Oo.useEffect(function(){if(!!t){var l=o.current;return s(l),function(){a(l)}}},[t,s,a]),function(l){o.current=l}}var vmt=function(){return document.activeElement&&document.activeElement.blur()},ymt={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function xmt(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,o=e.onBottomArrive,s=e.onBottomLeave,a=e.onTopArrive,l=e.onTopLeave,u=mmt({isEnabled:i,onBottomArrive:o,onBottomLeave:s,onTopArrive:a,onTopLeave:l}),c=gmt({isEnabled:n}),f=function(h){u(h),c(h)};return Md.jsx(Oo.Fragment,null,n&&Md.jsx("div",{onClick:vmt,css:ymt}),t(f))}var _mt={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},bmt=function(t){var n=t.name,r=t.onFocus;return Md.jsx("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:_mt,value:"",onChange:function(){}})},wmt=bmt,Pmt=function(t){return t.label},fxe=function(t){return t.label},hxe=function(t){return t.value},kmt=function(t){return!!t.isDisabled},Amt={clearIndicator:Zn.clearIndicatorCSS,container:Zn.containerCSS,control:Zn.css,dropdownIndicator:Zn.dropdownIndicatorCSS,group:Zn.groupCSS,groupHeading:Zn.groupHeadingCSS,indicatorsContainer:Zn.indicatorsContainerCSS,indicatorSeparator:Zn.indicatorSeparatorCSS,input:Zn.inputCSS,loadingIndicator:Zn.loadingIndicatorCSS,loadingMessage:Zn.loadingMessageCSS,menu:Zn.menuCSS,menuList:Zn.menuListCSS,menuPortal:Zn.menuPortalCSS,multiValue:Zn.multiValueCSS,multiValueLabel:Zn.multiValueLabelCSS,multiValueRemove:Zn.multiValueRemoveCSS,noOptionsMessage:Zn.noOptionsMessageCSS,option:Zn.optionCSS,placeholder:Zn.placeholderCSS,singleValue:Zn.css$1,valueContainer:Zn.valueContainerCSS};function Cmt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=$u({},e);return Object.keys(t).forEach(function(r){var i=r;e[i]?n[i]=function(o,s){return t[i](e[i](o,s),s)}:n[i]=t[i]}),n}var Smt={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Omt=4,mxe=4,Emt=38,Mmt=mxe*2,Bmt={baseUnit:mxe,controlHeight:Emt,menuGutter:Mmt},eB={borderRadius:Omt,colors:Smt,spacing:Bmt},gxe={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Zn.isTouchCapable(),captureMenuScroll:!Zn.isTouchCapable(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:pxe(),formatGroupLabel:Pmt,getOptionLabel:fxe,getOptionValue:hxe,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:kmt,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Zn.isMobileDevice(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function axe(e,t,n,r){var i=_xe(e,t,n),o=bxe(e,t,n),s=xxe(e,t),a=tB(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:s,value:a,index:r}}function vxe(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(s,a){return axe(e,s,t,a)}).filter(function(s){return lxe(e,s)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=axe(e,n,t,r);return lxe(e,o)?o:void 0}).filter(Zn.notNullish)}function yxe(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,uxe(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function Nmt(e,t){return yxe(vxe(e,t))}function lxe(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,o=t.isSelected,s=t.label,a=t.value;return(!Pxe(e)||!o)&&wxe(e,{label:s,value:a,data:i},r)}function Gmt(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var o=t.indexOf(n);if(o>-1)return n;if(i<t.length)return t[i]}return null}function Fmt(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var xxe=function(t,n){return t.getOptionLabel(n)},tB=function(t,n){return t.getOptionValue(n)};function _xe(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function bxe(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=tB(e,t);return n.some(function(i){return tB(e,i)===r})}function wxe(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var Pxe=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},Imt=1,kxe=function(e){Z0t(n,e);var t=U0t(n);function n(r){var i;if(K0t(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.instancePrefix="",i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.controlRef=null,i.getControlRef=function(a){i.controlRef=a},i.focusedOptionRef=null,i.getFocusedOptionRef=function(a){i.focusedOptionRef=a},i.menuListRef=null,i.getMenuListRef=function(a){i.menuListRef=a},i.inputRef=null,i.getInputRef=function(a){i.inputRef=a},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(a,l){var u=i.props,c=u.onChange,f=u.name;l.name=f,i.ariaOnChange(a,l),c(a,l)},i.setValue=function(a,l,u){var c=i.props,f=c.closeMenuOnSelect,d=c.isMulti,h=c.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:h}),f&&(i.setState({inputIsHiddenAfterUpdate:!d}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(a,{action:l,option:u})},i.selectOption=function(a){var l=i.props,u=l.blurInputOnSelect,c=l.isMulti,f=l.name,d=i.state.selectValue,h=c&&i.isOptionSelected(a,d),m=i.isOptionDisabled(a,d);if(h){var g=i.getOptionValue(a);i.setValue(Zn.multiValueAsValue(d.filter(function(b){return i.getOptionValue(b)!==g})),"deselect-option",a)}else if(!m)c?i.setValue(Zn.multiValueAsValue([].concat(uxe(d),[a])),"select-option",a):i.setValue(Zn.singleValueAsValue(a),"select-option");else{i.ariaOnChange(Zn.singleValueAsValue(a),{action:"select-option",option:a,name:f});return}u&&i.blurInput()},i.removeValue=function(a){var l=i.props.isMulti,u=i.state.selectValue,c=i.getOptionValue(a),f=u.filter(function(h){return i.getOptionValue(h)!==c}),d=Zn.valueTernary(l,f,f[0]||null);i.onChange(d,{action:"remove-value",removedValue:a}),i.focusInput()},i.clearValue=function(){var a=i.state.selectValue;i.onChange(Zn.valueTernary(i.props.isMulti,[],null),{action:"clear",removedValues:a})},i.popValue=function(){var a=i.props.isMulti,l=i.state.selectValue,u=l[l.length-1],c=l.slice(0,l.length-1),f=Zn.valueTernary(a,c,c[0]||null);i.onChange(f,{action:"pop-value",removedValue:u})},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var a=arguments.length,l=new Array(a),u=0;u<a;u++)l[u]=arguments[u];return Zn.classNames.apply(void 0,[i.props.classNamePrefix].concat(l))},i.getOptionLabel=function(a){return xxe(i.props,a)},i.getOptionValue=function(a){return tB(i.props,a)},i.getStyles=function(a,l){var u=i.props.unstyled,c=Amt[a](l,u);c.boxSizing="border-box";var f=i.props.styles[a];return f?f(c,l):c},i.getClassNames=function(a,l){var u,c;return(u=(c=i.props.classNames)[a])===null||u===void 0?void 0:u.call(c,l)},i.getElementId=function(a){return"".concat(i.instancePrefix,"-").concat(a)},i.getComponents=function(){return Zn.defaultComponents(i.props)},i.buildCategorizedOptions=function(){return vxe(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return yxe(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(a,l){i.setState({ariaSelection:$u({value:a},l)})},i.onMenuMouseDown=function(a){a.button===0&&(a.stopPropagation(),a.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(a){i.blockOptionHover=!1},i.onControlMouseDown=function(a){if(!a.defaultPrevented){var l=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&i.onMenuClose():l&&i.openMenu("first"):(l&&(i.openAfterFocus=!0),i.focusInput()),a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&a.preventDefault()}},i.onDropdownIndicatorMouseDown=function(a){if(!(a&&a.type==="mousedown"&&a.button!==0)&&!i.props.isDisabled){var l=i.props,u=l.isMulti,c=l.menuIsOpen;i.focusInput(),c?(i.setState({inputIsHiddenAfterUpdate:!u}),i.onMenuClose()):i.openMenu("first"),a.preventDefault()}},i.onClearIndicatorMouseDown=function(a){a&&a.type==="mousedown"&&a.button!==0||(i.clearValue(),a.preventDefault(),i.openAfterFocus=!1,a.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(a){typeof i.props.closeMenuOnScroll=="boolean"?a.target instanceof HTMLElement&&Zn.isDocumentElement(a.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(a)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(a){var l=a.touches,u=l&&l.item(0);!u||(i.initialTouchX=u.clientX,i.initialTouchY=u.clientY,i.userIsDragging=!1)},i.onTouchMove=function(a){var l=a.touches,u=l&&l.item(0);if(!!u){var c=Math.abs(u.clientX-i.initialTouchX),f=Math.abs(u.clientY-i.initialTouchY),d=5;i.userIsDragging=c>d||f>d}},i.onTouchEnd=function(a){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(a.target)&&i.menuListRef&&!i.menuListRef.contains(a.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(a){i.userIsDragging||i.onControlMouseDown(a)},i.onClearIndicatorTouchEnd=function(a){i.userIsDragging||i.onClearIndicatorMouseDown(a)},i.onDropdownIndicatorTouchEnd=function(a){i.userIsDragging||i.onDropdownIndicatorMouseDown(a)},i.handleInputChange=function(a){var l=i.props.inputValue,u=a.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(u,{action:"input-change",prevInputValue:l}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(a){i.props.onFocus&&i.props.onFocus(a),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(a){var l=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(a),i.onInputChange("",{action:"input-blur",prevInputValue:l}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(a){i.blockOptionHover||i.state.focusedOption===a||i.setState({focusedOption:a})},i.shouldHideSelectedOptions=function(){return Pxe(i.props)},i.onValueInputFocus=function(a){a.preventDefault(),a.stopPropagation(),i.focus()},i.onKeyDown=function(a){var l=i.props,u=l.isMulti,c=l.backspaceRemovesValue,f=l.escapeClearsValue,d=l.inputValue,h=l.isClearable,m=l.isDisabled,g=l.menuIsOpen,b=l.onKeyDown,v=l.tabSelectsValue,x=l.openMenuOnFocus,y=i.state,_=y.focusedOption,w=y.focusedValue,k=y.selectValue;if(!m&&!(typeof b=="function"&&(b(a),a.defaultPrevented))){switch(i.blockOptionHover=!0,a.key){case"ArrowLeft":if(!u||d)return;i.focusValue("previous");break;case"ArrowRight":if(!u||d)return;i.focusValue("next");break;case"Delete":case"Backspace":if(d)return;if(w)i.removeValue(w);else{if(!c)return;u?i.popValue():h&&i.clearValue()}break;case"Tab":if(i.isComposing||a.shiftKey||!g||!v||!_||x&&i.isOptionSelected(_,k))return;i.selectOption(_);break;case"Enter":if(a.keyCode===229)break;if(g){if(!_||i.isComposing)return;i.selectOption(_);break}return;case"Escape":g?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:d}),i.onMenuClose()):h&&f&&i.clearValue();break;case" ":if(d)return;if(!g){i.openMenu("first");break}if(!_)return;i.selectOption(_);break;case"ArrowUp":g?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":g?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!g)return;i.focusOption("pageup");break;case"PageDown":if(!g)return;i.focusOption("pagedown");break;case"Home":if(!g)return;i.focusOption("first");break;case"End":if(!g)return;i.focusOption("last");break;default:return}a.preventDefault()}},i.instancePrefix="react-select-"+(i.props.instanceId||++Imt),i.state.selectValue=Zn.cleanValue(r.value),r.menuIsOpen&&i.state.selectValue.length){var o=i.buildFocusableOptions(),s=o.indexOf(i.state.selectValue[0]);i.state.focusedOption=o[s]}return i}return Y0t(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Zn.scrollIntoView(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var o=this.props,s=o.isDisabled,a=o.menuIsOpen,l=this.state.isFocused;(l&&!s&&i.isDisabled||l&&a&&!i.menuIsOpen)&&this.focusInput(),l&&s&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!s&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Zn.scrollIntoView(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,o){this.props.onInputChange(i,o)}},{key:"focusInput",value:function(){!this.inputRef||this.inputRef.focus()}},{key:"blurInput",value:function(){!this.inputRef||this.inputRef.blur()}},{key:"openMenu",value:function(i){var o=this,s=this.state,a=s.selectValue,l=s.isFocused,u=this.buildFocusableOptions(),c=i==="first"?0:u.length-1;if(!this.props.isMulti){var f=u.indexOf(a[0]);f>-1&&(c=f)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c]},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,s=o.selectValue,a=o.focusedValue;if(!!this.props.isMulti){this.setState({focusedOption:null});var l=s.indexOf(a);a||(l=-1);var u=s.length-1,c=-1;if(!!s.length){switch(i){case"previous":l===0?c=0:l===-1?c=u:c=l-1;break;case"next":l>-1&&l<u&&(c=l+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:s[c]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,s=this.state.focusedOption,a=this.getFocusableOptions();if(!!a.length){var l=0,u=a.indexOf(s);s||(u=-1),i==="up"?l=u>0?u-1:a.length-1:i==="down"?l=(u+1)%a.length:i==="pageup"?(l=u-o,l<0&&(l=0)):i==="pagedown"?(l=u+o,l>a.length-1&&(l=a.length-1)):i==="last"&&(l=a.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:a[l],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(eB):$u($u({},eB),this.props.theme):eB}},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,s=this.getStyles,a=this.getClassNames,l=this.getValue,u=this.selectOption,c=this.setValue,f=this.props,d=f.isMulti,h=f.isRtl,m=f.options,g=this.hasValue();return{clearValue:i,cx:o,getStyles:s,getClassNames:a,getValue:l,hasValue:g,isMulti:d,isRtl:h,options:m,selectOption:u,selectProps:f,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,o=i.isClearable,s=i.isMulti;return o===void 0?s:o}},{key:"isOptionDisabled",value:function(i,o){return _xe(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return bxe(this.props,i,o)}},{key:"filterOption",value:function(i,o){return wxe(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var s=this.props.inputValue,a=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:s,selectValue:a})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,o=i.isDisabled,s=i.isSearchable,a=i.inputId,l=i.inputValue,u=i.tabIndex,c=i.form,f=i.menuIsOpen,d=i.required,h=this.getComponents(),m=h.Input,g=this.state,b=g.inputIsHidden,v=g.ariaSelection,x=this.commonProps,y=a||this.getElementId("input"),_=$u($u($u({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":d,role:"combobox"},f&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!s&&{"aria-readonly":!0}),this.hasValue()?v?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return s?Ui.createElement(m,bs({},x,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:y,innerRef:this.getInputRef,isDisabled:o,isHidden:b,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:l},_)):Ui.createElement(fmt,bs({id:y,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Zn.noop,onFocus:this.onInputFocus,disabled:o,tabIndex:u,inputMode:"none",form:c,value:""},_))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),s=o.MultiValue,a=o.MultiValueContainer,l=o.MultiValueLabel,u=o.MultiValueRemove,c=o.SingleValue,f=o.Placeholder,d=this.commonProps,h=this.props,m=h.controlShouldRenderValue,g=h.isDisabled,b=h.isMulti,v=h.inputValue,x=h.placeholder,y=this.state,_=y.selectValue,w=y.focusedValue,k=y.isFocused;if(!this.hasValue()||!m)return v?null:Ui.createElement(f,bs({},d,{key:"placeholder",isDisabled:g,isFocused:k,innerProps:{id:this.getElementId("placeholder")}}),x);if(b)return _.map(function(M,I){var W=M===w,J="".concat(i.getOptionLabel(M),"-").concat(i.getOptionValue(M));return Ui.createElement(s,bs({},d,{components:{Container:a,Label:l,Remove:u},isFocused:W,isDisabled:g,key:J,index:I,removeProps:{onClick:function(){return i.removeValue(M)},onTouchEnd:function(){return i.removeValue(M)},onMouseDown:function(ee){ee.preventDefault()}},data:M}),i.formatOptionLabel(M,"value"))});if(v)return null;var O=_[0];return Ui.createElement(c,bs({},d,{data:O,isDisabled:g}),this.formatOptionLabel(O,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,s=this.commonProps,a=this.props,l=a.isDisabled,u=a.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||l||!this.hasValue()||u)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return Ui.createElement(o,bs({},s,{innerProps:f,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,s=this.commonProps,a=this.props,l=a.isDisabled,u=a.isLoading,c=this.state.isFocused;if(!o||!u)return null;var f={"aria-hidden":"true"};return Ui.createElement(o,bs({},s,{innerProps:f,isDisabled:l,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,s=i.IndicatorSeparator;if(!o||!s)return null;var a=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused;return Ui.createElement(s,bs({},a,{isDisabled:l,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var s=this.commonProps,a=this.props.isDisabled,l=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return Ui.createElement(o,bs({},s,{innerProps:u,isDisabled:a,isFocused:l}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),s=o.Group,a=o.GroupHeading,l=o.Menu,u=o.MenuList,c=o.MenuPortal,f=o.LoadingMessage,d=o.NoOptionsMessage,h=o.Option,m=this.commonProps,g=this.state.focusedOption,b=this.props,v=b.captureMenuScroll,x=b.inputValue,y=b.isLoading,_=b.loadingMessage,w=b.minMenuHeight,k=b.maxMenuHeight,O=b.menuIsOpen,M=b.menuPlacement,I=b.menuPosition,W=b.menuPortalTarget,J=b.menuShouldBlockScroll,H=b.menuShouldScrollIntoView,ee=b.noOptionsMessage,j=b.onMenuScrollToTop,V=b.onMenuScrollToBottom;if(!O)return null;var B=function(U,F){var D=U.type,L=U.data,$=U.isDisabled,Z=U.isSelected,se=U.label,Y=U.value,ue=g===L,pe=$?void 0:function(){return i.onOptionHover(L)},oe=$?void 0:function(){return i.selectOption(L)},de="".concat(i.getElementId("option"),"-").concat(F),ve={id:de,onClick:oe,onMouseMove:pe,onMouseOver:pe,tabIndex:-1};return Ui.createElement(h,bs({},m,{innerProps:ve,data:L,isDisabled:$,isSelected:Z,key:de,label:se,type:D,value:Y,isFocused:ue,innerRef:ue?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(U.data,"menu"))},N;if(this.hasOptions())N=this.getCategorizedOptions().map(function(Q){if(Q.type==="group"){var U=Q.data,F=Q.options,D=Q.index,L="".concat(i.getElementId("group"),"-").concat(D),$="".concat(L,"-heading");return Ui.createElement(s,bs({},m,{key:L,data:U,options:F,Heading:a,headingProps:{id:$,data:Q.data},label:i.formatGroupLabel(Q.data)}),Q.options.map(function(Z){return B(Z,"".concat(D,"-").concat(Z.index))}))}else if(Q.type==="option")return B(Q,"".concat(Q.index))});else if(y){var C=_({inputValue:x});if(C===null)return null;N=Ui.createElement(f,m,C)}else{var S=ee({inputValue:x});if(S===null)return null;N=Ui.createElement(d,m,S)}var G={minMenuHeight:w,maxMenuHeight:k,menuPlacement:M,menuPosition:I,menuShouldScrollIntoView:H},T=Ui.createElement(Zn.MenuPlacer,bs({},m,G),function(Q){var U=Q.ref,F=Q.placerProps,D=F.placement,L=F.maxHeight;return Ui.createElement(l,bs({},m,G,{innerRef:U,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove,id:i.getElementId("listbox")},isLoading:y,placement:D}),Ui.createElement(xmt,{captureEnabled:v,onTopArrive:j,onBottomArrive:V,lockEnabled:J},function($){return Ui.createElement(u,bs({},m,{innerRef:function(se){i.getMenuListRef(se),$(se)},isLoading:y,maxHeight:L,focusedOption:g}),N)}))});return W||I==="fixed"?Ui.createElement(c,bs({},m,{appendTo:W,controlElement:this.controlRef,menuPlacement:M,menuPosition:I}),T):T}},{key:"renderFormField",value:function(){var i=this,o=this.props,s=o.delimiter,a=o.isDisabled,l=o.isMulti,u=o.name,c=o.required,f=this.state.selectValue;if(c&&!this.hasValue()&&!a)return Ui.createElement(wmt,{name:u,onFocus:this.onValueInputFocus});if(!(!u||a))if(l)if(s){var d=f.map(function(g){return i.getOptionValue(g)}).join(s);return Ui.createElement("input",{name:u,type:"hidden",value:d})}else{var h=f.length>0?f.map(function(g,b){return Ui.createElement("input",{key:"i-".concat(b),name:u,type:"hidden",value:i.getOptionValue(g)})}):Ui.createElement("input",{name:u,type:"hidden",value:""});return Ui.createElement("div",null,h)}else{var m=f[0]?this.getOptionValue(f[0]):"";return Ui.createElement("input",{name:u,type:"hidden",value:m})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,s=o.ariaSelection,a=o.focusedOption,l=o.focusedValue,u=o.isFocused,c=o.selectValue,f=this.getFocusableOptions();return Ui.createElement(lmt,bs({},i,{id:this.getElementId("live-region"),ariaSelection:s,focusedOption:a,focusedValue:l,isFocused:u,selectValue:c,focusableOptions:f}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,s=i.IndicatorsContainer,a=i.SelectContainer,l=i.ValueContainer,u=this.props,c=u.className,f=u.id,d=u.isDisabled,h=u.menuIsOpen,m=this.state.isFocused,g=this.commonProps=this.getCommonProps();return Ui.createElement(a,bs({},g,{className:c,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:d,isFocused:m}),this.renderLiveRegion(),Ui.createElement(o,bs({},g,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:d,isFocused:m,menuIsOpen:h}),Ui.createElement(l,bs({},g,{isDisabled:d}),this.renderPlaceholderOrValue(),this.renderInput()),Ui.createElement(s,bs({},g,{isDisabled:d}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,o){var s=o.prevProps,a=o.clearFocusValueOnUpdate,l=o.inputIsHiddenAfterUpdate,u=o.ariaSelection,c=o.isFocused,f=o.prevWasFocused,d=i.options,h=i.value,m=i.menuIsOpen,g=i.inputValue,b=i.isMulti,v=Zn.cleanValue(h),x={};if(s&&(h!==s.value||d!==s.options||m!==s.menuIsOpen||g!==s.inputValue)){var y=m?Nmt(i,v):[],_=a?Gmt(o,v):null,w=Fmt(o,y);x={selectValue:v,focusedOption:w,focusedValue:_,clearFocusValueOnUpdate:!1}}var k=l!=null&&i!==s?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},O=u,M=c&&f;return c&&!M&&(O={value:Zn.valueTernary(b,v,v[0]||null),options:v,action:"initial-input-focus"},M=!f),u?.action==="initial-input-focus"&&(O=null),$u($u($u({},x),k),{},{prevProps:i,ariaSelection:O,prevWasFocused:M})}}]),n}(Oo.Component);kxe.defaultProps=gxe;bg.Select=kxe;bg.createFilter=pxe;bg.defaultProps=gxe;bg.defaultTheme=eB;bg.getOptionLabel=fxe;bg.getOptionValue=hxe;bg.mergeStyles=Cmt});var Oxe=ne(V0=>{"use strict";Object.defineProperty(V0,"__esModule",{value:!0});var Cxe=w6e(),zmt=Zx(),hK=Pe(),nB=Axe(),Tmt=VM(),Dmt=OM(),Rmt=dK();d7();kM();_7();w$();P$();A$();S$();O$();pK();Yx();iK();PM();Yl();oK();aK();function Lmt(e){return e&&e.__esModule?e:{default:e}}function Vmt(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var Sxe=Vmt(hK),Jmt=Lmt(Dmt),jmt=hK.forwardRef(function(e,t){var n=Cxe.useStateManager(e);return Sxe.createElement(nB.Select,zmt({ref:t},n))}),Hmt=jmt,Wmt=function(e){var t=e.nonce,n=e.children,r=e.cacheKey,i=hK.useMemo(function(){return Jmt.default({key:r,nonce:t})},[r,t]);return Sxe.createElement(Tmt.CacheProvider,{value:i},n)};V0.useStateManager=Cxe.useStateManager;V0.createFilter=nB.createFilter;V0.defaultTheme=nB.defaultTheme;V0.mergeStyles=nB.mergeStyles;V0.components=Rmt.components;V0.NonceProvider=Wmt;V0.default=Hmt});var Mxe=ne((y8n,Exe)=>{"use strict";Exe.exports=Oxe()});var Nxe=ne(Bxe=>{Bxe._default=Mxe().default});var yK=ne((vK,rB)=>{(()=>{((e,t)=>{if(typeof rB<"u"&&rB.exports)return rB.exports=t();if(typeof define=="function"&&define.amd)define([],()=>e.TimeMe=t());else return e.TimeMe=t()})(vK,()=>{let e={startStopTimes:{},idleTimeoutMs:3e4,currentIdleTimeMs:0,checkIdleStateRateMs:250,isUserCurrentlyOnPage:!0,isUserCurrentlyIdle:!1,currentPageName:"default-page-name",timeElapsedCallbacks:[],userLeftCallbacks:[],userReturnCallbacks:[],trackTimeOnElement:t=>{let n=document.getElementById(t);n&&(n.addEventListener("mouseover",()=>{e.startTimer(t)}),n.addEventListener("mousemove",()=>{e.startTimer(t)}),n.addEventListener("mouseleave",()=>{e.stopTimer(t)}),n.addEventListener("keypress",()=>{e.startTimer(t)}),n.addEventListener("focus",()=>{e.startTimer(t)}))},getTimeOnElementInSeconds:t=>{let n=e.getTimeOnPageInSeconds(t);return n||0},startTimer:(t,n)=>{if(t||(t=e.currentPageName),e.startStopTimes[t]===void 0)e.startStopTimes[t]=[];else{let r=e.startStopTimes[t],i=r[r.length-1];if(i!==void 0&&i.stopTime===void 0)return}e.startStopTimes[t].push({startTime:n||new Date,stopTime:void 0})},stopAllTimers:()=>{let t=Object.keys(e.startStopTimes);for(let n=0;n<t.length;n++)e.stopTimer(t[n])},stopTimer:(t,n)=>{t||(t=e.currentPageName);let r=e.startStopTimes[t];r===void 0||r.length===0||r[r.length-1].stopTime===void 0&&(r[r.length-1].stopTime=n||new Date)},getTimeOnCurrentPageInSeconds:()=>e.getTimeOnPageInSeconds(e.currentPageName),getTimeOnPageInSeconds:t=>{let n=e.getTimeOnPageInMilliseconds(t);if(n!==void 0)return n/1e3},getTimeOnCurrentPageInMilliseconds:()=>e.getTimeOnPageInMilliseconds(e.currentPageName),getTimeOnPageInMilliseconds:t=>{let n=0,r=e.startStopTimes[t];if(r===void 0)return;let i=0;for(let o=0;o<r.length;o++){let s=r[o].startTime,a=r[o].stopTime;a===void 0&&(a=new Date);let l=a-s;i+=l}return n=Number(i),n},getTimeOnAllPagesInSeconds:()=>{let t=[],n=Object.keys(e.startStopTimes);for(let r=0;r<n.length;r++){let i=n[r],o=e.getTimeOnPageInSeconds(i);t.push({pageName:i,timeOnPage:o})}return t},setIdleDurationInSeconds:t=>{let n=parseFloat(t);if(isNaN(n)===!1)e.idleTimeoutMs=t*1e3;else throw{name:"InvalidDurationException",message:"An invalid duration time ("+t+") was provided."}},setCurrentPageName:t=>{e.currentPageName=t},resetRecordedPageTime:t=>{delete e.startStopTimes[t]},resetAllRecordedPageTimes:()=>{let t=Object.keys(e.startStopTimes);for(let n=0;n<t.length;n++)e.resetRecordedPageTime(t[n])},userActivityDetected:()=>{e.isUserCurrentlyIdle&&e.triggerUserHasReturned(),e.resetIdleCountdown()},resetIdleCountdown:()=>{e.isUserCurrentlyIdle=!1,e.currentIdleTimeMs=0},callWhenUserLeaves:(t,n)=>{e.userLeftCallbacks.push({callback:t,numberOfTimesToInvoke:n})},callWhenUserReturns:(t,n)=>{e.userReturnCallbacks.push({callback:t,numberOfTimesToInvoke:n})},triggerUserHasReturned:()=>{if(!e.isUserCurrentlyOnPage){e.isUserCurrentlyOnPage=!0,e.resetIdleCountdown();for(let t=0;t<e.userReturnCallbacks.length;t++){let n=e.userReturnCallbacks[t],r=n.numberOfTimesToInvoke;(isNaN(r)||r===void 0||r>0)&&(n.numberOfTimesToInvoke-=1,n.callback())}}e.startTimer()},triggerUserHasLeftPageOrGoneIdle:()=>{if(e.isUserCurrentlyOnPage){e.isUserCurrentlyOnPage=!1;for(let t=0;t<e.userLeftCallbacks.length;t++){let n=e.userLeftCallbacks[t],r=n.numberOfTimesToInvoke;(isNaN(r)||r===void 0||r>0)&&(n.numberOfTimesToInvoke-=1,n.callback())}}e.stopAllTimers()},callAfterTimeElapsedInSeconds:(t,n)=>{e.timeElapsedCallbacks.push({timeInSeconds:t,callback:n,pending:!0})},checkIdleState:()=>{for(let t=0;t<e.timeElapsedCallbacks.length;t++)e.timeElapsedCallbacks[t].pending&&e.getTimeOnCurrentPageInSeconds()>e.timeElapsedCallbacks[t].timeInSeconds&&(e.timeElapsedCallbacks[t].callback(),e.timeElapsedCallbacks[t].pending=!1);e.isUserCurrentlyIdle===!1&&e.currentIdleTimeMs>e.idleTimeoutMs?(e.isUserCurrentlyIdle=!0,e.triggerUserHasLeftPageOrGoneIdle()):e.currentIdleTimeMs+=e.checkIdleStateRateMs},visibilityChangeEventName:void 0,hiddenPropName:void 0,listenForVisibilityEvents:(t,n)=>{t&&e.listenForUserLeavesOrReturnsEvents(),n&&e.listForIdleEvents()},listenForUserLeavesOrReturnsEvents:()=>{typeof document.hidden<"u"?(e.hiddenPropName="hidden",e.visibilityChangeEventName="visibilitychange"):typeof document.mozHidden<"u"?(e.hiddenPropName="mozHidden",e.visibilityChangeEventName="mozvisibilitychange"):typeof document.msHidden<"u"?(e.hiddenPropName="msHidden",e.visibilityChangeEventName="msvisibilitychange"):typeof document.webkitHidden<"u"&&(e.hiddenPropName="webkitHidden",e.visibilityChangeEventName="webkitvisibilitychange"),document.addEventListener(e.visibilityChangeEventName,()=>{document[e.hiddenPropName]?e.triggerUserHasLeftPageOrGoneIdle():e.triggerUserHasReturned()},!1),window.addEventListener("blur",()=>{e.triggerUserHasLeftPageOrGoneIdle()}),window.addEventListener("focus",()=>{e.triggerUserHasReturned()})},listForIdleEvents:()=>{document.addEventListener("mousemove",()=>{e.userActivityDetected()}),document.addEventListener("keyup",()=>{e.userActivityDetected()}),document.addEventListener("touchstart",()=>{e.userActivityDetected()}),window.addEventListener("scroll",()=>{e.userActivityDetected()}),setInterval(()=>{e.isUserCurrentlyIdle!==!0&&e.checkIdleState()},e.checkIdleStateRateMs)},websocket:void 0,websocketHost:void 0,setUpWebsocket:t=>{if(window.WebSocket&&t){let n=t.websocketHost;try{e.websocket=new WebSocket(n),window.onbeforeunload=()=>{e.sendCurrentTime(t.appId)},e.websocket.onopen=()=>{e.sendInitWsRequest(t.appId)},e.websocket.onerror=r=>{console&&console.log("Error occurred in websocket connection: "+r)},e.websocket.onmessage=r=>{console&&console.log(r.data)}}catch(r){console&&console.error("Failed to connect to websocket host.  Error:"+r)}}},websocketSend:t=>{e.websocket.send(JSON.stringify(t))},sendCurrentTime:t=>{let n=e.getTimeOnCurrentPageInMilliseconds(),r={type:"INSERT_TIME",appId:t,timeOnPageMs:n,pageName:e.currentPageName};e.websocketSend(r)},sendInitWsRequest:t=>{let n={type:"INIT",appId:t};e.websocketSend(n)},initialize:t=>{let n=e.idleTimeoutMs||30,r=e.currentPageName||"default-page-name",i,o,s=!0,a=!0;t&&(n=t.idleTimeoutInSeconds||n,r=t.currentPageName||r,i=t.websocketOptions,o=t.initialStartTime,t.trackWhenUserLeavesPage===!1&&(s=!1),t.trackWhenUserGoesIdle===!1&&(a=!1)),e.setIdleDurationInSeconds(n),e.setCurrentPageName(r),e.setUpWebsocket(i),e.listenForVisibilityEvents(s,a),e.startTimer(void 0,o)}};return e})}).call(vK)});var Lxe=ne((F8n,Rxe)=>{Rxe.exports=function(t,n,r){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("script");typeof n=="function"&&(r=n,n={}),n=n||{},r=r||function(){},o.type=n.type||"text/javascript",o.charset=n.charset||"utf8",o.async="async"in n?!!n.async:!0,o.src=t,n.attrs&&Xmt(o,n.attrs),n.text&&(o.text=""+n.text);var s="onload"in o?Dxe:qmt;s(o,r),o.onload||Dxe(o,r),i.appendChild(o)};function Xmt(e,t){for(var n in t)e.setAttribute(n,t[n])}function Dxe(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 qmt(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}});var xK=ne((I8n,jxe)=>{"use strict";var $mt=function(t){return Kmt(t)&&!Ymt(t)};function Kmt(e){return!!e&&typeof e=="object"}function Ymt(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Qmt(e)}var Zmt=typeof Symbol=="function"&&Symbol.for,Umt=Zmt?Symbol.for("react.element"):60103;function Qmt(e){return e.$$typeof===Umt}function e1t(e){return Array.isArray(e)?[]:{}}function R7(e,t){return t.clone!==!1&&t.isMergeableObject(e)?n4(e1t(e),e,t):e}function t1t(e,t,n){return e.concat(t).map(function(r){return R7(r,n)})}function n1t(e,t){if(!t.customMerge)return n4;var n=t.customMerge(e);return typeof n=="function"?n:n4}function r1t(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Vxe(e){return Object.keys(e).concat(r1t(e))}function Jxe(e,t){try{return t in e}catch{return!1}}function i1t(e,t){return Jxe(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function o1t(e,t,n){var r={};return n.isMergeableObject(e)&&Vxe(e).forEach(function(i){r[i]=R7(e[i],n)}),Vxe(t).forEach(function(i){i1t(e,i)||(Jxe(e,i)&&n.isMergeableObject(t[i])?r[i]=n1t(i,n)(e[i],t[i],n):r[i]=R7(t[i],n))}),r}function n4(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||t1t,n.isMergeableObject=n.isMergeableObject||$mt,n.cloneUnlessOtherwiseSpecified=R7;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):o1t(e,t,n):R7(t,n)}n4.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return n4(r,i,n)},{})};var s1t=n4;jxe.exports=s1t});var $a=ne(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.parseStartTime=y1t;Gc.parseEndTime=x1t;Gc.randomString=_1t;Gc.queryString=b1t;Gc.getSDK=w1t;Gc.getConfig=P1t;Gc.omit=k1t;Gc.callPlayer=A1t;Gc.isMediaStream=C1t;Gc.isBlobUrl=S1t;Gc.supportsWebKitPresentationMode=O1t;var a1t=Wxe(Lxe()),l1t=Wxe(xK());function Wxe(e){return e&&e.__esModule?e:{default:e}}function u1t(e,t){return f1t(e)||p1t(e,t)||d1t(e,t)||c1t()}function c1t(){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 d1t(e,t){if(!!e){if(typeof e=="string")return Hxe(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 Hxe(e,t)}}function Hxe(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p1t(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,o=void 0;try{for(var s=e[Symbol.iterator](),a;!(r=(a=s.next()).done)&&(n.push(a.value),!(t&&n.length===t));r=!0);}catch(l){i=!0,o=l}finally{try{!r&&s.return!=null&&s.return()}finally{if(i)throw o}}return n}}function f1t(e){if(Array.isArray(e))return e}var h1t=/[?&#](?:start|t)=([0-9hms]+)/,m1t=/[?&#]end=([0-9hms]+)/,bK=/(\d+)(h|m|s)/g,g1t=/^\d+$/;function Xxe(e,t){if(!(e instanceof Array)){var n=e.match(t);if(n){var r=n[1];if(r.match(bK))return v1t(r);if(g1t.test(r))return parseInt(r)}}}function v1t(e){for(var t=0,n=bK.exec(e);n!==null;){var r=n,i=u1t(r,3),o=i[1],s=i[2];s==="h"&&(t+=parseInt(o,10)*60*60),s==="m"&&(t+=parseInt(o,10)*60),s==="s"&&(t+=parseInt(o,10)),n=bK.exec(e)}return t}function y1t(e){return Xxe(e,h1t)}function x1t(e){return Xxe(e,m1t)}function _1t(){return Math.random().toString(36).substr(2,5)}function b1t(e){return Object.keys(e).map(function(t){return"".concat(t,"=").concat(e[t])}).join("&")}function _K(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}var r4={};function w1t(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){return!0},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:a1t.default,o=_K(t);return o&&r(o)?Promise.resolve(o):new Promise(function(s,a){if(r4[e]){r4[e].push({resolve:s,reject:a});return}r4[e]=[{resolve:s,reject:a}];var l=function(f){r4[e].forEach(function(d){return d.resolve(f)})};if(n){var u=window[n];window[n]=function(){u&&u(),l(_K(t))}}i(e,function(c){c?(r4[e].forEach(function(f){return f.reject(c)}),r4[e]=null):n||l(_K(t))})})}function P1t(e,t){return(0,l1t.default)(t.config,e.config)}function k1t(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(var o=(t=[]).concat.apply(t,r),s={},a=Object.keys(e),l=0,u=a;l<u.length;l++){var c=u[l];o.indexOf(c)===-1&&(s[c]=e[c])}return s}function A1t(e){var t;if(!this.player||!this.player[e]){var n="ReactPlayer: ".concat(this.constructor.displayName," player could not call %c").concat(e,"%c \u2013 ");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}for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return(t=this.player)[e].apply(t,i)}function C1t(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function S1t(e){return/^blob:/.test(e)}function O1t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document.createElement("video"),t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}});var Ku=ne(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.canPlay=kr.FLV_EXTENSIONS=kr.DASH_EXTENSIONS=kr.HLS_EXTENSIONS=kr.VIDEO_EXTENSIONS=kr.AUDIO_EXTENSIONS=kr.MATCH_URL_KALTURA=kr.MATCH_URL_VIDYARD=kr.MATCH_URL_MIXCLOUD=kr.MATCH_URL_DAILYMOTION=kr.MATCH_URL_TWITCH_CHANNEL=kr.MATCH_URL_TWITCH_VIDEO=kr.MATCH_URL_WISTIA=kr.MATCH_URL_STREAMABLE=kr.MATCH_URL_FACEBOOK_WATCH=kr.MATCH_URL_FACEBOOK=kr.MATCH_URL_VIMEO=kr.MATCH_URL_SOUNDCLOUD=kr.MATCH_URL_YOUTUBE=void 0;var qxe=$a();function E1t(e,t){var n;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=M1t(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,a;return{s:function(){n=e[Symbol.iterator]()},n:function(){var u=n.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(s)throw a}}}}function M1t(e,t){if(!!e){if(typeof e=="string")return $xe(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 $xe(e,t)}}function $xe(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var wK=/(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//;kr.MATCH_URL_YOUTUBE=wK;var Kxe=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/;kr.MATCH_URL_SOUNDCLOUD=Kxe;var Yxe=/vimeo\.com\/(?!progressive_redirect).+/;kr.MATCH_URL_VIMEO=Yxe;var Zxe=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;kr.MATCH_URL_FACEBOOK=Zxe;var Uxe=/^https?:\/\/fb\.watch\/.+$/;kr.MATCH_URL_FACEBOOK_WATCH=Uxe;var Qxe=/streamable\.com\/([a-z0-9]+)$/;kr.MATCH_URL_STREAMABLE=Qxe;var e4e=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?(.*)$/;kr.MATCH_URL_WISTIA=e4e;var t4e=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;kr.MATCH_URL_TWITCH_VIDEO=t4e;var n4e=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/;kr.MATCH_URL_TWITCH_CHANNEL=n4e;var r4e=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/;kr.MATCH_URL_DAILYMOTION=r4e;var i4e=/mixcloud\.com\/([^/]+\/[^/]+)/;kr.MATCH_URL_MIXCLOUD=i4e;var o4e=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/;kr.MATCH_URL_VIDYARD=o4e;var s4e=/^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-_].*)$/;kr.MATCH_URL_KALTURA=s4e;var PK=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;kr.AUDIO_EXTENSIONS=PK;var kK=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i;kr.VIDEO_EXTENSIONS=kK;var AK=/\.(m3u8)($|\?)/i;kr.HLS_EXTENSIONS=AK;var a4e=/\.(mpd)($|\?)/i;kr.DASH_EXTENSIONS=a4e;var l4e=/\.(flv)($|\?)/i;kr.FLV_EXTENSIONS=l4e;var B1t=function e(t){if(t instanceof Array){var n=E1t(t),r;try{for(n.s();!(r=n.n()).done;){var i=r.value;if(typeof i=="string"&&e(i)||e(i.src))return!0}}catch(o){n.e(o)}finally{n.f()}return!1}return(0,qxe.isMediaStream)(t)||(0,qxe.isBlobUrl)(t)?!0:PK.test(t)||kK.test(t)||AK.test(t)||a4e.test(t)||l4e.test(t)},N1t={youtube:function(t){return t instanceof Array?t.every(function(n){return wK.test(n)}):wK.test(t)},soundcloud:function(t){return Kxe.test(t)&&!PK.test(t)},vimeo:function(t){return Yxe.test(t)&&!kK.test(t)&&!AK.test(t)},facebook:function(t){return Zxe.test(t)||Uxe.test(t)},streamable:function(t){return Qxe.test(t)},wistia:function(t){return e4e.test(t)},twitch:function(t){return t4e.test(t)||n4e.test(t)},dailymotion:function(t){return r4e.test(t)},mixcloud:function(t){return i4e.test(t)},vidyard:function(t){return o4e.test(t)},kaltura:function(t){return s4e.test(t)},file:B1t};kr.canPlay=N1t});var g4e=ne(sB=>{"use strict";function L7(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?L7=function(n){return typeof n}:L7=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},L7(e)}Object.defineProperty(sB,"__esModule",{value:!0});sB.default=void 0;var CK=G1t(Pe()),i4=$a(),h4e=Ku();function m4e(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return m4e=function(){return e},e}function G1t(e){if(e&&e.__esModule)return e;if(e===null||L7(e)!=="object"&&typeof e!="function")return{default:e};var t=m4e();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function u4e(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 SK(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?u4e(Object(n),!0).forEach(function(r){J0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u4e(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function c4e(e,t){return T1t(e)||z1t(e,t)||I1t(e,t)||F1t()}function F1t(){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 I1t(e,t){if(!!e){if(typeof e=="string")return d4e(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 d4e(e,t)}}function d4e(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function z1t(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,o=void 0;try{for(var s=e[Symbol.iterator](),a;!(r=(a=s.next()).done)&&(n.push(a.value),!(t&&n.length===t));r=!0);}catch(l){i=!0,o=l}finally{try{!r&&s.return!=null&&s.return()}finally{if(i)throw o}}return n}}function T1t(e){if(Array.isArray(e))return e}function D1t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p4e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function R1t(e,t,n){return t&&p4e(e.prototype,t),n&&p4e(e,n),e}function L1t(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&EK(e,t)}function EK(e,t){return EK=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},EK(e,t)}function V1t(e){var t=j1t();return function(){var r=oB(e),i;if(t){var o=oB(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return J1t(this,i)}}function J1t(e,t){return t&&(L7(t)==="object"||typeof t=="function")?t:ny(e)}function ny(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j1t(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function oB(e){return oB=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},oB(e)}function J0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var H1t="https://www.youtube.com/iframe_api",f4e="YT",W1t="onYouTubeIframeAPIReady",iB=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,OK=/user\/([a-zA-Z0-9_-]+)\/?/,X1t=/youtube-nocookie\.com/,q1t="https://www.youtube-nocookie.com",MK=function(e){L1t(n,e);var t=V1t(n);function n(){var r;D1t(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),J0(ny(r),"callPlayer",i4.callPlayer),J0(ny(r),"parsePlaylist",function(a){if(a instanceof Array)return{listType:"playlist",playlist:a.map(r.getID).join(",")};if(iB.test(a)){var l=a.match(iB),u=c4e(l,2),c=u[1];return{listType:"playlist",list:c.replace(/^UC/,"UU")}}if(OK.test(a)){var f=a.match(OK),d=c4e(f,2),h=d[1];return{listType:"user_uploads",list:h}}return{}}),J0(ny(r),"onStateChange",function(a){var l=a.data,u=r.props,c=u.onPlay,f=u.onPause,d=u.onBuffer,h=u.onBufferEnd,m=u.onEnded,g=u.onReady,b=u.loop,v=u.config,x=v.playerVars,y=v.onUnstarted,_=window[f4e].PlayerState,w=_.UNSTARTED,k=_.PLAYING,O=_.PAUSED,M=_.BUFFERING,I=_.ENDED,W=_.CUED;if(l===w&&y(),l===k&&(c(),h()),l===O&&f(),l===M&&d(),l===I){var J=!!r.callPlayer("getPlaylist");b&&!J&&(x.start?r.seekTo(x.start):r.play()),m()}l===W&&g()}),J0(ny(r),"mute",function(){r.callPlayer("mute")}),J0(ny(r),"unmute",function(){r.callPlayer("unMute")}),J0(ny(r),"ref",function(a){r.container=a}),r}return R1t(n,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"getID",value:function(i){return!i||i instanceof Array||iB.test(i)?null:i.match(h4e.MATCH_URL_YOUTUBE)[1]}},{key:"load",value:function(i,o){var s=this,a=this.props,l=a.playing,u=a.muted,c=a.playsinline,f=a.controls,d=a.loop,h=a.config,m=a.onError,g=h.playerVars,b=h.embedOptions,v=this.getID(i);if(o){if(iB.test(i)||OK.test(i)||i instanceof Array){this.player.loadPlaylist(this.parsePlaylist(i));return}this.player.cueVideoById({videoId:v,startSeconds:(0,i4.parseStartTime)(i)||g.start,endSeconds:(0,i4.parseEndTime)(i)||g.end});return}(0,i4.getSDK)(H1t,f4e,W1t,function(x){return x.loaded}).then(function(x){!s.container||(s.player=new x.Player(s.container,SK({width:"100%",height:"100%",videoId:v,playerVars:SK(SK({autoplay:l?1:0,mute:u?1:0,controls:f?1:0,start:(0,i4.parseStartTime)(i),end:(0,i4.parseEndTime)(i),origin:window.location.origin,playsinline:c?1:0},s.parsePlaylist(i)),g),events:{onReady:function(){d&&s.player.setLoop(!0),s.props.onReady()},onPlaybackRateChange:function(_){return s.props.onPlaybackRateChange(_.data)},onStateChange:s.onStateChange,onError:function(_){return m(_.data)}},host:X1t.test(i)?q1t:void 0},b)))},m),b.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer\u2019s callback props instead, eg onReady, onPlay, onPause")}},{key:"play",value:function(){this.callPlayer("playVideo")}},{key:"pause",value:function(){this.callPlayer("pauseVideo")}},{key:"stop",value:function(){!document.body.contains(this.callPlayer("getIframe"))||this.callPlayer("stopVideo")}},{key:"seekTo",value:function(i){this.callPlayer("seekTo",i),this.props.playing||this.pause()}},{key:"setVolume",value:function(i){this.callPlayer("setVolume",i*100)}},{key:"setPlaybackRate",value:function(i){this.callPlayer("setPlaybackRate",i)}},{key:"setLoop",value:function(i){this.callPlayer("setLoop",i)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentTime")}},{key:"getSecondsLoaded",value:function(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}},{key:"render",value:function(){var i=this.props.display,o={width:"100%",height:"100%",display:i};return CK.default.createElement("div",{style:o},CK.default.createElement("div",{ref:this.ref}))}}]),n}(CK.Component);sB.default=MK;J0(MK,"displayName","YouTube");J0(MK,"canPlay",h4e.canPlay.youtube)});var P4e=ne(uB=>{"use strict";function V7(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?V7=function(n){return typeof n}:V7=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},V7(e)}Object.defineProperty(uB,"__esModule",{value:!0});uB.default=void 0;var v4e=K1t(Pe()),y4e=$a(),$1t=Ku();function w4e(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return w4e=function(){return e},e}function K1t(e){if(e&&e.__esModule)return e;if(e===null||V7(e)!=="object"&&typeof e!="function")return{default:e};var t=w4e();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function x4e(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 _4e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?x4e(Object(n),!0).forEach(function(r){Xp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x4e(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Y1t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b4e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Z1t(e,t,n){return t&&b4e(e.prototype,t),n&&b4e(e,n),e}function U1t(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&BK(e,t)}function BK(e,t){return BK=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},BK(e,t)}function Q1t(e){var t=tgt();return function(){var r=aB(e),i;if(t){var o=aB(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return egt(this,i)}}function egt(e,t){return t&&(V7(t)==="object"||typeof t=="function")?t:wg(e)}function wg(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tgt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function aB(e){return aB=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},aB(e)}function Xp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ngt="https://w.soundcloud.com/player/api.js",rgt="SC",lB=function(e){U1t(n,e);var t=Q1t(n);function n(){var r;Y1t(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),Xp(wg(r),"callPlayer",y4e.callPlayer),Xp(wg(r),"duration",null),Xp(wg(r),"currentTime",null),Xp(wg(r),"fractionLoaded",null),Xp(wg(r),"mute",function(){r.setVolume(0)}),Xp(wg(r),"unmute",function(){r.props.volume!==null&&r.setVolume(r.props.volume)}),Xp(wg(r),"ref",function(a){r.iframe=a}),r}return Z1t(n,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(i,o){var s=this;(0,y4e.getSDK)(ngt,rgt).then(function(a){if(!!s.iframe){var l=a.Widget.Events,u=l.PLAY,c=l.PLAY_PROGRESS,f=l.PAUSE,d=l.FINISH,h=l.ERROR;o||(s.player=a.Widget(s.iframe),s.player.bind(u,s.props.onPlay),s.player.bind(f,function(){var m=s.duration-s.currentTime;m<.05||s.props.onPause()}),s.player.bind(c,function(m){s.currentTime=m.currentPosition/1e3,s.fractionLoaded=m.loadedProgress}),s.player.bind(d,function(){return s.props.onEnded()}),s.player.bind(h,function(m){return s.props.onError(m)})),s.player.load(i,_4e(_4e({},s.props.config.options),{},{callback:function(){s.player.getDuration(function(g){s.duration=g/1e3,s.props.onReady()})}}))}})}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(i){this.callPlayer("seekTo",i*1e3)}},{key:"setVolume",value:function(i){this.callPlayer("setVolume",i*100)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.fractionLoaded*this.duration}},{key:"render",value:function(){var i=this.props.display,o={width:"100%",height:"100%",display:i};return v4e.default.createElement("iframe",{ref:this.ref,src:"https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),style:o,frameBorder:0,allow:"autoplay"})}}]),n}(v4e.Component);uB.default=lB;Xp(lB,"displayName","SoundCloud");Xp(lB,"canPlay",$1t.canPlay.soundcloud);Xp(lB,"loopOnEnded",!0)});var E4e=ne(pB=>{"use strict";function J7(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?J7=function(n){return typeof n}:J7=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},J7(e)}Object.defineProperty(pB,"__esModule",{value:!0});pB.default=void 0;var k4e=ogt(Pe()),A4e=$a(),igt=Ku();function O4e(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return O4e=function(){return e},e}function ogt(e){if(e&&e.__esModule)return e;if(e===null||J7(e)!=="object"&&typeof e!="function")return{default:e};var t=O4e();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function C4e(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 sgt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?C4e(Object(n),!0).forEach(function(r){qp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C4e(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function agt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S4e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function lgt(e,t,n){return t&&S4e(e.prototype,t),n&&S4e(e,n),e}function ugt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&NK(e,t)}function NK(e,t){return NK=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},NK(e,t)}function cgt(e){var t=pgt();return function(){var r=cB(e),i;if(t){var o=cB(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return dgt(this,i)}}function dgt(e,t){return t&&(J7(t)==="object"||typeof t=="function")?t:Pg(e)}function Pg(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pgt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function cB(e){return cB=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},cB(e)}function qp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fgt="https://player.vimeo.com/api/player.js",hgt="Vimeo",dB=function(e){ugt(n,e);var t=cgt(n);function n(){var r;agt(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),qp(Pg(r),"callPlayer",A4e.callPlayer),qp(Pg(r),"duration",null),qp(Pg(r),"currentTime",null),qp(Pg(r),"secondsLoaded",null),qp(Pg(r),"mute",function(){r.setMuted(!0)}),qp(Pg(r),"unmute",function(){r.setMuted(!1)}),qp(Pg(r),"ref",function(a){r.container=a}),r}return lgt(n,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(i){var o=this;this.duration=null,(0,A4e.getSDK)(fgt,hgt).then(function(s){if(!!o.container){var a=o.props.config,l=a.playerOptions,u=a.title;o.player=new s.Player(o.container,sgt({url:i,autoplay:o.props.playing,muted:o.props.muted,loop:o.props.loop,playsinline:o.props.playsinline,controls:o.props.controls},l)),o.player.ready().then(function(){var c=o.container.querySelector("iframe");c.style.width="100%",c.style.height="100%",u&&(c.title=u)}).catch(o.props.onError),o.player.on("loaded",function(){o.props.onReady(),o.refreshDuration()}),o.player.on("play",function(){o.props.onPlay(),o.refreshDuration()}),o.player.on("pause",o.props.onPause),o.player.on("seeked",function(c){return o.props.onSeek(c.seconds)}),o.player.on("ended",o.props.onEnded),o.player.on("error",o.props.onError),o.player.on("timeupdate",function(c){var f=c.seconds;o.currentTime=f}),o.player.on("progress",function(c){var f=c.seconds;o.secondsLoaded=f}),o.player.on("bufferstart",o.props.onBuffer),o.player.on("bufferend",o.props.onBufferEnd),o.player.on("playbackratechange",function(c){return o.props.onPlaybackRateChange(c.playbackRate)})}},this.props.onError)}},{key:"refreshDuration",value:function(){var i=this;this.player.getDuration().then(function(o){i.duration=o})}},{key:"play",value:function(){var i=this.callPlayer("play");i&&i.catch(this.props.onError)}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){this.callPlayer("unload")}},{key:"seekTo",value:function(i){this.callPlayer("setCurrentTime",i)}},{key:"setVolume",value:function(i){this.callPlayer("setVolume",i)}},{key:"setMuted",value:function(i){this.callPlayer("setMuted",i)}},{key:"setLoop",value:function(i){this.callPlayer("setLoop",i)}},{key:"setPlaybackRate",value:function(i){this.callPlayer("setPlaybackRate",i)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){var i=this.props.display,o={width:"100%",height:"100%",overflow:"hidden",display:i};return k4e.default.createElement("div",{key:this.props.url,ref:this.ref,style:o})}}]),n}(k4e.Component);pB.default=dB;qp(dB,"displayName","Vimeo");qp(dB,"canPlay",igt.canPlay.vimeo);qp(dB,"forceLoad",!0)});var z4e=ne(gB=>{"use strict";function H7(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?H7=function(n){return typeof n}:H7=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},H7(e)}Object.defineProperty(gB,"__esModule",{value:!0});gB.default=void 0;var M4e=ggt(Pe()),fB=$a(),mgt=Ku();function I4e(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return I4e=function(){return e},e}function ggt(e){if(e&&e.__esModule)return e;if(e===null||H7(e)!=="object"&&typeof e!="function")return{default:e};var t=I4e();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function GK(){return GK=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GK.apply(this,arguments)}function vgt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B4e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ygt(e,t,n){return t&&B4e(e.prototype,t),n&&B4e(e,n),e}function xgt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&FK(e,t)}function FK(e,t){return FK=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},FK(e,t)}function _gt(e){var t=wgt();return function(){var r=hB(e),i;if(t){var o=hB(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return bgt(this,i)}}function bgt(e,t){return t&&(H7(t)==="object"||typeof t=="function")?t:j7(e)}function j7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wgt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function hB(e){return hB=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},hB(e)}function ry(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N4e="https://connect.facebook.net/en_US/sdk.js",G4e="FB",F4e="fbAsyncInit",Pgt="facebook-player-",mB=function(e){xgt(n,e);var t=_gt(n);function n(){var r;vgt(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),ry(j7(r),"callPlayer",fB.callPlayer),ry(j7(r),"playerID",r.props.config.playerId||"".concat(Pgt).concat((0,fB.randomString)())),ry(j7(r),"mute",function(){r.callPlayer("mute")}),ry(j7(r),"unmute",function(){r.callPlayer("unmute")}),r}return ygt(n,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(i,o){var s=this;if(o){(0,fB.getSDK)(N4e,G4e,F4e).then(function(a){return a.XFBML.parse()});return}(0,fB.getSDK)(N4e,G4e,F4e).then(function(a){a.init({appId:s.props.config.appId,xfbml:!0,version:s.props.config.version}),a.Event.subscribe("xfbml.render",function(l){s.props.onLoaded()}),a.Event.subscribe("xfbml.ready",function(l){l.type==="video"&&l.id===s.playerID&&(s.player=l.instance,s.player.subscribe("startedPlaying",s.props.onPlay),s.player.subscribe("paused",s.props.onPause),s.player.subscribe("finishedPlaying",s.props.onEnded),s.player.subscribe("startedBuffering",s.props.onBuffer),s.player.subscribe("finishedBuffering",s.props.onBufferEnd),s.player.subscribe("error",s.props.onError),s.props.muted?s.callPlayer("mute"):s.callPlayer("unmute"),s.props.onReady(),document.getElementById(s.playerID).querySelector("iframe").style.visibility="visible")})})}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(i){this.callPlayer("seek",i)}},{key:"setVolume",value:function(i){this.callPlayer("setVolume",i)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentPosition")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var i=this.props.config.attributes,o={width:"100%",height:"100%"};return M4e.default.createElement("div",GK({style:o,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"},i))}}]),n}(M4e.Component);gB.default=mB;ry(mB,"displayName","Facebook");ry(mB,"canPlay",mgt.canPlay.facebook);ry(mB,"loopOnEnded",!0)});var J4e=ne(yB=>{"use strict";function W7(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?W7=function(n){return typeof n}:W7=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},W7(e)}Object.defineProperty(yB,"__esModule",{value:!0});yB.default=void 0;var T4e=kgt(Pe()),D4e=$a(),L4e=Ku();function V4e(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return V4e=function(){return e},e}function kgt(e){if(e&&e.__esModule)return e;if(e===null||W7(e)!=="object"&&typeof e!="function")return{default:e};var t=V4e();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function Agt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R4e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Cgt(e,t,n){return t&&R4e(e.prototype,t),n&&R4e(e,n),e}function Sgt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&IK(e,t)}function IK(e,t){return IK=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},IK(e,t)}function Ogt(e){var t=Mgt();return function(){var r=vB(e),i;if(t){var o=vB(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Egt(this,i)}}function Egt(e,t){return t&&(W7(t)==="object"||typeof t=="function")?t:kg(e)}function kg(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mgt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function vB(e){return vB=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},vB(e)}function j0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bgt="https://cdn.embed.ly/player-0.1.0.min.js",Ngt="playerjs",zK=function(e){Sgt(n,e);var t=Ogt(n);function n(){var r;Agt(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),j0(kg(r),"callPlayer",D4e.callPlayer),j0(kg(r),"duration",null),j0(kg(r),"currentTime",null),j0(kg(r),"secondsLoaded",null),j0(kg(r),"mute",function(){r.callPlayer("mute")}),j0(kg(r),"unmute",function(){r.callPlayer("unmute")}),j0(kg(r),"ref",function(a){r.iframe=a}),r}return Cgt(n,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(i){var o=this;(0,D4e.getSDK)(Bgt,Ngt).then(function(s){!o.iframe||(o.player=new s.Player(o.iframe),o.player.setLoop(o.props.loop),o.player.on("ready",o.props.onReady),o.player.on("play",o.props.onPlay),o.player.on("pause",o.props.onPause),o.player.on("seeked",o.props.onSeek),o.player.on("ended",o.props.onEnded),o.player.on("error",o.props.onError),o.player.on("timeupdate",function(a){var l=a.duration,u=a.seconds;o.duration=l,o.currentTime=u}),o.player.on("buffered",function(a){var l=a.percent;o.duration&&(o.secondsLoaded=o.duration*l)}),o.props.muted&&o.player.mute())},this.props.onError)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(i){this.callPlayer("setCurrentTime",i)}},{key:"setVolume",value:function(i){this.callPlayer("setVolume",i*100)}},{key:"setLoop",value:function(i){this.callPlayer("setLoop",i)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){var i=this.props.url.match(L4e.MATCH_URL_STREAMABLE)[1],o={width:"100%",height:"100%"};return T4e.default.createElement("iframe",{ref:this.ref,src:"https://streamable.com/o/".concat(i),frameBorder:"0",scrolling:"no",style:o,allow:"encrypted-media; autoplay; fullscreen;"})}}]),n}(T4e.Component);yB.default=zK;j0(zK,"displayName","Streamable");j0(zK,"canPlay",L4e.canPlay.streamable)});var $4e=ne(bB=>{"use strict";function X7(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?X7=function(n){return typeof n}:X7=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},X7(e)}Object.defineProperty(bB,"__esModule",{value:!0});bB.default=void 0;var j4e=Ggt(Pe()),TK=$a(),X4e=Ku();function q4e(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return q4e=function(){return e},e}function Ggt(e){if(e&&e.__esModule)return e;if(e===null||X7(e)!=="object"&&typeof e!="function")return{default:e};var t=q4e();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function H4e(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 Fgt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H4e(Object(n),!0).forEach(function(r){Fc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H4e(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Igt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W4e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zgt(e,t,n){return t&&W4e(e.prototype,t),n&&W4e(e,n),e}function Tgt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&DK(e,t)}function DK(e,t){return DK=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},DK(e,t)}function Dgt(e){var t=Lgt();return function(){var r=xB(e),i;if(t){var o=xB(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Rgt(this,i)}}function Rgt(e,t){return t&&(X7(t)==="object"||typeof t=="function")?t:oh(e)}function oh(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lgt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function xB(e){return xB=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},xB(e)}function Fc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vgt="https://fast.wistia.com/assets/external/E-v1.js",Jgt="Wistia",jgt="wistia-player-",_B=function(e){Tgt(n,e);var t=Dgt(n);function n(){var r;Igt(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),Fc(oh(r),"callPlayer",TK.callPlayer),Fc(oh(r),"playerID",r.props.config.playerId||"".concat(jgt).concat((0,TK.randomString)())),Fc(oh(r),"onPlay",function(){var a;return(a=r.props).onPlay.apply(a,arguments)}),Fc(oh(r),"onPause",function(){var a;return(a=r.props).onPause.apply(a,arguments)}),Fc(oh(r),"onSeek",function(){var a;return(a=r.props).onSeek.apply(a,arguments)}),Fc(oh(r),"onEnded",function(){var a;return(a=r.props).onEnded.apply(a,arguments)}),Fc(oh(r),"onPlaybackRateChange",function(){var a;return(a=r.props).onPlaybackRateChange.apply(a,arguments)}),Fc(oh(r),"mute",function(){r.callPlayer("mute")}),Fc(oh(r),"unmute",function(){r.callPlayer("unmute")}),r}return zgt(n,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(i){var o=this,s=this.props,a=s.playing,l=s.muted,u=s.controls,c=s.onReady,f=s.config,d=s.onError;(0,TK.getSDK)(Vgt,Jgt).then(function(h){f.customControls&&f.customControls.forEach(function(m){return h.defineControl(m)}),window._wq=window._wq||[],window._wq.push({id:o.playerID,options:Fgt({autoPlay:a,silentAutoPlay:"allow",muted:l,controlsVisibleOnLoad:u,fullscreenButton:u,playbar:u,playbackRateControl:u,qualityControl:u,volumeControl:u,settingsControl:u,smallPlayButton:u},f.options),onReady:function(g){o.player=g,o.unbind(),o.player.bind("play",o.onPlay),o.player.bind("pause",o.onPause),o.player.bind("seek",o.onSeek),o.player.bind("end",o.onEnded),o.player.bind("playbackratechange",o.onPlaybackRateChange),c()}})},d)}},{key:"unbind",value:function(){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)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){this.unbind(),this.callPlayer("remove")}},{key:"seekTo",value:function(i){this.callPlayer("time",i)}},{key:"setVolume",value:function(i){this.callPlayer("volume",i)}},{key:"setPlaybackRate",value:function(i){this.callPlayer("playbackRate",i)}},{key:"getDuration",value:function(){return this.callPlayer("duration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("time")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var i=this.props.url,o=i&&i.match(X4e.MATCH_URL_WISTIA)[1],s="wistia_embed wistia_async_".concat(o),a={width:"100%",height:"100%"};return j4e.default.createElement("div",{id:this.playerID,key:o,className:s,style:a})}}]),n}(j4e.Component);bB.default=_B;Fc(_B,"displayName","Wistia");Fc(_B,"canPlay",X4e.canPlay.wistia);Fc(_B,"loopOnEnded",!0)});var Q4e=ne(CB=>{"use strict";function $7(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$7=function(n){return typeof n}:$7=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},$7(e)}Object.defineProperty(CB,"__esModule",{value:!0});CB.default=void 0;var K4e=Hgt(Pe()),wB=$a(),PB=Ku();function U4e(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return U4e=function(){return e},e}function Hgt(e){if(e&&e.__esModule)return e;if(e===null||$7(e)!=="object"&&typeof e!="function")return{default:e};var t=U4e();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function Y4e(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 Wgt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Y4e(Object(n),!0).forEach(function(r){Ag(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y4e(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xgt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Z4e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qgt(e,t,n){return t&&Z4e(e.prototype,t),n&&Z4e(e,n),e}function $gt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&RK(e,t)}function RK(e,t){return RK=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},RK(e,t)}function Kgt(e){var t=Zgt();return function(){var r=kB(e),i;if(t){var o=kB(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ygt(this,i)}}function Ygt(e,t){return t&&($7(t)==="object"||typeof t=="function")?t:q7(e)}function q7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zgt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function kB(e){return kB=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},kB(e)}function Ag(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ugt="https://player.twitch.tv/js/embed/v1.js",Qgt="Twitch",evt="twitch-player-",AB=function(e){$gt(n,e);var t=Kgt(n);function n(){var r;Xgt(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),Ag(q7(r),"callPlayer",wB.callPlayer),Ag(q7(r),"playerID",r.props.config.playerId||"".concat(evt).concat((0,wB.randomString)())),Ag(q7(r),"mute",function(){r.callPlayer("setMuted",!0)}),Ag(q7(r),"unmute",function(){r.callPlayer("setMuted",!1)}),r}return qgt(n,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(i,o){var s=this,a=this.props,l=a.playsinline,u=a.onError,c=a.config,f=a.controls,d=PB.MATCH_URL_TWITCH_CHANNEL.test(i),h=d?i.match(PB.MATCH_URL_TWITCH_CHANNEL)[1]:i.match(PB.MATCH_URL_TWITCH_VIDEO)[1];if(o){d?this.player.setChannel(h):this.player.setVideo("v"+h);return}(0,wB.getSDK)(Ugt,Qgt).then(function(m){s.player=new m.Player(s.playerID,Wgt({video:d?"":h,channel:d?h:"",height:"100%",width:"100%",playsinline:l,autoplay:s.props.playing,muted:s.props.muted,controls:d?!0:f,time:(0,wB.parseStartTime)(i)},c.options));var g=m.Player,b=g.READY,v=g.PLAYING,x=g.PAUSE,y=g.ENDED,_=g.ONLINE,w=g.OFFLINE,k=g.SEEK;s.player.addEventListener(b,s.props.onReady),s.player.addEventListener(v,s.props.onPlay),s.player.addEventListener(x,s.props.onPause),s.player.addEventListener(y,s.props.onEnded),s.player.addEventListener(k,s.props.onSeek),s.player.addEventListener(_,s.props.onLoaded),s.player.addEventListener(w,s.props.onLoaded)},u)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){this.callPlayer("pause")}},{key:"seekTo",value:function(i){this.callPlayer("seek",i)}},{key:"setVolume",value:function(i){this.callPlayer("setVolume",i)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentTime")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var i={width:"100%",height:"100%"};return K4e.default.createElement("div",{style:i,id:this.playerID})}}]),n}(K4e.Component);CB.default=AB;Ag(AB,"displayName","Twitch");Ag(AB,"canPlay",PB.canPlay.twitch);Ag(AB,"loopOnEnded",!0)});var o5e=ne(MB=>{"use strict";function K7(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?K7=function(n){return typeof n}:K7=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},K7(e)}Object.defineProperty(MB,"__esModule",{value:!0});MB.default=void 0;var LK=tvt(Pe()),SB=$a(),r5e=Ku();function i5e(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return i5e=function(){return e},e}function tvt(e){if(e&&e.__esModule)return e;if(e===null||K7(e)!=="object"&&typeof e!="function")return{default:e};var t=i5e();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function e5e(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 nvt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?e5e(Object(n),!0).forEach(function(r){H0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e5e(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rvt(e,t){return avt(e)||svt(e,t)||ovt(e,t)||ivt()}function ivt(){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 ovt(e,t){if(!!e){if(typeof e=="string")return t5e(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 t5e(e,t)}}function t5e(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function svt(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,o=void 0;try{for(var s=e[Symbol.iterator](),a;!(r=(a=s.next()).done)&&(n.push(a.value),!(t&&n.length===t));r=!0);}catch(l){i=!0,o=l}finally{try{!r&&s.return!=null&&s.return()}finally{if(i)throw o}}return n}}function avt(e){if(Array.isArray(e))return e}function lvt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n5e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function uvt(e,t,n){return t&&n5e(e.prototype,t),n&&n5e(e,n),e}function cvt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&VK(e,t)}function VK(e,t){return VK=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},VK(e,t)}function dvt(e){var t=fvt();return function(){var r=OB(e),i;if(t){var o=OB(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return pvt(this,i)}}function pvt(e,t){return t&&(K7(t)==="object"||typeof t=="function")?t:o4(e)}function o4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fvt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function OB(e){return OB=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},OB(e)}function H0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hvt="https://api.dmcdn.net/all.js",mvt="DM",gvt="dmAsyncInit",EB=function(e){cvt(n,e);var t=dvt(n);function n(){var r;lvt(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),H0(o4(r),"callPlayer",SB.callPlayer),H0(o4(r),"onDurationChange",function(){var a=r.getDuration();r.props.onDuration(a)}),H0(o4(r),"mute",function(){r.callPlayer("setMuted",!0)}),H0(o4(r),"unmute",function(){r.callPlayer("setMuted",!1)}),H0(o4(r),"ref",function(a){r.container=a}),r}return uvt(n,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(i){var o=this,s=this.props,a=s.controls,l=s.config,u=s.onError,c=s.playing,f=i.match(r5e.MATCH_URL_DAILYMOTION),d=rvt(f,2),h=d[1];if(this.player){this.player.load(h,{start:(0,SB.parseStartTime)(i),autoplay:c});return}(0,SB.getSDK)(hvt,mvt,gvt,function(m){return m.player}).then(function(m){if(!!o.container){var g=m.player;o.player=new g(o.container,{width:"100%",height:"100%",video:h,params:nvt({controls:a,autoplay:o.props.playing,mute:o.props.muted,start:(0,SB.parseStartTime)(i),origin:window.location.origin},l.params),events:{apiready:o.props.onReady,seeked:function(){return o.props.onSeek(o.player.currentTime)},video_end:o.props.onEnded,durationchange:o.onDurationChange,pause:o.props.onPause,playing:o.props.onPlay,waiting:o.props.onBuffer,error:function(v){return u(v)}}})}},u)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(i){this.callPlayer("seek",i)}},{key:"setVolume",value:function(i){this.callPlayer("setVolume",i)}},{key:"getDuration",value:function(){return this.player.duration||null}},{key:"getCurrentTime",value:function(){return this.player.currentTime}},{key:"getSecondsLoaded",value:function(){return this.player.bufferedTime}},{key:"render",value:function(){var i=this.props.display,o={width:"100%",height:"100%",display:i};return LK.default.createElement("div",{style:o},LK.default.createElement("div",{ref:this.ref}))}}]),n}(LK.Component);MB.default=EB;H0(EB,"displayName","DailyMotion");H0(EB,"canPlay",r5e.canPlay.dailymotion);H0(EB,"loopOnEnded",!0)});var p5e=ne(GB=>{"use strict";function Y7(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Y7=function(n){return typeof n}:Y7=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Y7(e)}Object.defineProperty(GB,"__esModule",{value:!0});GB.default=void 0;var s5e=vvt(Pe()),JK=$a(),c5e=Ku();function d5e(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return d5e=function(){return e},e}function vvt(e){if(e&&e.__esModule)return e;if(e===null||Y7(e)!=="object"&&typeof e!="function")return{default:e};var t=d5e();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function a5e(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 l5e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?a5e(Object(n),!0).forEach(function(r){$p(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a5e(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yvt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u5e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xvt(e,t,n){return t&&u5e(e.prototype,t),n&&u5e(e,n),e}function _vt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jK(e,t)}function jK(e,t){return jK=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},jK(e,t)}function bvt(e){var t=Pvt();return function(){var r=BB(e),i;if(t){var o=BB(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return wvt(this,i)}}function wvt(e,t){return t&&(Y7(t)==="object"||typeof t=="function")?t:Cg(e)}function Cg(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pvt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function BB(e){return BB=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},BB(e)}function $p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kvt="https://widget.mixcloud.com/media/js/widgetApi.js",Avt="Mixcloud",NB=function(e){_vt(n,e);var t=bvt(n);function n(){var r;yvt(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),$p(Cg(r),"callPlayer",JK.callPlayer),$p(Cg(r),"duration",null),$p(Cg(r),"currentTime",null),$p(Cg(r),"secondsLoaded",null),$p(Cg(r),"mute",function(){}),$p(Cg(r),"unmute",function(){}),$p(Cg(r),"ref",function(a){r.iframe=a}),r}return xvt(n,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(i){var o=this;(0,JK.getSDK)(kvt,Avt).then(function(s){o.player=s.PlayerWidget(o.iframe),o.player.ready.then(function(){o.player.events.play.on(o.props.onPlay),o.player.events.pause.on(o.props.onPause),o.player.events.ended.on(o.props.onEnded),o.player.events.error.on(o.props.error),o.player.events.progress.on(function(a,l){o.currentTime=a,o.duration=l}),o.props.onReady()})},this.props.onError)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(i){this.callPlayer("seek",i)}},{key:"setVolume",value:function(i){}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var i=this.props,o=i.url,s=i.config,a=o.match(c5e.MATCH_URL_MIXCLOUD)[1],l={width:"100%",height:"100%"},u=(0,JK.queryString)(l5e(l5e({},s.options),{},{feed:"/".concat(a,"/")}));return s5e.default.createElement("iframe",{key:a,ref:this.ref,style:l,src:"https://www.mixcloud.com/widget/iframe/?".concat(u),frameBorder:"0",allow:"autoplay"})}}]),n}(s5e.Component);GB.default=NB;$p(NB,"displayName","Mixcloud");$p(NB,"canPlay",c5e.canPlay.mixcloud);$p(NB,"loopOnEnded",!0)});var y5e=ne(IB=>{"use strict";function U7(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?U7=function(n){return typeof n}:U7=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},U7(e)}Object.defineProperty(IB,"__esModule",{value:!0});IB.default=void 0;var HK=Cvt(Pe()),f5e=$a(),g5e=Ku();function v5e(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return v5e=function(){return e},e}function Cvt(e){if(e&&e.__esModule)return e;if(e===null||U7(e)!=="object"&&typeof e!="function")return{default:e};var t=v5e();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function h5e(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 Svt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h5e(Object(n),!0).forEach(function(r){iy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h5e(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ovt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m5e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Evt(e,t,n){return t&&m5e(e.prototype,t),n&&m5e(e,n),e}function Mvt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&WK(e,t)}function WK(e,t){return WK=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},WK(e,t)}function Bvt(e){var t=Gvt();return function(){var r=FB(e),i;if(t){var o=FB(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Nvt(this,i)}}function Nvt(e,t){return t&&(U7(t)==="object"||typeof t=="function")?t:Z7(e)}function Z7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gvt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function FB(e){return FB=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},FB(e)}function iy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fvt="https://play.vidyard.com/embed/v4.js",Ivt="VidyardV4",zvt="onVidyardAPI",XK=function(e){Mvt(n,e);var t=Bvt(n);function n(){var r;Ovt(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),iy(Z7(r),"callPlayer",f5e.callPlayer),iy(Z7(r),"mute",function(){r.setVolume(0)}),iy(Z7(r),"unmute",function(){r.props.volume!==null&&r.setVolume(r.props.volume)}),iy(Z7(r),"ref",function(a){r.container=a}),r}return Evt(n,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(i){var o=this,s=this.props,a=s.playing,l=s.config,u=s.onError,c=s.onDuration,f=i&&i.match(g5e.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,f5e.getSDK)(Fvt,Ivt,zvt).then(function(d){!o.container||(d.api.addReadyListener(function(h,m){o.player||(o.player=m,o.player.on("ready",o.props.onReady),o.player.on("play",o.props.onPlay),o.player.on("pause",o.props.onPause),o.player.on("seek",o.props.onSeek),o.player.on("playerComplete",o.props.onEnded))},f),d.api.renderPlayer(Svt({uuid:f,container:o.container,autoplay:a?1:0},l.options)),d.api.getPlayerMetadata(f).then(function(h){o.duration=h.length_in_seconds,c(h.length_in_seconds)}))},u)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){window.VidyardV4.api.destroyPlayer(this.player)}},{key:"seekTo",value:function(i){this.callPlayer("seek",i)}},{key:"setVolume",value:function(i){this.callPlayer("setVolume",i)}},{key:"setPlaybackRate",value:function(i){this.callPlayer("setPlaybackSpeed",i)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.callPlayer("currentTime")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var i=this.props.display,o={width:"100%",height:"100%",display:i};return HK.default.createElement("div",{style:o},HK.default.createElement("div",{ref:this.ref}))}}]),n}(HK.Component);IB.default=XK;iy(XK,"displayName","Vidyard");iy(XK,"canPlay",g5e.canPlay.vidyard)});var P5e=ne(TB=>{"use strict";function Q7(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Q7=function(n){return typeof n}:Q7=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Q7(e)}Object.defineProperty(TB,"__esModule",{value:!0});TB.default=void 0;var x5e=Dvt(Pe()),_5e=$a(),Tvt=Ku();function w5e(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return w5e=function(){return e},e}function Dvt(e){if(e&&e.__esModule)return e;if(e===null||Q7(e)!=="object"&&typeof e!="function")return{default:e};var t=w5e();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function Rvt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b5e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Lvt(e,t,n){return t&&b5e(e.prototype,t),n&&b5e(e,n),e}function Vvt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&qK(e,t)}function qK(e,t){return qK=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},qK(e,t)}function Jvt(e){var t=Hvt();return function(){var r=zB(e),i;if(t){var o=zB(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return jvt(this,i)}}function jvt(e,t){return t&&(Q7(t)==="object"||typeof t=="function")?t:Sg(e)}function Sg(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hvt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function zB(e){return zB=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},zB(e)}function W0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wvt="https://cdn.embed.ly/player-0.1.0.min.js",Xvt="playerjs",$K=function(e){Vvt(n,e);var t=Jvt(n);function n(){var r;Rvt(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),W0(Sg(r),"callPlayer",_5e.callPlayer),W0(Sg(r),"duration",null),W0(Sg(r),"currentTime",null),W0(Sg(r),"secondsLoaded",null),W0(Sg(r),"mute",function(){r.callPlayer("mute")}),W0(Sg(r),"unmute",function(){r.callPlayer("unmute")}),W0(Sg(r),"ref",function(a){r.iframe=a}),r}return Lvt(n,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(i){var o=this;(0,_5e.getSDK)(Wvt,Xvt).then(function(s){!o.iframe||(o.player=new s.Player(o.iframe),o.player.on("ready",function(){setTimeout(function(){o.player.isReady=!0,o.player.setLoop(o.props.loop),o.props.muted&&o.player.mute(),o.addListeners(o.player,o.props),o.props.onReady()},500)}))},this.props.onError)}},{key:"addListeners",value:function(i,o){var s=this;i.on("play",o.onPlay),i.on("pause",o.onPause),i.on("ended",o.onEnded),i.on("error",o.onError),i.on("timeupdate",function(a){var l=a.duration,u=a.seconds;s.duration=l,s.currentTime=u})}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(i){this.callPlayer("setCurrentTime",i)}},{key:"setVolume",value:function(i){this.callPlayer("setVolume",i)}},{key:"setLoop",value:function(i){this.callPlayer("setLoop",i)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){var i={width:"100%",height:"100%"};return x5e.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:i,allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}]),n}(x5e.Component);TB.default=$K;W0($K,"displayName","Kaltura");W0($K,"canPlay",Tvt.canPlay.kaltura)});var S5e=ne(RB=>{"use strict";function nP(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nP=function(n){return typeof n}:nP=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},nP(e)}Object.defineProperty(RB,"__esModule",{value:!0});RB.default=void 0;var eP=qvt(Pe()),X0=$a(),tP=Ku();function C5e(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return C5e=function(){return e},e}function qvt(e){if(e&&e.__esModule)return e;if(e===null||nP(e)!=="object"&&typeof e!="function")return{default:e};var t=C5e();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function rP(){return rP=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rP.apply(this,arguments)}function $vt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k5e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Kvt(e,t,n){return t&&k5e(e.prototype,t),n&&k5e(e,n),e}function Yvt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&YK(e,t)}function YK(e,t){return YK=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},YK(e,t)}function Zvt(e){var t=Qvt();return function(){var r=DB(e),i;if(t){var o=DB(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Uvt(this,i)}}function Uvt(e,t){return t&&(nP(t)==="object"||typeof t=="function")?t:_a(e)}function _a(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qvt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function DB(e){return DB=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},DB(e)}function ia(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ZK=typeof navigator<"u",e2t=ZK&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,A5e=ZK&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||e2t)&&!window.MSStream,t2t=ZK&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,n2t="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",r2t="Hls",i2t="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",o2t="dashjs",s2t="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",a2t="flvjs",l2t=/www\.dropbox\.com\/.+/,KK=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,u2t="https://videodelivery.net/{id}/manifest/video.m3u8",UK=function(e){Yvt(n,e);var t=Zvt(n);function n(){var r;$vt(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),ia(_a(r),"onReady",function(){var a;return(a=r.props).onReady.apply(a,arguments)}),ia(_a(r),"onPlay",function(){var a;return(a=r.props).onPlay.apply(a,arguments)}),ia(_a(r),"onBuffer",function(){var a;return(a=r.props).onBuffer.apply(a,arguments)}),ia(_a(r),"onBufferEnd",function(){var a;return(a=r.props).onBufferEnd.apply(a,arguments)}),ia(_a(r),"onPause",function(){var a;return(a=r.props).onPause.apply(a,arguments)}),ia(_a(r),"onEnded",function(){var a;return(a=r.props).onEnded.apply(a,arguments)}),ia(_a(r),"onError",function(){var a;return(a=r.props).onError.apply(a,arguments)}),ia(_a(r),"onPlayBackRateChange",function(a){return r.props.onPlaybackRateChange(a.target.playbackRate)}),ia(_a(r),"onEnablePIP",function(){var a;return(a=r.props).onEnablePIP.apply(a,arguments)}),ia(_a(r),"onDisablePIP",function(a){var l=r.props,u=l.onDisablePIP,c=l.playing;u(a),c&&r.play()}),ia(_a(r),"onPresentationModeChange",function(a){if(r.player&&(0,X0.supportsWebKitPresentationMode)(r.player)){var l=r.player.webkitPresentationMode;l==="picture-in-picture"?r.onEnablePIP(a):l==="inline"&&r.onDisablePIP(a)}}),ia(_a(r),"onSeek",function(a){r.props.onSeek(a.target.currentTime)}),ia(_a(r),"mute",function(){r.player.muted=!0}),ia(_a(r),"unmute",function(){r.player.muted=!1}),ia(_a(r),"renderSourceElement",function(a,l){return typeof a=="string"?eP.default.createElement("source",{key:l,src:a}):eP.default.createElement("source",rP({key:l},a))}),ia(_a(r),"renderTrack",function(a,l){return eP.default.createElement("track",rP({key:l},a))}),ia(_a(r),"ref",function(a){r.player&&(r.prevPlayer=r.player),r.player=a}),r}return Kvt(n,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player),this.player.src=this.getSource(this.props.url),A5e&&this.player.load()}},{key:"componentDidUpdate",value:function(i){this.shouldUseAudio(this.props)!==this.shouldUseAudio(i)&&(this.removeListeners(this.prevPlayer,i.url),this.addListeners(this.player)),this.props.url!==i.url&&!(0,X0.isMediaStream)(this.props.url)&&(this.player.srcObject=null)}},{key:"componentWillUnmount",value:function(){this.player.src="",this.removeListeners(this.player),this.hls&&this.hls.destroy()}},{key:"addListeners",value:function(i){var o=this.props,s=o.url,a=o.playsinline;i.addEventListener("play",this.onPlay),i.addEventListener("waiting",this.onBuffer),i.addEventListener("playing",this.onBufferEnd),i.addEventListener("pause",this.onPause),i.addEventListener("seeked",this.onSeek),i.addEventListener("ended",this.onEnded),i.addEventListener("error",this.onError),i.addEventListener("ratechange",this.onPlayBackRateChange),i.addEventListener("enterpictureinpicture",this.onEnablePIP),i.addEventListener("leavepictureinpicture",this.onDisablePIP),i.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(s)||i.addEventListener("canplay",this.onReady),a&&(i.setAttribute("playsinline",""),i.setAttribute("webkit-playsinline",""),i.setAttribute("x5-playsinline",""))}},{key:"removeListeners",value:function(i,o){i.removeEventListener("canplay",this.onReady),i.removeEventListener("play",this.onPlay),i.removeEventListener("waiting",this.onBuffer),i.removeEventListener("playing",this.onBufferEnd),i.removeEventListener("pause",this.onPause),i.removeEventListener("seeked",this.onSeek),i.removeEventListener("ended",this.onEnded),i.removeEventListener("error",this.onError),i.removeEventListener("ratechange",this.onPlayBackRateChange),i.removeEventListener("enterpictureinpicture",this.onEnablePIP),i.removeEventListener("leavepictureinpicture",this.onDisablePIP),i.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(o)||i.removeEventListener("canplay",this.onReady)}},{key:"shouldUseAudio",value:function(i){return i.config.forceVideo||i.config.attributes.poster?!1:tP.AUDIO_EXTENSIONS.test(i.url)||i.config.forceAudio}},{key:"shouldUseHLS",value:function(i){return this.props.config.forceHLS||t2t&&this.props.config.forceSafariHLS?!0:A5e?!1:tP.HLS_EXTENSIONS.test(i)||KK.test(i)}},{key:"shouldUseDASH",value:function(i){return tP.DASH_EXTENSIONS.test(i)||this.props.config.forceDASH}},{key:"shouldUseFLV",value:function(i){return tP.FLV_EXTENSIONS.test(i)||this.props.config.forceFLV}},{key:"load",value:function(i){var o=this,s=this.props.config,a=s.hlsVersion,l=s.hlsOptions,u=s.dashVersion,c=s.flvVersion;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(i)&&(0,X0.getSDK)(n2t.replace("VERSION",a),r2t).then(function(f){if(o.hls=new f(l),o.hls.on(f.Events.MANIFEST_PARSED,function(){o.props.onReady()}),o.hls.on(f.Events.ERROR,function(h,m){o.props.onError(h,m,o.hls,f)}),KK.test(i)){var d=i.match(KK)[1];o.hls.loadSource(u2t.replace("{id}",d))}else o.hls.loadSource(i);o.hls.attachMedia(o.player),o.props.onLoaded()}),this.shouldUseDASH(i)&&(0,X0.getSDK)(i2t.replace("VERSION",u),o2t).then(function(f){o.dash=f.MediaPlayer().create(),o.dash.initialize(o.player,i,o.props.playing),o.dash.on("error",o.props.onError),parseInt(u)<3?o.dash.getDebug().setLogToBrowserConsole(!1):o.dash.updateSettings({debug:{logLevel:f.Debug.LOG_LEVEL_NONE}}),o.props.onLoaded()}),this.shouldUseFLV(i)&&(0,X0.getSDK)(s2t.replace("VERSION",c),a2t).then(function(f){o.flv=f.createPlayer({type:"flv",url:i}),o.flv.attachMediaElement(o.player),o.flv.on(f.Events.ERROR,function(d,h){o.props.onError(d,h,o.flv,f)}),o.flv.load(),o.props.onLoaded()}),i instanceof Array)this.player.load();else if((0,X0.isMediaStream)(i))try{this.player.srcObject=i}catch{this.player.src=window.URL.createObjectURL(i)}}},{key:"play",value:function(){var i=this.player.play();i&&i.catch(this.props.onError)}},{key:"pause",value:function(){this.player.pause()}},{key:"stop",value:function(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}},{key:"seekTo",value:function(i){this.player.currentTime=i}},{key:"setVolume",value:function(i){this.player.volume=i}},{key:"enablePIP",value:function(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,X0.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}},{key:"disablePIP",value:function(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,X0.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}},{key:"setPlaybackRate",value:function(i){try{this.player.playbackRate=i}catch(o){this.props.onError(o)}}},{key:"getDuration",value:function(){if(!this.player)return null;var i=this.player,o=i.duration,s=i.seekable;return o===1/0&&s.length>0?s.end(s.length-1):o}},{key:"getCurrentTime",value:function(){return this.player?this.player.currentTime:null}},{key:"getSecondsLoaded",value:function(){if(!this.player)return null;var i=this.player.buffered;if(i.length===0)return 0;var o=i.end(i.length-1),s=this.getDuration();return o>s?s:o}},{key:"getSource",value:function(i){var o=this.shouldUseHLS(i),s=this.shouldUseDASH(i),a=this.shouldUseFLV(i);if(!(i instanceof Array||(0,X0.isMediaStream)(i)||o||s||a))return l2t.test(i)?i.replace("www.dropbox.com","dl.dropboxusercontent.com"):i}},{key:"render",value:function(){var i=this.props,o=i.url,s=i.playing,a=i.loop,l=i.controls,u=i.muted,c=i.config,f=i.width,d=i.height,h=this.shouldUseAudio(this.props),m=h?"audio":"video",g={width:f==="auto"?f:"100%",height:d==="auto"?d:"100%"};return eP.default.createElement(m,rP({ref:this.ref,src:this.getSource(o),style:g,preload:"auto",autoPlay:s||void 0,controls:l,muted:u,loop:a},c.attributes),o instanceof Array&&o.map(this.renderSourceElement),c.tracks.map(this.renderTrack))}}]),n}(eP.Component);RB.default=UK;ia(UK,"displayName","FilePlayer");ia(UK,"canPlay",tP.canPlay.file)});var E5e=ne(VB=>{"use strict";Object.defineProperty(VB,"__esModule",{value:!0});VB.default=void 0;var Bd=Pe(),c2t=$a(),Yu=Ku();function LB(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?LB=function(n){return typeof n}:LB=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},LB(e)}function O5e(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return O5e=function(){return e},e}function Nd(e){if(e&&e.__esModule)return e;if(e===null||LB(e)!=="object"&&typeof e!="function")return{default:e};var t=O5e();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}var d2t=[{key:"youtube",name:"YouTube",canPlay:Yu.canPlay.youtube,lazyPlayer:(0,Bd.lazy)(function(){return Promise.resolve().then(function(){return Nd(g4e())})})},{key:"soundcloud",name:"SoundCloud",canPlay:Yu.canPlay.soundcloud,lazyPlayer:(0,Bd.lazy)(function(){return Promise.resolve().then(function(){return Nd(P4e())})})},{key:"vimeo",name:"Vimeo",canPlay:Yu.canPlay.vimeo,lazyPlayer:(0,Bd.lazy)(function(){return Promise.resolve().then(function(){return Nd(E4e())})})},{key:"facebook",name:"Facebook",canPlay:Yu.canPlay.facebook,lazyPlayer:(0,Bd.lazy)(function(){return Promise.resolve().then(function(){return Nd(z4e())})})},{key:"streamable",name:"Streamable",canPlay:Yu.canPlay.streamable,lazyPlayer:(0,Bd.lazy)(function(){return Promise.resolve().then(function(){return Nd(J4e())})})},{key:"wistia",name:"Wistia",canPlay:Yu.canPlay.wistia,lazyPlayer:(0,Bd.lazy)(function(){return Promise.resolve().then(function(){return Nd($4e())})})},{key:"twitch",name:"Twitch",canPlay:Yu.canPlay.twitch,lazyPlayer:(0,Bd.lazy)(function(){return Promise.resolve().then(function(){return Nd(Q4e())})})},{key:"dailymotion",name:"DailyMotion",canPlay:Yu.canPlay.dailymotion,lazyPlayer:(0,Bd.lazy)(function(){return Promise.resolve().then(function(){return Nd(o5e())})})},{key:"mixcloud",name:"Mixcloud",canPlay:Yu.canPlay.mixcloud,lazyPlayer:(0,Bd.lazy)(function(){return Promise.resolve().then(function(){return Nd(p5e())})})},{key:"vidyard",name:"Vidyard",canPlay:Yu.canPlay.vidyard,lazyPlayer:(0,Bd.lazy)(function(){return Promise.resolve().then(function(){return Nd(y5e())})})},{key:"kaltura",name:"Kaltura",canPlay:Yu.canPlay.kaltura,lazyPlayer:(0,Bd.lazy)(function(){return Promise.resolve().then(function(){return Nd(P5e())})})},{key:"file",name:"FilePlayer",canPlay:Yu.canPlay.file,canEnablePIP:function(t){return Yu.canPlay.file(t)&&(document.pictureInPictureEnabled||(0,c2t.supportsWebKitPresentationMode)())&&!Yu.AUDIO_EXTENSIONS.test(t)},lazyPlayer:(0,Bd.lazy)(function(){return Promise.resolve().then(function(){return Nd(S5e())})})}];VB.default=d2t});var N5e=ne((Z8n,B5e)=>{"use strict";var M5e=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function p2t(e,t){return!!(e===t||M5e(e)&&M5e(t))}function f2t(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!p2t(e[n],t[n]))return!1;return!0}function h2t(e,t){t===void 0&&(t=f2t);var n,r=[],i,o=!1;function s(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return o&&n===this&&t(a,r)||(i=e.apply(this,a),o=!0,n=this,r=a),i}return s}B5e.exports=h2t});var QK=ne((U8n,G5e)=>{var m2t=typeof Element<"u",g2t=typeof Map=="function",v2t=typeof Set=="function",y2t=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function JB(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!JB(e[r],t[r]))return!1;return!0}var o;if(g2t&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!JB(r.value[1],t.get(r.value[0])))return!1;return!0}if(v2t&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(y2t&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(m2t&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!JB(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}G5e.exports=function(t,n){try{return JB(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}}});var tY=ne(a4=>{"use strict";Object.defineProperty(a4,"__esModule",{value:!0});a4.defaultProps=a4.propTypes=void 0;var q0=x2t(Jp());function x2t(e){return e&&e.__esModule?e:{default:e}}var uu=q0.default.string,Zu=q0.default.bool,s4=q0.default.number,eY=q0.default.array,iP=q0.default.oneOfType,Gd=q0.default.shape,cu=q0.default.object,ba=q0.default.func,F5e=q0.default.node,_2t={url:iP([uu,eY,cu]),playing:Zu,loop:Zu,controls:Zu,volume:s4,muted:Zu,playbackRate:s4,width:iP([uu,s4]),height:iP([uu,s4]),style:cu,progressInterval:s4,playsinline:Zu,pip:Zu,stopOnUnmount:Zu,light:iP([Zu,uu,cu]),playIcon:F5e,previewTabIndex:s4,fallback:F5e,oEmbedUrl:uu,wrapper:iP([uu,ba,Gd({render:ba.isRequired})]),config:Gd({soundcloud:Gd({options:cu}),youtube:Gd({playerVars:cu,embedOptions:cu,onUnstarted:ba}),facebook:Gd({appId:uu,version:uu,playerId:uu,attributes:cu}),dailymotion:Gd({params:cu}),vimeo:Gd({playerOptions:cu,title:uu}),file:Gd({attributes:cu,tracks:eY,forceVideo:Zu,forceAudio:Zu,forceHLS:Zu,forceSafariHLS:Zu,forceDASH:Zu,forceFLV:Zu,hlsOptions:cu,hlsVersion:uu,dashVersion:uu,flvVersion:uu}),wistia:Gd({options:cu,playerId:uu,customControls:eY}),mixcloud:Gd({options:cu}),twitch:Gd({options:cu,playerId:uu}),vidyard:Gd({options:cu})}),onReady:ba,onStart:ba,onPlay:ba,onPause:ba,onBuffer:ba,onBufferEnd:ba,onEnded:ba,onError:ba,onDuration:ba,onSeek:ba,onPlaybackRateChange:ba,onProgress:ba,onClickPreview:ba,onEnablePIP:ba,onDisablePIP:ba};a4.propTypes=_2t;var Ol=function(){},b2t={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:Ol},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"},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:Ol,onStart:Ol,onPlay:Ol,onPause:Ol,onBuffer:Ol,onBufferEnd:Ol,onEnded:Ol,onError:Ol,onDuration:Ol,onSeek:Ol,onPlaybackRateChange:Ol,onProgress:Ol,onClickPreview:Ol,onEnablePIP:Ol,onDisablePIP:Ol};a4.defaultProps=b2t});var R5e=ne(WB=>{"use strict";function oP(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?oP=function(n){return typeof n}:oP=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},oP(e)}Object.defineProperty(WB,"__esModule",{value:!0});WB.default=void 0;var I5e=A2t(Pe()),w2t=k2t(QK()),T5e=tY(),P2t=$a();function k2t(e){return e&&e.__esModule?e:{default:e}}function D5e(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return D5e=function(){return e},e}function A2t(e){if(e&&e.__esModule)return e;if(e===null||oP(e)!=="object"&&typeof e!="function")return{default:e};var t=D5e();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function nY(){return nY=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nY.apply(this,arguments)}function C2t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z5e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S2t(e,t,n){return t&&z5e(e.prototype,t),n&&z5e(e,n),e}function O2t(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rY(e,t)}function rY(e,t){return rY=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},rY(e,t)}function E2t(e){var t=B2t();return function(){var r=jB(e),i;if(t){var o=jB(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return M2t(this,i)}}function M2t(e,t){return t&&(oP(t)==="object"||typeof t=="function")?t:oa(e)}function oa(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B2t(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function jB(e){return jB=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},jB(e)}function Fs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N2t=5e3,HB=function(e){O2t(n,e);var t=E2t(n);function n(){var r;C2t(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),Fs(oa(r),"mounted",!1),Fs(oa(r),"isReady",!1),Fs(oa(r),"isPlaying",!1),Fs(oa(r),"isLoading",!0),Fs(oa(r),"loadOnReady",null),Fs(oa(r),"startOnPlay",!0),Fs(oa(r),"seekOnPlay",null),Fs(oa(r),"onDurationCalled",!1),Fs(oa(r),"handlePlayerMount",function(a){if(r.player){r.progress();return}r.player=a,r.player.load(r.props.url),r.progress()}),Fs(oa(r),"getInternalPlayer",function(a){return r.player?r.player[a]:null}),Fs(oa(r),"progress",function(){if(r.props.url&&r.player&&r.isReady){var a=r.getCurrentTime()||0,l=r.getSecondsLoaded(),u=r.getDuration();if(u){var c={playedSeconds:a,played:a/u};l!==null&&(c.loadedSeconds=l,c.loaded=l/u),(c.playedSeconds!==r.prevPlayed||c.loadedSeconds!==r.prevLoaded)&&r.props.onProgress(c),r.prevPlayed=c.playedSeconds,r.prevLoaded=c.loadedSeconds}}r.progressTimeout=setTimeout(r.progress,r.props.progressFrequency||r.props.progressInterval)}),Fs(oa(r),"handleReady",function(){if(!!r.mounted){r.isReady=!0,r.isLoading=!1;var a=r.props,l=a.onReady,u=a.playing,c=a.volume,f=a.muted;l(),!f&&c!==null&&r.player.setVolume(c),r.loadOnReady?(r.player.load(r.loadOnReady,!0),r.loadOnReady=null):u&&r.player.play(),r.handleDurationCheck()}}),Fs(oa(r),"handlePlay",function(){r.isPlaying=!0,r.isLoading=!1;var a=r.props,l=a.onStart,u=a.onPlay,c=a.playbackRate;r.startOnPlay&&(r.player.setPlaybackRate&&c!==1&&r.player.setPlaybackRate(c),l(),r.startOnPlay=!1),u(),r.seekOnPlay&&(r.seekTo(r.seekOnPlay),r.seekOnPlay=null),r.handleDurationCheck()}),Fs(oa(r),"handlePause",function(a){r.isPlaying=!1,r.isLoading||r.props.onPause(a)}),Fs(oa(r),"handleEnded",function(){var a=r.props,l=a.activePlayer,u=a.loop,c=a.onEnded;l.loopOnEnded&&u&&r.seekTo(0),u||(r.isPlaying=!1,c())}),Fs(oa(r),"handleError",function(){var a;r.isLoading=!1,(a=r.props).onError.apply(a,arguments)}),Fs(oa(r),"handleDurationCheck",function(){clearTimeout(r.durationCheckTimeout);var a=r.getDuration();a?r.onDurationCalled||(r.props.onDuration(a),r.onDurationCalled=!0):r.durationCheckTimeout=setTimeout(r.handleDurationCheck,100)}),Fs(oa(r),"handleLoaded",function(){r.isLoading=!1}),r}return S2t(n,[{key:"componentDidMount",value:function(){this.mounted=!0}},{key:"componentWillUnmount",value:function(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}},{key:"componentDidUpdate",value:function(i){var o=this;if(!!this.player){var s=this.props,a=s.url,l=s.playing,u=s.volume,c=s.muted,f=s.playbackRate,d=s.pip,h=s.loop,m=s.activePlayer,g=s.disableDeferredLoading;if(!(0,w2t.default)(i.url,a)){if(this.isLoading&&!m.forceLoad&&!g&&!(0,P2t.isMediaStream)(a)){console.warn("ReactPlayer: the attempt to load ".concat(a," is being deferred until the player has loaded")),this.loadOnReady=a;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(a,this.isReady)}!i.playing&&l&&!this.isPlaying&&this.player.play(),i.playing&&!l&&this.isPlaying&&this.player.pause(),!i.pip&&d&&this.player.enablePIP&&this.player.enablePIP(),i.pip&&!d&&this.player.disablePIP&&this.player.disablePIP(),i.volume!==u&&u!==null&&this.player.setVolume(u),i.muted!==c&&(c?this.player.mute():(this.player.unmute(),u!==null&&setTimeout(function(){return o.player.setVolume(u)}))),i.playbackRate!==f&&this.player.setPlaybackRate&&this.player.setPlaybackRate(f),i.loop!==h&&this.player.setLoop&&this.player.setLoop(h)}}},{key:"getDuration",value:function(){return this.isReady?this.player.getDuration():null}},{key:"getCurrentTime",value:function(){return this.isReady?this.player.getCurrentTime():null}},{key:"getSecondsLoaded",value:function(){return this.isReady?this.player.getSecondsLoaded():null}},{key:"seekTo",value:function(i,o){var s=this;if(!this.isReady){i!==0&&(this.seekOnPlay=i,setTimeout(function(){s.seekOnPlay=null},N2t));return}var a=o?o==="fraction":i>0&&i<1;if(a){var l=this.player.getDuration();if(!l){console.warn("ReactPlayer: could not seek using fraction \u2013\xA0duration not yet available");return}this.player.seekTo(l*i);return}this.player.seekTo(i)}},{key:"render",value:function(){var i=this.props.activePlayer;return i?I5e.default.createElement(i,nY({},this.props,{onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError})):null}}]),n}(I5e.Component);WB.default=HB;Fs(HB,"displayName","Player");Fs(HB,"propTypes",T5e.propTypes);Fs(HB,"defaultProps",T5e.defaultProps)});var H5e=ne(KB=>{"use strict";function sP(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?sP=function(n){return typeof n}:sP=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},sP(e)}Object.defineProperty(KB,"__esModule",{value:!0});KB.default=void 0;var l4=G2t(Pe());function j5e(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return j5e=function(){return e},e}function G2t(e){if(e&&e.__esModule)return e;if(e===null||sP(e)!=="object"&&typeof e!="function")return{default:e};var t=j5e();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function L5e(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 V5e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L5e(Object(n),!0).forEach(function(r){qB(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L5e(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function F2t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J5e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function I2t(e,t,n){return t&&J5e(e.prototype,t),n&&J5e(e,n),e}function z2t(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&sY(e,t)}function sY(e,t){return sY=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},sY(e,t)}function T2t(e){var t=R2t();return function(){var r=$B(e),i;if(t){var o=$B(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return D2t(this,i)}}function D2t(e,t){return t&&(sP(t)==="object"||typeof t=="function")?t:XB(e)}function XB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R2t(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function $B(e){return $B=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},$B(e)}function qB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var iY="64px",oY={},L2t=function(e){z2t(n,e);var t=T2t(n);function n(){var r;F2t(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),qB(XB(r),"mounted",!1),qB(XB(r),"state",{image:null}),qB(XB(r),"handleKeyPress",function(a){(a.key==="Enter"||a.key===" ")&&r.props.onClick()}),r}return I2t(n,[{key:"componentDidMount",value:function(){this.mounted=!0,this.fetchImage(this.props)}},{key:"componentDidUpdate",value:function(i){var o=this.props,s=o.url,a=o.light;(i.url!==s||i.light!==a)&&this.fetchImage(this.props)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"fetchImage",value:function(i){var o=this,s=i.url,a=i.light,l=i.oEmbedUrl;if(!l4.default.isValidElement(a)){if(typeof a=="string"){this.setState({image:a});return}if(oY[s]){this.setState({image:oY[s]});return}return this.setState({image:null}),window.fetch(l.replace("{url}",s)).then(function(u){return u.json()}).then(function(u){if(u.thumbnail_url&&o.mounted){var c=u.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");o.setState({image:c}),oY[s]=c}})}}},{key:"render",value:function(){var i=this.props,o=i.light,s=i.onClick,a=i.playIcon,l=i.previewTabIndex,u=this.state.image,c=l4.default.isValidElement(o),f={display:"flex",alignItems:"center",justifyContent:"center"},d={preview:V5e({width:"100%",height:"100%",backgroundImage:u&&!c?"url(".concat(u,")"):void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer"},f),shadow:V5e({background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:iY,width:iY,height:iY,position:c?"absolute":void 0},f),playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},h=l4.default.createElement("div",{style:d.shadow,className:"react-player__shadow"},l4.default.createElement("div",{style:d.playIcon,className:"react-player__play-icon"}));return l4.default.createElement("div",{style:d.preview,className:"react-player__preview",onClick:s,tabIndex:l,onKeyPress:this.handleKeyPress},c?o:null,a||h)}}]),n}(l4.Component);KB.default=L2t});var Z5e=ne(QB=>{"use strict";Object.defineProperty(QB,"__esModule",{value:!0});QB.createReactPlayer=void 0;var oy=Y5e(Pe()),V2t=UB(xK()),aY=UB(N5e()),W5e=UB(QK()),lP=tY(),J2t=$a(),j2t=UB(R5e());function UB(e){return e&&e.__esModule?e:{default:e}}function uP(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?uP=function(n){return typeof n}:uP=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},uP(e)}function X5e(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 q5e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?X5e(Object(n),!0).forEach(function(r){ws(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X5e(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YB(){return YB=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YB.apply(this,arguments)}function lY(e){return q2t(e)||X2t(e)||W2t(e)||H2t()}function H2t(){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 W2t(e,t){if(!!e){if(typeof e=="string")return uY(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uY(e,t)}}function X2t(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function q2t(e){if(Array.isArray(e))return uY(e)}function uY(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $2t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $5e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function K2t(e,t,n){return t&&$5e(e.prototype,t),n&&$5e(e,n),e}function Y2t(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&cY(e,t)}function cY(e,t){return cY=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},cY(e,t)}function Z2t(e){var t=Q2t();return function(){var r=ZB(e),i;if(t){var o=ZB(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return U2t(this,i)}}function U2t(e,t){return t&&(uP(t)==="object"||typeof t=="function")?t:El(e)}function El(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Q2t(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function ZB(e){return ZB=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ZB(e)}function ws(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K5e(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return K5e=function(){return e},e}function Y5e(e){if(e&&e.__esModule)return e;if(e===null||uP(e)!=="object"&&typeof e!="function")return{default:e};var t=K5e();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}var eyt=(0,oy.lazy)(function(){return Promise.resolve().then(function(){return Y5e(H5e())})}),tyt=typeof window<"u"&&window.document,nyt=typeof global<"u"&&global.window&&global.window.document,ryt=Object.keys(lP.propTypes),iyt=tyt||nyt?oy.Suspense:function(){return null},aP=[],oyt=function(t,n){var r,i;return i=r=function(o){Y2t(a,o);var s=Z2t(a);function a(){var l;$2t(this,a);for(var u=arguments.length,c=new Array(u),f=0;f<u;f++)c[f]=arguments[f];return l=s.call.apply(s,[this].concat(c)),ws(El(l),"state",{showPreview:!!l.props.light}),ws(El(l),"references",{wrapper:function(h){l.wrapper=h},player:function(h){l.player=h}}),ws(El(l),"handleClickPreview",function(d){l.setState({showPreview:!1}),l.props.onClickPreview(d)}),ws(El(l),"showPreview",function(){l.setState({showPreview:!0})}),ws(El(l),"getDuration",function(){return l.player?l.player.getDuration():null}),ws(El(l),"getCurrentTime",function(){return l.player?l.player.getCurrentTime():null}),ws(El(l),"getSecondsLoaded",function(){return l.player?l.player.getSecondsLoaded():null}),ws(El(l),"getInternalPlayer",function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"player";return l.player?l.player.getInternalPlayer(d):null}),ws(El(l),"seekTo",function(d,h){if(!l.player)return null;l.player.seekTo(d,h)}),ws(El(l),"handleReady",function(){l.props.onReady(El(l))}),ws(El(l),"getActivePlayer",(0,aY.default)(function(d){for(var h=0,m=[].concat(aP,lY(t));h<m.length;h++){var g=m[h];if(g.canPlay(d))return g}return n||null})),ws(El(l),"getConfig",(0,aY.default)(function(d,h){var m=l.props.config;return V2t.default.all([lP.defaultProps.config,lP.defaultProps.config[h]||{},m,m[h]||{}])})),ws(El(l),"getAttributes",(0,aY.default)(function(d){return(0,J2t.omit)(l.props,ryt)})),ws(El(l),"renderActivePlayer",function(d){if(!d)return null;var h=l.getActivePlayer(d);if(!h)return null;var m=l.getConfig(d,h.key);return oy.default.createElement(j2t.default,YB({},l.props,{key:h.key,ref:l.references.player,config:m,activePlayer:h.lazyPlayer||h,onReady:l.handleReady}))}),l}return K2t(a,[{key:"shouldComponentUpdate",value:function(u,c){return!(0,W5e.default)(this.props,u)||!(0,W5e.default)(this.state,c)}},{key:"componentDidUpdate",value:function(u){var c=this.props.light;!u.light&&c&&this.setState({showPreview:!0}),u.light&&!c&&this.setState({showPreview:!1})}},{key:"renderPreview",value:function(u){if(!u)return null;var c=this.props,f=c.light,d=c.playIcon,h=c.previewTabIndex,m=c.oEmbedUrl;return oy.default.createElement(eyt,{url:u,light:f,playIcon:d,previewTabIndex:h,oEmbedUrl:m,onClick:this.handleClickPreview})}},{key:"render",value:function(){var u=this.props,c=u.url,f=u.style,d=u.width,h=u.height,m=u.fallback,g=u.wrapper,b=this.state.showPreview,v=this.getAttributes(c),x=typeof g=="string"?this.references.wrapper:void 0;return oy.default.createElement(g,YB({ref:x,style:q5e(q5e({},f),{},{width:d,height:h})},v),oy.default.createElement(iyt,{fallback:m},b?this.renderPreview(c):this.renderActivePlayer(c)))}}]),a}(oy.Component),ws(r,"displayName","ReactPlayer"),ws(r,"propTypes",lP.propTypes),ws(r,"defaultProps",lP.defaultProps),ws(r,"addCustomPlayer",function(o){aP.push(o)}),ws(r,"removeCustomPlayers",function(){aP.length=0}),ws(r,"canPlay",function(o){for(var s=0,a=[].concat(aP,lY(t));s<a.length;s++){var l=a[s];if(l.canPlay(o))return!0}return!1}),ws(r,"canEnablePIP",function(o){for(var s=0,a=[].concat(aP,lY(t));s<a.length;s++){var l=a[s];if(l.canEnablePIP&&l.canEnablePIP(o))return!0}return!1}),i};QB.createReactPlayer=oyt});var $0=ne(eN=>{"use strict";Object.defineProperty(eN,"__esModule",{value:!0});eN.default=void 0;var dY=ayt(E5e()),syt=Z5e();function ayt(e){return e&&e.__esModule?e:{default:e}}var lyt=dY.default[dY.default.length-1],uyt=(0,syt.createReactPlayer)(dY.default,lyt);eN.default=uyt});var fY=ne(()=>{});var t_e=ne(()=>{});var n_e=ne(()=>{});var r_e=ne(()=>{});var i_e=ne(()=>{});var o_e=ne(()=>{});var s_e=ne((exports,module)=>{(function(t,n){typeof exports=="object"&&typeof module=="object"?module.exports=n():typeof define=="function"&&define.amd?define("pdfjs-dist/build/pdf",[],n):typeof exports=="object"?exports["pdfjs-dist/build/pdf"]=n():t["pdfjs-dist/build/pdf"]=t.pdfjsLib=n()})(globalThis,()=>(()=>{"use strict";var __webpack_modules__=[,(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VerbosityLevel=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.UNSUPPORTED_FEATURES=t.TextRenderingMode=t.RenderingIntentFlag=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.LINE_FACTOR=t.LINE_DESCENT_FACTOR=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FeatureTest=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.BASELINE_FACTOR=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMode=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationEditorType=t.AnnotationEditorPrefix=t.AnnotationEditorParamsType=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0,t.assert=T,t.bytesToString=oe,t.createPromiseCapability=be,t.createValidAbsoluteUrl=U,t.getModificationDate=fe,t.getVerbosityLevel=N,t.info=C,t.isArrayBuffer=Xe,t.isArrayEqual=mt,t.objectFromMap=Ce,t.objectSize=Ae,t.setVerbosityLevel=B,t.shadow=F,t.string32=ve,t.stringToBytes=de,t.stringToPDFString=je,t.stringToUTF8String=$e,t.unreachable=G,t.utf8StringToString=Le,t.warn=S;let n=[1,0,0,1,0,0];t.IDENTITY_MATRIX=n;let r=[.001,0,0,.001,0,0];t.FONT_IDENTITY_MATRIX=r;let i=1.35;t.LINE_FACTOR=i;let o=.35;t.LINE_DESCENT_FACTOR=o;let s=o/i;t.BASELINE_FACTOR=s;let a={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256};t.RenderingIntentFlag=a;let l={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};t.AnnotationMode=l;let u="pdfjs_internal_editor_";t.AnnotationEditorPrefix=u;let c={DISABLE:-1,NONE:0,FREETEXT:3,INK:15};t.AnnotationEditorType=c;let f={FREETEXT_SIZE:1,FREETEXT_COLOR:2,FREETEXT_OPACITY:3,INK_COLOR:11,INK_THICKNESS:12,INK_OPACITY:13};t.AnnotationEditorParamsType=f;let d={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};t.PermissionFlag=d;let h={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};t.TextRenderingMode=h;let m={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};t.ImageKind=m;let g={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};t.AnnotationType=g;let b={MARKED:"Marked",REVIEW:"Review"};t.AnnotationStateModelType=b;let v={MARKED:"Marked",UNMARKED:"Unmarked"};t.AnnotationMarkedState=v;let x={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};t.AnnotationReviewState=x;let y={GROUP:"Group",REPLY:"R"};t.AnnotationReplyType=y;let _={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};t.AnnotationFlag=_;let w={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};t.AnnotationFieldFlag=w;let k={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};t.AnnotationBorderStyleType=k;let O={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"};t.AnnotationActionEventType=O;let M={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"};t.DocumentActionEventType=M;let I={O:"PageOpen",C:"PageClose"};t.PageActionEventType=I;let W={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=W;let J={NONE:0,BINARY:1};t.CMapCompressionType=J;let H={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};t.OPS=H;let ee={forms:"forms",javaScript:"javaScript",signatures:"signatures",smask:"smask",shadingPattern:"shadingPattern",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontBuildPath:"errorFontBuildPath",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent",errorContentSubStream:"errorContentSubStream"};t.UNSUPPORTED_FEATURES=ee;let j={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};t.PasswordResponses=j;let V=W.WARNINGS;function B(ye){Number.isInteger(ye)&&(V=ye)}function N(){return V}function C(ye){V>=W.INFOS&&console.log(`Info: ${ye}`)}function S(ye){V>=W.WARNINGS&&console.log(`Warning: ${ye}`)}function G(ye){throw new Error(ye)}function T(ye,Oe){ye||G(Oe)}function Q(ye){if(!ye)return!1;switch(ye.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function U(ye,Oe=null,Me=null){if(!ye)return null;try{if(Me&&typeof ye=="string"){if(Me.addDefaultProtocol&&ye.startsWith("www.")){let gt=ye.match(/\./g);gt&&gt.length>=2&&(ye=`http://${ye}`)}if(Me.tryConvertEncoding)try{ye=$e(ye)}catch{}}let Ke=Oe?new URL(ye,Oe):new URL(ye);if(Q(Ke))return Ke}catch{}return null}function F(ye,Oe,Me,Ke=!1){return Object.defineProperty(ye,Oe,{value:Me,enumerable:!Ke,configurable:!0,writable:!1}),Me}let D=function(){function Oe(Me,Ke){this.constructor===Oe&&G("Cannot initialize BaseException."),this.message=Me,this.name=Ke}return Oe.prototype=new Error,Oe.constructor=Oe,Oe}();t.BaseException=D;class L extends D{constructor(Oe,Me){super(Oe,"PasswordException"),this.code=Me}}t.PasswordException=L;class $ extends D{constructor(Oe,Me){super(Oe,"UnknownErrorException"),this.details=Me}}t.UnknownErrorException=$;class Z extends D{constructor(Oe){super(Oe,"InvalidPDFException")}}t.InvalidPDFException=Z;class se extends D{constructor(Oe){super(Oe,"MissingPDFException")}}t.MissingPDFException=se;class Y extends D{constructor(Oe,Me){super(Oe,"UnexpectedResponseException"),this.status=Me}}t.UnexpectedResponseException=Y;class ue extends D{constructor(Oe){super(Oe,"FormatError")}}t.FormatError=ue;class pe extends D{constructor(Oe){super(Oe,"AbortException")}}t.AbortException=pe;function oe(ye){(typeof ye!="object"||ye===null||ye.length===void 0)&&G("Invalid argument for bytesToString");let Oe=ye.length,Me=8192;if(Oe<Me)return String.fromCharCode.apply(null,ye);let Ke=[];for(let gt=0;gt<Oe;gt+=Me){let ft=Math.min(gt+Me,Oe),Bt=ye.subarray(gt,ft);Ke.push(String.fromCharCode.apply(null,Bt))}return Ke.join("")}function de(ye){typeof ye!="string"&&G("Invalid argument for stringToBytes");let Oe=ye.length,Me=new Uint8Array(Oe);for(let Ke=0;Ke<Oe;++Ke)Me[Ke]=ye.charCodeAt(Ke)&255;return Me}function ve(ye){return String.fromCharCode(ye>>24&255,ye>>16&255,ye>>8&255,ye&255)}function Ae(ye){return Object.keys(ye).length}function Ce(ye){let Oe=Object.create(null);for(let[Me,Ke]of ye)Oe[Me]=Ke;return Oe}function Ge(){let ye=new Uint8Array(4);return ye[0]=1,new Uint32Array(ye.buffer,0,1)[0]===1}function Ee(){try{return new Function(""),!0}catch{return!1}}class Ne{static get isLittleEndian(){return F(this,"isLittleEndian",Ge())}static get isEvalSupported(){return F(this,"isEvalSupported",Ee())}static get isOffscreenCanvasSupported(){return F(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get platform(){return typeof navigator>"u"?F(this,"platform",{isWin:!1,isMac:!1}):F(this,"platform",{isWin:navigator.platform.includes("Win"),isMac:navigator.platform.includes("Mac")})}}t.FeatureTest=Ne;let De=[...Array(256).keys()].map(ye=>ye.toString(16).padStart(2,"0"));class Ue{static makeHexColor(Oe,Me,Ke){return`#${De[Oe]}${De[Me]}${De[Ke]}`}static scaleMinMax(Oe,Me){let Ke;Oe[0]?(Oe[0]<0&&(Ke=Me[0],Me[0]=Me[1],Me[1]=Ke),Me[0]*=Oe[0],Me[1]*=Oe[0],Oe[3]<0&&(Ke=Me[2],Me[2]=Me[3],Me[3]=Ke),Me[2]*=Oe[3],Me[3]*=Oe[3]):(Ke=Me[0],Me[0]=Me[2],Me[2]=Ke,Ke=Me[1],Me[1]=Me[3],Me[3]=Ke,Oe[1]<0&&(Ke=Me[2],Me[2]=Me[3],Me[3]=Ke),Me[2]*=Oe[1],Me[3]*=Oe[1],Oe[2]<0&&(Ke=Me[0],Me[0]=Me[1],Me[1]=Ke),Me[0]*=Oe[2],Me[1]*=Oe[2]),Me[0]+=Oe[4],Me[1]+=Oe[4],Me[2]+=Oe[5],Me[3]+=Oe[5]}static transform(Oe,Me){return[Oe[0]*Me[0]+Oe[2]*Me[1],Oe[1]*Me[0]+Oe[3]*Me[1],Oe[0]*Me[2]+Oe[2]*Me[3],Oe[1]*Me[2]+Oe[3]*Me[3],Oe[0]*Me[4]+Oe[2]*Me[5]+Oe[4],Oe[1]*Me[4]+Oe[3]*Me[5]+Oe[5]]}static applyTransform(Oe,Me){let Ke=Oe[0]*Me[0]+Oe[1]*Me[2]+Me[4],gt=Oe[0]*Me[1]+Oe[1]*Me[3]+Me[5];return[Ke,gt]}static applyInverseTransform(Oe,Me){let Ke=Me[0]*Me[3]-Me[1]*Me[2],gt=(Oe[0]*Me[3]-Oe[1]*Me[2]+Me[2]*Me[5]-Me[4]*Me[3])/Ke,ft=(-Oe[0]*Me[1]+Oe[1]*Me[0]+Me[4]*Me[1]-Me[5]*Me[0])/Ke;return[gt,ft]}static getAxialAlignedBoundingBox(Oe,Me){let Ke=Ue.applyTransform(Oe,Me),gt=Ue.applyTransform(Oe.slice(2,4),Me),ft=Ue.applyTransform([Oe[0],Oe[3]],Me),Bt=Ue.applyTransform([Oe[2],Oe[1]],Me);return[Math.min(Ke[0],gt[0],ft[0],Bt[0]),Math.min(Ke[1],gt[1],ft[1],Bt[1]),Math.max(Ke[0],gt[0],ft[0],Bt[0]),Math.max(Ke[1],gt[1],ft[1],Bt[1])]}static inverseTransform(Oe){let Me=Oe[0]*Oe[3]-Oe[1]*Oe[2];return[Oe[3]/Me,-Oe[1]/Me,-Oe[2]/Me,Oe[0]/Me,(Oe[2]*Oe[5]-Oe[4]*Oe[3])/Me,(Oe[4]*Oe[1]-Oe[5]*Oe[0])/Me]}static singularValueDecompose2dScale(Oe){let Me=[Oe[0],Oe[2],Oe[1],Oe[3]],Ke=Oe[0]*Me[0]+Oe[1]*Me[2],gt=Oe[0]*Me[1]+Oe[1]*Me[3],ft=Oe[2]*Me[0]+Oe[3]*Me[2],Bt=Oe[2]*Me[1]+Oe[3]*Me[3],Ft=(Ke+Bt)/2,Kn=Math.sqrt((Ke+Bt)**2-4*(Ke*Bt-ft*gt))/2,Ut=Ft+Kn||1,ln=Ft-Kn||1;return[Math.sqrt(Ut),Math.sqrt(ln)]}static normalizeRect(Oe){let Me=Oe.slice(0);return Oe[0]>Oe[2]&&(Me[0]=Oe[2],Me[2]=Oe[0]),Oe[1]>Oe[3]&&(Me[1]=Oe[3],Me[3]=Oe[1]),Me}static intersect(Oe,Me){let Ke=Math.max(Math.min(Oe[0],Oe[2]),Math.min(Me[0],Me[2])),gt=Math.min(Math.max(Oe[0],Oe[2]),Math.max(Me[0],Me[2]));if(Ke>gt)return null;let ft=Math.max(Math.min(Oe[1],Oe[3]),Math.min(Me[1],Me[3])),Bt=Math.min(Math.max(Oe[1],Oe[3]),Math.max(Me[1],Me[3]));return ft>Bt?null:[Ke,ft,gt,Bt]}static bezierBoundingBox(Oe,Me,Ke,gt,ft,Bt,Ft,Kn){let Ut=[],ln=[[],[]],Yn,jn,Hn,dn,cr,Bn,Si,ir;for(let Oi=0;Oi<2;++Oi){if(Oi===0?(jn=6*Oe-12*Ke+6*ft,Yn=-3*Oe+9*Ke-9*ft+3*Ft,Hn=3*Ke-3*Oe):(jn=6*Me-12*gt+6*Bt,Yn=-3*Me+9*gt-9*Bt+3*Kn,Hn=3*gt-3*Me),Math.abs(Yn)<1e-12){if(Math.abs(jn)<1e-12)continue;dn=-Hn/jn,0<dn&&dn<1&&Ut.push(dn);continue}Si=jn*jn-4*Hn*Yn,ir=Math.sqrt(Si),!(Si<0)&&(cr=(-jn+ir)/(2*Yn),0<cr&&cr<1&&Ut.push(cr),Bn=(-jn-ir)/(2*Yn),0<Bn&&Bn<1&&Ut.push(Bn))}let Mr=Ut.length,ct,_n=Mr;for(;Mr--;)dn=Ut[Mr],ct=1-dn,ln[0][Mr]=ct*ct*ct*Oe+3*ct*ct*dn*Ke+3*ct*dn*dn*ft+dn*dn*dn*Ft,ln[1][Mr]=ct*ct*ct*Me+3*ct*ct*dn*gt+3*ct*dn*dn*Bt+dn*dn*dn*Kn;return ln[0][_n]=Oe,ln[1][_n]=Me,ln[0][_n+1]=Ft,ln[1][_n+1]=Kn,ln[0].length=ln[1].length=_n+2,[Math.min(...ln[0]),Math.min(...ln[1]),Math.max(...ln[0]),Math.max(...ln[1])]}}t.Util=Ue;let Re=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function je(ye){if(ye[0]>="\xEF"){let Me;if(ye[0]==="\xFE"&&ye[1]==="\xFF"?Me="utf-16be":ye[0]==="\xFF"&&ye[1]==="\xFE"?Me="utf-16le":ye[0]==="\xEF"&&ye[1]==="\xBB"&&ye[2]==="\xBF"&&(Me="utf-8"),Me)try{let Ke=new TextDecoder(Me,{fatal:!0}),gt=de(ye);return Ke.decode(gt)}catch(Ke){S(`stringToPDFString: "${Ke}".`)}}let Oe=[];for(let Me=0,Ke=ye.length;Me<Ke;Me++){let gt=Re[ye.charCodeAt(Me)];Oe.push(gt?String.fromCharCode(gt):ye.charAt(Me))}return Oe.join("")}function $e(ye){return decodeURIComponent(escape(ye))}function Le(ye){return unescape(encodeURIComponent(ye))}function Xe(ye){return typeof ye=="object"&&ye!==null&&ye.byteLength!==void 0}function mt(ye,Oe){if(ye.length!==Oe.length)return!1;for(let Me=0,Ke=ye.length;Me<Ke;Me++)if(ye[Me]!==Oe[Me])return!1;return!0}function fe(ye=new Date){return[ye.getUTCFullYear().toString(),(ye.getUTCMonth()+1).toString().padStart(2,"0"),ye.getUTCDate().toString().padStart(2,"0"),ye.getUTCHours().toString().padStart(2,"0"),ye.getUTCMinutes().toString().padStart(2,"0"),ye.getUTCSeconds().toString().padStart(2,"0")].join("")}function be(){let ye=Object.create(null),Oe=!1;return Object.defineProperty(ye,"settled",{get(){return Oe}}),ye.promise=new Promise(function(Me,Ke){ye.resolve=function(gt){Oe=!0,Me(gt)},ye.reject=function(gt){Oe=!0,Ke(gt)}}),ye}},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.build=exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,exports.getDocument=getDocument,exports.version=void 0;var _util=__w_pdfjs_require__(1),_annotation_storage=__w_pdfjs_require__(3),_display_utils=__w_pdfjs_require__(6),_font_loader=__w_pdfjs_require__(9),_canvas=__w_pdfjs_require__(11),_worker_options=__w_pdfjs_require__(14),_is_node=__w_pdfjs_require__(10),_message_handler=__w_pdfjs_require__(15),_metadata=__w_pdfjs_require__(16),_optional_content_config=__w_pdfjs_require__(17),_transport_stream=__w_pdfjs_require__(18),_xfa_text=__w_pdfjs_require__(19);let DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DefaultCanvasFactory=_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;let DefaultCMapReaderFactory=_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;let DefaultStandardFontDataFactory=_display_utils.DOMStandardFontDataFactory;if(exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory,_is_node.isNodeJS){let{NodeCanvasFactory:e,NodeCMapReaderFactory:t,NodeStandardFontDataFactory:n}=__w_pdfjs_require__(20);exports.DefaultCanvasFactory=DefaultCanvasFactory=e,exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory=t,exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory=n}let createPDFNetworkStream;if(_is_node.isNodeJS){let{PDFNodeStream:e}=__w_pdfjs_require__(21);createPDFNetworkStream=t=>new e(t)}else{let{PDFNetworkStream:e}=__w_pdfjs_require__(24),{PDFFetchStream:t}=__w_pdfjs_require__(25);createPDFNetworkStream=n=>(0,_display_utils.isValidFetchUrl)(n.url)?new t(n):new e(n)}function getDocument(e){if(typeof e=="string"||e instanceof URL)e={url:e};else if((0,_util.isArrayBuffer)(e))e={data:e};else if(e instanceof PDFDataRangeTransport)(0,_display_utils.deprecated)("`PDFDataRangeTransport`-instance, please use a parameter object with `range`-property instead."),e={range:e};else if(typeof e!="object")throw new Error("Invalid parameter in getDocument, need either string, URL, TypedArray, or parameter object.");if(!e.url&&!e.data&&!e.range)throw new Error("Invalid parameter object: need either .data, .range or .url");let t=new PDFDocumentLoadingTask,n=e.url?getUrlProp(e.url):null,r=e.data?getDataProp(e.data):null,i=e.httpHeaders||null,o=e.withCredentials===!0,s=e.password??null,a=e.range instanceof PDFDataRangeTransport?e.range:null,l=Number.isInteger(e.rangeChunkSize)&&e.rangeChunkSize>0?e.rangeChunkSize:DEFAULT_RANGE_CHUNK_SIZE,u=e.worker instanceof _PDFWorker?e.worker:null,c=e.verbosity,f=typeof e.docBaseUrl=="string"&&!(0,_display_utils.isDataScheme)(e.docBaseUrl)?e.docBaseUrl:null,d=typeof e.cMapUrl=="string"?e.cMapUrl:null,h=e.cMapPacked!==!1,m=e.CMapReaderFactory||DefaultCMapReaderFactory,g=typeof e.standardFontDataUrl=="string"?e.standardFontDataUrl:null,b=e.StandardFontDataFactory||DefaultStandardFontDataFactory,v=e.stopAtErrors!==!0,x=Number.isInteger(e.maxImageSize)&&e.maxImageSize>-1?e.maxImageSize:-1,y=e.isEvalSupported!==!1,_=typeof e.isOffscreenCanvasSupported=="boolean"?e.isOffscreenCanvasSupported:!_is_node.isNodeJS,w=typeof e.disableFontFace=="boolean"?e.disableFontFace:_is_node.isNodeJS,k=e.fontExtraProperties===!0,O=e.enableXfa===!0,M=e.ownerDocument||globalThis.document,I=e.disableRange===!0,W=e.disableStream===!0,J=e.disableAutoFetch===!0,H=e.pdfBug===!0,ee=a?a.length:e.length??NaN,j=typeof e.useSystemFonts=="boolean"?e.useSystemFonts:!_is_node.isNodeJS&&!w,V=typeof e.useWorkerFetch=="boolean"?e.useWorkerFetch:m===_display_utils.DOMCMapReaderFactory&&b===_display_utils.DOMStandardFontDataFactory&&(0,_display_utils.isValidFetchUrl)(d,document.baseURI)&&(0,_display_utils.isValidFetchUrl)(g,document.baseURI),B=null;(0,_util.setVerbosityLevel)(c);let N=V?null:{cMapReaderFactory:new m({baseUrl:d,isCompressed:h}),standardFontDataFactory:new b({baseUrl:g})};if(!u){let T={verbosity:c,port:_worker_options.GlobalWorkerOptions.workerPort};u=T.port?_PDFWorker.fromPort(T):new _PDFWorker(T),t._worker=u}let C=t.docId,S={docId:C,apiVersion:"3.4.120",data:r,password:s,disableAutoFetch:J,rangeChunkSize:l,length:ee,docBaseUrl:f,enableXfa:O,evaluatorOptions:{maxImageSize:x,disableFontFace:w,ignoreErrors:v,isEvalSupported:y,isOffscreenCanvasSupported:_,fontExtraProperties:k,useSystemFonts:j,cMapUrl:V?d:null,standardFontDataUrl:V?g:null}},G={ignoreErrors:v,isEvalSupported:y,disableFontFace:w,fontExtraProperties:k,enableXfa:O,ownerDocument:M,disableAutoFetch:J,pdfBug:H,styleElement:B};return u.promise.then(function(){if(t.destroyed)throw new Error("Loading aborted");let T=_fetchDocument(u,S),Q=new Promise(function(U){let F;a?F=new _transport_stream.PDFDataTransportStream({length:ee,initialData:a.initialData,progressiveDone:a.progressiveDone,contentDispositionFilename:a.contentDispositionFilename,disableRange:I,disableStream:W},a):r||(F=createPDFNetworkStream({url:n,length:ee,httpHeaders:i,withCredentials:o,rangeChunkSize:l,disableRange:I,disableStream:W})),U(F)});return Promise.all([T,Q]).then(function([U,F]){if(t.destroyed)throw new Error("Loading aborted");let D=new _message_handler.MessageHandler(C,U,u.port),L=new WorkerTransport(D,t,F,G,N);t._transport=L,D.send("Ready",null)})}).catch(t._capability.reject),t}async function _fetchDocument(e,t){if(e.destroyed)throw new Error("Worker was destroyed");let n=await e.messageHandler.sendWithPromise("GetDocRequest",t,t.data?[t.data.buffer]:null);if(e.destroyed)throw new Error("Worker was destroyed");return n}function getUrlProp(e){if(e instanceof URL)return e.href;try{return new URL(e,window.location).href}catch{if(_is_node.isNodeJS&&typeof e=="string")return e}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function getDataProp(e){if(_is_node.isNodeJS&&typeof Buffer<"u"&&e instanceof Buffer)return(0,_display_utils.deprecated)("Please provide binary data as `Uint8Array`, rather than `Buffer`."),new Uint8Array(e);if(e instanceof Uint8Array&&e.byteLength===e.buffer.byteLength)return e;if(typeof e=="string")return(0,_util.stringToBytes)(e);if(typeof e=="object"&&!isNaN(e?.length)||(0,_util.isArrayBuffer)(e))return new Uint8Array(e);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}class PDFDocumentLoadingTask{static#e=0;#t=null;constructor(){this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId=`d${PDFDocumentLoadingTask.#e++}`,this.destroyed=!1,this.onPassword=null,this.onProgress=null}get onUnsupportedFeature(){return this.#t}set onUnsupportedFeature(t){(0,_display_utils.deprecated)("The PDFDocumentLoadingTask onUnsupportedFeature property will be removed in the future."),this.#t=t}get promise(){return this._capability.promise}async destroy(){this.destroyed=!0,await this._transport?.destroy(),this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}}exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;class PDFDataRangeTransport{constructor(t,n,r=!1,i=null){this.length=t,this.initialData=n,this.progressiveDone=r,this.contentDispositionFilename=i,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}addRangeListener(t){this._rangeListeners.push(t)}addProgressListener(t){this._progressListeners.push(t)}addProgressiveReadListener(t){this._progressiveReadListeners.push(t)}addProgressiveDoneListener(t){this._progressiveDoneListeners.push(t)}onDataRange(t,n){for(let r of this._rangeListeners)r(t,n)}onDataProgress(t,n){this._readyCapability.promise.then(()=>{for(let r of this._progressListeners)r(t,n)})}onDataProgressiveRead(t){this._readyCapability.promise.then(()=>{for(let n of this._progressiveReadListeners)n(t)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(let t of this._progressiveDoneListeners)t()})}transportReady(){this._readyCapability.resolve()}requestDataRange(t,n){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(t,n){this._pdfInfo=t,this._transport=n}get annotationStorage(){return this._transport.annotationStorage}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(t){return this._transport.getPage(t)}getPageIndex(t){return this._transport.getPageIndex(t)}getDestinations(){return this._transport.getDestinations()}getDestination(t){return this._transport.getDestination(t)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJavaScript(){return this._transport.getJavaScript()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(t=!1){return this._transport.startCleanup(t||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{constructor(t,n,r,i,o=!1){this._pageIndex=t,this._pageInfo=n,this._ownerDocument=i,this._transport=r,this._stats=o?new _display_utils.StatTimer:null,this._pdfBug=o,this.commonObjs=r.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:t,rotation:n=this.rotate,offsetX:r=0,offsetY:i=0,dontFlip:o=!1}={}){return new _display_utils.PageViewport({viewBox:this.view,scale:t,rotation:n,offsetX:r,offsetY:i,dontFlip:o})}getAnnotations({intent:t="display"}={}){let n=this._transport.getRenderingIntent(t);return this._transport.getAnnotations(this._pageIndex,n.renderingIntent)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){return this._transport._htmlForXfa?.children[this._pageIndex]||null}render({canvasContext:t,viewport:n,intent:r="display",annotationMode:i=_util.AnnotationMode.ENABLE,transform:o=null,canvasFactory:s=null,background:a=null,optionalContentConfigPromise:l=null,annotationCanvasMap:u=null,pageColors:c=null,printAnnotationStorage:f=null}){this._stats?.time("Overall");let d=this._transport.getRenderingIntent(r,i,f);this.pendingCleanup=!1,l||(l=this._transport.getOptionalContentConfig());let h=this._intentStates.get(d.cacheKey);h||(h=Object.create(null),this._intentStates.set(d.cacheKey,h)),h.streamReaderCancelTimeout&&(clearTimeout(h.streamReaderCancelTimeout),h.streamReaderCancelTimeout=null);let m=s||new DefaultCanvasFactory({ownerDocument:this._ownerDocument}),g=!!(d.renderingIntent&_util.RenderingIntentFlag.PRINT);h.displayReadyCapability||(h.displayReadyCapability=(0,_util.createPromiseCapability)(),h.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(d));let b=y=>{h.renderTasks.delete(v),(this.cleanupAfterRender||g)&&(this.pendingCleanup=!0),this._tryCleanup(),y?(v.capability.reject(y),this._abortOperatorList({intentState:h,reason:y instanceof Error?y:new Error(y)})):v.capability.resolve(),this._stats?.timeEnd("Rendering"),this._stats?.timeEnd("Overall")},v=new InternalRenderTask({callback:b,params:{canvasContext:t,viewport:n,transform:o,background:a},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:u,operatorList:h.operatorList,pageIndex:this._pageIndex,canvasFactory:m,useRequestAnimationFrame:!g,pdfBug:this._pdfBug,pageColors:c});(h.renderTasks||=new Set).add(v);let x=v.task;return Promise.all([h.displayReadyCapability.promise,l]).then(([y,_])=>{if(this.pendingCleanup){b();return}this._stats?.time("Rendering"),v.initializeGraphics({transparency:y,optionalContentConfig:_}),v.operatorListChanged()}).catch(b),x}getOperatorList({intent:t="display",annotationMode:n=_util.AnnotationMode.ENABLE,printAnnotationStorage:r=null}={}){function i(){s.operatorList.lastChunk&&(s.opListReadCapability.resolve(s.operatorList),s.renderTasks.delete(a))}let o=this._transport.getRenderingIntent(t,n,r,!0),s=this._intentStates.get(o.cacheKey);s||(s=Object.create(null),this._intentStates.set(o.cacheKey,s));let a;return s.opListReadCapability||(a=Object.create(null),a.operatorListChanged=i,s.opListReadCapability=(0,_util.createPromiseCapability)(),(s.renderTasks||=new Set).add(a),s.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(o)),s.opListReadCapability.promise}streamTextContent({disableCombineTextItems:t=!1,includeMarkedContent:n=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,combineTextItems:t!==!0,includeMarkedContent:n===!0},{highWaterMark:100,size(i){return i.items.length}})}getTextContent(t={}){if(this._transport._htmlForXfa)return this.getXfa().then(r=>_xfa_text.XfaText.textContent(r));let n=this.streamTextContent(t);return new Promise(function(r,i){function o(){s.read().then(function({value:l,done:u}){if(u){r(a);return}Object.assign(a.styles,l.styles),a.items.push(...l.items),o()},i)}let s=n.getReader(),a={items:[],styles:Object.create(null)};o()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;let t=[];for(let n of this._intentStates.values())if(this._abortOperatorList({intentState:n,reason:new Error("Page was destroyed."),force:!0}),!n.opListReadCapability)for(let r of n.renderTasks)t.push(r.completed),r.cancel();return this.objs.clear(),this.pendingCleanup=!1,Promise.all(t)}cleanup(t=!1){return this.pendingCleanup=!0,this._tryCleanup(t)}_tryCleanup(t=!1){if(!this.pendingCleanup)return!1;for(let{renderTasks:n,operatorList:r}of this._intentStates.values())if(n.size>0||!r.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),t&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,!0}_startRenderPage(t,n){let r=this._intentStates.get(n);!r||(this._stats?.timeEnd("Page Request"),r.displayReadyCapability?.resolve(t))}_renderPageChunk(t,n){for(let r=0,i=t.length;r<i;r++)n.operatorList.fnArray.push(t.fnArray[r]),n.operatorList.argsArray.push(t.argsArray[r]);n.operatorList.lastChunk=t.lastChunk,n.operatorList.separateAnnots=t.separateAnnots;for(let r of n.renderTasks)r.operatorListChanged();t.lastChunk&&this._tryCleanup()}_pumpOperatorList({renderingIntent:t,cacheKey:n,annotationStorageMap:r}){let o=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:t,cacheKey:n,annotationStorage:r}).getReader(),s=this._intentStates.get(n);s.streamReader=o;let a=()=>{o.read().then(({value:l,done:u})=>{if(u){s.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(l,s),a())},l=>{if(s.streamReader=null,!this._transport.destroyed){if(s.operatorList){s.operatorList.lastChunk=!0;for(let u of s.renderTasks)u.operatorListChanged();this._tryCleanup()}if(s.displayReadyCapability)s.displayReadyCapability.reject(l);else if(s.opListReadCapability)s.opListReadCapability.reject(l);else throw l}})};a()}_abortOperatorList({intentState:t,reason:n,force:r=!1}){if(!!t.streamReader){if(t.streamReaderCancelTimeout&&(clearTimeout(t.streamReaderCancelTimeout),t.streamReaderCancelTimeout=null),!r){if(t.renderTasks.size>0)return;if(n instanceof _display_utils.RenderingCancelledException){let i=RENDERING_CANCELLED_TIMEOUT;n.extraDelay>0&&n.extraDelay<1e3&&(i+=n.extraDelay),t.streamReaderCancelTimeout=setTimeout(()=>{t.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:t,reason:n,force:!0})},i);return}}if(t.streamReader.cancel(new _util.AbortException(n.message)).catch(()=>{}),t.streamReader=null,!this._transport.destroyed){for(let[i,o]of this._intentStates)if(o===t){this._intentStates.delete(i);break}this.cleanup()}}}get stats(){return this._stats}}exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{#e=new Set;#t=Promise.resolve();postMessage(t,n){let r={data:structuredClone(t,n)};this.#t.then(()=>{for(let i of this.#e)i.call(this,r)})}addEventListener(t,n){this.#e.add(n)}removeEventListener(t,n){this.#e.delete(n)}terminate(){this.#e.clear()}}exports.LoopbackPort=LoopbackPort;let PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};exports.PDFWorkerUtil=PDFWorkerUtil;{if(_is_node.isNodeJS&&typeof mp=="function")PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if(typeof document=="object"){let e=document?.currentScript?.src;e&&(PDFWorkerUtil.fallbackWorkerSrc=e.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(e,t){let n;try{if(n=new URL(e),!n.origin||n.origin==="null")return!1}catch{return!1}let r=new URL(t,n);return n.origin===r.origin},PDFWorkerUtil.createCDNWrapper=function(e){let t=`importScripts("${e}");`;return URL.createObjectURL(new Blob([t]))}}class _PDFWorker{static#workerPorts=new WeakMap;constructor({name:e=null,port:t=null,verbosity:n=(0,_util.getVerbosityLevel)()}={}){if(t&&_PDFWorker.#workerPorts.has(t))throw new Error("Cannot use more than one PDFWorker per port.");if(this.name=e,this.destroyed=!1,this.verbosity=n,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,t){_PDFWorker.#workerPorts.set(t,this),this._initializeFromPort(t);return}this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})}_initialize(){if(!PDFWorkerUtil.isWorkerDisabled&&!_PDFWorker._mainThreadWorkerMessageHandler){let{workerSrc:e}=_PDFWorker;try{PDFWorkerUtil.isSameOrigin(window.location.href,e)||(e=PDFWorkerUtil.createCDNWrapper(new URL(e,window.location).href));let t=new Worker(e),n=new _message_handler.MessageHandler("main","worker",t),r=()=>{t.removeEventListener("error",i),n.destroy(),t.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},i=()=>{this._webWorker||r()};t.addEventListener("error",i),n.on("test",s=>{if(t.removeEventListener("error",i),this.destroyed){r();return}s?(this._messageHandler=n,this._port=t,this._webWorker=t,this._readyCapability.resolve(),n.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),n.destroy(),t.terminate())}),n.on("ready",s=>{if(t.removeEventListener("error",i),this.destroyed){r();return}try{o()}catch{this._setupFakeWorker()}});let o=()=>{let s=new Uint8Array;n.send("test",s,[s.buffer])};o();return}catch{(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),_PDFWorker._setupFakeWorkerGlobal.then(e=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}let t=new LoopbackPort;this._port=t;let n=`fake${PDFWorkerUtil.fakeWorkerId++}`,r=new _message_handler.MessageHandler(n+"_worker",n,t);e.setup(r,t);let i=new _message_handler.MessageHandler(n,n+"_worker",t);this._messageHandler=i,this._readyCapability.resolve(),i.send("configure",{verbosity:this.verbosity})}).catch(e=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${e.message}".`))})}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),_PDFWorker.#workerPorts.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(e){if(!e?.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return this.#workerPorts.has(e.port)?this.#workerPorts.get(e.port):new _PDFWorker(e)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(PDFWorkerUtil.fallbackWorkerSrc!==null)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch{return null}}static get _setupFakeWorkerGlobal(){let loader=async()=>{let mainWorkerMessageHandler=this._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_is_node.isNodeJS&&typeof mp=="function"){let worker=eval("require")(this.workerSrc);return worker.WorkerMessageHandler}return await(0,_display_utils.loadScript)(this.workerSrc),window.pdfjsWorker.WorkerMessageHandler};return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}}exports.PDFWorker=_PDFWorker;class WorkerTransport{#e=new Map;#t=new Map;#i=new Map;constructor(t,n,r,i,o){this.messageHandler=t,this.loadingTask=n,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({onUnsupportedFeature:this._onUnsupportedFeature.bind(this),ownerDocument:i.ownerDocument,styleElement:i.styleElement}),this._params=i,this.cMapReaderFactory=o?.cMapReaderFactory,this.standardFontDataFactory=o?.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=r,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}#r(t,n=null){let r=this.#e.get(t);if(r)return r;let i=this.messageHandler.sendWithPromise(t,n);return this.#e.set(t,i),i}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}getRenderingIntent(t,n=_util.AnnotationMode.ENABLE,r=null,i=!1){let o=_util.RenderingIntentFlag.DISPLAY,s=null;switch(t){case"any":o=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":o=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)(`getRenderingIntent - invalid intent: ${t}`)}switch(n){case _util.AnnotationMode.DISABLE:o+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:o+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:o+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE,s=(o&_util.RenderingIntentFlag.PRINT&&r instanceof _annotation_storage.PrintAnnotationStorage?r:this.annotationStorage).serializable;break;default:(0,_util.warn)(`getRenderingIntent - invalid annotationMode: ${n}`)}return i&&(o+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:o,cacheKey:`${o}_${_annotation_storage.AnnotationStorage.getHash(s)}`,annotationStorageMap:s}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));let t=[];for(let r of this.#t.values())t.push(r._destroy());this.#t.clear(),this.#i.clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();let n=this.messageHandler.sendWithPromise("Terminate",null);return t.push(n),Promise.all(t).then(()=>{this.commonObjs.clear(),this.fontLoader.clear(),this.#e.clear(),this._networkStream&&this._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){let{messageHandler:t,loadingTask:n}=this;t.on("GetReader",(r,i)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=o=>{this._lastProgress={loaded:o.loaded,total:o.total}},i.onPull=()=>{this._fullReader.read().then(function({value:o,done:s}){if(s){i.close();return}(0,_util.assert)(o instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),i.enqueue(new Uint8Array(o),1,[o])}).catch(o=>{i.error(o)})},i.onCancel=o=>{this._fullReader.cancel(o),i.ready.catch(s=>{if(!this.destroyed)throw s})}}),t.on("ReaderHeadersReady",r=>{let i=(0,_util.createPromiseCapability)(),o=this._fullReader;return o.headersReady.then(()=>{(!o.isStreamingSupported||!o.isRangeSupported)&&(this._lastProgress&&n.onProgress?.(this._lastProgress),o.onProgress=s=>{n.onProgress?.({loaded:s.loaded,total:s.total})}),i.resolve({isStreamingSupported:o.isStreamingSupported,isRangeSupported:o.isRangeSupported,contentLength:o.contentLength})},i.reject),i.promise}),t.on("GetRangeReader",(r,i)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");let o=this._networkStream.getRangeReader(r.begin,r.end);if(!o){i.close();return}i.onPull=()=>{o.read().then(function({value:s,done:a}){if(a){i.close();return}(0,_util.assert)(s instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),i.enqueue(new Uint8Array(s),1,[s])}).catch(s=>{i.error(s)})},i.onCancel=s=>{o.cancel(s),i.ready.catch(a=>{if(!this.destroyed)throw a})}}),t.on("GetDoc",({pdfInfo:r})=>{this._numPages=r.numPages,this._htmlForXfa=r.htmlForXfa,delete r.htmlForXfa,n._capability.resolve(new PDFDocumentProxy(r,this))}),t.on("DocException",function(r){let i;switch(r.name){case"PasswordException":i=new _util.PasswordException(r.message,r.code);break;case"InvalidPDFException":i=new _util.InvalidPDFException(r.message);break;case"MissingPDFException":i=new _util.MissingPDFException(r.message);break;case"UnexpectedResponseException":i=new _util.UnexpectedResponseException(r.message,r.status);break;case"UnknownErrorException":i=new _util.UnknownErrorException(r.message,r.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}n._capability.reject(i)}),t.on("PasswordRequest",r=>{if(this._passwordCapability=(0,_util.createPromiseCapability)(),n.onPassword){let i=o=>{o instanceof Error?this._passwordCapability.reject(o):this._passwordCapability.resolve({password:o})};try{n.onPassword(i,r.code)}catch(o){this._passwordCapability.reject(o)}}else this._passwordCapability.reject(new _util.PasswordException(r.message,r.code));return this._passwordCapability.promise}),t.on("DataLoaded",r=>{n.onProgress?.({loaded:r.length,total:r.length}),this.downloadInfoCapability.resolve(r)}),t.on("StartRenderPage",r=>{if(this.destroyed)return;this.#t.get(r.pageIndex)._startRenderPage(r.transparency,r.cacheKey)}),t.on("commonobj",([r,i,o])=>{if(!this.destroyed&&!this.commonObjs.has(r))switch(i){case"Font":let s=this._params;if("error"in o){let u=o.error;(0,_util.warn)(`Error during font loading: ${u}`),this.commonObjs.resolve(r,u);break}let a=null;s.pdfBug&&globalThis.FontInspector?.enabled&&(a={registerFont(u,c){globalThis.FontInspector.fontAdded(u,c)}});let l=new _font_loader.FontFaceObject(o,{isEvalSupported:s.isEvalSupported,disableFontFace:s.disableFontFace,ignoreErrors:s.ignoreErrors,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),fontRegistry:a});this.fontLoader.bind(l).catch(u=>t.sendWithPromise("FontFallback",{id:r})).finally(()=>{!s.fontExtraProperties&&l.data&&(l.data=null),this.commonObjs.resolve(r,l)});break;case"FontPath":case"Image":this.commonObjs.resolve(r,o);break;default:throw new Error(`Got unknown common object type ${i}`)}}),t.on("obj",([r,i,o,s])=>{if(this.destroyed)return;let a=this.#t.get(i);if(!a.objs.has(r))switch(o){case"Image":a.objs.resolve(r,s);let l=8e6;if(s){let u;if(s.bitmap){let{width:c,height:f}=s;u=c*f*4}else u=s.data?.length||0;u>l&&(a.cleanupAfterRender=!0)}break;case"Pattern":a.objs.resolve(r,s);break;default:throw new Error(`Got unknown object type ${o}`)}}),t.on("DocProgress",r=>{this.destroyed||n.onProgress?.({loaded:r.loaded,total:r.total})}),t.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),t.on("FetchBuiltInCMap",r=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.cMapReaderFactory?this.cMapReaderFactory.fetch(r):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))),t.on("FetchStandardFontData",r=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.standardFontDataFactory?this.standardFontDataFactory.fetch(r):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")))}_onUnsupportedFeature({featureId:t}){this.destroyed||this.loadingTask.onUnsupportedFeature?.(t)}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){return this.annotationStorage.size<=0&&(0,_util.warn)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead."),this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:this.annotationStorage.serializable,filename:this._fullReader?.filename??null}).finally(()=>{this.annotationStorage.resetModified()})}getPage(t){if(!Number.isInteger(t)||t<=0||t>this._numPages)return Promise.reject(new Error("Invalid page request."));let n=t-1,r=this.#i.get(n);if(r)return r;let i=this.messageHandler.sendWithPromise("GetPage",{pageIndex:n}).then(o=>{if(this.destroyed)throw new Error("Transport destroyed");let s=new PDFPageProxy(n,o,this,this._params.ownerDocument,this._params.pdfBug);return this.#t.set(n,s),s});return this.#i.set(n,i),i}getPageIndex(t){return typeof t!="object"||t===null||!Number.isInteger(t.num)||t.num<0||!Number.isInteger(t.gen)||t.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:t.num,gen:t.gen})}getAnnotations(t,n){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:t,intent:n})}getFieldObjects(){return this.#r("GetFieldObjects")}hasJSActions(){return this.#r("HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(t){return typeof t!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:t})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getJavaScript(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}getDocJSActions(){return this.messageHandler.sendWithPromise("GetDocJSActions",null)}getPageJSActions(t){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:t})}getStructTree(t){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:t})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then(t=>new _optional_content_config.OptionalContentConfig(t))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){let t="GetMetadata",n=this.#e.get(t);if(n)return n;let r=this.messageHandler.sendWithPromise(t,null).then(i=>({info:i[0],metadata:i[1]?new _metadata.Metadata(i[1]):null,contentDispositionFilename:this._fullReader?.filename??null,contentLength:this._fullReader?.contentLength??null}));return this.#e.set(t,r),r}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(t=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(let n of this.#t.values())if(!n.cleanup())throw new Error(`startCleanup: Page ${n.pageNumber} is currently rendering.`);this.commonObjs.clear(),t||this.fontLoader.clear(),this.#e.clear()}}get loadingParams(){let{disableAutoFetch:t,enableXfa:n}=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:t,enableXfa:n})}}class PDFObjects{#e=Object.create(null);#t(t){let n=this.#e[t];return n||(this.#e[t]={capability:(0,_util.createPromiseCapability)(),data:null})}get(t,n=null){if(n){let i=this.#t(t);return i.capability.promise.then(()=>n(i.data)),null}let r=this.#e[t];if(!r?.capability.settled)throw new Error(`Requesting object that isn't resolved yet ${t}.`);return r.data}has(t){return this.#e[t]?.capability.settled||!1}resolve(t,n=null){let r=this.#t(t);r.data=n,r.capability.resolve()}clear(){for(let t in this.#e){let{data:n}=this.#e[t];n?.bitmap?.close()}this.#e=Object.create(null)}}class RenderTask{#e=null;constructor(t){this.#e=t,this.onContinue=null}get promise(){return this.#e.capability.promise}cancel(t=0){this.#e.cancel(null,t)}get separateAnnots(){let{separateAnnots:t}=this.#e.operatorList;if(!t)return!1;let{annotationCanvasMap:n}=this.#e;return t.form||t.canvas&&n?.size>0}}exports.RenderTask=RenderTask;class InternalRenderTask{static#e=new WeakSet;constructor({callback:t,params:n,objs:r,commonObjs:i,annotationCanvasMap:o,operatorList:s,pageIndex:a,canvasFactory:l,useRequestAnimationFrame:u=!1,pdfBug:c=!1,pageColors:f=null}){this.callback=t,this.params=n,this.objs=r,this.commonObjs=i,this.annotationCanvasMap=o,this.operatorListIdx=null,this.operatorList=s,this._pageIndex=a,this.canvasFactory=l,this._pdfBug=c,this.pageColors=f,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=u===!0&&typeof window<"u",this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=n.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:t=!1,optionalContentConfig:n}){if(this.cancelled)return;if(this._canvas){if(InternalRenderTask.#e.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");InternalRenderTask.#e.add(this._canvas)}this._pdfBug&&globalThis.StepperManager?.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());let{canvasContext:r,viewport:i,transform:o,background:s}=this.params;this.gfx=new _canvas.CanvasGraphics(r,this.commonObjs,this.objs,this.canvasFactory,{optionalContentConfig:n},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:o,viewport:i,transparency:t,background:s}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback?.()}cancel(t=null,n=0){this.running=!1,this.cancelled=!0,this.gfx?.endDrawing(),this._canvas&&InternalRenderTask.#e.delete(this._canvas),this.callback(t||new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,"canvas",n))}operatorListChanged(){if(!this.graphicsReady){this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound);return}this.stepper?.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame(()=>{this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&InternalRenderTask.#e.delete(this._canvas),this.callback())))}}let version="3.4.120";exports.version=version;let build="af6414988";exports.build=build},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PrintAnnotationStorage=t.AnnotationStorage=void 0;var r=n(1),i=n(4),o=n(8);class s{#e=!1;#t=new Map;constructor(){this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(u,c){let f=this.#t.get(u);return f===void 0?c:Object.assign(c,f)}getRawValue(u){return this.#t.get(u)}remove(u){if(this.#t.delete(u),this.#t.size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function"){for(let c of this.#t.values())if(c instanceof i.AnnotationEditor)return;this.onAnnotationEditor(null)}}setValue(u,c){let f=this.#t.get(u),d=!1;if(f!==void 0)for(let[h,m]of Object.entries(c))f[h]!==m&&(d=!0,f[h]=m);else d=!0,this.#t.set(u,c);d&&this.#i(),c instanceof i.AnnotationEditor&&typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(c.constructor._type)}has(u){return this.#t.has(u)}getAll(){return this.#t.size>0?(0,r.objectFromMap)(this.#t):null}setAll(u){for(let[c,f]of Object.entries(u))this.setValue(c,f)}get size(){return this.#t.size}#i(){this.#e||(this.#e=!0,typeof this.onSetModified=="function"&&this.onSetModified())}resetModified(){this.#e&&(this.#e=!1,typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new a(this)}get serializable(){if(this.#t.size===0)return null;let u=new Map;for(let[c,f]of this.#t){let d=f instanceof i.AnnotationEditor?f.serialize():f;d&&u.set(c,d)}return u}static getHash(u){if(!u)return"";let c=new o.MurmurHash3_64;for(let[f,d]of u)c.update(`${f}:${JSON.stringify(d)}`);return c.hexdigest()}}t.AnnotationStorage=s;class a extends s{#e=null;constructor(u){super(),this.#e=structuredClone(u.serializable)}get print(){(0,r.unreachable)("Should not call PrintAnnotationStorage.print")}get serializable(){return this.#e}}t.PrintAnnotationStorage=a},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditor=void 0;var r=n(5),i=n(1);class o{#e=this.focusin.bind(this);#t=this.focusout.bind(this);#i=!1;#r=!1;#o=!1;_uiManager=null;#l=o._zIndex++;static _colorManager=new r.ColorManager;static _zIndex=1;constructor(a){this.constructor===o&&(0,i.unreachable)("Cannot initialize AnnotationEditor."),this.parent=a.parent,this.id=a.id,this.width=this.height=null,this.pageIndex=a.parent.pageIndex,this.name=a.name,this.div=null,this._uiManager=a.uiManager;let{rotation:l,rawDims:{pageWidth:u,pageHeight:c,pageX:f,pageY:d}}=this.parent.viewport;this.rotation=l,this.pageDimensions=[u,c],this.pageTranslation=[f,d];let[h,m]=this.parentDimensions;this.x=a.x/h,this.y=a.y/m,this.isAttachedToDOM=!1}static get _defaultLineColor(){return(0,i.shadow)(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}addCommands(a){this._uiManager.addCommands(a)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=this.#l}setParent(a){a!==null&&(this.pageIndex=a.pageIndex,this.pageDimensions=a.pageDimensions),this.parent=a}focusin(a){this.#i?this.#i=!1:this.parent.setSelected(this)}focusout(a){!this.isAttachedToDOM||a.relatedTarget?.closest(`#${this.id}`)||(a.preventDefault(),this.parent?.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}dragstart(a){let l=this.parent.div.getBoundingClientRect();this.startX=a.clientX-l.x,this.startY=a.clientY-l.y,a.dataTransfer.setData("text/plain",this.id),a.dataTransfer.effectAllowed="move"}setAt(a,l,u,c){let[f,d]=this.parentDimensions;[u,c]=this.screenToPageTranslation(u,c),this.x=(a+u)/f,this.y=(l+c)/d,this.div.style.left=`${100*this.x}%`,this.div.style.top=`${100*this.y}%`}translate(a,l){let[u,c]=this.parentDimensions;[a,l]=this.screenToPageTranslation(a,l),this.x+=a/u,this.y+=l/c,this.div.style.left=`${100*this.x}%`,this.div.style.top=`${100*this.y}%`}screenToPageTranslation(a,l){switch(this.parentRotation){case 90:return[l,-a];case 180:return[-a,-l];case 270:return[-l,a];default:return[a,l]}}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return this._uiManager.viewParameters.rotation}get parentDimensions(){let{realScale:a}=this._uiManager.viewParameters,[l,u]=this.pageDimensions;return[l*a,u*a]}setDims(a,l){let[u,c]=this.parentDimensions;this.div.style.width=`${100*a/u}%`,this.div.style.height=`${100*l/c}%`}fixDims(){let{style:a}=this.div,{height:l,width:u}=a,c=u.endsWith("%"),f=l.endsWith("%");if(c&&f)return;let[d,h]=this.parentDimensions;c||(a.width=`${100*parseFloat(u)/d}%`),f||(a.height=`${100*parseFloat(l)/h}%`)}getInitialTranslation(){return[0,0]}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.setAttribute("tabIndex",0),this.setInForeground(),this.div.addEventListener("focusin",this.#e),this.div.addEventListener("focusout",this.#t);let[a,l]=this.getInitialTranslation();return this.translate(a,l),(0,r.bindEvents)(this,this.div,["dragstart","pointerdown"]),this.div}pointerdown(a){let{isMac:l}=i.FeatureTest.platform;if(a.button!==0||a.ctrlKey&&l){a.preventDefault();return}a.ctrlKey&&!l||a.shiftKey||a.metaKey&&l?this.parent.toggleSelected(this):this.parent.setSelected(this),this.#i=!0}getRect(a,l){let u=this.parentScale,[c,f]=this.pageDimensions,[d,h]=this.pageTranslation,m=a/u,g=l/u,b=this.x*c,v=this.y*f,x=this.width*c,y=this.height*f;switch(this.rotation){case 0:return[b+m+d,f-v-g-y+h,b+m+x+d,f-v-g+h];case 90:return[b+g+d,f-v+m+h,b+g+y+d,f-v+m+x+h];case 180:return[b-m-x+d,f-v+g+h,b-m+d,f-v+g+y+h];case 270:return[b-g-y+d,f-v-m-x+h,b-g+d,f-v-m+h];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(a,l){let[u,c,f,d]=a,h=f-u,m=d-c;switch(this.rotation){case 0:return[u,l-d,h,m];case 90:return[u,l-c,m,h];case 180:return[f,l-c,h,m];case 270:return[f,l-d,m,h];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){this.#o=!0}disableEditMode(){this.#o=!1}isInEditMode(){return this.#o}shouldGetKeyboardEvents(){return!1}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){this.div?.addEventListener("focusin",this.#e)}serialize(){(0,i.unreachable)("An editor must be serializable")}static deserialize(a,l,u){let c=new this.prototype.constructor({parent:l,id:l.getNextId(),uiManager:u});c.rotation=a.rotation;let[f,d]=c.pageDimensions,[h,m,g,b]=c.getRectInCurrentCoords(a.rect,d);return c.x=h/f,c.y=m/d,c.width=g/f,c.height=b/d,c}remove(){this.div.removeEventListener("focusin",this.#e),this.div.removeEventListener("focusout",this.#t),this.isEmpty()||this.commit(),this.parent.remove(this)}select(){this.div?.classList.add("selectedEditor")}unselect(){this.div?.classList.remove("selectedEditor")}updateParams(a,l){}disableEditing(){}enableEditing(){}get propertiesToUpdate(){return{}}get contentDiv(){return this.div}get isEditing(){return this.#r}set isEditing(a){this.#r=a,a?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null)}}t.AnnotationEditor=o},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.KeyboardManager=t.CommandManager=t.ColorManager=t.AnnotationEditorUIManager=void 0,t.bindEvents=o,t.opacityToHex=s;var r=n(1),i=n(6);function o(d,h,m){for(let g of m)h.addEventListener(g,d[g].bind(d))}function s(d){return Math.round(Math.min(255,Math.max(1,255*d))).toString(16).padStart(2,"0")}class a{#e=0;getId(){return`${r.AnnotationEditorPrefix}${this.#e++}`}}class l{#e=[];#t=!1;#i;#r=-1;constructor(h=128){this.#i=h}add({cmd:h,undo:m,mustExec:g,type:b=NaN,overwriteIfSameType:v=!1,keepUndo:x=!1}){if(g&&h(),this.#t)return;let y={cmd:h,undo:m,type:b};if(this.#r===-1){this.#e.length>0&&(this.#e.length=0),this.#r=0,this.#e.push(y);return}if(v&&this.#e[this.#r].type===b){x&&(y.undo=this.#e[this.#r].undo),this.#e[this.#r]=y;return}let _=this.#r+1;_===this.#i?this.#e.splice(0,1):(this.#r=_,_<this.#e.length&&this.#e.splice(_)),this.#e.push(y)}undo(){this.#r!==-1&&(this.#t=!0,this.#e[this.#r].undo(),this.#t=!1,this.#r-=1)}redo(){this.#r<this.#e.length-1&&(this.#r+=1,this.#t=!0,this.#e[this.#r].cmd(),this.#t=!1)}hasSomethingToUndo(){return this.#r!==-1}hasSomethingToRedo(){return this.#r<this.#e.length-1}destroy(){this.#e=null}}t.CommandManager=l;class u{constructor(h){this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;let{isMac:m}=r.FeatureTest.platform;for(let[g,b]of h)for(let v of g){let x=v.startsWith("mac+");m&&x?(this.callbacks.set(v.slice(4),b),this.allKeys.add(v.split("+").at(-1))):!m&&!x&&(this.callbacks.set(v,b),this.allKeys.add(v.split("+").at(-1)))}}#e(h){h.altKey&&this.buffer.push("alt"),h.ctrlKey&&this.buffer.push("ctrl"),h.metaKey&&this.buffer.push("meta"),h.shiftKey&&this.buffer.push("shift"),this.buffer.push(h.key);let m=this.buffer.join("+");return this.buffer.length=0,m}exec(h,m){if(!this.allKeys.has(m.key))return;let g=this.callbacks.get(this.#e(m));!g||(g.bind(h)(),m.stopPropagation(),m.preventDefault())}}t.KeyboardManager=u;class c{static _colorsMapping=new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]);get _colors(){let h=new Map([["CanvasText",null],["Canvas",null]]);return(0,i.getColorValues)(h),(0,r.shadow)(this,"_colors",h)}convert(h){let m=(0,i.getRGB)(h);if(!window.matchMedia("(forced-colors: active)").matches)return m;for(let[g,b]of this._colors)if(b.every((v,x)=>v===m[x]))return c._colorsMapping.get(g);return m}getHexCode(h){let m=this._colors.get(h);return m?r.Util.makeHexColor(...m):h}}t.ColorManager=c;class f{#e=null;#t=new Map;#i=new Map;#r=null;#o=new l;#l=0;#u=null;#n=new Set;#s=null;#h=new a;#c=!1;#d=r.AnnotationEditorType.NONE;#a=new Set;#m=this.copy.bind(this);#k=this.cut.bind(this);#A=this.paste.bind(this);#C=this.keydown.bind(this);#S=this.onEditingAction.bind(this);#_=this.onPageChanging.bind(this);#O=this.onScaleChanging.bind(this);#E=this.onRotationChanging.bind(this);#M={isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1};#p=null;static _keyboardManager=new u([[["ctrl+a","mac+meta+a"],f.prototype.selectAll],[["ctrl+z","mac+meta+z"],f.prototype.undo],[["ctrl+y","ctrl+shift+Z","mac+meta+shift+Z"],f.prototype.redo],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete"],f.prototype.delete],[["Escape","mac+Escape"],f.prototype.unselectAll]]);constructor(h,m,g){this.#p=h,this.#s=m,this.#s._on("editingaction",this.#S),this.#s._on("pagechanging",this.#_),this.#s._on("scalechanging",this.#O),this.#s._on("rotationchanging",this.#E),this.#r=g,this.viewParameters={realScale:i.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:0}}destroy(){this.#y(),this.#s._off("editingaction",this.#S),this.#s._off("pagechanging",this.#_),this.#s._off("scalechanging",this.#O),this.#s._off("rotationchanging",this.#E);for(let h of this.#i.values())h.destroy();this.#i.clear(),this.#t.clear(),this.#n.clear(),this.#e=null,this.#a.clear(),this.#o.destroy()}onPageChanging({pageNumber:h}){this.#l=h-1}focusMainContainer(){this.#p.focus()}addShouldRescale(h){this.#n.add(h)}removeShouldRescale(h){this.#n.delete(h)}onScaleChanging({scale:h}){this.commitOrRemove(),this.viewParameters.realScale=h*i.PixelsPerInch.PDF_TO_CSS_UNITS;for(let m of this.#n)m.onScaleChanging()}onRotationChanging({pagesRotation:h}){this.commitOrRemove(),this.viewParameters.rotation=h}addToAnnotationStorage(h){!h.isEmpty()&&this.#r&&!this.#r.has(h.id)&&this.#r.setValue(h.id,h)}#B(){this.#p.addEventListener("keydown",this.#C)}#y(){this.#p.removeEventListener("keydown",this.#C)}#b(){document.addEventListener("copy",this.#m),document.addEventListener("cut",this.#k),document.addEventListener("paste",this.#A)}#v(){document.removeEventListener("copy",this.#m),document.removeEventListener("cut",this.#k),document.removeEventListener("paste",this.#A)}copy(h){if(h.preventDefault(),this.#e&&this.#e.commitOrRemove(),!this.hasSelection)return;let m=[];for(let g of this.#a)g.isEmpty()||m.push(g.serialize());m.length!==0&&h.clipboardData.setData("application/pdfjs",JSON.stringify(m))}cut(h){this.copy(h),this.delete()}paste(h){h.preventDefault();let m=h.clipboardData.getData("application/pdfjs");if(!m)return;try{m=JSON.parse(m)}catch(b){(0,r.warn)(`paste: "${b.message}".`);return}if(!Array.isArray(m))return;this.unselectAll();let g=this.#i.get(this.#l);try{let b=[];for(let y of m){let _=g.deserialize(y);if(!_)return;b.push(_)}let v=()=>{for(let y of b)this.#G(y);this.#w(b)},x=()=>{for(let y of b)y.remove()};this.addCommands({cmd:v,undo:x,mustExec:!0})}catch(b){(0,r.warn)(`paste: "${b.message}".`)}}keydown(h){this.getActive()?.shouldGetKeyboardEvents()||f._keyboardManager.exec(this,h)}onEditingAction(h){["undo","redo","delete","selectAll"].includes(h.name)&&this[h.name]()}#f(h){Object.entries(h).some(([g,b])=>this.#M[g]!==b)&&this.#s.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(this.#M,h)})}#g(h){this.#s.dispatch("annotationeditorparamschanged",{source:this,details:h})}setEditingState(h){h?(this.#B(),this.#b(),this.#f({isEditing:this.#d!==r.AnnotationEditorType.NONE,isEmpty:this.#x(),hasSomethingToUndo:this.#o.hasSomethingToUndo(),hasSomethingToRedo:this.#o.hasSomethingToRedo(),hasSelectedEditor:!1})):(this.#y(),this.#v(),this.#f({isEditing:!1}))}registerEditorTypes(h){if(!this.#u){this.#u=h;for(let m of this.#u)this.#g(m.defaultPropertiesToUpdate)}}getId(){return this.#h.getId()}get currentLayer(){return this.#i.get(this.#l)}get currentPageIndex(){return this.#l}addLayer(h){this.#i.set(h.pageIndex,h),this.#c?h.enable():h.disable()}removeLayer(h){this.#i.delete(h.pageIndex)}updateMode(h){if(this.#d=h,h===r.AnnotationEditorType.NONE)this.setEditingState(!1),this.#F();else{this.setEditingState(!0),this.#N();for(let m of this.#i.values())m.updateMode(h)}}updateToolbar(h){h!==this.#d&&this.#s.dispatch("switchannotationeditormode",{source:this,mode:h})}updateParams(h,m){if(!!this.#u){for(let g of this.#a)g.updateParams(h,m);for(let g of this.#u)g.updateDefaultParams(h,m)}}#N(){if(!this.#c){this.#c=!0;for(let h of this.#i.values())h.enable()}}#F(){if(this.unselectAll(),this.#c){this.#c=!1;for(let h of this.#i.values())h.disable()}}getEditors(h){let m=[];for(let g of this.#t.values())g.pageIndex===h&&m.push(g);return m}getEditor(h){return this.#t.get(h)}addEditor(h){this.#t.set(h.id,h)}removeEditor(h){this.#t.delete(h.id),this.unselect(h),this.#r?.remove(h.id)}#G(h){let m=this.#i.get(h.pageIndex);m?m.addOrRebuild(h):this.addEditor(h)}setActiveEditor(h){this.#e!==h&&(this.#e=h,h&&this.#g(h.propertiesToUpdate))}toggleSelected(h){if(this.#a.has(h)){this.#a.delete(h),h.unselect(),this.#f({hasSelectedEditor:this.hasSelection});return}this.#a.add(h),h.select(),this.#g(h.propertiesToUpdate),this.#f({hasSelectedEditor:!0})}setSelected(h){for(let m of this.#a)m!==h&&m.unselect();this.#a.clear(),this.#a.add(h),h.select(),this.#g(h.propertiesToUpdate),this.#f({hasSelectedEditor:!0})}isSelected(h){return this.#a.has(h)}unselect(h){h.unselect(),this.#a.delete(h),this.#f({hasSelectedEditor:this.hasSelection})}get hasSelection(){return this.#a.size!==0}undo(){this.#o.undo(),this.#f({hasSomethingToUndo:this.#o.hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:this.#x()})}redo(){this.#o.redo(),this.#f({hasSomethingToUndo:!0,hasSomethingToRedo:this.#o.hasSomethingToRedo(),isEmpty:this.#x()})}addCommands(h){this.#o.add(h),this.#f({hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:this.#x()})}#x(){if(this.#t.size===0)return!0;if(this.#t.size===1)for(let h of this.#t.values())return h.isEmpty();return!1}delete(){if(this.commitOrRemove(),!this.hasSelection)return;let h=[...this.#a],m=()=>{for(let b of h)b.remove()},g=()=>{for(let b of h)this.#G(b)};this.addCommands({cmd:m,undo:g,mustExec:!0})}commitOrRemove(){this.#e?.commitOrRemove()}#w(h){this.#a.clear();for(let m of h)m.isEmpty()||(this.#a.add(m),m.select());this.#f({hasSelectedEditor:!0})}selectAll(){for(let h of this.#a)h.commit();this.#w(this.#t.values())}unselectAll(){if(this.#e){this.#e.commitOrRemove();return}if(this.#a.size!==0){for(let h of this.#a)h.unselect();this.#a.clear(),this.#f({hasSelectedEditor:!1})}}isActive(h){return this.#e===h}getActive(){return this.#e}getMode(){return this.#d}}t.AnnotationEditorUIManager=f},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StatTimer=t.RenderingCancelledException=t.PixelsPerInch=t.PageViewport=t.PDFDateString=t.DOMStandardFontDataFactory=t.DOMSVGFactory=t.DOMCanvasFactory=t.DOMCMapReaderFactory=t.AnnotationPrefix=void 0,t.deprecated=k,t.getColorValues=J,t.getCurrentTransform=H,t.getCurrentTransformInverse=ee,t.getFilenameFromUrl=v,t.getPdfFilenameFromUrl=x,t.getRGB=W,t.getXfaPageViewport=I,t.isDataScheme=g,t.isPdfFile=b,t.isValidFetchUrl=_,t.loadScript=w,t.setLayerDimensions=j;var r=n(7),i=n(1);let o="http://www.w3.org/2000/svg",s="pdfjs_internal_id_";t.AnnotationPrefix=s;class a{static CSS=96;static PDF=72;static PDF_TO_CSS_UNITS=this.CSS/this.PDF}t.PixelsPerInch=a;class l extends r.BaseCanvasFactory{constructor({ownerDocument:B=globalThis.document}={}){super(),this._document=B}_createCanvas(B,N){let C=this._document.createElement("canvas");return C.width=B,C.height=N,C}}t.DOMCanvasFactory=l;async function u(V,B=!1){if(_(V,document.baseURI)){let N=await fetch(V);if(!N.ok)throw new Error(N.statusText);return B?new Uint8Array(await N.arrayBuffer()):(0,i.stringToBytes)(await N.text())}return new Promise((N,C)=>{let S=new XMLHttpRequest;S.open("GET",V,!0),B&&(S.responseType="arraybuffer"),S.onreadystatechange=()=>{if(S.readyState===XMLHttpRequest.DONE){if(S.status===200||S.status===0){let G;if(B&&S.response?G=new Uint8Array(S.response):!B&&S.responseText&&(G=(0,i.stringToBytes)(S.responseText)),G){N(G);return}}C(new Error(S.statusText))}},S.send(null)})}class c extends r.BaseCMapReaderFactory{_fetchData(B,N){return u(B,this.isCompressed).then(C=>({cMapData:C,compressionType:N}))}}t.DOMCMapReaderFactory=c;class f extends r.BaseStandardFontDataFactory{_fetchData(B){return u(B,!0)}}t.DOMStandardFontDataFactory=f;class d extends r.BaseSVGFactory{_createSVG(B){return document.createElementNS(o,B)}}t.DOMSVGFactory=d;class h{constructor({viewBox:B,scale:N,rotation:C,offsetX:S=0,offsetY:G=0,dontFlip:T=!1}){this.viewBox=B,this.scale=N,this.rotation=C,this.offsetX=S,this.offsetY=G;let Q=(B[2]+B[0])/2,U=(B[3]+B[1])/2,F,D,L,$;switch(C%=360,C<0&&(C+=360),C){case 180:F=-1,D=0,L=0,$=1;break;case 90:F=0,D=1,L=1,$=0;break;case 270:F=0,D=-1,L=-1,$=0;break;case 0:F=1,D=0,L=0,$=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}T&&(L=-L,$=-$);let Z,se,Y,ue;F===0?(Z=Math.abs(U-B[1])*N+S,se=Math.abs(Q-B[0])*N+G,Y=(B[3]-B[1])*N,ue=(B[2]-B[0])*N):(Z=Math.abs(Q-B[0])*N+S,se=Math.abs(U-B[1])*N+G,Y=(B[2]-B[0])*N,ue=(B[3]-B[1])*N),this.transform=[F*N,D*N,L*N,$*N,Z-F*N*Q-L*N*U,se-D*N*Q-$*N*U],this.width=Y,this.height=ue}get rawDims(){let{viewBox:B}=this;return(0,i.shadow)(this,"rawDims",{pageWidth:B[2]-B[0],pageHeight:B[3]-B[1],pageX:B[0],pageY:B[1]})}clone({scale:B=this.scale,rotation:N=this.rotation,offsetX:C=this.offsetX,offsetY:S=this.offsetY,dontFlip:G=!1}={}){return new h({viewBox:this.viewBox.slice(),scale:B,rotation:N,offsetX:C,offsetY:S,dontFlip:G})}convertToViewportPoint(B,N){return i.Util.applyTransform([B,N],this.transform)}convertToViewportRectangle(B){let N=i.Util.applyTransform([B[0],B[1]],this.transform),C=i.Util.applyTransform([B[2],B[3]],this.transform);return[N[0],N[1],C[0],C[1]]}convertToPdfPoint(B,N){return i.Util.applyInverseTransform([B,N],this.transform)}}t.PageViewport=h;class m extends i.BaseException{constructor(B,N,C=0){super(B,"RenderingCancelledException"),this.type=N,this.extraDelay=C}}t.RenderingCancelledException=m;function g(V){let B=V.length,N=0;for(;N<B&&V[N].trim()==="";)N++;return V.substring(N,N+5).toLowerCase()==="data:"}function b(V){return typeof V=="string"&&/\.pdf$/i.test(V)}function v(V,B=!1){return B||([V]=V.split(/[#?]/,1)),V.substring(V.lastIndexOf("/")+1)}function x(V,B="document.pdf"){if(typeof V!="string")return B;if(g(V))return(0,i.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),B;let N=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,C=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,S=N.exec(V),G=C.exec(S[1])||C.exec(S[2])||C.exec(S[3]);if(G&&(G=G[0],G.includes("%")))try{G=C.exec(decodeURIComponent(G))[0]}catch{}return G||B}class y{started=Object.create(null);times=[];time(B){B in this.started&&(0,i.warn)(`Timer is already running for ${B}`),this.started[B]=Date.now()}timeEnd(B){B in this.started||(0,i.warn)(`Timer has not been started for ${B}`),this.times.push({name:B,start:this.started[B],end:Date.now()}),delete this.started[B]}toString(){let B=[],N=0;for(let{name:C}of this.times)N=Math.max(C.length,N);for(let{name:C,start:S,end:G}of this.times)B.push(`${C.padEnd(N)} ${G-S}ms
`);return B.join("")}}t.StatTimer=y;function _(V,B){try{let{protocol:N}=B?new URL(V,B):new URL(V);return N==="http:"||N==="https:"}catch{return!1}}function w(V,B=!1){return new Promise((N,C)=>{let S=document.createElement("script");S.src=V,S.onload=function(G){B&&S.remove(),N(G)},S.onerror=function(){C(new Error(`Cannot load script at: ${S.src}`))},(document.head||document.documentElement).append(S)})}function k(V){console.log("Deprecated API usage: "+V)}let O;class M{static toDateObject(B){if(!B||typeof B!="string")return null;O||(O=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));let N=O.exec(B);if(!N)return null;let C=parseInt(N[1],10),S=parseInt(N[2],10);S=S>=1&&S<=12?S-1:0;let G=parseInt(N[3],10);G=G>=1&&G<=31?G:1;let T=parseInt(N[4],10);T=T>=0&&T<=23?T:0;let Q=parseInt(N[5],10);Q=Q>=0&&Q<=59?Q:0;let U=parseInt(N[6],10);U=U>=0&&U<=59?U:0;let F=N[7]||"Z",D=parseInt(N[8],10);D=D>=0&&D<=23?D:0;let L=parseInt(N[9],10)||0;return L=L>=0&&L<=59?L:0,F==="-"?(T+=D,Q+=L):F==="+"&&(T-=D,Q-=L),new Date(Date.UTC(C,S,G,T,Q,U))}}t.PDFDateString=M;function I(V,{scale:B=1,rotation:N=0}){let{width:C,height:S}=V.attributes.style,G=[0,0,parseInt(C),parseInt(S)];return new h({viewBox:G,scale:B,rotation:N})}function W(V){if(V.startsWith("#")){let B=parseInt(V.slice(1),16);return[(B&16711680)>>16,(B&65280)>>8,B&255]}return V.startsWith("rgb(")?V.slice(4,-1).split(",").map(B=>parseInt(B)):V.startsWith("rgba(")?V.slice(5,-1).split(",").map(B=>parseInt(B)).slice(0,3):((0,i.warn)(`Not a valid color format: "${V}"`),[0,0,0])}function J(V){let B=document.createElement("span");B.style.visibility="hidden",document.body.append(B);for(let N of V.keys()){B.style.color=N;let C=window.getComputedStyle(B).color;V.set(N,W(C))}B.remove()}function H(V){let{a:B,b:N,c:C,d:S,e:G,f:T}=V.getTransform();return[B,N,C,S,G,T]}function ee(V){let{a:B,b:N,c:C,d:S,e:G,f:T}=V.getTransform().invertSelf();return[B,N,C,S,G,T]}function j(V,B,N=!1,C=!0){if(B instanceof h){let{pageWidth:S,pageHeight:G}=B.rawDims,{style:T}=V,Q=`calc(var(--scale-factor) * ${S}px)`,U=`calc(var(--scale-factor) * ${G}px)`;!N||B.rotation%180===0?(T.width=Q,T.height=U):(T.width=U,T.height=Q)}C&&V.setAttribute("data-main-rotation",B.rotation)}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseStandardFontDataFactory=t.BaseSVGFactory=t.BaseCanvasFactory=t.BaseCMapReaderFactory=void 0;var r=n(1);class i{constructor(){this.constructor===i&&(0,r.unreachable)("Cannot initialize BaseCanvasFactory.")}create(u,c){if(u<=0||c<=0)throw new Error("Invalid canvas size");let f=this._createCanvas(u,c);return{canvas:f,context:f.getContext("2d")}}reset(u,c,f){if(!u.canvas)throw new Error("Canvas is not specified");if(c<=0||f<=0)throw new Error("Invalid canvas size");u.canvas.width=c,u.canvas.height=f}destroy(u){if(!u.canvas)throw new Error("Canvas is not specified");u.canvas.width=0,u.canvas.height=0,u.canvas=null,u.context=null}_createCanvas(u,c){(0,r.unreachable)("Abstract method `_createCanvas` called.")}}t.BaseCanvasFactory=i;class o{constructor({baseUrl:u=null,isCompressed:c=!0}){this.constructor===o&&(0,r.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=u,this.isCompressed=c}async fetch({name:u}){if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!u)throw new Error("CMap name must be specified.");let c=this.baseUrl+u+(this.isCompressed?".bcmap":""),f=this.isCompressed?r.CMapCompressionType.BINARY:r.CMapCompressionType.NONE;return this._fetchData(c,f).catch(d=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${c}`)})}_fetchData(u,c){(0,r.unreachable)("Abstract method `_fetchData` called.")}}t.BaseCMapReaderFactory=o;class s{constructor({baseUrl:u=null}){this.constructor===s&&(0,r.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=u}async fetch({filename:u}){if(!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!u)throw new Error("Font filename must be specified.");let c=`${this.baseUrl}${u}`;return this._fetchData(c).catch(f=>{throw new Error(`Unable to load font data at: ${c}`)})}_fetchData(u){(0,r.unreachable)("Abstract method `_fetchData` called.")}}t.BaseStandardFontDataFactory=s;class a{constructor(){this.constructor===a&&(0,r.unreachable)("Cannot initialize BaseSVGFactory.")}create(u,c,f=!1){if(u<=0||c<=0)throw new Error("Invalid SVG dimensions");let d=this._createSVG("svg:svg");return d.setAttribute("version","1.1"),f||(d.setAttribute("width",`${u}px`),d.setAttribute("height",`${c}px`)),d.setAttribute("preserveAspectRatio","none"),d.setAttribute("viewBox",`0 0 ${u} ${c}`),d}createElement(u){if(typeof u!="string")throw new Error("Invalid SVG element type");return this._createSVG(u)}_createSVG(u){(0,r.unreachable)("Abstract method `_createSVG` called.")}}t.BaseSVGFactory=a},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0;var r=n(1);let i=3285377520,o=4294901760,s=65535;class a{constructor(u){this.h1=u?u&4294967295:i,this.h2=u?u&4294967295:i}update(u){let c,f;if(typeof u=="string"){c=new Uint8Array(u.length*2),f=0;for(let O=0,M=u.length;O<M;O++){let I=u.charCodeAt(O);I<=255?c[f++]=I:(c[f++]=I>>>8,c[f++]=I&255)}}else if((0,r.isArrayBuffer)(u))c=u.slice(),f=c.byteLength;else throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");let d=f>>2,h=f-d*4,m=new Uint32Array(c.buffer,0,d),g=0,b=0,v=this.h1,x=this.h2,y=3432918353,_=461845907,w=y&s,k=_&s;for(let O=0;O<d;O++)O&1?(g=m[O],g=g*y&o|g*w&s,g=g<<15|g>>>17,g=g*_&o|g*k&s,v^=g,v=v<<13|v>>>19,v=v*5+3864292196):(b=m[O],b=b*y&o|b*w&s,b=b<<15|b>>>17,b=b*_&o|b*k&s,x^=b,x=x<<13|x>>>19,x=x*5+3864292196);switch(g=0,h){case 3:g^=c[d*4+2]<<16;case 2:g^=c[d*4+1]<<8;case 1:g^=c[d*4],g=g*y&o|g*w&s,g=g<<15|g>>>17,g=g*_&o|g*k&s,d&1?v^=g:x^=g}this.h1=v,this.h2=x}hexdigest(){let u=this.h1,c=this.h2;return u^=c>>>1,u=u*3981806797&o|u*36045&s,c=c*4283543511&o|((c<<16|u>>>16)*2950163797&o)>>>16,u^=c>>>1,u=u*444984403&o|u*60499&s,c=c*3301882366&o|((c<<16|u>>>16)*3120437893&o)>>>16,u^=c>>>1,(u>>>0).toString(16).padStart(8,"0")+(c>>>0).toString(16).padStart(8,"0")}}t.MurmurHash3_64=a},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var r=n(1),i=n(10);class o{constructor({onUnsupportedFeature:l,ownerDocument:u=globalThis.document,styleElement:c=null}){this._onUnsupportedFeature=l,this._document=u,this.nativeFontFaces=[],this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(l){this.nativeFontFaces.push(l),this._document.fonts.add(l)}insertRule(l){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));let u=this.styleElement.sheet;u.insertRule(l,u.cssRules.length)}clear(){for(let l of this.nativeFontFaces)this._document.fonts.delete(l);this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async bind(l){if(l.attached||l.missingFile)return;if(l.attached=!0,this.isFontLoadingAPISupported){let c=l.createNativeFontFace();if(c){this.addNativeFontFace(c);try{await c.loaded}catch(f){throw this._onUnsupportedFeature({featureId:r.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,r.warn)(`Failed to load font '${c.family}': '${f}'.`),l.disableFontFace=!0,f}}return}let u=l.createFontFaceRule();if(u){if(this.insertRule(u),this.isSyncFontLoadingSupported)return;await new Promise(c=>{let f=this._queueLoadingCallback(c);this._prepareFontLoadEvent(l,f)})}}get isFontLoadingAPISupported(){let l=!!this._document?.fonts;return(0,r.shadow)(this,"isFontLoadingAPISupported",l)}get isSyncFontLoadingSupported(){let l=!1;return(i.isNodeJS||typeof navigator<"u"&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(l=!0),(0,r.shadow)(this,"isSyncFontLoadingSupported",l)}_queueLoadingCallback(l){function u(){for((0,r.assert)(!f.done,"completeRequest() cannot be called twice."),f.done=!0;c.length>0&&c[0].done;){let d=c.shift();setTimeout(d.callback,0)}}let{loadingRequests:c}=this,f={done:!1,complete:u,callback:l};return c.push(f),f}get _loadTestFont(){let l=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return(0,r.shadow)(this,"_loadTestFont",l)}_prepareFontLoadEvent(l,u){function c(J,H){return J.charCodeAt(H)<<24|J.charCodeAt(H+1)<<16|J.charCodeAt(H+2)<<8|J.charCodeAt(H+3)&255}function f(J,H,ee,j){let V=J.substring(0,H),B=J.substring(H+ee);return V+j+B}let d,h,m=this._document.createElement("canvas");m.width=1,m.height=1;let g=m.getContext("2d"),b=0;function v(J,H){if(++b>30){(0,r.warn)("Load test font never loaded."),H();return}if(g.font="30px "+J,g.fillText(".",0,20),g.getImageData(0,0,1,1).data[3]>0){H();return}setTimeout(v.bind(null,J,H))}let x=`lt${Date.now()}${this.loadTestFontId++}`,y=this._loadTestFont;y=f(y,976,x.length,x);let w=16,k=1482184792,O=c(y,w);for(d=0,h=x.length-3;d<h;d+=4)O=O-k+c(x,d)|0;d<x.length&&(O=O-k+c(x+"XXX",d)|0),y=f(y,w,4,(0,r.string32)(O));let M=`url(data:font/opentype;base64,${btoa(y)});`,I=`@font-face {font-family:"${x}";src:${M}}`;this.insertRule(I);let W=this._document.createElement("div");W.style.visibility="hidden",W.style.width=W.style.height="10px",W.style.position="absolute",W.style.top=W.style.left="0px";for(let J of[l.loadedName,x]){let H=this._document.createElement("span");H.textContent="Hi",H.style.fontFamily=J,W.append(H)}this._document.body.append(W),v(x,()=>{W.remove(),u.complete()})}}t.FontLoader=o;class s{constructor(l,{isEvalSupported:u=!0,disableFontFace:c=!1,ignoreErrors:f=!1,onUnsupportedFeature:d,fontRegistry:h=null}){this.compiledGlyphs=Object.create(null);for(let m in l)this[m]=l[m];this.isEvalSupported=u!==!1,this.disableFontFace=c===!0,this.ignoreErrors=f===!0,this._onUnsupportedFeature=d,this.fontRegistry=h}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let l;if(!this.cssFontInfo)l=new FontFace(this.loadedName,this.data,{});else{let u={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(u.style=`oblique ${this.cssFontInfo.italicAngle}deg`),l=new FontFace(this.cssFontInfo.fontFamily,this.data,u)}return this.fontRegistry?.registerFont(this),l}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;let l=(0,r.bytesToString)(this.data),u=`url(data:${this.mimetype};base64,${btoa(l)});`,c;if(!this.cssFontInfo)c=`@font-face {font-family:"${this.loadedName}";src:${u}}`;else{let f=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(f+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),c=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${f}src:${u}}`}return this.fontRegistry?.registerFont(this,u),c}getPathGenerator(l,u){if(this.compiledGlyphs[u]!==void 0)return this.compiledGlyphs[u];let c;try{c=l.get(this.loadedName+"_path_"+u)}catch(f){if(!this.ignoreErrors)throw f;return this._onUnsupportedFeature({featureId:r.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,r.warn)(`getPathGenerator - ignoring character: "${f}".`),this.compiledGlyphs[u]=function(d,h){}}if(this.isEvalSupported&&r.FeatureTest.isEvalSupported){let f=[];for(let d of c){let h=d.args!==void 0?d.args.join(","):"";f.push("c.",d.cmd,"(",h,`);
`)}return this.compiledGlyphs[u]=new Function("c","size",f.join(""))}return this.compiledGlyphs[u]=function(f,d){for(let h of c)h.cmd==="scale"&&(h.args=[d,-d]),f[h.cmd].apply(f,h.args)}}}t.FontFaceObject=s},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void 0;let n=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser");t.isNodeJS=n},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0;var r=n(1),i=n(6),o=n(12),s=n(13);let a=16,l=100,u=4096,c=15,f=10,d=1e3,h=16;function m(C,S){if(C._removeMirroring)throw new Error("Context is already forwarding operations.");C.__originalSave=C.save,C.__originalRestore=C.restore,C.__originalRotate=C.rotate,C.__originalScale=C.scale,C.__originalTranslate=C.translate,C.__originalTransform=C.transform,C.__originalSetTransform=C.setTransform,C.__originalResetTransform=C.resetTransform,C.__originalClip=C.clip,C.__originalMoveTo=C.moveTo,C.__originalLineTo=C.lineTo,C.__originalBezierCurveTo=C.bezierCurveTo,C.__originalRect=C.rect,C.__originalClosePath=C.closePath,C.__originalBeginPath=C.beginPath,C._removeMirroring=()=>{C.save=C.__originalSave,C.restore=C.__originalRestore,C.rotate=C.__originalRotate,C.scale=C.__originalScale,C.translate=C.__originalTranslate,C.transform=C.__originalTransform,C.setTransform=C.__originalSetTransform,C.resetTransform=C.__originalResetTransform,C.clip=C.__originalClip,C.moveTo=C.__originalMoveTo,C.lineTo=C.__originalLineTo,C.bezierCurveTo=C.__originalBezierCurveTo,C.rect=C.__originalRect,C.closePath=C.__originalClosePath,C.beginPath=C.__originalBeginPath,delete C._removeMirroring},C.save=function(){S.save(),this.__originalSave()},C.restore=function(){S.restore(),this.__originalRestore()},C.translate=function(T,Q){S.translate(T,Q),this.__originalTranslate(T,Q)},C.scale=function(T,Q){S.scale(T,Q),this.__originalScale(T,Q)},C.transform=function(T,Q,U,F,D,L){S.transform(T,Q,U,F,D,L),this.__originalTransform(T,Q,U,F,D,L)},C.setTransform=function(T,Q,U,F,D,L){S.setTransform(T,Q,U,F,D,L),this.__originalSetTransform(T,Q,U,F,D,L)},C.resetTransform=function(){S.resetTransform(),this.__originalResetTransform()},C.rotate=function(T){S.rotate(T),this.__originalRotate(T)},C.clip=function(T){S.clip(T),this.__originalClip(T)},C.moveTo=function(G,T){S.moveTo(G,T),this.__originalMoveTo(G,T)},C.lineTo=function(G,T){S.lineTo(G,T),this.__originalLineTo(G,T)},C.bezierCurveTo=function(G,T,Q,U,F,D){S.bezierCurveTo(G,T,Q,U,F,D),this.__originalBezierCurveTo(G,T,Q,U,F,D)},C.rect=function(G,T,Q,U){S.rect(G,T,Q,U),this.__originalRect(G,T,Q,U)},C.closePath=function(){S.closePath(),this.__originalClosePath()},C.beginPath=function(){S.beginPath(),this.__originalBeginPath()}}class g{constructor(S){this.canvasFactory=S,this.cache=Object.create(null)}getCanvas(S,G,T){let Q;return this.cache[S]!==void 0?(Q=this.cache[S],this.canvasFactory.reset(Q,G,T)):(Q=this.canvasFactory.create(G,T),this.cache[S]=Q),Q}delete(S){delete this.cache[S]}clear(){for(let S in this.cache){let G=this.cache[S];this.canvasFactory.destroy(G),delete this.cache[S]}}}function b(C,S,G,T,Q,U,F,D,L,$){let[Z,se,Y,ue,pe,oe]=(0,i.getCurrentTransform)(C);if(se===0&&Y===0){let Ae=F*Z+pe,Ce=Math.round(Ae),Ge=D*ue+oe,Ee=Math.round(Ge),Ne=(F+L)*Z+pe,De=Math.abs(Math.round(Ne)-Ce)||1,Ue=(D+$)*ue+oe,Re=Math.abs(Math.round(Ue)-Ee)||1;return C.setTransform(Math.sign(Z),0,0,Math.sign(ue),Ce,Ee),C.drawImage(S,G,T,Q,U,0,0,De,Re),C.setTransform(Z,se,Y,ue,pe,oe),[De,Re]}if(Z===0&&ue===0){let Ae=D*Y+pe,Ce=Math.round(Ae),Ge=F*se+oe,Ee=Math.round(Ge),Ne=(D+$)*Y+pe,De=Math.abs(Math.round(Ne)-Ce)||1,Ue=(F+L)*se+oe,Re=Math.abs(Math.round(Ue)-Ee)||1;return C.setTransform(0,Math.sign(se),Math.sign(Y),0,Ce,Ee),C.drawImage(S,G,T,Q,U,0,0,Re,De),C.setTransform(Z,se,Y,ue,pe,oe),[Re,De]}C.drawImage(S,G,T,Q,U,F,D,L,$);let de=Math.hypot(Z,se),ve=Math.hypot(Y,ue);return[de*L,ve*$]}function v(C){let{width:S,height:G}=C;if(S>d||G>d)return null;let T=1e3,Q=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),U=S+1,F=new Uint8Array(U*(G+1)),D,L,$,Z=S+7&-8,se=new Uint8Array(Z*G),Y=0;for(let ve of C.data){let Ae=128;for(;Ae>0;)se[Y++]=ve&Ae?0:255,Ae>>=1}let ue=0;for(Y=0,se[Y]!==0&&(F[0]=1,++ue),L=1;L<S;L++)se[Y]!==se[Y+1]&&(F[L]=se[Y]?2:1,++ue),Y++;for(se[Y]!==0&&(F[L]=2,++ue),D=1;D<G;D++){Y=D*Z,$=D*U,se[Y-Z]!==se[Y]&&(F[$]=se[Y]?1:8,++ue);let ve=(se[Y]?4:0)+(se[Y-Z]?8:0);for(L=1;L<S;L++)ve=(ve>>2)+(se[Y+1]?4:0)+(se[Y-Z+1]?8:0),Q[ve]&&(F[$+L]=Q[ve],++ue),Y++;if(se[Y-Z]!==se[Y]&&(F[$+L]=se[Y]?2:4,++ue),ue>T)return null}for(Y=Z*(G-1),$=D*U,se[Y]!==0&&(F[$]=8,++ue),L=1;L<S;L++)se[Y]!==se[Y+1]&&(F[$+L]=se[Y]?4:8,++ue),Y++;if(se[Y]!==0&&(F[$+L]=4,++ue),ue>T)return null;let pe=new Int32Array([0,U,-1,0,-U,0,0,0,1]),oe=new Path2D;for(D=0;ue&&D<=G;D++){let ve=D*U,Ae=ve+S;for(;ve<Ae&&!F[ve];)ve++;if(ve===Ae)continue;oe.moveTo(ve%U,D);let Ce=ve,Ge=F[ve];do{let Ee=pe[Ge];do ve+=Ee;while(!F[ve]);let Ne=F[ve];Ne!==5&&Ne!==10?(Ge=Ne,F[ve]=0):(Ge=Ne&51*Ge>>4,F[ve]&=Ge>>2|Ge<<2),oe.lineTo(ve%U,ve/U|0),F[ve]||--ue}while(Ce!==ve);--D}return se=null,F=null,function(ve){ve.save(),ve.scale(1/S,-1/G),ve.translate(0,-G),ve.fill(oe),ve.beginPath(),ve.restore()}}class x{constructor(S,G){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=r.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=r.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=r.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps=null,this.startNewPathAndClipBox([0,0,S,G])}clone(){let S=Object.create(this);return S.clipBox=this.clipBox.slice(),S}setCurrentPoint(S,G){this.x=S,this.y=G}updatePathMinMax(S,G,T){[G,T]=r.Util.applyTransform([G,T],S),this.minX=Math.min(this.minX,G),this.minY=Math.min(this.minY,T),this.maxX=Math.max(this.maxX,G),this.maxY=Math.max(this.maxY,T)}updateRectMinMax(S,G){let T=r.Util.applyTransform(G,S),Q=r.Util.applyTransform(G.slice(2),S);this.minX=Math.min(this.minX,T[0],Q[0]),this.minY=Math.min(this.minY,T[1],Q[1]),this.maxX=Math.max(this.maxX,T[0],Q[0]),this.maxY=Math.max(this.maxY,T[1],Q[1])}updateScalingPathMinMax(S,G){r.Util.scaleMinMax(S,G),this.minX=Math.min(this.minX,G[0]),this.maxX=Math.max(this.maxX,G[1]),this.minY=Math.min(this.minY,G[2]),this.maxY=Math.max(this.maxY,G[3])}updateCurvePathMinMax(S,G,T,Q,U,F,D,L,$,Z){let se=r.Util.bezierBoundingBox(G,T,Q,U,F,D,L,$);if(Z){Z[0]=Math.min(Z[0],se[0],se[2]),Z[1]=Math.max(Z[1],se[0],se[2]),Z[2]=Math.min(Z[2],se[1],se[3]),Z[3]=Math.max(Z[3],se[1],se[3]);return}this.updateRectMinMax(S,se)}getPathBoundingBox(S=o.PathType.FILL,G=null){let T=[this.minX,this.minY,this.maxX,this.maxY];if(S===o.PathType.STROKE){G||(0,r.unreachable)("Stroke bounding box must include transform.");let Q=r.Util.singularValueDecompose2dScale(G),U=Q[0]*this.lineWidth/2,F=Q[1]*this.lineWidth/2;T[0]-=U,T[1]-=F,T[2]+=U,T[3]+=F}return T}updateClipFromPath(){let S=r.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(S||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(S){this.clipBox=S,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(S=o.PathType.FILL,G=null){return r.Util.intersect(this.clipBox,this.getPathBoundingBox(S,G))}}function y(C,S,G=null){if(typeof ImageData<"u"&&S instanceof ImageData){C.putImageData(S,0,0);return}let T=S.height,Q=S.width,U=T%h,F=(T-U)/h,D=U===0?F:F+1,L=C.createImageData(Q,h),$=0,Z,se=S.data,Y=L.data,ue,pe,oe,de,ve,Ae,Ce,Ge;if(G)switch(G.length){case 1:ve=G[0],Ae=G[0],Ce=G[0],Ge=G[0];break;case 4:ve=G[0],Ae=G[1],Ce=G[2],Ge=G[3];break}if(S.kind===r.ImageKind.GRAYSCALE_1BPP){let Ee=se.byteLength,Ne=new Uint32Array(Y.buffer,0,Y.byteLength>>2),De=Ne.length,Ue=Q+7>>3,Re=4294967295,je=r.FeatureTest.isLittleEndian?4278190080:255;for(Ge&&Ge[0]===255&&Ge[255]===0&&([Re,je]=[je,Re]),ue=0;ue<D;ue++){for(oe=ue<F?h:U,Z=0,pe=0;pe<oe;pe++){let $e=Ee-$,Le=0,Xe=$e>Ue?Q:$e*8-7,mt=Xe&-8,fe=0,be=0;for(;Le<mt;Le+=8)be=se[$++],Ne[Z++]=be&128?Re:je,Ne[Z++]=be&64?Re:je,Ne[Z++]=be&32?Re:je,Ne[Z++]=be&16?Re:je,Ne[Z++]=be&8?Re:je,Ne[Z++]=be&4?Re:je,Ne[Z++]=be&2?Re:je,Ne[Z++]=be&1?Re:je;for(;Le<Xe;Le++)fe===0&&(be=se[$++],fe=128),Ne[Z++]=be&fe?Re:je,fe>>=1}for(;Z<De;)Ne[Z++]=0;C.putImageData(L,0,ue*h)}}else if(S.kind===r.ImageKind.RGBA_32BPP){let Ee=!!(ve||Ae||Ce);for(pe=0,de=Q*h*4,ue=0;ue<F;ue++){if(Y.set(se.subarray($,$+de)),$+=de,Ee)for(let Ne=0;Ne<de;Ne+=4)ve&&(Y[Ne+0]=ve[Y[Ne+0]]),Ae&&(Y[Ne+1]=Ae[Y[Ne+1]]),Ce&&(Y[Ne+2]=Ce[Y[Ne+2]]);C.putImageData(L,0,pe),pe+=h}if(ue<D){if(de=Q*U*4,Y.set(se.subarray($,$+de)),Ee)for(let Ne=0;Ne<de;Ne+=4)ve&&(Y[Ne+0]=ve[Y[Ne+0]]),Ae&&(Y[Ne+1]=Ae[Y[Ne+1]]),Ce&&(Y[Ne+2]=Ce[Y[Ne+2]]);C.putImageData(L,0,pe)}}else if(S.kind===r.ImageKind.RGB_24BPP){let Ee=!!(ve||Ae||Ce);for(oe=h,de=Q*oe,ue=0;ue<D;ue++){for(ue>=F&&(oe=U,de=Q*oe),Z=0,pe=de;pe--;)Y[Z++]=se[$++],Y[Z++]=se[$++],Y[Z++]=se[$++],Y[Z++]=255;if(Ee)for(let Ne=0;Ne<Z;Ne+=4)ve&&(Y[Ne+0]=ve[Y[Ne+0]]),Ae&&(Y[Ne+1]=Ae[Y[Ne+1]]),Ce&&(Y[Ne+2]=Ce[Y[Ne+2]]);C.putImageData(L,0,ue*h)}}else throw new Error(`bad image kind: ${S.kind}`)}function _(C,S){if(S.bitmap){C.drawImage(S.bitmap,0,0);return}let G=S.height,T=S.width,Q=G%h,U=(G-Q)/h,F=Q===0?U:U+1,D=C.createImageData(T,h),L=0,$=S.data,Z=D.data;for(let se=0;se<F;se++){let Y=se<U?h:Q;({srcPos:L}=(0,s.applyMaskImageData)({src:$,srcPos:L,dest:Z,width:T,height:Y})),C.putImageData(D,0,se*h)}}function w(C,S){let G=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"];for(let T of G)C[T]!==void 0&&(S[T]=C[T]);C.setLineDash!==void 0&&(S.setLineDash(C.getLineDash()),S.lineDashOffset=C.lineDashOffset)}function k(C,S){C.strokeStyle=C.fillStyle=S||"#000000",C.fillRule="nonzero",C.globalAlpha=1,C.lineWidth=1,C.lineCap="butt",C.lineJoin="miter",C.miterLimit=10,C.globalCompositeOperation="source-over",C.font="10px sans-serif",C.setLineDash!==void 0&&(C.setLineDash([]),C.lineDashOffset=0)}function O(C,S,G,T){let Q=C.length;for(let U=3;U<Q;U+=4){let F=C[U];if(F===0)C[U-3]=S,C[U-2]=G,C[U-1]=T;else if(F<255){let D=255-F;C[U-3]=C[U-3]*F+S*D>>8,C[U-2]=C[U-2]*F+G*D>>8,C[U-1]=C[U-1]*F+T*D>>8}}}function M(C,S,G){let T=C.length,Q=1/255;for(let U=3;U<T;U+=4){let F=G?G[C[U]]:C[U];S[U]=S[U]*F*Q|0}}function I(C,S,G){let T=C.length;for(let Q=3;Q<T;Q+=4){let U=C[Q-3]*77+C[Q-2]*152+C[Q-1]*28;S[Q]=G?S[Q]*G[U>>8]>>8:S[Q]*U>>16}}function W(C,S,G,T,Q,U,F,D,L,$,Z){let se=!!U,Y=se?U[0]:0,ue=se?U[1]:0,pe=se?U[2]:0,oe;Q==="Luminosity"?oe=I:oe=M;let ve=Math.min(T,Math.ceil(1048576/G));for(let Ae=0;Ae<T;Ae+=ve){let Ce=Math.min(ve,T-Ae),Ge=C.getImageData(D-$,Ae+(L-Z),G,Ce),Ee=S.getImageData(D,Ae+L,G,Ce);se&&O(Ge.data,Y,ue,pe),oe(Ge.data,Ee.data,F),S.putImageData(Ee,D,Ae+L)}}function J(C,S,G,T){let Q=T[0],U=T[1],F=T[2]-Q,D=T[3]-U;F===0||D===0||(W(S.context,G,F,D,S.subtype,S.backdrop,S.transferMap,Q,U,S.offsetX,S.offsetY),C.save(),C.globalAlpha=1,C.globalCompositeOperation="source-over",C.setTransform(1,0,0,1,0,0),C.drawImage(G.canvas,0,0),C.restore())}function H(C,S){let G=r.Util.singularValueDecompose2dScale(C);G[0]=Math.fround(G[0]),G[1]=Math.fround(G[1]);let T=Math.fround((globalThis.devicePixelRatio||1)*i.PixelsPerInch.PDF_TO_CSS_UNITS);return S!==void 0?S:G[0]<=T||G[1]<=T}let ee=["butt","round","square"],j=["miter","round","bevel"],V={},B={};class N{constructor(S,G,T,Q,{optionalContentConfig:U,markedContentStack:F=null},D,L){this.ctx=S,this.current=new x(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=G,this.objs=T,this.canvasFactory=Q,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=F||[],this.optionalContentConfig=U,this.cachedCanvases=new g(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=D,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.backgroundColor=L?.background||null,this.foregroundColor=L?.foreground||null,this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(S,G=null){return typeof S=="string"?S.startsWith("g_")?this.commonObjs.get(S):this.objs.get(S):G}beginDrawing({transform:S,viewport:G,transparency:T=!1,background:Q=null}){let U=this.ctx.canvas.width,F=this.ctx.canvas.height,D=Q||"#ffffff";if(this.ctx.save(),this.foregroundColor&&this.backgroundColor){this.ctx.fillStyle=this.foregroundColor;let L=this.foregroundColor=this.ctx.fillStyle;this.ctx.fillStyle=this.backgroundColor;let $=this.backgroundColor=this.ctx.fillStyle,Z=!0,se=D;if(this.ctx.fillStyle=D,se=this.ctx.fillStyle,Z=typeof se=="string"&&/^#[0-9A-Fa-f]{6}$/.test(se),L==="#000000"&&$==="#ffffff"||L===$||!Z)this.foregroundColor=this.backgroundColor=null;else{let[Y,ue,pe]=(0,i.getRGB)(se),oe=ve=>(ve/=255,ve<=.03928?ve/12.92:((ve+.055)/1.055)**2.4),de=Math.round(.2126*oe(Y)+.7152*oe(ue)+.0722*oe(pe));this.selectColor=(ve,Ae,Ce)=>{let Ge=.2126*oe(ve)+.7152*oe(Ae)+.0722*oe(Ce);return Math.round(Ge)===de?$:L}}}if(this.ctx.fillStyle=this.backgroundColor||D,this.ctx.fillRect(0,0,U,F),this.ctx.restore(),T){let L=this.cachedCanvases.getCanvas("transparent",U,F);this.compositeCtx=this.ctx,this.transparentCanvas=L.canvas,this.ctx=L.context,this.ctx.save(),this.ctx.transform(...(0,i.getCurrentTransform)(this.compositeCtx))}this.ctx.save(),k(this.ctx,this.foregroundColor),S&&(this.ctx.transform(...S),this.outputScaleX=S[0],this.outputScaleY=S[0]),this.ctx.transform(...G.transform),this.viewportScale=G.scale,this.baseTransform=(0,i.getCurrentTransform)(this.ctx)}executeOperatorList(S,G,T,Q){let U=S.argsArray,F=S.fnArray,D=G||0,L=U.length;if(L===D)return D;let $=L-D>f&&typeof T=="function",Z=$?Date.now()+c:0,se=0,Y=this.commonObjs,ue=this.objs,pe;for(;;){if(Q!==void 0&&D===Q.nextBreakPoint)return Q.breakIt(D,T),D;if(pe=F[D],pe!==r.OPS.dependency)this[pe].apply(this,U[D]);else for(let oe of U[D]){let de=oe.startsWith("g_")?Y:ue;if(!de.has(oe))return de.get(oe,T),D}if(D++,D===L)return D;if($&&++se>f){if(Date.now()>Z)return T(),D;se=0}}}#e(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}endDrawing(){this.#e(),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(let S of this._cachedBitmapsMap.values()){for(let G of S.values())typeof HTMLCanvasElement<"u"&&G instanceof HTMLCanvasElement&&(G.width=G.height=0);S.clear()}this._cachedBitmapsMap.clear()}_scaleImage(S,G){let T=S.width,Q=S.height,U=Math.max(Math.hypot(G[0],G[1]),1),F=Math.max(Math.hypot(G[2],G[3]),1),D=T,L=Q,$="prescale1",Z,se;for(;U>2&&D>1||F>2&&L>1;){let Y=D,ue=L;U>2&&D>1&&(Y=Math.ceil(D/2),U/=D/Y),F>2&&L>1&&(ue=Math.ceil(L/2),F/=L/ue),Z=this.cachedCanvases.getCanvas($,Y,ue),se=Z.context,se.clearRect(0,0,Y,ue),se.drawImage(S,0,0,D,L,0,0,Y,ue),S=Z.canvas,D=Y,L=ue,$=$==="prescale1"?"prescale2":"prescale1"}return{img:S,paintWidth:D,paintHeight:L}}_createMaskCanvas(S){let G=this.ctx,{width:T,height:Q}=S,U=this.current.fillColor,F=this.current.patternFill,D=(0,i.getCurrentTransform)(G),L,$,Z,se;if((S.bitmap||S.data)&&S.count>1){let De=S.bitmap||S.data.buffer;$=JSON.stringify(F?D:[D.slice(0,4),U]),L=this._cachedBitmapsMap.get(De),L||(L=new Map,this._cachedBitmapsMap.set(De,L));let Ue=L.get($);if(Ue&&!F){let Re=Math.round(Math.min(D[0],D[2])+D[4]),je=Math.round(Math.min(D[1],D[3])+D[5]);return{canvas:Ue,offsetX:Re,offsetY:je}}Z=Ue}Z||(se=this.cachedCanvases.getCanvas("maskCanvas",T,Q),_(se.context,S));let Y=r.Util.transform(D,[1/T,0,0,-1/Q,0,0]);Y=r.Util.transform(Y,[1,0,0,1,0,-Q]);let ue=r.Util.applyTransform([0,0],Y),pe=r.Util.applyTransform([T,Q],Y),oe=r.Util.normalizeRect([ue[0],ue[1],pe[0],pe[1]]),de=Math.round(oe[2]-oe[0])||1,ve=Math.round(oe[3]-oe[1])||1,Ae=this.cachedCanvases.getCanvas("fillCanvas",de,ve),Ce=Ae.context,Ge=Math.min(ue[0],pe[0]),Ee=Math.min(ue[1],pe[1]);Ce.translate(-Ge,-Ee),Ce.transform(...Y),Z||(Z=this._scaleImage(se.canvas,(0,i.getCurrentTransformInverse)(Ce)),Z=Z.img,L&&F&&L.set($,Z)),Ce.imageSmoothingEnabled=H((0,i.getCurrentTransform)(Ce),S.interpolate),b(Ce,Z,0,0,Z.width,Z.height,0,0,T,Q),Ce.globalCompositeOperation="source-in";let Ne=r.Util.transform((0,i.getCurrentTransformInverse)(Ce),[1,0,0,1,-Ge,-Ee]);return Ce.fillStyle=F?U.getPattern(G,this,Ne,o.PathType.FILL):U,Ce.fillRect(0,0,T,Q),L&&!F&&(this.cachedCanvases.delete("fillCanvas"),L.set($,Ae.canvas)),{canvas:Ae.canvas,offsetX:Math.round(Ge),offsetY:Math.round(Ee)}}setLineWidth(S){S!==this.current.lineWidth&&(this._cachedScaleForStroking=null),this.current.lineWidth=S,this.ctx.lineWidth=S}setLineCap(S){this.ctx.lineCap=ee[S]}setLineJoin(S){this.ctx.lineJoin=j[S]}setMiterLimit(S){this.ctx.miterLimit=S}setDash(S,G){let T=this.ctx;T.setLineDash!==void 0&&(T.setLineDash(S),T.lineDashOffset=G)}setRenderingIntent(S){}setFlatness(S){}setGState(S){for(let[G,T]of S)switch(G){case"LW":this.setLineWidth(T);break;case"LC":this.setLineCap(T);break;case"LJ":this.setLineJoin(T);break;case"ML":this.setMiterLimit(T);break;case"D":this.setDash(T[0],T[1]);break;case"RI":this.setRenderingIntent(T);break;case"FL":this.setFlatness(T);break;case"Font":this.setFont(T[0],T[1]);break;case"CA":this.current.strokeAlpha=T;break;case"ca":this.current.fillAlpha=T,this.ctx.globalAlpha=T;break;case"BM":this.ctx.globalCompositeOperation=T;break;case"SMask":this.current.activeSMask=T?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.current.transferMaps=T}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){let S=this.inSMaskMode;this.current.activeSMask&&!S?this.beginSMaskMode():!this.current.activeSMask&&S&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");let S=this.ctx.canvas.width,G=this.ctx.canvas.height,T="smaskGroupAt"+this.groupLevel,Q=this.cachedCanvases.getCanvas(T,S,G);this.suspendedCtx=this.ctx,this.ctx=Q.context;let U=this.ctx;U.setTransform(...(0,i.getCurrentTransform)(this.suspendedCtx)),w(this.suspendedCtx,U),m(U,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),w(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(S){if(!this.current.activeSMask)return;S?(S[0]=Math.floor(S[0]),S[1]=Math.floor(S[1]),S[2]=Math.ceil(S[2]),S[3]=Math.ceil(S[3])):S=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];let G=this.current.activeSMask,T=this.suspendedCtx;J(T,G,this.ctx,S),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}save(){this.inSMaskMode?(w(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();let S=this.current;this.stateStack.push(S),this.current=S.clone()}restore(){this.stateStack.length===0&&this.inSMaskMode&&this.endSMaskMode(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),w(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null)}transform(S,G,T,Q,U,F){this.ctx.transform(S,G,T,Q,U,F),this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null}constructPath(S,G,T){let Q=this.ctx,U=this.current,F=U.x,D=U.y,L,$,Z=(0,i.getCurrentTransform)(Q),se=Z[0]===0&&Z[3]===0||Z[1]===0&&Z[2]===0,Y=se?T.slice(0):null;for(let ue=0,pe=0,oe=S.length;ue<oe;ue++)switch(S[ue]|0){case r.OPS.rectangle:F=G[pe++],D=G[pe++];let de=G[pe++],ve=G[pe++],Ae=F+de,Ce=D+ve;Q.moveTo(F,D),de===0||ve===0?Q.lineTo(Ae,Ce):(Q.lineTo(Ae,D),Q.lineTo(Ae,Ce),Q.lineTo(F,Ce)),se||U.updateRectMinMax(Z,[F,D,Ae,Ce]),Q.closePath();break;case r.OPS.moveTo:F=G[pe++],D=G[pe++],Q.moveTo(F,D),se||U.updatePathMinMax(Z,F,D);break;case r.OPS.lineTo:F=G[pe++],D=G[pe++],Q.lineTo(F,D),se||U.updatePathMinMax(Z,F,D);break;case r.OPS.curveTo:L=F,$=D,F=G[pe+4],D=G[pe+5],Q.bezierCurveTo(G[pe],G[pe+1],G[pe+2],G[pe+3],F,D),U.updateCurvePathMinMax(Z,L,$,G[pe],G[pe+1],G[pe+2],G[pe+3],F,D,Y),pe+=6;break;case r.OPS.curveTo2:L=F,$=D,Q.bezierCurveTo(F,D,G[pe],G[pe+1],G[pe+2],G[pe+3]),U.updateCurvePathMinMax(Z,L,$,F,D,G[pe],G[pe+1],G[pe+2],G[pe+3],Y),F=G[pe+2],D=G[pe+3],pe+=4;break;case r.OPS.curveTo3:L=F,$=D,F=G[pe+2],D=G[pe+3],Q.bezierCurveTo(G[pe],G[pe+1],F,D,F,D),U.updateCurvePathMinMax(Z,L,$,G[pe],G[pe+1],F,D,F,D,Y),pe+=4;break;case r.OPS.closePath:Q.closePath();break}se&&U.updateScalingPathMinMax(Z,Y),U.setCurrentPoint(F,D)}closePath(){this.ctx.closePath()}stroke(S=!0){let G=this.ctx,T=this.current.strokeColor;G.globalAlpha=this.current.strokeAlpha,this.contentVisible&&(typeof T=="object"&&T?.getPattern?(G.save(),G.strokeStyle=T.getPattern(G,this,(0,i.getCurrentTransformInverse)(G),o.PathType.STROKE),this.rescaleAndStroke(!1),G.restore()):this.rescaleAndStroke(!0)),S&&this.consumePath(this.current.getClippedPathBoundingBox()),G.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(S=!0){let G=this.ctx,T=this.current.fillColor,Q=this.current.patternFill,U=!1;Q&&(G.save(),G.fillStyle=T.getPattern(G,this,(0,i.getCurrentTransformInverse)(G),o.PathType.FILL),U=!0);let F=this.current.getClippedPathBoundingBox();this.contentVisible&&F!==null&&(this.pendingEOFill?(G.fill("evenodd"),this.pendingEOFill=!1):G.fill()),U&&G.restore(),S&&this.consumePath(F)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=V}eoClip(){this.pendingClip=B}beginText(){this.current.textMatrix=r.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){let S=this.pendingTextPaths,G=this.ctx;if(S===void 0){G.beginPath();return}G.save(),G.beginPath();for(let T of S)G.setTransform(...T.transform),G.translate(T.x,T.y),T.addToPath(G,T.fontSize);G.restore(),G.clip(),G.beginPath(),delete this.pendingTextPaths}setCharSpacing(S){this.current.charSpacing=S}setWordSpacing(S){this.current.wordSpacing=S}setHScale(S){this.current.textHScale=S/100}setLeading(S){this.current.leading=-S}setFont(S,G){let T=this.commonObjs.get(S),Q=this.current;if(!T)throw new Error(`Can't find font for ${S}`);if(Q.fontMatrix=T.fontMatrix||r.FONT_IDENTITY_MATRIX,(Q.fontMatrix[0]===0||Q.fontMatrix[3]===0)&&(0,r.warn)("Invalid font matrix for font "+S),G<0?(G=-G,Q.fontDirection=-1):Q.fontDirection=1,this.current.font=T,this.current.fontSize=G,T.isType3Font)return;let U=T.loadedName||"sans-serif",F="normal";T.black?F="900":T.bold&&(F="bold");let D=T.italic?"italic":"normal",L=`"${U}", ${T.fallbackName}`,$=G;G<a?$=a:G>l&&($=l),this.current.fontSizeScale=G/$,this.ctx.font=`${D} ${F} ${$}px ${L}`}setTextRenderingMode(S){this.current.textRenderingMode=S}setTextRise(S){this.current.textRise=S}moveText(S,G){this.current.x=this.current.lineX+=S,this.current.y=this.current.lineY+=G}setLeadingMoveText(S,G){this.setLeading(-G),this.moveText(S,G)}setTextMatrix(S,G,T,Q,U,F){this.current.textMatrix=[S,G,T,Q,U,F],this.current.textMatrixScale=Math.hypot(S,G),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(S,G,T,Q){let U=this.ctx,F=this.current,D=F.font,L=F.textRenderingMode,$=F.fontSize/F.fontSizeScale,Z=L&r.TextRenderingMode.FILL_STROKE_MASK,se=!!(L&r.TextRenderingMode.ADD_TO_PATH_FLAG),Y=F.patternFill&&!D.missingFile,ue;(D.disableFontFace||se||Y)&&(ue=D.getPathGenerator(this.commonObjs,S)),D.disableFontFace||Y?(U.save(),U.translate(G,T),U.beginPath(),ue(U,$),Q&&U.setTransform(...Q),(Z===r.TextRenderingMode.FILL||Z===r.TextRenderingMode.FILL_STROKE)&&U.fill(),(Z===r.TextRenderingMode.STROKE||Z===r.TextRenderingMode.FILL_STROKE)&&U.stroke(),U.restore()):((Z===r.TextRenderingMode.FILL||Z===r.TextRenderingMode.FILL_STROKE)&&U.fillText(S,G,T),(Z===r.TextRenderingMode.STROKE||Z===r.TextRenderingMode.FILL_STROKE)&&U.strokeText(S,G,T)),se&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:(0,i.getCurrentTransform)(U),x:G,y:T,fontSize:$,addToPath:ue})}get isFontSubpixelAAEnabled(){let{context:S}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);S.scale(1.5,1),S.fillText("I",0,10);let G=S.getImageData(0,0,10,10).data,T=!1;for(let Q=3;Q<G.length;Q+=4)if(G[Q]>0&&G[Q]<255){T=!0;break}return(0,r.shadow)(this,"isFontSubpixelAAEnabled",T)}showText(S){let G=this.current,T=G.font;if(T.isType3Font)return this.showType3Text(S);let Q=G.fontSize;if(Q===0)return;let U=this.ctx,F=G.fontSizeScale,D=G.charSpacing,L=G.wordSpacing,$=G.fontDirection,Z=G.textHScale*$,se=S.length,Y=T.vertical,ue=Y?1:-1,pe=T.defaultVMetrics,oe=Q*G.fontMatrix[0],de=G.textRenderingMode===r.TextRenderingMode.FILL&&!T.disableFontFace&&!G.patternFill;U.save(),U.transform(...G.textMatrix),U.translate(G.x,G.y+G.textRise),$>0?U.scale(Z,-1):U.scale(Z,1);let ve;if(G.patternFill){U.save();let Ne=G.fillColor.getPattern(U,this,(0,i.getCurrentTransformInverse)(U),o.PathType.FILL);ve=(0,i.getCurrentTransform)(U),U.restore(),U.fillStyle=Ne}let Ae=G.lineWidth,Ce=G.textMatrixScale;if(Ce===0||Ae===0){let Ne=G.textRenderingMode&r.TextRenderingMode.FILL_STROKE_MASK;(Ne===r.TextRenderingMode.STROKE||Ne===r.TextRenderingMode.FILL_STROKE)&&(Ae=this.getSinglePixelWidth())}else Ae/=Ce;if(F!==1&&(U.scale(F,F),Ae/=F),U.lineWidth=Ae,T.isInvalidPDFjsFont){let Ne=[],De=0;for(let Ue of S)Ne.push(Ue.unicode),De+=Ue.width;U.fillText(Ne.join(""),0,0),G.x+=De*oe*Z,U.restore(),this.compose();return}let Ge=0,Ee;for(Ee=0;Ee<se;++Ee){let Ne=S[Ee];if(typeof Ne=="number"){Ge+=ue*Ne*Q/1e3;continue}let De=!1,Ue=(Ne.isSpace?L:0)+D,Re=Ne.fontChar,je=Ne.accent,$e,Le,Xe=Ne.width;if(Y){let fe=Ne.vmetric||pe,be=-(Ne.vmetric?fe[1]:Xe*.5)*oe,ye=fe[2]*oe;Xe=fe?-fe[0]:Xe,$e=be/F,Le=(Ge+ye)/F}else $e=Ge/F,Le=0;if(T.remeasure&&Xe>0){let fe=U.measureText(Re).width*1e3/Q*F;if(Xe<fe&&this.isFontSubpixelAAEnabled){let be=Xe/fe;De=!0,U.save(),U.scale(be,1),$e/=be}else Xe!==fe&&($e+=(Xe-fe)/2e3*Q/F)}if(this.contentVisible&&(Ne.isInFont||T.missingFile)){if(de&&!je)U.fillText(Re,$e,Le);else if(this.paintChar(Re,$e,Le,ve),je){let fe=$e+Q*je.offset.x/F,be=Le-Q*je.offset.y/F;this.paintChar(je.fontChar,fe,be,ve)}}let mt;Y?mt=Xe*oe-Ue*$:mt=Xe*oe+Ue*$,Ge+=mt,De&&U.restore()}Y?G.y-=Ge:G.x+=Ge*Z,U.restore(),this.compose()}showType3Text(S){let G=this.ctx,T=this.current,Q=T.font,U=T.fontSize,F=T.fontDirection,D=Q.vertical?1:-1,L=T.charSpacing,$=T.wordSpacing,Z=T.textHScale*F,se=T.fontMatrix||r.FONT_IDENTITY_MATRIX,Y=S.length,ue=T.textRenderingMode===r.TextRenderingMode.INVISIBLE,pe,oe,de,ve;if(!(ue||U===0)){for(this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null,G.save(),G.transform(...T.textMatrix),G.translate(T.x,T.y),G.scale(Z,F),pe=0;pe<Y;++pe){if(oe=S[pe],typeof oe=="number"){ve=D*oe*U/1e3,this.ctx.translate(ve,0),T.x+=ve*Z;continue}let Ae=(oe.isSpace?$:0)+L,Ce=Q.charProcOperatorList[oe.operatorListId];if(!Ce){(0,r.warn)(`Type3 character "${oe.operatorListId}" is not available.`);continue}this.contentVisible&&(this.processingType3=oe,this.save(),G.scale(U,U),G.transform(...se),this.executeOperatorList(Ce),this.restore()),de=r.Util.applyTransform([oe.width,0],se)[0]*U+Ae,G.translate(de,0),T.x+=de*Z}G.restore(),this.processingType3=null}}setCharWidth(S,G){}setCharWidthAndBounds(S,G,T,Q,U,F){this.ctx.rect(T,Q,U-T,F-Q),this.ctx.clip(),this.endPath()}getColorN_Pattern(S){let G;if(S[0]==="TilingPattern"){let T=S[1],Q=this.baseTransform||(0,i.getCurrentTransform)(this.ctx),U={createCanvasGraphics:F=>new N(F,this.commonObjs,this.objs,this.canvasFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};G=new o.TilingPattern(S,T,this.ctx,U,Q)}else G=this._getPattern(S[1],S[2]);return G}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(S,G,T){let Q=this.selectColor?.(S,G,T)||r.Util.makeHexColor(S,G,T);this.ctx.strokeStyle=Q,this.current.strokeColor=Q}setFillRGBColor(S,G,T){let Q=this.selectColor?.(S,G,T)||r.Util.makeHexColor(S,G,T);this.ctx.fillStyle=Q,this.current.fillColor=Q,this.current.patternFill=!1}_getPattern(S,G=null){let T;return this.cachedPatterns.has(S)?T=this.cachedPatterns.get(S):(T=(0,o.getShadingPattern)(this.objs.get(S)),this.cachedPatterns.set(S,T)),G&&(T.matrix=G),T}shadingFill(S){if(!this.contentVisible)return;let G=this.ctx;this.save();let T=this._getPattern(S);G.fillStyle=T.getPattern(G,this,(0,i.getCurrentTransformInverse)(G),o.PathType.SHADING);let Q=(0,i.getCurrentTransformInverse)(G);if(Q){let U=G.canvas,F=U.width,D=U.height,L=r.Util.applyTransform([0,0],Q),$=r.Util.applyTransform([0,D],Q),Z=r.Util.applyTransform([F,0],Q),se=r.Util.applyTransform([F,D],Q),Y=Math.min(L[0],$[0],Z[0],se[0]),ue=Math.min(L[1],$[1],Z[1],se[1]),pe=Math.max(L[0],$[0],Z[0],se[0]),oe=Math.max(L[1],$[1],Z[1],se[1]);this.ctx.fillRect(Y,ue,pe-Y,oe-ue)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){(0,r.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,r.unreachable)("Should not call beginImageData")}paintFormXObjectBegin(S,G){if(!!this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(S)&&S.length===6&&this.transform(...S),this.baseTransform=(0,i.getCurrentTransform)(this.ctx),G)){let T=G[2]-G[0],Q=G[3]-G[1];this.ctx.rect(G[0],G[1],T,Q),this.current.updateRectMinMax((0,i.getCurrentTransform)(this.ctx),G),this.clip(),this.endPath()}}paintFormXObjectEnd(){!this.contentVisible||(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(S){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);let G=this.ctx;S.isolated||(0,r.info)("TODO: Support non-isolated groups."),S.knockout&&(0,r.warn)("Knockout groups not supported.");let T=(0,i.getCurrentTransform)(G);if(S.matrix&&G.transform(...S.matrix),!S.bbox)throw new Error("Bounding box is required.");let Q=r.Util.getAxialAlignedBoundingBox(S.bbox,(0,i.getCurrentTransform)(G)),U=[0,0,G.canvas.width,G.canvas.height];Q=r.Util.intersect(Q,U)||[0,0,0,0];let F=Math.floor(Q[0]),D=Math.floor(Q[1]),L=Math.max(Math.ceil(Q[2])-F,1),$=Math.max(Math.ceil(Q[3])-D,1),Z=1,se=1;L>u&&(Z=L/u,L=u),$>u&&(se=$/u,$=u),this.current.startNewPathAndClipBox([0,0,L,$]);let Y="groupAt"+this.groupLevel;S.smask&&(Y+="_smask_"+this.smaskCounter++%2);let ue=this.cachedCanvases.getCanvas(Y,L,$),pe=ue.context;pe.scale(1/Z,1/se),pe.translate(-F,-D),pe.transform(...T),S.smask?this.smaskStack.push({canvas:ue.canvas,context:pe,offsetX:F,offsetY:D,scaleX:Z,scaleY:se,subtype:S.smask.subtype,backdrop:S.smask.backdrop,transferMap:S.smask.transferMap||null,startTransformInverse:null}):(G.setTransform(1,0,0,1,0,0),G.translate(F,D),G.scale(Z,se),G.save()),w(G,pe),this.ctx=pe,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(G),this.groupLevel++}endGroup(S){if(!this.contentVisible)return;this.groupLevel--;let G=this.ctx,T=this.groupStack.pop();if(this.ctx=T,this.ctx.imageSmoothingEnabled=!1,S.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();let Q=(0,i.getCurrentTransform)(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...Q);let U=r.Util.getAxialAlignedBoundingBox([0,0,G.canvas.width,G.canvas.height],Q);this.ctx.drawImage(G.canvas,0,0),this.ctx.restore(),this.compose(U)}}beginAnnotation(S,G,T,Q,U){if(this.#e(),k(this.ctx,this.foregroundColor),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),Array.isArray(G)&&G.length===4){let F=G[2]-G[0],D=G[3]-G[1];if(U&&this.annotationCanvasMap){T=T.slice(),T[4]-=G[0],T[5]-=G[1],G=G.slice(),G[0]=G[1]=0,G[2]=F,G[3]=D;let[L,$]=r.Util.singularValueDecompose2dScale((0,i.getCurrentTransform)(this.ctx)),{viewportScale:Z}=this,se=Math.ceil(F*this.outputScaleX*Z),Y=Math.ceil(D*this.outputScaleY*Z);this.annotationCanvas=this.canvasFactory.create(se,Y);let{canvas:ue,context:pe}=this.annotationCanvas;this.annotationCanvasMap.set(S,ue),this.annotationCanvas.savedCtx=this.ctx,this.ctx=pe,this.ctx.setTransform(L,0,0,-$,0,D*$),k(this.ctx,this.foregroundColor)}else k(this.ctx,this.foregroundColor),this.ctx.rect(G[0],G[1],F,D),this.ctx.clip(),this.endPath()}this.current=new x(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...T),this.transform(...Q)}endAnnotation(){this.annotationCanvas&&(this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(S){if(!this.contentVisible)return;let G=S.count;S=this.getObject(S.data,S),S.count=G;let T=this.ctx,Q=this.processingType3;if(Q&&(Q.compiled===void 0&&(Q.compiled=v(S)),Q.compiled)){Q.compiled(T);return}let U=this._createMaskCanvas(S),F=U.canvas;T.save(),T.setTransform(1,0,0,1,0,0),T.drawImage(F,U.offsetX,U.offsetY),T.restore(),this.compose()}paintImageMaskXObjectRepeat(S,G,T=0,Q=0,U,F){if(!this.contentVisible)return;S=this.getObject(S.data,S);let D=this.ctx;D.save();let L=(0,i.getCurrentTransform)(D);D.transform(G,T,Q,U,0,0);let $=this._createMaskCanvas(S);D.setTransform(1,0,0,1,$.offsetX-L[4],$.offsetY-L[5]);for(let Z=0,se=F.length;Z<se;Z+=2){let Y=r.Util.transform(L,[G,T,Q,U,F[Z],F[Z+1]]),[ue,pe]=r.Util.applyTransform([0,0],Y);D.drawImage($.canvas,ue,pe)}D.restore(),this.compose()}paintImageMaskXObjectGroup(S){if(!this.contentVisible)return;let G=this.ctx,T=this.current.fillColor,Q=this.current.patternFill;for(let U of S){let{data:F,width:D,height:L,transform:$}=U,Z=this.cachedCanvases.getCanvas("maskCanvas",D,L),se=Z.context;se.save();let Y=this.getObject(F,U);_(se,Y),se.globalCompositeOperation="source-in",se.fillStyle=Q?T.getPattern(se,this,(0,i.getCurrentTransformInverse)(G),o.PathType.FILL):T,se.fillRect(0,0,D,L),se.restore(),G.save(),G.transform(...$),G.scale(1,-1),b(G,Z.canvas,0,0,D,L,0,-1,1,1),G.restore()}this.compose()}paintImageXObject(S){if(!this.contentVisible)return;let G=this.getObject(S);if(!G){(0,r.warn)("Dependent image isn't ready yet");return}this.paintInlineImageXObject(G)}paintImageXObjectRepeat(S,G,T,Q){if(!this.contentVisible)return;let U=this.getObject(S);if(!U){(0,r.warn)("Dependent image isn't ready yet");return}let F=U.width,D=U.height,L=[];for(let $=0,Z=Q.length;$<Z;$+=2)L.push({transform:[G,0,0,T,Q[$],Q[$+1]],x:0,y:0,w:F,h:D});this.paintInlineImageXObjectGroup(U,L)}paintInlineImageXObject(S){if(!this.contentVisible)return;let G=S.width,T=S.height,Q=this.ctx;this.save(),Q.scale(1/G,-1/T);let U;if(typeof HTMLElement=="function"&&S instanceof HTMLElement||!S.data)U=S;else{let D=this.cachedCanvases.getCanvas("inlineImage",G,T),L=D.context;y(L,S,this.current.transferMaps),U=D.canvas}let F=this._scaleImage(U,(0,i.getCurrentTransformInverse)(Q));Q.imageSmoothingEnabled=H((0,i.getCurrentTransform)(Q),S.interpolate),b(Q,F.img,0,0,F.paintWidth,F.paintHeight,0,-T,G,T),this.compose(),this.restore()}paintInlineImageXObjectGroup(S,G){if(!this.contentVisible)return;let T=this.ctx,Q=S.width,U=S.height,F=this.cachedCanvases.getCanvas("inlineImage",Q,U),D=F.context;y(D,S,this.current.transferMaps);for(let L of G)T.save(),T.transform(...L.transform),T.scale(1,-1),b(T,F.canvas,L.x,L.y,L.w,L.h,0,-1,1,1),T.restore();this.compose()}paintSolidColorImageMask(){!this.contentVisible||(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(S){}markPointProps(S,G){}beginMarkedContent(S){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(S,G){S==="OC"?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(G)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(S){let G=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(S);let T=this.ctx;this.pendingClip&&(G||(this.pendingClip===B?T.clip("evenodd"):T.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),T.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){let S=(0,i.getCurrentTransform)(this.ctx);if(S[1]===0&&S[2]===0)this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(S[0]),Math.abs(S[3]));else{let G=Math.abs(S[0]*S[3]-S[2]*S[1]),T=Math.hypot(S[0],S[2]),Q=Math.hypot(S[1],S[3]);this._cachedGetSinglePixelWidth=Math.max(T,Q)/G}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(!this._cachedScaleForStroking){let{lineWidth:S}=this.current,G=(0,i.getCurrentTransform)(this.ctx),T,Q;if(G[1]===0&&G[2]===0){let U=Math.abs(G[0]),F=Math.abs(G[3]);if(S===0)T=1/U,Q=1/F;else{let D=U*S,L=F*S;T=D<1?1/D:1,Q=L<1?1/L:1}}else{let U=Math.abs(G[0]*G[3]-G[2]*G[1]),F=Math.hypot(G[0],G[1]),D=Math.hypot(G[2],G[3]);if(S===0)T=D/U,Q=F/U;else{let L=S*U;T=D>L?D/L:1,Q=F>L?F/L:1}}this._cachedScaleForStroking=[T,Q]}return this._cachedScaleForStroking}rescaleAndStroke(S){let{ctx:G}=this,{lineWidth:T}=this.current,[Q,U]=this.getScaleForStroking();if(G.lineWidth=T||1,Q===1&&U===1){G.stroke();return}let F,D,L;S&&(F=(0,i.getCurrentTransform)(G),D=G.getLineDash().slice(),L=G.lineDashOffset),G.scale(Q,U);let $=Math.max(Q,U);G.setLineDash(G.getLineDash().map(Z=>Z/$)),G.lineDashOffset/=$,G.stroke(),S&&(G.setTransform(...F),G.setLineDash(D),G.lineDashOffset=L)}isContentVisible(){for(let S=this.markedContentStack.length-1;S>=0;S--)if(!this.markedContentStack[S].visible)return!1;return!0}}t.CanvasGraphics=N;for(let C in r.OPS)N.prototype[C]!==void 0&&(N.prototype[r.OPS[C]]=N.prototype[C])},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TilingPattern=t.PathType=void 0,t.getShadingPattern=h;var r=n(1),i=n(6);let o={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};t.PathType=o;function s(b,v){if(!v)return;let x=v[2]-v[0],y=v[3]-v[1],_=new Path2D;_.rect(v[0],v[1],x,y),b.clip(_)}class a{constructor(){this.constructor===a&&(0,r.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,r.unreachable)("Abstract method `getPattern` called.")}}class l extends a{constructor(v){super(),this._type=v[1],this._bbox=v[2],this._colorStops=v[3],this._p0=v[4],this._p1=v[5],this._r0=v[6],this._r1=v[7],this.matrix=null}_createGradient(v){let x;this._type==="axial"?x=v.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(x=v.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(let y of this._colorStops)x.addColorStop(y[0],y[1]);return x}getPattern(v,x,y,_){let w;if(_===o.STROKE||_===o.FILL){let k=x.current.getClippedPathBoundingBox(_,(0,i.getCurrentTransform)(v))||[0,0,0,0],O=Math.ceil(k[2]-k[0])||1,M=Math.ceil(k[3]-k[1])||1,I=x.cachedCanvases.getCanvas("pattern",O,M,!0),W=I.context;W.clearRect(0,0,W.canvas.width,W.canvas.height),W.beginPath(),W.rect(0,0,W.canvas.width,W.canvas.height),W.translate(-k[0],-k[1]),y=r.Util.transform(y,[1,0,0,1,k[0],k[1]]),W.transform(...x.baseTransform),this.matrix&&W.transform(...this.matrix),s(W,this._bbox),W.fillStyle=this._createGradient(W),W.fill(),w=v.createPattern(I.canvas,"no-repeat");let J=new DOMMatrix(y);w.setTransform(J)}else s(v,this._bbox),w=this._createGradient(v);return w}}function u(b,v,x,y,_,w,k,O){let M=v.coords,I=v.colors,W=b.data,J=b.width*4,H;M[x+1]>M[y+1]&&(H=x,x=y,y=H,H=w,w=k,k=H),M[y+1]>M[_+1]&&(H=y,y=_,_=H,H=k,k=O,O=H),M[x+1]>M[y+1]&&(H=x,x=y,y=H,H=w,w=k,k=H);let ee=(M[x]+v.offsetX)*v.scaleX,j=(M[x+1]+v.offsetY)*v.scaleY,V=(M[y]+v.offsetX)*v.scaleX,B=(M[y+1]+v.offsetY)*v.scaleY,N=(M[_]+v.offsetX)*v.scaleX,C=(M[_+1]+v.offsetY)*v.scaleY;if(j>=C)return;let S=I[w],G=I[w+1],T=I[w+2],Q=I[k],U=I[k+1],F=I[k+2],D=I[O],L=I[O+1],$=I[O+2],Z=Math.round(j),se=Math.round(C),Y,ue,pe,oe,de,ve,Ae,Ce;for(let Ge=Z;Ge<=se;Ge++){if(Ge<B){let Re;Ge<j?Re=0:Re=(j-Ge)/(j-B),Y=ee-(ee-V)*Re,ue=S-(S-Q)*Re,pe=G-(G-U)*Re,oe=T-(T-F)*Re}else{let Re;Ge>C?Re=1:B===C?Re=0:Re=(B-Ge)/(B-C),Y=V-(V-N)*Re,ue=Q-(Q-D)*Re,pe=U-(U-L)*Re,oe=F-(F-$)*Re}let Ee;Ge<j?Ee=0:Ge>C?Ee=1:Ee=(j-Ge)/(j-C),de=ee-(ee-N)*Ee,ve=S-(S-D)*Ee,Ae=G-(G-L)*Ee,Ce=T-(T-$)*Ee;let Ne=Math.round(Math.min(Y,de)),De=Math.round(Math.max(Y,de)),Ue=J*Ge+Ne*4;for(let Re=Ne;Re<=De;Re++)Ee=(Y-Re)/(Y-de),Ee<0?Ee=0:Ee>1&&(Ee=1),W[Ue++]=ue-(ue-ve)*Ee|0,W[Ue++]=pe-(pe-Ae)*Ee|0,W[Ue++]=oe-(oe-Ce)*Ee|0,W[Ue++]=255}}function c(b,v,x){let y=v.coords,_=v.colors,w,k;switch(v.type){case"lattice":let O=v.verticesPerRow,M=Math.floor(y.length/O)-1,I=O-1;for(w=0;w<M;w++){let W=w*O;for(let J=0;J<I;J++,W++)u(b,x,y[W],y[W+1],y[W+O],_[W],_[W+1],_[W+O]),u(b,x,y[W+O+1],y[W+1],y[W+O],_[W+O+1],_[W+1],_[W+O])}break;case"triangles":for(w=0,k=y.length;w<k;w+=3)u(b,x,y[w],y[w+1],y[w+2],_[w],_[w+1],_[w+2]);break;default:throw new Error("illegal figure")}}class f extends a{constructor(v){super(),this._coords=v[2],this._colors=v[3],this._figures=v[4],this._bounds=v[5],this._bbox=v[7],this._background=v[8],this.matrix=null}_createMeshCanvas(v,x,y){let O=Math.floor(this._bounds[0]),M=Math.floor(this._bounds[1]),I=Math.ceil(this._bounds[2])-O,W=Math.ceil(this._bounds[3])-M,J=Math.min(Math.ceil(Math.abs(I*v[0]*1.1)),3e3),H=Math.min(Math.ceil(Math.abs(W*v[1]*1.1)),3e3),ee=I/J,j=W/H,V={coords:this._coords,colors:this._colors,offsetX:-O,offsetY:-M,scaleX:1/ee,scaleY:1/j},B=J+2*2,N=H+2*2,C=y.getCanvas("mesh",B,N,!1),S=C.context,G=S.createImageData(J,H);if(x){let Q=G.data;for(let U=0,F=Q.length;U<F;U+=4)Q[U]=x[0],Q[U+1]=x[1],Q[U+2]=x[2],Q[U+3]=255}for(let Q of this._figures)c(G,Q,V);return S.putImageData(G,2,2),{canvas:C.canvas,offsetX:O-2*ee,offsetY:M-2*j,scaleX:ee,scaleY:j}}getPattern(v,x,y,_){s(v,this._bbox);let w;if(_===o.SHADING)w=r.Util.singularValueDecompose2dScale((0,i.getCurrentTransform)(v));else if(w=r.Util.singularValueDecompose2dScale(x.baseTransform),this.matrix){let O=r.Util.singularValueDecompose2dScale(this.matrix);w=[w[0]*O[0],w[1]*O[1]]}let k=this._createMeshCanvas(w,_===o.SHADING?null:this._background,x.cachedCanvases);return _!==o.SHADING&&(v.setTransform(...x.baseTransform),this.matrix&&v.transform(...this.matrix)),v.translate(k.offsetX,k.offsetY),v.scale(k.scaleX,k.scaleY),v.createPattern(k.canvas,"no-repeat")}}class d extends a{getPattern(){return"hotpink"}}function h(b){switch(b[0]){case"RadialAxial":return new l(b);case"Mesh":return new f(b);case"Dummy":return new d}throw new Error(`Unknown IR type: ${b[0]}`)}let m={COLORED:1,UNCOLORED:2};class g{static get MAX_PATTERN_SIZE(){return(0,r.shadow)(this,"MAX_PATTERN_SIZE",3e3)}constructor(v,x,y,_,w){this.operatorList=v[2],this.matrix=v[3]||[1,0,0,1,0,0],this.bbox=v[4],this.xstep=v[5],this.ystep=v[6],this.paintType=v[7],this.tilingType=v[8],this.color=x,this.ctx=y,this.canvasGraphicsFactory=_,this.baseTransform=w}createPatternCanvas(v){let x=this.operatorList,y=this.bbox,_=this.xstep,w=this.ystep,k=this.paintType,O=this.tilingType,M=this.color,I=this.canvasGraphicsFactory;(0,r.info)("TilingType: "+O);let W=y[0],J=y[1],H=y[2],ee=y[3],j=r.Util.singularValueDecompose2dScale(this.matrix),V=r.Util.singularValueDecompose2dScale(this.baseTransform),B=[j[0]*V[0],j[1]*V[1]],N=this.getSizeAndScale(_,this.ctx.canvas.width,B[0]),C=this.getSizeAndScale(w,this.ctx.canvas.height,B[1]),S=v.cachedCanvases.getCanvas("pattern",N.size,C.size,!0),G=S.context,T=I.createCanvasGraphics(G);T.groupLevel=v.groupLevel,this.setFillAndStrokeStyleToContext(T,k,M);let Q=W,U=J,F=H,D=ee;return W<0&&(Q=0,F+=Math.abs(W)),J<0&&(U=0,D+=Math.abs(J)),G.translate(-(N.scale*Q),-(C.scale*U)),T.transform(N.scale,0,0,C.scale,0,0),G.save(),this.clipBbox(T,Q,U,F,D),T.baseTransform=(0,i.getCurrentTransform)(T.ctx),T.executeOperatorList(x),T.endDrawing(),{canvas:S.canvas,scaleX:N.scale,scaleY:C.scale,offsetX:Q,offsetY:U}}getSizeAndScale(v,x,y){v=Math.abs(v);let _=Math.max(g.MAX_PATTERN_SIZE,x),w=Math.ceil(v*y);return w>=_?w=_:y=w/v,{scale:y,size:w}}clipBbox(v,x,y,_,w){let k=_-x,O=w-y;v.ctx.rect(x,y,k,O),v.current.updateRectMinMax((0,i.getCurrentTransform)(v.ctx),[x,y,_,w]),v.clip(),v.endPath()}setFillAndStrokeStyleToContext(v,x,y){let _=v.ctx,w=v.current;switch(x){case m.COLORED:let k=this.ctx;_.fillStyle=k.fillStyle,_.strokeStyle=k.strokeStyle,w.fillColor=k.fillStyle,w.strokeColor=k.strokeStyle;break;case m.UNCOLORED:let O=r.Util.makeHexColor(y[0],y[1],y[2]);_.fillStyle=O,_.strokeStyle=O,w.fillColor=O,w.strokeColor=O;break;default:throw new r.FormatError(`Unsupported paint type: ${x}`)}}getPattern(v,x,y,_){let w=y;_!==o.SHADING&&(w=r.Util.transform(w,x.baseTransform),this.matrix&&(w=r.Util.transform(w,this.matrix)));let k=this.createPatternCanvas(x),O=new DOMMatrix(w);O=O.translate(k.offsetX,k.offsetY),O=O.scale(1/k.scaleX,1/k.scaleY);let M=v.createPattern(k.canvas,"repeat");return M.setTransform(O),M}}t.TilingPattern=g},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.applyMaskImageData=i;var r=n(1);function i({src:o,srcPos:s=0,dest:a,destPos:l=0,width:u,height:c,inverseDecode:f=!1}){let d=r.FeatureTest.isLittleEndian?4278190080:255,[h,m]=f?[0,d]:[d,0],g=u>>3,b=u&7,v=o.length;a=new Uint32Array(a.buffer);for(let x=0;x<c;x++){for(let _=s+g;s<_;s++){let w=s<v?o[s]:255;a[l++]=w&128?m:h,a[l++]=w&64?m:h,a[l++]=w&32?m:h,a[l++]=w&16?m:h,a[l++]=w&8?m:h,a[l++]=w&4?m:h,a[l++]=w&2?m:h,a[l++]=w&1?m:h}if(b===0)continue;let y=s<v?o[s++]:255;for(let _=0;_<b;_++)a[l++]=y&1<<7-_?m:h}return{srcPos:s,destPos:l}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;let n=Object.create(null);t.GlobalWorkerOptions=n,n.workerPort=null,n.workerSrc=""},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var r=n(1);let i={UNKNOWN:0,DATA:1,ERROR:2},o={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function s(l){switch(l instanceof Error||typeof l=="object"&&l!==null||(0,r.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),l.name){case"AbortException":return new r.AbortException(l.message);case"MissingPDFException":return new r.MissingPDFException(l.message);case"PasswordException":return new r.PasswordException(l.message,l.code);case"UnexpectedResponseException":return new r.UnexpectedResponseException(l.message,l.status);case"UnknownErrorException":return new r.UnknownErrorException(l.message,l.details);default:return new r.UnknownErrorException(l.message,l.toString())}}class a{constructor(u,c,f){this.sourceName=u,this.targetName=c,this.comObj=f,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=d=>{let h=d.data;if(h.targetName!==this.sourceName)return;if(h.stream){this._processStreamMessage(h);return}if(h.callback){let g=h.callbackId,b=this.callbackCapabilities[g];if(!b)throw new Error(`Cannot resolve callback ${g}`);if(delete this.callbackCapabilities[g],h.callback===i.DATA)b.resolve(h.data);else if(h.callback===i.ERROR)b.reject(s(h.reason));else throw new Error("Unexpected callback case");return}let m=this.actionHandler[h.action];if(!m)throw new Error(`Unknown action from worker: ${h.action}`);if(h.callbackId){let g=this.sourceName,b=h.sourceName;new Promise(function(v){v(m(h.data))}).then(function(v){f.postMessage({sourceName:g,targetName:b,callback:i.DATA,callbackId:h.callbackId,data:v})},function(v){f.postMessage({sourceName:g,targetName:b,callback:i.ERROR,callbackId:h.callbackId,reason:s(v)})});return}if(h.streamId){this._createStreamSink(h);return}m(h.data)},f.addEventListener("message",this._onComObjOnMessage)}on(u,c){let f=this.actionHandler;if(f[u])throw new Error(`There is already an actionName called "${u}"`);f[u]=c}send(u,c,f){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:u,data:c},f)}sendWithPromise(u,c,f){let d=this.callbackId++,h=(0,r.createPromiseCapability)();this.callbackCapabilities[d]=h;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:u,callbackId:d,data:c},f)}catch(m){h.reject(m)}return h.promise}sendWithStream(u,c,f,d){let h=this.streamId++,m=this.sourceName,g=this.targetName,b=this.comObj;return new ReadableStream({start:v=>{let x=(0,r.createPromiseCapability)();return this.streamControllers[h]={controller:v,startCall:x,pullCall:null,cancelCall:null,isClosed:!1},b.postMessage({sourceName:m,targetName:g,action:u,streamId:h,data:c,desiredSize:v.desiredSize},d),x.promise},pull:v=>{let x=(0,r.createPromiseCapability)();return this.streamControllers[h].pullCall=x,b.postMessage({sourceName:m,targetName:g,stream:o.PULL,streamId:h,desiredSize:v.desiredSize}),x.promise},cancel:v=>{(0,r.assert)(v instanceof Error,"cancel must have a valid reason");let x=(0,r.createPromiseCapability)();return this.streamControllers[h].cancelCall=x,this.streamControllers[h].isClosed=!0,b.postMessage({sourceName:m,targetName:g,stream:o.CANCEL,streamId:h,reason:s(v)}),x.promise}},f)}_createStreamSink(u){let c=u.streamId,f=this.sourceName,d=u.sourceName,h=this.comObj,m=this,g=this.actionHandler[u.action],b={enqueue(v,x=1,y){if(this.isCancelled)return;let _=this.desiredSize;this.desiredSize-=x,_>0&&this.desiredSize<=0&&(this.sinkCapability=(0,r.createPromiseCapability)(),this.ready=this.sinkCapability.promise),h.postMessage({sourceName:f,targetName:d,stream:o.ENQUEUE,streamId:c,chunk:v},y)},close(){this.isCancelled||(this.isCancelled=!0,h.postMessage({sourceName:f,targetName:d,stream:o.CLOSE,streamId:c}),delete m.streamSinks[c])},error(v){(0,r.assert)(v instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,h.postMessage({sourceName:f,targetName:d,stream:o.ERROR,streamId:c,reason:s(v)}))},sinkCapability:(0,r.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:u.desiredSize,ready:null};b.sinkCapability.resolve(),b.ready=b.sinkCapability.promise,this.streamSinks[c]=b,new Promise(function(v){v(g(u.data,b))}).then(function(){h.postMessage({sourceName:f,targetName:d,stream:o.START_COMPLETE,streamId:c,success:!0})},function(v){h.postMessage({sourceName:f,targetName:d,stream:o.START_COMPLETE,streamId:c,reason:s(v)})})}_processStreamMessage(u){let c=u.streamId,f=this.sourceName,d=u.sourceName,h=this.comObj,m=this.streamControllers[c],g=this.streamSinks[c];switch(u.stream){case o.START_COMPLETE:u.success?m.startCall.resolve():m.startCall.reject(s(u.reason));break;case o.PULL_COMPLETE:u.success?m.pullCall.resolve():m.pullCall.reject(s(u.reason));break;case o.PULL:if(!g){h.postMessage({sourceName:f,targetName:d,stream:o.PULL_COMPLETE,streamId:c,success:!0});break}g.desiredSize<=0&&u.desiredSize>0&&g.sinkCapability.resolve(),g.desiredSize=u.desiredSize,new Promise(function(b){b(g.onPull&&g.onPull())}).then(function(){h.postMessage({sourceName:f,targetName:d,stream:o.PULL_COMPLETE,streamId:c,success:!0})},function(b){h.postMessage({sourceName:f,targetName:d,stream:o.PULL_COMPLETE,streamId:c,reason:s(b)})});break;case o.ENQUEUE:if((0,r.assert)(m,"enqueue should have stream controller"),m.isClosed)break;m.controller.enqueue(u.chunk);break;case o.CLOSE:if((0,r.assert)(m,"close should have stream controller"),m.isClosed)break;m.isClosed=!0,m.controller.close(),this._deleteStreamController(m,c);break;case o.ERROR:(0,r.assert)(m,"error should have stream controller"),m.controller.error(s(u.reason)),this._deleteStreamController(m,c);break;case o.CANCEL_COMPLETE:u.success?m.cancelCall.resolve():m.cancelCall.reject(s(u.reason)),this._deleteStreamController(m,c);break;case o.CANCEL:if(!g)break;new Promise(function(b){b(g.onCancel&&g.onCancel(s(u.reason)))}).then(function(){h.postMessage({sourceName:f,targetName:d,stream:o.CANCEL_COMPLETE,streamId:c,success:!0})},function(b){h.postMessage({sourceName:f,targetName:d,stream:o.CANCEL_COMPLETE,streamId:c,reason:s(b)})}),g.sinkCapability.reject(s(u.reason)),g.isCancelled=!0,delete this.streamSinks[c];break;default:throw new Error("Unexpected stream case")}}async _deleteStreamController(u,c){await Promise.allSettled([u.startCall&&u.startCall.promise,u.pullCall&&u.pullCall.promise,u.cancelCall&&u.cancelCall.promise]),delete this.streamControllers[c]}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}t.MessageHandler=a},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var r=n(1);class i{#e;#t;constructor({parsedData:s,rawData:a}){this.#e=s,this.#t=a}getRaw(){return this.#t}get(s){return this.#e.get(s)??null}getAll(){return(0,r.objectFromMap)(this.#e)}has(s){return this.#e.has(s)}}t.Metadata=i},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalContentConfig=void 0;var r=n(1),i=n(8);let o=Symbol("INTERNAL");class s{#e=!0;constructor(u,c){this.name=u,this.intent=c}get visible(){return this.#e}_setVisible(u,c){u!==o&&(0,r.unreachable)("Internal method `_setVisible` called."),this.#e=c}}class a{#e=null;#t=new Map;#i=null;#r=null;constructor(u){if(this.name=null,this.creator=null,u!==null){this.name=u.name,this.creator=u.creator,this.#r=u.order;for(let c of u.groups)this.#t.set(c.id,new s(c.name,c.intent));if(u.baseState==="OFF")for(let c of this.#t.values())c._setVisible(o,!1);for(let c of u.on)this.#t.get(c)._setVisible(o,!0);for(let c of u.off)this.#t.get(c)._setVisible(o,!1);this.#i=this.getHash()}}#o(u){let c=u.length;if(c<2)return!0;let f=u[0];for(let d=1;d<c;d++){let h=u[d],m;if(Array.isArray(h))m=this.#o(h);else if(this.#t.has(h))m=this.#t.get(h).visible;else return(0,r.warn)(`Optional content group not found: ${h}`),!0;switch(f){case"And":if(!m)return!1;break;case"Or":if(m)return!0;break;case"Not":return!m;default:return!0}}return f==="And"}isVisible(u){if(this.#t.size===0)return!0;if(!u)return(0,r.warn)("Optional content group not defined."),!0;if(u.type==="OCG")return this.#t.has(u.id)?this.#t.get(u.id).visible:((0,r.warn)(`Optional content group not found: ${u.id}`),!0);if(u.type==="OCMD"){if(u.expression)return this.#o(u.expression);if(!u.policy||u.policy==="AnyOn"){for(let c of u.ids){if(!this.#t.has(c))return(0,r.warn)(`Optional content group not found: ${c}`),!0;if(this.#t.get(c).visible)return!0}return!1}else if(u.policy==="AllOn"){for(let c of u.ids){if(!this.#t.has(c))return(0,r.warn)(`Optional content group not found: ${c}`),!0;if(!this.#t.get(c).visible)return!1}return!0}else if(u.policy==="AnyOff"){for(let c of u.ids){if(!this.#t.has(c))return(0,r.warn)(`Optional content group not found: ${c}`),!0;if(!this.#t.get(c).visible)return!0}return!1}else if(u.policy==="AllOff"){for(let c of u.ids){if(!this.#t.has(c))return(0,r.warn)(`Optional content group not found: ${c}`),!0;if(this.#t.get(c).visible)return!1}return!0}return(0,r.warn)(`Unknown optional content policy ${u.policy}.`),!0}return(0,r.warn)(`Unknown group type ${u.type}.`),!0}setVisibility(u,c=!0){if(!this.#t.has(u)){(0,r.warn)(`Optional content group not found: ${u}`);return}this.#t.get(u)._setVisible(o,!!c),this.#e=null}get hasInitialVisibility(){return this.getHash()===this.#i}getOrder(){return this.#t.size?this.#r?this.#r.slice():[...this.#t.keys()]:null}getGroups(){return this.#t.size>0?(0,r.objectFromMap)(this.#t):null}getGroup(u){return this.#t.get(u)||null}getHash(){if(this.#e!==null)return this.#e;let u=new i.MurmurHash3_64;for(let[c,f]of this.#t)u.update(`${c}:${f.visible}`);return this.#e=u.hexdigest()}}t.OptionalContentConfig=a},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0;var r=n(1),i=n(6);class o{constructor({length:u,initialData:c,progressiveDone:f=!1,contentDispositionFilename:d=null,disableRange:h=!1,disableStream:m=!1},g){if((0,r.assert)(g,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=f,this._contentDispositionFilename=d,c?.length>0){let b=c instanceof Uint8Array&&c.byteLength===c.buffer.byteLength?c.buffer:new Uint8Array(c).buffer;this._queuedChunks.push(b)}this._pdfDataRangeTransport=g,this._isStreamingSupported=!m,this._isRangeSupported=!h,this._contentLength=u,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((b,v)=>{this._onReceiveData({begin:b,chunk:v})}),this._pdfDataRangeTransport.addProgressListener((b,v)=>{this._onProgress({loaded:b,total:v})}),this._pdfDataRangeTransport.addProgressiveReadListener(b=>{this._onReceiveData({chunk:b})}),this._pdfDataRangeTransport.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}_onReceiveData({begin:u,chunk:c}){let f=c instanceof Uint8Array&&c.byteLength===c.buffer.byteLength?c.buffer:new Uint8Array(c).buffer;if(u===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(f):this._queuedChunks.push(f);else{let d=this._rangeReaders.some(function(h){return h._begin!==u?!1:(h._enqueue(f),!0)});(0,r.assert)(d,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}_onProgress(u){u.total===void 0?this._rangeReaders[0]?.onProgress?.({loaded:u.loaded}):this._fullRequestReader?.onProgress?.({loaded:u.loaded,total:u.total})}_onProgressiveDone(){this._fullRequestReader?.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(u){let c=this._rangeReaders.indexOf(u);c>=0&&this._rangeReaders.splice(c,1)}getFullReader(){(0,r.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");let u=this._queuedChunks;return this._queuedChunks=null,new s(this,u,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(u,c){if(c<=this._progressiveDataLength)return null;let f=new a(this,u,c);return this._pdfDataRangeTransport.requestDataRange(u,c),this._rangeReaders.push(f),f}cancelAllRequests(u){this._fullRequestReader?.cancel(u);for(let c of this._rangeReaders.slice(0))c.cancel(u);this._pdfDataRangeTransport.abort()}}t.PDFDataTransportStream=o;class s{constructor(u,c,f=!1,d=null){this._stream=u,this._done=f||!1,this._filename=(0,i.isPdfFile)(d)?d:null,this._queuedChunks=c||[],this._loaded=0;for(let h of this._queuedChunks)this._loaded+=h.byteLength;this._requests=[],this._headersReady=Promise.resolve(),u._fullRequestReader=this,this.onProgress=null}_enqueue(u){this._done||(this._requests.length>0?this._requests.shift().resolve({value:u,done:!1}):this._queuedChunks.push(u),this._loaded+=u.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};let u=(0,r.createPromiseCapability)();return this._requests.push(u),u.promise}cancel(u){this._done=!0;for(let c of this._requests)c.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class a{constructor(u,c,f){this._stream=u,this._begin=c,this._end=f,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(u){if(!this._done){if(this._requests.length===0)this._queuedChunk=u;else{this._requests.shift().resolve({value:u,done:!1});for(let f of this._requests)f.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){let c=this._queuedChunk;return this._queuedChunk=null,{value:c,done:!1}}if(this._done)return{value:void 0,done:!0};let u=(0,r.createPromiseCapability)();return this._requests.push(u),u.promise}cancel(u){this._done=!0;for(let c of this._requests)c.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaText=void 0;class n{static textContent(i){let o=[],s={items:o,styles:Object.create(null)};function a(l){if(!l)return;let u=null,c=l.name;if(c==="#text")u=l.value;else if(n.shouldBuildText(c))l?.attributes?.textContent?u=l.attributes.textContent:l.value&&(u=l.value);else return;if(u!==null&&o.push({str:u}),!!l.children)for(let f of l.children)a(f)}return a(i),s}static shouldBuildText(i){return!(i==="textarea"||i==="input"||i==="option"||i==="select")}}t.XfaText=n},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NodeStandardFontDataFactory=t.NodeCanvasFactory=t.NodeCMapReaderFactory=void 0;var r=n(7);let i=function(l){return new Promise((u,c)=>{fY().readFile(l,(d,h)=>{if(d||!h){c(new Error(d));return}u(new Uint8Array(h))})})};class o extends r.BaseCanvasFactory{_createCanvas(u,c){return t_e().createCanvas(u,c)}}t.NodeCanvasFactory=o;class s extends r.BaseCMapReaderFactory{_fetchData(u,c){return i(u).then(f=>({cMapData:f,compressionType:c}))}}t.NodeCMapReaderFactory=s;class a extends r.BaseStandardFontDataFactory{_fetchData(u){return i(u)}}t.NodeStandardFontDataFactory=a},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var r=n(1),i=n(22);let o=fY(),s=n_e(),a=r_e(),l=i_e(),u=/^file:\/\/\/[a-zA-Z]:\//;function c(y){let _=l.parse(y);return _.protocol==="file:"||_.host?_:/^[a-z]:[/\\]/i.test(y)?l.parse(`file:///${y}`):(_.host||(_.protocol="file:"),_)}class f{constructor(_){this.source=_,this.url=c(_.url),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.httpHeaders=this.isHttp&&_.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new v(this):new g(this),this._fullRequestReader}getRangeReader(_,w){if(w<=this._progressiveDataLength)return null;let k=this.isFsUrl?new x(this,_,w):new b(this,_,w);return this._rangeRequestReaders.push(k),k}cancelAllRequests(_){this._fullRequestReader?.cancel(_);for(let w of this._rangeRequestReaders.slice(0))w.cancel(_)}}t.PDFNodeStream=f;class d{constructor(_){this._url=_.url,this._done=!1,this._storedError=null,this.onProgress=null;let w=_.source;this._contentLength=w.length,this._loaded=0,this._filename=null,this._disableRange=w.disableRange||!1,this._rangeChunkSize=w.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!w.disableStream,this._isRangeSupported=!w.disableRange,this._readableStream=null,this._readCapability=(0,r.createPromiseCapability)(),this._headersCapability=(0,r.createPromiseCapability)()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;let _=this._readableStream.read();return _===null?(this._readCapability=(0,r.createPromiseCapability)(),this.read()):(this._loaded+=_.length,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(_).buffer,done:!1})}cancel(_){if(!this._readableStream){this._error(_);return}this._readableStream.destroy(_)}_error(_){this._storedError=_,this._readCapability.resolve()}_setReadableStream(_){this._readableStream=_,_.on("readable",()=>{this._readCapability.resolve()}),_.on("end",()=>{_.destroy(),this._done=!0,this._readCapability.resolve()}),_.on("error",w=>{this._error(w)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new r.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class h{constructor(_){this._url=_.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,r.createPromiseCapability)();let w=_.source;this._isStreamingSupported=!w.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;let _=this._readableStream.read();return _===null?(this._readCapability=(0,r.createPromiseCapability)(),this.read()):(this._loaded+=_.length,this.onProgress?.({loaded:this._loaded}),{value:new Uint8Array(_).buffer,done:!1})}cancel(_){if(!this._readableStream){this._error(_);return}this._readableStream.destroy(_)}_error(_){this._storedError=_,this._readCapability.resolve()}_setReadableStream(_){this._readableStream=_,_.on("readable",()=>{this._readCapability.resolve()}),_.on("end",()=>{_.destroy(),this._done=!0,this._readCapability.resolve()}),_.on("error",w=>{this._error(w)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function m(y,_){return{protocol:y.protocol,auth:y.auth,host:y.hostname,port:y.port,path:y.path,method:"GET",headers:_}}class g extends d{constructor(_){super(_);let w=k=>{if(k.statusCode===404){let W=new r.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=W,this._headersCapability.reject(W);return}this._headersCapability.resolve(),this._setReadableStream(k);let O=W=>this._readableStream.headers[W.toLowerCase()],{allowRangeRequests:M,suggestedLength:I}=(0,i.validateRangeRequestCapabilities)({getResponseHeader:O,isHttp:_.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=M,this._contentLength=I||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(O)};this._request=null,this._url.protocol==="http:"?this._request=s.request(m(this._url,_.httpHeaders),w):this._request=a.request(m(this._url,_.httpHeaders),w),this._request.on("error",k=>{this._storedError=k,this._headersCapability.reject(k)}),this._request.end()}}class b extends h{constructor(_,w,k){super(_),this._httpHeaders={};for(let M in _.httpHeaders){let I=_.httpHeaders[M];I!==void 0&&(this._httpHeaders[M]=I)}this._httpHeaders.Range=`bytes=${w}-${k-1}`;let O=M=>{if(M.statusCode===404){let I=new r.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=I;return}this._setReadableStream(M)};this._request=null,this._url.protocol==="http:"?this._request=s.request(m(this._url,this._httpHeaders),O):this._request=a.request(m(this._url,this._httpHeaders),O),this._request.on("error",M=>{this._storedError=M}),this._request.end()}}class v extends d{constructor(_){super(_);let w=decodeURIComponent(this._url.path);u.test(this._url.href)&&(w=w.replace(/^\//,"")),o.lstat(w,(k,O)=>{if(k){k.code==="ENOENT"&&(k=new r.MissingPDFException(`Missing PDF "${w}".`)),this._storedError=k,this._headersCapability.reject(k);return}this._contentLength=O.size,this._setReadableStream(o.createReadStream(w)),this._headersCapability.resolve()})}}class x extends h{constructor(_,w,k){super(_);let O=decodeURIComponent(this._url.path);u.test(this._url.href)&&(O=O.replace(/^\//,"")),this._setReadableStream(o.createReadStream(O,{start:w,end:k-1}))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=l,t.extractFilenameFromHeader=a,t.validateRangeRequestCapabilities=s,t.validateResponseStatus=u;var r=n(1),i=n(23),o=n(6);function s({getResponseHeader:c,isHttp:f,rangeChunkSize:d,disableRange:h}){let m={allowRangeRequests:!1,suggestedLength:void 0},g=parseInt(c("Content-Length"),10);return!Number.isInteger(g)||(m.suggestedLength=g,g<=2*d)||h||!f||c("Accept-Ranges")!=="bytes"||(c("Content-Encoding")||"identity")!=="identity"||(m.allowRangeRequests=!0),m}function a(c){let f=c("Content-Disposition");if(f){let d=(0,i.getFilenameFromContentDispositionHeader)(f);if(d.includes("%"))try{d=decodeURIComponent(d)}catch{}if((0,o.isPdfFile)(d))return d}return null}function l(c,f){return c===404||c===0&&f.startsWith("file:")?new r.MissingPDFException('Missing PDF "'+f+'".'):new r.UnexpectedResponseException(`Unexpected server response (${c}) while retrieving PDF "${f}".`,c)}function u(c){return c===200||c===206}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=i;var r=n(1);function i(o){let s=!0,a=l("filename\\*","i").exec(o);if(a){a=a[1];let g=d(a);return g=unescape(g),g=h(g),g=m(g),c(g)}if(a=f(o),a){let g=m(a);return c(g)}if(a=l("filename","i").exec(o),a){a=a[1];let g=d(a);return g=m(g),c(g)}function l(g,b){return new RegExp("(?:^|;)\\s*"+g+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',b)}function u(g,b){if(g){if(!/^[\x00-\xFF]+$/.test(b))return b;try{let v=new TextDecoder(g,{fatal:!0}),x=(0,r.stringToBytes)(b);b=v.decode(x),s=!1}catch{}}return b}function c(g){return s&&/[\x80-\xff]/.test(g)&&(g=u("utf-8",g),s&&(g=u("iso-8859-1",g))),g}function f(g){let b=[],v,x=l("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(v=x.exec(g))!==null;){let[,_,w,k]=v;if(_=parseInt(_,10),_ in b){if(_===0)break;continue}b[_]=[w,k]}let y=[];for(let _=0;_<b.length&&_ in b;++_){let[w,k]=b[_];k=d(k),w&&(k=unescape(k),_===0&&(k=h(k))),y.push(k)}return y.join("")}function d(g){if(g.startsWith('"')){let b=g.slice(1).split('\\"');for(let v=0;v<b.length;++v){let x=b[v].indexOf('"');x!==-1&&(b[v]=b[v].slice(0,x),b.length=v+1),b[v]=b[v].replace(/\\(.)/g,"$1")}g=b.join('"')}return g}function h(g){let b=g.indexOf("'");if(b===-1)return g;let v=g.slice(0,b),y=g.slice(b+1).replace(/^[^']*'/,"");return u(v,y)}function m(g){return!g.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(g)?g:g.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(b,v,x,y){if(x==="q"||x==="Q")return y=y.replace(/_/g," "),y=y.replace(/=([0-9a-fA-F]{2})/g,function(_,w){return String.fromCharCode(parseInt(w,16))}),u(v,y);try{y=atob(y)}catch{}return u(v,y)})}return""}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNetworkStream=void 0;var r=n(1),i=n(22);let o=200,s=206;function a(d){let h=d.response;return typeof h!="string"?h:(0,r.stringToBytes)(h).buffer}class l{constructor(h,m={}){this.url=h,this.isHttp=/^https?:/i.test(h),this.httpHeaders=this.isHttp&&m.httpHeaders||Object.create(null),this.withCredentials=m.withCredentials||!1,this.getXhr=m.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(h,m,g){let b={begin:h,end:m};for(let v in g)b[v]=g[v];return this.request(b)}requestFull(h){return this.request(h)}request(h){let m=this.getXhr(),g=this.currXhrId++,b=this.pendingRequests[g]={xhr:m};m.open("GET",this.url),m.withCredentials=this.withCredentials;for(let v in this.httpHeaders){let x=this.httpHeaders[v];x!==void 0&&m.setRequestHeader(v,x)}return this.isHttp&&"begin"in h&&"end"in h?(m.setRequestHeader("Range",`bytes=${h.begin}-${h.end-1}`),b.expectedStatus=s):b.expectedStatus=o,m.responseType="arraybuffer",h.onError&&(m.onerror=function(v){h.onError(m.status)}),m.onreadystatechange=this.onStateChange.bind(this,g),m.onprogress=this.onProgress.bind(this,g),b.onHeadersReceived=h.onHeadersReceived,b.onDone=h.onDone,b.onError=h.onError,b.onProgress=h.onProgress,m.send(null),g}onProgress(h,m){let g=this.pendingRequests[h];!g||g.onProgress?.(m)}onStateChange(h,m){let g=this.pendingRequests[h];if(!g)return;let b=g.xhr;if(b.readyState>=2&&g.onHeadersReceived&&(g.onHeadersReceived(),delete g.onHeadersReceived),b.readyState!==4||!(h in this.pendingRequests))return;if(delete this.pendingRequests[h],b.status===0&&this.isHttp){g.onError?.(b.status);return}let v=b.status||o;if(!(v===o&&g.expectedStatus===s)&&v!==g.expectedStatus){g.onError?.(b.status);return}let y=a(b);if(v===s){let _=b.getResponseHeader("Content-Range"),w=/bytes (\d+)-(\d+)\/(\d+)/.exec(_);g.onDone({begin:parseInt(w[1],10),chunk:y})}else y?g.onDone({begin:0,chunk:y}):g.onError?.(b.status)}getRequestXhr(h){return this.pendingRequests[h].xhr}isPendingRequest(h){return h in this.pendingRequests}abortRequest(h){let m=this.pendingRequests[h].xhr;delete this.pendingRequests[h],m.abort()}}class u{constructor(h){this._source=h,this._manager=new l(h.url,{httpHeaders:h.httpHeaders,withCredentials:h.withCredentials}),this._rangeChunkSize=h.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(h){let m=this._rangeRequestReaders.indexOf(h);m>=0&&this._rangeRequestReaders.splice(m,1)}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new c(this._manager,this._source),this._fullRequestReader}getRangeReader(h,m){let g=new f(this._manager,h,m);return g.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(g),g}cancelAllRequests(h){this._fullRequestReader?.cancel(h);for(let m of this._rangeRequestReaders.slice(0))m.cancel(h)}}t.PDFNetworkStream=u;class c{constructor(h,m){this._manager=h;let g={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=m.url,this._fullRequestId=h.requestFull(g),this._headersReceivedCapability=(0,r.createPromiseCapability)(),this._disableRange=m.disableRange||!1,this._contentLength=m.length,this._rangeChunkSize=m.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){let h=this._fullRequestId,m=this._manager.getRequestXhr(h),g=x=>m.getResponseHeader(x),{allowRangeRequests:b,suggestedLength:v}=(0,i.validateRangeRequestCapabilities)({getResponseHeader:g,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});b&&(this._isRangeSupported=!0),this._contentLength=v||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(g),this._isRangeSupported&&this._manager.abortRequest(h),this._headersReceivedCapability.resolve()}_onDone(h){if(h&&(this._requests.length>0?this._requests.shift().resolve({value:h.chunk,done:!1}):this._cachedChunks.push(h.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(let m of this._requests)m.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(h){this._storedError=(0,i.createResponseStatusError)(h,this._url),this._headersReceivedCapability.reject(this._storedError);for(let m of this._requests)m.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(h){this.onProgress?.({loaded:h.loaded,total:h.lengthComputable?h.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};let h=(0,r.createPromiseCapability)();return this._requests.push(h),h.promise}cancel(h){this._done=!0,this._headersReceivedCapability.reject(h);for(let m of this._requests)m.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class f{constructor(h,m,g){this._manager=h;let b={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=h.url,this._requestId=h.requestRange(m,g,b),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){this.onClosed?.(this)}_onDone(h){let m=h.chunk;this._requests.length>0?this._requests.shift().resolve({value:m,done:!1}):this._queuedChunk=m,this._done=!0;for(let g of this._requests)g.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(h){this._storedError=(0,i.createResponseStatusError)(h,this._url);for(let m of this._requests)m.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(h){this.isStreamingSupported||this.onProgress?.({loaded:h.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){let m=this._queuedChunk;return this._queuedChunk=null,{value:m,done:!1}}if(this._done)return{value:void 0,done:!0};let h=(0,r.createPromiseCapability)();return this._requests.push(h),h.promise}cancel(h){this._done=!0;for(let m of this._requests)m.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var r=n(1),i=n(22);function o(f,d,h){return{method:"GET",headers:f,signal:h.signal,mode:"cors",credentials:d?"include":"same-origin",redirect:"follow"}}function s(f){let d=new Headers;for(let h in f){let m=f[h];m!==void 0&&d.append(h,m)}return d}function a(f){return f instanceof Uint8Array?f.buffer:f instanceof ArrayBuffer?f:((0,r.warn)(`getArrayBuffer - unexpected data format: ${f}`),new Uint8Array(f).buffer)}class l{constructor(d){this.source=d,this.isHttp=/^https?:/i.test(d.url),this.httpHeaders=this.isHttp&&d.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new u(this),this._fullRequestReader}getRangeReader(d,h){if(h<=this._progressiveDataLength)return null;let m=new c(this,d,h);return this._rangeRequestReaders.push(m),m}cancelAllRequests(d){this._fullRequestReader?.cancel(d);for(let h of this._rangeRequestReaders.slice(0))h.cancel(d)}}t.PDFFetchStream=l;class u{constructor(d){this._stream=d,this._reader=null,this._loaded=0,this._filename=null;let h=d.source;this._withCredentials=h.withCredentials||!1,this._contentLength=h.length,this._headersCapability=(0,r.createPromiseCapability)(),this._disableRange=h.disableRange||!1,this._rangeChunkSize=h.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!h.disableStream,this._isRangeSupported=!h.disableRange,this._headers=s(this._stream.httpHeaders);let m=h.url;fetch(m,o(this._headers,this._withCredentials,this._abortController)).then(g=>{if(!(0,i.validateResponseStatus)(g.status))throw(0,i.createResponseStatusError)(g.status,m);this._reader=g.body.getReader(),this._headersCapability.resolve();let b=y=>g.headers.get(y),{allowRangeRequests:v,suggestedLength:x}=(0,i.validateRangeRequestCapabilities)({getResponseHeader:b,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=v,this._contentLength=x||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(b),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new r.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise;let{value:d,done:h}=await this._reader.read();return h?{value:d,done:h}:(this._loaded+=d.byteLength,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:a(d),done:!1})}cancel(d){this._reader?.cancel(d),this._abortController.abort()}}class c{constructor(d,h,m){this._stream=d,this._reader=null,this._loaded=0;let g=d.source;this._withCredentials=g.withCredentials||!1,this._readCapability=(0,r.createPromiseCapability)(),this._isStreamingSupported=!g.disableStream,this._abortController=new AbortController,this._headers=s(this._stream.httpHeaders),this._headers.append("Range",`bytes=${h}-${m-1}`);let b=g.url;fetch(b,o(this._headers,this._withCredentials,this._abortController)).then(v=>{if(!(0,i.validateResponseStatus)(v.status))throw(0,i.createResponseStatusError)(v.status,b);this._readCapability.resolve(),this._reader=v.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;let{value:d,done:h}=await this._reader.read();return h?{value:d,done:h}:(this._loaded+=d.byteLength,this.onProgress?.({loaded:this._loaded}),{value:a(d),done:!1})}cancel(d){this._reader?.cancel(d),this._abortController.abort()}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextLayerRenderTask=void 0,t.renderTextLayer=g,t.updateTextLayer=b;var r=n(1),i=n(6);let o=1e5,s=30,a=.8,l=new Map;function u(v,x){let y;if(x&&r.FeatureTest.isOffscreenCanvasSupported)y=new OffscreenCanvas(v,v).getContext("2d",{alpha:!1});else{let _=document.createElement("canvas");_.width=_.height=v,y=_.getContext("2d",{alpha:!1})}return y}function c(v,x){let y=l.get(v);if(y)return y;let _=u(s,x);_.font=`${s}px ${v}`;let w=_.measureText(""),k=w.fontBoundingBoxAscent,O=Math.abs(w.fontBoundingBoxDescent);if(k){let I=k/(k+O);return l.set(v,I),_.canvas.width=_.canvas.height=0,I}_.strokeStyle="red",_.clearRect(0,0,s,s),_.strokeText("g",0,0);let M=_.getImageData(0,0,s,s).data;O=0;for(let I=M.length-1-3;I>=0;I-=4)if(M[I]>0){O=Math.ceil(I/4/s);break}_.clearRect(0,0,s,s),_.strokeText("A",0,s),M=_.getImageData(0,0,s,s).data,k=0;for(let I=0,W=M.length;I<W;I+=4)if(M[I]>0){k=s-Math.floor(I/4/s);break}if(_.canvas.width=_.canvas.height=0,k){let I=k/(k+O);return l.set(v,I),I}return l.set(v,a),a}function f(v,x,y){let _=document.createElement("span"),w={angle:0,canvasWidth:0,hasText:x.str!=="",hasEOL:x.hasEOL,fontSize:0};v._textDivs.push(_);let k=r.Util.transform(v._transform,x.transform),O=Math.atan2(k[1],k[0]),M=y[x.fontName];M.vertical&&(O+=Math.PI/2);let I=Math.hypot(k[2],k[3]),W=I*c(M.fontFamily,v._isOffscreenCanvasSupported),J,H;O===0?(J=k[4],H=k[5]-W):(J=k[4]+W*Math.sin(O),H=k[5]-W*Math.cos(O));let ee="calc(var(--scale-factor)*",j=_.style;v._container===v._rootContainer?(j.left=`${(100*J/v._pageWidth).toFixed(2)}%`,j.top=`${(100*H/v._pageHeight).toFixed(2)}%`):(j.left=`${ee}${J.toFixed(2)}px)`,j.top=`${ee}${H.toFixed(2)}px)`),j.fontSize=`${ee}${I.toFixed(2)}px)`,j.fontFamily=M.fontFamily,w.fontSize=I,_.setAttribute("role","presentation"),_.textContent=x.str,_.dir=x.dir,v._fontInspectorEnabled&&(_.dataset.fontName=x.fontName),O!==0&&(w.angle=O*(180/Math.PI));let V=!1;if(x.str.length>1)V=!0;else if(x.str!==" "&&x.transform[0]!==x.transform[3]){let B=Math.abs(x.transform[0]),N=Math.abs(x.transform[3]);B!==N&&Math.max(B,N)/Math.min(B,N)>1.5&&(V=!0)}V&&(w.canvasWidth=M.vertical?x.height:x.width),v._textDivProperties.set(_,w),v._isReadableStream&&v._layoutText(_)}function d(v){let{div:x,scale:y,properties:_,ctx:w,prevFontSize:k,prevFontFamily:O}=v,{style:M}=x,I="";if(_.canvasWidth!==0&&_.hasText){let{fontFamily:W}=M,{canvasWidth:J,fontSize:H}=_;(k!==H||O!==W)&&(w.font=`${H*y}px ${W}`,v.prevFontSize=H,v.prevFontFamily=W);let{width:ee}=w.measureText(x.textContent);ee>0&&(I=`scaleX(${J*y/ee})`)}_.angle!==0&&(I=`rotate(${_.angle}deg) ${I}`),I.length>0&&(M.transform=I)}function h(v){if(v._canceled)return;let x=v._textDivs,y=v._capability;if(x.length>o){y.resolve();return}if(!v._isReadableStream)for(let w of x)v._layoutText(w);y.resolve()}class m{constructor({textContentSource:x,container:y,viewport:_,textDivs:w,textDivProperties:k,textContentItemsStr:O,isOffscreenCanvasSupported:M}){this._textContentSource=x,this._isReadableStream=x instanceof ReadableStream,this._container=this._rootContainer=y,this._textDivs=w||[],this._textContentItemsStr=O||[],this._isOffscreenCanvasSupported=M,this._fontInspectorEnabled=!!globalThis.FontInspector?.enabled,this._reader=null,this._textDivProperties=k||new WeakMap,this._canceled=!1,this._capability=(0,r.createPromiseCapability)(),this._layoutTextParams={prevFontSize:null,prevFontFamily:null,div:null,scale:_.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:u(0,M)};let{pageWidth:I,pageHeight:W,pageX:J,pageY:H}=_.rawDims;this._transform=[1,0,0,-1,-J,H+W],this._pageWidth=I,this._pageHeight=W,(0,i.setLayerDimensions)(y,_),this._capability.promise.finally(()=>{this._layoutTextParams=null}).catch(()=>{})}get promise(){return this._capability.promise}cancel(){this._canceled=!0,this._reader&&(this._reader.cancel(new r.AbortException("TextLayer task cancelled.")).catch(()=>{}),this._reader=null),this._capability.reject(new r.AbortException("TextLayer task cancelled."))}_processItems(x,y){for(let _ of x){if(_.str===void 0){if(_.type==="beginMarkedContentProps"||_.type==="beginMarkedContent"){let w=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),_.id!==null&&this._container.setAttribute("id",`${_.id}`),w.append(this._container)}else _.type==="endMarkedContent"&&(this._container=this._container.parentNode);continue}this._textContentItemsStr.push(_.str),f(this,_,y)}}_layoutText(x){let y=this._layoutTextParams.properties=this._textDivProperties.get(x);if(this._layoutTextParams.div=x,d(this._layoutTextParams),y.hasText&&this._container.append(x),y.hasEOL){let _=document.createElement("br");_.setAttribute("role","presentation"),this._container.append(_)}}_render(){let x=(0,r.createPromiseCapability)(),y=Object.create(null);if(this._isReadableStream){let _=()=>{this._reader.read().then(({value:w,done:k})=>{if(k){x.resolve();return}Object.assign(y,w.styles),this._processItems(w.items,y),_()},x.reject)};this._reader=this._textContentSource.getReader(),_()}else if(this._textContentSource){let{items:_,styles:w}=this._textContentSource;this._processItems(_,w),x.resolve()}else throw new Error('No "textContentSource" parameter specified.');x.promise.then(()=>{y=null,h(this)},this._capability.reject)}}t.TextLayerRenderTask=m;function g(v){!v.textContentSource&&(v.textContent||v.textContentStream)&&((0,i.deprecated)("The TextLayerRender `textContent`/`textContentStream` parameters will be removed in the future, please use `textContentSource` instead."),v.textContentSource=v.textContent||v.textContentStream);let x=new m(v);return x._render(),x}function b({container:v,viewport:x,textDivs:y,textDivProperties:_,isOffscreenCanvasSupported:w,mustRotate:k=!0,mustRescale:O=!0}){if(k&&(0,i.setLayerDimensions)(v,{rotation:x.rotation}),O){let M=u(0,w),W={prevFontSize:null,prevFontFamily:null,div:null,scale:x.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:M};for(let J of y)W.properties=_.get(J),W.div=J,d(W)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditorLayer=void 0;var r=n(1),i=n(5),o=n(28),s=n(29),a=n(6);class l{#e;#t=!1;#i=this.pointerup.bind(this);#r=this.pointerdown.bind(this);#o=new Map;#l=!1;#u=!1;#n;static _initialized=!1;constructor(c){l._initialized||(l._initialized=!0,o.FreeTextEditor.initialize(c.l10n),s.InkEditor.initialize(c.l10n)),c.uiManager.registerEditorTypes([o.FreeTextEditor,s.InkEditor]),this.#n=c.uiManager,this.pageIndex=c.pageIndex,this.div=c.div,this.#e=c.accessibilityManager,this.#n.addLayer(this)}get isEmpty(){return this.#o.size===0}updateToolbar(c){this.#n.updateToolbar(c)}updateMode(c=this.#n.getMode()){this.#d(),c===r.AnnotationEditorType.INK?(this.addInkEditorIfNeeded(!1),this.disableClick()):this.enableClick(),this.#n.unselectAll(),c!==r.AnnotationEditorType.NONE&&(this.div.classList.toggle("freeTextEditing",c===r.AnnotationEditorType.FREETEXT),this.div.classList.toggle("inkEditing",c===r.AnnotationEditorType.INK),this.div.hidden=!1)}addInkEditorIfNeeded(c){if(!c&&this.#n.getMode()!==r.AnnotationEditorType.INK)return;if(!c){for(let d of this.#o.values())if(d.isEmpty()){d.setInBackground();return}}this.#c({offsetX:0,offsetY:0}).setInBackground()}setEditingState(c){this.#n.setEditingState(c)}addCommands(c){this.#n.addCommands(c)}enable(){this.div.style.pointerEvents="auto";for(let c of this.#o.values())c.enableEditing()}disable(){this.div.style.pointerEvents="none";for(let c of this.#o.values())c.disableEditing();this.#d(),this.isEmpty&&(this.div.hidden=!0)}setActiveEditor(c){this.#n.getActive()!==c&&this.#n.setActiveEditor(c)}enableClick(){this.div.addEventListener("pointerdown",this.#r),this.div.addEventListener("pointerup",this.#i)}disableClick(){this.div.removeEventListener("pointerdown",this.#r),this.div.removeEventListener("pointerup",this.#i)}attach(c){this.#o.set(c.id,c)}detach(c){this.#o.delete(c.id),this.#e?.removePointerInTextLayer(c.contentDiv)}remove(c){this.#n.removeEditor(c),this.detach(c),c.div.style.display="none",setTimeout(()=>{c.div.style.display="",c.div.remove(),c.isAttachedToDOM=!1,document.activeElement===document.body&&this.#n.focusMainContainer()},0),this.#u||this.addInkEditorIfNeeded(!1)}#s(c){c.parent!==this&&(this.attach(c),c.parent?.detach(c),c.setParent(this),c.div&&c.isAttachedToDOM&&(c.div.remove(),this.div.append(c.div)))}add(c){if(this.#s(c),this.#n.addEditor(c),this.attach(c),!c.isAttachedToDOM){let f=c.render();this.div.append(f),c.isAttachedToDOM=!0}this.moveEditorInDOM(c),c.onceAdded(),this.#n.addToAnnotationStorage(c)}moveEditorInDOM(c){this.#e?.moveElementInDOM(this.div,c.div,c.contentDiv,!0)}addOrRebuild(c){c.needsToBeRebuilt()?c.rebuild():this.add(c)}addANewEditor(c){let f=()=>{this.addOrRebuild(c)},d=()=>{c.remove()};this.addCommands({cmd:f,undo:d,mustExec:!0})}addUndoableEditor(c){let f=()=>{this.addOrRebuild(c)},d=()=>{c.remove()};this.addCommands({cmd:f,undo:d,mustExec:!1})}getNextId(){return this.#n.getId()}#h(c){switch(this.#n.getMode()){case r.AnnotationEditorType.FREETEXT:return new o.FreeTextEditor(c);case r.AnnotationEditorType.INK:return new s.InkEditor(c)}return null}deserialize(c){switch(c.annotationType){case r.AnnotationEditorType.FREETEXT:return o.FreeTextEditor.deserialize(c,this,this.#n);case r.AnnotationEditorType.INK:return s.InkEditor.deserialize(c,this,this.#n)}return null}#c(c){let f=this.getNextId(),d=this.#h({parent:this,id:f,x:c.offsetX,y:c.offsetY,uiManager:this.#n});return d&&this.add(d),d}setSelected(c){this.#n.setSelected(c)}toggleSelected(c){this.#n.toggleSelected(c)}isSelected(c){return this.#n.isSelected(c)}unselect(c){this.#n.unselect(c)}pointerup(c){let{isMac:f}=r.FeatureTest.platform;if(!(c.button!==0||c.ctrlKey&&f)&&c.target===this.div&&!!this.#l){if(this.#l=!1,!this.#t){this.#t=!0;return}this.#c(c)}}pointerdown(c){let{isMac:f}=r.FeatureTest.platform;if(c.button!==0||c.ctrlKey&&f||c.target!==this.div)return;this.#l=!0;let d=this.#n.getActive();this.#t=!d||d.isEmpty()}drop(c){let f=c.dataTransfer.getData("text/plain"),d=this.#n.getEditor(f);if(!d)return;c.preventDefault(),c.dataTransfer.dropEffect="move",this.#s(d);let h=this.div.getBoundingClientRect(),m=c.clientX-h.x,g=c.clientY-h.y;d.translate(m-d.startX,g-d.startY),this.moveEditorInDOM(d),d.div.focus()}dragover(c){c.preventDefault()}destroy(){this.#n.getActive()?.parent===this&&this.#n.setActiveEditor(null);for(let c of this.#o.values())this.#e?.removePointerInTextLayer(c.contentDiv),c.setParent(null),c.isAttachedToDOM=!1,c.div.remove();this.div=null,this.#o.clear(),this.#n.removeLayer(this)}#d(){this.#u=!0;for(let c of this.#o.values())c.isEmpty()&&c.remove();this.#u=!1}render({viewport:c}){this.viewport=c,(0,a.setLayerDimensions)(this.div,c),(0,i.bindEvents)(this,this.div,["dragover","drop"]);for(let f of this.#n.getEditors(this.pageIndex))this.add(f);this.updateMode()}update({viewport:c}){this.#n.commitOrRemove(),this.viewport=c,(0,a.setLayerDimensions)(this.div,{rotation:c.rotation}),this.updateMode()}get pageDimensions(){let{pageWidth:c,pageHeight:f}=this.viewport.rawDims;return[c,f]}}t.AnnotationEditorLayer=l},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FreeTextEditor=void 0;var r=n(1),i=n(5),o=n(4);class s extends o.AnnotationEditor{#e=this.editorDivBlur.bind(this);#t=this.editorDivFocus.bind(this);#i=this.editorDivInput.bind(this);#r=this.editorDivKeydown.bind(this);#o;#l="";#u=`${this.id}-editor`;#n=!1;#s;static _freeTextDefaultContent="";static _l10nPromise;static _internalPadding=0;static _defaultColor=null;static _defaultFontSize=10;static _keyboardManager=new i.KeyboardManager([[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],s.prototype.commitOrRemove]]);static _type="freetext";constructor(l){super({...l,name:"freeTextEditor"}),this.#o=l.color||s._defaultColor||o.AnnotationEditor._defaultLineColor,this.#s=l.fontSize||s._defaultFontSize}static initialize(l){this._l10nPromise=new Map(["free_text2_default_content","editor_free_text2_aria_label"].map(c=>[c,l.get(c)]));let u=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(u.getPropertyValue("--freetext-padding"))}static updateDefaultParams(l,u){switch(l){case r.AnnotationEditorParamsType.FREETEXT_SIZE:s._defaultFontSize=u;break;case r.AnnotationEditorParamsType.FREETEXT_COLOR:s._defaultColor=u;break}}updateParams(l,u){switch(l){case r.AnnotationEditorParamsType.FREETEXT_SIZE:this.#h(u);break;case r.AnnotationEditorParamsType.FREETEXT_COLOR:this.#c(u);break}}static get defaultPropertiesToUpdate(){return[[r.AnnotationEditorParamsType.FREETEXT_SIZE,s._defaultFontSize],[r.AnnotationEditorParamsType.FREETEXT_COLOR,s._defaultColor||o.AnnotationEditor._defaultLineColor]]}get propertiesToUpdate(){return[[r.AnnotationEditorParamsType.FREETEXT_SIZE,this.#s],[r.AnnotationEditorParamsType.FREETEXT_COLOR,this.#o]]}#h(l){let u=f=>{this.editorDiv.style.fontSize=`calc(${f}px * var(--scale-factor))`,this.translate(0,-(f-this.#s)*this.parentScale),this.#s=f,this.#a()},c=this.#s;this.addCommands({cmd:()=>{u(l)},undo:()=>{u(c)},mustExec:!0,type:r.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}#c(l){let u=this.#o;this.addCommands({cmd:()=>{this.#o=this.editorDiv.style.color=l},undo:()=>{this.#o=this.editorDiv.style.color=u},mustExec:!0,type:r.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}getInitialTranslation(){let l=this.parentScale;return[-s._internalPadding*l,-(s._internalPadding+this.#s)*l]}rebuild(){super.rebuild(),this.div!==null&&(this.isAttachedToDOM||this.parent.add(this))}enableEditMode(){this.isInEditMode()||(this.parent.setEditingState(!1),this.parent.updateToolbar(r.AnnotationEditorType.FREETEXT),super.enableEditMode(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this.div.draggable=!1,this.div.removeAttribute("aria-activedescendant"),this.editorDiv.addEventListener("keydown",this.#r),this.editorDiv.addEventListener("focus",this.#t),this.editorDiv.addEventListener("blur",this.#e),this.editorDiv.addEventListener("input",this.#i))}disableEditMode(){!this.isInEditMode()||(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",this.#u),this.div.draggable=!0,this.editorDiv.removeEventListener("keydown",this.#r),this.editorDiv.removeEventListener("focus",this.#t),this.editorDiv.removeEventListener("blur",this.#e),this.editorDiv.removeEventListener("input",this.#i),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freeTextEditing"))}focusin(l){super.focusin(l),l.target!==this.editorDiv&&this.editorDiv.focus()}onceAdded(){this.width||(this.enableEditMode(),this.editorDiv.focus())}isEmpty(){return!this.editorDiv||this.editorDiv.innerText.trim()===""}remove(){this.isEditing=!1,this.parent.setEditingState(!0),this.parent.div.classList.add("freeTextEditing"),super.remove()}#d(){let l=this.editorDiv.getElementsByTagName("div");if(l.length===0)return this.editorDiv.innerText;let u=[];for(let c of l)u.push(c.innerText.replace(/\r\n?|\n/,""));return u.join(`
`)}#a(){let[l,u]=this.parentDimensions,c;if(this.isAttachedToDOM)c=this.div.getBoundingClientRect();else{let{currentLayer:f,div:d}=this,h=d.style.display;d.style.display="hidden",f.div.append(this.div),c=d.getBoundingClientRect(),d.remove(),d.style.display=h}this.width=c.width/l,this.height=c.height/u}commit(){!this.isInEditMode()||(super.commit(),this.#n||(this.#n=!0,this.parent.addUndoableEditor(this)),this.disableEditMode(),this.#l=this.#d().trimEnd(),this.#a())}shouldGetKeyboardEvents(){return this.isInEditMode()}dblclick(l){this.enableEditMode(),this.editorDiv.focus()}keydown(l){l.target===this.div&&l.key==="Enter"&&(this.enableEditMode(),this.editorDiv.focus())}editorDivKeydown(l){s._keyboardManager.exec(this,l)}editorDivFocus(l){this.isEditing=!0}editorDivBlur(l){this.isEditing=!1}editorDivInput(l){this.parent.div.classList.toggle("freeTextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(this.div)return this.div;let l,u;this.width&&(l=this.x,u=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",this.#u),this.enableEditing(),s._l10nPromise.get("editor_free_text2_aria_label").then(f=>this.editorDiv?.setAttribute("aria-label",f)),s._l10nPromise.get("free_text2_default_content").then(f=>this.editorDiv?.setAttribute("default-content",f)),this.editorDiv.contentEditable=!0;let{style:c}=this.editorDiv;if(c.fontSize=`calc(${this.#s}px * var(--scale-factor))`,c.color=this.#o,this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),(0,i.bindEvents)(this,this.div,["dblclick","keydown"]),this.width){let[f,d]=this.parentDimensions;this.setAt(l*f,u*d,this.width*f,this.height*d);for(let h of this.#l.split(`
`)){let m=document.createElement("div");m.append(h?document.createTextNode(h):document.createElement("br")),this.editorDiv.append(m)}this.div.draggable=!0,this.editorDiv.contentEditable=!1}else this.div.draggable=!1,this.editorDiv.contentEditable=!0;return this.div}get contentDiv(){return this.editorDiv}static deserialize(l,u,c){let f=super.deserialize(l,u,c);return f.#s=l.fontSize,f.#o=r.Util.makeHexColor(...l.color),f.#l=l.value,f}serialize(){if(this.isEmpty())return null;let l=s._internalPadding*this.parentScale,u=this.getRect(l,l),c=o.AnnotationEditor._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:this.#o);return{annotationType:r.AnnotationEditorType.FREETEXT,color:c,fontSize:this.#s,value:this.#l,pageIndex:this.pageIndex,rect:u,rotation:this.rotation}}}t.FreeTextEditor=s},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InkEditor=void 0,Object.defineProperty(t,"fitCurve",{enumerable:!0,get:function(){return o.fitCurve}});var r=n(1),i=n(4),o=n(30),s=n(5);let a=16,l=100;class u extends i.AnnotationEditor{#e=0;#t=0;#i=0;#r=this.canvasPointermove.bind(this);#o=this.canvasPointerleave.bind(this);#l=this.canvasPointerup.bind(this);#u=this.canvasPointerdown.bind(this);#n=!1;#s=!1;#h=null;#c=null;#d=0;#a=0;#m=null;static _defaultColor=null;static _defaultOpacity=1;static _defaultThickness=1;static _l10nPromise;static _type="ink";constructor(f){super({...f,name:"inkEditor"}),this.color=f.color||null,this.thickness=f.thickness||null,this.opacity=f.opacity||null,this.paths=[],this.bezierPath2D=[],this.currentPath=[],this.scaleFactor=1,this.translationX=this.translationY=0,this.x=0,this.y=0}static initialize(f){this._l10nPromise=new Map(["editor_ink_canvas_aria_label","editor_ink2_aria_label"].map(d=>[d,f.get(d)]))}static updateDefaultParams(f,d){switch(f){case r.AnnotationEditorParamsType.INK_THICKNESS:u._defaultThickness=d;break;case r.AnnotationEditorParamsType.INK_COLOR:u._defaultColor=d;break;case r.AnnotationEditorParamsType.INK_OPACITY:u._defaultOpacity=d/100;break}}updateParams(f,d){switch(f){case r.AnnotationEditorParamsType.INK_THICKNESS:this.#k(d);break;case r.AnnotationEditorParamsType.INK_COLOR:this.#A(d);break;case r.AnnotationEditorParamsType.INK_OPACITY:this.#C(d);break}}static get defaultPropertiesToUpdate(){return[[r.AnnotationEditorParamsType.INK_THICKNESS,u._defaultThickness],[r.AnnotationEditorParamsType.INK_COLOR,u._defaultColor||i.AnnotationEditor._defaultLineColor],[r.AnnotationEditorParamsType.INK_OPACITY,Math.round(u._defaultOpacity*100)]]}get propertiesToUpdate(){return[[r.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||u._defaultThickness],[r.AnnotationEditorParamsType.INK_COLOR,this.color||u._defaultColor||i.AnnotationEditor._defaultLineColor],[r.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*(this.opacity??u._defaultOpacity))]]}#k(f){let d=this.thickness;this.addCommands({cmd:()=>{this.thickness=f,this.#P()},undo:()=>{this.thickness=d,this.#P()},mustExec:!0,type:r.AnnotationEditorParamsType.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})}#A(f){let d=this.color;this.addCommands({cmd:()=>{this.color=f,this.#p()},undo:()=>{this.color=d,this.#p()},mustExec:!0,type:r.AnnotationEditorParamsType.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})}#C(f){f/=100;let d=this.opacity;this.addCommands({cmd:()=>{this.opacity=f,this.#p()},undo:()=>{this.opacity=d,this.#p()},mustExec:!0,type:r.AnnotationEditorParamsType.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})}rebuild(){super.rebuild(),this.div!==null&&(this.canvas||(this.#y(),this.#b()),this.isAttachedToDOM||(this.parent.add(this),this.#v()),this.#P())}remove(){this.canvas!==null&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,this.#c.disconnect(),this.#c=null,super.remove())}setParent(f){!this.parent&&f?this._uiManager.removeShouldRescale(this):this.parent&&f===null&&this._uiManager.addShouldRescale(this),super.setParent(f)}onScaleChanging(){let[f,d]=this.parentDimensions,h=this.width*f,m=this.height*d;this.setDimensions(h,m)}enableEditMode(){this.#n||this.canvas===null||(super.enableEditMode(),this.div.draggable=!1,this.canvas.addEventListener("pointerdown",this.#u),this.canvas.addEventListener("pointerup",this.#l))}disableEditMode(){!this.isInEditMode()||this.canvas===null||(super.disableEditMode(),this.div.draggable=!this.isEmpty(),this.div.classList.remove("editing"),this.canvas.removeEventListener("pointerdown",this.#u),this.canvas.removeEventListener("pointerup",this.#l))}onceAdded(){this.div.draggable=!this.isEmpty()}isEmpty(){return this.paths.length===0||this.paths.length===1&&this.paths[0].length===0}#S(){let{parentRotation:f,parentDimensions:[d,h]}=this;switch(f){case 90:return[0,h,h,d];case 180:return[d,h,d,h];case 270:return[d,0,h,d];default:return[0,0,d,h]}}#_(){let{ctx:f,color:d,opacity:h,thickness:m,parentScale:g,scaleFactor:b}=this;f.lineWidth=m*g/b,f.lineCap="round",f.lineJoin="round",f.miterLimit=10,f.strokeStyle=`${d}${(0,s.opacityToHex)(h)}`}#O(f,d){this.isEditing=!0,this.#s||(this.#s=!0,this.#v(),this.thickness||=u._defaultThickness,this.color||=u._defaultColor||i.AnnotationEditor._defaultLineColor,this.opacity??=u._defaultOpacity),this.currentPath.push([f,d]),this.#h=null,this.#_(),this.ctx.beginPath(),this.ctx.moveTo(f,d),this.#m=()=>{!this.#m||(this.#h&&(this.isEmpty()?(this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height)):this.#p(),this.ctx.lineTo(...this.#h),this.#h=null,this.ctx.stroke()),window.requestAnimationFrame(this.#m))},window.requestAnimationFrame(this.#m)}#E(f,d){let[h,m]=this.currentPath.at(-1);f===h&&d===m||(this.currentPath.push([f,d]),this.#h=[f,d])}#M(f,d){this.ctx.closePath(),this.#m=null,f=Math.min(Math.max(f,0),this.canvas.width),d=Math.min(Math.max(d,0),this.canvas.height);let[h,m]=this.currentPath.at(-1);(f!==h||d!==m)&&this.currentPath.push([f,d]);let g;if(this.currentPath.length!==1)g=(0,o.fitCurve)(this.currentPath,30,null);else{let y=[f,d];g=[[y,y.slice(),y.slice(),y]]}let b=u.#N(g);this.currentPath.length=0;let v=()=>{this.paths.push(g),this.bezierPath2D.push(b),this.rebuild()},x=()=>{this.paths.pop(),this.bezierPath2D.pop(),this.paths.length===0?this.remove():(this.canvas||(this.#y(),this.#b()),this.#P())};this.addCommands({cmd:v,undo:x,mustExec:!0})}#p(){if(this.isEmpty()){this.#g();return}this.#_();let{canvas:f,ctx:d}=this;d.setTransform(1,0,0,1,0,0),d.clearRect(0,0,f.width,f.height),this.#g();for(let h of this.bezierPath2D)d.stroke(h)}commit(){this.#n||(super.commit(),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),this.#n=!0,this.div.classList.add("disabled"),this.#P(!0),this.parent.addInkEditorIfNeeded(!0),this.parent.moveEditorInDOM(this),this.div.focus({preventScroll:!0}))}focusin(f){super.focusin(f),this.enableEditMode()}canvasPointerdown(f){f.button!==0||!this.isInEditMode()||this.#n||(this.setInForeground(),f.type!=="mouse"&&this.div.focus(),f.stopPropagation(),this.canvas.addEventListener("pointerleave",this.#o),this.canvas.addEventListener("pointermove",this.#r),this.#O(f.offsetX,f.offsetY))}canvasPointermove(f){f.stopPropagation(),this.#E(f.offsetX,f.offsetY)}canvasPointerup(f){f.button===0&&this.isInEditMode()&&this.currentPath.length!==0&&(f.stopPropagation(),this.#B(f),this.setInBackground())}canvasPointerleave(f){this.#B(f),this.setInBackground()}#B(f){this.#M(f.offsetX,f.offsetY),this.canvas.removeEventListener("pointerleave",this.#o),this.canvas.removeEventListener("pointermove",this.#r),this.addToAnnotationStorage()}#y(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",u._l10nPromise.get("editor_ink_canvas_aria_label").then(f=>this.canvas?.setAttribute("aria-label",f)),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")}#b(){let f=null;this.#c=new ResizeObserver(d=>{let h=d[0].contentRect;h.width&&h.height&&(f!==null&&clearTimeout(f),f=setTimeout(()=>{this.fixDims(),f=null},l),this.setDimensions(h.width,h.height))}),this.#c.observe(this.div)}render(){if(this.div)return this.div;let f,d;this.width&&(f=this.x,d=this.y),super.render(),u._l10nPromise.get("editor_ink2_aria_label").then(v=>this.div?.setAttribute("aria-label",v));let[h,m,g,b]=this.#S();if(this.setAt(h,m,0,0),this.setDims(g,b),this.#y(),this.width){let[v,x]=this.parentDimensions;this.setAt(f*v,d*x,this.width*v,this.height*x),this.#s=!0,this.#v(),this.setDims(this.width*v,this.height*x),this.#p(),this.#z(),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return this.#b(),this.div}#v(){if(!this.#s)return;let[f,d]=this.parentDimensions;this.canvas.width=Math.ceil(this.width*f),this.canvas.height=Math.ceil(this.height*d),this.#g()}setDimensions(f,d){let h=Math.round(f),m=Math.round(d);if(this.#d===h&&this.#a===m)return;this.#d=h,this.#a=m,this.canvas.style.visibility="hidden",this.#e&&Math.abs(this.#e-f/d)>.01&&(d=Math.ceil(f/this.#e),this.setDims(f,d));let[g,b]=this.parentDimensions;this.width=f/g,this.height=d/b,this.#n&&this.#f(f,d),this.#v(),this.#p(),this.canvas.style.visibility="visible"}#f(f,d){let h=this.#I(),m=(f-h)/this.#i,g=(d-h)/this.#t;this.scaleFactor=Math.min(m,g)}#g(){let f=this.#I()/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+f,this.translationY*this.scaleFactor+f)}static#N(f){let d=new Path2D;for(let h=0,m=f.length;h<m;h++){let[g,b,v,x]=f[h];h===0&&d.moveTo(...g),d.bezierCurveTo(b[0],b[1],v[0],v[1],x[0],x[1])}return d}#F(f,d,h,m){let b=[],v=this.thickness/2,x,y;for(let _ of this.paths){x=[],y=[];for(let w=0,k=_.length;w<k;w++){let[O,M,I,W]=_[w],J=f*(O[0]+d)+v,H=m-f*(O[1]+h)-v,ee=f*(M[0]+d)+v,j=m-f*(M[1]+h)-v,V=f*(I[0]+d)+v,B=m-f*(I[1]+h)-v,N=f*(W[0]+d)+v,C=m-f*(W[1]+h)-v;w===0&&(x.push(J,H),y.push(J,H)),x.push(ee,j,V,B,N,C),this.#G(J,H,ee,j,V,B,N,C,4,y)}b.push({bezier:x,points:y})}return b}#G(f,d,h,m,g,b,v,x,y,_){if(this.#x(f,d,h,m,g,b,v,x)){_.push(v,x);return}for(let w=1;w<y-1;w++){let k=w/y,O=1-k,M=k*f+O*h,I=k*d+O*m,W=k*h+O*g,J=k*m+O*b,H=k*g+O*v,ee=k*b+O*x;M=k*M+O*W,I=k*I+O*J,W=k*W+O*H,J=k*J+O*ee,M=k*M+O*W,I=k*I+O*J,_.push(M,I)}_.push(v,x)}#x(f,d,h,m,g,b,v,x){let _=(3*h-2*f-v)**2,w=(3*m-2*d-x)**2,k=(3*g-f-2*v)**2,O=(3*b-d-2*x)**2;return Math.max(_,k)+Math.max(w,O)<=10}#w(){let f=1/0,d=-1/0,h=1/0,m=-1/0;for(let g of this.paths)for(let[b,v,x,y]of g){let _=r.Util.bezierBoundingBox(...b,...v,...x,...y);f=Math.min(f,_[0]),h=Math.min(h,_[1]),d=Math.max(d,_[2]),m=Math.max(m,_[3])}return[f,h,d,m]}#I(){return this.#n?Math.ceil(this.thickness*this.parentScale):0}#P(f=!1){if(this.isEmpty())return;if(!this.#n){this.#p();return}let d=this.#w(),h=this.#I();this.#i=Math.max(a,d[2]-d[0]),this.#t=Math.max(a,d[3]-d[1]);let m=Math.ceil(h+this.#i*this.scaleFactor),g=Math.ceil(h+this.#t*this.scaleFactor),[b,v]=this.parentDimensions;this.width=m/b,this.height=g/v,this.#e=m/g,this.#z();let x=this.translationX,y=this.translationY;this.translationX=-d[0],this.translationY=-d[1],this.#v(),this.#p(),this.#d=m,this.#a=g,this.setDims(m,g);let _=f?h/this.scaleFactor/2:0;this.translate(x-this.translationX-_,y-this.translationY-_)}#z(){let{style:f}=this.div;this.#e>=1?(f.minHeight=`${a}px`,f.minWidth=`${Math.round(this.#e*a)}px`):(f.minWidth=`${a}px`,f.minHeight=`${Math.round(a/this.#e)}px`)}static deserialize(f,d,h){let m=super.deserialize(f,d,h);m.thickness=f.thickness,m.color=r.Util.makeHexColor(...f.color),m.opacity=f.opacity;let[g,b]=m.pageDimensions,v=m.width*g,x=m.height*b,y=m.parentScale,_=f.thickness/2;m.#e=v/x,m.#n=!0,m.#d=Math.round(v),m.#a=Math.round(x);for(let{bezier:k}of f.paths){let O=[];m.paths.push(O);let M=y*(k[0]-_),I=y*(x-k[1]-_);for(let J=2,H=k.length;J<H;J+=6){let ee=y*(k[J]-_),j=y*(x-k[J+1]-_),V=y*(k[J+2]-_),B=y*(x-k[J+3]-_),N=y*(k[J+4]-_),C=y*(x-k[J+5]-_);O.push([[M,I],[ee,j],[V,B],[N,C]]),M=N,I=C}let W=this.#N(O);m.bezierPath2D.push(W)}let w=m.#w();return m.#i=Math.max(a,w[2]-w[0]),m.#t=Math.max(a,w[3]-w[1]),m.#f(v,x),m}serialize(){if(this.isEmpty())return null;let f=this.getRect(0,0),d=this.rotation%180===0?f[3]-f[1]:f[2]-f[0],h=i.AnnotationEditor._colorManager.convert(this.ctx.strokeStyle);return{annotationType:r.AnnotationEditorType.INK,color:h,thickness:this.thickness,opacity:this.opacity,paths:this.#F(this.scaleFactor/this.parentScale,this.translationX,this.translationY,d),pageIndex:this.pageIndex,rect:f,rotation:this.rotation}}}t.InkEditor=u},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fitCurve=void 0;let r=n(31);t.fitCurve=r},e=>{function t(m,g,b){if(!Array.isArray(m))throw new TypeError("First argument should be an array");if(m.forEach(_=>{if(!Array.isArray(_)||_.some(w=>typeof w!="number")||_.length!==m[0].length)throw Error("Each point should be an array of numbers. Each point should have the same amount of numbers.")}),m=m.filter((_,w)=>w===0||!_.every((k,O)=>k===m[w-1][O])),m.length<2)return[];let v=m.length,x=f(m[1],m[0]),y=f(m[v-2],m[v-1]);return n(m,x,y,g,b)}function n(m,g,b,v,x){var _,w,k,O,M,I,W,J,H,ee,j,V,B;if(m.length===2)return V=d.vectorLen(d.subtract(m[0],m[1]))/3,_=[m[0],d.addArrays(m[0],d.mulItems(g,V)),d.addArrays(m[1],d.mulItems(b,V)),m[1]],[_];if(w=a(m),[_,O,I]=r(m,w,w,g,b,x),O===0||O<v)return[_];if(O<v*v)for(k=w,M=O,W=I,B=0;B<20;B++){if(k=o(_,m,k),[_,O,I]=r(m,w,k,g,b,x),O<v)return[_];if(I===W){let N=O/M;if(N>.9999&&N<1.0001)break}M=O,W=I}return j=[],J=d.subtract(m[I-1],m[I+1]),J.every(N=>N===0)&&(J=d.subtract(m[I-1],m[I]),[J[0],J[1]]=[-J[1],J[0]]),H=d.normalize(J),ee=d.mulItems(H,-1),j=j.concat(n(m.slice(0,I+1),g,H,v,x)),j=j.concat(n(m.slice(I),ee,b,v,x)),j}function r(m,g,b,v,x,y){var _,w,k;return _=i(m,b,v,x,y),[w,k]=l(m,_,g),y&&y({bez:_,points:m,params:g,maxErr:w,maxPoint:k}),[_,w,k]}function i(m,g,b,v){var x,y,_,w,k,O,M,I,W,J,H,ee,j,V,B,N,C,S=m[0],G=m[m.length-1];for(x=[S,null,null,G],y=d.zeros_Xx2x2(g.length),j=0,V=g.length;j<V;j++)N=g[j],C=1-N,_=y[j],_[0]=d.mulItems(b,3*N*(C*C)),_[1]=d.mulItems(v,3*C*(N*N));for(w=[[0,0],[0,0]],k=[0,0],j=0,V=m.length;j<V;j++)N=g[j],_=y[j],w[0][0]+=d.dot(_[0],_[0]),w[0][1]+=d.dot(_[0],_[1]),w[1][0]+=d.dot(_[0],_[1]),w[1][1]+=d.dot(_[1],_[1]),B=d.subtract(m[j],h.q([S,S,G,G],N)),k[0]+=d.dot(_[0],B),k[1]+=d.dot(_[1],B);return O=w[0][0]*w[1][1]-w[1][0]*w[0][1],M=w[0][0]*k[1]-w[1][0]*k[0],I=k[0]*w[1][1]-k[1]*w[0][1],W=O===0?0:I/O,J=O===0?0:M/O,ee=d.vectorLen(d.subtract(S,G)),H=1e-6*ee,W<H||J<H?(x[1]=d.addArrays(S,d.mulItems(b,ee/3)),x[2]=d.addArrays(G,d.mulItems(v,ee/3))):(x[1]=d.addArrays(S,d.mulItems(b,W)),x[2]=d.addArrays(G,d.mulItems(v,J))),x}function o(m,g,b){return b.map((v,x)=>s(m,g[x],v))}function s(m,g,b){var v=d.subtract(h.q(m,b),g),x=h.qprime(m,b),y=d.mulMatrix(v,x),_=d.sum(d.squareItems(x))+2*d.mulMatrix(v,h.qprimeprime(m,b));return _===0?b:b-y/_}function a(m){var g=[],b,v,x;return m.forEach((y,_)=>{b=_?v+d.vectorLen(d.subtract(y,x)):0,g.push(b),v=b,x=y}),g=g.map(y=>y/v),g}function l(m,g,b){var v,x,y,_,w,k,O,M;x=0,y=Math.floor(m.length/2);let I=u(g,10);for(w=0,k=m.length;w<k;w++)O=m[w],M=c(g,b[w],I,10),_=d.subtract(h.q(g,M),O),v=_[0]*_[0]+_[1]*_[1],v>x&&(x=v,y=w);return[x,y]}var u=function(m,g){for(var b,v=[0],x=m[0],y=0,_=1;_<=g;_++)b=h.q(m,_/g),y+=d.vectorLen(d.subtract(b,x)),v.push(y),x=b;return v=v.map(w=>w/y),v};function c(m,g,b,v){if(g<0)return 0;if(g>1)return 1;for(var x,y,_,w,k,O=1;O<=v;O++)if(g<=b[O]){w=(O-1)/v,_=O/v,y=b[O-1],x=b[O],k=(g-y)/(x-y)*(_-w)+w;break}return k}function f(m,g){return d.normalize(d.subtract(m,g))}class d{static zeros_Xx2x2(g){for(var b=[];g--;)b.push([0,0]);return b}static mulItems(g,b){return g.map(v=>v*b)}static mulMatrix(g,b){return g.reduce((v,x,y)=>v+x*b[y],0)}static subtract(g,b){return g.map((v,x)=>v-b[x])}static addArrays(g,b){return g.map((v,x)=>v+b[x])}static addItems(g,b){return g.map(v=>v+b)}static sum(g){return g.reduce((b,v)=>b+v)}static dot(g,b){return d.mulMatrix(g,b)}static vectorLen(g){return Math.hypot(...g)}static divItems(g,b){return g.map(v=>v/b)}static squareItems(g){return g.map(b=>b*b)}static normalize(g){return this.divItems(g,this.vectorLen(g))}}class h{static q(g,b){var v=1-b,x=d.mulItems(g[0],v*v*v),y=d.mulItems(g[1],3*v*v*b),_=d.mulItems(g[2],3*v*b*b),w=d.mulItems(g[3],b*b*b);return d.addArrays(d.addArrays(x,y),d.addArrays(_,w))}static qprime(g,b){var v=1-b,x=d.mulItems(d.subtract(g[1],g[0]),3*v*v),y=d.mulItems(d.subtract(g[2],g[1]),6*v*b),_=d.mulItems(d.subtract(g[3],g[2]),3*b*b);return d.addArrays(d.addArrays(x,y),_)}static qprimeprime(g,b){return d.addArrays(d.mulItems(d.addArrays(d.subtract(g[2],d.mulItems(g[1],2)),g[0]),6*(1-b)),d.mulItems(d.addArrays(d.subtract(g[3],d.mulItems(g[2],2)),g[1]),6*b))}}e.exports=t,e.exports.fitCubic=n,e.exports.createTangent=f},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationLayer=void 0;var r=n(1),i=n(6),o=n(3),s=n(33),a=n(34);let l=1e3,u=9,c=new WeakSet;function f(U){return{width:U[2]-U[0],height:U[3]-U[1]}}class d{static create(F){switch(F.data.annotationType){case r.AnnotationType.LINK:return new m(F);case r.AnnotationType.TEXT:return new g(F);case r.AnnotationType.WIDGET:switch(F.data.fieldType){case"Tx":return new v(F);case"Btn":return F.data.radioButton?new y(F):F.data.checkBox?new x(F):new _(F);case"Ch":return new w(F)}return new b(F);case r.AnnotationType.POPUP:return new k(F);case r.AnnotationType.FREETEXT:return new M(F);case r.AnnotationType.LINE:return new I(F);case r.AnnotationType.SQUARE:return new W(F);case r.AnnotationType.CIRCLE:return new J(F);case r.AnnotationType.POLYLINE:return new H(F);case r.AnnotationType.CARET:return new j(F);case r.AnnotationType.INK:return new V(F);case r.AnnotationType.POLYGON:return new ee(F);case r.AnnotationType.HIGHLIGHT:return new B(F);case r.AnnotationType.UNDERLINE:return new N(F);case r.AnnotationType.SQUIGGLY:return new C(F);case r.AnnotationType.STRIKEOUT:return new S(F);case r.AnnotationType.STAMP:return new G(F);case r.AnnotationType.FILEATTACHMENT:return new T(F);default:return new h(F)}}}class h{constructor(F,{isRenderable:D=!1,ignoreBorder:L=!1,createQuadrilaterals:$=!1}={}){this.isRenderable=D,this.data=F.data,this.layer=F.layer,this.page=F.page,this.viewport=F.viewport,this.linkService=F.linkService,this.downloadManager=F.downloadManager,this.imageResourcesPath=F.imageResourcesPath,this.renderForms=F.renderForms,this.svgFactory=F.svgFactory,this.annotationStorage=F.annotationStorage,this.enableScripting=F.enableScripting,this.hasJSActions=F.hasJSActions,this._fieldObjects=F.fieldObjects,D&&(this.container=this._createContainer(L)),$&&(this.quadrilaterals=this._createQuadrilaterals(L))}_createContainer(F=!1){let{data:D,page:L,viewport:$}=this,Z=document.createElement("section");Z.setAttribute("data-annotation-id",D.id);let{pageWidth:se,pageHeight:Y,pageX:ue,pageY:pe}=$.rawDims,{width:oe,height:de}=f(D.rect),ve=r.Util.normalizeRect([D.rect[0],L.view[3]-D.rect[1]+L.view[1],D.rect[2],L.view[3]-D.rect[3]+L.view[1]]);if(!F&&D.borderStyle.width>0){Z.style.borderWidth=`${D.borderStyle.width}px`;let Ce=D.borderStyle.horizontalCornerRadius,Ge=D.borderStyle.verticalCornerRadius;if(Ce>0||Ge>0){let Ne=`calc(${Ce}px * var(--scale-factor)) / calc(${Ge}px * var(--scale-factor))`;Z.style.borderRadius=Ne}else if(this instanceof y){let Ne=`calc(${oe}px * var(--scale-factor)) / calc(${de}px * var(--scale-factor))`;Z.style.borderRadius=Ne}switch(D.borderStyle.style){case r.AnnotationBorderStyleType.SOLID:Z.style.borderStyle="solid";break;case r.AnnotationBorderStyleType.DASHED:Z.style.borderStyle="dashed";break;case r.AnnotationBorderStyleType.BEVELED:(0,r.warn)("Unimplemented border style: beveled");break;case r.AnnotationBorderStyleType.INSET:(0,r.warn)("Unimplemented border style: inset");break;case r.AnnotationBorderStyleType.UNDERLINE:Z.style.borderBottomStyle="solid";break;default:break}let Ee=D.borderColor||null;Ee?Z.style.borderColor=r.Util.makeHexColor(Ee[0]|0,Ee[1]|0,Ee[2]|0):Z.style.borderWidth=0}Z.style.left=`${100*(ve[0]-ue)/se}%`,Z.style.top=`${100*(ve[1]-pe)/Y}%`;let{rotation:Ae}=D;return D.hasOwnCanvas||Ae===0?(Z.style.width=`${100*oe/se}%`,Z.style.height=`${100*de/Y}%`):this.setRotation(Ae,Z),Z}setRotation(F,D=this.container){let{pageWidth:L,pageHeight:$}=this.viewport.rawDims,{width:Z,height:se}=f(this.data.rect),Y,ue;F%180===0?(Y=100*Z/L,ue=100*se/$):(Y=100*se/L,ue=100*Z/$),D.style.width=`${Y}%`,D.style.height=`${ue}%`,D.setAttribute("data-main-rotation",(360-F)%360)}get _commonActions(){let F=(D,L,$)=>{let Z=$.detail[D];$.target.style[L]=s.ColorConverters[`${Z[0]}_HTML`](Z.slice(1))};return(0,r.shadow)(this,"_commonActions",{display:D=>{let L=D.detail.display%2===1;this.container.style.visibility=L?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:L,print:D.detail.display===0||D.detail.display===3})},print:D=>{this.annotationStorage.setValue(this.data.id,{print:D.detail.print})},hidden:D=>{this.container.style.visibility=D.detail.hidden?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:D.detail.hidden})},focus:D=>{setTimeout(()=>D.target.focus({preventScroll:!1}),0)},userName:D=>{D.target.title=D.detail.userName},readonly:D=>{D.detail.readonly?D.target.setAttribute("readonly",""):D.target.removeAttribute("readonly")},required:D=>{this._setRequired(D.target,D.detail.required)},bgColor:D=>{F("bgColor","backgroundColor",D)},fillColor:D=>{F("fillColor","backgroundColor",D)},fgColor:D=>{F("fgColor","color",D)},textColor:D=>{F("textColor","color",D)},borderColor:D=>{F("borderColor","borderColor",D)},strokeColor:D=>{F("strokeColor","borderColor",D)},rotation:D=>{let L=D.detail.rotation;this.setRotation(L),this.annotationStorage.setValue(this.data.id,{rotation:L})}})}_dispatchEventFromSandbox(F,D){let L=this._commonActions;for(let $ of Object.keys(D.detail))(F[$]||L[$])?.(D)}_setDefaultPropertiesFromJS(F){if(!this.enableScripting)return;let D=this.annotationStorage.getRawValue(this.data.id);if(!D)return;let L=this._commonActions;for(let[$,Z]of Object.entries(D)){let se=L[$];if(se){let Y={detail:{[$]:Z},target:F};se(Y),delete D[$]}}}_createQuadrilaterals(F=!1){if(!this.data.quadPoints)return null;let D=[],L=this.data.rect;for(let $ of this.data.quadPoints)this.data.rect=[$[2].x,$[2].y,$[1].x,$[1].y],D.push(this._createContainer(F));return this.data.rect=L,D}_createPopup(F,D){let L=this.container;this.quadrilaterals&&(F=F||this.quadrilaterals,L=this.quadrilaterals[0]),F||(F=document.createElement("div"),F.className="popupTriggerArea",L.append(F));let Z=new O({container:L,trigger:F,color:D.color,titleObj:D.titleObj,modificationDate:D.modificationDate,contentsObj:D.contentsObj,richText:D.richText,hideWrapper:!0}).render();Z.style.left="100%",L.append(Z)}_renderQuadrilaterals(F){for(let D of this.quadrilaterals)D.className=F;return this.quadrilaterals}render(){(0,r.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(F,D=null){let L=[];if(this._fieldObjects){let $=this._fieldObjects[F];if($)for(let{page:Z,id:se,exportValues:Y}of $){if(Z===-1||se===D)continue;let ue=typeof Y=="string"?Y:null,pe=document.querySelector(`[data-element-id="${se}"]`);if(pe&&!c.has(pe)){(0,r.warn)(`_getElementsByName - element not allowed: ${se}`);continue}L.push({id:se,exportValue:ue,domElement:pe})}return L}for(let $ of document.getElementsByName(F)){let{exportValue:Z}=$,se=$.getAttribute("data-element-id");se!==D&&(!c.has($)||L.push({id:se,exportValue:Z,domElement:$}))}return L}}class m extends h{constructor(F,D=null){super(F,{isRenderable:!0,ignoreBorder:!!D?.ignoreBorder,createQuadrilaterals:!0}),this.isTooltipOnly=F.data.isTooltipOnly}render(){let{data:F,linkService:D}=this,L=document.createElement("a");L.setAttribute("data-element-id",F.id);let $=!1;return F.url?(D.addLinkAttributes(L,F.url,F.newWindow),$=!0):F.action?(this._bindNamedAction(L,F.action),$=!0):F.attachment?(this._bindAttachment(L,F.attachment),$=!0):F.setOCGState?(this.#t(L,F.setOCGState),$=!0):F.dest?(this._bindLink(L,F.dest),$=!0):(F.actions&&(F.actions.Action||F.actions["Mouse Up"]||F.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(L,F),$=!0),F.resetForm?(this._bindResetFormAction(L,F.resetForm),$=!0):this.isTooltipOnly&&!$&&(this._bindLink(L,""),$=!0)),this.quadrilaterals?this._renderQuadrilaterals("linkAnnotation").map((Z,se)=>{let Y=se===0?L:L.cloneNode();return Z.append(Y),Z}):(this.container.className="linkAnnotation",$&&this.container.append(L),this.container)}#e(){this.container.setAttribute("data-internal-link","")}_bindLink(F,D){F.href=this.linkService.getDestinationHash(D),F.onclick=()=>(D&&this.linkService.goToDestination(D),!1),(D||D==="")&&this.#e()}_bindNamedAction(F,D){F.href=this.linkService.getAnchorUrl(""),F.onclick=()=>(this.linkService.executeNamedAction(D),!1),this.#e()}_bindAttachment(F,D){F.href=this.linkService.getAnchorUrl(""),F.onclick=()=>(this.downloadManager?.openOrDownloadData(this.container,D.content,D.filename),!1),this.#e()}#t(F,D){F.href=this.linkService.getAnchorUrl(""),F.onclick=()=>(this.linkService.executeSetOCGState(D),!1),this.#e()}_bindJSAction(F,D){F.href=this.linkService.getAnchorUrl("");let L=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(let $ of Object.keys(D.actions)){let Z=L.get($);!Z||(F[Z]=()=>(this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:D.id,name:$}}),!1))}F.onclick||(F.onclick=()=>!1),this.#e()}_bindResetFormAction(F,D){let L=F.onclick;if(L||(F.href=this.linkService.getAnchorUrl("")),this.#e(),!this._fieldObjects){(0,r.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),L||(F.onclick=()=>!1);return}F.onclick=()=>{L?.();let{fields:$,refs:Z,include:se}=D,Y=[];if($.length!==0||Z.length!==0){let oe=new Set(Z);for(let de of $){let ve=this._fieldObjects[de]||[];for(let{id:Ae}of ve)oe.add(Ae)}for(let de of Object.values(this._fieldObjects))for(let ve of de)oe.has(ve.id)===se&&Y.push(ve)}else for(let oe of Object.values(this._fieldObjects))Y.push(...oe);let ue=this.annotationStorage,pe=[];for(let oe of Y){let{id:de}=oe;switch(pe.push(de),oe.type){case"text":{let Ae=oe.defaultValue||"";ue.setValue(de,{value:Ae});break}case"checkbox":case"radiobutton":{let Ae=oe.defaultValue===oe.exportValues;ue.setValue(de,{value:Ae});break}case"combobox":case"listbox":{let Ae=oe.defaultValue||"";ue.setValue(de,{value:Ae});break}default:continue}let ve=document.querySelector(`[data-element-id="${de}"]`);if(ve){if(!c.has(ve)){(0,r.warn)(`_bindResetFormAction - element not allowed: ${de}`);continue}}else continue;ve.dispatchEvent(new Event("resetform"))}return this.enableScripting&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:pe,name:"ResetForm"}}),!1}}}class g extends h{constructor(F){let D=!!(F.data.hasPopup||F.data.titleObj?.str||F.data.contentsObj?.str||F.data.richText?.str);super(F,{isRenderable:D})}render(){this.container.className="textAnnotation";let F=document.createElement("img");return F.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",F.alt="[{{type}} Annotation]",F.dataset.l10nId="text_annotation_type",F.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(F,this.data),this.container.append(F),this.container}}class b extends h{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}_getKeyModifier(F){let{isWin:D,isMac:L}=r.FeatureTest.platform;return D&&F.ctrlKey||L&&F.metaKey}_setEventListener(F,D,L,$){D.includes("mouse")?F.addEventListener(D,Z=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:L,value:$(Z),shift:Z.shiftKey,modifier:this._getKeyModifier(Z)}})}):F.addEventListener(D,Z=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:L,value:$(Z)}})})}_setEventListeners(F,D,L){for(let[$,Z]of D)(Z==="Action"||this.data.actions?.[Z])&&this._setEventListener(F,$,Z,L)}_setBackgroundColor(F){let D=this.data.backgroundColor||null;F.style.backgroundColor=D===null?"transparent":r.Util.makeHexColor(D[0],D[1],D[2])}_setTextStyle(F){let D=["left","center","right"],{fontColor:L}=this.data.defaultAppearanceData,$=this.data.defaultAppearanceData.fontSize||u,Z=F.style,se,Y=2,ue=pe=>Math.round(10*pe)/10;if(this.data.multiLine){let pe=Math.abs(this.data.rect[3]-this.data.rect[1]-Y),oe=Math.round(pe/(r.LINE_FACTOR*$))||1,de=pe/oe;se=Math.min($,ue(de/r.LINE_FACTOR))}else{let pe=Math.abs(this.data.rect[3]-this.data.rect[1]-Y);se=Math.min($,ue(pe/r.LINE_FACTOR))}Z.fontSize=`calc(${se}px * var(--scale-factor))`,Z.color=r.Util.makeHexColor(L[0],L[1],L[2]),this.data.textAlignment!==null&&(Z.textAlign=D[this.data.textAlignment])}_setRequired(F,D){D?F.setAttribute("required",!0):F.removeAttribute("required"),F.setAttribute("aria-required",D)}}class v extends b{constructor(F){let D=F.renderForms||!F.data.hasAppearance&&!!F.data.fieldValue;super(F,{isRenderable:D})}setPropertyOnSiblings(F,D,L,$){let Z=this.annotationStorage;for(let se of this._getElementsByName(F.name,F.id))se.domElement&&(se.domElement[D]=L),Z.setValue(se.id,{[$]:L})}render(){let F=this.annotationStorage,D=this.data.id;this.container.className="textWidgetAnnotation";let L=null;if(this.renderForms){let $=F.getValue(D,{value:this.data.fieldValue}),Z=$.formattedValue||$.value||"",se=F.getValue(D,{charLimit:this.data.maxLen}).charLimit;se&&Z.length>se&&(Z=Z.slice(0,se));let Y={userValue:Z,formattedValue:null,lastCommittedValue:null,commitKey:1};this.data.multiLine?(L=document.createElement("textarea"),L.textContent=Z,this.data.doNotScroll&&(L.style.overflowY="hidden")):(L=document.createElement("input"),L.type="text",L.setAttribute("value",Z),this.data.doNotScroll&&(L.style.overflowX="hidden")),c.add(L),L.setAttribute("data-element-id",D),L.disabled=this.data.readOnly,L.name=this.data.fieldName,L.tabIndex=l,this._setRequired(L,this.data.required),se&&(L.maxLength=se),L.addEventListener("input",pe=>{F.setValue(D,{value:pe.target.value}),this.setPropertyOnSiblings(L,"value",pe.target.value,"value")}),L.addEventListener("resetform",pe=>{let oe=this.data.defaultFieldValue??"";L.value=Y.userValue=oe,Y.formattedValue=null});let ue=pe=>{let{formattedValue:oe}=Y;oe!=null&&(pe.target.value=oe),pe.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){L.addEventListener("focus",oe=>{let{target:de}=oe;Y.userValue&&(de.value=Y.userValue),Y.lastCommittedValue=de.value,Y.commitKey=1}),L.addEventListener("updatefromsandbox",oe=>{let de={value(ve){Y.userValue=ve.detail.value??"",F.setValue(D,{value:Y.userValue.toString()}),ve.target.value=Y.userValue},formattedValue(ve){let{formattedValue:Ae}=ve.detail;Y.formattedValue=Ae,Ae!=null&&ve.target!==document.activeElement&&(ve.target.value=Ae),F.setValue(D,{formattedValue:Ae})},selRange(ve){ve.target.setSelectionRange(...ve.detail.selRange)},charLimit:ve=>{let{charLimit:Ae}=ve.detail,{target:Ce}=ve;if(Ae===0){Ce.removeAttribute("maxLength");return}Ce.setAttribute("maxLength",Ae);let Ge=Y.userValue;!Ge||Ge.length<=Ae||(Ge=Ge.slice(0,Ae),Ce.value=Y.userValue=Ge,F.setValue(D,{value:Ge}),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:D,name:"Keystroke",value:Ge,willCommit:!0,commitKey:1,selStart:Ce.selectionStart,selEnd:Ce.selectionEnd}}))}};this._dispatchEventFromSandbox(de,oe)}),L.addEventListener("keydown",oe=>{Y.commitKey=1;let de=-1;if(oe.key==="Escape"?de=0:oe.key==="Enter"&&!this.data.multiLine?de=2:oe.key==="Tab"&&(Y.commitKey=3),de===-1)return;let{value:ve}=oe.target;Y.lastCommittedValue!==ve&&(Y.lastCommittedValue=ve,Y.userValue=ve,this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:D,name:"Keystroke",value:ve,willCommit:!0,commitKey:de,selStart:oe.target.selectionStart,selEnd:oe.target.selectionEnd}}))});let pe=ue;ue=null,L.addEventListener("blur",oe=>{if(!oe.relatedTarget)return;let{value:de}=oe.target;Y.userValue=de,Y.lastCommittedValue!==de&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:D,name:"Keystroke",value:de,willCommit:!0,commitKey:Y.commitKey,selStart:oe.target.selectionStart,selEnd:oe.target.selectionEnd}}),pe(oe)}),this.data.actions?.Keystroke&&L.addEventListener("beforeinput",oe=>{Y.lastCommittedValue=null;let{data:de,target:ve}=oe,{value:Ae,selectionStart:Ce,selectionEnd:Ge}=ve,Ee=Ce,Ne=Ge;switch(oe.inputType){case"deleteWordBackward":{let De=Ae.substring(0,Ce).match(/\w*[^\w]*$/);De&&(Ee-=De[0].length);break}case"deleteWordForward":{let De=Ae.substring(Ce).match(/^[^\w]*\w*/);De&&(Ne+=De[0].length);break}case"deleteContentBackward":Ce===Ge&&(Ee-=1);break;case"deleteContentForward":Ce===Ge&&(Ne+=1);break}oe.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:D,name:"Keystroke",value:Ae,change:de||"",willCommit:!1,selStart:Ee,selEnd:Ne}})}),this._setEventListeners(L,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],oe=>oe.target.value)}if(ue&&L.addEventListener("blur",ue),this.data.comb){let oe=(this.data.rect[2]-this.data.rect[0])/se;L.classList.add("comb"),L.style.letterSpacing=`calc(${oe}px * var(--scale-factor) - 1ch)`}}else L=document.createElement("div"),L.textContent=this.data.fieldValue,L.style.verticalAlign="middle",L.style.display="table-cell";return this._setTextStyle(L),this._setBackgroundColor(L),this._setDefaultPropertiesFromJS(L),this.container.append(L),this.container}}class x extends b{constructor(F){super(F,{isRenderable:F.renderForms})}render(){let F=this.annotationStorage,D=this.data,L=D.id,$=F.getValue(L,{value:D.exportValue===D.fieldValue}).value;typeof $=="string"&&($=$!=="Off",F.setValue(L,{value:$})),this.container.className="buttonWidgetAnnotation checkBox";let Z=document.createElement("input");return c.add(Z),Z.setAttribute("data-element-id",L),Z.disabled=D.readOnly,this._setRequired(Z,this.data.required),Z.type="checkbox",Z.name=D.fieldName,$&&Z.setAttribute("checked",!0),Z.setAttribute("exportValue",D.exportValue),Z.tabIndex=l,Z.addEventListener("change",se=>{let{name:Y,checked:ue}=se.target;for(let pe of this._getElementsByName(Y,L)){let oe=ue&&pe.exportValue===D.exportValue;pe.domElement&&(pe.domElement.checked=oe),F.setValue(pe.id,{value:oe})}F.setValue(L,{value:ue})}),Z.addEventListener("resetform",se=>{let Y=D.defaultFieldValue||"Off";se.target.checked=Y===D.exportValue}),this.enableScripting&&this.hasJSActions&&(Z.addEventListener("updatefromsandbox",se=>{let Y={value(ue){ue.target.checked=ue.detail.value!=="Off",F.setValue(L,{value:ue.target.checked})}};this._dispatchEventFromSandbox(Y,se)}),this._setEventListeners(Z,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],se=>se.target.checked)),this._setBackgroundColor(Z),this._setDefaultPropertiesFromJS(Z),this.container.append(Z),this.container}}class y extends b{constructor(F){super(F,{isRenderable:F.renderForms})}render(){this.container.className="buttonWidgetAnnotation radioButton";let F=this.annotationStorage,D=this.data,L=D.id,$=F.getValue(L,{value:D.fieldValue===D.buttonValue}).value;typeof $=="string"&&($=$!==D.buttonValue,F.setValue(L,{value:$}));let Z=document.createElement("input");if(c.add(Z),Z.setAttribute("data-element-id",L),Z.disabled=D.readOnly,this._setRequired(Z,this.data.required),Z.type="radio",Z.name=D.fieldName,$&&Z.setAttribute("checked",!0),Z.tabIndex=l,Z.addEventListener("change",se=>{let{name:Y,checked:ue}=se.target;for(let pe of this._getElementsByName(Y,L))F.setValue(pe.id,{value:!1});F.setValue(L,{value:ue})}),Z.addEventListener("resetform",se=>{let Y=D.defaultFieldValue;se.target.checked=Y!=null&&Y===D.buttonValue}),this.enableScripting&&this.hasJSActions){let se=D.buttonValue;Z.addEventListener("updatefromsandbox",Y=>{let ue={value:pe=>{let oe=se===pe.detail.value;for(let de of this._getElementsByName(pe.target.name)){let ve=oe&&de.id===L;de.domElement&&(de.domElement.checked=ve),F.setValue(de.id,{value:ve})}}};this._dispatchEventFromSandbox(ue,Y)}),this._setEventListeners(Z,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],Y=>Y.target.checked)}return this._setBackgroundColor(Z),this._setDefaultPropertiesFromJS(Z),this.container.append(Z),this.container}}class _ extends m{constructor(F){super(F,{ignoreBorder:F.data.hasAppearance})}render(){let F=super.render();F.className="buttonWidgetAnnotation pushButton",this.data.alternativeText&&(F.title=this.data.alternativeText);let D=F.lastChild;return this.enableScripting&&this.hasJSActions&&D&&(this._setDefaultPropertiesFromJS(D),D.addEventListener("updatefromsandbox",L=>{this._dispatchEventFromSandbox({},L)})),F}}class w extends b{constructor(F){super(F,{isRenderable:F.renderForms})}render(){this.container.className="choiceWidgetAnnotation";let F=this.annotationStorage,D=this.data.id,L=F.getValue(D,{value:this.data.fieldValue}),$=document.createElement("select");c.add($),$.setAttribute("data-element-id",D),$.disabled=this.data.readOnly,this._setRequired($,this.data.required),$.name=this.data.fieldName,$.tabIndex=l;let Z=this.data.combo&&this.data.options.length>0;this.data.combo||($.size=this.data.options.length,this.data.multiSelect&&($.multiple=!0)),$.addEventListener("resetform",oe=>{let de=this.data.defaultFieldValue;for(let ve of $.options)ve.selected=ve.value===de});for(let oe of this.data.options){let de=document.createElement("option");de.textContent=oe.displayValue,de.value=oe.exportValue,L.value.includes(oe.exportValue)&&(de.setAttribute("selected",!0),Z=!1),$.append(de)}let se=null;if(Z){let oe=document.createElement("option");oe.value=" ",oe.setAttribute("hidden",!0),oe.setAttribute("selected",!0),$.prepend(oe),se=()=>{oe.remove(),$.removeEventListener("input",se),se=null},$.addEventListener("input",se)}let Y=oe=>{let de=oe?"value":"textContent",{options:ve,multiple:Ae}=$;return Ae?Array.prototype.filter.call(ve,Ce=>Ce.selected).map(Ce=>Ce[de]):ve.selectedIndex===-1?null:ve[ve.selectedIndex][de]},ue=Y(!1),pe=oe=>{let de=oe.target.options;return Array.prototype.map.call(de,ve=>({displayValue:ve.textContent,exportValue:ve.value}))};return this.enableScripting&&this.hasJSActions?($.addEventListener("updatefromsandbox",oe=>{let de={value(ve){se?.();let Ae=ve.detail.value,Ce=new Set(Array.isArray(Ae)?Ae:[Ae]);for(let Ge of $.options)Ge.selected=Ce.has(Ge.value);F.setValue(D,{value:Y(!0)}),ue=Y(!1)},multipleSelection(ve){$.multiple=!0},remove(ve){let Ae=$.options,Ce=ve.detail.remove;Ae[Ce].selected=!1,$.remove(Ce),Ae.length>0&&Array.prototype.findIndex.call(Ae,Ee=>Ee.selected)===-1&&(Ae[0].selected=!0),F.setValue(D,{value:Y(!0),items:pe(ve)}),ue=Y(!1)},clear(ve){for(;$.length!==0;)$.remove(0);F.setValue(D,{value:null,items:[]}),ue=Y(!1)},insert(ve){let{index:Ae,displayValue:Ce,exportValue:Ge}=ve.detail.insert,Ee=$.children[Ae],Ne=document.createElement("option");Ne.textContent=Ce,Ne.value=Ge,Ee?Ee.before(Ne):$.append(Ne),F.setValue(D,{value:Y(!0),items:pe(ve)}),ue=Y(!1)},items(ve){let{items:Ae}=ve.detail;for(;$.length!==0;)$.remove(0);for(let Ce of Ae){let{displayValue:Ge,exportValue:Ee}=Ce,Ne=document.createElement("option");Ne.textContent=Ge,Ne.value=Ee,$.append(Ne)}$.options.length>0&&($.options[0].selected=!0),F.setValue(D,{value:Y(!0),items:pe(ve)}),ue=Y(!1)},indices(ve){let Ae=new Set(ve.detail.indices);for(let Ce of ve.target.options)Ce.selected=Ae.has(Ce.index);F.setValue(D,{value:Y(!0)}),ue=Y(!1)},editable(ve){ve.target.disabled=!ve.detail.editable}};this._dispatchEventFromSandbox(de,oe)}),$.addEventListener("input",oe=>{let de=Y(!0);F.setValue(D,{value:de}),oe.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:D,name:"Keystroke",value:ue,changeEx:de,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners($,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],oe=>oe.target.value)):$.addEventListener("input",function(oe){F.setValue(D,{value:Y(!0)})}),this.data.combo&&this._setTextStyle($),this._setBackgroundColor($),this._setDefaultPropertiesFromJS($),this.container.append($),this.container}}class k extends h{static IGNORE_TYPES=new Set(["Line","Square","Circle","PolyLine","Polygon","Ink"]);constructor(F){let{data:D}=F,L=!k.IGNORE_TYPES.has(D.parentType)&&!!(D.titleObj?.str||D.contentsObj?.str||D.richText?.str);super(F,{isRenderable:L})}render(){this.container.className="popupAnnotation";let F=this.layer.querySelectorAll(`[data-annotation-id="${this.data.parentId}"]`);if(F.length===0)return this.container;let D=new O({container:this.container,trigger:Array.from(F),color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText}),L=this.page,$=r.Util.normalizeRect([this.data.parentRect[0],L.view[3]-this.data.parentRect[1]+L.view[1],this.data.parentRect[2],L.view[3]-this.data.parentRect[3]+L.view[1]]),Z=$[0]+this.data.parentRect[2]-this.data.parentRect[0],se=$[1],{pageWidth:Y,pageHeight:ue,pageX:pe,pageY:oe}=this.viewport.rawDims;return this.container.style.left=`${100*(Z-pe)/Y}%`,this.container.style.top=`${100*(se-oe)/ue}%`,this.container.append(D.render()),this.container}}class O{constructor(F){this.container=F.container,this.trigger=F.trigger,this.color=F.color,this.titleObj=F.titleObj,this.modificationDate=F.modificationDate,this.contentsObj=F.contentsObj,this.richText=F.richText,this.hideWrapper=F.hideWrapper||!1,this.pinned=!1}render(){let D=document.createElement("div");D.className="popupWrapper",this.hideElement=this.hideWrapper?D:this.container,this.hideElement.hidden=!0;let L=document.createElement("div");L.className="popup";let $=this.color;if($){let Y=.7*(255-$[0])+$[0],ue=.7*(255-$[1])+$[1],pe=.7*(255-$[2])+$[2];L.style.backgroundColor=r.Util.makeHexColor(Y|0,ue|0,pe|0)}let Z=document.createElement("h1");Z.dir=this.titleObj.dir,Z.textContent=this.titleObj.str,L.append(Z);let se=i.PDFDateString.toDateObject(this.modificationDate);if(se){let Y=document.createElement("span");Y.className="popupDate",Y.textContent="{{date}}, {{time}}",Y.dataset.l10nId="annotation_date_string",Y.dataset.l10nArgs=JSON.stringify({date:se.toLocaleDateString(),time:se.toLocaleTimeString()}),L.append(Y)}if(this.richText?.str&&(!this.contentsObj?.str||this.contentsObj.str===this.richText.str))a.XfaLayer.render({xfaHtml:this.richText.html,intent:"richText",div:L}),L.lastChild.className="richText popupContent";else{let Y=this._formatContents(this.contentsObj);L.append(Y)}Array.isArray(this.trigger)||(this.trigger=[this.trigger]);for(let Y of this.trigger)Y.addEventListener("click",this._toggle.bind(this)),Y.addEventListener("mouseover",this._show.bind(this,!1)),Y.addEventListener("mouseout",this._hide.bind(this,!1));return L.addEventListener("click",this._hide.bind(this,!0)),D.append(L),D}_formatContents({str:F,dir:D}){let L=document.createElement("p");L.className="popupContent",L.dir=D;let $=F.split(/(?:\r\n?|\n)/);for(let Z=0,se=$.length;Z<se;++Z){let Y=$[Z];L.append(document.createTextNode(Y)),Z<se-1&&L.append(document.createElement("br"))}return L}_toggle(){this.pinned?this._hide(!0):this._show(!0)}_show(F=!1){F&&(this.pinned=!0),this.hideElement.hidden&&(this.hideElement.hidden=!1,this.container.style.zIndex=parseInt(this.container.style.zIndex)+1e3)}_hide(F=!0){F&&(this.pinned=!1),!this.hideElement.hidden&&!this.pinned&&(this.hideElement.hidden=!0,this.container.style.zIndex=parseInt(this.container.style.zIndex)-1e3)}}class M extends h{constructor(F){let D=!!(F.data.hasPopup||F.data.titleObj?.str||F.data.contentsObj?.str||F.data.richText?.str);super(F,{isRenderable:D,ignoreBorder:!0}),this.textContent=F.data.textContent}render(){if(this.container.className="freeTextAnnotation",this.textContent){let F=document.createElement("div");F.className="annotationTextContent",F.setAttribute("role","comment");for(let D of this.textContent){let L=document.createElement("span");L.textContent=D,F.append(L)}this.container.append(F)}return this.data.hasPopup||this._createPopup(null,this.data),this.container}}class I extends h{constructor(F){let D=!!(F.data.hasPopup||F.data.titleObj?.str||F.data.contentsObj?.str||F.data.richText?.str);super(F,{isRenderable:D,ignoreBorder:!0})}render(){this.container.className="lineAnnotation";let F=this.data,{width:D,height:L}=f(F.rect),$=this.svgFactory.create(D,L,!0),Z=this.svgFactory.createElement("svg:line");return Z.setAttribute("x1",F.rect[2]-F.lineCoordinates[0]),Z.setAttribute("y1",F.rect[3]-F.lineCoordinates[1]),Z.setAttribute("x2",F.rect[2]-F.lineCoordinates[2]),Z.setAttribute("y2",F.rect[3]-F.lineCoordinates[3]),Z.setAttribute("stroke-width",F.borderStyle.width||1),Z.setAttribute("stroke","transparent"),Z.setAttribute("fill","transparent"),$.append(Z),this.container.append($),this._createPopup(Z,F),this.container}}class W extends h{constructor(F){let D=!!(F.data.hasPopup||F.data.titleObj?.str||F.data.contentsObj?.str||F.data.richText?.str);super(F,{isRenderable:D,ignoreBorder:!0})}render(){this.container.className="squareAnnotation";let F=this.data,{width:D,height:L}=f(F.rect),$=this.svgFactory.create(D,L,!0),Z=F.borderStyle.width,se=this.svgFactory.createElement("svg:rect");return se.setAttribute("x",Z/2),se.setAttribute("y",Z/2),se.setAttribute("width",D-Z),se.setAttribute("height",L-Z),se.setAttribute("stroke-width",Z||1),se.setAttribute("stroke","transparent"),se.setAttribute("fill","transparent"),$.append(se),this.container.append($),this._createPopup(se,F),this.container}}class J extends h{constructor(F){let D=!!(F.data.hasPopup||F.data.titleObj?.str||F.data.contentsObj?.str||F.data.richText?.str);super(F,{isRenderable:D,ignoreBorder:!0})}render(){this.container.className="circleAnnotation";let F=this.data,{width:D,height:L}=f(F.rect),$=this.svgFactory.create(D,L,!0),Z=F.borderStyle.width,se=this.svgFactory.createElement("svg:ellipse");return se.setAttribute("cx",D/2),se.setAttribute("cy",L/2),se.setAttribute("rx",D/2-Z/2),se.setAttribute("ry",L/2-Z/2),se.setAttribute("stroke-width",Z||1),se.setAttribute("stroke","transparent"),se.setAttribute("fill","transparent"),$.append(se),this.container.append($),this._createPopup(se,F),this.container}}class H extends h{constructor(F){let D=!!(F.data.hasPopup||F.data.titleObj?.str||F.data.contentsObj?.str||F.data.richText?.str);super(F,{isRenderable:D,ignoreBorder:!0}),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;let F=this.data,{width:D,height:L}=f(F.rect),$=this.svgFactory.create(D,L,!0),Z=[];for(let Y of F.vertices){let ue=Y.x-F.rect[0],pe=F.rect[3]-Y.y;Z.push(ue+","+pe)}Z=Z.join(" ");let se=this.svgFactory.createElement(this.svgElementName);return se.setAttribute("points",Z),se.setAttribute("stroke-width",F.borderStyle.width||1),se.setAttribute("stroke","transparent"),se.setAttribute("fill","transparent"),$.append(se),this.container.append($),this._createPopup(se,F),this.container}}class ee extends H{constructor(F){super(F),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class j extends h{constructor(F){let D=!!(F.data.hasPopup||F.data.titleObj?.str||F.data.contentsObj?.str||F.data.richText?.str);super(F,{isRenderable:D,ignoreBorder:!0})}render(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class V extends h{constructor(F){let D=!!(F.data.hasPopup||F.data.titleObj?.str||F.data.contentsObj?.str||F.data.richText?.str);super(F,{isRenderable:D,ignoreBorder:!0}),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;let F=this.data,{width:D,height:L}=f(F.rect),$=this.svgFactory.create(D,L,!0);for(let Z of F.inkLists){let se=[];for(let ue of Z){let pe=ue.x-F.rect[0],oe=F.rect[3]-ue.y;se.push(`${pe},${oe}`)}se=se.join(" ");let Y=this.svgFactory.createElement(this.svgElementName);Y.setAttribute("points",se),Y.setAttribute("stroke-width",F.borderStyle.width||1),Y.setAttribute("stroke","transparent"),Y.setAttribute("fill","transparent"),this._createPopup(Y,F),$.append(Y)}return this.container.append($),this.container}}class B extends h{constructor(F){let D=!!(F.data.hasPopup||F.data.titleObj?.str||F.data.contentsObj?.str||F.data.richText?.str);super(F,{isRenderable:D,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("highlightAnnotation"):(this.container.className="highlightAnnotation",this.container)}}class N extends h{constructor(F){let D=!!(F.data.hasPopup||F.data.titleObj?.str||F.data.contentsObj?.str||F.data.richText?.str);super(F,{isRenderable:D,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("underlineAnnotation"):(this.container.className="underlineAnnotation",this.container)}}class C extends h{constructor(F){let D=!!(F.data.hasPopup||F.data.titleObj?.str||F.data.contentsObj?.str||F.data.richText?.str);super(F,{isRenderable:D,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("squigglyAnnotation"):(this.container.className="squigglyAnnotation",this.container)}}class S extends h{constructor(F){let D=!!(F.data.hasPopup||F.data.titleObj?.str||F.data.contentsObj?.str||F.data.richText?.str);super(F,{isRenderable:D,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("strikeoutAnnotation"):(this.container.className="strikeoutAnnotation",this.container)}}class G extends h{constructor(F){let D=!!(F.data.hasPopup||F.data.titleObj?.str||F.data.contentsObj?.str||F.data.richText?.str);super(F,{isRenderable:D,ignoreBorder:!0})}render(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class T extends h{constructor(F){super(F,{isRenderable:!0});let{filename:D,content:L}=this.data.file;this.filename=(0,i.getFilenameFromUrl)(D,!0),this.content=L,this.linkService.eventBus?.dispatch("fileattachmentannotation",{source:this,filename:D,content:L})}render(){this.container.className="fileAttachmentAnnotation";let F;return this.data.hasAppearance?F=document.createElement("div"):(F=document.createElement("img"),F.src=`${this.imageResourcesPath}annotation-${/paperclip/i.test(this.data.name)?"paperclip":"pushpin"}.svg`),F.className="popupTriggerArea",F.addEventListener("dblclick",this._download.bind(this)),!this.data.hasPopup&&(this.data.titleObj?.str||this.data.contentsObj?.str||this.data.richText)&&this._createPopup(F,this.data),this.container.append(F),this.container}_download(){this.downloadManager?.openOrDownloadData(this.container,this.content,this.filename)}}class Q{static#e(F,D,L,$){let Z=F.firstChild||F;Z.id=`${i.AnnotationPrefix}${D}`,L.append(F),$?.moveElementInDOM(L,F,Z,!1)}static render(F){let{annotations:D,div:L,viewport:$,accessibilityManager:Z}=F;(0,i.setLayerDimensions)(L,$);let se={data:null,layer:L,page:F.page,viewport:$,linkService:F.linkService,downloadManager:F.downloadManager,imageResourcesPath:F.imageResourcesPath||"",renderForms:F.renderForms!==!1,svgFactory:new i.DOMSVGFactory,annotationStorage:F.annotationStorage||new o.AnnotationStorage,enableScripting:F.enableScripting===!0,hasJSActions:F.hasJSActions,fieldObjects:F.fieldObjects},Y=0;for(let ue of D){if(ue.annotationType!==r.AnnotationType.POPUP){let{width:de,height:ve}=f(ue.rect);if(de<=0||ve<=0)continue}se.data=ue;let pe=d.create(se);if(!pe.isRenderable)continue;let oe=pe.render();if(ue.hidden&&(oe.style.visibility="hidden"),Array.isArray(oe))for(let de of oe)de.style.zIndex=Y++,Q.#e(de,ue.id,L,Z);else oe.style.zIndex=Y++,pe instanceof k?L.prepend(oe):Q.#e(oe,ue.id,L,Z)}this.#t(L,F.annotationCanvasMap)}static update(F){let{annotationCanvasMap:D,div:L,viewport:$}=F;(0,i.setLayerDimensions)(L,{rotation:$.rotation}),this.#t(L,D),L.hidden=!1}static#t(F,D){if(!!D){for(let[L,$]of D){let Z=F.querySelector(`[data-annotation-id="${L}"]`);if(!Z)continue;let{firstChild:se}=Z;se?se.nodeName==="CANVAS"?se.replaceWith($):se.before($):Z.append($)}D.clear()}}}t.AnnotationLayer=Q},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorConverters=void 0;function n(i){return Math.floor(Math.max(0,Math.min(1,i))*255).toString(16).padStart(2,"0")}class r{static CMYK_G([o,s,a,l]){return["G",1-Math.min(1,.3*o+.59*a+.11*s+l)]}static G_CMYK([o]){return["CMYK",0,0,0,1-o]}static G_RGB([o]){return["RGB",o,o,o]}static G_HTML([o]){let s=n(o);return`#${s}${s}${s}`}static RGB_G([o,s,a]){return["G",.3*o+.59*s+.11*a]}static RGB_HTML([o,s,a]){let l=n(o),u=n(s),c=n(a);return`#${l}${u}${c}`}static T_HTML(){return"#00000000"}static CMYK_RGB([o,s,a,l]){return["RGB",1-Math.min(1,o+l),1-Math.min(1,a+l),1-Math.min(1,s+l)]}static CMYK_HTML(o){let s=this.CMYK_RGB(o).slice(1);return this.RGB_HTML(s)}static RGB_CMYK([o,s,a]){let l=1-o,u=1-s,c=1-a,f=Math.min(l,u,c);return["CMYK",l,u,c,f]}}t.ColorConverters=r},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaLayer=void 0;var r=n(19);class i{static setupStorage(s,a,l,u,c){let f=u.getValue(a,{value:null});switch(l.name){case"textarea":if(f.value!==null&&(s.textContent=f.value),c==="print")break;s.addEventListener("input",d=>{u.setValue(a,{value:d.target.value})});break;case"input":if(l.attributes.type==="radio"||l.attributes.type==="checkbox"){if(f.value===l.attributes.xfaOn?s.setAttribute("checked",!0):f.value===l.attributes.xfaOff&&s.removeAttribute("checked"),c==="print")break;s.addEventListener("change",d=>{u.setValue(a,{value:d.target.checked?d.target.getAttribute("xfaOn"):d.target.getAttribute("xfaOff")})})}else{if(f.value!==null&&s.setAttribute("value",f.value),c==="print")break;s.addEventListener("input",d=>{u.setValue(a,{value:d.target.value})})}break;case"select":if(f.value!==null)for(let d of l.children)d.attributes.value===f.value&&(d.attributes.selected=!0);s.addEventListener("input",d=>{let h=d.target.options,m=h.selectedIndex===-1?"":h[h.selectedIndex].value;u.setValue(a,{value:m})});break}}static setAttributes({html:s,element:a,storage:l=null,intent:u,linkService:c}){let{attributes:f}=a,d=s instanceof HTMLAnchorElement;f.type==="radio"&&(f.name=`${f.name}-${u}`);for(let[h,m]of Object.entries(f))if(m!=null)switch(h){case"class":m.length&&s.setAttribute(h,m.join(" "));break;case"dataId":break;case"id":s.setAttribute("data-element-id",m);break;case"style":Object.assign(s.style,m);break;case"textContent":s.textContent=m;break;default:(!d||h!=="href"&&h!=="newWindow")&&s.setAttribute(h,m)}d&&c.addLinkAttributes(s,f.href,f.newWindow),l&&f.dataId&&this.setupStorage(s,f.dataId,a,l)}static render(s){let a=s.annotationStorage,l=s.linkService,u=s.xfaHtml,c=s.intent||"display",f=document.createElement(u.name);u.attributes&&this.setAttributes({html:f,element:u,intent:c,linkService:l});let d=[[u,-1,f]],h=s.div;if(h.append(f),s.viewport){let g=`matrix(${s.viewport.transform.join(",")})`;h.style.transform=g}c!=="richText"&&h.setAttribute("class","xfaLayer xfaFont");let m=[];for(;d.length>0;){let[g,b,v]=d.at(-1);if(b+1===g.children.length){d.pop();continue}let x=g.children[++d.at(-1)[1]];if(x===null)continue;let{name:y}=x;if(y==="#text"){let w=document.createTextNode(x.value);m.push(w),v.append(w);continue}let _;if(x?.attributes?.xmlns?_=document.createElementNS(x.attributes.xmlns,y):_=document.createElement(y),v.append(_),x.attributes&&this.setAttributes({html:_,element:x,storage:a,intent:c,linkService:l}),x.children&&x.children.length>0)d.push([x,-1,_]);else if(x.value){let w=document.createTextNode(x.value);r.XfaText.shouldBuildText(y)&&m.push(w),_.append(w)}}for(let g of h.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))g.setAttribute("readOnly",!0);return{textDivs:m}}static update(s){let a=`matrix(${s.viewport.transform.join(",")})`;s.div.style.transform=a,s.div.hidden=!1}}t.XfaLayer=i},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var r=n(6),i=n(1),o=n(10);let s=class{constructor(){(0,i.unreachable)("Not implemented: SVGGraphics")}};t.SVGGraphics=s;{let g=function(w){let k=[],O=[];for(let M of w){if(M.fn==="save"){k.push({fnId:92,fn:"group",items:[]}),O.push(k),k=k.at(-1).items;continue}M.fn==="restore"?k=O.pop():k.push(M)}return k},b=function(w){if(Number.isInteger(w))return w.toString();let k=w.toFixed(10),O=k.length-1;if(k[O]!=="0")return k;do O--;while(k[O]==="0");return k.substring(0,k[O]==="."?O:O+1)},v=function(w){if(w[4]===0&&w[5]===0){if(w[1]===0&&w[2]===0)return w[0]===1&&w[3]===1?"":`scale(${b(w[0])} ${b(w[3])})`;if(w[0]===w[3]&&w[1]===-w[2]){let k=Math.acos(w[0])*180/Math.PI;return`rotate(${b(k)})`}}else if(w[0]===1&&w[1]===0&&w[2]===0&&w[3]===1)return`translate(${b(w[4])} ${b(w[5])})`;return`matrix(${b(w[0])} ${b(w[1])} ${b(w[2])} ${b(w[3])} ${b(w[4])} ${b(w[5])})`},a={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},l="http://www.w3.org/XML/1998/namespace",u="http://www.w3.org/1999/xlink",c=["butt","round","square"],f=["miter","round","bevel"],d=function(w,k="",O=!1){if(URL.createObjectURL&&typeof Blob<"u"&&!O)return URL.createObjectURL(new Blob([w],{type:k}));let M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",I=`data:${k};base64,`;for(let W=0,J=w.length;W<J;W+=3){let H=w[W]&255,ee=w[W+1]&255,j=w[W+2]&255,V=H>>2,B=(H&3)<<4|ee>>4,N=W+1<J?(ee&15)<<2|j>>6:64,C=W+2<J?j&63:64;I+=M[V]+M[B]+M[N]+M[C]}return I},h=function(){let w=new Uint8Array([137,80,78,71,13,10,26,10]),k=12,O=new Int32Array(256);for(let j=0;j<256;j++){let V=j;for(let B=0;B<8;B++)V&1?V=3988292384^V>>1&2147483647:V=V>>1&2147483647;O[j]=V}function M(j,V,B){let N=-1;for(let C=V;C<B;C++){let S=(N^j[C])&255,G=O[S];N=N>>>8^G}return N^-1}function I(j,V,B,N){let C=N,S=V.length;B[C]=S>>24&255,B[C+1]=S>>16&255,B[C+2]=S>>8&255,B[C+3]=S&255,C+=4,B[C]=j.charCodeAt(0)&255,B[C+1]=j.charCodeAt(1)&255,B[C+2]=j.charCodeAt(2)&255,B[C+3]=j.charCodeAt(3)&255,C+=4,B.set(V,C),C+=V.length;let G=M(B,N+4,C);B[C]=G>>24&255,B[C+1]=G>>16&255,B[C+2]=G>>8&255,B[C+3]=G&255}function W(j,V,B){let N=1,C=0;for(let S=V;S<B;++S)N=(N+(j[S]&255))%65521,C=(C+N)%65521;return C<<16|N}function J(j){if(!o.isNodeJS)return H(j);try{let V;parseInt(process.versions.node)>=8?V=j:V=Buffer.from(j);let B=o_e().deflateSync(V,{level:9});return B instanceof Uint8Array?B:new Uint8Array(B)}catch(V){(0,i.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+V)}return H(j)}function H(j){let V=j.length,B=65535,N=Math.ceil(V/B),C=new Uint8Array(2+V+N*5+4),S=0;C[S++]=120,C[S++]=156;let G=0;for(;V>B;)C[S++]=0,C[S++]=255,C[S++]=255,C[S++]=0,C[S++]=0,C.set(j.subarray(G,G+B),S),S+=B,G+=B,V-=B;C[S++]=1,C[S++]=V&255,C[S++]=V>>8&255,C[S++]=~V&65535&255,C[S++]=(~V&65535)>>8&255,C.set(j.subarray(G),S),S+=j.length-G;let T=W(j,0,j.length);return C[S++]=T>>24&255,C[S++]=T>>16&255,C[S++]=T>>8&255,C[S++]=T&255,C}function ee(j,V,B,N){let C=j.width,S=j.height,G,T,Q,U=j.data;switch(V){case i.ImageKind.GRAYSCALE_1BPP:T=0,G=1,Q=C+7>>3;break;case i.ImageKind.RGB_24BPP:T=2,G=8,Q=C*3;break;case i.ImageKind.RGBA_32BPP:T=6,G=8,Q=C*4;break;default:throw new Error("invalid format")}let F=new Uint8Array((1+Q)*S),D=0,L=0;for(let pe=0;pe<S;++pe)F[D++]=0,F.set(U.subarray(L,L+Q),D),L+=Q,D+=Q;if(V===i.ImageKind.GRAYSCALE_1BPP&&N){D=0;for(let pe=0;pe<S;pe++){D++;for(let oe=0;oe<Q;oe++)F[D++]^=255}}let $=new Uint8Array([C>>24&255,C>>16&255,C>>8&255,C&255,S>>24&255,S>>16&255,S>>8&255,S&255,G,T,0,0,0]),Z=J(F),se=w.length+k*3+$.length+Z.length,Y=new Uint8Array(se),ue=0;return Y.set(w,ue),ue+=w.length,I("IHDR",$,Y,ue),ue+=k+$.length,I("IDATA",Z,Y,ue),ue+=k+Z.length,I("IEND",new Uint8Array(0),Y,ue),d(Y,"image/png",B)}return function(V,B,N){let C=V.kind===void 0?i.ImageKind.GRAYSCALE_1BPP:V.kind;return ee(V,C,B,N)}}();class m{constructor(){this.fontSizeScale=1,this.fontWeight=a.fontWeight,this.fontSize=0,this.textMatrix=i.IDENTITY_MATRIX,this.fontMatrix=i.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=i.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=a.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(k,O){this.x=k,this.y=O}}let x=0,y=0,_=0;t.SVGGraphics=s=class{constructor(w,k,O=!1){(0,r.deprecated)("The SVG back-end is no longer maintained and *may* be removed in the future."),this.svgFactory=new r.DOMSVGFactory,this.current=new m,this.transformMatrix=i.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=w,this.objs=k,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!O,this._operatorIdMapping=[];for(let M in i.OPS)this._operatorIdMapping[i.OPS[M]]=M}getObject(w,k=null){return typeof w=="string"?w.startsWith("g_")?this.commonObjs.get(w):this.objs.get(w):k}save(){this.transformStack.push(this.transformMatrix);let w=this.current;this.extraStack.push(w),this.current=w.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(w){this.save(),this.executeOpTree(w),this.restore()}loadDependencies(w){let k=w.fnArray,O=w.argsArray;for(let M=0,I=k.length;M<I;M++)if(k[M]===i.OPS.dependency)for(let W of O[M]){let J=W.startsWith("g_")?this.commonObjs:this.objs,H=new Promise(ee=>{J.get(W,ee)});this.current.dependencies.push(H)}return Promise.all(this.current.dependencies)}transform(w,k,O,M,I,W){let J=[w,k,O,M,I,W];this.transformMatrix=i.Util.transform(this.transformMatrix,J),this.tgrp=null}getSVG(w,k){this.viewport=k;let O=this._initialize(k);return this.loadDependencies(w).then(()=>(this.transformMatrix=i.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(w)),O))}convertOpList(w){let k=this._operatorIdMapping,O=w.argsArray,M=w.fnArray,I=[];for(let W=0,J=M.length;W<J;W++){let H=M[W];I.push({fnId:H,fn:k[H],args:O[W]})}return g(I)}executeOpTree(w){for(let k of w){let O=k.fn,M=k.fnId,I=k.args;switch(M|0){case i.OPS.beginText:this.beginText();break;case i.OPS.dependency:break;case i.OPS.setLeading:this.setLeading(I);break;case i.OPS.setLeadingMoveText:this.setLeadingMoveText(I[0],I[1]);break;case i.OPS.setFont:this.setFont(I);break;case i.OPS.showText:this.showText(I[0]);break;case i.OPS.showSpacedText:this.showText(I[0]);break;case i.OPS.endText:this.endText();break;case i.OPS.moveText:this.moveText(I[0],I[1]);break;case i.OPS.setCharSpacing:this.setCharSpacing(I[0]);break;case i.OPS.setWordSpacing:this.setWordSpacing(I[0]);break;case i.OPS.setHScale:this.setHScale(I[0]);break;case i.OPS.setTextMatrix:this.setTextMatrix(I[0],I[1],I[2],I[3],I[4],I[5]);break;case i.OPS.setTextRise:this.setTextRise(I[0]);break;case i.OPS.setTextRenderingMode:this.setTextRenderingMode(I[0]);break;case i.OPS.setLineWidth:this.setLineWidth(I[0]);break;case i.OPS.setLineJoin:this.setLineJoin(I[0]);break;case i.OPS.setLineCap:this.setLineCap(I[0]);break;case i.OPS.setMiterLimit:this.setMiterLimit(I[0]);break;case i.OPS.setFillRGBColor:this.setFillRGBColor(I[0],I[1],I[2]);break;case i.OPS.setStrokeRGBColor:this.setStrokeRGBColor(I[0],I[1],I[2]);break;case i.OPS.setStrokeColorN:this.setStrokeColorN(I);break;case i.OPS.setFillColorN:this.setFillColorN(I);break;case i.OPS.shadingFill:this.shadingFill(I[0]);break;case i.OPS.setDash:this.setDash(I[0],I[1]);break;case i.OPS.setRenderingIntent:this.setRenderingIntent(I[0]);break;case i.OPS.setFlatness:this.setFlatness(I[0]);break;case i.OPS.setGState:this.setGState(I[0]);break;case i.OPS.fill:this.fill();break;case i.OPS.eoFill:this.eoFill();break;case i.OPS.stroke:this.stroke();break;case i.OPS.fillStroke:this.fillStroke();break;case i.OPS.eoFillStroke:this.eoFillStroke();break;case i.OPS.clip:this.clip("nonzero");break;case i.OPS.eoClip:this.clip("evenodd");break;case i.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case i.OPS.paintImageXObject:this.paintImageXObject(I[0]);break;case i.OPS.paintInlineImageXObject:this.paintInlineImageXObject(I[0]);break;case i.OPS.paintImageMaskXObject:this.paintImageMaskXObject(I[0]);break;case i.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(I[0],I[1]);break;case i.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case i.OPS.closePath:this.closePath();break;case i.OPS.closeStroke:this.closeStroke();break;case i.OPS.closeFillStroke:this.closeFillStroke();break;case i.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case i.OPS.nextLine:this.nextLine();break;case i.OPS.transform:this.transform(I[0],I[1],I[2],I[3],I[4],I[5]);break;case i.OPS.constructPath:this.constructPath(I[0],I[1]);break;case i.OPS.endPath:this.endPath();break;case 92:this.group(k.items);break;default:(0,i.warn)(`Unimplemented operator ${O}`);break}}}setWordSpacing(w){this.current.wordSpacing=w}setCharSpacing(w){this.current.charSpacing=w}nextLine(){this.moveText(0,this.current.leading)}setTextMatrix(w,k,O,M,I,W){let J=this.current;J.textMatrix=J.lineMatrix=[w,k,O,M,I,W],J.textMatrixScale=Math.hypot(w,k),J.x=J.lineX=0,J.y=J.lineY=0,J.xcoords=[],J.ycoords=[],J.tspan=this.svgFactory.createElement("svg:tspan"),J.tspan.setAttributeNS(null,"font-family",J.fontFamily),J.tspan.setAttributeNS(null,"font-size",`${b(J.fontSize)}px`),J.tspan.setAttributeNS(null,"y",b(-J.y)),J.txtElement=this.svgFactory.createElement("svg:text"),J.txtElement.append(J.tspan)}beginText(){let w=this.current;w.x=w.lineX=0,w.y=w.lineY=0,w.textMatrix=i.IDENTITY_MATRIX,w.lineMatrix=i.IDENTITY_MATRIX,w.textMatrixScale=1,w.tspan=this.svgFactory.createElement("svg:tspan"),w.txtElement=this.svgFactory.createElement("svg:text"),w.txtgrp=this.svgFactory.createElement("svg:g"),w.xcoords=[],w.ycoords=[]}moveText(w,k){let O=this.current;O.x=O.lineX+=w,O.y=O.lineY+=k,O.xcoords=[],O.ycoords=[],O.tspan=this.svgFactory.createElement("svg:tspan"),O.tspan.setAttributeNS(null,"font-family",O.fontFamily),O.tspan.setAttributeNS(null,"font-size",`${b(O.fontSize)}px`),O.tspan.setAttributeNS(null,"y",b(-O.y))}showText(w){let k=this.current,O=k.font,M=k.fontSize;if(M===0)return;let I=k.fontSizeScale,W=k.charSpacing,J=k.wordSpacing,H=k.fontDirection,ee=k.textHScale*H,j=O.vertical,V=j?1:-1,B=O.defaultVMetrics,N=M*k.fontMatrix[0],C=0;for(let T of w){if(T===null){C+=H*J;continue}else if(typeof T=="number"){C+=V*T*M/1e3;continue}let Q=(T.isSpace?J:0)+W,U=T.fontChar,F,D,L=T.width;if(j){let Z,se=T.vmetric||B;Z=T.vmetric?se[1]:L*.5,Z=-Z*N;let Y=se[2]*N;L=se?-se[0]:L,F=Z/I,D=(C+Y)/I}else F=C/I,D=0;(T.isInFont||O.missingFile)&&(k.xcoords.push(k.x+F),j&&k.ycoords.push(-k.y+D),k.tspan.textContent+=U);let $;j?$=L*N-Q*H:$=L*N+Q*H,C+=$}k.tspan.setAttributeNS(null,"x",k.xcoords.map(b).join(" ")),j?k.tspan.setAttributeNS(null,"y",k.ycoords.map(b).join(" ")):k.tspan.setAttributeNS(null,"y",b(-k.y)),j?k.y-=C:k.x+=C*ee,k.tspan.setAttributeNS(null,"font-family",k.fontFamily),k.tspan.setAttributeNS(null,"font-size",`${b(k.fontSize)}px`),k.fontStyle!==a.fontStyle&&k.tspan.setAttributeNS(null,"font-style",k.fontStyle),k.fontWeight!==a.fontWeight&&k.tspan.setAttributeNS(null,"font-weight",k.fontWeight);let S=k.textRenderingMode&i.TextRenderingMode.FILL_STROKE_MASK;if(S===i.TextRenderingMode.FILL||S===i.TextRenderingMode.FILL_STROKE?(k.fillColor!==a.fillColor&&k.tspan.setAttributeNS(null,"fill",k.fillColor),k.fillAlpha<1&&k.tspan.setAttributeNS(null,"fill-opacity",k.fillAlpha)):k.textRenderingMode===i.TextRenderingMode.ADD_TO_PATH?k.tspan.setAttributeNS(null,"fill","transparent"):k.tspan.setAttributeNS(null,"fill","none"),S===i.TextRenderingMode.STROKE||S===i.TextRenderingMode.FILL_STROKE){let T=1/(k.textMatrixScale||1);this._setStrokeAttributes(k.tspan,T)}let G=k.textMatrix;k.textRise!==0&&(G=G.slice(),G[5]+=k.textRise),k.txtElement.setAttributeNS(null,"transform",`${v(G)} scale(${b(ee)}, -1)`),k.txtElement.setAttributeNS(l,"xml:space","preserve"),k.txtElement.append(k.tspan),k.txtgrp.append(k.txtElement),this._ensureTransformGroup().append(k.txtElement)}setLeadingMoveText(w,k){this.setLeading(-k),this.moveText(w,k)}addFontStyle(w){if(!w.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.append(this.cssStyle));let k=d(w.data,w.mimetype,this.forceDataSchema);this.cssStyle.textContent+=`@font-face { font-family: "${w.loadedName}"; src: url(${k}); }
`}setFont(w){let k=this.current,O=this.commonObjs.get(w[0]),M=w[1];k.font=O,this.embedFonts&&!O.missingFile&&!this.embeddedFonts[O.loadedName]&&(this.addFontStyle(O),this.embeddedFonts[O.loadedName]=O),k.fontMatrix=O.fontMatrix||i.FONT_IDENTITY_MATRIX;let I="normal";O.black?I="900":O.bold&&(I="bold");let W=O.italic?"italic":"normal";M<0?(M=-M,k.fontDirection=-1):k.fontDirection=1,k.fontSize=M,k.fontFamily=O.loadedName,k.fontWeight=I,k.fontStyle=W,k.tspan=this.svgFactory.createElement("svg:tspan"),k.tspan.setAttributeNS(null,"y",b(-k.y)),k.xcoords=[],k.ycoords=[]}endText(){let w=this.current;w.textRenderingMode&i.TextRenderingMode.ADD_TO_PATH_FLAG&&w.txtElement?.hasChildNodes()&&(w.element=w.txtElement,this.clip("nonzero"),this.endPath())}setLineWidth(w){w>0&&(this.current.lineWidth=w)}setLineCap(w){this.current.lineCap=c[w]}setLineJoin(w){this.current.lineJoin=f[w]}setMiterLimit(w){this.current.miterLimit=w}setStrokeAlpha(w){this.current.strokeAlpha=w}setStrokeRGBColor(w,k,O){this.current.strokeColor=i.Util.makeHexColor(w,k,O)}setFillAlpha(w){this.current.fillAlpha=w}setFillRGBColor(w,k,O){this.current.fillColor=i.Util.makeHexColor(w,k,O),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(w){this.current.strokeColor=this._makeColorN_Pattern(w)}setFillColorN(w){this.current.fillColor=this._makeColorN_Pattern(w)}shadingFill(w){let k=this.viewport.width,O=this.viewport.height,M=i.Util.inverseTransform(this.transformMatrix),I=i.Util.applyTransform([0,0],M),W=i.Util.applyTransform([0,O],M),J=i.Util.applyTransform([k,0],M),H=i.Util.applyTransform([k,O],M),ee=Math.min(I[0],W[0],J[0],H[0]),j=Math.min(I[1],W[1],J[1],H[1]),V=Math.max(I[0],W[0],J[0],H[0]),B=Math.max(I[1],W[1],J[1],H[1]),N=this.svgFactory.createElement("svg:rect");N.setAttributeNS(null,"x",ee),N.setAttributeNS(null,"y",j),N.setAttributeNS(null,"width",V-ee),N.setAttributeNS(null,"height",B-j),N.setAttributeNS(null,"fill",this._makeShadingPattern(w)),this.current.fillAlpha<1&&N.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().append(N)}_makeColorN_Pattern(w){return w[0]==="TilingPattern"?this._makeTilingPattern(w):this._makeShadingPattern(w)}_makeTilingPattern(w){let k=w[1],O=w[2],M=w[3]||i.IDENTITY_MATRIX,[I,W,J,H]=w[4],ee=w[5],j=w[6],V=w[7],B=`shading${_++}`,[N,C,S,G]=i.Util.normalizeRect([...i.Util.applyTransform([I,W],M),...i.Util.applyTransform([J,H],M)]),[T,Q]=i.Util.singularValueDecompose2dScale(M),U=ee*T,F=j*Q,D=this.svgFactory.createElement("svg:pattern");D.setAttributeNS(null,"id",B),D.setAttributeNS(null,"patternUnits","userSpaceOnUse"),D.setAttributeNS(null,"width",U),D.setAttributeNS(null,"height",F),D.setAttributeNS(null,"x",`${N}`),D.setAttributeNS(null,"y",`${C}`);let L=this.svg,$=this.transformMatrix,Z=this.current.fillColor,se=this.current.strokeColor,Y=this.svgFactory.create(S-N,G-C);if(this.svg=Y,this.transformMatrix=M,V===2){let ue=i.Util.makeHexColor(...k);this.current.fillColor=ue,this.current.strokeColor=ue}return this.executeOpTree(this.convertOpList(O)),this.svg=L,this.transformMatrix=$,this.current.fillColor=Z,this.current.strokeColor=se,D.append(Y.childNodes[0]),this.defs.append(D),`url(#${B})`}_makeShadingPattern(w){switch(typeof w=="string"&&(w=this.objs.get(w)),w[0]){case"RadialAxial":let k=`shading${_++}`,O=w[3],M;switch(w[1]){case"axial":let I=w[4],W=w[5];M=this.svgFactory.createElement("svg:linearGradient"),M.setAttributeNS(null,"id",k),M.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),M.setAttributeNS(null,"x1",I[0]),M.setAttributeNS(null,"y1",I[1]),M.setAttributeNS(null,"x2",W[0]),M.setAttributeNS(null,"y2",W[1]);break;case"radial":let J=w[4],H=w[5],ee=w[6],j=w[7];M=this.svgFactory.createElement("svg:radialGradient"),M.setAttributeNS(null,"id",k),M.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),M.setAttributeNS(null,"cx",H[0]),M.setAttributeNS(null,"cy",H[1]),M.setAttributeNS(null,"r",j),M.setAttributeNS(null,"fx",J[0]),M.setAttributeNS(null,"fy",J[1]),M.setAttributeNS(null,"fr",ee);break;default:throw new Error(`Unknown RadialAxial type: ${w[1]}`)}for(let I of O){let W=this.svgFactory.createElement("svg:stop");W.setAttributeNS(null,"offset",I[0]),W.setAttributeNS(null,"stop-color",I[1]),M.append(W)}return this.defs.append(M),`url(#${k})`;case"Mesh":return(0,i.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${w[0]}`)}}setDash(w,k){this.current.dashArray=w,this.current.dashPhase=k}constructPath(w,k){let O=this.current,M=O.x,I=O.y,W=[],J=0;for(let H of w)switch(H|0){case i.OPS.rectangle:M=k[J++],I=k[J++];let ee=k[J++],j=k[J++],V=M+ee,B=I+j;W.push("M",b(M),b(I),"L",b(V),b(I),"L",b(V),b(B),"L",b(M),b(B),"Z");break;case i.OPS.moveTo:M=k[J++],I=k[J++],W.push("M",b(M),b(I));break;case i.OPS.lineTo:M=k[J++],I=k[J++],W.push("L",b(M),b(I));break;case i.OPS.curveTo:M=k[J+4],I=k[J+5],W.push("C",b(k[J]),b(k[J+1]),b(k[J+2]),b(k[J+3]),b(M),b(I)),J+=6;break;case i.OPS.curveTo2:W.push("C",b(M),b(I),b(k[J]),b(k[J+1]),b(k[J+2]),b(k[J+3])),M=k[J+2],I=k[J+3],J+=4;break;case i.OPS.curveTo3:M=k[J+2],I=k[J+3],W.push("C",b(k[J]),b(k[J+1]),b(M),b(I),b(M),b(I)),J+=4;break;case i.OPS.closePath:W.push("Z");break}W=W.join(" "),O.path&&w.length>0&&w[0]!==i.OPS.rectangle&&w[0]!==i.OPS.moveTo?W=O.path.getAttributeNS(null,"d")+W:(O.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(O.path)),O.path.setAttributeNS(null,"d",W),O.path.setAttributeNS(null,"fill","none"),O.element=O.path,O.setCurrentPoint(M,I)}endPath(){let w=this.current;if(w.path=null,!this.pendingClip)return;if(!w.element){this.pendingClip=null;return}let k=`clippath${x++}`,O=this.svgFactory.createElement("svg:clipPath");O.setAttributeNS(null,"id",k),O.setAttributeNS(null,"transform",v(this.transformMatrix));let M=w.element.cloneNode(!0);if(this.pendingClip==="evenodd"?M.setAttributeNS(null,"clip-rule","evenodd"):M.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,O.append(M),this.defs.append(O),w.activeClipUrl){w.clipGroup=null;for(let I of this.extraStack)I.clipGroup=null;O.setAttributeNS(null,"clip-path",w.activeClipUrl)}w.activeClipUrl=`url(#${k})`,this.tgrp=null}clip(w){this.pendingClip=w}closePath(){let w=this.current;if(w.path){let k=`${w.path.getAttributeNS(null,"d")}Z`;w.path.setAttributeNS(null,"d",k)}}setLeading(w){this.current.leading=-w}setTextRise(w){this.current.textRise=w}setTextRenderingMode(w){this.current.textRenderingMode=w}setHScale(w){this.current.textHScale=w/100}setRenderingIntent(w){}setFlatness(w){}setGState(w){for(let[k,O]of w)switch(k){case"LW":this.setLineWidth(O);break;case"LC":this.setLineCap(O);break;case"LJ":this.setLineJoin(O);break;case"ML":this.setMiterLimit(O);break;case"D":this.setDash(O[0],O[1]);break;case"RI":this.setRenderingIntent(O);break;case"FL":this.setFlatness(O);break;case"Font":this.setFont(O);break;case"CA":this.setStrokeAlpha(O);break;case"ca":this.setFillAlpha(O);break;default:(0,i.warn)(`Unimplemented graphic state operator ${k}`);break}}fill(){let w=this.current;w.element&&(w.element.setAttributeNS(null,"fill",w.fillColor),w.element.setAttributeNS(null,"fill-opacity",w.fillAlpha),this.endPath())}stroke(){let w=this.current;w.element&&(this._setStrokeAttributes(w.element),w.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(w,k=1){let O=this.current,M=O.dashArray;k!==1&&M.length>0&&(M=M.map(function(I){return k*I})),w.setAttributeNS(null,"stroke",O.strokeColor),w.setAttributeNS(null,"stroke-opacity",O.strokeAlpha),w.setAttributeNS(null,"stroke-miterlimit",b(O.miterLimit)),w.setAttributeNS(null,"stroke-linecap",O.lineCap),w.setAttributeNS(null,"stroke-linejoin",O.lineJoin),w.setAttributeNS(null,"stroke-width",b(k*O.lineWidth)+"px"),w.setAttributeNS(null,"stroke-dasharray",M.map(b).join(" ")),w.setAttributeNS(null,"stroke-dashoffset",b(k*O.dashPhase)+"px")}eoFill(){this.current.element?.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){this.current.element?.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){let w=this.svgFactory.createElement("svg:rect");w.setAttributeNS(null,"x","0"),w.setAttributeNS(null,"y","0"),w.setAttributeNS(null,"width","1px"),w.setAttributeNS(null,"height","1px"),w.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().append(w)}paintImageXObject(w){let k=this.getObject(w);if(!k){(0,i.warn)(`Dependent image with object ID ${w} is not ready yet`);return}this.paintInlineImageXObject(k)}paintInlineImageXObject(w,k){let O=w.width,M=w.height,I=h(w,this.forceDataSchema,!!k),W=this.svgFactory.createElement("svg:rect");W.setAttributeNS(null,"x","0"),W.setAttributeNS(null,"y","0"),W.setAttributeNS(null,"width",b(O)),W.setAttributeNS(null,"height",b(M)),this.current.element=W,this.clip("nonzero");let J=this.svgFactory.createElement("svg:image");J.setAttributeNS(u,"xlink:href",I),J.setAttributeNS(null,"x","0"),J.setAttributeNS(null,"y",b(-M)),J.setAttributeNS(null,"width",b(O)+"px"),J.setAttributeNS(null,"height",b(M)+"px"),J.setAttributeNS(null,"transform",`scale(${b(1/O)} ${b(-1/M)})`),k?k.append(J):this._ensureTransformGroup().append(J)}paintImageMaskXObject(w){let k=this.getObject(w.data,w);if(k.bitmap){(0,i.warn)("paintImageMaskXObject: ImageBitmap support is not implemented, ensure that the `isOffscreenCanvasSupported` API parameter is disabled.");return}let O=this.current,M=k.width,I=k.height,W=O.fillColor;O.maskId=`mask${y++}`;let J=this.svgFactory.createElement("svg:mask");J.setAttributeNS(null,"id",O.maskId);let H=this.svgFactory.createElement("svg:rect");H.setAttributeNS(null,"x","0"),H.setAttributeNS(null,"y","0"),H.setAttributeNS(null,"width",b(M)),H.setAttributeNS(null,"height",b(I)),H.setAttributeNS(null,"fill",W),H.setAttributeNS(null,"mask",`url(#${O.maskId})`),this.defs.append(J),this._ensureTransformGroup().append(H),this.paintInlineImageXObject(k,J)}paintFormXObjectBegin(w,k){if(Array.isArray(w)&&w.length===6&&this.transform(w[0],w[1],w[2],w[3],w[4],w[5]),k){let O=k[2]-k[0],M=k[3]-k[1],I=this.svgFactory.createElement("svg:rect");I.setAttributeNS(null,"x",k[0]),I.setAttributeNS(null,"y",k[1]),I.setAttributeNS(null,"width",b(O)),I.setAttributeNS(null,"height",b(M)),this.current.element=I,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(w){let k=this.svgFactory.create(w.width,w.height),O=this.svgFactory.createElement("svg:defs");k.append(O),this.defs=O;let M=this.svgFactory.createElement("svg:g");return M.setAttributeNS(null,"transform",v(w.transform)),k.append(M),this.svg=M,k}_ensureClipGroup(){if(!this.current.clipGroup){let w=this.svgFactory.createElement("svg:g");w.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.append(w),this.current.clipGroup=w}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",v(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)),this.tgrp}}}}],__webpack_module_cache__={};function __w_pdfjs_require__(e){var t=__webpack_module_cache__[e];if(t!==void 0)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](n,n.exports,__w_pdfjs_require__),n.exports}var __webpack_exports__={};return(()=>{var e=__webpack_exports__;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AbortException",{enumerable:!0,get:function(){return t.AbortException}}),Object.defineProperty(e,"AnnotationEditorLayer",{enumerable:!0,get:function(){return o.AnnotationEditorLayer}}),Object.defineProperty(e,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return t.AnnotationEditorParamsType}}),Object.defineProperty(e,"AnnotationEditorType",{enumerable:!0,get:function(){return t.AnnotationEditorType}}),Object.defineProperty(e,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return s.AnnotationEditorUIManager}}),Object.defineProperty(e,"AnnotationLayer",{enumerable:!0,get:function(){return a.AnnotationLayer}}),Object.defineProperty(e,"AnnotationMode",{enumerable:!0,get:function(){return t.AnnotationMode}}),Object.defineProperty(e,"CMapCompressionType",{enumerable:!0,get:function(){return t.CMapCompressionType}}),Object.defineProperty(e,"FeatureTest",{enumerable:!0,get:function(){return t.FeatureTest}}),Object.defineProperty(e,"GlobalWorkerOptions",{enumerable:!0,get:function(){return l.GlobalWorkerOptions}}),Object.defineProperty(e,"InvalidPDFException",{enumerable:!0,get:function(){return t.InvalidPDFException}}),Object.defineProperty(e,"MissingPDFException",{enumerable:!0,get:function(){return t.MissingPDFException}}),Object.defineProperty(e,"OPS",{enumerable:!0,get:function(){return t.OPS}}),Object.defineProperty(e,"PDFDataRangeTransport",{enumerable:!0,get:function(){return n.PDFDataRangeTransport}}),Object.defineProperty(e,"PDFDateString",{enumerable:!0,get:function(){return r.PDFDateString}}),Object.defineProperty(e,"PDFWorker",{enumerable:!0,get:function(){return n.PDFWorker}}),Object.defineProperty(e,"PasswordResponses",{enumerable:!0,get:function(){return t.PasswordResponses}}),Object.defineProperty(e,"PermissionFlag",{enumerable:!0,get:function(){return t.PermissionFlag}}),Object.defineProperty(e,"PixelsPerInch",{enumerable:!0,get:function(){return r.PixelsPerInch}}),Object.defineProperty(e,"RenderingCancelledException",{enumerable:!0,get:function(){return r.RenderingCancelledException}}),Object.defineProperty(e,"SVGGraphics",{enumerable:!0,get:function(){return u.SVGGraphics}}),Object.defineProperty(e,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return t.UNSUPPORTED_FEATURES}}),Object.defineProperty(e,"UnexpectedResponseException",{enumerable:!0,get:function(){return t.UnexpectedResponseException}}),Object.defineProperty(e,"Util",{enumerable:!0,get:function(){return t.Util}}),Object.defineProperty(e,"VerbosityLevel",{enumerable:!0,get:function(){return t.VerbosityLevel}}),Object.defineProperty(e,"XfaLayer",{enumerable:!0,get:function(){return c.XfaLayer}}),Object.defineProperty(e,"build",{enumerable:!0,get:function(){return n.build}}),Object.defineProperty(e,"createPromiseCapability",{enumerable:!0,get:function(){return t.createPromiseCapability}}),Object.defineProperty(e,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return t.createValidAbsoluteUrl}}),Object.defineProperty(e,"getDocument",{enumerable:!0,get:function(){return n.getDocument}}),Object.defineProperty(e,"getFilenameFromUrl",{enumerable:!0,get:function(){return r.getFilenameFromUrl}}),Object.defineProperty(e,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return r.getPdfFilenameFromUrl}}),Object.defineProperty(e,"getXfaPageViewport",{enumerable:!0,get:function(){return r.getXfaPageViewport}}),Object.defineProperty(e,"isDataScheme",{enumerable:!0,get:function(){return r.isDataScheme}}),Object.defineProperty(e,"isPdfFile",{enumerable:!0,get:function(){return r.isPdfFile}}),Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return r.loadScript}}),Object.defineProperty(e,"renderTextLayer",{enumerable:!0,get:function(){return i.renderTextLayer}}),Object.defineProperty(e,"setLayerDimensions",{enumerable:!0,get:function(){return r.setLayerDimensions}}),Object.defineProperty(e,"shadow",{enumerable:!0,get:function(){return t.shadow}}),Object.defineProperty(e,"updateTextLayer",{enumerable:!0,get:function(){return i.updateTextLayer}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return n.version}});var t=__w_pdfjs_require__(1),n=__w_pdfjs_require__(2),r=__w_pdfjs_require__(6),i=__w_pdfjs_require__(26),o=__w_pdfjs_require__(27),s=__w_pdfjs_require__(5),a=__w_pdfjs_require__(32),l=__w_pdfjs_require__(14),u=__w_pdfjs_require__(35),c=__w_pdfjs_require__(34);let f="3.4.120",d="af6414988"})(),__webpack_exports__})())});var D_e=ne(Be=>{"use strict";var cyt=Pe(),dyt=s_e();function P_e(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var di,he=P_e(cyt),ay=P_e(dyt);Be.AnnotationType=void 0,(di=Be.AnnotationType||(Be.AnnotationType={}))[di.Text=1]="Text",di[di.Link=2]="Link",di[di.FreeText=3]="FreeText",di[di.Line=4]="Line",di[di.Square=5]="Square",di[di.Circle=6]="Circle",di[di.Polygon=7]="Polygon",di[di.Polyline=8]="Polyline",di[di.Highlight=9]="Highlight",di[di.Underline=10]="Underline",di[di.Squiggly=11]="Squiggly",di[di.StrikeOut=12]="StrikeOut",di[di.Stamp=13]="Stamp",di[di.Caret=14]="Caret",di[di.Ink=15]="Ink",di[di.Popup=16]="Popup",di[di.FileAttachment=17]="FileAttachment";var PY=function(e,t){return PY=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},PY(e,t)};function cN(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}PY(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var a_e,Rn=function(){return Rn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Rn.apply(this,arguments)};Be.TextDirection=void 0,(a_e=Be.TextDirection||(Be.TextDirection={})).RightToLeft="RTL",a_e.LeftToRight="LTR";var kY,wa=he.createContext({currentTheme:"light",direction:Be.TextDirection.LeftToRight,setCurrentTheme:function(){}}),fo=function(e){var t=[];return Object.keys(e).forEach(function(n){n&&e[n]&&t.push(n)}),t.join(" ")},ao=typeof window<"u"?he.useLayoutEffect:he.useEffect,sN=function(e){var t=he.useRef(null),n=e.once,r=e.threshold,i=e.onVisibilityChanged;return ao(function(){var o=t.current;if(o){var s=new IntersectionObserver(function(a){a.forEach(function(l){var u=l.isIntersecting,c=l.intersectionRatio;i({isVisible:u,ratio:c}),u&&n&&(s.unobserve(o),s.disconnect())})},{threshold:r||0});return s.observe(o),function(){s.unobserve(o),s.disconnect()}}},[]),t},Eg=function(e){var t=e.children,n=e.ignoreDirection,r=n!==void 0&&n,i=e.size,o=i===void 0?24:i,s=he.useContext(wa).direction,a=!r&&s===Be.TextDirection.RightToLeft,l="".concat(o||24,"px");return he.createElement("svg",{"aria-hidden":"true",className:fo({"rpv-core__icon":!0,"rpv-core__icon--rtl":a}),focusable:"false",height:l,viewBox:"0 0 24 24",width:l},t)},k_e=function(){return he.createElement(Eg,{size:16},he.createElement("path",{d:"M23.5,0.499l-16.5,23l-6.5-6.5"}))},A_e=function(e){var t=e.children,n=e.testId,r=e.onClick,i=he.useContext(wa).direction===Be.TextDirection.RightToLeft,o=n?{"data-testid":n}:{};return he.createElement("button",Rn({className:fo({"rpv-core__primary-button":!0,"rpv-core__primary-button--rtl":i}),type:"button",onClick:r},o),t)},dN=function(e){var t=e.size,n=t===void 0?"4rem":t,r=e.testId,i=he.useState(!1),o=i[0],s=i[1],a=r?{"data-testid":r}:{},l=sN({onVisibilityChanged:function(u){s(u.isVisible)}});return he.createElement("div",Rn({},a,{className:fo({"rpv-core__spinner":!0,"rpv-core__spinner--animating":o}),ref:l,style:{height:n,width:n}}))},C_e=function(e){var t=e.ariaLabel,n=t===void 0?"":t,r=e.autoFocus,i=r!==void 0&&r,o=e.placeholder,s=o===void 0?"":o,a=e.testId,l=e.type,u=l===void 0?"text":l,c=e.value,f=c===void 0?"":c,d=e.onChange,h=e.onKeyDown,m=h===void 0?function(){}:h,g=he.useContext(wa).direction,b=he.useRef(),v=g===Be.TextDirection.RightToLeft,x={ref:b,"data-testid":"","aria-label":n,className:fo({"rpv-core__textbox":!0,"rpv-core__textbox--rtl":v}),placeholder:s,value:f,onChange:function(y){return d(y.target.value)},onKeyDown:m};return a&&(x["data-testid"]=a),ao(function(){if(i){var y=b.current;if(y){var _=window.scrollX,w=window.scrollY;y.focus(),window.scrollTo(_,w)}}},[]),u==="text"?he.createElement("input",Rn({type:"text"},x)):he.createElement("input",Rn({type:"password"},x))};(function(e){e[e.ExitFullScreen=0]="ExitFullScreen",e[e.FullScreenChange=1]="FullScreenChange",e[e.FullScreenElement=2]="FullScreenElement",e[e.FullScreenEnabled=3]="FullScreenEnabled",e[e.RequestFullScreen=4]="RequestFullScreen"})(kY||(kY={}));var Ic,l_e={ExitFullScreen:"exitFullscreen",FullScreenChange:"fullscreenchange",FullScreenElement:"fullscreenElement",FullScreenEnabled:"fullscreenEnabled",RequestFullScreen:"requestFullscreen"},u_e={ExitFullScreen:"webkitExitFullscreen",FullScreenChange:"webkitfullscreenchange",FullScreenElement:"webkitFullscreenElement",FullScreenEnabled:"webkitFullscreenEnabled",RequestFullScreen:"webkitRequestFullscreen"},c_e={ExitFullScreen:"msExitFullscreen",FullScreenChange:"msFullscreenChange",FullScreenElement:"msFullscreenElement",FullScreenEnabled:"msFullscreenEnabled",RequestFullScreen:"msRequestFullscreen"},uy=typeof window<"u",cy=uy&&(kY.FullScreenEnabled in document&&l_e||u_e.FullScreenEnabled in document&&u_e||c_e.FullScreenEnabled in document&&c_e)||l_e,S_e=function(){return uy&&cy.FullScreenEnabled in document&&document[cy.FullScreenEnabled]===!0},d_e=function(e){return uy?e[cy.ExitFullScreen]():Promise.resolve({})},hY=function(){return uy?document[cy.FullScreenElement]:null},SY=function(e,t){var n=he.useRef(),r=function(){n.current&&clearTimeout(n.current)};return he.useEffect(function(){return function(){return r()}},[]),he.useCallback(function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];r(),n.current=setTimeout(function(){e.apply(void 0,i)},t)},[e,t])},dP=function(){var e=he.useRef(!1);return he.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),e},ly=function(e){var t=he.useRef(e);return he.useEffect(function(){t.current=e},[e]),t.current};(function(e){e.NotRenderedYet="NotRenderedYet",e.Rendering="Rendering",e.Rendered="Rendered"})(Ic||(Ic={}));var mY,tN=-9999,O_e=function(e){var t=e.doc,n=t.numPages,r=t.loadingTask.docId,i=he.useMemo(function(){return Array(n).fill(null).map(function(a,l){return{pageIndex:l,renderStatus:Ic.NotRenderedYet,visibility:tN}})},[r]),o=he.useRef({currentRenderingPage:-1,startRange:0,endRange:n-1,visibilities:i}),s=function(a,l){o.current.visibilities[a].visibility=l};return{getHighestPriorityPage:function(){var a=o.current.visibilities.slice(o.current.startRange,o.current.endRange+1).filter(function(d){return d.visibility>tN});if(!a.length)return-1;for(var l=a[0].pageIndex,u=a[a.length-1].pageIndex,c=a.length,f=0;f<c;f++){if(a[f].renderStatus===Ic.Rendering)return-1;if(a[f].renderStatus===Ic.NotRenderedYet)return a[f].pageIndex}return u+1<n&&o.current.visibilities[u+1].renderStatus!==Ic.Rendered?u+1:l-1>=0&&o.current.visibilities[l-1].renderStatus!==Ic.Rendered?l-1:-1},isInRange:function(a){return a>=o.current.startRange&&a<=o.current.endRange},markNotRendered:function(){for(var a=0;a<n;a++)o.current.visibilities[a].renderStatus=Ic.NotRenderedYet},markRendered:function(a){o.current.visibilities[a].renderStatus=Ic.Rendered},markRendering:function(a){o.current.currentRenderingPage!==-1&&o.current.currentRenderingPage!==a&&o.current.visibilities[o.current.currentRenderingPage].renderStatus===Ic.Rendering&&(o.current.visibilities[o.current.currentRenderingPage].renderStatus=Ic.NotRenderedYet),o.current.visibilities[a].renderStatus=Ic.Rendering,o.current.currentRenderingPage=a},setOutOfRange:function(a){s(a,tN)},setRange:function(a,l){o.current.startRange=a,o.current.endRange=l;for(var u=0;u<n;u++)(u<a||u>l)&&(o.current.visibilities[u].visibility=tN,o.current.visibilities[u].renderStatus=Ic.NotRenderedYet)},setVisibility:s}},E_e={core:{askingPassword:{requirePasswordToOpen:"This document requires a password to open",submit:"Submit"},wrongPassword:{tryAgain:"The password is wrong. Please try again"},pageLabel:"Page {{pageIndex}}"}},aN=he.createContext({l10n:E_e,setL10n:function(){}}),pyt=0,gY=function(){return pyt++},M_e=function(e,t,n){var r=function(i){var o=t.current;if(o){var s=i.target;if(s instanceof Element&&s.shadowRoot){var a=i.composedPath();a.length>0&&!o.contains(a[0])&&n()}else o.contains(s)||n()}};he.useEffect(function(){if(e){var i={capture:!0};return document.addEventListener("click",r,i),function(){document.removeEventListener("click",r,i)}}},[])},OY=function(e){var t=function(n){n.key==="Escape"&&e()};he.useEffect(function(){return document.addEventListener("keyup",t),function(){document.removeEventListener("keyup",t)}},[])},fyt=function(e){var t=e.ariaControlsSuffix,n=e.children,r=e.closeOnClickOutside,i=e.closeOnEscape,o=e.onToggle,s=he.useRef(),a=he.useContext(wa).direction===Be.TextDirection.RightToLeft;return he.useEffect(function(){var l=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",function(){document.body.style.overflow=l}},[]),OY(function(){s.current&&i&&o()}),M_e(r,s,o),ao(function(){var l=s.current;if(l){var u=.75*document.body.clientHeight;l.getBoundingClientRect().height>=u&&(l.style.overflow="auto",l.style.maxHeight="".concat(u,"px"))}},[]),he.createElement("div",{"aria-modal":"true",className:fo({"rpv-core__modal-body":!0,"rpv-core__modal-body--rtl":a}),id:"rpv-core__modal-body-".concat(t),ref:s,role:"dialog",tabIndex:-1},n)},hyt=function(e){var t=e.children;return he.createElement("div",{className:"rpv-core__modal-overlay"},t)};Be.ToggleStatus=void 0,(mY=Be.ToggleStatus||(Be.ToggleStatus={})).Close="Close",mY.Open="Open",mY.Toggle="Toggle";var Fd,lN=function(e){var t=he.useState(e),n=t[0],r=t[1];return{opened:n,toggle:function(i){switch(i){case Be.ToggleStatus.Close:r(!1);break;case Be.ToggleStatus.Open:r(!0);break;case Be.ToggleStatus.Toggle:default:r(function(o){return!o})}}}},myt=function(e){var t=e.content,n=e.isOpened,r=n!==void 0&&n,i=e.target,o=lN(r),s=o.opened,a=o.toggle;return he.createElement(he.Fragment,null,i&&i(a,s),s&&t(a))};Be.Position=void 0,(Fd=Be.Position||(Be.Position={})).TopLeft="TOP_LEFT",Fd.TopCenter="TOP_CENTER",Fd.TopRight="TOP_RIGHT",Fd.RightTop="RIGHT_TOP",Fd.RightCenter="RIGHT_CENTER",Fd.RightBottom="RIGHT_BOTTOM",Fd.BottomLeft="BOTTOM_LEFT",Fd.BottomCenter="BOTTOM_CENTER",Fd.BottomRight="BOTTOM_RIGHT",Fd.LeftTop="LEFT_TOP",Fd.LeftCenter="LEFT_CENTER",Fd.LeftBottom="LEFT_BOTTOM";var u4,nN,c4,p_e,f_e,rN,vY,yY,B_e=function(e,t,n,r,i){ao(function(){var o=t.current,s=e.current,a=n.current;if(s&&o&&a){var l=a.getBoundingClientRect(),u=function(d,h,m,g){var b=h.getBoundingClientRect(),v=d.getBoundingClientRect(),x=v.height,y=v.width,_=0,w=0;switch(m){case Be.Position.TopLeft:_=b.top-x,w=b.left;break;case Be.Position.TopCenter:_=b.top-x,w=b.left+b.width/2-y/2;break;case Be.Position.TopRight:_=b.top-x,w=b.left+b.width-y;break;case Be.Position.RightTop:_=b.top,w=b.left+b.width;break;case Be.Position.RightCenter:_=b.top+b.height/2-x/2,w=b.left+b.width;break;case Be.Position.RightBottom:_=b.top+b.height-x,w=b.left+b.width;break;case Be.Position.BottomLeft:_=b.top+b.height,w=b.left;break;case Be.Position.BottomCenter:_=b.top+b.height,w=b.left+b.width/2-y/2;break;case Be.Position.BottomRight:_=b.top+b.height,w=b.left+b.width-y;break;case Be.Position.LeftTop:_=b.top,w=b.left-y;break;case Be.Position.LeftCenter:_=b.top+b.height/2-x/2,w=b.left-y;break;case Be.Position.LeftBottom:_=b.top+b.height-x,w=b.left-y}return{left:w+(g.left||0),top:_+(g.top||0)}}(s,o,r,i),c=u.top,f=u.left;s.style.top="".concat(c-l.top,"px"),s.style.left="".concat(f-l.left,"px")}},[])},N_e=function(e){var t,n=e.customClassName,r=e.position;return he.createElement("div",{className:fo((t={"rpv-core__arrow":!0,"rpv-core__arrow--tl":r===Be.Position.TopLeft,"rpv-core__arrow--tc":r===Be.Position.TopCenter,"rpv-core__arrow--tr":r===Be.Position.TopRight,"rpv-core__arrow--rt":r===Be.Position.RightTop,"rpv-core__arrow--rc":r===Be.Position.RightCenter,"rpv-core__arrow--rb":r===Be.Position.RightBottom,"rpv-core__arrow--bl":r===Be.Position.BottomLeft,"rpv-core__arrow--bc":r===Be.Position.BottomCenter,"rpv-core__arrow--br":r===Be.Position.BottomRight,"rpv-core__arrow--lt":r===Be.Position.LeftTop,"rpv-core__arrow--lc":r===Be.Position.LeftCenter,"rpv-core__arrow--lb":r===Be.Position.LeftBottom},t["".concat(n)]=n!=="",t))})},gyt=function(e){var t=e.ariaControlsSuffix,n=e.children,r=e.closeOnClickOutside,i=e.offset,o=e.position,s=e.targetRef,a=e.onClose,l=he.useRef(),u=he.useRef(),c=he.useRef(),f=he.useContext(wa).direction===Be.TextDirection.RightToLeft;M_e(r,l,a),B_e(l,s,c,o,i),ao(function(){var h=u.current;if(h){var m=.75*document.body.clientHeight;h.getBoundingClientRect().height>=m&&(h.style.overflow="auto",h.style.maxHeight="".concat(m,"px"))}},[]);var d="rpv-core__popover-body-inner-".concat(t);return he.createElement(he.Fragment,null,he.createElement("div",{ref:c,style:{left:0,position:"absolute",top:0}}),he.createElement("div",{"aria-describedby":d,className:fo({"rpv-core__popover-body":!0,"rpv-core__popover-body--rtl":f}),id:"rpv-core__popover-body-".concat(t),ref:l,role:"dialog",tabIndex:-1},he.createElement(N_e,{customClassName:"rpv-core__popover-body-arrow",position:o}),he.createElement("div",{id:d,ref:u},n)))},vyt=function(e){var t=e.closeOnEscape,n=e.onClose,r=he.useRef();return OY(function(){r.current&&t&&n()}),he.createElement("div",{className:"rpv-core__popover-overlay",ref:r})},yyt=function(e){var t=e.ariaControlsSuffix,n=e.children,r=e.contentRef,i=e.offset,o=e.position,s=e.targetRef,a=he.useRef(),l=he.useContext(wa).direction===Be.TextDirection.RightToLeft;return B_e(r,s,a,o,i),he.createElement(he.Fragment,null,he.createElement("div",{ref:a,style:{left:0,position:"absolute",top:0}}),he.createElement("div",{className:fo({"rpv-core__tooltip-body":!0,"rpv-core__tooltip-body--rtl":l}),id:"rpv-core__tooltip-body-".concat(t),ref:r,role:"tooltip"},he.createElement(N_e,{customClassName:"rpv-core__tooltip-body-arrow",position:o}),he.createElement("div",{className:"rpv-core__tooltip-body-content"},n)))};Be.FullScreenMode=void 0,(u4=Be.FullScreenMode||(Be.FullScreenMode={})).Normal="Normal",u4.Entering="Entering",u4.Entered="Entered",u4.EnteredCompletely="EnteredCompletely",u4.Exitting="Exitting",u4.Exited="Exited",Be.LayerRenderStatus=void 0,(nN=Be.LayerRenderStatus||(Be.LayerRenderStatus={}))[nN.PreRender=0]="PreRender",nN[nN.DidRender=1]="DidRender",Be.PageMode=void 0,(c4=Be.PageMode||(Be.PageMode={})).Attachments="UseAttachments",c4.Bookmarks="UseOutlines",c4.ContentGroup="UseOC",c4.Default="UserNone",c4.FullScreen="FullScreen",c4.Thumbnails="UseThumbs",Be.PasswordStatus=void 0,(p_e=Be.PasswordStatus||(Be.PasswordStatus={})).RequiredPassword="RequiredPassword",p_e.WrongPassword="WrongPassword",Be.RotateDirection=void 0,(f_e=Be.RotateDirection||(Be.RotateDirection={})).Backward="Backward",f_e.Forward="Forward",Be.ScrollMode=void 0,(rN=Be.ScrollMode||(Be.ScrollMode={})).Page="Page",rN.Horizontal="Horizontal",rN.Vertical="Vertical",rN.Wrapped="Wrapped",Be.SpecialZoomLevel=void 0,(vY=Be.SpecialZoomLevel||(Be.SpecialZoomLevel={})).ActualSize="ActualSize",vY.PageFit="PageFit",vY.PageWidth="PageWidth",Be.ViewMode=void 0,(yY=Be.ViewMode||(Be.ViewMode={})).DualPage="DualPage",yY.DualPageWithCover="DualPageWithCover",yY.SinglePage="SinglePage";var Og,p4=function(e,t){return e.reduce(function(n,r,i){return i%t?n[n.length-1].push(r):n.push([r]),n},[])},h_e=function(e,t){switch(t[1].name){case"XYZ":return{bottomOffset:function(n,r){return t[3]===null?r:t[3]},leftOffset:function(n,r){return t[2]===null?0:t[2]},pageIndex:e,scaleTo:t[4]};case"Fit":case"FitB":return{bottomOffset:0,leftOffset:0,pageIndex:e,scaleTo:Be.SpecialZoomLevel.PageFit};case"FitH":case"FitBH":return{bottomOffset:t[2],leftOffset:0,pageIndex:e,scaleTo:Be.SpecialZoomLevel.PageWidth};default:return{bottomOffset:0,leftOffset:0,pageIndex:e,scaleTo:1}}},uN=new Map,AY=new Map,G_e=function(e,t){return"".concat(e.loadingTask.docId,"___").concat(t.num,"R").concat(t.gen===0?"":t.gen)},F_e=function(e,t,n){uN.set(G_e(e,t),n)},pN=function(e,t){if(!e)return Promise.reject("The document is not loaded yet");var n="".concat(e.loadingTask.docId,"___").concat(t),r=AY.get(n);return r?Promise.resolve(r):new Promise(function(i,o){e.getPage(t+1).then(function(s){AY.set(n,s),s.ref&&F_e(e,s.ref,t),i(s)})})},EY=function(e,t){return new Promise(function(n){new Promise(function(r){typeof t=="string"?e.getDestination(t).then(function(i){r(i)}):r(t)}).then(function(r){if(typeof r[0]=="object"&&r[0]!==null){var i=r[0],o=function(a,l){var u=G_e(a,l);return uN.has(u)?uN.get(u):null}(e,i);o===null?e.getPageIndex(i).then(function(a){F_e(e,i,a),EY(e,t).then(function(l){return n(l)})}):n(h_e(o,r))}else{var s=h_e(r[0],r);n(s)}})})};(function(e){e[e.Solid=1]="Solid",e[e.Dashed=2]="Dashed",e[e.Beveled=3]="Beveled",e[e.Inset=4]="Inset",e[e.Underline=5]="Underline"})(Og||(Og={}));var K0,xyt=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"),sy=function(e,t,n,r){var i=parseInt(e,10);return i>=t&&i<=n?i:r},Ka=function(e){return e.contentsObj?e.contentsObj.str:e.contents||""},Ya=function(e){return e.titleObj?e.titleObj.str:e.title||""},I_e=function(e){var t=e.annotation,n=he.useContext(wa).direction,r=Ya(t),i=Ka(t),o=n===Be.TextDirection.RightToLeft,s=he.useRef(),a="";if(t.modificationDate){var l=function(u){var c=xyt.exec(u);if(!c)return null;var f=parseInt(c[1],10),d=sy(c[2],1,12,1)-1,h=sy(c[3],1,31,1),m=sy(c[4],0,23,0),g=sy(c[5],0,59,0),b=sy(c[6],0,59,0),v=c[7]||"Z",x=sy(c[8],0,23,0),y=sy(c[9],0,59,0);switch(v){case"-":m+=x,g+=y;break;case"+":m-=x,g-=y}return new Date(Date.UTC(f,d,h,m,g,b))}(t.modificationDate);a=l?"".concat(l.toLocaleDateString(),", ").concat(l.toLocaleTimeString()):""}return he.useLayoutEffect(function(){if(s.current){var u=document.querySelector('[data-annotation-id="'.concat(t.id,'"]'));if(u){var c=u;return c.style.zIndex+=1,function(){c.style.zIndex="".concat(parseInt(c.style.zIndex,10)-1)}}}},[]),he.createElement("div",{ref:s,className:fo({"rpv-core__annotation-popup-wrapper":!0,"rpv-core__annotation-popup-wrapper--rtl":o}),style:{top:t.annotationType===Be.AnnotationType.Popup?"":"100%"}},r&&he.createElement(he.Fragment,null,he.createElement("div",{className:fo({"rpv-core__annotation-popup-title":!0,"rpv-core__annotation-popup-title--ltr":!o,"rpv-core__annotation-popup-title--rtl":o})},r),he.createElement("div",{className:"rpv-core__annotation-popup-date"},a)),i&&he.createElement("div",{className:"rpv-core__annotation-popup-content"},i.split(`
`).map(function(u,c){return he.createElement(he.Fragment,{key:c},u,he.createElement("br",null))})))};(function(e){e.Click="Click",e.Hover="Hover"})(K0||(K0={}));var Di,Za=function(e){var t,n=e.annotation,r=e.children,i=e.ignoreBorder,o=e.hasPopup,s=e.isRenderable,a=e.page,l=e.viewport,u=n.rect,c=function(){var O=lN(!1),M=O.opened,I=O.toggle,W=he.useState(K0.Hover),J=W[0],H=W[1];return{opened:M,closeOnHover:function(){J===K0.Hover&&I(Be.ToggleStatus.Close)},openOnHover:function(){J===K0.Hover&&I(Be.ToggleStatus.Open)},toggleOnClick:function(){switch(J){case K0.Click:M&&H(K0.Hover),I(Be.ToggleStatus.Toggle);break;case K0.Hover:H(K0.Click),I(Be.ToggleStatus.Open)}}}}(),f=c.closeOnHover,d=c.opened,h=c.openOnHover,m=c.toggleOnClick,g=(t=[u[0],a.view[3]+a.view[1]-u[1],u[2],a.view[3]+a.view[1]-u[3]],[Math.min(t[0],t[2]),Math.min(t[1],t[3]),Math.max(t[0],t[2]),Math.max(t[1],t[3])]),b=u[2]-u[0],v=u[3]-u[1],x={borderColor:"",borderRadius:"",borderStyle:"",borderWidth:""};if(!i&&n.borderStyle.width>0){switch(n.borderStyle.style){case Og.Dashed:x.borderStyle="dashed";break;case Og.Solid:x.borderStyle="solid";break;case Og.Underline:x=Object.assign({borderBottomStyle:"solid"},x);case Og.Beveled:case Og.Inset:}var y=n.borderStyle.width;x.borderWidth="".concat(y,"px"),n.borderStyle.style!==Og.Underline&&(b-=2*y,v-=2*y);var _=n.borderStyle,w=_.horizontalCornerRadius,k=_.verticalCornerRadius;(w>0||k>0)&&(x.borderRadius="".concat(w,"px / ").concat(k,"px")),n.color?x.borderColor="rgb(".concat(0|n.color[0],", ").concat(0|n.color[1],", ").concat(0|n.color[2],")"):x.borderWidth="0"}return he.createElement(he.Fragment,null,s&&r({popup:{opened:d,closeOnHover:f,openOnHover:h,toggleOnClick:m},slot:{attrs:{style:Object.assign({height:"".concat(v,"px"),left:"".concat(g[0],"px"),top:"".concat(g[1],"px"),transform:"matrix(".concat(l.transform.join(","),")"),transformOrigin:"-".concat(g[0],"px -").concat(g[1],"px"),width:"".concat(b,"px")},x)},children:he.createElement(he.Fragment,null,o&&d&&he.createElement(I_e,{annotation:n}))}}))},_yt=function(e){var t=e.annotation,n=e.page,r=e.viewport,i=t.hasPopup===!1,o=Ya(t),s=Ka(t),a=!!(t.hasPopup||o||s);return he.createElement(Za,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:a,page:n,viewport:r},function(l){return he.createElement("div",Rn({},l.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--caret","data-annotation-id":t.id,onClick:l.popup.toggleOnClick,onMouseEnter:l.popup.openOnHover,onMouseLeave:l.popup.closeOnHover}),l.slot.children)})},byt=function(e){var t=e.annotation,n=e.page,r=e.viewport,i=t.hasPopup===!1,o=Ya(t),s=Ka(t),a=!!(t.hasPopup||o||s),l=t.rect,u=l[2]-l[0],c=l[3]-l[1],f=t.borderStyle.width;return he.createElement(Za,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:a,page:n,viewport:r},function(d){return he.createElement("div",Rn({},d.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--circle","data-annotation-id":t.id,onClick:d.popup.toggleOnClick,onMouseEnter:d.popup.openOnHover,onMouseLeave:d.popup.closeOnHover}),he.createElement("svg",{height:"".concat(c,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(u," ").concat(c),width:"".concat(u,"px")},he.createElement("circle",{cy:c/2,fill:"none",rx:u/2-f/2,ry:c/2-f/2,stroke:"transparent",strokeWidth:f||1})),d.slot.children)})},wyt=function(e){var t=e.annotation,n=e.page,r=e.viewport,i=Ya(t),o=Ka(t),s=!(t.hasPopup!==!1||!i&&!o),a=function(){var l,u,c,f,d=t.file;d&&(l=d.filename,u=d.content,c=typeof u=="string"?"":URL.createObjectURL(new Blob([u],{type:""})),(f=document.createElement("a")).style.display="none",f.href=c||l,f.setAttribute("download",function(h){var m=h.split("/").pop();return m?m.split("#")[0].split("?")[0]:h}(l)),document.body.appendChild(f),f.click(),document.body.removeChild(f),c&&URL.revokeObjectURL(c))};return he.createElement(Za,{annotation:t,hasPopup:s,ignoreBorder:!0,isRenderable:!0,page:n,viewport:r},function(l){return he.createElement("div",Rn({},l.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--file-attachment","data-annotation-id":t.id,onClick:l.popup.toggleOnClick,onDoubleClick:a,onMouseEnter:l.popup.openOnHover,onMouseLeave:l.popup.closeOnHover}),l.slot.children)})},Pyt=function(e){var t=e.annotation,n=e.page,r=e.viewport,i=t.hasPopup===!1,o=Ya(t),s=Ka(t),a=!!(t.hasPopup||o||s);return he.createElement(Za,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:a,page:n,viewport:r},function(l){return he.createElement("div",Rn({},l.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--free-text","data-annotation-id":t.id,onClick:l.popup.toggleOnClick,onMouseEnter:l.popup.openOnHover,onMouseLeave:l.popup.closeOnHover}),l.slot.children)})},MY=function(e){var t=e.annotation,n=e.page,r=e.viewport,i=Ya(t),o=Ka(t),s=!(!i&&!o),a=!t.parentType||["Circle","Ink","Line","Polygon","PolyLine","Square"].indexOf(t.parentType)!==-1;return ao(function(){if(t.parentId){var l=document.querySelector('[data-annotation-id="'.concat(t.parentId,'"]')),u=document.querySelector('[data-annotation-id="'.concat(t.id,'"]'));if(l&&u){var c=parseFloat(l.style.left),f=parseFloat(l.style.top)+parseFloat(l.style.height);u.style.left="".concat(c,"px"),u.style.top="".concat(f,"px"),u.style.transformOrigin="-".concat(c,"px -").concat(f,"px")}}},[]),he.createElement(Za,{annotation:t,hasPopup:a,ignoreBorder:!1,isRenderable:s,page:n,viewport:r},function(l){return he.createElement("div",Rn({},l.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--popup","data-annotation-id":t.id}),he.createElement(I_e,{annotation:t}))})},z_e=function(e){var t=e.annotation,n=e.childAnnotation,r=e.page,i=e.viewport,o=t.hasPopup===!1,s=Ya(t),a=Ka(t),l=!!(t.hasPopup||s||a);if(t.quadPoints&&t.quadPoints.length>0){var u=t.quadPoints.map(function(c){return Object.assign({},t,{rect:[c[2].x,c[2].y,c[1].x,c[1].y],quadPoints:[]})});return he.createElement(he.Fragment,null,u.map(function(c,f){return he.createElement(z_e,{key:f,annotation:c,childAnnotation:n,page:r,viewport:i})}))}return he.createElement(Za,{annotation:t,hasPopup:o,ignoreBorder:!0,isRenderable:l,page:r,viewport:i},function(c){return he.createElement(he.Fragment,null,he.createElement("div",Rn({},c.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--highlight","data-annotation-id":t.id,onClick:c.popup.toggleOnClick,onMouseEnter:c.popup.openOnHover,onMouseLeave:c.popup.closeOnHover}),c.slot.children),n&&n.annotationType===Be.AnnotationType.Popup&&c.popup.opened&&he.createElement(MY,{annotation:n,page:r,viewport:i}))})},kyt=function(e){var t=e.annotation,n=e.page,r=e.viewport,i=t.hasPopup===!1,o=Ya(t),s=Ka(t),a=!!(t.hasPopup||o||s),l=t.rect,u=l[2]-l[0],c=l[3]-l[1],f=t.borderStyle.width;return he.createElement(Za,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:a,page:n,viewport:r},function(d){return he.createElement("div",Rn({},d.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--ink","data-annotation-id":t.id,onClick:d.popup.toggleOnClick,onMouseEnter:d.popup.openOnHover,onMouseLeave:d.popup.closeOnHover}),t.inkLists&&t.inkLists.length&&he.createElement("svg",{height:"".concat(c,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(u," ").concat(c),width:"".concat(u,"px")},t.inkLists.map(function(h,m){return he.createElement("polyline",{key:m,fill:"none",stroke:"transparent",strokeWidth:f||1,points:h.map(function(g){return"".concat(g.x-l[0],",").concat(l[3]-g.y)}).join(" ")})})),d.slot.children)})},Ayt=function(e){var t=e.annotation,n=e.page,r=e.viewport,i=t.hasPopup===!1,o=Ya(t),s=Ka(t),a=!!(t.hasPopup||o||s),l=t.rect,u=l[2]-l[0],c=l[3]-l[1],f=t.borderStyle.width;return he.createElement(Za,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:a,page:n,viewport:r},function(d){return he.createElement("div",Rn({},d.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--line","data-annotation-id":t.id,onClick:d.popup.toggleOnClick,onMouseEnter:d.popup.openOnHover,onMouseLeave:d.popup.closeOnHover}),he.createElement("svg",{height:"".concat(c,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(u," ").concat(c),width:"".concat(u,"px")},he.createElement("line",{stroke:"transparent",strokeWidth:f||1,x1:l[2]-t.lineCoordinates[0],x2:l[2]-t.lineCoordinates[2],y1:l[3]-t.lineCoordinates[1],y2:l[3]-t.lineCoordinates[3]})),d.slot.children)})},Cyt=/^([^\w]*)(javascript|data|vbscript)/im,Syt=/&#(\w+)(^\w|;)?/g,Oyt=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,Eyt=/^([^:]+):/gm,Myt=function(e,t){t===void 0&&(t="about:blank");var n,r=(n=e||"",n.replace(Syt,function(a,l){return String.fromCharCode(l)})).replace(Oyt,"").trim();if(!r)return t;var i=r[0];if(i==="."||i==="/")return r;var o=r.match(Eyt);if(!o)return r;var s=o[0];return Cyt.test(s)?t:r},Byt=function(e){var t,n=e.annotation,r=e.annotationContainerRef,i=e.doc,o=e.outlines,s=e.page,a=e.pageIndex,l=e.scale,u=e.viewport,c=e.onExecuteNamedAction,f=e.onJumpFromLinkAnnotation,d=e.onJumpToDest,h=he.useRef(),m=o&&o.length&&n.dest&&typeof n.dest=="string"?(t=o.find(function(x){return x.dest===n.dest}))===null||t===void 0?void 0:t.title:"",g=!!(n.url||n.dest||n.action||n.unsafeUrl),b={};if(n.url||n.unsafeUrl){var v=Myt(n.url||n.unsafeUrl,"");v?b={"data-target":"external",href:v,rel:"noopener noreferrer nofollow",target:n.newWindow?"_blank":"",title:v}:g=!1}else b={href:"","data-annotation-link":n.id,onClick:function(x){x.preventDefault(),n.action?c(n.action):EY(i,n.dest).then(function(y){var _=h.current,w=r.current;if(_&&w){var k=_.getBoundingClientRect();w.style.setProperty("height","100%"),w.style.setProperty("width","100%");var O=w.getBoundingClientRect();w.style.removeProperty("height"),w.style.removeProperty("width");var M=(k.left-O.left)/l,I=(O.bottom-k.bottom+k.height)/l;f({bottomOffset:I,label:m,leftOffset:M,pageIndex:a})}d(y)})}};return m&&(b=Object.assign({},b,{title:m,"aria-label":m})),he.createElement(Za,{annotation:n,hasPopup:!1,ignoreBorder:!1,isRenderable:g,page:s,viewport:u},function(x){return he.createElement("div",Rn({},x.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--link","data-annotation-id":n.id,"data-testid":"core__annotation--link-".concat(n.id)}),he.createElement("a",Rn({ref:h},b)))})},Nyt=function(e){var t=e.annotation,n=e.page,r=e.viewport,i=t.hasPopup===!1,o=Ya(t),s=Ka(t),a=!!(t.hasPopup||o||s),l=t.rect,u=l[2]-l[0],c=l[3]-l[1],f=t.borderStyle.width;return he.createElement(Za,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:a,page:n,viewport:r},function(d){return he.createElement("div",Rn({},d.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--polygon","data-annotation-id":t.id,onClick:d.popup.toggleOnClick,onMouseEnter:d.popup.openOnHover,onMouseLeave:d.popup.closeOnHover}),t.vertices&&t.vertices.length&&he.createElement("svg",{height:"".concat(c,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(u," ").concat(c),width:"".concat(u,"px")},he.createElement("polygon",{fill:"none",stroke:"transparent",strokeWidth:f||1,points:t.vertices.map(function(h){return"".concat(h.x-l[0],",").concat(l[3]-h.y)}).join(" ")})),d.slot.children)})},Gyt=function(e){var t=e.annotation,n=e.page,r=e.viewport,i=t.hasPopup===!1,o=Ya(t),s=Ka(t),a=!!(t.hasPopup||o||s),l=t.rect,u=l[2]-l[0],c=l[3]-l[1],f=t.borderStyle.width;return he.createElement(Za,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:a,page:n,viewport:r},function(d){return he.createElement("div",Rn({},d.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--polyline","data-annotation-id":t.id,onClick:d.popup.toggleOnClick,onMouseEnter:d.popup.openOnHover,onMouseLeave:d.popup.closeOnHover}),t.vertices&&t.vertices.length&&he.createElement("svg",{height:"".concat(c,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(u," ").concat(c),width:"".concat(u,"px")},he.createElement("polyline",{fill:"none",stroke:"transparent",strokeWidth:f||1,points:t.vertices.map(function(h){return"".concat(h.x-l[0],",").concat(l[3]-h.y)}).join(" ")})),d.slot.children)})},Fyt=function(e){var t=e.annotation,n=e.page,r=e.viewport,i=t.hasPopup===!1,o=Ya(t),s=Ka(t),a=!!(t.hasPopup||o||s),l=t.rect,u=l[2]-l[0],c=l[3]-l[1],f=t.borderStyle.width;return he.createElement(Za,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:a,page:n,viewport:r},function(d){return he.createElement("div",Rn({},d.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--square","data-annotation-id":t.id,onClick:d.popup.toggleOnClick,onMouseEnter:d.popup.openOnHover,onMouseLeave:d.popup.closeOnHover}),he.createElement("svg",{height:"".concat(c,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(u," ").concat(c),width:"".concat(u,"px")},he.createElement("rect",{height:c-f,fill:"none",stroke:"transparent",strokeWidth:f||1,x:f/2,y:f/2,width:u-f})),d.slot.children)})},Iyt=function(e){var t=e.annotation,n=e.page,r=e.viewport,i=t.hasPopup===!1,o=Ya(t),s=Ka(t),a=!!(t.hasPopup||o||s);return he.createElement(Za,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:a,page:n,viewport:r},function(l){return he.createElement("div",Rn({},l.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--squiggly","data-annotation-id":t.id,onClick:l.popup.toggleOnClick,onMouseEnter:l.popup.openOnHover,onMouseLeave:l.popup.closeOnHover}),l.slot.children)})},zyt=function(e){var t=e.annotation,n=e.page,r=e.viewport,i=t.hasPopup===!1,o=Ya(t),s=Ka(t),a=!!(t.hasPopup||o||s);return he.createElement(Za,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:a,page:n,viewport:r},function(l){return he.createElement("div",Rn({},l.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--stamp","data-annotation-id":t.id,onClick:l.popup.toggleOnClick,onMouseEnter:l.popup.openOnHover,onMouseLeave:l.popup.closeOnHover}),l.slot.children)})},Tyt=function(e){var t=e.annotation,n=e.page,r=e.viewport,i=t.hasPopup===!1,o=Ya(t),s=Ka(t),a=!!(t.hasPopup||o||s);return he.createElement(Za,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:a,page:n,viewport:r},function(l){return he.createElement("div",Rn({},l.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--strike-out","data-annotation-id":t.id,onClick:l.popup.toggleOnClick,onMouseEnter:l.popup.openOnHover,onMouseLeave:l.popup.closeOnHover}),l.slot.children)})},Dyt=function(){return he.createElement(Eg,{size:16},he.createElement("path",{d:"M.5,16.5a1,1,0,0,0,1,1h2v4l4-4h15a1,1,0,0,0,1-1V3.5a1,1,0,0,0-1-1H1.5a1,1,0,0,0-1,1Z"}),he.createElement("path",{d:"M7.25,9.75A.25.25,0,1,1,7,10a.25.25,0,0,1,.25-.25"}),he.createElement("path",{d:"M12,9.75a.25.25,0,1,1-.25.25A.25.25,0,0,1,12,9.75"}),he.createElement("path",{d:"M16.75,9.75a.25.25,0,1,1-.25.25.25.25,0,0,1,.25-.25"}))},Ryt=function(){return he.createElement(Eg,{size:16},he.createElement("path",{d:"M0.500 12.001 A11.500 11.500 0 1 0 23.500 12.001 A11.500 11.500 0 1 0 0.500 12.001 Z"}),he.createElement("path",{d:"M6.000 12.001 A6.000 6.000 0 1 0 18.000 12.001 A6.000 6.000 0 1 0 6.000 12.001 Z"}),he.createElement("path",{d:"M21.423 5.406L17.415 9.414"}),he.createElement("path",{d:"M14.587 6.585L18.607 2.565"}),he.createElement("path",{d:"M5.405 21.424L9.413 17.416"}),he.createElement("path",{d:"M6.585 14.588L2.577 18.596"}),he.createElement("path",{d:"M18.602 21.419L14.595 17.412"}),he.createElement("path",{d:"M17.419 14.58L21.428 18.589"}),he.createElement("path",{d:"M2.582 5.399L6.588 9.406"}),he.createElement("path",{d:"M9.421 6.581L5.412 2.572"}))},Lyt=function(){return he.createElement(Eg,{size:16},he.createElement("path",{d:"M4.000 18.500 A1.500 1.500 0 1 0 7.000 18.500 A1.500 1.500 0 1 0 4.000 18.500 Z"}),he.createElement("path",{d:"M20.5.5l-9.782,9.783a7,7,0,1,0,3,3L17,10h1.5V8.5L19,8h1.5V6.5L21,6h1.5V4.5l1-1V.5Z"}))},Vyt=function(){return he.createElement(Eg,{size:16},he.createElement("path",{d:"M2.000 2.500 L22.000 2.500 L22.000 23.500 L2.000 23.500 Z"}),he.createElement("path",{d:"M6 4.5L6 0.5"}),he.createElement("path",{d:"M18 4.5L18 0.5"}),he.createElement("path",{d:"M10 4.5L10 0.5"}),he.createElement("path",{d:"M14 4.5L14 0.5"}))},Jyt=function(){return he.createElement(Eg,{size:16},he.createElement("path",{d:"M17.5 0.498L17.5 23.498"}),he.createElement("path",{d:"M10.5 0.498L10.5 23.498"}),he.createElement("path",{d:"M23.5.5H6.5a6,6,0,0,0,0,12h4"}))},jyt=function(){return he.createElement(Eg,{size:16},he.createElement("path",{d:"M2.5 22.995L12 6.005 21.5 22.995 2.5 22.995z"}))},Hyt=function(e){var t=e.annotation,n=e.childAnnotation,r=e.page,i=e.viewport,o=t.hasPopup===!1,s=Ya(t),a=Ka(t),l=!!(t.hasPopup||s||a),u=t.name?t.name.toLowerCase():"";return he.createElement(Za,{annotation:t,hasPopup:o,ignoreBorder:!1,isRenderable:l,page:r,viewport:i},function(c){return he.createElement(he.Fragment,null,he.createElement("div",Rn({},c.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--text","data-annotation-id":t.id,onClick:c.popup.toggleOnClick,onMouseEnter:c.popup.openOnHover,onMouseLeave:c.popup.closeOnHover}),u&&he.createElement("div",{className:"rpv-core__annotation-text-icon"},u==="check"&&he.createElement(k_e,null),u==="comment"&&he.createElement(Dyt,null),u==="help"&&he.createElement(Ryt,null),u==="insert"&&he.createElement(jyt,null),u==="key"&&he.createElement(Lyt,null),u==="note"&&he.createElement(Vyt,null),(u==="newparagraph"||u==="paragraph")&&he.createElement(Jyt,null)),c.slot.children),n&&n.annotationType===Be.AnnotationType.Popup&&c.popup.opened&&he.createElement(MY,{annotation:n,page:r,viewport:i}))})},Wyt=function(e){var t=e.annotation,n=e.page,r=e.viewport,i=t.hasPopup===!1,o=Ya(t),s=Ka(t),a=!!(t.hasPopup||o||s);return he.createElement(Za,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:a,page:n,viewport:r},function(l){return he.createElement("div",Rn({},l.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--underline","data-annotation-id":t.id,onClick:l.popup.toggleOnClick,onMouseEnter:l.popup.openOnHover,onMouseLeave:l.popup.closeOnHover}),l.slot.children)})},Xyt=function(e){var t=e.annotations,n=e.doc,r=e.outlines,i=e.page,o=e.pageIndex,s=e.plugins,a=e.rotation,l=e.scale,u=e.onExecuteNamedAction,c=e.onJumpFromLinkAnnotation,f=e.onJumpToDest,d=he.useRef(),h=i.getViewport({rotation:a,scale:l}).clone({dontFlip:!0}),m=t.filter(function(g){return!g.parentId});return ao(function(){var g=d.current;g&&s.forEach(function(b){b.onAnnotationLayerRender&&b.onAnnotationLayerRender({annotations:m,container:g,pageIndex:o,rotation:a,scale:l})})},[]),he.createElement("div",{ref:d,className:"rpv-core__annotation-layer","data-testid":"core__annotation-layer-".concat(o)},m.map(function(g){var b=t.find(function(v){return v.parentId===g.id});switch(g.annotationType){case Be.AnnotationType.Caret:return he.createElement(_yt,{key:g.id,annotation:g,page:i,viewport:h});case Be.AnnotationType.Circle:return he.createElement(byt,{key:g.id,annotation:g,page:i,viewport:h});case Be.AnnotationType.FileAttachment:return he.createElement(wyt,{key:g.id,annotation:g,page:i,viewport:h});case Be.AnnotationType.FreeText:return he.createElement(Pyt,{key:g.id,annotation:g,page:i,viewport:h});case Be.AnnotationType.Highlight:return he.createElement(z_e,{key:g.id,annotation:g,childAnnotation:b,page:i,viewport:h});case Be.AnnotationType.Ink:return he.createElement(kyt,{key:g.id,annotation:g,page:i,viewport:h});case Be.AnnotationType.Line:return he.createElement(Ayt,{key:g.id,annotation:g,page:i,viewport:h});case Be.AnnotationType.Link:return he.createElement(Byt,{key:g.id,annotation:g,annotationContainerRef:d,doc:n,outlines:r,page:i,pageIndex:o,scale:l,viewport:h,onExecuteNamedAction:u,onJumpFromLinkAnnotation:c,onJumpToDest:f});case Be.AnnotationType.Polygon:return he.createElement(Nyt,{key:g.id,annotation:g,page:i,viewport:h});case Be.AnnotationType.Polyline:return he.createElement(Gyt,{key:g.id,annotation:g,page:i,viewport:h});case Be.AnnotationType.Popup:return he.createElement(MY,{key:g.id,annotation:g,page:i,viewport:h});case Be.AnnotationType.Square:return he.createElement(Fyt,{key:g.id,annotation:g,page:i,viewport:h});case Be.AnnotationType.Squiggly:return he.createElement(Iyt,{key:g.id,annotation:g,page:i,viewport:h});case Be.AnnotationType.Stamp:return he.createElement(zyt,{key:g.id,annotation:g,page:i,viewport:h});case Be.AnnotationType.StrikeOut:return he.createElement(Tyt,{key:g.id,annotation:g,page:i,viewport:h});case Be.AnnotationType.Text:return he.createElement(Hyt,{key:g.id,annotation:g,childAnnotation:b,page:i,viewport:h});case Be.AnnotationType.Underline:return he.createElement(Wyt,{key:g.id,annotation:g,page:i,viewport:h});default:return he.createElement(he.Fragment,{key:g.id})}}))},qyt=function(e){var t=e.page,n=e.renderAnnotations,r=dP(),i=he.useState({loading:!0,annotations:[]}),o=i[0],s=i[1];return he.useEffect(function(){t.getAnnotations({intent:"display"}).then(function(a){r.current&&s({loading:!1,annotations:a})})},[]),o.loading?he.createElement(he.Fragment,null):n(o.annotations)},$yt=function(e){var t=e.doc,n=e.outlines,r=e.page,i=e.pageIndex,o=e.plugins,s=e.rotation,a=e.scale,l=e.onExecuteNamedAction,u=e.onJumpFromLinkAnnotation,c=e.onJumpToDest;return he.createElement(qyt,{page:r,renderAnnotations:function(f){return he.createElement(Xyt,{annotations:f,doc:t,outlines:n,page:r,pageIndex:i,plugins:o,rotation:s,scale:a,onExecuteNamedAction:l,onJumpFromLinkAnnotation:u,onJumpToDest:c})}})},iN=function(e,t){var n=e%t;return n===0?e:Math.floor(e-n)},Kyt=function(e){var t=e.canvasLayerRef,n=e.height,r=e.page,i=e.pageIndex,o=e.plugins,s=e.rotation,a=e.scale,l=e.width,u=e.onRenderCanvasCompleted,c=he.useRef();return ao(function(){var f=c.current;f&&f.cancel();var d=t.current;d.removeAttribute("data-testid"),o.forEach(function(O){O.onCanvasLayerRender&&O.onCanvasLayerRender({ele:d,pageIndex:i,rotation:s,scale:a,status:Be.LayerRenderStatus.PreRender})});var h=r.getViewport({rotation:s,scale:a}),m=window.devicePixelRatio||1,g=Math.sqrt(16777216/(h.width*h.height)),b=m>g;b?d.style.transform="scale(1, 1)":d.style.removeProperty("transform");var v=Math.min(g,m),x=function(O,M){var I,W;if(Math.floor(O)===O)return[O,1];var J=1/O;if(J>M)return[1,M];if(Math.floor(J)===J)return[1,J];for(var H=O>1?J:O,ee=0,j=1,V=1,B=1;;){var N=ee+V,C=j+B;if(C>M)break;H<=N/C?(V=(I=[N,C])[0],B=I[1]):(ee=(W=[N,C])[0],j=W[1])}return H<(ee/j+V/B)/2?H===O?[ee,j]:[j,ee]:H===O?[V,B]:[B,V]}(v,8),y=x[0],_=x[1];d.width=iN(h.width*v,y),d.height=iN(h.height*v,y),d.style.width="".concat(iN(h.width,_),"px"),d.style.height="".concat(iN(h.height,_),"px"),d.hidden=!0;var w=d.getContext("2d",{alpha:!1}),k=b||m!==1?[v,0,0,v,0,0]:null;return c.current=r.render({canvasContext:w,transform:k,viewport:h}),c.current.promise.then(function(){d.hidden=!1,d.setAttribute("data-testid","core__canvas-layer-".concat(i)),o.forEach(function(O){O.onCanvasLayerRender&&O.onCanvasLayerRender({ele:d,pageIndex:i,rotation:s,scale:a,status:Be.LayerRenderStatus.DidRender})}),u()},function(){u()}),function(){d&&(d.width=0,d.height=0)}},[]),he.createElement("div",{className:"rpv-core__canvas-layer",style:{height:"".concat(n,"px"),width:"".concat(l,"px")}},he.createElement("canvas",{ref:t}))},Yyt=function(e){var t=e.height,n=e.page,r=e.rotation,i=e.scale,o=e.width,s=he.useRef();return ao(function(){var a=s.current,l=n.getViewport({rotation:r,scale:i});n.getOperatorList().then(function(u){(function(){var c=s.current;c&&(c.innerHTML="")})(),new ay.SVGGraphics(n.commonObjs,n.objs).getSVG(u,l).then(function(c){c.style.height="".concat(t,"px"),c.style.width="".concat(o,"px"),a.appendChild(c)})})},[]),he.createElement("div",{className:"rpv-core__svg-layer",ref:s})},Zyt=function(e){var t=e.containerRef,n=e.page,r=e.pageIndex,i=e.plugins,o=e.rotation,s=e.scale,a=e.onRenderTextCompleted,l=he.useRef(),u=function(){var c=t.current;c&&([].slice.call(c.querySelectorAll(".rpv-core__text-layer-text")).forEach(function(f){return c.removeChild(f)}),[].slice.call(c.querySelectorAll('br[role="presentation"]')).forEach(function(f){return c.removeChild(f)}))};return ao(function(){var c=l.current;c&&c.cancel();var f=t.current;if(f){f.removeAttribute("data-testid");var d=n.getViewport({rotation:o,scale:s});return i.forEach(function(h){h.onTextLayerRender&&h.onTextLayerRender({ele:f,pageIndex:r,scale:s,status:Be.LayerRenderStatus.PreRender})}),n.getTextContent().then(function(h){u(),l.current=ay.renderTextLayer({container:f,textContent:h,textContentSource:h,viewport:d}),l.current.promise.then(function(){f.setAttribute("data-testid","core__text-layer-".concat(r)),[].slice.call(f.children).forEach(function(m){m.classList.contains("rpv-core__text-layer-text--not")||m.classList.add("rpv-core__text-layer-text")}),i.forEach(function(m){m.onTextLayerRender&&m.onTextLayerRender({ele:f,pageIndex:r,scale:s,status:Be.LayerRenderStatus.DidRender})}),a()},function(){f.removeAttribute("data-testid"),a()})}),function(){var h;u(),(h=l.current)===null||h===void 0||h.cancel()}}},[]),he.createElement("div",{className:"rpv-core__text-layer",ref:t})},Uyt=function(e){var t=e.doc,n=e.measureRef,r=e.outlines,i=e.pageIndex,o=e.pageRotation,s=e.pageSize,a=e.plugins,l=e.renderPage,u=e.renderQueueKey,c=e.rotation,f=e.scale,d=e.shouldRender,h=e.viewMode,m=e.onExecuteNamedAction,g=e.onJumpFromLinkAnnotation,b=e.onJumpToDest,v=e.onRenderCompleted,x=e.onRotatePage,y=dP(),_=he.useState(null),w=_[0],k=_[1],O=he.useState(!1),M=O[0],I=O[1],W=he.useState(!1),J=W[0],H=W[1],ee=he.useRef(),j=he.useRef(),V=Math.abs(c+o)%180==0,B=s.pageWidth*f,N=s.pageHeight*f,C=V?B:N,S=V?N:B,G=(s.rotation+c+o)%360,T=he.useRef(0),Q=l||function(U){return he.createElement(he.Fragment,null,U.canvasLayer.children,U.textLayer.children,U.annotationLayer.children)};return he.useEffect(function(){k(null),I(!1),H(!1)},[o,c,f]),he.useEffect(function(){d&&y.current&&!w&&pN(t,i).then(function(U){y.current&&(T.current=u,k(U))})},[d,w]),he.useEffect(function(){M&&J&&(u!==T.current?(k(null),I(!1),H(!1)):v(i))},[M,J]),he.createElement("div",{className:fo({"rpv-core__page-layer":!0,"rpv-core__page-layer--dual":h===Be.ViewMode.DualPage,"rpv-core__page-layer--dual-cover":h===Be.ViewMode.DualPageWithCover,"rpv-core__page-layer--single":h===Be.ViewMode.SinglePage}),"data-testid":"core__page-layer-".concat(i),ref:n,style:{height:"".concat(S,"px"),width:"".concat(C,"px")}},w?he.createElement(he.Fragment,null,Q({annotationLayer:{attrs:{},children:he.createElement($yt,{doc:t,outlines:r,page:w,pageIndex:i,plugins:a,rotation:G,scale:f,onExecuteNamedAction:m,onJumpFromLinkAnnotation:g,onJumpToDest:b})},canvasLayer:{attrs:{},children:he.createElement(Kyt,{canvasLayerRef:ee,height:S,page:w,pageIndex:i,plugins:a,rotation:G,scale:f,width:C,onRenderCanvasCompleted:function(){y.current&&I(!0)}})},canvasLayerRendered:M,doc:t,height:S,pageIndex:i,rotation:G,scale:f,svgLayer:{attrs:{},children:he.createElement(Yyt,{height:S,page:w,rotation:G,scale:f,width:C})},textLayer:{attrs:{},children:he.createElement(Zyt,{containerRef:j,page:w,pageIndex:i,plugins:a,rotation:G,scale:f,onRenderTextCompleted:function(){y.current&&H(!0)}})},textLayerRendered:J,width:C,markRendered:v,onRotatePage:function(U){return x(i,U)}}),a.map(function(U,F){return U.renderPageLayer?he.createElement(he.Fragment,{key:F},U.renderPageLayer({canvasLayerRef:ee,canvasLayerRendered:M,doc:t,height:S,pageIndex:i,rotation:G,scale:f,textLayerRef:j,textLayerRendered:J,width:C})):he.createElement(he.Fragment,{key:F})})):he.createElement(dN,{testId:"core__page-layer-loading-".concat(i)}))},Qyt=function(e,t){var n=t.rect;return e.height!==n.height||e.width!==n.width?n:e};(function(e){e.Horizontal="Horizontal",e.Vertical="Vertical",e.Both="Both"})(Di||(Di={}));var e6t=function(e){return 1-Math.pow(1-e,4)},oN=1e-4,m_e={left:0,top:0},g_e={capture:!1,passive:!0},t6t=function(e){var t=e.elementRef,n=e.enableSmoothScroll,r=e.isRtl,i=e.scrollDirection,o=e.onSmoothScroll,s=he.useState(m_e),a=s[0],l=s[1],u=he.useState(t.current),c=u[0],f=u[1],d=r?-1:1,h=he.useRef(i);h.current=i;var m=he.useRef(m_e),g=he.useRef(!0),b=he.useCallback(function(){g.current=!0,n&&l(m.current),o(!1)},[]),v=he.useCallback(function(){if(c){switch(h.current){case Di.Horizontal:m.current={left:d*c.scrollLeft,top:0};break;case Di.Both:m.current={left:d*c.scrollLeft,top:c.scrollTop};break;case Di.Vertical:default:m.current={left:0,top:c.scrollTop}}n&&!g.current||l(m.current)}},[c]);ao(function(){f(t.current)}),ao(function(){if(c)return c.addEventListener("scroll",v,g_e),function(){c.removeEventListener("scroll",v,g_e)}},[c]);var x=he.useCallback(function(y,_){var w=t.current;if(!w)return Promise.resolve();var k={left:0,top:0};switch(h.current){case Di.Horizontal:k.left=d*y.left;break;case Di.Both:k.left=d*y.left,k.top=y.top;break;case Di.Vertical:default:k.top=y.top}return _?(g.current=!1,o(!0),new Promise(function(O,M){(function(I,W,J,H,ee,j){ee===void 0&&(ee=function(F){return F}),j===void 0&&(j=function(){});var V=0,B=0,N=!1;switch(W){case Di.Horizontal:B=I.scrollLeft,V=0;case Di.Both:B=I.scrollLeft,V=I.scrollTop;break;case Di.Vertical:default:B=0,V=I.scrollTop}var C=function(){N||(N=!0,I.scrollLeft=J.left,I.scrollTop=J.top,j())};if(Math.abs(V-J.top)<=oN&&W===Di.Vertical)C();else if(Math.abs(B-J.left)<=oN&&W===Di.Horizontal)C();else{var S,G=-1,T=B-J.left,Q=V-J.top,U=function(F){G===-1&&(G=F);var D=F-G,L=Math.min(D/H,1),$=ee(L),Z={left:B-T*$,top:V-Q*$};switch(W){case Di.Horizontal:I.scrollLeft=Z.left;break;case Di.Both:I.scrollLeft=Z.left,I.scrollTop=Z.top;break;case Di.Vertical:default:I.scrollTop=Z.top}Math.abs(Z.top-J.top)<=oN&&Math.abs(Z.left-J.left)<=oN&&!N&&(window.cancelAnimationFrame(S),C()),D<H?S=window.requestAnimationFrame(U):window.cancelAnimationFrame(S)};S=window.requestAnimationFrame(U)}})(w,h.current,k,400,e6t,function(){b(),O()})})):new Promise(function(O,M){switch(h.current){case Di.Horizontal:w.scrollLeft=k.left;break;case Di.Both:w.scrollLeft=k.left,w.scrollTop=k.top;break;case Di.Vertical:default:w.scrollTop=k.top}O()})},[t]);return{scrollOffset:a,scrollTo:x}},cP=function(e,t,n){return Math.max(e,Math.min(n,t))},n6t=function(e,t){if(t!==Be.ViewMode.DualPageWithCover)return 0;if(!function(i){var o=i.length;if(o===1)return!1;for(var s=1;s<o;s++)if(i[s].height!==i[0].height||i[s].width!==i[0].width)return!0;return!1}(e))return 2*e[0].width;var n=p4(e.slice(1),2).map(function(i){return i.length===2?i[0].width+i[1].width:i[0].width}),r=[e[0].width].concat(n);return Math.max.apply(Math,r)},r6t={left:0,top:0},i6t={left:0,top:0},xY={left:0,top:0},o6t={left:0,top:0},s6t={height:0,width:0},v_e={left:0,top:0},y_e="data-virtual-index",a6t=[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1],l6t=function(e){var t=e.enableSmoothScroll,n=e.isRtl,r=e.numberOfItems,i=e.parentRef,o=e.setRenderRange,s=e.sizes,a=e.scrollMode,l=e.viewMode,u=he.useState(!1),c=u[0],f=u[1],d=he.useCallback(function(L){return f(L)},[]),h=he.useRef(a);h.current=a;var m=he.useRef(l);m.current=l;var g=a===Be.ScrollMode.Wrapped||l===Be.ViewMode.DualPageWithCover||l===Be.ViewMode.DualPage?Di.Both:a===Be.ScrollMode.Horizontal?Di.Horizontal:Di.Vertical,b=t6t({elementRef:i,enableSmoothScroll:t,isRtl:n,scrollDirection:g,onSmoothScroll:d}),v=b.scrollOffset,x=b.scrollTo,y=function(L){var $=L.elementRef,Z=he.useState($.current),se=Z[0],Y=Z[1],ue=he.useRef(!1),pe=he.useReducer(Qyt,{height:0,width:0}),oe=pe[0],de=pe[1];return ao(function(){$.current!==se&&Y($.current)}),ao(function(){if(se&&!ue.current){ue.current=!0;var ve=se.getBoundingClientRect(),Ae=ve.height,Ce=ve.width;de({rect:{height:Ae,width:Ce}})}},[se]),he.useEffect(function(){if(se){var ve=new ResizeObserver(function(Ae,Ce){Ae.forEach(function(Ge){if(Ge.target===se){var Ee=Ge.contentRect,Ne=Ee.height,De=Ee.width;de({rect:{height:Ne,width:De}})}})});return ve.observe(se),function(){ve.unobserve(se)}}},[se]),oe}({elementRef:i}),_=he.useRef({scrollOffset:v_e,measurements:[]});_.current.scrollOffset=v;var w=he.useMemo(function(){return Array(r).fill(-1)},[]),k=he.useState(w),O=k[0],M=k[1],I=he.useMemo(function(){var L=new IntersectionObserver(function($){$.forEach(function(Z){var se=Z.isIntersecting?Z.intersectionRatio:-1,Y=Z.target.getAttribute(y_e);if(Y){var ue=parseInt(Y,10);0<=ue&&ue<r&&M(function(pe){return pe[ue]=se,function(oe,de,ve){if(ve||arguments.length===2)for(var Ae,Ce=0,Ge=de.length;Ce<Ge;Ce++)!Ae&&Ce in de||(Ae||(Ae=Array.prototype.slice.call(de,0,Ce)),Ae[Ce]=de[Ce]);return oe.concat(Ae||Array.prototype.slice.call(de))}([],pe,!0)})}})},{threshold:a6t});return L},[]),W=he.useMemo(function(){return a===Be.ScrollMode.Page&&l===Be.ViewMode.SinglePage?function(L,$,Z){for(var se=[],Y=0;Y<L;Y++){var ue={height:Math.max($.height,Z[Y].height),width:Math.max($.width,Z[Y].width)},pe=Y===0?o6t:se[Y-1].end,oe={left:pe.left+ue.width,top:pe.top+ue.height};se[Y]={index:Y,start:pe,size:ue,end:oe,visibility:-1}}return se}(r,y,s):l===Be.ViewMode.DualPageWithCover?function(L,$,Z,se){for(var Y=[],ue=0,pe=0,oe=xY,de=0;de<L;de++){var ve=de===0?{height:se===Be.ScrollMode.Page?Math.max($.height,Z[de].height):Z[de].height,width:se===Be.ScrollMode.Page?Math.max($.width,Z[de].width):Z[de].width}:{height:se===Be.ScrollMode.Page?Math.max($.height,Z[de].height):Z[de].height,width:Math.max($.width/2,Z[de].width)};se===Be.ScrollMode.Page?oe=de===0?xY:{left:de%2==0?ve.width:0,top:Math.floor((de-1)/2)*ve.height+Y[0].end.top}:de===0?(oe=xY,ue=Z[0].height,pe=0):de%2==1?(oe={left:0,top:ue+=pe},pe=de===L-1?Z[de].height:Math.max(Z[de].height,Z[de+1].height)):oe={left:Y[de-1].end.left,top:ue};var Ae={left:oe.left+ve.width,top:oe.top+ve.height};Y[de]={index:de,start:oe,size:ve,end:Ae,visibility:-1}}return Y}(r,y,s,a):l===Be.ViewMode.DualPage?function(L,$,Z,se){for(var Y=[],ue=0,pe=0,oe=i6t,de=0;de<L;de++){var ve={height:se===Be.ScrollMode.Page?Math.max($.height,Z[de].height):Z[de].height,width:Math.max($.width/2,Z[de].width)};se===Be.ScrollMode.Page?oe={left:de%2==0?0:ve.width,top:Math.floor(de/2)*ve.height}:de%2==0?(oe={left:0,top:ue+=pe},pe=de===L-1?Z[de].height:Math.max(Z[de].height,Z[de+1].height)):oe={left:Y[de-1].end.left,top:ue};var Ae={left:oe.left+ve.width,top:oe.top+ve.height};Y[de]={index:de,start:oe,size:ve,end:Ae,visibility:-1}}return Y}(r,y,s,a):function(L,$,Z,se){for(var Y=[],ue=0,pe={left:0,top:0},oe=0,de=r6t,ve=0;ve<L;ve++){var Ae=Z[ve];if(ve===0)ue=Ae.width,pe={left:0,top:0},oe=Ae.height;else switch(se){case Be.ScrollMode.Wrapped:(ue+=Ae.width)<$.width?(de={left:Y[ve-1].end.left,top:pe.top},oe=Math.max(oe,Ae.height)):(ue=Ae.width,pe={left:(de={left:pe.left,top:pe.top+oe}).left,top:de.top},oe=Ae.height);break;case Be.ScrollMode.Horizontal:case Be.ScrollMode.Vertical:default:de=Y[ve-1].end}var Ce={left:de.left+Ae.width,top:de.top+Ae.height};Y[ve]={index:ve,start:de,size:Ae,end:Ce,visibility:-1}}return Y}(r,y,s,a)},[a,s,l,y]),J=W[r-1]?{height:W[r-1].end.top,width:W[r-1].end.left}:s6t;_.current.measurements=W;var H=he.useMemo(function(){var L=function(ve,Ae,Ce,Ge){var Ee=0;switch(ve){case Di.Horizontal:Ee=Ge.left;break;case Di.Vertical:default:Ee=Ge.top}var Ne=Ae.length-1,De=function(Le,Xe,mt,fe){for(;Le<=Xe;){var be=(Le+Xe)/2|0,ye=fe(be);if(ye<mt)Le=be+1;else{if(!(ye>mt))return be;Xe=be-1}}return Le>0?Le-1:0}(0,Ne,Ee,function(Le){switch(ve){case Di.Horizontal:return Ae[Le].start.left;case Di.Both:case Di.Vertical:default:return Ae[Le].start.top}});if(ve===Di.Both)for(var Ue=Ae[De].start.top;De-1>=0&&Ae[De-1].start.top===Ue&&Ae[De-1].start.left>=Ge.left;)De--;for(var Re=De;Re<=Ne;){var je={top:Ae[Re].start.top-Ge.top,left:Ae[Re].start.left-Ge.left},$e={height:Ce.height-je.top,width:Ce.width-je.left};if(ve===Di.Horizontal&&$e.width<0||ve===Di.Vertical&&$e.height<0||ve===Di.Both&&($e.width<0||$e.height<0))break;Re++}return{start:De,end:Re}}(g,W,y,v),$=L.start,Z=L.end,se=O.slice(cP(0,r,$),cP(0,r,Z)),Y=$+se.reduce(function(ve,Ae,Ce,Ge){return Ae>Ge[ve]?Ce:ve},0),ue=Y=cP(0,r-1,Y),pe=o({endPage:Z,numPages:r,startPage:$}),oe=pe.startPage,de=pe.endPage;switch(oe=Math.max(oe,0),de=Math.min(de,r-1),l){case Be.ViewMode.DualPageWithCover:Y>0&&(ue=Y%2==1?Y:Y-1),oe=oe===0?0:oe%2==1?oe:oe-1,r-(de=de%2==1?de-1:de)<=2&&(de=r-1);break;case Be.ViewMode.DualPage:ue=Y%2==0?Y:Y-1,oe=oe%2==0?oe:oe-1,de=de%2==1?de:de-1;break;case Be.ViewMode.SinglePage:default:ue=Y}return{startPage:oe,endPage:de,maxVisbilityIndex:ue}},[W,y,v,l,O]),ee=H.startPage,j=H.endPage,V=H.maxVisbilityIndex,B=he.useMemo(function(){for(var L=[],$=function(se){var Y=W[se],ue=Rn(Rn({},Y),{visibility:O[se]!==void 0?O[se]:-1,measureRef:function(pe){pe&&(pe.setAttribute(y_e,"".concat(se)),I.observe(pe))}});L.push(ue)},Z=ee;Z<=j;Z++)$(Z);return L},[ee,j,O,W]),N=he.useCallback(function(L,$){var Z=_.current.measurements[cP(0,r-1,L)],se=h.current===Be.ScrollMode.Page?v_e:$;return Z?x({left:se.left+Z.start.left,top:se.top+Z.start.top},t):Promise.resolve()},[x,t]),C=he.useCallback(function(L,$){var Z=_.current.measurements,se=Z[L].start,Y=Z.find(function(pe){return pe.start.top-se.top>1e-12});if(!Y)return Promise.resolve();var ue=Y.index;switch(m.current){case Be.ViewMode.DualPage:ue=ue%2==0?ue:ue+1;break;case Be.ViewMode.DualPageWithCover:ue=ue%2==1?ue:ue+1}return N(ue,$)},[]),S=he.useCallback(function(L,$){for(var Z=_.current.measurements,se=Z[L].start,Y=L,ue=!1,pe=r-1;pe>=0;pe--)if(se.top-Z[pe].start.top>1e-12){ue=!0,Y=Z[pe].index;break}if(!ue)return Promise.resolve();switch(m.current){case Be.ViewMode.DualPage:Y=Y%2==0?Y:Y-1;break;case Be.ViewMode.DualPageWithCover:Y=Y%2==0?Y-1:Y}return Y===L&&(Y=L-1),N(Y,$)},[]),G=he.useCallback(function(L,$){if(m.current===Be.ViewMode.DualPageWithCover||m.current===Be.ViewMode.DualPage)return C(L,$);switch(h.current){case Be.ScrollMode.Wrapped:return C(L,$);case Be.ScrollMode.Horizontal:case Be.ScrollMode.Vertical:default:return N(L+1,$)}},[]),T=he.useCallback(function(L,$){if(m.current===Be.ViewMode.DualPageWithCover||m.current===Be.ViewMode.DualPage)return S(L,$);switch(h.current){case Be.ScrollMode.Wrapped:return S(L,$);case Be.ScrollMode.Horizontal:case Be.ScrollMode.Vertical:default:return N(L-1,$)}},[]),Q=he.useCallback(function(){return function(L,$){switch($){case Be.ScrollMode.Horizontal:return{position:"relative",height:"100%",width:"".concat(L.width,"px")};case Be.ScrollMode.Vertical:default:return{position:"relative",height:"".concat(L.height,"px"),width:"100%"}}}(J,h.current)},[J]),U=he.useCallback(function(L){return function($,Z,se){return se!==Be.ScrollMode.Page?{}:{height:"".concat(Z.height,"px"),width:"100%",position:"absolute",top:0,transform:"translateY(".concat($.start.top,"px)")}}(L,y,h.current)},[y]),F=he.useCallback(function(L){return function($,Z,se,Y,ue){var pe,oe,de,ve,Ae,Ce,Ge,Ee=Z?"right":"left",Ne=Z?-1:1,De=se.length,Ue=$.start.left*Ne,Re=$.size,je=Re.height,$e=Re.width;if(Y===Be.ViewMode.DualPageWithCover){var Le=ue===Be.ScrollMode.Page?0:$.start.top;return $.index===0||De%2==0&&$.index===De-1?((pe={height:"".concat(je,"px"),minWidth:"".concat(n6t(se,Y),"px"),width:"100%"})[Ee]=0,pe.position="absolute",pe.top=0,pe.transform="translate(".concat(Ue,"px, ").concat(Le,"px)"),pe):((oe={height:"".concat(je,"px"),width:"".concat($e,"px")})[Ee]=0,oe.position="absolute",oe.top=0,oe.transform="translate(".concat(Ue,"px, ").concat(Le,"px)"),oe)}if(Y===Be.ViewMode.DualPage)return(de={height:"".concat(je,"px"),width:"".concat($e,"px")})[Ee]=0,de.position="absolute",de.top=0,de.transform="translate(".concat(Ue,"px, ").concat(ue===Be.ScrollMode.Page?0:$.start.top,"px)"),de;switch(ue){case Be.ScrollMode.Horizontal:return(ve={height:"100%",width:"".concat($e,"px")})[Ee]=0,ve.position="absolute",ve.top=0,ve.transform="translateX(".concat(Ue,"px)"),ve;case Be.ScrollMode.Page:return(Ae={height:"".concat(je,"px"),width:"".concat($e,"px")})[Ee]=0,Ae.position="absolute",Ae.top=0,Ae;case Be.ScrollMode.Wrapped:return(Ce={height:"".concat(je,"px"),width:"".concat($e,"px")})[Ee]=0,Ce.position="absolute",Ce.top=0,Ce.transform="translate(".concat(Ue,"px, ").concat($.start.top,"px)"),Ce;case Be.ScrollMode.Vertical:default:return(Ge={height:"".concat(je,"px"),width:"100%"})[Ee]=0,Ge.position="absolute",Ge.top=0,Ge.transform="translateY(".concat($.start.top,"px)"),Ge}}(L,n,s,m.current,h.current)},[n,s]),D=he.useCallback(function(L,$){var Z=_.current,se=Z.measurements,Y=Z.scrollOffset,ue=se[cP(0,r-1,$)];if(ue){var pe=h.current===Be.ScrollMode.Page?{left:ue.start.left,top:ue.start.top}:{left:Y.left*L,top:Y.top*L};return x(pe,!1)}return Promise.resolve()},[]);return he.useEffect(function(){return function(){I.disconnect()}},[]),{boundingClientRect:y,isSmoothScrolling:c,startPage:ee,endPage:j,maxVisbilityIndex:V,virtualItems:B,getContainerStyles:Q,getItemContainerStyles:U,getItemStyles:F,scrollToItem:N,scrollToNextItem:G,scrollToPreviousItem:T,zoom:D}},CY=function(e,t,n,r,i,o){var s=n;switch(!0){case(i===Be.ViewMode.DualPageWithCover&&o>=3):case(i===Be.ViewMode.DualPage&&o>=3):s=2*n;break;default:s=n}switch(r){case Be.SpecialZoomLevel.ActualSize:return 1;case Be.SpecialZoomLevel.PageFit:return Math.min((e.clientWidth-17)/s,(e.clientHeight-16)/t);case Be.SpecialZoomLevel.PageWidth:return(e.clientWidth-17)/s}},u6t=function(e){var t,n,r=e.getCurrentPage,i=(t=50,n=he.useRef([]),he.useEffect(function(){return function(){n.current=[]}},[]),{push:function(u){var c=n.current;c.length+1>t&&c.shift(),c.push(u),n.current=c},map:function(u){return n.current.map(function(c){return u(c)})},pop:function(){var u=n.current;if(u.length===0)return null;var c=u.pop();return n.current=u,c}}),o=function(u){var c=he.useRef([]);return he.useEffect(function(){return function(){c.current=[]}},[]),{dequeue:function(){var f=c.current;if(f.length===0)return null;var d=f.shift();return c.current=f,d||null},enqueue:function(f){var d=c.current;d.length+1>u&&d.pop(),c.current=[f].concat(d)},map:function(f){return c.current.map(function(d){return f(d)})}}}(50),s=function(){var u=o.dequeue();return u&&i.push(u),u&&u.pageIndex===r()?s():u},a=function(){var u=i.pop();return u&&o.enqueue(u),u&&u.pageIndex===r()?a():u},l=he.useCallback(function(u){i.push(u)},[]);return{getNextDestination:s,getPreviousDestination:a,markVisitedDestination:l}},T_e=function(e){var t=[];return e.map(function(n){t=t.concat(n).concat(function(r){var i=[];return r.items&&r.items.length>0&&(i=i.concat(T_e(r.items))),i}(n))}),t},x_e={capture:!1,passive:!0},c6t={height:0,width:0},_Y={height:0,width:0},d6t=function(e){var t=e.getCurrentPage,n=e.getCurrentScrollMode,r=e.jumpToPage,i=e.targetRef,o=he.useState(Be.FullScreenMode.Normal),s=o[0],a=o[1],l=function(){var O=he.useState(c6t),M=O[0],I=O[1],W=SY(function(){I({height:window.innerHeight,width:window.innerWidth})},100);return ao(function(){return window.addEventListener("resize",W,x_e),function(){window.removeEventListener("resize",W,x_e)}},[]),M}(),u=he.useState(_Y),c=u[0],f=u[1],d=he.useRef(_Y),h=he.useRef(t()),m=he.useRef(_Y),g=he.useState(i.current),b=g[0],v=g[1],x=he.useRef();ao(function(){i.current!==b&&v(i.current)},[]),ao(function(){if(b){var O=new ResizeObserver(function(M){M.forEach(function(I){var W=I.target.getBoundingClientRect(),J=W.height,H=W.width;f({height:J,width:H})})});return O.observe(b),function(){O.unobserve(b),O.disconnect()}}},[b]);var y=he.useCallback(function(O){var M=hY();return M&&M!==O?(a(Be.FullScreenMode.Normal),d_e(M)):Promise.resolve()},[]),_=he.useCallback(function(O){O&&S_e()&&(v(O),y(O).then(function(){x.current=O,a(Be.FullScreenMode.Entering),function(M){uy&&M[cy.RequestFullScreen]()}(O)}))},[]),w=he.useCallback(function(){hY()&&(a(Be.FullScreenMode.Exitting),d_e(document))},[]),k=he.useCallback(function(){b&&hY()!==b&&a(Be.FullScreenMode.Exitting)},[b]);return he.useEffect(function(){switch(s){case Be.FullScreenMode.Entering:x.current&&(x.current.style.backgroundColor="var(--rpv-core__full-screen-target-background-color)"),h.current=t(),d.current={height:window.innerHeight,width:window.innerWidth};break;case Be.FullScreenMode.Entered:n()===Be.ScrollMode.Page?r(h.current).then(function(){a(Be.FullScreenMode.EnteredCompletely)}):a(Be.FullScreenMode.EnteredCompletely);break;case Be.FullScreenMode.Exitting:x.current&&(x.current.style.backgroundColor="",x.current=null),h.current=t();break;case Be.FullScreenMode.Exited:a(Be.FullScreenMode.Normal),n()===Be.ScrollMode.Page&&r(h.current)}},[s]),he.useEffect(function(){if(s!==Be.FullScreenMode.Normal)return s===Be.FullScreenMode.Entering&&l.height===c.height&&l.width===c.width&&l.height>0&&l.width>0&&(m.current.height===0||l.height==m.current.height)?(m.current={height:window.innerHeight,width:window.innerWidth},void a(Be.FullScreenMode.Entered)):void(s===Be.FullScreenMode.Exitting&&d.current.height===l.height&&d.current.width===l.width&&l.height>0&&l.width>0&&a(Be.FullScreenMode.Exited))},[s,l,c]),he.useEffect(function(){var O;return O=k,uy&&document.addEventListener(cy.FullScreenChange,O),function(){(function(M){uy&&document.removeEventListener(cy.FullScreenChange,M)})(k)}},[b]),{enterFullScreenMode:_,exitFullScreenMode:w,fullScreenMode:s}},p6t={buildPageStyles:function(){return{}},transformSize:function(e){return e.size}},d4={left:0,top:0},f6t=function(e){var t=e.currentFile,n=e.defaultScale,r=e.doc,i=e.enableSmoothScroll,o=e.initialPage,s=e.initialRotation,a=e.initialScale,l=e.pageLayout,u=e.pageSizes,c=e.plugins,f=e.renderPage,d=e.scrollMode,h=e.setRenderRange,m=e.viewMode,g=e.viewerState,b=e.onDocumentLoad,v=e.onOpenFile,x=e.onPageChange,y=e.onRotate,_=e.onRotatePage,w=e.onZoom,k=r.numPages,O=r.loadingTask.docId,M=he.useContext(aN).l10n,I=he.useContext(wa),W=I.direction===Be.TextDirection.RightToLeft,J=he.useRef(),H=he.useRef(),ee=he.useState(o),j=ee[0],V=ee[1],B=he.useRef(null),N=u6t({getCurrentPage:function(){return De.current.pageIndex}}),C=he.useState(s),S=C[0],G=C[1],T=ly(S),Q=he.useState(!1),U=Q[0],F=Q[1],D=he.useState(new Map),L=D[0],$=D[1],Z=he.useState(d),se=Z[0],Y=Z[1],ue=ly(se),pe=he.useState(m),oe=pe[0],de=pe[1],ve=ly(oe),Ae=function(Ze){var zt=dP(),rn=he.useState([]),Rt=rn[0],gn=rn[1];return he.useEffect(function(){Ze.getOutline().then(function(Xt){if(zt.current&&Xt!==null){var wn=T_e(Xt);gn(wn)}})},[]),Rt}(r),Ce=he.useState(a),Ge=Ce[0],Ee=Ce[1],Ne=ly(Ge),De=he.useRef(g),Ue=he.useRef(typeof n=="string"?n:null),Re=he.useRef(-1),je=he.useRef(-1),$e=he.useRef(o),Le=d6t({getCurrentPage:function(){return De.current.pageIndex},getCurrentScrollMode:function(){return De.current.scrollMode},jumpToPage:function(Ze){return Bn(Ze)},targetRef:H}),Xe=he.useState(-1),mt=Xe[0],fe=Xe[1],be=he.useState(0),ye=be[0],Oe=be[1],Me=O_e({doc:r});he.useEffect(function(){return function(){uN.clear(),AY.clear()}},[O]);var Ke=he.useMemo(function(){return Object.assign({},p6t,l)},[]),gt=he.useMemo(function(){return Array(k).fill(0).map(function(Ze,zt){var rn=[u[zt].pageHeight,u[zt].pageWidth],Rt=Math.abs(S)%180==0?{height:rn[0],width:rn[1]}:{height:rn[1],width:rn[0]},gn={height:Rt.height*Ge,width:Rt.width*Ge};return Ke.transformSize({numPages:k,pageIndex:zt,size:gn})})},[S,Ge]),ft=l6t({enableSmoothScroll:i,isRtl:W,numberOfItems:k,parentRef:H,scrollMode:se,setRenderRange:h,sizes:gt,viewMode:oe}),Bt=SY(function(){!Ue.current||De.current.fullScreenMode!==Be.FullScreenMode.Normal||o>0&&$e.current===o||or(Ue.current)},200);(function(Ze){var zt=Ze.targetRef,rn=Ze.onResize;ao(function(){var Rt=new ResizeObserver(function(Xt){Xt.forEach(function(wn){rn(wn.target)})}),gn=zt.current;if(gn)return Rt.observe(gn),function(){Rt.unobserve(gn)}},[])})({targetRef:H,onResize:Bt});var Ft=function(Ze){var zt=Ze;c.forEach(function(rn){rn.onViewerStateChange&&(zt=rn.onViewerStateChange(zt))}),De.current=zt},Kn=function(){return H.current},Ut=function(){return De.current},ln=he.useCallback(function(Ze){N.markVisitedDestination(Ze)},[]),Yn=he.useCallback(function(Ze){var zt=Ze.pageIndex,rn=Ze.bottomOffset,Rt=Ze.leftOffset,gn=Ze.scaleTo,Xt=H.current,wn=De.current;return Xt&&wn?new Promise(function(_o,Tl){pN(r,zt).then(function(Dl){var Ks=Dl.getViewport({scale:1}),ul=0,ca=(typeof rn=="function"?rn(Ks.width,Ks.height):rn)||0,sc=(typeof Rt=="function"?Rt(Ks.width,Ks.height):Rt)||0,ps=wn.scale;switch(gn){case Be.SpecialZoomLevel.PageFit:ul=0,sc=0,or(Be.SpecialZoomLevel.PageFit);break;case Be.SpecialZoomLevel.PageWidth:ps=CY(Xt,u[zt].pageHeight,u[zt].pageWidth,Be.SpecialZoomLevel.PageWidth,m,k),ul=(Ks.height-ca)*ps,sc*=ps,or(ps);break;default:ul=(Ks.height-ca)*ps,sc*=ps}switch(wn.scrollMode){case Be.ScrollMode.Horizontal:ft.scrollToItem(zt,{left:sc,top:0}).then(function(){_o()});break;case Be.ScrollMode.Vertical:default:ft.scrollToItem(zt,{left:0,top:ul}).then(function(){_o()})}})}):Promise.resolve()},[]),jn=he.useCallback(function(Ze){return N.markVisitedDestination(Ze),Yn(Ze)},[]),Hn=he.useCallback(function(){var Ze=N.getNextDestination();return Ze?Yn(Ze):Promise.resolve()},[]),dn=he.useCallback(function(){var Ze=N.getPreviousDestination();return Ze?Yn(Ze):Promise.resolve()},[]),cr=he.useCallback(function(){return ft.scrollToNextItem(De.current.pageIndex,d4)},[]),Bn=he.useCallback(function(Ze){return 0<=Ze&&Ze<k?ft.scrollToItem(Ze,d4):Promise.resolve()},[]),Si=he.useCallback(function(){return ft.scrollToPreviousItem(De.current.pageIndex,d4)},[]),ir=he.useCallback(function(Ze){var zt,rn;(zt=Ze.name,rn=zt.split(/\./).pop(),rn?rn.toLowerCase():"").toLowerCase()==="pdf"&&new Promise(function(Rt){var gn=new FileReader;gn.readAsArrayBuffer(Ze),gn.onload=function(){var Xt=new Uint8Array(gn.result);Rt(Xt)}}).then(function(Rt){v(Ze.name,Rt)})},[v]),Mr=he.useCallback(function(Ze){var zt=Ze===Be.RotateDirection.Backward?-90:90,rn=De.current.rotation,Rt=rn===360||rn===-360?zt:rn+zt;Me.markNotRendered(),G(Rt),Ft(Rn(Rn({},De.current),{rotation:Rt})),y({direction:Ze,doc:r,rotation:Rt})},[]),ct=he.useCallback(function(Ze,zt){var rn=zt===Be.RotateDirection.Backward?-90:90,Rt=De.current.pagesRotation,gn=(Rt.has(Ze)?Rt.get(Ze):s)+rn,Xt=Rt.set(Ze,gn);$(Xt),F(function(wn){return!wn}),Ft(Rn(Rn({},De.current),{pagesRotation:Xt,rotatedPage:Ze})),_({direction:zt,doc:r,pageIndex:Ze,rotation:gn}),Me.markRendering(Ze),fe(Ze)},[]),_n=he.useCallback(function(Ze){Ft(Rn(Rn({},De.current),{scrollMode:Ze})),Y(Ze)},[]),Oi=he.useCallback(function(Ze){Ft(Rn(Rn({},De.current),{viewMode:Ze})),de(Ze)},[]),or=he.useCallback(function(Ze){var zt=H.current,rn=De.current.pageIndex;if(!(rn<0||rn>=k)){var Rt=u[rn].pageHeight,gn=u[rn].pageWidth,Xt=zt?typeof Ze=="string"?CY(zt,Rt,gn,Ze,De.current.viewMode,k):Ze:1;Ue.current=typeof Ze=="string"?Ze:null,Xt!==De.current.scale&&(Oe(function(wn){return wn+1}),Me.markNotRendered(),Ee(Xt),w({doc:r,scale:Xt}),Ft(Rn(Rn({},De.current),{scale:Xt})))}},[]),bn=he.useCallback(function(Ze){Le.enterFullScreenMode(Ze)},[]),Qn=he.useCallback(function(){Le.exitFullScreenMode()},[]);he.useEffect(function(){Ft(Rn(Rn({},De.current),{fullScreenMode:Le.fullScreenMode}))},[Le.fullScreenMode]),he.useEffect(function(){var Ze={enterFullScreenMode:bn,exitFullScreenMode:Qn,getPagesContainer:Kn,getViewerState:Ut,jumpToDestination:jn,jumpToNextDestination:Hn,jumpToPreviousDestination:dn,jumpToNextPage:cr,jumpToPreviousPage:Si,jumpToPage:Bn,openFile:ir,rotate:Mr,rotatePage:ct,setViewerState:Ft,switchScrollMode:_n,switchViewMode:Oi,zoom:or};return c.forEach(function(zt){zt.install&&zt.install(Ze)}),function(){c.forEach(function(zt){zt.uninstall&&zt.uninstall(Ze)})}},[O]),he.useEffect(function(){b({doc:r,file:t}),c.forEach(function(Ze){Ze.onDocumentLoad&&Ze.onDocumentLoad({doc:r,file:t})})},[O]);var Ho,ds,$r,co=ft.boundingClientRect;Ho=function(){o&&Bn(o)},ds=co.height>0&&co.width>0,$r=he.useRef(!1),ao(function(){ds&&!$r.current&&($r.current=!0,Ho())},[Ho,ds]),ao(function(){var Ze=De.current.pageIndex;Ze>-1&&ue!==se&&ft.scrollToItem(Ze,d4).then(function(){Le.fullScreenMode===Be.FullScreenMode.EnteredCompletely&&(i||Me.markNotRendered(),Re.current=-1)})},[se]),ao(function(){var Ze=De.current.pageIndex;Ze>-1&&T!==S&&ft.scrollToItem(Ze,d4)},[S]),ao(function(){Ne!=0&&Ne!=De.current.scale&&ft.zoom(De.current.scale/Ne,De.current.pageIndex).then(function(){Le.fullScreenMode===Be.FullScreenMode.EnteredCompletely&&(je.current=-1)})},[Ge]),ao(function(){if(ve!==De.current.viewMode){var Ze=ft.startPage,zt=ft.endPage,rn=ft.virtualItems;Me.markNotRendered(),Me.setRange(Ze,zt);for(var Rt=function(Xt){var wn=rn.find(function(_o){return _o.index===Xt});wn&&Me.setVisibility(Xt,wn.visibility)},gn=Ze;gn<=zt;gn++)Rt(gn);sr()}},[oe]),ao(function(){var Ze=De.current.pageIndex;Ze>-1&&ve!==oe&&ft.scrollToItem(Ze,d4)},[oe]),ao(function(){var Ze=De.current.pageIndex;Ze>0&&Ze===o&&$e.current===o&&Ue.current&&($e.current=-1,or(Ue.current))},[j]),he.useEffect(function(){ft.isSmoothScrolling||B.current!==null&&B.current===j||(B.current=j,x({currentPage:j,doc:r}))},[j,ft.isSmoothScrolling]),he.useEffect(function(){Le.fullScreenMode===Be.FullScreenMode.Entering&&De.current.scrollMode===Be.ScrollMode.Page&&(Re.current=De.current.pageIndex),Le.fullScreenMode===Be.FullScreenMode.EnteredCompletely&&De.current.scrollMode===Be.ScrollMode.Page&&i&&(Re.current=-1),Le.fullScreenMode===Be.FullScreenMode.EnteredCompletely&&Ue.current&&(je.current=De.current.pageIndex,or(Ue.current))},[Le.fullScreenMode]),he.useEffect(function(){if(Le.fullScreenMode!==Be.FullScreenMode.Entering&&Le.fullScreenMode!==Be.FullScreenMode.Exitting&&!ft.isSmoothScrolling){var Ze=ft.startPage,zt=ft.endPage,rn=ft.maxVisbilityIndex,Rt=ft.virtualItems,gn=rn,Xt=Le.fullScreenMode===Be.FullScreenMode.Entered||Le.fullScreenMode===Be.FullScreenMode.EnteredCompletely;if(!(Xt&&gn!==Re.current&&Re.current>-1||Xt&&gn!==je.current&&je.current>-1)){V(gn),Ft(Rn(Rn({},De.current),{pageIndex:gn})),Me.setRange(Ze,zt);for(var wn=function(Tl){var Dl=Rt.find(function(Ks){return Ks.index===Tl});Dl&&Me.setVisibility(Tl,Dl.visibility)},_o=Ze;_o<=zt;_o++)wn(_o);sr()}}},[ft.startPage,ft.endPage,ft.isSmoothScrolling,ft.maxVisbilityIndex,Le.fullScreenMode,U,S,Ge]);var gr=he.useCallback(function(Ze){Me.markRendered(Ze),sr()},[ye]),sr=function(){var Ze=Me.getHighestPriorityPage();Ze>-1&&Me.isInRange(Ze)&&(Me.markRendering(Ze),fe(Ze))},We=function(Ze){var zt=j-1,rn=j+1;switch(Ze){case"FirstPage":Bn(0);break;case"LastPage":Bn(k-1);break;case"NextPage":rn<k&&Bn(rn);break;case"PrevPage":zt>=0&&Bn(zt)}},an=he.useCallback(function(){var Ze=ft.virtualItems,zt=[];switch(oe){case Be.ViewMode.DualPage:zt=p4(Ze,2);break;case Be.ViewMode.DualPageWithCover:Ze.length&&(zt=Ze[0].index===0?[[Ze[0]]].concat(p4(Ze.slice(1),2)):p4(Ze,2));break;case Be.ViewMode.SinglePage:default:zt=p4(Ze,1)}var rn=M&&M.core?M.core.pageLabel:"Page {{pageIndex}}",Rt={attrs:{className:"rpv-core__inner-container","data-testid":"core__inner-container",ref:J,style:{height:"100%"}},children:he.createElement(he.Fragment,null),subSlot:{attrs:{"data-testid":"core__inner-pages",className:fo({"rpv-core__inner-pages":!0,"rpv-core__inner-pages--horizontal":se===Be.ScrollMode.Horizontal,"rpv-core__inner-pages--rtl":W,"rpv-core__inner-pages--single":se===Be.ScrollMode.Page,"rpv-core__inner-pages--vertical":se===Be.ScrollMode.Vertical,"rpv-core__inner-pages--wrapped":se===Be.ScrollMode.Wrapped}),ref:H,style:{height:"100%",position:"relative"}},children:he.createElement("div",{"data-testid":"core__inner-current-page-".concat(j),style:Object.assign({"--scale-factor":Ge},ft.getContainerStyles())},zt.map(function(gn){return he.createElement("div",{className:fo({"rpv-core__inner-page-container":!0,"rpv-core__inner-page-container--single":se===Be.ScrollMode.Page}),style:ft.getItemContainerStyles(gn[0]),key:"".concat(gn[0].index,"-").concat(oe)},gn.map(function(Xt){var wn=oe===Be.ViewMode.DualPageWithCover&&(Xt.index===0||k%2==0&&Xt.index===k-1);return he.createElement("div",{"aria-label":rn.replace("{{pageIndex}}","".concat(Xt.index+1)),className:fo({"rpv-core__inner-page":!0,"rpv-core__inner-page--dual-even":oe===Be.ViewMode.DualPage&&Xt.index%2==0,"rpv-core__inner-page--dual-odd":oe===Be.ViewMode.DualPage&&Xt.index%2==1,"rpv-core__inner-page--dual-cover":wn,"rpv-core__inner-page--dual-cover-even":oe===Be.ViewMode.DualPageWithCover&&!wn&&Xt.index%2==0,"rpv-core__inner-page--dual-cover-odd":oe===Be.ViewMode.DualPageWithCover&&!wn&&Xt.index%2==1,"rpv-core__inner-page--single":oe===Be.ViewMode.SinglePage&&se===Be.ScrollMode.Page}),role:"region",key:"".concat(Xt.index,"-").concat(oe),style:Object.assign({},ft.getItemStyles(Xt),Ke.buildPageStyles({numPages:k,pageIndex:Xt.index,scrollMode:se,viewMode:oe}))},he.createElement(Uyt,{doc:r,measureRef:Xt.measureRef,outlines:Ae,pageIndex:Xt.index,pageRotation:L.has(Xt.index)?L.get(Xt.index):0,pageSize:u[Xt.index],plugins:c,renderPage:f,renderQueueKey:ye,rotation:S,scale:Ge,shouldRender:mt===Xt.index,viewMode:oe,onExecuteNamedAction:We,onJumpFromLinkAnnotation:ln,onJumpToDest:jn,onRenderCompleted:gr,onRotatePage:ct}))}))}))}};return c.forEach(function(gn){gn.renderViewer&&(Rt=gn.renderViewer({containerRef:J,doc:r,pagesContainerRef:H,pagesRotation:L,pageSizes:u,rotation:S,slot:Rt,themeContext:I,jumpToPage:Bn,openFile:ir,rotate:Mr,rotatePage:ct,switchScrollMode:_n,switchViewMode:Oi,zoom:or}))}),Rt},[c,ft]),tn=he.useCallback(function(Ze){return he.createElement("div",Rn({},Ze.attrs,{style:Ze.attrs&&Ze.attrs.style?Ze.attrs.style:{}}),Ze.children,Ze.subSlot&&tn(Ze.subSlot))},[]);return tn(an())},__e=[.1,.2,.3,.4,.5,.6,.7,.8,.9,1,1.1,1.3,1.5,1.7,1.9,2.1,2.4,2.7,3,3.3,3.7,4.1,4.6,5.1,5.7,6.3,7,7.7,8.5,9.4,10],h6t=function(e){var t=e.defaultScale,n=e.doc,r=e.render,i=e.scrollMode,o=e.viewMode,s=he.useRef(),a=he.useState({pageSizes:[],scale:0}),l=a[0],u=a[1];return he.useLayoutEffect(function(){var c=Array(n.numPages).fill(0).map(function(f,d){return new Promise(function(h,m){pN(n,d).then(function(g){var b=g.getViewport({scale:1});h({pageHeight:b.height,pageWidth:b.width,rotation:b.rotation})})})});Promise.all(c).then(function(f){var d=s.current;if(d&&f.length!==0){var h=f[0].pageWidth,m=f[0].pageHeight,g=d.parentElement,b=(g.clientWidth-45)/h,v=(g.clientHeight-45)/m,x=b;switch(i){case Be.ScrollMode.Horizontal:x=Math.min(b,v);break;case Be.ScrollMode.Vertical:default:x=b}var y,_,w=t?typeof t=="string"?CY(g,m,h,t,o,n.numPages):t:(y=x,(_=__e.findIndex(function(k){return k>=y}))===-1||_===0?y:__e[_-1]);u({pageSizes:f,scale:w})}})},[n.loadingTask.docId]),l.pageSizes.length===0||l.scale===0?he.createElement("div",{className:"rpv-core__page-size-calculator","data-testid":"core__page-size-calculating",ref:s},he.createElement(dN,null)):r(l.pageSizes,l.scale)},fN=function(){},bY=function(e){function t(n,r){var i=e.call(this)||this;return i.verifyPassword=n,i.passwordStatus=r,i}return cN(t,e),t}(fN),m6t=function(e){var t=e.passwordStatus,n=e.renderProtectedView,r=e.verifyPassword,i=e.onDocumentAskPassword,o=he.useContext(aN).l10n,s=he.useState(""),a=s[0],l=s[1],u=he.useContext(wa).direction===Be.TextDirection.RightToLeft,c=function(){return r(a)};return he.useEffect(function(){i&&i({verifyPassword:r})},[]),n?n({passwordStatus:t,verifyPassword:r}):he.createElement("div",{className:"rpv-core__asking-password-wrapper"},he.createElement("div",{className:fo({"rpv-core__asking-password":!0,"rpv-core__asking-password--rtl":u})},he.createElement("div",{className:"rpv-core__asking-password-message"},t===Be.PasswordStatus.RequiredPassword&&o.core.askingPassword.requirePasswordToOpen,t===Be.PasswordStatus.WrongPassword&&o.core.wrongPassword.tryAgain),he.createElement("div",{className:"rpv-core__asking-password-body"},he.createElement("div",{className:fo({"rpv-core__asking-password-input":!0,"rpv-core__asking-password-input--ltr":!u,"rpv-core__asking-password-input--rtl":u})},he.createElement(C_e,{testId:"core__asking-password-input",type:"password",value:a,onChange:l,onKeyDown:function(f){f.key==="Enter"&&c()}})),he.createElement(A_e,{onClick:c},o.core.askingPassword.submit))))},b_e=function(e){function t(n){var r=e.call(this)||this;return r.doc=n,r}return cN(t,e),t}(fN),w_e=function(e){function t(n){var r=e.call(this)||this;return r.error=n,r}return cN(t,e),t}(fN),wY=function(e){function t(n){var r=e.call(this)||this;return r.percentages=n,r}return cN(t,e),t}(fN),g6t=function(e){var t=e.characterMap,n=e.file,r=e.httpHeaders,i=e.render,o=e.renderError,s=e.renderLoader,a=e.renderProtectedView,l=e.transformGetDocumentParams,u=e.withCredentials,c=e.onDocumentAskPassword,f=he.useContext(wa).direction===Be.TextDirection.RightToLeft,d=he.useState(new wY(0)),h=d[0],m=d[1],g=he.useRef(""),b=dP();return he.useEffect(function(){g.current="",m(new wY(0));var v=new ay.PDFWorker({name:"PDFWorker_".concat(Date.now())}),x=Object.assign({httpHeaders:r,withCredentials:u,worker:v},typeof n=="string"?{url:n}:{data:n},t?{cMapUrl:t.url,cMapPacked:t.isCompressed}:{}),y=l?l(x):x,_=ay.getDocument(y);return _.onPassword=function(w,k){switch(k){case ay.PasswordResponses.NEED_PASSWORD:b.current&&m(new bY(w,Be.PasswordStatus.RequiredPassword));break;case ay.PasswordResponses.INCORRECT_PASSWORD:b.current&&m(new bY(w,Be.PasswordStatus.WrongPassword))}},_.onProgress=function(w){var k=w.total>0?Math.min(100,100*w.loaded/w.total):100;b.current&&g.current===""&&m(new wY(k))},_.promise.then(function(w){g.current=w.loadingTask.docId,b.current&&m(new b_e(w))},function(w){return b.current&&!v.destroyed&&m(new w_e({message:w.message||"Cannot load document",name:w.name}))}),function(){_.destroy(),v.destroy()}},[n]),h instanceof bY?he.createElement(m6t,{passwordStatus:h.passwordStatus,renderProtectedView:a,verifyPassword:h.verifyPassword,onDocumentAskPassword:c}):h instanceof b_e?i(h.doc):h instanceof w_e?o?o(h.error):he.createElement("div",{className:fo({"rpv-core__doc-error":!0,"rpv-core__doc-error--rtl":f})},he.createElement("div",{className:"rpv-core__doc-error-text"},h.error.message)):he.createElement("div",{"data-testid":"core__doc-loading",className:fo({"rpv-core__doc-loading":!0,"rpv-core__doc-loading--rtl":f})},s?s(h.percentages):he.createElement(dN,null))},v6t=function(e,t){var n=he.useMemo(function(){return e==="auto"?typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e},[]),r=he.useState(n),i=r[0],o=r[1],s=ly(i);return he.useEffect(function(){if(e==="auto"){var a=window.matchMedia("(prefers-color-scheme: dark)"),l=function(u){o(u.matches?"dark":"light")};return a.addEventListener("change",l),function(){return a.removeEventListener("change",l)}}},[]),he.useEffect(function(){i!==s&&t&&t(i)},[i]),he.useEffect(function(){e!==i&&o(e)},[e]),{currentTheme:i,setCurrentTheme:o}},y6t=function(e){return{startPage:e.startPage-3,endPage:e.endPage+3}};Be.Button=function(e){var t=e.children,n=e.testId,r=e.onClick,i=he.useContext(wa).direction===Be.TextDirection.RightToLeft,o=n?{"data-testid":n}:{};return he.createElement("button",Rn({className:fo({"rpv-core__button":!0,"rpv-core__button--rtl":i}),type:"button",onClick:r},o),t)},Be.Icon=Eg,Be.LazyRender=function(e){var t=e.attrs,n=e.children,r=e.testId,i=he.useState(!1),o=i[0],s=i[1],a=r?Rn(Rn({},t),{"data-testid":r}):t,l=sN({once:!0,onVisibilityChanged:function(u){u.isVisible&&s(!0)}});return he.createElement("div",Rn({ref:l},a),o&&n)},Be.LocalizationContext=aN,Be.Menu=function(e){var t=e.children,n=he.useRef(),r=he.useRef([]),i=he.useContext(wa).direction===Be.TextDirection.RightToLeft,o=function(a){if(n.current)switch(a.key){case"Tab":a.preventDefault();break;case"ArrowDown":a.preventDefault(),s(function(l,u){return u+1});break;case"ArrowUp":a.preventDefault(),s(function(l,u){return u-1});break;case"End":a.preventDefault(),s(function(l,u){return l.length-1});break;case"Home":a.preventDefault(),s(function(l,u){return 0})}},s=function(a){if(n.current){var l=r.current,u=l.findIndex(function(f){return f.getAttribute("tabindex")==="0"}),c=Math.min(l.length-1,Math.max(0,a(l,u)));u>=0&&u<=l.length-1&&l[u].setAttribute("tabindex","-1"),l[c].setAttribute("tabindex","0"),l[c].focus()}};return ao(function(){var a=n.current;if(a){var l=function(u){var c=[];return u.querySelectorAll('.rpv-core__menu-item[role="menuitem"]').forEach(function(f){if(f instanceof HTMLElement){var d=f.parentElement;(d===u||window.getComputedStyle(d).display!=="none")&&c.push(f)}}),c}(a);r.current=l}},[]),ao(function(){return document.addEventListener("keydown",o),function(){document.removeEventListener("keydown",o)}},[]),he.createElement("div",{ref:n,"aria-orientation":"vertical",className:fo({"rpv-core__menu":!0,"rpv-core__menu--rtl":i}),role:"menu",tabIndex:0},t)},Be.MenuDivider=function(){return he.createElement("div",{"aria-orientation":"horizontal",className:"rpv-core__menu-divider",role:"separator"})},Be.MenuItem=function(e){var t=e.checked,n=t!==void 0&&t,r=e.children,i=e.icon,o=i===void 0?null:i,s=e.isDisabled,a=s!==void 0&&s,l=e.testId,u=e.onClick,c=he.useContext(wa).direction===Be.TextDirection.RightToLeft,f=l?{"data-testid":l}:{};return he.createElement("button",Rn({className:fo({"rpv-core__menu-item":!0,"rpv-core__menu-item--disabled":a,"rpv-core__menu-item--ltr":!c,"rpv-core__menu-item--rtl":c}),role:"menuitem",tabIndex:-1,type:"button",onClick:u},f),he.createElement("div",{className:fo({"rpv-core__menu-item-icon":!0,"rpv-core__menu-item-icon--ltr":!c,"rpv-core__menu-item-icon--rtl":c})},o),he.createElement("div",{className:fo({"rpv-core__menu-item-label":!0,"rpv-core__menu-item-label--ltr":!c,"rpv-core__menu-item-label--rtl":c})},r),he.createElement("div",{className:fo({"rpv-core__menu-item-check":!0,"rpv-core__menu-item-check--ltr":!c,"rpv-core__menu-item-check--rtl":c})},n&&he.createElement(k_e,null)))},Be.MinimalButton=function(e){var t=e.ariaLabel,n=t===void 0?"":t,r=e.ariaKeyShortcuts,i=r===void 0?"":r,o=e.children,s=e.isDisabled,a=s!==void 0&&s,l=e.isSelected,u=l!==void 0&&l,c=e.testId,f=e.onClick,d=he.useContext(wa).direction===Be.TextDirection.RightToLeft,h=c?{"data-testid":c}:{};return he.createElement("button",Rn({"aria-label":n},i&&{"aria-keyshortcuts":i},a&&{"aria-disabled":!0},{className:fo({"rpv-core__minimal-button":!0,"rpv-core__minimal-button--disabled":a,"rpv-core__minimal-button--rtl":d,"rpv-core__minimal-button--selected":u}),type:"button",onClick:f},h),o)},Be.Modal=function(e){var t=e.ariaControlsSuffix,n=e.closeOnClickOutside,r=e.closeOnEscape,i=e.content,o=e.isOpened,s=o!==void 0&&o,a=e.target,l=t||"".concat(gY());return he.createElement(myt,{target:a?function(u,c){return he.createElement("div",{"aria-expanded":c?"true":"false","aria-haspopup":"dialog","aria-controls":"rpv-core__modal-body-".concat(l)},a(u,c))}:null,content:function(u){return he.createElement(hyt,null,he.createElement(fyt,{ariaControlsSuffix:l,closeOnClickOutside:n,closeOnEscape:r,onToggle:u},i(u)))},isOpened:s})},Be.Popover=function(e){var t=e.ariaHasPopup,n=t===void 0?"dialog":t,r=e.ariaControlsSuffix,i=e.closeOnClickOutside,o=e.closeOnEscape,s=e.content,a=e.lockScroll,l=a===void 0||a,u=e.offset,c=e.position,f=e.target,d=lN(!1),h=d.opened,m=d.toggle,g=he.useRef(),b=he.useMemo(function(){return r||"".concat(gY())},[]);return he.createElement("div",{ref:g,"aria-expanded":h?"true":"false","aria-haspopup":n,"aria-controls":"rpv-core__popver-body-".concat(b)},f(m,h),h&&he.createElement(he.Fragment,null,l&&he.createElement(vyt,{closeOnEscape:o,onClose:m}),he.createElement(gyt,{ariaControlsSuffix:b,closeOnClickOutside:i,offset:u,position:c,targetRef:g,onClose:m},s(m))))},Be.PrimaryButton=A_e,Be.ProgressBar=function(e){var t=e.progress,n=he.useContext(wa).direction===Be.TextDirection.RightToLeft;return he.createElement("div",{className:fo({"rpv-core__progress-bar":!0,"rpv-core__progress-bar--rtl":n})},he.createElement("div",{className:"rpv-core__progress-bar-progress",style:{width:"".concat(t,"%")}},t,"%"))},Be.Separator=function(){return he.createElement("div",{className:"rpv-core__separator"})},Be.Spinner=dN,Be.Splitter=function(e){var t=e.constrain,n=he.useContext(wa).direction===Be.TextDirection.RightToLeft,r=he.useRef(),i=he.useRef(),o=he.useRef(),s=he.useRef(0),a=he.useRef(0),l=he.useRef(0),u=he.useRef(0),c={capture:!0},f=function(h){var m=r.current,g=i.current,b=o.current;if(m&&g&&b){var v=u.current,x=h.clientX-s.current,y=l.current+(n?-x:x),_=m.parentElement.getBoundingClientRect().width,w=100*y/_;if(m.classList.add("rpv-core__splitter--resizing"),t){var k=_-y-v;if(!t({firstHalfPercentage:w,firstHalfSize:y,secondHalfPercentage:100*k/_,secondHalfSize:k}))return}g.style.width="".concat(w,"%"),document.body.classList.add("rpv-core__splitter-body--resizing"),g.classList.add("rpv-core__splitter-sibling--resizing"),b.classList.add("rpv-core__splitter-sibling--resizing")}},d=function(h){var m=r.current,g=i.current,b=o.current;m&&g&&b&&(document.body.classList.remove("rpv-core__splitter-body--resizing"),m.classList.remove("rpv-core__splitter--resizing"),g.classList.remove("rpv-core__splitter-sibling--resizing"),b.classList.remove("rpv-core__splitter-sibling--resizing"),document.removeEventListener("mousemove",f,c),document.removeEventListener("mouseup",d,c))};return he.useEffect(function(){var h=r.current;h&&(u.current=h.getBoundingClientRect().width,i.current=h.previousElementSibling,o.current=h.nextElementSibling)},[]),he.createElement("div",{ref:r,className:"rpv-core__splitter",onMouseDown:function(h){var m=i.current;m&&(s.current=h.clientX,a.current=h.clientY,l.current=m.getBoundingClientRect().width,document.addEventListener("mousemove",f,c),document.addEventListener("mouseup",d,c))}})},Be.TextBox=C_e,Be.ThemeContext=wa,Be.Tooltip=function(e){var t=e.ariaControlsSuffix,n=e.content,r=e.offset,i=e.position,o=e.target,s=lN(!1),a=s.opened,l=s.toggle,u=he.useRef(),c=he.useRef(),f=he.useMemo(function(){return t||"".concat(gY())},[]);OY(function(){u.current&&document.activeElement&&u.current.contains(document.activeElement)&&h()});var d=function(){l(Be.ToggleStatus.Open)},h=function(){l(Be.ToggleStatus.Close)};return he.createElement(he.Fragment,null,he.createElement("div",{ref:u,"aria-describedby":"rpv-core__tooltip-body-".concat(f),onBlur:function(m){m.relatedTarget instanceof HTMLElement&&m.currentTarget.parentElement&&m.currentTarget.parentElement.contains(m.relatedTarget)?c.current&&(c.current.style.display="none"):h()},onFocus:d,onMouseEnter:d,onMouseLeave:h},o),a&&he.createElement(yyt,{ariaControlsSuffix:f,contentRef:c,offset:r,position:i,targetRef:u},n()))},Be.Viewer=function(e){var t=e.characterMap,n=e.defaultScale,r=e.enableSmoothScroll,i=r===void 0||r,o=e.fileUrl,s=e.httpHeaders,a=s===void 0?{}:s,l=e.initialPage,u=l===void 0?0:l,c=e.pageLayout,f=e.initialRotation,d=f===void 0?0:f,h=e.localization,m=e.plugins,g=m===void 0?[]:m,b=e.renderError,v=e.renderLoader,x=e.renderPage,y=e.renderProtectedView,_=e.scrollMode,w=_===void 0?Be.ScrollMode.Vertical:_,k=e.setRenderRange,O=k===void 0?y6t:k,M=e.transformGetDocumentParams,I=e.theme,W=I===void 0?{direction:Be.TextDirection.LeftToRight,theme:"light"}:I,J=e.viewMode,H=J===void 0?Be.ViewMode.SinglePage:J,ee=e.withCredentials,j=ee!==void 0&&ee,V=e.onDocumentAskPassword,B=e.onDocumentLoad,N=B===void 0?function(){}:B,C=e.onPageChange,S=C===void 0?function(){}:C,G=e.onRotate,T=G===void 0?function(){}:G,Q=e.onRotatePage,U=Q===void 0?function(){}:Q,F=e.onSwitchTheme,D=F===void 0?function(){}:F,L=e.onZoom,$=L===void 0?function(){}:L,Z=he.useState({data:o,name:typeof o=="string"?o:"",shouldLoad:!1}),se=Z[0],Y=Z[1],ue=function(Re,je){Y({data:je,name:Re,shouldLoad:!0})},pe=he.useState(!1),oe=pe[0],de=pe[1],ve=ly(se);he.useEffect(function(){var Re,je,$e,Le;Re=ve.data,Le=typeof(je=o),($e=typeof Re)=="string"&&Le==="string"&&Re===je||$e==="object"&&Le==="object"&&Re.length===je.length&&Re.every(function(Xe,mt){return Xe===je[mt]})||Y({data:o,name:typeof o=="string"?o:"",shouldLoad:oe})},[o,oe]);var Ae=sN({onVisibilityChanged:function(Re){de(Re.isVisible),Re.isVisible&&Y(function(je){return Object.assign({},je,{shouldLoad:!0})})}}),Ce=typeof W=="string"?{direction:Be.TextDirection.LeftToRight,theme:W}:W,Ge=he.useState(h||E_e),Ee=Ge[0],Ne=Ge[1],De={l10n:Ee,setL10n:Ne},Ue=Object.assign({},{direction:Ce.direction},v6t(Ce.theme||"light",D));return he.useEffect(function(){h&&Ne(h)},[h]),he.createElement(aN.Provider,{value:De},he.createElement(wa.Provider,{value:Ue},he.createElement("div",{ref:Ae,className:"rpv-core__viewer rpv-core__viewer--".concat(Ue.currentTheme),"data-testid":"core__viewer",style:{height:"100%",width:"100%"}},se.shouldLoad&&he.createElement(g6t,{characterMap:t,file:se.data,httpHeaders:a,render:function(Re){return he.createElement(h6t,{defaultScale:n,doc:Re,render:function(je,$e){return he.createElement(f6t,{currentFile:{data:se.data,name:se.name},defaultScale:n,doc:Re,enableSmoothScroll:i,initialPage:u,initialRotation:d,initialScale:$e,pageLayout:c,pageSizes:je,plugins:g,renderPage:x,scrollMode:w,setRenderRange:O,viewMode:H,viewerState:{file:se,fullScreenMode:Be.FullScreenMode.Normal,pageIndex:-1,pageHeight:je[0].pageHeight,pageWidth:je[0].pageWidth,pagesRotation:new Map,rotation:d,scale:$e,scrollMode:w,viewMode:H},onDocumentLoad:N,onOpenFile:ue,onPageChange:S,onRotate:T,onRotatePage:U,onZoom:$})},scrollMode:w,viewMode:H})},renderError:b,renderLoader:v,renderProtectedView:y,transformGetDocumentParams:M,withCredentials:j,onDocumentAskPassword:V}))))},Be.Worker=function(e){var t=e.children,n=e.workerUrl;return ay.GlobalWorkerOptions.workerSrc=n,he.createElement(he.Fragment,null,t)},Be.chunk=p4,Be.classNames=fo,Be.createStore=function(e){var t=e||{},n={},r=function(o,s){var a;t=Rn(Rn({},t),((a={})[o]=s,a)),(n[o]||[]).forEach(function(l){return l(t[o])})},i=function(o){return t[o]};return{subscribe:function(o,s){n[o]=(n[o]||[]).concat(s)},unsubscribe:function(o,s){n[o]=(n[o]||[]).filter(function(a){return a!==s})},update:function(o,s){r(o,s)},updateCurrentValue:function(o,s){var a=i(o);a!==void 0&&r(o,s(a))},get:function(o){return i(o)}}},Be.getDestination=EY,Be.getPage=pN,Be.isFullScreenEnabled=S_e,Be.isMac=function(){return typeof window<"u"&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)},Be.useDebounceCallback=SY,Be.useIntersectionObserver=sN,Be.useIsMounted=dP,Be.useIsomorphicLayoutEffect=ao,Be.usePrevious=ly,Be.useRenderQueue=O_e});var Ua=ne((Swn,R_e)=>{"use strict";R_e.exports=D_e()});var H_e=ne(f4=>{"use strict";var pi=Ua();function x6t(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var Pt=x6t(Pe()),BY=function(){return Pt.createElement(pi.Icon,{size:16},Pt.createElement("path",{d:`M2.32,2.966h19.452c0.552,0.001,1,0.449,0.999,1.001c0,0.182-0.05,0.36-0.144,0.516L12.9,20.552
            c-0.286,0.472-0.901,0.624-1.373,0.338c-0.138-0.084-0.254-0.2-0.338-0.338L1.465,4.483C1.179,4.01,1.331,3.396,1.804,3.11
            C1.96,3.016,2.138,2.966,2.32,2.966z`}))},NY=function(){return Pt.createElement(pi.Icon,{size:16},Pt.createElement("path",{d:`M0.541,5.627L11.666,18.2c0.183,0.207,0.499,0.226,0.706,0.043c0.015-0.014,0.03-0.028,0.043-0.043
            L23.541,5.627`}))},Uu=function(){return Uu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Uu.apply(this,arguments)},dy=function(e){var t=Pt.useState(e.get("currentPage")||0),n=t[0],r=t[1],i=function(o){r(o)};return pi.useIsomorphicLayoutEffect(function(){return e.subscribe("currentPage",i),function(){e.unsubscribe("currentPage",i)}},[]),{currentPage:n}},pP=function(e){var t=Pt.useState(e.get("numberOfPages")||0),n=t[0],r=t[1],i=function(o){r(o)};return Pt.useEffect(function(){return e.subscribe("numberOfPages",i),function(){e.unsubscribe("numberOfPages",i)}},[]),{numberOfPages:n}},_6t=function(e){var t=e.store,n=Pt.useContext(pi.LocalizationContext).l10n,r=Pt.useState("1"),i=r[0],o=r[1],s=dy(t).currentPage,a=pP(t).numberOfPages;Pt.useEffect(function(){return o("".concat(s+1))},[s]);var l=function(c){var f=t.get("jumpToPage");f&&f(c)},u=n&&n.pageNavigation?n.pageNavigation.enterPageNumber:"Enter a page number";return Pt.createElement("span",{className:"rpv-page-navigation__current-page-input"},Pt.createElement(pi.TextBox,{ariaLabel:u,testId:"page-navigation__current-page-input",type:"text",value:i,onChange:o,onKeyDown:function(c){switch(c.key){case"ArrowUp":(h=s-1)>=0&&(o("".concat(h+1)),l(h));break;case"ArrowDown":(d=s+1)<a&&(o("".concat(d+1)),l(d));break;case"Enter":f=parseInt(i,10),i===""||f<1||f>a?o("".concat(s+1)):l(f-1)}var f,d,h}}))},b6t=function(e){var t=e.children,n=e.doc,r=pi.useIsMounted(),i=Pt.useState({loading:!0,labels:[]}),o=i[0],s=i[1];return Pt.useEffect(function(){n.getPageLabels().then(function(a){r.current&&s({loading:!1,labels:a||[]})})},[n.loadingTask.docId]),o.loading?Pt.createElement(Pt.Fragment,null):t(o.labels)},w6t=function(e){var t=e.children,n=e.store,r=function(a){var l=Pt.useState(a.get("doc")),u=l[0],c=l[1],f=function(d){c(d)};return Pt.useEffect(function(){return a.subscribe("doc",f),function(){a.unsubscribe("doc",f)}},[]),u}(n),i=dy(n).currentPage,o=pP(n).numberOfPages,s=t||function(a){return Pt.createElement(Pt.Fragment,null,a.currentPage+1)};return r?Pt.createElement(b6t,{doc:r},function(a){var l=a.length===o&&o>0?a[i]:"";return s({currentPage:i,numberOfPages:o,pageLabel:l})}):Pt.createElement(Pt.Fragment,null)},GY=function(){return Pt.createElement(pi.Icon,{size:16},Pt.createElement("path",{d:`M21.783,21.034H2.332c-0.552,0-1-0.448-1-1c0-0.182,0.05-0.361,0.144-0.517L11.2,3.448
            c0.286-0.472,0.901-0.624,1.373-0.338c0.138,0.084,0.254,0.2,0.338,0.338l9.726,16.069c0.286,0.473,0.134,1.087-0.339,1.373
            C22.143,20.984,21.965,21.034,21.783,21.034z`}))},P6t={left:0,top:8},L_e=function(e){var t=e.isDisabled,n=e.onClick,r=Pt.useContext(pi.LocalizationContext).l10n,i=r&&r.pageNavigation?r.pageNavigation.goToFirstPage:"First page";return Pt.createElement(pi.Tooltip,{ariaControlsSuffix:"page-navigation-first",position:pi.Position.BottomCenter,target:Pt.createElement(pi.MinimalButton,{ariaLabel:i,isDisabled:t,testId:"page-navigation__first-button",onClick:n},Pt.createElement(GY,null)),content:function(){return i},offset:P6t})},k6t=function(e){var t=e.children,n=e.store;return(t||function(r){return Pt.createElement(L_e,{isDisabled:r.isDisabled,onClick:r.onClick})})({isDisabled:dy(n).currentPage===0,onClick:function(){var r=n.get("jumpToPage");r&&r(0)}})},A6t=function(e){var t=e.isDisabled,n=e.onClick,r=Pt.useContext(pi.LocalizationContext).l10n,i=r&&r.pageNavigation?r.pageNavigation.goToFirstPage:"First page";return Pt.createElement(pi.MenuItem,{icon:Pt.createElement(GY,null),isDisabled:t,testId:"page-navigation__first-menu",onClick:n},i)},C6t={left:0,top:8},V_e=function(e){var t=e.isDisabled,n=e.onClick,r=Pt.useContext(pi.LocalizationContext).l10n,i=r&&r.pageNavigation?r.pageNavigation.goToLastPage:"Last page";return Pt.createElement(pi.Tooltip,{ariaControlsSuffix:"page-navigation-last",position:pi.Position.BottomCenter,target:Pt.createElement(pi.MinimalButton,{ariaLabel:i,isDisabled:t,testId:"page-navigation__last-button",onClick:n},Pt.createElement(BY,null)),content:function(){return i},offset:C6t})},S6t=function(e){var t=e.children,n=e.store,r=dy(n).currentPage,i=pP(n).numberOfPages;return(t||function(o){return Pt.createElement(V_e,{isDisabled:o.isDisabled,onClick:o.onClick})})({isDisabled:r+1>=i,onClick:function(){var o=n.get("jumpToPage");o&&o(i-1)}})},O6t=function(e){var t=e.isDisabled,n=e.onClick,r=Pt.useContext(pi.LocalizationContext).l10n,i=r&&r.pageNavigation?r.pageNavigation.goToLastPage:"Last page";return Pt.createElement(pi.MenuItem,{icon:Pt.createElement(BY,null),isDisabled:t,testId:"page-navigation__last-menu",onClick:n},i)},E6t={left:0,top:8},J_e=function(e){var t=e.isDisabled,n=e.onClick,r=Pt.useContext(pi.LocalizationContext).l10n,i=r&&r.pageNavigation?r.pageNavigation.goToNextPage:"Next page";return Pt.createElement(pi.Tooltip,{ariaControlsSuffix:"page-navigation-next",position:pi.Position.BottomCenter,target:Pt.createElement(pi.MinimalButton,{ariaLabel:i,isDisabled:t,testId:"page-navigation__next-button",onClick:n},Pt.createElement(NY,null)),content:function(){return i},offset:E6t})},M6t=function(e){var t=e.children,n=e.store;return(t||function(r){return Pt.createElement(J_e,{onClick:r.onClick,isDisabled:r.isDisabled})})({isDisabled:dy(n).currentPage+1>=pP(n).numberOfPages,onClick:function(){var r=n.get("jumpToNextPage");r&&r()}})},B6t=function(e){var t=e.isDisabled,n=e.onClick,r=Pt.useContext(pi.LocalizationContext).l10n,i=r&&r.pageNavigation?r.pageNavigation.goToNextPage:"Next page";return Pt.createElement(pi.MenuItem,{icon:Pt.createElement(NY,null),isDisabled:t,testId:"page-navigation__next-menu",onClick:n},i)},FY=function(){return Pt.createElement(pi.Icon,{size:16},Pt.createElement("path",{d:`M23.535,18.373L12.409,5.8c-0.183-0.207-0.499-0.226-0.706-0.043C11.688,5.77,11.674,5.785,11.66,5.8
            L0.535,18.373`}))},N6t={left:0,top:8},j_e=function(e){var t=e.isDisabled,n=e.onClick,r=Pt.useContext(pi.LocalizationContext).l10n,i=r&&r.pageNavigation?r.pageNavigation.goToPreviousPage:"Previous page";return Pt.createElement(pi.Tooltip,{ariaControlsSuffix:"page-navigation-previous",position:pi.Position.BottomCenter,target:Pt.createElement(pi.MinimalButton,{ariaLabel:i,isDisabled:t,testId:"page-navigation__previous-button",onClick:n},Pt.createElement(FY,null)),content:function(){return i},offset:N6t})},G6t=function(e){var t=e.store;return(e.children||function(n){return Pt.createElement(j_e,{isDisabled:n.isDisabled,onClick:n.onClick})})({isDisabled:dy(t).currentPage<=0,onClick:function(){var n=t.get("jumpToPreviousPage");n&&n()}})},F6t=function(e){var t=e.isDisabled,n=e.onClick,r=Pt.useContext(pi.LocalizationContext).l10n,i=r&&r.pageNavigation?r.pageNavigation.goToPreviousPage:"Previous page";return Pt.createElement(pi.MenuItem,{icon:Pt.createElement(FY,null),isDisabled:t,testId:"page-navigation__previous-menu",onClick:n},i)},I6t=function(e){var t=e.children,n=e.store,r=pP(n).numberOfPages;return t?t({numberOfPages:r}):Pt.createElement(Pt.Fragment,null,r)},z6t=function(e){var t=e.containerRef,n=e.numPages,r=e.store,i=dy(r).currentPage,o=Pt.useRef(i);o.current=i;var s=Pt.useRef(!1),a=function(){s.current=!0},l=function(){s.current=!1},u=function(c){var f=t.current,d=s.current||document.activeElement&&f.contains(document.activeElement);if(f&&d){var h,m,g=c.altKey&&c.key==="ArrowDown"||!c.shiftKey&&!c.altKey&&c.key==="PageDown",b=c.altKey&&c.key==="ArrowUp"||!c.shiftKey&&!c.altKey&&c.key==="PageUp";if(g)return c.preventDefault(),h=r.get("jumpToPage"),m=o.current+1,void(h&&m<n&&h(m));if(b)return c.preventDefault(),void function(){var v=r.get("jumpToPage"),x=o.current-1;v&&x>=0&&v(x)}();if(pi.isMac()?c.metaKey&&!c.ctrlKey:c.altKey)switch(c.key){case"ArrowLeft":c.preventDefault(),function(){var v=r.get("jumpToPreviousDestination");v&&v()}();break;case"ArrowRight":c.preventDefault(),function(){var v=r.get("jumpToNextDestination");v&&v()}()}}};return Pt.useEffect(function(){var c=t.current;if(c)return document.addEventListener("keydown",u),c.addEventListener("mouseenter",a),c.addEventListener("mouseleave",l),function(){document.removeEventListener("keydown",u),c.removeEventListener("mouseenter",a),c.removeEventListener("mouseleave",l)}},[t.current]),Pt.createElement(Pt.Fragment,null)};f4.DownArrowIcon=BY,f4.NextIcon=NY,f4.PreviousIcon=FY,f4.UpArrowIcon=GY,f4.pageNavigationPlugin=function(e){var t=Pt.useMemo(function(){return Object.assign({},{enableShortcuts:!0},e)},[]),n=Pt.useMemo(function(){return pi.createStore()},[]),r=function(a){return Pt.createElement(k6t,Uu({},a,{store:n}))},i=function(a){return Pt.createElement(S6t,Uu({},a,{store:n}))},o=function(a){return Pt.createElement(M6t,Uu({},a,{store:n}))},s=function(a){return Pt.createElement(G6t,Uu({},a,{store:n}))};return{install:function(a){n.update("jumpToDestination",a.jumpToDestination),n.update("jumpToNextDestination",a.jumpToNextDestination),n.update("jumpToNextPage",a.jumpToNextPage),n.update("jumpToPage",a.jumpToPage),n.update("jumpToPreviousDestination",a.jumpToPreviousDestination),n.update("jumpToPreviousPage",a.jumpToPreviousPage)},renderViewer:function(a){var l=a.slot;if(!t.enableShortcuts)return l;var u={children:Pt.createElement(Pt.Fragment,null,Pt.createElement(z6t,{containerRef:a.containerRef,numPages:a.doc.numPages,store:n}),l.children)};return Uu(Uu({},l),u)},onDocumentLoad:function(a){n.update("doc",a.doc),n.update("numberOfPages",a.doc.numPages)},onViewerStateChange:function(a){return n.update("currentPage",a.pageIndex),a},jumpToNextPage:function(){var a=n.get("jumpToNextPage");a&&a()},jumpToPage:function(a){var l=n.get("jumpToPage");l&&l(a)},jumpToPreviousPage:function(){var a=n.get("jumpToPreviousPage");a&&a()},CurrentPageInput:function(){return Pt.createElement(_6t,{store:n})},CurrentPageLabel:function(a){return Pt.createElement(w6t,Uu({},a,{store:n}))},GoToFirstPage:r,GoToFirstPageButton:function(){return Pt.createElement(r,null,function(a){return Pt.createElement(L_e,Uu({},a))})},GoToFirstPageMenuItem:function(a){return Pt.createElement(r,null,function(l){return Pt.createElement(A6t,{isDisabled:l.isDisabled,onClick:function(){l.onClick(),a.onClick()}})})},GoToLastPage:i,GoToLastPageButton:function(){return Pt.createElement(i,null,function(a){return Pt.createElement(V_e,Uu({},a))})},GoToLastPageMenuItem:function(a){return Pt.createElement(i,null,function(l){return Pt.createElement(O6t,{isDisabled:l.isDisabled,onClick:function(){l.onClick(),a.onClick()}})})},GoToNextPage:o,GoToNextPageButton:function(){return Pt.createElement(o,null,function(a){return Pt.createElement(J_e,Uu({},a))})},GoToNextPageMenuItem:function(a){return Pt.createElement(o,null,function(l){return Pt.createElement(B6t,{isDisabled:l.isDisabled,onClick:function(){l.onClick(),a.onClick()}})})},GoToPreviousPage:s,GoToPreviousPageButton:function(){return Pt.createElement(s,null,function(a){return Pt.createElement(j_e,Uu({},a))})},GoToPreviousPageMenuItem:function(a){return Pt.createElement(s,null,function(l){return Pt.createElement(F6t,{isDisabled:l.isDisabled,onClick:function(){l.onClick(),a.onClick()}})})},NumberOfPages:function(a){return Pt.createElement(I6t,Uu({},a,{store:n}))}}}});var hN=ne((Ewn,W_e)=>{"use strict";W_e.exports=H_e()});var U_e=ne(mN=>{"use strict";var ii=Ua();function T6t(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var hn=T6t(Pe()),zY=function(){return hn.createElement(ii.Icon,{ignoreDirection:!0,size:16},hn.createElement("path",{d:`M10.5,0.499c5.523,0,10,4.477,10,10s-4.477,10-10,10s-10-4.477-10-10S4.977,0.499,10.5,0.499z
            M23.5,23.499
            l-5.929-5.929
            M5.5,10.499h10
            M10.5,5.499v10`}))},TY=function(){return hn.createElement(ii.Icon,{ignoreDirection:!0,size:16},hn.createElement("path",{d:`M10.5,0.499c5.523,0,10,4.477,10,10s-4.477,10-10,10s-10-4.477-10-10S4.977,0.499,10.5,0.499z
            M23.5,23.499
            l-5.929-5.929
            M5.5,10.499h10`}))},Kp=function(){return Kp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Kp.apply(this,arguments)},gN=function(e){var t=hn.useState(e.get("scale")||0),n=t[0],r=t[1],i=function(o){r(o)};return hn.useEffect(function(){return e.subscribe("scale",i),function(){e.unsubscribe("scale",i)}},[]),{scale:n}},D6t=function(e){var t=e.children,n=e.store;return(t||function(r){return hn.createElement(hn.Fragment,null,"".concat(Math.round(100*r.scale),"%"))})({scale:gN(n).scale})},R6t={passive:!1},X_e=null,L6t=function(e){var t=e.pagesContainerRef,n=e.store,r=ii.useDebounceCallback(function(o){var s=n.get("zoom");s&&s(o)},40),i=function(o){if(o.ctrlKey){o.preventDefault();var s=o.target.getBoundingClientRect(),a=1-o.deltaY/100,l=o.clientX-s.left,u=o.clientY-s.top,c=n.get("scale"),f=(X_e||(X_e=document.createElementNS("http://www.w3.org/2000/svg","svg"))).createSVGMatrix().translate(l,u).scale(a).translate(-l,-u).scale(c);r(f.a)}};return ii.useIsomorphicLayoutEffect(function(){var o=t.current;if(o)return o.addEventListener("wheel",i,R6t),function(){o.removeEventListener("wheel",i)}},[]),hn.createElement(hn.Fragment,null)},IY=[.1,.2,.3,.4,.5,.6,.7,.8,.9,1,1.1,1.3,1.5,1.7,1.9,2.1,2.4,2.7,3,3.3,3.7,4.1,4.6,5.1,5.7,6.3,7,7.7,8.5,9.4,10],q_e=function(e){return IY.find(function(t){return t>e})||e},$_e=function(e){var t=IY.findIndex(function(n){return n>=e});return t===-1||t===0?e:IY[t-1]},V6t=function(e){var t=e.containerRef,n=e.store,r=function(i){if(!i.shiftKey&&!i.altKey&&(ii.isMac()?i.metaKey:i.ctrlKey)){var o=t.current;if(o&&document.activeElement&&o.contains(document.activeElement)){var s=n.get("zoom");if(s){var a=n.get("scale")||1,l=1;switch(i.key){case"-":l=$_e(a);break;case"=":l=q_e(a);break;case"0":l=1;break;default:l=a}l!==a&&(i.preventDefault(),s(l))}}}};return hn.useEffect(function(){if(t.current)return document.addEventListener("keydown",r),function(){document.removeEventListener("keydown",r)}},[t.current]),hn.createElement(hn.Fragment,null)},J6t=[.5,.75,1,1.25,1.5,2,3,4],j6t={left:0,top:8},K_e=function(e){var t=e.levels,n=t===void 0?J6t:t,r=e.scale,i=e.onZoom,o=hn.useContext(ii.LocalizationContext).l10n,s=hn.useContext(ii.ThemeContext).direction===ii.TextDirection.RightToLeft,a=o&&o.zoom?o.zoom.zoomDocument:"Zoom document";return hn.createElement(ii.Popover,{ariaControlsSuffix:"zoom",ariaHasPopup:"menu",position:ii.Position.BottomCenter,target:function(l){return hn.createElement(ii.MinimalButton,{ariaLabel:a,testId:"zoom__popover-target",onClick:function(){l()}},hn.createElement("span",{className:"rpv-zoom__popover-target"},hn.createElement("span",{"data-testid":"zoom__popover-target-scale",className:ii.classNames({"rpv-zoom__popover-target-scale":!0,"rpv-zoom__popover-target-scale--ltr":!s,"rpv-zoom__popover-target-scale--rtl":s})},Math.round(100*r),"%"),hn.createElement("span",{className:"rpv-zoom__popover-target-arrow"})))},content:function(l){return hn.createElement(ii.Menu,null,Object.keys(ii.SpecialZoomLevel).map(function(u){var c=u;return hn.createElement(ii.MenuItem,{key:c,onClick:function(){l(),i(c)}},function(f){switch(f){case ii.SpecialZoomLevel.ActualSize:return o&&o.zoom?o.zoom.actualSize:"Actual size";case ii.SpecialZoomLevel.PageFit:return o&&o.zoom?o.zoom.pageFit:"Page fit";case ii.SpecialZoomLevel.PageWidth:return o&&o.zoom?o.zoom.pageWidth:"Page width"}}(c))}),hn.createElement(ii.MenuDivider,null),n.map(function(u){return hn.createElement(ii.MenuItem,{key:u,onClick:function(){l(),i(u)}},"".concat(Math.round(100*u),"%"))}))},offset:j6t,closeOnClickOutside:!0,closeOnEscape:!0})},H6t=function(e){var t=e.children,n=e.levels,r=e.store;return(t||function(i){return hn.createElement(K_e,{levels:n,scale:i.scale,onZoom:i.onZoom})})({scale:gN(r).scale,onZoom:function(i){var o=r.get("zoom");o&&o(i)}})},W6t={left:0,top:8},Y_e=function(e){var t=e.enableShortcuts,n=e.onClick,r=hn.useContext(ii.LocalizationContext).l10n,i=r&&r.zoom?r.zoom.zoomIn:"Zoom in",o=t?ii.isMac()?"Meta+=":"Ctrl+=":"";return hn.createElement(ii.Tooltip,{ariaControlsSuffix:"zoom-in",position:ii.Position.BottomCenter,target:hn.createElement(ii.MinimalButton,{ariaKeyShortcuts:o,ariaLabel:i,testId:"zoom__in-button",onClick:n},hn.createElement(zY,null)),content:function(){return i},offset:W6t})},X6t=function(e){var t=e.children,n=e.enableShortcuts,r=e.store,i=gN(r).scale;return(t||Y_e)({enableShortcuts:n,onClick:function(){var o=r.get("zoom");o&&o(q_e(i))}})},q6t=function(e){var t=e.onClick,n=hn.useContext(ii.LocalizationContext).l10n,r=n&&n.zoom?n.zoom.zoomIn:"Zoom in";return hn.createElement(ii.MenuItem,{icon:hn.createElement(zY,null),testId:"zoom__in-menu",onClick:t},r)},$6t={left:0,top:8},Z_e=function(e){var t=e.enableShortcuts,n=e.onClick,r=hn.useContext(ii.LocalizationContext).l10n,i=r&&r.zoom?r.zoom.zoomOut:"Zoom out",o=t?ii.isMac()?"Meta+-":"Ctrl+-":"";return hn.createElement(ii.Tooltip,{ariaControlsSuffix:"zoom-out",position:ii.Position.BottomCenter,target:hn.createElement(ii.MinimalButton,{ariaKeyShortcuts:o,ariaLabel:i,testId:"zoom__out-button",onClick:n},hn.createElement(TY,null)),content:function(){return i},offset:$6t})},K6t=function(e){var t=e.children,n=e.enableShortcuts,r=e.store,i=gN(r).scale;return(t||Z_e)({enableShortcuts:n,onClick:function(){var o=r.get("zoom");o&&o($_e(i))}})},Y6t=function(e){var t=e.onClick,n=hn.useContext(ii.LocalizationContext).l10n,r=n&&n.zoom?n.zoom.zoomOut:"Zoom out";return hn.createElement(ii.MenuItem,{icon:hn.createElement(TY,null),testId:"zoom__out-menu",onClick:t},r)};mN.ZoomInIcon=zY,mN.ZoomOutIcon=TY,mN.zoomPlugin=function(e){var t=hn.useMemo(function(){return Object.assign({},{enableShortcuts:!0},e)},[]),n=hn.useMemo(function(){return ii.createStore({})},[]),r=function(s){return hn.createElement(X6t,Kp({enableShortcuts:t.enableShortcuts},s,{store:n}))},i=function(s){return hn.createElement(K6t,Kp({enableShortcuts:t.enableShortcuts},s,{store:n}))},o=function(s){return hn.createElement(H6t,Kp({},s,{store:n}))};return{renderViewer:function(s){var a=s.slot;if(!t.enableShortcuts)return a;var l={children:hn.createElement(hn.Fragment,null,hn.createElement(V6t,{containerRef:s.containerRef,store:n}),hn.createElement(L6t,{pagesContainerRef:s.pagesContainerRef,store:n}),a.children)};return Kp(Kp({},a),l)},install:function(s){n.update("zoom",s.zoom)},onViewerStateChange:function(s){return n.update("scale",s.scale),s},zoomTo:function(s){var a=n.get("zoom");a&&a(s)},CurrentScale:function(s){return hn.createElement(D6t,Kp({},s,{store:n}))},ZoomIn:r,ZoomInButton:function(){return hn.createElement(r,null,function(s){return hn.createElement(Y_e,Kp({},s))})},ZoomInMenuItem:function(s){return hn.createElement(r,null,function(a){return hn.createElement(q6t,{onClick:function(){a.onClick(),s.onClick()}})})},ZoomOut:i,ZoomOutButton:function(){return hn.createElement(i,null,function(s){return hn.createElement(Z_e,Kp({},s))})},ZoomOutMenuItem:function(s){return hn.createElement(i,null,function(a){return hn.createElement(Y6t,{onClick:function(){a.onClick(),s.onClick()}})})},Zoom:o,ZoomPopover:function(s){return hn.createElement(o,null,function(a){return hn.createElement(K_e,Kp({levels:s?.levels},a))})}}}});var DY=ne((Bwn,Q_e)=>{"use strict";Q_e.exports=U_e()});var _be=ne(Qa=>{"use strict";var Gg=Ua();function m3t(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var gbe,Xi=m3t(Pe()),vbe=function(){return Xi.createElement(Gg.Icon,{size:16},Xi.createElement("path",{d:`M11.5,5.5v-2C11.5,2.672,12.172,2,13,2s1.5,0.672,1.5,1.5v2 M14.5,11.5v-6C14.5,4.672,15.172,4,16,4
            c0.828,0,1.5,0.672,1.5,1.5v3 M17.5,13V8.5C17.5,7.672,18.172,7,19,7s1.5,0.672,1.5,1.5v10c0,2.761-2.239,5-5,5h-3.335
            c-1.712-0.001-3.305-0.876-4.223-2.321C6.22,18.467,4.083,14,4.083,14c-0.378-0.545-0.242-1.292,0.303-1.67
            c0.446-0.309,1.044-0.281,1.458,0.07L8.5,15.5v-10C8.5,4.672,9.172,4,10,4s1.5,0.672,1.5,1.5v6`}))},oZ=function(){return oZ=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},oZ.apply(this,arguments)};Qa.SelectionMode=void 0,(gbe=Qa.SelectionMode||(Qa.SelectionMode={})).Hand="Hand",gbe.Text="Text";var sZ=function(){return Xi.createElement(Gg.Icon,{size:16},Xi.createElement("path",{d:`M13.675,11.671l2.941-2.941c0.195-0.196,0.195-0.512-0.001-0.707C16.563,7.971,16.5,7.931,16.43,7.906
            L4.168,3.527C3.908,3.434,3.622,3.57,3.529,3.83c-0.039,0.109-0.039,0.228,0,0.336l4.379,12.262
            c0.093,0.26,0.379,0.396,0.639,0.303c0.07-0.025,0.133-0.065,0.185-0.117l2.943-2.943l6.146,6.146c0.195,0.195,0.512,0.195,0.707,0
            l1.293-1.293c0.195-0.195,0.195-0.512,0-0.707L13.675,11.671z`}))},ybe=function(e){var t=e.children,n=e.mode,r=e.onClick,i=Xi.useContext(Gg.LocalizationContext).l10n,o="",s=Xi.createElement(sZ,null);switch(n){case Qa.SelectionMode.Hand:o=i&&i.selectionMode?i.selectionMode.handTool:"Hand tool",s=Xi.createElement(vbe,null);break;case Qa.SelectionMode.Text:default:o=i&&i.selectionMode?i.selectionMode.textSelectionTool:"Text selection tool",s=Xi.createElement(sZ,null)}return t({icon:s,label:o,onClick:r})},g3t={left:0,top:8},xbe=function(e){var t=e.isSelected,n=e.mode,r=e.onClick,i="";switch(n){case Qa.SelectionMode.Hand:i="selection-mode__hand-button";break;case Qa.SelectionMode.Text:default:i="selection-mode__text-button"}return Xi.createElement(ybe,{mode:n,onClick:r},function(o){return Xi.createElement(Gg.Tooltip,{ariaControlsSuffix:"selection-mode-switch",position:Gg.Position.BottomCenter,target:Xi.createElement(Gg.MinimalButton,{ariaLabel:o.label,isSelected:t,testId:i,onClick:o.onClick},o.icon),content:function(){return o.label},offset:g3t})})},v3t=function(e){var t=e.children,n=e.mode,r=e.store,i=n===r.get("selectionMode");return(t||function(o){return Xi.createElement(xbe,{isSelected:i,mode:o.mode,onClick:o.onClick})})({isSelected:i,mode:n,onClick:function(){return r.update("selectionMode",n)}})},y3t=function(e){var t=e.isSelected,n=e.mode,r=e.onClick,i="";switch(n){case Qa.SelectionMode.Hand:i="selection-mode__hand-menu";break;case Qa.SelectionMode.Text:default:i="selection-mode__text-menu"}return Xi.createElement(ybe,{mode:n,onClick:r},function(o){return Xi.createElement(Gg.MenuItem,{checked:t,icon:o.icon,testId:i,onClick:o.onClick},o.label)})},x3t=function(e){var t=e.store,n=Xi.useRef(null),r=Xi.useState(Qa.SelectionMode.Text),i=r[0],o=r[1],s=Xi.useRef({top:0,left:0,x:0,y:0}),a=function(d){var h=n.current;h&&(h.scrollTop=s.current.top-(d.clientY-s.current.y),h.scrollLeft=s.current.left-(d.clientX-s.current.x))},l=function(){var d=n.current;d&&(d.classList.add("rpv-selection-mode__grab"),d.classList.remove("rpv-selection-mode__grabbing"),document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",l))},u=function(d){var h=n.current;h&&i!==Qa.SelectionMode.Text&&(h.classList.remove("rpv-selection-mode__grab"),h.classList.add("rpv-selection-mode__grabbing"),d.preventDefault(),d.stopPropagation(),s.current={left:h.scrollLeft,top:h.scrollTop,x:d.clientX,y:d.clientY},document.addEventListener("mousemove",a),document.addEventListener("mouseup",l))},c=function(d){n.current=d()},f=function(d){o(d)};return Xi.useEffect(function(){var d=n.current;if(d)return i===Qa.SelectionMode.Hand?d.classList.add("rpv-selection-mode__grab"):d.classList.remove("rpv-selection-mode__grab"),d.addEventListener("mousedown",u),function(){d.removeEventListener("mousedown",u)}},[i]),Xi.useEffect(function(){return t.subscribe("getPagesContainer",c),t.subscribe("selectionMode",f),function(){t.unsubscribe("getPagesContainer",c),t.unsubscribe("selectionMode",f)}},[]),Xi.createElement(Xi.Fragment,null)};Qa.HandToolIcon=vbe,Qa.TextSelectionIcon=sZ,Qa.selectionModePlugin=function(e){var t=Xi.useMemo(function(){return Gg.createStore()},[]),n=function(r){return Xi.createElement(v3t,oZ({},r,{store:t}))};return{install:function(r){t.update("selectionMode",e&&e.selectionMode?e.selectionMode:Qa.SelectionMode.Text),t.update("getPagesContainer",r.getPagesContainer)},renderViewer:function(r){var i=r.slot;return i.subSlot&&i.subSlot.children&&(i.subSlot.children=Xi.createElement(Xi.Fragment,null,Xi.createElement(x3t,{store:t}),i.subSlot.children)),i},SwitchSelectionMode:n,SwitchSelectionModeButton:function(r){return Xi.createElement(n,{mode:r.mode},function(i){return Xi.createElement(xbe,{isSelected:i.isSelected,mode:i.mode,onClick:function(){i.onClick()}})})},SwitchSelectionModeMenuItem:function(r){return Xi.createElement(n,{mode:r.mode},function(i){return Xi.createElement(y3t,{isSelected:i.isSelected,mode:i.mode,onClick:function(){i.onClick(),r.onClick()}})})}}}});var wbe=ne((Vwn,bbe)=>{"use strict";bbe.exports=_be()});var kbe=ne(QN=>{"use strict";var qi=Ua();function _3t(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var vn=_3t(Pe()),aZ=function(){return vn.createElement(qi.Icon,{size:16},vn.createElement("path",{d:"M11.5 23.499L11.5 14.499"}),vn.createElement("path",{d:"M7.5 18.499L11.5 14.499 15.5 18.499"}),vn.createElement("path",{d:"M11.5 1.499L11.5 10.499"}),vn.createElement("path",{d:"M7.5 6.499L11.5 10.499 15.5 6.499"}),vn.createElement("path",{d:"M20.5 12.499L1.5 12.499"}))},lZ=function(){return vn.createElement(qi.Icon,{size:16},vn.createElement("path",{d:"M0.5 12L23.5 12"}),vn.createElement("path",{d:"M11.5 1L11.5 23"}),vn.createElement("path",{d:"M8.5 4L11.5 1 14.5 4"}),vn.createElement("path",{d:"M20.5 9L23.5 12 20.5 15"}),vn.createElement("path",{d:"M3.5 15L0.5 12 3.5 9"}),vn.createElement("path",{d:"M14.5 20L11.5 23 8.5 20"}))},eG=function(){return eG=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},eG.apply(this,arguments)},b3t={left:0,top:8},Pbe=function(e){var t=e.enableShortcuts,n=e.onClick,r=vn.useContext(qi.LocalizationContext).l10n,i=r&&r.fullScreen?r.fullScreen.enterFullScreen:"Full screen",o=t?qi.isMac()?"Meta+Ctrl+F":"F11":"";return vn.createElement(qi.Tooltip,{ariaControlsSuffix:"full-screen-enter",position:qi.Position.BottomCenter,target:vn.createElement(qi.MinimalButton,{ariaKeyShortcuts:o,ariaLabel:i,isDisabled:!qi.isFullScreenEnabled(),testId:"full-screen__enter-button",onClick:n},vn.createElement(lZ,null)),content:function(){return i},offset:b3t})},w3t={left:0,top:8},P3t=function(e){var t=e.onClick,n=vn.useContext(qi.LocalizationContext).l10n,r=n&&n.fullScreen?n.fullScreen.exitFullScreen:"Exit full screen";return vn.createElement(qi.Tooltip,{ariaControlsSuffix:"full-screen-exit",position:qi.Position.BottomCenter,target:vn.createElement(qi.MinimalButton,{ariaKeyShortcuts:"Esc",ariaLabel:r,testId:"full-screen__exit-button-with-tooltip",onClick:t},vn.createElement(aZ,null)),content:function(){return r},offset:w3t})},uZ=function(e,t){var n=vn.useState(t.get("fullScreenMode")),r=n[0],i=n[1],o=vn.useCallback(function(s){i(s)},[]);return vn.useEffect(function(){return t.subscribe("fullScreenMode",o),function(){t.unsubscribe("fullScreenMode",o)}},[]),{enterFullScreen:function(){var s=t.get("getPagesContainer");if(s){var a=e(s());t.get("enterFullScreenMode")(a)}},exitFullScreen:function(){t.get("exitFullScreenMode")()},isFullScreen:r===qi.FullScreenMode.Entering||r===qi.FullScreenMode.EnteredCompletely}},k3t=function(e){var t=e.children,n=e.enableShortcuts,r=e.getFullScreenTarget,i=e.store,o=uZ(r,i),s=o.enterFullScreen,a=o.exitFullScreen,l=o.isFullScreen;return(t||function(u){return l?vn.createElement(P3t,{onClick:u.onClick}):vn.createElement(Pbe,{enableShortcuts:n,onClick:u.onClick})})({onClick:l?a:s})},A3t=function(e){var t=e.onClick,n=vn.useContext(qi.LocalizationContext).l10n,r=n&&n.fullScreen?n.fullScreen.enterFullScreen:"Full screen";return vn.createElement(qi.MenuItem,{icon:vn.createElement(lZ,null),isDisabled:!qi.isFullScreenEnabled(),testId:"full-screen__enter-menu",onClick:t},r)},C3t=function(e){var t=e.onClick,n=vn.useContext(qi.LocalizationContext).l10n,r=vn.useContext(qi.ThemeContext).direction===qi.TextDirection.RightToLeft,i=n&&n.fullScreen?n.fullScreen.exitFullScreen:"Exit full screen";return vn.createElement("div",{className:qi.classNames({"rpv-full-screen__exit-button":!0,"rpv-full-screen__exit-button--ltr":!r,"rpv-full-screen__exit-button--rtl":r})},vn.createElement(qi.MinimalButton,{ariaLabel:i,testId:"full-screen__exit-button",onClick:t},vn.createElement(aZ,null)))},S3t=function(e){var t=e.children,n=e.getFullScreenTarget,r=e.store,i=uZ(n,r),o=i.enterFullScreen,s=i.exitFullScreen,a=i.isFullScreen;return a&&(t||function(l){return vn.createElement(C3t,{onClick:l.onClick})})({onClick:a?s:o})},O3t=function(e){var t=e.store,n=e.onEnterFullScreen,r=e.onExitFullScreen,i=vn.useState(t.get("fullScreenMode")),o=i[0],s=i[1],a=vn.useCallback(function(l){s(l)},[]);return vn.useEffect(function(){switch(o){case qi.FullScreenMode.EnteredCompletely:n(t.get("zoom"));break;case qi.FullScreenMode.Exited:r(t.get("zoom"))}},[o]),vn.useEffect(function(){return t.subscribe("fullScreenMode",a),function(){t.unsubscribe("fullScreenMode",a)}},[]),(o===qi.FullScreenMode.Entering||o===qi.FullScreenMode.Entered)&&vn.createElement("div",{className:"rpv-full-screen__overlay"},vn.createElement(qi.Spinner,null))},E3t=function(e){var t=e.containerRef,n=e.getFullScreenTarget,r=e.store,i=uZ(n,r).enterFullScreen,o=function(s){if(!s.shiftKey&&!s.altKey&&(qi.isMac()?s.metaKey&&s.ctrlKey&&s.key==="f":s.key==="F11")){var a=t.current;a&&document.activeElement&&a.contains(document.activeElement)&&(s.preventDefault(),i())}};return vn.useEffect(function(){if(t.current)return document.addEventListener("keydown",o),function(){document.removeEventListener("keydown",o)}},[t.current]),vn.createElement(vn.Fragment,null)};QN.ExitFullScreenIcon=aZ,QN.FullScreenIcon=lZ,QN.fullScreenPlugin=function(e){var t=e?.getFullScreenTarget||function(s){return s},n=vn.useMemo(function(){return Object.assign({},{enableShortcuts:!0,onEnterFullScreen:function(){},onExitFullScreen:function(){}},e)},[]),r=vn.useMemo(function(){return qi.createStore({enterFullScreenMode:function(){},exitFullScreenMode:function(){},fullScreenMode:qi.FullScreenMode.Normal,zoom:function(){}})},[]),i=function(s){return vn.createElement(k3t,eG({},s,{enableShortcuts:n.enableShortcuts,getFullScreenTarget:t,store:r}))},o=function(){return vn.createElement(S3t,{getFullScreenTarget:t,store:r},e?.renderExitFullScreenButton)};return{install:function(s){r.update("enterFullScreenMode",s.enterFullScreenMode),r.update("exitFullScreenMode",s.exitFullScreenMode),r.update("getPagesContainer",s.getPagesContainer),r.update("zoom",s.zoom)},onViewerStateChange:function(s){return r.update("fullScreenMode",s.fullScreenMode),s},renderViewer:function(s){var a=s.slot;return a.subSlot&&(a.subSlot.children=vn.createElement(vn.Fragment,null,n.enableShortcuts&&vn.createElement(E3t,{containerRef:s.containerRef,getFullScreenTarget:t,store:r}),vn.createElement(O3t,{store:r,onEnterFullScreen:n.onEnterFullScreen,onExitFullScreen:n.onExitFullScreen}),vn.createElement(o,null),a.subSlot.children)),a},EnterFullScreen:i,EnterFullScreenButton:function(){return vn.createElement(i,null,function(s){return vn.createElement(Pbe,eG({enableShortcuts:n.enableShortcuts},s))})},EnterFullScreenMenuItem:function(s){return vn.createElement(i,null,function(a){return vn.createElement(A3t,{onClick:function(){a.onClick(),s.onClick()}})})}}}});var Cbe=ne((jwn,Abe)=>{"use strict";Abe.exports=kbe()});var Mbe=ne(cZ=>{"use strict";var Fg=Ua();function M3t(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var Ws=M3t(Pe()),dZ=function(){return Ws.createElement(Fg.Icon,{size:16},Ws.createElement("path",{d:"M5.5,11.5c-.275,0-.341.159-.146.354l6.292,6.293a.5.5,0,0,0,.709,0l6.311-6.275c.2-.193.13-.353-.145-.355L15.5,11.5V1.5a1,1,0,0,0-1-1h-5a1,1,0,0,0-1,1V11a.5.5,0,0,1-.5.5Z"}),Ws.createElement("path",{d:"M23.5,18.5v4a1,1,0,0,1-1,1H1.5a1,1,0,0,1-1-1v-4"}))},tG=function(){return tG=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},tG.apply(this,arguments)},B3t={left:0,top:8},Obe=function(e){var t=e.onClick,n=Ws.useContext(Fg.LocalizationContext).l10n,r=n&&n.download?n.download.download:"Download";return Ws.createElement(Fg.Tooltip,{ariaControlsSuffix:"get-file",position:Fg.Position.BottomCenter,target:Ws.createElement(Fg.MinimalButton,{ariaLabel:r,testId:"get-file__download-button",onClick:t},Ws.createElement(dZ,null)),content:function(){return r},offset:B3t})},Ebe=function(e,t){var n=document.createElement("a");n.style.display="none",n.href=e,n.setAttribute("download",t),document.body.appendChild(n),n.click(),document.body.removeChild(n)},Sbe=function(e,t,n){var r=URL.createObjectURL(new Blob([e],{type:n}));Ebe(r,t),r&&URL.revokeObjectURL(r)},N3t=function(e,t){e.getData().then(function(n){/iphone|ipod|ipad/i.test(navigator.userAgent)&&!/CriOS/i.test(navigator.userAgent)?Sbe(n,t,"application/octet-stream"):/iphone|ipod|ipad/i.test(navigator.userAgent)&&/CriOS/i.test(navigator.userAgent)?Ebe("data:application/pdf;base64,".concat(function(r){return btoa(Array(r.length).fill("").map(function(i,o){return String.fromCharCode(r[o])}).join(""))}(n)),t):Sbe(n,t,"application/pdf")})},G3t=function(e){var t=e.children,n=e.fileNameGenerator,r=e.store,i=Ws.useState(r.get("file")),o=i[0],s=i[1],a=Ws.useState(r.get("doc")),l=a[0],u=a[1],c=function(d){u(d)},f=function(d){s(d)};return Ws.useEffect(function(){return r.subscribe("doc",c),r.subscribe("file",f),function(){r.subscribe("doc",c),r.unsubscribe("file",f)}},[]),(t||function(d){return Ws.createElement(Obe,{onClick:d.onClick})})({onClick:function(){l&&o&&N3t(l,n(o))}})},F3t=function(e){var t=e.onClick,n=Ws.useContext(Fg.LocalizationContext).l10n,r=n&&n.download?n.download.download:"Download";return Ws.createElement(Fg.MenuItem,{icon:Ws.createElement(dZ,null),testId:"get-file__download-menu",onClick:t},r)};cZ.DownloadIcon=dZ,cZ.getFilePlugin=function(e){var t=Ws.useMemo(function(){return Fg.createStore({})},[]),n=function(i){return i.name?(o=i.name,(s=o.split("/").pop())?s.split("#")[0].split("?")[0]:o):"document.pdf";var o,s},r=function(i){return Ws.createElement(G3t,tG({},i,{fileNameGenerator:e&&e.fileNameGenerator||n,store:t}))};return{onDocumentLoad:function(i){t.update("doc",i.doc),t.update("file",i.file)},Download:r,DownloadButton:function(){return Ws.createElement(r,null,function(i){return Ws.createElement(Obe,tG({},i))})},DownloadMenuItem:function(i){return Ws.createElement(r,null,function(o){return Ws.createElement(F3t,{onClick:function(){o.onClick(),i.onClick()}})})}}}});var Nbe=ne((Wwn,Bbe)=>{"use strict";Bbe.exports=Mbe()});var Fbe=ne(pZ=>{"use strict";var uh=Ua();function I3t(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var Qi=I3t(Pe()),fZ=function(){return Qi.createElement(uh.Icon,{size:16},Qi.createElement("path",{d:"M18.5,7.5c.275,0,.341-.159.146-.354L12.354.854a.5.5,0,0,0-.708,0L5.354,7.147c-.2.195-.129.354.146.354h3v10a1,1,0,0,0,1,1h5a1,1,0,0,0,1-1V7.5Z"}),Qi.createElement("path",{d:"M23.5,18.5v4a1,1,0,0,1-1,1H1.5a1,1,0,0,1-1-1v-4"}))},xP=function(){return xP=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},xP.apply(this,arguments)},Gbe=function(e){var t=Qi.useRef(),n=function(){var i=t.current;i&&(i.click(),e.get("triggerOpenFile")&&e.update("triggerOpenFile",!1))},r=function(i){i&&n()};return Qi.useEffect(function(){return e.subscribe("triggerOpenFile",r),function(){e.unsubscribe("triggerOpenFile",r)}},[]),{inputRef:t,openFile:n}},z3t={left:0,top:8},T3t=function(e){var t=e.enableShortcuts,n=e.store,r=e.onClick,i=Qi.useContext(uh.LocalizationContext).l10n,o=i&&i.open?i.open.openFile:"Open file",s=Gbe(n),a=s.inputRef,l=s.openFile,u=t?uh.isMac()?"Meta+O":"Ctrl+O":"";return Qi.createElement(uh.Tooltip,{ariaControlsSuffix:"open",position:uh.Position.BottomCenter,target:Qi.createElement("div",{className:"rpv-open__input-wrapper"},Qi.createElement("input",{accept:".pdf",ref:a,className:"rpv-open__input",multiple:!1,tabIndex:-1,title:"",type:"file",onChange:r}),Qi.createElement(uh.MinimalButton,{ariaKeyShortcuts:u,ariaLabel:o,testId:"open__button",onClick:l},Qi.createElement(fZ,null))),content:function(){return o},offset:z3t})},D3t=function(e){var t=e.children,n=e.enableShortcuts,r=e.store;return(t||function(i){return Qi.createElement(T3t,{enableShortcuts:n,store:r,onClick:i.onClick})})({onClick:function(i){var o=i.target.files;if(o&&o.length){var s=r.get("openFile");s&&s(o[0])}}})},R3t=function(e){var t=e.store,n=e.onClick,r=Qi.useContext(uh.LocalizationContext).l10n,i=r&&r.open?r.open.openFile:"Open file",o=Gbe(t),s=o.inputRef,a=o.openFile;return Qi.createElement(uh.MenuItem,{icon:Qi.createElement(fZ,null),testId:"open__menu",onClick:a},Qi.createElement("div",{className:"rpv-open__input-wrapper"},Qi.createElement("input",{accept:".pdf",ref:s,className:"rpv-open__input",multiple:!1,tabIndex:-1,title:"",type:"file",onChange:n}),i))},L3t=function(e){var t=e.containerRef,n=e.store,r=function(i){if(!i.shiftKey&&!i.altKey&&i.key==="o"&&(uh.isMac()?i.metaKey:i.ctrlKey)){var o=t.current;o&&document.activeElement&&o.contains(document.activeElement)&&(i.preventDefault(),n.update("triggerOpenFile",!0))}};return Qi.useEffect(function(){if(t.current)return document.addEventListener("keydown",r),function(){document.removeEventListener("keydown",r)}},[t.current]),Qi.createElement(Qi.Fragment,null)};pZ.OpenFileIcon=fZ,pZ.openPlugin=function(e){var t=Qi.useMemo(function(){return Object.assign({},{enableShortcuts:!0},e)},[]),n=Qi.useMemo(function(){return uh.createStore({})},[]),r=function(i){return Qi.createElement(D3t,xP({enableShortcuts:t.enableShortcuts},i,{store:n}))};return{install:function(i){n.update("openFile",i.openFile)},renderViewer:function(i){var o=i.slot,s={children:Qi.createElement(Qi.Fragment,null,t.enableShortcuts&&Qi.createElement(L3t,{containerRef:i.containerRef,store:n}),o.children)};return xP(xP({},o),s)},Open:r,OpenButton:function(){return Qi.createElement(r,null)},OpenMenuItem:function(){return Qi.createElement(r,null,function(i){return Qi.createElement(R3t,{store:n,onClick:i.onClick})})}}}});var zbe=ne((qwn,Ibe)=>{"use strict";Ibe.exports=Fbe()});var Dbe=ne(fy=>{"use strict";var Ps=Ua(),V3t=Pe(),J3t=Yl();function j3t(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var el,Yt=j3t(V3t),hZ=function(){return Yt.createElement(Ps.Icon,{size:16},Yt.createElement("path",{d:`M7.5,19.499h9 M7.5,16.499h9 M5.5,16.5h-3c-1.103-0.003-1.997-0.897-2-2v-6c0.003-1.103,0.897-1.997,2-2h19
            c1.103,0.003,1.997,0.897,2,2v6c-0.003,1.103-0.897,1.997-2,2h-3
            M5.5,4.5v-4h9.586c0.265,0,0.52,0.105,0.707,0.293l2.414,2.414
            C18.395,3.394,18.5,3.649,18.5,3.914V4.5
            M18.5,22.5c0,0.552-0.448,1-1,1h-11c-0.552,0-1-0.448-1-1v-9h13V22.5z
            M3.5,8.499
            c0.552,0,1,0.448,1,1s-0.448,1-1,1s-1-0.448-1-1S2.948,8.499,3.5,8.499z
            M14.5,0.499v4h4`}))},v4=function(){return v4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},v4.apply(this,arguments)},H3t={left:0,top:8},Tbe=function(e){var t=e.enableShortcuts,n=e.onClick,r=Yt.useContext(Ps.LocalizationContext).l10n,i=r&&r.print?r.print.print:"Print",o=t?Ps.isMac()?"Meta+P":"Ctrl+P":"";return Yt.createElement(Ps.Tooltip,{ariaControlsSuffix:"print",position:Ps.Position.BottomCenter,target:Yt.createElement(Ps.MinimalButton,{ariaKeyShortcuts:o,ariaLabel:i,testId:"print__button",onClick:n},Yt.createElement(hZ,null)),content:function(){return i},offset:H3t})};(function(e){e.CheckingPermission="CheckingPermission",e.Inactive="Inactive",e.Preparing="Preparing",e.Cancelled="Cancelled",e.Ready="Ready"})(el||(el={}));var W3t=function(e){var t=e.children,n=e.enableShortcuts,r=e.store;return(t||Tbe)({enableShortcuts:n,onClick:function(){r.update("printStatus",el.CheckingPermission)}})},X3t=function(e){var t=e.doc,n=e.store,r=Yt.useContext(Ps.LocalizationContext).l10n,i=Yt.useState(!0),o=i[0],s=i[1];return Yt.useEffect(function(){t.getPermissions().then(function(a){a===null||a.includes(4)||a.includes(2048)?n.update("printStatus",el.Preparing):s(!1)})},[]),o?Yt.createElement(Yt.Fragment,null):Yt.createElement(Ps.Modal,{ariaControlsSuffix:"print-permission",closeOnClickOutside:!1,closeOnEscape:!1,content:function(a){return Yt.createElement(Yt.Fragment,null,Yt.createElement("div",{className:"rpv-print__permission-body"},r&&r.print?r.print.disallowPrint:"The document does not allow to print"),Yt.createElement("div",{className:"rpv-print__permission-footer"},Yt.createElement(Ps.Button,{onClick:function(){a(),n.update("printStatus",el.Cancelled)}},r&&r.print?r.print.close:"Close")))},isOpened:!0})},q3t=function(e){var t=e.numLoadedPages,n=e.numPages,r=e.onCancel,i=Yt.useContext(Ps.LocalizationContext).l10n,o=Yt.useContext(Ps.ThemeContext).direction===Ps.TextDirection.RightToLeft,s=Math.floor(100*t/n);return Yt.createElement("div",{className:"rpv-print__progress"},Yt.createElement("div",{className:Ps.classNames({"rpv-print__progress-body":!0,"rpv-print__progress-body--rtl":o})},Yt.createElement("div",{className:"rpv-print__progress-message"},i&&i.print?i.print.preparingDocument:"Preparing document ..."),Yt.createElement("div",{className:"rpv-print__progress-bar"},Yt.createElement(Ps.ProgressBar,{progress:s})),Yt.createElement(Ps.Button,{onClick:r},i&&i.print?i.print.cancel:"Cancel")))},$3t=function(e){var t=e.canvas,n=e.page,r=e.pageHeight,i=e.pageIndex,o=e.pageWidth,s=e.rotation,a=e.onLoad,l=Ps.useIsMounted(),u=Yt.useRef(),c=Yt.useState(""),f=c[0],d=c[1],h=Yt.useMemo(function(){return typeof process<"u"&&process.env.JEST_WORKER_ID!==void 0},[]);return Yt.useEffect(function(){var m=u.current;m&&m.cancel();var g=150/72;t.height=Math.floor(r*g),t.width=Math.floor(o*g);var b=t.getContext("2d");b.save(),b.fillStyle="rgb(255, 255, 255)",b.fillRect(0,0,t.width,t.height),b.restore();var v=n.getViewport({rotation:s,scale:1});u.current=n.render({canvasContext:b,intent:"print",transform:[g,0,0,g,0,0],viewport:v}),u.current.promise.then(function(){"toBlob"in t&&"createObjectURL"in URL?t.toBlob(function(x){l.current&&d(URL.createObjectURL(x)),h&&a()}):(l.current&&d(t.toDataURL()),h&&a())},function(){})},[]),f&&Yt.createElement("div",{className:"rpv-print__page"},Yt.createElement("img",{"data-testid":"print__thumbnail-".concat(i),src:f,onLoad:function(){h||a()}}))},K3t=function(e){var t=e.canvas,n=e.doc,r=e.pageIndex,i=e.pageRotation,o=e.pageSize,s=e.rotation,a=e.shouldRender,l=e.onLoad,u=Ps.useIsMounted(),c=Yt.useState(null),f=c[0],d=c[1],h=Math.abs(s+i)%180==0;Yt.useEffect(function(){a&&Ps.getPage(n,r).then(function(g){u.current&&d(g)})},[a]);var m=(o.rotation+s+i)%360;return f&&Yt.createElement($3t,{canvas:t,page:f,pageHeight:h?o.pageHeight:o.pageWidth,pageIndex:r,pageWidth:h?o.pageWidth:o.pageHeight,rotation:m,onLoad:l})},Y3t=function(e){var t=e.doc,n=e.numLoadedPages,r=e.pagesRotation,i=e.pageSizes,o=e.printPages,s=e.printStatus,a=e.rotation,l=e.onCancel,u=e.onLoad,c=Yt.useMemo(function(){return document.createElement("canvas")},[]),f=Yt.useMemo(function(){var m=document.querySelector(".rpv-print__zone");if(m)return m;var g=document.createElement("div");return g.classList.add("rpv-print__zone"),g.setAttribute("data-testid","print__zone"),document.body.appendChild(g),g},[]);Yt.useEffect(function(){s===el.Ready&&(document.documentElement.classList.add("rpv-print__html-printing"),document.body.classList.add("rpv-print__body-printing"),window.print());var m=function(){if(s===el.Ready){document.documentElement.classList.remove("rpv-print__html-printing"),document.body.classList.remove("rpv-print__body-printing");var g=document.querySelectorAll(".rpv-print__zone");g&&g.forEach(function(b){b.parentElement.removeChild(b)}),c.height=0,c.width=0,document.removeEventListener("mousemove",m),l()}};return document.addEventListener("mousemove",m),function(){return document.removeEventListener("mousemove",m)}},[s]);var d=i[0].pageHeight,h=i[0].pageWidth;return J3t.createPortal(Yt.createElement(Yt.Fragment,null,o.map(function(m,g){return Yt.createElement(K3t,{key:m,canvas:c,doc:t,pageIndex:m,pageRotation:r.has(m)?r.get(m):0,pageSize:i[m],rotation:a,shouldRender:g===n,onLoad:u})}),Yt.createElement("style",{dangerouslySetInnerHTML:{__html:"@page { size: ".concat(h,"pt ").concat(d,"pt }")}})),f)},Z3t=function(e){var t=e.doc,n=e.pagesRotation,r=e.pageSizes,i=e.renderProgressBar,o=e.rotation,s=e.setPages,a=e.store,l=Yt.useState(el.Inactive),u=l[0],c=l[1],f=Yt.useState(0),d=f[0],h=f[1],m=Yt.useMemo(function(){var x=t.numPages;return s(t).filter(function(y){return y>=0&&y<x})},[t,s]),g=m.length,b=function(){h(0),c(el.Inactive)},v=function(x){return c(x)};return Yt.useEffect(function(){return a.subscribe("printStatus",v),function(){a.unsubscribe("printStatus",v)}},[]),Yt.createElement(Yt.Fragment,null,u===el.CheckingPermission&&Yt.createElement(X3t,{doc:t,store:a}),u===el.Preparing&&(i?i(d,g,b):Yt.createElement(q3t,{numLoadedPages:d,numPages:g,onCancel:b})),(u===el.Preparing||u===el.Ready)&&d<=g&&Yt.createElement(Y3t,{doc:t,numLoadedPages:d,pagesRotation:n,pageSizes:r,printPages:m,printStatus:u,rotation:o,onCancel:b,onLoad:function(){var x=d+1;x<=g&&(h(x),x===g&&c(el.Ready))}}))},U3t=function(e){var t=e.onClick,n=Yt.useContext(Ps.LocalizationContext).l10n,r=n&&n.print?n.print.print:"Print";return Yt.createElement(Ps.MenuItem,{icon:Yt.createElement(hZ,null),testId:"print__menu",onClick:t},r)},Q3t=function(e){var t=e.containerRef,n=e.store,r=function(i){if(!i.shiftKey&&!i.altKey&&i.key==="p"&&(Ps.isMac()?i.metaKey:i.ctrlKey)){var o=t.current;o&&document.activeElement&&o.contains(document.activeElement)&&(i.preventDefault(),n.update("printStatus",el.Preparing))}};return Yt.useEffect(function(){if(t.current)return document.addEventListener("keydown",r),function(){document.removeEventListener("keydown",r)}},[t.current]),Yt.createElement(Yt.Fragment,null)};fy.PrintIcon=hZ,fy.getAllPagesNumbers=function(e){return Array(e.numPages).fill(0).map(function(t,n){return n})},fy.getCustomPagesNumbers=function(e){return function(t){var n,r=[];return e.replace(/\s+/g,"").split(",").forEach(function(i){var o,s,a=i.split("-").map(function(l){return parseInt(l,10)}).filter(function(l){return Number.isInteger(l)});a.length===1?r.push(a[0]-1):a.length===2&&r.push.apply(r,(o=a[0]-1,s=a[1]-1,Array(s-o+1).fill(0).map(function(l,u){return o+u})))}),(n=r,n.filter(function(i){return n.indexOf(i)===n.lastIndexOf(i)})).filter(function(i){return i>=0&&i<t.numPages})}},fy.getEvenPagesNumbers=function(e){return Array(e.numPages).fill(0).map(function(t,n){return n}).filter(function(t){return(t+1)%2==0})},fy.getOddPagesNumbers=function(e){return Array(e.numPages).fill(0).map(function(t,n){return n}).filter(function(t){return(t+1)%2==1})},fy.printPlugin=function(e){var t=Yt.useMemo(function(){return Object.assign({},{enableShortcuts:!0,setPages:function(i){return Array(i.numPages).fill(0).map(function(o,s){return s})}},e)},[]),n=Yt.useMemo(function(){return Ps.createStore({printStatus:el.Inactive})},[]),r=function(i){return Yt.createElement(W3t,v4({enableShortcuts:t.enableShortcuts},i,{store:n}))};return{print:function(){n.update("printStatus",el.CheckingPermission)},renderViewer:function(i){var o=i.slot,s={children:Yt.createElement(Yt.Fragment,null,t.enableShortcuts&&Yt.createElement(Q3t,{containerRef:i.containerRef,store:n}),Yt.createElement(Z3t,{doc:i.doc,pagesRotation:i.pagesRotation,pageSizes:i.pageSizes,renderProgressBar:e?.renderProgressBar,rotation:i.rotation,setPages:t.setPages,store:n}),o.children)};return v4(v4({},o),s)},Print:r,PrintButton:function(){return Yt.createElement(r,null,function(i){return Yt.createElement(Tbe,v4({},i))})},PrintMenuItem:function(i){return Yt.createElement(r,null,function(o){return Yt.createElement(U3t,{onClick:function(){o.onClick(),i.onClick()}})})},setPages:function(i){t.setPages=i}}}});var Lbe=ne((Kwn,Rbe)=>{"use strict";Rbe.exports=Dbe()});var Jbe=ne(mZ=>{"use strict";var tl=Ua();function ext(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var Cn=ext(Pe()),gZ=function(){return Cn.createElement(tl.Icon,{size:16},Cn.createElement("path",{d:`M12,1.001c6.075,0,11,4.925,11,11s-4.925,11-11,11s-11-4.925-11-11S5.925,1.001,12,1.001z
            M14.5,17.005H13
            c-0.552,0-1-0.448-1-1v-6.5c0-0.276-0.224-0.5-0.5-0.5H10
            M11.745,6.504L11.745,6.504
            M11.745,6.5c-0.138,0-0.25,0.112-0.25,0.25
            S11.607,7,11.745,7s0.25-0.112,0.25-0.25S11.883,6.5,11.745,6.5`}))},_P=function(){return _P=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},_P.apply(this,arguments)},txt=function(e){var t=e.doc,n=e.render,r=Cn.useState(),i=r[0],o=r[1];return Cn.useEffect(function(){t.getMetadata().then(function(s){return Promise.resolve(s)}).then(function(s){return t.getDownloadInfo().then(function(a){return Promise.resolve({fileName:s.contentDispositionFilename||"",info:s.info,length:a.length})})}).then(function(s){o(s)})},[]),i?n(i):Cn.createElement("div",{className:"rpv-properties__loader"},Cn.createElement(tl.Spinner,null))},Td=function(e){var t=e.label,n=e.value,r=Cn.useContext(tl.ThemeContext).direction===tl.TextDirection.RightToLeft;return Cn.createElement("dl",{className:tl.classNames({"rpv-properties__item":!0,"rpv-properties__item--rtl":r})},Cn.createElement("dt",{className:"rpv-properties__item-label"},t,":"),Cn.createElement("dd",{className:"rpv-properties__item-value"},n||"-"))},nxt=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"),hy=function(e,t,n,r){var i=parseInt(e,10);return i>=t&&i<=n?i:r},rxt=function(e){var t=e.doc,n=e.fileName,r=e.onToggle,i=Cn.useContext(tl.LocalizationContext).l10n,o=function(s){var a=function(l){var u=nxt.exec(l);if(!u)return null;var c=parseInt(u[1],10),f=hy(u[2],1,12,1)-1,d=hy(u[3],1,31,1),h=hy(u[4],0,23,0),m=hy(u[5],0,59,0),g=hy(u[6],0,59,0),b=u[7]||"Z",v=hy(u[8],0,23,0),x=hy(u[9],0,59,0);switch(b){case"-":h+=v,m+=x;break;case"+":h-=v,m-=x}return new Date(Date.UTC(c,f,d,h,m,g))}(s);return a?"".concat(a.toLocaleDateString(),", ").concat(a.toLocaleTimeString()):""};return Cn.createElement("div",{className:"rpv-properties__modal"},Cn.createElement(txt,{doc:t,render:function(s){return Cn.createElement(Cn.Fragment,null,Cn.createElement("div",{className:"rpv-properties__modal-section"},Cn.createElement(Td,{label:i&&i.properties?i.properties.fileName:"File name",value:s.fileName||(u=n,c=u.split("/").pop(),c?c.split("#")[0].split("?")[0]:u)}),Cn.createElement(Td,{label:i&&i.properties?i.properties.fileSize:"File size",value:(a=s.length,l=Math.floor(Math.log(a)/Math.log(1024)),"".concat((a/Math.pow(1024,l)).toFixed(2)," ").concat(["B","kB","MB","GB","TB"][l]))})),Cn.createElement(tl.Separator,null),Cn.createElement("div",{className:"rpv-properties__modal-section"},Cn.createElement(Td,{label:i&&i.properties?i.properties.title:"Title",value:s.info.Title}),Cn.createElement(Td,{label:i&&i.properties?i.properties.author:"Author",value:s.info.Author}),Cn.createElement(Td,{label:i&&i.properties?i.properties.subject:"Subject",value:s.info.Subject}),Cn.createElement(Td,{label:i&&i.properties?i.properties.keywords:"Keywords",value:s.info.Keywords}),Cn.createElement(Td,{label:i&&i.properties?i.properties.creator:"Creator",value:s.info.Creator}),Cn.createElement(Td,{label:i&&i.properties?i.properties.creationDate:"Creation date",value:o(s.info.CreationDate)}),Cn.createElement(Td,{label:i&&i.properties?i.properties.modificationDate:"Modification date",value:o(s.info.ModDate)})),Cn.createElement(tl.Separator,null),Cn.createElement("div",{className:"rpv-properties__modal-section"},Cn.createElement(Td,{label:i&&i.properties?i.properties.pdfProducer:"PDF producer",value:s.info.Producer}),Cn.createElement(Td,{label:i&&i.properties?i.properties.pdfVersion:"PDF version",value:s.info.PDFFormatVersion}),Cn.createElement(Td,{label:i&&i.properties?i.properties.pageCount:"Page count",value:"".concat(t.numPages)})));var a,l,u,c}}),Cn.createElement("div",{className:"rpv-properties__modal-footer"},Cn.createElement(tl.Button,{onClick:r},i&&i.properties?i.properties.close:"Close")))},ixt={left:0,top:8},oxt=function(e){var t=e.onClick,n=Cn.useContext(tl.LocalizationContext).l10n,r=n&&n.properties?n.properties.showProperties:"Show properties";return Cn.createElement(tl.Tooltip,{ariaControlsSuffix:"properties",position:tl.Position.BottomCenter,target:Cn.createElement(tl.MinimalButton,{ariaLabel:r,testId:"properties__button",onClick:t},Cn.createElement(gZ,null)),content:function(){return r},offset:ixt})},Vbe=function(e){var t=e.children,n=e.store,r=function(s){var a=Cn.useState(s.get("doc")),l=a[0],u=a[1],c=function(f){u(f)};return Cn.useEffect(function(){return s.subscribe("doc",c),function(){s.unsubscribe("doc",c)}},[]),{currentDoc:l}}(n).currentDoc,i=n.get("fileName")||"",o=t||function(s){return Cn.createElement(oxt,_P({},s))};return r?Cn.createElement(tl.Modal,{ariaControlsSuffix:"properties",target:function(s){return o({onClick:s})},content:function(s){return Cn.createElement(rxt,{doc:r,fileName:i,onToggle:s})},closeOnClickOutside:!0,closeOnEscape:!0}):Cn.createElement(Cn.Fragment,null)},sxt=function(e){var t=e.onClick,n=Cn.useContext(tl.LocalizationContext).l10n,r=n&&n.properties?n.properties.showProperties:"Show properties";return Cn.createElement(tl.MenuItem,{icon:Cn.createElement(gZ,null),testId:"properties__menu",onClick:t},r)};mZ.InfoIcon=gZ,mZ.propertiesPlugin=function(){var e=Cn.useMemo(function(){return tl.createStore({fileName:""})},[]),t=function(n){return Cn.createElement(Vbe,_P({},n,{store:e}))};return{onDocumentLoad:function(n){e.update("doc",n.doc)},onViewerStateChange:function(n){return e.update("fileName",n.file.name),n},ShowProperties:t,ShowPropertiesButton:function(){return Cn.createElement(Vbe,{store:e})},ShowPropertiesMenuItem:function(n){return Cn.createElement(t,null,function(r){return Cn.createElement(sxt,_P({},r))})}}}});var Hbe=ne((Zwn,jbe)=>{"use strict";jbe.exports=Jbe()});var Xbe=ne(nG=>{"use strict";var sa=Ua();function axt(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var Lo=axt(Pe()),yZ=function(){return Lo.createElement(sa.Icon,{ignoreDirection:!0,size:16},Lo.createElement("path",{d:`M3.434,10.537c0.141-0.438,0.316-0.864,0.523-1.274
            M3.069,14.425C3.023,14.053,3,13.679,3,13.305 c0-0.291,0.014-0.579,0.041-0.863
            M4.389,18.111c-0.341-0.539-0.623-1.112-0.843-1.711
            M7.163,20.9 c-0.543-0.345-1.048-0.747-1.506-1.2
            M10.98,22.248c-0.65-0.074-1.29-0.218-1.909-0.431
            M10,4.25h2 c4.987,0.015,9.017,4.069,9.003,9.055c-0.013,4.581-3.456,8.426-8.008,8.945
            M13.5,1.75L10,4.25l3.5,2.5`}))},xZ=function(){return Lo.createElement(sa.Icon,{ignoreDirection:!0,size:16},Lo.createElement("path",{d:`M20.566,10.537c-0.141-0.438-0.316-0.864-0.523-1.274
            M20.931,14.425C20.977,14.053,21,13.679,21,13.305 c0-0.291-0.014-0.579-0.041-0.863
            M19.611,18.111c0.341-0.539,0.624-1.114,0.843-1.713
            M16.837,20.9 c0.543-0.345,1.048-0.747,1.506-1.2
            M13.02,22.248c0.65-0.074,1.29-0.218,1.909-0.431
            M14,4.25h-2 c-4.987,0.015-9.017,4.069-9.003,9.055c0.013,4.581,3.456,8.426,8.008,8.945
            M10.5,1.75l3.5,2.5l-3.5,2.5`}))},y4=function(){return y4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},y4.apply(this,arguments)},lxt={left:0,top:8},vZ=function(e){var t=e.direction,n=e.onClick,r=Lo.useContext(sa.LocalizationContext).l10n,i=r&&r.rotate?r.rotate.rotateBackward:"Rotate counterclockwise",o=r&&r.rotate?r.rotate.rotateForward:"Rotate clockwise",s=t===sa.RotateDirection.Backward?i:o,a=t===sa.RotateDirection.Backward?Lo.createElement(yZ,null):Lo.createElement(xZ,null);return Lo.createElement(sa.Tooltip,{ariaControlsSuffix:"rotate",position:sa.Position.BottomCenter,target:Lo.createElement(sa.MinimalButton,{ariaLabel:s,testId:t===sa.RotateDirection.Backward?"rotate__backward-button":"rotate__forward-button",onClick:n},a),content:function(){return s},offset:lxt})},uxt=function(e){var t=e.children,n=e.direction,r=e.store;return(t||function(i){return Lo.createElement(vZ,{direction:i.direction,onClick:i.onClick})})({direction:n,onClick:function(){var i=r.get("rotate");i&&i(n)}})},Wbe=function(e){var t=e.direction,n=e.onClick,r=Lo.useContext(sa.LocalizationContext).l10n,i=r&&r.rotate?r.rotate.rotateBackward:"Rotate counterclockwise",o=r&&r.rotate?r.rotate.rotateForward:"Rotate clockwise",s=t===sa.RotateDirection.Backward?i:o,a=t===sa.RotateDirection.Backward?Lo.createElement(yZ,null):Lo.createElement(xZ,null);return Lo.createElement(sa.MenuItem,{icon:a,testId:t===sa.RotateDirection.Backward?"rotate__backward-menu":"rotate__forward-menu",onClick:n},s)},cxt=function(e){var t=e.children,n=e.store;return t({onRotatePage:function(r,i){var o=n.get("rotatePage");o&&o(r,i)}})};nG.RotateBackwardIcon=yZ,nG.RotateForwardIcon=xZ,nG.rotatePlugin=function(){var e=Lo.useMemo(function(){return sa.createStore()},[]),t=function(n){return Lo.createElement(uxt,y4({},n,{store:e}))};return{install:function(n){e.update("rotate",n.rotate),e.update("rotatePage",n.rotatePage)},Rotate:t,RotateBackwardButton:function(){return Lo.createElement(t,{direction:sa.RotateDirection.Backward},function(n){return Lo.createElement(vZ,y4({},n))})},RotateBackwardMenuItem:function(n){return Lo.createElement(t,{direction:sa.RotateDirection.Backward},function(r){return Lo.createElement(Wbe,{direction:r.direction,onClick:function(){r.onClick(),n.onClick()}})})},RotateForwardButton:function(){return Lo.createElement(t,{direction:sa.RotateDirection.Forward},function(n){return Lo.createElement(vZ,y4({},n))})},RotateForwardMenuItem:function(n){return Lo.createElement(t,{direction:sa.RotateDirection.Forward},function(r){return Lo.createElement(Wbe,{direction:r.direction,onClick:function(){r.onClick(),n.onClick()}})})},RotatePage:function(n){return Lo.createElement(cxt,y4({},n,{store:e}))}}}});var $be=ne((Qwn,qbe)=>{"use strict";qbe.exports=Xbe()});var a8e=ne(Ig=>{"use strict";var xn=Ua();function dxt(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var Sn=dxt(Pe()),Kbe=function(){return Sn.createElement(xn.Icon,{size:16},Sn.createElement("rect",{x:"0.5",y:"0.497",width:"22",height:"22",rx:"1",ry:"1"}),Sn.createElement("line",{x1:"0.5",y1:"6.497",x2:"22.5",y2:"6.497"}),Sn.createElement("line",{x1:"11.5",y1:"6.497",x2:"11.5",y2:"22.497"}))},Ybe=function(){return Sn.createElement(xn.Icon,{size:16},Sn.createElement("rect",{x:"0.5",y:"0.497",width:"22",height:"22",rx:"1",ry:"1"}),Sn.createElement("line",{x1:"11.5",y1:"0.497",x2:"11.5",y2:"22.497"}))},Zbe=function(){return Sn.createElement(xn.Icon,{size:16},Sn.createElement("path",{d:`M6.5,21.5c0,0.552-0.448,1-1,1h-4c-0.552,0-1-0.448-1-1v-20c0-0.552,0.448-1,1-1h4c0.552,0,1,0.448,1,1V21.5z
            M14.5,21.5c0,0.552-0.448,1-1,1h-4c-0.552,0-1-0.448-1-1v-20c0-0.552,0.448-1,1-1h4c0.552,0,1,0.448,1,1V21.5z
            M22.5,21.5 c0,0.552-0.448,1-1,1h-4c-0.552,0-1-0.448-1-1v-20c0-0.552,0.448-1,1-1h4c0.552,0,1,0.448,1,1V21.5z`}))},rG=function(){return Sn.createElement(xn.Icon,{size:16},Sn.createElement("rect",{x:"0.5",y:"0.497",width:"22",height:"22",rx:"1",ry:"1"}))},iG=function(){return iG=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},iG.apply(this,arguments)},Ube=function(e,t){e.get("switchScrollMode")(t);var n=e.get("viewMode");t!==xn.ScrollMode.Horizontal&&t!==xn.ScrollMode.Wrapped||n===xn.ViewMode.SinglePage||e.get("switchViewMode")(xn.ViewMode.SinglePage)},_Z=function(){return Sn.createElement(xn.Icon,{size:16},Sn.createElement("path",{d:`M23.5,5.5c0,0.552-0.448,1-1,1h-21c-0.552,0-1-0.448-1-1v-3c0-0.552,0.448-1,1-1h21c0.552,0,1,0.448,1,1V5.5z
            M23.5,13.5c0,0.552-0.448,1-1,1h-21c-0.552,0-1-0.448-1-1v-3c0-0.552,0.448-1,1-1h21c0.552,0,1,0.448,1,1V13.5z
            M23.5,21.5 c0,0.552-0.448,1-1,1h-21c-0.552,0-1-0.448-1-1v-3c0-0.552,0.448-1,1-1h21c0.552,0,1,0.448,1,1V21.5z`}))},Qbe=function(){return Sn.createElement(xn.Icon,{size:16},Sn.createElement("path",{d:`M10.5,9.5c0,0.552-0.448,1-1,1h-8c-0.552,0-1-0.448-1-1v-8c0-0.552,0.448-1,1-1h8c0.552,0,1,0.448,1,1V9.5z
            M23.5,9.5c0,0.552-0.448,1-1,1h-8c-0.552,0-1-0.448-1-1v-8c0-0.552,0.448-1,1-1h8c0.552,0,1,0.448,1,1V9.5z
            M10.5,22.5 c0,0.552-0.448,1-1,1h-8c-0.552,0-1-0.448-1-1v-8c0-0.552,0.448-1,1-1h8c0.552,0,1,0.448,1,1V22.5z
            M23.5,22.5c0,0.552-0.448,1-1,1 h-8c-0.552,0-1-0.448-1-1v-8c0-0.552,0.448-1,1-1h8c0.552,0,1,0.448,1,1V22.5z`}))},e8e=function(e){var t=e.children,n=e.mode,r=e.onClick,i=Sn.useContext(xn.LocalizationContext).l10n,o="",s=Sn.createElement(_Z,null);switch(n){case xn.ScrollMode.Horizontal:o=i&&i.scrollMode?i.scrollMode.horizontalScrolling:"Horizontal scrolling",s=Sn.createElement(Zbe,null);break;case xn.ScrollMode.Page:o=i&&i.scrollMode?i.scrollMode.pageScrolling:"Page scrolling",s=Sn.createElement(rG,null);break;case xn.ScrollMode.Wrapped:o=i&&i.scrollMode?i.scrollMode.wrappedScrolling:"Wrapped scrolling",s=Sn.createElement(Qbe,null);break;case xn.ScrollMode.Vertical:default:o=i&&i.scrollMode?i.scrollMode.verticalScrolling:"Vertical scrolling",s=Sn.createElement(_Z,null)}return t({icon:s,label:o,onClick:r})},pxt={left:0,top:8},t8e=function(e){var t=e.isDisabled,n=e.isSelected,r=e.mode,i=e.onClick,o="";switch(r){case xn.ScrollMode.Horizontal:o="scroll-mode__horizontal-button";break;case xn.ScrollMode.Page:o="scroll-mode__page-button";break;case xn.ScrollMode.Wrapped:o="scroll-mode__wrapped-button";break;case xn.ScrollMode.Vertical:default:o="scroll-mode__vertical-button"}return Sn.createElement(e8e,{mode:r,onClick:i},function(s){return Sn.createElement(xn.Tooltip,{ariaControlsSuffix:"scroll-mode-switch",position:xn.Position.BottomCenter,target:Sn.createElement(xn.MinimalButton,{ariaLabel:s.label,isDisabled:t,isSelected:n,testId:o,onClick:s.onClick},s.icon),content:function(){return s.label},offset:pxt})})},n8e=function(e){var t=Sn.useState(e.get("scrollMode")||xn.ScrollMode.Vertical),n=t[0],r=t[1],i=function(o){r(o)};return Sn.useEffect(function(){return e.subscribe("scrollMode",i),function(){e.unsubscribe("scrollMode",i)}},[]),{scrollMode:n}},r8e=function(e){var t=Sn.useState(e.get("viewMode")||xn.ViewMode.SinglePage),n=t[0],r=t[1],i=function(o){r(o)};return Sn.useEffect(function(){return e.subscribe("viewMode",i),function(){e.unsubscribe("viewMode",i)}},[]),{viewMode:n}},fxt=function(e){var t=e.children,n=e.mode,r=e.store,i=r8e(r).viewMode,o=n8e(r).scrollMode===n,s=(n===xn.ScrollMode.Horizontal||n===xn.ScrollMode.Wrapped)&&i!==xn.ViewMode.SinglePage;return(t||function(a){return Sn.createElement(t8e,{isDisabled:s,isSelected:o,mode:a.mode,onClick:a.onClick})})({isDisabled:s,isSelected:o,mode:n,onClick:function(){Ube(r,n)}})},hxt=function(e){var t=e.isDisabled,n=e.isSelected,r=e.mode,i=e.onClick,o="";switch(r){case xn.ScrollMode.Horizontal:o="scroll-mode__horizontal-menu";break;case xn.ScrollMode.Page:o="scroll-mode__page-menu";break;case xn.ScrollMode.Wrapped:o="scroll-mode__wrapped-menu";break;case xn.ScrollMode.Vertical:default:o="scroll-mode__vertical-menu"}return Sn.createElement(e8e,{mode:r,onClick:i},function(s){return Sn.createElement(xn.MenuItem,{checked:n,icon:s.icon,isDisabled:t,testId:o,onClick:s.onClick},s.label)})},i8e=function(e,t){e.get("switchViewMode")(t);var n=e.get("scrollMode");n!==xn.ScrollMode.Horizontal&&n!==xn.ScrollMode.Wrapped||t===xn.ViewMode.SinglePage||e.get("switchScrollMode")(xn.ScrollMode.Vertical)},o8e=function(e){var t=e.children,n=e.mode,r=e.onClick,i=Sn.useContext(xn.LocalizationContext).l10n,o="",s=Sn.createElement(rG,null);switch(n){case xn.ViewMode.DualPage:o=i&&i.scrollMode?i.scrollMode.dualPage:"Dual page",s=Sn.createElement(Ybe,null);break;case xn.ViewMode.DualPageWithCover:o=i&&i.scrollMode?i.scrollMode.dualPageCover:"Dual page with cover",s=Sn.createElement(Kbe,null);break;case xn.ViewMode.SinglePage:default:o=i&&i.scrollMode?i.scrollMode.singlePage:"Single page",s=Sn.createElement(rG,null)}return t({icon:s,label:o,onClick:r})},mxt={left:0,top:8},s8e=function(e){var t=e.isDisabled,n=e.isSelected,r=e.mode,i=e.onClick,o="";switch(r){case xn.ViewMode.DualPage:o="view-mode__dual-button";break;case xn.ViewMode.DualPageWithCover:o="view-mode__dual-cover-button";break;case xn.ViewMode.SinglePage:default:o="view-mode__single-button"}return Sn.createElement(o8e,{mode:r,onClick:i},function(s){return Sn.createElement(xn.Tooltip,{ariaControlsSuffix:"view-mode-switch",position:xn.Position.BottomCenter,target:Sn.createElement(xn.MinimalButton,{ariaLabel:s.label,isDisabled:t,isSelected:n,testId:o,onClick:s.onClick},s.icon),content:function(){return s.label},offset:mxt})})},gxt=function(e){var t=e.children,n=e.mode,r=e.store,i=r8e(r).viewMode,o=n8e(r).scrollMode,s=i===n,a=(o===xn.ScrollMode.Horizontal||o===xn.ScrollMode.Wrapped)&&n!==xn.ViewMode.SinglePage;return(t||function(l){return Sn.createElement(s8e,{isDisabled:a,isSelected:s,mode:l.mode,onClick:l.onClick})})({isDisabled:a,isSelected:s,mode:n,onClick:function(){i8e(r,n)}})},vxt=function(e){var t=e.isDisabled,n=e.isSelected,r=e.mode,i=e.onClick,o="";switch(r){case xn.ViewMode.DualPage:o="view-mode__dual-menu";break;case xn.ViewMode.DualPageWithCover:o="view-mode__dual-cover-menu";break;case xn.ViewMode.SinglePage:default:o="view-mode__single-menu"}return Sn.createElement(o8e,{mode:r,onClick:i},function(s){return Sn.createElement(xn.MenuItem,{checked:n,icon:s.icon,isDisabled:t,testId:o,onClick:s.onClick},s.label)})};Ig.DualPageCoverViewModeIcon=Kbe,Ig.DualPageViewModeIcon=Ybe,Ig.HorizontalScrollingIcon=Zbe,Ig.PageScrollingIcon=rG,Ig.VerticalScrollingIcon=_Z,Ig.WrappedScrollingIcon=Qbe,Ig.scrollModePlugin=function(){var e=Sn.useMemo(function(){return xn.createStore({scrollMode:xn.ScrollMode.Vertical,viewMode:xn.ViewMode.SinglePage,switchScrollMode:function(){},switchViewMode:function(){}})},[]),t=function(r){return Sn.createElement(fxt,iG({},r,{store:e}))},n=function(r){return Sn.createElement(gxt,iG({},r,{store:e}))};return{install:function(r){e.update("switchScrollMode",r.switchScrollMode),e.update("switchViewMode",r.switchViewMode)},onViewerStateChange:function(r){return e.update("scrollMode",r.scrollMode),e.update("viewMode",r.viewMode),r},switchScrollMode:function(r){Ube(e,r)},switchViewMode:function(r){i8e(e,r)},SwitchScrollMode:t,SwitchScrollModeButton:function(r){return Sn.createElement(t,{mode:r.mode},function(i){return Sn.createElement(t8e,{isDisabled:i.isDisabled,isSelected:i.isSelected,mode:i.mode,onClick:function(){i.onClick()}})})},SwitchScrollModeMenuItem:function(r){return Sn.createElement(t,{mode:r.mode},function(i){return Sn.createElement(hxt,{isDisabled:i.isDisabled,isSelected:i.isSelected,mode:i.mode,onClick:function(){i.onClick(),r.onClick()}})})},SwitchViewMode:n,SwitchViewModeButton:function(r){return Sn.createElement(n,{mode:r.mode},function(i){return Sn.createElement(s8e,{isDisabled:i.isDisabled,isSelected:i.isSelected,mode:i.mode,onClick:function(){i.onClick()}})})},SwitchViewModeMenuItem:function(r){return Sn.createElement(n,{mode:r.mode},function(i){return Sn.createElement(vxt,{isDisabled:i.isDisabled,isSelected:i.isSelected,mode:i.mode,onClick:function(){i.onClick(),r.onClick()}})})}}}});var u8e=ne((t7n,l8e)=>{"use strict";l8e.exports=a8e()});var x8e=ne(bP=>{"use strict";var Jr=Ua();function yxt(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var Ct=yxt(Pe()),h8e=function(){return Ct.createElement(Jr.Icon,{size:16},Ct.createElement("path",{d:`M0.541,5.627L11.666,18.2c0.183,0.207,0.499,0.226,0.706,0.043c0.015-0.014,0.03-0.028,0.043-0.043
            L23.541,5.627`}))},m8e=function(){return Ct.createElement(Jr.Icon,{size:16},Ct.createElement("path",{d:`M23.535,18.373L12.409,5.8c-0.183-0.207-0.499-0.226-0.706-0.043C11.688,5.77,11.674,5.785,11.66,5.8
            L0.535,18.373`}))},g8e=function(){return Ct.createElement(Jr.Icon,{ignoreDirection:!0,size:16},Ct.createElement("path",{d:`M10.5,0.5c5.523,0,10,4.477,10,10s-4.477,10-10,10s-10-4.477-10-10S4.977,0.5,10.5,0.5z
            M23.5,23.5
            l-5.929-5.929`}))},zg=function(){return zg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},zg.apply(this,arguments)},wP={keyword:"",regExp:new RegExp(" "),wholeWords:!1},v8e=function(e){return{left:"".concat(e.left,"%"),top:"".concat(e.top,"%"),height:"".concat(e.height,"%"),width:"".concat(e.width,"%")}},xxt=function(e){var t=e.index,n=e.area,r=e.onHighlightKeyword,i=Ct.useRef();return Jr.useIsomorphicLayoutEffect(function(){var o=i.current;r&&o&&r({highlightEle:o,keyword:n.keyword})},[]),Ct.createElement("div",{className:"rpv-search__highlight","data-index":t,ref:i,style:v8e(n),title:n.keywordStr.trim()})},c8e=function(e){var t=e.parentNode;t&&t.removeChild(e)},_xt=function(e){var t=e.parentNode;if(t){var n=document.createRange();n.selectNodeContents(e),function(r,i){c8e(r);var o=i.parentNode;o&&o.insertBefore(r,i),c8e(i)}(n.extractContents(),e),t.normalize()}},bxt=function(e,t){return e.top<t.top?-1:e.top>t.top?1:e.left<t.left?-1:e.left>t.left?1:0},wxt=function(e){var t=e.numPages,n=e.pageIndex,r=e.renderHighlights,i=e.store,o=e.onHighlightKeyword,s=Ct.useRef(),a=Ct.useCallback(function(j){return Ct.createElement(Ct.Fragment,null,j.highlightAreas.map(function(V,B){return Ct.createElement(xxt,{index:B,key:B,area:V,onHighlightKeyword:o})}))},[]),l=r||a,u=Ct.useState(i.get("matchPosition")),c=u[0],f=u[1],d=Ct.useState(i.get("keyword")||[wP]),h=d[0],m=d[1],g=Ct.useState({pageIndex:n,scale:1,status:Jr.LayerRenderStatus.PreRender}),b=g[0],v=g[1],x=Ct.useRef(null),y=Ct.useRef([]),_=Ct.useState([]),w=_[0],k=_[1],O=function(){return!0},M=Ct.useCallback(function(){return i.get("targetPageFilter")||O},[i.get("targetPageFilter")]),I=function(j){var V=y.current;if(V.length===0)return[];var B=[],N=[].slice.call(j.querySelectorAll(".rpv-core__text-layer-text")),C=V.map(function(S){return S.char}).join("");return h.forEach(function(S){var G=S.keyword;if(G.trim()){for(var T,Q=S.regExp.flags.indexOf("g")===-1?new RegExp(S.regExp,"".concat(S.regExp.flags,"g")):S.regExp,U=[];(T=Q.exec(C))!==null;)U.push({keyword:Q,startIndex:T.index,endIndex:Q.lastIndex});U.map(function(F){return{keyword:F.keyword,indexes:V.slice(F.startIndex,F.endIndex)}}).forEach(function(F){var D=F.indexes.reduce(function(L,$){return L[$.spanIndex]=(L[$.spanIndex]||[]).concat([$]),L},{});Object.values(D).forEach(function(L){if(L.length!==1||L[0].char.trim()!==""){var $=S.wholeWords?L.slice(1,-1):L,Z=function(se,Y,ue,pe,oe){var de=document.createRange(),ve=pe.firstChild;if(!ve||ve.nodeType!==Node.TEXT_NODE)return null;var Ae=ve.textContent.length,Ce=oe[0].charIndexInSpan,Ge=oe.length===1?Ce:oe[oe.length-1].charIndexInSpan;if(Ce>Ae||Ge+1>Ae)return null;de.setStart(ve,Ce),de.setEnd(ve,Ge+1);var Ee=document.createElement("span");de.surroundContents(Ee);var Ne=Ee.getBoundingClientRect(),De=ue.getBoundingClientRect(),Ue=De.height,Re=De.width,je=100*(Ne.left-De.left)/Re,$e=100*(Ne.top-De.top)/Ue,Le=100*Ne.height/Ue,Xe=100*Ne.width/Re;return _xt(Ee),{keyword:Y,keywordStr:se,numPages:t,pageIndex:n,left:je,top:$e,height:Le,width:Xe,pageHeight:Ue,pageWidth:Re}}(G,F.keyword,j,N[$[0].spanIndex],$);Z&&B.push(Z)}})})}}),B.sort(bxt)},W=function(j){j&&j.length>0&&m(j)},J=function(j){return f(j)},H=function(j){if(j.has(n)){var V=j.get(n);V&&v({ele:V.ele,pageIndex:n,scale:V.scale,status:V.status})}},ee=function(){return h.length===0||h.length===1&&h[0].keyword.trim()===""};return Ct.useEffect(function(){if(!ee()&&b.status===Jr.LayerRenderStatus.DidRender&&!y.current.length){var j=b.ele,V=[].slice.call(j.querySelectorAll(".rpv-core__text-layer-text")).map(function(B){return B.textContent}).reduce(function(B,N,C){return B.concat(N.split("").map(function(S,G){return{char:S,charIndexInSpan:G,spanIndex:C}}))},[{char:"",charIndexInSpan:0,spanIndex:0}]).slice(1);y.current=V}},[h,b.status]),Ct.useEffect(function(){if(!ee()&&b.ele&&b.status===Jr.LayerRenderStatus.DidRender&&M()({pageIndex:n,numPages:t})){var j=b.ele,V=I(j);k(V)}},[h,c,b.status,y.current]),Ct.useEffect(function(){ee()&&b.ele&&b.status===Jr.LayerRenderStatus.DidRender&&k([])},[h,b.status]),Ct.useEffect(function(){if(w.length!==0){var j=s.current;if(c.pageIndex===n&&j&&b.status===Jr.LayerRenderStatus.DidRender){var V=j.querySelector('.rpv-search__highlight[data-index="'.concat(c.matchIndex,'"]'));if(V){var B=function(G,T){for(var Q=G.offsetTop,U=G.offsetLeft,F=G.parentElement;F&&F!==T;)Q+=F.offsetTop,U+=F.offsetLeft,F=F.parentElement;return{left:U,top:Q}}(V,j),N=B.left,C=B.top,S=i.get("jumpToDestination");S&&(S({pageIndex:n,bottomOffset:(j.getBoundingClientRect().height-C)/b.scale,leftOffset:N/b.scale,scaleTo:b.scale}),x.current&&x.current.classList.remove("rpv-search__highlight--current"),x.current=V,V.classList.add("rpv-search__highlight--current"))}}}},[w,c]),Ct.useEffect(function(){return i.subscribe("keyword",W),i.subscribe("matchPosition",J),i.subscribe("renderStatus",H),function(){i.unsubscribe("keyword",W),i.unsubscribe("matchPosition",J),i.unsubscribe("renderStatus",H)}},[]),Ct.createElement("div",{className:"rpv-search__highlights","data-testid":"search__highlights-".concat(n),ref:s},l({getCssProperties:v8e,highlightAreas:w}))},d8e=function(e){var t,n=e.wholeWords?" ".concat(e.keyword," "):e.keyword,r=e.matchCase?"g":"gi";return{keyword:e.keyword,regExp:new RegExp((t=n,t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),r),wholeWords:e.wholeWords||!1}},oG=function(e,t,n){return e instanceof RegExp?{keyword:e.source,regExp:e,wholeWords:n||!1}:typeof e=="string"?e===""?wP:d8e({keyword:e,matchCase:t||!1,wholeWords:n||!1}):(t!==void 0&&(e.matchCase=t),n!==void 0&&(e.wholeWords=n),d8e(e))},bZ=function(e){var t,n=e.get("initialKeyword"),r=Ct.useMemo(function(){if(n&&n.length===1){var J=oG(n[0]);return{matchCase:J.regExp.flags.indexOf("i")===-1,wholeWords:J.wholeWords}}return{matchCase:!1,wholeWords:!1}},[]),i=function(J){var H=Ct.useRef(J.get("doc")),ee=function(j){H.current=j};return Ct.useEffect(function(){return J.subscribe("doc",ee),function(){J.unsubscribe("doc",ee)}},[]),H}(e),o=Ct.useState(n),s=o[0],a=o[1],l=Ct.useState([]),u=l[0],c=l[1],f=Ct.useState(0),d=f[0],h=f[1],m=Ct.useState(r.matchCase),g=m[0],b=m[1],v=Ct.useRef([]),x=Ct.useState(r.wholeWords),y=x[0],_=x[1],w=function(){return!0},k=Ct.useCallback(function(){return e.get("targetPageFilter")||w},[e.get("targetPageFilter")]),O=function(J){var H=u.length;if(s.length===0||H===0)return null;var ee=J===H+1?1:Math.max(1,Math.min(H,J));return h(ee),I(u[ee-1])},M=function(J){return a(J===""?[]:[J])},I=function(J){var H=e.get("jumpToPage");return H&&H(J.pageIndex),e.update("matchPosition",{matchIndex:J.matchIndex,pageIndex:J.pageIndex}),J},W=function(J,H,ee){var j=i.current;if(!j)return Promise.resolve([]);var V=j.numPages,B=J.map(function(N){return oG(N,H,ee)});return e.update("keyword",B),h(0),c([]),new Promise(function(N,C){var S=v.current.length===0?function(){var G=i.current;if(!G)return Promise.resolve([]);var T=Array(G.numPages).fill(0).map(function(Q,U){return Jr.getPage(G,U).then(function(F){return F.getTextContent()}).then(function(F){var D=F.items.map(function(L){return L.str||""}).join("");return Promise.resolve({pageContent:D,pageIndex:U})})});return Promise.all(T).then(function(Q){return Q.sort(function(U,F){return U.pageIndex-F.pageIndex}),Promise.resolve(Q.map(function(U){return U.pageContent}))})}().then(function(G){return v.current=G,Promise.resolve(G)}):Promise.resolve(v.current);S.then(function(G){var T=[];G.forEach(function(Q,U){k()({pageIndex:U,numPages:V})&&B.forEach(function(F){for(var D,L=0;(D=F.regExp.exec(Q))!==null;)T.push({keyword:F.regExp,matchIndex:L,pageIndex:U,pageText:Q,startIndex:D.index,endIndex:F.regExp.lastIndex}),L++})}),c(T),T.length>0&&(h(1),I(T[0])),N(T)})})};return Ct.useEffect(function(){v.current=[]},[i.current]),{clearKeyword:function(){e.update("keyword",[wP]),M(""),h(0),c([]),b(!1),_(!1)},changeMatchCase:function(J){b(J),s.length>0&&W(s,J,y)},changeWholeWords:function(J){_(J),s.length>0&&W(s,g,J)},currentMatch:d,jumpToMatch:O,jumpToNextMatch:function(){return O(d+1)},jumpToPreviousMatch:function(){return O(d-1)},keywords:s,matchCase:g,numberOfMatches:u.length,wholeWords:y,search:function(){return W(s,g,y)},searchFor:W,setKeywords:a,keyword:s.length===0?"":(t=s[0],t instanceof RegExp?t.source:typeof t=="string"?t:t.keyword),setKeyword:M,setTargetPages:function(J){e.update("targetPageFilter",J)}}},Pxt=function(e){var t=e.children,n=e.store,r=bZ(n),i=Ct.useState(!1),o=i[0],s=i[1],a=function(l){return s(!0)};return Ct.useEffect(function(){return n.subscribe("doc",a),function(){n.unsubscribe("doc",a)}},[]),t(zg(zg({},r),{isDocumentLoaded:o}))},kxt=function(e){var t=e.containerRef,n=e.store,r=Ct.useRef(!1),i=function(){r.current=!0},o=function(){r.current=!1},s=function(a){var l=t.current;l&&(a.shiftKey||a.altKey||a.key!=="f"||(Jr.isMac()?a.metaKey&&!a.ctrlKey:a.ctrlKey)&&(r.current||document.activeElement&&l.contains(document.activeElement))&&(a.preventDefault(),n.update("areShortcutsPressed",!0)))};return Ct.useEffect(function(){var a=t.current;if(a)return document.addEventListener("keydown",s),a.addEventListener("mouseenter",i),a.addEventListener("mouseleave",o),function(){document.removeEventListener("keydown",s),a.removeEventListener("mouseenter",i),a.removeEventListener("mouseleave",o)}},[t.current]),Ct.createElement(Ct.Fragment,null)},p8e={left:0,top:8},Axt=function(e){var t=e.store,n=e.onToggle,r=Ct.useContext(Jr.LocalizationContext).l10n,i=Ct.useContext(Jr.ThemeContext).direction,o=Ct.useState(!1),s=o[0],a=o[1],l=Ct.useState(!1),u=l[0],c=l[1],f=i===Jr.TextDirection.RightToLeft,d=bZ(t),h=d.clearKeyword,m=d.changeMatchCase,g=d.changeWholeWords,b=d.currentMatch,v=d.jumpToNextMatch,x=d.jumpToPreviousMatch,y=d.keyword,_=d.matchCase,w=d.numberOfMatches,k=d.wholeWords,O=d.search,M=d.setKeyword,I=function(j){a(!0),O().then(function(V){a(!1),c(!0),j&&j()})};Ct.useEffect(function(){var j=t.get("initialKeyword");j&&j.length===1&&y&&I(function(){t.update("initialKeyword",[])})},[]);var W=r&&r.search?r.search.enterToSearch:"Enter to search",J=r&&r.search?r.search.previousMatch:"Previous match",H=r&&r.search?r.search.nextMatch:"Next match",ee=r&&r.search?r.search.close:"Close";return Ct.createElement("div",{className:"rpv-search__popover"},Ct.createElement("div",{className:"rpv-search__popover-input-counter"},Ct.createElement(Jr.TextBox,{ariaLabel:W,autoFocus:!0,placeholder:W,type:"text",value:y,onChange:function(j){c(!1),M(j)},onKeyDown:function(j){j.key==="Enter"&&y&&(u?v():I())}}),Ct.createElement("div",{className:Jr.classNames({"rpv-search__popover-counter":!0,"rpv-search__popover-counter--ltr":!f,"rpv-search__popover-counter--rtl":f})},s&&Ct.createElement(Jr.Spinner,{testId:"search__popover-searching",size:"1rem"}),!s&&Ct.createElement("span",{"data-testid":"search__popover-num-matches"},b,"/",w))),Ct.createElement("label",{className:"rpv-search__popover-label"},Ct.createElement("input",{className:"rpv-search__popover-label-checkbox","data-testid":"search__popover-match-case",checked:_,type:"checkbox",onChange:function(j){c(!1),m(j.target.checked)}})," ",r&&r.search?r.search.matchCase:"Match case"),Ct.createElement("label",{className:"rpv-search__popover-label"},Ct.createElement("input",{className:"rpv-search__popover-label-checkbox",checked:k,"data-testid":"search__popover-whole-words",type:"checkbox",onChange:function(j){c(!1),g(j.target.checked)}})," ",r&&r.search?r.search.wholeWords:"Whole words"),Ct.createElement("div",{className:"rpv-search__popover-footer"},Ct.createElement("div",{className:"rpv-search__popover-footer-item"},Ct.createElement(Jr.Tooltip,{ariaControlsSuffix:"search-previous-match",position:f?Jr.Position.BottomRight:Jr.Position.BottomCenter,target:Ct.createElement(Jr.MinimalButton,{ariaLabel:J,isDisabled:b<=1,onClick:x},Ct.createElement(m8e,null)),content:function(){return J},offset:p8e})),Ct.createElement("div",{className:"rpv-search__popover-footer-item"},Ct.createElement(Jr.Tooltip,{ariaControlsSuffix:"search-next-match",position:Jr.Position.BottomCenter,target:Ct.createElement(Jr.MinimalButton,{ariaLabel:H,isDisabled:b>w-1,onClick:v},Ct.createElement(h8e,null)),content:function(){return H},offset:p8e})),Ct.createElement("div",{className:Jr.classNames({"rpv-search__popover-footer-button":!0,"rpv-search__popover-footer-button--ltr":!f,"rpv-search__popover-footer-button--rtl":f})},Ct.createElement(Jr.Button,{onClick:function(){n(),h()}},ee))))},Cxt=function(e){var t=e.children,n=e.onClick,r=Ct.useContext(Jr.LocalizationContext).l10n,i=r&&r.search?r.search.search:"Search";return t({icon:Ct.createElement(g8e,null),label:i,onClick:n})},Sxt={left:0,top:8},y8e=function(e){var t=e.enableShortcuts,n=e.store,r=e.onClick,i=t?Jr.isMac()?"Meta+F":"Ctrl+F":"",o=function(s){s&&r()};return Ct.useEffect(function(){return n.subscribe("areShortcutsPressed",o),function(){n.unsubscribe("areShortcutsPressed",o)}},[]),Ct.createElement(Cxt,{onClick:r},function(s){return Ct.createElement(Jr.Tooltip,{ariaControlsSuffix:"search-popover",position:Jr.Position.BottomCenter,target:Ct.createElement(Jr.MinimalButton,{ariaKeyShortcuts:i,ariaLabel:s.label,testId:"search__popover-button",onClick:r},s.icon),content:function(){return s.label},offset:Sxt})})},Oxt={left:0,top:8},Ext=function(e){var t=e.children,n=e.enableShortcuts,r=e.store,i=Ct.useContext(Jr.ThemeContext).direction===Jr.TextDirection.RightToLeft?Jr.Position.BottomRight:Jr.Position.BottomLeft,o=t||function(s){return Ct.createElement(y8e,zg({enableShortcuts:n,store:r},s))};return Ct.createElement(Jr.Popover,{ariaControlsSuffix:"search",lockScroll:!1,position:i,target:function(s){return o({onClick:s})},content:function(s){return Ct.createElement(Axt,{store:r,onToggle:s})},offset:Oxt,closeOnClickOutside:!1,closeOnEscape:!0})},f8e=function(e){return Array.isArray(e)?e.map(function(t){return oG(t)}):[oG(e)]};bP.NextIcon=h8e,bP.PreviousIcon=m8e,bP.SearchIcon=g8e,bP.searchPlugin=function(e){var t=Ct.useMemo(function(){return Object.assign({},{enableShortcuts:!0,onHighlightKeyword:function(){}},e)},[]),n=Ct.useMemo(function(){return Jr.createStore({initialKeyword:e&&e.keyword?Array.isArray(e.keyword)?e.keyword:[e.keyword]:[],keyword:e&&e.keyword?f8e(e.keyword):[wP],matchPosition:{matchIndex:-1,pageIndex:-1},renderStatus:new Map})},[]),r=bZ(n),i=r.clearKeyword,o=r.jumpToMatch,s=r.jumpToNextMatch,a=r.jumpToPreviousMatch,l=r.searchFor,u=r.setKeywords,c=r.setTargetPages,f=function(d){return Ct.createElement(Ext,zg({enableShortcuts:t.enableShortcuts},d,{store:n}))};return{install:function(d){var h=e&&e.keyword?Array.isArray(e.keyword)?e.keyword:[e.keyword]:[],m=e&&e.keyword?f8e(e.keyword):[wP];n.update("initialKeyword",h),n.update("jumpToDestination",d.jumpToDestination),n.update("jumpToPage",d.jumpToPage),n.update("keyword",m)},renderPageLayer:function(d){return Ct.createElement(wxt,{key:d.pageIndex,numPages:d.doc.numPages,pageIndex:d.pageIndex,renderHighlights:e?.renderHighlights,store:n,onHighlightKeyword:t.onHighlightKeyword})},renderViewer:function(d){var h=d.slot;return h.subSlot&&(h.subSlot.children=Ct.createElement(Ct.Fragment,null,t.enableShortcuts&&Ct.createElement(kxt,{containerRef:d.containerRef,store:n}),h.subSlot.children)),h},uninstall:function(d){var h=n.get("renderStatus");h&&h.clear()},onDocumentLoad:function(d){n.update("doc",d.doc)},onTextLayerRender:function(d){var h=n.get("renderStatus");h&&(h=h.set(d.pageIndex,d),n.update("renderStatus",h))},Search:function(d){return Ct.createElement(Pxt,zg({},d,{store:n}))},ShowSearchPopover:f,ShowSearchPopoverButton:function(){return Ct.createElement(f,null,function(d){return Ct.createElement(y8e,zg({enableShortcuts:t.enableShortcuts,store:n},d))})},clearHighlights:function(){i()},highlight:function(d){var h=Array.isArray(d)?d:[d];return u(h),l(h)},jumpToMatch:o,jumpToNextMatch:s,jumpToPreviousMatch:a,setTargetPages:c}}});var b8e=ne((r7n,_8e)=>{"use strict";_8e.exports=x8e()});var P8e=ne(sG=>{"use strict";var Yp=Ua();function Mxt(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var Uo=Mxt(Pe()),wZ=function(){return Uo.createElement(Yp.Icon,{size:16},Uo.createElement("path",{d:"M19.5,15.106l2.4-2.4a1,1,0,0,0,0-1.414l-2.4-2.4V5.5a1,1,0,0,0-1-1H15.106l-2.4-2.4a1,1,0,0,0-1.414,0l-2.4,2.4H5.5a1,1,0,0,0-1,1V8.894l-2.4,2.4a1,1,0,0,0,0,1.414l2.4,2.4V18.5a1,1,0,0,0,1,1H8.894l2.4,2.4a1,1,0,0,0,1.414,0l2.4-2.4H18.5a1,1,0,0,0,1-1Z"}),Uo.createElement("path",{d:"M10,6.349a6,6,0,0,1,0,11.3,6,6,0,1,0,0-11.3Z"}))},PZ=function(){return Uo.createElement(Yp.Icon,{size:16},Uo.createElement("path",{d:"M19.491,15.106l2.4-2.4a1,1,0,0,0,0-1.414l-2.4-2.4V5.5a1,1,0,0,0-1-1H15.1L12.7,2.1a1,1,0,0,0-1.414,0l-2.4,2.4H5.491a1,1,0,0,0-1,1V8.894l-2.4,2.4a1,1,0,0,0,0,1.414l2.4,2.4V18.5a1,1,0,0,0,1,1H8.885l2.4,2.4a1,1,0,0,0,1.414,0l2.4-2.4h3.394a1,1,0,0,0,1-1Z"}),Uo.createElement("path",{d:"M11.491,6c4,0,6,2.686,6,6s-2,6-6,6Z"}))},aG=function(){return aG=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},aG.apply(this,arguments)},Bxt={left:0,top:8},w8e=function(e){var t=e.onClick,n=Uo.useContext(Yp.ThemeContext),r=Uo.useContext(Yp.LocalizationContext).l10n,i=n.currentTheme==="dark",o=r&&r.theme?i?r.theme.switchLightTheme:r.theme.switchDarkTheme:i?"Switch to the light theme":"Switch to the dark theme";return Uo.createElement(Yp.Tooltip,{ariaControlsSuffix:"theme-switch",position:Yp.Position.BottomCenter,target:Uo.createElement(Yp.MinimalButton,{ariaLabel:o,testId:"theme__switch-button",onClick:t},i?Uo.createElement(PZ,null):Uo.createElement(wZ,null)),content:function(){return o},offset:Bxt})},Nxt=function(e){var t=e.children,n=Uo.useContext(Yp.ThemeContext);return(t||function(r){return Uo.createElement(w8e,{onClick:r.onClick})})({onClick:function(){return n.setCurrentTheme(n.currentTheme==="dark"?"light":"dark")}})},Gxt=function(e){var t=e.onClick,n=Uo.useContext(Yp.ThemeContext),r=Uo.useContext(Yp.LocalizationContext).l10n,i=n.currentTheme==="dark",o=r&&r.theme?i?r.theme.switchLightTheme:r.theme.switchDarkTheme:i?"Switch to the light theme":"Switch to the dark theme";return Uo.createElement(Yp.MenuItem,{icon:i?Uo.createElement(PZ,null):Uo.createElement(wZ,null),testId:"theme__switch-menu",onClick:t},o)};sG.DarkIcon=wZ,sG.LightIcon=PZ,sG.themePlugin=function(){var e=function(t){return Uo.createElement(Nxt,aG({},t))};return{SwitchTheme:e,SwitchThemeButton:function(){return Uo.createElement(e,null,function(t){return Uo.createElement(w8e,aG({},t))})},SwitchThemeMenuItem:function(t){return Uo.createElement(e,null,function(n){return Uo.createElement(Gxt,{onClick:function(){n.onClick(),t.onClick()}})})}}}});var A8e=ne((o7n,k8e)=>{"use strict";k8e.exports=P8e()});var M8e=ne(lG=>{"use strict";var Eo=Ua(),kZ=wbe(),Fxt=Pe(),Ixt=Cbe(),zxt=Nbe(),Txt=zbe(),Dxt=hN(),Rxt=Lbe(),Lxt=Hbe(),Vxt=$be(),Jxt=u8e(),jxt=b8e(),Hxt=A8e(),Wxt=DY();function Xxt(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var xt=Xxt(Fxt),S8e=function(){return xt.createElement(Eo.Icon,{size:16},xt.createElement("path",{d:`M12,0.5c1.381,0,2.5,1.119,2.5,2.5S13.381,5.5,12,5.5S9.5,4.381,9.5,3S10.619,0.5,12,0.5z
            M12,9.5
            c1.381,0,2.5,1.119,2.5,2.5s-1.119,2.5-2.5,2.5S9.5,13.381,9.5,12S10.619,9.5,12,9.5z
            M12,18.5c1.381,0,2.5,1.119,2.5,2.5
            s-1.119,2.5-2.5,2.5S9.5,22.381,9.5,21S10.619,18.5,12,18.5z`}))},C8e={left:0,top:8},O8e=function(e){var t=e.toolbarSlot,n=xt.useContext(Eo.LocalizationContext).l10n,r=xt.useContext(Eo.ThemeContext).direction===Eo.TextDirection.RightToLeft?Eo.Position.BottomLeft:Eo.Position.BottomRight,i=t.DownloadMenuItem,o=t.EnterFullScreenMenuItem,s=t.GoToFirstPageMenuItem,a=t.GoToLastPageMenuItem,l=t.GoToNextPageMenuItem,u=t.GoToPreviousPageMenuItem,c=t.OpenMenuItem,f=t.PrintMenuItem,d=t.RotateBackwardMenuItem,h=t.RotateForwardMenuItem,m=t.ShowPropertiesMenuItem,g=t.SwitchScrollModeMenuItem,b=t.SwitchSelectionModeMenuItem,v=t.SwitchViewModeMenuItem,x=t.SwitchThemeMenuItem;return xt.createElement(Eo.Popover,{ariaControlsSuffix:"toolbar-more-actions",ariaHasPopup:"menu",position:r,target:function(y,_){var w=n&&n.toolbar?n.toolbar.moreActions:"More actions";return xt.createElement(Eo.Tooltip,{ariaControlsSuffix:"toolbar-more-actions",position:r,target:xt.createElement(Eo.MinimalButton,{ariaLabel:w,isSelected:_,testId:"toolbar__more-actions-popover-target",onClick:y},xt.createElement(S8e,null)),content:function(){return w},offset:C8e})},content:function(y){return xt.createElement(Eo.Menu,null,xt.createElement("div",{className:"rpv-core__display--block rpv-core__display--hidden-medium"},xt.createElement(x,{onClick:y})),xt.createElement("div",{className:"rpv-core__display--block rpv-core__display--hidden-medium"},xt.createElement(o,{onClick:y})),xt.createElement("div",{className:"rpv-core__display--block rpv-core__display--hidden-medium"},xt.createElement(c,null)),xt.createElement("div",{className:"rpv-core__display--block rpv-core__display--hidden-medium"},xt.createElement(f,{onClick:y})),xt.createElement("div",{className:"rpv-core__display--block rpv-core__display--hidden-medium"},xt.createElement(i,{onClick:y})),xt.createElement("div",{className:"rpv-core__display--block rpv-core__display--hidden-medium"},xt.createElement(Eo.MenuDivider,null)),xt.createElement(s,{onClick:y}),xt.createElement("div",{className:"rpv-core__display--block rpv-core__display--hidden-medium"},xt.createElement(u,{onClick:y})),xt.createElement("div",{className:"rpv-core__display--block rpv-core__display--hidden-medium"},xt.createElement(l,{onClick:y})),xt.createElement(a,{onClick:y}),xt.createElement(Eo.MenuDivider,null),xt.createElement(h,{onClick:y}),xt.createElement(d,{onClick:y}),xt.createElement(Eo.MenuDivider,null),xt.createElement(b,{mode:kZ.SelectionMode.Text,onClick:y}),xt.createElement(b,{mode:kZ.SelectionMode.Hand,onClick:y}),xt.createElement(Eo.MenuDivider,null),xt.createElement(g,{mode:Eo.ScrollMode.Page,onClick:y}),xt.createElement(g,{mode:Eo.ScrollMode.Vertical,onClick:y}),xt.createElement(g,{mode:Eo.ScrollMode.Horizontal,onClick:y}),xt.createElement(g,{mode:Eo.ScrollMode.Wrapped,onClick:y}),xt.createElement(Eo.MenuDivider,null),xt.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-small"},xt.createElement(v,{mode:Eo.ViewMode.SinglePage,onClick:y})),xt.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-small"},xt.createElement(v,{mode:Eo.ViewMode.DualPage,onClick:y})),xt.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-small"},xt.createElement(v,{mode:Eo.ViewMode.DualPageWithCover,onClick:y})),xt.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-small"},xt.createElement(Eo.MenuDivider,null)),xt.createElement(m,{onClick:y}))},offset:C8e,closeOnClickOutside:!0,closeOnEscape:!0})},PP=function(){return PP=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},PP.apply(this,arguments)},E8e=function(e){return function(t){var n=xt.useMemo(function(){return e(t)},[]),r=xt.useContext(Eo.ThemeContext).direction===Eo.TextDirection.RightToLeft,i=n.CurrentPageInput,o=n.Download,s=n.EnterFullScreen,a=n.GoToNextPage,l=n.GoToPreviousPage,u=n.NumberOfPages,c=n.Open,f=n.Print,d=n.ShowSearchPopover,h=n.SwitchTheme,m=n.Zoom,g=n.ZoomIn,b=n.ZoomOut;return xt.createElement("div",{"data-testid":"toolbar",className:Eo.classNames({"rpv-toolbar":!0,"rpv-toolbar--rtl":r}),role:"toolbar","aria-orientation":"horizontal"},xt.createElement("div",{className:"rpv-toolbar__left"},xt.createElement("div",{className:"rpv-toolbar__item"},xt.createElement(d,null)),xt.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-small"},xt.createElement("div",{className:"rpv-toolbar__item"},xt.createElement(l,null))),xt.createElement("div",{className:"rpv-toolbar__item"},xt.createElement(i,null),xt.createElement("span",{className:"rpv-toolbar__label"},xt.createElement(u,null))),xt.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-small"},xt.createElement("div",{className:"rpv-toolbar__item"},xt.createElement(a,null)))),xt.createElement("div",{className:"rpv-toolbar__center"},xt.createElement("div",{className:"rpv-toolbar__item"},xt.createElement(b,null)),xt.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-small"},xt.createElement("div",{className:"rpv-toolbar__item"},xt.createElement(m,null))),xt.createElement("div",{className:"rpv-toolbar__item"},xt.createElement(g,null))),xt.createElement("div",{className:"rpv-toolbar__right"},xt.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-medium"},xt.createElement("div",{className:"rpv-toolbar__item"},xt.createElement(h,null))),xt.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-medium"},xt.createElement("div",{className:"rpv-toolbar__item"},xt.createElement(s,null))),xt.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-medium"},xt.createElement("div",{className:"rpv-toolbar__item"},xt.createElement(c,null))),xt.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-medium"},xt.createElement("div",{className:"rpv-toolbar__item"},xt.createElement(o,null))),xt.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-medium"},xt.createElement("div",{className:"rpv-toolbar__item"},xt.createElement(f,null))),xt.createElement("div",{className:"rpv-toolbar__item"},xt.createElement(O8e,{toolbarSlot:n}))))}},qxt=function(e){var t=e.NumberOfPages;return Object.assign({},e,{NumberOfPages:function(){return xt.createElement(xt.Fragment,null,"/ ",xt.createElement(t,null))}})},$xt=function(e){return E8e(qxt)(e)},Kxt=function(e){var t=e.children,n=e.slot;return(t||$xt)(n)};lG.MoreActionsPopover=O8e,lG.MoreIcon=S8e,lG.toolbarPlugin=function(e){var t=Ixt.fullScreenPlugin(e?e.fullScreenPlugin:{}),n=zxt.getFilePlugin(e?e.getFilePlugin:{}),r=Txt.openPlugin(e?e.openPlugin:{}),i=Dxt.pageNavigationPlugin(e?e.pageNavigationPlugin:{}),o=Rxt.printPlugin(e?e.printPlugin:{}),s=Lxt.propertiesPlugin(),a=Vxt.rotatePlugin(),l=Jxt.scrollModePlugin(),u=jxt.searchPlugin(e?e.searchPlugin:{}),c=kZ.selectionModePlugin(e?e.selectionModePlugin:{}),f=Hxt.themePlugin(),d=Wxt.zoomPlugin(e?e.zoomPlugin:{}),h=[t,n,r,i,o,s,a,l,u,c,f,d],m=xt.useCallback(function(g){var b=t.EnterFullScreen,v=t.EnterFullScreenMenuItem,x=n.Download,y=n.DownloadMenuItem,_=r.Open,w=r.OpenMenuItem,k=i.CurrentPageInput,O=i.CurrentPageLabel,M=i.GoToFirstPage,I=i.GoToFirstPageMenuItem,W=i.GoToLastPage,J=i.GoToLastPageMenuItem,H=i.GoToNextPage,ee=i.GoToNextPageMenuItem,j=i.GoToPreviousPage,V=i.GoToPreviousPageMenuItem,B=i.NumberOfPages,N=o.Print,C=o.PrintMenuItem,S=s.ShowProperties,G=s.ShowPropertiesMenuItem,T=a.Rotate,Q=a.RotateBackwardMenuItem,U=a.RotateForwardMenuItem,F=l.SwitchScrollMode,D=l.SwitchScrollModeMenuItem,L=l.SwitchViewMode,$=l.SwitchViewModeMenuItem,Z=u.Search,se=u.ShowSearchPopover,Y=c.SwitchSelectionMode,ue=c.SwitchSelectionModeMenuItem,pe=f.SwitchTheme,oe=f.SwitchThemeMenuItem,de=d.CurrentScale,ve=d.Zoom,Ae=d.ZoomIn,Ce=d.ZoomInMenuItem,Ge=d.ZoomOut,Ee=d.ZoomOutMenuItem;return xt.createElement(Kxt,PP({},g,{slot:{CurrentPageInput:k,CurrentPageLabel:O,CurrentScale:de,Download:x,DownloadMenuItem:y,EnterFullScreen:b,EnterFullScreenMenuItem:v,GoToFirstPage:M,GoToFirstPageMenuItem:I,GoToLastPage:W,GoToLastPageMenuItem:J,GoToNextPage:H,GoToNextPageMenuItem:ee,GoToPreviousPage:j,GoToPreviousPageMenuItem:V,NumberOfPages:B,Open:_,OpenMenuItem:w,Print:N,PrintMenuItem:C,Rotate:T,RotateBackwardMenuItem:Q,RotateForwardMenuItem:U,Search:Z,ShowProperties:S,ShowPropertiesMenuItem:G,ShowSearchPopover:se,SwitchScrollMode:F,SwitchScrollModeMenuItem:D,SwitchSelectionMode:Y,SwitchSelectionModeMenuItem:ue,SwitchViewMode:L,SwitchViewModeMenuItem:$,SwitchTheme:pe,SwitchThemeMenuItem:oe,Zoom:ve,ZoomIn:Ae,ZoomInMenuItem:Ce,ZoomOut:Ge,ZoomOutMenuItem:Ee}}))},[]);return{fullScreenPluginInstance:t,getFilePluginInstance:n,openPluginInstance:r,pageNavigationPluginInstance:i,printPluginInstance:o,propertiesPluginInstance:s,rotatePluginInstance:a,scrollModePluginInstance:l,searchPluginInstance:u,selectionModePluginInstance:c,themePluginInstance:f,zoomPluginInstance:d,install:function(g){h.forEach(function(b){b.install&&b.install(g)})},renderPageLayer:function(g){return xt.createElement(xt.Fragment,null,h.map(function(b,v){return b.renderPageLayer?xt.createElement(xt.Fragment,{key:v},b.renderPageLayer(g)):xt.createElement(xt.Fragment,{key:v})}))},renderViewer:function(g){var b=g.slot;return h.forEach(function(v){v.renderViewer&&(b=v.renderViewer(PP(PP({},g),{slot:b})))}),b},uninstall:function(g){h.forEach(function(b){b.uninstall&&b.uninstall(g)})},onDocumentLoad:function(g){h.forEach(function(b){b.onDocumentLoad&&b.onDocumentLoad(g)})},onAnnotationLayerRender:function(g){h.forEach(function(b){b.onAnnotationLayerRender&&b.onAnnotationLayerRender(g)})},onTextLayerRender:function(g){h.forEach(function(b){b.onTextLayerRender&&b.onTextLayerRender(g)})},onViewerStateChange:function(g){var b=g;return h.forEach(function(v){v.onViewerStateChange&&(b=v.onViewerStateChange(b))}),b},renderDefaultToolbar:E8e,Toolbar:m}}});var N8e=ne((a7n,B8e)=>{"use strict";B8e.exports=M8e()});var G8e=ne((kP,uG)=>{(function(e,t){"use strict";var n="1.0.35",r="",i="?",o="function",s="undefined",a="object",l="string",u="major",c="model",f="name",d="type",h="vendor",m="version",g="architecture",b="console",v="mobile",x="tablet",y="smarttv",_="wearable",w="embedded",k=350,O="Amazon",M="Apple",I="ASUS",W="BlackBerry",J="Browser",H="Chrome",ee="Edge",j="Firefox",V="Google",B="Huawei",N="LG",C="Microsoft",S="Motorola",G="Opera",T="Samsung",Q="Sharp",U="Sony",F="Viera",D="Xiaomi",L="Zebra",$="Facebook",Z="Chromium OS",se="Mac OS",Y=function(je,$e){var Le={};for(var Xe in je)$e[Xe]&&$e[Xe].length%2===0?Le[Xe]=$e[Xe].concat(je[Xe]):Le[Xe]=je[Xe];return Le},ue=function(je){for(var $e={},Le=0;Le<je.length;Le++)$e[je[Le].toUpperCase()]=je[Le];return $e},pe=function(je,$e){return typeof je===l?oe($e).indexOf(oe(je))!==-1:!1},oe=function(je){return je.toLowerCase()},de=function(je){return typeof je===l?je.replace(/[^\d\.]/g,r).split(".")[0]:t},ve=function(je,$e){if(typeof je===l)return je=je.replace(/^\s\s*/,r),typeof $e===s?je:je.substring(0,k)},Ae=function(je,$e){for(var Le=0,Xe,mt,fe,be,ye,Oe;Le<$e.length&&!ye;){var Me=$e[Le],Ke=$e[Le+1];for(Xe=mt=0;Xe<Me.length&&!ye&&Me[Xe];)if(ye=Me[Xe++].exec(je),ye)for(fe=0;fe<Ke.length;fe++)Oe=ye[++mt],be=Ke[fe],typeof be===a&&be.length>0?be.length===2?typeof be[1]==o?this[be[0]]=be[1].call(this,Oe):this[be[0]]=be[1]:be.length===3?typeof be[1]===o&&!(be[1].exec&&be[1].test)?this[be[0]]=Oe?be[1].call(this,Oe,be[2]):t:this[be[0]]=Oe?Oe.replace(be[1],be[2]):t:be.length===4&&(this[be[0]]=Oe?be[3].call(this,Oe.replace(be[1],be[2])):t):this[be]=Oe||t;Le+=2}},Ce=function(je,$e){for(var Le in $e)if(typeof $e[Le]===a&&$e[Le].length>0){for(var Xe=0;Xe<$e[Le].length;Xe++)if(pe($e[Le][Xe],je))return Le===i?t:Le}else if(pe($e[Le],je))return Le===i?t:Le;return je},Ge={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Ee={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Ne={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[f,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[f,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,m],[/opios[\/ ]+([\w\.]+)/i],[m,[f,G+" Mini"]],[/\bopr\/([\w\.]+)/i],[m,[f,G]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[f,m],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[f,"UC"+J]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[m,[f,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[m,[f,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[f,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[f,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[m,[f,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure "+J],m],[/\bfocus\/([\w\.]+)/i],[m,[f,j+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[f,G+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[f,G+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[f,"MIUI "+J]],[/fxios\/([-\w\.]+)/i],[m,[f,j]],[/\bqihu|(qi?ho?o?|360)browser/i],[[f,"360 "+J]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1 "+J],m],[/(comodo_dragon)\/([\w\.]+)/i],[[f,/_/g," "],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[f,m],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,$],m],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[f,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[f,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[m,[f,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[f,H+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,H+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[f,"Android "+J]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,m],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[m,[f,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[m,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[m,Ce,Ge]],[/(webkit|khtml)\/([\w\.]+)/i],[f,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,"Netscape"],m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[f,j+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[f,m],[/(cobalt)\/([\w\.]+)/i],[f,[m,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[g,"amd64"]],[/(ia32(?=;))/i],[[g,oe]],[/((?:i[346]|x)86)[;\)]/i],[[g,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/windows (ce|mobile); ppc;/i],[[g,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[g,/ower/,r,oe]],[/(sun4\w)[;\)]/i],[[g,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[g,oe]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[h,T],[d,x]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[h,T],[d,v]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[h,M],[d,v]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[h,M],[d,x]],[/(macintosh);/i],[c,[h,M]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[h,Q],[d,v]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[h,B],[d,x]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[h,B],[d,v]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[h,D],[d,v]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[h,D],[d,x]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[h,"OPPO"],[d,v]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[h,"Vivo"],[d,v]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[c,[h,"Realme"],[d,v]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[h,S],[d,v]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[h,S],[d,x]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[h,N],[d,x]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[h,N],[d,v]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[h,"Lenovo"],[d,x]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[h,"Nokia"],[d,v]],[/(pixel c)\b/i],[c,[h,V],[d,x]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[h,V],[d,v]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[h,U],[d,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[h,U],[d,x]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[h,"OnePlus"],[d,v]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[h,O],[d,x]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[h,O],[d,v]],[/(playbook);[-\w\),; ]+(rim)/i],[c,h,[d,x]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[h,W],[d,v]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[h,I],[d,x]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[h,I],[d,v]],[/(nexus 9)/i],[c,[h,"HTC"],[d,x]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[c,/_/g," "],[d,v]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[h,"Acer"],[d,x]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[h,"Meizu"],[d,v]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,c,[d,v]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,c,[d,x]],[/(surface duo)/i],[c,[h,C],[d,x]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[h,"Fairphone"],[d,v]],[/(u304aa)/i],[c,[h,"AT&T"],[d,v]],[/\bsie-(\w*)/i],[c,[h,"Siemens"],[d,v]],[/\b(rct\w+) b/i],[c,[h,"RCA"],[d,x]],[/\b(venue[\d ]{2,7}) b/i],[c,[h,"Dell"],[d,x]],[/\b(q(?:mv|ta)\w+) b/i],[c,[h,"Verizon"],[d,x]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[h,"Barnes & Noble"],[d,x]],[/\b(tm\d{3}\w+) b/i],[c,[h,"NuVision"],[d,x]],[/\b(k88) b/i],[c,[h,"ZTE"],[d,x]],[/\b(nx\d{3}j) b/i],[c,[h,"ZTE"],[d,v]],[/\b(gen\d{3}) b.+49h/i],[c,[h,"Swiss"],[d,v]],[/\b(zur\d{3}) b/i],[c,[h,"Swiss"],[d,x]],[/\b((zeki)?tb.*\b) b/i],[c,[h,"Zeki"],[d,x]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],c,[d,x]],[/\b(ns-?\w{0,9}) b/i],[c,[h,"Insignia"],[d,x]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[h,"NextBook"],[d,x]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],c,[d,v]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],c,[d,v]],[/\b(ph-1) /i],[c,[h,"Essential"],[d,v]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[h,"Envizen"],[d,x]],[/\b(trio[-\w\. ]+) b/i],[c,[h,"MachSpeed"],[d,x]],[/\btu_(1491) b/i],[c,[h,"Rotor"],[d,x]],[/(shield[\w ]+) b/i],[c,[h,"Nvidia"],[d,x]],[/(sprint) (\w+)/i],[h,c,[d,v]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[h,C],[d,v]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[h,L],[d,x]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[h,L],[d,v]],[/smart-tv.+(samsung)/i],[h,[d,y]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[h,T],[d,y]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,N],[d,y]],[/(apple) ?tv/i],[h,[c,M+" TV"],[d,y]],[/crkey/i],[[c,H+"cast"],[h,V],[d,y]],[/droid.+aft(\w)( bui|\))/i],[c,[h,O],[d,y]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[h,Q],[d,y]],[/(bravia[\w ]+)( bui|\))/i],[c,[h,U],[d,y]],[/(mitv-\w{5}) bui/i],[c,[h,D],[d,y]],[/Hbbtv.*(technisat) (.*);/i],[h,c,[d,y]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,ve],[c,ve],[d,y]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,y]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,c,[d,b]],[/droid.+; (shield) bui/i],[c,[h,"Nvidia"],[d,b]],[/(playstation [345portablevi]+)/i],[c,[h,U],[d,b]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[h,C],[d,b]],[/((pebble))app/i],[h,c,[d,_]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[c,[h,M],[d,_]],[/droid.+; (glass) \d/i],[c,[h,V],[d,_]],[/droid.+; (wt63?0{2,3})\)/i],[c,[h,L],[d,_]],[/(quest( 2| pro)?)/i],[c,[h,$],[d,_]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[d,w]],[/(aeobc)\b/i],[c,[h,O],[d,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[c,[d,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[d,x]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,x]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,v]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[f,ee+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[f,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[f,m],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,m],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[f,[m,Ce,Ee]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[f,"Windows"],[m,Ce,Ee]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[f,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,se],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[m,f],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[f,m],[/\(bb(10);/i],[m,[f,W]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[m,[f,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[f,j+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[f,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[f,"watchOS"]],[/crkey\/([\d\.]+)/i],[m,[f,H+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[f,Z],m],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[f,m],[/(sunos) ?([\w\.\d]*)/i],[[f,"Solaris"],m],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[f,m]]},De=function(je,$e){if(typeof je===a&&($e=je,je=t),!(this instanceof De))return new De(je,$e).getResult();var Le=typeof e!==s&&e.navigator?e.navigator:t,Xe=je||(Le&&Le.userAgent?Le.userAgent:r),mt=Le&&Le.userAgentData?Le.userAgentData:t,fe=$e?Y(Ne,$e):Ne,be=Le&&Le.userAgent==Xe;return this.getBrowser=function(){var ye={};return ye[f]=t,ye[m]=t,Ae.call(ye,Xe,fe.browser),ye[u]=de(ye[m]),be&&Le&&Le.brave&&typeof Le.brave.isBrave==o&&(ye[f]="Brave"),ye},this.getCPU=function(){var ye={};return ye[g]=t,Ae.call(ye,Xe,fe.cpu),ye},this.getDevice=function(){var ye={};return ye[h]=t,ye[c]=t,ye[d]=t,Ae.call(ye,Xe,fe.device),be&&!ye[d]&&mt&&mt.mobile&&(ye[d]=v),be&&ye[c]=="Macintosh"&&Le&&typeof Le.standalone!==s&&Le.maxTouchPoints&&Le.maxTouchPoints>2&&(ye[c]="iPad",ye[d]=x),ye},this.getEngine=function(){var ye={};return ye[f]=t,ye[m]=t,Ae.call(ye,Xe,fe.engine),ye},this.getOS=function(){var ye={};return ye[f]=t,ye[m]=t,Ae.call(ye,Xe,fe.os),be&&!ye[f]&&mt&&mt.platform!="Unknown"&&(ye[f]=mt.platform.replace(/chrome os/i,Z).replace(/macos/i,se)),ye},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return Xe},this.setUA=function(ye){return Xe=typeof ye===l&&ye.length>k?ve(ye,k):ye,this},this.setUA(Xe),this};De.VERSION=n,De.BROWSER=ue([f,m,u]),De.CPU=ue([g]),De.DEVICE=ue([c,h,d,b,v,y,x,_,w]),De.ENGINE=De.OS=ue([f,m]),typeof kP!==s?(typeof uG!==s&&uG.exports&&(kP=uG.exports=De),kP.UAParser=De):typeof define===o&&define.amd?define(function(){return De}):typeof e!==s&&(e.UAParser=De);var Ue=typeof e!==s&&(e.jQuery||e.Zepto);if(Ue&&!Ue.ua){var Re=new De;Ue.ua=Re.getResult(),Ue.ua.get=function(){return Re.getUA()},Ue.ua.set=function(je){Re.setUA(je);var $e=Re.getResult();for(var Le in $e)Ue.ua[Le]=$e[Le]}}})(typeof window=="object"?window:kP)});var b4=ne(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});function Yxt(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var Bl=Pe(),Mo=Yxt(Bl),D8e=G8e(),Tg=new D8e,Nl=Tg.getBrowser(),Zxt=Tg.getCPU(),Tc=Tg.getDevice(),OZ=Tg.getEngine(),Dg=Tg.getOS(),CP=Tg.getUA(),R8e=function(t){return Tg.setUA(t)},SP=function(t){if(!t){console.error("No userAgent string was provided");return}var n=new D8e(t);return{UA:n,browser:n.getBrowser(),cpu:n.getCPU(),device:n.getDevice(),engine:n.getEngine(),os:n.getOS(),ua:n.getUA(),setUserAgent:function(i){return n.setUA(i)}}},L8e=Object.freeze({ClientUAInstance:Tg,browser:Nl,cpu:Zxt,device:Tc,engine:OZ,os:Dg,ua:CP,setUa:R8e,parseUserAgent:SP});function F8e(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 Uxt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F8e(Object(n),!0).forEach(function(r){t4t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F8e(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function AP(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?AP=function(t){return typeof t}:AP=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},AP(e)}function Qxt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I8e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function e4t(e,t,n){return t&&I8e(e.prototype,t),n&&I8e(e,n),e}function t4t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AZ(){return AZ=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},AZ.apply(this,arguments)}function n4t(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&SZ(e,t)}function CZ(e){return CZ=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},CZ(e)}function SZ(e,t){return SZ=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},SZ(e,t)}function r4t(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Dd(e,t){if(e==null)return{};var n=r4t(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function cG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i4t(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cG(e)}function o4t(e,t){return s4t(e)||a4t(e,t)||l4t(e,t)||u4t()}function s4t(e){if(Array.isArray(e))return e}function a4t(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,s,a;try{for(n=n.call(e);!(i=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,a=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function l4t(e,t){if(!!e){if(typeof e=="string")return z8e(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 z8e(e,t)}}function z8e(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u4t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ml={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},Qu={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},_4={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},c4t={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},d4t=function(t){switch(t){case Ml.Mobile:return{isMobile:!0};case Ml.Tablet:return{isTablet:!0};case Ml.SmartTv:return{isSmartTV:!0};case Ml.Console:return{isConsole:!0};case Ml.Wearable:return{isWearable:!0};case Ml.Browser:return{isBrowser:!0};case Ml.Embedded:return{isEmbedded:!0};default:return c4t}},p4t=function(t){return R8e(t)},qn=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return t||n},EZ=function(){return typeof window<"u"&&(window.navigator||navigator)?window.navigator||navigator:!1},MZ=function(t){var n=EZ();return n&&n.platform&&(n.platform.indexOf(t)!==-1||n.platform==="MacIntel"&&n.maxTouchPoints>1&&!window.MSStream)},f4t=function(t,n,r,i,o){return{isBrowser:t,browserMajorVersion:qn(n.major),browserFullVersion:qn(n.version),browserName:qn(n.name),engineName:qn(r.name),engineVersion:qn(r.version),osName:qn(i.name),osVersion:qn(i.version),userAgent:qn(o)}},T8e=function(t,n,r,i){return Uxt({},t,{vendor:qn(n.vendor),model:qn(n.model),os:qn(r.name),osVersion:qn(r.version),ua:qn(i)})},h4t=function(t,n,r,i){return{isSmartTV:t,engineName:qn(n.name),engineVersion:qn(n.version),osName:qn(r.name),osVersion:qn(r.version),userAgent:qn(i)}},m4t=function(t,n,r,i){return{isConsole:t,engineName:qn(n.name),engineVersion:qn(n.version),osName:qn(r.name),osVersion:qn(r.version),userAgent:qn(i)}},g4t=function(t,n,r,i){return{isWearable:t,engineName:qn(n.name),engineVersion:qn(n.version),osName:qn(r.name),osVersion:qn(r.version),userAgent:qn(i)}},v4t=function(t,n,r,i,o){return{isEmbedded:t,vendor:qn(n.vendor),model:qn(n.model),engineName:qn(r.name),engineVersion:qn(r.version),osName:qn(i.name),osVersion:qn(i.version),userAgent:qn(o)}};function y4t(e){var t=e?SP(e):L8e,n=t.device,r=t.browser,i=t.engine,o=t.os,s=t.ua,a=d4t(n.type),l=a.isBrowser,u=a.isMobile,c=a.isTablet,f=a.isSmartTV,d=a.isConsole,h=a.isWearable,m=a.isEmbedded;if(l)return f4t(l,r,i,o,s);if(f)return h4t(f,i,o,s);if(d)return m4t(d,i,o,s);if(u||c)return T8e(a,n,o,s);if(h)return g4t(h,i,o,s);if(m)return v4t(m,n,i,o,s)}var V8e=function(t){var n=t.type;return n===Ml.Mobile},J8e=function(t){var n=t.type;return n===Ml.Tablet},j8e=function(t){var n=t.type;return n===Ml.Mobile||n===Ml.Tablet},H8e=function(t){var n=t.type;return n===Ml.SmartTv},dG=function(t){var n=t.type;return n===Ml.Browser},W8e=function(t){var n=t.type;return n===Ml.Wearable},X8e=function(t){var n=t.type;return n===Ml.Console},q8e=function(t){var n=t.type;return n===Ml.Embedded},$8e=function(t){var n=t.vendor;return qn(n)},K8e=function(t){var n=t.model;return qn(n)},Y8e=function(t){var n=t.type;return qn(n,"browser")},Z8e=function(t){var n=t.name;return n===_4.Android},U8e=function(t){var n=t.name;return n===_4.Windows},Q8e=function(t){var n=t.name;return n===_4.MAC_OS},ewe=function(t){var n=t.name;return n===_4.WindowsPhone},twe=function(t){var n=t.name;return n===_4.IOS},nwe=function(t){var n=t.version;return qn(n)},rwe=function(t){var n=t.name;return qn(n)},iwe=function(t){var n=t.name;return n===Qu.Chrome},owe=function(t){var n=t.name;return n===Qu.Firefox},swe=function(t){var n=t.name;return n===Qu.Chromium},pG=function(t){var n=t.name;return n===Qu.Edge},awe=function(t){var n=t.name;return n===Qu.Yandex},lwe=function(t){var n=t.name;return n===Qu.Safari||n===Qu.MobileSafari},uwe=function(t){var n=t.name;return n===Qu.MobileSafari},cwe=function(t){var n=t.name;return n===Qu.Opera},dwe=function(t){var n=t.name;return n===Qu.InternetExplorer||n===Qu.Ie},pwe=function(t){var n=t.name;return n===Qu.MIUI},fwe=function(t){var n=t.name;return n===Qu.SamsungBrowser},hwe=function(t){var n=t.version;return qn(n)},mwe=function(t){var n=t.major;return qn(n)},gwe=function(t){var n=t.name;return qn(n)},vwe=function(t){var n=t.name;return qn(n)},ywe=function(t){var n=t.version;return qn(n)},xwe=function(){var t=EZ(),n=t&&t.userAgent&&t.userAgent.toLowerCase();return typeof n=="string"?/electron/.test(n):!1},x4=function(t){return typeof t=="string"&&t.indexOf("Edg/")!==-1},_we=function(){var t=EZ();return t&&(/iPad|iPhone|iPod/.test(t.platform)||t.platform==="MacIntel"&&t.maxTouchPoints>1)&&!window.MSStream},ch=function(){return MZ("iPad")},bwe=function(){return MZ("iPhone")},wwe=function(){return MZ("iPod")},Pwe=function(t){return qn(t)};function kwe(e){var t=e||L8e,n=t.device,r=t.browser,i=t.os,o=t.engine,s=t.ua;return{isSmartTV:H8e(n),isConsole:X8e(n),isWearable:W8e(n),isEmbedded:q8e(n),isMobileSafari:uwe(r)||ch(),isChromium:swe(r),isMobile:j8e(n)||ch(),isMobileOnly:V8e(n),isTablet:J8e(n)||ch(),isBrowser:dG(n),isDesktop:dG(n),isAndroid:Z8e(i),isWinPhone:ewe(i),isIOS:twe(i)||ch(),isChrome:iwe(r),isFirefox:owe(r),isSafari:lwe(r),isOpera:cwe(r),isIE:dwe(r),osVersion:nwe(i),osName:rwe(i),fullBrowserVersion:hwe(r),browserVersion:mwe(r),browserName:gwe(r),mobileVendor:$8e(n),mobileModel:K8e(n),engineName:vwe(o),engineVersion:ywe(o),getUA:Pwe(s),isEdge:pG(r)||x4(s),isYandex:awe(r),deviceType:Y8e(n),isIOS13:_we(),isIPad13:ch(),isIPhone13:bwe(),isIPod13:wwe(),isElectron:xwe(),isEdgeChromium:x4(s),isLegacyEdge:pG(r)&&!x4(s),isWindows:U8e(i),isMacOs:Q8e(i),isMIUI:pwe(r),isSamsungBrowser:fwe(r)}}var Awe=H8e(Tc),Cwe=X8e(Tc),Swe=W8e(Tc),x4t=q8e(Tc),_4t=uwe(Nl)||ch(),b4t=swe(Nl),fG=j8e(Tc)||ch(),Owe=V8e(Tc),Ewe=J8e(Tc)||ch(),Mwe=dG(Tc),w4t=dG(Tc),Bwe=Z8e(Dg),Nwe=ewe(Dg),Gwe=twe(Dg)||ch(),P4t=iwe(Nl),k4t=owe(Nl),A4t=lwe(Nl),C4t=cwe(Nl),Fwe=dwe(Nl),S4t=nwe(Dg),O4t=rwe(Dg),E4t=hwe(Nl),M4t=mwe(Nl),B4t=gwe(Nl),N4t=$8e(Tc),G4t=K8e(Tc),F4t=vwe(OZ),I4t=ywe(OZ),z4t=Pwe(CP),T4t=pG(Nl)||x4(CP),D4t=awe(Nl),R4t=Y8e(Tc),L4t=_we(),V4t=ch(),J4t=bwe(),j4t=wwe(),H4t=xwe(),W4t=x4(CP),X4t=pG(Nl)&&!x4(CP),q4t=U8e(Dg),$4t=Q8e(Dg),K4t=pwe(Nl),Y4t=fwe(Nl),Z4t=function(t){if(!t||typeof t!="string"){console.error("No valid user agent string was provided");return}var n=SP(t),r=n.device,i=n.browser,o=n.os,s=n.engine,a=n.ua;return kwe({device:r,browser:i,os:o,engine:s,ua:a})},U4t=function(t){var n=t.renderWithFragment,r=t.children,i=Dd(t,["renderWithFragment","children"]);return Bwe?n?Mo.createElement(Bl.Fragment,null,r):Mo.createElement("div",i,r):null},Q4t=function(t){var n=t.renderWithFragment,r=t.children,i=Dd(t,["renderWithFragment","children"]);return Mwe?n?Mo.createElement(Bl.Fragment,null,r):Mo.createElement("div",i,r):null},e5t=function(t){var n=t.renderWithFragment,r=t.children,i=Dd(t,["renderWithFragment","children"]);return Fwe?n?Mo.createElement(Bl.Fragment,null,r):Mo.createElement("div",i,r):null},t5t=function(t){var n=t.renderWithFragment,r=t.children,i=Dd(t,["renderWithFragment","children"]);return Gwe?n?Mo.createElement(Bl.Fragment,null,r):Mo.createElement("div",i,r):null},n5t=function(t){var n=t.renderWithFragment,r=t.children,i=Dd(t,["renderWithFragment","children"]);return fG?n?Mo.createElement(Bl.Fragment,null,r):Mo.createElement("div",i,r):null},r5t=function(t){var n=t.renderWithFragment,r=t.children,i=Dd(t,["renderWithFragment","children"]);return Ewe?n?Mo.createElement(Bl.Fragment,null,r):Mo.createElement("div",i,r):null},i5t=function(t){var n=t.renderWithFragment,r=t.children,i=Dd(t,["renderWithFragment","children"]);return Nwe?n?Mo.createElement(Bl.Fragment,null,r):Mo.createElement("div",i,r):null},o5t=function(t){var n=t.renderWithFragment,r=t.children,i=t.viewClassName,o=t.style,s=Dd(t,["renderWithFragment","children","viewClassName","style"]);return Owe?n?Mo.createElement(Bl.Fragment,null,r):Mo.createElement("div",s,r):null},s5t=function(t){var n=t.renderWithFragment,r=t.children,i=Dd(t,["renderWithFragment","children"]);return Awe?n?Mo.createElement(Bl.Fragment,null,r):Mo.createElement("div",i,r):null},a5t=function(t){var n=t.renderWithFragment,r=t.children,i=Dd(t,["renderWithFragment","children"]);return Cwe?n?Mo.createElement(Bl.Fragment,null,r):Mo.createElement("div",i,r):null},l5t=function(t){var n=t.renderWithFragment,r=t.children,i=Dd(t,["renderWithFragment","children"]);return Swe?n?Mo.createElement(Bl.Fragment,null,r):Mo.createElement("div",i,r):null},u5t=function(t){var n=t.renderWithFragment,r=t.children,i=t.viewClassName,o=t.style,s=t.condition,a=Dd(t,["renderWithFragment","children","viewClassName","style","condition"]);return s?n?Mo.createElement(Bl.Fragment,null,r):Mo.createElement("div",a,r):null};function c5t(e){return function(t){n4t(n,t);function n(r){var i;return Qxt(this,n),i=i4t(this,CZ(n).call(this,r)),i.isEventListenerAdded=!1,i.handleOrientationChange=i.handleOrientationChange.bind(cG(i)),i.onOrientationChange=i.onOrientationChange.bind(cG(i)),i.onPageLoad=i.onPageLoad.bind(cG(i)),i.state={isLandscape:!1,isPortrait:!1},i}return e4t(n,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var i=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:i===0,isLandscape:i===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window>"u"?"undefined":AP(window))!==void 0&&fG&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return Mo.createElement(e,AZ({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),n}(Mo.Component)}function d5t(){var e=Bl.useState(function(){var o=window.innerWidth>window.innerHeight?90:0;return{isPortrait:o===0,isLandscape:o===90,orientation:o===0?"portrait":"landscape"}}),t=o4t(e,2),n=t[0],r=t[1],i=Bl.useCallback(function(){var o=window.innerWidth>window.innerHeight?90:0,s={isPortrait:o===0,isLandscape:o===90,orientation:o===0?"portrait":"landscape"};n.orientation!==s.orientation&&r(s)},[n.orientation]);return Bl.useEffect(function(){return(typeof window>"u"?"undefined":AP(window))!==void 0&&fG&&(i(),window.addEventListener("load",i,!1),window.addEventListener("resize",i,!1)),function(){window.removeEventListener("resize",i,!1),window.removeEventListener("load",i,!1)}},[i]),n}function Iwe(e){var t=e||window.navigator.userAgent;return SP(t)}function p5t(e){var t=e||window.navigator.userAgent,n=Iwe(t),r=kwe(n);return[r,n]}Zt.AndroidView=U4t;Zt.BrowserTypes=Qu;Zt.BrowserView=Q4t;Zt.ConsoleView=a5t;Zt.CustomView=u5t;Zt.IEView=e5t;Zt.IOSView=t5t;Zt.MobileOnlyView=o5t;Zt.MobileView=n5t;Zt.OsTypes=_4;Zt.SmartTVView=s5t;Zt.TabletView=r5t;Zt.WearableView=l5t;Zt.WinPhoneView=i5t;Zt.browserName=B4t;Zt.browserVersion=M4t;Zt.deviceDetect=y4t;Zt.deviceType=R4t;Zt.engineName=F4t;Zt.engineVersion=I4t;Zt.fullBrowserVersion=E4t;Zt.getSelectorsByUserAgent=Z4t;Zt.getUA=z4t;Zt.isAndroid=Bwe;Zt.isBrowser=Mwe;Zt.isChrome=P4t;Zt.isChromium=b4t;Zt.isConsole=Cwe;Zt.isDesktop=w4t;Zt.isEdge=T4t;Zt.isEdgeChromium=W4t;Zt.isElectron=H4t;Zt.isEmbedded=x4t;Zt.isFirefox=k4t;Zt.isIE=Fwe;Zt.isIOS=Gwe;Zt.isIOS13=L4t;Zt.isIPad13=V4t;Zt.isIPhone13=J4t;Zt.isIPod13=j4t;Zt.isLegacyEdge=X4t;Zt.isMIUI=K4t;Zt.isMacOs=$4t;Zt.isMobile=fG;Zt.isMobileOnly=Owe;Zt.isMobileSafari=_4t;Zt.isOpera=C4t;Zt.isSafari=A4t;Zt.isSamsungBrowser=Y4t;Zt.isSmartTV=Awe;Zt.isTablet=Ewe;Zt.isWearable=Swe;Zt.isWinPhone=Nwe;Zt.isWindows=q4t;Zt.isYandex=D4t;Zt.mobileModel=G4t;Zt.mobileVendor=N4t;Zt.osName=O4t;Zt.osVersion=S4t;Zt.parseUserAgent=SP;Zt.setUserAgent=p4t;Zt.useDeviceData=Iwe;Zt.useDeviceSelectors=p5t;Zt.useMobileOrientation=d5t;Zt.withOrientationChange=c5t});var Vwe=ne((exports,module)=>{typeof navigator<"u"&&function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.lottie=t())}(exports,function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var n,r=e.length,i;for(n=0;n<r;n+=1){i=e[n].prototype;for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t.prototype[o]=i[o])}}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(n){this.audios.push(n)},pause:function(){var n,r=this.audios.length;for(n=0;n<r;n+=1)this.audios[n].pause()},resume:function(){var n,r=this.audios.length;for(n=0;n<r;n+=1)this.audios[n].resume()},setRate:function(n){var r,i=this.audios.length;for(r=0;r<i;r+=1)this.audios[r].setRate(n)},createAudio:function(n){return this.audioFactory?this.audioFactory(n):window.Howl?new window.Howl({src:[n]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(n){this.audioFactory=n},setVolume:function(n){this._volume=n,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var n,r=this.audios.length;for(n=0;n<r;n+=1)this.audios[n].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(n,r){var i=0,o=[],s;switch(n){case"int16":case"uint8c":s=1;break;default:s=1.1;break}for(i=0;i<r;i+=1)o.push(s);return o}function t(n,r){return n==="float32"?new Float32Array(r):n==="int16"?new Int16Array(r):n==="uint8c"?new Uint8ClampedArray(r):e(n,r)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?t:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function(n){return typeof n}:_typeof$6=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],t,n=e.length;for(t=0;t<n;t+=1)BMMath[e[t]]=Math[e[t]]})();function ProjectInterface$1(){return{}}BMMath.random=Math.random,BMMath.abs=function(e){var t=_typeof$6(e);if(t==="object"&&e.length){var n=createSizedArray(e.length),r,i=e.length;for(r=0;r<i;r+=1)n[r]=Math.abs(e[r]);return n}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(e){_shouldRoundValues=!!e}function bmRnd(e){return _shouldRoundValues?Math.round(e):e}function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,n,r){this.type=e,this.currentTime=t,this.totalTime=n,this.direction=r<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,n,r){this.type=e,this.currentLoop=n,this.totalLoops=t,this.direction=r<0?-1:1}function BMSegmentStartEvent(e,t,n){this.type=e,this.firstFrame=t,this.totalFrames=n}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}function BMAnimationConfigErrorEvent(e,t){this.type=e,this.nativeError=t}var createElementID=function(){var e=0;return function(){return e+=1,idPrefix$1+"__lottie_element_"+e}}();function HSVtoRGB(e,t,n){var r,i,o,s,a,l,u,c;switch(s=Math.floor(e*6),a=e*6-s,l=n*(1-t),u=n*(1-a*t),c=n*(1-(1-a)*t),s%6){case 0:r=n,i=c,o=l;break;case 1:r=u,i=n,o=l;break;case 2:r=l,i=n,o=c;break;case 3:r=l,i=u,o=n;break;case 4:r=c,i=l,o=n;break;case 5:r=n,i=l,o=u;break;default:break}return[r,i,o]}function RGBtoHSV(e,t,n){var r=Math.max(e,t,n),i=Math.min(e,t,n),o=r-i,s,a=r===0?0:o/r,l=r/255;switch(r){case i:s=0;break;case e:s=t-n+o*(t<n?6:0),s/=6*o;break;case t:s=n-e+o*2,s/=6*o;break;case n:s=e-t+o*4,s/=6*o;break;default:break}return[s,a,l]}function addSaturationToRGB(e,t){var n=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return n[1]+=t,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),HSVtoRGB(n[0],n[1],n[2])}function addBrightnessToRGB(e,t){var n=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return n[2]+=t,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),HSVtoRGB(n[0],n[1],n[2])}function addHueToRGB(e,t){var n=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return n[0]+=t/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),HSVtoRGB(n[0],n[1],n[2])}var rgbToHex=function(){var e=[],t,n;for(t=0;t<256;t+=1)n=t.toString(16),e[t]=n.length===1?"0"+n:n;return function(r,i,o){return r<0&&(r=0),i<0&&(i=0),o<0&&(o=0),"#"+e[r]+e[i]+e[o]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t},getIdPrefix=function(){return idPrefix$1};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(n){return typeof n}:_typeof$5=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$5(e)}var dataManager=function(){var e=1,t=[],n,r,i={onmessage:function(){},postMessage:function(h){n({data:h})}},o={postMessage:function(h){i.onmessage({data:h})}};function s(d){if(window.Worker&&window.Blob&&getWebWorker()){var h=new Blob(["var _workerSelf = self; self.onmessage = ",d.toString()],{type:"text/javascript"}),m=URL.createObjectURL(h);return new Worker(m)}return n=d,i}function a(){r||(r=s(function(h){function m(){function b(V,B){var N,C,S=V.length,G,T,Q,U;for(C=0;C<S;C+=1)if(N=V[C],"ks"in N&&!N.completed){if(N.completed=!0,N.hasMask){var F=N.masksProperties;for(T=F.length,G=0;G<T;G+=1)if(F[G].pt.k.i)w(F[G].pt.k);else for(U=F[G].pt.k.length,Q=0;Q<U;Q+=1)F[G].pt.k[Q].s&&w(F[G].pt.k[Q].s[0]),F[G].pt.k[Q].e&&w(F[G].pt.k[Q].e[0])}N.ty===0?(N.layers=y(N.refId,B),b(N.layers,B)):N.ty===4?_(N.shapes):N.ty===5&&ee(N)}}function v(V,B){if(V){var N=0,C=V.length;for(N=0;N<C;N+=1)V[N].t===1&&(V[N].data.layers=y(V[N].data.refId,B),b(V[N].data.layers,B))}}function x(V,B){for(var N=0,C=B.length;N<C;){if(B[N].id===V)return B[N];N+=1}return null}function y(V,B){var N=x(V,B);return N?N.layers.__used?JSON.parse(JSON.stringify(N.layers)):(N.layers.__used=!0,N.layers):null}function _(V){var B,N=V.length,C,S;for(B=N-1;B>=0;B-=1)if(V[B].ty==="sh")if(V[B].ks.k.i)w(V[B].ks.k);else for(S=V[B].ks.k.length,C=0;C<S;C+=1)V[B].ks.k[C].s&&w(V[B].ks.k[C].s[0]),V[B].ks.k[C].e&&w(V[B].ks.k[C].e[0]);else V[B].ty==="gr"&&_(V[B].it)}function w(V){var B,N=V.i.length;for(B=0;B<N;B+=1)V.i[B][0]+=V.v[B][0],V.i[B][1]+=V.v[B][1],V.o[B][0]+=V.v[B][0],V.o[B][1]+=V.v[B][1]}function k(V,B){var N=B?B.split("."):[100,100,100];return V[0]>N[0]?!0:N[0]>V[0]?!1:V[1]>N[1]?!0:N[1]>V[1]?!1:V[2]>N[2]?!0:N[2]>V[2]?!1:null}var O=function(){var V=[4,4,14];function B(C){var S=C.t.d;C.t.d={k:[{s:S,t:0}]}}function N(C){var S,G=C.length;for(S=0;S<G;S+=1)C[S].ty===5&&B(C[S])}return function(C){if(k(V,C.v)&&(N(C.layers),C.assets)){var S,G=C.assets.length;for(S=0;S<G;S+=1)C.assets[S].layers&&N(C.assets[S].layers)}}}(),M=function(){var V=[4,7,99];return function(B){if(B.chars&&!k(V,B.v)){var N,C=B.chars.length;for(N=0;N<C;N+=1){var S=B.chars[N];S.data&&S.data.shapes&&(_(S.data.shapes),S.data.ip=0,S.data.op=99999,S.data.st=0,S.data.sr=1,S.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},B.chars[N].t||(S.data.shapes.push({ty:"no"}),S.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),I=function(){var V=[5,7,15];function B(C){var S=C.t.p;typeof S.a=="number"&&(S.a={a:0,k:S.a}),typeof S.p=="number"&&(S.p={a:0,k:S.p}),typeof S.r=="number"&&(S.r={a:0,k:S.r})}function N(C){var S,G=C.length;for(S=0;S<G;S+=1)C[S].ty===5&&B(C[S])}return function(C){if(k(V,C.v)&&(N(C.layers),C.assets)){var S,G=C.assets.length;for(S=0;S<G;S+=1)C.assets[S].layers&&N(C.assets[S].layers)}}}(),W=function(){var V=[4,1,9];function B(C){var S,G=C.length,T,Q;for(S=0;S<G;S+=1)if(C[S].ty==="gr")B(C[S].it);else if(C[S].ty==="fl"||C[S].ty==="st")if(C[S].c.k&&C[S].c.k[0].i)for(Q=C[S].c.k.length,T=0;T<Q;T+=1)C[S].c.k[T].s&&(C[S].c.k[T].s[0]/=255,C[S].c.k[T].s[1]/=255,C[S].c.k[T].s[2]/=255,C[S].c.k[T].s[3]/=255),C[S].c.k[T].e&&(C[S].c.k[T].e[0]/=255,C[S].c.k[T].e[1]/=255,C[S].c.k[T].e[2]/=255,C[S].c.k[T].e[3]/=255);else C[S].c.k[0]/=255,C[S].c.k[1]/=255,C[S].c.k[2]/=255,C[S].c.k[3]/=255}function N(C){var S,G=C.length;for(S=0;S<G;S+=1)C[S].ty===4&&B(C[S].shapes)}return function(C){if(k(V,C.v)&&(N(C.layers),C.assets)){var S,G=C.assets.length;for(S=0;S<G;S+=1)C.assets[S].layers&&N(C.assets[S].layers)}}}(),J=function(){var V=[4,4,18];function B(C){var S,G=C.length,T,Q;for(S=G-1;S>=0;S-=1)if(C[S].ty==="sh")if(C[S].ks.k.i)C[S].ks.k.c=C[S].closed;else for(Q=C[S].ks.k.length,T=0;T<Q;T+=1)C[S].ks.k[T].s&&(C[S].ks.k[T].s[0].c=C[S].closed),C[S].ks.k[T].e&&(C[S].ks.k[T].e[0].c=C[S].closed);else C[S].ty==="gr"&&B(C[S].it)}function N(C){var S,G,T=C.length,Q,U,F,D;for(G=0;G<T;G+=1){if(S=C[G],S.hasMask){var L=S.masksProperties;for(U=L.length,Q=0;Q<U;Q+=1)if(L[Q].pt.k.i)L[Q].pt.k.c=L[Q].cl;else for(D=L[Q].pt.k.length,F=0;F<D;F+=1)L[Q].pt.k[F].s&&(L[Q].pt.k[F].s[0].c=L[Q].cl),L[Q].pt.k[F].e&&(L[Q].pt.k[F].e[0].c=L[Q].cl)}S.ty===4&&B(S.shapes)}}return function(C){if(k(V,C.v)&&(N(C.layers),C.assets)){var S,G=C.assets.length;for(S=0;S<G;S+=1)C.assets[S].layers&&N(C.assets[S].layers)}}}();function H(V){V.__complete||(W(V),O(V),M(V),I(V),J(V),b(V.layers,V.assets),v(V.chars,V.assets),V.__complete=!0)}function ee(V){V.t.a.length===0&&"m"in V.t.p}var j={};return j.completeData=H,j.checkColors=W,j.checkChars=M,j.checkPathProperties=I,j.checkShapes=J,j.completeLayers=b,j}if(o.dataManager||(o.dataManager=m()),o.assetLoader||(o.assetLoader=function(){function b(x){var y=x.getResponseHeader("content-type");return y&&x.responseType==="json"&&y.indexOf("json")!==-1||x.response&&_typeof$5(x.response)==="object"?x.response:x.response&&typeof x.response=="string"?JSON.parse(x.response):x.responseText?JSON.parse(x.responseText):null}function v(x,y,_,w){var k,O=new XMLHttpRequest;try{O.responseType="json"}catch{}O.onreadystatechange=function(){if(O.readyState===4)if(O.status===200)k=b(O),_(k);else try{k=b(O),_(k)}catch(M){w&&w(M)}};try{O.open(["G","E","T"].join(""),x,!0)}catch{O.open(["G","E","T"].join(""),y+"/"+x,!0)}O.send()}return{load:v}}()),h.data.type==="loadAnimation")o.assetLoader.load(h.data.path,h.data.fullPath,function(b){o.dataManager.completeData(b),o.postMessage({id:h.data.id,payload:b,status:"success"})},function(){o.postMessage({id:h.data.id,status:"error"})});else if(h.data.type==="complete"){var g=h.data.animation;o.dataManager.completeData(g),o.postMessage({id:h.data.id,payload:g,status:"success"})}else h.data.type==="loadData"&&o.assetLoader.load(h.data.path,h.data.fullPath,function(b){o.postMessage({id:h.data.id,payload:b,status:"success"})},function(){o.postMessage({id:h.data.id,status:"error"})})}),r.onmessage=function(d){var h=d.data,m=h.id,g=t[m];t[m]=null,h.status==="success"?g.onComplete(h.payload):g.onError&&g.onError()})}function l(d,h){e+=1;var m="processId_"+e;return t[m]={onComplete:d,onError:h},m}function u(d,h,m){a();var g=l(h,m);r.postMessage({type:"loadAnimation",path:d,fullPath:window.location.origin+window.location.pathname,id:g})}function c(d,h,m){a();var g=l(h,m);r.postMessage({type:"loadData",path:d,fullPath:window.location.origin+window.location.pathname,id:g})}function f(d,h,m){a();var g=l(h,m);r.postMessage({type:"complete",animation:d,id:g})}return{loadAnimation:u,loadData:c,completeAnimation:f}}(),ImagePreloader=function(){var e=function(){var v=createTag("canvas");v.width=1,v.height=1;var x=v.getContext("2d");return x.fillStyle="rgba(0,0,0,0)",x.fillRect(0,0,1,1),v}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(v,x,y){var _="";if(v.e)_=v.p;else if(x){var w=v.p;w.indexOf("images/")!==-1&&(w=w.split("/")[1]),_=x+w}else _=y,_+=v.u?v.u:"",_+=v.p;return _}function i(v){var x=0,y=setInterval(function(){var _=v.getBBox();(_.width||x>500)&&(this._imageLoaded(),clearInterval(y)),x+=1}.bind(this),50)}function o(v){var x=r(v,this.assetsPath,this.path),y=createNS("image");isSafari?this.testImageLoaded(y):y.addEventListener("load",this._imageLoaded,!1),y.addEventListener("error",function(){_.img=e,this._imageLoaded()}.bind(this),!1),y.setAttributeNS("http://www.w3.org/1999/xlink","href",x),this._elementHelper.append?this._elementHelper.append(y):this._elementHelper.appendChild(y);var _={img:y,assetData:v};return _}function s(v){var x=r(v,this.assetsPath,this.path),y=createTag("img");y.crossOrigin="anonymous",y.addEventListener("load",this._imageLoaded,!1),y.addEventListener("error",function(){_.img=e,this._imageLoaded()}.bind(this),!1),y.src=x;var _={img:y,assetData:v};return _}function a(v){var x={assetData:v},y=r(v,this.assetsPath,this.path);return dataManager.loadData(y,function(_){x.img=_,this._footageLoaded()}.bind(this),function(){x.img={},this._footageLoaded()}.bind(this)),x}function l(v,x){this.imagesLoadedCb=x;var y,_=v.length;for(y=0;y<_;y+=1)v[y].layers||(!v[y].t||v[y].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(v[y]))):v[y].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(v[y]))))}function u(v){this.path=v||""}function c(v){this.assetsPath=v||""}function f(v){for(var x=0,y=this.images.length;x<y;){if(this.images[x].assetData===v)return this.images[x].img;x+=1}return null}function d(){this.imagesLoadedCb=null,this.images.length=0}function h(){return this.totalImages===this.loadedAssets}function m(){return this.totalFootages===this.loadedFootagesCount}function g(v,x){v==="svg"?(this._elementHelper=x,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function b(){this._imageLoaded=t.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=a.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return b.prototype={loadAssets:l,setAssetsPath:c,setPath:u,loadedImages:h,loadedFootages:m,destroy:d,getAsset:f,createImgData:s,createImageData:o,imageLoaded:t,footageLoaded:n,setCacheType:g},b}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,n){if(this._cbs[t])for(var r=this._cbs[t],i=0;i<r.length;i+=1)r[i](n)},addEventListener:function(t,n){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(n),function(){this.removeEventListener(t,n)}.bind(this)},removeEventListener:function(t,n){if(!n)this._cbs[t]=null;else if(this._cbs[t]){for(var r=0,i=this._cbs[t].length;r<i;)this._cbs[t][r]===n&&(this._cbs[t].splice(r,1),r-=1,i-=1),r+=1;this._cbs[t].length||(this._cbs[t]=null)}}};var markerParser=function(){function e(t){for(var n=t.split(`\r
`),r={},i,o=0,s=0;s<n.length;s+=1)i=n[s].split(":"),i.length===2&&(r[i[0]]=i[1].trim(),o+=1);if(o===0)throw new Error;return r}return function(t){for(var n=[],r=0;r<t.length;r+=1){var i=t[r],o={time:i.tm,duration:i.dr};try{o.payload=JSON.parse(t[r].cm)}catch{try{o.payload=e(t[r].cm)}catch{o.payload={name:t[r].cm}}}n.push(o)}return n}}(),ProjectInterface=function(){function e(t){this.compositions.push(t)}return function(){function t(n){for(var r=0,i=this.compositions.length;r<i;){if(this.compositions[r].data&&this.compositions[r].data.nm===n)return this.compositions[r].prepareFrame&&this.compositions[r].data.xt&&this.compositions[r].prepareFrame(this.currentFrame),this.compositions[r].compInterface;r+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(t,n){renderers[t]=n};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$4=function(n){return typeof n}:_typeof$4=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var n=getRenderer(t);this.renderer=new n(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&_typeof$4(t)!=="object"&&(t=JSON.parse(t));var n={wrapper:e,animationData:t},r=e.attributes;n.path=r.getNamedItem("data-animation-path")?r.getNamedItem("data-animation-path").value:r.getNamedItem("data-bm-path")?r.getNamedItem("data-bm-path").value:r.getNamedItem("bm-path")?r.getNamedItem("bm-path").value:"",n.animType=r.getNamedItem("data-anim-type")?r.getNamedItem("data-anim-type").value:r.getNamedItem("data-bm-type")?r.getNamedItem("data-bm-type").value:r.getNamedItem("bm-type")?r.getNamedItem("bm-type").value:r.getNamedItem("data-bm-renderer")?r.getNamedItem("data-bm-renderer").value:r.getNamedItem("bm-renderer")?r.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var i=r.getNamedItem("data-anim-loop")?r.getNamedItem("data-anim-loop").value:r.getNamedItem("data-bm-loop")?r.getNamedItem("data-bm-loop").value:r.getNamedItem("bm-loop")?r.getNamedItem("bm-loop").value:"";i==="false"?n.loop=!1:i==="true"?n.loop=!0:i!==""&&(n.loop=parseInt(i,10));var o=r.getNamedItem("data-anim-autoplay")?r.getNamedItem("data-anim-autoplay").value:r.getNamedItem("data-bm-autoplay")?r.getNamedItem("data-bm-autoplay").value:r.getNamedItem("bm-autoplay")?r.getNamedItem("bm-autoplay").value:!0;n.autoplay=o!=="false",n.name=r.getNamedItem("data-name")?r.getNamedItem("data-name").value:r.getNamedItem("data-bm-name")?r.getNamedItem("data-bm-name").value:r.getNamedItem("bm-name")?r.getNamedItem("bm-name").value:"";var s=r.getNamedItem("data-anim-prerender")?r.getNamedItem("data-anim-prerender").value:r.getNamedItem("data-bm-prerender")?r.getNamedItem("data-bm-prerender").value:r.getNamedItem("bm-prerender")?r.getNamedItem("bm-prerender").value:"";s==="false"&&(n.prerender=!1),n.path?this.setParams(n):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t=this.animationData.layers,n,r=t.length,i=e.layers,o,s=i.length;for(o=0;o<s;o+=1)for(n=0;n<r;){if(t[n].id===i[o].id){t[n]=i[o];break}n+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(r=e.assets.length,n=0;n<r;n+=1)this.animationData.assets.push(e.assets[n]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var t=e.shift();this.timeCompleted=t.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(n,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(!!this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){!this.renderer||(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var n=typeof e=="number"?e:void 0,r=typeof t=="number"?t:void 0;this.renderer.updateContainerSize(n,r)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.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(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,n=0;n<this.markers.length;n+=1)if(t=this.markers[n],t.payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,n){if(!(n&&this.name!==n)){var r=Number(e);if(isNaN(r)){var i=this.getMarkerData(e);i&&this.goToAndStop(i.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,n){if(!(n&&this.name!==n)){var r=Number(e);if(isNaN(r)){var i=this.getMarkerData(e);i&&(i.duration?this.playSegments([i.time,i.time+i.duration],!0):this.goToAndStop(i.time,!0))}else this.goToAndStop(r,t,n);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var t=this.currentRawFrame+e*this.frameModifier,n=!1;t>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(n=!0,t=this.totalFrames-1):t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):t<0?this.checkSegments(t%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(n=!0,t=0)):this.setCurrentRawFrameValue(t),n&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>t&&(n=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,n!==-1&&this.goToAndStop(n,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),_typeof$4(e[0])==="object"){var n,r=e.length;for(n=0;n<r;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var n=e.p;n.indexOf("images/")!==-1&&(n=n.split("/")[1]),t=this.assetsPath+n}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,n=this.assets.length;t<n;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,n){try{var r=this.renderer.getElementByPath(e);r.updateDocumentData(t,n)}catch{}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],n=0,r=0,i=0,o=!0,s=!1;function a(B){for(var N=0,C=B.target;N<r;)t[N].animation===C&&(t.splice(N,1),N-=1,r-=1,C.isPaused||f()),N+=1}function l(B,N){if(!B)return null;for(var C=0;C<r;){if(t[C].elem===B&&t[C].elem!==null)return t[C].animation;C+=1}var S=new AnimationItem;return d(S,B),S.setData(B,N),S}function u(){var B,N=t.length,C=[];for(B=0;B<N;B+=1)C.push(t[B].animation);return C}function c(){i+=1,W()}function f(){i-=1}function d(B,N){B.addEventListener("destroy",a),B.addEventListener("_active",c),B.addEventListener("_idle",f),t.push({elem:N,animation:B}),r+=1}function h(B){var N=new AnimationItem;return d(N,null),N.setParams(B),N}function m(B,N){var C;for(C=0;C<r;C+=1)t[C].animation.setSpeed(B,N)}function g(B,N){var C;for(C=0;C<r;C+=1)t[C].animation.setDirection(B,N)}function b(B){var N;for(N=0;N<r;N+=1)t[N].animation.play(B)}function v(B){var N=B-n,C;for(C=0;C<r;C+=1)t[C].animation.advanceTime(N);n=B,i&&!s?window.requestAnimationFrame(v):o=!0}function x(B){n=B,window.requestAnimationFrame(v)}function y(B){var N;for(N=0;N<r;N+=1)t[N].animation.pause(B)}function _(B,N,C){var S;for(S=0;S<r;S+=1)t[S].animation.goToAndStop(B,N,C)}function w(B){var N;for(N=0;N<r;N+=1)t[N].animation.stop(B)}function k(B){var N;for(N=0;N<r;N+=1)t[N].animation.togglePause(B)}function O(B){var N;for(N=r-1;N>=0;N-=1)t[N].animation.destroy(B)}function M(B,N,C){var S=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),G,T=S.length;for(G=0;G<T;G+=1)C&&S[G].setAttribute("data-bm-type",C),l(S[G],B);if(N&&T===0){C||(C="svg");var Q=document.getElementsByTagName("body")[0];Q.innerText="";var U=createTag("div");U.style.width="100%",U.style.height="100%",U.setAttribute("data-bm-type",C),Q.appendChild(U),l(U,B)}}function I(){var B;for(B=0;B<r;B+=1)t[B].animation.resize()}function W(){!s&&i&&o&&(window.requestAnimationFrame(x),o=!1)}function J(){s=!0}function H(){s=!1,W()}function ee(B,N){var C;for(C=0;C<r;C+=1)t[C].animation.setVolume(B,N)}function j(B){var N;for(N=0;N<r;N+=1)t[N].animation.mute(B)}function V(B){var N;for(N=0;N<r;N+=1)t[N].animation.unmute(B)}return e.registerAnimation=l,e.loadAnimation=h,e.setSpeed=m,e.setDirection=g,e.play=b,e.pause=y,e.stop=w,e.togglePause=k,e.searchAnimations=M,e.resize=I,e.goToAndStop=_,e.destroy=O,e.freeze=J,e.unfreeze=H,e.setVolume=ee,e.mute=j,e.unmute=V,e.getRegisteredAnimations=u,e}(),BezierFactory=function(){var e={};e.getBezierEasing=n;var t={};function n(x,y,_,w,k){var O=k||("bez_"+x+"_"+y+"_"+_+"_"+w).replace(/\./g,"p");if(t[O])return t[O];var M=new v([x,y,_,w]);return t[O]=M,M}var r=4,i=.001,o=1e-7,s=10,a=11,l=1/(a-1),u=typeof Float32Array=="function";function c(x,y){return 1-3*y+3*x}function f(x,y){return 3*y-6*x}function d(x){return 3*x}function h(x,y,_){return((c(y,_)*x+f(y,_))*x+d(y))*x}function m(x,y,_){return 3*c(y,_)*x*x+2*f(y,_)*x+d(y)}function g(x,y,_,w,k){var O,M,I=0;do M=y+(_-y)/2,O=h(M,w,k)-x,O>0?_=M:y=M;while(Math.abs(O)>o&&++I<s);return M}function b(x,y,_,w){for(var k=0;k<r;++k){var O=m(y,_,w);if(O===0)return y;var M=h(y,_,w)-x;y-=M/O}return y}function v(x){this._p=x,this._mSampleValues=u?new Float32Array(a):new Array(a),this._precomputed=!1,this.get=this.get.bind(this)}return v.prototype={get:function(y){var _=this._p[0],w=this._p[1],k=this._p[2],O=this._p[3];return this._precomputed||this._precompute(),_===w&&k===O?y:y===0?0:y===1?1:h(this._getTForX(y),w,O)},_precompute:function(){var y=this._p[0],_=this._p[1],w=this._p[2],k=this._p[3];this._precomputed=!0,(y!==_||w!==k)&&this._calcSampleValues()},_calcSampleValues:function(){for(var y=this._p[0],_=this._p[2],w=0;w<a;++w)this._mSampleValues[w]=h(w*l,y,_)},_getTForX:function(y){for(var _=this._p[0],w=this._p[2],k=this._mSampleValues,O=0,M=1,I=a-1;M!==I&&k[M]<=y;++M)O+=l;--M;var W=(y-k[M])/(k[M+1]-k[M]),J=O+W*l,H=m(J,_,w);return H>=i?b(y,J,_,w):H===0?J:g(y,O,O+l,_,w)}},e}(),pooling=function(){function e(t){return t.concat(createSizedArray(t.length))}return{double:e}}(),poolFactory=function(){return function(e,t,n){var r=0,i=e,o=createSizedArray(i),s={newElement:a,release:l};function a(){var u;return r?(r-=1,u=o[r]):u=t(),u}function l(u){r===i&&(o=pooling.double(o),i*=2),n&&n(u),o[r]=u,r+=1}return s}}(),bezierLengthPool=function(){function e(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,e)}(),segmentsLengthPool=function(){function e(){return{lengths:[],totalLength:0}}function t(n){var r,i=n.lengths.length;for(r=0;r<i;r+=1)bezierLengthPool.release(n.lengths[r]);n.lengths.length=0}return poolFactory(8,e,t)}();function bezFunction(){var e=Math;function t(d,h,m,g,b,v){var x=d*g+h*b+m*v-b*g-v*d-m*h;return x>-.001&&x<.001}function n(d,h,m,g,b,v,x,y,_){if(m===0&&v===0&&_===0)return t(d,h,g,b,x,y);var w=e.sqrt(e.pow(g-d,2)+e.pow(b-h,2)+e.pow(v-m,2)),k=e.sqrt(e.pow(x-d,2)+e.pow(y-h,2)+e.pow(_-m,2)),O=e.sqrt(e.pow(x-g,2)+e.pow(y-b,2)+e.pow(_-v,2)),M;return w>k?w>O?M=w-k-O:M=O-k-w:O>k?M=O-k-w:M=k-w-O,M>-1e-4&&M<1e-4}var r=function(){return function(d,h,m,g){var b=getDefaultCurveSegments(),v,x,y,_,w,k=0,O,M=[],I=[],W=bezierLengthPool.newElement();for(y=m.length,v=0;v<b;v+=1){for(w=v/(b-1),O=0,x=0;x<y;x+=1)_=bmPow(1-w,3)*d[x]+3*bmPow(1-w,2)*w*m[x]+3*(1-w)*bmPow(w,2)*g[x]+bmPow(w,3)*h[x],M[x]=_,I[x]!==null&&(O+=bmPow(M[x]-I[x],2)),I[x]=M[x];O&&(O=bmSqrt(O),k+=O),W.percents[v]=w,W.lengths[v]=k}return W.addedLength=k,W}}();function i(d){var h=segmentsLengthPool.newElement(),m=d.c,g=d.v,b=d.o,v=d.i,x,y=d._length,_=h.lengths,w=0;for(x=0;x<y-1;x+=1)_[x]=r(g[x],g[x+1],b[x],v[x+1]),w+=_[x].addedLength;return m&&y&&(_[x]=r(g[x],g[0],b[x],v[0]),w+=_[x].addedLength),h.totalLength=w,h}function o(d){this.segmentLength=0,this.points=new Array(d)}function s(d,h){this.partialLength=d,this.point=h}var a=function(){var d={};return function(h,m,g,b){var v=(h[0]+"_"+h[1]+"_"+m[0]+"_"+m[1]+"_"+g[0]+"_"+g[1]+"_"+b[0]+"_"+b[1]).replace(/\./g,"p");if(!d[v]){var x=getDefaultCurveSegments(),y,_,w,k,O,M=0,I,W,J=null;h.length===2&&(h[0]!==m[0]||h[1]!==m[1])&&t(h[0],h[1],m[0],m[1],h[0]+g[0],h[1]+g[1])&&t(h[0],h[1],m[0],m[1],m[0]+b[0],m[1]+b[1])&&(x=2);var H=new o(x);for(w=g.length,y=0;y<x;y+=1){for(W=createSizedArray(w),O=y/(x-1),I=0,_=0;_<w;_+=1)k=bmPow(1-O,3)*h[_]+3*bmPow(1-O,2)*O*(h[_]+g[_])+3*(1-O)*bmPow(O,2)*(m[_]+b[_])+bmPow(O,3)*m[_],W[_]=k,J!==null&&(I+=bmPow(W[_]-J[_],2));I=bmSqrt(I),M+=I,H.points[y]=new s(I,W),J=W}H.segmentLength=M,d[v]=H}return d[v]}}();function l(d,h){var m=h.percents,g=h.lengths,b=m.length,v=bmFloor((b-1)*d),x=d*h.addedLength,y=0;if(v===b-1||v===0||x===g[v])return m[v];for(var _=g[v]>x?-1:1,w=!0;w;)if(g[v]<=x&&g[v+1]>x?(y=(x-g[v])/(g[v+1]-g[v]),w=!1):v+=_,v<0||v>=b-1){if(v===b-1)return m[v];w=!1}return m[v]+(m[v+1]-m[v])*y}function u(d,h,m,g,b,v){var x=l(b,v),y=1-x,_=e.round((y*y*y*d[0]+(x*y*y+y*x*y+y*y*x)*m[0]+(x*x*y+y*x*x+x*y*x)*g[0]+x*x*x*h[0])*1e3)/1e3,w=e.round((y*y*y*d[1]+(x*y*y+y*x*y+y*y*x)*m[1]+(x*x*y+y*x*x+x*y*x)*g[1]+x*x*x*h[1])*1e3)/1e3;return[_,w]}var c=createTypedArray("float32",8);function f(d,h,m,g,b,v,x){b<0?b=0:b>1&&(b=1);var y=l(b,x);v=v>1?1:v;var _=l(v,x),w,k=d.length,O=1-y,M=1-_,I=O*O*O,W=y*O*O*3,J=y*y*O*3,H=y*y*y,ee=O*O*M,j=y*O*M+O*y*M+O*O*_,V=y*y*M+O*y*_+y*O*_,B=y*y*_,N=O*M*M,C=y*M*M+O*_*M+O*M*_,S=y*_*M+O*_*_+y*M*_,G=y*_*_,T=M*M*M,Q=_*M*M+M*_*M+M*M*_,U=_*_*M+M*_*_+_*M*_,F=_*_*_;for(w=0;w<k;w+=1)c[w*4]=e.round((I*d[w]+W*m[w]+J*g[w]+H*h[w])*1e3)/1e3,c[w*4+1]=e.round((ee*d[w]+j*m[w]+V*g[w]+B*h[w])*1e3)/1e3,c[w*4+2]=e.round((N*d[w]+C*m[w]+S*g[w]+G*h[w])*1e3)/1e3,c[w*4+3]=e.round((T*d[w]+Q*m[w]+U*g[w]+F*h[w])*1e3)/1e3;return c}return{getSegmentsLength:i,getNewSegment:f,getPointInSegment:u,buildBezierData:a,pointOnLine2D:t,pointOnLine3D:n}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var n=this.offsetTime,r;this.propType==="multidimensional"&&(r=createTypedArray("float32",this.pv.length));for(var i=t.lastIndex,o=i,s=this.keyframes.length-1,a=!0,l,u,c;a;){if(l=this.keyframes[o],u=this.keyframes[o+1],o===s-1&&e>=u.t-n){l.h&&(l=u),i=0;break}if(u.t-n>e){i=o;break}o<s-1?o+=1:(i=0,a=!1)}c=this.keyframesMetadata[o]||{};var f,d,h,m,g,b,v=u.t-n,x=l.t-n,y;if(l.to){c.bezierData||(c.bezierData=bez.buildBezierData(l.s,u.s||l.e,l.to,l.ti));var _=c.bezierData;if(e>=v||e<x){var w=e>=v?_.points.length-1:0;for(d=_.points[w].point.length,f=0;f<d;f+=1)r[f]=_.points[w].point[f]}else{c.__fnct?b=c.__fnct:(b=BezierFactory.getBezierEasing(l.o.x,l.o.y,l.i.x,l.i.y,l.n).get,c.__fnct=b),h=b((e-x)/(v-x));var k=_.segmentLength*h,O,M=t.lastFrame<e&&t._lastKeyframeIndex===o?t._lastAddedLength:0;for(g=t.lastFrame<e&&t._lastKeyframeIndex===o?t._lastPoint:0,a=!0,m=_.points.length;a;){if(M+=_.points[g].partialLength,k===0||h===0||g===_.points.length-1){for(d=_.points[g].point.length,f=0;f<d;f+=1)r[f]=_.points[g].point[f];break}else if(k>=M&&k<M+_.points[g+1].partialLength){for(O=(k-M)/_.points[g+1].partialLength,d=_.points[g].point.length,f=0;f<d;f+=1)r[f]=_.points[g].point[f]+(_.points[g+1].point[f]-_.points[g].point[f])*O;break}g<m-1?g+=1:a=!1}t._lastPoint=g,t._lastAddedLength=M-_.points[g].partialLength,t._lastKeyframeIndex=o}}else{var I,W,J,H,ee;if(s=l.s.length,y=u.s||l.e,this.sh&&l.h!==1)if(e>=v)r[0]=y[0],r[1]=y[1],r[2]=y[2];else if(e<=x)r[0]=l.s[0],r[1]=l.s[1],r[2]=l.s[2];else{var j=createQuaternion(l.s),V=createQuaternion(y),B=(e-x)/(v-x);quaternionToEuler(r,slerp(j,V,B))}else for(o=0;o<s;o+=1)l.h!==1&&(e>=v?h=1:e<x?h=0:(l.o.x.constructor===Array?(c.__fnct||(c.__fnct=[]),c.__fnct[o]?b=c.__fnct[o]:(I=l.o.x[o]===void 0?l.o.x[0]:l.o.x[o],W=l.o.y[o]===void 0?l.o.y[0]:l.o.y[o],J=l.i.x[o]===void 0?l.i.x[0]:l.i.x[o],H=l.i.y[o]===void 0?l.i.y[0]:l.i.y[o],b=BezierFactory.getBezierEasing(I,W,J,H).get,c.__fnct[o]=b)):c.__fnct?b=c.__fnct:(I=l.o.x,W=l.o.y,J=l.i.x,H=l.i.y,b=BezierFactory.getBezierEasing(I,W,J,H).get,l.keyframeMetadata=b),h=b((e-x)/(v-x)))),y=u.s||l.e,ee=l.h===1?l.s[o]:l.s[o]+(y[o]-l.s[o])*h,this.propType==="multidimensional"?r[o]=ee:r=ee}return t.lastIndex=i,r}function slerp(e,t,n){var r=[],i=e[0],o=e[1],s=e[2],a=e[3],l=t[0],u=t[1],c=t[2],f=t[3],d,h,m,g,b;return h=i*l+o*u+s*c+a*f,h<0&&(h=-h,l=-l,u=-u,c=-c,f=-f),1-h>1e-6?(d=Math.acos(h),m=Math.sin(d),g=Math.sin((1-n)*d)/m,b=Math.sin(n*d)/m):(g=1-n,b=n),r[0]=g*i+b*l,r[1]=g*o+b*u,r[2]=g*s+b*c,r[3]=g*a+b*f,r}function quaternionToEuler(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],s=Math.atan2(2*r*o-2*n*i,1-2*r*r-2*i*i),a=Math.asin(2*n*r+2*i*o),l=Math.atan2(2*n*o-2*r*i,1-2*n*n-2*i*i);e[0]=s/degToRads,e[1]=a/degToRads,e[2]=l/degToRads}function createQuaternion(e){var t=e[0]*degToRads,n=e[1]*degToRads,r=e[2]*degToRads,i=Math.cos(t/2),o=Math.cos(n/2),s=Math.cos(r/2),a=Math.sin(t/2),l=Math.sin(n/2),u=Math.sin(r/2),c=i*o*s-a*l*u,f=a*l*s+i*o*u,d=a*o*s+i*l*u,h=i*l*s-a*o*u;return[f,d,h,c]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(e,this._caching);this.pv=r}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if(this.propType==="unidimensional")t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var n=0,r=this.v.length;n<r;)t=e[n]*this.mult,mathAbs(this.v[n]-t)>1e-5&&(this.v[n]=t,this._mdf=!0),n+=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 e,t=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,n,r){this.propType="unidimensional",this.mult=n||1,this.data=t,this.v=n?t.k*n:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,n,r){this.propType="multidimensional",this.mult=n||1,this.data=t,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var i,o=t.k.length;for(this.v=createTypedArray("float32",o),this.pv=createTypedArray("float32",o),this.vel=createTypedArray("float32",o),i=0;i<o;i+=1)this.v[i]=t.k[i]*this.mult,this.pv[i]=t.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,n,r){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=n||1,this.elem=e,this.container=r,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,n,r){this.propType="multidimensional";var i,o=t.k.length,s,a,l,u;for(i=0;i<o-1;i+=1)t.k[i].to&&t.k[i].s&&t.k[i+1]&&t.k[i+1].s&&(s=t.k[i].s,a=t.k[i+1].s,l=t.k[i].to,u=t.k[i].ti,(s.length===2&&!(s[0]===a[0]&&s[1]===a[1])&&bez.pointOnLine2D(s[0],s[1],a[0],a[1],s[0]+l[0],s[1]+l[1])&&bez.pointOnLine2D(s[0],s[1],a[0],a[1],a[0]+u[0],a[1]+u[1])||s.length===3&&!(s[0]===a[0]&&s[1]===a[1]&&s[2]===a[2])&&bez.pointOnLine3D(s[0],s[1],s[2],a[0],a[1],a[2],s[0]+l[0],s[1]+l[1],s[2]+l[2])&&bez.pointOnLine3D(s[0],s[1],s[2],a[0],a[1],a[2],a[0]+u[0],a[1]+u[1],a[2]+u[2]))&&(t.k[i].to=null,t.k[i].ti=null),s[0]===a[0]&&s[1]===a[1]&&l[0]===0&&l[1]===0&&u[0]===0&&u[1]===0&&(s.length===2||s[2]===a[2]&&l[2]===0&&u[2]===0)&&(t.k[i].to=null,t.k[i].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=e,this.container=r,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var c=t.k[0].s.length;for(this.v=createTypedArray("float32",c),this.pv=createTypedArray("float32",c),i=0;i<c;i+=1)this.v[i]=initFrame,this.pv[i]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",c)},this.addEffect=addEffect}var PropertyFactory=function(){function e(n,r,i,o,s){r.sid&&(r=n.globalData.slotManager.getProp(r));var a;if(!r.k.length)a=new ValueProperty(n,r,o,s);else if(typeof r.k[0]=="number")a=new MultiDimensionalProperty(n,r,o,s);else switch(i){case 0:a=new KeyframedValueProperty(n,r,o,s);break;case 1:a=new KeyframedMultidimensionalProperty(n,r,o,s);break;default:break}return a.effectsSequence.length&&s.addDynamicProperty(a),a}var t={getProp:e};return t}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var t,n=this.dynamicProperties.length;for(t=0;t<n;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){function e(){return createTypedArray("float32",2)}return poolFactory(8,e)}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var n=0;n<t;)this.v[n]=pointPool.newElement(),this.o[n]=pointPool.newElement(),this.i[n]=pointPool.newElement(),n+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,n,r,i){var o;switch(this._length=Math.max(this._length,r+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":o=this.v;break;case"i":o=this.i;break;case"o":o=this.o;break;default:o=[];break}(!o[r]||o[r]&&!i)&&(o[r]=pointPool.newElement()),o[r][0]=e,o[r][1]=t},ShapePath.prototype.setTripleAt=function(e,t,n,r,i,o,s,a){this.setXYAt(e,t,"v",s,a),this.setXYAt(n,r,"o",s,a),this.setXYAt(i,o,"i",s,a)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,n=this.o,r=this.i,i=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],r[0][0],r[0][1],n[0][0],n[0][1],0,!1),i=1);var o=this._length-1,s=this._length,a;for(a=i;a<s;a+=1)e.setTripleAt(t[o][0],t[o][1],r[o][0],r[o][1],n[o][0],n[o][1],a,!1),o-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function e(){return new ShapePath}function t(i){var o=i._length,s;for(s=0;s<o;s+=1)pointPool.release(i.v[s]),pointPool.release(i.i[s]),pointPool.release(i.o[s]),i.v[s]=null,i.i[s]=null,i.o[s]=null;i._length=0,i.c=!1}function n(i){var o=r.newElement(),s,a=i._length===void 0?i.v.length:i._length;for(o.setLength(a),o.c=i.c,s=0;s<a;s+=1)o.setTripleAt(i.v[s][0],i.v[s][1],i.o[s][0],i.o[s][1],i.i[s][0],i.i[s][1],s);return o}var r=poolFactory(4,e,t);return r.clone=n,r}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=function(){var e={newShapeCollection:i,release:o},t=0,n=4,r=createSizedArray(n);function i(){var s;return t?(t-=1,s=r[t]):s=new ShapeCollection,s}function o(s){var a,l=s._length;for(a=0;a<l;a+=1)shapePool.release(s.shapes[a]);s._length=0,t===n&&(r=pooling.double(r),n*=2),r[t]=s,t+=1}return e}(),ShapePropertyFactory=function(){var e=-999999;function t(v,x,y){var _=y.lastIndex,w,k,O,M,I,W,J,H,ee,j=this.keyframes;if(v<j[0].t-this.offsetTime)w=j[0].s[0],O=!0,_=0;else if(v>=j[j.length-1].t-this.offsetTime)w=j[j.length-1].s?j[j.length-1].s[0]:j[j.length-2].e[0],O=!0;else{for(var V=_,B=j.length-1,N=!0,C,S,G;N&&(C=j[V],S=j[V+1],!(S.t-this.offsetTime>v));)V<B-1?V+=1:N=!1;if(G=this.keyframesMetadata[V]||{},O=C.h===1,_=V,!O){if(v>=S.t-this.offsetTime)H=1;else if(v<C.t-this.offsetTime)H=0;else{var T;G.__fnct?T=G.__fnct:(T=BezierFactory.getBezierEasing(C.o.x,C.o.y,C.i.x,C.i.y).get,G.__fnct=T),H=T((v-(C.t-this.offsetTime))/(S.t-this.offsetTime-(C.t-this.offsetTime)))}k=S.s?S.s[0]:C.e[0]}w=C.s[0]}for(W=x._length,J=w.i[0].length,y.lastIndex=_,M=0;M<W;M+=1)for(I=0;I<J;I+=1)ee=O?w.i[M][I]:w.i[M][I]+(k.i[M][I]-w.i[M][I])*H,x.i[M][I]=ee,ee=O?w.o[M][I]:w.o[M][I]+(k.o[M][I]-w.o[M][I])*H,x.o[M][I]=ee,ee=O?w.v[M][I]:w.v[M][I]+(k.v[M][I]-w.v[M][I])*H,x.v[M][I]=ee}function n(){var v=this.comp.renderedFrame-this.offsetTime,x=this.keyframes[0].t-this.offsetTime,y=this.keyframes[this.keyframes.length-1].t-this.offsetTime,_=this._caching.lastFrame;return _!==e&&(_<x&&v<x||_>y&&v>y)||(this._caching.lastIndex=_<v?this._caching.lastIndex:0,this.interpolateShape(v,this.pv,this._caching)),this._caching.lastFrame=v,this.pv}function r(){this.paths=this.localShapeCollection}function i(v,x){if(v._length!==x._length||v.c!==x.c)return!1;var y,_=v._length;for(y=0;y<_;y+=1)if(v.v[y][0]!==x.v[y][0]||v.v[y][1]!==x.v[y][1]||v.o[y][0]!==x.o[y][0]||v.o[y][1]!==x.o[y][1]||v.i[y][0]!==x.i[y][0]||v.i[y][1]!==x.i[y][1])return!1;return!0}function o(v){i(this.v,v)||(this.v=shapePool.clone(v),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function s(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var v;this.kf?v=this.pv:this.data.ks?v=this.data.ks.k:v=this.data.pt.k;var x,y=this.effectsSequence.length;for(x=0;x<y;x+=1)v=this.effectsSequence[x](v);this.setVValue(v),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function a(v,x,y){this.propType="shape",this.comp=v.comp,this.container=v,this.elem=v,this.data=x,this.k=!1,this.kf=!1,this._mdf=!1;var _=y===3?x.pt.k:x.ks.k;this.v=shapePool.clone(_),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function l(v){this.effectsSequence.push(v),this.container.addDynamicProperty(this)}a.prototype.interpolateShape=t,a.prototype.getValue=s,a.prototype.setVValue=o,a.prototype.addEffect=l;function u(v,x,y){this.propType="shape",this.comp=v.comp,this.elem=v,this.container=v,this.offsetTime=v.data.st,this.keyframes=y===3?x.pt.k:x.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var _=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,_),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=r,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[n.bind(this)]}u.prototype.getValue=s,u.prototype.interpolateShape=t,u.prototype.setVValue=o,u.prototype.addEffect=l;var c=function(){var v=roundCorner;function x(y,_){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=_.d,this.elem=y,this.comp=y.comp,this.frameId=-1,this.initDynamicPropertyContainer(y),this.p=PropertyFactory.getProp(y,_.p,1,0,this),this.s=PropertyFactory.getProp(y,_.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return x.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var _=this.p.v[0],w=this.p.v[1],k=this.s.v[0]/2,O=this.s.v[1]/2,M=this.d!==3,I=this.v;I.v[0][0]=_,I.v[0][1]=w-O,I.v[1][0]=M?_+k:_-k,I.v[1][1]=w,I.v[2][0]=_,I.v[2][1]=w+O,I.v[3][0]=M?_-k:_+k,I.v[3][1]=w,I.i[0][0]=M?_-k*v:_+k*v,I.i[0][1]=w-O,I.i[1][0]=M?_+k:_-k,I.i[1][1]=w-O*v,I.i[2][0]=M?_+k*v:_-k*v,I.i[2][1]=w+O,I.i[3][0]=M?_-k:_+k,I.i[3][1]=w+O*v,I.o[0][0]=M?_+k*v:_-k*v,I.o[0][1]=w-O,I.o[1][0]=M?_+k:_-k,I.o[1][1]=w+O*v,I.o[2][0]=M?_-k*v:_+k*v,I.o[2][1]=w+O,I.o[3][0]=M?_-k:_+k,I.o[3][1]=w-O*v}},extendPrototype([DynamicPropertyContainer],x),x}(),f=function(){function v(x,y){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=x,this.comp=x.comp,this.data=y,this.frameId=-1,this.d=y.d,this.initDynamicPropertyContainer(x),y.sy===1?(this.ir=PropertyFactory.getProp(x,y.ir,0,0,this),this.is=PropertyFactory.getProp(x,y.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(x,y.pt,0,0,this),this.p=PropertyFactory.getProp(x,y.p,1,0,this),this.r=PropertyFactory.getProp(x,y.r,0,degToRads,this),this.or=PropertyFactory.getProp(x,y.or,0,0,this),this.os=PropertyFactory.getProp(x,y.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return v.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var y=Math.floor(this.pt.v)*2,_=Math.PI*2/y,w=!0,k=this.or.v,O=this.ir.v,M=this.os.v,I=this.is.v,W=2*Math.PI*k/(y*2),J=2*Math.PI*O/(y*2),H,ee,j,V,B=-Math.PI/2;B+=this.r.v;var N=this.data.d===3?-1:1;for(this.v._length=0,H=0;H<y;H+=1){ee=w?k:O,j=w?M:I,V=w?W:J;var C=ee*Math.cos(B),S=ee*Math.sin(B),G=C===0&&S===0?0:S/Math.sqrt(C*C+S*S),T=C===0&&S===0?0:-C/Math.sqrt(C*C+S*S);C+=+this.p.v[0],S+=+this.p.v[1],this.v.setTripleAt(C,S,C-G*V*j*N,S-T*V*j*N,C+G*V*j*N,S+T*V*j*N,H,!0),w=!w,B+=_*N}},convertPolygonToPath:function(){var y=Math.floor(this.pt.v),_=Math.PI*2/y,w=this.or.v,k=this.os.v,O=2*Math.PI*w/(y*4),M,I=-Math.PI*.5,W=this.data.d===3?-1:1;for(I+=this.r.v,this.v._length=0,M=0;M<y;M+=1){var J=w*Math.cos(I),H=w*Math.sin(I),ee=J===0&&H===0?0:H/Math.sqrt(J*J+H*H),j=J===0&&H===0?0:-J/Math.sqrt(J*J+H*H);J+=+this.p.v[0],H+=+this.p.v[1],this.v.setTripleAt(J,H,J-ee*O*k*W,H-j*O*k*W,J+ee*O*k*W,H+j*O*k*W,M,!0),I+=_*W}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],v),v}(),d=function(){function v(x,y){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=x,this.comp=x.comp,this.frameId=-1,this.d=y.d,this.initDynamicPropertyContainer(x),this.p=PropertyFactory.getProp(x,y.p,1,0,this),this.s=PropertyFactory.getProp(x,y.s,1,0,this),this.r=PropertyFactory.getProp(x,y.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return v.prototype={convertRectToPath:function(){var y=this.p.v[0],_=this.p.v[1],w=this.s.v[0]/2,k=this.s.v[1]/2,O=bmMin(w,k,this.r.v),M=O*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(y+w,_-k+O,y+w,_-k+O,y+w,_-k+M,0,!0),this.v.setTripleAt(y+w,_+k-O,y+w,_+k-M,y+w,_+k-O,1,!0),O!==0?(this.v.setTripleAt(y+w-O,_+k,y+w-O,_+k,y+w-M,_+k,2,!0),this.v.setTripleAt(y-w+O,_+k,y-w+M,_+k,y-w+O,_+k,3,!0),this.v.setTripleAt(y-w,_+k-O,y-w,_+k-O,y-w,_+k-M,4,!0),this.v.setTripleAt(y-w,_-k+O,y-w,_-k+M,y-w,_-k+O,5,!0),this.v.setTripleAt(y-w+O,_-k,y-w+O,_-k,y-w+M,_-k,6,!0),this.v.setTripleAt(y+w-O,_-k,y+w-M,_-k,y+w-O,_-k,7,!0)):(this.v.setTripleAt(y-w,_+k,y-w+M,_+k,y-w,_+k,2),this.v.setTripleAt(y-w,_-k,y-w,_-k+M,y-w,_-k,3))):(this.v.setTripleAt(y+w,_-k+O,y+w,_-k+M,y+w,_-k+O,0,!0),O!==0?(this.v.setTripleAt(y+w-O,_-k,y+w-O,_-k,y+w-M,_-k,1,!0),this.v.setTripleAt(y-w+O,_-k,y-w+M,_-k,y-w+O,_-k,2,!0),this.v.setTripleAt(y-w,_-k+O,y-w,_-k+O,y-w,_-k+M,3,!0),this.v.setTripleAt(y-w,_+k-O,y-w,_+k-M,y-w,_+k-O,4,!0),this.v.setTripleAt(y-w+O,_+k,y-w+O,_+k,y-w+M,_+k,5,!0),this.v.setTripleAt(y+w-O,_+k,y+w-M,_+k,y+w-O,_+k,6,!0),this.v.setTripleAt(y+w,_+k-O,y+w,_+k-O,y+w,_+k-M,7,!0)):(this.v.setTripleAt(y-w,_-k,y-w+M,_-k,y-w,_-k,1,!0),this.v.setTripleAt(y-w,_+k,y-w,_+k-M,y-w,_+k,2,!0),this.v.setTripleAt(y+w,_+k,y+w-M,_+k,y+w,_+k,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},extendPrototype([DynamicPropertyContainer],v),v}();function h(v,x,y){var _;if(y===3||y===4){var w=y===3?x.pt:x.ks,k=w.k;k.length?_=new u(v,x,y):_=new a(v,x,y)}else y===5?_=new d(v,x):y===6?_=new c(v,x):y===7&&(_=new f(v,x));return _.k&&v.addDynamicProperty(_),_}function m(){return a}function g(){return u}var b={};return b.getShapeProp=h,b.getConstructorFunction=m,b.getKeyframedConstructorFunction=g,b}();var Matrix=function(){var e=Math.cos,t=Math.sin,n=Math.tan,r=Math.round;function i(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function o(C){if(C===0)return this;var S=e(C),G=t(C);return this._t(S,-G,0,0,G,S,0,0,0,0,1,0,0,0,0,1)}function s(C){if(C===0)return this;var S=e(C),G=t(C);return this._t(1,0,0,0,0,S,-G,0,0,G,S,0,0,0,0,1)}function a(C){if(C===0)return this;var S=e(C),G=t(C);return this._t(S,0,G,0,0,1,0,0,-G,0,S,0,0,0,0,1)}function l(C){if(C===0)return this;var S=e(C),G=t(C);return this._t(S,-G,0,0,G,S,0,0,0,0,1,0,0,0,0,1)}function u(C,S){return this._t(1,S,C,1,0,0)}function c(C,S){return this.shear(n(C),n(S))}function f(C,S){var G=e(S),T=t(S);return this._t(G,T,0,0,-T,G,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(C),1,0,0,0,0,1,0,0,0,0,1)._t(G,-T,0,0,T,G,0,0,0,0,1,0,0,0,0,1)}function d(C,S,G){return!G&&G!==0&&(G=1),C===1&&S===1&&G===1?this:this._t(C,0,0,0,0,S,0,0,0,0,G,0,0,0,0,1)}function h(C,S,G,T,Q,U,F,D,L,$,Z,se,Y,ue,pe,oe){return this.props[0]=C,this.props[1]=S,this.props[2]=G,this.props[3]=T,this.props[4]=Q,this.props[5]=U,this.props[6]=F,this.props[7]=D,this.props[8]=L,this.props[9]=$,this.props[10]=Z,this.props[11]=se,this.props[12]=Y,this.props[13]=ue,this.props[14]=pe,this.props[15]=oe,this}function m(C,S,G){return G=G||0,C!==0||S!==0||G!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,C,S,G,1):this}function g(C,S,G,T,Q,U,F,D,L,$,Z,se,Y,ue,pe,oe){var de=this.props;if(C===1&&S===0&&G===0&&T===0&&Q===0&&U===1&&F===0&&D===0&&L===0&&$===0&&Z===1&&se===0)return de[12]=de[12]*C+de[15]*Y,de[13]=de[13]*U+de[15]*ue,de[14]=de[14]*Z+de[15]*pe,de[15]*=oe,this._identityCalculated=!1,this;var ve=de[0],Ae=de[1],Ce=de[2],Ge=de[3],Ee=de[4],Ne=de[5],De=de[6],Ue=de[7],Re=de[8],je=de[9],$e=de[10],Le=de[11],Xe=de[12],mt=de[13],fe=de[14],be=de[15];return de[0]=ve*C+Ae*Q+Ce*L+Ge*Y,de[1]=ve*S+Ae*U+Ce*$+Ge*ue,de[2]=ve*G+Ae*F+Ce*Z+Ge*pe,de[3]=ve*T+Ae*D+Ce*se+Ge*oe,de[4]=Ee*C+Ne*Q+De*L+Ue*Y,de[5]=Ee*S+Ne*U+De*$+Ue*ue,de[6]=Ee*G+Ne*F+De*Z+Ue*pe,de[7]=Ee*T+Ne*D+De*se+Ue*oe,de[8]=Re*C+je*Q+$e*L+Le*Y,de[9]=Re*S+je*U+$e*$+Le*ue,de[10]=Re*G+je*F+$e*Z+Le*pe,de[11]=Re*T+je*D+$e*se+Le*oe,de[12]=Xe*C+mt*Q+fe*L+be*Y,de[13]=Xe*S+mt*U+fe*$+be*ue,de[14]=Xe*G+mt*F+fe*Z+be*pe,de[15]=Xe*T+mt*D+fe*se+be*oe,this._identityCalculated=!1,this}function b(C){var S=C.props;return this.transform(S[0],S[1],S[2],S[3],S[4],S[5],S[6],S[7],S[8],S[9],S[10],S[11],S[12],S[13],S[14],S[15])}function v(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function x(C){for(var S=0;S<16;){if(C.props[S]!==this.props[S])return!1;S+=1}return!0}function y(C){var S;for(S=0;S<16;S+=1)C.props[S]=this.props[S];return C}function _(C){var S;for(S=0;S<16;S+=1)this.props[S]=C[S]}function w(C,S,G){return{x:C*this.props[0]+S*this.props[4]+G*this.props[8]+this.props[12],y:C*this.props[1]+S*this.props[5]+G*this.props[9]+this.props[13],z:C*this.props[2]+S*this.props[6]+G*this.props[10]+this.props[14]}}function k(C,S,G){return C*this.props[0]+S*this.props[4]+G*this.props[8]+this.props[12]}function O(C,S,G){return C*this.props[1]+S*this.props[5]+G*this.props[9]+this.props[13]}function M(C,S,G){return C*this.props[2]+S*this.props[6]+G*this.props[10]+this.props[14]}function I(){var C=this.props[0]*this.props[5]-this.props[1]*this.props[4],S=this.props[5]/C,G=-this.props[1]/C,T=-this.props[4]/C,Q=this.props[0]/C,U=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/C,F=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/C,D=new Matrix;return D.props[0]=S,D.props[1]=G,D.props[4]=T,D.props[5]=Q,D.props[12]=U,D.props[13]=F,D}function W(C){var S=this.getInverseMatrix();return S.applyToPointArray(C[0],C[1],C[2]||0)}function J(C){var S,G=C.length,T=[];for(S=0;S<G;S+=1)T[S]=W(C[S]);return T}function H(C,S,G){var T=createTypedArray("float32",6);if(this.isIdentity())T[0]=C[0],T[1]=C[1],T[2]=S[0],T[3]=S[1],T[4]=G[0],T[5]=G[1];else{var Q=this.props[0],U=this.props[1],F=this.props[4],D=this.props[5],L=this.props[12],$=this.props[13];T[0]=C[0]*Q+C[1]*F+L,T[1]=C[0]*U+C[1]*D+$,T[2]=S[0]*Q+S[1]*F+L,T[3]=S[0]*U+S[1]*D+$,T[4]=G[0]*Q+G[1]*F+L,T[5]=G[0]*U+G[1]*D+$}return T}function ee(C,S,G){var T;return this.isIdentity()?T=[C,S,G]:T=[C*this.props[0]+S*this.props[4]+G*this.props[8]+this.props[12],C*this.props[1]+S*this.props[5]+G*this.props[9]+this.props[13],C*this.props[2]+S*this.props[6]+G*this.props[10]+this.props[14]],T}function j(C,S){if(this.isIdentity())return C+","+S;var G=this.props;return Math.round((C*G[0]+S*G[4]+G[12])*100)/100+","+Math.round((C*G[1]+S*G[5]+G[13])*100)/100}function V(){for(var C=0,S=this.props,G="matrix3d(",T=1e4;C<16;)G+=r(S[C]*T)/T,G+=C===15?")":",",C+=1;return G}function B(C){var S=1e4;return C<1e-6&&C>0||C>-1e-6&&C<0?r(C*S)/S:C}function N(){var C=this.props,S=B(C[0]),G=B(C[1]),T=B(C[4]),Q=B(C[5]),U=B(C[12]),F=B(C[13]);return"matrix("+S+","+G+","+T+","+Q+","+U+","+F+")"}return function(){this.reset=i,this.rotate=o,this.rotateX=s,this.rotateY=a,this.rotateZ=l,this.skew=c,this.skewFromAxis=f,this.shear=u,this.scale=d,this.setTransform=h,this.translate=m,this.transform=g,this.multiply=b,this.applyToPoint=w,this.applyToX=k,this.applyToY=O,this.applyToZ=M,this.applyToPointArray=ee,this.applyToTriplePoints=H,this.applyToPointStringified=j,this.toCSS=V,this.to2dCSS=N,this.clone=y,this.cloneFromProps=_,this.equals=x,this.inversePoints=J,this.inversePoint=W,this.getInverseMatrix=I,this._t=this.transform,this.isIdentity=v,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(n){return typeof n}:_typeof$3=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$3(e)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(e){setLocationHref(e)}function searchAnimations(){standalone===!0?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return standalone===!0&&(e.animationData=JSON.parse(animationData)),animationManager.loadAnimation(e)}function setQuality(e){if(typeof e=="string")switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return typeof navigator<"u"}function installPlugin(e,t){e==="expressions"&&setExpressionsPlugin(t)}function getFactory(e){switch(e){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(e){for(var t=queryString.split("&"),n=0;n<t.length;n+=1){var r=t[n].split("=");if(decodeURIComponent(r[0])==e)return decodeURIComponent(r[1])}return null}var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{!((typeof exports>"u"?"undefined":_typeof$3(exports))==="object"&&typeof module<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=lottie)}catch(e){}var ShapeModifiers=function(){var e={},t={};e.registerModifier=n,e.getModifier=r;function n(i,o){t[i]||(t[i]=o)}function r(i,o,s){return new t[i](o,s)}return e}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,n,r,i){var o=[];t<=1?o.push({s:e,e:t}):e>=1?o.push({s:e-1,e:t-1}):(o.push({s:e,e:1}),o.push({s:0,e:t-1}));var s=[],a,l=o.length,u;for(a=0;a<l;a+=1)if(u=o[a],!(u.e*i<r||u.s*i>r+n)){var c,f;u.s*i<=r?c=0:c=(u.s*i-r)/n,u.e*i>=r+n?f=1:f=(u.e*i-r)/n,s.push([c,f])}return s.length||s.push([0,0]),s},TrimModifier.prototype.releasePathsData=function(e){var t,n=e.length;for(t=0;t<n;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,n;if(this._mdf||e){var r=this.o.v%360/360;if(r<0&&(r+=1),this.s.v>1?t=1+r:this.s.v<0?t=0+r:t=this.s.v+r,this.e.v>1?n=1+r:this.e.v<0?n=0+r:n=this.e.v+r,t>n){var i=t;t=n,n=i}t=Math.round(t*1e4)*1e-4,n=Math.round(n*1e4)*1e-4,this.sValue=t,this.eValue=n}else t=this.sValue,n=this.eValue;var o,s,a=this.shapes.length,l,u,c,f,d,h=0;if(n===t)for(s=0;s<a;s+=1)this.shapes[s].localShapeCollection.releaseShapes(),this.shapes[s].shape._mdf=!0,this.shapes[s].shape.paths=this.shapes[s].localShapeCollection,this._mdf&&(this.shapes[s].pathsData.length=0);else if(n===1&&t===0||n===0&&t===1){if(this._mdf)for(s=0;s<a;s+=1)this.shapes[s].pathsData.length=0,this.shapes[s].shape._mdf=!0}else{var m=[],g,b;for(s=0;s<a;s+=1)if(g=this.shapes[s],!g.shape._mdf&&!this._mdf&&!e&&this.m!==2)g.shape.paths=g.localShapeCollection;else{if(o=g.shape.paths,u=o._length,d=0,!g.shape._mdf&&g.pathsData.length)d=g.totalShapeLength;else{for(c=this.releasePathsData(g.pathsData),l=0;l<u;l+=1)f=bez.getSegmentsLength(o.shapes[l]),c.push(f),d+=f.totalLength;g.totalShapeLength=d,g.pathsData=c}h+=d,g.shape._mdf=!0}var v=t,x=n,y=0,_;for(s=a-1;s>=0;s-=1)if(g=this.shapes[s],g.shape._mdf){for(b=g.localShapeCollection,b.releaseShapes(),this.m===2&&a>1?(_=this.calculateShapeEdges(t,n,g.totalShapeLength,y,h),y+=g.totalShapeLength):_=[[v,x]],u=_.length,l=0;l<u;l+=1){v=_[l][0],x=_[l][1],m.length=0,x<=1?m.push({s:g.totalShapeLength*v,e:g.totalShapeLength*x}):v>=1?m.push({s:g.totalShapeLength*(v-1),e:g.totalShapeLength*(x-1)}):(m.push({s:g.totalShapeLength*v,e:g.totalShapeLength}),m.push({s:0,e:g.totalShapeLength*(x-1)}));var w=this.addShapes(g,m[0]);if(m[0].s!==m[0].e){if(m.length>1){var k=g.shape.paths.shapes[g.shape.paths._length-1];if(k.c){var O=w.pop();this.addPaths(w,b),w=this.addShapes(g,m[1],O)}else this.addPaths(w,b),w=this.addShapes(g,m[1])}this.addPaths(w,b)}}g.shape.paths=b}}},TrimModifier.prototype.addPaths=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)t.addShape(e[n])},TrimModifier.prototype.addSegment=function(e,t,n,r,i,o,s){i.setXYAt(t[0],t[1],"o",o),i.setXYAt(n[0],n[1],"i",o+1),s&&i.setXYAt(e[0],e[1],"v",o),i.setXYAt(r[0],r[1],"v",o+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,n,r){t.setXYAt(e[1],e[5],"o",n),t.setXYAt(e[2],e[6],"i",n+1),r&&t.setXYAt(e[0],e[4],"v",n),t.setXYAt(e[3],e[7],"v",n+1)},TrimModifier.prototype.addShapes=function(e,t,n){var r=e.pathsData,i=e.shape.paths.shapes,o,s=e.shape.paths._length,a,l,u=0,c,f,d,h,m=[],g,b=!0;for(n?(f=n._length,g=n._length):(n=shapePool.newElement(),f=0,g=0),m.push(n),o=0;o<s;o+=1){for(d=r[o].lengths,n.c=i[o].c,l=i[o].c?d.length:d.length+1,a=1;a<l;a+=1)if(c=d[a-1],u+c.addedLength<t.s)u+=c.addedLength,n.c=!1;else if(u>t.e){n.c=!1;break}else t.s<=u&&t.e>=u+c.addedLength?(this.addSegment(i[o].v[a-1],i[o].o[a-1],i[o].i[a],i[o].v[a],n,f,b),b=!1):(h=bez.getNewSegment(i[o].v[a-1],i[o].v[a],i[o].o[a-1],i[o].i[a],(t.s-u)/c.addedLength,(t.e-u)/c.addedLength,d[a-1]),this.addSegmentFromArray(h,n,f,b),b=!1,n.c=!1),u+=c.addedLength,f+=1;if(i[o].c&&d.length){if(c=d[a-1],u<=t.e){var v=d[a-1].addedLength;t.s<=u&&t.e>=u+v?(this.addSegment(i[o].v[a-1],i[o].o[a-1],i[o].i[0],i[o].v[0],n,f,b),b=!1):(h=bez.getNewSegment(i[o].v[a-1],i[o].v[0],i[o].o[a-1],i[o].i[0],(t.s-u)/v,(t.e-u)/v,d[a-1]),this.addSegmentFromArray(h,n,f,b),b=!1,n.c=!1)}else n.c=!1;u+=c.addedLength,f+=1}if(n._length&&(n.setXYAt(n.v[g][0],n.v[g][1],"i",g),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),u>t.e)break;o<s-1&&(n=shapePool.newElement(),b=!0,m.push(n),f=0)}return m};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var n=t/100,r=[0,0],i=e._length,o=0;for(o=0;o<i;o+=1)r[0]+=e.v[o][0],r[1]+=e.v[o][1];r[0]/=i,r[1]/=i;var s=shapePool.newElement();s.c=e.c;var a,l,u,c,f,d;for(o=0;o<i;o+=1)a=e.v[o][0]+(r[0]-e.v[o][0])*n,l=e.v[o][1]+(r[1]-e.v[o][1])*n,u=e.o[o][0]+(r[0]-e.o[o][0])*-n,c=e.o[o][1]+(r[1]-e.o[o][1])*-n,f=e.i[o][0]+(r[0]-e.i[o][0])*-n,d=e.i[o][1]+(r[1]-e.i[o][1])*-n,s.setTripleAt(a,l,u,c,f,d,o);return s},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,n,r=this.shapes.length,i,o,s=this.amount.v;if(s!==0){var a,l;for(n=0;n<r;n+=1){if(a=this.shapes[n],l=a.localShapeCollection,!(!a.shape._mdf&&!this._mdf&&!e))for(l.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,o=a.shape.paths._length,i=0;i<o;i+=1)l.addShape(this.processPath(t[i],s));a.shape.paths=a.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(l){var u=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||u,this.a&&l.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&l.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&l.skewFromAxis(-this.sk.v,this.sa.v),this.r?l.rotate(-this.r.v):l.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.data.p.s?this.data.p.z?l.translate(this.px.v,this.py.v,-this.pz.v):l.translate(this.px.v,this.py.v,0):l.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function n(l){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||l){var u;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.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.autoOriented){var c,f;if(u=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(c=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/u,0),f=this.p.getValueAtTime(this.p.keyframes[0].t/u,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(c=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/u,0),f=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/u,0)):(c=this.p.pv,f=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/u,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){c=[],f=[];var d=this.px,h=this.py;d._caching.lastFrame+d.offsetTime<=d.keyframes[0].t?(c[0]=d.getValueAtTime((d.keyframes[0].t+.01)/u,0),c[1]=h.getValueAtTime((h.keyframes[0].t+.01)/u,0),f[0]=d.getValueAtTime(d.keyframes[0].t/u,0),f[1]=h.getValueAtTime(h.keyframes[0].t/u,0)):d._caching.lastFrame+d.offsetTime>=d.keyframes[d.keyframes.length-1].t?(c[0]=d.getValueAtTime(d.keyframes[d.keyframes.length-1].t/u,0),c[1]=h.getValueAtTime(h.keyframes[h.keyframes.length-1].t/u,0),f[0]=d.getValueAtTime((d.keyframes[d.keyframes.length-1].t-.01)/u,0),f[1]=h.getValueAtTime((h.keyframes[h.keyframes.length-1].t-.01)/u,0)):(c=[d.pv,h.pv],f[0]=d.getValueAtTime((d._caching.lastFrame+d.offsetTime-.01)/u,d.offsetTime),f[1]=h.getValueAtTime((h._caching.lastFrame+h.offsetTime-.01)/u,h.offsetTime))}else f=e,c=f;this.v.rotate(-Math.atan2(c[1]-f[1],c[0]-f[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 r(){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 i(){}function o(l){this._addDynamicProperty(l),this.elem.addDynamicProperty(l),this._isDirty=!0}function s(l,u,c){if(this.elem=l,this.frameId=-1,this.propType="transform",this.data=u,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(c||l),u.p&&u.p.s?(this.px=PropertyFactory.getProp(l,u.p.x,0,0,this),this.py=PropertyFactory.getProp(l,u.p.y,0,0,this),u.p.z&&(this.pz=PropertyFactory.getProp(l,u.p.z,0,0,this))):this.p=PropertyFactory.getProp(l,u.p||{k:[0,0,0]},1,0,this),u.rx){if(this.rx=PropertyFactory.getProp(l,u.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(l,u.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(l,u.rz,0,degToRads,this),u.or.k[0].ti){var f,d=u.or.k.length;for(f=0;f<d;f+=1)u.or.k[f].to=null,u.or.k[f].ti=null}this.or=PropertyFactory.getProp(l,u.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(l,u.r||{k:0},0,degToRads,this);u.sk&&(this.sk=PropertyFactory.getProp(l,u.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(l,u.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(l,u.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(l,u.s||{k:[100,100,100]},1,.01,this),u.o?this.o=PropertyFactory.getProp(l,u.o,0,.01,l):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}s.prototype={applyToMatrix:t,getValue:n,precalculateMatrix:r,autoOrient:i},extendPrototype([DynamicPropertyContainer],s),s.prototype.addDynamicProperty=o,s.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function a(l,u,c){return new s(l,u,c)}return{getTransformProperty:a}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,n,r,i,o){var s=o?-1:1,a=r.s.v[0]+(1-r.s.v[0])*(1-i),l=r.s.v[1]+(1-r.s.v[1])*(1-i);e.translate(r.p.v[0]*s*i,r.p.v[1]*s*i,r.p.v[2]),t.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),t.rotate(-r.r.v*s*i),t.translate(r.a.v[0],r.a.v[1],r.a.v[2]),n.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),n.scale(o?1/a:a,o?1/l:l),n.translate(r.a.v[0],r.a.v[1],r.a.v[2])},RepeaterModifier.prototype.init=function(e,t,n,r){for(this.elem=e,this.arr=t,this.pos=n,this.elemsData=r,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[n]);n>0;)n-=1,this._elements.unshift(t[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t]._processed=!1,e[t].ty==="gr"&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)e[n]._render=t,e[n].ty==="gr"&&this.changeGroupRender(e[n].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,n,r,i,o,s=!1;if(this._mdf||e){var a=Math.ceil(this.c.v);if(this._groups.length<a){for(;this._groups.length<a;){var l={it:this.cloneElements(this._elements),ty:"gr"};l.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,l),this._groups.splice(0,0,l),this._currentCopies+=1}this.elem.reloadShapes(),s=!0}o=0;var u;for(r=0;r<=this._groups.length-1;r+=1){if(u=o<a,this._groups[r]._render=u,this.changeGroupRender(this._groups[r].it,u),!u){var c=this.elemsData[r].it,f=c[c.length-1];f.transform.op.v!==0?(f.transform.op._mdf=!0,f.transform.op.v=0):f.transform.op._mdf=!1}o+=1}this._currentCopies=a;var d=this.o.v,h=d%1,m=d>0?Math.floor(d):Math.ceil(d),g=this.pMatrix.props,b=this.rMatrix.props,v=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var x=0;if(d>0){for(;x<m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),x+=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,h,!1),x+=h)}else if(d<0){for(;x>m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),x-=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-h,!0),x-=h)}r=this.data.m===1?0:this._currentCopies-1,i=this.data.m===1?1:-1,o=this._currentCopies;for(var y,_;o;){if(t=this.elemsData[r].it,n=t[t.length-1].transform.mProps.v.props,_=n.length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),x!==0){for((r!==0&&i===1||r!==this._currentCopies-1&&i===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],b[9],b[10],b[11],b[12],b[13],b[14],b[15]),this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),y=0;y<_;y+=1)n[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<_;y+=1)n[y]=this.matrix.props[y];x+=1,o-=1,r+=i}}else for(o=this._currentCopies,r=0,i=1;o;)t=this.elemsData[r].it,n=t[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,o-=1,r+=i;return s},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var n=shapePool.newElement();n.c=e.c;var r,i=e._length,o,s,a,l,u,c,f=0,d,h,m,g,b,v;for(r=0;r<i;r+=1)o=e.v[r],a=e.o[r],s=e.i[r],o[0]===a[0]&&o[1]===a[1]&&o[0]===s[0]&&o[1]===s[1]?(r===0||r===i-1)&&!e.c?(n.setTripleAt(o[0],o[1],a[0],a[1],s[0],s[1],f),f+=1):(r===0?l=e.v[i-1]:l=e.v[r-1],u=Math.sqrt(Math.pow(o[0]-l[0],2)+Math.pow(o[1]-l[1],2)),c=u?Math.min(u/2,t)/u:0,b=o[0]+(l[0]-o[0])*c,d=b,v=o[1]-(o[1]-l[1])*c,h=v,m=d-(d-o[0])*roundCorner,g=h-(h-o[1])*roundCorner,n.setTripleAt(d,h,m,g,b,v,f),f+=1,r===i-1?l=e.v[0]:l=e.v[r+1],u=Math.sqrt(Math.pow(o[0]-l[0],2)+Math.pow(o[1]-l[1],2)),c=u?Math.min(u/2,t)/u:0,m=o[0]+(l[0]-o[0])*c,d=m,g=o[1]+(l[1]-o[1])*c,h=g,b=d-(d-o[0])*roundCorner,v=h-(h-o[1])*roundCorner,n.setTripleAt(d,h,m,g,b,v,f),f+=1):(n.setTripleAt(e.v[r][0],e.v[r][1],e.o[r][0],e.o[r][1],e.i[r][0],e.i[r][1],f),f+=1);return n},RoundCornersModifier.prototype.processShapes=function(e){var t,n,r=this.shapes.length,i,o,s=this.rd.v;if(s!==0){var a,l;for(n=0;n<r;n+=1){if(a=this.shapes[n],l=a.localShapeCollection,!(!a.shape._mdf&&!this._mdf&&!e))for(l.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,o=a.shape.paths._length,i=0;i<o;i+=1)l.addShape(this.processPath(t[i],s));a.shape.paths=a.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(e,t){return Math.abs(e-t)*1e5<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,n){return e*(1-n)+t*n}function lerpPoint(e,t,n){return[lerp(e[0],t[0],n),lerp(e[1],t[1],n)]}function quadRoots(e,t,n){if(e===0)return[];var r=t*t-4*e*n;if(r<0)return[];var i=-t/(2*e);if(r===0)return[i];var o=Math.sqrt(r)/(2*e);return[i-o,i+o]}function polynomialCoefficients(e,t,n,r){return[-e+3*t-3*n+r,3*e-6*t+3*n,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,n,r,i){i&&pointEqual(e,t)&&(t=lerpPoint(e,r,1/3)),i&&pointEqual(n,r)&&(n=lerpPoint(e,r,2/3));var o=polynomialCoefficients(e[0],t[0],n[0],r[0]),s=polynomialCoefficients(e[1],t[1],n[1],r[1]);this.a=[o[0],s[0]],this.b=[o[1],s[1]],this.c=[o[2],s[2]],this.d=[o[3],s[3]],this.points=[e,t,n,r]}PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,n=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(n<0)return[];var r=Math.sqrt(n);return floatZero(r)?r>0&&r<1?[t]:[]:[t-r,t+r].filter(function(i){return i>0&&i<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),n=lerpPoint(this.points[1],this.points[2],e),r=lerpPoint(this.points[2],this.points[3],e),i=lerpPoint(t,n,e),o=lerpPoint(n,r,e),s=lerpPoint(i,o,e);return[new PolynomialBezier(this.points[0],t,i,s,!0),new PolynomialBezier(s,o,r,this.points[3],!0)]};function extrema(e,t){var n=e.points[0][t],r=e.points[e.points.length-1][t];if(n>r){var i=r;r=n,n=i}for(var o=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),s=0;s<o.length;s+=1)if(o[s]>0&&o[s]<1){var a=e.point(o[s])[t];a<n?n=a:a>r&&(r=a)}return{min:n,max:r}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function intersectData(e,t,n){var r=e.boundingBox();return{cx:r.cx,cy:r.cy,width:r.width,height:r.height,bez:e,t:(t+n)/2,t1:t,t2:n}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return Math.abs(e.cx-t.cx)*2<e.width+t.width&&Math.abs(e.cy-t.cy)*2<e.height+t.height}function intersectsImpl(e,t,n,r,i,o){if(!!boxIntersect(e,t)){if(n>=o||e.width<=r&&e.height<=r&&t.width<=r&&t.height<=r){i.push([e.t,t.t]);return}var s=splitData(e),a=splitData(t);intersectsImpl(s[0],a[0],n+1,r,i,o),intersectsImpl(s[0],a[1],n+1,r,i,o),intersectsImpl(s[1],a[0],n+1,r,i,o),intersectsImpl(s[1],a[1],n+1,r,i,o)}}PolynomialBezier.prototype.intersections=function(e,t,n){t===void 0&&(t=2),n===void 0&&(n=7);var r=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,r,n),r},PolynomialBezier.shapeSegment=function(e,t){var n=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[n],e.v[n],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var n=(t+1)%e.length();return new PolynomialBezier(e.v[n],e.i[n],e.o[t],e.v[t],!0)};function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,n,r){var i=[e[0],e[1],1],o=[t[0],t[1],1],s=[n[0],n[1],1],a=[r[0],r[1],1],l=crossProduct(crossProduct(i,o),crossProduct(s,a));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(e,t,n){return[e[0]+Math.cos(t)*n,e[1]-Math.sin(t)*n]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(e,t,n,r,i,o,s){var a=n-Math.PI/2,l=n+Math.PI/2,u=t[0]+Math.cos(n)*r*i,c=t[1]-Math.sin(n)*r*i;e.setTripleAt(u,c,u+Math.cos(a)*o,c-Math.sin(a)*o,u+Math.cos(l)*s,c-Math.sin(l)*s,e.length())}function getPerpendicularVector(e,t){var n=[t[0]-e[0],t[1]-e[1]],r=-Math.PI*.5,i=[Math.cos(r)*n[0]-Math.sin(r)*n[1],Math.sin(r)*n[0]+Math.cos(r)*n[1]];return i}function getProjectingAngle(e,t){var n=t===0?e.length()-1:t-1,r=(t+1)%e.length(),i=e.v[n],o=e.v[r],s=getPerpendicularVector(i,o);return Math.atan2(0,1)-Math.atan2(s[1],s[0])}function zigZagCorner(e,t,n,r,i,o,s){var a=getProjectingAngle(t,n),l=t.v[n%t._length],u=t.v[n===0?t._length-1:n-1],c=t.v[(n+1)%t._length],f=o===2?Math.sqrt(Math.pow(l[0]-u[0],2)+Math.pow(l[1]-u[1],2)):0,d=o===2?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0;setPoint(e,t.v[n%t._length],a,s,r,d/((i+1)*2),f/((i+1)*2),o)}function zigZagSegment(e,t,n,r,i,o){for(var s=0;s<r;s+=1){var a=(s+1)/(r+1),l=i===2?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,u=t.normalAngle(a),c=t.point(a);setPoint(e,c,u,o,n,l/((r+1)*2),l/((r+1)*2),i),o=-o}return o}ZigZagModifier.prototype.processPath=function(e,t,n,r){var i=e._length,o=shapePool.newElement();if(o.c=e.c,e.c||(i-=1),i===0)return o;var s=-1,a=PolynomialBezier.shapeSegment(e,0);zigZagCorner(o,e,0,t,n,r,s);for(var l=0;l<i;l+=1)s=zigZagSegment(o,a,t,n,r,-s),l===i-1&&!e.c?a=null:a=PolynomialBezier.shapeSegment(e,(l+1)%i),zigZagCorner(o,e,l+1,t,n,r,s);return o},ZigZagModifier.prototype.processShapes=function(e){var t,n,r=this.shapes.length,i,o,s=this.amplitude.v,a=Math.max(0,Math.round(this.frequency.v)),l=this.pointsType.v;if(s!==0){var u,c;for(n=0;n<r;n+=1){if(u=this.shapes[n],c=u.localShapeCollection,!(!u.shape._mdf&&!this._mdf&&!e))for(c.releaseShapes(),u.shape._mdf=!0,t=u.shape.paths.shapes,o=u.shape.paths._length,i=0;i<o;i+=1)c.addShape(this.processPath(t[i],s,a,l));u.shape.paths=u.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(e,t,n){var r=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,r,n),polarOffset(t,r,n)]}function offsetSegment(e,t){var n,r,i,o,s,a,l;l=linearOffset(e.points[0],e.points[1],t),n=l[0],r=l[1],l=linearOffset(e.points[1],e.points[2],t),i=l[0],o=l[1],l=linearOffset(e.points[2],e.points[3],t),s=l[0],a=l[1];var u=lineIntersection(n,r,i,o);u===null&&(u=r);var c=lineIntersection(s,a,i,o);return c===null&&(c=s),new PolynomialBezier(n,u,c,a)}function joinLines(e,t,n,r,i){var o=t.points[3],s=n.points[0];if(r===3||pointEqual(o,s))return o;if(r===2){var a=-t.tangentAngle(1),l=-n.tangentAngle(0)+Math.PI,u=lineIntersection(o,polarOffset(o,a+Math.PI/2,100),s,polarOffset(s,a+Math.PI/2,100)),c=u?pointDistance(u,o):pointDistance(o,s)/2,f=polarOffset(o,a,2*c*roundCorner);return e.setXYAt(f[0],f[1],"o",e.length()-1),f=polarOffset(s,l,2*c*roundCorner),e.setTripleAt(s[0],s[1],s[0],s[1],f[0],f[1],e.length()),s}var d=pointEqual(o,t.points[2])?t.points[0]:t.points[2],h=pointEqual(s,n.points[1])?n.points[3]:n.points[1],m=lineIntersection(d,o,s,h);return m&&pointDistance(m,o)<i?(e.setTripleAt(m[0],m[1],m[0],m[1],m[0],m[1],e.length()),m):o}function getIntersection(e,t){var n=e.intersections(t);return n.length&&floatEqual(n[0][0],1)&&n.shift(),n.length?n[0]:null}function pruneSegmentIntersection(e,t){var n=e.slice(),r=t.slice(),i=getIntersection(e[e.length-1],t[0]);return i&&(n[e.length-1]=e[e.length-1].split(i[0])[0],r[0]=t[0].split(i[1])[1]),e.length>1&&t.length>1&&(i=getIntersection(e[0],t[t.length-1]),i)?[[e[0].split(i[0])[0]],[t[t.length-1].split(i[1])[1]]]:[n,r]}function pruneIntersections(e){for(var t,n=1;n<e.length;n+=1)t=pruneSegmentIntersection(e[n-1],e[n]),e[n-1]=t[0],e[n]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var n=e.inflectionPoints(),r,i,o,s;if(n.length===0)return[offsetSegment(e,t)];if(n.length===1||floatEqual(n[1],1))return o=e.split(n[0]),r=o[0],i=o[1],[offsetSegment(r,t),offsetSegment(i,t)];o=e.split(n[0]),r=o[0];var a=(n[1]-n[0])/(1-n[0]);return o=o[1].split(a),s=o[0],i=o[1],[offsetSegment(r,t),offsetSegment(s,t),offsetSegment(i,t)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(e,t,n,r){var i=shapePool.newElement();i.c=e.c;var o=e.length();e.c||(o-=1);var s,a,l,u=[];for(s=0;s<o;s+=1)l=PolynomialBezier.shapeSegment(e,s),u.push(offsetSegmentSplit(l,t));if(!e.c)for(s=o-1;s>=0;s-=1)l=PolynomialBezier.shapeSegmentInverted(e,s),u.push(offsetSegmentSplit(l,t));u=pruneIntersections(u);var c=null,f=null;for(s=0;s<u.length;s+=1){var d=u[s];for(f&&(c=joinLines(i,f,d[0],n,r)),f=d[d.length-1],a=0;a<d.length;a+=1)l=d[a],c&&pointEqual(l.points[0],c)?i.setXYAt(l.points[1][0],l.points[1][1],"o",i.length()-1):i.setTripleAt(l.points[0][0],l.points[0][1],l.points[1][0],l.points[1][1],l.points[0][0],l.points[0][1],i.length()),i.setTripleAt(l.points[3][0],l.points[3][1],l.points[3][0],l.points[3][1],l.points[2][0],l.points[2][1],i.length()),c=l.points[3]}return u.length&&joinLines(i,f,u[0][0],n,r),i},OffsetPathModifier.prototype.processShapes=function(e){var t,n,r=this.shapes.length,i,o,s=this.amount.v,a=this.miterLimit.v,l=this.lineJoin;if(s!==0){var u,c;for(n=0;n<r;n+=1){if(u=this.shapes[n],c=u.localShapeCollection,!(!u.shape._mdf&&!this._mdf&&!e))for(c.releaseShapes(),u.shape._mdf=!0,t=u.shape.paths.shapes,o=u.shape.paths._length,i=0;i<o;i+=1)c.addShape(this.processPath(t[i],s,l,a));u.shape.paths=u.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],n="normal",r="normal",i=t.length,o,s=0;s<i;s+=1)switch(o=t[s].toLowerCase(),o){case"italic":r="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200";break;default:break}return{style:r,weight:e.fWeight||n}}var FontManager=function(){var e=5e3,t={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=127988,i=917631,o=917601,s=917626,a=65039,l=8205,u=127462,c=127487,f=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function d(B){var N=B.split(","),C,S=N.length,G=[];for(C=0;C<S;C+=1)N[C]!=="sans-serif"&&N[C]!=="monospace"&&G.push(N[C]);return G.join(",")}function h(B,N){var C=createTag("span");C.setAttribute("aria-hidden",!0),C.style.fontFamily=N;var S=createTag("span");S.innerText="giItT1WQy@!-/#",C.style.position="absolute",C.style.left="-10000px",C.style.top="-10000px",C.style.fontSize="300px",C.style.fontVariant="normal",C.style.fontStyle="normal",C.style.fontWeight="normal",C.style.letterSpacing="0",C.appendChild(S),document.body.appendChild(C);var G=S.offsetWidth;return S.style.fontFamily=d(B)+", "+N,{node:S,w:G,parent:C}}function m(){var B,N=this.fonts.length,C,S,G=N;for(B=0;B<N;B+=1)this.fonts[B].loaded?G-=1:this.fonts[B].fOrigin==="n"||this.fonts[B].origin===0?this.fonts[B].loaded=!0:(C=this.fonts[B].monoCase.node,S=this.fonts[B].monoCase.w,C.offsetWidth!==S?(G-=1,this.fonts[B].loaded=!0):(C=this.fonts[B].sansCase.node,S=this.fonts[B].sansCase.w,C.offsetWidth!==S&&(G-=1,this.fonts[B].loaded=!0)),this.fonts[B].loaded&&(this.fonts[B].sansCase.parent.parentNode.removeChild(this.fonts[B].sansCase.parent),this.fonts[B].monoCase.parent.parentNode.removeChild(this.fonts[B].monoCase.parent)));G!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function g(B,N){var C=document.body&&N?"svg":"canvas",S,G=getFontProperties(B);if(C==="svg"){var T=createNS("text");T.style.fontSize="100px",T.setAttribute("font-family",B.fFamily),T.setAttribute("font-style",G.style),T.setAttribute("font-weight",G.weight),T.textContent="1",B.fClass?(T.style.fontFamily="inherit",T.setAttribute("class",B.fClass)):T.style.fontFamily=B.fFamily,N.appendChild(T),S=T}else{var Q=new OffscreenCanvas(500,500).getContext("2d");Q.font=G.style+" "+G.weight+" 100px "+B.fFamily,S=Q}function U(F){return C==="svg"?(S.textContent=F,S.getComputedTextLength()):S.measureText(F).width}return{measureText:U}}function b(B,N){if(!B){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=B.list;return}if(!document.body){this.isLoaded=!0,B.list.forEach(function(Z){Z.helper=g(Z),Z.cache={}}),this.fonts=B.list;return}var C=B.list,S,G=C.length,T=G;for(S=0;S<G;S+=1){var Q=!0,U,F;if(C[S].loaded=!1,C[S].monoCase=h(C[S].fFamily,"monospace"),C[S].sansCase=h(C[S].fFamily,"sans-serif"),!C[S].fPath)C[S].loaded=!0,T-=1;else if(C[S].fOrigin==="p"||C[S].origin===3){if(U=document.querySelectorAll('style[f-forigin="p"][f-family="'+C[S].fFamily+'"], style[f-origin="3"][f-family="'+C[S].fFamily+'"]'),U.length>0&&(Q=!1),Q){var D=createTag("style");D.setAttribute("f-forigin",C[S].fOrigin),D.setAttribute("f-origin",C[S].origin),D.setAttribute("f-family",C[S].fFamily),D.type="text/css",D.innerText="@font-face {font-family: "+C[S].fFamily+"; font-style: normal; src: url('"+C[S].fPath+"');}",N.appendChild(D)}}else if(C[S].fOrigin==="g"||C[S].origin===1){for(U=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),F=0;F<U.length;F+=1)U[F].href.indexOf(C[S].fPath)!==-1&&(Q=!1);if(Q){var L=createTag("link");L.setAttribute("f-forigin",C[S].fOrigin),L.setAttribute("f-origin",C[S].origin),L.type="text/css",L.rel="stylesheet",L.href=C[S].fPath,document.body.appendChild(L)}}else if(C[S].fOrigin==="t"||C[S].origin===2){for(U=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),F=0;F<U.length;F+=1)C[S].fPath===U[F].src&&(Q=!1);if(Q){var $=createTag("link");$.setAttribute("f-forigin",C[S].fOrigin),$.setAttribute("f-origin",C[S].origin),$.setAttribute("rel","stylesheet"),$.setAttribute("href",C[S].fPath),N.appendChild($)}}C[S].helper=g(C[S],N),C[S].cache={},this.fonts.push(C[S])}T===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function v(B){if(!!B){this.chars||(this.chars=[]);var N,C=B.length,S,G=this.chars.length,T;for(N=0;N<C;N+=1){for(S=0,T=!1;S<G;)this.chars[S].style===B[N].style&&this.chars[S].fFamily===B[N].fFamily&&this.chars[S].ch===B[N].ch&&(T=!0),S+=1;T||(this.chars.push(B[N]),G+=1)}}}function x(B,N,C){for(var S=0,G=this.chars.length;S<G;){if(this.chars[S].ch===B&&this.chars[S].style===N&&this.chars[S].fFamily===C)return this.chars[S];S+=1}return(typeof B=="string"&&B.charCodeAt(0)!==13||!B)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",B,N,C)),t}function y(B,N,C){var S=this.getFontByName(N),G=B;if(!S.cache[G]){var T=S.helper;if(B===" "){var Q=T.measureText("|"+B+"|"),U=T.measureText("||");S.cache[G]=(Q-U)/100}else S.cache[G]=T.measureText(B)/100}return S.cache[G]*C}function _(B){for(var N=0,C=this.fonts.length;N<C;){if(this.fonts[N].fName===B)return this.fonts[N];N+=1}return this.fonts[0]}function w(B){var N=0,C=B.charCodeAt(0);if(C>=55296&&C<=56319){var S=B.charCodeAt(1);S>=56320&&S<=57343&&(N=(C-55296)*1024+S-56320+65536)}return N}function k(B,N){var C=B.toString(16)+N.toString(16);return f.indexOf(C)!==-1}function O(B){return B===l}function M(B){return B===a}function I(B){var N=w(B);return N>=u&&N<=c}function W(B){return I(B.substr(0,2))&&I(B.substr(2,2))}function J(B){return n.indexOf(B)!==-1}function H(B,N){var C=w(B.substr(N,2));if(C!==r)return!1;var S=0;for(N+=2;S<5;){if(C=w(B.substr(N,2)),C<o||C>s)return!1;S+=1,N+=2}return w(B.substr(N,2))===i}function ee(){this.isLoaded=!0}var j=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)};j.isModifier=k,j.isZeroWidthJoiner=O,j.isFlagEmoji=W,j.isRegionalCode=I,j.isCombinedCharacter=J,j.isRegionalFlag=H,j.isVariationSelector=M,j.BLACK_FLAG_CODE_POINT=r;var V={addChars:v,addFonts:b,getCharData:x,getFontByName:_,measureText:y,checkLoadedFonts:m,setIsLoaded:ee};return j.prototype=V,j}();function SlotManager(e){this.animationData=e}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){this.renderableComponents.indexOf(t)===-1&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){this.renderableComponents.indexOf(t)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},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(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?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 t,n=this.renderableComponents.length;for(t=0;t<n;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(t){return e[t]||""}}();function SliderEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function AngleEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function ColorEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function PointEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function LayerIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function MaskIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function CheckboxEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var n=e.ef||[];this.effectElements=[];var r,i=n.length,o;for(r=0;r<i;r+=1)o=new GroupEffect(n[r],t),this.effectElements.push(o)}function GroupEffect(e,t){this.init(e,t)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var n,r=this.data.ef.length,i,o=this.data.ef;for(n=0;n<r;n+=1){switch(i=null,o[n].ty){case 0:i=new SliderEffect(o[n],t,this);break;case 1:i=new AngleEffect(o[n],t,this);break;case 2:i=new ColorEffect(o[n],t,this);break;case 3:i=new PointEffect(o[n],t,this);break;case 4:case 7:i=new CheckboxEffect(o[n],t,this);break;case 10:i=new LayerIndexEffect(o[n],t,this);break;case 11:i=new MaskIndexEffect(o[n],t,this);break;case 5:i=new EffectsManager(o[n],t,this);break;default:i=new NoValueEffect(o[n],t,this);break}i&&this.effectElements.push(i)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,n=this.data.masksProperties.length;t<n;){if(this.data.masksProperties[t].mode!=="n"&&this.data.masksProperties[t].cl!==!1)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(!!t){var n=t("layer"),r=t("effects"),i=t("shape"),o=t("text"),s=t("comp");this.layerInterface=n(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=r.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),this.data.ty===0||this.data.xt?this.compInterface=s(this):this.data.ty===4?(this.layerInterface.shapeInterface=i(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=o(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm),n=this.baseElement||this.layerElement;n.style["mix-blend-mode"]=t},initBaseData:function(t,n,r){this.globalData=n,this.comp=r,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,n){var r,i=this.dynamicProperties.length;for(r=0;r<i;r+=1)(n||this._isParent&&this.dynamicProperties[r].propType==="transform")&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&this.dynamicProperties.push(t)}};function FootageElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,n)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(!!e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,n),this._isPlaying=!1,this._canPlay=!1;var r=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(r),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.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(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*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(e){var t,n=this.layers.length,r;for(this.completeLayers=!0,t=n-1;t>=0;t-=1)this.elements[t]||(r=this.layers[t],r.ip-r.st<=e-this.layers[t].st&&r.op-r.st>e-this.layers[t].st&&this.buildItem(t)),this.completeLayers=this.elements[t]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){this.completeLayers=!1;var t,n=e.length,r,i=this.layers.length;for(t=0;t<n;t+=1)for(r=0;r<i;){if(this.layers[r].id===e[t].id){this.layers[r]=e[t];break}r+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,n){for(var r=this.elements,i=this.layers,o=0,s=i.length;o<s;)i[o].ind==t&&(!r[o]||r[o]===!0?(this.buildItem(o),this.addPendingElement(e)):(n.push(r[o]),r[o].setAsParent(),i[o].parent!==void 0?this.buildElementParenting(e,i[o].parent,n):e.setHierarchy(n))),o+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,n=e.length;for(t=0;t<n;t+=1)if(e[t].xt){var r=this.createComp(e[t]);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},BaseRenderer.prototype.getElementById=function(e){var t,n=this.elements.length;for(t=0;t<n;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t=e.shift(),n;if(typeof t=="number")n=this.elements[t];else{var r,i=this.elements.length;for(r=0;r<i;r+=1)if(this.elements[r].data.nm===t){n=this.elements[r];break}}return e.length===0?n:n.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var t=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,n=this.finalTransform.mat,r=0,i=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<i;){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}r+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,n.cloneFromProps(t),r=0;r<i;r+=1)n.multiply(this.hierarchy[r].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,n=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<n;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var r=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(r),t=1;t<n;t+=1){var i=this.localTransforms[t].matrix;r.multiply(i)}r.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var o=this.finalTransform.localOpacity;for(t=0;t<n;t+=1)o*=this.localTransforms[t].opacity*.01;this.finalTransform.localOpacity=o}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var n=0,r=t.length;for(n=0;n<r;n+=1)this.localTransforms.push(t[n])}}},globalToLocal:function(t){var n=[];n.push(this.finalTransform);for(var r=!0,i=this.comp;r;)i.finalTransform?(i.data.hasMask&&n.splice(0,0,i.finalTransform),i=i.comp):r=!1;var o,s=n.length,a;for(o=0;o<s;o+=1)a=n[o].mat.applyToPointArray(0,0,0),t=[t[0]-a[0],t[1]-a[1],0];return t},mHelper:new Matrix};function MaskElement(e,t,n){this.data=e,this.element=t,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var r=this.globalData.defs,i,o=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(o),this.solidPath="";var s,a=this.masksProperties,l=0,u=[],c,f,d=createElementID(),h,m,g,b,v="clipPath",x="clip-path";for(i=0;i<o;i+=1)if((a[i].mode!=="a"&&a[i].mode!=="n"||a[i].inv||a[i].o.k!==100||a[i].o.x)&&(v="mask",x="mask"),(a[i].mode==="s"||a[i].mode==="i")&&l===0?(h=createNS("rect"),h.setAttribute("fill","#ffffff"),h.setAttribute("width",this.element.comp.data.w||0),h.setAttribute("height",this.element.comp.data.h||0),u.push(h)):h=null,s=createNS("path"),a[i].mode==="n")this.viewData[i]={op:PropertyFactory.getProp(this.element,a[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,a[i],3),elem:s,lastPath:""},r.appendChild(s);else{l+=1,s.setAttribute("fill",a[i].mode==="s"?"#000000":"#ffffff"),s.setAttribute("clip-rule","nonzero");var y;if(a[i].x.k!==0?(v="mask",x="mask",b=PropertyFactory.getProp(this.element,a[i].x,0,null,this.element),y=createElementID(),m=createNS("filter"),m.setAttribute("id",y),g=createNS("feMorphology"),g.setAttribute("operator","erode"),g.setAttribute("in","SourceGraphic"),g.setAttribute("radius","0"),m.appendChild(g),r.appendChild(m),s.setAttribute("stroke",a[i].mode==="s"?"#000000":"#ffffff")):(g=null,b=null),this.storedData[i]={elem:s,x:b,expan:g,lastPath:"",lastOperator:"",filterId:y,lastRadius:0},a[i].mode==="i"){f=u.length;var _=createNS("g");for(c=0;c<f;c+=1)_.appendChild(u[c]);var w=createNS("mask");w.setAttribute("mask-type","alpha"),w.setAttribute("id",d+"_"+l),w.appendChild(s),r.appendChild(w),_.setAttribute("mask","url("+getLocationHref()+"#"+d+"_"+l+")"),u.length=0,u.push(_)}else u.push(s);a[i].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[i]={elem:s,lastPath:"",op:PropertyFactory.getProp(this.element,a[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,a[i],3),invRect:h},this.viewData[i].prop.k||this.drawPath(a[i],this.viewData[i].prop.v,this.viewData[i])}for(this.maskElement=createNS(v),o=u.length,i=0;i<o;i+=1)this.maskElement.appendChild(u[i]);l>0&&(this.maskElement.setAttribute("id",d),this.element.maskedElement.setAttribute(x,"url("+getLocationHref()+"#"+d+")"),r.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t=this.element.finalTransform.mat,n,r=this.masksProperties.length;for(n=0;n<r;n+=1)if((this.viewData[n].prop._mdf||e)&&this.drawPath(this.masksProperties[n],this.viewData[n].prop.v,this.viewData[n]),(this.viewData[n].op._mdf||e)&&this.viewData[n].elem.setAttribute("fill-opacity",this.viewData[n].op.v),this.masksProperties[n].mode!=="n"&&(this.viewData[n].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[n].invRect.setAttribute("transform",t.getInverseMatrix().to2dCSS()),this.storedData[n].x&&(this.storedData[n].x._mdf||e))){var i=this.storedData[n].expan;this.storedData[n].x.v<0?(this.storedData[n].lastOperator!=="erode"&&(this.storedData[n].lastOperator="erode",this.storedData[n].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[n].filterId+")")),i.setAttribute("radius",-this.storedData[n].x.v)):(this.storedData[n].lastOperator!=="dilate"&&(this.storedData[n].lastOperator="dilate",this.storedData[n].elem.setAttribute("filter",null)),this.storedData[n].elem.setAttribute("stroke-width",this.storedData[n].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},MaskElement.prototype.drawPath=function(e,t,n){var r=" M"+t.v[0][0]+","+t.v[0][1],i,o;for(o=t._length,i=1;i<o;i+=1)r+=" C"+t.o[i-1][0]+","+t.o[i-1][1]+" "+t.i[i][0]+","+t.i[i][1]+" "+t.v[i][0]+","+t.v[i][1];if(t.c&&o>1&&(r+=" C"+t.o[i-1][0]+","+t.o[i-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),n.lastPath!==r){var s="";n.elem&&(t.c&&(s=e.inv?this.solidPath+r:r),n.elem.setAttribute("d",s)),n.lastPath=r}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={};e.createFilter=t,e.createAlphaToLuminanceFilter=n;function t(r,i){var o=createNS("filter");return o.setAttribute("id",r),i!==!0&&(o.setAttribute("filterUnits","objectBoundingBox"),o.setAttribute("x","0%"),o.setAttribute("y","0%"),o.setAttribute("width","100%"),o.setAttribute("height","100%")),o}function n(){var r=createNS("feColorMatrix");return r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),r}return e}(),featureSupport=function(){var e={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))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,n="SourceGraphic",r=e.data.ef?e.data.ef.length:0,i=createElementID(),o=filtersFactory.createFilter(i,!0),s=0;this.filters=[];var a;for(t=0;t<r;t+=1){a=null;var l=e.data.ef[t].ty;if(registeredEffects$1[l]){var u=registeredEffects$1[l].effect;a=new u(o,e.effectsManager.effectElements[t],e,idPrefix+s,n),n=idPrefix+s,registeredEffects$1[l].countsAsEffect&&(s+=1)}a&&this.filters.push(a)}s&&(e.globalData.defs.appendChild(o),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+i+")")),this.filters.length&&e.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,n=this.filters.length,r=[];for(t=0;t<n;t+=1)this.filters[t].type===e&&r.push(this.filters[t]);return r};function registerEffect$1(e,t,n){registeredEffects$1[e]={effect:t,countsAsEffect:n}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var n=createNS("g");n.setAttribute("id",this.layerId),n.appendChild(this.layerElement),t=n,this.globalData.defs.appendChild(n)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var r=createNS("clipPath"),i=createNS("path");i.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var o=createElementID();if(r.setAttribute("id",o),r.appendChild(i),this.globalData.defs.appendChild(r),this.checkMasks()){var s=createNS("g");s.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")"),s.appendChild(this.layerElement),this.transformedElement=s,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var n=this.layerId+"_"+t,r,i,o,s;if(t===1||t===3){var a=createNS("mask");a.setAttribute("id",n),a.setAttribute("mask-type",t===3?"luminance":"alpha"),o=createNS("use"),o.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),a.appendChild(o),this.globalData.defs.appendChild(a),!featureSupport.maskType&&t===1&&(a.setAttribute("mask-type","luminance"),r=createElementID(),i=filtersFactory.createFilter(r),this.globalData.defs.appendChild(i),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),s=createNS("g"),s.appendChild(o),a.appendChild(s),s.setAttribute("filter","url("+getLocationHref()+"#"+r+")"))}else if(t===2){var l=createNS("mask");l.setAttribute("id",n),l.setAttribute("mask-type","alpha");var u=createNS("g");l.appendChild(u),r=createElementID(),i=filtersFactory.createFilter(r);var c=createNS("feComponentTransfer");c.setAttribute("in","SourceGraphic"),i.appendChild(c);var f=createNS("feFuncA");f.setAttribute("type","table"),f.setAttribute("tableValues","1.0 0.0"),c.appendChild(f),this.globalData.defs.appendChild(i);var d=createNS("rect");d.setAttribute("width",this.comp.data.w),d.setAttribute("height",this.comp.data.h),d.setAttribute("x","0"),d.setAttribute("y","0"),d.setAttribute("fill","#ffffff"),d.setAttribute("opacity","0"),u.setAttribute("filter","url("+getLocationHref()+"#"+r+")"),u.appendChild(d),o=createNS("use"),o.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),u.appendChild(o),featureSupport.maskType||(l.setAttribute("mask-type","luminance"),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),s=createNS("g"),u.appendChild(d),s.appendChild(this.layerElement),u.appendChild(s)),this.globalData.defs.appendChild(l)}this.matteMasks[t]=n}return this.matteMasks[t]},setMatte:function(t){!this.matteElement||this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var e={initElement:function(n,r,i){this.initFrame(),this.initBaseData(n,r,i),this.initTransform(n,r,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var n=this.baseElement||this.layerElement;n.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var n=this.baseElement||this.layerElement;n.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(n){this._mdf=!1,this.prepareRenderableFrame(n),this.prepareProperties(n,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(e)],RenderableDOMElement)})();function IImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(t){var n,r=this.shapeModifiers.length;for(n=0;n<r;n+=1)this.shapeModifiers[n].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var n=0,r=this.shapeModifiers.length;n<r;)if(this.shapeModifiers[n].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(!!this.shapeModifiers.length){var t,n=this.shapes.length;for(t=0;t<n;t+=1)this.shapes[t].sh.reset();n=this.shapeModifiers.length;var r;for(t=n-1;t>=0&&(r=this.shapeModifiers[t].processShapes(this._isFirstFrame),!r);t-=1);}},searchProcessedElement:function(t){for(var n=this.processedElements,r=0,i=n.length;r<i;){if(n[r].elem===t)return n[r].pos;r+=1}return 0},addProcessedElement:function(t,n){for(var r=this.processedElements,i=r.length;i;)if(i-=1,r[i].elem===t){r[i].pos=n;return}r.push(new ProcessedElement(t,n))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=t,this._isAnimated=!!n.k;for(var r=0,i=e.length;r<i;){if(e[r].mProps.dynamicProperties.length){this._isAnimated=!0;break}r+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=e.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(e,t,n,r){this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(r);var i,o=t.length||0,s;for(i=0;i<o;i+=1)s=PropertyFactory.getProp(e,t[i].v,0,0,this),this.k=s.k||this.k,this.dataProps[i]={n:t[i].n,p:s};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,n=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),t=0;t<n;t+=1)this.dataProps[t].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(e,t,n){this.data=t,this.c=createTypedArray("uint8c",t.p*4);var r=t.k.k[0].s?t.k.k[0].s.length-t.p*4:t.k.k.length-t.p*4;this.o=createTypedArray("float32",r),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=r,this.initDynamicPropertyContainer(n),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(e,t){for(var n=0,r=this.o.length/2,i;n<r;){if(i=Math.abs(e[n*4]-e[t*4+n*2]),i>.01)return!1;n+=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 e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,n=this.data.p*4,r,i;for(t=0;t<n;t+=1)r=t%4===0?100:255,i=Math.round(this.prop.v[t]*r),this.c[t]!==i&&(this.c[t]=i,this._cmdf=!e);if(this.o.length)for(n=this.prop.v.length,t=this.data.p*4;t<n;t+=1)r=t%2===0?100:1,i=t%2===0?Math.round(this.prop.v[t]*100):this.prop.v[t],this.o[t-this.data.p*4]!==i&&(this.o[t-this.data.p*4]=i,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,n)}SVGGradientFillStyleData.prototype.initGradientData=function(e,t,n){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,t),this.setGradientOpacity(t,n),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var n=createElementID(),r=createNS(t.t===1?"linearGradient":"radialGradient");r.setAttribute("id",n),r.setAttribute("spreadMethod","pad"),r.setAttribute("gradientUnits","userSpaceOnUse");var i=[],o,s,a;for(a=t.g.p*4,s=0;s<a;s+=4)o=createNS("stop"),r.appendChild(o),i.push(o);e.setAttribute(t.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+n+")"),this.gf=r,this.cst=i},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var n,r,i,o=createNS("mask"),s=createNS("path");o.appendChild(s);var a=createElementID(),l=createElementID();o.setAttribute("id",l);var u=createNS(e.t===1?"linearGradient":"radialGradient");u.setAttribute("id",a),u.setAttribute("spreadMethod","pad"),u.setAttribute("gradientUnits","userSpaceOnUse"),i=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var c=this.stops;for(r=e.g.p*4;r<i;r+=2)n=createNS("stop"),n.setAttribute("stop-color","rgb(255,255,255)"),u.appendChild(n),c.push(n);s.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+a+")"),e.ty==="gs"&&(s.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),e.lj===1&&s.setAttribute("stroke-miterlimit",e.ml)),this.of=u,this.ms=o,this.ost=c,this.maskId=l,t.msElem=s}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,n),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,n){this.transform={mProps:e,op:t,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(t,n,r,i){if(n===0)return"";var o=t.o,s=t.i,a=t.v,l,u=" M"+i.applyToPointStringified(a[0][0],a[0][1]);for(l=1;l<n;l+=1)u+=" C"+i.applyToPointStringified(o[l-1][0],o[l-1][1])+" "+i.applyToPointStringified(s[l][0],s[l][1])+" "+i.applyToPointStringified(a[l][0],a[l][1]);return r&&n&&(u+=" C"+i.applyToPointStringified(o[l-1][0],o[l-1][1])+" "+i.applyToPointStringified(s[0][0],s[0][1])+" "+i.applyToPointStringified(a[0][0],a[0][1]),u+="z"),u},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix,n={createRenderFunction:r};function r(f){switch(f.ty){case"fl":return a;case"gf":return u;case"gs":return l;case"st":return c;case"sh":case"el":case"rc":case"sr":return s;case"tr":return i;case"no":return o;default:return null}}function i(f,d,h){(h||d.transform.op._mdf)&&d.transform.container.setAttribute("opacity",d.transform.op.v),(h||d.transform.mProps._mdf)&&d.transform.container.setAttribute("transform",d.transform.mProps.v.to2dCSS())}function o(){}function s(f,d,h){var m,g,b,v,x,y,_=d.styles.length,w=d.lvl,k,O,M,I;for(y=0;y<_;y+=1){if(v=d.sh._mdf||h,d.styles[y].lvl<w){for(O=t.reset(),M=w-d.styles[y].lvl,I=d.transformers.length-1;!v&&M>0;)v=d.transformers[I].mProps._mdf||v,M-=1,I-=1;if(v)for(M=w-d.styles[y].lvl,I=d.transformers.length-1;M>0;)O.multiply(d.transformers[I].mProps.v),M-=1,I-=1}else O=e;if(k=d.sh.paths,g=k._length,v){for(b="",m=0;m<g;m+=1)x=k.shapes[m],x&&x._length&&(b+=buildShapeString(x,x._length,x.c,O));d.caches[y]=b}else b=d.caches[y];d.styles[y].d+=f.hd===!0?"":b,d.styles[y]._mdf=v||d.styles[y]._mdf}}function a(f,d,h){var m=d.style;(d.c._mdf||h)&&m.pElem.setAttribute("fill","rgb("+bmFloor(d.c.v[0])+","+bmFloor(d.c.v[1])+","+bmFloor(d.c.v[2])+")"),(d.o._mdf||h)&&m.pElem.setAttribute("fill-opacity",d.o.v)}function l(f,d,h){u(f,d,h),c(f,d,h)}function u(f,d,h){var m=d.gf,g=d.g._hasOpacity,b=d.s.v,v=d.e.v;if(d.o._mdf||h){var x=f.ty==="gf"?"fill-opacity":"stroke-opacity";d.style.pElem.setAttribute(x,d.o.v)}if(d.s._mdf||h){var y=f.t===1?"x1":"cx",_=y==="x1"?"y1":"cy";m.setAttribute(y,b[0]),m.setAttribute(_,b[1]),g&&!d.g._collapsable&&(d.of.setAttribute(y,b[0]),d.of.setAttribute(_,b[1]))}var w,k,O,M;if(d.g._cmdf||h){w=d.cst;var I=d.g.c;for(O=w.length,k=0;k<O;k+=1)M=w[k],M.setAttribute("offset",I[k*4]+"%"),M.setAttribute("stop-color","rgb("+I[k*4+1]+","+I[k*4+2]+","+I[k*4+3]+")")}if(g&&(d.g._omdf||h)){var W=d.g.o;for(d.g._collapsable?w=d.cst:w=d.ost,O=w.length,k=0;k<O;k+=1)M=w[k],d.g._collapsable||M.setAttribute("offset",W[k*2]+"%"),M.setAttribute("stop-opacity",W[k*2+1])}if(f.t===1)(d.e._mdf||h)&&(m.setAttribute("x2",v[0]),m.setAttribute("y2",v[1]),g&&!d.g._collapsable&&(d.of.setAttribute("x2",v[0]),d.of.setAttribute("y2",v[1])));else{var J;if((d.s._mdf||d.e._mdf||h)&&(J=Math.sqrt(Math.pow(b[0]-v[0],2)+Math.pow(b[1]-v[1],2)),m.setAttribute("r",J),g&&!d.g._collapsable&&d.of.setAttribute("r",J)),d.e._mdf||d.h._mdf||d.a._mdf||h){J||(J=Math.sqrt(Math.pow(b[0]-v[0],2)+Math.pow(b[1]-v[1],2)));var H=Math.atan2(v[1]-b[1],v[0]-b[0]),ee=d.h.v;ee>=1?ee=.99:ee<=-1&&(ee=-.99);var j=J*ee,V=Math.cos(H+d.a.v)*j+b[0],B=Math.sin(H+d.a.v)*j+b[1];m.setAttribute("fx",V),m.setAttribute("fy",B),g&&!d.g._collapsable&&(d.of.setAttribute("fx",V),d.of.setAttribute("fy",B))}}}function c(f,d,h){var m=d.style,g=d.d;g&&(g._mdf||h)&&g.dashStr&&(m.pElem.setAttribute("stroke-dasharray",g.dashStr),m.pElem.setAttribute("stroke-dashoffset",g.dashoffset[0])),d.c&&(d.c._mdf||h)&&m.pElem.setAttribute("stroke","rgb("+bmFloor(d.c.v[0])+","+bmFloor(d.c.v[1])+","+bmFloor(d.c.v[2])+")"),(d.o._mdf||h)&&m.pElem.setAttribute("stroke-opacity",d.o.v),(d.w._mdf||h)&&(m.pElem.setAttribute("stroke-width",d.w.v),m.msElem&&m.msElem.setAttribute("stroke-width",d.w.v))}return n}();function SVGShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,n),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 e,t=this.shapes.length,n,r,i=this.stylesList.length,o,s=[],a=!1;for(r=0;r<i;r+=1){for(o=this.stylesList[r],a=!1,s.length=0,e=0;e<t;e+=1)n=this.shapes[e],n.styles.indexOf(o)!==-1&&(s.push(n),a=n._isAnimated||a);s.length>1&&a&&this.setShapesAsAnimated(s)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var n,r=new SVGStyleData(e,t),i=r.pElem;if(e.ty==="st")n=new SVGStrokeStyleData(this,e,r);else if(e.ty==="fl")n=new SVGFillStyleData(this,e,r);else if(e.ty==="gf"||e.ty==="gs"){var o=e.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;n=new o(this,e,r),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),i.setAttribute("mask","url("+getLocationHref()+"#"+n.maskId+")"))}else e.ty==="no"&&(n=new SVGNoStyleData(this,e,r));return(e.ty==="st"||e.ty==="gs")&&(i.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),i.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),i.setAttribute("fill-opacity","0"),e.lj===1&&i.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&i.setAttribute("fill-rule","evenodd"),e.ln&&i.setAttribute("id",e.ln),e.cl&&i.setAttribute("class",e.cl),e.bm&&(i.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(r),this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var n=TransformPropertyFactory.getTransformProperty(this,e,this),r=new SVGTransformData(n,n.o,t);return this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createShapeElement=function(e,t,n){var r=4;e.ty==="rc"?r=5:e.ty==="el"?r=6:e.ty==="sr"&&(r=7);var i=ShapePropertyFactory.getShapeProp(this,e,r,this),o=new SVGShapeData(t,n,i);return this.shapes.push(o),this.addShapeToModifiers(o),this.addToAnimatedContents(e,o),o},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var n=0,r=this.animatedContents.length;n<r;){if(this.animatedContents[n].element===t)return;n+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t=e.styles,n,r=this.stylesList.length;for(n=0;n<r;n+=1)this.stylesList[n].closed||t.push(this.stylesList[n])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,n,r,i,o,s){var a=[].concat(o),l,u=e.length-1,c,f,d=[],h=[],m,g,b;for(l=u;l>=0;l-=1){if(b=this.searchProcessedElement(e[l]),b?t[l]=n[b-1]:e[l]._render=s,e[l].ty==="fl"||e[l].ty==="st"||e[l].ty==="gf"||e[l].ty==="gs"||e[l].ty==="no")b?t[l].style.closed=!1:t[l]=this.createStyleElement(e[l],i),e[l]._render&&t[l].style.pElem.parentNode!==r&&r.appendChild(t[l].style.pElem),d.push(t[l].style);else if(e[l].ty==="gr"){if(!b)t[l]=this.createGroupElement(e[l]);else for(f=t[l].it.length,c=0;c<f;c+=1)t[l].prevViewData[c]=t[l].it[c];this.searchShapes(e[l].it,t[l].it,t[l].prevViewData,t[l].gr,i+1,a,s),e[l]._render&&t[l].gr.parentNode!==r&&r.appendChild(t[l].gr)}else e[l].ty==="tr"?(b||(t[l]=this.createTransformElement(e[l],r)),m=t[l].transform,a.push(m)):e[l].ty==="sh"||e[l].ty==="rc"||e[l].ty==="el"||e[l].ty==="sr"?(b||(t[l]=this.createShapeElement(e[l],a,i)),this.setElementStyles(t[l])):e[l].ty==="tm"||e[l].ty==="rd"||e[l].ty==="ms"||e[l].ty==="pb"||e[l].ty==="zz"||e[l].ty==="op"?(b?(g=t[l],g.closed=!1):(g=ShapeModifiers.getModifier(e[l].ty),g.init(this,e[l]),t[l]=g,this.shapeModifiers.push(g)),h.push(g)):e[l].ty==="rp"&&(b?(g=t[l],g.closed=!0):(g=ShapeModifiers.getModifier(e[l].ty),t[l]=g,g.init(this,e,l,t),this.shapeModifiers.push(g),s=!1),h.push(g));this.addProcessedElement(e[l],l+1)}for(u=d.length,l=0;l<u;l+=1)d[l].closed=!0;for(u=h.length,l=0;l<u;l+=1)h[l].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t=this.animatedContents.length,n;for(e=0;e<t;e+=1)n=this.animatedContents[e],(this._isFirstFrame||n.element._isAnimated)&&n.data!==!0&&n.fn(n.data,n.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(e,t,n,r,i,o){this.o=e,this.sw=t,this.sc=n,this.fc=r,this.m=i,this.p=o,this._mdf={o:!0,sw:!!t,sc:!!n,fc:!!r,m:!0,p:!0}}LetterProps.prototype.update=function(e,t,n,r,i,o){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var s=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,s=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,s=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,s=!0),this.fc!==r&&(this.fc=r,this._mdf.fc=!0,s=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,s=!0),o.length&&(this.p[0]!==o[0]||this.p[1]!==o[1]||this.p[4]!==o[4]||this.p[5]!==o[5]||this.p[12]!==o[12]||this.p[13]!==o[13])&&(this.p=o,this._mdf.p=!0,s=!0),s};function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,n=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var r,i=this.effectsSequence.length,o=e||this.data.d.k[this.keysIndex].s;for(r=0;r<i;r+=1)n!==this.keysIndex?o=this.effectsSequence[r](o,o.t):o=this.effectsSequence[r](this.currentData,o.t);t!==o&&this.setCurrentData(o),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,n=0,r=e.length;n<=r-1&&!(n===r-1||e[n+1].t>t);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t=[],n=0,r=e.length,i,o,s=!1,a=!1,l="";n<r;)s=a,a=!1,i=e.charCodeAt(n),l=e.charAt(n),FontManager.isCombinedCharacter(i)?s=!0:i>=55296&&i<=56319?FontManager.isRegionalFlag(e,n)?l=e.substr(n,14):(o=e.charCodeAt(n+1),o>=56320&&o<=57343&&(FontManager.isModifier(i,o)?(l=e.substr(n,2),s=!0):FontManager.isFlagEmoji(e.substr(n,4))?l=e.substr(n,4):l=e.substr(n,2))):i>56319?(o=e.charCodeAt(n+1),FontManager.isVariationSelector(i)&&(s=!0)):FontManager.isZeroWidthJoiner(i)&&(s=!0,a=!0),s?(t[t.length-1]+=l,s=!1):t.push(l),n+=l.length;return t},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t=this.elem.globalData.fontManager,n=this.data,r=[],i,o,s,a=0,l,u=n.m.g,c=0,f=0,d=0,h=[],m=0,g=0,b,v,x=t.getFontByName(e.f),y,_=0,w=getFontProperties(x);e.fWeight=w.weight,e.fStyle=w.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),o=e.finalText.length,e.finalLineHeight=e.lh;var k=e.tr/1e3*e.finalSize,O;if(e.sz)for(var M=!0,I=e.sz[0],W=e.sz[1],J,H;M;){H=this.buildFinalText(e.t),J=0,m=0,o=H.length,k=e.tr/1e3*e.finalSize;var ee=-1;for(i=0;i<o;i+=1)O=H[i].charCodeAt(0),s=!1,H[i]===" "?ee=i:(O===13||O===3)&&(m=0,s=!0,J+=e.finalLineHeight||e.finalSize*1.2),t.chars?(y=t.getCharData(H[i],x.fStyle,x.fFamily),_=s?0:y.w*e.finalSize/100):_=t.measureText(H[i],e.f,e.finalSize),m+_>I&&H[i]!==" "?(ee===-1?o+=1:i=ee,J+=e.finalLineHeight||e.finalSize*1.2,H.splice(i,ee===i?1:0,"\r"),ee=-1,m=0):(m+=_,m+=k);J+=x.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&W<J?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=H,o=e.finalText.length,M=!1)}m=-k,_=0;var j=0,V;for(i=0;i<o;i+=1)if(s=!1,V=e.finalText[i],O=V.charCodeAt(0),O===13||O===3?(j=0,h.push(m),g=m>g?m:g,m=-2*k,l="",s=!0,d+=1):l=V,t.chars?(y=t.getCharData(V,x.fStyle,t.getFontByName(e.f).fFamily),_=s?0:y.w*e.finalSize/100):_=t.measureText(l,e.f,e.finalSize),V===" "?j+=_+k:(m+=_+k+j,j=0),r.push({l:_,an:_,add:c,n:s,anIndexes:[],val:l,line:d,animatorJustifyOffset:0}),u==2){if(c+=_,l===""||l===" "||i===o-1){for((l===""||l===" ")&&(c-=_);f<=i;)r[f].an=c,r[f].ind=a,r[f].extra=_,f+=1;a+=1,c=0}}else if(u==3){if(c+=_,l===""||i===o-1){for(l===""&&(c-=_);f<=i;)r[f].an=c,r[f].ind=a,r[f].extra=_,f+=1;c=0,a+=1}}else r[a].ind=a,r[a].extra=0,a+=1;if(e.l=r,g=m>g?m:g,h.push(m),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=g,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=h;var B=n.a,N,C;v=B.length;var S,G,T=[];for(b=0;b<v;b+=1){for(N=B[b],N.a.sc&&(e.strokeColorAnim=!0),N.a.sw&&(e.strokeWidthAnim=!0),(N.a.fc||N.a.fh||N.a.fs||N.a.fb)&&(e.fillColorAnim=!0),G=0,S=N.s.b,i=0;i<o;i+=1)C=r[i],C.anIndexes[b]=G,(S==1&&C.val!==""||S==2&&C.val!==""&&C.val!==" "||S==3&&(C.n||C.val==" "||i==o-1)||S==4&&(C.n||i==o-1))&&(N.s.rn===1&&T.push(G),G+=1);n.a[b].s.totalChars=G;var Q=-1,U;if(N.s.rn===1)for(i=0;i<o;i+=1)C=r[i],Q!=C.anIndexes[b]&&(Q=C.anIndexes[b],U=T.splice(Math.floor(Math.random()*T.length),1)[0]),C.anIndexes[b]=U}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=x.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=t===void 0?this.keysIndex:t;var n=this.copyData({},this.data.d.k[t].s);n=this.copyData(n,e),this.data.d.k[t].s=n,this.recalculate(t),this.setCurrentData(n),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,n=Math.floor;function r(o,s){this._currentTextLength=-1,this.k=!1,this.data=s,this.elem=o,this.comp=o.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(o),this.s=PropertyFactory.getProp(o,s.s||{k:0},0,0,this),"e"in s?this.e=PropertyFactory.getProp(o,s.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(o,s.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(o,s.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(o,s.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(o,s.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(o,s.a,0,.01,this),this.dynamicProperties.length||this.getValue()}r.prototype={getMult:function(s){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var a=0,l=0,u=1,c=1;this.ne.v>0?a=this.ne.v/100:l=-this.ne.v/100,this.xe.v>0?u=1-this.xe.v/100:c=1+this.xe.v/100;var f=BezierFactory.getBezierEasing(a,l,u,c).get,d=0,h=this.finalS,m=this.finalE,g=this.data.sh;if(g===2)m===h?d=s>=m?1:0:d=e(0,t(.5/(m-h)+(s-h)/(m-h),1)),d=f(d);else if(g===3)m===h?d=s>=m?0:1:d=1-e(0,t(.5/(m-h)+(s-h)/(m-h),1)),d=f(d);else if(g===4)m===h?d=0:(d=e(0,t(.5/(m-h)+(s-h)/(m-h),1)),d<.5?d*=2:d=1-2*(d-.5)),d=f(d);else if(g===5){if(m===h)d=0;else{var b=m-h;s=t(e(0,s+.5-h),m-h);var v=-b/2+s,x=b/2;d=Math.sqrt(1-v*v/(x*x))}d=f(d)}else g===6?(m===h?d=0:(s=t(e(0,s+.5-h),m-h),d=(1+Math.cos(Math.PI+Math.PI*2*s/(m-h)))/2),d=f(d)):(s>=n(h)&&(s-h<0?d=e(0,t(t(m,1)-(h-s),1)):d=e(0,t(m-s,1))),d=f(d));if(this.sm.v!==100){var y=this.sm.v*.01;y===0&&(y=1e-8);var _=.5-y*.5;d<_?d=0:(d=(d-_)/y,d>1&&(d=1))}return d*this.a.v},getValue:function(s){this.iterateDynamicProperties(),this._mdf=s||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,s&&this.data.r===2&&(this.e.v=this._currentTextLength);var a=this.data.r===2?1:100/this.data.totalChars,l=this.o.v/a,u=this.s.v/a+l,c=this.e.v/a+l;if(u>c){var f=u;u=c,c=f}this.finalS=u,this.finalE=c}},extendPrototype([DynamicPropertyContainer],r);function i(o,s,a){return new r(o,s,a)}return{getTextSelectorProp:i}}();function TextAnimatorDataProperty(e,t,n){var r={propType:!1},i=PropertyFactory.getProp,o=t.a;this.a={r:o.r?i(e,o.r,0,degToRads,n):r,rx:o.rx?i(e,o.rx,0,degToRads,n):r,ry:o.ry?i(e,o.ry,0,degToRads,n):r,sk:o.sk?i(e,o.sk,0,degToRads,n):r,sa:o.sa?i(e,o.sa,0,degToRads,n):r,s:o.s?i(e,o.s,1,.01,n):r,a:o.a?i(e,o.a,1,0,n):r,o:o.o?i(e,o.o,0,.01,n):r,p:o.p?i(e,o.p,1,0,n):r,sw:o.sw?i(e,o.sw,0,0,n):r,sc:o.sc?i(e,o.sc,1,0,n):r,fc:o.fc?i(e,o.fc,1,0,n):r,fh:o.fh?i(e,o.fh,0,0,n):r,fs:o.fs?i(e,o.fs,0,.01,n):r,fb:o.fb?i(e,o.fb,0,.01,n):r,t:o.t?i(e,o.t,0,0,n):r},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,n),this.s.t=t.s.t}function TextAnimatorProperty(e,t,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=n,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}TextAnimatorProperty.prototype.searchProperties=function(){var e,t=this._textData.a.length,n,r=PropertyFactory.getProp;for(e=0;e<t;e+=1)n=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,n,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:r(this._elem,this._textData.p.a,0,0,this),f:r(this._elem,this._textData.p.f,0,0,this),l:r(this._elem,this._textData.p.l,0,0,this),r:r(this._elem,this._textData.p.r,0,0,this),p:r(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=r(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,!(!this._mdf&&!this._isFirstFrame&&!t&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var n=this._moreOptions.alignment.v,r=this._animatorsData,i=this._textData,o=this.mHelper,s=this._renderType,a=this.renderedLetters.length,l,u,c,f,d=e.l,h,m,g,b,v,x,y,_,w,k,O,M,I,W,J;if(this._hasMaskedPath){if(J=this._pathData.m,!this._pathData.n||this._pathData._mdf){var H=J.v;this._pathData.r.v&&(H=H.reverse()),h={tLength:0,segments:[]},f=H._length-1;var ee;for(M=0,c=0;c<f;c+=1)ee=bez.buildBezierData(H.v[c],H.v[c+1],[H.o[c][0]-H.v[c][0],H.o[c][1]-H.v[c][1]],[H.i[c+1][0]-H.v[c+1][0],H.i[c+1][1]-H.v[c+1][1]]),h.tLength+=ee.segmentLength,h.segments.push(ee),M+=ee.segmentLength;c=f,J.v.c&&(ee=bez.buildBezierData(H.v[c],H.v[0],[H.o[c][0]-H.v[c][0],H.o[c][1]-H.v[c][1]],[H.i[0][0]-H.v[0][0],H.i[0][1]-H.v[0][1]]),h.tLength+=ee.segmentLength,h.segments.push(ee),M+=ee.segmentLength),this._pathData.pi=h}if(h=this._pathData.pi,m=this._pathData.f.v,y=0,x=1,b=0,v=!0,k=h.segments,m<0&&J.v.c)for(h.tLength<Math.abs(m)&&(m=-Math.abs(m)%h.tLength),y=k.length-1,w=k[y].points,x=w.length-1;m<0;)m+=w[x].partialLength,x-=1,x<0&&(y-=1,w=k[y].points,x=w.length-1);w=k[y].points,_=w[x-1],g=w[x],O=g.partialLength}f=d.length,l=0,u=0;var j=e.finalSize*1.2*.714,V=!0,B,N,C,S,G;S=r.length;var T,Q=-1,U,F,D,L=m,$=y,Z=x,se=-1,Y,ue,pe,oe,de,ve,Ae,Ce,Ge="",Ee=this.defaultPropsArray,Ne;if(e.j===2||e.j===1){var De=0,Ue=0,Re=e.j===2?-.5:-1,je=0,$e=!0;for(c=0;c<f;c+=1)if(d[c].n){for(De&&(De+=Ue);je<c;)d[je].animatorJustifyOffset=De,je+=1;De=0,$e=!0}else{for(C=0;C<S;C+=1)B=r[C].a,B.t.propType&&($e&&e.j===2&&(Ue+=B.t.v*Re),N=r[C].s,T=N.getMult(d[c].anIndexes[C],i.a[C].s.totalChars),T.length?De+=B.t.v*T[0]*Re:De+=B.t.v*T*Re);$e=!1}for(De&&(De+=Ue);je<c;)d[je].animatorJustifyOffset=De,je+=1}for(c=0;c<f;c+=1){if(o.reset(),Y=1,d[c].n)l=0,u+=e.yOffset,u+=V?1:0,m=L,V=!1,this._hasMaskedPath&&(y=$,x=Z,w=k[y].points,_=w[x-1],g=w[x],O=g.partialLength,b=0),Ge="",Ce="",ve="",Ne="",Ee=this.defaultPropsArray;else{if(this._hasMaskedPath){if(se!==d[c].line){switch(e.j){case 1:m+=M-e.lineWidths[d[c].line];break;case 2:m+=(M-e.lineWidths[d[c].line])/2;break;default:break}se=d[c].line}Q!==d[c].ind&&(d[Q]&&(m+=d[Q].extra),m+=d[c].an/2,Q=d[c].ind),m+=n[0]*d[c].an*.005;var Le=0;for(C=0;C<S;C+=1)B=r[C].a,B.p.propType&&(N=r[C].s,T=N.getMult(d[c].anIndexes[C],i.a[C].s.totalChars),T.length?Le+=B.p.v[0]*T[0]:Le+=B.p.v[0]*T),B.a.propType&&(N=r[C].s,T=N.getMult(d[c].anIndexes[C],i.a[C].s.totalChars),T.length?Le+=B.a.v[0]*T[0]:Le+=B.a.v[0]*T);for(v=!0,this._pathData.a.v&&(m=d[0].an*.5+(M-this._pathData.f.v-d[0].an*.5-d[d.length-1].an*.5)*Q/(f-1),m+=this._pathData.f.v);v;)b+O>=m+Le||!w?(I=(m+Le-b)/g.partialLength,F=_.point[0]+(g.point[0]-_.point[0])*I,D=_.point[1]+(g.point[1]-_.point[1])*I,o.translate(-n[0]*d[c].an*.005,-(n[1]*j)*.01),v=!1):w&&(b+=g.partialLength,x+=1,x>=w.length&&(x=0,y+=1,k[y]?w=k[y].points:J.v.c?(x=0,y=0,w=k[y].points):(b-=g.partialLength,w=null)),w&&(_=g,g=w[x],O=g.partialLength));U=d[c].an/2-d[c].add,o.translate(-U,0,0)}else U=d[c].an/2-d[c].add,o.translate(-U,0,0),o.translate(-n[0]*d[c].an*.005,-n[1]*j*.01,0);for(C=0;C<S;C+=1)B=r[C].a,B.t.propType&&(N=r[C].s,T=N.getMult(d[c].anIndexes[C],i.a[C].s.totalChars),(l!==0||e.j!==0)&&(this._hasMaskedPath?T.length?m+=B.t.v*T[0]:m+=B.t.v*T:T.length?l+=B.t.v*T[0]:l+=B.t.v*T));for(e.strokeWidthAnim&&(pe=e.sw||0),e.strokeColorAnim&&(e.sc?ue=[e.sc[0],e.sc[1],e.sc[2]]:ue=[0,0,0]),e.fillColorAnim&&e.fc&&(oe=[e.fc[0],e.fc[1],e.fc[2]]),C=0;C<S;C+=1)B=r[C].a,B.a.propType&&(N=r[C].s,T=N.getMult(d[c].anIndexes[C],i.a[C].s.totalChars),T.length?o.translate(-B.a.v[0]*T[0],-B.a.v[1]*T[1],B.a.v[2]*T[2]):o.translate(-B.a.v[0]*T,-B.a.v[1]*T,B.a.v[2]*T));for(C=0;C<S;C+=1)B=r[C].a,B.s.propType&&(N=r[C].s,T=N.getMult(d[c].anIndexes[C],i.a[C].s.totalChars),T.length?o.scale(1+(B.s.v[0]-1)*T[0],1+(B.s.v[1]-1)*T[1],1):o.scale(1+(B.s.v[0]-1)*T,1+(B.s.v[1]-1)*T,1));for(C=0;C<S;C+=1){if(B=r[C].a,N=r[C].s,T=N.getMult(d[c].anIndexes[C],i.a[C].s.totalChars),B.sk.propType&&(T.length?o.skewFromAxis(-B.sk.v*T[0],B.sa.v*T[1]):o.skewFromAxis(-B.sk.v*T,B.sa.v*T)),B.r.propType&&(T.length?o.rotateZ(-B.r.v*T[2]):o.rotateZ(-B.r.v*T)),B.ry.propType&&(T.length?o.rotateY(B.ry.v*T[1]):o.rotateY(B.ry.v*T)),B.rx.propType&&(T.length?o.rotateX(B.rx.v*T[0]):o.rotateX(B.rx.v*T)),B.o.propType&&(T.length?Y+=(B.o.v*T[0]-Y)*T[0]:Y+=(B.o.v*T-Y)*T),e.strokeWidthAnim&&B.sw.propType&&(T.length?pe+=B.sw.v*T[0]:pe+=B.sw.v*T),e.strokeColorAnim&&B.sc.propType)for(de=0;de<3;de+=1)T.length?ue[de]+=(B.sc.v[de]-ue[de])*T[0]:ue[de]+=(B.sc.v[de]-ue[de])*T;if(e.fillColorAnim&&e.fc){if(B.fc.propType)for(de=0;de<3;de+=1)T.length?oe[de]+=(B.fc.v[de]-oe[de])*T[0]:oe[de]+=(B.fc.v[de]-oe[de])*T;B.fh.propType&&(T.length?oe=addHueToRGB(oe,B.fh.v*T[0]):oe=addHueToRGB(oe,B.fh.v*T)),B.fs.propType&&(T.length?oe=addSaturationToRGB(oe,B.fs.v*T[0]):oe=addSaturationToRGB(oe,B.fs.v*T)),B.fb.propType&&(T.length?oe=addBrightnessToRGB(oe,B.fb.v*T[0]):oe=addBrightnessToRGB(oe,B.fb.v*T))}}for(C=0;C<S;C+=1)B=r[C].a,B.p.propType&&(N=r[C].s,T=N.getMult(d[c].anIndexes[C],i.a[C].s.totalChars),this._hasMaskedPath?T.length?o.translate(0,B.p.v[1]*T[0],-B.p.v[2]*T[1]):o.translate(0,B.p.v[1]*T,-B.p.v[2]*T):T.length?o.translate(B.p.v[0]*T[0],B.p.v[1]*T[1],-B.p.v[2]*T[2]):o.translate(B.p.v[0]*T,B.p.v[1]*T,-B.p.v[2]*T));if(e.strokeWidthAnim&&(ve=pe<0?0:pe),e.strokeColorAnim&&(Ae="rgb("+Math.round(ue[0]*255)+","+Math.round(ue[1]*255)+","+Math.round(ue[2]*255)+")"),e.fillColorAnim&&e.fc&&(Ce="rgb("+Math.round(oe[0]*255)+","+Math.round(oe[1]*255)+","+Math.round(oe[2]*255)+")"),this._hasMaskedPath){if(o.translate(0,-e.ls),o.translate(0,n[1]*j*.01+u,0),this._pathData.p.v){W=(g.point[1]-_.point[1])/(g.point[0]-_.point[0]);var Xe=Math.atan(W)*180/Math.PI;g.point[0]<_.point[0]&&(Xe+=180),o.rotate(-Xe*Math.PI/180)}o.translate(F,D,0),m-=n[0]*d[c].an*.005,d[c+1]&&Q!==d[c+1].ind&&(m+=d[c].an/2,m+=e.tr*.001*e.finalSize)}else{switch(o.translate(l,u,0),e.ps&&o.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:o.translate(d[c].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[d[c].line]),0,0);break;case 2:o.translate(d[c].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[d[c].line])/2,0,0);break;default:break}o.translate(0,-e.ls),o.translate(U,0,0),o.translate(n[0]*d[c].an*.005,n[1]*j*.01,0),l+=d[c].l+e.tr*.001*e.finalSize}s==="html"?Ge=o.toCSS():s==="svg"?Ge=o.to2dCSS():Ee=[o.props[0],o.props[1],o.props[2],o.props[3],o.props[4],o.props[5],o.props[6],o.props[7],o.props[8],o.props[9],o.props[10],o.props[11],o.props[12],o.props[13],o.props[14],o.props[15]],Ne=Y}a<=c?(G=new LetterProps(Ne,ve,Ae,Ce,Ge,Ee),this.renderedLetters.push(G),a+=1,this.lettersChangedFlag=!0):(G=this.renderedLetters[c],this.lettersChangedFlag=G.update(Ne,ve,Ae,Ce,Ge,Ee)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(e,t,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,n),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var n,r=t.length,i,o="";for(n=0;n<r;n+=1)t[n].ty==="sh"&&(i=t[n].ks.k,o+=buildShapeString(i,i.i.length,!0,e));return o},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,n,r,i){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0);break;default:break}t.translate(r,i,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,n){this.textSpans=[],this.renderType="svg",this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,n=e.length,r=[],i="";t<n;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(r.push(i),i=""):i+=e[t],t+=1;return r.push(i),r},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var n=e.shapes[0];if(n.it){var r=n.it[n.it.length-1];r.s&&(r.s.k[0]=t,r.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,t,n=this.textProperty.currentData;this.renderedLetters=createSizedArray(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var r=this.globalData.fontManager.getFontByName(n.f);if(r.fClass)this.layerElement.setAttribute("class",r.fClass);else{this.layerElement.setAttribute("font-family",r.fFamily);var i=n.fWeight,o=n.fStyle;this.layerElement.setAttribute("font-style",o),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",n.t);var s=n.l||[],a=!!this.globalData.fontManager.chars;t=s.length;var l,u=this.mHelper,c="",f=this.data.singleShape,d=0,h=0,m=!0,g=n.tr*.001*n.finalSize;if(f&&!a&&!n.sz){var b=this.textContainer,v="start";switch(n.j){case 1:v="end";break;case 2:v="middle";break;default:v="start";break}b.setAttribute("text-anchor",v),b.setAttribute("letter-spacing",g);var x=this.buildTextContents(n.finalText);for(t=x.length,h=n.ps?n.ps[1]+n.ascent:0,e=0;e<t;e+=1)l=this.textSpans[e].span||createNS("tspan"),l.textContent=x[e],l.setAttribute("x",0),l.setAttribute("y",h),l.style.display="inherit",b.appendChild(l),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=l,h+=n.finalLineHeight;this.layerElement.appendChild(b)}else{var y=this.textSpans.length,_;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!a||!f||e===0){if(l=y>e?this.textSpans[e].span:createNS(a?"g":"text"),y<=e){if(l.setAttribute("stroke-linecap","butt"),l.setAttribute("stroke-linejoin","round"),l.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=l,a){var w=createNS("g");l.appendChild(w),this.textSpans[e].childSpan=w}this.textSpans[e].span=l,this.layerElement.appendChild(l)}l.style.display="inherit"}if(u.reset(),f&&(s[e].n&&(d=-g,h+=n.yOffset,h+=m?1:0,m=!1),this.applyTextPropertiesToMatrix(n,u,s[e].line,d,h),d+=s[e].l||0,d+=g),a){_=this.globalData.fontManager.getCharData(n.finalText[e],r.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily);var k;if(_.t===1)k=new SVGCompElement(_.data,this.globalData,this);else{var O=emptyShapeData;_.data&&_.data.shapes&&(O=this.buildShapeData(_.data,n.finalSize)),k=new SVGShapeElement(O,this.globalData,this)}if(this.textSpans[e].glyph){var M=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(M.layerElement),M.destroy()}this.textSpans[e].glyph=k,k._debug=!0,k.prepareFrame(0),k.renderFrame(),this.textSpans[e].childSpan.appendChild(k.layerElement),_.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else f&&l.setAttribute("transform","translate("+u.props[12]+","+u.props[13]+")"),l.textContent=s[e].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}f&&l&&l.setAttribute("d",c)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t=this.textSpans.length,n;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<t;e+=1)n=this.textSpans[e].glyph,n&&(n.prepareFrame(this.comp.renderedFrame-this.data.st),n._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,t,n=this.textAnimator.renderedLetters,r=this.textProperty.currentData.l;t=r.length;var i,o,s;for(e=0;e<t;e+=1)r[e].n||(i=n[e],o=this.textSpans[e].span,s=this.textSpans[e].glyph,s&&s.renderFrame(),i._mdf.m&&o.setAttribute("transform",i.m),i._mdf.o&&o.setAttribute("opacity",i.o),i._mdf.sw&&o.setAttribute("stroke-width",i.sw),i._mdf.sc&&o.setAttribute("stroke",i.sc),i._mdf.fc&&o.setAttribute("fill",i.fc))}};function ISolidElement(e,t,n){this.initElement(e,t,n)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function NullElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initFrame(),this.initTransform(e,t,n),this.initHierarchy()}NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=createNS("clipPath"),r=createNS("rect");r.setAttribute("width",e.w),r.setAttribute("height",e.h),r.setAttribute("x",0),r.setAttribute("y",0);var i=createElementID();n.setAttribute("id",i),n.appendChild(r),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),t.appendChild(n),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,n=this.layers.length;for(t=0;t<n;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){t[e]=!0;var n=this.createItem(this.layers[e]);if(t[e]=n,getExpressionsPlugin()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,e),this.layers[e].tt){var r="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(r===-1)return;if(!this.elements[r]||this.elements[r]===!0)this.buildItem(r),this.addPendingElement(n);else{var i=t[r],o=i.getMatte(this.layers[e].tt);n.setMatte(o)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,n=this.elements.length;t<n;){if(this.elements[t]===e){var r="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,i=this.elements[r],o=i.getMatte(this.layers[t].tt);e.setMatte(o);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var t,n=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=n-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<n;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(!!n){for(var r=0,i;r<t;)this.elements[r]&&this.elements[r]!==!0&&this.elements[r].getBaseElement()&&(i=this.elements[r].getBaseElement()),r+=1;i?this.layerElement.insertBefore(n,i):this.layerElement.appendChild(n)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!t.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var n,r=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(e,t,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var n="";if(t&&t.title){var r=createNS("title"),i=createElementID();r.setAttribute("id",i),r.textContent=t.title,this.svgElement.appendChild(r),n+=i}if(t&&t.description){var o=createNS("desc"),s=createElementID();o.setAttribute("id",s),o.textContent=t.description,this.svgElement.appendChild(o),n+=" "+s}n&&this.svgElement.setAttribute("aria-labelledby",n);var a=createNS("defs");this.svgElement.appendChild(a);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&t.hideOnTransparent===!1),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:a,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(t){var n,r=t.length,i="_";for(n=0;n<r;n+=1)i+=t[n].transform.key+"_";var o=this.sequences[i];return o||(o={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[i]=o,this.sequenceList.push(o)),o},processSequence:function(t,n){for(var r=0,i=t.transforms.length,o=n;r<i&&!n;){if(t.transforms[r].transform.mProps._mdf){o=!0;break}r+=1}if(o)for(t.finalTransform.reset(),r=i-1;r>=0;r-=1)t.finalTransform.multiply(t.transforms[r].transform.mProps.v);t._mdf=o},processSequences:function(t){var n,r=this.sequenceList.length;for(n=0;n<r;n+=1)this.processSequence(this.sequenceList[n],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var t="__lottie_element_luma_buffer",n=null,r=null,i=null;function o(){var l=createNS("svg"),u=createNS("filter"),c=createNS("feColorMatrix");return u.setAttribute("id",t),c.setAttribute("type","matrix"),c.setAttribute("color-interpolation-filters","sRGB"),c.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),u.appendChild(c),l.appendChild(u),l.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(l.style.display="none"),l}function s(){n||(i=o(),document.body.appendChild(i),n=createTag("canvas"),r=n.getContext("2d"),r.filter="url(#"+t+")",r.fillStyle="rgba(0,0,0,0)",r.fillRect(0,0,1,1))}function a(l){return n||s(),n.width=l.width,n.height=l.height,r.filter="url(#"+t+")",n}return{load:s,get:a}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var n=createTag("canvas");return n.width=e,n.height=t,n}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(e){var t,n=e.data.ef?e.data.ef.length:0;this.filters=[];var r;for(t=0;t<n;t+=1){r=null;var i=e.data.ef[t].ty;if(registeredEffects[i]){var o=registeredEffects[i].effect;r=new o(e.effectsManager.effectElements[t],e)}r&&this.filters.push(r)}this.filters.length&&e.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,n=this.filters.length,r=[];for(t=0;t<n;t+=1)this.filters[t].type===e&&r.push(this.filters[t]);return r};function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var n,r=this.masksProperties.length,i=!1;for(n=0;n<r;n+=1)this.masksProperties[n].mode!=="n"&&(i=!0),this.viewData[n]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[n],3);this.hasMasks=i,i&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(!!this.hasMasks){var e=this.element.finalTransform.mat,t=this.element.canvasContext,n,r=this.masksProperties.length,i,o,s;for(t.beginPath(),n=0;n<r;n+=1)if(this.masksProperties[n].mode!=="n"){this.masksProperties[n].inv&&(t.moveTo(0,0),t.lineTo(this.element.globalData.compSize.w,0),t.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),t.lineTo(0,this.element.globalData.compSize.h),t.lineTo(0,0)),s=this.viewData[n].v,i=e.applyToPointArray(s.v[0][0],s.v[0][1],0),t.moveTo(i[0],i[1]);var a,l=s._length;for(a=1;a<l;a+=1)o=e.applyToTriplePoints(s.o[a-1],s.i[a],s.v[a]),t.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);o=e.applyToTriplePoints(s.o[a-1],s.i[0],s.v[0]),t.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5])}this.element.globalData.renderer.save(!0),t.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var t=this.globalData.canvasContext,n=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(n);var r=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(r),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 t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var n=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=n}},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(t){t.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 t=this.buffers[0],n=t.getContext("2d");this.clearCanvas(n),n.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 t=this.buffers[1],n=t.getContext("2d");this.clearCanvas(n),n.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 r=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(r.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var i=assetLoader.getLumaCanvas(this.canvasContext.canvas),o=i.getContext("2d");o.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(i,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,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(t){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!t)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var n=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(n),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(n),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(e,t,n,r){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var i=4;t.ty==="rc"?i=5:t.ty==="el"?i=6:t.ty==="sr"&&(i=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,i,e);var o,s=n.length,a;for(o=0;o<s;o+=1)n[o].closed||(a={transforms:r.addTransformSequence(n[o].transforms),trNodes:[]},this.styledShapes.push(a),n[o].elements.push(a))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var n={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:e.hd===!0},r={};if(e.ty==="fl"||e.ty==="st"?(r.c=PropertyFactory.getProp(this,e.c,1,255,this),r.c.k||(n.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")")):(e.ty==="gf"||e.ty==="gs")&&(r.s=PropertyFactory.getProp(this,e.s,1,null,this),r.e=PropertyFactory.getProp(this,e.e,1,null,this),r.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),r.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),r.g=new GradientProperty(this,e.g,this)),r.o=PropertyFactory.getProp(this,e.o,0,.01,this),e.ty==="st"||e.ty==="gs"){if(n.lc=lineCapEnum[e.lc||2],n.lj=lineJoinEnum[e.lj||2],e.lj==1&&(n.ml=e.ml),r.w=PropertyFactory.getProp(this,e.w,0,null,this),r.w.k||(n.wi=r.w.v),e.d){var i=new DashProperty(this,e.d,"canvas",this);r.d=i,r.d.k||(n.da=r.d.dashArray,n.do=r.d.dashoffset[0])}}else n.r=e.r===2?"evenodd":"nonzero";return this.stylesList.push(n),r.style=n,r},CVShapeElement.prototype.createGroupElement=function(){var e={it:[],prevViewData:[]};return e},CVShapeElement.prototype.createTransformElement=function(e){var t={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}};return t},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,n=this.stylesList.length;for(t=0;t<n;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,n,r,i){var o,s=e.length-1,a,l,u=[],c=[],f,d,h,m=[].concat(i);for(o=s;o>=0;o-=1){if(f=this.searchProcessedElement(e[o]),f?t[o]=n[f-1]:e[o]._shouldRender=r,e[o].ty==="fl"||e[o].ty==="st"||e[o].ty==="gf"||e[o].ty==="gs")f?t[o].style.closed=!1:t[o]=this.createStyleElement(e[o],m),u.push(t[o].style);else if(e[o].ty==="gr"){if(!f)t[o]=this.createGroupElement(e[o]);else for(l=t[o].it.length,a=0;a<l;a+=1)t[o].prevViewData[a]=t[o].it[a];this.searchShapes(e[o].it,t[o].it,t[o].prevViewData,r,m)}else e[o].ty==="tr"?(f||(h=this.createTransformElement(e[o]),t[o]=h),m.push(t[o]),this.addTransformToStyleList(t[o])):e[o].ty==="sh"||e[o].ty==="rc"||e[o].ty==="el"||e[o].ty==="sr"?f||(t[o]=this.createShapeElement(e[o])):e[o].ty==="tm"||e[o].ty==="rd"||e[o].ty==="pb"||e[o].ty==="zz"||e[o].ty==="op"?(f?(d=t[o],d.closed=!1):(d=ShapeModifiers.getModifier(e[o].ty),d.init(this,e[o]),t[o]=d,this.shapeModifiers.push(d)),c.push(d)):e[o].ty==="rp"&&(f?(d=t[o],d.closed=!0):(d=ShapeModifiers.getModifier(e[o].ty),t[o]=d,d.init(this,e,o,t),this.shapeModifiers.push(d),r=!1),c.push(d));this.addProcessedElement(e[o],o+1)}for(this.removeTransformFromStyleList(),this.closeStyles(u),s=c.length,o=0;o<s;o+=1)c[o].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t=this.stylesList.length,n,r,i,o,s,a,l=this.globalData.renderer,u=this.globalData.canvasContext,c,f;for(e=0;e<t;e+=1)if(f=this.stylesList[e],c=f.type,!((c==="st"||c==="gs")&&f.wi===0||!f.data._shouldRender||f.coOp===0||this.globalData.currentGlobalAlpha===0)){for(l.save(),s=f.elements,c==="st"||c==="gs"?(l.ctxStrokeStyle(c==="st"?f.co:f.grd),l.ctxLineWidth(f.wi),l.ctxLineCap(f.lc),l.ctxLineJoin(f.lj),l.ctxMiterLimit(f.ml||0)):l.ctxFillStyle(c==="fl"?f.co:f.grd),l.ctxOpacity(f.coOp),c!=="st"&&c!=="gs"&&u.beginPath(),l.ctxTransform(f.preTransforms.finalTransform.props),r=s.length,n=0;n<r;n+=1){for((c==="st"||c==="gs")&&(u.beginPath(),f.da&&(u.setLineDash(f.da),u.lineDashOffset=f.do)),a=s[n].trNodes,o=a.length,i=0;i<o;i+=1)a[i].t==="m"?u.moveTo(a[i].p[0],a[i].p[1]):a[i].t==="c"?u.bezierCurveTo(a[i].pts[0],a[i].pts[1],a[i].pts[2],a[i].pts[3],a[i].pts[4],a[i].pts[5]):u.closePath();(c==="st"||c==="gs")&&(l.ctxStroke(),f.da&&u.setLineDash(this.dashResetter))}c!=="st"&&c!=="gs"&&this.globalData.renderer.ctxFill(f.r),l.restore()}},CVShapeElement.prototype.renderShape=function(e,t,n,r){var i,o=t.length-1,s;for(s=e,i=o;i>=0;i-=1)t[i].ty==="tr"?(s=n[i].transform,this.renderShapeTransform(e,s)):t[i].ty==="sh"||t[i].ty==="el"||t[i].ty==="rc"||t[i].ty==="sr"?this.renderPath(t[i],n[i]):t[i].ty==="fl"?this.renderFill(t[i],n[i],s):t[i].ty==="st"?this.renderStroke(t[i],n[i],s):t[i].ty==="gf"||t[i].ty==="gs"?this.renderGradientFill(t[i],n[i],s):t[i].ty==="gr"?this.renderShape(s,t[i].it,n[i].it):t[i].ty;r&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var n=e.trNodes,r=t.paths,i,o,s,a=r._length;n.length=0;var l=e.transforms.finalTransform;for(s=0;s<a;s+=1){var u=r.shapes[s];if(u&&u.v){for(o=u._length,i=1;i<o;i+=1)i===1&&n.push({t:"m",p:l.applyToPointArray(u.v[0][0],u.v[0][1],0)}),n.push({t:"c",pts:l.applyToTriplePoints(u.o[i-1],u.i[i],u.v[i])});o===1&&n.push({t:"m",p:l.applyToPointArray(u.v[0][0],u.v[0][1],0)}),u.c&&o&&(n.push({t:"c",pts:l.applyToTriplePoints(u.o[i-1],u.i[0],u.v[0])}),n.push({t:"z"}))}}e.trNodes=n}},CVShapeElement.prototype.renderPath=function(e,t){if(e.hd!==!0&&e._shouldRender){var n,r=t.styledShapes.length;for(n=0;n<r;n+=1)this.renderStyledShape(t.styledShapes[n],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,n){var r=t.style;(t.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(r.coOp=t.o.v*n.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,n){var r=t.style,i;if(!r.grd||t.g._mdf||t.s._mdf||t.e._mdf||e.t!==1&&(t.h._mdf||t.a._mdf)){var o=this.globalData.canvasContext,s=t.s.v,a=t.e.v;if(e.t===1)i=o.createLinearGradient(s[0],s[1],a[0],a[1]);else{var l=Math.sqrt(Math.pow(s[0]-a[0],2)+Math.pow(s[1]-a[1],2)),u=Math.atan2(a[1]-s[1],a[0]-s[0]),c=t.h.v;c>=1?c=.99:c<=-1&&(c=-.99);var f=l*c,d=Math.cos(u+t.a.v)*f+s[0],h=Math.sin(u+t.a.v)*f+s[1];i=o.createRadialGradient(d,h,0,s[0],s[1],l)}var m,g=e.g.p,b=t.g.c,v=1;for(m=0;m<g;m+=1)t.g._hasOpacity&&t.g._collapsable&&(v=t.g.o[m*2+1]),i.addColorStop(b[m*4]/100,"rgba("+b[m*4+1]+","+b[m*4+2]+","+b[m*4+3]+","+v+")");r.grd=i}r.coOp=t.o.v*n.opacity},CVShapeElement.prototype.renderStroke=function(e,t,n){var r=t.style,i=t.d;i&&(i._mdf||this._isFirstFrame)&&(r.da=i.dashArray,r.do=i.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(r.coOp=t.o.v*n.opacity),(t.w._mdf||this._isFirstFrame)&&(r.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(e,t,n){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var n=!1;e.sc&&(n=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var r=this.globalData.fontManager.getFontByName(e.f),i,o,s=e.l,a=this.mHelper;this.stroke=n,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,o=e.finalText.length;var l,u,c,f,d,h,m,g,b,v,x=this.data.singleShape,y=e.tr*.001*e.finalSize,_=0,w=0,k=!0,O=0;for(i=0;i<o;i+=1){l=this.globalData.fontManager.getCharData(e.finalText[i],r.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),u=l&&l.data||{},a.reset(),x&&s[i].n&&(_=-y,w+=e.yOffset,w+=k?1:0,k=!1),d=u.shapes?u.shapes[0].it:[],m=d.length,a.scale(e.finalSize/100,e.finalSize/100),x&&this.applyTextPropertiesToMatrix(e,a,s[i].line,_,w),b=createSizedArray(m-1);var M=0;for(h=0;h<m;h+=1)if(d[h].ty==="sh"){for(f=d[h].ks.k.i.length,g=d[h].ks.k,v=[],c=1;c<f;c+=1)c===1&&v.push(a.applyToX(g.v[0][0],g.v[0][1],0),a.applyToY(g.v[0][0],g.v[0][1],0)),v.push(a.applyToX(g.o[c-1][0],g.o[c-1][1],0),a.applyToY(g.o[c-1][0],g.o[c-1][1],0),a.applyToX(g.i[c][0],g.i[c][1],0),a.applyToY(g.i[c][0],g.i[c][1],0),a.applyToX(g.v[c][0],g.v[c][1],0),a.applyToY(g.v[c][0],g.v[c][1],0));v.push(a.applyToX(g.o[c-1][0],g.o[c-1][1],0),a.applyToY(g.o[c-1][0],g.o[c-1][1],0),a.applyToX(g.i[0][0],g.i[0][1],0),a.applyToY(g.i[0][0],g.i[0][1],0),a.applyToX(g.v[0][0],g.v[0][1],0),a.applyToY(g.v[0][0],g.v[0][1],0)),b[M]=v,M+=1}x&&(_+=s[i].l,_+=y),this.textSpans[O]?this.textSpans[O].elem=b:this.textSpans[O]={elem:b},O+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var e=this.canvasContext;e.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var t,n,r,i,o,s,a=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;n=l.length;var u,c=null,f=null,d=null,h,m,g=this.globalData.renderer;for(t=0;t<n;t+=1)if(!l[t].n){if(u=a[t],u&&(g.save(),g.ctxTransform(u.p),g.ctxOpacity(u.o)),this.fill){for(u&&u.fc?c!==u.fc&&(g.ctxFillStyle(u.fc),c=u.fc):c!==this.values.fill&&(c=this.values.fill,g.ctxFillStyle(this.values.fill)),h=this.textSpans[t].elem,i=h.length,this.globalData.canvasContext.beginPath(),r=0;r<i;r+=1)for(m=h[r],s=m.length,this.globalData.canvasContext.moveTo(m[0],m[1]),o=2;o<s;o+=6)this.globalData.canvasContext.bezierCurveTo(m[o],m[o+1],m[o+2],m[o+3],m[o+4],m[o+5]);this.globalData.canvasContext.closePath(),g.ctxFill()}if(this.stroke){for(u&&u.sw?d!==u.sw&&(d=u.sw,g.ctxLineWidth(u.sw)):d!==this.values.sWidth&&(d=this.values.sWidth,g.ctxLineWidth(this.values.sWidth)),u&&u.sc?f!==u.sc&&(f=u.sc,g.ctxStrokeStyle(u.sc)):f!==this.values.stroke&&(f=this.values.stroke,g.ctxStrokeStyle(this.values.stroke)),h=this.textSpans[t].elem,i=h.length,this.globalData.canvasContext.beginPath(),r=0;r<i;r+=1)for(m=h[r],s=m.length,this.globalData.canvasContext.moveTo(m[0],m[1]),o=2;o<s;o+=6)this.globalData.canvasContext.bezierCurveTo(m[o],m[o+1],m[o+2],m[o+3],m[o+4],m[o+5]);this.globalData.canvasContext.closePath(),g.ctxStroke()}u&&this.globalData.renderer.restore()}};function CVImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t=e.getContext("2d"),n=this.img.width,r=this.img.height,i=n/r,o=this.assetData.w/this.assetData.h,s,a,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;i>o&&l==="xMidYMid slice"||i<o&&l!=="xMidYMid slice"?(a=r,s=a*o):(s=n,a=s/o),t.drawImage(this.img,(n-s)/2,(r-a)/2,s,a,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(e,t,n){this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){e[0]===1&&e[1]===0&&e[4]===0&&e[5]===1&&e[12]===0&&e[13]===0||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,n,r){this.canvasContext.fillRect(e,t,n,r)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var n="0px 0px 0px";t.transformOrigin=n,t.mozTransformOrigin=n,t.webkitTransformOrigin=n,t["-webkit-transform"]=n,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){this.reset();var n,r;e?(n=e,r=t,this.canvasContext.canvas.width=n,this.canvasContext.canvas.height=r):(this.animationItem.wrapper&&this.animationItem.container?(n=this.animationItem.wrapper.offsetWidth,r=this.animationItem.wrapper.offsetHeight):(n=this.canvasContext.canvas.width,r=this.canvasContext.canvas.height),this.canvasContext.canvas.width=n*this.renderConfig.dpr,this.canvasContext.canvas.height=r*this.renderConfig.dpr);var i,o;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var s=this.renderConfig.preserveAspectRatio.split(" "),a=s[1]||"meet",l=s[0]||"xMidYMid",u=l.substr(0,4),c=l.substr(4);i=n/r,o=this.transformCanvas.w/this.transformCanvas.h,o>i&&a==="meet"||o<i&&a==="slice"?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=r/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr)),u==="xMid"&&(o<i&&a==="meet"||o>i&&a==="slice")?this.transformCanvas.tx=(n-this.transformCanvas.w*(r/this.transformCanvas.h))/2*this.renderConfig.dpr:u==="xMax"&&(o<i&&a==="meet"||o>i&&a==="slice")?this.transformCanvas.tx=(n-this.transformCanvas.w*(r/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,c==="YMid"&&(o>i&&a==="meet"||o<i&&a==="slice")?this.transformCanvas.ty=(r-this.transformCanvas.h*(n/this.transformCanvas.w))/2*this.renderConfig.dpr:c==="YMax"&&(o>i&&a==="meet"||o<i&&a==="slice")?this.transformCanvas.ty=(r-this.transformCanvas.h*(n/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var e,t=this.layers?this.layers.length:0;for(e=t-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if(!(this.renderedFrame===e&&this.renderConfig.clearCanvas===!0&&!t||this.destroyed||e===-1)){this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var n,r=this.layers.length;for(this.completeLayers||this.checkLayers(e),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].prepareFrame(e-this.layers[n].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){var n=this.createItem(this.layers[e],this,this.globalData);t[e]=n,n.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.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 e,t=15;for(e=0;e<t;e+=1){var n=new CanvasContext;this.stack[e]=n}this._length=t,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var e=this._length*2,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t=this.stack[this.cArrPos],n=t.transform,r,i=this.cTr.props;for(r=0;r<16;r+=1)i[r]=n[r];if(e){this.nativeContext.restore();var o=this.stack[this.cArrPos+1];this.appliedFillStyle=o.fillStyle,this.appliedStrokeStyle=o.strokeStyle,this.appliedLineWidth=o.lineWidth,this.appliedLineCap=o.lineCap,this.appliedLineJoin=o.lineJoin,this.appliedMiterLimit=o.miterLimit}this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13]),(e||t.opacity!==-1&&this.currentOpacity!==t.opacity)&&(this.nativeContext.globalAlpha=t.opacity,this.currentOpacity=t.opacity),this.currentFillStyle=t.fillStyle,this.currentStrokeStyle=t.strokeStyle,this.currentLineWidth=t.lineWidth,this.currentLineCap=t.lineCap,this.currentLineJoin=t.lineJoin,this.currentMiterLimit=t.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var n=this.stack[this.cArrPos],r;for(r=0;r<16;r+=1)n.transform[r]=t[r];this.cArrPos+=1;var i=this.stack[this.cArrPos];i.opacity=n.opacity,i.fillStyle=n.fillStyle,i.strokeStyle=n.strokeStyle,i.lineWidth=n.lineWidth,i.lineCap=n.lineCap,i.lineJoin=n.lineJoin,i.miterLimit=n.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var n=t.props;this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,n,r){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,n,r)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(e,t,n){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e=this.canvasContext;e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip();var t,n=this.layers.length;for(t=n-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var e,t=this.layers.length;for(e=t-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:t&&t.clearCanvas!==void 0?t.clearCanvas:!0,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.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(e){return new CVCompElement(e,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 t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var n=this.finalTransform.mat.toCSS();t.transform=n,t.webkitTransform=n}this.finalTransform._opMdf&&(t.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(e,t,n){this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?(e=createNS("rect"),e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(e=createTag("div"),e.style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)};function HShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,n),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 e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)t=e[n].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var n=e.sh.v,r=e.transformers,i,o=n._length,s,a,l,u;if(!(o<=1)){for(i=0;i<o-1;i+=1)s=this.getTransformedPoint(r,n.v[i]),a=this.getTransformedPoint(r,n.o[i]),l=this.getTransformedPoint(r,n.i[i+1]),u=this.getTransformedPoint(r,n.v[i+1]),this.checkBounds(s,a,l,u,t);n.c&&(s=this.getTransformedPoint(r,n.v[i]),a=this.getTransformedPoint(r,n.o[i]),l=this.getTransformedPoint(r,n.i[0]),u=this.getTransformedPoint(r,n.v[0]),this.checkBounds(s,a,l,u,t))}},HShapeElement.prototype.checkBounds=function(e,t,n,r,i){this.getBoundsOfCurve(e,t,n,r);var o=this.shapeBoundingBox;i.x=bmMin(o.left,i.x),i.xMax=bmMax(o.right,i.xMax),i.y=bmMin(o.top,i.y),i.yMax=bmMax(o.bottom,i.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,n,r){for(var i=[[e[0],r[0]],[e[1],r[1]]],o,s,a,l,u,c,f,d=0;d<2;++d)s=6*e[d]-12*t[d]+6*n[d],o=-3*e[d]+9*t[d]-9*n[d]+3*r[d],a=3*t[d]-3*e[d],s|=0,o|=0,a|=0,o===0&&s===0||(o===0?(l=-a/s,l>0&&l<1&&i[d].push(this.calculateF(l,e,t,n,r,d))):(u=s*s-4*a*o,u>=0&&(c=(-s+bmSqrt(u))/(2*o),c>0&&c<1&&i[d].push(this.calculateF(c,e,t,n,r,d)),f=(-s-bmSqrt(u))/(2*o),f>0&&f<1&&i[d].push(this.calculateF(f,e,t,n,r,d)))));this.shapeBoundingBox.left=bmMin.apply(null,i[0]),this.shapeBoundingBox.top=bmMin.apply(null,i[1]),this.shapeBoundingBox.right=bmMax.apply(null,i[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,i[1])},HShapeElement.prototype.calculateF=function(e,t,n,r,i,o){return bmPow(1-e,3)*t[o]+3*bmPow(1-e,2)*e*n[o]+3*(1-e)*bmPow(e,2)*r[o]+bmPow(e,3)*i[o]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)e[n]&&e[n].sh?this.calculateShapeBoundingBox(e[n],t):e[n]&&e[n].it?this.calculateBoundingBox(e[n].it,t):e[n]&&e[n].style&&e[n].w&&this.expandStrokeBoundingBox(e[n].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var n=0;if(e.keyframes){for(var r=0;r<e.keyframes.length;r+=1){var i=e.keyframes[r].s;i>n&&(n=i)}n*=e.mult}else n=e.v*e.mult;t.x-=n,t.xMax+=n,t.y-=n,t.yMax+=n},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var n=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),n=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),n=!0),n||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var r=this.shapeCont.style,i="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";r.transform=i,r.webkitTransform=i}}};function HTextElement(e,t,n){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,n=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=n,t.color=n,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var r=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",r.fClass)this.innerElem.className=r.fClass;else{t.fontFamily=r.fFamily;var i=e.fWeight,o=e.fStyle;t.fontStyle=o,t.fontWeight=i}var s,a,l=e.l;a=l.length;var u,c,f,d=this.mHelper,h,m="",g=0;for(s=0;s<a;s+=1){if(this.globalData.fontManager.chars?(this.textPaths[g]?u=this.textPaths[g]:(u=createNS("path"),u.setAttribute("stroke-linecap",lineCapEnum[1]),u.setAttribute("stroke-linejoin",lineJoinEnum[2]),u.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[g]?(c=this.textSpans[g],f=c.children[0]):(c=createTag("div"),c.style.lineHeight=0,f=createNS("svg"),f.appendChild(u),styleDiv(c)))):this.isMasked?u=this.textPaths[g]?this.textPaths[g]:createNS("text"):this.textSpans[g]?(c=this.textSpans[g],u=this.textPaths[g]):(c=createTag("span"),styleDiv(c),u=createTag("span"),styleDiv(u),c.appendChild(u)),this.globalData.fontManager.chars){var b=this.globalData.fontManager.getCharData(e.finalText[s],r.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),v;if(b?v=b.data:v=null,d.reset(),v&&v.shapes&&v.shapes.length&&(h=v.shapes[0].it,d.scale(e.finalSize/100,e.finalSize/100),m=this.createPathShape(d,h),u.setAttribute("d",m)),this.isMasked)this.innerElem.appendChild(u);else{if(this.innerElem.appendChild(c),v&&v.shapes){document.body.appendChild(f);var x=f.getBBox();f.setAttribute("width",x.width+2),f.setAttribute("height",x.height+2),f.setAttribute("viewBox",x.x-1+" "+(x.y-1)+" "+(x.width+2)+" "+(x.height+2));var y=f.style,_="translate("+(x.x-1)+"px,"+(x.y-1)+"px)";y.transform=_,y.webkitTransform=_,l[s].yOffset=x.y-1}else f.setAttribute("width",1),f.setAttribute("height",1);c.appendChild(f)}}else if(u.textContent=l[s].val,u.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(u);else{this.innerElem.appendChild(c);var w=u.style,k="translate3d(0,"+-e.finalSize/1.2+"px,0)";w.transform=k,w.webkitTransform=k}this.isMasked?this.textSpans[g]=u:this.textSpans[g]=c,this.textSpans[g].style.display="block",this.textPaths[g]=u,g+=1}for(;g<this.textSpans.length;)this.textSpans[g].style.display="none",g+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var e;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var n,r,i=0,o=this.textAnimator.renderedLetters,s=this.textProperty.currentData.l;r=s.length;var a,l,u;for(n=0;n<r;n+=1)s[n].n?i+=1:(l=this.textSpans[n],u=this.textPaths[n],a=o[i],i+=1,a._mdf.m&&(this.isMasked?l.setAttribute("transform",a.m):(l.style.webkitTransform=a.m,l.style.transform=a.m)),l.style.opacity=a.o,a.sw&&a._mdf.sw&&u.setAttribute("stroke-width",a.sw),a.sc&&a._mdf.sc&&u.setAttribute("stroke",a.sc),a.fc&&a._mdf.fc&&(u.setAttribute("fill",a.fc),u.style.color=a.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var c=this.innerElem.getBBox();this.currentBBox.w!==c.width&&(this.currentBBox.w=c.width,this.svgElement.setAttribute("width",c.width)),this.currentBBox.h!==c.height&&(this.currentBBox.h=c.height,this.svgElement.setAttribute("height",c.height));var f=1;if(this.currentBBox.w!==c.width+f*2||this.currentBBox.h!==c.height+f*2||this.currentBBox.x!==c.x-f||this.currentBBox.y!==c.y-f){this.currentBBox.w=c.width+f*2,this.currentBBox.h=c.height+f*2,this.currentBBox.x=c.x-f,this.currentBBox.y=c.y-f,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var d="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=d,e.webkitTransform=d}}}};function HCameraElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initHierarchy();var r=PropertyFactory.getProp;if(this.pe=r(this,e.pe,0,0,this),e.ks.p.s?(this.px=r(this,e.ks.p.x,1,0,this),this.py=r(this,e.ks.p.y,1,0,this),this.pz=r(this,e.ks.p.z,1,0,this)):this.p=r(this,e.ks.p,1,0,this),e.ks.a&&(this.a=r(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var i,o=e.ks.or.k.length;for(i=0;i<o;i+=1)e.ks.or.k[i].to=null,e.ks.or.k[i].ti=null}this.or=r(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=r(this,e.ks.rx,0,degToRads,this),this.ry=r(this,e.ks.ry,0,degToRads,this),this.rz=r(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t=this.comp.threeDElements.length,n,r,i;for(e=0;e<t;e+=1)if(n=this.comp.threeDElements[e],n.type==="3d"){r=n.perspectiveElem.style,i=n.container.style;var o=this.pe.v+"px",s="0px 0px 0px",a="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.perspective=o,r.webkitPerspective=o,i.transformOrigin=s,i.mozTransformOrigin=s,i.webkitTransformOrigin=s,r.transform=a,r.webkitTransform=a}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e=this._isFirstFrame,t,n;if(this.hierarchy)for(n=this.hierarchy.length,t=0;t<n;t+=1)e=this.hierarchy[t].finalTransform.mProp._mdf||e;if(e||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(n=this.hierarchy.length-1,t=n;t>=0;t-=1){var r=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-r.p.v[0],-r.p.v[1],r.p.v[2]),this.mat.rotateX(-r.or.v[0]).rotateY(-r.or.v[1]).rotateZ(r.or.v[2]),this.mat.rotateX(-r.rx.v).rotateY(-r.ry.v).rotateZ(r.rz.v),this.mat.scale(1/r.s.v[0],1/r.s.v[1],1/r.s.v[2]),this.mat.translate(r.a.v[0],r.a.v[1],r.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 i;this.p?i=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:i=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var o=Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2)+Math.pow(i[2],2)),s=[i[0]/o,i[1]/o,i[2]/o],a=Math.sqrt(s[2]*s[2]+s[0]*s[0]),l=Math.atan2(s[1],a),u=Math.atan2(s[0],-s[2]);this.mat.rotateY(u).rotateX(-l)}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 c=!this._prevMat.equals(this.mat);if((c||this.pe._mdf)&&this.comp.threeDElements){n=this.comp.threeDElements.length;var f,d,h;for(t=0;t<n;t+=1)if(f=this.comp.threeDElements[t],f.type==="3d"){if(c){var m=this.mat.toCSS();h=f.container.style,h.transform=m,h.webkitTransform=m}this.pe._mdf&&(d=f.perspectiveElem.style,d.perspective=this.pe.v+"px",d.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(!!n){var r=this.layers[t];if(!r.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(n,t);else{for(var i=0,o,s,a;i<t;)this.elements[i]&&this.elements[i]!==!0&&this.elements[i].getBaseElement&&(s=this.elements[i],a=this.layers[i].ddd?this.getThreeDContainerByPos(i):s.getBaseElement(),o=a||o),i+=1;o?(!r.ddd||!this.supports3d)&&this.layerElement.insertBefore(n,o):(!r.ddd||!this.supports3d)&&this.layerElement.appendChild(n)}else this.addTo3dContainer(n,t)}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,n=this.threeDElements.length;t<n;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var n=createTag("div"),r,i;styleDiv(n);var o=createTag("div");if(styleDiv(o),t==="3d"){r=n.style,r.width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px";var s="50% 50%";r.webkitTransformOrigin=s,r.mozTransformOrigin=s,r.transformOrigin=s,i=o.style;var a="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";i.transform=a,i.webkitTransform=a}n.appendChild(o);var l={container:o,perspectiveElem:n,startPos:e,endPos:e,type:t};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var e,t=this.layers.length,n,r="";for(e=0;e<t;e+=1)this.layers[e].ddd&&this.layers[e].ty!==3?(r!=="3d"&&(r="3d",n=this.createThreeDContainer(e,"3d")),n.endPos=Math.max(n.endPos,e)):(r!=="2d"&&(r="2d",n=this.createThreeDContainer(e,"2d")),n.endPos=Math.max(n.endPos,e));for(t=this.threeDElements.length,e=t-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var n=0,r=this.threeDElements.length;n<r;){if(t<=this.threeDElements[n].endPos){for(var i=this.threeDElements[n].startPos,o;i<t;)this.elements[i]&&this.elements[i].getBaseElement&&(o=this.elements[i].getBaseElement()),i+=1;o?this.threeDElements[n].container.insertBefore(e,o):this.threeDElements[n].container.appendChild(e);break}n+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),n=this.animationItem.wrapper,r=t.style;r.width=e.w+"px",r.height=e.h+"px",this.resizerElem=t,styleDiv(t),r.transformStyle="flat",r.mozTransformStyle="flat",r.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),n.appendChild(t),r.overflow="hidden";var i=createNS("svg");i.setAttribute("width","1"),i.setAttribute("height","1"),styleDiv(i),this.resizerElem.appendChild(i);var o=createNS("defs");i.appendChild(o),this.data=e,this.setupGlobalData(e,i),this.globalData.defs=o,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e=this.animationItem.wrapper.offsetWidth,t=this.animationItem.wrapper.offsetHeight,n=e/t,r=this.globalData.compSize.w/this.globalData.compSize.h,i,o,s,a;r>n?(i=e/this.globalData.compSize.w,o=e/this.globalData.compSize.w,s=0,a=(t-this.globalData.compSize.h*(e/this.globalData.compSize.w))/2):(i=t/this.globalData.compSize.h,o=t/this.globalData.compSize.h,s=(e-this.globalData.compSize.w*(t/this.globalData.compSize.h))/2,a=0);var l=this.resizerElem.style;l.webkitTransform="matrix3d("+i+",0,0,0,0,"+o+",0,0,0,0,1,0,"+s+","+a+",0,1)",l.transform=l.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 e=this.globalData.compSize.w,t=this.globalData.compSize.h,n,r=this.threeDElements.length;for(n=0;n<r;n+=1){var i=this.threeDElements[n].perspectiveElem.style;i.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(t,2))+"px",i.perspective=i.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,n=e.length,r=createTag("div");for(t=0;t<n;t+=1)if(e[t].xt){var i=this.createComp(e[t],r,this.globalData.comp,null);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}};function HCompElement(e,t,n){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var n=0,r;n<t;)this.elements[n]&&this.elements[n].getBaseElement&&(r=this.elements[n].getBaseElement()),n+=1;r?this.layerElement.insertBefore(e,r):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(){return function(e){function t(n){for(var r=0,i=e.layers.length;r<i;){if(e.layers[r].nm===n||e.layers[r].ind===n)return e.elements[r].layerInterface;r+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t}}();function _typeof$2(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(n){return typeof n}:_typeof$2=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$2(e)}function seedRandom(e,t){var n=this,r=256,i=6,o=52,s="random",a=t.pow(r,i),l=t.pow(2,o),u=l*2,c=r-1,f;function d(y,_,w){var k=[];_=_===!0?{entropy:!0}:_||{};var O=b(g(_.entropy?[y,x(e)]:y===null?v():y,3),k),M=new h(k),I=function(){for(var J=M.g(i),H=a,ee=0;J<l;)J=(J+ee)*r,H*=r,ee=M.g(1);for(;J>=u;)J/=2,H/=2,ee>>>=1;return(J+ee)/H};return I.int32=function(){return M.g(4)|0},I.quick=function(){return M.g(4)/4294967296},I.double=I,b(x(M.S),e),(_.pass||w||function(W,J,H,ee){return ee&&(ee.S&&m(ee,M),W.state=function(){return m(M,{})}),H?(t[s]=W,J):W})(I,O,"global"in _?_.global:this==t,_.state)}t["seed"+s]=d;function h(y){var _,w=y.length,k=this,O=0,M=k.i=k.j=0,I=k.S=[];for(w||(y=[w++]);O<r;)I[O]=O++;for(O=0;O<r;O++)I[O]=I[M=c&M+y[O%w]+(_=I[O])],I[M]=_;k.g=function(W){for(var J,H=0,ee=k.i,j=k.j,V=k.S;W--;)J=V[ee=c&ee+1],H=H*r+V[c&(V[ee]=V[j=c&j+J])+(V[j]=J)];return k.i=ee,k.j=j,H}}function m(y,_){return _.i=y.i,_.j=y.j,_.S=y.S.slice(),_}function g(y,_){var w=[],k=_typeof$2(y),O;if(_&&k=="object")for(O in y)try{w.push(g(y[O],_-1))}catch{}return w.length?w:k=="string"?y:y+"\0"}function b(y,_){for(var w=y+"",k,O=0;O<w.length;)_[c&O]=c&(k^=_[c&O]*19)+w.charCodeAt(O++);return x(_)}function v(){try{if(f)return x(f.randomBytes(r));var y=new Uint8Array(r);return(n.crypto||n.msCrypto).getRandomValues(y),x(y)}catch{var _=n.navigator,w=_&&_.plugins;return[+new Date,n,w,n.screen,x(e)]}}function x(y){return String.fromCharCode.apply(0,y)}b(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(n){return typeof n}:_typeof$1=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$1(e)}var ExpressionManager=function(){"use strict";var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return e==="number"||t instanceof Number||e==="boolean"||e==="string"}function $bm_neg(e){var t=_typeof$1(e);if(t==="number"||e instanceof Number||t==="boolean")return-e;if($bm_isInstanceOfArray(e)){var n,r=e.length,i=[];for(n=0;n<r;n+=1)i[n]=-e[n];return i}return e.propType?e.v:-e}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var n=_typeof$1(e),r=_typeof$1(t);if(isNumerable(n,e)&&isNumerable(r,t)||n==="string"||r==="string")return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(r,t))return e=e.slice(0),e[0]+=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,o=e.length,s=t.length,a=[];i<o||i<s;)(typeof e[i]=="number"||e[i]instanceof Number)&&(typeof t[i]=="number"||t[i]instanceof Number)?a[i]=e[i]+t[i]:a[i]=t[i]===void 0?e[i]:e[i]||t[i],i+=1;return a}return 0}var add=sum;function sub(e,t){var n=_typeof$1(e),r=_typeof$1(t);if(isNumerable(n,e)&&isNumerable(r,t))return n==="string"&&(e=parseInt(e,10)),r==="string"&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(r,t))return e=e.slice(0),e[0]-=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,o=e.length,s=t.length,a=[];i<o||i<s;)(typeof e[i]=="number"||e[i]instanceof Number)&&(typeof t[i]=="number"||t[i]instanceof Number)?a[i]=e[i]-t[i]:a[i]=t[i]===void 0?e[i]:e[i]||t[i],i+=1;return a}return 0}function mul(e,t){var n=_typeof$1(e),r=_typeof$1(t),i;if(isNumerable(n,e)&&isNumerable(r,t))return e*t;var o,s;if($bm_isInstanceOfArray(e)&&isNumerable(r,t)){for(s=e.length,i=createTypedArray("float32",s),o=0;o<s;o+=1)i[o]=e[o]*t;return i}if(isNumerable(n,e)&&$bm_isInstanceOfArray(t)){for(s=t.length,i=createTypedArray("float32",s),o=0;o<s;o+=1)i[o]=e*t[o];return i}return 0}function div(e,t){var n=_typeof$1(e),r=_typeof$1(t),i;if(isNumerable(n,e)&&isNumerable(r,t))return e/t;var o,s;if($bm_isInstanceOfArray(e)&&isNumerable(r,t)){for(s=e.length,i=createTypedArray("float32",s),o=0;o<s;o+=1)i[o]=e[o]/t;return i}if(isNumerable(n,e)&&$bm_isInstanceOfArray(t)){for(s=t.length,i=createTypedArray("float32",s),o=0;o<s;o+=1)i[o]=e/t[o];return i}return 0}function mod(e,t){return typeof e=="string"&&(e=parseInt(e,10)),typeof t=="string"&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,n){if(t>n){var r=n;n=t,t=r}return Math.min(Math.max(e,t),n)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if(typeof e=="number"||e instanceof Number)return t=t||0,Math.abs(e-t);t||(t=helperLengthArray);var n,r=Math.min(e.length,t.length),i=0;for(n=0;n<r;n+=1)i+=Math.pow(t[n]-e[n],2);return Math.sqrt(i)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t=e[0],n=e[1],r=e[2],i=Math.max(t,n,r),o=Math.min(t,n,r),s,a,l=(i+o)/2;if(i===o)s=0,a=0;else{var u=i-o;switch(a=l>.5?u/(2-i-o):u/(i+o),i){case t:s=(n-r)/u+(n<r?6:0);break;case n:s=(r-t)/u+2;break;case r:s=(t-n)/u+4;break;default:break}s/=6}return[s,a,l,e[3]]}function hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hslToRgb(e){var t=e[0],n=e[1],r=e[2],i,o,s;if(n===0)i=r,s=r,o=r;else{var a=r<.5?r*(1+n):r+n-r*n,l=2*r-a;i=hue2rgb(l,a,t+1/3),o=hue2rgb(l,a,t),s=hue2rgb(l,a,t-1/3)}return[i,o,s,e[3]]}function linear(e,t,n,r,i){if((r===void 0||i===void 0)&&(r=t,i=n,t=0,n=1),n<t){var o=n;n=t,t=o}if(e<=t)return r;if(e>=n)return i;var s=n===t?0:(e-t)/(n-t);if(!r.length)return r+(i-r)*s;var a,l=r.length,u=createTypedArray("float32",l);for(a=0;a<l;a+=1)u[a]=r[a]+(i[a]-r[a])*s;return u}function random(e,t){if(t===void 0&&(e===void 0?(e=0,t=1):(t=e,e=void 0)),t.length){var n,r=t.length;e||(e=createTypedArray("float32",r));var i=createTypedArray("float32",r),o=BMMath.random();for(n=0;n<r;n+=1)i[n]=e[n]+o*(t[n]-e[n]);return i}e===void 0&&(e=0);var s=BMMath.random();return e+s*(t-e)}function createPath(e,t,n,r){var i,o=e.length,s=shapePool.newElement();s.setPathData(!!r,o);var a=[0,0],l,u;for(i=0;i<o;i+=1)l=t&&t[i]?t[i]:a,u=n&&n[i]?n[i]:a,s.setTripleAt(e[i][0],e[i][1],u[0]+e[i][0],u[1]+e[i][1],l[0]+e[i][0],l[1]+e[i][1],i,!0);return s}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=function e(t,n){var r,i,o=this.pv.length?this.pv.length:1,s=createTypedArray("float32",o);t=5;var a=Math.floor(time*t);for(r=0,i=0;r<a;){for(i=0;i<o;i+=1)s[i]+=-n+n*2*BMMath.random();r+=1}var l=time*t,u=l-Math.floor(l),c=createTypedArray("float32",o);if(o>1){for(i=0;i<o;i+=1)c[i]=this.pv[i]+s[i]+(-n+n*2*BMMath.random())*u;return c}return this.pv+s[0]+(-n+n*2*BMMath.random())*u}.bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(e,t){var n=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],r=Math.atan2(n[0],Math.sqrt(n[1]*n[1]+n[2]*n[2]))/degToRads,i=-Math.atan2(n[1],n[2])/degToRads;return[i,r,0]}function easeOut(e,t,n,r,i){return applyEase(easeOutBez,e,t,n,r,i)}function easeIn(e,t,n,r,i){return applyEase(easeInBez,e,t,n,r,i)}function ease(e,t,n,r,i){return applyEase(easeInOutBez,e,t,n,r,i)}function applyEase(e,t,n,r,i,o){i===void 0?(i=n,o=r):t=(t-n)/(r-n),t>1?t=1:t<0&&(t=0);var s=e(t);if($bm_isInstanceOfArray(i)){var a,l=i.length,u=createTypedArray("float32",l);for(a=0;a<l;a+=1)u[a]=(o[a]-i[a])*s+i[a];return u}return(o-i)*s+i}function nearestKey(e){var t,n=data.k.length,r,i;if(!data.k.length||typeof data.k[0]=="number")r=0,i=0;else if(r=-1,e*=elem.comp.globalData.frameRate,e<data.k[0].t)r=1,i=data.k[0].t;else{for(t=0;t<n-1;t+=1)if(e===data.k[t].t){r=t+1,i=data.k[t].t;break}else if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(r=t+2,i=data.k[t+1].t):(r=t+1,i=data.k[t].t);break}r===-1&&(r=t+1,i=data.k[t].t)}var o={};return o.index=r,o.time=i/elem.comp.globalData.frameRate,o}function key(e){var t,n,r;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var i=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(r=i.length,n=0;n<r;n+=1)t[n]=i[n],t.value[n]=i[n];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return!e&&e!==0&&(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return typeof value=="string"?t===void 0?value.substring(e):value.substring(e,t):""}function substr(e,t){return typeof value=="string"?t===void 0?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=e===0?0:Math.floor(time*e)/e,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var e={};e.initExpressions=t,e.resetFrame=ExpressionManager.resetFrame;function t(n){var r=0,i=[];function o(){r+=1}function s(){r-=1,r===0&&l()}function a(u){i.indexOf(u)===-1&&i.push(u)}function l(){var u,c=i.length;for(u=0;u<c;u+=1)i[u].release();i.length=0}n.renderer.compInterface=CompExpressionInterface(n.renderer),n.renderer.globalData.projectInterface.registerComposition(n.renderer),n.renderer.globalData.pushExpression=o,n.renderer.globalData.popExpression=s,n.renderer.globalData.registerExpressionProperty=a}return e}(),MaskManagerInterface=function(){function e(n,r){this._mask=n,this._data=r}Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var t=function(r){var i=createSizedArray(r.viewData.length),o,s=r.viewData.length;for(o=0;o<s;o+=1)i[o]=new e(r.viewData[o],r.masksProperties[o]);var a=function(u){for(o=0;o<s;){if(r.masksProperties[o].nm===u)return i[o];o+=1}return null};return a};return t}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function n(s,a,l){Object.defineProperty(s,"velocity",{get:function(){return a.getVelocityAtTime(a.comp.currentFrame)}}),s.numKeys=a.keyframes?a.keyframes.length:0,s.key=function(u){if(!s.numKeys)return 0;var c="";"s"in a.keyframes[u-1]?c=a.keyframes[u-1].s:"e"in a.keyframes[u-2]?c=a.keyframes[u-2].e:c=a.keyframes[u-2].s;var f=l==="unidimensional"?new Number(c):Object.assign({},c);return f.time=a.keyframes[u-1].t/a.elem.comp.globalData.frameRate,f.value=l==="unidimensional"?c[0]:c,f},s.valueAtTime=a.getValueAtTime,s.speedAtTime=a.getSpeedAtTime,s.velocityAtTime=a.getVelocityAtTime,s.propertyGroup=a.propertyGroup}function r(s){(!s||!("pv"in s))&&(s=e);var a=1/s.mult,l=s.pv*a,u=new Number(l);return u.value=l,n(u,s,"unidimensional"),function(){return s.k&&s.getValue(),l=s.v*a,u.value!==l&&(u=new Number(l),u.value=l,n(u,s,"unidimensional")),u}}function i(s){(!s||!("pv"in s))&&(s=t);var a=1/s.mult,l=s.data&&s.data.l||s.pv.length,u=createTypedArray("float32",l),c=createTypedArray("float32",l);return u.value=c,n(u,s,"multidimensional"),function(){s.k&&s.getValue();for(var f=0;f<l;f+=1)c[f]=s.v[f]*a,u[f]=c[f];return u}}function o(){return e}return function(s){return s?s.propType==="unidimensional"?r(s):i(s):o}}(),TransformExpressionInterface=function(){return function(e){function t(s){switch(s){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)});var n,r,i,o;return e.p?o=ExpressionPropertyInterface(e.p):(n=ExpressionPropertyInterface(e.px),r=ExpressionPropertyInterface(e.py),e.pz&&(i=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?o():[n(),r(),i?i():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t}}(),LayerExpressionInterface=function(){function e(u){var c=new Matrix;if(u!==void 0){var f=this._elem.finalTransform.mProp.getValueAtTime(u);f.clone(c)}else{var d=this._elem.finalTransform.mProp;d.applyToMatrix(c)}return c}function t(u,c){var f=this.getMatrix(c);return f.props[12]=0,f.props[13]=0,f.props[14]=0,this.applyPoint(f,u)}function n(u,c){var f=this.getMatrix(c);return this.applyPoint(f,u)}function r(u,c){var f=this.getMatrix(c);return f.props[12]=0,f.props[13]=0,f.props[14]=0,this.invertPoint(f,u)}function i(u,c){var f=this.getMatrix(c);return this.invertPoint(f,u)}function o(u,c){if(this._elem.hierarchy&&this._elem.hierarchy.length){var f,d=this._elem.hierarchy.length;for(f=0;f<d;f+=1)this._elem.hierarchy[f].finalTransform.mProp.applyToMatrix(u)}return u.applyToPointArray(c[0],c[1],c[2]||0)}function s(u,c){if(this._elem.hierarchy&&this._elem.hierarchy.length){var f,d=this._elem.hierarchy.length;for(f=0;f<d;f+=1)this._elem.hierarchy[f].finalTransform.mProp.applyToMatrix(u)}return u.inversePoint(c)}function a(u){var c=new Matrix;if(c.reset(),this._elem.finalTransform.mProp.applyToMatrix(c),this._elem.hierarchy&&this._elem.hierarchy.length){var f,d=this._elem.hierarchy.length;for(f=0;f<d;f+=1)this._elem.hierarchy[f].finalTransform.mProp.applyToMatrix(c);return c.inversePoint(u)}return c.inversePoint(u)}function l(){return[1,1,1,1]}return function(u){var c;function f(g){h.mask=new MaskManagerInterface(g,u)}function d(g){h.effect=g}function h(g){switch(g){case"ADBE Root Vectors Group":case"Contents":case 2:return h.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return c;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return h.effect;case"ADBE Text Properties":return h.textInterface;default:return null}}h.getMatrix=e,h.invertPoint=s,h.applyPoint=o,h.toWorld=n,h.toWorldVec=t,h.fromWorld=i,h.fromWorldVec=r,h.toComp=n,h.fromComp=a,h.sampleImage=l,h.sourceRectAtTime=u.sourceRectAtTime.bind(u),h._elem=u,c=TransformExpressionInterface(u.finalTransform.mProp);var m=getDescriptor(c,"anchorPoint");return Object.defineProperties(h,{hasParent:{get:function(){return u.hierarchy.length}},parent:{get:function(){return u.hierarchy[0].layerInterface}},rotation:getDescriptor(c,"rotation"),scale:getDescriptor(c,"scale"),position:getDescriptor(c,"position"),opacity:getDescriptor(c,"opacity"),anchorPoint:m,anchor_point:m,transform:{get:function(){return c}},active:{get:function(){return u.isInRange}}}),h.startTime=u.data.st,h.index=u.data.ind,h.source=u.data.refId,h.height=u.data.ty===0?u.data.h:100,h.width=u.data.ty===0?u.data.w:100,h.inPoint=u.data.ip/u.comp.globalData.frameRate,h.outPoint=u.data.op/u.comp.globalData.frameRate,h._name=u.data.nm,h.registerMaskInterface=f,h.registerEffectsInterface=d,h}}(),propertyGroupFactory=function(){return function(e,t){return function(n){return n=n===void 0?1:n,n<=0?e:t(n-1)}}}(),PropertyInterface=function(){return function(e,t){var n={_name:e};function r(i){return i=i===void 0?1:i,i<=0?n:t(i-1)}return r}}(),EffectsExpressionInterface=function(){var e={createEffectsInterface:t};function t(i,o){if(i.effectsManager){var s=[],a=i.data.ef,l,u=i.effectsManager.effectElements.length;for(l=0;l<u;l+=1)s.push(n(a[l],i.effectsManager.effectElements[l],o,i));var c=i.data.ef||[],f=function(h){for(l=0,u=c.length;l<u;){if(h===c[l].nm||h===c[l].mn||h===c[l].ix)return s[l];l+=1}return null};return Object.defineProperty(f,"numProperties",{get:function(){return c.length}}),f}return null}function n(i,o,s,a){function l(h){for(var m=i.ef,g=0,b=m.length;g<b;){if(h===m[g].nm||h===m[g].mn||h===m[g].ix)return m[g].ty===5?c[g]:c[g]();g+=1}throw new Error}var u=propertyGroupFactory(l,s),c=[],f,d=i.ef.length;for(f=0;f<d;f+=1)i.ef[f].ty===5?c.push(n(i.ef[f],o.effectElements[f],o.effectElements[f].propertyGroup,a)):c.push(r(o.effectElements[f],i.ef[f].ty,a,u));return i.mn==="ADBE Color Control"&&Object.defineProperty(l,"color",{get:function(){return c[0]()}}),Object.defineProperties(l,{numProperties:{get:function(){return i.np}},_name:{value:i.nm},propertyGroup:{value:u}}),l.enabled=i.en!==0,l.active=l.enabled,l}function r(i,o,s,a){var l=ExpressionPropertyInterface(i.p);function u(){return o===10?s.comp.compInterface(i.p.v):l()}return i.p.setGroupProperty&&i.p.setGroupProperty(PropertyInterface("",a)),u}return e}(),ShapePathInterface=function(){return function(t,n,r){var i=n.sh;function o(a){return a==="Shape"||a==="shape"||a==="Path"||a==="path"||a==="ADBE Vector Shape"||a===2?o.path:null}var s=propertyGroupFactory(o,r);return i.setGroupProperty(PropertyInterface("Path",s)),Object.defineProperties(o,{path:{get:function(){return i.k&&i.getValue(),i}},shape:{get:function(){return i.k&&i.getValue(),i}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:r}}),o}}(),ShapeExpressionInterface=function(){function e(m,g,b){var v=[],x,y=m?m.length:0;for(x=0;x<y;x+=1)m[x].ty==="gr"?v.push(n(m[x],g[x],b)):m[x].ty==="fl"?v.push(r(m[x],g[x],b)):m[x].ty==="st"?v.push(s(m[x],g[x],b)):m[x].ty==="tm"?v.push(a(m[x],g[x],b)):m[x].ty==="tr"||(m[x].ty==="el"?v.push(u(m[x],g[x],b)):m[x].ty==="sr"?v.push(c(m[x],g[x],b)):m[x].ty==="sh"?v.push(ShapePathInterface(m[x],g[x],b)):m[x].ty==="rc"?v.push(f(m[x],g[x],b)):m[x].ty==="rd"?v.push(d(m[x],g[x],b)):m[x].ty==="rp"?v.push(h(m[x],g[x],b)):m[x].ty==="gf"?v.push(i(m[x],g[x],b)):v.push(o(m[x],g[x],b)));return v}function t(m,g,b){var v,x=function(w){for(var k=0,O=v.length;k<O;){if(v[k]._name===w||v[k].mn===w||v[k].propertyIndex===w||v[k].ix===w||v[k].ind===w)return v[k];k+=1}return typeof w=="number"?v[w-1]:null};x.propertyGroup=propertyGroupFactory(x,b),v=e(m.it,g.it,x.propertyGroup),x.numProperties=v.length;var y=l(m.it[m.it.length-1],g.it[g.it.length-1],x.propertyGroup);return x.transform=y,x.propertyIndex=m.cix,x._name=m.nm,x}function n(m,g,b){var v=function(w){switch(w){case"ADBE Vectors Group":case"Contents":case 2:return v.content;default:return v.transform}};v.propertyGroup=propertyGroupFactory(v,b);var x=t(m,g,v.propertyGroup),y=l(m.it[m.it.length-1],g.it[g.it.length-1],v.propertyGroup);return v.content=x,v.transform=y,Object.defineProperty(v,"_name",{get:function(){return m.nm}}),v.numProperties=m.np,v.propertyIndex=m.ix,v.nm=m.nm,v.mn=m.mn,v}function r(m,g,b){function v(x){return x==="Color"||x==="color"?v.color:x==="Opacity"||x==="opacity"?v.opacity:null}return Object.defineProperties(v,{color:{get:ExpressionPropertyInterface(g.c)},opacity:{get:ExpressionPropertyInterface(g.o)},_name:{value:m.nm},mn:{value:m.mn}}),g.c.setGroupProperty(PropertyInterface("Color",b)),g.o.setGroupProperty(PropertyInterface("Opacity",b)),v}function i(m,g,b){function v(x){return x==="Start Point"||x==="start point"?v.startPoint:x==="End Point"||x==="end point"?v.endPoint:x==="Opacity"||x==="opacity"?v.opacity:null}return Object.defineProperties(v,{startPoint:{get:ExpressionPropertyInterface(g.s)},endPoint:{get:ExpressionPropertyInterface(g.e)},opacity:{get:ExpressionPropertyInterface(g.o)},type:{get:function(){return"a"}},_name:{value:m.nm},mn:{value:m.mn}}),g.s.setGroupProperty(PropertyInterface("Start Point",b)),g.e.setGroupProperty(PropertyInterface("End Point",b)),g.o.setGroupProperty(PropertyInterface("Opacity",b)),v}function o(){function m(){return null}return m}function s(m,g,b){var v=propertyGroupFactory(O,b),x=propertyGroupFactory(k,v);function y(M){Object.defineProperty(k,m.d[M].nm,{get:ExpressionPropertyInterface(g.d.dataProps[M].p)})}var _,w=m.d?m.d.length:0,k={};for(_=0;_<w;_+=1)y(_),g.d.dataProps[_].p.setGroupProperty(x);function O(M){return M==="Color"||M==="color"?O.color:M==="Opacity"||M==="opacity"?O.opacity:M==="Stroke Width"||M==="stroke width"?O.strokeWidth:null}return Object.defineProperties(O,{color:{get:ExpressionPropertyInterface(g.c)},opacity:{get:ExpressionPropertyInterface(g.o)},strokeWidth:{get:ExpressionPropertyInterface(g.w)},dash:{get:function(){return k}},_name:{value:m.nm},mn:{value:m.mn}}),g.c.setGroupProperty(PropertyInterface("Color",v)),g.o.setGroupProperty(PropertyInterface("Opacity",v)),g.w.setGroupProperty(PropertyInterface("Stroke Width",v)),O}function a(m,g,b){function v(y){return y===m.e.ix||y==="End"||y==="end"?v.end:y===m.s.ix?v.start:y===m.o.ix?v.offset:null}var x=propertyGroupFactory(v,b);return v.propertyIndex=m.ix,g.s.setGroupProperty(PropertyInterface("Start",x)),g.e.setGroupProperty(PropertyInterface("End",x)),g.o.setGroupProperty(PropertyInterface("Offset",x)),v.propertyIndex=m.ix,v.propertyGroup=b,Object.defineProperties(v,{start:{get:ExpressionPropertyInterface(g.s)},end:{get:ExpressionPropertyInterface(g.e)},offset:{get:ExpressionPropertyInterface(g.o)},_name:{value:m.nm}}),v.mn=m.mn,v}function l(m,g,b){function v(y){return m.a.ix===y||y==="Anchor Point"?v.anchorPoint:m.o.ix===y||y==="Opacity"?v.opacity:m.p.ix===y||y==="Position"?v.position:m.r.ix===y||y==="Rotation"||y==="ADBE Vector Rotation"?v.rotation:m.s.ix===y||y==="Scale"?v.scale:m.sk&&m.sk.ix===y||y==="Skew"?v.skew:m.sa&&m.sa.ix===y||y==="Skew Axis"?v.skewAxis:null}var x=propertyGroupFactory(v,b);return g.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",x)),g.transform.mProps.p.setGroupProperty(PropertyInterface("Position",x)),g.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",x)),g.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",x)),g.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",x)),g.transform.mProps.sk&&(g.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",x)),g.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",x))),g.transform.op.setGroupProperty(PropertyInterface("Opacity",x)),Object.defineProperties(v,{opacity:{get:ExpressionPropertyInterface(g.transform.mProps.o)},position:{get:ExpressionPropertyInterface(g.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(g.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(g.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(g.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(g.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(g.transform.mProps.sa)},_name:{value:m.nm}}),v.ty="tr",v.mn=m.mn,v.propertyGroup=b,v}function u(m,g,b){function v(_){return m.p.ix===_?v.position:m.s.ix===_?v.size:null}var x=propertyGroupFactory(v,b);v.propertyIndex=m.ix;var y=g.sh.ty==="tm"?g.sh.prop:g.sh;return y.s.setGroupProperty(PropertyInterface("Size",x)),y.p.setGroupProperty(PropertyInterface("Position",x)),Object.defineProperties(v,{size:{get:ExpressionPropertyInterface(y.s)},position:{get:ExpressionPropertyInterface(y.p)},_name:{value:m.nm}}),v.mn=m.mn,v}function c(m,g,b){function v(_){return m.p.ix===_?v.position:m.r.ix===_?v.rotation:m.pt.ix===_?v.points:m.or.ix===_||_==="ADBE Vector Star Outer Radius"?v.outerRadius:m.os.ix===_?v.outerRoundness:m.ir&&(m.ir.ix===_||_==="ADBE Vector Star Inner Radius")?v.innerRadius:m.is&&m.is.ix===_?v.innerRoundness:null}var x=propertyGroupFactory(v,b),y=g.sh.ty==="tm"?g.sh.prop:g.sh;return v.propertyIndex=m.ix,y.or.setGroupProperty(PropertyInterface("Outer Radius",x)),y.os.setGroupProperty(PropertyInterface("Outer Roundness",x)),y.pt.setGroupProperty(PropertyInterface("Points",x)),y.p.setGroupProperty(PropertyInterface("Position",x)),y.r.setGroupProperty(PropertyInterface("Rotation",x)),m.ir&&(y.ir.setGroupProperty(PropertyInterface("Inner Radius",x)),y.is.setGroupProperty(PropertyInterface("Inner Roundness",x))),Object.defineProperties(v,{position:{get:ExpressionPropertyInterface(y.p)},rotation:{get:ExpressionPropertyInterface(y.r)},points:{get:ExpressionPropertyInterface(y.pt)},outerRadius:{get:ExpressionPropertyInterface(y.or)},outerRoundness:{get:ExpressionPropertyInterface(y.os)},innerRadius:{get:ExpressionPropertyInterface(y.ir)},innerRoundness:{get:ExpressionPropertyInterface(y.is)},_name:{value:m.nm}}),v.mn=m.mn,v}function f(m,g,b){function v(_){return m.p.ix===_?v.position:m.r.ix===_?v.roundness:m.s.ix===_||_==="Size"||_==="ADBE Vector Rect Size"?v.size:null}var x=propertyGroupFactory(v,b),y=g.sh.ty==="tm"?g.sh.prop:g.sh;return v.propertyIndex=m.ix,y.p.setGroupProperty(PropertyInterface("Position",x)),y.s.setGroupProperty(PropertyInterface("Size",x)),y.r.setGroupProperty(PropertyInterface("Rotation",x)),Object.defineProperties(v,{position:{get:ExpressionPropertyInterface(y.p)},roundness:{get:ExpressionPropertyInterface(y.r)},size:{get:ExpressionPropertyInterface(y.s)},_name:{value:m.nm}}),v.mn=m.mn,v}function d(m,g,b){function v(_){return m.r.ix===_||_==="Round Corners 1"?v.radius:null}var x=propertyGroupFactory(v,b),y=g;return v.propertyIndex=m.ix,y.rd.setGroupProperty(PropertyInterface("Radius",x)),Object.defineProperties(v,{radius:{get:ExpressionPropertyInterface(y.rd)},_name:{value:m.nm}}),v.mn=m.mn,v}function h(m,g,b){function v(_){return m.c.ix===_||_==="Copies"?v.copies:m.o.ix===_||_==="Offset"?v.offset:null}var x=propertyGroupFactory(v,b),y=g;return v.propertyIndex=m.ix,y.c.setGroupProperty(PropertyInterface("Copies",x)),y.o.setGroupProperty(PropertyInterface("Offset",x)),Object.defineProperties(v,{copies:{get:ExpressionPropertyInterface(y.c)},offset:{get:ExpressionPropertyInterface(y.o)},_name:{value:m.nm}}),v.mn=m.mn,v}return function(m,g,b){var v;function x(_){if(typeof _=="number")return _=_===void 0?1:_,_===0?b:v[_-1];for(var w=0,k=v.length;w<k;){if(v[w]._name===_)return v[w];w+=1}return null}function y(){return b}return x.propertyGroup=propertyGroupFactory(x,y),v=e(m,g,x.propertyGroup),x.numProperties=v.length,x._name="Contents",x}}(),TextExpressionInterface=function(){return function(e){var t;function n(r){switch(r){case"ADBE Text Document":return n.sourceText;default:return null}}return Object.defineProperty(n,"sourceText",{get:function(){e.textProperty.getValue();var i=e.textProperty.currentData.t;return(!t||i!==t.value)&&(t=new String(i),t.value=i||new String(i),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),n}}();function _typeof(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(n){return typeof n}:_typeof=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof(e)}var FootageInterface=function(){var e=function(r){var i="",o=r.getFootageData();function s(){return i="",o=r.getFootageData(),a}function a(l){if(o[l])return i=l,o=o[l],_typeof(o)==="object"?a:o;var u=l.indexOf(i);if(u!==-1){var c=parseInt(l.substr(u+i.length),10);return o=o[c],_typeof(o)==="object"?a:o}return""}return s},t=function(r){function i(o){return o==="Outline"?i.outlineInterface():null}return i._name="Outline",i.outlineInterface=e(r),i};return function(n){function r(i){return i==="Data"?r.dataInterface:null}return r._name="Data",r.dataInterface=t(n),r}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers=function(){function e(s,a,l){a.x&&(l.k=!0,l.x=!0,l.initiateExpression=ExpressionManager.initiateExpression,l.effectsSequence.push(l.initiateExpression(s,a,l).bind(l)))}function t(s){return s*=this.elem.globalData.frameRate,s-=this.offsetTime,s!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<s?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(s,this._cachingAtTime),this._cachingAtTime.lastFrame=s),this._cachingAtTime.value}function n(s){var a=-.01,l=this.getValueAtTime(s),u=this.getValueAtTime(s+a),c=0;if(l.length){var f;for(f=0;f<l.length;f+=1)c+=Math.pow(u[f]-l[f],2);c=Math.sqrt(c)*100}else c=0;return c}function r(s){if(this.vel!==void 0)return this.vel;var a=-.001,l=this.getValueAtTime(s),u=this.getValueAtTime(s+a),c;if(l.length){c=createTypedArray("float32",l.length);var f;for(f=0;f<l.length;f+=1)c[f]=(u[f]-l[f])/a}else c=(u-l)/a;return c}function i(){return this.pv}function o(s){this.propertyGroup=s}return{searchExpressions:e,getSpeedAtTime:n,getVelocityAtTime:r,getValueAtTime:t,getStaticValueAtTime:i,setGroupProperty:o}}();function addPropertyDecorator(){function e(d,h,m){if(!this.k||!this.keyframes)return this.pv;d=d?d.toLowerCase():"";var g=this.comp.renderedFrame,b=this.keyframes,v=b[b.length-1].t;if(g<=v)return this.pv;var x,y;m?(h?x=Math.abs(v-this.elem.comp.globalData.frameRate*h):x=Math.max(0,v-this.elem.data.ip),y=v-x):((!h||h>b.length-1)&&(h=b.length-1),y=b[b.length-1-h].t,x=v-y);var _,w,k;if(d==="pingpong"){var O=Math.floor((g-y)/x);if(O%2!==0)return this.getValueAtTime((x-(g-y)%x+y)/this.comp.globalData.frameRate,0)}else if(d==="offset"){var M=this.getValueAtTime(y/this.comp.globalData.frameRate,0),I=this.getValueAtTime(v/this.comp.globalData.frameRate,0),W=this.getValueAtTime(((g-y)%x+y)/this.comp.globalData.frameRate,0),J=Math.floor((g-y)/x);if(this.pv.length){for(k=new Array(M.length),w=k.length,_=0;_<w;_+=1)k[_]=(I[_]-M[_])*J+W[_];return k}return(I-M)*J+W}else if(d==="continue"){var H=this.getValueAtTime(v/this.comp.globalData.frameRate,0),ee=this.getValueAtTime((v-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(k=new Array(H.length),w=k.length,_=0;_<w;_+=1)k[_]=H[_]+(H[_]-ee[_])*((g-v)/this.comp.globalData.frameRate)/5e-4;return k}return H+(H-ee)*((g-v)/.001)}return this.getValueAtTime(((g-y)%x+y)/this.comp.globalData.frameRate,0)}function t(d,h,m){if(!this.k)return this.pv;d=d?d.toLowerCase():"";var g=this.comp.renderedFrame,b=this.keyframes,v=b[0].t;if(g>=v)return this.pv;var x,y;m?(h?x=Math.abs(this.elem.comp.globalData.frameRate*h):x=Math.max(0,this.elem.data.op-v),y=v+x):((!h||h>b.length-1)&&(h=b.length-1),y=b[h].t,x=y-v);var _,w,k;if(d==="pingpong"){var O=Math.floor((v-g)/x);if(O%2===0)return this.getValueAtTime(((v-g)%x+v)/this.comp.globalData.frameRate,0)}else if(d==="offset"){var M=this.getValueAtTime(v/this.comp.globalData.frameRate,0),I=this.getValueAtTime(y/this.comp.globalData.frameRate,0),W=this.getValueAtTime((x-(v-g)%x+v)/this.comp.globalData.frameRate,0),J=Math.floor((v-g)/x)+1;if(this.pv.length){for(k=new Array(M.length),w=k.length,_=0;_<w;_+=1)k[_]=W[_]-(I[_]-M[_])*J;return k}return W-(I-M)*J}else if(d==="continue"){var H=this.getValueAtTime(v/this.comp.globalData.frameRate,0),ee=this.getValueAtTime((v+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(k=new Array(H.length),w=k.length,_=0;_<w;_+=1)k[_]=H[_]+(H[_]-ee[_])*(v-g)/.001;return k}return H+(H-ee)*(v-g)/.001}return this.getValueAtTime((x-((v-g)%x+v))/this.comp.globalData.frameRate,0)}function n(d,h){if(!this.k)return this.pv;if(d=(d||.4)*.5,h=Math.floor(h||5),h<=1)return this.pv;var m=this.comp.renderedFrame/this.comp.globalData.frameRate,g=m-d,b=m+d,v=h>1?(b-g)/(h-1):1,x=0,y=0,_;this.pv.length?_=createTypedArray("float32",this.pv.length):_=0;for(var w;x<h;){if(w=this.getValueAtTime(g+x*v),this.pv.length)for(y=0;y<this.pv.length;y+=1)_[y]+=w[y];else _+=w;x+=1}if(this.pv.length)for(y=0;y<this.pv.length;y+=1)_[y]/=h;else _/=h;return _}function r(d){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var h=this._transformCachingAtTime.v;if(h.cloneFromProps(this.pre.props),this.appliedTransformations<1){var m=this.a.getValueAtTime(d);h.translate(-m[0]*this.a.mult,-m[1]*this.a.mult,m[2]*this.a.mult)}if(this.appliedTransformations<2){var g=this.s.getValueAtTime(d);h.scale(g[0]*this.s.mult,g[1]*this.s.mult,g[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var b=this.sk.getValueAtTime(d),v=this.sa.getValueAtTime(d);h.skewFromAxis(-b*this.sk.mult,v*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var x=this.r.getValueAtTime(d);h.rotate(-x*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var y=this.rz.getValueAtTime(d),_=this.ry.getValueAtTime(d),w=this.rx.getValueAtTime(d),k=this.or.getValueAtTime(d);h.rotateZ(-y*this.rz.mult).rotateY(_*this.ry.mult).rotateX(w*this.rx.mult).rotateZ(-k[2]*this.or.mult).rotateY(k[1]*this.or.mult).rotateX(k[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var O=this.px.getValueAtTime(d),M=this.py.getValueAtTime(d);if(this.data.p.z){var I=this.pz.getValueAtTime(d);h.translate(O*this.px.mult,M*this.py.mult,-I*this.pz.mult)}else h.translate(O*this.px.mult,M*this.py.mult,0)}else{var W=this.p.getValueAtTime(d);h.translate(W[0]*this.p.mult,W[1]*this.p.mult,-W[2]*this.p.mult)}return h}function i(){return this.v.clone(new Matrix)}var o=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(d,h,m){var g=o(d,h,m);return g.dynamicProperties.length?g.getValueAtTime=r.bind(g):g.getValueAtTime=i.bind(g),g.setGroupProperty=expressionHelpers.setGroupProperty,g};var s=PropertyFactory.getProp;PropertyFactory.getProp=function(d,h,m,g,b){var v=s(d,h,m,g,b);v.kf?v.getValueAtTime=expressionHelpers.getValueAtTime.bind(v):v.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(v),v.setGroupProperty=expressionHelpers.setGroupProperty,v.loopOut=e,v.loopIn=t,v.smooth=n,v.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(v),v.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(v),v.numKeys=h.a===1?h.k.length:0,v.propertyIndex=h.ix;var x=0;return m!==0&&(x=createTypedArray("float32",h.a===1?h.k[0].s.length:h.k.length)),v._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:x},expressionHelpers.searchExpressions(d,h,v),v.k&&b.addDynamicProperty(v),v};function a(d){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),d*=this.elem.globalData.frameRate,d-=this.offsetTime,d!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<d?this._caching.lastIndex:0,this._cachingAtTime.lastTime=d,this.interpolateShape(d,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var l=ShapePropertyFactory.getConstructorFunction(),u=ShapePropertyFactory.getKeyframedConstructorFunction();function c(){}c.prototype={vertices:function(h,m){this.k&&this.getValue();var g=this.v;m!==void 0&&(g=this.getValueAtTime(m,0));var b,v=g._length,x=g[h],y=g.v,_=createSizedArray(v);for(b=0;b<v;b+=1)h==="i"||h==="o"?_[b]=[x[b][0]-y[b][0],x[b][1]-y[b][1]]:_[b]=[x[b][0],x[b][1]];return _},points:function(h){return this.vertices("v",h)},inTangents:function(h){return this.vertices("i",h)},outTangents:function(h){return this.vertices("o",h)},isClosed:function(){return this.v.c},pointOnPath:function(h,m){var g=this.v;m!==void 0&&(g=this.getValueAtTime(m,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(g));for(var b=this._segmentsLength,v=b.lengths,x=b.totalLength*h,y=0,_=v.length,w=0,k;y<_;){if(w+v[y].addedLength>x){var O=y,M=g.c&&y===_-1?0:y+1,I=(x-w)/v[y].addedLength;k=bez.getPointInSegment(g.v[O],g.v[M],g.o[O],g.i[M],I,v[y]);break}else w+=v[y].addedLength;y+=1}return k||(k=g.c?[g.v[0][0],g.v[0][1]]:[g.v[g._length-1][0],g.v[g._length-1][1]]),k},vectorOnPath:function(h,m,g){h==1?h=this.v.c:h==0&&(h=.999);var b=this.pointOnPath(h,m),v=this.pointOnPath(h+.001,m),x=v[0]-b[0],y=v[1]-b[1],_=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));if(_===0)return[0,0];var w=g==="tangent"?[x/_,y/_]:[-y/_,x/_];return w},tangentOnPath:function(h,m){return this.vectorOnPath(h,m,"tangent")},normalOnPath:function(h,m){return this.vectorOnPath(h,m,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([c],l),extendPrototype([c],u),u.prototype.getValueAtTime=a,u.prototype.initiateExpression=ExpressionManager.initiateExpression;var f=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(d,h,m,g,b){var v=f(d,h,m,g,b);return v.propertyIndex=h.ix,v.lock=!1,m===3?expressionHelpers.searchExpressions(d,h.pt,v):m===4&&expressionHelpers.searchExpressions(d,h.ks,v),v.k&&d.addDynamicProperty(v),v}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function e(){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(t,n){var r=this.calculateExpression(n);if(t.t!==r){var i={};return this.copyData(i,t),i.t=r.toString(),i.__complete=!1,i}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),n=this.searchExpressions();return this.kf=t||n,this.kf},TextProperty.prototype.searchExpressions=e}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function e(t,n){var r=createNS("feMerge");r.setAttribute("result",t);var i,o;for(o=0;o<n.length;o+=1)i=createNS("feMergeNode"),i.setAttribute("in",n[o]),r.appendChild(i),r.appendChild(i);return r}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,n,r,i){this.filterManager=t;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","linearRGB"),o.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=o,o.setAttribute("result",r+"_tint_1"),e.appendChild(o),o=createNS("feColorMatrix"),o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),o.setAttribute("result",r+"_tint_2"),e.appendChild(o),this.matrixFilter=o;var s=this.createMergeNode(r,[i,r+"_tint_1",r+"_tint_2"]);e.appendChild(s)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+r+" 0"),this.matrixFilter.setAttribute("values",n[0]-t[0]+" 0 0 0 "+t[0]+" "+(n[1]-t[1])+" 0 0 0 "+t[1]+" "+(n[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}};function SVGFillFilter(e,t,n,r){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result",r),e.appendChild(i),this.matrixFilter=i}SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,n=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+n+" 0")}};function SVGStrokeEffect(e,t,n){this.initialized=!1,this.filterManager=t,this.elem=n,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var e=this.elem.layerElement.children||this.elem.layerElement.childNodes,t,n,r,i;for(this.filterManager.effectElements[1].p.v===1?(i=this.elem.maskManager.masksProperties.length,r=0):(r=this.filterManager.effectElements[0].p.v-1,i=r+1),n=createNS("g"),n.setAttribute("fill","none"),n.setAttribute("stroke-linecap","round"),n.setAttribute("stroke-dashoffset",1),r;r<i;r+=1)t=createNS("path"),n.appendChild(t),this.paths.push({p:t,m:r});if(this.filterManager.effectElements[10].p.v===3){var o=createNS("mask"),s=createElementID();o.setAttribute("id",s),o.setAttribute("mask-type","alpha"),o.appendChild(n),this.elem.globalData.defs.appendChild(o);var a=createNS("g");for(a.setAttribute("mask","url("+getLocationHref()+"#"+s+")");e[0];)a.appendChild(e[0]);this.elem.layerElement.appendChild(a),this.masker=o,n.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(e=this.elem.layerElement.children||this.elem.layerElement.childNodes;e.length;)this.elem.layerElement.removeChild(e[0]);this.elem.layerElement.appendChild(n),this.elem.layerElement.removeAttribute("mask"),n.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=n},SVGStrokeEffect.prototype.renderFrame=function(e){this.initialized||this.initialize();var t,n=this.paths.length,r,i;for(t=0;t<n;t+=1)if(this.paths[t].m!==-1&&(r=this.elem.maskManager.viewData[this.paths[t].m],i=this.paths[t].p,(e||this.filterManager._mdf||r.prop._mdf)&&i.setAttribute("d",r.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf)){var o;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var s=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,a=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,l=i.getTotalLength();o="0 0 0 "+l*s+" ";var u=l*(a-s),c=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,f=Math.floor(u/c),d;for(d=0;d<f;d+=1)o+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";o+="0 "+l*10+" 0 0"}else o="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;i.setAttribute("stroke-dasharray",o)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(e||this.filterManager.effectElements[3].p._mdf)){var h=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(h[0]*255)+","+bmFloor(h[1]*255)+","+bmFloor(h[2]*255)+")")}};function SVGTritoneFilter(e,t,n,r){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(i);var o=createNS("feComponentTransfer");o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",r),this.matrixFilter=o;var s=createNS("feFuncR");s.setAttribute("type","table"),o.appendChild(s),this.feFuncR=s;var a=createNS("feFuncG");a.setAttribute("type","table"),o.appendChild(a),this.feFuncG=a;var l=createNS("feFuncB");l.setAttribute("type","table"),o.appendChild(l),this.feFuncB=l,e.appendChild(o)}SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v,i=r[0]+" "+n[0]+" "+t[0],o=r[1]+" "+n[1]+" "+t[1],s=r[2]+" "+n[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",o),this.feFuncB.setAttribute("tableValues",s)}};function SVGProLevelsFilter(e,t,n,r){this.filterManager=t;var i=this.filterManager.effectElements,o=createNS("feComponentTransfer");(i[10].p.k||i[10].p.v!==0||i[11].p.k||i[11].p.v!==1||i[12].p.k||i[12].p.v!==1||i[13].p.k||i[13].p.v!==0||i[14].p.k||i[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",o)),(i[17].p.k||i[17].p.v!==0||i[18].p.k||i[18].p.v!==1||i[19].p.k||i[19].p.v!==1||i[20].p.k||i[20].p.v!==0||i[21].p.k||i[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",o)),(i[24].p.k||i[24].p.v!==0||i[25].p.k||i[25].p.v!==1||i[26].p.k||i[26].p.v!==1||i[27].p.k||i[27].p.v!==0||i[28].p.k||i[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",o)),(i[31].p.k||i[31].p.v!==0||i[32].p.k||i[32].p.v!==1||i[33].p.k||i[33].p.v!==1||i[34].p.k||i[34].p.v!==0||i[35].p.k||i[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",o)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(o.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(o)),(i[3].p.k||i[3].p.v!==0||i[4].p.k||i[4].p.v!==1||i[5].p.k||i[5].p.v!==1||i[6].p.k||i[6].p.v!==0||i[7].p.k||i[7].p.v!==1)&&(o=createNS("feComponentTransfer"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",r),e.appendChild(o),this.feFuncRComposed=this.createFeFunc("feFuncR",o),this.feFuncGComposed=this.createFeFunc("feFuncG",o),this.feFuncBComposed=this.createFeFunc("feFuncB",o))}SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var n=createNS(e);return n.setAttribute("type","table"),t.appendChild(n),n},SVGProLevelsFilter.prototype.getTableValue=function(e,t,n,r,i){for(var o=0,s=256,a,l=Math.min(e,t),u=Math.max(e,t),c=Array.call(null,{length:s}),f,d=0,h=i-r,m=t-e;o<=256;)a=o/256,a<=l?f=m<0?i:r:a>=u?f=m<0?r:i:f=r+h*Math.pow((a-e)/m,1/n),c[d]=f,d+=1,o+=256/(s-1);return c.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,n=this.filterManager.effectElements;this.feFuncRComposed&&(e||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(t=this.getTableValue(n[3].p.v,n[4].p.v,n[5].p.v,n[6].p.v,n[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(t=this.getTableValue(n[10].p.v,n[11].p.v,n[12].p.v,n[13].p.v,n[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(t=this.getTableValue(n[17].p.v,n[18].p.v,n[19].p.v,n[20].p.v,n[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(t=this.getTableValue(n[24].p.v,n[25].p.v,n[26].p.v,n[27].p.v,n[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(t=this.getTableValue(n[31].p.v,n[32].p.v,n[33].p.v,n[34].p.v,n[35].p.v),this.feFuncA.setAttribute("tableValues",t))}};function SVGDropShadowEffect(e,t,n,r,i){var o=t.container.globalData.renderConfig.filterSize,s=t.data.fs||o;e.setAttribute("x",s.x||o.x),e.setAttribute("y",s.y||o.y),e.setAttribute("width",s.width||o.width),e.setAttribute("height",s.height||o.height),this.filterManager=t;var a=createNS("feGaussianBlur");a.setAttribute("in","SourceAlpha"),a.setAttribute("result",r+"_drop_shadow_1"),a.setAttribute("stdDeviation","0"),this.feGaussianBlur=a,e.appendChild(a);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",r+"_drop_shadow_1"),l.setAttribute("result",r+"_drop_shadow_2"),this.feOffset=l,e.appendChild(l);var u=createNS("feFlood");u.setAttribute("flood-color","#00ff00"),u.setAttribute("flood-opacity","1"),u.setAttribute("result",r+"_drop_shadow_3"),this.feFlood=u,e.appendChild(u);var c=createNS("feComposite");c.setAttribute("in",r+"_drop_shadow_3"),c.setAttribute("in2",r+"_drop_shadow_2"),c.setAttribute("operator","in"),c.setAttribute("result",r+"_drop_shadow_4"),e.appendChild(c);var f=this.createMergeNode(r,[r+"_drop_shadow_4",i]);e.appendChild(f)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(t[0]*255),Math.round(t[1]*255),Math.round(t[2]*255)))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var n=this.filterManager.effectElements[3].p.v,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,i=n*Math.cos(r),o=n*Math.sin(r);this.feOffset.setAttribute("dx",i),this.feOffset.setAttribute("dy",o)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,n){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=n,n.matteElement=createNS("g"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,n=_svgMatteSymbols.length;t<n;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var n=e.layerElement.parentNode;if(!!n){for(var r=n.children,i=0,o=r.length;i<o&&r[i]!==e.layerElement;)i+=1;var s;i<=o-2&&(s=r[i+1]);var a=createNS("use");a.setAttribute("href","#"+t),s?n.insertBefore(a,s):n.appendChild(a)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var n=createElementID(),r=createNS("mask");r.setAttribute("id",t.layerId),r.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var i=e.globalData.defs;i.appendChild(r);var o=createNS("symbol");o.setAttribute("id",n),this.replaceInParent(t,n),o.appendChild(t.layerElement),i.appendChild(o);var s=createNS("use");s.setAttribute("href","#"+n),r.appendChild(s),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,n=0,r=t.length;n<r;)t[n]&&t[n].data.ind===e&&this.setElementAsMask(this.elem,t[n]),n+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(e,t,n,r){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var i=createNS("feGaussianBlur");i.setAttribute("result",r),e.appendChild(i),this.feGaussianBlur=i}SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3,n=this.filterManager.effectElements[0].p.v*t,r=this.filterManager.effectElements[1].p.v,i=r==3?0:n,o=r==2?0:n;this.feGaussianBlur.setAttribute("stdDeviation",i+" "+o);var s=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",s)}};function TransformEffect(){}TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,n=t[0].p.v,r=t[1].p.v,i=t[2].p.v===1,o=t[3].p.v,s=i?o:t[4].p.v,a=t[5].p.v,l=t[6].p.v,u=t[7].p.v;this.matrix.reset(),this.matrix.translate(-n[0],-n[1],n[2]),this.matrix.scale(s*.01,o*.01,1),this.matrix.rotate(-u*degToRads),this.matrix.skewFromAxis(-a*degToRads,(l+90)*degToRads),this.matrix.translate(r[0],r[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(e,t){this.init(t)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(e){this.init(e)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})});var NZ=ne((mG,Jwe)=>{(function(e,t){typeof mG=="object"&&typeof Jwe<"u"?t(mG,Vwe(),Pe()):typeof define=="function"&&define.amd?define(["exports","lottie-web","react"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e["lottie-react"]={},e.Lottie,e.React))})(mG,function(e,t,n){"use strict";function r(J){return J&&typeof J=="object"&&"default"in J?J:{default:J}}var i=r(t),o=r(n);function s(J,H){var ee=J==null?null:typeof Symbol<"u"&&J[Symbol.iterator]||J["@@iterator"];if(ee!=null){var j,V,B,N,C=[],S=!0,G=!1;try{if(B=(ee=ee.call(J)).next,H===0){if(Object(ee)!==ee)return;S=!1}else for(;!(S=(j=B.call(ee)).done)&&(C.push(j.value),C.length!==H);S=!0);}catch(T){G=!0,V=T}finally{try{if(!S&&ee.return!=null&&(N=ee.return(),Object(N)!==N))return}finally{if(G)throw V}}return C}}function a(J,H){var ee=Object.keys(J);if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(J);H&&(j=j.filter(function(V){return Object.getOwnPropertyDescriptor(J,V).enumerable})),ee.push.apply(ee,j)}return ee}function l(J){for(var H=1;H<arguments.length;H++){var ee=arguments[H]!=null?arguments[H]:{};H%2?a(Object(ee),!0).forEach(function(j){u(J,j,ee[j])}):Object.getOwnPropertyDescriptors?Object.defineProperties(J,Object.getOwnPropertyDescriptors(ee)):a(Object(ee)).forEach(function(j){Object.defineProperty(J,j,Object.getOwnPropertyDescriptor(ee,j))})}return J}function u(J,H,ee){return H=x(H),H in J?Object.defineProperty(J,H,{value:ee,enumerable:!0,configurable:!0,writable:!0}):J[H]=ee,J}function c(J,H){if(J==null)return{};var ee={},j=Object.keys(J),V,B;for(B=0;B<j.length;B++)V=j[B],!(H.indexOf(V)>=0)&&(ee[V]=J[V]);return ee}function f(J,H){if(J==null)return{};var ee=c(J,H),j,V;if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(J);for(V=0;V<B.length;V++)j=B[V],!(H.indexOf(j)>=0)&&(!Object.prototype.propertyIsEnumerable.call(J,j)||(ee[j]=J[j]))}return ee}function d(J,H){return h(J)||s(J,H)||m(J,H)||b()}function h(J){if(Array.isArray(J))return J}function m(J,H){if(!!J){if(typeof J=="string")return g(J,H);var ee=Object.prototype.toString.call(J).slice(8,-1);if(ee==="Object"&&J.constructor&&(ee=J.constructor.name),ee==="Map"||ee==="Set")return Array.from(J);if(ee==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ee))return g(J,H)}}function g(J,H){(H==null||H>J.length)&&(H=J.length);for(var ee=0,j=new Array(H);ee<H;ee++)j[ee]=J[ee];return j}function b(){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 v(J,H){if(typeof J!="object"||J===null)return J;var ee=J[Symbol.toPrimitive];if(ee!==void 0){var j=ee.call(J,H||"default");if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return(H==="string"?String:Number)(J)}function x(J){var H=v(J,"string");return typeof H=="symbol"?H:String(H)}var y=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],_=function(H,ee){var j=H.animationData,V=H.loop,B=H.autoplay,N=H.initialSegment,C=H.onComplete,S=H.onLoopComplete,G=H.onEnterFrame,T=H.onSegmentStart,Q=H.onConfigReady,U=H.onDataReady,F=H.onDataFailed,D=H.onLoadedImages,L=H.onDOMLoaded,$=H.onDestroy;H.lottieRef,H.renderer,H.name,H.assetsPath,H.rendererSettings;var Z=f(H,y),se=n.useState(!1),Y=d(se,2),ue=Y[0],pe=Y[1],oe=n.useRef(),de=n.useRef(null),ve=function(){var fe;(fe=oe.current)===null||fe===void 0||fe.play()},Ae=function(){var fe;(fe=oe.current)===null||fe===void 0||fe.stop()},Ce=function(){var fe;(fe=oe.current)===null||fe===void 0||fe.pause()},Ge=function(fe){var be;(be=oe.current)===null||be===void 0||be.setSpeed(fe)},Ee=function(fe,be){var ye;(ye=oe.current)===null||ye===void 0||ye.goToAndPlay(fe,be)},Ne=function(fe,be){var ye;(ye=oe.current)===null||ye===void 0||ye.goToAndStop(fe,be)},De=function(fe){var be;(be=oe.current)===null||be===void 0||be.setDirection(fe)},Ue=function(fe,be){var ye;(ye=oe.current)===null||ye===void 0||ye.playSegments(fe,be)},Re=function(fe){var be;(be=oe.current)===null||be===void 0||be.setSubframe(fe)},je=function(fe){var be;return(be=oe.current)===null||be===void 0?void 0:be.getDuration(fe)},$e=function(){var fe;(fe=oe.current)===null||fe===void 0||fe.destroy(),oe.current=void 0},Le=function(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},be;if(!!de.current){(be=oe.current)===null||be===void 0||be.destroy();var ye=l(l(l({},H),fe),{},{container:de.current});return oe.current=i.default.loadAnimation(ye),pe(!!oe.current),function(){var Oe;(Oe=oe.current)===null||Oe===void 0||Oe.destroy(),oe.current=void 0}}};n.useEffect(function(){var mt=Le();return function(){return mt?.()}},[j,V]),n.useEffect(function(){!oe.current||(oe.current.autoplay=!!B)},[B]),n.useEffect(function(){if(!!oe.current){if(!N){oe.current.resetSegments(!0);return}!Array.isArray(N)||!N.length||((oe.current.currentRawFrame<N[0]||oe.current.currentRawFrame>N[1])&&(oe.current.currentRawFrame=N[0]),oe.current.setSegment(N[0],N[1]))}},[N]),n.useEffect(function(){var mt=[{name:"complete",handler:C},{name:"loopComplete",handler:S},{name:"enterFrame",handler:G},{name:"segmentStart",handler:T},{name:"config_ready",handler:Q},{name:"data_ready",handler:U},{name:"data_failed",handler:F},{name:"loaded_images",handler:D},{name:"DOMLoaded",handler:L},{name:"destroy",handler:$}],fe=mt.filter(function(ye){return ye.handler!=null});if(!!fe.length){var be=fe.map(function(ye){var Oe;return(Oe=oe.current)===null||Oe===void 0||Oe.addEventListener(ye.name,ye.handler),function(){var Me;(Me=oe.current)===null||Me===void 0||Me.removeEventListener(ye.name,ye.handler)}});return function(){be.forEach(function(ye){return ye()})}}},[C,S,G,T,Q,U,F,D,L,$]);var Xe=o.default.createElement("div",l({style:ee,ref:de},Z));return{View:Xe,play:ve,stop:Ae,pause:Ce,setSpeed:Ge,goToAndStop:Ne,goToAndPlay:Ee,setDirection:De,playSegments:Ue,setSubframe:Re,getDuration:je,destroy:$e,animationContainerRef:de,animationLoaded:ue,animationItem:oe.current}};function w(J){var H=J.getBoundingClientRect(),ee=H.top,j=H.height,V=window.innerHeight-ee,B=window.innerHeight+j;return V/B}function k(J,H,ee){var j=J.getBoundingClientRect(),V=j.top,B=j.left,N=j.width,C=j.height,S=(H-B)/N,G=(ee-V)/C;return{x:S,y:G}}var O=function(H){var ee=H.wrapperRef,j=H.animationItem,V=H.mode,B=H.actions;n.useEffect(function(){var N=ee.current;if(!(!N||!j||!B.length)){j.stop();var C=function(){var T=null,Q=function(){var F=w(N),D=B.find(function($){var Z=$.visibility;return Z&&F>=Z[0]&&F<=Z[1]});if(!!D){if(D.type==="seek"&&D.visibility&&D.frames.length===2){var L=D.frames[0]+Math.ceil((F-D.visibility[0])/(D.visibility[1]-D.visibility[0])*D.frames[1]);j.goToAndStop(L-j.firstFrame-1,!0)}D.type==="loop"&&(T===null||T!==D.frames||j.isPaused)&&(j.playSegments(D.frames,!0),T=D.frames),D.type==="play"&&j.isPaused&&(j.resetSegments(!0),j.play()),D.type==="stop"&&j.goToAndStop(D.frames[0]-j.firstFrame-1,!0)}};return document.addEventListener("scroll",Q),function(){document.removeEventListener("scroll",Q)}},S=function(){var T=function(D,L){var $=D,Z=L;if($!==-1&&Z!==-1){var se=k(N,$,Z);$=se.x,Z=se.y}var Y=B.find(function(oe){var de=oe.position;return de&&Array.isArray(de.x)&&Array.isArray(de.y)?$>=de.x[0]&&$<=de.x[1]&&Z>=de.y[0]&&Z<=de.y[1]:de&&!Number.isNaN(de.x)&&!Number.isNaN(de.y)?$===de.x&&Z===de.y:!1});if(!!Y){if(Y.type==="seek"&&Y.position&&Array.isArray(Y.position.x)&&Array.isArray(Y.position.y)&&Y.frames.length===2){var ue=($-Y.position.x[0])/(Y.position.x[1]-Y.position.x[0]),pe=(Z-Y.position.y[0])/(Y.position.y[1]-Y.position.y[0]);j.playSegments(Y.frames,!0),j.goToAndStop(Math.ceil((ue+pe)/2*(Y.frames[1]-Y.frames[0])),!0)}Y.type==="loop"&&j.playSegments(Y.frames,!0),Y.type==="play"&&(j.isPaused&&j.resetSegments(!1),j.playSegments(Y.frames)),Y.type==="stop"&&j.goToAndStop(Y.frames[0],!0)}},Q=function(D){T(D.clientX,D.clientY)},U=function(){T(-1,-1)};return N.addEventListener("mousemove",Q),N.addEventListener("mouseout",U),function(){N.removeEventListener("mousemove",Q),N.removeEventListener("mouseout",U)}};switch(V){case"scroll":return C();case"cursor":return S()}}},[V,j])},M=function(H){var ee=H.actions,j=H.mode,V=H.lottieObj,B=V.animationItem,N=V.View,C=V.animationContainerRef;return O({actions:ee,animationItem:B,mode:j,wrapperRef:C}),N},I=["style","interactivity"],W=function(H){var ee,j,V,B=H.style,N=H.interactivity,C=f(H,I),S=_(C,B),G=S.View,T=S.play,Q=S.stop,U=S.pause,F=S.setSpeed,D=S.goToAndStop,L=S.goToAndPlay,$=S.setDirection,Z=S.playSegments,se=S.setSubframe,Y=S.getDuration,ue=S.destroy,pe=S.animationContainerRef,oe=S.animationLoaded,de=S.animationItem;return n.useEffect(function(){H.lottieRef&&(H.lottieRef.current={play:T,stop:Q,pause:U,setSpeed:F,goToAndPlay:L,goToAndStop:D,setDirection:$,playSegments:Z,setSubframe:se,getDuration:Y,destroy:ue,animationContainerRef:pe,animationLoaded:oe,animationItem:de})},[(ee=H.lottieRef)===null||ee===void 0?void 0:ee.current]),M({lottieObj:{View:G,play:T,stop:Q,pause:U,setSpeed:F,goToAndStop:D,goToAndPlay:L,setDirection:$,playSegments:Z,setSubframe:se,getDuration:Y,destroy:ue,animationContainerRef:pe,animationLoaded:oe,animationItem:de},actions:(j=N?.actions)!==null&&j!==void 0?j:[],mode:(V=N?.mode)!==null&&V!==void 0?V:"scroll"})};Object.defineProperty(e,"LottiePlayer",{enumerable:!0,get:function(){return i.default}}),e.default=W,e.useLottie=_,e.useLottieInteractivity=M,Object.defineProperty(e,"__esModule",{value:!0})})});var MP=ne((vG,Kwe)=>{(function(e,t){typeof vG=="object"&&typeof Kwe<"u"?t(vG,Pe()):typeof define=="function"&&define.amd?define(["exports","react"],t):(e=e||self,t(e.ReactStripe={},e.React))})(vG,function(e,t){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;function n(fe,be){var ye=Object.keys(fe);if(Object.getOwnPropertySymbols){var Oe=Object.getOwnPropertySymbols(fe);be&&(Oe=Oe.filter(function(Me){return Object.getOwnPropertyDescriptor(fe,Me).enumerable})),ye.push.apply(ye,Oe)}return ye}function r(fe){for(var be=1;be<arguments.length;be++){var ye=arguments[be]!=null?arguments[be]:{};be%2?n(Object(ye),!0).forEach(function(Oe){o(fe,Oe,ye[Oe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(fe,Object.getOwnPropertyDescriptors(ye)):n(Object(ye)).forEach(function(Oe){Object.defineProperty(fe,Oe,Object.getOwnPropertyDescriptor(ye,Oe))})}return fe}function i(fe){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(be){return typeof be}:i=function(be){return be&&typeof Symbol=="function"&&be.constructor===Symbol&&be!==Symbol.prototype?"symbol":typeof be},i(fe)}function o(fe,be,ye){return be in fe?Object.defineProperty(fe,be,{value:ye,enumerable:!0,configurable:!0,writable:!0}):fe[be]=ye,fe}function s(fe,be){return a(fe)||l(fe,be)||u(fe,be)||f()}function a(fe){if(Array.isArray(fe))return fe}function l(fe,be){var ye=fe&&(typeof Symbol<"u"&&fe[Symbol.iterator]||fe["@@iterator"]);if(ye!=null){var Oe=[],Me=!0,Ke=!1,gt,ft;try{for(ye=ye.call(fe);!(Me=(gt=ye.next()).done)&&(Oe.push(gt.value),!(be&&Oe.length===be));Me=!0);}catch(Bt){Ke=!0,ft=Bt}finally{try{!Me&&ye.return!=null&&ye.return()}finally{if(Ke)throw ft}}return Oe}}function u(fe,be){if(!!fe){if(typeof fe=="string")return c(fe,be);var ye=Object.prototype.toString.call(fe).slice(8,-1);if(ye==="Object"&&fe.constructor&&(ye=fe.constructor.name),ye==="Map"||ye==="Set")return Array.from(fe);if(ye==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ye))return c(fe,be)}}function c(fe,be){(be==null||be>fe.length)&&(be=fe.length);for(var ye=0,Oe=new Array(be);ye<be;ye++)Oe[ye]=fe[ye];return Oe}function f(){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 d(fe,be){return be={exports:{}},fe(be,be.exports),be.exports}var h="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",m=h;function g(){}function b(){}b.resetWarningCache=g;var v=function(){function fe(Oe,Me,Ke,gt,ft,Bt){if(Bt!==m){var Ft=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 Ft.name="Invariant Violation",Ft}}fe.isRequired=fe;function be(){return fe}var ye={array:fe,bool:fe,func:fe,number:fe,object:fe,string:fe,symbol:fe,any:fe,arrayOf:be,element:fe,elementType:fe,instanceOf:be,node:fe,objectOf:be,oneOf:be,oneOfType:be,shape:be,exact:be,checkPropTypes:b,resetWarningCache:g};return ye.PropTypes=ye,ye},x=d(function(fe){fe.exports=v()}),y=function(be){var ye=t.useRef(be);return t.useEffect(function(){ye.current=be},[be]),ye.current},_=function(be){return be!==null&&i(be)==="object"},w=function(be){return _(be)&&typeof be.then=="function"},k=function(be){return _(be)&&typeof be.elements=="function"&&typeof be.createToken=="function"&&typeof be.createPaymentMethod=="function"&&typeof be.confirmCardPayment=="function"},O="[object Object]",M=function fe(be,ye){if(!_(be)||!_(ye))return be===ye;var Oe=Array.isArray(be),Me=Array.isArray(ye);if(Oe!==Me)return!1;var Ke=Object.prototype.toString.call(be)===O,gt=Object.prototype.toString.call(ye)===O;if(Ke!==gt)return!1;if(!Ke&&!Oe)return be===ye;var ft=Object.keys(be),Bt=Object.keys(ye);if(ft.length!==Bt.length)return!1;for(var Ft={},Kn=0;Kn<ft.length;Kn+=1)Ft[ft[Kn]]=!0;for(var Ut=0;Ut<Bt.length;Ut+=1)Ft[Bt[Ut]]=!0;var ln=Object.keys(Ft);if(ln.length!==ft.length)return!1;var Yn=be,jn=ye,Hn=function(cr){return fe(Yn[cr],jn[cr])};return ln.every(Hn)},I=function(be,ye,Oe){return _(be)?Object.keys(be).reduce(function(Me,Ke){var gt=!_(ye)||!M(be[Ke],ye[Ke]);return Oe.includes(Ke)?(gt&&console.warn("Unsupported prop change: options.".concat(Ke," is not a mutable property.")),Me):gt?r(r({},Me||{}),{},o({},Ke,be[Ke])):Me},null):null},W="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",J=function(be){if(be===null||k(be))return be;throw new Error(W)},H=function(be){if(w(be))return{tag:"async",stripePromise:Promise.resolve(be).then(J)};var ye=J(be);return ye===null?{tag:"empty"}:{tag:"sync",stripe:ye}},ee=t.createContext(null);ee.displayName="ElementsContext";var j=function(be,ye){if(!be)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(ye," in an <Elements> provider."));return be},V=t.createContext(null);V.displayName="CartElementContext";var B=function(be,ye){if(!be)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(ye," in an <Elements> provider."));return be},N=function(be){var ye=be.stripe,Oe=be.options,Me=be.children,Ke=t.useMemo(function(){return H(ye)},[ye]),gt=t.useState(null),ft=s(gt,2),Bt=ft[0],Ft=ft[1],Kn=t.useState(null),Ut=s(Kn,2),ln=Ut[0],Yn=Ut[1],jn=t.useState(function(){return{stripe:Ke.tag==="sync"?Ke.stripe:null,elements:Ke.tag==="sync"?Ke.stripe.elements(Oe):null}}),Hn=s(jn,2),dn=Hn[0],cr=Hn[1];t.useEffect(function(){var ir=!0,Mr=function(_n){cr(function(Oi){return Oi.stripe?Oi:{stripe:_n,elements:_n.elements(Oe)}})};return Ke.tag==="async"&&!dn.stripe?Ke.stripePromise.then(function(ct){ct&&ir&&Mr(ct)}):Ke.tag==="sync"&&!dn.stripe&&Mr(Ke.stripe),function(){ir=!1}},[Ke,dn,Oe]);var Bn=y(ye);t.useEffect(function(){Bn!==null&&Bn!==ye&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[Bn,ye]);var Si=y(Oe);return t.useEffect(function(){if(!!dn.elements){var ir=I(Oe,Si,["clientSecret","fonts"]);ir&&dn.elements.update(ir)}},[Oe,Si,dn.elements]),t.useEffect(function(){var ir=dn.stripe;!ir||!ir._registerWrapper||!ir.registerAppInfo||(ir._registerWrapper({name:"react-stripe-js",version:"1.16.5"}),ir.registerAppInfo({name:"react-stripe-js",version:"1.16.5",url:"https://stripe.com/docs/stripe-js/react"}))},[dn.stripe]),t.createElement(ee.Provider,{value:dn},t.createElement(V.Provider,{value:{cart:Bt,setCart:Ft,cartState:ln,setCartState:Yn}},Me))};N.propTypes={stripe:x.any,options:x.object};var C=function(be){var ye=t.useContext(ee);return j(ye,be)},S=function(be){var ye=t.useContext(V);return B(ye,be)},G=function(){var be=C("calls useElements()"),ye=be.elements;return ye},T=function(){var be=C("calls useStripe()"),ye=be.stripe;return ye},Q=function(){var be=S("calls useCartElement()"),ye=be.cart;return ye},U=function(){var be=S("calls useCartElementState()"),ye=be.cartState;return ye},F=function(be){var ye=be.children,Oe=C("mounts <ElementsConsumer>");return ye(Oe)};F.propTypes={children:x.func.isRequired};var D=function(be,ye,Oe){var Me=!!Oe,Ke=t.useRef(Oe);t.useEffect(function(){Ke.current=Oe},[Oe]),t.useEffect(function(){if(!Me||!be)return function(){};var gt=function(){Ke.current&&Ke.current.apply(Ke,arguments)};return be.on(ye,gt),function(){be.off(ye,gt)}},[Me,ye,be,Ke])},L=function(be){return be.charAt(0).toUpperCase()+be.slice(1)},$=function(be,ye){var Oe="".concat(L(be),"Element"),Me=function(Bt){var Ft=Bt.id,Kn=Bt.className,Ut=Bt.options,ln=Ut===void 0?{}:Ut,Yn=Bt.onBlur,jn=Bt.onFocus,Hn=Bt.onReady,dn=Bt.onChange,cr=Bt.onEscape,Bn=Bt.onClick,Si=Bt.onLoadError,ir=Bt.onLoaderStart,Mr=Bt.onNetworksChange,ct=Bt.onCheckout,_n=Bt.onLineItemClick,Oi=Bt.onConfirm,or=Bt.onCancel,bn=Bt.onShippingAddressChange,Qn=Bt.onShippingRateChange,Ho=C("mounts <".concat(Oe,">")),ds=Ho.elements,$r=t.useState(null),co=s($r,2),gr=co[0],sr=co[1],We=t.useRef(null),an=t.useRef(null),tn=S("mounts <".concat(Oe,">")),Ze=tn.setCart,zt=tn.setCartState;D(gr,"blur",Yn),D(gr,"focus",jn),D(gr,"escape",cr),D(gr,"click",Bn),D(gr,"loaderror",Si),D(gr,"loaderstart",ir),D(gr,"networkschange",Mr),D(gr,"lineitemclick",_n),D(gr,"confirm",Oi),D(gr,"cancel",or),D(gr,"shippingaddresschange",bn),D(gr,"shippingratechange",Qn);var rn;be==="cart"?rn=function(_o){zt(_o),Hn&&Hn(_o)}:Hn&&(be==="payButton"?rn=Hn:rn=function(){Hn(gr)}),D(gr,"ready",rn);var Rt=be==="cart"?function(wn){zt(wn),dn&&dn(wn)}:dn;D(gr,"change",Rt);var gn=be==="cart"?function(wn){zt(wn),ct&&ct(wn)}:ct;D(gr,"checkout",gn),t.useLayoutEffect(function(){if(We.current===null&&ds&&an.current!==null){var wn=ds.create(be,ln);be==="cart"&&Ze&&Ze(wn),We.current=wn,sr(wn),wn.mount(an.current)}},[ds,ln,Ze]);var Xt=y(ln);return t.useEffect(function(){if(!!We.current){var wn=I(ln,Xt,["paymentRequest"]);wn&&We.current.update(wn)}},[ln,Xt]),t.useLayoutEffect(function(){return function(){We.current&&(We.current.destroy(),We.current=null)}},[]),t.createElement("div",{id:Ft,className:Kn,ref:an})},Ke=function(Bt){C("mounts <".concat(Oe,">")),S("mounts <".concat(Oe,">"));var Ft=Bt.id,Kn=Bt.className;return t.createElement("div",{id:Ft,className:Kn})},gt=ye?Ke:Me;return gt.propTypes={id:x.string,className:x.string,onChange:x.func,onBlur:x.func,onFocus:x.func,onReady:x.func,onEscape:x.func,onClick:x.func,onLoadError:x.func,onLoaderStart:x.func,onNetworksChange:x.func,onCheckout:x.func,onLineItemClick:x.func,onConfirm:x.func,onCancel:x.func,onShippingAddressChange:x.func,onShippingRateChange:x.func,options:x.object},gt.displayName=Oe,gt.__elementType=be,gt},Z=typeof window>"u",se=$("auBankAccount",Z),Y=$("card",Z),ue=$("cardNumber",Z),pe=$("cardExpiry",Z),oe=$("cardCvc",Z),de=$("fpxBank",Z),ve=$("iban",Z),Ae=$("idealBank",Z),Ce=$("p24Bank",Z),Ge=$("epsBank",Z),Ee=$("payment",Z),Ne=$("payButton",Z),De=$("paymentRequestButton",Z),Ue=$("linkAuthentication",Z),Re=$("address",Z),je=$("shippingAddress",Z),$e=$("cart",Z),Le=$("paymentMethodMessaging",Z),Xe=$("affirmMessage",Z),mt=$("afterpayClearpayMessage",Z);e.AddressElement=Re,e.AffirmMessageElement=Xe,e.AfterpayClearpayMessageElement=mt,e.AuBankAccountElement=se,e.CardCvcElement=oe,e.CardElement=Y,e.CardExpiryElement=pe,e.CardNumberElement=ue,e.CartElement=$e,e.Elements=N,e.ElementsConsumer=F,e.EpsBankElement=Ge,e.FpxBankElement=de,e.IbanElement=ve,e.IdealBankElement=Ae,e.LinkAuthenticationElement=Ue,e.P24BankElement=Ce,e.PayButtonElement=Ne,e.PaymentElement=Ee,e.PaymentMethodMessagingElement=Le,e.PaymentRequestButtonElement=De,e.ShippingAddressElement=je,e.useCartElement=Q,e.useCartElementState=U,e.useElements=G,e.useStripe=T,Object.defineProperty(e,"__esModule",{value:!0})})});var fu=ne((h7e,kG)=>{(function(e,t){typeof define=="function"&&define.amd?define(t):typeof kG=="object"&&kG.exports?kG.exports=t():e.numeral=t()})(h7e,function(){var e,t,n="2.0.6",r={},i={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},s={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function a(l,u){this._input=l,this._value=u}return e=function(l){var u,c,f,d;if(e.isNumeral(l))u=l.value();else if(l===0||typeof l>"u")u=0;else if(l===null||t.isNaN(l))u=null;else if(typeof l=="string")if(s.zeroFormat&&l===s.zeroFormat)u=0;else if(s.nullFormat&&l===s.nullFormat||!l.replace(/[^0-9]+/g,"").length)u=null;else{for(c in r)if(d=typeof r[c].regexps.unformat=="function"?r[c].regexps.unformat():r[c].regexps.unformat,d&&l.match(d)){f=r[c].unformat;break}f=f||e._.stringToNumber,u=f(l)}else u=Number(l)||null;return new a(l,u)},e.version=n,e.isNumeral=function(l){return l instanceof a},e._=t={numberToFormat:function(l,u,c){var f=i[e.options.currentLocale],d=!1,h=!1,m=0,g="",b=1e12,v=1e9,x=1e6,y=1e3,_="",w=!1,k,O,M,I,W,J,H,ee,j,V;if(l=l||0,O=Math.abs(l),e._.includes(u,"(")?(d=!0,u=u.replace(/[\(|\)]/g,"")):(e._.includes(u,"+")||e._.includes(u,"-"))&&(ee=e._.includes(u,"+")?u.indexOf("+"):l<0?u.indexOf("-"):-1,u=u.replace(/[\+|\-]/g,"")),e._.includes(u,"a")&&(k=u.match(/a(k|m|b|t)?/),k=k?k[1]:!1,e._.includes(u," a")&&(g=" "),u=u.replace(new RegExp(g+"a[kmbt]?"),""),O>=b&&!k||k==="t"?(g+=f.abbreviations.trillion,l=l/b):O<b&&O>=v&&!k||k==="b"?(g+=f.abbreviations.billion,l=l/v):O<v&&O>=x&&!k||k==="m"?(g+=f.abbreviations.million,l=l/x):(O<x&&O>=y&&!k||k==="k")&&(g+=f.abbreviations.thousand,l=l/y)),e._.includes(u,"[.]")&&(h=!0,u=u.replace("[.]",".")),J=l.toString().split(".")[0],H=u.split(".")[1],j=u.indexOf(","),m=(u.split(".")[0].split(",")[0].match(/0/g)||[]).length,H?(e._.includes(H,"[")?(H=H.replace("]",""),H=H.split("["),_=e._.toFixed(l,H[0].length+H[1].length,c,H[1].length)):_=e._.toFixed(l,H.length,c),J=_.split(".")[0],e._.includes(_,".")?_=f.delimiters.decimal+_.split(".")[1]:_="",h&&Number(_.slice(1))===0&&(_="")):J=e._.toFixed(l,0,c),g&&!k&&Number(J)>=1e3&&g!==f.abbreviations.trillion)switch(J=String(Number(J)/1e3),g){case f.abbreviations.thousand:g=f.abbreviations.million;break;case f.abbreviations.million:g=f.abbreviations.billion;break;case f.abbreviations.billion:g=f.abbreviations.trillion;break}if(e._.includes(J,"-")&&(J=J.slice(1),w=!0),J.length<m)for(var B=m-J.length;B>0;B--)J="0"+J;return j>-1&&(J=J.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+f.delimiters.thousands)),u.indexOf(".")===0&&(J=""),V=J+_+(g||""),d?V=(d&&w?"(":"")+V+(d&&w?")":""):ee>=0?V=ee===0?(w?"-":"+")+V:V+(w?"-":"+"):w&&(V="-"+V),V},stringToNumber:function(l){var u=i[s.currentLocale],c=l,f={thousand:3,million:6,billion:9,trillion:12},d,h,m,g;if(s.zeroFormat&&l===s.zeroFormat)h=0;else if(s.nullFormat&&l===s.nullFormat||!l.replace(/[^0-9]+/g,"").length)h=null;else{h=1,u.delimiters.decimal!=="."&&(l=l.replace(/\./g,"").replace(u.delimiters.decimal,"."));for(d in f)if(g=new RegExp("[^a-zA-Z]"+u.abbreviations[d]+"(?:\\)|(\\"+u.currency.symbol+")?(?:\\))?)?$"),c.match(g)){h*=Math.pow(10,f[d]);break}h*=(l.split("-").length+Math.min(l.split("(").length-1,l.split(")").length-1))%2?1:-1,l=l.replace(/[^0-9\.]+/g,""),h*=Number(l)}return h},isNaN:function(l){return typeof l=="number"&&isNaN(l)},includes:function(l,u){return l.indexOf(u)!==-1},insert:function(l,u,c){return l.slice(0,c)+u+l.slice(c)},reduce:function(l,u){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof u!="function")throw new TypeError(u+" is not a function");var c=Object(l),f=c.length>>>0,d=0,h;if(arguments.length===3)h=arguments[2];else{for(;d<f&&!(d in c);)d++;if(d>=f)throw new TypeError("Reduce of empty array with no initial value");h=c[d++]}for(;d<f;d++)d in c&&(h=u(h,c[d],d,c));return h},multiplier:function(l){var u=l.toString().split(".");return u.length<2?1:Math.pow(10,u[1].length)},correctionFactor:function(){var l=Array.prototype.slice.call(arguments);return l.reduce(function(u,c){var f=t.multiplier(c);return u>f?u:f},1)},toFixed:function(l,u,c,f){var d=l.toString().split("."),h=u-(f||0),m,g,b,v;return d.length===2?m=Math.min(Math.max(d[1].length,h),u):m=h,b=Math.pow(10,m),v=(c(l+"e+"+m)/b).toFixed(m),f>u-m&&(g=new RegExp("\\.?0{1,"+(f-(u-m))+"}$"),v=v.replace(g,"")),v}},e.options=s,e.formats=r,e.locales=i,e.locale=function(l){return l&&(s.currentLocale=l.toLowerCase()),s.currentLocale},e.localeData=function(l){if(!l)return i[s.currentLocale];if(l=l.toLowerCase(),!i[l])throw new Error("Unknown locale : "+l);return i[l]},e.reset=function(){for(var l in o)s[l]=o[l]},e.zeroFormat=function(l){s.zeroFormat=typeof l=="string"?l:null},e.nullFormat=function(l){s.nullFormat=typeof l=="string"?l:null},e.defaultFormat=function(l){s.defaultFormat=typeof l=="string"?l:"0.0"},e.register=function(l,u,c){if(u=u.toLowerCase(),this[l+"s"][u])throw new TypeError(u+" "+l+" already registered.");return this[l+"s"][u]=c,c},e.validate=function(l,u){var c,f,d,h,m,g,b,v;if(typeof l!="string"&&(l+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",l)),l=l.trim(),l.match(/^\d+$/))return!0;if(l==="")return!1;try{b=e.localeData(u)}catch{b=e.localeData(e.locale())}return d=b.currency.symbol,m=b.abbreviations,c=b.delimiters.decimal,b.delimiters.thousands==="."?f="\\.":f=b.delimiters.thousands,v=l.match(/^[^\d]+/),v!==null&&(l=l.substr(1),v[0]!==d)||(v=l.match(/[^\d]+$/),v!==null&&(l=l.slice(0,-1),v[0]!==m.thousand&&v[0]!==m.million&&v[0]!==m.billion&&v[0]!==m.trillion))?!1:(g=new RegExp(f+"{2}"),l.match(/[^\d.,]/g)?!1:(h=l.split(c),h.length>2?!1:h.length<2?!!h[0].match(/^\d+.*\d$/)&&!h[0].match(g):h[0].length===1?!!h[0].match(/^\d+$/)&&!h[0].match(g)&&!!h[1].match(/^\d+$/):!!h[0].match(/^\d+.*\d$/)&&!h[0].match(g)&&!!h[1].match(/^\d+$/)))},e.fn=a.prototype={clone:function(){return e(this)},format:function(l,u){var c=this._value,f=l||s.defaultFormat,d,h,m;if(u=u||Math.round,c===0&&s.zeroFormat!==null)h=s.zeroFormat;else if(c===null&&s.nullFormat!==null)h=s.nullFormat;else{for(d in r)if(f.match(r[d].regexps.format)){m=r[d].format;break}m=m||e._.numberToFormat,h=m(c,f,u)}return h},value:function(){return this._value},input:function(){return this._input},set:function(l){return this._value=Number(l),this},add:function(l){var u=t.correctionFactor.call(null,this._value,l);function c(f,d,h,m){return f+Math.round(u*d)}return this._value=t.reduce([this._value,l],c,0)/u,this},subtract:function(l){var u=t.correctionFactor.call(null,this._value,l);function c(f,d,h,m){return f-Math.round(u*d)}return this._value=t.reduce([l],c,Math.round(this._value*u))/u,this},multiply:function(l){function u(c,f,d,h){var m=t.correctionFactor(c,f);return Math.round(c*m)*Math.round(f*m)/Math.round(m*m)}return this._value=t.reduce([this._value,l],u,1),this},divide:function(l){function u(c,f,d,h){var m=t.correctionFactor(c,f);return Math.round(c*m)/Math.round(f*m)}return this._value=t.reduce([this._value,l],u),this},difference:function(l){return Math.abs(e(this._value).subtract(l).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(l){var u=l%10;return~~(l%100/10)===1?"th":u===1?"st":u===2?"nd":u===3?"rd":"th"},currency:{symbol:"$"}}),function(){e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(l,u,c){var f=e._.includes(u," BPS")?" ":"",d;return l=l*1e4,u=u.replace(/\s?BPS/,""),d=e._.numberToFormat(l,u,c),e._.includes(d,")")?(d=d.split(""),d.splice(-1,0,f+"BPS"),d=d.join("")):d=d+f+"BPS",d},unformat:function(l){return+(e._.stringToNumber(l)*1e-4).toFixed(15)}})}(),function(){var l={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},u={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},c=l.suffixes.concat(u.suffixes.filter(function(d){return l.suffixes.indexOf(d)<0})),f=c.join("|");f="("+f.replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(f)},format:function(d,h,m){var g,b=e._.includes(h,"ib")?u:l,v=e._.includes(h," b")||e._.includes(h," ib")?" ":"",x,y,_;for(h=h.replace(/\s?i?b/,""),x=0;x<=b.suffixes.length;x++)if(y=Math.pow(b.base,x),_=Math.pow(b.base,x+1),d===null||d===0||d>=y&&d<_){v+=b.suffixes[x],y>0&&(d=d/y);break}return g=e._.numberToFormat(d,h,m),g+v},unformat:function(d){var h=e._.stringToNumber(d),m,g;if(h){for(m=l.suffixes.length-1;m>=0;m--){if(e._.includes(d,l.suffixes[m])){g=Math.pow(l.base,m);break}if(e._.includes(d,u.suffixes[m])){g=Math.pow(u.base,m);break}}h*=g||1}return h}})}(),function(){e.register("format","currency",{regexps:{format:/(\$)/},format:function(l,u,c){var f=e.locales[e.options.currentLocale],d={before:u.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:u.match(/([\+|\-|\)|\s|\$]*)$/)[0]},h,m,g;for(u=u.replace(/\s?\$\s?/,""),h=e._.numberToFormat(l,u,c),l>=0?(d.before=d.before.replace(/[\-\(]/,""),d.after=d.after.replace(/[\-\)]/,"")):l<0&&!e._.includes(d.before,"-")&&!e._.includes(d.before,"(")&&(d.before="-"+d.before),g=0;g<d.before.length;g++)switch(m=d.before[g],m){case"$":h=e._.insert(h,f.currency.symbol,g);break;case" ":h=e._.insert(h," ",g+f.currency.symbol.length-1);break}for(g=d.after.length-1;g>=0;g--)switch(m=d.after[g],m){case"$":h=g===d.after.length-1?h+f.currency.symbol:e._.insert(h,f.currency.symbol,-(d.after.length-(1+g)));break;case" ":h=g===d.after.length-1?h+" ":e._.insert(h," ",-(d.after.length-(1+g)+f.currency.symbol.length-1));break}return h}})}(),function(){e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(l,u,c){var f,d=typeof l=="number"&&!e._.isNaN(l)?l.toExponential():"0e+0",h=d.split("e");return u=u.replace(/e[\+|\-]{1}0/,""),f=e._.numberToFormat(Number(h[0]),u,c),f+"e"+h[1]},unformat:function(l){var u=e._.includes(l,"e+")?l.split("e+"):l.split("e-"),c=Number(u[0]),f=Number(u[1]);f=e._.includes(l,"e-")?f*=-1:f;function d(h,m,g,b){var v=e._.correctionFactor(h,m),x=h*v*(m*v)/(v*v);return x}return e._.reduce([c,Math.pow(10,f)],d,1)}})}(),function(){e.register("format","ordinal",{regexps:{format:/(o)/},format:function(l,u,c){var f=e.locales[e.options.currentLocale],d,h=e._.includes(u," o")?" ":"";return u=u.replace(/\s?o/,""),h+=f.ordinal(l),d=e._.numberToFormat(l,u,c),d+h}})}(),function(){e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(l,u,c){var f=e._.includes(u," %")?" ":"",d;return e.options.scalePercentBy100&&(l=l*100),u=u.replace(/\s?\%/,""),d=e._.numberToFormat(l,u,c),e._.includes(d,")")?(d=d.split(""),d.splice(-1,0,f+"%"),d=d.join("")):d=d+f+"%",d},unformat:function(l){var u=e._.stringToNumber(l);return e.options.scalePercentBy100?u*.01:u}})}(),function(){e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(l,u,c){var f=Math.floor(l/60/60),d=Math.floor((l-f*60*60)/60),h=Math.round(l-f*60*60-d*60);return f+":"+(d<10?"0"+d:d)+":"+(h<10?"0"+h:h)},unformat:function(l){var u=l.split(":"),c=0;return u.length===3?(c=c+Number(u[0])*60*60,c=c+Number(u[1])*60,c=c+Number(u[2])):u.length===2&&(c=c+Number(u[0])*60,c=c+Number(u[1])),Number(c)}})}(),e})});var CG=ne((DZ,RZ)=>{(function(e,t){if(typeof define=="function"&&define.amd)define(["moment"],t);else if(typeof DZ=="object")try{RZ.exports=t(Xa())}catch{RZ.exports=t}e&&(e.momentDurationFormatSetup=e.moment?t(e.moment):t)})(DZ,function(e){var t=!1,n=!1,r=!1,i=!1,o="escape years months weeks days hours minutes seconds milliseconds general".split(" "),s=[{type:"seconds",targets:[{type:"minutes",value:60},{type:"hours",value:3600},{type:"days",value:86400},{type:"weeks",value:604800},{type:"months",value:2678400},{type:"years",value:31536e3}]},{type:"minutes",targets:[{type:"hours",value:60},{type:"days",value:1440},{type:"weeks",value:10080},{type:"months",value:44640},{type:"years",value:525600}]},{type:"hours",targets:[{type:"days",value:24},{type:"weeks",value:168},{type:"months",value:744},{type:"years",value:8760}]},{type:"days",targets:[{type:"weeks",value:7},{type:"months",value:31},{type:"years",value:365}]},{type:"months",targets:[{type:"years",value:12}]}];function a(D,L){return L.length>D.length?!1:D.indexOf(L)!==-1}function l(D){for(var L="";D;)L+="0",D-=1;return L}function u(D){for(var L=D.split("").reverse(),$=0,Z=!0;Z&&$<L.length;)$?L[$]==="9"?L[$]="0":(L[$]=(parseInt(L[$],10)+1).toString(),Z=!1):(parseInt(L[$],10)<5&&(Z=!1),L[$]="0"),$+=1;return Z&&L.push("1"),L.reverse().join("")}function c(D,L){var $=w(ee(L).sort(),function(se){return se+":"+L[se]}).join(","),Z=D+"+"+$;return c.cache[Z]||(c.cache[Z]=Intl.NumberFormat(D,L)),c.cache[Z]}c.cache={};function f(D,L,$){var Z=L.useToLocaleString,se=L.useGrouping,Y=se&&L.grouping.slice(),ue=L.maximumSignificantDigits,pe=L.minimumIntegerDigits||1,oe=L.fractionDigits||0,de=L.groupingSeparator,ve=L.decimalSeparator;if(Z&&$){var Ae={minimumIntegerDigits:pe,useGrouping:se};if(oe&&(Ae.maximumFractionDigits=oe,Ae.minimumFractionDigits=oe),ue&&D>0&&(Ae.maximumSignificantDigits=ue),r){if(!i){var Ce=H({},L);Ce.useGrouping=!1,Ce.decimalSeparator=".",D=parseFloat(f(D,Ce),10)}return c($,Ae).format(D)}else{if(!n){var Ce=H({},L);Ce.useGrouping=!1,Ce.decimalSeparator=".",D=parseFloat(f(D,Ce),10)}return D.toLocaleString($,Ae)}}var Ge;ue?Ge=D.toPrecision(ue+1):Ge=D.toFixed(oe+1);var Ee,Ne,De,Ue=Ge.split("e");De=Ue[1]||"",Ue=Ue[0].split("."),Ne=Ue[1]||"",Ee=Ue[0]||"";var Re=Ee.length,je=Ne.length,$e=Re+je,Le=Ee+Ne;(ue&&$e===ue+1||!ue&&je===oe+1)&&(Le=u(Le),Le.length===$e+1&&(Re=Re+1),je&&(Le=Le.slice(0,-1)),Ee=Le.slice(0,Re),Ne=Le.slice(Re)),ue&&(Ne=Ne.replace(/0*$/,""));var Xe=parseInt(De,10);Xe>0?Ne.length<=Xe?(Ne=Ne+l(Xe-Ne.length),Ee=Ee+Ne,Ne=""):(Ee=Ee+Ne.slice(0,Xe),Ne=Ne.slice(Xe)):Xe<0&&(Ne=l(Math.abs(Xe)-Ee.length)+Ee+Ne,Ee="0"),ue||(Ne=Ne.slice(0,oe),Ne.length<oe&&(Ne=Ne+l(oe-Ne.length)),Ee.length<pe&&(Ee=l(pe-Ee.length)+Ee));var mt="";if(se){Ue=Ee;for(var fe;Ue.length;)Y.length&&(fe=Y.shift()),mt&&(mt=de+mt),mt=Ue.slice(-fe)+mt,Ue=Ue.slice(0,-fe)}else mt=Ee;return Ne&&(mt=mt+ve+Ne),mt}function d(D,L){return D.label.length>L.label.length?-1:D.label.length<L.label.length?1:0}function h(D,L){var $=[];return _(ee(L),function(Z){if(Z.slice(0,15)==="_durationLabels"){var se=Z.slice(15).toLowerCase();_(ee(L[Z]),function(Y){Y.slice(0,1)===D&&$.push({type:se,key:Y,label:L[Z][Y]})})}}),$}function m(D,L,$){return L===1&&$===null?D:D+D}var g={durationLabelsStandard:{S:"millisecond",SS:"milliseconds",s:"second",ss:"seconds",m:"minute",mm:"minutes",h:"hour",hh:"hours",d:"day",dd:"days",w:"week",ww:"weeks",M:"month",MM:"months",y:"year",yy:"years"},durationLabelsShort:{S:"msec",SS:"msecs",s:"sec",ss:"secs",m:"min",mm:"mins",h:"hr",hh:"hrs",d:"dy",dd:"dys",w:"wk",ww:"wks",M:"mo",MM:"mos",y:"yr",yy:"yrs"},durationTimeTemplates:{HMS:"h:mm:ss",HM:"h:mm",MS:"m:ss"},durationLabelTypes:[{type:"standard",string:"__"},{type:"short",string:"_"}],durationPluralKey:m};function b(D){return Object.prototype.toString.call(D)==="[object Array]"}function v(D){return Object.prototype.toString.call(D)==="[object Object]"}function x(D,L){for(var $=D.length;$-=1;)if(L(D[$]))return D[$]}function y(D,L){var $=0,Z=D&&D.length||0,se;for(typeof L!="function"&&(se=L,L=function(Y){return Y===se});$<Z;){if(L(D[$]))return D[$];$+=1}}function _(D,L){var $=0,Z=D.length;if(!(!D||!Z))for(;$<Z;){if(L(D[$],$)===!1)return;$+=1}}function w(D,L){var $=0,Z=D.length,se=[];if(!D||!Z)return se;for(;$<Z;)se[$]=L(D[$],$),$+=1;return se}function k(D,L){return w(D,function($){return $[L]})}function O(D){var L=[];return _(D,function($){$&&L.push($)}),L}function M(D){var L=[];return _(D,function($){y(L,$)||L.push($)}),L}function I(D,L){var $=[];return _(D,function(Z){_(L,function(se){Z===se&&$.push(Z)})}),M($)}function W(D,L){var $=[];return _(D,function(Z,se){if(!L(Z))return $=D.slice(se),!1}),$}function J(D,L){var $=D.slice().reverse();return W($,L).reverse()}function H(D,L){for(var $ in L)L.hasOwnProperty($)&&(D[$]=L[$]);return D}function ee(D){var L=[];for(var $ in D)D.hasOwnProperty($)&&L.push($);return L}function j(D,L){var $=0,Z=D.length;if(!D||!Z)return!1;for(;$<Z;){if(L(D[$],$)===!0)return!0;$+=1}return!1}function V(D){var L=[];return _(D,function($){L=L.concat($)}),L}function B(){var D=0;try{D.toLocaleString("i")}catch(L){return L.name==="RangeError"}return!1}function N(D){return D(3.55,"en",{useGrouping:!1,minimumIntegerDigits:1,minimumFractionDigits:1,maximumFractionDigits:1})==="3.6"}function C(D){var L=!0;return L=L&&D(1,"en",{minimumIntegerDigits:1})==="1",L=L&&D(1,"en",{minimumIntegerDigits:2})==="01",L=L&&D(1,"en",{minimumIntegerDigits:3})==="001",!(!L||(L=L&&D(99.99,"en",{maximumFractionDigits:0,minimumFractionDigits:0})==="100",L=L&&D(99.99,"en",{maximumFractionDigits:1,minimumFractionDigits:1})==="100.0",L=L&&D(99.99,"en",{maximumFractionDigits:2,minimumFractionDigits:2})==="99.99",L=L&&D(99.99,"en",{maximumFractionDigits:3,minimumFractionDigits:3})==="99.990",!L)||(L=L&&D(99.99,"en",{maximumSignificantDigits:1})==="100",L=L&&D(99.99,"en",{maximumSignificantDigits:2})==="100",L=L&&D(99.99,"en",{maximumSignificantDigits:3})==="100",L=L&&D(99.99,"en",{maximumSignificantDigits:4})==="99.99",L=L&&D(99.99,"en",{maximumSignificantDigits:5})==="99.99",!L)||(L=L&&D(1e3,"en",{useGrouping:!0})==="1,000",L=L&&D(1e3,"en",{useGrouping:!1})==="1000",!L))}function S(){var D=[].slice.call(arguments),L={},$;if(_(D,function(ue,pe){if(!pe){if(!b(ue))throw"Expected array as the first argument to durationsFormat.";$=ue}if(typeof ue=="string"||typeof ue=="function"){L.template=ue;return}if(typeof ue=="number"){L.precision=ue;return}v(ue)&&H(L,ue)}),!$||!$.length)return[];L.returnMomentTypes=!0;var Z=w($,function(ue){return ue.format(L)}),se=I(o,M(k(V(Z),"type"))),Y=L.largest;return Y&&(se=se.slice(0,Y)),L.returnMomentTypes=!1,L.outputTypes=se,w($,function(ue){return ue.format(L)})}function G(){var D=[].slice.call(arguments),L=H({},this.format.defaults),$=this.asMilliseconds(),Z=this.asMonths();typeof this.isValid=="function"&&this.isValid()===!1&&($=0,Z=0);var se=$<0,Y=e.duration(Math.abs($),"milliseconds"),ue=e.duration(Math.abs(Z),"months");_(D,function(We){if(typeof We=="string"||typeof We=="function"){L.template=We;return}if(typeof We=="number"){L.precision=We;return}v(We)&&H(L,We)});var pe={years:"y",months:"M",weeks:"w",days:"d",hours:"h",minutes:"m",seconds:"s",milliseconds:"S"},oe={escape:/\[(.+?)\]/,years:/\*?[Yy]+/,months:/\*?M+/,weeks:/\*?[Ww]+/,days:/\*?[Dd]+/,hours:/\*?[Hh]+/,minutes:/\*?m+/,seconds:/\*?s+/,milliseconds:/\*?S+/,general:/.+?/};L.types=o;var de=function(We){return y(o,function(an){return oe[an].test(We)})},ve=new RegExp(w(o,function(We){return oe[We].source}).join("|"),"g");L.duration=this;var Ae=typeof L.template=="function"?L.template.apply(L):L.template,Ce=L.outputTypes,Ge=L.returnMomentTypes,Ee=L.largest,Ne=[];Ce||(b(L.stopTrim)&&(L.stopTrim=L.stopTrim.join("")),L.stopTrim&&_(L.stopTrim.match(ve),function(We){var an=de(We);an==="escape"||an==="general"||Ne.push(an)}));var De=e.localeData();De||(De={}),_(ee(g),function(We){if(typeof g[We]=="function"){De[We]||(De[We]=g[We]);return}De["_"+We]||(De["_"+We]=g[We])}),_(ee(De._durationTimeTemplates),function(We){Ae=Ae.replace("_"+We+"_",De._durationTimeTemplates[We])});var Ue=L.userLocale||e.locale(),Re=L.useLeftUnits,je=L.usePlural,$e=L.precision,Le=L.forceLength,Xe=L.useGrouping,mt=L.trunc,fe=L.useSignificantDigits&&$e>0,be=fe?L.precision:0,ye=be,Oe=L.minValue,Me=!1,Ke=L.maxValue,gt=!1,ft=L.useToLocaleString,Bt=L.groupingSeparator,Ft=L.decimalSeparator,Kn=L.grouping;ft=ft&&(t||r);var Ut=L.trim;b(Ut)&&(Ut=Ut.join(" ")),Ut===null&&(Ee||Ke||fe)&&(Ut="all"),(Ut===null||Ut===!0||Ut==="left"||Ut==="right")&&(Ut="large"),Ut===!1&&(Ut="");var ln=function(We){return We.test(Ut)},Yn=/large/,jn=/small/,Hn=/both/,dn=/mid/,cr=/^all|[^sm]all/,Bn=/final/,Si=Ee>0||j([Yn,Hn,cr],ln),ir=j([jn,Hn,cr],ln),Mr=j([dn,cr],ln),ct=j([Bn,cr],ln),_n=w(Ae.match(ve),function(We,an){var tn=de(We);return We.slice(0,1)==="*"&&(We=We.slice(1),tn!=="escape"&&tn!=="general"&&Ne.push(tn)),{index:an,length:We.length,text:"",token:tn==="escape"?We.replace(oe.escape,"$1"):We,type:tn==="escape"||tn==="general"?null:tn}}),Oi={index:0,length:0,token:"",text:"",type:null},or=[];Re&&_n.reverse(),_(_n,function(We){if(We.type){(Oi.type||Oi.text)&&or.push(Oi),Oi=We;return}Re?Oi.text=We.token+Oi.text:Oi.text+=We.token}),(Oi.type||Oi.text)&&or.push(Oi),Re&&or.reverse();var bn=I(o,M(O(k(or,"type"))));if(!bn.length)return k(or,"text").join("");bn=w(bn,function(We,an){var tn=an+1===bn.length,Ze=!an,zt;We==="years"||We==="months"?zt=ue.as(We):zt=Y.as(We);var rn=Math.floor(zt),Rt=zt-rn,gn=y(or,function(Xt){return We===Xt.type});return Ze&&Ke&&zt>Ke&&(gt=!0),tn&&Oe&&Math.abs(L.duration.as(We))<Oe&&(Me=!0),Ze&&Le===null&&gn.length>1&&(Le=!0),Y.subtract(rn,We),ue.subtract(rn,We),{rawValue:zt,wholeValue:rn,decimalValue:tn?Rt:0,isSmallest:tn,isLargest:Ze,type:We,tokenLength:gn.length}});var Qn=mt?Math.floor:Math.round,Ho=function(We,an){var tn=Math.pow(10,an);return Qn(We*tn)/tn},ds=!1,$r=!1,co=function(We,an){var tn={useGrouping:Xe,groupingSeparator:Bt,decimalSeparator:Ft,grouping:Kn,useToLocaleString:ft};return fe&&(be<=0?(We.rawValue=0,We.wholeValue=0,We.decimalValue=0):(tn.maximumSignificantDigits=be,We.significantDigits=be)),gt&&!$r&&(We.isLargest?(We.wholeValue=Ke,We.decimalValue=0):(We.wholeValue=0,We.decimalValue=0)),Me&&!$r&&(We.isSmallest?(We.wholeValue=Oe,We.decimalValue=0):(We.wholeValue=0,We.decimalValue=0)),We.isSmallest||We.significantDigits&&We.significantDigits-We.wholeValue.toString().length<=0?$e<0?We.value=Ho(We.wholeValue,$e):$e===0?We.value=Qn(We.wholeValue+We.decimalValue):fe?(mt?We.value=Ho(We.rawValue,be-We.wholeValue.toString().length):We.value=We.rawValue,We.wholeValue&&(be-=We.wholeValue.toString().length)):(tn.fractionDigits=$e,mt?We.value=We.wholeValue+Ho(We.decimalValue,$e):We.value=We.wholeValue+We.decimalValue):fe&&We.wholeValue?(We.value=Math.round(Ho(We.wholeValue,We.significantDigits-We.wholeValue.toString().length)),be-=We.wholeValue.toString().length):We.value=We.wholeValue,We.tokenLength>1&&(Le||ds)&&(tn.minimumIntegerDigits=We.tokenLength,$r&&tn.maximumSignificantDigits<We.tokenLength&&delete tn.maximumSignificantDigits),!ds&&(We.value>0||Ut===""||y(Ne,We.type)||y(Ce,We.type))&&(ds=!0),We.formattedValue=f(We.value,tn,Ue),tn.useGrouping=!1,tn.decimalSeparator=".",We.formattedValueEn=f(We.value,tn,"en"),We.tokenLength===2&&We.type==="milliseconds"&&(We.formattedValueMS=f(We.value,{minimumIntegerDigits:3,useGrouping:!1},"en").slice(0,2)),We};if(bn=w(bn,co),bn=O(bn),bn.length>1){var gr=function(We){return y(bn,function(an){return an.type===We})},sr=function(We){var an=gr(We.type);!an||_(We.targets,function(tn){var Ze=gr(tn.type);!Ze||parseInt(an.formattedValueEn,10)===tn.value&&(an.rawValue=0,an.wholeValue=0,an.decimalValue=0,Ze.rawValue+=1,Ze.wholeValue+=1,Ze.decimalValue=0,Ze.formattedValueEn=Ze.wholeValue.toString(),$r=!0)})};_(s,sr)}return $r&&(ds=!1,be=ye,bn=w(bn,co),bn=O(bn)),Ce&&!(gt&&!L.trim)?(bn=w(bn,function(We){return y(Ce,function(an){return We.type===an})?We:null}),bn=O(bn)):(Si&&(bn=W(bn,function(We){return!We.isSmallest&&!We.wholeValue&&!y(Ne,We.type)})),Ee&&bn.length&&(bn=bn.slice(0,Ee)),ir&&bn.length>1&&(bn=J(bn,function(We){return!We.wholeValue&&!y(Ne,We.type)&&!We.isLargest})),Mr&&(bn=w(bn,function(We,an){return an>0&&an<bn.length-1&&!We.wholeValue?null:We}),bn=O(bn)),ct&&bn.length===1&&!bn[0].wholeValue&&!(!mt&&bn[0].isSmallest&&bn[0].rawValue<Oe)&&(bn=[])),Ge?bn:(_(or,function(We){var an=pe[We.type],tn=y(bn,function(Xt){return Xt.type===We.type});if(!(!an||!tn)){var Ze=tn.formattedValueEn.split(".");Ze[0]=parseInt(Ze[0],10),Ze[1]?Ze[1]=parseFloat("0."+Ze[1],10):Ze[1]=null;var zt=De.durationPluralKey(an,Ze[0],Ze[1]),rn=h(an,De),Rt=!1,gn={};_(De._durationLabelTypes,function(Xt){var wn=y(rn,function(_o){return _o.type===Xt.type&&_o.key===zt});wn&&(gn[wn.type]=wn.label,a(We.text,Xt.string)&&(We.text=We.text.replace(Xt.string,wn.label),Rt=!0))}),je&&!Rt&&(rn.sort(d),_(rn,function(Xt){if(gn[Xt.type]===Xt.label)return a(We.text,Xt.label)?!1:void 0;if(a(We.text,Xt.label))return We.text=We.text.replace(Xt.label,gn[Xt.type]),!1}))}}),or=w(or,function(We){if(!We.type)return We.text;var an=y(bn,function(Ze){return Ze.type===We.type});if(!an)return"";var tn="";return Re&&(tn+=We.text),(se&&gt||!se&&Me)&&(tn+="< ",gt=!1,Me=!1),(se&&Me||!se&&gt)&&(tn+="> ",gt=!1,Me=!1),se&&(an.value>0||Ut===""||y(Ne,an.type)||y(Ce,an.type))&&(tn+="-",se=!1),We.type==="milliseconds"&&an.formattedValueMS?tn+=an.formattedValueMS:tn+=an.formattedValue,Re||(tn+=We.text),tn}),or.join("").replace(/(,| |:|\.)*$/,"").replace(/^(,| |:|\.)*/,""))}function T(){var D=this.duration,L=function(Y){return D._data[Y]},$=y(this.types,L),Z=x(this.types,L);switch($){case"milliseconds":return"S __";case"seconds":case"minutes":return"*_MS_";case"hours":return"_HMS_";case"days":if($===Z)return"d __";case"weeks":return $===Z?"w __":(this.trim===null&&(this.trim="both"),"w __, d __, h __");case"months":if($===Z)return"M __";case"years":return $===Z?"y __":(this.trim===null&&(this.trim="both"),"y __, M __, d __");default:return this.trim===null&&(this.trim="both"),"y __, d __, h __, m __, s __"}}function Q(D){if(!D)throw"Moment Duration Format init cannot find moment instance.";D.duration.format=S,D.duration.fn.format=G,D.duration.fn.format.defaults={trim:null,stopTrim:null,largest:null,maxValue:null,minValue:null,precision:0,trunc:!1,forceLength:null,userLocale:null,usePlural:!0,useLeftUnits:!1,useGrouping:!0,useSignificantDigits:!1,template:T,useToLocaleString:!0,groupingSeparator:",",decimalSeparator:".",grouping:[3]},D.updateLocale("en",g)}var U=function(D,L,$){return D.toLocaleString(L,$)};t=B()&&C(U),n=t&&N(U);var F=function(D,L,$){if(typeof window<"u"&&window&&window.Intl&&window.Intl.NumberFormat)return window.Intl.NumberFormat(L,$).format(D)};return r=C(F),i=r&&N(F),Q(e),Q})});var Ske=ne((Dkn,Cke)=>{Cke.exports={jigsaw:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='192' viewBox='0 0 192 192'%3E%3Cpath fill='{{color}}' fill-opacity='{{opacity}}' d='M192 15v2a11 11 0 0 0-11 11c0 1.94 1.16 4.75 2.53 6.11l2.36 2.36a6.93 6.93 0 0 1 1.22 7.56l-.43.84a8.08 8.08 0 0 1-6.66 4.13H145v35.02a6.1 6.1 0 0 0 3.03 4.87l.84.43c1.58.79 4 .4 5.24-.85l2.36-2.36a12.04 12.04 0 0 1 7.51-3.11 13 13 0 1 1 .02 26 12 12 0 0 1-7.53-3.11l-2.36-2.36a4.93 4.93 0 0 0-5.24-.85l-.84.43a6.1 6.1 0 0 0-3.03 4.87V143h35.02a8.08 8.08 0 0 1 6.66 4.13l.43.84a6.91 6.91 0 0 1-1.22 7.56l-2.36 2.36A10.06 10.06 0 0 0 181 164a11 11 0 0 0 11 11v2a13 13 0 0 1-13-13 12 12 0 0 1 3.11-7.53l2.36-2.36a4.93 4.93 0 0 0 .85-5.24l-.43-.84a6.1 6.1 0 0 0-4.87-3.03H145v35.02a8.08 8.08 0 0 1-4.13 6.66l-.84.43a6.91 6.91 0 0 1-7.56-1.22l-2.36-2.36A10.06 10.06 0 0 0 124 181a11 11 0 0 0-11 11h-2a13 13 0 0 1 13-13c2.47 0 5.79 1.37 7.53 3.11l2.36 2.36a4.94 4.94 0 0 0 5.24.85l.84-.43a6.1 6.1 0 0 0 3.03-4.87V145h-35.02a8.08 8.08 0 0 1-6.66-4.13l-.43-.84a6.91 6.91 0 0 1 1.22-7.56l2.36-2.36A10.06 10.06 0 0 0 107 124a11 11 0 0 0-22 0c0 1.94 1.16 4.75 2.53 6.11l2.36 2.36a6.93 6.93 0 0 1 1.22 7.56l-.43.84a8.08 8.08 0 0 1-6.66 4.13H49v35.02a6.1 6.1 0 0 0 3.03 4.87l.84.43c1.58.79 4 .4 5.24-.85l2.36-2.36a12.04 12.04 0 0 1 7.51-3.11A13 13 0 0 1 81 192h-2a11 11 0 0 0-11-11c-1.94 0-4.75 1.16-6.11 2.53l-2.36 2.36a6.93 6.93 0 0 1-7.56 1.22l-.84-.43a8.08 8.08 0 0 1-4.13-6.66V145H11.98a6.1 6.1 0 0 0-4.87 3.03l-.43.84c-.79 1.58-.4 4 .85 5.24l2.36 2.36a12.04 12.04 0 0 1 3.11 7.51A13 13 0 0 1 0 177v-2a11 11 0 0 0 11-11c0-1.94-1.16-4.75-2.53-6.11l-2.36-2.36a6.93 6.93 0 0 1-1.22-7.56l.43-.84a8.08 8.08 0 0 1 6.66-4.13H47v-35.02a6.1 6.1 0 0 0-3.03-4.87l-.84-.43c-1.59-.8-4-.4-5.24.85l-2.36 2.36A12 12 0 0 1 28 109a13 13 0 1 1 0-26c2.47 0 5.79 1.37 7.53 3.11l2.36 2.36a4.94 4.94 0 0 0 5.24.85l.84-.43A6.1 6.1 0 0 0 47 84.02V49H11.98a8.08 8.08 0 0 1-6.66-4.13l-.43-.84a6.91 6.91 0 0 1 1.22-7.56l2.36-2.36A10.06 10.06 0 0 0 11 28 11 11 0 0 0 0 17v-2a13 13 0 0 1 13 13c0 2.47-1.37 5.79-3.11 7.53l-2.36 2.36a4.94 4.94 0 0 0-.85 5.24l.43.84A6.1 6.1 0 0 0 11.98 47H47V11.98a8.08 8.08 0 0 1 4.13-6.66l.84-.43a6.91 6.91 0 0 1 7.56 1.22l2.36 2.36A10.06 10.06 0 0 0 68 11 11 11 0 0 0 79 0h2a13 13 0 0 1-13 13 12 12 0 0 1-7.53-3.11l-2.36-2.36a4.93 4.93 0 0 0-5.24-.85l-.84.43A6.1 6.1 0 0 0 49 11.98V47h35.02a8.08 8.08 0 0 1 6.66 4.13l.43.84a6.91 6.91 0 0 1-1.22 7.56l-2.36 2.36A10.06 10.06 0 0 0 85 68a11 11 0 0 0 22 0c0-1.94-1.16-4.75-2.53-6.11l-2.36-2.36a6.93 6.93 0 0 1-1.22-7.56l.43-.84a8.08 8.08 0 0 1 6.66-4.13H143V11.98a6.1 6.1 0 0 0-3.03-4.87l-.84-.43c-1.59-.8-4-.4-5.24.85l-2.36 2.36A12 12 0 0 1 124 13a13 13 0 0 1-13-13h2a11 11 0 0 0 11 11c1.94 0 4.75-1.16 6.11-2.53l2.36-2.36a6.93 6.93 0 0 1 7.56-1.22l.84.43a8.08 8.08 0 0 1 4.13 6.66V47h35.02a6.1 6.1 0 0 0 4.87-3.03l.43-.84c.8-1.59.4-4-.85-5.24l-2.36-2.36A12 12 0 0 1 179 28a13 13 0 0 1 13-13zM84.02 143a6.1 6.1 0 0 0 4.87-3.03l.43-.84c.8-1.59.4-4-.85-5.24l-2.36-2.36A12 12 0 0 1 83 124a13 13 0 1 1 26 0c0 2.47-1.37 5.79-3.11 7.53l-2.36 2.36a4.94 4.94 0 0 0-.85 5.24l.43.84a6.1 6.1 0 0 0 4.87 3.03H143v-35.02a8.08 8.08 0 0 1 4.13-6.66l.84-.43a6.91 6.91 0 0 1 7.56 1.22l2.36 2.36A10.06 10.06 0 0 0 164 107a11 11 0 0 0 0-22c-1.94 0-4.75 1.16-6.11 2.53l-2.36 2.36a6.93 6.93 0 0 1-7.56 1.22l-.84-.43a8.08 8.08 0 0 1-4.13-6.66V49h-35.02a6.1 6.1 0 0 0-4.87 3.03l-.43.84c-.79 1.58-.4 4 .85 5.24l2.36 2.36a12.04 12.04 0 0 1 3.11 7.51A13 13 0 1 1 83 68a12 12 0 0 1 3.11-7.53l2.36-2.36a4.93 4.93 0 0 0 .85-5.24l-.43-.84A6.1 6.1 0 0 0 84.02 49H49v35.02a8.08 8.08 0 0 1-4.13 6.66l-.84.43a6.91 6.91 0 0 1-7.56-1.22l-2.36-2.36A10.06 10.06 0 0 0 28 85a11 11 0 0 0 0 22c1.94 0 4.75-1.16 6.11-2.53l2.36-2.36a6.93 6.93 0 0 1 7.56-1.22l.84.43a8.08 8.08 0 0 1 4.13 6.66V143h35.02z'%3E%3C/path%3E%3C/svg%3E")`,overcast:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80' width='80' height='80'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath d='M0 0h80v80H0V0zm20 20v40h40V20H20zm20 35a15 15 0 1 1 0-30 15 15 0 0 1 0 30z' opacity='.5'%3E%3C/path%3E%3Cpath d='M15 15h50l-5 5H20v40l-5 5V15zm0 50h50V15L80 0v80H0l15-15zm32.07-32.07l3.54-3.54A15 15 0 0 1 29.4 50.6l3.53-3.53a10 10 0 1 0 14.14-14.14zM32.93 47.07a10 10 0 1 1 14.14-14.14L32.93 47.07z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E")`,formalinvitation:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='18' viewBox='0 0 100 18'%3E%3Cpath fill='{{color}}' fill-opacity='{{opacity}}' d='M61.82 18c3.47-1.45 6.86-3.78 11.3-7.34C78 6.76 80.34 5.1 83.87 3.42 88.56 1.16 93.75 0 100 0v6.16C98.76 6.05 97.43 6 96 6c-9.59 0-14.23 2.23-23.13 9.34-1.28 1.03-2.39 1.9-3.4 2.66h-7.65zm-23.64 0H22.52c-1-.76-2.1-1.63-3.4-2.66C11.57 9.3 7.08 6.78 0 6.16V0c6.25 0 11.44 1.16 16.14 3.42 3.53 1.7 5.87 3.35 10.73 7.24 4.45 3.56 7.84 5.9 11.31 7.34zM61.82 0h7.66a39.57 39.57 0 0 1-7.34 4.58C57.44 6.84 52.25 8 46 8S34.56 6.84 29.86 4.58A39.57 39.57 0 0 1 22.52 0h15.66C41.65 1.44 45.21 2 50 2c4.8 0 8.35-.56 11.82-2z'%3E%3C/path%3E%3C/svg%3E")`,topography:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cpath fill='{{color}}' fill-opacity='{{opacity}}' d='M600 325.1v-1.17c-6.5 3.83-13.06 7.64-14.68 8.64-10.6 6.56-18.57 12.56-24.68 19.09-5.58 5.95-12.44 10.06-22.42 14.15-1.45.6-2.96 1.2-4.83 1.9l-4.75 1.82c-9.78 3.75-14.8 6.27-18.98 10.1-4.23 3.88-9.65 6.6-16.77 8.84-1.95.6-3.99 1.17-6.47 1.8l-6.14 1.53c-5.29 1.35-8.3 2.37-10.54 3.78-3.08 1.92-6.63 3.26-12.74 5.03a384.1 384.1 0 0 1-4.82 1.36c-2.04.58-3.6 1.04-5.17 1.52a110.03 110.03 0 0 0-11.2 4.05c-2.7 1.15-5.5 3.93-8.78 8.4a157.68 157.68 0 0 0-6.15 9.2c-5.75 9.07-7.58 11.74-10.24 14.51a50.97 50.97 0 0 1-4.6 4.22c-2.33 1.9-10.39 7.54-11.81 8.74a14.68 14.68 0 0 0-3.67 4.15c-1.24 2.3-1.9 4.57-2.78 8.87-2.17 10.61-3.52 14.81-8.2 22.1-4.07 6.33-6.8 9.88-9.83 12.99-.47.48-.95.96-1.5 1.48l-3.75 3.56c-1.67 1.6-3.18 3.12-4.86 4.9a42.44 42.44 0 0 0-9.89 16.94c-2.5 8.13-2.72 15.47-1.76 27.22.47 5.82.51 6.36.51 8.18 0 10.51.12 17.53.63 25.78.24 4.05.56 7.8.97 11.22h.9c-1.13-9.58-1.5-21.83-1.5-37 0-1.86-.04-2.4-.52-8.26-.94-11.63-.72-18.87 1.73-26.85a41.44 41.44 0 0 1 9.65-16.55c1.67-1.76 3.18-3.27 4.83-4.85.63-.6 3.13-2.96 3.75-3.57a71.6 71.6 0 0 0 1.52-1.5c3.09-3.16 5.86-6.76 9.96-13.15 4.77-7.42 6.15-11.71 8.34-22.44.86-4.21 1.5-6.4 2.68-8.6.68-1.25 1.79-2.48 3.43-3.86 1.38-1.15 9.43-6.8 11.8-8.72 1.71-1.4 3.26-2.81 4.7-4.3 2.72-2.85 4.56-5.54 10.36-14.67a156.9 156.9 0 0 1 6.1-9.15c3.2-4.33 5.9-7.01 8.37-8.07 3.5-1.5 7.06-2.77 11.1-4.02a233.84 233.84 0 0 1 7.6-2.2l2.38-.67c6.19-1.79 9.81-3.16 12.98-5.15 2.14-1.33 5.08-2.33 10.27-3.65l6.14-1.53c2.5-.63 4.55-1.2 6.52-1.82 7.24-2.27 12.79-5.06 17.15-9.05 4.05-3.72 9-6.2 18.66-9.9l4.75-1.82c1.87-.72 3.39-1.31 4.85-1.91 10.1-4.15 17.07-8.32 22.76-14.4 6.05-6.45 13.95-12.4 24.49-18.92 1.56-.96 7.82-4.6 14.15-8.33v-64.58c-4 8.15-8.52 14.85-12.7 17.9-2.51 1.82-5.38 4.02-9.04 6.92a1063.87 1063.87 0 0 0-6.23 4.98l-1.27 1.02a2309.25 2309.25 0 0 1-4.87 3.9c-7.55 6-12.9 10.05-17.61 13.19-3.1 2.06-3.86 2.78-8.06 7.13-5.84 6.07-11.72 8.62-29.15 10.95-11.3 1.5-20.04 4.91-30.75 11.07-1.65.94-7.27 4.27-6.97 4.1-2.7 1.58-4.69 2.69-6.64 3.66-5.63 2.8-10.47 4.17-15.71 4.17-17.13 0-41.44 11.51-51.63 22.83-12.05 13.4-31.42 27.7-45.25 31.16-7.4 1.85-11.85 7.05-14.04 14.69-1.26 4.4-1.58 8.28-1.58 13.82 0 .82.01.98.24 3.63.45 5.18.35 8.72-.77 13.26-1.53 6.2-4.89 12.6-10.59 19.43-13.87 16.65-22.88 46.58-22.88 71.68 0 2.39.02 4.26.06 8.75.12 10.8.1 15.8-.22 21.95-.56 11.18-2.09 20.73-5 29.3h-1.05c2.94-8.56 4.49-18.12 5.05-29.35.31-6.13.34-11.1.22-21.9-.04-4.48-.06-6.36-.06-8.75 0-25.32 9.07-55.47 23.12-72.32 5.6-6.72 8.88-12.99 10.38-19.03 1.09-4.4 1.18-7.85.74-12.93-.23-2.7-.24-2.86-.24-3.72 0-5.62.32-9.57 1.62-14.1 2.28-7.95 6.97-13.44 14.76-15.39 13.6-3.4 32.82-17.59 44.75-30.84C409 360.14 433.58 348.5 451 348.5c5.07 0 9.77-1.33 15.26-4.07 1.93-.96 3.9-2.05 6.58-3.62-.3.18 5.33-3.16 6.98-4.11 10.82-6.21 19.66-9.67 31.11-11.2 17.23-2.3 22.9-4.75 28.57-10.64 4.25-4.41 5.04-5.16 8.22-7.28 4.68-3.11 10.01-7.14 17.55-13.14a1113.33 1113.33 0 0 0 4.86-3.89l1.28-1.02a4668.54 4668.54 0 0 1 6.23-4.98c3.67-2.9 6.55-5.12 9.07-6.95 4.37-3.19 9.16-10.56 13.29-19.4v66.9zm0-116.23c-.62.01-1.27.06-1.95.13-6.13.63-13.83 3.45-21.83 7.45-3.64 1.82-8.46 2.67-14.17 2.71-4.7.04-9.72-.47-14.73-1.33-1.7-.3-3.26-.61-4.67-.93a31.55 31.55 0 0 0-3.55-.57 273.4 273.4 0 0 0-16.66-.88c-10.42-.16-17.2.74-17.97 2.73-.38.97.6 2.55 3.03 4.87 1.01.97 2.22 2.03 4.04 3.55a1746.07 1746.07 0 0 0 4.79 4.02c1.39 1.2 3.1 1.92 5.5 2.5.7.16.86.2 2.64.54 3.53.7 5.03 1.25 6.15 2.63 1.41 1.76 1.4 4.54-.15 8.88-2.44 6.83-5.72 10.05-10.19 10.33-3.63.23-7.6-1.29-14.52-5.06-4.53-2.47-6.82-7.3-8.32-15.26-.17-.87-.32-1.78-.5-2.86l-.43-2.76c-1.05-6.58-1.9-9.2-3.73-10.11-.81-.4-1.59-.74-2.36-1-2.27-.77-4.6-1.02-8.1-.92-2.29.07-14.7 1-13.77.93-20.55 1.37-28.8 5.05-37.09 14.99a133.07 133.07 0 0 0-4.25 5.44l-2.3 3.09-2.51 3.32c-4.1 5.36-7.06 8.48-10.39 11.12-.65.52-1.33 1.04-2.13 1.62l-4.11 2.94a106.8 106.8 0 0 0-5.16 3.99c-4.55 3.74-9.74 8.6-16.25 15.38-8.25 8.58-11.78 13.54-11.7 15.95.07 1.65 1.64 2.11 6.79 2.38 1.61.09 2.15.12 2.98.2 2.95.24 5.09.73 6.81 1.68 7.48 4.15 11.63 7.26 13.95 11.58 3.3 6.15.8 12.88-8.89 20.26-8.28 6.3-11.1 10.37-11.31 14.96-.06 1.17 0 1.93.26 4.43.69 6.47.25 10.65-2.8 17.42a44.23 44.23 0 0 1-4.16 7.53c-2.82 3.97-5.47 5.74-10.6 7.69-.43.16-3.34 1.23-4.27 1.59-1.8.68-3.38 1.36-5.01 2.14-4.18 2-8.4 4.6-13.1 8.24-8.44 6.51-13.23 14.56-15.98 25.06-1.1 4.2-1.55 6.81-2.8 15.21-1.26 8.6-2.17 12.64-4.08 16.55-2.1 4.28-11.93 26.59-12.97 28.88a382.7 382.7 0 0 1-6.37 13.41c-4.07 8.11-7.61 14.07-10.73 17.81-5.38 6.46-8.98 14.37-13.77 28.42a810.14 810.14 0 0 0-1.89 5.6c-1.8 5.35-2.96 8.6-4.26 11.85-6.13 15.32-25.43 26.31-46.46 26.31-11.2 0-20.58-2.74-31.02-8.55-5.6-3.13-4.55-2.42-22.26-14.54-14.33-9.8-17.7-10.73-20.47-6.9-.37.5-1.81 2.74-1.83 2.77a52.24 52.24 0 0 1-4.94 5.9c-.73.79-5.52 5.87-6.97 7.45-2.38 2.6-4.3 4.81-5.98 6.93a45.6 45.6 0 0 0-5.08 7.66c-1.29 2.57-1.9 5.25-2.66 10.6a997.6 997.6 0 0 1-.46 3.18h-1l.47-3.32c.77-5.45 1.4-8.2 2.75-10.9a46.54 46.54 0 0 1 5.2-7.84c1.7-2.14 3.63-4.38 6.03-6.98 1.45-1.59 6.24-6.68 6.96-7.46a51.58 51.58 0 0 0 4.84-5.78s1.47-2.26 1.86-2.8c3.25-4.5 7.08-3.44 21.84 6.67 17.67 12.08 16.62 11.38 22.19 14.48 10.3 5.73 19.5 8.43 30.53 8.43 20.65 0 39.57-10.77 45.54-25.69a219.7 219.7 0 0 0 4.24-11.8 6752.32 6752.32 0 0 0 1.88-5.6c4.83-14.16 8.47-22.14 13.96-28.73 3.05-3.66 6.56-9.57 10.6-17.61 1.97-3.93 4.04-8.31 6.35-13.38 1.03-2.28 10.88-24.61 12.98-28.91 1.85-3.79 2.75-7.76 4-16.25 1.24-8.44 1.7-11.07 2.81-15.32 2.8-10.7 7.71-18.94 16.33-25.6a73.18 73.18 0 0 1 13.29-8.35c1.66-.8 3.27-1.48 5.08-2.18.94-.36 3.86-1.43 4.28-1.59 4.95-1.88 7.44-3.55 10.14-7.33 1.35-1.9 2.68-4.3 4.06-7.37 2.97-6.58 3.39-10.59 2.72-16.9a27.13 27.13 0 0 1-.27-4.58c.22-4.94 3.21-9.24 11.7-15.7 9.33-7.11 11.66-13.34 8.62-19-2.2-4.09-6.25-7.12-13.55-11.17-1.57-.88-3.6-1.33-6.42-1.57-.8-.07-1.34-.1-2.95-.19-5.77-.3-7.63-.85-7.72-3.34-.1-2.81 3.5-7.87 11.97-16.69 6.53-6.8 11.75-11.69 16.33-15.45 1.79-1.47 3.42-2.72 5.2-4.03l4.12-2.94c.79-.58 1.46-1.08 2.1-1.59 3.26-2.6 6.16-5.65 10.21-10.94a383.2 383.2 0 0 0 2.5-3.32l2.31-3.09c1.8-2.39 3.04-4 4.29-5.48 8.47-10.17 16.98-13.96 37.27-15.3-.44.02 12-.9 14.32-.98 3.62-.1 6.05.16 8.46.98.8.27 1.62.62 2.47 1.04 2.27 1.14 3.17 3.87 4.27 10.85l.44 2.76c.17 1.07.33 1.97.5 2.83 1.44 7.69 3.62 12.29 7.8 14.57 6.76 3.68 10.6 5.15 13.99 4.94 4-.25 6.99-3.17 9.3-9.67 1.45-4.04 1.46-6.49.32-7.92-.9-1.12-2.28-1.62-5.57-2.27a55.8 55.8 0 0 1-2.67-.55c-2.54-.6-4.39-1.4-5.93-2.71a252.63 252.63 0 0 0-4.78-4.01 84.35 84.35 0 0 1-4.08-3.6c-2.73-2.6-3.86-4.43-3.28-5.95 1.02-2.64 7.82-3.54 18.93-3.37a230.56 230.56 0 0 1 16.73.88c2.76.39 3.2.49 3.68.6 1.4.3 2.95.62 4.62.91a82.9 82.9 0 0 0 14.56 1.32c5.56-.04 10.24-.86 13.73-2.6 8.1-4.05 15.89-6.9 22.17-7.56.7-.07 1.4-.11 2.05-.13v1zm0-100.94v1.5c-8.62 16.05-17.27 29.55-23.65 35.92-3.19 3.2-7.62 4.9-13.54 5.56-4.45.48-8.28.4-19.18-.2-9.91-.55-15.32-.44-20.52.78a84.05 84.05 0 0 1-15 2.11l-2.25.14c-12.49.75-19.37 1.78-32.72 5.74-4.5 1.33-9.27 2.49-14.3 3.48a246.27 246.27 0 0 1-32.6 3.97c-7.56.45-13.21.57-20.24.57-5.4 0-11.9 1.61-18 5.18-8.3 4.87-15.06 12.87-19.53 24.5a68.57 68.57 0 0 1-4.56 9.8c-3.6 6.2-6.92 8.99-13.38 12.18l-4.03 1.96a64.48 64.48 0 0 0-15.16 10.25c-8.2 7.33-13.72 16.63-22.54 35.6l-2.08 4.49c-7.3 15.7-11.5 23.3-17.35 29.87-7.7 8.66-20.25 14.42-40.31 20.08-4.37 1.23-19.04 5.08-19.24 5.13-6.92 1.87-11.68 3.34-15.63 4.92-10.55 4.22-18.71 10.52-36.38 26.52l-1.7 1.54c-8.58 7.76-13.41 11.9-18.81 15.88-3.95 2.9-8 5.67-12.97 8.91-2.06 1.34-10.3 6.6-12.33 7.94-11.52 7.5-18.53 13.04-24.62 20.08a62.01 62.01 0 0 0-6.44 8.85c-4.13 6.91-6.27 13.15-9.2 25.11l-1.54 6.26c-.6 2.45-1.15 4.54-1.72 6.58-2.97 10.7-6.9 17.36-14.78 26.91L69.6 491a148.51 148.51 0 0 0-4.19 5.3 23.9 23.9 0 0 0-3.44 6.28c-1.16 3.23-1.52 5.9-1.87 11.94-.58 10.05-1.42 15.04-4.63 22.67-1.57 3.72-5.66 14.02-6.41 15.8a73.46 73.46 0 0 1-3.57 7.4c-2.88 5.14-6.71 10.12-13.12 16.95-5.96 6.36-8.87 10.9-10.61 16a56.88 56.88 0 0 0-1.38 4.82l-.46 1.84h-1.03l.52-2.08c.52-2.09.92-3.49 1.4-4.9 1.8-5.25 4.78-9.9 10.84-16.36 6.35-6.78 10.13-11.7 12.97-16.77a72.5 72.5 0 0 0 3.52-7.29c.75-1.76 4.84-12.06 6.4-15.8 3.17-7.5 3.99-12.4 4.56-22.33.35-6.14.72-8.88 1.93-12.23a24.9 24.9 0 0 1 3.58-6.54c1.27-1.7 2.6-3.37 4.22-5.34l4.11-4.95c7.8-9.46 11.66-16 14.59-26.54.56-2.04 1.1-4.12 1.71-6.56l1.53-6.26c2.96-12.04 5.13-18.36 9.32-25.39 1.84-3.08 4-6.05 6.54-8.99 6.17-7.12 13.24-12.7 24.83-20.26 2.05-1.33 10.28-6.6 12.33-7.94 4.96-3.22 9-5.98 12.92-8.87 5.37-3.95 10.19-8.08 18.74-15.82l1.7-1.54c17.76-16.09 25.98-22.43 36.67-26.7 4-1.6 8.8-3.09 15.75-4.96.21-.06 14.87-3.9 19.22-5.13 19.9-5.61 32.32-11.31 39.85-19.78 5.76-6.48 9.93-14.02 17.18-29.64l2.09-4.5c8.87-19.07 14.44-28.46 22.77-35.9a65.48 65.48 0 0 1 15.38-10.4l4.04-1.97c6.3-3.1 9.47-5.77 12.96-11.77a67.6 67.6 0 0 0 4.48-9.67c4.56-11.84 11.47-20.02 19.97-25 6.25-3.66 12.93-5.32 18.5-5.32 7.01 0 12.65-.12 20.17-.57a245.3 245.3 0 0 0 32.47-3.96c5-.98 9.75-2.13 14.22-3.45 13.43-3.98 20.38-5.02 32.94-5.78l2.24-.14c5.76-.37 9.8-.9 14.85-2.09 5.31-1.25 10.79-1.35 22.6-.7 9.04.5 12.84.58 17.21.1 5.71-.62 9.94-2.26 12.95-5.26 6.44-6.45 15.3-20.37 24.35-36.72zm0 450.21c-1.28-4.6-2.2-10.55-3.33-20.25l-.24-2.04-.23-2.03c-1.82-15.7-3.07-21.98-5.55-24.47-2.46-2.46-3.04-5.03-2.52-8.64.1-.6.18-1.1.39-2.15.69-3.54.77-5.04.08-6.84-.91-2.38-3.31-4.41-7.79-6.26-5.08-2.09-6.52-4.84-4.89-8.44.66-1.45 1.79-3.02 3.52-5.01 1.04-1.2 5.48-5.96 5.08-5.53 6.15-6.7 8.98-11.34 8.98-16.48a15.2 15.2 0 0 1 6.5-12.89v1.26a14.17 14.17 0 0 0-5.5 11.63c0 5.47-2.93 10.29-9.24 17.16.38-.42-4.04 4.33-5.07 5.5-1.67 1.93-2.75 3.43-3.36 4.77-1.37 3.04-.23 5.22 4.36 7.1 4.71 1.95 7.32 4.16 8.34 6.83.78 2.04.7 3.67-.03 7.4-.2 1.03-.3 1.51-.38 2.09-.48 3.33.03 5.59 2.23 7.8 2.74 2.74 3.98 8.96 5.84 25.06l.24 2.03.23 2.04c.82 7.01 1.53 12.06 2.34 16.03v4.33zm0-62.16c-1.4-3.13-4.43-9.9-4.95-11.17-1.02-2.53-1.25-3.8-.91-5.18.2-.84 2.05-4.68 2.32-5.33a70.79 70.79 0 0 0 3.54-11.2v3.99a62.82 62.82 0 0 1-2.62 7.6c-.31.75-2.09 4.46-2.27 5.18-.28 1.12-.08 2.22.87 4.57.41 1.02 2.5 5.7 4.02 9.09v2.45zm0-85.09c-1.65 1.66-3.66 2.9-6.4 4.13-.25.1-13.97 5.47-20.4 8.43-9.35 4.32-16.7 5.9-23.03 5.25-5.08-.53-9.02-2.25-14.77-5.92l-3.2-2.07a77.4 77.4 0 0 0-5.44-3.27c-4.05-2.18-3.25-5.8 1.47-10.47 3.71-3.68 9.6-7.93 18.73-13.8l4.46-2.82c17.95-11.33 18.22-11.5 22.27-14.74 11.25-9 19.69-14.02 26.31-15.1v1.02c-6.37 1.1-14.62 6-25.69 14.86-4.1 3.28-4.34 3.44-22.36 14.8a652.4 652.4 0 0 0-4.45 2.83c-9.07 5.83-14.92 10.05-18.57 13.66-4.31 4.28-4.95 7.13-1.7 8.88 1.7.91 3.29 1.88 5.5 3.3l3.2 2.08c5.64 3.59 9.45 5.25 14.34 5.76 6.13.64 13.32-.9 22.52-5.15 6.46-2.98 20.18-8.35 20.4-8.44 3.04-1.37 5.1-2.71 6.81-4.69v1.47zm0-41.37v1c-6.56.26-12.11 3.13-19.71 9.08l-4.63 3.68a51.87 51.87 0 0 1-4.4 3.14c-.82.52-5.51 3.33-6.22 3.76-3.31 2-6.15 3.8-8.87 5.6a112.61 112.61 0 0 0-8.16 5.92c-4.61 3.72-7.4 6.9-7.97 9.35-.63 2.67 1.48 4.53 7.05 5.46 10.7 1.78 20.92-.05 30.45-4.65a61.96 61.96 0 0 0 17.1-12.2 41.8 41.8 0 0 0 5.36-7.42v1.92a38.94 38.94 0 0 1-4.64 6.19 62.95 62.95 0 0 1-17.39 12.41c-9.7 4.68-20.13 6.55-31.05 4.73-6.06-1-8.65-3.29-7.85-6.67.64-2.74 3.53-6.05 8.31-9.9 2.35-1.9 5.1-3.88 8.24-5.97 2.73-1.82 5.58-3.61 8.9-5.62.72-.44 5.4-3.24 6.22-3.75 1.26-.8 2.6-1.76 4.3-3.09.8-.62 3.9-3.1 4.63-3.67 7.77-6.1 13.49-9.04 20.33-9.3zm0-154.6v1c-1.75-.24-4.3.23-7.82 1.55-10.01 3.75-13.8 5.07-19.15 6.76-1.78.56-2.63.83-3.87 1.24-1.48.5-3.16.76-6.74 1.16a1550.34 1550.34 0 0 0-2.64.3c-7.8.94-11.28 2.47-11.28 6.07 0 4.45 2.89 13.18 7.96 25.81a57.34 57.34 0 0 1 2.33 7.6 258.32 258.32 0 0 1 .84 3.46c1.86 7.62 3.17 10.71 5.56 11.67 2.21.88 4.7.6 7.47-.72 3.48-1.69 7.22-4.94 11.2-9.47 1.52-1.7 2.97-3.49 4.59-5.57l3.16-4.1c2.59-3.23 6.07-12.21 8.39-20.23v3.45c-2.29 7.2-5.27 14.5-7.61 17.41-.44.55-2.67 3.46-3.15 4.09-1.63 2.1-3.1 3.9-4.62 5.62-4.08 4.61-7.9 7.94-11.53 9.7-2.99 1.44-5.77 1.75-8.28.74-2.84-1.13-4.2-4.34-6.15-12.35a2097.48 2097.48 0 0 1-.84-3.46c-.8-3.2-1.47-5.45-2.28-7.46-5.14-12.8-8.04-21.55-8.04-26.19 0-4.37 3.84-6.06 12.16-7.07a160.9 160.9 0 0 1 2.65-.3c3.5-.39 5.15-.64 6.53-1.1 1.26-.42 2.1-.7 3.88-1.26 5.34-1.68 9.11-3 19.1-6.74 3.53-1.32 6.22-1.84 8.18-1.61zM0 292c10.13-11.31 18.13-23.2 23.07-35.39 3.3-8.14 6.09-16.12 10.81-30.55l1.59-4.84c6.53-19.94 10.11-29.82 14.77-39.56 6.07-12.72 12.55-21.18 20.27-25.54 6.66-3.76 10.2-7.86 12.22-13.15a46.6 46.6 0 0 0 1.86-6.58c1.23-5.2 2.05-7.59 3.93-10.36 2.45-3.62 6.27-6.53 12.1-8.96 15.78-6.58 16.73-7.04 18.05-9.01.65-.98.83-2.15.74-4.51-.03-.73-.23-3.82-.24-4A93.8 93.8 0 0 1 119 94c0-10.04.18-11.37 2.37-13.15.52-.42 1.13-.8 2.07-1.3.27-.14 2.18-1.12 2.84-1.48a68.4 68.4 0 0 0 9.12-5.87c2.06-1.54 2.64-2.14 8.01-7.93 3.78-4.09 6.21-6.36 8.96-8.12 3.64-2.33 7.2-3.12 10.9-2.11 4.4 1.2 10.81 2 18.78 2.46 6.9.4 12.9.5 21.95.5 4.87 0 8.97.47 15.4 1.57 7.77 1.33 9.3 1.54 12.38 1.54 4.05 0 7.43-.88 10.68-2.95 5.06-3.22 8.11-4.67 11.2-5.2 3.62-.64 4.77-.46 16.55 2.06 17.26 3.7 30.85 1.36 41.06-9.7 5.1-5.53 5.48-8.9 3.48-14.8-.83-2.42-1.03-3.1-1.17-4.3-.29-2.52.5-4.71 2.71-6.93 2.65-2.65 4.72-9.17 6.22-18.29h2.03c-1.56 9.71-3.77 16.65-6.83 19.7-1.79 1.8-2.36 3.39-2.14 5.28.11 1 .3 1.63 1.07 3.9 2.22 6.53 1.76 10.66-3.9 16.8-10.77 11.66-25.07 14.13-42.95 10.3-11.42-2.45-12.55-2.62-15.78-2.06-2.77.48-5.62 1.84-10.47 4.92a20.93 20.93 0 0 1-11.76 3.27c-3.25 0-4.81-.22-12.73-1.57C212.74 59.46 208.73 59 204 59c-9.1 0-15.11-.1-22.07-.5-8.09-.47-14.62-1.29-19.2-2.54-5.62-1.53-10.17 1.38-17.85 9.66-5.5 5.94-6.08 6.53-8.28 8.18a70.38 70.38 0 0 1-9.38 6.03c-.68.37-2.58 1.35-2.84 1.49-.84.44-1.35.76-1.75 1.08C121.16 83.6 121 84.8 121 94c0 1.85.06 3.54.17 5.44 0 .17.2 3.28.24 4.03.1 2.75-.13 4.29-1.08 5.71-1.67 2.5-2.27 2.8-18.95 9.74-5.48 2.29-8.99 4.96-11.2 8.24-1.71 2.51-2.47 4.73-3.64 9.7-.83 3.5-1.21 4.92-1.94 6.83-2.18 5.73-6.05 10.19-13.1 14.18-7.3 4.12-13.55 12.28-19.46 24.66-4.6 9.64-8.17 19.46-14.67 39.32l-1.58 4.84c-4.75 14.47-7.54 22.48-10.86 30.69-5.28 13.01-13.95 25.65-24.93 37.6v-2.97zm0 78v-.5l1-.01c6.32 0 7.47 5.2 4.6 13.36a60.36 60.36 0 0 1-5.6 11.3v-1.92a57.76 57.76 0 0 0 4.65-9.72c2.69-7.6 1.71-12.02-3.65-12.02-.34 0-.67 0-1 .02v-46.59a340.96 340.96 0 0 0 13.71-8.34c13.66-9.46 29.79-37.6 29.79-53.59 0-18.1 21.57-72.64 32.23-79.42 12.71-8.09 32.24-27.96 35.8-37.75 1.93-5.3 5.5-7.27 14.42-9.37 6.15-1.44 8.64-2.42 10.67-4.79 1.5-1.74 2.72-4.79 4.33-10.3.23-.78 1.9-6.68 2.43-8.46 3.62-12.08 7.3-18.49 13.47-20.39 2.5-.76 3.03-.98 9.74-3.7 7.49-3.03 11.97-4.43 17.12-4.92 6.75-.65 13.13.75 19.55 4.67 5.43 3.32 12.19 4.72 20.17 4.56 6.03-.12 12.2-1.07 19.83-2.8 1.82-.4 7.38-1.74 8.26-1.94 2.69-.6 4.34-.89 5.48-.89 4.97 0 8.93-.05 14.2-.27 7.9-.32 15.56-.92 22.75-1.88 8.5-1.14 15.9-2.73 21.88-4.82 18.9-6.62 32.64-18.3 33.67-27.59.29-2.56.4-2.96 2.79-11.11 2.33-7.95 3.21-12.93 2.72-18.23-.2-2.24-.69-4.38-1.48-6.42-1.5-3.92-2.63-9.4-3.43-16.18h.9c.77 6.47 1.89 11.72 3.47 15.82a24.93 24.93 0 0 1 1.54 6.69c.5 5.46-.4 10.54-2.77 18.6-2.36 8.06-2.47 8.47-2.74 10.95-1.09 9.75-15.1 21.68-34.33 28.41-6.06 2.12-13.52 3.72-22.09 4.87-7.22.96-14.92 1.57-22.83 1.89-5.3.21-9.27.27-14.25.27-1.04 0-2.64.27-5.26.87-.87.2-6.43 1.53-8.26 1.94-7.68 1.73-13.92 2.7-20.03 2.82-8.15.17-15.1-1.27-20.71-4.7-6.23-3.81-12.4-5.16-18.93-4.54-5.04.48-9.44 1.86-16.84 4.86-6.75 2.74-7.29 2.95-9.82 3.73-5.73 1.76-9.28 7.96-12.81 19.72-.53 1.77-2.2 7.66-2.43 8.46-1.66 5.65-2.91 8.78-4.53 10.67-2.22 2.58-4.84 3.62-12.01 5.3-7.8 1.83-11.13 3.66-12.9 8.54-3.65 10.04-23.32 30.06-36.2 38.25C65.94 190 44.5 244.2 44.5 262c0 16.34-16.3 44.78-30.22 54.41-2.14 1.48-8.24 5.12-14.28 8.68v-1.16 46.09zm0-173.7v-1.11c7.42-3.82 14.55-10.23 21.84-18.98 3.8-4.56 14.21-18.78 15.79-20.55 1.8-2.04 4.06-3.96 7.42-6.45 1.08-.8 4.92-3.57 5.49-3.99 9.36-6.85 14-11.96 15.98-19.36.8-2.98 1.54-6.78 2.46-12.3.23-1.44 2-12.46 2.56-15.79 2.87-16.77 5.73-26.79 10.07-32.1C92.46 52.43 101.5 38.13 101.5 33c0-2.54.34-3.35 6.05-15.71.68-1.49 1.25-2.74 1.77-3.93 2.5-5.75 3.9-10.04 4.14-13.36h1c-.23 3.48-1.66 7.87-4.23 13.76-.52 1.2-1.09 2.45-1.78 3.95-5.54 12.01-5.95 12.99-5.95 15.29 0 5.47-9.09 19.84-20.11 33.31-4.2 5.12-7.03 15.06-9.86 31.64-.57 3.33-2.33 14.33-2.57 15.78-.92 5.56-1.67 9.38-2.48 12.4-2.05 7.68-6.82 12.93-16.35 19.91l-5.49 3.98c-3.3 2.45-5.51 4.34-7.27 6.31-1.53 1.73-11.94 15.93-15.76 20.53-7.52 9.02-14.88 15.6-22.61 19.46zm0 361.83v-4.33c.48 2.36 1 4.35 1.6 6.15 2 6.03 4.6 8.26 8.19 6.59C28.76 557.69 43.5 542.4 43.5 527c0-16.2 6.37-31.99 17.1-46.3 1.88-2.5 3.66-4.4 5.53-6 .73-.62 1.45-1.18 2.3-1.8l2-1.43c3.68-2.68 5.32-5.28 7.08-12.59.75-3.07 1.38-5.02 4.2-13.26l.63-1.88c3.24-9.58 4.56-14.97 4.17-18.65-.48-4.43-3.8-5.23-11.3-1.64a81.12 81.12 0 0 1-9.15 3.7c-13.89 4.67-26.96 5.8-42.66 5.42l-1.95-.05-1.45-.02a39.8 39.8 0 0 0-15.05 2.96A21.81 21.81 0 0 0 0 438.37v-1.26a23.55 23.55 0 0 1 4.55-2.57 40.77 40.77 0 0 1 16.92-3.02l1.95.05c15.6.38 28.57-.75 42.32-5.37a80.12 80.12 0 0 0 9.04-3.65c8.04-3.84 12.16-2.85 12.72 2.43.42 3.89-.92 9.34-4.21 19.08l-.64 1.88c-2.8 8.2-3.43 10.15-4.16 13.18-1.82 7.52-3.59 10.34-7.47 13.16l-2 1.43c-.84.6-1.54 1.15-2.25 1.75a35.45 35.45 0 0 0-5.37 5.84c-10.61 14.15-16.9 29.74-16.9 45.7 0 15.88-15 31.45-34.29 40.45-4.3 2.01-7.39-.66-9.56-7.18-.23-.68-.44-1.39-.65-2.13zm0-62.16v-2.45l1.46 3.27c2.1 4.8 3.46 10.33 4.26 16.77.66 5.3.84 9.3 1.04 18.5.2 9.32.5 12.75 1.63 15.05 1.28 2.6 3.67 2.35 8.29-1.5 17.14-14.3 21.82-22.9 21.82-38.62 0-7.17 1.1-12.39 3.7-17.68 2.27-4.67 3.65-6.62 13.4-19.62a69.8 69.8 0 0 1 7.6-8.79 44.76 44.76 0 0 1 3.54-3.06c.38-.3.64-.52.89-.74a10.47 10.47 0 0 0 2.63-3.32 35.78 35.78 0 0 0 2.26-5.94l.37-1.2.36-1.15c.29-.91.48-1.55.66-2.16.45-1.53.74-2.68.91-3.66.38-2.2.12-3.49-.85-4.15-2.35-1.61-9.28-.24-23.8 4.94-9.54 3.4-16.12 4.17-27.85 4.26-7.71.06-10.43.4-13.25 2.12-3.48 2.12-5.84 6.4-7.58 14.26-.5 2.2-.99 4.19-1.49 5.98v-3.98l.51-2.22c1.8-8.1 4.28-12.6 8.04-14.9 3.04-1.85 5.86-2.2 13.77-2.26 11.61-.09 18.1-.84 27.51-4.2 14.93-5.32 21.95-6.71 24.7-4.83 1.38.94 1.71 2.6 1.28 5.15a33.69 33.69 0 0 1-.94 3.78l-.66 2.17-.36 1.15-.37 1.2a36.64 36.64 0 0 1-2.33 6.1c-.8 1.53-1.61 2.52-2.86 3.61l-.92.77-1.02.83c-.9.74-1.65 1.4-2.47 2.18a68.84 68.84 0 0 0-7.48 8.66c-9.7 12.93-11.07 14.87-13.31 19.46-2.52 5.15-3.59 10.22-3.59 17.24 0 16.04-4.82 24.91-22.18 39.38-5.04 4.2-8.18 4.55-9.83 1.18-1.22-2.5-1.52-5.94-1.73-15.47-.2-9.16-.38-13.15-1.03-18.4-.79-6.34-2.12-11.8-4.19-16.49L0 495.98zM379.27 0h1.04l1.5 5.26c3.28 11.56 4.89 19.33 5.26 27.8.49 11.01-1.52 21.26-6.63 31.17-7.8 15.13-20.47 26.5-36.22 34.1-12.38 5.96-26.12 9.17-36.22 9.17-6.84 0-17.24 1.38-37.27 4.62l-2.27.37c-24.5 3.99-31.65 5-37.46 5-3.49 0-4.08-.08-19.54-2.8-3.56-.64-6.32-1.1-9-1.5-20.23-2.96-31-1.2-31.96 7.86-.1.85-.18 1.72-.29 2.81l-.27 2.73c-1.1 10.9-2.02 15.73-4.31 19.96-2.9 5.34-7.77 7.95-15.63 7.95-10.2 0-12.92.6-15.5 3.17.52-.51-5.03 5.85-8.16 8.7-2.75 2.5-14.32 12.55-15.77 13.83a341.27 341.27 0 0 0-6.54 5.92c-6.97 6.49-11.81 11.76-14.6 16.15-5.92 9.3-10.48 18.04-11.69 24.08-1.66 8.3 3.67 9.54 19.02 1.21a626.23 626.23 0 0 1 44.54-21.9c3.5-1.56 14.04-6.2 15.68-6.95 5.05-2.25 8.3-3.8 10.78-5.15l1.95-1.07 2.18-1.18c1.76-.94 3.38-1.76 5-2.55 18.1-8.72 34.48-10.46 50.33-1.2 22.89 13.34 38.28 37.02 38.28 56.44 0 19.12-.73 25.13-5.18 33.2a45.32 45.32 0 0 1-4.94 7.12c-6.47 7.77-11.81 16.2-12.76 21.27-1.2 6.34 4.69 7.03 20.17-.05 13.31-6.08 22.4-14.95 28.5-26.32a80.51 80.51 0 0 0 6.1-15.13c.9-2.98 3.17-11.65 3.41-12.48a29.02 29.02 0 0 1 1.75-4.83c7.47-14.93 21.09-30.5 36.25-37.24 7.61-3.38 13-9.65 19.4-20.79.84-1.48 4.26-7.64 5.14-9.17 3.52-6.1 6.22-9.7 9.37-11.98 10.15-7.4 28.7-11.1 50.29-11.1 7.52 0 16.54-1.24 27.51-3.58a420.1 420.1 0 0 0 14.96-3.52c-1.3.33 15.54-3.98 19.42-4.89 14.15-3.33 41.07-5.01 64.11-5.01 17.36 0 27.82-9.23 38.53-38.67 6.62-18.21 6.62-26.37 2.69-34.35l-1.18-2.37A13.36 13.36 0 0 1 587.5 58c0-4.03 0-4.01 2.5-24.56.46-3.73.8-6.74 1.12-9.64.9-8.45 1.38-15.2 1.38-20.8 0-.94-.02-1.94-.04-3h1c.03 1.06.04 2.06.04 3 0 5.65-.48 12.43-1.39 20.9-.3 2.91-.66 5.93-1.11 9.66-2.5 20.45-2.5 20.47-2.5 24.44 0 1.97.45 3.57 1.45 5.68.24.51 1.16 2.35 1.17 2.36 4.06 8.24 4.06 16.68-2.65 35.13-10.84 29.8-21.63 39.33-39.47 39.33-22.96 0-49.83 1.68-63.89 4.99-3.86.9-20.69 5.2-19.4 4.88a421.05 421.05 0 0 1-14.99 3.53c-11.04 2.35-20.11 3.6-27.72 3.6-21.4 0-39.76 3.67-49.7 10.9-3 2.19-5.64 5.7-9.1 11.68-.87 1.52-4.29 7.68-5.14 9.17-6.49 11.3-12 17.71-19.86 21.2-14.9 6.63-28.38 22.03-35.75 36.77a28.17 28.17 0 0 0-1.69 4.67c-.23.8-2.5 9.49-3.4 12.5a81.48 81.48 0 0 1-6.19 15.3c-6.2 11.56-15.44 20.58-28.96 26.76-16.1 7.36-23 6.55-21.58-1.04 1-5.29 6.4-13.83 12.99-21.73a44.33 44.33 0 0 0 4.82-6.96c4.35-7.88 5.06-13.77 5.06-32.72 0-19.04-15.19-42.4-37.72-55.55-15.57-9.08-31.62-7.38-49.45 1.21a132.9 132.9 0 0 0-7.14 3.71l-1.95 1.07a158.83 158.83 0 0 1-10.85 5.19c-1.65.74-12.18 5.38-15.69 6.95a625.25 625.25 0 0 0-44.46 21.86c-15.95 8.66-22.37 7.16-20.48-2.29 1.24-6.2 5.83-15.02 11.82-24.42 2.85-4.48 7.74-9.8 14.77-16.34 1.98-1.85 4.12-3.79 6.56-5.94 1.46-1.29 13.02-11.33 15.75-13.82 3.09-2.8 8.6-9.14 8.14-8.67 2.82-2.82 5.75-3.46 16.2-3.46 7.5 0 12.04-2.43 14.75-7.42 2.2-4.07 3.11-8.84 4.2-19.59l.26-2.73.3-2.81c.56-5.42 4.47-8.5 11.23-9.6 5.44-.88 12.51-.51 21.86.86 2.7.4 5.47.86 9.04 1.49 15.33 2.7 15.96 2.8 19.36 2.8 5.73 0 12.9-1.03 37.3-5l2.27-.36c20.1-3.26 30.52-4.64 37.43-4.64 9.95 0 23.54-3.18 35.78-9.08 15.57-7.5 28.09-18.73 35.78-33.65 5.02-9.75 7-19.82 6.51-30.67-.37-8.37-1.96-16.08-5.23-27.57L379.27 0zm13.68 0h1.02c.78 3.9 1.92 8.7 3.51 14.88 3.63 14.05 3.06 27.03-.75 38.77a61 61 0 0 1-11.35 20.68 138.36 138.36 0 0 1-19.32 18.77c-11.32 9.02-23.36 15.49-35.95 18.39a258.63 258.63 0 0 1-22.57 4.07c-3.17.44-6.36.85-10.3 1.32l-9.39 1.12c-11.53 1.41-17.45 2.55-21.64 4.46-9.28 4.21-28.35 6.04-49.21 6.04-1.37 0-2.8-.12-4.3-.35-2.62-.41-5-1.03-9.14-2.29-7.34-2.21-9.63-2.75-12.63-2.56-3.9.23-6.63 2.29-8.47 6.89-1.86 4.66-2.42 7.53-3.34 14.98-1.1 8.98-2.87 12.12-9.97 14.3a40.12 40.12 0 0 0-6.8 2.66c-.63.33-1.16.64-1.76 1.02l-1.34.86c-1.9 1.14-3.86 1.49-9.25 1.49-3.2 0-8.83-.55-9.51-.39-1.22.28-.75-.14-7.14 6.24-1.5 1.5-3.49 3.18-6.32 5.37-1.52 1.18-7.16 5.43-7.94 6.03-4.96 3.78-8.33 6.6-11.06 9.38-4.88 4.98-6.85 9.15-5.56 12.7 1.34 3.67 4.07 4.42 8.9 2.82a55.72 55.72 0 0 0 7.77-3.48c1.5-.77 7.78-4.13 9.37-4.96a116.8 116.8 0 0 1 12.31-5.68 162.2 162.2 0 0 0 11.04-4.84c2.04-.97 10.74-5.16 13-6.22 4.41-2.1 8.1-3.78 11.65-5.29 17.14-7.3 29.32-9.9 37.67-6.65l5.43 2.1c2.3.88 4.17 1.62 6.02 2.38a150.9 150.9 0 0 1 13.07 6c18.34 9.63 30.35 22.13 34.79 39.87 6.96 27.85 3.6 45.53-8.08 62.4-3.97 5.75-3.52 9.2.06 8.97 4.14-.28 10.21-4.95 15.11-12.52 3.1-4.8 5.1-10.45 8.05-21.53l1.69-6.35c.66-2.47 1.24-4.52 1.83-6.5 4.93-16.56 11-27.28 21.56-34.76 7.15-5.06 23.73-15.5 25.48-16.75 6.74-4.81 10.53-9.44 14.34-18 7.74-17.44 21.09-24.34 44.47-24.34 9.36 0 17.91-1.13 29.53-3.49a624.86 624.86 0 0 0 6.2-1.28c2.4-.5 4.07-.84 5.66-1.13 4.03-.74 7.04-1.1 9.61-1.1 4.44 0 9.39-1 31.39-5.99l2.95-.66c16.34-3.67 25.64-5.35 31.66-5.35 1.54 0 2.4.01 6.4.1 7.8.15 12.27.13 17.33-.2 16.41-1.06 26.73-5.36 29.8-14.56a87.1 87.1 0 0 1 3.55-8.83c-.15.31 2.29-4.96 2.9-6.38 5.38-12.3 5.57-21.92-1.44-39.44a86.4 86.4 0 0 1-5.26-20.72c-1.61-11.98-1.38-23.14.1-40.35l.2-2.12h1l-.2 2.2c-1.48 17.15-1.7 28.24-.11 40.14a85.4 85.4 0 0 0 5.2 20.47c7.1 17.78 6.91 27.67 1.43 40.22-.62 1.43-3.06 6.72-2.91 6.4a86.17 86.17 0 0 0-3.52 8.73c-3.23 9.72-13.9 14.15-30.68 15.24-5.1.33-9.58.35-17.42.2-3.98-.09-4.84-.1-6.37-.1-5.91 0-15.18 1.67-31.44 5.32l-2.95.67c-22.16 5.02-27.05 6.01-31.61 6.01-2.5 0-5.45.36-9.43 1.09-1.58.29-3.25.62-5.64 1.11a4894.21 4894.21 0 0 0-6.2 1.29c-11.68 2.37-20.3 3.51-29.73 3.51-23.02 0-36 6.71-43.53 23.66-3.9 8.8-7.82 13.58-14.7 18.5-1.78 1.27-18.36 11.7-25.48 16.75-10.34 7.32-16.3 17.87-21.19 34.23-.58 1.96-1.15 4-1.82 6.47l-1.69 6.35c-2.98 11.18-5 16.9-8.17 21.81-5.05 7.81-11.37 12.68-15.89 12.98-4.7.31-5.3-4.23-.94-10.53 11.52-16.64 14.82-34.03 7.92-61.6-4.35-17.42-16.16-29.72-34.27-39.22-4-2.1-8.2-4-12.99-5.97-1.84-.75-3.7-1.49-6-2.38l-5.43-2.08c-8.03-3.12-20.02-.58-36.92 6.63-3.52 1.5-7.21 3.19-11.61 5.27l-13 6.22c-4.71 2.22-8.16 3.75-11.11 4.88a115.87 115.87 0 0 0-12.21 5.63c-1.58.83-7.86 4.18-9.37 4.96a56.55 56.55 0 0 1-7.9 3.54c-5.3 1.75-8.62.85-10.17-3.43-1.46-4.02.66-8.5 5.8-13.74 2.75-2.82 6.16-5.66 11.15-9.48.79-.6 6.43-4.85 7.94-6.02a66.96 66.96 0 0 0 6.23-5.28c6.74-6.74 6.1-6.16 7.61-6.51.87-.2 6.69.36 9.74.36 5.22 0 7.03-.32 8.74-1.35l1.31-.84c.62-.4 1.18-.72 1.84-1.07a41.07 41.07 0 0 1 6.96-2.72c6.64-2.04 8.22-4.84 9.28-13.47.93-7.53 1.5-10.47 3.4-15.24 1.99-4.95 5.04-7.26 9.34-7.51 3.17-.2 5.5.35 12.97 2.6a63.54 63.54 0 0 0 9.02 2.26c1.45.22 2.83.34 4.14.34 20.71 0 39.7-1.82 48.8-5.96 4.32-1.96 10.29-3.1 21.93-4.53l9.4-1.12c3.92-.48 7.11-.88 10.27-1.32 8.16-1.14 15.4-2.43 22.49-4.06 12.42-2.86 24.33-9.26 35.55-18.2a137.4 137.4 0 0 0 19.18-18.64 60.02 60.02 0 0 0 11.15-20.32c3.76-11.57 4.32-24.36.75-38.23A284.86 284.86 0 0 1 392.95 0zM506.7 0h1.26c-.5.66-.9 1.18-1.17 1.51-3.95 4.96-6.9 7.92-9.82 9.57A10.02 10.02 0 0 1 492 12.5c-2.38 0-4.24.67-6.71 2.21l-2.65 1.71c-4.38 2.8-8.01 4.08-13.64 4.08-5.6 0-9.99-1.26-16.08-4.05a202.63 202.63 0 0 1-2.3-1.06l-2.18-.98c-1.6-.7-2.92-1.17-4.17-1.48a13.42 13.42 0 0 0-3.27-.43c-2.3 0-4.3-.68-11-3.37l-1.56-.62c-5-1.97-8.1-2.82-10.52-2.66-2.93.2-4.42 2.03-4.42 6.15 0 20.76-5.21 50.42-12.15 57.35-7.58 7.59-26.55 23.7-34.06 29.06-13.16 9.4-31.17 20.2-44.11 25.06a106.87 106.87 0 0 1-13.32 4.03c-3.28.78-6.6 1.43-11.25 2.24-.53.1-8.8 1.5-11.5 1.99-4.86.87-9.3 1.74-14 2.76-20.62 4.48-25.07 5.01-38.11 5.01-2.49 0-2.9-.07-14.05-2-2.42-.42-4.31-.73-6.15-1-8.11-1.19-13.83-1.36-17.64-.2-4.54 1.4-5.93 4.65-3.7 10.52 2.02 5.28 4.84 8.61 8.84 10.74 3.26 1.74 6.75 2.6 13.82 3.71 9.42 1.48 10.94 1.75 15.5 2.92a78.2 78.2 0 0 1 18.62 7.37c8.3 4.58 14.58 11.5 19.98 20.89 2.73 4.73 9.46 19.33 10.54 21.19 3.4 5.85 6.26 6.63 10.89 2 4.95-4.94 10.35-8.37 21.13-14.06.47-.25 2.06-1.1 2.12-1.12 7.98-4.21 11.92-6.51 15.87-9.54 5.11-3.9 8.66-8.1 10.77-13.11 8.52-20.24 20.75-33.31 32.46-33.31l5.5.03c10.53.08 17.35.02 24.9-.31 13.66-.62 23.78-2.09 29.39-4.67 5.85-2.7 13.42-5.49 24.18-9.02 3.46-1.14 6.29-2.05 12.7-4.1 7.7-2.45 11.08-3.54 15.17-4.9a1059.43 1059.43 0 0 1 11.33-3.72c3.67-1.2 5.96-2 8.03-2.78a59.88 59.88 0 0 0 6.66-2.94c1.87-.98 3.76-2.1 5.86-3.5 3.48-2.33 6.15-3.13 12.04-4.13l1.15-.2c5.71-1.01 9-2.3 12.76-5.63 7.82-6.96 8.58-23.18 3.84-44.52-1.7-7.67-2.1-19.28-1.57-35.47A837.22 837.22 0 0 1 546.76 0h1l-.15 3.06c-.32 6.42-.53 11.02-.68 15.62-.51 16.1-.12 27.65 1.56 35.21 4.82 21.68 4.04 38.2-4.16 45.48-3.91 3.48-7.37 4.84-13.24 5.87l-1.16.2c-5.76.99-8.32 1.75-11.65 3.98a63.73 63.73 0 0 1-5.96 3.56 60.86 60.86 0 0 1-6.77 2.99c-2.09.79-4.39 1.58-8.07 2.79a5398.31 5398.31 0 0 1-11.32 3.71c-4.1 1.37-7.48 2.46-15.18 4.92-6.42 2.04-9.24 2.95-12.7 4.08-10.73 3.53-18.27 6.3-24.07 8.98-5.76 2.66-15.97 4.14-29.77 4.77-7.56.33-14.4.39-24.95.31l-5.49-.03c-11.19 0-23.16 12.79-31.54 32.7-2.19 5.19-5.84 9.52-11.08 13.52-4.02 3.07-7.99 5.39-16.01 9.62l-2.12 1.12c-10.7 5.65-16.04 9.04-20.9 13.9-5.14 5.14-8.75 4.15-12.45-2.22-1.12-1.92-7.85-16.5-10.54-21.2-5.33-9.24-11.48-16.02-19.6-20.5a77.2 77.2 0 0 0-18.4-7.28c-4.5-1.17-6.02-1.43-15.4-2.9-7.17-1.12-10.74-2-14.13-3.81-4.22-2.25-7.2-5.77-9.3-11.27-2.43-6.39-.78-10.26 4.34-11.83 4-1.22 9.82-1.05 18.08.17 1.84.27 3.74.58 6.17 1 11.02 1.9 11.48 1.98 13.88 1.98 12.96 0 17.35-.52 37.9-4.99 4.71-1.02 9.16-1.9 14.03-2.77 2.71-.48 10.98-1.9 11.5-1.98 4.64-.81 7.95-1.46 11.2-2.23 4.55-1.07 8.76-2.34 13.2-4 12.83-4.81 30.79-15.59 43.88-24.94 7.47-5.33 26.4-21.4 33.94-28.94C407.3 61.98 412.5 32.49 412.5 12c0-4.61 1.86-6.9 5.35-7.15 2.63-.18 5.8.7 10.96 2.73l1.56.62c6.53 2.62 8.53 3.3 10.63 3.3 1.14 0 2.3.16 3.5.46 1.32.33 2.68.82 4.34 1.53a90.97 90.97 0 0 1 3.34 1.52l1.15.54c5.98 2.73 10.23 3.95 15.67 3.95 5.41 0 8.87-1.21 13.1-3.92.2-.13 2.1-1.38 2.66-1.72 2.62-1.63 4.64-2.36 7.24-2.36 1.47 0 2.94-.43 4.47-1.3 2.78-1.56 5.67-4.45 9.54-9.31l.7-.89zM324.54 600h-2.03c.49-2.96.91-6.2 1.28-9.66.44-4.1.76-8.25.98-12.21.08-1.39.14-2.65-.35-7.29-.47-1.94-.93-4.14-1.36-6.54-2.01-11.26-2.66-22.9-1.14-33.78a60.76 60.76 0 0 1 5.18-17.95 70.78 70.78 0 0 1 12.6-18.22c3.38-3.6 5.53-5.5 11.83-10.79 4.5-3.78 6.35-5.56 7.52-7.5.64-1.07.95-2.06.95-3.06 0-1.75 0-1.74-.75-9.23-.36-3.7-.57-6.3-.68-8.96-.5-12.1 1.62-19.6 8.11-21.76 15.9-5.3 25.89-12.1 33.45-25.54C409.6 390.65 425.85 376 436 376c12.36 0 20-1.96 29.41-8.8 6.76-4.92 9.5-6.6 12.47-7.46 2.22-.64 3.8-.74 9.12-.74 1.86 0 3.53-.83 5.57-2.62 1.08-.96 5.11-5.12 5.6-5.6 6.04-5.85 11.98-8.78 20.83-8.78 2.45 0 4.54.04 7.32.12 7.51.23 8.87.17 11.27-.7 3.03-1.1 5.53-3.03 14.75-11.17 8-7.06 10.72-8.92 22.87-16.47 1.44-.9 2.59-1.63 3.69-2.37a69.45 69.45 0 0 0 9.46-7.5c4.12-3.88 8.02-7.85 11.64-11.9v2.98a201.58 201.58 0 0 1-10.27 10.38c-3.18 3-6.2 5.35-9.72 7.7-1.12.76-2.28 1.5-3.75 2.4-12.05 7.5-14.71 9.32-22.6 16.28-9.46 8.35-12.01 10.32-15.39 11.55-2.74 1-4.19 1.06-12.01.82-2.76-.08-4.83-.12-7.26-.12-8.27 0-13.75 2.7-19.43 8.22-.44.43-4.52 4.64-5.68 5.66-2.37 2.09-4.46 3.12-6.89 3.12-5.1 0-6.6.1-8.56.66-2.67.78-5.29 2.37-11.85 7.15-9.8 7.13-17.85 9.19-30.59 9.19-9.22 0-24.96 14.2-34.13 30.49-7.84 13.94-18.24 21.02-34.55 26.46-5.31 1.77-7.21 8.51-6.75 19.78.1 2.6.31 5.19.68 8.84.75 7.62.75 7.58.75 9.43 0 1.38-.42 2.73-1.24 4.09-1.33 2.2-3.26 4.07-7.94 8-6.25 5.24-8.36 7.12-11.67 10.63a68.8 68.8 0 0 0-12.25 17.71 58.8 58.8 0 0 0-5 17.36c-1.49 10.66-.85 22.09 1.13 33.15.43 2.37.88 4.53 1.33 6.44.16.66.3 1.25.6 4.06a249.3 249.3 0 0 1-1.17 16.12c-.37 3.37-.78 6.53-1.25 9.44zm-13.4 0h-1.05l.12-.28c3.07-7.16 4.29-11.83 4.29-18.72 0-3.57-.07-4.93-.76-15.65-.77-12.04-1-19.64-.55-28.3.58-11.5 2.4-22.1 5.81-32.16 1.3-3.8 2.8-7.5 4.55-11.1 3.46-7.14 6.83-12.39 10.42-16.6a59.02 59.02 0 0 1 4.35-4.56c.43-.4 3-2.8 3.67-3.45 5.72-5.6 7.51-11.52 7.51-29.18 0-18.84 2.9-23.77 15.82-28.24 1.09-.37 1.92-.67 2.77-.98a51.3 51.3 0 0 0 6.1-2.7c4.95-2.6 9.64-6.22 14.44-11.42 25.5-27.63 37.15-35.16 56.37-35.16 8.28 0 14.54-1.95 22-6.3 1.78-1.03 13.82-8.82 18.16-11.27 2.83-1.59 5.66-3.03 8.63-4.39 7.92-3.6 13.97-4.45 26.6-4.8 7.53-.2 10.7-.49 14.26-1.58 4.55-1.4 8.06-4 10.93-8.43 2.2-3.41 6.85-7.08 14.66-12.06 1.61-1.03 3.27-2.05 5.65-3.5 9.53-5.85 11.56-7.13 14.81-9.57 5.34-4 9.3-8.37 13.68-14.77a204.2 204.2 0 0 0 5.62-8.75v1.9c-1.97 3.17-3.4 5.38-4.8 7.42-4.42 6.48-8.46 10.92-13.9 15-3.29 2.46-5.32 3.75-14.89 9.61a375.06 375.06 0 0 0-5.63 3.5c-7.7 4.9-12.26 8.52-14.36 11.76-3 4.63-6.7 7.39-11.48 8.85-3.68 1.12-6.9 1.42-14.53 1.63-12.5.34-18.44 1.18-26.2 4.7a111.08 111.08 0 0 0-8.56 4.35c-4.3 2.43-16.34 10.22-18.15 11.27-7.6 4.43-14.03 6.43-22.5 6.43-18.87 0-30.3 7.4-55.63 34.84-4.88 5.28-9.67 8.97-14.7 11.62-2 1.05-4 1.92-6.23 2.75-.86.32-1.7.62-5.37 1.87-5.08 1.76-7.44 3.25-9.28 6.37-2.23 3.78-3.29 9.94-3.29 20.05 0 17.9-1.87 24.07-7.8 29.89-.69.67-3.27 3.06-3.69 3.46a58.04 58.04 0 0 0-4.28 4.49c-3.53 4.14-6.86 9.32-10.28 16.38a95.19 95.19 0 0 0-4.5 10.99c-3.38 9.97-5.18 20.48-5.76 31.9-.44 8.6-.22 16.17.55 28.17.69 10.76.76 12.12.76 15.72 0 6.35-1.02 10.87-4.35 19zm25.08 0h-1c-.04-4.73.06-9.39.28-15.02.26-6.41-.4-11.79-2.53-24.37l-.31-1.86c-2.12-12.55-2.76-19.35-1.97-26.47 1.03-9.25 4.75-16.68 12-22.67 22.04-18.2 29.81-30.18 29.81-44.61 0-2.6-.3-4.81-.98-8.17-.97-4.79-1.1-5.68-.97-7.57.2-2.56 1.27-4.7 3.56-6.72 2.67-2.35 7.05-4.6 13.72-7.01 9.72-3.5 15.52-9.18 24.3-21.57l1.78-2.5c4.48-6.33 7.1-9.63 10.43-12.78 4.31-4.07 8.98-6.77 14.54-8.17 13.3-3.32 20.37-5.47 25.34-7.64a49.5 49.5 0 0 0 5.28-2.7c1.1-.65 1.75-1.04 4.24-2.6 2.7-1.68 5.22-2.08 11.38-2.28 5.44-.18 7.9-.43 10.97-1.41a21.47 21.47 0 0 0 9.54-6.22c4.87-5.3 10.03-7.61 17.79-8.9 1.07-.18 1.88-.3 3.86-.58 6.9-.97 9.94-1.69 13.48-3.62 4.5-2.45 6.79-4.44 23.46-19.68l3.14-2.85c9.65-8.71 16.12-13.83 21.42-16.48 4.25-2.12 7.6-4.69 11.22-8.6v1.45c-3.42 3.57-6.69 6-10.78 8.05-5.18 2.59-11.61 7.67-21.2 16.32l-3.12 2.85c-16.8 15.35-19.05 17.3-23.66 19.82-3.68 2-6.8 2.75-13.82 3.73-1.97.28-2.78.4-3.84.57-7.56 1.26-12.52 3.48-17.21 8.6a22.47 22.47 0 0 1-9.97 6.5c-3.2 1-5.72 1.27-11.25 1.45-5.98.2-8.39.57-10.89 2.13a144 144 0 0 1-4.25 2.61 50.48 50.48 0 0 1-5.39 2.75c-5.04 2.2-12.15 4.37-25.5 7.7-9.74 2.44-15.26 7.65-24.4 20.56l-1.77 2.5c-8.9 12.54-14.82 18.34-24.78 21.93-6.57 2.36-10.85 4.57-13.4 6.82-2.1 1.86-3.05 3.74-3.22 6.04-.13 1.76 0 2.63.95 7.3.7 3.42 1 5.7 1 8.37 0 14.79-7.93 27-30.18 45.39-7.03 5.8-10.64 13-11.64 22-.78 7-.14 13.73 1.96 26.2l.32 1.85c2.15 12.65 2.8 18.07 2.54 24.58-.22 5.57-.32 10.2-.28 14.98zM95.9 600h-2.04c.68-3.82 1.14-8.8 1.61-15.98.2-3.11.27-4.06.39-5.6 1.3-17.54 4.04-27.14 11.5-33.2 4.65-3.77 7.22-8.92 8.67-16 .51-2.52.7-3.87 1.33-9.17.66-5.5 1.16-8.06 2.24-10.36 1.45-3.09 3.82-4.69 7.39-4.69 14.28 0 38.48 9.12 53.6 20.2 8.66 6.35 21.26 13.32 31.74 17.11 13.03 4.71 21.89 4.41 24.75-1.73 1.7-3.64 1.92-4.11 2.65-5.77 2.93-6.67 4.69-12.2 5.25-17.5.23-2.17.24-4.23.02-6.2-.32-2.75-1.42-4.55-4.08-7.35l-1.32-1.37a30.59 30.59 0 0 1-2.41-2.79 30.37 30.37 0 0 1-2.5-4.07l-1.13-2.14c-1.62-3.1-2.68-4.6-4.12-5.56-5.26-3.5-14.8-5.5-28.55-6.83a272.42 272.42 0 0 0-9.04-.71l-2.18-.17c-9.57-.73-15.12-1.56-19.06-3.2C156.57 471.07 136 450.5 136 440c0-5.34 1.74-9.53 5.47-14.13 1.98-2.44 11.12-11.71 12.79-13.54 4.52-4.97 10.16-9.54 17.68-14.66 2.8-1.9 14.78-9.6 17.49-11.49a50.54 50.54 0 0 0 6.34-5.43c1.53-1.5 6.96-7.13 7.12-7.3 7.18-7.3 12.7-11.56 19.74-14.38 3.36-1.34 8.13-2.79 17.45-5.38a9577.18 9577.18 0 0 1 11.78-3.28 602.6 602.6 0 0 0 12.67-3.7c20.4-6.24 34-12.08 40.79-18.44 8.74-8.2 11.78-13.84 15.73-26.02 2.02-6.22 3.09-9.04 5.07-12.72 9.54-17.71 28.71-39.37 43.5-45.45C383.77 238.25 389 232.34 389 226c0-2.89 2.73-8.4 6.83-13.73 4.76-6.2 10.65-11.36 16.75-14.18 12.5-5.77 33.5-10.09 47.42-10.09 5.32 0 9.83-1.5 16.42-4.89 9.2-4.71 10.1-5.11 13.58-5.11 10.42 0 32.06-2.55 45.76-5.97l3.88-.98 3.47-.89c2.6-.66 4.33-1.08 5.93-1.43 3.9-.86 6.76-1.23 9.58-1.17 2.74.06 5.47.52 8.67 1.48 4.56 1.37 13.71-.9 22.87-5.68a68.07 68.07 0 0 0 9.84-6.2v2.4c-11.09 8.14-25.76 13.66-33.29 11.4a29.72 29.72 0 0 0-8.13-1.4c-2.63-.05-5.36.3-9.11 1.12a238 238 0 0 0-9.33 2.3l-3.9.99C522.38 177.43 500.58 180 490 180c-2.99 0-3.91.4-12.67 4.89-6.85 3.51-11.61 5.11-17.33 5.11-13.65 0-34.35 4.26-46.58 9.9-5.78 2.67-11.42 7.62-16 13.58-3.85 5.02-6.42 10.2-6.42 12.52 0 7.27-5.8 13.82-20.62 19.92-14.27 5.88-33.16 27.21-42.5 44.55-1.9 3.55-2.95 6.28-4.93 12.4-4.05 12.47-7.23 18.39-16.27 26.86-7.08 6.64-20.87 12.57-41.57 18.89a604.52 604.52 0 0 1-12.7 3.71 1495.1 1495.1 0 0 1-11.8 3.28c-9.24 2.58-13.97 4.01-17.24 5.32-6.73 2.69-12.05 6.8-19.05 13.92-.15.15-5.6 5.8-7.15 7.32a52.4 52.4 0 0 1-6.6 5.65c-2.74 1.92-14.75 9.63-17.5 11.5-7.4 5.04-12.94 9.52-17.33 14.35-1.72 1.9-10.8 11.11-12.71 13.46-3.47 4.26-5.03 8.03-5.03 12.87 0 9.5 20 29.5 33.38 35.08 3.67 1.53 9.1 2.34 18.45 3.05a586.23 586.23 0 0 0 4.34.32c3.24.23 5.07.37 6.93.55 14.08 1.37 23.82 3.4 29.45 7.17 1.82 1.2 3.02 2.91 4.8 6.29l1.11 2.13a28.55 28.55 0 0 0 2.34 3.81c.62.83 1.3 1.6 2.26 2.61.23.24 1.1 1.16 1.32 1.37 2.93 3.09 4.24 5.23 4.61 8.5.24 2.12.23 4.33-.01 6.64-.59 5.55-2.4 11.25-5.41 18.1-.74 1.67-.96 2.15-2.66 5.8-3.49 7.47-13.33 7.8-27.25 2.77-10.67-3.86-23.43-10.92-32.25-17.38C164.62 515.96 140.82 507 127 507c-5 0-6.4 3.02-7.64 13.29a99.03 99.03 0 0 1-1.36 9.33c-1.53 7.5-4.3 13.04-9.37 17.16-6.87 5.58-9.5 14.78-10.77 31.8-.11 1.52-.18 2.47-.38 5.57-.46 7.01-.91 11.99-1.57 15.85zm8.05 0h-1.02c.29-1.41.58-2.94.9-4.59l1.05-5.62c2.5-13.3 4.2-19.92 6.68-24.05 1.7-2.84 3.68-5.5 8.05-11.03 8.21-10.36 10.88-14.55 10.88-18.71l-.02-1.69c-.02-1.78-.02-2.7.02-3.77.21-5.05 1.47-8.2 4.64-9.4 3.92-1.5 10.39.44 20.12 6.43 9.56 5.88 17.53 10.7 25.91 15.66 1.31.78 14.27 8.41 17.67 10.45a714.21 714.21 0 0 1 6.42 3.9c13.82 8.5 38.94 5.05 46.3-7.83 3.6-6.28 4.54-8.52 7.78-17.32a82.3 82.3 0 0 1 1.18-3.07 42.27 42.27 0 0 1 4.06-7.64c9.33-13.98 14.92-26.1 14.92-36.72 0-3.66.75-6.62 3.36-14.85.52-1.64.83-2.66 1.15-3.73 3.64-12.23 3.04-19.12-4.29-24a23.1 23.1 0 0 0-9.98-3.78c-7.2-.93-14.49 1.17-23.91 5.88-1.55.78-6.64 3.44-7.6 3.93a62.6 62.6 0 0 0-4.14 2.3l-4.4 2.66c-11.62 6.92-20.4 9.18-32.81 6.08-3.32-.84-6.24-1.4-13.1-2.64-13.25-2.39-18.7-3.75-23.33-6.46-6.23-3.67-7.46-9.02-2.88-16.65A93.1 93.1 0 0 1 172 415.42a157 157 0 0 1 8.32-7.66c-.07.05 6.16-5.3 7.82-6.77a85.12 85.12 0 0 0 6.5-6.33c7.7-8.46 12.78-13.36 20.08-18.57 9.94-7.1 21.4-12.36 35.18-15.58 37.03-8.64 51-12.7 58.83-17.93 8.6-5.73 21.3-24.77 36.84-54.81 5.22-10.1 12.27-18.4 21.13-25.71 5.13-4.24 9.56-7.25 17.55-12.23 7.42-4.62 9.62-6.14 11.38-8.16a21.15 21.15 0 0 0 2.95-4.87c.61-1.3 2.87-6.47 3-6.77 1.36-3 2.56-5.4 3.95-7.73 6.53-10.97 16.03-18 31.4-20.8 12.73-2.3 19.85-2.7 29.68-2.3 3.25.13 4.13.16 5.6.14 5.15-.07 9.71-1.04 16.61-3.8 20.74-8.3 38.75-12.04 59.19-12.04 3.05 0 6.03.15 10.48.48l2.09.16c12.45.96 18.08.96 25.34-.63a49.65 49.65 0 0 0 14.09-5.45v1.15a50.52 50.52 0 0 1-13.88 5.28c-7.38 1.61-13.08 1.61-25.63.65l-2.08-.16c-4.43-.33-7.39-.48-10.41-.48-20.3 0-38.2 3.72-58.81 11.96-7.01 2.8-11.7 3.8-16.97 3.88-1.5.02-2.39-.01-5.66-.14-9.76-.4-16.8-.01-29.47 2.3-15.06 2.73-24.32 9.58-30.71 20.31a72.8 72.8 0 0 0-3.9 7.63c-.12.28-2.39 5.47-3.01 6.79a22 22 0 0 1-3.1 5.1c-1.86 2.13-4.07 3.66-11.6 8.35-7.95 4.96-12.35 7.95-17.44 12.15-8.76 7.23-15.73 15.43-20.89 25.4-15.61 30.2-28.36 49.32-37.16 55.19-7.98 5.32-21.97 9.39-59.17 18.07-13.65 3.18-24.98 8.39-34.82 15.42-7.22 5.16-12.27 10.01-19.92 18.43a86.07 86.07 0 0 1-6.57 6.4c-1.67 1.48-7.91 6.83-7.84 6.77-3.27 2.84-5.8 5.16-8.26 7.62a92.1 92.1 0 0 0-14.27 18.13c-4.3 7.16-3.22 11.89 2.53 15.26 4.47 2.63 9.88 3.99 23.24 6.39a185.7 185.7 0 0 1 12.92 2.6c12.11 3.03 20.64.84 32.06-5.96l4.4-2.65c1.66-1 2.96-1.73 4.2-2.35.95-.48 6.04-3.14 7.6-3.92 9.59-4.8 17.04-6.94 24.49-5.98a24.1 24.1 0 0 1 10.4 3.93c7.82 5.21 8.45 12.52 4.7 25.13-.32 1.07-.64 2.1-1.16 3.74-2.57 8.12-3.31 11.04-3.31 14.55 0 10.88-5.66 23.14-15.08 37.28a41.28 41.28 0 0 0-3.97 7.46c-.37.9-.73 1.82-1.18 3.04-3.25 8.85-4.21 11.13-7.84 17.47-7.67 13.42-33.43 16.95-47.7 8.18a578.4 578.4 0 0 0-6.4-3.89c-3.4-2.04-16.36-9.67-17.67-10.45-8.38-4.97-16.36-9.78-25.92-15.66-9.5-5.85-15.7-7.7-19.24-6.36-2.68 1.02-3.8 3.82-4 8.51a61.12 61.12 0 0 0-.02 3.72l.02 1.7c0 4.5-2.69 8.73-11.52 19.87-3.92 4.95-5.87 7.59-7.55 10.39-2.39 3.97-4.08 10.56-6.56 23.72l-1.05 5.62-.86 4.4zm10.5 0h-1c.03-.34.04-.68.04-1 0-12.39 8.48-33.57 19.16-43.37a26.18 26.18 0 0 0 3.67-4.17 35.8 35.8 0 0 0 2.88-4.9c.36-.72 1.75-3.66 2.1-4.36 3.22-6.29 6.84-6.54 16.97.39 1.34.9 6.07 4.16 6.4 4.38 2.62 1.8 4.67 3.2 6.7 4.56 5.03 3.39 9.37 6.2 13.51 8.7 14.33 8.67 25.49 13.27 34.11 13.27 16.86 0 32.71-5.95 39.6-14.8 1.59-2.04 3.2-5.17 5.06-9.63.8-1.92 1.64-4.06 2.67-6.8l2.74-7.33c4.66-12.44 7.76-19.06 11.56-23.27 7.9-8.79 14.87-36 14.87-52.67 0-1.9.17-3.11 1.02-8.27.37-2.2.58-3.6.74-5.07.63-5.51.21-9.46-1.68-12.39-4.6-7.1-19.7-9.23-38.46-4.78a100.57 100.57 0 0 0-18.94 6.3c-5.17 2.37-17.11 9.74-16.5 9.4-6.72 3.64-12.97 4.15-24.8 1.3-29.55-7.14-30.43-8.62-15.26-26.81 17.44-20.93 47.12-46.18 56.38-46.18 9.92 0 53.84-11.98 65.78-17.95 9.46-4.73 24.32-21.18 36.82-37.85.71-.95 13.5-21.6 19.2-29.6 9.35-13.13 18.22-22.55 26.95-27.53 7.29-4.17 13.16-10.28 18.8-18.73 1.93-2.9 10.52-17.65 12.73-20.41 1.54-1.93 3-3.21 4.52-3.89 14.07-6.25 24.22-9.04 39.2-9.04h29c4.05 0 7.36-.4 22.93-2.5l4.3-.57c9.92-1.3 16.57-1.93 21.77-1.93 1.66 0 2.95.01 6.03.04 18.61.19 28.55-.48 44.86-4.03 3.1-.67 6.13-1.78 9.11-3.31v1.12a37.96 37.96 0 0 1-8.9 3.17c-16.4 3.56-26.4 4.24-45.08 4.05-3.08-.03-4.36-.04-6.02-.04-5.15 0-11.76.63-21.64 1.92l-4.3.58c-15.64 2.11-18.94 2.5-23.06 2.5h-29c-14.81 0-24.84 2.75-38.8 8.96-1.34.6-2.69 1.78-4.14 3.6-2.16 2.68-10.72 17.39-12.68 20.33-5.72 8.57-11.7 14.8-19.13 19.04-8.57 4.9-17.36 14.23-26.63 27.24-5.68 7.97-18.47 28.64-19.22 29.63-12.6 16.8-27.52 33.32-37.18 38.15-12.06 6.03-56.14 18.05-66.22 18.05-8.82 0-38.39 25.15-55.62 45.82-14.6 17.52-14.19 18.21 14.74 25.2 11.6 2.8 17.6 2.3 24.09-1.2-.67.35 11.31-7.03 16.56-9.44 5.41-2.48 11.6-4.59 19.11-6.37 19.13-4.53 34.65-2.35 39.54 5.22 2.05 3.17 2.48 7.32 1.84 13.04a96.34 96.34 0 0 1-.75 5.13c-.84 5.08-1.01 6.29-1.01 8.1 0 16.9-7.03 44.33-15.13 53.33-3.68 4.09-6.76 10.65-11.37 22.96-.35.93-2.2 5.94-2.73 7.33-1.04 2.76-1.88 4.9-2.68 6.84-1.9 4.53-3.55 7.73-5.2 9.85-7.1 9.13-23.25 15.19-40.39 15.19-8.86 0-20.15-4.65-34.63-13.42-4.15-2.51-8.5-5.32-13.55-8.72a861.54 861.54 0 0 1-6.71-4.56l-6.4-4.39c-9.68-6.63-12.61-6.42-15.5-.75-.35.68-1.74 3.62-2.1 4.35a36.77 36.77 0 0 1-2.96 5.03c-1.12 1.57-2.37 3-3.81 4.33-10.47 9.6-18.84 30.51-18.84 42.63l-.03 1zm-29.65 0h-1.1c1.17-2.52 1.79-5.2 1.79-8 0-20 4.83-42.04 12.15-49.35 5.17-5.18 7.77-8.38 9.9-12.74 2.64-5.41 3.95-12 3.95-20.91 0-6.82 1.14-11.59 3.37-15.07 1.74-2.7 3.6-4.21 8.91-7.52a31.64 31.64 0 0 0 3.9-2.79c4.61-3.96 6.58-6.2 7.72-9.41 1.43-4.02.93-9.04-1.86-16.02a68.98 68.98 0 0 0-3.99-8.07l-.93-1.7a75.47 75.47 0 0 1-2.64-5c-5.16-10.71-3.77-18.9 7.68-29.78a204 204 0 0 1 26.81-21.55c3.96-2.69 16.8-10.8 19.24-12.5 1.99-1.4 4.33-3.3 7.77-6.3-.02 0 7.23-6.39 9.47-8.3 4.97-4.26 9.09-7.5 13.05-10.15 4.72-3.15 8.97-5.28 12.87-6.32 12.78-3.41 15.6-4.18 21.77-5.97 12.55-3.64 21.96-6.9 28.14-10a45.47 45.47 0 0 1 7.47-2.79c8.66-2.66 12.02-4.1 16.97-8.1 6.78-5.46 13.07-14.25 19.33-27.87 15.97-34.77 19.08-39.39 32.15-49.19 3.14-2.36 6.37-4.1 11.43-6.4l2.33-1.04c11.93-5.35 16.87-8.93 21.1-17.38 1.88-3.77 2.48-6.29 3.37-12.27.78-5.19 1.48-7.56 3.53-10.25 2.57-3.4 7.03-6.27 14.36-9.01 3.37-1.26 7.36-2.5 12.05-3.73 16.33-4.3 25.28-5.36 39.6-5.81 6.9-.22 9.5-.56 12.66-2 1.19-.54 2.36-1.23 3.58-2.11 3.7-2.7 8.14-4.54 13.24-5.67 5.71-1.27 10.69-1.54 18.7-1.45l2.35.02c2.82 0 6.8-1 19.7-4.69 10.83-3.08 15.95-4.31 19.3-4.31.82 0 1.9.13 3.55.41l5.01.9c9.82 1.68 17.44 1.89 25.15-.21 7.98-2.18 14.8-6.77 20.29-14.24V147c-5.47 7.04-12.21 11.42-20.03 13.55-7.88 2.15-15.63 1.94-25.58.23l-5-.9c-1.6-.26-2.64-.39-3.39-.39-3.2 0-8.32 1.22-19.74 4.48-12.35 3.53-16.3 4.52-19.26 4.52l-2.36-.02c-7.94-.1-12.85.17-18.47 1.42-4.97 1.11-9.3 2.9-12.88 5.5a21.4 21.4 0 0 1-3.75 2.22c-3.32 1.5-6 1.87-13.04 2.09-14.25.44-23.13 1.5-39.37 5.77a125.56 125.56 0 0 0-11.95 3.7c-7.17 2.7-11.49 5.46-13.93 8.68-1.9 2.52-2.58 4.76-3.33 9.8-.9 6.08-1.53 8.68-3.47 12.56a30.6 30.6 0 0 1-9.66 11.45c-3.12 2.26-5.95 3.73-11.93 6.4l-2.31 1.04c-5.01 2.27-8.18 3.99-11.25 6.29-12.9 9.68-15.93 14.17-31.85 48.8-6.31 13.76-12.7 22.68-19.6 28.25-5.08 4.1-8.53 5.57-17.3 8.27a44.64 44.64 0 0 0-7.33 2.73c-6.24 3.12-15.7 6.4-28.3 10.06a867.4 867.4 0 0 1-21.8 5.97c-3.77 1.01-7.93 3.1-12.56 6.19a137.35 137.35 0 0 0-12.95 10.07c-2.24 1.92-9.48 8.3-9.48 8.3a98.2 98.2 0 0 1-7.84 6.37c-2.46 1.72-15.32 9.83-19.26 12.5a203 203 0 0 0-26.69 21.45c-11.13 10.58-12.43 18.3-7.47 28.63a74.52 74.52 0 0 0 2.62 4.95l.94 1.7a69.84 69.84 0 0 1 4.03 8.17c2.88 7.2 3.4 12.46 1.89 16.73-1.22 3.43-3.28 5.77-8.02 9.84-1.14.97-2.32 1.8-5.3 3.67-3.92 2.45-5.69 3.89-7.31 6.42-2.13 3.3-3.22 7.89-3.22 14.53 0 9.05-1.34 15.79-4.05 21.34-2.19 4.49-4.85 7.77-10.1 13.01-7.07 7.07-11.85 28.9-11.85 48.65 0 2.8-.58 5.48-1.7 8zm282.54 0h-1.01l-1.1-5.8c-3.08-16.26-4.05-26.2-2.74-37.26.7-5.8.77-9.68.55-15.3-.18-4.45-.17-5.68.19-7.63.78-4.3 3.44-8.53 10.39-16.34 9.07-10.2 12.26-15.41 19.8-30.15 1.35-2.64 2.33-4.47 3.38-6.3.9-1.58 1.82-3.06 2.77-4.5 3.14-4.7 7.03-8.42 16.84-16.81 11.22-9.6 15.5-13.86 18.13-19.13.7-1.4 1.3-2.8 1.93-4.4a206 206 0 0 0 1.49-4.05c3.63-9.94 8.01-13.93 22.9-17.81 4.99-1.3 20.55-5.13 21.38-5.34 16.19-4.1 25.33-7.36 33.48-12.6 5.86-3.77 5.84-3.76 27.66-16.53l2.6-1.52c10.23-6 17.1-10.2 22.73-13.95a149.3 149.3 0 0 0 8.8-6.3 723.7 723.7 0 0 0 6.37-5.08A87.74 87.74 0 0 1 600 342.95v1.12a85.76 85.76 0 0 0-15.49 9.9c.18-.14-4.76 3.84-6.38 5.1a150.3 150.3 0 0 1-8.85 6.35c-5.65 3.76-12.53 7.96-22.78 13.97l-2.6 1.53c-21.8 12.75-21.78 12.74-27.63 16.5-8.27 5.32-17.49 8.61-33.78 12.73-.83.21-16.39 4.04-21.36 5.33-8.03 2.1-13.15 4.5-16.45 7.5-2.66 2.42-4 4.86-5.77 9.7l-1.5 4.07a51.12 51.12 0 0 1-1.96 4.47c-2.72 5.45-7.04 9.75-18.38 19.45-9.73 8.32-13.6 12.02-16.65 16.6a77.18 77.18 0 0 0-2.74 4.45c-1.05 1.81-2.01 3.63-3.35 6.25-7.58 14.81-10.82 20.08-19.96 30.36-6.83 7.7-9.4 11.78-10.15 15.86-.34 1.85-.34 3.04-.17 7.4.22 5.68.14 9.6-.55 15.47-1.3 10.92-.34 20.79 2.73 36.95l1.12 5.99zm-76.59 0h-2.1l1.39-4.3c1.04-3.3 1.93-6.78 2.68-10.4 2.65-12.73 3.27-23.63 3.27-41.3 0-5.71-1.86-9.75-4.13-9.75-2.94 0-6.96 5.61-10.93 17.08C271.14 579.68 258.3 593 238 593c-22.42 0-29.26-1.35-48.42-10.09a87.69 87.69 0 0 1-9.42-5.04c-2.95-1.8-12.78-8.57-14.84-9.72-4.2-2.36-7-2.71-9.72-.99-.63.4-1.26.91-1.9 1.55a57.69 57.69 0 0 1-4.31 3.86 147.88 147.88 0 0 1-3.06 2.44l-1 .8C137.01 582.43 134 587.18 134 597c0 1.02-.02 2.01-.07 3h-2c.05-.99.07-1.98.07-3 0-10.52 3.33-15.78 12.09-22.76a265.61 265.61 0 0 1 2-1.6c.83-.64 1.43-1.13 2.03-1.61a55.76 55.76 0 0 0 4.17-3.74c.74-.73 1.48-1.34 2.24-1.82 3.47-2.2 7-1.75 11.77.93 2.15 1.21 12.03 8 14.9 9.76a85.7 85.7 0 0 0 9.22 4.93C209.29 589.7 215.85 591 238 591c19.25 0 31.49-12.7 41.06-40.33 4.24-12.25 8.66-18.42 12.81-18.42 3.8 0 6.13 5.06 6.13 11.75 0 17.8-.63 28.8-3.3 41.7-.77 3.7-1.68 7.23-2.75 10.6-.4 1.3-.8 2.53-1.19 3.7zm-149.25 0l.5-.94a160.1 160.1 0 0 0 6.53-13.26c2.73-6.29 5.78-9.64 9.24-10.52 3.74-.95 7.15.74 12.56 5.13 5.43 4.4 6.07 4.86 7.73 5.1 1.6.22 4.28 1.14 8.86 2.95 1.3.5 10.78 4.35 13.85 5.55 3.07 1.2 5.85 2.25 8.49 3.18 3.1 1.1 5.98 2.04 8.65 2.81h-3.45c-1.76-.56-3.6-1.18-5.54-1.87a281.2 281.2 0 0 1-8.51-3.19c-3.08-1.2-12.57-5.04-13.86-5.55-4.5-1.78-7.15-2.68-8.63-2.9-1.94-.27-2.53-.7-8.22-5.3-5.17-4.2-8.36-5.78-11.69-4.94-3.1.78-5.94 3.92-8.56 9.95a161 161 0 0 1-6.82 13.8h-1.13zm112.89 0a30.34 30.34 0 0 0 11.27-6.27c1.55-1.36 3.32-3.46 5.34-6.29 1.05-1.46 2.15-3.1 3.41-5.04a349.73 349.73 0 0 0 2.5-3.9l.47-.75.93-1.47a89.17 89.17 0 0 1 3.25-4.86c1.05-1.43 1.82-2.23 2.44-2.46 1.02-.37 1.49.48 1.49 2.04l.01 2.11c.05 6.91-.08 11.32-.7 16.33a48.4 48.4 0 0 1-2.38 10.56h-1.07a46.47 46.47 0 0 0 2.45-10.68c.62-4.96.75-9.33.7-16.2l-.01-2.12c0-.97-.08-1.12-.15-1.1-.36.14-1.05.85-1.97 2.1a88.44 88.44 0 0 0-3.22 4.82l-.92 1.46-.48.75a1268.1 1268.1 0 0 1-2.5 3.92c-1.26 1.95-2.38 3.6-3.44 5.08-2.06 2.88-3.87 5.04-5.5 6.45a30.87 30.87 0 0 1-8.94 5.52h-2.98zm-183.72 0H69.3c3.37-3.43 5.19-8.33 5.19-15 0-18.6-.04-17.35 1.02-20.77.6-1.93 1.5-3.74 3.27-6.63.42-.7 4.92-7.8 6.78-10.86 3.04-4.97 11.04-16.5 12.21-18.56 3.48-6.08 4.72-12.06 4.72-24.18 0-7.85 2.5-14.2 8.1-23.44l2.84-4.63a72.67 72.67 0 0 0 2.49-4.4c1.62-3.15 2.48-5.78 2.62-8.28.2-3.78-1.3-7.29-4.9-10.9-5.13-5.12-8.6-5.43-11.2-1.85-2.12 2.92-3.48 7.74-5.06 16.47-.2 1.03-.82 4.6-.82 4.57-.83 4.67-1.4 7.33-2.1 9.6-1.35 4.42-3.7 7.61-8.36 12.26l-3.26 3.2c-6.38 6.39-9.68 11.51-11.36 19.5l-1.16 5.52c-.87 4.1-1.56 7.04-2.33 9.94-3.67 13.74-9.65 25.97-22.59 44.72-7.68 11.14-11.05 18.87-10.92 23.72h-1c-.12-5.16 3.35-13.05 11.1-24.28 12.87-18.67 18.8-30.8 22.44-44.42.77-2.88 1.45-5.8 2.32-9.89l1.16-5.51c1.73-8.22 5.13-13.5 11.64-20 .63-.64 2.84-2.8 3.25-3.21 4.57-4.54 6.82-7.62 8.12-11.84a81.58 81.58 0 0 0 2.07-9.48l.81-4.57c1.62-8.9 3-13.8 5.24-16.89 3-4.15 7.2-3.78 12.71 1.74 3.8 3.8 5.42 7.58 5.2 11.66-.15 2.66-1.05 5.41-2.73 8.68a73.6 73.6 0 0 1-2.52 4.46l-2.84 4.63c-5.52 9.1-7.96 15.3-7.96 22.92 0 12.28-1.28 18.43-4.85 24.68-1.2 2.1-9.21 13.65-12.22 18.58-1.87 3.06-6.37 10.18-6.78 10.86-1.73 2.82-2.6 4.57-3.17 6.4-1.02 3.28-.98 2.1-.98 20.48 0 6.52-1.7 11.44-4.82 15zM310.09 0h1.06c-.37.9-.77 1.83-1.2 2.82-3.9 9.06-5.45 15.15-5.45 25.18 0 7.64-2.1 11.6-6.64 13.05-3.46 1.1-5.72.98-17.57-.43-11.55-1.36-19.17-1.58-28.16-.14-6.24 2.49-25.91 7.02-32.13 7.02-11.15 0-36.76-2.88-54.12-7.01a22.08 22.08 0 0 0-16.95 2.48c-4.05 2.33-7.09 5.03-13.9 11.97-6.28 6.39-9.53 9.23-13.8 11.5-7.09 3.79-11.22 7.65-13.4 12.27-1.82 3.85-2.33 7.84-2.33 15.29 0 4.4-2.65 6.69-9.45 9.74.1-.05-2.97 1.31-3.84 1.71-8.78 4.06-12.71 8.29-12.71 16.55 0 12.52-4.86 19.22-17.34 27.96l-4.56 3.14c-1.9 1.3-3.3 2.3-4.67 3.3-.92.68-1.79 1.34-2.62 2-7.16 5.62-11 14.54-15.56 33.28-.63 2.57-3.3 14-4.07 17.14a350.44 350.44 0 0 1-5.2 19.33c-1.37 4.5-4.5 15.07-4.96 16.53-1.05 3.4-1.64 4.94-2.46 6.32-.82 1.4-6.85 9.08-12.64 18.27L0 277.98v-1.9l4.58-7.35a270.8 270.8 0 0 1 12.61-18.23c-.3.5 1.35-2.8 2.38-6.12.45-1.44 3.58-12.01 4.95-16.53 1.83-6.03 3.44-12.09 5.19-19.27.76-3.13 3.44-14.56 4.06-17.14 4.62-18.95 8.52-28.02 15.92-33.83.84-.67 1.72-1.33 2.65-2.01 1.38-1.02 2.8-2.01 4.7-3.32l4.54-3.14C73.83 140.57 78.5 134.13 78.5 122c0-8.74 4.2-13.26 13.29-17.45.88-.41 3.96-1.77 3.85-1.73 6.46-2.9 8.86-4.97 8.86-8.82 0-7.6.53-11.7 2.42-15.71 2.29-4.84 6.57-8.85 13.84-12.73 4.15-2.21 7.35-5 14.15-11.93 6.28-6.4 9.36-9.13 13.52-11.53a23.07 23.07 0 0 1 17.69-2.59c17.27 4.12 42.8 6.99 53.88 6.99 6.1 0 25.73-4.53 31.92-7 9.12-1.46 16.83-1.25 28.49.13 11.63 1.38 13.9 1.5 17.15.47 4.06-1.3 5.94-4.85 5.94-12.1 0-10.1 1.56-16.3 6.6-28zm25.12 0h1c.05 5.62.26 11.48.65 19.4.47 9.7.64 14.57.64 21.6 0 9.81-4.68 17.46-13.1 23.16-6.53 4.43-14.94 7.46-24.33 9.33-3.74.54-9.42.56-22.68.23-6.74-.17-9.35-.22-12.39-.22-2.77 0-4.97.43-7.63 1.36-.88.3-4.55 1.74-5.58 2.11-6.55 2.35-13.59 3.53-24.79 3.53-8.1 0-13.58-1.38-22.46-4.9l-3.18-1.25c-12.55-4.87-21.27-5.15-37.18 1.12-11.15 4.39-18.13 9.2-22.28 14.81-3.15 4.26-4.33 7.8-5.94 15.8-1.22 6.09-1.93 8.74-3.5 12.13-1.65 3.53-3.97 5.81-7.07 7.22-2.33 1.07-4.35 1.5-9.32 2.19-9.04 1.27-12.77 3.09-15.61 9.58-3.71 8.48-7.72 13.87-14.22 19.76-2.4 2.18-13.14 11.02-15.91 13.42-8.2 7.1-13.85 17.37-18.7 31.97a258.81 258.81 0 0 0-3.27 10.7c-.01.05-2.26 7.97-2.88 10.1-8.49 28.85-17.88 52.95-26.13 61.2-2.8 2.8-5.06 5.64-10.4 12.96-3.4 4.68-6.23 8.25-8.95 11.1v-1.55c2.74-2.98 5.73-6.82 9.48-11.97 4.03-5.52 6.32-8.4 9.17-11.24 8.07-8.08 17.44-32.14 25.87-60.8.62-2.1 2.86-10.03 2.88-10.08 1.21-4.24 2.21-7.53 3.28-10.74 4.9-14.75 10.63-25.16 19-32.4 2.78-2.42 13.5-11.25 15.89-13.4 6.4-5.8 10.32-11.09 13.97-19.43 1.68-3.83 4.05-6.31 7.2-7.86 2.4-1.17 4.64-1.67 9.53-2.36 4.54-.63 6.5-1.05 8.7-2.06 2.89-1.31 5.03-3.42 6.58-6.73 1.53-3.3 2.23-5.9 3.43-11.9 1.64-8.14 2.85-11.79 6.11-16.2 4.28-5.79 11.41-10.7 22.73-15.16 16.15-6.36 25.13-6.07 37.9-1.11l3.19 1.26c8.77 3.47 14.13 4.82 22.09 4.82 11.09 0 18.02-1.16 24.46-3.47 1-.36 4.68-1.8 5.58-2.11A22.5 22.5 0 0 1 265 72.5c3.05 0 5.67.05 14.07.26 11.53.29 17.2.27 20.83-.25 9.25-1.85 17.54-4.83 23.94-9.17C332 57.8 336.5 50.46 336.5 41c0-7-.17-11.86-.7-22.7-.35-7.26-.55-12.83-.59-18.3zM93.87 0h2.04c-.7 4-1.61 6.82-3.03 9.47-2.33 4.38-2.85 5.75-5.26 13.03a40.46 40.46 0 0 1-1.94 5.03c-2.24 4.66-5.92 8.8-13.07 14.26-8.01 6.13-14.27 16.55-20.03 31.55-2.4 6.23-8.75 25.63-9.64 28.01-2.69 7.16-6.56 12.7-15.63 23.68l-2.68 3.24c-6.02 7.34-9.35 12.07-11.72 17.15-2.3 4.94-7.12 9.9-12.91 14.15v-2.4c5.14-3.94 9.1-8.3 11.1-12.6 2.46-5.27 5.87-10.1 11.98-17.56l2.68-3.26c8.94-10.8 12.72-16.22 15.3-23.1.88-2.33 7.24-21.74 9.65-28.03 5.89-15.31 12.3-26 20.68-32.41 6.92-5.3 10.4-9.2 12.48-13.55.65-1.35 1.16-2.7 1.85-4.79 2.45-7.4 3-8.83 5.4-13.34A27.68 27.68 0 0 0 93.87 0zm9.07 0h1.02c-1.66 8.3-2.91 12.67-4.54 15.26a59.14 59.14 0 0 0-4.1 8.21c-1.27 3-2.44 6.2-3.5 9.4-.38 1.12-.7 2.16-2.41 5.39a251.48 251.48 0 0 0-12.81 13.3c-3.48 3.96-5.95 7.27-7.15 9.66-.95 1.9-2.06 5.99-3.61 12.97-.64 2.9-3.65 17.15-4.51 21.07-3.63 16.45-6.63 26.69-9.9 32-7.66 12.45-10.64 15.71-37.08 41.1A69.78 69.78 0 0 1 0 179.21v-1.15a69.39 69.39 0 0 0 13.65-10.42c26.4-25.33 29.32-28.55 36.92-40.9 3.2-5.18 6.18-15.37 9.78-31.7.86-3.91 3.87-18.16 4.51-21.06 1.57-7.09 2.7-11.2 3.7-13.2 1.24-2.5 3.76-5.86 7.29-9.89.9-1.03 1.86-2.1 2.86-3.18 2.4-2.6 4.96-5.22 7.53-7.76.9-.88 1.73-1.7 3.37-3.4a129.02 129.02 0 0 1 4.78-13.46 60.07 60.07 0 0 1 4.19-8.35c1.52-2.44 2.74-6.71 4.36-14.74zM83.71 0h1.1c-2.09 4.74-6.03 8.92-11.42 12.3-7.2 4.52-16.5 7.2-24.39 7.2-8.9 0-11.8 7-11.74 21.52 0 1.7.04 3.17.12 5.99.1 3.3.12 4.45.12 5.99 0 5.73-.76 11.3-2.01 16.5a66.67 66.67 0 0 1-2.15 6.97 2597.76 2597.76 0 0 1-7 15.86A4270.8 4270.8 0 0 1 6.44 136.2 54.64 54.64 0 0 1 0 147v-1.65a54.87 54.87 0 0 0 5.55-9.57A4269.82 4269.82 0 0 0 30.7 79.97c.53-1.2.99-2.23 2.44-5.9A69.23 69.23 0 0 0 36.5 53c0-1.52-.03-2.66-.12-5.95-.08-2.83-.12-4.31-.12-6.01-.03-6.79.53-11.62 2.07-15.34 1.94-4.68 5.39-7.19 10.67-7.19 7.7 0 16.81-2.63 23.86-7.05C77.93 8.27 81.66 4.38 83.7 0zm282.63 0h1.01c1.86 10.02 2.18 12.67 2.32 18.3a123.43 123.43 0 0 1 .37 27.83c-.96 8.78-3.1 16.01-6.63 21.15-11.34 16.5-39.8 29.22-66.41 29.22-5.09 0-10.47.28-16.31.83a413.8 413.8 0 0 0-24.37 3.16c-21.56 3.26-27.66 4.01-36.32 4.01-6.92 0-12.2-1.05-21.69-3.9l-2.78-.83c-1.39-.41-2.54-.74-3.65-1.02-8-2.05-14.22-2.04-21.7.72a16.32 16.32 0 0 0-9.17 8.18c-1.6 3.05-2.5 6.06-4.02 12.83-1.5 6.64-2.34 9.52-3.99 12.64a16.16 16.16 0 0 1-9.85 8.36 104.8 104.8 0 0 0-9.5 3.42c-6.55 2.8-10.1 5.57-13.8 10.47-1.33 1.75-1.03 1.3-5.43 7.9-1.98 2.97-4.66 5.8-8.48 9.14-2.01 1.76-10.71 8.83-12.88 10.7-7.37 6.35-12.58 12.14-16.63 19.14-4.22 7.3-7.8 18.3-11.28 33.26-.87 3.73-1.72 7.64-2.64 12.14l-1.18 5.8-1.09 5.45c-1.8 8.96-2.77 13.28-3.77 16.26-6.8 20.44-17.26 42.16-27.13 51.2-5.11 4.7-8.1 7.07-11.1 8.86-.9.54-1.84 1.04-2.92 1.57-.44.22-9.6 4.4-14.1 6.66l-1.22.62v-1.13l.78-.39c4.52-2.26 13.67-6.44 14.1-6.65a41.19 41.19 0 0 0 2.84-1.54c2.94-1.75 5.88-4.09 10.94-8.73 9.71-8.9 20.1-30.51 26.87-50.79.97-2.92 1.94-7.22 3.73-16.13l1.1-5.46a490.5 490.5 0 0 1 3.82-17.96c3.5-15.06 7.1-26.14 11.39-33.54 4.11-7.11 9.4-12.98 16.83-19.4 2.19-1.88 10.88-8.95 12.88-10.7 3.77-3.28 6.39-6.05 8.3-8.93 4.43-6.64 4.12-6.18 5.47-7.96 3.8-5.03 7.5-7.91 14.21-10.78 2.61-1.12 5.74-2.24 9.59-3.46a15.17 15.17 0 0 0 9.27-7.86c1.59-3.02 2.42-5.85 4.03-12.99 1.41-6.27 2.32-9.33 3.98-12.48a17.31 17.31 0 0 1 9.7-8.66c7.7-2.83 14.1-2.84 22.3-.75 1.12.29 2.28.61 3.68 1.03l3.73 1.11c8.47 2.54 13.66 3.58 20.46 3.58 8.59 0 14.67-.75 36.18-4a414.64 414.64 0 0 1 24.41-3.17c5.88-.54 11.29-.83 16.41-.83 26.3 0 54.45-12.58 65.59-28.78 3.42-4.98 5.5-12.06 6.46-20.7.84-7.74.73-16.02.02-23.9a136.2 136.2 0 0 0-.57-5.12c0-4.47-.3-6.94-2.16-17zM18.88 0h1.03C18 7.57 17.15 10.18 14.46 16.2c-1.95 4.37-2.67 9.19-2.42 14.89.2 4.33.71 7.7 2.28 16.13 1.09 5.88 1.57 8.77 1.94 12.2.96 8.9.24 16.08-2.8 22.79A463.4 463.4 0 0 1 0 109.43v-2.12a465 465 0 0 0 12.54-25.52c2.97-6.52 3.67-13.53 2.72-22.27-.36-3.4-.84-6.26-1.93-12.12-1.57-8.47-2.1-11.88-2.29-16.27-.26-5.84.48-10.81 2.5-15.33 2.64-5.9 3.48-8.47 5.34-15.8zm280.47 0a70.78 70.78 0 0 1-4.91 11.24c-2.56 4.7-4.01 8.45-4.86 11.98l-.4 1.8-.28 1.45a5.28 5.28 0 0 1-.74 2.07c-.74 1.03-1.93 1.28-5.13 1.25.92 0-9.85-.29-15.03-.29-10.2 0-18.45.82-29.46 2.56-16.87 2.66-17.73 2.77-23.66 2.52a42.57 42.57 0 0 1-8-1.09c-17.7-4.16-46.18-5.86-54.72-3.01-2.72.9-5.88 2.8-9.52 5.59a112.37 112.37 0 0 0-6.54 5.48c-1.4 1.25-9.17 8.5-10.78 9.84-1.45 1.2-8.18 7.42-8.85 8.02a114.65 114.65 0 0 1-4.55 3.9c-4.99 4.03-8.9 6.2-11.92 6.2-3.52.05-4.32 0-5.14-.4-1.13-.56-1.5-1.72-1.13-3.57.74-3.63 4.47-10.84 12.84-24.8 5.69-9.48 9.42-18 11.78-26.2 1.45-5.04 1.94-7.4 2.97-14.54h1.01c-1.05 7.3-1.54 9.7-3.01 14.82-2.39 8.28-6.16 16.89-11.9 26.44-8.3 13.84-12 21.01-12.7 24.48-.3 1.45-.08 2.14.59 2.47.6.3 1.35.35 3.48.3 3.92 0 7.69-2.1 12.5-5.98 1.4-1.13 2.87-2.39 4.51-3.86.66-.59 7.41-6.83 8.88-8.05 1.59-1.33 9.34-8.55 10.75-9.82 2.4-2.15 4.55-3.96 6.6-5.53 3.72-2.85 6.97-4.8 9.81-5.74 8.76-2.92 37.41-1.22 55.27 2.99 2.57.6 5.14.95 7.81 1.06 5.84.25 6.7.14 23.47-2.51 11.05-1.75 19.36-2.57 29.6-2.57 5.2 0 15.99.3 15.05.29 2.87.03 3.84-.17 4.3-.83.23-.32.4-.8.58-1.7l.28-1.43.4-1.85c.88-3.6 2.36-7.44 4.96-12.22 1.87-3.43 3.44-7 4.73-10.76h1.06zm-8.59 0c-5.91 17.94-9.55 22-19.76 22-4.5 0-10.22.32-28.69 1.5l-1.53.1c-15.6.99-23.47 1.4-28.78 1.4-5.35 0-13.24-.96-28.86-3.28l-1.54-.23C163.18 18.75 157.47 18 153 18c-4.45 0-7.3 1.01-10.96 3.34-.1.06-1.8 1.17-2.3 1.47-2.43 1.5-4.32 2.19-6.74 2.19-2.8 0-4.11-1.46-4.11-4.22 0-1.04.16-2.29.5-4.1.16-.82.9-4.4 1.07-5.32.8-4.11 1.3-7.68 1.47-11.36h2c-.17 3.82-.68 7.5-1.5 11.75-.19.94-.92 4.5-1.07 5.31a21.04 21.04 0 0 0-.47 3.72c0 1.7.46 2.22 2.11 2.22 1.99 0 3.55-.57 5.7-1.9.47-.28 2.15-1.37 2.26-1.44C144.92 17.14 148.12 16 153 16c4.62 0 10.3.74 28.9 3.51l1.53.23C198.93 22.04 206.8 23 212 23c5.25 0 13.11-.41 28.65-1.4l1.54-.1C260.73 20.32 266.43 20 271 20c8.95 0 12.15-3.4 17.66-20h2.1zM141.51 0h1.13c-2.06 3.86-2.63 5.1-2.77 6.19-.15 1.12.42 1.64 2.32 1.96 1.8.3 3.85.35 10.81.35 6.02 0 13 .56 21.35 1.62 3.95.5 8.03 1.1 13.13 1.89 24 3.7 22.5 3.49 26.83 3.49 24.02 0 51.83-2.24 60.45-6.94 2.88-1.57 5.05-4.49 6.6-8.56h1.07c-1.64 4.47-3.98 7.69-7.2 9.44-8.83 4.82-36.67 7.06-60.92 7.06-4.41 0-2.84.22-26.98-3.5-5.1-.8-9.17-1.38-13.1-1.88-8.31-1.06-15.26-1.62-21.23-1.62-7.04 0-9.1-.05-10.97-.37-2.38-.4-3.38-1.32-3.15-3.07.16-1.22.69-2.41 2.63-6.06zm76.4 0c5.69 1.64 10.37 2.5 14.09 2.5 9.59 0 16.7-.71 22.4-2.5h2.98C251.12 2.53 243.2 3.5 232 3.5c-4.5 0-10.32-1.21-17.53-3.5h3.45zM70.69 0c-2.87 3.27-6.95 5.39-12.02 6.53-3.98.89-7.5 1.08-12.92 1A97.24 97.24 0 0 0 44 7.5c-5.37 0-8.86-1.24-10.1-4.97A8.6 8.6 0 0 1 33.5 0h.99c.02.82.14 1.56.36 2.22C35.91 5.39 39.02 6.5 44 6.5l1.76.02c5.35.09 8.8-.1 12.69-.97C62.95 4.54 66.63 2.74 69.3 0h1.37zM0 207.87c7.31-.16 11.5 3.33 11.5 11.13 0 11.41-5.05 28.35-11.5 41.5v-2.3c5.93-12.72 10.5-28.47 10.5-39.2 0-7.18-3.7-10.3-10.5-10.13v-1zm0 7.05c1.23.14 2.18.58 2.87 1.31 1.4 1.48 1.6 3.72 1.16 7.58l-.16 1.3A28.93 28.93 0 0 0 3.5 229c0 3.2-1.48 9.52-3.5 15.9v-3.45c1.49-5.13 2.5-9.87 2.5-12.45 0-.98.08-1.75.37-4.02l.16-1.29c.42-3.56.24-5.59-.88-6.77-.5-.53-1.21-.87-2.15-1v-1zM0 410.9v-1.47a21.67 21.67 0 0 0 2.97-4.7c1.32-2.7 2.68-6.28 4.56-11.89 7.85-23.55 7.83-26.6.25-30.4-2.25-1.12-4.8-1.43-7.78-.91v-1.02a13.1 13.1 0 0 1 8.22 1.04c8.24 4.12 8.26 7.6.25 31.6-1.88 5.66-3.25 9.27-4.6 12.02A20.82 20.82 0 0 1 0 410.9zM33.64 452c1.68 0 3.04-.23 8.34-1.31l2.38-.47c8.26-1.57 12.72-1.3 14.53 2.33 1.38 2.75-.47 5.86-4.75 9.68a75.6 75.6 0 0 1-5.08 4.07c-.94.7-4.89 3.59-5.79 4.27-1.86 1.4-2.97 2.37-3.47 3.03a19.08 19.08 0 0 0-2.89 5.5c.07-.2-4.02 13.65-6.96 22.22-2.7 7.85-5.56 10.72-8.82 8.59-2.11-1.4-3.66-4.24-6.6-11.03-1.98-4.62-2.5-5.76-3.4-7.4-4.55-8.18-3.9-23.9-.05-32.87a9.6 9.6 0 0 1 6.98-5.96c2.59-.66 4.86-.75 11.78-.67l3.8.02zm0 2c-1.13 0-2.09 0-3.82-.02-12.07-.13-14.83.57-16.9 5.41-3.63 8.47-4.26 23.55-.05 31.12.96 1.73 1.48 2.88 3.5 7.58 2.72 6.3 4.24 9.08 5.86 10.14 1.64 1.08 3.5-.8 5.82-7.55a682.9 682.9 0 0 0 6.97-22.24 21.03 21.03 0 0 1 3.18-6.04c.65-.87 1.85-1.9 3.86-3.43.92-.7 4.87-3.57 5.8-4.27 2.02-1.5 3.6-2.77 4.95-3.97 3.63-3.23 5.09-5.7 4.3-7.28-1.21-2.42-5.07-2.65-12.38-1.27l-2.35.47c-5.49 1.11-6.86 1.35-8.74 1.35zm345.63 146c-3.45-12.26-3.77-14.13-3.77-19 0-3.33-.13-6.27-.43-11.34-.63-10.33-.65-13.5.26-17.07 1.21-4.74 4.21-7.1 9.67-7.1h26c4.08 0 5.19 1.85 5.93 7.11.1.79.13.97.19 1.32.84 5.35 2.8 7.58 8.88 7.58 3.64 0 5.54.4 6.43 1.37.76.83.76 1.44.36 3.93-.85 5.26.5 8.85 7.5 13.8 6.32 4.45 11.63 5.36 16.55 3.37 3.8-1.54 6.73-4.16 11.92-10l1.1-1.23 1.09-1.23a75.6 75.6 0 0 1 2.7-2.86 35.81 35.81 0 0 1 9.57-6.73c1.52-.76 1.72-.86 5.66-2.63 6.1-2.73 9.01-4.5 11.74-7.62 2.63-3 4.67-4.85 6.7-6.04 3.18-1.85 5.46-2.13 13.68-2.13 5.98 0 10.56-4.32 18-14.99l2.82-4.03c1.06-1.5 1.94-2.7 2.79-3.79 7.87-10.12 19.38-10.4 30.74.96 5.54 5.53 10.17 19.43 13.64 38.51 2.5 13.75 4.18 29.46 4.47 39.84h-1c-.3-10.32-1.96-25.97-4.45-39.66-3.43-18.87-8.02-32.65-13.36-37.99-10.95-10.95-21.76-10.68-29.26-1.04-.83 1.07-1.7 2.26-2.75 3.75l-2.81 4.02c-7.65 10.95-12.38 15.42-18.83 15.42-8.04 0-10.21.26-13.17 2-1.92 1.12-3.9 2.9-6.45 5.83-2.86 3.26-5.87 5.09-12.09 7.88a103.35 103.35 0 0 0-5.62 2.6 34.84 34.84 0 0 0-9.32 6.54 74.67 74.67 0 0 0-3.75 4.05l-1.1 1.24c-5.28 5.95-8.29 8.64-12.28 10.25-5.26 2.13-10.92 1.17-17.5-3.48-7.33-5.17-8.82-9.15-7.92-14.77.34-2.12.34-2.6-.1-3.1-.64-.69-2.34-1.04-5.7-1.04-6.63 0-8.96-2.63-9.87-8.42l-.2-1.34c-.67-4.82-1.53-6.24-4.93-6.24h-26c-5 0-7.6 2.04-8.7 6.34-.88 3.43-.85 6.57-.23 16.76a177 177 0 0 1 .43 11.4c0 4.78.32 6.63 3.81 19h-1.04zm13.68 0c-1.31-6.58-1.61-10.71-1.36-14.84.04-.7.1-1.44.18-2.38l.23-2.56c.34-3.81.5-6.97.5-11.22 0-4.94 1.46-7.76 4.21-8.42 2.38-.58 5.56.54 9.2 3 6.64 4.52 13.99 13.07 16.55 19.23 4.77 11.44 14.12 15.69 33.54 15.69 8.6 0 14.32-2.35 20.67-7.88 1.45-1.26 15.06-15 21-20 7.21-6.07 11.77-7.59 20.62-8.32 5.52-.45 7.98-.9 11.44-2.36 4.58-1.95 9.36-5.48 14.9-11.29 7.43-7.76 13.25-8.92 17.47-4.3 3.32 3.63 5.46 10.58 6.82 20.24.73 5.17.94 7.74 1.58 17.38.25 3.75.17 5.32-.92 18.03h-1c1.09-12.7 1.17-14.28.92-17.97-.64-9.6-.85-12.16-1.57-17.3-1.33-9.47-3.43-16.27-6.56-19.7-3.76-4.11-8.93-3.08-16 4.32-5.65 5.9-10.54 9.5-15.25 11.5-3.58 1.53-6.13 1.99-11.6 2.44-8.8.72-13.17 2.18-20.2 8.1-5.9 4.96-19.5 18.7-21 19.99-6.52 5.68-12.47 8.12-21.32 8.12-19.78 0-29.5-4.42-34.46-16.3-2.49-5.97-9.71-14.38-16.2-18.79-3.42-2.32-6.36-3.35-8.4-2.86-2.2.53-3.44 2.92-3.44 7.45 0 4.28-.16 7.47-.5 11.31l-.23 2.56c-.09.93-.14 1.65-.19 2.35-.24 4.08.06 8.18 1.39 14.78h-1.02zm113.75 0c2.52-3.26 8.93-11.79 10.9-14.3 5.48-6.98 13.05-12.38 19.4-13.94 7.01-1.71 11.5 1.45 11.5 9.24 0 4.02-.04 5.16-.74 19h-1c.7-13.85.74-15 .74-19 0-7.12-3.86-9.83-10.26-8.26-6.11 1.5-13.5 6.77-18.85 13.57-1.86 2.36-7.65 10.07-10.43 13.69h-1.26zm-9.86-338.96c3.44 2.71 7 5.1 11.44 7.75 1.06.64 8.42 4.9 10.35 6.1 11.27 7 15 13.35 12.35 25.33-1.45 6.52-4.53 11.1-9.39 14.44-3.83 2.63-8.07 4.26-16.08 6.56-11.97 3.45-13.68 3.99-18.82 6.28a60.18 60.18 0 0 0-7.81 4.18c-11.11 7.07-19.1 7.7-27.96 3.28-3.56-1.77-17.2-11-17.2-11.01a101.77 101.77 0 0 0-5.2-3.07c-16.04-8.83-34.27-24.16-34.52-31.85-.11-3.46 1.99-6.57 6.28-10.26 1.03-.9 2.18-1.81 3.68-2.95.72-.55 3.38-2.56 3.94-3 4.47-3.4 7.18-5.79 9.32-8.45 11.12-13.82 26.55-28.68 34.36-32.28 12.06-5.54 19.84-5.77 27.37.12 3.25 2.54 5.65 6.54 8.58 13.35.29.65 2.3 5.45 2.88 6.74 1.62 3.65 2.9 5.8 4.24 6.94.72.6 1.45 1.2 2.2 1.8zm-3.49-.28c-1.63-1.39-3.03-3.74-4.77-7.65-.58-1.3-2.6-6.12-2.88-6.76-2.81-6.5-5.08-10.3-7.98-12.56-6.83-5.35-13.85-5.15-25.3.12-7.45 3.42-22.7 18.12-33.64 31.72-2.27 2.82-5.08 5.3-9.67 8.79l-3.94 2.98a79.98 79.98 0 0 0-3.59 2.88c-3.87 3.33-5.67 6-5.58 8.69.21 6.64 18.14 21.72 33.48 30.15 1.76.97 3.5 2 5.3 3.13.12.08 13.61 9.22 17.03 10.92 8.22 4.1 15.46 3.52 26-3.18a62.17 62.17 0 0 1 8.07-4.31c5.25-2.35 7-2.9 19.08-6.38 7.8-2.24 11.9-3.82 15.5-6.3 4.44-3.04 7.23-7.18 8.56-13.22 2.44-11.02-.83-16.6-11.45-23.2-1.9-1.18-9.23-5.42-10.32-6.08-4.5-2.69-8.13-5.12-11.64-7.9-.77-.6-1.52-1.21-2.26-1.84zM87.72 241.6c4.3-2.98 7.88-5 12.14-6.95.84-.4 1.73-.78 2.78-1.24l4.37-1.88a164.3 164.3 0 0 0 17.74-8.96 320.67 320.67 0 0 1 27.87-14.5c4.22-1.95 21.89-9.84 21.17-9.52 19.17-8.62 28.1-6.93 49.5 8.05 7.91 5.54 13.24 13.25 16.45 22.66 3.02 8.83 3.76 16.51 3.76 27.75 0 8.32-.66 12.95-3.68 18.97-4.18 8.36-12.3 16.14-25.58 23.47-24.45 13.49-38.83 27.55-52.83 47.84-8.83 12.8-47.76 44.21-65.16 54.15C75.04 413.55 48.89 423.5 31 423.5c-10.05 0-14.67-4.78-14.76-13.37-.07-6.32 2.06-13.73 6.3-24.32 2.95-7.37 2.02-12.9-2.16-22.29-3.19-7.17-3.88-9.14-3.88-12.52 0-3.35 1.87-6.9 5.52-11.07 2.61-3 3.5-3.83 11.9-11.5 5.09-4.66 8.08-7.6 10.7-10.75 9.46-11.36 12.62-19.47 17.9-44.78 3.12-15.05 6.63-20.28 15.12-25.25.8-.47 3.95-2.25 4.7-2.68a76.66 76.66 0 0 0 5.38-3.38zm.56.82a77.63 77.63 0 0 1-5.44 3.43l-4.7 2.67c-8.23 4.82-11.57 9.81-14.65 24.6-5.3 25.45-8.51 33.7-18.1 45.21-2.66 3.19-5.68 6.16-10.8 10.84-8.36 7.64-9.24 8.48-11.82 11.42-3.5 4.01-5.27 7.36-5.27 10.42 0 3.18.68 5.1 3.8 12.12 4.27 9.6 5.24 15.37 2.16 23.07-4.18 10.47-6.29 17.78-6.22 23.93.08 8.06 4.26 12.38 13.76 12.38 17.67 0 43.68-9.9 64.75-21.93 17.28-9.88 56.1-41.2 64.84-53.85 14.08-20.42 28.57-34.59 53.17-48.16 13.12-7.23 21.09-14.87 25.17-23.03 2.92-5.86 3.57-10.35 3.57-18.53 0-11.13-.74-18.73-3.7-27.43-3.15-9.22-8.36-16.75-16.09-22.16-21.13-14.8-29.7-16.42-48.5-7.95.7-.32-16.96 7.56-21.17 9.5-1.7.8-3.3 1.55-4.86 2.3a319.68 319.68 0 0 0-22.93 12.17 165.3 165.3 0 0 1-17.85 9.01l-4.37 1.88c-1.04.45-1.92.84-2.76 1.23a74.56 74.56 0 0 0-11.99 6.86zm-7.6 12.2c7.7-6.25 12.3-8.17 23.68-11.27 6.12-1.67 9.12-2.95 12.31-5.72 3.8-3.3 7.47-4.52 15.86-6.1 2.75-.52 3.67-.7 5.06-1.02 5.48-1.24 9.48-2.93 13.1-5.89 10.42-8.53 25.4-14.11 36.31-14.11 5.33 0 16.77 7.58 25.74 17.16 10.73 11.46 15.96 23.27 12.73 32.5-3.18 9.1-11.39 18.57-23.03 27.86-8.44 6.73-18.36 13-25.22 16.43-3.72 1.86-6.59 4.88-9.77 9.99-.69 1.1-11.1 20.25-16.03 27.83-5.62 8.65-15.4 17.36-30.23 27.96a552.58 552.58 0 0 1-9.2 6.42c-.13.09-6.81 4.65-8.6 5.89-6.47 4.46-10.35 7.35-13.05 9.83-11.64 10.67-37.14 15.54-43.7 8.98-1.96-1.96-2.2-4.06-1.95-10.52.37-9.42-.5-14.5-4.95-20.51a34.09 34.09 0 0 0-7.04-6.92c-3.93-2.95-6.07-6.11-6.56-9.49-.97-6.61 3.87-13.06 14.17-21.69 1.58-1.32 6.67-5.44 7.09-5.78a48.03 48.03 0 0 0 5.23-4.77c4.1-4.63 5.85-9.55 7.8-20.07a501.52 501.52 0 0 0 .8-4.37c.33-1.87.6-3.3.88-4.73.74-3.78 1.5-7.18 2.4-10.63 1-3.78 1.38-5.5 2.36-10.37.6-3.02.93-4.21 1.56-5.47 1.22-2.45 1.27-2.5 12.25-11.42zm.64.78c-10.77 8.74-10.88 8.84-12 11.08-.58 1.16-.88 2.3-1.47 5.22-.98 4.89-1.36 6.63-2.37 10.44-.9 3.43-1.65 6.8-2.39 10.56a339.79 339.79 0 0 0-1.29 6.95l-.39 2.15c-1.98 10.68-3.77 15.74-8.04 20.54a48.77 48.77 0 0 1-5.34 4.88c-.42.34-5.5 4.47-7.07 5.78-10.04 8.4-14.72 14.65-13.83 20.78.45 3.1 2.44 6.03 6.17 8.83 3 2.25 5.39 4.62 7.24 7.12 4.63 6.24 5.52 11.52 5.15 21.15-.25 6.14-.01 8.1 1.66 9.78 6.1 6.1 31.02 1.33 42.31-9.02 2.75-2.52 6.66-5.43 13.16-9.92l8.6-5.89c3.63-2.48 6.45-4.44 9.19-6.4 14.73-10.54 24.44-19.18 29.97-27.7 4.9-7.54 15.31-26.68 16.02-27.8 3.27-5.26 6.26-8.41 10.18-10.37 6.79-3.4 16.65-9.63 25.03-16.32 11.52-9.18 19.61-18.53 22.72-27.4 3.07-8.78-2.02-20.27-12.52-31.49-8.8-9.4-20.04-16.84-25.01-16.84-10.67 0-25.43 5.5-35.68 13.89-3.76 3.07-7.9 4.81-13.5 6.09-1.41.32-2.35.5-5.11 1.02-8.21 1.55-11.76 2.73-15.38 5.88-3.34 2.9-6.45 4.22-12.7 5.92-11.26 3.07-15.75 4.94-23.31 11.09zM212 251.85c0 7.56-.6 10.92-2.6 14.3-1.1 1.84-7.66 10.05-8.6 11.3-5.96 7.94-9.33 10.28-17.26 13.76-1.34.58-2.2 1-3.03 1.5-.55.33-1.2.66-2 1.02-.71.33-4.46 1.9-5.52 2.39-6.05 2.78-8.99 5.8-8.99 10.73 0 10.97-18.95 36.12-34.51 44.87-8.18 4.6-21.3 9.36-32.78 11.86-13.33 2.9-22.49 2.48-24.62-2.32-1.32-2.97-4.4-4.26-11.98-5.81l-.6-.12c-4.84-.99-6.94-1.55-9.03-2.64-2.92-1.5-4.48-3.7-4.48-6.84 0-2.74 1.08-5.77 3.25-9.67.85-1.53 1.82-3.13 3.23-5.35-.16.25 2.83-4.4 3.67-5.76 6.69-10.7 9.85-18.5 9.85-27.22 0-18.41 11.22-33.37 27.5-42.86 5.22-3.05 9.23-3.31 15.2-2.12 5.04 1 6.05.9 7.43-1.52 4.5-7.85 7.04-9.5 15.87-9.5 3.93 0 6.97-.98 10.47-3.16 1.56-.97 8.67-6.17 10.99-7.68 9.2-5.98 11.34-7 25.2-11.95 6.95-2.48 15.18 1.28 22.33 9.12 6.55 7.19 11.01 16.61 11.01 23.67zm-2 0c0-6.5-4.25-15.48-10.49-22.32-6.67-7.32-14.16-10.74-20.17-8.59-13.73 4.9-15.73 5.85-24.8 11.75-2.24 1.46-9.37 6.68-11.01 7.7-3.8 2.36-7.2 3.46-11.53 3.46-8.08 0-9.98 1.23-14.13 8.5-1.1 1.91-2.51 2.88-4.35 3.09-1.3.14-1.9.05-5.22-.61-5.53-1.1-9.07-.88-13.8 1.88-15.72 9.17-26.5 23.55-26.5 41.14 0 9.2-3.28 17.29-10.15 28.28l-3.68 5.77c-1.39 2.19-2.35 3.77-3.17 5.25-2.02 3.63-3 6.38-3 8.7 0 4.19 2.87 5.67 11.9 7.52l.61.12c8.27 1.7 11.7 3.13 13.4 6.95 3.17 7.14 36 0 54.6-10.46 14.98-8.43 33.49-32.99 33.49-43.13 0-5.9 3.47-9.48 10.16-12.55 1.1-.5 4.85-2.08 5.52-2.38.74-.34 1.32-.64 1.8-.93.92-.55 1.85-1 3.25-1.62 7.65-3.35 10.75-5.5 16.47-13.12 1.02-1.36 7.47-9.42 8.47-11.11 1.79-3.01 2.33-6.06 2.33-13.3zm-37.18-22.4c.15-.1 2.4-1.51 2.95-1.84.96-.57 1.7-.94 2.43-1.17 2.57-.83 5.06-.1 11.04 3.12 14.86 8 19.43 22.87 9.18 38.71-4.04 6.24-9.37 9-18.72 11.11-.85.2-1.2.27-3.13.68-6.04 1.29-8.78 2.08-11.6 3.65-3.63 2.02-6.09 4.98-7.5 9.44-7.87 24.93-19.72 43.34-36.28 50.31-16.45 6.93-21.13 8.53-27.98 8.89-4.94.25-9.8-.65-15.4-2.89a44.45 44.45 0 0 1-5.64-2.6c-4.02-2.33-5.14-4.74-4.5-9.31.3-2.13 3.77-15.53 4.84-20.65.63-3.05 1.19-6.14 1.75-9.69a464.04 464.04 0 0 0 1.35-8.9c1.42-9.41 2.5-14.27 4.49-18.65 2.46-5.43 6.13-9.03 11.72-11.13 6.59-2.47 10.54-3.1 18.03-3.53 4.75-.27 6.68-.64 9-2.05.61-.37 1.22-.81 1.82-1.33a30.61 30.61 0 0 0 3.37-3.4c.59-.69 2.38-2.9 2.63-3.19 3.36-4 6.3-5.53 12.33-5.53 3.94 0 5.9-.92 8.18-3.36-.17.18 2.75-3.14 3.85-4.22a30.95 30.95 0 0 1 6.79-5c1.5-.83 3.15-1.62 4.99-2.38a64.92 64.92 0 0 0 10.01-5.1zm-14.52 8.34a29.95 29.95 0 0 0-6.57 4.84 116.68 116.68 0 0 0-3.82 4.2c-2.46 2.63-4.68 3.67-8.91 3.67-5.72 0-8.39 1.39-11.57 5.17-.23.28-2.03 2.5-2.63 3.2a31.6 31.6 0 0 1-3.47 3.51c-.65.55-1.3 1.03-1.96 1.43-2.5 1.51-4.55 1.9-9.47 2.19-7.39.42-11.25 1.04-17.72 3.47-5.34 2-8.82 5.4-11.17 10.6-1.93 4.27-3 9.07-4.41 18.39l-.65 4.34-.7 4.57c-.57 3.56-1.12 6.67-1.76 9.73-1.08 5.18-4.54 18.53-4.83 20.59-.59 4.17.35 6.18 4.01 8.3 1.35.77 3.1 1.58 5.52 2.55 5.46 2.18 10.18 3.05 14.97 2.8 6.69-.34 11.32-1.93 27.65-8.8 16.21-6.83 27.92-25.01 35.71-49.7 1.49-4.7 4.12-7.86 7.97-10 2.93-1.63 5.74-2.45 11.87-3.76 1.92-.4 2.28-.49 3.12-.68 9.12-2.06 14.24-4.7 18.1-10.67 9.92-15.34 5.55-29.55-8.82-37.29-5.75-3.1-8.03-3.76-10.25-3.05-.65.2-1.33.54-2.23 1.08-.55.32-2.77 1.72-2.93 1.82a65.91 65.91 0 0 1-10.16 5.17c-1.8.75-3.42 1.52-4.89 2.33zm-42.39 32.72c16.15-2.87 26.36-.97 32.47 6.16 5.08 5.93 1.13 21.42-5.93 35.55-4.79 9.58-10.6 16.21-23.16 25.19-14.15 10.1-35.5 12.2-40.71 3.85-1.86-2.97-2.1-8.14-1.06-15.73.78-5.68 1.86-10.71 4.73-22.98l.12-.51c1.59-6.8 2.37-10.31 3.14-14.14 1.45-7.25 3.74-11.47 7.26-13.74 2.81-1.8 5.53-2.28 12.33-2.62 5.33-.27 7.56-.46 10.81-1.03zm.18.98c-3.3.59-5.56.78-10.94 1.05-6.62.33-9.23.78-11.84 2.46-3.25 2.1-5.42 6.09-6.82 13.1-.77 3.84-1.56 7.35-3.15 14.17l-.12.5c-2.86 12.24-3.93 17.26-4.7 22.9-1.03 7.36-.79 12.36.9 15.07 4.82 7.7 25.54 5.67 39.29-4.15 12.43-8.88 18.13-15.39 22.84-24.81 6.86-13.72 10.75-29 6.07-34.45-5.84-6.81-15.7-8.65-31.53-5.84zM132 276.5c7.12 0 10.66 3.08 11.25 8.7.42 4.02-.43 8.14-2.77 15.94-2.56 8.52-18.36 25.38-27.2 31.28-7.01 4.67-20.02 5.67-26.57.99-3.99-2.85-3.53-12.08.02-26.46.68-2.75 1.47-5.65 2.37-8.76a412.6 412.6 0 0 1 3.05-10.14l.37-1.2c1.48-4.8 5.1-7.75 10.73-9.27 4.4-1.2 9.54-1.5 17.48-1.33l3.89.1c3.87.11 5.42.15 7.38.15zm0 1c-1.97 0-3.53-.04-7.41-.15l-3.88-.1c-7.85-.17-12.92.13-17.2 1.3-5.32 1.43-8.67 4.16-10.03 8.6a1277.83 1277.83 0 0 1-1.6 5.21c-.68 2.2-1.27 4.17-1.82 6.1-.9 3.1-1.68 5.99-2.36 8.73-3.43 13.88-3.87 22.93-.4 25.4 6.17 4.42 18.73 3.45 25.42-1 8.66-5.78 24.33-22.49 26.8-30.73 2.3-7.67 3.14-11.71 2.73-15.56-.53-5.1-3.64-7.8-10.25-7.8zm-17.79 7a31.3 31.3 0 0 1 8.57 1.4c5.42 1.78 8.72 5.03 8.72 10.1 0 9.59-9.51 17.2-22.34 21.47-9.82 3.28-13.62-1.79-11.66-16.54.84-6.28 3.82-10.67 8.24-13.46a20.38 20.38 0 0 1 8.47-2.97zm-.6 1.08a19.39 19.39 0 0 0-7.34 2.73c-4.18 2.64-6.98 6.78-7.77 12.76-1.89 14.11 1.36 18.45 10.34 15.46C121.3 312.37 130.5 305 130.5 296c0-4.56-2.98-7.5-8.03-9.15a28.05 28.05 0 0 0-8.2-1.35c-.13 0-.35.03-.66.08zm80.87-23.45c-2.72 9.8-14.93 9.86-26.72 3.3-10.17-5.64-13.8-17.98-5-22.87a66.53 66.53 0 0 0 4.48-2.7l2.03-1.3a50.15 50.15 0 0 1 3.92-2.3c4.73-2.43 8.82-2.8 14-.72 9.16 3.66 10.98 13.33 7.3 26.6zm-20.83-24.98a49.26 49.26 0 0 0-3.84 2.25l-2.03 1.3c-.84.53-1.5.95-2.16 1.35-.82.5-1.6.96-2.38 1.39-7.94 4.4-4.59 15.8 5 21.12 11.31 6.29 22.8 6.23 25.28-2.7 3.57-12.83 1.85-21.97-6.7-25.4-4.9-1.95-8.69-1.62-13.17.7zm17.85 12.15c0 5.7-2.44 9-6.64 9.96-3.3.76-7.56-.05-11.08-1.81l-1.89-.94c-.67-.34-1.18-.62-1.63-.88-4.07-2.38-4.13-4.97.34-10.93 6.8-9.06 20.9-7.16 20.9 4.6zm-1 0c0-5.3-2.87-8.55-7.32-9.16-4.23-.57-8.99 1.44-11.78 5.16-4.15 5.54-4.1 7.44-.64 9.47.44.25.93.51 1.59.85l1.87.93c3.34 1.67 7.36 2.44 10.42 1.74 3.73-.86 5.86-3.74 5.86-9zM387 530.3c0-12.8 2.44-16.74 18.48-29.77a56.8 56.8 0 0 1 7.61-5.2c2.6-1.5 5.33-2.82 8.5-4.18 1.24-.53 2.48-1.05 4.1-1.7l3.92-1.57c9.4-3.83 13.74-6.7 16.62-12.05 1.2-2.22 2.21-4.4 3.23-6.83a148.57 148.57 0 0 0 1.54-3.84l.3-.74.56-1.44c3.2-8.02 6.05-12.08 12.7-16.5a35.26 35.26 0 0 0 4.96-4 46.36 46.36 0 0 0 3.88-4.29c.27-.34 2.55-3.2 3.2-3.98 3.48-4.15 6.51-5.9 11.51-5.9 3.08 0 5.62-.63 9.57-2.1 5.42-2.02 6.53-2.34 8.96-2.2 2.53.13 4.85 1.26 7.18 3.59 1.3 1.3 5.55 5.83 6.52 6.78 5.06 5 9.44 6.92 17.77 6.92a197.5 197.5 0 0 1 12.08.45c15.93.87 21.94.57 25.28-2.21 6.91-5.77 11.64-2.73 11.64 7.76 0 10.73-8.6 20-19 20-4.8 0-8.32 1.43-9.34 3.67-1.12 2.48.68 6.15 5.98 10.57 13.6 11.33 11.24 20.76-7.64 20.76a21.91 21.91 0 0 0-14.6 5.24c-3.28 2.71-5.8 5.86-9.85 11.82l-1.52 2.25c-3.1 4.57-5.01 7.1-7.32 9.4-6.21 6.21-9.3 7.64-13.05 6.89l-1-.23a10.82 10.82 0 0 0-2.66-.37c-1.6 0-2.41.67-8.18 6.22-4.85 4.67-8.07 6.78-11.82 6.78-1.33 0-3.46 1.15-6.45 3.45-1.27.98-2.68 2.14-4.5 3.7l-4.92 4.29a181.11 181.11 0 0 1-4.54 3.82c-9.33 7.56-15.63 10.2-20.21 6.52-2.7-2.15-4.14-4.51-4.63-7.26-.37-2.04-.26-3.63.29-7.3.87-5.85.65-8.42-1.83-11.6-2.32-2.98-2.96-3.22-3.77-2.39-.25.26-1.35 1.63-1.61 1.94-2.21 2.5-4.85 3.57-9 2.82-4.6-.84-5.57-4.11-4.72-10.09l.24-1.56c.6-3.66.68-4.93.25-5.8-.44-.86-1.9-.94-5.23.4l-.74.29c-13.78 5.54-15.26 6.09-19.43 6.67-6.03.84-9.31-1.6-9.31-7.9zm2 0c0 5 2.14 6.6 7.04 5.92 3.91-.55 5.43-1.1 18.95-6.55l.75-.3c4.17-1.66 6.7-1.54 7.76.58.71 1.43.62 2.76-.06 7l-.24 1.53c-.72 5.04-.06 7.27 3.09 7.84 3.43.62 5.38-.17 7.15-2.18.2-.23 1.34-1.66 1.68-2 1.9-1.96 3.82-1.25 6.78 2.55 2.9 3.74 3.17 6.77 2.22 13.12-1 6.75-.52 9.4 3.62 12.71 3.49 2.8 9.1.45 17.7-6.51 1.35-1.1 2.75-2.28 4.49-3.78l4.93-4.3c1.84-1.58 3.27-2.76 4.58-3.77 3.34-2.56 5.74-3.86 7.67-3.86 3.04 0 5.95-1.9 10.43-6.22l2.46-2.39c.94-.89 1.67-1.56 2.37-2.13 1.81-1.49 3.3-2.26 4.74-2.26 1.03 0 1.81.13 3.1.42.7.16.71.17.96.21 2.96.6 5.45-.55 11.23-6.33 2.2-2.2 4.06-4.65 7.09-9.11l1.52-2.25c4.15-6.11 6.76-9.37 10.22-12.24a23.9 23.9 0 0 1 15.88-5.7c16.87 0 18.62-7.01 6.36-17.23-5.9-4.92-8.12-9.41-6.52-12.93 1.42-3.12 5.67-4.84 11.16-4.84 9.25 0 17-8.34 17-18 0-8.94-2.88-10.79-8.36-6.23-3.94 3.28-9.98 3.59-26.67 2.68l-1.02-.06c-5.09-.27-7.99-.39-10.95-.39-8.88 0-13.76-2.14-19.18-7.5-1-.98-5.26-5.53-6.53-6.79-1.99-1.99-3.86-2.9-5.87-3-2.03-.12-3.06.18-8.15 2.07-4.15 1.55-6.9 2.22-10.27 2.22-4.33 0-6.84 1.46-9.98 5.2-.63.74-2.89 3.6-3.18 3.95a48.29 48.29 0 0 1-4.04 4.46 37.26 37.26 0 0 1-5.24 4.23c-6.26 4.17-8.9 7.91-11.95 15.58l-.57 1.43-.28.74a531.5 531.5 0 0 1-1.56 3.88 77.49 77.49 0 0 1-3.32 7c-3.16 5.88-7.82 8.97-17.63 12.96l-3.92 1.58c-1.6.64-2.84 1.15-4.05 1.67a79.2 79.2 0 0 0-8.3 4.08 54.8 54.8 0 0 0-7.35 5.02C391.12 514.78 389 518.21 389 530.31zm133.22-79.76c3.06 1.53 6.54 2.02 10.68 1.7 2.53-.2 4.91-.62 8.8-1.49 5.36-1.19 6.33-1.38 8.33-1.54 2.78-.23 4.82.17 6.29 1.4 1.58 1.31 1.96 2.72 1.26 4.22-.66 1.38-1.05 1.74-5.05 5.07-3.53 2.93-5.03 4.83-5.03 7.09 0 7.3 1.29 10.02 7.83 15.62 3.86 3.3 5.93 6.84 5.28 9.62-.75 3.25-4.96 5.02-12.61 5.02-7.18 0-12.7 4.61-20.03 14.68-.5.7-3.96 5.57-4.94 6.87a38.89 38.89 0 0 1-4.72 5.5c-1.06.98-2.09 1.7-3.1 2.15-2.85 1.26-5.05 1.57-9.83 1.74-7.66.27-10.87 1.45-14.98 7.1-1.58 2.17-3.11 4-4.68 5.6a42.87 42.87 0 0 1-8.65 6.69c-.15.08-10.69 6.19-14.8 8.83-3.76 2.42-6.45 2.04-8.22-.77-1.28-2.03-1.9-4.54-2.87-10.35-.84-5.08-1.27-7.08-2.06-8.93-.97-2.3-2.21-3.24-4.02-2.88-6.2 1.24-8.95 1.39-10.98.2-2.37-1.4-3.13-4.62-2.62-10.73.16-1.96-1.04-2.87-3.76-3.04-2.24-.13-4.9.2-9.94 1.12l-.69.12c-7.97 1.45-10.72 1.72-12.72.73-2.91-1.43-1.6-5.27 4.23-12.21 5.48-6.53 10.6-10.81 15.76-13.53 3.74-1.97 5.94-2.65 12.16-4.1 7.29-1.72 10.4-3.51 14.04-9.31 2.96-4.75 10.74-18.62 12.14-20.84 3.59-5.67 6.8-9.1 11.05-11.34 2.6-1.38 4.72-2.82 9.17-6.07l1.38-1.01c7.85-5.72 12.3-7.98 17.68-7.98 4.22 0 6.49 1.36 9.13 4.77.34.43 1.67 2.22 2 2.67.85 1.09 1.6 1.98 2.45 2.83a24.29 24.29 0 0 0 6.64 4.78zm-.44.9c-2.8-1.4-5-3.03-6.92-4.97-.87-.9-1.65-1.81-2.51-2.93-.35-.46-1.68-2.25-2.01-2.67-2.47-3.18-4.46-4.38-8.34-4.38-5.09 0-9.4 2.2-17.09 7.78l-1.38 1.01c-4.49 3.29-6.63 4.74-9.3 6.15-4.06 2.15-7.16 5.45-10.66 11-1.39 2.19-9.16 16.05-12.15 20.82-3.79 6.07-7.13 7.98-14.66 9.75-6.13 1.45-8.27 2.1-11.92 4.02-5.04 2.66-10.05 6.86-15.46 13.3-5.43 6.46-6.53 9.69-4.55 10.66 1.7.84 4.48.57 12.1-.81l.7-.13c5.12-.93 7.82-1.27 10.17-1.12 3.21.2 4.92 1.48 4.7 4.11-.48 5.76.2 8.64 2.13 9.78 1.73 1.02 4.34.88 10.27-.31 2.35-.47 4 .78 5.14 3.47.83 1.95 1.27 4 2.07 8.8l.06.36c.94 5.65 1.55 8.11 2.72 9.98 1.46 2.3 3.52 2.6 6.84.46 4.14-2.66 14.69-8.77 14.81-8.85a41.9 41.9 0 0 0 8.46-6.54 47.89 47.89 0 0 0 4.6-5.48c4.32-5.95 7.81-7.23 15.74-7.5 4.66-.17 6.76-.47 9.46-1.67.9-.4 1.85-1.06 2.84-1.96a38.03 38.03 0 0 0 4.6-5.36c.96-1.3 4.4-6.16 4.93-6.87 7.5-10.31 13.22-15.09 20.83-15.09 7.24 0 11.02-1.6 11.64-4.24.54-2.32-1.36-5.55-4.97-8.64-6.75-5.79-8.17-8.79-8.17-16.38 0-2.67 1.64-4.74 5.39-7.86 3.8-3.17 4.23-3.56 4.78-4.73.5-1.06.25-1.99-.99-3.03-2.23-1.85-4.72-1.65-13.76.36-3.93.87-6.35 1.3-8.94 1.5-4.3.34-7.97-.18-11.2-1.8zm-28-3.9c5.65-2.82 8.96-2.2 12.9 1.37.56.5 2.6 2.47 3.02 2.87 4.2 3.89 8.07 5.71 14.3 5.71 11.37 0 14 1.41 16.1 8.09.26.83 1.35 4.6 1.66 5.62.8 2.63 1.64 5.03 2.7 7.6 2.13 5.17 2.64 8.32 1.72 10.24-.77 1.61-2.1 2.18-5.37 2.79-2.32.43-2.8.53-3.85.85-1.85.58-3.35 1.4-4.6 2.66-1 1-2.02 2.13-3.31 3.66-.6.71-2.91 3.5-3.46 4.14-7.2 8.54-12.43 12.35-19.59 12.35-3.76 0-6.95 1.28-10.59 4-1.84 1.37-11.62 10.31-15.22 13.06a73.09 73.09 0 0 1-8.95 5.88c-4.58 2.54-7.35 3.22-8.98 2.23-1.32-.8-1.65-2.07-1.94-5.5a52.53 52.53 0 0 0-.16-1.81c-.54-4.73-2.24-6.86-7.16-6.86-7.11 0-8.85-1.23-9.73-5.41-.96-4.61-2.1-6.7-6.55-9.67-3.97-2.65-4.31-5.42-1.52-8.22 2-2 4.63-3.5 11.35-6.87 6.61-3.3 9.2-4.8 11.1-6.68a39.09 39.09 0 0 0 5.3-6.48c.98-1.5 1.83-3.04 2.88-5.13l2.12-4.3c.91-1.83 1.72-3.37 2.61-4.98 5.74-10.32 10.37-14.78 23.22-21.2zm-22.34 21.7c-.89 1.59-1.69 3.12-2.6 4.94l-2.11 4.3a52.9 52.9 0 0 1-2.94 5.23 40.08 40.08 0 0 1-5.44 6.63c-2 2-4.62 3.51-11.35 6.87-6.6 3.3-9.2 4.8-11.1 6.69-2.33 2.34-2.08 4.37 1.38 6.67 4.7 3.14 5.96 5.46 6.97 10.3.78 3.7 2.09 4.62 8.75 4.62 5.5 0 7.57 2.57 8.15 7.75.06.5.09.82.17 1.84.25 3.06.55 4.17 1.46 4.72 1.2.74 3.69.13 7.98-2.25a72.09 72.09 0 0 0 8.82-5.8c3.55-2.7 13.34-11.65 15.24-13.07 3.79-2.83 7.18-4.19 11.18-4.19 6.77 0 11.8-3.67 18.83-12l3.45-4.13a60.07 60.07 0 0 1 3.37-3.72 11.72 11.72 0 0 1 5.01-2.91c1.1-.34 1.6-.45 3.97-.89 2.95-.55 4.07-1.02 4.65-2.23.76-1.59.28-4.5-1.74-9.43a84.46 84.46 0 0 1-2.74-7.69c-.31-1.03-1.4-4.8-1.66-5.61-1.95-6.2-4.16-7.39-15.14-7.39-6.5 0-10.61-1.93-14.98-5.98-.44-.4-2.46-2.37-3.01-2.86-3.65-3.3-6.52-3.85-11.79-1.21-12.67 6.33-17.15 10.65-22.78 20.8zm55.86 11.93c-2.98 6.45-16.78 15.26-26.74 15.26-5.33 0-7.56-2.98-7.11-7.86.32-3.48 2.1-7.91 3.93-10.61l1.52-2.32a44.95 44.95 0 0 1 1.88-2.7c3.66-4.8 7.85-7.45 13.62-7.45 9.06 0 15.75 9.52 12.9 15.68zm-.9-.42c2.52-5.47-3.65-14.26-12-14.26-5.4 0-9.33 2.48-12.82 7.06-.6.8-1.17 1.6-1.85 2.64 0 0-1.2 1.87-1.52 2.33-1.74 2.57-3.46 6.85-3.77 10.14-.4 4.33 1.43 6.77 6.12 6.77 9.57 0 23.02-8.58 25.83-14.68zm-69.67 20.74c2.08.18 4.44.81 5.88 1.8 2.12 1.47 2.2 3.6-.26 6.05-5.14 5.15-12.85 4.34-12.85-1.35 0-4.66 3.14-6.84 7.23-6.5zm-.09 1c-3.56-.3-6.14 1.5-6.14 5.5 0 4.58 6.53 5.26 11.15.65 2.03-2.04 1.98-3.43.4-4.52-1.27-.88-3.48-1.47-5.4-1.63zm29.59-225.95c4.64 2.35 17.27 8.24 19.39 9.43a24.14 24.14 0 0 1 7.05 5.64 45.03 45.03 0 0 1 3.75 5.2c2.4 3.78.04 7.66-6.2 11.63-4.97 3.16-12.18 6.3-21.95 9.82-4.84 1.74-19.63 6.68-21.1 7.2-6.59 2.33-14.85.1-25.14-5.86-3.93-2.27-8-5-12.94-8.54-2.23-1.61-9.5-6.99-10.7-7.85a81.21 81.21 0 0 0-8.63-5.7c-4.82-2.6-4.45-6.64.17-12.13 3.27-3.88 4.17-4.67 18.1-16.33a230.2 230.2 0 0 0 8.89-7.74 95.2 95.2 0 0 0 4.72-4.66c5.08-5.43 9.8-6.49 14.97-3.92 2.24 1.1 4.53 2.85 7.43 5.52 1.48 1.37 6.94 6.72 7.98 7.7 5.2 4.91 9.46 8.2 14.2 10.6zm-.46.9c-4.85-2.45-9.18-5.79-14.44-10.76-1.05-1-6.5-6.34-7.97-7.69-2.83-2.61-5.06-4.3-7.2-5.37-4.75-2.36-9-1.4-13.8 3.71a96.18 96.18 0 0 1-4.76 4.71c-2.48 2.3-5.16 4.62-8.92 7.77-13.86 11.6-14.77 12.4-17.98 16.21-4.28 5.08-4.58 8.4-.46 10.61 2.23 1.2 4.9 2.99 8.74 5.77 1.2.87 8.47 6.24 10.7 7.85a154.8 154.8 0 0 0 12.85 8.49c10.06 5.82 18.07 7.98 24.3 5.78 1.48-.52 16.27-5.47 21.1-7.2 9.7-3.5 16.86-6.61 21.75-9.72 5.84-3.71 7.9-7.1 5.9-10.26a44.09 44.09 0 0 0-3.67-5.08 23.16 23.16 0 0 0-6.78-5.42c-2.08-1.16-14.68-7.05-19.36-9.4zm-38.83 8.05c3.11-.37 5.7-.13 8.4.7 2.15.66 2.74.93 8.64 3.77 4.75 2.29 8.39 3.86 13.19 5.56 8.38 2.97 11.32 6.23 8.83 9.76-2.08 2.94-8.04 5.92-17.84 9.18-8.45 2.82-15.48 2.35-21.43-.9-4.65-2.55-8.33-6.5-12.15-12.3-2.9-4.41-2.73-8.2.16-11.06 2.48-2.45 6.87-4.07 12.2-4.7zm.12 1c-5.13.6-9.33 2.16-11.62 4.42-2.53 2.5-2.68 5.77-.02 9.8 3.73 5.68 7.3 9.51 11.8 11.97 5.7 3.11 12.43 3.57 20.62.84 9.59-3.2 15.44-6.12 17.34-8.82 1.94-2.75-.5-5.45-8.35-8.24-4.84-1.72-8.5-3.3-13.28-5.6-5.84-2.81-6.42-3.07-8.5-3.71a18.42 18.42 0 0 0-8-.66zM202.5 500.38c0 4.78-1.45 7.56-4.43 8.93-2.29 1.05-4.55 1.23-10.79 1.2l-1.78-.01c-9.19 0-17-7.65-17-15.5 0-7.59 10.6-10.51 19.74-5.44 2.78 1.55 4.21 1.94 8.57 2.75 4.44.83 5.69 2.27 5.69 8.07zm-1 0c0-5.3-.9-6.34-4.88-7.08-4.45-.83-5.96-1.25-8.86-2.86-8.57-4.76-18.26-2.1-18.26 4.56 0 7.3 7.36 14.5 16 14.5h1.79c6.06.04 8.26-.14 10.36-1.1 2.6-1.2 3.85-3.6 3.85-8.02zm33.33-117.85c3.71-1.31 8.7-2.7 16.1-4.55 2.58-.65 16.53-4.04 20.56-5.05 19.59-4.93 31.55-8.9 38.23-13.35 14.93-9.95 36.87-33.88 43.83-47.8 2.25-4.5 4.65-6.38 7.68-6.25 1.26.06 2.61.45 4.32 1.2a50.81 50.81 0 0 1 3.54 1.7l1.26.63c4.78 2.34 8.38 3.44 12.65 3.44 7.2 0 10.01 3.07 8.35 7.91-1.4 4.06-5.92 8.91-11.1 12.02-8.3 4.98-11.75 17.3-11.75 33.57 0 3.59-1.37 6.28-3.98 8.36-1.98 1.58-4.2 2.6-8.47 4.16l-1.02.37c-4.85 1.75-6.98 2.77-8.68 4.46-5.09 5.1-12.54 7.15-20.35 7.15-1.38 0-2.47.92-3.99 3.1-.29.41-1.32 1.95-1.47 2.18-2.68 3.92-4.93 5.72-8.54 5.72-7.84 0-10.74.93-21.76 6.94-5.18 2.82-8.8 3.58-14.66 3.68-.26 0-.47 0-.92.02-4.82.06-7.12.3-10.51 1.34a73.43 73.43 0 0 0-8.89 3.56c-2.17 1-10.53 5.01-10.23 4.87-7.79 3.7-13.32 5.98-18.9 7.57-12.41 3.55-18.58 2.24-27.42-4.07-2.58-1.85-2.72-4.43-.83-7.62 1.45-2.45 3.9-5.09 8.08-8.97l1.78-1.64c3.92-3.6 4.48-4.11 5.9-5.53 2.32-2.32 3.12-3.5 5.48-7.63 1.93-3.36 3.37-5.11 6.27-7.06 2.3-1.54 5.34-2.98 9.44-4.43zm.34.94c-4.03 1.42-7 2.83-9.22 4.32-2.75 1.85-4.1 3.49-5.96 6.73-2.4 4.2-3.24 5.44-5.64 7.83-1.43 1.44-2 1.96-5.94 5.57l-1.77 1.63c-4.1 3.82-6.52 6.41-7.9 8.75-1.65 2.79-1.54 4.8.55 6.3 8.6 6.14 14.46 7.38 26.57 3.92 5.5-1.57 11-3.84 18.74-7.51-.3.14 8.06-3.88 10.24-4.88a74.3 74.3 0 0 1 9.01-3.6c3.51-1.09 5.89-1.33 10.8-1.4h.91c5.72-.1 9.18-.83 14.2-3.57 11.16-6.08 14.2-7.06 22.24-7.06 3.19 0 5.2-1.6 7.71-5.28l1.48-2.2c1.7-2.43 3-3.52 4.81-3.52 7.57 0 14.78-2 19.65-6.85 1.83-1.84 4.04-2.9 9.04-4.7l1.02-.37c8.6-3.13 11.79-5.67 11.79-11.58 0-16.6 3.53-29.2 12.24-34.43 5-3 9.35-7.67 10.66-11.48 1.42-4.13-.83-6.59-7.4-6.59-4.45 0-8.19-1.14-13.09-3.54-7.52-3.67-6.78-3.34-8.72-3.43-2.58-.1-4.65 1.52-6.74 5.7-7.04 14.07-29.1 38.14-44.17 48.19-6.81 4.54-18.84 8.52-38.55 13.48-4.03 1.02-17.98 4.4-20.56 5.05-7.37 1.84-12.33 3.23-16 4.52zM252 387.5c2.08 0 4-.2 7.25-.69 5.22-.77 6.64-.9 8.46-.5 2.52.56 3.79 2.35 3.79 5.69 0 4.05-2.27 7.29-6.62 10.11-3.24 2.1-6.53 3.53-14.15 6.4l-.27.1-2.28.86c-3.04 1.16-5.27 2.52-9.33 5.43l-.8.57c-8.19 5.88-13.35 8.03-23.05 8.03-4.98 0-6.88-2.03-5.75-5.62.87-2.81 3.58-6.56 7.8-11.13 1.26-1.37 2.64-2.8 4.15-4.3 3.17-3.14 11.25-10.61 11.45-10.8.46-.47.93-.89 1.4-1.26 3.38-2.71 5.77-3.08 14.18-2.93 1.65.03 2.63.04 3.77.04zm0 1c-1.15 0-2.13-.01-3.79-.04-8.18-.14-10.4.2-13.54 2.71-.44.35-.88.74-1.32 1.18-.2.21-8.3 7.69-11.45 10.82a134.6 134.6 0 0 0-4.12 4.26c-4.12 4.47-6.76 8.12-7.58 10.75-.9 2.88.45 4.32 4.8 4.32 9.46 0 14.44-2.07 22.46-7.84l.8-.57c4.13-2.96 6.42-4.36 9.56-5.56l2.3-.86.25-.1c7.55-2.84 10.8-4.25 13.97-6.3 4.08-2.65 6.16-5.6 6.16-9.27 0-2.89-.97-4.26-3-4.7-1.65-.37-3.05-.25-8.1.5-3.3.5-5.26.7-7.4.7zm112.47-45.34c-1.88 5.44-1.98 6.76-.98 12.76 1.18 7.06-1.38 16.58-5.49 16.58a16.89 16.89 0 0 0-1.51.07l-.64.04c-2.86.18-4.83.17-6.94-.17-6.55-1.06-10.41-5.14-10.41-13.44 0-13.9 2.14-19.69 8.13-26.33a21.9 21.9 0 0 0 2.52-3.75c.59-1.03 2.78-5.13 2.72-5.01 4.44-8.14 7.71-11.53 12.25-10.4 1.17.3 2.2.77 3.58 1.59l1.39.84a20 20 0 0 0 3.1 1.6c.7.27 1.8.32 4.75.26l.72-.01c3.16-.05 4.78.08 5.83.66 1.61.89 1.2 2.56-1.14 4.9a215.9 215.9 0 0 1-3.86 3.76c-10.6 10.1-12.75 12.4-14.02 16.05zm-.94-.32c1.34-3.9 3.46-6.17 14.27-16.46 1.55-1.47 2.73-2.62 3.85-3.73 1.94-1.95 2.17-2.88 1.35-3.33-.82-.45-2.37-.58-5.32-.53l-.72.01c-3.14.06-4.26.02-5.14-.34-1.06-.41-1.97-.9-3.25-1.67l-1.38-.83a12.1 12.1 0 0 0-3.31-1.47c-3.88-.97-6.92 2.17-11.13 9.9.07-.13-2.14 3.98-2.73 5.02a22.71 22.71 0 0 1-2.65 3.92c-5.81 6.47-7.87 12-7.87 25.67 0 7.79 3.48 11.47 9.57 12.45 2.01.33 3.92.34 6.71.16a371.33 371.33 0 0 0 1.23-.07c.42-.03.73-.04.99-.04 3.2 0 5.6-8.9 4.5-15.42-1.02-6.16-.91-7.64 1.03-13.24zm-9.26 12.42c.58.52 2.5 1.9 2.55 1.93 1.96 1.57 2.04 3.31.01 6.36-3.74 5.64-8.83 3.09-8.83-4.55 0-3.81.51-5.67 2.07-6.02 1.18-.26 2 .3 4.2 2.28zm-1.34 1.48c-1.5-1.35-2.23-1.85-2.43-1.8-.17.03-.5 1.23-.5 4.06 0 5.87 2.67 7.21 5.17 3.45 1.5-2.26 1.47-2.84.4-3.7.03.03-1.95-1.4-2.64-2zm222.9-130.19c2.2-1.1 3.67-1.66 5.88-2.36l.28-.09a48.92 48.92 0 0 0 8.79-3.55c4.17-2.08 6.35-1.88 6.96.84.44 2 .2 4.01-1.25 12.7-2.27 13.62-9.16 26.14-21.17 36.3-4.3 3.63-7.41 4.39-9.75 2.44-1.88-1.57-3.1-4.57-4.61-10.48-.3-1.15-1.43-5.83-1.72-6.96a114.18 114.18 0 0 0-2.71-9.22c-2.4-6.82-3.03-10.78-2.1-12.94.77-1.83 2.08-2.24 5.6-2.45 1.49-.09 2.09-.14 2.97-.28l1.95-.33c.72-.12 1.22-.2 1.68-.29 1.1-.2 1.92-.38 2.71-.6 1.7-.49 3.42-1.2 6.49-2.73zm.44.9c-3.11 1.54-4.88 2.29-6.65 2.79-.84.23-1.69.42-2.81.63a108.77 108.77 0 0 1-3.81.63c-.77.13-1.39.19-2.92.28-3.13.18-4.17.51-4.74 1.85-.78 1.84-.2 5.62 2.13 12.2a115.12 115.12 0 0 1 2.74 9.31l1.72 6.96c1.46 5.7 2.62 8.58 4.28 9.96 1.87 1.56 4.49.93 8.47-2.44 11.82-10 18.6-22.3 20.83-35.7 1.4-8.45 1.65-10.51 1.25-12.31-.41-1.87-1.86-2-5.54-.16a49.87 49.87 0 0 1-8.93 3.6l-.28.1a35.4 35.4 0 0 0-5.74 2.3zm-4.5 6.58c1.37-.32 2.5-.75 3.9-1.42.35-.18 2.57-1.31 3.32-1.67 1.5-.71 2.97-1.31 4.7-1.89 2.7-.9 4.64-.77 5.88.4.98.94 1.34 2.26 1.41 4.18.02.4.02.7.02 1.37 0 5.63-4.63 16.88-11.34 22.75-4.34 3.8-7.31 4.67-9.92 2.52-2.06-1.7-3.5-4.65-6.67-12.91-1.86-4.83-2.05-8.1-.68-10.2 1.12-1.7 2.9-2.36 5.83-2.7l1.26-.12c1.19-.12 1.75-.19 2.3-.31zm-2.1 2.3l-1.22.12c-2.4.27-3.7.76-4.39 1.81-.93 1.43-.78 4.1.87 8.38 3.02 7.84 4.41 10.71 6.08 12.09 1.63 1.34 3.64.75 7.33-2.48C584.6 250.77 589 240.08 589 235c0-.64 0-.93-.02-1.29-.05-1.44-.3-2.33-.79-2.8-.6-.57-1.8-.65-3.87.04a37.95 37.95 0 0 0-4.47 1.8c-.72.34-2.93 1.47-3.32 1.66a19.54 19.54 0 0 1-4.3 1.56c-.66.16-1.28.24-2.56.36zm-227.73-88.98c-1.59 4.3-3.54 7.25-7.14 11.4l-2.6 2.97a67.02 67.02 0 0 0-2.63 3.23 46.4 46.4 0 0 0-4.68 7.5c-2.85 5.7-7.14 10.18-12.85 13.89-4.25 2.76-8.25 4.62-15.67 7.59-11.01 4.4-16.43 1.26-27.22-16.4-2.86-4.69-8.8-8.63-17.98-12.66-3-1.33-12.88-5.24-14.43-5.92-4.96-2.18-7.04-3.72-6.42-5.85.67-2.32 5.3-4.05 15.48-6.08 16.63-3.32 26.93-3.82 39.93-3.02 7.9.49 9.67.5 12.74-.26 1.99-.48 3.92-1.3 6-2.6l2.79-1.71c9.86-6.14 12.94-7.96 17.3-9.9 6.03-2.71 10.57-3.32 13.94-1.4 7.2 4.12 7.68 7.7 3.44 19.22zm-1.88-.7c3.95-10.7 3.6-13.26-2.56-16.78-2.66-1.52-6.62-.99-12.12 1.48-4.24 1.9-7.3 3.7-17.07 9.77l-2.79 1.73a22.6 22.6 0 0 1-6.57 2.84c-3.36.81-5.22.8-13.34.3-12.84-.78-22.97-.29-39.41 3-4.9.97-8.45 1.88-10.79 2.75-2.03.76-3.04 1.45-3.17 1.91-.16.57 1.48 1.79 5.3 3.46 1.5.67 11.39 4.58 14.44 5.93 9.52 4.19 15.74 8.3 18.87 13.44 10.35 16.93 14.87 19.56 24.78 15.6 7.3-2.93 11.21-4.75 15.33-7.42 5.42-3.53 9.47-7.75 12.15-13.1 1.44-2.9 3.02-5.4 4.86-7.82a68.95 68.95 0 0 1 2.72-3.33l2.6-2.97c3.46-3.99 5.28-6.75 6.77-10.79zm-6.64-.39c-7.94 12.8-18.53 21.75-33.3 25.23-7.82 1.83-12.47-.79-13.12-5.93-.55-4.45 2.29-9.06 6-9.06 3.02 0 5.6-1.68 15.38-9.16 1.47-1.12 2.57-1.96 3.66-2.74 4.4-3.2 7.77-5.17 10.82-6.08 5.57-1.67 9.33-2.15 11.35-1.22 2.5 1.14 2.22 4.13-.79 8.96zm-.84-.52c2.72-4.4 2.94-6.74 1.21-7.53-1.71-.79-5.32-.33-10.65 1.27-2.9.87-6.2 2.79-10.51 5.92-1.08.79-2.18 1.62-3.65 2.74-10.08 7.72-12.62 9.36-15.98 9.36-3.02 0-5.5 4.02-5 7.94.56 4.5 4.62 6.78 11.89 5.07 14.48-3.4 24.86-12.18 32.69-24.77zM461.17 33.53c13.88 4.96 20.75 4.96 31.62.01 3.02-1.37 5.47-2.94 11-6.82 5.57-3.92 8.05-5.51 11.14-6.92 4.14-1.88 7.78-2.38 11.22-1.28 3.92 1.26 6.2 12.3 6.78 28.45.5 14.2-.52 28.93-2.46 34.2-1.82 4.93-5.86 8.17-11.51 10.02A41.7 41.7 0 0 1 506 93.01c-5.79 0-9 2.4-12.2 7.64-.37.59-1.55 2.6-1.71 2.87-1.75 2.9-3.05 4.33-4.93 4.95-.94.32-2.07.83-3.87 1.74l-2.43 1.23c-1.03.53-1.87.94-2.7 1.34-6.43 3.1-11.73 4.72-17.16 4.72-5.71 0-10.04 2.09-14.02 5.92-1.16 1.11-4.2 4.53-4.63 4.94-2.54 2.44-5.93 4.24-10.85 6.1-1.4.52-5.98 2.13-6.25 2.22l-2.06.78c-.89.36-1.78.63-2.7.81-5.55 1.14-11.14-.54-17.98-4.42-1.27-.73-5.13-3.06-5.76-3.42-2.05-1.16-4.12-1.53-9.09-1.9l-1.73-.15c-4.78-.4-7.68-1.14-10.22-2.97-5-3.61-6.77-7.76-5.65-12.33 1.33-5.42 6.5-11.02 14.85-17.28a169.2 169.2 0 0 1 6.5-4.61c-.33.23 4.33-2.92 5.3-3.6 2.73-1.91 4.8-3.9 12.75-12.04l1.09-1.1c3.49-3.56 5.89-5.89 8.12-7.83 2.9-2.5 4.72-5.95 7.5-13.05l.63-1.61c2.7-6.92 4.28-10 6.87-12.33 1.42-1.28 6.68-6.54 7.93-7.5 3.98-3 8.01-2.73 19.57 1.4zm-.34.94c-11.26-4.02-15-4.28-18.62-1.53-1.19.9-6.4 6.11-7.88 7.43-2.42 2.18-3.96 5.19-6.6 11.95l-.63 1.61c-2.83 7.26-4.72 10.8-7.77 13.45a141.85 141.85 0 0 0-9.16 8.87c-8.02 8.2-10.08 10.2-12.88 12.16-.99.69-5.65 3.84-5.31 3.6-2.5 1.71-4.52 3.13-6.47 4.59-8.17 6.13-13.23 11.6-14.48 16.72-1.02 4.15.58 7.9 5.26 11.27 2.36 1.7 5.11 2.4 9.72 2.8l1.73.13c5.12.4 7.28.78 9.5 2.05.65.36 4.5 2.7 5.76 3.4 6.66 3.78 12.04 5.4 17.29 4.32.86-.17 1.7-.42 2.52-.75a67 67 0 0 1 2.1-.8c.28-.1 4.86-1.7 6.24-2.22 4.8-1.8 8.08-3.56 10.5-5.88.4-.38 3.44-3.8 4.63-4.94 4.16-4 8.72-6.2 14.72-6.2 5.25 0 10.42-1.59 16.73-4.62.82-.4 1.65-.8 2.68-1.33.12-.06 1.93-.99 2.43-1.23 1.84-.93 3-1.46 4-1.8 1.6-.52 2.76-1.82 4.39-4.52l1.7-2.88c3.39-5.5 6.87-8.11 13.07-8.11 4.45 0 8.73-.49 12.64-1.77 5.4-1.76 9.2-4.8 10.9-9.41 1.87-5.11 2.9-19.75 2.39-33.83-.56-15.53-2.81-26.48-6.08-27.52-3.18-1.02-6.57-.55-10.5 1.23-3.02 1.37-5.47 2.94-11 6.83-5.57 3.92-8.05 5.5-11.14 6.92-11.13 5.05-18.26 5.05-32.38.01zM475 55c5.38 0 7.55-.21 9.72-.96 1.26-.43 9.95-4.8 14.88-6.96 1.9-.82 3.56-2.44 6.6-6.04 2.56-3.04 3.19-3.75 4.4-4.84 3.7-3.35 7.07-3.28 10.22 1.23 6.23 8.9 5.61 15.94.07 27.02a71.26 71.26 0 0 0-2.5 5.48c-.32.8-1 2.7-1.09 2.9-.17.45-.34.81-.54 1.17-.63 1.14-1.56 2.21-4.05 4.7-2.4 2.4-5.16 3.27-11.68 4.33-1.81.3-2.2.36-3 .51-6.02 1.1-9.6 2.69-12.24 6.07-3.57 4.59-7.9 7.48-14.98 10.74-.55.24-1.1.5-1.8.8l-1.78.8a60.08 60.08 0 0 0-7.7 3.9c-2.57 1.6-4.79 2.35-9.42 3.46-8.58 2.06-12.28 3.76-17.37 9.36-5.12 5.64-10.17 7.64-16.63 6.7-5.36-.79-10.63-3.01-23.56-9.48-6.3-3.15-6.43-7.78-1.5-13.56 3.38-3.94 3.52-4.06 19.4-16.44 8.12-6.33 12.97-10.57 16.63-14.88 2.53-2.98 4.2-5.73 4.96-8.3 5.5-18.3 12.5-21.98 22.78-15.56 1.95 1.22 6.61 4.55 7.18 4.9 3.36 2.15 6.52 2.95 13 2.95zm0 2c-6.84 0-10.37-.89-14.08-3.26-.63-.4-5.27-3.71-7.16-4.9-9.05-5.65-14.66-2.7-19.8 14.45-.86 2.87-2.67 5.85-5.35 9.01-3.78 4.45-8.7 8.75-16.94 15.17-15.66 12.21-15.86 12.38-19.1 16.16-4.17 4.9-4.09 8 .88 10.48 12.71 6.35 17.89 8.54 22.94 9.28 5.78.84 10.18-.9 14.87-6.06 5.42-5.96 9.45-7.82 18.38-9.96 4.43-1.07 6.5-1.76 8.83-3.22a61.7 61.7 0 0 1 7.94-4.02l1.78-.8 1.78-.8c6.82-3.13 10.91-5.87 14.24-10.14 3-3.87 7-5.64 13.46-6.82.83-.15 1.21-.21 3.04-.51 6.1-1 8.6-1.78 10.58-3.77 2.36-2.36 3.21-3.34 3.72-4.26.15-.27.29-.56.44-.94.06-.15.75-2.06 1.09-2.9.64-1.6 1.45-3.4 2.57-5.64 5.24-10.49 5.8-16.8.07-24.98-2.4-3.44-4.37-3.48-7.24-.89-1.11 1-1.73 1.7-4.22 4.65-3.24 3.85-5.04 5.59-7.32 6.59-4.82 2.1-13.62 6.53-15.03 7.01-2.44.84-4.79 1.07-10.37 1.07zm-12.7 8.6c5.47 3.9 10.34 3.72 18.23.88 5.39-1.94 5.92-2.1 7.7-2.1 2.5-.01 4.21 1.36 5.24 4.46 1.66 4.98-2.32 8.52-12.3 12.68-2.7 1.13-16.25 6.18-20 7.73-7.86 3.24-13.93 6.42-18.87 10.15-13.02 9.84-18.36 11.93-23.71 9.68a24.67 24.67 0 0 1-3.62-1.98l-1.99-1.28a90.4 90.4 0 0 0-2.24-1.4c-3.33-2-2.82-4.28.85-7.34 1.35-1.13 10.66-7.61 13.53-9.91 7.1-5.69 11.91-11.47 14.41-18.34 3.07-8.45 4.89-12.1 6.8-13.39 1.73-1.16 3.36-.53 6.18 1.9.63.56 3.4 3.08 4.11 3.7 1.93 1.7 3.71 3.15 5.67 4.55zm-.6.8c-1.98-1.42-3.79-2.88-5.74-4.6-.73-.64-3.48-3.16-4.1-3.7-2.5-2.16-3.75-2.65-4.97-1.83-1.66 1.11-3.44 4.7-6.42 12.9-2.57 7.07-7.5 12.99-14.72 18.78-2.91 2.33-12.21 8.8-13.52 9.9-3.22 2.68-3.56 4.17-.97 5.72l2.26 1.4 1.99 1.28c1.47.93 2.48 1.5 3.47 1.91 4.9 2.07 9.96.07 22.72-9.56 5.02-3.79 11.15-7 19.1-10.28 3.76-1.55 17.3-6.6 20-7.72 9.5-3.97 13.14-7.2 11.73-11.44-.9-2.71-2.25-3.8-4.3-3.79-1.6 0-2.15.17-7.36 2.05-8.17 2.94-13.34 3.14-19.16-1.01z'%3E%3C/path%3E%3C/svg%3E")`,texture:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='{{color}}' fill-opacity='{{opacity}}' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E")`,jupiter:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='52' viewBox='0 0 52 52'%3E%3Cpath fill='{{color}}' fill-opacity='{{opacity}}' d='M0 17.83V0h17.83a3 3 0 0 1-5.66 2H5.9A5 5 0 0 1 2 5.9v6.27a3 3 0 0 1-2 5.66zm0 18.34a3 3 0 0 1 2 5.66v6.27A5 5 0 0 1 5.9 52h6.27a3 3 0 0 1 5.66 0H0V36.17zM36.17 52a3 3 0 0 1 5.66 0h6.27a5 5 0 0 1 3.9-3.9v-6.27a3 3 0 0 1 0-5.66V52H36.17zM0 31.93v-9.78a5 5 0 0 1 3.8.72l4.43-4.43a3 3 0 1 1 1.42 1.41L5.2 24.28a5 5 0 0 1 0 5.52l4.44 4.43a3 3 0 1 1-1.42 1.42L3.8 31.2a5 5 0 0 1-3.8.72zm52-14.1a3 3 0 0 1 0-5.66V5.9A5 5 0 0 1 48.1 2h-6.27a3 3 0 0 1-5.66-2H52v17.83zm0 14.1a4.97 4.97 0 0 1-1.72-.72l-4.43 4.44a3 3 0 1 1-1.41-1.42l4.43-4.43a5 5 0 0 1 0-5.52l-4.43-4.43a3 3 0 1 1 1.41-1.41l4.43 4.43c.53-.35 1.12-.6 1.72-.72v9.78zM22.15 0h9.78a5 5 0 0 1-.72 3.8l4.44 4.43a3 3 0 1 1-1.42 1.42L29.8 5.2a5 5 0 0 1-5.52 0l-4.43 4.44a3 3 0 1 1-1.41-1.42l4.43-4.43a5 5 0 0 1-.72-3.8zm0 52c.13-.6.37-1.19.72-1.72l-4.43-4.43a3 3 0 1 1 1.41-1.41l4.43 4.43a5 5 0 0 1 5.52 0l4.43-4.43a3 3 0 1 1 1.42 1.41l-4.44 4.43c.36.53.6 1.12.72 1.72h-9.78zm9.75-24a5 5 0 0 1-3.9 3.9v6.27a3 3 0 1 1-2 0V31.9a5 5 0 0 1-3.9-3.9h-6.27a3 3 0 1 1 0-2h6.27a5 5 0 0 1 3.9-3.9v-6.27a3 3 0 1 1 2 0v6.27a5 5 0 0 1 3.9 3.9h6.27a3 3 0 1 1 0 2H31.9z'%3E%3C/path%3E%3C/svg%3E")`,architect:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='199' viewBox='0 0 100 199'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath d='M0 199V0h1v1.99L100 199h-1.12L1 4.22V199H0zM100 2h-.12l-1-2H100v2z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E")`,cutout:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath d='M12 0h18v6h6v6h6v18h-6v6h-6v6H12v-6H6v-6H0V12h6V6h6V0zm12 6h-6v6h-6v6H6v6h6v6h6v6h6v-6h6v-6h6v-6h-6v-6h-6V6zm-6 12h6v6h-6v-6zm24 24h6v6h-6v-6z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E")`,hideout:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,graphpaper:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,yyy:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='96' viewBox='0 0 60 96'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath d='M36 10a6 6 0 0 1 12 0v12a6 6 0 0 1-6 6 6 6 0 0 0-6 6 6 6 0 0 1-12 0 6 6 0 0 0-6-6 6 6 0 0 1-6-6V10a6 6 0 1 1 12 0 6 6 0 0 0 12 0zm24 78a6 6 0 0 1-6-6 6 6 0 0 0-6-6 6 6 0 0 1-6-6V58a6 6 0 1 1 12 0 6 6 0 0 0 6 6v24zM0 88V64a6 6 0 0 0 6-6 6 6 0 0 1 12 0v12a6 6 0 0 1-6 6 6 6 0 0 0-6 6 6 6 0 0 1-6 6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,squares:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='Artboard-5' fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='nonzero'%3E%3Cpath d='M6 18h12V6H6v12zM4 4h16v16H4V4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,fallingtriangles:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='72' viewBox='0 0 36 72'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath d='M2 6h12L8 18 2 6zm18 36h12l-6 12-6-12z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,pianoman:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='46' viewBox='0 0 70 46'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpolygon points='68 44 62 44 62 46 56 46 56 44 52 44 52 46 46 46 46 44 40 44 40 46 38 46 38 44 32 44 32 46 26 46 26 44 22 44 22 46 16 46 16 44 12 44 12 46 6 46 6 44 0 44 0 42 8 42 8 28 6 28 6 0 12 0 12 28 10 28 10 42 18 42 18 28 16 28 16 0 22 0 22 28 20 28 20 42 28 42 28 28 26 28 26 0 32 0 32 28 30 28 30 42 38 42 38 0 40 0 40 42 48 42 48 28 46 28 46 0 52 0 52 28 50 28 50 42 58 42 58 28 56 28 56 0 62 0 62 28 60 28 60 42 68 42 68 0 70 0 70 46 68 46'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,piefactory:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='nonzero'%3E%3Cpath d='M29 58.58l7.38-7.39A30.95 30.95 0 0 1 29 37.84a30.95 30.95 0 0 1-7.38 13.36l7.37 7.38zm1.4 1.41l.01.01h-2.84l-7.37-7.38A30.95 30.95 0 0 1 6.84 60H0v-1.02a28.9 28.9 0 0 0 18.79-7.78L0 32.41v-4.84L18.78 8.79A28.9 28.9 0 0 0 0 1.02V0h6.84a30.95 30.95 0 0 1 13.35 7.38L27.57 0h2.84l7.39 7.38A30.95 30.95 0 0 1 51.16 0H60v27.58-.01V60h-8.84a30.95 30.95 0 0 1-13.37-7.4L30.4 60zM29 1.41l-7.4 7.38A30.95 30.95 0 0 1 29 22.16 30.95 30.95 0 0 1 36.38 8.8L29 1.4zM58 1A28.9 28.9 0 0 0 39.2 8.8L58 27.58V1.02zm-20.2 9.2A28.9 28.9 0 0 0 30.02 29h26.56L37.8 10.21zM30.02 31a28.9 28.9 0 0 0 7.77 18.79l18.79-18.79H30.02zm9.18 20.2A28.9 28.9 0 0 0 58 59V32.4L39.2 51.19zm-19-1.4a28.9 28.9 0 0 0 7.78-18.8H1.41l18.8 18.8zm7.78-20.8A28.9 28.9 0 0 0 20.2 10.2L1.41 29h26.57z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,dominos:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='126' height='84' viewBox='0 0 126 84'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath d='M126 83v1H0v-2h40V42H0v-2h40V0h2v40h40V0h2v40h40V0h2v83zm-2-1V42H84v40h40zM82 42H42v40h40V42zm-50-6a4 4 0 1 1 0-8 4 4 0 0 1 0 8zM8 12a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm96 12a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm-42 0a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm30-12a4 4 0 1 1 0-8 4 4 0 0 1 0 8zM20 54a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm12 24a4 4 0 1 1 0-8 4 4 0 0 1 0 8zM8 54a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm24 0a4 4 0 1 1 0-8 4 4 0 0 1 0 8zM8 78a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm12 0a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm54 0a4 4 0 1 1 0-8 4 4 0 0 1 0 8zM50 54a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm24 0a4 4 0 1 1 0-8 4 4 0 0 1 0 8zM50 78a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm54-12a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm12 12a4 4 0 1 1 0-8 4 4 0 0 1 0 8zM92 54a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm24 0a4 4 0 1 1 0-8 4 4 0 0 1 0 8zM92 78a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm24-42a4 4 0 1 1 0-8 4 4 0 0 1 0 8z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,hexagons:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='hexagons' fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='nonzero'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,charliebrown:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='12' viewBox='0 0 20 12'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='charlie-brown' fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath d='M9.8 12L0 2.2V.8l10 10 10-10v1.4L10.2 12h-.4zm-4 0L0 6.2V4.8L7.2 12H5.8zm8.4 0L20 6.2V4.8L12.8 12h1.4zM9.8 0l.2.2.2-.2h-.4zm-4 0L10 4.2 14.2 0h-1.4L10 2.8 7.2 0H5.8z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,autumn:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='24' viewBox='0 0 88 24'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='autumn' fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath d='M10 0l30 15 2 1V2.18A10 10 0 0 0 41.76 0H39.7a8 8 0 0 1 .3 2.18v10.58L14.47 0H10zm31.76 24a10 10 0 0 0-5.29-6.76L4 1 2 0v13.82a10 10 0 0 0 5.53 8.94L10 24h4.47l-6.05-3.02A8 8 0 0 1 4 13.82V3.24l31.58 15.78A8 8 0 0 1 39.7 24h2.06zM78 24l2.47-1.24A10 10 0 0 0 86 13.82V0l-2 1-32.47 16.24A10 10 0 0 0 46.24 24h2.06a8 8 0 0 1 4.12-4.98L84 3.24v10.58a8 8 0 0 1-4.42 7.16L73.53 24H78zm0-24L48 15l-2 1V2.18A10 10 0 0 1 46.24 0h2.06a8 8 0 0 0-.3 2.18v10.58L73.53 0H78z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,temple:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='152' height='152' viewBox='0 0 152 152'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='temple' fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath d='M152 150v2H0v-2h28v-8H8v-20H0v-2h8V80h42v20h20v42H30v8h90v-8H80v-42h20V80h42v40h8V30h-8v40h-42V50H80V8h40V0h2v8h20v20h8V0h2v150zm-2 0v-28h-8v20h-20v8h28zM82 30v18h18V30H82zm20 18h20v20h18V30h-20V10H82v18h20v20zm0 2v18h18V50h-18zm20-22h18V10h-18v18zm-54 92v-18H50v18h18zm-20-18H28V82H10v38h20v20h38v-18H48v-20zm0-2V82H30v18h18zm-20 22H10v18h18v-18zm54 0v18h38v-20h20V82h-18v20h-20v20H82zm18-20H82v18h18v-18zm2-2h18V82h-18v18zm20 40v-18h18v18h-18zM30 0h-2v8H8v20H0v2h8v40h42V50h20V8H30V0zm20 48h18V30H50v18zm18-20H48v20H28v20H10V30h20V10h38v18zM30 50h18v18H30V50zm-2-40H10v18h18V10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,stampcollection:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='77' height='107' viewBox='0 0 77 107'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='stamp-collection' fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath d='M46 101a5 5 0 0 1 5 5h5a5 5 0 0 1 10 0h5a5 5 0 0 1 5-5v-5a5 5 0 0 1 0-10v-5a5 5 0 0 1 0-10v-5a5 5 0 0 1 0-10v-5a5 5 0 0 1 0-10v-5a5 5 0 0 1 0-10v-5a5 5 0 0 1 0-10V6a5 5 0 0 1-5-5h-5a5 5 0 0 1-10 0h-5a5 5 0 0 1-10 0h-5a5 5 0 0 1-10 0h-5a5 5 0 0 1-10 0H6a5 5 0 0 1-5 5v5a5 5 0 0 1 0 10v5a5 5 0 0 1 0 10v5a5 5 0 0 1 0 10v5a5 5 0 0 1 0 10v5a5 5 0 0 1 0 10v5a5 5 0 0 1 0 10v5a5 5 0 0 1 5 5h5a5 5 0 0 1 10 0h5a5 5 0 0 1 10 0h5a5 5 0 0 1 5-5zm15-2a7 7 0 0 0-6.71 5h-1.58a7 7 0 0 0-13.42 0h-1.58a7 7 0 0 0-13.42 0h-1.58a7 7 0 0 0-13.42 0H7.71A7.01 7.01 0 0 0 3 99.29v-1.58a7 7 0 0 0 0-13.42v-1.58a7 7 0 0 0 0-13.42v-1.58a7 7 0 0 0 0-13.42v-1.58a7 7 0 0 0 0-13.42v-1.58a7 7 0 0 0 0-13.42v-1.58A7 7 0 0 0 3 9.29V7.71A7.02 7.02 0 0 0 7.71 3h1.58a7 7 0 0 0 13.42 0h1.58a7 7 0 0 0 13.42 0h1.58a7 7 0 0 0 13.42 0h1.58a7 7 0 0 0 13.42 0h1.58A7.02 7.02 0 0 0 74 7.71v1.58a7 7 0 0 0 0 13.42v1.58a7 7 0 0 0 0 13.42v1.58a7 7 0 0 0 0 13.42v1.58a7 7 0 0 0 0 13.42v1.58a7 7 0 0 0 0 13.42v1.58a7 7 0 0 0 0 13.42v1.58a7.01 7.01 0 0 0-4.71 4.71h-1.58A7 7 0 0 0 61 99zM12 12h53v83H12V12zm51 81H14V14h49v79z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,deathstar:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='105' viewBox='0 0 80 105'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='death-star' fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath d='M20 10a5 5 0 0 1 10 0v50a5 5 0 0 1-10 0V10zm15 35a5 5 0 0 1 10 0v50a5 5 0 0 1-10 0V45zM20 75a5 5 0 0 1 10 0v20a5 5 0 0 1-10 0V75zm30-65a5 5 0 0 1 10 0v50a5 5 0 0 1-10 0V10zm0 65a5 5 0 0 1 10 0v20a5 5 0 0 1-10 0V75zM35 10a5 5 0 0 1 10 0v20a5 5 0 0 1-10 0V10zM5 45a5 5 0 0 1 10 0v50a5 5 0 0 1-10 0V45zm0-35a5 5 0 0 1 10 0v20a5 5 0 0 1-10 0V10zm60 35a5 5 0 0 1 10 0v50a5 5 0 0 1-10 0V45zm0-35a5 5 0 0 1 10 0v20a5 5 0 0 1-10 0V10z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,churchonsunday:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='church-on-sunday' fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath d='M77.17 0H80v2.83l-.1.1A39.9 39.9 0 0 1 74.64 20a39.9 39.9 0 0 1 5.24 17.06l.11.11v2.89c-.01 6.9-1.8 13.79-5.35 19.94A39.96 39.96 0 0 1 80 79.94V80h-2.83L66.84 69.66a39.83 39.83 0 0 1-24.1 10.25l.09.09h-5.66l.1-.1c-8.7-.58-17.22-4-24.1-10.23L2.82 80H0V79.94c.01-6.9 1.8-13.8 5.35-19.94A39.96 39.96 0 0 1 0 40.06V37.17l.1-.1A39.9 39.9 0 0 1 5.36 20 39.9 39.9 0 0 1 .1 2.94L0 2.83V0h2.83l-.1.1a39.83 39.83 0 0 1 24.1 10.24L37.18 0H40c0 6.92-1.78 13.83-5.35 20A39.96 39.96 0 0 1 40 40c0-6.92 1.78-13.83 5.35-20A39.96 39.96 0 0 1 40 0h2.83l10.33 10.34A39.83 39.83 0 0 1 77.26.09L77.17 0zm.77 77.94c-.3-5.52-1.8-11-4.49-16a40.18 40.18 0 0 1-5.17 6.34l9.66 9.66zm-12.52-9.7l-6.83-6.83-5.46 5.46-1.41 1.41-9.66 9.66c8.4-.45 16.69-3.68 23.36-9.7zm-23.07 6.58l7.99-7.98a40.05 40.05 0 0 1-3.79-4.9 37.88 37.88 0 0 0-4.2 12.88zM47.68 60a37.98 37.98 0 0 0 4.07 5.42L57.17 60l-5.42-5.42A38 38 0 0 0 47.68 60zm2.66-6.84a40.06 40.06 0 0 0-3.79 4.9 37.88 37.88 0 0 1-4.2-12.88l7.99 7.98zm1.38-1.44l1.41 1.41 5.46 5.46 6.83-6.84a37.85 37.85 0 0 0-23.36-9.7l9.66 9.67zM60 60l6.87 6.87A38.1 38.1 0 0 0 72.32 60a38.11 38.11 0 0 0-5.45-6.87L60 60zm-14.65 0a39.9 39.9 0 0 0-5.24 17.06l-.11.11-.1-.1A39.9 39.9 0 0 0 34.64 60a39.9 39.9 0 0 0 5.24-17.06l.11-.11.1.1A39.9 39.9 0 0 0 45.36 60zm9.23-48.25a37.85 37.85 0 0 1 23.36-9.7l-9.66 9.67-1.41 1.41-5.46 5.46-6.83-6.84zm13.67 13.67L62.83 20l5.42-5.42A38 38 0 0 1 72.32 20a37.98 37.98 0 0 1-4.07 5.42zm5.2-3.47a40.05 40.05 0 0 1-3.79 4.89l7.99 7.98c-.61-4.45-2.01-8.82-4.2-12.87zm-6.58 4.92l1.41 1.41 9.66 9.66a37.85 37.85 0 0 1-23.36-9.7l6.83-6.83 5.46 5.46zM53.13 13.13L60 20l-6.87 6.87A38.11 38.11 0 0 1 47.68 20a38.1 38.1 0 0 1 5.45-6.87zm-1.41-1.41l-9.66-9.66c.3 5.52 1.8 11 4.49 16a40.18 40.18 0 0 1 5.17-6.34zm-9.66 26.22c.3-5.52 1.8-11 4.49-16a40.18 40.18 0 0 0 5.17 6.34l-9.66 9.66zm26.22 13.78l9.66-9.66c-.3 5.52-1.8 11-4.49 16a40.18 40.18 0 0 0-5.17-6.34zm8.98-11.81L66.84 50.34a39.83 39.83 0 0 0-24.1-10.25l10.42-10.43a39.83 39.83 0 0 0 24.1 10.25zm-7.6-26.75a40.06 40.06 0 0 1 3.79 4.9 37.88 37.88 0 0 0 4.2-12.88l-7.99 7.98zm-31.72 28.9c-8.4.45-16.69 3.68-23.36 9.7l6.83 6.83 5.46-5.46 1.41-1.41 9.66-9.66zM22.83 60l5.42 5.42c1.54-1.7 2.9-3.52 4.07-5.42a38 38 0 0 0-4.07-5.42L22.83 60zm5.45 8.28l-1.41-1.41-5.46-5.46-6.83 6.84a37.85 37.85 0 0 0 23.36 9.7l-9.66-9.67zm9.37 6.54l-7.99-7.98a40.05 40.05 0 0 0 3.79-4.9 37.88 37.88 0 0 1 4.2 12.88zM20 60l-6.87-6.87A38.11 38.11 0 0 0 7.68 60a38.11 38.11 0 0 0 5.45 6.87L20 60zm17.26-19.9L26.84 29.65a39.83 39.83 0 0 1-24.1 10.25l10.42 10.43a39.83 39.83 0 0 1 24.1-10.25zm-35.2 1.96l9.66 9.66a40.18 40.18 0 0 0-5.17 6.33c-2.7-5-4.2-10.47-4.5-16zm4.49 19.89c-2.7 5-4.2 10.47-4.5 16l9.67-9.67a40.18 40.18 0 0 1-5.17-6.33zm31.1-16.77c-.61 4.45-2.01 8.82-4.2 12.87a40.06 40.06 0 0 0-3.79-4.89l7.99-7.98zm-4.2-23.23c2.7 5 4.2 10.47 4.5 16l-9.67-9.67c1.97-1.97 3.7-4.1 5.17-6.33zm-14.86-.54l6.83 6.84a37.85 37.85 0 0 1-23.36 9.7l9.66-9.67 1.41-1.41 5.46-5.46zm-8.25 5.43l-7.99 7.98c.61-4.45 2.01-8.82 4.2-12.87a40.04 40.04 0 0 0 3.79 4.89zm1.41-1.42A37.99 37.99 0 0 1 7.68 20a38 38 0 0 1 4.07-5.42L17.17 20l-5.42 5.42zm-5.2-7.37a40.04 40.04 0 0 1 3.79-4.89L2.35 5.18c.61 4.45 2.01 8.82 4.2 12.87zm6.58-4.92l-1.41-1.41-9.66-9.66a37.85 37.85 0 0 1 23.36 9.7l-6.83 6.83-5.46-5.46zm13.74 13.74L20 20l6.87-6.87A38.1 38.1 0 0 1 32.32 20a38.1 38.1 0 0 1-5.45 6.87zm6.58-8.82a40.18 40.18 0 0 0-5.17-6.33l9.66-9.66c-.3 5.52-1.8 11-4.49 16z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,ilikefood:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath d='M24.37 16c.2.65.39 1.32.54 2H21.17l1.17 2.34.45.9-.24.11V28a5 5 0 0 1-2.23 8.94l-.02.06a8 8 0 0 1-7.75 6h-20a8 8 0 0 1-7.74-6l-.02-.06A5 5 0 0 1-17.45 28v-6.76l-.79-1.58-.44-.9.9-.44.63-.32H-20a23.01 23.01 0 0 1 44.37-2zm-36.82 2a1 1 0 0 0-.44.1l-3.1 1.56.89 1.79 1.31-.66a3 3 0 0 1 2.69 0l2.2 1.1a1 1 0 0 0 .9 0l2.21-1.1a3 3 0 0 1 2.69 0l2.2 1.1a1 1 0 0 0 .9 0l2.21-1.1a3 3 0 0 1 2.69 0l2.2 1.1a1 1 0 0 0 .86.02l2.88-1.27a3 3 0 0 1 2.43 0l2.88 1.27a1 1 0 0 0 .85-.02l3.1-1.55-.89-1.79-1.42.71a3 3 0 0 1-2.56.06l-2.77-1.23a1 1 0 0 0-.4-.09h-.01a1 1 0 0 0-.4.09l-2.78 1.23a3 3 0 0 1-2.56-.06l-2.3-1.15a1 1 0 0 0-.45-.11h-.01a1 1 0 0 0-.44.1L.9 19.22a3 3 0 0 1-2.69 0l-2.2-1.1a1 1 0 0 0-.45-.11h-.01a1 1 0 0 0-.44.1l-2.21 1.11a3 3 0 0 1-2.69 0l-2.2-1.1a1 1 0 0 0-.45-.11h-.01zm0-2h-4.9a21.01 21.01 0 0 1 39.61 0h-2.09l-.06-.13-.26.13h-32.31zm30.35 7.68l1.36-.68h1.3v2h-36v-1.15l.34-.17 1.36-.68h2.59l1.36.68a3 3 0 0 0 2.69 0l1.36-.68h2.59l1.36.68a3 3 0 0 0 2.69 0L2.26 23h2.59l1.36.68a3 3 0 0 0 2.56.06l1.67-.74h3.23l1.67.74a3 3 0 0 0 2.56-.06zM-13.82 27l16.37 4.91L18.93 27h-32.75zm-.63 2h.34l16.66 5 16.67-5h.33a3 3 0 1 1 0 6h-34a3 3 0 1 1 0-6zm1.35 8a6 6 0 0 0 5.65 4h20a6 6 0 0 0 5.66-4H-13.1z'/%3E%3Cpath id='path6_fill-copy' d='M284.37 16c.2.65.39 1.32.54 2H281.17l1.17 2.34.45.9-.24.11V28a5 5 0 0 1-2.23 8.94l-.02.06a8 8 0 0 1-7.75 6h-20a8 8 0 0 1-7.74-6l-.02-.06a5 5 0 0 1-2.24-8.94v-6.76l-.79-1.58-.44-.9.9-.44.63-.32H240a23.01 23.01 0 0 1 44.37-2zm-36.82 2a1 1 0 0 0-.44.1l-3.1 1.56.89 1.79 1.31-.66a3 3 0 0 1 2.69 0l2.2 1.1a1 1 0 0 0 .9 0l2.21-1.1a3 3 0 0 1 2.69 0l2.2 1.1a1 1 0 0 0 .9 0l2.21-1.1a3 3 0 0 1 2.69 0l2.2 1.1a1 1 0 0 0 .86.02l2.88-1.27a3 3 0 0 1 2.43 0l2.88 1.27a1 1 0 0 0 .85-.02l3.1-1.55-.89-1.79-1.42.71a3 3 0 0 1-2.56.06l-2.77-1.23a1 1 0 0 0-.4-.09h-.01a1 1 0 0 0-.4.09l-2.78 1.23a3 3 0 0 1-2.56-.06l-2.3-1.15a1 1 0 0 0-.45-.11h-.01a1 1 0 0 0-.44.1l-2.21 1.11a3 3 0 0 1-2.69 0l-2.2-1.1a1 1 0 0 0-.45-.11h-.01a1 1 0 0 0-.44.1l-2.21 1.11a3 3 0 0 1-2.69 0l-2.2-1.1a1 1 0 0 0-.45-.11h-.01zm0-2h-4.9a21.01 21.01 0 0 1 39.61 0h-2.09l-.06-.13-.26.13h-32.31zm30.35 7.68l1.36-.68h1.3v2h-36v-1.15l.34-.17 1.36-.68h2.59l1.36.68a3 3 0 0 0 2.69 0l1.36-.68h2.59l1.36.68a3 3 0 0 0 2.69 0l1.36-.68h2.59l1.36.68a3 3 0 0 0 2.56.06l1.67-.74h3.23l1.67.74a3 3 0 0 0 2.56-.06zM246.18 27l16.37 4.91L278.93 27h-32.75zm-.63 2h.34l16.66 5 16.67-5h.33a3 3 0 1 1 0 6h-34a3 3 0 1 1 0-6zm1.35 8a6 6 0 0 0 5.65 4h20a6 6 0 0 0 5.66-4H246.9z'/%3E%3Cpath d='M159.5 21.02A9 9 0 0 0 151 15h-42a9 9 0 0 0-8.5 6.02 6 6 0 0 0 .02 11.96A8.99 8.99 0 0 0 109 45h42a9 9 0 0 0 8.48-12.02 6 6 0 0 0 .02-11.96zM151 17h-42a7 7 0 0 0-6.33 4h54.66a7 7 0 0 0-6.33-4zm-9.34 26a8.98 8.98 0 0 0 3.34-7h-2a7 7 0 0 1-7 7h-4.34a8.98 8.98 0 0 0 3.34-7h-2a7 7 0 0 1-7 7h-4.34a8.98 8.98 0 0 0 3.34-7h-2a7 7 0 0 1-7 7h-7a7 7 0 1 1 0-14h42a7 7 0 1 1 0 14h-9.34zM109 27a9 9 0 0 0-7.48 4H101a4 4 0 1 1 0-8h58a4 4 0 0 1 0 8h-.52a9 9 0 0 0-7.48-4h-42z'/%3E%3Cpath d='M39 115a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm6-8a6 6 0 1 1-12 0 6 6 0 0 1 12 0zm-3-29v-2h8v-6H40a4 4 0 0 0-4 4v10H22l-1.33 4-.67 2h2.19L26 130h26l3.81-40H58l-.67-2L56 84H42v-6zm-4-4v10h2V74h8v-2h-8a2 2 0 0 0-2 2zm2 12h14.56l.67 2H22.77l.67-2H40zm13.8 4H24.2l3.62 38h22.36l3.62-38z'/%3E%3Cpath d='M129 92h-6v4h-6v4h-6v14h-3l.24 2 3.76 32h36l3.76-32 .24-2h-3v-14h-6v-4h-6v-4h-8zm18 22v-12h-4v4h3v8h1zm-3 0v-6h-4v6h4zm-6 6v-16h-4v19.17c1.6-.7 2.97-1.8 4-3.17zm-6 3.8V100h-4v23.8a10.04 10.04 0 0 0 4 0zm-6-.63V104h-4v16a10.04 10.04 0 0 0 4 3.17zm-6-9.17v-6h-4v6h4zm-6 0v-8h3v-4h-4v12h1zm27-12v-4h-4v4h3v4h1v-4zm-6 0v-8h-4v4h3v4h1zm-6-4v-4h-4v8h1v-4h3zm-6 4v-4h-4v8h1v-4h3zm7 24a12 12 0 0 0 11.83-10h7.92l-3.53 30h-32.44l-3.53-30h7.92A12 12 0 0 0 130 126z'/%3E%3Cpath d='M212 86v2h-4v-2h4zm4 0h-2v2h2v-2zm-20 0v.1a5 5 0 0 0-.56 9.65l.06.25 1.12 4.48a2 2 0 0 0 1.94 1.52h.01l7.02 24.55a2 2 0 0 0 1.92 1.45h4.98a2 2 0 0 0 1.92-1.45l7.02-24.55a2 2 0 0 0 1.95-1.52L224.5 96l.06-.25a5 5 0 0 0-.56-9.65V86a14 14 0 0 0-28 0zm4 0h6v2h-9a3 3 0 1 0 0 6H223a3 3 0 1 0 0-6H220v-2h2a12 12 0 1 0-24 0h2zm-1.44 14l-1-4h24.88l-1 4h-22.88zm8.95 26l-6.86-24h18.7l-6.86 24h-4.98zM150 242a22 22 0 1 0 0-44 22 22 0 0 0 0 44zm24-22a24 24 0 1 1-48 0 24 24 0 0 1 48 0zm-28.38 17.73l2.04-.87a6 6 0 0 1 4.68 0l2.04.87a2 2 0 0 0 2.5-.82l1.14-1.9a6 6 0 0 1 3.79-2.75l2.15-.5a2 2 0 0 0 1.54-2.12l-.19-2.2a6 6 0 0 1 1.45-4.46l1.45-1.67a2 2 0 0 0 0-2.62l-1.45-1.67a6 6 0 0 1-1.45-4.46l.2-2.2a2 2 0 0 0-1.55-2.13l-2.15-.5a6 6 0 0 1-3.8-2.75l-1.13-1.9a2 2 0 0 0-2.5-.8l-2.04.86a6 6 0 0 1-4.68 0l-2.04-.87a2 2 0 0 0-2.5.82l-1.14 1.9a6 6 0 0 1-3.79 2.75l-2.15.5a2 2 0 0 0-1.54 2.12l.19 2.2a6 6 0 0 1-1.45 4.46l-1.45 1.67a2 2 0 0 0 0 2.62l1.45 1.67a6 6 0 0 1 1.45 4.46l-.2 2.2a2 2 0 0 0 1.55 2.13l2.15.5a6 6 0 0 1 3.8 2.75l1.13 1.9a2 2 0 0 0 2.5.8zm2.82.97a4 4 0 0 1 3.12 0l2.04.87a4 4 0 0 0 4.99-1.62l1.14-1.9a4 4 0 0 1 2.53-1.84l2.15-.5a4 4 0 0 0 3.09-4.24l-.2-2.2a4 4 0 0 1 .97-2.98l1.45-1.67a4 4 0 0 0 0-5.24l-1.45-1.67a4 4 0 0 1-.97-2.97l.2-2.2a4 4 0 0 0-3.09-4.25l-2.15-.5a4 4 0 0 1-2.53-1.84l-1.14-1.9a4 4 0 0 0-5-1.62l-2.03.87a4 4 0 0 1-3.12 0l-2.04-.87a4 4 0 0 0-4.99 1.62l-1.14 1.9a4 4 0 0 1-2.53 1.84l-2.15.5a4 4 0 0 0-3.09 4.24l.2 2.2a4 4 0 0 1-.97 2.98l-1.45 1.67a4 4 0 0 0 0 5.24l1.45 1.67a4 4 0 0 1 .97 2.97l-.2 2.2a4 4 0 0 0 3.09 4.25l2.15.5a4 4 0 0 1 2.53 1.84l1.14 1.9a4 4 0 0 0 5 1.62l2.03-.87zM152 207a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm6 2a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-11 1a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-6 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm3-5a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-8 8a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm3 6a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm0 6a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm4 7a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm5-2a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm5 4a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm4-6a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm6-4a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-4-3a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm4-3a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-5-4a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-24 6a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm16 5a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm7-5a7 7 0 1 1-14 0 7 7 0 0 1 14 0zm86-29a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2h-2zm19 9a1 1 0 0 1 1-1h2a1 1 0 0 1 0 2h-2a1 1 0 0 1-1-1zm-14 5a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2h-2zm-25 1a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2h-2zm5 4a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2h-2zm9 0a1 1 0 0 1 1-1h2a1 1 0 0 1 0 2h-2a1 1 0 0 1-1-1zm15 1a1 1 0 0 1 1-1h2a1 1 0 0 1 0 2h-2a1 1 0 0 1-1-1zm12-2a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2h-2zm-11-14a1 1 0 0 1 1-1h2a1 1 0 0 1 0 2h-2a1 1 0 0 1-1-1zm-19 0a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2h-2zm6 5a1 1 0 0 1 1-1h2a1 1 0 0 1 0 2h-2a1 1 0 0 1-1-1zm-25 15c0-.47.01-.94.03-1.4a5 5 0 0 1-1.7-8 3.99 3.99 0 0 1 1.88-5.18 5 5 0 0 1 3.4-6.22 3 3 0 0 1 1.46-1.05 5 5 0 0 1 7.76-3.27A30.86 30.86 0 0 1 246 184c6.79 0 13.06 2.18 18.17 5.88a5 5 0 0 1 7.76 3.27 3 3 0 0 1 1.47 1.05 5 5 0 0 1 3.4 6.22 4 4 0 0 1 1.87 5.18 4.98 4.98 0 0 1-1.7 8c.02.46.03.93.03 1.4v1h-62v-1zm.83-7.17a30.9 30.9 0 0 0-.62 3.57 3 3 0 0 1-.61-4.2c.37.28.78.49 1.23.63zm1.49-4.61c-.36.87-.68 1.76-.96 2.68a2 2 0 0 1-.21-3.71c.33.4.73.75 1.17 1.03zm2.32-4.54c-.54.86-1.03 1.76-1.49 2.68a3 3 0 0 1-.07-4.67 3 3 0 0 0 1.56 1.99zm1.14-1.7c.35-.5.72-.98 1.1-1.46a1 1 0 1 0-1.1 1.45zm5.34-5.77c-1.03.86-2 1.79-2.9 2.77a3 3 0 0 0-1.11-.77 3 3 0 0 1 4-2zm42.66 2.77c-.9-.98-1.87-1.9-2.9-2.77a3 3 0 0 1 4.01 2 3 3 0 0 0-1.1.77zm1.34 1.54c.38.48.75.96 1.1 1.45a1 1 0 1 0-1.1-1.45zm3.73 5.84c-.46-.92-.95-1.82-1.5-2.68a3 3 0 0 0 1.57-1.99 3 3 0 0 1-.07 4.67zm1.8 4.53c-.29-.9-.6-1.8-.97-2.67.44-.28.84-.63 1.17-1.03a2 2 0 0 1-.2 3.7zm1.14 5.51c-.14-1.21-.35-2.4-.62-3.57.45-.14.86-.35 1.23-.63a2.99 2.99 0 0 1-.6 4.2zM275 214a29 29 0 0 0-57.97 0h57.96zM72.33 198.12c-.21-.32-.34-.7-.34-1.12v-12h-2v12a4.01 4.01 0 0 0 7.09 2.54c.57-.69.91-1.57.91-2.54v-12h-2v12a1.99 1.99 0 0 1-2 2 2 2 0 0 1-1.66-.88zM75 176c.38 0 .74-.04 1.1-.12a4 4 0 0 0 6.19 2.4A13.94 13.94 0 0 1 84 185v24a6 6 0 0 1-6 6h-3v9a5 5 0 1 1-10 0v-9h-3a6 6 0 0 1-6-6v-24a14 14 0 0 1 14-14 5 5 0 0 0 5 5zm-17 15v12a1.99 1.99 0 0 0 1.22 1.84 2 2 0 0 0 2.44-.72c.21-.32.34-.7.34-1.12v-12h2v12a3.98 3.98 0 0 1-5.35 3.77 3.98 3.98 0 0 1-.65-.3V209a4 4 0 0 0 4 4h16a4 4 0 0 0 4-4v-24c.01-1.53-.23-2.88-.72-4.17-.43.1-.87.16-1.28.17a6 6 0 0 1-5.2-3 7 7 0 0 1-6.47-4.88A12 12 0 0 0 58 185v6zm9 24v9a3 3 0 1 0 6 0v-9h-6z'/%3E%3Cpath d='M-17 191a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2h-2zm19 9a1 1 0 0 1 1-1h2a1 1 0 0 1 0 2H3a1 1 0 0 1-1-1zm-14 5a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2h-2zm-25 1a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2h-2zm5 4a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2h-2zm9 0a1 1 0 0 1 1-1h2a1 1 0 0 1 0 2h-2a1 1 0 0 1-1-1zm15 1a1 1 0 0 1 1-1h2a1 1 0 0 1 0 2h-2a1 1 0 0 1-1-1zm12-2a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2H4zm-11-14a1 1 0 0 1 1-1h2a1 1 0 0 1 0 2h-2a1 1 0 0 1-1-1zm-19 0a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2h-2zm6 5a1 1 0 0 1 1-1h2a1 1 0 0 1 0 2h-2a1 1 0 0 1-1-1zm-25 15c0-.47.01-.94.03-1.4a5 5 0 0 1-1.7-8 3.99 3.99 0 0 1 1.88-5.18 5 5 0 0 1 3.4-6.22 3 3 0 0 1 1.46-1.05 5 5 0 0 1 7.76-3.27A30.86 30.86 0 0 1-14 184c6.79 0 13.06 2.18 18.17 5.88a5 5 0 0 1 7.76 3.27 3 3 0 0 1 1.47 1.05 5 5 0 0 1 3.4 6.22 4 4 0 0 1 1.87 5.18 4.98 4.98 0 0 1-1.7 8c.02.46.03.93.03 1.4v1h-62v-1zm.83-7.17a30.9 30.9 0 0 0-.62 3.57 3 3 0 0 1-.61-4.2c.37.28.78.49 1.23.63zm1.49-4.61c-.36.87-.68 1.76-.96 2.68a2 2 0 0 1-.21-3.71c.33.4.73.75 1.17 1.03zm2.32-4.54c-.54.86-1.03 1.76-1.49 2.68a3 3 0 0 1-.07-4.67 3 3 0 0 0 1.56 1.99zm1.14-1.7c.35-.5.72-.98 1.1-1.46a1 1 0 1 0-1.1 1.45zm5.34-5.77c-1.03.86-2 1.79-2.9 2.77a3 3 0 0 0-1.11-.77 3 3 0 0 1 4-2zm42.66 2.77c-.9-.98-1.87-1.9-2.9-2.77a3 3 0 0 1 4.01 2 3 3 0 0 0-1.1.77zm1.34 1.54c.38.48.75.96 1.1 1.45a1 1 0 1 0-1.1-1.45zm3.73 5.84c-.46-.92-.95-1.82-1.5-2.68a3 3 0 0 0 1.57-1.99 3 3 0 0 1-.07 4.67zm1.8 4.53c-.29-.9-.6-1.8-.97-2.67.44-.28.84-.63 1.17-1.03a2 2 0 0 1-.2 3.7zm1.14 5.51c-.14-1.21-.35-2.4-.62-3.57.45-.14.86-.35 1.23-.63a2.99 2.99 0 0 1-.6 4.2zM15 214a29 29 0 0 0-57.97 0h57.96z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,overlappinghexagons:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='40' viewBox='0 0 50 40'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath d='M40 10L36.67 0h-2.11l3.33 10H20l-2.28 6.84L12.11 0H10l6.67 20H10l-2.28 6.84L2.11 10 5.44 0h-2.1L0 10l6.67 20-3.34 10h2.11l2.28-6.84L10 40h20l2.28-6.84L34.56 40h2.1l-3.33-10H40l2.28-6.84L47.89 40H50l-6.67-20L50 0h-2.1l-5.62 16.84L40 10zm1.23 10l-2.28-6.84L34 28h4.56l2.67-8zm-10.67 8l-2-6h-9.12l2 6h9.12zm-12.84-4.84L12.77 38h15.79l2.67-8H20l-2.28-6.84zM18.77 20H30l2.28 6.84L37.23 12H21.44l-2.67 8zm-7.33 2H16l-4.95 14.84L8.77 30l2.67-8z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,fourpointstars:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpolygon fill-rule='evenodd' points='8 4 12 6 8 8 6 12 4 8 0 6 4 4 6 0 8 4'/%3E%3C/g%3E%3C/svg%3E")`,bamboo:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='32' viewBox='0 0 16 32'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath fill-rule='evenodd' d='M0 24h4v2H0v-2zm0 4h6v2H0v-2zm0-8h2v2H0v-2zM0 0h4v2H0V0zm0 4h2v2H0V4zm16 20h-6v2h6v-2zm0 4H8v2h8v-2zm0-8h-4v2h4v-2zm0-20h-6v2h6V0zm0 4h-4v2h4V4zm-2 12h2v2h-2v-2zm0-8h2v2h-2V8zM2 8h10v2H2V8zm0 8h10v2H2v-2zm-2-4h14v2H0v-2zm4-8h6v2H4V4zm0 16h6v2H4v-2zM6 0h2v2H6V0zm0 24h2v2H6v-2z'/%3E%3C/g%3E%3C/svg%3E")`,bathroomfloor:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath fill-rule='evenodd' d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4l4-4h2l-6 6V4zm0 4l8-8h2L40 10V8zm0 4L52 0h2L40 14v-2zm0 4L56 0h2L40 18v-2zm0 4L60 0h2L40 22v-2zm0 4L64 0h2L40 26v-2zm0 4L68 0h2L40 30v-2zm0 4L72 0h2L40 34v-2zm0 4L76 0h2L40 38v-2zm0 4L80 0v2L42 40h-2zm4 0L80 4v2L46 40h-2zm4 0L80 8v2L50 40h-2zm4 0l28-28v2L54 40h-2zm4 0l24-24v2L58 40h-2zm4 0l20-20v2L62 40h-2zm4 0l16-16v2L66 40h-2zm4 0l12-12v2L70 40h-2zm4 0l8-8v2l-6 6h-2zm4 0l4-4v2l-2 2h-2z'/%3E%3C/g%3E%3C/svg%3E")`,corkscrew:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='16' viewBox='0 0 20 16'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath fill-rule='evenodd' d='M0 .04C2.6.22 4.99 1.1 7 2.5A13.94 13.94 0 0 1 15 0h4c.34 0 .67.01 1 .04v2A12 12 0 0 0 7.17 12h5.12A7 7 0 0 1 20 7.07V14a5 5 0 0 0-3-4.58A5 5 0 0 0 14 14H0V7.07c.86.12 1.67.4 2.4.81.75-1.52 1.76-2.9 2.98-4.05C3.79 2.83 1.96 2.2 0 2.04v-2z'/%3E%3C/g%3E%3C/svg%3E")`,happyintersection:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath fill-rule='evenodd' d='M29.42 29.41c.36-.36.58-.85.58-1.4V0h-4v26H0v4h28c.55 0 1.05-.22 1.41-.58h.01zm0 29.18c.36.36.58.86.58 1.4V88h-4V62H0v-4h28c.56 0 1.05.22 1.41.58zm29.16 0c-.36.36-.58.85-.58 1.4V88h4V62h26v-4H60c-.55 0-1.05.22-1.41.58h-.01zM62 26V0h-4v28c0 .55.22 1.05.58 1.41.37.37.86.59 1.41.59H88v-4H62zM18 36c0-1.1.9-2 2-2h10a2 2 0 1 1 0 4H20a2 2 0 0 1-2-2zm0 16c0-1.1.9-2 2-2h10a2 2 0 1 1 0 4H20a2 2 0 0 1-2-2zm16-26a2 2 0 0 1 2-2 2 2 0 0 1 2 2v4a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-4zm16 0a2 2 0 0 1 2-2 2 2 0 0 1 2 2v4a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-4zM34 58a2 2 0 0 1 2-2 2 2 0 0 1 2 2v4a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-4zm16 0a2 2 0 0 1 2-2 2 2 0 0 1 2 2v4a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-4zM34 78a2 2 0 0 1 2-2 2 2 0 0 1 2 2v6a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-6zm16 0a2 2 0 0 1 2-2 2 2 0 0 1 2 2v6a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-6zM34 4a2 2 0 0 1 2-2 2 2 0 0 1 2 2v6a2 2 0 0 1-2 2 2 2 0 0 1-2-2V4zm16 0a2 2 0 0 1 2-2 2 2 0 0 1 2 2v6a2 2 0 0 1-2 2 2 2 0 0 1-2-2V4zm-8 82a2 2 0 1 1 4 0v2h-4v-2zm0-68a2 2 0 1 1 4 0v10a2 2 0 1 1-4 0V18zM66 4a2 2 0 1 1 4 0v8a2 2 0 1 1-4 0V4zm0 72a2 2 0 1 1 4 0v8a2 2 0 1 1-4 0v-8zm-48 0a2 2 0 1 1 4 0v8a2 2 0 1 1-4 0v-8zm0-72a2 2 0 1 1 4 0v8a2 2 0 1 1-4 0V4zm24-4h4v2a2 2 0 1 1-4 0V0zm0 60a2 2 0 1 1 4 0v10a2 2 0 1 1-4 0V60zm14-24c0-1.1.9-2 2-2h10a2 2 0 1 1 0 4H58a2 2 0 0 1-2-2zm0 16c0-1.1.9-2 2-2h10a2 2 0 1 1 0 4H58a2 2 0 0 1-2-2zm-28-6a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm8 26a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm16 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4zM36 20a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm16 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm-8-8a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0 68a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm16-34a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm16-12a2 2 0 1 0 0 4 6 6 0 1 1 0 12 2 2 0 1 0 0 4 10 10 0 1 0 0-20zm-64 0a2 2 0 1 1 0 4 6 6 0 1 0 0 12 2 2 0 1 1 0 4 10 10 0 1 1 0-20zm56-12a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0 48a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm-48 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0-48a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm24 32a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm0-4a6 6 0 1 0 0-12 6 6 0 0 0 0 12zm36-36a6 6 0 1 1 0-12 6 6 0 0 1 0 12zm0-4a2 2 0 1 0 0-4 2 2 0 0 0 0 4zM10 44c0-1.1.9-2 2-2h8a2 2 0 1 1 0 4h-8a2 2 0 0 1-2-2zm56 0c0-1.1.9-2 2-2h8a2 2 0 1 1 0 4h-8a2 2 0 0 1-2-2zm8 24c0-1.1.9-2 2-2h8a2 2 0 1 1 0 4h-8a2 2 0 0 1-2-2zM3 68c0-1.1.9-2 2-2h8a2 2 0 1 1 0 4H5a2 2 0 0 1-2-2zm0-48c0-1.1.9-2 2-2h8a2 2 0 1 1 0 4H5a2 2 0 0 1-2-2zm71 0c0-1.1.9-2 2-2h8a2 2 0 1 1 0 4h-8a2 2 0 0 1-2-2zm6 66a6 6 0 1 1 0-12 6 6 0 0 1 0 12zm0-4a2 2 0 1 0 0-4 2 2 0 0 0 0 4zM8 86a6 6 0 1 1 0-12 6 6 0 0 1 0 12zm0-4a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0-68A6 6 0 1 1 8 2a6 6 0 0 1 0 12zm0-4a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm36 36a2 2 0 1 0 0-4 2 2 0 0 0 0 4z'/%3E%3C/g%3E%3C/svg%3E")`,kiwi:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='44' viewBox='0 0 34 44'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath fill-rule='evenodd' d='M1 6.2C.72 5.55.38 4.94 0 4.36v13.28c.38-.58.72-1.2 1-1.84A12.04 12.04 0 0 0 7.2 22 12.04 12.04 0 0 0 1 28.2c-.28-.65-.62-1.26-1-1.84v13.28c.38-.58.72-1.2 1-1.84A12.04 12.04 0 0 0 7.2 44h21.6a12.05 12.05 0 0 0 5.2-4.36V26.36A12.05 12.05 0 0 0 28.8 22a12.05 12.05 0 0 0 5.2-4.36V4.36A12.05 12.05 0 0 0 28.8 0H7.2A12.04 12.04 0 0 0 1 6.2zM17.36 23H12a10 10 0 1 0 0 20h5.36a11.99 11.99 0 0 1 0-20zm1.28-2H24a10 10 0 1 0 0-20h-5.36a11.99 11.99 0 0 1 0 20zM12 1a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 14a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm-3.46-2a2 2 0 1 0-3.47 2 2 2 0 0 0 3.47-2zm0-4a2 2 0 1 0-3.47-2 2 2 0 0 0 3.47 2zM12 7a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm3.46 2a2 2 0 1 0 3.47-2 2 2 0 0 0-3.47 2zm0 4a2 2 0 1 0 3.47 2 2 2 0 0 0-3.47-2zM24 43a10 10 0 1 0 0-20 10 10 0 0 0 0 20zm0-14a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm3.46 2a2 2 0 1 0 3.47-2 2 2 0 0 0-3.47 2zm0 4a2 2 0 1 0 3.47 2 2 2 0 0 0-3.47-2zM24 37a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm-3.46-2a2 2 0 1 0-3.47 2 2 2 0 0 0 3.47-2zm0-4a2 2 0 1 0-3.47-2 2 2 0 0 0 3.47 2z'/%3E%3C/g%3E%3C/svg%3E")`,lips:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='92' viewBox='0 0 112 92'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath fill-rule='evenodd' d='M72 10H40L16 20H0v8h16l24-14h32l24 14h16v-8H96L72 10zm0-8H40L16 4H0v8h16l24-6h32l24 6h16V4H96L72 2zm0 84H40l-24-6H0v8h16l24 2h32l24-2h16v-8H96l-24 6zm0-8H40L16 64H0v8h16l24 10h32l24-10h16v-8H96L72 78zm0-12H40L16 56H0v4h16l24 14h32l24-14h16v-4H96L72 66zm0-16H40l-24-2H0v4h16l24 6h32l24-6h16v-4H96l-24 2zm0-16H40l-24 6H0v4h16l24-2h32l24 2h16v-4H96l-24-6zm0-16H40L16 32H0v4h16l24-10h32l24 10h16v-4H96L72 18z'/%3E%3C/g%3E%3C/svg%3E")`,lisbon:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath fill-rule='evenodd' d='M41 37.59V25h-2v12.59l-8.9-8.9-1.41 1.41 8.9 8.9H25v2h12.59l-8.9 8.9 1.41 1.41 8.9-8.9V55h2V42.41l8.9 8.9 1.41-1.41-8.9-8.9H55v-2H42.41l8.9-8.9-1.41-1.41-8.9 8.9zM1 1h2v2H1V1zm0 4h2v2H1V5zm0 4h2v2H1V9zm0 4h2v2H1v-2zm0 4h2v2H1v-2zm0 4h2v2H1v-2zm0 4h2v2H1v-2zm0 4h2v2H1v-2zm0 4h2v2H1v-2zm0 4h2v2H1v-2zm0 4h2v2H1v-2zm0 4h2v2H1v-2zm0 4h2v2H1v-2zm0 4h2v2H1v-2zm0 4h2v2H1v-2zm0 4h2v2H1v-2zm0 4h2v2H1v-2zm0 4h2v2H1v-2zm0 4h2v2H1v-2zm0 4h2v2H1v-2zm4 0h2v2H5v-2zm4 0h2v2H9v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zM5 1h2v2H5V1zm4 0h2v2H9V1zm4 0h2v2h-2V1zm4 0h2v2h-2V1zm4 0h2v2h-2V1zm4 0h2v2h-2V1zm4 0h2v2h-2V1zm4 0h2v2h-2V1zm4 0h2v2h-2V1zm4 0h2v2h-2V1zm4 0h2v2h-2V1zm4 0h2v2h-2V1zm4 0h2v2h-2V1zm4 0h2v2h-2V1zm4 0h2v2h-2V1zm4 0h2v2h-2V1zm4 0h2v2h-2V1zm4 0h2v2h-2V1zm4 0h2v2h-2V1zm0 4h2v2h-2V5zm0 4h2v2h-2V9zm0 4h2v2h-2v-2zm0 4h2v2h-2v-2zm0 4h2v2h-2v-2zm0 4h2v2h-2v-2zm0 4h2v2h-2v-2zm0 4h2v2h-2v-2zm0 4h2v2h-2v-2zm0 4h2v2h-2v-2zm0 4h2v2h-2v-2zm0 4h2v2h-2v-2zm0 4h2v2h-2v-2zm0 4h2v2h-2v-2zm0 4h2v2h-2v-2zm0 4h2v2h-2v-2zm0 4h2v2h-2v-2zm0 4h2v2h-2v-2zM5 5h70v70H5V5zm2 68h66V7H7v66zM9 9h62v62H9V9zm2 60h58V11H11v58zm2-39.6V13h16.4A29.1 29.1 0 0 0 13 29.4zM15 15v6.67A31.17 31.17 0 0 1 21.67 15H15zm-2 52V50.6A29.1 29.1 0 0 0 29.4 67H13zm2-8.67V65h6.67A31.17 31.17 0 0 1 15 58.33zM67 67H50.6A29.1 29.1 0 0 0 67 50.6V67zm-8.67-2H65v-6.67A31.17 31.17 0 0 1 58.33 65zM67 13v16.4A29.1 29.1 0 0 0 50.6 13H67zm-2 8.67V15h-6.67A31.17 31.17 0 0 1 65 21.67zM39 13h2v2h-2v-2zm7.02.66l1.93.52-.51 1.93-1.94-.52.52-1.93zm6.61 2.46l1.74 1-1 1.73-1.74-1 1-1.73zm5.75 4.08l1.42 1.42-1.42 1.4-1.4-1.4 1.4-1.42zm4.5 5.43l1 1.74-1.73 1-1-1.74 1.73-1zm2.94 6.42l.52 1.93-1.93.52-.52-1.94 1.93-.51zM67 39v2h-2v-2h2zm-.66 7.02l-.52 1.93-1.93-.51.52-1.94 1.93.52zm-2.46 6.61l-1 1.74-1.73-1 1-1.74 1.73 1zm-4.08 5.75l-1.42 1.42-1.4-1.42 1.4-1.4 1.42 1.4zm-5.43 4.5l-1.74 1-1-1.73 1.74-1 1 1.73zM41 67h-2v-2h2v2zm6.95-1.18l-1.93.52-.52-1.93 1.94-.52.51 1.93zm-13.97.52l-1.93-.52.51-1.93 1.94.52-.52 1.93zm-6.61-2.46l-1.74-1 1-1.73 1.74 1-1 1.73zm-5.75-4.08l-1.42-1.42 1.42-1.4 1.4 1.4-1.4 1.42zm-4.5-5.43l-1-1.74 1.73-1 1 1.74-1.73 1zm-2.94-6.42l-.52-1.93 1.93-.52.52 1.94-1.93.51zM13 41v-2h2v2h-2zm.66-7.02l.52-1.93 1.93.51-.52 1.94-1.93-.52zm2.46-6.61l1-1.74 1.73 1-1 1.74-1.73-1zm4.08-5.75l1.42-1.42 1.4 1.42-1.4 1.4-1.42-1.4zm5.43-4.5l1.74-1 1 1.73-1.74 1-1-1.73zm6.42-2.94l1.93-.52.52 1.93-1.94.52-.51-1.93zM40 63a23 23 0 1 1 0-46 23 23 0 0 1 0 46zm0-2a21 21 0 1 0 0-42 21 21 0 0 0 0 42zm0-2a19 19 0 1 1 0-38 19 19 0 0 1 0 38zm0-2a17 17 0 1 0 0-34 17 17 0 0 0 0 34z'/%3E%3C/g%3E%3C/svg%3E")`,randomshapes:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath fill-rule='evenodd' d='M11 0l5 20H6l5-20zm42 31a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM0 72h40v4H0v-4zm0-8h31v4H0v-4zm20-16h20v4H20v-4zM0 56h40v4H0v-4zm63-25a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm10 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM53 41a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm10 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm10 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-30 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-28-8a5 5 0 0 0-10 0h10zm10 0a5 5 0 0 1-10 0h10zM56 5a5 5 0 0 0-10 0h10zm10 0a5 5 0 0 1-10 0h10zm-3 46a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm10 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM21 0l5 20H16l5-20zm43 64v-4h-4v4h-4v4h4v4h4v-4h4v-4h-4zM36 13h4v4h-4v-4zm4 4h4v4h-4v-4zm-4 4h4v4h-4v-4zm8-8h4v4h-4v-4z'/%3E%3C/g%3E%3C/svg%3E")`,steelbeams:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='58' viewBox='0 0 42 58'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath fill-rule='evenodd' d='M12 18h12v18h6v4H18V22h-6v-4zm-6-2v-4H0V0h36v6h6v36h-6v4h6v12H6v-6H0V16h6zM34 2H2v8h24v24h8V2zM6 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm8 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm8 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm8 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4zM2 50h32v-8H10V18H2v32zm28-6a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm-8 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm-8 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm-8 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm0-8a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm0-8a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm0-8a2 2 0 1 0 0 4 2 2 0 0 0 0-4z'/%3E%3C/g%3E%3C/svg%3E")`,tinycheckers:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath fill-rule='evenodd' d='M0 0h4v4H0V0zm4 4h4v4H4V4z'/%3E%3C/g%3E%3C/svg%3E")`,xequals:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath fill-rule='evenodd' d='M5 3.59L1.46.05.05 1.46 3.59 5 .05 8.54l1.41 1.41L5 6.41l3.54 3.54 1.41-1.41L6.41 5l3.54-3.54L8.54.05 5 3.59zM17 2h24v2H17V2zm0 4h24v2H17V6zM2 17h2v24H2V17zm4 0h2v24H6V17z'/%3E%3C/g%3E%3C/svg%3E")`,anchorsaway:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80' width='80' height='80'%3E%3Cpath fill='{{color}}' fill-opacity='{{opacity}}' d='M14 16H9v-2h5V9.87a4 4 0 1 1 2 0V14h5v2h-5v15.95A10 10 0 0 0 23.66 27l-3.46-2 8.2-2.2-2.9 5a12 12 0 0 1-21 0l-2.89-5 8.2 2.2-3.47 2A10 10 0 0 0 14 31.95V16zm40 40h-5v-2h5v-4.13a4 4 0 1 1 2 0V54h5v2h-5v15.95A10 10 0 0 0 63.66 67l-3.47-2 8.2-2.2-2.88 5a12 12 0 0 1-21.02 0l-2.88-5 8.2 2.2-3.47 2A10 10 0 0 0 54 71.95V56zm-39 6a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm40-40a2 2 0 1 1 0-4 2 2 0 0 1 0 4zM15 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm40 40a2 2 0 1 0 0-4 2 2 0 0 0 0 4z'%3E%3C/path%3E%3C/svg%3E")`,bevelcircle:`url("data:image/svg+xml,%3Csvg width='38' height='38' viewBox='0 0 38 38' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='Page-1' fill='none' fill-rule='evenodd'%3E%3Cg id='bevel-circle' fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath d='M10.414 29l-8 8h33.172l-8-8H10.414zM9 27.586l-8 8V2.414l8 8v17.172zM10.414 9l-8-8h33.172l-8 8H10.414zM29 10.414l8-8v33.172l-8-8V10.414zM11 11h16v16H11V11zm8 14c3.314 0 6-2.686 6-6s-2.686-6-6-6-6 2.686-6 6 2.686 6 6 6zm0-2c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zM0 0h38v38H0V0z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,brickwall:`url("data:image/svg+xml,%3Csvg width='42' height='44' viewBox='0 0 42 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='Page-1' fill='none' fill-rule='evenodd'%3E%3Cg id='brick-wall' fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath d='M0 0h42v44H0V0zm1 1h40v20H1V1zM0 23h20v20H0V23zm22 0h20v20H22V23z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,fancyrectangles:`url("data:image/svg+xml,%3Csvg width='60' height='48' viewBox='0 0 60 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='Page-1' fill='none' fill-rule='evenodd'%3E%3Cg id='fancy-rectangles' fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath d='M6 12h6v12H6V12zm12 0h6v12h-6V12zm6-12h6v12h-6V0zM12 0h6v12h-6V0zm0 24h6v12h-6V24zM0 0h6v12H0V0zm6 36h6v12H6V36zm12 0h6v12h-6V36zm12-12h6v12h-6V24zM42 0h6v12h-6V0zm-6 12h6v12h-6V12zm12 0h6v12h-6V12zM36 36h6v12h-6V36zm12 0h6v12h-6V36zm-6-12h6v12h-6V24zm12 0h6v12h-6V24z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,heavyrain:`url("data:image/svg+xml,%3Csvg width='12' height='24' viewBox='0 0 12 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath d='M2 0h2v12H2V0zm1 20c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM9 8c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-1 4h2v12H8V12z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,overlappingcircles:`url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10zm10 8c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm40 40c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,plus:`url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,roundedplusconnected:`url("data:image/svg+xml,%3Csvg width='84' height='84' viewBox='0 0 84 84' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath d='M84 23c-4.417 0-8-3.584-8-7.998V8h-7.002C64.58 8 61 4.42 61 0H23c0 4.417-3.584 8-7.998 8H8v7.002C8 19.42 4.42 23 0 23v38c4.417 0 8 3.584 8 7.998V76h7.002C19.42 76 23 79.58 23 84h38c0-4.417 3.584-8 7.998-8H76v-7.002C76 64.58 79.58 61 84 61V23zM59.05 83H43V66.95c5.054-.5 9-4.764 9-9.948V52h5.002c5.18 0 9.446-3.947 9.95-9H83v16.05c-5.054.5-9 4.764-9 9.948V74h-5.002c-5.18 0-9.446 3.947-9.95 9zm-34.1 0H41V66.95c-5.053-.502-9-4.768-9-9.948V52h-5.002c-5.184 0-9.447-3.946-9.95-9H1v16.05c5.053.502 9 4.768 9 9.948V74h5.002c5.184 0 9.447 3.946 9.95 9zm0-82H41v16.05c-5.054.5-9 4.764-9 9.948V32h-5.002c-5.18 0-9.446 3.947-9.95 9H1V24.95c5.054-.5 9-4.764 9-9.948V10h5.002c5.18 0 9.446-3.947 9.95-9zm34.1 0H43v16.05c5.053.502 9 4.768 9 9.948V32h5.002c5.184 0 9.447 3.946 9.95 9H83V24.95c-5.053-.502-9-4.768-9-9.948V10h-5.002c-5.184 0-9.447-3.946-9.95-9zM50 50v7.002C50 61.42 46.42 65 42 65c-4.417 0-8-3.584-8-7.998V50h-7.002C22.58 50 19 46.42 19 42c0-4.417 3.584-8 7.998-8H34v-7.002C34 22.58 37.58 19 42 19c4.417 0 8 3.584 8 7.998V34h7.002C61.42 34 65 37.58 65 42c0 4.417-3.584 8-7.998 8H50z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,volcanolamp:`url("data:image/svg+xml,%3Csvg width='48' height='32' viewBox='0 0 48 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath d='M27 32c0-3.314 2.686-6 6-6 5.523 0 10-4.477 10-10S38.523 6 33 6c-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 6.627 0 12 5.373 12 12s-5.373 12-12 12c-2.21 0-4 1.79-4 4h-2zm-6 0c0-3.314-2.686-6-6-6-5.523 0-10-4.477-10-10S9.477 6 15 6c3.314 0 6-2.686 6-6h-2c0 2.21-1.79 4-4 4C8.373 4 3 9.373 3 16s5.373 12 12 12c2.21 0 4 1.79 4 4h2z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,wiggle:`url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,bubbles:`url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'/%3E%3C/svg%3E")`,cage:`url("data:image/svg+xml,%3Csvg width='32' height='26' viewBox='0 0 32 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 0v3.994C14 7.864 10.858 11 7 11c-3.866 0-7-3.138-7-7.006V0h2v4.005C2 6.765 4.24 9 7 9c2.756 0 5-2.236 5-4.995V0h2zm0 26v-5.994C14 16.138 10.866 13 7 13c-3.858 0-7 3.137-7 7.006V26h2v-6.005C2 17.235 4.244 15 7 15c2.76 0 5 2.236 5 4.995V26h2zm2-18.994C16 3.136 19.142 0 23 0c3.866 0 7 3.138 7 7.006v9.988C30 20.864 26.858 24 23 24c-3.866 0-7-3.138-7-7.006V7.006zm2-.01C18 4.235 20.244 2 23 2c2.76 0 5 2.236 5 4.995v10.01C28 19.765 25.756 22 23 22c-2.76 0-5-2.236-5-4.995V6.995z' fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'/%3E%3C/svg%3E")`,connections:`url("data:image/svg+xml,%3Csvg width='36' height='36' viewBox='0 0 36 36' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M36 0H0v36h36V0zM15.126 2H2v13.126c.367.094.714.24 1.032.428L15.554 3.032c-.188-.318-.334-.665-.428-1.032zM18 4.874V18H4.874c-.094-.367-.24-.714-.428-1.032L16.968 4.446c.318.188.665.334 1.032.428zM22.874 2h11.712L20 16.586V4.874c1.406-.362 2.512-1.468 2.874-2.874zm10.252 18H20v13.126c.367.094.714.24 1.032.428l12.522-12.522c-.188-.318-.334-.665-.428-1.032zM36 22.874V36H22.874c-.094-.367-.24-.714-.428-1.032l12.522-12.522c.318.188.665.334 1.032.428zm0-7.748V3.414L21.414 18h11.712c.362-1.406 1.468-2.512 2.874-2.874zm-18 18V21.414L3.414 36h11.712c.362-1.406 1.468-2.512 2.874-2.874zM4.874 20h11.712L2 34.586V22.874c1.406-.362 2.512-1.468 2.874-2.874z' fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'/%3E%3C/svg%3E")`,current:`url("data:image/svg+xml,%3Csvg width='76' height='18' viewBox='0 0 76 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M32 18c-2.43-1.824-4-4.73-4-8 0-4.418-3.582-8-8-8H0V0h20c5.523 0 10 4.477 10 10 0 4.418 3.582 8 8 8h20c4.418 0 8-3.582 8-8 0-5.523 4.477-10 10-10v2c-4.418 0-8 3.582-8 8 0 3.27-1.57 6.176-4 8H32zM64 0c-1.67 1.256-3.748 2-6 2H38c-2.252 0-4.33-.744-6-2h32z' fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'/%3E%3C/svg%3E")`,diagonalstripes:`url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E")`,flippeddiamonds:`url("data:image/svg+xml,%3Csvg width='16' height='20' viewBox='0 0 16 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'%3E%3Cpath d='M8 0v20L0 10M16 0v10L8 0M16 10v10H8'/%3E%3C/g%3E%3C/svg%3E")`,floatingcogs:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360' viewBox='0 0 360 360'%3E%3Cpath fill='{{color}}' fill-opacity='{{opacity}}' d='M0 85.02l4.62-4.27a49.09 49.09 0 0 0 7.33 3.74l-1.2 10.24 2.66.87 5.05-9c2.62.65 5.34 1.08 8.12 1.28L28.6 98h2.8l2.02-10.12c2.74-.2 5.46-.62 8.12-1.28l5.05 8.99 2.66-.86-1.2-10.24c2.55-1.03 5-2.29 7.33-3.74l7.58 7 2.26-1.65-4.3-9.38a48.3 48.3 0 0 0 5.8-5.8l9.38 4.3 1.65-2.26-7-7.58a49.09 49.09 0 0 0 3.74-7.33l10.24 1.2.87-2.66-9-5.05a48.07 48.07 0 0 0 1.28-8.12L88 41.4v-2.8l-10.12-2.02c-.2-2.74-.62-5.46-1.28-8.12l8.99-5.05-.86-2.66-10.24 1.2c-1.03-2.55-2.29-5-3.74-7.33l7-7.58-1.65-2.26-9.38 4.3a48.3 48.3 0 0 0-5.8-5.8L62.42 0h2.16l-1.25 2.72a50.31 50.31 0 0 1 3.95 3.95l9.5-4.36 3.52 4.85-7.08 7.68c.94 1.6 1.79 3.27 2.54 4.98l10.38-1.21 1.85 5.7-9.11 5.12c.39 1.8.68 3.65.87 5.52L90 37v6l-10.25 2.05a49.9 49.9 0 0 1-.87 5.52l9.11 5.12-1.85 5.7-10.38-1.21c-.75 1.7-1.6 3.37-2.54 4.98l7.08 7.68-3.52 4.85-9.5-4.36a50.31 50.31 0 0 1-3.95 3.95l4.36 9.5-4.85 3.52-7.68-7.08c-1.6.94-3.27 1.79-4.98 2.54l1.21 10.38-5.7 1.85-5.12-9.11c-1.8.39-3.65.68-5.52.87L33 100h-6l-2.05-10.25a49.9 49.9 0 0 1-5.52-.87l-5.12 9.11-5.7-1.85 1.21-10.38c-1.7-.75-3.37-1.6-4.98-2.54L0 87.68v-2.66zM0 52.7V27.3l8.38 4.84a22.96 22.96 0 0 0 0 15.72L0 52.7zm0-39.16A39.91 39.91 0 0 1 26 .2v17.15a22.98 22.98 0 0 0-13.62 7.86L0 18.06v-4.52zm0 52.92v-4.52l12.38-7.15A22.98 22.98 0 0 0 26 62.65V79.8A39.91 39.91 0 0 1 0 66.46zM34 79.8V62.65a22.98 22.98 0 0 0 13.62-7.86l14.85 8.58A39.97 39.97 0 0 1 34 79.8zm32.48-23.36l-14.86-8.58a22.96 22.96 0 0 0 0-15.72l14.86-8.58A39.86 39.86 0 0 1 70 40a39.9 39.9 0 0 1-3.52 16.44zm-4.01-39.8L47.62 25.2A22.98 22.98 0 0 0 34 17.35V.2a39.97 39.97 0 0 1 28.47 16.43v.01zM0 50.38l5.98-3.45a25.01 25.01 0 0 1 0-13.88L0 29.6v20.78zm.5-34.35l11.48 6.63c3.27-3.4 7.44-5.8 12.02-6.94V2.47A37.96 37.96 0 0 0 .5 16.04v-.01zm0 47.92A37.96 37.96 0 0 0 24 77.53V64.28a24.97 24.97 0 0 1-12.02-6.95L.5 63.96v-.01zM36 77.53a37.96 37.96 0 0 0 23.5-13.57l-11.48-6.63A24.97 24.97 0 0 1 36 64.28v13.25zm29.5-23.96a37.91 37.91 0 0 0 0-27.14l-11.48 6.63a25.01 25.01 0 0 1 0 13.88l11.49 6.63h-.01zm-6-37.53A37.96 37.96 0 0 0 36 2.47v13.25c4.66 1.15 8.8 3.6 12.02 6.95l11.48-6.63zM30 54a14 14 0 1 1 0-28 14 14 0 0 1 0 28zm0-2a12 12 0 1 0 0-24 12 12 0 0 0 0 24zm0-2a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm77.47 45.17l-1.62-5.97 5.67-2.06 2.61 5.64c1.09-.25 2.2-.44 3.33-.58l.52-6.2h6.04l.52 6.2c1.13.14 2.24.33 3.33.58l2.6-5.64 5.68 2.06-1.62 5.97c1.02.51 2 1.07 2.95 1.69l4.35-4.38 4.62 3.88-3.53 5c.8.84 1.53 1.71 2.23 2.62l5.52-2.6 3.02 5.23-4.98 3.46c.46 1.06.86 2.14 1.2 3.25l6.02-.54 1.05 5.94-5.84 1.54c.07 1.16.07 2.32 0 3.48l5.84 1.54-1.05 5.94-6.02-.54c-.34 1.1-.74 2.2-1.2 3.25l4.98 3.46-3.02 5.22-5.52-2.6c-.7.92-1.44 1.8-2.23 2.62l3.53 5-4.62 3.89-4.35-4.38a30.2 30.2 0 0 1-2.95 1.69l1.62 5.97-5.67 2.06-2.61-5.64c-1.09.25-2.2.44-3.33.58l-.52 6.2h-6.04l-.52-6.2a30.27 30.27 0 0 1-3.33-.58l-2.6 5.64-5.68-2.06 1.62-5.97c-1.01-.5-2-1.07-2.95-1.69l-4.35 4.38-4.62-3.88 3.53-5a32.5 32.5 0 0 1-2.23-2.62l-5.52 2.6-3.02-5.23 4.98-3.46a29.66 29.66 0 0 1-1.2-3.25l-6.02.54-1.05-5.94 5.84-1.54a30.28 30.28 0 0 1 0-3.48l-5.84-1.54 1.05-5.94 6.02.54c.34-1.1.74-2.2 1.2-3.25l-4.98-3.46 3.02-5.22 5.52 2.6c.7-.92 1.44-1.8 2.23-2.62l-3.53-5 4.62-3.89 4.35 4.38a30.2 30.2 0 0 1 2.95-1.69zm15.2-1.12l-.5-6.05h-2.34l-.5 6.05c-2.18.13-4.3.5-6.32 1.1l-2.54-5.5-2.2.8 1.6 5.85a27.97 27.97 0 0 0-5.56 3.21l-4.27-4.3-1.79 1.5 3.5 4.95a28.14 28.14 0 0 0-4.12 4.92l-5.5-2.59-1.16 2.02 4.98 3.46a27.8 27.8 0 0 0-2.2 6.03l-6.03-.55-.4 2.3 5.86 1.54a28.3 28.3 0 0 0 0 6.42l-5.87 1.55.4 2.3 6.05-.56a27.8 27.8 0 0 0 2.2 6.03l-5 3.47 1.17 2.02 5.49-2.59a28.14 28.14 0 0 0 4.12 4.92l-3.5 4.96 1.79 1.5 4.27-4.31a27.97 27.97 0 0 0 5.56 3.21l-1.6 5.85 2.2.8 2.54-5.5c2.02.6 4.14.97 6.32 1.1l.5 6.05h2.34l.5-6.05c2.18-.13 4.3-.5 6.32-1.1l2.54 5.5 2.2-.8-1.6-5.85a27.97 27.97 0 0 0 5.56-3.21l4.27 4.3 1.79-1.5-3.5-4.95a28.14 28.14 0 0 0 4.12-4.92l5.5 2.59 1.16-2.02-4.98-3.46a27.8 27.8 0 0 0 2.2-6.03l6.03.55.4-2.3-5.86-1.54a28.3 28.3 0 0 0 0-6.42l5.87-1.55-.4-2.3-6.05.56a27.8 27.8 0 0 0-2.2-6.03l4.99-3.46-1.17-2.02-5.49 2.59a28.14 28.14 0 0 0-4.12-4.92l3.5-4.96-1.79-1.5-4.27 4.31a27.97 27.97 0 0 0-5.56-3.21l1.6-5.85-2.2-.8-2.54 5.5c-2.02-.6-4.14-.97-6.32-1.1l.01-.01zM121 128a8 8 0 1 1 0-16 8 8 0 0 1 0 16zm0-2a6 6 0 1 0 0-12 6 6 0 0 0 0 12zm0-18a5 5 0 1 1 0-10 5 5 0 0 1 0 10zm8.49 3.51a5 5 0 1 1 6.95-7.2 5 5 0 0 1-6.95 7.2zM133 120a5 5 0 1 1 10 0 5 5 0 0 1-10 0zm-3.51 8.49a5 5 0 1 1 7.2 6.95 5 5 0 0 1-7.2-6.95zM121 132a5 5 0 1 1 0 10 5 5 0 0 1 0-10zm-8.49-3.51a5 5 0 1 1-6.95 7.2 5 5 0 0 1 6.95-7.2zM109 120a5 5 0 1 1-10 0 5 5 0 0 1 10 0zm3.51-8.49a5 5 0 1 1-7.2-6.95 5 5 0 0 1 7.2 6.95zM121 106a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm9.9 4.1a3 3 0 1 0 4.39-4.09 3 3 0 0 0-4.39 4.09zm4.1 9.9a3 3 0 1 0 6 0 3 3 0 0 0-6 0zm-4.1 9.9a3 3 0 1 0 4.09 4.39 3 3 0 0 0-4.09-4.39zM121 134a3 3 0 1 0 0 6 3 3 0 0 0 0-6zm-9.9-4.1a3 3 0 1 0-4.39 4.09 3 3 0 0 0 4.39-4.09zM107 120a3 3 0 1 0-6 0 3 3 0 0 0 6 0zm4.1-9.9a3 3 0 1 0-4.09-4.39 3 3 0 0 0 4.09 4.39zm129.42-6.95v.01c.87.07 1.74.17 2.6.3l1.5-3.91 1.94-3.64 3.89.97v4.13l-.5 4.13c.83.28 1.64.59 2.44.93l2.42-3.43 2.76-3.07 3.54 1.88-1 4-1.49 3.89c.73.47 1.45.97 2.15 1.49l3.19-2.76 3.42-2.3 2.97 2.67-1.93 3.65-2.38 3.4c.6.64 1.2 1.3 1.76 1.99l3.68-1.94 3.85-1.48 2.29 3.28-2.7 3.11-3.12 2.82c.43.76.84 1.53 1.22 2.32l4.04-1 4.1-.5 1.43 3.73-3.37 2.37-3.7 1.98c.23.84.44 1.68.62 2.54l4.17.01 4.1.5.48 3.97-3.85 1.48-4.06 1.02c.03.87.03 1.75 0 2.62l4.06 1.02 3.85 1.48-.48 3.97-4.1.51h-4.17c-.18.86-.39 1.71-.63 2.54l3.7 1.98 3.38 2.37-1.43 3.73-4.1-.5-4.04-1c-.38.79-.79 1.56-1.22 2.32l3.13 2.82 2.7 3.11-2.3 3.28-3.85-1.48-3.68-1.95a37 37 0 0 1-1.76 2l2.38 3.41 1.93 3.64-2.97 2.67-3.42-2.3-3.19-2.76a40.1 40.1 0 0 1-2.15 1.48l1.48 3.9 1 4-3.53 1.88-2.76-3.07-2.42-3.43c-.8.33-1.61.65-2.45.93l.5 4.13v4.13l-3.88.97-1.94-3.65-1.5-3.9c-.86.13-1.73.23-2.6.31L240 187l-1 4h-4l-1-4-.52-4.16a37.6 37.6 0 0 1-2.6-.3l-1.5 3.91-1.94 3.64-3.89-.97v-4.13l.5-4.13c-.83-.28-1.64-.59-2.44-.93l-2.42 3.43-2.76 3.07-3.54-1.88 1-4 1.49-3.89c-.74-.47-1.45-.97-2.15-1.49l-3.19 2.76-3.42 2.3-2.97-2.67 1.93-3.65 2.38-3.4c-.61-.65-1.2-1.31-1.76-1.99l-3.68 1.94-3.85 1.48-2.29-3.28 2.7-3.11 3.12-2.82c-.43-.76-.84-1.53-1.22-2.32l-4.04 1-4.1.5-1.43-3.73 3.37-2.37 3.7-1.98c-.23-.84-.44-1.68-.62-2.54l-4.17-.01-4.1-.5-.48-3.97 3.85-1.48 4.06-1.02c-.03-.87-.03-1.75 0-2.62l-4.06-1.02-3.85-1.48.48-3.97 4.1-.51h4.17c.18-.86.39-1.71.63-2.54l-3.7-1.98-3.38-2.37 1.43-3.73 4.1.5 4.04 1c.38-.79.79-1.56 1.22-2.32l-3.13-2.82-2.7-3.11 2.3-3.28 3.85 1.48 3.68 1.95a37 37 0 0 1 1.76-2l-2.38-3.41-1.93-3.64 2.97-2.67 3.42 2.3 3.19 2.76c.7-.52 1.41-1.02 2.15-1.48l-1.48-3.9-1-4 3.53-1.88 2.76 3.07 2.42 3.43c.8-.33 1.61-.65 2.45-.93l-.5-4.13v-4.13l3.88-.97 1.94 3.65 1.5 3.9c.86-.13 1.73-.23 2.6-.31L234 99l1-4h4l1 4 .52 4.15zm-14.3 3.4c-1.83.54-3.6 1.21-5.3 2l-3.5-4.97-1.38-1.53-.88.47.5 2 2.16 5.67a38.09 38.09 0 0 0-4.66 3.22l-4.61-4-1.71-1.15-.75.67.97 1.82 3.47 4.98a38.22 38.22 0 0 0-3.79 4.28l-5.37-2.84-1.92-.74-.57.82 1.35 1.56 4.52 4.09a37.9 37.9 0 0 0-2.64 5l-5.89-1.45-2.04-.25-.36.94 1.69 1.18 5.36 2.87a37.74 37.74 0 0 0-1.35 5.5l-6.08.01-2.04.25-.12 1 1.92.73 5.9 1.5a38.54 38.54 0 0 0 0 5.65l-5.9 1.49-1.92.74.12.99 2.04.25 6.08.01c.31 1.86.77 3.7 1.35 5.5l-5.36 2.87-1.7 1.18.37.94 2.04-.25 5.9-1.46a37.9 37.9 0 0 0 2.63 5.01l-4.52 4.1-1.35 1.55.57.82 1.92-.74 5.37-2.84a38.22 38.22 0 0 0 3.8 4.28l-3.48 4.98-.97 1.82.75.67 1.7-1.15 4.62-4a38.09 38.09 0 0 0 4.66 3.22l-2.17 5.67-.5 2 .89.47 1.38-1.53 3.5-4.98c1.7.8 3.47 1.47 5.3 2l-.73 6.04v2.06l.97.24.97-1.82 2.2-5.68c1.83.36 3.7.6 5.62.68L236 187l.5 2h1l.5-2 .75-6.04a38.2 38.2 0 0 0 5.62-.68l2.2 5.68.97 1.82.97-.24v-2.06l-.73-6.03c1.83-.54 3.6-1.21 5.3-2l3.5 4.97 1.38 1.53.88-.47-.5-2-2.16-5.67a38.09 38.09 0 0 0 4.66-3.22l4.61 4 1.71 1.15.75-.67-.97-1.82-3.47-4.98a38.22 38.22 0 0 0 3.79-4.28l5.37 2.84 1.92.74.57-.82-1.35-1.56-4.52-4.09c1-1.6 1.88-3.27 2.64-5l5.89 1.45 2.04.25.36-.94-1.69-1.18-5.36-2.87a37.4 37.4 0 0 0 1.35-5.5l6.08-.01 2.04-.25.12-1-1.92-.73-5.9-1.5c.14-1.88.14-3.77 0-5.65l5.9-1.49 1.92-.74-.12-.99-2.04-.25-6.08-.01a37.4 37.4 0 0 0-1.35-5.5l5.36-2.87 1.7-1.18-.37-.94-2.04.25-5.9 1.46a37.9 37.9 0 0 0-2.63-5.01l4.52-4.1 1.35-1.55-.57-.82-1.92.74-5.37 2.84a38.22 38.22 0 0 0-3.8-4.28l3.48-4.98.97-1.82-.75-.67-1.7 1.15-4.62 4a38.09 38.09 0 0 0-4.66-3.22l2.17-5.67.5-2-.89-.47-1.38 1.53-3.5 4.98c-1.7-.8-3.47-1.47-5.3-2l.73-6.04v-2.06l-.97-.24-.97 1.82-2.2 5.68c-1.83-.36-3.7-.6-5.62-.68L238 99l-.5-2h-1l-.5 2-.75 6.04c-1.92.09-3.8.32-5.62.68l-2.2-5.68-.97-1.82-.97.24v2.06l.73 6.03zm-5.85 5.65A34.82 34.82 0 0 1 236 108v6a28.8 28.8 0 0 0-12.63 3.39l-3-5.2v.01zm2.8.83l1 1.74a30.8 30.8 0 0 1 9.83-2.63v-2.01a32.8 32.8 0 0 0-10.83 2.9zm-4.53.17l3 5.2a29.12 29.12 0 0 0-9.24 9.24l-5.2-3a35.18 35.18 0 0 1 11.44-11.44zm-.67 2.84a33.19 33.19 0 0 0-7.93 7.93l1.74 1a31.18 31.18 0 0 1 7.2-7.2l-1.01-1.73zm-11.77 10.33h-.01l5.2 3A28.8 28.8 0 0 0 208 142h-6a34.82 34.82 0 0 1 4.2-15.63zm.83 2.8a32.8 32.8 0 0 0-2.9 10.83h2.01a30.8 30.8 0 0 1 2.63-9.83l-1.74-1zM202.01 144h6.01c.15 4.41 1.3 8.73 3.38 12.63l-5.2 3a34.82 34.82 0 0 1-4.19-15.63zm2.12 2a32.8 32.8 0 0 0 2.9 10.84l1.74-1a30.8 30.8 0 0 1-2.63-9.84h-2.01zm3.07 15.36l5.2-3c2.34 3.74 5.5 6.9 9.24 9.24l-3 5.2a35.18 35.18 0 0 1-11.44-11.44zm2.84.67a33.19 33.19 0 0 0 7.93 7.93l1-1.74a31.18 31.18 0 0 1-7.2-7.2l-1.73 1.01zm10.33 11.77v.01l3-5.2A28.85 28.85 0 0 0 236 172v6a34.82 34.82 0 0 1-15.63-4.2zm2.8-.83a32.8 32.8 0 0 0 10.83 2.9v-2.01a30.8 30.8 0 0 1-9.83-2.63l-1 1.74zm14.83 5.02v-6.01c4.41-.15 8.73-1.3 12.63-3.38l3 5.2a34.82 34.82 0 0 1-15.63 4.19zm2-2.12a32.8 32.8 0 0 0 10.84-2.9l-1-1.74a30.8 30.8 0 0 1-9.84 2.63v2.01zm15.36-3.07l-3-5.2c3.74-2.34 6.9-5.5 9.24-9.24l5.2 3a35.18 35.18 0 0 1-11.44 11.44zm.67-2.84a33.19 33.19 0 0 0 7.93-7.93l-1.74-1a31.18 31.18 0 0 1-7.2 7.2l1.01 1.73zm11.77-10.33h.01l-5.2-3A28.85 28.85 0 0 0 266 144h6a34.82 34.82 0 0 1-4.2 15.63zm-.83-2.8a32.8 32.8 0 0 0 2.9-10.83h-2.01a30.8 30.8 0 0 1-2.63 9.83l1.74 1zm5.02-14.83h-6.01a28.85 28.85 0 0 0-3.38-12.63l5.2-3a34.82 34.82 0 0 1 4.19 15.63zm-2.12-2a32.8 32.8 0 0 0-2.9-10.84l-1.74 1a30.8 30.8 0 0 1 2.63 9.84h2.01zm-3.07-15.36l-5.2 3a29.12 29.12 0 0 0-9.24-9.24l3-5.2a35.18 35.18 0 0 1 11.44 11.44zm-2.84-.67a33.19 33.19 0 0 0-7.93-7.93l-1 1.74a31.18 31.18 0 0 1 7.2 7.2l1.73-1.01zM238 108a34.82 34.82 0 0 1 15.63 4.19l-3 5.2a28.85 28.85 0 0 0-12.63-3.38V108zm12.84 5.02a32.8 32.8 0 0 0-10.84-2.9v2.01a30.8 30.8 0 0 1 9.83 2.63l1-1.74h.01zM237 156a13 13 0 1 1 0-26 13 13 0 0 1 0 26zm0-2a11 11 0 1 0 0-22 11 11 0 0 0 0 22zM137.54 0h56.92l-.74 1.03c.57.7 1.12 1.4 1.64 2.14l7.75-2.9 2 3.46-6.38 5.25c.37.82.72 1.65 1.03 2.5l8.22-.8 1.04 3.86-7.52 3.43c.15.88.26 1.77.35 2.67L210 22v4l-8.15 1.36c-.09.9-.2 1.8-.35 2.67l7.52 3.43-1.04 3.86-8.22-.8c-.31.85-.66 1.68-1.03 2.5l6.38 5.25-2 3.46-7.75-2.9c-.52.74-1.07 1.45-1.64 2.14l4.8 6.73-2.82 2.83-6.73-4.8c-.7.56-1.4 1.11-2.14 1.63l2.9 7.75-3.46 2-5.25-6.38c-.82.37-1.65.72-2.5 1.03l.8 8.22-3.86 1.04-3.43-7.52c-.88.15-1.77.26-2.67.35L168 68h-4l-1.36-8.15c-.9-.09-1.8-.2-2.67-.35l-3.43 7.52-3.86-1.04.8-8.22c-.85-.31-1.68-.66-2.5-1.03l-5.25 6.38-3.46-2 2.9-7.75a36.15 36.15 0 0 1-2.14-1.64l-6.73 4.8-2.83-2.82 4.8-6.73c-.56-.7-1.11-1.4-1.63-2.14l-7.75 2.9-2-3.46 6.38-5.25c-.37-.82-.72-1.65-1.03-2.5l-8.22.8-1.04-3.86 7.52-3.43c-.15-.88-.26-1.77-.35-2.67L122 26v-4l8.15-1.36c.09-.9.2-1.8.35-2.67l-7.52-3.43 1.04-3.86 8.22.8c.31-.85.66-1.68 1.03-2.5l-6.38-5.25 2-3.46 7.75 2.9c.52-.74 1.07-1.45 1.64-2.14L137.54 0zm2.43 0l.83 1.17a34.14 34.14 0 0 0-3.38 4.4l-7.63-2.86-.33.58 6.29 5.18a33.79 33.79 0 0 0-2.13 5.12l-8.1-.78-.18.64 7.42 3.37a34.02 34.02 0 0 0-.72 5.5L124 23.68v.66l8.04 1.34c.1 1.88.33 3.72.72 5.5l-7.42 3.38.18.64 8.1-.78a33.88 33.88 0 0 0 2.13 5.12l-6.29 5.18.33.58 7.63-2.86c1 1.56 2.14 3.03 3.38 4.4l-4.73 6.63.47.47 6.63-4.73a34.14 34.14 0 0 0 4.4 3.38l-2.86 7.63.58.33 5.18-6.29c1.63.84 3.35 1.56 5.12 2.13l-.78 8.1.64.18 3.37-7.42c1.79.39 3.63.63 5.5.72l1.35 8.04h.66l1.34-8.04c1.88-.1 3.72-.33 5.5-.72l3.38 7.42.64-.18-.78-8.1a33.88 33.88 0 0 0 5.12-2.13l5.18 6.29.58-.33-2.86-7.63c1.56-1 3.03-2.14 4.4-3.38l6.63 4.73.47-.47-4.73-6.63a34.14 34.14 0 0 0 3.38-4.4l7.63 2.86.33-.58-6.29-5.18a33.79 33.79 0 0 0 2.13-5.12l8.1.78.18-.64-7.42-3.37c.39-1.79.63-3.63.72-5.5l8.04-1.35v-.66l-8.04-1.34c-.1-1.88-.33-3.72-.72-5.5l7.42-3.38-.18-.64-8.1.78a33.79 33.79 0 0 0-2.13-5.12l6.29-5.18-.33-.58-7.63 2.86c-1-1.56-2.14-3.03-3.38-4.4l.83-1.17h-52.06V0zm-2.82 27h14.15A15.02 15.02 0 0 0 163 38.7v14.15A29.01 29.01 0 0 1 137.15 27zm12.57-27H163v9.3A15.02 15.02 0 0 0 151.3 21h-14.15a28.99 28.99 0 0 1 12.57-21zM169 52.85V38.7A15.02 15.02 0 0 0 180.7 27h14.15A29.01 29.01 0 0 1 169 52.85zM182.28 0a28.99 28.99 0 0 1 12.57 21H180.7A15.02 15.02 0 0 0 169 9.3V0h13.28zm-42.82 29A27.03 27.03 0 0 0 161 50.54V40.25A17.04 17.04 0 0 1 149.75 29h-10.29zm14.16-29a27.04 27.04 0 0 0-14.16 19h10.29A17.04 17.04 0 0 1 161 7.75V0h-7.38zM171 50.54A27.03 27.03 0 0 0 192.54 29h-10.29A17.04 17.04 0 0 1 171 40.25v10.29zM178.38 0H171v7.75A17.04 17.04 0 0 1 182.25 19h10.29a27.04 27.04 0 0 0-14.16-19zM166 34a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm-39.51 176.15l-10.67-7.95 6-10.4 12.23 5.27a23.97 23.97 0 0 1 8.4-4.86L144 177h12l1.55 13.21a23.97 23.97 0 0 1 8.4 4.86l12.23-5.27 6 10.4-10.67 7.95a24 24 0 0 1 0 9.7l10.67 7.95-6 10.4-12.23-5.27a23.97 23.97 0 0 1-8.4 4.86L156 249h-12l-1.55-13.21a23.97 23.97 0 0 1-8.4-4.86l-12.23 5.27-6-10.4 10.67-7.95a24.1 24.1 0 0 1 0-9.7zm29.25-16.4l-1.5-12.75h-8.48l-1.5 12.76c-3.75 1-7.1 2.99-9.79 5.65l-11.8-5.08-4.23 7.34 10.3 7.68c-.98 3.7-.98 7.6 0 11.3l-10.3 7.68 4.23 7.34 11.8-5.08a22.1 22.1 0 0 0 9.8 5.65l1.5 12.76h8.47l1.5-12.76c3.75-1 7.1-2.99 9.79-5.65l11.8 5.08 4.23-7.34-10.3-7.68c.98-3.7.98-7.6 0-11.3l10.3-7.68-4.23-7.34-11.8 5.08a21.98 21.98 0 0 0-9.8-5.65l.01-.01zM150 225a12 12 0 1 1 0-24 12 12 0 0 1 0 24zm0-2a10 10 0 1 0 0-20 10 10 0 0 0 0 20zm3.53 67.72l4.26.07.51 1.93-3.65 2.19c.11.63.2 1.27.25 1.92L159 298v2l-4.1 1.17c-.05.65-.14 1.29-.25 1.92l3.65 2.2-.51 1.92-4.26.07c-.22.61-.47 1.21-.74 1.8l2.96 3.05-1 1.74-4.13-1.04a24.1 24.1 0 0 1-1.18 1.54l2.07 3.72-1.42 1.42-3.72-2.07c-.5.41-1.01.8-1.54 1.18l1.04 4.13-1.74 1-3.05-2.96c-.59.27-1.19.52-1.8.74l-.07 4.26-1.93.51-2.19-3.65c-.63.11-1.27.2-1.92.25L132 327h-2l-1.17-4.1c-.65-.05-1.29-.14-1.92-.25l-2.2 3.65-1.92-.51-.07-4.26c-.61-.22-1.21-.47-1.8-.74l-3.05 2.96-1.74-1 1.04-4.13a24.1 24.1 0 0 1-1.54-1.18l-3.72 2.07-1.42-1.42 2.07-3.72c-.41-.5-.8-1.01-1.18-1.54l-4.13 1.04-1-1.74 2.96-3.05c-.27-.59-.52-1.19-.74-1.8l-4.26-.07-.51-1.93 3.65-2.19c-.11-.63-.2-1.27-.25-1.92L103 300v-2l4.1-1.17c.05-.65.14-1.29.25-1.92l-3.65-2.2.51-1.92 4.26-.07c.22-.61.47-1.21.74-1.8l-2.96-3.05 1-1.74 4.13 1.04c.38-.53.77-1.04 1.18-1.54l-2.07-3.72 1.42-1.42 3.72 2.07c.5-.41 1.01-.8 1.54-1.18l-1.04-4.13 1.74-1 3.05 2.96c.59-.27 1.19-.52 1.8-.74l.07-4.26 1.93-.51 2.19 3.65c.63-.11 1.27-.2 1.92-.25L130 271h2l1.17 4.1c.65.05 1.29.14 1.92.25l2.2-3.65 1.92.51.07 4.26c.61.22 1.21.47 1.8.74l3.05-2.96 1.74 1-1.04 4.13c.53.38 1.04.77 1.54 1.18l3.72-2.07 1.42 1.42-2.07 3.72c.41.5.8 1.01 1.18 1.54l4.13-1.04 1 1.74-2.96 3.05c.27.59.52 1.19.74 1.8zM109 299a22 22 0 1 0 44 0 22 22 0 0 0-44 0zm27.11-10.86l-3 5.22a6 6 0 0 0-4.21 0l-3.01-5.22a11.95 11.95 0 0 1 10.22 0zm1.74 1a12 12 0 0 1 5.1 8.86h-6.01a6.01 6.01 0 0 0-2.1-3.64l3-5.22h.01zm-13.7 0l3.02 5.22a6.01 6.01 0 0 0-2.1 3.64h-6.03a12 12 0 0 1 5.11-8.86zm-5.1 10.86h6.01a6.01 6.01 0 0 0 2.1 3.64l-3 5.22a12 12 0 0 1-5.12-8.86h.01zm6.84 9.86l3-5.22a6 6 0 0 0 4.21 0l3.01 5.22a11.95 11.95 0 0 1-10.22 0zm11.96-1l-3.02-5.22a6.01 6.01 0 0 0 2.1-3.64h6.03a12 12 0 0 1-5.11 8.86zm-4.68-19.62a10.04 10.04 0 0 0-4.34 0l1.05 1.82c.74-.1 1.5-.1 2.24 0l1.05-1.82zm5.2 3l-1.05 1.82c.46.59.84 1.24 1.12 1.94h2.1a9.99 9.99 0 0 0-2.17-3.76zm-14.74 0a9.99 9.99 0 0 0-2.17 3.76h2.1c.28-.7.66-1.35 1.12-1.94l-1.05-1.82zm-2.17 9.76a9.99 9.99 0 0 0 2.17 3.76l1.05-1.82a8.01 8.01 0 0 1-1.12-1.94h-2.1zm7.37 6.76c1.43.32 2.91.32 4.34 0l-1.05-1.82c-.74.1-1.5.1-2.24 0l-1.05 1.82zm9.54-3a9.99 9.99 0 0 0 2.17-3.76h-2.1c-.28.7-.66 1.35-1.12 1.94l1.05 1.82zM127 299a4 4 0 1 1 8 0 4 4 0 0 1-8 0zm2 0a2 2 0 1 0 4 0 2 2 0 0 0-4 0zm15 0a4 4 0 1 1 8 0 4 4 0 0 1-8 0zm-6.5 11.26a4 4 0 1 1 4 6.93 4 4 0 0 1-4-6.93zm-13 0a4 4 0 1 1-4 6.93 4 4 0 0 1 4-6.93zM118 299a4 4 0 1 1-8 0 4 4 0 0 1 8 0zm6.5-11.26a4 4 0 1 1-4-6.93 4 4 0 0 1 4 6.93zm13 0a4 4 0 1 1 4-6.93 4 4 0 0 1-4 6.93zM146 299a2 2 0 1 0 4 0 2 2 0 0 0-4 0zm-7.5 12.99a2 2 0 1 0 1.66 3.64 2 2 0 0 0-1.66-3.64zm-15 0a2 2 0 1 0-2.15 3.38 2 2 0 0 0 2.15-3.38zM116 299a2 2 0 1 0-4 0 2 2 0 0 0 4 0zm7.5-12.99a2 2 0 1 0-1.66-3.64 2 2 0 0 0 1.66 3.64zm15 0a2 2 0 1 0 2.15-3.38 2 2 0 0 0-2.15 3.38zm103.8-61.7l-.8-8.22 5.8-1.55 3.42 7.52c2.26-.43 4.57-.74 6.92-.9L259 213h6l1.36 8.16c2.35.16 4.66.47 6.92.9l3.42-7.52 5.8 1.55-.8 8.22c2.21.77 4.37 1.66 6.45 2.68l5.25-6.38 5.2 3-2.9 7.74a60.25 60.25 0 0 1 5.53 4.25l6.73-4.8 4.24 4.24-4.8 6.73a60.25 60.25 0 0 1 4.25 5.53l7.74-2.9 3 5.2-6.38 5.25a59.62 59.62 0 0 1 2.68 6.45l8.22-.8 1.55 5.8-7.52 3.42c.43 2.26.74 4.57.9 6.92L330 278v6l-8.16 1.36a60.03 60.03 0 0 1-.9 6.92l7.52 3.42-1.55 5.8-8.22-.8a59.62 59.62 0 0 1-2.68 6.45l6.38 5.25-3 5.2-7.74-2.9a60.25 60.25 0 0 1-4.25 5.53l4.8 6.73-4.24 4.24-6.73-4.8a60.25 60.25 0 0 1-5.53 4.25l2.9 7.74-5.2 3-5.25-6.38a59.62 59.62 0 0 1-6.45 2.68l.8 8.22-5.8 1.55-3.42-7.52c-2.26.43-4.57.74-6.92.9L265 349h-6l-1.36-8.16a60.03 60.03 0 0 1-6.92-.9l-3.42 7.52-5.8-1.55.8-8.22a59.62 59.62 0 0 1-6.45-2.68l-5.25 6.38-5.2-3 2.9-7.74a60.25 60.25 0 0 1-5.53-4.25l-6.73 4.8-4.24-4.24 4.8-6.73a60.25 60.25 0 0 1-4.25-5.53l-7.74 2.9-3-5.2 6.38-5.25a59.62 59.62 0 0 1-2.68-6.45l-8.22.8-1.55-5.8 7.52-3.42c-.43-2.29-.73-4.6-.9-6.92L194 284v-6l8.16-1.36c.16-2.35.47-4.66.9-6.92l-7.52-3.42 1.55-5.8 8.22.8c.77-2.2 1.66-4.35 2.68-6.45l-6.38-5.25 3-5.2 7.74 2.9a60.25 60.25 0 0 1 4.25-5.53l-4.8-6.73 4.24-4.24 6.73 4.8a60.25 60.25 0 0 1 5.53-4.25l-2.9-7.74 5.2-3 5.25 6.38a59.62 59.62 0 0 1 6.45-2.68zm2.12 1.4c-3.15 1-6.19 2.27-9.08 3.77l-5.19-6.3-2.3 1.33 2.86 7.65a58.24 58.24 0 0 0-7.79 5.98l-6.65-4.75-1.88 1.88 4.75 6.65a58.24 58.24 0 0 0-5.98 7.79l-7.65-2.86-1.33 2.3 6.3 5.2a57.64 57.64 0 0 0-3.77 9.07l-8.12-.79-.69 2.58 7.43 3.38a58 58 0 0 0-1.27 9.73l-8.06 1.35v2.66l8.06 1.35c.15 3.32.58 6.58 1.27 9.73l-7.43 3.38.7 2.58 8.11-.79c1 3.15 2.27 6.19 3.77 9.08l-6.3 5.19 1.33 2.3 7.65-2.86a58.24 58.24 0 0 0 5.98 7.79l-4.75 6.65 1.88 1.88 6.65-4.75a60.3 60.3 0 0 0 7.79 5.98l-2.86 7.65 2.3 1.33 5.2-6.3a56.99 56.99 0 0 0 9.07 3.77l-.79 8.12 2.58.69 3.38-7.43c3.15.69 6.4 1.12 9.73 1.27l1.35 8.06h2.66l1.35-8.06c3.32-.15 6.58-.58 9.73-1.27l3.38 7.43 2.58-.7-.79-8.11c3.15-1 6.19-2.27 9.08-3.77l5.19 6.3 2.3-1.33-2.86-7.65a58.24 58.24 0 0 0 7.79-5.98l6.65 4.75 1.88-1.88-4.75-6.65a60.3 60.3 0 0 0 5.98-7.79l7.65 2.86 1.33-2.3-6.3-5.2a56.99 56.99 0 0 0 3.77-9.07l8.12.79.69-2.58-7.43-3.38a58 58 0 0 0 1.27-9.73l8.06-1.35v-2.66l-8.06-1.35a58.04 58.04 0 0 0-1.27-9.73l7.43-3.38-.7-2.58-8.11.79c-1-3.15-2.27-6.19-3.77-9.08l6.3-5.19-1.33-2.3-7.65 2.86a58.24 58.24 0 0 0-5.98-7.79l4.75-6.65-1.88-1.88-6.65 4.75a58.24 58.24 0 0 0-7.79-5.98l2.86-7.65-2.3-1.33-5.2 6.3a57.64 57.64 0 0 0-9.07-3.77l.79-8.12-2.58-.69-3.38 7.43a58 58 0 0 0-9.73-1.27l-1.35-8.06h-2.66l-1.35 8.06c-3.32.15-6.58.58-9.73 1.27l-3.38-7.43-2.58.7.79 8.11zm4.58 50.1a13.96 13.96 0 0 0 0 10.39l-33.88 19.55A52.77 52.77 0 0 1 209 281c0-8.94 2.21-17.37 6.12-24.75L249 275.8v.01zm2-3.47l-33.87-19.56A52.97 52.97 0 0 1 260 228.04v39.1a13.99 13.99 0 0 0-9 5.2zm0 17.32a13.99 13.99 0 0 0 9 5.2v39.1a52.97 52.97 0 0 1-42.87-24.74L251 289.66zm13 5.2a13.99 13.99 0 0 0 9-5.2l33.87 19.56A52.97 52.97 0 0 1 264 333.96v-39.1zm11-8.66a13.96 13.96 0 0 0 0-10.4l33.88-19.55A52.77 52.77 0 0 1 315 281c0 8.94-2.21 17.37-6.12 24.75L275 286.2zm-2-13.86a13.99 13.99 0 0 0-9-5.2v-39.1a52.97 52.97 0 0 1 42.87 24.74L273 272.34zm-57.04-13.3A50.8 50.8 0 0 0 211 281a50.8 50.8 0 0 0 4.96 21.96l30.62-17.68c-.78-2.8-.78-5.76 0-8.56l-30.62-17.68zm4-6.93l30.62 17.68a16.08 16.08 0 0 1 7.42-4.29v-35.35a50.96 50.96 0 0 0-38.04 21.96zm0 57.78A50.96 50.96 0 0 0 258 331.85V296.5a15.98 15.98 0 0 1-7.42-4.29l-30.62 17.68zM266 331.85a50.96 50.96 0 0 0 38.04-21.96l-30.62-17.68a16.08 16.08 0 0 1-7.42 4.29v35.35zm42.04-28.89A50.8 50.8 0 0 0 313 281a50.8 50.8 0 0 0-4.96-21.96l-30.62 17.68c.78 2.8.78 5.76 0 8.56l30.62 17.68zm-4-50.85A50.96 50.96 0 0 0 266 230.15v35.35c2.86.74 5.41 2.25 7.42 4.29l30.62-17.68zM262 290a9 9 0 1 1 0-18 9 9 0 0 1 0 18zm0-2a7 7 0 1 0 0-14 7 7 0 0 0 0 14zM0 242.64l2.76.4 4.75 2.27a38.2 38.2 0 0 1 2.85-3.4l-3.06-4.28-1.69-5.11 3.07-2.58 4.74 2.55 3.69 3.76a37.96 37.96 0 0 1 3.84-2.22l-1.42-5.07.17-5.38 3.76-1.37 3.6 4.02 2.17 4.79c1.42-.34 2.88-.6 4.37-.77L34 225l2-5h4l2 5 .4 5.25c1.49.17 2.95.43 4.37.77l2.18-4.8 3.59-4 3.76 1.36.17 5.38-1.42 5.07c1.33.67 2.6 1.41 3.84 2.22l3.69-3.76 4.74-2.55 3.07 2.58-1.69 5.11-3.06 4.29a38.2 38.2 0 0 1 2.85 3.4l4.75-2.28 5.33-.77 2 3.46-3.33 4.23-4.34 2.98c.59 1.36 1.1 2.75 1.52 4.17l5.23-.52 5.27 1.1.7 3.94-4.58 2.84-5.1 1.31a38.6 38.6 0 0 1 0 4.44l5.1 1.3 4.58 2.85-.7 3.93-5.27 1.1-5.23-.5a36.3 36.3 0 0 1-1.52 4.16l4.34 2.98 3.33 4.23-2 3.46-5.33-.77-4.75-2.27a38.2 38.2 0 0 1-2.85 3.4l3.06 4.28 1.69 5.11-3.07 2.58-4.74-2.55-3.69-3.76a37.96 37.96 0 0 1-3.84 2.22l1.42 5.07-.17 5.38-3.76 1.37-3.6-4.02-2.17-4.79c-1.42.34-2.88.6-4.37.77L42 311l-2 5h-4l-2-5-.4-5.25a37.87 37.87 0 0 1-4.37-.77l-2.18 4.8-3.59 4-3.76-1.36-.17-5.38 1.42-5.07c-1.32-.66-2.6-1.4-3.84-2.22l-3.69 3.76-4.74 2.55-3.07-2.58 1.69-5.11 3.06-4.29a38.2 38.2 0 0 1-2.85-3.4l-4.75 2.28-2.76.4v-8.17l3.1-2.13a37.72 37.72 0 0 1-1.52-4.17l-1.58.16v-8.82l.06-.01a38.6 38.6 0 0 1 0-4.44l-.06-.01v-8.82l1.58.16c.43-1.43.94-2.82 1.52-4.17L0 250.8v-8.17.01zm0 1.87v3.89l5.62 3.84a35.74 35.74 0 0 0-2.55 7.02l-3.07-.3v4.75l2.2.56a36.42 36.42 0 0 0 0 7.46l-2.2.56v4.75l3.07-.3a35.2 35.2 0 0 0 2.55 7.02L0 287.6v3.89l1.76-.26 6.41-3.07c1.4 2.06 3 3.98 4.8 5.71l-4.14 5.78-1.01 3.07 1.22 1.03 2.85-1.52 4.98-5.08c2 1.45 4.16 2.7 6.45 3.73l-1.9 6.84.1 3.23 1.5.55 2.15-2.4 2.94-6.48a35.9 35.9 0 0 0 7.34 1.3L36 311l1.2 3h1.6l1.2-3 .55-7.09a35.9 35.9 0 0 0 7.34-1.29l2.94 6.47 2.15 2.4 1.5-.54.1-3.23-1.9-6.84a35.96 35.96 0 0 0 6.45-3.73l4.98 5.08 2.85 1.52 1.22-1.03-1-3.07-4.15-5.78a35.8 35.8 0 0 0 4.8-5.7l6.4 3.06 3.2.46.8-1.38-2-2.54-5.85-4.01c1.1-2.24 1.95-4.6 2.55-7.02l7.07.7 3.16-.66.28-1.58-2.75-1.7-6.88-1.77c.26-2.48.26-4.98 0-7.46l6.88-1.77 2.75-1.7-.28-1.58-3.16-.66-7.07.7a35.74 35.74 0 0 0-2.55-7.02l5.86-4 2-2.55-.8-1.38-3.2.46-6.41 3.07c-1.4-2.06-3-3.98-4.8-5.71l4.14-5.78 1.01-3.07-1.22-1.03-2.85 1.52-4.98 5.08c-2-1.45-4.16-2.7-6.45-3.73l1.9-6.84-.1-3.23-1.5-.55-2.15 2.4-2.94 6.48a35.9 35.9 0 0 0-7.34-1.3L40 225l-1.2-3h-1.6l-1.2 3-.55 7.09c-2.48.17-4.94.6-7.34 1.29l-2.94-6.47-2.15-2.4-1.5.54-.1 3.23 1.9 6.84a35.96 35.96 0 0 0-6.45 3.73l-4.98-5.08-2.85-1.52-1.22 1.03 1 3.07 4.15 5.78a36.18 36.18 0 0 0-4.8 5.7l-6.4-3.06L0 244.5v.01zM38 272a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-2a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0-26a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm24 24a4 4 0 1 1 8 0 4 4 0 0 1-8 0zm-24 24a4 4 0 1 1 0 8 4 4 0 0 1 0-8zm-24-24a4 4 0 1 1-8 0 4 4 0 0 1 8 0zm24-26a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm26 26a2 2 0 1 0 4 0 2 2 0 0 0-4 0zm-26 26a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm-26-26a2 2 0 1 0-4 0 2 2 0 0 0 4 0zm3.37 22.63a12 12 0 1 1 16.17-17.74 12 12 0 0 1-16.17 17.74zm0-45.26a12 12 0 1 1 17.74 16.17 12 12 0 0 1-17.74-16.17zm45.26 0a12 12 0 1 1-16.17 17.74 12 12 0 0 1 16.17-17.74zm0 45.26a12 12 0 1 1-17.74-16.17 12 12 0 0 1 17.74 16.17zm-15.56-29.7a10 10 0 1 0 14.39-13.9 10 10 0 0 0-14.39 13.9zm0 14.14a10 10 0 1 0 13.9 14.39 10 10 0 0 0-13.9-14.39zm-14.14 0a10 10 0 1 0-14.39 13.9 10 10 0 0 0 14.39-13.9zm0-14.14a10 10 0 1 0-13.9-14.39 10 10 0 0 0 13.9 14.39zm230.9-245.4l-.08-4.18 1.93-.52 2.04 3.67c1.07-.2 2.16-.35 3.26-.43L270 10h2l1.02 4.07c1.1.08 2.2.22 3.26.43l2.04-3.67 1.93.52-.07 4.19a27 27 0 0 1 3.04 1.26l2.91-3.01 1.74 1-1.16 4.03c.91.62 1.78 1.29 2.61 2l3.6-2.15 1.41 1.41-2.16 3.6c.72.83 1.4 1.7 2 2.6l4.04-1.15 1 1.74-3.01 2.91c.48.98.9 2 1.26 3.04l4.2-.07.5 1.93-3.66 2.04c.2 1.07.35 2.16.43 3.26L303 41v2l-4.07 1.02a26.9 26.9 0 0 1-.43 3.26l3.67 2.04-.52 1.93-4.19-.07a27.82 27.82 0 0 1-1.26 3.04l3.01 2.91-1 1.74-4.03-1.16c-.62.91-1.29 1.78-2 2.61l2.15 3.6-1.41 1.41-3.6-2.16c-.83.72-1.7 1.4-2.6 2l1.15 4.04-1.74 1-2.91-3.01a27 27 0 0 1-3.04 1.26l.07 4.2-1.93.5-2.04-3.66c-1.07.2-2.16.35-3.26.43L272 74h-2l-1.02-4.07a26.9 26.9 0 0 1-3.26-.43l-2.04 3.67-1.93-.52.07-4.19a27.82 27.82 0 0 1-3.04-1.26l-2.91 3.01-1.74-1 1.16-4.03c-.9-.62-1.78-1.29-2.61-2l-3.6 2.15-1.41-1.41 2.16-3.6c-.72-.83-1.4-1.7-2-2.6l-4.04 1.15-1-1.74 3.01-2.91a27 27 0 0 1-1.26-3.04l-4.2.07-.5-1.93 3.66-2.04c-.2-1.07-.35-2.16-.43-3.26L239 43v-2l4.07-1.02c.08-1.1.22-2.2.43-3.26l-3.67-2.04.52-1.93 4.19.07a27 27 0 0 1 1.26-3.04l-3.01-2.91 1-1.74 4.03 1.16c.62-.91 1.29-1.78 2-2.61l-2.15-3.6 1.41-1.41 3.6 2.16c.83-.72 1.7-1.4 2.6-2l-1.15-4.04 1.74-1 2.91 3.01a27 27 0 0 1 3.04-1.26l.01-.01zM271 68a26 26 0 1 0 0-52 26 26 0 0 0 0 52zm0-9a17 17 0 1 1 0-34 17 17 0 0 1 0 34zm0-2a15 15 0 1 0 0-30 15 15 0 0 0 0 30zm0-8a7 7 0 1 1 0-14 7 7 0 0 1 0 14zm0-2a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0-14a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm9 9a2 2 0 1 1 4 0 2 2 0 0 1-4 0zm-9 9a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm-9-9a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm47.93 53.79l-1.8-3.91 1.63-1.18 3.15 2.92c.4-.17.82-.3 1.25-.4L315 89h2l.84 4.21c.43.1.85.24 1.25.4l3.15-2.9 1.62 1.17-1.8 3.9c.3.33.55.69.78 1.06l4.26-.5.62 1.9-3.75 2.1c.04.44.04.87 0 1.31l3.75 2.1-.62 1.9-4.26-.5c-.23.38-.49.74-.77 1.06l1.8 3.91-1.63 1.18-3.15-2.92c-.4.17-.82.3-1.25.4L317 113h-2l-.84-4.21c-.43-.1-.85-.24-1.25-.4l-3.15 2.9-1.62-1.17 1.8-3.9a8.03 8.03 0 0 1-.78-1.06l-4.26.5-.62-1.9 3.75-2.1a8.1 8.1 0 0 1 0-1.31l-3.75-2.1.62-1.9 4.26.5c.23-.38.49-.74.77-1.06zM316 106a5 5 0 1 0 0-10 5 5 0 0 0 0 10zM75.73 179.2l-.6-2.1 1.74-1 1.51 1.57a9.93 9.93 0 0 1 2.1-.55L81 175h2l.53 2.12c.72.1 1.42.3 2.09.55l1.51-1.56 1.74 1-.6 2.1c.56.45 1.07.96 1.52 1.52l2.1-.6 1 1.74-1.56 1.51c.25.67.44 1.37.55 2.1L94 186v2l-2.12.53a9.9 9.9 0 0 1-.55 2.09l1.56 1.51-1 1.74-2.1-.6a9.93 9.93 0 0 1-1.52 1.52l.6 2.1-1.74 1-1.51-1.56c-.67.25-1.37.44-2.1.55L83 199h-2l-.53-2.12c-.71-.1-1.42-.3-2.09-.55l-1.51 1.56-1.74-1 .6-2.1a9.93 9.93 0 0 1-1.52-1.52l-2.1.6-1-1.74 1.56-1.51a9.93 9.93 0 0 1-.55-2.1L70 188v-2l2.12-.53c.1-.72.3-1.42.55-2.09l-1.56-1.51 1-1.74 2.1.6c.45-.56.96-1.07 1.52-1.52v-.01zm2.15.94a8.04 8.04 0 0 0-2.74 2.74l-.14.25a7.96 7.96 0 0 0 0 7.74l.14.25a8.04 8.04 0 0 0 2.74 2.74l.25.14a7.96 7.96 0 0 0 7.74 0l.25-.14a8.04 8.04 0 0 0 2.74-2.74l.14-.25a7.96 7.96 0 0 0 0-7.74l-.14-.25a8.04 8.04 0 0 0-2.74-2.74l-.25-.14a7.96 7.96 0 0 0-7.74 0l-.25.14zM82 193a6 6 0 1 1 0-12 6 6 0 0 1 0 12zm0-2a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm278 3.18l-3.8 5.6-7.18-3.51 2.6-8.07a32.15 32.15 0 0 1-3.07-2.46l-7.27 4.35-5.04-6.22 5.82-6.26c-.64-1.13-1.2-2.3-1.7-3.52l-8.45.73-1.8-7.8 7.95-3.07a32.5 32.5 0 0 1 0-3.9l-7.95-3.07 1.8-7.8 8.45.73a31.7 31.7 0 0 1 1.7-3.52l-5.82-6.26 5.04-6.22 7.27 4.35c.97-.88 2-1.7 3.07-2.46l-2.6-8.07 7.19-3.5 3.79 5.59v64.36zm0-3.53v-57.3l-4.46-6.58-4.1 2 2.53 7.87a30.14 30.14 0 0 0-5.13 4.1l-7.08-4.24-2.88 3.55 5.65 6.09a29.87 29.87 0 0 0-2.82 5.86l-8.24-.7-1.03 4.46 7.73 2.99a30.34 30.34 0 0 0 0 6.5l-7.73 3 1.03 4.45 8.24-.7a29.87 29.87 0 0 0 2.82 5.86l-5.65 6.1 2.88 3.54 7.08-4.23a30.14 30.14 0 0 0 5.13 4.09l-2.54 7.86 4.11 2 4.46-6.57zm0-51.57v5.71l-3.56-3.8a24.94 24.94 0 0 1 3.56-1.91zm0 22.68l-14.17 6.64c-2.5-9.5.77-19.57 8.38-25.78l5.79 10.5v8.64zm0 23.16a25.08 25.08 0 0 1-13.32-13.9l13.32-2.55v16.45zm0-43.64l-.39.2.39.4v-.6zm0 18.29v-2.35l-6.3-11.44a22.93 22.93 0 0 0-6.43 19.76l12.73-5.97zm0 23.15v-12.23l-10.47 2.01A23.1 23.1 0 0 0 360 182.72zM0 129.82l1 1.46a31.8 31.8 0 0 1 3.8-.86L6 122h8l1.2 8.42c1.3.21 2.57.5 3.8.86l4.8-7.06 7.18 3.51-2.6 8.07c1.07.76 2.1 1.58 3.07 2.46l7.27-4.35 5.04 6.22-5.82 6.26c.64 1.13 1.2 2.3 1.7 3.52l8.45-.73 1.8 7.8-7.95 3.07c.08 1.3.08 2.6 0 3.9l7.95 3.07-1.8 7.8-8.45-.73a33.5 33.5 0 0 1-1.7 3.52l5.82 6.26-5.04 6.22-7.27-4.35c-.97.88-2 1.7-3.07 2.46l2.6 8.07-7.19 3.5-4.78-7.05c-1.24.36-2.51.65-3.8.86L14 202H6l-1.2-8.42a31.8 31.8 0 0 1-3.8-.86l-1 1.46v-64.36zm0 3.53v57.3l.2-.29c2.02.7 4.15 1.2 6.34 1.44l1.17 8.2h4.58l1.17-8.2c2.2-.25 4.32-.74 6.35-1.44l4.65 6.87 4.1-2-2.53-7.87a30.14 30.14 0 0 0 5.13-4.1l7.08 4.24 2.88-3.55-5.65-6.09c1.14-1.83 2.1-3.8 2.82-5.86l8.24.7 1.03-4.46-7.73-2.99a30.7 30.7 0 0 0 0-6.5l7.73-3-1.03-4.45-8.24.7a29.87 29.87 0 0 0-2.82-5.86l5.65-6.1-2.88-3.54-7.08 4.23a30.14 30.14 0 0 0-5.13-4.09l2.54-7.86-4.11-2-4.65 6.86a29.82 29.82 0 0 0-6.35-1.44l-1.17-8.2H7.7l-1.17 8.2c-2.2.25-4.32.74-6.35 1.44l-.19-.29H0zm34.17 35.05l-16.26-7.62a7.94 7.94 0 0 0-.8-2.44l8.68-15.72a24.95 24.95 0 0 1 8.38 25.78zm-.85 2.63a25.01 25.01 0 0 1-21.94 15.93l2.23-17.82a8.3 8.3 0 0 0 2.07-1.5l17.64 3.39zM0 139.08A24.92 24.92 0 0 1 10 137c5 0 9.65 1.47 13.56 4l-12.28 13.1a8.06 8.06 0 0 0-2.56 0L0 144.8v-5.72zm0 22.68v-8.65l2.88 5.23c-.4.77-.66 1.59-.79 2.44l-2.09.98zm0 23.16v-16.45l4.32-.83c.6.6 1.3 1.11 2.07 1.5l2.23 17.82c-2.97-.16-5.9-.85-8.62-2.04zM10 156a6 6 0 1 1 0 12 6 6 0 0 1 0-12zm0 2a4 4 0 1 0 0 8 4 4 0 0 0 0-8zM0 141.28v.6l9.48 10.13c.35-.02.7-.02 1.04 0l9.87-10.54A22.9 22.9 0 0 0 10 139c-3.58 0-6.98.82-10 2.28zm0 18.29l.34-.16c.09-.34.2-.67.32-.99l-.66-1.2v2.35zm0 23.15c1.97.95 4.1 1.63 6.34 1.99l-1.8-14.33a11.6 11.6 0 0 1-.83-.6l-3.71.7v12.24zm13.66 1.99a23.03 23.03 0 0 0 16.8-12.21l-14.17-2.72c-.27.21-.55.42-.84.6l-1.79 14.33zm19.07-19.17a22.93 22.93 0 0 0-6.42-19.75l-6.97 12.63c.12.32.23.65.32.99l13.07 6.13zM137.54 360l-4.07-5.7 2.83-2.83 6.73 4.8c.7-.56 1.4-1.11 2.14-1.63l-2.9-7.75 3.46-2 5.25 6.38c.82-.37 1.65-.72 2.5-1.03l-.8-8.22 3.86-1.04 3.43 7.52c.88-.15 1.77-.26 2.67-.35L164 340h4l1.36 8.15c.9.09 1.8.2 2.67.35l3.43-7.52 3.86 1.04-.8 8.22c.85.31 1.68.66 2.5 1.03l5.25-6.38 3.46 2-2.9 7.75c.74.52 1.45 1.07 2.14 1.64l6.73-4.8 2.83 2.82-4.07 5.7h-56.92zm2.43 0h52.06l3.9-5.46-.47-.47-6.63 4.73a34.14 34.14 0 0 0-4.4-3.38l2.86-7.63-.58-.33-5.18 6.29a33.79 33.79 0 0 0-5.12-2.13l.78-8.1-.64-.18-3.37 7.42a34.02 34.02 0 0 0-5.5-.72l-1.35-8.04h-.66l-1.34 8.04c-1.88.1-3.72.33-5.5.72l-3.38-7.42-.64.18.78 8.1a33.88 33.88 0 0 0-5.12 2.13l-5.18-6.29-.58.33 2.86 7.63c-1.56 1-3.03 2.14-4.4 3.38l-6.63-4.73-.47.47 3.9 5.46zm9.75 0a28.83 28.83 0 0 1 13.28-4.85V360h-13.28zm32.56 0H169v-4.85c4.9.5 9.42 2.22 13.28 4.85zm-28.66 0H161v-2.54a26.8 26.8 0 0 0-7.38 2.54zm24.76 0a26.8 26.8 0 0 0-7.38-2.54V360h7.38zM358.79 0h-1.21l1.5 3.28a48.3 48.3 0 0 0-5.8 5.8l-9.38-4.3-1.65 2.26 7 7.58a47.84 47.84 0 0 0-3.74 7.33l-10.24-1.2-.86 2.66 8.99 5.05a47.91 47.91 0 0 0-1.28 8.12L332 38.6v2.8l10.12 2.02c.2 2.78.63 5.5 1.28 8.12l-9 5.05.87 2.66 10.24-1.2c1.04 2.54 2.29 5 3.74 7.33l-7 7.58 1.65 2.26 9.38-4.3a48.3 48.3 0 0 0 5.8 5.8l-4.3 9.38 2.26 1.65 2.96-2.73v2.66l-2.84 2.62-4.85-3.52 4.36-9.5a50.31 50.31 0 0 1-3.95-3.95l-9.5 4.36-3.52-4.85 7.08-7.68a49.83 49.83 0 0 1-2.54-4.98l-10.38 1.21-1.85-5.7 9.11-5.12a49.9 49.9 0 0 1-.87-5.52L330 43v-6l10.25-2.05c.19-1.87.48-3.72.87-5.52l-9.11-5.12 1.85-5.7 10.38 1.21c.75-1.71 1.6-3.37 2.54-4.98l-7.08-7.68 3.52-4.85 9.5 4.36a50.31 50.31 0 0 1 3.95-3.95L355.42 0h3.37zM360 52.7l-6.48 3.74A39.86 39.86 0 0 1 350 40a39.9 39.9 0 0 1 3.52-16.44L360 27.3v25.4zm0-39.16v4.52l-2.47-1.43c.77-1.07 1.6-2.1 2.47-3.09zm0 52.92c-.87-.99-1.7-2.02-2.47-3.1l2.47-1.42v4.52zm0-16.07V29.61l-5.5-3.18a37.91 37.91 0 0 0 0 27.14l5.5-3.18zM62.42 360h2.16l3.11-6.78-4.85-3.52-7.68 7.08a49.83 49.83 0 0 0-4.98-2.54l1.21-10.38-5.7-1.85-5.12 9.11a49.9 49.9 0 0 0-5.52-.87L33 340h-6l-2.05 10.25c-1.85.19-3.7.48-5.52.87l-5.12-9.11-5.7 1.85 1.21 10.38c-1.71.75-3.37 1.6-4.98 2.54L0 352.32v5.17-2.5l4.62 4.26a47.84 47.84 0 0 1 7.33-3.74l-1.2-10.24 2.66-.86 5.05 8.99a47.91 47.91 0 0 1 8.12-1.28L28.6 342h2.8l2.02 10.12c2.78.2 5.5.63 8.12 1.28l5.05-9 2.66.87-1.2 10.24c2.54 1.04 5 2.29 7.33 3.74l7.58-7 2.26 1.65-2.8 6.1zM360 244.51l-1.44-.2-.8 1.38 2 2.54.24.17v-3.89zm0 14.45l-4-.4-3.16.66-.28 1.58 2.75 1.7 4.69 1.2v-4.74zm0 13.33l-4.7 1.2-2.74 1.71.28 1.58 3.16.66 4-.4v-4.75zm0 15.31l-.24.17-2 2.54.8 1.38 1.44-.2v-3.89zm0 5.76l-2.57.37-2-3.46 3.33-4.23 1.24-.85v8.17zm0-14.31l-3.65.36-5.27-1.1-.7-3.94 4.58-2.84 5.04-1.3v8.82zm0-13.28l-5.04-1.3-4.58-2.84.7-3.93 5.27-1.1 3.65.35v8.82zm0-14.96l-1.24-.85-3.33-4.23 2-3.46 2.57.37v8.17zm0 101.5V360h-4.58l-3.11-6.78 4.85-3.52 2.84 2.62v-.01zm0 2.67l-2.96-2.73-2.26 1.65 2.8 6.1H360v-5.02z'%3E%3C/path%3E%3C/svg%3E")`,glamorous:`url("data:image/svg+xml,%3Csvg width='180' height='180' viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M81.28 88H68.413l19.298 19.298L81.28 88zm2.107 0h13.226L90 107.838 83.387 88zm15.334 0h12.866l-19.298 19.298L98.72 88zm-32.927-2.207L73.586 78h32.827l.5.5 7.294 7.293L115.414 87l-24.707 24.707-.707.707L64.586 87l1.207-1.207zm2.62.207L74 80.414 79.586 86H68.414zm16 0L90 80.414 95.586 86H84.414zm16 0L106 80.414 111.586 86h-11.172zm-8-6h11.173L98 85.586 92.414 80zM82 85.586L87.586 80H76.414L82 85.586zM17.414 0L.707 16.707 0 17.414V0h17.414zM4.28 0L0 12.838V0h4.28zm10.306 0L2.288 12.298 6.388 0h8.198zM180 17.414L162.586 0H180v17.414zM165.414 0l12.298 12.298L173.612 0h-8.198zM180 12.838L175.72 0H180v12.838zM0 163h16.413l.5.5 7.294 7.293L25.414 172l-8 8H0v-17zm0 10h6.613l-2.334 7H0v-7zm14.586 7l7-7H8.72l-2.333 7h8.2zM0 165.414L5.586 171H0v-5.586zM10.414 171L16 165.414 21.586 171H10.414zm-8-6h11.172L8 170.586 2.414 165zM180 163h-16.413l-7.794 7.793-1.207 1.207 8 8H180v-17zm-14.586 17l-7-7h12.865l2.333 7h-8.2zM180 173h-6.613l2.334 7H180v-7zm-21.586-2l5.586-5.586 5.586 5.586h-11.172zM180 165.414L174.414 171H180v-5.586zm-8 5.172l5.586-5.586h-11.172l5.586 5.586zM152.933 25.653l1.414 1.414-33.94 33.942-1.416-1.416 33.943-33.94zm1.414 127.28l-1.414 1.414-33.942-33.94 1.416-1.416 33.94 33.943zm-127.28 1.414l-1.414-1.414 33.94-33.942 1.416 1.416-33.943 33.94zm-1.414-127.28l1.414-1.414 33.942 33.94-1.416 1.416-33.94-33.943zM0 85c2.21 0 4 1.79 4 4s-1.79 4-4 4v-8zm180 0c-2.21 0-4 1.79-4 4s1.79 4 4 4v-8zM94 0c0 2.21-1.79 4-4 4s-4-1.79-4-4h8zm0 180c0-2.21-1.79-4-4-4s-4 1.79-4 4h8z' fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'/%3E%3C/svg%3E")`,houndstooth:`url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ctitle%3Ehoundstooth%3C/title%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'%3E%3Cpath d='M0 18h6l6-6v6h6l-6 6H0M24 18v6h-6M24 0l-6 6h-6l6-6M12 0v6L0 18v-6l6-6H0V0'/%3E%3C/g%3E%3C/svg%3E")`,leaf:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 40' width='80' height='40'%3E%3Cpath fill='{{color}}' fill-opacity='{{opacity}}' d='M0 40a19.96 19.96 0 0 1 5.9-14.11 20.17 20.17 0 0 1 19.44-5.2A20 20 0 0 1 20.2 40H0zM65.32.75A20.02 20.02 0 0 1 40.8 25.26 20.02 20.02 0 0 1 65.32.76zM.07 0h20.1l-.08.07A20.02 20.02 0 0 1 .75 5.25 20.08 20.08 0 0 1 .07 0zm1.94 40h2.53l4.26-4.24v-9.78A17.96 17.96 0 0 0 2 40zm5.38 0h9.8a17.98 17.98 0 0 0 6.67-16.42L7.4 40zm3.43-15.42v9.17l11.62-11.59c-3.97-.5-8.08.3-11.62 2.42zm32.86-.78A18 18 0 0 0 63.85 3.63L43.68 23.8zm7.2-19.17v9.15L62.43 2.22c-3.96-.5-8.05.3-11.57 2.4zm-3.49 2.72c-4.1 4.1-5.81 9.69-5.13 15.03l6.61-6.6V6.02c-.51.41-1 .85-1.48 1.33zM17.18 0H7.42L3.64 3.78A18 18 0 0 0 17.18 0zM2.08 0c-.01.8.04 1.58.14 2.37L4.59 0H2.07z'%3E%3C/path%3E%3C/svg%3E")`,linesinmotion:`url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 0h2v20H9V0zm25.134.84l1.732 1-10 17.32-1.732-1 10-17.32zm-20 20l1.732 1-10 17.32-1.732-1 10-17.32zM58.16 4.134l1 1.732-17.32 10-1-1.732 17.32-10zm-40 40l1 1.732-17.32 10-1-1.732 17.32-10zM80 9v2H60V9h20zM20 69v2H0v-2h20zm79.32-55l-1 1.732-17.32-10L82 4l17.32 10zm-80 80l-1 1.732-17.32-10L2 84l17.32 10zm96.546-75.84l-1.732 1-10-17.32 1.732-1 10 17.32zm-100 100l-1.732 1-10-17.32 1.732-1 10 17.32zM38.16 24.134l1 1.732-17.32 10-1-1.732 17.32-10zM60 29v2H40v-2h20zm19.32 5l-1 1.732-17.32-10L62 24l17.32 10zm16.546 4.16l-1.732 1-10-17.32 1.732-1 10 17.32zM111 40h-2V20h2v20zm3.134.84l1.732 1-10 17.32-1.732-1 10-17.32zM40 49v2H20v-2h20zm19.32 5l-1 1.732-17.32-10L42 44l17.32 10zm16.546 4.16l-1.732 1-10-17.32 1.732-1 10 17.32zM91 60h-2V40h2v20zm3.134.84l1.732 1-10 17.32-1.732-1 10-17.32zm24.026 3.294l1 1.732-17.32 10-1-1.732 17.32-10zM39.32 74l-1 1.732-17.32-10L22 64l17.32 10zm16.546 4.16l-1.732 1-10-17.32 1.732-1 10 17.32zM71 80h-2V60h2v20zm3.134.84l1.732 1-10 17.32-1.732-1 10-17.32zm24.026 3.294l1 1.732-17.32 10-1-1.732 17.32-10zM120 89v2h-20v-2h20zm-84.134 9.16l-1.732 1-10-17.32 1.732-1 10 17.32zM51 100h-2V80h2v20zm3.134.84l1.732 1-10 17.32-1.732-1 10-17.32zm24.026 3.294l1 1.732-17.32 10-1-1.732 17.32-10zM100 109v2H80v-2h20zm19.32 5l-1 1.732-17.32-10 1-1.732 17.32 10zM31 120h-2v-20h2v20z' fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'/%3E%3C/svg%3E")`,moroccan:`url("data:image/svg+xml,%3Csvg width='80' height='88' viewBox='0 0 80 88' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 21.91V26h-2c-9.94 0-18 8.06-18 18 0 9.943 8.058 18 18 18h2v4.09c8.012.722 14.785 5.738 18 12.73 3.212-6.99 9.983-12.008 18-12.73V62h2c9.94 0 18-8.06 18-18 0-9.943-8.058-18-18-18h-2v-4.09c-8.012-.722-14.785-5.738-18-12.73-3.212 6.99-9.983 12.008-18 12.73zM54 58v4.696c-5.574 1.316-10.455 4.428-14 8.69-3.545-4.262-8.426-7.374-14-8.69V58h-5.993C12.27 58 6 51.734 6 44c0-7.732 6.275-14 14.007-14H26v-4.696c5.574-1.316 10.455-4.428 14-8.69 3.545 4.262 8.426 7.374 14 8.69V30h5.993C67.73 30 74 36.266 74 44c0 7.732-6.275 14-14.007 14H54zM42 88c0-9.94 8.06-18 18-18h2v-4.09c8.016-.722 14.787-5.738 18-12.73v7.434c-3.545 4.262-8.426 7.374-14 8.69V74h-5.993C52.275 74 46 80.268 46 88h-4zm-4 0c0-9.943-8.058-18-18-18h-2v-4.09c-8.012-.722-14.785-5.738-18-12.73v7.434c3.545 4.262 8.426 7.374 14 8.69V74h5.993C27.73 74 34 80.266 34 88h4zm4-88c0 9.943 8.058 18 18 18h2v4.09c8.012.722 14.785 5.738 18 12.73v-7.434c-3.545-4.262-8.426-7.374-14-8.69V14h-5.993C52.27 14 46 7.734 46 0h-4zM0 34.82c3.213-6.992 9.984-12.008 18-12.73V18h2c9.94 0 18-8.06 18-18h-4c0 7.732-6.275 14-14.007 14H14v4.696c-5.574 1.316-10.455 4.428-14 8.69v7.433z' fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'/%3E%3C/svg%3E")`,morphingdiamonds:`url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374zM48.97 0l3.657 3.657-1.414 1.414L46.143 0h2.828zM11.03 0L7.372 3.657 8.787 5.07 13.857 0H11.03zm32.284 0L49.8 6.485 48.384 7.9l-7.9-7.9h2.83zM16.686 0L10.2 6.485 11.616 7.9l7.9-7.9h-2.83zm20.97 0l9.315 9.314-1.414 1.414L34.828 0h2.83zM22.344 0L13.03 9.314l1.414 1.414L25.172 0h-2.83zM32 0l12.142 12.142-1.414 1.414L30 .828 17.272 13.556l-1.414-1.414L28 0h4zM.284 0l28 28-1.414 1.414L0 2.544V0h.284zM0 5.373l25.456 25.455-1.414 1.415L0 8.2V5.374zm0 5.656l22.627 22.627-1.414 1.414L0 13.86v-2.83zm0 5.656l19.8 19.8-1.415 1.413L0 19.514v-2.83zm0 5.657l16.97 16.97-1.414 1.415L0 25.172v-2.83zM0 28l14.142 14.142-1.414 1.414L0 30.828V28zm0 5.657L11.314 44.97 9.9 46.386l-9.9-9.9v-2.828zm0 5.657L8.485 47.8 7.07 49.212 0 42.143v-2.83zm0 5.657l5.657 5.657-1.414 1.415L0 47.8v-2.83zm0 5.657l2.828 2.83-1.414 1.413L0 53.456v-2.83zM54.627 60L30 35.373 5.373 60H8.2L30 38.2 51.8 60h2.827zm-5.656 0L30 41.03 11.03 60h2.828L30 43.858 46.142 60h2.83zm-5.656 0L30 46.686 16.686 60h2.83L30 49.515 40.485 60h2.83zm-5.657 0L30 52.343 22.343 60h2.83L30 55.172 34.828 60h2.83zM32 60l-2-2-2 2h4zM59.716 0l-28 28 1.414 1.414L60 2.544V0h-.284zM60 5.373L34.544 30.828l1.414 1.415L60 8.2V5.374zm0 5.656L37.373 33.656l1.414 1.414L60 13.86v-2.83zm0 5.656l-19.8 19.8 1.415 1.413L60 19.514v-2.83zm0 5.657l-16.97 16.97 1.414 1.415L60 25.172v-2.83zM60 28L45.858 42.142l1.414 1.414L60 30.828V28zm0 5.657L48.686 44.97l1.415 1.415 9.9-9.9v-2.828zm0 5.657L51.515 47.8l1.414 1.413 7.07-7.07v-2.83zm0 5.657l-5.657 5.657 1.414 1.415L60 47.8v-2.83zm0 5.657l-2.828 2.83 1.414 1.413L60 53.456v-2.83zM39.9 16.385l1.414-1.414L30 3.658 18.686 14.97l1.415 1.415 9.9-9.9 9.9 9.9zm-2.83 2.828l1.415-1.414L30 9.313 21.515 17.8l1.414 1.413 7.07-7.07 7.07 7.07zm-2.827 2.83l1.414-1.416L30 14.97l-5.657 5.657 1.414 1.415L30 17.8l4.243 4.242zm-2.83 2.827l1.415-1.414L30 20.626l-2.828 2.83 1.414 1.414L30 23.456l1.414 1.414zM56.87 59.414L58.284 58 30 29.716 1.716 58l1.414 1.414L30 32.544l26.87 26.87z' fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'/%3E%3C/svg%3E")`,rails:`url("data:image/svg+xml,%3Csvg width='20' height='10' viewBox='0 0 20 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 6H6v4H4V6H2V4h2V0h2v4h10V0h2v4h2v2h-2v4h-2V6z' fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'/%3E%3C/svg%3E")`,rain:`url("data:image/svg+xml,%3Csvg width='12' height='16' viewBox='0 0 12 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 .99C4 .445 4.444 0 5 0c.552 0 1 .45 1 .99v4.02C6 5.555 5.556 6 5 6c-.552 0-1-.45-1-.99V.99zm6 8c0-.546.444-.99 1-.99.552 0 1 .45 1 .99v4.02c0 .546-.444.99-1 .99-.552 0-1-.45-1-.99V8.99z' fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'/%3E%3C/svg%3E")`,skulls:`url("data:image/svg+xml,%3Csvg width='180' height='180' viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M82.42 180h-1.415L0 98.995v-2.827L6.167 90 0 83.833V81.004L81.005 0h2.827L90 6.167 96.167 0H98.996L180 81.005v2.827L173.833 90 180 96.167V98.996L98.995 180h-2.827L90 173.833 83.833 180H82.42zm0-1.414L1.413 97.58 8.994 90l-7.58-7.58L82.42 1.413 90 8.994l7.58-7.58 81.006 81.005-7.58 7.58 7.58 7.58-81.005 81.006-7.58-7.58-7.58 7.58zM175.196 0h-25.832c1.033 2.924 2.616 5.59 4.625 7.868C152.145 9.682 151 12.208 151 15c0 5.523 4.477 10 10 10 1.657 0 3 1.343 3 3v4h16V0h-4.803c.51.883.803 1.907.803 3 0 3.314-2.686 6-6 6s-6-2.686-6-6c0-1.093.292-2.117.803-3h10.394-13.685C161.18.938 161 1.948 161 3v4c-4.418 0-8 3.582-8 8s3.582 8 8 8c2.76 0 5 2.24 5 5v2h4v-4h2v4h4v-4h2v4h2V0h-4.803zm-15.783 0c-.27.954-.414 1.96-.414 3v2.2c-1.25.254-2.414.74-3.447 1.412-1.716-1.93-3.098-4.164-4.054-6.612h7.914zM180 17h-3l2.143-10H180v10zm-30.635 163c-.884-2.502-1.365-5.195-1.365-8 0-13.255 10.748-24 23.99-24H180v32h-30.635zm12.147 0c.5-1.416 1.345-2.67 2.434-3.66l-1.345-1.48c-1.498 1.364-2.62 3.136-3.186 5.14H151.5c-.97-2.48-1.5-5.177-1.5-8 0-12.15 9.84-22 22-22h8v30h-18.488zm13.685 0c-1.037-1.793-2.976-3-5.197-3-2.22 0-4.16 1.207-5.197 3h10.394zM0 148h8.01C21.26 148 32 158.742 32 172c0 2.805-.48 5.498-1.366 8H0v-32zm0 2h8c12.15 0 22 9.847 22 22 0 2.822-.53 5.52-1.5 8h-7.914c-.567-2.004-1.688-3.776-3.187-5.14l-1.346 1.48c1.09.99 1.933 2.244 2.434 3.66H0v-30zm15.197 30c-1.037-1.793-2.976-3-5.197-3-2.22 0-4.16 1.207-5.197 3h10.394zM0 32h16v-4c0-1.657 1.343-3 3-3 5.523 0 10-4.477 10-10 0-2.794-1.145-5.32-2.992-7.134C28.018 5.586 29.6 2.924 30.634 0H0v32zm0-2h2v-4h2v4h4v-4h2v4h4v-2c0-2.76 2.24-5 5-5 4.418 0 8-3.582 8-8s-3.582-8-8-8V3c0-1.052-.18-2.062-.512-3H0v30zM28.5 0c-.954 2.448-2.335 4.683-4.05 6.613-1.035-.672-2.2-1.16-3.45-1.413V3c0-1.04-.144-2.046-.414-3H28.5zM0 17h3L.857 7H0v10zM15.197 0c.51.883.803 1.907.803 3 0 3.314-2.686 6-6 6S4 6.314 4 3c0-1.093.292-2.117.803-3h10.394zM109 115c-1.657 0-3 1.343-3 3v4H74v-4c0-1.657-1.343-3-3-3-5.523 0-10-4.477-10-10 0-2.793 1.145-5.318 2.99-7.132C60.262 93.638 58 88.084 58 82c0-13.255 10.748-24 23.99-24h16.02C111.26 58 122 68.742 122 82c0 6.082-2.263 11.636-5.992 15.866C117.855 99.68 119 102.206 119 105c0 5.523-4.477 10-10 10zm0-2c-2.76 0-5 2.24-5 5v2h-4v-4h-2v4h-4v-4h-2v4h-4v-4h-2v4h-4v-4h-2v4h-4v-2c0-2.76-2.24-5-5-5-4.418 0-8-3.582-8-8s3.582-8 8-8v-4c0-2.64 1.136-5.013 2.946-6.66L72.6 84.86C70.39 86.874 69 89.775 69 93v2.2c-1.25.254-2.414.74-3.447 1.412C62.098 92.727 60 87.61 60 82c0-12.15 9.84-22 22-22h16c12.15 0 22 9.847 22 22 0 5.61-2.097 10.728-5.55 14.613-1.035-.672-2.2-1.16-3.45-1.413V93c0-3.226-1.39-6.127-3.6-8.14l-1.346 1.48C107.864 87.987 109 90.36 109 93v4c4.418 0 8 3.582 8 8s-3.582 8-8 8zM90.857 97L93 107h-6l2.143-10h1.714zM80 99c3.314 0 6-2.686 6-6s-2.686-6-6-6-6 2.686-6 6 2.686 6 6 6zm20 0c3.314 0 6-2.686 6-6s-2.686-6-6-6-6 2.686-6 6 2.686 6 6 6z' fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'/%3E%3C/svg%3E")`,squaresinsquares:`url("data:image/svg+xml,%3Csvg width='70' height='70' viewBox='0 0 70 70' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'%3E%3Cpath d='M0 0h35v35H0V0zm5 5h25v25H5V5zm5 5h15v15H10V10zm5 5h5v5h-5v-5zM40 5h25v25H40V5zm5 5h15v15H45V10zm5 5h5v5h-5v-5zM70 35H35v35h35V35zm-5 5H40v25h25V40zm-5 5H45v15h15V45zm-5 5h-5v5h5v-5zM30 40H5v25h25V40zm-5 5H10v15h15V45zm-5 5h-5v5h5v-5z'/%3E%3C/g%3E%3C/svg%3E")`,stripes:`url("data:image/svg+xml,%3Csvg width='40' height='1' viewBox='0 0 40 1' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h20v1H0z' fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'/%3E%3C/svg%3E")`,tictactoe:`url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 16c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm0-2c3.314 0 6-2.686 6-6s-2.686-6-6-6-6 2.686-6 6 2.686 6 6 6zm33.414-6l5.95-5.95L45.95.636 40 6.586 34.05.636 32.636 2.05 38.586 8l-5.95 5.95 1.414 1.414L40 9.414l5.95 5.95 1.414-1.414L41.414 8zM40 48c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm0-2c3.314 0 6-2.686 6-6s-2.686-6-6-6-6 2.686-6 6 2.686 6 6 6zM9.414 40l5.95-5.95-1.414-1.414L8 38.586l-5.95-5.95L.636 34.05 6.586 40l-5.95 5.95 1.414 1.414L8 41.414l5.95 5.95 1.414-1.414L9.414 40z' fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'/%3E%3C/svg%3E")`,zigzag:`url("data:image/svg+xml,%3Csvg width='40' height='12' viewBox='0 0 40 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 6.172L6.172 0h5.656L0 11.828V6.172zm40 5.656L28.172 0h5.656L40 6.172v5.656zM6.172 12l12-12h3.656l12 12h-5.656L20 3.828 11.828 12H6.172zm12 0L20 10.172 21.828 12h-3.656z' fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'/%3E%3C/svg%3E")`,aztec:`url("data:image/svg+xml,%3Csvg width='32' height='64' viewBox='0 0 32 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 28h20V16h-4v8H4V4h28v28h-4V8H8v12h4v-8h12v20H0v-4zm12 8h20v4H16v24H0v-4h12V36zm16 12h-4v12h8v4H20V44h12v12h-4v-8zM0 36h8v20H0v-4h4V40H0v-4z' fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'/%3E%3C/svg%3E")`,banknote:`url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.184 20c.357-.13.72-.264 1.088-.402l1.768-.661C33.64 15.347 39.647 14 50 14c10.271 0 15.362 1.222 24.629 4.928.955.383 1.869.74 2.75 1.072h6.225c-2.51-.73-5.139-1.691-8.233-2.928C65.888 13.278 60.562 12 50 12c-10.626 0-16.855 1.397-26.66 5.063l-1.767.662c-2.475.923-4.66 1.674-6.724 2.275h6.335zm0-20C13.258 2.892 8.077 4 0 4V2c5.744 0 9.951-.574 14.85-2h6.334zM77.38 0C85.239 2.966 90.502 4 100 4V2c-6.842 0-11.386-.542-16.396-2h-6.225zM0 14c8.44 0 13.718-1.21 22.272-4.402l1.768-.661C33.64 5.347 39.647 4 50 4c10.271 0 15.362 1.222 24.629 4.928C84.112 12.722 89.438 14 100 14v-2c-10.271 0-15.362-1.222-24.629-4.928C65.888 3.278 60.562 2 50 2 39.374 2 33.145 3.397 23.34 7.063l-1.767.662C13.223 10.84 8.163 12 0 12v2z' fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'/%3E%3C/svg%3E")`,boxes:`url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h20L0 20z' fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'/%3E%3C/svg%3E")`,circlessquares:`url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h20v20H0V0zm10 17a7 7 0 1 0 0-14 7 7 0 0 0 0 14zm20 0a7 7 0 1 0 0-14 7 7 0 0 0 0 14zM10 37a7 7 0 1 0 0-14 7 7 0 0 0 0 14zm10-17h20v20H20V20zm10 17a7 7 0 1 0 0-14 7 7 0 0 0 0 14z' fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'/%3E%3C/svg%3E")`,circuitboard:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 304 304' width='304' height='304'%3E%3Cpath fill='{{color}}' fill-opacity='{{opacity}}' d='M44.1 224a5 5 0 1 1 0 2H0v-2h44.1zm160 48a5 5 0 1 1 0 2H82v-2h122.1zm57.8-46a5 5 0 1 1 0-2H304v2h-42.1zm0 16a5 5 0 1 1 0-2H304v2h-42.1zm6.2-114a5 5 0 1 1 0 2h-86.2a5 5 0 1 1 0-2h86.2zm-256-48a5 5 0 1 1 0 2H0v-2h12.1zm185.8 34a5 5 0 1 1 0-2h86.2a5 5 0 1 1 0 2h-86.2zM258 12.1a5 5 0 1 1-2 0V0h2v12.1zm-64 208a5 5 0 1 1-2 0v-54.2a5 5 0 1 1 2 0v54.2zm48-198.2V80h62v2h-64V21.9a5 5 0 1 1 2 0zm16 16V64h46v2h-48V37.9a5 5 0 1 1 2 0zm-128 96V208h16v12.1a5 5 0 1 1-2 0V210h-16v-76.1a5 5 0 1 1 2 0zm-5.9-21.9a5 5 0 1 1 0 2H114v48H85.9a5 5 0 1 1 0-2H112v-48h12.1zm-6.2 130a5 5 0 1 1 0-2H176v-74.1a5 5 0 1 1 2 0V242h-60.1zm-16-64a5 5 0 1 1 0-2H114v48h10.1a5 5 0 1 1 0 2H112v-48h-10.1zM66 284.1a5 5 0 1 1-2 0V274H50v30h-2v-32h18v12.1zM236.1 176a5 5 0 1 1 0 2H226v94h48v32h-2v-30h-48v-98h12.1zm25.8-30a5 5 0 1 1 0-2H274v44.1a5 5 0 1 1-2 0V146h-10.1zm-64 96a5 5 0 1 1 0-2H208v-80h16v-14h-42.1a5 5 0 1 1 0-2H226v18h-16v80h-12.1zm86.2-210a5 5 0 1 1 0 2H272V0h2v32h10.1zM98 101.9V146H53.9a5 5 0 1 1 0-2H96v-42.1a5 5 0 1 1 2 0zM53.9 34a5 5 0 1 1 0-2H80V0h2v34H53.9zm60.1 3.9V66H82v64H69.9a5 5 0 1 1 0-2H80V64h32V37.9a5 5 0 1 1 2 0zM101.9 82a5 5 0 1 1 0-2H128V37.9a5 5 0 1 1 2 0V82h-28.1zm16-64a5 5 0 1 1 0-2H146v44.1a5 5 0 1 1-2 0V18h-26.1zm102.2 270a5 5 0 1 1 0 2H98v14h-2v-16h124.1zM242 149.9V160h16v34h-16v62h48v48h-2v-46h-48v-66h16v-30h-16v-12.1a5 5 0 1 1 2 0zM53.9 18a5 5 0 1 1 0-2H64V2H48V0h18v18H53.9zm112 32a5 5 0 1 1 0-2H192V0h50v2h-48v48h-28.1zm-48-48a5 5 0 0 1-9.8-2h2.07a3 3 0 1 0 5.66 0H178v34h-18V21.9a5 5 0 1 1 2 0V32h14V2h-58.1zm0 96a5 5 0 1 1 0-2H137l32-32h39V21.9a5 5 0 1 1 2 0V66h-40.17l-32 32H117.9zm28.1 90.1a5 5 0 1 1-2 0v-76.51L175.59 80H224V21.9a5 5 0 1 1 2 0V82h-49.59L146 112.41v75.69zm16 32a5 5 0 1 1-2 0v-99.51L184.59 96H300.1a5 5 0 0 1 3.9-3.9v2.07a3 3 0 0 0 0 5.66v2.07a5 5 0 0 1-3.9-3.9H185.41L162 121.41v98.69zm-144-64a5 5 0 1 1-2 0v-3.51l48-48V48h32V0h2v50H66v55.41l-48 48v2.69zM50 53.9v43.51l-48 48V208h26.1a5 5 0 1 1 0 2H0v-65.41l48-48V53.9a5 5 0 1 1 2 0zm-16 16V89.41l-34 34v-2.82l32-32V69.9a5 5 0 1 1 2 0zM12.1 32a5 5 0 1 1 0 2H9.41L0 43.41V40.6L8.59 32h3.51zm265.8 18a5 5 0 1 1 0-2h18.69l7.41-7.41v2.82L297.41 50H277.9zm-16 160a5 5 0 1 1 0-2H288v-71.41l16-16v2.82l-14 14V210h-28.1zm-208 32a5 5 0 1 1 0-2H64v-22.59L40.59 194H21.9a5 5 0 1 1 0-2H41.41L66 216.59V242H53.9zm150.2 14a5 5 0 1 1 0 2H96v-56.6L56.6 162H37.9a5 5 0 1 1 0-2h19.5L98 200.6V256h106.1zm-150.2 2a5 5 0 1 1 0-2H80v-46.59L48.59 178H21.9a5 5 0 1 1 0-2H49.41L82 208.59V258H53.9zM34 39.8v1.61L9.41 66H0v-2h8.59L32 40.59V0h2v39.8zM2 300.1a5 5 0 0 1 3.9 3.9H3.83A3 3 0 0 0 0 302.17V256h18v48h-2v-46H2v42.1zM34 241v63h-2v-62H0v-2h34v1zM17 18H0v-2h16V0h2v18h-1zm273-2h14v2h-16V0h2v16zm-32 273v15h-2v-14h-14v14h-2v-16h18v1zM0 92.1A5.02 5.02 0 0 1 6 97a5 5 0 0 1-6 4.9v-2.07a3 3 0 1 0 0-5.66V92.1zM80 272h2v32h-2v-32zm37.9 32h-2.07a3 3 0 0 0-5.66 0h-2.07a5 5 0 0 1 9.8 0zM5.9 0A5.02 5.02 0 0 1 0 5.9V3.83A3 3 0 0 0 3.83 0H5.9zm294.2 0h2.07A3 3 0 0 0 304 3.83V5.9a5 5 0 0 1-3.9-5.9zm3.9 300.1v2.07a3 3 0 0 0-1.83 1.83h-2.07a5 5 0 0 1 3.9-3.9zM97 100a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-48 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 48a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 96a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-144a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-96 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm96 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-32 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM49 36a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-32 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM33 68a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-48a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 240a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm80-176a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 48a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm112 176a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM17 180a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM17 84a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6z'%3E%3C/path%3E%3C/svg%3E")`,curtain:`url("data:image/svg+xml,%3Csvg width='44' height='12' viewBox='0 0 44 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 12v-2L0 0v10l4 2h16zm18 0l4-2V0L22 10v2h16zM20 0v8L4 0h16zm18 0L22 8V0h16z' fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'/%3E%3C/svg%3E")`,diagonallines:`url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E")`,endlessclouds:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 28' width='56' height='28'%3E%3Cpath fill='{{color}}' fill-opacity='{{opacity}}' d='M56 26v2h-7.75c2.3-1.27 4.94-2 7.75-2zm-26 2a2 2 0 1 0-4 0h-4.09A25.98 25.98 0 0 0 0 16v-2c.67 0 1.34.02 2 .07V14a2 2 0 0 0-2-2v-2a4 4 0 0 1 3.98 3.6 28.09 28.09 0 0 1 2.8-3.86A8 8 0 0 0 0 6V4a9.99 9.99 0 0 1 8.17 4.23c.94-.95 1.96-1.83 3.03-2.63A13.98 13.98 0 0 0 0 0h7.75c2 1.1 3.73 2.63 5.1 4.45 1.12-.72 2.3-1.37 3.53-1.93A20.1 20.1 0 0 0 14.28 0h2.7c.45.56.88 1.14 1.29 1.74 1.3-.48 2.63-.87 4-1.15-.11-.2-.23-.4-.36-.59H26v.07a28.4 28.4 0 0 1 4 0V0h4.09l-.37.59c1.38.28 2.72.67 4.01 1.15.4-.6.84-1.18 1.3-1.74h2.69a20.1 20.1 0 0 0-2.1 2.52c1.23.56 2.41 1.2 3.54 1.93A16.08 16.08 0 0 1 48.25 0H56c-4.58 0-8.65 2.2-11.2 5.6 1.07.8 2.09 1.68 3.03 2.63A9.99 9.99 0 0 1 56 4v2a8 8 0 0 0-6.77 3.74c1.03 1.2 1.97 2.5 2.79 3.86A4 4 0 0 1 56 10v2a2 2 0 0 0-2 2.07 28.4 28.4 0 0 1 2-.07v2c-9.2 0-17.3 4.78-21.91 12H30zM7.75 28H0v-2c2.81 0 5.46.73 7.75 2zM56 20v2c-5.6 0-10.65 2.3-14.28 6h-2.7c4.04-4.89 10.15-8 16.98-8zm-39.03 8h-2.69C10.65 24.3 5.6 22 0 22v-2c6.83 0 12.94 3.11 16.97 8zm15.01-.4a28.09 28.09 0 0 1 2.8-3.86 8 8 0 0 0-13.55 0c1.03 1.2 1.97 2.5 2.79 3.86a4 4 0 0 1 7.96 0zm14.29-11.86c1.3-.48 2.63-.87 4-1.15a25.99 25.99 0 0 0-44.55 0c1.38.28 2.72.67 4.01 1.15a21.98 21.98 0 0 1 36.54 0zm-5.43 2.71c1.13-.72 2.3-1.37 3.54-1.93a19.98 19.98 0 0 0-32.76 0c1.23.56 2.41 1.2 3.54 1.93a15.98 15.98 0 0 1 25.68 0zm-4.67 3.78c.94-.95 1.96-1.83 3.03-2.63a13.98 13.98 0 0 0-22.4 0c1.07.8 2.09 1.68 3.03 2.63a9.99 9.99 0 0 1 16.34 0z'%3E%3C/path%3E%3C/svg%3E")`,eyes:`url("data:image/svg+xml,%3Csvg width='20' height='12' viewBox='0 0 20 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 12c0-.622-.095-1.221-.27-1.785A5.982 5.982 0 0 0 10 12c1.67 0 3.182-.683 4.27-1.785A5.998 5.998 0 0 0 14 12h2a4 4 0 0 1 4-4V6c-1.67 0-3.182.683-4.27 1.785C15.905 7.22 16 6.622 16 6c0-.622-.095-1.221-.27-1.785A5.982 5.982 0 0 0 20 6V4a4 4 0 0 1-4-4h-2c0 .622.095 1.221.27 1.785A5.982 5.982 0 0 0 10 0C8.33 0 6.818.683 5.73 1.785 5.905 1.22 6 .622 6 0H4a4 4 0 0 1-4 4v2c1.67 0 3.182.683 4.27 1.785A5.998 5.998 0 0 1 4 6c0-.622.095-1.221.27-1.785A5.982 5.982 0 0 1 0 6v2a4 4 0 0 1 4 4h2zm-4 0a2 2 0 0 0-2-2v2h2zm16 0a2 2 0 0 1 2-2v2h-2zM0 2a2 2 0 0 0 2-2H0v2zm20 0a2 2 0 0 1-2-2h2v2zm-10 8a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0-2a2 2 0 1 0 0-4 2 2 0 0 0 0 4z' fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'/%3E%3C/svg%3E")`,floortile:`url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10h10v10H0V10zM10 0h10v10H10V0z' fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'/%3E%3C/svg%3E")`,groovy:`url("data:image/svg+xml,%3Csvg width='24' height='40' viewBox='0 0 24 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40c5.523 0 10-4.477 10-10V0C4.477 0 0 4.477 0 10v30zm22 0c-5.523 0-10-4.477-10-10V0c5.523 0 10 4.477 10 10v30z' fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'/%3E%3C/svg%3E")`,intersectingcircles:`url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 0C6.716 0 0 6.716 0 15c8.284 0 15-6.716 15-15zM0 15c0 8.284 6.716 15 15 15 0-8.284-6.716-15-15-15zm30 0c0-8.284-6.716-15-15-15 0 8.284 6.716 15 15 15zm0 0c0 8.284-6.716 15-15 15 0-8.284 6.716-15 15-15z' fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'/%3E%3C/svg%3E")`,melt:`url("data:image/svg+xml,%3Csvg width='24' height='20' viewBox='0 0 24 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 18c0-1.105.887-2 1.998-2 1.104 0 2-.895 2.002-1.994V14v6h-4v-2zM0 13.998C0 12.895.888 12 2 12c1.105 0 2 .888 2 2 0 1.105.888 2 2 2 1.105 0 2 .888 2 2v2H0v-6.002zm16 4.004A1.994 1.994 0 0 1 14 20c-1.105 0-2-.887-2-1.998v-4.004A1.994 1.994 0 0 0 10 12c-1.105 0-2-.888-2-2 0-1.105-.888-2-2-2-1.105 0-2-.887-2-1.998V1.998A1.994 1.994 0 0 0 2 0a2 2 0 0 0-2 2V0h8v2c0 1.105.888 2 2 2 1.105 0 2 .888 2 2 0 1.105.888 2 2 2 1.105 0 2-.888 2-2 0-1.105.888-2 2-2 1.105 0 2-.888 2-2V0h4v6.002A1.994 1.994 0 0 1 22 8c-1.105 0-2 .888-2 2 0 1.105-.888 2-2 2-1.105 0-2 .887-2 1.998v4.004z' fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'/%3E%3C/svg%3E")`,overlappingdiamonds:`url("data:image/svg+xml,%3Csvg width='48' height='64' viewBox='0 0 48 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M48 28v-4L36 12 24 24 12 12 0 24v4l4 4-4 4v4l12 12 12-12 12 12 12-12v-4l-4-4 4-4zM8 32l-6-6 10-10 10 10-6 6 6 6-10 10L2 38l6-6zm12 0l4-4 4 4-4 4-4-4zm12 0l-6-6 10-10 10 10-6 6 6 6-10 10-10-10 6-6zM0 16L10 6 4 0h4l4 4 4-4h4l-6 6 10 10L34 6l-6-6h4l4 4 4-4h4l-6 6 10 10v4L36 8 24 20 12 8 0 20v-4zm0 32l10 10-6 6h4l4-4 4 4h4l-6-6 10-10 10 10-6 6h4l4-4 4 4h4l-6-6 10-10v-4L36 56 24 44 12 56 0 44v4z' fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'/%3E%3C/svg%3E")`,parkayfloor:`url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20.5V18H0v-2h20v-2H0v-2h20v-2H0V8h20V6H0V4h20V2H0V0h22v20h2V0h2v20h2V0h2v20h2V0h2v20h2V0h2v20h2v2H20v-1.5zM0 20h2v20H0V20zm4 0h2v20H4V20zm4 0h2v20H8V20zm4 0h2v20h-2V20zm4 0h2v20h-2V20zm4 4h20v2H20v-2zm0 4h20v2H20v-2zm0 4h20v2H20v-2zm0 4h20v2H20v-2z' fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'/%3E%3C/svg%3E")`,pixeldots:`url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h16v2h-6v6h6v8H8v-6H2v6H0V0zm4 4h2v2H4V4zm8 8h2v2h-2v-2zm-8 0h2v2H4v-2zm8-8h2v2h-2V4z' fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'/%3E%3C/svg%3E")`,polkadots:`url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E")`,signal:`url("data:image/svg+xml,%3Csvg width='84' height='48' viewBox='0 0 84 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h12v6H0V0zm28 8h12v6H28V8zm14-8h12v6H42V0zm14 0h12v6H56V0zm0 8h12v6H56V8zM42 8h12v6H42V8zm0 16h12v6H42v-6zm14-8h12v6H56v-6zm14 0h12v6H70v-6zm0-16h12v6H70V0zM28 32h12v6H28v-6zM14 16h12v6H14v-6zM0 24h12v6H0v-6zm0 8h12v6H0v-6zm14 0h12v6H14v-6zm14 8h12v6H28v-6zm-14 0h12v6H14v-6zm28 0h12v6H42v-6zm14-8h12v6H56v-6zm0-8h12v6H56v-6zm14 8h12v6H70v-6zm0 8h12v6H70v-6zM14 24h12v6H14v-6zm14-8h12v6H28v-6zM14 8h12v6H14V8zM0 8h12v6H0V8z' fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'/%3E%3C/svg%3E")`,slantedstars:`url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 15l15 15H0V15zM15 0l15 15V0H15z' fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'/%3E%3C/svg%3E")`,wallpaper:`url("data:image/svg+xml,%3Csvg width='84' height='16' viewBox='0 0 84 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M78 7V4h-2v3h-3v2h3v3h2V9h3V7h-3zM30 7V4h-2v3h-3v2h3v3h2V9h3V7h-3zM10 0h2v16h-2V0zm6 0h4v16h-4V0zM2 0h4v16H2V0zm50 0h2v16h-2V0zM38 0h2v16h-2V0zm28 0h2v16h-2V0zm-8 0h6v16h-6V0zM42 0h6v16h-6V0z' fill='{{color}}' fill-opacity='{{opacity}}' fill-rule='evenodd'/%3E%3C/svg%3E")`}});var _9e=ne(x9e=>{"use strict";var W4=Pe();function NPt(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var GPt=typeof Object.is=="function"?Object.is:NPt,FPt=W4.useState,IPt=W4.useEffect,zPt=W4.useLayoutEffect,TPt=W4.useDebugValue;function DPt(e,t){var n=t(),r=FPt({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return zPt(function(){i.value=n,i.getSnapshot=t,uQ(i)&&o({inst:i})},[e,n,t]),IPt(function(){return uQ(i)&&o({inst:i}),e(function(){uQ(i)&&o({inst:i})})},[e]),TPt(n),n}function uQ(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!GPt(e,n)}catch{return!0}}function RPt(e,t){return t()}var LPt=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?RPt:DPt;x9e.useSyncExternalStore=W4.useSyncExternalStore!==void 0?W4.useSyncExternalStore:LPt});var w9e=ne((d9n,b9e)=>{"use strict";b9e.exports=_9e()});var k9e=ne(P9e=>{"use strict";var DF=Pe(),VPt=w9e();function JPt(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jPt=typeof Object.is=="function"?Object.is:JPt,HPt=VPt.useSyncExternalStore,WPt=DF.useRef,XPt=DF.useEffect,qPt=DF.useMemo,$Pt=DF.useDebugValue;P9e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=WPt(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=qPt(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),i!==void 0&&s.hasValue){var m=s.value;if(i(m,h))return f=m}return f=h}if(m=f,jPt(c,h))return m;var g=r(h);return i!==void 0&&i(m,g)?m:(c=h,f=g)}var u=!1,c,f,d=n===void 0?null:n;return[function(){return l(t())},d===null?void 0:function(){return l(d())}]},[t,n,r,i]);var a=HPt(e,o[0],o[1]);return XPt(function(){s.hasValue=!0,s.value=a},[a]),$Pt(a),a}});var C9e=ne((f9n,A9e)=>{"use strict";A9e.exports=k9e()});var HSe=ne((aMn,jSe)=>{function oSt(){this.__data__=[],this.size=0}jSe.exports=oSt});var Jy=ne((lMn,WSe)=>{function sSt(e,t){return e===t||e!==e&&t!==t}WSe.exports=sSt});var zk=ne((uMn,XSe)=>{var aSt=Jy();function lSt(e,t){for(var n=e.length;n--;)if(aSt(e[n][0],t))return n;return-1}XSe.exports=lSt});var $Se=ne((cMn,qSe)=>{var uSt=zk(),cSt=Array.prototype,dSt=cSt.splice;function pSt(e){var t=this.__data__,n=uSt(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():dSt.call(t,n,1),--this.size,!0}qSe.exports=pSt});var YSe=ne((dMn,KSe)=>{var fSt=zk();function hSt(e){var t=this.__data__,n=fSt(t,e);return n<0?void 0:t[n][1]}KSe.exports=hSt});var USe=ne((pMn,ZSe)=>{var mSt=zk();function gSt(e){return mSt(this.__data__,e)>-1}ZSe.exports=gSt});var eOe=ne((fMn,QSe)=>{var vSt=zk();function ySt(e,t){var n=this.__data__,r=vSt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}QSe.exports=ySt});var Tk=ne((hMn,tOe)=>{var xSt=HSe(),_St=$Se(),bSt=YSe(),wSt=USe(),PSt=eOe();function s5(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s5.prototype.clear=xSt;s5.prototype.delete=_St;s5.prototype.get=bSt;s5.prototype.has=wSt;s5.prototype.set=PSt;tOe.exports=s5});var rOe=ne((mMn,nOe)=>{var kSt=Tk();function ASt(){this.__data__=new kSt,this.size=0}nOe.exports=ASt});var oOe=ne((gMn,iOe)=>{function CSt(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}iOe.exports=CSt});var aOe=ne((vMn,sOe)=>{function SSt(e){return this.__data__.get(e)}sOe.exports=SSt});var uOe=ne((yMn,lOe)=>{function OSt(e){return this.__data__.has(e)}lOe.exports=OSt});var ZQ=ne((xMn,cOe)=>{var ESt=typeof global=="object"&&global&&global.Object===Object&&global;cOe.exports=ESt});var $d=ne((_Mn,dOe)=>{var MSt=ZQ(),BSt=typeof self=="object"&&self&&self.Object===Object&&self,NSt=MSt||BSt||Function("return this")();dOe.exports=NSt});var jy=ne((bMn,pOe)=>{var GSt=$d(),FSt=GSt.Symbol;pOe.exports=FSt});var gOe=ne((wMn,mOe)=>{var fOe=jy(),hOe=Object.prototype,ISt=hOe.hasOwnProperty,zSt=hOe.toString,Dk=fOe?fOe.toStringTag:void 0;function TSt(e){var t=ISt.call(e,Dk),n=e[Dk];try{e[Dk]=void 0;var r=!0}catch{}var i=zSt.call(e);return r&&(t?e[Dk]=n:delete e[Dk]),i}mOe.exports=TSt});var yOe=ne((PMn,vOe)=>{var DSt=Object.prototype,RSt=DSt.toString;function LSt(e){return RSt.call(e)}vOe.exports=LSt});var pv=ne((kMn,bOe)=>{var xOe=jy(),VSt=gOe(),JSt=yOe(),jSt="[object Null]",HSt="[object Undefined]",_Oe=xOe?xOe.toStringTag:void 0;function WSt(e){return e==null?e===void 0?HSt:jSt:_Oe&&_Oe in Object(e)?VSt(e):JSt(e)}bOe.exports=WSt});var jc=ne((AMn,wOe)=>{function XSt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}wOe.exports=XSt});var a5=ne((CMn,POe)=>{var qSt=pv(),$St=jc(),KSt="[object AsyncFunction]",YSt="[object Function]",ZSt="[object GeneratorFunction]",USt="[object Proxy]";function QSt(e){if(!$St(e))return!1;var t=qSt(e);return t==YSt||t==ZSt||t==KSt||t==USt}POe.exports=QSt});var AOe=ne((SMn,kOe)=>{var eOt=$d(),tOt=eOt["__core-js_shared__"];kOe.exports=tOt});var OOe=ne((OMn,SOe)=>{var UQ=AOe(),COe=function(){var e=/[^.]+$/.exec(UQ&&UQ.keys&&UQ.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function nOt(e){return!!COe&&COe in e}SOe.exports=nOt});var QQ=ne((EMn,EOe)=>{var rOt=Function.prototype,iOt=rOt.toString;function oOt(e){if(e!=null){try{return iOt.call(e)}catch{}try{return e+""}catch{}}return""}EOe.exports=oOt});var BOe=ne((MMn,MOe)=>{var sOt=a5(),aOt=OOe(),lOt=jc(),uOt=QQ(),cOt=/[\\^$.*+?()[\]{}|]/g,dOt=/^\[object .+?Constructor\]$/,pOt=Function.prototype,fOt=Object.prototype,hOt=pOt.toString,mOt=fOt.hasOwnProperty,gOt=RegExp("^"+hOt.call(mOt).replace(cOt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function vOt(e){if(!lOt(e)||aOt(e))return!1;var t=sOt(e)?gOt:dOt;return t.test(uOt(e))}MOe.exports=vOt});var GOe=ne((BMn,NOe)=>{function yOt(e,t){return e?.[t]}NOe.exports=yOt});var fv=ne((NMn,FOe)=>{var xOt=BOe(),_Ot=GOe();function bOt(e,t){var n=_Ot(e,t);return xOt(n)?n:void 0}FOe.exports=bOt});var wI=ne((GMn,IOe)=>{var wOt=fv(),POt=$d(),kOt=wOt(POt,"Map");IOe.exports=kOt});var Rk=ne((FMn,zOe)=>{var AOt=fv(),COt=AOt(Object,"create");zOe.exports=COt});var ROe=ne((IMn,DOe)=>{var TOe=Rk();function SOt(){this.__data__=TOe?TOe(null):{},this.size=0}DOe.exports=SOt});var VOe=ne((zMn,LOe)=>{function OOt(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}LOe.exports=OOt});var jOe=ne((TMn,JOe)=>{var EOt=Rk(),MOt="__lodash_hash_undefined__",BOt=Object.prototype,NOt=BOt.hasOwnProperty;function GOt(e){var t=this.__data__;if(EOt){var n=t[e];return n===MOt?void 0:n}return NOt.call(t,e)?t[e]:void 0}JOe.exports=GOt});var WOe=ne((DMn,HOe)=>{var FOt=Rk(),IOt=Object.prototype,zOt=IOt.hasOwnProperty;function TOt(e){var t=this.__data__;return FOt?t[e]!==void 0:zOt.call(t,e)}HOe.exports=TOt});var qOe=ne((RMn,XOe)=>{var DOt=Rk(),ROt="__lodash_hash_undefined__";function LOt(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=DOt&&t===void 0?ROt:t,this}XOe.exports=LOt});var KOe=ne((LMn,$Oe)=>{var VOt=ROe(),JOt=VOe(),jOt=jOe(),HOt=WOe(),WOt=qOe();function l5(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l5.prototype.clear=VOt;l5.prototype.delete=JOt;l5.prototype.get=jOt;l5.prototype.has=HOt;l5.prototype.set=WOt;$Oe.exports=l5});var UOe=ne((VMn,ZOe)=>{var YOe=KOe(),XOt=Tk(),qOt=wI();function $Ot(){this.size=0,this.__data__={hash:new YOe,map:new(qOt||XOt),string:new YOe}}ZOe.exports=$Ot});var eEe=ne((JMn,QOe)=>{function KOt(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}QOe.exports=KOt});var Lk=ne((jMn,tEe)=>{var YOt=eEe();function ZOt(e,t){var n=e.__data__;return YOt(t)?n[typeof t=="string"?"string":"hash"]:n.map}tEe.exports=ZOt});var rEe=ne((HMn,nEe)=>{var UOt=Lk();function QOt(e){var t=UOt(this,e).delete(e);return this.size-=t?1:0,t}nEe.exports=QOt});var oEe=ne((WMn,iEe)=>{var eEt=Lk();function tEt(e){return eEt(this,e).get(e)}iEe.exports=tEt});var aEe=ne((XMn,sEe)=>{var nEt=Lk();function rEt(e){return nEt(this,e).has(e)}sEe.exports=rEt});var uEe=ne((qMn,lEe)=>{var iEt=Lk();function oEt(e,t){var n=iEt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}lEe.exports=oEt});var PI=ne(($Mn,cEe)=>{var sEt=UOe(),aEt=rEe(),lEt=oEe(),uEt=aEe(),cEt=uEe();function u5(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u5.prototype.clear=sEt;u5.prototype.delete=aEt;u5.prototype.get=lEt;u5.prototype.has=uEt;u5.prototype.set=cEt;cEe.exports=u5});var pEe=ne((KMn,dEe)=>{var dEt=Tk(),pEt=wI(),fEt=PI(),hEt=200;function mEt(e,t){var n=this.__data__;if(n instanceof dEt){var r=n.__data__;if(!pEt||r.length<hEt-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new fEt(r)}return n.set(e,t),this.size=n.size,this}dEe.exports=mEt});var Vk=ne((YMn,fEe)=>{var gEt=Tk(),vEt=rOe(),yEt=oOe(),xEt=aOe(),_Et=uOe(),bEt=pEe();function c5(e){var t=this.__data__=new gEt(e);this.size=t.size}c5.prototype.clear=vEt;c5.prototype.delete=yEt;c5.prototype.get=xEt;c5.prototype.has=_Et;c5.prototype.set=bEt;fEe.exports=c5});var kI=ne((ZMn,hEe)=>{function wEt(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}hEe.exports=wEt});var eee=ne((UMn,mEe)=>{var PEt=fv(),kEt=function(){try{var e=PEt(Object,"defineProperty");return e({},"",{}),e}catch{}}();mEe.exports=kEt});var Jk=ne((QMn,vEe)=>{var gEe=eee();function AEt(e,t,n){t=="__proto__"&&gEe?gEe(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}vEe.exports=AEt});var jk=ne((eBn,yEe)=>{var CEt=Jk(),SEt=Jy(),OEt=Object.prototype,EEt=OEt.hasOwnProperty;function MEt(e,t,n){var r=e[t];(!(EEt.call(e,t)&&SEt(r,n))||n===void 0&&!(t in e))&&CEt(e,t,n)}yEe.exports=MEt});var d5=ne((tBn,xEe)=>{var BEt=jk(),NEt=Jk();function GEt(e,t,n,r){var i=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var a=t[o],l=r?r(n[a],e[a],a,n,e):void 0;l===void 0&&(l=e[a]),i?NEt(n,a,l):BEt(n,a,l)}return n}xEe.exports=GEt});var bEe=ne((nBn,_Ee)=>{function FEt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}_Ee.exports=FEt});var sf=ne((rBn,wEe)=>{function IEt(e){return e!=null&&typeof e=="object"}wEe.exports=IEt});var kEe=ne((iBn,PEe)=>{var zEt=pv(),TEt=sf(),DEt="[object Arguments]";function REt(e){return TEt(e)&&zEt(e)==DEt}PEe.exports=REt});var p5=ne((oBn,SEe)=>{var AEe=kEe(),LEt=sf(),CEe=Object.prototype,VEt=CEe.hasOwnProperty,JEt=CEe.propertyIsEnumerable,jEt=AEe(function(){return arguments}())?AEe:function(e){return LEt(e)&&VEt.call(e,"callee")&&!JEt.call(e,"callee")};SEe.exports=jEt});var zs=ne((sBn,OEe)=>{var HEt=Array.isArray;OEe.exports=HEt});var MEe=ne((aBn,EEe)=>{function WEt(){return!1}EEe.exports=WEt});var Hy=ne((Hk,f5)=>{var XEt=$d(),qEt=MEe(),GEe=typeof Hk=="object"&&Hk&&!Hk.nodeType&&Hk,BEe=GEe&&typeof f5=="object"&&f5&&!f5.nodeType&&f5,$Et=BEe&&BEe.exports===GEe,NEe=$Et?XEt.Buffer:void 0,KEt=NEe?NEe.isBuffer:void 0,YEt=KEt||qEt;f5.exports=YEt});var Wk=ne((lBn,FEe)=>{var ZEt=9007199254740991,UEt=/^(?:0|[1-9]\d*)$/;function QEt(e,t){var n=typeof e;return t=t??ZEt,!!t&&(n=="number"||n!="symbol"&&UEt.test(e))&&e>-1&&e%1==0&&e<t}FEe.exports=QEt});var AI=ne((uBn,IEe)=>{var eMt=9007199254740991;function tMt(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=eMt}IEe.exports=tMt});var TEe=ne((cBn,zEe)=>{var nMt=pv(),rMt=AI(),iMt=sf(),oMt="[object Arguments]",sMt="[object Array]",aMt="[object Boolean]",lMt="[object Date]",uMt="[object Error]",cMt="[object Function]",dMt="[object Map]",pMt="[object Number]",fMt="[object Object]",hMt="[object RegExp]",mMt="[object Set]",gMt="[object String]",vMt="[object WeakMap]",yMt="[object ArrayBuffer]",xMt="[object DataView]",_Mt="[object Float32Array]",bMt="[object Float64Array]",wMt="[object Int8Array]",PMt="[object Int16Array]",kMt="[object Int32Array]",AMt="[object Uint8Array]",CMt="[object Uint8ClampedArray]",SMt="[object Uint16Array]",OMt="[object Uint32Array]",Jo={};Jo[_Mt]=Jo[bMt]=Jo[wMt]=Jo[PMt]=Jo[kMt]=Jo[AMt]=Jo[CMt]=Jo[SMt]=Jo[OMt]=!0;Jo[oMt]=Jo[sMt]=Jo[yMt]=Jo[aMt]=Jo[xMt]=Jo[lMt]=Jo[uMt]=Jo[cMt]=Jo[dMt]=Jo[pMt]=Jo[fMt]=Jo[hMt]=Jo[mMt]=Jo[gMt]=Jo[vMt]=!1;function EMt(e){return iMt(e)&&rMt(e.length)&&!!Jo[nMt(e)]}zEe.exports=EMt});var Xk=ne((dBn,DEe)=>{function MMt(e){return function(t){return e(t)}}DEe.exports=MMt});var CI=ne((qk,h5)=>{var BMt=ZQ(),REe=typeof qk=="object"&&qk&&!qk.nodeType&&qk,$k=REe&&typeof h5=="object"&&h5&&!h5.nodeType&&h5,NMt=$k&&$k.exports===REe,tee=NMt&&BMt.process,GMt=function(){try{var e=$k&&$k.require&&$k.require("util").types;return e||tee&&tee.binding&&tee.binding("util")}catch{}}();h5.exports=GMt});var m5=ne((pBn,JEe)=>{var FMt=TEe(),IMt=Xk(),LEe=CI(),VEe=LEe&&LEe.isTypedArray,zMt=VEe?IMt(VEe):FMt;JEe.exports=zMt});var nee=ne((fBn,jEe)=>{var TMt=bEe(),DMt=p5(),RMt=zs(),LMt=Hy(),VMt=Wk(),JMt=m5(),jMt=Object.prototype,HMt=jMt.hasOwnProperty;function WMt(e,t){var n=RMt(e),r=!n&&DMt(e),i=!n&&!r&&LMt(e),o=!n&&!r&&!i&&JMt(e),s=n||r||i||o,a=s?TMt(e.length,String):[],l=a.length;for(var u in e)(t||HMt.call(e,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||VMt(u,l)))&&a.push(u);return a}jEe.exports=WMt});var Kk=ne((hBn,HEe)=>{var XMt=Object.prototype;function qMt(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||XMt;return e===n}HEe.exports=qMt});var ree=ne((mBn,WEe)=>{function $Mt(e,t){return function(n){return e(t(n))}}WEe.exports=$Mt});var qEe=ne((gBn,XEe)=>{var KMt=ree(),YMt=KMt(Object.keys,Object);XEe.exports=YMt});var SI=ne((vBn,$Ee)=>{var ZMt=Kk(),UMt=qEe(),QMt=Object.prototype,eBt=QMt.hasOwnProperty;function tBt(e){if(!ZMt(e))return UMt(e);var t=[];for(var n in Object(e))eBt.call(e,n)&&n!="constructor"&&t.push(n);return t}$Ee.exports=tBt});var xh=ne((yBn,KEe)=>{var nBt=a5(),rBt=AI();function iBt(e){return e!=null&&rBt(e.length)&&!nBt(e)}KEe.exports=iBt});var gm=ne((xBn,YEe)=>{var oBt=nee(),sBt=SI(),aBt=xh();function lBt(e){return aBt(e)?oBt(e):sBt(e)}YEe.exports=lBt});var UEe=ne((_Bn,ZEe)=>{var uBt=d5(),cBt=gm();function dBt(e,t){return e&&uBt(t,cBt(t),e)}ZEe.exports=dBt});var eMe=ne((bBn,QEe)=>{function pBt(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}QEe.exports=pBt});var nMe=ne((wBn,tMe)=>{var fBt=jc(),hBt=Kk(),mBt=eMe(),gBt=Object.prototype,vBt=gBt.hasOwnProperty;function yBt(e){if(!fBt(e))return mBt(e);var t=hBt(e),n=[];for(var r in e)r=="constructor"&&(t||!vBt.call(e,r))||n.push(r);return n}tMe.exports=yBt});var hv=ne((PBn,rMe)=>{var xBt=nee(),_Bt=nMe(),bBt=xh();function wBt(e){return bBt(e)?xBt(e,!0):_Bt(e)}rMe.exports=wBt});var oMe=ne((kBn,iMe)=>{var PBt=d5(),kBt=hv();function ABt(e,t){return e&&PBt(t,kBt(t),e)}iMe.exports=ABt});var iee=ne((Yk,g5)=>{var CBt=$d(),uMe=typeof Yk=="object"&&Yk&&!Yk.nodeType&&Yk,sMe=uMe&&typeof g5=="object"&&g5&&!g5.nodeType&&g5,SBt=sMe&&sMe.exports===uMe,aMe=SBt?CBt.Buffer:void 0,lMe=aMe?aMe.allocUnsafe:void 0;function OBt(e,t){if(t)return e.slice();var n=e.length,r=lMe?lMe(n):new e.constructor(n);return e.copy(r),r}g5.exports=OBt});var oee=ne((ABn,cMe)=>{function EBt(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}cMe.exports=EBt});var see=ne((CBn,dMe)=>{function MBt(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}dMe.exports=MBt});var aee=ne((SBn,pMe)=>{function BBt(){return[]}pMe.exports=BBt});var OI=ne((OBn,hMe)=>{var NBt=see(),GBt=aee(),FBt=Object.prototype,IBt=FBt.propertyIsEnumerable,fMe=Object.getOwnPropertySymbols,zBt=fMe?function(e){return e==null?[]:(e=Object(e),NBt(fMe(e),function(t){return IBt.call(e,t)}))}:GBt;hMe.exports=zBt});var gMe=ne((EBn,mMe)=>{var TBt=d5(),DBt=OI();function RBt(e,t){return TBt(e,DBt(e),t)}mMe.exports=RBt});var EI=ne((MBn,vMe)=>{function LBt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}vMe.exports=LBt});var Zk=ne((BBn,yMe)=>{var VBt=ree(),JBt=VBt(Object.getPrototypeOf,Object);yMe.exports=JBt});var lee=ne((NBn,xMe)=>{var jBt=EI(),HBt=Zk(),WBt=OI(),XBt=aee(),qBt=Object.getOwnPropertySymbols,$Bt=qBt?function(e){for(var t=[];e;)jBt(t,WBt(e)),e=HBt(e);return t}:XBt;xMe.exports=$Bt});var bMe=ne((GBn,_Me)=>{var KBt=d5(),YBt=lee();function ZBt(e,t){return KBt(e,YBt(e),t)}_Me.exports=ZBt});var uee=ne((FBn,wMe)=>{var UBt=EI(),QBt=zs();function eNt(e,t,n){var r=t(e);return QBt(e)?r:UBt(r,n(e))}wMe.exports=eNt});var cee=ne((IBn,PMe)=>{var tNt=uee(),nNt=OI(),rNt=gm();function iNt(e){return tNt(e,rNt,nNt)}PMe.exports=iNt});var AMe=ne((zBn,kMe)=>{var oNt=uee(),sNt=lee(),aNt=hv();function lNt(e){return oNt(e,aNt,sNt)}kMe.exports=lNt});var SMe=ne((TBn,CMe)=>{var uNt=fv(),cNt=$d(),dNt=uNt(cNt,"DataView");CMe.exports=dNt});var EMe=ne((DBn,OMe)=>{var pNt=fv(),fNt=$d(),hNt=pNt(fNt,"Promise");OMe.exports=hNt});var dee=ne((RBn,MMe)=>{var mNt=fv(),gNt=$d(),vNt=mNt(gNt,"Set");MMe.exports=vNt});var NMe=ne((LBn,BMe)=>{var yNt=fv(),xNt=$d(),_Nt=yNt(xNt,"WeakMap");BMe.exports=_Nt});var Xy=ne((VBn,RMe)=>{var pee=SMe(),fee=wI(),hee=EMe(),mee=dee(),gee=NMe(),DMe=pv(),v5=QQ(),GMe="[object Map]",bNt="[object Object]",FMe="[object Promise]",IMe="[object Set]",zMe="[object WeakMap]",TMe="[object DataView]",wNt=v5(pee),PNt=v5(fee),kNt=v5(hee),ANt=v5(mee),CNt=v5(gee),Wy=DMe;(pee&&Wy(new pee(new ArrayBuffer(1)))!=TMe||fee&&Wy(new fee)!=GMe||hee&&Wy(hee.resolve())!=FMe||mee&&Wy(new mee)!=IMe||gee&&Wy(new gee)!=zMe)&&(Wy=function(e){var t=DMe(e),n=t==bNt?e.constructor:void 0,r=n?v5(n):"";if(r)switch(r){case wNt:return TMe;case PNt:return GMe;case kNt:return FMe;case ANt:return IMe;case CNt:return zMe}return t});RMe.exports=Wy});var VMe=ne((JBn,LMe)=>{var SNt=Object.prototype,ONt=SNt.hasOwnProperty;function ENt(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&ONt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}LMe.exports=ENt});var vee=ne((jBn,JMe)=>{var MNt=$d(),BNt=MNt.Uint8Array;JMe.exports=BNt});var MI=ne((HBn,HMe)=>{var jMe=vee();function NNt(e){var t=new e.constructor(e.byteLength);return new jMe(t).set(new jMe(e)),t}HMe.exports=NNt});var XMe=ne((WBn,WMe)=>{var GNt=MI();function FNt(e,t){var n=t?GNt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}WMe.exports=FNt});var $Me=ne((XBn,qMe)=>{var INt=/\w*$/;function zNt(e){var t=new e.constructor(e.source,INt.exec(e));return t.lastIndex=e.lastIndex,t}qMe.exports=zNt});var QMe=ne((qBn,UMe)=>{var KMe=jy(),YMe=KMe?KMe.prototype:void 0,ZMe=YMe?YMe.valueOf:void 0;function TNt(e){return ZMe?Object(ZMe.call(e)):{}}UMe.exports=TNt});var yee=ne(($Bn,eBe)=>{var DNt=MI();function RNt(e,t){var n=t?DNt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}eBe.exports=RNt});var nBe=ne((KBn,tBe)=>{var LNt=MI(),VNt=XMe(),JNt=$Me(),jNt=QMe(),HNt=yee(),WNt="[object Boolean]",XNt="[object Date]",qNt="[object Map]",$Nt="[object Number]",KNt="[object RegExp]",YNt="[object Set]",ZNt="[object String]",UNt="[object Symbol]",QNt="[object ArrayBuffer]",eGt="[object DataView]",tGt="[object Float32Array]",nGt="[object Float64Array]",rGt="[object Int8Array]",iGt="[object Int16Array]",oGt="[object Int32Array]",sGt="[object Uint8Array]",aGt="[object Uint8ClampedArray]",lGt="[object Uint16Array]",uGt="[object Uint32Array]";function cGt(e,t,n){var r=e.constructor;switch(t){case QNt:return LNt(e);case WNt:case XNt:return new r(+e);case eGt:return VNt(e,n);case tGt:case nGt:case rGt:case iGt:case oGt:case sGt:case aGt:case lGt:case uGt:return HNt(e,n);case qNt:return new r;case $Nt:case ZNt:return new r(e);case KNt:return JNt(e);case YNt:return new r;case UNt:return jNt(e)}}tBe.exports=cGt});var xee=ne((YBn,iBe)=>{var dGt=jc(),rBe=Object.create,pGt=function(){function e(){}return function(t){if(!dGt(t))return{};if(rBe)return rBe(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();iBe.exports=pGt});var _ee=ne((ZBn,oBe)=>{var fGt=xee(),hGt=Zk(),mGt=Kk();function gGt(e){return typeof e.constructor=="function"&&!mGt(e)?fGt(hGt(e)):{}}oBe.exports=gGt});var aBe=ne((UBn,sBe)=>{var vGt=Xy(),yGt=sf(),xGt="[object Map]";function _Gt(e){return yGt(e)&&vGt(e)==xGt}sBe.exports=_Gt});var dBe=ne((QBn,cBe)=>{var bGt=aBe(),wGt=Xk(),lBe=CI(),uBe=lBe&&lBe.isMap,PGt=uBe?wGt(uBe):bGt;cBe.exports=PGt});var fBe=ne((eNn,pBe)=>{var kGt=Xy(),AGt=sf(),CGt="[object Set]";function SGt(e){return AGt(e)&&kGt(e)==CGt}pBe.exports=SGt});var vBe=ne((tNn,gBe)=>{var OGt=fBe(),EGt=Xk(),hBe=CI(),mBe=hBe&&hBe.isSet,MGt=mBe?EGt(mBe):OGt;gBe.exports=MGt});var bee=ne((nNn,bBe)=>{var BGt=Vk(),NGt=kI(),GGt=jk(),FGt=UEe(),IGt=oMe(),zGt=iee(),TGt=oee(),DGt=gMe(),RGt=bMe(),LGt=cee(),VGt=AMe(),JGt=Xy(),jGt=VMe(),HGt=nBe(),WGt=_ee(),XGt=zs(),qGt=Hy(),$Gt=dBe(),KGt=jc(),YGt=vBe(),ZGt=gm(),UGt=hv(),QGt=1,eFt=2,tFt=4,yBe="[object Arguments]",nFt="[object Array]",rFt="[object Boolean]",iFt="[object Date]",oFt="[object Error]",xBe="[object Function]",sFt="[object GeneratorFunction]",aFt="[object Map]",lFt="[object Number]",_Be="[object Object]",uFt="[object RegExp]",cFt="[object Set]",dFt="[object String]",pFt="[object Symbol]",fFt="[object WeakMap]",hFt="[object ArrayBuffer]",mFt="[object DataView]",gFt="[object Float32Array]",vFt="[object Float64Array]",yFt="[object Int8Array]",xFt="[object Int16Array]",_Ft="[object Int32Array]",bFt="[object Uint8Array]",wFt="[object Uint8ClampedArray]",PFt="[object Uint16Array]",kFt="[object Uint32Array]",No={};No[yBe]=No[nFt]=No[hFt]=No[mFt]=No[rFt]=No[iFt]=No[gFt]=No[vFt]=No[yFt]=No[xFt]=No[_Ft]=No[aFt]=No[lFt]=No[_Be]=No[uFt]=No[cFt]=No[dFt]=No[pFt]=No[bFt]=No[wFt]=No[PFt]=No[kFt]=!0;No[oFt]=No[xBe]=No[fFt]=!1;function BI(e,t,n,r,i,o){var s,a=t&QGt,l=t&eFt,u=t&tFt;if(n&&(s=i?n(e,r,i,o):n(e)),s!==void 0)return s;if(!KGt(e))return e;var c=XGt(e);if(c){if(s=jGt(e),!a)return TGt(e,s)}else{var f=JGt(e),d=f==xBe||f==sFt;if(qGt(e))return zGt(e,a);if(f==_Be||f==yBe||d&&!i){if(s=l||d?{}:WGt(e),!a)return l?RGt(e,IGt(s,e)):DGt(e,FGt(s,e))}else{if(!No[f])return i?e:{};s=HGt(e,f,a)}}o||(o=new BGt);var h=o.get(e);if(h)return h;o.set(e,s),YGt(e)?e.forEach(function(b){s.add(BI(b,t,n,b,e,o))}):$Gt(e)&&e.forEach(function(b,v){s.set(v,BI(b,t,n,v,e,o))});var m=u?l?VGt:LGt:l?UGt:ZGt,g=c?void 0:m(e);return NGt(g||e,function(b,v){g&&(v=b,b=e[v]),GGt(s,v,BI(b,t,n,v,e,o))}),s}bBe.exports=BI});var PBe=ne((rNn,wBe)=>{var AFt=bee(),CFt=4;function SFt(e){return AFt(e,CFt)}wBe.exports=SFt});var NI=ne((iNn,kBe)=>{function OFt(e){return function(){return e}}kBe.exports=OFt});var CBe=ne((oNn,ABe)=>{function EFt(e){return function(t,n,r){for(var i=-1,o=Object(t),s=r(t),a=s.length;a--;){var l=s[e?a:++i];if(n(o[l],l,o)===!1)break}return t}}ABe.exports=EFt});var GI=ne((sNn,SBe)=>{var MFt=CBe(),BFt=MFt();SBe.exports=BFt});var FI=ne((aNn,OBe)=>{var NFt=GI(),GFt=gm();function FFt(e,t){return e&&NFt(e,t,GFt)}OBe.exports=FFt});var MBe=ne((lNn,EBe)=>{var IFt=xh();function zFt(e,t){return function(n,r){if(n==null)return n;if(!IFt(n))return e(n,r);for(var i=n.length,o=t?i:-1,s=Object(n);(t?o--:++o<i)&&r(s[o],o,s)!==!1;);return n}}EBe.exports=zFt});var Uk=ne((uNn,BBe)=>{var TFt=FI(),DFt=MBe(),RFt=DFt(TFt);BBe.exports=RFt});var mv=ne((cNn,NBe)=>{function LFt(e){return e}NBe.exports=LFt});var wee=ne((dNn,GBe)=>{var VFt=mv();function JFt(e){return typeof e=="function"?e:VFt}GBe.exports=JFt});var Pee=ne((pNn,FBe)=>{var jFt=kI(),HFt=Uk(),WFt=wee(),XFt=zs();function qFt(e,t){var n=XFt(e)?jFt:HFt;return n(e,WFt(t))}FBe.exports=qFt});var kee=ne((fNn,IBe)=>{IBe.exports=Pee()});var TBe=ne((hNn,zBe)=>{var $Ft=Uk();function KFt(e,t){var n=[];return $Ft(e,function(r,i,o){t(r,i,o)&&n.push(r)}),n}zBe.exports=KFt});var RBe=ne((mNn,DBe)=>{var YFt="__lodash_hash_undefined__";function ZFt(e){return this.__data__.set(e,YFt),this}DBe.exports=ZFt});var VBe=ne((gNn,LBe)=>{function UFt(e){return this.__data__.has(e)}LBe.exports=UFt});var Aee=ne((vNn,JBe)=>{var QFt=PI(),eIt=RBe(),tIt=VBe();function II(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new QFt;++t<n;)this.add(e[t])}II.prototype.add=II.prototype.push=eIt;II.prototype.has=tIt;JBe.exports=II});var HBe=ne((yNn,jBe)=>{function nIt(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}jBe.exports=nIt});var Cee=ne((xNn,WBe)=>{function rIt(e,t){return e.has(t)}WBe.exports=rIt});var See=ne((_Nn,XBe)=>{var iIt=Aee(),oIt=HBe(),sIt=Cee(),aIt=1,lIt=2;function uIt(e,t,n,r,i,o){var s=n&aIt,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,h=n&lIt?new iIt:void 0;for(o.set(e,t),o.set(t,e);++f<a;){var m=e[f],g=t[f];if(r)var b=s?r(g,m,f,t,e,o):r(m,g,f,e,t,o);if(b!==void 0){if(b)continue;d=!1;break}if(h){if(!oIt(t,function(v,x){if(!sIt(h,x)&&(m===v||i(m,v,n,r,o)))return h.push(x)})){d=!1;break}}else if(!(m===g||i(m,g,n,r,o))){d=!1;break}}return o.delete(e),o.delete(t),d}XBe.exports=uIt});var $Be=ne((bNn,qBe)=>{function cIt(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}qBe.exports=cIt});var zI=ne((wNn,KBe)=>{function dIt(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}KBe.exports=dIt});var eNe=ne((PNn,QBe)=>{var YBe=jy(),ZBe=vee(),pIt=Jy(),fIt=See(),hIt=$Be(),mIt=zI(),gIt=1,vIt=2,yIt="[object Boolean]",xIt="[object Date]",_It="[object Error]",bIt="[object Map]",wIt="[object Number]",PIt="[object RegExp]",kIt="[object Set]",AIt="[object String]",CIt="[object Symbol]",SIt="[object ArrayBuffer]",OIt="[object DataView]",UBe=YBe?YBe.prototype:void 0,Oee=UBe?UBe.valueOf:void 0;function EIt(e,t,n,r,i,o,s){switch(n){case OIt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case SIt:return!(e.byteLength!=t.byteLength||!o(new ZBe(e),new ZBe(t)));case yIt:case xIt:case wIt:return pIt(+e,+t);case _It:return e.name==t.name&&e.message==t.message;case PIt:case AIt:return e==t+"";case bIt:var a=hIt;case kIt:var l=r&gIt;if(a||(a=mIt),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;r|=vIt,s.set(e,t);var c=fIt(a(e),a(t),r,i,o,s);return s.delete(e),c;case CIt:if(Oee)return Oee.call(e)==Oee.call(t)}return!1}QBe.exports=EIt});var rNe=ne((kNn,nNe)=>{var tNe=cee(),MIt=1,BIt=Object.prototype,NIt=BIt.hasOwnProperty;function GIt(e,t,n,r,i,o){var s=n&MIt,a=tNe(e),l=a.length,u=tNe(t),c=u.length;if(l!=c&&!s)return!1;for(var f=l;f--;){var d=a[f];if(!(s?d in t:NIt.call(t,d)))return!1}var h=o.get(e),m=o.get(t);if(h&&m)return h==t&&m==e;var g=!0;o.set(e,t),o.set(t,e);for(var b=s;++f<l;){d=a[f];var v=e[d],x=t[d];if(r)var y=s?r(x,v,d,t,e,o):r(v,x,d,e,t,o);if(!(y===void 0?v===x||i(v,x,n,r,o):y)){g=!1;break}b||(b=d=="constructor")}if(g&&!b){var _=e.constructor,w=t.constructor;_!=w&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof w=="function"&&w instanceof w)&&(g=!1)}return o.delete(e),o.delete(t),g}nNe.exports=GIt});var dNe=ne((ANn,cNe)=>{var Eee=Vk(),FIt=See(),IIt=eNe(),zIt=rNe(),iNe=Xy(),oNe=zs(),sNe=Hy(),TIt=m5(),DIt=1,aNe="[object Arguments]",lNe="[object Array]",TI="[object Object]",RIt=Object.prototype,uNe=RIt.hasOwnProperty;function LIt(e,t,n,r,i,o){var s=oNe(e),a=oNe(t),l=s?lNe:iNe(e),u=a?lNe:iNe(t);l=l==aNe?TI:l,u=u==aNe?TI:u;var c=l==TI,f=u==TI,d=l==u;if(d&&sNe(e)){if(!sNe(t))return!1;s=!0,c=!1}if(d&&!c)return o||(o=new Eee),s||TIt(e)?FIt(e,t,n,r,i,o):IIt(e,t,l,n,r,i,o);if(!(n&DIt)){var h=c&&uNe.call(e,"__wrapped__"),m=f&&uNe.call(t,"__wrapped__");if(h||m){var g=h?e.value():e,b=m?t.value():t;return o||(o=new Eee),i(g,b,n,r,o)}}return d?(o||(o=new Eee),zIt(e,t,n,r,i,o)):!1}cNe.exports=LIt});var Mee=ne((CNn,hNe)=>{var VIt=dNe(),pNe=sf();function fNe(e,t,n,r,i){return e===t?!0:e==null||t==null||!pNe(e)&&!pNe(t)?e!==e&&t!==t:VIt(e,t,n,r,fNe,i)}hNe.exports=fNe});var gNe=ne((SNn,mNe)=>{var JIt=Vk(),jIt=Mee(),HIt=1,WIt=2;function XIt(e,t,n,r){var i=n.length,o=i,s=!r;if(e==null)return!o;for(e=Object(e);i--;){var a=n[i];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++i<o;){a=n[i];var l=a[0],u=e[l],c=a[1];if(s&&a[2]){if(u===void 0&&!(l in e))return!1}else{var f=new JIt;if(r)var d=r(u,c,l,e,t,f);if(!(d===void 0?jIt(c,u,HIt|WIt,r,f):d))return!1}}return!0}mNe.exports=XIt});var Bee=ne((ONn,vNe)=>{var qIt=jc();function $It(e){return e===e&&!qIt(e)}vNe.exports=$It});var xNe=ne((ENn,yNe)=>{var KIt=Bee(),YIt=gm();function ZIt(e){for(var t=YIt(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,KIt(i)]}return t}yNe.exports=ZIt});var Nee=ne((MNn,_Ne)=>{function UIt(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}_Ne.exports=UIt});var wNe=ne((BNn,bNe)=>{var QIt=gNe(),ezt=xNe(),tzt=Nee();function nzt(e){var t=ezt(e);return t.length==1&&t[0][2]?tzt(t[0][0],t[0][1]):function(n){return n===e||QIt(n,e,t)}}bNe.exports=nzt});var qy=ne((NNn,PNe)=>{var rzt=pv(),izt=sf(),ozt="[object Symbol]";function szt(e){return typeof e=="symbol"||izt(e)&&rzt(e)==ozt}PNe.exports=szt});var DI=ne((GNn,kNe)=>{var azt=zs(),lzt=qy(),uzt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,czt=/^\w*$/;function dzt(e,t){if(azt(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||lzt(e)?!0:czt.test(e)||!uzt.test(e)||t!=null&&e in Object(t)}kNe.exports=dzt});var SNe=ne((FNn,CNe)=>{var ANe=PI(),pzt="Expected a function";function Gee(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(pzt);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Gee.Cache||ANe),n}Gee.Cache=ANe;CNe.exports=Gee});var ENe=ne((INn,ONe)=>{var fzt=SNe(),hzt=500;function mzt(e){var t=fzt(e,function(r){return n.size===hzt&&n.clear(),r}),n=t.cache;return t}ONe.exports=mzt});var BNe=ne((zNn,MNe)=>{var gzt=ENe(),vzt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yzt=/\\(\\)?/g,xzt=gzt(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(vzt,function(n,r,i,o){t.push(i?o.replace(yzt,"$1"):r||n)}),t});MNe.exports=xzt});var Qk=ne((TNn,NNe)=>{function _zt(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}NNe.exports=_zt});var DNe=ne((DNn,TNe)=>{var GNe=jy(),bzt=Qk(),wzt=zs(),Pzt=qy(),kzt=1/0,FNe=GNe?GNe.prototype:void 0,INe=FNe?FNe.toString:void 0;function zNe(e){if(typeof e=="string")return e;if(wzt(e))return bzt(e,zNe)+"";if(Pzt(e))return INe?INe.call(e):"";var t=e+"";return t=="0"&&1/e==-kzt?"-0":t}TNe.exports=zNe});var Fee=ne((RNn,RNe)=>{var Azt=DNe();function Czt(e){return e==null?"":Azt(e)}RNe.exports=Czt});var e9=ne((LNn,LNe)=>{var Szt=zs(),Ozt=DI(),Ezt=BNe(),Mzt=Fee();function Bzt(e,t){return Szt(e)?e:Ozt(e,t)?[e]:Ezt(Mzt(e))}LNe.exports=Bzt});var y5=ne((VNn,VNe)=>{var Nzt=qy(),Gzt=1/0;function Fzt(e){if(typeof e=="string"||Nzt(e))return e;var t=e+"";return t=="0"&&1/e==-Gzt?"-0":t}VNe.exports=Fzt});var t9=ne((JNn,JNe)=>{var Izt=e9(),zzt=y5();function Tzt(e,t){t=Izt(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[zzt(t[n++])];return n&&n==r?e:void 0}JNe.exports=Tzt});var HNe=ne((jNn,jNe)=>{var Dzt=t9();function Rzt(e,t,n){var r=e==null?void 0:Dzt(e,t);return r===void 0?n:r}jNe.exports=Rzt});var XNe=ne((HNn,WNe)=>{function Lzt(e,t){return e!=null&&t in Object(e)}WNe.exports=Lzt});var Iee=ne((WNn,qNe)=>{var Vzt=e9(),Jzt=p5(),jzt=zs(),Hzt=Wk(),Wzt=AI(),Xzt=y5();function qzt(e,t,n){t=Vzt(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var s=Xzt(t[r]);if(!(o=e!=null&&n(e,s)))break;e=e[s]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&Wzt(i)&&Hzt(s,i)&&(jzt(e)||Jzt(e)))}qNe.exports=qzt});var zee=ne((XNn,$Ne)=>{var $zt=XNe(),Kzt=Iee();function Yzt(e,t){return e!=null&&Kzt(e,t,$zt)}$Ne.exports=Yzt});var YNe=ne((qNn,KNe)=>{var Zzt=Mee(),Uzt=HNe(),Qzt=zee(),eTt=DI(),tTt=Bee(),nTt=Nee(),rTt=y5(),iTt=1,oTt=2;function sTt(e,t){return eTt(e)&&tTt(t)?nTt(rTt(e),t):function(n){var r=Uzt(n,e);return r===void 0&&r===t?Qzt(n,e):Zzt(t,r,iTt|oTt)}}KNe.exports=sTt});var Tee=ne(($Nn,ZNe)=>{function aTt(e){return function(t){return t?.[e]}}ZNe.exports=aTt});var QNe=ne((KNn,UNe)=>{var lTt=t9();function uTt(e){return function(t){return lTt(t,e)}}UNe.exports=uTt});var tGe=ne((YNn,eGe)=>{var cTt=Tee(),dTt=QNe(),pTt=DI(),fTt=y5();function hTt(e){return pTt(e)?cTt(fTt(e)):dTt(e)}eGe.exports=hTt});var _h=ne((ZNn,nGe)=>{var mTt=wNe(),gTt=YNe(),vTt=mv(),yTt=zs(),xTt=tGe();function _Tt(e){return typeof e=="function"?e:e==null?vTt:typeof e=="object"?yTt(e)?gTt(e[0],e[1]):mTt(e):xTt(e)}nGe.exports=_Tt});var Dee=ne((UNn,rGe)=>{var bTt=see(),wTt=TBe(),PTt=_h(),kTt=zs();function ATt(e,t){var n=kTt(e)?bTt:wTt;return n(e,PTt(t,3))}rGe.exports=ATt});var oGe=ne((QNn,iGe)=>{var CTt=Object.prototype,STt=CTt.hasOwnProperty;function OTt(e,t){return e!=null&&STt.call(e,t)}iGe.exports=OTt});var Ree=ne((eGn,sGe)=>{var ETt=oGe(),MTt=Iee();function BTt(e,t){return e!=null&&MTt(e,t,ETt)}sGe.exports=BTt});var lGe=ne((tGn,aGe)=>{var NTt=SI(),GTt=Xy(),FTt=p5(),ITt=zs(),zTt=xh(),TTt=Hy(),DTt=Kk(),RTt=m5(),LTt="[object Map]",VTt="[object Set]",JTt=Object.prototype,jTt=JTt.hasOwnProperty;function HTt(e){if(e==null)return!0;if(zTt(e)&&(ITt(e)||typeof e=="string"||typeof e.splice=="function"||TTt(e)||RTt(e)||FTt(e)))return!e.length;var t=GTt(e);if(t==LTt||t==VTt)return!e.size;if(DTt(e))return!NTt(e).length;for(var n in e)if(jTt.call(e,n))return!1;return!0}aGe.exports=HTt});var Lee=ne((nGn,uGe)=>{function WTt(e){return e===void 0}uGe.exports=WTt});var Vee=ne((rGn,cGe)=>{var XTt=Uk(),qTt=xh();function $Tt(e,t){var n=-1,r=qTt(e)?Array(e.length):[];return XTt(e,function(i,o,s){r[++n]=t(i,o,s)}),r}cGe.exports=$Tt});var Jee=ne((iGn,dGe)=>{var KTt=Qk(),YTt=_h(),ZTt=Vee(),UTt=zs();function QTt(e,t){var n=UTt(e)?KTt:ZTt;return n(e,YTt(t,3))}dGe.exports=QTt});var fGe=ne((oGn,pGe)=>{function eDt(e,t,n,r){var i=-1,o=e==null?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}pGe.exports=eDt});var mGe=ne((sGn,hGe)=>{function tDt(e,t,n,r,i){return i(e,function(o,s,a){n=r?(r=!1,o):t(n,o,s,a)}),n}hGe.exports=tDt});var jee=ne((aGn,gGe)=>{var nDt=fGe(),rDt=Uk(),iDt=_h(),oDt=mGe(),sDt=zs();function aDt(e,t,n){var r=sDt(e)?nDt:oDt,i=arguments.length<3;return r(e,iDt(t,4),n,i,rDt)}gGe.exports=aDt});var yGe=ne((lGn,vGe)=>{var lDt=pv(),uDt=zs(),cDt=sf(),dDt="[object String]";function pDt(e){return typeof e=="string"||!uDt(e)&&cDt(e)&&lDt(e)==dDt}vGe.exports=pDt});var _Ge=ne((uGn,xGe)=>{var fDt=Tee(),hDt=fDt("length");xGe.exports=hDt});var wGe=ne((cGn,bGe)=>{var mDt="\\ud800-\\udfff",gDt="\\u0300-\\u036f",vDt="\\ufe20-\\ufe2f",yDt="\\u20d0-\\u20ff",xDt=gDt+vDt+yDt,_Dt="\\ufe0e\\ufe0f",bDt="\\u200d",wDt=RegExp("["+bDt+mDt+xDt+_Dt+"]");function PDt(e){return wDt.test(e)}bGe.exports=PDt});var BGe=ne((dGn,MGe)=>{var kGe="\\ud800-\\udfff",kDt="\\u0300-\\u036f",ADt="\\ufe20-\\ufe2f",CDt="\\u20d0-\\u20ff",SDt=kDt+ADt+CDt,ODt="\\ufe0e\\ufe0f",EDt="["+kGe+"]",Hee="["+SDt+"]",Wee="\\ud83c[\\udffb-\\udfff]",MDt="(?:"+Hee+"|"+Wee+")",AGe="[^"+kGe+"]",CGe="(?:\\ud83c[\\udde6-\\uddff]){2}",SGe="[\\ud800-\\udbff][\\udc00-\\udfff]",BDt="\\u200d",OGe=MDt+"?",EGe="["+ODt+"]?",NDt="(?:"+BDt+"(?:"+[AGe,CGe,SGe].join("|")+")"+EGe+OGe+")*",GDt=EGe+OGe+NDt,FDt="(?:"+[AGe+Hee+"?",Hee,CGe,SGe,EDt].join("|")+")",PGe=RegExp(Wee+"(?="+Wee+")|"+FDt+GDt,"g");function IDt(e){for(var t=PGe.lastIndex=0;PGe.test(e);)++t;return t}MGe.exports=IDt});var GGe=ne((pGn,NGe)=>{var zDt=_Ge(),TDt=wGe(),DDt=BGe();function RDt(e){return TDt(e)?DDt(e):zDt(e)}NGe.exports=RDt});var IGe=ne((fGn,FGe)=>{var LDt=SI(),VDt=Xy(),JDt=xh(),jDt=yGe(),HDt=GGe(),WDt="[object Map]",XDt="[object Set]";function qDt(e){if(e==null)return 0;if(JDt(e))return jDt(e)?HDt(e):e.length;var t=VDt(e);return t==WDt||t==XDt?e.size:LDt(e).length}FGe.exports=qDt});var TGe=ne((hGn,zGe)=>{var $Dt=kI(),KDt=xee(),YDt=FI(),ZDt=_h(),UDt=Zk(),QDt=zs(),eRt=Hy(),tRt=a5(),nRt=jc(),rRt=m5();function iRt(e,t,n){var r=QDt(e),i=r||eRt(e)||rRt(e);if(t=ZDt(t,4),n==null){var o=e&&e.constructor;i?n=r?new o:[]:nRt(e)?n=tRt(o)?KDt(UDt(e)):{}:n={}}return(i?$Dt:YDt)(e,function(s,a,l){return t(n,s,a,l)}),n}zGe.exports=iRt});var VGe=ne((mGn,LGe)=>{var DGe=jy(),oRt=p5(),sRt=zs(),RGe=DGe?DGe.isConcatSpreadable:void 0;function aRt(e){return sRt(e)||oRt(e)||!!(RGe&&e&&e[RGe])}LGe.exports=aRt});var RI=ne((gGn,jGe)=>{var lRt=EI(),uRt=VGe();function JGe(e,t,n,r,i){var o=-1,s=e.length;for(n||(n=uRt),i||(i=[]);++o<s;){var a=e[o];t>0&&n(a)?t>1?JGe(a,t-1,n,r,i):lRt(i,a):r||(i[i.length]=a)}return i}jGe.exports=JGe});var WGe=ne((vGn,HGe)=>{function cRt(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)}HGe.exports=cRt});var Xee=ne((yGn,qGe)=>{var dRt=WGe(),XGe=Math.max;function pRt(e,t,n){return t=XGe(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=XGe(r.length-t,0),s=Array(o);++i<o;)s[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=n(s),dRt(e,this,a)}}qGe.exports=pRt});var YGe=ne((xGn,KGe)=>{var fRt=NI(),$Ge=eee(),hRt=mv(),mRt=$Ge?function(e,t){return $Ge(e,"toString",{configurable:!0,enumerable:!1,value:fRt(t),writable:!0})}:hRt;KGe.exports=mRt});var UGe=ne((_Gn,ZGe)=>{var gRt=800,vRt=16,yRt=Date.now;function xRt(e){var t=0,n=0;return function(){var r=yRt(),i=vRt-(r-n);if(n=r,i>0){if(++t>=gRt)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}ZGe.exports=xRt});var qee=ne((bGn,QGe)=>{var _Rt=YGe(),bRt=UGe(),wRt=bRt(_Rt);QGe.exports=wRt});var n9=ne((wGn,eFe)=>{var PRt=mv(),kRt=Xee(),ARt=qee();function CRt(e,t){return ARt(kRt(e,t,PRt),e+"")}eFe.exports=CRt});var $ee=ne((PGn,tFe)=>{function SRt(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}tFe.exports=SRt});var rFe=ne((kGn,nFe)=>{function ORt(e){return e!==e}nFe.exports=ORt});var oFe=ne((AGn,iFe)=>{function ERt(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}iFe.exports=ERt});var aFe=ne((CGn,sFe)=>{var MRt=$ee(),BRt=rFe(),NRt=oFe();function GRt(e,t,n){return t===t?NRt(e,t,n):MRt(e,BRt,n)}sFe.exports=GRt});var uFe=ne((SGn,lFe)=>{var FRt=aFe();function IRt(e,t){var n=e==null?0:e.length;return!!n&&FRt(e,t,0)>-1}lFe.exports=IRt});var dFe=ne((OGn,cFe)=>{function zRt(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}cFe.exports=zRt});var fFe=ne((EGn,pFe)=>{function TRt(){}pFe.exports=TRt});var mFe=ne((MGn,hFe)=>{var Kee=dee(),DRt=fFe(),RRt=zI(),LRt=1/0,VRt=Kee&&1/RRt(new Kee([,-0]))[1]==LRt?function(e){return new Kee(e)}:DRt;hFe.exports=VRt});var vFe=ne((BGn,gFe)=>{var JRt=Aee(),jRt=uFe(),HRt=dFe(),WRt=Cee(),XRt=mFe(),qRt=zI(),$Rt=200;function KRt(e,t,n){var r=-1,i=jRt,o=e.length,s=!0,a=[],l=a;if(n)s=!1,i=HRt;else if(o>=$Rt){var u=t?null:XRt(e);if(u)return qRt(u);s=!1,i=WRt,l=new JRt}else l=t?[]:a;e:for(;++r<o;){var c=e[r],f=t?t(c):c;if(c=n||c!==0?c:0,s&&f===f){for(var d=l.length;d--;)if(l[d]===f)continue e;t&&l.push(f),a.push(c)}else i(l,f,n)||(l!==a&&l.push(f),a.push(c))}return a}gFe.exports=KRt});var Yee=ne((NGn,yFe)=>{var YRt=xh(),ZRt=sf();function URt(e){return ZRt(e)&&YRt(e)}yFe.exports=URt});var _Fe=ne((GGn,xFe)=>{var QRt=RI(),eLt=n9(),tLt=vFe(),nLt=Yee(),rLt=eLt(function(e){return tLt(QRt(e,1,nLt,!0))});xFe.exports=rLt});var wFe=ne((FGn,bFe)=>{var iLt=Qk();function oLt(e,t){return iLt(t,function(n){return e[n]})}bFe.exports=oLt});var Zee=ne((IGn,PFe)=>{var sLt=wFe(),aLt=gm();function lLt(e){return e==null?[]:sLt(e,aLt(e))}PFe.exports=lLt});var Hc=ne((zGn,kFe)=>{var LI;if(typeof mp=="function")try{LI={clone:PBe(),constant:NI(),each:kee(),filter:Dee(),has:Ree(),isArray:zs(),isEmpty:lGe(),isFunction:a5(),isUndefined:Lee(),keys:gm(),map:Jee(),reduce:jee(),size:IGe(),transform:TGe(),union:_Fe(),values:Zee()}}catch{}LI||(LI=window._);kFe.exports=LI});var VI=ne((DGn,OFe)=>{"use strict";var tr=Hc();OFe.exports=Ir;var uLt="\0",$y="\0",AFe="";function Ir(e){this._isDirected=tr.has(e,"directed")?e.directed:!0,this._isMultigraph=tr.has(e,"multigraph")?e.multigraph:!1,this._isCompound=tr.has(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=tr.constant(void 0),this._defaultEdgeLabelFn=tr.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[$y]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}Ir.prototype._nodeCount=0;Ir.prototype._edgeCount=0;Ir.prototype.isDirected=function(){return this._isDirected};Ir.prototype.isMultigraph=function(){return this._isMultigraph};Ir.prototype.isCompound=function(){return this._isCompound};Ir.prototype.setGraph=function(e){return this._label=e,this};Ir.prototype.graph=function(){return this._label};Ir.prototype.setDefaultNodeLabel=function(e){return tr.isFunction(e)||(e=tr.constant(e)),this._defaultNodeLabelFn=e,this};Ir.prototype.nodeCount=function(){return this._nodeCount};Ir.prototype.nodes=function(){return tr.keys(this._nodes)};Ir.prototype.sources=function(){var e=this;return tr.filter(this.nodes(),function(t){return tr.isEmpty(e._in[t])})};Ir.prototype.sinks=function(){var e=this;return tr.filter(this.nodes(),function(t){return tr.isEmpty(e._out[t])})};Ir.prototype.setNodes=function(e,t){var n=arguments,r=this;return tr.each(e,function(i){n.length>1?r.setNode(i,t):r.setNode(i)}),this};Ir.prototype.setNode=function(e,t){return tr.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=$y,this._children[e]={},this._children[$y][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)};Ir.prototype.node=function(e){return this._nodes[e]};Ir.prototype.hasNode=function(e){return tr.has(this._nodes,e)};Ir.prototype.removeNode=function(e){var t=this;if(tr.has(this._nodes,e)){var n=function(r){t.removeEdge(t._edgeObjs[r])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],tr.each(this.children(e),function(r){t.setParent(r)}),delete this._children[e]),tr.each(tr.keys(this._in[e]),n),delete this._in[e],delete this._preds[e],tr.each(tr.keys(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this};Ir.prototype.setParent=function(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(tr.isUndefined(t))t=$y;else{t+="";for(var n=t;!tr.isUndefined(n);n=this.parent(n))if(n===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this};Ir.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]};Ir.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if(t!==$y)return t}};Ir.prototype.children=function(e){if(tr.isUndefined(e)&&(e=$y),this._isCompound){var t=this._children[e];if(t)return tr.keys(t)}else{if(e===$y)return this.nodes();if(this.hasNode(e))return[]}};Ir.prototype.predecessors=function(e){var t=this._preds[e];if(t)return tr.keys(t)};Ir.prototype.successors=function(e){var t=this._sucs[e];if(t)return tr.keys(t)};Ir.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return tr.union(t,this.successors(e))};Ir.prototype.isLeaf=function(e){var t;return this.isDirected()?t=this.successors(e):t=this.neighbors(e),t.length===0};Ir.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;tr.each(this._nodes,function(o,s){e(s)&&t.setNode(s,o)}),tr.each(this._edgeObjs,function(o){t.hasNode(o.v)&&t.hasNode(o.w)&&t.setEdge(o,n.edge(o))});var r={};function i(o){var s=n.parent(o);return s===void 0||t.hasNode(s)?(r[o]=s,s):s in r?r[s]:i(s)}return this._isCompound&&tr.each(t.nodes(),function(o){t.setParent(o,i(o))}),t};Ir.prototype.setDefaultEdgeLabel=function(e){return tr.isFunction(e)||(e=tr.constant(e)),this._defaultEdgeLabelFn=e,this};Ir.prototype.edgeCount=function(){return this._edgeCount};Ir.prototype.edges=function(){return tr.values(this._edgeObjs)};Ir.prototype.setPath=function(e,t){var n=this,r=arguments;return tr.reduce(e,function(i,o){return r.length>1?n.setEdge(i,o,t):n.setEdge(i,o),o}),this};Ir.prototype.setEdge=function(){var e,t,n,r,i=!1,o=arguments[0];typeof o=="object"&&o!==null&&"v"in o?(e=o.v,t=o.w,n=o.name,arguments.length===2&&(r=arguments[1],i=!0)):(e=o,t=arguments[1],n=arguments[3],arguments.length>2&&(r=arguments[2],i=!0)),e=""+e,t=""+t,tr.isUndefined(n)||(n=""+n);var s=r9(this._isDirected,e,t,n);if(tr.has(this._edgeLabels,s))return i&&(this._edgeLabels[s]=r),this;if(!tr.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[s]=i?r:this._defaultEdgeLabelFn(e,t,n);var a=cLt(this._isDirected,e,t,n);return e=a.v,t=a.w,Object.freeze(a),this._edgeObjs[s]=a,CFe(this._preds[t],e),CFe(this._sucs[e],t),this._in[t][s]=a,this._out[e][s]=a,this._edgeCount++,this};Ir.prototype.edge=function(e,t,n){var r=arguments.length===1?Uee(this._isDirected,arguments[0]):r9(this._isDirected,e,t,n);return this._edgeLabels[r]};Ir.prototype.hasEdge=function(e,t,n){var r=arguments.length===1?Uee(this._isDirected,arguments[0]):r9(this._isDirected,e,t,n);return tr.has(this._edgeLabels,r)};Ir.prototype.removeEdge=function(e,t,n){var r=arguments.length===1?Uee(this._isDirected,arguments[0]):r9(this._isDirected,e,t,n),i=this._edgeObjs[r];return i&&(e=i.v,t=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],SFe(this._preds[t],e),SFe(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this};Ir.prototype.inEdges=function(e,t){var n=this._in[e];if(n){var r=tr.values(n);return t?tr.filter(r,function(i){return i.v===t}):r}};Ir.prototype.outEdges=function(e,t){var n=this._out[e];if(n){var r=tr.values(n);return t?tr.filter(r,function(i){return i.w===t}):r}};Ir.prototype.nodeEdges=function(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))};function CFe(e,t){e[t]?e[t]++:e[t]=1}function SFe(e,t){--e[t]||delete e[t]}function r9(e,t,n,r){var i=""+t,o=""+n;if(!e&&i>o){var s=i;i=o,o=s}return i+AFe+o+AFe+(tr.isUndefined(r)?uLt:r)}function cLt(e,t,n,r){var i=""+t,o=""+n;if(!e&&i>o){var s=i;i=o,o=s}var a={v:i,w:o};return r&&(a.name=r),a}function Uee(e,t){return r9(e,t.v,t.w,t.name)}});var MFe=ne((RGn,EFe)=>{EFe.exports="2.1.8"});var NFe=ne((LGn,BFe)=>{BFe.exports={Graph:VI(),version:MFe()}});var FFe=ne((VGn,GFe)=>{var bh=Hc(),dLt=VI();GFe.exports={write:pLt,read:mLt};function pLt(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:fLt(e),edges:hLt(e)};return bh.isUndefined(e.graph())||(t.value=bh.clone(e.graph())),t}function fLt(e){return bh.map(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),i={v:t};return bh.isUndefined(n)||(i.value=n),bh.isUndefined(r)||(i.parent=r),i})}function hLt(e){return bh.map(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return bh.isUndefined(t.name)||(r.name=t.name),bh.isUndefined(n)||(r.value=n),r})}function mLt(e){var t=new dLt(e.options).setGraph(e.value);return bh.each(e.nodes,function(n){t.setNode(n.v,n.value),n.parent&&t.setParent(n.v,n.parent)}),bh.each(e.edges,function(n){t.setEdge({v:n.v,w:n.w,name:n.name},n.value)}),t}});var zFe=ne((JGn,IFe)=>{var JI=Hc();IFe.exports=gLt;function gLt(e){var t={},n=[],r;function i(o){JI.has(t,o)||(t[o]=!0,r.push(o),JI.each(e.successors(o),i),JI.each(e.predecessors(o),i))}return JI.each(e.nodes(),function(o){r=[],i(o),r.length&&n.push(r)}),n}});var Qee=ne((jGn,DFe)=>{var TFe=Hc();DFe.exports=Kd;function Kd(){this._arr=[],this._keyIndices={}}Kd.prototype.size=function(){return this._arr.length};Kd.prototype.keys=function(){return this._arr.map(function(e){return e.key})};Kd.prototype.has=function(e){return TFe.has(this._keyIndices,e)};Kd.prototype.priority=function(e){var t=this._keyIndices[e];if(t!==void 0)return this._arr[t].priority};Kd.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key};Kd.prototype.add=function(e,t){var n=this._keyIndices;if(e=String(e),!TFe.has(n,e)){var r=this._arr,i=r.length;return n[e]=i,r.push({key:e,priority:t}),this._decrease(i),!0}return!1};Kd.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key};Kd.prototype.decrease=function(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[n].priority+" New: "+t);this._arr[n].priority=t,this._decrease(n)};Kd.prototype._heapify=function(e){var t=this._arr,n=2*e,r=n+1,i=e;n<t.length&&(i=t[n].priority<t[i].priority?n:i,r<t.length&&(i=t[r].priority<t[i].priority?r:i),i!==e&&(this._swap(e,i),this._heapify(i)))};Kd.prototype._decrease=function(e){for(var t=this._arr,n=t[e].priority,r;e!==0&&(r=e>>1,!(t[r].priority<n));)this._swap(e,r),e=r};Kd.prototype._swap=function(e,t){var n=this._arr,r=this._keyIndices,i=n[e],o=n[t];n[e]=o,n[t]=i,r[o.key]=e,r[i.key]=t}});var ete=ne((HGn,RFe)=>{var vLt=Hc(),yLt=Qee();RFe.exports=_Lt;var xLt=vLt.constant(1);function _Lt(e,t,n,r){return bLt(e,String(t),n||xLt,r||function(i){return e.outEdges(i)})}function bLt(e,t,n,r){var i={},o=new yLt,s,a,l=function(u){var c=u.v!==s?u.v:u.w,f=i[c],d=n(u),h=a.distance+d;if(d<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+u+" Weight: "+d);h<f.distance&&(f.distance=h,f.predecessor=s,o.decrease(c,h))};for(e.nodes().forEach(function(u){var c=u===t?0:Number.POSITIVE_INFINITY;i[u]={distance:c},o.add(u,c)});o.size()>0&&(s=o.removeMin(),a=i[s],a.distance!==Number.POSITIVE_INFINITY);)r(s).forEach(l);return i}});var VFe=ne((WGn,LFe)=>{var wLt=ete(),PLt=Hc();LFe.exports=kLt;function kLt(e,t,n){return PLt.transform(e.nodes(),function(r,i){r[i]=wLt(e,i,t,n)},{})}});var tte=ne((XGn,jFe)=>{var JFe=Hc();jFe.exports=ALt;function ALt(e){var t=0,n=[],r={},i=[];function o(s){var a=r[s]={onStack:!0,lowlink:t,index:t++};if(n.push(s),e.successors(s).forEach(function(c){JFe.has(r,c)?r[c].onStack&&(a.lowlink=Math.min(a.lowlink,r[c].index)):(o(c),a.lowlink=Math.min(a.lowlink,r[c].lowlink))}),a.lowlink===a.index){var l=[],u;do u=n.pop(),r[u].onStack=!1,l.push(u);while(s!==u);i.push(l)}}return e.nodes().forEach(function(s){JFe.has(r,s)||o(s)}),i}});var WFe=ne((qGn,HFe)=>{var CLt=Hc(),SLt=tte();HFe.exports=OLt;function OLt(e){return CLt.filter(SLt(e),function(t){return t.length>1||t.length===1&&e.hasEdge(t[0],t[0])})}});var qFe=ne(($Gn,XFe)=>{var ELt=Hc();XFe.exports=BLt;var MLt=ELt.constant(1);function BLt(e,t,n){return NLt(e,t||MLt,n||function(r){return e.outEdges(r)})}function NLt(e,t,n){var r={},i=e.nodes();return i.forEach(function(o){r[o]={},r[o][o]={distance:0},i.forEach(function(s){o!==s&&(r[o][s]={distance:Number.POSITIVE_INFINITY})}),n(o).forEach(function(s){var a=s.v===o?s.w:s.v,l=t(s);r[o][a]={distance:l,predecessor:o}})}),i.forEach(function(o){var s=r[o];i.forEach(function(a){var l=r[a];i.forEach(function(u){var c=l[o],f=s[u],d=l[u],h=c.distance+f.distance;h<d.distance&&(d.distance=h,d.predecessor=f.predecessor)})})}),r}});var nte=ne((KGn,KFe)=>{var i9=Hc();KFe.exports=$Fe;$Fe.CycleException=jI;function $Fe(e){var t={},n={},r=[];function i(o){if(i9.has(n,o))throw new jI;i9.has(t,o)||(n[o]=!0,t[o]=!0,i9.each(e.predecessors(o),i),delete n[o],r.push(o))}if(i9.each(e.sinks(),i),i9.size(t)!==e.nodeCount())throw new jI;return r}function jI(){}jI.prototype=new Error});var UFe=ne((YGn,ZFe)=>{var YFe=nte();ZFe.exports=GLt;function GLt(e){try{YFe(e)}catch(t){if(t instanceof YFe.CycleException)return!1;throw t}return!0}});var rte=ne((ZGn,eIe)=>{var HI=Hc();eIe.exports=FLt;function FLt(e,t,n){HI.isArray(t)||(t=[t]);var r=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],o={};return HI.each(t,function(s){if(!e.hasNode(s))throw new Error("Graph does not have node: "+s);QFe(e,s,n==="post",o,r,i)}),i}function QFe(e,t,n,r,i,o){HI.has(r,t)||(r[t]=!0,n||o.push(t),HI.each(i(t),function(s){QFe(e,s,n,r,i,o)}),n&&o.push(t))}});var nIe=ne((UGn,tIe)=>{var ILt=rte();tIe.exports=zLt;function zLt(e,t){return ILt(e,t,"post")}});var iIe=ne((QGn,rIe)=>{var TLt=rte();rIe.exports=DLt;function DLt(e,t){return TLt(e,t,"pre")}});var aIe=ne((eFn,sIe)=>{var oIe=Hc(),RLt=VI(),LLt=Qee();sIe.exports=VLt;function VLt(e,t){var n=new RLt,r={},i=new LLt,o;function s(l){var u=l.v===o?l.w:l.v,c=i.priority(u);if(c!==void 0){var f=t(l);f<c&&(r[u]=o,i.decrease(u,f))}}if(e.nodeCount()===0)return n;oIe.each(e.nodes(),function(l){i.add(l,Number.POSITIVE_INFINITY),n.setNode(l)}),i.decrease(e.nodes()[0],0);for(var a=!1;i.size()>0;){if(o=i.removeMin(),oIe.has(r,o))n.setEdge(o,r[o]);else{if(a)throw new Error("Input graph is not connected: "+e);a=!0}e.nodeEdges(o).forEach(s)}return n}});var uIe=ne((tFn,lIe)=>{lIe.exports={components:zFe(),dijkstra:ete(),dijkstraAll:VFe(),findCycles:WFe(),floydWarshall:qFe(),isAcyclic:UFe(),postorder:nIe(),preorder:iIe(),prim:aIe(),tarjan:tte(),topsort:nte()}});var pIe=ne((nFn,dIe)=>{var cIe=NFe();dIe.exports={Graph:cIe.Graph,json:FFe(),alg:uIe(),version:cIe.version}});var Yd=ne((rFn,fIe)=>{var WI;if(typeof mp=="function")try{WI=pIe()}catch{}WI||(WI=window.graphlib);fIe.exports=WI});var mIe=ne((oFn,hIe)=>{var JLt=bee(),jLt=1,HLt=4;function WLt(e){return JLt(e,jLt|HLt)}hIe.exports=WLt});var o9=ne((sFn,gIe)=>{var XLt=Jy(),qLt=xh(),$Lt=Wk(),KLt=jc();function YLt(e,t,n){if(!KLt(n))return!1;var r=typeof t;return(r=="number"?qLt(n)&&$Lt(t,n.length):r=="string"&&t in n)?XLt(n[t],e):!1}gIe.exports=YLt});var xIe=ne((aFn,yIe)=>{var ZLt=n9(),ULt=Jy(),QLt=o9(),eVt=hv(),vIe=Object.prototype,tVt=vIe.hasOwnProperty,nVt=ZLt(function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&QLt(t[0],t[1],i)&&(r=1);++n<r;)for(var o=t[n],s=eVt(o),a=-1,l=s.length;++a<l;){var u=s[a],c=e[u];(c===void 0||ULt(c,vIe[u])&&!tVt.call(e,u))&&(e[u]=o[u])}return e});yIe.exports=nVt});var bIe=ne((lFn,_Ie)=>{var rVt=_h(),iVt=xh(),oVt=gm();function sVt(e){return function(t,n,r){var i=Object(t);if(!iVt(t)){var o=rVt(n,3);t=oVt(t),n=function(a){return o(i[a],a,i)}}var s=e(t,n,r);return s>-1?i[o?t[s]:s]:void 0}}_Ie.exports=sVt});var PIe=ne((uFn,wIe)=>{var aVt=/\s/;function lVt(e){for(var t=e.length;t--&&aVt.test(e.charAt(t)););return t}wIe.exports=lVt});var AIe=ne((cFn,kIe)=>{var uVt=PIe(),cVt=/^\s+/;function dVt(e){return e&&e.slice(0,uVt(e)+1).replace(cVt,"")}kIe.exports=dVt});var EIe=ne((dFn,OIe)=>{var pVt=AIe(),CIe=jc(),fVt=qy(),SIe=0/0,hVt=/^[-+]0x[0-9a-f]+$/i,mVt=/^0b[01]+$/i,gVt=/^0o[0-7]+$/i,vVt=parseInt;function yVt(e){if(typeof e=="number")return e;if(fVt(e))return SIe;if(CIe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=CIe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pVt(e);var n=mVt.test(e);return n||gVt.test(e)?vVt(e.slice(2),n?2:8):hVt.test(e)?SIe:+e}OIe.exports=yVt});var ite=ne((pFn,BIe)=>{var xVt=EIe(),MIe=1/0,_Vt=17976931348623157e292;function bVt(e){if(!e)return e===0?e:0;if(e=xVt(e),e===MIe||e===-MIe){var t=e<0?-1:1;return t*_Vt}return e===e?e:0}BIe.exports=bVt});var GIe=ne((fFn,NIe)=>{var wVt=ite();function PVt(e){var t=wVt(e),n=t%1;return t===t?n?t-n:t:0}NIe.exports=PVt});var IIe=ne((hFn,FIe)=>{var kVt=$ee(),AVt=_h(),CVt=GIe(),SVt=Math.max;function OVt(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:CVt(n);return i<0&&(i=SVt(r+i,0)),kVt(e,AVt(t,3),i)}FIe.exports=OVt});var TIe=ne((mFn,zIe)=>{var EVt=bIe(),MVt=IIe(),BVt=EVt(MVt);zIe.exports=BVt});var ote=ne((gFn,DIe)=>{var NVt=RI();function GVt(e){var t=e==null?0:e.length;return t?NVt(e,1):[]}DIe.exports=GVt});var LIe=ne((vFn,RIe)=>{var FVt=GI(),IVt=wee(),zVt=hv();function TVt(e,t){return e==null?e:FVt(e,IVt(t),zVt)}RIe.exports=TVt});var JIe=ne((yFn,VIe)=>{function DVt(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}VIe.exports=DVt});var HIe=ne((xFn,jIe)=>{var RVt=Jk(),LVt=FI(),VVt=_h();function JVt(e,t){var n={};return t=VVt(t,3),LVt(e,function(r,i,o){RVt(n,i,t(r,i,o))}),n}jIe.exports=JVt});var XI=ne((_Fn,WIe)=>{var jVt=qy();function HVt(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],s=t(o);if(s!=null&&(a===void 0?s===s&&!jVt(s):n(s,a)))var a=s,l=o}return l}WIe.exports=HVt});var qIe=ne((bFn,XIe)=>{function WVt(e,t){return e>t}XIe.exports=WVt});var KIe=ne((wFn,$Ie)=>{var XVt=XI(),qVt=qIe(),$Vt=mv();function KVt(e){return e&&e.length?XVt(e,$Vt,qVt):void 0}$Ie.exports=KVt});var ste=ne((PFn,YIe)=>{var YVt=Jk(),ZVt=Jy();function UVt(e,t,n){(n!==void 0&&!ZVt(e[t],n)||n===void 0&&!(t in e))&&YVt(e,t,n)}YIe.exports=UVt});var QIe=ne((kFn,UIe)=>{var QVt=pv(),eJt=Zk(),tJt=sf(),nJt="[object Object]",rJt=Function.prototype,iJt=Object.prototype,ZIe=rJt.toString,oJt=iJt.hasOwnProperty,sJt=ZIe.call(Object);function aJt(e){if(!tJt(e)||QVt(e)!=nJt)return!1;var t=eJt(e);if(t===null)return!0;var n=oJt.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&ZIe.call(n)==sJt}UIe.exports=aJt});var ate=ne((AFn,eze)=>{function lJt(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}eze.exports=lJt});var nze=ne((CFn,tze)=>{var uJt=d5(),cJt=hv();function dJt(e){return uJt(e,cJt(e))}tze.exports=dJt});var lze=ne((SFn,aze)=>{var rze=ste(),pJt=iee(),fJt=yee(),hJt=oee(),mJt=_ee(),ize=p5(),oze=zs(),gJt=Yee(),vJt=Hy(),yJt=a5(),xJt=jc(),_Jt=QIe(),bJt=m5(),sze=ate(),wJt=nze();function PJt(e,t,n,r,i,o,s){var a=sze(e,n),l=sze(t,n),u=s.get(l);if(u){rze(e,n,u);return}var c=o?o(a,l,n+"",e,t,s):void 0,f=c===void 0;if(f){var d=oze(l),h=!d&&vJt(l),m=!d&&!h&&bJt(l);c=l,d||h||m?oze(a)?c=a:gJt(a)?c=hJt(a):h?(f=!1,c=pJt(l,!0)):m?(f=!1,c=fJt(l,!0)):c=[]:_Jt(l)||ize(l)?(c=a,ize(a)?c=wJt(a):(!xJt(a)||yJt(a))&&(c=mJt(l))):f=!1}f&&(s.set(l,c),i(c,l,r,o,s),s.delete(l)),rze(e,n,c)}aze.exports=PJt});var dze=ne((OFn,cze)=>{var kJt=Vk(),AJt=ste(),CJt=GI(),SJt=lze(),OJt=jc(),EJt=hv(),MJt=ate();function uze(e,t,n,r,i){e!==t&&CJt(t,function(o,s){if(i||(i=new kJt),OJt(o))SJt(e,t,s,n,uze,r,i);else{var a=r?r(MJt(e,s),o,s+"",e,t,i):void 0;a===void 0&&(a=o),AJt(e,s,a)}},EJt)}cze.exports=uze});var fze=ne((EFn,pze)=>{var BJt=n9(),NJt=o9();function GJt(e){return BJt(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,s&&NJt(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var a=n[r];a&&e(t,a,r,o)}return t})}pze.exports=GJt});var mze=ne((MFn,hze)=>{var FJt=dze(),IJt=fze(),zJt=IJt(function(e,t,n){FJt(e,t,n)});hze.exports=zJt});var lte=ne((BFn,gze)=>{function TJt(e,t){return e<t}gze.exports=TJt});var yze=ne((NFn,vze)=>{var DJt=XI(),RJt=lte(),LJt=mv();function VJt(e){return e&&e.length?DJt(e,LJt,RJt):void 0}vze.exports=VJt});var _ze=ne((GFn,xze)=>{var JJt=XI(),jJt=_h(),HJt=lte();function WJt(e,t){return e&&e.length?JJt(e,jJt(t,2),HJt):void 0}xze.exports=WJt});var wze=ne((FFn,bze)=>{var XJt=$d(),qJt=function(){return XJt.Date.now()};bze.exports=qJt});var Aze=ne((IFn,kze)=>{var $Jt=jk(),KJt=e9(),YJt=Wk(),Pze=jc(),ZJt=y5();function UJt(e,t,n,r){if(!Pze(e))return e;t=KJt(t,e);for(var i=-1,o=t.length,s=o-1,a=e;a!=null&&++i<o;){var l=ZJt(t[i]),u=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(i!=s){var c=a[l];u=r?r(c,l,a):void 0,u===void 0&&(u=Pze(c)?c:YJt(t[i+1])?[]:{})}$Jt(a,l,u),a=a[l]}return e}kze.exports=UJt});var Sze=ne((zFn,Cze)=>{var QJt=t9(),ejt=Aze(),tjt=e9();function njt(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var s=t[r],a=QJt(e,s);n(a,s)&&ejt(o,tjt(s,e),a)}return o}Cze.exports=njt});var Eze=ne((TFn,Oze)=>{var rjt=Sze(),ijt=zee();function ojt(e,t){return rjt(e,t,function(n,r){return ijt(e,r)})}Oze.exports=ojt});var Bze=ne((DFn,Mze)=>{var sjt=ote(),ajt=Xee(),ljt=qee();function ujt(e){return ljt(ajt(e,void 0,sjt),e+"")}Mze.exports=ujt});var Gze=ne((RFn,Nze)=>{var cjt=Eze(),djt=Bze(),pjt=djt(function(e,t){return e==null?{}:cjt(e,t)});Nze.exports=pjt});var Ize=ne((LFn,Fze)=>{var fjt=Math.ceil,hjt=Math.max;function mjt(e,t,n,r){for(var i=-1,o=hjt(fjt((t-e)/(n||1)),0),s=Array(o);o--;)s[r?o:++i]=e,e+=n;return s}Fze.exports=mjt});var Tze=ne((VFn,zze)=>{var gjt=Ize(),vjt=o9(),ute=ite();function yjt(e){return function(t,n,r){return r&&typeof r!="number"&&vjt(t,n,r)&&(n=r=void 0),t=ute(t),n===void 0?(n=t,t=0):n=ute(n),r=r===void 0?t<n?1:-1:ute(r),gjt(t,n,r,e)}}zze.exports=yjt});var Rze=ne((JFn,Dze)=>{var xjt=Tze(),_jt=xjt();Dze.exports=_jt});var Vze=ne((jFn,Lze)=>{function bjt(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}Lze.exports=bjt});var Hze=ne((HFn,jze)=>{var Jze=qy();function wjt(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=Jze(e),s=t!==void 0,a=t===null,l=t===t,u=Jze(t);if(!a&&!u&&!o&&e>t||o&&s&&l&&!a&&!u||r&&s&&l||!n&&l||!i)return 1;if(!r&&!o&&!u&&e<t||u&&n&&i&&!r&&!o||a&&n&&i||!s&&i||!l)return-1}return 0}jze.exports=wjt});var Xze=ne((WFn,Wze)=>{var Pjt=Hze();function kjt(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,s=i.length,a=n.length;++r<s;){var l=Pjt(i[r],o[r]);if(l){if(r>=a)return l;var u=n[r];return l*(u=="desc"?-1:1)}}return e.index-t.index}Wze.exports=kjt});var $ze=ne((XFn,qze)=>{var cte=Qk(),Ajt=t9(),Cjt=_h(),Sjt=Vee(),Ojt=Vze(),Ejt=Xk(),Mjt=Xze(),Bjt=mv(),Njt=zs();function Gjt(e,t,n){t.length?t=cte(t,function(o){return Njt(o)?function(s){return Ajt(s,o.length===1?o[0]:o)}:o}):t=[Bjt];var r=-1;t=cte(t,Ejt(Cjt));var i=Sjt(e,function(o,s,a){var l=cte(t,function(u){return u(o)});return{criteria:l,index:++r,value:o}});return Ojt(i,function(o,s){return Mjt(o,s,n)})}qze.exports=Gjt});var Zze=ne((qFn,Yze)=>{var Fjt=RI(),Ijt=$ze(),zjt=n9(),Kze=o9(),Tjt=zjt(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Kze(e,t[0],t[1])?t=[]:n>2&&Kze(t[0],t[1],t[2])&&(t=[t[0]]),Ijt(e,Fjt(t,1),[])});Yze.exports=Tjt});var Qze=ne(($Fn,Uze)=>{var Djt=Fee(),Rjt=0;function Ljt(e){var t=++Rjt;return Djt(e)+t}Uze.exports=Ljt});var tTe=ne((KFn,eTe)=>{function Vjt(e,t,n){for(var r=-1,i=e.length,o=t.length,s={};++r<i;){var a=r<o?t[r]:void 0;n(s,e[r],a)}return s}eTe.exports=Vjt});var rTe=ne((YFn,nTe)=>{var Jjt=jk(),jjt=tTe();function Hjt(e,t){return jjt(e||[],t||[],Jjt)}nTe.exports=Hjt});var jo=ne((ZFn,iTe)=>{var qI;if(typeof mp=="function")try{qI={cloneDeep:mIe(),constant:NI(),defaults:xIe(),each:kee(),filter:Dee(),find:TIe(),flatten:ote(),forEach:Pee(),forIn:LIe(),has:Ree(),isUndefined:Lee(),last:JIe(),map:Jee(),mapValues:HIe(),max:KIe(),merge:mze(),min:yze(),minBy:_ze(),now:wze(),pick:Gze(),range:Rze(),reduce:jee(),sortBy:Zze(),uniqueId:Qze(),values:Zee(),zipObject:rTe()}}catch{}qI||(qI=window._);iTe.exports=qI});var aTe=ne((QFn,sTe)=>{sTe.exports=$I;function $I(){var e={};e._next=e._prev=e,this._sentinel=e}$I.prototype.dequeue=function(){var e=this._sentinel,t=e._prev;if(t!==e)return oTe(t),t};$I.prototype.enqueue=function(e){var t=this._sentinel;e._prev&&e._next&&oTe(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t};$I.prototype.toString=function(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,Wjt)),n=n._prev;return"["+e.join(", ")+"]"};function oTe(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function Wjt(e,t){if(e!=="_next"&&e!=="_prev")return t}});var uTe=ne((eIn,lTe)=>{var vm=jo(),Xjt=Yd().Graph,qjt=aTe();lTe.exports=Kjt;var $jt=vm.constant(1);function Kjt(e,t){if(e.nodeCount()<=1)return[];var n=Zjt(e,t||$jt),r=Yjt(n.graph,n.buckets,n.zeroIdx);return vm.flatten(vm.map(r,function(i){return e.outEdges(i.v,i.w)}),!0)}function Yjt(e,t,n){for(var r=[],i=t[t.length-1],o=t[0],s;e.nodeCount();){for(;s=o.dequeue();)dte(e,t,n,s);for(;s=i.dequeue();)dte(e,t,n,s);if(e.nodeCount()){for(var a=t.length-2;a>0;--a)if(s=t[a].dequeue(),s){r=r.concat(dte(e,t,n,s,!0));break}}}return r}function dte(e,t,n,r,i){var o=i?[]:void 0;return vm.forEach(e.inEdges(r.v),function(s){var a=e.edge(s),l=e.node(s.v);i&&o.push({v:s.v,w:s.w}),l.out-=a,pte(t,n,l)}),vm.forEach(e.outEdges(r.v),function(s){var a=e.edge(s),l=s.w,u=e.node(l);u.in-=a,pte(t,n,u)}),e.removeNode(r.v),o}function Zjt(e,t){var n=new Xjt,r=0,i=0;vm.forEach(e.nodes(),function(a){n.setNode(a,{v:a,in:0,out:0})}),vm.forEach(e.edges(),function(a){var l=n.edge(a.v,a.w)||0,u=t(a),c=l+u;n.setEdge(a.v,a.w,c),i=Math.max(i,n.node(a.v).out+=u),r=Math.max(r,n.node(a.w).in+=u)});var o=vm.range(i+r+3).map(function(){return new qjt}),s=r+1;return vm.forEach(n.nodes(),function(a){pte(o,s,n.node(a))}),{graph:n,buckets:o,zeroIdx:s}}function pte(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}});var dTe=ne((tIn,cTe)=>{"use strict";var Ky=jo(),Ujt=uTe();cTe.exports={run:Qjt,undo:tHt};function Qjt(e){var t=e.graph().acyclicer==="greedy"?Ujt(e,n(e)):eHt(e);Ky.forEach(t,function(r){var i=e.edge(r);e.removeEdge(r),i.forwardName=r.name,i.reversed=!0,e.setEdge(r.w,r.v,i,Ky.uniqueId("rev"))});function n(r){return function(i){return r.edge(i).weight}}}function eHt(e){var t=[],n={},r={};function i(o){Ky.has(r,o)||(r[o]=!0,n[o]=!0,Ky.forEach(e.outEdges(o),function(s){Ky.has(n,s.w)?t.push(s):i(s.w)}),delete n[o])}return Ky.forEach(e.nodes(),i),t}function tHt(e){Ky.forEach(e.edges(),function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}})}});var yu=ne((nIn,mTe)=>{"use strict";var Ri=jo(),pTe=Yd().Graph;mTe.exports={addDummyNode:fTe,simplify:nHt,asNonCompoundGraph:rHt,successorWeights:iHt,predecessorWeights:oHt,intersectRect:sHt,buildLayerMatrix:aHt,normalizeRanks:lHt,removeEmptyRanks:uHt,addBorderNode:cHt,maxRank:hTe,partition:dHt,time:pHt,notime:fHt};function fTe(e,t,n,r){var i;do i=Ri.uniqueId(r);while(e.hasNode(i));return n.dummy=t,e.setNode(i,n),i}function nHt(e){var t=new pTe().setGraph(e.graph());return Ri.forEach(e.nodes(),function(n){t.setNode(n,e.node(n))}),Ri.forEach(e.edges(),function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),t}function rHt(e){var t=new pTe({multigraph:e.isMultigraph()}).setGraph(e.graph());return Ri.forEach(e.nodes(),function(n){e.children(n).length||t.setNode(n,e.node(n))}),Ri.forEach(e.edges(),function(n){t.setEdge(n,e.edge(n))}),t}function iHt(e){var t=Ri.map(e.nodes(),function(n){var r={};return Ri.forEach(e.outEdges(n),function(i){r[i.w]=(r[i.w]||0)+e.edge(i).weight}),r});return Ri.zipObject(e.nodes(),t)}function oHt(e){var t=Ri.map(e.nodes(),function(n){var r={};return Ri.forEach(e.inEdges(n),function(i){r[i.v]=(r[i.v]||0)+e.edge(i).weight}),r});return Ri.zipObject(e.nodes(),t)}function sHt(e,t){var n=e.x,r=e.y,i=t.x-n,o=t.y-r,s=e.width/2,a=e.height/2;if(!i&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var l,u;return Math.abs(o)*s>Math.abs(i)*a?(o<0&&(a=-a),l=a*i/o,u=a):(i<0&&(s=-s),l=s,u=s*o/i),{x:n+l,y:r+u}}function aHt(e){var t=Ri.map(Ri.range(hTe(e)+1),function(){return[]});return Ri.forEach(e.nodes(),function(n){var r=e.node(n),i=r.rank;Ri.isUndefined(i)||(t[i][r.order]=n)}),t}function lHt(e){var t=Ri.min(Ri.map(e.nodes(),function(n){return e.node(n).rank}));Ri.forEach(e.nodes(),function(n){var r=e.node(n);Ri.has(r,"rank")&&(r.rank-=t)})}function uHt(e){var t=Ri.min(Ri.map(e.nodes(),function(o){return e.node(o).rank})),n=[];Ri.forEach(e.nodes(),function(o){var s=e.node(o).rank-t;n[s]||(n[s]=[]),n[s].push(o)});var r=0,i=e.graph().nodeRankFactor;Ri.forEach(n,function(o,s){Ri.isUndefined(o)&&s%i!==0?--r:r&&Ri.forEach(o,function(a){e.node(a).rank+=r})})}function cHt(e,t,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),fTe(e,"border",i,t)}function hTe(e){return Ri.max(Ri.map(e.nodes(),function(t){var n=e.node(t).rank;if(!Ri.isUndefined(n))return n}))}function dHt(e,t){var n={lhs:[],rhs:[]};return Ri.forEach(e,function(r){t(r)?n.lhs.push(r):n.rhs.push(r)}),n}function pHt(e,t){var n=Ri.now();try{return t()}finally{console.log(e+" time: "+(Ri.now()-n)+"ms")}}function fHt(e,t){return t()}});var yTe=ne((rIn,vTe)=>{"use strict";var gTe=jo(),hHt=yu();vTe.exports={run:mHt,undo:vHt};function mHt(e){e.graph().dummyChains=[],gTe.forEach(e.edges(),function(t){gHt(e,t)})}function gHt(e,t){var n=t.v,r=e.node(n).rank,i=t.w,o=e.node(i).rank,s=t.name,a=e.edge(t),l=a.labelRank;if(o!==r+1){e.removeEdge(t);var u,c,f;for(f=0,++r;r<o;++f,++r)a.points=[],c={width:0,height:0,edgeLabel:a,edgeObj:t,rank:r},u=hHt.addDummyNode(e,"edge",c,"_d"),r===l&&(c.width=a.width,c.height=a.height,c.dummy="edge-label",c.labelpos=a.labelpos),e.setEdge(n,u,{weight:a.weight},s),f===0&&e.graph().dummyChains.push(u),n=u;e.setEdge(n,i,{weight:a.weight},s)}}function vHt(e){gTe.forEach(e.graph().dummyChains,function(t){var n=e.node(t),r=n.edgeLabel,i;for(e.setEdge(n.edgeObj,r);n.dummy;)i=e.successors(t)[0],e.removeNode(t),r.points.push({x:n.x,y:n.y}),n.dummy==="edge-label"&&(r.x=n.x,r.y=n.y,r.width=n.width,r.height=n.height),t=i,n=e.node(t)})}});var s9=ne((iIn,xTe)=>{"use strict";var KI=jo();xTe.exports={longestPath:yHt,slack:xHt};function yHt(e){var t={};function n(r){var i=e.node(r);if(KI.has(t,r))return i.rank;t[r]=!0;var o=KI.min(KI.map(e.outEdges(r),function(s){return n(s.w)-e.edge(s).minlen}));return(o===Number.POSITIVE_INFINITY||o===void 0||o===null)&&(o=0),i.rank=o}KI.forEach(e.sources(),n)}function xHt(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}});var fte=ne((oIn,_Te)=>{"use strict";var YI=jo(),_Ht=Yd().Graph,ZI=s9().slack;_Te.exports=bHt;function bHt(e){var t=new _Ht({directed:!1}),n=e.nodes()[0],r=e.nodeCount();t.setNode(n,{});for(var i,o;wHt(t,e)<r;)i=PHt(t,e),o=t.hasNode(i.v)?ZI(e,i):-ZI(e,i),kHt(t,e,o);return t}function wHt(e,t){function n(r){YI.forEach(t.nodeEdges(r),function(i){var o=i.v,s=r===o?i.w:o;!e.hasNode(s)&&!ZI(t,i)&&(e.setNode(s,{}),e.setEdge(r,s,{}),n(s))})}return YI.forEach(e.nodes(),n),e.nodeCount()}function PHt(e,t){return YI.minBy(t.edges(),function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return ZI(t,n)})}function kHt(e,t,n){YI.forEach(e.nodes(),function(r){t.node(r).rank+=n})}});var OTe=ne((sIn,STe)=>{"use strict";var ym=jo(),AHt=fte(),CHt=s9().slack,SHt=s9().longestPath,OHt=Yd().alg.preorder,EHt=Yd().alg.postorder,MHt=yu().simplify;STe.exports=Yy;Yy.initLowLimValues=mte;Yy.initCutValues=hte;Yy.calcCutValue=wTe;Yy.leaveEdge=kTe;Yy.enterEdge=ATe;Yy.exchangeEdges=CTe;function Yy(e){e=MHt(e),SHt(e);var t=AHt(e);mte(t),hte(t,e);for(var n,r;n=kTe(t);)r=ATe(t,e,n),CTe(t,e,n,r)}function hte(e,t){var n=EHt(e,e.nodes());n=n.slice(0,n.length-1),ym.forEach(n,function(r){BHt(e,t,r)})}function BHt(e,t,n){var r=e.node(n),i=r.parent;e.edge(n,i).cutvalue=wTe(e,t,n)}function wTe(e,t,n){var r=e.node(n),i=r.parent,o=!0,s=t.edge(n,i),a=0;return s||(o=!1,s=t.edge(i,n)),a=s.weight,ym.forEach(t.nodeEdges(n),function(l){var u=l.v===n,c=u?l.w:l.v;if(c!==i){var f=u===o,d=t.edge(l).weight;if(a+=f?d:-d,GHt(e,n,c)){var h=e.edge(n,c).cutvalue;a+=f?-h:h}}}),a}function mte(e,t){arguments.length<2&&(t=e.nodes()[0]),PTe(e,{},1,t)}function PTe(e,t,n,r,i){var o=n,s=e.node(r);return t[r]=!0,ym.forEach(e.neighbors(r),function(a){ym.has(t,a)||(n=PTe(e,t,n,a,r))}),s.low=o,s.lim=n++,i?s.parent=i:delete s.parent,n}function kTe(e){return ym.find(e.edges(),function(t){return e.edge(t).cutvalue<0})}function ATe(e,t,n){var r=n.v,i=n.w;t.hasEdge(r,i)||(r=n.w,i=n.v);var o=e.node(r),s=e.node(i),a=o,l=!1;o.lim>s.lim&&(a=s,l=!0);var u=ym.filter(t.edges(),function(c){return l===bTe(e,e.node(c.v),a)&&l!==bTe(e,e.node(c.w),a)});return ym.minBy(u,function(c){return CHt(t,c)})}function CTe(e,t,n,r){var i=n.v,o=n.w;e.removeEdge(i,o),e.setEdge(r.v,r.w,{}),mte(e),hte(e,t),NHt(e,t)}function NHt(e,t){var n=ym.find(e.nodes(),function(i){return!t.node(i).parent}),r=OHt(e,n);r=r.slice(1),ym.forEach(r,function(i){var o=e.node(i).parent,s=t.edge(i,o),a=!1;s||(s=t.edge(o,i),a=!0),t.node(i).rank=t.node(o).rank+(a?s.minlen:-s.minlen)})}function GHt(e,t,n){return e.hasEdge(t,n)}function bTe(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}});var NTe=ne((aIn,BTe)=>{"use strict";var FHt=s9(),MTe=FHt.longestPath,IHt=fte(),zHt=OTe();BTe.exports=THt;function THt(e){switch(e.graph().ranker){case"network-simplex":ETe(e);break;case"tight-tree":RHt(e);break;case"longest-path":DHt(e);break;default:ETe(e)}}var DHt=MTe;function RHt(e){MTe(e),IHt(e)}function ETe(e){zHt(e)}});var FTe=ne((lIn,GTe)=>{var gte=jo();GTe.exports=LHt;function LHt(e){var t=JHt(e);gte.forEach(e.graph().dummyChains,function(n){for(var r=e.node(n),i=r.edgeObj,o=VHt(e,t,i.v,i.w),s=o.path,a=o.lca,l=0,u=s[l],c=!0;n!==i.w;){if(r=e.node(n),c){for(;(u=s[l])!==a&&e.node(u).maxRank<r.rank;)l++;u===a&&(c=!1)}if(!c){for(;l<s.length-1&&e.node(u=s[l+1]).minRank<=r.rank;)l++;u=s[l]}e.setParent(n,u),n=e.successors(n)[0]}})}function VHt(e,t,n,r){var i=[],o=[],s=Math.min(t[n].low,t[r].low),a=Math.max(t[n].lim,t[r].lim),l,u;l=n;do l=e.parent(l),i.push(l);while(l&&(t[l].low>s||a>t[l].lim));for(u=l,l=r;(l=e.parent(l))!==u;)o.push(l);return{path:i.concat(o.reverse()),lca:u}}function JHt(e){var t={},n=0;function r(i){var o=n;gte.forEach(e.children(i),r),t[i]={low:o,lim:n++}}return gte.forEach(e.children(),r),t}});var TTe=ne((uIn,zTe)=>{var xm=jo(),vte=yu();zTe.exports={run:jHt,cleanup:XHt};function jHt(e){var t=vte.addDummyNode(e,"root",{},"_root"),n=HHt(e),r=xm.max(xm.values(n))-1,i=2*r+1;e.graph().nestingRoot=t,xm.forEach(e.edges(),function(s){e.edge(s).minlen*=i});var o=WHt(e)+1;xm.forEach(e.children(),function(s){ITe(e,t,i,o,r,n,s)}),e.graph().nodeRankFactor=i}function ITe(e,t,n,r,i,o,s){var a=e.children(s);if(!a.length){s!==t&&e.setEdge(t,s,{weight:0,minlen:n});return}var l=vte.addBorderNode(e,"_bt"),u=vte.addBorderNode(e,"_bb"),c=e.node(s);e.setParent(l,s),c.borderTop=l,e.setParent(u,s),c.borderBottom=u,xm.forEach(a,function(f){ITe(e,t,n,r,i,o,f);var d=e.node(f),h=d.borderTop?d.borderTop:f,m=d.borderBottom?d.borderBottom:f,g=d.borderTop?r:2*r,b=h!==m?1:i-o[s]+1;e.setEdge(l,h,{weight:g,minlen:b,nestingEdge:!0}),e.setEdge(m,u,{weight:g,minlen:b,nestingEdge:!0})}),e.parent(s)||e.setEdge(t,l,{weight:0,minlen:i+o[s]})}function HHt(e){var t={};function n(r,i){var o=e.children(r);o&&o.length&&xm.forEach(o,function(s){n(s,i+1)}),t[r]=i}return xm.forEach(e.children(),function(r){n(r,1)}),t}function WHt(e){return xm.reduce(e.edges(),function(t,n){return t+e.edge(n).weight},0)}function XHt(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,xm.forEach(e.edges(),function(n){var r=e.edge(n);r.nestingEdge&&e.removeEdge(n)})}});var LTe=ne((cIn,RTe)=>{var yte=jo(),qHt=yu();RTe.exports=$Ht;function $Ht(e){function t(n){var r=e.children(n),i=e.node(n);if(r.length&&yte.forEach(r,t),yte.has(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var o=i.minRank,s=i.maxRank+1;o<s;++o)DTe(e,"borderLeft","_bl",n,i,o),DTe(e,"borderRight","_br",n,i,o)}}yte.forEach(e.children(),t)}function DTe(e,t,n,r,i,o){var s={width:0,height:0,rank:o,borderType:t},a=i[t][o-1],l=qHt.addDummyNode(e,"border",s,n);i[t][o]=l,e.setParent(l,r),a&&e.setEdge(a,l,{weight:1})}});var HTe=ne((dIn,jTe)=>{"use strict";var wh=jo();jTe.exports={adjust:KHt,undo:YHt};function KHt(e){var t=e.graph().rankdir.toLowerCase();(t==="lr"||t==="rl")&&JTe(e)}function YHt(e){var t=e.graph().rankdir.toLowerCase();(t==="bt"||t==="rl")&&ZHt(e),(t==="lr"||t==="rl")&&(UHt(e),JTe(e))}function JTe(e){wh.forEach(e.nodes(),function(t){VTe(e.node(t))}),wh.forEach(e.edges(),function(t){VTe(e.edge(t))})}function VTe(e){var t=e.width;e.width=e.height,e.height=t}function ZHt(e){wh.forEach(e.nodes(),function(t){xte(e.node(t))}),wh.forEach(e.edges(),function(t){var n=e.edge(t);wh.forEach(n.points,xte),wh.has(n,"y")&&xte(n)})}function xte(e){e.y=-e.y}function UHt(e){wh.forEach(e.nodes(),function(t){_te(e.node(t))}),wh.forEach(e.edges(),function(t){var n=e.edge(t);wh.forEach(n.points,_te),wh.has(n,"x")&&_te(n)})}function _te(e){var t=e.x;e.x=e.y,e.y=t}});var XTe=ne((pIn,WTe)=>{"use strict";var _m=jo();WTe.exports=QHt;function QHt(e){var t={},n=_m.filter(e.nodes(),function(a){return!e.children(a).length}),r=_m.max(_m.map(n,function(a){return e.node(a).rank})),i=_m.map(_m.range(r+1),function(){return[]});function o(a){if(!_m.has(t,a)){t[a]=!0;var l=e.node(a);i[l.rank].push(a),_m.forEach(e.successors(a),o)}}var s=_m.sortBy(n,function(a){return e.node(a).rank});return _m.forEach(s,o),i}});var $Te=ne((fIn,qTe)=>{"use strict";var gv=jo();qTe.exports=eWt;function eWt(e,t){for(var n=0,r=1;r<t.length;++r)n+=tWt(e,t[r-1],t[r]);return n}function tWt(e,t,n){for(var r=gv.zipObject(n,gv.map(n,function(u,c){return c})),i=gv.flatten(gv.map(t,function(u){return gv.sortBy(gv.map(e.outEdges(u),function(c){return{pos:r[c.w],weight:e.edge(c).weight}}),"pos")}),!0),o=1;o<n.length;)o<<=1;var s=2*o-1;o-=1;var a=gv.map(new Array(s),function(){return 0}),l=0;return gv.forEach(i.forEach(function(u){var c=u.pos+o;a[c]+=u.weight;for(var f=0;c>0;)c%2&&(f+=a[c+1]),c=c-1>>1,a[c]+=u.weight;l+=u.weight*f})),l}});var ZTe=ne((hIn,YTe)=>{var KTe=jo();YTe.exports=nWt;function nWt(e,t){return KTe.map(t,function(n){var r=e.inEdges(n);if(r.length){var i=KTe.reduce(r,function(o,s){var a=e.edge(s),l=e.node(s.v);return{sum:o.sum+a.weight*l.order,weight:o.weight+a.weight}},{sum:0,weight:0});return{v:n,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:n}})}});var QTe=ne((mIn,UTe)=>{"use strict";var Wc=jo();UTe.exports=rWt;function rWt(e,t){var n={};Wc.forEach(e,function(i,o){var s=n[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:o};Wc.isUndefined(i.barycenter)||(s.barycenter=i.barycenter,s.weight=i.weight)}),Wc.forEach(t.edges(),function(i){var o=n[i.v],s=n[i.w];!Wc.isUndefined(o)&&!Wc.isUndefined(s)&&(s.indegree++,o.out.push(n[i.w]))});var r=Wc.filter(n,function(i){return!i.indegree});return iWt(r)}function iWt(e){var t=[];function n(o){return function(s){s.merged||(Wc.isUndefined(s.barycenter)||Wc.isUndefined(o.barycenter)||s.barycenter>=o.barycenter)&&oWt(o,s)}}function r(o){return function(s){s.in.push(o),--s.indegree===0&&e.push(s)}}for(;e.length;){var i=e.pop();t.push(i),Wc.forEach(i.in.reverse(),n(i)),Wc.forEach(i.out,r(i))}return Wc.map(Wc.filter(t,function(o){return!o.merged}),function(o){return Wc.pick(o,["vs","i","barycenter","weight"])})}function oWt(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}});var nDe=ne((gIn,tDe)=>{var a9=jo(),sWt=yu();tDe.exports=aWt;function aWt(e,t){var n=sWt.partition(e,function(c){return a9.has(c,"barycenter")}),r=n.lhs,i=a9.sortBy(n.rhs,function(c){return-c.i}),o=[],s=0,a=0,l=0;r.sort(lWt(!!t)),l=eDe(o,i,l),a9.forEach(r,function(c){l+=c.vs.length,o.push(c.vs),s+=c.barycenter*c.weight,a+=c.weight,l=eDe(o,i,l)});var u={vs:a9.flatten(o,!0)};return a&&(u.barycenter=s/a,u.weight=a),u}function eDe(e,t,n){for(var r;t.length&&(r=a9.last(t)).i<=n;)t.pop(),e.push(r.vs),n++;return n}function lWt(e){return function(t,n){return t.barycenter<n.barycenter?-1:t.barycenter>n.barycenter?1:e?n.i-t.i:t.i-n.i}}});var oDe=ne((vIn,iDe)=>{var vv=jo(),uWt=ZTe(),cWt=QTe(),dWt=nDe();iDe.exports=rDe;function rDe(e,t,n,r){var i=e.children(t),o=e.node(t),s=o?o.borderLeft:void 0,a=o?o.borderRight:void 0,l={};s&&(i=vv.filter(i,function(m){return m!==s&&m!==a}));var u=uWt(e,i);vv.forEach(u,function(m){if(e.children(m.v).length){var g=rDe(e,m.v,n,r);l[m.v]=g,vv.has(g,"barycenter")&&fWt(m,g)}});var c=cWt(u,n);pWt(c,l);var f=dWt(c,r);if(s&&(f.vs=vv.flatten([s,f.vs,a],!0),e.predecessors(s).length)){var d=e.node(e.predecessors(s)[0]),h=e.node(e.predecessors(a)[0]);vv.has(f,"barycenter")||(f.barycenter=0,f.weight=0),f.barycenter=(f.barycenter*f.weight+d.order+h.order)/(f.weight+2),f.weight+=2}return f}function pWt(e,t){vv.forEach(e,function(n){n.vs=vv.flatten(n.vs.map(function(r){return t[r]?t[r].vs:r}),!0)})}function fWt(e,t){vv.isUndefined(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}});var aDe=ne((yIn,sDe)=>{var l9=jo(),hWt=Yd().Graph;sDe.exports=mWt;function mWt(e,t,n){var r=gWt(e),i=new hWt({compound:!0}).setGraph({root:r}).setDefaultNodeLabel(function(o){return e.node(o)});return l9.forEach(e.nodes(),function(o){var s=e.node(o),a=e.parent(o);(s.rank===t||s.minRank<=t&&t<=s.maxRank)&&(i.setNode(o),i.setParent(o,a||r),l9.forEach(e[n](o),function(l){var u=l.v===o?l.w:l.v,c=i.edge(u,o),f=l9.isUndefined(c)?0:c.weight;i.setEdge(u,o,{weight:e.edge(l).weight+f})}),l9.has(s,"minRank")&&i.setNode(o,{borderLeft:s.borderLeft[t],borderRight:s.borderRight[t]}))}),i}function gWt(e){for(var t;e.hasNode(t=l9.uniqueId("_root")););return t}});var uDe=ne((xIn,lDe)=>{var vWt=jo();lDe.exports=yWt;function yWt(e,t,n){var r={},i;vWt.forEach(n,function(o){for(var s=e.parent(o),a,l;s;){if(a=e.parent(s),a?(l=r[a],r[a]=s):(l=i,i=s),l&&l!==s){t.setEdge(l,s);return}s=a}})}});var hDe=ne((_In,fDe)=>{"use strict";var yv=jo(),xWt=XTe(),_Wt=$Te(),bWt=oDe(),wWt=aDe(),PWt=uDe(),kWt=Yd().Graph,cDe=yu();fDe.exports=AWt;function AWt(e){var t=cDe.maxRank(e),n=dDe(e,yv.range(1,t+1),"inEdges"),r=dDe(e,yv.range(t-1,-1,-1),"outEdges"),i=xWt(e);pDe(e,i);for(var o=Number.POSITIVE_INFINITY,s,a=0,l=0;l<4;++a,++l){CWt(a%2?n:r,a%4>=2),i=cDe.buildLayerMatrix(e);var u=_Wt(e,i);u<o&&(l=0,s=yv.cloneDeep(i),o=u)}pDe(e,s)}function dDe(e,t,n){return yv.map(t,function(r){return wWt(e,r,n)})}function CWt(e,t){var n=new kWt;yv.forEach(e,function(r){var i=r.graph().root,o=bWt(r,i,n,t);yv.forEach(o.vs,function(s,a){r.node(s).order=a}),PWt(r,n,o.vs)})}function pDe(e,t){yv.forEach(t,function(n){yv.forEach(n,function(r,i){e.node(r).order=i})})}});var kDe=ne((bIn,PDe)=>{"use strict";var nr=jo(),SWt=Yd().Graph,OWt=yu();PDe.exports={positionX:BWt,findType1Conflicts:mDe,findType2Conflicts:gDe,addConflict:bte,hasConflict:vDe,verticalAlignment:yDe,horizontalCompaction:xDe,alignCoordinates:bDe,findSmallestWidthAlignment:_De,balance:wDe};function mDe(e,t){var n={};function r(i,o){var s=0,a=0,l=i.length,u=nr.last(o);return nr.forEach(o,function(c,f){var d=EWt(e,c),h=d?e.node(d).order:l;(d||c===u)&&(nr.forEach(o.slice(a,f+1),function(m){nr.forEach(e.predecessors(m),function(g){var b=e.node(g),v=b.order;(v<s||h<v)&&!(b.dummy&&e.node(m).dummy)&&bte(n,g,m)})}),a=f+1,s=h)}),o}return nr.reduce(t,r),n}function gDe(e,t){var n={};function r(o,s,a,l,u){var c;nr.forEach(nr.range(s,a),function(f){c=o[f],e.node(c).dummy&&nr.forEach(e.predecessors(c),function(d){var h=e.node(d);h.dummy&&(h.order<l||h.order>u)&&bte(n,d,c)})})}function i(o,s){var a=-1,l,u=0;return nr.forEach(s,function(c,f){if(e.node(c).dummy==="border"){var d=e.predecessors(c);d.length&&(l=e.node(d[0]).order,r(s,u,f,a,l),u=f,a=l)}r(s,u,s.length,l,o.length)}),s}return nr.reduce(t,i),n}function EWt(e,t){if(e.node(t).dummy)return nr.find(e.predecessors(t),function(n){return e.node(n).dummy})}function bte(e,t,n){if(t>n){var r=t;t=n,n=r}var i=e[t];i||(e[t]=i={}),i[n]=!0}function vDe(e,t,n){if(t>n){var r=t;t=n,n=r}return nr.has(e[t],n)}function yDe(e,t,n,r){var i={},o={},s={};return nr.forEach(t,function(a){nr.forEach(a,function(l,u){i[l]=l,o[l]=l,s[l]=u})}),nr.forEach(t,function(a){var l=-1;nr.forEach(a,function(u){var c=r(u);if(c.length){c=nr.sortBy(c,function(g){return s[g]});for(var f=(c.length-1)/2,d=Math.floor(f),h=Math.ceil(f);d<=h;++d){var m=c[d];o[u]===u&&l<s[m]&&!vDe(n,u,m)&&(o[m]=u,o[u]=i[u]=i[m],l=s[m])}}})}),{root:i,align:o}}function xDe(e,t,n,r,i){var o={},s=MWt(e,t,n,i),a=i?"borderLeft":"borderRight";function l(f,d){for(var h=s.nodes(),m=h.pop(),g={};m;)g[m]?f(m):(g[m]=!0,h.push(m),h=h.concat(d(m))),m=h.pop()}function u(f){o[f]=s.inEdges(f).reduce(function(d,h){return Math.max(d,o[h.v]+s.edge(h))},0)}function c(f){var d=s.outEdges(f).reduce(function(m,g){return Math.min(m,o[g.w]-s.edge(g))},Number.POSITIVE_INFINITY),h=e.node(f);d!==Number.POSITIVE_INFINITY&&h.borderType!==a&&(o[f]=Math.max(o[f],d))}return l(u,s.predecessors.bind(s)),l(c,s.successors.bind(s)),nr.forEach(r,function(f){o[f]=o[n[f]]}),o}function MWt(e,t,n,r){var i=new SWt,o=e.graph(),s=NWt(o.nodesep,o.edgesep,r);return nr.forEach(t,function(a){var l;nr.forEach(a,function(u){var c=n[u];if(i.setNode(c),l){var f=n[l],d=i.edge(f,c);i.setEdge(f,c,Math.max(s(e,u,l),d||0))}l=u})}),i}function _De(e,t){return nr.minBy(nr.values(t),function(n){var r=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return nr.forIn(n,function(o,s){var a=GWt(e,s)/2;r=Math.max(o+a,r),i=Math.min(o-a,i)}),r-i})}function bDe(e,t){var n=nr.values(t),r=nr.min(n),i=nr.max(n);nr.forEach(["u","d"],function(o){nr.forEach(["l","r"],function(s){var a=o+s,l=e[a],u;if(l!==t){var c=nr.values(l);u=s==="l"?r-nr.min(c):i-nr.max(c),u&&(e[a]=nr.mapValues(l,function(f){return f+u}))}})})}function wDe(e,t){return nr.mapValues(e.ul,function(n,r){if(t)return e[t.toLowerCase()][r];var i=nr.sortBy(nr.map(e,r));return(i[1]+i[2])/2})}function BWt(e){var t=OWt.buildLayerMatrix(e),n=nr.merge(mDe(e,t),gDe(e,t)),r={},i;nr.forEach(["u","d"],function(s){i=s==="u"?t:nr.values(t).reverse(),nr.forEach(["l","r"],function(a){a==="r"&&(i=nr.map(i,function(f){return nr.values(f).reverse()}));var l=(s==="u"?e.predecessors:e.successors).bind(e),u=yDe(e,i,n,l),c=xDe(e,i,u.root,u.align,a==="r");a==="r"&&(c=nr.mapValues(c,function(f){return-f})),r[s+a]=c})});var o=_De(e,r);return bDe(r,o),wDe(r,e.graph().align)}function NWt(e,t,n){return function(r,i,o){var s=r.node(i),a=r.node(o),l=0,u;if(l+=s.width/2,nr.has(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":u=-s.width/2;break;case"r":u=s.width/2;break}if(u&&(l+=n?u:-u),u=0,l+=(s.dummy?t:e)/2,l+=(a.dummy?t:e)/2,l+=a.width/2,nr.has(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":u=a.width/2;break;case"r":u=-a.width/2;break}return u&&(l+=n?u:-u),u=0,l}}function GWt(e,t){return e.node(t).width}});var SDe=ne((wIn,CDe)=>{"use strict";var u9=jo(),ADe=yu(),FWt=kDe().positionX;CDe.exports=IWt;function IWt(e){e=ADe.asNonCompoundGraph(e),zWt(e),u9.forEach(FWt(e),function(t,n){e.node(n).x=t})}function zWt(e){var t=ADe.buildLayerMatrix(e),n=e.graph().ranksep,r=0;u9.forEach(t,function(i){var o=u9.max(u9.map(i,function(s){return e.node(s).height}));u9.forEach(i,function(s){e.node(s).y=r+o/2}),r+=o+n})}});var GDe=ne((PIn,NDe)=>{"use strict";var Er=jo(),ODe=dTe(),EDe=yTe(),TWt=NTe(),DWt=yu().normalizeRanks,RWt=FTe(),LWt=yu().removeEmptyRanks,MDe=TTe(),VWt=LTe(),BDe=HTe(),JWt=hDe(),jWt=SDe(),xv=yu(),HWt=Yd().Graph;NDe.exports=WWt;function WWt(e,t){var n=t&&t.debugTiming?xv.time:xv.notime;n("layout",function(){var r=n("  buildLayoutGraph",function(){return nXt(e)});n("  runLayout",function(){XWt(r,n)}),n("  updateInputGraph",function(){qWt(e,r)})})}function XWt(e,t){t("    makeSpaceForEdgeLabels",function(){rXt(e)}),t("    removeSelfEdges",function(){pXt(e)}),t("    acyclic",function(){ODe.run(e)}),t("    nestingGraph.run",function(){MDe.run(e)}),t("    rank",function(){TWt(xv.asNonCompoundGraph(e))}),t("    injectEdgeLabelProxies",function(){iXt(e)}),t("    removeEmptyRanks",function(){LWt(e)}),t("    nestingGraph.cleanup",function(){MDe.cleanup(e)}),t("    normalizeRanks",function(){DWt(e)}),t("    assignRankMinMax",function(){oXt(e)}),t("    removeEdgeLabelProxies",function(){sXt(e)}),t("    normalize.run",function(){EDe.run(e)}),t("    parentDummyChains",function(){RWt(e)}),t("    addBorderSegments",function(){VWt(e)}),t("    order",function(){JWt(e)}),t("    insertSelfEdges",function(){fXt(e)}),t("    adjustCoordinateSystem",function(){BDe.adjust(e)}),t("    position",function(){jWt(e)}),t("    positionSelfEdges",function(){hXt(e)}),t("    removeBorderNodes",function(){dXt(e)}),t("    normalize.undo",function(){EDe.undo(e)}),t("    fixupEdgeLabelCoords",function(){uXt(e)}),t("    undoCoordinateSystem",function(){BDe.undo(e)}),t("    translateGraph",function(){aXt(e)}),t("    assignNodeIntersects",function(){lXt(e)}),t("    reversePoints",function(){cXt(e)}),t("    acyclic.undo",function(){ODe.undo(e)})}function qWt(e,t){Er.forEach(e.nodes(),function(n){var r=e.node(n),i=t.node(n);r&&(r.x=i.x,r.y=i.y,t.children(n).length&&(r.width=i.width,r.height=i.height))}),Er.forEach(e.edges(),function(n){var r=e.edge(n),i=t.edge(n);r.points=i.points,Er.has(i,"x")&&(r.x=i.x,r.y=i.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}var $Wt=["nodesep","edgesep","ranksep","marginx","marginy"],KWt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},YWt=["acyclicer","ranker","rankdir","align"],ZWt=["width","height"],UWt={width:0,height:0},QWt=["minlen","weight","width","height","labeloffset"],eXt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},tXt=["labelpos"];function nXt(e){var t=new HWt({multigraph:!0,compound:!0}),n=Pte(e.graph());return t.setGraph(Er.merge({},KWt,wte(n,$Wt),Er.pick(n,YWt))),Er.forEach(e.nodes(),function(r){var i=Pte(e.node(r));t.setNode(r,Er.defaults(wte(i,ZWt),UWt)),t.setParent(r,e.parent(r))}),Er.forEach(e.edges(),function(r){var i=Pte(e.edge(r));t.setEdge(r,Er.merge({},eXt,wte(i,QWt),Er.pick(i,tXt)))}),t}function rXt(e){var t=e.graph();t.ranksep/=2,Er.forEach(e.edges(),function(n){var r=e.edge(n);r.minlen*=2,r.labelpos.toLowerCase()!=="c"&&(t.rankdir==="TB"||t.rankdir==="BT"?r.width+=r.labeloffset:r.height+=r.labeloffset)})}function iXt(e){Er.forEach(e.edges(),function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v),i=e.node(t.w),o={rank:(i.rank-r.rank)/2+r.rank,e:t};xv.addDummyNode(e,"edge-proxy",o,"_ep")}})}function oXt(e){var t=0;Er.forEach(e.nodes(),function(n){var r=e.node(n);r.borderTop&&(r.minRank=e.node(r.borderTop).rank,r.maxRank=e.node(r.borderBottom).rank,t=Er.max(t,r.maxRank))}),e.graph().maxRank=t}function sXt(e){Er.forEach(e.nodes(),function(t){var n=e.node(t);n.dummy==="edge-proxy"&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))})}function aXt(e){var t=Number.POSITIVE_INFINITY,n=0,r=Number.POSITIVE_INFINITY,i=0,o=e.graph(),s=o.marginx||0,a=o.marginy||0;function l(u){var c=u.x,f=u.y,d=u.width,h=u.height;t=Math.min(t,c-d/2),n=Math.max(n,c+d/2),r=Math.min(r,f-h/2),i=Math.max(i,f+h/2)}Er.forEach(e.nodes(),function(u){l(e.node(u))}),Er.forEach(e.edges(),function(u){var c=e.edge(u);Er.has(c,"x")&&l(c)}),t-=s,r-=a,Er.forEach(e.nodes(),function(u){var c=e.node(u);c.x-=t,c.y-=r}),Er.forEach(e.edges(),function(u){var c=e.edge(u);Er.forEach(c.points,function(f){f.x-=t,f.y-=r}),Er.has(c,"x")&&(c.x-=t),Er.has(c,"y")&&(c.y-=r)}),o.width=n-t+s,o.height=i-r+a}function lXt(e){Er.forEach(e.edges(),function(t){var n=e.edge(t),r=e.node(t.v),i=e.node(t.w),o,s;n.points?(o=n.points[0],s=n.points[n.points.length-1]):(n.points=[],o=i,s=r),n.points.unshift(xv.intersectRect(r,o)),n.points.push(xv.intersectRect(i,s))})}function uXt(e){Er.forEach(e.edges(),function(t){var n=e.edge(t);if(Er.has(n,"x"))switch((n.labelpos==="l"||n.labelpos==="r")&&(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset;break}})}function cXt(e){Er.forEach(e.edges(),function(t){var n=e.edge(t);n.reversed&&n.points.reverse()})}function dXt(e){Er.forEach(e.nodes(),function(t){if(e.children(t).length){var n=e.node(t),r=e.node(n.borderTop),i=e.node(n.borderBottom),o=e.node(Er.last(n.borderLeft)),s=e.node(Er.last(n.borderRight));n.width=Math.abs(s.x-o.x),n.height=Math.abs(i.y-r.y),n.x=o.x+n.width/2,n.y=r.y+n.height/2}}),Er.forEach(e.nodes(),function(t){e.node(t).dummy==="border"&&e.removeNode(t)})}function pXt(e){Er.forEach(e.edges(),function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}function fXt(e){var t=xv.buildLayerMatrix(e);Er.forEach(t,function(n){var r=0;Er.forEach(n,function(i,o){var s=e.node(i);s.order=o+r,Er.forEach(s.selfEdges,function(a){xv.addDummyNode(e,"selfedge",{width:a.label.width,height:a.label.height,rank:s.rank,order:o+ ++r,e:a.e,label:a.label},"_se")}),delete s.selfEdges})})}function hXt(e){Er.forEach(e.nodes(),function(t){var n=e.node(t);if(n.dummy==="selfedge"){var r=e.node(n.e.v),i=r.x+r.width/2,o=r.y,s=n.x-i,a=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:i+2*s/3,y:o-a},{x:i+5*s/6,y:o-a},{x:i+s,y:o},{x:i+5*s/6,y:o+a},{x:i+2*s/3,y:o+a}],n.label.x=n.x,n.label.y=n.y}})}function wte(e,t){return Er.mapValues(Er.pick(e,t),Number)}function Pte(e){var t={};return Er.forEach(e,function(n,r){t[r.toLowerCase()]=n}),t}});var IDe=ne((kIn,FDe)=>{var UI=jo(),mXt=yu(),gXt=Yd().Graph;FDe.exports={debugOrdering:vXt};function vXt(e){var t=mXt.buildLayerMatrix(e),n=new gXt({compound:!0,multigraph:!0}).setGraph({});return UI.forEach(e.nodes(),function(r){n.setNode(r,{label:r}),n.setParent(r,"layer"+e.node(r).rank)}),UI.forEach(e.edges(),function(r){n.setEdge(r.v,r.w,{},r.name)}),UI.forEach(t,function(r,i){var o="layer"+i;n.setNode(o,{rank:"same"}),UI.reduce(r,function(s,a){return n.setEdge(s,a,{style:"invis"}),a})}),n}});var TDe=ne((AIn,zDe)=>{zDe.exports="0.8.5"});var RDe=ne((CIn,DDe)=>{DDe.exports={graphlib:Yd(),layout:GDe(),debug:IDe(),util:{time:yu().time,notime:yu().notime},version:TDe()}});var WDe=ne((exports,module)=>{typeof navigator<"u"&&function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.lottie=t())}(exports,function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var n,r=e.length,i;for(n=0;n<r;n+=1){i=e[n].prototype;for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t.prototype[o]=i[o])}}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(n){this.audios.push(n)},pause:function(){var n,r=this.audios.length;for(n=0;n<r;n+=1)this.audios[n].pause()},resume:function(){var n,r=this.audios.length;for(n=0;n<r;n+=1)this.audios[n].resume()},setRate:function(n){var r,i=this.audios.length;for(r=0;r<i;r+=1)this.audios[r].setRate(n)},createAudio:function(n){return this.audioFactory?this.audioFactory(n):window.Howl?new window.Howl({src:[n]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(n){this.audioFactory=n},setVolume:function(n){this._volume=n,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var n,r=this.audios.length;for(n=0;n<r;n+=1)this.audios[n].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(n,r){var i=0,o=[],s;switch(n){case"int16":case"uint8c":s=1;break;default:s=1.1;break}for(i=0;i<r;i+=1)o.push(s);return o}function t(n,r){return n==="float32"?new Float32Array(r):n==="int16"?new Int16Array(r):n==="uint8c"?new Uint8ClampedArray(r):e(n,r)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?t:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function(n){return typeof n}:_typeof$6=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],t,n=e.length;for(t=0;t<n;t+=1)BMMath[e[t]]=Math[e[t]]})();function ProjectInterface$1(){return{}}BMMath.random=Math.random,BMMath.abs=function(e){var t=_typeof$6(e);if(t==="object"&&e.length){var n=createSizedArray(e.length),r,i=e.length;for(r=0;r<i;r+=1)n[r]=Math.abs(e[r]);return n}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(e){_shouldRoundValues=!!e}function bmRnd(e){return _shouldRoundValues?Math.round(e):e}function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,n,r){this.type=e,this.currentTime=t,this.totalTime=n,this.direction=r<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,n,r){this.type=e,this.currentLoop=n,this.totalLoops=t,this.direction=r<0?-1:1}function BMSegmentStartEvent(e,t,n){this.type=e,this.firstFrame=t,this.totalFrames=n}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}function BMAnimationConfigErrorEvent(e,t){this.type=e,this.nativeError=t}var createElementID=function(){var e=0;return function(){return e+=1,idPrefix$1+"__lottie_element_"+e}}();function HSVtoRGB(e,t,n){var r,i,o,s,a,l,u,c;switch(s=Math.floor(e*6),a=e*6-s,l=n*(1-t),u=n*(1-a*t),c=n*(1-(1-a)*t),s%6){case 0:r=n,i=c,o=l;break;case 1:r=u,i=n,o=l;break;case 2:r=l,i=n,o=c;break;case 3:r=l,i=u,o=n;break;case 4:r=c,i=l,o=n;break;case 5:r=n,i=l,o=u;break;default:break}return[r,i,o]}function RGBtoHSV(e,t,n){var r=Math.max(e,t,n),i=Math.min(e,t,n),o=r-i,s,a=r===0?0:o/r,l=r/255;switch(r){case i:s=0;break;case e:s=t-n+o*(t<n?6:0),s/=6*o;break;case t:s=n-e+o*2,s/=6*o;break;case n:s=e-t+o*4,s/=6*o;break;default:break}return[s,a,l]}function addSaturationToRGB(e,t){var n=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return n[1]+=t,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),HSVtoRGB(n[0],n[1],n[2])}function addBrightnessToRGB(e,t){var n=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return n[2]+=t,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),HSVtoRGB(n[0],n[1],n[2])}function addHueToRGB(e,t){var n=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return n[0]+=t/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),HSVtoRGB(n[0],n[1],n[2])}var rgbToHex=function(){var e=[],t,n;for(t=0;t<256;t+=1)n=t.toString(16),e[t]=n.length===1?"0"+n:n;return function(r,i,o){return r<0&&(r=0),i<0&&(i=0),o<0&&(o=0),"#"+e[r]+e[i]+e[o]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t},getIdPrefix=function(){return idPrefix$1};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(n){return typeof n}:_typeof$5=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$5(e)}var dataManager=function(){var e=1,t=[],n,r,i={onmessage:function(){},postMessage:function(h){n({data:h})}},o={postMessage:function(h){i.onmessage({data:h})}};function s(d){if(window.Worker&&window.Blob&&getWebWorker()){var h=new Blob(["var _workerSelf = self; self.onmessage = ",d.toString()],{type:"text/javascript"}),m=URL.createObjectURL(h);return new Worker(m)}return n=d,i}function a(){r||(r=s(function(h){function m(){function b(V,B){var N,C,S=V.length,G,T,Q,U;for(C=0;C<S;C+=1)if(N=V[C],"ks"in N&&!N.completed){if(N.completed=!0,N.hasMask){var F=N.masksProperties;for(T=F.length,G=0;G<T;G+=1)if(F[G].pt.k.i)w(F[G].pt.k);else for(U=F[G].pt.k.length,Q=0;Q<U;Q+=1)F[G].pt.k[Q].s&&w(F[G].pt.k[Q].s[0]),F[G].pt.k[Q].e&&w(F[G].pt.k[Q].e[0])}N.ty===0?(N.layers=y(N.refId,B),b(N.layers,B)):N.ty===4?_(N.shapes):N.ty===5&&ee(N)}}function v(V,B){if(V){var N=0,C=V.length;for(N=0;N<C;N+=1)V[N].t===1&&(V[N].data.layers=y(V[N].data.refId,B),b(V[N].data.layers,B))}}function x(V,B){for(var N=0,C=B.length;N<C;){if(B[N].id===V)return B[N];N+=1}return null}function y(V,B){var N=x(V,B);return N?N.layers.__used?JSON.parse(JSON.stringify(N.layers)):(N.layers.__used=!0,N.layers):null}function _(V){var B,N=V.length,C,S;for(B=N-1;B>=0;B-=1)if(V[B].ty==="sh")if(V[B].ks.k.i)w(V[B].ks.k);else for(S=V[B].ks.k.length,C=0;C<S;C+=1)V[B].ks.k[C].s&&w(V[B].ks.k[C].s[0]),V[B].ks.k[C].e&&w(V[B].ks.k[C].e[0]);else V[B].ty==="gr"&&_(V[B].it)}function w(V){var B,N=V.i.length;for(B=0;B<N;B+=1)V.i[B][0]+=V.v[B][0],V.i[B][1]+=V.v[B][1],V.o[B][0]+=V.v[B][0],V.o[B][1]+=V.v[B][1]}function k(V,B){var N=B?B.split("."):[100,100,100];return V[0]>N[0]?!0:N[0]>V[0]?!1:V[1]>N[1]?!0:N[1]>V[1]?!1:V[2]>N[2]?!0:N[2]>V[2]?!1:null}var O=function(){var V=[4,4,14];function B(C){var S=C.t.d;C.t.d={k:[{s:S,t:0}]}}function N(C){var S,G=C.length;for(S=0;S<G;S+=1)C[S].ty===5&&B(C[S])}return function(C){if(k(V,C.v)&&(N(C.layers),C.assets)){var S,G=C.assets.length;for(S=0;S<G;S+=1)C.assets[S].layers&&N(C.assets[S].layers)}}}(),M=function(){var V=[4,7,99];return function(B){if(B.chars&&!k(V,B.v)){var N,C=B.chars.length;for(N=0;N<C;N+=1){var S=B.chars[N];S.data&&S.data.shapes&&(_(S.data.shapes),S.data.ip=0,S.data.op=99999,S.data.st=0,S.data.sr=1,S.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},B.chars[N].t||(S.data.shapes.push({ty:"no"}),S.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),I=function(){var V=[5,7,15];function B(C){var S=C.t.p;typeof S.a=="number"&&(S.a={a:0,k:S.a}),typeof S.p=="number"&&(S.p={a:0,k:S.p}),typeof S.r=="number"&&(S.r={a:0,k:S.r})}function N(C){var S,G=C.length;for(S=0;S<G;S+=1)C[S].ty===5&&B(C[S])}return function(C){if(k(V,C.v)&&(N(C.layers),C.assets)){var S,G=C.assets.length;for(S=0;S<G;S+=1)C.assets[S].layers&&N(C.assets[S].layers)}}}(),W=function(){var V=[4,1,9];function B(C){var S,G=C.length,T,Q;for(S=0;S<G;S+=1)if(C[S].ty==="gr")B(C[S].it);else if(C[S].ty==="fl"||C[S].ty==="st")if(C[S].c.k&&C[S].c.k[0].i)for(Q=C[S].c.k.length,T=0;T<Q;T+=1)C[S].c.k[T].s&&(C[S].c.k[T].s[0]/=255,C[S].c.k[T].s[1]/=255,C[S].c.k[T].s[2]/=255,C[S].c.k[T].s[3]/=255),C[S].c.k[T].e&&(C[S].c.k[T].e[0]/=255,C[S].c.k[T].e[1]/=255,C[S].c.k[T].e[2]/=255,C[S].c.k[T].e[3]/=255);else C[S].c.k[0]/=255,C[S].c.k[1]/=255,C[S].c.k[2]/=255,C[S].c.k[3]/=255}function N(C){var S,G=C.length;for(S=0;S<G;S+=1)C[S].ty===4&&B(C[S].shapes)}return function(C){if(k(V,C.v)&&(N(C.layers),C.assets)){var S,G=C.assets.length;for(S=0;S<G;S+=1)C.assets[S].layers&&N(C.assets[S].layers)}}}(),J=function(){var V=[4,4,18];function B(C){var S,G=C.length,T,Q;for(S=G-1;S>=0;S-=1)if(C[S].ty==="sh")if(C[S].ks.k.i)C[S].ks.k.c=C[S].closed;else for(Q=C[S].ks.k.length,T=0;T<Q;T+=1)C[S].ks.k[T].s&&(C[S].ks.k[T].s[0].c=C[S].closed),C[S].ks.k[T].e&&(C[S].ks.k[T].e[0].c=C[S].closed);else C[S].ty==="gr"&&B(C[S].it)}function N(C){var S,G,T=C.length,Q,U,F,D;for(G=0;G<T;G+=1){if(S=C[G],S.hasMask){var L=S.masksProperties;for(U=L.length,Q=0;Q<U;Q+=1)if(L[Q].pt.k.i)L[Q].pt.k.c=L[Q].cl;else for(D=L[Q].pt.k.length,F=0;F<D;F+=1)L[Q].pt.k[F].s&&(L[Q].pt.k[F].s[0].c=L[Q].cl),L[Q].pt.k[F].e&&(L[Q].pt.k[F].e[0].c=L[Q].cl)}S.ty===4&&B(S.shapes)}}return function(C){if(k(V,C.v)&&(N(C.layers),C.assets)){var S,G=C.assets.length;for(S=0;S<G;S+=1)C.assets[S].layers&&N(C.assets[S].layers)}}}();function H(V){V.__complete||(W(V),O(V),M(V),I(V),J(V),b(V.layers,V.assets),v(V.chars,V.assets),V.__complete=!0)}function ee(V){V.t.a.length===0&&"m"in V.t.p}var j={};return j.completeData=H,j.checkColors=W,j.checkChars=M,j.checkPathProperties=I,j.checkShapes=J,j.completeLayers=b,j}if(o.dataManager||(o.dataManager=m()),o.assetLoader||(o.assetLoader=function(){function b(x){var y=x.getResponseHeader("content-type");return y&&x.responseType==="json"&&y.indexOf("json")!==-1||x.response&&_typeof$5(x.response)==="object"?x.response:x.response&&typeof x.response=="string"?JSON.parse(x.response):x.responseText?JSON.parse(x.responseText):null}function v(x,y,_,w){var k,O=new XMLHttpRequest;try{O.responseType="json"}catch{}O.onreadystatechange=function(){if(O.readyState===4)if(O.status===200)k=b(O),_(k);else try{k=b(O),_(k)}catch(M){w&&w(M)}};try{O.open(["G","E","T"].join(""),x,!0)}catch{O.open(["G","E","T"].join(""),y+"/"+x,!0)}O.send()}return{load:v}}()),h.data.type==="loadAnimation")o.assetLoader.load(h.data.path,h.data.fullPath,function(b){o.dataManager.completeData(b),o.postMessage({id:h.data.id,payload:b,status:"success"})},function(){o.postMessage({id:h.data.id,status:"error"})});else if(h.data.type==="complete"){var g=h.data.animation;o.dataManager.completeData(g),o.postMessage({id:h.data.id,payload:g,status:"success"})}else h.data.type==="loadData"&&o.assetLoader.load(h.data.path,h.data.fullPath,function(b){o.postMessage({id:h.data.id,payload:b,status:"success"})},function(){o.postMessage({id:h.data.id,status:"error"})})}),r.onmessage=function(d){var h=d.data,m=h.id,g=t[m];t[m]=null,h.status==="success"?g.onComplete(h.payload):g.onError&&g.onError()})}function l(d,h){e+=1;var m="processId_"+e;return t[m]={onComplete:d,onError:h},m}function u(d,h,m){a();var g=l(h,m);r.postMessage({type:"loadAnimation",path:d,fullPath:window.location.origin+window.location.pathname,id:g})}function c(d,h,m){a();var g=l(h,m);r.postMessage({type:"loadData",path:d,fullPath:window.location.origin+window.location.pathname,id:g})}function f(d,h,m){a();var g=l(h,m);r.postMessage({type:"complete",animation:d,id:g})}return{loadAnimation:u,loadData:c,completeAnimation:f}}(),ImagePreloader=function(){var e=function(){var v=createTag("canvas");v.width=1,v.height=1;var x=v.getContext("2d");return x.fillStyle="rgba(0,0,0,0)",x.fillRect(0,0,1,1),v}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(v,x,y){var _="";if(v.e)_=v.p;else if(x){var w=v.p;w.indexOf("images/")!==-1&&(w=w.split("/")[1]),_=x+w}else _=y,_+=v.u?v.u:"",_+=v.p;return _}function i(v){var x=0,y=setInterval(function(){var _=v.getBBox();(_.width||x>500)&&(this._imageLoaded(),clearInterval(y)),x+=1}.bind(this),50)}function o(v){var x=r(v,this.assetsPath,this.path),y=createNS("image");isSafari?this.testImageLoaded(y):y.addEventListener("load",this._imageLoaded,!1),y.addEventListener("error",function(){_.img=e,this._imageLoaded()}.bind(this),!1),y.setAttributeNS("http://www.w3.org/1999/xlink","href",x),this._elementHelper.append?this._elementHelper.append(y):this._elementHelper.appendChild(y);var _={img:y,assetData:v};return _}function s(v){var x=r(v,this.assetsPath,this.path),y=createTag("img");y.crossOrigin="anonymous",y.addEventListener("load",this._imageLoaded,!1),y.addEventListener("error",function(){_.img=e,this._imageLoaded()}.bind(this),!1),y.src=x;var _={img:y,assetData:v};return _}function a(v){var x={assetData:v},y=r(v,this.assetsPath,this.path);return dataManager.loadData(y,function(_){x.img=_,this._footageLoaded()}.bind(this),function(){x.img={},this._footageLoaded()}.bind(this)),x}function l(v,x){this.imagesLoadedCb=x;var y,_=v.length;for(y=0;y<_;y+=1)v[y].layers||(!v[y].t||v[y].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(v[y]))):v[y].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(v[y]))))}function u(v){this.path=v||""}function c(v){this.assetsPath=v||""}function f(v){for(var x=0,y=this.images.length;x<y;){if(this.images[x].assetData===v)return this.images[x].img;x+=1}return null}function d(){this.imagesLoadedCb=null,this.images.length=0}function h(){return this.totalImages===this.loadedAssets}function m(){return this.totalFootages===this.loadedFootagesCount}function g(v,x){v==="svg"?(this._elementHelper=x,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function b(){this._imageLoaded=t.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=a.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return b.prototype={loadAssets:l,setAssetsPath:c,setPath:u,loadedImages:h,loadedFootages:m,destroy:d,getAsset:f,createImgData:s,createImageData:o,imageLoaded:t,footageLoaded:n,setCacheType:g},b}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,n){if(this._cbs[t])for(var r=this._cbs[t],i=0;i<r.length;i+=1)r[i](n)},addEventListener:function(t,n){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(n),function(){this.removeEventListener(t,n)}.bind(this)},removeEventListener:function(t,n){if(!n)this._cbs[t]=null;else if(this._cbs[t]){for(var r=0,i=this._cbs[t].length;r<i;)this._cbs[t][r]===n&&(this._cbs[t].splice(r,1),r-=1,i-=1),r+=1;this._cbs[t].length||(this._cbs[t]=null)}}};var markerParser=function(){function e(t){for(var n=t.split(`\r
`),r={},i,o=0,s=0;s<n.length;s+=1)i=n[s].split(":"),i.length===2&&(r[i[0]]=i[1].trim(),o+=1);if(o===0)throw new Error;return r}return function(t){for(var n=[],r=0;r<t.length;r+=1){var i=t[r],o={time:i.tm,duration:i.dr};try{o.payload=JSON.parse(t[r].cm)}catch{try{o.payload=e(t[r].cm)}catch{o.payload={name:t[r].cm}}}n.push(o)}return n}}(),ProjectInterface=function(){function e(t){this.compositions.push(t)}return function(){function t(n){for(var r=0,i=this.compositions.length;r<i;){if(this.compositions[r].data&&this.compositions[r].data.nm===n)return this.compositions[r].prepareFrame&&this.compositions[r].data.xt&&this.compositions[r].prepareFrame(this.currentFrame),this.compositions[r].compInterface;r+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(t,n){renderers[t]=n};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$4=function(n){return typeof n}:_typeof$4=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0)};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var n=getRenderer(t);this.renderer=new n(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&_typeof$4(t)!=="object"&&(t=JSON.parse(t));var n={wrapper:e,animationData:t},r=e.attributes;n.path=r.getNamedItem("data-animation-path")?r.getNamedItem("data-animation-path").value:r.getNamedItem("data-bm-path")?r.getNamedItem("data-bm-path").value:r.getNamedItem("bm-path")?r.getNamedItem("bm-path").value:"",n.animType=r.getNamedItem("data-anim-type")?r.getNamedItem("data-anim-type").value:r.getNamedItem("data-bm-type")?r.getNamedItem("data-bm-type").value:r.getNamedItem("bm-type")?r.getNamedItem("bm-type").value:r.getNamedItem("data-bm-renderer")?r.getNamedItem("data-bm-renderer").value:r.getNamedItem("bm-renderer")?r.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var i=r.getNamedItem("data-anim-loop")?r.getNamedItem("data-anim-loop").value:r.getNamedItem("data-bm-loop")?r.getNamedItem("data-bm-loop").value:r.getNamedItem("bm-loop")?r.getNamedItem("bm-loop").value:"";i==="false"?n.loop=!1:i==="true"?n.loop=!0:i!==""&&(n.loop=parseInt(i,10));var o=r.getNamedItem("data-anim-autoplay")?r.getNamedItem("data-anim-autoplay").value:r.getNamedItem("data-bm-autoplay")?r.getNamedItem("data-bm-autoplay").value:r.getNamedItem("bm-autoplay")?r.getNamedItem("bm-autoplay").value:!0;n.autoplay=o!=="false",n.name=r.getNamedItem("data-name")?r.getNamedItem("data-name").value:r.getNamedItem("data-bm-name")?r.getNamedItem("data-bm-name").value:r.getNamedItem("bm-name")?r.getNamedItem("bm-name").value:"";var s=r.getNamedItem("data-anim-prerender")?r.getNamedItem("data-anim-prerender").value:r.getNamedItem("data-bm-prerender")?r.getNamedItem("data-bm-prerender").value:r.getNamedItem("bm-prerender")?r.getNamedItem("bm-prerender").value:"";s==="false"&&(n.prerender=!1),n.path?this.setParams(n):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t=this.animationData.layers,n,r=t.length,i=e.layers,o,s=i.length;for(o=0;o<s;o+=1)for(n=0;n<r;){if(t[n].id===i[o].id){t[n]=i[o];break}n+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(r=e.assets.length,n=0;n<r;n+=1)this.animationData.assets.push(e.assets[n]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var t=e.shift();this.timeCompleted=t.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(n,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(!!this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){!this.renderer||(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var n=typeof e=="number"?e:void 0,r=typeof t=="number"?t:void 0;this.renderer.updateContainerSize(n,r)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.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.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,n=0;n<this.markers.length;n+=1)if(t=this.markers[n],t.payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,n){if(!(n&&this.name!==n)){var r=Number(e);if(isNaN(r)){var i=this.getMarkerData(e);i&&this.goToAndStop(i.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,n){if(!(n&&this.name!==n)){var r=Number(e);if(isNaN(r)){var i=this.getMarkerData(e);i&&(i.duration?this.playSegments([i.time,i.time+i.duration],!0):this.goToAndStop(i.time,!0))}else this.goToAndStop(r,t,n);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var t=this.currentRawFrame+e*this.frameModifier,n=!1;t>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(n=!0,t=this.totalFrames-1):t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):t<0?this.checkSegments(t%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(n=!0,t=0)):this.setCurrentRawFrameValue(t),n&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>t&&(n=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,n!==-1&&this.goToAndStop(n,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),_typeof$4(e[0])==="object"){var n,r=e.length;for(n=0;n<r;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var n=e.p;n.indexOf("images/")!==-1&&(n=n.split("/")[1]),t=this.assetsPath+n}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,n=this.assets.length;t<n;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,n){try{var r=this.renderer.getElementByPath(e);r.updateDocumentData(t,n)}catch{}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],n=0,r=0,i=0,o=!0,s=!1;function a(B){for(var N=0,C=B.target;N<r;)t[N].animation===C&&(t.splice(N,1),N-=1,r-=1,C.isPaused||f()),N+=1}function l(B,N){if(!B)return null;for(var C=0;C<r;){if(t[C].elem===B&&t[C].elem!==null)return t[C].animation;C+=1}var S=new AnimationItem;return d(S,B),S.setData(B,N),S}function u(){var B,N=t.length,C=[];for(B=0;B<N;B+=1)C.push(t[B].animation);return C}function c(){i+=1,W()}function f(){i-=1}function d(B,N){B.addEventListener("destroy",a),B.addEventListener("_active",c),B.addEventListener("_idle",f),t.push({elem:N,animation:B}),r+=1}function h(B){var N=new AnimationItem;return d(N,null),N.setParams(B),N}function m(B,N){var C;for(C=0;C<r;C+=1)t[C].animation.setSpeed(B,N)}function g(B,N){var C;for(C=0;C<r;C+=1)t[C].animation.setDirection(B,N)}function b(B){var N;for(N=0;N<r;N+=1)t[N].animation.play(B)}function v(B){var N=B-n,C;for(C=0;C<r;C+=1)t[C].animation.advanceTime(N);n=B,i&&!s?window.requestAnimationFrame(v):o=!0}function x(B){n=B,window.requestAnimationFrame(v)}function y(B){var N;for(N=0;N<r;N+=1)t[N].animation.pause(B)}function _(B,N,C){var S;for(S=0;S<r;S+=1)t[S].animation.goToAndStop(B,N,C)}function w(B){var N;for(N=0;N<r;N+=1)t[N].animation.stop(B)}function k(B){var N;for(N=0;N<r;N+=1)t[N].animation.togglePause(B)}function O(B){var N;for(N=r-1;N>=0;N-=1)t[N].animation.destroy(B)}function M(B,N,C){var S=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),G,T=S.length;for(G=0;G<T;G+=1)C&&S[G].setAttribute("data-bm-type",C),l(S[G],B);if(N&&T===0){C||(C="svg");var Q=document.getElementsByTagName("body")[0];Q.innerText="";var U=createTag("div");U.style.width="100%",U.style.height="100%",U.setAttribute("data-bm-type",C),Q.appendChild(U),l(U,B)}}function I(){var B;for(B=0;B<r;B+=1)t[B].animation.resize()}function W(){!s&&i&&o&&(window.requestAnimationFrame(x),o=!1)}function J(){s=!0}function H(){s=!1,W()}function ee(B,N){var C;for(C=0;C<r;C+=1)t[C].animation.setVolume(B,N)}function j(B){var N;for(N=0;N<r;N+=1)t[N].animation.mute(B)}function V(B){var N;for(N=0;N<r;N+=1)t[N].animation.unmute(B)}return e.registerAnimation=l,e.loadAnimation=h,e.setSpeed=m,e.setDirection=g,e.play=b,e.pause=y,e.stop=w,e.togglePause=k,e.searchAnimations=M,e.resize=I,e.goToAndStop=_,e.destroy=O,e.freeze=J,e.unfreeze=H,e.setVolume=ee,e.mute=j,e.unmute=V,e.getRegisteredAnimations=u,e}(),BezierFactory=function(){var e={};e.getBezierEasing=n;var t={};function n(x,y,_,w,k){var O=k||("bez_"+x+"_"+y+"_"+_+"_"+w).replace(/\./g,"p");if(t[O])return t[O];var M=new v([x,y,_,w]);return t[O]=M,M}var r=4,i=.001,o=1e-7,s=10,a=11,l=1/(a-1),u=typeof Float32Array=="function";function c(x,y){return 1-3*y+3*x}function f(x,y){return 3*y-6*x}function d(x){return 3*x}function h(x,y,_){return((c(y,_)*x+f(y,_))*x+d(y))*x}function m(x,y,_){return 3*c(y,_)*x*x+2*f(y,_)*x+d(y)}function g(x,y,_,w,k){var O,M,I=0;do M=y+(_-y)/2,O=h(M,w,k)-x,O>0?_=M:y=M;while(Math.abs(O)>o&&++I<s);return M}function b(x,y,_,w){for(var k=0;k<r;++k){var O=m(y,_,w);if(O===0)return y;var M=h(y,_,w)-x;y-=M/O}return y}function v(x){this._p=x,this._mSampleValues=u?new Float32Array(a):new Array(a),this._precomputed=!1,this.get=this.get.bind(this)}return v.prototype={get:function(y){var _=this._p[0],w=this._p[1],k=this._p[2],O=this._p[3];return this._precomputed||this._precompute(),_===w&&k===O?y:y===0?0:y===1?1:h(this._getTForX(y),w,O)},_precompute:function(){var y=this._p[0],_=this._p[1],w=this._p[2],k=this._p[3];this._precomputed=!0,(y!==_||w!==k)&&this._calcSampleValues()},_calcSampleValues:function(){for(var y=this._p[0],_=this._p[2],w=0;w<a;++w)this._mSampleValues[w]=h(w*l,y,_)},_getTForX:function(y){for(var _=this._p[0],w=this._p[2],k=this._mSampleValues,O=0,M=1,I=a-1;M!==I&&k[M]<=y;++M)O+=l;--M;var W=(y-k[M])/(k[M+1]-k[M]),J=O+W*l,H=m(J,_,w);return H>=i?b(y,J,_,w):H===0?J:g(y,O,O+l,_,w)}},e}(),pooling=function(){function e(t){return t.concat(createSizedArray(t.length))}return{double:e}}(),poolFactory=function(){return function(e,t,n){var r=0,i=e,o=createSizedArray(i),s={newElement:a,release:l};function a(){var u;return r?(r-=1,u=o[r]):u=t(),u}function l(u){r===i&&(o=pooling.double(o),i*=2),n&&n(u),o[r]=u,r+=1}return s}}(),bezierLengthPool=function(){function e(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,e)}(),segmentsLengthPool=function(){function e(){return{lengths:[],totalLength:0}}function t(n){var r,i=n.lengths.length;for(r=0;r<i;r+=1)bezierLengthPool.release(n.lengths[r]);n.lengths.length=0}return poolFactory(8,e,t)}();function bezFunction(){var e=Math;function t(d,h,m,g,b,v){var x=d*g+h*b+m*v-b*g-v*d-m*h;return x>-.001&&x<.001}function n(d,h,m,g,b,v,x,y,_){if(m===0&&v===0&&_===0)return t(d,h,g,b,x,y);var w=e.sqrt(e.pow(g-d,2)+e.pow(b-h,2)+e.pow(v-m,2)),k=e.sqrt(e.pow(x-d,2)+e.pow(y-h,2)+e.pow(_-m,2)),O=e.sqrt(e.pow(x-g,2)+e.pow(y-b,2)+e.pow(_-v,2)),M;return w>k?w>O?M=w-k-O:M=O-k-w:O>k?M=O-k-w:M=k-w-O,M>-1e-4&&M<1e-4}var r=function(){return function(d,h,m,g){var b=getDefaultCurveSegments(),v,x,y,_,w,k=0,O,M=[],I=[],W=bezierLengthPool.newElement();for(y=m.length,v=0;v<b;v+=1){for(w=v/(b-1),O=0,x=0;x<y;x+=1)_=bmPow(1-w,3)*d[x]+3*bmPow(1-w,2)*w*m[x]+3*(1-w)*bmPow(w,2)*g[x]+bmPow(w,3)*h[x],M[x]=_,I[x]!==null&&(O+=bmPow(M[x]-I[x],2)),I[x]=M[x];O&&(O=bmSqrt(O),k+=O),W.percents[v]=w,W.lengths[v]=k}return W.addedLength=k,W}}();function i(d){var h=segmentsLengthPool.newElement(),m=d.c,g=d.v,b=d.o,v=d.i,x,y=d._length,_=h.lengths,w=0;for(x=0;x<y-1;x+=1)_[x]=r(g[x],g[x+1],b[x],v[x+1]),w+=_[x].addedLength;return m&&y&&(_[x]=r(g[x],g[0],b[x],v[0]),w+=_[x].addedLength),h.totalLength=w,h}function o(d){this.segmentLength=0,this.points=new Array(d)}function s(d,h){this.partialLength=d,this.point=h}var a=function(){var d={};return function(h,m,g,b){var v=(h[0]+"_"+h[1]+"_"+m[0]+"_"+m[1]+"_"+g[0]+"_"+g[1]+"_"+b[0]+"_"+b[1]).replace(/\./g,"p");if(!d[v]){var x=getDefaultCurveSegments(),y,_,w,k,O,M=0,I,W,J=null;h.length===2&&(h[0]!==m[0]||h[1]!==m[1])&&t(h[0],h[1],m[0],m[1],h[0]+g[0],h[1]+g[1])&&t(h[0],h[1],m[0],m[1],m[0]+b[0],m[1]+b[1])&&(x=2);var H=new o(x);for(w=g.length,y=0;y<x;y+=1){for(W=createSizedArray(w),O=y/(x-1),I=0,_=0;_<w;_+=1)k=bmPow(1-O,3)*h[_]+3*bmPow(1-O,2)*O*(h[_]+g[_])+3*(1-O)*bmPow(O,2)*(m[_]+b[_])+bmPow(O,3)*m[_],W[_]=k,J!==null&&(I+=bmPow(W[_]-J[_],2));I=bmSqrt(I),M+=I,H.points[y]=new s(I,W),J=W}H.segmentLength=M,d[v]=H}return d[v]}}();function l(d,h){var m=h.percents,g=h.lengths,b=m.length,v=bmFloor((b-1)*d),x=d*h.addedLength,y=0;if(v===b-1||v===0||x===g[v])return m[v];for(var _=g[v]>x?-1:1,w=!0;w;)if(g[v]<=x&&g[v+1]>x?(y=(x-g[v])/(g[v+1]-g[v]),w=!1):v+=_,v<0||v>=b-1){if(v===b-1)return m[v];w=!1}return m[v]+(m[v+1]-m[v])*y}function u(d,h,m,g,b,v){var x=l(b,v),y=1-x,_=e.round((y*y*y*d[0]+(x*y*y+y*x*y+y*y*x)*m[0]+(x*x*y+y*x*x+x*y*x)*g[0]+x*x*x*h[0])*1e3)/1e3,w=e.round((y*y*y*d[1]+(x*y*y+y*x*y+y*y*x)*m[1]+(x*x*y+y*x*x+x*y*x)*g[1]+x*x*x*h[1])*1e3)/1e3;return[_,w]}var c=createTypedArray("float32",8);function f(d,h,m,g,b,v,x){b<0?b=0:b>1&&(b=1);var y=l(b,x);v=v>1?1:v;var _=l(v,x),w,k=d.length,O=1-y,M=1-_,I=O*O*O,W=y*O*O*3,J=y*y*O*3,H=y*y*y,ee=O*O*M,j=y*O*M+O*y*M+O*O*_,V=y*y*M+O*y*_+y*O*_,B=y*y*_,N=O*M*M,C=y*M*M+O*_*M+O*M*_,S=y*_*M+O*_*_+y*M*_,G=y*_*_,T=M*M*M,Q=_*M*M+M*_*M+M*M*_,U=_*_*M+M*_*_+_*M*_,F=_*_*_;for(w=0;w<k;w+=1)c[w*4]=e.round((I*d[w]+W*m[w]+J*g[w]+H*h[w])*1e3)/1e3,c[w*4+1]=e.round((ee*d[w]+j*m[w]+V*g[w]+B*h[w])*1e3)/1e3,c[w*4+2]=e.round((N*d[w]+C*m[w]+S*g[w]+G*h[w])*1e3)/1e3,c[w*4+3]=e.round((T*d[w]+Q*m[w]+U*g[w]+F*h[w])*1e3)/1e3;return c}return{getSegmentsLength:i,getNewSegment:f,getPointInSegment:u,buildBezierData:a,pointOnLine2D:t,pointOnLine3D:n}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var n=this.offsetTime,r;this.propType==="multidimensional"&&(r=createTypedArray("float32",this.pv.length));for(var i=t.lastIndex,o=i,s=this.keyframes.length-1,a=!0,l,u,c;a;){if(l=this.keyframes[o],u=this.keyframes[o+1],o===s-1&&e>=u.t-n){l.h&&(l=u),i=0;break}if(u.t-n>e){i=o;break}o<s-1?o+=1:(i=0,a=!1)}c=this.keyframesMetadata[o]||{};var f,d,h,m,g,b,v=u.t-n,x=l.t-n,y;if(l.to){c.bezierData||(c.bezierData=bez.buildBezierData(l.s,u.s||l.e,l.to,l.ti));var _=c.bezierData;if(e>=v||e<x){var w=e>=v?_.points.length-1:0;for(d=_.points[w].point.length,f=0;f<d;f+=1)r[f]=_.points[w].point[f]}else{c.__fnct?b=c.__fnct:(b=BezierFactory.getBezierEasing(l.o.x,l.o.y,l.i.x,l.i.y,l.n).get,c.__fnct=b),h=b((e-x)/(v-x));var k=_.segmentLength*h,O,M=t.lastFrame<e&&t._lastKeyframeIndex===o?t._lastAddedLength:0;for(g=t.lastFrame<e&&t._lastKeyframeIndex===o?t._lastPoint:0,a=!0,m=_.points.length;a;){if(M+=_.points[g].partialLength,k===0||h===0||g===_.points.length-1){for(d=_.points[g].point.length,f=0;f<d;f+=1)r[f]=_.points[g].point[f];break}else if(k>=M&&k<M+_.points[g+1].partialLength){for(O=(k-M)/_.points[g+1].partialLength,d=_.points[g].point.length,f=0;f<d;f+=1)r[f]=_.points[g].point[f]+(_.points[g+1].point[f]-_.points[g].point[f])*O;break}g<m-1?g+=1:a=!1}t._lastPoint=g,t._lastAddedLength=M-_.points[g].partialLength,t._lastKeyframeIndex=o}}else{var I,W,J,H,ee;if(s=l.s.length,y=u.s||l.e,this.sh&&l.h!==1)if(e>=v)r[0]=y[0],r[1]=y[1],r[2]=y[2];else if(e<=x)r[0]=l.s[0],r[1]=l.s[1],r[2]=l.s[2];else{var j=createQuaternion(l.s),V=createQuaternion(y),B=(e-x)/(v-x);quaternionToEuler(r,slerp(j,V,B))}else for(o=0;o<s;o+=1)l.h!==1&&(e>=v?h=1:e<x?h=0:(l.o.x.constructor===Array?(c.__fnct||(c.__fnct=[]),c.__fnct[o]?b=c.__fnct[o]:(I=l.o.x[o]===void 0?l.o.x[0]:l.o.x[o],W=l.o.y[o]===void 0?l.o.y[0]:l.o.y[o],J=l.i.x[o]===void 0?l.i.x[0]:l.i.x[o],H=l.i.y[o]===void 0?l.i.y[0]:l.i.y[o],b=BezierFactory.getBezierEasing(I,W,J,H).get,c.__fnct[o]=b)):c.__fnct?b=c.__fnct:(I=l.o.x,W=l.o.y,J=l.i.x,H=l.i.y,b=BezierFactory.getBezierEasing(I,W,J,H).get,l.keyframeMetadata=b),h=b((e-x)/(v-x)))),y=u.s||l.e,ee=l.h===1?l.s[o]:l.s[o]+(y[o]-l.s[o])*h,this.propType==="multidimensional"?r[o]=ee:r=ee}return t.lastIndex=i,r}function slerp(e,t,n){var r=[],i=e[0],o=e[1],s=e[2],a=e[3],l=t[0],u=t[1],c=t[2],f=t[3],d,h,m,g,b;return h=i*l+o*u+s*c+a*f,h<0&&(h=-h,l=-l,u=-u,c=-c,f=-f),1-h>1e-6?(d=Math.acos(h),m=Math.sin(d),g=Math.sin((1-n)*d)/m,b=Math.sin(n*d)/m):(g=1-n,b=n),r[0]=g*i+b*l,r[1]=g*o+b*u,r[2]=g*s+b*c,r[3]=g*a+b*f,r}function quaternionToEuler(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],s=Math.atan2(2*r*o-2*n*i,1-2*r*r-2*i*i),a=Math.asin(2*n*r+2*i*o),l=Math.atan2(2*n*o-2*r*i,1-2*n*n-2*i*i);e[0]=s/degToRads,e[1]=a/degToRads,e[2]=l/degToRads}function createQuaternion(e){var t=e[0]*degToRads,n=e[1]*degToRads,r=e[2]*degToRads,i=Math.cos(t/2),o=Math.cos(n/2),s=Math.cos(r/2),a=Math.sin(t/2),l=Math.sin(n/2),u=Math.sin(r/2),c=i*o*s-a*l*u,f=a*l*s+i*o*u,d=a*o*s+i*l*u,h=i*l*s-a*o*u;return[f,d,h,c]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(e,this._caching);this.pv=r}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if(this.propType==="unidimensional")t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var n=0,r=this.v.length;n<r;)t=e[n]*this.mult,mathAbs(this.v[n]-t)>1e-5&&(this.v[n]=t,this._mdf=!0),n+=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 e,t=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,n,r){this.propType="unidimensional",this.mult=n||1,this.data=t,this.v=n?t.k*n:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,n,r){this.propType="multidimensional",this.mult=n||1,this.data=t,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var i,o=t.k.length;for(this.v=createTypedArray("float32",o),this.pv=createTypedArray("float32",o),this.vel=createTypedArray("float32",o),i=0;i<o;i+=1)this.v[i]=t.k[i]*this.mult,this.pv[i]=t.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,n,r){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=n||1,this.elem=e,this.container=r,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,n,r){this.propType="multidimensional";var i,o=t.k.length,s,a,l,u;for(i=0;i<o-1;i+=1)t.k[i].to&&t.k[i].s&&t.k[i+1]&&t.k[i+1].s&&(s=t.k[i].s,a=t.k[i+1].s,l=t.k[i].to,u=t.k[i].ti,(s.length===2&&!(s[0]===a[0]&&s[1]===a[1])&&bez.pointOnLine2D(s[0],s[1],a[0],a[1],s[0]+l[0],s[1]+l[1])&&bez.pointOnLine2D(s[0],s[1],a[0],a[1],a[0]+u[0],a[1]+u[1])||s.length===3&&!(s[0]===a[0]&&s[1]===a[1]&&s[2]===a[2])&&bez.pointOnLine3D(s[0],s[1],s[2],a[0],a[1],a[2],s[0]+l[0],s[1]+l[1],s[2]+l[2])&&bez.pointOnLine3D(s[0],s[1],s[2],a[0],a[1],a[2],a[0]+u[0],a[1]+u[1],a[2]+u[2]))&&(t.k[i].to=null,t.k[i].ti=null),s[0]===a[0]&&s[1]===a[1]&&l[0]===0&&l[1]===0&&u[0]===0&&u[1]===0&&(s.length===2||s[2]===a[2]&&l[2]===0&&u[2]===0)&&(t.k[i].to=null,t.k[i].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=e,this.container=r,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var c=t.k[0].s.length;for(this.v=createTypedArray("float32",c),this.pv=createTypedArray("float32",c),i=0;i<c;i+=1)this.v[i]=initFrame,this.pv[i]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",c)},this.addEffect=addEffect}var PropertyFactory=function(){function e(n,r,i,o,s){r.sid&&(r=n.globalData.slotManager.getProp(r));var a;if(!r.k.length)a=new ValueProperty(n,r,o,s);else if(typeof r.k[0]=="number")a=new MultiDimensionalProperty(n,r,o,s);else switch(i){case 0:a=new KeyframedValueProperty(n,r,o,s);break;case 1:a=new KeyframedMultidimensionalProperty(n,r,o,s);break;default:break}return a.effectsSequence.length&&s.addDynamicProperty(a),a}var t={getProp:e};return t}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var t,n=this.dynamicProperties.length;for(t=0;t<n;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){function e(){return createTypedArray("float32",2)}return poolFactory(8,e)}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var n=0;n<t;)this.v[n]=pointPool.newElement(),this.o[n]=pointPool.newElement(),this.i[n]=pointPool.newElement(),n+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,n,r,i){var o;switch(this._length=Math.max(this._length,r+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":o=this.v;break;case"i":o=this.i;break;case"o":o=this.o;break;default:o=[];break}(!o[r]||o[r]&&!i)&&(o[r]=pointPool.newElement()),o[r][0]=e,o[r][1]=t},ShapePath.prototype.setTripleAt=function(e,t,n,r,i,o,s,a){this.setXYAt(e,t,"v",s,a),this.setXYAt(n,r,"o",s,a),this.setXYAt(i,o,"i",s,a)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,n=this.o,r=this.i,i=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],r[0][0],r[0][1],n[0][0],n[0][1],0,!1),i=1);var o=this._length-1,s=this._length,a;for(a=i;a<s;a+=1)e.setTripleAt(t[o][0],t[o][1],r[o][0],r[o][1],n[o][0],n[o][1],a,!1),o-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function e(){return new ShapePath}function t(i){var o=i._length,s;for(s=0;s<o;s+=1)pointPool.release(i.v[s]),pointPool.release(i.i[s]),pointPool.release(i.o[s]),i.v[s]=null,i.i[s]=null,i.o[s]=null;i._length=0,i.c=!1}function n(i){var o=r.newElement(),s,a=i._length===void 0?i.v.length:i._length;for(o.setLength(a),o.c=i.c,s=0;s<a;s+=1)o.setTripleAt(i.v[s][0],i.v[s][1],i.o[s][0],i.o[s][1],i.i[s][0],i.i[s][1],s);return o}var r=poolFactory(4,e,t);return r.clone=n,r}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=function(){var e={newShapeCollection:i,release:o},t=0,n=4,r=createSizedArray(n);function i(){var s;return t?(t-=1,s=r[t]):s=new ShapeCollection,s}function o(s){var a,l=s._length;for(a=0;a<l;a+=1)shapePool.release(s.shapes[a]);s._length=0,t===n&&(r=pooling.double(r),n*=2),r[t]=s,t+=1}return e}(),ShapePropertyFactory=function(){var e=-999999;function t(v,x,y){var _=y.lastIndex,w,k,O,M,I,W,J,H,ee,j=this.keyframes;if(v<j[0].t-this.offsetTime)w=j[0].s[0],O=!0,_=0;else if(v>=j[j.length-1].t-this.offsetTime)w=j[j.length-1].s?j[j.length-1].s[0]:j[j.length-2].e[0],O=!0;else{for(var V=_,B=j.length-1,N=!0,C,S,G;N&&(C=j[V],S=j[V+1],!(S.t-this.offsetTime>v));)V<B-1?V+=1:N=!1;if(G=this.keyframesMetadata[V]||{},O=C.h===1,_=V,!O){if(v>=S.t-this.offsetTime)H=1;else if(v<C.t-this.offsetTime)H=0;else{var T;G.__fnct?T=G.__fnct:(T=BezierFactory.getBezierEasing(C.o.x,C.o.y,C.i.x,C.i.y).get,G.__fnct=T),H=T((v-(C.t-this.offsetTime))/(S.t-this.offsetTime-(C.t-this.offsetTime)))}k=S.s?S.s[0]:C.e[0]}w=C.s[0]}for(W=x._length,J=w.i[0].length,y.lastIndex=_,M=0;M<W;M+=1)for(I=0;I<J;I+=1)ee=O?w.i[M][I]:w.i[M][I]+(k.i[M][I]-w.i[M][I])*H,x.i[M][I]=ee,ee=O?w.o[M][I]:w.o[M][I]+(k.o[M][I]-w.o[M][I])*H,x.o[M][I]=ee,ee=O?w.v[M][I]:w.v[M][I]+(k.v[M][I]-w.v[M][I])*H,x.v[M][I]=ee}function n(){var v=this.comp.renderedFrame-this.offsetTime,x=this.keyframes[0].t-this.offsetTime,y=this.keyframes[this.keyframes.length-1].t-this.offsetTime,_=this._caching.lastFrame;return _!==e&&(_<x&&v<x||_>y&&v>y)||(this._caching.lastIndex=_<v?this._caching.lastIndex:0,this.interpolateShape(v,this.pv,this._caching)),this._caching.lastFrame=v,this.pv}function r(){this.paths=this.localShapeCollection}function i(v,x){if(v._length!==x._length||v.c!==x.c)return!1;var y,_=v._length;for(y=0;y<_;y+=1)if(v.v[y][0]!==x.v[y][0]||v.v[y][1]!==x.v[y][1]||v.o[y][0]!==x.o[y][0]||v.o[y][1]!==x.o[y][1]||v.i[y][0]!==x.i[y][0]||v.i[y][1]!==x.i[y][1])return!1;return!0}function o(v){i(this.v,v)||(this.v=shapePool.clone(v),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function s(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var v;this.kf?v=this.pv:this.data.ks?v=this.data.ks.k:v=this.data.pt.k;var x,y=this.effectsSequence.length;for(x=0;x<y;x+=1)v=this.effectsSequence[x](v);this.setVValue(v),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function a(v,x,y){this.propType="shape",this.comp=v.comp,this.container=v,this.elem=v,this.data=x,this.k=!1,this.kf=!1,this._mdf=!1;var _=y===3?x.pt.k:x.ks.k;this.v=shapePool.clone(_),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function l(v){this.effectsSequence.push(v),this.container.addDynamicProperty(this)}a.prototype.interpolateShape=t,a.prototype.getValue=s,a.prototype.setVValue=o,a.prototype.addEffect=l;function u(v,x,y){this.propType="shape",this.comp=v.comp,this.elem=v,this.container=v,this.offsetTime=v.data.st,this.keyframes=y===3?x.pt.k:x.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var _=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,_),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=r,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[n.bind(this)]}u.prototype.getValue=s,u.prototype.interpolateShape=t,u.prototype.setVValue=o,u.prototype.addEffect=l;var c=function(){var v=roundCorner;function x(y,_){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=_.d,this.elem=y,this.comp=y.comp,this.frameId=-1,this.initDynamicPropertyContainer(y),this.p=PropertyFactory.getProp(y,_.p,1,0,this),this.s=PropertyFactory.getProp(y,_.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return x.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var _=this.p.v[0],w=this.p.v[1],k=this.s.v[0]/2,O=this.s.v[1]/2,M=this.d!==3,I=this.v;I.v[0][0]=_,I.v[0][1]=w-O,I.v[1][0]=M?_+k:_-k,I.v[1][1]=w,I.v[2][0]=_,I.v[2][1]=w+O,I.v[3][0]=M?_-k:_+k,I.v[3][1]=w,I.i[0][0]=M?_-k*v:_+k*v,I.i[0][1]=w-O,I.i[1][0]=M?_+k:_-k,I.i[1][1]=w-O*v,I.i[2][0]=M?_+k*v:_-k*v,I.i[2][1]=w+O,I.i[3][0]=M?_-k:_+k,I.i[3][1]=w+O*v,I.o[0][0]=M?_+k*v:_-k*v,I.o[0][1]=w-O,I.o[1][0]=M?_+k:_-k,I.o[1][1]=w+O*v,I.o[2][0]=M?_-k*v:_+k*v,I.o[2][1]=w+O,I.o[3][0]=M?_-k:_+k,I.o[3][1]=w-O*v}},extendPrototype([DynamicPropertyContainer],x),x}(),f=function(){function v(x,y){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=x,this.comp=x.comp,this.data=y,this.frameId=-1,this.d=y.d,this.initDynamicPropertyContainer(x),y.sy===1?(this.ir=PropertyFactory.getProp(x,y.ir,0,0,this),this.is=PropertyFactory.getProp(x,y.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(x,y.pt,0,0,this),this.p=PropertyFactory.getProp(x,y.p,1,0,this),this.r=PropertyFactory.getProp(x,y.r,0,degToRads,this),this.or=PropertyFactory.getProp(x,y.or,0,0,this),this.os=PropertyFactory.getProp(x,y.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return v.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var y=Math.floor(this.pt.v)*2,_=Math.PI*2/y,w=!0,k=this.or.v,O=this.ir.v,M=this.os.v,I=this.is.v,W=2*Math.PI*k/(y*2),J=2*Math.PI*O/(y*2),H,ee,j,V,B=-Math.PI/2;B+=this.r.v;var N=this.data.d===3?-1:1;for(this.v._length=0,H=0;H<y;H+=1){ee=w?k:O,j=w?M:I,V=w?W:J;var C=ee*Math.cos(B),S=ee*Math.sin(B),G=C===0&&S===0?0:S/Math.sqrt(C*C+S*S),T=C===0&&S===0?0:-C/Math.sqrt(C*C+S*S);C+=+this.p.v[0],S+=+this.p.v[1],this.v.setTripleAt(C,S,C-G*V*j*N,S-T*V*j*N,C+G*V*j*N,S+T*V*j*N,H,!0),w=!w,B+=_*N}},convertPolygonToPath:function(){var y=Math.floor(this.pt.v),_=Math.PI*2/y,w=this.or.v,k=this.os.v,O=2*Math.PI*w/(y*4),M,I=-Math.PI*.5,W=this.data.d===3?-1:1;for(I+=this.r.v,this.v._length=0,M=0;M<y;M+=1){var J=w*Math.cos(I),H=w*Math.sin(I),ee=J===0&&H===0?0:H/Math.sqrt(J*J+H*H),j=J===0&&H===0?0:-J/Math.sqrt(J*J+H*H);J+=+this.p.v[0],H+=+this.p.v[1],this.v.setTripleAt(J,H,J-ee*O*k*W,H-j*O*k*W,J+ee*O*k*W,H+j*O*k*W,M,!0),I+=_*W}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],v),v}(),d=function(){function v(x,y){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=x,this.comp=x.comp,this.frameId=-1,this.d=y.d,this.initDynamicPropertyContainer(x),this.p=PropertyFactory.getProp(x,y.p,1,0,this),this.s=PropertyFactory.getProp(x,y.s,1,0,this),this.r=PropertyFactory.getProp(x,y.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return v.prototype={convertRectToPath:function(){var y=this.p.v[0],_=this.p.v[1],w=this.s.v[0]/2,k=this.s.v[1]/2,O=bmMin(w,k,this.r.v),M=O*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(y+w,_-k+O,y+w,_-k+O,y+w,_-k+M,0,!0),this.v.setTripleAt(y+w,_+k-O,y+w,_+k-M,y+w,_+k-O,1,!0),O!==0?(this.v.setTripleAt(y+w-O,_+k,y+w-O,_+k,y+w-M,_+k,2,!0),this.v.setTripleAt(y-w+O,_+k,y-w+M,_+k,y-w+O,_+k,3,!0),this.v.setTripleAt(y-w,_+k-O,y-w,_+k-O,y-w,_+k-M,4,!0),this.v.setTripleAt(y-w,_-k+O,y-w,_-k+M,y-w,_-k+O,5,!0),this.v.setTripleAt(y-w+O,_-k,y-w+O,_-k,y-w+M,_-k,6,!0),this.v.setTripleAt(y+w-O,_-k,y+w-M,_-k,y+w-O,_-k,7,!0)):(this.v.setTripleAt(y-w,_+k,y-w+M,_+k,y-w,_+k,2),this.v.setTripleAt(y-w,_-k,y-w,_-k+M,y-w,_-k,3))):(this.v.setTripleAt(y+w,_-k+O,y+w,_-k+M,y+w,_-k+O,0,!0),O!==0?(this.v.setTripleAt(y+w-O,_-k,y+w-O,_-k,y+w-M,_-k,1,!0),this.v.setTripleAt(y-w+O,_-k,y-w+M,_-k,y-w+O,_-k,2,!0),this.v.setTripleAt(y-w,_-k+O,y-w,_-k+O,y-w,_-k+M,3,!0),this.v.setTripleAt(y-w,_+k-O,y-w,_+k-M,y-w,_+k-O,4,!0),this.v.setTripleAt(y-w+O,_+k,y-w+O,_+k,y-w+M,_+k,5,!0),this.v.setTripleAt(y+w-O,_+k,y+w-M,_+k,y+w-O,_+k,6,!0),this.v.setTripleAt(y+w,_+k-O,y+w,_+k-O,y+w,_+k-M,7,!0)):(this.v.setTripleAt(y-w,_-k,y-w+M,_-k,y-w,_-k,1,!0),this.v.setTripleAt(y-w,_+k,y-w,_+k-M,y-w,_+k,2,!0),this.v.setTripleAt(y+w,_+k,y+w-M,_+k,y+w,_+k,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},extendPrototype([DynamicPropertyContainer],v),v}();function h(v,x,y){var _;if(y===3||y===4){var w=y===3?x.pt:x.ks,k=w.k;k.length?_=new u(v,x,y):_=new a(v,x,y)}else y===5?_=new d(v,x):y===6?_=new c(v,x):y===7&&(_=new f(v,x));return _.k&&v.addDynamicProperty(_),_}function m(){return a}function g(){return u}var b={};return b.getShapeProp=h,b.getConstructorFunction=m,b.getKeyframedConstructorFunction=g,b}();var Matrix=function(){var e=Math.cos,t=Math.sin,n=Math.tan,r=Math.round;function i(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function o(N){if(N===0)return this;var C=e(N),S=t(N);return this._t(C,-S,0,0,S,C,0,0,0,0,1,0,0,0,0,1)}function s(N){if(N===0)return this;var C=e(N),S=t(N);return this._t(1,0,0,0,0,C,-S,0,0,S,C,0,0,0,0,1)}function a(N){if(N===0)return this;var C=e(N),S=t(N);return this._t(C,0,S,0,0,1,0,0,-S,0,C,0,0,0,0,1)}function l(N){if(N===0)return this;var C=e(N),S=t(N);return this._t(C,-S,0,0,S,C,0,0,0,0,1,0,0,0,0,1)}function u(N,C){return this._t(1,C,N,1,0,0)}function c(N,C){return this.shear(n(N),n(C))}function f(N,C){var S=e(C),G=t(C);return this._t(S,G,0,0,-G,S,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(N),1,0,0,0,0,1,0,0,0,0,1)._t(S,-G,0,0,G,S,0,0,0,0,1,0,0,0,0,1)}function d(N,C,S){return!S&&S!==0&&(S=1),N===1&&C===1&&S===1?this:this._t(N,0,0,0,0,C,0,0,0,0,S,0,0,0,0,1)}function h(N,C,S,G,T,Q,U,F,D,L,$,Z,se,Y,ue,pe){return this.props[0]=N,this.props[1]=C,this.props[2]=S,this.props[3]=G,this.props[4]=T,this.props[5]=Q,this.props[6]=U,this.props[7]=F,this.props[8]=D,this.props[9]=L,this.props[10]=$,this.props[11]=Z,this.props[12]=se,this.props[13]=Y,this.props[14]=ue,this.props[15]=pe,this}function m(N,C,S){return S=S||0,N!==0||C!==0||S!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,N,C,S,1):this}function g(N,C,S,G,T,Q,U,F,D,L,$,Z,se,Y,ue,pe){var oe=this.props;if(N===1&&C===0&&S===0&&G===0&&T===0&&Q===1&&U===0&&F===0&&D===0&&L===0&&$===1&&Z===0)return oe[12]=oe[12]*N+oe[15]*se,oe[13]=oe[13]*Q+oe[15]*Y,oe[14]=oe[14]*$+oe[15]*ue,oe[15]*=pe,this._identityCalculated=!1,this;var de=oe[0],ve=oe[1],Ae=oe[2],Ce=oe[3],Ge=oe[4],Ee=oe[5],Ne=oe[6],De=oe[7],Ue=oe[8],Re=oe[9],je=oe[10],$e=oe[11],Le=oe[12],Xe=oe[13],mt=oe[14],fe=oe[15];return oe[0]=de*N+ve*T+Ae*D+Ce*se,oe[1]=de*C+ve*Q+Ae*L+Ce*Y,oe[2]=de*S+ve*U+Ae*$+Ce*ue,oe[3]=de*G+ve*F+Ae*Z+Ce*pe,oe[4]=Ge*N+Ee*T+Ne*D+De*se,oe[5]=Ge*C+Ee*Q+Ne*L+De*Y,oe[6]=Ge*S+Ee*U+Ne*$+De*ue,oe[7]=Ge*G+Ee*F+Ne*Z+De*pe,oe[8]=Ue*N+Re*T+je*D+$e*se,oe[9]=Ue*C+Re*Q+je*L+$e*Y,oe[10]=Ue*S+Re*U+je*$+$e*ue,oe[11]=Ue*G+Re*F+je*Z+$e*pe,oe[12]=Le*N+Xe*T+mt*D+fe*se,oe[13]=Le*C+Xe*Q+mt*L+fe*Y,oe[14]=Le*S+Xe*U+mt*$+fe*ue,oe[15]=Le*G+Xe*F+mt*Z+fe*pe,this._identityCalculated=!1,this}function b(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function v(N){for(var C=0;C<16;){if(N.props[C]!==this.props[C])return!1;C+=1}return!0}function x(N){var C;for(C=0;C<16;C+=1)N.props[C]=this.props[C];return N}function y(N){var C;for(C=0;C<16;C+=1)this.props[C]=N[C]}function _(N,C,S){return{x:N*this.props[0]+C*this.props[4]+S*this.props[8]+this.props[12],y:N*this.props[1]+C*this.props[5]+S*this.props[9]+this.props[13],z:N*this.props[2]+C*this.props[6]+S*this.props[10]+this.props[14]}}function w(N,C,S){return N*this.props[0]+C*this.props[4]+S*this.props[8]+this.props[12]}function k(N,C,S){return N*this.props[1]+C*this.props[5]+S*this.props[9]+this.props[13]}function O(N,C,S){return N*this.props[2]+C*this.props[6]+S*this.props[10]+this.props[14]}function M(){var N=this.props[0]*this.props[5]-this.props[1]*this.props[4],C=this.props[5]/N,S=-this.props[1]/N,G=-this.props[4]/N,T=this.props[0]/N,Q=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/N,U=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/N,F=new Matrix;return F.props[0]=C,F.props[1]=S,F.props[4]=G,F.props[5]=T,F.props[12]=Q,F.props[13]=U,F}function I(N){var C=this.getInverseMatrix();return C.applyToPointArray(N[0],N[1],N[2]||0)}function W(N){var C,S=N.length,G=[];for(C=0;C<S;C+=1)G[C]=I(N[C]);return G}function J(N,C,S){var G=createTypedArray("float32",6);if(this.isIdentity())G[0]=N[0],G[1]=N[1],G[2]=C[0],G[3]=C[1],G[4]=S[0],G[5]=S[1];else{var T=this.props[0],Q=this.props[1],U=this.props[4],F=this.props[5],D=this.props[12],L=this.props[13];G[0]=N[0]*T+N[1]*U+D,G[1]=N[0]*Q+N[1]*F+L,G[2]=C[0]*T+C[1]*U+D,G[3]=C[0]*Q+C[1]*F+L,G[4]=S[0]*T+S[1]*U+D,G[5]=S[0]*Q+S[1]*F+L}return G}function H(N,C,S){var G;return this.isIdentity()?G=[N,C,S]:G=[N*this.props[0]+C*this.props[4]+S*this.props[8]+this.props[12],N*this.props[1]+C*this.props[5]+S*this.props[9]+this.props[13],N*this.props[2]+C*this.props[6]+S*this.props[10]+this.props[14]],G}function ee(N,C){if(this.isIdentity())return N+","+C;var S=this.props;return Math.round((N*S[0]+C*S[4]+S[12])*100)/100+","+Math.round((N*S[1]+C*S[5]+S[13])*100)/100}function j(){for(var N=0,C=this.props,S="matrix3d(",G=1e4;N<16;)S+=r(C[N]*G)/G,S+=N===15?")":",",N+=1;return S}function V(N){var C=1e4;return N<1e-6&&N>0||N>-1e-6&&N<0?r(N*C)/C:N}function B(){var N=this.props,C=V(N[0]),S=V(N[1]),G=V(N[4]),T=V(N[5]),Q=V(N[12]),U=V(N[13]);return"matrix("+C+","+S+","+G+","+T+","+Q+","+U+")"}return function(){this.reset=i,this.rotate=o,this.rotateX=s,this.rotateY=a,this.rotateZ=l,this.skew=c,this.skewFromAxis=f,this.shear=u,this.scale=d,this.setTransform=h,this.translate=m,this.transform=g,this.applyToPoint=_,this.applyToX=w,this.applyToY=k,this.applyToZ=O,this.applyToPointArray=H,this.applyToTriplePoints=J,this.applyToPointStringified=ee,this.toCSS=j,this.to2dCSS=B,this.clone=x,this.cloneFromProps=y,this.equals=v,this.inversePoints=W,this.inversePoint=I,this.getInverseMatrix=M,this._t=this.transform,this.isIdentity=b,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(n){return typeof n}:_typeof$3=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$3(e)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(e){setLocationHref(e)}function searchAnimations(){standalone===!0?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return standalone===!0&&(e.animationData=JSON.parse(animationData)),animationManager.loadAnimation(e)}function setQuality(e){if(typeof e=="string")switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return typeof navigator<"u"}function installPlugin(e,t){e==="expressions"&&setExpressionsPlugin(t)}function getFactory(e){switch(e){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.11.0";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),n=0;n<t.length;n+=1){var r=t[n].split("=");if(decodeURIComponent(r[0])==e)return decodeURIComponent(r[1])}return null}var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{!((typeof exports>"u"?"undefined":_typeof$3(exports))==="object"&&typeof module<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=lottie)}catch(e){}var ShapeModifiers=function(){var e={},t={};e.registerModifier=n,e.getModifier=r;function n(i,o){t[i]||(t[i]=o)}function r(i,o,s){return new t[i](o,s)}return e}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,n,r,i){var o=[];t<=1?o.push({s:e,e:t}):e>=1?o.push({s:e-1,e:t-1}):(o.push({s:e,e:1}),o.push({s:0,e:t-1}));var s=[],a,l=o.length,u;for(a=0;a<l;a+=1)if(u=o[a],!(u.e*i<r||u.s*i>r+n)){var c,f;u.s*i<=r?c=0:c=(u.s*i-r)/n,u.e*i>=r+n?f=1:f=(u.e*i-r)/n,s.push([c,f])}return s.length||s.push([0,0]),s},TrimModifier.prototype.releasePathsData=function(e){var t,n=e.length;for(t=0;t<n;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,n;if(this._mdf||e){var r=this.o.v%360/360;if(r<0&&(r+=1),this.s.v>1?t=1+r:this.s.v<0?t=0+r:t=this.s.v+r,this.e.v>1?n=1+r:this.e.v<0?n=0+r:n=this.e.v+r,t>n){var i=t;t=n,n=i}t=Math.round(t*1e4)*1e-4,n=Math.round(n*1e4)*1e-4,this.sValue=t,this.eValue=n}else t=this.sValue,n=this.eValue;var o,s,a=this.shapes.length,l,u,c,f,d,h=0;if(n===t)for(s=0;s<a;s+=1)this.shapes[s].localShapeCollection.releaseShapes(),this.shapes[s].shape._mdf=!0,this.shapes[s].shape.paths=this.shapes[s].localShapeCollection,this._mdf&&(this.shapes[s].pathsData.length=0);else if(n===1&&t===0||n===0&&t===1){if(this._mdf)for(s=0;s<a;s+=1)this.shapes[s].pathsData.length=0,this.shapes[s].shape._mdf=!0}else{var m=[],g,b;for(s=0;s<a;s+=1)if(g=this.shapes[s],!g.shape._mdf&&!this._mdf&&!e&&this.m!==2)g.shape.paths=g.localShapeCollection;else{if(o=g.shape.paths,u=o._length,d=0,!g.shape._mdf&&g.pathsData.length)d=g.totalShapeLength;else{for(c=this.releasePathsData(g.pathsData),l=0;l<u;l+=1)f=bez.getSegmentsLength(o.shapes[l]),c.push(f),d+=f.totalLength;g.totalShapeLength=d,g.pathsData=c}h+=d,g.shape._mdf=!0}var v=t,x=n,y=0,_;for(s=a-1;s>=0;s-=1)if(g=this.shapes[s],g.shape._mdf){for(b=g.localShapeCollection,b.releaseShapes(),this.m===2&&a>1?(_=this.calculateShapeEdges(t,n,g.totalShapeLength,y,h),y+=g.totalShapeLength):_=[[v,x]],u=_.length,l=0;l<u;l+=1){v=_[l][0],x=_[l][1],m.length=0,x<=1?m.push({s:g.totalShapeLength*v,e:g.totalShapeLength*x}):v>=1?m.push({s:g.totalShapeLength*(v-1),e:g.totalShapeLength*(x-1)}):(m.push({s:g.totalShapeLength*v,e:g.totalShapeLength}),m.push({s:0,e:g.totalShapeLength*(x-1)}));var w=this.addShapes(g,m[0]);if(m[0].s!==m[0].e){if(m.length>1){var k=g.shape.paths.shapes[g.shape.paths._length-1];if(k.c){var O=w.pop();this.addPaths(w,b),w=this.addShapes(g,m[1],O)}else this.addPaths(w,b),w=this.addShapes(g,m[1])}this.addPaths(w,b)}}g.shape.paths=b}}},TrimModifier.prototype.addPaths=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)t.addShape(e[n])},TrimModifier.prototype.addSegment=function(e,t,n,r,i,o,s){i.setXYAt(t[0],t[1],"o",o),i.setXYAt(n[0],n[1],"i",o+1),s&&i.setXYAt(e[0],e[1],"v",o),i.setXYAt(r[0],r[1],"v",o+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,n,r){t.setXYAt(e[1],e[5],"o",n),t.setXYAt(e[2],e[6],"i",n+1),r&&t.setXYAt(e[0],e[4],"v",n),t.setXYAt(e[3],e[7],"v",n+1)},TrimModifier.prototype.addShapes=function(e,t,n){var r=e.pathsData,i=e.shape.paths.shapes,o,s=e.shape.paths._length,a,l,u=0,c,f,d,h,m=[],g,b=!0;for(n?(f=n._length,g=n._length):(n=shapePool.newElement(),f=0,g=0),m.push(n),o=0;o<s;o+=1){for(d=r[o].lengths,n.c=i[o].c,l=i[o].c?d.length:d.length+1,a=1;a<l;a+=1)if(c=d[a-1],u+c.addedLength<t.s)u+=c.addedLength,n.c=!1;else if(u>t.e){n.c=!1;break}else t.s<=u&&t.e>=u+c.addedLength?(this.addSegment(i[o].v[a-1],i[o].o[a-1],i[o].i[a],i[o].v[a],n,f,b),b=!1):(h=bez.getNewSegment(i[o].v[a-1],i[o].v[a],i[o].o[a-1],i[o].i[a],(t.s-u)/c.addedLength,(t.e-u)/c.addedLength,d[a-1]),this.addSegmentFromArray(h,n,f,b),b=!1,n.c=!1),u+=c.addedLength,f+=1;if(i[o].c&&d.length){if(c=d[a-1],u<=t.e){var v=d[a-1].addedLength;t.s<=u&&t.e>=u+v?(this.addSegment(i[o].v[a-1],i[o].o[a-1],i[o].i[0],i[o].v[0],n,f,b),b=!1):(h=bez.getNewSegment(i[o].v[a-1],i[o].v[0],i[o].o[a-1],i[o].i[0],(t.s-u)/v,(t.e-u)/v,d[a-1]),this.addSegmentFromArray(h,n,f,b),b=!1,n.c=!1)}else n.c=!1;u+=c.addedLength,f+=1}if(n._length&&(n.setXYAt(n.v[g][0],n.v[g][1],"i",g),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),u>t.e)break;o<s-1&&(n=shapePool.newElement(),b=!0,m.push(n),f=0)}return m};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var n=t/100,r=[0,0],i=e._length,o=0;for(o=0;o<i;o+=1)r[0]+=e.v[o][0],r[1]+=e.v[o][1];r[0]/=i,r[1]/=i;var s=shapePool.newElement();s.c=e.c;var a,l,u,c,f,d;for(o=0;o<i;o+=1)a=e.v[o][0]+(r[0]-e.v[o][0])*n,l=e.v[o][1]+(r[1]-e.v[o][1])*n,u=e.o[o][0]+(r[0]-e.o[o][0])*-n,c=e.o[o][1]+(r[1]-e.o[o][1])*-n,f=e.i[o][0]+(r[0]-e.i[o][0])*-n,d=e.i[o][1]+(r[1]-e.i[o][1])*-n,s.setTripleAt(a,l,u,c,f,d,o);return s},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,n,r=this.shapes.length,i,o,s=this.amount.v;if(s!==0){var a,l;for(n=0;n<r;n+=1){if(a=this.shapes[n],l=a.localShapeCollection,!(!a.shape._mdf&&!this._mdf&&!e))for(l.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,o=a.shape.paths._length,i=0;i<o;i+=1)l.addShape(this.processPath(t[i],s));a.shape.paths=a.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(l){var u=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||u,this.a&&l.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&l.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&l.skewFromAxis(-this.sk.v,this.sa.v),this.r?l.rotate(-this.r.v):l.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.data.p.s?this.data.p.z?l.translate(this.px.v,this.py.v,-this.pz.v):l.translate(this.px.v,this.py.v,0):l.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function n(l){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||l){var u;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.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.autoOriented){var c,f;if(u=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(c=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/u,0),f=this.p.getValueAtTime(this.p.keyframes[0].t/u,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(c=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/u,0),f=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/u,0)):(c=this.p.pv,f=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/u,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){c=[],f=[];var d=this.px,h=this.py;d._caching.lastFrame+d.offsetTime<=d.keyframes[0].t?(c[0]=d.getValueAtTime((d.keyframes[0].t+.01)/u,0),c[1]=h.getValueAtTime((h.keyframes[0].t+.01)/u,0),f[0]=d.getValueAtTime(d.keyframes[0].t/u,0),f[1]=h.getValueAtTime(h.keyframes[0].t/u,0)):d._caching.lastFrame+d.offsetTime>=d.keyframes[d.keyframes.length-1].t?(c[0]=d.getValueAtTime(d.keyframes[d.keyframes.length-1].t/u,0),c[1]=h.getValueAtTime(h.keyframes[h.keyframes.length-1].t/u,0),f[0]=d.getValueAtTime((d.keyframes[d.keyframes.length-1].t-.01)/u,0),f[1]=h.getValueAtTime((h.keyframes[h.keyframes.length-1].t-.01)/u,0)):(c=[d.pv,h.pv],f[0]=d.getValueAtTime((d._caching.lastFrame+d.offsetTime-.01)/u,d.offsetTime),f[1]=h.getValueAtTime((h._caching.lastFrame+h.offsetTime-.01)/u,h.offsetTime))}else f=e,c=f;this.v.rotate(-Math.atan2(c[1]-f[1],c[0]-f[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 r(){if(!this.a.k)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 i(){}function o(l){this._addDynamicProperty(l),this.elem.addDynamicProperty(l),this._isDirty=!0}function s(l,u,c){if(this.elem=l,this.frameId=-1,this.propType="transform",this.data=u,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(c||l),u.p&&u.p.s?(this.px=PropertyFactory.getProp(l,u.p.x,0,0,this),this.py=PropertyFactory.getProp(l,u.p.y,0,0,this),u.p.z&&(this.pz=PropertyFactory.getProp(l,u.p.z,0,0,this))):this.p=PropertyFactory.getProp(l,u.p||{k:[0,0,0]},1,0,this),u.rx){if(this.rx=PropertyFactory.getProp(l,u.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(l,u.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(l,u.rz,0,degToRads,this),u.or.k[0].ti){var f,d=u.or.k.length;for(f=0;f<d;f+=1)u.or.k[f].to=null,u.or.k[f].ti=null}this.or=PropertyFactory.getProp(l,u.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(l,u.r||{k:0},0,degToRads,this);u.sk&&(this.sk=PropertyFactory.getProp(l,u.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(l,u.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(l,u.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(l,u.s||{k:[100,100,100]},1,.01,this),u.o?this.o=PropertyFactory.getProp(l,u.o,0,.01,l):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}s.prototype={applyToMatrix:t,getValue:n,precalculateMatrix:r,autoOrient:i},extendPrototype([DynamicPropertyContainer],s),s.prototype.addDynamicProperty=o,s.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function a(l,u,c){return new s(l,u,c)}return{getTransformProperty:a}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,n,r,i,o){var s=o?-1:1,a=r.s.v[0]+(1-r.s.v[0])*(1-i),l=r.s.v[1]+(1-r.s.v[1])*(1-i);e.translate(r.p.v[0]*s*i,r.p.v[1]*s*i,r.p.v[2]),t.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),t.rotate(-r.r.v*s*i),t.translate(r.a.v[0],r.a.v[1],r.a.v[2]),n.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),n.scale(o?1/a:a,o?1/l:l),n.translate(r.a.v[0],r.a.v[1],r.a.v[2])},RepeaterModifier.prototype.init=function(e,t,n,r){for(this.elem=e,this.arr=t,this.pos=n,this.elemsData=r,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[n]);n>0;)n-=1,this._elements.unshift(t[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t]._processed=!1,e[t].ty==="gr"&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)e[n]._render=t,e[n].ty==="gr"&&this.changeGroupRender(e[n].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,n,r,i,o,s=!1;if(this._mdf||e){var a=Math.ceil(this.c.v);if(this._groups.length<a){for(;this._groups.length<a;){var l={it:this.cloneElements(this._elements),ty:"gr"};l.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,l),this._groups.splice(0,0,l),this._currentCopies+=1}this.elem.reloadShapes(),s=!0}o=0;var u;for(r=0;r<=this._groups.length-1;r+=1){if(u=o<a,this._groups[r]._render=u,this.changeGroupRender(this._groups[r].it,u),!u){var c=this.elemsData[r].it,f=c[c.length-1];f.transform.op.v!==0?(f.transform.op._mdf=!0,f.transform.op.v=0):f.transform.op._mdf=!1}o+=1}this._currentCopies=a;var d=this.o.v,h=d%1,m=d>0?Math.floor(d):Math.ceil(d),g=this.pMatrix.props,b=this.rMatrix.props,v=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var x=0;if(d>0){for(;x<m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),x+=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,h,!1),x+=h)}else if(d<0){for(;x>m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),x-=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-h,!0),x-=h)}r=this.data.m===1?0:this._currentCopies-1,i=this.data.m===1?1:-1,o=this._currentCopies;for(var y,_;o;){if(t=this.elemsData[r].it,n=t[t.length-1].transform.mProps.v.props,_=n.length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),x!==0){for((r!==0&&i===1||r!==this._currentCopies-1&&i===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],b[9],b[10],b[11],b[12],b[13],b[14],b[15]),this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),y=0;y<_;y+=1)n[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<_;y+=1)n[y]=this.matrix.props[y];x+=1,o-=1,r+=i}}else for(o=this._currentCopies,r=0,i=1;o;)t=this.elemsData[r].it,n=t[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,o-=1,r+=i;return s},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var n=shapePool.newElement();n.c=e.c;var r,i=e._length,o,s,a,l,u,c,f=0,d,h,m,g,b,v;for(r=0;r<i;r+=1)o=e.v[r],a=e.o[r],s=e.i[r],o[0]===a[0]&&o[1]===a[1]&&o[0]===s[0]&&o[1]===s[1]?(r===0||r===i-1)&&!e.c?(n.setTripleAt(o[0],o[1],a[0],a[1],s[0],s[1],f),f+=1):(r===0?l=e.v[i-1]:l=e.v[r-1],u=Math.sqrt(Math.pow(o[0]-l[0],2)+Math.pow(o[1]-l[1],2)),c=u?Math.min(u/2,t)/u:0,b=o[0]+(l[0]-o[0])*c,d=b,v=o[1]-(o[1]-l[1])*c,h=v,m=d-(d-o[0])*roundCorner,g=h-(h-o[1])*roundCorner,n.setTripleAt(d,h,m,g,b,v,f),f+=1,r===i-1?l=e.v[0]:l=e.v[r+1],u=Math.sqrt(Math.pow(o[0]-l[0],2)+Math.pow(o[1]-l[1],2)),c=u?Math.min(u/2,t)/u:0,m=o[0]+(l[0]-o[0])*c,d=m,g=o[1]+(l[1]-o[1])*c,h=g,b=d-(d-o[0])*roundCorner,v=h-(h-o[1])*roundCorner,n.setTripleAt(d,h,m,g,b,v,f),f+=1):(n.setTripleAt(e.v[r][0],e.v[r][1],e.o[r][0],e.o[r][1],e.i[r][0],e.i[r][1],f),f+=1);return n},RoundCornersModifier.prototype.processShapes=function(e){var t,n,r=this.shapes.length,i,o,s=this.rd.v;if(s!==0){var a,l;for(n=0;n<r;n+=1){if(a=this.shapes[n],l=a.localShapeCollection,!(!a.shape._mdf&&!this._mdf&&!e))for(l.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,o=a.shape.paths._length,i=0;i<o;i+=1)l.addShape(this.processPath(t[i],s));a.shape.paths=a.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(e,t){return Math.abs(e-t)*1e5<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,n){return e*(1-n)+t*n}function lerpPoint(e,t,n){return[lerp(e[0],t[0],n),lerp(e[1],t[1],n)]}function quadRoots(e,t,n){if(e===0)return[];var r=t*t-4*e*n;if(r<0)return[];var i=-t/(2*e);if(r===0)return[i];var o=Math.sqrt(r)/(2*e);return[i-o,i+o]}function polynomialCoefficients(e,t,n,r){return[-e+3*t-3*n+r,3*e-6*t+3*n,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,n,r,i){i&&pointEqual(e,t)&&(t=lerpPoint(e,r,1/3)),i&&pointEqual(n,r)&&(n=lerpPoint(e,r,2/3));var o=polynomialCoefficients(e[0],t[0],n[0],r[0]),s=polynomialCoefficients(e[1],t[1],n[1],r[1]);this.a=[o[0],s[0]],this.b=[o[1],s[1]],this.c=[o[2],s[2]],this.d=[o[3],s[3]],this.points=[e,t,n,r]}PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,n=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(n<0)return[];var r=Math.sqrt(n);return floatZero(r)?r>0&&r<1?[t]:[]:[t-r,t+r].filter(function(i){return i>0&&i<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),n=lerpPoint(this.points[1],this.points[2],e),r=lerpPoint(this.points[2],this.points[3],e),i=lerpPoint(t,n,e),o=lerpPoint(n,r,e),s=lerpPoint(i,o,e);return[new PolynomialBezier(this.points[0],t,i,s,!0),new PolynomialBezier(s,o,r,this.points[3],!0)]};function extrema(e,t){var n=e.points[0][t],r=e.points[e.points.length-1][t];if(n>r){var i=r;r=n,n=i}for(var o=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),s=0;s<o.length;s+=1)if(o[s]>0&&o[s]<1){var a=e.point(o[s])[t];a<n?n=a:a>r&&(r=a)}return{min:n,max:r}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function intersectData(e,t,n){var r=e.boundingBox();return{cx:r.cx,cy:r.cy,width:r.width,height:r.height,bez:e,t:(t+n)/2,t1:t,t2:n}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return Math.abs(e.cx-t.cx)*2<e.width+t.width&&Math.abs(e.cy-t.cy)*2<e.height+t.height}function intersectsImpl(e,t,n,r,i,o){if(!!boxIntersect(e,t)){if(n>=o||e.width<=r&&e.height<=r&&t.width<=r&&t.height<=r){i.push([e.t,t.t]);return}var s=splitData(e),a=splitData(t);intersectsImpl(s[0],a[0],n+1,r,i,o),intersectsImpl(s[0],a[1],n+1,r,i,o),intersectsImpl(s[1],a[0],n+1,r,i,o),intersectsImpl(s[1],a[1],n+1,r,i,o)}}PolynomialBezier.prototype.intersections=function(e,t,n){t===void 0&&(t=2),n===void 0&&(n=7);var r=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,r,n),r},PolynomialBezier.shapeSegment=function(e,t){var n=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[n],e.v[n],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var n=(t+1)%e.length();return new PolynomialBezier(e.v[n],e.i[n],e.o[t],e.v[t],!0)};function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,n,r){var i=[e[0],e[1],1],o=[t[0],t[1],1],s=[n[0],n[1],1],a=[r[0],r[1],1],l=crossProduct(crossProduct(i,o),crossProduct(s,a));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(e,t,n){return[e[0]+Math.cos(t)*n,e[1]-Math.sin(t)*n]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(e,t,n,r,i,o,s){var a=n-Math.PI/2,l=n+Math.PI/2,u=t[0]+Math.cos(n)*r*i,c=t[1]-Math.sin(n)*r*i;e.setTripleAt(u,c,u+Math.cos(a)*o,c-Math.sin(a)*o,u+Math.cos(l)*s,c-Math.sin(l)*s,e.length())}function getPerpendicularVector(e,t){var n=[t[0]-e[0],t[1]-e[1]],r=-Math.PI*.5,i=[Math.cos(r)*n[0]-Math.sin(r)*n[1],Math.sin(r)*n[0]+Math.cos(r)*n[1]];return i}function getProjectingAngle(e,t){var n=t===0?e.length()-1:t-1,r=(t+1)%e.length(),i=e.v[n],o=e.v[r],s=getPerpendicularVector(i,o);return Math.atan2(0,1)-Math.atan2(s[1],s[0])}function zigZagCorner(e,t,n,r,i,o,s){var a=getProjectingAngle(t,n),l=t.v[n%t._length],u=t.v[n===0?t._length-1:n-1],c=t.v[(n+1)%t._length],f=o===2?Math.sqrt(Math.pow(l[0]-u[0],2)+Math.pow(l[1]-u[1],2)):0,d=o===2?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0;setPoint(e,t.v[n%t._length],a,s,r,d/((i+1)*2),f/((i+1)*2),o)}function zigZagSegment(e,t,n,r,i,o){for(var s=0;s<r;s+=1){var a=(s+1)/(r+1),l=i===2?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,u=t.normalAngle(a),c=t.point(a);setPoint(e,c,u,o,n,l/((r+1)*2),l/((r+1)*2),i),o=-o}return o}ZigZagModifier.prototype.processPath=function(e,t,n,r){var i=e._length,o=shapePool.newElement();if(o.c=e.c,e.c||(i-=1),i===0)return o;var s=-1,a=PolynomialBezier.shapeSegment(e,0);zigZagCorner(o,e,0,t,n,r,s);for(var l=0;l<i;l+=1)s=zigZagSegment(o,a,t,n,r,-s),l===i-1&&!e.c?a=null:a=PolynomialBezier.shapeSegment(e,(l+1)%i),zigZagCorner(o,e,l+1,t,n,r,s);return o},ZigZagModifier.prototype.processShapes=function(e){var t,n,r=this.shapes.length,i,o,s=this.amplitude.v,a=Math.max(0,Math.round(this.frequency.v)),l=this.pointsType.v;if(s!==0){var u,c;for(n=0;n<r;n+=1){if(u=this.shapes[n],c=u.localShapeCollection,!(!u.shape._mdf&&!this._mdf&&!e))for(c.releaseShapes(),u.shape._mdf=!0,t=u.shape.paths.shapes,o=u.shape.paths._length,i=0;i<o;i+=1)c.addShape(this.processPath(t[i],s,a,l));u.shape.paths=u.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(e,t,n){var r=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,r,n),polarOffset(t,r,n)]}function offsetSegment(e,t){var n,r,i,o,s,a,l;l=linearOffset(e.points[0],e.points[1],t),n=l[0],r=l[1],l=linearOffset(e.points[1],e.points[2],t),i=l[0],o=l[1],l=linearOffset(e.points[2],e.points[3],t),s=l[0],a=l[1];var u=lineIntersection(n,r,i,o);u===null&&(u=r);var c=lineIntersection(s,a,i,o);return c===null&&(c=s),new PolynomialBezier(n,u,c,a)}function joinLines(e,t,n,r,i){var o=t.points[3],s=n.points[0];if(r===3||pointEqual(o,s))return o;if(r===2){var a=-t.tangentAngle(1),l=-n.tangentAngle(0)+Math.PI,u=lineIntersection(o,polarOffset(o,a+Math.PI/2,100),s,polarOffset(s,a+Math.PI/2,100)),c=u?pointDistance(u,o):pointDistance(o,s)/2,f=polarOffset(o,a,2*c*roundCorner);return e.setXYAt(f[0],f[1],"o",e.length()-1),f=polarOffset(s,l,2*c*roundCorner),e.setTripleAt(s[0],s[1],s[0],s[1],f[0],f[1],e.length()),s}var d=pointEqual(o,t.points[2])?t.points[0]:t.points[2],h=pointEqual(s,n.points[1])?n.points[3]:n.points[1],m=lineIntersection(d,o,s,h);return m&&pointDistance(m,o)<i?(e.setTripleAt(m[0],m[1],m[0],m[1],m[0],m[1],e.length()),m):o}function getIntersection(e,t){var n=e.intersections(t);return n.length&&floatEqual(n[0][0],1)&&n.shift(),n.length?n[0]:null}function pruneSegmentIntersection(e,t){var n=e.slice(),r=t.slice(),i=getIntersection(e[e.length-1],t[0]);return i&&(n[e.length-1]=e[e.length-1].split(i[0])[0],r[0]=t[0].split(i[1])[1]),e.length>1&&t.length>1&&(i=getIntersection(e[0],t[t.length-1]),i)?[[e[0].split(i[0])[0]],[t[t.length-1].split(i[1])[1]]]:[n,r]}function pruneIntersections(e){for(var t,n=1;n<e.length;n+=1)t=pruneSegmentIntersection(e[n-1],e[n]),e[n-1]=t[0],e[n]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var n=e.inflectionPoints(),r,i,o,s;if(n.length===0)return[offsetSegment(e,t)];if(n.length===1||floatEqual(n[1],1))return o=e.split(n[0]),r=o[0],i=o[1],[offsetSegment(r,t),offsetSegment(i,t)];o=e.split(n[0]),r=o[0];var a=(n[1]-n[0])/(1-n[0]);return o=o[1].split(a),s=o[0],i=o[1],[offsetSegment(r,t),offsetSegment(s,t),offsetSegment(i,t)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(e,t,n,r){var i=shapePool.newElement();i.c=e.c;var o=e.length();e.c||(o-=1);var s,a,l,u=[];for(s=0;s<o;s+=1)l=PolynomialBezier.shapeSegment(e,s),u.push(offsetSegmentSplit(l,t));if(!e.c)for(s=o-1;s>=0;s-=1)l=PolynomialBezier.shapeSegmentInverted(e,s),u.push(offsetSegmentSplit(l,t));u=pruneIntersections(u);var c=null,f=null;for(s=0;s<u.length;s+=1){var d=u[s];for(f&&(c=joinLines(i,f,d[0],n,r)),f=d[d.length-1],a=0;a<d.length;a+=1)l=d[a],c&&pointEqual(l.points[0],c)?i.setXYAt(l.points[1][0],l.points[1][1],"o",i.length()-1):i.setTripleAt(l.points[0][0],l.points[0][1],l.points[1][0],l.points[1][1],l.points[0][0],l.points[0][1],i.length()),i.setTripleAt(l.points[3][0],l.points[3][1],l.points[3][0],l.points[3][1],l.points[2][0],l.points[2][1],i.length()),c=l.points[3]}return u.length&&joinLines(i,f,u[0][0],n,r),i},OffsetPathModifier.prototype.processShapes=function(e){var t,n,r=this.shapes.length,i,o,s=this.amount.v,a=this.miterLimit.v,l=this.lineJoin;if(s!==0){var u,c;for(n=0;n<r;n+=1){if(u=this.shapes[n],c=u.localShapeCollection,!(!u.shape._mdf&&!this._mdf&&!e))for(c.releaseShapes(),u.shape._mdf=!0,t=u.shape.paths.shapes,o=u.shape.paths._length,i=0;i<o;i+=1)c.addShape(this.processPath(t[i],s,l,a));u.shape.paths=u.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],n="normal",r="normal",i=t.length,o,s=0;s<i;s+=1)switch(o=t[s].toLowerCase(),o){case"italic":r="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200";break;default:break}return{style:r,weight:e.fWeight||n}}var FontManager=function(){var e=5e3,t={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],i=[65039,8205];function o(_){var w=_.split(","),k,O=w.length,M=[];for(k=0;k<O;k+=1)w[k]!=="sans-serif"&&w[k]!=="monospace"&&M.push(w[k]);return M.join(",")}function s(_,w){var k=createTag("span");k.setAttribute("aria-hidden",!0),k.style.fontFamily=w;var O=createTag("span");O.innerText="giItT1WQy@!-/#",k.style.position="absolute",k.style.left="-10000px",k.style.top="-10000px",k.style.fontSize="300px",k.style.fontVariant="normal",k.style.fontStyle="normal",k.style.fontWeight="normal",k.style.letterSpacing="0",k.appendChild(O),document.body.appendChild(k);var M=O.offsetWidth;return O.style.fontFamily=o(_)+", "+w,{node:O,w:M,parent:k}}function a(){var _,w=this.fonts.length,k,O,M=w;for(_=0;_<w;_+=1)this.fonts[_].loaded?M-=1:this.fonts[_].fOrigin==="n"||this.fonts[_].origin===0?this.fonts[_].loaded=!0:(k=this.fonts[_].monoCase.node,O=this.fonts[_].monoCase.w,k.offsetWidth!==O?(M-=1,this.fonts[_].loaded=!0):(k=this.fonts[_].sansCase.node,O=this.fonts[_].sansCase.w,k.offsetWidth!==O&&(M-=1,this.fonts[_].loaded=!0)),this.fonts[_].loaded&&(this.fonts[_].sansCase.parent.parentNode.removeChild(this.fonts[_].sansCase.parent),this.fonts[_].monoCase.parent.parentNode.removeChild(this.fonts[_].monoCase.parent)));M!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function l(_,w){var k=document.body&&w?"svg":"canvas",O,M=getFontProperties(_);if(k==="svg"){var I=createNS("text");I.style.fontSize="100px",I.setAttribute("font-family",_.fFamily),I.setAttribute("font-style",M.style),I.setAttribute("font-weight",M.weight),I.textContent="1",_.fClass?(I.style.fontFamily="inherit",I.setAttribute("class",_.fClass)):I.style.fontFamily=_.fFamily,w.appendChild(I),O=I}else{var W=new OffscreenCanvas(500,500).getContext("2d");W.font=M.style+" "+M.weight+" 100px "+_.fFamily,O=W}function J(H){return k==="svg"?(O.textContent=H,O.getComputedTextLength()):O.measureText(H).width}return{measureText:J}}function u(_,w){if(!_){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=_.list;return}if(!document.body){this.isLoaded=!0,_.list.forEach(function(B){B.helper=l(B),B.cache={}}),this.fonts=_.list;return}var k=_.list,O,M=k.length,I=M;for(O=0;O<M;O+=1){var W=!0,J,H;if(k[O].loaded=!1,k[O].monoCase=s(k[O].fFamily,"monospace"),k[O].sansCase=s(k[O].fFamily,"sans-serif"),!k[O].fPath)k[O].loaded=!0,I-=1;else if(k[O].fOrigin==="p"||k[O].origin===3){if(J=document.querySelectorAll('style[f-forigin="p"][f-family="'+k[O].fFamily+'"], style[f-origin="3"][f-family="'+k[O].fFamily+'"]'),J.length>0&&(W=!1),W){var ee=createTag("style");ee.setAttribute("f-forigin",k[O].fOrigin),ee.setAttribute("f-origin",k[O].origin),ee.setAttribute("f-family",k[O].fFamily),ee.type="text/css",ee.innerText="@font-face {font-family: "+k[O].fFamily+"; font-style: normal; src: url('"+k[O].fPath+"');}",w.appendChild(ee)}}else if(k[O].fOrigin==="g"||k[O].origin===1){for(J=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),H=0;H<J.length;H+=1)J[H].href.indexOf(k[O].fPath)!==-1&&(W=!1);if(W){var j=createTag("link");j.setAttribute("f-forigin",k[O].fOrigin),j.setAttribute("f-origin",k[O].origin),j.type="text/css",j.rel="stylesheet",j.href=k[O].fPath,document.body.appendChild(j)}}else if(k[O].fOrigin==="t"||k[O].origin===2){for(J=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),H=0;H<J.length;H+=1)k[O].fPath===J[H].src&&(W=!1);if(W){var V=createTag("link");V.setAttribute("f-forigin",k[O].fOrigin),V.setAttribute("f-origin",k[O].origin),V.setAttribute("rel","stylesheet"),V.setAttribute("href",k[O].fPath),w.appendChild(V)}}k[O].helper=l(k[O],w),k[O].cache={},this.fonts.push(k[O])}I===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function c(_){if(!!_){this.chars||(this.chars=[]);var w,k=_.length,O,M=this.chars.length,I;for(w=0;w<k;w+=1){for(O=0,I=!1;O<M;)this.chars[O].style===_[w].style&&this.chars[O].fFamily===_[w].fFamily&&this.chars[O].ch===_[w].ch&&(I=!0),O+=1;I||(this.chars.push(_[w]),M+=1)}}}function f(_,w,k){for(var O=0,M=this.chars.length;O<M;){if(this.chars[O].ch===_&&this.chars[O].style===w&&this.chars[O].fFamily===k)return this.chars[O];O+=1}return(typeof _=="string"&&_.charCodeAt(0)!==13||!_)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",_,w,k)),t}function d(_,w,k){var O=this.getFontByName(w),M=_.charCodeAt(0);if(!O.cache[M+1]){var I=O.helper;if(_===" "){var W=I.measureText("|"+_+"|"),J=I.measureText("||");O.cache[M+1]=(W-J)/100}else O.cache[M+1]=I.measureText(_)/100}return O.cache[M+1]*k}function h(_){for(var w=0,k=this.fonts.length;w<k;){if(this.fonts[w].fName===_)return this.fonts[w];w+=1}return this.fonts[0]}function m(_,w){var k=_.toString(16)+w.toString(16);return r.indexOf(k)!==-1}function g(_,w){return w?_===i[0]&&w===i[1]:_===i[1]}function b(_){return n.indexOf(_)!==-1}function v(){this.isLoaded=!0}var x=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)};x.isModifier=m,x.isZeroWidthJoiner=g,x.isCombinedCharacter=b;var y={addChars:c,addFonts:u,getCharData:f,getFontByName:h,measureText:d,checkLoadedFonts:a,setIsLoaded:v};return x.prototype=y,x}();function SlotManager(e){this.animationData=e}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){this.renderableComponents.indexOf(t)===-1&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){this.renderableComponents.indexOf(t)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},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(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?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 t,n=this.renderableComponents.length;for(t=0;t<n;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(t){return e[t]||""}}();function SliderEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function AngleEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function ColorEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function PointEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function LayerIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function MaskIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function CheckboxEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var n=e.ef||[];this.effectElements=[];var r,i=n.length,o;for(r=0;r<i;r+=1)o=new GroupEffect(n[r],t),this.effectElements.push(o)}function GroupEffect(e,t){this.init(e,t)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var n,r=this.data.ef.length,i,o=this.data.ef;for(n=0;n<r;n+=1){switch(i=null,o[n].ty){case 0:i=new SliderEffect(o[n],t,this);break;case 1:i=new AngleEffect(o[n],t,this);break;case 2:i=new ColorEffect(o[n],t,this);break;case 3:i=new PointEffect(o[n],t,this);break;case 4:case 7:i=new CheckboxEffect(o[n],t,this);break;case 10:i=new LayerIndexEffect(o[n],t,this);break;case 11:i=new MaskIndexEffect(o[n],t,this);break;case 5:i=new EffectsManager(o[n],t,this);break;default:i=new NoValueEffect(o[n],t,this);break}i&&this.effectElements.push(i)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,n=this.data.masksProperties.length;t<n;){if(this.data.masksProperties[t].mode!=="n"&&this.data.masksProperties[t].cl!==!1)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(!!t){var n=t("layer"),r=t("effects"),i=t("shape"),o=t("text"),s=t("comp");this.layerInterface=n(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=r.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),this.data.ty===0||this.data.xt?this.compInterface=s(this):this.data.ty===4?(this.layerInterface.shapeInterface=i(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=o(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm),n=this.baseElement||this.layerElement;n.style["mix-blend-mode"]=t},initBaseData:function(t,n,r){this.globalData=n,this.comp=r,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,n){var r,i=this.dynamicProperties.length;for(r=0;r<i;r+=1)(n||this._isParent&&this.dynamicProperties[r].propType==="transform")&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&this.dynamicProperties.push(t)}};function FootageElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,n)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(!!e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,n),this._isPlaying=!1,this._canPlay=!1;var r=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(r),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.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(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*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(e){var t,n=this.layers.length,r;for(this.completeLayers=!0,t=n-1;t>=0;t-=1)this.elements[t]||(r=this.layers[t],r.ip-r.st<=e-this.layers[t].st&&r.op-r.st>e-this.layers[t].st&&this.buildItem(t)),this.completeLayers=this.elements[t]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){this.completeLayers=!1;var t,n=e.length,r,i=this.layers.length;for(t=0;t<n;t+=1)for(r=0;r<i;){if(this.layers[r].id===e[t].id){this.layers[r]=e[t];break}r+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,n){for(var r=this.elements,i=this.layers,o=0,s=i.length;o<s;)i[o].ind==t&&(!r[o]||r[o]===!0?(this.buildItem(o),this.addPendingElement(e)):(n.push(r[o]),r[o].setAsParent(),i[o].parent!==void 0?this.buildElementParenting(e,i[o].parent,n):e.setHierarchy(n))),o+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,n=e.length;for(t=0;t<n;t+=1)if(e[t].xt){var r=this.createComp(e[t]);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},BaseRenderer.prototype.getElementById=function(e){var t,n=this.elements.length;for(t=0;t<n;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t=e.shift(),n;if(typeof t=="number")n=this.elements[t];else{var r,i=this.elements.length;for(r=0;r<i;r+=1)if(this.elements[r].data.nm===t){n=this.elements[r];break}}return e.length===0?n:n.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};function TransformElement(){}TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,n=this.finalTransform.mat,r=0,i=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<i;){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}r+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,n.cloneFromProps(t),r=0;r<i;r+=1)t=this.hierarchy[r].finalTransform.mProp.v.props,n.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])}},globalToLocal:function(t){var n=[];n.push(this.finalTransform);for(var r=!0,i=this.comp;r;)i.finalTransform?(i.data.hasMask&&n.splice(0,0,i.finalTransform),i=i.comp):r=!1;var o,s=n.length,a;for(o=0;o<s;o+=1)a=n[o].mat.applyToPointArray(0,0,0),t=[t[0]-a[0],t[1]-a[1],0];return t},mHelper:new Matrix};function MaskElement(e,t,n){this.data=e,this.element=t,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var r=this.globalData.defs,i,o=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(o),this.solidPath="";var s,a=this.masksProperties,l=0,u=[],c,f,d=createElementID(),h,m,g,b,v="clipPath",x="clip-path";for(i=0;i<o;i+=1)if((a[i].mode!=="a"&&a[i].mode!=="n"||a[i].inv||a[i].o.k!==100||a[i].o.x)&&(v="mask",x="mask"),(a[i].mode==="s"||a[i].mode==="i")&&l===0?(h=createNS("rect"),h.setAttribute("fill","#ffffff"),h.setAttribute("width",this.element.comp.data.w||0),h.setAttribute("height",this.element.comp.data.h||0),u.push(h)):h=null,s=createNS("path"),a[i].mode==="n")this.viewData[i]={op:PropertyFactory.getProp(this.element,a[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,a[i],3),elem:s,lastPath:""},r.appendChild(s);else{l+=1,s.setAttribute("fill",a[i].mode==="s"?"#000000":"#ffffff"),s.setAttribute("clip-rule","nonzero");var y;if(a[i].x.k!==0?(v="mask",x="mask",b=PropertyFactory.getProp(this.element,a[i].x,0,null,this.element),y=createElementID(),m=createNS("filter"),m.setAttribute("id",y),g=createNS("feMorphology"),g.setAttribute("operator","erode"),g.setAttribute("in","SourceGraphic"),g.setAttribute("radius","0"),m.appendChild(g),r.appendChild(m),s.setAttribute("stroke",a[i].mode==="s"?"#000000":"#ffffff")):(g=null,b=null),this.storedData[i]={elem:s,x:b,expan:g,lastPath:"",lastOperator:"",filterId:y,lastRadius:0},a[i].mode==="i"){f=u.length;var _=createNS("g");for(c=0;c<f;c+=1)_.appendChild(u[c]);var w=createNS("mask");w.setAttribute("mask-type","alpha"),w.setAttribute("id",d+"_"+l),w.appendChild(s),r.appendChild(w),_.setAttribute("mask","url("+getLocationHref()+"#"+d+"_"+l+")"),u.length=0,u.push(_)}else u.push(s);a[i].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[i]={elem:s,lastPath:"",op:PropertyFactory.getProp(this.element,a[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,a[i],3),invRect:h},this.viewData[i].prop.k||this.drawPath(a[i],this.viewData[i].prop.v,this.viewData[i])}for(this.maskElement=createNS(v),o=u.length,i=0;i<o;i+=1)this.maskElement.appendChild(u[i]);l>0&&(this.maskElement.setAttribute("id",d),this.element.maskedElement.setAttribute(x,"url("+getLocationHref()+"#"+d+")"),r.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t=this.element.finalTransform.mat,n,r=this.masksProperties.length;for(n=0;n<r;n+=1)if((this.viewData[n].prop._mdf||e)&&this.drawPath(this.masksProperties[n],this.viewData[n].prop.v,this.viewData[n]),(this.viewData[n].op._mdf||e)&&this.viewData[n].elem.setAttribute("fill-opacity",this.viewData[n].op.v),this.masksProperties[n].mode!=="n"&&(this.viewData[n].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[n].invRect.setAttribute("transform",t.getInverseMatrix().to2dCSS()),this.storedData[n].x&&(this.storedData[n].x._mdf||e))){var i=this.storedData[n].expan;this.storedData[n].x.v<0?(this.storedData[n].lastOperator!=="erode"&&(this.storedData[n].lastOperator="erode",this.storedData[n].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[n].filterId+")")),i.setAttribute("radius",-this.storedData[n].x.v)):(this.storedData[n].lastOperator!=="dilate"&&(this.storedData[n].lastOperator="dilate",this.storedData[n].elem.setAttribute("filter",null)),this.storedData[n].elem.setAttribute("stroke-width",this.storedData[n].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},MaskElement.prototype.drawPath=function(e,t,n){var r=" M"+t.v[0][0]+","+t.v[0][1],i,o;for(o=t._length,i=1;i<o;i+=1)r+=" C"+t.o[i-1][0]+","+t.o[i-1][1]+" "+t.i[i][0]+","+t.i[i][1]+" "+t.v[i][0]+","+t.v[i][1];if(t.c&&o>1&&(r+=" C"+t.o[i-1][0]+","+t.o[i-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),n.lastPath!==r){var s="";n.elem&&(t.c&&(s=e.inv?this.solidPath+r:r),n.elem.setAttribute("d",s)),n.lastPath=r}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={};e.createFilter=t,e.createAlphaToLuminanceFilter=n;function t(r,i){var o=createNS("filter");return o.setAttribute("id",r),i!==!0&&(o.setAttribute("filterUnits","objectBoundingBox"),o.setAttribute("x","0%"),o.setAttribute("y","0%"),o.setAttribute("width","100%"),o.setAttribute("height","100%")),o}function n(){var r=createNS("feColorMatrix");return r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),r}return e}(),featureSupport=function(){var e={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))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(e){var t,n="SourceGraphic",r=e.data.ef?e.data.ef.length:0,i=createElementID(),o=filtersFactory.createFilter(i,!0),s=0;this.filters=[];var a;for(t=0;t<r;t+=1){a=null;var l=e.data.ef[t].ty;if(registeredEffects[l]){var u=registeredEffects[l].effect;a=new u(o,e.effectsManager.effectElements[t],e,idPrefix+s,n),n=idPrefix+s,registeredEffects[l].countsAsEffect&&(s+=1)}a&&this.filters.push(a)}s&&(e.globalData.defs.appendChild(o),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+i+")")),this.filters.length&&e.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)};function registerEffect(e,t,n){registeredEffects[e]={effect:t,countsAsEffect:n}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var n=createNS("g");n.setAttribute("id",this.layerId),n.appendChild(this.layerElement),t=n,this.globalData.defs.appendChild(n)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var r=createNS("clipPath"),i=createNS("path");i.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var o=createElementID();if(r.setAttribute("id",o),r.appendChild(i),this.globalData.defs.appendChild(r),this.checkMasks()){var s=createNS("g");s.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")"),s.appendChild(this.layerElement),this.transformedElement=s,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this)},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var n=this.layerId+"_"+t,r,i,o,s;if(t===1||t===3){var a=createNS("mask");a.setAttribute("id",n),a.setAttribute("mask-type",t===3?"luminance":"alpha"),o=createNS("use"),o.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),a.appendChild(o),this.globalData.defs.appendChild(a),!featureSupport.maskType&&t===1&&(a.setAttribute("mask-type","luminance"),r=createElementID(),i=filtersFactory.createFilter(r),this.globalData.defs.appendChild(i),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),s=createNS("g"),s.appendChild(o),a.appendChild(s),s.setAttribute("filter","url("+getLocationHref()+"#"+r+")"))}else if(t===2){var l=createNS("mask");l.setAttribute("id",n),l.setAttribute("mask-type","alpha");var u=createNS("g");l.appendChild(u),r=createElementID(),i=filtersFactory.createFilter(r);var c=createNS("feComponentTransfer");c.setAttribute("in","SourceGraphic"),i.appendChild(c);var f=createNS("feFuncA");f.setAttribute("type","table"),f.setAttribute("tableValues","1.0 0.0"),c.appendChild(f),this.globalData.defs.appendChild(i);var d=createNS("rect");d.setAttribute("width",this.comp.data.w),d.setAttribute("height",this.comp.data.h),d.setAttribute("x","0"),d.setAttribute("y","0"),d.setAttribute("fill","#ffffff"),d.setAttribute("opacity","0"),u.setAttribute("filter","url("+getLocationHref()+"#"+r+")"),u.appendChild(d),o=createNS("use"),o.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),u.appendChild(o),featureSupport.maskType||(l.setAttribute("mask-type","luminance"),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),s=createNS("g"),u.appendChild(d),s.appendChild(this.layerElement),u.appendChild(s)),this.globalData.defs.appendChild(l)}this.matteMasks[t]=n}return this.matteMasks[t]},setMatte:function(t){!this.matteElement||this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var e={initElement:function(n,r,i){this.initFrame(),this.initBaseData(n,r,i),this.initTransform(n,r,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var n=this.baseElement||this.layerElement;n.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var n=this.baseElement||this.layerElement;n.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(n){this._mdf=!1,this.prepareRenderableFrame(n),this.prepareProperties(n,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(e)],RenderableDOMElement)})();function IImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(t){var n,r=this.shapeModifiers.length;for(n=0;n<r;n+=1)this.shapeModifiers[n].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var n=0,r=this.shapeModifiers.length;n<r;)if(this.shapeModifiers[n].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(!!this.shapeModifiers.length){var t,n=this.shapes.length;for(t=0;t<n;t+=1)this.shapes[t].sh.reset();n=this.shapeModifiers.length;var r;for(t=n-1;t>=0&&(r=this.shapeModifiers[t].processShapes(this._isFirstFrame),!r);t-=1);}},searchProcessedElement:function(t){for(var n=this.processedElements,r=0,i=n.length;r<i;){if(n[r].elem===t)return n[r].pos;r+=1}return 0},addProcessedElement:function(t,n){for(var r=this.processedElements,i=r.length;i;)if(i-=1,r[i].elem===t){r[i].pos=n;return}r.push(new ProcessedElement(t,n))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=t,this._isAnimated=!!n.k;for(var r=0,i=e.length;r<i;){if(e[r].mProps.dynamicProperties.length){this._isAnimated=!0;break}r+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=e.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(e,t,n,r){this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(r);var i,o=t.length||0,s;for(i=0;i<o;i+=1)s=PropertyFactory.getProp(e,t[i].v,0,0,this),this.k=s.k||this.k,this.dataProps[i]={n:t[i].n,p:s};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,n=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),t=0;t<n;t+=1)this.dataProps[t].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(e,t,n){this.data=t,this.c=createTypedArray("uint8c",t.p*4);var r=t.k.k[0].s?t.k.k[0].s.length-t.p*4:t.k.k.length-t.p*4;this.o=createTypedArray("float32",r),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=r,this.initDynamicPropertyContainer(n),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(e,t){for(var n=0,r=this.o.length/2,i;n<r;){if(i=Math.abs(e[n*4]-e[t*4+n*2]),i>.01)return!1;n+=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 e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,n=this.data.p*4,r,i;for(t=0;t<n;t+=1)r=t%4===0?100:255,i=Math.round(this.prop.v[t]*r),this.c[t]!==i&&(this.c[t]=i,this._cmdf=!e);if(this.o.length)for(n=this.prop.v.length,t=this.data.p*4;t<n;t+=1)r=t%2===0?100:1,i=t%2===0?Math.round(this.prop.v[t]*100):this.prop.v[t],this.o[t-this.data.p*4]!==i&&(this.o[t-this.data.p*4]=i,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,n)}SVGGradientFillStyleData.prototype.initGradientData=function(e,t,n){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,t),this.setGradientOpacity(t,n),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var n=createElementID(),r=createNS(t.t===1?"linearGradient":"radialGradient");r.setAttribute("id",n),r.setAttribute("spreadMethod","pad"),r.setAttribute("gradientUnits","userSpaceOnUse");var i=[],o,s,a;for(a=t.g.p*4,s=0;s<a;s+=4)o=createNS("stop"),r.appendChild(o),i.push(o);e.setAttribute(t.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+n+")"),this.gf=r,this.cst=i},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var n,r,i,o=createNS("mask"),s=createNS("path");o.appendChild(s);var a=createElementID(),l=createElementID();o.setAttribute("id",l);var u=createNS(e.t===1?"linearGradient":"radialGradient");u.setAttribute("id",a),u.setAttribute("spreadMethod","pad"),u.setAttribute("gradientUnits","userSpaceOnUse"),i=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var c=this.stops;for(r=e.g.p*4;r<i;r+=2)n=createNS("stop"),n.setAttribute("stop-color","rgb(255,255,255)"),u.appendChild(n),c.push(n);s.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+a+")"),e.ty==="gs"&&(s.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),e.lj===1&&s.setAttribute("stroke-miterlimit",e.ml)),this.of=u,this.ms=o,this.ost=c,this.maskId=l,t.msElem=s}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,n),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,n){this.transform={mProps:e,op:t,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(t,n,r,i){if(n===0)return"";var o=t.o,s=t.i,a=t.v,l,u=" M"+i.applyToPointStringified(a[0][0],a[0][1]);for(l=1;l<n;l+=1)u+=" C"+i.applyToPointStringified(o[l-1][0],o[l-1][1])+" "+i.applyToPointStringified(s[l][0],s[l][1])+" "+i.applyToPointStringified(a[l][0],a[l][1]);return r&&n&&(u+=" C"+i.applyToPointStringified(o[l-1][0],o[l-1][1])+" "+i.applyToPointStringified(s[0][0],s[0][1])+" "+i.applyToPointStringified(a[0][0],a[0][1]),u+="z"),u},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix,n={createRenderFunction:r};function r(f){switch(f.ty){case"fl":return a;case"gf":return u;case"gs":return l;case"st":return c;case"sh":case"el":case"rc":case"sr":return s;case"tr":return i;case"no":return o;default:return null}}function i(f,d,h){(h||d.transform.op._mdf)&&d.transform.container.setAttribute("opacity",d.transform.op.v),(h||d.transform.mProps._mdf)&&d.transform.container.setAttribute("transform",d.transform.mProps.v.to2dCSS())}function o(){}function s(f,d,h){var m,g,b,v,x,y,_=d.styles.length,w=d.lvl,k,O,M,I,W;for(y=0;y<_;y+=1){if(v=d.sh._mdf||h,d.styles[y].lvl<w){for(O=t.reset(),I=w-d.styles[y].lvl,W=d.transformers.length-1;!v&&I>0;)v=d.transformers[W].mProps._mdf||v,I-=1,W-=1;if(v)for(I=w-d.styles[y].lvl,W=d.transformers.length-1;I>0;)M=d.transformers[W].mProps.v.props,O.transform(M[0],M[1],M[2],M[3],M[4],M[5],M[6],M[7],M[8],M[9],M[10],M[11],M[12],M[13],M[14],M[15]),I-=1,W-=1}else O=e;if(k=d.sh.paths,g=k._length,v){for(b="",m=0;m<g;m+=1)x=k.shapes[m],x&&x._length&&(b+=buildShapeString(x,x._length,x.c,O));d.caches[y]=b}else b=d.caches[y];d.styles[y].d+=f.hd===!0?"":b,d.styles[y]._mdf=v||d.styles[y]._mdf}}function a(f,d,h){var m=d.style;(d.c._mdf||h)&&m.pElem.setAttribute("fill","rgb("+bmFloor(d.c.v[0])+","+bmFloor(d.c.v[1])+","+bmFloor(d.c.v[2])+")"),(d.o._mdf||h)&&m.pElem.setAttribute("fill-opacity",d.o.v)}function l(f,d,h){u(f,d,h),c(f,d,h)}function u(f,d,h){var m=d.gf,g=d.g._hasOpacity,b=d.s.v,v=d.e.v;if(d.o._mdf||h){var x=f.ty==="gf"?"fill-opacity":"stroke-opacity";d.style.pElem.setAttribute(x,d.o.v)}if(d.s._mdf||h){var y=f.t===1?"x1":"cx",_=y==="x1"?"y1":"cy";m.setAttribute(y,b[0]),m.setAttribute(_,b[1]),g&&!d.g._collapsable&&(d.of.setAttribute(y,b[0]),d.of.setAttribute(_,b[1]))}var w,k,O,M;if(d.g._cmdf||h){w=d.cst;var I=d.g.c;for(O=w.length,k=0;k<O;k+=1)M=w[k],M.setAttribute("offset",I[k*4]+"%"),M.setAttribute("stop-color","rgb("+I[k*4+1]+","+I[k*4+2]+","+I[k*4+3]+")")}if(g&&(d.g._omdf||h)){var W=d.g.o;for(d.g._collapsable?w=d.cst:w=d.ost,O=w.length,k=0;k<O;k+=1)M=w[k],d.g._collapsable||M.setAttribute("offset",W[k*2]+"%"),M.setAttribute("stop-opacity",W[k*2+1])}if(f.t===1)(d.e._mdf||h)&&(m.setAttribute("x2",v[0]),m.setAttribute("y2",v[1]),g&&!d.g._collapsable&&(d.of.setAttribute("x2",v[0]),d.of.setAttribute("y2",v[1])));else{var J;if((d.s._mdf||d.e._mdf||h)&&(J=Math.sqrt(Math.pow(b[0]-v[0],2)+Math.pow(b[1]-v[1],2)),m.setAttribute("r",J),g&&!d.g._collapsable&&d.of.setAttribute("r",J)),d.e._mdf||d.h._mdf||d.a._mdf||h){J||(J=Math.sqrt(Math.pow(b[0]-v[0],2)+Math.pow(b[1]-v[1],2)));var H=Math.atan2(v[1]-b[1],v[0]-b[0]),ee=d.h.v;ee>=1?ee=.99:ee<=-1&&(ee=-.99);var j=J*ee,V=Math.cos(H+d.a.v)*j+b[0],B=Math.sin(H+d.a.v)*j+b[1];m.setAttribute("fx",V),m.setAttribute("fy",B),g&&!d.g._collapsable&&(d.of.setAttribute("fx",V),d.of.setAttribute("fy",B))}}}function c(f,d,h){var m=d.style,g=d.d;g&&(g._mdf||h)&&g.dashStr&&(m.pElem.setAttribute("stroke-dasharray",g.dashStr),m.pElem.setAttribute("stroke-dashoffset",g.dashoffset[0])),d.c&&(d.c._mdf||h)&&m.pElem.setAttribute("stroke","rgb("+bmFloor(d.c.v[0])+","+bmFloor(d.c.v[1])+","+bmFloor(d.c.v[2])+")"),(d.o._mdf||h)&&m.pElem.setAttribute("stroke-opacity",d.o.v),(d.w._mdf||h)&&(m.pElem.setAttribute("stroke-width",d.w.v),m.msElem&&m.msElem.setAttribute("stroke-width",d.w.v))}return n}();function SVGShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,n),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 e,t=this.shapes.length,n,r,i=this.stylesList.length,o,s=[],a=!1;for(r=0;r<i;r+=1){for(o=this.stylesList[r],a=!1,s.length=0,e=0;e<t;e+=1)n=this.shapes[e],n.styles.indexOf(o)!==-1&&(s.push(n),a=n._isAnimated||a);s.length>1&&a&&this.setShapesAsAnimated(s)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var n,r=new SVGStyleData(e,t),i=r.pElem;if(e.ty==="st")n=new SVGStrokeStyleData(this,e,r);else if(e.ty==="fl")n=new SVGFillStyleData(this,e,r);else if(e.ty==="gf"||e.ty==="gs"){var o=e.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;n=new o(this,e,r),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),i.setAttribute("mask","url("+getLocationHref()+"#"+n.maskId+")"))}else e.ty==="no"&&(n=new SVGNoStyleData(this,e,r));return(e.ty==="st"||e.ty==="gs")&&(i.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),i.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),i.setAttribute("fill-opacity","0"),e.lj===1&&i.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&i.setAttribute("fill-rule","evenodd"),e.ln&&i.setAttribute("id",e.ln),e.cl&&i.setAttribute("class",e.cl),e.bm&&(i.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(r),this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var n=TransformPropertyFactory.getTransformProperty(this,e,this),r=new SVGTransformData(n,n.o,t);return this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createShapeElement=function(e,t,n){var r=4;e.ty==="rc"?r=5:e.ty==="el"?r=6:e.ty==="sr"&&(r=7);var i=ShapePropertyFactory.getShapeProp(this,e,r,this),o=new SVGShapeData(t,n,i);return this.shapes.push(o),this.addShapeToModifiers(o),this.addToAnimatedContents(e,o),o},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var n=0,r=this.animatedContents.length;n<r;){if(this.animatedContents[n].element===t)return;n+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t=e.styles,n,r=this.stylesList.length;for(n=0;n<r;n+=1)this.stylesList[n].closed||t.push(this.stylesList[n])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,n,r,i,o,s){var a=[].concat(o),l,u=e.length-1,c,f,d=[],h=[],m,g,b;for(l=u;l>=0;l-=1){if(b=this.searchProcessedElement(e[l]),b?t[l]=n[b-1]:e[l]._render=s,e[l].ty==="fl"||e[l].ty==="st"||e[l].ty==="gf"||e[l].ty==="gs"||e[l].ty==="no")b?t[l].style.closed=!1:t[l]=this.createStyleElement(e[l],i),e[l]._render&&t[l].style.pElem.parentNode!==r&&r.appendChild(t[l].style.pElem),d.push(t[l].style);else if(e[l].ty==="gr"){if(!b)t[l]=this.createGroupElement(e[l]);else for(f=t[l].it.length,c=0;c<f;c+=1)t[l].prevViewData[c]=t[l].it[c];this.searchShapes(e[l].it,t[l].it,t[l].prevViewData,t[l].gr,i+1,a,s),e[l]._render&&t[l].gr.parentNode!==r&&r.appendChild(t[l].gr)}else e[l].ty==="tr"?(b||(t[l]=this.createTransformElement(e[l],r)),m=t[l].transform,a.push(m)):e[l].ty==="sh"||e[l].ty==="rc"||e[l].ty==="el"||e[l].ty==="sr"?(b||(t[l]=this.createShapeElement(e[l],a,i)),this.setElementStyles(t[l])):e[l].ty==="tm"||e[l].ty==="rd"||e[l].ty==="ms"||e[l].ty==="pb"||e[l].ty==="zz"||e[l].ty==="op"?(b?(g=t[l],g.closed=!1):(g=ShapeModifiers.getModifier(e[l].ty),g.init(this,e[l]),t[l]=g,this.shapeModifiers.push(g)),h.push(g)):e[l].ty==="rp"&&(b?(g=t[l],g.closed=!0):(g=ShapeModifiers.getModifier(e[l].ty),t[l]=g,g.init(this,e,l,t),this.shapeModifiers.push(g),s=!1),h.push(g));this.addProcessedElement(e[l],l+1)}for(u=d.length,l=0;l<u;l+=1)d[l].closed=!0;for(u=h.length,l=0;l<u;l+=1)h[l].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t=this.animatedContents.length,n;for(e=0;e<t;e+=1)n=this.animatedContents[e],(this._isFirstFrame||n.element._isAnimated)&&n.data!==!0&&n.fn(n.data,n.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(e,t,n,r,i,o){this.o=e,this.sw=t,this.sc=n,this.fc=r,this.m=i,this.p=o,this._mdf={o:!0,sw:!!t,sc:!!n,fc:!!r,m:!0,p:!0}}LetterProps.prototype.update=function(e,t,n,r,i,o){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var s=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,s=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,s=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,s=!0),this.fc!==r&&(this.fc=r,this._mdf.fc=!0,s=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,s=!0),o.length&&(this.p[0]!==o[0]||this.p[1]!==o[1]||this.p[4]!==o[4]||this.p[5]!==o[5]||this.p[12]!==o[12]||this.p[13]!==o[13])&&(this.p=o,this._mdf.p=!0,s=!0),s};function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,n=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var r,i=this.effectsSequence.length,o=e||this.data.d.k[this.keysIndex].s;for(r=0;r<i;r+=1)n!==this.keysIndex?o=this.effectsSequence[r](o,o.t):o=this.effectsSequence[r](this.currentData,o.t);t!==o&&this.setCurrentData(o),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,n=0,r=e.length;n<=r-1&&!(n===r-1||e[n+1].t>t);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t=[],n=0,r=e.length,i,o,s=!1;n<r;)i=e.charCodeAt(n),FontManager.isCombinedCharacter(i)?t[t.length-1]+=e.charAt(n):i>=55296&&i<=56319?(o=e.charCodeAt(n+1),o>=56320&&o<=57343?(s||FontManager.isModifier(i,o)?(t[t.length-1]+=e.substr(n,2),s=!1):t.push(e.substr(n,2)),n+=1):t.push(e.charAt(n))):i>56319?(o=e.charCodeAt(n+1),FontManager.isZeroWidthJoiner(i,o)?(s=!0,t[t.length-1]+=e.substr(n,2),n+=1):t.push(e.charAt(n))):FontManager.isZeroWidthJoiner(i)?(t[t.length-1]+=e.charAt(n),s=!0):t.push(e.charAt(n)),n+=1;return t},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t=this.elem.globalData.fontManager,n=this.data,r=[],i,o,s,a=0,l,u=n.m.g,c=0,f=0,d=0,h=[],m=0,g=0,b,v,x=t.getFontByName(e.f),y,_=0,w=getFontProperties(x);e.fWeight=w.weight,e.fStyle=w.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),o=e.finalText.length,e.finalLineHeight=e.lh;var k=e.tr/1e3*e.finalSize,O;if(e.sz)for(var M=!0,I=e.sz[0],W=e.sz[1],J,H;M;){H=this.buildFinalText(e.t),J=0,m=0,o=H.length,k=e.tr/1e3*e.finalSize;var ee=-1;for(i=0;i<o;i+=1)O=H[i].charCodeAt(0),s=!1,H[i]===" "?ee=i:(O===13||O===3)&&(m=0,s=!0,J+=e.finalLineHeight||e.finalSize*1.2),t.chars?(y=t.getCharData(H[i],x.fStyle,x.fFamily),_=s?0:y.w*e.finalSize/100):_=t.measureText(H[i],e.f,e.finalSize),m+_>I&&H[i]!==" "?(ee===-1?o+=1:i=ee,J+=e.finalLineHeight||e.finalSize*1.2,H.splice(i,ee===i?1:0,"\r"),ee=-1,m=0):(m+=_,m+=k);J+=x.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&W<J?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=H,o=e.finalText.length,M=!1)}m=-k,_=0;var j=0,V;for(i=0;i<o;i+=1)if(s=!1,V=e.finalText[i],O=V.charCodeAt(0),O===13||O===3?(j=0,h.push(m),g=m>g?m:g,m=-2*k,l="",s=!0,d+=1):l=V,t.chars?(y=t.getCharData(V,x.fStyle,t.getFontByName(e.f).fFamily),_=s?0:y.w*e.finalSize/100):_=t.measureText(l,e.f,e.finalSize),V===" "?j+=_+k:(m+=_+k+j,j=0),r.push({l:_,an:_,add:c,n:s,anIndexes:[],val:l,line:d,animatorJustifyOffset:0}),u==2){if(c+=_,l===""||l===" "||i===o-1){for((l===""||l===" ")&&(c-=_);f<=i;)r[f].an=c,r[f].ind=a,r[f].extra=_,f+=1;a+=1,c=0}}else if(u==3){if(c+=_,l===""||i===o-1){for(l===""&&(c-=_);f<=i;)r[f].an=c,r[f].ind=a,r[f].extra=_,f+=1;c=0,a+=1}}else r[a].ind=a,r[a].extra=0,a+=1;if(e.l=r,g=m>g?m:g,h.push(m),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=g,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=h;var B=n.a,N,C;v=B.length;var S,G,T=[];for(b=0;b<v;b+=1){for(N=B[b],N.a.sc&&(e.strokeColorAnim=!0),N.a.sw&&(e.strokeWidthAnim=!0),(N.a.fc||N.a.fh||N.a.fs||N.a.fb)&&(e.fillColorAnim=!0),G=0,S=N.s.b,i=0;i<o;i+=1)C=r[i],C.anIndexes[b]=G,(S==1&&C.val!==""||S==2&&C.val!==""&&C.val!==" "||S==3&&(C.n||C.val==" "||i==o-1)||S==4&&(C.n||i==o-1))&&(N.s.rn===1&&T.push(G),G+=1);n.a[b].s.totalChars=G;var Q=-1,U;if(N.s.rn===1)for(i=0;i<o;i+=1)C=r[i],Q!=C.anIndexes[b]&&(Q=C.anIndexes[b],U=T.splice(Math.floor(Math.random()*T.length),1)[0]),C.anIndexes[b]=U}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=x.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=t===void 0?this.keysIndex:t;var n=this.copyData({},this.data.d.k[t].s);n=this.copyData(n,e),this.data.d.k[t].s=n,this.recalculate(t),this.setCurrentData(n),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,n=Math.floor;function r(o,s){this._currentTextLength=-1,this.k=!1,this.data=s,this.elem=o,this.comp=o.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(o),this.s=PropertyFactory.getProp(o,s.s||{k:0},0,0,this),"e"in s?this.e=PropertyFactory.getProp(o,s.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(o,s.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(o,s.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(o,s.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(o,s.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(o,s.a,0,.01,this),this.dynamicProperties.length||this.getValue()}r.prototype={getMult:function(s){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var a=0,l=0,u=1,c=1;this.ne.v>0?a=this.ne.v/100:l=-this.ne.v/100,this.xe.v>0?u=1-this.xe.v/100:c=1+this.xe.v/100;var f=BezierFactory.getBezierEasing(a,l,u,c).get,d=0,h=this.finalS,m=this.finalE,g=this.data.sh;if(g===2)m===h?d=s>=m?1:0:d=e(0,t(.5/(m-h)+(s-h)/(m-h),1)),d=f(d);else if(g===3)m===h?d=s>=m?0:1:d=1-e(0,t(.5/(m-h)+(s-h)/(m-h),1)),d=f(d);else if(g===4)m===h?d=0:(d=e(0,t(.5/(m-h)+(s-h)/(m-h),1)),d<.5?d*=2:d=1-2*(d-.5)),d=f(d);else if(g===5){if(m===h)d=0;else{var b=m-h;s=t(e(0,s+.5-h),m-h);var v=-b/2+s,x=b/2;d=Math.sqrt(1-v*v/(x*x))}d=f(d)}else g===6?(m===h?d=0:(s=t(e(0,s+.5-h),m-h),d=(1+Math.cos(Math.PI+Math.PI*2*s/(m-h)))/2),d=f(d)):(s>=n(h)&&(s-h<0?d=e(0,t(t(m,1)-(h-s),1)):d=e(0,t(m-s,1))),d=f(d));if(this.sm.v!==100){var y=this.sm.v*.01;y===0&&(y=1e-8);var _=.5-y*.5;d<_?d=0:(d=(d-_)/y,d>1&&(d=1))}return d*this.a.v},getValue:function(s){this.iterateDynamicProperties(),this._mdf=s||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,s&&this.data.r===2&&(this.e.v=this._currentTextLength);var a=this.data.r===2?1:100/this.data.totalChars,l=this.o.v/a,u=this.s.v/a+l,c=this.e.v/a+l;if(u>c){var f=u;u=c,c=f}this.finalS=u,this.finalE=c}},extendPrototype([DynamicPropertyContainer],r);function i(o,s,a){return new r(o,s,a)}return{getTextSelectorProp:i}}();function TextAnimatorDataProperty(e,t,n){var r={propType:!1},i=PropertyFactory.getProp,o=t.a;this.a={r:o.r?i(e,o.r,0,degToRads,n):r,rx:o.rx?i(e,o.rx,0,degToRads,n):r,ry:o.ry?i(e,o.ry,0,degToRads,n):r,sk:o.sk?i(e,o.sk,0,degToRads,n):r,sa:o.sa?i(e,o.sa,0,degToRads,n):r,s:o.s?i(e,o.s,1,.01,n):r,a:o.a?i(e,o.a,1,0,n):r,o:o.o?i(e,o.o,0,.01,n):r,p:o.p?i(e,o.p,1,0,n):r,sw:o.sw?i(e,o.sw,0,0,n):r,sc:o.sc?i(e,o.sc,1,0,n):r,fc:o.fc?i(e,o.fc,1,0,n):r,fh:o.fh?i(e,o.fh,0,0,n):r,fs:o.fs?i(e,o.fs,0,.01,n):r,fb:o.fb?i(e,o.fb,0,.01,n):r,t:o.t?i(e,o.t,0,0,n):r},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,n),this.s.t=t.s.t}function TextAnimatorProperty(e,t,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=n,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}TextAnimatorProperty.prototype.searchProperties=function(){var e,t=this._textData.a.length,n,r=PropertyFactory.getProp;for(e=0;e<t;e+=1)n=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,n,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:r(this._elem,this._textData.p.a,0,0,this),f:r(this._elem,this._textData.p.f,0,0,this),l:r(this._elem,this._textData.p.l,0,0,this),r:r(this._elem,this._textData.p.r,0,0,this),p:r(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=r(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,!(!this._mdf&&!this._isFirstFrame&&!t&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var n=this._moreOptions.alignment.v,r=this._animatorsData,i=this._textData,o=this.mHelper,s=this._renderType,a=this.renderedLetters.length,l,u,c,f,d=e.l,h,m,g,b,v,x,y,_,w,k,O,M,I,W,J;if(this._hasMaskedPath){if(J=this._pathData.m,!this._pathData.n||this._pathData._mdf){var H=J.v;this._pathData.r.v&&(H=H.reverse()),h={tLength:0,segments:[]},f=H._length-1;var ee;for(M=0,c=0;c<f;c+=1)ee=bez.buildBezierData(H.v[c],H.v[c+1],[H.o[c][0]-H.v[c][0],H.o[c][1]-H.v[c][1]],[H.i[c+1][0]-H.v[c+1][0],H.i[c+1][1]-H.v[c+1][1]]),h.tLength+=ee.segmentLength,h.segments.push(ee),M+=ee.segmentLength;c=f,J.v.c&&(ee=bez.buildBezierData(H.v[c],H.v[0],[H.o[c][0]-H.v[c][0],H.o[c][1]-H.v[c][1]],[H.i[0][0]-H.v[0][0],H.i[0][1]-H.v[0][1]]),h.tLength+=ee.segmentLength,h.segments.push(ee),M+=ee.segmentLength),this._pathData.pi=h}if(h=this._pathData.pi,m=this._pathData.f.v,y=0,x=1,b=0,v=!0,k=h.segments,m<0&&J.v.c)for(h.tLength<Math.abs(m)&&(m=-Math.abs(m)%h.tLength),y=k.length-1,w=k[y].points,x=w.length-1;m<0;)m+=w[x].partialLength,x-=1,x<0&&(y-=1,w=k[y].points,x=w.length-1);w=k[y].points,_=w[x-1],g=w[x],O=g.partialLength}f=d.length,l=0,u=0;var j=e.finalSize*1.2*.714,V=!0,B,N,C,S,G;S=r.length;var T,Q=-1,U,F,D,L=m,$=y,Z=x,se=-1,Y,ue,pe,oe,de,ve,Ae,Ce,Ge="",Ee=this.defaultPropsArray,Ne;if(e.j===2||e.j===1){var De=0,Ue=0,Re=e.j===2?-.5:-1,je=0,$e=!0;for(c=0;c<f;c+=1)if(d[c].n){for(De&&(De+=Ue);je<c;)d[je].animatorJustifyOffset=De,je+=1;De=0,$e=!0}else{for(C=0;C<S;C+=1)B=r[C].a,B.t.propType&&($e&&e.j===2&&(Ue+=B.t.v*Re),N=r[C].s,T=N.getMult(d[c].anIndexes[C],i.a[C].s.totalChars),T.length?De+=B.t.v*T[0]*Re:De+=B.t.v*T*Re);$e=!1}for(De&&(De+=Ue);je<c;)d[je].animatorJustifyOffset=De,je+=1}for(c=0;c<f;c+=1){if(o.reset(),Y=1,d[c].n)l=0,u+=e.yOffset,u+=V?1:0,m=L,V=!1,this._hasMaskedPath&&(y=$,x=Z,w=k[y].points,_=w[x-1],g=w[x],O=g.partialLength,b=0),Ge="",Ce="",ve="",Ne="",Ee=this.defaultPropsArray;else{if(this._hasMaskedPath){if(se!==d[c].line){switch(e.j){case 1:m+=M-e.lineWidths[d[c].line];break;case 2:m+=(M-e.lineWidths[d[c].line])/2;break;default:break}se=d[c].line}Q!==d[c].ind&&(d[Q]&&(m+=d[Q].extra),m+=d[c].an/2,Q=d[c].ind),m+=n[0]*d[c].an*.005;var Le=0;for(C=0;C<S;C+=1)B=r[C].a,B.p.propType&&(N=r[C].s,T=N.getMult(d[c].anIndexes[C],i.a[C].s.totalChars),T.length?Le+=B.p.v[0]*T[0]:Le+=B.p.v[0]*T),B.a.propType&&(N=r[C].s,T=N.getMult(d[c].anIndexes[C],i.a[C].s.totalChars),T.length?Le+=B.a.v[0]*T[0]:Le+=B.a.v[0]*T);for(v=!0,this._pathData.a.v&&(m=d[0].an*.5+(M-this._pathData.f.v-d[0].an*.5-d[d.length-1].an*.5)*Q/(f-1),m+=this._pathData.f.v);v;)b+O>=m+Le||!w?(I=(m+Le-b)/g.partialLength,F=_.point[0]+(g.point[0]-_.point[0])*I,D=_.point[1]+(g.point[1]-_.point[1])*I,o.translate(-n[0]*d[c].an*.005,-(n[1]*j)*.01),v=!1):w&&(b+=g.partialLength,x+=1,x>=w.length&&(x=0,y+=1,k[y]?w=k[y].points:J.v.c?(x=0,y=0,w=k[y].points):(b-=g.partialLength,w=null)),w&&(_=g,g=w[x],O=g.partialLength));U=d[c].an/2-d[c].add,o.translate(-U,0,0)}else U=d[c].an/2-d[c].add,o.translate(-U,0,0),o.translate(-n[0]*d[c].an*.005,-n[1]*j*.01,0);for(C=0;C<S;C+=1)B=r[C].a,B.t.propType&&(N=r[C].s,T=N.getMult(d[c].anIndexes[C],i.a[C].s.totalChars),(l!==0||e.j!==0)&&(this._hasMaskedPath?T.length?m+=B.t.v*T[0]:m+=B.t.v*T:T.length?l+=B.t.v*T[0]:l+=B.t.v*T));for(e.strokeWidthAnim&&(pe=e.sw||0),e.strokeColorAnim&&(e.sc?ue=[e.sc[0],e.sc[1],e.sc[2]]:ue=[0,0,0]),e.fillColorAnim&&e.fc&&(oe=[e.fc[0],e.fc[1],e.fc[2]]),C=0;C<S;C+=1)B=r[C].a,B.a.propType&&(N=r[C].s,T=N.getMult(d[c].anIndexes[C],i.a[C].s.totalChars),T.length?o.translate(-B.a.v[0]*T[0],-B.a.v[1]*T[1],B.a.v[2]*T[2]):o.translate(-B.a.v[0]*T,-B.a.v[1]*T,B.a.v[2]*T));for(C=0;C<S;C+=1)B=r[C].a,B.s.propType&&(N=r[C].s,T=N.getMult(d[c].anIndexes[C],i.a[C].s.totalChars),T.length?o.scale(1+(B.s.v[0]-1)*T[0],1+(B.s.v[1]-1)*T[1],1):o.scale(1+(B.s.v[0]-1)*T,1+(B.s.v[1]-1)*T,1));for(C=0;C<S;C+=1){if(B=r[C].a,N=r[C].s,T=N.getMult(d[c].anIndexes[C],i.a[C].s.totalChars),B.sk.propType&&(T.length?o.skewFromAxis(-B.sk.v*T[0],B.sa.v*T[1]):o.skewFromAxis(-B.sk.v*T,B.sa.v*T)),B.r.propType&&(T.length?o.rotateZ(-B.r.v*T[2]):o.rotateZ(-B.r.v*T)),B.ry.propType&&(T.length?o.rotateY(B.ry.v*T[1]):o.rotateY(B.ry.v*T)),B.rx.propType&&(T.length?o.rotateX(B.rx.v*T[0]):o.rotateX(B.rx.v*T)),B.o.propType&&(T.length?Y+=(B.o.v*T[0]-Y)*T[0]:Y+=(B.o.v*T-Y)*T),e.strokeWidthAnim&&B.sw.propType&&(T.length?pe+=B.sw.v*T[0]:pe+=B.sw.v*T),e.strokeColorAnim&&B.sc.propType)for(de=0;de<3;de+=1)T.length?ue[de]+=(B.sc.v[de]-ue[de])*T[0]:ue[de]+=(B.sc.v[de]-ue[de])*T;if(e.fillColorAnim&&e.fc){if(B.fc.propType)for(de=0;de<3;de+=1)T.length?oe[de]+=(B.fc.v[de]-oe[de])*T[0]:oe[de]+=(B.fc.v[de]-oe[de])*T;B.fh.propType&&(T.length?oe=addHueToRGB(oe,B.fh.v*T[0]):oe=addHueToRGB(oe,B.fh.v*T)),B.fs.propType&&(T.length?oe=addSaturationToRGB(oe,B.fs.v*T[0]):oe=addSaturationToRGB(oe,B.fs.v*T)),B.fb.propType&&(T.length?oe=addBrightnessToRGB(oe,B.fb.v*T[0]):oe=addBrightnessToRGB(oe,B.fb.v*T))}}for(C=0;C<S;C+=1)B=r[C].a,B.p.propType&&(N=r[C].s,T=N.getMult(d[c].anIndexes[C],i.a[C].s.totalChars),this._hasMaskedPath?T.length?o.translate(0,B.p.v[1]*T[0],-B.p.v[2]*T[1]):o.translate(0,B.p.v[1]*T,-B.p.v[2]*T):T.length?o.translate(B.p.v[0]*T[0],B.p.v[1]*T[1],-B.p.v[2]*T[2]):o.translate(B.p.v[0]*T,B.p.v[1]*T,-B.p.v[2]*T));if(e.strokeWidthAnim&&(ve=pe<0?0:pe),e.strokeColorAnim&&(Ae="rgb("+Math.round(ue[0]*255)+","+Math.round(ue[1]*255)+","+Math.round(ue[2]*255)+")"),e.fillColorAnim&&e.fc&&(Ce="rgb("+Math.round(oe[0]*255)+","+Math.round(oe[1]*255)+","+Math.round(oe[2]*255)+")"),this._hasMaskedPath){if(o.translate(0,-e.ls),o.translate(0,n[1]*j*.01+u,0),this._pathData.p.v){W=(g.point[1]-_.point[1])/(g.point[0]-_.point[0]);var Xe=Math.atan(W)*180/Math.PI;g.point[0]<_.point[0]&&(Xe+=180),o.rotate(-Xe*Math.PI/180)}o.translate(F,D,0),m-=n[0]*d[c].an*.005,d[c+1]&&Q!==d[c+1].ind&&(m+=d[c].an/2,m+=e.tr*.001*e.finalSize)}else{switch(o.translate(l,u,0),e.ps&&o.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:o.translate(d[c].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[d[c].line]),0,0);break;case 2:o.translate(d[c].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[d[c].line])/2,0,0);break;default:break}o.translate(0,-e.ls),o.translate(U,0,0),o.translate(n[0]*d[c].an*.005,n[1]*j*.01,0),l+=d[c].l+e.tr*.001*e.finalSize}s==="html"?Ge=o.toCSS():s==="svg"?Ge=o.to2dCSS():Ee=[o.props[0],o.props[1],o.props[2],o.props[3],o.props[4],o.props[5],o.props[6],o.props[7],o.props[8],o.props[9],o.props[10],o.props[11],o.props[12],o.props[13],o.props[14],o.props[15]],Ne=Y}a<=c?(G=new LetterProps(Ne,ve,Ae,Ce,Ge,Ee),this.renderedLetters.push(G),a+=1,this.lettersChangedFlag=!0):(G=this.renderedLetters[c],this.lettersChangedFlag=G.update(Ne,ve,Ae,Ce,Ge,Ee)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(e,t,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,n),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(e,t){var n,r=t.length,i,o="";for(n=0;n<r;n+=1)t[n].ty==="sh"&&(i=t[n].ks.k,o+=buildShapeString(i,i.i.length,!0,e));return o},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,n,r,i){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0);break;default:break}t.translate(r,i,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,n){this.textSpans=[],this.renderType="svg",this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,n=e.length,r=[],i="";t<n;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(r.push(i),i=""):i+=e[t],t+=1;return r.push(i),r},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var n=e.shapes[0];if(n.it){var r=n.it[n.it.length-1];r.s&&(r.s.k[0]=t,r.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,t,n=this.textProperty.currentData;this.renderedLetters=createSizedArray(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var r=this.globalData.fontManager.getFontByName(n.f);if(r.fClass)this.layerElement.setAttribute("class",r.fClass);else{this.layerElement.setAttribute("font-family",r.fFamily);var i=n.fWeight,o=n.fStyle;this.layerElement.setAttribute("font-style",o),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",n.t);var s=n.l||[],a=!!this.globalData.fontManager.chars;t=s.length;var l,u=this.mHelper,c="",f=this.data.singleShape,d=0,h=0,m=!0,g=n.tr*.001*n.finalSize;if(f&&!a&&!n.sz){var b=this.textContainer,v="start";switch(n.j){case 1:v="end";break;case 2:v="middle";break;default:v="start";break}b.setAttribute("text-anchor",v),b.setAttribute("letter-spacing",g);var x=this.buildTextContents(n.finalText);for(t=x.length,h=n.ps?n.ps[1]+n.ascent:0,e=0;e<t;e+=1)l=this.textSpans[e].span||createNS("tspan"),l.textContent=x[e],l.setAttribute("x",0),l.setAttribute("y",h),l.style.display="inherit",b.appendChild(l),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=l,h+=n.finalLineHeight;this.layerElement.appendChild(b)}else{var y=this.textSpans.length,_;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!a||!f||e===0){if(l=y>e?this.textSpans[e].span:createNS(a?"g":"text"),y<=e){if(l.setAttribute("stroke-linecap","butt"),l.setAttribute("stroke-linejoin","round"),l.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=l,a){var w=createNS("g");l.appendChild(w),this.textSpans[e].childSpan=w}this.textSpans[e].span=l,this.layerElement.appendChild(l)}l.style.display="inherit"}if(u.reset(),f&&(s[e].n&&(d=-g,h+=n.yOffset,h+=m?1:0,m=!1),this.applyTextPropertiesToMatrix(n,u,s[e].line,d,h),d+=s[e].l||0,d+=g),a){_=this.globalData.fontManager.getCharData(n.finalText[e],r.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily);var k;if(_.t===1)k=new SVGCompElement(_.data,this.globalData,this);else{var O=emptyShapeData;_.data&&_.data.shapes&&(O=this.buildShapeData(_.data,n.finalSize)),k=new SVGShapeElement(O,this.globalData,this)}if(this.textSpans[e].glyph){var M=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(M.layerElement),M.destroy()}this.textSpans[e].glyph=k,k._debug=!0,k.prepareFrame(0),k.renderFrame(),this.textSpans[e].childSpan.appendChild(k.layerElement),_.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else f&&l.setAttribute("transform","translate("+u.props[12]+","+u.props[13]+")"),l.textContent=s[e].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}f&&l&&l.setAttribute("d",c)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t=this.textSpans.length,n;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<t;e+=1)n=this.textSpans[e].glyph,n&&(n.prepareFrame(this.comp.renderedFrame-this.data.st),n._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,t,n=this.textAnimator.renderedLetters,r=this.textProperty.currentData.l;t=r.length;var i,o,s;for(e=0;e<t;e+=1)r[e].n||(i=n[e],o=this.textSpans[e].span,s=this.textSpans[e].glyph,s&&s.renderFrame(),i._mdf.m&&o.setAttribute("transform",i.m),i._mdf.o&&o.setAttribute("opacity",i.o),i._mdf.sw&&o.setAttribute("stroke-width",i.sw),i._mdf.sc&&o.setAttribute("stroke",i.sc),i._mdf.fc&&o.setAttribute("fill",i.fc))}};function ISolidElement(e,t,n){this.initElement(e,t,n)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function NullElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initFrame(),this.initTransform(e,t,n),this.initHierarchy()}NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=createNS("clipPath"),r=createNS("rect");r.setAttribute("width",e.w),r.setAttribute("height",e.h),r.setAttribute("x",0),r.setAttribute("y",0);var i=createElementID();n.setAttribute("id",i),n.appendChild(r),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),t.appendChild(n),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,n=this.layers.length;for(t=0;t<n;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){t[e]=!0;var n=this.createItem(this.layers[e]);if(t[e]=n,getExpressionsPlugin()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,e),this.layers[e].tt){var r="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(r===-1)return;if(!this.elements[r]||this.elements[r]===!0)this.buildItem(r),this.addPendingElement(n);else{var i=t[r],o=i.getMatte(this.layers[e].tt);n.setMatte(o)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,n=this.elements.length;t<n;){if(this.elements[t]===e){var r="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,i=this.elements[r],o=i.getMatte(this.layers[t].tt);e.setMatte(o);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var t,n=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=n-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<n;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(!!n){for(var r=0,i;r<t;)this.elements[r]&&this.elements[r]!==!0&&this.elements[r].getBaseElement()&&(i=this.elements[r].getBaseElement()),r+=1;i?this.layerElement.insertBefore(n,i):this.layerElement.appendChild(n)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!t.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var n,r=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(e,t,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var n="";if(t&&t.title){var r=createNS("title"),i=createElementID();r.setAttribute("id",i),r.textContent=t.title,this.svgElement.appendChild(r),n+=i}if(t&&t.description){var o=createNS("desc"),s=createElementID();o.setAttribute("id",s),o.textContent=t.description,this.svgElement.appendChild(o),n+=" "+s}n&&this.svgElement.setAttribute("aria-labelledby",n);var a=createNS("defs");this.svgElement.appendChild(a);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&t.hideOnTransparent===!1),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:a,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function CVContextData(){this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1;var e,t=15;for(this.savedOp=createTypedArray("float32",t),e=0;e<t;e+=1)this.saved[e]=createTypedArray("float32",16);this._length=t}CVContextData.prototype.duplicate=function(){var e=this._length*2,t=this.savedOp;this.savedOp=createTypedArray("float32",e),this.savedOp.set(t);var n=0;for(n=this._length;n<e;n+=1)this.saved[n]=createTypedArray("float32",16);this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},CVContextData.prototype.popTransform=function(){var e=this.saved[this.cArrPos],t,n=this.cTr.props;for(t=0;t<16;t+=1)n[t]=e[t];return e},CVContextData.prototype.popOpacity=function(){var e=this.savedOp[this.cArrPos];return this.cO=e,e},CVContextData.prototype.pop=function(){this.cArrPos-=1;var e=this.popTransform(),t=this.popOpacity();return{transform:e,opacity:t}},CVContextData.prototype.push=function(){var e=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var t,n=this.saved[this.cArrPos];for(t=0;t<16;t+=1)n[t]=e[t];this.savedOp[this.cArrPos]=this.cO,this.cArrPos+=1},CVContextData.prototype.getTransform=function(){return this.cTr},CVContextData.prototype.getOpacity=function(){return this.cO},CVContextData.prototype.setOpacity=function(e){this.cO=e};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(t){var n,r=t.length,i="_";for(n=0;n<r;n+=1)i+=t[n].transform.key+"_";var o=this.sequences[i];return o||(o={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[i]=o,this.sequenceList.push(o)),o},processSequence:function(t,n){for(var r=0,i=t.transforms.length,o=n;r<i&&!n;){if(t.transforms[r].transform.mProps._mdf){o=!0;break}r+=1}if(o){var s;for(t.finalTransform.reset(),r=i-1;r>=0;r-=1)s=t.transforms[r].transform.mProps.v.props,t.finalTransform.transform(s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7],s[8],s[9],s[10],s[11],s[12],s[13],s[14],s[15])}t._mdf=o},processSequences:function(t){var n,r=this.sequenceList.length;for(n=0;n<r;n+=1)this.processSequence(this.sequenceList[n],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var t="__lottie_element_luma_buffer",n=null,r=null,i=null;function o(){var l=createNS("svg"),u=createNS("filter"),c=createNS("feColorMatrix");return u.setAttribute("id",t),c.setAttribute("type","matrix"),c.setAttribute("color-interpolation-filters","sRGB"),c.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),u.appendChild(c),l.appendChild(u),l.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(l.style.display="none"),l}function s(){n||(i=o(),document.body.appendChild(i),n=createTag("canvas"),r=n.getContext("2d"),r.filter="url(#"+t+")",r.fillStyle="rgba(0,0,0,0)",r.fillRect(0,0,1,1))}function a(l){return n||s(),n.width=l.width,n.height=l.height,r.filter="url(#"+t+")",n}return{load:s,get:a}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var n=createTag("canvas");return n.width=e,n.height=t,n}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}();function CVEffects(){}CVEffects.prototype.renderFrame=function(){};function CVMaskElement(e,t){this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var n,r=this.masksProperties.length,i=!1;for(n=0;n<r;n+=1)this.masksProperties[n].mode!=="n"&&(i=!0),this.viewData[n]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[n],3);this.hasMasks=i,i&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(!!this.hasMasks){var e=this.element.finalTransform.mat,t=this.element.canvasContext,n,r=this.masksProperties.length,i,o,s;for(t.beginPath(),n=0;n<r;n+=1)if(this.masksProperties[n].mode!=="n"){this.masksProperties[n].inv&&(t.moveTo(0,0),t.lineTo(this.element.globalData.compSize.w,0),t.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),t.lineTo(0,this.element.globalData.compSize.h),t.lineTo(0,0)),s=this.viewData[n].v,i=e.applyToPointArray(s.v[0][0],s.v[0][1],0),t.moveTo(i[0],i[1]);var a,l=s._length;for(a=1;a<l;a+=1)o=e.applyToTriplePoints(s.o[a-1],s.i[a],s.v[a]),t.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);o=e.applyToTriplePoints(s.o[a-1],s.i[0],s.v[0]),t.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5])}this.element.globalData.renderer.save(!0),t.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var t=this.globalData.canvasContext,n=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(n);var r=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(r),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this)},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var n=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=n}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this)},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(t){t.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 t=this.buffers[0],n=t.getContext("2d");this.clearCanvas(n),n.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 t=this.buffers[1],n=t.getContext("2d");this.clearCanvas(n),n.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 r=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(r.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var i=assetLoader.getLumaCanvas(this.canvasContext.canvas),o=i.getContext("2d");o.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(i,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,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(t){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!t)){this.renderTransform(),this.renderRenderable(),this.setBlendMode();var n=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(n),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(n),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(e,t,n,r){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var i=4;t.ty==="rc"?i=5:t.ty==="el"?i=6:t.ty==="sr"&&(i=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,i,e);var o,s=n.length,a;for(o=0;o<s;o+=1)n[o].closed||(a={transforms:r.addTransformSequence(n[o].transforms),trNodes:[]},this.styledShapes.push(a),n[o].elements.push(a))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var n={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:e.hd===!0},r={};if(e.ty==="fl"||e.ty==="st"?(r.c=PropertyFactory.getProp(this,e.c,1,255,this),r.c.k||(n.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")")):(e.ty==="gf"||e.ty==="gs")&&(r.s=PropertyFactory.getProp(this,e.s,1,null,this),r.e=PropertyFactory.getProp(this,e.e,1,null,this),r.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),r.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),r.g=new GradientProperty(this,e.g,this)),r.o=PropertyFactory.getProp(this,e.o,0,.01,this),e.ty==="st"||e.ty==="gs"){if(n.lc=lineCapEnum[e.lc||2],n.lj=lineJoinEnum[e.lj||2],e.lj==1&&(n.ml=e.ml),r.w=PropertyFactory.getProp(this,e.w,0,null,this),r.w.k||(n.wi=r.w.v),e.d){var i=new DashProperty(this,e.d,"canvas",this);r.d=i,r.d.k||(n.da=r.d.dashArray,n.do=r.d.dashoffset[0])}}else n.r=e.r===2?"evenodd":"nonzero";return this.stylesList.push(n),r.style=n,r},CVShapeElement.prototype.createGroupElement=function(){var e={it:[],prevViewData:[]};return e},CVShapeElement.prototype.createTransformElement=function(e){var t={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}};return t},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,n=this.stylesList.length;for(t=0;t<n;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,n,r,i){var o,s=e.length-1,a,l,u=[],c=[],f,d,h,m=[].concat(i);for(o=s;o>=0;o-=1){if(f=this.searchProcessedElement(e[o]),f?t[o]=n[f-1]:e[o]._shouldRender=r,e[o].ty==="fl"||e[o].ty==="st"||e[o].ty==="gf"||e[o].ty==="gs")f?t[o].style.closed=!1:t[o]=this.createStyleElement(e[o],m),u.push(t[o].style);else if(e[o].ty==="gr"){if(!f)t[o]=this.createGroupElement(e[o]);else for(l=t[o].it.length,a=0;a<l;a+=1)t[o].prevViewData[a]=t[o].it[a];this.searchShapes(e[o].it,t[o].it,t[o].prevViewData,r,m)}else e[o].ty==="tr"?(f||(h=this.createTransformElement(e[o]),t[o]=h),m.push(t[o]),this.addTransformToStyleList(t[o])):e[o].ty==="sh"||e[o].ty==="rc"||e[o].ty==="el"||e[o].ty==="sr"?f||(t[o]=this.createShapeElement(e[o])):e[o].ty==="tm"||e[o].ty==="rd"||e[o].ty==="pb"||e[o].ty==="zz"||e[o].ty==="op"?(f?(d=t[o],d.closed=!1):(d=ShapeModifiers.getModifier(e[o].ty),d.init(this,e[o]),t[o]=d,this.shapeModifiers.push(d)),c.push(d)):e[o].ty==="rp"&&(f?(d=t[o],d.closed=!0):(d=ShapeModifiers.getModifier(e[o].ty),t[o]=d,d.init(this,e,o,t),this.shapeModifiers.push(d),r=!1),c.push(d));this.addProcessedElement(e[o],o+1)}for(this.removeTransformFromStyleList(),this.closeStyles(u),s=c.length,o=0;o<s;o+=1)c[o].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t=this.stylesList.length,n,r,i,o,s,a,l=this.globalData.renderer,u=this.globalData.canvasContext,c,f;for(e=0;e<t;e+=1)if(f=this.stylesList[e],c=f.type,!((c==="st"||c==="gs")&&f.wi===0||!f.data._shouldRender||f.coOp===0||this.globalData.currentGlobalAlpha===0)){for(l.save(),s=f.elements,c==="st"||c==="gs"?(u.strokeStyle=c==="st"?f.co:f.grd,u.lineWidth=f.wi,u.lineCap=f.lc,u.lineJoin=f.lj,u.miterLimit=f.ml||0):u.fillStyle=c==="fl"?f.co:f.grd,l.ctxOpacity(f.coOp),c!=="st"&&c!=="gs"&&u.beginPath(),l.ctxTransform(f.preTransforms.finalTransform.props),r=s.length,n=0;n<r;n+=1){for((c==="st"||c==="gs")&&(u.beginPath(),f.da&&(u.setLineDash(f.da),u.lineDashOffset=f.do)),a=s[n].trNodes,o=a.length,i=0;i<o;i+=1)a[i].t==="m"?u.moveTo(a[i].p[0],a[i].p[1]):a[i].t==="c"?u.bezierCurveTo(a[i].pts[0],a[i].pts[1],a[i].pts[2],a[i].pts[3],a[i].pts[4],a[i].pts[5]):u.closePath();(c==="st"||c==="gs")&&(u.stroke(),f.da&&u.setLineDash(this.dashResetter))}c!=="st"&&c!=="gs"&&u.fill(f.r),l.restore()}},CVShapeElement.prototype.renderShape=function(e,t,n,r){var i,o=t.length-1,s;for(s=e,i=o;i>=0;i-=1)t[i].ty==="tr"?(s=n[i].transform,this.renderShapeTransform(e,s)):t[i].ty==="sh"||t[i].ty==="el"||t[i].ty==="rc"||t[i].ty==="sr"?this.renderPath(t[i],n[i]):t[i].ty==="fl"?this.renderFill(t[i],n[i],s):t[i].ty==="st"?this.renderStroke(t[i],n[i],s):t[i].ty==="gf"||t[i].ty==="gs"?this.renderGradientFill(t[i],n[i],s):t[i].ty==="gr"?this.renderShape(s,t[i].it,n[i].it):t[i].ty;r&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var n=e.trNodes,r=t.paths,i,o,s,a=r._length;n.length=0;var l=e.transforms.finalTransform;for(s=0;s<a;s+=1){var u=r.shapes[s];if(u&&u.v){for(o=u._length,i=1;i<o;i+=1)i===1&&n.push({t:"m",p:l.applyToPointArray(u.v[0][0],u.v[0][1],0)}),n.push({t:"c",pts:l.applyToTriplePoints(u.o[i-1],u.i[i],u.v[i])});o===1&&n.push({t:"m",p:l.applyToPointArray(u.v[0][0],u.v[0][1],0)}),u.c&&o&&(n.push({t:"c",pts:l.applyToTriplePoints(u.o[i-1],u.i[0],u.v[0])}),n.push({t:"z"}))}}e.trNodes=n}},CVShapeElement.prototype.renderPath=function(e,t){if(e.hd!==!0&&e._shouldRender){var n,r=t.styledShapes.length;for(n=0;n<r;n+=1)this.renderStyledShape(t.styledShapes[n],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,n){var r=t.style;(t.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(r.coOp=t.o.v*n.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,n){var r=t.style,i;if(!r.grd||t.g._mdf||t.s._mdf||t.e._mdf||e.t!==1&&(t.h._mdf||t.a._mdf)){var o=this.globalData.canvasContext,s=t.s.v,a=t.e.v;if(e.t===1)i=o.createLinearGradient(s[0],s[1],a[0],a[1]);else{var l=Math.sqrt(Math.pow(s[0]-a[0],2)+Math.pow(s[1]-a[1],2)),u=Math.atan2(a[1]-s[1],a[0]-s[0]),c=t.h.v;c>=1?c=.99:c<=-1&&(c=-.99);var f=l*c,d=Math.cos(u+t.a.v)*f+s[0],h=Math.sin(u+t.a.v)*f+s[1];i=o.createRadialGradient(d,h,0,s[0],s[1],l)}var m,g=e.g.p,b=t.g.c,v=1;for(m=0;m<g;m+=1)t.g._hasOpacity&&t.g._collapsable&&(v=t.g.o[m*2+1]),i.addColorStop(b[m*4]/100,"rgba("+b[m*4+1]+","+b[m*4+2]+","+b[m*4+3]+","+v+")");r.grd=i}r.coOp=t.o.v*n.opacity},CVShapeElement.prototype.renderStroke=function(e,t,n){var r=t.style,i=t.d;i&&(i._mdf||this._isFirstFrame)&&(r.da=i.dashArray,r.do=i.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(r.coOp=t.o.v*n.opacity),(t.w._mdf||this._isFirstFrame)&&(r.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(e,t,n){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var n=!1;e.sc&&(n=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var r=this.globalData.fontManager.getFontByName(e.f),i,o,s=e.l,a=this.mHelper;this.stroke=n,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,o=e.finalText.length;var l,u,c,f,d,h,m,g,b,v,x=this.data.singleShape,y=e.tr*.001*e.finalSize,_=0,w=0,k=!0,O=0;for(i=0;i<o;i+=1){l=this.globalData.fontManager.getCharData(e.finalText[i],r.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),u=l&&l.data||{},a.reset(),x&&s[i].n&&(_=-y,w+=e.yOffset,w+=k?1:0,k=!1),d=u.shapes?u.shapes[0].it:[],m=d.length,a.scale(e.finalSize/100,e.finalSize/100),x&&this.applyTextPropertiesToMatrix(e,a,s[i].line,_,w),b=createSizedArray(m-1);var M=0;for(h=0;h<m;h+=1)if(d[h].ty==="sh"){for(f=d[h].ks.k.i.length,g=d[h].ks.k,v=[],c=1;c<f;c+=1)c===1&&v.push(a.applyToX(g.v[0][0],g.v[0][1],0),a.applyToY(g.v[0][0],g.v[0][1],0)),v.push(a.applyToX(g.o[c-1][0],g.o[c-1][1],0),a.applyToY(g.o[c-1][0],g.o[c-1][1],0),a.applyToX(g.i[c][0],g.i[c][1],0),a.applyToY(g.i[c][0],g.i[c][1],0),a.applyToX(g.v[c][0],g.v[c][1],0),a.applyToY(g.v[c][0],g.v[c][1],0));v.push(a.applyToX(g.o[c-1][0],g.o[c-1][1],0),a.applyToY(g.o[c-1][0],g.o[c-1][1],0),a.applyToX(g.i[0][0],g.i[0][1],0),a.applyToY(g.i[0][0],g.i[0][1],0),a.applyToX(g.v[0][0],g.v[0][1],0),a.applyToY(g.v[0][0],g.v[0][1],0)),b[M]=v,M+=1}x&&(_+=s[i].l,_+=y),this.textSpans[O]?this.textSpans[O].elem=b:this.textSpans[O]={elem:b},O+=1}},CVTextElement.prototype.renderInnerContent=function(){var e=this.canvasContext;e.font=this.values.fValue,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var t,n,r,i,o,s,a=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;n=l.length;var u,c=null,f=null,d=null,h,m;for(t=0;t<n;t+=1)if(!l[t].n){if(u=a[t],u&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(u.p),this.globalData.renderer.ctxOpacity(u.o)),this.fill){for(u&&u.fc?c!==u.fc&&(c=u.fc,e.fillStyle=u.fc):c!==this.values.fill&&(c=this.values.fill,e.fillStyle=this.values.fill),h=this.textSpans[t].elem,i=h.length,this.globalData.canvasContext.beginPath(),r=0;r<i;r+=1)for(m=h[r],s=m.length,this.globalData.canvasContext.moveTo(m[0],m[1]),o=2;o<s;o+=6)this.globalData.canvasContext.bezierCurveTo(m[o],m[o+1],m[o+2],m[o+3],m[o+4],m[o+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(u&&u.sw?d!==u.sw&&(d=u.sw,e.lineWidth=u.sw):d!==this.values.sWidth&&(d=this.values.sWidth,e.lineWidth=this.values.sWidth),u&&u.sc?f!==u.sc&&(f=u.sc,e.strokeStyle=u.sc):f!==this.values.stroke&&(f=this.values.stroke,e.strokeStyle=this.values.stroke),h=this.textSpans[t].elem,i=h.length,this.globalData.canvasContext.beginPath(),r=0;r<i;r+=1)for(m=h[r],s=m.length,this.globalData.canvasContext.moveTo(m[0],m[1]),o=2;o<s;o+=6)this.globalData.canvasContext.bezierCurveTo(m[o],m[o+1],m[o+2],m[o+3],m[o+4],m[o+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}u&&this.globalData.renderer.restore()}};function CVImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t=e.getContext("2d"),n=this.img.width,r=this.img.height,i=n/r,o=this.assetData.w/this.assetData.h,s,a,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;i>o&&l==="xMidYMid slice"||i<o&&l!=="xMidYMid slice"?(a=r,s=a*o):(s=n,a=s/o),t.drawImage(this.img,(n-s)/2,(r-a)/2,s,a,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(e,t,n){this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){var e=this.canvasContext;e.fillStyle=this.data.sc,e.fillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(e,t){this.animationItem=e,this.renderConfig={clearCanvas:t&&t.clearCanvas!==void 0?t.clearCanvas:!0,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||""},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.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"}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){if(!(e[0]===1&&e[1]===0&&e[4]===0&&e[5]===1&&e[12]===0&&e[13]===0)){if(!this.renderConfig.clearCanvas){this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13]);return}this.transformMat.cloneFromProps(e);var t=this.contextData.getTransform(),n=t.props;this.transformMat.transform(n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8],n[9],n[10],n[11],n[12],n[13],n[14],n[15]),t.cloneFromProps(this.transformMat.props);var r=t.props;this.canvasContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])}},CanvasRendererBase.prototype.ctxOpacity=function(e){var t=this.contextData.getOpacity();if(!this.renderConfig.clearCanvas){this.canvasContext.globalAlpha*=e<0?0:e,this.globalData.currentGlobalAlpha=t;return}t*=e<0?0:e,this.contextData.setOpacity(t),this.globalData.currentGlobalAlpha!==t&&(this.canvasContext.globalAlpha=t,this.globalData.currentGlobalAlpha=t)},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(e){if(!this.renderConfig.clearCanvas){this.canvasContext.save();return}e&&this.canvasContext.save(),this.contextData.push()},CanvasRendererBase.prototype.restore=function(e){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}e&&(this.canvasContext.restore(),this.globalData.blendMode="source-over");var t=this.contextData.pop(),n=t.transform,r=t.opacity;this.canvasContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13]),this.globalData.currentGlobalAlpha!==r&&(this.canvasContext.globalAlpha=r,this.globalData.currentGlobalAlpha=r)},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var n="0px 0px 0px";t.transformOrigin=n,t.mozTransformOrigin=n,t.webkitTransformOrigin=n,t["-webkit-transform"]=n,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){this.reset();var n,r;e?(n=e,r=t,this.canvasContext.canvas.width=n,this.canvasContext.canvas.height=r):(this.animationItem.wrapper&&this.animationItem.container?(n=this.animationItem.wrapper.offsetWidth,r=this.animationItem.wrapper.offsetHeight):(n=this.canvasContext.canvas.width,r=this.canvasContext.canvas.height),this.canvasContext.canvas.width=n*this.renderConfig.dpr,this.canvasContext.canvas.height=r*this.renderConfig.dpr);var i,o;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var s=this.renderConfig.preserveAspectRatio.split(" "),a=s[1]||"meet",l=s[0]||"xMidYMid",u=l.substr(0,4),c=l.substr(4);i=n/r,o=this.transformCanvas.w/this.transformCanvas.h,o>i&&a==="meet"||o<i&&a==="slice"?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=r/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr)),u==="xMid"&&(o<i&&a==="meet"||o>i&&a==="slice")?this.transformCanvas.tx=(n-this.transformCanvas.w*(r/this.transformCanvas.h))/2*this.renderConfig.dpr:u==="xMax"&&(o<i&&a==="meet"||o>i&&a==="slice")?this.transformCanvas.tx=(n-this.transformCanvas.w*(r/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,c==="YMid"&&(o>i&&a==="meet"||o<i&&a==="slice")?this.transformCanvas.ty=(r-this.transformCanvas.h*(n/this.transformCanvas.w))/2*this.renderConfig.dpr:c==="YMax"&&(o>i&&a==="meet"||o<i&&a==="slice")?this.transformCanvas.ty=(r-this.transformCanvas.h*(n/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var e,t=this.layers?this.layers.length:0;for(e=t-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if(!(this.renderedFrame===e&&this.renderConfig.clearCanvas===!0&&!t||this.destroyed||e===-1)){this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var n,r=this.layers.length;for(this.completeLayers||this.checkLayers(e),n=0;n<r;n+=1)(this.completeLayers||this.elements[n])&&this.elements[n].prepareFrame(e-this.layers[n].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){var n=this.createItem(this.layers[e],this,this.globalData);t[e]=n,n.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CVCompElement(e,t,n){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e=this.canvasContext;e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip();var t,n=this.layers.length;for(t=n-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var e,t=this.layers.length;for(e=t-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:t&&t.clearCanvas!==void 0?t.clearCanvas:!0,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.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"}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,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 t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var n=this.finalTransform.mat.toCSS();t.transform=n,t.webkitTransform=n}this.finalTransform._opMdf&&(t.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(e,t,n){this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?(e=createNS("rect"),e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(e=createTag("div"),e.style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)};function HShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,n),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 e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)t=e[n].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var n=e.sh.v,r=e.transformers,i,o=n._length,s,a,l,u;if(!(o<=1)){for(i=0;i<o-1;i+=1)s=this.getTransformedPoint(r,n.v[i]),a=this.getTransformedPoint(r,n.o[i]),l=this.getTransformedPoint(r,n.i[i+1]),u=this.getTransformedPoint(r,n.v[i+1]),this.checkBounds(s,a,l,u,t);n.c&&(s=this.getTransformedPoint(r,n.v[i]),a=this.getTransformedPoint(r,n.o[i]),l=this.getTransformedPoint(r,n.i[0]),u=this.getTransformedPoint(r,n.v[0]),this.checkBounds(s,a,l,u,t))}},HShapeElement.prototype.checkBounds=function(e,t,n,r,i){this.getBoundsOfCurve(e,t,n,r);var o=this.shapeBoundingBox;i.x=bmMin(o.left,i.x),i.xMax=bmMax(o.right,i.xMax),i.y=bmMin(o.top,i.y),i.yMax=bmMax(o.bottom,i.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,n,r){for(var i=[[e[0],r[0]],[e[1],r[1]]],o,s,a,l,u,c,f,d=0;d<2;++d)s=6*e[d]-12*t[d]+6*n[d],o=-3*e[d]+9*t[d]-9*n[d]+3*r[d],a=3*t[d]-3*e[d],s|=0,o|=0,a|=0,o===0&&s===0||(o===0?(l=-a/s,l>0&&l<1&&i[d].push(this.calculateF(l,e,t,n,r,d))):(u=s*s-4*a*o,u>=0&&(c=(-s+bmSqrt(u))/(2*o),c>0&&c<1&&i[d].push(this.calculateF(c,e,t,n,r,d)),f=(-s-bmSqrt(u))/(2*o),f>0&&f<1&&i[d].push(this.calculateF(f,e,t,n,r,d)))));this.shapeBoundingBox.left=bmMin.apply(null,i[0]),this.shapeBoundingBox.top=bmMin.apply(null,i[1]),this.shapeBoundingBox.right=bmMax.apply(null,i[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,i[1])},HShapeElement.prototype.calculateF=function(e,t,n,r,i,o){return bmPow(1-e,3)*t[o]+3*bmPow(1-e,2)*e*n[o]+3*(1-e)*bmPow(e,2)*r[o]+bmPow(e,3)*i[o]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)e[n]&&e[n].sh?this.calculateShapeBoundingBox(e[n],t):e[n]&&e[n].it?this.calculateBoundingBox(e[n].it,t):e[n]&&e[n].style&&e[n].w&&this.expandStrokeBoundingBox(e[n].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var n=0;if(e.keyframes){for(var r=0;r<e.keyframes.length;r+=1){var i=e.keyframes[r].s;i>n&&(n=i)}n*=e.mult}else n=e.v*e.mult;t.x-=n,t.xMax+=n,t.y-=n,t.yMax+=n},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var n=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),n=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),n=!0),n||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var r=this.shapeCont.style,i="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";r.transform=i,r.webkitTransform=i}}};function HTextElement(e,t,n){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,n=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=n,t.color=n,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var r=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",r.fClass)this.innerElem.className=r.fClass;else{t.fontFamily=r.fFamily;var i=e.fWeight,o=e.fStyle;t.fontStyle=o,t.fontWeight=i}var s,a,l=e.l;a=l.length;var u,c,f,d=this.mHelper,h,m="",g=0;for(s=0;s<a;s+=1){if(this.globalData.fontManager.chars?(this.textPaths[g]?u=this.textPaths[g]:(u=createNS("path"),u.setAttribute("stroke-linecap",lineCapEnum[1]),u.setAttribute("stroke-linejoin",lineJoinEnum[2]),u.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[g]?(c=this.textSpans[g],f=c.children[0]):(c=createTag("div"),c.style.lineHeight=0,f=createNS("svg"),f.appendChild(u),styleDiv(c)))):this.isMasked?u=this.textPaths[g]?this.textPaths[g]:createNS("text"):this.textSpans[g]?(c=this.textSpans[g],u=this.textPaths[g]):(c=createTag("span"),styleDiv(c),u=createTag("span"),styleDiv(u),c.appendChild(u)),this.globalData.fontManager.chars){var b=this.globalData.fontManager.getCharData(e.finalText[s],r.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),v;if(b?v=b.data:v=null,d.reset(),v&&v.shapes&&v.shapes.length&&(h=v.shapes[0].it,d.scale(e.finalSize/100,e.finalSize/100),m=this.createPathShape(d,h),u.setAttribute("d",m)),this.isMasked)this.innerElem.appendChild(u);else{if(this.innerElem.appendChild(c),v&&v.shapes){document.body.appendChild(f);var x=f.getBBox();f.setAttribute("width",x.width+2),f.setAttribute("height",x.height+2),f.setAttribute("viewBox",x.x-1+" "+(x.y-1)+" "+(x.width+2)+" "+(x.height+2));var y=f.style,_="translate("+(x.x-1)+"px,"+(x.y-1)+"px)";y.transform=_,y.webkitTransform=_,l[s].yOffset=x.y-1}else f.setAttribute("width",1),f.setAttribute("height",1);c.appendChild(f)}}else if(u.textContent=l[s].val,u.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(u);else{this.innerElem.appendChild(c);var w=u.style,k="translate3d(0,"+-e.finalSize/1.2+"px,0)";w.transform=k,w.webkitTransform=k}this.isMasked?this.textSpans[g]=u:this.textSpans[g]=c,this.textSpans[g].style.display="block",this.textPaths[g]=u,g+=1}for(;g<this.textSpans.length;)this.textSpans[g].style.display="none",g+=1},HTextElement.prototype.renderInnerContent=function(){var e;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var n,r,i=0,o=this.textAnimator.renderedLetters,s=this.textProperty.currentData.l;r=s.length;var a,l,u;for(n=0;n<r;n+=1)s[n].n?i+=1:(l=this.textSpans[n],u=this.textPaths[n],a=o[i],i+=1,a._mdf.m&&(this.isMasked?l.setAttribute("transform",a.m):(l.style.webkitTransform=a.m,l.style.transform=a.m)),l.style.opacity=a.o,a.sw&&a._mdf.sw&&u.setAttribute("stroke-width",a.sw),a.sc&&a._mdf.sc&&u.setAttribute("stroke",a.sc),a.fc&&a._mdf.fc&&(u.setAttribute("fill",a.fc),u.style.color=a.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var c=this.innerElem.getBBox();this.currentBBox.w!==c.width&&(this.currentBBox.w=c.width,this.svgElement.setAttribute("width",c.width)),this.currentBBox.h!==c.height&&(this.currentBBox.h=c.height,this.svgElement.setAttribute("height",c.height));var f=1;if(this.currentBBox.w!==c.width+f*2||this.currentBBox.h!==c.height+f*2||this.currentBBox.x!==c.x-f||this.currentBBox.y!==c.y-f){this.currentBBox.w=c.width+f*2,this.currentBBox.h=c.height+f*2,this.currentBBox.x=c.x-f,this.currentBBox.y=c.y-f,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var d="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=d,e.webkitTransform=d}}}};function HCameraElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initHierarchy();var r=PropertyFactory.getProp;if(this.pe=r(this,e.pe,0,0,this),e.ks.p.s?(this.px=r(this,e.ks.p.x,1,0,this),this.py=r(this,e.ks.p.y,1,0,this),this.pz=r(this,e.ks.p.z,1,0,this)):this.p=r(this,e.ks.p,1,0,this),e.ks.a&&(this.a=r(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var i,o=e.ks.or.k.length;for(i=0;i<o;i+=1)e.ks.or.k[i].to=null,e.ks.or.k[i].ti=null}this.or=r(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=r(this,e.ks.rx,0,degToRads,this),this.ry=r(this,e.ks.ry,0,degToRads,this),this.rz=r(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t=this.comp.threeDElements.length,n,r,i;for(e=0;e<t;e+=1)if(n=this.comp.threeDElements[e],n.type==="3d"){r=n.perspectiveElem.style,i=n.container.style;var o=this.pe.v+"px",s="0px 0px 0px",a="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.perspective=o,r.webkitPerspective=o,i.transformOrigin=s,i.mozTransformOrigin=s,i.webkitTransformOrigin=s,r.transform=a,r.webkitTransform=a}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e=this._isFirstFrame,t,n;if(this.hierarchy)for(n=this.hierarchy.length,t=0;t<n;t+=1)e=this.hierarchy[t].finalTransform.mProp._mdf||e;if(e||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(n=this.hierarchy.length-1,t=n;t>=0;t-=1){var r=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-r.p.v[0],-r.p.v[1],r.p.v[2]),this.mat.rotateX(-r.or.v[0]).rotateY(-r.or.v[1]).rotateZ(r.or.v[2]),this.mat.rotateX(-r.rx.v).rotateY(-r.ry.v).rotateZ(r.rz.v),this.mat.scale(1/r.s.v[0],1/r.s.v[1],1/r.s.v[2]),this.mat.translate(r.a.v[0],r.a.v[1],r.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 i;this.p?i=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:i=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var o=Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2)+Math.pow(i[2],2)),s=[i[0]/o,i[1]/o,i[2]/o],a=Math.sqrt(s[2]*s[2]+s[0]*s[0]),l=Math.atan2(s[1],a),u=Math.atan2(s[0],-s[2]);this.mat.rotateY(u).rotateX(-l)}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 c=!this._prevMat.equals(this.mat);if((c||this.pe._mdf)&&this.comp.threeDElements){n=this.comp.threeDElements.length;var f,d,h;for(t=0;t<n;t+=1)if(f=this.comp.threeDElements[t],f.type==="3d"){if(c){var m=this.mat.toCSS();h=f.container.style,h.transform=m,h.webkitTransform=m}this.pe._mdf&&(d=f.perspectiveElem.style,d.perspective=this.pe.v+"px",d.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(!!n){var r=this.layers[t];if(!r.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(n,t);else{for(var i=0,o,s,a;i<t;)this.elements[i]&&this.elements[i]!==!0&&this.elements[i].getBaseElement&&(s=this.elements[i],a=this.layers[i].ddd?this.getThreeDContainerByPos(i):s.getBaseElement(),o=a||o),i+=1;o?(!r.ddd||!this.supports3d)&&this.layerElement.insertBefore(n,o):(!r.ddd||!this.supports3d)&&this.layerElement.appendChild(n)}else this.addTo3dContainer(n,t)}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,n=this.threeDElements.length;t<n;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var n=createTag("div"),r,i;styleDiv(n);var o=createTag("div");if(styleDiv(o),t==="3d"){r=n.style,r.width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px";var s="50% 50%";r.webkitTransformOrigin=s,r.mozTransformOrigin=s,r.transformOrigin=s,i=o.style;var a="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";i.transform=a,i.webkitTransform=a}n.appendChild(o);var l={container:o,perspectiveElem:n,startPos:e,endPos:e,type:t};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var e,t=this.layers.length,n,r="";for(e=0;e<t;e+=1)this.layers[e].ddd&&this.layers[e].ty!==3?(r!=="3d"&&(r="3d",n=this.createThreeDContainer(e,"3d")),n.endPos=Math.max(n.endPos,e)):(r!=="2d"&&(r="2d",n=this.createThreeDContainer(e,"2d")),n.endPos=Math.max(n.endPos,e));for(t=this.threeDElements.length,e=t-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var n=0,r=this.threeDElements.length;n<r;){if(t<=this.threeDElements[n].endPos){for(var i=this.threeDElements[n].startPos,o;i<t;)this.elements[i]&&this.elements[i].getBaseElement&&(o=this.elements[i].getBaseElement()),i+=1;o?this.threeDElements[n].container.insertBefore(e,o):this.threeDElements[n].container.appendChild(e);break}n+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),n=this.animationItem.wrapper,r=t.style;r.width=e.w+"px",r.height=e.h+"px",this.resizerElem=t,styleDiv(t),r.transformStyle="flat",r.mozTransformStyle="flat",r.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),n.appendChild(t),r.overflow="hidden";var i=createNS("svg");i.setAttribute("width","1"),i.setAttribute("height","1"),styleDiv(i),this.resizerElem.appendChild(i);var o=createNS("defs");i.appendChild(o),this.data=e,this.setupGlobalData(e,i),this.globalData.defs=o,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e=this.animationItem.wrapper.offsetWidth,t=this.animationItem.wrapper.offsetHeight,n=e/t,r=this.globalData.compSize.w/this.globalData.compSize.h,i,o,s,a;r>n?(i=e/this.globalData.compSize.w,o=e/this.globalData.compSize.w,s=0,a=(t-this.globalData.compSize.h*(e/this.globalData.compSize.w))/2):(i=t/this.globalData.compSize.h,o=t/this.globalData.compSize.h,s=(e-this.globalData.compSize.w*(t/this.globalData.compSize.h))/2,a=0);var l=this.resizerElem.style;l.webkitTransform="matrix3d("+i+",0,0,0,0,"+o+",0,0,0,0,1,0,"+s+","+a+",0,1)",l.transform=l.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 e=this.globalData.compSize.w,t=this.globalData.compSize.h,n,r=this.threeDElements.length;for(n=0;n<r;n+=1){var i=this.threeDElements[n].perspectiveElem.style;i.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(t,2))+"px",i.perspective=i.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,n=e.length,r=createTag("div");for(t=0;t<n;t+=1)if(e[t].xt){var i=this.createComp(e[t],r,this.globalData.comp,null);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}};function HCompElement(e,t,n){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var n=0,r;n<t;)this.elements[n]&&this.elements[n].getBaseElement&&(r=this.elements[n].getBaseElement()),n+=1;r?this.layerElement.insertBefore(e,r):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(){return function(e){function t(n){for(var r=0,i=e.layers.length;r<i;){if(e.layers[r].nm===n||e.layers[r].ind===n)return e.elements[r].layerInterface;r+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t}}(),Expressions=function(){var e={};e.initExpressions=t;function t(n){var r=0,i=[];function o(){r+=1}function s(){r-=1,r===0&&l()}function a(u){i.indexOf(u)===-1&&i.push(u)}function l(){var u,c=i.length;for(u=0;u<c;u+=1)i[u].release();i.length=0}n.renderer.compInterface=CompExpressionInterface(n.renderer),n.renderer.globalData.projectInterface.registerComposition(n.renderer),n.renderer.globalData.pushExpression=o,n.renderer.globalData.popExpression=s,n.renderer.globalData.registerExpressionProperty=a}return e}(),MaskManagerInterface=function(){function e(n,r){this._mask=n,this._data=r}Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var t=function(r){var i=createSizedArray(r.viewData.length),o,s=r.viewData.length;for(o=0;o<s;o+=1)i[o]=new e(r.viewData[o],r.masksProperties[o]);var a=function(u){for(o=0;o<s;){if(r.masksProperties[o].nm===u)return i[o];o+=1}return null};return a};return t}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function n(s,a,l){Object.defineProperty(s,"velocity",{get:function(){return a.getVelocityAtTime(a.comp.currentFrame)}}),s.numKeys=a.keyframes?a.keyframes.length:0,s.key=function(u){if(!s.numKeys)return 0;var c="";"s"in a.keyframes[u-1]?c=a.keyframes[u-1].s:"e"in a.keyframes[u-2]?c=a.keyframes[u-2].e:c=a.keyframes[u-2].s;var f=l==="unidimensional"?new Number(c):Object.assign({},c);return f.time=a.keyframes[u-1].t/a.elem.comp.globalData.frameRate,f.value=l==="unidimensional"?c[0]:c,f},s.valueAtTime=a.getValueAtTime,s.speedAtTime=a.getSpeedAtTime,s.velocityAtTime=a.getVelocityAtTime,s.propertyGroup=a.propertyGroup}function r(s){(!s||!("pv"in s))&&(s=e);var a=1/s.mult,l=s.pv*a,u=new Number(l);return u.value=l,n(u,s,"unidimensional"),function(){return s.k&&s.getValue(),l=s.v*a,u.value!==l&&(u=new Number(l),u.value=l,n(u,s,"unidimensional")),u}}function i(s){(!s||!("pv"in s))&&(s=t);var a=1/s.mult,l=s.data&&s.data.l||s.pv.length,u=createTypedArray("float32",l),c=createTypedArray("float32",l);return u.value=c,n(u,s,"multidimensional"),function(){s.k&&s.getValue();for(var f=0;f<l;f+=1)c[f]=s.v[f]*a,u[f]=c[f];return u}}function o(){return e}return function(s){return s?s.propType==="unidimensional"?r(s):i(s):o}}(),TransformExpressionInterface=function(){return function(e){function t(s){switch(s){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)});var n,r,i,o;return e.p?o=ExpressionPropertyInterface(e.p):(n=ExpressionPropertyInterface(e.px),r=ExpressionPropertyInterface(e.py),e.pz&&(i=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?o():[n(),r(),i?i():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t}}(),LayerExpressionInterface=function(){function e(u){var c=new Matrix;if(u!==void 0){var f=this._elem.finalTransform.mProp.getValueAtTime(u);f.clone(c)}else{var d=this._elem.finalTransform.mProp;d.applyToMatrix(c)}return c}function t(u,c){var f=this.getMatrix(c);return f.props[12]=0,f.props[13]=0,f.props[14]=0,this.applyPoint(f,u)}function n(u,c){var f=this.getMatrix(c);return this.applyPoint(f,u)}function r(u,c){var f=this.getMatrix(c);return f.props[12]=0,f.props[13]=0,f.props[14]=0,this.invertPoint(f,u)}function i(u,c){var f=this.getMatrix(c);return this.invertPoint(f,u)}function o(u,c){if(this._elem.hierarchy&&this._elem.hierarchy.length){var f,d=this._elem.hierarchy.length;for(f=0;f<d;f+=1)this._elem.hierarchy[f].finalTransform.mProp.applyToMatrix(u)}return u.applyToPointArray(c[0],c[1],c[2]||0)}function s(u,c){if(this._elem.hierarchy&&this._elem.hierarchy.length){var f,d=this._elem.hierarchy.length;for(f=0;f<d;f+=1)this._elem.hierarchy[f].finalTransform.mProp.applyToMatrix(u)}return u.inversePoint(c)}function a(u){var c=new Matrix;if(c.reset(),this._elem.finalTransform.mProp.applyToMatrix(c),this._elem.hierarchy&&this._elem.hierarchy.length){var f,d=this._elem.hierarchy.length;for(f=0;f<d;f+=1)this._elem.hierarchy[f].finalTransform.mProp.applyToMatrix(c);return c.inversePoint(u)}return c.inversePoint(u)}function l(){return[1,1,1,1]}return function(u){var c;function f(g){h.mask=new MaskManagerInterface(g,u)}function d(g){h.effect=g}function h(g){switch(g){case"ADBE Root Vectors Group":case"Contents":case 2:return h.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return c;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return h.effect;case"ADBE Text Properties":return h.textInterface;default:return null}}h.getMatrix=e,h.invertPoint=s,h.applyPoint=o,h.toWorld=n,h.toWorldVec=t,h.fromWorld=i,h.fromWorldVec=r,h.toComp=n,h.fromComp=a,h.sampleImage=l,h.sourceRectAtTime=u.sourceRectAtTime.bind(u),h._elem=u,c=TransformExpressionInterface(u.finalTransform.mProp);var m=getDescriptor(c,"anchorPoint");return Object.defineProperties(h,{hasParent:{get:function(){return u.hierarchy.length}},parent:{get:function(){return u.hierarchy[0].layerInterface}},rotation:getDescriptor(c,"rotation"),scale:getDescriptor(c,"scale"),position:getDescriptor(c,"position"),opacity:getDescriptor(c,"opacity"),anchorPoint:m,anchor_point:m,transform:{get:function(){return c}},active:{get:function(){return u.isInRange}}}),h.startTime=u.data.st,h.index=u.data.ind,h.source=u.data.refId,h.height=u.data.ty===0?u.data.h:100,h.width=u.data.ty===0?u.data.w:100,h.inPoint=u.data.ip/u.comp.globalData.frameRate,h.outPoint=u.data.op/u.comp.globalData.frameRate,h._name=u.data.nm,h.registerMaskInterface=f,h.registerEffectsInterface=d,h}}(),propertyGroupFactory=function(){return function(e,t){return function(n){return n=n===void 0?1:n,n<=0?e:t(n-1)}}}(),PropertyInterface=function(){return function(e,t){var n={_name:e};function r(i){return i=i===void 0?1:i,i<=0?n:t(i-1)}return r}}(),EffectsExpressionInterface=function(){var e={createEffectsInterface:t};function t(i,o){if(i.effectsManager){var s=[],a=i.data.ef,l,u=i.effectsManager.effectElements.length;for(l=0;l<u;l+=1)s.push(n(a[l],i.effectsManager.effectElements[l],o,i));var c=i.data.ef||[],f=function(h){for(l=0,u=c.length;l<u;){if(h===c[l].nm||h===c[l].mn||h===c[l].ix)return s[l];l+=1}return null};return Object.defineProperty(f,"numProperties",{get:function(){return c.length}}),f}return null}function n(i,o,s,a){function l(h){for(var m=i.ef,g=0,b=m.length;g<b;){if(h===m[g].nm||h===m[g].mn||h===m[g].ix)return m[g].ty===5?c[g]:c[g]();g+=1}throw new Error}var u=propertyGroupFactory(l,s),c=[],f,d=i.ef.length;for(f=0;f<d;f+=1)i.ef[f].ty===5?c.push(n(i.ef[f],o.effectElements[f],o.effectElements[f].propertyGroup,a)):c.push(r(o.effectElements[f],i.ef[f].ty,a,u));return i.mn==="ADBE Color Control"&&Object.defineProperty(l,"color",{get:function(){return c[0]()}}),Object.defineProperties(l,{numProperties:{get:function(){return i.np}},_name:{value:i.nm},propertyGroup:{value:u}}),l.enabled=i.en!==0,l.active=l.enabled,l}function r(i,o,s,a){var l=ExpressionPropertyInterface(i.p);function u(){return o===10?s.comp.compInterface(i.p.v):l()}return i.p.setGroupProperty&&i.p.setGroupProperty(PropertyInterface("",a)),u}return e}(),ShapePathInterface=function(){return function(t,n,r){var i=n.sh;function o(a){return a==="Shape"||a==="shape"||a==="Path"||a==="path"||a==="ADBE Vector Shape"||a===2?o.path:null}var s=propertyGroupFactory(o,r);return i.setGroupProperty(PropertyInterface("Path",s)),Object.defineProperties(o,{path:{get:function(){return i.k&&i.getValue(),i}},shape:{get:function(){return i.k&&i.getValue(),i}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:r}}),o}}(),ShapeExpressionInterface=function(){function e(m,g,b){var v=[],x,y=m?m.length:0;for(x=0;x<y;x+=1)m[x].ty==="gr"?v.push(n(m[x],g[x],b)):m[x].ty==="fl"?v.push(r(m[x],g[x],b)):m[x].ty==="st"?v.push(s(m[x],g[x],b)):m[x].ty==="tm"?v.push(a(m[x],g[x],b)):m[x].ty==="tr"||(m[x].ty==="el"?v.push(u(m[x],g[x],b)):m[x].ty==="sr"?v.push(c(m[x],g[x],b)):m[x].ty==="sh"?v.push(ShapePathInterface(m[x],g[x],b)):m[x].ty==="rc"?v.push(f(m[x],g[x],b)):m[x].ty==="rd"?v.push(d(m[x],g[x],b)):m[x].ty==="rp"?v.push(h(m[x],g[x],b)):m[x].ty==="gf"?v.push(i(m[x],g[x],b)):v.push(o(m[x],g[x],b)));return v}function t(m,g,b){var v,x=function(w){for(var k=0,O=v.length;k<O;){if(v[k]._name===w||v[k].mn===w||v[k].propertyIndex===w||v[k].ix===w||v[k].ind===w)return v[k];k+=1}return typeof w=="number"?v[w-1]:null};x.propertyGroup=propertyGroupFactory(x,b),v=e(m.it,g.it,x.propertyGroup),x.numProperties=v.length;var y=l(m.it[m.it.length-1],g.it[g.it.length-1],x.propertyGroup);return x.transform=y,x.propertyIndex=m.cix,x._name=m.nm,x}function n(m,g,b){var v=function(w){switch(w){case"ADBE Vectors Group":case"Contents":case 2:return v.content;default:return v.transform}};v.propertyGroup=propertyGroupFactory(v,b);var x=t(m,g,v.propertyGroup),y=l(m.it[m.it.length-1],g.it[g.it.length-1],v.propertyGroup);return v.content=x,v.transform=y,Object.defineProperty(v,"_name",{get:function(){return m.nm}}),v.numProperties=m.np,v.propertyIndex=m.ix,v.nm=m.nm,v.mn=m.mn,v}function r(m,g,b){function v(x){return x==="Color"||x==="color"?v.color:x==="Opacity"||x==="opacity"?v.opacity:null}return Object.defineProperties(v,{color:{get:ExpressionPropertyInterface(g.c)},opacity:{get:ExpressionPropertyInterface(g.o)},_name:{value:m.nm},mn:{value:m.mn}}),g.c.setGroupProperty(PropertyInterface("Color",b)),g.o.setGroupProperty(PropertyInterface("Opacity",b)),v}function i(m,g,b){function v(x){return x==="Start Point"||x==="start point"?v.startPoint:x==="End Point"||x==="end point"?v.endPoint:x==="Opacity"||x==="opacity"?v.opacity:null}return Object.defineProperties(v,{startPoint:{get:ExpressionPropertyInterface(g.s)},endPoint:{get:ExpressionPropertyInterface(g.e)},opacity:{get:ExpressionPropertyInterface(g.o)},type:{get:function(){return"a"}},_name:{value:m.nm},mn:{value:m.mn}}),g.s.setGroupProperty(PropertyInterface("Start Point",b)),g.e.setGroupProperty(PropertyInterface("End Point",b)),g.o.setGroupProperty(PropertyInterface("Opacity",b)),v}function o(){function m(){return null}return m}function s(m,g,b){var v=propertyGroupFactory(O,b),x=propertyGroupFactory(k,v);function y(M){Object.defineProperty(k,m.d[M].nm,{get:ExpressionPropertyInterface(g.d.dataProps[M].p)})}var _,w=m.d?m.d.length:0,k={};for(_=0;_<w;_+=1)y(_),g.d.dataProps[_].p.setGroupProperty(x);function O(M){return M==="Color"||M==="color"?O.color:M==="Opacity"||M==="opacity"?O.opacity:M==="Stroke Width"||M==="stroke width"?O.strokeWidth:null}return Object.defineProperties(O,{color:{get:ExpressionPropertyInterface(g.c)},opacity:{get:ExpressionPropertyInterface(g.o)},strokeWidth:{get:ExpressionPropertyInterface(g.w)},dash:{get:function(){return k}},_name:{value:m.nm},mn:{value:m.mn}}),g.c.setGroupProperty(PropertyInterface("Color",v)),g.o.setGroupProperty(PropertyInterface("Opacity",v)),g.w.setGroupProperty(PropertyInterface("Stroke Width",v)),O}function a(m,g,b){function v(y){return y===m.e.ix||y==="End"||y==="end"?v.end:y===m.s.ix?v.start:y===m.o.ix?v.offset:null}var x=propertyGroupFactory(v,b);return v.propertyIndex=m.ix,g.s.setGroupProperty(PropertyInterface("Start",x)),g.e.setGroupProperty(PropertyInterface("End",x)),g.o.setGroupProperty(PropertyInterface("Offset",x)),v.propertyIndex=m.ix,v.propertyGroup=b,Object.defineProperties(v,{start:{get:ExpressionPropertyInterface(g.s)},end:{get:ExpressionPropertyInterface(g.e)},offset:{get:ExpressionPropertyInterface(g.o)},_name:{value:m.nm}}),v.mn=m.mn,v}function l(m,g,b){function v(y){return m.a.ix===y||y==="Anchor Point"?v.anchorPoint:m.o.ix===y||y==="Opacity"?v.opacity:m.p.ix===y||y==="Position"?v.position:m.r.ix===y||y==="Rotation"||y==="ADBE Vector Rotation"?v.rotation:m.s.ix===y||y==="Scale"?v.scale:m.sk&&m.sk.ix===y||y==="Skew"?v.skew:m.sa&&m.sa.ix===y||y==="Skew Axis"?v.skewAxis:null}var x=propertyGroupFactory(v,b);return g.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",x)),g.transform.mProps.p.setGroupProperty(PropertyInterface("Position",x)),g.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",x)),g.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",x)),g.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",x)),g.transform.mProps.sk&&(g.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",x)),g.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",x))),g.transform.op.setGroupProperty(PropertyInterface("Opacity",x)),Object.defineProperties(v,{opacity:{get:ExpressionPropertyInterface(g.transform.mProps.o)},position:{get:ExpressionPropertyInterface(g.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(g.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(g.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(g.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(g.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(g.transform.mProps.sa)},_name:{value:m.nm}}),v.ty="tr",v.mn=m.mn,v.propertyGroup=b,v}function u(m,g,b){function v(_){return m.p.ix===_?v.position:m.s.ix===_?v.size:null}var x=propertyGroupFactory(v,b);v.propertyIndex=m.ix;var y=g.sh.ty==="tm"?g.sh.prop:g.sh;return y.s.setGroupProperty(PropertyInterface("Size",x)),y.p.setGroupProperty(PropertyInterface("Position",x)),Object.defineProperties(v,{size:{get:ExpressionPropertyInterface(y.s)},position:{get:ExpressionPropertyInterface(y.p)},_name:{value:m.nm}}),v.mn=m.mn,v}function c(m,g,b){function v(_){return m.p.ix===_?v.position:m.r.ix===_?v.rotation:m.pt.ix===_?v.points:m.or.ix===_||_==="ADBE Vector Star Outer Radius"?v.outerRadius:m.os.ix===_?v.outerRoundness:m.ir&&(m.ir.ix===_||_==="ADBE Vector Star Inner Radius")?v.innerRadius:m.is&&m.is.ix===_?v.innerRoundness:null}var x=propertyGroupFactory(v,b),y=g.sh.ty==="tm"?g.sh.prop:g.sh;return v.propertyIndex=m.ix,y.or.setGroupProperty(PropertyInterface("Outer Radius",x)),y.os.setGroupProperty(PropertyInterface("Outer Roundness",x)),y.pt.setGroupProperty(PropertyInterface("Points",x)),y.p.setGroupProperty(PropertyInterface("Position",x)),y.r.setGroupProperty(PropertyInterface("Rotation",x)),m.ir&&(y.ir.setGroupProperty(PropertyInterface("Inner Radius",x)),y.is.setGroupProperty(PropertyInterface("Inner Roundness",x))),Object.defineProperties(v,{position:{get:ExpressionPropertyInterface(y.p)},rotation:{get:ExpressionPropertyInterface(y.r)},points:{get:ExpressionPropertyInterface(y.pt)},outerRadius:{get:ExpressionPropertyInterface(y.or)},outerRoundness:{get:ExpressionPropertyInterface(y.os)},innerRadius:{get:ExpressionPropertyInterface(y.ir)},innerRoundness:{get:ExpressionPropertyInterface(y.is)},_name:{value:m.nm}}),v.mn=m.mn,v}function f(m,g,b){function v(_){return m.p.ix===_?v.position:m.r.ix===_?v.roundness:m.s.ix===_||_==="Size"||_==="ADBE Vector Rect Size"?v.size:null}var x=propertyGroupFactory(v,b),y=g.sh.ty==="tm"?g.sh.prop:g.sh;return v.propertyIndex=m.ix,y.p.setGroupProperty(PropertyInterface("Position",x)),y.s.setGroupProperty(PropertyInterface("Size",x)),y.r.setGroupProperty(PropertyInterface("Rotation",x)),Object.defineProperties(v,{position:{get:ExpressionPropertyInterface(y.p)},roundness:{get:ExpressionPropertyInterface(y.r)},size:{get:ExpressionPropertyInterface(y.s)},_name:{value:m.nm}}),v.mn=m.mn,v}function d(m,g,b){function v(_){return m.r.ix===_||_==="Round Corners 1"?v.radius:null}var x=propertyGroupFactory(v,b),y=g;return v.propertyIndex=m.ix,y.rd.setGroupProperty(PropertyInterface("Radius",x)),Object.defineProperties(v,{radius:{get:ExpressionPropertyInterface(y.rd)},_name:{value:m.nm}}),v.mn=m.mn,v}function h(m,g,b){function v(_){return m.c.ix===_||_==="Copies"?v.copies:m.o.ix===_||_==="Offset"?v.offset:null}var x=propertyGroupFactory(v,b),y=g;return v.propertyIndex=m.ix,y.c.setGroupProperty(PropertyInterface("Copies",x)),y.o.setGroupProperty(PropertyInterface("Offset",x)),Object.defineProperties(v,{copies:{get:ExpressionPropertyInterface(y.c)},offset:{get:ExpressionPropertyInterface(y.o)},_name:{value:m.nm}}),v.mn=m.mn,v}return function(m,g,b){var v;function x(_){if(typeof _=="number")return _=_===void 0?1:_,_===0?b:v[_-1];for(var w=0,k=v.length;w<k;){if(v[w]._name===_)return v[w];w+=1}return null}function y(){return b}return x.propertyGroup=propertyGroupFactory(x,y),v=e(m,g,x.propertyGroup),x.numProperties=v.length,x._name="Contents",x}}(),TextExpressionInterface=function(){return function(e){var t;function n(r){switch(r){case"ADBE Text Document":return n.sourceText;default:return null}}return Object.defineProperty(n,"sourceText",{get:function(){e.textProperty.getValue();var i=e.textProperty.currentData.t;return(!t||i!==t.value)&&(t=new String(i),t.value=i||new String(i),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),n}}();function _typeof$2(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(n){return typeof n}:_typeof$2=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$2(e)}var FootageInterface=function(){var e=function(r){var i="",o=r.getFootageData();function s(){return i="",o=r.getFootageData(),a}function a(l){if(o[l])return i=l,o=o[l],_typeof$2(o)==="object"?a:o;var u=l.indexOf(i);if(u!==-1){var c=parseInt(l.substr(u+i.length),10);return o=o[c],_typeof$2(o)==="object"?a:o}return""}return s},t=function(r){function i(o){return o==="Outline"?i.outlineInterface():null}return i._name="Outline",i.outlineInterface=e(r),i};return function(n){function r(i){return i==="Data"?r.dataInterface:null}return r._name="Data",r.dataInterface=t(n),r}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}function _typeof$1(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(n){return typeof n}:_typeof$1=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$1(e)}function seedRandom(e,t){var n=this,r=256,i=6,o=52,s="random",a=t.pow(r,i),l=t.pow(2,o),u=l*2,c=r-1,f;function d(y,_,w){var k=[];_=_===!0?{entropy:!0}:_||{};var O=b(g(_.entropy?[y,x(e)]:y===null?v():y,3),k),M=new h(k),I=function(){for(var J=M.g(i),H=a,ee=0;J<l;)J=(J+ee)*r,H*=r,ee=M.g(1);for(;J>=u;)J/=2,H/=2,ee>>>=1;return(J+ee)/H};return I.int32=function(){return M.g(4)|0},I.quick=function(){return M.g(4)/4294967296},I.double=I,b(x(M.S),e),(_.pass||w||function(W,J,H,ee){return ee&&(ee.S&&m(ee,M),W.state=function(){return m(M,{})}),H?(t[s]=W,J):W})(I,O,"global"in _?_.global:this==t,_.state)}t["seed"+s]=d;function h(y){var _,w=y.length,k=this,O=0,M=k.i=k.j=0,I=k.S=[];for(w||(y=[w++]);O<r;)I[O]=O++;for(O=0;O<r;O++)I[O]=I[M=c&M+y[O%w]+(_=I[O])],I[M]=_;k.g=function(W){for(var J,H=0,ee=k.i,j=k.j,V=k.S;W--;)J=V[ee=c&ee+1],H=H*r+V[c&(V[ee]=V[j=c&j+J])+(V[j]=J)];return k.i=ee,k.j=j,H}}function m(y,_){return _.i=y.i,_.j=y.j,_.S=y.S.slice(),_}function g(y,_){var w=[],k=_typeof$1(y),O;if(_&&k=="object")for(O in y)try{w.push(g(y[O],_-1))}catch{}return w.length?w:k=="string"?y:y+"\0"}function b(y,_){for(var w=y+"",k,O=0;O<w.length;)_[c&O]=c&(k^=_[c&O]*19)+w.charCodeAt(O++);return x(_)}function v(){try{if(f)return x(f.randomBytes(r));var y=new Uint8Array(r);return(n.crypto||n.msCrypto).getRandomValues(y),x(y)}catch{var _=n.navigator,w=_&&_.plugins;return[+new Date,n,w,n.screen,x(e)]}}function x(y){return String.fromCharCode.apply(0,y)}b(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(n){return typeof n}:_typeof=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof(e)}var ExpressionManager=function(){"use strict";var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;initialize$2(BMMath);function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return e==="number"||e==="boolean"||e==="string"||t instanceof Number}function $bm_neg(e){var t=_typeof(e);if(t==="number"||t==="boolean"||e instanceof Number)return-e;if($bm_isInstanceOfArray(e)){var n,r=e.length,i=[];for(n=0;n<r;n+=1)i[n]=-e[n];return i}return e.propType?e.v:-e}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var n=_typeof(e),r=_typeof(t);if(n==="string"||r==="string"||isNumerable(n,e)&&isNumerable(r,t))return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(r,t))return e=e.slice(0),e[0]+=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,o=e.length,s=t.length,a=[];i<o||i<s;)(typeof e[i]=="number"||e[i]instanceof Number)&&(typeof t[i]=="number"||t[i]instanceof Number)?a[i]=e[i]+t[i]:a[i]=t[i]===void 0?e[i]:e[i]||t[i],i+=1;return a}return 0}var add=sum;function sub(e,t){var n=_typeof(e),r=_typeof(t);if(isNumerable(n,e)&&isNumerable(r,t))return n==="string"&&(e=parseInt(e,10)),r==="string"&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(r,t))return e=e.slice(0),e[0]-=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,o=e.length,s=t.length,a=[];i<o||i<s;)(typeof e[i]=="number"||e[i]instanceof Number)&&(typeof t[i]=="number"||t[i]instanceof Number)?a[i]=e[i]-t[i]:a[i]=t[i]===void 0?e[i]:e[i]||t[i],i+=1;return a}return 0}function mul(e,t){var n=_typeof(e),r=_typeof(t),i;if(isNumerable(n,e)&&isNumerable(r,t))return e*t;var o,s;if($bm_isInstanceOfArray(e)&&isNumerable(r,t)){for(s=e.length,i=createTypedArray("float32",s),o=0;o<s;o+=1)i[o]=e[o]*t;return i}if(isNumerable(n,e)&&$bm_isInstanceOfArray(t)){for(s=t.length,i=createTypedArray("float32",s),o=0;o<s;o+=1)i[o]=e*t[o];return i}return 0}function div(e,t){var n=_typeof(e),r=_typeof(t),i;if(isNumerable(n,e)&&isNumerable(r,t))return e/t;var o,s;if($bm_isInstanceOfArray(e)&&isNumerable(r,t)){for(s=e.length,i=createTypedArray("float32",s),o=0;o<s;o+=1)i[o]=e[o]/t;return i}if(isNumerable(n,e)&&$bm_isInstanceOfArray(t)){for(s=t.length,i=createTypedArray("float32",s),o=0;o<s;o+=1)i[o]=e/t[o];return i}return 0}function mod(e,t){return typeof e=="string"&&(e=parseInt(e,10)),typeof t=="string"&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,n){if(t>n){var r=n;n=t,t=r}return Math.min(Math.max(e,t),n)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if(typeof e=="number"||e instanceof Number)return t=t||0,Math.abs(e-t);t||(t=helperLengthArray);var n,r=Math.min(e.length,t.length),i=0;for(n=0;n<r;n+=1)i+=Math.pow(t[n]-e[n],2);return Math.sqrt(i)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t=e[0],n=e[1],r=e[2],i=Math.max(t,n,r),o=Math.min(t,n,r),s,a,l=(i+o)/2;if(i===o)s=0,a=0;else{var u=i-o;switch(a=l>.5?u/(2-i-o):u/(i+o),i){case t:s=(n-r)/u+(n<r?6:0);break;case n:s=(r-t)/u+2;break;case r:s=(t-n)/u+4;break;default:break}s/=6}return[s,a,l,e[3]]}function hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hslToRgb(e){var t=e[0],n=e[1],r=e[2],i,o,s;if(n===0)i=r,s=r,o=r;else{var a=r<.5?r*(1+n):r+n-r*n,l=2*r-a;i=hue2rgb(l,a,t+1/3),o=hue2rgb(l,a,t),s=hue2rgb(l,a,t-1/3)}return[i,o,s,e[3]]}function linear(e,t,n,r,i){if((r===void 0||i===void 0)&&(r=t,i=n,t=0,n=1),n<t){var o=n;n=t,t=o}if(e<=t)return r;if(e>=n)return i;var s=n===t?0:(e-t)/(n-t);if(!r.length)return r+(i-r)*s;var a,l=r.length,u=createTypedArray("float32",l);for(a=0;a<l;a+=1)u[a]=r[a]+(i[a]-r[a])*s;return u}function random(e,t){if(t===void 0&&(e===void 0?(e=0,t=1):(t=e,e=void 0)),t.length){var n,r=t.length;e||(e=createTypedArray("float32",r));var i=createTypedArray("float32",r),o=BMMath.random();for(n=0;n<r;n+=1)i[n]=e[n]+o*(t[n]-e[n]);return i}e===void 0&&(e=0);var s=BMMath.random();return e+s*(t-e)}function createPath(e,t,n,r){var i,o=e.length,s=shapePool.newElement();s.setPathData(!!r,o);var a=[0,0],l,u;for(i=0;i<o;i+=1)l=t&&t[i]?t[i]:a,u=n&&n[i]?n[i]:a,s.setTripleAt(e[i][0],e[i][1],u[0]+e[i][0],u[1]+e[i][1],l[0]+e[i][0],l[1]+e[i][1],i,!0);return s}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=function e(t,n){var r,i,o=this.pv.length?this.pv.length:1,s=createTypedArray("float32",o);t=5;var a=Math.floor(time*t);for(r=0,i=0;r<a;){for(i=0;i<o;i+=1)s[i]+=-n+n*2*BMMath.random();r+=1}var l=time*t,u=l-Math.floor(l),c=createTypedArray("float32",o);if(o>1){for(i=0;i<o;i+=1)c[i]=this.pv[i]+s[i]+(-n+n*2*BMMath.random())*u;return c}return this.pv+s[0]+(-n+n*2*BMMath.random())*u}.bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(e,t){var n=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],r=Math.atan2(n[0],Math.sqrt(n[1]*n[1]+n[2]*n[2]))/degToRads,i=-Math.atan2(n[1],n[2])/degToRads;return[i,r,0]}function easeOut(e,t,n,r,i){return applyEase(easeOutBez,e,t,n,r,i)}function easeIn(e,t,n,r,i){return applyEase(easeInBez,e,t,n,r,i)}function ease(e,t,n,r,i){return applyEase(easeInOutBez,e,t,n,r,i)}function applyEase(e,t,n,r,i,o){i===void 0?(i=n,o=r):t=(t-n)/(r-n),t>1?t=1:t<0&&(t=0);var s=e(t);if($bm_isInstanceOfArray(i)){var a,l=i.length,u=createTypedArray("float32",l);for(a=0;a<l;a+=1)u[a]=(o[a]-i[a])*s+i[a];return u}return(o-i)*s+i}function nearestKey(e){var t,n=data.k.length,r,i;if(!data.k.length||typeof data.k[0]=="number")r=0,i=0;else if(r=-1,e*=elem.comp.globalData.frameRate,e<data.k[0].t)r=1,i=data.k[0].t;else{for(t=0;t<n-1;t+=1)if(e===data.k[t].t){r=t+1,i=data.k[t].t;break}else if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(r=t+2,i=data.k[t+1].t):(r=t+1,i=data.k[t].t);break}r===-1&&(r=t+1,i=data.k[t].t)}var o={};return o.index=r,o.time=i/elem.comp.globalData.frameRate,o}function key(e){var t,n,r;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var i=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(r=i.length,n=0;n<r;n+=1)t[n]=i[n],t.value[n]=i[n];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return!e&&e!==0&&(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return typeof value=="string"?t===void 0?value.substring(e):value.substring(e,t):""}function substr(e,t){return typeof value=="string"?t===void 0?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=e===0?0:Math.floor(time*e)/e,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath],ob}(),expressionHelpers=function(){function e(s,a,l){a.x&&(l.k=!0,l.x=!0,l.initiateExpression=ExpressionManager.initiateExpression,l.effectsSequence.push(l.initiateExpression(s,a,l).bind(l)))}function t(s){return s*=this.elem.globalData.frameRate,s-=this.offsetTime,s!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<s?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(s,this._cachingAtTime),this._cachingAtTime.lastFrame=s),this._cachingAtTime.value}function n(s){var a=-.01,l=this.getValueAtTime(s),u=this.getValueAtTime(s+a),c=0;if(l.length){var f;for(f=0;f<l.length;f+=1)c+=Math.pow(u[f]-l[f],2);c=Math.sqrt(c)*100}else c=0;return c}function r(s){if(this.vel!==void 0)return this.vel;var a=-.001,l=this.getValueAtTime(s),u=this.getValueAtTime(s+a),c;if(l.length){c=createTypedArray("float32",l.length);var f;for(f=0;f<l.length;f+=1)c[f]=(u[f]-l[f])/a}else c=(u-l)/a;return c}function i(){return this.pv}function o(s){this.propertyGroup=s}return{searchExpressions:e,getSpeedAtTime:n,getVelocityAtTime:r,getValueAtTime:t,getStaticValueAtTime:i,setGroupProperty:o}}();function addPropertyDecorator(){function e(d,h,m){if(!this.k||!this.keyframes)return this.pv;d=d?d.toLowerCase():"";var g=this.comp.renderedFrame,b=this.keyframes,v=b[b.length-1].t;if(g<=v)return this.pv;var x,y;m?(h?x=Math.abs(v-this.elem.comp.globalData.frameRate*h):x=Math.max(0,v-this.elem.data.ip),y=v-x):((!h||h>b.length-1)&&(h=b.length-1),y=b[b.length-1-h].t,x=v-y);var _,w,k;if(d==="pingpong"){var O=Math.floor((g-y)/x);if(O%2!==0)return this.getValueAtTime((x-(g-y)%x+y)/this.comp.globalData.frameRate,0)}else if(d==="offset"){var M=this.getValueAtTime(y/this.comp.globalData.frameRate,0),I=this.getValueAtTime(v/this.comp.globalData.frameRate,0),W=this.getValueAtTime(((g-y)%x+y)/this.comp.globalData.frameRate,0),J=Math.floor((g-y)/x);if(this.pv.length){for(k=new Array(M.length),w=k.length,_=0;_<w;_+=1)k[_]=(I[_]-M[_])*J+W[_];return k}return(I-M)*J+W}else if(d==="continue"){var H=this.getValueAtTime(v/this.comp.globalData.frameRate,0),ee=this.getValueAtTime((v-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(k=new Array(H.length),w=k.length,_=0;_<w;_+=1)k[_]=H[_]+(H[_]-ee[_])*((g-v)/this.comp.globalData.frameRate)/5e-4;return k}return H+(H-ee)*((g-v)/.001)}return this.getValueAtTime(((g-y)%x+y)/this.comp.globalData.frameRate,0)}function t(d,h,m){if(!this.k)return this.pv;d=d?d.toLowerCase():"";var g=this.comp.renderedFrame,b=this.keyframes,v=b[0].t;if(g>=v)return this.pv;var x,y;m?(h?x=Math.abs(this.elem.comp.globalData.frameRate*h):x=Math.max(0,this.elem.data.op-v),y=v+x):((!h||h>b.length-1)&&(h=b.length-1),y=b[h].t,x=y-v);var _,w,k;if(d==="pingpong"){var O=Math.floor((v-g)/x);if(O%2===0)return this.getValueAtTime(((v-g)%x+v)/this.comp.globalData.frameRate,0)}else if(d==="offset"){var M=this.getValueAtTime(v/this.comp.globalData.frameRate,0),I=this.getValueAtTime(y/this.comp.globalData.frameRate,0),W=this.getValueAtTime((x-(v-g)%x+v)/this.comp.globalData.frameRate,0),J=Math.floor((v-g)/x)+1;if(this.pv.length){for(k=new Array(M.length),w=k.length,_=0;_<w;_+=1)k[_]=W[_]-(I[_]-M[_])*J;return k}return W-(I-M)*J}else if(d==="continue"){var H=this.getValueAtTime(v/this.comp.globalData.frameRate,0),ee=this.getValueAtTime((v+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(k=new Array(H.length),w=k.length,_=0;_<w;_+=1)k[_]=H[_]+(H[_]-ee[_])*(v-g)/.001;return k}return H+(H-ee)*(v-g)/.001}return this.getValueAtTime((x-((v-g)%x+v))/this.comp.globalData.frameRate,0)}function n(d,h){if(!this.k)return this.pv;if(d=(d||.4)*.5,h=Math.floor(h||5),h<=1)return this.pv;var m=this.comp.renderedFrame/this.comp.globalData.frameRate,g=m-d,b=m+d,v=h>1?(b-g)/(h-1):1,x=0,y=0,_;this.pv.length?_=createTypedArray("float32",this.pv.length):_=0;for(var w;x<h;){if(w=this.getValueAtTime(g+x*v),this.pv.length)for(y=0;y<this.pv.length;y+=1)_[y]+=w[y];else _+=w;x+=1}if(this.pv.length)for(y=0;y<this.pv.length;y+=1)_[y]/=h;else _/=h;return _}function r(d){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var h=this._transformCachingAtTime.v;if(h.cloneFromProps(this.pre.props),this.appliedTransformations<1){var m=this.a.getValueAtTime(d);h.translate(-m[0]*this.a.mult,-m[1]*this.a.mult,m[2]*this.a.mult)}if(this.appliedTransformations<2){var g=this.s.getValueAtTime(d);h.scale(g[0]*this.s.mult,g[1]*this.s.mult,g[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var b=this.sk.getValueAtTime(d),v=this.sa.getValueAtTime(d);h.skewFromAxis(-b*this.sk.mult,v*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var x=this.r.getValueAtTime(d);h.rotate(-x*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var y=this.rz.getValueAtTime(d),_=this.ry.getValueAtTime(d),w=this.rx.getValueAtTime(d),k=this.or.getValueAtTime(d);h.rotateZ(-y*this.rz.mult).rotateY(_*this.ry.mult).rotateX(w*this.rx.mult).rotateZ(-k[2]*this.or.mult).rotateY(k[1]*this.or.mult).rotateX(k[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var O=this.px.getValueAtTime(d),M=this.py.getValueAtTime(d);if(this.data.p.z){var I=this.pz.getValueAtTime(d);h.translate(O*this.px.mult,M*this.py.mult,-I*this.pz.mult)}else h.translate(O*this.px.mult,M*this.py.mult,0)}else{var W=this.p.getValueAtTime(d);h.translate(W[0]*this.p.mult,W[1]*this.p.mult,-W[2]*this.p.mult)}return h}function i(){return this.v.clone(new Matrix)}var o=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(d,h,m){var g=o(d,h,m);return g.dynamicProperties.length?g.getValueAtTime=r.bind(g):g.getValueAtTime=i.bind(g),g.setGroupProperty=expressionHelpers.setGroupProperty,g};var s=PropertyFactory.getProp;PropertyFactory.getProp=function(d,h,m,g,b){var v=s(d,h,m,g,b);v.kf?v.getValueAtTime=expressionHelpers.getValueAtTime.bind(v):v.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(v),v.setGroupProperty=expressionHelpers.setGroupProperty,v.loopOut=e,v.loopIn=t,v.smooth=n,v.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(v),v.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(v),v.numKeys=h.a===1?h.k.length:0,v.propertyIndex=h.ix;var x=0;return m!==0&&(x=createTypedArray("float32",h.a===1?h.k[0].s.length:h.k.length)),v._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:x},expressionHelpers.searchExpressions(d,h,v),v.k&&b.addDynamicProperty(v),v};function a(d){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),d*=this.elem.globalData.frameRate,d-=this.offsetTime,d!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<d?this._caching.lastIndex:0,this._cachingAtTime.lastTime=d,this.interpolateShape(d,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var l=ShapePropertyFactory.getConstructorFunction(),u=ShapePropertyFactory.getKeyframedConstructorFunction();function c(){}c.prototype={vertices:function(h,m){this.k&&this.getValue();var g=this.v;m!==void 0&&(g=this.getValueAtTime(m,0));var b,v=g._length,x=g[h],y=g.v,_=createSizedArray(v);for(b=0;b<v;b+=1)h==="i"||h==="o"?_[b]=[x[b][0]-y[b][0],x[b][1]-y[b][1]]:_[b]=[x[b][0],x[b][1]];return _},points:function(h){return this.vertices("v",h)},inTangents:function(h){return this.vertices("i",h)},outTangents:function(h){return this.vertices("o",h)},isClosed:function(){return this.v.c},pointOnPath:function(h,m){var g=this.v;m!==void 0&&(g=this.getValueAtTime(m,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(g));for(var b=this._segmentsLength,v=b.lengths,x=b.totalLength*h,y=0,_=v.length,w=0,k;y<_;){if(w+v[y].addedLength>x){var O=y,M=g.c&&y===_-1?0:y+1,I=(x-w)/v[y].addedLength;k=bez.getPointInSegment(g.v[O],g.v[M],g.o[O],g.i[M],I,v[y]);break}else w+=v[y].addedLength;y+=1}return k||(k=g.c?[g.v[0][0],g.v[0][1]]:[g.v[g._length-1][0],g.v[g._length-1][1]]),k},vectorOnPath:function(h,m,g){h==1?h=this.v.c:h==0&&(h=.999);var b=this.pointOnPath(h,m),v=this.pointOnPath(h+.001,m),x=v[0]-b[0],y=v[1]-b[1],_=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));if(_===0)return[0,0];var w=g==="tangent"?[x/_,y/_]:[-y/_,x/_];return w},tangentOnPath:function(h,m){return this.vectorOnPath(h,m,"tangent")},normalOnPath:function(h,m){return this.vectorOnPath(h,m,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([c],l),extendPrototype([c],u),u.prototype.getValueAtTime=a,u.prototype.initiateExpression=ExpressionManager.initiateExpression;var f=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(d,h,m,g,b){var v=f(d,h,m,g,b);return v.propertyIndex=h.ix,v.lock=!1,m===3?expressionHelpers.searchExpressions(d,h.pt,v):m===4&&expressionHelpers.searchExpressions(d,h.ks,v),v.k&&d.addDynamicProperty(v),v}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function e(){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(t,n){var r=this.calculateExpression(n);if(t.t!==r){var i={};return this.copyData(i,t),i.t=r.toString(),i.__complete=!1,i}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),n=this.searchExpressions();return this.kf=t||n,this.kf},TextProperty.prototype.searchExpressions=e}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function e(t,n){var r=createNS("feMerge");r.setAttribute("result",t);var i,o;for(o=0;o<n.length;o+=1)i=createNS("feMergeNode"),i.setAttribute("in",n[o]),r.appendChild(i),r.appendChild(i);return r}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,n,r,i){this.filterManager=t;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","linearRGB"),o.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=o,o.setAttribute("result",r+"_tint_1"),e.appendChild(o),o=createNS("feColorMatrix"),o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),o.setAttribute("result",r+"_tint_2"),e.appendChild(o),this.matrixFilter=o;var s=this.createMergeNode(r,[i,r+"_tint_1",r+"_tint_2"]);e.appendChild(s)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+r+" 0"),this.matrixFilter.setAttribute("values",n[0]-t[0]+" 0 0 0 "+t[0]+" "+(n[1]-t[1])+" 0 0 0 "+t[1]+" "+(n[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}};function SVGFillFilter(e,t,n,r){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result",r),e.appendChild(i),this.matrixFilter=i}SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,n=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+n+" 0")}};function SVGStrokeEffect(e,t,n){this.initialized=!1,this.filterManager=t,this.elem=n,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var e=this.elem.layerElement.children||this.elem.layerElement.childNodes,t,n,r,i;for(this.filterManager.effectElements[1].p.v===1?(i=this.elem.maskManager.masksProperties.length,r=0):(r=this.filterManager.effectElements[0].p.v-1,i=r+1),n=createNS("g"),n.setAttribute("fill","none"),n.setAttribute("stroke-linecap","round"),n.setAttribute("stroke-dashoffset",1),r;r<i;r+=1)t=createNS("path"),n.appendChild(t),this.paths.push({p:t,m:r});if(this.filterManager.effectElements[10].p.v===3){var o=createNS("mask"),s=createElementID();o.setAttribute("id",s),o.setAttribute("mask-type","alpha"),o.appendChild(n),this.elem.globalData.defs.appendChild(o);var a=createNS("g");for(a.setAttribute("mask","url("+getLocationHref()+"#"+s+")");e[0];)a.appendChild(e[0]);this.elem.layerElement.appendChild(a),this.masker=o,n.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(e=this.elem.layerElement.children||this.elem.layerElement.childNodes;e.length;)this.elem.layerElement.removeChild(e[0]);this.elem.layerElement.appendChild(n),this.elem.layerElement.removeAttribute("mask"),n.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=n},SVGStrokeEffect.prototype.renderFrame=function(e){this.initialized||this.initialize();var t,n=this.paths.length,r,i;for(t=0;t<n;t+=1)if(this.paths[t].m!==-1&&(r=this.elem.maskManager.viewData[this.paths[t].m],i=this.paths[t].p,(e||this.filterManager._mdf||r.prop._mdf)&&i.setAttribute("d",r.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf)){var o;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var s=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,a=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,l=i.getTotalLength();o="0 0 0 "+l*s+" ";var u=l*(a-s),c=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,f=Math.floor(u/c),d;for(d=0;d<f;d+=1)o+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";o+="0 "+l*10+" 0 0"}else o="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;i.setAttribute("stroke-dasharray",o)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(e||this.filterManager.effectElements[3].p._mdf)){var h=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(h[0]*255)+","+bmFloor(h[1]*255)+","+bmFloor(h[2]*255)+")")}};function SVGTritoneFilter(e,t,n,r){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(i);var o=createNS("feComponentTransfer");o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",r),this.matrixFilter=o;var s=createNS("feFuncR");s.setAttribute("type","table"),o.appendChild(s),this.feFuncR=s;var a=createNS("feFuncG");a.setAttribute("type","table"),o.appendChild(a),this.feFuncG=a;var l=createNS("feFuncB");l.setAttribute("type","table"),o.appendChild(l),this.feFuncB=l,e.appendChild(o)}SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v,i=r[0]+" "+n[0]+" "+t[0],o=r[1]+" "+n[1]+" "+t[1],s=r[2]+" "+n[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",o),this.feFuncB.setAttribute("tableValues",s)}};function SVGProLevelsFilter(e,t,n,r){this.filterManager=t;var i=this.filterManager.effectElements,o=createNS("feComponentTransfer");(i[10].p.k||i[10].p.v!==0||i[11].p.k||i[11].p.v!==1||i[12].p.k||i[12].p.v!==1||i[13].p.k||i[13].p.v!==0||i[14].p.k||i[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",o)),(i[17].p.k||i[17].p.v!==0||i[18].p.k||i[18].p.v!==1||i[19].p.k||i[19].p.v!==1||i[20].p.k||i[20].p.v!==0||i[21].p.k||i[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",o)),(i[24].p.k||i[24].p.v!==0||i[25].p.k||i[25].p.v!==1||i[26].p.k||i[26].p.v!==1||i[27].p.k||i[27].p.v!==0||i[28].p.k||i[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",o)),(i[31].p.k||i[31].p.v!==0||i[32].p.k||i[32].p.v!==1||i[33].p.k||i[33].p.v!==1||i[34].p.k||i[34].p.v!==0||i[35].p.k||i[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",o)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(o.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(o)),(i[3].p.k||i[3].p.v!==0||i[4].p.k||i[4].p.v!==1||i[5].p.k||i[5].p.v!==1||i[6].p.k||i[6].p.v!==0||i[7].p.k||i[7].p.v!==1)&&(o=createNS("feComponentTransfer"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",r),e.appendChild(o),this.feFuncRComposed=this.createFeFunc("feFuncR",o),this.feFuncGComposed=this.createFeFunc("feFuncG",o),this.feFuncBComposed=this.createFeFunc("feFuncB",o))}SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var n=createNS(e);return n.setAttribute("type","table"),t.appendChild(n),n},SVGProLevelsFilter.prototype.getTableValue=function(e,t,n,r,i){for(var o=0,s=256,a,l=Math.min(e,t),u=Math.max(e,t),c=Array.call(null,{length:s}),f,d=0,h=i-r,m=t-e;o<=256;)a=o/256,a<=l?f=m<0?i:r:a>=u?f=m<0?r:i:f=r+h*Math.pow((a-e)/m,1/n),c[d]=f,d+=1,o+=256/(s-1);return c.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,n=this.filterManager.effectElements;this.feFuncRComposed&&(e||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(t=this.getTableValue(n[3].p.v,n[4].p.v,n[5].p.v,n[6].p.v,n[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(t=this.getTableValue(n[10].p.v,n[11].p.v,n[12].p.v,n[13].p.v,n[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(t=this.getTableValue(n[17].p.v,n[18].p.v,n[19].p.v,n[20].p.v,n[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(t=this.getTableValue(n[24].p.v,n[25].p.v,n[26].p.v,n[27].p.v,n[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(t=this.getTableValue(n[31].p.v,n[32].p.v,n[33].p.v,n[34].p.v,n[35].p.v),this.feFuncA.setAttribute("tableValues",t))}};function SVGDropShadowEffect(e,t,n,r,i){var o=t.container.globalData.renderConfig.filterSize,s=t.data.fs||o;e.setAttribute("x",s.x||o.x),e.setAttribute("y",s.y||o.y),e.setAttribute("width",s.width||o.width),e.setAttribute("height",s.height||o.height),this.filterManager=t;var a=createNS("feGaussianBlur");a.setAttribute("in","SourceAlpha"),a.setAttribute("result",r+"_drop_shadow_1"),a.setAttribute("stdDeviation","0"),this.feGaussianBlur=a,e.appendChild(a);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",r+"_drop_shadow_1"),l.setAttribute("result",r+"_drop_shadow_2"),this.feOffset=l,e.appendChild(l);var u=createNS("feFlood");u.setAttribute("flood-color","#00ff00"),u.setAttribute("flood-opacity","1"),u.setAttribute("result",r+"_drop_shadow_3"),this.feFlood=u,e.appendChild(u);var c=createNS("feComposite");c.setAttribute("in",r+"_drop_shadow_3"),c.setAttribute("in2",r+"_drop_shadow_2"),c.setAttribute("operator","in"),c.setAttribute("result",r+"_drop_shadow_4"),e.appendChild(c);var f=this.createMergeNode(r,[r+"_drop_shadow_4",i]);e.appendChild(f)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(t[0]*255),Math.round(t[1]*255),Math.round(t[2]*255)))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var n=this.filterManager.effectElements[3].p.v,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,i=n*Math.cos(r),o=n*Math.sin(r);this.feOffset.setAttribute("dx",i),this.feOffset.setAttribute("dy",o)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,n){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=n,n.matteElement=createNS("g"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,n=_svgMatteSymbols.length;t<n;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var n=e.layerElement.parentNode;if(!!n){for(var r=n.children,i=0,o=r.length;i<o&&r[i]!==e.layerElement;)i+=1;var s;i<=o-2&&(s=r[i+1]);var a=createNS("use");a.setAttribute("href","#"+t),s?n.insertBefore(a,s):n.appendChild(a)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var n=createElementID(),r=createNS("mask");r.setAttribute("id",t.layerId),r.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var i=e.globalData.defs;i.appendChild(r);var o=createNS("symbol");o.setAttribute("id",n),this.replaceInParent(t,n),o.appendChild(t.layerElement),i.appendChild(o);var s=createNS("use");s.setAttribute("href","#"+n),r.appendChild(s),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,n=0,r=t.length;n<r;)t[n]&&t[n].data.ind===e&&this.setElementAsMask(this.elem,t[n]),n+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(e,t,n,r){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var i=createNS("feGaussianBlur");i.setAttribute("result",r),e.appendChild(i),this.feGaussianBlur=i}return SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3,n=this.filterManager.effectElements[0].p.v*t,r=this.filterManager.effectElements[1].p.v,i=r==3?0:n,o=r==2?0:n;this.feGaussianBlur.setAttribute("stdDeviation",i+" "+o);var s=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",s)}},registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect(20,SVGTintFilter,!0),registerEffect(21,SVGFillFilter,!0),registerEffect(22,SVGStrokeEffect,!1),registerEffect(23,SVGTritoneFilter,!0),registerEffect(24,SVGProLevelsFilter,!0),registerEffect(25,SVGDropShadowEffect,!0),registerEffect(28,SVGMatte3Effect,!1),registerEffect(29,SVGGaussianBlurEffect,!0),lottie})});var qDe=ne((bzn,XDe)=>{"use strict";XDe.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(i of t.entries())if(!n.has(i[0]))return!1;for(i of t.entries())if(!e(i[1],n.get(i[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(i of t.entries())if(!n.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(t[i]!==n[i])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(o=Object.keys(t),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!==0;){var s=o[i];if(!(s==="_owner"&&t.$$typeof)&&!e(t[s],n[s]))return!1}return!0}return t!==t&&n!==n}});var KDe=ne((wzn,$De)=>{"use strict";$De.exports=BXt;function w5(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function BXt(e){if(e=e||{},e.circles)return NXt(e);return e.proto?r:n;function t(i,o){for(var s=Object.keys(i),a=new Array(s.length),l=0;l<s.length;l++){var u=s[l],c=i[u];typeof c!="object"||c===null?a[u]=c:c instanceof Date?a[u]=new Date(c):ArrayBuffer.isView(c)?a[u]=w5(c):a[u]=o(c)}return a}function n(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return t(i,n);if(i instanceof Map)return new Map(t(Array.from(i),n));if(i instanceof Set)return new Set(t(Array.from(i),n));var o={};for(var s in i)if(Object.hasOwnProperty.call(i,s)!==!1){var a=i[s];typeof a!="object"||a===null?o[s]=a:a instanceof Date?o[s]=new Date(a):a instanceof Map?o[s]=new Map(t(Array.from(a),n)):a instanceof Set?o[s]=new Set(t(Array.from(a),n)):ArrayBuffer.isView(a)?o[s]=w5(a):o[s]=n(a)}return o}function r(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return t(i,r);if(i instanceof Map)return new Map(t(Array.from(i),r));if(i instanceof Set)return new Set(t(Array.from(i),r));var o={};for(var s in i){var a=i[s];typeof a!="object"||a===null?o[s]=a:a instanceof Date?o[s]=new Date(a):a instanceof Map?o[s]=new Map(t(Array.from(a),r)):a instanceof Set?o[s]=new Set(t(Array.from(a),r)):ArrayBuffer.isView(a)?o[s]=w5(a):o[s]=r(a)}return o}}function NXt(e){var t=[],n=[];return e.proto?o:i;function r(s,a){for(var l=Object.keys(s),u=new Array(l.length),c=0;c<l.length;c++){var f=l[c],d=s[f];if(typeof d!="object"||d===null)u[f]=d;else if(d instanceof Date)u[f]=new Date(d);else if(ArrayBuffer.isView(d))u[f]=w5(d);else{var h=t.indexOf(d);h!==-1?u[f]=n[h]:u[f]=a(d)}}return u}function i(s){if(typeof s!="object"||s===null)return s;if(s instanceof Date)return new Date(s);if(Array.isArray(s))return r(s,i);if(s instanceof Map)return new Map(r(Array.from(s),i));if(s instanceof Set)return new Set(r(Array.from(s),i));var a={};t.push(s),n.push(a);for(var l in s)if(Object.hasOwnProperty.call(s,l)!==!1){var u=s[l];if(typeof u!="object"||u===null)a[l]=u;else if(u instanceof Date)a[l]=new Date(u);else if(u instanceof Map)a[l]=new Map(r(Array.from(u),i));else if(u instanceof Set)a[l]=new Set(r(Array.from(u),i));else if(ArrayBuffer.isView(u))a[l]=w5(u);else{var c=t.indexOf(u);c!==-1?a[l]=n[c]:a[l]=i(u)}}return t.pop(),n.pop(),a}function o(s){if(typeof s!="object"||s===null)return s;if(s instanceof Date)return new Date(s);if(Array.isArray(s))return r(s,o);if(s instanceof Map)return new Map(r(Array.from(s),o));if(s instanceof Set)return new Set(r(Array.from(s),o));var a={};t.push(s),n.push(a);for(var l in s){var u=s[l];if(typeof u!="object"||u===null)a[l]=u;else if(u instanceof Date)a[l]=new Date(u);else if(u instanceof Map)a[l]=new Map(r(Array.from(u),o));else if(u instanceof Set)a[l]=new Set(r(Array.from(u),o));else if(ArrayBuffer.isView(u))a[l]=w5(u);else{var c=t.indexOf(u);c!==-1?a[l]=n[c]:a[l]=o(u)}}return t.pop(),n.pop(),a}}});var ZDe=ne((Pzn,YDe)=>{"use strict";YDe.exports=KDe()()});var SRe=ne((dRn,_z)=>{(function(e){var t=function(){"use strict";var n="s",r={DAY:864e5,HOUR:36e5,MINUTE:6e4,SECOND:1e3,BASELINE_YEAR:2014,MAX_SCORE:864e6,AMBIGUITIES:{"America/Denver":["America/Mazatlan"],"America/Chicago":["America/Mexico_City"],"America/Asuncion":["America/Campo_Grande","America/Santiago"],"America/Montevideo":["America/Sao_Paulo","America/Santiago"],"Asia/Beirut":["Asia/Amman","Asia/Jerusalem","Europe/Helsinki","Asia/Damascus","Africa/Cairo","Asia/Gaza","Europe/Minsk","Africa/Windhoek"],"Pacific/Auckland":["Pacific/Fiji"],"America/Los_Angeles":["America/Santa_Isabel"],"America/New_York":["America/Havana"],"America/Halifax":["America/Goose_Bay"],"America/Godthab":["America/Miquelon"],"Asia/Dubai":["Asia/Yerevan"],"Asia/Jakarta":["Asia/Krasnoyarsk"],"Asia/Shanghai":["Asia/Irkutsk","Australia/Perth"],"Australia/Sydney":["Australia/Lord_Howe"],"Asia/Tokyo":["Asia/Yakutsk"],"Asia/Dhaka":["Asia/Omsk"],"Asia/Baku":["Asia/Yerevan"],"Australia/Brisbane":["Asia/Vladivostok"],"Pacific/Noumea":["Asia/Vladivostok"],"Pacific/Majuro":["Asia/Kamchatka","Pacific/Fiji"],"Pacific/Tongatapu":["Pacific/Apia"],"Asia/Baghdad":["Europe/Minsk","Europe/Moscow"],"Asia/Karachi":["Asia/Yekaterinburg"],"Africa/Johannesburg":["Asia/Gaza","Africa/Cairo"]}},i=function(m){var g=-m.getTimezoneOffset();return g!==null?g:0},o=function(){for(var m=[],g=0;g<=11;g++)for(var b=1;b<=28;b++){var v=i(new Date(r.BASELINE_YEAR,g,b));m?m&&m[m.length-1]!==v&&m.push(v):m.push()}return m},s=function(){var m=0,g=o();return g.length>1&&(m=g[0]-g[1]),g.length>3?g[0]+",1,weird":m<0?g[0]+",1":m>0?g[1]+",1,"+n:g[0]+",0"},a=function(){var m,g;if(Intl&&typeof Intl<"u"&&typeof Intl.DateTimeFormat<"u"&&(m=Intl.DateTimeFormat(),typeof m<"u"&&typeof m.resolvedOptions<"u"))return g=m.resolvedOptions().timeZone,g&&(g.indexOf("/")>-1||g==="UTC")?g:void 0},l=function(m){for(var g=new Date(m,0,1,0,0,1,0).getTime(),b=new Date(m,12,31,23,59,59).getTime(),v=g,x=new Date(v).getTimezoneOffset(),y=null,_=null;v<b-864e5;){var w=new Date(v),k=w.getTimezoneOffset();k!==x&&(k<x&&(y=w),k>x&&(_=w),x=k),v+=864e5}return!(!y||!_)&&{s:u(y).getTime(),e:u(_).getTime()}},u=function m(g,b,v){typeof b>"u"&&(b=r.DAY,v=r.HOUR);for(var x=new Date(g.getTime()-b).getTime(),y=g.getTime()+b,_=new Date(x).getTimezoneOffset(),w=x,k=null;w<y-v;){var O=new Date(w),M=O.getTimezoneOffset();if(M!==_){k=O;break}w+=v}return b===r.DAY?m(k,r.HOUR,r.MINUTE):b===r.HOUR?m(k,r.MINUTE,r.SECOND):k},c=function(m,g,b,v){if(b!=="N/A")return b;if(g==="Asia/Beirut"){if(v.name==="Africa/Cairo"&&m[6].s===13983768e5&&m[6].e===14116788e5||v.name==="Asia/Jerusalem"&&m[6].s===13959648e5&&m[6].e===14118588e5)return 0}else if(g==="America/Santiago"){if(v.name==="America/Asuncion"&&m[6].s===14124816e5&&m[6].e===1397358e6||v.name==="America/Campo_Grande"&&m[6].s===14136912e5&&m[6].e===13925196e5)return 0}else if(g==="America/Montevideo"){if(v.name==="America/Sao_Paulo"&&m[6].s===14136876e5&&m[6].e===1392516e6)return 0}else if(g==="Pacific/Auckland"&&v.name==="Pacific/Fiji"&&m[6].s===14142456e5&&m[6].e===13961016e5)return 0;return b},f=function(m,g){for(var b=function(W){for(var J=0,H=0;H<m.length;H++)if(W.rules[H]&&m[H]){if(!(m[H].s>=W.rules[H].s&&m[H].e<=W.rules[H].e)){J="N/A";break}if(J=0,J+=Math.abs(m[H].s-W.rules[H].s),J+=Math.abs(W.rules[H].e-m[H].e),J>r.MAX_SCORE){J="N/A";break}}return J=c(m,g,J,W)},v={},x=t.olson.dst_rules.zones,y=x.length,_=r.AMBIGUITIES[g],w=0;w<y;w++){var k=x[w],O=b(x[w]);O!=="N/A"&&(v[k.name]=O)}for(var M in v)if(v.hasOwnProperty(M)){for(var I=0;I<_.length;I++)if(_[I]===M)return M}return g},d=function(m){var g=function(){for(var y=[],_=0;_<t.olson.dst_rules.years.length;_++){var w=l(t.olson.dst_rules.years[_]);y.push(w)}return y},b=function(y){for(var _=0;_<y.length;_++)if(y[_]!==!1)return!0;return!1},v=g(),x=b(v);return x?f(v,m):m},h=function(m){var g=!1,b=s();return(m||typeof m>"u")&&(g=a()),g||(g=t.olson.timezones[b],typeof r.AMBIGUITIES[g]<"u"&&(g=d(g))),{name:function(){return g},using_intl:m||typeof m>"u",needle:b,offsets:o()}};return{determine:h}}();t.olson=t.olson||{},t.olson.timezones={"-720,0":"Etc/GMT+12","-660,0":"Pacific/Pago_Pago","-660,1,s":"Pacific/Apia","-600,1":"America/Adak","-600,0":"Pacific/Honolulu","-570,0":"Pacific/Marquesas","-540,0":"Pacific/Gambier","-540,1":"America/Anchorage","-480,1":"America/Los_Angeles","-480,0":"Pacific/Pitcairn","-420,0":"America/Phoenix","-420,1":"America/Denver","-360,0":"America/Guatemala","-360,1":"America/Chicago","-360,1,s":"Pacific/Easter","-300,0":"America/Bogota","-300,1":"America/New_York","-270,0":"America/Caracas","-240,1":"America/Halifax","-240,0":"America/Santo_Domingo","-240,1,s":"America/Asuncion","-210,1":"America/St_Johns","-180,1":"America/Godthab","-180,0":"America/Buenos_Aires","-180,1,s":"America/Montevideo","-120,0":"America/Noronha","-120,1":"America/Noronha","-60,1":"Atlantic/Azores","-60,0":"Atlantic/Cape_Verde","0,0":"UTC","0,1":"Europe/London","0,1,weird":"Africa/Casablanca","60,1":"Europe/Berlin","60,0":"Africa/Lagos","60,1,weird":"Africa/Casablanca","120,1":"Asia/Beirut","120,1,weird":"Africa/Cairo","120,0":"Africa/Johannesburg","180,0":"Asia/Baghdad","180,1":"Europe/Moscow","210,1":"Asia/Tehran","240,0":"Asia/Dubai","240,1":"Asia/Baku","270,0":"Asia/Kabul","300,1":"Asia/Yekaterinburg","300,0":"Asia/Karachi","330,0":"Asia/Calcutta","345,0":"Asia/Katmandu","360,0":"Asia/Dhaka","360,1":"Asia/Omsk","390,0":"Asia/Rangoon","420,1":"Asia/Krasnoyarsk","420,0":"Asia/Jakarta","480,0":"Asia/Shanghai","480,1":"Asia/Irkutsk","525,0":"Australia/Eucla","525,1,s":"Australia/Eucla","540,1":"Asia/Yakutsk","540,0":"Asia/Tokyo","570,0":"Australia/Darwin","570,1,s":"Australia/Adelaide","600,0":"Australia/Brisbane","600,1":"Asia/Vladivostok","600,1,s":"Australia/Sydney","630,1,s":"Australia/Lord_Howe","660,1":"Asia/Kamchatka","660,0":"Pacific/Noumea","690,0":"Pacific/Norfolk","720,1,s":"Pacific/Auckland","720,0":"Pacific/Majuro","765,1,s":"Pacific/Chatham","780,0":"Pacific/Tongatapu","780,1,s":"Pacific/Apia","840,0":"Pacific/Kiritimati"},t.olson.dst_rules={years:[2008,2009,2010,2011,2012,2013,2014],zones:[{name:"Africa/Cairo",rules:[{e:12199572e5,s:12090744e5},{e:1250802e6,s:1240524e6},{e:12858804e5,s:12840696e5},!1,!1,!1,{e:14116788e5,s:1406844e6}]},{name:"America/Asuncion",rules:[{e:12050316e5,s:12243888e5},{e:12364812e5,s:12558384e5},{e:12709548e5,s:12860784e5},{e:13024044e5,s:1317528e6},{e:1333854e6,s:13495824e5},{e:1364094e6,s:1381032e6},{e:13955436e5,s:14124816e5}]},{name:"America/Campo_Grande",rules:[{e:12032172e5,s:12243888e5},{e:12346668e5,s:12558384e5},{e:12667212e5,s:1287288e6},{e:12981708e5,s:13187376e5},{e:13302252e5,s:1350792e6},{e:136107e7,s:13822416e5},{e:13925196e5,s:14136912e5}]},{name:"America/Goose_Bay",rules:[{e:122559486e4,s:120503526e4},{e:125704446e4,s:123648486e4},{e:128909886e4,s:126853926e4},{e:13205556e5,s:129998886e4},{e:13520052e5,s:13314456e5},{e:13834548e5,s:13628952e5},{e:14149044e5,s:13943448e5}]},{name:"America/Havana",rules:[{e:12249972e5,s:12056436e5},{e:12564468e5,s:12364884e5},{e:12885012e5,s:12685428e5},{e:13211604e5,s:13005972e5},{e:13520052e5,s:13332564e5},{e:13834548e5,s:13628916e5},{e:14149044e5,s:13943412e5}]},{name:"America/Mazatlan",rules:[{e:1225008e6,s:12074724e5},{e:12564576e5,s:1238922e6},{e:1288512e6,s:12703716e5},{e:13199616e5,s:13018212e5},{e:13514112e5,s:13332708e5},{e:13828608e5,s:13653252e5},{e:14143104e5,s:13967748e5}]},{name:"America/Mexico_City",rules:[{e:12250044e5,s:12074688e5},{e:1256454e6,s:12389184e5},{e:12885084e5,s:1270368e6},{e:1319958e6,s:13018176e5},{e:13514076e5,s:13332672e5},{e:13828572e5,s:13653216e5},{e:14143068e5,s:13967712e5}]},{name:"America/Miquelon",rules:[{e:12255984e5,s:12050388e5},{e:1257048e6,s:12364884e5},{e:12891024e5,s:12685428e5},{e:1320552e6,s:12999924e5},{e:13520016e5,s:1331442e6},{e:13834512e5,s:13628916e5},{e:14149008e5,s:13943412e5}]},{name:"America/Santa_Isabel",rules:[{e:12250116e5,s:1207476e6},{e:12564612e5,s:12389256e5},{e:12891204e5,s:12685608e5},{e:132057e7,s:13000104e5},{e:13520196e5,s:133146e7},{e:13834692e5,s:13629096e5},{e:14149188e5,s:13943592e5}]},{name:"America/Santiago",rules:[{e:1206846e6,s:1223784e6},{e:1237086e6,s:12552336e5},{e:127035e7,s:12866832e5},{e:13048236e5,s:13138992e5},{e:13356684e5,s:13465584e5},{e:1367118e6,s:13786128e5},{e:13985676e5,s:14100624e5}]},{name:"America/Sao_Paulo",rules:[{e:12032136e5,s:12243852e5},{e:12346632e5,s:12558348e5},{e:12667176e5,s:12872844e5},{e:12981672e5,s:1318734e6},{e:13302216e5,s:13507884e5},{e:13610664e5,s:1382238e6},{e:1392516e6,s:14136876e5}]},{name:"Asia/Amman",rules:[{e:1225404e6,s:12066552e5},{e:12568536e5,s:12381048e5},{e:12883032e5,s:12695544e5},{e:13197528e5,s:13016088e5},!1,!1,{e:14147064e5,s:13959576e5}]},{name:"Asia/Damascus",rules:[{e:12254868e5,s:120726e7},{e:125685e7,s:12381048e5},{e:12882996e5,s:12701592e5},{e:13197492e5,s:13016088e5},{e:13511988e5,s:13330584e5},{e:13826484e5,s:1364508e6},{e:14147028e5,s:13959576e5}]},{name:"Asia/Dubai",rules:[!1,!1,!1,!1,!1,!1,!1]},{name:"Asia/Gaza",rules:[{e:12199572e5,s:12066552e5},{e:12520152e5,s:12381048e5},{e:1281474e6,s:126964086e4},{e:1312146e6,s:130160886e4},{e:13481784e5,s:13330584e5},{e:13802292e5,s:1364508e6},{e:1414098e6,s:13959576e5}]},{name:"Asia/Irkutsk",rules:[{e:12249576e5,s:12068136e5},{e:12564072e5,s:12382632e5},{e:12884616e5,s:12697128e5},!1,!1,!1,!1]},{name:"Asia/Jerusalem",rules:[{e:12231612e5,s:12066624e5},{e:1254006e6,s:1238112e6},{e:1284246e6,s:12695616e5},{e:131751e7,s:1301616e6},{e:13483548e5,s:13330656e5},{e:13828284e5,s:13645152e5},{e:1414278e6,s:13959648e5}]},{name:"Asia/Kamchatka",rules:[{e:12249432e5,s:12067992e5},{e:12563928e5,s:12382488e5},{e:12884508e5,s:12696984e5},!1,!1,!1,!1]},{name:"Asia/Krasnoyarsk",rules:[{e:12249612e5,s:12068172e5},{e:12564108e5,s:12382668e5},{e:12884652e5,s:12697164e5},!1,!1,!1,!1]},{name:"Asia/Omsk",rules:[{e:12249648e5,s:12068208e5},{e:12564144e5,s:12382704e5},{e:12884688e5,s:126972e7},!1,!1,!1,!1]},{name:"Asia/Vladivostok",rules:[{e:12249504e5,s:12068064e5},{e:12564e8,s:1238256e6},{e:12884544e5,s:12697056e5},!1,!1,!1,!1]},{name:"Asia/Yakutsk",rules:[{e:1224954e6,s:120681e7},{e:12564036e5,s:12382596e5},{e:1288458e6,s:12697092e5},!1,!1,!1,!1]},{name:"Asia/Yekaterinburg",rules:[{e:12249684e5,s:12068244e5},{e:1256418e6,s:1238274e6},{e:12884724e5,s:12697236e5},!1,!1,!1,!1]},{name:"Asia/Yerevan",rules:[{e:1224972e6,s:1206828e6},{e:12564216e5,s:12382776e5},{e:1288476e6,s:12697272e5},{e:13199256e5,s:13011768e5},!1,!1,!1]},{name:"Australia/Lord_Howe",rules:[{e:12074076e5,s:12231342e5},{e:12388572e5,s:12545838e5},{e:12703068e5,s:12860334e5},{e:13017564e5,s:1317483e6},{e:1333206e6,s:13495374e5},{e:13652604e5,s:1380987e6},{e:139671e7,s:14124366e5}]},{name:"Australia/Perth",rules:[{e:12068136e5,s:12249576e5},!1,!1,!1,!1,!1,!1]},{name:"Europe/Helsinki",rules:[{e:12249828e5,s:12068388e5},{e:12564324e5,s:12382884e5},{e:12884868e5,s:1269738e6},{e:13199364e5,s:13011876e5},{e:1351386e6,s:13326372e5},{e:13828356e5,s:13646916e5},{e:14142852e5,s:13961412e5}]},{name:"Europe/Minsk",rules:[{e:12249792e5,s:12068352e5},{e:12564288e5,s:12382848e5},{e:12884832e5,s:12697344e5},!1,!1,!1,!1]},{name:"Europe/Moscow",rules:[{e:12249756e5,s:12068316e5},{e:12564252e5,s:12382812e5},{e:12884796e5,s:12697308e5},!1,!1,!1,!1]},{name:"Pacific/Apia",rules:[!1,!1,!1,{e:13017528e5,s:13168728e5},{e:13332024e5,s:13489272e5},{e:13652568e5,s:13803768e5},{e:13967064e5,s:14118264e5}]},{name:"Pacific/Fiji",rules:[!1,!1,{e:12696984e5,s:12878424e5},{e:13271544e5,s:1319292e6},{e:1358604e6,s:13507416e5},{e:139005e7,s:1382796e6},{e:14215032e5,s:14148504e5}]},{name:"Europe/London",rules:[{e:12249828e5,s:12068388e5},{e:12564324e5,s:12382884e5},{e:12884868e5,s:1269738e6},{e:13199364e5,s:13011876e5},{e:1351386e6,s:13326372e5},{e:13828356e5,s:13646916e5},{e:14142852e5,s:13961412e5}]},{name:"Africa/Windhoek",rules:[{e:12207492e5,s:120744e7},{e:12521988e5,s:12388896e5},{e:12836484e5,s:12703392e5},{e:1315098e6,s:13017888e5},{e:13465476e5,s:13332384e5},{e:13779972e5,s:13652928e5},{e:14100516e5,s:13967424e5}]}]},typeof _z<"u"&&typeof _z.exports<"u"?_z.exports=t:typeof define<"u"&&define!==null&&define.amd!=null?define([],function(){return t}):typeof e>"u"?window.jstz=t:e.jstz=t})()});var ORe=ne((h9,Hte)=>{(function(e,t){typeof h9=="object"&&typeof Hte=="object"?Hte.exports=t():typeof define=="function"&&define.amd?define([],t):typeof h9=="object"?h9.LinkedInTag=t():e.LinkedInTag=t()})(typeof self<"u"?self:h9,function(){return(()=>{"use strict";var e={579:(r,i,o)=>{o.r(i),o.d(i,{LinkedInTag:()=>c,default:()=>f});var s=o(818);function a(d){return function(h){if(Array.isArray(h))return l(h)}(d)||function(h){if(typeof Symbol<"u"&&Symbol.iterator in Object(h))return Array.from(h)}(d)||function(h,m){if(h){if(typeof h=="string")return l(h,m);var g=Object.prototype.toString.call(h).slice(8,-1);return g==="Object"&&h.constructor&&(g=h.constructor.name),g==="Map"||g==="Set"?Array.from(h):g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g)?l(h,m):void 0}}(d)||function(){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 l(d,h){(h==null||h>d.length)&&(h=d.length);for(var m=0,g=new Array(h);m<h;m++)g[m]=d[m];return g}function u(d,h){for(var m=0;m<h.length;m++){var g=h[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}var c=function(){function d(){(function(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")})(this,d),this.initialized=!1,this.disabled=!s.jU,this.partnerId="",this.subDomain="dc"}var h,m;return h=d,(m=[{key:"warn",value:function(){for(var g,b=arguments.length,v=new Array(b),x=0;x<b;x++)v[x]=arguments[x];(g=console).info.apply(g,a(["[linkedin-insight-tag]"].concat(v)))}},{key:"verifyInit",value:function(){return this.initialized||this.warn("LinkedIn Insight Tag not initialized. Before using, call LinkedInTag.init with required params"),this.initialized}},{key:"init",value:function(g,b,v){if(this.partnerId=g,this.subDomain=b||this.subDomain,v!=null&&(this.disabled=v),!this.disabled){this.partnerId||this.warn("Partner id is required."),window._linkedin_data_partner_ids=window._linkedin_data_partner_ids||[],window._linkedin_data_partner_ids.push(g);var x=document.getElementsByTagName("script")[0],y=document.createElement("script");y.type="text/javascript",y.async=!0,y.src="https://snap.licdn.com/li.lms-analytics/insight.min.js",x.parentNode.insertBefore(y,x),this.initialized=!0}}},{key:"track",value:function(g,b,v){if(!this.disabled){if(!this.verifyInit())return this.warn("You must call `init` before calling `track`.");b=b||this.partnerId||window._linkedin_data_partner_ids[0],v=v||this.subDomain;var x="https://".concat(v,".ads.linkedin.com/collect/?pid=").concat(b,"&fmt=gif");g&&(x="".concat(x,"&conversionId=").concat(g));var y=document.createElement("img");return y.alt="",y.height=1,y.width=1,y.src=x,y}}}])&&u(h.prototype,m),d}();let f=new c},818:(r,i)=>{var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},s=typeof window<"u"&&window.document!==void 0;(typeof self>"u"?"undefined":o(self))==="object"&&self.constructor&&self.constructor.name,typeof process<"u"&&process.versions!=null&&process.versions.node,i.jU=s}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.d=(r,i)=>{for(var o in i)n.o(i,o)&&!n.o(r,o)&&Object.defineProperty(r,o,{enumerable:!0,get:i[o]})},n.o=(r,i)=>Object.prototype.hasOwnProperty.call(r,i),n.r=r=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n(579)})()})});var ERe=ne((bz,Wte)=>{(function(e,t){typeof bz=="object"&&typeof Wte=="object"?Wte.exports=t():typeof define=="function"&&define.amd?define([],t):typeof bz=="object"?bz.ReactPixel=t():e.ReactPixel=t()})(window,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(r,i,o){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:o})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,i){if(1&i&&(r=n(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var s in r)n.d(o,s,function(a){return r[a]}.bind(null,s));return o},n.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(i,"a",i),i},n.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},n.p="",n(n.s=0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";function r(c){return function(f){if(Array.isArray(f)){for(var d=0,h=new Array(f.length);d<f.length;d++)h[d]=f[d];return h}}(c)||function(f){if(Symbol.iterator in Object(f)||Object.prototype.toString.call(f)==="[object Arguments]")return Array.from(f)}(c)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.r(t);var i=!!window.fbq,o=!1,s=function(){var c;if(o){for(var f=arguments.length,d=new Array(f),h=0;h<f;h++)d[h]=arguments[h];(c=console).info.apply(c,r(["[react-facebook-pixel]"].concat(d)))}},a=function(){var c;if(o){for(var f=arguments.length,d=new Array(f),h=0;h<f;h++)d[h]=arguments[h];(c=console).info.apply(c,r(["[react-facebook-pixel]"].concat(d)))}},l=function(){return i||s("Pixel not initialized before using call ReactPixel.init with required params"),i},u={autoConfig:!0,debug:!1};t.default={init:function(c){var f,d,h,m,g,b,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u;f=window,d=document,h="script",f.fbq||(m=f.fbq=function(){m.callMethod?m.callMethod.apply(m,arguments):m.queue.push(arguments)},f._fbq||(f._fbq=m),m.push=m,m.loaded=!0,m.version="2.0",m.queue=[],(g=d.createElement(h)).async=!0,g.src="https://connect.facebook.net/en_US/fbevents.js",(b=d.getElementsByTagName(h)[0]).parentNode.insertBefore(g,b)),c?(x.autoConfig===!1&&fbq("set","autoConfig",!1,c),fbq("init",c,v),i=!0,o=x.debug):s("Please insert pixel id for initializing")},pageView:function(){l()&&(fbq("track","PageView"),o&&a("called fbq('track', 'PageView');"))},track:function(c,f){l()&&(fbq("track",c,f),o&&(a("called fbq('track', '".concat(c,"');")),f&&a("with data",f)))},trackSingle:function(c,f,d){l()&&(fbq("trackSingle",c,f,d),o&&(a("called fbq('trackSingle', '".concat(c,"', '").concat(f,"');")),d&&a("with data",d)))},trackCustom:function(c,f){l()&&(fbq("trackCustom",c,f),o&&(a("called fbq('trackCustom', '".concat(c,"');")),f&&a("with data",f)))},trackSingleCustom:function(c,f,d){l()&&(fbq("trackSingle",c,f,d),o&&(a("called fbq('trackSingleCustom', '".concat(c,"', '").concat(f,"');")),d&&a("with data",d)))},grantConsent:function(){l()&&(fbq("consent","grant"),o&&a("called fbq('consent', 'grant');"))},revokeConsent:function(){l()&&(fbq("consent","revoke"),o&&a("called fbq('consent', 'revoke');"))},fbq:function(c){function f(){return c.apply(this,arguments)}return f.toString=function(){return c.toString()},f}(function(){if(l()){for(var c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];fbq.apply(void 0,f),o&&(a("called fbq('".concat(f.slice(0,2).join("', '"),"')")),f[2]&&a("with data",f[2]))}})}}])})});var MRe=ne(wv=>{"use strict";Object.defineProperty(wv,"__esModule",{value:!0});wv.install=wv.gtag=wv.default=void 0;var Xqt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r="ga-gtag";if(!document.getElementById(r)){var i=document,o=i.head,s=document.createElement("script");s.id=r,s.async=!0,s.src="https://www.googletagmanager.com/gtag/js?id=".concat(t),o.insertBefore(s,o.firstChild),window.dataLayer=window.dataLayer||[],wz("js",new Date),wz("config",t,n)}};wv.install=Xqt;var wz=function(){window.dataLayer.push(arguments)};wv.gtag=wz;var qqt=wz;wv.default=qqt});var PLe=ne(e6=>{"use strict";Object.defineProperty(e6,"__esModule",{value:!0});var bu=Pe();function uLe(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 g9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uLe(Object(n),!0).forEach(function(r){wu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uLe(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cLe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Dz(e,t,n){return t&&cLe(e.prototype,t),n&&cLe(e,n),e}function wu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gLe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&sne(e,t)}function zz(e){return zz=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},zz(e)}function sne(e,t){return sne=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},sne(e,t)}function k$t(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function v9(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A$t(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v9(e)}function vLe(e){var t=k$t();return function(){var r=zz(e),i;if(t){var o=zz(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return A$t(this,i)}}function k5(e,t){return C$t(e)||S$t(e,t)||O$t(e,t)||E$t()}function C$t(e){if(Array.isArray(e))return e}function S$t(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,s,a;try{for(n=n.call(e);!(i=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,a=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function O$t(e,t){if(!!e){if(typeof e=="string")return dLe(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 dLe(e,t)}}function dLe(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function E$t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Rz=bu.createContext();function Qy(e){return e===void 0}function yLe(e){var t=k5(e,2),n=t[0],r=t[1];return n==="videoFoam"&&Object(r)===r&&(r=JSON.stringify(r)),"".concat(n,"=").concat(encodeURIComponent(r))}var M$t=new Set(["embedHost","hashedId","height","heroImageAspectRatio","heroImageUrl","id","mode","width"]),ane=function(e){gLe(n,e);var t=vLe(n);function n(){var r;Tz(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),wu(v9(r),"state",{safeToRender:!1}),r}return Dz(n,[{key:"classNames",get:function(){return"".concat(this.embedClassNames," ").concat(this.optionsAsCSSClassNames)}},{key:"embedClassNames",get:function(){return"wistia_channel wistia_async_".concat(this.props.hashedId)}},{key:"optionsAsCSSClassNames",get:function(){return Object.entries(this.props).filter(B$t).map(yLe).join(" ")}},{key:"componentDidMount",value:function(){this.setState({safeToRender:!0}),this.context.dispatch({type:"prepare-for-channel",payload:{hashedId:this.props.hashedId}})}},{key:"render",value:function(){var i,o;return(i=this.context)===null||i===void 0||(o=i.wistiaContext)===null||o===void 0||o.addChannelId(this.props.hashedId),this.state.safeToRender?bu.createElement("div",{className:this.classNames,id:this.props.id,key:this.props.hashedId}):null}}]),n}(bu.Component);wu(ane,"contextType",Rz);wu(ane,"defaultProps",{mode:"inline"});function B$t(e){var t=k5(e,2),n=t[0],r=t[1];return M$t.has(n)&&!Qy(r)}var N$t=640/360,xLe=new Set(["autoPlay","chromeless","controlsVisibleOnLoad","doNotTrack","email","embedHost","endVideoBehavior","fitStrategy","fullscreenButton","googleAnalytics","hashedId","height","hls","id","idType","muted","playbackRateControl","playbar","playButton","playerColor","playlistLinks","playlistLoop","playPauseNotifier","popover","popoverAnimateThumbnail","popoverContent","popoverOverlayOpacity","preload","qualityControl","qualityMax","qualityMin","resumable","seo","settingsControl","silentAutoPlay","smallPlayButton","stillUrl","time","videoFoam","volume","volumeControl","width","wmode"]),pLe=new Set(["onAfterReplace","onBeforeRemove","onBeforeReplace","onCancelFullscreen","onCaptionsChange","onConversion","onEnd","onEnterFullscreen","onHeightChange","onLookChange","onMuteChange","onPause","onPercentWatchedChanged","onPlay","onPlaybackRateChange","onSecondChange","onSeek","onSilentPlaybackModeChange","onTimeChange","onVolumeChange","onWidthChange"]);function fLe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.replace("on","").toLowerCase()}var _Le=function(e){gLe(n,e);var t=vLe(n);function n(){var r;Tz(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),wu(v9(r),"player",null),wu(v9(r),"state",{safeToRender:!1}),wu(v9(r),"setupPlayerAfterReady",function(a){var l,u;(l=(u=r.context).dispatch)===null||l===void 0||l.call(u,{type:"add-wistia-player",payload:{player:a,hashedId:r.props.hashedId}}),r.setupEventBindings(a)}),r}return Dz(n,[{key:"classNames",get:function(){return"".concat(this.embedClassNames," ").concat(this.optionsAsCSSClassNames," ").concat(this.props.className)}},{key:"responsivePaddingStyle",get:function(){return{paddingBottom:0,paddingLeft:0,paddingTop:this.inverseAspectPercent,paddingRight:0,position:"relative"}}},{key:"responsiveWrapperStyle",get:function(){return{height:"100%",left:0,position:"absolute",top:0,width:"100%"}}},{key:"inverseAspectPercent",get:function(){return"".concat(1/this.aspectRatio*100,"%")}},{key:"aspectRatio",get:function(){return this.player&&this.player.hasData()?this.player.aspect():N$t}},{key:"cssDisplayValue",get:function(){return this.isPopoverLink?"inline":"inline-block"}},{key:"computedPopoverContent",get:function(){return this.isPopoverLink?bu.createElement("a",{href:"#"},this.props.children):this.isPopoverHtml?this.props.children:null}},{key:"cssHeightValue",get:function(){return Qy(this.props.height)?"100%":"".concat(this.props.height,"px")}},{key:"cssWidthValue",get:function(){return Qy(this.props.width)?"100%":"".concat(this.props.width,"px")}},{key:"embedClassNames",get:function(){return"wistia_embed wistia_async_".concat(this.props.hashedId)}},{key:"isPopover",get:function(){return Qy(this.props.popover)?bu.Children.count(this.props.children)!==0:this.props.popover}},{key:"isPopoverLink",get:function(){return this.props.popoverContent==="link"}},{key:"isPopoverHtml",get:function(){return this.props.popoverContent==="html"}},{key:"computedVideoFoam",get:function(){var i=this.isPopoverHtml||this.isPopoverLink,o=this.props.height||this.props.width,s=!i&&!o;return Qy(this.props.videoFoam)?s:this.props.videoFoam}},{key:"optionsAsCSSClassNames",get:function(){return Object.entries(this.props).filter(G$t).map(yLe).join(" ")}},{key:"style",get:function(){return g9({display:this.cssDisplayValue,height:this.cssHeightValue,width:this.cssWidthValue},this.props.style)}},{key:"componentDidMount",value:function(){this.prepareForPlayerSetup(this.props.hashedId),this.context.dispatch({type:"prepare-for-player",payload:{hashedId:this.props.hashedId}}),this.setState({safeToRender:!0})}},{key:"componentDidUpdate",value:function(i){this.props.hashedId!==i.hashedId&&this.player.replaceWith(this.props.hashedId)}},{key:"componentWillUnmount",value:function(){this.removeEventBindings(this.player),this.context.dispatch({type:"remove-wistia-player",payload:{hashedId:this.props.hashedId}})}},{key:"shouldComponentUpdate",value:function(i){return i.hashedId!==this.props.hashedId?!0:!this.state.safeToRender}},{key:"render",value:function(){var i,o;return(i=this.context)===null||i===void 0||(o=i.wistiaContext)===null||o===void 0||o.addVideoId(this.props.hashedId),this.state.safeToRender?this.computedVideoFoam?bu.createElement("div",{className:"wistia_responsive_padding",style:this.responsivePaddingStyle},bu.createElement("div",{className:"wistia_responsive_wrapper",style:this.responsiveWrapperStyle},bu.createElement("div",{className:this.classNames,id:this.props.id,key:this.props.hashedId,style:this.style},this.isPopover&&this.computedPopoverContent))):bu.createElement("div",{className:this.classNames,id:this.props.id,key:this.props.hashedId,style:this.style},this.isPopover&&this.computedPopoverContent):null}},{key:"onBeforeReplace",value:function(i){this.removeEventBindings(),this.prepareForPlayerSetup(i)}},{key:"removeEventBindings",value:function(i){i&&(pLe.forEach(function(o){i.unbind(fLe(o))}),i.unbind("beforereplace"),window._wq=window._wq||[],window._wq.push({revoke:this.initConfigOptions}))}},{key:"setupEventBindings",value:function(i){var o=this,s=function(l,u){var c=fLe(l);i.bind(c,function(){for(var f,d=arguments.length,h=new Array(d),m=0;m<d;m++)h[m]=arguments[m];(f=o[l])===null||f===void 0||f.call.apply(f,[o].concat(h)),u?.apply(void 0,h)})};pLe.forEach(function(a){return s(a,function(){for(var l,u,c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];return(l=(u=o.props)[a])===null||l===void 0?void 0:l.call.apply(l,[u].concat(f))})}),this.props.customEvents&&Object.entries(this.props.customEvents).forEach(function(a){var l=k5(a,2),u=l[0],c=l[1];s(u,c)})}},{key:"prepareForPlayerSetup",value:function(i){var o=this,s=function(l,u){var c,f;(c=(f=o.props)[l])===null||c===void 0||c.call(f,u)};this.initConfigOptions={id:this.props.id||i,onEmbedded:function(l){return s("onEmbedded",l)},onHasData:function(l){o.player=l,s("onHasData",l)},onReady:function(l){s("onReady",l),o.setupPlayerAfterReady(l)},options:this.props.customOptions?this.props.customOptions:{}},window._wq=window._wq||[],window._wq.push(this.initConfigOptions)}}]),n}(bu.Component);wu(_Le,"contextType",Rz);function G$t(e){var t=k5(e,2),n=t[0],r=t[1];return xLe.has(n)&&!Qy(r)}function F$t(e){return"".concat(e)}function hLe(e){var t=Array.from(document.getElementsByTagName("script")),n=Object.assign(document.createElement("script"),{src:e});t.every(function(r){return r.src!==n.src})&&document.head.appendChild(n)}var I$t=Object.defineProperties,z$t=Object.getOwnPropertyDescriptors;function T$t(e){e=F$t(e);try{var t=new URL(e);if(t.href==="".concat(t.origin,"/"))return t.origin}catch{}throw new URIError("".concat(JSON.stringify(e)," is not a valid URL origin"))}function D$t(e){return new URL(e)}var R$t=location.href,mLe="https://fast.wistia.net",L$t="wgalleryid",V$t="wvideoid",J$t="e-v1-loader",nne=Symbol(),rne=Symbol(),bLe=function(){function e(t){var n=t.href,r=n===void 0?R$t:n,i=t.origin,o=i===void 0?mLe:i;Tz(this,e),wu(this,nne,mLe),wu(this,rne,void 0),wu(this,"channelIds",new Set),wu(this,"exposedResult",void 0),wu(this,"headResult",void 0),wu(this,"videoIds",new Set),this.origin=o,this.url=r}return Dz(e,[{key:"activeChannelProjectHashedId",get:function(){return this.url&&this.url.searchParams.get(L$t)}},{key:"activeChannelVideoHashedId",get:function(){return this.url&&this.url.searchParams.get(V$t)}},{key:"channelUrl",get:function(){return"".concat(this.origin,"/assets/external/channel.js")}},{key:"hasUrl",get:function(){return!Qy(this.url)}},{key:"origin",get:function(){return this[nne]},set:function(n){try{this[nne]=T$t(n)}catch(r){console.error(r)}}},{key:"playerUrl",get:function(){return this.shouldUseLoader?"".concat(this.origin,"/assets/external/E-v1-loader.js"):"".concat(this.origin,"/assets/external/E-v1.js")}},{key:"shouldUseLoader",get:function(){return this.hasUrl&&this.url.searchParams.get(J$t)==="true"}},{key:"url",get:function(){return this[rne]},set:function(n){try{this[rne]=D$t(n)}catch(r){console.error(r)}}}]),e}();I$t(bLe.prototype,z$t(function(){function e(){Tz(this,e)}return Dz(e,[{key:"addChannelId",value:function(){ine||(ine=!0,hLe(this.channelUrl))}},{key:"addVideoId",value:function(){one||(one=!0,hLe(this.playerUrl))}},{key:"finalize",value:function(){return Promise.reject(new Error("WistiaContext.finalize is SSR-only"))}}]),e}().prototype));var ine,one;function j$t(e){var t=e.href,n=e.origin,r=bu.useRef(new bLe({href:t,origin:n}));return r.current}var H$t={players:{}};function wLe(e){var t=e.children,n=e.context,r=n===void 0?{}:n,i=e.href,o=e.origin,s=bu.useReducer(g,H$t),a=k5(s,2),l=a[0],u=a[1],c=bu.useState(void 0),f=k5(c,2),d=f[0],h=f[1],m=j$t({href:i,origin:o});function g(v,x){switch(x.type){case"prepare-for-channel":return m?.addChannelId(x.payload.hashedId),v;case"prepare-for-player":return m?.addVideoId(x.payload.hashedId),v;case"add-wistia-player":return v.players[x.payload.hashedId]=x.payload.player,g9(g9({},v),{},{players:g9({},v.players)});case"remove-wistia-player":return delete v.players[x.payload.hashedId],{players:g9({},v.players)};default:throw new Error("Unhandled action type: ".concat(x.type))}}e.context!==d&&(Object.defineProperties(r,wu({addChannelId:{value:m.addChannelId.bind(m),writable:!0},addVideoId:{value:m.addVideoId.bind(m),writable:!0},finalize:{value:m.finalize.bind(m),writable:!0}},Symbol.toStringTag,{value:"WistiaContext"})),h(r));var b={state:l,dispatch:u,wistiaContext:d};return bu.createElement(Rz.Provider,{value:b},t)}wLe.defaultProps={context:{}};function W$t(e){var t=bu.useContext(Rz);if(t===void 0)throw new Error("usePlayer must be used within a WistiaProvider");return t.state.players[e]}e6.PLAYER_OPTION_KEYS=xLe;e6.WistiaChannel=ane;e6.WistiaPlayer=_Le;e6.WistiaProvider=wLe;e6.usePlayer=W$t});var ALe=ne((oJn,kLe)=>{"use strict";kLe.exports=PLe()});(function(){if(window.Reflect===void 0||window.customElements===void 0||window.customElements.polyfillWrapFlushCallback)return;let e=HTMLElement,t={HTMLElement:function(){return Reflect.construct(e,[],this.constructor)}};window.HTMLElement=t.HTMLElement,HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)})();(function(e){if(typeof e.requestSubmit=="function")return;e.requestSubmit=function(r){r?(t(r,this),r.click()):(r=document.createElement("input"),r.type="submit",r.hidden=!0,this.appendChild(r),r.click(),this.removeChild(r))};function t(r,i){r instanceof HTMLElement||n(TypeError,"parameter 1 is not of type 'HTMLElement'"),r.type=="submit"||n(TypeError,"The specified element is not a submit button"),r.form==i||n(DOMException,"The specified element is not owned by this form element","NotFoundError")}function n(r,i,o){throw new r("Failed to execute 'requestSubmit' on 'HTMLFormElement': "+i+".",o)}})(HTMLFormElement.prototype);var Nre=new WeakMap;function zWe(e){let t=e instanceof Element?e:e instanceof Node?e.parentElement:null,n=t?t.closest("input, button"):null;return n?.type=="submit"?n:null}function TWe(e){let t=zWe(e.target);t&&t.form&&Nre.set(t.form,t)}(function(){if("submitter"in Event.prototype)return;let e=window.Event.prototype;if("SubmitEvent"in window&&/Apple Computer/.test(navigator.vendor))e=window.SubmitEvent.prototype;else if("SubmitEvent"in window)return;addEventListener("click",TWe,!0),Object.defineProperty(e,"submitter",{get(){if(this.type=="submit"&&this.target instanceof HTMLFormElement)return Nre.get(this.target)}})})();var r1;(function(e){e.eager="eager",e.lazy="lazy"})(r1||(r1={}));var yp=class extends HTMLElement{static get observedAttributes(){return["disabled","complete","loading","src"]}constructor(){super(),this.loaded=Promise.resolve(),this.delegate=new yp.delegateConstructor(this)}connectedCallback(){this.delegate.connect()}disconnectedCallback(){this.delegate.disconnect()}reload(){return this.delegate.sourceURLReloaded()}attributeChangedCallback(t){t=="loading"?this.delegate.loadingStyleChanged():t=="complete"?this.delegate.completeChanged():t=="src"?this.delegate.sourceURLChanged():this.delegate.disabledChanged()}get src(){return this.getAttribute("src")}set src(t){t?this.setAttribute("src",t):this.removeAttribute("src")}get loading(){return DWe(this.getAttribute("loading")||"")}set loading(t){t?this.setAttribute("loading",t):this.removeAttribute("loading")}get disabled(){return this.hasAttribute("disabled")}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled")}get autoscroll(){return this.hasAttribute("autoscroll")}set autoscroll(t){t?this.setAttribute("autoscroll",""):this.removeAttribute("autoscroll")}get complete(){return!this.delegate.isLoading}get isActive(){return this.ownerDocument===document&&!this.isPreview}get isPreview(){var t,n;return(n=(t=this.ownerDocument)===null||t===void 0?void 0:t.documentElement)===null||n===void 0?void 0:n.hasAttribute("data-turbo-preview")}};function DWe(e){switch(e.toLowerCase()){case"lazy":return r1.lazy;default:return r1.eager}}function hl(e){return new URL(e.toString(),document.baseURI)}function $v(e){let t;if(e.hash)return e.hash.slice(1);if(t=e.href.match(/#(.*)$/))return t[1]}function SD(e,t){let n=t?.getAttribute("formaction")||e.getAttribute("action")||e.action;return hl(n)}function RWe(e){return(HWe(e).match(/\.[^.]*$/)||[])[0]||""}function LWe(e){return!!RWe(e).match(/^(?:|\.(?:htm|html|xhtml|php))$/)}function VWe(e,t){let n=WWe(t);return e.href===hl(n).href||e.href.startsWith(n)}function w6(e,t){return VWe(e,t)&&LWe(e)}function rD(e){let t=$v(e);return t!=null?e.href.slice(0,-(t.length+1)):e.href}function tA(e){return rD(e)}function JWe(e,t){return hl(e).href==hl(t).href}function jWe(e){return e.pathname.split("/").slice(1)}function HWe(e){return jWe(e).slice(-1)[0]}function WWe(e){return XWe(e.origin+e.pathname)}function XWe(e){return e.endsWith("/")?e:e+"/"}var U5=class{constructor(t){this.response=t}get succeeded(){return this.response.ok}get failed(){return!this.succeeded}get clientError(){return this.statusCode>=400&&this.statusCode<=499}get serverError(){return this.statusCode>=500&&this.statusCode<=599}get redirected(){return this.response.redirected}get location(){return hl(this.response.url)}get isHTML(){return this.contentType&&this.contentType.match(/^(?:text\/([^\s;,]+\b)?html|application\/xhtml\+xml)\b/)}get statusCode(){return this.response.status}get contentType(){return this.header("Content-Type")}get responseText(){return this.response.clone().text()}get responseHTML(){return this.isHTML?this.response.clone().text():Promise.resolve(void 0)}header(t){return this.response.headers.get(t)}};function Q5(e){if(e.getAttribute("data-turbo-eval")=="false")return e;{let t=document.createElement("script"),n=iA("csp-nonce");return n&&(t.nonce=n),t.textContent=e.textContent,t.async=!1,qWe(t,e),t}}function qWe(e,t){for(let{name:n,value:r}of t.attributes)e.setAttribute(n,r)}function $We(e){let t=document.createElement("template");return t.innerHTML=e,t.content}function za(e,{target:t,cancelable:n,detail:r}={}){let i=new CustomEvent(e,{cancelable:n,bubbles:!0,composed:!0,detail:r});return t&&t.isConnected?t.dispatchEvent(i):document.documentElement.dispatchEvent(i),i}function nA(){return new Promise(e=>requestAnimationFrame(()=>e()))}function KWe(){return new Promise(e=>setTimeout(()=>e(),0))}function YWe(){return Promise.resolve()}function Gre(e=""){return new DOMParser().parseFromString(e,"text/html")}function Fre(e,...t){let n=ZWe(e,t).replace(/^\n/,"").split(`
`),r=n[0].match(/^\s+/),i=r?r[0].length:0;return n.map(o=>o.slice(i)).join(`
`)}function ZWe(e,t){return e.reduce((n,r,i)=>{let o=t[i]==null?"":t[i];return n+r+o},"")}function P6(){return Array.from({length:36}).map((e,t)=>t==8||t==13||t==18||t==23?"-":t==14?"4":t==19?(Math.floor(Math.random()*4)+8).toString(16):Math.floor(Math.random()*15).toString(16)).join("")}function rA(e,...t){for(let n of t.map(r=>r?.getAttribute(e)))if(typeof n=="string")return n;return null}function UWe(e,...t){return t.some(n=>n&&n.hasAttribute(e))}function iD(...e){for(let t of e)t.localName=="turbo-frame"&&t.setAttribute("busy",""),t.setAttribute("aria-busy","true")}function oD(...e){for(let t of e)t.localName=="turbo-frame"&&t.removeAttribute("busy"),t.removeAttribute("aria-busy")}function QWe(e,t=2e3){return new Promise(n=>{let r=()=>{e.removeEventListener("error",r),e.removeEventListener("load",r),n()};e.addEventListener("load",r,{once:!0}),e.addEventListener("error",r,{once:!0}),setTimeout(n,t)})}function Ire(e){switch(e){case"replace":return history.replaceState;case"advance":case"restore":return history.pushState}}function eXe(e){return e=="advance"||e=="replace"||e=="restore"}function pA(...e){let t=rA("data-turbo-action",...e);return eXe(t)?t:null}function zre(e){return document.querySelector(`meta[name="${e}"]`)}function iA(e){let t=zre(e);return t&&t.content}function tXe(e,t){let n=zre(e);return n||(n=document.createElement("meta"),n.setAttribute("name",e),document.head.appendChild(n)),n.setAttribute("content",t),n}function oA(e,t){var n;if(e instanceof Element)return e.closest(t)||oA(e.assignedSlot||((n=e.getRootNode())===null||n===void 0?void 0:n.host),t)}var Iu;(function(e){e[e.get=0]="get",e[e.post=1]="post",e[e.put=2]="put",e[e.patch=3]="patch",e[e.delete=4]="delete"})(Iu||(Iu={}));function nXe(e){switch(e.toLowerCase()){case"get":return Iu.get;case"post":return Iu.post;case"put":return Iu.put;case"patch":return Iu.patch;case"delete":return Iu.delete}}var e_=class{constructor(t,n,r,i=new URLSearchParams,o=null){this.abortController=new AbortController,this.resolveRequestPromise=s=>{},this.delegate=t,this.method=n,this.headers=this.defaultHeaders,this.body=i,this.url=r,this.target=o}get location(){return this.url}get params(){return this.url.searchParams}get entries(){return this.body?Array.from(this.body.entries()):[]}cancel(){this.abortController.abort()}async perform(){let{fetchOptions:t}=this;this.delegate.prepareRequest(this),await this.allowRequestToBeIntercepted(t);try{this.delegate.requestStarted(this);let n=await fetch(this.url.href,t);return await this.receive(n)}catch(n){if(n.name!=="AbortError")throw this.willDelegateErrorHandling(n)&&this.delegate.requestErrored(this,n),n}finally{this.delegate.requestFinished(this)}}async receive(t){let n=new U5(t);return za("turbo:before-fetch-response",{cancelable:!0,detail:{fetchResponse:n},target:this.target}).defaultPrevented?this.delegate.requestPreventedHandlingResponse(this,n):n.succeeded?this.delegate.requestSucceededWithResponse(this,n):this.delegate.requestFailedWithResponse(this,n),n}get fetchOptions(){var t;return{method:Iu[this.method].toUpperCase(),credentials:"same-origin",headers:this.headers,redirect:"follow",body:this.isSafe?null:this.body,signal:this.abortSignal,referrer:(t=this.delegate.referrer)===null||t===void 0?void 0:t.href}}get defaultHeaders(){return{Accept:"text/html, application/xhtml+xml"}}get isSafe(){return this.method===Iu.get}get abortSignal(){return this.abortController.signal}acceptResponseType(t){this.headers.Accept=[t,this.headers.Accept].join(", ")}async allowRequestToBeIntercepted(t){let n=new Promise(i=>this.resolveRequestPromise=i);za("turbo:before-fetch-request",{cancelable:!0,detail:{fetchOptions:t,url:this.url,resume:this.resolveRequestPromise},target:this.target}).defaultPrevented&&await n}willDelegateErrorHandling(t){return!za("turbo:fetch-request-error",{target:this.target,cancelable:!0,detail:{request:this,error:t}}).defaultPrevented}},sD=class{constructor(t,n){this.started=!1,this.intersect=r=>{let i=r.slice(-1)[0];i?.isIntersecting&&this.delegate.elementAppearedInViewport(this.element)},this.delegate=t,this.element=n,this.intersectionObserver=new IntersectionObserver(this.intersect)}start(){this.started||(this.started=!0,this.intersectionObserver.observe(this.element))}stop(){this.started&&(this.started=!1,this.intersectionObserver.unobserve(this.element))}},Yh=class{static wrap(t){return typeof t=="string"?new this($We(t)):t}constructor(t){this.fragment=rXe(t)}};Yh.contentType="text/vnd.turbo-stream.html";function rXe(e){for(let t of e.querySelectorAll("turbo-stream")){let n=document.importNode(t,!0);for(let r of n.templateElement.content.querySelectorAll("script"))r.replaceWith(Q5(r));t.replaceWith(n)}return e}var t1;(function(e){e[e.initialized=0]="initialized",e[e.requesting=1]="requesting",e[e.waiting=2]="waiting",e[e.receiving=3]="receiving",e[e.stopping=4]="stopping",e[e.stopped=5]="stopped"})(t1||(t1={}));var n1;(function(e){e.urlEncoded="application/x-www-form-urlencoded",e.multipart="multipart/form-data",e.plain="text/plain"})(n1||(n1={}));function iXe(e){switch(e.toLowerCase()){case n1.multipart:return n1.multipart;case n1.plain:return n1.plain;default:return n1.urlEncoded}}var Kv=class{static confirmMethod(t,n,r){return Promise.resolve(confirm(t))}constructor(t,n,r,i=!1){this.state=t1.initialized,this.delegate=t,this.formElement=n,this.submitter=r,this.formData=oXe(n,r),this.location=hl(this.action),this.method==Iu.get&&lXe(this.location,[...this.body.entries()]),this.fetchRequest=new e_(this,this.method,this.location,this.body,this.formElement),this.mustRedirect=i}get method(){var t;let n=((t=this.submitter)===null||t===void 0?void 0:t.getAttribute("formmethod"))||this.formElement.getAttribute("method")||"";return nXe(n.toLowerCase())||Iu.get}get action(){var t;let n=typeof this.formElement.action=="string"?this.formElement.action:null;return!((t=this.submitter)===null||t===void 0)&&t.hasAttribute("formaction")?this.submitter.getAttribute("formaction")||"":this.formElement.getAttribute("action")||n||""}get body(){return this.enctype==n1.urlEncoded||this.method==Iu.get?new URLSearchParams(this.stringFormData):this.formData}get enctype(){var t;return iXe(((t=this.submitter)===null||t===void 0?void 0:t.getAttribute("formenctype"))||this.formElement.enctype)}get isSafe(){return this.fetchRequest.isSafe}get stringFormData(){return[...this.formData].reduce((t,[n,r])=>t.concat(typeof r=="string"?[[n,r]]:[]),[])}async start(){let{initialized:t,requesting:n}=t1,r=rA("data-turbo-confirm",this.submitter,this.formElement);if(!(typeof r=="string"&&!await Kv.confirmMethod(r,this.formElement,this.submitter))&&this.state==t)return this.state=n,this.fetchRequest.perform()}stop(){let{stopping:t,stopped:n}=t1;if(this.state!=t&&this.state!=n)return this.state=t,this.fetchRequest.cancel(),!0}prepareRequest(t){if(!t.isSafe){let n=sXe(iA("csrf-param"))||iA("csrf-token");n&&(t.headers["X-CSRF-Token"]=n)}this.requestAcceptsTurboStreamResponse(t)&&t.acceptResponseType(Yh.contentType)}requestStarted(t){var n;this.state=t1.waiting,(n=this.submitter)===null||n===void 0||n.setAttribute("disabled",""),this.setSubmitsWith(),za("turbo:submit-start",{target:this.formElement,detail:{formSubmission:this}}),this.delegate.formSubmissionStarted(this)}requestPreventedHandlingResponse(t,n){this.result={success:n.succeeded,fetchResponse:n}}requestSucceededWithResponse(t,n){if(n.clientError||n.serverError)this.delegate.formSubmissionFailedWithResponse(this,n);else if(this.requestMustRedirect(t)&&aXe(n)){let r=new Error("Form responses must redirect to another location");this.delegate.formSubmissionErrored(this,r)}else this.state=t1.receiving,this.result={success:!0,fetchResponse:n},this.delegate.formSubmissionSucceededWithResponse(this,n)}requestFailedWithResponse(t,n){this.result={success:!1,fetchResponse:n},this.delegate.formSubmissionFailedWithResponse(this,n)}requestErrored(t,n){this.result={success:!1,error:n},this.delegate.formSubmissionErrored(this,n)}requestFinished(t){var n;this.state=t1.stopped,(n=this.submitter)===null||n===void 0||n.removeAttribute("disabled"),this.resetSubmitterText(),za("turbo:submit-end",{target:this.formElement,detail:Object.assign({formSubmission:this},this.result)}),this.delegate.formSubmissionFinished(this)}setSubmitsWith(){if(!(!this.submitter||!this.submitsWith)){if(this.submitter.matches("button"))this.originalSubmitText=this.submitter.innerHTML,this.submitter.innerHTML=this.submitsWith;else if(this.submitter.matches("input")){let t=this.submitter;this.originalSubmitText=t.value,t.value=this.submitsWith}}}resetSubmitterText(){if(!(!this.submitter||!this.originalSubmitText)){if(this.submitter.matches("button"))this.submitter.innerHTML=this.originalSubmitText;else if(this.submitter.matches("input")){let t=this.submitter;t.value=this.originalSubmitText}}}requestMustRedirect(t){return!t.isSafe&&this.mustRedirect}requestAcceptsTurboStreamResponse(t){return!t.isSafe||UWe("data-turbo-stream",this.submitter,this.formElement)}get submitsWith(){var t;return(t=this.submitter)===null||t===void 0?void 0:t.getAttribute("data-turbo-submits-with")}};function oXe(e,t){let n=new FormData(e),r=t?.getAttribute("name"),i=t?.getAttribute("value");return r&&n.append(r,i||""),n}function sXe(e){if(e!=null){let n=(document.cookie?document.cookie.split("; "):[]).find(r=>r.startsWith(e));if(n){let r=n.split("=").slice(1).join("=");return r?decodeURIComponent(r):void 0}}}function aXe(e){return e.statusCode==200&&!e.redirected}function lXe(e,t){let n=new URLSearchParams;for(let[r,i]of t)i instanceof File||n.append(r,i);return e.search=n.toString(),e}var k6=class{constructor(t){this.element=t}get activeElement(){return this.element.ownerDocument.activeElement}get children(){return[...this.element.children]}hasAnchor(t){return this.getElementForAnchor(t)!=null}getElementForAnchor(t){return t?this.element.querySelector(`[id='${t}'], a[name='${t}']`):null}get isConnected(){return this.element.isConnected}get firstAutofocusableElement(){let t="[inert], :disabled, [hidden], details:not([open]), dialog:not([open])";for(let n of this.element.querySelectorAll("[autofocus]"))if(n.closest(t)==null)return n;return null}get permanentElements(){return Dre(this.element)}getPermanentElementById(t){return Tre(this.element,t)}getPermanentElementMapForSnapshot(t){let n={};for(let r of this.permanentElements){let{id:i}=r,o=t.getPermanentElementById(i);o&&(n[i]=[r,o])}return n}};function Tre(e,t){return e.querySelector(`#${t}[data-turbo-permanent]`)}function Dre(e){return e.querySelectorAll("[id][data-turbo-permanent]")}var t_=class{constructor(t,n){this.started=!1,this.submitCaptured=()=>{this.eventTarget.removeEventListener("submit",this.submitBubbled,!1),this.eventTarget.addEventListener("submit",this.submitBubbled,!1)},this.submitBubbled=r=>{if(!r.defaultPrevented){let i=r.target instanceof HTMLFormElement?r.target:void 0,o=r.submitter||void 0;i&&uXe(i,o)&&cXe(i,o)&&this.delegate.willSubmitForm(i,o)&&(r.preventDefault(),r.stopImmediatePropagation(),this.delegate.formSubmitted(i,o))}},this.delegate=t,this.eventTarget=n}start(){this.started||(this.eventTarget.addEventListener("submit",this.submitCaptured,!0),this.started=!0)}stop(){this.started&&(this.eventTarget.removeEventListener("submit",this.submitCaptured,!0),this.started=!1)}};function uXe(e,t){return(t?.getAttribute("formmethod")||e.getAttribute("method"))!="dialog"}function cXe(e,t){if(t?.hasAttribute("formtarget")||e.hasAttribute("target")){let n=t?.getAttribute("formtarget")||e.target;for(let r of document.getElementsByName(n))if(r instanceof HTMLIFrameElement)return!1;return!0}else return!0}var sA=class{constructor(t,n){this.resolveRenderPromise=r=>{},this.resolveInterceptionPromise=r=>{},this.delegate=t,this.element=n}scrollToAnchor(t){let n=this.snapshot.getElementForAnchor(t);n?(this.scrollToElement(n),this.focusElement(n)):this.scrollToPosition({x:0,y:0})}scrollToAnchorFromLocation(t){this.scrollToAnchor($v(t))}scrollToElement(t){t.scrollIntoView()}focusElement(t){t instanceof HTMLElement&&(t.hasAttribute("tabindex")?t.focus():(t.setAttribute("tabindex","-1"),t.focus(),t.removeAttribute("tabindex")))}scrollToPosition({x:t,y:n}){this.scrollRoot.scrollTo(t,n)}scrollToTop(){this.scrollToPosition({x:0,y:0})}get scrollRoot(){return window}async render(t){let{isPreview:n,shouldRender:r,newSnapshot:i}=t;if(r)try{this.renderPromise=new Promise(l=>this.resolveRenderPromise=l),this.renderer=t,await this.prepareToRenderSnapshot(t);let o=new Promise(l=>this.resolveInterceptionPromise=l),s={resume:this.resolveInterceptionPromise,render:this.renderer.renderElement};this.delegate.allowsImmediateRender(i,s)||await o,await this.renderSnapshot(t),this.delegate.viewRenderedSnapshot(i,n),this.delegate.preloadOnLoadLinksForView(this.element),this.finishRenderingSnapshot(t)}finally{delete this.renderer,this.resolveRenderPromise(void 0),delete this.renderPromise}else this.invalidate(t.reloadReason)}invalidate(t){this.delegate.viewInvalidated(t)}async prepareToRenderSnapshot(t){this.markAsPreview(t.isPreview),await t.prepareToRender()}markAsPreview(t){t?this.element.setAttribute("data-turbo-preview",""):this.element.removeAttribute("data-turbo-preview")}async renderSnapshot(t){await t.render()}finishRenderingSnapshot(t){t.finishRendering()}},aD=class extends sA{missing(){this.element.innerHTML='<strong class="turbo-frame-error">Content missing</strong>'}get snapshot(){return new k6(this.element)}},aA=class{constructor(t,n){this.clickBubbled=r=>{this.respondsToEventTarget(r.target)?this.clickEvent=r:delete this.clickEvent},this.linkClicked=r=>{this.clickEvent&&this.respondsToEventTarget(r.target)&&r.target instanceof Element&&this.delegate.shouldInterceptLinkClick(r.target,r.detail.url,r.detail.originalEvent)&&(this.clickEvent.preventDefault(),r.preventDefault(),this.delegate.linkClickIntercepted(r.target,r.detail.url,r.detail.originalEvent)),delete this.clickEvent},this.willVisit=r=>{delete this.clickEvent},this.delegate=t,this.element=n}start(){this.element.addEventListener("click",this.clickBubbled),document.addEventListener("turbo:click",this.linkClicked),document.addEventListener("turbo:before-visit",this.willVisit)}stop(){this.element.removeEventListener("click",this.clickBubbled),document.removeEventListener("turbo:click",this.linkClicked),document.removeEventListener("turbo:before-visit",this.willVisit)}respondsToEventTarget(t){let n=t instanceof Element?t:t instanceof Node?t.parentElement:null;return n&&n.closest("turbo-frame, html")==this.element}},lA=class{constructor(t,n){this.started=!1,this.clickCaptured=()=>{this.eventTarget.removeEventListener("click",this.clickBubbled,!1),this.eventTarget.addEventListener("click",this.clickBubbled,!1)},this.clickBubbled=r=>{if(r instanceof MouseEvent&&this.clickEventIsSignificant(r)){let i=r.composedPath&&r.composedPath()[0]||r.target,o=this.findLinkFromClickTarget(i);if(o&&dXe(o)){let s=this.getLocationForLink(o);this.delegate.willFollowLinkToLocation(o,s,r)&&(r.preventDefault(),this.delegate.followedLinkToLocation(o,s))}}},this.delegate=t,this.eventTarget=n}start(){this.started||(this.eventTarget.addEventListener("click",this.clickCaptured,!0),this.started=!0)}stop(){this.started&&(this.eventTarget.removeEventListener("click",this.clickCaptured,!0),this.started=!1)}clickEventIsSignificant(t){return!(t.target&&t.target.isContentEditable||t.defaultPrevented||t.which>1||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)}findLinkFromClickTarget(t){return oA(t,"a[href]:not([target^=_]):not([download])")}getLocationForLink(t){return hl(t.getAttribute("href")||"")}};function dXe(e){if(e.hasAttribute("target")){for(let t of document.getElementsByName(e.target))if(t instanceof HTMLIFrameElement)return!1;return!0}else return!0}var uA=class{constructor(t,n){this.delegate=t,this.linkInterceptor=new lA(this,n)}start(){this.linkInterceptor.start()}stop(){this.linkInterceptor.stop()}willFollowLinkToLocation(t,n,r){return this.delegate.willSubmitFormLinkToLocation(t,n,r)&&t.hasAttribute("data-turbo-method")}followedLinkToLocation(t,n){let r=document.createElement("form"),i="hidden";for(let[f,d]of n.searchParams)r.append(Object.assign(document.createElement("input"),{type:i,name:f,value:d}));let o=Object.assign(n,{search:""});r.setAttribute("data-turbo","true"),r.setAttribute("action",o.href),r.setAttribute("hidden","");let s=t.getAttribute("data-turbo-method");s&&r.setAttribute("method",s);let a=t.getAttribute("data-turbo-frame");a&&r.setAttribute("data-turbo-frame",a);let l=pA(t);l&&r.setAttribute("data-turbo-action",l);let u=t.getAttribute("data-turbo-confirm");u&&r.setAttribute("data-turbo-confirm",u),t.hasAttribute("data-turbo-stream")&&r.setAttribute("data-turbo-stream",""),this.delegate.submittedFormLinkToLocation(t,n,r),document.body.appendChild(r),r.addEventListener("turbo:submit-end",()=>r.remove(),{once:!0}),requestAnimationFrame(()=>r.requestSubmit())}},cA=class{static async preservingPermanentElements(t,n,r){let i=new this(t,n);i.enter(),await r(),i.leave()}constructor(t,n){this.delegate=t,this.permanentElementMap=n}enter(){for(let t in this.permanentElementMap){let[n,r]=this.permanentElementMap[t];this.delegate.enteringBardo(n,r),this.replaceNewPermanentElementWithPlaceholder(r)}}leave(){for(let t in this.permanentElementMap){let[n]=this.permanentElementMap[t];this.replaceCurrentPermanentElementWithClone(n),this.replacePlaceholderWithPermanentElement(n),this.delegate.leavingBardo(n)}}replaceNewPermanentElementWithPlaceholder(t){let n=pXe(t);t.replaceWith(n)}replaceCurrentPermanentElementWithClone(t){let n=t.cloneNode(!0);t.replaceWith(n)}replacePlaceholderWithPermanentElement(t){let n=this.getPlaceholderById(t.id);n?.replaceWith(t)}getPlaceholderById(t){return this.placeholders.find(n=>n.content==t)}get placeholders(){return[...document.querySelectorAll("meta[name=turbo-permanent-placeholder][content]")]}};function pXe(e){let t=document.createElement("meta");return t.setAttribute("name","turbo-permanent-placeholder"),t.setAttribute("content",e.id),t}var n_=class{constructor(t,n,r,i,o=!0){this.activeElement=null,this.currentSnapshot=t,this.newSnapshot=n,this.isPreview=i,this.willRender=o,this.renderElement=r,this.promise=new Promise((s,a)=>this.resolvingFunctions={resolve:s,reject:a})}get shouldRender(){return!0}get reloadReason(){}prepareToRender(){}finishRendering(){this.resolvingFunctions&&(this.resolvingFunctions.resolve(),delete this.resolvingFunctions)}async preservingPermanentElements(t){await cA.preservingPermanentElements(this,this.permanentElementMap,t)}focusFirstAutofocusableElement(){let t=this.connectedSnapshot.firstAutofocusableElement;fXe(t)&&t.focus()}enteringBardo(t){this.activeElement||t.contains(this.currentSnapshot.activeElement)&&(this.activeElement=this.currentSnapshot.activeElement)}leavingBardo(t){t.contains(this.activeElement)&&this.activeElement instanceof HTMLElement&&(this.activeElement.focus(),this.activeElement=null)}get connectedSnapshot(){return this.newSnapshot.isConnected?this.newSnapshot:this.currentSnapshot}get currentElement(){return this.currentSnapshot.element}get newElement(){return this.newSnapshot.element}get permanentElementMap(){return this.currentSnapshot.getPermanentElementMapForSnapshot(this.newSnapshot)}};function fXe(e){return e&&typeof e.focus=="function"}var r_=class extends n_{static renderElement(t,n){var r;let i=document.createRange();i.selectNodeContents(t),i.deleteContents();let o=n,s=(r=o.ownerDocument)===null||r===void 0?void 0:r.createRange();s&&(s.selectNodeContents(o),t.appendChild(s.extractContents()))}constructor(t,n,r,i,o,s=!0){super(n,r,i,o,s),this.delegate=t}get shouldRender(){return!0}async render(){await nA(),this.preservingPermanentElements(()=>{this.loadFrameElement()}),this.scrollFrameIntoView(),await nA(),this.focusFirstAutofocusableElement(),await nA(),this.activateScriptElements()}loadFrameElement(){this.delegate.willRenderFrame(this.currentElement,this.newElement),this.renderElement(this.currentElement,this.newElement)}scrollFrameIntoView(){if(this.currentElement.autoscroll||this.newElement.autoscroll){let t=this.currentElement.firstElementChild,n=hXe(this.currentElement.getAttribute("data-autoscroll-block"),"end"),r=mXe(this.currentElement.getAttribute("data-autoscroll-behavior"),"auto");if(t)return t.scrollIntoView({block:n,behavior:r}),!0}return!1}activateScriptElements(){for(let t of this.newScriptElements){let n=Q5(t);t.replaceWith(n)}}get newScriptElements(){return this.currentElement.querySelectorAll("script")}};function hXe(e,t){return e=="end"||e=="start"||e=="center"||e=="nearest"?e:t}function mXe(e,t){return e=="auto"||e=="smooth"?e:t}var vp=class{static get defaultCSS(){return Fre`
      .turbo-progress-bar {
        position: fixed;
        display: block;
        top: 0;
        left: 0;
        height: 3px;
        background: #0076ff;
        z-index: 2147483647;
        transition:
          width ${vp.animationDuration}ms ease-out,
          opacity ${vp.animationDuration/2}ms ${vp.animationDuration/2}ms ease-in;
        transform: translate3d(0, 0, 0);
      }
    `}constructor(){this.hiding=!1,this.value=0,this.visible=!1,this.trickle=()=>{this.setValue(this.value+Math.random()/100)},this.stylesheetElement=this.createStylesheetElement(),this.progressElement=this.createProgressElement(),this.installStylesheetElement(),this.setValue(0)}show(){this.visible||(this.visible=!0,this.installProgressElement(),this.startTrickling())}hide(){this.visible&&!this.hiding&&(this.hiding=!0,this.fadeProgressElement(()=>{this.uninstallProgressElement(),this.stopTrickling(),this.visible=!1,this.hiding=!1}))}setValue(t){this.value=t,this.refresh()}installStylesheetElement(){document.head.insertBefore(this.stylesheetElement,document.head.firstChild)}installProgressElement(){this.progressElement.style.width="0",this.progressElement.style.opacity="1",document.documentElement.insertBefore(this.progressElement,document.body),this.refresh()}fadeProgressElement(t){this.progressElement.style.opacity="0",setTimeout(t,vp.animationDuration*1.5)}uninstallProgressElement(){this.progressElement.parentNode&&document.documentElement.removeChild(this.progressElement)}startTrickling(){this.trickleInterval||(this.trickleInterval=window.setInterval(this.trickle,vp.animationDuration))}stopTrickling(){window.clearInterval(this.trickleInterval),delete this.trickleInterval}refresh(){requestAnimationFrame(()=>{this.progressElement.style.width=`${10+this.value*90}%`})}createStylesheetElement(){let t=document.createElement("style");return t.type="text/css",t.textContent=vp.defaultCSS,this.cspNonce&&(t.nonce=this.cspNonce),t}createProgressElement(){let t=document.createElement("div");return t.className="turbo-progress-bar",t}get cspNonce(){return iA("csp-nonce")}};vp.animationDuration=300;var lD=class extends k6{constructor(){super(...arguments),this.detailsByOuterHTML=this.children.filter(t=>!xXe(t)).map(t=>wXe(t)).reduce((t,n)=>{let{outerHTML:r}=n,i=r in t?t[r]:{type:gXe(n),tracked:vXe(n),elements:[]};return Object.assign(Object.assign({},t),{[r]:Object.assign(Object.assign({},i),{elements:[...i.elements,n]})})},{})}get trackedElementSignature(){return Object.keys(this.detailsByOuterHTML).filter(t=>this.detailsByOuterHTML[t].tracked).join("")}getScriptElementsNotInSnapshot(t){return this.getElementsMatchingTypeNotInSnapshot("script",t)}getStylesheetElementsNotInSnapshot(t){return this.getElementsMatchingTypeNotInSnapshot("stylesheet",t)}getElementsMatchingTypeNotInSnapshot(t,n){return Object.keys(this.detailsByOuterHTML).filter(r=>!(r in n.detailsByOuterHTML)).map(r=>this.detailsByOuterHTML[r]).filter(({type:r})=>r==t).map(({elements:[r]})=>r)}get provisionalElements(){return Object.keys(this.detailsByOuterHTML).reduce((t,n)=>{let{type:r,tracked:i,elements:o}=this.detailsByOuterHTML[n];return r==null&&!i?[...t,...o]:o.length>1?[...t,...o.slice(1)]:t},[])}getMetaValue(t){let n=this.findMetaElementByName(t);return n?n.getAttribute("content"):null}findMetaElementByName(t){return Object.keys(this.detailsByOuterHTML).reduce((n,r)=>{let{elements:[i]}=this.detailsByOuterHTML[r];return bXe(i,t)?i:n},void 0)}};function gXe(e){if(yXe(e))return"script";if(_Xe(e))return"stylesheet"}function vXe(e){return e.getAttribute("data-turbo-track")=="reload"}function yXe(e){return e.localName=="script"}function xXe(e){return e.localName=="noscript"}function _Xe(e){let t=e.localName;return t=="style"||t=="link"&&e.getAttribute("rel")=="stylesheet"}function bXe(e,t){return e.localName=="meta"&&e.getAttribute("name")==t}function wXe(e){return e.hasAttribute("nonce")&&e.setAttribute("nonce",""),e}var hc=class extends k6{static fromHTMLString(t=""){return this.fromDocument(Gre(t))}static fromElement(t){return this.fromDocument(t.ownerDocument)}static fromDocument({head:t,body:n}){return new this(n,new lD(t))}constructor(t,n){super(t),this.headSnapshot=n}clone(){let t=this.element.cloneNode(!0),n=this.element.querySelectorAll("select"),r=t.querySelectorAll("select");for(let[i,o]of n.entries()){let s=r[i];for(let a of s.selectedOptions)a.selected=!1;for(let a of o.selectedOptions)s.options[a.index].selected=!0}for(let i of t.querySelectorAll('input[type="password"]'))i.value="";return new hc(t,this.headSnapshot)}get headElement(){return this.headSnapshot.element}get rootLocation(){var t;let n=(t=this.getSetting("root"))!==null&&t!==void 0?t:"/";return hl(n)}get cacheControlValue(){return this.getSetting("cache-control")}get isPreviewable(){return this.cacheControlValue!="no-preview"}get isCacheable(){return this.cacheControlValue!="no-cache"}get isVisitable(){return this.getSetting("visit-control")!="reload"}getSetting(t){return this.headSnapshot.getMetaValue(`turbo-${t}`)}},b6;(function(e){e.visitStart="visitStart",e.requestStart="requestStart",e.requestEnd="requestEnd",e.visitEnd="visitEnd"})(b6||(b6={}));var gp;(function(e){e.initialized="initialized",e.started="started",e.canceled="canceled",e.failed="failed",e.completed="completed"})(gp||(gp={}));var PXe={action:"advance",historyChanged:!1,visitCachedSnapshot:()=>{},willRender:!0,updateHistory:!0,shouldCacheSnapshot:!0,acceptsStreamResponse:!1},i1;(function(e){e[e.networkFailure=0]="networkFailure",e[e.timeoutFailure=-1]="timeoutFailure",e[e.contentTypeMismatch=-2]="contentTypeMismatch"})(i1||(i1={}));var uD=class{constructor(t,n,r,i={}){this.identifier=P6(),this.timingMetrics={},this.followedRedirect=!1,this.historyChanged=!1,this.scrolled=!1,this.shouldCacheSnapshot=!0,this.acceptsStreamResponse=!1,this.snapshotCached=!1,this.state=gp.initialized,this.delegate=t,this.location=n,this.restorationIdentifier=r||P6();let{action:o,historyChanged:s,referrer:a,snapshot:l,snapshotHTML:u,response:c,visitCachedSnapshot:f,willRender:d,updateHistory:h,shouldCacheSnapshot:m,acceptsStreamResponse:g}=Object.assign(Object.assign({},PXe),i);this.action=o,this.historyChanged=s,this.referrer=a,this.snapshot=l,this.snapshotHTML=u,this.response=c,this.isSamePage=this.delegate.locationWithActionIsSamePage(this.location,this.action),this.visitCachedSnapshot=f,this.willRender=d,this.updateHistory=h,this.scrolled=!d,this.shouldCacheSnapshot=m,this.acceptsStreamResponse=g}get adapter(){return this.delegate.adapter}get view(){return this.delegate.view}get history(){return this.delegate.history}get restorationData(){return this.history.getRestorationDataForIdentifier(this.restorationIdentifier)}get silent(){return this.isSamePage}start(){this.state==gp.initialized&&(this.recordTimingMetric(b6.visitStart),this.state=gp.started,this.adapter.visitStarted(this),this.delegate.visitStarted(this))}cancel(){this.state==gp.started&&(this.request&&this.request.cancel(),this.cancelRender(),this.state=gp.canceled)}complete(){this.state==gp.started&&(this.recordTimingMetric(b6.visitEnd),this.state=gp.completed,this.followRedirect(),this.followedRedirect||(this.adapter.visitCompleted(this),this.delegate.visitCompleted(this)))}fail(){this.state==gp.started&&(this.state=gp.failed,this.adapter.visitFailed(this))}changeHistory(){var t;if(!this.historyChanged&&this.updateHistory){let n=this.location.href===((t=this.referrer)===null||t===void 0?void 0:t.href)?"replace":this.action,r=Ire(n);this.history.update(r,this.location,this.restorationIdentifier),this.historyChanged=!0}}issueRequest(){this.hasPreloadedResponse()?this.simulateRequest():this.shouldIssueRequest()&&!this.request&&(this.request=new e_(this,Iu.get,this.location),this.request.perform())}simulateRequest(){this.response&&(this.startRequest(),this.recordResponse(),this.finishRequest())}startRequest(){this.recordTimingMetric(b6.requestStart),this.adapter.visitRequestStarted(this)}recordResponse(t=this.response){if(this.response=t,t){let{statusCode:n}=t;Ore(n)?this.adapter.visitRequestCompleted(this):this.adapter.visitRequestFailedWithStatusCode(this,n)}}finishRequest(){this.recordTimingMetric(b6.requestEnd),this.adapter.visitRequestFinished(this)}loadResponse(){if(this.response){let{statusCode:t,responseHTML:n}=this.response;this.render(async()=>{this.shouldCacheSnapshot&&this.cacheSnapshot(),this.view.renderPromise&&await this.view.renderPromise,Ore(t)&&n!=null?(await this.view.renderPage(hc.fromHTMLString(n),!1,this.willRender,this),this.performScroll(),this.adapter.visitRendered(this),this.complete()):(await this.view.renderError(hc.fromHTMLString(n),this),this.adapter.visitRendered(this),this.fail())})}}getCachedSnapshot(){let t=this.view.getCachedSnapshotForLocation(this.location)||this.getPreloadedSnapshot();if(t&&(!$v(this.location)||t.hasAnchor($v(this.location)))&&(this.action=="restore"||t.isPreviewable))return t}getPreloadedSnapshot(){if(this.snapshotHTML)return hc.fromHTMLString(this.snapshotHTML)}hasCachedSnapshot(){return this.getCachedSnapshot()!=null}loadCachedSnapshot(){let t=this.getCachedSnapshot();if(t){let n=this.shouldIssueRequest();this.render(async()=>{this.cacheSnapshot(),this.isSamePage?this.adapter.visitRendered(this):(this.view.renderPromise&&await this.view.renderPromise,await this.view.renderPage(t,n,this.willRender,this),this.performScroll(),this.adapter.visitRendered(this),n||this.complete())})}}followRedirect(){var t;this.redirectedToLocation&&!this.followedRedirect&&((t=this.response)===null||t===void 0?void 0:t.redirected)&&(this.adapter.visitProposedToLocation(this.redirectedToLocation,{action:"replace",response:this.response,shouldCacheSnapshot:!1,willRender:!1}),this.followedRedirect=!0)}goToSamePageAnchor(){this.isSamePage&&this.render(async()=>{this.cacheSnapshot(),this.performScroll(),this.changeHistory(),this.adapter.visitRendered(this)})}prepareRequest(t){this.acceptsStreamResponse&&t.acceptResponseType(Yh.contentType)}requestStarted(){this.startRequest()}requestPreventedHandlingResponse(t,n){}async requestSucceededWithResponse(t,n){let r=await n.responseHTML,{redirected:i,statusCode:o}=n;r==null?this.recordResponse({statusCode:i1.contentTypeMismatch,redirected:i}):(this.redirectedToLocation=n.redirected?n.location:void 0,this.recordResponse({statusCode:o,responseHTML:r,redirected:i}))}async requestFailedWithResponse(t,n){let r=await n.responseHTML,{redirected:i,statusCode:o}=n;r==null?this.recordResponse({statusCode:i1.contentTypeMismatch,redirected:i}):this.recordResponse({statusCode:o,responseHTML:r,redirected:i})}requestErrored(t,n){this.recordResponse({statusCode:i1.networkFailure,redirected:!1})}requestFinished(){this.finishRequest()}performScroll(){!this.scrolled&&!this.view.forceReloaded&&(this.action=="restore"?this.scrollToRestoredPosition()||this.scrollToAnchor()||this.view.scrollToTop():this.scrollToAnchor()||this.view.scrollToTop(),this.isSamePage&&this.delegate.visitScrolledToSamePageLocation(this.view.lastRenderedLocation,this.location),this.scrolled=!0)}scrollToRestoredPosition(){let{scrollPosition:t}=this.restorationData;if(t)return this.view.scrollToPosition(t),!0}scrollToAnchor(){let t=$v(this.location);if(t!=null)return this.view.scrollToAnchor(t),!0}recordTimingMetric(t){this.timingMetrics[t]=new Date().getTime()}getTimingMetrics(){return Object.assign({},this.timingMetrics)}getHistoryMethodForAction(t){switch(t){case"replace":return history.replaceState;case"advance":case"restore":return history.pushState}}hasPreloadedResponse(){return typeof this.response=="object"}shouldIssueRequest(){return this.isSamePage?!1:this.action=="restore"?!this.hasCachedSnapshot():this.willRender}cacheSnapshot(){this.snapshotCached||(this.view.cacheSnapshot(this.snapshot).then(t=>t&&this.visitCachedSnapshot(t)),this.snapshotCached=!0)}async render(t){this.cancelRender(),await new Promise(n=>{this.frame=requestAnimationFrame(()=>n())}),await t(),delete this.frame}cancelRender(){this.frame&&(cancelAnimationFrame(this.frame),delete this.frame)}};function Ore(e){return e>=200&&e<300}var cD=class{constructor(t){this.progressBar=new vp,this.showProgressBar=()=>{this.progressBar.show()},this.session=t}visitProposedToLocation(t,n){this.navigator.startVisit(t,n?.restorationIdentifier||P6(),n)}visitStarted(t){this.location=t.location,t.loadCachedSnapshot(),t.issueRequest(),t.goToSamePageAnchor()}visitRequestStarted(t){this.progressBar.setValue(0),t.hasCachedSnapshot()||t.action!="restore"?this.showVisitProgressBarAfterDelay():this.showProgressBar()}visitRequestCompleted(t){t.loadResponse()}visitRequestFailedWithStatusCode(t,n){switch(n){case i1.networkFailure:case i1.timeoutFailure:case i1.contentTypeMismatch:return this.reload({reason:"request_failed",context:{statusCode:n}});default:return t.loadResponse()}}visitRequestFinished(t){this.progressBar.setValue(1),this.hideVisitProgressBar()}visitCompleted(t){}pageInvalidated(t){this.reload(t)}visitFailed(t){}visitRendered(t){}formSubmissionStarted(t){this.progressBar.setValue(0),this.showFormProgressBarAfterDelay()}formSubmissionFinished(t){this.progressBar.setValue(1),this.hideFormProgressBar()}showVisitProgressBarAfterDelay(){this.visitProgressBarTimeout=window.setTimeout(this.showProgressBar,this.session.progressBarDelay)}hideVisitProgressBar(){this.progressBar.hide(),this.visitProgressBarTimeout!=null&&(window.clearTimeout(this.visitProgressBarTimeout),delete this.visitProgressBarTimeout)}showFormProgressBarAfterDelay(){this.formProgressBarTimeout==null&&(this.formProgressBarTimeout=window.setTimeout(this.showProgressBar,this.session.progressBarDelay))}hideFormProgressBar(){this.progressBar.hide(),this.formProgressBarTimeout!=null&&(window.clearTimeout(this.formProgressBarTimeout),delete this.formProgressBarTimeout)}reload(t){var n;za("turbo:reload",{detail:t}),window.location.href=((n=this.location)===null||n===void 0?void 0:n.toString())||window.location.href}get navigator(){return this.session.navigator}},dD=class{constructor(){this.selector="[data-turbo-temporary]",this.deprecatedSelector="[data-turbo-cache=false]",this.started=!1,this.removeTemporaryElements=t=>{for(let n of this.temporaryElements)n.remove()}}start(){this.started||(this.started=!0,addEventListener("turbo:before-cache",this.removeTemporaryElements,!1))}stop(){this.started&&(this.started=!1,removeEventListener("turbo:before-cache",this.removeTemporaryElements,!1))}get temporaryElements(){return[...document.querySelectorAll(this.selector),...this.temporaryElementsWithDeprecation]}get temporaryElementsWithDeprecation(){let t=document.querySelectorAll(this.deprecatedSelector);return t.length&&console.warn(`The ${this.deprecatedSelector} selector is deprecated and will be removed in a future version. Use ${this.selector} instead.`),[...t]}},pD=class{constructor(t,n){this.session=t,this.element=n,this.linkInterceptor=new aA(this,n),this.formSubmitObserver=new t_(this,n)}start(){this.linkInterceptor.start(),this.formSubmitObserver.start()}stop(){this.linkInterceptor.stop(),this.formSubmitObserver.stop()}shouldInterceptLinkClick(t,n,r){return this.shouldRedirect(t)}linkClickIntercepted(t,n,r){let i=this.findFrameElement(t);i&&i.delegate.linkClickIntercepted(t,n,r)}willSubmitForm(t,n){return t.closest("turbo-frame")==null&&this.shouldSubmit(t,n)&&this.shouldRedirect(t,n)}formSubmitted(t,n){let r=this.findFrameElement(t,n);r&&r.delegate.formSubmitted(t,n)}shouldSubmit(t,n){var r;let i=SD(t,n),o=this.element.ownerDocument.querySelector('meta[name="turbo-root"]'),s=hl((r=o?.content)!==null&&r!==void 0?r:"/");return this.shouldRedirect(t,n)&&w6(i,s)}shouldRedirect(t,n){if(t instanceof HTMLFormElement?this.session.submissionIsNavigatable(t,n):this.session.elementIsNavigatable(t)){let i=this.findFrameElement(t,n);return i?i!=t.closest("turbo-frame"):!1}else return!1}findFrameElement(t,n){let r=n?.getAttribute("data-turbo-frame")||t.getAttribute("data-turbo-frame");if(r&&r!="_top"){let i=this.element.querySelector(`#${r}:not([disabled])`);if(i instanceof yp)return i}}},fD=class{constructor(t){this.restorationIdentifier=P6(),this.restorationData={},this.started=!1,this.pageLoaded=!1,this.onPopState=n=>{if(this.shouldHandlePopState()){let{turbo:r}=n.state||{};if(r){this.location=new URL(window.location.href);let{restorationIdentifier:i}=r;this.restorationIdentifier=i,this.delegate.historyPoppedToLocationWithRestorationIdentifier(this.location,i)}}},this.onPageLoad=async n=>{await YWe(),this.pageLoaded=!0},this.delegate=t}start(){this.started||(addEventListener("popstate",this.onPopState,!1),addEventListener("load",this.onPageLoad,!1),this.started=!0,this.replace(new URL(window.location.href)))}stop(){this.started&&(removeEventListener("popstate",this.onPopState,!1),removeEventListener("load",this.onPageLoad,!1),this.started=!1)}push(t,n){this.update(history.pushState,t,n)}replace(t,n){this.update(history.replaceState,t,n)}update(t,n,r=P6()){let i={turbo:{restorationIdentifier:r}};t.call(history,i,"",n.href),this.location=n,this.restorationIdentifier=r}getRestorationDataForIdentifier(t){return this.restorationData[t]||{}}updateRestorationData(t){let{restorationIdentifier:n}=this,r=this.restorationData[n];this.restorationData[n]=Object.assign(Object.assign({},r),t)}assumeControlOfScrollRestoration(){var t;this.previousScrollRestoration||(this.previousScrollRestoration=(t=history.scrollRestoration)!==null&&t!==void 0?t:"auto",history.scrollRestoration="manual")}relinquishControlOfScrollRestoration(){this.previousScrollRestoration&&(history.scrollRestoration=this.previousScrollRestoration,delete this.previousScrollRestoration)}shouldHandlePopState(){return this.pageIsLoaded()}pageIsLoaded(){return this.pageLoaded||document.readyState=="complete"}},hD=class{constructor(t){this.delegate=t}proposeVisit(t,n={}){this.delegate.allowsVisitingLocationWithAction(t,n.action)&&(w6(t,this.view.snapshot.rootLocation)?this.delegate.visitProposedToLocation(t,n):window.location.href=t.toString())}startVisit(t,n,r={}){this.stop(),this.currentVisit=new uD(this,hl(t),n,Object.assign({referrer:this.location},r)),this.currentVisit.start()}submitForm(t,n){this.stop(),this.formSubmission=new Kv(this,t,n,!0),this.formSubmission.start()}stop(){this.formSubmission&&(this.formSubmission.stop(),delete this.formSubmission),this.currentVisit&&(this.currentVisit.cancel(),delete this.currentVisit)}get adapter(){return this.delegate.adapter}get view(){return this.delegate.view}get history(){return this.delegate.history}formSubmissionStarted(t){typeof this.adapter.formSubmissionStarted=="function"&&this.adapter.formSubmissionStarted(t)}async formSubmissionSucceededWithResponse(t,n){if(t==this.formSubmission){let r=await n.responseHTML;if(r){let i=t.isSafe;i||this.view.clearSnapshotCache();let{statusCode:o,redirected:s}=n,l={action:this.getActionForFormSubmission(t),shouldCacheSnapshot:i,response:{statusCode:o,responseHTML:r,redirected:s}};this.proposeVisit(n.location,l)}}}async formSubmissionFailedWithResponse(t,n){let r=await n.responseHTML;if(r){let i=hc.fromHTMLString(r);n.serverError?await this.view.renderError(i,this.currentVisit):await this.view.renderPage(i,!1,!0,this.currentVisit),this.view.scrollToTop(),this.view.clearSnapshotCache()}}formSubmissionErrored(t,n){console.error(n)}formSubmissionFinished(t){typeof this.adapter.formSubmissionFinished=="function"&&this.adapter.formSubmissionFinished(t)}visitStarted(t){this.delegate.visitStarted(t)}visitCompleted(t){this.delegate.visitCompleted(t)}locationWithActionIsSamePage(t,n){let r=$v(t),i=$v(this.view.lastRenderedLocation),o=n==="restore"&&typeof r>"u";return n!=="replace"&&rD(t)===rD(this.view.lastRenderedLocation)&&(o||r!=null&&r!==i)}visitScrolledToSamePageLocation(t,n){this.delegate.visitScrolledToSamePageLocation(t,n)}get location(){return this.history.location}get restorationIdentifier(){return this.history.restorationIdentifier}getActionForFormSubmission({submitter:t,formElement:n}){return pA(t,n)||"advance"}},Kh;(function(e){e[e.initial=0]="initial",e[e.loading=1]="loading",e[e.interactive=2]="interactive",e[e.complete=3]="complete"})(Kh||(Kh={}));var mD=class{constructor(t){this.stage=Kh.initial,this.started=!1,this.interpretReadyState=()=>{let{readyState:n}=this;n=="interactive"?this.pageIsInteractive():n=="complete"&&this.pageIsComplete()},this.pageWillUnload=()=>{this.delegate.pageWillUnload()},this.delegate=t}start(){this.started||(this.stage==Kh.initial&&(this.stage=Kh.loading),document.addEventListener("readystatechange",this.interpretReadyState,!1),addEventListener("pagehide",this.pageWillUnload,!1),this.started=!0)}stop(){this.started&&(document.removeEventListener("readystatechange",this.interpretReadyState,!1),removeEventListener("pagehide",this.pageWillUnload,!1),this.started=!1)}pageIsInteractive(){this.stage==Kh.loading&&(this.stage=Kh.interactive,this.delegate.pageBecameInteractive())}pageIsComplete(){this.pageIsInteractive(),this.stage==Kh.interactive&&(this.stage=Kh.complete,this.delegate.pageLoaded())}get readyState(){return document.readyState}},gD=class{constructor(t){this.started=!1,this.onScroll=()=>{this.updatePosition({x:window.pageXOffset,y:window.pageYOffset})},this.delegate=t}start(){this.started||(addEventListener("scroll",this.onScroll,!1),this.onScroll(),this.started=!0)}stop(){this.started&&(removeEventListener("scroll",this.onScroll,!1),this.started=!1)}updatePosition(t){this.delegate.scrollPositionChanged(t)}},vD=class{render({fragment:t}){cA.preservingPermanentElements(this,kXe(t),()=>document.documentElement.appendChild(t))}enteringBardo(t,n){n.replaceWith(t.cloneNode(!0))}leavingBardo(){}};function kXe(e){let t=Dre(document.documentElement),n={};for(let r of t){let{id:i}=r;for(let o of e.querySelectorAll("turbo-stream")){let s=Tre(o.templateElement.content,i);s&&(n[i]=[r,s])}}return n}var yD=class{constructor(t){this.sources=new Set,this.started=!1,this.inspectFetchResponse=n=>{let r=AXe(n);r&&CXe(r)&&(n.preventDefault(),this.receiveMessageResponse(r))},this.receiveMessageEvent=n=>{this.started&&typeof n.data=="string"&&this.receiveMessageHTML(n.data)},this.delegate=t}start(){this.started||(this.started=!0,addEventListener("turbo:before-fetch-response",this.inspectFetchResponse,!1))}stop(){this.started&&(this.started=!1,removeEventListener("turbo:before-fetch-response",this.inspectFetchResponse,!1))}connectStreamSource(t){this.streamSourceIsConnected(t)||(this.sources.add(t),t.addEventListener("message",this.receiveMessageEvent,!1))}disconnectStreamSource(t){this.streamSourceIsConnected(t)&&(this.sources.delete(t),t.removeEventListener("message",this.receiveMessageEvent,!1))}streamSourceIsConnected(t){return this.sources.has(t)}async receiveMessageResponse(t){let n=await t.responseHTML;n&&this.receiveMessageHTML(n)}receiveMessageHTML(t){this.delegate.receivedMessageFromStream(Yh.wrap(t))}};function AXe(e){var t;let n=(t=e.detail)===null||t===void 0?void 0:t.fetchResponse;if(n instanceof U5)return n}function CXe(e){var t;return((t=e.contentType)!==null&&t!==void 0?t:"").startsWith(Yh.contentType)}var dA=class extends n_{static renderElement(t,n){let{documentElement:r,body:i}=document;r.replaceChild(n,i)}async render(){this.replaceHeadAndBody(),this.activateScriptElements()}replaceHeadAndBody(){let{documentElement:t,head:n}=document;t.replaceChild(this.newHead,n),this.renderElement(this.currentElement,this.newElement)}activateScriptElements(){for(let t of this.scriptElements){let n=t.parentNode;if(n){let r=Q5(t);n.replaceChild(r,t)}}}get newHead(){return this.newSnapshot.headSnapshot.element}get scriptElements(){return document.documentElement.querySelectorAll("script")}},i_=class extends n_{static renderElement(t,n){document.body&&n instanceof HTMLBodyElement?document.body.replaceWith(n):document.documentElement.appendChild(n)}get shouldRender(){return this.newSnapshot.isVisitable&&this.trackedElementsAreIdentical}get reloadReason(){if(!this.newSnapshot.isVisitable)return{reason:"turbo_visit_control_is_reload"};if(!this.trackedElementsAreIdentical)return{reason:"tracked_element_mismatch"}}async prepareToRender(){await this.mergeHead()}async render(){this.willRender&&await this.replaceBody()}finishRendering(){super.finishRendering(),this.isPreview||this.focusFirstAutofocusableElement()}get currentHeadSnapshot(){return this.currentSnapshot.headSnapshot}get newHeadSnapshot(){return this.newSnapshot.headSnapshot}get newElement(){return this.newSnapshot.element}async mergeHead(){let t=this.mergeProvisionalElements(),n=this.copyNewHeadStylesheetElements();this.copyNewHeadScriptElements(),await t,await n}async replaceBody(){await this.preservingPermanentElements(async()=>{this.activateNewBody(),await this.assignNewBody()})}get trackedElementsAreIdentical(){return this.currentHeadSnapshot.trackedElementSignature==this.newHeadSnapshot.trackedElementSignature}async copyNewHeadStylesheetElements(){let t=[];for(let n of this.newHeadStylesheetElements)t.push(QWe(n)),document.head.appendChild(n);await Promise.all(t)}copyNewHeadScriptElements(){for(let t of this.newHeadScriptElements)document.head.appendChild(Q5(t))}async mergeProvisionalElements(){let t=[...this.newHeadProvisionalElements];for(let n of this.currentHeadProvisionalElements)this.isCurrentElementInElementList(n,t)||document.head.removeChild(n);for(let n of t)document.head.appendChild(n)}isCurrentElementInElementList(t,n){for(let[r,i]of n.entries()){if(t.tagName=="TITLE"){if(i.tagName!="TITLE")continue;if(t.innerHTML==i.innerHTML)return n.splice(r,1),!0}if(i.isEqualNode(t))return n.splice(r,1),!0}return!1}removeCurrentHeadProvisionalElements(){for(let t of this.currentHeadProvisionalElements)document.head.removeChild(t)}copyNewHeadProvisionalElements(){for(let t of this.newHeadProvisionalElements)document.head.appendChild(t)}activateNewBody(){document.adoptNode(this.newElement),this.activateNewBodyScriptElements()}activateNewBodyScriptElements(){for(let t of this.newBodyScriptElements){let n=Q5(t);t.replaceWith(n)}}async assignNewBody(){await this.renderElement(this.currentElement,this.newElement)}get newHeadStylesheetElements(){return this.newHeadSnapshot.getStylesheetElementsNotInSnapshot(this.currentHeadSnapshot)}get newHeadScriptElements(){return this.newHeadSnapshot.getScriptElementsNotInSnapshot(this.currentHeadSnapshot)}get currentHeadProvisionalElements(){return this.currentHeadSnapshot.provisionalElements}get newHeadProvisionalElements(){return this.newHeadSnapshot.provisionalElements}get newBodyScriptElements(){return this.newElement.querySelectorAll("script")}},xD=class{constructor(t){this.keys=[],this.snapshots={},this.size=t}has(t){return tA(t)in this.snapshots}get(t){if(this.has(t)){let n=this.read(t);return this.touch(t),n}}put(t,n){return this.write(t,n),this.touch(t),n}clear(){this.snapshots={}}read(t){return this.snapshots[tA(t)]}write(t,n){this.snapshots[tA(t)]=n}touch(t){let n=tA(t),r=this.keys.indexOf(n);r>-1&&this.keys.splice(r,1),this.keys.unshift(n),this.trim()}trim(){for(let t of this.keys.splice(this.size))delete this.snapshots[t]}},_D=class extends sA{constructor(){super(...arguments),this.snapshotCache=new xD(10),this.lastRenderedLocation=new URL(location.href),this.forceReloaded=!1}renderPage(t,n=!1,r=!0,i){let o=new i_(this.snapshot,t,i_.renderElement,n,r);return o.shouldRender?i?.changeHistory():this.forceReloaded=!0,this.render(o)}renderError(t,n){n?.changeHistory();let r=new dA(this.snapshot,t,dA.renderElement,!1);return this.render(r)}clearSnapshotCache(){this.snapshotCache.clear()}async cacheSnapshot(t=this.snapshot){if(t.isCacheable){this.delegate.viewWillCacheSnapshot();let{lastRenderedLocation:n}=this;await KWe();let r=t.clone();return this.snapshotCache.put(n,r),r}}getCachedSnapshotForLocation(t){return this.snapshotCache.get(t)}get snapshot(){return hc.fromElement(this.element)}},bD=class{constructor(t){this.selector="a[data-turbo-preload]",this.delegate=t}get snapshotCache(){return this.delegate.navigator.view.snapshotCache}start(){if(document.readyState==="loading")return document.addEventListener("DOMContentLoaded",()=>{this.preloadOnLoadLinksForView(document.body)});this.preloadOnLoadLinksForView(document.body)}preloadOnLoadLinksForView(t){for(let n of t.querySelectorAll(this.selector))this.preloadURL(n)}async preloadURL(t){let n=new URL(t.href);if(!this.snapshotCache.has(n))try{let i=await(await fetch(n.toString(),{headers:{"VND.PREFETCH":"true",Accept:"text/html"}})).text(),o=hc.fromHTMLString(i);this.snapshotCache.put(n,o)}catch{}}},wD=class{constructor(){this.navigator=new hD(this),this.history=new fD(this),this.preloader=new bD(this),this.view=new _D(this,document.documentElement),this.adapter=new cD(this),this.pageObserver=new mD(this),this.cacheObserver=new dD,this.linkClickObserver=new lA(this,window),this.formSubmitObserver=new t_(this,document),this.scrollObserver=new gD(this),this.streamObserver=new yD(this),this.formLinkClickObserver=new uA(this,document.documentElement),this.frameRedirector=new pD(this,document.documentElement),this.streamMessageRenderer=new vD,this.drive=!0,this.enabled=!0,this.progressBarDelay=500,this.started=!1,this.formMode="on"}start(){this.started||(this.pageObserver.start(),this.cacheObserver.start(),this.formLinkClickObserver.start(),this.linkClickObserver.start(),this.formSubmitObserver.start(),this.scrollObserver.start(),this.streamObserver.start(),this.frameRedirector.start(),this.history.start(),this.preloader.start(),this.started=!0,this.enabled=!0)}disable(){this.enabled=!1}stop(){this.started&&(this.pageObserver.stop(),this.cacheObserver.stop(),this.formLinkClickObserver.stop(),this.linkClickObserver.stop(),this.formSubmitObserver.stop(),this.scrollObserver.stop(),this.streamObserver.stop(),this.frameRedirector.stop(),this.history.stop(),this.started=!1)}registerAdapter(t){this.adapter=t}visit(t,n={}){let r=n.frame?document.getElementById(n.frame):null;r instanceof yp?(r.src=t.toString(),r.loaded):this.navigator.proposeVisit(hl(t),n)}connectStreamSource(t){this.streamObserver.connectStreamSource(t)}disconnectStreamSource(t){this.streamObserver.disconnectStreamSource(t)}renderStreamMessage(t){this.streamMessageRenderer.render(Yh.wrap(t))}clearCache(){this.view.clearSnapshotCache()}setProgressBarDelay(t){this.progressBarDelay=t}setFormMode(t){this.formMode=t}get location(){return this.history.location}get restorationIdentifier(){return this.history.restorationIdentifier}historyPoppedToLocationWithRestorationIdentifier(t,n){this.enabled?this.navigator.startVisit(t,n,{action:"restore",historyChanged:!0}):this.adapter.pageInvalidated({reason:"turbo_disabled"})}scrollPositionChanged(t){this.history.updateRestorationData({scrollPosition:t})}willSubmitFormLinkToLocation(t,n){return this.elementIsNavigatable(t)&&w6(n,this.snapshot.rootLocation)}submittedFormLinkToLocation(){}willFollowLinkToLocation(t,n,r){return this.elementIsNavigatable(t)&&w6(n,this.snapshot.rootLocation)&&this.applicationAllowsFollowingLinkToLocation(t,n,r)}followedLinkToLocation(t,n){let r=this.getActionForLink(t),i=t.hasAttribute("data-turbo-stream");this.visit(n.href,{action:r,acceptsStreamResponse:i})}allowsVisitingLocationWithAction(t,n){return this.locationWithActionIsSamePage(t,n)||this.applicationAllowsVisitingLocation(t)}visitProposedToLocation(t,n){Ere(t),this.adapter.visitProposedToLocation(t,n)}visitStarted(t){t.acceptsStreamResponse||iD(document.documentElement),Ere(t.location),t.silent||this.notifyApplicationAfterVisitingLocation(t.location,t.action)}visitCompleted(t){oD(document.documentElement),this.notifyApplicationAfterPageLoad(t.getTimingMetrics())}locationWithActionIsSamePage(t,n){return this.navigator.locationWithActionIsSamePage(t,n)}visitScrolledToSamePageLocation(t,n){this.notifyApplicationAfterVisitingSamePageLocation(t,n)}willSubmitForm(t,n){let r=SD(t,n);return this.submissionIsNavigatable(t,n)&&w6(hl(r),this.snapshot.rootLocation)}formSubmitted(t,n){this.navigator.submitForm(t,n)}pageBecameInteractive(){this.view.lastRenderedLocation=this.location,this.notifyApplicationAfterPageLoad()}pageLoaded(){this.history.assumeControlOfScrollRestoration()}pageWillUnload(){this.history.relinquishControlOfScrollRestoration()}receivedMessageFromStream(t){this.renderStreamMessage(t)}viewWillCacheSnapshot(){var t;!((t=this.navigator.currentVisit)===null||t===void 0)&&t.silent||this.notifyApplicationBeforeCachingSnapshot()}allowsImmediateRender({element:t},n){let r=this.notifyApplicationBeforeRender(t,n),{defaultPrevented:i,detail:{render:o}}=r;return this.view.renderer&&o&&(this.view.renderer.renderElement=o),!i}viewRenderedSnapshot(t,n){this.view.lastRenderedLocation=this.history.location,this.notifyApplicationAfterRender()}preloadOnLoadLinksForView(t){this.preloader.preloadOnLoadLinksForView(t)}viewInvalidated(t){this.adapter.pageInvalidated(t)}frameLoaded(t){this.notifyApplicationAfterFrameLoad(t)}frameRendered(t,n){this.notifyApplicationAfterFrameRender(t,n)}applicationAllowsFollowingLinkToLocation(t,n,r){return!this.notifyApplicationAfterClickingLinkToLocation(t,n,r).defaultPrevented}applicationAllowsVisitingLocation(t){return!this.notifyApplicationBeforeVisitingLocation(t).defaultPrevented}notifyApplicationAfterClickingLinkToLocation(t,n,r){return za("turbo:click",{target:t,detail:{url:n.href,originalEvent:r},cancelable:!0})}notifyApplicationBeforeVisitingLocation(t){return za("turbo:before-visit",{detail:{url:t.href},cancelable:!0})}notifyApplicationAfterVisitingLocation(t,n){return za("turbo:visit",{detail:{url:t.href,action:n}})}notifyApplicationBeforeCachingSnapshot(){return za("turbo:before-cache")}notifyApplicationBeforeRender(t,n){return za("turbo:before-render",{detail:Object.assign({newBody:t},n),cancelable:!0})}notifyApplicationAfterRender(){return za("turbo:render")}notifyApplicationAfterPageLoad(t={}){return za("turbo:load",{detail:{url:this.location.href,timing:t}})}notifyApplicationAfterVisitingSamePageLocation(t,n){dispatchEvent(new HashChangeEvent("hashchange",{oldURL:t.toString(),newURL:n.toString()}))}notifyApplicationAfterFrameLoad(t){return za("turbo:frame-load",{target:t})}notifyApplicationAfterFrameRender(t,n){return za("turbo:frame-render",{detail:{fetchResponse:t},target:n,cancelable:!0})}submissionIsNavigatable(t,n){if(this.formMode=="off")return!1;{let r=n?this.elementIsNavigatable(n):!0;return this.formMode=="optin"?r&&t.closest('[data-turbo="true"]')!=null:r&&this.elementIsNavigatable(t)}}elementIsNavigatable(t){let n=oA(t,"[data-turbo]"),r=oA(t,"turbo-frame");return this.drive||r?n?n.getAttribute("data-turbo")!="false":!0:n?n.getAttribute("data-turbo")=="true":!1}getActionForLink(t){return pA(t)||"advance"}get snapshot(){return this.view.snapshot}};function Ere(e){Object.defineProperties(e,SXe)}var SXe={absoluteURL:{get(){return this.toString()}}},PD=class{constructor(t){this.session=t}clear(){this.session.clearCache()}resetCacheControl(){this.setCacheControl("")}exemptPageFromCache(){this.setCacheControl("no-cache")}exemptPageFromPreview(){this.setCacheControl("no-preview")}setCacheControl(t){tXe("turbo-cache-control",t)}},Rre={after(){this.targetElements.forEach(e=>{var t;return(t=e.parentElement)===null||t===void 0?void 0:t.insertBefore(this.templateContent,e.nextSibling)})},append(){this.removeDuplicateTargetChildren(),this.targetElements.forEach(e=>e.append(this.templateContent))},before(){this.targetElements.forEach(e=>{var t;return(t=e.parentElement)===null||t===void 0?void 0:t.insertBefore(this.templateContent,e)})},prepend(){this.removeDuplicateTargetChildren(),this.targetElements.forEach(e=>e.prepend(this.templateContent))},remove(){this.targetElements.forEach(e=>e.remove())},replace(){this.targetElements.forEach(e=>e.replaceWith(this.templateContent))},update(){this.targetElements.forEach(e=>{e.innerHTML="",e.append(this.templateContent)})}},ss=new wD,OXe=new PD(ss),{navigator:EXe}=ss;function Lre(){ss.start()}function MXe(e){ss.registerAdapter(e)}function BXe(e,t){ss.visit(e,t)}function fA(e){ss.connectStreamSource(e)}function hA(e){ss.disconnectStreamSource(e)}function NXe(e){ss.renderStreamMessage(e)}function GXe(){console.warn("Please replace `Turbo.clearCache()` with `Turbo.cache.clear()`. The top-level function is deprecated and will be removed in a future version of Turbo.`"),ss.clearCache()}function FXe(e){ss.setProgressBarDelay(e)}function IXe(e){Kv.confirmMethod=e}function zXe(e){ss.setFormMode(e)}var TXe=Object.freeze({__proto__:null,navigator:EXe,session:ss,cache:OXe,PageRenderer:i_,PageSnapshot:hc,FrameRenderer:r_,start:Lre,registerAdapter:MXe,visit:BXe,connectStreamSource:fA,disconnectStreamSource:hA,renderStreamMessage:NXe,clearCache:GXe,setProgressBarDelay:FXe,setConfirmMethod:IXe,setFormMode:zXe,StreamActions:Rre}),kD=class extends Error{},AD=class{constructor(t){this.fetchResponseLoaded=n=>{},this.currentFetchRequest=null,this.resolveVisitPromise=()=>{},this.connected=!1,this.hasBeenLoaded=!1,this.ignoredAttributes=new Set,this.action=null,this.visitCachedSnapshot=({element:n})=>{let r=n.querySelector("#"+this.element.id);r&&this.previousFrameElement&&r.replaceChildren(...this.previousFrameElement.children),delete this.previousFrameElement},this.element=t,this.view=new aD(this,this.element),this.appearanceObserver=new sD(this,this.element),this.formLinkClickObserver=new uA(this,this.element),this.linkInterceptor=new aA(this,this.element),this.restorationIdentifier=P6(),this.formSubmitObserver=new t_(this,this.element)}connect(){this.connected||(this.connected=!0,this.loadingStyle==r1.lazy?this.appearanceObserver.start():this.loadSourceURL(),this.formLinkClickObserver.start(),this.linkInterceptor.start(),this.formSubmitObserver.start())}disconnect(){this.connected&&(this.connected=!1,this.appearanceObserver.stop(),this.formLinkClickObserver.stop(),this.linkInterceptor.stop(),this.formSubmitObserver.stop())}disabledChanged(){this.loadingStyle==r1.eager&&this.loadSourceURL()}sourceURLChanged(){this.isIgnoringChangesTo("src")||(this.element.isConnected&&(this.complete=!1),(this.loadingStyle==r1.eager||this.hasBeenLoaded)&&this.loadSourceURL())}sourceURLReloaded(){let{src:t}=this.element;return this.ignoringChangesToAttribute("complete",()=>{this.element.removeAttribute("complete")}),this.element.src=null,this.element.src=t,this.element.loaded}completeChanged(){this.isIgnoringChangesTo("complete")||this.loadSourceURL()}loadingStyleChanged(){this.loadingStyle==r1.lazy?this.appearanceObserver.start():(this.appearanceObserver.stop(),this.loadSourceURL())}async loadSourceURL(){this.enabled&&this.isActive&&!this.complete&&this.sourceURL&&(this.element.loaded=this.visit(hl(this.sourceURL)),this.appearanceObserver.stop(),await this.element.loaded,this.hasBeenLoaded=!0)}async loadResponse(t){(t.redirected||t.succeeded&&t.isHTML)&&(this.sourceURL=t.response.url);try{let n=await t.responseHTML;if(n){let r=Gre(n);hc.fromDocument(r).isVisitable?await this.loadFrameResponse(t,r):await this.handleUnvisitableFrameResponse(t)}}finally{this.fetchResponseLoaded=()=>{}}}elementAppearedInViewport(t){this.proposeVisitIfNavigatedWithAction(t,t),this.loadSourceURL()}willSubmitFormLinkToLocation(t){return this.shouldInterceptNavigation(t)}submittedFormLinkToLocation(t,n,r){let i=this.findFrameElement(t);i&&r.setAttribute("data-turbo-frame",i.id)}shouldInterceptLinkClick(t,n,r){return this.shouldInterceptNavigation(t)}linkClickIntercepted(t,n){this.navigateFrame(t,n)}willSubmitForm(t,n){return t.closest("turbo-frame")==this.element&&this.shouldInterceptNavigation(t,n)}formSubmitted(t,n){this.formSubmission&&this.formSubmission.stop(),this.formSubmission=new Kv(this,t,n);let{fetchRequest:r}=this.formSubmission;this.prepareRequest(r),this.formSubmission.start()}prepareRequest(t){var n;t.headers["Turbo-Frame"]=this.id,!((n=this.currentNavigationElement)===null||n===void 0)&&n.hasAttribute("data-turbo-stream")&&t.acceptResponseType(Yh.contentType)}requestStarted(t){iD(this.element)}requestPreventedHandlingResponse(t,n){this.resolveVisitPromise()}async requestSucceededWithResponse(t,n){await this.loadResponse(n),this.resolveVisitPromise()}async requestFailedWithResponse(t,n){await this.loadResponse(n),this.resolveVisitPromise()}requestErrored(t,n){console.error(n),this.resolveVisitPromise()}requestFinished(t){oD(this.element)}formSubmissionStarted({formElement:t}){iD(t,this.findFrameElement(t))}formSubmissionSucceededWithResponse(t,n){let r=this.findFrameElement(t.formElement,t.submitter);r.delegate.proposeVisitIfNavigatedWithAction(r,t.formElement,t.submitter),r.delegate.loadResponse(n),t.isSafe||ss.clearCache()}formSubmissionFailedWithResponse(t,n){this.element.delegate.loadResponse(n),ss.clearCache()}formSubmissionErrored(t,n){console.error(n)}formSubmissionFinished({formElement:t}){oD(t,this.findFrameElement(t))}allowsImmediateRender({element:t},n){let r=za("turbo:before-frame-render",{target:this.element,detail:Object.assign({newFrame:t},n),cancelable:!0}),{defaultPrevented:i,detail:{render:o}}=r;return this.view.renderer&&o&&(this.view.renderer.renderElement=o),!i}viewRenderedSnapshot(t,n){}preloadOnLoadLinksForView(t){ss.preloadOnLoadLinksForView(t)}viewInvalidated(){}willRenderFrame(t,n){this.previousFrameElement=t.cloneNode(!0)}async loadFrameResponse(t,n){let r=await this.extractForeignFrameElement(n.body);if(r){let i=new k6(r),o=new r_(this,this.view.snapshot,i,r_.renderElement,!1,!1);this.view.renderPromise&&await this.view.renderPromise,this.changeHistory(),await this.view.render(o),this.complete=!0,ss.frameRendered(t,this.element),ss.frameLoaded(this.element),this.fetchResponseLoaded(t)}else this.willHandleFrameMissingFromResponse(t)&&this.handleFrameMissingFromResponse(t)}async visit(t){var n;let r=new e_(this,Iu.get,t,new URLSearchParams,this.element);return(n=this.currentFetchRequest)===null||n===void 0||n.cancel(),this.currentFetchRequest=r,new Promise(i=>{this.resolveVisitPromise=()=>{this.resolveVisitPromise=()=>{},this.currentFetchRequest=null,i()},r.perform()})}navigateFrame(t,n,r){let i=this.findFrameElement(t,r);i.delegate.proposeVisitIfNavigatedWithAction(i,t,r),this.withCurrentNavigationElement(t,()=>{i.src=n})}proposeVisitIfNavigatedWithAction(t,n,r){if(this.action=pA(r,n,t),this.action){let i=hc.fromElement(t).clone(),{visitCachedSnapshot:o}=t.delegate;t.delegate.fetchResponseLoaded=s=>{if(t.src){let{statusCode:a,redirected:l}=s,u=t.ownerDocument.documentElement.outerHTML,f={response:{statusCode:a,redirected:l,responseHTML:u},visitCachedSnapshot:o,willRender:!1,updateHistory:!1,restorationIdentifier:this.restorationIdentifier,snapshot:i};this.action&&(f.action=this.action),ss.visit(t.src,f)}}}}changeHistory(){if(this.action){let t=Ire(this.action);ss.history.update(t,hl(this.element.src||""),this.restorationIdentifier)}}async handleUnvisitableFrameResponse(t){console.warn(`The response (${t.statusCode}) from <turbo-frame id="${this.element.id}"> is performing a full page visit due to turbo-visit-control.`),await this.visitResponse(t.response)}willHandleFrameMissingFromResponse(t){this.element.setAttribute("complete","");let n=t.response,r=async(o,s={})=>{o instanceof Response?this.visitResponse(o):ss.visit(o,s)};return!za("turbo:frame-missing",{target:this.element,detail:{response:n,visit:r},cancelable:!0}).defaultPrevented}handleFrameMissingFromResponse(t){this.view.missing(),this.throwFrameMissingError(t)}throwFrameMissingError(t){let n=`The response (${t.statusCode}) did not contain the expected <turbo-frame id="${this.element.id}"> and will be ignored. To perform a full page visit instead, set turbo-visit-control to reload.`;throw new kD(n)}async visitResponse(t){let n=new U5(t),r=await n.responseHTML,{location:i,redirected:o,statusCode:s}=n;return ss.visit(i,{response:{redirected:o,statusCode:s,responseHTML:r}})}findFrameElement(t,n){var r;let i=rA("data-turbo-frame",n,t)||this.element.getAttribute("target");return(r=Mre(i))!==null&&r!==void 0?r:this.element}async extractForeignFrameElement(t){let n,r=CSS.escape(this.id);try{if(n=Bre(t.querySelector(`turbo-frame#${r}`),this.sourceURL),n)return n;if(n=Bre(t.querySelector(`turbo-frame[src][recurse~=${r}]`),this.sourceURL),n)return await n.loaded,await this.extractForeignFrameElement(n)}catch(i){return console.error(i),new yp}return null}formActionIsVisitable(t,n){let r=SD(t,n);return w6(hl(r),this.rootLocation)}shouldInterceptNavigation(t,n){let r=rA("data-turbo-frame",n,t)||this.element.getAttribute("target");if(t instanceof HTMLFormElement&&!this.formActionIsVisitable(t,n)||!this.enabled||r=="_top")return!1;if(r){let i=Mre(r);if(i)return!i.disabled}return!(!ss.elementIsNavigatable(t)||n&&!ss.elementIsNavigatable(n))}get id(){return this.element.id}get enabled(){return!this.element.disabled}get sourceURL(){if(this.element.src)return this.element.src}set sourceURL(t){this.ignoringChangesToAttribute("src",()=>{this.element.src=t??null})}get loadingStyle(){return this.element.loading}get isLoading(){return this.formSubmission!==void 0||this.resolveVisitPromise()!==void 0}get complete(){return this.element.hasAttribute("complete")}set complete(t){this.ignoringChangesToAttribute("complete",()=>{t?this.element.setAttribute("complete",""):this.element.removeAttribute("complete")})}get isActive(){return this.element.isActive&&this.connected}get rootLocation(){var t;let n=this.element.ownerDocument.querySelector('meta[name="turbo-root"]'),r=(t=n?.content)!==null&&t!==void 0?t:"/";return hl(r)}isIgnoringChangesTo(t){return this.ignoredAttributes.has(t)}ignoringChangesToAttribute(t,n){this.ignoredAttributes.add(t),n(),this.ignoredAttributes.delete(t)}withCurrentNavigationElement(t,n){this.currentNavigationElement=t,n(),delete this.currentNavigationElement}};function Mre(e){if(e!=null){let t=document.getElementById(e);if(t instanceof yp)return t}}function Bre(e,t){if(e){let n=e.getAttribute("src");if(n!=null&&t!=null&&JWe(n,t))throw new Error(`Matching <turbo-frame id="${e.id}"> element has a source URL which references itself`);if(e.ownerDocument!==document&&(e=document.importNode(e,!0)),e instanceof yp)return e.connectedCallback(),e.disconnectedCallback(),e}}var o_=class extends HTMLElement{static async renderElement(t){await t.performAction()}async connectedCallback(){try{await this.render()}catch(t){console.error(t)}finally{this.disconnect()}}async render(){var t;return(t=this.renderPromise)!==null&&t!==void 0?t:this.renderPromise=(async()=>{let n=this.beforeRenderEvent;this.dispatchEvent(n)&&(await nA(),await n.detail.render(this))})()}disconnect(){try{this.remove()}catch{}}removeDuplicateTargetChildren(){this.duplicateChildren.forEach(t=>t.remove())}get duplicateChildren(){var t;let n=this.targetElements.flatMap(i=>[...i.children]).filter(i=>!!i.id),r=[...((t=this.templateContent)===null||t===void 0?void 0:t.children)||[]].filter(i=>!!i.id).map(i=>i.id);return n.filter(i=>r.includes(i.id))}get performAction(){if(this.action){let t=Rre[this.action];if(t)return t;this.raise("unknown action")}this.raise("action attribute is missing")}get targetElements(){if(this.target)return this.targetElementsById;if(this.targets)return this.targetElementsByQuery;this.raise("target or targets attribute is missing")}get templateContent(){return this.templateElement.content.cloneNode(!0)}get templateElement(){if(this.firstElementChild===null){let t=this.ownerDocument.createElement("template");return this.appendChild(t),t}else if(this.firstElementChild instanceof HTMLTemplateElement)return this.firstElementChild;this.raise("first child element must be a <template> element")}get action(){return this.getAttribute("action")}get target(){return this.getAttribute("target")}get targets(){return this.getAttribute("targets")}raise(t){throw new Error(`${this.description}: ${t}`)}get description(){var t,n;return(n=((t=this.outerHTML.match(/<[^>]+>/))!==null&&t!==void 0?t:[])[0])!==null&&n!==void 0?n:"<turbo-stream>"}get beforeRenderEvent(){return new CustomEvent("turbo:before-stream-render",{bubbles:!0,cancelable:!0,detail:{newStream:this,render:o_.renderElement}})}get targetElementsById(){var t;let n=(t=this.ownerDocument)===null||t===void 0?void 0:t.getElementById(this.target);return n!==null?[n]:[]}get targetElementsByQuery(){var t;let n=(t=this.ownerDocument)===null||t===void 0?void 0:t.querySelectorAll(this.targets);return n.length!==0?Array.prototype.slice.call(n):[]}},CD=class extends HTMLElement{constructor(){super(...arguments),this.streamSource=null}connectedCallback(){this.streamSource=this.src.match(/^ws{1,2}:/)?new WebSocket(this.src):new EventSource(this.src),fA(this.streamSource)}disconnectedCallback(){this.streamSource&&hA(this.streamSource)}get src(){return this.getAttribute("src")||""}};yp.delegateConstructor=AD;customElements.get("turbo-frame")===void 0&&customElements.define("turbo-frame",yp);customElements.get("turbo-stream")===void 0&&customElements.define("turbo-stream",o_);customElements.get("turbo-stream-source")===void 0&&customElements.define("turbo-stream-source",CD);(()=>{let e=document.currentScript;if(!!e&&!e.hasAttribute("data-turbo-suppress-warning"))for(e=e.parentElement;e;){if(e==document.body)return console.warn(Fre`
        You are loading Turbo from a <script> element inside the <body> element. This is probably not what you meant to do!

        Load your application’s JavaScript bundle inside the <head> element instead. <script> elements in <body> are evaluated with each page change.

        For more information, see: https://turbo.hotwired.dev/handbook/building#working-with-script-elements

        ——
        Suppress this warning by adding a "data-turbo-suppress-warning" attribute to: %s
      `,e.outerHTML);e=e.parentElement}})();window.Turbo=TXe;Lre();var qre;async function JXe(){return qre||Xre(jXe().then(Xre))}function Xre(e){return qre=e}async function jXe(){let{createConsumer:e}=await Promise.resolve().then(()=>(Wre(),Hre));return e()}async function $re(e,t){let{subscriptions:n}=await JXe();return n.create(e,t)}function d_(e){return!e||typeof e!="object"||e instanceof Date||e instanceof RegExp?e:Array.isArray(e)?e.map(d_):Object.keys(e).reduce(function(t,n){var r=n[0].toLowerCase()+n.slice(1).replace(/([A-Z]+)/g,function(i,o){return"_"+o.toLowerCase()});return t[r]=d_(e[n]),t},{})}var zD=class extends HTMLElement{async connectedCallback(){fA(this),this.subscription=await $re(this.channel,{received:this.dispatchMessageEvent.bind(this),connected:this.subscriptionConnected.bind(this),disconnected:this.subscriptionDisconnected.bind(this)})}disconnectedCallback(){hA(this),this.subscription&&this.subscription.unsubscribe()}dispatchMessageEvent(t){let n=new MessageEvent("message",{data:t});return this.dispatchEvent(n)}subscriptionConnected(){this.setAttribute("connected","")}subscriptionDisconnected(){this.removeAttribute("connected")}get channel(){let t=this.getAttribute("channel"),n=this.getAttribute("signed-stream-name");return{channel:t,signed_stream_name:n,...d_({...this.dataset})}}};customElements.get("turbo-cable-stream-source")===void 0&&customElements.define("turbo-cable-stream-source",zD);function Kre(e){if(e.target instanceof HTMLFormElement){let{target:t,detail:{fetchOptions:n}}=e;t.addEventListener("turbo:submit-start",({detail:{formSubmission:{submitter:r}}})=>{let i=qXe(n.body)?n.body:new URLSearchParams,o=WXe(r,i,t);/get/i.test(o)||(/post/i.test(o)?i.delete("_method"):i.set("_method",o),n.method="post")},{once:!0})}}function WXe(e,t,n){let r=XXe(e),i=t.get("_method"),o=n.getAttribute("method")||"get";return typeof r=="string"?r:typeof i=="string"?i:o}function XXe(e){return(e instanceof HTMLButtonElement||e instanceof HTMLInputElement)&&e.hasAttribute("formmethod")?e.formMethod:null}function qXe(e){return e instanceof FormData||e instanceof URLSearchParams}addEventListener("turbo:before-fetch-request",Kre);var TD=class{constructor(t,n,r){this.eventTarget=t,this.eventName=n,this.eventOptions=r,this.unorderedBindings=new Set}connect(){this.eventTarget.addEventListener(this.eventName,this,this.eventOptions)}disconnect(){this.eventTarget.removeEventListener(this.eventName,this,this.eventOptions)}bindingConnected(t){this.unorderedBindings.add(t)}bindingDisconnected(t){this.unorderedBindings.delete(t)}handleEvent(t){let n=$Xe(t);for(let r of this.bindings){if(n.immediatePropagationStopped)break;r.handleEvent(n)}}hasBindings(){return this.unorderedBindings.size>0}get bindings(){return Array.from(this.unorderedBindings).sort((t,n)=>{let r=t.index,i=n.index;return r<i?-1:r>i?1:0})}};function $Xe(e){if("immediatePropagationStopped"in e)return e;{let{stopImmediatePropagation:t}=e;return Object.assign(e,{immediatePropagationStopped:!1,stopImmediatePropagation(){this.immediatePropagationStopped=!0,t.call(this)}})}}var DD=class{constructor(t){this.application=t,this.eventListenerMaps=new Map,this.started=!1}start(){this.started||(this.started=!0,this.eventListeners.forEach(t=>t.connect()))}stop(){this.started&&(this.started=!1,this.eventListeners.forEach(t=>t.disconnect()))}get eventListeners(){return Array.from(this.eventListenerMaps.values()).reduce((t,n)=>t.concat(Array.from(n.values())),[])}bindingConnected(t){this.fetchEventListenerForBinding(t).bindingConnected(t)}bindingDisconnected(t,n=!1){this.fetchEventListenerForBinding(t).bindingDisconnected(t),n&&this.clearEventListenersForBinding(t)}handleError(t,n,r={}){this.application.handleError(t,`Error ${n}`,r)}clearEventListenersForBinding(t){let n=this.fetchEventListenerForBinding(t);n.hasBindings()||(n.disconnect(),this.removeMappedEventListenerFor(t))}removeMappedEventListenerFor(t){let{eventTarget:n,eventName:r,eventOptions:i}=t,o=this.fetchEventListenerMapForEventTarget(n),s=this.cacheKey(r,i);o.delete(s),o.size==0&&this.eventListenerMaps.delete(n)}fetchEventListenerForBinding(t){let{eventTarget:n,eventName:r,eventOptions:i}=t;return this.fetchEventListener(n,r,i)}fetchEventListener(t,n,r){let i=this.fetchEventListenerMapForEventTarget(t),o=this.cacheKey(n,r),s=i.get(o);return s||(s=this.createEventListener(t,n,r),i.set(o,s)),s}createEventListener(t,n,r){let i=new TD(t,n,r);return this.started&&i.connect(),i}fetchEventListenerMapForEventTarget(t){let n=this.eventListenerMaps.get(t);return n||(n=new Map,this.eventListenerMaps.set(t,n)),n}cacheKey(t,n){let r=[t];return Object.keys(n).sort().forEach(i=>{r.push(`${n[i]?"":"!"}${i}`)}),r.join(":")}},KXe={stop({event:e,value:t}){return t&&e.stopPropagation(),!0},prevent({event:e,value:t}){return t&&e.preventDefault(),!0},self({event:e,value:t,element:n}){return t?n===e.target:!0}},YXe=/^(?:(.+?)(?:\.(.+?))?(?:@(window|document))?->)?(.+?)(?:#([^:]+?))(?::(.+))?$/;function ZXe(e){let n=e.trim().match(YXe)||[],r=n[1],i=n[2];return i&&!["keydown","keyup","keypress"].includes(r)&&(r+=`.${i}`,i=""),{eventTarget:UXe(n[3]),eventName:r,eventOptions:n[6]?QXe(n[6]):{},identifier:n[4],methodName:n[5],keyFilter:i}}function UXe(e){if(e=="window")return window;if(e=="document")return document}function QXe(e){return e.split(":").reduce((t,n)=>Object.assign(t,{[n.replace(/^!/,"")]:!/^!/.test(n)}),{})}function eqe(e){if(e==window)return"window";if(e==document)return"document"}function oR(e){return e.replace(/(?:[_-])([a-z0-9])/g,(t,n)=>n.toUpperCase())}function RD(e){return oR(e.replace(/--/g,"-").replace(/__/g,"_"))}function h_(e){return e.charAt(0).toUpperCase()+e.slice(1)}function eie(e){return e.replace(/([A-Z])/g,(t,n)=>`-${n.toLowerCase()}`)}function tqe(e){return e.match(/[^\s]+/g)||[]}var LD=class{constructor(t,n,r,i){this.element=t,this.index=n,this.eventTarget=r.eventTarget||t,this.eventName=r.eventName||nqe(t)||bA("missing event name"),this.eventOptions=r.eventOptions||{},this.identifier=r.identifier||bA("missing identifier"),this.methodName=r.methodName||bA("missing method name"),this.keyFilter=r.keyFilter||"",this.schema=i}static forToken(t,n){return new this(t.element,t.index,ZXe(t.content),n)}toString(){let t=this.keyFilter?`.${this.keyFilter}`:"",n=this.eventTargetName?`@${this.eventTargetName}`:"";return`${this.eventName}${t}${n}->${this.identifier}#${this.methodName}`}isFilterTarget(t){if(!this.keyFilter)return!1;let n=this.keyFilter.split("+"),r=["meta","ctrl","alt","shift"],[i,o,s,a]=r.map(u=>n.includes(u));if(t.metaKey!==i||t.ctrlKey!==o||t.altKey!==s||t.shiftKey!==a)return!0;let l=n.filter(u=>!r.includes(u))[0];return l?(Object.prototype.hasOwnProperty.call(this.keyMappings,l)||bA(`contains unknown key filter: ${this.keyFilter}`),this.keyMappings[l].toLowerCase()!==t.key.toLowerCase()):!1}get params(){let t={},n=new RegExp(`^data-${this.identifier}-(.+)-param$`,"i");for(let{name:r,value:i}of Array.from(this.element.attributes)){let o=r.match(n),s=o&&o[1];s&&(t[oR(s)]=rqe(i))}return t}get eventTargetName(){return eqe(this.eventTarget)}get keyMappings(){return this.schema.keyMappings}},Yre={a:()=>"click",button:()=>"click",form:()=>"submit",details:()=>"toggle",input:e=>e.getAttribute("type")=="submit"?"click":"input",select:()=>"change",textarea:()=>"input"};function nqe(e){let t=e.tagName.toLowerCase();if(t in Yre)return Yre[t](e)}function bA(e){throw new Error(e)}function rqe(e){try{return JSON.parse(e)}catch{return e}}var VD=class{constructor(t,n){this.context=t,this.action=n}get index(){return this.action.index}get eventTarget(){return this.action.eventTarget}get eventOptions(){return this.action.eventOptions}get identifier(){return this.context.identifier}handleEvent(t){this.willBeInvokedByEvent(t)&&this.applyEventModifiers(t)&&this.invokeWithEvent(t)}get eventName(){return this.action.eventName}get method(){let t=this.controller[this.methodName];if(typeof t=="function")return t;throw new Error(`Action "${this.action}" references undefined method "${this.methodName}"`)}applyEventModifiers(t){let{element:n}=this.action,{actionDescriptorFilters:r}=this.context.application,i=!0;for(let[o,s]of Object.entries(this.eventOptions))if(o in r){let a=r[o];i=i&&a({name:o,value:s,event:t,element:n})}else continue;return i}invokeWithEvent(t){let{target:n,currentTarget:r}=t;try{let{params:i}=this.action,o=Object.assign(t,{params:i});this.method.call(this.controller,o),this.context.logDebugActivity(this.methodName,{event:t,target:n,currentTarget:r,action:this.methodName})}catch(i){let{identifier:o,controller:s,element:a,index:l}=this,u={identifier:o,controller:s,element:a,index:l,event:t};this.context.handleError(i,`invoking action "${this.action}"`,u)}}willBeInvokedByEvent(t){let n=t.target;return t instanceof KeyboardEvent&&this.action.isFilterTarget(t)?!1:this.element===n?!0:n instanceof Element&&this.element.contains(n)?this.scope.containsElement(n):this.scope.containsElement(this.action.element)}get controller(){return this.context.controller}get methodName(){return this.action.methodName}get element(){return this.scope.element}get scope(){return this.context.scope}},wA=class{constructor(t,n){this.mutationObserverInit={attributes:!0,childList:!0,subtree:!0},this.element=t,this.started=!1,this.delegate=n,this.elements=new Set,this.mutationObserver=new MutationObserver(r=>this.processMutations(r))}start(){this.started||(this.started=!0,this.mutationObserver.observe(this.element,this.mutationObserverInit),this.refresh())}pause(t){this.started&&(this.mutationObserver.disconnect(),this.started=!1),t(),this.started||(this.mutationObserver.observe(this.element,this.mutationObserverInit),this.started=!0)}stop(){this.started&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.started=!1)}refresh(){if(this.started){let t=new Set(this.matchElementsInTree());for(let n of Array.from(this.elements))t.has(n)||this.removeElement(n);for(let n of Array.from(t))this.addElement(n)}}processMutations(t){if(this.started)for(let n of t)this.processMutation(n)}processMutation(t){t.type=="attributes"?this.processAttributeChange(t.target,t.attributeName):t.type=="childList"&&(this.processRemovedNodes(t.removedNodes),this.processAddedNodes(t.addedNodes))}processAttributeChange(t,n){let r=t;this.elements.has(r)?this.delegate.elementAttributeChanged&&this.matchElement(r)?this.delegate.elementAttributeChanged(r,n):this.removeElement(r):this.matchElement(r)&&this.addElement(r)}processRemovedNodes(t){for(let n of Array.from(t)){let r=this.elementFromNode(n);r&&this.processTree(r,this.removeElement)}}processAddedNodes(t){for(let n of Array.from(t)){let r=this.elementFromNode(n);r&&this.elementIsActive(r)&&this.processTree(r,this.addElement)}}matchElement(t){return this.delegate.matchElement(t)}matchElementsInTree(t=this.element){return this.delegate.matchElementsInTree(t)}processTree(t,n){for(let r of this.matchElementsInTree(t))n.call(this,r)}elementFromNode(t){if(t.nodeType==Node.ELEMENT_NODE)return t}elementIsActive(t){return t.isConnected!=this.element.isConnected?!1:this.element.contains(t)}addElement(t){this.elements.has(t)||this.elementIsActive(t)&&(this.elements.add(t),this.delegate.elementMatched&&this.delegate.elementMatched(t))}removeElement(t){this.elements.has(t)&&(this.elements.delete(t),this.delegate.elementUnmatched&&this.delegate.elementUnmatched(t))}},JD=class{constructor(t,n,r){this.attributeName=n,this.delegate=r,this.elementObserver=new wA(t,this)}get element(){return this.elementObserver.element}get selector(){return`[${this.attributeName}]`}start(){this.elementObserver.start()}pause(t){this.elementObserver.pause(t)}stop(){this.elementObserver.stop()}refresh(){this.elementObserver.refresh()}get started(){return this.elementObserver.started}matchElement(t){return t.hasAttribute(this.attributeName)}matchElementsInTree(t){let n=this.matchElement(t)?[t]:[],r=Array.from(t.querySelectorAll(this.selector));return n.concat(r)}elementMatched(t){this.delegate.elementMatchedAttribute&&this.delegate.elementMatchedAttribute(t,this.attributeName)}elementUnmatched(t){this.delegate.elementUnmatchedAttribute&&this.delegate.elementUnmatchedAttribute(t,this.attributeName)}elementAttributeChanged(t,n){this.delegate.elementAttributeValueChanged&&this.attributeName==n&&this.delegate.elementAttributeValueChanged(t,n)}};function iqe(e,t,n){tie(e,t).add(n)}function oqe(e,t,n){tie(e,t).delete(n),sqe(e,t)}function tie(e,t){let n=e.get(t);return n||(n=new Set,e.set(t,n)),n}function sqe(e,t){let n=e.get(t);n!=null&&n.size==0&&e.delete(t)}var Zh=class{constructor(){this.valuesByKey=new Map}get keys(){return Array.from(this.valuesByKey.keys())}get values(){return Array.from(this.valuesByKey.values()).reduce((n,r)=>n.concat(Array.from(r)),[])}get size(){return Array.from(this.valuesByKey.values()).reduce((n,r)=>n+r.size,0)}add(t,n){iqe(this.valuesByKey,t,n)}delete(t,n){oqe(this.valuesByKey,t,n)}has(t,n){let r=this.valuesByKey.get(t);return r!=null&&r.has(n)}hasKey(t){return this.valuesByKey.has(t)}hasValue(t){return Array.from(this.valuesByKey.values()).some(r=>r.has(t))}getValuesForKey(t){let n=this.valuesByKey.get(t);return n?Array.from(n):[]}getKeysForValue(t){return Array.from(this.valuesByKey).filter(([n,r])=>r.has(t)).map(([n,r])=>n)}};var jD=class{constructor(t,n,r,i={}){this.selector=n,this.details=i,this.elementObserver=new wA(t,this),this.delegate=r,this.matchesByElement=new Zh}get started(){return this.elementObserver.started}start(){this.elementObserver.start()}pause(t){this.elementObserver.pause(t)}stop(){this.elementObserver.stop()}refresh(){this.elementObserver.refresh()}get element(){return this.elementObserver.element}matchElement(t){let n=t.matches(this.selector);return this.delegate.selectorMatchElement?n&&this.delegate.selectorMatchElement(t,this.details):n}matchElementsInTree(t){let n=this.matchElement(t)?[t]:[],r=Array.from(t.querySelectorAll(this.selector)).filter(i=>this.matchElement(i));return n.concat(r)}elementMatched(t){this.selectorMatched(t)}elementUnmatched(t){this.selectorUnmatched(t)}elementAttributeChanged(t,n){let r=this.matchElement(t),i=this.matchesByElement.has(this.selector,t);!r&&i&&this.selectorUnmatched(t)}selectorMatched(t){this.delegate.selectorMatched&&(this.delegate.selectorMatched(t,this.selector,this.details),this.matchesByElement.add(this.selector,t))}selectorUnmatched(t){this.delegate.selectorUnmatched(t,this.selector,this.details),this.matchesByElement.delete(this.selector,t)}},HD=class{constructor(t,n){this.element=t,this.delegate=n,this.started=!1,this.stringMap=new Map,this.mutationObserver=new MutationObserver(r=>this.processMutations(r))}start(){this.started||(this.started=!0,this.mutationObserver.observe(this.element,{attributes:!0,attributeOldValue:!0}),this.refresh())}stop(){this.started&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.started=!1)}refresh(){if(this.started)for(let t of this.knownAttributeNames)this.refreshAttribute(t,null)}processMutations(t){if(this.started)for(let n of t)this.processMutation(n)}processMutation(t){let n=t.attributeName;n&&this.refreshAttribute(n,t.oldValue)}refreshAttribute(t,n){let r=this.delegate.getStringMapKeyForAttribute(t);if(r!=null){this.stringMap.has(t)||this.stringMapKeyAdded(r,t);let i=this.element.getAttribute(t);if(this.stringMap.get(t)!=i&&this.stringMapValueChanged(i,r,n),i==null){let o=this.stringMap.get(t);this.stringMap.delete(t),o&&this.stringMapKeyRemoved(r,t,o)}else this.stringMap.set(t,i)}}stringMapKeyAdded(t,n){this.delegate.stringMapKeyAdded&&this.delegate.stringMapKeyAdded(t,n)}stringMapValueChanged(t,n,r){this.delegate.stringMapValueChanged&&this.delegate.stringMapValueChanged(t,n,r)}stringMapKeyRemoved(t,n,r){this.delegate.stringMapKeyRemoved&&this.delegate.stringMapKeyRemoved(t,n,r)}get knownAttributeNames(){return Array.from(new Set(this.currentAttributeNames.concat(this.recordedAttributeNames)))}get currentAttributeNames(){return Array.from(this.element.attributes).map(t=>t.name)}get recordedAttributeNames(){return Array.from(this.stringMap.keys())}},PA=class{constructor(t,n,r){this.attributeObserver=new JD(t,n,this),this.delegate=r,this.tokensByElement=new Zh}get started(){return this.attributeObserver.started}start(){this.attributeObserver.start()}pause(t){this.attributeObserver.pause(t)}stop(){this.attributeObserver.stop()}refresh(){this.attributeObserver.refresh()}get element(){return this.attributeObserver.element}get attributeName(){return this.attributeObserver.attributeName}elementMatchedAttribute(t){this.tokensMatched(this.readTokensForElement(t))}elementAttributeValueChanged(t){let[n,r]=this.refreshTokensForElement(t);this.tokensUnmatched(n),this.tokensMatched(r)}elementUnmatchedAttribute(t){this.tokensUnmatched(this.tokensByElement.getValuesForKey(t))}tokensMatched(t){t.forEach(n=>this.tokenMatched(n))}tokensUnmatched(t){t.forEach(n=>this.tokenUnmatched(n))}tokenMatched(t){this.delegate.tokenMatched(t),this.tokensByElement.add(t.element,t)}tokenUnmatched(t){this.delegate.tokenUnmatched(t),this.tokensByElement.delete(t.element,t)}refreshTokensForElement(t){let n=this.tokensByElement.getValuesForKey(t),r=this.readTokensForElement(t),i=lqe(n,r).findIndex(([o,s])=>!uqe(o,s));return i==-1?[[],[]]:[n.slice(i),r.slice(i)]}readTokensForElement(t){let n=this.attributeName,r=t.getAttribute(n)||"";return aqe(r,t,n)}};function aqe(e,t,n){return e.trim().split(/\s+/).filter(r=>r.length).map((r,i)=>({element:t,attributeName:n,content:r,index:i}))}function lqe(e,t){let n=Math.max(e.length,t.length);return Array.from({length:n},(r,i)=>[e[i],t[i]])}function uqe(e,t){return e&&t&&e.index==t.index&&e.content==t.content}var kA=class{constructor(t,n,r){this.tokenListObserver=new PA(t,n,this),this.delegate=r,this.parseResultsByToken=new WeakMap,this.valuesByTokenByElement=new WeakMap}get started(){return this.tokenListObserver.started}start(){this.tokenListObserver.start()}stop(){this.tokenListObserver.stop()}refresh(){this.tokenListObserver.refresh()}get element(){return this.tokenListObserver.element}get attributeName(){return this.tokenListObserver.attributeName}tokenMatched(t){let{element:n}=t,{value:r}=this.fetchParseResultForToken(t);r&&(this.fetchValuesByTokenForElement(n).set(t,r),this.delegate.elementMatchedValue(n,r))}tokenUnmatched(t){let{element:n}=t,{value:r}=this.fetchParseResultForToken(t);r&&(this.fetchValuesByTokenForElement(n).delete(t),this.delegate.elementUnmatchedValue(n,r))}fetchParseResultForToken(t){let n=this.parseResultsByToken.get(t);return n||(n=this.parseToken(t),this.parseResultsByToken.set(t,n)),n}fetchValuesByTokenForElement(t){let n=this.valuesByTokenByElement.get(t);return n||(n=new Map,this.valuesByTokenByElement.set(t,n)),n}parseToken(t){try{return{value:this.delegate.parseValueForToken(t)}}catch(n){return{error:n}}}},WD=class{constructor(t,n){this.context=t,this.delegate=n,this.bindingsByAction=new Map}start(){this.valueListObserver||(this.valueListObserver=new kA(this.element,this.actionAttribute,this),this.valueListObserver.start())}stop(){this.valueListObserver&&(this.valueListObserver.stop(),delete this.valueListObserver,this.disconnectAllActions())}get element(){return this.context.element}get identifier(){return this.context.identifier}get actionAttribute(){return this.schema.actionAttribute}get schema(){return this.context.schema}get bindings(){return Array.from(this.bindingsByAction.values())}connectAction(t){let n=new VD(this.context,t);this.bindingsByAction.set(t,n),this.delegate.bindingConnected(n)}disconnectAction(t){let n=this.bindingsByAction.get(t);n&&(this.bindingsByAction.delete(t),this.delegate.bindingDisconnected(n))}disconnectAllActions(){this.bindings.forEach(t=>this.delegate.bindingDisconnected(t,!0)),this.bindingsByAction.clear()}parseValueForToken(t){let n=LD.forToken(t,this.schema);if(n.identifier==this.identifier)return n}elementMatchedValue(t,n){this.connectAction(n)}elementUnmatchedValue(t,n){this.disconnectAction(n)}},XD=class{constructor(t,n){this.context=t,this.receiver=n,this.stringMapObserver=new HD(this.element,this),this.valueDescriptorMap=this.controller.valueDescriptorMap}start(){this.stringMapObserver.start(),this.invokeChangedCallbacksForDefaultValues()}stop(){this.stringMapObserver.stop()}get element(){return this.context.element}get controller(){return this.context.controller}getStringMapKeyForAttribute(t){if(t in this.valueDescriptorMap)return this.valueDescriptorMap[t].name}stringMapKeyAdded(t,n){let r=this.valueDescriptorMap[n];this.hasValue(t)||this.invokeChangedCallback(t,r.writer(this.receiver[t]),r.writer(r.defaultValue))}stringMapValueChanged(t,n,r){let i=this.valueDescriptorNameMap[n];t!==null&&(r===null&&(r=i.writer(i.defaultValue)),this.invokeChangedCallback(n,t,r))}stringMapKeyRemoved(t,n,r){let i=this.valueDescriptorNameMap[t];this.hasValue(t)?this.invokeChangedCallback(t,i.writer(this.receiver[t]),r):this.invokeChangedCallback(t,i.writer(i.defaultValue),r)}invokeChangedCallbacksForDefaultValues(){for(let{key:t,name:n,defaultValue:r,writer:i}of this.valueDescriptors)r!=null&&!this.controller.data.has(t)&&this.invokeChangedCallback(n,i(r),void 0)}invokeChangedCallback(t,n,r){let i=`${t}Changed`,o=this.receiver[i];if(typeof o=="function"){let s=this.valueDescriptorNameMap[t];try{let a=s.reader(n),l=r;r&&(l=s.reader(r)),o.call(this.receiver,a,l)}catch(a){throw a instanceof TypeError&&(a.message=`Stimulus Value "${this.context.identifier}.${s.name}" - ${a.message}`),a}}}get valueDescriptors(){let{valueDescriptorMap:t}=this;return Object.keys(t).map(n=>t[n])}get valueDescriptorNameMap(){let t={};return Object.keys(this.valueDescriptorMap).forEach(n=>{let r=this.valueDescriptorMap[n];t[r.name]=r}),t}hasValue(t){let n=this.valueDescriptorNameMap[t],r=`has${h_(n.name)}`;return this.receiver[r]}},qD=class{constructor(t,n){this.context=t,this.delegate=n,this.targetsByName=new Zh}start(){this.tokenListObserver||(this.tokenListObserver=new PA(this.element,this.attributeName,this),this.tokenListObserver.start())}stop(){this.tokenListObserver&&(this.disconnectAllTargets(),this.tokenListObserver.stop(),delete this.tokenListObserver)}tokenMatched({element:t,content:n}){this.scope.containsElement(t)&&this.connectTarget(t,n)}tokenUnmatched({element:t,content:n}){this.disconnectTarget(t,n)}connectTarget(t,n){var r;this.targetsByName.has(n,t)||(this.targetsByName.add(n,t),(r=this.tokenListObserver)===null||r===void 0||r.pause(()=>this.delegate.targetConnected(t,n)))}disconnectTarget(t,n){var r;this.targetsByName.has(n,t)&&(this.targetsByName.delete(n,t),(r=this.tokenListObserver)===null||r===void 0||r.pause(()=>this.delegate.targetDisconnected(t,n)))}disconnectAllTargets(){for(let t of this.targetsByName.keys)for(let n of this.targetsByName.getValuesForKey(t))this.disconnectTarget(n,t)}get attributeName(){return`data-${this.context.identifier}-target`}get element(){return this.context.element}get scope(){return this.context.scope}};function m_(e,t){let n=nie(e);return Array.from(n.reduce((r,i)=>(dqe(i,t).forEach(o=>r.add(o)),r),new Set))}function cqe(e,t){return nie(e).reduce((r,i)=>(r.push(...pqe(i,t)),r),[])}function nie(e){let t=[];for(;e;)t.push(e),e=Object.getPrototypeOf(e);return t.reverse()}function dqe(e,t){let n=e[t];return Array.isArray(n)?n:[]}function pqe(e,t){let n=e[t];return n?Object.keys(n).map(r=>[r,n[r]]):[]}var $D=class{constructor(t,n){this.context=t,this.delegate=n,this.outletsByName=new Zh,this.outletElementsByName=new Zh,this.selectorObserverMap=new Map}start(){this.selectorObserverMap.size===0&&(this.outletDefinitions.forEach(t=>{let n=this.selector(t),r={outletName:t};n&&this.selectorObserverMap.set(t,new jD(document.body,n,this,r))}),this.selectorObserverMap.forEach(t=>t.start())),this.dependentContexts.forEach(t=>t.refresh())}stop(){this.selectorObserverMap.size>0&&(this.disconnectAllOutlets(),this.selectorObserverMap.forEach(t=>t.stop()),this.selectorObserverMap.clear())}refresh(){this.selectorObserverMap.forEach(t=>t.refresh())}selectorMatched(t,n,{outletName:r}){let i=this.getOutlet(t,r);i&&this.connectOutlet(i,t,r)}selectorUnmatched(t,n,{outletName:r}){let i=this.getOutletFromMap(t,r);i&&this.disconnectOutlet(i,t,r)}selectorMatchElement(t,{outletName:n}){return this.hasOutlet(t,n)&&t.matches(`[${this.context.application.schema.controllerAttribute}~=${n}]`)}connectOutlet(t,n,r){var i;this.outletElementsByName.has(r,n)||(this.outletsByName.add(r,t),this.outletElementsByName.add(r,n),(i=this.selectorObserverMap.get(r))===null||i===void 0||i.pause(()=>this.delegate.outletConnected(t,n,r)))}disconnectOutlet(t,n,r){var i;this.outletElementsByName.has(r,n)&&(this.outletsByName.delete(r,t),this.outletElementsByName.delete(r,n),(i=this.selectorObserverMap.get(r))===null||i===void 0||i.pause(()=>this.delegate.outletDisconnected(t,n,r)))}disconnectAllOutlets(){for(let t of this.outletElementsByName.keys)for(let n of this.outletElementsByName.getValuesForKey(t))for(let r of this.outletsByName.getValuesForKey(t))this.disconnectOutlet(r,n,t)}selector(t){return this.scope.outlets.getSelectorForOutletName(t)}get outletDependencies(){let t=new Zh;return this.router.modules.forEach(n=>{let r=n.definition.controllerConstructor;m_(r,"outlets").forEach(o=>t.add(o,n.identifier))}),t}get outletDefinitions(){return this.outletDependencies.getKeysForValue(this.identifier)}get dependentControllerIdentifiers(){return this.outletDependencies.getValuesForKey(this.identifier)}get dependentContexts(){let t=this.dependentControllerIdentifiers;return this.router.contexts.filter(n=>t.includes(n.identifier))}hasOutlet(t,n){return!!this.getOutlet(t,n)||!!this.getOutletFromMap(t,n)}getOutlet(t,n){return this.application.getControllerForElementAndIdentifier(t,n)}getOutletFromMap(t,n){return this.outletsByName.getValuesForKey(n).find(r=>r.element===t)}get scope(){return this.context.scope}get identifier(){return this.context.identifier}get application(){return this.context.application}get router(){return this.application.router}},KD=class{constructor(t,n){this.logDebugActivity=(r,i={})=>{let{identifier:o,controller:s,element:a}=this;i=Object.assign({identifier:o,controller:s,element:a},i),this.application.logDebugActivity(this.identifier,r,i)},this.module=t,this.scope=n,this.controller=new t.controllerConstructor(this),this.bindingObserver=new WD(this,this.dispatcher),this.valueObserver=new XD(this,this.controller),this.targetObserver=new qD(this,this),this.outletObserver=new $D(this,this);try{this.controller.initialize(),this.logDebugActivity("initialize")}catch(r){this.handleError(r,"initializing controller")}}connect(){this.bindingObserver.start(),this.valueObserver.start(),this.targetObserver.start(),this.outletObserver.start();try{this.controller.connect(),this.logDebugActivity("connect")}catch(t){this.handleError(t,"connecting controller")}}refresh(){this.outletObserver.refresh()}disconnect(){try{this.controller.disconnect(),this.logDebugActivity("disconnect")}catch(t){this.handleError(t,"disconnecting controller")}this.outletObserver.stop(),this.targetObserver.stop(),this.valueObserver.stop(),this.bindingObserver.stop()}get application(){return this.module.application}get identifier(){return this.module.identifier}get schema(){return this.application.schema}get dispatcher(){return this.application.dispatcher}get element(){return this.scope.element}get parentElement(){return this.element.parentElement}handleError(t,n,r={}){let{identifier:i,controller:o,element:s}=this;r=Object.assign({identifier:i,controller:o,element:s},r),this.application.handleError(t,`Error ${n}`,r)}targetConnected(t,n){this.invokeControllerMethod(`${n}TargetConnected`,t)}targetDisconnected(t,n){this.invokeControllerMethod(`${n}TargetDisconnected`,t)}outletConnected(t,n,r){this.invokeControllerMethod(`${RD(r)}OutletConnected`,t,n)}outletDisconnected(t,n,r){this.invokeControllerMethod(`${RD(r)}OutletDisconnected`,t,n)}invokeControllerMethod(t,...n){let r=this.controller;typeof r[t]=="function"&&r[t](...n)}};function fqe(e){return hqe(e,mqe(e))}function hqe(e,t){let n=xqe(e),r=gqe(e.prototype,t);return Object.defineProperties(n.prototype,r),n}function mqe(e){return m_(e,"blessings").reduce((n,r)=>{let i=r(e);for(let o in i){let s=n[o]||{};n[o]=Object.assign(s,i[o])}return n},{})}function gqe(e,t){return yqe(t).reduce((n,r)=>{let i=vqe(e,t,r);return i&&Object.assign(n,{[r]:i}),n},{})}function vqe(e,t,n){let r=Object.getOwnPropertyDescriptor(e,n);if(!(r&&"value"in r)){let o=Object.getOwnPropertyDescriptor(t,n).value;return r&&(o.get=r.get||o.get,o.set=r.set||o.set),o}}var yqe=(()=>typeof Object.getOwnPropertySymbols=="function"?e=>[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)]:Object.getOwnPropertyNames)(),xqe=(()=>{function e(n){function r(){return Reflect.construct(n,arguments,new.target)}return r.prototype=Object.create(n.prototype,{constructor:{value:r}}),Reflect.setPrototypeOf(r,n),r}function t(){let r=e(function(){this.a.call(this)});return r.prototype.a=function(){},new r}try{return t(),e}catch{return r=>class extends r{}}})();function _qe(e){return{identifier:e.identifier,controllerConstructor:fqe(e.controllerConstructor)}}var YD=class{constructor(t,n){this.application=t,this.definition=_qe(n),this.contextsByScope=new WeakMap,this.connectedContexts=new Set}get identifier(){return this.definition.identifier}get controllerConstructor(){return this.definition.controllerConstructor}get contexts(){return Array.from(this.connectedContexts)}connectContextForScope(t){let n=this.fetchContextForScope(t);this.connectedContexts.add(n),n.connect()}disconnectContextForScope(t){let n=this.contextsByScope.get(t);n&&(this.connectedContexts.delete(n),n.disconnect())}fetchContextForScope(t){let n=this.contextsByScope.get(t);return n||(n=new KD(this,t),this.contextsByScope.set(t,n)),n}},ZD=class{constructor(t){this.scope=t}has(t){return this.data.has(this.getDataKey(t))}get(t){return this.getAll(t)[0]}getAll(t){let n=this.data.get(this.getDataKey(t))||"";return tqe(n)}getAttributeName(t){return this.data.getAttributeNameForKey(this.getDataKey(t))}getDataKey(t){return`${t}-class`}get data(){return this.scope.data}},UD=class{constructor(t){this.scope=t}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get(t){let n=this.getAttributeNameForKey(t);return this.element.getAttribute(n)}set(t,n){let r=this.getAttributeNameForKey(t);return this.element.setAttribute(r,n),this.get(t)}has(t){let n=this.getAttributeNameForKey(t);return this.element.hasAttribute(n)}delete(t){if(this.has(t)){let n=this.getAttributeNameForKey(t);return this.element.removeAttribute(n),!0}else return!1}getAttributeNameForKey(t){return`data-${this.identifier}-${eie(t)}`}},QD=class{constructor(t){this.warnedKeysByObject=new WeakMap,this.logger=t}warn(t,n,r){let i=this.warnedKeysByObject.get(t);i||(i=new Set,this.warnedKeysByObject.set(t,i)),i.has(n)||(i.add(n),this.logger.warn(r,t))}};function eR(e,t){return`[${e}~="${t}"]`}var tR=class{constructor(t){this.scope=t}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get schema(){return this.scope.schema}has(t){return this.find(t)!=null}find(...t){return t.reduce((n,r)=>n||this.findTarget(r)||this.findLegacyTarget(r),void 0)}findAll(...t){return t.reduce((n,r)=>[...n,...this.findAllTargets(r),...this.findAllLegacyTargets(r)],[])}findTarget(t){let n=this.getSelectorForTargetName(t);return this.scope.findElement(n)}findAllTargets(t){let n=this.getSelectorForTargetName(t);return this.scope.findAllElements(n)}getSelectorForTargetName(t){let n=this.schema.targetAttributeForScope(this.identifier);return eR(n,t)}findLegacyTarget(t){let n=this.getLegacySelectorForTargetName(t);return this.deprecate(this.scope.findElement(n),t)}findAllLegacyTargets(t){let n=this.getLegacySelectorForTargetName(t);return this.scope.findAllElements(n).map(r=>this.deprecate(r,t))}getLegacySelectorForTargetName(t){let n=`${this.identifier}.${t}`;return eR(this.schema.targetAttribute,n)}deprecate(t,n){if(t){let{identifier:r}=this,i=this.schema.targetAttribute,o=this.schema.targetAttributeForScope(r);this.guide.warn(t,`target:${n}`,`Please replace ${i}="${r}.${n}" with ${o}="${n}". The ${i} attribute is deprecated and will be removed in a future version of Stimulus.`)}return t}get guide(){return this.scope.guide}},nR=class{constructor(t,n){this.scope=t,this.controllerElement=n}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get schema(){return this.scope.schema}has(t){return this.find(t)!=null}find(...t){return t.reduce((n,r)=>n||this.findOutlet(r),void 0)}findAll(...t){return t.reduce((n,r)=>[...n,...this.findAllOutlets(r)],[])}getSelectorForOutletName(t){let n=this.schema.outletAttributeForScope(this.identifier,t);return this.controllerElement.getAttribute(n)}findOutlet(t){let n=this.getSelectorForOutletName(t);if(n)return this.findElement(n,t)}findAllOutlets(t){let n=this.getSelectorForOutletName(t);return n?this.findAllElements(n,t):[]}findElement(t,n){return this.scope.queryElements(t).filter(i=>this.matchesElement(i,t,n))[0]}findAllElements(t,n){return this.scope.queryElements(t).filter(i=>this.matchesElement(i,t,n))}matchesElement(t,n,r){let i=t.getAttribute(this.scope.schema.controllerAttribute)||"";return t.matches(n)&&i.split(" ").includes(r)}},p_=class{constructor(t,n,r,i){this.targets=new tR(this),this.classes=new ZD(this),this.data=new UD(this),this.containsElement=o=>o.closest(this.controllerSelector)===this.element,this.schema=t,this.element=n,this.identifier=r,this.guide=new QD(i),this.outlets=new nR(this.documentScope,n)}findElement(t){return this.element.matches(t)?this.element:this.queryElements(t).find(this.containsElement)}findAllElements(t){return[...this.element.matches(t)?[this.element]:[],...this.queryElements(t).filter(this.containsElement)]}queryElements(t){return Array.from(this.element.querySelectorAll(t))}get controllerSelector(){return eR(this.schema.controllerAttribute,this.identifier)}get isDocumentScope(){return this.element===document.documentElement}get documentScope(){return this.isDocumentScope?this:new p_(this.schema,document.documentElement,this.identifier,this.guide.logger)}},rR=class{constructor(t,n,r){this.element=t,this.schema=n,this.delegate=r,this.valueListObserver=new kA(this.element,this.controllerAttribute,this),this.scopesByIdentifierByElement=new WeakMap,this.scopeReferenceCounts=new WeakMap}start(){this.valueListObserver.start()}stop(){this.valueListObserver.stop()}get controllerAttribute(){return this.schema.controllerAttribute}parseValueForToken(t){let{element:n,content:r}=t,i=this.fetchScopesByIdentifierForElement(n),o=i.get(r);return o||(o=this.delegate.createScopeForElementAndIdentifier(n,r),i.set(r,o)),o}elementMatchedValue(t,n){let r=(this.scopeReferenceCounts.get(n)||0)+1;this.scopeReferenceCounts.set(n,r),r==1&&this.delegate.scopeConnected(n)}elementUnmatchedValue(t,n){let r=this.scopeReferenceCounts.get(n);r&&(this.scopeReferenceCounts.set(n,r-1),r==1&&this.delegate.scopeDisconnected(n))}fetchScopesByIdentifierForElement(t){let n=this.scopesByIdentifierByElement.get(t);return n||(n=new Map,this.scopesByIdentifierByElement.set(t,n)),n}},iR=class{constructor(t){this.application=t,this.scopeObserver=new rR(this.element,this.schema,this),this.scopesByIdentifier=new Zh,this.modulesByIdentifier=new Map}get element(){return this.application.element}get schema(){return this.application.schema}get logger(){return this.application.logger}get controllerAttribute(){return this.schema.controllerAttribute}get modules(){return Array.from(this.modulesByIdentifier.values())}get contexts(){return this.modules.reduce((t,n)=>t.concat(n.contexts),[])}start(){this.scopeObserver.start()}stop(){this.scopeObserver.stop()}loadDefinition(t){this.unloadIdentifier(t.identifier);let n=new YD(this.application,t);this.connectModule(n);let r=t.controllerConstructor.afterLoad;r&&r(t.identifier,this.application)}unloadIdentifier(t){let n=this.modulesByIdentifier.get(t);n&&this.disconnectModule(n)}getContextForElementAndIdentifier(t,n){let r=this.modulesByIdentifier.get(n);if(r)return r.contexts.find(i=>i.element==t)}handleError(t,n,r){this.application.handleError(t,n,r)}createScopeForElementAndIdentifier(t,n){return new p_(this.schema,t,n,this.logger)}scopeConnected(t){this.scopesByIdentifier.add(t.identifier,t);let n=this.modulesByIdentifier.get(t.identifier);n&&n.connectContextForScope(t)}scopeDisconnected(t){this.scopesByIdentifier.delete(t.identifier,t);let n=this.modulesByIdentifier.get(t.identifier);n&&n.disconnectContextForScope(t)}connectModule(t){this.modulesByIdentifier.set(t.identifier,t),this.scopesByIdentifier.getValuesForKey(t.identifier).forEach(r=>t.connectContextForScope(r))}disconnectModule(t){this.modulesByIdentifier.delete(t.identifier),this.scopesByIdentifier.getValuesForKey(t.identifier).forEach(r=>t.disconnectContextForScope(r))}},bqe={controllerAttribute:"data-controller",actionAttribute:"data-action",targetAttribute:"data-target",targetAttributeForScope:e=>`data-${e}-target`,outletAttributeForScope:(e,t)=>`data-${e}-${t}-outlet`,keyMappings:Object.assign(Object.assign({enter:"Enter",tab:"Tab",esc:"Escape",space:" ",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",home:"Home",end:"End"},Zre("abcdefghijklmnopqrstuvwxyz".split("").map(e=>[e,e]))),Zre("0123456789".split("").map(e=>[e,e])))};function Zre(e){return e.reduce((t,[n,r])=>Object.assign(Object.assign({},t),{[n]:r}),{})}var AA=class{constructor(t=document.documentElement,n=bqe){this.logger=console,this.debug=!1,this.logDebugActivity=(r,i,o={})=>{this.debug&&this.logFormattedMessage(r,i,o)},this.element=t,this.schema=n,this.dispatcher=new DD(this),this.router=new iR(this),this.actionDescriptorFilters=Object.assign({},KXe)}static start(t,n){let r=new this(t,n);return r.start(),r}async start(){await wqe(),this.logDebugActivity("application","starting"),this.dispatcher.start(),this.router.start(),this.logDebugActivity("application","start")}stop(){this.logDebugActivity("application","stopping"),this.dispatcher.stop(),this.router.stop(),this.logDebugActivity("application","stop")}register(t,n){this.load({identifier:t,controllerConstructor:n})}registerActionOption(t,n){this.actionDescriptorFilters[t]=n}load(t,...n){(Array.isArray(t)?t:[t,...n]).forEach(i=>{i.controllerConstructor.shouldLoad&&this.router.loadDefinition(i)})}unload(t,...n){(Array.isArray(t)?t:[t,...n]).forEach(i=>this.router.unloadIdentifier(i))}get controllers(){return this.router.contexts.map(t=>t.controller)}getControllerForElementAndIdentifier(t,n){let r=this.router.getContextForElementAndIdentifier(t,n);return r?r.controller:null}handleError(t,n,r){var i;this.logger.error(`%s

%o

%o`,n,t,r),(i=window.onerror)===null||i===void 0||i.call(window,n,"",0,0,t)}logFormattedMessage(t,n,r={}){r=Object.assign({application:this},r),this.logger.groupCollapsed(`${t} #${n}`),this.logger.log("details:",Object.assign({},r)),this.logger.groupEnd()}};function wqe(){return new Promise(e=>{document.readyState=="loading"?document.addEventListener("DOMContentLoaded",()=>e()):e()})}function Pqe(e){return m_(e,"classes").reduce((n,r)=>Object.assign(n,kqe(r)),{})}function kqe(e){return{[`${e}Class`]:{get(){let{classes:t}=this;if(t.has(e))return t.get(e);{let n=t.getAttributeName(e);throw new Error(`Missing attribute "${n}"`)}}},[`${e}Classes`]:{get(){return this.classes.getAll(e)}},[`has${h_(e)}Class`]:{get(){return this.classes.has(e)}}}}function Aqe(e){return m_(e,"outlets").reduce((n,r)=>Object.assign(n,Cqe(r)),{})}function Cqe(e){let t=RD(e);return{[`${t}Outlet`]:{get(){let n=this.outlets.find(e);if(n){let r=this.application.getControllerForElementAndIdentifier(n,e);if(r)return r;throw new Error(`Missing "data-controller=${e}" attribute on outlet element for "${this.identifier}" controller`)}throw new Error(`Missing outlet element "${e}" for "${this.identifier}" controller`)}},[`${t}Outlets`]:{get(){let n=this.outlets.findAll(e);return n.length>0?n.map(r=>{let i=this.application.getControllerForElementAndIdentifier(r,e);if(i)return i;console.warn(`The provided outlet element is missing the outlet controller "${e}" for "${this.identifier}"`,r)}).filter(r=>r):[]}},[`${t}OutletElement`]:{get(){let n=this.outlets.find(e);if(n)return n;throw new Error(`Missing outlet element "${e}" for "${this.identifier}" controller`)}},[`${t}OutletElements`]:{get(){return this.outlets.findAll(e)}},[`has${h_(t)}Outlet`]:{get(){return this.outlets.has(e)}}}}function Sqe(e){return m_(e,"targets").reduce((n,r)=>Object.assign(n,Oqe(r)),{})}function Oqe(e){return{[`${e}Target`]:{get(){let t=this.targets.find(e);if(t)return t;throw new Error(`Missing target element "${e}" for "${this.identifier}" controller`)}},[`${e}Targets`]:{get(){return this.targets.findAll(e)}},[`has${h_(e)}Target`]:{get(){return this.targets.has(e)}}}}function Eqe(e){let t=cqe(e,"values"),n={valueDescriptorMap:{get(){return t.reduce((r,i)=>{let o=rie(i,this.identifier),s=this.data.getAttributeNameForKey(o.key);return Object.assign(r,{[s]:o})},{})}}};return t.reduce((r,i)=>Object.assign(r,Mqe(i)),n)}function Mqe(e,t){let n=rie(e,t),{key:r,name:i,reader:o,writer:s}=n;return{[i]:{get(){let a=this.data.get(r);return a!==null?o(a):n.defaultValue},set(a){a===void 0?this.data.delete(r):this.data.set(r,s(a))}},[`has${h_(i)}`]:{get(){return this.data.has(r)||n.hasCustomDefaultValue}}}}function rie([e,t],n){return Fqe({controller:n,token:e,typeDefinition:t})}function sR(e){switch(e){case Array:return"array";case Boolean:return"boolean";case Number:return"number";case Object:return"object";case String:return"string"}}function f_(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string"}if(Array.isArray(e))return"array";if(Object.prototype.toString.call(e)==="[object Object]")return"object"}function Bqe(e){let t=sR(e.typeObject.type);if(!t)return;let n=f_(e.typeObject.default);if(t!==n){let r=e.controller?`${e.controller}.${e.token}`:e.token;throw new Error(`The specified default value for the Stimulus Value "${r}" must match the defined type "${t}". The provided default value of "${e.typeObject.default}" is of type "${n}".`)}return t}function Nqe(e){let t=Bqe({controller:e.controller,token:e.token,typeObject:e.typeDefinition}),n=f_(e.typeDefinition),r=sR(e.typeDefinition),i=t||n||r;if(i)return i;let o=e.controller?`${e.controller}.${e.typeDefinition}`:e.token;throw new Error(`Unknown value type "${o}" for "${e.token}" value`)}function Gqe(e){let t=sR(e);if(t)return Iqe[t];let n=e.default;return n!==void 0?n:e}function Fqe(e){let t=`${eie(e.token)}-value`,n=Nqe(e);return{type:n,key:t,name:oR(t),get defaultValue(){return Gqe(e.typeDefinition)},get hasCustomDefaultValue(){return f_(e.typeDefinition)!==void 0},reader:zqe[n],writer:Ure[n]||Ure.default}}var Iqe={get array(){return[]},boolean:!1,number:0,get object(){return{}},string:""},zqe={array(e){let t=JSON.parse(e);if(!Array.isArray(t))throw new TypeError(`expected value of type "array" but instead got value "${e}" of type "${f_(t)}"`);return t},boolean(e){return!(e=="0"||String(e).toLowerCase()=="false")},number(e){return Number(e)},object(e){let t=JSON.parse(e);if(t===null||typeof t!="object"||Array.isArray(t))throw new TypeError(`expected value of type "object" but instead got value "${e}" of type "${f_(t)}"`);return t},string(e){return e}},Ure={default:Tqe,array:Qre,object:Qre};function Qre(e){return JSON.stringify(e)}function Tqe(e){return`${e}`}var s1=class{constructor(t){this.context=t}static get shouldLoad(){return!0}static afterLoad(t,n){}get application(){return this.context.application}get scope(){return this.context.scope}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get targets(){return this.scope.targets}get outlets(){return this.scope.outlets}get classes(){return this.scope.classes}get data(){return this.scope.data}initialize(){}connect(){}disconnect(){}dispatch(t,{target:n=this.element,detail:r={},prefix:i=this.identifier,bubbles:o=!0,cancelable:s=!0}={}){let a=i?`${i}:${t}`:t,l=new CustomEvent(a,{detail:r,bubbles:o,cancelable:s});return n.dispatchEvent(l),l}};s1.blessings=[Pqe,Sqe,Eqe,Aqe];s1.targets=[];s1.outlets=[];s1.values={};var CA=AA.start();CA.debug=!1;window.Stimulus=CA;var BLe=ie(Pe()),NLe=ie(Tae());var sn=ie(Pe());var La=ie(Pe());var nn=ie(Pe());function ub(){return ub=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ub.apply(this,arguments)}var Ff;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ff||(Ff={}));var Dae="popstate";function Jae(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:s,hash:a}=r.location;return SV("",{pathname:o,search:s,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:KC(i)}return tYe(t,n,null,e)}function xs(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function OV(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function eYe(){return Math.random().toString(36).substr(2,8)}function Rae(e,t){return{usr:e.state,key:e.key,idx:t}}function SV(e,t,n,r){return n===void 0&&(n=null),ub({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?O1(t):t,{state:n,key:t&&t.key||r||eYe()})}function KC(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function O1(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function tYe(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=Ff.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(ub({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function f(){a=Ff.Pop;let b=c(),v=b==null?null:b-u;u=b,l&&l({action:a,location:g.location,delta:v})}function d(b,v){a=Ff.Push;let x=SV(g.location,b,v);n&&n(x,b),u=c()+1;let y=Rae(x,u),_=g.createHref(x);try{s.pushState(y,"",_)}catch{i.location.assign(_)}o&&l&&l({action:a,location:g.location,delta:1})}function h(b,v){a=Ff.Replace;let x=SV(g.location,b,v);n&&n(x,b),u=c();let y=Rae(x,u),_=g.createHref(x);s.replaceState(y,"",_),o&&l&&l({action:a,location:g.location,delta:0})}function m(b){let v=i.location.origin!=="null"?i.location.origin:i.location.href,x=typeof b=="string"?b:KC(b);return xs(v,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,v)}let g={get action(){return a},get location(){return e(i,s)},listen(b){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Dae,f),l=b,()=>{i.removeEventListener(Dae,f),l=null}},createHref(b){return t(i,b)},createURL:m,encodeLocation(b){let v=m(b);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:d,replace:h,go(b){return s.go(b)}};return g}var Lae;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Lae||(Lae={}));function EV(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?O1(t):t,i=YC(r.pathname||"/",n);if(i==null)return null;let o=jae(e);nYe(o);let s=null;for(let a=0;s==null&&a<o.length;++a)s=dYe(o[a],fYe(i));return s}function jae(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,s,a)=>{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&(xs(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=l0([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(xs(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),jae(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:uYe(u,o.index),routesMeta:c})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let l of Hae(o.path))i(o,s,l)}),t}function Hae(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=Hae(r.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),i&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function nYe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:cYe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var rYe=/^:\w+$/,iYe=3,oYe=2,sYe=1,aYe=10,lYe=-2,Vae=e=>e==="*";function uYe(e,t){let n=e.split("/"),r=n.length;return n.some(Vae)&&(r+=lYe),t&&(r+=oYe),n.filter(i=>!Vae(i)).reduce((i,o)=>i+(rYe.test(o)?iYe:o===""?sYe:aYe),r)}function cYe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function dYe(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let s=0;s<n.length;++s){let a=n[s],l=s===n.length-1,u=i==="/"?t:t.slice(i.length)||"/",c=MV({path:a.relativePath,caseSensitive:a.caseSensitive,end:l},u);if(!c)return null;Object.assign(r,c.params);let f=a.route;o.push({params:r,pathname:l0([i,c.pathname]),pathnameBase:gYe(l0([i,c.pathnameBase])),route:f}),c.pathnameBase!=="/"&&(i=l0([i,c.pathnameBase]))}return o}function MV(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=pYe(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((u,c,f)=>{if(c==="*"){let d=a[f]||"";s=o.slice(0,o.length-d.length).replace(/(.)\/+$/,"$1")}return u[c]=hYe(a[f]||"",c),u},{}),pathname:o,pathnameBase:s,pattern:e}}function pYe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),OV(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(s,a)=>(r.push(a),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function fYe(e){try{return decodeURI(e)}catch(t){return OV(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function hYe(e,t){try{return decodeURIComponent(e)}catch(n){return OV(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function YC(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Wae(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?O1(e):e;return{pathname:n?n.startsWith("/")?n:mYe(n,t):t,search:vYe(r),hash:yYe(i)}}function mYe(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function CV(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function BV(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function NV(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=O1(e):(i=ub({},e),xs(!i.pathname||!i.pathname.includes("?"),CV("?","pathname","search",i)),xs(!i.pathname||!i.pathname.includes("#"),CV("#","pathname","hash",i)),xs(!i.search||!i.search.includes("#"),CV("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,a;if(r||s==null)a=n;else{let f=t.length-1;if(s.startsWith("..")){let d=s.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}a=f>=0?t[f]:"/"}let l=Wae(i,a),u=s&&s!=="/"&&s.endsWith("/"),c=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}var l0=e=>e.join("/").replace(/\/\/+/g,"/"),gYe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),vYe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,yYe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function GV(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Xae=["post","put","patch","delete"],HKt=new Set(Xae),xYe=["get",...Xae],WKt=new Set(xYe);var XKt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";var qKt=Symbol("deferred");function ZC(){return ZC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZC.apply(this,arguments)}var pb=nn.createContext(null),zV=nn.createContext(null);var r3=nn.createContext(null),fb=nn.createContext(null),Sp=nn.createContext({outlet:null,matches:[],isDataRoute:!1}),$ae=nn.createContext(null);function i3(){return nn.useContext(fb)!=null}function md(){return i3()||xs(!1),nn.useContext(fb).location}function Kae(e){nn.useContext(r3).static||nn.useLayoutEffect(e)}function If(){let{isDataRoute:e}=nn.useContext(Sp);return e?NYe():wYe()}function wYe(){i3()||xs(!1);let e=nn.useContext(pb),{basename:t,navigator:n}=nn.useContext(r3),{matches:r}=nn.useContext(Sp),{pathname:i}=md(),o=JSON.stringify(BV(r).map(l=>l.pathnameBase)),s=nn.useRef(!1);return Kae(()=>{s.current=!0}),nn.useCallback(function(l,u){if(u===void 0&&(u={}),!s.current)return;if(typeof l=="number"){n.go(l);return}let c=NV(l,JSON.parse(o),i,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:l0([t,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,o,i,e])}var PYe=nn.createContext(null);function Yae(e){let t=nn.useContext(Sp).outlet;return t&&nn.createElement(PYe.Provider,{value:e},t)}function f2(){let{matches:e}=nn.useContext(Sp),t=e[e.length-1];return t?t.params:{}}function Zae(e,t){return kYe(e,t)}function kYe(e,t,n){i3()||xs(!1);let{navigator:r}=nn.useContext(r3),{matches:i}=nn.useContext(Sp),o=i[i.length-1],s=o?o.params:{},a=o?o.pathname:"/",l=o?o.pathnameBase:"/",u=o&&o.route,c=md(),f;if(t){var d;let v=typeof t=="string"?O1(t):t;l==="/"||((d=v.pathname)==null?void 0:d.startsWith(l))||xs(!1),f=v}else f=c;let h=f.pathname||"/",m=l==="/"?h:h.slice(l.length)||"/",g=EV(e,{pathname:m}),b=OYe(g&&g.map(v=>Object.assign({},v,{params:Object.assign({},s,v.params),pathname:l0([l,r.encodeLocation?r.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:l0([l,r.encodeLocation?r.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,n);return t&&b?nn.createElement(fb.Provider,{value:{location:ZC({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Ff.Pop}},b):b}function AYe(){let e=Qae(),t=GV(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r};return nn.createElement(nn.Fragment,null,nn.createElement("h2",null,"Unexpected Application Error!"),nn.createElement("h3",{style:{fontStyle:"italic"}},t),n?nn.createElement("pre",{style:i},n):null,null)}var CYe=nn.createElement(AYe,null),FV=class extends nn.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?nn.createElement(Sp.Provider,{value:this.props.routeContext},nn.createElement($ae.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function SYe(e){let{routeContext:t,match:n,children:r}=e,i=nn.useContext(pb);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),nn.createElement(Sp.Provider,{value:t},r)}function OYe(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let o=e,s=(r=n)==null?void 0:r.errors;if(s!=null){let a=o.findIndex(l=>l.route.id&&s?.[l.route.id]);a>=0||xs(!1),o=o.slice(0,Math.min(o.length,a+1))}return o.reduceRight((a,l,u)=>{let c=l.route.id?s?.[l.route.id]:null,f=null;n&&(f=l.route.errorElement||CYe);let d=t.concat(o.slice(0,u+1)),h=()=>{let m;return c?m=f:l.route.Component?m=nn.createElement(l.route.Component,null):l.route.element?m=l.route.element:m=a,nn.createElement(SYe,{match:l,routeContext:{outlet:a,matches:d,isDataRoute:n!=null},children:m})};return n&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?nn.createElement(FV,{location:n.location,revalidation:n.revalidation,component:f,error:c,children:h(),routeContext:{outlet:null,matches:d,isDataRoute:!0}}):h()},null)}var IV;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(IV||(IV={}));var cb;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(cb||(cb={}));function EYe(e){let t=nn.useContext(pb);return t||xs(!1),t}function MYe(e){let t=nn.useContext(zV);return t||xs(!1),t}function BYe(e){let t=nn.useContext(Sp);return t||xs(!1),t}function Uae(e){let t=BYe(e),n=t.matches[t.matches.length-1];return n.route.id||xs(!1),n.route.id}function Qae(){var e;let t=nn.useContext($ae),n=MYe(cb.UseRouteError),r=Uae(cb.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function NYe(){let{router:e}=EYe(IV.UseNavigateStable),t=Uae(cb.UseNavigateStable),n=nn.useRef(!1);return Kae(()=>{n.current=!0}),nn.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,ZC({fromRouteId:t},o)))},[e,t])}function hb(e){let{to:t,replace:n,state:r,relative:i}=e;i3()||xs(!1);let{matches:o}=nn.useContext(Sp),{pathname:s}=md(),a=If(),l=NV(t,BV(o).map(c=>c.pathnameBase),s,i==="path"),u=JSON.stringify(l);return nn.useEffect(()=>a(JSON.parse(u),{replace:n,state:r,relative:i}),[a,u,i,n,r]),null}function TV(e){return Yae(e.context)}function ko(e){xs(!1)}function DV(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Ff.Pop,navigator:o,static:s=!1}=e;i3()&&xs(!1);let a=t.replace(/^\/*/,"/"),l=nn.useMemo(()=>({basename:a,navigator:o,static:s}),[a,o,s]);typeof r=="string"&&(r=O1(r));let{pathname:u="/",search:c="",hash:f="",state:d=null,key:h="default"}=r,m=nn.useMemo(()=>{let g=YC(u,a);return g==null?null:{location:{pathname:g,search:c,hash:f,state:d,key:h},navigationType:i}},[a,u,c,f,d,h,i]);return m==null?null:nn.createElement(r3.Provider,{value:l},nn.createElement(fb.Provider,{children:n,value:m}))}function RV(e){let{children:t,location:n}=e;return Zae(db(t),n)}var qae;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(qae||(qae={}));var UKt=new Promise(()=>{});function db(e,t){t===void 0&&(t=[]);let n=[];return nn.Children.forEach(e,(r,i)=>{if(!nn.isValidElement(r))return;let o=[...t,i];if(r.type===nn.Fragment){n.push.apply(n,db(r.props.children,o));return}r.type!==ko&&xs(!1),!r.props.index||!r.props.children||xs(!1);let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=db(r.props.children,o)),n.push(s)}),n}function LV(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function RYe(e,t){let n=LV(e);if(t)for(let r of t.keys())n.has(r)||t.getAll(r).forEach(i=>{n.append(r,i)});return n}function nle(e){let{basename:t,children:n,window:r}=e,i=La.useRef();i.current==null&&(i.current=Jae({window:r,v5Compat:!0}));let o=i.current,[s,a]=La.useState({action:o.action,location:o.location});return La.useLayoutEffect(()=>o.listen(a),[o]),La.createElement(DV,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o})}var kYt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";var ele;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(ele||(ele={}));var tle;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(tle||(tle={}));function rle(e){let t=La.useRef(LV(e)),n=La.useRef(!1),r=md(),i=La.useMemo(()=>RYe(r.search,n.current?null:t.current),[r.search]),o=If(),s=La.useCallback((a,l)=>{let u=LV(typeof a=="function"?a(i):a);n.current=!0,o("?"+u,l)},[o,i]);return[i,s]}var gb=ie(Pe()),Vr=gb.default.createContext(),mb=class extends gb.Component{constructor(t){super(t),this.state={isLoggedIn:!1,userData:{}}}setLogin=t=>{this.setState({isLoggedIn:t})};setUserData=t=>{this.setState({userData:t})};render(){let{setLogin:t,setUserData:n}=this,{isLoggedIn:r,userData:i}=this.state,o={isLoggedIn:r,setLogin:t,userData:i,setUserData:n};return gb.default.createElement(Vr.Provider,{value:o},this.props.children)}};var wi=ie(Pe());function vb(e,t){return function(){return e.apply(t,arguments)}}var{toString:LYe}=Object.prototype,{getPrototypeOf:jV}=Object,QC=(e=>t=>{let n=LYe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),zf=e=>(e=e.toLowerCase(),t=>QC(t)===e),eS=e=>t=>typeof t===e,{isArray:o3}=Array,yb=eS("undefined");function VYe(e){return e!==null&&!yb(e)&&e.constructor!==null&&!yb(e.constructor)&&gd(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var sle=zf("ArrayBuffer");function JYe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&sle(e.buffer),t}var jYe=eS("string"),gd=eS("function"),ale=eS("number"),tS=e=>e!==null&&typeof e=="object",HYe=e=>e===!0||e===!1,UC=e=>{if(QC(e)!=="object")return!1;let t=jV(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},WYe=zf("Date"),XYe=zf("File"),qYe=zf("Blob"),$Ye=zf("FileList"),KYe=e=>tS(e)&&gd(e.pipe),YYe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||gd(e.append)&&((t=QC(e))==="formdata"||t==="object"&&gd(e.toString)&&e.toString()==="[object FormData]"))},ZYe=zf("URLSearchParams"),UYe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function xb(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),o3(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{let o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length,a;for(r=0;r<s;r++)a=o[r],t.call(null,e[a],a,e)}}function lle(e,t){t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}var ule=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),cle=e=>!yb(e)&&e!==ule;function JV(){let{caseless:e}=cle(this)&&this||{},t={},n=(r,i)=>{let o=e&&lle(t,i)||i;UC(t[o])&&UC(r)?t[o]=JV(t[o],r):UC(r)?t[o]=JV({},r):o3(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&xb(arguments[r],n);return t}var QYe=(e,t,n,{allOwnKeys:r}={})=>(xb(t,(i,o)=>{n&&gd(i)?e[o]=vb(i,n):e[o]=i},{allOwnKeys:r}),e),eZe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),tZe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},nZe=(e,t,n,r)=>{let i,o,s,a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&jV(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},rZe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},iZe=e=>{if(!e)return null;if(o3(e))return e;let t=e.length;if(!ale(t))return null;let n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},oZe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&jV(Uint8Array)),sZe=(e,t)=>{let r=(e&&e[Symbol.iterator]).call(e),i;for(;(i=r.next())&&!i.done;){let o=i.value;t.call(e,o[0],o[1])}},aZe=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},lZe=zf("HTMLFormElement"),uZe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),ile=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),cZe=zf("RegExp"),dle=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};xb(n,(i,o)=>{t(i,o,e)!==!1&&(r[o]=i)}),Object.defineProperties(e,r)},dZe=e=>{dle(e,(t,n)=>{if(gd(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;let r=e[n];if(!!gd(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},pZe=(e,t)=>{let n={},r=i=>{i.forEach(o=>{n[o]=!0})};return o3(e)?r(e):r(String(e).split(t)),n},fZe=()=>{},hZe=(e,t)=>(e=+e,Number.isFinite(e)?e:t),VV="abcdefghijklmnopqrstuvwxyz",ole="0123456789",ple={DIGIT:ole,ALPHA:VV,ALPHA_DIGIT:VV+VV.toUpperCase()+ole},mZe=(e=16,t=ple.ALPHA_DIGIT)=>{let n="",{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function gZe(e){return!!(e&&gd(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}var vZe=e=>{let t=new Array(10),n=(r,i)=>{if(tS(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;let o=o3(r)?[]:{};return xb(r,(s,a)=>{let l=n(s,i+1);!yb(l)&&(o[a]=l)}),t[i]=void 0,o}}return r};return n(e,0)},yZe=zf("AsyncFunction"),xZe=e=>e&&(tS(e)||gd(e))&&gd(e.then)&&gd(e.catch),rt={isArray:o3,isArrayBuffer:sle,isBuffer:VYe,isFormData:YYe,isArrayBufferView:JYe,isString:jYe,isNumber:ale,isBoolean:HYe,isObject:tS,isPlainObject:UC,isUndefined:yb,isDate:WYe,isFile:XYe,isBlob:qYe,isRegExp:cZe,isFunction:gd,isStream:KYe,isURLSearchParams:ZYe,isTypedArray:oZe,isFileList:$Ye,forEach:xb,merge:JV,extend:QYe,trim:UYe,stripBOM:eZe,inherits:tZe,toFlatObject:nZe,kindOf:QC,kindOfTest:zf,endsWith:rZe,toArray:iZe,forEachEntry:sZe,matchAll:aZe,isHTMLForm:lZe,hasOwnProperty:ile,hasOwnProp:ile,reduceDescriptors:dle,freezeMethods:dZe,toObjectSet:pZe,toCamelCase:uZe,noop:fZe,toFiniteNumber:hZe,findKey:lle,global:ule,isContextDefined:cle,ALPHABET:ple,generateString:mZe,isSpecCompliantForm:gZe,toJSONObject:vZe,isAsyncFn:yZe,isThenable:xZe};function s3(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}rt.inherits(s3,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:rt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var fle=s3.prototype,hle={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{hle[e]={value:e}});Object.defineProperties(s3,hle);Object.defineProperty(fle,"isAxiosError",{value:!0});s3.from=(e,t,n,r,i,o)=>{let s=Object.create(fle);return rt.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),s3.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};var Zr=s3;var nS=null;function HV(e){return rt.isPlainObject(e)||rt.isArray(e)}function gle(e){return rt.endsWith(e,"[]")?e.slice(0,-2):e}function mle(e,t,n){return e?e.concat(t).map(function(i,o){return i=gle(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function _Ze(e){return rt.isArray(e)&&!e.some(HV)}var bZe=rt.toFlatObject(rt,{},null,function(t){return/^is[A-Z]/.test(t)});function wZe(e,t,n){if(!rt.isObject(e))throw new TypeError("target must be an object");t=t||new(nS||FormData),n=rt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,b){return!rt.isUndefined(b[g])});let r=n.metaTokens,i=n.visitor||c,o=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&rt.isSpecCompliantForm(t);if(!rt.isFunction(i))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(rt.isDate(m))return m.toISOString();if(!l&&rt.isBlob(m))throw new Zr("Blob is not supported. Use a Buffer instead.");return rt.isArrayBuffer(m)||rt.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,g,b){let v=m;if(m&&!b&&typeof m=="object"){if(rt.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(rt.isArray(m)&&_Ze(m)||(rt.isFileList(m)||rt.endsWith(g,"[]"))&&(v=rt.toArray(m)))return g=gle(g),v.forEach(function(y,_){!(rt.isUndefined(y)||y===null)&&t.append(s===!0?mle([g],_,o):s===null?g:g+"[]",u(y))}),!1}return HV(m)?!0:(t.append(mle(b,g,o),u(m)),!1)}let f=[],d=Object.assign(bZe,{defaultVisitor:c,convertValue:u,isVisitable:HV});function h(m,g){if(!rt.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(m),rt.forEach(m,function(v,x){(!(rt.isUndefined(v)||v===null)&&i.call(t,v,rt.isString(x)?x.trim():x,g,d))===!0&&h(v,g?g.concat(x):[x])}),f.pop()}}if(!rt.isObject(e))throw new TypeError("data must be an object");return h(e),t}var E1=wZe;function vle(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function yle(e,t){this._pairs=[],e&&E1(e,this,t)}var xle=yle.prototype;xle.append=function(t,n){this._pairs.push([t,n])};xle.toString=function(t){let n=t?function(r){return t.call(this,r,vle)}:vle;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};var rS=yle;function PZe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function _b(e,t,n){if(!t)return e;let r=n&&n.encode||PZe,i=n&&n.serialize,o;if(i?o=i(t,n):o=rt.isURLSearchParams(t)?t.toString():new rS(t,n).toString(r),o){let s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}var WV=class{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){rt.forEach(this.handlers,function(r){r!==null&&t(r)})}},XV=WV;var iS={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var _le=typeof URLSearchParams<"u"?URLSearchParams:rS;var ble=typeof FormData<"u"?FormData:null;var wle=typeof Blob<"u"?Blob:null;var kZe=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),AZe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),_l={isBrowser:!0,classes:{URLSearchParams:_le,FormData:ble,Blob:wle},isStandardBrowserEnv:kZe,isStandardBrowserWebWorkerEnv:AZe,protocols:["http","https","file","blob","url","data"]};function qV(e,t){return E1(e,new _l.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return _l.isNode&&rt.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function CZe(e){return rt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function SZe(e){let t={},n=Object.keys(e),r,i=n.length,o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function OZe(e){function t(n,r,i,o){let s=n[o++],a=Number.isFinite(+s),l=o>=n.length;return s=!s&&rt.isArray(i)?i.length:s,l?(rt.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!rt.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&rt.isArray(i[s])&&(i[s]=SZe(i[s])),!a)}if(rt.isFormData(e)&&rt.isFunction(e.entries)){let n={};return rt.forEachEntry(e,(r,i)=>{t(CZe(r),i,n,0)}),n}return null}var oS=OZe;var EZe={"Content-Type":void 0};function MZe(e,t,n){if(rt.isString(e))try{return(t||JSON.parse)(e),rt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var sS={transitional:iS,adapter:["xhr","http"],transformRequest:[function(t,n){let r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=rt.isObject(t);if(o&&rt.isHTMLForm(t)&&(t=new FormData(t)),rt.isFormData(t))return i&&i?JSON.stringify(oS(t)):t;if(rt.isArrayBuffer(t)||rt.isBuffer(t)||rt.isStream(t)||rt.isFile(t)||rt.isBlob(t))return t;if(rt.isArrayBufferView(t))return t.buffer;if(rt.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return qV(t,this.formSerializer).toString();if((a=rt.isFileList(t))||r.indexOf("multipart/form-data")>-1){let l=this.env&&this.env.FormData;return E1(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),MZe(t)):t}],transformResponse:[function(t){let n=this.transitional||sS.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&rt.isString(t)&&(r&&!this.responseType||i)){let s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?Zr.from(a,Zr.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_l.classes.FormData,Blob:_l.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};rt.forEach(["delete","get","head"],function(t){sS.headers[t]={}});rt.forEach(["post","put","patch"],function(t){sS.headers[t]=rt.merge(EZe)});var a3=sS;var BZe=rt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ple=e=>{let t={},n,r,i;return e&&e.split(`
`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&BZe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};var kle=Symbol("internals");function bb(e){return e&&String(e).trim().toLowerCase()}function aS(e){return e===!1||e==null?e:rt.isArray(e)?e.map(aS):String(e)}function NZe(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var GZe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function $V(e,t,n,r,i){if(rt.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!rt.isString(t)){if(rt.isString(r))return t.indexOf(r)!==-1;if(rt.isRegExp(r))return r.test(t)}}function FZe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function IZe(e,t){let n=rt.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,s){return this[r].call(this,t,i,o,s)},configurable:!0})})}var l3=class{constructor(t){t&&this.set(t)}set(t,n,r){let i=this;function o(a,l,u){let c=bb(l);if(!c)throw new Error("header name must be a non-empty string");let f=rt.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=aS(a))}let s=(a,l)=>rt.forEach(a,(u,c)=>o(u,c,l));return rt.isPlainObject(t)||t instanceof this.constructor?s(t,n):rt.isString(t)&&(t=t.trim())&&!GZe(t)?s(Ple(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=bb(t),t){let r=rt.findKey(this,t);if(r){let i=this[r];if(!n)return i;if(n===!0)return NZe(i);if(rt.isFunction(n))return n.call(this,i,r);if(rt.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=bb(t),t){let r=rt.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||$V(this,this[r],r,n)))}return!1}delete(t,n){let r=this,i=!1;function o(s){if(s=bb(s),s){let a=rt.findKey(r,s);a&&(!n||$V(r,r[a],a,n))&&(delete r[a],i=!0)}}return rt.isArray(t)?t.forEach(o):o(t),i}clear(t){let n=Object.keys(this),r=n.length,i=!1;for(;r--;){let o=n[r];(!t||$V(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){let n=this,r={};return rt.forEach(this,(i,o)=>{let s=rt.findKey(r,o);if(s){n[s]=aS(i),delete n[o];return}let a=t?FZe(o):String(o).trim();a!==o&&delete n[o],n[a]=aS(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let n=Object.create(null);return rt.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&rt.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){let r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){let r=(this[kle]=this[kle]={accessors:{}}).accessors,i=this.prototype;function o(s){let a=bb(s);r[a]||(IZe(i,s),r[a]=!0)}return rt.isArray(t)?t.forEach(o):o(t),this}};l3.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);rt.freezeMethods(l3.prototype);rt.freezeMethods(l3);var Zl=l3;function wb(e,t){let n=this||a3,r=t||n,i=Zl.from(r.headers),o=r.data;return rt.forEach(e,function(a){o=a.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Pb(e){return!!(e&&e.__CANCEL__)}function Ale(e,t,n){Zr.call(this,e??"canceled",Zr.ERR_CANCELED,t,n),this.name="CanceledError"}rt.inherits(Ale,Zr,{__CANCEL__:!0});var M1=Ale;function KV(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Zr("Request failed with status code "+n.status,[Zr.ERR_BAD_REQUEST,Zr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}var Cle=_l.isStandardBrowserEnv?function(){return{write:function(n,r,i,o,s,a){let l=[];l.push(n+"="+encodeURIComponent(r)),rt.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),rt.isString(o)&&l.push("path="+o),rt.isString(s)&&l.push("domain="+s),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){let r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function YV(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ZV(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function kb(e,t){return e&&!YV(t)?ZV(e,t):t}var Sle=_l.isStandardBrowserEnv?function(){let t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),r;function i(o){let s=o;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(s){let a=rt.isString(s)?i(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function UV(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function zZe(e,t){e=e||10;let n=new Array(e),r=new Array(e),i=0,o=0,s;return t=t!==void 0?t:1e3,function(l){let u=Date.now(),c=r[o];s||(s=u),n[i]=l,r[i]=u;let f=o,d=0;for(;f!==i;)d+=n[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-s<t)return;let h=c&&u-c;return h?Math.round(d*1e3/h):void 0}}var Ole=zZe;function Ele(e,t){let n=0,r=Ole(50,250);return i=>{let o=i.loaded,s=i.lengthComputable?i.total:void 0,a=o-n,l=r(a),u=o<=s;n=o;let c={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&u?(s-o)/l:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}var TZe=typeof XMLHttpRequest<"u",Mle=TZe&&function(e){return new Promise(function(n,r){let i=e.data,o=Zl.from(e.headers).normalize(),s=e.responseType,a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}rt.isFormData(i)&&(_l.isStandardBrowserEnv||_l.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(e.auth){let h=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(h+":"+m))}let c=kb(e.baseURL,e.url);u.open(e.method.toUpperCase(),_b(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function f(){if(!u)return;let h=Zl.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),g={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:h,config:e,request:u};KV(function(v){n(v),l()},function(v){r(v),l()},g),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){!u||(r(new Zr("Request aborted",Zr.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new Zr("Network Error",Zr.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",g=e.transitional||iS;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),r(new Zr(m,g.clarifyTimeoutError?Zr.ETIMEDOUT:Zr.ECONNABORTED,e,u)),u=null},_l.isStandardBrowserEnv){let h=(e.withCredentials||Sle(c))&&e.xsrfCookieName&&Cle.read(e.xsrfCookieName);h&&o.set(e.xsrfHeaderName,h)}i===void 0&&o.setContentType(null),"setRequestHeader"in u&&rt.forEach(o.toJSON(),function(m,g){u.setRequestHeader(g,m)}),rt.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&s!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",Ele(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Ele(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=h=>{!u||(r(!h||h.type?new M1(null,e,u):h),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));let d=UV(c);if(d&&_l.protocols.indexOf(d)===-1){r(new Zr("Unsupported protocol "+d+":",Zr.ERR_BAD_REQUEST,e));return}u.send(i||null)})};var lS={http:nS,xhr:Mle};rt.forEach(lS,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});var Ble={getAdapter:e=>{e=rt.isArray(e)?e:[e];let{length:t}=e,n,r;for(let i=0;i<t&&(n=e[i],!(r=rt.isString(n)?lS[n.toLowerCase()]:n));i++);if(!r)throw r===!1?new Zr(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(rt.hasOwnProp(lS,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!rt.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:lS};function QV(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new M1(null,e)}function uS(e){return QV(e),e.headers=Zl.from(e.headers),e.data=wb.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ble.getAdapter(e.adapter||a3.adapter)(e).then(function(r){return QV(e),r.data=wb.call(e,e.transformResponse,r),r.headers=Zl.from(r.headers),r},function(r){return Pb(r)||(QV(e),r&&r.response&&(r.response.data=wb.call(e,e.transformResponse,r.response),r.response.headers=Zl.from(r.response.headers))),Promise.reject(r)})}var Nle=e=>e instanceof Zl?e.toJSON():e;function u0(e,t){t=t||{};let n={};function r(u,c,f){return rt.isPlainObject(u)&&rt.isPlainObject(c)?rt.merge.call({caseless:f},u,c):rt.isPlainObject(c)?rt.merge({},c):rt.isArray(c)?c.slice():c}function i(u,c,f){if(rt.isUndefined(c)){if(!rt.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function o(u,c){if(!rt.isUndefined(c))return r(void 0,c)}function s(u,c){if(rt.isUndefined(c)){if(!rt.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}let l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,c)=>i(Nle(u),Nle(c),!0)};return rt.forEach(Object.keys(Object.assign({},e,t)),function(c){let f=l[c]||i,d=f(e[c],t[c],c);rt.isUndefined(d)&&f!==a||(n[c]=d)}),n}var cS="1.4.0";var eJ={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{eJ[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var Gle={};eJ.transitional=function(t,n,r){function i(o,s){return"[Axios v"+cS+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,a)=>{if(t===!1)throw new Zr(i(s," has been removed"+(n?" in "+n:"")),Zr.ERR_DEPRECATED);return n&&!Gle[s]&&(Gle[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,a):!0}};function DZe(e,t,n){if(typeof e!="object")throw new Zr("options must be an object",Zr.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let o=r[i],s=t[o];if(s){let a=e[o],l=a===void 0||s(a,o,e);if(l!==!0)throw new Zr("option "+o+" must be "+l,Zr.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Zr("Unknown option "+o,Zr.ERR_BAD_OPTION)}}var dS={assertOptions:DZe,validators:eJ};var B1=dS.validators,u3=class{constructor(t){this.defaults=t,this.interceptors={request:new XV,response:new XV}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=u0(this.defaults,n);let{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&dS.assertOptions(r,{silentJSONParsing:B1.transitional(B1.boolean),forcedJSONParsing:B1.transitional(B1.boolean),clarifyTimeoutError:B1.transitional(B1.boolean)},!1),i!=null&&(rt.isFunction(i)?n.paramsSerializer={serialize:i}:dS.assertOptions(i,{encode:B1.function,serialize:B1.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s;s=o&&rt.merge(o.common,o[n.method]),s&&rt.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=Zl.concat(s,o);let a=[],l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});let u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,f=0,d;if(!l){let m=[uS.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,u),d=m.length,c=Promise.resolve(n);f<d;)c=c.then(m[f++],m[f++]);return c}d=a.length;let h=n;for(f=0;f<d;){let m=a[f++],g=a[f++];try{h=m(h)}catch(b){g.call(this,b);break}}try{c=uS.call(this,h)}catch(m){return Promise.reject(m)}for(f=0,d=u.length;f<d;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=u0(this.defaults,t);let n=kb(t.baseURL,t.url);return _b(n,t.params,t.paramsSerializer)}};rt.forEach(["delete","get","head","options"],function(t){u3.prototype[t]=function(n,r){return this.request(u0(r||{},{method:t,url:n,data:(r||{}).data}))}});rt.forEach(["post","put","patch"],function(t){function n(r){return function(o,s,a){return this.request(u0(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}u3.prototype[t]=n(),u3.prototype[t+"Form"]=n(!0)});var Ab=u3;var Cb=class{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});let r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o,s=new Promise(a=>{r.subscribe(a),o=a}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,a){r.reason||(r.reason=new M1(o,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Cb(function(i){t=i}),cancel:t}}},Fle=Cb;function tJ(e){return function(n){return e.apply(null,n)}}function nJ(e){return rt.isObject(e)&&e.isAxiosError===!0}var rJ={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(rJ).forEach(([e,t])=>{rJ[t]=e});var Ile=rJ;function zle(e){let t=new Ab(e),n=vb(Ab.prototype.request,t);return rt.extend(n,Ab.prototype,t,{allOwnKeys:!0}),rt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return zle(u0(e,i))},n}var na=zle(a3);na.Axios=Ab;na.CanceledError=M1;na.CancelToken=Fle;na.isCancel=Pb;na.VERSION=cS;na.toFormData=E1;na.AxiosError=Zr;na.Cancel=na.CanceledError;na.all=function(t){return Promise.all(t)};na.spread=tJ;na.isAxiosError=nJ;na.mergeConfig=u0;na.AxiosHeaders=Zl;na.formToJSON=e=>oS(rt.isHTMLForm(e)?new FormData(e):e);na.HttpStatusCode=Ile;na.default=na;var Or=na;var{Axios:nQt,AxiosError:rQt,CanceledError:iQt,isCancel:oQt,CancelToken:sQt,VERSION:aQt,all:lQt,Cancel:uQt,isAxiosError:cQt,spread:dQt,toFormData:pQt,AxiosHeaders:fQt,HttpStatusCode:hQt,formToJSON:mQt,mergeConfig:gQt}=Or;function pS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var RZe={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function iJ(e,t){function n(i,o,s){if(!(typeof document>"u")){s=pS({},t,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in s)!s[l]||(a+="; "+l,s[l]!==!0&&(a+="="+s[l].split(";")[0]));return document.cookie=i+"="+e.write(o,i)+a}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],s={},a=0;a<o.length;a++){var l=o[a].split("="),u=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(s[c]=e.read(u,c),i===c)break}catch{}}return i?s[i]:s}}return Object.create({set:n,get:r,remove:function(i,o){n(i,"",pS({},o,{expires:-1}))},withAttributes:function(i){return iJ(this.converter,pS({},this.attributes,i))},withConverter:function(i){return iJ(pS({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Va=iJ(RZe,{path:"/"});var Ao=()=>({accessToken:localStorage.getItem("accessToken"),clientId:localStorage.getItem("clientId"),uid:localStorage.getItem("uid"),expiry:localStorage.getItem("expiry"),userId:localStorage.getItem("userId")}),LZe=(e,t,n,r,i)=>{localStorage.setItem("accessToken",e),localStorage.setItem("clientId",t),localStorage.setItem("uid",n),localStorage.setItem("expiry",r),localStorage.setItem("userId",i)},VZe=()=>{localStorage.removeItem("accessToken"),localStorage.removeItem("clientId"),localStorage.removeItem("uid"),localStorage.removeItem("expiry"),localStorage.removeItem("userId")},Tle=()=>{Va.set("isAuthenticated",!0)},oJ=(e,t,n,r,i)=>(Va.set("isAuthenticated",!0),LZe(e,t,n,r,i)),sJ=()=>{VZe(),Va.remove("isAuthenticated")},Dle=()=>Va.get("isAuthenticated");var lJ=ie(Rle());var Lle=()=>{let{accessToken:e,clientId:t,uid:n}=Ao();return lJ.default.logToConsole=!1,new lJ.default(window.bootstrap.pusher.key,{cluster:window.bootstrap.pusher.cluster.toString(),channelAuthorization:{endpoint:"/pusher/auth",headers:{"access-token":e,client:t,uid:n}}})},Vle=async()=>{let{accessToken:e,clientId:t,uid:n}=Ao();try{return{success:!0,response:await Or({method:"post",url:"/paragon",headers:{Accept:"application/json","access-token":e,client:t,uid:n}})}}catch(r){return{success:!1,response:r}}},Jle=async e=>{try{return{success:!0,response:await Or({method:"post",url:"/builder/bootstrap",data:{website:e},headers:{Accept:"application/json"}})}}catch(t){return{success:!1,response:t}}},hS=async()=>{let{accessToken:e,clientId:t,uid:n}=Ao();try{return{success:!0,response:await Or({method:"get",url:"/pages",headers:{Accept:"application/json","access-token":e,client:t,uid:n}})}}catch(r){return{success:!1,response:r}}};var jle=async e=>{let{accessToken:t,clientId:n,uid:r}=Ao();try{return{success:!0,response:await Or({method:"get",url:"/pages/"+e,headers:{Accept:"application/json","access-token":t,client:n,uid:r}})}}catch(i){return{success:!1,response:i}}},Hle=async(e,t,n)=>{let{accessToken:r,clientId:i,uid:o}=Ao();try{return{success:!0,response:await Or({method:"post",url:"/pages/"+e+"/ask_jarvis",headers:{Accept:"application/json","access-token":r,client:i,uid:o},data:{question:t,response_type:n}})}}catch(s){return{success:!1,response:s}}},Wle=async(e,t,n,r,i)=>{let{accessToken:o,clientId:s,uid:a}=Ao();try{return{success:!0,response:await Or({method:"post",url:"/pages/"+e+"/generate_post",headers:{Accept:"application/json","access-token":o,client:s,uid:a},data:{post_type:t,hook:n,story:r,model:i}})}}catch(l){return{success:!1,response:l}}},Xle=async(e,t,n,r="",i="")=>{let{accessToken:o,clientId:s,uid:a}=Ao();try{return{success:!0,response:await Or({method:"post",url:"/pages/"+e+"/generate_email",data:{page_entry_id:t,email_type:n,from_name:r,from_role:i},headers:{Accept:"application/json","access-token":o,client:s,uid:a}})}}catch(l){return{success:!1,response:l}}},c3=async(e,t)=>{let{accessToken:n,clientId:r,uid:i}=Ao();try{return{success:!0,response:await Or({method:"get",url:"/pages/"+e+"/hook_ideas",params:{post_type:t},headers:{Accept:"application/json","access-token":n,client:r,uid:i}})}}catch(o){return{success:!1,response:o}}},qle=async e=>{let{accessToken:t,clientId:n,uid:r}=Ao();try{return{success:!0,response:await Or({method:"get",url:"/pages/"+e+"/title_ideas",headers:{Accept:"application/json","access-token":t,client:n,uid:r}})}}catch(i){return{success:!1,response:i}}},$le=async e=>{let{accessToken:t,clientId:n,uid:r}=Ao();try{return{success:!0,response:await Or({method:"get",url:"/pages/"+e+"/credibility_ideas",headers:{Accept:"application/json","access-token":t,client:n,uid:r}})}}catch(i){return{success:!1,response:i}}},Kle=async(e,t)=>{let{accessToken:n,clientId:r,uid:i}=Ao();try{return{success:!0,response:await Or({method:"get",url:"/pages/"+e+"/metrics",params:{timeframe:t},headers:{Accept:"application/json","access-token":n,client:r,uid:i}})}}catch(o){return{success:!1,response:o}}},Yle=async(e,t)=>{let{accessToken:n,clientId:r,uid:i}=Ao();try{return{success:!0,response:await Or({method:"get",url:"/pages/"+e+"/today",params:{timeframe:t},headers:{Accept:"application/json","access-token":n,client:r,uid:i}})}}catch(o){return{success:!1,response:o}}},mS=async e=>{let{accessToken:t,clientId:n,uid:r}=Ao();try{return{success:!0,response:await Or({method:"get",url:"/pages/"+e+"/overview",headers:{Accept:"application/json","access-token":t,client:n,uid:r}})}}catch(i){return{success:!1,response:i}}},Zle=async(e,t)=>{try{return{success:!0,response:await Or({method:"get",url:"/pages/"+e+"/snapshot",params:{secret:t},headers:{Accept:"application/json"}})}}catch(n){return{success:!1,response:n}}},Ule=async(e,t)=>{let{accessToken:n,clientId:r,uid:i}=Ao();try{return{success:!0,response:await Or({method:"get",url:"/pages/"+e+"/entries",params:{timeframe:t},headers:{Accept:"application/json","access-token":n,client:r,uid:i}})}}catch(o){return{success:!1,response:o}}},Qle=async e=>{let{accessToken:t,clientId:n,uid:r}=Ao();try{return{success:!0,response:await Or({method:"get",url:"/pages/"+e+"/entries",responseType:"arraybuffer",headers:{Accept:"application/csv","access-token":t,client:n,uid:r}})}}catch(i){return{success:!1,response:i}}},gS=async e=>{let{accessToken:t,clientId:n,uid:r}=Ao();try{return{success:!0,response:await Or({method:"post",url:"/pages",data:{page:e},headers:{Accept:"application/json","access-token":t,client:n,uid:r}})}}catch(i){return{success:!1,response:i}}},eue=async e=>{let{accessToken:t,clientId:n,uid:r}=Ao();try{return{success:!0,response:await Or({method:"put",url:"/pages/"+e.id,data:{page:e},headers:{Accept:"application/json","access-token":t,client:n,uid:r}})}}catch(i){return{success:!1,response:i}}},tue=async e=>{let{accessToken:t,clientId:n,uid:r}=Ao();try{return{success:!0,response:await Or({method:"delete",url:"/pages/"+e,headers:{Accept:"application/json","access-token":t,client:n,uid:r}})}}catch(i){return{success:!1,response:i}}},nue=async e=>{let{accessToken:t,clientId:n,uid:r}=Ao();try{return{success:!0,response:await Or({method:"get",url:"/pages/"+e+"/clone",headers:{Accept:"application/json","access-token":t,client:n,uid:r}})}}catch(i){return{success:!1,response:i}}};var rue=async()=>{let{accessToken:e,clientId:t,uid:n}=Ao();try{return{success:!0,response:await Or({method:"get",url:"/subscriptions/1",headers:{Accept:"application/json","access-token":e,client:t,uid:n}})}}catch(r){return{success:!1,response:r}}},vS=async(e,t)=>{let{accessToken:n,clientId:r,uid:i}=Ao();try{return{success:!0,response:await Or({method:"post",url:"/subscriptions/1/upgrade",headers:{Accept:"application/json","access-token":n,client:r,uid:i},data:{subscription:{plan:e,add_content_launchpack:t}}})}}catch(o){return{success:!1,response:o}}};var iue=async()=>{let{accessToken:e,clientId:t,uid:n}=Ao();try{return{success:!0,response:await Or({method:"post",url:"/subscriptions/1/activate_pro",headers:{Accept:"application/json","access-token":e,client:t,uid:n}})}}catch(r){return{success:!1,response:r}}},oue=async(e,t)=>{try{let n=await Or({method:"post",url:"/auth/sign_in",data:{email:e,password:t}}),r=n.headers["access-token"],{client:i,expiry:o,uid:s}=n.headers,{id:a}=n.data.data;return oJ(r,i,s,o,a),{success:!0,response:n}}catch(n){return{success:!1,errors:n}}},sue=async()=>{let{accessToken:e,clientId:t,uid:n}=Ao();try{let r=await Or({method:"delete",url:"/auth/sign_out",headers:{"access-token":e,client:t,uid:n}});if(r?.data?.success)return sJ(),{success:!0,response:r}}catch(r){return{success:!1,errors:r}}},aue=async(e,t,n,r,i)=>{try{return{success:!0,response:await Or({method:"put",url:"/auth/password",data:{password:e,password_confirmation:t},headers:{"access-token":n,client:r,uid:i}})}}catch(o){return{success:!1,errors:o}}},lue=async e=>{try{return(await Or({method:"post",url:"/auth/password",data:{redirect_url:"https://instantlanding.page/reset_password",email:e}})).data}catch(t){return{success:!1,errors:t}}},uue=async(e,t,n,r,i,o=!1)=>{try{let s=await Or.post("/auth",{email:e,password:t});try{let a=await Or.post("/subscriptions",{subscription:{email:e,token:n.id,add_content_launchpack:o}}),l=s.headers["access-token"],{client:u,expiry:c,uid:f}=s.headers,{id:d}=s.data.data;return oJ(l,u,f,c,d),await gS(i)}catch(a){return console.log("Subscription Creation Error",a),{success:!1,response:a,errors:a.response.data.errors}}}catch(s){return console.log("Account Creation Error",s),{success:!1,response:s,errors:s.response.data.errors.full_messages}}},cue=async()=>{let{accessToken:e,clientId:t,uid:n}=Ao();if(e&&t&&n)try{let r=await Or({method:"get",url:"/auth/validate_token",headers:{"access-token":e,client:t,uid:n}});if(r.data.success)return Tle(),{isAuthenticated:!0,response:r}}catch(r){return sJ(),{isAuthenticated:!1,response:res,errors:r}}else return{isAuthenticated:!1}};var Sb=ie(Pe(),1);function JZe(e,t){return Sb.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),Sb.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 19l-7-7m0 0l7-7m-7 7h18"}))}var jZe=Sb.forwardRef(JZe),vd=jZe;var Ob=ie(Pe(),1);function HZe(e,t){return Ob.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),Ob.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14 5l7 7m0 0l-7 7m7-7H3"}))}var WZe=Ob.forwardRef(HZe),Vu=WZe;var Eb=ie(Pe(),1);function XZe(e,t){return Eb.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),Eb.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 7l5 5m0 0l-5 5m5-5H6"}))}var qZe=Eb.forwardRef(XZe),Op=qZe;var Mb=ie(Pe(),1);function $Ze(e,t){return Mb.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),Mb.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4M7.835 4.697a3.42 3.42 0 001.946-.806 3.42 3.42 0 014.438 0 3.42 3.42 0 001.946.806 3.42 3.42 0 013.138 3.138 3.42 3.42 0 00.806 1.946 3.42 3.42 0 010 4.438 3.42 3.42 0 00-.806 1.946 3.42 3.42 0 01-3.138 3.138 3.42 3.42 0 00-1.946.806 3.42 3.42 0 01-4.438 0 3.42 3.42 0 00-1.946-.806 3.42 3.42 0 01-3.138-3.138 3.42 3.42 0 00-.806-1.946 3.42 3.42 0 010-4.438 3.42 3.42 0 00.806-1.946 3.42 3.42 0 013.138-3.138z"}))}var KZe=Mb.forwardRef($Ze),uJ=KZe;var Bb=ie(Pe(),1);function YZe(e,t){return Bb.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),Bb.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"}))}var ZZe=Bb.forwardRef(YZe),cJ=ZZe;var Nb=ie(Pe(),1);function UZe(e,t){return Nb.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),Nb.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"}))}var QZe=Nb.forwardRef(UZe),Gb=QZe;var Fb=ie(Pe(),1);function eUe(e,t){return Fb.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),Fb.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-3.5L5 21V5z"}))}var tUe=Fb.forwardRef(eUe),dJ=tUe;var Ib=ie(Pe(),1);function nUe(e,t){return Ib.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),Ib.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"}))}var rUe=Ib.forwardRef(nUe),yS=rUe;var zb=ie(Pe(),1);function iUe(e,t){return zb.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),zb.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z"}))}var oUe=zb.forwardRef(iUe),pJ=oUe;var Tb=ie(Pe(),1);function sUe(e,t){return Tb.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),Tb.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"}))}var aUe=Tb.forwardRef(sUe),fJ=aUe;var Db=ie(Pe(),1);function lUe(e,t){return Db.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),Db.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"}))}var uUe=Db.forwardRef(lUe),hJ=uUe;var d3=ie(Pe(),1);function cUe(e,t){return d3.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d3.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),d3.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}))}var dUe=d3.forwardRef(cUe),xS=dUe;var Rb=ie(Pe(),1);function pUe(e,t){return Rb.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),Rb.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))}var fUe=Rb.forwardRef(pUe),mJ=fUe;var Lb=ie(Pe(),1);function hUe(e,t){return Lb.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),Lb.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z"}))}var mUe=Lb.forwardRef(hUe),gJ=mUe;var Vb=ie(Pe(),1);function gUe(e,t){return Vb.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),Vb.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"}))}var vUe=Vb.forwardRef(gUe),Jb=vUe;var jb=ie(Pe(),1);function yUe(e,t){return jb.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),jb.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16M4 18h16"}))}var xUe=jb.forwardRef(yUe),vJ=xUe;var Hb=ie(Pe(),1);function _Ue(e,t){return Hb.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),Hb.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 19l9 2-9-18-9 18 9-2zm0 0v-8"}))}var bUe=Hb.forwardRef(_Ue),yJ=bUe;var Wb=ie(Pe(),1);function wUe(e,t){return Wb.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),Wb.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"}))}var PUe=Wb.forwardRef(wUe),xJ=PUe;var Xb=ie(Pe(),1);function kUe(e,t){return Xb.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),Xb.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"}))}var AUe=Xb.forwardRef(kUe),h2=AUe;var qb=ie(Pe(),1);function CUe(e,t){return qb.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),qb.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))}var SUe=qb.forwardRef(CUe),_S=SUe;var $b=ie(Pe(),1);function OUe(e,t){return $b.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),$b.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"}))}var EUe=$b.forwardRef(OUe),_J=EUe;var Kb=ie(Pe(),1);function MUe(e,t){return Kb.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),Kb.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"}))}var BUe=Kb.forwardRef(MUe),bS=BUe;var Yb=ie(Pe(),1);function NUe(e,t){return Yb.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),Yb.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14 10h4.764a2 2 0 011.789 2.894l-3.5 7A2 2 0 0115.263 21h-4.017c-.163 0-.326-.02-.485-.06L7 20m7-10V5a2 2 0 00-2-2h-.095c-.5 0-.905.405-.905.905 0 .714-.211 1.412-.608 2.006L7 11v9m7-10h-2M7 20H5a2 2 0 01-2-2v-6a2 2 0 012-2h2.5"}))}var GUe=Yb.forwardRef(NUe),bJ=GUe;var Zb=ie(Pe(),1);function FUe(e,t){return Zb.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),Zb.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"}))}var IUe=Zb.forwardRef(FUe),wJ=IUe;var Ub=ie(Pe(),1);function zUe(e,t){return Ub.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),Ub.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.121 17.804A13.937 13.937 0 0112 16c2.5 0 4.847.655 6.879 1.804M15 10a3 3 0 11-6 0 3 3 0 016 0zm6 2a9 9 0 11-18 0 9 9 0 0118 0z"}))}var TUe=Ub.forwardRef(zUe),PJ=TUe;var Qb=ie(Pe(),1);function DUe(e,t){return Qb.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),Qb.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"}))}var RUe=Qb.forwardRef(DUe),kJ=RUe;var e8=ie(Pe(),1);function LUe(e,t){return e8.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),e8.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 10l4.553-2.276A1 1 0 0121 8.618v6.764a1 1 0 01-1.447.894L15 14M5 18h8a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z"}))}var VUe=e8.forwardRef(LUe),AJ=VUe;var t8=ie(Pe(),1);function JUe(e,t){return t8.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),t8.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"}))}var jUe=t8.forwardRef(JUe),CJ=jUe;var n8=ie(Pe(),1);function HUe(e,t){return n8.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n8.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}var WUe=n8.forwardRef(HUe),r8=WUe;var i8=ie(Pe(),1);function XUe(e,t){return i8.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),i8.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0zM10 7v3m0 0v3m0-3h3m-3 0H7"}))}var qUe=i8.forwardRef(XUe),SJ=qUe;var o8=ie(Pe(),1);function $Ue(e,t){return o8.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),o8.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0zM13 10H7"}))}var KUe=o8.forwardRef($Ue),OJ=KUe;var due=EditPassword=()=>{let{search:e}=md(),t=new URLSearchParams(e).get("token"),n=new URLSearchParams(e).get("client"),r=new URLSearchParams(e).get("uid"),[i,o]=(0,wi.useState)(""),[s,a]=(0,wi.useState)(""),[l,u]=(0,wi.useState)(!1),[c,f]=(0,wi.useState)(!1),[d,h]=(0,wi.useState)(!1),m=async g=>{g.preventDefault(),u(!0),i!=s||i.length<6?(f(!0),u(!1)):(await aue(i,s,t,n,r)).success?(f(!1),u(!1),h(!0)):(u(!1),f(!0))};return wi.default.createElement("div",{className:"flex min-h-full flex-col justify-center py-12 sm:px-6 lg:px-8"},wi.default.createElement("div",{className:"sm:mx-auto sm:w-full sm:max-w-md"},wi.default.createElement("p",{className:"mx-auto h-12 w-auto text-center text-4xl font-bold"},"\u26A1\uFE0F"),wi.default.createElement("h2",{className:"mt-6 text-center text-3xl font-bold tracking-tight text-gray-900"},"Set Up Your Instant Password")),wi.default.createElement("div",{className:"mt-8 sm:mx-auto sm:w-full sm:max-w-md"},wi.default.createElement("div",{className:"bg-white py-8 px-4 shadow sm:rounded-lg sm:px-10"},d?wi.default.createElement("div",{class:"mt-1"},wi.default.createElement("p",{className:"text-gray-800"},"Your password has been reset successfully. You can sign in to your account ",wi.default.createElement("a",{href:"/login",className:"text-indigo-500"},"here"),".")):wi.default.createElement("form",{className:"space-y-6",action:"#",method:"POST",onSubmit:g=>m(g)},wi.default.createElement("div",null,wi.default.createElement("label",{htmlFor:"password",className:"block text-sm font-medium text-gray-700"},"Password"),wi.default.createElement("div",{className:"mt-1"},wi.default.createElement("input",{id:"password",name:"password",type:"password",autoComplete:"current-password",required:!0,onChange:g=>o(g.target.value),className:"block w-full appearance-none rounded-md border border-gray-300 px-3 py-2 placeholder-gray-400 shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm"}))),wi.default.createElement("div",null,wi.default.createElement("label",{htmlFor:"password-confirmation",className:"block text-sm font-medium text-gray-700"},"Confirm Password"),wi.default.createElement("div",{className:"mt-1"},wi.default.createElement("input",{id:"password-confirmation",name:"password-confirmation",type:"password",autoComplete:"current-password-confirmation",required:!0,onChange:g=>a(g.target.value),className:"block w-full appearance-none rounded-md border border-gray-300 px-3 py-2 placeholder-gray-400 shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm"})),c&&wi.default.createElement("p",{className:"text-red-500 text-sm mt-4"},"The password you entered doesn't meet our security requirements. Please make sure the password entered in each field matches and has atleast 6 characters.")),wi.default.createElement("div",null,l?wi.default.createElement("button",{type:"button",className:"inline-flex justify-center w-full rounded-md border border-transparent shadow-sm px-4 py-2 text-base font-medium text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:text-sm bg-indigo-500",disabled:!0},wi.default.createElement("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},wi.default.createElement("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),wi.default.createElement("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})),"Processing..."):wi.default.createElement("button",{type:"submit",className:"inline-flex justify-center w-full rounded-md border border-transparent shadow-sm px-4 py-2 bg-indigo-600 text-base font-medium text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:text-sm"},"Reset Password",wi.default.createElement(Op,{className:"ml-3 -mr-1 h-5 w-5"})))))))};var Rs=ie(Pe());var pue=ActivatePro=()=>{let[e,t]=(0,Rs.useState)(!1),[n,r]=(0,Rs.useState)(!1),[i,o]=(0,Rs.useState)(!1);(0,Rs.useEffect)(()=>{s()},[]);let s=async()=>{t(!0),(await iue()).success?(r(!1),t(!1),o(!0)):(t(!1),r(!0),o(!1))};return Rs.default.createElement("div",{className:"flex min-h-full flex-col justify-center py-12 sm:px-6 lg:px-8"},Rs.default.createElement("div",{className:"sm:mx-auto sm:w-full sm:max-w-md"},Rs.default.createElement("p",{className:"mx-auto h-12 w-auto text-center text-4xl font-bold"},"\u26A1\uFE0F"),Rs.default.createElement("h2",{className:"mt-6 text-center text-3xl font-bold tracking-tight text-gray-900"},"Activating Instant Pro")),Rs.default.createElement("div",{className:"mt-8 sm:mx-auto sm:w-full sm:max-w-md"},Rs.default.createElement("div",{className:"bg-white py-8 px-4 shadow sm:rounded-lg sm:px-10"},i?Rs.default.createElement("div",{className:"mt-1"},Rs.default.createElement("p",{className:"text-gray-800"},"Congratulations. Your account has been upgraded to Instant Pro."," ",Rs.default.createElement("a",{className:"text-blue-500 underline hover:text-blue-600",href:"/dashboard"},"Click here to go to your dashboard"),".")):Rs.default.createElement("div",{class:"mt-1"},n?Rs.default.createElement("p",{className:"text-red-500"},"There was an error activating your account. Please email"," ",Rs.default.createElement("a",{className:"text-blue-500 underline hover:text-blue-600",href:"mailto:team@instantlanding.page"},"team@instantlanding.page")," ","so we can diagnose and solve this issue for your immediately."):Rs.default.createElement("p",{className:"text-gray-800"},"We are activating your account. This should take less than a minute...")))))};var Ot=ie(Pe());var fue=ie(Pe(),1),s8=typeof document<"u"?fue.default.useLayoutEffect:()=>{};var wS=ie(Pe(),1);function EJ(e){let t=(0,wS.useRef)(null);return s8(()=>{t.current=e},[e]),(0,wS.useCallback)((...n)=>{let r=t.current;return r?.(...n)},[])}var N1=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},c0=e=>e&&"window"in e&&e.window===e?e:N1(e).defaultView||window;function PS(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function MJ(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function d0(e){let t=null;return()=>(t==null&&(t=e()),t)}var a8=d0(function(){return MJ(/^Mac/i)}),hue=d0(function(){return MJ(/^iPhone/i)}),mue=d0(function(){return MJ(/^iPad/i)||a8()&&navigator.maxTouchPoints>1}),gue=d0(function(){return hue()||mue()}),YUe=d0(function(){return a8()||gue()}),ZUe=d0(function(){return PS(/AppleWebKit/i)&&!vue()}),vue=d0(function(){return PS(/Chrome/i)}),BJ=d0(function(){return PS(/Android/i)}),UUe=d0(function(){return PS(/Firefox/i)});function NJ(e){return e.mozInputSource===0&&e.isTrusted?!0:BJ()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var kS=ie(Pe(),1);var GJ=class{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}};function AS(e){let t=(0,kS.useRef)({isFocused:!1,observer:null});s8(()=>{let r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=EJ(r=>{e?.(r)});return(0,kS.useCallback)(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,o=s=>{t.current.isFocused=!1,i.disabled&&n(new GJ("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}var FJ=ie(Pe(),1);function IJ(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e,o=(0,FJ.useCallback)(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),s=AS(o),a=(0,FJ.useCallback)(l=>{let u=N1(l.target);l.target===l.currentTarget&&u.activeElement===l.target&&(n&&n(l),i&&i(!0),s(l))},[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||r)?a:void 0,onBlur:!t&&(r||i)?o:void 0}}}var RJ=ie(Pe(),1);var u8=null,zJ=new Set,l8=new Map,m2=!1,TJ=!1,QUe={Tab:!0,Escape:!0};function LJ(e,t){for(let n of zJ)n(e,t)}function eQe(e){return!(e.metaKey||!a8()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function CS(e){m2=!0,eQe(e)&&(u8="keyboard",LJ("keyboard",e))}function yd(e){u8="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(m2=!0,LJ("pointer",e))}function yue(e){NJ(e)&&(m2=!0,u8="virtual")}function xue(e){e.target===window||e.target===document||(!m2&&!TJ&&(u8="virtual",LJ("virtual",e)),m2=!1,TJ=!1)}function _ue(){m2=!1,TJ=!0}function DJ(e){if(typeof window>"u"||l8.get(c0(e)))return;let t=c0(e),n=N1(e),r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){m2=!0,r.apply(this,arguments)},n.addEventListener("keydown",CS,!0),n.addEventListener("keyup",CS,!0),n.addEventListener("click",yue,!0),t.addEventListener("focus",xue,!0),t.addEventListener("blur",_ue,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",yd,!0),n.addEventListener("pointermove",yd,!0),n.addEventListener("pointerup",yd,!0)):(n.addEventListener("mousedown",yd,!0),n.addEventListener("mousemove",yd,!0),n.addEventListener("mouseup",yd,!0)),t.addEventListener("beforeunload",()=>{bue(e)},{once:!0}),l8.set(t,{focus:r})}var bue=(e,t)=>{let n=c0(e),r=N1(e);t&&r.removeEventListener("DOMContentLoaded",t),l8.has(n)&&(n.HTMLElement.prototype.focus=l8.get(n).focus,r.removeEventListener("keydown",CS,!0),r.removeEventListener("keyup",CS,!0),r.removeEventListener("click",yue,!0),n.removeEventListener("focus",xue,!0),n.removeEventListener("blur",_ue,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",yd,!0),r.removeEventListener("pointermove",yd,!0),r.removeEventListener("pointerup",yd,!0)):(r.removeEventListener("mousedown",yd,!0),r.removeEventListener("mousemove",yd,!0),r.removeEventListener("mouseup",yd,!0)),l8.delete(n))};function wue(e){let t=N1(e),n;return t.readyState!=="loading"?DJ(e):(n=()=>{DJ(e)},t.addEventListener("DOMContentLoaded",n)),()=>bue(e,n)}typeof document<"u"&&wue();function SS(){return u8!=="pointer"}var tQe=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function nQe(e,t,n){var r;let i=typeof window<"u"?c0(n?.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?c0(n?.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?c0(n?.target).HTMLElement:HTMLElement,a=typeof window<"u"?c0(n?.target).KeyboardEvent:KeyboardEvent;return e=e||n?.target instanceof i&&!tQe.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||n?.target instanceof o||n?.target instanceof s&&n?.target.isContentEditable,!(e&&t==="keyboard"&&n instanceof a&&!QUe[n.key])}function VJ(e,t,n){DJ(),(0,RJ.useEffect)(()=>{let r=(i,o)=>{!nQe(!!n?.isTextInput,i,o)||e(SS())};return zJ.add(r),()=>{zJ.delete(r)}},t)}var c8=ie(Pe(),1);function JJ(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=(0,c8.useRef)({isFocusWithin:!1}),s=(0,c8.useCallback)(u=>{o.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,o]),a=AS(s),l=(0,c8.useCallback)(u=>{!o.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),o.current.isFocusWithin=!0,a(u))},[r,i,a]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:s}}}var p0=ie(Pe(),1),OS=!1,jJ=0;function HJ(){OS=!0,setTimeout(()=>{OS=!1},50)}function Pue(e){e.pointerType==="touch"&&HJ()}function rQe(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Pue):document.addEventListener("touchend",HJ),jJ++,()=>{jJ--,!(jJ>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Pue):document.removeEventListener("touchend",HJ))}}function xd(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,s]=(0,p0.useState)(!1),a=(0,p0.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,p0.useEffect)(rQe,[]);let{hoverProps:l,triggerHoverEnd:u}=(0,p0.useMemo)(()=>{let c=(h,m)=>{if(a.pointerType=m,i||m==="touch"||a.isHovered||!h.currentTarget.contains(h.target))return;a.isHovered=!0;let g=h.currentTarget;a.target=g,t&&t({type:"hoverstart",target:g,pointerType:m}),n&&n(!0),s(!0)},f=(h,m)=>{if(a.pointerType="",a.target=null,m==="touch"||!a.isHovered)return;a.isHovered=!1;let g=h.currentTarget;r&&r({type:"hoverend",target:g,pointerType:m}),n&&n(!1),s(!1)},d={};return typeof PointerEvent<"u"?(d.onPointerEnter=h=>{OS&&h.pointerType==="mouse"||c(h,h.pointerType)},d.onPointerLeave=h=>{!i&&h.currentTarget.contains(h.target)&&f(h,h.pointerType)}):(d.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},d.onMouseEnter=h=>{!a.ignoreEmulatedMouseEvents&&!OS&&c(h,"mouse"),a.ignoreEmulatedMouseEvents=!1},d.onMouseLeave=h=>{!i&&h.currentTarget.contains(h.target)&&f(h,"mouse")}),{hoverProps:d,triggerHoverEnd:f}},[t,n,r,i,a]);return(0,p0.useEffect)(()=>{i&&u({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:l,isHovered:o}}var G1=ie(Pe(),1);function bc(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=(0,G1.useRef)({isFocused:!1,isFocusVisible:t||SS()}),[o,s]=(0,G1.useState)(!1),[a,l]=(0,G1.useState)(()=>i.current.isFocused&&i.current.isFocusVisible),u=(0,G1.useCallback)(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),c=(0,G1.useCallback)(h=>{i.current.isFocused=h,s(h),u()},[u]);VJ(h=>{i.current.isFocusVisible=h,u()},[],{isTextInput:n});let{focusProps:f}=IJ({isDisabled:r,onFocusChange:c}),{focusWithinProps:d}=JJ({isDisabled:!r,onFocusWithinChange:c});return{isFocused:o,isFocusVisible:a,focusProps:r?d:f}}var BS=ie(Pe(),1);var iQe=Object.defineProperty,oQe=(e,t,n)=>t in e?iQe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,WJ=(e,t,n)=>(oQe(e,typeof t!="symbol"?t+"":t,n),n),XJ=class{constructor(){WJ(this,"current",this.detect()),WJ(this,"handoffState","pending"),WJ(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Ep=new XJ;function ra(e){return Ep.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}var ES=ie(Pe(),1);function f0(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function ma(){let e=[],t={addEventListener(n,r,i,o){return n.addEventListener(r,i,o),t.add(()=>n.removeEventListener(r,i,o))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return f0(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let o=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:o})})},group(n){let r=ma();return n(r),this.add(()=>r.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function bl(){let[e]=(0,ES.useState)(ma);return(0,ES.useEffect)(()=>()=>e.dispose(),[e]),e}var Aue=ie(Pe(),1);var kue=ie(Pe(),1);var MS=ie(Pe(),1);var An=(e,t)=>{Ep.isServer?(0,MS.useEffect)(e,t):(0,MS.useLayoutEffect)(e,t)};function Io(e){let t=(0,kue.useRef)(e);return An(()=>{t.current=e},[e]),t}var _t=function(e){let t=Io(e);return Aue.default.useCallback((...n)=>t.current(...n),[t])};function sQe(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function aQe(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function F1({disabled:e=!1}={}){let t=(0,BS.useRef)(null),[n,r]=(0,BS.useState)(!1),i=bl(),o=_t(()=>{t.current=null,r(!1),i.dispose()}),s=_t(a=>{if(i.dispose(),t.current===null){t.current=a.currentTarget,r(!0);{let l=ra(a.currentTarget);i.addEventListener(l,"pointerup",o,!1),i.addEventListener(l,"pointermove",u=>{if(t.current){let c=sQe(u);r(aQe(c,t.current.getBoundingClientRect()))}},!1),i.addEventListener(l,"pointercancel",o,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:s,onPointerUp:o,onClick:o}}}var p3=ie(Pe(),1),Cue=(0,p3.createContext)(void 0);function Mp(){return(0,p3.useContext)(Cue)}function Sue({value:e,children:t}){return p3.default.createElement(Cue.Provider,{value:e},t)}var wl=ie(Pe(),1);function d8(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function Ei(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Ei),r}var Ja=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Ja||{}),h0=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(h0||{});function Tn({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:s,mergeRefs:a}){a=a??lQe;let l=Oue(t,e);if(o)return NS(l,n,r,s,a);let u=i??0;if(u&2){let{static:c=!1,...f}=l;if(c)return NS(f,n,r,s,a)}if(u&1){let{unmount:c=!0,...f}=l;return Ei(c?0:1,{[0](){return null},[1](){return NS({...f,hidden:!0,style:{display:"none"}},n,r,s,a)}})}return NS(l,n,r,s,a)}function NS(e,t={},n,r,i){let{as:o=n,children:s,refName:a="ref",...l}=qJ(e,["unmount","static"]),u=e.ref!==void 0?{[a]:e.ref}:{},c=typeof s=="function"?s(t):s;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let f={};if(t){let d=!1,h=[];for(let[m,g]of Object.entries(t))typeof g=="boolean"&&(d=!0),g===!0&&h.push(m.replace(/([A-Z])/g,b=>`-${b.toLowerCase()}`));if(d){f["data-headlessui-state"]=h.join(" ");for(let m of h)f[`data-${m}`]=""}}if(o===wl.Fragment&&(Object.keys(Tf(l)).length>0||Object.keys(Tf(f)).length>0))if(!(0,wl.isValidElement)(c)||Array.isArray(c)&&c.length>1){if(Object.keys(Tf(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(Tf(l)).concat(Object.keys(Tf(f))).map(d=>`  - ${d}`).join(`
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(d=>`  - ${d}`).join(`
`)].join(`
`))}else{let d=c.props,h=d?.className,m=typeof h=="function"?(...v)=>d8(h(...v),l.className):d8(h,l.className),g=m?{className:m}:{},b=Oue(c.props,Tf(qJ(l,["ref"])));for(let v in f)v in b&&delete f[v];return(0,wl.cloneElement)(c,Object.assign({},b,f,u,{ref:i(c.ref,u.ref)},g))}return(0,wl.createElement)(o,Object.assign({},qJ(l,["ref"]),o!==wl.Fragment&&u,o!==wl.Fragment&&f),c)}function GS(){let e=(0,wl.useRef)([]),t=(0,wl.useCallback)(n=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(n):r.current=n)},[]);return(...n)=>{if(!n.every(r=>r==null))return e.current=n,t}}function lQe(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function Oue(...e){var t;if(e.length===0)return{};if(e.length===1)return e[0];let n={},r={};for(let i of e)for(let o in i)o.startsWith("on")&&typeof i[o]=="function"?((t=r[o])!=null||(r[o]=[]),r[o].push(i[o])):n[o]=i[o];if(n.disabled||n["aria-disabled"])for(let i in r)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(i)&&(r[i]=[o=>{var s;return(s=o?.preventDefault)==null?void 0:s.call(o)}]);for(let i in r)Object.assign(n,{[i](o,...s){let a=r[i];for(let l of a){if((o instanceof Event||o?.nativeEvent instanceof Event)&&o.defaultPrevented)return;l(o,...s)}}});return n}function Ul(...e){var t;if(e.length===0)return{};if(e.length===1)return e[0];let n={},r={};for(let i of e)for(let o in i)o.startsWith("on")&&typeof i[o]=="function"?((t=r[o])!=null||(r[o]=[]),r[o].push(i[o])):n[o]=i[o];for(let i in r)Object.assign(n,{[i](...o){let s=r[i];for(let a of s)a?.(...o)}});return n}function Mn(e){var t;return Object.assign((0,wl.forwardRef)(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Tf(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function qJ(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}var f3=ie(Pe(),1);function FS(e,t,n){let[r,i]=(0,f3.useState)(n),o=e!==void 0,s=(0,f3.useRef)(o),a=(0,f3.useRef)(!1),l=(0,f3.useRef)(!1);return o&&!s.current&&!a.current?(a.current=!0,s.current=o,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!o&&s.current&&!l.current&&(l.current=!0,s.current=o,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[o?e:r,_t(u=>(o||i(u),t?.(u)))]}var Eue=ie(Pe(),1);function IS(e){let[t]=(0,Eue.useState)(e);return t}var Hi=ie(Pe(),1);var Bs=ie(Pe(),1),Nue=ie(Yl(),1);function $J(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))Bue(n,Mue(t,r),i);return n}function Mue(e,t){return e?e+"["+t+"]":t}function Bue(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())Bue(e,Mue(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):$J(n,t,e)}function zS(e){var t,n;let r=(t=e?.form)!=null?t:e.closest("form");if(r){for(let i of r.elements)if(i!==e&&(i.tagName==="INPUT"&&i.type==="submit"||i.tagName==="BUTTON"&&i.type==="submit"||i.nodeName==="INPUT"&&i.type==="image")){i.click();return}(n=r.requestSubmit)==null||n.call(r)}}var uQe="span",Pl=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Pl||{});function cQe(e,t){var n;let{features:r=1,...i}=e,o={ref:t,"aria-hidden":(r&2)===2?!0:(n=i["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return Tn({ourProps:o,theirProps:i,slot:{},defaultTag:uQe,name:"Hidden"})}var ja=Mn(cQe);var Gue=(0,Bs.createContext)(null);function Fue(e){let[t,n]=(0,Bs.useState)(null);return Bs.default.createElement(Gue.Provider,{value:{target:t}},e.children,Bs.default.createElement(ja,{features:Pl.Hidden,ref:n}))}function dQe({children:e}){let t=(0,Bs.useContext)(Gue);if(!t)return Bs.default.createElement(Bs.default.Fragment,null,e);let{target:n}=t;return n?(0,Nue.createPortal)(Bs.default.createElement(Bs.default.Fragment,null,e),n):null}function TS({data:e,form:t,disabled:n,onReset:r,overrides:i}){let[o,s]=(0,Bs.useState)(null),a=bl();return(0,Bs.useEffect)(()=>{if(r&&o)return a.addEventListener(o,"reset",r)},[o,t,r]),Bs.default.createElement(dQe,null,Bs.default.createElement(pQe,{setForm:s,formId:t}),$J(e).map(([l,u])=>Bs.default.createElement(ja,{features:Pl.Hidden,...Tf({key:l,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:l,value:u,...i})})))}function pQe({setForm:e,formId:t}){return(0,Bs.useEffect)(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:Bs.default.createElement(ja,{features:Pl.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:n=>{if(!n)return;let r=n.closest("form");r&&e(r)}})}var h3=ie(Pe(),1),Iue=(0,h3.createContext)(void 0);function m3(){return(0,h3.useContext)(Iue)}function zue({id:e,children:t}){return h3.default.createElement(Iue.Provider,{value:e},t)}function Df(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=t?.getAttribute("disabled")==="";return r&&fQe(n)?!1:r}function fQe(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}var wc=ie(Pe(),1);var DS=ie(Pe(),1);var Tue=Symbol();function RS(e,t=!0){return Object.assign(e,{[Tue]:t})}function yr(...e){let t=(0,DS.useRef)(e);(0,DS.useEffect)(()=>{t.current=e},[e]);let n=_t(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||r?.[Tue])?void 0:n}var LS=(0,wc.createContext)(null);LS.displayName="DescriptionContext";function Due(){let e=(0,wc.useContext)(LS);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Due),t}return e}function VS(){var e,t;return(t=(e=(0,wc.useContext)(LS))==null?void 0:e.value)!=null?t:void 0}function Bp(){let[e,t]=(0,wc.useState)([]);return[e.length>0?e.join(" "):void 0,(0,wc.useMemo)(()=>function(n){let r=_t(o=>(t(s=>[...s,o]),()=>t(s=>{let a=s.slice(),l=a.indexOf(o);return l!==-1&&a.splice(l,1),a}))),i=(0,wc.useMemo)(()=>({register:r,slot:n.slot,name:n.name,props:n.props,value:n.value}),[r,n.slot,n.name,n.props,n.value]);return wc.default.createElement(LS.Provider,{value:i},n.children)},[t])]}var hQe="p";function mQe(e,t){let n=(0,Hi.useId)(),r=Mp(),{id:i=`headlessui-description-${n}`,...o}=e,s=Due(),a=yr(t);An(()=>s.register(i),[i,s.register]);let l=r||!1,u=(0,wc.useMemo)(()=>({...s.slot,disabled:l}),[s.slot,l]),c={ref:a,...s.props,id:i};return Tn({ourProps:c,theirProps:o,slot:u,defaultTag:hQe,name:s.name||"Description"})}var gQe=Mn(mQe),g3=Object.assign(gQe,{});var Dn=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Dn||{});var Pc=ie(Pe(),1);var JS=(0,Pc.createContext)(null);JS.displayName="LabelContext";function jS(){let e=(0,Pc.useContext)(JS);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,jS),t}return e}function p8(e){var t,n,r;let i=(n=(t=(0,Pc.useContext)(JS))==null?void 0:t.value)!=null?n:void 0;return((r=e?.length)!=null?r:0)>0?[i,...e].filter(Boolean).join(" "):i}function Rf({inherit:e=!1}={}){let t=p8(),[n,r]=(0,Pc.useState)([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,(0,Pc.useMemo)(()=>function(o){let s=_t(l=>(r(u=>[...u,l]),()=>r(u=>{let c=u.slice(),f=c.indexOf(l);return f!==-1&&c.splice(f,1),c}))),a=(0,Pc.useMemo)(()=>({register:s,slot:o.slot,name:o.name,props:o.props,value:o.value}),[s,o.slot,o.name,o.props,o.value]);return Pc.default.createElement(JS.Provider,{value:a},o.children)},[r])]}var vQe="label";function yQe(e,t){var n;let r=(0,Hi.useId)(),i=jS(),o=m3(),s=Mp(),{id:a=`headlessui-label-${r}`,htmlFor:l=o??((n=i.props)==null?void 0:n.htmlFor),passive:u=!1,...c}=e,f=yr(t);An(()=>i.register(a),[a,i.register]);let d=_t(b=>{let v=b.currentTarget;if(v instanceof HTMLLabelElement&&b.preventDefault(),i.props&&"onClick"in i.props&&typeof i.props.onClick=="function"&&i.props.onClick(b),v instanceof HTMLLabelElement){let x=document.getElementById(v.htmlFor);if(x){let y=x.getAttribute("disabled");if(y==="true"||y==="")return;let _=x.getAttribute("aria-disabled");if(_==="true"||_==="")return;(x instanceof HTMLInputElement&&(x.type==="radio"||x.type==="checkbox")||x.role==="radio"||x.role==="checkbox"||x.role==="switch")&&x.click(),x.focus({preventScroll:!0})}}}),h=s||!1,m=(0,Pc.useMemo)(()=>({...i.slot,disabled:h}),[i.slot,h]),g={ref:f,...i.props,id:a,htmlFor:l,onClick:d};return u&&("onClick"in g&&(delete g.htmlFor,delete g.onClick),"onClick"in c&&delete c.onClick),Tn({ourProps:g,theirProps:c,slot:m,defaultTag:l?vQe:"div",name:i.name||"Label"})}var xQe=Mn(yQe),Np=Object.assign(xQe,{});var f8=ie(Pe(),1),_Qe=(0,f8.createContext)(()=>{});function HS({value:e,children:t}){return f8.default.createElement(_Qe.Provider,{value:e},t)}var Rue=ie(Pe(),1);function bQe(e,t){return e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"&&"id"in e&&"id"in t?e.id===t.id:e===t}function Lue(e=bQe){return(0,Rue.useCallback)((t,n)=>{if(typeof e=="string"){let r=e;return t?.[r]===n?.[r]}return e(t,n)},[e])}var WS=ie(Pe(),1);function wQe(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function XS(e,t=!1){let[n,r]=(0,WS.useReducer)(()=>({}),{}),i=(0,WS.useMemo)(()=>wQe(e),[e,n]);return An(()=>{if(!e)return;let o=new ResizeObserver(r);return o.observe(e),()=>{o.disconnect()}},[e]),t?{width:`${i.width}px`,height:`${i.height}px`}:i}var Jue=ie(Pe(),1);var qS=class extends Map{constructor(t){super(),this.factory=t}get(t){let n=super.get(t);return n===void 0&&(n=this.factory(t),this.set(t,n)),n}};function $S(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(i){return r.add(i),()=>r.delete(i)},dispatch(i,...o){let s=t[i].call(n,...o);s&&(n=s,r.forEach(a=>a()))}}}var Vue=ie(Pe(),1);function KS(e){return(0,Vue.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot)}var PQe=new qS(()=>$S(()=>[],{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(t===-1)return this;let n=this.slice();return n.splice(t,1),n}}));function Gp(e,t){let n=PQe.get(t),r=(0,Jue.useId)(),i=KS(n);if(An(()=>{if(e)return n.dispatch("ADD",r),()=>n.dispatch("REMOVE",r)},[n,e]),!e)return!1;let o=i.indexOf(r),s=i.length;return o===-1&&(o=s,s+=1),o===s-1}var KJ=new Map,h8=new Map;function jue(e){var t;let n=(t=h8.get(e))!=null?t:0;return h8.set(e,n+1),n!==0?()=>Hue(e):(KJ.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>Hue(e))}function Hue(e){var t;let n=(t=h8.get(e))!=null?t:1;if(n===1?h8.delete(e):h8.set(e,n-1),n!==1)return;let r=KJ.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,KJ.delete(e))}function YS(e,{allowed:t,disallowed:n}={}){let r=Gp(e,"inert-others");An(()=>{var i,o;if(!r)return;let s=ma();for(let l of(i=n?.())!=null?i:[])l&&s.add(jue(l));let a=(o=t?.())!=null?o:[];for(let l of a){if(!l)continue;let u=ra(l);if(!u)continue;let c=l.parentElement;for(;c&&c!==u.body;){for(let f of c.children)a.some(d=>f.contains(d))||s.add(jue(f));c=c.parentElement}}return s.dispose},[r,t,n])}var Wue=ie(Pe(),1);function v3(e,t,n){let r=Io(i=>{let o=i.getBoundingClientRect();o.x===0&&o.y===0&&o.width===0&&o.height===0&&n()});(0,Wue.useEffect)(()=>{if(!e)return;let i=t===null?null:t instanceof HTMLElement?t:t.current;if(!i)return;let o=ma();if(typeof ResizeObserver<"u"){let s=new ResizeObserver(()=>r.current(i));s.observe(i),o.add(()=>s.disconnect())}if(typeof IntersectionObserver<"u"){let s=new IntersectionObserver(()=>r.current(i));s.observe(i),o.add(()=>s.disconnect())}return()=>o.dispose()},[t,r,e])}var g8=ie(Pe(),1);var m8=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),kQe=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(","),Nr=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(Nr||{}),kl=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(kl||{}),AQe=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(AQe||{});function y3(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(m8)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function CQe(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(kQe)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var g2=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(g2||{});function v2(e,t=0){var n;return e===((n=ra(e))==null?void 0:n.body)?!1:Ei(t,{[0](){return e.matches(m8)},[1](){let r=e;for(;r!==null;){if(r.matches(m8))return!0;r=r.parentElement}return!1}})}function YJ(e){let t=ra(e);ma().nextFrame(()=>{t&&!v2(t.activeElement,0)&&Fp(e)})}var SQe=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(SQe||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Fp(e){e?.focus({preventScroll:!0})}var OQe=["textarea","input"].join(",");function EQe(e){var t,n;return(n=(t=e?.matches)==null?void 0:t.call(e,OQe))!=null?n:!1}function Ip(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),o=t(r);if(i===null||o===null)return 0;let s=i.compareDocumentPosition(o);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Xue(e,t){return zo(y3(),t,{relativeTo:e})}function zo(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}={}){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,s=Array.isArray(e)?n?Ip(e):e:t&64?CQe(e):y3(e);i.length>0&&s.length>1&&(s=s.filter(h=>!i.some(m=>m!=null&&"current"in m?m?.current===h:m===h))),r=r??o.activeElement;let a=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,s.indexOf(r))-1;if(t&4)return Math.max(0,s.indexOf(r))+1;if(t&8)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},c=0,f=s.length,d;do{if(c>=f||c+f<=0)return 0;let h=l+c;if(t&16)h=(h+f)%f;else{if(h<0)return 3;if(h>=f)return 1}d=s[h],d?.focus(u),c+=a}while(d!==o.activeElement);return t&6&&EQe(d)&&d.select(),2}function ZJ(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function MQe(){return/Android/gi.test(window.navigator.userAgent)}function que(){return ZJ()||MQe()}var $ue=ie(Pe(),1);function x3(e,t,n,r){let i=Io(n);(0,$ue.useEffect)(()=>{if(!e)return;function o(s){i.current(s)}return document.addEventListener(t,o,r),()=>document.removeEventListener(t,o,r)},[e,t,r])}var Kue=ie(Pe(),1);function ZS(e,t,n,r){let i=Io(n);(0,Kue.useEffect)(()=>{if(!e)return;function o(s){i.current(s)}return window.addEventListener(t,o,r),()=>window.removeEventListener(t,o,r)},[e,t,r])}var Yue=30;function _3(e,t,n){let r=Gp(e,"outside-click"),i=Io(n),o=(0,g8.useCallback)(function(l,u){if(l.defaultPrevented)return;let c=u(l);if(c===null||!c.getRootNode().contains(c)||!c.isConnected)return;let f=function d(h){return typeof h=="function"?d(h()):Array.isArray(h)||h instanceof Set?h:[h]}(t);for(let d of f)if(d!==null&&(d.contains(c)||l.composed&&l.composedPath().includes(d)))return;return!v2(c,g2.Loose)&&c.tabIndex!==-1&&l.preventDefault(),i.current(l,c)},[i,t]),s=(0,g8.useRef)(null);x3(r,"pointerdown",l=>{var u,c;s.current=((c=(u=l.composedPath)==null?void 0:u.call(l))==null?void 0:c[0])||l.target},!0),x3(r,"mousedown",l=>{var u,c;s.current=((c=(u=l.composedPath)==null?void 0:u.call(l))==null?void 0:c[0])||l.target},!0),x3(r,"click",l=>{que()||s.current&&(o(l,()=>s.current),s.current=null)},!0);let a=(0,g8.useRef)({x:0,y:0});x3(r,"touchstart",l=>{a.current.x=l.touches[0].clientX,a.current.y=l.touches[0].clientY},!0),x3(r,"touchend",l=>{let u={x:l.changedTouches[0].clientX,y:l.changedTouches[0].clientY};if(!(Math.abs(u.x-a.current.x)>=Yue||Math.abs(u.y-a.current.y)>=Yue))return o(l,()=>l.target instanceof HTMLElement?l.target:null)},!0),ZS(r,"blur",l=>o(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var Zue=ie(Pe(),1);function Ql(...e){return(0,Zue.useMemo)(()=>ra(...e),[...e])}var Uue=ie(Pe(),1);function b3(e,t,n,r){let i=Io(n);(0,Uue.useEffect)(()=>{e=e??window;function o(s){i.current(s)}return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o,r)},[e,t,r])}var Que=ie(Pe(),1);function I1(e,t){return(0,Que.useMemo)(()=>{var n;if(e.type)return e.type;let r=(n=e.as)!=null?n:"button";if(typeof r=="string"&&r.toLowerCase()==="button"||t?.tagName==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}function ece(){let e;return{before({doc:t}){var n;let r=t.documentElement,i=(n=t.defaultView)!=null?n:window;e=Math.max(0,i.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,i=Math.max(0,r.clientWidth-r.offsetWidth),o=Math.max(0,e-i);n.style(r,"paddingRight",`${o}px`)}}}function tce(){return ZJ()?{before({doc:e,d:t,meta:n}){function r(i){return n.containers.flatMap(o=>o()).some(o=>o.contains(i))}t.microTask(()=>{var i;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=ma();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let o=(i=window.scrollY)!=null?i:window.pageYOffset,s=null;t.addEventListener(e,"click",a=>{if(a.target instanceof HTMLElement)try{let l=a.target.closest("a");if(!l)return;let{hash:u}=new URL(l.href),c=e.querySelector(u);c&&!r(c)&&(s=c)}catch{}},!0),t.addEventListener(e,"touchstart",a=>{if(a.target instanceof HTMLElement)if(r(a.target)){let l=a.target;for(;l.parentElement&&r(l.parentElement);)l=l.parentElement;t.style(l,"overscrollBehavior","contain")}else t.style(a.target,"touchAction","none")}),t.addEventListener(e,"touchmove",a=>{if(a.target instanceof HTMLElement){if(a.target.tagName==="INPUT")return;if(r(a.target)){let l=a.target;for(;l.parentElement&&l.dataset.headlessuiPortal!==""&&!(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth);)l=l.parentElement;l.dataset.headlessuiPortal===""&&a.preventDefault()}else a.preventDefault()}},{passive:!1}),t.add(()=>{var a;let l=(a=window.scrollY)!=null?a:window.pageYOffset;o!==l&&window.scrollTo(0,o),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})})}}:{}}function nce(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function BQe(e){let t={};for(let n of e)Object.assign(t,n(t));return t}var z1=$S(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:ma(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:BQe(n)},i=[tce(),ece(),nce()];i.forEach(({before:o})=>o?.(r)),i.forEach(({after:o})=>o?.(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});z1.subscribe(()=>{let e=z1.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",i=n.count!==0;(i&&!r||!i&&r)&&z1.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&z1.dispatch("TEARDOWN",n)}});function rce(e,t,n=()=>({containers:[]})){let r=KS(z1),i=t?r.get(t):void 0,o=i?i.count>0:!1;return An(()=>{if(!(!t||!e))return z1.dispatch("PUSH",t,n),()=>z1.dispatch("POP",t,n)},[e,t]),o}function w3(e,t,n=()=>[document.body]){let r=Gp(e,"scroll-lock");rce(r,t,i=>{var o;return{containers:[...(o=i.containers)!=null?o:[],n]}})}var oce=ie(Pe(),1);function ice(e){return[e.screenX,e.screenY]}function sce(){let e=(0,oce.useRef)([-1,-1]);return{wasMoved(t){let n=ice(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=ice(t)}}}var v8=ie(Pe(),1);var T1=ie(Pe(),1);function ace(e=0){let[t,n]=(0,T1.useState)(e),r=(0,T1.useCallback)(l=>n(l),[t]),i=(0,T1.useCallback)(l=>n(u=>u|l),[t]),o=(0,T1.useCallback)(l=>(t&l)===l,[t]),s=(0,T1.useCallback)(l=>n(u=>u&~l),[n]),a=(0,T1.useCallback)(l=>n(u=>u^l),[n]);return{flags:t,setFlag:r,addFlag:i,hasFlag:o,removeFlag:s,toggleFlag:a}}var lce;typeof process<"u"&&typeof globalThis<"u"&&((lce=process==null?void 0:process.env)==null?void 0:lce.NODE_ENV)==="test"&&typeof Element.prototype.getAnimations>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
`)),[]});var NQe=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(NQe||{});function y2(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function x2(e,t,n,r){let[i,o]=(0,v8.useState)(n),{hasFlag:s,addFlag:a,removeFlag:l}=ace(e&&i?3:0),u=(0,v8.useRef)(!1),c=(0,v8.useRef)(!1),f=bl();return An(()=>{var d;if(e){if(n&&o(!0),!t){n&&a(3);return}return(d=r?.start)==null||d.call(r,n),GQe(t,{inFlight:u,prepare(){c.current?c.current=!1:c.current=u.current,u.current=!0,!c.current&&(n?(a(3),l(4)):(a(4),l(2)))},run(){c.current?n?(l(3),a(4)):(l(4),a(3)):n?l(1):a(1)},done(){var h;c.current&&typeof t.getAnimations=="function"&&t.getAnimations().length>0||(u.current=!1,l(7),n||o(!1),(h=r?.end)==null||h.call(r,n))}})}},[e,n,t,f]),e?[i,{closed:s(1),enter:s(2),leave:s(4),transition:s(2)||s(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function GQe(e,{prepare:t,run:n,done:r,inFlight:i}){let o=ma();return IQe(e,{prepare:t,inFlight:i}),o.nextFrame(()=>{n(),o.requestAnimationFrame(()=>{o.add(FQe(e,r))})}),o.dispose}function FQe(e,t){var n,r;let i=ma();if(!e)return i.dispose;let o=!1;i.add(()=>{o=!0});let s=(r=(n=e.getAnimations)==null?void 0:n.call(e).filter(a=>a instanceof CSSTransition))!=null?r:[];return s.length===0?(t(),i.dispose):(Promise.allSettled(s.map(a=>a.finished)).then(()=>{o||t()}),i.dispose)}function IQe(e,{inFlight:t,prepare:n}){if(t!=null&&t.current){n();return}let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}var y8=ie(Pe(),1);function uce(e,{container:t,accept:n,walk:r}){let i=(0,y8.useRef)(n),o=(0,y8.useRef)(r);(0,y8.useEffect)(()=>{i.current=n,o.current=r},[n,r]),An(()=>{if(!t||!e)return;let s=ra(t);if(!s)return;let a=i.current,l=o.current,u=Object.assign(f=>a(f),{acceptNode:a}),c=s.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,u,!1);for(;c.nextNode();)l(c.currentNode)},[t,e,i,o])}var US=ie(Pe(),1);function QS(e,t){let n=(0,US.useRef)([]),r=_t(e);(0,US.useEffect)(()=>{let i=[...n.current];for(let[o,s]of t.entries())if(n.current[o]!==s){let a=r(t,i);return n.current=t,a}},[r,...t])}var Xn=ie(Pe(),1),A8=ie(Pe(),1);function D1(e){return dce(e)?(e.nodeName||"").toLowerCase():"#document"}function eu(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Vf(e){var t;return(t=(dce(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function dce(e){return e instanceof Node||e instanceof eu(e).Node}function Ha(e){return e instanceof Element||e instanceof eu(e).Element}function _d(e){return e instanceof HTMLElement||e instanceof eu(e).HTMLElement}function cce(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof eu(e).ShadowRoot}function P3(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=kc(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function pce(e){return["table","td","th"].includes(D1(e))}function x8(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function eO(e){let t=tO(),n=Ha(e)?kc(e):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 fce(e){let t=Lf(e);for(;_d(t)&&!R1(t);){if(eO(t))return t;if(x8(t))return null;t=Lf(t)}return null}function tO(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function R1(e){return["html","body","#document"].includes(D1(e))}function kc(e){return eu(e).getComputedStyle(e)}function _8(e){return Ha(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Lf(e){if(D1(e)==="html")return e;let t=e.assignedSlot||e.parentNode||cce(e)&&e.host||Vf(e);return cce(t)?t.host:t}function hce(e){let t=Lf(e);return R1(t)?e.ownerDocument?e.ownerDocument.body:e.body:_d(t)&&P3(t)?t:hce(t)}function m0(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);let i=hce(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=eu(i);if(o){let a=nO(s);return t.concat(s,s.visualViewport||[],P3(i)?i:[],a&&n?m0(a):[])}return t.concat(i,m0(i,[],n))}function nO(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function mce(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}var Jf=Math.min,tu=Math.max,w8=Math.round,k3=Math.floor,g0=e=>({x:e,y:e}),zQe={left:"right",right:"left",bottom:"top",top:"bottom"},TQe={start:"end",end:"start"};function UJ(e,t,n){return tu(e,Jf(t,n))}function L1(e,t){return typeof e=="function"?e(t):e}function v0(e){return e.split("-")[0]}function A3(e){return e.split("-")[1]}function QJ(e){return e==="x"?"y":"x"}function ej(e){return e==="y"?"height":"width"}function V1(e){return["top","bottom"].includes(v0(e))?"y":"x"}function tj(e){return QJ(V1(e))}function gce(e,t,n){n===void 0&&(n=!1);let r=A3(e),i=tj(e),o=ej(i),s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=b8(s)),[s,b8(s)]}function vce(e){let t=b8(e);return[rO(e),t,rO(t)]}function rO(e){return e.replace(/start|end/g,t=>TQe[t])}function DQe(e,t,n){let r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:s;default:return[]}}function yce(e,t,n,r){let i=A3(e),o=DQe(v0(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(rO)))),o}function b8(e){return e.replace(/left|right|bottom|top/g,t=>zQe[t])}function RQe(e){return{top:0,right:0,bottom:0,left:0,...e}}function xce(e){return typeof e!="number"?RQe(e):{top:e,right:e,bottom:e,left:e}}function _2(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}var O3=ie(Yl(),1);function _ce(e,t,n){let{reference:r,floating:i}=e,o=V1(t),s=tj(t),a=ej(s),l=v0(t),u=o==="y",c=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,d=r[a]/2-i[a]/2,h;switch(l){case"top":h={x:c,y:r.y-i.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-i.width,y:f};break;default:h={x:r.x,y:r.y}}switch(A3(t)){case"start":h[s]-=d*(n&&u?-1:1);break;case"end":h[s]+=d*(n&&u?-1:1);break}return h}var bce=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=_ce(u,r,l),d=r,h={},m=0;for(let g=0;g<a.length;g++){let{name:b,fn:v}=a[g],{x,y,data:_,reset:w}=await v({x:c,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});c=x??c,f=y??f,h={...h,[b]:{...h[b],..._}},w&&m<=50&&(m++,typeof w=="object"&&(w.placement&&(d=w.placement),w.rects&&(u=w.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:c,y:f}=_ce(u,d,l)),g=-1)}return{x:c,y:f,placement:d,strategy:i,middlewareData:h}};async function P8(e,t){var n;t===void 0&&(t={});let{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=L1(t,e),m=xce(h),b=a[d?f==="floating"?"reference":"floating":f],v=_2(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(b)))==null||n?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),x=f==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,y=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),_=await(o.isElement==null?void 0:o.isElement(y))?await(o.getScale==null?void 0:o.getScale(y))||{x:1,y:1}:{x:1,y:1},w=_2(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:y,strategy:l}):x);return{top:(v.top-w.top+m.top)/_.y,bottom:(w.bottom-v.bottom+m.bottom)/_.y,left:(v.left-w.left+m.left)/_.x,right:(w.right-v.right+m.right)/_.x}}var wce=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;let{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...b}=L1(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};let v=v0(i),x=V1(a),y=v0(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(u.floating)),w=d||(y||!g?[b8(a)]:vce(a)),k=m!=="none";!d&&k&&w.push(...yce(a,g,m,_));let O=[a,...w],M=await P8(t,b),I=[],W=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&I.push(M[v]),f){let j=gce(i,s,_);I.push(M[j[0]],M[j[1]])}if(W=[...W,{placement:i,overflows:I}],!I.every(j=>j<=0)){var J,H;let j=(((J=o.flip)==null?void 0:J.index)||0)+1,V=O[j];if(V)return{data:{index:j,overflows:W},reset:{placement:V}};let B=(H=W.filter(N=>N.overflows[0]<=0).sort((N,C)=>N.overflows[1]-C.overflows[1])[0])==null?void 0:H.placement;if(!B)switch(h){case"bestFit":{var ee;let N=(ee=W.filter(C=>{if(k){let S=V1(C.placement);return S===x||S==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(S=>S>0).reduce((S,G)=>S+G,0)]).sort((C,S)=>C[1]-S[1])[0])==null?void 0:ee[0];N&&(B=N);break}case"initialPlacement":B=a;break}if(i!==B)return{reset:{placement:B}}}return{}}}};async function LQe(e,t){let{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=v0(n),a=A3(n),l=V1(n)==="y",u=["left","top"].includes(s)?-1:1,c=o&&l?-1:1,f=L1(t,e),{mainAxis:d,crossAxis:h,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof m=="number"&&(h=a==="end"?m*-1:m),l?{x:h*c,y:d*u}:{x:d*u,y:h*c}}var Pce=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:o,placement:s,middlewareData:a}=t,l=await LQe(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},kce=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:b=>{let{x:v,y:x}=b;return{x:v,y:x}}},...l}=L1(e,t),u={x:n,y:r},c=await P8(t,l),f=V1(v0(i)),d=QJ(f),h=u[d],m=u[f];if(o){let b=d==="y"?"top":"left",v=d==="y"?"bottom":"right",x=h+c[b],y=h-c[v];h=UJ(x,h,y)}if(s){let b=f==="y"?"top":"left",v=f==="y"?"bottom":"right",x=m+c[b],y=m-c[v];m=UJ(x,m,y)}let g=a.fn({...t,[d]:h,[f]:m});return{...g,data:{x:g.x-n,y:g.y-r}}}}};var Ace=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:o}=t,{apply:s=()=>{},...a}=L1(e,t),l=await P8(t,a),u=v0(n),c=A3(n),f=V1(n)==="y",{width:d,height:h}=r.floating,m,g;u==="top"||u==="bottom"?(m=u,g=c===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(g=u,m=c==="end"?"top":"bottom");let b=h-l.top-l.bottom,v=d-l.left-l.right,x=Jf(h-l[m],b),y=Jf(d-l[g],v),_=!t.middlewareData.shift,w=x,k=y;if(f?k=c||_?Jf(y,v):v:w=c||_?Jf(x,b):b,_&&!c){let M=tu(l.left,0),I=tu(l.right,0),W=tu(l.top,0),J=tu(l.bottom,0);f?k=d-2*(M!==0||I!==0?M+I:tu(l.left,l.right)):w=h-2*(W!==0||J!==0?W+J:tu(l.top,l.bottom))}await s({...t,availableWidth:k,availableHeight:w});let O=await i.getDimensions(o.floating);return d!==O.width||h!==O.height?{reset:{rects:!0}}:{}}}};function Oce(e){let t=kc(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=_d(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=w8(n)!==o||w8(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function rj(e){return Ha(e)?e:e.contextElement}function C3(e){let t=rj(e);if(!_d(t))return g0(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Oce(t),s=(o?w8(n.width):n.width)/r,a=(o?w8(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var VQe=g0(0);function Ece(e){let t=eu(e);return!tO()||!t.visualViewport?VQe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function JQe(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==eu(e)?!1:t}function b2(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),o=rj(e),s=g0(1);t&&(r?Ha(r)&&(s=C3(r)):s=C3(e));let a=JQe(o,n,r)?Ece(o):g0(0),l=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,c=i.width/s.x,f=i.height/s.y;if(o){let d=eu(o),h=r&&Ha(r)?eu(r):r,m=d,g=nO(m);for(;g&&r&&h!==m;){let b=C3(g),v=g.getBoundingClientRect(),x=kc(g),y=v.left+(g.clientLeft+parseFloat(x.paddingLeft))*b.x,_=v.top+(g.clientTop+parseFloat(x.paddingTop))*b.y;l*=b.x,u*=b.y,c*=b.x,f*=b.y,l+=y,u+=_,m=eu(g),g=nO(m)}}return _2({width:c,height:f,x:l,y:u})}function jQe(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o=i==="fixed",s=Vf(r),a=t?x8(t.floating):!1;if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=g0(1),c=g0(0),f=_d(r);if((f||!f&&!o)&&((D1(r)!=="body"||P3(s))&&(l=_8(r)),_d(r))){let d=b2(r);u=C3(r),c.x=d.x+r.clientLeft,c.y=d.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x,y:n.y*u.y-l.scrollTop*u.y+c.y}}function HQe(e){return Array.from(e.getClientRects())}function Mce(e){return b2(Vf(e)).left+_8(e).scrollLeft}function WQe(e){let t=Vf(e),n=_8(e),r=e.ownerDocument.body,i=tu(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=tu(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-n.scrollLeft+Mce(e),a=-n.scrollTop;return kc(r).direction==="rtl"&&(s+=tu(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}function XQe(e,t){let n=eu(e),r=Vf(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;let u=tO();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}function qQe(e,t){let n=b2(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=_d(e)?C3(e):g0(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,u=r*o.y;return{width:s,height:a,x:l,y:u}}function Cce(e,t,n){let r;if(t==="viewport")r=XQe(e,n);else if(t==="document")r=WQe(Vf(e));else if(Ha(t))r=qQe(t,n);else{let i=Ece(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return _2(r)}function Bce(e,t){let n=Lf(e);return n===t||!Ha(n)||R1(n)?!1:kc(n).position==="fixed"||Bce(n,t)}function $Qe(e,t){let n=t.get(e);if(n)return n;let r=m0(e,[],!1).filter(a=>Ha(a)&&D1(a)!=="body"),i=null,o=kc(e).position==="fixed",s=o?Lf(e):e;for(;Ha(s)&&!R1(s);){let a=kc(s),l=eO(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||P3(s)&&!l&&Bce(e,s))?r=r.filter(c=>c!==s):i=a,s=Lf(s)}return t.set(e,r),r}function KQe(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,s=[...n==="clippingAncestors"?x8(t)?[]:$Qe(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,c)=>{let f=Cce(t,c,i);return u.top=tu(f.top,u.top),u.right=Jf(f.right,u.right),u.bottom=Jf(f.bottom,u.bottom),u.left=tu(f.left,u.left),u},Cce(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function YQe(e){let{width:t,height:n}=Oce(e);return{width:t,height:n}}function ZQe(e,t,n){let r=_d(t),i=Vf(t),o=n==="fixed",s=b2(e,!0,o,t),a={scrollLeft:0,scrollTop:0},l=g0(0);if(r||!r&&!o)if((D1(t)!=="body"||P3(i))&&(a=_8(t)),r){let f=b2(t,!0,o,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else i&&(l.x=Mce(i));let u=s.left+a.scrollLeft-l.x,c=s.top+a.scrollTop-l.y;return{x:u,y:c,width:s.width,height:s.height}}function nj(e){return kc(e).position==="static"}function Sce(e,t){return!_d(e)||kc(e).position==="fixed"?null:t?t(e):e.offsetParent}function Nce(e,t){let n=eu(e);if(x8(e))return n;if(!_d(e)){let i=Lf(e);for(;i&&!R1(i);){if(Ha(i)&&!nj(i))return i;i=Lf(i)}return n}let r=Sce(e,t);for(;r&&pce(r)&&nj(r);)r=Sce(r,t);return r&&R1(r)&&nj(r)&&!eO(r)?n:r||fce(e)||n}var UQe=async function(e){let t=this.getOffsetParent||Nce,n=this.getDimensions,r=await n(e.floating);return{reference:ZQe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function QQe(e){return kc(e).direction==="rtl"}var ij={convertOffsetParentRelativeRectToViewportRelativeRect:jQe,getDocumentElement:Vf,getClippingRect:KQe,getOffsetParent:Nce,getElementRects:UQe,getClientRects:HQe,getDimensions:YQe,getScale:C3,isElement:Ha,isRTL:QQe};function eet(e,t){let n=null,r,i=Vf(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();let{left:u,top:c,width:f,height:d}=e.getBoundingClientRect();if(a||t(),!f||!d)return;let h=k3(c),m=k3(i.clientWidth-(u+f)),g=k3(i.clientHeight-(c+d)),b=k3(u),x={rootMargin:-h+"px "+-m+"px "+-g+"px "+-b+"px",threshold:tu(0,Jf(1,l))||1},y=!0;function _(w){let k=w[0].intersectionRatio;if(k!==l){if(!y)return s();k?s(!1,k):r=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(_,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(_,x)}n.observe(e)}return s(!0),o}function iO(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=rj(e),c=i||o?[...u?m0(u):[],...m0(t)]:[];c.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),o&&v.addEventListener("resize",n)});let f=u&&a?eet(u,n):null,d=-1,h=null;s&&(h=new ResizeObserver(v=>{let[x]=v;x&&x.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var y;(y=h)==null||y.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let m,g=l?b2(e):null;l&&b();function b(){let v=b2(e);g&&(v.x!==g.x||v.y!==g.y||v.width!==g.width||v.height!==g.height)&&n(),g=v,m=requestAnimationFrame(b)}return n(),()=>{var v;c.forEach(x=>{i&&x.removeEventListener("scroll",n),o&&x.removeEventListener("resize",n)}),f?.(),(v=h)==null||v.disconnect(),h=null,l&&cancelAnimationFrame(m)}}var S3=P8,Gce=Pce;var Fce=kce,Ice=wce,zce=Ace;var oO=(e,t,n)=>{let r=new Map,i={platform:ij,...n},o={...i.platform,_c:r};return bce(e,t,{...i,platform:o})};var Ls=ie(Pe(),1),lO=ie(Pe(),1),Rce=ie(Yl(),1),sO=typeof document<"u"?lO.useLayoutEffect:lO.useEffect;function aO(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(!aO(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;){let o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!aO(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Lce(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Tce(e,t){let n=Lce(e);return Math.round(t*n)/n}function Dce(e){let t=Ls.useRef(e);return sO(()=>{t.current=e}),t}function Vce(e){e===void 0&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,f]=Ls.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=Ls.useState(r);aO(d,r)||h(r);let[m,g]=Ls.useState(null),[b,v]=Ls.useState(null),x=Ls.useCallback(N=>{N!==k.current&&(k.current=N,g(N))},[]),y=Ls.useCallback(N=>{N!==O.current&&(O.current=N,v(N))},[]),_=o||m,w=s||b,k=Ls.useRef(null),O=Ls.useRef(null),M=Ls.useRef(c),I=l!=null,W=Dce(l),J=Dce(i),H=Ls.useCallback(()=>{if(!k.current||!O.current)return;let N={placement:t,strategy:n,middleware:d};J.current&&(N.platform=J.current),oO(k.current,O.current,N).then(C=>{let S={...C,isPositioned:!0};ee.current&&!aO(M.current,S)&&(M.current=S,Rce.flushSync(()=>{f(S)}))})},[d,t,n,J]);sO(()=>{u===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,f(N=>({...N,isPositioned:!1})))},[u]);let ee=Ls.useRef(!1);sO(()=>(ee.current=!0,()=>{ee.current=!1}),[]),sO(()=>{if(_&&(k.current=_),w&&(O.current=w),_&&w){if(W.current)return W.current(_,w,H);H()}},[_,w,H,W,I]);let j=Ls.useMemo(()=>({reference:k,floating:O,setReference:x,setFloating:y}),[x,y]),V=Ls.useMemo(()=>({reference:_,floating:w}),[_,w]),B=Ls.useMemo(()=>{let N={position:n,left:0,top:0};if(!V.floating)return N;let C=Tce(V.floating,c.x),S=Tce(V.floating,c.y);return a?{...N,transform:"translate("+C+"px, "+S+"px)",...Lce(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:C,top:S}},[n,a,V.floating,c.x,c.y]);return Ls.useMemo(()=>({...c,update:H,refs:j,elements:V,floatingStyles:B}),[c,H,j,V,B])}var k8=(e,t)=>({...Gce(e),options:[e,t]}),oj=(e,t)=>({...Fce(e),options:[e,t]});var sj=(e,t)=>({...Ice(e),options:[e,t]}),aj=(e,t)=>({...zce(e),options:[e,t]});var qce={...Xn},tet=qce.useInsertionEffect,net=tet||(e=>e());function $ce(e){let t=Xn.useRef(()=>{});return net(()=>{t.current=e}),Xn.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var ret="ArrowUp",iet="ArrowDown",oet="ArrowLeft",set="ArrowRight";var uj=typeof document<"u"?A8.useLayoutEffect:A8.useEffect;var aet=[oet,set],uet=[ret,iet],qin=[...aet,...uet];var Jce=!1,cet=0,jce=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+cet++;function det(){let[e,t]=Xn.useState(()=>Jce?jce():void 0);return uj(()=>{e==null&&t(jce())},[]),Xn.useEffect(()=>{Jce=!0},[]),e}var pet=qce.useId,fet=pet||det;function het(){let e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}var met=Xn.createContext(null),get=Xn.createContext(null),vet=()=>{var e;return((e=Xn.useContext(met))==null?void 0:e.id)||null},yet=()=>Xn.useContext(get);var xet="data-floating-ui-focusable";function _et(e){let{open:t=!1,onOpenChange:n,elements:r}=e,i=fet(),o=Xn.useRef({}),[s]=Xn.useState(()=>het()),a=vet()!=null,[l,u]=Xn.useState(r.reference),c=$ce((h,m,g)=>{o.current.openEvent=h?m:void 0,s.emit("openchange",{open:h,event:m,reason:g,nested:a}),n?.(h,m,g)}),f=Xn.useMemo(()=>({setPositionReference:u}),[]),d=Xn.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return Xn.useMemo(()=>({dataRef:o,open:t,onOpenChange:c,elements:d,events:s,floatingId:i,refs:f}),[t,c,d,s,i,f])}function Kce(e){e===void 0&&(e={});let{nodeId:t}=e,n=_et({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,s]=Xn.useState(null),[a,l]=Xn.useState(null),c=i?.reference||o,f=Xn.useRef(null),d=yet();uj(()=>{c&&(f.current=c)},[c]);let h=Vce({...e,elements:{...i,...a&&{reference:a}}}),m=Xn.useCallback(y=>{let _=Ha(y)?{getBoundingClientRect:()=>y.getBoundingClientRect(),contextElement:y}:y;l(_),h.refs.setReference(_)},[h.refs]),g=Xn.useCallback(y=>{(Ha(y)||y===null)&&(f.current=y,s(y)),(Ha(h.refs.reference.current)||h.refs.reference.current===null||y!==null&&!Ha(y))&&h.refs.setReference(y)},[h.refs]),b=Xn.useMemo(()=>({...h.refs,setReference:g,setPositionReference:m,domReference:f}),[h.refs,g,m]),v=Xn.useMemo(()=>({...h.elements,domReference:c}),[h.elements,c]),x=Xn.useMemo(()=>({...h,...r,refs:b,elements:v,nodeId:t}),[h,b,v,t,r]);return uj(()=>{r.dataRef.current.floatingContext=x;let y=d?.nodesRef.current.find(_=>_.id===t);y&&(y.context=x)}),Xn.useMemo(()=>({...h,context:x,refs:b,elements:v}),[h,b,v,x])}var Hce="active",Wce="selected";function lj(e,t,n){let r=new Map,i=n==="item",o=e;if(i&&e){let{[Hce]:s,[Wce]:a,...l}=e;o=l}return{...n==="floating"&&{tabIndex:-1,[xet]:""},...o,...t.map(s=>{let a=s?s[n]:null;return typeof a=="function"?e?a(e):null:a}).concat(e).reduce((s,a)=>(a&&Object.entries(a).forEach(l=>{let[u,c]=l;if(!(i&&[Hce,Wce].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof c=="function"){var f;(f=r.get(u))==null||f.push(c),s[u]=function(){for(var d,h=arguments.length,m=new Array(h),g=0;g<h;g++)m[g]=arguments[g];return(d=r.get(u))==null?void 0:d.map(b=>b(...m)).find(b=>b!==void 0)}}}else s[u]=c}),s),{})}}function Yce(e){e===void 0&&(e=[]);let t=e.map(a=>a?.reference),n=e.map(a=>a?.floating),r=e.map(a=>a?.item),i=Xn.useCallback(a=>lj(a,e,"reference"),t),o=Xn.useCallback(a=>lj(a,e,"floating"),n),s=Xn.useCallback(a=>lj(a,e,"item"),r);return Xn.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:s}),[i,o,s])}function Xce(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}var Zce=e=>({name:"inner",options:e,async fn(t){let{listRef:n,overflowRef:r,onFallbackChange:i,offset:o=0,index:s=0,minItemsVisible:a=4,referenceOverflowThreshold:l=0,scrollRef:u,...c}=L1(e,t),{rects:f,elements:{floating:d}}=t,h=n.current[s],m=u?.current||d,g=d.clientTop||m.clientTop,b=d.clientTop!==0,v=m.clientTop!==0,x=d===m;if(!h)return{};let y={...t,...await k8(-h.offsetTop-d.clientTop-f.reference.height/2-h.offsetHeight/2-o).fn(t)},_=await S3(Xce(y,m.scrollHeight+g+d.clientTop),c),w=await S3(y,{...c,elementContext:"reference"}),k=Math.max(0,_.top),O=y.y+k,M=Math.max(0,m.scrollHeight+(b&&x||v?g*2:0)-k-Math.max(0,_.bottom));return m.style.maxHeight=M+"px",m.scrollTop=k,i&&(m.offsetHeight<h.offsetHeight*Math.min(a,n.current.length-1)-1||w.top>=-l||w.bottom>=-l?O3.flushSync(()=>i(!0)):O3.flushSync(()=>i(!1))),r&&(r.current=await S3(Xce({...y,y:O},m.offsetHeight+g+d.clientTop),c)),{y:O}}});function Uce(e,t){let{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:s,onChange:a}=t,l=$ce(a),u=Xn.useRef(!1),c=Xn.useRef(null),f=Xn.useRef(null);Xn.useEffect(()=>{if(!i)return;function h(g){if(g.ctrlKey||!m||o.current==null)return;let b=g.deltaY,v=o.current.top>=-.5,x=o.current.bottom>=-.5,y=m.scrollHeight-m.clientHeight,_=b<0?-1:1,w=b<0?"max":"min";m.scrollHeight<=m.clientHeight||(!v&&b>0||!x&&b<0?(g.preventDefault(),O3.flushSync(()=>{l(k=>k+Math[w](b,y*_))})):/firefox/i.test(mce())&&(m.scrollTop+=b))}let m=s?.current||r.floating;if(n&&m)return m.addEventListener("wheel",h),requestAnimationFrame(()=>{c.current=m.scrollTop,o.current!=null&&(f.current={...o.current})}),()=>{c.current=null,f.current=null,m.removeEventListener("wheel",h)}},[i,n,r.floating,o,s,l]);let d=Xn.useMemo(()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){let h=s?.current||r.floating;if(!(!o.current||!h||!u.current)){if(c.current!==null){let m=h.scrollTop-c.current;(o.current.bottom<-.5&&m<-1||o.current.top<-.5&&m>1)&&O3.flushSync(()=>l(g=>g+m))}requestAnimationFrame(()=>{c.current=h.scrollTop})}}}),[r.floating,l,o,s]);return Xn.useMemo(()=>i?{floating:d}:{},[i,d])}var dj=ie(Pe(),1),qo=ie(Pe(),1);var E3=(0,qo.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});E3.displayName="FloatingContext";var pj=(0,qo.createContext)(null);pj.displayName="PlacementContext";function uO(e){return(0,qo.useMemo)(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function cO(){return(0,qo.useContext)(E3).setReference}function tde(){return(0,qo.useContext)(E3).getReferenceProps}function dO(){let{getFloatingProps:e,slot:t}=(0,qo.useContext)(E3);return(0,qo.useCallback)((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function pO(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=(0,qo.useContext)(pj),n=(0,qo.useMemo)(()=>e,[JSON.stringify(e,typeof HTMLElement<"u"?(i,o)=>o instanceof HTMLElement?o.outerHTML:o:void 0)]);An(()=>{t?.(n??null)},[t,n]);let r=(0,qo.useContext)(E3);return(0,qo.useMemo)(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}var Qce=4;function fO({children:e,enabled:t=!0}){let[n,r]=(0,qo.useState)(null),[i,o]=(0,qo.useState)(0),s=(0,qo.useRef)(null),[a,l]=(0,qo.useState)(null);bet(a);let u=t&&n!==null&&a!==null,{to:c="bottom",gap:f=0,offset:d=0,padding:h=0,inner:m}=wet(n,a),[g,b="center"]=c.split(" ");An(()=>{u&&o(0)},[u]);let{refs:v,floatingStyles:x,context:y}=Kce({open:u,placement:g==="selection"?b==="center"?"bottom":`bottom-${b}`:b==="center"?`${g}`:`${g}-${b}`,strategy:"absolute",transform:!1,middleware:[k8({mainAxis:g==="selection"?0:f,crossAxis:d}),oj({padding:h}),g!=="selection"&&sj({padding:h}),g==="selection"&&m?Zce({...m,padding:h,overflowRef:s,offset:i,minItemsVisible:Qce,referenceOverflowThreshold:h,onFallbackChange(J){var H,ee;if(!J)return;let j=y.elements.floating;if(!j)return;let V=parseFloat(getComputedStyle(j).scrollPaddingBottom)||0,B=Math.min(Qce,j.childElementCount),N=0,C=0;for(let S of(ee=(H=y.elements.floating)==null?void 0:H.childNodes)!=null?ee:[])if(S instanceof HTMLElement){let G=S.offsetTop,T=G+S.clientHeight+V,Q=j.scrollTop,U=Q+j.clientHeight;if(G>=Q&&T<=U)B--;else{C=Math.max(0,Math.min(T,U)-Math.max(G,Q)),N=S.clientHeight;break}}B>=1&&o(S=>{let G=N*B-C+V;return S>=G?S:G})}}):null,aj({padding:h,apply({availableWidth:J,availableHeight:H,elements:ee}){Object.assign(ee.floating.style,{overflow:"auto",maxWidth:`${J}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${H}px)`})}})].filter(Boolean),whileElementsMounted:iO}),[_=g,w=b]=y.placement.split("-");g==="selection"&&(_="selection");let k=(0,qo.useMemo)(()=>({anchor:[_,w].filter(Boolean).join(" ")}),[_,w]),O=Uce(y,{overflowRef:s,onChange:o}),{getReferenceProps:M,getFloatingProps:I}=Yce([O]),W=_t(J=>{l(J),v.setFloating(J)});return dj.createElement(pj.Provider,{value:r},dj.createElement(E3.Provider,{value:{setFloating:W,setReference:v.setReference,styles:x,getReferenceProps:M,getFloatingProps:I,slot:k}},e))}function bet(e){An(()=>{if(!e)return;let t=new MutationObserver(()=>{let n=window.getComputedStyle(e).maxHeight,r=parseFloat(n);if(isNaN(r))return;let i=parseInt(n);isNaN(i)||r!==i&&(e.style.maxHeight=`${Math.ceil(r)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}function wet(e,t){var n,r,i;let o=cj((n=e?.gap)!=null?n:"var(--anchor-gap, 0)",t),s=cj((r=e?.offset)!=null?r:"var(--anchor-offset, 0)",t),a=cj((i=e?.padding)!=null?i:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:s,padding:a}}function cj(e,t,n=void 0){let r=bl(),i=_t((l,u)=>{if(l==null)return[n,null];if(typeof l=="number")return[l,null];if(typeof l=="string"){if(!u)return[n,null];let c=ede(l,u);return[c,f=>{let d=nde(l);{let h=d.map(m=>window.getComputedStyle(u).getPropertyValue(m));r.requestAnimationFrame(function m(){r.nextFrame(m);let g=!1;for(let[v,x]of d.entries()){let y=window.getComputedStyle(u).getPropertyValue(x);if(h[v]!==y){h[v]=y,g=!0;break}}if(!g)return;let b=ede(l,u);c!==b&&(f(b),c=b)})}return r.dispose}]}return[n,null]}),o=(0,qo.useMemo)(()=>i(e,t)[0],[e,t]),[s=o,a]=(0,qo.useState)();return An(()=>{let[l,u]=i(e,t);if(a(l),!!u)return u(a)},[e,t]),s}function nde(e){let t=/var\((.*)\)/.exec(e);if(t){let n=t[1].indexOf(",");if(n===-1)return[t[1]];let r=t[1].slice(0,n).trim(),i=t[1].slice(n+1).trim();return i?[r,...nde(i)]:[r]}return[]}function ede(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}var w2=ie(Pe(),1),hO=(0,w2.createContext)(null);hO.displayName="OpenClosedContext";var To=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(To||{});function zp(){return(0,w2.useContext)(hO)}function M3({value:e,children:t}){return w2.default.createElement(hO.Provider,{value:e},t)}function mO({children:e}){return w2.default.createElement(hO.Provider,{value:null},e)}function rde(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}var y0=[];rde(()=>{function e(t){if(!(t.target instanceof HTMLElement)||t.target===document.body||y0[0]===t.target)return;let n=t.target;n=n.closest(m8),y0.unshift(n??t.target),y0=y0.filter(r=>r!=null&&r.isConnected),y0.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Pet(e){throw new Error("Unexpected object: "+e)}var Wa=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(Wa||{});function gO(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1;switch(e.focus){case 0:{for(let o=0;o<n.length;++o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 1:{i===-1&&(i=n.length);for(let o=i-1;o>=0;--o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 2:{for(let o=i+1;o<n.length;++o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 3:{for(let o=n.length-1;o>=0;--o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 4:{for(let o=0;o<n.length;++o)if(t.resolveId(n[o],o,n)===e.id)return o;return r}case 5:return null;default:Pet(e)}}var Co=ie(Pe(),1),sde=ie(Yl(),1);var vO=ie(Pe(),1);function yO(e){let t=_t(e),n=(0,vO.useRef)(!1);(0,vO.useEffect)(()=>(n.current=!1,()=>{n.current=!0,f0(()=>{n.current&&t()})}),[t])}var P2=ie(Pe(),1);function ket(){let e=typeof document>"u";return"useSyncExternalStore"in P2?(t=>t.useSyncExternalStore)(P2)(()=>()=>{},()=>!1,()=>!e):!1}function x0(){let e=ket(),[t,n]=P2.useState(Ep.isHandoffComplete);return t&&Ep.isHandoffComplete===!1&&n(!1),P2.useEffect(()=>{t!==!0&&n(!0)},[t]),P2.useEffect(()=>Ep.handoff(),[]),e?!1:t}var B3=ie(Pe(),1),ide=(0,B3.createContext)(!1);function ode(){return(0,B3.useContext)(ide)}function fj(e){return B3.default.createElement(ide.Provider,{value:e.force},e.children)}function Aet(e){let t=ode(),n=(0,Co.useContext)(lde),r=Ql(e),[i,o]=(0,Co.useState)(()=>{var s;if(!t&&n!==null)return(s=n.current)!=null?s:null;if(Ep.isServer)return null;let a=r?.getElementById("headlessui-portal-root");if(a)return a;if(r===null)return null;let l=r.createElement("div");return l.setAttribute("id","headlessui-portal-root"),r.body.appendChild(l)});return(0,Co.useEffect)(()=>{i!==null&&(r!=null&&r.body.contains(i)||r==null||r.body.appendChild(i))},[i,r]),(0,Co.useEffect)(()=>{t||n!==null&&o(n.current)},[n,o,t]),i}var ade=Co.Fragment,Cet=Mn(function(e,t){let n=e,r=(0,Co.useRef)(null),i=yr(RS(c=>{r.current=c}),t),o=Ql(r),s=Aet(r),[a]=(0,Co.useState)(()=>{var c;return Ep.isServer?null:(c=o?.createElement("div"))!=null?c:null}),l=(0,Co.useContext)(hj),u=x0();return An(()=>{!s||!a||s.contains(a)||(a.setAttribute("data-headlessui-portal",""),s.appendChild(a))},[s,a]),An(()=>{if(a&&l)return l.register(a)},[l,a]),yO(()=>{var c;!s||!a||(a instanceof Node&&s.contains(a)&&s.removeChild(a),s.childNodes.length<=0&&((c=s.parentElement)==null||c.removeChild(s)))}),u?!s||!a?null:(0,sde.createPortal)(Tn({ourProps:{ref:i},theirProps:n,slot:{},defaultTag:ade,name:"Portal"}),a):null});function Oet(e,t){let n=yr(t),{enabled:r=!0,...i}=e;return r?Co.default.createElement(Cet,{...i,ref:n}):Tn({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:ade,name:"Portal"})}var Eet=Co.Fragment,lde=(0,Co.createContext)(null);function Met(e,t){let{target:n,...r}=e,i={ref:yr(t)};return Co.default.createElement(lde.Provider,{value:n},Tn({ourProps:i,theirProps:r,defaultTag:Eet,name:"Popover.Group"}))}var hj=(0,Co.createContext)(null);function xO(){let e=(0,Co.useContext)(hj),t=(0,Co.useRef)([]),n=_t(o=>(t.current.push(o),e&&e.register(o),()=>r(o))),r=_t(o=>{let s=t.current.indexOf(o);s!==-1&&t.current.splice(s,1),e&&e.unregister(o)}),i=(0,Co.useMemo)(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,(0,Co.useMemo)(()=>function({children:o}){return Co.default.createElement(hj.Provider,{value:i},o)},[i])]}var Bet=Mn(Oet),mj=Mn(Met),N3=Object.assign(Bet,{Group:mj});var wr=ie(Pe(),1);function ude(e,t=typeof document<"u"?document.defaultView:null,n){let r=Gp(e,"escape");b3(t,"keydown",i=>{r&&(i.defaultPrevented||i.key===Dn.Escape&&n(i))})}var gj=ie(Pe(),1);function cde(){var e;let[t]=(0,gj.useState)(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,r]=(0,gj.useState)((e=t?.matches)!=null?e:!1);return An(()=>{if(!t)return;function i(o){r(o.matches)}return t.addEventListener("change",i),()=>t.removeEventListener("change",i)},[t]),n}var _0=ie(Pe(),1);function _O({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=Ql(n),i=_t(()=>{var o,s;let a=[];for(let l of e)l!==null&&(l instanceof HTMLElement?a.push(l):"current"in l&&l.current instanceof HTMLElement&&a.push(l.current));if(t!=null&&t.current)for(let l of t.current)a.push(l);for(let l of(o=r?.querySelectorAll("html > *, body > *"))!=null?o:[])l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l.id!=="headlessui-portal-root"&&(n&&(l.contains(n)||l.contains((s=n?.getRootNode())==null?void 0:s.host))||a.some(u=>l.contains(u))||a.push(l));return a});return{resolveContainers:i,contains:_t(o=>i().some(s=>s.contains(o)))}}var dde=(0,_0.createContext)(null);function G3({children:e,node:t}){let[n,r]=(0,_0.useState)(null),i=C8(t??n);return _0.default.createElement(dde.Provider,{value:i},e,i===null&&_0.default.createElement(ja,{features:Pl.Hidden,ref:o=>{var s,a;if(o){for(let l of(a=(s=ra(o))==null?void 0:s.querySelectorAll("html > *, body > *"))!=null?a:[])if(l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l!=null&&l.contains(o)){r(l);break}}}}))}function C8(e=null){var t;return(t=(0,_0.useContext)(dde))!=null?t:e}var jf=ie(Pe(),1);var pde=ie(Pe(),1);function k2(){let e=(0,pde.useRef)(!1);return An(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var fde=ie(Pe(),1);var nu=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(nu||{});function S8(){let e=(0,fde.useRef)(0);return ZS(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function hde(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}var Net="div",J1=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(J1||{});function Get(e,t){let n=(0,jf.useRef)(null),r=yr(n,t),{initialFocus:i,initialFocusFallback:o,containers:s,features:a=15,...l}=e;x0()||(a=0);let u=Ql(n);zet(a,{ownerDocument:u});let c=Tet(a,{ownerDocument:u,container:n,initialFocus:i,initialFocusFallback:o});Det(a,{ownerDocument:u,container:n,containers:s,previousActiveElement:c});let f=S8(),d=_t(v=>{let x=n.current;!x||(y=>y())(()=>{Ei(f.current,{[nu.Forwards]:()=>{zo(x,Nr.First,{skipElements:[v.relatedTarget,o]})},[nu.Backwards]:()=>{zo(x,Nr.Last,{skipElements:[v.relatedTarget,o]})}})})}),h=Gp(!!(a&2),"focus-trap#tab-lock"),m=bl(),g=(0,jf.useRef)(!1),b={ref:r,onKeyDown(v){v.key=="Tab"&&(g.current=!0,m.requestAnimationFrame(()=>{g.current=!1}))},onBlur(v){if(!(a&4))return;let x=hde(s);n.current instanceof HTMLElement&&x.add(n.current);let y=v.relatedTarget;y instanceof HTMLElement&&y.dataset.headlessuiFocusGuard!=="true"&&(gde(x,y)||(g.current?zo(n.current,Ei(f.current,{[nu.Forwards]:()=>Nr.Next,[nu.Backwards]:()=>Nr.Previous})|Nr.WrapAround,{relativeTo:v.target}):v.target instanceof HTMLElement&&Fp(v.target)))}};return jf.default.createElement(jf.default.Fragment,null,h&&jf.default.createElement(ja,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:Pl.Focusable}),Tn({ourProps:b,theirProps:l,defaultTag:Net,name:"FocusTrap"}),h&&jf.default.createElement(ja,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:Pl.Focusable}))}var Fet=Mn(Get),mde=Object.assign(Fet,{features:J1});function Iet(e=!0){let t=(0,jf.useRef)(y0.slice());return QS(([n],[r])=>{r===!0&&n===!1&&f0(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=y0.slice())},[e,y0,t]),_t(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function zet(e,{ownerDocument:t}){let n=!!(e&8),r=Iet(n);QS(()=>{n||t?.activeElement===t?.body&&Fp(r())},[n]),yO(()=>{n&&Fp(r())})}function Tet(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:i}){let o=(0,jf.useRef)(null),s=Gp(!!(e&1),"focus-trap#initial-focus"),a=k2();return QS(()=>{if(e===0)return;if(!s){i!=null&&i.current&&Fp(i.current);return}let l=n.current;l&&f0(()=>{if(!a.current)return;let u=t?.activeElement;if(r!=null&&r.current){if(r?.current===u){o.current=u;return}}else if(l.contains(u)){o.current=u;return}if(r!=null&&r.current)Fp(r.current);else{if(e&16){if(zo(l,Nr.First|Nr.AutoFocus)!==kl.Error)return}else if(zo(l,Nr.First)!==kl.Error)return;if(i!=null&&i.current&&(Fp(i.current),t?.activeElement===i.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}o.current=t?.activeElement})},[i,s,e]),o}function Det(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:i}){let o=k2(),s=!!(e&4);b3(t?.defaultView,"focus",a=>{if(!s||!o.current)return;let l=hde(r);n.current instanceof HTMLElement&&l.add(n.current);let u=i.current;if(!u)return;let c=a.target;c&&c instanceof HTMLElement?gde(l,c)?(i.current=c,Fp(c)):(a.preventDefault(),a.stopPropagation(),Fp(u)):Fp(i.current)},!0)}function gde(e,t){for(let n of e)if(n.contains(t))return!0;return!1}var dr=ie(Pe(),1);function vde(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:xde)!==dr.Fragment||dr.default.Children.count(e.children)===1}var bO=(0,dr.createContext)(null);bO.displayName="TransitionContext";var Ret=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Ret||{});function Let(){let e=(0,dr.useContext)(bO);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Vet(){let e=(0,dr.useContext)(wO);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}var wO=(0,dr.createContext)(null);wO.displayName="NestingContext";function PO(e){return"children"in e?PO(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function yde(e,t){let n=Io(e),r=(0,dr.useRef)([]),i=k2(),o=bl(),s=_t((h,m=h0.Hidden)=>{let g=r.current.findIndex(({el:b})=>b===h);g!==-1&&(Ei(m,{[h0.Unmount](){r.current.splice(g,1)},[h0.Hidden](){r.current[g].state="hidden"}}),o.microTask(()=>{var b;!PO(r)&&i.current&&((b=n.current)==null||b.call(n))}))}),a=_t(h=>{let m=r.current.find(({el:g})=>g===h);return m?m.state!=="visible"&&(m.state="visible"):r.current.push({el:h,state:"visible"}),()=>s(h,h0.Unmount)}),l=(0,dr.useRef)([]),u=(0,dr.useRef)(Promise.resolve()),c=(0,dr.useRef)({enter:[],leave:[]}),f=_t((h,m,g)=>{l.current.splice(0),t&&(t.chains.current[m]=t.chains.current[m].filter(([b])=>b!==h)),t?.chains.current[m].push([h,new Promise(b=>{l.current.push(b)})]),t?.chains.current[m].push([h,new Promise(b=>{Promise.all(c.current[m].map(([v,x])=>x)).then(()=>b())})]),m==="enter"?u.current=u.current.then(()=>t?.wait.current).then(()=>g(m)):g(m)}),d=_t((h,m,g)=>{Promise.all(c.current[m].splice(0).map(([b,v])=>v)).then(()=>{var b;(b=l.current.shift())==null||b()}).then(()=>g(m))});return(0,dr.useMemo)(()=>({children:r,register:a,unregister:s,onStart:f,onStop:d,wait:u,chains:c}),[a,s,r,f,d,c,u])}var xde=dr.Fragment,_de=Ja.RenderStrategy;function Jet(e,t){var n,r;let{transition:i=!0,beforeEnter:o,afterEnter:s,beforeLeave:a,afterLeave:l,enter:u,enterFrom:c,enterTo:f,entered:d,leave:h,leaveFrom:m,leaveTo:g,...b}=e,[v,x]=(0,dr.useState)(null),y=(0,dr.useRef)(null),_=vde(e),w=yr(..._?[y,t,x]:t===null?[]:[t]),k=(n=b.unmount)==null||n?h0.Unmount:h0.Hidden,{show:O,appear:M,initial:I}=Let(),[W,J]=(0,dr.useState)(O?"visible":"hidden"),H=Vet(),{register:ee,unregister:j}=H;An(()=>ee(y),[ee,y]),An(()=>{if(k===h0.Hidden&&y.current){if(O&&W!=="visible"){J("visible");return}return Ei(W,{hidden:()=>j(y),visible:()=>ee(y)})}},[W,y,ee,j,O,k]);let V=x0();An(()=>{if(_&&V&&W==="visible"&&y.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[y,W,V,_]);let B=I&&!M,N=M&&O&&I,C=(0,dr.useRef)(!1),S=yde(()=>{C.current||(J("hidden"),j(y))},H),G=_t(L=>{C.current=!0;let $=L?"enter":"leave";S.onStart(y,$,Z=>{Z==="enter"?o?.():Z==="leave"&&a?.()})}),T=_t(L=>{let $=L?"enter":"leave";C.current=!1,S.onStop(y,$,Z=>{Z==="enter"?s?.():Z==="leave"&&l?.()}),$==="leave"&&!PO(S)&&(J("hidden"),j(y))});(0,dr.useEffect)(()=>{_&&i||(G(O),T(O))},[O,_,i]);let Q=(()=>!(!i||!_||!V||B))(),[,U]=x2(Q,v,O,{start:G,end:T}),F=Tf({ref:w,className:((r=d8(b.className,N&&u,N&&c,U.enter&&u,U.enter&&U.closed&&c,U.enter&&!U.closed&&f,U.leave&&h,U.leave&&!U.closed&&m,U.leave&&U.closed&&g,!U.transition&&O&&d))==null?void 0:r.trim())||void 0,...y2(U)}),D=0;return W==="visible"&&(D|=To.Open),W==="hidden"&&(D|=To.Closed),U.enter&&(D|=To.Opening),U.leave&&(D|=To.Closing),dr.default.createElement(wO.Provider,{value:S},dr.default.createElement(M3,{value:D},Tn({ourProps:F,theirProps:b,defaultTag:xde,features:_de,visible:W==="visible",name:"Transition.Child"})))}function jet(e,t){let{show:n,appear:r=!1,unmount:i=!0,...o}=e,s=(0,dr.useRef)(null),a=vde(e),l=yr(...a?[s,t]:t===null?[]:[t]);x0();let u=zp();if(n===void 0&&u!==null&&(n=(u&To.Open)===To.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,f]=(0,dr.useState)(n?"visible":"hidden"),d=yde(()=>{n||f("hidden")}),[h,m]=(0,dr.useState)(!0),g=(0,dr.useRef)([n]);An(()=>{h!==!1&&g.current[g.current.length-1]!==n&&(g.current.push(n),m(!1))},[g,n]);let b=(0,dr.useMemo)(()=>({show:n,appear:r,initial:h}),[n,r,h]);An(()=>{n?f("visible"):!PO(d)&&s.current!==null&&f("hidden")},[n,d]);let v={unmount:i},x=_t(()=>{var _;h&&m(!1),(_=e.beforeEnter)==null||_.call(e)}),y=_t(()=>{var _;h&&m(!1),(_=e.beforeLeave)==null||_.call(e)});return dr.default.createElement(wO.Provider,{value:d},dr.default.createElement(bO.Provider,{value:b},Tn({ourProps:{...v,as:dr.Fragment,children:dr.default.createElement(bde,{ref:l,...v,...o,beforeEnter:x,beforeLeave:y})},theirProps:{},defaultTag:dr.Fragment,features:_de,visible:c==="visible",name:"Transition"})))}function Het(e,t){let n=(0,dr.useContext)(bO)!==null,r=zp()!==null;return dr.default.createElement(dr.default.Fragment,null,!n&&r?dr.default.createElement(vj,{ref:t,...e}):dr.default.createElement(bde,{ref:t,...e}))}var vj=Mn(jet),bde=Mn(Jet),kO=Mn(Het),Fi=Object.assign(vj,{Child:kO,Root:vj});var Wet=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Wet||{}),Xet=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Xet||{}),qet={[0](e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},yj=(0,wr.createContext)(null);yj.displayName="DialogContext";function AO(e){let t=(0,wr.useContext)(yj);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,AO),n}return t}function $et(e,t){return Ei(t.type,qet,e,t)}var wde=Mn(function(e,t){let n=(0,Hi.useId)(),{id:r=`headlessui-dialog-${n}`,open:i,onClose:o,initialFocus:s,role:a="dialog",autoFocus:l=!0,__demoMode:u=!1,unmount:c=!1,...f}=e,d=(0,wr.useRef)(!1);a=function(){return a==="dialog"||a==="alertdialog"?a:(d.current||(d.current=!0,console.warn(`Invalid role [${a}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let h=zp();i===void 0&&h!==null&&(i=(h&To.Open)===To.Open);let m=(0,wr.useRef)(null),g=yr(m,t),b=Ql(m),v=i?0:1,[x,y]=(0,wr.useReducer)($et,{titleId:null,descriptionId:null,panelRef:(0,wr.createRef)()}),_=_t(()=>o(!1)),w=_t(G=>y({type:0,id:G})),k=x0()?v===0:!1,[O,M]=xO(),I={get current(){var G;return(G=x.panelRef.current)!=null?G:m.current}},W=C8(),{resolveContainers:J}=_O({mainTreeNode:W,portals:O,defaultContainers:[I]}),H=h!==null?(h&To.Closing)===To.Closing:!1;YS(u||H?!1:k,{allowed:_t(()=>{var G,T;return[(T=(G=m.current)==null?void 0:G.closest("[data-headlessui-portal]"))!=null?T:null]}),disallowed:_t(()=>{var G;return[(G=W?.closest("body > *:not(#headlessui-portal-root)"))!=null?G:null]})}),_3(k,J,G=>{G.preventDefault(),_()}),ude(k,b?.defaultView,G=>{G.preventDefault(),G.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),_()}),w3(u||H?!1:k,b,J),v3(k,m,_);let[ee,j]=Bp(),V=(0,wr.useMemo)(()=>[{dialogState:v,close:_,setTitleId:w,unmount:c},x],[v,x,_,w,c]),B=(0,wr.useMemo)(()=>({open:v===0}),[v]),N={ref:g,id:r,role:a,tabIndex:-1,"aria-modal":u?void 0:v===0?!0:void 0,"aria-labelledby":x.titleId,"aria-describedby":ee,unmount:c},C=!cde(),S=J1.None;return k&&!u&&(S|=J1.RestoreFocus,S|=J1.TabLock,l&&(S|=J1.AutoFocus),C&&(S|=J1.InitialFocus)),wr.default.createElement(mO,null,wr.default.createElement(fj,{force:!0},wr.default.createElement(N3,null,wr.default.createElement(yj.Provider,{value:V},wr.default.createElement(mj,{target:m},wr.default.createElement(fj,{force:!1},wr.default.createElement(j,{slot:B},wr.default.createElement(M,null,wr.default.createElement(mde,{initialFocus:s,initialFocusFallback:m,containers:J,features:S},wr.default.createElement(HS,{value:_},Tn({ourProps:N,theirProps:f,slot:B,defaultTag:Ket,features:Yet,visible:v===0,name:"Dialog"})))))))))))}),Ket="div",Yet=Ja.RenderStrategy|Ja.Static;function Zet(e,t){let{transition:n=!1,open:r,...i}=e,o=zp(),s=e.hasOwnProperty("open")||o!==null,a=e.hasOwnProperty("onClose");if(!s&&!a)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!s)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!a)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!o&&typeof e.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if(typeof e.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(r!==void 0||n)&&!i.static?wr.default.createElement(G3,null,wr.default.createElement(Fi,{show:r,transition:n,unmount:i.unmount},wr.default.createElement(wde,{ref:t,...i}))):wr.default.createElement(G3,null,wr.default.createElement(wde,{ref:t,open:r,...i}))}var Uet="div";function Qet(e,t){let n=(0,Hi.useId)(),{id:r=`headlessui-dialog-panel-${n}`,transition:i=!1,...o}=e,[{dialogState:s,unmount:a},l]=AO("Dialog.Panel"),u=yr(t,l.panelRef),c=(0,wr.useMemo)(()=>({open:s===0}),[s]),f=_t(h=>{h.stopPropagation()}),d={ref:u,id:r,onClick:f};return wr.default.createElement(i?kO:wr.Fragment,{...i?{unmount:a}:{}},Tn({ourProps:d,theirProps:o,slot:c,defaultTag:Uet,name:"Dialog.Panel"}))}var ett="div";function ttt(e,t){let{transition:n=!1,...r}=e,[{dialogState:i,unmount:o}]=AO("Dialog.Backdrop"),s=(0,wr.useMemo)(()=>({open:i===0}),[i]),a={ref:t,"aria-hidden":!0};return wr.default.createElement(n?kO:wr.Fragment,{...n?{unmount:o}:{}},Tn({ourProps:a,theirProps:r,slot:s,defaultTag:ett,name:"Dialog.Backdrop"}))}var ntt="h2";function rtt(e,t){let n=(0,Hi.useId)(),{id:r=`headlessui-dialog-title-${n}`,...i}=e,[{dialogState:o,setTitleId:s}]=AO("Dialog.Title"),a=yr(t);(0,wr.useEffect)(()=>(s(r),()=>s(null)),[r,s]);let l=(0,wr.useMemo)(()=>({open:o===0}),[o]);return Tn({ourProps:{ref:a,id:r},theirProps:i,slot:l,defaultTag:ntt,name:"Dialog.Title"})}var itt=Mn(Zet),ott=Mn(Qet),zsn=Mn(ttt),stt=Mn(rtt);var Ii=Object.assign(itt,{Panel:ott,Title:stt,Description:g3});var j1=ie(Pe(),1);var att="div";function ltt(e,t){let n=`headlessui-control-${(0,Hi.useId)()}`,[r,i]=Rf(),[o,s]=Bp(),a=Mp(),{disabled:l=a||!1,...u}=e,c=(0,j1.useMemo)(()=>({disabled:l}),[l]);return j1.default.createElement(Sue,{value:l},j1.default.createElement(i,{value:r},j1.default.createElement(s,{value:o},j1.default.createElement(zue,{id:n},Tn({ourProps:{ref:t,disabled:l||void 0,"aria-disabled":l||void 0},theirProps:{...u,children:j1.default.createElement(Fue,null,typeof u.children=="function"?u.children(c):u.children)},slot:c,defaultTag:att,name:"Field"})))))}var F3=Mn(ltt);var Pde=ie(Pe(),1);function kde(e,t){let n=(0,Pde.useRef)({left:0,top:0});if(An(()=>{if(!t)return;let i=t.getBoundingClientRect();i&&(n.current=i)},[e,t]),t==null||!e||t===document.activeElement)return!1;let r=t.getBoundingClientRect();return r.top!==n.current.top||r.left!==n.current.left}var xj=ie(Pe(),1);var Ade=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Cde(e){var t,n;let r=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let o=!1;for(let a of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))a.remove(),o=!0;let s=o?(n=i.innerText)!=null?n:"":r;return Ade.test(s)&&(s=s.replace(Ade,"")),s}function Sde(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(i=>{let o=document.getElementById(i);if(o){let s=o.getAttribute("aria-label");return typeof s=="string"?s.trim():Cde(o).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return Cde(e).trim()}function Ode(e){let t=(0,xj.useRef)(""),n=(0,xj.useRef)("");return _t(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let o=Sde(r).trim().toLowerCase();return t.current=i,n.current=o,o})}var zi=ie(Pe(),1),I3=ie(Yl(),1);var utt=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(utt||{}),ctt=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(ctt||{}),dtt=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetItemsElement=8]="SetItemsElement",e))(dtt||{});function _j(e,t=n=>n){let n=e.activeItemIndex!==null?e.items[e.activeItemIndex]:null,r=Ip(t(e.items.slice()),o=>o.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return i===-1&&(i=null),{items:r,activeItemIndex:i}}var ptt={[1](e){return e.menuState===1?e:{...e,activeItemIndex:null,menuState:1}},[0](e){return e.menuState===0?e:{...e,__demoMode:!1,menuState:0}},[2]:(e,t)=>{var n,r,i,o,s;if(e.menuState===1)return e;let a={...e,searchQuery:"",activationTrigger:(n=t.trigger)!=null?n:1,__demoMode:!1};if(t.focus===Wa.Nothing)return{...a,activeItemIndex:null};if(t.focus===Wa.Specific)return{...a,activeItemIndex:e.items.findIndex(c=>c.id===t.id)};if(t.focus===Wa.Previous){let c=e.activeItemIndex;if(c!==null){let f=e.items[c].dataRef.current.domRef,d=gO(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:h=>h.id,resolveDisabled:h=>h.dataRef.current.disabled});if(d!==null){let h=e.items[d].dataRef.current.domRef;if(((r=f.current)==null?void 0:r.previousElementSibling)===h.current||((i=h.current)==null?void 0:i.previousElementSibling)===null)return{...a,activeItemIndex:d}}}}else if(t.focus===Wa.Next){let c=e.activeItemIndex;if(c!==null){let f=e.items[c].dataRef.current.domRef,d=gO(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:h=>h.id,resolveDisabled:h=>h.dataRef.current.disabled});if(d!==null){let h=e.items[d].dataRef.current.domRef;if(((o=f.current)==null?void 0:o.nextElementSibling)===h.current||((s=h.current)==null?void 0:s.nextElementSibling)===null)return{...a,activeItemIndex:d}}}}let l=_j(e),u=gO(t,{resolveItems:()=>l.items,resolveActiveIndex:()=>l.activeItemIndex,resolveId:c=>c.id,resolveDisabled:c=>c.dataRef.current.disabled});return{...a,...l,activeItemIndex:u}},[3]:(e,t)=>{let n=e.searchQuery!==""?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(e.activeItemIndex!==null?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find(s=>{var a;return((a=s.dataRef.current.textValue)==null?void 0:a.startsWith(r))&&!s.dataRef.current.disabled}),o=i?e.items.indexOf(i):-1;return o===-1||o===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:o,activationTrigger:1}},[4](e){return e.searchQuery===""?e:{...e,searchQuery:"",searchActiveItemIndex:null}},[5]:(e,t)=>{let n=_j(e,r=>[...r,{id:t.id,dataRef:t.dataRef}]);return{...e,...n}},[6]:(e,t)=>{let n=_j(e,r=>{let i=r.findIndex(o=>o.id===t.id);return i!==-1&&r.splice(i,1),r});return{...e,...n,activationTrigger:1}},[7]:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},[8]:(e,t)=>e.itemsElement===t.element?e:{...e,itemsElement:t.element}},bj=(0,zi.createContext)(null);bj.displayName="MenuContext";function CO(e){let t=(0,zi.useContext)(bj);if(t===null){let n=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,CO),n}return t}function ftt(e,t){return Ei(t.type,ptt,e,t)}var htt=zi.Fragment;function mtt(e,t){let{__demoMode:n=!1,...r}=e,i=(0,zi.useReducer)(ftt,{__demoMode:n,menuState:n?0:1,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:o,itemsElement:s,buttonElement:a},l]=i,u=yr(t);_3(o===0,[a,s],(h,m)=>{l({type:1}),v2(m,g2.Loose)||(h.preventDefault(),a?.focus())});let c=_t(()=>{l({type:1})}),f=(0,zi.useMemo)(()=>({open:o===0,close:c}),[o,c]),d={ref:u};return zi.default.createElement(fO,null,zi.default.createElement(bj.Provider,{value:i},zi.default.createElement(M3,{value:Ei(o,{[0]:To.Open,[1]:To.Closed})},Tn({ourProps:d,theirProps:r,slot:f,defaultTag:htt,name:"Menu"}))))}var gtt="button";function vtt(e,t){var n;let r=(0,Hi.useId)(),{id:i=`headlessui-menu-button-${r}`,disabled:o=!1,autoFocus:s=!1,...a}=e,[l,u]=CO("Menu.Button"),c=tde(),f=GS(),d=yr(t,cO(),_t(M=>u({type:7,element:M}))),h=_t(M=>{switch(M.key){case Dn.Space:case Dn.Enter:case Dn.ArrowDown:M.preventDefault(),M.stopPropagation(),(0,I3.flushSync)(()=>u({type:0})),u({type:2,focus:Wa.First});break;case Dn.ArrowUp:M.preventDefault(),M.stopPropagation(),(0,I3.flushSync)(()=>u({type:0})),u({type:2,focus:Wa.Last});break}}),m=_t(M=>{switch(M.key){case Dn.Space:M.preventDefault();break}}),g=_t(M=>{var I;if(Df(M.currentTarget))return M.preventDefault();o||(l.menuState===0?((0,I3.flushSync)(()=>u({type:1})),(I=l.buttonElement)==null||I.focus({preventScroll:!0})):(M.preventDefault(),u({type:0})))}),{isFocusVisible:b,focusProps:v}=bc({autoFocus:s}),{isHovered:x,hoverProps:y}=xd({isDisabled:o}),{pressed:_,pressProps:w}=F1({disabled:o}),k=(0,zi.useMemo)(()=>({open:l.menuState===0,active:_||l.menuState===0,disabled:o,hover:x,focus:b,autofocus:s}),[l,x,b,_,o,s]),O=Ul(c(),{ref:d,id:i,type:I1(e,l.buttonElement),"aria-haspopup":"menu","aria-controls":(n=l.itemsElement)==null?void 0:n.id,"aria-expanded":l.menuState===0,disabled:o||void 0,autoFocus:s,onKeyDown:h,onKeyUp:m,onClick:g},v,y,w);return Tn({mergeRefs:f,ourProps:O,theirProps:a,slot:k,defaultTag:gtt,name:"Menu.Button"})}var ytt="div",xtt=Ja.RenderStrategy|Ja.Static;function _tt(e,t){var n,r;let i=(0,Hi.useId)(),{id:o=`headlessui-menu-items-${i}`,anchor:s,portal:a=!1,modal:l=!0,transition:u=!1,...c}=e,f=uO(s),[d,h]=CO("Menu.Items"),[m,g]=pO(f),b=dO(),[v,x]=(0,zi.useState)(null),y=yr(t,f?m:null,_t(N=>h({type:8,element:N})),x),_=Ql(d.itemsElement);f&&(a=!0);let w=zp(),[k,O]=x2(u,v,w!==null?(w&To.Open)===To.Open:d.menuState===0);v3(k,d.buttonElement,()=>{h({type:1})});let M=d.__demoMode?!1:l&&d.menuState===0;w3(M,_);let I=d.__demoMode?!1:l&&d.menuState===0;YS(I,{allowed:(0,zi.useCallback)(()=>[d.buttonElement,d.itemsElement],[d.buttonElement,d.itemsElement])});let W=d.menuState!==0,J=kde(W,d.buttonElement)?!1:k;(0,zi.useEffect)(()=>{let N=d.itemsElement;N&&d.menuState===0&&N!==_?.activeElement&&N.focus({preventScroll:!0})},[d.menuState,d.itemsElement,_]),uce(d.menuState===0,{container:d.itemsElement,accept(N){return N.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:N.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(N){N.setAttribute("role","none")}});let H=bl(),ee=_t(N=>{var C,S,G;switch(H.dispose(),N.key){case Dn.Space:if(d.searchQuery!=="")return N.preventDefault(),N.stopPropagation(),h({type:3,value:N.key});case Dn.Enter:if(N.preventDefault(),N.stopPropagation(),h({type:1}),d.activeItemIndex!==null){let{dataRef:T}=d.items[d.activeItemIndex];(S=(C=T.current)==null?void 0:C.domRef.current)==null||S.click()}YJ(d.buttonElement);break;case Dn.ArrowDown:return N.preventDefault(),N.stopPropagation(),h({type:2,focus:Wa.Next});case Dn.ArrowUp:return N.preventDefault(),N.stopPropagation(),h({type:2,focus:Wa.Previous});case Dn.Home:case Dn.PageUp:return N.preventDefault(),N.stopPropagation(),h({type:2,focus:Wa.First});case Dn.End:case Dn.PageDown:return N.preventDefault(),N.stopPropagation(),h({type:2,focus:Wa.Last});case Dn.Escape:N.preventDefault(),N.stopPropagation(),(0,I3.flushSync)(()=>h({type:1})),(G=d.buttonElement)==null||G.focus({preventScroll:!0});break;case Dn.Tab:N.preventDefault(),N.stopPropagation(),(0,I3.flushSync)(()=>h({type:1})),Xue(d.buttonElement,N.shiftKey?Nr.Previous:Nr.Next);break;default:N.key.length===1&&(h({type:3,value:N.key}),H.setTimeout(()=>h({type:4}),350));break}}),j=_t(N=>{switch(N.key){case Dn.Space:N.preventDefault();break}}),V=(0,zi.useMemo)(()=>({open:d.menuState===0}),[d.menuState]),B=Ul(f?b():{},{"aria-activedescendant":d.activeItemIndex===null||(n=d.items[d.activeItemIndex])==null?void 0:n.id,"aria-labelledby":(r=d.buttonElement)==null?void 0:r.id,id:o,onKeyDown:ee,onKeyUp:j,role:"menu",tabIndex:d.menuState===0?0:void 0,ref:y,style:{...c.style,...g,"--button-width":XS(d.buttonElement,!0).width},...y2(O)});return zi.default.createElement(N3,{enabled:a?e.static||k:!1},Tn({ourProps:B,theirProps:c,slot:V,defaultTag:ytt,features:xtt,visible:J,name:"Menu.Items"}))}var btt=zi.Fragment;function wtt(e,t){let n=(0,Hi.useId)(),{id:r=`headlessui-menu-item-${n}`,disabled:i=!1,...o}=e,[s,a]=CO("Menu.Item"),l=s.activeItemIndex!==null?s.items[s.activeItemIndex].id===r:!1,u=(0,zi.useRef)(null),c=yr(t,u);An(()=>{if(!s.__demoMode&&s.menuState===0&&l&&s.activationTrigger!==0)return ma().requestAnimationFrame(()=>{var I,W;(W=(I=u.current)==null?void 0:I.scrollIntoView)==null||W.call(I,{block:"nearest"})})},[s.__demoMode,u,l,s.menuState,s.activationTrigger,s.activeItemIndex]);let f=Ode(u),d=(0,zi.useRef)({disabled:i,domRef:u,get textValue(){return f()}});An(()=>{d.current.disabled=i},[d,i]),An(()=>(a({type:5,id:r,dataRef:d}),()=>a({type:6,id:r})),[d,r]);let h=_t(()=>{a({type:1})}),m=_t(I=>{if(i)return I.preventDefault();a({type:1}),YJ(s.buttonElement)}),g=_t(()=>{if(i)return a({type:2,focus:Wa.Nothing});a({type:2,focus:Wa.Specific,id:r})}),b=sce(),v=_t(I=>{b.update(I),!i&&(l||a({type:2,focus:Wa.Specific,id:r,trigger:0}))}),x=_t(I=>{b.wasMoved(I)&&(i||l||a({type:2,focus:Wa.Specific,id:r,trigger:0}))}),y=_t(I=>{b.wasMoved(I)&&(i||l&&a({type:2,focus:Wa.Nothing}))}),[_,w]=Rf(),[k,O]=Bp(),M=(0,zi.useMemo)(()=>({active:l,focus:l,disabled:i,close:h}),[l,i,h]);return zi.default.createElement(w,null,zi.default.createElement(O,null,Tn({ourProps:{id:r,ref:c,role:"menuitem",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-labelledby":_,"aria-describedby":k,disabled:void 0,onClick:m,onFocus:g,onPointerEnter:v,onMouseEnter:v,onPointerMove:x,onMouseMove:x,onPointerLeave:y,onMouseLeave:y},theirProps:o,slot:M,defaultTag:btt,name:"Menu.Item"})))}var Ptt="div";function ktt(e,t){let[n,r]=Rf();return zi.default.createElement(r,null,Tn({ourProps:{ref:t,"aria-labelledby":n,role:"group"},theirProps:e,slot:{},defaultTag:Ptt,name:"Menu.Section"}))}var Att="header";function Ctt(e,t){let n=(0,Hi.useId)(),{id:r=`headlessui-menu-heading-${n}`,...i}=e,o=jS();An(()=>o.register(r),[r,o.register]);let s={id:r,ref:t,role:"presentation",...o.props};return Tn({ourProps:s,theirProps:i,slot:{},defaultTag:Att,name:"Menu.Heading"})}var Stt="div";function Ott(e,t){return Tn({ourProps:{ref:t,role:"separator"},theirProps:e,slot:{},defaultTag:Stt,name:"Menu.Separator"})}var Ett=Mn(mtt),Mtt=Mn(vtt),Btt=Mn(_tt),Ntt=Mn(wtt),Gtt=Mn(ktt),Ftt=Mn(Ctt),Itt=Mn(Ott),H1=Object.assign(Ett,{Button:Mtt,Items:Btt,Item:Ntt,Section:Gtt,Heading:Ftt,Separator:Itt});var un=ie(Pe(),1);var ztt=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ztt||{}),Ttt=(e=>(e[e.TogglePopover=0]="TogglePopover",e[e.ClosePopover=1]="ClosePopover",e[e.SetButton=2]="SetButton",e[e.SetButtonId=3]="SetButtonId",e[e.SetPanel=4]="SetPanel",e[e.SetPanelId=5]="SetPanelId",e))(Ttt||{}),Dtt={[0]:e=>({...e,popoverState:Ei(e.popoverState,{[0]:1,[1]:0}),__demoMode:!1}),[1](e){return e.popoverState===1?e:{...e,popoverState:1,__demoMode:!1}},[2](e,t){return e.button===t.button?e:{...e,button:t.button}},[3](e,t){return e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId}},[4](e,t){return e.panel===t.panel?e:{...e,panel:t.panel}},[5](e,t){return e.panelId===t.panelId?e:{...e,panelId:t.panelId}}},wj=(0,un.createContext)(null);wj.displayName="PopoverContext";function SO(e){let t=(0,un.useContext)(wj);if(t===null){let n=new Error(`<${e} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,SO),n}return t}var OO=(0,un.createContext)(null);OO.displayName="PopoverAPIContext";function Pj(e){let t=(0,un.useContext)(OO);if(t===null){let n=new Error(`<${e} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Pj),n}return t}var kj=(0,un.createContext)(null);kj.displayName="PopoverGroupContext";function Ede(){return(0,un.useContext)(kj)}var EO=(0,un.createContext)(null);EO.displayName="PopoverPanelContext";function Rtt(){return(0,un.useContext)(EO)}function Ltt(e,t){return Ei(t.type,Dtt,e,t)}var Vtt="div";function Jtt(e,t){var n;let{__demoMode:r=!1,...i}=e,o=(0,un.useRef)(null),s=yr(t,RS(C=>{o.current=C})),a=(0,un.useRef)([]),l=(0,un.useReducer)(Ltt,{__demoMode:r,popoverState:r?0:1,buttons:a,button:null,buttonId:null,panel:null,panelId:null,beforePanelSentinel:(0,un.createRef)(),afterPanelSentinel:(0,un.createRef)(),afterButtonSentinel:(0,un.createRef)()}),[{popoverState:u,button:c,buttonId:f,panel:d,panelId:h,beforePanelSentinel:m,afterPanelSentinel:g,afterButtonSentinel:b},v]=l,x=Ql((n=o.current)!=null?n:c),y=(0,un.useMemo)(()=>{if(!c||!d)return!1;for(let F of document.querySelectorAll("body > *"))if(Number(F?.contains(c))^Number(F?.contains(d)))return!0;let C=y3(),S=C.indexOf(c),G=(S+C.length-1)%C.length,T=(S+1)%C.length,Q=C[G],U=C[T];return!d.contains(Q)&&!d.contains(U)},[c,d]),_=Io(f),w=Io(h),k=(0,un.useMemo)(()=>({buttonId:_,panelId:w,close:()=>v({type:1})}),[_,w,v]),O=Ede(),M=O?.registerPopover,I=_t(()=>{var C;return(C=O?.isFocusWithinPopoverGroup())!=null?C:x?.activeElement&&(c?.contains(x.activeElement)||d?.contains(x.activeElement))});(0,un.useEffect)(()=>M?.(k),[M,k]);let[W,J]=xO(),H=C8(c),ee=_O({mainTreeNode:H,portals:W,defaultContainers:[c,d]});b3(x?.defaultView,"focus",C=>{var S,G,T,Q,U,F;C.target!==window&&C.target instanceof HTMLElement&&u===0&&(I()||c&&d&&(ee.contains(C.target)||(G=(S=m.current)==null?void 0:S.contains)!=null&&G.call(S,C.target)||(Q=(T=g.current)==null?void 0:T.contains)!=null&&Q.call(T,C.target)||(F=(U=b.current)==null?void 0:U.contains)!=null&&F.call(U,C.target)||v({type:1})))},!0),_3(u===0,ee.resolveContainers,(C,S)=>{v({type:1}),v2(S,g2.Loose)||(C.preventDefault(),c?.focus())});let j=_t(C=>{v({type:1});let S=(()=>C?C instanceof HTMLElement?C:"current"in C&&C.current instanceof HTMLElement?C.current:c:c)();S?.focus()}),V=(0,un.useMemo)(()=>({close:j,isPortalled:y}),[j,y]),B=(0,un.useMemo)(()=>({open:u===0,close:j}),[u,j]),N={ref:s};return un.default.createElement(G3,{node:H},un.default.createElement(fO,null,un.default.createElement(EO.Provider,{value:null},un.default.createElement(wj.Provider,{value:l},un.default.createElement(OO.Provider,{value:V},un.default.createElement(HS,{value:j},un.default.createElement(M3,{value:Ei(u,{[0]:To.Open,[1]:To.Closed})},un.default.createElement(J,null,Tn({ourProps:N,theirProps:i,slot:B,defaultTag:Vtt,name:"Popover"})))))))))}var jtt="button";function Htt(e,t){let n=(0,Hi.useId)(),{id:r=`headlessui-popover-button-${n}`,disabled:i=!1,autoFocus:o=!1,...s}=e,[a,l]=SO("Popover.Button"),{isPortalled:u}=Pj("Popover.Button"),c=(0,un.useRef)(null),f=`headlessui-focus-sentinel-${(0,Hi.useId)()}`,d=Ede(),h=d?.closeOthers,m=Rtt()!==null;(0,un.useEffect)(()=>{if(!m)return l({type:3,buttonId:r}),()=>{l({type:3,buttonId:null})}},[m,r,l]);let[g]=(0,un.useState)(()=>Symbol()),b=yr(c,t,cO(),_t(S=>{if(!m){if(S)a.buttons.current.push(g);else{let G=a.buttons.current.indexOf(g);G!==-1&&a.buttons.current.splice(G,1)}a.buttons.current.length>1&&console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."),S&&l({type:2,button:S})}})),v=yr(c,t),x=Ql(c),y=_t(S=>{var G,T,Q;if(m){if(a.popoverState===1)return;switch(S.key){case Dn.Space:case Dn.Enter:S.preventDefault(),(T=(G=S.target).click)==null||T.call(G),l({type:1}),(Q=a.button)==null||Q.focus();break}}else switch(S.key){case Dn.Space:case Dn.Enter:S.preventDefault(),S.stopPropagation(),a.popoverState===1&&h?.(a.buttonId),l({type:0});break;case Dn.Escape:if(a.popoverState!==0)return h?.(a.buttonId);if(!c.current||x!=null&&x.activeElement&&!c.current.contains(x.activeElement))return;S.preventDefault(),S.stopPropagation(),l({type:1});break}}),_=_t(S=>{m||S.key===Dn.Space&&S.preventDefault()}),w=_t(S=>{var G,T;Df(S.currentTarget)||i||(m?(l({type:1}),(G=a.button)==null||G.focus()):(S.preventDefault(),S.stopPropagation(),a.popoverState===1&&h?.(a.buttonId),l({type:0}),(T=a.button)==null||T.focus()))}),k=_t(S=>{S.preventDefault(),S.stopPropagation()}),{isFocusVisible:O,focusProps:M}=bc({autoFocus:o}),{isHovered:I,hoverProps:W}=xd({isDisabled:i}),{pressed:J,pressProps:H}=F1({disabled:i}),ee=a.popoverState===0,j=(0,un.useMemo)(()=>({open:ee,active:J||ee,disabled:i,hover:I,focus:O,autofocus:o}),[ee,I,O,J,i,o]),V=I1(e,a.button),B=m?Ul({ref:v,type:V,onKeyDown:y,onClick:w,disabled:i||void 0,autoFocus:o},M,W,H):Ul({ref:b,id:a.buttonId,type:V,"aria-expanded":a.popoverState===0,"aria-controls":a.panel?a.panelId:void 0,disabled:i||void 0,autoFocus:o,onKeyDown:y,onKeyUp:_,onClick:w,onMouseDown:k},M,W,H),N=S8(),C=_t(()=>{let S=a.panel;if(!S)return;function G(){Ei(N.current,{[nu.Forwards]:()=>zo(S,Nr.First),[nu.Backwards]:()=>zo(S,Nr.Last)})===kl.Error&&zo(y3().filter(T=>T.dataset.headlessuiFocusGuard!=="true"),Ei(N.current,{[nu.Forwards]:Nr.Next,[nu.Backwards]:Nr.Previous}),{relativeTo:a.button})}G()});return un.default.createElement(un.default.Fragment,null,Tn({ourProps:B,theirProps:s,slot:j,defaultTag:jtt,name:"Popover.Button"}),ee&&!m&&u&&un.default.createElement(ja,{id:f,ref:a.afterButtonSentinel,features:Pl.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:C}))}var Wtt="div",Xtt=Ja.RenderStrategy|Ja.Static;function Mde(e,t){let n=(0,Hi.useId)(),{id:r=`headlessui-popover-backdrop-${n}`,transition:i=!1,...o}=e,[{popoverState:s},a]=SO("Popover.Backdrop"),[l,u]=(0,un.useState)(null),c=yr(t,u),f=zp(),[d,h]=x2(i,l,f!==null?(f&To.Open)===To.Open:s===0),m=_t(v=>{if(Df(v.currentTarget))return v.preventDefault();a({type:1})}),g=(0,un.useMemo)(()=>({open:s===0}),[s]),b={ref:c,id:r,"aria-hidden":!0,onClick:m,...y2(h)};return Tn({ourProps:b,theirProps:o,slot:g,defaultTag:Wtt,features:Xtt,visible:d,name:"Popover.Backdrop"})}var qtt="div",$tt=Ja.RenderStrategy|Ja.Static;function Ktt(e,t){let n=(0,Hi.useId)(),{id:r=`headlessui-popover-panel-${n}`,focus:i=!1,anchor:o,portal:s=!1,modal:a=!1,transition:l=!1,...u}=e,[c,f]=SO("Popover.Panel"),{close:d,isPortalled:h}=Pj("Popover.Panel"),m=`headlessui-focus-sentinel-before-${n}`,g=`headlessui-focus-sentinel-after-${n}`,b=(0,un.useRef)(null),v=uO(o),[x,y]=pO(v),_=dO();v&&(s=!0);let[w,k]=(0,un.useState)(null),O=yr(b,t,v?x:null,_t(G=>f({type:4,panel:G})),k),M=Ql(b),I=GS();An(()=>(f({type:5,panelId:r}),()=>{f({type:5,panelId:null})}),[r,f]);let W=zp(),[J,H]=x2(l,w,W!==null?(W&To.Open)===To.Open:c.popoverState===0);v3(J,c.button,()=>{f({type:1})});let ee=c.__demoMode?!1:a&&J;w3(ee,M);let j=_t(G=>{var T;switch(G.key){case Dn.Escape:if(c.popoverState!==0||!b.current||M!=null&&M.activeElement&&!b.current.contains(M.activeElement))return;G.preventDefault(),G.stopPropagation(),f({type:1}),(T=c.button)==null||T.focus();break}});(0,un.useEffect)(()=>{var G;e.static||c.popoverState===1&&((G=e.unmount)==null||G)&&f({type:4,panel:null})},[c.popoverState,e.unmount,e.static,f]),(0,un.useEffect)(()=>{if(c.__demoMode||!i||c.popoverState!==0||!b.current)return;let G=M?.activeElement;b.current.contains(G)||zo(b.current,Nr.First)},[c.__demoMode,i,b.current,c.popoverState]);let V=(0,un.useMemo)(()=>({open:c.popoverState===0,close:d}),[c.popoverState,d]),B=Ul(v?_():{},{ref:O,id:r,onKeyDown:j,onBlur:i&&c.popoverState===0?G=>{var T,Q,U,F,D;let L=G.relatedTarget;L&&b.current&&((T=b.current)!=null&&T.contains(L)||(f({type:1}),((U=(Q=c.beforePanelSentinel.current)==null?void 0:Q.contains)!=null&&U.call(Q,L)||(D=(F=c.afterPanelSentinel.current)==null?void 0:F.contains)!=null&&D.call(F,L))&&L.focus({preventScroll:!0})))}:void 0,tabIndex:-1,style:{...u.style,...y,"--button-width":XS(c.button,!0).width},...y2(H)}),N=S8(),C=_t(()=>{let G=b.current;if(!G)return;function T(){Ei(N.current,{[nu.Forwards]:()=>{var Q;zo(G,Nr.First)===kl.Error&&((Q=c.afterPanelSentinel.current)==null||Q.focus())},[nu.Backwards]:()=>{var Q;(Q=c.button)==null||Q.focus({preventScroll:!0})}})}T()}),S=_t(()=>{let G=b.current;if(!G)return;function T(){Ei(N.current,{[nu.Forwards]:()=>{if(!c.button)return;let Q=y3(),U=Q.indexOf(c.button),F=Q.slice(0,U+1),D=[...Q.slice(U+1),...F];for(let L of D.slice())if(L.dataset.headlessuiFocusGuard==="true"||w!=null&&w.contains(L)){let $=D.indexOf(L);$!==-1&&D.splice($,1)}zo(D,Nr.First,{sorted:!1})},[nu.Backwards]:()=>{var Q;zo(G,Nr.Previous)===kl.Error&&((Q=c.button)==null||Q.focus())}})}T()});return un.default.createElement(mO,null,un.default.createElement(EO.Provider,{value:r},un.default.createElement(OO.Provider,{value:{close:d,isPortalled:h}},un.default.createElement(N3,{enabled:s?e.static||J:!1},J&&h&&un.default.createElement(ja,{id:m,ref:c.beforePanelSentinel,features:Pl.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:C}),Tn({mergeRefs:I,ourProps:B,theirProps:u,slot:V,defaultTag:qtt,features:$tt,visible:J,name:"Popover.Panel"}),J&&h&&un.default.createElement(ja,{id:g,ref:c.afterPanelSentinel,features:Pl.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:S})))))}var Ytt="div";function Ztt(e,t){let n=(0,un.useRef)(null),r=yr(n,t),[i,o]=(0,un.useState)([]),s=_t(m=>{o(g=>{let b=g.indexOf(m);if(b!==-1){let v=g.slice();return v.splice(b,1),v}return g})}),a=_t(m=>(o(g=>[...g,m]),()=>s(m))),l=_t(()=>{var m;let g=ra(n);if(!g)return!1;let b=g.activeElement;return(m=n.current)!=null&&m.contains(b)?!0:i.some(v=>{var x,y;return((x=g.getElementById(v.buttonId.current))==null?void 0:x.contains(b))||((y=g.getElementById(v.panelId.current))==null?void 0:y.contains(b))})}),u=_t(m=>{for(let g of i)g.buttonId.current!==m&&g.close()}),c=(0,un.useMemo)(()=>({registerPopover:a,unregisterPopover:s,isFocusWithinPopoverGroup:l,closeOthers:u}),[a,s,l,u]),f=(0,un.useMemo)(()=>({}),[]),d=e,h={ref:r};return un.default.createElement(G3,null,un.default.createElement(kj.Provider,{value:c},Tn({ourProps:h,theirProps:d,slot:f,defaultTag:Ytt,name:"Popover.Group"})))}var Utt=Mn(Jtt),Qtt=Mn(Htt),ent=Mn(Mde),tnt=Mn(Mde),nnt=Mn(Ktt),rnt=Mn(Ztt),O8=Object.assign(Utt,{Button:Qtt,Backdrop:tnt,Overlay:ent,Panel:nnt,Group:rnt});var Wi=ie(Pe(),1);var int=(e=>(e[e.RegisterOption=0]="RegisterOption",e[e.UnregisterOption=1]="UnregisterOption",e))(int||{}),ont={[0](e,t){let n=[...e.options,{id:t.id,element:t.element,propsRef:t.propsRef}];return{...e,options:Ip(n,r=>r.element.current)}},[1](e,t){let n=e.options.slice(),r=e.options.findIndex(i=>i.id===t.id);return r===-1?e:(n.splice(r,1),{...e,options:n})}},Aj=(0,Wi.createContext)(null);Aj.displayName="RadioGroupDataContext";function Cj(e){let t=(0,Wi.useContext)(Aj);if(t===null){let n=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Cj),n}return t}var Sj=(0,Wi.createContext)(null);Sj.displayName="RadioGroupActionsContext";function Oj(e){let t=(0,Wi.useContext)(Sj);if(t===null){let n=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Oj),n}return t}function snt(e,t){return Ei(t.type,ont,e,t)}var ant="div";function lnt(e,t){let n=(0,Hi.useId)(),r=Mp(),{id:i=`headlessui-radiogroup-${n}`,value:o,form:s,name:a,onChange:l,by:u,disabled:c=r||!1,defaultValue:f,...d}=e,h=Lue(u),[m,g]=(0,Wi.useReducer)(snt,{options:[]}),b=m.options,[v,x]=Rf(),[y,_]=Bp(),w=(0,Wi.useRef)(null),k=yr(w,t),O=IS(f),[M,I]=FS(o,l,O),W=(0,Wi.useMemo)(()=>b.find(G=>!G.propsRef.current.disabled),[b]),J=(0,Wi.useMemo)(()=>b.some(G=>h(G.propsRef.current.value,M)),[b,M]),H=_t(G=>{var T;if(c||h(G,M))return!1;let Q=(T=b.find(U=>h(U.propsRef.current.value,G)))==null?void 0:T.propsRef.current;return Q!=null&&Q.disabled?!1:(I?.(G),!0)}),ee=_t(G=>{let T=w.current;if(!T)return;let Q=ra(T),U=b.filter(F=>F.propsRef.current.disabled===!1).map(F=>F.element.current);switch(G.key){case Dn.Enter:zS(G.currentTarget);break;case Dn.ArrowLeft:case Dn.ArrowUp:if(G.preventDefault(),G.stopPropagation(),zo(U,Nr.Previous|Nr.WrapAround)===kl.Success){let F=b.find(D=>D.element.current===Q?.activeElement);F&&H(F.propsRef.current.value)}break;case Dn.ArrowRight:case Dn.ArrowDown:if(G.preventDefault(),G.stopPropagation(),zo(U,Nr.Next|Nr.WrapAround)===kl.Success){let F=b.find(D=>D.element.current===Q?.activeElement);F&&H(F.propsRef.current.value)}break;case Dn.Space:{G.preventDefault(),G.stopPropagation();let F=b.find(D=>D.element.current===Q?.activeElement);F&&H(F.propsRef.current.value)}break}}),j=_t(G=>(g({type:0,...G}),()=>g({type:1,id:G.id}))),V=(0,Wi.useMemo)(()=>({value:M,firstOption:W,containsCheckedOption:J,disabled:c,compare:h,...m}),[M,W,J,c,h,m]),B=(0,Wi.useMemo)(()=>({registerOption:j,change:H}),[j,H]),N={ref:k,id:i,role:"radiogroup","aria-labelledby":v,"aria-describedby":y,onKeyDown:ee},C=(0,Wi.useMemo)(()=>({value:M}),[M]),S=(0,Wi.useCallback)(()=>{if(O!==void 0)return H(O)},[H,O]);return Wi.default.createElement(_,{name:"RadioGroup.Description"},Wi.default.createElement(x,{name:"RadioGroup.Label"},Wi.default.createElement(Sj.Provider,{value:B},Wi.default.createElement(Aj.Provider,{value:V},a!=null&&Wi.default.createElement(TS,{disabled:c,data:{[a]:M||"on"},overrides:{type:"radio",checked:M!=null},form:s,onReset:S}),Tn({ourProps:N,theirProps:d,slot:C,defaultTag:ant,name:"RadioGroup"})))))}var unt="div";function cnt(e,t){var n;let r=Cj("RadioGroup.Option"),i=Oj("RadioGroup.Option"),o=(0,Hi.useId)(),{id:s=`headlessui-radiogroup-option-${o}`,value:a,disabled:l=r.disabled||!1,autoFocus:u=!1,...c}=e,f=(0,Wi.useRef)(null),d=yr(f,t),[h,m]=Rf(),[g,b]=Bp(),v=Io({value:a,disabled:l});An(()=>i.registerOption({id:s,element:f,propsRef:v}),[s,i,f,v]);let x=_t(J=>{var H;if(Df(J.currentTarget))return J.preventDefault();i.change(a)&&((H=f.current)==null||H.focus())}),y=((n=r.firstOption)==null?void 0:n.id)===s,{isFocusVisible:_,focusProps:w}=bc({autoFocus:u}),{isHovered:k,hoverProps:O}=xd({isDisabled:l}),M=r.compare(r.value,a),I=Ul({ref:d,id:s,role:"radio","aria-checked":M?"true":"false","aria-labelledby":h,"aria-describedby":g,"aria-disabled":l?!0:void 0,tabIndex:(()=>l?-1:M||!r.containsCheckedOption&&y?0:-1)(),onClick:l?void 0:x,autoFocus:u},w,O),W=(0,Wi.useMemo)(()=>({checked:M,disabled:l,active:_,hover:k,focus:_,autofocus:u}),[M,l,k,_,u]);return Wi.default.createElement(b,{name:"RadioGroup.Description"},Wi.default.createElement(m,{name:"RadioGroup.Label"},Tn({ourProps:I,theirProps:c,slot:W,defaultTag:unt,name:"RadioGroup.Option"})))}var dnt="span";function pnt(e,t){var n;let r=Cj("Radio"),i=Oj("Radio"),o=(0,Hi.useId)(),s=m3(),a=Mp(),{id:l=s||`headlessui-radio-${o}`,value:u,disabled:c=r.disabled||a||!1,autoFocus:f=!1,...d}=e,h=(0,Wi.useRef)(null),m=yr(h,t),g=p8(),b=VS(),v=Io({value:u,disabled:c});An(()=>i.registerOption({id:l,element:h,propsRef:v}),[l,i,h,v]);let x=_t(J=>{var H;if(Df(J.currentTarget))return J.preventDefault();i.change(u)&&((H=h.current)==null||H.focus())}),{isFocusVisible:y,focusProps:_}=bc({autoFocus:f}),{isHovered:w,hoverProps:k}=xd({isDisabled:c}),O=((n=r.firstOption)==null?void 0:n.id)===l,M=r.compare(r.value,u),I=Ul({ref:m,id:l,role:"radio","aria-checked":M?"true":"false","aria-labelledby":g,"aria-describedby":b,"aria-disabled":c?!0:void 0,tabIndex:(()=>c?-1:M||!r.containsCheckedOption&&O?0:-1)(),autoFocus:f,onClick:c?void 0:x},_,k),W=(0,Wi.useMemo)(()=>({checked:M,disabled:c,hover:w,focus:y,autofocus:f}),[M,c,w,y,f]);return Tn({ourProps:I,theirProps:d,slot:W,defaultTag:dnt,name:"Radio"})}var fnt=Mn(lnt),hnt=Mn(cnt),z3=Mn(pnt),mnt=Np,gnt=g3,MO=Object.assign(fnt,{Option:hnt,Radio:z3,Label:mnt,Description:gnt});var $o=ie(Pe(),1);var Ej=(0,$o.createContext)(null);Ej.displayName="GroupContext";var vnt=$o.Fragment;function ynt(e){var t;let[n,r]=(0,$o.useState)(null),[i,o]=Rf(),[s,a]=Bp(),l=(0,$o.useMemo)(()=>({switch:n,setSwitch:r}),[n,r]),u={},c=e;return $o.default.createElement(a,{name:"Switch.Description",value:s},$o.default.createElement(o,{name:"Switch.Label",value:i,props:{htmlFor:(t=l.switch)==null?void 0:t.id,onClick(f){n&&(f.currentTarget instanceof HTMLLabelElement&&f.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},$o.default.createElement(Ej.Provider,{value:l},Tn({ourProps:u,theirProps:c,slot:{},defaultTag:vnt,name:"Switch.Group"}))))}var xnt="button";function _nt(e,t){var n;let r=(0,Hi.useId)(),i=m3(),o=Mp(),{id:s=i||`headlessui-switch-${r}`,disabled:a=o||!1,checked:l,defaultChecked:u,onChange:c,name:f,value:d,form:h,autoFocus:m=!1,...g}=e,b=(0,$o.useContext)(Ej),[v,x]=(0,$o.useState)(null),y=(0,$o.useRef)(null),_=yr(y,t,b===null?null:b.setSwitch,x),w=IS(u),[k,O]=FS(l,c,w??!1),M=bl(),[I,W]=(0,$o.useState)(!1),J=_t(()=>{W(!0),O?.(!k),M.nextFrame(()=>{W(!1)})}),H=_t(L=>{if(Df(L.currentTarget))return L.preventDefault();L.preventDefault(),J()}),ee=_t(L=>{L.key===Dn.Space?(L.preventDefault(),J()):L.key===Dn.Enter&&zS(L.currentTarget)}),j=_t(L=>L.preventDefault()),V=p8(),B=VS(),{isFocusVisible:N,focusProps:C}=bc({autoFocus:m}),{isHovered:S,hoverProps:G}=xd({isDisabled:a}),{pressed:T,pressProps:Q}=F1({disabled:a}),U=(0,$o.useMemo)(()=>({checked:k,disabled:a,hover:S,focus:N,active:T,autofocus:m,changing:I}),[k,S,N,T,a,I,m]),F=Ul({id:s,ref:_,role:"switch",type:I1(e,v),tabIndex:e.tabIndex===-1?0:(n=e.tabIndex)!=null?n:0,"aria-checked":k,"aria-labelledby":V,"aria-describedby":B,disabled:a||void 0,autoFocus:m,onClick:H,onKeyUp:ee,onKeyPress:j},C,G,Q),D=(0,$o.useCallback)(()=>{if(w!==void 0)return O?.(w)},[O,w]);return $o.default.createElement($o.default.Fragment,null,f!=null&&$o.default.createElement(TS,{disabled:a,data:{[f]:d||"on"},overrides:{type:"checkbox",checked:k},form:h,onReset:D}),Tn({ourProps:F,theirProps:g,slot:U,defaultTag:xnt,name:"Switch"}))}var bnt=Mn(_nt),wnt=ynt,Pnt=Np,knt=g3,T3=Object.assign(bnt,{Group:wnt,Label:Pnt,Description:knt});var oo=ie(Pe(),1);var BO=ie(Pe(),1);function Bde({onFocus:e}){let[t,n]=(0,BO.useState)(!0),r=k2();return t?BO.default.createElement(ja,{as:"button",type:"button",features:Pl.Focusable,onFocus:i=>{i.preventDefault();let o,s=50;function a(){if(s--<=0){o&&cancelAnimationFrame(o);return}if(e()){if(cancelAnimationFrame(o),!r.current)return;n(!1);return}o=requestAnimationFrame(a)}o=requestAnimationFrame(a)}}):null}var bd=ie(Pe(),1),Nde=bd.createContext(null);function Ant(){return{groups:new Map,get(e,t){var n;let r=this.groups.get(e);r||(r=new Map,this.groups.set(e,r));let i=(n=r.get(t))!=null?n:0;r.set(t,i+1);let o=Array.from(r.keys()).indexOf(t);function s(){let a=r.get(t);a>1?r.set(t,a-1):r.delete(t)}return[o,s]}}}function Gde({children:e}){let t=bd.useRef(Ant());return bd.createElement(Nde.Provider,{value:t},e)}function Mj(e){let t=bd.useContext(Nde);if(!t)throw new Error("You must wrap your component in a <StableCollection>");let n=bd.useId(),[r,i]=t.current.get(e,n);return bd.useEffect(()=>i,[]),r}var Cnt=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Cnt||{}),Snt=(e=>(e[e.Less=-1]="Less",e[e.Equal=0]="Equal",e[e.Greater=1]="Greater",e))(Snt||{}),Ont=(e=>(e[e.SetSelectedIndex=0]="SetSelectedIndex",e[e.RegisterTab=1]="RegisterTab",e[e.UnregisterTab=2]="UnregisterTab",e[e.RegisterPanel=3]="RegisterPanel",e[e.UnregisterPanel=4]="UnregisterPanel",e))(Ont||{}),Ent={[0](e,t){var n;let r=Ip(e.tabs,c=>c.current),i=Ip(e.panels,c=>c.current),o=r.filter(c=>{var f;return!((f=c.current)!=null&&f.hasAttribute("disabled"))}),s={...e,tabs:r,panels:i};if(t.index<0||t.index>r.length-1){let c=Ei(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,[0]:()=>Ei(Math.sign(t.index),{[-1]:()=>0,[0]:()=>0,[1]:()=>1}),[1]:()=>0});if(o.length===0)return s;let f=Ei(c,{[0]:()=>r.indexOf(o[0]),[1]:()=>r.indexOf(o[o.length-1])});return{...s,selectedIndex:f===-1?e.selectedIndex:f}}let a=r.slice(0,t.index),l=[...r.slice(t.index),...a].find(c=>o.includes(c));if(!l)return s;let u=(n=r.indexOf(l))!=null?n:e.selectedIndex;return u===-1&&(u=e.selectedIndex),{...s,selectedIndex:u}},[1](e,t){if(e.tabs.includes(t.tab))return e;let n=e.tabs[e.selectedIndex],r=Ip([...e.tabs,t.tab],o=>o.current),i=e.selectedIndex;return e.info.current.isControlled||(i=r.indexOf(n),i===-1&&(i=e.selectedIndex)),{...e,tabs:r,selectedIndex:i}},[2](e,t){return{...e,tabs:e.tabs.filter(n=>n!==t.tab)}},[3](e,t){return e.panels.includes(t.panel)?e:{...e,panels:Ip([...e.panels,t.panel],n=>n.current)}},[4](e,t){return{...e,panels:e.panels.filter(n=>n!==t.panel)}}},Bj=(0,oo.createContext)(null);Bj.displayName="TabsDataContext";function D3(e){let t=(0,oo.useContext)(Bj);if(t===null){let n=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,D3),n}return t}var Nj=(0,oo.createContext)(null);Nj.displayName="TabsActionsContext";function Gj(e){let t=(0,oo.useContext)(Nj);if(t===null){let n=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Gj),n}return t}function Mnt(e,t){return Ei(t.type,Ent,e,t)}var Bnt="div";function Nnt(e,t){let{defaultIndex:n=0,vertical:r=!1,manual:i=!1,onChange:o,selectedIndex:s=null,...a}=e,l=r?"vertical":"horizontal",u=i?"manual":"auto",c=s!==null,f=Io({isControlled:c}),d=yr(t),[h,m]=(0,oo.useReducer)(Mnt,{info:f,selectedIndex:s??n,tabs:[],panels:[]}),g=(0,oo.useMemo)(()=>({selectedIndex:h.selectedIndex}),[h.selectedIndex]),b=Io(o||(()=>{})),v=Io(h.tabs),x=(0,oo.useMemo)(()=>({orientation:l,activation:u,...h}),[l,u,h]),y=_t(I=>(m({type:1,tab:I}),()=>m({type:2,tab:I}))),_=_t(I=>(m({type:3,panel:I}),()=>m({type:4,panel:I}))),w=_t(I=>{k.current!==I&&b.current(I),c||m({type:0,index:I})}),k=Io(c?e.selectedIndex:h.selectedIndex),O=(0,oo.useMemo)(()=>({registerTab:y,registerPanel:_,change:w}),[]);An(()=>{m({type:0,index:s??n})},[s]),An(()=>{if(k.current===void 0||h.tabs.length<=0)return;let I=Ip(h.tabs,W=>W.current);I.some((W,J)=>h.tabs[J]!==W)&&w(I.indexOf(h.tabs[k.current]))});let M={ref:d};return oo.default.createElement(Gde,null,oo.default.createElement(Nj.Provider,{value:O},oo.default.createElement(Bj.Provider,{value:x},x.tabs.length<=0&&oo.default.createElement(Bde,{onFocus:()=>{var I,W;for(let J of v.current)if(((I=J.current)==null?void 0:I.tabIndex)===0)return(W=J.current)==null||W.focus(),!0;return!1}}),Tn({ourProps:M,theirProps:a,slot:g,defaultTag:Bnt,name:"Tabs"}))))}var Gnt="div";function Fnt(e,t){let{orientation:n,selectedIndex:r}=D3("Tab.List"),i=yr(t),o=(0,oo.useMemo)(()=>({selectedIndex:r}),[r]);return Tn({ourProps:{ref:i,role:"tablist","aria-orientation":n},theirProps:e,slot:o,defaultTag:Gnt,name:"Tabs.List"})}var Int="button";function znt(e,t){var n,r;let i=(0,Hi.useId)(),{id:o=`headlessui-tabs-tab-${i}`,disabled:s=!1,autoFocus:a=!1,...l}=e,{orientation:u,activation:c,selectedIndex:f,tabs:d,panels:h}=D3("Tab"),m=Gj("Tab"),g=D3("Tab"),[b,v]=(0,oo.useState)(null),x=(0,oo.useRef)(null),y=yr(x,t,v);An(()=>m.registerTab(x),[m,x]);let _=Mj("tabs"),w=d.indexOf(x);w===-1&&(w=_);let k=w===f,O=_t(G=>{var T;let Q=G();if(Q===kl.Success&&c==="auto"){let U=(T=ra(x))==null?void 0:T.activeElement,F=g.tabs.findIndex(D=>D.current===U);F!==-1&&m.change(F)}return Q}),M=_t(G=>{let T=d.map(Q=>Q.current).filter(Boolean);if(G.key===Dn.Space||G.key===Dn.Enter){G.preventDefault(),G.stopPropagation(),m.change(w);return}switch(G.key){case Dn.Home:case Dn.PageUp:return G.preventDefault(),G.stopPropagation(),O(()=>zo(T,Nr.First));case Dn.End:case Dn.PageDown:return G.preventDefault(),G.stopPropagation(),O(()=>zo(T,Nr.Last))}if(O(()=>Ei(u,{vertical(){return G.key===Dn.ArrowUp?zo(T,Nr.Previous|Nr.WrapAround):G.key===Dn.ArrowDown?zo(T,Nr.Next|Nr.WrapAround):kl.Error},horizontal(){return G.key===Dn.ArrowLeft?zo(T,Nr.Previous|Nr.WrapAround):G.key===Dn.ArrowRight?zo(T,Nr.Next|Nr.WrapAround):kl.Error}}))===kl.Success)return G.preventDefault()}),I=(0,oo.useRef)(!1),W=_t(()=>{var G;I.current||(I.current=!0,(G=x.current)==null||G.focus({preventScroll:!0}),m.change(w),f0(()=>{I.current=!1}))}),J=_t(G=>{G.preventDefault()}),{isFocusVisible:H,focusProps:ee}=bc({autoFocus:a}),{isHovered:j,hoverProps:V}=xd({isDisabled:s}),{pressed:B,pressProps:N}=F1({disabled:s}),C=(0,oo.useMemo)(()=>({selected:k,hover:j,active:B,focus:H,autofocus:a,disabled:s}),[k,j,H,B,a,s]),S=Ul({ref:y,onKeyDown:M,onMouseDown:J,onClick:W,id:o,role:"tab",type:I1(e,b),"aria-controls":(r=(n=h[w])==null?void 0:n.current)==null?void 0:r.id,"aria-selected":k,tabIndex:k?0:-1,disabled:s||void 0,autoFocus:a},ee,V,N);return Tn({ourProps:S,theirProps:l,slot:C,defaultTag:Int,name:"Tabs.Tab"})}var Tnt="div";function Dnt(e,t){let{selectedIndex:n}=D3("Tab.Panels"),r=yr(t),i=(0,oo.useMemo)(()=>({selectedIndex:n}),[n]);return Tn({ourProps:{ref:r},theirProps:e,slot:i,defaultTag:Tnt,name:"Tabs.Panels"})}var Rnt="div",Lnt=Ja.RenderStrategy|Ja.Static;function Vnt(e,t){var n,r,i,o;let s=(0,Hi.useId)(),{id:a=`headlessui-tabs-panel-${s}`,tabIndex:l=0,...u}=e,{selectedIndex:c,tabs:f,panels:d}=D3("Tab.Panel"),h=Gj("Tab.Panel"),m=(0,oo.useRef)(null),g=yr(m,t);An(()=>h.registerPanel(m),[h,m]);let b=Mj("panels"),v=d.indexOf(m);v===-1&&(v=b);let x=v===c,{isFocusVisible:y,focusProps:_}=bc(),w=(0,oo.useMemo)(()=>({selected:x,focus:y}),[x,y]),k=Ul({ref:g,id:a,role:"tabpanel","aria-labelledby":(r=(n=f[v])==null?void 0:n.current)==null?void 0:r.id,tabIndex:x?l:-1},_);return!x&&((i=u.unmount)==null||i)&&!((o=u.static)!=null&&o)?oo.default.createElement(ja,{"aria-hidden":"true",...k}):Tn({ourProps:k,theirProps:u,slot:w,defaultTag:Rnt,features:Lnt,visible:x,name:"Tabs.Panel"})}var Jnt=Mn(znt),jnt=Mn(Nnt),Hnt=Mn(Fnt),Wnt=Mn(Dnt),Xnt=Mn(Vnt),wd=Object.assign(Jnt,{Group:jnt,List:Hnt,Panels:Wnt,Panel:Xnt});var E8=ie(Pe(),1);function qnt(e,t){return E8.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),E8.createElement("path",{d:"M10.394 2.08a1 1 0 00-.788 0l-7 3a1 1 0 000 1.84L5.25 8.051a.999.999 0 01.356-.257l4-1.714a1 1 0 11.788 1.838L7.667 9.088l1.94.831a1 1 0 00.787 0l7-3a1 1 0 000-1.838l-7-3zM3.31 9.397L5 10.12v4.102a8.969 8.969 0 00-1.05-.174 1 1 0 01-.89-.89 11.115 11.115 0 01.25-3.762zM9.3 16.573A9.026 9.026 0 007 14.935v-3.957l1.818.78a3 3 0 002.364 0l5.508-2.361a11.026 11.026 0 01.25 3.762 1 1 0 01-.89.89 8.968 8.968 0 00-5.35 2.524 1 1 0 01-1.4 0zM6 18a1 1 0 001-1v-2.065a8.935 8.935 0 00-2-.712V17a1 1 0 001 1z"}))}var $nt=E8.forwardRef(qnt),Fj=$nt;var M8=ie(Pe(),1);function Knt(e,t){return M8.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),M8.createElement("path",{fillRule:"evenodd",d:"M16.707 10.293a1 1 0 010 1.414l-6 6a1 1 0 01-1.414 0l-6-6a1 1 0 111.414-1.414L9 14.586V3a1 1 0 012 0v11.586l4.293-4.293a1 1 0 011.414 0z",clipRule:"evenodd"}))}var Ynt=M8.forwardRef(Knt),A2=Ynt;var B8=ie(Pe(),1);function Znt(e,t){return B8.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),B8.createElement("path",{fillRule:"evenodd",d:"M3.293 9.707a1 1 0 010-1.414l6-6a1 1 0 011.414 0l6 6a1 1 0 01-1.414 1.414L11 5.414V17a1 1 0 11-2 0V5.414L4.707 9.707a1 1 0 01-1.414 0z",clipRule:"evenodd"}))}var Unt=B8.forwardRef(Znt),C2=Unt;var N8=ie(Pe(),1);function Qnt(e,t){return N8.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),N8.createElement("path",{fillRule:"evenodd",d:"M4 4a2 2 0 00-2 2v4a2 2 0 002 2V6h10a2 2 0 00-2-2H4zm2 6a2 2 0 012-2h8a2 2 0 012 2v4a2 2 0 01-2 2H8a2 2 0 01-2-2v-4zm6 4a2 2 0 100-4 2 2 0 000 4z",clipRule:"evenodd"}))}var ert=N8.forwardRef(Qnt),Ij=ert;var G8=ie(Pe(),1);function trt(e,t){return G8.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),G8.createElement("path",{d:"M2 11a1 1 0 011-1h2a1 1 0 011 1v5a1 1 0 01-1 1H3a1 1 0 01-1-1v-5zM8 7a1 1 0 011-1h2a1 1 0 011 1v9a1 1 0 01-1 1H9a1 1 0 01-1-1V7zM14 4a1 1 0 011-1h2a1 1 0 011 1v12a1 1 0 01-1 1h-2a1 1 0 01-1-1V4z"}))}var nrt=G8.forwardRef(trt),zj=nrt;var R3=ie(Pe(),1);function rrt(e,t){return R3.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),R3.createElement("path",{d:"M2 10a8 8 0 018-8v8h8a8 8 0 11-16 0z"}),R3.createElement("path",{d:"M12 2.252A8.014 8.014 0 0117.748 8H12V2.252z"}))}var irt=R3.forwardRef(rrt),Tj=irt;var F8=ie(Pe(),1);function ort(e,t){return F8.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),F8.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))}var srt=F8.forwardRef(ort),L3=srt;var V3=ie(Pe(),1);function art(e,t){return V3.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),V3.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),V3.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"}))}var lrt=V3.forwardRef(art),I8=lrt;var J3=ie(Pe(),1);function urt(e,t){return J3.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),J3.createElement("path",{d:"M8 2a1 1 0 000 2h2a1 1 0 100-2H8z"}),J3.createElement("path",{d:"M3 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v6h-4.586l1.293-1.293a1 1 0 00-1.414-1.414l-3 3a1 1 0 000 1.414l3 3a1 1 0 001.414-1.414L10.414 13H15v3a2 2 0 01-2 2H5a2 2 0 01-2-2V5zM15 11h2a1 1 0 110 2h-2v-2z"}))}var crt=J3.forwardRef(urt),W1=crt;var j3=ie(Pe(),1);function drt(e,t){return j3.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),j3.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),j3.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-2V5zm3 4a1 1 0 000 2h.01a1 1 0 100-2H7zm3 0a1 1 0 000 2h3a1 1 0 100-2h-3zm-3 4a1 1 0 100 2h.01a1 1 0 100-2H7zm3 0a1 1 0 100 2h3a1 1 0 100-2h-3z",clipRule:"evenodd"}))}var prt=j3.forwardRef(drt),Dj=prt;var H3=ie(Pe(),1);function frt(e,t){return H3.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),H3.createElement("path",{d:"M5.5 13a3.5 3.5 0 01-.369-6.98 4 4 0 117.753-1.977A4.5 4.5 0 1113.5 13H11V9.413l1.293 1.293a1 1 0 001.414-1.414l-3-3a1 1 0 00-1.414 0l-3 3a1 1 0 001.414 1.414L9 9.414V13H5.5z"}),H3.createElement("path",{d:"M9 13h2v5a1 1 0 11-2 0v-5z"}))}var hrt=H3.forwardRef(frt),Rj=hrt;var z8=ie(Pe(),1);function mrt(e,t){return z8.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),z8.createElement("path",{d:"M5.5 16a3.5 3.5 0 01-.369-6.98 4 4 0 117.753-1.977A4.5 4.5 0 1113.5 16h-8z"}))}var grt=z8.forwardRef(mrt),T8=grt;var D8=ie(Pe(),1);function vrt(e,t){return D8.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),D8.createElement("path",{fillRule:"evenodd",d:"M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 01-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 01.947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 012.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 012.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 01.947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 01-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 01-2.287-.947zM10 13a3 3 0 100-6 3 3 0 000 6z",clipRule:"evenodd"}))}var yrt=D8.forwardRef(vrt),R8=yrt;var L8=ie(Pe(),1);function xrt(e,t){return L8.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),L8.createElement("path",{fillRule:"evenodd",d:"M6.672 1.911a1 1 0 10-1.932.518l.259.966a1 1 0 001.932-.518l-.26-.966zM2.429 4.74a1 1 0 10-.517 1.932l.966.259a1 1 0 00.517-1.932l-.966-.26zm8.814-.569a1 1 0 00-1.415-1.414l-.707.707a1 1 0 101.415 1.415l.707-.708zm-7.071 7.072l.707-.707A1 1 0 003.465 9.12l-.708.707a1 1 0 001.415 1.415zm3.2-5.171a1 1 0 00-1.3 1.3l4 10a1 1 0 001.823.075l1.38-2.759 3.018 3.02a1 1 0 001.414-1.415l-3.019-3.02 2.76-1.379a1 1 0 00-.076-1.822l-10-4z",clipRule:"evenodd"}))}var _rt=L8.forwardRef(xrt),b0=_rt;var V8=ie(Pe(),1);function brt(e,t){return V8.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),V8.createElement("path",{fillRule:"evenodd",d:"M3 17a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm3.293-7.707a1 1 0 011.414 0L9 10.586V3a1 1 0 112 0v7.586l1.293-1.293a1 1 0 111.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z",clipRule:"evenodd"}))}var wrt=V8.forwardRef(brt),Lj=wrt;var W3=ie(Pe(),1);function Prt(e,t){return W3.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),W3.createElement("path",{d:"M10 12a2 2 0 100-4 2 2 0 000 4z"}),W3.createElement("path",{fillRule:"evenodd",d:"M.458 10C1.732 5.943 5.522 3 10 3s8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7S1.732 14.057.458 10zM14 10a4 4 0 11-8 0 4 4 0 018 0z",clipRule:"evenodd"}))}var krt=W3.forwardRef(Prt),Vj=krt;var J8=ie(Pe(),1);function Art(e,t){return J8.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),J8.createElement("path",{d:"M11 3a1 1 0 10-2 0v1a1 1 0 102 0V3zM15.657 5.757a1 1 0 00-1.414-1.414l-.707.707a1 1 0 001.414 1.414l.707-.707zM18 10a1 1 0 01-1 1h-1a1 1 0 110-2h1a1 1 0 011 1zM5.05 6.464A1 1 0 106.464 5.05l-.707-.707a1 1 0 00-1.414 1.414l.707.707zM5 10a1 1 0 01-1 1H3a1 1 0 110-2h1a1 1 0 011 1zM8 16v-1h4v1a2 2 0 11-4 0zM12 14c.015-.34.208-.646.477-.859a4 4 0 10-4.954 0c.27.213.462.519.476.859h4.002z"}))}var Crt=J8.forwardRef(Art),X1=Crt;var j8=ie(Pe(),1);function Srt(e,t){return j8.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),j8.createElement("path",{fillRule:"evenodd",d:"M11.3 1.046A1 1 0 0112 2v5h4a1 1 0 01.82 1.573l-7 10A1 1 0 018 18v-5H4a1 1 0 01-.82-1.573l7-10a1 1 0 011.12-.38z",clipRule:"evenodd"}))}var Ort=j8.forwardRef(Srt),Jj=Ort;var H8=ie(Pe(),1);function Ert(e,t){return H8.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),H8.createElement("path",{fillRule:"evenodd",d:"M12.586 4.586a2 2 0 112.828 2.828l-3 3a2 2 0 01-2.828 0 1 1 0 00-1.414 1.414 4 4 0 005.656 0l3-3a4 4 0 00-5.656-5.656l-1.5 1.5a1 1 0 101.414 1.414l1.5-1.5zm-5 5a2 2 0 012.828 0 1 1 0 101.414-1.414 4 4 0 00-5.656 0l-3 3a4 4 0 105.656 5.656l1.5-1.5a1 1 0 10-1.414-1.414l-1.5 1.5a2 2 0 11-2.828-2.828l3-3z",clipRule:"evenodd"}))}var Mrt=H8.forwardRef(Ert),jj=Mrt;var X3=ie(Pe(),1);function Brt(e,t){return X3.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),X3.createElement("path",{d:"M2.003 5.884L10 9.882l7.997-3.998A2 2 0 0016 4H4a2 2 0 00-1.997 1.884z"}),X3.createElement("path",{d:"M18 8.118l-8 4-8-4V14a2 2 0 002 2h12a2 2 0 002-2V8.118z"}))}var Nrt=X3.forwardRef(Brt),W8=Nrt;var X8=ie(Pe(),1);function Grt(e,t){return X8.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),X8.createElement("path",{fillRule:"evenodd",d:"M3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"}))}var Frt=X8.forwardRef(Grt),Hj=Frt;var q8=ie(Pe(),1);function Irt(e,t){return q8.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),q8.createElement("path",{d:"M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"}))}var zrt=q8.forwardRef(Irt),S2=zrt;var $8=ie(Pe(),1);function Trt(e,t){return $8.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),$8.createElement("path",{d:"M2 3a1 1 0 011-1h2.153a1 1 0 01.986.836l.74 4.435a1 1 0 01-.54 1.06l-1.548.773a11.037 11.037 0 006.105 6.105l.774-1.548a1 1 0 011.059-.54l4.435.74a1 1 0 01.836.986V17a1 1 0 01-1 1h-2C7.82 18 2 12.18 2 5V3z"}))}var Drt=$8.forwardRef(Trt),NO=Drt;var K8=ie(Pe(),1);function Rrt(e,t){return K8.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),K8.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-3a1 1 0 00-.867.5 1 1 0 11-1.731-1A3 3 0 0113 8a3.001 3.001 0 01-2 2.83V11a1 1 0 11-2 0v-1a1 1 0 011-1 1 1 0 100-2zm0 8a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"}))}var Lrt=K8.forwardRef(Rrt),Y8=Lrt;var q3=ie(Pe(),1);function Vrt(e,t){return q3.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),q3.createElement("path",{d:"M5 3a1 1 0 000 2c5.523 0 10 4.477 10 10a1 1 0 102 0C17 8.373 11.627 3 5 3z"}),q3.createElement("path",{d:"M4 9a1 1 0 011-1 7 7 0 017 7 1 1 0 11-2 0 5 5 0 00-5-5 1 1 0 01-1-1zM3 15a2 2 0 114 0 2 2 0 01-4 0z"}))}var Jrt=q3.forwardRef(Vrt),Wj=Jrt;var Z8=ie(Pe(),1);function jrt(e,t){return Z8.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Z8.createElement("path",{d:"M3 4a1 1 0 011-1h12a1 1 0 011 1v2a1 1 0 01-1 1H4a1 1 0 01-1-1V4zM3 10a1 1 0 011-1h6a1 1 0 011 1v6a1 1 0 01-1 1H4a1 1 0 01-1-1v-6zM14 9a1 1 0 00-1 1v6a1 1 0 001 1h2a1 1 0 001-1v-6a1 1 0 00-1-1h-2z"}))}var Hrt=Z8.forwardRef(jrt),Xj=Hrt;var U8=ie(Pe(),1);function Wrt(e,t){return U8.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),U8.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z",clipRule:"evenodd"}))}var Xrt=U8.forwardRef(Wrt),qj=Xrt;var Q8=ie(Pe(),1);function qrt(e,t){return Q8.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Q8.createElement("path",{d:"M2 6a2 2 0 012-2h6a2 2 0 012 2v8a2 2 0 01-2 2H4a2 2 0 01-2-2V6zM14.553 7.106A1 1 0 0014 8v4a1 1 0 00.553.894l2 1A1 1 0 0018 13V7a1 1 0 00-1.447-.894l-2 1z"}))}var $rt=Q8.forwardRef(qrt),$j=$rt;var ew=ie(Pe(),1);function Krt(e,t){return ew.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),ew.createElement("path",{fillRule:"evenodd",d:"M3 4a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm0 4a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm0 4a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm0 4a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"}))}var Yrt=ew.forwardRef(Krt),Kj=Yrt;var tw=ie(Pe(),1);function Zrt(e,t){return tw.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),tw.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"}))}var Urt=tw.forwardRef(Zrt),Yj=Urt;var $3=ie(Pe(),1);function Qrt(e,t){return $3.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),$3.createElement("path",{d:"M5 8a1 1 0 011-1h1V6a1 1 0 012 0v1h1a1 1 0 110 2H9v1a1 1 0 11-2 0V9H6a1 1 0 01-1-1z"}),$3.createElement("path",{fillRule:"evenodd",d:"M2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8zm6-4a4 4 0 100 8 4 4 0 000-8z",clipRule:"evenodd"}))}var eit=$3.forwardRef(Qrt),O2=eit;var Ide=ie(Fde()),zde=e=>{Ide.default.fire({title:"Error!",text:e,icon:"error"})};var Tde=ie(Pe());var Pd=WithRouter=e=>t=>Tde.default.createElement(e,{...t,navigate:If(),searchParams:rle()[0],params:f2()});var iu=ie(Pe());var ni=ie(Pe()),Rde=ie(Yl());var Qj=function(e,t){return Qj=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},Qj(e,t)};function rw(e,t){Qj(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var nw=function(){return nw=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},nw.apply(this,arguments)};function tit(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",n==="top"&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}var nit=`/*
  code is extracted from Calendly's embed stylesheet: https://assets.calendly.com/assets/external/widget.css
*/

.calendly-inline-widget,
.calendly-inline-widget *,
.calendly-badge-widget,
.calendly-badge-widget *,
.calendly-overlay,
.calendly-overlay * {
    font-size:16px;
    line-height:1.2em
}

.calendly-inline-widget iframe,
.calendly-badge-widget iframe,
.calendly-overlay iframe {
    display:inline;
    width:100%;
    height:100%
}

.calendly-popup-content {
    position:relative
}

.calendly-popup-content.calendly-mobile {
    -webkit-overflow-scrolling:touch;
    overflow-y:auto
}

.calendly-overlay {
    position:fixed;
    top:0;
    left:0;
    right:0;
    bottom:0;
    overflow:hidden;
    z-index:9999;
    background-color:#a5a5a5;
    background-color:rgba(31,31,31,0.4)
}

.calendly-overlay .calendly-close-overlay {
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0
}

.calendly-overlay .calendly-popup {
    box-sizing:border-box;
    position:absolute;
    top:50%;
    left:50%;
    -webkit-transform:translateY(-50%) translateX(-50%);
    transform:translateY(-50%) translateX(-50%);
    width:80%;
    min-width:900px;
    max-width:1000px;
    height:90%;
    max-height:680px
}

@media (max-width: 975px) {
    .calendly-overlay .calendly-popup {
        position:fixed;
        top:50px;
        left:0;
        right:0;
        bottom:0;
        -webkit-transform:none;
        transform:none;
        width:100%;
        height:auto;
        min-width:0;
        max-height:none
    }
}

.calendly-overlay .calendly-popup .calendly-popup-content {
    height:100%;
}

.calendly-overlay .calendly-popup-close {
    position:absolute;
    top:25px;
    right:25px;
    color:#fff;
    width:19px;
    height:19px;
    cursor:pointer;
    background:url(https://assets.calendly.com/assets/external/close-icon.svg) no-repeat;
    background-size:contain
}

@media (max-width: 975px) {
    .calendly-overlay .calendly-popup-close {
        top:15px;
        right:15px
    }
}

.calendly-badge-widget {
    position:fixed;
    right:20px;
    bottom:15px;
    z-index:9998
}

.calendly-badge-widget .calendly-badge-content {
    display:table-cell;
    width:auto;
    height:45px;
    padding:0 30px;
    border-radius:25px;
    box-shadow:rgba(0,0,0,0.25) 0 2px 5px;
    font-family:sans-serif;
    text-align:center;
    vertical-align:middle;
    font-weight:bold;
    font-size:14px;
    color:#fff;
    cursor:pointer
}

.calendly-badge-widget .calendly-badge-content.calendly-white {
    color:#666a73
}

.calendly-badge-widget .calendly-badge-content span {
    display:block;
    font-size:12px
}

.calendly-spinner {
    position:absolute;
    top:50%;
    left:0;
    right:0;
    -webkit-transform:translateY(-50%);
    transform:translateY(-50%);
    text-align:center;
    z-index:-1
}

.calendly-spinner>div {
    display:inline-block;
    width:18px;
    height:18px;
    background-color:#e1e1e1;
    border-radius:50%;
    vertical-align:middle;
    -webkit-animation:calendly-bouncedelay 1.4s infinite ease-in-out;
    animation:calendly-bouncedelay 1.4s infinite ease-in-out;
    -webkit-animation-fill-mode:both;
    animation-fill-mode:both
}

.calendly-spinner .calendly-bounce1 {
    -webkit-animation-delay:-0.32s;
    animation-delay:-0.32s
}

.calendly-spinner .calendly-bounce2 {
    -webkit-animation-delay:-0.16s;
    animation-delay:-0.16s
}

@-webkit-keyframes calendly-bouncedelay {
    0%,80%,100% {
        -webkit-transform:scale(0);
        transform:scale(0)
    } 
    
    40%{
        -webkit-transform:scale(1);
        transform:scale(1)
    }
}

@keyframes calendly-bouncedelay{ 
    0%,80%,100% {
        -webkit-transform:scale(0);
        transform:scale(0)
    }
    
    40% {
        -webkit-transform:scale(1);
        transform:scale(1)
    }
}`;tit(nit);function Uj(e){return e.charAt(0)==="#"?e.slice(1):e}function rit(e){return e?.primaryColor&&(e.primaryColor=Uj(e.primaryColor)),e?.textColor&&(e.textColor=Uj(e.textColor)),e?.backgroundColor&&(e.backgroundColor=Uj(e.backgroundColor)),e}var K3;(function(e){e.PROFILE_PAGE_VIEWED="calendly.profile_page_viewed",e.EVENT_TYPE_VIEWED="calendly.event_type_viewed",e.DATE_AND_TIME_SELECTED="calendly.date_and_time_selected",e.EVENT_SCHEDULED="calendly.event_scheduled"})(K3||(K3={}));var Lde=function(e){var t=e.url,n=e.prefill,r=n===void 0?{}:n,i=e.pageSettings,o=i===void 0?{}:i,s=e.utm,a=s===void 0?{}:s,l=e.embedType,u=rit(o),c=u.backgroundColor,f=u.hideEventTypeDetails,d=u.hideLandingPageDetails,h=u.primaryColor,m=u.textColor,g=u.hideGdprBanner,b=r.customAnswers,v=r.date,x=r.email,y=r.firstName,_=r.guests,w=r.lastName,k=r.location,O=r.name,M=a.utmCampaign,I=a.utmContent,W=a.utmMedium,J=a.utmSource,H=a.utmTerm,ee=a.salesforce_uuid,j=t.indexOf("?"),V=j>-1,B=t.slice(j+1),N=V?t.slice(0,j):t,C=[V?B:null,c?"background_color="+c:null,f?"hide_event_type_details=1":null,d?"hide_landing_page_details=1":null,h?"primary_color="+h:null,m?"text_color="+m:null,g?"hide_gdpr_banner=1":null,O?"name="+encodeURIComponent(O):null,k?"location="+encodeURIComponent(k):null,y?"first_name="+encodeURIComponent(y):null,w?"last_name="+encodeURIComponent(w):null,_?"guests="+_.map(encodeURIComponent).join(","):null,x?"email="+encodeURIComponent(x):null,v&&v instanceof Date?"date="+iit(v):null,M?"utm_campaign="+encodeURIComponent(M):null,I?"utm_content="+encodeURIComponent(I):null,W?"utm_medium="+encodeURIComponent(W):null,J?"utm_source="+encodeURIComponent(J):null,H?"utm_term="+encodeURIComponent(H):null,ee?"salesforce_uuid="+encodeURIComponent(ee):null,l?"embed_type="+l:null,"embed_domain=1"].concat(b?sit(b):[]).filter(function(S){return S!==null}).join("&");return N+"?"+C},iit=function(e){var t=e.getMonth()+1,n=e.getDate(),r=e.getFullYear();return[r,t<10?"0"+t:t,n<10?"0"+n:n].join("-")},oit=/^a\d{1,2}$/,sit=function(e){var t=Object.keys(e).filter(function(n){return n.match(oit)});return t.length?t.map(function(n){return n+"="+encodeURIComponent(e[n])}):[]},Vde=function(e){rw(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){return(0,ni.createElement)("div",{className:"calendly-spinner"},(0,ni.createElement)("div",{className:"calendly-bounce1"}),(0,ni.createElement)("div",{className:"calendly-bounce2"}),(0,ni.createElement)("div",{className:"calendly-bounce3"}))},t}(ni.Component),ait={minWidth:"320px",height:"630px"},edn=function(e){rw(t,e);function t(n){var r=e.call(this,n)||this;return r.state={isLoading:!0},r.onLoad=r.onLoad.bind(r),r}return t.prototype.onLoad=function(){this.setState({isLoading:!1})},t.prototype.render=function(){var n=Lde({url:this.props.url,pageSettings:this.props.pageSettings,prefill:this.props.prefill,utm:this.props.utm,embedType:"Inline"});return(0,ni.createElement)("div",{className:"calendly-inline-widget",style:this.props.styles||ait},this.state.isLoading&&(0,ni.createElement)(Vde,null),(0,ni.createElement)("iframe",{width:"100%",height:"100%",frameBorder:"0",title:this.props.iframeTitle||"Calendly Scheduling Page",onLoad:this.onLoad,src:n}))},t}(ni.Component),lit=function(e){rw(t,e);function t(n){var r=e.call(this,n)||this;return r.state={isLoading:!0},r.onLoad=r.onLoad.bind(r),r}return t.prototype.onLoad=function(){this.setState({isLoading:!1})},t.prototype.render=function(){var n=Lde({url:this.props.url,pageSettings:this.props.pageSettings,prefill:this.props.prefill,utm:this.props.utm,embedType:"PopupWidget"});return(0,ni.createElement)(ni.Fragment,null,this.state.isLoading&&(0,ni.createElement)(Vde,null),(0,ni.createElement)("iframe",{width:"100%",height:"100%",frameBorder:"0",title:this.props.iframeTitle||"Calendly Scheduling Page",onLoad:this.onLoad,src:n}))},t}(ni.Component),Wf=function(e){if(!e.open)return null;if(!e.rootElement)throw new Error("[react-calendly]: PopupModal rootElement property cannot be undefined");return(0,Rde.createPortal)((0,ni.createElement)("div",{className:"calendly-overlay"},(0,ni.createElement)("div",{onClick:e.onModalClose,className:"calendly-close-overlay"}),(0,ni.createElement)("div",{className:"calendly-popup"},(0,ni.createElement)("div",{className:"calendly-popup-content"},(0,ni.createElement)(lit,nw({},e)))),(0,ni.createElement)("button",{className:"calendly-popup-close",onClick:e.onModalClose,"aria-label":"Close modal",style:{display:"block",border:"none",padding:0}})),e.rootElement)},tdn=function(e){rw(t,e);function t(n){var r=e.call(this,n)||this;return r.state={isOpen:!1},r.onClick=r.onClick.bind(r),r.onClose=r.onClose.bind(r),r}return t.prototype.onClick=function(n){n.preventDefault(),this.setState({isOpen:!0})},t.prototype.onClose=function(n){n.stopPropagation(),this.setState({isOpen:!1})},t.prototype.render=function(){return(0,ni.createElement)(ni.Fragment,null,(0,ni.createElement)("button",{onClick:this.onClick,style:this.props.styles||{},className:this.props.className||""},this.props.text),(0,ni.createElement)(Wf,nw({},this.props,{open:this.state.isOpen,onModalClose:this.onClose,rootElement:this.props.rootElement})))},t}(ni.Component),ndn=function(e){rw(t,e);function t(n){var r=e.call(this,n)||this;return r.state={isOpen:!1},r.onClick=r.onClick.bind(r),r.onClose=r.onClose.bind(r),r}return t.prototype.onClick=function(){this.setState({isOpen:!0})},t.prototype.onClose=function(n){n.stopPropagation(),this.setState({isOpen:!1})},t.prototype.render=function(){return(0,ni.createElement)("div",{className:"calendly-badge-widget",onClick:this.onClick},(0,ni.createElement)("div",{className:"calendly-badge-content",style:{background:this.props.color||"#00a2ff",color:this.props.textColor||"#ffffff"}},this.props.text||"Schedule time with me",this.props.branding&&(0,ni.createElement)("span",null,"powered by Calendly")),(0,ni.createElement)(Wf,nw({},this.props,{open:this.state.isOpen,onModalClose:this.onClose,rootElement:this.props.rootElement})))},t}(ni.Component),Dde="message";function q1(e){var t=e||{},n=t.onDateAndTimeSelected,r=t.onEventScheduled,i=t.onEventTypeViewed,o=t.onProfilePageViewed;(0,ni.useEffect)(function(){var s=function(a){var l=a.data.event;l===K3.DATE_AND_TIME_SELECTED?n&&n(a):l===K3.EVENT_SCHEDULED?r&&r(a):l===K3.EVENT_TYPE_VIEWED?i&&i(a):l===K3.PROFILE_PAGE_VIEWED&&o&&o(a)};return window.addEventListener(Dde,s),function(){window.removeEventListener(Dde,s)}},[e])}var Sx=ie(nx());ri();Ac();function Fpe(e,t,n,r){var i,o=[e,t,n,r],s=Js(e)?e.event:e;if(!s||!A0(s))throw new Error("Event missing");var a=Js(e)?(i=e.properties)!==null&&i!==void 0?i:{}:Js(t)?t:{},l={};B2(n)||(l=n??{}),Js(e)&&!B2(t)&&(l=t??{});var u=o.find(B2);return[s,a,l,u]}function RH(e,t,n,r,i){var o,s,a=null,l=null,u=[e,t,n,r,i],c=u.filter(A0);c[0]!==void 0&&c[1]!==void 0&&(a=c[0],l=c[1]),c.length===1&&(a=null,l=c[0]);var f=u.find(B2),d=u.filter(function(g){return l===null?Js(g):Js(g)||g===null}),h=(o=d[0])!==null&&o!==void 0?o:{},m=(s=d[1])!==null&&s!==void 0?s:{};return[a,l,h,m,f]}var LH=function(e){return function(){for(var t,n,r,i,o,s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];var l=null;l=(r=(t=s.find(A0))!==null&&t!==void 0?t:(n=s.find(XO))===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:e.id();var u=s.filter(function(h){return l===null?Js(h):Js(h)||h===null}),c=(i=u[0])!==null&&i!==void 0?i:{},f=(o=u[1])!==null&&o!==void 0?o:{},d=s.find(B2);return[l,c,f,d]}};function Ipe(e,t,n,r){XO(e)&&(e=e.toString()),XO(t)&&(t=t.toString());var i=[e,t,n,r],o=i.filter(A0),s=o[0],a=s===void 0?e:s,l=o[1],u=l===void 0?null:l,c=i.filter(Js)[0],f=c===void 0?{}:c,d=i.find(B2);return[a,u,f,d]}ox();I2();Ac();ri();YO();WO();var qpe=ie(Xpe()),$pe=function(){function e(t){this.user=t}return e.prototype.track=function(t,n,r,i){return this.normalize(et(et({},this.baseEvent()),{event:t,type:"track",properties:n,options:et({},r),integrations:et({},i)}))},e.prototype.page=function(t,n,r,i,o){var s,a={type:"page",properties:et({},r),options:et({},i),integrations:et({},o)};return t!==null&&(a.category=t,a.properties=(s=a.properties)!==null&&s!==void 0?s:{},a.properties.category=t),n!==null&&(a.name=n),this.normalize(et(et({},this.baseEvent()),a))},e.prototype.screen=function(t,n,r,i,o){var s={type:"screen",properties:et({},r),options:et({},i),integrations:et({},o)};return t!==null&&(s.category=t),n!==null&&(s.name=n),this.normalize(et(et({},this.baseEvent()),s))},e.prototype.identify=function(t,n,r,i){return this.normalize(et(et({},this.baseEvent()),{type:"identify",userId:t,traits:n,options:et({},r),integrations:et({},i)}))},e.prototype.group=function(t,n,r,i){return this.normalize(et(et({},this.baseEvent()),{type:"group",traits:n,options:et({},r),integrations:et({},i),groupId:t}))},e.prototype.alias=function(t,n,r,i){var o={userId:t,type:"alias",options:et({},r),integrations:et({},i)};return n!==null&&(o.previousId=n),t===void 0?this.normalize(et(et({},o),this.baseEvent())):this.normalize(et(et({},this.baseEvent()),o))},e.prototype.baseEvent=function(){var t={integrations:{},options:{}},n=this.user;return n.id()&&(t.userId=n.id()),n.anonymousId()&&(t.anonymousId=n.anonymousId()),t},e.prototype.context=function(t){var n,r,i,o=["integrations","anonymousId","timestamp","userId"],s=(n=t.options)!==null&&n!==void 0?n:{};delete s.integrations;var a=Object.keys(s),l=(i=(r=t.options)===null||r===void 0?void 0:r.context)!==null&&i!==void 0?i:{},u={};return a.forEach(function(c){c!=="context"&&(o.includes(c)?eg(u,c,s[c]):eg(l,c,s[c]))}),[l,u]},e.prototype.normalize=function(t){var n,r,i;!((n=t.options)===null||n===void 0)&&n.anonymousId&&this.user.anonymousId(t.options.anonymousId);var o=Object.keys((r=t.integrations)!==null&&r!==void 0?r:{}).reduce(function(g,b){var v,x;return et(et({},g),(v={},v[b]=Boolean((x=t.integrations)===null||x===void 0?void 0:x[b]),v))},{}),s=et(et({},o),(i=t.options)===null||i===void 0?void 0:i.integrations),a=this.context(t),l=a[0],u=a[1],c=t.options,f=jO(t,["options"]),d=et(et(et({timestamp:new Date},f),{context:l,integrations:s}),u),h="ajs-next-"+qpe.default.hash(JSON.stringify(d)+ix()),m=et(et({},d),{messageId:h});return m},e}();ri();gw();Ac();ox();var Upe=function(e){Ko(t,e);function t(n){return e.call(this,n??new ng(4,"event-queue"))||this}return t.prototype.flush=function(){return Et(this,void 0,void 0,function(){return Mt(this,function(n){return Ad()?[2,[]]:[2,e.prototype.flush.call(this)]})})},t}(Ope);KH();WH();gw();pw();mw();QO();var sg="This is being deprecated and will be not be available in future releases of Analytics JS",CW=sx(),SW=CW?.analytics;function Zot(e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var n=e?4:1,r=t?new C0(n,[]):new ng(n,"event-queue");return new Upe(r)}function Zf(){console.warn(sg)}var zfe=function(e){Ko(t,e);function t(n,r,i,o,s){var a=this,l,u,c;a=e.call(this)||this,a._debug=!1,a.initialized=!1,a.user=function(){return a._user},a.init=a.initialize.bind(a),a.log=Zf,a.addIntegrationMiddleware=Zf,a.listeners=Zf,a.addEventListener=Zf,a.removeAllListeners=Zf,a.removeListener=Zf,a.removeEventListener=Zf,a.hasListeners=Zf,a.add=Zf,a.addIntegration=Zf;var f=r?.cookie,d=(l=r?.disableClientPersistence)!==null&&l!==void 0?l:!1;return a.settings=n,a.settings.timeout=(u=a.settings.timeout)!==null&&u!==void 0?u:300,a.queue=i??Zot(r?.retryQueue,d),a._universalStorage=new F2(d?["memory"]:["localStorage","cookie","memory"],fw(f)),a._user=o??new $H(d?et(et({},r?.user),{persist:!1}):r?.user,f).load(),a._group=s??new Lpe(d?et(et({},r?.group),{persist:!1}):r?.group,f).load(),a.eventFactory=new $pe(a._user),a.integrations=(c=r?.integrations)!==null&&c!==void 0?c:{},a.options=r??{},ax(a),a}return Object.defineProperty(t.prototype,"storage",{get:function(){return this._universalStorage},enumerable:!1,configurable:!0}),t.prototype.track=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return Et(this,void 0,void 0,function(){var i,o,s,a,l,u,c=this;return Mt(this,function(f){return i=Fpe.apply(void 0,n),o=i[0],s=i[1],a=i[2],l=i[3],u=this.eventFactory.track(o,s,a,this.integrations),[2,this._dispatch(u,l).then(function(d){return c.emit("track",o,d.event.properties,d.event.options),d})]})})},t.prototype.page=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return Et(this,void 0,void 0,function(){var i,o,s,a,l,u,c,f=this;return Mt(this,function(d){return i=RH.apply(void 0,n),o=i[0],s=i[1],a=i[2],l=i[3],u=i[4],c=this.eventFactory.page(o,s,a,l,this.integrations),[2,this._dispatch(c,u).then(function(h){return f.emit("page",o,s,h.event.properties,h.event.options),h})]})})},t.prototype.identify=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return Et(this,void 0,void 0,function(){var i,o,s,a,l,u,c=this;return Mt(this,function(f){return i=LH(this._user).apply(void 0,n),o=i[0],s=i[1],a=i[2],l=i[3],this._user.identify(o,s),u=this.eventFactory.identify(this._user.id(),this._user.traits(),a,this.integrations),[2,this._dispatch(u,l).then(function(d){return c.emit("identify",d.event.userId,d.event.traits,d.event.options),d})]})})},t.prototype.group=function(){for(var n=this,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(r.length===0)return this._group;var o=LH(this._group).apply(void 0,r),s=o[0],a=o[1],l=o[2],u=o[3];this._group.identify(s,a);var c=this._group.id(),f=this._group.traits(),d=this.eventFactory.group(c,f,l,this.integrations);return this._dispatch(d,u).then(function(h){return n.emit("group",h.event.groupId,h.event.traits,h.event.options),h})},t.prototype.alias=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return Et(this,void 0,void 0,function(){var i,o,s,a,l,u,c=this;return Mt(this,function(f){return i=Ipe.apply(void 0,n),o=i[0],s=i[1],a=i[2],l=i[3],u=this.eventFactory.alias(o,s,a,this.integrations),[2,this._dispatch(u,l).then(function(d){return c.emit("alias",o,s,d.event.options),d})]})})},t.prototype.screen=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return Et(this,void 0,void 0,function(){var i,o,s,a,l,u,c,f=this;return Mt(this,function(d){return i=RH.apply(void 0,n),o=i[0],s=i[1],a=i[2],l=i[3],u=i[4],c=this.eventFactory.screen(o,s,a,l,this.integrations),[2,this._dispatch(c,u).then(function(h){return f.emit("screen",o,s,h.event.properties,h.event.options),h})]})})},t.prototype.trackClick=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return Et(this,void 0,void 0,function(){var i,o;return Mt(this,function(s){switch(s.label){case 0:return[4,Promise.resolve().then(()=>(yw(),vw))];case 1:return i=s.sent(),[2,(o=i.link).call.apply(o,So([this],n,!1))]}})})},t.prototype.trackLink=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return Et(this,void 0,void 0,function(){var i,o;return Mt(this,function(s){switch(s.label){case 0:return[4,Promise.resolve().then(()=>(yw(),vw))];case 1:return i=s.sent(),[2,(o=i.link).call.apply(o,So([this],n,!1))]}})})},t.prototype.trackSubmit=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return Et(this,void 0,void 0,function(){var i,o;return Mt(this,function(s){switch(s.label){case 0:return[4,Promise.resolve().then(()=>(yw(),vw))];case 1:return i=s.sent(),[2,(o=i.form).call.apply(o,So([this],n,!1))]}})})},t.prototype.trackForm=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return Et(this,void 0,void 0,function(){var i,o;return Mt(this,function(s){switch(s.label){case 0:return[4,Promise.resolve().then(()=>(yw(),vw))];case 1:return i=s.sent(),[2,(o=i.form).call.apply(o,So([this],n,!1))]}})})},t.prototype.register=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return Et(this,void 0,void 0,function(){var i,o,s=this;return Mt(this,function(a){switch(a.label){case 0:return i=Cd.system(),o=n.map(function(l){return s.queue.register(i,l,s)}),[4,Promise.all(o)];case 1:return a.sent(),[2,i]}})})},t.prototype.deregister=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return Et(this,void 0,void 0,function(){var i,o,s=this;return Mt(this,function(a){switch(a.label){case 0:return i=Cd.system(),o=n.map(function(l){var u=s.queue.plugins.find(function(c){return c.name===l});if(u)return s.queue.deregister(i,u,s);i.log("warn","plugin ".concat(l," not found"))}),[4,Promise.all(o)];case 1:return a.sent(),[2,i]}})})},t.prototype.debug=function(n){return n===!1&&localStorage.getItem("debug")&&localStorage.removeItem("debug"),this._debug=n,this},t.prototype.reset=function(){this._user.reset(),this._group.reset(),this.emit("reset")},t.prototype.timeout=function(n){this.settings.timeout=n},t.prototype._dispatch=function(n,r){return Et(this,void 0,void 0,function(){var i;return Mt(this,function(o){return i=new Cd(n),Ad()&&!this.options.retryQueue?[2,i]:[2,Bpe(i,this.queue,this,{callback:r,debug:this._debug,timeout:this.settings.timeout})]})})},t.prototype.addSourceMiddleware=function(n){return Et(this,void 0,void 0,function(){var r=this;return Mt(this,function(i){switch(i.label){case 0:return[4,this.queue.criticalTasks.run(function(){return Et(r,void 0,void 0,function(){var o,s,a;return Mt(this,function(l){switch(l.label){case 0:return[4,Promise.resolve().then(()=>(pE(),Nfe))];case 1:return o=l.sent().sourceMiddlewarePlugin,s={},this.queue.plugins.forEach(function(u){if(u.type==="destination")return s[u.name]=!0}),a=o(n,s),[4,this.register(a)];case 2:return l.sent(),[2]}})})})];case 1:return i.sent(),[2,this]}})})},t.prototype.addDestinationMiddleware=function(n){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var o=this.queue.plugins.filter(function(s){return s.name.toLowerCase()===n.toLowerCase()});return o.forEach(function(s){s.addMiddleware.apply(s,r)}),Promise.resolve(this)},t.prototype.setAnonymousId=function(n){return this._user.anonymousId(n)},t.prototype.queryString=function(n){return Et(this,void 0,void 0,function(){var r;return Mt(this,function(i){switch(i.label){case 0:return this.options.useQueryString===!1?[2,[]]:[4,Promise.resolve().then(()=>(Ife(),Ffe))];case 1:return r=i.sent().queryString,[2,r(this,n)]}})})},t.prototype.use=function(n){return n(this),this},t.prototype.ready=function(n){return n===void 0&&(n=function(r){return r}),Et(this,void 0,void 0,function(){return Mt(this,function(r){return[2,Promise.all(this.queue.plugins.map(function(i){return i.ready?i.ready():Promise.resolve()})).then(function(i){return n(i),i})]})})},t.prototype.noConflict=function(){return console.warn(sg),window.analytics=SW??this,this},t.prototype.normalize=function(n){return console.warn(sg),this.eventFactory.normalize(n)},Object.defineProperty(t.prototype,"failedInitializations",{get:function(){return console.warn(sg),this.queue.failedInitializations},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VERSION",{get:function(){return $f},enumerable:!1,configurable:!0}),t.prototype.initialize=function(n,r){return Et(this,void 0,void 0,function(){return Mt(this,function(i){return console.warn(sg),[2,Promise.resolve(this)]})})},t.prototype.pageview=function(n){return Et(this,void 0,void 0,function(){return Mt(this,function(r){switch(r.label){case 0:return console.warn(sg),[4,this.page({path:n})];case 1:return r.sent(),[2,this]}})})},Object.defineProperty(t.prototype,"plugins",{get:function(){var n;return console.warn(sg),(n=this._plugins)!==null&&n!==void 0?n:{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Integrations",{get:function(){console.warn(sg);var n=this.queue.plugins.filter(function(r){return r.type==="destination"}).reduce(function(r,i){var o="".concat(i.name.toLowerCase().replace(".","").split(" ").join("-"),"Integration"),s=window[o];if(!s)return r;var a=s.Integration;return a?(r[i.name]=a,r):(r[i.name]=s,r)},{});return n},enumerable:!1,configurable:!0}),t.prototype.push=function(n){var r=this,i=n.shift();i&&!r[i]||r[i].apply(this,n)},t}(rx);ri();function OW(){return typeof process>"u"||!process.env?{}:process.env}Cw();dw();EW();var Dfe=function(){var e,t,n=new Promise(function(r,i){e=r,t=i});return{resolve:e,reject:t,promise:n}};ri();ri();var Rfe=function(e,t){return Object.assign.apply(Object,So([{}],t.map(function(n){var r;if(e&&Object.prototype.hasOwnProperty.call(e,n))return r={},r[n]=e[n],r}),!1))};function Lfe(){var e=document.querySelector("link[rel='canonical']");if(e)return e.getAttribute("href")||void 0}function tst(){var e=Lfe();if(!e)return window.location.pathname;var t=document.createElement("a");t.href=e;var n=t.pathname.startsWith("/")?t.pathname:"/"+t.pathname;return n}function nst(e){e===void 0&&(e="");var t=Lfe();if(t)return t.includes("?")?t:"".concat(t).concat(e);var n=window.location.href,r=n.indexOf("#");return r===-1?n:n.slice(0,r)}function rst(){return{path:tst(),referrer:document.referrer,search:location.search,title:document.title,url:nst(location.search)}}function Sw(e){var t=e.event;t.context=t.context||{};var n=rst(),r=t.properties&&Rfe(t.properties,Object.keys(n));return t.context.page=et(et(et({},n),r),t.context.page),t.type==="page"&&(t.properties=et(et(et({},n),t.properties),t.name?{name:t.name}:{})),e}var Vfe={name:"Page Enrichment",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},type:"before",page:Sw,alias:Sw,track:Sw,identify:Sw,group:Sw};ri();mE();Cw();pE();I2();var ist=function(){function e(t,n){this.version="1.0.0",this.alternativeNames=[],this.middleware=[],this.alias=this._createMethod("alias"),this.group=this._createMethod("group"),this.identify=this._createMethod("identify"),this.page=this._createMethod("page"),this.screen=this._createMethod("screen"),this.track=this._createMethod("track"),this.action=n,this.name=t,this.type=n.type,this.alternativeNames.push(n.name)}return e.prototype.addMiddleware=function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this.type==="destination"&&(t=this.middleware).push.apply(t,n)},e.prototype.transform=function(t){return Et(this,void 0,void 0,function(){var n;return Mt(this,function(r){switch(r.label){case 0:return[4,Pw(this.name,t.event,this.middleware)];case 1:return n=r.sent(),n===null&&t.cancel(new Ju({retry:!1,reason:"dropped by destination middleware"})),[2,new Cd(n)]}})})},e.prototype._createMethod=function(t){var n=this;return function(r){return Et(n,void 0,void 0,function(){var i;return Mt(this,function(o){switch(o.label){case 0:return this.action[t]?(i=r,this.type!=="destination"?[3,2]:[4,this.transform(r)]):[2,r];case 1:i=o.sent(),o.label=2;case 2:return[4,this.action[t](i)];case 3:return o.sent(),[2,r]}})})}},e.prototype.isLoaded=function(){return this.action.isLoaded()},e.prototype.ready=function(){return this.action.ready?this.action.ready():Promise.resolve()},e.prototype.load=function(t,n){return this.action.load(t,n)},e.prototype.unload=function(t,n){var r,i;return(i=(r=this.action).unload)===null||i===void 0?void 0:i.call(r,t,n)},e}();function ost(e){if(!Array.isArray(e))throw new Error("Not a valid list of plugins");var t=["load","isLoaded","name","version","type"];return e.forEach(function(n){t.forEach(function(r){var i;if(n[r]===void 0)throw new Error("Plugin: ".concat((i=n.name)!==null&&i!==void 0?i:"unknown"," missing required function ").concat(r))})}),!0}function sst(e,t){var n=e[t.creationName],r=e[t.name];return e.All===!1&&!n&&!r||n===!1||r===!1}function Hfe(e,t,n,r,i){var o,s,a;return Et(this,void 0,void 0,function(){var l,u,c,f,d=this;return Mt(this,function(h){switch(h.label){case 0:return l=[],u=kw(),c=(s=(o=e.middlewareSettings)===null||o===void 0?void 0:o.routingRules)!==null&&s!==void 0?s:[],f=((a=e.remotePlugins)!==null&&a!==void 0?a:[]).map(function(m){return Et(d,void 0,void 0,function(){var g,b,v,x,y,_,w,k,O,M,I;return Mt(this,function(W){switch(W.label){case 0:if(sst(t,m))return[2];W.label=1;case 1:if(W.trys.push([1,12,,13]),g=new RegExp("https://cdn.segment.(com|build)"),!r)return[3,7];b=m.url.split("/"),v=b[b.length-2],x=m.url.replace(v,btoa(v).replace(/=/g,"")),W.label=2;case 2:return W.trys.push([2,4,,6]),[4,O0(x.replace(g,u))];case 3:return W.sent(),[3,6];case 4:return y=W.sent(),[4,O0(m.url.replace(g,u))];case 5:return W.sent(),[3,6];case 6:return[3,9];case 7:return[4,O0(m.url.replace(g,u))];case 8:W.sent(),W.label=9;case 9:return _=m.libraryName,typeof window[_]!="function"?[3,11]:(w=window[_],[4,w(et(et({},m.settings),n[m.name]))]);case 10:k=W.sent(),O=Array.isArray(k)?k:[k],ost(O),M=c.filter(function(J){return J.destinationName===m.creationName}),O.forEach(function(J){var H=new ist(m.creationName,J);M.length&&i&&J.type==="destination"&&H.addMiddleware(i),l.push(H)}),W.label=11;case 11:return[3,13];case 12:return I=W.sent(),console.warn("Failed to load Remote Plugin",I),[3,13];case 13:return[2]}})})}),[4,Promise.all(f)];case 1:return h.sent(),[2,l.filter(Boolean)]}})})}ri();ox();mw();gw();kW();ri();dw();var Wfe=function(e){var t=!1;window.addEventListener("pagehide",function(){t||(t=!0,e())}),document.addEventListener("visibilitychange",function(){if(document.visibilityState=="hidden"){if(t)return;t=!0,e()}else t=!1})};var ast=500;function Xfe(e){var t=encodeURI(JSON.stringify(e)).split(/%..|./).length-1;return t/1024}function lst(e){return Xfe(e)>=ast-50}function ust(e){var t=[],n=0;return e.forEach(function(r){var i=Xfe(t[n]);i>=64&&n++,t[n]?t[n].push(r):t[n]=[r]}),t}function MW(e,t){var n,r,i=[],o=!1,s=(n=t?.size)!==null&&n!==void 0?n:10,a=(r=t?.timeout)!==null&&r!==void 0?r:5e3;function l(h){var m;if(h.length!==0){var g=(m=h[0])===null||m===void 0?void 0:m.writeKey;return tg("https://".concat(e,"/b"),{keepalive:o,headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify({batch:h,writeKey:g})})}}function u(){return Et(this,void 0,void 0,function(){var h;return Mt(this,function(m){return i.length?(h=i,i=[],[2,l(h)]):[2]})})}var c;function f(){c||(c=setTimeout(function(){c=void 0,u().catch(console.error)},a))}Wfe(function(){if(o=!0,i.length){var h=ust(i).map(l);Promise.all(h).catch(console.error)}});function d(h,m){return Et(this,void 0,void 0,function(){var g;return Mt(this,function(b){return i.push(m),g=i.length>=s||lst(i),[2,g||o?u():f()]})})}return{dispatch:d}}dw();function qfe(e){function t(n,r){return tg(n,{keepalive:e?.keepalive,headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify(r)})}return{dispatch:t}}ZH();ri();ox();I2();Ac();BW();function cst(e,t){return Et(this,void 0,void 0,function(){var n,r=this;return Mt(this,function(i){switch(i.label){case 0:return n=[],Ad()?[2,t]:[4,gE(function(){return t.length>0&&!Ad()},function(){return Et(r,void 0,void 0,function(){var o,s,a;return Mt(this,function(l){switch(l.label){case 0:return o=t.pop(),o?[4,S0(o,e)]:[2];case 1:return s=l.sent(),a=s instanceof Cd,a||n.push(o),[2]}})})})];case 1:return i.sent(),n.map(function(o){return t.pushWithBackoff(o)}),[2,t]}})})}function R2(e,t,n,r){var i=this;e||setTimeout(function(){return Et(i,void 0,void 0,function(){var o,s;return Mt(this,function(a){switch(a.label){case 0:return o=!0,[4,cst(n,t)];case 1:return s=a.sent(),o=!1,t.todo>0&&r(o,s,n,r),[2]}})})},Math.random()*5e3)}UH();function dst(e,t){var n,r,i,o,s=e.user();return t.previousId=(i=(r=(n=t.previousId)!==null&&n!==void 0?n:t.from)!==null&&r!==void 0?r:s.id())!==null&&i!==void 0?i:s.anonymousId(),t.userId=(o=t.userId)!==null&&o!==void 0?o:t.to,delete t.from,delete t.to,t}function $fe(e,t,n){var r,i;window.addEventListener("pagehide",function(){o.push.apply(o,Array.from(s)),s.clear()});var o=e.options.disableClientPersistence?new C0(e.queue.queue.maxAttempts,[]):new ng(e.queue.queue.maxAttempts,"dest-Segment.io"),s=new Set,a=!1,l=(r=t?.apiHost)!==null&&r!==void 0?r:iE,u=(i=t?.protocol)!==null&&i!==void 0?i:"https",c="".concat(u,"://").concat(l),f=t?.deliveryStrategy,d=f?.strategy==="batching"?MW(l,f.config):qfe(f?.config);function h(g){return Et(this,void 0,void 0,function(){var b,v;return Mt(this,function(x){return Ad()?(o.push(g),R2(a,o,m,R2),[2,g]):(s.add(g),b=g.event.type.charAt(0),v=wx(g.event).json(),g.event.type==="track"&&delete v.traits,g.event.type==="alias"&&(v=dst(e,v)),[2,d.dispatch("".concat(c,"/").concat(b),Vpe(e,v,t,n)).then(function(){return g}).catch(function(){return o.pushWithBackoff(g),R2(a,o,m,R2),g}).finally(function(){s.delete(g)})])})})}var m={name:"Segment.io",type:"after",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:h,identify:h,page:h,alias:h,group:h};return o.todo&&R2(a,o,m,R2),m}Ac();function Px(e){var t,n=e.event;EH(n),MH(n),n.type==="track"&&BH(n);var r=(t=n.properties)!==null&&t!==void 0?t:n.traits;if(n.type!=="alias"&&!Js(r))throw new Dp(".properties","is not an object");return OH(n),e}var Kfe={name:"Event Validation",type:"before",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:Px,identify:Px,page:Px,alias:Px,group:Px,screen:Px};ri();var Yfe=function(e){return typeof e=="object"&&e!==null&&"then"in e&&typeof e.then=="function"};pw();var Zfe=function(e,t,n){n.getCalls(e).forEach(function(r){NW(t,r).catch(console.error)})},Ufe=function(e,t){return Et(void 0,void 0,void 0,function(){var n,r,i;return Mt(this,function(o){switch(o.label){case 0:n=0,r=t.getCalls("addSourceMiddleware"),o.label=1;case 1:return n<r.length?(i=r[n],[4,NW(e,i).catch(console.error)]):[3,4];case 2:o.sent(),o.label=3;case 3:return n++,[3,1];case 4:return[2]}})})},Qfe=Zfe.bind(void 0,"on"),ehe=Zfe.bind(void 0,"setAnonymousId"),the=function(e,t){t.toArray().forEach(function(n){setTimeout(function(){NW(e,n).catch(console.error)},0)})},pst=function(){function e(){this._value={}}return e.prototype.toArray=function(){var t;return(t=[]).concat.apply(t,Object.values(this._value))},e.prototype.getCalls=function(t){var n;return(n=this._value[t])!==null&&n!==void 0?n:[]},e.prototype.push=function(){for(var t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n.forEach(function(i){t._value[i.method]?t._value[i.method].push(i):t._value[i.method]=[i]}),this},e.prototype.clear=function(){return this._value={},this},e}();function NW(e,t){return Et(this,void 0,void 0,function(){var n,r;return Mt(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),t.called?[2,void 0]:(t.called=!0,n=e[t.method].apply(e,t.args),Yfe(n)?[4,n]:[3,2]);case 1:i.sent(),i.label=2;case 2:return t.resolve(n),[3,4];case 3:return r=i.sent(),t.reject(r),[3,4];case 4:return[2]}})})}var nhe=function(){function e(t){var n=this;this._preInitBuffer=new pst,this.trackSubmit=this._createMethod("trackSubmit"),this.trackClick=this._createMethod("trackClick"),this.trackLink=this._createMethod("trackLink"),this.pageView=this._createMethod("pageview"),this.identify=this._createMethod("identify"),this.reset=this._createMethod("reset"),this.group=this._createMethod("group"),this.track=this._createMethod("track"),this.ready=this._createMethod("ready"),this.alias=this._createMethod("alias"),this.debug=this._createChainableMethod("debug"),this.page=this._createMethod("page"),this.once=this._createChainableMethod("once"),this.off=this._createChainableMethod("off"),this.on=this._createChainableMethod("on"),this.addSourceMiddleware=this._createMethod("addSourceMiddleware"),this.setAnonymousId=this._createMethod("setAnonymousId"),this.addDestinationMiddleware=this._createMethod("addDestinationMiddleware"),this.screen=this._createMethod("screen"),this.register=this._createMethod("register"),this.deregister=this._createMethod("deregister"),this.user=this._createMethod("user"),this.VERSION=$f,this._promise=t(this._preInitBuffer),this._promise.then(function(r){var i=r[0],o=r[1];n.instance=i,n.ctx=o}).catch(function(){})}return e.prototype.then=function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return(t=this._promise).then.apply(t,n)},e.prototype.catch=function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return(t=this._promise).catch.apply(t,n)},e.prototype.finally=function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return(t=this._promise).finally.apply(t,n)},e.prototype._createMethod=function(t){var n=this;return function(){for(var r,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(n.instance){var s=(r=n.instance)[t].apply(r,i);return Promise.resolve(s)}return new Promise(function(a,l){n._preInitBuffer.push({method:t,args:i,resolve:a,reject:l,called:!1})})}},e.prototype._createChainableMethod=function(t){var n=this;return function(){for(var r,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return n.instance?((r=n.instance)[t].apply(r,i),n):(n._preInitBuffer.push({method:t,args:i,resolve:function(){},reject:console.error,called:!1}),n)}},e}();function fst(e){var t=e[0],n=e.slice(1);return{method:t,resolve:function(){},reject:console.error,args:n,called:!1}}var hst=function(e){return e.map(fst)},vE=function(){var e=window.analytics;if(!Array.isArray(e))return[];var t=e.splice(0,e.length);return hst(t)};QO();var GW,rhe,mst=sx(),ihe=(GW=(rhe=mst).__SEGMENT_INSPECTOR__)!==null&&GW!==void 0?GW:rhe.__SEGMENT_INSPECTOR__={},ohe=function(e){var t;return(t=ihe.attach)===null||t===void 0?void 0:t.call(ihe,e)};eW();function fct(e,t){var n=t??kw();return tg("".concat(n,"/v1/projects/").concat(e,"/settings")).then(function(r){return r.ok?r.json():r.text().then(function(i){throw new Error(i)})}).catch(function(r){throw console.error(r.message),r})}function hct(e){return OW().NODE_ENV!=="test"&&Object.keys(e.integrations).length>1}function mct(e){var t,n,r;return OW().NODE_ENV!=="test"&&((r=(n=(t=e.middlewareSettings)===null||t===void 0?void 0:t.routingRules)===null||n===void 0?void 0:n.length)!==null&&r!==void 0?r:0)>0}function gct(e,t){t.push.apply(t,vE()),ehe(e,t),Qfe(e,t)}function vct(e,t){return Et(this,void 0,void 0,function(){return Mt(this,function(n){switch(n.label){case 0:return t.push.apply(t,vE()),[4,Ufe(e,t)];case 1:return n.sent(),t.push.apply(t,vE()),the(e,t),t.clear(),[2]}})})}function yct(e,t,n,r,i,o){var s,a,l;return Et(this,void 0,void 0,function(){var u,c,f,d,h,m,g,b,v,x,y,_=this;return Mt(this,function(w){switch(w.label){case 0:return mct(e)?[4,Promise.resolve().then(()=>(q1e(),X1e)).then(function(k){return k.tsubMiddleware(e.middlewareSettings.routingRules)})]:[3,2];case 1:return c=w.sent(),[3,3];case 2:c=void 0,w.label=3;case 3:return u=c,hct(e)||o.length>0?[4,Promise.resolve().then(()=>(age(),sge)).then(function(k){return k.ajsDestinations(e,t.integrations,n,u,o)})]:[3,5];case 4:return d=w.sent(),[3,6];case 5:d=[],w.label=6;case 6:return f=d,e.legacyVideoPluginsEnabled?[4,Promise.resolve().then(()=>(cge(),uge)).then(function(k){return k.loadLegacyVideoPlugins(t)})]:[3,8];case 7:w.sent(),w.label=8;case 8:return!((s=n.plan)===null||s===void 0)&&s.track?[4,Promise.resolve().then(()=>(pge(),dge)).then(function(k){var O;return k.schemaFilter((O=n.plan)===null||O===void 0?void 0:O.track,e)})]:[3,10];case 9:return m=w.sent(),[3,11];case 10:m=void 0,w.label=11;case 11:return h=m,g=hE(e,r),[4,Hfe(e,t.integrations,g,r.obfuscate,u).catch(function(){return[]})];case 12:return b=w.sent(),v=So(So(So([Kfe,Vfe],i,!0),f,!0),b,!0),h&&v.push(h),x=((a=n.integrations)===null||a===void 0?void 0:a.All)===!1&&!n.integrations["Segment.io"]||n.integrations&&n.integrations["Segment.io"]===!1,x||v.push($fe(t,g["Segment.io"],e.integrations)),[4,t.register.apply(t,v)];case 13:return y=w.sent(),Object.entries((l=e.enabledMiddleware)!==null&&l!==void 0?l:{}).some(function(k){var O=k[1];return O})?[4,Promise.resolve().then(()=>(hge(),fge)).then(function(k){var O=k.remoteMiddlewares;return Et(_,void 0,void 0,function(){var M,I;return Mt(this,function(W){switch(W.label){case 0:return[4,O(y,e,r.obfuscate)];case 1:return M=W.sent(),I=M.map(function(J){return t.addSourceMiddleware(J)}),[2,Promise.all(I)]}})})})]:[3,15];case 14:w.sent(),w.label=15;case 15:return[2,y]}})})}function xct(e,t,n){var r,i,o,s,a,l,u;return t===void 0&&(t={}),Et(this,void 0,void 0,function(){var c,f,d,h,m,g,b,v,x,y,_;return Mt(this,function(w){switch(w.label){case 0:return e.cdnURL&&Tfe(e.cdnURL),(r=e.cdnSettings)!==null&&r!==void 0?(f=r,[3,3]):[3,1];case 1:return[4,fct(e.writeKey,e.cdnURL)];case 2:f=w.sent(),w.label=3;case 3:return c=f,d=(o=(i=c.integrations["Segment.io"])===null||i===void 0?void 0:i.retryQueue)!==null&&o!==void 0?o:!0,h=et({retryQueue:d},t),m=new zfe(e,h),ohe(m),g=(s=e.plugins)!==null&&s!==void 0?s:[],b=(a=e.classicIntegrations)!==null&&a!==void 0?a:[],sE.initRemoteMetrics(c.metrics),gct(m,n),[4,yct(c,m,h,t,g,b)];case 4:return v=w.sent(),x=(l=window.location.search)!==null&&l!==void 0?l:"",y=(u=window.location.hash)!==null&&u!==void 0?u:"",_=x.length?x:y.replace(/(?=#).*(?=\?)/,""),_.includes("ajs_")?[4,m.queryString(_).catch(console.error)]:[3,6];case 5:w.sent(),w.label=6;case 6:return m.initialized=!0,m.emit("initialize",e,t),t.initialPageview&&m.page().catch(console.error),[4,vct(m,n)];case 7:return w.sent(),[2,[m,v]]}})})}var mge=function(e){Ko(t,e);function t(){var n=this,r=Dfe(),i=r.promise,o=r.resolve;return n=e.call(this,function(s){return i.then(function(a){var l=a[0],u=a[1];return xct(l,u,s)})})||this,n._resolveLoadStart=function(s,a){return o([s,a])},n}return t.prototype.load=function(n,r){return r===void 0&&(r={}),this._resolveLoadStart(n,r),this},t.load=function(n,r){return r===void 0&&(r={}),new t().load(n,r)},t.standalone=function(n,r){return t.load({writeKey:n},r).then(function(i){return i[0]})},t}(nhe);var yX=mge.load({writeKey:"2emN5TOlN9DkCfs6HVcfOyPx6C4cJ8cv"});Sx.default.init("9283439193dfc7183f8620526700bd4a");var AE=()=>{let e=window.bootstrap.environment=="production";return e||(console.log("Environment: "+window.bootstrap.environment),console.log("Mixpanel is disabled in development mode.")),e},_ct={identify:e=>{AE()&&(Sx.default.identify(e),yX.identify(e))},alias:e=>{AE()&&(Sx.default.alias(e),yX.alias(e))},track:(e,t)=>{AE()&&(Sx.default.track(e,t),yX.track(e,t))},people:{set:e=>{AE()&&Sx.default.people.set(e)}}},Fn=_ct;var _X=ie(Xa()),bct=e=>{let[t,n]=(0,iu.useState)("https://calendly.com/d/2mm-kc9-wkq/schedule-an-instant-demo"),[r,i]=(0,iu.useState)(!1),[o,s]=(0,iu.useState)(0);(0,iu.useEffect)(()=>{Fn.track("Loaded Instant+ Trial Banner"),e.trialEndDate&&s((0,_X.default)(e.trialEndDate).diff((0,_X.default)().subtract(1,"days"),"days"))},[e]);let a=(u,c=null)=>{Fn.track("Schedule Instant+ Demo",{event:u,data:c?.data?.payload?c.data.payload:null})};return q1({onProfilePageViewed:()=>a("Profile Page Viewed"),onDateAndTimeSelected:()=>a("Date and Time Selected"),onEventTypeViewed:()=>a("Event Type Viewed"),onEventScheduled:u=>a("Event Scheduled",u)}),iu.default.createElement("div",{className:(()=>o<30)()?"":"hidden"},iu.default.createElement("div",{className:"ml-3 text-sm leading-5 text-black bg-green-400/10 rounded-full py-1 px-3 flex items-center hover:bg-green-400/20"},iu.default.createElement("p",null,"You have ",o," ",o===1?"day":"days"," days left in your Instant PRO trial."," "),o<7&&iu.default.createElement(iu.default.Fragment,null,iu.default.createElement("a",{href:t,target:"_new",onClick:u=>{u.preventDefault(),i(!0),Fn.track("Book Demo Call")},className:"ml-2 relative inline-flex items-center rounded-md border border-transparent bg-gray-200 px-2 py-1 text-sm font-small text-black shadow-sm hover:bg-green-500 hover:text-white focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2"},"Talk to Sales"),iu.default.createElement("a",{href:"https://offers.tkkader.com/instant-pro-2023",target:"_new",className:"ml-2 relative inline-flex items-center rounded-md border border-transparent bg-green-600 px-2 py-1 text-sm font-small text-white shadow-sm hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2"},"Complete Upgrade \u2192"))),iu.default.createElement(Wf,{url:t,open:r,rootElement:document.getElementById("app")}))},gge=bct;var E0=ie(Pe());var dgn=ie(Xa()),wct=e=>((0,E0.useEffect)(()=>{Fn.track("Loaded Instant Billing Banner")},[e]),E0.default.createElement(E0.default.Fragment,null,E0.default.createElement("div",{className:"ml-3 text-sm leading-5 text-black bg-green-400/10 rounded-full py-1 px-3 flex items-center hover:bg-green-400/20"},E0.default.createElement("p",null,"We've had an issue charging your card."),E0.default.createElement("a",{href:"mailto:team@instantlanding.page?subject=Instant Billing Support",target:"_new",className:"ml-2 relative inline-flex items-center rounded-md border border-transparent bg-gray-200 px-2 py-1 text-sm font-small text-black shadow-sm hover:bg-green-500 hover:text-white focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2"},"Contact Support"),E0.default.createElement("a",{href:"https://offers.tkkader.com/instant-pro-2023",target:"_new",className:"ml-2 relative inline-flex items-center rounded-md border border-transparent bg-green-600 px-2 py-1 text-sm font-small text-white shadow-sm hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2"},"Complete Payment \u2192")))),vge=wct;var CE={name:"Unstoppable User",email:"unstoppable@unstoppable.com",imageUrl:window.bootstrap.image_url.user_avatar},Pct=[];function SE(...e){return e.filter(Boolean).join(" ")}var OE=class extends Ot.Component{constructor(t){super(t),this.state={mobileMenuOpen:!1,setLogin:null},this.setMobileMenuOpen=this.setMobileMenuOpen.bind(this)}componentDidMount(){let{isLoggedIn:t,setLogin:n,userData:r,setUserData:i}=this.context;cue().then(o=>{o&&o.isAuthenticated&&(n(!0),rue().then(s=>{if(s.success){let a=s.response.data;i(a)}}))})}setMobileMenuOpen(t){this.setState({mobileMenuOpen:t})}render(){let{isLoggedIn:t,setLogin:n,userData:r}=this.context,i=Dle()||t,o=()=>{sue().then(s=>{s&&(n(!1),window.location.href="/learn")}).catch(s=>{zde(s.message)})};return Ot.default.createElement(Ot.default.Fragment,null,Ot.default.createElement("div",{className:"flex h-full flex-col"},Ot.default.createElement("header",{className:"relative flex h-16 flex-shrink-0 items-center bg-white "+(i?"":"hidden")},Ot.default.createElement("div",{className:"absolute ml-4 md:ml-8 md:static md:flex-shrink-0"},Ot.default.createElement("a",{href:"/dashboard",className:"inline-flex",target:"_new"},Ot.default.createElement("h3",{className:"text-2xl leading-6 font-bold text-gray-900"},Ot.default.createElement("img",{className:"h-8 w-8 rounded-full float-left mr-3 -mt-1",src:CE.imageUrl,alt:""}),r&&r.subscription&&(r.subscription.plan=="pro"||r.subscription.plan=="vip")?Ot.default.createElement(Ot.default.Fragment,null,"Instant"," ",Ot.default.createElement("span",{className:"text-white bg-black rounded-md shadow-2xl text-xs p-1 ml-1 absolute"},"PRO")):"Instant"))),Ot.default.createElement("div",{className:"absolute inset-y-0 right-0 flex items-center pr-4 sm:pr-6 md:hidden"},Ot.default.createElement("button",{type:"button",className:"-mr-2 inline-flex items-center justify-center rounded-md p-2 text-gray-400 hover:bg-gray-100 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-600",onClick:()=>this.setMobileMenuOpen(!0)},Ot.default.createElement("span",{className:"sr-only"},"Open main menu"),Ot.default.createElement(vJ,{className:"block h-6 w-6","aria-hidden":"true"}))),Ot.default.createElement("div",{className:"hidden md:flex md:min-w-0 md:flex-1 md:items-center md:justify-center"},Ot.default.createElement("div",{className:"min-w-0 flex-1"},Ot.default.createElement("div",{className:"max-w-2xl text-gray-400 focus-within:text-gray-500 flex flex-col items-center justify-center m-auto"},r&&r.subscription&&r.subscription.status=="trialing"&&Ot.default.createElement(gge,{trialEndDate:r.subscription.trial_end_date}),r&&r.subscription&&r.subscription.status=="inactive"&&Ot.default.createElement(vge,null))),Ot.default.createElement("div",{className:"ml-10 flex flex-shrink-0 items-center space-x-10 pr-4"},Ot.default.createElement("div",{className:"flex items-center space-x-8"},r&&r.subscription&&Ot.default.createElement("span",{className:"inline-flex"},Ot.default.createElement("a",{href:"https://instant.academy",target:"_new",className:"bg-white p-1 leading-6 text-black hover:text-indigo-600 text-sm"},Ot.default.createElement(_S,{className:"h-6 w-6 float-left mr-1","aria-hidden":"true"}),"Help")),Ot.default.createElement(H1,{as:"div",className:"relative inline-block text-left"},Ot.default.createElement(H1.Button,{className:"flex bg-white p-1 leading-6 text-black hover:text-indigo-600 text-sm"},Ot.default.createElement("span",{className:"sr-only"},"Open user menu"),Ot.default.createElement(PJ,{className:"h-6 w-6 float-left","aria-hidden":"true"}),"Account"),Ot.default.createElement(Fi,{as:Ot.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95"},Ot.default.createElement(H1.Items,{className:"absolute right-0 z-30 mt-2 w-56 origin-top-right rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none"},Ot.default.createElement("div",{className:"py-1"},Ot.default.createElement(H1.Item,null,({active:s})=>Ot.default.createElement("a",{href:"/dashboard",className:SE(s?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700")}," ","Dashboard"," ")),Ot.default.createElement(H1.Item,null,({active:s})=>Ot.default.createElement("a",{href:"https://billing.stripe.com/p/login/9AQ9Dy79W9LkgHC7ss",target:"_new",className:SE(s?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700")}," ","Manage Billing"," ")),Ot.default.createElement(H1.Item,null,({active:s})=>Ot.default.createElement("a",{href:"mailto:team@getunstoppable.com?subject=Help with Instant Landing Page",className:SE(s?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700")}," ","Contact Support"," ")),Ot.default.createElement(H1.Item,null,({active:s})=>Ot.default.createElement("a",{onClick:o,className:SE(s?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700 cursor-pointer")}," ","Log Out"," "))))))))),Ot.default.createElement(Fi.Root,{show:this.state.mobileMenuOpen,as:Ot.Fragment},Ot.default.createElement(Ii,{as:"div",className:"relative z-40 md:hidden",onClose:this.setMobileMenuOpen},Ot.default.createElement(Fi.Child,{as:Ot.Fragment,enter:"transition-opacity ease-linear duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity ease-linear duration-300",leaveFrom:"opacity-100",leaveTo:"opacity-0"},Ot.default.createElement("div",{className:"hidden sm:fixed sm:inset-0 sm:block sm:bg-gray-600 sm:bg-opacity-75"})),Ot.default.createElement("div",{className:"fixed inset-0 z-40"},Ot.default.createElement(Fi.Child,{as:Ot.Fragment,enter:"transition ease-out duration-150 sm:ease-in-out sm:duration-300",enterFrom:"transform opacity-0 scale-110 sm:translate-x-full sm:scale-100 sm:opacity-100",enterTo:"transform opacity-100 scale-100  sm:translate-x-0 sm:scale-100 sm:opacity-100",leave:"transition ease-in duration-150 sm:ease-in-out sm:duration-300",leaveFrom:"transform opacity-100 scale-100 sm:translate-x-0 sm:scale-100 sm:opacity-100",leaveTo:"transform opacity-0 scale-110  sm:translate-x-full sm:scale-100 sm:opacity-100"},Ot.default.createElement(Ii.Panel,{className:"fixed inset-0 z-40 h-full w-full bg-white sm:inset-y-0 sm:left-auto sm:right-0 sm:w-full sm:max-w-sm sm:shadow-lg","aria-label":"Global"},Ot.default.createElement("div",{className:"flex h-16 items-center justify-between px-4 sm:px-6"},Ot.default.createElement("a",{href:"/dashboard"},Ot.default.createElement("h3",{className:"text-2xl leading-6 font-bold text-gray-900"},"\u26A1\uFE0F Instant")),Ot.default.createElement("button",{type:"button",className:"-mr-2 inline-flex items-center justify-center rounded-md p-2 text-gray-400 hover:bg-gray-100 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-600",onClick:()=>this.setMobileMenuOpen(!1)},Ot.default.createElement("span",{className:"sr-only"},"Close main menu"),Ot.default.createElement(r8,{className:"block h-6 w-6","aria-hidden":"true"}))),Ot.default.createElement("div",{className:"max-w-8xl mx-auto py-3 px-2 sm:px-4"},Pct.map(s=>Ot.default.createElement(Ot.Fragment,{key:s.name},Ot.default.createElement("a",{href:s.href,className:"block rounded-md py-2 px-3 text-base font-medium text-gray-900 hover:bg-gray-100"},s.name),s.children.map(a=>Ot.default.createElement("a",{key:a.name,href:a.href,className:"block rounded-md py-2 pl-5 pr-3 text-base font-medium text-gray-500 hover:bg-gray-100"},a.name))))),Ot.default.createElement("div",{className:"border-t border-gray-200 pt-4 pb-3"},Ot.default.createElement("div",{className:"max-w-8xl mx-auto flex items-center px-4 sm:px-6 hidden"},Ot.default.createElement("div",{className:"flex-shrink-0"},Ot.default.createElement("img",{className:"h-10 w-10 rounded-full",src:CE.imageUrl,alt:""})),Ot.default.createElement("div",{className:"ml-3 min-w-0 flex-1"},Ot.default.createElement("div",{className:"truncate text-base font-medium text-gray-800"},CE.name),Ot.default.createElement("div",{className:"truncate text-sm font-medium text-gray-500"},CE.email)),Ot.default.createElement("a",{href:"#",className:"ml-auto flex-shrink-0 bg-white p-2 text-gray-400 hover:text-gray-500"},Ot.default.createElement("span",{className:"sr-only"},"View notifications"),Ot.default.createElement(cJ,{className:"h-6 w-6","aria-hidden":"true"}))),Ot.default.createElement("div",{className:"max-w-8xl mx-auto mt-3 space-y-1 px-2 sm:px-4"},Ot.default.createElement("a",{href:"https://instant.academy",target:"_new",className:"block rounded-md py-2 px-3 text-base font-medium text-gray-900 hover:bg-gray-50"},Ot.default.createElement(_S,{className:"h-6 w-6 float-left mr-1","aria-hidden":"true"}),"Help"),Ot.default.createElement("a",{href:"mailto:team@getunstoppable.com?subject=Help with Instant Landing Page",className:"block rounded-md py-2 px-3 text-base font-medium text-gray-900 hover:bg-gray-50",target:"_new"},Ot.default.createElement(W8,{className:"h-6 w-6 float-left mr-1","aria-hidden":"true"})," ","Contact Support"," "),Ot.default.createElement("a",{href:"#",onClick:o,className:"block rounded-md py-2 px-3 text-base font-medium text-gray-900 hover:bg-gray-50"},Ot.default.createElement(kJ,{className:"h-6 w-6 float-left mr-1","aria-hidden":"true"}),"Log Out"))))))))),Ot.default.createElement("div",{className:"flex min-h-0 flex-1"},Ot.default.createElement("main",{className:"min-w-0 flex-1 border-t border-gray-200 lg:flex"},Ot.default.createElement(TV,null)))))}};Kt(OE,"contextType",Vr);var yge=Pd(OE);var fn=ie(Pe()),A4=ie(Ex()),p7e=ie(Jp());var pr=ie(Pe()),kX=ie(Jp()),Nge=ie(Ex()),Gge=ie(Fw());var va=ie(Pe());var Ict=({title:e,subtitle:t,backgroundColor:n,spineColor:r,backgroundPattern:i,backgroundPatternColor:o,bookType:s,preview:a})=>va.default.createElement("div",{className:"relative w-full rounded-xl shadow-xl pb-[145%]"},va.default.createElement("div",{className:"absolute left-0 top-0 h-full w-[8%] z-10"},va.default.createElement("div",{className:`h-full w-full ${r}`})),s=="checklist"&&!a&&va.default.createElement("div",{className:"absolute right-0 top-0 mr-4 mt-4 h-full z-10 text-white"},va.default.createElement("div",{className:`w-24 h-24 rounded-full ${r} bg-opacity-50 flex items-center justify-center`},va.default.createElement(Dj,{className:"w-[80%] text-white/50"}))),s=="training"&&!a&&va.default.createElement("div",{className:"absolute right-0 top-0 mr-4 mt-4 h-full z-10 text-white"},va.default.createElement("div",{className:`w-24 h-24 rounded-full ${r} bg-opacity-50 flex items-center justify-center`},va.default.createElement($j,{className:"w-[80%] text-white/50"}))),va.default.createElement("div",{className:`absolute inset-0 flex items-center justify-center ${n} bg-repeat ${i}-${o}/10`},a?va.default.createElement("div",{className:"absolute inset-x-0 mb-4 pl-8 pr-4"},va.default.createElement(b0,{className:"w-128 text-white/50"})):va.default.createElement("div",{className:"pl-10 sm:pl-12 pr-4 mb-6 absolute inset-x-0 bottom-0 md:mb-12 md:pl-12 lg:mb-20 lg:pl-16 lg:pr-4"},va.default.createElement("h1",{className:"leading-none sm:leading-normal text-3xl md:text-4xl lg:text-5xl text-white font-bold"},e==""?va.default.createElement("span",{className:"bg-yellow-100 text-black opacity-50"},"Name of Your Lead Magnet Goes Here"):e),va.default.createElement("h2",{className:"leading-none sm:leading-normal text-sm md:text-md lg:text-xl text-white font-bold mt-4"},"Exclusively for"," ",t==""?va.default.createElement("span",{className:"bg-yellow-100 text-black opacity-50"},"Your Ideal Customer"):t)))),ME=Ict;var Mx=class extends pr.Component{constructor(t){super(t),this.state={formData:{name:"",email:"",stage:""},formValidation:{showValidationErrors:!1,nameValid:!1,emailValid:!1,stageValid:!1},submitInProgress:!1},this.pageHasStages=this.pageHasStages.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.validateFormInput=this.validateFormInput.bind(this),this.onSubmit=this.onSubmit.bind(this)}static get propTypes(){return{page:kX.default.object,mode:kX.default.string}}pageHasStages(){let t=this.props.page.stages;if(t!=null&&t.length>0){let n=t[0];return n&&n.label&&n.value?n.label!=""&&n.value!="":!1}else return!1}handleInputChange(t){this.setState({formData:(0,Nge.default)(this.state.formData,{[t.target.id]:{$set:t.target.value}})})}validateFormInput(){let t=Gge.validate(this.state.formData.email),n=this.state.formData.name!=""&&this.state.formData.name.length>1,r=!0;return this.pageHasStages()&&this.state.formData.stage==""&&(r=!1),this.setState({formValidation:{showValidationErrors:!0,emailValid:t,nameValid:n,stageValid:r}}),t&&n&&r}onSubmit(t){t.preventDefault(),this.validateFormInput()&&this.setState({submitInProgress:!0},()=>{this.props.onSubmit(this.state.formData)})}render(){return pr.default.createElement(pr.default.Fragment,null,pr.default.createElement("header",{className:"bg-slate-100 lg:bg-transparent lg:px-5"},pr.default.createElement("div",{className:"mx-auto grid max-w-5xl grid-cols-1 grid-rows-[auto_1fr] gap-y-16 pt-16 md:pt-20 lg:grid-cols-12 lg:gap-y-20 lg:px-3 lg:pb-0 lg:pt-20 xl:pt-12"},pr.default.createElement("div",{className:"relative flex items-start lg:col-span-5 lg:row-span-2 mx-16 lg:mx-0"},pr.default.createElement("div",{className:"relative z-10 mx-auto flex w-64 rounded-xl shadow-xl md:w-80 lg:w-full"},pr.default.createElement(ME,{title:this.props.page.what,subtitle:this.props.page.who,spineColor:this.props.page.cover_spine_color||"bg-yellow-300",backgroundColor:this.props.page.cover_background_color||"bg-gray-800",backgroundPattern:this.props.page.cover_background_pattern||"",backgroundPatternColor:this.props.page.cover_background_pattern_color||"yellow-500/50",bookType:this.props.page.what_type,preview:!1}))),pr.default.createElement("div",{className:"bg-white pt-8 pb-12 lg:col-span-7 lg:bg-transparent lg:pt-0 lg:pl-14 xl:pl-18"},pr.default.createElement("div",{className:"mx-auto px-8 sm:px-6 md:max-w-2xl md:px-4 lg:px-0"},pr.default.createElement("h1",{className:"font-display text-4xl font-extrabold text-slate-900 sm:text-5xl"},this.props.page.what==""?pr.default.createElement("span",{className:"bg-yellow-100 text-black opacity-50"},"Name of Your Lead Magnet Goes Here"):this.props.page.what),pr.default.createElement("p",{className:"mt-4 font-bold text-xl text-gray-700"},"This ",this.props.page.what_type," for"," ",this.props.page.who==""?pr.default.createElement("span",{className:"bg-yellow-100 text-black opacity-50"},"your ideal customer"):this.props.page.who," ","covers"," ",this.props.page.what_get==""?pr.default.createElement("span",{className:"bg-yellow-100 text-black opacity-50"},"what they specifically get inside"):this.props.page.what_get," ","so you can"," ",this.props.page.what_want==""?pr.default.createElement("span",{className:"bg-yellow-100 text-black opacity-50"},"the specific result your ideal customer wants."):this.props.page.what_want),pr.default.createElement("p",{className:"mt-4 text-md text-gray-700"},this.props.page.why==""?pr.default.createElement("span",{className:"bg-yellow-100 text-black opacity-50"},"Establish your credibility for delivering this"," ",this.props.page.what_type," and why your ideal customer should trust you in delivering this information."):this.props.page.why," "),pr.default.createElement("p",{className:"mt-4 text-md text-gray-700"},"Just let me know your contact information and hit the giant yellow button below to get instant access to the"," ",this.props.page.what_type," for FREE."),pr.default.createElement("form",{className:"mt-4"},pr.default.createElement("input",{type:"text",name:"name",id:"name",disabled:this.props.mode=="preview",placeholder:"Enter Your First Name",onChange:this.handleInputChange,className:"-mr-2mt-4 shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full text-xl border-gray-300 rounded-md"}),this.state.formValidation.showValidationErrors&&!this.state.formValidation.nameValid&&pr.default.createElement("p",{className:"text-red-700 font-light"},"Please enter a valid name."),pr.default.createElement("input",{type:"text",name:"email",id:"email",disabled:this.props.mode=="preview",autoComplete:"Your email address",placeholder:this.props.page.business_email_only?"Enter Your Business Email Address":"Enter Your Email Address",onChange:this.handleInputChange,className:"mt-4 shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full text-xl border-gray-300 rounded-md"}),this.state.formValidation.showValidationErrors&&!this.state.formValidation.emailValid&&pr.default.createElement("p",{className:"text-red-700 font-light"},"Please enter a valid `",this.props.page.business_email_only?"business":"","` email address."),this.props.page.collect_phone&&pr.default.createElement("input",{type:"text",name:"phone",id:"phone",disabled:this.props.mode=="preview",autoComplete:"Your mobile phone number",placeholder:"Enter Your Mobile Phone Number",onChange:this.handleInputChange,className:"mt-4 shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full text-xl border-gray-300 rounded-md"}),this.pageHasStages()&&pr.default.createElement("div",{className:"mt-4"},pr.default.createElement("select",{id:"stage",name:"stage",autoComplete:"stage",className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-xl border-gray-300 rounded-md",value:this.state.formData.stage,onChange:this.handleInputChange},pr.default.createElement("option",{disabled:!0,value:""},"Pick your stage..."),this.props.page.stages.map((t,n)=>t&&t.value!=""&&t.label!=""&&pr.default.createElement("option",{key:t.value+"_"+n,value:t.value},t.label)))," ",this.state.formValidation.showValidationErrors&&!this.state.formValidation.stageValid&&pr.default.createElement("p",{className:"text-red-700 font-light"},"Please select the stage you're in your journey as a"," ",this.props.page.who,".")),this.state.submitInProgress?pr.default.createElement("button",{type:"submit",disabled:!0,className:"mt-6 w-full py-6 border border-transparent shadow-sm text-2xl font-medium rounded-md text-black bg-yellow-400 hover:bg-yellow-400 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},"Submitting..."):pr.default.createElement("button",{type:"submit",disabled:this.props.mode=="preview",onClick:this.onSubmit,className:"mt-6 w-full py-6 border border-transparent shadow-sm text-2xl font-medium rounded-md text-black bg-yellow-300 hover:bg-yellow-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},"Let's Do This \u2192")))))),this.props.page.company_name&&pr.default.createElement("footer",{className:"bg-slate-100 lg:bg-transparent lg:px-5 text-xs"},pr.default.createElement("div",{className:"mx-auto max-w-5xl gap-y-16 pt-16 mb-16 md:pt-20 lg:px-3 lg:pb-0 lg:pt-20 xl:pt-12 text-center"},pr.default.createElement("ul",{className:"flex list-none flex-wrap justify-center"},pr.default.createElement("li",{className:"px-2"},"Copyright \xA9 ",new Date().getFullYear(),"\xA0",this.props.page.company_name),this.props.page.privacy_policy_url&&pr.default.createElement("li",{className:"px-2 border-l border-gray-400"},pr.default.createElement("a",{href:this.props.page.privacy_policy_url,target:"_new"},"Privacy Policy")),this.props.page.tos_url&&pr.default.createElement("li",{className:"px-2 border-l border-gray-400"},pr.default.createElement("a",{href:this.props.page.tos_url,target:"_new"},"Terms of Service"))))))}};var It=ie(Pe()),i7=ie(Jp());var AX=ie(Pe()),zct=({options:e,value:t,onChange:n})=>AX.default.createElement("div",{className:"w-full border border-gray-200 p-2 grid gap-3 grid-cols-6"},e.map((r,i)=>AX.default.createElement("div",{key:i,className:`w-10 h-10 cursor-pointer rounded-full ${r.value} ${r.value==t?"outline outline-offset-2 outline-4":""}}`,onClick:()=>{n(r.value)}}))),Iw=zct;var bM=ie(Pe());var Kge=ie(St()),Yge=ie(Gt()),dg=ie(Pe());var Bx=ie(Pe());var CX=ie(Pe()),SX={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},OX=CX.default.createContext&&CX.default.createContext(SX);var cg=function(){return cg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},cg.apply(this,arguments)},jct=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Tge(e){return e&&e.map(function(t,n){return Bx.default.createElement(t.tag,cg({key:n},t.attr),Tge(t.child))})}function ou(e){return function(t){return Bx.default.createElement(Hct,cg({attr:cg({},e.attr)},t),Tge(e.child))}}function Hct(e){var t=function(n){var r=e.attr,i=e.size,o=e.title,s=jct(e,["attr","size","title"]),a=i||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),Bx.default.createElement("svg",cg({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:l,style:cg(cg({color:e.color||n.color},n.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&Bx.default.createElement("title",null,o),e.children)};return OX!==void 0?Bx.default.createElement(OX.Consumer,null,function(n){return t(n)}):t(SX)}function GE(e){return ou({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"}}]})(e)}function Dge(e){return ou({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z",clipRule:"evenodd"}}]})(e)}function Rge(e){return ou({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"}}]})(e)}function Lge(e){return ou({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z"}}]})(e)}function Vge(e){return ou({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"}}]})(e)}function Jge(e){return ou({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M10 2a1 1 0 011 1v1a1 1 0 11-2 0V3a1 1 0 011-1zm4 8a4 4 0 11-8 0 4 4 0 018 0zm-.464 4.95l.707.707a1 1 0 001.414-1.414l-.707-.707a1 1 0 00-1.414 1.414zm2.12-10.607a1 1 0 010 1.414l-.706.707a1 1 0 11-1.414-1.414l.707-.707a1 1 0 011.414 0zM17 11a1 1 0 100-2h-1a1 1 0 100 2h1zm-7 4a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1zM5.05 6.464A1 1 0 106.465 5.05l-.708-.707a1 1 0 00-1.414 1.414l.707.707zm1.414 8.486l-.707.707a1 1 0 01-1.414-1.414l.707-.707a1 1 0 011.414 1.414zM4 11a1 1 0 100-2H3a1 1 0 000 2h1z",clipRule:"evenodd"}}]})(e)}function FE(e){return ou({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}}]})(e)}function EX(e){return ou({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"}}]})(e)}function IE(e){return ou({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19l-7-7 7-7"}}]})(e)}function Nx(e){return ou({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"}}]})(e)}function jge(e){return ou({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 15l7-7 7 7"}}]})(e)}function Hge(e){return ou({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}}]})(e)}function J2(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function MX(e){if(!J2(e))return e;let t={...e};return Object.keys(e).forEach(n=>{t[n]=MX(e[n])}),t}function Qe(e,t){if(J2(t)&&Object.keys(t).length===0)return MX({...e,...t});let n={...e,...t};return J2(t)&&J2(e)&&Object.keys(t).forEach(r=>{J2(t[r])&&r in e&&J2(e[r])?n[r]=Qe(e[r],t[r]):n[r]=J2(t[r])?MX(t[r]):t[r]}),n}var Wge=ie(St()),Xge=ie(Gt());var zE=ie(Pe()),BX=(0,zE.createContext)(void 0);function TE(){let e=(0,zE.useContext)(BX);if(!e)throw new Error("useAccordionContext should be used within the AccordionPanelContext provider!");return e}var NX=({children:e,className:t,theme:n={},...r})=>{let{isOpen:i}=TE(),o=Qe(Ye().theme.accordion.content,n);return(0,Wge.jsx)("div",{className:(0,Xge.default)(o.base,t),"data-testid":"flowbite-accordion-content",hidden:!i,...r,children:e})};var qge=ie(St()),$ge=ie(Pe());var GX=({children:e,...t})=>{let{alwaysOpen:n}=t,[r,i]=(0,$ge.useState)(t.isOpen),o=n?{...t,isOpen:r,setOpen:()=>i(!r)}:t;return(0,qge.jsx)(BX.Provider,{value:o,children:e})};var zw=ie(St()),FX=ie(Gt());var IX=({as:e="h2",children:t,className:n,theme:r={},...i})=>{let{arrowIcon:o,flush:s,isOpen:a,setOpen:l}=TE(),u=()=>typeof l<"u"&&l(),c=Qe(Ye().theme.accordion.title,r);return(0,zw.jsxs)("button",{className:(0,FX.default)(c.base,c.flush[s?"on":"off"],c.open[a?"on":"off"],n),onClick:u,type:"button",...i,children:[(0,zw.jsx)(e,{className:c.heading,"data-testid":"flowbite-accordion-heading",children:t}),o&&(0,zw.jsx)(o,{"aria-hidden":!0,className:(0,FX.default)(c.arrow.base,c.arrow.open[a?"on":"off"]),"data-testid":"flowbite-accordion-arrow"})]})};var Zge=({alwaysOpen:e=!1,arrowIcon:t=GE,children:n,flush:r=!1,collapseAll:i=!1,className:o,theme:s={},...a})=>{let[l,u]=(0,dg.useState)(i?-1:0),c=(0,dg.useMemo)(()=>dg.Children.map(n,(d,h)=>(0,dg.cloneElement)(d,{alwaysOpen:e,arrowIcon:t,flush:r,isOpen:l===h,setOpen:()=>u(l===h?-1:h)})),[e,t,n,r,l]),f=Qe(Ye().theme.accordion.root,s);return(0,Kge.jsx)("div",{className:(0,Yge.default)(f.base,f.flush[r?"on":"off"],o),"data-testid":"flowbite-accordion",...a,children:c})};Zge.displayName="Accordion";GX.displayName="Accordion.Panel";IX.displayName="Accordion.Title";NX.displayName="Accordion.Content";var Pvn=Object.assign(Zge,{Panel:GX,Title:IX,Content:NX});var M0=ie(St()),zX=ie(Gt());var Wct=({additionalContent:e,children:t,className:n,color:r="info",icon:i,onDismiss:o,rounded:s=!0,theme:a={},withBorderAccent:l,...u})=>{let c=Qe(Ye().theme.alert,a);return(0,M0.jsxs)("div",{className:(0,zX.default)(c.base,c.color[r],s&&c.rounded,l&&c.borderAccent,n),role:"alert",...u,children:[(0,M0.jsxs)("div",{className:c.wrapper,"data-testid":"flowbite-alert-wrapper",children:[i&&(0,M0.jsx)(i,{className:c.icon,"data-testid":"flowbite-alert-icon"}),(0,M0.jsx)("div",{children:t}),typeof o=="function"&&(0,M0.jsx)("button",{"aria-label":"Dismiss",className:(0,zX.default)(c.closeButton.base,c.closeButton.color[r]),onClick:o,type:"button",children:(0,M0.jsx)(FE,{"aria-hidden":!0,className:c.closeButton.icon})})]}),e&&(0,M0.jsx)("div",{children:e})]})};Wct.displayName="Alert";var Od=ie(St()),pg=ie(Gt());var Uge=ie(St()),Qge=ie(Gt());var TX=({children:e,className:t,theme:n={},...r})=>{let i=Qe(Ye().theme.avatar.group,n);return(0,Uge.jsx)("div",{"data-testid":"avatar-group-element",className:(0,Qge.default)(i.base,t),...r,children:e})};TX.displayName="Avatar.Group";var eve=ie(St()),tve=ie(Gt());var DX=({className:e,href:t,theme:n={},total:r,...i})=>{let o=Qe(Ye().theme.avatar.groupCounter,n);return(0,eve.jsxs)("a",{href:t,className:(0,tve.default)(o.base,e),...i,children:["+",r]})};DX.displayName="Avatar.GroupCounter";var nve=({alt:e="",bordered:t=!1,children:n,className:r,color:i="light",img:o,placeholderInitials:s="",rounded:a=!1,size:l="md",stacked:u=!1,status:c,statusPosition:f="top-left",theme:d={},...h})=>{let m=Qe(Ye().theme.avatar,d),g=(0,pg.default)(t&&m.root.bordered,t&&m.root.color[i],a&&m.root.rounded,u&&m.root.stacked,m.root.img.on,m.root.size[l]),b={className:(0,pg.default)(g,m.root.img.on),"data-testid":"flowbite-avatar-img"};return(0,Od.jsxs)("div",{className:(0,pg.default)(m.root.base,r),"data-testid":"flowbite-avatar",...h,children:[(0,Od.jsxs)("div",{className:"relative",children:[o?typeof o=="string"?(0,Od.jsx)("img",{alt:e,src:o,...b}):o({alt:e,...b}):s?(0,Od.jsx)("div",{className:(0,pg.default)(m.root.img.off,m.root.initials.base,a&&m.root.rounded,u&&m.root.stacked,t&&m.root.bordered,t&&m.root.color[i],m.root.size[l]),"data-testid":"flowbite-avatar-initials-placeholder",children:(0,Od.jsx)("span",{className:(0,pg.default)(m.root.initials.text),"data-testid":"flowbite-avatar-initials-placeholder-text",children:s})}):(0,Od.jsx)("div",{className:(0,pg.default)(g,m.root.img.off),"data-testid":"flowbite-avatar-img",children:(0,Od.jsx)("svg",{className:m.root.img.placeholder,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,Od.jsx)("path",{fillRule:"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",clipRule:"evenodd"})})}),c&&(0,Od.jsx)("span",{"data-testid":"flowbite-avatar-status",className:(0,pg.default)(m.root.status.base,m.root.status[c],m.root.statusPosition[f])})]}),n&&(0,Od.jsx)("div",{children:n})]})};nve.displayName="Avatar";var Rvn=Object.assign(nve,{Group:TX,Counter:DX});var fg=ie(St()),rve=ie(Gt());var RX=({children:e,color:t="info",href:n,icon:r,size:i="xs",className:o,theme:s={},...a})=>{let l=Qe(Ye().theme.badge,s),u=()=>(0,fg.jsxs)("span",{className:(0,rve.default)(l.root.base,l.root.color[t],l.icon[r?"on":"off"],l.root.size[i],o),"data-testid":"flowbite-badge",...a,children:[r&&(0,fg.jsx)(r,{"aria-hidden":!0,className:l.icon.size[i],"data-testid":"flowbite-badge-icon"}),e&&(0,fg.jsx)("span",{children:e})]});return n?(0,fg.jsx)("a",{className:l.root.href,href:n,children:(0,fg.jsx)(u,{})}):(0,fg.jsx)(u,{})};RX.displayName="Badge";var VX=ie(St()),sve=ie(Gt());var Gx=ie(St()),ive=ie(Gt()),ove=ie(Pe());var LX=(0,ove.forwardRef)(({children:e,className:t,href:n,icon:r,theme:i={},...o},s)=>{let a=typeof n<"u",l=a?"a":"span",u=Qe(Ye().theme.breadcrumb.item,i);return(0,Gx.jsxs)("li",{className:(0,ive.default)(u.base,t),...o,children:[(0,Gx.jsx)(Nx,{"aria-hidden":!0,className:u.chevron,"data-testid":"flowbite-breadcrumb-separator"}),(0,Gx.jsxs)(l,{ref:s,className:u.href[a?"on":"off"],"data-testid":"flowbite-breadcrumb-item",href:n,children:[r&&(0,Gx.jsx)(r,{"aria-hidden":!0,className:u.icon}),e]})]})});LX.displayName="Breadcrumb.Item";var ave=({children:e,className:t,theme:n={},...r})=>{let i=Qe(Ye().theme.breadcrumb.root,n);return(0,VX.jsx)("nav",{"aria-label":"Breadcrumb",className:(0,sve.default)(i.base,t),...r,children:(0,VX.jsx)("ol",{className:i.list,children:e})})};ave.displayName="Breadcrumb";var Qvn=Object.assign(ave,{Item:LX});var th=ie(St()),JX=ie(Gt()),pve=ie(Pe());var lve=ie(St()),uve=ie(Gt()),Fx=ie(Pe());var cve=({children:e,className:t,outline:n,pill:r,theme:i={},...o})=>{let s=(0,Fx.useMemo)(()=>Fx.Children.map(e,(l,u)=>(0,Fx.cloneElement)(l,{outline:n,pill:r,positionInGroup:u===0?"start":u===e.length-1?"end":"middle"})),[e,n,r]),a=Qe(Ye().theme.buttonGroup,i);return(0,lve.jsx)("div",{className:(0,uve.default)(a.base,t),role:"group",...o,children:s})};cve.displayName="Button.Group";var dve=cve;var fve=(0,pve.forwardRef)(({children:e,className:t,color:n="info",disabled:r=!1,fullSized:i,isProcessing:o=!1,processingLabel:s="Loading...",processingSpinner:a=(0,th.jsx)(jX,{}),gradientDuoTone:l,gradientMonochrome:u,href:c,label:f,outline:d=!1,pill:h=!1,positionInGroup:m="none",size:g="md",theme:b={},...v},x)=>{let{buttonGroup:y,button:_}=Ye().theme,w=Qe(_,b),k=typeof c<"u",O=k?"a":"button",M=v;return(0,th.jsx)(O,{disabled:r,href:c,type:k?void 0:"button",ref:x,className:(0,JX.default)(r&&w.disabled,!l&&!u&&w.color[n],l&&!u&&w.gradientDuoTone[l],!l&&u&&w.gradient[u],y.position[m],d&&(w.outline.color[n]??w.outline.color.default),w.base,w.pill[h?"on":"off"],i&&w.fullSized,t),...M,children:(0,th.jsx)("span",{className:(0,JX.default)(w.inner.base,w.inner.position[m],w.outline[d?"on":"off"],w.outline.pill[d&&h?"on":"off"],w.size[g],d&&!w.outline.color[n]&&w.inner.outline,o&&w.isProcessing),children:(0,th.jsxs)(th.Fragment,{children:[o&&(0,th.jsx)("span",{className:w.spinnerSlot,children:a}),typeof e<"u"?e:(0,th.jsx)("span",{"data-testid":"flowbite-button-label",className:w.label,children:o?s:f})]})})})});fve.displayName="Button";var hve=Object.assign(fve,{Group:dve});var Tw=ie(St()),HX=ie(Gt());var Xct=({children:e,className:t,horizontal:n,href:r,imgAlt:i,imgSrc:o,theme:s={},...a})=>{let l=typeof r>"u"?"div":"a",u=a,c=Qe(Ye().theme.card,s);return(0,Tw.jsxs)(l,{"data-testid":"flowbite-card",href:r,className:(0,HX.default)(c.root.base,c.root.horizontal[n?"on":"off"],r&&c.root.href,t),...u,children:[o&&(0,Tw.jsx)("img",{alt:i??"",src:o,className:(0,HX.default)(c.img.base,c.img.horizontal[n?"on":"off"])}),(0,Tw.jsx)("div",{className:c.root.children,children:e})]})};Xct.displayName="Card";var js=ie(St()),Rw=ie(Gt()),Cl=ie(Pe());var Dw=ie(Pe());var mve=function(e,t){return(mve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])})(e,t)},qct,DE,$ct=(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i<arguments.length;i++){var o=arguments[i];if(o){var s=typeof o;if(s==="string"||s==="number")r.push(o);else if(Array.isArray(o)&&o.length){var a=n.apply(null,o);a&&r.push(a)}else if(s==="object")for(var l in o)t.call(o,l)&&o[l]&&r.push(l)}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(DE={path:qct,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(t==null&&DE.path)}},DE.exports),DE.exports);function XX(e,t,n){var r,i,o,s,a;function l(){var c=Date.now()-s;c<t&&c>=0?r=setTimeout(l,t-c):(r=null,n||(a=e.apply(o,i),o=i=null))}t==null&&(t=100);var u=function(){o=this,i=arguments,s=Date.now();var c=n&&!r;return r||(r=setTimeout(l,t)),c&&(a=e.apply(o,i),o=i=null),a};return u.clear=function(){r&&(clearTimeout(r),r=null)},u.flush=function(){r&&(a=e.apply(o,i),o=i=null,clearTimeout(r),r=null)},u}XX.debounce=XX;var Kct=XX;(function(e,t){t===void 0&&(t={});var n=t.insertAt;if(e&&typeof document<"u"){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",n==="top"&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}})(`.indiana-scroll-container {
  overflow: auto; }
  .indiana-scroll-container--dragging {
    scroll-behavior: auto !important; }
    .indiana-scroll-container--dragging > * {
      pointer-events: none;
      cursor: -webkit-grab;
      cursor: grab; }
  .indiana-scroll-container--hide-scrollbars {
    overflow: hidden;
    overflow: -moz-scrollbars-none;
    -ms-overflow-style: none;
    scrollbar-width: none; }
    .indiana-scroll-container--hide-scrollbars::-webkit-scrollbar {
      display: none !important;
      height: 0 !important;
      width: 0 !important;
      background: transparent !important;
      -webkit-appearance: none !important; }
  .indiana-scroll-container--native-scroll {
    overflow: auto; }

.indiana-dragging {
  cursor: -webkit-grab;
  cursor: grab; }
`);var WX,Yct=(WX="indiana-scroll-container",function(e,t){if(!e)return WX;var n;typeof e=="string"?n=e:t=e;var r=WX;return n&&(r+="__"+n),r+(t?Object.keys(t).reduce(function(i,o){var s=t[o];return s&&(i+=" "+(typeof s=="boolean"?r+"--"+o:r+"--"+o+"_"+s)),i},""):"")}),Zct=function(e){function t(n){var r=e.call(this,n)||this;return r.onEndScroll=function(){r.scrolling=!1,!r.pressed&&r.started&&r.processEnd()},r.onScroll=function(i){var o=r.container.current;o.scrollLeft===r.scrollLeft&&o.scrollTop===r.scrollTop||(r.scrolling=!0,r.processScroll(i),r.onEndScroll())},r.onTouchStart=function(i){var o=r.props.nativeMobileScroll;if(r.isDraggable(i.target))if(r.internal=!0,o&&r.scrolling)r.pressed=!0;else{var s=i.touches[0];r.processClick(i,s.clientX,s.clientY),!o&&r.props.stopPropagation&&i.stopPropagation()}},r.onTouchEnd=function(i){var o=r.props.nativeMobileScroll;r.pressed&&(!r.started||r.scrolling&&o?r.pressed=!1:r.processEnd(),r.forceUpdate())},r.onTouchMove=function(i){var o=r.props.nativeMobileScroll;if(r.pressed&&(!o||!r.isMobile)){var s=i.touches[0];s&&r.processMove(i,s.clientX,s.clientY),i.preventDefault(),r.props.stopPropagation&&i.stopPropagation()}},r.onMouseDown=function(i){r.isDraggable(i.target)&&r.isScrollable()&&(r.internal=!0,r.props.buttons.indexOf(i.button)!==-1&&(r.processClick(i,i.clientX,i.clientY),i.preventDefault(),r.props.stopPropagation&&i.stopPropagation()))},r.onMouseMove=function(i){r.pressed&&(r.processMove(i,i.clientX,i.clientY),i.preventDefault(),r.props.stopPropagation&&i.stopPropagation())},r.onMouseUp=function(i){r.pressed&&(r.started?r.processEnd():(r.internal=!1,r.pressed=!1,r.forceUpdate(),r.props.onClick&&r.props.onClick(i)),i.preventDefault(),r.props.stopPropagation&&i.stopPropagation())},r.container=Dw.default.createRef(),r.onEndScroll=Kct(r.onEndScroll,300),r.scrolling=!1,r.started=!1,r.pressed=!1,r.internal=!1,r.getRef=r.getRef.bind(r),r}return function(n,r){function i(){this.constructor=n}mve(n,r),n.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}(t,e),t.prototype.componentDidMount=function(){var n=this.props.nativeMobileScroll,r=this.container.current;window.addEventListener("mouseup",this.onMouseUp),window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd),r.addEventListener("touchstart",this.onTouchStart,{passive:!1}),r.addEventListener("mousedown",this.onMouseDown,{passive:!1}),n&&(this.isMobile=this.isMobileDevice(),this.isMobile&&this.forceUpdate())},t.prototype.componentWillUnmount=function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},t.prototype.getElement=function(){return this.container.current},t.prototype.isMobileDevice=function(){return window.orientation!==void 0||navigator.userAgent.indexOf("IEMobile")!==-1},t.prototype.isDraggable=function(n){var r=this.props.ignoreElements;if(r){var i=n.closest(r);return i===null||i.contains(this.getElement())}return!0},t.prototype.isScrollable=function(){var n=this.container.current;return n&&(n.scrollWidth>n.clientWidth||n.scrollHeight>n.clientHeight)},t.prototype.processClick=function(n,r,i){var o=this.container.current;this.scrollLeft=o.scrollLeft,this.scrollTop=o.scrollTop,this.clientX=r,this.clientY=i,this.pressed=!0},t.prototype.processStart=function(n){n===void 0&&(n=!0);var r=this.props.onStartScroll;this.started=!0,n&&document.body.classList.add("indiana-dragging"),r&&r({external:!this.internal}),this.forceUpdate()},t.prototype.processScroll=function(n){if(this.started){var r=this.props.onScroll;r&&r({external:!this.internal})}else this.processStart(!1)},t.prototype.processMove=function(n,r,i){var o=this.props,s=o.horizontal,a=o.vertical,l=o.activationDistance,u=o.onScroll,c=this.container.current;this.started?(s&&(c.scrollLeft-=r-this.clientX),a&&(c.scrollTop-=i-this.clientY),u&&u({external:!this.internal}),this.clientX=r,this.clientY=i,this.scrollLeft=c.scrollLeft,this.scrollTop=c.scrollTop):(s&&Math.abs(r-this.clientX)>l||a&&Math.abs(i-this.clientY)>l)&&(this.clientX=r,this.clientY=i,this.processStart())},t.prototype.processEnd=function(){var n=this.props.onEndScroll;this.container.current&&n&&n({external:!this.internal}),this.pressed=!1,this.started=!1,this.scrolling=!1,this.internal=!1,document.body.classList.remove("indiana-dragging"),this.forceUpdate()},t.prototype.getRef=function(n){[this.container,this.props.innerRef].forEach(function(r){r&&(typeof r=="function"?r(n):r.current=n)})},t.prototype.render=function(){var n=this.props,r=n.children,i=n.draggingClassName,o=n.className,s=n.style,a=n.hideScrollbars,l=n.component;return Dw.default.createElement(l,{className:$ct(o,this.pressed&&i,Yct({dragging:this.pressed,"hide-scrollbars":a,"native-scroll":this.isMobile})),style:s,ref:this.getRef,onScroll:this.onScroll},r)},t.defaultProps={nativeMobileScroll:!0,hideScrollbars:!0,activationDistance:10,vertical:!0,horizontal:!0,stopPropagation:!1,style:{},component:"div",buttons:[0]},t}(Dw.PureComponent),gve=Zct;var j2=()=>typeof window<"u";var Uct=({children:e,indicators:t=!0,leftControl:n,rightControl:r,slide:i=!0,slideInterval:o,className:s,theme:a={},...l})=>{let u=Qe(Ye().theme.carousel,a),c=j2()&&navigator.userAgent.indexOf("IEMobile")!==-1,f=(0,Cl.useRef)(null),[d,h]=(0,Cl.useState)(0),[m,g]=(0,Cl.useState)(!1),b=(0,Cl.useMemo)(()=>Cl.Children.map(e,y=>(0,Cl.cloneElement)(y,{className:(0,Rw.default)(u.item.base,y.props.className)})),[e,u.item.base]),v=(0,Cl.useCallback)(y=>()=>{!b||(y=(y+b.length)%b.length,f.current&&(f.current.scrollLeft=f.current.clientWidth*y),h(y))},[b]);(0,Cl.useEffect)(()=>{f.current&&!m&&f.current.scrollLeft!==0&&h(Math.round(f.current.scrollLeft/f.current.clientWidth))},[m]),(0,Cl.useEffect)(()=>{if(i){let y=setInterval(()=>!m&&v(d+1)(),o??3e3);return()=>clearInterval(y)}},[d,m,v,i,o]);let x=y=>()=>g(y);return(0,js.jsxs)("div",{className:(0,Rw.default)(u.root.base,s),"data-testid":"carousel",...l,children:[(0,js.jsx)(gve,{className:(0,Rw.default)(u.scrollContainer.base,(c||!m)&&u.scrollContainer.snap),draggingClassName:"cursor-grab",innerRef:f,onEndScroll:x(!1),onStartScroll:x(!0),vertical:!1,children:b?.map((y,_)=>(0,js.jsx)("div",{className:u.item.wrapper,"data-active":d===_,"data-testid":"carousel-item",children:y},_))}),t&&(0,js.jsx)("div",{className:u.indicators.wrapper,children:b?.map((y,_)=>(0,js.jsx)("button",{className:(0,Rw.default)(u.indicators.base,u.indicators.active[_===d?"on":"off"]),onClick:v(_),"data-testid":"carousel-indicator","aria-label":`Slide ${_+1}`},_))}),b&&(0,js.jsxs)(js.Fragment,{children:[(0,js.jsx)("div",{className:u.root.leftControl,children:(0,js.jsx)("button",{className:"group","data-testid":"carousel-left-control",onClick:v(d-1),type:"button","aria-label":"Previous slide",children:n||(0,js.jsx)(Qct,{})})}),(0,js.jsx)("div",{className:u.root.rightControl,children:(0,js.jsx)("button",{className:"group","data-testid":"carousel-right-control",onClick:v(d+1),type:"button","aria-label":"Next slide",children:r||(0,js.jsx)(edt,{})})})]})]})},Qct=()=>{let e=Ye().theme.carousel;return(0,js.jsx)("span",{className:e.control.base,children:(0,js.jsx)(IE,{className:e.control.icon})})},edt=()=>{let e=Ye().theme.carousel;return(0,js.jsx)("span",{className:e.control.base,children:(0,js.jsx)(Nx,{className:e.control.icon})})};Uct.displayName="Carousel";var vve=ie(St()),yve=ie(Gt()),xve=ie(Pe());var tdt=(0,xve.forwardRef)(({className:e,theme:t={},...n},r)=>{let i=Qe(Ye().theme.checkbox,t);return(0,vve.jsx)("input",{ref:r,type:"checkbox",className:(0,yve.default)(i.root.base,e),...n})});tdt.displayName="Checkbox";var LE=ie(St()),bve=ie(Gt()),wve=ie(Pe());var ndt=ie(St()),jp=ie(Pe());var RE={accordion:{root:{base:"divide-y divide-gray-200 border-gray-200 dark:divide-gray-700 dark:border-gray-700",flush:{off:"rounded-lg border",on:"border-b"}},content:{base:"py-5 px-5 last:rounded-b-lg dark:bg-gray-900 first:rounded-t-lg"},title:{arrow:{base:"h-6 w-6 shrink-0",open:{off:"",on:"rotate-180"}},base:"flex w-full items-center justify-between first:rounded-t-lg last:rounded-b-lg py-5 px-5 text-left font-medium text-gray-500 dark:text-gray-400",flush:{off:"hover:bg-gray-100 focus:ring-4 focus:ring-gray-200 dark:hover:bg-gray-800 dark:focus:ring-gray-800",on:"!bg-transparent dark:!bg-transparent"},heading:"",open:{off:"",on:"text-gray-900 bg-gray-100 dark:bg-gray-800 dark:text-white"}}},alert:{base:"flex flex-col gap-2 p-4 text-sm",borderAccent:"border-t-4",closeButton:{base:"-mx-1.5 -my-1.5 ml-auto inline-flex h-8 w-8 rounded-lg p-1.5 focus:ring-2",icon:"w-5 h-5",color:{info:"bg-cyan-100 text-cyan-500 hover:bg-cyan-200 focus:ring-cyan-400 dark:bg-cyan-200 dark:text-cyan-600 dark:hover:bg-cyan-300",gray:"bg-gray-100 text-gray-500 hover:bg-gray-200 focus:ring-gray-400 dark:bg-gray-700 dark:text-gray-300 dark:hover:bg-gray-800 dark:hover:text-white",failure:"bg-red-100 text-red-500 hover:bg-red-200 focus:ring-red-400 dark:bg-red-200 dark:text-red-600 dark:hover:bg-red-300",success:"bg-green-100 text-green-500 hover:bg-green-200 focus:ring-green-400 dark:bg-green-200 dark:text-green-600 dark:hover:bg-green-300",warning:"bg-yellow-100 text-yellow-500 hover:bg-yellow-200 focus:ring-yellow-400 dark:bg-yellow-200 dark:text-yellow-600 dark:hover:bg-yellow-300",red:"bg-red-100 text-red-500 hover:bg-red-200 focus:ring-red-400 dark:bg-red-200 dark:text-red-600 dark:hover:bg-red-300",green:"bg-green-100 text-green-500 hover:bg-green-200 focus:ring-green-400 dark:bg-green-200 dark:text-green-600 dark:hover:bg-green-300",yellow:"bg-yellow-100 text-yellow-500 hover:bg-yellow-200 focus:ring-yellow-400 dark:bg-yellow-200 dark:text-yellow-600 dark:hover:bg-yellow-300",blue:"bg-cyan-100 text-cyan-500 hover:bg-cyan-200 focus:ring-cyan-400 dark:bg-cyan-200 dark:text-cyan-600 dark:hover:bg-cyan-300",cyan:"bg-cyan-100 text-cyan-500 hover:bg-cyan-200 focus:ring-cyan-400 dark:bg-cyan-200 dark:text-cyan-600 dark:hover:bg-cyan-300",pink:"bg-pink-100 text-pink-500 hover:bg-pink-200 focus:ring-pink-400 dark:bg-pink-200 dark:text-pink-600 dark:hover:bg-pink-300",lime:"bg-lime-100 text-lime-500 hover:bg-lime-200 focus:ring-lime-400 dark:bg-lime-200 dark:text-lime-600 dark:hover:bg-lime-300",dark:"bg-gray-100 text-gray-500 hover:bg-gray-200 focus:ring-gray-400 dark:bg-gray-200 dark:text-gray-600 dark:hover:bg-gray-300",indigo:"bg-indigo-100 text-indigo-500 hover:bg-indigo-200 focus:ring-indigo-400 dark:bg-indigo-200 dark:text-indigo-600 dark:hover:bg-indigo-300",purple:"bg-purple-100 text-purple-500 hover:bg-purple-200 focus:ring-purple-400 dark:bg-purple-200 dark:text-purple-600 dark:hover:bg-purple-300",teal:"bg-teal-100 text-teal-500 hover:bg-teal-200 focus:ring-teal-400 dark:bg-teal-200 dark:text-teal-600 dark:hover:bg-teal-300",light:"bg-gray-50 text-gray-500 hover:bg-gray-100 focus:ring-gray-200 dark:bg-gray-600 dark:text-gray-200 dark:hover:bg-gray-700 dark:hover:text-white"}},color:{info:"text-cyan-700 bg-cyan-100 border-cyan-500 dark:bg-cyan-200 dark:text-cyan-800",gray:"text-gray-700 bg-gray-100 border-gray-500 dark:bg-gray-700 dark:text-gray-300",failure:"text-red-700 bg-red-100 border-red-500 dark:bg-red-200 dark:text-red-800",success:"text-green-700 bg-green-100 border-green-500 dark:bg-green-200 dark:text-green-800",warning:"text-yellow-700 bg-yellow-100 border-yellow-500 dark:bg-yellow-200 dark:text-yellow-800",red:"text-red-700 bg-red-100 border-red-500 dark:bg-red-200 dark:text-red-800",green:"text-green-700 bg-green-100 border-green-500 dark:bg-green-200 dark:text-green-800",yellow:"text-yellow-700 bg-yellow-100 border-yellow-500 dark:bg-yellow-200 dark:text-yellow-800",blue:"text-cyan-700 bg-cyan-100 border-cyan-500 dark:bg-cyan-200 dark:text-cyan-800",cyan:"text-cyan-700 bg-cyan-100 border-cyan-500 dark:bg-cyan-200 dark:text-cyan-800",pink:"text-pink-700 bg-pink-100 border-pink-500 dark:bg-pink-200 dark:text-pink-800",lime:"text-lime-700 bg-lime-100 border-lime-500 dark:bg-lime-200 dark:text-lime-800",dark:"text-gray-200 bg-gray-800 border-gray-600 dark:bg-gray-900 dark:text-gray-300",indigo:"text-indigo-700 bg-indigo-100 border-indigo-500 dark:bg-indigo-200 dark:text-indigo-800",purple:"text-purple-700 bg-purple-100 border-purple-500 dark:bg-purple-200 dark:text-purple-800",teal:"text-teal-700 bg-teal-100 border-teal-500 dark:bg-teal-200 dark:text-teal-800",light:"text-gray-600 bg-gray-50 border-gray-400 dark:bg-gray-500 dark:text-gray-200"},icon:"mr-3 inline h-5 w-5 flex-shrink-0",rounded:"rounded-lg",wrapper:"flex items-center"},avatar:{root:{base:"flex justify-center items-center space-x-4",bordered:"p-1 ring-2",rounded:"!rounded-full",color:{dark:"ring-gray-800 dark:ring-gray-800",failure:"ring-red-500 dark:ring-red-700",gray:"ring-gray-500 dark:ring-gray-400",info:"ring-cyan-400 dark:ring-cyan-800",light:"ring-gray-300 dark:ring-gray-500",purple:"ring-purple-500 dark:ring-purple-600",success:"ring-green-500 dark:ring-green-500",warning:"ring-yellow-300 dark:ring-yellow-500",pink:"ring-pink-500 dark:ring-pink-500"},img:{off:"rounded relative overflow-hidden bg-gray-100 dark:bg-gray-600",on:"rounded",placeholder:"absolute w-auto h-auto text-gray-400 -bottom-1"},size:{xs:"w-6 h-6",sm:"w-8 h-8",md:"w-10 h-10",lg:"w-20 h-20",xl:"w-36 h-36"},stacked:"ring-2 ring-gray-300 dark:ring-gray-500",statusPosition:{"bottom-left":"-bottom-1 -left-1","bottom-center":"-bottom-1 center","bottom-right":"-bottom-1 -right-1","top-left":"-top-1 -left-1","top-center":"-top-1 center","top-right":"-top-1 -right-1","center-right":"center -right-1",center:"center center","center-left":"center -left-1"},status:{away:"bg-yellow-400",base:"absolute h-3.5 w-3.5 rounded-full border-2 border-white dark:border-gray-800",busy:"bg-red-400",offline:"bg-gray-400",online:"bg-green-400"},initials:{text:"font-medium text-gray-600 dark:text-gray-300",base:"inline-flex overflow-hidden relative justify-center items-center bg-gray-100 dark:bg-gray-600"}},group:{base:"flex -space-x-4"},groupCounter:{base:"relative flex items-center justify-center w-10 h-10 text-xs font-medium text-white bg-gray-700 rounded-full ring-2 ring-gray-300 hover:bg-gray-600 dark:ring-gray-500"}},badge:{root:{base:"flex h-fit items-center gap-1 font-semibold",color:{info:"bg-cyan-100 text-cyan-800 dark:bg-cyan-200 dark:text-cyan-800 group-hover:bg-cyan-200 dark:group-hover:bg-cyan-300",gray:"bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-gray-300 group-hover:bg-gray-200 dark:group-hover:bg-gray-600",failure:"bg-red-100 text-red-800 dark:bg-red-200 dark:text-red-900 group-hover:bg-red-200 dark:group-hover:bg-red-300",success:"bg-green-100 text-green-800 dark:bg-green-200 dark:text-green-900 group-hover:bg-green-200 dark:group-hover:bg-green-300",warning:"bg-yellow-100 text-yellow-800 dark:bg-yellow-200 dark:text-yellow-900 group-hover:bg-yellow-200 dark:group-hover:bg-yellow-300",indigo:"bg-indigo-100 text-indigo-800 dark:bg-indigo-200 dark:text-indigo-900 group-hover:bg-indigo-200 dark:group-hover:bg-indigo-300",purple:"bg-purple-100 text-purple-800 dark:bg-purple-200 dark:text-purple-900 group-hover:bg-purple-200 dark:group-hover:bg-purple-300",pink:"bg-pink-100 text-pink-800 dark:bg-pink-200 dark:text-pink-900 group-hover:bg-pink-200 dark:group-hover:bg-pink-300",blue:"bg-cyan-100 text-cyan-800 dark:bg-cyan-200 dark:text-cyan-900 group-hover:bg-cyan-200 dark:group-hover:bg-cyan-300",cyan:"bg-cyan-100 text-cyan-800 dark:bg-cyan-200 dark:text-cyan-900 group-hover:bg-cyan-200 dark:group-hover:bg-cyan-300",dark:"bg-gray-600 text-gray-100 dark:bg-gray-900 dark:text-gray-200 group-hover:bg-gray-500 dark:group-hover:bg-gray-700",light:"bg-gray-200 text-gray-800 dark:bg-gray-400 dark:text-gray-900 group-hover:bg-gray-300 dark:group-hover:bg-gray-500",green:"bg-green-100 text-green-800 dark:bg-green-200 dark:text-green-900 group-hover:bg-green-200 dark:group-hover:bg-green-300",lime:"bg-lime-100 text-lime-800 dark:bg-lime-200 dark:text-lime-900 group-hover:bg-lime-200 dark:group-hover:bg-lime-300",red:"bg-red-100 text-red-800 dark:bg-red-200 dark:text-red-900 group-hover:bg-red-200 dark:group-hover:bg-red-300",teal:"bg-teal-100 text-teal-800 dark:bg-teal-200 dark:text-teal-900 group-hover:bg-teal-200 dark:group-hover:bg-teal-300",yellow:"bg-yellow-100 text-yellow-800 dark:bg-yellow-200 dark:text-yellow-900 group-hover:bg-yellow-200 dark:group-hover:bg-yellow-300"},href:"group",size:{xs:"p-1 text-xs",sm:"p-1.5 text-sm"}},icon:{off:"rounded px-2 py-0.5",on:"rounded-full p-1.5",size:{xs:"w-3 h-3",sm:"w-3.5 h-3.5"}}},breadcrumb:{root:{base:"",list:"flex items-center"},item:{base:"group flex items-center",chevron:"mx-1 h-6 w-6 text-gray-400 group-first:hidden md:mx-2",href:{off:"flex items-center text-sm font-medium text-gray-500 dark:text-gray-400",on:"flex items-center text-sm font-medium text-gray-700 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white"},icon:"mr-2 h-4 w-4"}},button:{base:"group flex h-min items-center justify-center p-0.5 text-center font-medium focus:z-10",fullSized:"w-full",color:{dark:"text-white bg-gray-800 border border-transparent hover:bg-gray-900 focus:ring-4 focus:ring-gray-300 disabled:hover:bg-gray-800 dark:bg-gray-800 dark:hover:bg-gray-700 dark:focus:ring-gray-800 dark:border-gray-700 dark:disabled:hover:bg-gray-800",failure:"text-white bg-red-700 border border-transparent hover:bg-red-800 focus:ring-4 focus:ring-red-300 disabled:hover:bg-red-800 dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900 dark:disabled:hover:bg-red-600",gray:"text-gray-900 bg-white border border-gray-200 hover:bg-gray-100 hover:text-cyan-700 disabled:hover:bg-white focus:ring-cyan-700 focus:text-cyan-700 dark:bg-transparent dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700 focus:ring-2 dark:disabled:hover:bg-gray-800",info:"text-white bg-cyan-700 border border-transparent hover:bg-cyan-800 focus:ring-4 focus:ring-cyan-300 disabled:hover:bg-cyan-700 dark:bg-cyan-600 dark:hover:bg-cyan-700 dark:focus:ring-cyan-800 dark:disabled:hover:bg-cyan-600",light:"text-gray-900 bg-white border border-gray-300 hover:bg-gray-100 focus:ring-4 focus:ring-cyan-300 disabled:hover:bg-white dark:bg-gray-600 dark:text-white dark:border-gray-600 dark:hover:bg-gray-700 dark:hover:border-gray-700 dark:focus:ring-gray-700",purple:"text-white bg-purple-700 border border-transparent hover:bg-purple-800 focus:ring-4 focus:ring-purple-300 disabled:hover:bg-purple-700 dark:bg-purple-600 dark:hover:bg-purple-700 dark:focus:ring-purple-900 dark:disabled:hover:bg-purple-600",success:"text-white bg-green-700 border border-transparent hover:bg-green-800 focus:ring-4 focus:ring-green-300 disabled:hover:bg-green-700 dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-green-800 dark:disabled:hover:bg-green-600",warning:"text-white bg-yellow-400 border border-transparent hover:bg-yellow-500 focus:ring-4 focus:ring-yellow-300 disabled:hover:bg-yellow-400 dark:focus:ring-yellow-900 dark:disabled:hover:bg-yellow-400",blue:"text-cyan-900 bg-white border border-cyan-300 hover:bg-cyan-100 focus:ring-4 focus:ring-cyan-300 disabled:hover:bg-white dark:bg-cyan-600 dark:text-white dark:border-cyan-600 dark:hover:bg-cyan-700 dark:hover:border-cyan-700 dark:focus:ring-cyan-700",cyan:"text-cyan-900 bg-white border border-cyan-300 hover:bg-cyan-100 focus:ring-4 focus:ring-cyan-300 disabled:hover:bg-white dark:bg-cyan-600 dark:text-white dark:border-cyan-600 dark:hover:bg-cyan-700 dark:hover:border-cyan-700 dark:focus:ring-cyan-700",green:"text-green-900 bg-white border border-green-300 hover:bg-green-100 focus:ring-4 focus:ring-green-300 disabled:hover:bg-white dark:bg-green-600 dark:text-white dark:border-green-600 dark:hover:bg-green-700 dark:hover:border-green-700 dark:focus:ring-green-700",indigo:"text-indigo-900 bg-white border border-indigo-300 hover:bg-indigo-100 focus:ring-4 focus:ring-indigo-300 disabled:hover:bg-white dark:bg-indigo-600 dark:text-white dark:border-indigo-600 dark:hover:bg-indigo-700 dark:hover:border-indigo-700 dark:focus:ring-indigo-700",lime:"text-lime-900 bg-white border border-lime-300 hover:bg-lime-100 focus:ring-4 focus:ring-lime-300 disabled:hover:bg-white dark:bg-lime-600 dark:text-white dark:border-lime-600 dark:hover:bg-lime-700 dark:hover:border-lime-700 dark:focus:ring-lime-700",pink:"text-pink-900 bg-white border border-pink-300 hover:bg-pink-100 focus:ring-4 focus:ring-pink-300 disabled:hover:bg-white dark:bg-pink-600 dark:text-white dark:border-pink-600 dark:hover:bg-pink-700 dark:hover:border-pink-700 dark:focus:ring-pink-700",red:"text-red-900 bg-white border border-red-300 hover:bg-red-100 focus:ring-4 focus:ring-red-300 disabled:hover:bg-white dark:bg-red-600 dark:text-white dark:border-red-600 dark:hover:bg-red-700 dark:hover:border-red-700 dark:focus:ring-red-700",teal:"text-teal-900 bg-white border border-teal-300 hover:bg-teal-100 focus:ring-4 focus:ring-teal-300 disabled:hover:bg-white dark:bg-teal-600 dark:text-white dark:border-teal-600 dark:hover:bg-teal-700 dark:hover:border-teal-700 dark:focus:ring-teal-700",yellow:"text-yellow-900 bg-white border border-yellow-300 hover:bg-yellow-100 focus:ring-4 focus:ring-yellow-300 disabled:hover:bg-white dark:bg-yellow-600 dark:text-white dark:border-yellow-600 dark:hover:bg-yellow-700 dark:hover:border-yellow-700 dark:focus:ring-yellow-700"},disabled:"cursor-not-allowed opacity-50",isProcessing:"!cursor-wait",spinnerSlot:"mr-3",gradient:{cyan:"text-white bg-gradient-to-r from-cyan-400 via-cyan-500 to-cyan-600 hover:bg-gradient-to-br focus:ring-4 focus:ring-cyan-300 dark:focus:ring-cyan-800",failure:"text-white bg-gradient-to-r from-red-400 via-red-500 to-red-600 hover:bg-gradient-to-br focus:ring-4 focus:ring-red-300 dark:focus:ring-red-800",info:"text-white bg-gradient-to-r from-cyan-500 via-cyan-600 to-cyan-700 hover:bg-gradient-to-br focus:ring-4 focus:ring-cyan-300 dark:focus:ring-cyan-800 ",lime:"text-gray-900 bg-gradient-to-r from-lime-200 via-lime-400 to-lime-500 hover:bg-gradient-to-br focus:ring-4 focus:ring-lime-300 dark:focus:ring-lime-800",pink:"text-white bg-gradient-to-r from-pink-400 via-pink-500 to-pink-600 hover:bg-gradient-to-br focus:ring-4 focus:ring-pink-300 dark:focus:ring-pink-800",purple:"text-white bg-gradient-to-r from-purple-500 via-purple-600 to-purple-700 hover:bg-gradient-to-br focus:ring-4 focus:ring-purple-300 dark:focus:ring-purple-800",success:"text-white bg-gradient-to-r from-green-400 via-green-500 to-green-600 hover:bg-gradient-to-br focus:ring-4 focus:ring-green-300 dark:focus:ring-green-800",teal:"text-white bg-gradient-to-r from-teal-400 via-teal-500 to-teal-600 hover:bg-gradient-to-br focus:ring-4 focus:ring-teal-300 dark:focus:ring-teal-800"},gradientDuoTone:{cyanToBlue:"text-white bg-gradient-to-r from-cyan-500 to-cyan-500 hover:bg-gradient-to-bl focus:ring-4 focus:ring-cyan-300 dark:focus:ring-cyan-800",greenToBlue:"text-white bg-gradient-to-br from-green-400 to-cyan-600 hover:bg-gradient-to-bl focus:ring-4 focus:ring-green-200 dark:focus:ring-green-800",pinkToOrange:"text-white bg-gradient-to-br from-pink-500 to-orange-400 hover:bg-gradient-to-bl focus:ring-4 focus:ring-pink-200 dark:focus:ring-pink-800",purpleToBlue:"text-white bg-gradient-to-br from-purple-600 to-cyan-500 hover:bg-gradient-to-bl focus:ring-4 focus:ring-cyan-300 dark:focus:ring-cyan-800",purpleToPink:"text-white bg-gradient-to-r from-purple-500 to-pink-500 hover:bg-gradient-to-l focus:ring-4 focus:ring-purple-200 dark:focus:ring-purple-800",redToYellow:"text-gray-900 bg-gradient-to-r from-red-200 via-red-300 to-yellow-200 hover:bg-gradient-to-bl focus:ring-4 focus:ring-red-100 dark:focus:ring-red-400",tealToLime:"text-gray-900 bg-gradient-to-r from-teal-200 to-lime-200 hover:bg-gradient-to-l hover:from-teal-200 hover:to-lime-200 hover:!text-gray-900 focus:ring-4 focus:ring-lime-200 dark:focus:ring-teal-700"},inner:{base:"flex items-center",position:{none:"",start:"rounded-r-none",middle:"!rounded-none",end:"rounded-l-none"},outline:"border border-transparent"},label:"ml-2 inline-flex h-4 w-4 items-center justify-center rounded-full bg-cyan-200 text-xs font-semibold text-cyan-800",outline:{color:{gray:"border border-gray-900 dark:border-white",default:"border-0",light:""},off:"",on:"flex justify-center bg-white text-gray-900 transition-all duration-75 ease-in group-hover:bg-opacity-0 group-hover:text-inherit dark:bg-gray-900 dark:text-white w-full",pill:{off:"rounded-md",on:"rounded-full"}},pill:{off:"rounded-lg",on:"rounded-full"},size:{xs:"text-xs px-2 py-1",sm:"text-sm px-3 py-1.5",md:"text-sm px-4 py-2",lg:"text-base px-5 py-2.5",xl:"text-base px-6 py-3"}},buttonGroup:{base:"inline-flex",position:{none:"focus:!ring-2",start:"rounded-r-none",middle:"!rounded-none border-l-0 pl-0",end:"rounded-l-none border-l-0 pl-0"}},card:{root:{base:"flex rounded-lg border border-gray-200 bg-white shadow-md dark:border-gray-700 dark:bg-gray-800",children:"flex h-full flex-col justify-center gap-4 p-6",horizontal:{off:"flex-col",on:"flex-col md:max-w-xl md:flex-row"},href:"hover:bg-gray-100 dark:hover:bg-gray-700"},img:{base:"",horizontal:{off:"rounded-t-lg",on:"h-96 w-full rounded-t-lg object-cover md:h-auto md:w-48 md:rounded-none md:rounded-l-lg"}}},carousel:{root:{base:"relative h-full w-full",leftControl:"absolute top-0 left-0 flex h-full items-center justify-center px-4 focus:outline-none",rightControl:"absolute top-0 right-0 flex h-full items-center justify-center px-4 focus:outline-none"},indicators:{active:{off:"bg-white/50 hover:bg-white dark:bg-gray-800/50 dark:hover:bg-gray-800",on:"bg-white dark:bg-gray-800"},base:"h-3 w-3 rounded-full",wrapper:"absolute bottom-5 left-1/2 flex -translate-x-1/2 space-x-3"},item:{base:"absolute top-1/2 left-1/2 block w-full -translate-x-1/2 -translate-y-1/2",wrapper:"w-full flex-shrink-0 transform cursor-grab snap-center"},control:{base:"inline-flex h-8 w-8 items-center justify-center rounded-full bg-white/30 group-hover:bg-white/50 group-focus:outline-none group-focus:ring-4 group-focus:ring-white dark:bg-gray-800/30 dark:group-hover:bg-gray-800/60 dark:group-focus:ring-gray-800/70 sm:h-10 sm:w-10",icon:"h-5 w-5 text-white dark:text-gray-800 sm:h-6 sm:w-6"},scrollContainer:{base:"flex h-full snap-mandatory overflow-y-hidden overflow-x-scroll scroll-smooth rounded-lg",snap:"snap-x"}},checkbox:{root:{base:"h-4 w-4 rounded border border-gray-300 bg-gray-100 focus:ring-2 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:ring-offset-gray-800 dark:focus:ring-cyan-600"}},darkThemeToggle:{root:{base:"rounded-lg p-2.5 text-sm text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-700",icon:"h-5 w-5"}},dropdown:{arrowIcon:"ml-2 h-4 w-4",content:"py-1",floating:{animation:"transition-opacity",arrow:{base:"absolute z-10 h-2 w-2 rotate-45",style:{dark:"bg-gray-900 dark:bg-gray-700",light:"bg-white",auto:"bg-white dark:bg-gray-700"},placement:"-4px"},base:"z-10 w-fit rounded divide-y divide-gray-100 shadow",content:"py-1 text-sm text-gray-700 dark:text-gray-200",divider:"my-1 h-px bg-gray-100 dark:bg-gray-600",header:"block py-2 px-4 text-sm text-gray-700 dark:text-gray-200",hidden:"invisible opacity-0",item:{base:"flex items-center justify-start py-2 px-4 text-sm text-gray-700 cursor-pointer hover:bg-gray-100 dark:text-gray-200 dark:hover:bg-gray-600 dark:hover:text-white",icon:"mr-2 h-4 w-4"},style:{dark:"bg-gray-900 text-white dark:bg-gray-700",light:"border border-gray-200 bg-white text-gray-900",auto:"border border-gray-200 bg-white text-gray-900 dark:border-none dark:bg-gray-700 dark:text-white"},target:"w-fit"},inlineWrapper:"flex items-center"},fileInput:{root:{base:"flex"},field:{base:"relative w-full",input:{base:"rounded-lg overflow-hidden block w-full border disabled:cursor-not-allowed disabled:opacity-50",sizes:{sm:"sm:text-xs",md:"text-sm",lg:"sm:text-md"},colors:{gray:"bg-gray-50 border-gray-300 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"}}}},footer:{root:{base:"w-full rounded-lg bg-white shadow dark:bg-gray-800 md:flex md:items-center md:justify-between",container:"w-full p-6",bgDark:"bg-gray-800"},groupLink:{base:"flex flex-wrap text-sm text-gray-500 dark:text-white",link:{base:"last:mr-0 md:mr-6",href:"hover:underline"},col:"flex-col space-y-4"},icon:{base:"text-gray-500 dark:hover:text-white",size:"h-5 w-5"},title:{base:"mb-6 text-sm font-semibold uppercase text-gray-500 dark:text-white"},divider:{base:"w-full my-6 border-gray-200 sm:mx-auto dark:border-gray-700 lg:my-8"},copyright:{base:"text-sm text-gray-500 dark:text-gray-400 sm:text-center",href:"ml-1 hover:underline",span:"ml-1"},brand:{base:"mb-4 flex items-center sm:mb-0",img:"mr-3 h-8",span:"self-center whitespace-nowrap text-2xl font-semibold text-gray-800 dark:text-white"}},helperText:{root:{base:"mt-2 text-sm",colors:{gray:"text-gray-500 dark:text-gray-400",info:"text-cyan-700 dark:text-cyan-800",success:"text-green-600 dark:text-green-500",failure:"text-red-600 dark:text-red-500",warning:"text-yellow-500 dark:text-yellow-600"}}},label:{root:{base:"text-sm font-medium",disabled:"opacity-50",colors:{default:"text-gray-900 dark:text-gray-300",info:"text-cyan-500 dark:text-cyan-600",failure:"text-red-700 dark:text-red-500",warning:"text-yellow-500 dark:text-yellow-600",success:"text-green-700 dark:text-green-500"}}},listGroup:{root:{base:"list-none rounded-lg border border-gray-200 bg-white text-sm font-medium text-gray-900 dark:border-gray-600 dark:bg-gray-700 dark:text-white text-left"},item:{base:"[&>*]:first:rounded-t-lg [&>*]:last:rounded-b-lg [&>*]:last:border-b-0",link:{base:"flex w-full border-b border-gray-200 py-2 px-4 dark:border-gray-600",active:{off:"hover:bg-gray-100 hover:text-cyan-700 focus:text-cyan-700 focus:outline-none focus:ring-2 focus:ring-cyan-700 dark:border-gray-600 dark:hover:bg-gray-600 dark:hover:text-white dark:focus:text-white dark:focus:ring-gray-500",on:"bg-cyan-700 text-white dark:bg-gray-800"},href:{off:"",on:""},icon:"mr-2 h-4 w-4 fill-current"}}},modal:{root:{base:"fixed top-0 right-0 left-0 z-50 h-modal overflow-y-auto overflow-x-hidden md:inset-0 md:h-full",show:{on:"flex bg-gray-900 bg-opacity-50 dark:bg-opacity-80",off:"hidden"},sizes:{sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl","5xl":"max-w-5xl","6xl":"max-w-6xl","7xl":"max-w-7xl"},positions:{"top-left":"items-start justify-start","top-center":"items-start justify-center","top-right":"items-start justify-end","center-left":"items-center justify-start",center:"items-center justify-center","center-right":"items-center justify-end","bottom-right":"items-end justify-end","bottom-center":"items-end justify-center","bottom-left":"items-end justify-start"}},content:{base:"relative h-full w-full m-auto p-4 md:h-auto",inner:"relative rounded-lg bg-white shadow dark:bg-gray-700 flex flex-col max-h-[90vh]"},body:{base:"p-6 flex-1 overflow-auto",popup:"pt-0"},header:{base:"flex items-start justify-between rounded-t dark:border-gray-600 border-b p-5",popup:"!p-2 !border-b-0",title:"text-xl font-medium text-gray-900 dark:text-white",close:{base:"ml-auto inline-flex items-center rounded-lg bg-transparent p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white",icon:"h-5 w-5"}},footer:{base:"flex items-center space-x-2 rounded-b border-gray-200 p-6 dark:border-gray-600",popup:"border-t"}},navbar:{root:{base:"border-gray-200 border-y-2 bg-white px-2 py-2.5 dark:border-gray-700 dark:bg-gray-800 sm:px-4",rounded:{on:"rounded",off:""},bordered:{on:"border",off:""},inner:{base:"mx-auto flex flex-wrap items-center justify-between",fluid:{on:"",off:"container"}}},brand:{base:"flex items-center"},collapse:{base:"w-full md:block md:w-auto",list:"mt-4 flex flex-col md:mt-0 md:flex-row md:space-x-8 md:text-sm md:font-medium",hidden:{on:"hidden",off:""}},link:{base:"block py-2 pr-4 pl-3 md:p-0",active:{on:"bg-cyan-700 text-white dark:text-white md:bg-transparent md:text-cyan-700",off:"border-b border-gray-100  text-gray-700 hover:bg-gray-50 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white md:border-0 md:hover:bg-transparent md:hover:text-cyan-700 md:dark:hover:bg-transparent md:dark:hover:text-white"},disabled:{on:"text-gray-400 hover:cursor-not-allowed dark:text-gray-600",off:""}},toggle:{base:"inline-flex items-center rounded-lg p-2 text-sm text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600 md:hidden",icon:"h-6 w-6 shrink-0"}},pagination:{base:"",layout:{table:{base:"text-sm text-gray-700 dark:text-gray-400",span:"font-semibold text-gray-900 dark:text-white"}},pages:{base:"xs:mt-0 mt-2 inline-flex items-center -space-x-px",showIcon:"inline-flex",previous:{base:"ml-0 rounded-l-lg border border-gray-300 bg-white py-2 px-3 leading-tight text-gray-500 hover:bg-gray-100 hover:text-gray-700 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white",icon:"h-5 w-5"},next:{base:"rounded-r-lg border border-gray-300 bg-white py-2 px-3 leading-tight text-gray-500 hover:bg-gray-100 hover:text-gray-700 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white",icon:"h-5 w-5"},selector:{base:"w-12 border border-gray-300 bg-white py-2 leading-tight text-gray-500 hover:bg-gray-100 hover:text-gray-700 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white",active:"!bg-cyan-50 text-cyan-600 hover:bg-cyan-100 hover:text-cyan-700 dark:border-gray-700 dark:!bg-gray-700 dark:text-white",disabled:"opacity-50 cursor-normal"}}},progress:{base:"w-full overflow-hidden rounded-full bg-gray-200 dark:bg-gray-700",label:"mb-1 flex justify-between font-medium dark:text-white",bar:"rounded-full text-center font-medium leading-none text-cyan-300 dark:text-cyan-100 space-x-2",color:{dark:"bg-gray-600 dark:bg-gray-300",blue:"bg-cyan-600",red:"bg-red-600 dark:bg-red-500",green:"bg-green-600 dark:bg-green-500",yellow:"bg-yellow-400",indigo:"bg-indigo-600 dark:bg-indigo-500",purple:"bg-purple-600 dark:bg-purple-500"},size:{sm:"h-1.5",md:"h-2.5",lg:"h-4",xl:"h-6"}},radio:{root:{base:"h-4 w-4 border border-gray-300 focus:ring-2 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:focus:bg-cyan-600 dark:focus:ring-cyan-600"}},rangeSlider:{root:{base:"flex"},field:{base:"relative w-full",input:{base:"w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700",sizes:{sm:"h-1 range-sm",md:"h-2",lg:"h-3 range-lg"}}}},rating:{root:{base:"flex items-center"},advanced:{base:"flex items-center",label:"text-sm font-medium text-cyan-600 dark:text-cyan-500",progress:{base:"mx-4 h-5 w-2/4 rounded bg-gray-200 dark:bg-gray-700",fill:"h-5 rounded bg-yellow-400",label:"text-sm font-medium text-cyan-600 dark:text-cyan-500"}},star:{empty:"text-gray-300 dark:text-gray-500",filled:"text-yellow-400",sizes:{sm:"w-5 h-5",md:"w-7 h-7",lg:"w-10 h-10"}}},select:{base:"flex",addon:"inline-flex items-center rounded-l-md border border-r-0 border-gray-300 bg-gray-200 px-3 text-sm text-gray-900 dark:border-gray-600 dark:bg-gray-600 dark:text-gray-400",field:{base:"relative w-full",icon:{base:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",svg:"h-5 w-5 text-gray-500 dark:text-gray-400"},select:{base:"block w-full border disabled:cursor-not-allowed disabled:opacity-50",withIcon:{on:"pl-10",off:""},withAddon:{on:"rounded-r-lg",off:"rounded-lg"},withShadow:{on:"shadow-sm dark:shadow-sm-light",off:""},sizes:{sm:"p-2 sm:text-xs",md:"p-2.5 text-sm",lg:"sm:text-md p-4"},colors:{gray:"bg-gray-50 border-gray-300 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"}}}},textInput:{base:"flex",addon:"inline-flex items-center rounded-l-md border border-r-0 border-gray-300 bg-gray-200 px-3 text-sm text-gray-900 dark:border-gray-600 dark:bg-gray-600 dark:text-gray-400",field:{base:"relative w-full",icon:{base:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",svg:"h-5 w-5 text-gray-500 dark:text-gray-400"},rightIcon:{base:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",svg:"h-5 w-5 text-gray-500 dark:text-gray-400"},input:{base:"block w-full border disabled:cursor-not-allowed disabled:opacity-50",sizes:{sm:"p-2 sm:text-xs",md:"p-2.5 text-sm",lg:"sm:text-md p-4"},colors:{gray:"bg-gray-50 border-gray-300 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"},withRightIcon:{on:"pr-10",off:""},withIcon:{on:"pl-10",off:""},withAddon:{on:"rounded-r-lg",off:"rounded-lg"},withShadow:{on:"shadow-sm dark:shadow-sm-light",off:""}}}},textarea:{base:"block w-full rounded-lg border disabled:cursor-not-allowed disabled:opacity-50",colors:{gray:"bg-gray-50 border-gray-300 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"},withShadow:{on:"shadow-sm dark:shadow-sm-light",off:""}},toggleSwitch:{root:{base:"group relative flex items-center rounded-lg focus:outline-none",active:{on:"cursor-pointer",off:"cursor-not-allowed opacity-50"},label:"ml-3 text-sm font-medium text-gray-900 dark:text-gray-300"},toggle:{base:"toggle-bg h-6 w-11 rounded-full border group-focus:ring-4 group-focus:ring-cyan-500/25",checked:{on:"after:translate-x-full after:border-white",off:"border-gray-200 bg-gray-200 dark:border-gray-600 dark:bg-gray-700",color:{blue:" bg-cyan-700 border-cyan-700",dark:"bg-dark-700 border-dark-900",failure:"bg-red-700 border-red-900",gray:"bg-gray-500 border-gray-600",green:"bg-green-600 border-green-700",light:"bg-light-700 border-light-900",red:"bg-red-700 border-red-900",purple:"bg-purple-700 border-purple-900",success:"bg-green-500 border-green-500",yellow:"bg-yellow-400 border-yellow-400",warning:"bg-yellow-600 border-yellow-600",cyan:"bg-cyan-500 border-cyan-500",lime:"bg-lime-400 border-lime-400",indigo:"bg-indigo-400 border-indigo-400",teal:"bg-gradient-to-r from-teal-400 via-teal-500 to-teal-600 hover:bg-gradient-to-br focus:ring-4",info:"bg-cyan-600 border-cyan-600",pink:"bg-pink-600 border-pink-600"}}}},sidebar:{root:{base:"h-full",collapsed:{on:"w-16",off:"w-64"},inner:"h-full overflow-y-auto overflow-x-hidden rounded bg-white py-4 px-3 dark:bg-gray-800"},collapse:{button:"group flex w-full items-center rounded-lg p-2 text-base font-normal text-gray-900 transition duration-75 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700",icon:{base:"h-6 w-6 text-gray-500 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white",open:{off:"",on:"text-gray-900"}},label:{base:"ml-3 flex-1 whitespace-nowrap text-left",icon:"h-6 w-6"},list:"space-y-2 py-2"},cta:{base:"mt-6 rounded-lg p-4",color:{blue:"bg-cyan-50 dark:bg-cyan-900",dark:"bg-dark-50 dark:bg-dark-900",failure:"bg-red-50 dark:bg-red-900",gray:"bg-alternative-50 dark:bg-alternative-900",green:"bg-green-50 dark:bg-green-900",light:"bg-light-50 dark:bg-light-900",red:"bg-red-50 dark:bg-red-900",purple:"bg-purple-50 dark:bg-purple-900",success:"bg-green-50 dark:bg-green-900",yellow:"bg-yellow-50 dark:bg-yellow-900",warning:"bg-yellow-50 dark:bg-yellow-900"}},item:{base:"flex items-center justify-center rounded-lg p-2 text-base font-normal text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700",active:"bg-gray-100 dark:bg-gray-700",collapsed:{insideCollapse:"group w-full pl-8 transition duration-75",noIcon:"font-bold"},content:{base:"px-3 flex-1 whitespace-nowrap"},icon:{base:"h-6 w-6 flex-shrink-0 text-gray-500 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white",active:"text-gray-700 dark:text-gray-100"},label:""},items:"",itemGroup:"mt-4 space-y-2 border-t border-gray-200 pt-4 first:mt-0 first:border-t-0 first:pt-0 dark:border-gray-700",logo:{base:"mb-5 flex items-center pl-2.5",collapsed:{on:"hidden",off:"self-center whitespace-nowrap text-xl font-semibold dark:text-white"},img:"mr-3 h-6 sm:h-7"}},spinner:{base:"inline animate-spin text-gray-200",color:{failure:"fill-red-600",gray:"fill-gray-600",info:"fill-cyan-600",pink:"fill-pink-600",purple:"fill-purple-600",success:"fill-green-500",warning:"fill-yellow-400"},light:{off:{base:"dark:text-gray-600",color:{failure:"",gray:"dark:fill-gray-300",info:"",pink:"",purple:"",success:"",warning:""}},on:{base:"",color:{failure:"",gray:"",info:"",pink:"",purple:"",success:"",warning:""}}},size:{xs:"w-3 h-3",sm:"w-4 h-4",md:"w-6 h-6",lg:"w-8 h-8",xl:"w-10 h-10"}},tab:{base:"flex flex-col gap-2",tablist:{base:"flex text-center",styles:{default:"flex-wrap border-b border-gray-200 dark:border-gray-700",underline:"flex-wrap -mb-px border-b border-gray-200 dark:border-gray-700",pills:"flex-wrap font-medium text-sm text-gray-500 dark:text-gray-400",fullWidth:"hidden text-sm font-medium rounded-lg divide-x divide-gray-200 shadow sm:flex dark:divide-gray-700 dark:text-gray-400"},tabitem:{base:"flex items-center justify-center p-4 text-sm font-medium first:ml-0 disabled:cursor-not-allowed disabled:text-gray-400 disabled:dark:text-gray-500",styles:{default:{base:"rounded-t-lg",active:{on:"bg-gray-100 text-cyan-600 dark:bg-gray-800 dark:text-cyan-500",off:"text-gray-500 hover:bg-gray-50 hover:text-gray-600 dark:text-gray-400 dark:hover:bg-gray-800  dark:hover:text-gray-300"}},underline:{base:"rounded-t-lg",active:{on:"text-cyan-600 rounded-t-lg border-b-2 border-cyan-600 active dark:text-cyan-500 dark:border-cyan-500",off:"border-b-2 border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-600 dark:text-gray-400 dark:hover:text-gray-300"}},pills:{base:"",active:{on:"rounded-lg bg-cyan-600 text-white",off:"rounded-lg hover:text-gray-900 hover:bg-gray-100 dark:hover:bg-gray-800 dark:hover:text-white"}},fullWidth:{base:"ml-2 first:ml-0 w-full first:rounded-l-lg last:rounded-r-lg",active:{on:"inline-block p-4 w-full text-gray-900 bg-gray-100 focus:ring-4 focus:ring-cyan-300 active focus:outline-none dark:bg-gray-700 dark:text-white",off:"bg-white hover:text-gray-700 hover:bg-gray-50 focus:ring-4 focus:ring-cyan-300 focus:outline-none dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"}}},icon:"mr-2 h-5 w-5"}},tabpanel:"p-4"},table:{root:{base:"w-full text-left text-sm text-gray-500 dark:text-gray-400",shadow:"absolute bg-white dark:bg-black w-full h-full top-0 left-0 rounded-lg drop-shadow-md -z-10",wrapper:"relative"},body:{base:"group/body",cell:{base:"group-first/body:group-first/row:first:rounded-tl-lg group-first/body:group-first/row:last:rounded-tr-lg group-last/body:group-last/row:first:rounded-bl-lg group-last/body:group-last/row:last:rounded-br-lg px-6 py-4"}},head:{base:"group/head text-xs uppercase text-gray-700 dark:text-gray-400",cell:{base:"group-first/head:first:rounded-tl-lg group-first/head:last:rounded-tr-lg bg-gray-50 dark:bg-gray-700 px-6 py-3"}},row:{base:"group/row",hovered:"hover:bg-gray-50 dark:hover:bg-gray-600",striped:"odd:bg-white even:bg-gray-50 odd:dark:bg-gray-800 even:dark:bg-gray-700"}},timeline:{root:{direction:{horizontal:"items-base sm:flex",vertical:"relative border-l border-gray-200 dark:border-gray-700"}},item:{root:{horizontal:"relative mb-6 sm:mb-0",vertical:"mb-10 ml-6"},content:{root:{base:"mt-3 sm:pr-8"},body:"mb-4 text-base font-normal text-gray-500 dark:text-gray-400",time:"mb-1 text-sm font-normal leading-none text-gray-400 dark:text-gray-500",title:"text-lg font-semibold text-gray-900 dark:text-white"},point:{horizontal:"flex items-center",line:"hidden h-0.5 w-full bg-gray-200 dark:bg-gray-700 sm:flex",marker:{base:{horizontal:"absolute -left-1.5 h-3 w-3 rounded-full border border-white bg-gray-200 dark:border-gray-900 dark:bg-gray-700",vertical:"absolute -left-1.5 mt-1.5 h-3 w-3 rounded-full border border-white bg-gray-200 dark:border-gray-900 dark:bg-gray-700"},icon:{base:"h-3 w-3 text-cyan-600 dark:text-cyan-300",wrapper:"absolute -left-3 flex h-6 w-6 items-center justify-center rounded-full bg-cyan-200 ring-8 ring-white dark:bg-cyan-900 dark:ring-gray-900"}},vertical:""}}},toast:{root:{base:"flex w-full max-w-xs items-center rounded-lg bg-white p-4 text-gray-500 shadow dark:bg-gray-800 dark:text-gray-400",closed:"opacity-0 ease-out",removed:"hidden"},toggle:{base:"-mx-1.5 -my-1.5 ml-auto inline-flex h-8 w-8 rounded-lg bg-white p-1.5 text-gray-400 hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white",icon:"h-5 w-5 shrink-0"}},tooltip:{target:"w-fit",animation:"transition-opacity",arrow:{base:"absolute z-10 h-2 w-2 rotate-45",style:{dark:"bg-gray-900 dark:bg-gray-700",light:"bg-white",auto:"bg-white dark:bg-gray-700"},placement:"-4px"},base:"absolute inline-block z-10 rounded-lg py-2 px-3 text-sm font-medium shadow-sm",hidden:"invisible opacity-0",style:{dark:"bg-gray-900 text-white dark:bg-gray-700",light:"border border-gray-200 bg-white text-gray-900",auto:"border border-gray-200 bg-white text-gray-900 dark:border-none dark:bg-gray-700 dark:text-white"},content:"relative z-20"}};var Ix=(0,jp.createContext)({theme:RE});var Ye=()=>(0,jp.useContext)(Ix),rdt=()=>j2()&&window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light",_ve=()=>{let e=()=>{let s=i==="dark"?"light":"dark";t(s),o(s)},t=(0,jp.useCallback)(s=>{!j2()||(s==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"))},[]),{mode:n,toggleMode:r=e}=(0,jp.useContext)(Ix),[i,o]=(0,jp.useState)("light");return(0,jp.useEffect)(()=>{n?(t(n),o(n)):o(rdt())},[n,t,o]),[i,o,r]};var idt=({className:e,theme:t={},...n})=>{let r=Qe(Ye().theme.darkThemeToggle,t),{mode:i,toggleMode:o}=(0,wve.useContext)(Ix);return(0,LE.jsx)("button",{"aria-label":"Toggle dark mode","data-testid":"dark-theme-toggle",onClick:o,type:"button",className:(0,bve.default)(r.root.base,e),...n,children:i==="dark"?(0,LE.jsx)(Jge,{"aria-label":"Currently dark mode",className:r.root.icon}):(0,LE.jsx)(Lge,{"aria-label":"Currently light mode",className:r.root.icon})})};idt.displayName="DarkThemeToggle";var yg=ie(St()),Gs=ie(Pe());var N0=ie(St());function nh(e){return e.split("-")[1]}function $X(e){return e==="y"?"height":"width"}function B0(e){return e.split("-")[0]}function Vw(e){return["top","bottom"].includes(B0(e))?"x":"y"}function Pve(e,t,n){let{reference:r,floating:i}=e,o=r.x+r.width/2-i.width/2,s=r.y+r.height/2-i.height/2,a=Vw(t),l=$X(a),u=r[l]/2-i[l]/2,c=a==="x",f;switch(B0(t)){case"top":f={x:o,y:r.y-i.height};break;case"bottom":f={x:o,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:s};break;case"left":f={x:r.x-i.width,y:s};break;default:f={x:r.x,y:r.y}}switch(nh(t)){case"start":f[a]-=u*(n&&c?-1:1);break;case"end":f[a]+=u*(n&&c?-1:1)}return f}var Ave=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=Pve(u,r,l),d=r,h={},m=0;for(let g=0;g<a.length;g++){let{name:b,fn:v}=a[g],{x,y,data:_,reset:w}=await v({x:c,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});c=x??c,f=y??f,h={...h,[b]:{...h[b],..._}},w&&m<=50&&(m++,typeof w=="object"&&(w.placement&&(d=w.placement),w.rects&&(u=w.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:c,y:f}=Pve(u,d,l)),g=-1)}return{x:c,y:f,placement:d,strategy:i,middlewareData:h}};function Cve(e){return typeof e!="number"?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(e):{top:e,right:e,bottom:e,left:e}}function Lw(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function H2(e,t){var n;t===void 0&&(t={});let{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=t,m=Cve(h),g=a[d?f==="floating"?"reference":"floating":f],b=Lw(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(g)))==null||n?g:g.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),v=f==="floating"?{...s.floating,x:r,y:i}:s.reference,x=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),y=await(o.isElement==null?void 0:o.isElement(x))&&await(o.getScale==null?void 0:o.getScale(x))||{x:1,y:1},_=Lw(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:x,strategy:l}):v);return{top:(b.top-_.top+m.top)/y.y,bottom:(_.bottom-b.bottom+m.bottom)/y.y,left:(b.left-_.left+m.left)/y.x,right:(_.right-b.right+m.right)/y.x}}var odt=Math.min,sdt=Math.max;function qX(e,t,n){return sdt(e,odt(t,n))}var jE=e=>({name:"arrow",options:e,async fn(t){let{element:n,padding:r=0}=e||{},{x:i,y:o,placement:s,rects:a,platform:l,elements:u}=t;if(n==null)return{};let c=Cve(r),f={x:i,y:o},d=Vw(s),h=$X(d),m=await l.getDimensions(n),g=d==="y",b=g?"top":"left",v=g?"bottom":"right",x=g?"clientHeight":"clientWidth",y=a.reference[h]+a.reference[d]-f[d]-a.floating[h],_=f[d]-a.reference[d],w=await(l.getOffsetParent==null?void 0:l.getOffsetParent(n)),k=w?w[x]:0;k&&await(l.isElement==null?void 0:l.isElement(w))||(k=u.floating[x]||a.floating[h]);let O=y/2-_/2,M=c[b],I=k-m[h]-c[v],W=k/2-m[h]/2+O,J=qX(M,W,I),H=nh(s)!=null&&W!=J&&a.reference[h]/2-(W<M?c[b]:c[v])-m[h]/2<0;return{[d]:f[d]-(H?W<M?M-W:I-W:0),data:{[d]:J,centerOffset:W-J}}}}),adt=["top","right","bottom","left"],kve=adt.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),ldt={left:"right",right:"left",bottom:"top",top:"bottom"};function JE(e){return e.replace(/left|right|bottom|top/g,t=>ldt[t])}function Sve(e,t,n){n===void 0&&(n=!1);let r=nh(e),i=Vw(e),o=$X(i),s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=JE(s)),{main:s,cross:JE(s)}}var udt={start:"end",end:"start"};function VE(e){return e.replace(/start|end/g,t=>udt[t])}var Jw=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,i;let{rects:o,middlewareData:s,placement:a,platform:l,elements:u}=t,{crossAxis:c=!1,alignment:f,allowedPlacements:d=kve,autoAlignment:h=!0,...m}=e,g=f!==void 0||d===kve?function(W,J,H){return(W?[...H.filter(ee=>nh(ee)===W),...H.filter(ee=>nh(ee)!==W)]:H.filter(ee=>B0(ee)===ee)).filter(ee=>!W||nh(ee)===W||!!J&&VE(ee)!==ee)}(f||null,h,d):d,b=await H2(t,m),v=((n=s.autoPlacement)==null?void 0:n.index)||0,x=g[v];if(x==null)return{};let{main:y,cross:_}=Sve(x,o,await(l.isRTL==null?void 0:l.isRTL(u.floating)));if(a!==x)return{reset:{placement:g[0]}};let w=[b[B0(x)],b[y],b[_]],k=[...((r=s.autoPlacement)==null?void 0:r.overflows)||[],{placement:x,overflows:w}],O=g[v+1];if(O)return{data:{index:v+1,overflows:k},reset:{placement:O}};let M=k.map(W=>{let J=nh(W.placement);return[W.placement,J&&c?W.overflows.slice(0,2).reduce((H,ee)=>H+ee,0):W.overflows[0],W.overflows]}).sort((W,J)=>W[1]-J[1]),I=((i=M.filter(W=>W[2].slice(0,nh(W[0])?2:3).every(J=>J<=0))[0])==null?void 0:i[0])||M[0][0];return I!==a?{data:{index:v+1,overflows:k},reset:{placement:I}}:{}}}},jw=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:o,initialPlacement:s,platform:a,elements:l}=t,{mainAxis:u=!0,crossAxis:c=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=e,b=B0(r),v=B0(s)===s,x=await(a.isRTL==null?void 0:a.isRTL(l.floating)),y=f||(v||!m?[JE(s)]:function(J){let H=JE(J);return[VE(J),H,VE(H)]}(s));f||h==="none"||y.push(...function(J,H,ee,j){let V=nh(J),B=function(N,C,S){let G=["left","right"],T=["right","left"],Q=["top","bottom"],U=["bottom","top"];switch(N){case"top":case"bottom":return S?C?T:G:C?G:T;case"left":case"right":return C?Q:U;default:return[]}}(B0(J),ee==="start",j);return V&&(B=B.map(N=>N+"-"+V),H&&(B=B.concat(B.map(VE)))),B}(s,m,h,x));let _=[s,...y],w=await H2(t,g),k=[],O=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&k.push(w[b]),c){let{main:J,cross:H}=Sve(r,o,x);k.push(w[J],w[H])}if(O=[...O,{placement:r,overflows:k}],!k.every(J=>J<=0)){var M,I;let J=(((M=i.flip)==null?void 0:M.index)||0)+1,H=_[J];if(H)return{data:{index:J,overflows:O},reset:{placement:H}};let ee=(I=O.filter(j=>j.overflows[0]<=0).sort((j,V)=>j.overflows[1]-V.overflows[1])[0])==null?void 0:I.placement;if(!ee)switch(d){case"bestFit":{var W;let j=(W=O.map(V=>[V.placement,V.overflows.filter(B=>B>0).reduce((B,N)=>B+N,0)]).sort((V,B)=>V[1]-B[1])[0])==null?void 0:W[0];j&&(ee=j);break}case"initialPlacement":ee=s}if(r!==ee)return{reset:{placement:ee}}}return{}}}};var zx=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){let{x:n,y:r}=t,i=await async function(o,s){let{placement:a,platform:l,elements:u}=o,c=await(l.isRTL==null?void 0:l.isRTL(u.floating)),f=B0(a),d=nh(a),h=Vw(a)==="x",m=["left","top"].includes(f)?-1:1,g=c&&h?-1:1,b=typeof s=="function"?s(o):s,{mainAxis:v,crossAxis:x,alignmentAxis:y}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...b};return d&&typeof y=="number"&&(x=d==="end"?-1*y:y),h?{x:x*g,y:v*m}:{x:v*m,y:x*g}}(t,e);return{x:n+i.x,y:r+i.y,data:i}}}};function cdt(e){return e==="x"?"y":"x"}var Hw=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:b=>{let{x:v,y:x}=b;return{x:v,y:x}}},...l}=e,u={x:n,y:r},c=await H2(t,l),f=Vw(B0(i)),d=cdt(f),h=u[f],m=u[d];if(o){let b=f==="y"?"bottom":"right";h=qX(h+c[f==="y"?"top":"left"],h,h-c[b])}if(s){let b=d==="y"?"bottom":"right";m=qX(m+c[d==="y"?"top":"left"],m,m-c[b])}let g=a.fn({...t,[f]:h,[d]:m});return{...g,data:{x:g.x-n,y:g.y-r}}}}};function Ed(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Hp(e){return Ed(e).getComputedStyle(e)}function Dve(e){return e instanceof Ed(e).Node}function gg(e){return Dve(e)?(e.nodeName||"").toLowerCase():""}function Wp(e){return e instanceof Ed(e).HTMLElement}function Sc(e){return e instanceof Ed(e).Element}function Ove(e){return typeof ShadowRoot>"u"?!1:e instanceof Ed(e).ShadowRoot||e instanceof ShadowRoot}function Xw(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Hp(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function ddt(e){return["table","td","th"].includes(gg(e))}function KX(e){let t=YX(),n=Hp(e);return n.transform!=="none"||n.perspective!=="none"||!t&&!!n.backdropFilter&&n.backdropFilter!=="none"||!t&&!!n.filter&&n.filter!=="none"||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function YX(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function WE(e){return["html","body","#document"].includes(gg(e))}var Eve=Math.min,Ww=Math.max,HE=Math.round;function Rve(e){let t=Hp(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Wp(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=HE(n)!==o||HE(r)!==s;return a&&(n=o,r=s),{width:n,height:r,fallback:a}}function Lve(e){return Sc(e)?e:e.contextElement}var Vve={x:1,y:1};function Tx(e){let t=Lve(e);if(!Wp(t))return Vve;let n=t.getBoundingClientRect(),{width:r,height:i,fallback:o}=Rve(t),s=(o?HE(n.width):n.width)/r,a=(o?HE(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}var Mve={x:0,y:0};function Jve(e,t,n){var r,i;if(t===void 0&&(t=!0),!YX())return Mve;let o=e?Ed(e):window;return!n||t&&n!==o?Mve:{x:((r=o.visualViewport)==null?void 0:r.offsetLeft)||0,y:((i=o.visualViewport)==null?void 0:i.offsetTop)||0}}function W2(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),o=Lve(e),s=Vve;t&&(r?Sc(r)&&(s=Tx(r)):s=Tx(e));let a=Jve(o,n,r),l=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,c=i.width/s.x,f=i.height/s.y;if(o){let d=Ed(o),h=r&&Sc(r)?Ed(r):r,m=d.frameElement;for(;m&&r&&h!==d;){let g=Tx(m),b=m.getBoundingClientRect(),v=getComputedStyle(m);b.x+=(m.clientLeft+parseFloat(v.paddingLeft))*g.x,b.y+=(m.clientTop+parseFloat(v.paddingTop))*g.y,l*=g.x,u*=g.y,c*=g.x,f*=g.y,l+=b.x,u+=b.y,m=Ed(m).frameElement}}return Lw({width:c,height:f,x:l,y:u})}function hg(e){return((Dve(e)?e.ownerDocument:e.document)||window.document).documentElement}function XE(e){return Sc(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function jve(e){return W2(hg(e)).left+XE(e).scrollLeft}function Dx(e){if(gg(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Ove(e)&&e.host||hg(e);return Ove(t)?t.host:t}function Hve(e){let t=Dx(e);return WE(t)?t.ownerDocument.body:Wp(t)&&Xw(t)?t:Hve(t)}function mg(e,t){var n;t===void 0&&(t=[]);let r=Hve(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Ed(r);return i?t.concat(o,o.visualViewport||[],Xw(r)?r:[]):t.concat(r,mg(r))}function Bve(e,t,n){let r;if(t==="viewport")r=function(i,o){let s=Ed(i),a=hg(i),l=s.visualViewport,u=a.clientWidth,c=a.clientHeight,f=0,d=0;if(l){u=l.width,c=l.height;let h=YX();(!h||h&&o==="fixed")&&(f=l.offsetLeft,d=l.offsetTop)}return{width:u,height:c,x:f,y:d}}(e,n);else if(t==="document")r=function(i){let o=hg(i),s=XE(i),a=i.ownerDocument.body,l=Ww(o.scrollWidth,o.clientWidth,a.scrollWidth,a.clientWidth),u=Ww(o.scrollHeight,o.clientHeight,a.scrollHeight,a.clientHeight),c=-s.scrollLeft+jve(i),f=-s.scrollTop;return Hp(a).direction==="rtl"&&(c+=Ww(o.clientWidth,a.clientWidth)-l),{width:l,height:u,x:c,y:f}}(hg(e));else if(Sc(t))r=function(i,o){let s=W2(i,!0,o==="fixed"),a=s.top+i.clientTop,l=s.left+i.clientLeft,u=Wp(i)?Tx(i):{x:1,y:1};return{width:i.clientWidth*u.x,height:i.clientHeight*u.y,x:l*u.x,y:a*u.y}}(t,n);else{let i=Jve(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return Lw(r)}function Wve(e,t){let n=Dx(e);return!(n===t||!Sc(n)||WE(n))&&(Hp(n).position==="fixed"||Wve(n,t))}function Nve(e,t){return Wp(e)&&Hp(e).position!=="fixed"?t?t(e):e.offsetParent:null}function Gve(e,t){let n=Ed(e);if(!Wp(e))return n;let r=Nve(e,t);for(;r&&ddt(r)&&Hp(r).position==="static";)r=Nve(r,t);return r&&(gg(r)==="html"||gg(r)==="body"&&Hp(r).position==="static"&&!KX(r))?n:r||function(i){let o=Dx(i);for(;Wp(o)&&!WE(o);){if(KX(o))return o;o=Dx(o)}return null}(e)||n}function pdt(e,t,n){let r=Wp(t),i=hg(t),o=n==="fixed",s=W2(e,!0,o,t),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};if(r||!r&&!o)if((gg(t)!=="body"||Xw(i))&&(a=XE(t)),Wp(t)){let u=W2(t,!0,o,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else i&&(l.x=jve(i));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}var qE={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=n==="clippingAncestors"?function(u,c){let f=c.get(u);if(f)return f;let d=mg(u).filter(b=>Sc(b)&&gg(b)!=="body"),h=null,m=Hp(u).position==="fixed",g=m?Dx(u):u;for(;Sc(g)&&!WE(g);){let b=Hp(g),v=KX(g);v||b.position!=="fixed"||(h=null),(m?!v&&!h:!v&&b.position==="static"&&h&&["absolute","fixed"].includes(h.position)||Xw(g)&&!v&&Wve(u,g))?d=d.filter(x=>x!==g):h=b,g=Dx(g)}return c.set(u,d),d}(t,this._c):[].concat(n),s=[...o,r],a=s[0],l=s.reduce((u,c)=>{let f=Bve(t,c,i);return u.top=Ww(f.top,u.top),u.right=Eve(f.right,u.right),u.bottom=Eve(f.bottom,u.bottom),u.left=Ww(f.left,u.left),u},Bve(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=Wp(n),o=hg(n);if(n===o)return t;let s={scrollLeft:0,scrollTop:0},a={x:1,y:1},l={x:0,y:0};if((i||!i&&r!=="fixed")&&((gg(n)!=="body"||Xw(o))&&(s=XE(n)),Wp(n))){let u=W2(n);a=Tx(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+l.x,y:t.y*a.y-s.scrollTop*a.y+l.y}},isElement:Sc,getDimensions:function(e){return Rve(e)},getOffsetParent:Gve,getDocumentElement:hg,getScale:Tx,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e,i=this.getOffsetParent||Gve,o=this.getDimensions;return{reference:pdt(t,await i(n),r),floating:{x:0,y:0,...await o(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Hp(e).direction==="rtl"};function $E(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=!0,animationFrame:a=!1}=r,l=i||o?[...Sc(e)?mg(e):e.contextElement?mg(e.contextElement):[],...mg(t)]:[];l.forEach(d=>{let h=!Sc(d)&&d.toString().includes("V");!i||a&&!h||d.addEventListener("scroll",n,{passive:!0}),o&&d.addEventListener("resize",n)});let u,c=null;s&&(c=new ResizeObserver(()=>{n()}),Sc(e)&&!a&&c.observe(e),Sc(e)||!e.contextElement||a||c.observe(e.contextElement),c.observe(t));let f=a?W2(e):null;return a&&function d(){let h=W2(e);!f||h.x===f.x&&h.y===f.y&&h.width===f.width&&h.height===f.height||n(),f=h,u=requestAnimationFrame(d)}(),n(),()=>{var d;l.forEach(h=>{i&&h.removeEventListener("scroll",n),o&&h.removeEventListener("resize",n)}),(d=c)==null||d.disconnect(),c=null,a&&cancelAnimationFrame(u)}}var KE=(e,t,n)=>{let r=new Map,i={platform:qE,...n},o={...i.platform,_c:r};return Ave(e,t,{...i,platform:o})};var Hs=ie(Pe(),1),UE=ie(Pe(),1),$ve=ie(Yl(),1),ZX=e=>{let{element:t,padding:n}=e;function r(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:e,fn(i){return t&&r(t)?t.current!=null?jE({element:t.current,padding:n}).fn(i):{}:t?jE({element:t,padding:n}).fn(i):{}}}},YE=typeof document<"u"?UE.useLayoutEffect:UE.useEffect;function ZE(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(!ZE(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;){let o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!ZE(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Kve(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xve(e,t){let n=Kve(e);return Math.round(t*n)/n}function qve(e){let t=Hs.useRef(e);return YE(()=>{t.current=e}),t}function Yve(e){e===void 0&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,f]=Hs.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=Hs.useState(r);ZE(d,r)||h(r);let[m,g]=Hs.useState(null),[b,v]=Hs.useState(null),x=Hs.useCallback(B=>{B!=k.current&&(k.current=B,g(B))},[g]),y=Hs.useCallback(B=>{B!==O.current&&(O.current=B,v(B))},[v]),_=o||m,w=s||b,k=Hs.useRef(null),O=Hs.useRef(null),M=Hs.useRef(c),I=qve(l),W=qve(i),J=Hs.useCallback(()=>{if(!k.current||!O.current)return;let B={placement:t,strategy:n,middleware:d};W.current&&(B.platform=W.current),KE(k.current,O.current,B).then(N=>{let C={...N,isPositioned:!0};H.current&&!ZE(M.current,C)&&(M.current=C,$ve.flushSync(()=>{f(C)}))})},[d,t,n,W]);YE(()=>{u===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,f(B=>({...B,isPositioned:!1})))},[u]);let H=Hs.useRef(!1);YE(()=>(H.current=!0,()=>{H.current=!1}),[]),YE(()=>{if(_&&(k.current=_),w&&(O.current=w),_&&w){if(I.current)return I.current(_,w,J);J()}},[_,w,J,I]);let ee=Hs.useMemo(()=>({reference:k,floating:O,setReference:x,setFloating:y}),[x,y]),j=Hs.useMemo(()=>({reference:_,floating:w}),[_,w]),V=Hs.useMemo(()=>{let B={position:n,left:0,top:0};if(!j.floating)return B;let N=Xve(j.floating,c.x),C=Xve(j.floating,c.y);return a?{...B,transform:"translate("+N+"px, "+C+"px)",...Kve(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:C}},[n,a,j.floating,c.x,c.y]);return Hs.useMemo(()=>({...c,update:J,refs:ee,elements:j,floatingStyles:V}),[c,J,ee,j,V])}var cn=ie(Pe(),1),Lx=ie(Pe(),1);var r2e=ie(Yl(),1);var qw=typeof document<"u"?Lx.useLayoutEffect:Lx.useEffect,UX=!1,fdt=0,Zve=()=>"floating-ui-"+fdt++;function hdt(){let[e,t]=cn.useState(()=>UX?Zve():void 0);return qw(()=>{e==null&&t(Zve())},[]),cn.useEffect(()=>{UX||(UX=!0)},[]),e}var mdt=cn["useId".toString()],i2e=mdt||hdt;function gdt(){let e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}var vdt=cn.createContext(null),ydt=cn.createContext(null),xdt=()=>{var e;return((e=cn.useContext(vdt))==null?void 0:e.id)||null},o2e=()=>cn.useContext(ydt);function X2(e){return e?.ownerDocument||document}function tq(e){return X2(e).defaultView||window}function vg(e){return e?e instanceof tq(e).Element:!1}function nq(e){return e?e instanceof tq(e).HTMLElement:!1}function _dt(e){if(typeof ShadowRoot>"u")return!1;let t=tq(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function QE(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Rx(e,t){if(!e||!t)return!1;let n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&_dt(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Uve(e){let t=(0,Lx.useRef)(e);return qw(()=>{t.current=e}),t}var Qve="data-floating-ui-safe-polygon";function QX(e,t,n){return n&&!QE(n)?0:typeof e=="number"?e:e?.[t]}function s2e(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,dataRef:i,events:o,elements:{domReference:s,floating:a},refs:l}=e,{enabled:u=!0,delay:c=0,handleClose:f=null,mouseOnly:d=!1,restMs:h=0,move:m=!0}=t,g=o2e(),b=xdt(),v=Uve(f),x=Uve(c),y=cn.useRef(),_=cn.useRef(),w=cn.useRef(),k=cn.useRef(),O=cn.useRef(!0),M=cn.useRef(!1),I=cn.useRef(()=>{}),W=cn.useCallback(()=>{var j;let V=(j=i.current.openEvent)==null?void 0:j.type;return V?.includes("mouse")&&V!=="mousedown"},[i]);cn.useEffect(()=>{if(!u)return;function j(){clearTimeout(_.current),clearTimeout(k.current),O.current=!0}return o.on("dismiss",j),()=>{o.off("dismiss",j)}},[u,o]),cn.useEffect(()=>{if(!u||!v.current||!n)return;function j(){W()&&r(!1)}let V=X2(a).documentElement;return V.addEventListener("mouseleave",j),()=>{V.removeEventListener("mouseleave",j)}},[a,n,r,u,v,i,W]);let J=cn.useCallback(function(j){j===void 0&&(j=!0);let V=QX(x.current,"close",y.current);V&&!w.current?(clearTimeout(_.current),_.current=setTimeout(()=>r(!1),V)):j&&(clearTimeout(_.current),r(!1))},[x,r]),H=cn.useCallback(()=>{I.current(),w.current=void 0},[]),ee=cn.useCallback(()=>{if(M.current){let j=X2(l.floating.current).body;j.style.pointerEvents="",j.removeAttribute(Qve),M.current=!1}},[l]);return cn.useEffect(()=>{if(!u)return;function j(){return i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1}function V(C){if(clearTimeout(_.current),O.current=!1,d&&!QE(y.current)||h>0&&QX(x.current,"open")===0)return;i.current.openEvent=C;let S=QX(x.current,"open",y.current);S?_.current=setTimeout(()=>{r(!0)},S):r(!0)}function B(C){if(j())return;I.current();let S=X2(a);if(clearTimeout(k.current),v.current){n||clearTimeout(_.current),w.current=v.current({...e,tree:g,x:C.clientX,y:C.clientY,onClose(){ee(),H(),J()}});let T=w.current;S.addEventListener("mousemove",T),I.current=()=>{S.removeEventListener("mousemove",T)};return}(y.current==="touch"?!Rx(a,C.relatedTarget):!0)&&J()}function N(C){j()||v.current==null||v.current({...e,tree:g,x:C.clientX,y:C.clientY,onClose(){ee(),H(),J()}})(C)}if(vg(s)){let C=s;return n&&C.addEventListener("mouseleave",N),a?.addEventListener("mouseleave",N),m&&C.addEventListener("mousemove",V,{once:!0}),C.addEventListener("mouseenter",V),C.addEventListener("mouseleave",B),()=>{n&&C.removeEventListener("mouseleave",N),a?.removeEventListener("mouseleave",N),m&&C.removeEventListener("mousemove",V),C.removeEventListener("mouseenter",V),C.removeEventListener("mouseleave",B)}}},[s,a,u,e,d,h,m,J,H,ee,r,n,g,x,v,i]),qw(()=>{var j;if(!!u&&n&&(j=v.current)!=null&&j.__options.blockPointerEvents&&W()){let N=X2(a).body;if(N.setAttribute(Qve,""),N.style.pointerEvents="none",M.current=!0,vg(s)&&a){var V,B;let C=s,S=g==null||(V=g.nodesRef.current.find(G=>G.id===b))==null||(B=V.context)==null?void 0:B.elements.floating;return S&&(S.style.pointerEvents=""),C.style.pointerEvents="auto",a.style.pointerEvents="auto",()=>{C.style.pointerEvents="",a.style.pointerEvents=""}}}},[u,n,b,a,s,g,v,i,W]),qw(()=>{n||(y.current=void 0,H(),ee())},[n,H,ee]),cn.useEffect(()=>()=>{H(),clearTimeout(_.current),clearTimeout(k.current),ee()},[u,H,ee]),cn.useMemo(()=>{if(!u)return{};function j(V){y.current=V.pointerType}return{reference:{onPointerDown:j,onPointerEnter:j,onMouseMove(){n||h===0||(clearTimeout(k.current),k.current=setTimeout(()=>{O.current||r(!0)},h))}},floating:{onMouseEnter(){clearTimeout(_.current)},onMouseLeave(){o.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),J(!1)}}}},[o,u,h,n,r,J])}function bdt(e){let t=e.activeElement;for(;((n=t)==null||(r=n.shadowRoot)==null?void 0:r.activeElement)!=null;){var n,r;t=t.shadowRoot.activeElement}return t}function wdt(e,t){let n=e.filter(i=>{var o;return i.parentId===t&&((o=i.context)==null?void 0:o.open)}),r=n;for(;r.length;)r=e.filter(i=>{var o;return(o=r)==null?void 0:o.some(s=>{var a;return i.parentId===s.id&&((a=i.context)==null?void 0:a.open)})}),n=n.concat(r);return n}function Pdt(e){return"composedPath"in e?e.composedPath()[0]:e.target}var kdt="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Adt(e){return nq(e)&&e.matches(kdt)}function e2e(e){return nq(e.target)&&e.target.tagName==="BUTTON"}function t2e(e){return Adt(e)}function a2e(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,dataRef:i,elements:{domReference:o}}=e,{enabled:s=!0,event:a="click",toggle:l=!0,ignoreMouse:u=!1,keyboardHandlers:c=!0}=t,f=cn.useRef(),d=cn.useRef(!1);return cn.useMemo(()=>s?{reference:{onPointerDown(h){f.current=h.pointerType},onMouseDown(h){h.button===0&&(QE(f.current,!0)&&u||a!=="click"&&(n?l&&(i.current.openEvent?i.current.openEvent.type==="mousedown":!0)&&r(!1):(h.preventDefault(),r(!0)),i.current.openEvent=h.nativeEvent))},onClick(h){if(a==="mousedown"&&f.current){f.current=void 0;return}QE(f.current,!0)&&u||(n?l&&(i.current.openEvent?i.current.openEvent.type==="click":!0)&&r(!1):r(!0),i.current.openEvent=h.nativeEvent)},onKeyDown(h){f.current=void 0,!(h.defaultPrevented||!c||e2e(h))&&(h.key===" "&&!t2e(o)&&(h.preventDefault(),d.current=!0),h.key==="Enter"&&(n?l&&r(!1):r(!0)))},onKeyUp(h){h.defaultPrevented||!c||e2e(h)||t2e(o)||h.key===" "&&d.current&&(d.current=!1,n?l&&r(!1):r(!0))}}}:{},[s,i,a,u,c,o,l,n,r])}var Cdt=cn["useInsertionEffect".toString()],Sdt=Cdt||(e=>e());function Odt(e){let t=cn.useRef(()=>{});return Sdt(()=>{t.current=e}),cn.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function Edt(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function l2e(e){var t;e===void 0&&(e={});let{open:n=!1,onOpenChange:r,nodeId:i}=e,[o,s]=cn.useState(null),a=((t=e.elements)==null?void 0:t.reference)||o,l=Yve(e),u=o2e(),c=Odt(r),f=cn.useRef(null),d=cn.useRef({}),h=cn.useState(()=>gdt())[0],m=i2e(),g=cn.useCallback(_=>{let w=vg(_)?{getBoundingClientRect:()=>_.getBoundingClientRect(),contextElement:_}:_;l.refs.setReference(w)},[l.refs]),b=cn.useCallback(_=>{(vg(_)||_===null)&&(f.current=_,s(_)),(vg(l.refs.reference.current)||l.refs.reference.current===null||_!==null&&!vg(_))&&l.refs.setReference(_)},[l.refs]),v=cn.useMemo(()=>({...l.refs,setReference:b,setPositionReference:g,domReference:f}),[l.refs,b,g]),x=cn.useMemo(()=>({...l.elements,domReference:a}),[l.elements,a]),y=cn.useMemo(()=>({...l,refs:v,elements:x,dataRef:d,nodeId:i,floatingId:m,events:h,open:n,onOpenChange:c}),[l,i,m,h,n,c,v,x]);return qw(()=>{let _=u?.nodesRef.current.find(w=>w.id===i);_&&(_.context=y)}),cn.useMemo(()=>({...l,context:y,refs:v,elements:x}),[l,v,x,y])}function u2e(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,dataRef:i,events:o,refs:s,elements:{floating:a,domReference:l}}=e,{enabled:u=!0,keyboardOnly:c=!0}=t,f=cn.useRef(""),d=cn.useRef(!1),h=cn.useRef();return cn.useEffect(()=>{if(!u)return;let g=X2(a).defaultView||window;function b(){!n&&nq(l)&&l===bdt(X2(l))&&(d.current=!0)}return g.addEventListener("blur",b),()=>{g.removeEventListener("blur",b)}},[a,l,n,u]),cn.useEffect(()=>{if(!u)return;function m(g){(g.type==="referencePress"||g.type==="escapeKey")&&(d.current=!0)}return o.on("dismiss",m),()=>{o.off("dismiss",m)}},[o,u]),cn.useEffect(()=>()=>{clearTimeout(h.current)},[]),cn.useMemo(()=>u?{reference:{onPointerDown(m){let{pointerType:g}=m;f.current=g,d.current=!!(g&&c)},onMouseLeave(){d.current=!1},onFocus(m){var g;d.current||m.type==="focus"&&((g=i.current.openEvent)==null?void 0:g.type)==="mousedown"&&i.current.openEvent&&Edt(i.current.openEvent,l)||(i.current.openEvent=m.nativeEvent,r(!0))},onBlur(m){d.current=!1;let g=m.relatedTarget,b=vg(g)&&g.hasAttribute("data-floating-ui-focus-guard")&&g.getAttribute("data-type")==="outside";h.current=setTimeout(()=>{Rx(s.floating.current,g)||Rx(l,g)||b||r(!1)})}}}:{},[u,c,l,s,i,r])}function eq(e,t,n){let r=new Map;return{...n==="floating"&&{tabIndex:-1},...e,...t.map(i=>i?i[n]:null).concat(e).reduce((i,o)=>(o&&Object.entries(o).forEach(s=>{let[a,l]=s;if(a.indexOf("on")===0){if(r.has(a)||r.set(a,[]),typeof l=="function"){var u;(u=r.get(a))==null||u.push(l),i[a]=function(){for(var c,f=arguments.length,d=new Array(f),h=0;h<f;h++)d[h]=arguments[h];return(c=r.get(a))==null?void 0:c.map(m=>m(...d)).find(m=>m!==void 0)}}}else i[a]=l}),i),{})}}function c2e(e){e===void 0&&(e=[]);let t=e,n=cn.useCallback(o=>eq(o,e,"reference"),t),r=cn.useCallback(o=>eq(o,e,"floating"),t),i=cn.useCallback(o=>eq(o,e,"item"),e.map(o=>o?.item));return cn.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:i}),[n,r,i])}function d2e(e,t){t===void 0&&(t={});let{open:n,floatingId:r}=e,{enabled:i=!0,role:o="dialog"}=t,s=i2e();return cn.useMemo(()=>{let a={id:r,role:o};return i?o==="tooltip"?{reference:{"aria-describedby":n?r:void 0},floating:a}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":o==="alertdialog"?"dialog":o,"aria-controls":n?r:void 0,...o==="listbox"&&{role:"combobox"},...o==="menu"&&{id:s}},floating:{...a,...o==="menu"&&{"aria-labelledby":s}}}:{}},[i,o,n,r,s])}function n2e(e,t){let[n,r]=e,i=!1,o=t.length;for(let s=0,a=o-1;s<o;a=s++){let[l,u]=t[s]||[0,0],[c,f]=t[a]||[0,0];u>=r!=f>=r&&n<=(c-l)*(r-u)/(f-u)+l&&(i=!i)}return i}function Mdt(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function p2e(e){e===void 0&&(e={});let{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,i,o=!1,s=null,a=null,l=performance.now();function u(f,d){let h=performance.now(),m=h-l;if(s===null||a===null||m===0)return s=f,a=d,l=h,null;let g=f-s,b=d-a,x=Math.sqrt(g*g+b*b)/m;return s=f,a=d,l=h,x}let c=f=>{let{x:d,y:h,placement:m,elements:g,onClose:b,nodeId:v,tree:x}=f;return function(_){function w(){clearTimeout(i),b()}if(clearTimeout(i),!g.domReference||!g.floating||m==null||d==null||h==null)return;let{clientX:k,clientY:O}=_,M=[k,O],I=Pdt(_),W=_.type==="mouseleave",J=Rx(g.floating,I),H=Rx(g.domReference,I),ee=g.domReference.getBoundingClientRect(),j=g.floating.getBoundingClientRect(),V=m.split("-")[0],B=d>j.right-j.width/2,N=h>j.bottom-j.height/2,C=Mdt(M,ee),S=j.width>ee.width,G=j.height>ee.height,T=(S?ee:j).left,Q=(S?ee:j).right,U=(G?ee:j).top,F=(G?ee:j).bottom;if(J&&(o=!0,!W))return;if(H&&(o=!1),H&&!W){o=!0;return}if(W&&vg(_.relatedTarget)&&Rx(g.floating,_.relatedTarget)||x&&wdt(x.nodesRef.current,v).some($=>{let{context:Z}=$;return Z?.open}))return;if(V==="top"&&h>=ee.bottom-1||V==="bottom"&&h<=ee.top+1||V==="left"&&d>=ee.right-1||V==="right"&&d<=ee.left+1)return w();let D=[];switch(V){case"top":D=[[T,ee.top+1],[T,j.bottom-1],[Q,j.bottom-1],[Q,ee.top+1]];break;case"bottom":D=[[T,j.top+1],[T,ee.bottom-1],[Q,ee.bottom-1],[Q,j.top+1]];break;case"left":D=[[j.right-1,F],[j.right-1,U],[ee.left+1,U],[ee.left+1,F]];break;case"right":D=[[ee.right-1,F],[ee.right-1,U],[j.left+1,U],[j.left+1,F]];break}function L($){let[Z,se]=$;switch(V){case"top":{let Y=[S?Z+t/2:B?Z+t*4:Z-t*4,se+t+1],ue=[S?Z-t/2:B?Z+t*4:Z-t*4,se+t+1],pe=[[j.left,B||S?j.bottom-t:j.top],[j.right,B?S?j.bottom-t:j.top:j.bottom-t]];return[Y,ue,...pe]}case"bottom":{let Y=[S?Z+t/2:B?Z+t*4:Z-t*4,se-t],ue=[S?Z-t/2:B?Z+t*4:Z-t*4,se-t],pe=[[j.left,B||S?j.top+t:j.bottom],[j.right,B?S?j.top+t:j.bottom:j.top+t]];return[Y,ue,...pe]}case"left":{let Y=[Z+t+1,G?se+t/2:N?se+t*4:se-t*4],ue=[Z+t+1,G?se-t/2:N?se+t*4:se-t*4];return[...[[N||G?j.right-t:j.left,j.top],[N?G?j.right-t:j.left:j.right-t,j.bottom]],Y,ue]}case"right":{let Y=[Z-t,G?se+t/2:N?se+t*4:se-t*4],ue=[Z-t,G?se-t/2:N?se+t*4:se-t*4],pe=[[N||G?j.left+t:j.right,j.top],[N?G?j.left+t:j.right:j.left+t,j.bottom]];return[Y,ue,...pe]}}}if(!n2e([k,O],D)){if(o&&!C)return w();if(!W&&r){let $=u(_.clientX,_.clientY);if($!==null&&$<.1)return w()}n2e([k,O],L([d,h]))?!o&&r&&(i=window.setTimeout(w,40)):w()}}};return c.__options={blockPointerEvents:n},c}var rq=ie(Gt()),q2=ie(Pe());var f2e=({arrowRef:e,placement:t})=>{let n=[];return n.push(zx(8)),n.push(t==="auto"?Jw():jw()),n.push(Hw({padding:8})),e.current&&n.push(ZX({element:e.current})),n},h2e=({placement:e})=>e==="auto"?void 0:e,m2e=({placement:e})=>({top:"bottom",right:"left",bottom:"top",left:"right"})[e.split("-")[0]];var eM=({animation:e="duration-300",arrow:t=!0,children:n,className:r,closeRequestKey:i,content:o,placement:s="top",style:a="dark",theme:l,trigger:u="hover",minWidth:c,...f})=>{let d=(0,q2.useRef)(null),[h,m]=(0,q2.useState)(!1),g=l2e({middleware:f2e({arrowRef:d,placement:s}),onOpenChange:m,open:h,placement:h2e({placement:s})}),{context:b,middlewareData:{arrow:{x:v,y:x}={}},refs:y,strategy:_,update:w,x:k,y:O}=g,{getFloatingProps:M,getReferenceProps:I}=c2e([a2e(b,{enabled:u==="click"}),u2e(b),s2e(b,{enabled:u==="hover",handleClose:p2e()}),d2e(b,{role:"tooltip"})]);return(0,q2.useEffect)(()=>{if(y.reference.current&&y.floating.current&&h)return $E(y.reference.current,y.floating.current,w)},[h,y.floating,y.reference,w]),(0,q2.useEffect)(()=>{i!==void 0&&m(!1)},[i]),(0,N0.jsxs)(N0.Fragment,{children:[(0,N0.jsx)("div",{ref:y.setReference,className:l.target,"data-testid":"flowbite-tooltip-target",...I(),children:n}),(0,N0.jsxs)("div",{ref:y.setFloating,"data-testid":"flowbite-tooltip",...M({className:(0,rq.default)(l.base,e&&`${l.animation} ${e}`,!h&&l.hidden,l.style[a],r),style:{position:_,top:O??" ",left:k??" ",minWidth:c},...f}),children:[(0,N0.jsx)("div",{className:l.content,children:o}),t&&(0,N0.jsx)("div",{className:(0,rq.default)(l.arrow.base,{[l.arrow.style.dark]:a==="dark",[l.arrow.style.light]:a==="light",[l.arrow.style.auto]:a==="auto"}),"data-testid":"flowbite-tooltip-arrow",ref:d,style:{top:x??" ",left:v??" ",right:" ",bottom:" ",[m2e({placement:g.placement})]:l.arrow.placement},children:"\xA0"})]})]})};var g2e=ie(St()),v2e=ie(Gt());var $w=({className:e,...t})=>{let n=Ye().theme.dropdown.floating.divider;return(0,g2e.jsx)("div",{className:(0,v2e.default)(n,e),...t})};var $2=ie(St()),y2e=ie(Gt());var iq=({children:e,className:t,...n})=>{let r=Ye().theme.dropdown.floating.header;return(0,$2.jsxs)($2.Fragment,{children:[(0,$2.jsx)("div",{className:(0,y2e.default)(r,t),...n,children:e}),(0,$2.jsx)($w,{})]})};var tM=ie(St()),x2e=ie(Gt());var nM=({children:e,className:t,icon:n,onClick:r,theme:i={},...o})=>{let s=Qe(Ye().theme.dropdown.floating.item,i);return(0,tM.jsxs)("li",{className:(0,x2e.default)(s.base,t),onClick:r,...o,children:[n&&(0,tM.jsx)(n,{className:s.icon}),e]})};var Bdt={top:jge,right:Nx,bottom:EX,left:IE},_2e=({children:e,className:t,dismissOnClick:n=!0,theme:r={},...i})=>{let o=(0,Gs.useId)(),s=Qe(Ye().theme.dropdown,r),a=i,{placement:l=i.inline?"bottom-start":"bottom",trigger:u="click",label:c,inline:f,floatingArrow:d=!1,arrowIcon:h=!0,...m}=a,g=(0,Gs.useMemo)(()=>{let[O]=l.split("-");return Bdt[O]??EX},[l]),[b,v]=(0,Gs.useState)(void 0),[x,y]=(0,Gs.useState)(void 0),_=(0,Gs.useCallback)(O=>Gs.default.isValidElement(O)?O.type===nM?Gs.default.cloneElement(O,{onClick:()=>{O.props.onClick?.(),n&&v(o)}}):O.props.children&&typeof O.props.children=="object"?Gs.default.cloneElement(O,{children:Gs.Children.map(O.props.children,_)}):O:O,[n,o]),w=(0,Gs.useMemo)(()=>(0,yg.jsx)("ul",{className:s.content,children:Gs.Children.map(e,_)}),[_,e,s.content]),k=({children:O,setButtonWidth:M})=>{let I=(0,Gs.useRef)(null);return(0,Gs.useEffect)(()=>{I.current&&M?.(I.current.clientWidth)},[I]),f?(0,yg.jsx)("button",{type:"button",ref:I,className:s.inlineWrapper,children:O}):(0,yg.jsx)(hve,{type:"button",ref:I,...m,children:O})};return(0,yg.jsx)(eM,{content:w,style:"auto",animation:"duration-100",placement:l,arrow:d,trigger:u,theme:s.floating,closeRequestKey:b,className:t,minWidth:x,children:(0,yg.jsxs)(k,{setButtonWidth:y,children:[c,h&&(0,yg.jsx)(g,{className:s.arrowIcon})]})})};_2e.displayName="Dropdown";nM.displayName="Dropdown.Item";iq.displayName="Dropdown.Header";$w.displayName="Dropdown.Divider";var xyn=Object.assign(_2e,{Item:nM,Header:iq,Divider:$w});var G0=ie(St()),oq=ie(Gt()),b2e=ie(Pe());var Ndt=(0,b2e.forwardRef)(({className:e,color:t="gray",helperText:n,sizing:r="md",theme:i={},...o},s)=>{let a=Qe(Ye().theme.fileInput,i);return(0,G0.jsxs)(G0.Fragment,{children:[(0,G0.jsx)("div",{className:(0,oq.default)(a.root.base,e),children:(0,G0.jsx)("div",{className:a.field.base,children:(0,G0.jsx)("input",{className:(0,oq.default)(a.field.input.base,a.field.input.colors[t],a.field.input.sizes[r]),...o,type:"file",ref:s})})}),n&&(0,G0.jsx)(F0,{color:t,children:n})]})});Ndt.displayName="FileInput";var w2e=ie(St()),rM=ie(Pe());var Gdt=({children:e,theme:t={}})=>{let{theme:n={},dark:r}=t,[i,o,s]=_ve(),a=Qe(RE,n);(0,rM.useEffect)(()=>{r?(o("dark"),document.documentElement.classList.add("dark")):(o("light"),document.documentElement.classList.remove("dark"))},[r,o]);let l=(0,rM.useMemo)(()=>({theme:a,mode:i,toggleMode:s}),[i,s,a]);return(0,w2e.jsx)(Ix.Provider,{value:l,children:e})};Gdt.displayName="Flowbite";var N2e=ie(St()),G2e=ie(Gt());var K2=ie(St()),sq=ie(Gt());var aq=({alt:e,className:t,children:n,href:r,name:i,src:o,theme:s={},...a})=>{let l=Qe(Ye().theme.footer.brand,s);return(0,K2.jsx)("div",{children:r?(0,K2.jsxs)("a",{"data-testid":"flowbite-footer-brand",href:r,className:(0,sq.default)(l.base,t),...a,children:[(0,K2.jsx)("img",{alt:e,src:o,className:l.img}),(0,K2.jsx)("span",{"data-testid":"flowbite-footer-brand-span",className:l.span,children:i}),n]}):(0,K2.jsx)("img",{alt:e,"data-testid":"flowbite-footer-brand",src:o,className:(0,sq.default)(l.img,t),...a})})};var Kw=ie(St()),P2e=ie(Gt());var lq=({by:e,className:t,href:n,theme:r={},year:i,...o})=>{let s=Qe(Ye().theme.footer.copyright,r);return(0,Kw.jsxs)("div",{"data-testid":"flowbite-footer-copyright",className:(0,P2e.default)(s.base,t),...o,children:["\xA9 ",i,n?(0,Kw.jsx)("a",{href:n,className:s.href,children:e}):(0,Kw.jsx)("span",{"data-testid":"flowbite-footer-copyright-span",className:s.span,children:e})]})};var k2e=ie(St()),A2e=ie(Gt());var uq=({className:e,theme:t={},...n})=>{let r=Qe(Ye().theme.footer.divider,t);return(0,k2e.jsx)("hr",{"data-testid":"footer-divider",className:(0,A2e.default)(r.base,e),...n})};var Yw=ie(St()),C2e=ie(Gt());var cq=({ariaLabel:e,className:t,href:n,icon:r,theme:i={},...o})=>{let s=Qe(Ye().theme.footer.icon,i);return(0,Yw.jsx)("div",{children:n?(0,Yw.jsx)("a",{"aria-label":e,"data-testid":"flowbite-footer-icon",href:n,className:(0,C2e.default)(s.base,t),...o,children:(0,Yw.jsx)(r,{className:s.size})}):(0,Yw.jsx)(r,{"data-testid":"flowbite-footer-icon",className:s.size,...o})})};var dq=ie(St()),S2e=ie(Gt());var pq=({as:e="a",children:t,className:n,href:r,theme:i={},...o})=>{let s=Qe(Ye().theme.footer.groupLink.link,i);return(0,dq.jsx)("li",{className:(0,S2e.default)(s.base,n),children:(0,dq.jsx)(e,{href:r,className:s.href,...o,children:t})})};var O2e=ie(St()),E2e=ie(Gt());var fq=({children:e,className:t,col:n=!1,theme:r={},...i})=>{let o=Qe(Ye().theme.footer.groupLink,r);return(0,O2e.jsx)("ul",{"data-testid":"footer-groupLink",className:(0,E2e.default)(o.base,n&&o.col,t),...i,children:e})};var M2e=ie(St()),B2e=ie(Gt());var hq=({as:e="h2",className:t,theme:n={},title:r,...i})=>{let o=Qe(Ye().theme.footer.title,n);return(0,M2e.jsx)(e,{"data-testid":"flowbite-footer-title",className:(0,B2e.default)(o.base,t),...i,children:r})};var F2e=({bgDark:e=!1,children:t,className:n,container:r=!1,theme:i={},...o})=>{let s=Qe(Ye().theme.footer,i);return(0,N2e.jsx)("footer",{"data-testid":"flowbite-footer",className:(0,G2e.default)(s.root.base,e&&s.root.bgDark,r&&s.root.container,n),...o,children:t})};F2e.displayName="Footer";lq.displayName="Footer.Copyright";pq.displayName="Footer.Link";aq.displayName="Footer.Brand";fq.displayName="Footer.LinkGroup";cq.displayName="Footer.Icon";hq.displayName="Footer.Title";uq.displayName="Footer.Divider";var c6n=Object.assign(F2e,{Copyright:lq,Link:pq,LinkGroup:fq,Brand:aq,Icon:cq,Title:hq,Divider:uq});var I2e=ie(St()),z2e=ie(Gt());var F0=({children:e,className:t,color:n="default",theme:r={},value:i,...o})=>{let s=Qe(Ye().theme.helperText,r);return(0,I2e.jsx)("p",{className:(0,z2e.default)(s.root.base,s.root.colors[n],t),...o,children:i??e??""})};F0.displayName="HelperText";var T2e=ie(St()),D2e=ie(Gt());var Fdt=({children:e,className:t,color:n="default",disabled:r=!1,theme:i={},value:o,...s})=>{let a=Qe(Ye().theme.label,i);return(0,T2e.jsx)("label",{className:(0,D2e.default)(a.root.base,a.root.colors[n],r&&a.root.disabled,t),"data-testid":"flowbite-label",...s,children:o??e??""})};Fdt.displayName="Label";var R2e=ie(St()),L2e=ie(Gt());var Zw=ie(St()),mq=ie(Gt());var gq=({active:e,children:t,className:n,href:r,icon:i,onClick:o,theme:s={},...a})=>{let l=Qe(Ye().theme.listGroup.item,s),u=typeof r<"u",c=u?"a":"button";return(0,Zw.jsx)("li",{className:(0,mq.default)(l.base,n),children:(0,Zw.jsxs)(c,{href:r,onClick:o,type:u?void 0:"button",className:(0,mq.default)(l.link.active[e?"on":"off"],l.link.base,l.link.href[u?"on":"off"]),...a,children:[i&&(0,Zw.jsx)(i,{"aria-hidden":!0,"data-testid":"flowbite-list-group-item-icon",className:l.link.icon}),t]})})};var V2e=({children:e,className:t,theme:n={},...r})=>{let i=Qe(Ye().theme.listGroup,n);return(0,R2e.jsx)("ul",{className:(0,L2e.default)(i.root.base,t),...r,children:e})};V2e.displayName="ListGroup";gq.displayName="ListGroup.Item";var M6n=Object.assign(V2e,{Item:gq});var Uw=ie(St()),bq=ie(Gt()),Y2=ie(Pe()),q2e=ie(Yl());var J2e=ie(St()),j2e=ie(Gt());var iM=ie(Pe()),vq=(0,iM.createContext)(void 0);function Vx(){let e=(0,iM.useContext)(vq);if(!e)throw new Error("useModalContext should be used within the ModalContext provider!");return e}var yq=({children:e,className:t,theme:n={},...r})=>{let i=Qe(Ye().theme.modal.body,n),{popup:o}=Vx();return(0,J2e.jsx)("div",{className:(0,j2e.default)(i.base,{[i.popup]:o},t),...r,children:e})};var H2e=ie(St()),W2e=ie(Gt());var xq=({children:e,className:t,theme:n={},...r})=>{let i=Qe(Ye().theme.modal.footer,n),{popup:o}=Vx();return(0,H2e.jsx)("div",{className:(0,W2e.default)(i.base,{[i.popup]:!o},t),...r,children:e})};var Jx=ie(St()),X2e=ie(Gt());var _q=({as:e="h3",children:t,className:n,theme:r={},...i})=>{let o=Qe(Ye().theme.modal.header,r),{popup:s,onClose:a}=Vx();return(0,Jx.jsxs)("div",{className:(0,X2e.default)(o.base,{[o.popup]:s},n),...i,children:[(0,Jx.jsx)(e,{className:o.title,children:t}),(0,Jx.jsx)("button",{"aria-label":"Close",className:o.close.base,type:"button",onClick:a,children:(0,Jx.jsx)(Hge,{"aria-hidden":!0,className:o.close.icon})})]})};var $2e=({children:e,className:t,dismissible:n=!1,onClose:r,popup:i,position:o="center",root:s,show:a,size:l="2xl",theme:u={},...c})=>{let f=Qe(Ye().theme.modal,u),[d,h]=(0,Y2.useState)(!1),m=(0,Y2.useRef)(null);if((0,Y2.useEffect)(()=>(h(!0),()=>{let b=m.current;b&&(b.parentNode?.removeChild(b),m.current=null)}),[]),(0,Y2.useEffect)(()=>{let b=v=>{v.key==="Escape"&&r&&r()};return document.addEventListener("keydown",b),()=>{document.removeEventListener("keydown",b)}},[r]),!d)return null;m.current||(m.current=document.createElement("div")),j2()&&m.current.parentNode!==s&&(s||=document.body,s.appendChild(m.current),s.style.overflow=a?"hidden":"");let g=b=>{n&&b.target===b.currentTarget&&r&&r()};return(0,q2e.createPortal)((0,Uw.jsx)(vq.Provider,{value:{popup:i,onClose:r},children:(0,Uw.jsx)("div",{"aria-hidden":!a,"data-testid":"modal",onClick:g,role:"dialog",className:(0,bq.default)(f.root.base,f.root.positions[o],a?f.root.show.on:f.root.show.off,t),...c,children:(0,Uw.jsx)("div",{className:(0,bq.default)(f.content.base,f.root.sizes[l]),children:(0,Uw.jsx)("div",{className:f.content.inner,children:e})})})}),m.current)};$2e.displayName="Modal";_q.displayName="Modal.Header";yq.displayName="Modal.Body";xq.displayName="Modal.Footer";var Q6n=Object.assign($2e,{Header:_q,Body:yq,Footer:xq});var aM=ie(St()),Eq=ie(Gt()),tye=ie(Pe());var K2e=ie(St()),Y2e=ie(Gt());var wq=({as:e="a",children:t,className:n,theme:r={},...i})=>{let o=Qe(Ye().theme.navbar.brand,r);return(0,K2e.jsx)(e,{className:(0,Y2e.default)(o.base,n),...i,children:t})};var kq=ie(St()),Z2e=ie(Gt());var oM=ie(Pe()),Pq=(0,oM.createContext)(void 0);function sM(){let e=(0,oM.useContext)(Pq);if(!e)throw new Error("useNavBarContext should be used within the NavbarContext provider!");return e}var Aq=({children:e,className:t,theme:n={},...r})=>{let{isOpen:i}=sM(),o=Qe(Ye().theme.navbar.collapse,n);return(0,kq.jsx)("div",{"data-testid":"flowbite-navbar-collapse",className:(0,Z2e.default)(o.base,o.hidden[i?"off":"on"],t),...r,children:(0,kq.jsx)("ul",{className:o.list,children:e})})};var Cq=ie(St()),U2e=ie(Gt());var Sq=({active:e,as:t="a",disabled:n,children:r,className:i,theme:o={},...s})=>{let a=Qe(Ye().theme.navbar.link,o);return(0,Cq.jsx)("li",{children:(0,Cq.jsx)(t,{className:(0,U2e.default)(a.base,{[a.active.on]:e,[a.active.off]:!e&&!n},a.disabled[n?"on":"off"],i),...s,children:r})})};var Qw=ie(St()),eye=ie(Gt());function Q2e(e){return ou({tag:"svg",attr:{viewBox:"0 0 12 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M11.41 9H.59C0 9 0 8.59 0 8c0-.59 0-1 .59-1H11.4c.59 0 .59.41.59 1 0 .59 0 1-.59 1h.01zm0-4H.59C0 5 0 4.59 0 4c0-.59 0-1 .59-1H11.4c.59 0 .59.41.59 1 0 .59 0 1-.59 1h.01zM.59 11H11.4c.59 0 .59.41.59 1 0 .59 0 1-.59 1H.59C0 13 0 12.59 0 12c0-.59 0-1 .59-1z"}}]})(e)}var Oq=({barIcon:e=Q2e,className:t,theme:n={},...r})=>{let{isOpen:i,setIsOpen:o}=sM(),s=Qe(Ye().theme.navbar.toggle,n);return(0,Qw.jsxs)("button",{"data-testid":"flowbite-navbar-toggle",onClick:()=>{o(!i)},className:(0,eye.default)(s.base,t),...r,children:[(0,Qw.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Qw.jsx)(e,{"aria-hidden":!0,className:s.icon})]})};var nye=({border:e,children:t,className:n,fluid:r=!1,menuOpen:i,rounded:o,theme:s={},...a})=>{let[l,u]=(0,tye.useState)(i),c=Qe(Ye().theme.navbar.root,s);return(0,aM.jsx)(Pq.Provider,{value:{isOpen:l,setIsOpen:u},children:(0,aM.jsx)("nav",{className:(0,Eq.default)(c.base,c.bordered[e?"on":"off"],c.rounded[o?"on":"off"],n),...a,children:(0,aM.jsx)("div",{className:(0,Eq.default)(c.inner.base,c.inner.fluid[r?"on":"off"]),children:t})})})};nye.displayName="Navbar";wq.displayName="Navbar.Brand";Aq.displayName="Navbar.Collapse";Sq.displayName="Navbar.Link";Oq.displayName="Navbar.Toggle";var O3n=Object.assign(nye,{Brand:wq,Collapse:Aq,Link:Sq,Toggle:Oq});var Sl=ie(St()),e7=ie(Gt());var rye=(e,t)=>e>=t?[]:[...Array(t-e+1).keys()].map(n=>n+e);var Mq=ie(St()),Bq=ie(Gt());var lM=({active:e,children:t,className:n,onClick:r,theme:i={},...o})=>{let s=Qe(Ye().theme.pagination,i);return(0,Mq.jsx)("button",{className:(0,Bq.default)({[s.pages.selector.active]:e},n),onClick:r,...o,children:t})};lM.displayName="Pagination.Button";var uM=({children:e,className:t,onClick:n,theme:r={},disabled:i=!1,...o})=>{let s=Qe(Ye().theme.pagination,r);return(0,Mq.jsx)("button",{className:(0,Bq.default)({[s.pages.selector.disabled]:i},t),disabled:i,onClick:n,...o,children:e})};uM.displayName="Pagination.Navigation";var iye=({className:e,currentPage:t,layout:n="pagination",nextLabel:r="Next",onPageChange:i,previousLabel:o="Previous",renderPaginationButton:s=f=>(0,Sl.jsx)(lM,{...f}),showIcons:a=!1,theme:l={},totalPages:u,...c})=>{let f=Qe(Ye().theme.pagination,l),d=Math.max(1,t-3),h=Math.min(t+3,u),m=()=>{i(Math.min(t+1,u))},g=()=>{i(Math.max(t-1,1))};return(0,Sl.jsxs)("nav",{className:(0,e7.default)(f.base,e),...c,children:[n==="table"&&(0,Sl.jsxs)("div",{className:f.layout.table.base,children:["Showing ",(0,Sl.jsx)("span",{className:f.layout.table.span,children:d})," to\xA0",(0,Sl.jsx)("span",{className:f.layout.table.span,children:h})," of\xA0",(0,Sl.jsx)("span",{className:f.layout.table.span,children:u})," Entries"]}),(0,Sl.jsxs)("ul",{className:f.pages.base,children:[(0,Sl.jsx)("li",{children:(0,Sl.jsxs)(uM,{className:(0,e7.default)(f.pages.previous.base,a&&f.pages.showIcon),onClick:g,disabled:t===1,children:[a&&(0,Sl.jsx)(Dge,{"aria-hidden":!0,className:f.pages.previous.icon}),o]})}),n==="pagination"&&rye(d,h).map(b=>(0,Sl.jsx)("li",{"aria-current":b===t?"page":void 0,children:s({className:(0,e7.default)(f.pages.selector.base,{[f.pages.selector.active]:t===b}),active:b===t,onClick:()=>i(b),children:b})},b)),(0,Sl.jsx)("li",{children:(0,Sl.jsxs)(uM,{className:(0,e7.default)(f.pages.next.base,a&&f.pages.showIcon),onClick:m,disabled:t===u,children:[r,a&&(0,Sl.jsx)(Rge,{"aria-hidden":!0,className:f.pages.next.icon})]})})]})]})};iye.displayName="Pagination";var V3n=Object.assign(iye,{Button:lM});var Oc=ie(St()),Nq=ie(Gt()),oye=ie(Pe());var Idt=({className:e,color:t="blue",labelProgress:n=!1,labelText:r=!1,progress:i,progressLabelPosition:o="inside",size:s="md",textLabel:a="progressbar",textLabelPosition:l="inside",theme:u={},...c})=>{let f=(0,oye.useId)(),d=Qe(Ye().theme.progress,u);return(0,Oc.jsx)(Oc.Fragment,{children:(0,Oc.jsxs)("div",{id:f,"aria-label":a,"aria-valuenow":i,role:"progressbar",...c,children:[(a&&r&&l==="outside"||i>0&&n&&o==="outside")&&(0,Oc.jsxs)("div",{className:d.label,"data-testid":"flowbite-progress-outer-label-container",children:[a&&r&&l==="outside"&&(0,Oc.jsx)("span",{"data-testid":"flowbite-progress-outer-text-label",children:a}),n&&o==="outside"&&(0,Oc.jsxs)("span",{"data-testid":"flowbite-progress-outer-progress-label",children:[i,"%"]})]}),(0,Oc.jsx)("div",{className:(0,Nq.default)(d.base,d.size[s],e),children:(0,Oc.jsxs)("div",{style:{width:`${i}%`},className:(0,Nq.default)(d.bar,d.color[t],d.size[s]),children:[a&&r&&l==="inside"&&(0,Oc.jsx)("span",{"data-testid":"flowbite-progress-inner-text-label",children:a}),i>0&&n&&o==="inside"&&(0,Oc.jsxs)("span",{"data-testid":"flowbite-progress-inner-progress-label",children:[i,"%"]})]})})]})})};Idt.displayName="Progress";var sye=ie(St()),aye=ie(Gt()),lye=ie(Pe());var zdt=(0,lye.forwardRef)(({className:e,theme:t={},...n},r)=>{let i=Qe(Ye().theme.radio,t);return(0,sye.jsx)("input",{ref:r,type:"radio",className:(0,aye.default)(i.root.base,e),...n})});zdt.displayName="Radio";var Z2=ie(St()),Gq=ie(Gt()),uye=ie(Pe());var Tdt=(0,uye.forwardRef)(({className:e,sizing:t="md",theme:n={},...r},i)=>{let o=Qe(Ye().theme.rangeSlider,n);return(0,Z2.jsx)(Z2.Fragment,{children:(0,Z2.jsx)("div",{"data-testid":"flowbite-range-slider",className:(0,Gq.default)(o.root.base,e),children:(0,Z2.jsx)("div",{className:o.field.base,children:(0,Z2.jsx)("input",{ref:i,type:"range",className:(0,Gq.default)(o.field.input.base,o.field.input.sizes[t]),...r})})})})});Tdt.displayName="RangeSlider";var Tq=ie(St()),hye=ie(Gt());var U2=ie(St()),cye=ie(Gt());var Fq=({children:e,className:t,percentFilled:n=0,theme:r={},...i})=>{let o=Qe(Ye().theme.rating.advanced,r);return(0,U2.jsxs)("div",{className:(0,cye.default)(o.base,t),...i,children:[(0,U2.jsx)("span",{className:o.label,children:e}),(0,U2.jsx)("div",{className:o.progress.base,children:(0,U2.jsx)("div",{className:o.progress.fill,"data-testid":"flowbite-rating-fill",style:{width:`${n}%`}})}),(0,U2.jsx)("span",{className:o.progress.label,children:`${n}%`})]})};var cM=ie(Pe()),Iq=(0,cM.createContext)(void 0);function dye(){let e=(0,cM.useContext)(Iq);if(!e)throw new Error("useRatingContext should be used within the RatingContext provider!");return e}var pye=ie(St()),fye=ie(Gt());var zq=({className:e,filled:t=!0,starIcon:n=Vge,theme:r={},...i})=>{let{size:o="sm"}=dye(),s=Qe(Ye().theme.rating.star,r);return(0,pye.jsx)(n,{"data-testid":"flowbite-rating-star",className:(0,fye.default)(s.sizes[o],s[t?"filled":"empty"],e),...i})};var mye=({children:e,className:t,size:n="sm",theme:r={},...i})=>{let o=Qe(Ye().theme.rating,r);return(0,Tq.jsx)(Iq.Provider,{value:{size:n},children:(0,Tq.jsx)("div",{className:(0,hye.default)(o.root.base,t),...i,children:e})})};mye.displayName="Rating";zq.displayName="Rating.Star";Fq.displayName="Rating.Advanced";var _xn=Object.assign(mye,{Star:zq,Advanced:Fq});var I0=ie(St()),Dq=ie(Gt()),gye=ie(Pe());var Ddt=(0,gye.forwardRef)(({addon:e,children:t,className:n,color:r="gray",helperText:i,icon:o,shadow:s,sizing:a="md",theme:l={},...u},c)=>{let f=Qe(Ye().theme.select,l);return(0,I0.jsxs)("div",{className:(0,Dq.default)(f.base,n),children:[e&&(0,I0.jsx)("span",{className:f.addon,children:e}),(0,I0.jsxs)("div",{className:f.field.base,children:[o&&(0,I0.jsx)("div",{className:f.field.icon.base,children:(0,I0.jsx)(o,{className:f.field.icon.svg})}),(0,I0.jsx)("select",{className:(0,Dq.default)(f.field.select.base,f.field.select.colors[r],f.field.select.withIcon[o?"on":"off"],f.field.select.withAddon[e?"on":"off"],f.field.select.withShadow[s?"on":"off"],f.field.select.sizes[a]),...u,ref:c,children:t}),i&&(0,I0.jsx)(F0,{color:r,children:i})]})]})});Ddt.displayName="Select";var mM=ie(St()),Oye=ie(Gt());var vye=ie(St()),yye=ie(Gt());var dM=ie(Pe()),Rq=(0,dM.createContext)(void 0);function xg(){let e=(0,dM.useContext)(Rq);if(!e)throw new Error("useSidebarContext should be used within the SidebarContext provider!");return e}var Lq=({children:e,color:t="info",className:n,theme:r={},...i})=>{let{isCollapsed:o}=xg(),s=Qe(Ye().theme.sidebar.cta,r);return(0,vye.jsx)("div",{"data-testid":"sidebar-cta",hidden:o,className:(0,yye.default)(s.base,s.color[t],n),...i,children:e})};Lq.displayName="Sidebar.CTA";var su=ie(St()),Vq=ie(Gt()),jx=ie(Pe());var pM=ie(Pe()),t7=(0,pM.createContext)(void 0);function xye(){let e=(0,pM.useContext)(t7);if(!e)throw new Error("useSidebarItemContext should be used within the SidebarItemContext provider!");return e}var Jq=({children:e,className:t,icon:n,label:r,open:i=!1,theme:o={},...s})=>{let a=(0,jx.useId)(),{isCollapsed:l}=xg(),[u,c]=(0,jx.useState)(i),f=Qe(Ye().theme.sidebar.collapse,o);return(0,jx.useEffect)(()=>c(i),[i]),(0,su.jsxs)(({children:h})=>(0,su.jsx)("li",{children:l&&!u?(0,su.jsx)(Ec,{content:r,placement:"right",children:h}):h}),{children:[(0,su.jsxs)("button",{id:`flowbite-sidebar-collapse-${a}`,onClick:()=>c(!u),title:r,type:"button",className:(0,Vq.default)(f.button,t),...s,children:[n&&(0,su.jsx)(n,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-collapse-icon",className:(0,Vq.default)(f.icon.base,f.icon.open[u?"on":"off"])}),l?(0,su.jsx)("span",{className:"sr-only",children:r}):(0,su.jsxs)(su.Fragment,{children:[(0,su.jsx)("span",{"data-testid":"flowbite-sidebar-collapse-label",className:f.label.base,children:r}),(0,su.jsx)(GE,{"aria-hidden":!0,className:f.label.icon})]})]}),(0,su.jsx)("ul",{"aria-labelledby":`flowbite-sidebar-collapse-${a}`,hidden:!u,className:f.list,children:(0,su.jsx)(t7.Provider,{value:{isInsideCollapse:!0},children:e})})]})};Jq.displayName="Sidebar.Collapse";var Mc=ie(St()),fM=ie(Gt()),hM=ie(Pe());var Rdt=({id:e,isCollapsed:t,tooltipChildren:n,children:r})=>(0,Mc.jsx)("li",{children:t?(0,Mc.jsx)(Ec,{content:(0,Mc.jsx)(Ldt,{id:e,children:n}),placement:"right",children:r}):r}),Ldt=({id:e,children:t})=>(0,Mc.jsx)(_ye,{id:e,children:t}),_ye=({id:e,children:t})=>{let n=Ye().theme.sidebar.item;return(0,Mc.jsx)("span",{"data-testid":"flowbite-sidebar-item-content",id:`flowbite-sidebar-item-${e}`,className:(0,fM.default)(n.content.base),children:t})},jq=(0,hM.forwardRef)(({active:e,as:t="a",children:n,className:r,icon:i,label:o,labelColor:s="info",theme:a={},...l},u)=>{let c=(0,hM.useId)(),{isCollapsed:f}=xg(),{isInsideCollapse:d}=xye(),h=Qe(Ye().theme.sidebar.item,a);return(0,Mc.jsx)(Rdt,{id:c,isCollapsed:f,tooltipChildren:n,children:(0,Mc.jsxs)(t,{"aria-labelledby":`flowbite-sidebar-item-${c}`,ref:u,className:(0,fM.default)(h.base,e&&h.active,!f&&d&&h.collapsed?.insideCollapse,r),...l,children:[i&&(0,Mc.jsx)(i,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-item-icon",className:(0,fM.default)(h.icon?.base,e&&h.icon?.active)}),f&&!i&&(0,Mc.jsx)("span",{className:h.collapsed?.noIcon,children:n.charAt(0).toLocaleUpperCase()??"?"}),!f&&(0,Mc.jsx)(_ye,{id:c,children:n}),!f&&o&&(0,Mc.jsx)(RX,{color:s,"data-testid":"flowbite-sidebar-label",hidden:f,className:h.label,children:o})]})})});jq.displayName="Sidebar.Item";var Hq=ie(St()),bye=ie(Gt());var Wq=({children:e,className:t,...n})=>{let r=Ye().theme.sidebar.itemGroup;return(0,Hq.jsx)("ul",{"data-testid":"flowbite-sidebar-item-group",className:(0,bye.default)(r,t),...n,children:(0,Hq.jsx)(t7.Provider,{value:{isInsideCollapse:!1},children:e})})};Wq.displayName="Sidebar.ItemGroup";var wye=ie(St()),Pye=ie(Gt());var Xq=({children:e,className:t,...n})=>{let r=Ye().theme.sidebar.items;return(0,wye.jsx)("div",{className:(0,Pye.default)(r,t),"data-testid":"flowbite-sidebar-items",...n,children:e})};Xq.displayName="Sidebar.Items";var n7=ie(St()),kye=ie(Gt()),Aye=ie(Pe());var Cye=({children:e,className:t,href:n,img:r,imgAlt:i="",theme:o={},...s})=>{let a=(0,Aye.useId)(),{isCollapsed:l}=xg(),u=Qe(Ye().theme.sidebar.logo,o);return(0,n7.jsxs)("a",{"aria-labelledby":`flowbite-sidebar-logo-${a}`,href:n,className:(0,kye.default)(u.base,t),...s,children:[(0,n7.jsx)("img",{alt:i,src:r,className:u.img}),(0,n7.jsx)("span",{className:u.collapsed[l?"on":"off"],id:`flowbite-sidebar-logo-${a}`,children:e})]})};Cye.displayName="Sidebar.Logo";var Sye=Cye;var Eye=({children:e,as:t="nav",collapseBehavior:n="collapse",collapsed:r=!1,theme:i={},className:o,...s})=>{let a=Qe(Ye().theme.sidebar,i);return(0,mM.jsx)(Rq.Provider,{value:{isCollapsed:r},children:(0,mM.jsx)(t,{"aria-label":"Sidebar",hidden:r&&n==="hide",className:(0,Oye.default)(a.root.base,a.root.collapsed[r?"on":"off"],o),...s,children:(0,mM.jsx)("div",{className:a.root.inner,children:e})})})};Eye.displayName="Sidebar";var c4n=Object.assign(Eye,{Collapse:Jq,CTA:Lq,Item:jq,Items:Xq,ItemGroup:Wq,Logo:Sye});var Hx=ie(St()),Mye=ie(Gt());var jX=({className:e,color:t="info",light:n,size:r="md",theme:i={},...o})=>{let s=Qe(Ye().theme.spinner,i);return(0,Hx.jsx)("span",{role:"status",...o,children:(0,Hx.jsxs)("svg",{fill:"none",viewBox:"0 0 100 101",className:(0,Mye.default)(s.base,s.color[t],s.light[n?"on":"off"].base,s.light[n?"on":"off"].color[t],s.size[r],e),children:[(0,Hx.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,Hx.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})})};jX.displayName="Spinner";var _g=ie(St()),gM=ie(Gt()),qa=ie(Pe());var Bye=ie(St()),Nye=({children:e,className:t})=>(0,Bye.jsx)("div",{className:t,children:e});Nye.displayName="Tabs.Item";var Vdt=(0,qa.forwardRef)(({children:e,className:t,onActiveTabChange:n,style:r="default",theme:i={},...o},s)=>{let a=Qe(Ye().theme.tab,i),l=(0,qa.useId)(),u=(0,qa.useMemo)(()=>qa.Children.map(e,({props:y})=>y),[e]),c=(0,qa.useRef)([]),[f,d]=(0,qa.useState)(Math.max(0,u.findIndex(y=>y.active))),[h,m]=(0,qa.useState)(-1),g=y=>{d(y),n&&n(y)},b=({target:y})=>{g(y),m(y)},v=({event:y,target:_})=>{y.key==="ArrowLeft"&&m(Math.max(0,h-1)),y.key==="ArrowRight"&&m(Math.min(u.length-1,h+1)),y.key==="Enter"&&(g(_),m(_))},x=a.tablist.tabitem.styles[r];return(0,qa.useEffect)(()=>{c.current[h]?.focus()},[h]),(0,qa.useImperativeHandle)(s,()=>({setActiveTab:g})),(0,_g.jsxs)("div",{className:(0,gM.default)(a.base,t),children:[(0,_g.jsx)("div",{"aria-label":"Tabs",role:"tablist",className:(0,gM.default)(a.tablist.base,a.tablist.styles[r],t),...o,children:u.map((y,_)=>(0,_g.jsxs)("button",{type:"button","aria-controls":`${l}-tabpanel-${_}`,"aria-selected":_===f,className:(0,gM.default)(a.tablist.tabitem.base,{...x},{[x.active.on]:_===f,[x.active.off]:_!==f&&!y.disabled}),disabled:y.disabled,id:`${l}-tab-${_}`,onClick:()=>b({target:_}),onKeyDown:w=>v({event:w,target:_}),ref:w=>c.current[_]=w,role:"tab",tabIndex:_===h?0:-1,children:[y.icon&&(0,_g.jsx)(y.icon,{className:a.tablist.tabitem.icon}),y.title]},_))}),(0,_g.jsx)("div",{children:u.map((y,_)=>(0,_g.jsx)("div",{"aria-labelledby":`${l}-tab-${_}`,className:a.tabpanel,hidden:_!==f,id:`${l}-tabpanel-${_}`,role:"tabpanel",tabIndex:0,children:y.children},_))})]})});Vdt.displayName="Tabs.Group";var Wx=ie(St()),yM=ie(Gt());var Gye=ie(St()),Fye=ie(Gt());var qq=({children:e,className:t,theme:n={},...r})=>{let i=Qe(Ye().theme.table.body,n);return(0,Gye.jsx)("tbody",{className:(0,Fye.default)(i.base,t),...r,children:e})};var Iye=ie(St()),zye=ie(Gt());var $q=({children:e,className:t,theme:n={},...r})=>{let i=Qe(Ye().theme.table.body.cell,n);return(0,Iye.jsx)("td",{className:(0,zye.default)(i.base,t),...r,children:e})};var vM=ie(Pe()),Kq=(0,vM.createContext)(void 0);function Tye(){let e=(0,vM.useContext)(Kq);if(!e)throw new Error("useTableContext should be used within the TableContext provider!");return e}var Yq=ie(St()),Dye=ie(Gt());var Zq=({children:e,className:t,theme:n={},...r})=>{let i=Qe(Ye().theme.table,n);return(0,Yq.jsx)("thead",{className:(0,Dye.default)(i.head.base,t),...r,children:(0,Yq.jsx)("tr",{children:e})})};var Rye=ie(St()),Lye=ie(Gt());var Uq=({children:e,className:t,theme:n={},...r})=>{let i=Qe(Ye().theme.table.head.cell,n);return(0,Rye.jsx)("th",{className:(0,Lye.default)(i.base,t),...r,children:e})};var Vye=ie(St()),Jye=ie(Gt());var Qq=({children:e,className:t,theme:n={},...r})=>{let{hoverable:i,striped:o}=Tye(),s=Qe(Ye().theme.table.row,n);return(0,Vye.jsx)("tr",{"data-testid":"table-row-element",className:(0,Jye.default)(s.base,o&&s.striped,i&&s.hovered,t),...r,children:e})};var jye=({children:e,className:t,hoverable:n,striped:r,theme:i={},...o})=>{let s=Qe(Ye().theme.table,i);return(0,Wx.jsx)("div",{"data-testid":"table-element",className:(0,yM.default)(s.root.wrapper),children:(0,Wx.jsxs)(Kq.Provider,{value:{striped:r,hoverable:n},children:[(0,Wx.jsx)("div",{className:(0,yM.default)(s.root.shadow,t)}),(0,Wx.jsx)("table",{className:(0,yM.default)(s.root.base,t),...o,children:e})]})})};jye.displayName="Table";Zq.displayName="Table.Head";qq.displayName="Table.Body";Qq.displayName="Table.Row";$q.displayName="Table.Cell";Uq.displayName="Table.HeadCell";var W4n=Object.assign(jye,{Head:Zq,Body:qq,Row:Qq,Cell:$q,HeadCell:Uq});var Xu=ie(St()),e$=ie(Gt()),Hye=ie(Pe());var Jdt=(0,Hye.forwardRef)(({addon:e,className:t,color:n="gray",helperText:r,icon:i,rightIcon:o,shadow:s,sizing:a="md",theme:l={},...u},c)=>{let f=Qe(Ye().theme.textInput,l);return(0,Xu.jsxs)(Xu.Fragment,{children:[(0,Xu.jsxs)("div",{className:(0,e$.default)(f.base,t),children:[e&&(0,Xu.jsx)("span",{className:f.addon,children:e}),(0,Xu.jsxs)("div",{className:f.field.base,children:[i&&(0,Xu.jsx)("div",{className:f.field.icon.base,children:(0,Xu.jsx)(i,{className:f.field.icon.svg})}),o&&(0,Xu.jsx)("div",{"data-testid":"right-icon",className:f.field.rightIcon.base,children:(0,Xu.jsx)(o,{className:f.field.rightIcon.svg})}),(0,Xu.jsx)("input",{className:(0,e$.default)(f.field.input.base,f.field.input.colors[n],f.field.input.withIcon[i?"on":"off"],f.field.input.withAddon[e?"on":"off"],f.field.input.withShadow[s?"on":"off"],f.field.input.sizes[a]),...u,ref:c})]})]}),r&&(0,Xu.jsx)(F0,{color:n,children:r})]})});Jdt.displayName="TextInput";var Q2=ie(St()),Wye=ie(Gt()),Xye=ie(Pe());var jdt=(0,Xye.forwardRef)(({className:e,color:t="gray",helperText:n,shadow:r,theme:i={},...o},s)=>{let a=Qe(Ye().theme.textarea,i);return(0,Q2.jsxs)(Q2.Fragment,{children:[(0,Q2.jsx)("textarea",{ref:s,className:(0,Wye.default)(a.base,a.colors[t],a.withShadow[r?"on":"off"],e),...o}),n&&(0,Q2.jsx)(F0,{color:t,children:n})]})});jdt.displayName="Textarea";var l$=ie(St()),r6e=ie(Gt());var qye=ie(St()),$ye=ie(Gt());var t$=({children:e,className:t,theme:n={},...r})=>{let i=Qe(Ye().theme.timeline.item.content,n).body;return(0,qye.jsx)("div",{className:(0,$ye.default)(i,t),...r,children:e})};var Kye=ie(St()),Yye=ie(Gt());var xM=ie(Pe()),n$=(0,xM.createContext)(void 0);function Xx(){let e=(0,xM.useContext)(n$);if(!e)throw new Error("useTimelineContext should be used within the TimelineContext providor!");return e}var r$=({children:e,className:t,theme:n={},...r})=>{let i=Qe(Ye().theme.timeline.item.content,n),{horizontal:o}=Xx();return(0,Kye.jsx)("div",{"data-testid":"timeline-content",className:(0,Yye.default)(o&&i.root.base,t),...r,children:e})};var Zye=ie(St()),Uye=ie(Gt());var i$=({children:e,className:t,theme:n={},...r})=>{let i=Qe(Ye().theme.timeline.item,n),{horizontal:o}=Xx();return(0,Zye.jsx)("li",{"data-testid":"timeline-item",className:(0,Uye.default)(o&&i.root.horizontal,!o&&i.root.vertical,t),...r,children:e})};var ey=ie(St()),qx=ie(Gt());var o$=({children:e,className:t,icon:n,theme:r={},...i})=>{let o=Qe(Ye().theme.timeline.item.point,r),{horizontal:s}=Xx();return(0,ey.jsxs)("div",{"data-testid":"timeline-point",className:(0,qx.default)(s&&o.horizontal,!s&&o.vertical,t),...i,children:[e,n?(0,ey.jsx)("span",{className:(0,qx.default)(o.marker.icon.wrapper),children:(0,ey.jsx)(n,{"aria-hidden":!0,className:(0,qx.default)(o.marker.icon.base)})}):(0,ey.jsx)("div",{className:(0,qx.default)(s&&o.marker.base.horizontal,!s&&o.marker.base.vertical)}),s&&(0,ey.jsx)("div",{className:(0,qx.default)(o.line)})]})};var Qye=ie(St()),e6e=ie(Gt());var s$=({children:e,className:t,theme:n={},...r})=>{let i=Qe(Ye().theme.timeline.item.content,n).time;return(0,Qye.jsx)("time",{className:(0,e6e.default)(i,t),...r,children:e})};var t6e=ie(St()),n6e=ie(Gt());var a$=({as:e="h3",children:t,className:n,theme:r={},...i})=>{let o=Qe(Ye().theme.timeline.item.content,r).title;return(0,t6e.jsx)(e,{className:(0,n6e.default)(o,n),...i,children:t})};var i6e=({children:e,className:t,horizontal:n,theme:r={},...i})=>{let o=Qe(Ye().theme.timeline,r);return(0,l$.jsx)(n$.Provider,{value:{horizontal:n},children:(0,l$.jsx)("ol",{"data-testid":"timeline-component",className:(0,r6e.default)(n&&o.root.direction.horizontal,!n&&o.root.direction.vertical,t),...i,children:e})})};i6e.displayName="Timeline";i$.displayName="Timeline.Item";o$.displayName="Timeline.Point";r$.displayName="Timeline.Content";s$.displayName="Timeline.Time";a$.displayName="Timeline.Title";t$.displayName="Timeline.Body";var z5n=Object.assign(i6e,{Item:i$,Point:o$,Content:r$,Time:s$,Title:a$,Body:t$});var p$=ie(St()),a6e=ie(Gt()),f$=ie(Pe());var _M=ie(Pe()),u$=(0,_M.createContext)(void 0);function o6e(){let e=(0,_M.useContext)(u$);if(!e)throw new Error("useToastContext should be used within the ToastContext provider!");return e}var c$=ie(St()),s6e=ie(Gt());var d$=({className:e,onClick:t,theme:n={},xIcon:r=FE,...i})=>{let o=Qe(Ye().theme.toast.toggle,n),{duration:s,isClosed:a,isRemoved:l,setIsClosed:u,setIsRemoved:c}=o6e();return(0,c$.jsx)("button",{"aria-label":"Close",onClick:d=>{t&&t(d),u(!a),setTimeout(()=>c(!l),s)},type:"button",className:(0,s6e.default)(o.base,e),...i,children:(0,c$.jsx)(r,{"aria-hidden":!0,className:o.icon})})};var Hdt={75:"duration-75",100:"duration-100",150:"duration-150",200:"duration-200",300:"duration-300",500:"duration-500",700:"duration-700",1e3:"duration-1000"},l6e=({children:e,className:t,duration:n=300,theme:r={},...i})=>{let[o,s]=(0,f$.useState)(!1),[a,l]=(0,f$.useState)(!1),u=Qe(Ye().theme.toast,r);return(0,p$.jsx)(u$.Provider,{value:{duration:n,isClosed:o,isRemoved:a,setIsClosed:s,setIsRemoved:l},children:(0,p$.jsx)("div",{"data-testid":"flowbite-toast",className:(0,a6e.default)(u.root.base,Hdt[n],{[u.root.closed]:o},{[u.root.removed]:a},t),...i,children:e})})};l6e.displayName="Toast";d$.displayName="Toast.Toggle";var Y5n=Object.assign(l6e,{Toggle:d$});var z0=ie(St()),h$=ie(Gt()),u6e=ie(Pe());var Wdt=({checked:e,className:t,color:n="blue",disabled:r,label:i,name:o,onChange:s,theme:a={},...l})=>{let u=(0,u6e.useId)(),c=Qe(Ye().theme.toggleSwitch,a),f=()=>s(!e),d=m=>{m.preventDefault(),f()},h=m=>{m.preventDefault()};return(0,z0.jsxs)(z0.Fragment,{children:[o&&e&&(0,z0.jsx)("input",{checked:e,hidden:!0,name:o,readOnly:!0,type:"checkbox",className:"sr-only"}),(0,z0.jsxs)("button",{"aria-checked":e,"aria-labelledby":`${u}-flowbite-toggleswitch-label`,disabled:r,id:`${u}-flowbite-toggleswitch`,onClick:d,onKeyPress:h,role:"switch",tabIndex:0,type:"button",className:(0,h$.default)(c.root.base,c.root.active[r?"off":"on"],t),...l,children:[(0,z0.jsx)("div",{"data-testid":"flowbite-toggleswitch-toggle",className:(0,h$.default)(c.toggle.base,c.toggle.checked[e?"on":"off"],!r&&e&&c.toggle.checked.color[n])}),(0,z0.jsx)("span",{"data-testid":"flowbite-toggleswitch-label",id:`${u}-flowbite-toggleswitch-label`,className:c.root.label,children:i})]})]})};Wdt.displayName="ToggleSwitch";var c6e=ie(St());var Ec=({animation:e="duration-300",arrow:t=!0,children:n,className:r,content:i,placement:o="top",style:s="dark",theme:a={},trigger:l="hover",...u})=>{let c=Qe(Ye().theme.tooltip,a);return(0,c6e.jsx)(eM,{animation:e,arrow:t,content:i,placement:o,style:s,theme:c,trigger:l,className:r,...u,children:n})};Ec.displayName="Tooltip";var Xdt=({mode:e})=>bM.default.createElement("button",{type:"button",disabled:!0,className:"relative disabled -ml-px inline-flex items-center gap-x-1.5 rounded-r-md px-3 py-2 text-sm font-semibold text-gray-900 ring-1 ring-inset ring-gray-300 hover:bg-gray-50"},bM.default.createElement(Ec,{content:`Once you've published your Landing Page and collected some data, Instant AI can help you optimize your ${e} to increase your conversion rate.`,placement:"top",style:"dark",arrow:!1,animation:"duration-500",className:"w-max-md w-[300px] text-left"},bM.default.createElement(X1,{className:"-ml-0.5 h-5 w-5 text-gray-400"}))),wM=Xdt;var m$=ie(d6e());var o7=class extends It.Component{constructor(t){super(t),this.state={titleIdeas:{loading:!1,ideas:[]}},this.handleSuggestTitles=this.handleSuggestTitles.bind(this),this.isPro=this.isPro.bind(this)}isPro(){let{isLoggedIn:t,setLogin:n,userData:r,setUserData:i}=this.context;return r?.subscription?.plan=="pro"||r?.subscription?.plan=="vip"}static get propTypes(){return{page:i7.default.object,user:i7.default.object,onChange:i7.default.func,onNextStep:i7.default.func}}async handleSuggestTitles(){this.setState({titleIdeas:{loading:!0,ideas:[]}});let t=await qle(this.props.page.id);if(t.success){let n=t.response.data;this.setState({titleIdeas:{loading:!1,ideas:n}})}else this.setState({titleIdeas:{loading:!1,error:!0,ideas:[]}})}render(){let{isLoggedIn:t,setLogin:n}=this.context;return It.default.createElement(It.default.Fragment,null,It.default.createElement("div",{className:"sm:col-span-6"},It.default.createElement("label",{className:"block text-medium font-bold text-gray-700"},"Describe your ideal customer:"),It.default.createElement("p",{className:"mt-1 text-sm  text-gray-500"},"Succinctly define your ideal customer that you'd like to acquire through this \u26A1\uFE0F Landing Page. The more specific the better."),It.default.createElement("div",{className:"mt-2"},It.default.createElement("input",{type:"text",name:"who",id:"who",autoComplete:"who",defaultValue:this.props.page.who,onChange:this.props.onChange,placeholder:"VPs of Marketing",className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"}))),!t&&It.default.createElement("div",{className:"sm:col-span-6"},It.default.createElement("div",{className:"border-l-4 border-slate-400 bg-slate-200 p-4"},It.default.createElement("div",{className:"flex"},It.default.createElement("div",{className:"flex-shrink-0"},It.default.createElement(X1,{className:"h-5 w-5 text-slate-400","aria-hidden":"true"})),It.default.createElement("div",{className:"ml-3"},It.default.createElement("p",{className:"text-sm text-slate-700"},"Once you publish your Instant Landing Page,"," ",It.default.createElement("a",{href:"https://instant.academy/promoting-your-lead-magnet",target:"_new",className:"font-medium text-blue-400 underline hover:text-blue-600"},"Instant Content AI")," ","will help you write social media posts and ADs to promote your landing page and generate warm leads."))))),It.default.createElement("div",{className:"sm:col-span-6"},It.default.createElement("p",{className:"block text-medium font-bold text-gray-700"},"The type of Lead Magnet:"),It.default.createElement("p",{className:"mt-1 text-sm  text-gray-500"},"Specify the kind of lead magnet you'll be offering on your Instant Landing Page that will convince your visitors to give their email and become leads. If you're just starting out, start with a simple PDF and iterate from there."),It.default.createElement("div",{className:"mt-4 columns-3 items-center"},It.default.createElement("div",{className:"border-dashed border-2 border-sky-500"},It.default.createElement("label",{htmlFor:"what_type_checklist",className:"text-sm font-medium text-gray-700 flex flex-col items-center space-y-1"},It.default.createElement(uJ,{className:"text-sm h-10"}),It.default.createElement("input",{id:"what_type_checklist",name:"what_type",type:"radio",checked:this.props.page.what_type=="checklist",value:"checklist",className:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300",onChange:this.props.onChange}),"Checklist")),It.default.createElement("div",{className:"border-dashed border-2 border-sky-500"},It.default.createElement("label",{htmlFor:"what_type_guide",className:"text-sm font-medium text-gray-700 flex flex-col items-center space-y-1"},It.default.createElement(Gb,{className:"text-sm h-10"}),It.default.createElement("input",{id:"what_type_guide",name:"what_type",type:"radio",checked:this.props.page.what_type=="guide",value:"guide",className:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300",onChange:this.props.onChange}),"Guide")),It.default.createElement("div",{className:"border-dashed border-2 border-sky-500"},It.default.createElement("label",{htmlFor:"what_type_training",className:"text-sm font-medium text-gray-700 flex flex-col items-center space-y-1"},It.default.createElement(AJ,{className:"text-sm h-10"}),It.default.createElement("input",{id:"what_type_training",name:"what_type",type:"radio",checked:this.props.page.what_type=="training",value:"training",className:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300",onChange:this.props.onChange}),"Video")))),It.default.createElement("div",{className:"sm:col-span-6"},It.default.createElement("label",{htmlFor:"about",className:"block text-medium font-bold text-gray-700"},"The name of your Lead Magnet:"),It.default.createElement("p",{className:"mt-1 text-sm  text-gray-500"},"Succinctly name your lead magnet that you'll be offering on your Instant landing page in exchange for a name and an email address."),It.default.createElement("div",{className:"mt-2 flex rounded-md shadow-sm"},It.default.createElement("div",{className:"relative flex flex-grow items-stretch focus-within:z-10"},It.default.createElement("input",{type:"text",name:"what",id:"what",autoComplete:"what",defaultValue:this.props.page.what,onChange:this.props.onChange,placeholder:`3-Point Ultimate ${m$.default.startCase(this.props.page.what_type)}`,className:"rounded-none rounded-l-md block w-full rounded-md border-0 py-1.5 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"})),t&&this.props.page.id!=null&&this.props.page.id!="new"?It.default.createElement("button",{type:"button",className:"relative -ml-px inline-flex items-center gap-x-1.5 rounded-r-md px-3 py-2 text-sm font-semibold text-gray-900 ring-1 ring-inset ring-gray-300 hover:bg-gray-50",onClick:this.handleSuggestTitles},It.default.createElement(X1,{className:"-ml-0.5 h-5 w-5 text-gray-400","aria-hidden":"true"})):It.default.createElement(wM,{mode:"Lead Magnet Name"})),!t&&this.props.page.what==""&&It.default.createElement("div",{className:"text-gray-800 text-sm mt-2 "},It.default.createElement("a",{className:"text-blue-500 text-underline cursor-pointer hover:text-blue-600",onClick:r=>{r.preventDefault(),this.props.onChange({target:{id:"what",value:`3-Point Ultimate ${m$.default.startCase(this.props.page.what_type)}`}})}},"Click here to start with a simple name for now")),t&&(this.state.titleIdeas.loading||this.state.titleIdeas.error||this.state.titleIdeas.ideas&&this.state.titleIdeas.ideas.length>0)&&It.default.createElement("div",{className:"text-sm text-gray-900 ring-1 ring-inset ring-gray-300 mt-4 p-4 rounded-md"},this.state.titleIdeas.loading&&It.default.createElement("p",null,"Summoning the greatest marketer in the world to come up with some title ideas for you..."),this.state.titleIdeas.error&&It.default.createElement("p",null,"Sorry, we weren't able to generate ideas. Please try again later."),this.state.titleIdeas.ideas.length>0&&It.default.createElement("ul",null,this.state.titleIdeas.ideas.map((r,i)=>It.default.createElement("li",{key:i,className:"mb-2 cursor-pointer hover:bg-gray-100 leading-6 p-1",onClick:()=>this.props.onChange({target:{id:"what",value:r}})},r))))),!t&&!1,this.props.page.what_type=="training"&&It.default.createElement("div",{className:"sm:col-span-6"},It.default.createElement("label",{className:"block text-medium font-bold text-gray-700"},"Video Lead Form"),It.default.createElement("p",{className:"mt-2 text-sm  text-gray-500"},"We recommend letting the visitor preview your video for a few seconds and then showing the lead form. This way they are more likely to opt-in."),It.default.createElement("div",{className:"mt-4"},It.default.createElement("label",{className:"block text-sm font-normal text-gray-700"},"How long do you want the visitor to preview your video before showing the lead form?"),It.default.createElement("div",{className:"flex mt-2 rounded-md shadow-sm ring-1 ring-inset ring-gray-300 focus:ring-indigo-500 focus:border-indigo-500 focus-within:ring-2 focus-within:ring-inset focus-within:ring-indigo-600 sm:max-w-md"},It.default.createElement("input",{type:"text",name:"vsl_show_lead_form_at",id:"vsl_show_lead_form_at",autoComplete:"vsl_show_lead_form_at",defaultValue:this.props.page.vsl_show_lead_form_at,onChange:this.props.onChange,className:"block flex-1 border-0 bg-transparent py-1.5 pr-1 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm sm:leading-6",placeholder:"10"}),It.default.createElement("span",{className:"flex select-none items-center pr-3 text-gray-500 sm:text-sm"},"seconds")))),It.default.createElement("div",{className:"sm:col-span-6"},It.default.createElement("label",{htmlFor:"about",className:"block text-medium font-bold text-gray-700"},t?"Instant Branding:":"Make it your own style:"),It.default.createElement("p",{className:"mt-1 text-sm  text-gray-500"},"You can customize the look and feel of your Instant Landing Page to fit your brand. We keep these choices simple and elegant to increase the conversion rate of your landing page."),It.default.createElement("div",null,It.default.createElement("div",{className:"mt-4 rounded-md shadow-sm"},It.default.createElement("span",{className:"rounded-full bg-gray-100 text-black text-xs px-2 py-1"},"Cover Color"),It.default.createElement("div",{className:"mt-2 flex rounded-md shadow-sm"},It.default.createElement(Iw,{onChange:r=>{console.log("value",r),this.props.onChange({target:{id:"cover_background_color",value:r}})},page:this.props.page,value:this.props.page.cover_background_color||"bg-gray-800",options:[{value:"bg-gray-800"},{value:"bg-emerald-800"},{value:"bg-violet-800"},{value:"bg-rose-800"},{value:"bg-lime-800"},{value:"bg-cyan-800"}]}))),It.default.createElement("div",{className:"mt-4 rounded-md shadow-sm"},It.default.createElement("span",{className:"rounded-full bg-gray-100 text-black text-xs px-2 py-1"},"Spine Color"),It.default.createElement("div",{className:"mt-2 flex rounded-md shadow-sm"},It.default.createElement(Iw,{onChange:r=>{this.props.onChange({target:{id:"cover_spine_color",value:r}})},page:this.props.page,value:this.props.page.cover_spine_color||"bg-yellow-300",options:[{value:"bg-yellow-300"},{value:"bg-red-500"},{value:"bg-yellow-500"},{value:"bg-teal-500"},{value:"bg-purple-800"},{value:"bg-orange-800"}]}))),It.default.createElement("div",{className:"mt-4 rounded-md shadow-sm"},It.default.createElement("span",{className:"rounded-full bg-gray-100 text-black text-xs px-2 py-1"},"Background Pattern & Color"),It.default.createElement("div",{className:"mt-2 flex rounded-md shadow-sm"},It.default.createElement(Iw,{onChange:r=>{this.props.onChange({target:{id:"cover_background_pattern_color",value:r.replace("bg-","")}})},page:this.props.page,value:"bg-"+(this.props.page.cover_background_pattern_color||"bg-blue-300"),options:[{value:"bg-blue-300"},{value:"bg-gray-300"},{value:"bg-indigo-300"},{value:"bg-pink-300"},{value:"bg-green-300"},{value:"bg-teal-300"}]})),It.default.createElement("div",{className:"mt-2 flex rounded-md shadow-sm"},It.default.createElement(Iw,{onChange:r=>{this.props.onChange({target:{id:"cover_background_pattern",value:r.replace("-gray-800","")}})},page:this.props.page,value:this.props.page.cover_background_pattern+"-gray-800"||"",options:[{value:""},{value:"heropattern-topography-gray-800"},{value:"heropattern-intersectingcircles-gray-800"},{value:"heropattern-architect-gray-800"},{value:"heropattern-graphpaper-gray-800"},{value:"heropattern-hexagons-gray-800"},{value:"heropattern-randomshapes-gray-800"},{value:"heropattern-happyintersection-gray-800"},{value:"heropattern-fancyrectangles-gray-800"},{value:"heropattern-roundedplusconnected-gray-800"},{value:"heropattern-connections-gray-800"},{value:"heropattern-stripes-gray-800"}]}))))),It.default.createElement("div",{className:"pt-4 sm:col-span-6 w-full border-t-2"},It.default.createElement("button",{type:"submit",onClick:this.props.onNextStep,className:"w-full py-2 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},"Next \u2192")))}};Kt(o7,"contextType",Vr);var Jt=ie(Pe()),Kx=ie(Jp());var s7=class extends Jt.Component{constructor(t){super(t),this.state={initialSegmentArray:[0,1,2,3,4],credibilityIdeas:{loading:!1,ideas:[]}},this.handleSuggestCredibility=this.handleSuggestCredibility.bind(this)}static get propTypes(){return{page:Kx.default.object,user:Kx.default.object,onChange:Kx.default.func,onNextStep:Kx.default.func,onPrevStep:Kx.default.func}}async handleSuggestCredibility(){this.setState({credibilityIdeas:{loading:!0,ideas:[]}});let t=await $le(this.props.page.id);if(t.success){let n=t.response.data;this.setState({credibilityIdeas:{loading:!1,ideas:n}})}else this.setState({credibilityIdeas:{loading:!1,error:!0,ideas:[]}})}render(){let{isLoggedIn:t,setLogin:n}=this.context;return Jt.default.createElement(Jt.default.Fragment,null,Jt.default.createElement("div",{className:"sm:col-span-6"},Jt.default.createElement("label",{className:"block text-medium font-bold text-gray-700"},"What they get inside the ",this.props.page.what_type,":"),Jt.default.createElement("p",{className:"mt-1 text-sm  text-gray-500"},"Simply describe what kind of value they'll get inside the ",this.props.page.what_type," in exchange for their contact information."),Jt.default.createElement("div",{className:"mt-2"},Jt.default.createElement("textarea",{name:"what_get",id:"what_get",rows:2,autoComplete:"what_get",defaultValue:this.props.page.what_get,onChange:this.props.onChange,placeholder:"5 critical components to building a landing page",className:"rounded-md block w-full rounded-md border-0 py-1.5 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"}))),Jt.default.createElement("div",{className:"sm:col-span-6"},Jt.default.createElement("label",{className:"block text-medium font-bold text-gray-700"},"The ultimate result your audience wants:"),Jt.default.createElement("p",{className:"mt-1 text-sm  text-gray-500"},"Succinctly define the ultimate result your audience wants that your"," ",this.props.page.what_type," will help them get closer to."),Jt.default.createElement("div",{className:"mt-2"},Jt.default.createElement("textarea",{name:"what_want",id:"what_want",rows:2,autoComplete:"what_want",defaultValue:this.props.page.what_want,onChange:this.props.onChange,placeholder:"accelerate your path to the next stage of growth",className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"}))),Jt.default.createElement("div",{className:"sm:col-span-6"},Jt.default.createElement("label",{className:"block text-medium font-bold text-gray-700"},"Build trust and/or social proof:"),Jt.default.createElement("p",{className:"mt-1 text-sm  text-gray-500"},"Succinctly articulate why you are credible in providing this information."),Jt.default.createElement("div",{className:"mt-2 flex rounded-md shadow-sm"},Jt.default.createElement("div",{className:"relative flex flex-grow items-stretch focus-within:z-10"},Jt.default.createElement("textarea",{id:"why",name:"why",rows:3,defaultValue:this.props.page.why,onChange:this.props.onChange,placeholder:"It's all the principles we've used to help our customers...",className:"rounded-none rounded-l-md block w-full rounded-md border-0 py-1.5 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"})),t&&this.props.page.id!=null&&this.props.page.id!="new"?Jt.default.createElement("button",{type:"button",className:"relative -ml-px inline-flex items-center gap-x-1.5 rounded-r-md px-3 py-2 text-sm font-semibold text-gray-900 ring-1 ring-inset ring-gray-300 hover:bg-gray-50",onClick:this.handleSuggestCredibility},Jt.default.createElement(X1,{className:"-ml-0.5 h-5 w-5 text-gray-400","aria-hidden":"true"})):Jt.default.createElement(wM,{mode:"credbility/trust messaging"})),t&&(this.state.credibilityIdeas.loading||this.state.credibilityIdeas.error||this.state.credibilityIdeas.ideas&&this.state.credibilityIdeas.ideas.length>0)&&Jt.default.createElement("div",{className:"text-sm text-gray-900 ring-1 ring-inset ring-gray-300 mt-4 p-4 rounded-md"},this.state.credibilityIdeas.loading&&Jt.default.createElement("p",null,"Summoning the greatest marketer in the world to come up with some credibility ideas for you..."),this.state.credibilityIdeas.error&&Jt.default.createElement("p",null,"Sorry, we weren't able to generate ideas. Please try again later."),this.state.credibilityIdeas.ideas.length>0&&Jt.default.createElement("ul",null,this.state.credibilityIdeas.ideas.map((r,i)=>Jt.default.createElement("li",{key:i,className:"mb-2 cursor-pointer hover:bg-gray-100 leading-6 p-1",onClick:()=>this.props.onChange({target:{id:"why",value:r}})},r))))),this.props.page.id!=null&&this.props.page.id!=null&&this.props.page.id!="new"&&Jt.default.createElement("div",{className:"sm:col-span-6"},Jt.default.createElement("label",{className:"block text-medium font-bold text-gray-700"},"Additional Instant lead form options:"),Jt.default.createElement("p",{className:"mt-2 text-sm  text-gray-500"},"Please note that changes to these options may negtiatively impact your conversion rate."),Jt.default.createElement("label",{className:"block text-sm font-medium leading-5 text-gray-700 mt-4"},Jt.default.createElement("input",{type:"checkbox",className:"form-checkbox",id:"business_email_only",name:"business_email_only",autoComplete:"business_email_only",checked:this.props.page.business_email_only,onChange:this.props.onChange}),Jt.default.createElement("span",{className:"ml-2"},"Ask for a Business Email Address")),Jt.default.createElement("label",{className:"block text-sm font-medium leading-5 text-gray-700 mt-4"},Jt.default.createElement("input",{type:"checkbox",className:"form-checkbox",id:"collect_phone",name:"collect_phone",autoComplete:"collect_phone",checked:this.props.page.collect_phone,onChange:this.props.onChange}),Jt.default.createElement("span",{className:"ml-2"},"Ask for Mobile Phone Number"))),this.props.page.id!=null&&this.props.page.id!=null&&this.props.page.id!="new"&&Jt.default.createElement("div",{className:"sm:col-span-6"},Jt.default.createElement("label",{className:"block text-medium font-bold text-gray-700"},"Help your audience self-identify:"),Jt.default.createElement("p",{className:"mt-1 text-sm  text-gray-500"},"Specify up to 5 segments that your audience may fit into and whether they're in your ICP (Ideal Customer Profile)."),this.state.initialSegmentArray.map(r=>Jt.default.createElement("div",{className:"mt-2 flex flex-row gap-2",key:"stage_"+r},Jt.default.createElement("div",{className:"w-3/6"},Jt.default.createElement("input",{type:"text",name:"stage_label_"+r,id:"stage_label_"+r,autoComplete:"stage_label",defaultValue:this.props.page.stages&&this.props.page.stages.length>0&&this.props.page.stages[r]?this.props.page.stages[r].label:"",onChange:this.props.onChange,placeholder:"Label",className:"w-full shadow-sm focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm border-gray-300 rounded-md"})),Jt.default.createElement("div",{className:"w-2/6"},Jt.default.createElement("input",{type:"text",name:"stage_value_"+r,id:"stage_value_"+r,autoComplete:"stage_value",defaultValue:this.props.page.stages&&this.props.page.stages.length>0&&this.props.page.stages[r]?this.props.page.stages[r].value:"",onChange:this.props.onChange,placeholder:"Value",className:"w-full shadow-sm focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm border-gray-300 rounded-md"})),Jt.default.createElement("div",{className:"w-1/6 align-middle"},Jt.default.createElement("label",{className:"text-sm text-gray-700 w-full align-middle block mt-2"},Jt.default.createElement("input",{type:"checkbox",name:"stage_icp_"+r,id:"stage_icp_"+r,autoComplete:"stage_icp",defaultChecked:this.props.page.stages&&this.props.page.stages.length>0&&this.props.page.stages[r]?!!this.props.page.stages[r].icp:!1,onChange:this.props.onChange,placeholder:"5 critical components to building a landing page",className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm border-gray-300 rounded-md mr-2"}),"ICP"))))),this.props.page.id!=null&&this.props.page.id!=null&&this.props.page.id!="new"&&Jt.default.createElement("div",{className:"sm:col-span-6"},Jt.default.createElement("label",{className:"block text-medium font-bold text-gray-700"},"Privacy Policy & Terms of Service"),Jt.default.createElement("p",{className:"mt-2 text-sm  text-gray-500"},"We recommend adding a copyright notice along with links to your Privacy Policy and Terms of Service."),Jt.default.createElement("div",{className:"mt-4"},Jt.default.createElement("label",{className:"block text-xs font-normal text-gray-700"},"Company Name / Legal Entity"),Jt.default.createElement("input",{type:"text",name:"company_name",id:"company_name",autoComplete:"company_name",defaultValue:this.props.page.company_name,onChange:this.props.onChange,className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"})),Jt.default.createElement("div",{className:"mt-4"},Jt.default.createElement("label",{className:"block text-xs font-normal text-gray-700"},"Link to your Privacy Policy"),Jt.default.createElement("input",{type:"text",name:"privacy_policy_url",id:"privacy_policy_url",autoComplete:"privacy_policy_url",defaultValue:this.props.page.privacy_policy_url,onChange:this.props.onChange,placeholder:"https://",className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"})),Jt.default.createElement("div",{className:"mt-4"},Jt.default.createElement("label",{className:"block text-xs font-normal text-gray-700"},"Link to your Terms of Service"),Jt.default.createElement("input",{type:"text",name:"tos_url",id:"tos_url",autoComplete:"tos_url",defaultValue:this.props.page.tos_url,onChange:this.props.onChange,placeholder:"https://",className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"}))),this.props.page.id!=null&&this.props.page.id!=null&&this.props.page.id!="new"&&Jt.default.createElement("div",{className:"sm:col-span-6"},Jt.default.createElement("label",{className:"block text-medium font-bold text-gray-700"},"Personalized URL"),Jt.default.createElement("p",{className:"mt-2 text-sm  text-gray-500"},"You can point a subdomain to Instant so that you have a personalized URL. Just add a CNAME record pointing to"," ",Jt.default.createElement("strong",{className:"bg-yellow-100"},"instant-4u83.onrender.com")," and enter the subdomain below."),Jt.default.createElement("div",{className:"mt-4"},Jt.default.createElement("label",{className:"block text-xs font-normal text-gray-700"},"Custom Subdomain"),Jt.default.createElement("input",{type:"text",name:"custom_domain",id:"custom_domain",autoComplete:"custom_domain",defaultValue:this.props.page.custom_domain,onChange:this.props.onChange,placeholder:"instantly.gg",className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"}))),Jt.default.createElement("div",{className:"pt-0 columns-2 sm:col-span-6 w-full flex gap-1"},Jt.default.createElement("button",{type:"submit",onClick:this.props.onPrevStep,className:"w-full py-2 border border-transparent shadow-sm text-sm font-medium rounded-md text-black bg-slate-200 hover:bg-slate-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500"},"\u2190 Go Back"),Jt.default.createElement("button",{type:"submit",onClick:this.props.onNextStep,className:"w-full py-2 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},"Next \u2192")))}};Kt(s7,"contextType",Vr);var $t=ie(Pe()),t4=ie(Jp());var mK=ie(Nxe(),1);var D7=class extends $t.Component{constructor(t){super(t),this.state={}}static get propTypes(){return{page:t4.default.object,user:t4.default.object,onChange:t4.default.func,onNextStep:t4.default.func,onPrevSte:t4.default.func}}render(){let{isLoggedIn:t,setLogin:n}=this.context;return $t.default.createElement($t.default.Fragment,null,t&&$t.default.createElement("div",{className:"sm:col-span-6"},$t.default.createElement("label",{htmlFor:"about",className:"block text-medium font-bold text-gray-700"},$t.default.createElement("a",{href:"https://instant.academy/set-up-your-lead-magnet",target:"_blank",className:"float-left"},$t.default.createElement(Fj,{className:"h-6 w-6 float-left mr-1 hover:text-blue-500","aria-hidden":"true"})),"The"," ",$t.default.createElement("a",{href:"https://instant.academy/set-up-your-lead-magnet",target:"_blank",className:"text-underline text-blue-500"},"link to your ",this.props.page.what_type),":"),$t.default.createElement("div",{className:"mt-2"},$t.default.createElement("input",{type:"text",name:"pdf_url",id:"pdf_url",autoComplete:"pdf_url",defaultValue:this.props.page.pdf_url,onChange:this.props.onChange,placeholder:"https://",className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"}))),$t.default.createElement("div",{className:"sm:col-span-6"},$t.default.createElement("label",{className:"block text-medium font-bold text-gray-700"},"Your Call to Action:"),$t.default.createElement("p",{className:"mt-1 text-sm  text-gray-500"},"What is the ONE thing you want your ideal customers to do after they get access to your ",this.props.page.what_type,"?"),$t.default.createElement("div",{className:"mt-2"},$t.default.createElement("select",{id:"cta",name:"cta",autoComplete:"cta",className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:this.props.onChange,value:this.props.page.cta},$t.default.createElement("option",{value:"Book Your Strategy Call"},"Book Your Strategy Call"),$t.default.createElement("option",{value:"Schedule a Demo"},"Schedule a Demo"),$t.default.createElement("option",{value:"Start FREE Trial"},"Start FREE Trial"),$t.default.createElement("option",{value:"Learn More"},"Learn More")))),$t.default.createElement("div",{className:"sm:col-span-6"},$t.default.createElement("label",{className:"block text-medium font-bold text-gray-700"},"Your Value Proposition:"),$t.default.createElement("p",{className:"mt-1 text-sm  text-gray-500"},"What does your ideal customer get out of clicking on your Call to Action and taking action on it?"),$t.default.createElement("div",{className:"mt-2"},$t.default.createElement("textarea",{id:"cta_value_prop",name:"cta_value_prop",rows:3,defaultValue:this.props.page.cta_value_prop,onChange:this.props.onChange,placeholder:"Book a call with our sales team to learn how we can help you grow your business.",className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border border-gray-300 rounded-md"}))),$t.default.createElement("div",{className:"sm:col-span-6"},$t.default.createElement("label",{className:"block text-medium font-bold text-gray-700"},"URL you want to direct them to when they click on your CTA:"),$t.default.createElement("div",{className:"mt-2"},$t.default.createElement("input",{type:"text",name:"cta_url",id:"cta_url",autoComplete:"cta_url",defaultValue:this.props.page.cta_url,onChange:this.props.onChange,placeholder:"Drive Growth",className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"}))),this.props.page.id!=null&&this.props.page.id!=null&&this.props.page.id!="new"&&$t.default.createElement("div",{className:"sm:col-span-6"},$t.default.createElement("label",{className:"block text-medium font-bold text-gray-700"},"CTA Timing"),$t.default.createElement("p",{className:"mt-2 text-sm  text-gray-500"},"For PDFs, we recommend showing the CTA right away. For videos, we recommend showing it when you're making your offer in the video."),$t.default.createElement("div",{className:"mt-4"},$t.default.createElement("label",{className:"block text-sm font-normal text-gray-700"},this.props.page.what_type=="training"?$t.default.createElement($t.default.Fragment,null,"At what point during your video do you want to show your CTA?"):$t.default.createElement($t.default.Fragment,null,"How long do you want the visitor to be on the page before showing the CTA?")),$t.default.createElement("div",{className:"flex mt-2 rounded-md shadow-sm ring-1 ring-inset ring-gray-300 focus:ring-indigo-500 focus:border-indigo-500 focus-within:ring-2 focus-within:ring-inset focus-within:ring-indigo-600 sm:max-w-md"},$t.default.createElement("input",{type:"text",name:"show_cta_at",id:"show_cta_at",autoComplete:"show_cta_at",defaultValue:this.props.page.show_cta_at,onChange:this.props.onChange,className:"block flex-1 border-0 bg-transparent py-1.5 pr-1 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm sm:leading-6",placeholder:"0"}),$t.default.createElement("span",{className:"flex select-none items-center pr-3 text-gray-500 sm:text-sm"},"seconds")))),this.props.page.id!=null&&this.props.page.id!=null&&this.props.page.id!="new"&&$t.default.createElement("div",{className:"sm:col-span-6"},$t.default.createElement("label",{className:"block text-medium font-bold text-gray-700"},$t.default.createElement("span",{className:" bg-slate-200 text-slate-600 py-1 px-2 mr-1 ml-0 rounded-md"},"Optional"),"Conversion Attribution:"),$t.default.createElement("p",{className:"mt-2 text-sm  text-gray-500"},"Instant can automatically fire tracking events to your Google, Facebook and/or LinkedIn tracking pixels. If you have an ICP defined, we'll only fire conversion events for ICP leads so that it trains the algorithm to send more ICP leads."),$t.default.createElement("div",{className:"mt-4 columns-2"},$t.default.createElement("label",{className:"block text-xs font-normal text-gray-700"},"Google Tag ID"),$t.default.createElement("input",{type:"text",name:"google_partner_id",id:"google_partner_id",autoComplete:"google_partner_id",defaultValue:this.props.page.google_partner_id,onChange:this.props.onChange,className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"}),$t.default.createElement("label",{className:"block text-xs font-normal text-gray-700"},"Google Conversion ID"),$t.default.createElement("input",{type:"text",name:"google_conversion_id",id:"google_conversion_id",autoComplete:"google_conversion_id",defaultValue:this.props.page.google_conversion_id,onChange:this.props.onChange,className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"})),$t.default.createElement("div",{className:"mt-4 columns-2"},$t.default.createElement("label",{className:"block text-xs font-normal text-gray-700"},"LinkedIn Partner ID"),$t.default.createElement("input",{type:"text",name:"linkedin_partner_id",id:"linkedin_partner_id",autoComplete:"linkedin_partner_id",defaultValue:this.props.page.linkedin_partner_id,onChange:this.props.onChange,className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"}),$t.default.createElement("label",{className:"block text-xs font-normal text-gray-700"},"LinkedIn Conversion ID"),$t.default.createElement("input",{type:"text",name:"linkedin_conversion_id",id:"linkedin_conversion_id",autoComplete:"linkedin_conversion_id",defaultValue:this.props.page.linkedin_conversion_id,onChange:this.props.onChange,className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"})),$t.default.createElement("div",{className:"mt-4"},$t.default.createElement("label",{className:"block text-xs font-normal text-gray-700"},"Facebook Pixel ID"),$t.default.createElement("input",{type:"text",name:"facebook_pixel_id",id:"facebook_pixel_id",autoComplete:"facebook_pixel_id",defaultValue:this.props.page.facebook_pixel_id,onChange:this.props.onChange,className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"}))),this.props.page.id!=null&&this.props.page.id!=null&&this.props.page.id!="new"&&$t.default.createElement("div",{className:"sm:col-span-6"},$t.default.createElement("label",{className:"block text-medium font-bold text-gray-700"},$t.default.createElement("span",{className:" bg-slate-200 text-slate-600 py-1 px-2 mr-1 ml-0 rounded-md"},"Optional"),"Category"),$t.default.createElement("p",{className:"mt-2 text-sm  text-gray-500"},"If you have a lot of Instant Pages, you can categorize them to make it easier to find them later."),$t.default.createElement("div",{className:"mt-2"},$t.default.createElement("input",{type:"text",name:"category",id:"category",autoComplete:"category",defaultValue:this.props.page.category,onChange:this.props.onChange,className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"}))),$t.default.createElement("div",{className:"pt-0 columns-2 sm:col-span-6 w-full flex gap-1"},$t.default.createElement("button",{type:"submit",onClick:this.props.onPrevStep,className:"w-full py-2 border border-transparent shadow-sm text-sm font-medium rounded-md text-black bg-slate-200 hover:bg-slate-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500"},"\u2190 Go Back"),$t.default.createElement("button",{type:"submit",onClick:this.props.onNextStep,className:"w-full py-2 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},this.props.isEdit?"Update Page":"Publish"," \u2192")))}};Kt(D7,"contextType",Vr);var aa=ie(Pe()),BZ=ie(Jp());var gK=class{constructor(){this.readyPromise=new Promise(t=>{window.AdobeDC?t():document.addEventListener("adobe_dc_view_sdk.ready",()=>{t()})}),this.adobeDCView=void 0}ready(){return this.readyPromise}previewFile(t,n,r,i){let o={clientId:window.bootstrap.pdf_client_id};return t&&(o.divId=t),this.adobeDCView=new window.AdobeDC.View(o),this.adobeDCView.previewFile({content:{location:{url:n}},metaData:{fileName:r,hasReadOnlyAccess:!0}},i)}previewFileUsingFilePromise(t,n,r){this.adobeDCView=new window.AdobeDC.View({clientId:window.bootstrap.pdf_client_id,divId:t}),this.adobeDCView.previewFile({content:{promise:n},metaData:{fileName:r}},{})}registerSaveApiHandler(){let t=(n,r,i)=>(console.log(n,r,i),new Promise(o=>{setTimeout(()=>{let s={code:window.AdobeDC.View.Enum.ApiResponseCode.SUCCESS,data:{metaData:Object.assign(n,{updatedAt:new Date().getTime()})}};o(s)},2e3)}));this.adobeDCView.registerCallback(window.AdobeDC.View.Enum.CallbackType.SAVE_API,t,{})}registerEventsHandler(t){this.adobeDCView.registerCallback(window.AdobeDC.View.Enum.CallbackType.EVENT_LISTENER,n=>{t(n)},{enablePDFAnalytics:!0})}},Gxe=gK;var Fxe=async(e,t)=>{try{return{success:!0,response:await Or({method:"get",url:"/lander/"+e,params:t,headers:{Accept:"application/json"}})}}catch(n){return{success:!1,response:n}}},Ixe=async(e,t)=>{try{return{success:!0,response:await Or({method:"post",url:"/lander/"+e,headers:{Accept:"application/json"},data:{page_entry:t}})}}catch(n){return{success:!1,response:n}}},zxe=async(e,t)=>{try{return{success:!0,response:await Or({method:"post",url:"/lander/"+e+"/track_engagement",headers:{Accept:"application/json"},data:t})}}catch(n){return{success:!1,response:n}}},Txe=async(e,t)=>{try{return{success:!0,response:await Or({method:"post",url:"/lander/"+e+"/track_clicks",headers:{Accept:"application/json"},data:t})}}catch(n){return{success:!1,response:n}}};var hG=ie(yK());var ci=ie(Pe()),pY=ie(Jp()),own=ie(Ex()),awn=ie(Fw()),U5e=ie($0());var Q5e=({page:e,mode:t,handleVideoProgress:n,getStartTime:r,showCTA:i})=>{let o=(0,ci.useRef)(null),s=()=>e.pdf_url&&e.pdf_url.includes("Placeholder")||o.current==null?"00:00 / 00:00":`${String(Math.floor(o.current.getCurrentTime()/60)).padStart(2,"0")}:${String(Math.floor(o.current.getCurrentTime()%60)).padStart(2,"0")} / ${String(Math.floor(o.current.getDuration()/60)).padStart(2,"0")}:${String(Math.floor(o.current.getDuration()%60)).padStart(2,"0")}`;return ci.default.createElement(ci.default.Fragment,null,ci.default.createElement("header",{className:"bg-white lg:bg-transparent lg:px-5"},ci.default.createElement("div",{className:"mx-auto grid max-w-5xl grid-cols-1 grid-rows-[auto_1fr] pt-2 md:pt-10 lg:grid-cols-12 lg:px-3 lg:pb-0 lg:pt-10 xl:pt-12"},ci.default.createElement("div",{className:"pt-8 lg:col-span-12 lg:bg-transparent lg:pt-0 lg:pl-14 xl:pl-18"},ci.default.createElement("div",{className:"mx-auto px-8 sm:px-6 md:max-w-2xl md:px-4 lg:px-0 text-pretty"},ci.default.createElement("h1",{className:"font-display text-4xl font-extrabold text-slate-900 sm:text-5xl"},e.what==""?ci.default.createElement("span",{className:"bg-yellow-100 text-black opacity-50"},"Name of Your Lead Magnet Goes Here"):e.what),ci.default.createElement("div",{className:"relative mt-6"},ci.default.createElement("div",{className:`relative aspect-w-16 aspect-h-9 w-full flex-auto h-full overflow-y-auto rounded-lg overflow-hidden shadow-lg mb-8 border-4 ${e.cover_background_color||"bg-black"} ${e.cover_spine_color?e.cover_spine_color.replace("bg-","border-"):"border-yellow-300"} bg-repeat ${e.cover_background_pattern}-${e.cover_background_pattern_color}/10`},e.pdf_url&&e.pdf_url.includes("Placeholder")?ci.default.createElement("div",{className:"flex items-center justify-center w-full h-full text-white"},"Your Video Preview & Lead Form Will Appear Here"):ci.default.createElement(U5e.default,{url:e.pdf_url,width:"100%",height:"100%",controls:!0,playing:!0,config:{youtube:{playerVars:{controls:1,start:0,startseconds:0,autoplay:1}}},ref:o,onReady:()=>{o.current.seekTo(r())},progressInterval:0,onProgress:a=>{n(a,o)}})),ci.default.createElement("div",{className:"absolute bottom-0 left-0 bg-gray-500/50 text-white text-sm py-1 px-3 mb-2 ml-2"},s())),ci.default.createElement("div",{className:`${i()?"":"hidden"}`},ci.default.createElement("div",null,ci.default.createElement("h2",{className:"text-xl font-bold tracking-tight sm:text-3xl mb-0"},"Want to put this into action?")),ci.default.createElement("div",{className:"flex flex-col md:flex-row mb-4"},ci.default.createElement("div",{className:"md:w-2/3"},ci.default.createElement("p",{className:"mt-2 text-sm leading-4 text-white-200 sm:text-lg sm:leading-6"},e.cta_value_prop==""?ci.default.createElement("span",{className:"bg-yellow-100 text-black opacity-50"},"Your value proposition for your offering and call to action goes here."):e.cta_value_prop)),ci.default.createElement("div",{className:"md:w-1/3 px-4 pt-2 md:mt-0 flex items-center"},t=="preview"?ci.default.createElement("a",{href:e.cta_url,target:"_new",className:"mt-3 lg:mt-0 flex w-full items-center justify-center rounded-md border border-transparent bg-indigo-500 px-5 py-3 text-base font-medium text-white shadow hover:bg-indigo-400 focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-indigo-700 disabled"},e.cta," \u2192"):ci.default.createElement("a",{href:"/"+e.public_hash+"/cta",target:"_new",className:"mt-3 lg:mt-0 flex w-full items-center justify-center rounded-md border border-transparent bg-indigo-500 px-5 py-3 text-base font-medium text-white shadow hover:bg-indigo-400 focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-indigo-700"},e.cta," \u2192")))))))),e.company_name&&ci.default.createElement("footer",{className:"bg-slate-100 lg:bg-transparent px-2 lg:px-5 text-xs"},ci.default.createElement("div",{className:"mx-auto max-w-5xl gap-y-16 pt-16 mb-16 md:pt-20 lg:px-3 lg:pb-0 lg:pt-20 xl:pt-12 text-center border-t mt-6"},ci.default.createElement("ul",{className:"flex list-none flex-wrap justify-center"},ci.default.createElement("li",{className:"px-2"},"Copyright \xA9 ",new Date().getFullYear(),"\xA0",e.company_name),e.privacy_policy_url&&ci.default.createElement("li",{className:"px-2 border-l border-gray-400"},ci.default.createElement("a",{href:e.privacy_policy_url,target:"_new"},"Privacy Policy")),e.tos_url&&ci.default.createElement("li",{className:"px-2 border-l border-gray-400"},ci.default.createElement("a",{href:e.tos_url,target:"_new"},"Terms of Service"))))))};Q5e.propTypes={page:pY.default.object,mode:pY.default.string};var e_e=Q5e;var Ur=ie(Pe()),Rg=ie(Ua()),zwe=ie(hN()),Twe=ie(DY());var Iwn=ie(Ua());var Z6t="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5m\xF6gensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",U6t="\u03B5\u03BB1\u03C52\u0431\u04331\u0435\u043B3\u0434\u0435\u0442\u04384\u0435\u044E2\u043A\u0430\u0442\u043E\u043B\u0438\u043A6\u043E\u043C3\u043C\u043A\u04342\u043E\u043D1\u0441\u043A\u0432\u04306\u043E\u043D\u043B\u0430\u0439\u043D5\u0440\u04333\u0440\u0443\u04412\u04442\u0441\u0430\u0439\u04423\u0440\u04313\u0443\u043A\u04403\u049B\u0430\u04373\u0570\u0561\u05753\u05D9\u05E9\u05E8\u05D0\u05DC5\u05E7\u05D5\u05DD3\u0627\u0628\u0648\u0638\u0628\u064A5\u0631\u0627\u0645\u0643\u06485\u0644\u0627\u0631\u062F\u06464\u0628\u062D\u0631\u064A\u06465\u062C\u0632\u0627\u0626\u06315\u0633\u0639\u0648\u062F\u064A\u06296\u0639\u0644\u064A\u0627\u06465\u0645\u063A\u0631\u06285\u0645\u0627\u0631\u0627\u062A5\u06CC\u0631\u0627\u06465\u0628\u0627\u0631\u062A2\u0632\u0627\u06314\u064A\u062A\u06433\u06BE\u0627\u0631\u062A5\u062A\u0648\u0646\u06334\u0633\u0648\u062F\u0627\u06463\u0631\u064A\u06295\u0634\u0628\u0643\u06294\u0639\u0631\u0627\u06422\u06282\u0645\u0627\u06464\u0641\u0644\u0633\u0637\u064A\u06466\u0642\u0637\u06313\u0643\u0627\u062B\u0648\u0644\u064A\u06436\u0648\u06453\u0645\u0635\u06312\u0644\u064A\u0633\u064A\u06275\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u06277\u0642\u06394\u0647\u0645\u0631\u0627\u06475\u067E\u0627\u06A9\u0633\u062A\u0627\u06467\u0680\u0627\u0631\u062A4\u0915\u0949\u092E3\u0928\u0947\u091F3\u092D\u093E\u0930\u09240\u092E\u094D3\u094B\u09245\u0938\u0902\u0917\u0920\u09285\u09AC\u09BE\u0982\u09B2\u09BE5\u09AD\u09BE\u09B0\u09A42\u09F0\u09A44\u0A2D\u0A3E\u0A30\u0A244\u0AAD\u0ABE\u0AB0\u0AA44\u0B2D\u0B3E\u0B30\u0B244\u0B87\u0BA8\u0BCD\u0BA4\u0BBF\u0BAF\u0BBE6\u0BB2\u0B99\u0BCD\u0B95\u0BC86\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD11\u0C2D\u0C3E\u0C30\u0C24\u0C4D5\u0CAD\u0CBE\u0CB0\u0CA44\u0D2D\u0D3E\u0D30\u0D24\u0D025\u0DBD\u0D82\u0D9A\u0DCF4\u0E04\u0E2D\u0E213\u0E44\u0E17\u0E223\u0EA5\u0EB2\u0EA73\u10D2\u10D42\u307F\u3093\u306A3\u30A2\u30DE\u30BE\u30F34\u30AF\u30E9\u30A6\u30C94\u30B0\u30FC\u30B0\u30EB4\u30B3\u30E02\u30B9\u30C8\u30A23\u30BB\u30FC\u30EB3\u30D5\u30A1\u30C3\u30B7\u30E7\u30F36\u30DD\u30A4\u30F3\u30C84\u4E16\u754C2\u4E2D\u4FE11\u56FD1\u570B1\u6587\u7F513\u4E9A\u9A6C\u900A3\u4F01\u4E1A2\u4F5B\u5C712\u4FE1\u606F2\u5065\u5EB72\u516B\u53662\u516C\u53F81\u76CA2\u53F0\u6E7E1\u70632\u5546\u57CE1\u5E971\u68072\u5609\u91CC0\u5927\u9152\u5E975\u5728\u7EBF2\u5927\u62FF2\u5929\u4E3B\u65593\u5A31\u4E502\u5BB6\u96FB2\u5E7F\u4E1C2\u5FAE\u535A2\u6148\u55842\u6211\u7231\u4F603\u624B\u673A2\u62DB\u80582\u653F\u52A11\u5E9C2\u65B0\u52A0\u57612\u95FB2\u65F6\u5C1A2\u66F8\u7C4D2\u673A\u67842\u6DE1\u9A6C\u95213\u6E38\u620F2\u6FB3\u95802\u70B9\u770B2\u79FB\u52A82\u7EC4\u7EC7\u673A\u67844\u7F51\u57401\u5E971\u7AD91\u7EDC2\u8054\u901A2\u8C37\u6B4C2\u8D2D\u72692\u901A\u8CA92\u96C6\u56E22\u96FB\u8A0A\u76C8\u79D14\u98DE\u5229\u6D663\u98DF\u54C12\u9910\u53852\u9999\u683C\u91CC\u62C93\u6E2F2\uB2F7\uB1371\uCEF42\uC0BC\uC1312\uD55C\uAD6D2",g4=(e,t)=>{for(let n in t)e[n]=t[n];return e},jY="numeric",HY="ascii",WY="alpha",bN="asciinumeric",vN="alphanumeric",XY="domain",lbe="emoji",Q6t="scheme",e3t="slashscheme",ebe="whitespace";function t3t(e,t){return e in t||(t[e]=[]),t[e]}function py(e,t,n){t[jY]&&(t[bN]=!0,t[vN]=!0),t[HY]&&(t[bN]=!0,t[WY]=!0),t[bN]&&(t[vN]=!0),t[WY]&&(t[vN]=!0),t[vN]&&(t[XY]=!0),t[lbe]&&(t[XY]=!0);for(let r in t){let i=t3t(r,n);i.indexOf(e)<0&&i.push(e)}}function n3t(e,t){let n={};for(let r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}function zc(e){e===void 0&&(e=null),this.j={},this.jr=[],this.jd=null,this.t=e}zc.groups={};zc.prototype={accepts(){return!!this.t},go(e){let t=this,n=t.j[e];if(n)return n;for(let r=0;r<t.jr.length;r++){let i=t.jr[r][0],o=t.jr[r][1];if(o&&i.test(e))return o}return t.jd},has(e,t){return t===void 0&&(t=!1),t?e in this.j:!!this.go(e)},ta(e,t,n,r){for(let i=0;i<e.length;i++)this.tt(e[i],t,n,r)},tr(e,t,n,r){r=r||zc.groups;let i;return t&&t.j?i=t:(i=new zc(t),n&&r&&py(t,n,r)),this.jr.push([e,i]),i},ts(e,t,n,r){let i=this,o=e.length;if(!o)return i;for(let s=0;s<o-1;s++)i=i.tt(e[s]);return i.tt(e[o-1],t,n,r)},tt(e,t,n,r){r=r||zc.groups;let i=this;if(t&&t.j)return i.j[e]=t,t;let o=t,s,a=i.go(e);if(a?(s=new zc,g4(s.j,a.j),s.jr.push.apply(s.jr,a.jr),s.jd=a.jd,s.t=a.t):s=new zc,o){if(r)if(s.t&&typeof s.t=="string"){let l=g4(n3t(s.t,r),n);py(o,l,r)}else n&&py(o,n,r);s.t=o}return i.j[e]=s,s}};var Ar=(e,t,n,r,i)=>e.ta(t,n,r,i),Id=(e,t,n,r,i)=>e.tr(t,n,r,i),tbe=(e,t,n,r,i)=>e.ts(t,n,r,i),Nt=(e,t,n,r,i)=>e.tt(t,n,r,i),Y0="WORD",qY="UWORD",gP="LOCALHOST",$Y="TLD",KY="UTLD",wN="SCHEME",m4="SLASH_SCHEME",YY="NUM",ube="WS",ZY="NL",fP="OPENBRACE",hP="CLOSEBRACE",PN="OPENBRACKET",kN="CLOSEBRACKET",AN="OPENPAREN",CN="CLOSEPAREN",SN="OPENANGLEBRACKET",ON="CLOSEANGLEBRACKET",EN="FULLWIDTHLEFTPAREN",MN="FULLWIDTHRIGHTPAREN",BN="LEFTCORNERBRACKET",NN="RIGHTCORNERBRACKET",GN="LEFTWHITECORNERBRACKET",FN="RIGHTWHITECORNERBRACKET",IN="FULLWIDTHLESSTHAN",zN="FULLWIDTHGREATERTHAN",TN="AMPERSAND",DN="APOSTROPHE",RN="ASTERISK",Bg="AT",LN="BACKSLASH",VN="BACKTICK",JN="CARET",Ng="COLON",UY="COMMA",jN="DOLLAR",sh="DOT",HN="EQUALS",QY="EXCLAMATION",ah="HYPHEN",WN="PERCENT",XN="PIPE",qN="PLUS",$N="POUND",KN="QUERY",eZ="QUOTE",tZ="SEMI",lh="SLASH",mP="TILDE",YN="UNDERSCORE",cbe="EMOJI",ZN="SYM",dbe=Object.freeze({__proto__:null,WORD:Y0,UWORD:qY,LOCALHOST:gP,TLD:$Y,UTLD:KY,SCHEME:wN,SLASH_SCHEME:m4,NUM:YY,WS:ube,NL:ZY,OPENBRACE:fP,CLOSEBRACE:hP,OPENBRACKET:PN,CLOSEBRACKET:kN,OPENPAREN:AN,CLOSEPAREN:CN,OPENANGLEBRACKET:SN,CLOSEANGLEBRACKET:ON,FULLWIDTHLEFTPAREN:EN,FULLWIDTHRIGHTPAREN:MN,LEFTCORNERBRACKET:BN,RIGHTCORNERBRACKET:NN,LEFTWHITECORNERBRACKET:GN,RIGHTWHITECORNERBRACKET:FN,FULLWIDTHLESSTHAN:IN,FULLWIDTHGREATERTHAN:zN,AMPERSAND:TN,APOSTROPHE:DN,ASTERISK:RN,AT:Bg,BACKSLASH:LN,BACKTICK:VN,CARET:JN,COLON:Ng,COMMA:UY,DOLLAR:jN,DOT:sh,EQUALS:HN,EXCLAMATION:QY,HYPHEN:ah,PERCENT:WN,PIPE:XN,PLUS:qN,POUND:$N,QUERY:KN,QUOTE:eZ,SEMI:tZ,SLASH:lh,TILDE:mP,UNDERSCORE:YN,EMOJI:cbe,SYM:ZN}),h4=/[a-z]/,RY=/\p{L}/u,LY=/\p{Emoji}/u;var VY=/\d/,nbe=/\s/;var rbe=`
`,r3t="\uFE0F",i3t="\u200D",yN=null,xN=null;function o3t(e){e===void 0&&(e=[]);let t={};zc.groups=t;let n=new zc;yN==null&&(yN=ibe(Z6t)),xN==null&&(xN=ibe(U6t)),Nt(n,"'",DN),Nt(n,"{",fP),Nt(n,"}",hP),Nt(n,"[",PN),Nt(n,"]",kN),Nt(n,"(",AN),Nt(n,")",CN),Nt(n,"<",SN),Nt(n,">",ON),Nt(n,"\uFF08",EN),Nt(n,"\uFF09",MN),Nt(n,"\u300C",BN),Nt(n,"\u300D",NN),Nt(n,"\u300E",GN),Nt(n,"\u300F",FN),Nt(n,"\uFF1C",IN),Nt(n,"\uFF1E",zN),Nt(n,"&",TN),Nt(n,"*",RN),Nt(n,"@",Bg),Nt(n,"`",VN),Nt(n,"^",JN),Nt(n,":",Ng),Nt(n,",",UY),Nt(n,"$",jN),Nt(n,".",sh),Nt(n,"=",HN),Nt(n,"!",QY),Nt(n,"-",ah),Nt(n,"%",WN),Nt(n,"|",XN),Nt(n,"+",qN),Nt(n,"#",$N),Nt(n,"?",KN),Nt(n,'"',eZ),Nt(n,"/",lh),Nt(n,";",tZ),Nt(n,"~",mP),Nt(n,"_",YN),Nt(n,"\\",LN);let r=Id(n,VY,YY,{[jY]:!0});Id(r,VY,r);let i=Id(n,h4,Y0,{[HY]:!0});Id(i,h4,i);let o=Id(n,RY,qY,{[WY]:!0});Id(o,h4),Id(o,RY,o);let s=Id(n,nbe,ube,{[ebe]:!0});Nt(n,rbe,ZY,{[ebe]:!0}),Nt(s,rbe),Id(s,nbe,s);let a=Id(n,LY,cbe,{[lbe]:!0});Id(a,LY,a),Nt(a,r3t,a);let l=Nt(a,i3t);Id(l,LY,a);let u=[[h4,i]],c=[[h4,null],[RY,o]];for(let f=0;f<yN.length;f++)Mg(n,yN[f],$Y,Y0,u);for(let f=0;f<xN.length;f++)Mg(n,xN[f],KY,qY,c);py($Y,{tld:!0,ascii:!0},t),py(KY,{utld:!0,alpha:!0},t),Mg(n,"file",wN,Y0,u),Mg(n,"mailto",wN,Y0,u),Mg(n,"http",m4,Y0,u),Mg(n,"https",m4,Y0,u),Mg(n,"ftp",m4,Y0,u),Mg(n,"ftps",m4,Y0,u),py(wN,{scheme:!0,ascii:!0},t),py(m4,{slashscheme:!0,ascii:!0},t),e=e.sort((f,d)=>f[0]>d[0]?1:-1);for(let f=0;f<e.length;f++){let d=e[f][0],m=e[f][1]?{[Q6t]:!0}:{[e3t]:!0};d.indexOf("-")>=0?m[XY]=!0:h4.test(d)?VY.test(d)?m[bN]=!0:m[HY]=!0:m[jY]=!0,tbe(n,d,d,m)}return tbe(n,"localhost",gP,{ascii:!0}),n.jd=new zc(ZN),{start:n,tokens:g4({groups:t},dbe)}}function s3t(e,t){let n=a3t(t.replace(/[A-Z]/g,a=>a.toLowerCase())),r=n.length,i=[],o=0,s=0;for(;s<r;){let a=e,l=null,u=0,c=null,f=-1,d=-1;for(;s<r&&(l=a.go(n[s]));)a=l,a.accepts()?(f=0,d=0,c=a):f>=0&&(f+=n[s].length,d++),u+=n[s].length,o+=n[s].length,s++;o-=f,s-=d,u-=f,i.push({t:c.t,v:t.slice(o-u,o),s:o-u,e:o})}return i}function a3t(e){let t=[],n=e.length,r=0;for(;r<n;){let i=e.charCodeAt(r),o,s=i<55296||i>56319||r+1===n||(o=e.charCodeAt(r+1))<56320||o>57343?e[r]:e.slice(r,r+2);t.push(s),r+=s.length}return t}function Mg(e,t,n,r,i){let o,s=t.length;for(let a=0;a<s-1;a++){let l=t[a];e.j[l]?o=e.j[l]:(o=new zc(r),o.jr=i.slice(),e.j[l]=o),e=o}return o=new zc(n),o.jr=i.slice(),e.j[t[s-1]]=o,o}function ibe(e){let t=[],n=[],r=0,i="0123456789";for(;r<e.length;){let o=0;for(;i.indexOf(e[r+o])>=0;)o++;if(o>0){t.push(n.join(""));for(let s=parseInt(e.substring(r,r+o),10);s>0;s--)n.pop();r+=o}else n.push(e[r]),r++}return t}var vP={defaultProtocol:"http",events:null,format:obe,formatHref:obe,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function yP(e,t){t===void 0&&(t=null);let n=g4({},vP);e&&(n=g4(n,e instanceof yP?e.o:e));let r=n.ignoreTags,i=[];for(let o=0;o<r.length;o++)i.push(r[o].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=i}yP.prototype={o:vP,ignoreTags:[],defaultRender(e){return e},check(e){return this.get("validate",e.toString(),e)},get(e,t,n){let r=t!=null,i=this.o[e];return i&&(typeof i=="object"?(i=n.t in i?i[n.t]:vP[e],typeof i=="function"&&r&&(i=i(t,n))):typeof i=="function"&&r&&(i=i(t,n.t,n)),i)},getObj(e,t,n){let r=this.o[e];return typeof r=="function"&&t!=null&&(r=r(t,n.t,n)),r},render(e){let t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}};function obe(e){return e}function pbe(e,t){this.t="token",this.v=e,this.tk=t}pbe.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){let t=this.toString(),n=e.get("truncate",t,this),r=e.get("format",t,this);return n&&r.length>n?r.substring(0,n)+"\u2026":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e){return e===void 0&&(e=vP.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){let t=this,n=this.toHref(e.get("defaultProtocol")),r=e.get("formatHref",n,this),i=e.get("tagName",n,t),o=this.toFormattedString(e),s={},a=e.get("className",n,t),l=e.get("target",n,t),u=e.get("rel",n,t),c=e.getObj("attributes",n,t),f=e.getObj("events",n,t);return s.href=r,a&&(s.class=a),l&&(s.target=l),u&&(s.rel=u),c&&g4(s,c),{tagName:i,attributes:s,content:o,eventListeners:f}}};function UN(e,t){class n extends pbe{constructor(i,o){super(i,o),this.t=e}}for(let r in t)n.prototype[r]=t[r];return n.t=e,n}var sbe=UN("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),abe=UN("text"),l3t=UN("nl"),_N=UN("url",{isLink:!0,toHref(e){return e===void 0&&(e=vP.defaultProtocol),this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==gP&&e[1].t===Ng}});var zd=e=>new zc(e);function u3t(e){let{groups:t}=e,n=t.domain.concat([TN,RN,Bg,LN,VN,JN,jN,HN,ah,YY,WN,XN,qN,$N,lh,ZN,mP,YN]),r=[DN,Ng,UY,sh,QY,KN,eZ,tZ,SN,ON,fP,hP,kN,PN,AN,CN,EN,MN,BN,NN,GN,FN,IN,zN],i=[TN,DN,RN,LN,VN,JN,jN,HN,ah,fP,hP,WN,XN,qN,$N,KN,lh,ZN,mP,YN],o=zd(),s=Nt(o,mP);Ar(s,i,s),Ar(s,t.domain,s);let a=zd(),l=zd(),u=zd();Ar(o,t.domain,a),Ar(o,t.scheme,l),Ar(o,t.slashscheme,u),Ar(a,i,s),Ar(a,t.domain,a);let c=Nt(a,Bg);Nt(s,Bg,c),Nt(l,Bg,c),Nt(u,Bg,c);let f=Nt(s,sh);Ar(f,i,s),Ar(f,t.domain,s);let d=zd();Ar(c,t.domain,d),Ar(d,t.domain,d);let h=Nt(d,sh);Ar(h,t.domain,d);let m=zd(sbe);Ar(h,t.tld,m),Ar(h,t.utld,m),Nt(c,gP,m);let g=Nt(d,ah);Ar(g,t.domain,d),Ar(m,t.domain,d),Nt(m,sh,h),Nt(m,ah,g);let b=Nt(m,Ng);Ar(b,t.numeric,sbe);let v=Nt(a,ah),x=Nt(a,sh);Ar(v,t.domain,a),Ar(x,i,s),Ar(x,t.domain,a);let y=zd(_N);Ar(x,t.tld,y),Ar(x,t.utld,y),Ar(y,t.domain,a),Ar(y,i,s),Nt(y,sh,x),Nt(y,ah,v),Nt(y,Bg,c);let _=Nt(y,Ng),w=zd(_N);Ar(_,t.numeric,w);let k=zd(_N),O=zd();Ar(k,n,k),Ar(k,r,O),Ar(O,n,k),Ar(O,r,O),Nt(y,lh,k),Nt(w,lh,k);let M=Nt(l,Ng),I=Nt(u,Ng),W=Nt(I,lh),J=Nt(W,lh);Ar(l,t.domain,a),Nt(l,sh,x),Nt(l,ah,v),Ar(u,t.domain,a),Nt(u,sh,x),Nt(u,ah,v),Ar(M,t.domain,k),Nt(M,lh,k),Ar(J,t.domain,k),Ar(J,n,k),Nt(J,lh,k);let H=[[fP,hP],[PN,kN],[AN,CN],[SN,ON],[EN,MN],[BN,NN],[GN,FN],[IN,zN]];for(let ee=0;ee<H.length;ee++){let[j,V]=H[ee],B=Nt(k,j);Nt(O,j,B),Nt(B,V,k);let N=zd(_N);Ar(B,n,N);let C=zd();Ar(B,r),Ar(N,n,N),Ar(N,r,C),Ar(C,n,N),Ar(C,r,C),Nt(N,V,k),Nt(C,V,k)}return Nt(o,gP,y),Nt(o,ZY,l3t),{start:o,tokens:dbe}}function c3t(e,t,n){let r=n.length,i=0,o=[],s=[];for(;i<r;){let a=e,l=null,u=null,c=0,f=null,d=-1;for(;i<r&&!(l=a.go(n[i].t));)s.push(n[i++]);for(;i<r&&(u=l||a.go(n[i].t));)l=null,a=u,a.accepts()?(d=0,f=a):d>=0&&d++,i++,c++;if(d<0)i-=c,i<r&&(s.push(n[i]),i++);else{s.length>0&&(o.push(JY(abe,t,s)),s=[]),i-=d,c-=d;let h=f.t,m=n.slice(i-c,i);o.push(JY(h,t,m))}}return s.length>0&&o.push(JY(abe,t,s)),o}function JY(e,t,n){let r=n[0].s,i=n[n.length-1].e,o=t.slice(r,i);return new e(o,n)}var du={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function d3t(){du.scanner=o3t(du.customSchemes);for(let e=0;e<du.tokenQueue.length;e++)du.tokenQueue[e][1]({scanner:du.scanner});du.parser=u3t(du.scanner.tokens);for(let e=0;e<du.pluginQueue.length;e++)du.pluginQueue[e][1]({scanner:du.scanner,parser:du.parser});du.initialized=!0}function fbe(e){return du.initialized||d3t(),c3t(du.parser.start,e,s3t(du.scanner.start,e))}var hbe=1,p3t=3;function f3t(e,t,n){let r=n[n.length-1];e.replaceChild(r,t);for(let i=n.length-2;i>=0;i--)e.insertBefore(n[i],r),r=n[i]}function h3t(e,t,n){let r=[];for(let i=0;i<e.length;i++){let o=e[i];o.t==="nl"&&t.get("nl2br")?r.push(n.createElement("br")):!o.isLink||!t.check(o)?r.push(n.createTextNode(o.toString())):r.push(t.render(o))}return r}function nZ(e,t,n){if(!e||e.nodeType!==hbe)throw new Error(`Cannot linkify ${e} - Invalid DOM Node type`);if(e.tagName==="A"||t.ignoreTags.indexOf(e.tagName)>=0)return e;let r=e.firstChild;for(;r;){let i,o,s;switch(r.nodeType){case hbe:nZ(r,t,n);break;case p3t:{if(i=r.nodeValue,o=fbe(i),o.length===0||o.length===1&&o[0].t==="text")break;s=h3t(o,t,n),f3t(e,r,s),r=s[s.length-1];break}}r=r.nextSibling}return e}function rZ(e){return t=>{let{tagName:n,attributes:r,content:i,eventListeners:o}=t,s=e.createElement(n);for(let a in r)s.setAttribute(a,r[a]);if(o&&s.addEventListener)for(let a in o)s.addEventListener(a,o[a]);return s.appendChild(e.createTextNode(i)),s}}function iZ(e,t,n){t===void 0&&(t=null),n===void 0&&(n=null);try{n=n||document||window&&window.document||global&&global.document}catch{}if(!n)throw new Error("Cannot find document implementation. If you are in a non-browser environment like Node.js, pass the document implementation as the third argument to linkifyElement.");let r=new yP(t,rZ(n));return nZ(e,r,n)}iZ.helper=nZ;iZ.getDefaultRender=rZ;iZ.normalize=(e,t)=>new yP(e,rZ(t));var mbe=({onLinkClick:e})=>{let t=r=>{e&&e(r)};return{onAnnotationLayerRender:r=>{r.container.querySelectorAll("a").forEach(i=>{i.addEventListener("click",t),i.setAttribute("target","_blank")})}}};var Dwe=ie(N8e()),Rwe=ie(b4()),OP=ie(yK());function f5t(e,t){let n=(0,Ur.useRef)();(0,Ur.useEffect)(()=>{n.current=e},[e]),(0,Ur.useEffect)(()=>{function r(){n.current()}if(t!==null){let i=setInterval(r,t);return()=>clearInterval(i)}},[t])}var h5t=({url:e,onEngagement:t})=>{let[n,r]=(0,Ur.useState)(1),[i,o]=(0,Ur.useState)(1),[s,a]=(0,Ur.useState)(null),[l,u]=(0,Ur.useState)({}),[c,f]=(0,Ur.useState)({}),d=(0,Ur.useRef)(null),h=(0,Dwe.toolbarPlugin)(),m=(0,zwe.pageNavigationPlugin)(),g=(0,Twe.zoomPlugin)({enableShortcuts:!0}),{CurrentScale:b,ZoomIn:v,ZoomOut:x}=g,{Toolbar:y}=h,_=()=>{OP.default.startTimer(`page-${n}`)},w=()=>{OP.default.stopTimer(`page-${n}`)},k=()=>Math.ceil(OP.default.getTimeOnPageInSeconds(`page-${n}`)),O=()=>{u(H=>({...H,[n]:k()})),t({event:"viewingTime",viewingTime:l})};f5t(()=>{O()},5e3),(0,Ur.useEffect)(()=>(OP.default.initialize({idleTimeoutInSeconds:30}),()=>{w(),O()}),[]),(0,Ur.useEffect)(()=>{if(n!=null)return _(),O(),t({event:"viewPage",currentPage:n}),()=>{w(),O()}},[n]),(0,Ur.useEffect)(()=>{i!=null&&t({event:"loadedPDF",totalPages:i})},[i]),(0,Ur.useEffect)(()=>{s!=null&&t({event:"clickLink",currentPage:n,link:s,engagementClicks:c})},[s]),(0,Ur.useEffect)(()=>{l!=null&&t({event:"viewingTime",viewingTime:l})},[l]);let M=H=>{let ee=H.doc.numPages;o(ee)},I=H=>{r(H.currentPage+1)},J=mbe({onLinkClick:H=>{let ee=H.target.href;a(ee),f(j=>{let V={...j};return V[n]||(V[n]=[]),V[n].push(ee),V})}});return Ur.default.createElement("div",{className:"rpv-core__viewer h-full flex flex-col bg-[#1a1a1a]"},Ur.default.createElement("div",{className:"flex-1 overflow-hidden h-full relative"},Ur.default.createElement("div",{className:"absolute left-0 top-1/2 transform translate-x-[24px] translate-y-[-50%] z-10 invisible sm:visible"},Ur.default.createElement("button",{className:"inline-flex items-center pl-1 text-md font-medium text-gray-500 hover:text-green-700",onClick:()=>{m.jumpToPreviousPage()},disabled:n===1},Ur.default.createElement(vd,{className:"h-8 w-8 text-gray-100 sm:text-gray-500 hover:text-indigo-500","aria-hidden":"true"}))),Ur.default.createElement("div",{className:"absolute right-0 top-1/2 transform translate-x-[-24px] translate-y-[-50%] z-10 invisible sm:visible"},Ur.default.createElement("button",{className:"inline-flex items-center pl-1 text-md font-medium text-gray-500 hover:text-green-700",onClick:()=>{m.jumpToNextPage()},disabled:n===i},Ur.default.createElement(Vu,{className:"h-8 w-8 text-gray-100 sm:text-gray-500 hover:text-indigo-500","aria-hidden":"true"}))),Ur.default.createElement(Rg.Worker,{workerUrl:"https://unpkg.com/pdfjs-dist@3.4.120/build/pdf.worker.min.js"},Ur.default.createElement(Rg.Viewer,{fileUrl:e,theme:"dark",plugins:[h,J,m,g],defaultScale:Rwe.isMobile?Rg.SpecialZoomLevel.PageFit:1.2,scrollMode:Rg.ScrollMode.Page,onPageChange:H=>{I(H)},onDocumentLoad:M}))),Ur.default.createElement("div",{className:"flex items-center p-1 z-10 max-w-[940px] mx-auto space-x-4 py-4 text-white select-none"},Ur.default.createElement(x,null,H=>Ur.default.createElement(OJ,{className:"h-6 w-6 text-gray-500 hover:text-purple-500 cursor-pointer",onClick:()=>{H.onClick()}})),Ur.default.createElement(v,null,H=>Ur.default.createElement(SJ,{className:"h-6 w-6 text-gray-500 hover:text-purple-500 cursor-pointer",onClick:()=>{H.onClick()}})),Ur.default.createElement(vd,{className:"h-6 w-6 text-gray-500 hover:text-purple-500 cursor-pointer","aria-hidden":"true",onClick:()=>{m.jumpToPreviousPage()}}),Ur.default.createElement("span",null,n," / ",i),Ur.default.createElement(Vu,{className:"h-6 w-6 text-gray-500 hover:text-purple-500 cursor-pointer","aria-hidden":"true",onClick:()=>{m.jumpToNextPage()}})))},Lwe=h5t;var w4=class extends aa.Component{constructor(t){super(t),this.state={timeOnPage:0,showedCTATimestamp:null,lastVideoEngagementLogged:null,proxyURL:null,viewingTime:{}},hG.default.initialize({currentPageName:"My Lead Magnet",idleTimeoutInSeconds:5}),this.isVideo=this.isVideo.bind(this),this.handleVideoProgress=this.handleVideoProgress.bind(this),this.handlePDFEngagement=this.handlePDFEngagement.bind(this),this.renderPDF=this.renderPDF.bind(this),this.viewSDKClient=new Gxe,this.logEngagementToServer=this.logEngagementToServer.bind(this),this.logClickToServer=this.logClickToServer.bind(this),this.showCTA=this.showCTA.bind(this),this.getStartTime=this.getStartTime.bind(this),setInterval(()=>{this.setState({timeOnPage:hG.default.getTimeOnCurrentPageInSeconds()},()=>{this.logEngagementToServer()})},1e4)}static get propTypes(){return{page:BZ.default.object,mode:BZ.default.string}}componentDidMount(){this.isVideo()||this.renderPDF(),window.addEventListener("beforeunload",async t=>{this.logEngagementToServer()}),window.addEventListener("beforeunload",t=>{typeof t.returnValue>"u"&&(t.returnValue="")})}componentWillUnmount(){window.removeEventListener("beforeunload",t=>{})}componentDidUpdate(t){this.props.page.pdf_url!=t.page.pdf_url&&!this.isVideo()&&this.renderPDF()}showCTA(){let t=!1;return this.props.page.show_cta_at==0&&(t=!0),this.props.page.what_type=="training"&&this.state.maxSecondsWatched>this.props.page.show_cta_at&&(t=!0),this.timeOnPage>this.props.page.show_cta_at&&(t=!0),t&&this.state.showedCTATimestamp==null&&this.setState({showedCTATimestamp:new Date().toISOString()}),t}isVideo(){return this.props.page.what_type=="training"||this.props.page.pdf_url&&this.props.page.pdf_url.includes("youtu")||this.props.page.pdf_url.includes("wistia")}getStartTime(){let t=this.props.page.vsl_show_lead_form_at,n=Va.get(`vsl_${this.props.page.id}_played`);return n&&n<t&&(t=n),t}handleVideoProgress(t,n){let r=n.current.getDuration(),i=t.playedSeconds;(this.state.maxSecondsWatched==null||this.state.maxSecondsWatched<i)&&this.setState({maxSecondsWatched:i,totalSeconds:r},()=>{(this.state.lastVideoEngagementLogged===null||Date.now()-new Date(this.state.lastVideoEngagementLogged).getTime()>3e4)&&(this.logEngagementToServer(),this.setState({lastVideoEngagementLogged:new Date().toISOString()}))})}handlePDFEngagement(t){switch(t.event){case"loadedPDF":this.setState({totalPages:t.totalPages});break;case"viewPage":t.currentPage>1&&(this.state.maxPageViewed==null||this.state.maxPageViewed<t.currentPage)&&this.setState({maxPageViewed:t.currentPage},()=>{this.logEngagementToServer()});break;case"viewingTime":this.setState({viewingTime:t.viewingTime});break;case"clickLink":console.log("PDF Engagement",t),this.logClickToServer(t.link,t.currentPage,t.engagementClicks);break;default:break}}logEngagementToServer(){if(this.props.mode=="preview")return;let t={};this.isVideo()?t={max_units_engaged:this.state.maxSecondsWatched,total_units_of_engagement:this.state.totalSeconds,showing_cta:this.showCTA(),showed_cta_at:this.state.showedCTATimestamp}:t={max_units_engaged:this.state.maxPageViewed,total_units_of_engagement:this.state.totalPages,showing_cta:this.showCTA(),showed_cta_at:this.state.showedCTATimestamp},t.time_on_page=hG.default.getTimeOnCurrentPageInSeconds(),this.state.viewingTime!=null&&(t.viewing_time=this.state.viewingTime),(t.max_units_engaged&&t.total_units_of_engagement||t.time_on_page)&&zxe(this.props.page.public_hash,t)}logClickToServer(t,n,r){let i={url:t,page_number:n,engagement_clicks:r};Txe(this.props.page.public_hash,i)}renderPDF(){let t=`https://${window.location.host}/lander/preview/pdf?url=${this.props.page.pdf_url}`,n=this.props.page.what.split(/[^a-zA-Z0-9]+/).join("-")+".pdf";this.props.mode=="live"&&this.props.page.cached_pdf_url!=null&&this.props.page.cached_pdf_url!=null&&this.props.page.cached_pdf_url!=""&&(t=this.props.page.cached_pdf_url),this.setState({proxyURL:t})}render(){return this.isVideo()?aa.default.createElement(e_e,{page:this.props.page,mode:this.props.mode,handleVideoProgress:this.handleVideoProgress,getStartTime:this.getStartTime,showCTA:this.showCTA}):aa.default.createElement("div",{className:`flex flex-col bg-black overflow-hidden ${this.props.mode=="preview"?"h-full":"h-screen"}`},aa.default.createElement("div",{className:"w-full flex-auto h-full overflow-y-auto"},aa.default.createElement("div",{className:"h-full"},this.state.proxyURL&&aa.default.createElement(Lwe,{url:`https://${window.location.host}/lander/preview/pdf?url=${this.props.page.pdf_url}`,onEngagement:this.handlePDFEngagement}))),aa.default.createElement("div",{className:"h-fit bg-black text-white "+(this.props.mode=="preview"?"":this.showCTA()?"w-full":"hidden")},aa.default.createElement("div",{className:"bg-black text-white w-full max-w-[940px] mx-auto"},aa.default.createElement("div",null,aa.default.createElement("h2",{className:"text-xl font-bold tracking-tight text-white sm:text-3xl px-4 pt-4 mb-0"},"Want to put this into action?")),aa.default.createElement("div",{className:"flex flex-col md:flex-row mb-4"},aa.default.createElement("div",{className:"md:w-2/3 px-4"},aa.default.createElement("p",{className:"mt-2 text-sm leading-4 text-white-200 sm:text-lg sm:leading-6"},this.props.page.cta_value_prop==""?aa.default.createElement("span",{className:"bg-yellow-100 text-black opacity-50"},"Your value proposition for your offering and call to action goes here."):this.props.page.cta_value_prop)),aa.default.createElement("div",{className:"md:w-1/3 px-4 pt-2 md:mt-0 flex items-center"},this.props.mode=="preview"?aa.default.createElement("a",{href:this.props.page.cta_url,target:"_new",className:"mt-3 lg:mt-0 flex w-full items-center justify-center rounded-md border border-transparent bg-indigo-500 px-5 py-3 text-base font-medium text-white shadow hover:bg-indigo-400 focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-indigo-700 disabled"},this.props.page.cta," \u2192"):aa.default.createElement("a",{href:"/"+this.props.page.public_hash+"/cta",target:"_new",className:"mt-3 lg:mt-0 flex w-full items-center justify-center rounded-md border border-transparent bg-indigo-500 px-5 py-3 text-base font-medium text-white shadow hover:bg-indigo-400 focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-indigo-700"},this.props.page.cta," \u2192"))))))}};var Ln=ie(Pe());var Xwe=ie(nx());var M7n=ie(NZ());var jwe={v:"4.8.0",meta:{g:"LottieFiles AE 1.0.0",a:"",k:"",d:"",tc:""},fr:30,ip:0,op:60,w:300,h:300,nm:"Comp 2",ddd:0,assets:[],layers:[{ddd:0,ind:1,ty:4,nm:"Play",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[153,150,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:1,k:[{i:{x:[0,0,.667],y:[1,1,1]},o:{x:[.204,.204,.333],y:[0,0,0]},t:6.923,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.753,.753,.333],y:[0,0,0]},t:19.615,s:[110.00000000000001,110.00000000000001,100]},{t:30,s:[100,100,100]}],ix:6}},ao:0,shapes:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0]],v:[[12.5,0],[-12.5,-14.434],[-12.5,14.434]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1}],ip:0,op:150,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"Circle1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[150,150,0],ix:2},a:{a:0,k:[28.232,-43.768,0],ix:1},s:{a:1,k:[{i:{x:[0,0,.667],y:[1,1,1]},o:{x:[.204,.204,.333],y:[0,0,0]},t:6.923,s:[38,38,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.753,.753,.333],y:[0,0,0]},t:19.615,s:[50,50,100]},{t:30,s:[38,38,100]}],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200.465,200.465],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"fl",c:{a:0,k:[0,.4,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[28.232,-43.768],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Ellipse 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:150,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"Circle2",sr:1,ks:{o:{a:0,k:40,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[150,150,0],ix:2},a:{a:0,k:[28.232,-43.768,0],ix:1},s:{a:1,k:[{i:{x:[0,0,.667],y:[1,1,1]},o:{x:[.204,.204,.333],y:[0,0,0]},t:3.462,s:[38,38,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.753,.753,.333],y:[0,0,0]},t:16.154,s:[65,65,100]},{t:30,s:[38,38,100]}],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200.465,200.465],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"fl",c:{a:0,k:[0,.4,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[28.232,-43.768],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Ellipse 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:150,st:0,bm:0},{ddd:0,ind:4,ty:4,nm:"Circle3",sr:1,ks:{o:{a:0,k:40,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[150,150,0],ix:2},a:{a:0,k:[28.232,-43.768,0],ix:1},s:{a:1,k:[{i:{x:[0,0,.667],y:[1,1,1]},o:{x:[.204,.204,.333],y:[0,0,0]},t:0,s:[38,38,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.753,.753,.333],y:[0,0,0]},t:12.692,s:[80,80,100]},{t:30,s:[38,38,100]}],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200.465,200.465],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"fl",c:{a:0,k:[0,.4,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[28.232,-43.768],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Ellipse 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:150,st:0,bm:0}],markers:[]};var pu=ie(Pe()),P4=ie(Pe());var Wwe=ie($0());var GZ=ie(Pe());function Hwe(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<e.length;t++)e[t]&&(n=Hwe(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function g5t(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Hwe(e))&&(r&&(r+=" "),r+=t);return r}var Is=g5t;var v5t={solid:"group inline-flex items-center justify-center rounded-full py-2 px-4 text-lg font-semibold focus:outline-none focus-visible:outline-2 focus-visible:outline-offset-2",outline:"group inline-flex ring-1 items-center justify-center rounded-full py-2 px-4 text-lg focus:outline-none"},y5t={solid:{slate:"bg-slate-900 text-white hover:bg-slate-700 hover:text-slate-100 active:bg-slate-800 active:text-slate-300 focus-visible:outline-slate-900",blue:"bg-blue-600 text-white hover:text-slate-100 hover:bg-blue-500 active:bg-blue-800 active:text-blue-100 focus-visible:outline-blue-600",white:"bg-white text-slate-900 hover:bg-blue-50 active:bg-blue-200 active:text-slate-600 focus-visible:outline-white"},outline:{slate:"ring-slate-200 text-slate-700 hover:text-slate-900 hover:ring-slate-300 active:bg-slate-100 active:text-slate-600 focus-visible:outline-blue-600 focus-visible:ring-slate-300",white:"ring-slate-700 text-white hover:ring-slate-500 active:ring-slate-700 active:text-slate-400 focus-visible:outline-white"}};function ks({variant:e="solid",color:t="slate",className:n,href:r,...i}){return n=Is(v5t[e],y5t[e][t],n),r?GZ.default.createElement("a",{href:r,className:n,...i}):GZ.default.createElement("button",{className:n,...i})}var EP=class extends P4.Component{constructor(t){super(t)}componentDidUpdate(){this.props.open&&Fn.track("Viewed Sales Video")}triggerClose(){this.props.onHandleClose()}render(){return pu.default.createElement(Fi.Root,{show:this.props.open,as:P4.Fragment},pu.default.createElement(Ii,{as:"div",className:"relative z-10",onClose:()=>this.triggerClose()},pu.default.createElement(Fi.Child,{as:P4.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0"},pu.default.createElement("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})),pu.default.createElement("div",{className:"fixed z-10 inset-0 overflow-y-auto"},pu.default.createElement("div",{className:"flex items-end sm:items-center justify-center min-h-full p-6 text-center sm:p-0"},pu.default.createElement(Fi.Child,{as:P4.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},pu.default.createElement(Ii.Panel,{className:"relative bg-black rounded-lg px-6 py-6 text-left overflow-hidden shadow-xl transform transition-all w-full max-w-sm sm:my-10 sm:max-w-2xl sm:w-full sm:p-6"},pu.default.createElement("div",{className:"overflow-hidden bg-black rounded-lg shadow-md"},pu.default.createElement("div",{className:"player-wrapper rounded-md border-4 border-black"},pu.default.createElement(Wwe.default,{url:"https://tkkader.wistia.com/medias/25qnygl4zg",className:"react-player",width:"100%",height:"100%",controls:!0}))),pu.default.createElement("div",{className:"mt-6 bg-black w-full"},pu.default.createElement(ks,{href:"/builder",onClick:t=>{this.props.onHandleBuilderClick&&(t.preventDefault(),this.props.onHandleBuilderClick())},color:"blue",className:"w-full text-lg"},pu.default.createElement("span",null,"Start Building Your High Converting Instant Content Funnel \u2192")))))))))}};var x5t=({open:e,onHandleClose:t,allowBootstrap:n})=>{let[r,i]=(0,Ln.useState)(!1),[o,s]=(0,Ln.useState)(""),[a,l]=(0,Ln.useState)(!1),u=md();(0,Ln.useEffect)(()=>{let h=new URLSearchParams(u.search),m=h.get("website"),g=h.get("email");if(m&&s(m),g){let b=g.split("@")[1];s(b)}},[u]),(0,Ln.useEffect)(()=>{let h=setTimeout(()=>{s(d(o))},500);return()=>clearTimeout(h)},[o]);let c=()=>{let h=d(o);h&&f(h)?(l(!0),Jle(h).then(m=>{m.success?setTimeout(()=>{l(!1),m&&m.response&&m.response.data?t(m.response.data):t()},3e3):(l(!1),console.log("Error fetching bootstrap data for page",m),t())})):t()},f=h=>/^(?!:\/\/)([a-zA-Z0-9-_]+\.)+[a-zA-Z]{2,11}?$/.test(h),d=h=>{let m=h.replace(/https?:\/\/(www\.)?|www\./i,"").split("/")[0].split("?")[0];return m=m.replace(/[^a-zA-Z0-9.-]/g,""),m};return Ln.default.createElement(Ln.default.Fragment,null,Ln.default.createElement(Fi.Root,{show:e,as:Ln.Fragment},Ln.default.createElement(Ii,{as:"div",className:"relative z-10",onClose:c},Ln.default.createElement(Fi.Child,{as:Ln.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0"},Ln.default.createElement("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})),Ln.default.createElement("div",{className:"fixed z-10 inset-0 overflow-y-auto"},Ln.default.createElement("div",{className:"flex items-end sm:items-center justify-center min-h-full p-4 text-center sm:p-0"},Ln.default.createElement(Fi.Child,{as:Ln.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},Ln.default.createElement(Ii.Panel,{className:"relative bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-2xl sm:w-full sm:p-6"},Ln.default.createElement("div",{className:"overflow-hidden rounded-lg bg-gray-900 shadow-xl lg:grid lg:grid-cols-2 lg:gap-2"},Ln.default.createElement("div",{className:"px-6 pt-10 pb-12"},Ln.default.createElement("div",{className:"lg:self-center"},Ln.default.createElement("h2",{className:"text-2xl font-bold tracking-tight text-white sm:text-4xl"},Ln.default.createElement("span",{className:"block"},"Instant Landing Page")),Ln.default.createElement("p",{className:"mt-4 text-lg leading-6 text-white"},"Instantly create a content marketing landing page that generates leads and converts 10% higher than the rest.\xA0"),n&&Ln.default.createElement(Ln.default.Fragment,null,a?Ln.default.createElement("div",{className:"mt-4"},Ln.default.createElement("div",{className:"block w-full text-yellow-400 text-sm"},"Analyzing"," ",Ln.default.createElement("span",{className:"font-bold"},o)," ","and building your personalized landing page...")):Ln.default.createElement("div",{className:"mt-8"},Ln.default.createElement("div",{className:"flex rounded-md shadow-sm "},Ln.default.createElement("span",{className:"inline-flex items-center rounded-l-md border border-r-0 bg-slate-200 border-0 pl-3 pr-2 text-gray-900 font-bold sm:text-xs"},"https://"),Ln.default.createElement("input",{type:"domain",name:"domain",id:"domain",value:o,onChange:h=>s(h.target.value),onKeyDown:h=>{h.keyCode===13&&c()},className:"block w-full pl-2 pr-4 py-3 border-0 text-gray-900 placeholder-orange-500 rounded-none rounded-r-md  focus:ring-2 focus:ring-inset focus:ring-indigo-500 focus:border-indigo-500 font-bold sm:text-xs",placeholder:"enter your business website"})))),Ln.default.createElement("div",{className:`flex ${n?"mt-4":"mt-8"} gap-6 items-center`},a?Ln.default.createElement("button",{type:"button",className:"inline-flex gap-4 rounded-md border border-transparent bg-indigo-600 px-5 py-3 text-sm font-medium text-white shadow hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",disabled:!0},Ln.default.createElement("svg",{className:"animate-spin h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},Ln.default.createElement("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),Ln.default.createElement("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})),"Building..."):Ln.default.createElement("a",{href:"#",onClick:c,className:"flex-auto rounded-md border border-transparent bg-indigo-600 px-5 py-3 text-sm font-medium text-white shadow hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"},"Start Building \u2192"),Ln.default.createElement("a",{href:"/learn",className:"flex-auto text-xs font-semibold leading-6 text-white hover:underline",target:"_blank",onClick:()=>{Xwe.default.track("Clicked Learn More")}},"Learn More \u2192")),Ln.default.createElement("div",{className:"flex mt-8 border-t pt-4 border-gray-50"},Ln.default.createElement("a",{href:"/login",className:"text-xs text-white block hover:underline"},"Or, Log In to your Instant Account")))),Ln.default.createElement("div",{className:"aspect-w-5 aspect-h-3 md:aspect-w-2 md:aspect-h-1 relative group cursor-pointer"},Ln.default.createElement("img",{className:"translate-x-6 translate-y-6 transform rounded-md object-cover object-left-top sm:translate-x-16 lg:translate-y-20",src:window.bootstrap.image_url.full_screenshot,alt:"App screenshot"}))))))))),Ln.default.createElement(EP,{open:r,onHandleClose:()=>{i(!1)},onHandleBuilderClick:()=>{i(!1),t()}}))},qwe=x5t;var Fr=ie(Pe()),k4=ie(Pe());var Dc=class extends k4.Component{constructor(t){super(t),this.state={done:!1,loadingAction:!1}}componentDidUpdate(t){t.options!==this.props.options&&t.options.mode!=this.props.options.mode&&this.setState({loadingAction:!1})}triggerClose(){if(this.props.options.mode&&this.props.options.mode=="action"){this.props.options.onHandleClose();return}this.props.options.success?this.props.options.onHandleSuccess?this.props.options.onHandleSuccess():this.setState({done:!0}):this.props.options.onHandleClose()}render(){return Fr.default.createElement(Fi.Root,{show:this.props.open,as:k4.Fragment},Fr.default.createElement(Ii,{as:"div",className:"relative z-10",onClose:()=>this.triggerClose()},Fr.default.createElement(Fi.Child,{as:k4.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0"},Fr.default.createElement("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})),Fr.default.createElement("div",{className:"fixed z-10 inset-0 overflow-y-auto"},Fr.default.createElement("div",{className:"flex items-end sm:items-center justify-center min-h-full p-4 text-center sm:p-0"},Fr.default.createElement(Fi.Child,{as:k4.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},Fr.default.createElement(Ii.Panel,{className:"relative bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-md sm:w-full sm:p-6"},Fr.default.createElement("div",null,Fr.default.createElement("div",{className:"flex space-x-2 items-center justify-center"},Fr.default.createElement("div",{className:"flex-shrink-0"},this.props.options.mode&&this.props.options.mode=="action"?Fr.default.createElement("div",{className:"mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-gray-100"},Fr.default.createElement(R8,{className:"h-6 w-6 text-gray-600","aria-hidden":"true"})):Fr.default.createElement(Fr.default.Fragment,null,this.props.options.success&&Fr.default.createElement("div",{className:"mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-green-100"},Fr.default.createElement(hJ,{className:"h-6 w-6 text-green-600","aria-hidden":"true"})),!this.props.options.success&&Fr.default.createElement("div",{className:"mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-red-100"},Fr.default.createElement(r8,{className:"h-6 w-6 text-red-600","aria-hidden":"true"}))," ")),Fr.default.createElement("div",{className:"min-w-0 flex-1 items-center"},Fr.default.createElement(Ii.Title,{as:"h3",className:"text-lg leading-6 font-medium text-gray-900"},this.props.options.title))),Fr.default.createElement("hr",{className:"mt-4 mb-4"}),Fr.default.createElement("div",{className:"mt-3 text-left sm:mt-5"},Fr.default.createElement("div",{className:"mt-2"},Fr.default.isValidElement(this.props.options.message)?this.props.options.message:Fr.default.createElement("p",{className:"text-sm text-gray-500"},this.props.options.message),this.props.options.errors&&Fr.default.createElement("p",{className:"bg-slate-200 text-sm text-red-700 p-2 mt-2"},this.props.options.errors)))),Fr.default.createElement("div",{className:"mt-5 sm:mt-6"},Fr.default.createElement("button",{type:"button",className:"inline-flex items-center justify-center w-full rounded-md border border-transparent shadow-sm px-4 py-2 bg-indigo-600 text-base font-medium text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:text-sm",onClick:()=>{if(this.props.options.mode&&this.props.options.mode=="action"){if(this.state.loadingAction)return;this.setState({loadingAction:!0}),this.props.options.onAction()}else this.triggerClose()}},this.state.loadingAction?Fr.default.createElement(Fr.default.Fragment,null,"Loading..."):Fr.default.createElement(Fr.default.Fragment,null,Fr.default.createElement("div",{className:"flex flex-col items-center justify-center w-ful"},this.props.options.button_cta,this.props.options.button_seconday_cta&&Fr.default.createElement("span",{className:"text-sm text-indigo-200"},this.props.options.button_seconday_cta)),Fr.default.createElement(Op,{className:"ml-3 -mr-1 h-5 w-5"}))),this.state.done&&Fr.default.createElement(hb,{to:this.props.options.button_to,replace:!0}))))))))}};var f7e=ie($0());var lo=ie(Pe());var Rc=ie(Pe());var Rd=TransitionDialogue=e=>{let{children:t,open:n,closeDialogue:r}=e,{additionalStyles:i}=e;return i===void 0&&(i="sm:max-w-sm"),Rc.default.createElement(Fi.Root,{show:n,as:Rc.Fragment},Rc.default.createElement(Ii,{as:"div",className:"relative z-10",onClose:r},Rc.default.createElement(Fi.Child,{as:Rc.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0"},Rc.default.createElement("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})),Rc.default.createElement("div",{className:"fixed z-10 inset-0 overflow-y-auto"},Rc.default.createElement("div",{className:"flex items-center justify-center min-h-full p-4 text-center sm:p-0"},Rc.default.createElement(Fi.Child,{as:Rc.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},Rc.default.createElement(Ii.Panel,{className:`relative bg-white rounded-lg px-4 pt-4 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-4 ${i} sm:w-full sm:p-6`},t))))))};var $we=ie(b4()),gG=Signin=e=>{let[t,n]=(0,lo.useState)(""),[r,i]=(0,lo.useState)(""),[o,s]=(0,lo.useState)(""),{setLogin:a}=(0,lo.useContext)(Vr),l=If(),u=async h=>{h.preventDefault(),(await oue(t,r)).success?(a(!0),$we.isMobile?l("/live",{replace:!0}):l("/dashboard",{replace:!0}),setTimeout(()=>{window.location.reload()},500)):s("Invalid login credentials. Please try again...")},c=()=>{e.handleLoginClose()},f=()=>{c(),e.handleForgetOpen()},d=()=>{c(),e.handleSignupOpen()};return lo.default.createElement(Rd,{open:e.open,closeDialogue:c},lo.default.createElement("form",{className:"space-y-6 pt-0",onSubmit:h=>u(h)},lo.default.createElement("div",null,lo.default.createElement("div",{className:"text-left"},lo.default.createElement(Ii.Title,{as:"h3",className:"text-lg leading-6 font-bold text-gray-900"},"Log in to \u26A1\uFE0F Instant")),lo.default.createElement("div",{className:"mt-3 sm:mt-5"},lo.default.createElement("div",null,lo.default.createElement("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700"},"Email Address"),lo.default.createElement("div",{className:"mt-1"},lo.default.createElement("input",{id:"email",name:"email",type:"email",required:!0,className:"appearance-none block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm",onChange:h=>n(h.target.value)}))),lo.default.createElement("div",{className:"mt-3"},lo.default.createElement("label",{htmlFor:"password",className:"block text-sm font-medium text-gray-700"},"Password"),lo.default.createElement("div",{className:"mt-1"},lo.default.createElement("input",{id:"password",name:"password",type:"password",className:"appearance-none block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm",onChange:h=>i(h.target.value),required:!0}),lo.default.createElement("p",{className:"text-red-500 text-xs italic mt-2"},o))))),lo.default.createElement("div",{className:"mt-5 sm:mt-6"},lo.default.createElement("button",{type:"submit",className:"inline-flex justify-center w-full rounded-md border border-transparent shadow-sm px-4 py-2 bg-indigo-600 text-base font-medium text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:text-sm"},"Log In",lo.default.createElement(Op,{className:"ml-3 -mr-1 h-5 w-5"})),lo.default.createElement("hr",{className:"mt-4"}),lo.default.createElement("p",{className:"text-xs text-gray-800 mt-3 items-center"},"Forget your password?"," ",lo.default.createElement("button",{type:"button",className:"text-blue-900",onClick:f},"Recover my password"),"."))))};var Bi=ie(Pe());var zZ=ie(Pe()),i7e=ie(MP());var IZ=ie(Pe()),Zwe=ie(MP());var Mi=ie(Pe());var FZ=ie(MP());var Ywe=CheckoutForm=e=>{let{setLogin:t}=(0,Mi.useContext)(Vr),[n,r]=(0,Mi.useState)(!1),[i,o]=(0,Mi.useState)(!1),[s,a]=(0,Mi.useState)({success:!0,message:"",button_cta:""}),l=If(),[u,c]=(0,Mi.useState)(!1);return Mi.default.createElement("div",null,Mi.default.createElement("label",{htmlFor:"password",className:"block text-sm font-medium text-gray-700 mt-2"},"Payment Information"),Mi.default.createElement(FZ.CardElement,{className:"mt-1 p-4 shadow-sm rounded-md border"}),Mi.default.createElement("div",{className:"mt-4 border border-dashed border-4 border-gray-200 p-2 hidden"},Mi.default.createElement(F3,{className:"flex items-center"},Mi.default.createElement(T3,{checked:u,onChange:c,className:"group relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent bg-gray-200 transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-600 focus:ring-offset-2 data-[checked]:bg-indigo-600"},Mi.default.createElement("span",{"aria-hidden":"true",className:"pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out group-data-[checked]:translate-x-5"})),Mi.default.createElement(Np,{as:"span",className:"ml-3 text-sm"},Mi.default.createElement("span",{className:"font-bold text-gray-900"},"Content Marketing Launchpack")," ",Mi.default.createElement("span",{className:"text-gray-500"},"($1250)"),Mi.default.createElement("span",{className:"bg-slate-200 text-slate-600 py-1 px-2 ml-1 rounded-md text-xs"},"Optional"),Mi.default.createElement("p",{className:"text-sm text-gray-500 text-xs mt-1"},"Get the step-by-step training and templates on how to build your simple Lead Magnet and drive revenue growth.")))),Mi.default.createElement("div",{className:"mt-4"},n?Mi.default.createElement("button",{type:"button",className:"inline-flex justify-center w-full rounded-md border border-transparent shadow-sm px-4 py-2 text-base font-medium text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:text-sm bg-indigo-500",disabled:!0},Mi.default.createElement("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},Mi.default.createElement("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),Mi.default.createElement("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})),"Processing..."):Mi.default.createElement("button",{onClick:async()=>{r(!0),Fn.track("Builder Submit Signup Form");let{stripe:d,elements:h,email:m,password:g,closeDialogue:b,page:v}=e;if(h==null)return;let x=h.getElement(FZ.CardElement),{token:y}=await d.createToken(x),{error:_}=await d.createPaymentMethod({type:"card",card:x});if(m==""){a({success:!1,message:"Please provide a valid email address so that we can create your account.",button_cta:"Got It",button_to:"",title:"Missing Email Address",onHandleClose:()=>o(!1)}),o(!0),r(!1),Fn.track("Builder Submit Signup Result",{result:"Invalid email"});return}else if(g==""){a({success:!1,message:"Please provide a valid password so that we can create your account.",button_cta:"Got It",button_to:"",title:"Missing Password",onHandleClose:()=>o(!1)}),Fn.track("Builder Submit Signup Result",{result:"Invalid password"}),o(!0),r(!1);return}if(_)console.log(_),Fn.track("Builder Submit Signup Result",{result:"Stripe-level Error",errors:_}),a({success:!1,message:"We weren't able to set up your account. Here's the specific error we encountered:",button_cta:"Got It",errors:_.message,title:"Account Creation Failed",button_to:"",onHandleClose:()=>o(!1)}),o(!0),r(!1);else{let w=await uue(m,g,y,b,v,u);w.success?(b(),t(!0),l("/dashboard",{replace:!0}),Fn.track("Builder Submit Signup Result",{result:"Success"}),Fn.track("Builder Successful Signup"),dataLayer.push({event:"subscribed"}),setTimeout(()=>{window.location.reload()},500)):(console.log(w),Fn.track("Builder Submit Signup Result",{result:"Account Creation and Stripe Subscription Level Error",errors:w.errors}),a({success:!1,message:"We weren't able to set up your account. Here's the specific error we encountered:",button_cta:"Got It",button_to:"",title:"Account Creation Failed",errors:w.errors,onHandleClose:()=>o(!1)}),o(!0),r(!1))}},type:"button",className:"inline-flex justify-center w-full rounded-md border border-transparent shadow-sm px-4 py-2 bg-indigo-600 text-base font-medium text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:text-sm"},"Publish"," ",Mi.default.createElement(Op,{className:"ml-3 -mr-1 h-5 w-5"})),Mi.default.createElement("p",{className:"text-xs text-gray-800 mt-2 center text-center items-center"},"By registering you agree to our"," ",Mi.default.createElement("a",{href:"https://instantlanding.page/cloud-services-agreement.html",target:"_blank",rel:"noreferrer",className:"text-blue-900"},"Cloud Services Agreement"),Mi.default.createElement("br",null),"and our"," ",Mi.default.createElement("a",{href:"https://tkkader.com/privacy",target:"_blank",rel:"noreferrer",className:"text-blue-900"},"Privacy Policy")),Mi.default.createElement(Dc,{open:i,options:s})))};var Uwe=InjectedCheckoutForm=({email:e,password:t,closeDialogue:n,page:r})=>IZ.default.createElement(Zwe.ElementsConsumer,null,({stripe:i,elements:o})=>IZ.default.createElement(Ywe,{page:r,stripe:i,elements:o,email:e,password:t,closeDialogue:n}));var e7e="https://js.stripe.com/v3",_5t=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,Qwe="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",b5t=function(){for(var t=document.querySelectorAll('script[src^="'.concat(e7e,'"]')),n=0;n<t.length;n++){var r=t[n];if(!!_5t.test(r.src))return r}return null},w5t=function(t){var n=t&&!t.advancedFraudSignals?"?advancedFraudSignals=false":"",r=document.createElement("script");r.src="".concat(e7e).concat(n);var i=document.head||document.body;if(!i)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return i.appendChild(r),r},P5t=function(t,n){!t||!t._registerWrapper||t._registerWrapper({name:"stripe-js",version:"1.53.0",startTime:n})},yG=null,k5t=function(t){return yG!==null||(yG=new Promise(function(n,r){if(typeof window>"u"||typeof document>"u"){n(null);return}if(window.Stripe&&t&&console.warn(Qwe),window.Stripe){n(window.Stripe);return}try{var i=b5t();i&&t?console.warn(Qwe):i||(i=w5t(t)),i.addEventListener("load",function(){window.Stripe?n(window.Stripe):r(new Error("Stripe.js not available"))}),i.addEventListener("error",function(){r(new Error("Failed to load Stripe.js"))})}catch(o){r(o);return}})),yG},A5t=function(t,n,r){if(t===null)return null;var i=t.apply(void 0,n);return P5t(i,r),i},t7e=Promise.resolve().then(function(){return k5t(null)}),n7e=!1;t7e.catch(function(e){n7e||console.warn(e)});var r7e=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n7e=!0;var i=Date.now();return t7e.then(function(o){return A5t(o,n,i)})};var C5t=r7e(window.bootstrap.stripe.pk),xG=PaymentForm=({email:e,password:t,closeDialogue:n,page:r})=>zZ.default.createElement(i7e.Elements,{stripe:C5t},zZ.default.createElement(Uwe,{email:e,password:t,closeDialogue:n,page:r}));var o7e=Signup=({handleSignupClose:e,open:t,page:n,initialEmail:r})=>{let[i,o]=(0,Bi.useState)(r);Bi.default.useEffect(()=>{o(r)},[r]);let[s,a]=(0,Bi.useState)("");return Bi.default.createElement(Rd,{open:t,closeDialogue:e,additionalStyles:"py-6 px-6 sm:px-6 sm:py-6 sm:max-w-sm shadow-xl overflow-y-auto h-full flex flex-col max-h-[96vh]"},Bi.default.createElement("form",{className:"space-y-4 pt-0"},Bi.default.createElement("div",null,Bi.default.createElement("div",{className:"text-left"},Bi.default.createElement(Ii.Title,{as:"h3",className:"text-lg leading-6 font-bold text-gray-900"},"Set up Your Instant Account"),Bi.default.createElement("div",{className:"mt-2"},Bi.default.createElement("p",{className:"text-sm text-gray-600"},"Your instant landing page is ready to be published so you can generate quality leads and drive revenue growth.")),Bi.default.createElement("hr",{className:"mt-4"}),Bi.default.createElement("div",{className:"mt-4 text-sm text-black"},Bi.default.createElement("p",{className:"text-sm text-gray-600"},"Your Instant subscription costs $49/month (you can cancel at any time) and includes:"),Bi.default.createElement("ul",{className:"text-sm text-gray-600 list-disc list-inside mt-2"},Bi.default.createElement("li",null,"Hosting your Instant Landing Page"),Bi.default.createElement("li",null,"Content AI to Promote Your Landing Page"),Bi.default.createElement("li",null,"Super Trackable URL"),Bi.default.createElement("li",null,"Real-Time Analytics & Insights"),Bi.default.createElement("li",null,"Pipeline and Revenue Attribution"),Bi.default.createElement("li",null,"Zapier Integration")))),Bi.default.createElement("div",{className:"mt-4"},Bi.default.createElement("div",null,Bi.default.createElement("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700"},"Email Address"),Bi.default.createElement("div",{className:"mt-1"},Bi.default.createElement("input",{id:"email",name:"email",type:"email",autoComplete:"email",required:!0,defaultValue:r,className:"appearance-none block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm",onChange:l=>o(l.target.value)}))),Bi.default.createElement("div",{className:"mt-2"},Bi.default.createElement("label",{htmlFor:"password",className:"block text-sm font-medium text-gray-700"},"Password"),Bi.default.createElement("div",{className:"mt-1"},Bi.default.createElement("input",{id:"password",name:"password",type:"password",autoComplete:"current-password",required:!0,className:"appearance-none block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm",onChange:l=>a(l.target.value)}))),Bi.default.createElement(xG,{email:i,password:s,closeDialogue:e,page:n})))))};var hr=ie(Pe());var s7e="/assets/tk-signature-OPT5YY2X.digested.png";var a7e=ie($0()),yPn=SignupCheckout=({handleSignupClose:e,open:t,page:n,initialEmail:r})=>{let[i,o]=(0,hr.useState)(r);hr.default.useEffect(()=>{o(r)},[r]);let[s,a]=(0,hr.useState)("");return hr.default.createElement(Rd,{open:t,closeDialogue:e,additionalStyles:"sm:max-w-screen-lg sm:px-0 sm:py-0 shadow-xl"},hr.default.createElement("div",{className:"overflow-hidden grid grid-cols-2 gap-4 bg-gray-50"},hr.default.createElement("form",{className:"space-y-4 px-8 py-6"},hr.default.createElement("div",null,hr.default.createElement("div",{className:"text-left"},hr.default.createElement(Ii.Title,{as:"h3",className:"text-lg leading-4 font-bold text-black"},"Set up Your Instant Account"),hr.default.createElement("div",{className:"mt-3"},hr.default.createElement("p",{className:"text-sm text-gray-600"},"Your Instant landing page is ready to be published so you can generate quality leads and pipeline.")),hr.default.createElement("hr",{className:"mt-3"}),hr.default.createElement("div",{className:"mt-3 text-sm text-black"},hr.default.createElement("p",{className:"text-sm text-gray-600"},"Your Instant subscription costs $49/month and includes:"),hr.default.createElement("ul",{className:"text-sm text-gray-600 list-disc list-inside mt-3"},hr.default.createElement("li",null,"\u26A1\uFE0F AI Content Co-Pilot to Promote Your Landing Page"),hr.default.createElement("li",null,"Hosting your Instant Landing Page"),hr.default.createElement("li",null,"Real-Time Analytics"),hr.default.createElement("li",null,"Pipeline and Revenue Attribution"),hr.default.createElement("li",null,"Super Trackable URL"),hr.default.createElement("li",null,"Zapier Integration")))),hr.default.createElement("div",{className:"mt-3 sm:mt-5"},hr.default.createElement("div",null,hr.default.createElement("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700"},"Email Address"),hr.default.createElement("div",{className:"mt-1"},hr.default.createElement("input",{id:"email",name:"email",type:"email",autoComplete:"email",required:!0,defaultValue:r,className:"appearance-none block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm",onChange:l=>o(l.target.value)}))),hr.default.createElement("div",{className:"mt-3"},hr.default.createElement("label",{htmlFor:"password",className:"block text-sm font-medium text-gray-700"},"Password"),hr.default.createElement("div",{className:"mt-1"},hr.default.createElement("input",{id:"password",name:"password",type:"password",autoComplete:"current-password",required:!0,className:"appearance-none block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm",onChange:l=>a(l.target.value)}))),hr.default.createElement(xG,{email:i,password:s,closeDialogue:e,page:n})))),hr.default.createElement("div",{className:"bg-indigo-700 flex flex-col p-12 justify-center"},hr.default.createElement("div",{className:"rounded-md mb-4 w-full shadow-2xl"},hr.default.createElement("div",{className:"player-wrapper shadow-2xl rounded-md border-8 border-black"},hr.default.createElement(a7e.default,{url:"https://tkkader.wistia.com/medias/4cri10mq2u",width:"100%",height:"100%",className:"react-player",controls:!0}))),hr.default.createElement("div",{className:"mt-6 text-sm leading-6 text-gray-200"},hr.default.createElement("p",{className:"mb-4"},"We've put together a short video showing you exactly what you can expect from Instant after you've set up your account."),hr.default.createElement("p",{className:"mb-4"},"Once you've published your Instant Landing Page, you'll be able to improve your messaging using Instant AI, promote it, track your leads in real-time, and attribute revenue to your best performing channels so you can scale."),hr.default.createElement("p",null,"Let's do this!"),hr.default.createElement("img",{src:s7e,alt:"Instant Analytics",className:"invert w-24 mt-4"})))))};var Pi=ie(Pe());var _G=ForgetPassword=({handleForgetClose:e,open:t})=>{let[n,r]=(0,Pi.useState)(""),[i,o]=(0,Pi.useState)(!1),[s,a]=(0,Pi.useState)(!1),[l,u]=(0,Pi.useState)(!1),c=async f=>{f.preventDefault(),o(!0),(await lue(n)).success?(o(!1),u(!0)):(o(!1),a(!0))};return Pi.default.createElement(Rd,{open:t,closeDialogue:e},Pi.default.createElement("form",{className:"space-y-6 pt-0",onSubmit:f=>c(f)},Pi.default.createElement("div",null,Pi.default.createElement("div",{className:"text-left"},Pi.default.createElement(Ii.Title,{as:"h3",className:"text-lg leading-6 font-bold text-gray-900"},"Forget Password?")),Pi.default.createElement("div",{className:"mt-3 sm:mt-5"},Pi.default.createElement("div",null,l?Pi.default.createElement("div",{className:"mt-1"},Pi.default.createElement("p",{className:"text-gray-800"},"We've emailed you password reset instructions. Please check your inbox (and if you don't see it in a few seconds, be sure to check your Spam folder)."),Pi.default.createElement("hr",{className:"mt-4 mb-4 block"}),Pi.default.createElement("p",{className:"text-gray-800"}," ","If you continue to have trouble accessing your accout, please"," ",Pi.default.createElement("a",{className:"text-indigo-600",target:"_new",href:"mailto:team@getunstoppable.com?subject=Unstoppable Instant Account troubles"},"email us here"),".")):Pi.default.createElement(Pi.default.Fragment,null,Pi.default.createElement("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700"},"Email Address"),Pi.default.createElement("div",{className:"mt-1"},Pi.default.createElement("input",{id:"email",name:"email",type:"email",autoComplete:"email",required:!0,className:"appearance-none block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm",onChange:f=>r(f.target.value)}),s&&Pi.default.createElement("p",{className:"text-red-500 text-xs mt-3"},"Sorry, we weren't able to find your account to reset your password. Perhaps you used a different email?")))))),Pi.default.createElement("div",{className:"mt-5 sm:mt-6"},l?Pi.default.createElement(Pi.default.Fragment,null):i?Pi.default.createElement("button",{type:"button",className:"inline-flex justify-center w-full rounded-md border border-transparent shadow-sm px-4 py-2 text-base font-medium text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:text-sm bg-indigo-500",disabled:!0},Pi.default.createElement("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},Pi.default.createElement("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),Pi.default.createElement("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})),"Processing..."):Pi.default.createElement("button",{type:"submit",className:"inline-flex justify-center w-full rounded-md border border-transparent shadow-sm px-4 py-2 bg-indigo-600 text-base font-medium text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:text-sm"},"Send reset password instructions",Pi.default.createElement(Op,{className:"ml-3 -mr-1 h-5 w-5"})))))};var In=ie(Pe()),bG=ie(Jp()),l7e=ie(Ex()),u7e=ie(Fw()),c7e=ie($0());var d7e=({page:e,mode:t,onSubmit:n})=>{let[r,i]=(0,In.useState)(e.vsl_show_lead_form_at==0),[o,s]=(0,In.useState)({name:"",email:"",stage:""}),[a,l]=(0,In.useState)({showValidationErrors:!1,nameValid:!1,emailValid:!1,stageValid:!1}),[u,c]=(0,In.useState)(!1),f=(0,In.useRef)(null),d=()=>{let b=e.stages;if(b&&b.length>0){let v=b[0];return v&&v.label&&v.value&&v.label!==""&&v.value!==""}return!1},h=b=>{s((0,l7e.default)(o,{[b.target.id]:{$set:b.target.value}}))},m=()=>{let b=u7e.validate(o.email),v=o.name!==""&&o.name.length>1,x=!d()||o.stage!=="";return l({showValidationErrors:!0,emailValid:b,nameValid:v,stageValid:x}),b&&v&&x},g=b=>{b.preventDefault(),m()&&(c(!0),n(o))};return In.default.createElement(In.default.Fragment,null,In.default.createElement("header",{className:"bg-slate-100 lg:bg-transparent lg:px-5"},In.default.createElement("div",{className:"mx-auto grid max-w-5xl grid-cols-1 grid-rows-[auto_1fr] pt-2 md:pt-10 lg:grid-cols-12 lg:px-3 lg:pb-0 lg:pt-10 xl:pt-12"},In.default.createElement("div",{className:"pt-8 lg:col-span-12 lg:bg-transparent lg:pt-0 lg:pl-14 xl:pl-18"},In.default.createElement("div",{className:"mx-auto px-8 sm:px-6 md:max-w-2xl md:px-4 lg:px-0 text-pretty"},In.default.createElement("h1",{className:"font-display text-4xl font-extrabold text-slate-900 sm:text-5xl"},e.what==""?In.default.createElement("span",{className:"bg-yellow-100 text-black opacity-50"},"Name of Your Lead Magnet Goes Here"):e.what),In.default.createElement("p",{className:"mt-4 font-bold text-xl text-gray-700"},"This training for"," ",e.who==""?In.default.createElement("span",{className:"bg-yellow-100 text-black opacity-50"},"your ideal customer"):e.who," ","covers"," ",e.what_get==""?In.default.createElement("span",{className:"bg-yellow-100 text-black opacity-50"},"what they specifically get inside"):e.what_get," ","so you can"," ",e.what_want==""?In.default.createElement("span",{className:"bg-yellow-100 text-black opacity-50"},"the specific result your ideal customer wants."):e.what_want),In.default.createElement("p",{className:"text-md mt-4 font-bold text-gray-700"},e.why==""?In.default.createElement("span",{className:"bg-yellow-100 text-black opacity-50"},"Establish your credibility for delivering this"," ",e.what_type," and why your ideal customer should trust you in delivering this information."):e.why),In.default.createElement("div",{className:`mt-6 ${r?"hidden":""}`},In.default.createElement("div",{className:`relative aspect-w-16 aspect-h-9 w-full flex-auto h-full overflow-y-auto rounded-lg overflow-hidden shadow-lg mb-8 border-4 ${e.cover_background_color||"bg-black"} ${e.cover_spine_color?e.cover_spine_color.replace("bg-","border-"):"border-yellow-300"} bg-repeat ${e.cover_background_pattern}-${e.cover_background_pattern_color}/10`},e.pdf_url&&e.pdf_url.includes("Placeholder")?In.default.createElement("div",{className:"flex items-center justify-center w-full h-full text-white"},"Your Video Preview & Lead Form Will Appear Here"):In.default.createElement(c7e.default,{url:e.pdf_url,width:"100%",height:"100%",controls:!0,playing:!r,onReady:()=>{f.current.seekTo(0)},config:{youtube:{playerVars:{controls:1,start:0,startseconds:0,autoplay:1}}},ref:f,onProgress:b=>{if(b.playedSeconds>e.vsl_show_lead_form_at)f.current.seekTo(0),i(!0);else{let v=Va.get(`vsl_${e.id}_played`);b.playedSeconds!=0&&Va.set(`vsl_${e.id}_played`,b.playedSeconds)}}}))),In.default.createElement("div",{className:`mt-4 mb-4 border-2 bg-white ${r?"":"hidden"}`},In.default.createElement("div",{className:"px-4 lg:px-12 py-6"},In.default.createElement("p",{className:"text-md font-bold text-gray-700 border-b-2 border-gray-100 pb-2"},`Please enter your contact information to ${e.vsl_show_lead_form_at==0?"start":"continue"} watching...`),In.default.createElement("form",{className:"mt-4"},In.default.createElement("input",{type:"text",name:"name",id:"name",disabled:t=="preview",placeholder:"Enter Your First Name",onChange:h,className:"-mr-2mt-4 shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full text-xl border-gray-300 rounded-md"}),a.showValidationErrors&&!a.nameValid&&In.default.createElement("p",{className:"text-red-700 font-light"},"Please enter a valid name."),In.default.createElement("input",{type:"text",name:"email",id:"email",disabled:t=="preview",autoComplete:"Your email address",placeholder:e.business_email_only?"Enter Your Business Email Address":"Enter Your Email Address",onChange:h,className:"mt-4 shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full text-xl border-gray-300 rounded-md"}),a.showValidationErrors&&!a.emailValid&&In.default.createElement("p",{className:"text-red-700 font-light"},"Please enter a valid `",e.business_email_only?"business":"","` email address."),e.collect_phone&&In.default.createElement("input",{type:"text",name:"phone",id:"phone",disabled:t=="preview",autoComplete:"Your mobile phone number",placeholder:"Enter Your Mobile Phone Number",onChange:h,className:"mt-4 shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full text-xl border-gray-300 rounded-md"}),d()&&In.default.createElement("div",{className:"mt-4"},In.default.createElement("select",{id:"stage",name:"stage",autoComplete:"stage",className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-xl border-gray-300 rounded-md",value:o.stage,onChange:h},In.default.createElement("option",{disabled:!0,value:""},"Pick your stage..."),e.stages.map((b,v)=>b&&b.value!=""&&b.label!=""&&In.default.createElement("option",{key:b.value+"_"+v,value:b.value},b.label)))," ",a.showValidationErrors&&!a.stageValid&&In.default.createElement("p",{className:"text-red-700 font-light"},"Please select the stage you're in your journey as a ",e.who,".")),u?In.default.createElement("button",{type:"submit",disabled:!0,className:"mt-6 w-full py-6 border border-transparent shadow-sm text-2xl font-medium rounded-md text-black bg-yellow-400 hover:bg-yellow-400 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},"Submitting..."):In.default.createElement("button",{type:"submit",disabled:t=="preview",onClick:g,className:"mt-6 w-full py-6 border border-transparent shadow-sm text-2xl font-medium rounded-md text-black bg-yellow-300 hover:bg-yellow-400 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},`${e.vsl_show_lead_form_at==0?"Start":"Continue"}`," ","Watching \u2192")))))))),e.company_name&&In.default.createElement("footer",{className:"bg-slate-100 lg:bg-transparent px-2 lg:px-5 text-xs"},In.default.createElement("div",{className:"mx-auto max-w-5xl gap-y-16 pt-16 mb-16 md:pt-20 lg:px-3 lg:pb-0 lg:pt-20 xl:pt-12 text-center border-t mt-6"},In.default.createElement("ul",{className:"flex list-none flex-wrap justify-center"},In.default.createElement("li",{className:"px-2"},"Copyright \xA9 ",new Date().getFullYear(),"\xA0",e.company_name),e.privacy_policy_url&&In.default.createElement("li",{className:"px-2 border-l border-gray-400"},In.default.createElement("a",{href:e.privacy_policy_url,target:"_new"},"Privacy Policy")),e.tos_url&&In.default.createElement("li",{className:"px-2 border-l border-gray-400"},In.default.createElement("a",{href:e.tos_url,target:"_new"},"Terms of Service"))))))};d7e.propTypes={page:bG.default.object,mode:bG.default.string,onSubmit:bG.default.func};var wG=d7e;var PG=class extends fn.Component{constructor(t){super(t),this.builderRef=fn.default.createRef();let n=this.props.currentStep?this.props.currentStep:1;this.state={steps:[{id:1,label:"Step 1",name:"Your Ideal Customer",href:"#",status:"current"},{id:2,label:"Step 2",name:"Your Lead Magnet",href:"#",status:"upcoming"},{id:3,label:"Step 3",name:"Your Call to Action",href:"#",status:""}],page:{what:"",what_type:"guide",pdf_url:"https://www.getunstoppable.com/wp-content/uploads/2022/12/Lead-Magnet-Placeholder.pdf",who:"",what_want:"",what_get:"",why:"",cta_url:"https://instantlanding.page",cta_value_prop:"",cta:"Book Your Strategy Call",stages:[],collect_phone:!1,category:""},currentStep:n,user:{email:""},instantLoginModalOpen:!1,instantSignupModelOpen:!1,instantForgetPasswordModalOpen:!1,instantWecomeModalOpen:!1,instantModalOpen:!1,instantModalOptions:{success:!0,message:"",button_cta:""}},this.handleLogin=this.handleLogin.bind(this),this.handleOnChange=this.handleOnChange.bind(this),this.handleNextStep=this.handleNextStep.bind(this),this.handlePrevStep=this.handlePrevStep.bind(this),this.handleInstantNotification=this.handleInstantNotification.bind(this)}async componentDidMount(){let t=this.props.params.id;if(t==null)Fn.track("Started Builder"),window.matchMedia("(min-width: 1024px)").matches?this.props.currentStep==null&&(this.setState({instantWecomeModalOpen:!0}),Fn.track("Builder Showing Welcome Modal")):Fn.track("Builder Showing Mobile Message");else if(t!="new"){let n=await jle(t);n.success?(this.setState({page:n.response.data}),console.log(n.response.data)):this.props.navigate("/dashboard")}}async componentDidUpdate(){let{isLoggedIn:t,setLogin:n}=this.context;this.props.params.id==null&&t&&this.props.navigate("/dashboard")}static get propTypes(){return{currentStep:p7e.default.number}}handleLogin(){this.setState({instantLoginModalOpen:!0})}handleLoginClose(){this.setState({instantLoginModalOpen:!1})}handleSignupClose(){this.setState({instantSignupModelOpen:!1})}handleForgetPasswordClose(){this.setState({instantForgetPasswordModalOpen:!1})}handleForgetPasswordOpen(){this.setState({instantForgetPasswordModalOpen:!0})}handleSignupOpen(){this.setState({instantSignupModelOpen:!0})}handleOnChange(t){let n=t.target.id,r=t.target.value;if(t.target.type=="checkbox"&&(r=t.target.checked),n.startsWith("what_type")&&(n="what_type"),n=="vsl_show_lead_form_at"&&(/^[0-9\b]+$/.test(r)||(r=10)),t.target.id=="email")this.setState({user:(0,A4.default)(this.state.user,{email:{$set:r}})});else if(n.startsWith("stage_")){let i=n.split("_"),o=i[1],s=i[2],a=this.state.page.stages;if((a==null||a==null)&&(a=[]),!a[s])for(let l=a.length;l<=s;l++)a.push({label:"",value:"",icp:!1});o=="icp"&&(r=t.target.checked),a[s][o]=r,this.setState({page:(0,A4.default)(this.state.page,{stages:{$set:a}})},()=>{})}else this.setState({page:(0,A4.default)(this.state.page,{[n]:{$set:r}})})}async handleNextStep(t){t.preventDefault();let{isLoggedIn:n,setLogin:r}=this.context;switch(this.state.currentStep){case 1:(this.state.page.what==""||this.state.page.what==null)&&this.setState({page:(0,A4.default)(this.state.page,{what:{$set:"Name of Your Lead Magnet Goes Here"}})}),this.setState({currentStep:2}),n||Fn.track("Builder Completed Step 1"),this.builderRef.current.scrollTo({top:0,behavior:"smooth"});break;case 2:this.setState({currentStep:3}),n||Fn.track("Builder Completed Step 2"),this.builderRef.current.scrollTo({top:0,behavior:"smooth"});break;case 3:if(!n)this.setState({instantSignupModelOpen:!0}),Fn.track("Builder Completed Step 3");else if(this.state.page.id){let i=await eue(this.state.page);i.success?this.handleInstantNotification(!0,"Instant Page Updated","Your Instant Landing Page has successfully been published.",`/dashboard/${this.state.page.id}`):this.handleInstantNotification(!1,"Instant Page","We encountered an error while updating your Instant Landing Page. Here was the specific error: ","",i.response.response.statusText)}else{let i=await gS(this.state.page);i.success?this.handleInstantNotification(!0,"Instant Page Created","Your Instant Landing Page has successfully been published.",`/dashboard/${i.response.data.id}`):this.handleInstantNotification(!1,"Instant Page","We encountered an error while publishing your Instant Landing Page. Here was the specific error: ","",`${i.response.response.statusText}: ${i.response.response.data.base[0]}`)}break}}handleInstantNotification(t,n,r,i,o){this.setState({instantModalOpen:!0,instantModalOptions:{success:t,title:n,message:r,button_cta:"Got It",button_to:i,errors:o,onHandleClose:()=>this.setState({instantModalOpen:!1})}})}handlePrevStep(t){switch(t.preventDefault(),Fn.track("Builder Previous Step",{currentStep:this.state.currentStep}),this.state.currentStep){case 1:this.setState({currentStep:1});break;case 2:this.setState({currentStep:1});break;case 3:this.setState({currentStep:2});break}this.builderRef.current.scrollTo({top:0,behavior:"smooth"})}render(){let{isLoggedIn:t,setLogin:n}=this.context;return fn.default.createElement(fn.default.Fragment,null,fn.default.createElement("div",{className:"lg:hidden"},fn.default.createElement("div",{className:"flex h-full flex-col"},fn.default.createElement("div",{className:"container mx-auto"},fn.default.createElement("div",{className:"center mx-auto px-8 mb-8 lg:w-3/4"},fn.default.createElement("h1",{className:"text-4xl text-black mt-6 font-bold"},"\u26A1\uFE0F Instant"),fn.default.createElement("hr",{className:"mt-6"}),fn.default.createElement("div",{className:"player-wrapper rounded-md border-4 border-black mt-6"},fn.default.createElement(f7e.default,{url:"https://tkkader.wistia.com/medias/25qnygl4zg",className:"react-player",width:"100%",height:"100%"})),fn.default.createElement("p",{className:"mt-6"},"Instant helps you create a high converting content funnels to generate quality leads and drive revenue growth."),fn.default.createElement("p",{className:"mt-6"},"The Instant Builder works best on your desktop computer. Since you're on mobile, we recommend switching to a larger screen to get the full experience."),fn.default.createElement("a",{href:"/learn",target:"_new",className:"block center w-full mt-6 w-full py-6 border border-transparent shadow-sm text-md font-medium rounded-md text-black bg-sky-400 hover:bg-sky-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},fn.default.createElement("center",null,"Learn More \u2192")),fn.default.createElement("p",null,fn.default.createElement("a",{href:"mailto:?subject=Instant%20Landing%20Page&body=Here's%20the%20link%20to%20the%20Instant%20Landing%20Page%20Generator%20%F0%9F%91%87%0D%0Ahttps%3A%2F%2Finstantlanding.page%0D%0A%0D%0A(as%20a%20reminder%2C%20Instant%20helps%20you%20create%20and%20publish%20high%20converting%20landing%20pages%20in%20seconds)%0D%0A%0D%0AThanks%2C%0D%0AMe",onClick:()=>{Fn.track("E-Mail Reminder to Visitor from Mobile")},target:"_new",className:"mt-8 block center w-full w-full text-sm text-blue-500 underline"},fn.default.createElement("center",null,"Send Yourself a Reminder Email to Build and Launch Your Instant Content Funnel from your desktop"))),fn.default.createElement("p",{className:"mt-8 block center w-full w-full text-sm text-center"},"Already have an account?"," ",fn.default.createElement("a",{href:"https://instantlanding.page/login",className:"text-blue-500 underline"},"Sign in here to view your Instant Live Lead Feed.")),fn.default.createElement("hr",{className:"mt-6"}),fn.default.createElement("p",{className:"text-xs mt-4 text-slate-500 text-center"},"All Rights Reserved ",new Date().getFullYear()," \xA9 Copyright Ideal Customer Profile, LLC"))))),fn.default.createElement("section",{"aria-labelledby":"primary-heading",className:"hidden lg:block flex h-full flex-1 flex-col overflow-y-auto lg:order-last"},this.state.currentStep===3?fn.default.createElement(w4,{mode:"preview",page:this.state.page}):fn.default.createElement(fn.default.Fragment,null,this.state.page.what_type=="training"?fn.default.createElement(wG,{mode:"preview",page:this.state.page}):fn.default.createElement(Mx,{mode:"preview",page:this.state.page}))),fn.default.createElement("aside",{className:"hidden lg:order-first lg:block lg:flex-shrink-0"},fn.default.createElement("div",{className:"relative flex h-full w-96 flex-col overflow-y-auto border-r border-gray-200 bg-white",ref:this.builderRef},fn.default.createElement("form",{className:"space-y-8 p-8"},fn.default.createElement("div",{className:"space-y-8 divide-y divide-gray-200"},fn.default.createElement("div",null,fn.default.createElement("div",{className:t?"hidden":"mb-6"},fn.default.createElement("h3",{className:"text-2xl leading-6 font-bold text-gray-900"},"Instant Landing Page"),fn.default.createElement("p",{className:"mt-1 text-md text-gray-500"},"Instantly create a content marketing landing page that generates leads and converts 10% higher than the rest.\xA0")),fn.default.createElement("div",{className:"grid grid-cols-1 gap-y-6 gap-x-4 sm:grid-cols-6"},fn.default.createElement("nav",{"aria-label":"Progress",className:"sm:col-span-6"},fn.default.createElement("ol",{role:"list",className:"flex"},this.state.steps.map(r=>fn.default.createElement("li",{key:r.name,className:"md:flex-1"},r.id<this.state.currentStep?fn.default.createElement("span",{className:"group pl-4 py-2 flex flex-col border-l-4 border-indigo-600 hover:border-indigo-800 md:pl-0 md:pt-4 md:pb-0 md:border-l-0 md:border-t-4"},fn.default.createElement("span",{className:"text-sm text-indigo-600 font-medium group-hover:text-indigo-800"},r.label),fn.default.createElement("span",{className:"text-sm font-medium"},r.name)):r.id===this.state.currentStep?fn.default.createElement("span",{className:"pl-4 py-2 flex flex-col border-l-4 border-indigo-600 md:pl-0 md:pt-4 md:pb-0 md:border-l-0 md:border-t-4","aria-current":"step"},fn.default.createElement("span",{className:"text-sm text-indigo-600 font-medium"},r.label),fn.default.createElement("span",{className:"text-sm font-medium"},r.name)):fn.default.createElement("span",{className:"group pl-4 py-2 flex flex-col border-l-4 border-gray-200 hover:border-gray-300 md:pl-0 md:pt-4 md:pb-0 md:border-l-0 md:border-t-4"},fn.default.createElement("span",{className:"text-sm text-gray-500 font-medium group-hover:text-gray-700"},r.label),fn.default.createElement("span",{className:"text-sm font-medium"},r.name)))))),this.state.currentStep===1?fn.default.createElement(o7,{page:this.state.page,user:this.state.user,onChange:this.handleOnChange,onNextStep:this.handleNextStep}):this.state.currentStep===2?fn.default.createElement(s7,{page:this.state.page,user:this.state.user,onChange:this.handleOnChange,onNextStep:this.handleNextStep,onPrevStep:this.handlePrevStep}):fn.default.createElement(D7,{isEdit:this.props.id,page:this.state.page,user:this.state.user,onChange:this.handleOnChange,onNextStep:this.handleNextStep,onPrevStep:this.handlePrevStep})))))),fn.default.createElement(gG,{open:this.state.instantLoginModalOpen,handleLoginClose:this.handleLoginClose.bind(this),handleSignupOpen:this.handleSignupOpen.bind(this),handleForgetOpen:this.handleForgetPasswordOpen.bind(this)}),fn.default.createElement(o7e,{initialEmail:this.state.user.email,page:this.state.page,open:this.state.instantSignupModelOpen,handleSignupClose:this.handleSignupClose.bind(this)}),fn.default.createElement(_G,{open:this.state.instantForgetPasswordModalOpen,handleForgetClose:this.handleForgetPasswordClose.bind(this)}),fn.default.createElement(qwe,{allowBootstrap:this.props.allowBootstrap,open:this.state.instantWecomeModalOpen,onHandleClose:r=>{Fn.track("Builder Start Building from Welcome Modal"),this.setState({instantWecomeModalOpen:!1}),r&&this.setState({page:(0,A4.default)(this.state.page,{what:{$set:r.what},what_get:{$set:r.what_get},who:{$set:r.who},what_type:{$set:r.what_type},what_want:{$set:r.what_want},why:{$set:r.why},cta:{$set:r.cta},cta_url:{$set:r.cta_url},cta_value_prop:{$set:r.cta_value_prop}})})}}),fn.default.createElement(Dc,{open:this.state.instantModalOpen,options:this.state.instantModalOptions})))}};Kt(PG,"contextType",Vr);var Lg=Pd(PG);var qr=ie(Pe());var ze=ie(Pe());var TZ=ie(Pe()),$Pn=ie(fu());var O5t=({progressPercentage:e})=>{let r=e*100/100*100;return TZ.default.createElement("div",{className:"bg-gray-200 rounded-lg h-4 relative overflow-hidden border-2 border-gray-400 shadow-md"},TZ.default.createElement("div",{style:{width:`${r}%`},className:"absolute inset-y-0 left-0 bg-gradient-to-r from-blue-200 to-green-600 transition-all duration-300"}))},AG=O5t;var bv=ie(fu()),Pm=ie(Xa()),nDn=ie(CG());var Bo=ie(Pe()),E5t=e=>((0,Bo.useEffect)(()=>{e.trends==!0&&!e.metricsTimeframe.includes("previous")&&!e.metricsTimeframe.includes("lifetime")&&!e.metricsTimeframe.includes("this_year")&&!e.metricsTimeframe.includes("this_month")&&e.handleTimeFrameChange("previous_90_days")},[e]),Bo.default.createElement("div",{className:"relative items-center"},Bo.default.createElement("select",{id:"cta",name:"cta",autoComplete:"cta",className:"w-full shadow-sm focus:ring-indigo-500 focus:border-indigo-500 flex-1 sm:text-sm border-gray-300 rounded-md",value:e.metricsTimeframe,onChange:t=>e.handleTimeFrameChange(t.target.value)},Bo.default.createElement("optgroup",{label:"Current Performance (vs Previous Period)"},Bo.default.createElement("option",{value:"this_week"},"This Week"),Bo.default.createElement("option",{value:"this_month"},"This Month"),Bo.default.createElement("option",{value:"this_year"},"This Year")),Bo.default.createElement("optgroup",{label:"Trailing Performance (vs Previous Period)"},Bo.default.createElement("option",{value:"previous_week"},"Last Week"),Bo.default.createElement("option",{value:"previous_month"},"Last Month"),Bo.default.createElement("option",{value:"previous_year"},"Last Year")),Bo.default.createElement("optgroup",{label:"Other Time Periods"},Bo.default.createElement("option",{value:"week_before_last"},"Week Before Last (vs Last Week)"),Bo.default.createElement("option",{value:"previous_7_days"},"Last 7 Days"),Bo.default.createElement("option",{value:"previous_14_days"},"Last 14 Days"),Bo.default.createElement("option",{value:"previous_30_days"},"Last 30 Days"),Bo.default.createElement("option",{value:"previous_60_days"},"Last 60 Days"),Bo.default.createElement("option",{value:"previous_90_days"},"Last 90 Days"),Bo.default.createElement("option",{value:"previous_365_days"},"Last 365 Days"),Bo.default.createElement("option",{value:"lifetime"},"Lifetime"))),e.fetchingPageMetrics&&Bo.default.createElement("span",{className:"absolute -ml-12 mt-2"}," ",Bo.default.createElement("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-black",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},Bo.default.createElement("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),Bo.default.createElement("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"}))))),SG=E5t;var Un=ie(Pe());var M5t=e=>{let[t,n]=(0,Un.useState)("default"),[r,i]=(0,Un.useState)(""),[o,s]=(0,Un.useState)(""),[a,l]=(0,Un.useState)(""),[u,c]=(0,Un.useState)(""),[f,d]=(0,Un.useState)(!1),h=m=>{let g="",b="organic";if(m.indexOf(",")>0){let x=m.split(",");g=x[0],b=x[1]}else m=="other"?(g="your-source",b="other"):g=m;let v="https://"+window.bootstrap.lander_host;e.page.custom_domain&&(v="https://"+e.page.custom_domain),b=="organic"&&g!=""?v+=`/${g}/${e.page.public_hash}`:g==""&&b=="organic"?v+=`/${e.page.public_hash}`:v+=`/${e.page.public_hash}?utm_source=${g}&utm_medium=${b}`,s(g),l(b),c(v)};return(0,Un.useEffect)(()=>{h(""),n(e.mode)},[]),(0,Un.useEffect)(()=>{e.handleTrackingURL&&e.handleTrackingURL(o,a,u)},[u]),(0,Un.useEffect)(()=>{e.channel&&h(e.channel)},[e.channel]),Un.default.createElement("div",{className:"flex rounded-md shadow-sm w-full"},Un.default.createElement("select",{id:"source",name:"source",autoComplete:"source",className:"shadow-sm border sm:text-sm border-gray-300 rounded-md border-r-0 rounded-r-none",defaultValue:r,onChange:m=>h(m.target.value)},Un.default.createElement("option",{value:""},"Direct"),Un.default.createElement("optgroup",{label:"Orgnic Social"},Un.default.createElement("option",{value:"in"},"LinkedIn"),Un.default.createElement("option",{value:"fb"},"Facebook"),Un.default.createElement("option",{value:"t"},"Twitter"),Un.default.createElement("option",{value:"yt"},"Youtube"),Un.default.createElement("option",{value:"tok"},"TikTok")),Un.default.createElement("optgroup",{label:"Paid"},Un.default.createElement("option",{value:"google,paid"},"Google"),Un.default.createElement("option",{value:"linkedin,paid"},"LinkedIn"),Un.default.createElement("option",{value:"facebook,paid"},"Facebook"),Un.default.createElement("option",{value:"twitter,paid"},"Twitter"),Un.default.createElement("option",{value:"youtube,paid"},"Youtube"),Un.default.createElement("option",{value:"tiktok,paid"},"TikTok")),Un.default.createElement("optgroup",{label:"Other"},Un.default.createElement("option",{value:"other"},"Specify on your own..."))),t=="default"&&Un.default.createElement(Un.default.Fragment,null,Un.default.createElement("span",{className:"inline-flex block w-full min-w-0 flex-1 items-center border border-r-0 border-slate-300 bg-slate-50 px-3 text-slate-500 sm:text-sm"},u),Un.default.createElement("input",{type:"text",name:"public_hash",id:"public_hash",disabled:!0,autoComplete:"public_hash",value:o&&o!=""?o+"/"+e.page.public_hash:e.page.public_hash,className:"hidden block w-full min-w-0 flex-1 rounded-none border-r-0 border-slate-300 bg-slate-50 text-slate-600 sm:text-sm"}),Un.default.createElement("button",{type:"button",className:"-ml-px relative inline-flex items-center space-x-2 px-4 py-2 border border-gray-300 text-sm font-medium text-gray-700 bg-gray-50 hover:bg-gray-100",onClick:()=>{navigator.clipboard.writeText(u),d(!0),setTimeout(()=>{d(!1)},1e3)}},Un.default.createElement(W1,{className:"h-6 w-6 mr-2","aria-hidden":"true"}),f&&Un.default.createElement("span",null,"Copied!")),Un.default.createElement("button",{type:"button",className:"-ml-px relative inline-flex items-center space-x-2 px-4 py-2 border border-gray-300 text-sm font-medium rounded-r-md text-gray-700 bg-gray-50 hover:bg-gray-100",onClick:()=>{window.open("https://"+window.bootstrap.lander_host+"/"+e.page.public_hash+"?utm_source=preview","_blank")}},Un.default.createElement(jj,{className:"h-6 w-6 mr-2","aria-hidden":"true"}),Un.default.createElement("span",null,"View"))),t=="mini"&&Un.default.createElement("button",{type:"button",className:"-ml-px relative inline-flex items-center space-x-2 px-4 py-2 border border-gray-300 text-sm font-medium rounded-r-md text-gray-700 bg-gray-50 hover:bg-gray-100",onClick:()=>{d(!0),setTimeout(()=>{d(!1)},1e3),e.handleOnClick(o,a,u)}},Un.default.createElement(Un.default.Fragment,null,f?Un.default.createElement(I8,{className:"h-6 w-6 text-blue-400","aria-hidden":"true"}):Un.default.createElement(W1,{className:"h-6 w-6","aria-hidden":"true"}))))},OG=M5t;var mr=ie(Pe()),Qkn=ie(Xa());var Jc=ie(Pe());function NP(e){return e+.5|0}var Vg=(e,t,n)=>Math.max(Math.min(e,n),t);function BP(e){return Vg(NP(e*2.55),0,255)}function Jg(e){return Vg(NP(e*255),0,255)}function Z0(e){return Vg(NP(e/2.55)/100,0,1)}function m7e(e){return Vg(NP(e*100),0,100)}var Ld={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},VZ=[..."0123456789ABCDEF"],B5t=e=>VZ[e&15],N5t=e=>VZ[(e&240)>>4]+VZ[e&15],EG=e=>(e&240)>>4===(e&15),G5t=e=>EG(e.r)&&EG(e.g)&&EG(e.b)&&EG(e.a);function F5t(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Ld[e[1]]*17,g:255&Ld[e[2]]*17,b:255&Ld[e[3]]*17,a:t===5?Ld[e[4]]*17:255}:(t===7||t===9)&&(n={r:Ld[e[1]]<<4|Ld[e[2]],g:Ld[e[3]]<<4|Ld[e[4]],b:Ld[e[5]]<<4|Ld[e[6]],a:t===9?Ld[e[7]]<<4|Ld[e[8]]:255})),n}var I5t=(e,t)=>e<255?t(e):"";function z5t(e){var t=G5t(e)?B5t:N5t;return e?"#"+t(e.r)+t(e.g)+t(e.b)+I5t(e.a,t):void 0}var T5t=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function x7e(e,t,n){let r=t*Math.min(n,1-n),i=(o,s=(o+e/30)%12)=>n-r*Math.max(Math.min(s-3,9-s,1),-1);return[i(0),i(8),i(4)]}function D5t(e,t,n){let r=(i,o=(i+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function R5t(e,t,n){let r=x7e(e,1,.5),i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function L5t(e,t,n,r,i){return e===i?(t-n)/r+(t<n?6:0):t===i?(n-e)/r+2:(e-t)/r+4}function JZ(e){let n=e.r/255,r=e.g/255,i=e.b/255,o=Math.max(n,r,i),s=Math.min(n,r,i),a=(o+s)/2,l,u,c;return o!==s&&(c=o-s,u=a>.5?c/(2-o-s):c/(o+s),l=L5t(n,r,i,c,o),l=l*60+.5),[l|0,u||0,a]}function jZ(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Jg)}function HZ(e,t,n){return jZ(x7e,e,t,n)}function V5t(e,t,n){return jZ(R5t,e,t,n)}function J5t(e,t,n){return jZ(D5t,e,t,n)}function _7e(e){return(e%360+360)%360}function j5t(e){let t=T5t.exec(e),n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?BP(+t[5]):Jg(+t[5]));let i=_7e(+t[2]),o=+t[3]/100,s=+t[4]/100;return t[1]==="hwb"?r=V5t(i,o,s):t[1]==="hsv"?r=J5t(i,o,s):r=HZ(i,o,s),{r:r[0],g:r[1],b:r[2],a:n}}function H5t(e,t){var n=JZ(e);n[0]=_7e(n[0]+t),n=HZ(n),e.r=n[0],e.g=n[1],e.b=n[2]}function W5t(e){if(!e)return;let t=JZ(e),n=t[0],r=m7e(t[1]),i=m7e(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${Z0(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}var g7e={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},v7e={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function X5t(){let e={},t=Object.keys(v7e),n=Object.keys(g7e),r,i,o,s,a;for(r=0;r<t.length;r++){for(s=a=t[r],i=0;i<n.length;i++)o=n[i],a=a.replace(o,g7e[o]);o=parseInt(v7e[s],16),e[a]=[o>>16&255,o>>8&255,o&255]}return e}var MG;function q5t(e){MG||(MG=X5t(),MG.transparent=[0,0,0,0]);let t=MG[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}var $5t=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function K5t(e){let t=$5t.exec(e),n=255,r,i,o;if(!!t){if(t[7]!==r){let s=+t[7];n=t[8]?BP(s):Vg(s*255,0,255)}return r=+t[1],i=+t[3],o=+t[5],r=255&(t[2]?BP(r):Vg(r,0,255)),i=255&(t[4]?BP(i):Vg(i,0,255)),o=255&(t[6]?BP(o):Vg(o,0,255)),{r,g:i,b:o,a:n}}}function Y5t(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Z0(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}var LZ=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,C4=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Z5t(e,t,n){let r=C4(Z0(e.r)),i=C4(Z0(e.g)),o=C4(Z0(e.b));return{r:Jg(LZ(r+n*(C4(Z0(t.r))-r))),g:Jg(LZ(i+n*(C4(Z0(t.g))-i))),b:Jg(LZ(o+n*(C4(Z0(t.b))-o))),a:e.a+n*(t.a-e.a)}}function BG(e,t,n){if(e){let r=JZ(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=HZ(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function b7e(e,t){return e&&Object.assign(t||{},e)}function y7e(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Jg(e[3]))):(t=b7e(e,{r:0,g:0,b:0,a:1}),t.a=Jg(t.a)),t}function U5t(e){return e.charAt(0)==="r"?K5t(e):j5t(e)}var jg=class{constructor(t){if(t instanceof jg)return t;let n=typeof t,r;n==="object"?r=y7e(t):n==="string"&&(r=F5t(t)||q5t(t)||U5t(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=b7e(this._rgb);return t&&(t.a=Z0(t.a)),t}set rgb(t){this._rgb=y7e(t)}rgbString(){return this._valid?Y5t(this._rgb):void 0}hexString(){return this._valid?z5t(this._rgb):void 0}hslString(){return this._valid?W5t(this._rgb):void 0}mix(t,n){if(t){let r=this.rgb,i=t.rgb,o,s=n===o?.5:n,a=2*s-1,l=r.a-i.a,u=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-u,r.r=255&u*r.r+o*i.r+.5,r.g=255&u*r.g+o*i.g+.5,r.b=255&u*r.b+o*i.b+.5,r.a=s*r.a+(1-s)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=Z5t(this._rgb,t._rgb,n)),this}clone(){return new jg(this.rgb)}alpha(t){return this._rgb.a=Jg(t),this}clearer(t){let n=this._rgb;return n.a*=1-t,this}greyscale(){let t=this._rgb,n=NP(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){let n=this._rgb;return n.a*=1+t,this}negate(){let t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return BG(this._rgb,2,t),this}darken(t){return BG(this._rgb,2,-t),this}saturate(t){return BG(this._rgb,1,t),this}desaturate(t){return BG(this._rgb,1,-t),this}rotate(t){return H5t(this._rgb,t),this}};function Up(){}var qZ=(()=>{let e=0;return()=>e++})();function jr(e){return e===null||typeof e>"u"}function oi(e){if(Array.isArray&&Array.isArray(e))return!0;let t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function $n(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function ho(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function mu(e,t){return ho(e)?e:t}function Vn(e,t){return typeof e>"u"?t:e}var $Z=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,TG=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function si(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function ki(e,t,n,r){let i,o,s;if(oi(e))if(o=e.length,r)for(i=o-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<o;i++)t.call(n,e[i],i);else if($n(e))for(s=Object.keys(e),o=s.length,i=0;i<o;i++)t.call(n,e[s[i]],s[i])}function M4(e,t){let n,r,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function FP(e){if(oi(e))return e.map(FP);if($n(e)){let t=Object.create(null),n=Object.keys(e),r=n.length,i=0;for(;i<r;++i)t[n[i]]=FP(e[n[i]]);return t}return e}function B7e(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function N7e(e,t,n,r){if(!B7e(e))return;let i=t[e],o=n[e];$n(i)&&$n(o)?Lc(i,o,r):t[e]=FP(o)}function Lc(e,t,n){let r=oi(t)?t:[t],i=r.length;if(!$n(e))return e;n=n||{};let o=n.merger||N7e,s;for(let a=0;a<i;++a){if(s=r[a],!$n(s))continue;let l=Object.keys(s);for(let u=0,c=l.length;u<c;++u)o(l[u],e,s,n)}return e}function vy(e,t){return Lc(e,t,{merger:G7e})}function G7e(e,t,n){if(!B7e(e))return;let r=t[e],i=n[e];$n(r)&&$n(i)?vy(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=FP(i))}var w7e={"":e=>e,x:e=>e.x,y:e=>e.y};function F7e(e){let t=e.split("."),n=[],r="";for(let i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function Q5t(e){let t=F7e(e);return n=>{for(let r of t){if(r==="")break;n=n&&n[r]}return n}}function tm(e,t){return(w7e[t]||(w7e[t]=Q5t(t)))(e)}function zP(e){return e.charAt(0).toUpperCase()+e.slice(1)}var rl=e=>typeof e<"u",nl=e=>typeof e=="function",DG=(e,t)=>{if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0};function KZ(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}var Hr=Math.PI,to=2*Hr,I7e=to+Hr,IP=Number.POSITIVE_INFINITY,TP=Hr/180,eo=Hr/2,ec=Hr/4,S4=Hr*2/3,dh=Math.log10,Vd=Math.sign;function yy(e,t,n){return Math.abs(e-t)<n}function RG(e){let t=Math.round(e);e=yy(e,t,e/1e3)?t:e;let n=Math.pow(10,Math.floor(dh(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function YZ(e){let t=[],n=Math.sqrt(e),r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(n|0)&&t.push(n),t.sort((i,o)=>i-o).pop(),t}function ph(e){return!isNaN(parseFloat(e))&&isFinite(e)}function ZZ(e,t){let n=Math.round(e);return n-t<=e&&n+t>=e}function LG(e,t,n){let r,i,o;for(r=0,i=e.length;r<i;r++)o=e[r][n],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function As(e){return e*(Hr/180)}function xy(e){return e*(180/Hr)}function VG(e){if(!ho(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function JG(e,t){let n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r),o=Math.atan2(r,n);return o<-.5*Hr&&(o+=to),{angle:o,distance:i}}function em(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function z7e(e,t){return(e-t+I7e)%to-Hr}function hu(e){return(e%to+to)%to}function _y(e,t,n,r){let i=hu(e),o=hu(t),s=hu(n),a=hu(o-i),l=hu(s-i),u=hu(i-o),c=hu(i-s);return i===o||i===s||r&&o===s||a>l&&u<c}function Pa(e,t,n){return Math.max(t,Math.min(n,e))}function UZ(e){return Pa(e,-32768,32767)}function Qp(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function DP(e,t,n){n=n||(s=>e[s]<t);let r=e.length-1,i=0,o;for(;r-i>1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}var Q0=(e,t,n,r)=>DP(e,n,r?i=>{let o=e[i][t];return o<n||o===n&&e[i+1][t]===n}:i=>e[i][t]<n),QZ=(e,t,n)=>DP(e,n,r=>e[r][t]>=n);function eU(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}var T7e=["push","pop","shift","splice","unshift"];function tU(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),T7e.forEach(n=>{let r="_onData"+zP(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){let s=i.apply(this,o);return e._chartjs.listeners.forEach(a=>{typeof a[r]=="function"&&a[r](...o)}),s}})})}function jG(e,t){let n=e._chartjs;if(!n)return;let r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(T7e.forEach(o=>{delete e[o]}),delete e._chartjs)}function HG(e){let t=new Set(e);return t.size===e.length?e:Array.from(t)}var WG=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function XG(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,WG.call(window,()=>{r=!1,e.apply(t,n)}))}}function nU(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}var RP=e=>e==="start"?"left":e==="end"?"right":"center",ka=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,rU=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function iU(e,t,n){let r=t.length,i=0,o=r;if(e._sorted){let{iScale:s,_parsed:a}=e,l=s.axis,{min:u,max:c,minDefined:f,maxDefined:d}=s.getUserBounds();f&&(i=Pa(Math.min(Q0(a,s.axis,u).lo,n?r:Q0(t,l,s.getPixelForValue(u)).lo),0,r-1)),d?o=Pa(Math.max(Q0(a,s.axis,c,!0).hi+1,n?0:Q0(t,l,s.getPixelForValue(c),!0).hi+1),i,r)-i:o=r-i}return{start:i,count:o}}function oU(e){let{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;let o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}var NG=e=>e===0||e===1,P7e=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*to/n)),k7e=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*to/n)+1,my={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*eo)+1,easeOutSine:e=>Math.sin(e*eo),easeInOutSine:e=>-.5*(Math.cos(Hr*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>NG(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>NG(e)?e:P7e(e,.075,.3),easeOutElastic:e=>NG(e)?e:k7e(e,.075,.3),easeInOutElastic(e){return NG(e)?e:e<.5?.5*P7e(e*2,.1125,.45):.5+.5*k7e(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-my.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?my.easeInBounce(e*2)*.5:my.easeOutBounce(e*2-1)*.5+.5};function qG(e){if(e&&typeof e=="object"){let t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function $G(e){return qG(e)?e:new jg(e)}function IG(e){return qG(e)?e:new jg(e).saturate(.5).darken(.1).hexString()}var e_t=["x","y","borderWidth","radius","tension"],t_t=["color","borderColor","backgroundColor"];function n_t(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:t_t},numbers:{type:"number",properties:e_t}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function r_t(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var A7e=new Map;function i_t(e,t){t=t||{};let n=e+JSON.stringify(t),r=A7e.get(n);return r||(r=new Intl.NumberFormat(e,t),A7e.set(n,r)),r}function B4(e,t,n){return i_t(t,n).format(e)}var D7e={values(e){return oi(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";let r=this.chart.options.locale,i,o=e;if(n.length>1){let u=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(u<1e-4||u>1e15)&&(i="scientific"),o=o_t(e,n)}let s=dh(Math.abs(o)),a=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:i,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),B4(e,r,l)},logarithmic(e,t,n){if(e===0)return"0";let r=n[t].significand||e/Math.pow(10,Math.floor(dh(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?D7e.numeric.call(this,e,t,n):""}};function o_t(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var LP={formatters:D7e};function s_t(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:LP.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}var Wg=Object.create(null),KG=Object.create(null);function GP(e,t){if(!t)return e;let n=t.split(".");for(let r=0,i=n.length;r<i;++r){let o=n[r];e=e[o]||(e[o]=Object.create(null))}return e}function WZ(e,t,n){return typeof t=="string"?Lc(GP(e,t),n):Lc(GP(e,""),t)}var XZ=class{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>IG(i.backgroundColor),this.hoverBorderColor=(r,i)=>IG(i.borderColor),this.hoverColor=(r,i)=>IG(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return WZ(this,t,n)}get(t){return GP(this,t)}describe(t,n){return WZ(KG,t,n)}override(t,n){return WZ(Wg,t,n)}route(t,n,r,i){let o=GP(this,t),s=GP(this,r),a="_"+n;Object.defineProperties(o,{[a]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){let l=this[a],u=s[i];return $n(l)?Object.assign({},u,l):Vn(l,u)},set(l){this[a]=l}}})}apply(t){t.forEach(n=>n(this))}},mo=new XZ({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[n_t,r_t,s_t]);function R7e(e){return!e||jr(e.size)||jr(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function O4(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function sU(e,t,n,r){r=r||{};let i=r.data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},o=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let s=0,a=n.length,l,u,c,f,d;for(l=0;l<a;l++)if(f=n[l],f!=null&&!oi(f))s=O4(e,i,o,s,f);else if(oi(f))for(u=0,c=f.length;u<c;u++)d=f[u],d!=null&&!oi(d)&&(s=O4(e,i,o,s,d));e.restore();let h=o.length/2;if(h>n.length){for(l=0;l<h;l++)delete i[o[l]];o.splice(0,h)}return s}function nm(e,t,n){let r=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function YG(e,t){t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function VP(e,t,n,r){ZG(e,t,n,r,null)}function ZG(e,t,n,r,i){let o,s,a,l,u,c,f,d,h=t.pointStyle,m=t.rotation,g=t.radius,b=(m||0)*TP;if(h&&typeof h=="object"&&(o=h.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(b),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!(isNaN(g)||g<=0)){switch(e.beginPath(),h){default:i?e.ellipse(n,r,i/2,g,0,0,to):e.arc(n,r,g,0,to),e.closePath();break;case"triangle":c=i?i/2:g,e.moveTo(n+Math.sin(b)*c,r-Math.cos(b)*g),b+=S4,e.lineTo(n+Math.sin(b)*c,r-Math.cos(b)*g),b+=S4,e.lineTo(n+Math.sin(b)*c,r-Math.cos(b)*g),e.closePath();break;case"rectRounded":u=g*.516,l=g-u,s=Math.cos(b+ec)*l,f=Math.cos(b+ec)*(i?i/2-u:l),a=Math.sin(b+ec)*l,d=Math.sin(b+ec)*(i?i/2-u:l),e.arc(n-f,r-a,u,b-Hr,b-eo),e.arc(n+d,r-s,u,b-eo,b),e.arc(n+f,r+a,u,b,b+eo),e.arc(n-d,r+s,u,b+eo,b+Hr),e.closePath();break;case"rect":if(!m){l=Math.SQRT1_2*g,c=i?i/2:l,e.rect(n-c,r-l,2*c,2*l);break}b+=ec;case"rectRot":f=Math.cos(b)*(i?i/2:g),s=Math.cos(b)*g,a=Math.sin(b)*g,d=Math.sin(b)*(i?i/2:g),e.moveTo(n-f,r-a),e.lineTo(n+d,r-s),e.lineTo(n+f,r+a),e.lineTo(n-d,r+s),e.closePath();break;case"crossRot":b+=ec;case"cross":f=Math.cos(b)*(i?i/2:g),s=Math.cos(b)*g,a=Math.sin(b)*g,d=Math.sin(b)*(i?i/2:g),e.moveTo(n-f,r-a),e.lineTo(n+f,r+a),e.moveTo(n+d,r-s),e.lineTo(n-d,r+s);break;case"star":f=Math.cos(b)*(i?i/2:g),s=Math.cos(b)*g,a=Math.sin(b)*g,d=Math.sin(b)*(i?i/2:g),e.moveTo(n-f,r-a),e.lineTo(n+f,r+a),e.moveTo(n+d,r-s),e.lineTo(n-d,r+s),b+=ec,f=Math.cos(b)*(i?i/2:g),s=Math.cos(b)*g,a=Math.sin(b)*g,d=Math.sin(b)*(i?i/2:g),e.moveTo(n-f,r-a),e.lineTo(n+f,r+a),e.moveTo(n+d,r-s),e.lineTo(n-d,r+s);break;case"line":s=i?i/2:Math.cos(b)*g,a=Math.sin(b)*g,e.moveTo(n-s,r-a),e.lineTo(n+s,r+a);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(b)*(i?i/2:g),r+Math.sin(b)*g);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function Zp(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function Xg(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function qg(e){e.restore()}function aU(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if(i==="middle"){let o=(t.x+n.x)/2;e.lineTo(o,t.y),e.lineTo(o,n.y)}else i==="after"!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function lU(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function a_t(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),jr(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function l_t(e,t,n,r,i){if(i.strikethrough||i.underline){let o=e.measureText(r),s=t-o.actualBoundingBoxLeft,a=t+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,u=n+o.actualBoundingBoxDescent,c=i.strikethrough?(l+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(s,c),e.lineTo(a,c),e.stroke()}}function u_t(e,t){let n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function rm(e,t,n,r,i,o={}){let s=oi(t)?t:[t],a=o.strokeWidth>0&&o.strokeColor!=="",l,u;for(e.save(),e.font=i.string,a_t(e,o),l=0;l<s.length;++l)u=s[l],o.backdrop&&u_t(e,o.backdrop),a&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),jr(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(u,n,r,o.maxWidth)),e.fillText(u,n,r,o.maxWidth),l_t(e,n,r,u,o),r+=Number(i.lineHeight);e.restore()}function im(e,t){let{x:n,y:r,w:i,h:o,radius:s}=t;e.arc(n+s.topLeft,r+s.topLeft,s.topLeft,-eo,Hr,!0),e.lineTo(n,r+o-s.bottomLeft),e.arc(n+s.bottomLeft,r+o-s.bottomLeft,s.bottomLeft,Hr,eo,!0),e.lineTo(n+i-s.bottomRight,r+o),e.arc(n+i-s.bottomRight,r+o-s.bottomRight,s.bottomRight,eo,0,!0),e.lineTo(n+i,r+s.topRight),e.arc(n+i-s.topRight,r+s.topRight,s.topRight,0,-eo,!0),e.lineTo(n+s.topLeft,r)}var c_t=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,d_t=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function L7e(e,t){let n=(""+e).match(c_t);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}var p_t=e=>+e||0;function JP(e,t){let n={},r=$n(t),i=r?Object.keys(t):t,o=$n(e)?r?s=>Vn(e[s],e[t[s]]):s=>e[s]:()=>e;for(let s of i)n[s]=p_t(o(s));return n}function UG(e){return JP(e,{top:"y",right:"x",bottom:"y",left:"x"})}function ef(e){return JP(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Vo(e){let t=UG(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function uo(e,t){e=e||{},t=t||mo.font;let n=Vn(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Vn(e.style,t.style);r&&!(""+r).match(d_t)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);let i={family:Vn(e.family,t.family),lineHeight:L7e(Vn(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Vn(e.weight,t.weight),string:""};return i.string=R7e(i),i}function go(e,t,n,r){let i=!0,o,s,a;for(o=0,s=e.length;o<s;++o)if(a=e[o],a!==void 0&&(t!==void 0&&typeof a=="function"&&(a=a(t),i=!1),n!==void 0&&oi(a)&&(a=a[n%a.length],i=!1),a!==void 0))return r&&!i&&(r.cacheable=!1),a}function uU(e,t,n){let{min:r,max:i}=e,o=TG(t,(i-r)/2),s=(a,l)=>n&&a===0?0:a+l;return{min:s(r,-Math.abs(o)),max:s(i,o)}}function fh(e,t){return Object.assign(Object.create(e),t)}function jP(e,t=[""],n,r,i=()=>e[0]){let o=n||e;typeof r>"u"&&(r=j7e("_fallback",e));let s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:r,_getTarget:i,override:a=>jP([a,...e],t,o,r)};return new Proxy(s,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return V7e(a,l,()=>__t(l,t,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return S7e(a).includes(l)},ownKeys(a){return S7e(a)},set(a,l,u){let c=a._storage||(a._storage=i());return a[l]=c[l]=u,delete a._keys,!0}})}function Hg(e,t,n,r){let i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:QG(e,r),setContext:o=>Hg(e,o,n,r),override:o=>Hg(e.override(o),t,n,r)};return new Proxy(i,{deleteProperty(o,s){return delete o[s],delete e[s],!0},get(o,s,a){return V7e(o,s,()=>h_t(o,s,a))},getOwnPropertyDescriptor(o,s){return o._descriptors.allKeys?Reflect.has(e,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,s)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,s){return Reflect.has(e,s)},ownKeys(){return Reflect.ownKeys(e)},set(o,s,a){return e[s]=a,delete o[s],!0}})}function QG(e,t={scriptable:!0,indexable:!0}){let{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:nl(n)?n:()=>n,isIndexable:nl(r)?r:()=>r}}var f_t=(e,t)=>e?e+zP(t):t,cU=(e,t)=>$n(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function V7e(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];let r=n();return e[t]=r,r}function h_t(e,t,n){let{_proxy:r,_context:i,_subProxy:o,_descriptors:s}=e,a=r[t];return nl(a)&&s.isScriptable(t)&&(a=m_t(t,a,e,n)),oi(a)&&a.length&&(a=g_t(t,a,e,s.isIndexable)),cU(t,a)&&(a=Hg(a,i,o&&o[t],s)),a}function m_t(e,t,n,r){let{_proxy:i,_context:o,_subProxy:s,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let l=t(o,s||r);return a.delete(e),cU(e,l)&&(l=dU(i._scopes,i,e,l)),l}function g_t(e,t,n,r){let{_proxy:i,_context:o,_subProxy:s,_descriptors:a}=n;if(typeof o.index<"u"&&r(e))return t[o.index%t.length];if($n(t[0])){let l=t,u=i._scopes.filter(c=>c!==l);t=[];for(let c of l){let f=dU(u,i,e,c);t.push(Hg(f,o,s&&s[e],a))}}return t}function J7e(e,t,n){return nl(e)?e(t,n):e}var v_t=(e,t)=>e===!0?t:typeof e=="string"?tm(t,e):void 0;function y_t(e,t,n,r,i){for(let o of t){let s=v_t(n,o);if(s){e.add(s);let a=J7e(s._fallback,n,i);if(typeof a<"u"&&a!==n&&a!==r)return a}else if(s===!1&&typeof r<"u"&&n!==r)return null}return!1}function dU(e,t,n,r){let i=t._rootScopes,o=J7e(t._fallback,n,r),s=[...e,...i],a=new Set;a.add(r);let l=C7e(a,s,n,o||n,r);return l===null||typeof o<"u"&&o!==n&&(l=C7e(a,s,o,l,r),l===null)?!1:jP(Array.from(a),[""],i,o,()=>x_t(t,n,r))}function C7e(e,t,n,r,i){for(;n;)n=y_t(e,t,n,r,i);return n}function x_t(e,t,n){let r=e._getTarget();t in r||(r[t]={});let i=r[t];return oi(i)&&$n(n)?n:i||{}}function __t(e,t,n,r){let i;for(let o of t)if(i=j7e(f_t(o,e),n),typeof i<"u")return cU(e,i)?dU(n,r,e,i):i}function j7e(e,t){for(let n of t){if(!n)continue;let r=n[e];if(typeof r<"u")return r}}function S7e(e){let t=e._keys;return t||(t=e._keys=b_t(e._scopes)),t}function b_t(e){let t=new Set;for(let n of e)for(let r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}var w_t=Number.EPSILON||1e-14,E4=(e,t)=>t<e.length&&!e[t].skip&&e[t],H7e=e=>e==="x"?"y":"x";function W7e(e,t,n,r){let i=e.skip?t:e,o=t,s=n.skip?t:n,a=em(o,i),l=em(s,o),u=a/(a+l),c=l/(a+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;let f=r*u,d=r*c;return{previous:{x:o.x-f*(s.x-i.x),y:o.y-f*(s.y-i.y)},next:{x:o.x+d*(s.x-i.x),y:o.y+d*(s.y-i.y)}}}function P_t(e,t,n){let r=e.length,i,o,s,a,l,u=E4(e,0);for(let c=0;c<r-1;++c)if(l=u,u=E4(e,c+1),!(!l||!u)){if(yy(t[c],0,w_t)){n[c]=n[c+1]=0;continue}i=n[c]/t[c],o=n[c+1]/t[c],a=Math.pow(i,2)+Math.pow(o,2),!(a<=9)&&(s=3/Math.sqrt(a),n[c]=i*s*t[c],n[c+1]=o*s*t[c])}}function k_t(e,t,n="x"){let r=H7e(n),i=e.length,o,s,a,l=E4(e,0);for(let u=0;u<i;++u){if(s=a,a=l,l=E4(e,u+1),!a)continue;let c=a[n],f=a[r];s&&(o=(c-s[n])/3,a[`cp1${n}`]=c-o,a[`cp1${r}`]=f-o*t[u]),l&&(o=(l[n]-c)/3,a[`cp2${n}`]=c+o,a[`cp2${r}`]=f+o*t[u])}}function X7e(e,t="x"){let n=H7e(t),r=e.length,i=Array(r).fill(0),o=Array(r),s,a,l,u=E4(e,0);for(s=0;s<r;++s)if(a=l,l=u,u=E4(e,s+1),!!l){if(u){let c=u[t]-l[t];i[s]=c!==0?(u[n]-l[n])/c:0}o[s]=a?u?Vd(i[s-1])!==Vd(i[s])?0:(i[s-1]+i[s])/2:i[s-1]:i[s]}P_t(e,i,o),k_t(e,o,t)}function GG(e,t,n){return Math.max(Math.min(e,n),t)}function A_t(e,t){let n,r,i,o,s,a=Zp(e[0],t);for(n=0,r=e.length;n<r;++n)s=o,o=a,a=n<r-1&&Zp(e[n+1],t),o&&(i=e[n],s&&(i.cp1x=GG(i.cp1x,t.left,t.right),i.cp1y=GG(i.cp1y,t.top,t.bottom)),a&&(i.cp2x=GG(i.cp2x,t.left,t.right),i.cp2y=GG(i.cp2y,t.top,t.bottom)))}function pU(e,t,n,r,i){let o,s,a,l;if(t.spanGaps&&(e=e.filter(u=>!u.skip)),t.cubicInterpolationMode==="monotone")X7e(e,i);else{let u=r?e[e.length-1]:e[0];for(o=0,s=e.length;o<s;++o)a=e[o],l=W7e(u,a,e[Math.min(o+1,s-(r?0:1))%s],t.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,u=a}t.capBezierPoints&&A_t(e,n)}function eF(){return typeof window<"u"&&typeof document<"u"}function HP(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function zG(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}var tF=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function q7e(e,t){return tF(e).getPropertyValue(t)}var C_t=["top","right","bottom","left"];function gy(e,t,n){let r={};n=n?"-"+n:"";for(let i=0;i<4;i++){let o=C_t[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}var S_t=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function O_t(e,t){let n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=r,s=!1,a,l;if(S_t(i,o,e.target))a=i,l=o;else{let u=t.getBoundingClientRect();a=r.clientX-u.left,l=r.clientY-u.top,s=!0}return{x:a,y:l,box:s}}function om(e,t){if("native"in e)return e;let{canvas:n,currentDevicePixelRatio:r}=t,i=tF(n),o=i.boxSizing==="border-box",s=gy(i,"padding"),a=gy(i,"border","width"),{x:l,y:u,box:c}=O_t(e,n),f=s.left+(c&&a.left),d=s.top+(c&&a.top),{width:h,height:m}=t;return o&&(h-=s.width+a.width,m-=s.height+a.height),{x:Math.round((l-f)/h*n.width/r),y:Math.round((u-d)/m*n.height/r)}}function E_t(e,t,n){let r,i;if(t===void 0||n===void 0){let o=HP(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{let s=o.getBoundingClientRect(),a=tF(o),l=gy(a,"border","width"),u=gy(a,"padding");t=s.width-u.width-l.width,n=s.height-u.height-l.height,r=zG(a.maxWidth,o,"clientWidth"),i=zG(a.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:r||IP,maxHeight:i||IP}}var FG=e=>Math.round(e*10)/10;function fU(e,t,n,r){let i=tF(e),o=gy(i,"margin"),s=zG(i.maxWidth,e,"clientWidth")||IP,a=zG(i.maxHeight,e,"clientHeight")||IP,l=E_t(e,t,n),{width:u,height:c}=l;if(i.boxSizing==="content-box"){let d=gy(i,"border","width"),h=gy(i,"padding");u-=h.width+d.width,c-=h.height+d.height}return u=Math.max(0,u-o.width),c=Math.max(0,r?u/r:c-o.height),u=FG(Math.min(u,s,l.maxWidth)),c=FG(Math.min(c,a,l.maxHeight)),u&&!c&&(c=FG(u/2)),(t!==void 0||n!==void 0)&&r&&l.height&&c>l.height&&(c=l.height,u=FG(Math.floor(c*r))),{width:u,height:c}}function nF(e,t,n){let r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);let s=e.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${e.height}px`,s.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||s.height!==i||s.width!==o?(e.currentDevicePixelRatio=r,s.height=i,s.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}var hU=function(){let e=!1;try{let t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e}();function rF(e,t){let n=q7e(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function U0(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function mU(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function gU(e,t,n,r){let i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},s=U0(e,i,n),a=U0(i,o,n),l=U0(o,t,n),u=U0(s,a,n),c=U0(a,l,n);return U0(u,c,n)}var M_t=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},B_t=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function $g(e,t,n){return e?M_t(t,n):B_t()}function iF(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function oF(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function $7e(e){return e==="angle"?{between:_y,compare:z7e,normalize:hu}:{between:Qp,compare:(t,n)=>t-n,normalize:t=>t}}function O7e({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function N_t(e,t,n){let{property:r,start:i,end:o}=n,{between:s,normalize:a}=$7e(r),l=t.length,{start:u,end:c,loop:f}=e,d,h;if(f){for(u+=l,c+=l,d=0,h=l;d<h&&s(a(t[u%l][r]),i,o);++d)u--,c--;u%=l,c%=l}return c<u&&(c+=l),{start:u,end:c,loop:f,style:e.style}}function sF(e,t,n){if(!n)return[e];let{property:r,start:i,end:o}=n,s=t.length,{compare:a,between:l,normalize:u}=$7e(r),{start:c,end:f,loop:d,style:h}=N_t(e,t,n),m=[],g=!1,b=null,v,x,y,_=()=>l(i,y,v)&&a(i,y)!==0,w=()=>a(o,v)===0||l(o,y,v),k=()=>g||_(),O=()=>!g||w();for(let M=c,I=c;M<=f;++M)x=t[M%s],!x.skip&&(v=u(x[r]),v!==y&&(g=l(v,i,o),b===null&&k()&&(b=a(v,i)===0?M:I),b!==null&&O()&&(m.push(O7e({start:b,end:M,loop:d,count:s,style:h})),b=null),I=M,y=v));return b!==null&&m.push(O7e({start:b,end:f,loop:d,count:s,style:h})),m}function aF(e,t){let n=[],r=e.segments;for(let i=0;i<r.length;i++){let o=sF(r[i],e.points,t);o.length&&n.push(...o)}return n}function G_t(e,t,n,r){let i=0,o=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(o+=i);o>i&&e[o%t].skip;)o--;return o%=t,{start:i,end:o}}function F_t(e,t,n,r){let i=e.length,o=[],s=t,a=e[t],l;for(l=t+1;l<=n;++l){let u=e[l%i];u.skip||u.stop?a.skip||(r=!1,o.push({start:t%i,end:(l-1)%i,loop:r}),t=s=u.stop?l:null):(s=l,a.skip&&(t=l)),a=u}return s!==null&&o.push({start:t%i,end:s%i,loop:r}),o}function vU(e,t){let n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];let o=!!e._loop,{start:s,end:a}=G_t(n,i,o,r);if(r===!0)return E7e(e,[{start:s,end:a,loop:o}],n,t);let l=a<s?a+i:a,u=!!e._fullLoop&&s===0&&a===i-1;return E7e(e,F_t(n,s,l,u),n,t)}function E7e(e,t,n,r){return!r||!r.setContext||!n?t:I_t(e,t,n,r)}function I_t(e,t,n,r){let i=e._chart.getContext(),o=M7e(e.options),{_datasetIndex:s,options:{spanGaps:a}}=e,l=n.length,u=[],c=o,f=t[0].start,d=f;function h(m,g,b,v){let x=a?-1:1;if(m!==g){for(m+=l;n[m%l].skip;)m-=x;for(;n[g%l].skip;)g+=x;m%l!==g%l&&(u.push({start:m%l,end:g%l,loop:b,style:v}),c=v,f=g%l)}}for(let m of t){f=a?f:m.start;let g=n[f%l],b;for(d=f+1;d<=m.end;d++){let v=n[d%l];b=M7e(r.setContext(fh(i,{type:"segment",p0:g,p1:v,p0DataIndex:(d-1)%l,p1DataIndex:d%l,datasetIndex:s}))),z_t(b,c)&&h(f,d-1,m.loop,c),g=v,c=b}f<d-1&&h(f,d-1,m.loop,c)}return u}function M7e(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function z_t(e,t){if(!t)return!1;let n=[],r=function(i,o){return qG(o)?(n.includes(o)||n.push(o),n.indexOf(o)):o};return JSON.stringify(e,r)!==JSON.stringify(t,r)}var SU=class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,i){let o=n.listeners[i],s=n.duration;o.forEach(a=>a({chart:t,initial:n.initial,numSteps:s,currentStep:Math.min(r-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=WG.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;let o=r.items,s=o.length-1,a=!1,l;for(;s>=0;--s)l=o[s],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),a=!0):(o[s]=o[o.length-1],o.pop());a&&(i.draw(),this._notify(i,r,t,"progress")),o.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){let n=this._charts,r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){let n=this._charts.get(t);!n||(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;let n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){let n=this._charts.get(t);if(!n||!n.items.length)return;let r=n.items,i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}},sm=new SU,K7e="transparent",D_t={boolean(e,t,n){return n>.5?t:e},color(e,t,n){let r=$G(e||K7e),i=r.valid&&$G(t||K7e);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}},OU=class{constructor(t,n,r,i){let o=n[r];i=go([t.to,i,o,t.from]);let s=go([t.from,o,i]);this._active=!0,this._fn=t.fn||D_t[t.type||typeof s],this._easing=my[t.easing]||my.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=s,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);let i=this._target[this._prop],o=r-this._start,s=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=go([t.to,n,i,t.from]),this._from=go([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){let n=t-this._start,r=this._duration,i=this._prop,o=this._from,s=this._loop,a=this._to,l;if(this._active=o!==a&&(s||n<r),!this._active){this._target[i]=a,this._notify(!0);return}if(n<0){this._target[i]=o;return}l=n/r%2,l=s&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,a,l)}wait(){let t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){let n=t?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][n]()}},I4=class{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!$n(t))return;let n=Object.keys(mo.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{let o=t[i];if(!$n(o))return;let s={};for(let a of n)s[a]=o[a];(oi(o.properties)&&o.properties||[i]).forEach(a=>{(a===i||!r.has(a))&&r.set(a,s)})})}_animateOptions(t,n){let r=n.options,i=L_t(t,r);if(!i)return[];let o=this._createAnimations(i,r);return r.$shared&&R_t(t.options.$animations,r).then(()=>{t.options=r},()=>{}),o}_createAnimations(t,n){let r=this._properties,i=[],o=t.$animations||(t.$animations={}),s=Object.keys(n),a=Date.now(),l;for(l=s.length-1;l>=0;--l){let u=s[l];if(u.charAt(0)==="$")continue;if(u==="options"){i.push(...this._animateOptions(t,n));continue}let c=n[u],f=o[u],d=r.get(u);if(f)if(d&&f.active()){f.update(d,c,a);continue}else f.cancel();if(!d||!d.duration){t[u]=c;continue}o[u]=f=new OU(d,t,u,c),i.push(f)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}let r=this._createAnimations(t,n);if(r.length)return sm.add(this._chart,r),!0}};function R_t(e,t){let n=[],r=Object.keys(t);for(let i=0;i<r.length;i++){let o=e[r[i]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}function L_t(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function Y7e(e,t){let n=e&&e.options||{},r=n.reverse,i=n.min===void 0?t:0,o=n.max===void 0?t:0;return{start:r?o:i,end:r?i:o}}function V_t(e,t,n){if(n===!1)return!1;let r=Y7e(e,n),i=Y7e(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function J_t(e){let t,n,r,i;return $n(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:e===!1}}function WPe(e,t){let n=[],r=e._getSortedDatasetMetas(t),i,o;for(i=0,o=r.length;i<o;++i)n.push(r[i].index);return n}function Z7e(e,t,n,r={}){let i=e.keys,o=r.mode==="single",s,a,l,u;if(t!==null){for(s=0,a=i.length;s<a;++s){if(l=+i[s],l===n){if(r.all)continue;break}u=e.values[l],ho(u)&&(o||t===0||Vd(t)===Vd(u))&&(t+=u)}return t}}function j_t(e){let t=Object.keys(e),n=new Array(t.length),r,i,o;for(r=0,i=t.length;r<i;++r)o=t[r],n[r]={x:o,y:e[o]};return n}function U7e(e,t){let n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function H_t(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function W_t(e){let{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function X_t(e,t,n){let r=e[t]||(e[t]={});return r[n]||(r[n]={})}function Q7e(e,t,n,r){for(let i of t.getMatchingVisibleMetas(r).reverse()){let o=e[i.index];if(n&&o>0||!n&&o<0)return i.index}return null}function ePe(e,t){let{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:s,index:a}=r,l=o.axis,u=s.axis,c=H_t(o,s,r),f=t.length,d;for(let h=0;h<f;++h){let m=t[h],{[l]:g,[u]:b}=m,v=m._stacks||(m._stacks={});d=v[u]=X_t(i,c,g),d[a]=b,d._top=Q7e(d,s,!0,r.type),d._bottom=Q7e(d,s,!1,r.type);let x=d._visualValues||(d._visualValues={});x[a]=b}}function yU(e,t){let n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function q_t(e,t){return fh(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function $_t(e,t,n){return fh(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function WP(e,t){let n=e.controller.index,r=e.vScale&&e.vScale.axis;if(!!r){t=t||e._parsed;for(let i of t){let o=i._stacks;if(!o||o[r]===void 0||o[r][n]===void 0)return;delete o[r][n],o[r]._visualValues!==void 0&&o[r]._visualValues[n]!==void 0&&delete o[r]._visualValues[n]}}}var xU=e=>e==="reset"||e==="none",tPe=(e,t)=>t?e:Object.assign({},e),K_t=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:WPe(n,!0),values:null},lm=class{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=U7e(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&WP(this._cachedMeta),this.index=t}linkScales(){let t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(f,d,h,m)=>f==="x"?d:f==="r"?m:h,o=n.xAxisID=Vn(r.xAxisID,yU(t,"x")),s=n.yAxisID=Vn(r.yAxisID,yU(t,"y")),a=n.rAxisID=Vn(r.rAxisID,yU(t,"r")),l=n.indexAxis,u=n.iAxisID=i(l,o,s,a),c=n.vAxisID=i(l,s,o,a);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(s),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){let n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){let t=this._cachedMeta;this._data&&jG(this._data,this),t._stacked&&WP(t)}_dataCheck(){let t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if($n(n))this._data=j_t(n);else if(r!==n){if(r){jG(r,this);let i=this._cachedMeta;WP(i),i._parsed=[]}n&&Object.isExtensible(n)&&tU(n,this),this._syncList=[],this._data=n}}addElements(){let t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){let n=this._cachedMeta,r=this.getDataset(),i=!1;this._dataCheck();let o=n._stacked;n._stacked=U7e(n.vScale,n),n.stack!==r.stack&&(i=!0,WP(n),n.stack=r.stack),this._resyncElements(t),(i||o!==n._stacked)&&ePe(this,n._parsed)}configure(){let t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){let{_cachedMeta:r,_data:i}=this,{iScale:o,_stacked:s}=r,a=o.axis,l=t===0&&n===i.length?!0:r._sorted,u=t>0&&r._parsed[t-1],c,f,d;if(this._parsing===!1)r._parsed=i,r._sorted=!0,d=i;else{oi(i[t])?d=this.parseArrayData(r,i,t,n):$n(i[t])?d=this.parseObjectData(r,i,t,n):d=this.parsePrimitiveData(r,i,t,n);let h=()=>f[a]===null||u&&f[a]<u[a];for(c=0;c<n;++c)r._parsed[c+t]=f=d[c],l&&(h()&&(l=!1),u=f);r._sorted=l}s&&ePe(this,d)}parsePrimitiveData(t,n,r,i){let{iScale:o,vScale:s}=t,a=o.axis,l=s.axis,u=o.getLabels(),c=o===s,f=new Array(i),d,h,m;for(d=0,h=i;d<h;++d)m=d+r,f[d]={[a]:c||o.parse(u[m],m),[l]:s.parse(n[m],m)};return f}parseArrayData(t,n,r,i){let{xScale:o,yScale:s}=t,a=new Array(i),l,u,c,f;for(l=0,u=i;l<u;++l)c=l+r,f=n[c],a[l]={x:o.parse(f[0],c),y:s.parse(f[1],c)};return a}parseObjectData(t,n,r,i){let{xScale:o,yScale:s}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,u=new Array(i),c,f,d,h;for(c=0,f=i;c<f;++c)d=c+r,h=n[d],u[c]={x:o.parse(tm(h,a),d),y:s.parse(tm(h,l),d)};return u}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){let i=this.chart,o=this._cachedMeta,s=n[t.axis],a={keys:WPe(i,!0),values:n._stacks[t.axis]._visualValues};return Z7e(a,s,o.index,{mode:r})}updateRangeFromParsed(t,n,r,i){let o=r[n.axis],s=o===null?NaN:o,a=i&&r._stacks[n.axis];i&&a&&(i.values=a,s=Z7e(i,o,this._cachedMeta.index)),t.min=Math.min(t.min,s),t.max=Math.max(t.max,s)}getMinMax(t,n){let r=this._cachedMeta,i=r._parsed,o=r._sorted&&t===r.iScale,s=i.length,a=this._getOtherScale(t),l=K_t(n,r,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:f}=W_t(a),d,h;function m(){h=i[d];let g=h[a.axis];return!ho(h[t.axis])||c>g||f<g}for(d=0;d<s&&!(!m()&&(this.updateRangeFromParsed(u,t,h,l),o));++d);if(o){for(d=s-1;d>=0;--d)if(!m()){this.updateRangeFromParsed(u,t,h,l);break}}return u}getAllParsedValues(t){let n=this._cachedMeta._parsed,r=[],i,o,s;for(i=0,o=n.length;i<o;++i)s=n[i][t.axis],ho(s)&&r.push(s);return r}getMaxOverflow(){return!1}getLabelAndValue(t){let n=this._cachedMeta,r=n.iScale,i=n.vScale,o=this.getParsed(t);return{label:r?""+r.getLabelForValue(o[r.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(t){let n=this._cachedMeta;this.update(t||"default"),n._clip=J_t(Vn(this.options.clip,V_t(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){let t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],o=n.chartArea,s=[],a=this._drawStart||0,l=this._drawCount||i.length-a,u=this.options.drawActiveElementsOnTop,c;for(r.dataset&&r.dataset.draw(t,o,a,l),c=a;c<a+l;++c){let f=i[c];f.hidden||(f.active&&u?s.push(f):f.draw(t,o))}for(c=0;c<s.length;++c)s[c].draw(t,o)}getStyle(t,n){let r=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,n,r){let i=this.getDataset(),o;if(t>=0&&t<this._cachedMeta.data.length){let s=this._cachedMeta.data[t];o=s.$context||(s.$context=$_t(this.getContext(),t,s)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=q_t(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!n,o.mode=r,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",r){let i=n==="active",o=this._cachedDataOpts,s=t+"-"+n,a=o[s],l=this.enableOptionSharing&&rl(r);if(a)return tPe(a,l);let u=this.chart.config,c=u.datasetElementScopeKeys(this._type,t),f=i?[`${t}Hover`,"hover",t,""]:[t,""],d=u.getOptionScopes(this.getDataset(),c),h=Object.keys(mo.elements[t]),m=()=>this.getContext(r,i,n),g=u.resolveNamedOptions(d,h,m,f);return g.$shared&&(g.$shared=l,o[s]=Object.freeze(tPe(g,l))),g}_resolveAnimations(t,n,r){let i=this.chart,o=this._cachedDataOpts,s=`animation-${n}`,a=o[s];if(a)return a;let l;if(i.options.animation!==!1){let c=this.chart.config,f=c.datasetAnimationScopeKeys(this._type,n),d=c.getOptionScopes(this.getDataset(),f);l=c.createResolver(d,this.getContext(t,r,n))}let u=new I4(i,l&&l.animations);return l&&l._cacheable&&(o[s]=Object.freeze(u)),u}getSharedOptions(t){if(!!t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||xU(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){let r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,o=this.getSharedOptions(r),s=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,r),{sharedOptions:o,includeOptions:s}}updateElement(t,n,r,i){xU(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!xU(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;let o=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){let n=this._data,r=this._cachedMeta.data;for(let[a,l,u]of this._syncList)this[a](l,u);this._syncList=[];let i=r.length,o=n.length,s=Math.min(o,i);s&&this.parse(0,s),o>i?this._insertElements(i,o-i,t):o<i&&this._removeElements(o,i-o)}_insertElements(t,n,r=!0){let i=this._cachedMeta,o=i.data,s=t+n,a,l=u=>{for(u.length+=n,a=u.length-1;a>=s;a--)u[a]=u[a-n]};for(l(o),a=t;a<s;++a)o[a]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(t,n),r&&this.updateElements(o,t,n,"reset")}updateElements(t,n,r,i){}_removeElements(t,n){let r=this._cachedMeta;if(this._parsing){let i=r._parsed.splice(t,n);r._stacked&&WP(r,i)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{let[n,r,i]=t;this[n](r,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){let t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);let r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}};Kt(lm,"defaults",{}),Kt(lm,"datasetElementType",null),Kt(lm,"dataElementType",null);function Y_t(e,t){if(!e._cache.$bar){let n=e.getMatchingVisibleMetas(t),r=[];for(let i=0,o=n.length;i<o;i++)r=r.concat(n[i].controller.getAllParsedValues(e));e._cache.$bar=HG(r.sort((i,o)=>i-o))}return e._cache.$bar}function Z_t(e){let t=e.iScale,n=Y_t(t,e.type),r=t._length,i,o,s,a,l=()=>{s===32767||s===-32768||(rl(a)&&(r=Math.min(r,Math.abs(s-a)||r)),a=s)};for(i=0,o=n.length;i<o;++i)s=t.getPixelForValue(n[i]),l();for(a=void 0,i=0,o=t.ticks.length;i<o;++i)s=t.getPixelForTick(i),l();return r}function U_t(e,t,n,r){let i=n.barThickness,o,s;return jr(i)?(o=t.min*n.categoryPercentage,s=n.barPercentage):(o=i*r,s=1),{chunk:o/r,ratio:s,start:t.pixels[e]-o/2}}function Q_t(e,t,n,r){let i=t.pixels,o=i[e],s=e>0?i[e-1]:null,a=e<i.length-1?i[e+1]:null,l=n.categoryPercentage;s===null&&(s=o-(a===null?t.end-t.start:a-o)),a===null&&(a=o+o-s);let u=o-(o-Math.min(s,a))/2*l;return{chunk:Math.abs(a-s)/2*l/r,ratio:n.barPercentage,start:u}}function ebt(e,t,n,r){let i=n.parse(e[0],r),o=n.parse(e[1],r),s=Math.min(i,o),a=Math.max(i,o),l=s,u=a;Math.abs(s)>Math.abs(a)&&(l=a,u=s),t[n.axis]=u,t._custom={barStart:l,barEnd:u,start:i,end:o,min:s,max:a}}function XPe(e,t,n,r){return oi(e)?ebt(e,t,n,r):t[n.axis]=n.parse(e,r),t}function nPe(e,t,n,r){let i=e.iScale,o=e.vScale,s=i.getLabels(),a=i===o,l=[],u,c,f,d;for(u=n,c=n+r;u<c;++u)d=t[u],f={},f[i.axis]=a||i.parse(s[u],u),l.push(XPe(d,f,o,u));return l}function _U(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function tbt(e,t,n){return e!==0?Vd(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function nbt(e){let t,n,r,i,o;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(i="end",o="start"):(i="start",o="end"),{start:n,end:r,reverse:t,top:i,bottom:o}}function rbt(e,t,n,r){let i=t.borderSkipped,o={};if(!i){e.borderSkipped=o;return}if(i===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}let{start:s,end:a,reverse:l,top:u,bottom:c}=nbt(e);i==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=u:(n._bottom||0)===r?i=c:(o[rPe(c,s,a,l)]=!0,i=u)),o[rPe(i,s,a,l)]=!0,e.borderSkipped=o}function rPe(e,t,n,r){return r?(e=ibt(e,t,n),e=iPe(e,n,t)):e=iPe(e,t,n),e}function ibt(e,t,n){return e===t?n:e===n?t:e}function iPe(e,t,n){return e==="start"?t:e==="end"?n:e}function obt(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}var Py=class extends lm{parsePrimitiveData(t,n,r,i){return nPe(t,n,r,i)}parseArrayData(t,n,r,i){return nPe(t,n,r,i)}parseObjectData(t,n,r,i){let{iScale:o,vScale:s}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,u=o.axis==="x"?a:l,c=s.axis==="x"?a:l,f=[],d,h,m,g;for(d=r,h=r+i;d<h;++d)g=n[d],m={},m[o.axis]=o.parse(tm(g,u),d),f.push(XPe(tm(g,c),m,s,d));return f}updateRangeFromParsed(t,n,r,i){super.updateRangeFromParsed(t,n,r,i);let o=r._custom;o&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){let n=this._cachedMeta,{iScale:r,vScale:i}=n,o=this.getParsed(t),s=o._custom,a=_U(s)?"["+s.start+", "+s.end+"]":""+i.getLabelForValue(o[i.axis]);return{label:""+r.getLabelForValue(o[r.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();let t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){let n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,r,i){let o=i==="reset",{index:s,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),u=a.isHorizontal(),c=this._getRuler(),{sharedOptions:f,includeOptions:d}=this._getSharedOptions(n,i);for(let h=n;h<n+r;h++){let m=this.getParsed(h),g=o||jr(m[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(h),b=this._calculateBarIndexPixels(h,c),v=(m._stacks||{})[a.axis],x={horizontal:u,base:g.base,enableBorderRadius:!v||_U(m._custom)||s===v._top||s===v._bottom,x:u?g.head:b.center,y:u?b.center:g.head,height:u?b.size:Math.abs(g.size),width:u?Math.abs(g.size):b.size};d&&(x.options=f||this.resolveDataElementOptions(h,t[h].active?"active":i));let y=x.options||t[h].options;rbt(x,y,v,s),obt(x,y,c.ratio),this.updateElement(t[h],h,x,i)}}_getStacks(t,n){let{iScale:r}=this._cachedMeta,i=r.getMatchingVisibleMetas(this._type).filter(l=>l.controller.options.grouped),o=r.options.stacked,s=[],a=l=>{let u=l.controller.getParsed(n),c=u&&u[l.vScale.axis];if(jr(c)||isNaN(c))return!0};for(let l of i)if(!(n!==void 0&&a(l))&&((o===!1||s.indexOf(l.stack)===-1||o===void 0&&l.stack===void 0)&&s.push(l.stack),l.index===t))break;return s.length||s.push(void 0),s}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){let i=this._getStacks(t,r),o=n!==void 0?i.indexOf(n):-1;return o===-1?i.length-1:o}_getRuler(){let t=this.options,n=this._cachedMeta,r=n.iScale,i=[],o,s;for(o=0,s=n.data.length;o<s;++o)i.push(r.getPixelForValue(this.getParsed(o)[r.axis],o));let a=t.barThickness;return{min:a||Z_t(n),pixels:i,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){let{_cachedMeta:{vScale:n,_stacked:r,index:i},options:{base:o,minBarLength:s}}=this,a=o||0,l=this.getParsed(t),u=l._custom,c=_U(u),f=l[n.axis],d=0,h=r?this.applyStack(n,l,r):f,m,g;h!==f&&(d=h-f,h=f),c&&(f=u.barStart,h=u.barEnd-u.barStart,f!==0&&Vd(f)!==Vd(u.barEnd)&&(d=0),d+=f);let b=!jr(o)&&!c?o:d,v=n.getPixelForValue(b);if(this.chart.getDataVisibility(t)?m=n.getPixelForValue(d+h):m=v,g=m-v,Math.abs(g)<s){g=tbt(g,n,a)*s,f===a&&(v-=g/2);let x=n.getPixelForDecimal(0),y=n.getPixelForDecimal(1),_=Math.min(x,y),w=Math.max(x,y);v=Math.max(Math.min(v,w),_),m=v+g,r&&!c&&(l._stacks[n.axis]._visualValues[i]=n.getValueForPixel(m)-n.getValueForPixel(v))}if(v===n.getPixelForValue(a)){let x=Vd(g)*n.getLineWidthForValue(a)/2;v+=x,g-=x}return{size:g,base:v,head:m,center:m+g/2}}_calculateBarIndexPixels(t,n){let r=n.scale,i=this.options,o=i.skipNull,s=Vn(i.maxBarThickness,1/0),a,l;if(n.grouped){let u=o?this._getStackCount(t):n.stackCount,c=i.barThickness==="flex"?Q_t(t,n,i,u):U_t(t,n,i,u),f=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);a=c.start+c.chunk*f+c.chunk/2,l=Math.min(s,c.chunk*c.ratio)}else a=r.getPixelForValue(this.getParsed(t)[r.axis],t),l=Math.min(s,n.min*n.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){let t=this._cachedMeta,n=t.vScale,r=t.data,i=r.length,o=0;for(;o<i;++o)this.getParsed(o)[n.axis]!==null&&r[o].draw(this._ctx)}};Kt(Py,"id","bar"),Kt(Py,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),Kt(Py,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});function sbt(e,t,n){let r=1,i=1,o=0,s=0;if(t<to){let a=e,l=a+t,u=Math.cos(a),c=Math.sin(a),f=Math.cos(l),d=Math.sin(l),h=(y,_,w)=>_y(y,a,l,!0)?1:Math.max(_,_*n,w,w*n),m=(y,_,w)=>_y(y,a,l,!0)?-1:Math.min(_,_*n,w,w*n),g=h(0,u,f),b=h(eo,c,d),v=m(Hr,u,f),x=m(Hr+eo,c,d);r=(g-v)/2,i=(b-x)/2,o=-(g+v)/2,s=-(b+x)/2}return{ratioX:r,ratioY:i,offsetX:o,offsetY:s}}var Kg=class extends lm{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){let r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let o=l=>+r[l];if($n(r[t])){let{key:l="value"}=this._parsing;o=u=>+tm(r[u],l)}let s,a;for(s=t,a=t+n;s<a;++s)i._parsed[s]=o(s)}}_getRotation(){return As(this.options.rotation-90)}_getCircumference(){return As(this.options.circumference)}_getRotationExtents(){let t=to,n=-to;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){let i=this.chart.getDatasetMeta(r).controller,o=i._getRotation(),s=i._getCircumference();t=Math.min(t,o),n=Math.max(n,o+s)}return{rotation:t,circumference:n-t}}update(t){let n=this.chart,{chartArea:r}=n,i=this._cachedMeta,o=i.data,s=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,a=Math.max((Math.min(r.width,r.height)-s)/2,0),l=Math.min($Z(this.options.cutout,a),1),u=this._getRingWeight(this.index),{circumference:c,rotation:f}=this._getRotationExtents(),{ratioX:d,ratioY:h,offsetX:m,offsetY:g}=sbt(f,c,l),b=(r.width-s)/d,v=(r.height-s)/h,x=Math.max(Math.min(b,v)/2,0),y=TG(this.options.radius,x),_=Math.max(y*l,0),w=(y-_)/this._getVisibleDatasetWeightTotal();this.offsetX=m*y,this.offsetY=g*y,i.total=this.calculateTotal(),this.outerRadius=y-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*u,0),this.updateElements(o,0,o.length,t)}_circumference(t,n){let r=this.options,i=this._cachedMeta,o=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||i._parsed[t]===null||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*o/to)}updateElements(t,n,r,i){let o=i==="reset",s=this.chart,a=s.chartArea,u=s.options.animation,c=(a.left+a.right)/2,f=(a.top+a.bottom)/2,d=o&&u.animateScale,h=d?0:this.innerRadius,m=d?0:this.outerRadius,{sharedOptions:g,includeOptions:b}=this._getSharedOptions(n,i),v=this._getRotation(),x;for(x=0;x<n;++x)v+=this._circumference(x,o);for(x=n;x<n+r;++x){let y=this._circumference(x,o),_=t[x],w={x:c+this.offsetX,y:f+this.offsetY,startAngle:v,endAngle:v+y,circumference:y,outerRadius:m,innerRadius:h};b&&(w.options=g||this.resolveDataElementOptions(x,_.active?"active":i)),v+=y,this.updateElement(_,x,w,i)}}calculateTotal(){let t=this._cachedMeta,n=t.data,r=0,i;for(i=0;i<n.length;i++){let o=t._parsed[i];o!==null&&!isNaN(o)&&this.chart.getDataVisibility(i)&&!n[i].hidden&&(r+=Math.abs(o))}return r}calculateCircumference(t){let n=this._cachedMeta.total;return n>0&&!isNaN(t)?to*(Math.abs(t)/n):0}getLabelAndValue(t){let n=this._cachedMeta,r=this.chart,i=r.data.labels||[],o=B4(n._parsed[t],r.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let n=0,r=this.chart,i,o,s,a,l;if(!t){for(i=0,o=r.data.datasets.length;i<o;++i)if(r.isDatasetVisible(i)){s=r.getDatasetMeta(i),t=s.data,a=s.controller;break}}if(!t)return 0;for(i=0,o=t.length;i<o;++i)l=a.resolveDataElementOptions(i),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let r=0,i=t.length;r<i;++r){let o=this.resolveDataElementOptions(r);n=Math.max(n,o.offset||0,o.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(t){return Math.max(Vn(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}};Kt(Kg,"id","doughnut"),Kt(Kg,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),Kt(Kg,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),Kt(Kg,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let n=t.data;if(n.labels.length&&n.datasets.length){let{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((o,s)=>{let l=t.getDatasetMeta(0).controller.getStyle(s);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});var ky=class extends lm{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){let n=this._cachedMeta,{dataset:r,data:i=[],_dataset:o}=n,s=this.chart._animationsDisabled,{start:a,count:l}=iU(n,i,s);this._drawStart=a,this._drawCount=l,oU(n)&&(a=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!o._decimated,r.points=i;let u=this.resolveDatasetElementOptions(t);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:u},t),this.updateElements(i,a,l,t)}updateElements(t,n,r,i){let o=i==="reset",{iScale:s,vScale:a,_stacked:l,_dataset:u}=this._cachedMeta,{sharedOptions:c,includeOptions:f}=this._getSharedOptions(n,i),d=s.axis,h=a.axis,{spanGaps:m,segment:g}=this.options,b=ph(m)?m:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||o||i==="none",x=n+r,y=t.length,_=n>0&&this.getParsed(n-1);for(let w=0;w<y;++w){let k=t[w],O=v?k:{};if(w<n||w>=x){O.skip=!0;continue}let M=this.getParsed(w),I=jr(M[h]),W=O[d]=s.getPixelForValue(M[d],w),J=O[h]=o||I?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,M,l):M[h],w);O.skip=isNaN(W)||isNaN(J)||I,O.stop=w>0&&Math.abs(M[d]-_[d])>b,g&&(O.parsed=M,O.raw=u.data[w]),f&&(O.options=c||this.resolveDataElementOptions(w,k.active?"active":i)),v||this.updateElement(k,w,O,i),_=M}}getMaxOverflow(){let t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;let o=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,o,s)/2}draw(){let t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}};Kt(ky,"id","line"),Kt(ky,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),Kt(ky,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function by(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var QP=class{static override(t){Object.assign(QP.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return by()}parse(){return by()}format(){return by()}add(){return by()}diff(){return by()}startOf(){return by()}endOf(){return by()}},RU={_date:QP};function abt(e,t,n,r){let{controller:i,data:o,_sorted:s}=e,a=i._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&s&&o.length){let l=a._reversePixels?QZ:Q0;if(r){if(i._sharedOptions){let u=o[0],c=typeof u.getRange=="function"&&u.getRange(t);if(c){let f=l(o,t,n-c),d=l(o,t,n+c);return{lo:f.lo,hi:d.hi}}}}else return l(o,t,n)}return{lo:0,hi:o.length-1}}function nk(e,t,n,r,i){let o=e.getSortedVisibleDatasetMetas(),s=n[t];for(let a=0,l=o.length;a<l;++a){let{index:u,data:c}=o[a],{lo:f,hi:d}=abt(o[a],t,s,i);for(let h=f;h<=d;++h){let m=c[h];m.skip||r(m,u,h)}}}function lbt(e){let t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,i){let o=t?Math.abs(r.x-i.x):0,s=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(s,2))}}function bU(e,t,n,r,i){let o=[];return!i&&!e.isPointInArea(t)||nk(e,n,t,function(a,l,u){!i&&!Zp(a,e.chartArea,0)||a.inRange(t.x,t.y,r)&&o.push({element:a,datasetIndex:l,index:u})},!0),o}function ubt(e,t,n,r){let i=[];function o(s,a,l){let{startAngle:u,endAngle:c}=s.getProps(["startAngle","endAngle"],r),{angle:f}=JG(s,{x:t.x,y:t.y});_y(f,u,c)&&i.push({element:s,datasetIndex:a,index:l})}return nk(e,n,t,o),i}function cbt(e,t,n,r,i,o){let s=[],a=lbt(n),l=Number.POSITIVE_INFINITY;function u(c,f,d){let h=c.inRange(t.x,t.y,i);if(r&&!h)return;let m=c.getCenterPoint(i);if(!(!!o||e.isPointInArea(m))&&!h)return;let b=a(t,m);b<l?(s=[{element:c,datasetIndex:f,index:d}],l=b):b===l&&s.push({element:c,datasetIndex:f,index:d})}return nk(e,n,t,u),s}function wU(e,t,n,r,i,o){return!o&&!e.isPointInArea(t)?[]:n==="r"&&!r?ubt(e,t,n,i):cbt(e,t,n,r,i,o)}function oPe(e,t,n,r,i){let o=[],s=n==="x"?"inXRange":"inYRange",a=!1;return nk(e,n,t,(l,u,c)=>{l[s](t[n],i)&&(o.push({element:l,datasetIndex:u,index:c}),a=a||l.inRange(t.x,t.y,i))}),r&&!a?[]:o}var dbt={evaluateInteractionItems:nk,modes:{index(e,t,n,r){let i=om(t,e),o=n.axis||"x",s=n.includeInvisible||!1,a=n.intersect?bU(e,i,o,r,s):wU(e,i,o,!1,r,s),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(u=>{let c=a[0].index,f=u.data[c];f&&!f.skip&&l.push({element:f,datasetIndex:u.index,index:c})}),l):[]},dataset(e,t,n,r){let i=om(t,e),o=n.axis||"xy",s=n.includeInvisible||!1,a=n.intersect?bU(e,i,o,r,s):wU(e,i,o,!1,r,s);if(a.length>0){let l=a[0].datasetIndex,u=e.getDatasetMeta(l).data;a=[];for(let c=0;c<u.length;++c)a.push({element:u[c],datasetIndex:l,index:c})}return a},point(e,t,n,r){let i=om(t,e),o=n.axis||"xy",s=n.includeInvisible||!1;return bU(e,i,o,r,s)},nearest(e,t,n,r){let i=om(t,e),o=n.axis||"xy",s=n.includeInvisible||!1;return wU(e,i,o,n.intersect,r,s)},x(e,t,n,r){let i=om(t,e);return oPe(e,i,"x",n.intersect,r)},y(e,t,n,r){let i=om(t,e);return oPe(e,i,"y",n.intersect,r)}}},qPe=["left","top","right","bottom"];function XP(e,t){return e.filter(n=>n.pos===t)}function sPe(e,t){return e.filter(n=>qPe.indexOf(n.pos)===-1&&n.box.axis===t)}function qP(e,t){return e.sort((n,r)=>{let i=t?r:n,o=t?n:r;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function pbt(e){let t=[],n,r,i,o,s,a;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:o,options:{stack:s,stackWeight:a=1}}=i,t.push({index:n,box:i,pos:o,horizontal:i.isHorizontal(),weight:i.weight,stack:s&&o+s,stackWeight:a});return t}function fbt(e){let t={};for(let n of e){let{stack:r,pos:i,stackWeight:o}=n;if(!r||!qPe.includes(i))continue;let s=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=o}return t}function hbt(e,t){let n=fbt(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t,o,s,a;for(o=0,s=e.length;o<s;++o){a=e[o];let{fullSize:l}=a.box,u=n[a.stack],c=u&&a.stackWeight/u.weight;a.horizontal?(a.width=c?c*r:l&&t.availableWidth,a.height=i):(a.width=r,a.height=c?c*i:l&&t.availableHeight)}return n}function mbt(e){let t=pbt(e),n=qP(t.filter(u=>u.box.fullSize),!0),r=qP(XP(t,"left"),!0),i=qP(XP(t,"right")),o=qP(XP(t,"top"),!0),s=qP(XP(t,"bottom")),a=sPe(t,"x"),l=sPe(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(s).concat(a),chartArea:XP(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(s).concat(a)}}function aPe(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function $Pe(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function gbt(e,t,n,r){let{pos:i,box:o}=n,s=e.maxPadding;if(!$n(i)){n.size&&(e[i]-=n.size);let f=r[n.stack]||{size:0,count:1};f.size=Math.max(f.size,n.horizontal?o.height:o.width),n.size=f.size/f.count,e[i]+=n.size}o.getPadding&&$Pe(s,o.getPadding());let a=Math.max(0,t.outerWidth-aPe(s,e,"left","right")),l=Math.max(0,t.outerHeight-aPe(s,e,"top","bottom")),u=a!==e.w,c=l!==e.h;return e.w=a,e.h=l,n.horizontal?{same:u,other:c}:{same:c,other:u}}function vbt(e){let t=e.maxPadding;function n(r){let i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function ybt(e,t){let n=t.maxPadding;function r(i){let o={left:0,top:0,right:0,bottom:0};return i.forEach(s=>{o[s]=Math.max(t[s],n[s])}),o}return r(e?["left","right"]:["top","bottom"])}function YP(e,t,n,r){let i=[],o,s,a,l,u,c;for(o=0,s=e.length,u=0;o<s;++o){a=e[o],l=a.box,l.update(a.width||t.w,a.height||t.h,ybt(a.horizontal,t));let{same:f,other:d}=gbt(t,n,a,r);u|=f&&i.length,c=c||d,l.fullSize||i.push(a)}return u&&YP(i,t,n,r)||c}function lF(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function lPe(e,t,n,r){let i=n.padding,{x:o,y:s}=t;for(let a of e){let l=a.box,u=r[a.stack]||{count:1,placed:0,weight:1},c=a.stackWeight/u.weight||1;if(a.horizontal){let f=t.w*c,d=u.size||l.height;rl(u.start)&&(s=u.start),l.fullSize?lF(l,i.left,s,n.outerWidth-i.right-i.left,d):lF(l,t.left+u.placed,s,f,d),u.start=s,u.placed+=f,s=l.bottom}else{let f=t.h*c,d=u.size||l.width;rl(u.start)&&(o=u.start),l.fullSize?lF(l,o,i.top,d,n.outerHeight-i.bottom-i.top):lF(l,o,t.top+u.placed,d,f),u.start=o,u.placed+=f,o=l.right}}t.x=o,t.y=s}var Jd={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){let n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;let i=Vo(e.options.layout.padding),o=Math.max(t-i.width,0),s=Math.max(n-i.height,0),a=mbt(e.boxes),l=a.vertical,u=a.horizontal;ki(e.boxes,g=>{typeof g.beforeLayout=="function"&&g.beforeLayout()});let c=l.reduce((g,b)=>b.box.options&&b.box.options.display===!1?g:g+1,0)||1,f=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:s,vBoxMaxWidth:o/2/c,hBoxMaxHeight:s/2}),d=Object.assign({},i);$Pe(d,Vo(r));let h=Object.assign({maxPadding:d,w:o,h:s,x:i.left,y:i.top},i),m=hbt(l.concat(u),f);YP(a.fullSize,h,f,m),YP(l,h,f,m),YP(u,h,f,m)&&YP(l,h,f,m),vbt(h),lPe(a.leftAndTop,h,f,m),h.x+=h.w,h.y+=h.h,lPe(a.rightAndBottom,h,f,m),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},ki(a.chartArea,g=>{let b=g.box;Object.assign(b,e.chartArea),b.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}},vF=class{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}},EU=class extends vF{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}},mF="$chartjs",xbt={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},uPe=e=>e===null||e==="";function _bt(e,t){let n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[mF]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",uPe(i)){let o=rF(e,"width");o!==void 0&&(e.width=o)}if(uPe(r))if(e.style.height==="")e.height=e.width/(t||2);else{let o=rF(e,"height");o!==void 0&&(e.height=o)}return e}var KPe=hU?{passive:!0}:!1;function bbt(e,t,n){e.addEventListener(t,n,KPe)}function wbt(e,t,n){e.canvas.removeEventListener(t,n,KPe)}function Pbt(e,t){let n=xbt[e.type]||e.type,{x:r,y:i}=om(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function yF(e,t){for(let n of e)if(n===t||n.contains(t))return!0}function kbt(e,t,n){let r=e.canvas,i=new MutationObserver(o=>{let s=!1;for(let a of o)s=s||yF(a.addedNodes,r),s=s&&!yF(a.removedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function Abt(e,t,n){let r=e.canvas,i=new MutationObserver(o=>{let s=!1;for(let a of o)s=s||yF(a.removedNodes,r),s=s&&!yF(a.addedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}var ek=new Map,cPe=0;function YPe(){let e=window.devicePixelRatio;e!==cPe&&(cPe=e,ek.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function Cbt(e,t){ek.size||window.addEventListener("resize",YPe),ek.set(e,t)}function Sbt(e){ek.delete(e),ek.size||window.removeEventListener("resize",YPe)}function Obt(e,t,n){let r=e.canvas,i=r&&HP(r);if(!i)return;let o=XG((a,l)=>{let u=i.clientWidth;n(a,l),u<i.clientWidth&&n()},window),s=new ResizeObserver(a=>{let l=a[0],u=l.contentRect.width,c=l.contentRect.height;u===0&&c===0||o(u,c)});return s.observe(i),Cbt(e,o),s}function PU(e,t,n){n&&n.disconnect(),t==="resize"&&Sbt(e)}function Ebt(e,t,n){let r=e.canvas,i=XG(o=>{e.ctx!==null&&n(Pbt(o,e))},e);return bbt(r,t,i),i}var MU=class extends vF{acquireContext(t,n){let r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(_bt(t,n),r):null}releaseContext(t){let n=t.canvas;if(!n[mF])return!1;let r=n[mF].initial;["height","width"].forEach(o=>{let s=r[o];jr(s)?n.removeAttribute(o):n.setAttribute(o,s)});let i=r.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[mF],!0}addEventListener(t,n,r){this.removeEventListener(t,n);let i=t.$proxies||(t.$proxies={}),s={attach:kbt,detach:Abt,resize:Obt}[n]||Ebt;i[n]=s(t,n,r)}removeEventListener(t,n){let r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:PU,detach:PU,resize:PU}[n]||wbt)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return fU(t,n,r,i)}isAttached(t){let n=HP(t);return!!(n&&n.isConnected)}};function Mbt(e){return!eF()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?EU:MU}var Xs=class{x;y;active=!1;options;$animations;tooltipPosition(t){let{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return ph(this.x)&&ph(this.y)}getProps(t,n){let r=this.$animations;if(!n||!r)return this;let i={};return t.forEach(o=>{i[o]=r[o]&&r[o].active()?r[o]._to:this[o]}),i}};Kt(Xs,"defaults",{}),Kt(Xs,"defaultRoutes");function Bbt(e,t){let n=e.options.ticks,r=Nbt(e),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?Fbt(t):[],s=o.length,a=o[0],l=o[s-1],u=[];if(s>i)return Ibt(t,u,o,s/i),u;let c=Gbt(o,t,i);if(s>0){let f,d,h=s>1?Math.round((l-a)/(s-1)):null;for(uF(t,u,c,jr(h)?0:a-h,a),f=0,d=s-1;f<d;f++)uF(t,u,c,o[f],o[f+1]);return uF(t,u,c,l,jr(h)?t.length:l+h),u}return uF(t,u,c),u}function Nbt(e){let t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}function Gbt(e,t,n){let r=zbt(e),i=t.length/n;if(!r)return Math.max(i,1);let o=YZ(r);for(let s=0,a=o.length-1;s<a;s++){let l=o[s];if(l>i)return l}return Math.max(i,1)}function Fbt(e){let t=[],n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function Ibt(e,t,n,r){let i=0,o=n[0],s;for(r=Math.ceil(r),s=0;s<e.length;s++)s===o&&(t.push(e[s]),i++,o=n[i*r])}function uF(e,t,n,r,i){let o=Vn(r,0),s=Math.min(Vn(i,e.length),e.length),a=0,l,u,c;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),c=o;c<0;)a++,c=Math.round(o+a*n);for(u=Math.max(o,0);u<s;u++)u===c&&(t.push(e[u]),a++,c=Math.round(o+a*n))}function zbt(e){let t=e.length,n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}var Tbt=e=>e==="left"?"right":e==="right"?"left":e,dPe=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,pPe=(e,t)=>Math.min(t||e,e);function fPe(e,t){let n=[],r=e.length/t,i=e.length,o=0;for(;o<i;o+=r)n.push(e[Math.floor(o)]);return n}function Dbt(e,t,n){let r=e.ticks.length,i=Math.min(t,r-1),o=e._startPixel,s=e._endPixel,a=1e-6,l=e.getPixelForTick(i),u;if(!(n&&(r===1?u=Math.max(l-o,s-l):t===0?u=(e.getPixelForTick(1)-l)/2:u=(l-e.getPixelForTick(i-1))/2,l+=i<t?u:-u,l<o-a||l>s+a)))return l}function Rbt(e,t){ki(e,n=>{let r=n.gc,i=r.length/2,o;if(i>t){for(o=0;o<i;++o)delete n.data[r[o]];r.splice(0,i)}})}function $P(e){return e.drawTicks?e.tickLength:0}function hPe(e,t){if(!e.display)return 0;let n=uo(e.font,t),r=Vo(e.padding);return(oi(e.text)?e.text.length:1)*n.lineHeight+r.height}function Lbt(e,t){return fh(e,{scale:t,type:"scale"})}function Vbt(e,t,n){return fh(e,{tick:n,index:t,type:"tick"})}function Jbt(e,t,n){let r=RP(e);return(n&&t!=="right"||!n&&t==="right")&&(r=Tbt(r)),r}function jbt(e,t,n,r){let{top:i,left:o,bottom:s,right:a,chart:l}=e,{chartArea:u,scales:c}=l,f=0,d,h,m,g=s-i,b=a-o;if(e.isHorizontal()){if(h=ka(r,o,a),$n(n)){let v=Object.keys(n)[0],x=n[v];m=c[v].getPixelForValue(x)+g-t}else n==="center"?m=(u.bottom+u.top)/2+g-t:m=dPe(e,n,t);d=a-o}else{if($n(n)){let v=Object.keys(n)[0],x=n[v];h=c[v].getPixelForValue(x)-b+t}else n==="center"?h=(u.left+u.right)/2-b+t:h=dPe(e,n,t);m=ka(r,s,i),f=n==="left"?-eo:eo}return{titleX:h,titleY:m,maxWidth:d,rotation:f}}var um=class extends Xs{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return t=mu(t,Number.POSITIVE_INFINITY),n=mu(n,Number.NEGATIVE_INFINITY),r=mu(r,Number.POSITIVE_INFINITY),i=mu(i,Number.NEGATIVE_INFINITY),{min:mu(t,r),max:mu(n,i),minDefined:ho(t),maxDefined:ho(n)}}getMinMax(t){let{min:n,max:r,minDefined:i,maxDefined:o}=this.getUserBounds(),s;if(i&&o)return{min:n,max:r};let a=this.getMatchingVisibleMetas();for(let l=0,u=a.length;l<u;++l)s=a[l].controller.getMinMax(this,t),i||(n=Math.min(n,s.min)),o||(r=Math.max(r,s.max));return n=o&&n>r?r:n,r=i&&n>r?n:r,{min:mu(n,mu(r,n)),max:mu(r,mu(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){si(this.options.beforeUpdate,[this])}update(t,n,r){let{beginAtZero:i,grace:o,ticks:s}=this.options,a=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=uU(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let l=a<this.ticks.length;this._convertTicksToLabels(l?fPe(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=Bbt(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,t=!t),this._startPixel=n,this._endPixel=r,this._reversePixels=t,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){si(this.options.afterUpdate,[this])}beforeSetDimensions(){si(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){si(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),si(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){si(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){let n=this.options.ticks,r,i,o;for(r=0,i=t.length;r<i;r++)o=t[r],o.label=si(n.callback,[o.value,r,t],this)}afterTickToLabelConversion(){si(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){si(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let t=this.options,n=t.ticks,r=pPe(this.ticks.length,t.ticks.maxTicksLimit),i=n.minRotation||0,o=n.maxRotation,s=i,a,l,u;if(!this._isVisible()||!n.display||i>=o||r<=1||!this.isHorizontal()){this.labelRotation=i;return}let c=this._getLabelSizes(),f=c.widest.width,d=c.highest.height,h=Pa(this.chart.width-f,0,this.maxWidth);a=t.offset?this.maxWidth/r:h/(r-1),f+6>a&&(a=h/(r-(t.offset?.5:1)),l=this.maxHeight-$P(t.grid)-n.padding-hPe(t.title,this.chart.options.font),u=Math.sqrt(f*f+d*d),s=xy(Math.min(Math.asin(Pa((c.highest.height+6)/a,-1,1)),Math.asin(Pa(l/u,-1,1))-Math.asin(Pa(d/u,-1,1)))),s=Math.max(i,Math.min(o,s))),this.labelRotation=s}afterCalculateLabelRotation(){si(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){si(this.options.beforeFit,[this])}fit(){let t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:o}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){let l=hPe(i,n.options.font);if(a?(t.width=this.maxWidth,t.height=$P(o)+l):(t.height=this.maxHeight,t.width=$P(o)+l),r.display&&this.ticks.length){let{first:u,last:c,widest:f,highest:d}=this._getLabelSizes(),h=r.padding*2,m=As(this.labelRotation),g=Math.cos(m),b=Math.sin(m);if(a){let v=r.mirror?0:b*f.width+g*d.height;t.height=Math.min(this.maxHeight,t.height+v+h)}else{let v=r.mirror?0:g*f.width+b*d.height;t.width=Math.min(this.maxWidth,t.width+v+h)}this._calculatePadding(u,c,b,g)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){let{ticks:{align:o,padding:s},position:a}=this.options,l=this.labelRotation!==0,u=a!=="top"&&this.axis==="x";if(this.isHorizontal()){let c=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1),d=0,h=0;l?u?(d=i*t.width,h=r*n.height):(d=r*t.height,h=i*n.width):o==="start"?h=n.width:o==="end"?d=t.width:o!=="inner"&&(d=t.width/2,h=n.width/2),this.paddingLeft=Math.max((d-c+s)*this.width/(this.width-c),0),this.paddingRight=Math.max((h-f+s)*this.width/(this.width-f),0)}else{let c=n.height/2,f=t.height/2;o==="start"?(c=0,f=t.height):o==="end"&&(c=n.height,f=0),this.paddingTop=c+s,this.paddingBottom=f+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){si(this.options.afterFit,[this])}isHorizontal(){let{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n<r;n++)jr(t[n].label)&&(t.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){let n=this.options.ticks.sampleSize,r=this.ticks;n<r.length&&(r=fPe(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,r){let{ctx:i,_longestTextCache:o}=this,s=[],a=[],l=Math.floor(n/pPe(n,r)),u=0,c=0,f,d,h,m,g,b,v,x,y,_,w;for(f=0;f<n;f+=l){if(m=t[f].label,g=this._resolveTickFontOptions(f),i.font=b=g.string,v=o[b]=o[b]||{data:{},gc:[]},x=g.lineHeight,y=_=0,!jr(m)&&!oi(m))y=O4(i,v.data,v.gc,y,m),_=x;else if(oi(m))for(d=0,h=m.length;d<h;++d)w=m[d],!jr(w)&&!oi(w)&&(y=O4(i,v.data,v.gc,y,w),_+=x);s.push(y),a.push(_),u=Math.max(y,u),c=Math.max(_,c)}Rbt(o,n);let k=s.indexOf(u),O=a.indexOf(c),M=I=>({width:s[I]||0,height:a[I]||0});return{first:M(0),last:M(n-1),widest:M(k),highest:M(O),widths:s,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){let n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);let n=this._startPixel+t*this._length;return UZ(this._alignToPixels?nm(this.chart,n,0):n)}getDecimalForPixel(t){let n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){let n=this.ticks||[];if(t>=0&&t<n.length){let r=n[t];return r.$context||(r.$context=Vbt(this.getContext(),t,r))}return this.$context||(this.$context=Lbt(this.chart.getContext(),this))}_tickSize(){let t=this.options.ticks,n=As(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),o=this._getLabelSizes(),s=t.autoSkipPadding||0,a=o?o.widest.width+s:0,l=o?o.highest.height+s:0;return this.isHorizontal()?l*r>a*i?a/r:l/i:l*i<a*r?l/r:a/i}_isVisible(){let t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){let n=this.axis,r=this.chart,i=this.options,{grid:o,position:s,border:a}=i,l=o.offset,u=this.isHorizontal(),f=this.ticks.length+(l?1:0),d=$P(o),h=[],m=a.setContext(this.getContext()),g=m.display?m.width:0,b=g/2,v=function(B){return nm(r,B,g)},x,y,_,w,k,O,M,I,W,J,H,ee;if(s==="top")x=v(this.bottom),O=this.bottom-d,I=x-b,J=v(t.top)+b,ee=t.bottom;else if(s==="bottom")x=v(this.top),J=t.top,ee=v(t.bottom)-b,O=x+b,I=this.top+d;else if(s==="left")x=v(this.right),k=this.right-d,M=x-b,W=v(t.left)+b,H=t.right;else if(s==="right")x=v(this.left),W=t.left,H=v(t.right)-b,k=x+b,M=this.left+d;else if(n==="x"){if(s==="center")x=v((t.top+t.bottom)/2+.5);else if($n(s)){let B=Object.keys(s)[0],N=s[B];x=v(this.chart.scales[B].getPixelForValue(N))}J=t.top,ee=t.bottom,O=x+b,I=O+d}else if(n==="y"){if(s==="center")x=v((t.left+t.right)/2);else if($n(s)){let B=Object.keys(s)[0],N=s[B];x=v(this.chart.scales[B].getPixelForValue(N))}k=x-b,M=k-d,W=t.left,H=t.right}let j=Vn(i.ticks.maxTicksLimit,f),V=Math.max(1,Math.ceil(f/j));for(y=0;y<f;y+=V){let B=this.getContext(y),N=o.setContext(B),C=a.setContext(B),S=N.lineWidth,G=N.color,T=C.dash||[],Q=C.dashOffset,U=N.tickWidth,F=N.tickColor,D=N.tickBorderDash||[],L=N.tickBorderDashOffset;_=Dbt(this,y,l),_!==void 0&&(w=nm(r,_,S),u?k=M=W=H=w:O=I=J=ee=w,h.push({tx1:k,ty1:O,tx2:M,ty2:I,x1:W,y1:J,x2:H,y2:ee,width:S,color:G,borderDash:T,borderDashOffset:Q,tickWidth:U,tickColor:F,tickBorderDash:D,tickBorderDashOffset:L}))}return this._ticksLength=f,this._borderValue=x,h}_computeLabelItems(t){let n=this.axis,r=this.options,{position:i,ticks:o}=r,s=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:u,padding:c,mirror:f}=o,d=$P(r.grid),h=d+c,m=f?-c:h,g=-As(this.labelRotation),b=[],v,x,y,_,w,k,O,M,I,W,J,H,ee="middle";if(i==="top")k=this.bottom-m,O=this._getXAxisLabelAlignment();else if(i==="bottom")k=this.top+m,O=this._getXAxisLabelAlignment();else if(i==="left"){let V=this._getYAxisLabelAlignment(d);O=V.textAlign,w=V.x}else if(i==="right"){let V=this._getYAxisLabelAlignment(d);O=V.textAlign,w=V.x}else if(n==="x"){if(i==="center")k=(t.top+t.bottom)/2+h;else if($n(i)){let V=Object.keys(i)[0],B=i[V];k=this.chart.scales[V].getPixelForValue(B)+h}O=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")w=(t.left+t.right)/2-h;else if($n(i)){let V=Object.keys(i)[0],B=i[V];w=this.chart.scales[V].getPixelForValue(B)}O=this._getYAxisLabelAlignment(d).textAlign}n==="y"&&(l==="start"?ee="top":l==="end"&&(ee="bottom"));let j=this._getLabelSizes();for(v=0,x=a.length;v<x;++v){y=a[v],_=y.label;let V=o.setContext(this.getContext(v));M=this.getPixelForTick(v)+o.labelOffset,I=this._resolveTickFontOptions(v),W=I.lineHeight,J=oi(_)?_.length:1;let B=J/2,N=V.color,C=V.textStrokeColor,S=V.textStrokeWidth,G=O;s?(w=M,O==="inner"&&(v===x-1?G=this.options.reverse?"left":"right":v===0?G=this.options.reverse?"right":"left":G="center"),i==="top"?u==="near"||g!==0?H=-J*W+W/2:u==="center"?H=-j.highest.height/2-B*W+W:H=-j.highest.height+W/2:u==="near"||g!==0?H=W/2:u==="center"?H=j.highest.height/2-B*W:H=j.highest.height-J*W,f&&(H*=-1),g!==0&&!V.showLabelBackdrop&&(w+=W/2*Math.sin(g))):(k=M,H=(1-J)*W/2);let T;if(V.showLabelBackdrop){let Q=Vo(V.backdropPadding),U=j.heights[v],F=j.widths[v],D=H-Q.top,L=0-Q.left;switch(ee){case"middle":D-=U/2;break;case"bottom":D-=U;break}switch(O){case"center":L-=F/2;break;case"right":L-=F;break}T={left:L,top:D,width:F+Q.width,height:U+Q.height,color:V.backdropColor}}b.push({label:_,font:I,textOffset:H,options:{rotation:g,color:N,strokeColor:C,strokeWidth:S,textAlign:G,textBaseline:ee,translation:[w,k],backdrop:T}})}return b}_getXAxisLabelAlignment(){let{position:t,ticks:n}=this.options;if(-As(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){let{position:n,ticks:{crossAlign:r,mirror:i,padding:o}}=this.options,s=this._getLabelSizes(),a=t+o,l=s.widest.width,u,c;return n==="left"?i?(c=this.right+o,r==="near"?u="left":r==="center"?(u="center",c+=l/2):(u="right",c+=l)):(c=this.right-a,r==="near"?u="right":r==="center"?(u="center",c-=l/2):(u="left",c=this.left)):n==="right"?i?(c=this.left+o,r==="near"?u="right":r==="center"?(u="center",c-=l/2):(u="left",c-=l)):(c=this.left+a,r==="near"?u="left":r==="center"?(u="center",c+=l/2):(u="right",c=this.right)):u="right",{textAlign:u,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;let t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){let{ctx:t,options:{backgroundColor:n},left:r,top:i,width:o,height:s}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,o,s),t.restore())}getLineWidthForValue(t){let n=this.options.grid;if(!this._isVisible()||!n.display)return 0;let i=this.ticks.findIndex(o=>o.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){let n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t)),o,s,a=(l,u,c)=>{!c.width||!c.color||(r.save(),r.lineWidth=c.width,r.strokeStyle=c.color,r.setLineDash(c.borderDash||[]),r.lineDashOffset=c.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(u.x,u.y),r.stroke(),r.restore())};if(n.display)for(o=0,s=i.length;o<s;++o){let l=i[o];n.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){let{chart:t,ctx:n,options:{border:r,grid:i}}=this,o=r.setContext(this.getContext()),s=r.display?o.width:0;if(!s)return;let a=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue,u,c,f,d;this.isHorizontal()?(u=nm(t,this.left,s)-s/2,c=nm(t,this.right,a)+a/2,f=d=l):(f=nm(t,this.top,s)-s/2,d=nm(t,this.bottom,a)+a/2,u=c=l),n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.beginPath(),n.moveTo(u,f),n.lineTo(c,d),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;let r=this.ctx,i=this._computeLabelArea();i&&Xg(r,i);let o=this.getLabelItems(t);for(let s of o){let a=s.options,l=s.font,u=s.label,c=s.textOffset;rm(r,u,0,c,l,a)}i&&qg(r)}drawTitle(){let{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;let o=uo(r.font),s=Vo(r.padding),a=r.align,l=o.lineHeight/2;n==="bottom"||n==="center"||$n(n)?(l+=s.bottom,oi(r.text)&&(l+=o.lineHeight*(r.text.length-1))):l+=s.top;let{titleX:u,titleY:c,maxWidth:f,rotation:d}=jbt(this,l,n,a);rm(t,r.text,0,0,o,{color:r.color,maxWidth:f,rotation:d,textAlign:Jbt(a,n,i),textBaseline:"middle",translation:[u,c]})}draw(t){!this._isVisible()||(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){let t=this.options,n=t.ticks&&t.ticks.z||0,r=Vn(t.grid&&t.grid.z,-1),i=Vn(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==um.prototype.draw?[{z:n,draw:o=>{this.draw(o)}}]:[{z:r,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){let n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[],o,s;for(o=0,s=n.length;o<s;++o){let a=n[o];a[r]===this.id&&(!t||a.type===t)&&i.push(a)}return i}_resolveTickFontOptions(t){let n=this.options.ticks.setContext(this.getContext(t));return uo(n.font)}_maxDigits(){let t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}},F4=class{constructor(t,n,r){this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){let n=Object.getPrototypeOf(t),r;Xbt(n)&&(r=this.register(n));let i=this.items,o=t.id,s=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,Hbt(t,s,r),this.override&&mo.override(t.id,t.overrides)),s}get(t){return this.items[t]}unregister(t){let n=this.items,r=t.id,i=this.scope;r in n&&delete n[r],i&&r in mo[i]&&(delete mo[i][r],this.override&&delete Wg[r])}};function Hbt(e,t,n){let r=Lc(Object.create(null),[n?mo.get(n):{},mo.get(t),e.defaults]);mo.set(t,r),e.defaultRoutes&&Wbt(t,e.defaultRoutes),e.descriptors&&mo.describe(t,e.descriptors)}function Wbt(e,t){Object.keys(t).forEach(n=>{let r=n.split("."),i=r.pop(),o=[e].concat(r).join("."),s=t[n].split("."),a=s.pop(),l=s.join(".");mo.route(o,i,l,a)})}function Xbt(e){return"id"in e&&"defaults"in e}var BU=class{constructor(){this.controllers=new F4(lm,"datasets",!0),this.elements=new F4(Xs,"elements"),this.plugins=new F4(Object,"plugins"),this.scales=new F4(um,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{let o=r||this._getRegistryForType(i);r||o.isForType(i)||o===this.plugins&&i.id?this._exec(t,o,i):ki(i,s=>{let a=r||this._getRegistryForType(s);this._exec(t,a,s)})})}_exec(t,n,r){let i=zP(t);si(r["before"+i],[],r),n[t](r),si(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){let r=this._typedRegistries[n];if(r.isForType(t))return r}return this.plugins}_get(t,n,r){let i=n.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return i}},mh=new BU,NU=class{constructor(){this._init=[]}notify(t,n,r,i){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));let o=i?this._descriptors(t).filter(i):this._descriptors(t),s=this._notify(o,t,n,r);return n==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),s}_notify(t,n,r,i){i=i||{};for(let o of t){let s=o.plugin,a=s[r],l=[n,i,o.options];if(si(a,l,s)===!1&&i.cancelable)return!1}return!0}invalidate(){jr(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;let n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){let r=t&&t.config,i=Vn(r.options&&r.options.plugins,{}),o=qbt(r);return i===!1&&!n?[]:Kbt(t,o,i,n)}_notifyStateChanges(t){let n=this._oldCache||[],r=this._cache,i=(o,s)=>o.filter(a=>!s.some(l=>a.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}};function qbt(e){let t={},n=[],r=Object.keys(mh.plugins.items);for(let o=0;o<r.length;o++)n.push(mh.getPlugin(r[o]));let i=e.plugins||[];for(let o=0;o<i.length;o++){let s=i[o];n.indexOf(s)===-1&&(n.push(s),t[s.id]=!0)}return{plugins:n,localIds:t}}function $bt(e,t){return!t&&e===!1?null:e===!0?{}:e}function Kbt(e,{plugins:t,localIds:n},r,i){let o=[],s=e.getContext();for(let a of t){let l=a.id,u=$bt(r[l],i);u!==null&&o.push({plugin:a,options:Ybt(e.config,{plugin:a,local:n[l]},u,s)})}return o}function Ybt(e,{plugin:t,local:n},r,i){let o=e.pluginScopeKeys(t),s=e.getOptionScopes(r,o);return n&&t.defaults&&s.push(t.defaults),e.createResolver(s,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function GU(e,t){let n=mo.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function Zbt(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function Ubt(e,t){return e===t?"_index_":"_value_"}function mPe(e){if(e==="x"||e==="y"||e==="r")return e}function Qbt(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function FU(e,...t){if(mPe(e))return e;for(let n of t){let r=n.axis||Qbt(n.position)||e.length>1&&mPe(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function gPe(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function e8t(e,t){if(t.data&&t.data.datasets){let n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return gPe(e,"x",n[0])||gPe(e,"y",n[0])}return{}}function t8t(e,t){let n=Wg[e.type]||{scales:{}},r=t.scales||{},i=GU(e.type,t),o=Object.create(null);return Object.keys(r).forEach(s=>{let a=r[s];if(!$n(a))return console.error(`Invalid scale configuration for scale: ${s}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);let l=FU(s,a,e8t(s,e),mo.scales[a.type]),u=Ubt(l,i),c=n.scales||{};o[s]=vy(Object.create(null),[{axis:l},a,c[l],c[u]])}),e.data.datasets.forEach(s=>{let a=s.type||e.type,l=s.indexAxis||GU(a,t),c=(Wg[a]||{}).scales||{};Object.keys(c).forEach(f=>{let d=Zbt(f,l),h=s[d+"AxisID"]||d;o[h]=o[h]||Object.create(null),vy(o[h],[{axis:d},r[h],c[f]])})}),Object.keys(o).forEach(s=>{let a=o[s];vy(a,[mo.scales[a.type],mo.scale])}),o}function ZPe(e){let t=e.options||(e.options={});t.plugins=Vn(t.plugins,{}),t.scales=t8t(e,t)}function UPe(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function n8t(e){return e=e||{},e.data=UPe(e.data),ZPe(e),e}var vPe=new Map,QPe=new Set;function cF(e,t){let n=vPe.get(e);return n||(n=t(),vPe.set(e,n),QPe.add(n)),n}var KP=(e,t,n)=>{let r=tm(t,n);r!==void 0&&e.add(r)},IU=class{constructor(t){this._config=n8t(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=UPe(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){let t=this._config;this.clearCache(),ZPe(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return cF(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return cF(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return cF(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){let n=t.id,r=this.type;return cF(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){let r=this._scopeCache,i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){let{options:i,type:o}=this,s=this._cachedScopes(t,r),a=s.get(n);if(a)return a;let l=new Set;n.forEach(c=>{t&&(l.add(t),c.forEach(f=>KP(l,t,f))),c.forEach(f=>KP(l,i,f)),c.forEach(f=>KP(l,Wg[o]||{},f)),c.forEach(f=>KP(l,mo,f)),c.forEach(f=>KP(l,KG,f))});let u=Array.from(l);return u.length===0&&u.push(Object.create(null)),QPe.has(n)&&s.set(n,u),u}chartOptionScopes(){let{options:t,type:n}=this;return[t,Wg[n]||{},mo.datasets[n]||{},{type:n},mo,KG]}resolveNamedOptions(t,n,r,i=[""]){let o={$shared:!0},{resolver:s,subPrefixes:a}=yPe(this._resolverCache,t,i),l=s;if(i8t(s,n)){o.$shared=!1,r=nl(r)?r():r;let u=this.createResolver(t,r,a);l=Hg(s,r,u)}for(let u of n)o[u]=l[u];return o}createResolver(t,n,r=[""],i){let{resolver:o}=yPe(this._resolverCache,t,r);return $n(n)?Hg(o,n,void 0,i):o}};function yPe(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));let i=n.join(),o=r.get(i);return o||(o={resolver:jP(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},r.set(i,o)),o}var r8t=e=>$n(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||nl(e[n]),!1);function i8t(e,t){let{isScriptable:n,isIndexable:r}=QG(e);for(let i of t){let o=n(i),s=r(i),a=(s||o)&&e[i];if(o&&(nl(a)||r8t(a))||s&&oi(a))return!0}return!1}var o8t="4.3.0",s8t=["top","bottom","left","right","chartArea"];function xPe(e,t){return e==="top"||e==="bottom"||s8t.indexOf(e)===-1&&t==="x"}function _Pe(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function bPe(e){let t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),si(n&&n.onComplete,[e],t)}function a8t(e){let t=e.chart,n=t.options.animation;si(n&&n.onProgress,[e],t)}function eke(e){return eF()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}var gF={},wPe=e=>{let t=eke(e);return Object.values(gF).filter(n=>n.canvas===t).pop()};function l8t(e,t,n){let r=Object.keys(e);for(let i of r){let o=+i;if(o>=t){let s=e[i];delete e[i],(n>0||o>t)&&(e[o+n]=s)}}}function u8t(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function c8t(e){let{xScale:t,yScale:n}=e;if(t&&n)return{left:t.left,right:t.right,top:n.top,bottom:n.bottom}}var vo=class{static register(...t){mh.add(...t),PPe()}static unregister(...t){mh.remove(...t),PPe()}constructor(t,n){let r=this.config=new IU(n),i=eke(t),o=wPe(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");let s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||Mbt(i)),this.platform.updateConfig(r);let a=this.platform.acquireContext(i,s.aspectRatio),l=a&&a.canvas,u=l&&l.height,c=l&&l.width;if(this.id=qZ(),this.ctx=a,this.canvas=l,this.width=c,this.height=u,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new NU,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=nU(f=>this.update(f),s.resizeDelay||0),this._dataChanges=[],gF[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}sm.listen(this,"complete",bPe),sm.listen(this,"progress",a8t),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:o}=this;return jr(t)?n&&o?o:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return mh}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():nF(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return YG(this.canvas,this.ctx),this}stop(){return sm.stop(this),this}resize(t,n){sm.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){let r=this.options,i=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(i,t,n,o),a=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,nF(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),si(r.onResize,[this,s],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){let n=this.options.scales||{};ki(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){let t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((s,a)=>(s[a]=!1,s),{}),o=[];n&&(o=o.concat(Object.keys(n).map(s=>{let a=n[s],l=FU(s,a),u=l==="r",c=l==="x";return{options:a,dposition:u?"chartArea":c?"bottom":"left",dtype:u?"radialLinear":c?"category":"linear"}}))),ki(o,s=>{let a=s.options,l=a.id,u=FU(l,a),c=Vn(a.type,s.dtype);(a.position===void 0||xPe(a.position,u)!==xPe(s.dposition))&&(a.position=s.dposition),i[l]=!0;let f=null;if(l in r&&r[l].type===c)f=r[l];else{let d=mh.getScale(c);f=new d({id:l,type:c,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(a,t)}),ki(i,(s,a)=>{s||delete r[a]}),ki(r,s=>{Jd.configure(this,s,s.options),Jd.addBox(this,s)})}_updateMetasets(){let t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,o)=>i.index-o.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(_Pe("order","index"))}_removeUnreferencedMetasets(){let{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(o=>o===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){let t=[],n=this.data.datasets,r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r<i;r++){let o=n[r],s=this.getDatasetMeta(r),a=o.type||this.config.type;if(s.type&&s.type!==a&&(this._destroyDatasetMeta(r),s=this.getDatasetMeta(r)),s.type=a,s.indexAxis=o.indexAxis||GU(a,this.options),s.order=o.order||0,s.index=r,s.label=""+o.label,s.visible=this.isDatasetVisible(r),s.controller)s.controller.updateIndex(r),s.controller.linkScales();else{let l=mh.getController(a),{datasetElementType:u,dataElementType:c}=mo.datasets[a];Object.assign(l,{dataElementType:mh.getElement(c),datasetElementType:u&&mh.getElement(u)}),s.controller=new l(this,r),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){ki(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){let n=this.config;n.update();let r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;let o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let u=0,c=this.data.datasets.length;u<c;u++){let{controller:f}=this.getDatasetMeta(u),d=!i&&o.indexOf(f)===-1;f.buildOrUpdateElements(d),s=Math.max(+f.getMaxOverflow(),s)}s=this._minPadding=r.layout.autoPadding?s:0,this._updateLayout(s),i||ki(o,u=>{u.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(_Pe("z","_idx"));let{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){ki(this.scales,t=>{Jd.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!DG(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(let{method:r,start:i,count:o}of n){let s=r==="_removeElements"?-o:o;l8t(t,i,s)}}_getUniformDataChanges(){let t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];let n=this.data.datasets.length,r=o=>new Set(t.filter(s=>s[0]===o).map((s,a)=>a+","+s.splice(1).join(","))),i=r(0);for(let o=1;o<n;o++)if(!DG(i,r(o)))return;return Array.from(i).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Jd.update(this,this.width,this.height,t);let n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],ki(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,nl(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){let r=this.getDatasetMeta(t),i={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(sm.has(this)?this.attached&&!sm.running(this)&&sm.start(this):(this.draw(),bPe({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){let{width:r,height:i}=this._resizeBeforeDraw;this._resize(r,i),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;let n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){let n=this._sortedMetasets,r=[],i,o;for(i=0,o=n.length;i<o;++i){let s=n[i];(!t||s.visible)&&r.push(s)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;let t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){let n=this.ctx,r=t._clip,i=!r.disabled,o=c8t(t)||this.chartArea,s={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(i&&Xg(n,{left:r.left===!1?0:o.left-r.left,right:r.right===!1?this.width:o.right+r.right,top:r.top===!1?0:o.top-r.top,bottom:r.bottom===!1?this.height:o.bottom+r.bottom}),t.controller.draw(),i&&qg(n),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return Zp(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){let o=dbt.modes[n];return typeof o=="function"?o(this,t,r,i):[]}getDatasetMeta(t){let n=this.data.datasets[t],r=this._metasets,i=r.filter(o=>o&&o._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=fh(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){let n=this.data.datasets[t];if(!n)return!1;let r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){let r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){let i=r?"show":"hide",o=this.getDatasetMeta(t),s=o.controller._resolveAnimations(void 0,i);rl(n)?(o.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),s.update(o,{visible:r}),this.update(a=>a.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){let n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),sm.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");let{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),YG(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete gF[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){let t=this._listeners,n=this.platform,r=(o,s)=>{n.addEventListener(this,o,s),t[o]=s},i=(o,s,a)=>{o.offsetX=s,o.offsetY=a,this._eventHandler(o)};ki(this.options.events,o=>r(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});let t=this._responsiveListeners,n=this.platform,r=(l,u)=>{n.addEventListener(this,l,u),t[l]=u},i=(l,u)=>{t[l]&&(n.removeEventListener(this,l,u),delete t[l])},o=(l,u)=>{this.canvas&&this.resize(l,u)},s,a=()=>{i("attach",a),this.attached=!0,this.resize(),r("resize",o),r("detach",s)};s=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),r("attach",a)},n.isAttached(this.canvas)?a():s()}unbindEvents(){ki(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},ki(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){let i=r?"set":"remove",o,s,a,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),a=0,l=t.length;a<l;++a){s=t[a];let u=s&&this.getDatasetMeta(s.datasetIndex).controller;u&&u[i+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){let n=this._active||[],r=t.map(({datasetIndex:o,index:s})=>{let a=this.getDatasetMeta(o);if(!a)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:a.data[s],index:s}});!M4(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){let i=this.options.hover,o=(l,u)=>l.filter(c=>!u.some(f=>c.datasetIndex===f.datasetIndex&&c.index===f.index)),s=o(n,t),a=r?t:o(t,n);s.length&&this.updateHoverStyle(s,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(t,n){let r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=s=>(s.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;let o=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(o||r.changed)&&this.render(),this}_handleEvent(t,n,r){let{_active:i=[],options:o}=this,s=n,a=this._getActiveElements(t,i,r,s),l=KZ(t),u=u8t(t,this._lastEvent,r,l);r&&(this._lastEvent=null,si(o.onHover,[t,a,this],this),l&&si(o.onClick,[t,a,this],this));let c=!M4(a,i);return(c||n)&&(this._active=a,this._updateHoverStyles(a,i,n)),this._lastEvent=u,c}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;let o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}};Kt(vo,"defaults",mo),Kt(vo,"instances",gF),Kt(vo,"overrides",Wg),Kt(vo,"registry",mh),Kt(vo,"version",o8t),Kt(vo,"getChart",wPe);function PPe(){return ki(vo.instances,e=>e._plugins.invalidate())}function d8t(e,t,n){let{startAngle:r,pixelMargin:i,x:o,y:s,outerRadius:a,innerRadius:l}=t,u=i/a;e.beginPath(),e.arc(o,s,a,r-u,n+u),l>i?(u=i/l,e.arc(o,s,l,n+u,r-u,!0)):e.arc(o,s,i,n+eo,r-eo),e.closePath(),e.clip()}function p8t(e){return JP(e,["outerStart","outerEnd","innerStart","innerEnd"])}function f8t(e,t,n,r){let i=p8t(e.options.borderRadius),o=(n-t)/2,s=Math.min(o,r*t/2),a=l=>{let u=(n-Math.min(o,l))*r/2;return Pa(l,0,Math.min(o,u))};return{outerStart:a(i.outerStart),outerEnd:a(i.outerEnd),innerStart:Pa(i.innerStart,0,s),innerEnd:Pa(i.innerEnd,0,s)}}function N4(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function xF(e,t,n,r,i,o){let{x:s,y:a,startAngle:l,pixelMargin:u,innerRadius:c}=t,f=Math.max(t.outerRadius+r+n-u,0),d=c>0?c+r+n+u:0,h=0,m=i-l;if(r){let V=c>0?c-r:0,B=f>0?f-r:0,N=(V+B)/2,C=N!==0?m*N/(N+r):m;h=(m-C)/2}let g=Math.max(.001,m*f-n/Hr)/f,b=(m-g)/2,v=l+b+h,x=i-b-h,{outerStart:y,outerEnd:_,innerStart:w,innerEnd:k}=f8t(t,d,f,x-v),O=f-y,M=f-_,I=v+y/O,W=x-_/M,J=d+w,H=d+k,ee=v+w/J,j=x-k/H;if(e.beginPath(),o){let V=(I+W)/2;if(e.arc(s,a,f,I,V),e.arc(s,a,f,V,W),_>0){let S=N4(M,W,s,a);e.arc(S.x,S.y,_,W,x+eo)}let B=N4(H,x,s,a);if(e.lineTo(B.x,B.y),k>0){let S=N4(H,j,s,a);e.arc(S.x,S.y,k,x+eo,j+Math.PI)}let N=(x-k/d+(v+w/d))/2;if(e.arc(s,a,d,x-k/d,N,!0),e.arc(s,a,d,N,v+w/d,!0),w>0){let S=N4(J,ee,s,a);e.arc(S.x,S.y,w,ee+Math.PI,v-eo)}let C=N4(O,v,s,a);if(e.lineTo(C.x,C.y),y>0){let S=N4(O,I,s,a);e.arc(S.x,S.y,y,v-eo,I)}}else{e.moveTo(s,a);let V=Math.cos(I)*f+s,B=Math.sin(I)*f+a;e.lineTo(V,B);let N=Math.cos(W)*f+s,C=Math.sin(W)*f+a;e.lineTo(N,C)}e.closePath()}function h8t(e,t,n,r,i){let{fullCircles:o,startAngle:s,circumference:a}=t,l=t.endAngle;if(o){xF(e,t,n,r,l,i);for(let u=0;u<o;++u)e.fill();isNaN(a)||(l=s+(a%to||to))}return xF(e,t,n,r,l,i),e.fill(),l}function m8t(e,t,n,r,i){let{fullCircles:o,startAngle:s,circumference:a,options:l}=t,{borderWidth:u,borderJoinStyle:c,borderDash:f,borderDashOffset:d}=l,h=l.borderAlign==="inner";if(!u)return;e.setLineDash(f||[]),e.lineDashOffset=d,h?(e.lineWidth=u*2,e.lineJoin=c||"round"):(e.lineWidth=u,e.lineJoin=c||"bevel");let m=t.endAngle;if(o){xF(e,t,n,r,m,i);for(let g=0;g<o;++g)e.stroke();isNaN(a)||(m=s+(a%to||to))}h&&d8t(e,t,m),o||(xF(e,t,n,r,m,i),e.stroke())}var gh=class extends Xs{circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,n,r){let i=this.getProps(["x","y"],r),{angle:o,distance:s}=JG(i,{x:t,y:n}),{startAngle:a,endAngle:l,innerRadius:u,outerRadius:c,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),d=(this.options.spacing+this.options.borderWidth)/2,m=Vn(f,l-a)>=to||_y(o,a,l),g=Qp(s,u+d,c+d);return m&&g}getCenterPoint(t){let{x:n,y:r,startAngle:i,endAngle:o,innerRadius:s,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:l,spacing:u}=this.options,c=(i+o)/2,f=(s+a+u+l)/2;return{x:n+Math.cos(c)*f,y:r+Math.sin(c)*f}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){let{options:n,circumference:r}=this,i=(n.offset||0)/4,o=(n.spacing||0)/2,s=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=r>to?Math.floor(r/to):0,r===0||this.innerRadius<0||this.outerRadius<0)return;t.save();let a=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(a)*i,Math.sin(a)*i);let l=1-Math.sin(Math.min(Hr,r||0)),u=i*l;t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,h8t(t,this,u,o,s),m8t(t,this,u,o,s),t.restore()}};Kt(gh,"id","arc"),Kt(gh,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),Kt(gh,"defaultRoutes",{backgroundColor:"backgroundColor"}),Kt(gh,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"});function tke(e,t,n=t){e.lineCap=Vn(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Vn(n.borderDash,t.borderDash)),e.lineDashOffset=Vn(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Vn(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Vn(n.borderWidth,t.borderWidth),e.strokeStyle=Vn(n.borderColor,t.borderColor)}function g8t(e,t,n){e.lineTo(n.x,n.y)}function v8t(e){return e.stepped?aU:e.tension||e.cubicInterpolationMode==="monotone"?lU:g8t}function nke(e,t,n={}){let r=e.length,{start:i=0,end:o=r-1}=n,{start:s,end:a}=t,l=Math.max(i,s),u=Math.min(o,a),c=i<s&&o<s||i>a&&o>a;return{count:r,start:l,loop:t.loop,ilen:u<l&&!c?r+u-l:u-l}}function y8t(e,t,n,r){let{points:i,options:o}=t,{count:s,start:a,loop:l,ilen:u}=nke(i,n,r),c=v8t(o),{move:f=!0,reverse:d}=r||{},h,m,g;for(h=0;h<=u;++h)m=i[(a+(d?u-h:h))%s],!m.skip&&(f?(e.moveTo(m.x,m.y),f=!1):c(e,g,m,d,o.stepped),g=m);return l&&(m=i[(a+(d?u:0))%s],c(e,g,m,d,o.stepped)),!!l}function x8t(e,t,n,r){let i=t.points,{count:o,start:s,ilen:a}=nke(i,n,r),{move:l=!0,reverse:u}=r||{},c=0,f=0,d,h,m,g,b,v,x=_=>(s+(u?a-_:_))%o,y=()=>{g!==b&&(e.lineTo(c,b),e.lineTo(c,g),e.lineTo(c,v))};for(l&&(h=i[x(0)],e.moveTo(h.x,h.y)),d=0;d<=a;++d){if(h=i[x(d)],h.skip)continue;let _=h.x,w=h.y,k=_|0;k===m?(w<g?g=w:w>b&&(b=w),c=(f*c+_)/++f):(y(),e.lineTo(_,w),m=k,f=0,g=b=w),v=w}y()}function zU(e){let t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?x8t:y8t}function _8t(e){return e.stepped?mU:e.tension||e.cubicInterpolationMode==="monotone"?gU:U0}function b8t(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),tke(e,t.options),e.stroke(i)}function w8t(e,t,n,r){let{segments:i,options:o}=t,s=zU(t);for(let a of i)tke(e,o,a.style),e.beginPath(),s(e,t,a,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}var P8t=typeof Path2D=="function";function k8t(e,t,n,r){P8t&&!t.options.segment?b8t(e,t,n,r):w8t(e,t,n,r)}var il=class extends Xs{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){let r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){let i=r.spanGaps?this._loop:this._fullLoop;pU(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=vU(this,this.options.segment))}first(){let t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){let t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){let r=this.options,i=t[n],o=this.points,s=aF(this,{property:n,start:i,end:i});if(!s.length)return;let a=[],l=_8t(r),u,c;for(u=0,c=s.length;u<c;++u){let{start:f,end:d}=s[u],h=o[f],m=o[d];if(h===m){a.push(h);continue}let g=Math.abs((i-h[n])/(m[n]-h[n])),b=l(h,m,g,r.stepped);b[n]=t[n],a.push(b)}return a.length===1?a[0]:a}pathSegment(t,n,r){return zU(this)(t,this,n,r)}path(t,n,r){let i=this.segments,o=zU(this),s=this._loop;n=n||0,r=r||this.points.length-n;for(let a of i)s&=o(t,this,a,{start:n,end:n+r-1});return!!s}draw(t,n,r,i){let o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),k8t(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}};Kt(il,"id","line"),Kt(il,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),Kt(il,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),Kt(il,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function kPe(e,t,n,r){let i=e.options,{[n]:o}=e.getProps([n],r);return Math.abs(t-o)<i.radius+i.hitRadius}var gu=class extends Xs{parsed;skip;stop;constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,n,r){let i=this.options,{x:o,y:s}=this.getProps(["x","y"],r);return Math.pow(t-o,2)+Math.pow(n-s,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,n){return kPe(this,t,"x",n)}inYRange(t,n){return kPe(this,t,"y",n)}getCenterPoint(t){let{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}size(t){t=t||this.options||{};let n=t.radius||0;n=Math.max(n,n&&t.hoverRadius||0);let r=n&&t.borderWidth||0;return(n+r)*2}draw(t,n){let r=this.options;this.skip||r.radius<.1||!Zp(this,n,this.size(r)/2)||(t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.fillStyle=r.backgroundColor,VP(t,r,this.x,this.y))}getRange(){let t=this.options||{};return t.radius+t.hitRadius}};Kt(gu,"id","point"),Kt(gu,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),Kt(gu,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function rke(e,t){let{x:n,y:r,base:i,width:o,height:s}=e.getProps(["x","y","base","width","height"],t),a,l,u,c,f;return e.horizontal?(f=s/2,a=Math.min(n,i),l=Math.max(n,i),u=r-f,c=r+f):(f=o/2,a=n-f,l=n+f,u=Math.min(r,i),c=Math.max(r,i)),{left:a,top:u,right:l,bottom:c}}function Yg(e,t,n,r){return e?0:Pa(t,n,r)}function A8t(e,t,n){let r=e.options.borderWidth,i=e.borderSkipped,o=UG(r);return{t:Yg(i.top,o.top,0,n),r:Yg(i.right,o.right,0,t),b:Yg(i.bottom,o.bottom,0,n),l:Yg(i.left,o.left,0,t)}}function C8t(e,t,n){let{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),i=e.options.borderRadius,o=ef(i),s=Math.min(t,n),a=e.borderSkipped,l=r||$n(i);return{topLeft:Yg(!l||a.top||a.left,o.topLeft,0,s),topRight:Yg(!l||a.top||a.right,o.topRight,0,s),bottomLeft:Yg(!l||a.bottom||a.left,o.bottomLeft,0,s),bottomRight:Yg(!l||a.bottom||a.right,o.bottomRight,0,s)}}function S8t(e){let t=rke(e),n=t.right-t.left,r=t.bottom-t.top,i=A8t(e,n/2,r/2),o=C8t(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:o},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,o.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(i.b,i.r))}}}}function kU(e,t,n,r){let i=t===null,o=n===null,a=e&&!(i&&o)&&rke(e,r);return a&&(i||Qp(t,a.left,a.right))&&(o||Qp(n,a.top,a.bottom))}function O8t(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function E8t(e,t){e.rect(t.x,t.y,t.w,t.h)}function AU(e,t,n={}){let r=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,o=(e.x+e.w!==n.x+n.w?t:0)-r,s=(e.y+e.h!==n.y+n.h?t:0)-i;return{x:e.x+r,y:e.y+i,w:e.w+o,h:e.h+s,radius:e.radius}}var Vc=class extends Xs{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){let{inflateAmount:n,options:{borderColor:r,backgroundColor:i}}=this,{inner:o,outer:s}=S8t(this),a=O8t(s.radius)?im:E8t;t.save(),(s.w!==o.w||s.h!==o.h)&&(t.beginPath(),a(t,AU(s,n,o)),t.clip(),a(t,AU(o,-n,s)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),a(t,AU(o,n)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,n,r){return kU(this,t,n,r)}inXRange(t,n){return kU(this,t,null,n)}inYRange(t,n){return kU(this,null,t,n)}getCenterPoint(t){let{x:n,y:r,base:i,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(n+i)/2:n,y:o?r:(r+i)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}};Kt(Vc,"id","bar"),Kt(Vc,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),Kt(Vc,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function M8t(e,t,n){let r=e.segments,i=e.points,o=t.points,s=[];for(let a of r){let{start:l,end:u}=a;u=LU(l,u,i);let c=TU(n,i[l],i[u],a.loop);if(!t.segments){s.push({source:a,target:c,start:i[l],end:i[u]});continue}let f=aF(t,c);for(let d of f){let h=TU(n,o[d.start],o[d.end],d.loop),m=sF(a,i,h);for(let g of m)s.push({source:g,target:d,start:{[n]:APe(c,h,"start",Math.max)},end:{[n]:APe(c,h,"end",Math.min)}})}}return s}function TU(e,t,n,r){if(r)return;let i=t[e],o=n[e];return e==="angle"&&(i=hu(i),o=hu(o)),{property:e,start:i,end:o}}function B8t(e,t){let{x:n=null,y:r=null}=e||{},i=t.points,o=[];return t.segments.forEach(({start:s,end:a})=>{a=LU(s,a,i);let l=i[s],u=i[a];r!==null?(o.push({x:l.x,y:r}),o.push({x:u.x,y:r})):n!==null&&(o.push({x:n,y:l.y}),o.push({x:n,y:u.y}))}),o}function LU(e,t,n){for(;t>e;t--){let r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function APe(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function ike(e,t){let n=[],r=!1;return oi(e)?(r=!0,n=e):n=B8t(e,t),n.length?new il({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function CPe(e){return e&&e.fill!==!1}function N8t(e,t,n){let i=e[t].fill,o=[t],s;if(!n)return i;for(;i!==!1&&o.indexOf(i)===-1;){if(!ho(i))return i;if(s=e[i],!s)return!1;if(s.visible)return i;o.push(i),i=s.fill}return!1}function G8t(e,t,n){let r=T8t(e);if($n(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return ho(i)&&Math.floor(i)===i?F8t(r[0],t,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function F8t(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function I8t(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:$n(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function z8t(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:$n(e)?r=e.value:r=t.getBaseValue(),r}function T8t(e){let t=e.options,n=t.fill,r=Vn(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function D8t(e){let{scale:t,index:n,line:r}=e,i=[],o=r.segments,s=r.points,a=R8t(t,n);a.push(ike({x:null,y:t.bottom},r));for(let l=0;l<o.length;l++){let u=o[l];for(let c=u.start;c<=u.end;c++)L8t(i,s[c],a)}return new il({points:i,options:{}})}function R8t(e,t){let n=[],r=e.getMatchingVisibleMetas("line");for(let i=0;i<r.length;i++){let o=r[i];if(o.index===t)break;o.hidden||n.unshift(o.dataset)}return n}function L8t(e,t,n){let r=[];for(let i=0;i<n.length;i++){let o=n[i],{first:s,last:a,point:l}=V8t(o,t,"x");if(!(!l||s&&a)){if(s)r.unshift(l);else if(e.push(l),!a)break}}e.push(...r)}function V8t(e,t,n){let r=e.interpolate(t,n);if(!r)return{};let i=r[n],o=e.segments,s=e.points,a=!1,l=!1;for(let u=0;u<o.length;u++){let c=o[u],f=s[c.start][n],d=s[c.end][n];if(Qp(i,f,d)){a=i===f,l=i===d;break}}return{first:a,last:l,point:r}}var _F=class{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,r){let{x:i,y:o,radius:s}=this;return n=n||{start:0,end:to},t.arc(i,o,s,n.end,n.start,!0),!r.bounds}interpolate(t){let{x:n,y:r,radius:i}=this,o=t.angle;return{x:n+Math.cos(o)*i,y:r+Math.sin(o)*i,angle:o}}};function J8t(e){let{chart:t,fill:n,line:r}=e;if(ho(n))return j8t(t,n);if(n==="stack")return D8t(e);if(n==="shape")return!0;let i=H8t(e);return i instanceof _F?i:ike(i,r)}function j8t(e,t){let n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function H8t(e){return(e.scale||{}).getPointPositionForValue?X8t(e):W8t(e)}function W8t(e){let{scale:t={},fill:n}=e,r=I8t(n,t);if(ho(r)){let i=t.isHorizontal();return{x:i?r:null,y:i?null:r}}return null}function X8t(e){let{scale:t,fill:n}=e,r=t.options,i=t.getLabels().length,o=r.reverse?t.max:t.min,s=z8t(n,t,o),a=[];if(r.grid.circular){let l=t.getPointPositionForValue(0,o);return new _F({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(s)})}for(let l=0;l<i;++l)a.push(t.getPointPositionForValue(l,s));return a}function CU(e,t,n){let r=J8t(t),{line:i,scale:o,axis:s}=t,a=i.options,l=a.fill,u=a.backgroundColor,{above:c=u,below:f=u}=l||{};r&&i.points.length&&(Xg(e,n),q8t(e,{line:i,target:r,above:c,below:f,area:n,scale:o,axis:s}),qg(e))}function q8t(e,t){let{line:n,target:r,above:i,below:o,area:s,scale:a}=t,l=n._loop?"angle":t.axis;e.save(),l==="x"&&o!==i&&(SPe(e,r,s.top),OPe(e,{line:n,target:r,color:i,scale:a,property:l}),e.restore(),e.save(),SPe(e,r,s.bottom)),OPe(e,{line:n,target:r,color:o,scale:a,property:l}),e.restore()}function SPe(e,t,n){let{segments:r,points:i}=t,o=!0,s=!1;e.beginPath();for(let a of r){let{start:l,end:u}=a,c=i[l],f=i[LU(l,u,i)];o?(e.moveTo(c.x,c.y),o=!1):(e.lineTo(c.x,n),e.lineTo(c.x,c.y)),s=!!t.pathSegment(e,a,{move:s}),s?e.closePath():e.lineTo(f.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function OPe(e,t){let{line:n,target:r,property:i,color:o,scale:s}=t,a=M8t(n,r,i);for(let{source:l,target:u,start:c,end:f}of a){let{style:{backgroundColor:d=o}={}}=l,h=r!==!0;e.save(),e.fillStyle=d,$8t(e,s,h&&TU(i,c,f)),e.beginPath();let m=!!n.pathSegment(e,l),g;if(h){m?e.closePath():EPe(e,r,f,i);let b=!!r.pathSegment(e,u,{move:m,reverse:!0});g=m&&b,g||EPe(e,r,c,i)}e.closePath(),e.fill(g?"evenodd":"nonzero"),e.restore()}}function $8t(e,t,n){let{top:r,bottom:i}=t.chart.chartArea,{property:o,start:s,end:a}=n||{};o==="x"&&(e.beginPath(),e.rect(s,r,a-s,i-r),e.clip())}function EPe(e,t,n,r){let i=t.interpolate(n,r);i&&e.lineTo(i.x,i.y)}var oke={id:"filler",afterDatasetsUpdate(e,t,n){let r=(e.data.datasets||[]).length,i=[],o,s,a,l;for(s=0;s<r;++s)o=e.getDatasetMeta(s),a=o.dataset,l=null,a&&a.options&&a instanceof il&&(l={visible:e.isDatasetVisible(s),index:s,fill:G8t(a,s,r),chart:e,axis:o.controller.options.indexAxis,scale:o.vScale,line:a}),o.$filler=l,i.push(l);for(s=0;s<r;++s)l=i[s],!(!l||l.fill===!1)&&(l.fill=N8t(i,s,n.propagate))},beforeDraw(e,t,n){let r=n.drawTime==="beforeDraw",i=e.getSortedVisibleDatasetMetas(),o=e.chartArea;for(let s=i.length-1;s>=0;--s){let a=i[s].$filler;!a||(a.line.updateControlPoints(o,a.axis),r&&a.fill&&CU(e.ctx,a,o))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;let r=e.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){let o=r[i].$filler;CPe(o)&&CU(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,t,n){let r=t.meta.$filler;!CPe(r)||n.drawTime!=="beforeDatasetDraw"||CU(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},MPe=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},K8t=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index,bF=class extends Xs{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let t=this.options.labels||{},n=si(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){let{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}let r=t.labels,i=uo(r.font),o=i.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=MPe(r,o),u,c;n.font=i.string,this.isHorizontal()?(u=this.maxWidth,c=this._fitRows(s,o,a,l)+10):(c=this.maxHeight,u=this._fitCols(s,i,a,l)+10),this.width=Math.min(u,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){let{ctx:o,maxWidth:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],u=this.lineWidths=[0],c=i+a,f=t;o.textAlign="left",o.textBaseline="middle";let d=-1,h=-c;return this.legendItems.forEach((m,g)=>{let b=r+n/2+o.measureText(m.text).width;(g===0||u[u.length-1]+b+2*a>s)&&(f+=c,u[u.length-(g>0?0:1)]=0,h+=c,d++),l[g]={left:0,top:h,row:d,width:b,height:i},u[u.length-1]+=b+a}),f}_fitCols(t,n,r,i){let{ctx:o,maxHeight:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],u=this.columnSizes=[],c=s-t,f=a,d=0,h=0,m=0,g=0;return this.legendItems.forEach((b,v)=>{let{itemWidth:x,itemHeight:y}=Y8t(r,n,o,b,i);v>0&&h+y+2*a>c&&(f+=d+a,u.push({width:d,height:h}),m+=d+a,g++,d=h=0),l[v]={left:m,top:h,col:g,width:x,height:y},d=Math.max(d,x),h+=y+a}),f+=d,u.push({width:d,height:h}),f}adjustHitBoxes(){if(!this.options.display)return;let t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:o}}=this,s=$g(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=ka(r,this.left+i,this.right-this.lineWidths[a]);for(let u of n)a!==u.row&&(a=u.row,l=ka(r,this.left+i,this.right-this.lineWidths[a])),u.top+=this.top+t+i,u.left=s.leftForLtr(s.x(l),u.width),l+=u.width+i}else{let a=0,l=ka(r,this.top+t+i,this.bottom-this.columnSizes[a].height);for(let u of n)u.col!==a&&(a=u.col,l=ka(r,this.top+t+i,this.bottom-this.columnSizes[a].height)),u.top=l,u.left+=this.left+i,u.left=s.leftForLtr(s.x(u.left),u.width),l+=u.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let t=this.ctx;Xg(t,this),this._draw(),qg(t)}}_draw(){let{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:o,labels:s}=t,a=mo.color,l=$g(t.rtl,this.left,this.width),u=uo(s.font),{padding:c}=s,f=u.size,d=f/2,h;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=u.string;let{boxWidth:m,boxHeight:g,itemHeight:b}=MPe(s,f),v=function(k,O,M){if(isNaN(m)||m<=0||isNaN(g)||g<0)return;i.save();let I=Vn(M.lineWidth,1);if(i.fillStyle=Vn(M.fillStyle,a),i.lineCap=Vn(M.lineCap,"butt"),i.lineDashOffset=Vn(M.lineDashOffset,0),i.lineJoin=Vn(M.lineJoin,"miter"),i.lineWidth=I,i.strokeStyle=Vn(M.strokeStyle,a),i.setLineDash(Vn(M.lineDash,[])),s.usePointStyle){let W={radius:g*Math.SQRT2/2,pointStyle:M.pointStyle,rotation:M.rotation,borderWidth:I},J=l.xPlus(k,m/2),H=O+d;ZG(i,W,J,H,s.pointStyleWidth&&m)}else{let W=O+Math.max((f-g)/2,0),J=l.leftForLtr(k,m),H=ef(M.borderRadius);i.beginPath(),Object.values(H).some(ee=>ee!==0)?im(i,{x:J,y:W,w:m,h:g,radius:H}):i.rect(J,W,m,g),i.fill(),I!==0&&i.stroke()}i.restore()},x=function(k,O,M){rm(i,M.text,k,O+b/2,u,{strikethrough:M.hidden,textAlign:l.textAlign(M.textAlign)})},y=this.isHorizontal(),_=this._computeTitleHeight();y?h={x:ka(o,this.left+c,this.right-r[0]),y:this.top+c+_,line:0}:h={x:this.left+c,y:ka(o,this.top+_+c,this.bottom-n[0].height),line:0},iF(this.ctx,t.textDirection);let w=b+c;this.legendItems.forEach((k,O)=>{i.strokeStyle=k.fontColor,i.fillStyle=k.fontColor;let M=i.measureText(k.text).width,I=l.textAlign(k.textAlign||(k.textAlign=s.textAlign)),W=m+d+M,J=h.x,H=h.y;l.setWidth(this.width),y?O>0&&J+W+c>this.right&&(H=h.y+=w,h.line++,J=h.x=ka(o,this.left+c,this.right-r[h.line])):O>0&&H+w>this.bottom&&(J=h.x=J+n[h.line].width+c,h.line++,H=h.y=ka(o,this.top+_+c,this.bottom-n[h.line].height));let ee=l.x(J);if(v(ee,H,k),J=rU(I,J+m+d,y?J+W:this.right,t.rtl),x(l.x(J),H,k),y)h.x+=W+c;else if(typeof k.text!="string"){let j=u.lineHeight;h.y+=ske(k,j)}else h.y+=w}),oF(this.ctx,t.textDirection)}drawTitle(){let t=this.options,n=t.title,r=uo(n.font),i=Vo(n.padding);if(!n.display)return;let o=$g(t.rtl,this.left,this.width),s=this.ctx,a=n.position,l=r.size/2,u=i.top+l,c,f=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),c=this.top+u,f=ka(t.align,f,this.right-d);else{let m=this.columnSizes.reduce((g,b)=>Math.max(g,b.height),0);c=u+ka(t.align,this.top,this.bottom-m-t.labels.padding-this._computeTitleHeight())}let h=ka(a,f,f+d);s.textAlign=o.textAlign(RP(a)),s.textBaseline="middle",s.strokeStyle=n.color,s.fillStyle=n.color,s.font=r.string,rm(s,n.text,h,c,r)}_computeTitleHeight(){let t=this.options.title,n=uo(t.font),r=Vo(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,o;if(Qp(t,this.left,this.right)&&Qp(n,this.top,this.bottom)){for(o=this.legendHitBoxes,r=0;r<o.length;++r)if(i=o[r],Qp(t,i.left,i.left+i.width)&&Qp(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){let n=this.options;if(!Q8t(t.type,n))return;let r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){let i=this._hoveredItem,o=K8t(i,r);i&&!o&&si(n.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!o&&si(n.onHover,[t,r,this],this)}else r&&si(n.onClick,[t,r,this],this)}};function Y8t(e,t,n,r,i){let o=Z8t(r,e,t,n),s=U8t(i,r,t.lineHeight);return{itemWidth:o,itemHeight:s}}function Z8t(e,t,n,r){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((o,s)=>o.length>s.length?o:s)),t+n.size/2+r.measureText(i).width}function U8t(e,t,n){let r=e;return typeof t.text!="string"&&(r=ske(t,n)),r}function ske(e,t){let n=e.text?e.text.length+.5:0;return t*n}function Q8t(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var T4={id:"legend",_element:bF,start(e,t,n){let r=e.legend=new bF({ctx:e.ctx,options:n,chart:e});Jd.configure(e,r,n),Jd.addBox(e,r)},stop(e){Jd.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){let r=e.legend;Jd.configure(e,r,n),r.options=n},afterUpdate(e){let t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){let r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){let t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:o,useBorderRadius:s,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{let u=l.controller.getStyle(n?0:void 0),c=Vo(u.borderWidth);return{text:t[l.index].label,fillStyle:u.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:u.borderColor,pointStyle:r||u.pointStyle,rotation:u.rotation,textAlign:i||u.textAlign,borderRadius:s&&(a||u.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}},wF=class extends Xs{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){let r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;let i=oi(r.text)?r.text.length:1;this._padding=Vo(r.padding);let o=i*uo(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){let t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){let{top:n,left:r,bottom:i,right:o,options:s}=this,a=s.align,l=0,u,c,f;return this.isHorizontal()?(c=ka(a,r,o),f=n+t,u=o-r):(s.position==="left"?(c=r+t,f=ka(a,i,n),l=Hr*-.5):(c=o-t,f=ka(a,n,i),l=Hr*.5),u=i-n),{titleX:c,titleY:f,maxWidth:u,rotation:l}}draw(){let t=this.ctx,n=this.options;if(!n.display)return;let r=uo(n.font),o=r.lineHeight/2+this._padding.top,{titleX:s,titleY:a,maxWidth:l,rotation:u}=this._drawArgs(o);rm(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:u,textAlign:RP(n.align),textBaseline:"middle",translation:[s,a]})}};function ewt(e,t){let n=new wF({ctx:e.ctx,options:t,chart:e});Jd.configure(e,n,t),Jd.addBox(e,n),e.titleBlock=n}var D4={id:"title",_element:wF,start(e,t,n){ewt(e,n)},stop(e){let t=e.titleBlock;Jd.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){let r=e.titleBlock;Jd.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};var ZP={average(e){if(!e.length)return!1;let t,n,r=0,i=0,o=0;for(t=0,n=e.length;t<n;++t){let s=e[t].element;if(s&&s.hasValue()){let a=s.tooltipPosition();r+=a.x,i+=a.y,++o}}return{x:r/o,y:i/o}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,o,s,a;for(o=0,s=e.length;o<s;++o){let l=e[o].element;if(l&&l.hasValue()){let u=l.getCenterPoint(),c=em(t,u);c<i&&(i=c,a=l)}}if(a){let l=a.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function hh(e,t){return t&&(oi(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function am(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
`)>-1?e.split(`
`):e}function twt(e,t){let{element:n,datasetIndex:r,index:i}=t,o=e.getDatasetMeta(r).controller,{label:s,value:a}=o.getLabelAndValue(i);return{chart:e,label:s,parsed:o.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:a,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function BPe(e,t){let n=e.chart.ctx,{body:r,footer:i,title:o}=e,{boxWidth:s,boxHeight:a}=t,l=uo(t.bodyFont),u=uo(t.titleFont),c=uo(t.footerFont),f=o.length,d=i.length,h=r.length,m=Vo(t.padding),g=m.height,b=0,v=r.reduce((_,w)=>_+w.before.length+w.lines.length+w.after.length,0);if(v+=e.beforeBody.length+e.afterBody.length,f&&(g+=f*u.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),v){let _=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;g+=h*_+(v-h)*l.lineHeight+(v-1)*t.bodySpacing}d&&(g+=t.footerMarginTop+d*c.lineHeight+(d-1)*t.footerSpacing);let x=0,y=function(_){b=Math.max(b,n.measureText(_).width+x)};return n.save(),n.font=u.string,ki(e.title,y),n.font=l.string,ki(e.beforeBody.concat(e.afterBody),y),x=t.displayColors?s+2+t.boxPadding:0,ki(r,_=>{ki(_.before,y),ki(_.lines,y),ki(_.after,y)}),x=0,n.font=c.string,ki(e.footer,y),n.restore(),b+=m.width,{width:b,height:g}}function nwt(e,t){let{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function rwt(e,t,n,r){let{x:i,width:o}=r,s=n.caretSize+n.caretPadding;if(e==="left"&&i+o+s>t.width||e==="right"&&i-o-s<0)return!0}function iwt(e,t,n,r){let{x:i,width:o}=n,{width:s,chartArea:{left:a,right:l}}=e,u="center";return r==="center"?u=i<=(a+l)/2?"left":"right":i<=o/2?u="left":i>=s-o/2&&(u="right"),rwt(u,e,t,n)&&(u="center"),u}function NPe(e,t,n){let r=n.yAlign||t.yAlign||nwt(e,n);return{xAlign:n.xAlign||t.xAlign||iwt(e,t,n,r),yAlign:r}}function owt(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function swt(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function GPe(e,t,n,r){let{caretSize:i,caretPadding:o,cornerRadius:s}=e,{xAlign:a,yAlign:l}=n,u=i+o,{topLeft:c,topRight:f,bottomLeft:d,bottomRight:h}=ef(s),m=owt(t,a),g=swt(t,l,u);return l==="center"?a==="left"?m+=u:a==="right"&&(m-=u):a==="left"?m-=Math.max(c,d)+i:a==="right"&&(m+=Math.max(f,h)+i),{x:Pa(m,0,r.width-t.width),y:Pa(g,0,r.height-t.height)}}function dF(e,t,n){let r=Vo(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function FPe(e){return hh([],am(e))}function awt(e,t,n){return fh(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function IPe(e,t){let n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}var ake={beforeTitle:Up,title(e){if(e.length>0){let t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:Up,beforeBody:Up,beforeLabel:Up,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");let n=e.formattedValue;return jr(n)||(t+=n),t},labelColor(e){let n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){let n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:Up,afterBody:Up,beforeFooter:Up,footer:Up,afterFooter:Up};function tc(e,t,n,r){let i=e[t].call(n,r);return typeof i>"u"?ake[t].call(n,r):i}var UP=class extends Xs{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let t=this._cachedAnimations;if(t)return t;let n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,o=new I4(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=awt(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){let{callbacks:r}=n,i=tc(r,"beforeTitle",this,t),o=tc(r,"title",this,t),s=tc(r,"afterTitle",this,t),a=[];return a=hh(a,am(i)),a=hh(a,am(o)),a=hh(a,am(s)),a}getBeforeBody(t,n){return FPe(tc(n.callbacks,"beforeBody",this,t))}getBody(t,n){let{callbacks:r}=n,i=[];return ki(t,o=>{let s={before:[],lines:[],after:[]},a=IPe(r,o);hh(s.before,am(tc(a,"beforeLabel",this,o))),hh(s.lines,tc(a,"label",this,o)),hh(s.after,am(tc(a,"afterLabel",this,o))),i.push(s)}),i}getAfterBody(t,n){return FPe(tc(n.callbacks,"afterBody",this,t))}getFooter(t,n){let{callbacks:r}=n,i=tc(r,"beforeFooter",this,t),o=tc(r,"footer",this,t),s=tc(r,"afterFooter",this,t),a=[];return a=hh(a,am(i)),a=hh(a,am(o)),a=hh(a,am(s)),a}_createItems(t){let n=this._active,r=this.chart.data,i=[],o=[],s=[],a=[],l,u;for(l=0,u=n.length;l<u;++l)a.push(twt(this.chart,n[l]));return t.filter&&(a=a.filter((c,f,d)=>t.filter(c,f,d,r))),t.itemSort&&(a=a.sort((c,f)=>t.itemSort(c,f,r))),ki(a,c=>{let f=IPe(t.callbacks,c);i.push(tc(f,"labelColor",this,c)),o.push(tc(f,"labelPointStyle",this,c)),s.push(tc(f,"labelTextColor",this,c))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=s,this.dataPoints=a,a}update(t,n){let r=this.options.setContext(this.getContext()),i=this._active,o,s=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{let a=ZP[r.position].call(this,i,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);let l=this._size=BPe(this,r),u=Object.assign({},a,l),c=NPe(this.chart,r,u),f=GPe(r,u,c,this.chart);this.xAlign=c.xAlign,this.yAlign=c.yAlign,o={opacity:1,x:f.x,y:f.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=s,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){let o=this.getCaretPosition(t,r,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,r){let{xAlign:i,yAlign:o}=this,{caretSize:s,cornerRadius:a}=r,{topLeft:l,topRight:u,bottomLeft:c,bottomRight:f}=ef(a),{x:d,y:h}=t,{width:m,height:g}=n,b,v,x,y,_,w;return o==="center"?(_=h+g/2,i==="left"?(b=d,v=b-s,y=_+s,w=_-s):(b=d+m,v=b+s,y=_-s,w=_+s),x=b):(i==="left"?v=d+Math.max(l,c)+s:i==="right"?v=d+m-Math.max(u,f)-s:v=this.caretX,o==="top"?(y=h,_=y-s,b=v-s,x=v+s):(y=h+g,_=y+s,b=v+s,x=v-s),w=y),{x1:b,x2:v,x3:x,y1:y,y2:_,y3:w}}drawTitle(t,n,r){let i=this.title,o=i.length,s,a,l;if(o){let u=$g(r.rtl,this.x,this.width);for(t.x=dF(this,r.titleAlign,r),n.textAlign=u.textAlign(r.titleAlign),n.textBaseline="middle",s=uo(r.titleFont),a=r.titleSpacing,n.fillStyle=r.titleColor,n.font=s.string,l=0;l<o;++l)n.fillText(i[l],u.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+a,l+1===o&&(t.y+=r.titleMarginBottom-a)}}_drawColorBox(t,n,r,i,o){let s=this.labelColors[r],a=this.labelPointStyles[r],{boxHeight:l,boxWidth:u}=o,c=uo(o.bodyFont),f=dF(this,"left",o),d=i.x(f),h=l<c.lineHeight?(c.lineHeight-l)/2:0,m=n.y+h;if(o.usePointStyle){let g={radius:Math.min(u,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},b=i.leftForLtr(d,u)+u/2,v=m+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,VP(t,g,b,v),t.strokeStyle=s.borderColor,t.fillStyle=s.backgroundColor,VP(t,g,b,v)}else{t.lineWidth=$n(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,t.strokeStyle=s.borderColor,t.setLineDash(s.borderDash||[]),t.lineDashOffset=s.borderDashOffset||0;let g=i.leftForLtr(d,u),b=i.leftForLtr(i.xPlus(d,1),u-2),v=ef(s.borderRadius);Object.values(v).some(x=>x!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,im(t,{x:g,y:m,w:u,h:l,radius:v}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),im(t,{x:b,y:m+1,w:u-2,h:l-2,radius:v}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(g,m,u,l),t.strokeRect(g,m,u,l),t.fillStyle=s.backgroundColor,t.fillRect(b,m+1,u-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){let{body:i}=this,{bodySpacing:o,bodyAlign:s,displayColors:a,boxHeight:l,boxWidth:u,boxPadding:c}=r,f=uo(r.bodyFont),d=f.lineHeight,h=0,m=$g(r.rtl,this.x,this.width),g=function(M){n.fillText(M,m.x(t.x+h),t.y+d/2),t.y+=d+o},b=m.textAlign(s),v,x,y,_,w,k,O;for(n.textAlign=s,n.textBaseline="middle",n.font=f.string,t.x=dF(this,b,r),n.fillStyle=r.bodyColor,ki(this.beforeBody,g),h=a&&b!=="right"?s==="center"?u/2+c:u+2+c:0,_=0,k=i.length;_<k;++_){for(v=i[_],x=this.labelTextColors[_],n.fillStyle=x,ki(v.before,g),y=v.lines,a&&y.length&&(this._drawColorBox(n,t,_,m,r),d=Math.max(f.lineHeight,l)),w=0,O=y.length;w<O;++w)g(y[w]),d=f.lineHeight;ki(v.after,g)}h=0,d=f.lineHeight,ki(this.afterBody,g),t.y-=o}drawFooter(t,n,r){let i=this.footer,o=i.length,s,a;if(o){let l=$g(r.rtl,this.x,this.width);for(t.x=dF(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",s=uo(r.footerFont),n.fillStyle=r.footerColor,n.font=s.string,a=0;a<o;++a)n.fillText(i[a],l.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+r.footerSpacing}}drawBackground(t,n,r,i){let{xAlign:o,yAlign:s}=this,{x:a,y:l}=t,{width:u,height:c}=r,{topLeft:f,topRight:d,bottomLeft:h,bottomRight:m}=ef(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(a+f,l),s==="top"&&this.drawCaret(t,n,r,i),n.lineTo(a+u-d,l),n.quadraticCurveTo(a+u,l,a+u,l+d),s==="center"&&o==="right"&&this.drawCaret(t,n,r,i),n.lineTo(a+u,l+c-m),n.quadraticCurveTo(a+u,l+c,a+u-m,l+c),s==="bottom"&&this.drawCaret(t,n,r,i),n.lineTo(a+h,l+c),n.quadraticCurveTo(a,l+c,a,l+c-h),s==="center"&&o==="left"&&this.drawCaret(t,n,r,i),n.lineTo(a,l+f),n.quadraticCurveTo(a,l,a+f,l),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){let n=this.chart,r=this.$animations,i=r&&r.x,o=r&&r.y;if(i||o){let s=ZP[t.position].call(this,this._active,this._eventPosition);if(!s)return;let a=this._size=BPe(this,t),l=Object.assign({},s,this._size),u=NPe(n,t,l),c=GPe(t,l,u,n);(i._to!==c.x||o._to!==c.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=a.width,this.height=a.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(t){let n=this.options.setContext(this.getContext()),r=this.opacity;if(!r)return;this._updateAnimationTarget(n);let i={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;let s=Vo(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=r,this.drawBackground(o,t,i,n),iF(t,n.textDirection),o.y+=s.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),oF(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){let r=this._active,i=t.map(({datasetIndex:a,index:l})=>{let u=this.chart.getDatasetMeta(a);if(!u)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:u.data[l],index:l}}),o=!M4(r,i),s=this._positionChanged(i,n);(o||s)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let i=this.options,o=this._active||[],s=this._getActiveElements(t,o,n,r),a=this._positionChanged(s,t),l=n||!M4(s,o)||a;return l&&(this._active=s,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){let o=this.options;if(t.type==="mouseout")return[];if(!i)return n;let s=this.chart.getElementsAtEventForMode(t,o.mode,o,r);return o.reverse&&s.reverse(),s}_positionChanged(t,n){let{caretX:r,caretY:i,options:o}=this,s=ZP[o.position].call(this,t,n);return s!==!1&&(r!==s.x||i!==s.y)}};Kt(UP,"positioners",ZP);var Zg={id:"tooltip",_element:UP,positioners:ZP,afterInit(e,t,n){n&&(e.tooltip=new UP({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){let t=e.tooltip;if(t&&t._willRender()){let n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){let n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:ake},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};var lwt=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function uwt(e,t,n,r){let i=e.indexOf(t);if(i===-1)return lwt(e,t,n,r);let o=e.lastIndexOf(t);return i!==o?n:i}var cwt=(e,t)=>e===null?null:Pa(Math.round(e),0,t);function zPe(e){let t=this.getLabels();return e>=0&&e<t.length?t[e]:e}var vh=class extends um{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){let n=this._addedLabels;if(n.length){let r=this.getLabels();for(let{index:i,label:o}of n)r[i]===o&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(jr(t))return null;let r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:uwt(r,t,Vn(n,t),this._addedLabels),cwt(n,r.length-1)}determineDataLimits(){let{minDefined:t,maxDefined:n}=this.getUserBounds(),{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){let t=this.min,n=this.max,r=this.options.offset,i=[],o=this.getLabels();o=t===0&&n===o.length-1?o:o.slice(t,n+1),this._valueRange=Math.max(o.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=t;s<=n;s++)i.push({value:s});return i}getLabelForValue(t){return zPe.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){let n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}};Kt(vh,"id","category"),Kt(vh,"defaults",{ticks:{callback:zPe}});function dwt(e,t){let n=[],{bounds:i,step:o,min:s,max:a,precision:l,count:u,maxTicks:c,maxDigits:f,includeBounds:d}=e,h=o||1,m=c-1,{min:g,max:b}=t,v=!jr(s),x=!jr(a),y=!jr(u),_=(b-g)/(f+1),w=RG((b-g)/m/h)*h,k,O,M,I;if(w<1e-14&&!v&&!x)return[{value:g},{value:b}];I=Math.ceil(b/w)-Math.floor(g/w),I>m&&(w=RG(I*w/m/h)*h),jr(l)||(k=Math.pow(10,l),w=Math.ceil(w*k)/k),i==="ticks"?(O=Math.floor(g/w)*w,M=Math.ceil(b/w)*w):(O=g,M=b),v&&x&&o&&ZZ((a-s)/o,w/1e3)?(I=Math.round(Math.min((a-s)/w,c)),w=(a-s)/I,O=s,M=a):y?(O=v?s:O,M=x?a:M,I=u-1,w=(M-O)/I):(I=(M-O)/w,yy(I,Math.round(I),w/1e3)?I=Math.round(I):I=Math.ceil(I));let W=Math.max(VG(w),VG(O));k=Math.pow(10,jr(l)?W:l),O=Math.round(O*k)/k,M=Math.round(M*k)/k;let J=0;for(v&&(d&&O!==s?(n.push({value:s}),O<s&&J++,yy(Math.round((O+J*w)*k)/k,s,TPe(s,_,e))&&J++):O<s&&J++);J<I;++J){let H=Math.round((O+J*w)*k)/k;if(x&&H>a)break;n.push({value:H})}return x&&d&&M!==a?n.length&&yy(n[n.length-1].value,a,TPe(a,_,e))?n[n.length-1].value=a:n.push({value:a}):(!x||M===a)&&n.push({value:M}),n}function TPe(e,t,{horizontal:n,minRotation:r}){let i=As(r),o=(n?Math.sin(i):Math.cos(i))||.001,s=.75*t*(""+e).length;return Math.min(t/o,s)}var z4=class extends um{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return jr(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){let{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds(),{min:i,max:o}=this,s=l=>i=n?i:l,a=l=>o=r?o:l;if(t){let l=Vd(i),u=Vd(o);l<0&&u<0?a(0):l>0&&u>0&&s(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);a(o+l),t||s(i-l)}this.min=i,this.max=o}getTickLimit(){let t=this.options.ticks,{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let t=this.options,n=t.ticks,r=this.getTickLimit();r=Math.max(2,r);let i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,s=dwt(i,o);return t.bounds==="ticks"&&LG(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){let t=this.ticks,n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){let i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return B4(t,this.chart.options.locale,this.options.ticks.format)}},jd=class extends z4{determineDataLimits(){let{min:t,max:n}=this.getMinMax(!0);this.min=ho(t)?t:0,this.max=ho(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){let t=this.isHorizontal(),n=t?this.width:this.height,r=As(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}};Kt(jd,"id","linear"),Kt(jd,"defaults",{ticks:{callback:LP.formatters.numeric}});var tk=e=>Math.floor(dh(e)),wy=(e,t)=>Math.pow(10,tk(e)+t);function DPe(e){return e/Math.pow(10,tk(e))===1}function RPe(e,t,n){let r=Math.pow(10,n),i=Math.floor(e/r);return Math.ceil(t/r)-i}function pwt(e,t){let n=t-e,r=tk(n);for(;RPe(e,t,r)>10;)r++;for(;RPe(e,t,r)<10;)r--;return Math.min(r,tk(e))}function fwt(e,{min:t,max:n}){t=mu(e.min,t);let r=[],i=tk(t),o=pwt(t,n),s=o<0?Math.pow(10,Math.abs(o)):1,a=Math.pow(10,o),l=i>o?Math.pow(10,i):0,u=Math.round((t-l)*s)/s,c=Math.floor((t-l)/a/10)*a*10,f=Math.floor((u-c)/Math.pow(10,o)),d=mu(e.min,Math.round((l+c+f*Math.pow(10,o))*s)/s);for(;d<n;)r.push({value:d,major:DPe(d),significand:f}),f>=10?f=f<15?15:20:f++,f>=20&&(o++,f=2,s=o>=0?1:s),d=Math.round((l+c+f*Math.pow(10,o))*s)/s;let h=mu(e.max,d);return r.push({value:h,major:DPe(h),significand:f}),r}var pF=class extends um{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){let r=z4.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return ho(r)&&r>0?r:null}determineDataLimits(){let{min:t,max:n}=this.getMinMax(!0);this.min=ho(t)?Math.max(0,t):null,this.max=ho(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!ho(this._userMin)&&(this.min=t===wy(this.min,0)?wy(this.min,-1):wy(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:t,maxDefined:n}=this.getUserBounds(),r=this.min,i=this.max,o=a=>r=t?r:a,s=a=>i=n?i:a;r===i&&(r<=0?(o(1),s(10)):(o(wy(r,-1)),s(wy(i,1)))),r<=0&&o(wy(i,-1)),i<=0&&s(wy(r,1)),this.min=r,this.max=i}buildTicks(){let t=this.options,n={min:this._userMin,max:this._userMax},r=fwt(n,this);return t.bounds==="ticks"&&LG(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":B4(t,this.chart.options.locale,this.options.ticks.format)}configure(){let t=this.min;super.configure(),this._startValue=dh(t),this._valueRange=dh(this.max)-dh(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(dh(t)-this._startValue)/this._valueRange)}getValueForPixel(t){let n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}};Kt(pF,"id","logarithmic"),Kt(pF,"defaults",{ticks:{callback:LP.formatters.logarithmic,major:{enabled:!0}}});function DU(e){let t=e.ticks;if(t.display&&e.display){let n=Vo(t.backdropPadding);return Vn(t.font&&t.font.size,mo.font.size)+n.height}return 0}function hwt(e,t,n){return n=oi(n)?n:[n],{w:sU(e,t.string,n),h:n.length*t.lineHeight}}function LPe(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?{start:t-n,end:t}:{start:t,end:t+n}}function mwt(e){let t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],o=e._pointLabels.length,s=e.options.pointLabels,a=s.centerPointLabels?Hr/o:0;for(let l=0;l<o;l++){let u=s.setContext(e.getPointLabelContext(l));i[l]=u.padding;let c=e.getPointPosition(l,e.drawingArea+i[l],a),f=uo(u.font),d=hwt(e.ctx,f,e._pointLabels[l]);r[l]=d;let h=hu(e.getIndexAngle(l)+a),m=Math.round(xy(h)),g=LPe(m,c.x,d.w,0,180),b=LPe(m,c.y,d.h,90,270);gwt(n,t,h,g,b)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=xwt(e,r,i)}function gwt(e,t,n,r,i){let o=Math.abs(Math.sin(n)),s=Math.abs(Math.cos(n)),a=0,l=0;r.start<t.l?(a=(t.l-r.start)/o,e.l=Math.min(e.l,t.l-a)):r.end>t.r&&(a=(r.end-t.r)/o,e.r=Math.max(e.r,t.r+a)),i.start<t.t?(l=(t.t-i.start)/s,e.t=Math.min(e.t,t.t-l)):i.end>t.b&&(l=(i.end-t.b)/s,e.b=Math.max(e.b,t.b+l))}function vwt(e,t,n){let r=e.drawingArea,{extra:i,additionalAngle:o,padding:s,size:a}=n,l=e.getPointPosition(t,r+i+s,o),u=Math.round(xy(hu(l.angle+eo))),c=wwt(l.y,a.h,u),f=_wt(u),d=bwt(l.x,a.w,f);return{visible:!0,x:l.x,y:c,textAlign:f,left:d,top:c,right:d+a.w,bottom:c+a.h}}function ywt(e,t){if(!t)return!0;let{left:n,top:r,right:i,bottom:o}=e;return!(Zp({x:n,y:r},t)||Zp({x:n,y:o},t)||Zp({x:i,y:r},t)||Zp({x:i,y:o},t))}function xwt(e,t,n){let r=[],i=e._pointLabels.length,o=e.options,{centerPointLabels:s,display:a}=o.pointLabels,l={extra:DU(o)/2,additionalAngle:s?Hr/i:0},u;for(let c=0;c<i;c++){l.padding=n[c],l.size=t[c];let f=vwt(e,c,l);r.push(f),a==="auto"&&(f.visible=ywt(f,u),f.visible&&(u=f))}return r}function _wt(e){return e===0||e===180?"center":e<180?"left":"right"}function bwt(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function wwt(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function Pwt(e,t,n){let{left:r,top:i,right:o,bottom:s}=n,{backdropColor:a}=t;if(!jr(a)){let l=ef(t.borderRadius),u=Vo(t.backdropPadding);e.fillStyle=a;let c=r-u.left,f=i-u.top,d=o-r+u.width,h=s-i+u.height;Object.values(l).some(m=>m!==0)?(e.beginPath(),im(e,{x:c,y:f,w:d,h,radius:l}),e.fill()):e.fillRect(c,f,d,h)}}function kwt(e,t){let{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){let o=e._pointLabelItems[i];if(!o.visible)continue;let s=r.setContext(e.getPointLabelContext(i));Pwt(n,s,o);let a=uo(s.font),{x:l,y:u,textAlign:c}=o;rm(n,e._pointLabels[i],l,u+a.lineHeight/2,a,{color:s.color,textAlign:c,textBaseline:"middle"})}}function lke(e,t,n,r){let{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,to);else{let o=e.getPointPosition(0,t);i.moveTo(o.x,o.y);for(let s=1;s<r;s++)o=e.getPointPosition(s,t),i.lineTo(o.x,o.y)}}function Awt(e,t,n,r,i){let o=e.ctx,s=t.circular,{color:a,lineWidth:l}=t;!s&&!r||!a||!l||n<0||(o.save(),o.strokeStyle=a,o.lineWidth=l,o.setLineDash(i.dash),o.lineDashOffset=i.dashOffset,o.beginPath(),lke(e,n,s,r),o.closePath(),o.stroke(),o.restore())}function Cwt(e,t,n){return fh(e,{label:n,index:t,type:"pointLabel"})}var G4=class extends z4{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let t=this._padding=Vo(DU(this.options)/2),n=this.width=this.maxWidth-t.width,r=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+r/2+t.top),this.drawingArea=Math.floor(Math.min(n,r)/2)}determineDataLimits(){let{min:t,max:n}=this.getMinMax(!1);this.min=ho(t)&&!isNaN(t)?t:0,this.max=ho(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/DU(this.options))}generateTickLabels(t){z4.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,r)=>{let i=si(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){let t=this.options;t.display&&t.pointLabels.display?mwt(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,i){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,i))}getIndexAngle(t){let n=to/(this._pointLabels.length||1),r=this.options.startAngle||0;return hu(t*n+As(r))}getDistanceFromCenterForValue(t){if(jr(t))return NaN;let n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(jr(t))return NaN;let n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){let n=this._pointLabels||[];if(t>=0&&t<n.length){let r=n[t];return Cwt(this.getContext(),t,r)}}getPointPosition(t,n,r=0){let i=this.getIndexAngle(t)-eo+r;return{x:Math.cos(i)*n+this.xCenter,y:Math.sin(i)*n+this.yCenter,angle:i}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){let{left:n,top:r,right:i,bottom:o}=this._pointLabelItems[t];return{left:n,top:r,right:i,bottom:o}}drawBackground(){let{backgroundColor:t,grid:{circular:n}}=this.options;if(t){let r=this.ctx;r.save(),r.beginPath(),lke(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}drawGrid(){let t=this.ctx,n=this.options,{angleLines:r,grid:i,border:o}=n,s=this._pointLabels.length,a,l,u;if(n.pointLabels.display&&kwt(this,s),i.display&&this.ticks.forEach((c,f)=>{if(f!==0){l=this.getDistanceFromCenterForValue(c.value);let d=this.getContext(f),h=i.setContext(d),m=o.setContext(d);Awt(this,h,l,s,m)}}),r.display){for(t.save(),a=s-1;a>=0;a--){let c=r.setContext(this.getPointLabelContext(a)),{color:f,lineWidth:d}=c;!d||!f||(t.lineWidth=d,t.strokeStyle=f,t.setLineDash(c.borderDash),t.lineDashOffset=c.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),u=this.getPointPosition(a,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(u.x,u.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){let t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;let i=this.getIndexAngle(0),o,s;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&!n.reverse)return;let u=r.setContext(this.getContext(l)),c=uo(u.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),u.showLabelBackdrop){t.font=c.string,s=t.measureText(a.label).width,t.fillStyle=u.backdropColor;let f=Vo(u.backdropPadding);t.fillRect(-s/2-f.left,-o-c.size/2-f.top,s+f.width,c.size+f.height)}rm(t,a.label,0,-o,c,{color:u.color})}),t.restore()}drawTitle(){}};Kt(G4,"id","radialLinear"),Kt(G4,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:LP.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),Kt(G4,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),Kt(G4,"descriptors",{angleLines:{_fallback:"grid"}});var PF={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},nc=Object.keys(PF);function Swt(e,t){return e-t}function VPe(e,t){if(jr(t))return null;let n=e._adapter,{parser:r,round:i,isoWeekday:o}=e._parseOpts,s=t;return typeof r=="function"&&(s=r(s)),ho(s)||(s=typeof r=="string"?n.parse(s,r):n.parse(s)),s===null?null:(i&&(s=i==="week"&&(ph(o)||o===!0)?n.startOf(s,"isoWeek",o):n.startOf(s,i)),+s)}function JPe(e,t,n,r){let i=nc.length;for(let o=nc.indexOf(e);o<i-1;++o){let s=PF[nc[o]],a=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((n-t)/(a*s.size))<=r)return nc[o]}return nc[i-1]}function Owt(e,t,n,r,i){for(let o=nc.length-1;o>=nc.indexOf(n);o--){let s=nc[o];if(PF[s].common&&e._adapter.diff(i,r,s)>=t-1)return s}return nc[n?nc.indexOf(n):0]}function Ewt(e){for(let t=nc.indexOf(e)+1,n=nc.length;t<n;++t)if(PF[nc[t]].common)return nc[t]}function jPe(e,t,n){if(!n)e[t]=!0;else if(n.length){let{lo:r,hi:i}=DP(n,t),o=n[r]>=t?n[r]:n[i];e[o]=!0}}function Mwt(e,t,n,r){let i=e._adapter,o=+i.startOf(t[0].value,r),s=t[t.length-1].value,a,l;for(a=o;a<=s;a=+i.add(a,1,r))l=n[a],l>=0&&(t[l].major=!0);return t}function HPe(e,t,n){let r=[],i={},o=t.length,s,a;for(s=0;s<o;++s)a=t[s],i[a]=s,r.push({value:a,major:!1});return o===0||!n?r:Mwt(e,r,i,n)}var Hd=class extends um{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){let r=t.time||(t.time={}),i=this._adapter=new RU._date(t.adapters.date);i.init(n),vy(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:VPe(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let t=this.options,n=this._adapter,r=t.time.unit||"day",{min:i,max:o,minDefined:s,maxDefined:a}=this.getUserBounds();function l(u){!s&&!isNaN(u.min)&&(i=Math.min(i,u.min)),!a&&!isNaN(u.max)&&(o=Math.max(o,u.max))}(!s||!a)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=ho(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),o=ho(o)&&!isNaN(o)?o:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){let t=this.getLabelTimestamps(),n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){let t=this.options,n=t.time,r=t.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);let o=this.min,s=this.max,a=eU(i,o,s);return this._unit=n.unit||(r.autoSkip?JPe(n.minUnit,this.min,this.max,this._getLabelCapacity(o)):Owt(this,a.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:Ewt(this._unit),this.initOffsets(i),t.reverse&&a.reverse(),HPe(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,i,o;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?r=o:r=(o-this.getDecimalForValue(t[t.length-2]))/2);let s=t.length<3?.5:.25;n=Pa(n,0,s),r=Pa(r,0,s),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){let t=this._adapter,n=this.min,r=this.max,i=this.options,o=i.time,s=o.unit||JPe(o.minUnit,n,r,this._getLabelCapacity(n)),a=Vn(i.ticks.stepSize,1),l=s==="week"?o.isoWeekday:!1,u=ph(l)||l===!0,c={},f=n,d,h;if(u&&(f=+t.startOf(f,"isoWeek",l)),f=+t.startOf(f,u?"day":s),t.diff(r,n,s)>1e5*a)throw new Error(n+" and "+r+" are too far apart with stepSize of "+a+" "+s);let m=i.ticks.source==="data"&&this.getDataTimestamps();for(d=f,h=0;d<r;d=+t.add(d,a,s),h++)jPe(c,d,m);return(d===r||i.bounds==="ticks"||h===1)&&jPe(c,d,m),Object.keys(c).sort((g,b)=>g-b).map(g=>+g)}getLabelForValue(t){let n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){let i=this.options.time.displayFormats,o=this._unit,s=n||i[o];return this._adapter.format(t,s)}_tickFormatFunction(t,n,r,i){let o=this.options,s=o.ticks.callback;if(s)return si(s,[t,n,r],this);let a=o.time.displayFormats,l=this._unit,u=this._majorUnit,c=l&&a[l],f=u&&a[u],d=r[n],h=u&&f&&d&&d.major;return this._adapter.format(t,i||(h?f:c))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n<r;++n)i=t[n],i.label=this._tickFormatFunction(i.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){let n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){let n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){let n=this.options.ticks,r=this.ctx.measureText(t).width,i=As(this.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(i),s=Math.sin(i),a=this._resolveTickFontOptions(0).size;return{w:r*o+a*s,h:r*s+a*o}}_getLabelCapacity(t){let n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,o=this._tickFormatFunction(t,0,HPe(this,[t],this._majorUnit),i),s=this._getLabelSize(o),a=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return a>0?a:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;let i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n<r;++n)t=t.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){let t=this._cache.labels||[],n,r;if(t.length)return t;let i=this.getLabels();for(n=0,r=i.length;n<r;++n)t.push(VPe(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return HG(t.sort(Swt))}};Kt(Hd,"id","time"),Kt(Hd,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function fF(e,t,n){let r=0,i=e.length-1,o,s,a,l;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=Q0(e,"pos",t)),{pos:o,time:a}=e[r],{pos:s,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=Q0(e,"time",t)),{time:o,pos:a}=e[r],{time:s,pos:l}=e[i]);let u=s-o;return u?a+(l-a)*(t-o)/u:a}var hF=class extends Hd{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=fF(n,this.min),this._tableRange=fF(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){let{min:n,max:r}=this,i=[],o=[],s,a,l,u,c;for(s=0,a=t.length;s<a;++s)u=t[s],u>=n&&u<=r&&i.push(u);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(s=0,a=i.length;s<a;++s)c=i[s+1],l=i[s-1],u=i[s],Math.round((c+l)/2)!==u&&o.push({time:u,pos:s/(a-1)});return o}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;let n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(fF(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){let n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return fF(this._table,r*this._tableRange+this._minPos,!0)}};Kt(hF,"id","timeseries"),Kt(hF,"defaults",Hd.defaults);var Gl=ie(Pe(),1);var cke="label";function uke(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Bwt(e,t){let n=e.options;n&&t&&Object.assign(n,t)}function dke(e,t){e.labels=t}function pke(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:cke,r=[];e.datasets=t.map(i=>{let o=e.datasets.find(s=>s[n]===i[n]);return!o||!i.data||r.includes(o)?{...i}:(r.push(o),Object.assign(o,i),o)})}function Nwt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:cke,n={labels:[],datasets:[]};return dke(n,e.labels),pke(n,e.datasets,t),n}function Gwt(e,t){let{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:o,type:s,data:a,options:l,plugins:u=[],fallbackContent:c,updateMode:f,...d}=e,h=(0,Gl.useRef)(null),m=(0,Gl.useRef)(),g=()=>{!h.current||(m.current=new vo(h.current,{type:s,data:Nwt(a,o),options:l&&{...l},plugins:u}),uke(t,m.current))},b=()=>{uke(t,null),m.current&&(m.current.destroy(),m.current=null)};return(0,Gl.useEffect)(()=>{!i&&m.current&&l&&Bwt(m.current,l)},[i,l]),(0,Gl.useEffect)(()=>{!i&&m.current&&dke(m.current.config.data,a.labels)},[i,a.labels]),(0,Gl.useEffect)(()=>{!i&&m.current&&a.datasets&&pke(m.current.config.data,a.datasets,o)},[i,a.datasets]),(0,Gl.useEffect)(()=>{!m.current||(i?(b(),setTimeout(g)):m.current.update(f))},[i,l,a.labels,a.datasets,f]),(0,Gl.useEffect)(()=>{!m.current||(b(),setTimeout(g))},[s]),(0,Gl.useEffect)(()=>(g(),()=>b()),[]),Gl.default.createElement("canvas",Object.assign({ref:h,role:"img",height:n,width:r},d),c)}var Fwt=(0,Gl.forwardRef)(Gwt);function VU(e,t){return vo.register(t),(0,Gl.forwardRef)((n,r)=>Gl.default.createElement(Fwt,Object.assign({},n,{ref:r,type:e})))}var kF=VU("line",ky),AF=VU("bar",Py);var fke=VU("doughnut",Kg);var sk=ie(fu());var hke=function(){if(typeof window<"u"){if(window.devicePixelRatio)return window.devicePixelRatio;var e=window.screen;if(e)return(e.deviceXDPI||1)/(e.logicalXDPI||1)}return 1}(),ik={toTextLines:function(e){var t=[],n;for(e=[].concat(e);e.length;)n=e.pop(),typeof n=="string"?t.unshift.apply(t,n.split(`
`)):Array.isArray(n)?e.push.apply(e,n):jr(e)||t.unshift(""+n);return t},textSize:function(e,t,n){var r=[].concat(t),i=r.length,o=e.font,s=0,a;for(e.font=n.string,a=0;a<i;++a)s=Math.max(e.measureText(r[a]).width,s);return e.font=o,{height:i*n.lineHeight,width:s}},bound:function(e,t,n){return Math.max(e,Math.min(t,n))},arrayDiff:function(e,t){var n=e.slice(),r=[],i,o,s,a;for(i=0,s=t.length;i<s;++i)a=t[i],o=n.indexOf(a),o===-1?r.push([a,1]):n.splice(o,1);for(i=0,s=n.length;i<s;++i)r.push([n[i],-1]);return r},rasterize:function(e){return Math.round(e*hke)/hke}};function JU(e,t){var n=t.x,r=t.y;if(n===null)return{x:0,y:-1};if(r===null)return{x:1,y:0};var i=e.x-n,o=e.y-r,s=Math.sqrt(i*i+o*o);return{x:s?i/s:0,y:s?o/s:-1}}function Iwt(e,t,n,r,i){switch(i){case"center":n=r=0;break;case"bottom":n=0,r=1;break;case"right":n=1,r=0;break;case"left":n=-1,r=0;break;case"top":n=0,r=-1;break;case"start":n=-n,r=-r;break;case"end":break;default:i*=Math.PI/180,n=Math.cos(i),r=Math.sin(i);break}return{x:e,y:t,vx:n,vy:r}}var zwt=0,gke=1,vke=2,yke=4,xke=8;function CF(e,t,n){var r=zwt;return e<n.left?r|=gke:e>n.right&&(r|=vke),t<n.top?r|=xke:t>n.bottom&&(r|=yke),r}function Twt(e,t){for(var n=e.x0,r=e.y0,i=e.x1,o=e.y1,s=CF(n,r,t),a=CF(i,o,t),l,u,c;!(!(s|a)||s&a);)l=s||a,l&xke?(u=n+(i-n)*(t.top-r)/(o-r),c=t.top):l&yke?(u=n+(i-n)*(t.bottom-r)/(o-r),c=t.bottom):l&vke?(c=r+(o-r)*(t.right-n)/(i-n),u=t.right):l&gke&&(c=r+(o-r)*(t.left-n)/(i-n),u=t.left),l===s?(n=u,r=c,s=CF(n,r,t)):(i=u,o=c,a=CF(i,o,t));return{x0:n,x1:i,y0:r,y1:o}}function SF(e,t){var n=t.anchor,r=e,i,o;return t.clamp&&(r=Twt(r,t.area)),n==="start"?(i=r.x0,o=r.y0):n==="end"?(i=r.x1,o=r.y1):(i=(r.x0+r.x1)/2,o=(r.y0+r.y1)/2),Iwt(i,o,e.vx,e.vy,t.align)}var OF={arc:function(e,t){var n=(e.startAngle+e.endAngle)/2,r=Math.cos(n),i=Math.sin(n),o=e.innerRadius,s=e.outerRadius;return SF({x0:e.x+r*o,y0:e.y+i*o,x1:e.x+r*s,y1:e.y+i*s,vx:r,vy:i},t)},point:function(e,t){var n=JU(e,t.origin),r=n.x*e.options.radius,i=n.y*e.options.radius;return SF({x0:e.x-r,y0:e.y-i,x1:e.x+r,y1:e.y+i,vx:n.x,vy:n.y},t)},bar:function(e,t){var n=JU(e,t.origin),r=e.x,i=e.y,o=0,s=0;return e.horizontal?(r=Math.min(e.x,e.base),o=Math.abs(e.base-e.x)):(i=Math.min(e.y,e.base),s=Math.abs(e.base-e.y)),SF({x0:r,y0:i+s,x1:r+o,y1:i,vx:n.x,vy:n.y},t)},fallback:function(e,t){var n=JU(e,t.origin);return SF({x0:e.x,y0:e.y,x1:e.x+(e.width||0),y1:e.y+(e.height||0),vx:n.x,vy:n.y},t)}},cm=ik.rasterize;function Dwt(e){var t=e.borderWidth||0,n=e.padding,r=e.size.height,i=e.size.width,o=-i/2,s=-r/2;return{frame:{x:o-n.left-t,y:s-n.top-t,w:i+n.width+t*2,h:r+n.height+t*2},text:{x:o,y:s,w:i,h:r}}}function Rwt(e,t){var n=t.chart.getDatasetMeta(t.datasetIndex).vScale;if(!n)return null;if(n.xCenter!==void 0&&n.yCenter!==void 0)return{x:n.xCenter,y:n.yCenter};var r=n.getBasePixel();return e.horizontal?{x:r,y:null}:{x:null,y:r}}function Lwt(e){return e instanceof gh?OF.arc:e instanceof gu?OF.point:e instanceof Vc?OF.bar:OF.fallback}function Vwt(e,t,n,r,i,o){var s=Math.PI/2;if(o){var a=Math.min(o,i/2,r/2),l=t+a,u=n+a,c=t+r-a,f=n+i-a;e.moveTo(t,u),l<c&&u<f?(e.arc(l,u,a,-Math.PI,-s),e.arc(c,u,a,-s,0),e.arc(c,f,a,0,s),e.arc(l,f,a,s,Math.PI)):l<c?(e.moveTo(l,n),e.arc(c,u,a,-s,s),e.arc(l,u,a,s,Math.PI+s)):u<f?(e.arc(l,u,a,-Math.PI,0),e.arc(l,f,a,0,Math.PI)):e.arc(l,u,a,-Math.PI,Math.PI),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,r,i)}function Jwt(e,t,n){var r=n.backgroundColor,i=n.borderColor,o=n.borderWidth;!r&&(!i||!o)||(e.beginPath(),Vwt(e,cm(t.x)+o/2,cm(t.y)+o/2,cm(t.w)-o,cm(t.h)-o,n.borderRadius),e.closePath(),r&&(e.fillStyle=r,e.fill()),i&&o&&(e.strokeStyle=i,e.lineWidth=o,e.lineJoin="miter",e.stroke()))}function jwt(e,t,n){var r=n.lineHeight,i=e.w,o=e.x,s=e.y+r/2;return t==="center"?o+=i/2:(t==="end"||t==="right")&&(o+=i),{h:r,w:i,x:o,y:s}}function Hwt(e,t,n){var r=e.shadowBlur,i=n.stroked,o=cm(n.x),s=cm(n.y),a=cm(n.w);i&&e.strokeText(t,o,s,a),n.filled&&(r&&i&&(e.shadowBlur=0),e.fillText(t,o,s,a),r&&i&&(e.shadowBlur=r))}function Wwt(e,t,n,r){var i=r.textAlign,o=r.color,s=!!o,a=r.font,l=t.length,u=r.textStrokeColor,c=r.textStrokeWidth,f=u&&c,d;if(!(!l||!s&&!f))for(n=jwt(n,i,a),e.font=a.string,e.textAlign=i,e.textBaseline="middle",e.shadowBlur=r.textShadowBlur,e.shadowColor=r.textShadowColor,s&&(e.fillStyle=o),f&&(e.lineJoin="round",e.lineWidth=c,e.strokeStyle=u),d=0,l=t.length;d<l;++d)Hwt(e,t[d],{stroked:f,filled:s,w:n.w,x:n.x,y:n.y+n.h*d})}var _ke=function(e,t,n,r){var i=this;i._config=e,i._index=r,i._model=null,i._rects=null,i._ctx=t,i._el=n};Lc(_ke.prototype,{_modelize:function(e,t,n,r){var i=this,o=i._index,s=uo(go([n.font,{}],r,o)),a=go([n.color,mo.color],r,o);return{align:go([n.align,"center"],r,o),anchor:go([n.anchor,"center"],r,o),area:r.chart.chartArea,backgroundColor:go([n.backgroundColor,null],r,o),borderColor:go([n.borderColor,null],r,o),borderRadius:go([n.borderRadius,0],r,o),borderWidth:go([n.borderWidth,0],r,o),clamp:go([n.clamp,!1],r,o),clip:go([n.clip,!1],r,o),color:a,display:e,font:s,lines:t,offset:go([n.offset,4],r,o),opacity:go([n.opacity,1],r,o),origin:Rwt(i._el,r),padding:Vo(go([n.padding,4],r,o)),positioner:Lwt(i._el),rotation:go([n.rotation,0],r,o)*(Math.PI/180),size:ik.textSize(i._ctx,t,s),textAlign:go([n.textAlign,"start"],r,o),textShadowBlur:go([n.textShadowBlur,0],r,o),textShadowColor:go([n.textShadowColor,a],r,o),textStrokeColor:go([n.textStrokeColor,a],r,o),textStrokeWidth:go([n.textStrokeWidth,0],r,o)}},update:function(e){var t=this,n=null,r=null,i=t._index,o=t._config,s,a,l,u=go([o.display,!0],e,i);u&&(s=e.dataset.data[i],a=Vn(si(o.formatter,[s,e]),s),l=jr(a)?[]:ik.toTextLines(a),l.length&&(n=t._modelize(u,l,o,e),r=Dwt(n))),t._model=n,t._rects=r},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(e,t){var n=this,r=e.ctx,i=n._model,o=n._rects,s;!this.visible()||(r.save(),i.clip&&(s=i.area,r.beginPath(),r.rect(s.left,s.top,s.right-s.left,s.bottom-s.top),r.clip()),r.globalAlpha=ik.bound(0,i.opacity,1),r.translate(cm(t.x),cm(t.y)),r.rotate(i.rotation),Jwt(r,o.frame,i),Wwt(r,i.lines,o.text,i),r.restore())}});var Xwt=Number.MIN_SAFE_INTEGER||-9007199254740991,qwt=Number.MAX_SAFE_INTEGER||9007199254740991;function rk(e,t,n){var r=Math.cos(n),i=Math.sin(n),o=t.x,s=t.y;return{x:o+r*(e.x-o)-i*(e.y-s),y:s+i*(e.x-o)+r*(e.y-s)}}function mke(e,t){var n=qwt,r=Xwt,i=t.origin,o,s,a,l,u;for(o=0;o<e.length;++o)s=e[o],a=s.x-i.x,l=s.y-i.y,u=t.vx*a+t.vy*l,n=Math.min(n,u),r=Math.max(r,u);return{min:n,max:r}}function EF(e,t){var n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);return{vx:(t.x-e.x)/i,vy:(t.y-e.y)/i,origin:e,ln:i}}var bke=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};Lc(bke.prototype,{center:function(){var e=this._rect;return{x:e.x+e.w/2,y:e.y+e.h/2}},update:function(e,t,n){this._rotation=n,this._rect={x:t.x+e.x,y:t.y+e.y,w:t.w,h:t.h}},contains:function(e){var t=this,n=1,r=t._rect;return e=rk(e,t.center(),-t._rotation),!(e.x<r.x-n||e.y<r.y-n||e.x>r.x+r.w+n*2||e.y>r.y+r.h+n*2)},intersects:function(e){var t=this._points(),n=e._points(),r=[EF(t[0],t[1]),EF(t[0],t[3])],i,o,s;for(this._rotation!==e._rotation&&r.push(EF(n[0],n[1]),EF(n[0],n[3])),i=0;i<r.length;++i)if(o=mke(t,r[i]),s=mke(n,r[i]),o.max<s.min||s.max<o.min)return!1;return!0},_points:function(){var e=this,t=e._rect,n=e._rotation,r=e.center();return[rk({x:t.x,y:t.y},r,n),rk({x:t.x+t.w,y:t.y},r,n),rk({x:t.x+t.w,y:t.y+t.h},r,n),rk({x:t.x,y:t.y+t.h},r,n)]}});function wke(e,t,n){var r=t.positioner(e,t),i=r.vx,o=r.vy;if(!i&&!o)return{x:r.x,y:r.y};var s=n.w,a=n.h,l=t.rotation,u=Math.abs(s/2*Math.cos(l))+Math.abs(a/2*Math.sin(l)),c=Math.abs(s/2*Math.sin(l))+Math.abs(a/2*Math.cos(l)),f=1/Math.max(Math.abs(i),Math.abs(o));return u*=i*f,c*=o*f,u+=t.offset*i,c+=t.offset*o,{x:r.x+u,y:r.y+c}}function $wt(e,t){var n,r,i,o;for(n=e.length-1;n>=0;--n)for(i=e[n].$layout,r=n-1;r>=0&&i._visible;--r)o=e[r].$layout,o._visible&&i._box.intersects(o._box)&&t(i,o);return e}function Kwt(e){var t,n,r,i,o,s,a;for(t=0,n=e.length;t<n;++t)r=e[t],i=r.$layout,i._visible&&(a=new Proxy(r._el,{get:(l,u)=>l.getProps([u],!0)[u]}),o=r.geometry(),s=wke(a,r.model(),o),i._box.update(s,o,r.rotation()));return $wt(e,function(l,u){var c=l._hidable,f=u._hidable;c&&f||f?u._visible=!1:c&&(l._visible=!1)})}var ok={prepare:function(e){var t=[],n,r,i,o,s;for(n=0,i=e.length;n<i;++n)for(r=0,o=e[n].length;r<o;++r)s=e[n][r],t.push(s),s.$layout={_box:new bke,_hidable:!1,_visible:!0,_set:n,_idx:s._index};return t.sort(function(a,l){var u=a.$layout,c=l.$layout;return u._idx===c._idx?c._set-u._set:c._idx-u._idx}),this.update(t),t},update:function(e){var t=!1,n,r,i,o,s;for(n=0,r=e.length;n<r;++n)i=e[n],o=i.model(),s=i.$layout,s._hidable=o&&o.display==="auto",s._visible=i.visible(),t|=s._hidable;t&&Kwt(e)},lookup:function(e,t){var n,r;for(n=e.length-1;n>=0;--n)if(r=e[n].$layout,r&&r._visible&&r._box.contains(t))return e[n];return null},draw:function(e,t){var n,r,i,o,s,a;for(n=0,r=t.length;n<r;++n)i=t[n],o=i.$layout,o._visible&&(s=i.geometry(),a=wke(i._el,i.model(),s),o._box.update(a,s,i.rotation()),i.draw(e,a))}},Ywt=function(e){if(jr(e))return null;var t=e,n,r,i;if($n(e))if(!jr(e.label))t=e.label;else if(!jr(e.r))t=e.r;else for(t="",n=Object.keys(e),i=0,r=n.length;i<r;++i)t+=(i!==0?", ":"")+n[i]+": "+e[n[i]];return""+t},Zwt={align:"center",anchor:"center",backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:Ywt,labels:void 0,listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},rc="$datalabels",Pke="$default";function Uwt(e,t){var n=e.datalabels,r={},i=[],o,s;return n===!1?null:(n===!0&&(n={}),t=Lc({},[t,n]),o=t.labels||{},s=Object.keys(o),delete t.labels,s.length?s.forEach(function(a){o[a]&&i.push(Lc({},[t,o[a],{_key:a}]))}):i.push(t),r=i.reduce(function(a,l){return ki(l.listeners||{},function(u,c){a[c]=a[c]||{},a[c][l._key||Pke]=u}),delete l.listeners,a},{}),{labels:i,listeners:r})}function jU(e,t,n,r){if(!!t){var i=n.$context,o=n.$groups,s;!t[o._set]||(s=t[o._set][o._key],!!s&&si(s,[i,r])===!0&&(e[rc]._dirty=!0,n.update(i)))}}function Qwt(e,t,n,r,i){var o,s;!n&&!r||(n?r?n!==r&&(s=o=!0):s=!0:o=!0,s&&jU(e,t.leave,n,i),o&&jU(e,t.enter,r,i))}function e7t(e,t){var n=e[rc],r=n._listeners,i,o;if(!(!r.enter&&!r.leave)){if(t.type==="mousemove")o=ok.lookup(n._labels,t);else if(t.type!=="mouseout")return;i=n._hovered,n._hovered=o,Qwt(e,r,i,o,t)}}function t7t(e,t){var n=e[rc],r=n._listeners.click,i=r&&ok.lookup(n._labels,t);i&&jU(e,r,i,t)}var R4={id:"datalabels",defaults:Zwt,beforeInit:function(e){e[rc]={_actives:[]}},beforeUpdate:function(e){var t=e[rc];t._listened=!1,t._listeners={},t._datasets=[],t._labels=[]},afterDatasetUpdate:function(e,t,n){var r=t.index,i=e[rc],o=i._datasets[r]=[],s=e.isDatasetVisible(r),a=e.data.datasets[r],l=Uwt(a,n),u=t.meta.data||[],c=e.ctx,f,d,h,m,g,b,v,x;for(c.save(),f=0,h=u.length;f<h;++f)if(v=u[f],v[rc]=[],s&&v&&e.getDataVisibility(f)&&!v.skip)for(d=0,m=l.labels.length;d<m;++d)g=l.labels[d],b=g._key,x=new _ke(g,c,v,f),x.$groups={_set:r,_key:b||Pke},x.$context={active:!1,chart:e,dataIndex:f,dataset:a,datasetIndex:r},x.update(x.$context),v[rc].push(x),o.push(x);c.restore(),Lc(i._listeners,l.listeners,{merger:function(y,_,w){_[y]=_[y]||{},_[y][t.index]=w[y],i._listened=!0}})},afterUpdate:function(e){e[rc]._labels=ok.prepare(e[rc]._datasets)},afterDatasetsDraw:function(e){ok.draw(e,e[rc]._labels)},beforeEvent:function(e,t){if(e[rc]._listened){var n=t.event;switch(n.type){case"mousemove":case"mouseout":e7t(e,n);break;case"click":t7t(e,n);break}}},afterEvent:function(e){var t=e[rc],n=t._actives,r=t._actives=e.getActiveElements(),i=ik.arrayDiff(n,r),o,s,a,l,u,c,f;for(o=0,s=i.length;o<s;++o)if(u=i[o],u[1])for(f=u[0].element[rc]||[],a=0,l=f.length;a<l;++a)c=f[a],c.$context.active=u[1]===1,c.update(c.$context);(t._dirty||i.length)&&(ok.update(t._labels),e.render()),delete t._dirty}};vo.register(jd,gu,il,Hd,D4,Zg,gh,R4);var n7t=e=>{let[t,n]=(0,Jc.useState)(null),[r,i]=(0,Jc.useState)(null),[o,s]=(0,Jc.useState)(null),a=(0,Jc.useRef)(null),l=["Revenue","Pipeline","Activation","Acquisition"],u=(f,d)=>{t&&n(null),d.length>0?(n(d[0]),e.handleFocusChange(l[d[0].index].toLowerCase())):e.handleFocusChange("overall")};(0,Jc.useEffect)(()=>{let f={labels:[]};f.labels=[`Revenue
`+(0,sk.default)(e.engineData.winRate).format("0%")+" Win",`Pipeline
`+(0,sk.default)(e.engineData.pipelineRate).format("0.0%"),`Activation
`+(0,sk.default)(e.engineData.activationRate).format("0%"),`Acquistion
`+(0,sk.default)(e.engineData.numLeads).format("0,0")+" Leads"],f.datasets=[{data:[.2,.2,.2,.2],backgroundColor:[e.focusArea=="revenue"||e.focusArea=="overall"?"#003f5c":"#ccc",e.focusArea=="pipeline"||e.focusArea=="overall"?"#bc5090":"#ccc",e.focusArea=="activation"||e.focusArea=="overall"?"#ff6361":"#ccc",e.focusArea=="acquisition"||e.focusArea=="overall"?"#ffa600":"#ccc"],hoverOffset:4}];var d={responsive:!0,maintainAspectRatio:!0,animation:{duration:1e3},onHover:(h,m)=>{h.native.target.style.cursor=m[0]?"pointer":"default"},onClick:(h,m)=>u(h,m),layout:{padding:10},elements:{center:{text:Math.round(e.engineData.score*100)+" / 100",color:"#FF6384",fontStyle:"Helvetica Neue",sidePadding:20,minFontSize:20,lineHeight:25}},plugins:{legend:{display:!1},datalabels:{formatter:function(h,m){return m.chart.data.labels[m.dataIndex]},align:"center",anchor:"center",rotation:function(h){let m=h.dataset.data.slice(0,h.dataIndex).reduce((v,x)=>v+x,0),g=h.dataset.data.reduce((v,x)=>v+x,0),b=(m+h.dataset.data[h.dataIndex]/2)/g*360;return b<180?b-360:b+360},color:"white",textAlign:"center",font:{size:12,fontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",textShadowBlur:10,textShadowColor:"rgba(255,0,0,0.75)"},padding:6},tooltip:{backgroundColor:"rgba(0, 0, 0, 0.4)",position:"nearest",callbacks:{title:function(h,m){return"Click for details \u2192"},label:function(h,m){return null}}}}};i(f),s(d),c()},[e]);let c=()=>{let f={id:"centerTextPlugin",beforeDraw:function(d){if(d.config.options.elements?.center){var h=d.ctx,m=d.config.options.elements.center,g=m.fontStyle||"Arial",b=m.text,v=m.color||"#000",x=m.maxFontSize||75,y=m.sidePadding||20,_=y/100*(d.innerRadius*2);h.font="30px "+g;var w=h.measureText(b).width,k=d.innerRadius*2-_,O=k/w,M=Math.floor(30*O),I=d.innerRadius*2,W=Math.min(M,I,x),J=m.minFontSize,H=m.lineHeight||25,ee=!1;J===void 0&&(J=20),J&&W<J&&(W=J,ee=!0),h.textAlign="center",h.textBaseline="middle";var j=(d.chartArea.left+d.chartArea.right)/2,V=(d.chartArea.top+d.chartArea.bottom)/2;if(h.font=W+"px "+g,h.fillStyle=v,!ee){h.fillText(b,j,V);return}for(var B=b.split(" "),N="",C=[],S=0;S<B.length;S++){var G=N+B[S]+" ",T=h.measureText(G),Q=T.width;Q>k&&S>0?(C.push(N),N=B[S]+" "):N=G}V-=C.length/2*H;for(var S=0;S<C.length;S++)h.fillText(C[S],j,V),V+=H;h.fillText(N,j,V)}}};vo.register(f)};return Jc.default.createElement(Jc.default.Fragment,null,r&&o&&Jc.default.createElement("div",null,Jc.default.createElement(fke,{data:r,options:o,ref:a})))},kke=n7t;var ht=ie(Pe());var BF=ie(fu()),lk=ie(Xa());var MF,r7t=new Uint8Array(16);function HU(){if(!MF&&(MF=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!MF))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return MF(r7t)}var ol=[];for(let e=0;e<256;++e)ol.push((e+256).toString(16).slice(1));function Ake(e,t=0){return(ol[e[t+0]]+ol[e[t+1]]+ol[e[t+2]]+ol[e[t+3]]+"-"+ol[e[t+4]]+ol[e[t+5]]+"-"+ol[e[t+6]]+ol[e[t+7]]+"-"+ol[e[t+8]]+ol[e[t+9]]+"-"+ol[e[t+10]]+ol[e[t+11]]+ol[e[t+12]]+ol[e[t+13]]+ol[e[t+14]]+ol[e[t+15]]).toLowerCase()}var i7t=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),WU={randomUUID:i7t};function o7t(e,t,n){if(WU.randomUUID&&!t&&!e)return WU.randomUUID();e=e||{};let r=e.random||(e.rng||HU)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return Ake(r)}var ak=o7t;var Oke=ie(Ske()),s7t=e=>{let[t,n]=(0,ht.useState)({}),r=()=>{let h={},m=e.rawStats.current,g=e.rawStats.previous,b=0;h.overall={title:"Overall",description:"Your overall performance",points:[]},h.overall.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},"Your Instant Landing Page generated a total of"," ",i(m.numLeads,"0,0"),"leads.")),m.numICPLeads>0&&h.overall.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},i(m.numICPLeads,"0,0")," (",i(m.numICPLeads/m.numLeads,"0%"),") of these leads were ICP leads.")),m.numOpportunities>0&&(h.overall.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},i(m.numOpportunities,"0,0")," opportunities were generated with a value of"," ",i(m.totalOpportunityValue,"$0,0"),".")),h.overall.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},"You won ",i(m.numOpportunitiesWon,"0,0")," (",i(m.numOpportunitiesWon/m.numOpportunities,"0.0%"),") opportunities, generating"," ",i(m.totalRevenue,"$0,0")," of revenues."))),m.totalRevenue>0&&h.overall.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},"You have a revenue per lead of"," ",i(e.rawStats.current.totalRevenue/e.rawStats.current.numLeads,"$0,0"),".")),g.numLeads>0&&h.overall.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},"Your lead volume ",l("numLeads",b)," compared to the previous period."," ")),g.numOpportunities>0&&g.numOpportunitiesWon>0&&h.overall.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},"The number of opportunites generated"," ",l("numOpportunities",b),". The number of deals won"," ",l("numOpportunitiesWon",b),". The total revenue"," ",l("totalRevenue",b),".")),h.acquisition={title:"Acquistion",description:"Your overall performance",points:[]},m.num_leads_by_traffic_source!=null&&h.acquisition.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},"Your top lead source is"," ",u("num_leads_by_traffic_source",b)," leads.")),m.num_icp_leads_by_traffic_source!=null&&h.acquisition.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},"Your top ICP lead source is"," ",u("num_icp_leads_by_traffic_source",b)," leads.")),m.conversion_rate_by_traffic_source!=null&&h.acquisition.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},"Your highest performing traffic source is"," ",c(b),".")),m.num_icp_leads_by_traffic_source!=null&&h.acquisition.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},d(),".")),h.activation={title:"Activation",description:"Your overall performance",points:[]},m.avgEngagement>.5?h.activation.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},"On average, your leads engaged with"," ",i(m.avgEngagement,"0.0%")," of your lead magnet spending"," ",o(lk.default.duration(Oke.current.avgTimeSpent,"seconds").humanize()),".")):h.activation.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},"Your lead magnet has relatively poor engagement. Your leads engaged with only ",i(m.avgEngagement,"0.0%")," of your lead magnet.")),h.activation.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},"Your engagement rate ",s("avgEngagement","0.0%",b)," compared to the previous period."));let v=m.activation/100;v>.2?h.activation.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},"You have a relatively high click-through (activation) rate of"," ",i(v,"0.0%"),".")):h.activation.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},"Your activation rate is relatively low at"," ",i(v,"0.0%"),".")),h.activation.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},"Compared to the previous period, your activation rate"," ",s("activation","0.0%",b),".")),(v<=.2||m.avgEngagement<=.5)&&h.activation.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},"Consider revamping the messaging, value proposition, and your lead magnet with a quality"," ",ht.default.createElement("a",{href:"https://www.getunstoppable.com/gtm",target:"_new",className:"text-blue-600 visited:text-purple-600"},"GTM Strategy")," ","that drives engagement for your leads and quality pipeline.")),h.pipeline={title:"Pipeline",description:"Your overall performance",points:[]},m.numOpportunities>0?(h.pipeline.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},"You converted"," ",i(m.numOpportunities/m.numLeads,"0.0%")," ","of your leads into opportunities.")),m.numICPLeads>0&&h.pipeline.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},"You converted"," ",i(m.numOpportunities/m.numICPLeads,"0.0%")," ","of your ICP leads into opportunities.")),h.pipeline.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},"Your generated ",i(m.numOpportunities)," opportunities worth ",i(m.totalOpportunityValue,"$0,0"),".")),m.avgTimeLeadToOpportunity>0&&h.pipeline.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},"It took an average of"," ",o(lk.default.duration(m.avgTimeLeadToOpportunity,"seconds").humanize())," ","for your leads to turn to opportunities.")),h.pipeline.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},"Your average opportunity value is"," ",i(m.totalOpportunityValue/m.numOpportunities,"$0,0"),".")),h.pipeline.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},"Your greatest source of pipeline is"," ",u("num_opportunities_by_traffic_source",b)," ","opportunities."))):(h.pipeline.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},"You have not generated any opportunities.")),h.pipeline.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},"Have you configured Instant to receive pipeline data from your CRM?")),h.pipeline.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},"Consider revamping your"," ",ht.default.createElement("a",{href:"https://www.getunstoppable.com/gtm",target:"_new",className:"text-blue-600 visited:text-purple-600"},"GTM Strategy")," ","so that you are generating quality leads that convert into real opportunities (and revenue)."))),h.revenue={title:"Revenue",description:"Your overall performance",points:[]},m.numOpportunitiesWon>0?(h.revenue.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},"You generated ",i(m.totalRevenue,"$0,0")," of revenue through ",i(m.numOpportunitiesWon,"0,0")," ","opportunities won.")),h.revenue.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},"You have a win rate of"," ",i(m.numOpportunitiesWon/m.numOpportunities,"0.0%")," ","and an ACV of"," ",i(m.totalRevenue/m.numOpportunitiesWon,"$0,0"),".")),m.avgTimeLeadToRevenue>=0&&h.revenue.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},"It took an average of"," ",o(lk.default.duration(m.avgTimeLeadToRevenue,"seconds").humanize())," ","for your leads to turn to revenue.")),m.avgTimeOpportunityToRevenue>=0&&h.revenue.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},"It took an average of"," ",o(lk.default.duration(m.avgTimeOpportunityToRevenue,"seconds").humanize())," ","for your opportunities to turn to revenue.")),h.revenue.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},f(b)))):(h.revenue.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},"You have not generated any revenue from the"," ",i(m.numLeads,"0,0")," leads you generated.")),h.revenue.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},"Have you configured Instant to receive revenue data from your CRM?")),h.revenue.points.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}`},"Consider revamping your"," ",ht.default.createElement("a",{href:"https://www.getunstoppable.com/gtm",target:"_new",className:"text-blue-600 visited:text-purple-600"},"GTM Strategy")," ","so that you are generating quality leads that convert into real opportunities (and revenue)."))),n(h)};(0,ht.useEffect)(()=>{r()},[e]);let i=(h,m)=>ht.default.createElement("span",{className:"bg-yellow-100 p-1 font-bold"},(0,BF.default)(h).format(m)),o=h=>ht.default.createElement("span",{className:"bg-yellow-100 p-1 font-bold"},h),s=(h,m,g)=>{let b=8e3+g;return h>0?ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}-${ak()}`},"increased by"," ",ht.default.createElement("span",{className:"bg-green-100 p-1 font-bold"},(0,BF.default)(Math.abs(h)).format(m))):h<0?ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}-${ak()}`},"decreased by"," ",ht.default.createElement("span",{className:"bg-red-100 p-1 font-bold"},(0,BF.default)(Math.abs(h)).format(m))):ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${b=b+1}-${ak()}`},ht.default.createElement("span",{className:"bg-yellow-100 p-1 font-bold"},"stayed the same"))},a=(h,m)=>m===0?null:((h-m)/m).toFixed(2),l=(h,m)=>{let g=a(e.rawStats.current[h],e.rawStats.previous[h]);return s(g,"0.0%",m)},u=(h,m)=>{let g=2e3+m;return e.rawStats.current[h]?ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${g=g+1}`},ht.default.createElement("span",{className:"bg-yellow-100 p-1 font-bold"},Object.keys(e.rawStats.current[h])[0])," ","generating"," ",i(Object.values(e.rawStats.current[h])[0],"0,0")):null},c=h=>{let m=3e3+h,g="conversion_rate_by_traffic_source",b="lead_conversion_rate";if(!e.rawStats.current[g])return null;let v=0,x=null,y=null;for(let _ in e.rawStats.current[g]){let w=e.rawStats.current[g][_][b];w&&w>v&&(v=w,x=_,y=e.rawStats.current[g][_])}return x===null||x===null||y==null?null:ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${m=m+1}`},ht.default.createElement("span",{className:"bg-yellow-100 p-1 font-bold"},x)," ","generating ",i(y.leads,"0,0")," leads with a conversion rate of"," ",i(y.lead_conversion_rate,"0.0%"))},f=h=>{let m=4e3+h;if(!e.rawStats.current.revenue_by_traffic_source)return null;let g=[],b=Object.keys(e.rawStats.current.revenue_by_traffic_source).length;return Object.keys(e.rawStats.current.revenue_by_traffic_source).map((v,x)=>{g.push(ht.default.createElement(ht.default.Fragment,{key:`summary-card-fragment-${x=x+1}`},i(e.rawStats.current.revenue_by_traffic_source[v],"$0,0")," ","came from"," ",ht.default.createElement("span",{className:"bg-yellow-100 p-1 font-bold"},v),x==b-1?".":", "))}),ht.default.createElement(ht.default.Fragment,null,"Your most effective traffic sources: ",g)},d=()=>{if(e.rawStats.current.num_leads_by_traffic_source===null||e.rawStats.current.num_icp_leads_by_traffic_source===null)return null;let h=0,m=null,g=null;for(let b in e.rawStats.current.num_leads_by_traffic_source){let v=e.rawStats.current.num_leads_by_traffic_source[b],x=e.rawStats.current.num_icp_leads_by_traffic_source[b];if(v&&x&&x>0&&v>0&&x>10&&v>10){let y=x/v;y>h&&(h=y,m=b,g=e.rawStats.current.conversion_rate_by_traffic_source[b])}}return m===null||m===null||g===null?null:ht.default.createElement(ht.default.Fragment,null,"Your highest quality traffic source generating ICP leads is"," ",ht.default.createElement("span",{className:"bg-yellow-100 p-1 font-bold"},m),". You generated ",i(g.leads*h,"0,0")," ICP leads out of a total of",i(g.leads,"0,0")," leads (",i(h,"0.0%"),") and a conversion rate of"," ",i(g.lead_conversion_rate,"0.0%"))};if(e.focusArea&&t[e.focusArea])return ht.default.createElement("div",{className:"px-6 h-full"},ht.default.createElement("div",{className:"pl-4 overflow-y-auto border-l border-gray-200 w-full h-full"},ht.default.createElement("nav",{className:"flex items-center justify-between border-b border-gray-200 px-4 sm:px-0 mb-6"},ht.default.createElement("div",{className:"flex flex-col text-2xl font-bold text-center items-center"},t[e.focusArea].title),ht.default.createElement("div",{className:"-mt-px flex w-0 flex-1 justify-end"},ht.default.createElement("button",{className:"inline-flex items-center border-b-2 border-transparent pl-1 pb-4 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700",onClick:e.nextCardHandler},ht.default.createElement(Vu,{className:"ml-3 h-5 w-5 text-gray-400","aria-hidden":"true"})))),ht.default.createElement("ul",{className:"list-disc list-outside text-sm space-y-4 ml-4"},t[e.focusArea].points.map((h,m)=>ht.default.createElement("li",{key:`summaryCardItem-${m}`,className:"whitespace-normal whitespace-pre-wrap leading-6"},h)))))},Eke=s7t;var er=ie(Pe());var tf=ie(Xa());var a7t={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};RU._date.override(typeof tf.default=="function"?{_id:"moment",formats:function(){return a7t},parse:function(e,t){return typeof e=="string"&&typeof t=="string"?e=(0,tf.default)(e,t):e instanceof tf.default||(e=(0,tf.default)(e)),e.isValid()?e.valueOf():null},format:function(e,t){return(0,tf.default)(e).format(t)},add:function(e,t,n){return(0,tf.default)(e).add(t,n).valueOf()},diff:function(e,t,n){return(0,tf.default)(e).diff((0,tf.default)(t),n)},startOf:function(e,t,n){return e=(0,tf.default)(e),t==="isoWeek"?(n=Math.trunc(Math.min(Math.max(0,n),6)),e.isoWeekday(n).startOf("day").valueOf()):e.startOf(t).valueOf()},endOf:function(e,t){return(0,tf.default)(e).endOf(t).valueOf()}}:{});var Mke={modes:{point(e,t){return FF(e,t,{intersect:!0})},nearest(e,t,n){return c7t(e,t,n)},x(e,t,n){return FF(e,t,{intersect:n.intersect,axis:"x"})},y(e,t,n){return FF(e,t,{intersect:n.intersect,axis:"y"})}}};function eQ(e,t,n){return(Mke.modes[n.mode]||Mke.modes.nearest)(e,t,n)}function l7t(e,t,n){return n!=="x"&&n!=="y"?e.inRange(t.x,t.y,"x",!0)||e.inRange(t.x,t.y,"y",!0):e.inRange(t.x,t.y,n,!0)}function u7t(e,t,n){return n==="x"?{x:e.x,y:t.y}:n==="y"?{x:t.x,y:e.y}:t}function FF(e,t,n){return e.visibleElements.filter(r=>n.intersect?r.inRange(t.x,t.y):l7t(r,t,n.axis))}function c7t(e,t,n){let r=Number.POSITIVE_INFINITY;return FF(e,t,n).reduce((i,o)=>{let s=o.getCenterPoint(),a=u7t(t,s,n.axis),l=em(t,a);return l<r?(i=[o],r=l):l===r&&i.push(o),i},[]).sort((i,o)=>i._index-o._index).slice(0,1)}var d7t=(e,t)=>t>e||e.length>t.length&&e.slice(0,t.length)===t,Ay=.001,zF=(e,t,n)=>Math.min(n,Math.max(t,e));function p7t(e,t,n){for(let r of Object.keys(e))e[r]=zF(e[r],t,n);return e}function f7t(e,t,n,r){if(!e||!t||n<=0)return!1;let i=r/2;return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)<=Math.pow(n+i,2)}function Kke(e,{x:t,y:n,x2:r,y2:i},o,s){let a=s/2,l=e.x>=t-a-Ay&&e.x<=r+a+Ay,u=e.y>=n-a-Ay&&e.y<=i+a+Ay;return o==="x"?l:(o==="y"||l)&&u}function j4(e,t){let{centerX:n,centerY:r}=e.getProps(["centerX","centerY"],t);return{x:n,y:r}}function h7t(e,t,n,r=!0){let i=n.split("."),o=0;for(let s of t.split(".")){let a=i[o++];if(parseInt(s,10)<parseInt(a,10))break;if(d7t(a,s)){if(r)throw new Error(`${e} v${n} is not supported. v${t} or newer is required.`);return!1}}return!0}var Yke=e=>typeof e=="string"&&e.endsWith("%"),Zke=e=>parseFloat(e)/100,Uke=e=>zF(Zke(e),0,1),NF=(e,t)=>({x:e,y:t,x2:e,y2:t,width:0,height:0}),m7t={box:e=>NF(e.centerX,e.centerY),ellipse:e=>({centerX:e.centerX,centerY:e.centerX,radius:0,width:0,height:0}),label:e=>NF(e.centerX,e.centerY),line:e=>NF(e.x,e.y),point:e=>({centerX:e.centerX,centerY:e.centerY,radius:0,width:0,height:0}),polygon:e=>NF(e.centerX,e.centerY)};function tQ(e,t){return t==="start"?0:t==="end"?e:Yke(t)?Uke(t)*e:e/2}function ev(e,t,n=!0){return typeof t=="number"?t:Yke(t)?(n?Uke(t):Zke(t))*e:e}function g7t(e,t){let{x:n,width:r}=e,i=t.textAlign;return i==="center"?n+r/2:i==="end"||i==="right"?n+r:n}function nQ(e,t="center"){return $n(e)?{x:Vn(e.x,t),y:Vn(e.y,t)}:(e=Vn(e,t),{x:e,y:e})}function Qke(e){return e&&(rl(e.xValue)||rl(e.yValue))}function ck(e,t,n){let r=n.init;if(r){if(r===!0)return t9e(t,n)}else return;return v7t(e,t,n)}function e9e(e,t,n){let r=!1;return t.forEach(i=>{nl(e[i])?(r=!0,n[i]=e[i]):rl(n[i])&&delete n[i]}),r}function t9e(e,t){let n=t.type||"line";return m7t[n](e)}function v7t(e,t,n){let r=si(n.init,[{chart:e,properties:t,options:n}]);if(r===!0)return t9e(t,n);if($n(r))return r}var XU=new Map,y7t=e=>isNaN(e)||e<=0,x7t=e=>e.reduce(function(t,n){return t+=n.string,t},"");function TF(e){if(e&&typeof e=="object"){let t=e.toString();return t==="[object HTMLImageElement]"||t==="[object HTMLCanvasElement]"}}function rQ(e,{x:t,y:n},r){r&&(e.translate(t,n),e.rotate(As(r)),e.translate(-t,-n))}function tv(e,t){if(t&&t.borderWidth)return e.lineCap=t.borderCapStyle,e.setLineDash(t.borderDash),e.lineDashOffset=t.borderDashOffset,e.lineJoin=t.borderJoinStyle,e.lineWidth=t.borderWidth,e.strokeStyle=t.borderColor,!0}function H4(e,t){e.shadowColor=t.backgroundShadowColor,e.shadowBlur=t.shadowBlur,e.shadowOffsetX=t.shadowOffsetX,e.shadowOffsetY=t.shadowOffsetY}function iQ(e,t){let n=t.content;if(TF(n))return{width:ev(n.width,t.width),height:ev(n.height,t.height)};let r=t.font,i=oi(r)?r.map(l=>uo(l)):[uo(r)],o=t.textStrokeWidth,s=oi(n)?n:[n],a=s.join()+x7t(i)+o+(e._measureText?"-spriting":"");return XU.has(a)||XU.set(a,k7t(e,s,i,o)),XU.get(a)}function n9e(e,t,n){let{x:r,y:i,width:o,height:s}=t;e.save(),H4(e,n);let a=tv(e,n);e.fillStyle=n.backgroundColor,e.beginPath(),im(e,{x:r,y:i,w:o,h:s,radius:p7t(ef(n.borderRadius),0,Math.min(o,s)/2)}),e.closePath(),e.fill(),a&&(e.shadowColor=n.borderShadowColor,e.stroke()),e.restore()}function _7t(e,t,n){let r=n.content;if(TF(r)){e.save(),e.globalAlpha=S7t(n.opacity,r.style.opacity),e.drawImage(r,t.x,t.y,t.width,t.height),e.restore();return}let i=oi(r)?r:[r],o=n.font,s=oi(o)?o.map(f=>uo(f)):[uo(o)],a=n.color,l=oi(a)?a:[a],u=g7t(t,n),c=t.y+n.textStrokeWidth/2;e.save(),e.textBaseline="middle",e.textAlign=n.textAlign,b7t(e,n)&&A7t(e,{x:u,y:c},i,s),C7t(e,{x:u,y:c},i,{fonts:s,colors:l}),e.restore()}function b7t(e,t){if(t.textStrokeWidth>0)return e.lineJoin="round",e.miterLimit=2,e.lineWidth=t.textStrokeWidth,e.strokeStyle=t.textStrokeColor,!0}function w7t(e,t,n,r){let{radius:i,options:o}=t,s=o.pointStyle,a=o.rotation,l=(a||0)*TP;if(TF(s)){e.save(),e.translate(n,r),e.rotate(l),e.drawImage(s,-s.width/2,-s.height/2,s.width,s.height),e.restore();return}y7t(i)||P7t(e,{x:n,y:r,radius:i,rotation:a,style:s,rad:l})}function P7t(e,{x:t,y:n,radius:r,rotation:i,style:o,rad:s}){let a,l,u,c;switch(e.beginPath(),o){default:e.arc(t,n,r,0,to),e.closePath();break;case"triangle":e.moveTo(t+Math.sin(s)*r,n-Math.cos(s)*r),s+=S4,e.lineTo(t+Math.sin(s)*r,n-Math.cos(s)*r),s+=S4,e.lineTo(t+Math.sin(s)*r,n-Math.cos(s)*r),e.closePath();break;case"rectRounded":c=r*.516,u=r-c,a=Math.cos(s+ec)*u,l=Math.sin(s+ec)*u,e.arc(t-a,n-l,c,s-Hr,s-eo),e.arc(t+l,n-a,c,s-eo,s),e.arc(t+a,n+l,c,s,s+eo),e.arc(t-l,n+a,c,s+eo,s+Hr),e.closePath();break;case"rect":if(!i){u=Math.SQRT1_2*r,e.rect(t-u,n-u,2*u,2*u);break}s+=ec;case"rectRot":a=Math.cos(s)*r,l=Math.sin(s)*r,e.moveTo(t-a,n-l),e.lineTo(t+l,n-a),e.lineTo(t+a,n+l),e.lineTo(t-l,n+a),e.closePath();break;case"crossRot":s+=ec;case"cross":a=Math.cos(s)*r,l=Math.sin(s)*r,e.moveTo(t-a,n-l),e.lineTo(t+a,n+l),e.moveTo(t+l,n-a),e.lineTo(t-l,n+a);break;case"star":a=Math.cos(s)*r,l=Math.sin(s)*r,e.moveTo(t-a,n-l),e.lineTo(t+a,n+l),e.moveTo(t+l,n-a),e.lineTo(t-l,n+a),s+=ec,a=Math.cos(s)*r,l=Math.sin(s)*r,e.moveTo(t-a,n-l),e.lineTo(t+a,n+l),e.moveTo(t+l,n-a),e.lineTo(t-l,n+a);break;case"line":a=Math.cos(s)*r,l=Math.sin(s)*r,e.moveTo(t-a,n-l),e.lineTo(t+a,n+l);break;case"dash":e.moveTo(t,n),e.lineTo(t+Math.cos(s)*r,n+Math.sin(s)*r);break}e.fill()}function k7t(e,t,n,r){e.save();let i=t.length,o=0,s=r;for(let a=0;a<i;a++){let l=n[Math.min(a,n.length-1)];e.font=l.string;let u=t[a];o=Math.max(o,e.measureText(u).width+r),s+=l.lineHeight}return e.restore(),{width:o,height:s}}function A7t(e,{x:t,y:n},r,i){e.beginPath();let o=0;r.forEach(function(s,a){let l=i[Math.min(a,i.length-1)],u=l.lineHeight;e.font=l.string,e.strokeText(s,t,n+u/2+o),o+=u}),e.stroke()}function C7t(e,{x:t,y:n},r,{fonts:i,colors:o}){let s=0;r.forEach(function(a,l){let u=o[Math.min(l,o.length-1)],c=i[Math.min(l,i.length-1)],f=c.lineHeight;e.beginPath(),e.font=c.string,e.fillStyle=u,e.fillText(a,t,n+f/2+s),s+=f,e.fill()})}function S7t(e,t){let n=ph(e)?e:t;return ph(n)?zF(n,0,1):1}var Bke={xScaleID:{min:"xMin",max:"xMax",start:"left",end:"right",startProp:"x",endProp:"x2"},yScaleID:{min:"yMin",max:"yMax",start:"bottom",end:"top",startProp:"y",endProp:"y2"}};function L4(e,t,n){return t=typeof t=="number"?t:e.parse(t),ho(t)?e.getPixelForValue(t):n}function Cy(e,t,n){let r=t[n];if(r||n==="scaleID")return r;let i=n.charAt(0),o=Object.values(e).filter(s=>s.axis&&s.axis===i);return o.length?o[0].id:i}function r9e(e,t){if(e){let n=e.options.reverse,r=L4(e,t.min,n?t.end:t.start),i=L4(e,t.max,n?t.start:t.end);return{start:r,end:i}}}function i9e(e,t){let{chartArea:n,scales:r}=e,i=r[Cy(r,t,"xScaleID")],o=r[Cy(r,t,"yScaleID")],s=n.width/2,a=n.height/2;return i&&(s=L4(i,t.xValue,i.left+i.width/2)),o&&(a=L4(o,t.yValue,o.top+o.height/2)),{x:s,y:a}}function oQ(e,t){let n=e.scales,r=n[Cy(n,t,"xScaleID")],i=n[Cy(n,t,"yScaleID")];if(!r&&!i)return{};let{left:o,right:s}=r||e.chartArea,{top:a,bottom:l}=i||e.chartArea,u=Nke(r,{min:t.xMin,max:t.xMax,start:o,end:s});o=u.start,s=u.end;let c=Nke(i,{min:t.yMin,max:t.yMax,start:l,end:a});return a=c.start,l=c.end,{x:o,y:a,x2:s,y2:l,width:s-o,height:l-a,centerX:o+(s-o)/2,centerY:a+(l-a)/2}}function o9e(e,t){if(!Qke(t)){let n=oQ(e,t),r=t.radius;(!r||isNaN(r))&&(r=Math.min(n.width,n.height)/2,t.radius=r);let i=r*2,o=n.centerX+t.xAdjust,s=n.centerY+t.yAdjust;return{x:o-r,y:s-r,x2:o+r,y2:s+r,centerX:o,centerY:s,width:i,height:i,radius:r}}return E7t(e,t)}function O7t(e,t){let{scales:n,chartArea:r}=e,i=n[t.scaleID],o={x:r.left,y:r.top,x2:r.right,y2:r.bottom};return i?M7t(i,o,t):B7t(n,o,t),o}function s9e(e,t){let n=oQ(e,t);return n.initProperties=ck(e,n,t),n.elements=[{type:"label",optionScope:"label",properties:F7t(e,n,t),initProperties:n.initProperties}],n}function E7t(e,t){let n=i9e(e,t),r=t.radius*2;return{x:n.x-t.radius+t.xAdjust,y:n.y-t.radius+t.yAdjust,x2:n.x+t.radius+t.xAdjust,y2:n.y+t.radius+t.yAdjust,centerX:n.x+t.xAdjust,centerY:n.y+t.yAdjust,radius:t.radius,width:r,height:r}}function Nke(e,t){let n=r9e(e,t)||t;return{start:Math.min(n.start,n.end),end:Math.max(n.start,n.end)}}function M7t(e,t,n){let r=L4(e,n.value,NaN),i=L4(e,n.endValue,r);e.isHorizontal()?(t.x=r,t.x2=i):(t.y=r,t.y2=i)}function B7t(e,t,n){for(let r of Object.keys(Bke)){let i=e[Cy(e,n,r)];if(i){let{min:o,max:s,start:a,end:l,startProp:u,endProp:c}=Bke[r],f=r9e(i,{min:n[o],max:n[s],start:i[a],end:i[l]});t[u]=f.start,t[c]=f.end}}}function N7t({properties:e,options:t},n,r,i){let{x:o,x2:s,width:a}=e;return a9e({start:o,end:s,size:a,borderWidth:t.borderWidth},{position:r.x,padding:{start:i.left,end:i.right},adjust:t.label.xAdjust,size:n.width})}function G7t({properties:e,options:t},n,r,i){let{y:o,y2:s,height:a}=e;return a9e({start:o,end:s,size:a,borderWidth:t.borderWidth},{position:r.y,padding:{start:i.top,end:i.bottom},adjust:t.label.yAdjust,size:n.height})}function a9e(e,t){let{start:n,end:r,borderWidth:i}=e,{position:o,padding:{start:s,end:a},adjust:l}=t,u=r-i-n-s-a-t.size;return n+i/2+l+tQ(u,o)}function F7t(e,t,n){let r=n.label;r.backgroundColor="transparent",r.callout.display=!1;let i=nQ(r.position),o=Vo(r.padding),s=iQ(e.ctx,r),a=N7t({properties:t,options:n},s,i,o),l=G7t({properties:t,options:n},s,i,o),u=s.width+o.width,c=s.height+o.height;return{x:a,y:l,x2:a+u,y2:l+c,width:u,height:c,centerX:a+u/2,centerY:l+c/2,rotation:r.rotation}}function My(e,t,n){let r=Math.cos(n),i=Math.sin(n),o=t.x,s=t.y;return{x:o+r*(e.x-o)-i*(e.y-s),y:s+i*(e.x-o)+r*(e.y-s)}}var qU=["enter","leave"],sQ=qU.concat("click");function I7t(e,t,n){t.listened=e9e(n,sQ,t.listeners),t.moveListened=!1,t._getElements=eQ,qU.forEach(r=>{nl(n[r])&&(t.moveListened=!0)}),(!t.listened||!t.moveListened)&&t.annotations.forEach(r=>{!t.listened&&nl(r.click)&&(t.listened=!0),t.moveListened||qU.forEach(i=>{nl(r[i])&&(t.listened=!0,t.moveListened=!0)})})}function z7t(e,t,n){if(e.listened)switch(t.type){case"mousemove":case"mouseout":return T7t(e,t,n);case"click":return D7t(e,t,n)}}function T7t(e,t,n){if(!e.moveListened)return;let r;t.type==="mousemove"?r=eQ(e,t,n.interaction):r=[];let i=e.hovered;e.hovered=r;let o={state:e,event:t},s=Gke(o,"leave",i,r);return Gke(o,"enter",r,i)||s}function Gke({state:e,event:t},n,r,i){let o;for(let s of r)i.indexOf(s)<0&&(o=l9e(s.options[n]||e.listeners[n],s,t)||o);return o}function D7t(e,t,n){let r=e.listeners,i=eQ(e,t,n.interaction),o;for(let s of i)o=l9e(s.options.click||r.click,s,t)||o;return o}function l9e(e,t,n){return si(e,[t.$context,n])===!0}var IF=["afterDraw","beforeDraw"];function R7t(e,t,n){let r=t.visibleElements;t.hooked=e9e(n,IF,t.hooks),t.hooked||r.forEach(i=>{t.hooked||IF.forEach(o=>{nl(i.options[o])&&(t.hooked=!0)})})}function Fke(e,t,n){if(e.hooked){let r=t.options[n]||e.hooks[n];return si(r,[t.$context])}}function L7t(e,t,n){let r=W7t(e.scales,t,n),i=Ike(t,r,"min","suggestedMin");i=Ike(t,r,"max","suggestedMax")||i,i&&nl(t.handleTickRangeOptions)&&t.handleTickRangeOptions()}function V7t(e,t){for(let n of e)j7t(n,t)}function Ike(e,t,n,r){if(ho(t[n])&&!J7t(e.options,n,r)){let i=e[n]!==t[n];return e[n]=t[n],i}}function J7t(e,t,n){return rl(e[t])||rl(e[n])}function j7t(e,t){for(let n of["scaleID","xScaleID","yScaleID"]){let r=Cy(t,e,n);r&&!t[r]&&H7t(e,n)&&console.warn(`No scale found with id '${r}' for annotation '${e.id}'`)}}function H7t(e,t){if(t==="scaleID")return!0;let n=t.charAt(0);for(let r of["Min","Max","Value"])if(rl(e[n+r]))return!0;return!1}function W7t(e,t,n){let r=t.axis,i=t.id,o=r+"ScaleID",s={min:Vn(t.min,Number.NEGATIVE_INFINITY),max:Vn(t.max,Number.POSITIVE_INFINITY)};for(let a of n)a.scaleID===i?zke(a,t,["value","endValue"],s):Cy(e,a,o)===i&&zke(a,t,[r+"Min",r+"Max",r+"Value"],s);return s}function zke(e,t,n,r){for(let i of n){let o=e[i];if(rl(o)){let s=t.parse(o);r.min=Math.min(r.min,s),r.max=Math.max(r.max,s)}}}var nv=class extends Xs{inRange(t,n,r,i){let{x:o,y:s}=My({x:t,y:n},this.getCenterPoint(i),As(-this.options.rotation));return Kke({x:o,y:s},this.getProps(["x","y","x2","y2"],i),r,this.options.borderWidth)}getCenterPoint(t){return j4(this,t)}draw(t){t.save(),rQ(t,this.getCenterPoint(),this.options.rotation),n9e(t,this,this.options),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,n){return s9e(t,n)}};nv.id="boxAnnotation";nv.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,label:{backgroundColor:"transparent",borderWidth:0,callout:{display:!1},color:"black",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,opacity:void 0,padding:6,position:"center",rotation:void 0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};nv.defaultRoutes={borderColor:"color",backgroundColor:"color"};nv.descriptors={label:{_fallback:!0}};var u9e=["left","bottom","top","right"],Sy=class extends Xs{inRange(t,n,r,i){let{x:o,y:s}=My({x:t,y:n},this.getCenterPoint(i),As(-this.rotation));return Kke({x:o,y:s},this.getProps(["x","y","x2","y2"],i),r,this.options.borderWidth)}getCenterPoint(t){return j4(this,t)}draw(t){let n=this.options,r=!rl(this._visible)||this._visible;!n.display||!n.content||!r||(t.save(),rQ(t,this.getCenterPoint(),this.rotation),q7t(t,this),n9e(t,this,n),_7t(t,ePt(this),n),t.restore())}resolveElementProperties(t,n){let r;if(Qke(n))r=i9e(t,n);else{let{centerX:a,centerY:l}=oQ(t,n);r={x:a,y:l}}let i=Vo(n.padding),o=iQ(t.ctx,n),s=X7t(r,o,n,i);return{initProperties:ck(t,s,n),pointX:r.x,pointY:r.y,...s,rotation:n.rotation}}};Sy.id="labelAnnotation";Sy.defaults={adjustScaleRange:!0,backgroundColor:"transparent",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:0,callout:{borderCapStyle:"butt",borderColor:void 0,borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:1,display:!1,margin:5,position:"auto",side:5,start:"50%"},color:"black",content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,init:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};Sy.defaultRoutes={borderColor:"color"};function X7t(e,t,n,r){let i=t.width+r.width+n.borderWidth,o=t.height+r.height+n.borderWidth,s=nQ(n.position,"center"),a=Tke(e.x,i,n.xAdjust,s.x),l=Tke(e.y,o,n.yAdjust,s.y);return{x:a,y:l,x2:a+i,y2:l+o,width:i,height:o,centerX:a+i/2,centerY:l+o/2}}function Tke(e,t,n=0,r){return e-tQ(t,r)+n}function q7t(e,t){let{pointX:n,pointY:r,options:i}=t,o=i.callout,s=o&&o.display&&U7t(t,o);if(!s||tPt(t,o,s))return;if(e.save(),e.beginPath(),!tv(e,o))return e.restore();let{separatorStart:l,separatorEnd:u}=$7t(t,s),{sideStart:c,sideEnd:f}=Y7t(t,s,l);(o.margin>0||i.borderWidth===0)&&(e.moveTo(l.x,l.y),e.lineTo(u.x,u.y)),e.moveTo(c.x,c.y),e.lineTo(f.x,f.y);let d=My({x:n,y:r},t.getCenterPoint(),As(-t.rotation));e.lineTo(d.x,d.y),e.stroke(),e.restore()}function $7t(e,t){let{x:n,y:r,x2:i,y2:o}=e,s=K7t(e,t),a,l;return t==="left"||t==="right"?(a={x:n+s,y:r},l={x:a.x,y:o}):(a={x:n,y:r+s},l={x:i,y:a.y}),{separatorStart:a,separatorEnd:l}}function K7t(e,t){let{width:n,height:r,options:i}=e,o=i.callout.margin+i.borderWidth/2;return t==="right"?n+o:t==="bottom"?r+o:-o}function Y7t(e,t,n){let{y:r,width:i,height:o,options:s}=e,a=s.callout.start,l=Z7t(t,s.callout),u,c;return t==="left"||t==="right"?(u={x:n.x,y:r+ev(o,a)},c={x:u.x+l,y:u.y}):(u={x:n.x+ev(i,a),y:n.y},c={x:u.x,y:u.y+l}),{sideStart:u,sideEnd:c}}function Z7t(e,t){let n=t.side;return e==="left"||e==="top"?-n:n}function U7t(e,t){let n=t.position;return u9e.includes(n)?n:Q7t(e,t)}function Q7t(e,t){let{x:n,y:r,x2:i,y2:o,width:s,height:a,pointX:l,pointY:u,centerX:c,centerY:f,rotation:d}=e,h={x:c,y:f},m=t.start,g=ev(s,m),b=ev(a,m),v=[n,n+g,n+g,i],x=[r+b,o,r,o],y=[];for(let _=0;_<4;_++){let w=My({x:v[_],y:x[_]},h,As(d));y.push({position:u9e[_],distance:em(w,{x:l,y:u})})}return y.sort((_,w)=>_.distance-w.distance)[0].position}function ePt({x:e,y:t,width:n,height:r,options:i}){let o=i.borderWidth/2,s=Vo(i.padding);return{x:e+s.left+o,y:t+s.top+o,width:n-s.left-s.right-i.borderWidth,height:r-s.top-s.bottom-i.borderWidth}}function tPt(e,t,n){let{pointX:r,pointY:i}=e,o=t.margin,s=r,a=i;return n==="left"?s+=o:n==="right"?s-=o:n==="top"?a+=o:n==="bottom"&&(a-=o),e.inRange(s,a)}var aQ=(e,t,n)=>({x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}),$U=(e,t,n)=>aQ(t,n,Math.abs((e-t.y)/(n.y-t.y))).x,Dke=(e,t,n)=>aQ(t,n,Math.abs((e-t.x)/(n.x-t.x))).y,uk=e=>e*e,nPt=(e,t,{x:n,y:r,x2:i,y2:o},s)=>s==="y"?{start:Math.min(r,o),end:Math.max(r,o),value:t}:{start:Math.min(n,i),end:Math.max(n,i),value:e},Rke=(e,t,n,r)=>(1-r)*(1-r)*e+2*(1-r)*r*t+r*r*n,KU=(e,t,n,r)=>({x:Rke(e.x,t.x,n.x,r),y:Rke(e.y,t.y,n.y,r)}),Lke=(e,t,n,r)=>2*(1-r)*(t-e)+2*r*(n-t),Vke=(e,t,n,r)=>-Math.atan2(Lke(e.x,t.x,n.x,r),Lke(e.y,t.y,n.y,r))+.5*Hr,Oy=class extends Xs{inRange(t,n,r,i){let o=this.options.borderWidth/2;if(r!=="x"&&r!=="y"){let s={mouseX:t,mouseY:n},{path:a,ctx:l}=this;if(a){tv(l,this.options);let{chart:c}=this.$context,f=t*c.currentDevicePixelRatio,d=n*c.currentDevicePixelRatio,h=l.isPointInStroke(a,f,d)||YU(this,s,i);return l.restore(),h}let u=uk(o);return sPt(this,s,u,i)||YU(this,s,i)}return rPt(this,{mouseX:t,mouseY:n},r,{hBorderWidth:o,useFinalPosition:i})}getCenterPoint(t){return j4(this,t)}draw(t){let{x:n,y:r,x2:i,y2:o,cp:s,options:a}=this;if(t.save(),!tv(t,a))return t.restore();H4(t,a);let l=Math.sqrt(Math.pow(i-n,2)+Math.pow(o-r,2));if(a.curve&&s)return hPt(t,this,s,l),t.restore();let{startOpts:u,endOpts:c,startAdjust:f,endAdjust:d}=c9e(this),h=Math.atan2(o-r,i-n);t.translate(n,r),t.rotate(h),t.beginPath(),t.moveTo(0+f,0),t.lineTo(l-d,0),t.shadowColor=a.borderShadowColor,t.stroke(),ZU(t,0,f,u),ZU(t,l,-d,c),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,n){let r=O7t(t,n),{x:i,y:o,x2:s,y2:a}=r,l=iPt(r,t.chartArea),u=l?oPt({x:i,y:o},{x:s,y:a},t.chartArea):{x:i,y:o,x2:s,y2:a,width:Math.abs(s-i),height:Math.abs(a-o)};if(u.centerX=(s+i)/2,u.centerY=(a+o)/2,u.initProperties=ck(t,u,n),n.curve){let f={x:u.x,y:u.y},d={x:u.x2,y:u.y2};u.cp=fPt(u,n,em(f,d))}let c=aPt(t,u,n.label);return c._visible=l,u.elements=[{type:"label",optionScope:"label",properties:c,initProperties:u.initProperties}],u}};Oy.id="lineAnnotation";var Jke={backgroundColor:void 0,backgroundShadowColor:void 0,borderColor:void 0,borderDash:void 0,borderDashOffset:void 0,borderShadowColor:void 0,borderWidth:void 0,display:void 0,fill:void 0,length:void 0,shadowBlur:void 0,shadowOffsetX:void 0,shadowOffsetY:void 0,width:void 0};Oy.defaults={adjustScaleRange:!0,arrowHeads:{display:!1,end:Object.assign({},Jke),fill:!1,length:12,start:Object.assign({},Jke),width:6},borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:2,curve:!1,controlPoint:{y:"-50%"},display:!0,endValue:void 0,init:void 0,label:{backgroundColor:"rgba(0,0,0,0.8)",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderColor:"black",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:6,borderShadowColor:"transparent",borderWidth:0,callout:Object.assign({},Sy.defaults.callout),color:"#fff",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},scaleID:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,value:void 0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};Oy.descriptors={arrowHeads:{start:{_fallback:!0},end:{_fallback:!0},_fallback:!0}};Oy.defaultRoutes={borderColor:"color"};function rPt(e,{mouseX:t,mouseY:n},r,{hBorderWidth:i,useFinalPosition:o}){let s=nPt(t,n,e.getProps(["x","y","x2","y2"],o),r);return s.value>=s.start-i&&s.value<=s.end+i||YU(e,{mouseX:t,mouseY:n},o,r)}function iPt({x:e,y:t,x2:n,y2:r},{top:i,right:o,bottom:s,left:a}){return!(e<a&&n<a||e>o&&n>o||t<i&&r<i||t>s&&r>s)}function jke({x:e,y:t},n,{top:r,right:i,bottom:o,left:s}){return e<s&&(t=Dke(s,{x:e,y:t},n),e=s),e>i&&(t=Dke(i,{x:e,y:t},n),e=i),t<r&&(e=$U(r,{x:e,y:t},n),t=r),t>o&&(e=$U(o,{x:e,y:t},n),t=o),{x:e,y:t}}function oPt(e,t,n){let{x:r,y:i}=jke(e,t,n),{x:o,y:s}=jke(t,e,n);return{x:r,y:i,x2:o,y2:s,width:Math.abs(o-r),height:Math.abs(s-i)}}function sPt(e,{mouseX:t,mouseY:n},r=Ay,i){let{x:o,y:s,x2:a,y2:l}=e.getProps(["x","y","x2","y2"],i),u=a-o,c=l-s,f=uk(u)+uk(c),d=f===0?-1:((t-o)*u+(n-s)*c)/f,h,m;return d<0?(h=o,m=s):d>1?(h=a,m=l):(h=o+d*u,m=s+d*c),uk(t-h)+uk(n-m)<=r}function YU(e,{mouseX:t,mouseY:n},r,i){let o=e.label;return o.options.display&&o.inRange(t,n,i,r)}function aPt(e,t,n){let r=n.borderWidth,i=Vo(n.padding),o=iQ(e.ctx,n),s=o.width+i.width+r,a=o.height+i.height+r;return uPt(t,n,{width:s,height:a,padding:i},e.chartArea)}function lPt(e){let{x:t,y:n,x2:r,y2:i}=e,o=Math.atan2(i-n,r-t);return o>Hr/2?o-Hr:o<Hr/-2?o+Hr:o}function uPt(e,t,n,r){let{width:i,height:o,padding:s}=n,{xAdjust:a,yAdjust:l}=t,u={x:e.x,y:e.y},c={x:e.x2,y:e.y2},f=t.rotation==="auto"?lPt(e):As(t.rotation),d=cPt(i,o,f),h=dPt(e,t,{labelSize:d,padding:s},r),m=e.cp?KU(u,e.cp,c,h):aQ(u,c,h),g={size:d.w,min:r.left,max:r.right,padding:s.left},b={size:d.h,min:r.top,max:r.bottom,padding:s.top},v=Wke(m.x,g)+a,x=Wke(m.y,b)+l;return{x:v-i/2,y:x-o/2,x2:v+i/2,y2:x+o/2,centerX:v,centerY:x,pointX:m.x,pointY:m.y,width:i,height:o,rotation:xy(f)}}function cPt(e,t,n){let r=Math.cos(n),i=Math.sin(n);return{w:Math.abs(e*r)+Math.abs(t*i),h:Math.abs(e*i)+Math.abs(t*r)}}function dPt(e,t,n,r){let i,o=pPt(e,r);return t.position==="start"?i=Hke({w:e.x2-e.x,h:e.y2-e.y},n,t,o):t.position==="end"?i=1-Hke({w:e.x-e.x2,h:e.y-e.y2},n,t,o):i=tQ(1,t.position),i}function Hke(e,t,n,r){let{labelSize:i,padding:o}=t,s=e.w*r.dx,a=e.h*r.dy,l=s>0&&(i.w/2+o.left-r.x)/s,u=a>0&&(i.h/2+o.top-r.y)/a;return zF(Math.max(l,u),0,.25)}function pPt(e,t){let{x:n,x2:r,y:i,y2:o}=e,s=Math.min(i,o)-t.top,a=Math.min(n,r)-t.left,l=t.bottom-Math.max(i,o),u=t.right-Math.max(n,r);return{x:Math.min(a,u),y:Math.min(s,l),dx:a<=u?1:-1,dy:s<=l?1:-1}}function Wke(e,t){let{size:n,min:r,max:i,padding:o}=t,s=n/2;return n>i-r?(i+r)/2:(r>=e-o-s&&(e=r+o+s),i<=e+o+s&&(e=i-o-s),e)}function c9e(e){let t=e.options,n=t.arrowHeads&&t.arrowHeads.start,r=t.arrowHeads&&t.arrowHeads.end;return{startOpts:n,endOpts:r,startAdjust:Xke(e,n),endAdjust:Xke(e,r)}}function Xke(e,t){if(!t||!t.display)return 0;let{length:n,width:r}=t,i=e.options.borderWidth/2,o={x:n,y:r+i};return Math.abs($U(0,o,{x:0,y:i}))}function ZU(e,t,n,r){if(!r||!r.display)return;let{length:i,width:o,fill:s,backgroundColor:a,borderColor:l}=r,u=Math.abs(t-i)+n;e.beginPath(),H4(e,r),tv(e,r),e.moveTo(u,-o),e.lineTo(t+n,0),e.lineTo(u,o),s===!0?(e.fillStyle=a||l,e.closePath(),e.fill(),e.shadowColor="transparent"):e.shadowColor=r.borderShadowColor,e.stroke()}function fPt(e,t,n){let{x:r,y:i,x2:o,y2:s,centerX:a,centerY:l}=e,u=Math.atan2(s-i,o-r),c=nQ(t.controlPoint,0),f={x:a+ev(n,c.x,!1),y:l+ev(n,c.y,!1)};return My(f,{x:a,y:l},u)}function qke(e,{x:t,y:n},{angle:r,adjust:i},o){!o||!o.display||(e.save(),e.translate(t,n),e.rotate(r),ZU(e,0,-i,o),e.restore())}function hPt(e,t,n,r){let{x:i,y:o,x2:s,y2:a,options:l}=t,{startOpts:u,endOpts:c,startAdjust:f,endAdjust:d}=c9e(t),h={x:i,y:o},m={x:s,y:a},g=Vke(h,n,m,0),b=Vke(h,n,m,1)-Hr,v=KU(h,n,m,f/r),x=KU(h,n,m,1-d/r),y=new Path2D;e.beginPath(),y.moveTo(v.x,v.y),y.quadraticCurveTo(n.x,n.y,x.x,x.y),e.shadowColor=l.borderShadowColor,e.stroke(y),t.path=y,t.ctx=e,qke(e,v,{angle:g,adjust:f},u),qke(e,x,{angle:b,adjust:d},c)}var Ey=class extends Xs{inRange(t,n,r,i){let o=this.options.rotation,s=this.options.borderWidth;if(r!=="x"&&r!=="y")return mPt({x:t,y:n},this.getProps(["width","height","centerX","centerY"],i),o,s);let{x:a,y:l,x2:u,y2:c}=this.getProps(["x","y","x2","y2"],i),f=s/2,d=r==="y"?{start:l,end:c}:{start:a,end:u},h=My({x:t,y:n},this.getCenterPoint(i),As(-o));return h[r]>=d.start-f-Ay&&h[r]<=d.end+f+Ay}getCenterPoint(t){return j4(this,t)}draw(t){let{width:n,height:r,centerX:i,centerY:o,options:s}=this;t.save(),rQ(t,this.getCenterPoint(),s.rotation),H4(t,this.options),t.beginPath(),t.fillStyle=s.backgroundColor;let a=tv(t,s);t.ellipse(i,o,r/2,n/2,Hr/2,0,2*Hr),t.fill(),a&&(t.shadowColor=s.borderShadowColor,t.stroke()),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,n){return s9e(t,n)}};Ey.id="ellipseAnnotation";Ey.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,label:Object.assign({},nv.defaults.label),rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};Ey.defaultRoutes={borderColor:"color",backgroundColor:"color"};Ey.descriptors={label:{_fallback:!0}};function mPt(e,t,n,r){let{width:i,height:o,centerX:s,centerY:a}=t,l=i/2,u=o/2;if(l<=0||u<=0)return!1;let c=As(n||0),f=r/2||0,d=Math.cos(c),h=Math.sin(c),m=Math.pow(d*(e.x-s)+h*(e.y-a),2),g=Math.pow(h*(e.x-s)-d*(e.y-a),2);return m/Math.pow(l+f,2)+g/Math.pow(u+f,2)<=1.0001}var V4=class extends Xs{inRange(t,n,r,i){let{x:o,y:s,x2:a,y2:l,width:u}=this.getProps(["x","y","x2","y2","width"],i),c=this.options.borderWidth;if(r!=="x"&&r!=="y")return f7t({x:t,y:n},this.getCenterPoint(i),u/2,c);let f=c/2,d=r==="y"?{start:s,end:l,value:n}:{start:o,end:a,value:t};return d.value>=d.start-f&&d.value<=d.end+f}getCenterPoint(t){return j4(this,t)}draw(t){let n=this.options,r=n.borderWidth;if(n.radius<.1)return;t.save(),t.fillStyle=n.backgroundColor,H4(t,n);let i=tv(t,n);w7t(t,this,this.centerX,this.centerY),i&&!TF(n.pointStyle)&&(t.shadowColor=n.borderShadowColor,t.stroke()),t.restore(),n.borderWidth=r}resolveElementProperties(t,n){let r=o9e(t,n);return r.initProperties=ck(t,r,n),r}};V4.id="pointAnnotation";V4.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,pointStyle:"circle",radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};V4.defaultRoutes={borderColor:"color",backgroundColor:"color"};var J4=class extends Xs{inRange(t,n,r,i){if(r!=="x"&&r!=="y")return this.options.radius>=.1&&this.elements.length>1&&vPt(this.elements,t,n,i);let o=My({x:t,y:n},this.getCenterPoint(i),As(-this.options.rotation)),s=this.elements.map(u=>r==="y"?u.bY:u.bX),a=Math.min(...s),l=Math.max(...s);return o[r]>=a&&o[r]<=l}getCenterPoint(t){return j4(this,t)}draw(t){let{elements:n,options:r}=this;t.save(),t.beginPath(),t.fillStyle=r.backgroundColor,H4(t,r);let i=tv(t,r),o=!0;for(let s of n)o?(t.moveTo(s.x,s.y),o=!1):t.lineTo(s.x,s.y);t.closePath(),t.fill(),i&&(t.shadowColor=r.borderShadowColor,t.stroke()),t.restore()}resolveElementProperties(t,n){let r=o9e(t,n),{sides:i,rotation:o}=n,s=[],a=2*Hr/i,l=o*TP;for(let u=0;u<i;u++,l+=a){let c=gPt(r,n,l);c.initProperties=ck(t,r,n),s.push(c)}return r.elements=s,r}};J4.id="polygonAnnotation";J4.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,point:{radius:0},radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,sides:3,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};J4.defaultRoutes={borderColor:"color",backgroundColor:"color"};function gPt({centerX:e,centerY:t},{radius:n,borderWidth:r},i){let o=r/2,s=Math.sin(i),a=Math.cos(i),l={x:e+s*n,y:t-a*n};return{type:"point",optionScope:"point",properties:{x:l.x,y:l.y,centerX:l.x,centerY:l.y,bX:e+s*(n+o),bY:t-a*(n+o)}}}function vPt(e,t,n,r){let i=!1,o=e[e.length-1].getProps(["bX","bY"],r);for(let s of e){let a=s.getProps(["bX","bY"],r);a.bY>n!=o.bY>n&&t<(o.bX-a.bX)*(n-a.bY)/(o.bY-a.bY)+a.bX&&(i=!i),o=a}return i}var Qg={box:nv,ellipse:Ey,label:Sy,line:Oy,point:V4,polygon:J4};Object.keys(Qg).forEach(e=>{mo.describe(`elements.${Qg[e].id}`,{_fallback:"plugins.annotation.common"})});var yPt={update:Object.assign},xPt=sQ.concat(IF),$ke=(e,t)=>$n(t)?QU(e,t):e,UU=e=>e==="color"||e==="font";function lQ(e="line"){return Qg[e]?e:(console.warn(`Unknown annotation type: '${e}', defaulting to 'line'`),"line")}function _Pt(e,t,n,r){let i=wPt(e,n.animations,r),o=t.annotations,s=APt(t.elements,o);for(let a=0;a<o.length;a++){let l=o[a],u=d9e(s,a,l.type),c=l.setContext(kPt(e,u,l)),f=u.resolveElementProperties(e,c);f.skip=bPt(f),"elements"in f&&(PPt(u,f.elements,c,i),delete f.elements),rl(u.x)||Object.assign(u,f),Object.assign(u,f.initProperties),f.options=p9e(c),i.update(u,f)}}function bPt(e){return isNaN(e.x)||isNaN(e.y)}function wPt(e,t,n){return n==="reset"||n==="none"||n==="resize"?yPt:new I4(e,t)}function PPt(e,t,n,r){let i=e.elements||(e.elements=[]);i.length=t.length;for(let o=0;o<t.length;o++){let s=t[o],a=s.properties,l=d9e(i,o,s.type,s.initProperties),u=n[s.optionScope].override(s);a.options=p9e(u),r.update(l,a)}}function d9e(e,t,n,r){let i=Qg[lQ(n)],o=e[t];return(!o||!(o instanceof i))&&(o=e[t]=new i,Object.assign(o,r)),o}function p9e(e){let t=Qg[lQ(e.type)],n={};n.id=e.id,n.type=e.type,n.drawTime=e.drawTime,Object.assign(n,QU(e,t.defaults),QU(e,t.defaultRoutes));for(let r of xPt)n[r]=e[r];return n}function QU(e,t){let n={};for(let r of Object.keys(t)){let i=t[r],o=e[r];UU(r)&&oi(o)?n[r]=o.map(s=>$ke(s,i)):n[r]=$ke(o,i)}return n}function kPt(e,t,n){return t.$context||(t.$context=Object.assign(Object.create(e.getContext()),{element:t,id:n.id,type:"annotation"}))}function APt(e,t){let n=t.length,r=e.length;if(r<n){let i=n-r;e.splice(r,0,...new Array(i))}else r>n&&e.splice(n,r-n);return e}var CPt="3.0.1",Ug=new Map,SPt=sQ.concat(IF),f9e={id:"annotation",version:CPt,beforeRegister(){h7t("chart.js","4.0",vo.version)},afterRegister(){vo.register(Qg)},afterUnregister(){vo.unregister(Qg)},beforeInit(e){Ug.set(e,{annotations:[],elements:[],visibleElements:[],listeners:{},listened:!1,moveListened:!1,hooks:{},hooked:!1,hovered:[]})},beforeUpdate(e,t,n){let r=Ug.get(e),i=r.annotations=[],o=n.annotations;$n(o)?Object.keys(o).forEach(s=>{let a=o[s];$n(a)&&(a.id=s,i.push(a))}):oi(o)&&i.push(...o),V7t(i,e.scales)},afterDataLimits(e,t){let n=Ug.get(e);L7t(e,t.scale,n.annotations.filter(r=>r.display&&r.adjustScaleRange))},afterUpdate(e,t,n){let r=Ug.get(e);I7t(e,r,n),_Pt(e,r,n,t.mode),r.visibleElements=r.elements.filter(i=>!i.skip&&i.options.display),R7t(e,r,n)},beforeDatasetsDraw(e,t,n){GF(e,"beforeDatasetsDraw",n.clip)},afterDatasetsDraw(e,t,n){GF(e,"afterDatasetsDraw",n.clip)},beforeDraw(e,t,n){GF(e,"beforeDraw",n.clip)},afterDraw(e,t,n){GF(e,"afterDraw",n.clip)},beforeEvent(e,t,n){let r=Ug.get(e);z7t(r,t.event,n)&&(t.changed=!0)},afterDestroy(e){Ug.delete(e)},_getState(e){return Ug.get(e)},defaults:{animations:{numbers:{properties:["x","y","x2","y2","width","height","centerX","centerY","pointX","pointY","radius"],type:"number"}},clip:!0,interaction:{mode:void 0,axis:void 0,intersect:void 0},common:{drawTime:"afterDatasetsDraw",init:!1,label:{}}},descriptors:{_indexable:!1,_scriptable:e=>!SPt.includes(e)&&e!=="init",annotations:{_allKeys:!1,_fallback:(e,t)=>`elements.${Qg[lQ(t.type)].id}`},interaction:{_fallback:!0},common:{label:{_indexable:UU,_fallback:!0},_indexable:UU}},additionalOptionScopes:[""]};function GF(e,t,n){let{ctx:r,chartArea:i}=e,o=Ug.get(e);n&&Xg(r,i);let s=OPt(o.visibleElements,t).sort((a,l)=>a.element.options.z-l.element.options.z);for(let a of s)EPt(r,i,o,a);n&&qg(r)}function OPt(e,t){let n=[];for(let r of e)if(r.options.drawTime===t&&n.push({element:r,main:!0}),r.elements&&r.elements.length)for(let i of r.elements)i.options.display&&i.options.drawTime===t&&n.push({element:i});return n}function EPt(e,t,n,r){let i=r.element;r.main?(Fke(n,i,"beforeDraw"),i.draw(e,t),Fke(n,i,"afterDraw")):i.draw(e,t)}var dk=ie(Xa());vo.register(jd,gu,il,Vc,Hd,D4,Zg,T4,f9e);var MPt=e=>{let[t,n]=(0,er.useState)(null),[r,i]=(0,er.useState)(null),[o,s]=(0,er.useState)(null),[a,l]=(0,er.useState)(null),[u,c]=(0,er.useState)(null),[f,d]=(0,er.useState)(null),[h,m]=(0,er.useState)(0),[g,b]=(0,er.useState)(-1),v=er.default.createRef(),x=()=>{if(e.data&&e.data.trend&&e.data.current&&e.data.current.numLeads){let k=e.data.trend,O=e.data.opportunity_trend,M=Object.keys(k),I=[],W=[],J=[],H=[],ee=[],j=[];for(let B in k){let N=k[B];I.push(N.num_ctas||0),W.push(N.num_leads||0),J.push(N.num_visits||0),H.push(N.conversion_rate*100||0),ee.push(N.activation_rate*100||0),O&&O[B]?j.push(O[B]):j.push(0)}let V=[];e.data.changes&&(V=Object.keys(e.data.changes).map(B=>{let N=e.data.changes[B],C=`${N.length} change${N.length>1?"s":""} made. Click for details.`,S=N.map(G=>{let T=G.attribute,Q=G.event,U=G.new_value,F=G.old_value,D=`<b>${T}</b>`;return D+=` changed from '${F}' to '${U}'`,D}).join("<br>");return{x:B,y:50,tooltip:C,summary:S,changes:N}})),V=V.filter(B=>(0,dk.default)(B.x).isSameOrAfter((0,dk.default)(M[0]))),n(M),i(H),s(ee),l(j),c(V),d(V.length>0?V[V.length-1]:null)}};(0,er.useEffect)(()=>{x()},[e]);let y=(k,O)=>{if(O.length>0){let M=O[0].index;m(0),d(u[M]),b(M)}else m(0),b(null),d(null)},_=()=>{m(k=>k-1)},w=()=>{m(k=>k+1)};return er.default.createElement(er.default.Fragment,null,er.default.createElement("div",{className:"flex flex-col"},er.default.createElement("div",{className:"border-gray-200 pt-4 pb-4"},er.default.createElement("p",{className:"mt-2 text-sm text-gray-500"},"The Instant Change Log shows you the changes made to your Instant Landing Page over time and how it has impacted your Conversion % and Activation %. You can click on any one of the changes to see exactly what you changed."))),er.default.createElement("div",{className:"mt-4 flex w-full"},er.default.createElement("div",{className:`${f?"w-2/3":"w-full"} pr-2`},er.default.createElement(kF,{ref:v,data:{labels:t,datasets:[{label:"Conversion Rate",data:r,borderWidth:4,lineTension:.5,borderColor:"red",backgroundColor:"red",pointRadius:0,hoverRadius:0,yAxisID:"y-left"},{label:"Activation Rate",data:o,borderWidth:2,lineTension:.5,borderColor:"orange",backgroundColor:"orange",pointRadius:0,hoverRadius:0,yAxisID:"y-left"},{label:"Changes",data:u,hoverRadius:10,pointRadius:k=>(k.dataIndex===g,10),backgroundColor:"blue",borderWidth:k=>k.dataIndex===g?2:0,borderColor:"blue",pointBackgroundColor:k=>k.dataIndex===g?"rgba(102, 204, 255, 0.5)":"blue",zIndex:1,cursor:"pointer",yAxisID:"y-left"},{type:"bar",label:"Number of Opportunities",data:a,borderWidth:2,lineTension:.5,borderColor:"rgba(144, 238, 144, 1)",backgroundColor:"rgba(144, 238, 144, 1)",pointRadius:0,hoverRadius:0,yAxisID:"y-right"}]},options:{onClick:y,animation:!1,plugins:{datalabels:{display:!1},title:{display:!1},legend:{display:!0,position:"bottom"},annotation:{annotations:u&&u.map(k=>({type:"line",mode:"vertical",scaleID:"x",value:k.x,borderColor:"rgba(102, 204, 255, 0.5)",borderWidth:2}))},tooltip:{enabled:!0,intersect:!1,mode:"nearest",callbacks:{title:function(k){let M=k[0].label;return(0,dk.default)(M).format("MMMM Do, YYYY")},label:function(k){let O=k,M=O.dataset.data[O.dataIndex];return O.datasetIndex===0||O.datasetIndex===1?`${M.toFixed(0)}% ${O.dataset.label}`:O.datasetIndex===3?`${M} Opportunities`:M.tooltip}},padding:16,backgroundColor:"rgba(255, 255, 255, 0.9)",titleColor:"rgba(0, 0, 0, 0.8)",bodyColor:"rgba(0, 0, 0, 0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},displayColors:!1,cornerRadius:8,borderWidth:1,borderColor:"rgba(0, 0, 0, 0.2)",yAlign:"bottom",xAlign:"left",titleAlign:"left",bodyAlign:"left",xPadding:20,yPadding:20}},scales:{x:{type:"time",time:{displayFormats:{day:"MMM D, YYYY"}}},"y-left":{type:"linear",display:!0,position:"left",id:"y-left",beginAtZero:!0,max:100,ticks:{callback:function(k){return k+"%"}},grid:{drawOnChartArea:!1}},"y-right":{type:"linear",display:!0,position:"right",id:"y-right",beginAtZero:!0,ticks:{stepSize:1,callback:function(k){return Math.round(k)}},grid:{drawOnChartArea:!0,color:"rgba(144, 238, 144, 0.2)"},color:"rgba(144, 238, 144, 0.2)"}},gridLines:{color:"lightgray"}}})),f&&f.changes.length>0&&er.default.createElement("div",{className:"w-1/3 pl-4 pr-4 overflow-y-auto border-l border-gray-200"},er.default.createElement("nav",{className:"flex items-center justify-between border-b border-gray-200 px-4 sm:px-0 mb-6"},er.default.createElement("div",{className:"-mt-px flex w-0 flex-1"},er.default.createElement("button",{className:"inline-flex items-center border-b-2 border-transparent pr-1 pb-4 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700",onClick:_,disabled:h===0},er.default.createElement(vd,{className:"mr-3 h-5 w-5 text-gray-400","aria-hidden":"true"}))),er.default.createElement("div",{className:"flex flex-col text-xs text-center items-center"},er.default.createElement("span",{className:"text-center font-bold block"},"Changes Made on"," ",(0,dk.default)(f.x).format("MMMM Do, YYYY")),er.default.createElement("span",{className:"block"},"#",h+1," of ",f.changes.length)),er.default.createElement("div",{className:"-mt-px flex w-0 flex-1 justify-end"},er.default.createElement("button",{className:"inline-flex items-center border-b-2 border-transparent pl-1 pb-4 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700",onClick:w,disabled:h===f.changes.length-1},er.default.createElement(Vu,{className:"ml-3 h-5 w-5 text-gray-400","aria-hidden":"true"})))),er.default.createElement("div",{className:"overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg mb-6"},er.default.createElement("table",{className:"min-w-full table-fixed divide-y divide-gray-300 text-xs px-2 py-6 text-xs"},er.default.createElement("tbody",{className:"divide-y divide-gray-300"},er.default.createElement("tr",null,er.default.createElement("td",{className:"px-3 py-4 text-gray-500 w-1/4"},"Field"),er.default.createElement("td",{className:"px-3 py-4 text-gray-800 break-word"},f.changes[h].attribute)),er.default.createElement("tr",null,er.default.createElement("td",{className:"px-3 py-4 text-gray-500 w-1/4"},"Old"),er.default.createElement("td",{className:"px-3 py-4 text-gray-800 break-word"},JSON.stringify(f.changes[h].old_value))),er.default.createElement("tr",null,er.default.createElement("td",{className:"px-3 py-4 text-gray-500 w-1/4"},"New"),er.default.createElement("td",{className:"px-3 py-4 text-gray-800 break-word"},JSON.stringify(f.changes[h].new_value)))))))))},h9e=MPt;var o9n=ie(fu()),BPt=e=>{let[t,n]=(0,mr.useState)(null),[r,i]=(0,mr.useState)(null),[o,s]=(0,mr.useState)(null),[a,l]=(0,mr.useState)(null),[u,c]=(0,mr.useState)("overall"),[f,d]=(0,mr.useState)(null),[h,m]=(0,mr.useState)(null),[g,b]=(0,mr.useState)(null),[v,x]=(0,mr.useState)(null),[y,_]=(0,mr.useState)(null),[w,k]=(0,mr.useState)(0),[O,M]=(0,mr.useState)(-1),I=()=>{let V=["overall","acquisition","activation","pipeline","revenue"],N=V.indexOf(u)+1;N>=V.length&&(N=0),J(V[N])},W=V=>{J(V)},J=V=>{e.planSupportsFeature?c(V):alert("You need to upgrade to the Instant PRO plan to use this feature.")},H=(V,B,N,C,S)=>({name:V,status:B,description:B?N:C,url:S}),ee=V=>{if(V&&V.current.num_leads_by_traffic_source!=null){let B=0,N="";for(let[C,S]of Object.entries(V.current.num_leads_by_traffic_source))S>B&&(B=S,N=C);return{maxSource:N,maxLeads:B}}else return{maxSource:"N/A",maxLeads:"N/A"}},j=()=>{if(!e.data||!e.data.trend||!e.data.current||!e.data.current.numLeads)return;let V=e.page,B=e.data,N=ee(B),C={"Data Optimization":[{...H("ICP Fields",V.stages!=null&&V.stages.length>0,"Great Job! you're using ICP fields.","You're not using ICP fields. Consider adding ICP fields to your form to get a better understanding of your lead quality.",`/builder/${V.id}/2`)},{...H("Pipeline Tracking",B.current.numOpportunities!=null&&B.current.numOpportunities>0,"Great Job! you're tracking pipeline.","You're not tracking pipeline. Consider adding pipeline tracking to your form to get a better understanding of your lead quality.","zapier")},{...H("Revenue Tracking",B.current.totalRevenue!=null&&B.current.totalRevenue>0,"Great Job! you're tracking revenue.","You're not tracking revenue. Consider adding revenue tracking to your form to get a better understanding of your lead quality.","zapier")}],"Traffic Optimization":[{...H("Multiple Traffic Sources",Object.keys(B.current.num_leads_by_traffic_source).length>3,"Great job! You're using atleast 3 different traffic sources to generate leads.","You're not using multiple traffic sources. Consider diversifying your traffic sources.","gtm")},{...H("Double Down on Best Traffic Source",B.current.num_leads_by_traffic_source!=null,`${N.maxSource} is the best traffic source with ${N.maxLeads} leads being generated. You should consider doubling down on this traffic source.`,"Not enough traffic sources to determine the best one. Work to diversify your traffic sources.")}],"Conversion Optimization":[{...H("Title Ideas",B.current.conversion>=20,"Great job! Your conversion rate is above the 20% benchmark.","Your conversion rate is below the 20% benchmark. Check out the alternative title ideas we have for your Lead Magnet.",`/builder/${V.id}`)},{...H("Credibility Builder Ideas",B.current.conversion>=20,"Great job! Your conversion rate is above the 20% benchmark.","Your conversion rate is below the 20% benchmark. Check out the alternative credibility builders we have for your Lead Magnet.",`/builder/${V.id}/2`)},{...H("What They Get Ideas",B.current.conversion>=20,"Great job! Your conversion rate is above the 20% benchmark.","Your conversion rate is below the 20% benchmark. Check out the alternative 'What They Get' ideas we have for your Lead Magnet.",`/builder/${V.id}/2`)},{...H("Business Email Only",V.business_email_only,"Great job! You're only collecting business emails.","You're collecting personal emails. Consider changing your form to only collect business emails.",`/builder/${V.id}/2`)}],"Activation Optimization":[{...H("Value Proposition",B.current.activation>20,"Great job! Your activation rate is above the 20% benchmark.","Your activation rate is below the 20% benchmark. Check out the alternative value propositions we have for your Lead Magnet.",`/builder/${V.id}/3`)},{...H("Lead Magnet/Manifesto Quality",B.current.avgEngagement>.7,"Great job! Your Lead Magnet is high quality.","Your Lead Magnet is low quality. Consider building a better Manifesto.","gtm")},{...H("Email Nurture Sequence",B.current.numOpportunities/B.current.numLeads>.1,"Great job! You're converting more than 10% of your leads to pipeline.","You're converting less than 10% of your leads to pipeline. Consider building an email nurture sequence.","gtm")},{...H("Retarget Your Leads",B.current.numOpportunities/B.current.numLeads>.05,"Great job! You're converting more than 10% of your leads to pipeline.","You're converting less than 10% of your leads to pipeline. Consider retargeting your leads with a quality AD for driving to your call to action.","gtm")},{...H("Collect Mobile Phone Number",V.collect_phone,"Great job! You're collecting mobile phone numbers. Consider calling them to follow up on their lead magnet download.","You're not collecting mobile phone numbers. Consider adding a mobile phone number field to your form so you can follow up with them.","gtm")}]},S=Object.values(C).flat().reduce((T,Q)=>T+(Q.status?1:0),0)/Object.values(C).flat().length||0;i(S),n(C);let G={winRate:B.current.numOpportunitiesWon/B.current.numOpportunities,pipelineRate:B.current.numOpportunities/B.current.numLeads,activationRate:B.current.activation/100,numLeads:B.current.numLeads,numICPLeads:B.current.numICPLeads,score:S};if(l(G),e.data&&e.data.trend){let T=e.data.trend,Q=Object.keys(T),U=[],F=[],D=[],L=[],$=[];for(let se in T){let Y=T[se];U.push(Y.num_ctas||0),F.push(Y.num_leads||0),D.push(Y.num_visits||0),L.push(Y.conversion_rate*100||0),$.push(Y.activation_rate*100||0)}let Z=[];e.data.changes&&(Z=Object.keys(e.data.changes).map(se=>{let Y=e.data.changes[se],ue=`${Y.length} change${Y.length>1?"s":""} made. Click for details.`,pe=Y.map(oe=>{let de=oe.attribute,ve=oe.event,Ae=oe.new_value,Ce=oe.old_value,Ge=`<b>${de}</b>`;return Ge+=` changed from '${Ce}' to '${Ae}'`,Ge}).join("<br>");return{x:se,y:50,tooltip:ue,summary:pe,changes:Y}})),d(Q),m(L),b($),x(Z),_(Z.length>0?Z[Z.length-1]:null)}};return(0,mr.useEffect)(()=>{j()},[e]),mr.default.createElement(mr.default.Fragment,null,mr.default.createElement("div",{className:"container mt-8 w-full"},mr.default.createElement("div",{className:"flex"},mr.default.createElement("div",{className:"w-[300px]"},a&&mr.default.createElement(kke,{engineData:a,focusArea:u,handleFocusChange:W})),mr.default.createElement("div",{className:"flex-1 w-2/3 pl-4 overflow-y-hidden"},a&&mr.default.createElement(Eke,{flywheelData:a,rawStats:e.data,insights:o,focusArea:u,nextCardHandler:I}))),e.planSupportsFeature?mr.default.createElement(mr.default.Fragment,null,mr.default.createElement(h9e,{data:e.data}),mr.default.createElement("div",{className:"flex flex-col"},mr.default.createElement("div",{className:"border-gray-200 pt-4 pb-4"},mr.default.createElement("p",{className:"mt-2 text-sm text-gray-500"},"The Instant Page Grader does a 12-point analysis on your overall Instant data to help you optmize your Instant page. There are many components that go into the success of your GTM Machine and each of these cards will highlight exactly what you're doing right (or wrong) to drive quality pipeline and revenues through your Instant Landing Page."))),t&&Object.keys(t).map(V=>mr.default.createElement("div",{key:V,className:"pb-4 mt-4"},mr.default.createElement("h2",{className:"text-md font-bold mb-4 text-gray-600"},V),mr.default.createElement("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2"},t[V].map((B,N)=>mr.default.createElement("div",{key:N,className:"bg-white p-4 shadow rounded"},mr.default.createElement("span",{className:"w-4 float-left mr-12 mb-20"},B.status?mr.default.createElement(fJ,{className:"w-8 h-8 text-green-500"}):mr.default.createElement(CJ,{className:"w-8 h-8 text-red-500"})),mr.default.createElement("p",{className:"text-sm font-bold mb-2"},B.name),mr.default.createElement("p",{className:"text-sm mb-4"},B.description),!B.status&&B.url=="gtm"&&mr.default.createElement("button",{className:"rounded bg-white px-2 py-1 text-xs font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",onClick:()=>{window.open("https://www.getunstoppable.com/gtm?utm_source=instant&utm_medium=optimize","_blank")}},"Learn More about the GTM Program"),!B.status&&B.url!="gtm"&&mr.default.createElement("a",{href:B.url=="zapier"?"https://zapier.com/developer/public-invite/171591/13921d96c8dc31ff4e8ce723dda5b75b/":B.url,target:B.target||"_self",rel:"noopener noreferrer",className:"text-blue-500 underline text-sm"},"Details"))))))):mr.default.createElement("div",{className:"block mb-4 border-gray-200"},"\xA0")))},m9e=BPt;var _5=ie(Pe());var At=ie(St()),lt=ie(Pe());function Fl(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let n=0,r;n<e.length;n++)(r=Fl(e[n]))!==""&&(t+=(t&&" ")+r);else for(let n in e)e[n]&&(t+=(t&&" ")+n);return t}var v9e={},g9e=e=>{let t,n=new Set,r=(l,u)=>{let c=typeof l=="function"?l(t):l;if(!Object.is(c,t)){let f=t;t=u??typeof c!="object"?c:Object.assign({},t,c),n.forEach(d=>d(t,f))}},i=()=>t,a={setState:r,getState:i,subscribe:l=>(n.add(l),()=>n.delete(l)),destroy:()=>{(v9e.env&&v9e.env.MODE)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,i,a),a},y9e=e=>e?g9e(e):g9e;var S9e=ie(Pe(),1),O9e=ie(C9e(),1);var{useSyncExternalStoreWithSelector:KPt}=O9e.default;function E9e(e,t=e.getState,n){let r=KPt(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,S9e.useDebugValue)(r),r}function sl(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(let[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(let r of e)if(!t.has(r))return!1;return!0}let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}var YPt={value:()=>{}};function B9e(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new RF(n)}function RF(e){this._=e}function ZPt(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=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}})}RF.prototype=B9e.prototype={constructor:RF,on:function(e,t){var n=this._,r=ZPt(e+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((i=(e=r[o]).type)&&(i=UPt(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++o<s;)if(i=(e=r[o]).type)n[i]=M9e(n[i],e.name,t);else if(t==null)for(i in n)n[i]=M9e(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new RF(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],r=0,i=o.length;r<i;++r)o[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};function UPt(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function M9e(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=YPt,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var By=B9e;var LF="http://www.w3.org/1999/xhtml",cQ={svg:"http://www.w3.org/2000/svg",xhtml:LF,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function dm(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),cQ.hasOwnProperty(t)?{space:cQ[t],local:e}:e}function QPt(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===LF&&t.documentElement.namespaceURI===LF?t.createElement(e):t.createElementNS(n,e)}}function ekt(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function VF(e){var t=dm(e);return(t.local?ekt:QPt)(t)}function tkt(){}function Ny(e){return e==null?tkt:function(){return this.querySelector(e)}}function N9e(e){typeof e!="function"&&(e=Ny(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],s=o.length,a=r[i]=new Array(s),l,u,c=0;c<s;++c)(l=o[c])&&(u=e.call(l,l.__data__,c,o))&&("__data__"in l&&(u.__data__=l.__data__),a[c]=u);return new Cs(r,this._parents)}function dQ(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function nkt(){return[]}function pk(e){return e==null?nkt:function(){return this.querySelectorAll(e)}}function rkt(e){return function(){return dQ(e.apply(this,arguments))}}function G9e(e){typeof e=="function"?e=rkt(e):e=pk(e);for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var s=t[o],a=s.length,l,u=0;u<a;++u)(l=s[u])&&(r.push(e.call(l,l.__data__,u,s)),i.push(l));return new Cs(r,i)}function fk(e){return function(){return this.matches(e)}}function JF(e){return function(t){return t.matches(e)}}var ikt=Array.prototype.find;function okt(e){return function(){return ikt.call(this.children,e)}}function skt(){return this.firstElementChild}function F9e(e){return this.select(e==null?skt:okt(typeof e=="function"?e:JF(e)))}var akt=Array.prototype.filter;function lkt(){return Array.from(this.children)}function ukt(e){return function(){return akt.call(this.children,e)}}function I9e(e){return this.selectAll(e==null?lkt:ukt(typeof e=="function"?e:JF(e)))}function z9e(e){typeof e!="function"&&(e=fk(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],s=o.length,a=r[i]=[],l,u=0;u<s;++u)(l=o[u])&&e.call(l,l.__data__,u,o)&&a.push(l);return new Cs(r,this._parents)}function jF(e){return new Array(e.length)}function T9e(){return new Cs(this._enter||this._groups.map(jF),this._parents)}function hk(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}hk.prototype={constructor:hk,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function D9e(e){return function(){return e}}function ckt(e,t,n,r,i,o){for(var s=0,a,l=t.length,u=o.length;s<u;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new hk(e,o[s]);for(;s<l;++s)(a=t[s])&&(i[s]=a)}function dkt(e,t,n,r,i,o,s){var a,l,u=new Map,c=t.length,f=o.length,d=new Array(c),h;for(a=0;a<c;++a)(l=t[a])&&(d[a]=h=s.call(l,l.__data__,a,t)+"",u.has(h)?i[a]=l:u.set(h,l));for(a=0;a<f;++a)h=s.call(e,o[a],a,o)+"",(l=u.get(h))?(r[a]=l,l.__data__=o[a],u.delete(h)):n[a]=new hk(e,o[a]);for(a=0;a<c;++a)(l=t[a])&&u.get(d[a])===l&&(i[a]=l)}function pkt(e){return e.__data__}function R9e(e,t){if(!arguments.length)return Array.from(this,pkt);var n=t?dkt:ckt,r=this._parents,i=this._groups;typeof e!="function"&&(e=D9e(e));for(var o=i.length,s=new Array(o),a=new Array(o),l=new Array(o),u=0;u<o;++u){var c=r[u],f=i[u],d=f.length,h=fkt(e.call(c,c&&c.__data__,u,r)),m=h.length,g=a[u]=new Array(m),b=s[u]=new Array(m),v=l[u]=new Array(d);n(c,f,g,b,v,h,t);for(var x=0,y=0,_,w;x<m;++x)if(_=g[x]){for(x>=y&&(y=x+1);!(w=b[y])&&++y<m;);_._next=w||null}}return s=new Cs(s,r),s._enter=a,s._exit=l,s}function fkt(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function L9e(){return new Cs(this._exit||this._groups.map(jF),this._parents)}function V9e(e,t,n){var r=this.enter(),i=this,o=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function J9e(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,o=r.length,s=Math.min(i,o),a=new Array(i),l=0;l<s;++l)for(var u=n[l],c=r[l],f=u.length,d=a[l]=new Array(f),h,m=0;m<f;++m)(h=u[m]||c[m])&&(d[m]=h);for(;l<i;++l)a[l]=n[l];return new Cs(a,this._parents)}function j9e(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,o=r[i],s;--i>=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function H9e(e){e||(e=hkt);function t(f,d){return f&&d?e(f.__data__,d.__data__):!f-!d}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var s=n[o],a=s.length,l=i[o]=new Array(a),u,c=0;c<a;++c)(u=s[c])&&(l[c]=u);l.sort(t)}return new Cs(i,this._parents).order()}function hkt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function W9e(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function X9e(){return Array.from(this)}function q9e(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null}function $9e(){let e=0;for(let t of this)++e;return e}function K9e(){return!this.node()}function Y9e(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],o=0,s=i.length,a;o<s;++o)(a=i[o])&&e.call(a,a.__data__,o,i);return this}function mkt(e){return function(){this.removeAttribute(e)}}function gkt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function vkt(e,t){return function(){this.setAttribute(e,t)}}function ykt(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function xkt(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function _kt(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Z9e(e,t){var n=dm(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?gkt:mkt:typeof t=="function"?n.local?_kt:xkt:n.local?ykt:vkt)(n,t))}function HF(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function bkt(e){return function(){this.style.removeProperty(e)}}function wkt(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Pkt(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function U9e(e,t,n){return arguments.length>1?this.each((t==null?bkt:typeof t=="function"?Pkt:wkt)(e,t,n??"")):rv(this.node(),e)}function rv(e,t){return e.style.getPropertyValue(t)||HF(e).getComputedStyle(e,null).getPropertyValue(t)}function kkt(e){return function(){delete this[e]}}function Akt(e,t){return function(){this[e]=t}}function Ckt(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Q9e(e,t){return arguments.length>1?this.each((t==null?kkt:typeof t=="function"?Ckt:Akt)(e,t)):this.node()[e]}function eAe(e){return e.trim().split(/^|\s+/)}function pQ(e){return e.classList||new tAe(e)}function tAe(e){this._node=e,this._names=eAe(e.getAttribute("class")||"")}tAe.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function nAe(e,t){for(var n=pQ(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function rAe(e,t){for(var n=pQ(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function Skt(e){return function(){nAe(this,e)}}function Okt(e){return function(){rAe(this,e)}}function Ekt(e,t){return function(){(t.apply(this,arguments)?nAe:rAe)(this,e)}}function iAe(e,t){var n=eAe(e+"");if(arguments.length<2){for(var r=pQ(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?Ekt:t?Skt:Okt)(n,t))}function Mkt(){this.textContent=""}function Bkt(e){return function(){this.textContent=e}}function Nkt(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function oAe(e){return arguments.length?this.each(e==null?Mkt:(typeof e=="function"?Nkt:Bkt)(e)):this.node().textContent}function Gkt(){this.innerHTML=""}function Fkt(e){return function(){this.innerHTML=e}}function Ikt(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function sAe(e){return arguments.length?this.each(e==null?Gkt:(typeof e=="function"?Ikt:Fkt)(e)):this.node().innerHTML}function zkt(){this.nextSibling&&this.parentNode.appendChild(this)}function aAe(){return this.each(zkt)}function Tkt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function lAe(){return this.each(Tkt)}function uAe(e){var t=typeof e=="function"?e:VF(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Dkt(){return null}function cAe(e,t){var n=typeof e=="function"?e:VF(e),r=t==null?Dkt:typeof t=="function"?t:Ny(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function Rkt(){var e=this.parentNode;e&&e.removeChild(this)}function dAe(){return this.each(Rkt)}function Lkt(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Vkt(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function pAe(e){return this.select(e?Vkt:Lkt)}function fAe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Jkt(e){return function(t){e.call(this,t,this.__data__)}}function jkt(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function Hkt(e){return function(){var t=this.__on;if(!!t){for(var n=0,r=-1,i=t.length,o;n<i;++n)o=t[n],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.options):t[++r]=o;++r?t.length=r:delete this.__on}}}function Wkt(e,t,n){return function(){var r=this.__on,i,o=Jkt(t);if(r){for(var s=0,a=r.length;s<a;++s)if((i=r[s]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=t;return}}this.addEventListener(e.type,o,n),i={type:e.type,name:e.name,value:t,listener:o,options:n},r?r.push(i):this.__on=[i]}}function hAe(e,t,n){var r=jkt(e+""),i,o=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,u=a.length,c;l<u;++l)for(i=0,c=a[l];i<o;++i)if((s=r[i]).type===c.type&&s.name===c.name)return c.value}return}for(a=t?Wkt:Hkt,i=0;i<o;++i)this.each(a(r[i],t,n));return this}function mAe(e,t,n){var r=HF(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Xkt(e,t){return function(){return mAe(this,e,t)}}function qkt(e,t){return function(){return mAe(this,e,t.apply(this,arguments))}}function gAe(e,t){return this.each((typeof t=="function"?qkt:Xkt)(e,t))}function*vAe(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length,s;i<o;++i)(s=r[i])&&(yield s)}var fQ=[null];function Cs(e,t){this._groups=e,this._parents=t}function yAe(){return new Cs([[document.documentElement]],fQ)}function $kt(){return this}Cs.prototype=yAe.prototype={constructor:Cs,select:N9e,selectAll:G9e,selectChild:F9e,selectChildren:I9e,filter:z9e,data:R9e,enter:T9e,exit:L9e,join:V9e,merge:J9e,selection:$kt,order:j9e,sort:H9e,call:W9e,nodes:X9e,node:q9e,size:$9e,empty:K9e,each:Y9e,attr:Z9e,style:U9e,property:Q9e,classed:iAe,text:oAe,html:sAe,raise:aAe,lower:lAe,append:uAe,insert:cAe,remove:dAe,clone:pAe,datum:fAe,on:hAe,dispatch:gAe,[Symbol.iterator]:vAe};var pm=yAe;function Il(e){return typeof e=="string"?new Cs([[document.querySelector(e)]],[document.documentElement]):new Cs([[e]],fQ)}function xAe(e){let t;for(;t=e.sourceEvent;)e=t;return e}function ic(e,t){if(e=xAe(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}var _Ae={passive:!1},Gy={capture:!0,passive:!1};function WF(e){e.stopImmediatePropagation()}function iv(e){e.preventDefault(),e.stopImmediatePropagation()}function mk(e){var t=e.document.documentElement,n=Il(e).on("dragstart.drag",iv,Gy);"onselectstart"in t?n.on("selectstart.drag",iv,Gy):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function gk(e,t){var n=e.document.documentElement,r=Il(e).on("dragstart.drag",null);t&&(r.on("click.drag",iv,Gy),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var vk=e=>()=>e;function yk(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:o,x:s,y:a,dx:l,dy:u,dispatch:c}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:c}})}yk.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Kkt(e){return!e.ctrlKey&&!e.button}function Ykt(){return this.parentNode}function Zkt(e,t){return t??{x:e.x,y:e.y}}function Ukt(){return navigator.maxTouchPoints||"ontouchstart"in this}function hQ(){var e=Kkt,t=Ykt,n=Zkt,r=Ukt,i={},o=By("start","drag","end"),s=0,a,l,u,c,f=0;function d(_){_.on("mousedown.drag",h).filter(r).on("touchstart.drag",b).on("touchmove.drag",v,_Ae).on("touchend.drag touchcancel.drag",x).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function h(_,w){if(!(c||!e.call(this,_,w))){var k=y(this,t.call(this,_,w),_,w,"mouse");!k||(Il(_.view).on("mousemove.drag",m,Gy).on("mouseup.drag",g,Gy),mk(_.view),WF(_),u=!1,a=_.clientX,l=_.clientY,k("start",_))}}function m(_){if(iv(_),!u){var w=_.clientX-a,k=_.clientY-l;u=w*w+k*k>f}i.mouse("drag",_)}function g(_){Il(_.view).on("mousemove.drag mouseup.drag",null),gk(_.view,u),iv(_),i.mouse("end",_)}function b(_,w){if(!!e.call(this,_,w)){var k=_.changedTouches,O=t.call(this,_,w),M=k.length,I,W;for(I=0;I<M;++I)(W=y(this,O,_,w,k[I].identifier,k[I]))&&(WF(_),W("start",_,k[I]))}}function v(_){var w=_.changedTouches,k=w.length,O,M;for(O=0;O<k;++O)(M=i[w[O].identifier])&&(iv(_),M("drag",_,w[O]))}function x(_){var w=_.changedTouches,k=w.length,O,M;for(c&&clearTimeout(c),c=setTimeout(function(){c=null},500),O=0;O<k;++O)(M=i[w[O].identifier])&&(WF(_),M("end",_,w[O]))}function y(_,w,k,O,M,I){var W=o.copy(),J=ic(I||k,w),H,ee,j;if((j=n.call(_,new yk("beforestart",{sourceEvent:k,target:d,identifier:M,active:s,x:J[0],y:J[1],dx:0,dy:0,dispatch:W}),O))!=null)return H=j.x-J[0]||0,ee=j.y-J[1]||0,function V(B,N,C){var S=J,G;switch(B){case"start":i[M]=V,G=s++;break;case"end":delete i[M],--s;case"drag":J=ic(C||N,w),G=s;break}W.call(B,_,new yk(B,{sourceEvent:N,subject:j,target:d,identifier:M,active:G,x:J[0]+H,y:J[1]+ee,dx:J[0]-S[0],dy:J[1]-S[1],dispatch:W}),O)}}return d.filter=function(_){return arguments.length?(e=typeof _=="function"?_:vk(!!_),d):e},d.container=function(_){return arguments.length?(t=typeof _=="function"?_:vk(_),d):t},d.subject=function(_){return arguments.length?(n=typeof _=="function"?_:vk(_),d):n},d.touchable=function(_){return arguments.length?(r=typeof _=="function"?_:vk(!!_),d):r},d.on=function(){var _=o.on.apply(o,arguments);return _===o?d:_},d.clickDistance=function(_){return arguments.length?(f=(_=+_)*_,d):Math.sqrt(f)},d}function XF(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function mQ(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function bk(){}var xk=.7,KF=1/xk,X4="\\s*([+-]?\\d+)\\s*",_k="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",yh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Qkt=/^#([0-9a-f]{3,8})$/,e9t=new RegExp(`^rgb\\(${X4},${X4},${X4}\\)$`),t9t=new RegExp(`^rgb\\(${yh},${yh},${yh}\\)$`),n9t=new RegExp(`^rgba\\(${X4},${X4},${X4},${_k}\\)$`),r9t=new RegExp(`^rgba\\(${yh},${yh},${yh},${_k}\\)$`),i9t=new RegExp(`^hsl\\(${_k},${yh},${yh}\\)$`),o9t=new RegExp(`^hsla\\(${_k},${yh},${yh},${_k}\\)$`),bAe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};XF(bk,ov,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:wAe,formatHex:wAe,formatHex8:s9t,formatHsl:a9t,formatRgb:PAe,toString:PAe});function wAe(){return this.rgb().formatHex()}function s9t(){return this.rgb().formatHex8()}function a9t(){return EAe(this).formatHsl()}function PAe(){return this.rgb().formatRgb()}function ov(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Qkt.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?kAe(t):n===3?new oc(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?qF(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?qF(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=e9t.exec(e))?new oc(t[1],t[2],t[3],1):(t=t9t.exec(e))?new oc(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=n9t.exec(e))?qF(t[1],t[2],t[3],t[4]):(t=r9t.exec(e))?qF(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=i9t.exec(e))?SAe(t[1],t[2]/100,t[3]/100,1):(t=o9t.exec(e))?SAe(t[1],t[2]/100,t[3]/100,t[4]):bAe.hasOwnProperty(e)?kAe(bAe[e]):e==="transparent"?new oc(NaN,NaN,NaN,0):null}function kAe(e){return new oc(e>>16&255,e>>8&255,e&255,1)}function qF(e,t,n,r){return r<=0&&(e=t=n=NaN),new oc(e,t,n,r)}function l9t(e){return e instanceof bk||(e=ov(e)),e?(e=e.rgb(),new oc(e.r,e.g,e.b,e.opacity)):new oc}function q4(e,t,n,r){return arguments.length===1?l9t(e):new oc(e,t,n,r??1)}function oc(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}XF(oc,q4,mQ(bk,{brighter(e){return e=e==null?KF:Math.pow(KF,e),new oc(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?xk:Math.pow(xk,e),new oc(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new oc(Iy(this.r),Iy(this.g),Iy(this.b),YF(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:AAe,formatHex:AAe,formatHex8:u9t,formatRgb:CAe,toString:CAe}));function AAe(){return`#${Fy(this.r)}${Fy(this.g)}${Fy(this.b)}`}function u9t(){return`#${Fy(this.r)}${Fy(this.g)}${Fy(this.b)}${Fy((isNaN(this.opacity)?1:this.opacity)*255)}`}function CAe(){let e=YF(this.opacity);return`${e===1?"rgb(":"rgba("}${Iy(this.r)}, ${Iy(this.g)}, ${Iy(this.b)}${e===1?")":`, ${e})`}`}function YF(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Iy(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Fy(e){return e=Iy(e),(e<16?"0":"")+e.toString(16)}function SAe(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new nf(e,t,n,r)}function EAe(e){if(e instanceof nf)return new nf(e.h,e.s,e.l,e.opacity);if(e instanceof bk||(e=ov(e)),!e)return new nf;if(e instanceof nf)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),s=NaN,a=o-i,l=(o+i)/2;return a?(t===o?s=(n-r)/a+(n<r)*6:n===o?s=(r-t)/a+2:s=(t-n)/a+4,a/=l<.5?o+i:2-o-i,s*=60):a=l>0&&l<1?0:s,new nf(s,a,l,e.opacity)}function MAe(e,t,n,r){return arguments.length===1?EAe(e):new nf(e,t,n,r??1)}function nf(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}XF(nf,MAe,mQ(bk,{brighter(e){return e=e==null?KF:Math.pow(KF,e),new nf(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?xk:Math.pow(xk,e),new nf(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,i=2*n-r;return new oc(gQ(e>=240?e-240:e+120,i,r),gQ(e,i,r),gQ(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new nf(OAe(this.h),$F(this.s),$F(this.l),YF(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(){let e=YF(this.opacity);return`${e===1?"hsl(":"hsla("}${OAe(this.h)}, ${$F(this.s)*100}%, ${$F(this.l)*100}%${e===1?")":`, ${e})`}`}}));function OAe(e){return e=(e||0)%360,e<0?e+360:e}function $F(e){return Math.max(0,Math.min(1,e||0))}function gQ(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function vQ(e,t,n,r,i){var o=e*e,s=o*e;return((1-3*e+3*o-s)*t+(4-6*o+3*s)*n+(1+3*e+3*o-3*s)*r+s*i)/6}function BAe(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],s=r>0?e[r-1]:2*i-o,a=r<t-1?e[r+2]:2*o-i;return vQ((n-r/t)*t,s,i,o,a)}}function NAe(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],s=e[(r+1)%t],a=e[(r+2)%t];return vQ((n-r/t)*t,i,o,s,a)}}var yQ=e=>()=>e;function c9t(e,t){return function(n){return e+n*t}}function d9t(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 GAe(e){return(e=+e)==1?ZF:function(t,n){return n-t?d9t(t,n,e):yQ(isNaN(t)?n:t)}}function ZF(e,t){var n=t-e;return n?c9t(e,n):yQ(isNaN(e)?t:e)}var UF=function e(t){var n=GAe(t);function r(i,o){var s=n((i=q4(i)).r,(o=q4(o)).r),a=n(i.g,o.g),l=n(i.b,o.b),u=ZF(i.opacity,o.opacity);return function(c){return i.r=s(c),i.g=a(c),i.b=l(c),i.opacity=u(c),i+""}}return r.gamma=e,r}(1);function FAe(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),o=new Array(n),s,a;for(s=0;s<n;++s)a=q4(t[s]),r[s]=a.r||0,i[s]=a.g||0,o[s]=a.b||0;return r=e(r),i=e(i),o=e(o),a.opacity=1,function(l){return a.r=r(l),a.g=i(l),a.b=o(l),a+""}}}var p9t=FAe(BAe),f9t=FAe(NAe);function Wd(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var _Q=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,xQ=new RegExp(_Q.source,"g");function h9t(e){return function(){return e}}function m9t(e){return function(t){return e(t)+""}}function bQ(e,t){var n=_Q.lastIndex=xQ.lastIndex=0,r,i,o,s=-1,a=[],l=[];for(e=e+"",t=t+"";(r=_Q.exec(e))&&(i=xQ.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:Wd(r,i)})),n=xQ.lastIndex;return n<t.length&&(o=t.slice(n),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?m9t(l[0].x):h9t(t):(t=l.length,function(u){for(var c=0,f;c<t;++c)a[(f=l[c]).i]=f.x(u);return a.join("")})}var IAe=180/Math.PI,QF={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function wQ(e,t,n,r,i,o){var s,a,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,l/=a),e*r<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*IAe,skewX:Math.atan(l)*IAe,scaleX:s,scaleY:a}}var eI;function zAe(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?QF:wQ(t.a,t.b,t.c,t.d,t.e,t.f)}function TAe(e){return e==null?QF:(eI||(eI=document.createElementNS("http://www.w3.org/2000/svg","g")),eI.setAttribute("transform",e),(e=eI.transform.baseVal.consolidate())?(e=e.matrix,wQ(e.a,e.b,e.c,e.d,e.e,e.f)):QF)}function DAe(e,t,n,r){function i(u){return u.length?u.pop()+" ":""}function o(u,c,f,d,h,m){if(u!==f||c!==d){var g=h.push("translate(",null,t,null,n);m.push({i:g-4,x:Wd(u,f)},{i:g-2,x:Wd(c,d)})}else(f||d)&&h.push("translate("+f+t+d+n)}function s(u,c,f,d){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),d.push({i:f.push(i(f)+"rotate(",null,r)-2,x:Wd(u,c)})):c&&f.push(i(f)+"rotate("+c+r)}function a(u,c,f,d){u!==c?d.push({i:f.push(i(f)+"skewX(",null,r)-2,x:Wd(u,c)}):c&&f.push(i(f)+"skewX("+c+r)}function l(u,c,f,d,h,m){if(u!==f||c!==d){var g=h.push(i(h)+"scale(",null,",",null,")");m.push({i:g-4,x:Wd(u,f)},{i:g-2,x:Wd(c,d)})}else(f!==1||d!==1)&&h.push(i(h)+"scale("+f+","+d+")")}return function(u,c){var f=[],d=[];return u=e(u),c=e(c),o(u.translateX,u.translateY,c.translateX,c.translateY,f,d),s(u.rotate,c.rotate,f,d),a(u.skewX,c.skewX,f,d),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,f,d),u=c=null,function(h){for(var m=-1,g=d.length,b;++m<g;)f[(b=d[m]).i]=b.x(h);return f.join("")}}}var PQ=DAe(zAe,"px, ","px)","deg)"),kQ=DAe(TAe,", ",")",")");var g9t=1e-12;function RAe(e){return((e=Math.exp(e))+1/e)/2}function v9t(e){return((e=Math.exp(e))-1/e)/2}function y9t(e){return((e=Math.exp(2*e))-1)/(e+1)}var AQ=function e(t,n,r){function i(o,s){var a=o[0],l=o[1],u=o[2],c=s[0],f=s[1],d=s[2],h=c-a,m=f-l,g=h*h+m*m,b,v;if(g<g9t)v=Math.log(d/u)/t,b=function(O){return[a+O*h,l+O*m,u*Math.exp(t*O*v)]};else{var x=Math.sqrt(g),y=(d*d-u*u+r*g)/(2*u*n*x),_=(d*d-u*u-r*g)/(2*d*n*x),w=Math.log(Math.sqrt(y*y+1)-y),k=Math.log(Math.sqrt(_*_+1)-_);v=(k-w)/t,b=function(O){var M=O*v,I=RAe(w),W=u/(n*x)*(I*y9t(t*M+w)-v9t(w));return[a+W*h,l+W*m,u*I/RAe(t*M+w)]}}return b.duration=v*1e3*t/Math.SQRT2,b}return i.rho=function(o){var s=Math.max(.001,+o),a=s*s,l=a*a;return e(s,a,l)},i}(Math.SQRT2,2,4);var $4=0,Pk=0,wk=0,VAe=1e3,tI,kk,nI=0,zy=0,rI=0,Ak=typeof performance=="object"&&performance.now?performance:Date,JAe=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Sk(){return zy||(JAe(x9t),zy=Ak.now()+rI)}function x9t(){zy=0}function Ck(){this._call=this._time=this._next=null}Ck.prototype=iI.prototype={constructor:Ck,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Sk():+n)+(t==null?0:+t),!this._next&&kk!==this&&(kk?kk._next=this:tI=this,kk=this),this._call=e,this._time=n,CQ()},stop:function(){this._call&&(this._call=null,this._time=1/0,CQ())}};function iI(e,t,n){var r=new Ck;return r.restart(e,t,n),r}function jAe(){Sk(),++$4;for(var e=tI,t;e;)(t=zy-e._time)>=0&&e._call.call(void 0,t),e=e._next;--$4}function LAe(){zy=(nI=Ak.now())+rI,$4=Pk=0;try{jAe()}finally{$4=0,b9t(),zy=0}}function _9t(){var e=Ak.now(),t=e-nI;t>VAe&&(rI-=t,nI=e)}function b9t(){for(var e,t=tI,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:tI=n);kk=e,CQ(r)}function CQ(e){if(!$4){Pk&&(Pk=clearTimeout(Pk));var t=e-zy;t>24?(e<1/0&&(Pk=setTimeout(LAe,e-Ak.now()-rI)),wk&&(wk=clearInterval(wk))):(wk||(nI=Ak.now(),wk=setInterval(_9t,VAe)),$4=1,JAe(LAe))}}function oI(e,t,n){var r=new Ck;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var w9t=By("start","end","cancel","interrupt"),P9t=[],XAe=0,HAe=1,aI=2,sI=3,WAe=4,lI=5,Ok=6;function sv(e,t,n,r,i,o){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;k9t(e,n,{name:t,index:r,group:i,on:w9t,tween:P9t,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:XAe})}function Ek(e,t){var n=la(e,t);if(n.state>XAe)throw new Error("too late; already scheduled");return n}function al(e,t){var n=la(e,t);if(n.state>sI)throw new Error("too late; already running");return n}function la(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function k9t(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=iI(o,0,n.time);function o(u){n.state=HAe,n.timer.restart(s,n.delay,n.time),n.delay<=u&&s(u-n.delay)}function s(u){var c,f,d,h;if(n.state!==HAe)return l();for(c in r)if(h=r[c],h.name===n.name){if(h.state===sI)return oI(s);h.state===WAe?(h.state=Ok,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete r[c]):+c<t&&(h.state=Ok,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete r[c])}if(oI(function(){n.state===sI&&(n.state=WAe,n.timer.restart(a,n.delay,n.time),a(u))}),n.state=aI,n.on.call("start",e,e.__data__,n.index,n.group),n.state===aI){for(n.state=sI,i=new Array(d=n.tween.length),c=0,f=-1;c<d;++c)(h=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(i[++f]=h);i.length=f+1}}function a(u){for(var c=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(l),n.state=lI,1),f=-1,d=i.length;++f<d;)i[f].call(e,c);n.state===lI&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){n.state=Ok,n.timer.stop(),delete r[t];for(var u in r)return;delete e.__transition}}function Ty(e,t){var n=e.__transition,r,i,o=!0,s;if(!!n){t=t==null?null:t+"";for(s in n){if((r=n[s]).name!==t){o=!1;continue}i=r.state>aI&&r.state<lI,r.state=Ok,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[s]}o&&delete e.__transition}}function qAe(e){return this.each(function(){Ty(this,e)})}function A9t(e,t){var n,r;return function(){var i=al(this,e),o=i.tween;if(o!==n){r=n=o;for(var s=0,a=r.length;s<a;++s)if(r[s].name===t){r=r.slice(),r.splice(s,1);break}}i.tween=r}}function C9t(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=al(this,e),s=o.tween;if(s!==r){i=(r=s).slice();for(var a={name:t,value:n},l=0,u=i.length;l<u;++l)if(i[l].name===t){i[l]=a;break}l===u&&i.push(a)}o.tween=i}}function $Ae(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=la(this.node(),n).tween,i=0,o=r.length,s;i<o;++i)if((s=r[i]).name===e)return s.value;return null}return this.each((t==null?A9t:C9t)(n,e,t))}function K4(e,t,n){var r=e._id;return e.each(function(){var i=al(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return la(i,r).value[t]}}function uI(e,t){var n;return(typeof t=="number"?Wd:t instanceof ov?UF:(n=ov(t))?(t=n,UF):bQ)(e,t)}function S9t(e){return function(){this.removeAttribute(e)}}function O9t(e){return function(){this.removeAttributeNS(e.space,e.local)}}function E9t(e,t,n){var r,i=n+"",o;return function(){var s=this.getAttribute(e);return s===i?null:s===r?o:o=t(r=s,n)}}function M9t(e,t,n){var r,i=n+"",o;return function(){var s=this.getAttributeNS(e.space,e.local);return s===i?null:s===r?o:o=t(r=s,n)}}function B9t(e,t,n){var r,i,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttribute(e):(s=this.getAttribute(e),l=a+"",s===l?null:s===r&&l===i?o:(i=l,o=t(r=s,a)))}}function N9t(e,t,n){var r,i,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),l=a+"",s===l?null:s===r&&l===i?o:(i=l,o=t(r=s,a)))}}function KAe(e,t){var n=dm(e),r=n==="transform"?kQ:uI;return this.attrTween(e,typeof t=="function"?(n.local?N9t:B9t)(n,r,K4(this,"attr."+e,t)):t==null?(n.local?O9t:S9t)(n):(n.local?M9t:E9t)(n,r,t))}function G9t(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function F9t(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function I9t(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&F9t(e,o)),n}return i._value=t,i}function z9t(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&G9t(e,o)),n}return i._value=t,i}function YAe(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=dm(e);return this.tween(n,(r.local?I9t:z9t)(r,t))}function T9t(e,t){return function(){Ek(this,e).delay=+t.apply(this,arguments)}}function D9t(e,t){return t=+t,function(){Ek(this,e).delay=t}}function ZAe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?T9t:D9t)(t,e)):la(this.node(),t).delay}function R9t(e,t){return function(){al(this,e).duration=+t.apply(this,arguments)}}function L9t(e,t){return t=+t,function(){al(this,e).duration=t}}function UAe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?R9t:L9t)(t,e)):la(this.node(),t).duration}function V9t(e,t){if(typeof t!="function")throw new Error;return function(){al(this,e).ease=t}}function QAe(e){var t=this._id;return arguments.length?this.each(V9t(t,e)):la(this.node(),t).ease}function J9t(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;al(this,e).ease=n}}function eCe(e){if(typeof e!="function")throw new Error;return this.each(J9t(this._id,e))}function tCe(e){typeof e!="function"&&(e=fk(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],s=o.length,a=r[i]=[],l,u=0;u<s;++u)(l=o[u])&&e.call(l,l.__data__,u,o)&&a.push(l);return new vu(r,this._parents,this._name,this._id)}function nCe(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),s=new Array(r),a=0;a<o;++a)for(var l=t[a],u=n[a],c=l.length,f=s[a]=new Array(c),d,h=0;h<c;++h)(d=l[h]||u[h])&&(f[h]=d);for(;a<r;++a)s[a]=t[a];return new vu(s,this._parents,this._name,this._id)}function j9t(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function H9t(e,t,n){var r,i,o=j9t(t)?Ek:al;return function(){var s=o(this,e),a=s.on;a!==r&&(i=(r=a).copy()).on(t,n),s.on=i}}function rCe(e,t){var n=this._id;return arguments.length<2?la(this.node(),n).on.on(e):this.each(H9t(n,e,t))}function W9t(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function iCe(){return this.on("end.remove",W9t(this._id))}function oCe(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Ny(e));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s<i;++s)for(var a=r[s],l=a.length,u=o[s]=new Array(l),c,f,d=0;d<l;++d)(c=a[d])&&(f=e.call(c,c.__data__,d,a))&&("__data__"in c&&(f.__data__=c.__data__),u[d]=f,sv(u[d],t,n,d,u,la(c,n)));return new vu(o,this._parents,t,n)}function sCe(e){var t=this._name,n=this._id;typeof e!="function"&&(e=pk(e));for(var r=this._groups,i=r.length,o=[],s=[],a=0;a<i;++a)for(var l=r[a],u=l.length,c,f=0;f<u;++f)if(c=l[f]){for(var d=e.call(c,c.__data__,f,l),h,m=la(c,n),g=0,b=d.length;g<b;++g)(h=d[g])&&sv(h,t,n,g,d,m);o.push(d),s.push(c)}return new vu(o,s,t,n)}var X9t=pm.prototype.constructor;function aCe(){return new X9t(this._groups,this._parents)}function q9t(e,t){var n,r,i;return function(){var o=rv(this,e),s=(this.style.removeProperty(e),rv(this,e));return o===s?null:o===n&&s===r?i:i=t(n=o,r=s)}}function lCe(e){return function(){this.style.removeProperty(e)}}function $9t(e,t,n){var r,i=n+"",o;return function(){var s=rv(this,e);return s===i?null:s===r?o:o=t(r=s,n)}}function K9t(e,t,n){var r,i,o;return function(){var s=rv(this,e),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(e),rv(this,e))),s===l?null:s===r&&l===i?o:(i=l,o=t(r=s,a))}}function Y9t(e,t){var n,r,i,o="style."+t,s="end."+o,a;return function(){var l=al(this,e),u=l.on,c=l.value[o]==null?a||(a=lCe(t)):void 0;(u!==n||i!==c)&&(r=(n=u).copy()).on(s,i=c),l.on=r}}function uCe(e,t,n){var r=(e+="")=="transform"?PQ:uI;return t==null?this.styleTween(e,q9t(e,r)).on("end.style."+e,lCe(e)):typeof t=="function"?this.styleTween(e,K9t(e,r,K4(this,"style."+e,t))).each(Y9t(this._id,e)):this.styleTween(e,$9t(e,r,t),n).on("end.style."+e,null)}function Z9t(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function U9t(e,t,n){var r,i;function o(){var s=t.apply(this,arguments);return s!==i&&(r=(i=s)&&Z9t(e,s,n)),r}return o._value=t,o}function cCe(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,U9t(e,t,n??""))}function Q9t(e){return function(){this.textContent=e}}function eAt(e){return function(){var t=e(this);this.textContent=t??""}}function dCe(e){return this.tween("text",typeof e=="function"?eAt(K4(this,"text",e)):Q9t(e==null?"":e+""))}function tAt(e){return function(t){this.textContent=e.call(this,t)}}function nAt(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&tAt(i)),t}return r._value=e,r}function pCe(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,nAt(e))}function fCe(){for(var e=this._name,t=this._id,n=cI(),r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],a=s.length,l,u=0;u<a;++u)if(l=s[u]){var c=la(l,t);sv(l,e,n,u,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new vu(r,this._parents,e,n)}function hCe(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(o,s){var a={value:s},l={value:function(){--i===0&&o()}};n.each(function(){var u=al(this,r),c=u.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),u.on=t}),i===0&&o()})}var rAt=0;function vu(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function mCe(e){return pm().transition(e)}function cI(){return++rAt}var fm=pm.prototype;vu.prototype=mCe.prototype={constructor:vu,select:oCe,selectAll:sCe,selectChild:fm.selectChild,selectChildren:fm.selectChildren,filter:tCe,merge:nCe,selection:aCe,transition:fCe,call:fm.call,nodes:fm.nodes,node:fm.node,size:fm.size,empty:fm.empty,each:fm.each,on:rCe,attr:KAe,attrTween:YAe,style:uCe,styleTween:cCe,text:dCe,textTween:pCe,remove:iCe,tween:$Ae,delay:ZAe,duration:UAe,ease:QAe,easeVarying:eCe,end:hCe,[Symbol.iterator]:fm[Symbol.iterator]};function dI(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var iAt={time:null,delay:0,duration:250,ease:dI};function oAt(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function gCe(e){var t,n;e instanceof vu?(t=e._id,e=e._name):(t=cI(),(n=iAt).time=Sk(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],a=s.length,l,u=0;u<a;++u)(l=s[u])&&sv(l,e,t,u,s,n||oAt(l,t));return new vu(r,this._parents,e,t)}pm.prototype.interrupt=qAe;pm.prototype.transition=gCe;var Mk=e=>()=>e;function SQ(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function rf(e,t,n){this.k=e,this.x=t,this.y=n}rf.prototype={constructor:rf,scale:function(e){return e===1?this:new rf(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new rf(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Xd=new rf(1,0,0);OQ.prototype=rf.prototype;function OQ(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Xd;return e.__zoom}function pI(e){e.stopImmediatePropagation()}function Y4(e){e.preventDefault(),e.stopImmediatePropagation()}function sAt(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function aAt(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function vCe(){return this.__zoom||Xd}function lAt(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function uAt(){return navigator.maxTouchPoints||"ontouchstart"in this}function cAt(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s))}function EQ(){var e=sAt,t=aAt,n=cAt,r=lAt,i=uAt,o=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],a=250,l=AQ,u=By("start","zoom","end"),c,f,d,h=500,m=150,g=0,b=10;function v(j){j.property("__zoom",vCe).on("wheel.zoom",M,{passive:!1}).on("mousedown.zoom",I).on("dblclick.zoom",W).filter(i).on("touchstart.zoom",J).on("touchmove.zoom",H).on("touchend.zoom touchcancel.zoom",ee).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}v.transform=function(j,V,B,N){var C=j.selection?j.selection():j;C.property("__zoom",vCe),j!==C?w(j,V,B,N):C.interrupt().each(function(){k(this,arguments).event(N).start().zoom(null,typeof V=="function"?V.apply(this,arguments):V).end()})},v.scaleBy=function(j,V,B,N){v.scaleTo(j,function(){var C=this.__zoom.k,S=typeof V=="function"?V.apply(this,arguments):V;return C*S},B,N)},v.scaleTo=function(j,V,B,N){v.transform(j,function(){var C=t.apply(this,arguments),S=this.__zoom,G=B==null?_(C):typeof B=="function"?B.apply(this,arguments):B,T=S.invert(G),Q=typeof V=="function"?V.apply(this,arguments):V;return n(y(x(S,Q),G,T),C,s)},B,N)},v.translateBy=function(j,V,B,N){v.transform(j,function(){return n(this.__zoom.translate(typeof V=="function"?V.apply(this,arguments):V,typeof B=="function"?B.apply(this,arguments):B),t.apply(this,arguments),s)},null,N)},v.translateTo=function(j,V,B,N,C){v.transform(j,function(){var S=t.apply(this,arguments),G=this.__zoom,T=N==null?_(S):typeof N=="function"?N.apply(this,arguments):N;return n(Xd.translate(T[0],T[1]).scale(G.k).translate(typeof V=="function"?-V.apply(this,arguments):-V,typeof B=="function"?-B.apply(this,arguments):-B),S,s)},N,C)};function x(j,V){return V=Math.max(o[0],Math.min(o[1],V)),V===j.k?j:new rf(V,j.x,j.y)}function y(j,V,B){var N=V[0]-B[0]*j.k,C=V[1]-B[1]*j.k;return N===j.x&&C===j.y?j:new rf(j.k,N,C)}function _(j){return[(+j[0][0]+ +j[1][0])/2,(+j[0][1]+ +j[1][1])/2]}function w(j,V,B,N){j.on("start.zoom",function(){k(this,arguments).event(N).start()}).on("interrupt.zoom end.zoom",function(){k(this,arguments).event(N).end()}).tween("zoom",function(){var C=this,S=arguments,G=k(C,S).event(N),T=t.apply(C,S),Q=B==null?_(T):typeof B=="function"?B.apply(C,S):B,U=Math.max(T[1][0]-T[0][0],T[1][1]-T[0][1]),F=C.__zoom,D=typeof V=="function"?V.apply(C,S):V,L=l(F.invert(Q).concat(U/F.k),D.invert(Q).concat(U/D.k));return function($){if($===1)$=D;else{var Z=L($),se=U/Z[2];$=new rf(se,Q[0]-Z[0]*se,Q[1]-Z[1]*se)}G.zoom(null,$)}})}function k(j,V,B){return!B&&j.__zooming||new O(j,V)}function O(j,V){this.that=j,this.args=V,this.active=0,this.sourceEvent=null,this.extent=t.apply(j,V),this.taps=0}O.prototype={event:function(j){return j&&(this.sourceEvent=j),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(j,V){return this.mouse&&j!=="mouse"&&(this.mouse[1]=V.invert(this.mouse[0])),this.touch0&&j!=="touch"&&(this.touch0[1]=V.invert(this.touch0[0])),this.touch1&&j!=="touch"&&(this.touch1[1]=V.invert(this.touch1[0])),this.that.__zoom=V,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(j){var V=Il(this.that).datum();u.call(j,this.that,new SQ(j,{sourceEvent:this.sourceEvent,target:v,type:j,transform:this.that.__zoom,dispatch:u}),V)}};function M(j,...V){if(!e.apply(this,arguments))return;var B=k(this,V).event(j),N=this.__zoom,C=Math.max(o[0],Math.min(o[1],N.k*Math.pow(2,r.apply(this,arguments)))),S=ic(j);if(B.wheel)(B.mouse[0][0]!==S[0]||B.mouse[0][1]!==S[1])&&(B.mouse[1]=N.invert(B.mouse[0]=S)),clearTimeout(B.wheel);else{if(N.k===C)return;B.mouse=[S,N.invert(S)],Ty(this),B.start()}Y4(j),B.wheel=setTimeout(G,m),B.zoom("mouse",n(y(x(N,C),B.mouse[0],B.mouse[1]),B.extent,s));function G(){B.wheel=null,B.end()}}function I(j,...V){if(d||!e.apply(this,arguments))return;var B=j.currentTarget,N=k(this,V,!0).event(j),C=Il(j.view).on("mousemove.zoom",Q,!0).on("mouseup.zoom",U,!0),S=ic(j,B),G=j.clientX,T=j.clientY;mk(j.view),pI(j),N.mouse=[S,this.__zoom.invert(S)],Ty(this),N.start();function Q(F){if(Y4(F),!N.moved){var D=F.clientX-G,L=F.clientY-T;N.moved=D*D+L*L>g}N.event(F).zoom("mouse",n(y(N.that.__zoom,N.mouse[0]=ic(F,B),N.mouse[1]),N.extent,s))}function U(F){C.on("mousemove.zoom mouseup.zoom",null),gk(F.view,N.moved),Y4(F),N.event(F).end()}}function W(j,...V){if(!!e.apply(this,arguments)){var B=this.__zoom,N=ic(j.changedTouches?j.changedTouches[0]:j,this),C=B.invert(N),S=B.k*(j.shiftKey?.5:2),G=n(y(x(B,S),N,C),t.apply(this,V),s);Y4(j),a>0?Il(this).transition().duration(a).call(w,G,N,j):Il(this).call(v.transform,G,N,j)}}function J(j,...V){if(!!e.apply(this,arguments)){var B=j.touches,N=B.length,C=k(this,V,j.changedTouches.length===N).event(j),S,G,T,Q;for(pI(j),G=0;G<N;++G)T=B[G],Q=ic(T,this),Q=[Q,this.__zoom.invert(Q),T.identifier],C.touch0?!C.touch1&&C.touch0[2]!==Q[2]&&(C.touch1=Q,C.taps=0):(C.touch0=Q,S=!0,C.taps=1+!!c);c&&(c=clearTimeout(c)),S&&(C.taps<2&&(f=Q[0],c=setTimeout(function(){c=null},h)),Ty(this),C.start())}}function H(j,...V){if(!!this.__zooming){var B=k(this,V).event(j),N=j.changedTouches,C=N.length,S,G,T,Q;for(Y4(j),S=0;S<C;++S)G=N[S],T=ic(G,this),B.touch0&&B.touch0[2]===G.identifier?B.touch0[0]=T:B.touch1&&B.touch1[2]===G.identifier&&(B.touch1[0]=T);if(G=B.that.__zoom,B.touch1){var U=B.touch0[0],F=B.touch0[1],D=B.touch1[0],L=B.touch1[1],$=($=D[0]-U[0])*$+($=D[1]-U[1])*$,Z=(Z=L[0]-F[0])*Z+(Z=L[1]-F[1])*Z;G=x(G,Math.sqrt($/Z)),T=[(U[0]+D[0])/2,(U[1]+D[1])/2],Q=[(F[0]+L[0])/2,(F[1]+L[1])/2]}else if(B.touch0)T=B.touch0[0],Q=B.touch0[1];else return;B.zoom("touch",n(y(G,T,Q),B.extent,s))}}function ee(j,...V){if(!!this.__zooming){var B=k(this,V).event(j),N=j.changedTouches,C=N.length,S,G;for(pI(j),d&&clearTimeout(d),d=setTimeout(function(){d=null},h),S=0;S<C;++S)G=N[S],B.touch0&&B.touch0[2]===G.identifier?delete B.touch0:B.touch1&&B.touch1[2]===G.identifier&&delete B.touch1;if(B.touch1&&!B.touch0&&(B.touch0=B.touch1,delete B.touch1),B.touch0)B.touch0[1]=this.__zoom.invert(B.touch0[0]);else if(B.end(),B.taps===2&&(G=ic(G,this),Math.hypot(f[0]-G[0],f[1]-G[1])<b)){var T=Il(this).on("dblclick.zoom");T&&T.apply(this,arguments)}}}return v.wheelDelta=function(j){return arguments.length?(r=typeof j=="function"?j:Mk(+j),v):r},v.filter=function(j){return arguments.length?(e=typeof j=="function"?j:Mk(!!j),v):e},v.touchable=function(j){return arguments.length?(i=typeof j=="function"?j:Mk(!!j),v):i},v.extent=function(j){return arguments.length?(t=typeof j=="function"?j:Mk([[+j[0][0],+j[0][1]],[+j[1][0],+j[1][1]]]),v):t},v.scaleExtent=function(j){return arguments.length?(o[0]=+j[0],o[1]=+j[1],v):[o[0],o[1]]},v.translateExtent=function(j){return arguments.length?(s[0][0]=+j[0][0],s[1][0]=+j[1][0],s[0][1]=+j[0][1],s[1][1]=+j[1][1],v):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},v.constrain=function(j){return arguments.length?(n=j,v):n},v.duration=function(j){return arguments.length?(a=+j,v):a},v.interpolate=function(j){return arguments.length?(l=j,v):l},v.on=function(){var j=u.on.apply(u,arguments);return j===u?v:j},v.clickDistance=function(j){return arguments.length?(g=(j=+j)*j,v):Math.sqrt(g)},v.tapDistance=function(j){return arguments.length?(b=+j,v):b},v}var LCe=ie(Yl()),vI=(0,lt.createContext)(null),dAt=vI.Provider,hm={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,t)=>`Couldn't create edge for ${e?"target":"source"} handle id: "${e?t.targetHandle:t.sourceHandle}", edge id: ${t.id}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`},VCe=hm.error001();function Qo(e,t){let n=(0,lt.useContext)(vI);if(n===null)throw new Error(VCe);return E9e(n,e,t)}var zl=()=>{let e=(0,lt.useContext)(vI);if(e===null)throw new Error(VCe);return(0,lt.useMemo)(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe,destroy:e.destroy}),[e])},pAt=e=>e.userSelectionActive?"none":"all";function fAt({position:e,children:t,className:n,style:r,...i}){let o=Qo(pAt),s=`${e}`.split("-");return(0,At.jsx)("div",{className:Fl(["react-flow__panel",n,...s]),style:{...r,pointerEvents:o},...i,children:t})}function hAt({proOptions:e,position:t="bottom-right"}){return e?.hideAttribution?null:(0,At.jsx)(fAt,{position:t,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:(0,At.jsx)("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}var mAt=({x:e,y:t,label:n,labelStyle:r={},labelShowBg:i=!0,labelBgStyle:o={},labelBgPadding:s=[2,4],labelBgBorderRadius:a=2,children:l,className:u,...c})=>{let f=(0,lt.useRef)(null),[d,h]=(0,lt.useState)({x:0,y:0,width:0,height:0}),m=Fl(["react-flow__edge-textwrapper",u]);return(0,lt.useEffect)(()=>{if(f.current){let g=f.current.getBBox();h({x:g.x,y:g.y,width:g.width,height:g.height})}},[n]),typeof n>"u"||!n?null:(0,At.jsxs)("g",{transform:`translate(${e-d.width/2} ${t-d.height/2})`,className:m,visibility:d.width?"visible":"hidden",...c,children:[i&&(0,At.jsx)("rect",{width:d.width+2*s[0],x:-s[0],y:-s[1],height:d.height+2*s[1],className:"react-flow__edge-textbg",style:o,rx:a,ry:a}),(0,At.jsx)("text",{className:"react-flow__edge-text",y:d.height/2,dy:"0.3em",ref:f,style:r,children:n}),l]})},gAt=(0,lt.memo)(mAt),jQ=e=>({width:e.offsetWidth,height:e.offsetHeight}),o5=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),HQ=(e={x:0,y:0},t)=>({x:o5(e.x,t[0][0],t[1][0]),y:o5(e.y,t[0][1],t[1][1])}),yCe=(e,t,n)=>e<t?o5(Math.abs(e-t),1,50)/50:e>n?-o5(Math.abs(e-n),1,50)/50:0,JCe=(e,t)=>{let n=yCe(e.x,35,t.width-35)*20,r=yCe(e.y,35,t.height-35)*20;return[n,r]},jCe=e=>e.getRootNode?.()||window?.document,vAt=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),HCe=({x:e,y:t,width:n,height:r})=>({x:e,y:t,x2:e+n,y2:t+r}),yAt=({x:e,y:t,x2:n,y2:r})=>({x:e,y:t,width:n-e,height:r-t}),xCe=e=>({...e.positionAbsolute||{x:0,y:0},width:e.width||0,height:e.height||0});var zQ=(e,t)=>{let n=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),r=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(n*r)},xAt=e=>qd(e.width)&&qd(e.height)&&qd(e.x)&&qd(e.y),qd=e=>!isNaN(e)&&isFinite(e),ua=Symbol.for("internals"),WCe=["Enter"," ","Escape"],XCe=(e,t)=>{},_At=e=>"nativeEvent"in e;function TQ(e){let n=(_At(e)?e.nativeEvent:e).composedPath?.()?.[0]||e.target;return["INPUT","SELECT","TEXTAREA"].includes(n?.nodeName)||n?.hasAttribute("contenteditable")||!!n?.closest(".nokey")}var qCe=e=>"clientX"in e,cv=(e,t)=>{let n=qCe(e),r=n?e.clientX:e.touches?.[0].clientX,i=n?e.clientY:e.touches?.[0].clientY;return{x:r-(t?.left??0),y:i-(t?.top??0)}},Vy=({id:e,path:t,labelX:n,labelY:r,label:i,labelStyle:o,labelShowBg:s,labelBgStyle:a,labelBgPadding:l,labelBgBorderRadius:u,style:c,markerEnd:f,markerStart:d,interactionWidth:h=20})=>(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)("path",{id:e,style:c,d:t,fill:"none",className:"react-flow__edge-path",markerEnd:f,markerStart:d}),h&&(0,At.jsx)("path",{d:t,fill:"none",strokeOpacity:0,strokeWidth:h,className:"react-flow__edge-interaction"}),i&&qd(n)&&qd(r)?(0,At.jsx)(gAt,{x:n,y:r,label:i,labelStyle:o,labelShowBg:s,labelBgStyle:a,labelBgPadding:l,labelBgBorderRadius:u}):null]});Vy.displayName="BaseEdge";function Bk(e,t,n){return n===void 0?n:r=>{let i=t().edges.find(o=>o.id===e);i&&n(r,{...i})}}function $Ce({sourceX:e,sourceY:t,targetX:n,targetY:r}){let i=Math.abs(n-e)/2,o=n<e?n+i:n-i,s=Math.abs(r-t)/2,a=r<t?r+s:r-s;return[o,a,i,s]}function KCe({sourceX:e,sourceY:t,targetX:n,targetY:r,sourceControlX:i,sourceControlY:o,targetControlX:s,targetControlY:a}){let l=e*.125+i*.375+s*.375+n*.125,u=t*.125+o*.375+a*.375+r*.125,c=Math.abs(l-e),f=Math.abs(u-t);return[l,u,c,f]}var Ry;(function(e){e.Strict="strict",e.Loose="loose"})(Ry||(Ry={}));var n5;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(n5||(n5={}));var Fk;(function(e){e.Partial="partial",e.Full="full"})(Fk||(Fk={}));var uv;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(uv||(uv={}));var dv;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(dv||(dv={}));var yn;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(yn||(yn={}));function _Ce({pos:e,x1:t,y1:n,x2:r,y2:i}){return e===yn.Left||e===yn.Right?[.5*(t+r),n]:[t,.5*(n+i)]}function YCe({sourceX:e,sourceY:t,sourcePosition:n=yn.Bottom,targetX:r,targetY:i,targetPosition:o=yn.Top}){let[s,a]=_Ce({pos:n,x1:e,y1:t,x2:r,y2:i}),[l,u]=_Ce({pos:o,x1:r,y1:i,x2:e,y2:t}),[c,f,d,h]=KCe({sourceX:e,sourceY:t,targetX:r,targetY:i,sourceControlX:s,sourceControlY:a,targetControlX:l,targetControlY:u});return[`M${e},${t} C${s},${a} ${l},${u} ${r},${i}`,c,f,d,h]}var WQ=(0,lt.memo)(({sourceX:e,sourceY:t,targetX:n,targetY:r,sourcePosition:i=yn.Bottom,targetPosition:o=yn.Top,label:s,labelStyle:a,labelShowBg:l,labelBgStyle:u,labelBgPadding:c,labelBgBorderRadius:f,style:d,markerEnd:h,markerStart:m,interactionWidth:g})=>{let[b,v,x]=YCe({sourceX:e,sourceY:t,sourcePosition:i,targetX:n,targetY:r,targetPosition:o});return(0,At.jsx)(Vy,{path:b,labelX:v,labelY:x,label:s,labelStyle:a,labelShowBg:l,labelBgStyle:u,labelBgPadding:c,labelBgBorderRadius:f,style:d,markerEnd:h,markerStart:m,interactionWidth:g})});WQ.displayName="SimpleBezierEdge";var bCe={[yn.Left]:{x:-1,y:0},[yn.Right]:{x:1,y:0},[yn.Top]:{x:0,y:-1},[yn.Bottom]:{x:0,y:1}},bAt=({source:e,sourcePosition:t=yn.Bottom,target:n})=>t===yn.Left||t===yn.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1},wCe=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function wAt({source:e,sourcePosition:t=yn.Bottom,target:n,targetPosition:r=yn.Top,center:i,offset:o}){let s=bCe[t],a=bCe[r],l={x:e.x+s.x*o,y:e.y+s.y*o},u={x:n.x+a.x*o,y:n.y+a.y*o},c=bAt({source:l,sourcePosition:t,target:u}),f=c.x!==0?"x":"y",d=c[f],h=[],m,g,[b,v,x,y]=$Ce({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(s[f]*a[f]===-1){m=i.x||b,g=i.y||v;let w=[{x:m,y:l.y},{x:m,y:u.y}],k=[{x:l.x,y:g},{x:u.x,y:g}];s[f]===d?h=f==="x"?w:k:h=f==="x"?k:w}else{let w=[{x:l.x,y:u.y}],k=[{x:u.x,y:l.y}];if(f==="x"?h=s.x===d?k:w:h=s.y===d?w:k,t!==r){let O=f==="x"?"y":"x",M=s[f]===a[O],I=l[O]>u[O],W=l[O]<u[O];(s[f]===1&&(!M&&I||M&&W)||s[f]!==1&&(!M&&W||M&&I))&&(h=f==="x"?w:k)}m=h[0].x,g=h[0].y}return[[e,l,...h,u,n],m,g,x,y]}function PAt(e,t,n,r){let i=Math.min(wCe(e,t)/2,wCe(t,n)/2,r),{x:o,y:s}=t;if(e.x===o&&o===n.x||e.y===s&&s===n.y)return`L${o} ${s}`;if(e.y===s){let u=e.x<n.x?-1:1,c=e.y<n.y?1:-1;return`L ${o+i*u},${s}Q ${o},${s} ${o},${s+i*c}`}let a=e.x<n.x?1:-1,l=e.y<n.y?-1:1;return`L ${o},${s+i*l}Q ${o},${s} ${o+i*a},${s}`}function DQ({sourceX:e,sourceY:t,sourcePosition:n=yn.Bottom,targetX:r,targetY:i,targetPosition:o=yn.Top,borderRadius:s=5,centerX:a,centerY:l,offset:u=20}){let[c,f,d,h,m]=wAt({source:{x:e,y:t},sourcePosition:n,target:{x:r,y:i},targetPosition:o,center:{x:a,y:l},offset:u});return[c.reduce((b,v,x)=>{let y="";return x>0&&x<c.length-1?y=PAt(c[x-1],v,c[x+1],s):y=`${x===0?"M":"L"}${v.x} ${v.y}`,b+=y,b},""),f,d,h,m]}var yI=(0,lt.memo)(({sourceX:e,sourceY:t,targetX:n,targetY:r,label:i,labelStyle:o,labelShowBg:s,labelBgStyle:a,labelBgPadding:l,labelBgBorderRadius:u,style:c,sourcePosition:f=yn.Bottom,targetPosition:d=yn.Top,markerEnd:h,markerStart:m,pathOptions:g,interactionWidth:b})=>{let[v,x,y]=DQ({sourceX:e,sourceY:t,sourcePosition:f,targetX:n,targetY:r,targetPosition:d,borderRadius:g?.borderRadius,offset:g?.offset});return(0,At.jsx)(Vy,{path:v,labelX:x,labelY:y,label:i,labelStyle:o,labelShowBg:s,labelBgStyle:a,labelBgPadding:l,labelBgBorderRadius:u,style:c,markerEnd:h,markerStart:m,interactionWidth:b})});yI.displayName="SmoothStepEdge";var XQ=(0,lt.memo)(e=>(0,At.jsx)(yI,{...e,pathOptions:(0,lt.useMemo)(()=>({borderRadius:0,offset:e.pathOptions?.offset}),[e.pathOptions?.offset])}));XQ.displayName="StepEdge";function kAt({sourceX:e,sourceY:t,targetX:n,targetY:r}){let[i,o,s,a]=$Ce({sourceX:e,sourceY:t,targetX:n,targetY:r});return[`M ${e},${t}L ${n},${r}`,i,o,s,a]}var qQ=(0,lt.memo)(({sourceX:e,sourceY:t,targetX:n,targetY:r,label:i,labelStyle:o,labelShowBg:s,labelBgStyle:a,labelBgPadding:l,labelBgBorderRadius:u,style:c,markerEnd:f,markerStart:d,interactionWidth:h})=>{let[m,g,b]=kAt({sourceX:e,sourceY:t,targetX:n,targetY:r});return(0,At.jsx)(Vy,{path:m,labelX:g,labelY:b,label:i,labelStyle:o,labelShowBg:s,labelBgStyle:a,labelBgPadding:l,labelBgBorderRadius:u,style:c,markerEnd:f,markerStart:d,interactionWidth:h})});qQ.displayName="StraightEdge";function fI(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function PCe({pos:e,x1:t,y1:n,x2:r,y2:i,c:o}){switch(e){case yn.Left:return[t-fI(t-r,o),n];case yn.Right:return[t+fI(r-t,o),n];case yn.Top:return[t,n-fI(n-i,o)];case yn.Bottom:return[t,n+fI(i-n,o)]}}function xI({sourceX:e,sourceY:t,sourcePosition:n=yn.Bottom,targetX:r,targetY:i,targetPosition:o=yn.Top,curvature:s=.25}){let[a,l]=PCe({pos:n,x1:e,y1:t,x2:r,y2:i,c:s}),[u,c]=PCe({pos:o,x1:r,y1:i,x2:e,y2:t,c:s}),[f,d,h,m]=KCe({sourceX:e,sourceY:t,targetX:r,targetY:i,sourceControlX:a,sourceControlY:l,targetControlX:u,targetControlY:c});return[`M${e},${t} C${a},${l} ${u},${c} ${r},${i}`,f,d,h,m]}var gI=(0,lt.memo)(({sourceX:e,sourceY:t,targetX:n,targetY:r,sourcePosition:i=yn.Bottom,targetPosition:o=yn.Top,label:s,labelStyle:a,labelShowBg:l,labelBgStyle:u,labelBgPadding:c,labelBgBorderRadius:f,style:d,markerEnd:h,markerStart:m,pathOptions:g,interactionWidth:b})=>{let[v,x,y]=xI({sourceX:e,sourceY:t,sourcePosition:i,targetX:n,targetY:r,targetPosition:o,curvature:g?.curvature});return(0,At.jsx)(Vy,{path:v,labelX:x,labelY:y,label:s,labelStyle:a,labelShowBg:l,labelBgStyle:u,labelBgPadding:c,labelBgBorderRadius:f,style:d,markerEnd:h,markerStart:m,interactionWidth:b})});gI.displayName="BezierEdge";var $Q=(0,lt.createContext)(null),AAt=$Q.Provider;$Q.Consumer;var CAt=()=>(0,lt.useContext)($Q),SAt=e=>"id"in e&&"source"in e&&"target"in e;var OAt=({source:e,sourceHandle:t,target:n,targetHandle:r})=>`reactflow__edge-${e}${t||""}-${n}${r||""}`,RQ=(e,t)=>typeof e>"u"?"":typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(r=>`${r}=${e[r]}`).join("&")}`,EAt=(e,t)=>t.some(n=>n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle)),MAt=(e,t)=>{if(!e.source||!e.target)return XCe("006",hm.error006()),t;let n;return SAt(e)?n={...e}:n={...e,id:OAt(e)},EAt(n,t)?t:t.concat(n)};var ZCe=({x:e,y:t},[n,r,i],o,[s,a])=>{let l={x:(e-n)/i,y:(t-r)/i};return o?{x:s*Math.round(l.x/s),y:a*Math.round(l.y/a)}:l},BAt=({x:e,y:t},[n,r,i])=>({x:e*i+n,y:t*i+r}),r5=(e,t=[0,0])=>{if(!e)return{x:0,y:0,positionAbsolute:{x:0,y:0}};let n=(e.width??0)*t[0],r=(e.height??0)*t[1],i={x:e.position.x-n,y:e.position.y-r};return{...i,positionAbsolute:e.positionAbsolute?{x:e.positionAbsolute.x-n,y:e.positionAbsolute.y-r}:i}},UCe=(e,t=[0,0])=>{if(e.length===0)return{x:0,y:0,width:0,height:0};let n=e.reduce((r,i)=>{let{x:o,y:s}=r5(i,t).positionAbsolute;return vAt(r,HCe({x:o,y:s,width:i.width||0,height:i.height||0}))},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return yAt(n)},QCe=(e,t,[n,r,i]=[0,0,1],o=!1,s=!1,a=[0,0])=>{let l={x:(t.x-n)/i,y:(t.y-r)/i,width:t.width/i,height:t.height/i},u=[];return e.forEach(c=>{let{width:f,height:d,selectable:h=!0,hidden:m=!1}=c;if(s&&!h||m)return!1;let{positionAbsolute:g}=r5(c,a),b={x:g.x,y:g.y,width:f||0,height:d||0},v=zQ(l,b),x=typeof f>"u"||typeof d>"u"||f===null||d===null,y=o&&v>0,_=(f||0)*(d||0);(x||y||v>=_||c.dragging)&&u.push(c)}),u},eSe=(e,t)=>{let n=e.map(r=>r.id);return t.filter(r=>n.includes(r.source)||n.includes(r.target))},tSe=(e,t,n,r,i,o=.1)=>{let s=t/(e.width*(1+o)),a=n/(e.height*(1+o)),l=Math.min(s,a),u=o5(l,r,i),c=e.x+e.width/2,f=e.y+e.height/2,d=t/2-c*u,h=n/2-f*u;return[d,h,u]},Dy=(e,t=0)=>e.transition().duration(t);function kCe(e,t,n,r){return(t[n]||[]).reduce((i,o)=>(`${e.id}-${o.id}-${n}`!==r&&i.push({id:o.id||null,type:n,nodeId:e.id,x:(e.positionAbsolute?.x??0)+o.x+o.width/2,y:(e.positionAbsolute?.y??0)+o.y+o.height/2}),i),[])}function NAt(e,t,n){let r=[],i=1/0;return n.forEach(o=>{let s=Math.sqrt(Math.pow(o.x-e.x,2)+Math.pow(o.y-e.y,2));s<=t&&(s<i?r=[o]:s===i&&r.push(o),i=s)}),r.length?r.length===1?r[0]:r.find(o=>o.type==="target")||r[0]:null}var GAt={source:null,target:null,sourceHandle:null,targetHandle:null};function nSe(e,t,n,r,i,o,s,a){let l=o==="target",u=a.querySelector(`.react-flow__handle[data-id="${t?.nodeId}-${t?.id}-${t?.type}"]`),{x:c,y:f}=cv(e),d=a.elementFromPoint(c,f),h=d?.classList.contains("react-flow__handle")?d:u,m={handleDomNode:h,isValid:!1,connection:GAt,endHandle:null};if(h){let g=rSe(void 0,h),b=h.getAttribute("data-nodeid"),v=h.getAttribute("data-handleid"),x=h.classList.contains("connectable"),y=h.classList.contains("connectableend"),_={source:l?b:r,sourceHandle:l?v:i,target:l?r:b,targetHandle:l?i:v};m.connection=_,x&&y&&(n===Ry.Strict?l&&g==="source"||!l&&g==="target":b!==r||v!==i)&&(m.endHandle={nodeId:b,handleId:v,type:g},m.isValid=s(_))}return m}function FAt({nodes:e,nodeId:t,handleId:n,handleType:r}){return e.reduce((i,o)=>{if(o[ua]){let{handleBounds:s}=o[ua],a=[],l=[];s&&(a=kCe(o,s,"source",`${t}-${n}-${r}`),l=kCe(o,s,"target",`${t}-${n}-${r}`)),i.push(...a,...l)}return i},[])}function rSe(e,t){return e||(t?.classList.contains("target")?"target":t?.classList.contains("source")?"source":null)}function MQ(e){e?.classList.remove("valid","connecting","react-flow__handle-valid","react-flow__handle-connecting")}function IAt(e,t){let n=null;return t?n="valid":e&&!t&&(n="invalid"),n}function iSe({event:e,handleId:t,nodeId:n,onConnect:r,isTarget:i,getState:o,setState:s,isValidConnection:a,edgeUpdaterType:l,onEdgeUpdateEnd:u}){let c=jCe(e.target),{connectionMode:f,domNode:d,autoPanOnConnect:h,connectionRadius:m,onConnectStart:g,panBy:b,getNodes:v,cancelConnection:x}=o(),y=0,_,{x:w,y:k}=cv(e),O=c?.elementFromPoint(w,k),M=rSe(l,O),I=d?.getBoundingClientRect();if(!I||!M)return;let W,J=cv(e,I),H=!1,ee=null,j=!1,V=null,B=FAt({nodes:v(),nodeId:n,handleId:t,handleType:M}),N=()=>{if(!h)return;let[G,T]=JCe(J,I);b({x:G,y:T}),y=requestAnimationFrame(N)};s({connectionPosition:J,connectionStatus:null,connectionNodeId:n,connectionHandleId:t,connectionHandleType:M,connectionStartHandle:{nodeId:n,handleId:t,type:M},connectionEndHandle:null}),g?.(e,{nodeId:n,handleId:t,handleType:M});function C(G){let{transform:T}=o();J=cv(G,I),_=NAt(ZCe(J,T,!1,[1,1]),m,B),H||(N(),H=!0);let Q=nSe(G,_,f,n,t,i?"target":"source",a,c);if(V=Q.handleDomNode,ee=Q.connection,j=Q.isValid,s({connectionPosition:_&&j?BAt({x:_.x,y:_.y},T):J,connectionStatus:IAt(!!_,j),connectionEndHandle:Q.endHandle}),!_&&!j&&!V)return MQ(W);ee.source!==ee.target&&V&&(MQ(W),W=V,V.classList.add("connecting","react-flow__handle-connecting"),V.classList.toggle("valid",j),V.classList.toggle("react-flow__handle-valid",j))}function S(G){(_||V)&&ee&&j&&r?.(ee),o().onConnectEnd?.(G),l&&u?.(G),MQ(W),x(),cancelAnimationFrame(y),H=!1,j=!1,ee=null,V=null,c.removeEventListener("mousemove",C),c.removeEventListener("mouseup",S),c.removeEventListener("touchmove",C),c.removeEventListener("touchend",S)}c.addEventListener("mousemove",C),c.addEventListener("mouseup",S),c.addEventListener("touchmove",C),c.addEventListener("touchend",S)}var ACe=()=>!0,zAt=e=>({connectionStartHandle:e.connectionStartHandle,connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName}),TAt=(e,t,n)=>r=>{let{connectionStartHandle:i,connectionEndHandle:o,connectionClickStartHandle:s}=r;return{connecting:i?.nodeId===e&&i?.handleId===t&&i?.type===n||o?.nodeId===e&&o?.handleId===t&&o?.type===n,clickConnecting:s?.nodeId===e&&s?.handleId===t&&s?.type===n}},oSe=(0,lt.forwardRef)(({type:e="source",position:t=yn.Top,isValidConnection:n,isConnectable:r=!0,isConnectableStart:i=!0,isConnectableEnd:o=!0,id:s,onConnect:a,children:l,className:u,onMouseDown:c,onTouchStart:f,...d},h)=>{let m=s||null,g=e==="target",b=zl(),v=CAt(),{connectOnClick:x,noPanClassName:y}=Qo(zAt,sl),{connecting:_,clickConnecting:w}=Qo(TAt(v,m,e),sl);v||b.getState().onError?.("010",hm.error010());let k=I=>{let{defaultEdgeOptions:W,onConnect:J,hasDefaultEdges:H}=b.getState(),ee={...W,...I};if(H){let{edges:j,setEdges:V}=b.getState();V(MAt(ee,j))}J?.(ee),a?.(ee)},O=I=>{if(!v)return;let W=qCe(I);i&&(W&&I.button===0||!W)&&iSe({event:I,handleId:m,nodeId:v,onConnect:k,isTarget:g,getState:b.getState,setState:b.setState,isValidConnection:n||b.getState().isValidConnection||ACe}),W?c?.(I):f?.(I)},M=I=>{let{onClickConnectStart:W,onClickConnectEnd:J,connectionClickStartHandle:H,connectionMode:ee,isValidConnection:j}=b.getState();if(!v||!H&&!i)return;if(!H){W?.(I,{nodeId:v,handleId:m,handleType:e}),b.setState({connectionClickStartHandle:{nodeId:v,type:e,handleId:m}});return}let V=jCe(I.target),B=n||j||ACe,{connection:N,isValid:C}=nSe(I,{nodeId:v,id:m,type:e},ee,H.nodeId,H.handleId||null,H.type,B,V);C&&k(N),J?.(I),b.setState({connectionClickStartHandle:null})};return(0,At.jsx)("div",{"data-handleid":m,"data-nodeid":v,"data-handlepos":t,"data-id":`${v}-${m}-${e}`,className:Fl(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",y,u,{source:!g,target:g,connectable:r,connectablestart:i,connectableend:o,connecting:w,connectionindicator:r&&(i&&!_||o&&_)}]),onMouseDown:O,onTouchStart:O,onClick:x?M:void 0,ref:h,...d,children:l})});oSe.displayName="Handle";var Ly=(0,lt.memo)(oSe),sSe=({data:e,isConnectable:t,targetPosition:n=yn.Top,sourcePosition:r=yn.Bottom})=>(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)(Ly,{type:"target",position:n,isConnectable:t}),e?.label,(0,At.jsx)(Ly,{type:"source",position:r,isConnectable:t})]});sSe.displayName="DefaultNode";var LQ=(0,lt.memo)(sSe),aSe=({data:e,isConnectable:t,sourcePosition:n=yn.Bottom})=>(0,At.jsxs)(At.Fragment,{children:[e?.label,(0,At.jsx)(Ly,{type:"source",position:n,isConnectable:t})]});aSe.displayName="InputNode";var lSe=(0,lt.memo)(aSe),uSe=({data:e,isConnectable:t,targetPosition:n=yn.Top})=>(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)(Ly,{type:"target",position:n,isConnectable:t}),e?.label]});uSe.displayName="OutputNode";var cSe=(0,lt.memo)(uSe),KQ=()=>null;KQ.displayName="GroupNode";var DAt=e=>({selectedNodes:e.getNodes().filter(t=>t.selected),selectedEdges:e.edges.filter(t=>t.selected)}),hI=e=>e.id;function RAt(e,t){return sl(e.selectedNodes.map(hI),t.selectedNodes.map(hI))&&sl(e.selectedEdges.map(hI),t.selectedEdges.map(hI))}var dSe=(0,lt.memo)(({onSelectionChange:e})=>{let t=zl(),{selectedNodes:n,selectedEdges:r}=Qo(DAt,RAt);return(0,lt.useEffect)(()=>{let i={nodes:n,edges:r};e?.(i),t.getState().onSelectionChange?.(i)},[n,r,e]),null});dSe.displayName="SelectionListener";var LAt=e=>!!e.onSelectionChange;function VAt({onSelectionChange:e}){let t=Qo(LAt);return e||t?(0,At.jsx)(dSe,{onSelectionChange:e}):null}var JAt=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset});function Z4(e,t){(0,lt.useEffect)(()=>{typeof e<"u"&&t(e)},[e])}function Wr(e,t,n){(0,lt.useEffect)(()=>{typeof t<"u"&&n({[e]:t})},[t])}var jAt=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,onConnect:i,onConnectStart:o,onConnectEnd:s,onClickConnectStart:a,onClickConnectEnd:l,nodesDraggable:u,nodesConnectable:c,nodesFocusable:f,edgesFocusable:d,edgesUpdatable:h,elevateNodesOnSelect:m,minZoom:g,maxZoom:b,nodeExtent:v,onNodesChange:x,onEdgesChange:y,elementsSelectable:_,connectionMode:w,snapGrid:k,snapToGrid:O,translateExtent:M,connectOnClick:I,defaultEdgeOptions:W,fitView:J,fitViewOptions:H,onNodesDelete:ee,onEdgesDelete:j,onNodeDrag:V,onNodeDragStart:B,onNodeDragStop:N,onSelectionDrag:C,onSelectionDragStart:S,onSelectionDragStop:G,noPanClassName:T,nodeOrigin:Q,rfId:U,autoPanOnConnect:F,autoPanOnNodeDrag:D,onError:L,connectionRadius:$,isValidConnection:Z})=>{let{setNodes:se,setEdges:Y,setDefaultNodesAndEdges:ue,setMinZoom:pe,setMaxZoom:oe,setTranslateExtent:de,setNodeExtent:ve,reset:Ae}=Qo(JAt,sl),Ce=zl();return(0,lt.useEffect)(()=>{let Ge=r?.map(Ee=>({...Ee,...W}));return ue(n,Ge),()=>{Ae()}},[]),Wr("defaultEdgeOptions",W,Ce.setState),Wr("connectionMode",w,Ce.setState),Wr("onConnect",i,Ce.setState),Wr("onConnectStart",o,Ce.setState),Wr("onConnectEnd",s,Ce.setState),Wr("onClickConnectStart",a,Ce.setState),Wr("onClickConnectEnd",l,Ce.setState),Wr("nodesDraggable",u,Ce.setState),Wr("nodesConnectable",c,Ce.setState),Wr("nodesFocusable",f,Ce.setState),Wr("edgesFocusable",d,Ce.setState),Wr("edgesUpdatable",h,Ce.setState),Wr("elementsSelectable",_,Ce.setState),Wr("elevateNodesOnSelect",m,Ce.setState),Wr("snapToGrid",O,Ce.setState),Wr("snapGrid",k,Ce.setState),Wr("onNodesChange",x,Ce.setState),Wr("onEdgesChange",y,Ce.setState),Wr("connectOnClick",I,Ce.setState),Wr("fitViewOnInit",J,Ce.setState),Wr("fitViewOnInitOptions",H,Ce.setState),Wr("onNodesDelete",ee,Ce.setState),Wr("onEdgesDelete",j,Ce.setState),Wr("onNodeDrag",V,Ce.setState),Wr("onNodeDragStart",B,Ce.setState),Wr("onNodeDragStop",N,Ce.setState),Wr("onSelectionDrag",C,Ce.setState),Wr("onSelectionDragStart",S,Ce.setState),Wr("onSelectionDragStop",G,Ce.setState),Wr("noPanClassName",T,Ce.setState),Wr("nodeOrigin",Q,Ce.setState),Wr("rfId",U,Ce.setState),Wr("autoPanOnConnect",F,Ce.setState),Wr("autoPanOnNodeDrag",D,Ce.setState),Wr("onError",L,Ce.setState),Wr("connectionRadius",$,Ce.setState),Wr("isValidConnection",Z,Ce.setState),Z4(e,se),Z4(t,Y),Z4(g,pe),Z4(b,oe),Z4(M,de),Z4(v,ve),null},CCe={display:"none"},HAt={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},pSe="react-flow__node-desc",fSe="react-flow__edge-desc",WAt="react-flow__aria-live",XAt=e=>e.ariaLiveMessage;function qAt({rfId:e}){let t=Qo(XAt);return(0,At.jsx)("div",{id:`${WAt}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:HAt,children:t})}function $At({rfId:e,disableKeyboardA11y:t}){return(0,At.jsxs)(At.Fragment,{children:[(0,At.jsxs)("div",{id:`${pSe}-${e}`,style:CCe,children:["Press enter or space to select a node.",!t&&"You can then use the arrow keys to move the node around."," Press delete to remove it and escape to cancel."," "]}),(0,At.jsx)("div",{id:`${fSe}-${e}`,style:CCe,children:"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel."}),!t&&(0,At.jsx)(qAt,{rfId:e})]})}var KAt=(e,t,n)=>n===yn.Left?e-t:n===yn.Right?e+t:e,YAt=(e,t,n)=>n===yn.Top?e-t:n===yn.Bottom?e+t:e,SCe="react-flow__edgeupdater",OCe=({position:e,centerX:t,centerY:n,radius:r=10,onMouseDown:i,onMouseEnter:o,onMouseOut:s,type:a})=>(0,At.jsx)("circle",{onMouseDown:i,onMouseEnter:o,onMouseOut:s,className:Fl([SCe,`${SCe}-${a}`]),cx:KAt(t,r,e),cy:YAt(n,r,e),r,stroke:"transparent",fill:"transparent"}),ZAt=()=>!0,U4=e=>{let t=({id:n,className:r,type:i,data:o,onClick:s,onEdgeDoubleClick:a,selected:l,animated:u,label:c,labelStyle:f,labelShowBg:d,labelBgStyle:h,labelBgPadding:m,labelBgBorderRadius:g,style:b,source:v,target:x,sourceX:y,sourceY:_,targetX:w,targetY:k,sourcePosition:O,targetPosition:M,elementsSelectable:I,hidden:W,sourceHandleId:J,targetHandleId:H,onContextMenu:ee,onMouseEnter:j,onMouseMove:V,onMouseLeave:B,edgeUpdaterRadius:N,onEdgeUpdate:C,onEdgeUpdateStart:S,onEdgeUpdateEnd:G,markerEnd:T,markerStart:Q,rfId:U,ariaLabel:F,isFocusable:D,isUpdatable:L,pathOptions:$,interactionWidth:Z})=>{let se=(0,lt.useRef)(null),[Y,ue]=(0,lt.useState)(!1),[pe,oe]=(0,lt.useState)(!1),de=zl(),ve=(0,lt.useMemo)(()=>`url(#${RQ(Q,U)})`,[Q,U]),Ae=(0,lt.useMemo)(()=>`url(#${RQ(T,U)})`,[T,U]);if(W)return null;let Ce=be=>{let{edges:ye,addSelectedEdges:Oe}=de.getState();if(I&&(de.setState({nodesSelectionActive:!1}),Oe([n])),s){let Me=ye.find(Ke=>Ke.id===n);s(be,Me)}},Ge=Bk(n,de.getState,a),Ee=Bk(n,de.getState,ee),Ne=Bk(n,de.getState,j),De=Bk(n,de.getState,V),Ue=Bk(n,de.getState,B),Re=(be,ye)=>{if(be.button!==0)return;let{edges:Oe,isValidConnection:Me}=de.getState(),Ke=ye?x:v,gt=(ye?H:J)||null,ft=ye?"target":"source",Bt=Me||ZAt,Ft=ye,Kn=Oe.find(Yn=>Yn.id===n);oe(!0),S?.(be,Kn,ft);let Ut=Yn=>{oe(!1),G?.(Yn,Kn,ft)};iSe({event:be,handleId:gt,nodeId:Ke,onConnect:Yn=>C?.(Kn,Yn),isTarget:Ft,getState:de.getState,setState:de.setState,isValidConnection:Bt,edgeUpdaterType:ft,onEdgeUpdateEnd:Ut})},je=be=>Re(be,!0),$e=be=>Re(be,!1),Le=()=>ue(!0),Xe=()=>ue(!1),mt=!I&&!s,fe=be=>{if(WCe.includes(be.key)&&I){let{unselectNodesAndEdges:ye,addSelectedEdges:Oe,edges:Me}=de.getState();be.key==="Escape"?(se.current?.blur(),ye({edges:[Me.find(gt=>gt.id===n)]})):Oe([n])}};return(0,At.jsxs)("g",{className:Fl(["react-flow__edge",`react-flow__edge-${i}`,r,{selected:l,animated:u,inactive:mt,updating:Y}]),onClick:Ce,onDoubleClick:Ge,onContextMenu:Ee,onMouseEnter:Ne,onMouseMove:De,onMouseLeave:Ue,onKeyDown:D?fe:void 0,tabIndex:D?0:void 0,role:D?"button":void 0,"data-testid":`rf__edge-${n}`,"aria-label":F===null?void 0:F||`Edge from ${v} to ${x}`,"aria-describedby":D?`${fSe}-${U}`:void 0,ref:se,children:[!pe&&(0,At.jsx)(e,{id:n,source:v,target:x,selected:l,animated:u,label:c,labelStyle:f,labelShowBg:d,labelBgStyle:h,labelBgPadding:m,labelBgBorderRadius:g,data:o,style:b,sourceX:y,sourceY:_,targetX:w,targetY:k,sourcePosition:O,targetPosition:M,sourceHandleId:J,targetHandleId:H,markerStart:ve,markerEnd:Ae,pathOptions:$,interactionWidth:Z}),L&&(0,At.jsxs)(At.Fragment,{children:[(L==="source"||L===!0)&&(0,At.jsx)(OCe,{position:O,centerX:y,centerY:_,radius:N,onMouseDown:je,onMouseEnter:Le,onMouseOut:Xe,type:"source"}),(L==="target"||L===!0)&&(0,At.jsx)(OCe,{position:M,centerX:w,centerY:k,radius:N,onMouseDown:$e,onMouseEnter:Le,onMouseOut:Xe,type:"target"})]})]})};return t.displayName="EdgeWrapper",(0,lt.memo)(t)};function UAt(e){let t={default:U4(e.default||gI),straight:U4(e.bezier||qQ),step:U4(e.step||XQ),smoothstep:U4(e.step||yI),simplebezier:U4(e.simplebezier||WQ)},n={},r=Object.keys(e).filter(i=>!["default","bezier"].includes(i)).reduce((i,o)=>(i[o]=U4(e[o]||gI),i),n);return{...t,...r}}function ECe(e,t,n=null){let r=(n?.x||0)+t.x,i=(n?.y||0)+t.y,o=n?.width||t.width,s=n?.height||t.height;switch(e){case yn.Top:return{x:r+o/2,y:i};case yn.Right:return{x:r+o,y:i+s/2};case yn.Bottom:return{x:r+o/2,y:i+s};case yn.Left:return{x:r,y:i+s/2}}}function MCe(e,t){return e?e.length===1||!t?e[0]:t&&e.find(n=>n.id===t)||null:null}var QAt=(e,t,n,r,i,o)=>{let s=ECe(n,e,t),a=ECe(o,r,i);return{sourceX:s.x,sourceY:s.y,targetX:a.x,targetY:a.y}};function eCt({sourcePos:e,targetPos:t,sourceWidth:n,sourceHeight:r,targetWidth:i,targetHeight:o,width:s,height:a,transform:l}){let u={x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x+n,t.x+i),y2:Math.max(e.y+r,t.y+o)};u.x===u.x2&&(u.x2+=1),u.y===u.y2&&(u.y2+=1);let c=HCe({x:(0-l[0])/l[2],y:(0-l[1])/l[2],width:s/l[2],height:a/l[2]}),f=Math.max(0,Math.min(c.x2,u.x2)-Math.max(c.x,u.x)),d=Math.max(0,Math.min(c.y2,u.y2)-Math.max(c.y,u.y));return Math.ceil(f*d)>0}function BCe(e){let t=e?.[ua]?.handleBounds||null,n=t&&e?.width&&e?.height&&typeof e?.positionAbsolute?.x<"u"&&typeof e?.positionAbsolute?.y<"u";return[{x:e?.positionAbsolute?.x||0,y:e?.positionAbsolute?.y||0,width:e?.width||0,height:e?.height||0},t,!!n]}function hSe(e,t){if(!e.parentNode)return!1;let n=t.get(e.parentNode);return n?n.selected?!0:hSe(n,t):!1}function NCe(e,t,n){let r=e;do{if(r?.matches(t))return!0;if(r===n.current)return!1;r=r.parentElement}while(r);return!1}function tCt(e,t,n,r){return Array.from(e.values()).filter(i=>(i.selected||i.id===r)&&(!i.parentNode||!hSe(i,e))&&(i.draggable||t&&typeof i.draggable>"u")).map(i=>({id:i.id,position:i.position||{x:0,y:0},positionAbsolute:i.positionAbsolute||{x:0,y:0},distance:{x:n.x-(i.positionAbsolute?.x??0),y:n.y-(i.positionAbsolute?.y??0)},delta:{x:0,y:0},extent:i.extent,parentNode:i.parentNode,width:i.width,height:i.height}))}function mSe(e,t,n,r,i=[0,0],o){let s=e.extent||r;if(e.extent==="parent")if(e.parentNode&&e.width&&e.height){let u=n.get(e.parentNode),{x:c,y:f}=r5(u,i).positionAbsolute;s=u&&qd(c)&&qd(f)&&qd(u.width)&&qd(u.height)?[[c+e.width*i[0],f+e.height*i[1]],[c+u.width-e.width+e.width*i[0],f+u.height-e.height+e.height*i[1]]]:s}else o?.("005",hm.error005()),s=r;else if(e.extent&&e.parentNode){let u=n.get(e.parentNode),{x:c,y:f}=r5(u,i).positionAbsolute;s=[[e.extent[0][0]+c,e.extent[0][1]+f],[e.extent[1][0]+c,e.extent[1][1]+f]]}let a={x:0,y:0};if(e.parentNode){let u=n.get(e.parentNode);a=r5(u,i).positionAbsolute}let l=s?HQ(t,s):t;return{position:{x:l.x-a.x,y:l.y-a.y},positionAbsolute:l}}function BQ({nodeId:e,dragItems:t,nodeInternals:n}){let r=t.map(i=>({...n.get(i.id),position:i.position,positionAbsolute:i.positionAbsolute}));return[e?r.find(i=>i.id===e):r[0],r]}var GCe=(e,t,n,r)=>{let i=t.querySelectorAll(e);if(!i||!i.length)return null;let o=Array.from(i),s=t.getBoundingClientRect(),a={x:s.width*r[0],y:s.height*r[1]};return o.map(l=>{let u=l.getBoundingClientRect();return{id:l.getAttribute("data-handleid"),position:l.getAttribute("data-handlepos"),x:(u.left-s.left-a.x)/n,y:(u.top-s.top-a.y)/n,...jQ(l)}})};function Nk(e,t,n){return n===void 0?n:r=>{let i=t().nodeInternals.get(e);n(r,{...i})}}function VQ({id:e,store:t,unselect:n=!1,nodeRef:r}){let{addSelectedNodes:i,unselectNodesAndEdges:o,multiSelectionActive:s,nodeInternals:a}=t.getState(),l=a.get(e);t.setState({nodesSelectionActive:!1}),l.selected?(n||l.selected&&s)&&(o({nodes:[l]}),requestAnimationFrame(()=>r?.current?.blur())):i([e])}function nCt(){let e=zl();return(0,lt.useCallback)(({sourceEvent:n})=>{let{transform:r,snapGrid:i,snapToGrid:o}=e.getState(),s=n.touches?n.touches[0].clientX:n.clientX,a=n.touches?n.touches[0].clientY:n.clientY,l={x:(s-r[0])/r[2],y:(a-r[1])/r[2]};return{xSnapped:o?i[0]*Math.round(l.x/i[0]):l.x,ySnapped:o?i[1]*Math.round(l.y/i[1]):l.y,...l}},[])}function NQ(e){return(t,n,r)=>e?.(t,r)}function gSe({nodeRef:e,disabled:t=!1,noDragClassName:n,handleSelector:r,nodeId:i,isSelectable:o,selectNodesOnDrag:s}){let a=zl(),[l,u]=(0,lt.useState)(!1),c=(0,lt.useRef)([]),f=(0,lt.useRef)({x:null,y:null}),d=(0,lt.useRef)(0),h=(0,lt.useRef)(null),m=(0,lt.useRef)({x:0,y:0}),g=(0,lt.useRef)(null),b=(0,lt.useRef)(!1),v=nCt();return(0,lt.useEffect)(()=>{if(e?.current){let x=Il(e.current),y=({x:w,y:k})=>{let{nodeInternals:O,onNodeDrag:M,onSelectionDrag:I,updateNodePositions:W,nodeExtent:J,snapGrid:H,snapToGrid:ee,nodeOrigin:j,onError:V}=a.getState();f.current={x:w,y:k};let B=!1;if(c.current=c.current.map(C=>{let S={x:w-C.distance.x,y:k-C.distance.y};ee&&(S.x=H[0]*Math.round(S.x/H[0]),S.y=H[1]*Math.round(S.y/H[1]));let G=mSe(C,S,O,J,j,V);return B=B||C.position.x!==G.position.x||C.position.y!==G.position.y,C.position=G.position,C.positionAbsolute=G.positionAbsolute,C}),!B)return;W(c.current,!0,!0),u(!0);let N=i?M:NQ(I);if(N&&g.current){let[C,S]=BQ({nodeId:i,dragItems:c.current,nodeInternals:O});N(g.current,C,S)}},_=()=>{if(!h.current)return;let[w,k]=JCe(m.current,h.current);if(w!==0||k!==0){let{transform:O,panBy:M}=a.getState();f.current.x=(f.current.x??0)-w/O[2],f.current.y=(f.current.y??0)-k/O[2],M({x:w,y:k})&&y(f.current)}d.current=requestAnimationFrame(_)};if(t)x.on(".drag",null);else{let w=hQ().on("start",k=>{let{nodeInternals:O,multiSelectionActive:M,domNode:I,nodesDraggable:W,unselectNodesAndEdges:J,onNodeDragStart:H,onSelectionDragStart:ee}=a.getState(),j=i?H:NQ(ee);!s&&!M&&i&&(O.get(i)?.selected||J()),i&&o&&s&&VQ({id:i,store:a,nodeRef:e});let V=v(k);if(f.current=V,c.current=tCt(O,W,V,i),j&&c.current){let[B,N]=BQ({nodeId:i,dragItems:c.current,nodeInternals:O});j(k.sourceEvent,B,N)}h.current=I?.getBoundingClientRect()||null,m.current=cv(k.sourceEvent,h.current)}).on("drag",k=>{let O=v(k),{autoPanOnNodeDrag:M}=a.getState();!b.current&&M&&(b.current=!0,_()),(f.current.x!==O.xSnapped||f.current.y!==O.ySnapped)&&c.current&&(g.current=k.sourceEvent,m.current=cv(k.sourceEvent,h.current),y(O))}).on("end",k=>{if(u(!1),b.current=!1,cancelAnimationFrame(d.current),c.current){let{updateNodePositions:O,nodeInternals:M,onNodeDragStop:I,onSelectionDragStop:W}=a.getState(),J=i?I:NQ(W);if(O(c.current,!1,!1),J){let[H,ee]=BQ({nodeId:i,dragItems:c.current,nodeInternals:M});J(k.sourceEvent,H,ee)}}}).filter(k=>{let O=k.target;return!k.button&&(!n||!NCe(O,`.${n}`,e))&&(!r||NCe(O,r,e))});return x.call(w),()=>{x.on(".drag",null)}}}},[e,t,n,r,o,a,i,s,v]),l}function vSe(){let e=zl();return(0,lt.useCallback)(n=>{let{nodeInternals:r,nodeExtent:i,updateNodePositions:o,getNodes:s,snapToGrid:a,snapGrid:l,onError:u,nodesDraggable:c}=e.getState(),f=s().filter(x=>x.selected&&(x.draggable||c&&typeof x.draggable>"u")),d=a?l[0]:5,h=a?l[1]:5,m=n.isShiftPressed?4:1,g=n.x*d*m,b=n.y*h*m,v=f.map(x=>{if(x.positionAbsolute){let y={x:x.positionAbsolute.x+g,y:x.positionAbsolute.y+b};a&&(y.x=l[0]*Math.round(y.x/l[0]),y.y=l[1]*Math.round(y.y/l[1]));let{positionAbsolute:_,position:w}=mSe(x,y,r,i,void 0,u);x.position=w,x.positionAbsolute=_}return x});o(v,!0,!1)},[])}var i5={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},Gk=e=>{let t=({id:n,type:r,data:i,xPos:o,yPos:s,xPosOrigin:a,yPosOrigin:l,selected:u,onClick:c,onMouseEnter:f,onMouseMove:d,onMouseLeave:h,onContextMenu:m,onDoubleClick:g,style:b,className:v,isDraggable:x,isSelectable:y,isConnectable:_,isFocusable:w,selectNodesOnDrag:k,sourcePosition:O,targetPosition:M,hidden:I,resizeObserver:W,dragHandle:J,zIndex:H,isParent:ee,noDragClassName:j,noPanClassName:V,initialized:B,disableKeyboardA11y:N,ariaLabel:C,rfId:S})=>{let G=zl(),T=(0,lt.useRef)(null),Q=(0,lt.useRef)(O),U=(0,lt.useRef)(M),F=(0,lt.useRef)(r),D=y||x||c||f||d||h,L=vSe(),$=Nk(n,G.getState,f),Z=Nk(n,G.getState,d),se=Nk(n,G.getState,h),Y=Nk(n,G.getState,m),ue=Nk(n,G.getState,g),pe=ve=>{if(y&&(!k||!x)&&VQ({id:n,store:G,nodeRef:T}),c){let Ae=G.getState().nodeInternals.get(n);c(ve,{...Ae})}},oe=ve=>{if(!TQ(ve))if(WCe.includes(ve.key)&&y){let Ae=ve.key==="Escape";VQ({id:n,store:G,unselect:Ae,nodeRef:T})}else!N&&x&&u&&Object.prototype.hasOwnProperty.call(i5,ve.key)&&(G.setState({ariaLiveMessage:`Moved selected node ${ve.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~o}, y: ${~~s}`}),L({x:i5[ve.key].x,y:i5[ve.key].y,isShiftPressed:ve.shiftKey}))};(0,lt.useEffect)(()=>{if(T.current&&!I){let ve=T.current;return W?.observe(ve),()=>W?.unobserve(ve)}},[I]),(0,lt.useEffect)(()=>{let ve=F.current!==r,Ae=Q.current!==O,Ce=U.current!==M;T.current&&(ve||Ae||Ce)&&(ve&&(F.current=r),Ae&&(Q.current=O),Ce&&(U.current=M),G.getState().updateNodeDimensions([{id:n,nodeElement:T.current,forceUpdate:!0}]))},[n,r,O,M]);let de=gSe({nodeRef:T,disabled:I||!x,noDragClassName:j,handleSelector:J,nodeId:n,isSelectable:y,selectNodesOnDrag:k});return I?null:(0,At.jsx)("div",{className:Fl(["react-flow__node",`react-flow__node-${r}`,{[V]:x},v,{selected:u,selectable:y,parent:ee,dragging:de}]),ref:T,style:{zIndex:H,transform:`translate(${a}px,${l}px)`,pointerEvents:D?"all":"none",visibility:B?"visible":"hidden",...b},"data-id":n,"data-testid":`rf__node-${n}`,onMouseEnter:$,onMouseMove:Z,onMouseLeave:se,onContextMenu:Y,onClick:pe,onDoubleClick:ue,onKeyDown:w?oe:void 0,tabIndex:w?0:void 0,role:w?"button":void 0,"aria-describedby":N?void 0:`${pSe}-${S}`,"aria-label":C,children:(0,At.jsx)(AAt,{value:n,children:(0,At.jsx)(e,{id:n,data:i,type:r,xPos:o,yPos:s,selected:u,isConnectable:_,sourcePosition:O,targetPosition:M,dragging:de,dragHandle:J,zIndex:H})})})};return t.displayName="NodeWrapper",(0,lt.memo)(t)};function rCt(e){let t={input:Gk(e.input||lSe),default:Gk(e.default||LQ),output:Gk(e.output||cSe),group:Gk(e.group||KQ)},n={},r=Object.keys(e).filter(i=>!["input","default","output","group"].includes(i)).reduce((i,o)=>(i[o]=Gk(e[o]||LQ),i),n);return{...t,...r}}var iCt=({x:e,y:t,width:n,height:r,origin:i})=>!n||!r?{x:e,y:t}:i[0]<0||i[1]<0||i[0]>1||i[1]>1?{x:e,y:t}:{x:e-n*i[0],y:t-r*i[1]},oCt=typeof document<"u"?document:null,Ik=(e=null,t={target:oCt})=>{let[n,r]=(0,lt.useState)(!1),i=(0,lt.useRef)(!1),o=(0,lt.useRef)(new Set([])),[s,a]=(0,lt.useMemo)(()=>{if(e!==null){let u=(Array.isArray(e)?e:[e]).filter(f=>typeof f=="string").map(f=>f.split("+")),c=u.reduce((f,d)=>f.concat(...d),[]);return[u,c]}return[[],[]]},[e]);return(0,lt.useEffect)(()=>{if(e!==null){let l=f=>{if(i.current=f.ctrlKey||f.metaKey||f.shiftKey,!i.current&&TQ(f))return!1;let d=ICe(f.code,a);o.current.add(f[d]),FCe(s,o.current,!1)&&(f.preventDefault(),r(!0))},u=f=>{if(!i.current&&TQ(f))return!1;let d=ICe(f.code,a);FCe(s,o.current,!0)?(r(!1),o.current.clear()):o.current.delete(f[d]),i.current=!1},c=()=>{o.current.clear(),r(!1)};return t?.target?.addEventListener("keydown",l),t?.target?.addEventListener("keyup",u),window.addEventListener("blur",c),()=>{t?.target?.removeEventListener("keydown",l),t?.target?.removeEventListener("keyup",u),window.removeEventListener("blur",c)}}},[e,r]),n};function FCe(e,t,n){return e.filter(r=>n||r.length===t.size).some(r=>r.every(i=>t.has(i)))}function ICe(e,t){return t.includes(e)?"code":"key"}function ySe(e,t,n,r){if(!e.parentNode)return n;let i=t.get(e.parentNode),o=r5(i,r);return ySe(i,t,{x:(n.x??0)+o.x,y:(n.y??0)+o.y,z:(i[ua]?.z??0)>(n.z??0)?i[ua]?.z??0:n.z??0},r)}function xSe(e,t,n){e.forEach(r=>{if(r.parentNode&&!e.has(r.parentNode))throw new Error(`Parent node ${r.parentNode} not found`);if(r.parentNode||n?.[r.id]){let{x:i,y:o,z:s}=ySe(r,e,{...r.position,z:r[ua]?.z??0},t);r.positionAbsolute={x:i,y:o},r[ua].z=s,n?.[r.id]&&(r[ua].isParent=!0)}})}function GQ(e,t,n,r){let i=new Map,o={},s=r?1e3:0;return e.forEach(a=>{let l=(qd(a.zIndex)?a.zIndex:0)+(a.selected?s:0),u=t.get(a.id),c={width:u?.width,height:u?.height,...a,positionAbsolute:{x:a.position.x,y:a.position.y}};a.parentNode&&(c.parentNode=a.parentNode,o[a.parentNode]=!0),Object.defineProperty(c,ua,{enumerable:!1,value:{handleBounds:u?.[ua]?.handleBounds,z:l}}),i.set(a.id,c)}),xSe(i,n,o),i}function _Se(e,t={}){let{getNodes:n,width:r,height:i,minZoom:o,maxZoom:s,d3Zoom:a,d3Selection:l,fitViewOnInitDone:u,fitViewOnInit:c,nodeOrigin:f}=e(),d=t.initial&&!u&&c;if(a&&l&&(d||!t.initial)){let m=n().filter(b=>{let v=t.includeHiddenNodes?b.width&&b.height:!b.hidden;return t.nodes?.length?v&&t.nodes.some(x=>x.id===b.id):v}),g=m.every(b=>b.width&&b.height);if(m.length>0&&g){let b=UCe(m,f),[v,x,y]=tSe(b,r,i,t.minZoom??o,t.maxZoom??s,t.padding??.1),_=Xd.translate(v,x).scale(y);return typeof t.duration=="number"&&t.duration>0?a.transform(Dy(l,t.duration),_):a.transform(l,_),!0}}return!1}function sCt(e,t){return e.forEach(n=>{let r=t.get(n.id);r&&t.set(r.id,{...r,[ua]:r[ua],selected:n.selected})}),new Map(t)}function aCt(e,t){return t.map(n=>{let r=e.find(i=>i.id===n.id);return r&&(n.selected=r.selected),n})}function mI({changedNodes:e,changedEdges:t,get:n,set:r}){let{nodeInternals:i,edges:o,onNodesChange:s,onEdgesChange:a,hasDefaultNodes:l,hasDefaultEdges:u}=n();e?.length&&(l&&r({nodeInternals:sCt(e,i)}),s?.(e)),t?.length&&(u&&r({edges:aCt(t,o)}),a?.(t))}var Q4=()=>{},lCt={zoomIn:Q4,zoomOut:Q4,zoomTo:Q4,getZoom:()=>1,setViewport:Q4,getViewport:()=>({x:0,y:0,zoom:1}),fitView:()=>!1,setCenter:Q4,fitBounds:Q4,project:e=>e,viewportInitialized:!1},uCt=e=>({d3Zoom:e.d3Zoom,d3Selection:e.d3Selection}),cCt=()=>{let e=zl(),{d3Zoom:t,d3Selection:n}=Qo(uCt,sl);return(0,lt.useMemo)(()=>n&&t?{zoomIn:i=>t.scaleBy(Dy(n,i?.duration),1.2),zoomOut:i=>t.scaleBy(Dy(n,i?.duration),1/1.2),zoomTo:(i,o)=>t.scaleTo(Dy(n,o?.duration),i),getZoom:()=>e.getState().transform[2],setViewport:(i,o)=>{let[s,a,l]=e.getState().transform,u=Xd.translate(i.x??s,i.y??a).scale(i.zoom??l);t.transform(Dy(n,o?.duration),u)},getViewport:()=>{let[i,o,s]=e.getState().transform;return{x:i,y:o,zoom:s}},fitView:i=>_Se(e.getState,i),setCenter:(i,o,s)=>{let{width:a,height:l,maxZoom:u}=e.getState(),c=typeof s?.zoom<"u"?s.zoom:u,f=a/2-i*c,d=l/2-o*c,h=Xd.translate(f,d).scale(c);t.transform(Dy(n,s?.duration),h)},fitBounds:(i,o)=>{let{width:s,height:a,minZoom:l,maxZoom:u}=e.getState(),[c,f,d]=tSe(i,s,a,l,u,o?.padding??.1),h=Xd.translate(c,f).scale(d);t.transform(Dy(n,o?.duration),h)},project:i=>{let{transform:o,snapToGrid:s,snapGrid:a}=e.getState();return ZCe(i,o,s,a)},viewportInitialized:!0}:lCt,[t,n])};function bSe(){let e=cCt(),t=zl(),n=(0,lt.useCallback)(()=>t.getState().getNodes().map(g=>({...g})),[]),r=(0,lt.useCallback)(g=>t.getState().nodeInternals.get(g),[]),i=(0,lt.useCallback)(()=>{let{edges:g=[]}=t.getState();return g.map(b=>({...b}))},[]),o=(0,lt.useCallback)(g=>{let{edges:b=[]}=t.getState();return b.find(v=>v.id===g)},[]),s=(0,lt.useCallback)(g=>{let{getNodes:b,setNodes:v,hasDefaultNodes:x,onNodesChange:y}=t.getState(),_=b(),w=typeof g=="function"?g(_):g;if(x)v(w);else if(y){let k=w.length===0?_.map(O=>({type:"remove",id:O.id})):w.map(O=>({item:O,type:"reset"}));y(k)}},[]),a=(0,lt.useCallback)(g=>{let{edges:b=[],setEdges:v,hasDefaultEdges:x,onEdgesChange:y}=t.getState(),_=typeof g=="function"?g(b):g;if(x)v(_);else if(y){let w=_.length===0?b.map(k=>({type:"remove",id:k.id})):_.map(k=>({item:k,type:"reset"}));y(w)}},[]),l=(0,lt.useCallback)(g=>{let b=Array.isArray(g)?g:[g],{getNodes:v,setNodes:x,hasDefaultNodes:y,onNodesChange:_}=t.getState();if(y){let k=[...v(),...b];x(k)}else if(_){let w=b.map(k=>({item:k,type:"add"}));_(w)}},[]),u=(0,lt.useCallback)(g=>{let b=Array.isArray(g)?g:[g],{edges:v=[],setEdges:x,hasDefaultEdges:y,onEdgesChange:_}=t.getState();if(y)x([...v,...b]);else if(_){let w=b.map(k=>({item:k,type:"add"}));_(w)}},[]),c=(0,lt.useCallback)(()=>{let{getNodes:g,edges:b=[],transform:v}=t.getState(),[x,y,_]=v;return{nodes:g().map(w=>({...w})),edges:b.map(w=>({...w})),viewport:{x,y,zoom:_}}},[]),f=(0,lt.useCallback)(({nodes:g,edges:b})=>{let{nodeInternals:v,getNodes:x,edges:y,hasDefaultNodes:_,hasDefaultEdges:w,onNodesDelete:k,onEdgesDelete:O,onNodesChange:M,onEdgesChange:I}=t.getState(),W=(g||[]).map(V=>V.id),J=(b||[]).map(V=>V.id),H=x().reduce((V,B)=>{let N=!W.includes(B.id)&&B.parentNode&&V.find(S=>S.id===B.parentNode);return(typeof B.deletable=="boolean"?B.deletable:!0)&&(W.includes(B.id)||N)&&V.push(B),V},[]),ee=y.filter(V=>typeof V.deletable=="boolean"?V.deletable:!0),j=ee.filter(V=>J.includes(V.id));if(H||j){let V=eSe(H,ee),B=[...j,...V],N=B.reduce((C,S)=>(C.includes(S.id)||C.push(S.id),C),[]);if((w||_)&&(w&&t.setState({edges:y.filter(C=>!N.includes(C.id))}),_&&(H.forEach(C=>{v.delete(C.id)}),t.setState({nodeInternals:new Map(v)}))),N.length>0&&(O?.(B),I&&I(N.map(C=>({id:C,type:"remove"})))),H.length>0&&(k?.(H),M)){let C=H.map(S=>({id:S.id,type:"remove"}));M(C)}}},[]),d=(0,lt.useCallback)(g=>{let b=xAt(g),v=b?null:t.getState().nodeInternals.get(g.id);return[b?g:xCe(v),v,b]},[]),h=(0,lt.useCallback)((g,b=!0,v)=>{let[x,y,_]=d(g);return x?(v||t.getState().getNodes()).filter(w=>{if(!_&&(w.id===y.id||!w.positionAbsolute))return!1;let k=xCe(w),O=zQ(k,x);return b&&O>0||O>=g.width*g.height}):[]},[]),m=(0,lt.useCallback)((g,b,v=!0)=>{let[x]=d(g);if(!x)return!1;let y=zQ(x,b);return v&&y>0||y>=g.width*g.height},[]);return(0,lt.useMemo)(()=>({...e,getNodes:n,getNode:r,getEdges:i,getEdge:o,setNodes:s,setEdges:a,addNodes:l,addEdges:u,toObject:c,deleteElements:f,getIntersectingNodes:h,isNodeIntersecting:m}),[e,n,r,i,o,s,a,l,u,c,f,h,m])}var dCt=({deleteKeyCode:e,multiSelectionKeyCode:t})=>{let n=zl(),{deleteElements:r}=bSe(),i=Ik(e),o=Ik(t);(0,lt.useEffect)(()=>{if(i){let{edges:s,getNodes:a}=n.getState(),l=a().filter(c=>c.selected),u=s.filter(c=>c.selected);r({nodes:l,edges:u}),n.setState({nodesSelectionActive:!1})}},[i]),(0,lt.useEffect)(()=>{n.setState({multiSelectionActive:o})},[o])};function pCt(e){let t=zl();(0,lt.useEffect)(()=>{let n,r=()=>{if(!e.current)return;let i=jQ(e.current);(i.height===0||i.width===0)&&t.getState().onError?.("004",hm.error004()),t.setState({width:i.width||500,height:i.height||500})};return r(),window.addEventListener("resize",r),e.current&&(n=new ResizeObserver(()=>r()),n.observe(e.current)),()=>{window.removeEventListener("resize",r),n&&e.current&&n.unobserve(e.current)}},[])}var YQ={position:"absolute",width:"100%",height:"100%",top:0,left:0},fCt=(e,t)=>e.x!==t.x||e.y!==t.y||e.zoom!==t.k,FQ=e=>({x:e.x,y:e.y,zoom:e.k}),e5=(e,t)=>e.target.closest(`.${t}`),zCe=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),hCt=e=>({d3Zoom:e.d3Zoom,d3Selection:e.d3Selection,d3ZoomHandler:e.d3ZoomHandler,userSelectionActive:e.userSelectionActive}),mCt=({onMove:e,onMoveStart:t,onMoveEnd:n,onPaneContextMenu:r,zoomOnScroll:i=!0,zoomOnPinch:o=!0,panOnScroll:s=!1,panOnScrollSpeed:a=.5,panOnScrollMode:l=n5.Free,zoomOnDoubleClick:u=!0,elementsSelectable:c,panOnDrag:f=!0,defaultViewport:d,translateExtent:h,minZoom:m,maxZoom:g,zoomActivationKeyCode:b,preventScrolling:v=!0,children:x,noWheelClassName:y,noPanClassName:_})=>{let w=(0,lt.useRef)(),k=zl(),O=(0,lt.useRef)(!1),M=(0,lt.useRef)(!1),I=(0,lt.useRef)(null),W=(0,lt.useRef)({x:0,y:0,zoom:0}),{d3Zoom:J,d3Selection:H,d3ZoomHandler:ee,userSelectionActive:j}=Qo(hCt,sl),V=Ik(b),B=(0,lt.useRef)(0);return pCt(I),(0,lt.useEffect)(()=>{if(I.current){let N=I.current.getBoundingClientRect(),C=EQ().scaleExtent([m,g]).translateExtent(h),S=Il(I.current).call(C),G=Xd.translate(d.x,d.y).scale(o5(d.zoom,m,g)),T=[[0,0],[N.width,N.height]],Q=C.constrain()(G,T,h);C.transform(S,Q),k.setState({d3Zoom:C,d3Selection:S,d3ZoomHandler:S.on("wheel.zoom"),transform:[Q.x,Q.y,Q.k],domNode:I.current.closest(".react-flow")})}},[]),(0,lt.useEffect)(()=>{H&&J&&(s&&!V&&!j?H.on("wheel.zoom",N=>{if(e5(N,y))return!1;N.preventDefault(),N.stopImmediatePropagation();let C=H.property("__zoom").k||1;if(N.ctrlKey&&o){let Q=ic(N),U=-N.deltaY*(N.deltaMode===1?.05:N.deltaMode?1:.002)*10,F=C*Math.pow(2,U);J.scaleTo(H,F,Q);return}let S=N.deltaMode===1?20:1,G=l===n5.Vertical?0:N.deltaX*S,T=l===n5.Horizontal?0:N.deltaY*S;J.translateBy(H,-(G/C)*a,-(T/C)*a)},{passive:!1}):typeof ee<"u"&&H.on("wheel.zoom",function(N,C){if(!v||e5(N,y))return null;N.preventDefault(),ee.call(this,N,C)},{passive:!1}))},[j,s,l,H,J,ee,V,o,v,y]),(0,lt.useEffect)(()=>{J&&J.on("start",N=>{if(!N.sourceEvent)return null;B.current=N.sourceEvent.button;let{onViewportChangeStart:C}=k.getState();if(O.current=!0,N.sourceEvent?.type==="mousedown"&&k.setState({paneDragging:!0}),t||C){let S=FQ(N.transform);W.current=S,C?.(S),t?.(N.sourceEvent,S)}})},[J,t]),(0,lt.useEffect)(()=>{J&&(j&&!O.current?J.on("zoom",null):j||J.on("zoom",N=>{let{onViewportChange:C}=k.getState();if(k.setState({transform:[N.transform.x,N.transform.y,N.transform.k]}),M.current=!!(r&&zCe(f,B.current??0)),e||C){let S=FQ(N.transform);C?.(S),e?.(N.sourceEvent,S)}}))},[j,J,e,f,r]),(0,lt.useEffect)(()=>{J&&J.on("end",N=>{if(!N.sourceEvent)return null;let{onViewportChangeEnd:C}=k.getState();if(O.current=!1,k.setState({paneDragging:!1}),r&&zCe(f,B.current??0)&&!M.current&&r(N.sourceEvent),M.current=!1,(n||C)&&fCt(W.current,N.transform)){let S=FQ(N.transform);W.current=S,clearTimeout(w.current),w.current=setTimeout(()=>{C?.(S),n?.(N.sourceEvent,S)},s?150:0)}})},[J,s,f,n,r]),(0,lt.useEffect)(()=>{J&&J.filter(N=>{let C=V||i,S=o&&N.ctrlKey;if(N.button===1&&N.type==="mousedown"&&(e5(N,"react-flow__node")||e5(N,"react-flow__edge")))return!0;if(!f&&!C&&!s&&!u&&!o||j||!u&&N.type==="dblclick"||e5(N,y)&&N.type==="wheel"||e5(N,_)&&N.type!=="wheel"||!o&&N.ctrlKey&&N.type==="wheel"||!C&&!s&&!S&&N.type==="wheel"||!f&&(N.type==="mousedown"||N.type==="touchstart")||Array.isArray(f)&&!f.includes(N.button)&&(N.type==="mousedown"||N.type==="touchstart"))return!1;let G=Array.isArray(f)&&f.includes(N.button)||!N.button||N.button<=1;return(!N.ctrlKey||N.type==="wheel")&&G})},[j,J,i,o,s,u,f,c,V]),(0,At.jsx)("div",{className:"react-flow__renderer",ref:I,style:YQ,children:x})},gCt=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function vCt(){let{userSelectionActive:e,userSelectionRect:t}=Qo(gCt,sl);return e&&t?(0,At.jsx)("div",{className:"react-flow__selection react-flow__container",style:{width:t.width,height:t.height,transform:`translate(${t.x}px, ${t.y}px)`}}):null}function TCe(e,t){let n=e.find(r=>r.id===t.parentNode);if(n){let r=t.position.x+t.width-n.width,i=t.position.y+t.height-n.height;if(r>0||i>0||t.position.x<0||t.position.y<0){if(n.style={...n.style},n.style.width=n.style.width??n.width,n.style.height=n.style.height??n.height,r>0&&(n.style.width+=r),i>0&&(n.style.height+=i),t.position.x<0){let o=Math.abs(t.position.x);n.position.x=n.position.x-o,n.style.width+=o,t.position.x=0}if(t.position.y<0){let o=Math.abs(t.position.y);n.position.y=n.position.y-o,n.style.height+=o,t.position.y=0}n.width=n.style.width,n.height=n.style.height}}}function wSe(e,t){if(e.some(r=>r.type==="reset"))return e.filter(r=>r.type==="reset").map(r=>r.item);let n=e.filter(r=>r.type==="add").map(r=>r.item);return t.reduce((r,i)=>{let o=e.filter(a=>a.id===i.id);if(o.length===0)return r.push(i),r;let s={...i};for(let a of o)if(a)switch(a.type){case"select":{s.selected=a.selected;break}case"position":{typeof a.position<"u"&&(s.position=a.position),typeof a.positionAbsolute<"u"&&(s.positionAbsolute=a.positionAbsolute),typeof a.dragging<"u"&&(s.dragging=a.dragging),s.expandParent&&TCe(r,s);break}case"dimensions":{typeof a.dimensions<"u"&&(s.width=a.dimensions.width,s.height=a.dimensions.height),typeof a.updateStyle<"u"&&(s.style={...s.style||{},...a.dimensions}),typeof a.resizing=="boolean"&&(s.resizing=a.resizing),s.expandParent&&TCe(r,s);break}case"remove":return r}return r.push(s),r},n)}function PSe(e,t){return wSe(e,t)}function yCt(e,t){return wSe(e,t)}var lv=(e,t)=>({id:e,type:"select",selected:t});function t5(e,t){return e.reduce((n,r)=>{let i=t.includes(r.id);return!r.selected&&i?(r.selected=!0,n.push(lv(r.id,!0))):r.selected&&!i&&(r.selected=!1,n.push(lv(r.id,!1))),n},[])}var IQ=(e,t)=>n=>{n.target===t.current&&e?.(n)},xCt=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,dragging:e.paneDragging}),kSe=(0,lt.memo)(({isSelecting:e,selectionMode:t=Fk.Full,panOnDrag:n,onSelectionStart:r,onSelectionEnd:i,onPaneClick:o,onPaneContextMenu:s,onPaneScroll:a,onPaneMouseEnter:l,onPaneMouseMove:u,onPaneMouseLeave:c,children:f})=>{let d=(0,lt.useRef)(null),h=zl(),m=(0,lt.useRef)(0),g=(0,lt.useRef)(0),b=(0,lt.useRef)(),{userSelectionActive:v,elementsSelectable:x,dragging:y}=Qo(xCt,sl),_=()=>{h.setState({userSelectionActive:!1,userSelectionRect:null}),m.current=0,g.current=0},w=ee=>{o?.(ee),h.getState().resetSelectedElements(),h.setState({nodesSelectionActive:!1})},k=ee=>{if(Array.isArray(n)&&n?.includes(2)){ee.preventDefault();return}s?.(ee)},O=a?ee=>a(ee):void 0,M=ee=>{let{resetSelectedElements:j,domNode:V}=h.getState();if(b.current=V?.getBoundingClientRect(),!x||!e||ee.button!==0||ee.target!==d.current||!b.current)return;let{x:B,y:N}=cv(ee,b.current);j(),h.setState({userSelectionRect:{width:0,height:0,startX:B,startY:N,x:B,y:N}}),r?.(ee)},I=ee=>{let{userSelectionRect:j,nodeInternals:V,edges:B,transform:N,onNodesChange:C,onEdgesChange:S,nodeOrigin:G,getNodes:T}=h.getState();if(!e||!b.current||!j)return;h.setState({userSelectionActive:!0,nodesSelectionActive:!1});let Q=cv(ee,b.current),U=j.startX??0,F=j.startY??0,D={...j,x:Q.x<U?Q.x:U,y:Q.y<F?Q.y:F,width:Math.abs(Q.x-U),height:Math.abs(Q.y-F)},L=T(),$=QCe(V,D,N,t===Fk.Partial,!0,G),Z=eSe($,B).map(Y=>Y.id),se=$.map(Y=>Y.id);if(m.current!==se.length){m.current=se.length;let Y=t5(L,se);Y.length&&C?.(Y)}if(g.current!==Z.length){g.current=Z.length;let Y=t5(B,Z);Y.length&&S?.(Y)}h.setState({userSelectionRect:D})},W=ee=>{if(ee.button!==0)return;let{userSelectionRect:j}=h.getState();!v&&j&&ee.target===d.current&&w?.(ee),h.setState({nodesSelectionActive:m.current>0}),_(),i?.(ee)},J=ee=>{v&&(h.setState({nodesSelectionActive:m.current>0}),i?.(ee)),_()},H=x&&(e||v);return(0,At.jsxs)("div",{className:Fl(["react-flow__pane",{dragging:y,selection:e}]),onClick:H?void 0:IQ(w,d),onContextMenu:IQ(k,d),onWheel:IQ(O,d),onMouseEnter:H?void 0:l,onMouseDown:H?M:void 0,onMouseMove:H?I:u,onMouseUp:H?W:void 0,onMouseLeave:H?J:c,ref:d,style:YQ,children:[f,(0,At.jsx)(vCt,{})]})});kSe.displayName="Pane";var _Ct=e=>{let t=e.getNodes().filter(n=>n.selected);return{...UCe(t,e.nodeOrigin),transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`,userSelectionActive:e.userSelectionActive}};function bCt({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:n}){let r=zl(),{width:i,height:o,x:s,y:a,transformString:l,userSelectionActive:u}=Qo(_Ct,sl),c=vSe(),f=(0,lt.useRef)(null);if((0,lt.useEffect)(()=>{n||f.current?.focus({preventScroll:!0})},[n]),gSe({nodeRef:f}),u||!i||!o)return null;let d=e?m=>{let g=r.getState().getNodes().filter(b=>b.selected);e(m,g)}:void 0,h=m=>{Object.prototype.hasOwnProperty.call(i5,m.key)&&c({x:i5[m.key].x,y:i5[m.key].y,isShiftPressed:m.shiftKey})};return(0,At.jsx)("div",{className:Fl(["react-flow__nodesselection","react-flow__container",t]),style:{transform:l},children:(0,At.jsx)("div",{ref:f,className:"react-flow__nodesselection-rect",onContextMenu:d,tabIndex:n?void 0:-1,onKeyDown:n?void 0:h,style:{width:i,height:o,top:a,left:s}})})}var wCt=(0,lt.memo)(bCt),PCt=e=>e.nodesSelectionActive,ASe=({children:e,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:i,onPaneContextMenu:o,onPaneScroll:s,deleteKeyCode:a,onMove:l,onMoveStart:u,onMoveEnd:c,selectionKeyCode:f,selectionOnDrag:d,selectionMode:h,onSelectionStart:m,onSelectionEnd:g,multiSelectionKeyCode:b,panActivationKeyCode:v,zoomActivationKeyCode:x,elementsSelectable:y,zoomOnScroll:_,zoomOnPinch:w,panOnScroll:k,panOnScrollSpeed:O,panOnScrollMode:M,zoomOnDoubleClick:I,panOnDrag:W,defaultViewport:J,translateExtent:H,minZoom:ee,maxZoom:j,preventScrolling:V,onSelectionContextMenu:B,noWheelClassName:N,noPanClassName:C,disableKeyboardA11y:S})=>{let G=Qo(PCt),T=Ik(f),U=Ik(v)||W,F=T||d&&U!==!0;return dCt({deleteKeyCode:a,multiSelectionKeyCode:b}),(0,At.jsx)(mCt,{onMove:l,onMoveStart:u,onMoveEnd:c,onPaneContextMenu:o,elementsSelectable:y,zoomOnScroll:_,zoomOnPinch:w,panOnScroll:k,panOnScrollSpeed:O,panOnScrollMode:M,zoomOnDoubleClick:I,panOnDrag:!T&&U,defaultViewport:J,translateExtent:H,minZoom:ee,maxZoom:j,zoomActivationKeyCode:x,preventScrolling:V,noWheelClassName:N,noPanClassName:C,children:(0,At.jsxs)(kSe,{onSelectionStart:m,onSelectionEnd:g,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:i,onPaneContextMenu:o,onPaneScroll:s,panOnDrag:U,isSelecting:!!F,selectionMode:h,children:[e,G&&(0,At.jsx)(wCt,{onSelectionContextMenu:B,noPanClassName:C,disableKeyboardA11y:S})]})})};ASe.displayName="FlowRenderer";var kCt=(0,lt.memo)(ASe);function ACt(e){return Qo((0,lt.useCallback)(n=>e?QCe(n.nodeInternals,{x:0,y:0,width:n.width,height:n.height},n.transform,!0):n.getNodes(),[e]))}var CCt=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,updateNodeDimensions:e.updateNodeDimensions,onError:e.onError}),CSe=e=>{let{nodesDraggable:t,nodesConnectable:n,nodesFocusable:r,elementsSelectable:i,updateNodeDimensions:o,onError:s}=Qo(CCt,sl),a=ACt(e.onlyRenderVisibleElements),l=(0,lt.useRef)(),u=(0,lt.useMemo)(()=>{if(typeof ResizeObserver>"u")return null;let c=new ResizeObserver(f=>{let d=f.map(h=>({id:h.target.getAttribute("data-id"),nodeElement:h.target,forceUpdate:!0}));o(d)});return l.current=c,c},[]);return(0,lt.useEffect)(()=>()=>{l?.current?.disconnect()},[]),(0,At.jsx)("div",{className:"react-flow__nodes",style:YQ,children:a.map(c=>{let f=c.type||"default";e.nodeTypes[f]||(s?.("003",hm.error003(f)),f="default");let d=e.nodeTypes[f]||e.nodeTypes.default,h=!!(c.draggable||t&&typeof c.draggable>"u"),m=!!(c.selectable||i&&typeof c.selectable>"u"),g=!!(c.connectable||n&&typeof c.connectable>"u"),b=!!(c.focusable||r&&typeof c.focusable>"u"),v=e.nodeExtent?HQ(c.positionAbsolute,e.nodeExtent):c.positionAbsolute,x=v?.x??0,y=v?.y??0,_=iCt({x,y,width:c.width??0,height:c.height??0,origin:e.nodeOrigin});return(0,At.jsx)(d,{id:c.id,className:c.className,style:c.style,type:f,data:c.data,sourcePosition:c.sourcePosition||yn.Bottom,targetPosition:c.targetPosition||yn.Top,hidden:c.hidden,xPos:x,yPos:y,xPosOrigin:_.x,yPosOrigin:_.y,selectNodesOnDrag:e.selectNodesOnDrag,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,selected:!!c.selected,isDraggable:h,isSelectable:m,isConnectable:g,isFocusable:b,resizeObserver:u,dragHandle:c.dragHandle,zIndex:c[ua]?.z??0,isParent:!!c[ua]?.isParent,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,initialized:!!c.width&&!!c.height,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,ariaLabel:c.ariaLabel},c.id)})})};CSe.displayName="NodeRenderer";var SCt=(0,lt.memo)(CSe),OCt=[{level:0,isMaxLevel:!0,edges:[]}];function ECt(e,t,n=!1){let r=-1,i=e.reduce((s,a)=>{let l=qd(a.zIndex),u=l?a.zIndex:0;return n&&(u=l?a.zIndex:Math.max(t.get(a.source)?.[ua]?.z||0,t.get(a.target)?.[ua]?.z||0)),s[u]?s[u].push(a):s[u]=[a],r=u>r?u:r,s},{}),o=Object.entries(i).map(([s,a])=>{let l=+s;return{edges:a,level:l,isMaxLevel:l===r}});return o.length===0?OCt:o}function MCt(e,t,n){let r=Qo((0,lt.useCallback)(i=>e?i.edges.filter(o=>{let s=t.get(o.source),a=t.get(o.target);return s?.width&&s?.height&&a?.width&&a?.height&&eCt({sourcePos:s.positionAbsolute||{x:0,y:0},targetPos:a.positionAbsolute||{x:0,y:0},sourceWidth:s.width,sourceHeight:s.height,targetWidth:a.width,targetHeight:a.height,width:i.width,height:i.height,transform:i.transform})}):i.edges,[e,t]));return ECt(r,t,n)}var BCt=({color:e="none",strokeWidth:t=1})=>(0,At.jsx)("polyline",{stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:t,fill:"none",points:"-5,-4 0,0 -5,4"}),NCt=({color:e="none",strokeWidth:t=1})=>(0,At.jsx)("polyline",{stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:t,fill:e,points:"-5,-4 0,0 -5,4 -5,-4"}),DCe={[dv.Arrow]:BCt,[dv.ArrowClosed]:NCt};function GCt(e){let t=zl();return(0,lt.useMemo)(()=>Object.prototype.hasOwnProperty.call(DCe,e)?DCe[e]:(t.getState().onError?.("009",hm.error009(e)),null),[e])}var FCt=({id:e,type:t,color:n,width:r=12.5,height:i=12.5,markerUnits:o="strokeWidth",strokeWidth:s,orient:a="auto-start-reverse"})=>{let l=GCt(t);return l?(0,At.jsx)("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${r}`,markerHeight:`${i}`,viewBox:"-10 -10 20 20",markerUnits:o,orient:a,refX:"0",refY:"0",children:(0,At.jsx)(l,{color:n,strokeWidth:s})}):null},ICt=({defaultColor:e,rfId:t})=>n=>{let r=[];return n.edges.reduce((i,o)=>([o.markerStart,o.markerEnd].forEach(s=>{if(s&&typeof s=="object"){let a=RQ(s,t);r.includes(a)||(i.push({id:a,color:s.color||e,...s}),r.push(a))}}),i),[]).sort((i,o)=>i.id.localeCompare(o.id))},SSe=({defaultColor:e,rfId:t})=>{let n=Qo((0,lt.useCallback)(ICt({defaultColor:e,rfId:t}),[e,t]),(r,i)=>!(r.length!==i.length||r.some((o,s)=>o.id!==i[s].id)));return(0,At.jsx)("defs",{children:n.map(r=>(0,At.jsx)(FCt,{id:r.id,type:r.type,color:r.color,width:r.width,height:r.height,markerUnits:r.markerUnits,strokeWidth:r.strokeWidth,orient:r.orient},r.id))})};SSe.displayName="MarkerDefinitions";var zCt=(0,lt.memo)(SSe),TCt=e=>({nodesConnectable:e.nodesConnectable,edgesFocusable:e.edgesFocusable,edgesUpdatable:e.edgesUpdatable,elementsSelectable:e.elementsSelectable,width:e.width,height:e.height,connectionMode:e.connectionMode,nodeInternals:e.nodeInternals,onError:e.onError}),OSe=({defaultMarkerColor:e,onlyRenderVisibleElements:t,elevateEdgesOnSelect:n,rfId:r,edgeTypes:i,noPanClassName:o,onEdgeUpdate:s,onEdgeContextMenu:a,onEdgeMouseEnter:l,onEdgeMouseMove:u,onEdgeMouseLeave:c,onEdgeClick:f,edgeUpdaterRadius:d,onEdgeDoubleClick:h,onEdgeUpdateStart:m,onEdgeUpdateEnd:g,children:b})=>{let{edgesFocusable:v,edgesUpdatable:x,elementsSelectable:y,width:_,height:w,connectionMode:k,nodeInternals:O,onError:M}=Qo(TCt,sl),I=MCt(t,O,n);return _?(0,At.jsxs)(At.Fragment,{children:[I.map(({level:W,edges:J,isMaxLevel:H})=>(0,At.jsxs)("svg",{style:{zIndex:W},width:_,height:w,className:"react-flow__edges react-flow__container",children:[H&&(0,At.jsx)(zCt,{defaultColor:e,rfId:r}),(0,At.jsx)("g",{children:J.map(ee=>{let[j,V,B]=BCe(O.get(ee.source)),[N,C,S]=BCe(O.get(ee.target));if(!B||!S)return null;let G=ee.type||"default";i[G]||(M?.("011",hm.error011(G)),G="default");let T=i[G]||i.default,Q=k===Ry.Strict?C.target:(C.target??[]).concat(C.source??[]),U=MCe(V.source,ee.sourceHandle),F=MCe(Q,ee.targetHandle),D=U?.position||yn.Bottom,L=F?.position||yn.Top,$=!!(ee.focusable||v&&typeof ee.focusable>"u"),Z=typeof s<"u"&&(ee.updatable||x&&typeof ee.updatable>"u");if(!U||!F)return M?.("008",hm.error008(U,ee)),null;let{sourceX:se,sourceY:Y,targetX:ue,targetY:pe}=QAt(j,U,D,N,F,L);return(0,At.jsx)(T,{id:ee.id,className:Fl([ee.className,o]),type:G,data:ee.data,selected:!!ee.selected,animated:!!ee.animated,hidden:!!ee.hidden,label:ee.label,labelStyle:ee.labelStyle,labelShowBg:ee.labelShowBg,labelBgStyle:ee.labelBgStyle,labelBgPadding:ee.labelBgPadding,labelBgBorderRadius:ee.labelBgBorderRadius,style:ee.style,source:ee.source,target:ee.target,sourceHandleId:ee.sourceHandle,targetHandleId:ee.targetHandle,markerEnd:ee.markerEnd,markerStart:ee.markerStart,sourceX:se,sourceY:Y,targetX:ue,targetY:pe,sourcePosition:D,targetPosition:L,elementsSelectable:y,onEdgeUpdate:s,onContextMenu:a,onMouseEnter:l,onMouseMove:u,onMouseLeave:c,onClick:f,edgeUpdaterRadius:d,onEdgeDoubleClick:h,onEdgeUpdateStart:m,onEdgeUpdateEnd:g,rfId:r,ariaLabel:ee.ariaLabel,isFocusable:$,isUpdatable:Z,pathOptions:"pathOptions"in ee?ee.pathOptions:void 0,interactionWidth:ee.interactionWidth},ee.id)})})]},W)),b]}):null};OSe.displayName="EdgeRenderer";var DCt=(0,lt.memo)(OSe),RCt=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function LCt({children:e}){let t=Qo(RCt);return(0,At.jsx)("div",{className:"react-flow__viewport react-flow__container",style:{transform:t},children:e})}function VCt(e){let t=bSe(),n=(0,lt.useRef)(!1);(0,lt.useEffect)(()=>{!n.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),n.current=!0)},[e,t.viewportInitialized])}var JCt={[yn.Left]:yn.Right,[yn.Right]:yn.Left,[yn.Top]:yn.Bottom,[yn.Bottom]:yn.Top},ESe=({nodeId:e,handleType:t,style:n,type:r=uv.Bezier,CustomComponent:i,connectionStatus:o})=>{let{fromNode:s,handleId:a,toX:l,toY:u,connectionMode:c}=Qo((0,lt.useCallback)(k=>({fromNode:k.nodeInternals.get(e),handleId:k.connectionHandleId,toX:(k.connectionPosition.x-k.transform[0])/k.transform[2],toY:(k.connectionPosition.y-k.transform[1])/k.transform[2],connectionMode:k.connectionMode}),[e]),sl),f=s?.[ua]?.handleBounds,d=f?.[t];if(c===Ry.Loose&&(d=d||f?.[t==="source"?"target":"source"]),!s||!d)return null;let h=a?d.find(k=>k.id===a):d[0],m=h?h.x+h.width/2:(s.width??0)/2,g=h?h.y+h.height/2:s.height??0,b=(s.positionAbsolute?.x??0)+m,v=(s.positionAbsolute?.y??0)+g,x=h?.position,y=x?JCt[x]:null;if(!x||!y)return null;if(i)return(0,At.jsx)(i,{connectionLineType:r,connectionLineStyle:n,fromNode:s,fromHandle:h,fromX:b,fromY:v,toX:l,toY:u,fromPosition:x,toPosition:y,connectionStatus:o});let _="",w={sourceX:b,sourceY:v,sourcePosition:x,targetX:l,targetY:u,targetPosition:y};return r===uv.Bezier?[_]=xI(w):r===uv.Step?[_]=DQ({...w,borderRadius:0}):r===uv.SmoothStep?[_]=DQ(w):r===uv.SimpleBezier?[_]=YCe(w):_=`M${b},${v} ${l},${u}`,(0,At.jsx)("path",{d:_,fill:"none",className:"react-flow__connection-path",style:n})};ESe.displayName="ConnectionLine";var jCt=e=>({nodeId:e.connectionNodeId,handleType:e.connectionHandleType,nodesConnectable:e.nodesConnectable,connectionStatus:e.connectionStatus,width:e.width,height:e.height});function HCt({containerStyle:e,style:t,type:n,component:r}){let{nodeId:i,handleType:o,nodesConnectable:s,width:a,height:l,connectionStatus:u}=Qo(jCt,sl);return!(i&&o&&a&&s)?null:(0,At.jsx)("svg",{style:e,width:a,height:l,className:"react-flow__edges react-flow__connectionline react-flow__container",children:(0,At.jsx)("g",{className:Fl(["react-flow__connection",u]),children:(0,At.jsx)(ESe,{nodeId:i,handleType:o,style:t,type:n,CustomComponent:r,connectionStatus:u})})})}var MSe=({nodeTypes:e,edgeTypes:t,onMove:n,onMoveStart:r,onMoveEnd:i,onInit:o,onNodeClick:s,onEdgeClick:a,onNodeDoubleClick:l,onEdgeDoubleClick:u,onNodeMouseEnter:c,onNodeMouseMove:f,onNodeMouseLeave:d,onNodeContextMenu:h,onSelectionContextMenu:m,onSelectionStart:g,onSelectionEnd:b,connectionLineType:v,connectionLineStyle:x,connectionLineComponent:y,connectionLineContainerStyle:_,selectionKeyCode:w,selectionOnDrag:k,selectionMode:O,multiSelectionKeyCode:M,panActivationKeyCode:I,zoomActivationKeyCode:W,deleteKeyCode:J,onlyRenderVisibleElements:H,elementsSelectable:ee,selectNodesOnDrag:j,defaultViewport:V,translateExtent:B,minZoom:N,maxZoom:C,preventScrolling:S,defaultMarkerColor:G,zoomOnScroll:T,zoomOnPinch:Q,panOnScroll:U,panOnScrollSpeed:F,panOnScrollMode:D,zoomOnDoubleClick:L,panOnDrag:$,onPaneClick:Z,onPaneMouseEnter:se,onPaneMouseMove:Y,onPaneMouseLeave:ue,onPaneScroll:pe,onPaneContextMenu:oe,onEdgeUpdate:de,onEdgeContextMenu:ve,onEdgeMouseEnter:Ae,onEdgeMouseMove:Ce,onEdgeMouseLeave:Ge,edgeUpdaterRadius:Ee,onEdgeUpdateStart:Ne,onEdgeUpdateEnd:De,noDragClassName:Ue,noWheelClassName:Re,noPanClassName:je,elevateEdgesOnSelect:$e,disableKeyboardA11y:Le,nodeOrigin:Xe,nodeExtent:mt,rfId:fe})=>(VCt(o),(0,At.jsx)(kCt,{onPaneClick:Z,onPaneMouseEnter:se,onPaneMouseMove:Y,onPaneMouseLeave:ue,onPaneContextMenu:oe,onPaneScroll:pe,deleteKeyCode:J,selectionKeyCode:w,selectionOnDrag:k,selectionMode:O,onSelectionStart:g,onSelectionEnd:b,multiSelectionKeyCode:M,panActivationKeyCode:I,zoomActivationKeyCode:W,elementsSelectable:ee,onMove:n,onMoveStart:r,onMoveEnd:i,zoomOnScroll:T,zoomOnPinch:Q,zoomOnDoubleClick:L,panOnScroll:U,panOnScrollSpeed:F,panOnScrollMode:D,panOnDrag:$,defaultViewport:V,translateExtent:B,minZoom:N,maxZoom:C,onSelectionContextMenu:m,preventScrolling:S,noDragClassName:Ue,noWheelClassName:Re,noPanClassName:je,disableKeyboardA11y:Le,children:(0,At.jsxs)(LCt,{children:[(0,At.jsx)(DCt,{edgeTypes:t,onEdgeClick:a,onEdgeDoubleClick:u,onEdgeUpdate:de,onlyRenderVisibleElements:H,onEdgeContextMenu:ve,onEdgeMouseEnter:Ae,onEdgeMouseMove:Ce,onEdgeMouseLeave:Ge,onEdgeUpdateStart:Ne,onEdgeUpdateEnd:De,edgeUpdaterRadius:Ee,defaultMarkerColor:G,noPanClassName:je,elevateEdgesOnSelect:!!$e,disableKeyboardA11y:Le,rfId:fe,children:(0,At.jsx)(HCt,{style:x,type:v,component:y,containerStyle:_})}),(0,At.jsx)("div",{className:"react-flow__edgelabel-renderer"}),(0,At.jsx)(SCt,{nodeTypes:e,onNodeClick:s,onNodeDoubleClick:l,onNodeMouseEnter:c,onNodeMouseMove:f,onNodeMouseLeave:d,onNodeContextMenu:h,selectNodesOnDrag:j,onlyRenderVisibleElements:H,noPanClassName:je,noDragClassName:Ue,disableKeyboardA11y:Le,nodeOrigin:Xe,nodeExtent:mt,rfId:fe})]})}));MSe.displayName="GraphView";var WCt=(0,lt.memo)(MSe),JQ=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],av={rfId:"1",width:0,height:0,transform:[0,0,1],nodeInternals:new Map,edges:[],onNodesChange:null,onEdgesChange:null,hasDefaultNodes:!1,hasDefaultEdges:!1,d3Zoom:null,d3Selection:null,d3ZoomHandler:void 0,minZoom:.5,maxZoom:2,translateExtent:JQ,nodeExtent:JQ,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionNodeId:null,connectionHandleId:null,connectionHandleType:"source",connectionPosition:{x:0,y:0},connectionStatus:null,connectionMode:Ry.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:[0,0],snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesUpdatable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,fitViewOnInit:!1,fitViewOnInitDone:!1,fitViewOnInitOptions:void 0,multiSelectionActive:!1,connectionStartHandle:null,connectionEndHandle:null,connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,connectionRadius:20,onError:XCe,isValidConnection:void 0},XCt=()=>y9e((e,t)=>({...av,setNodes:n=>{let{nodeInternals:r,nodeOrigin:i,elevateNodesOnSelect:o}=t();e({nodeInternals:GQ(n,r,i,o)})},getNodes:()=>Array.from(t().nodeInternals.values()),setEdges:n=>{let{defaultEdgeOptions:r={}}=t();e({edges:n.map(i=>({...r,...i}))})},setDefaultNodesAndEdges:(n,r)=>{let i=typeof n<"u",o=typeof r<"u",s=i?GQ(n,new Map,t().nodeOrigin,t().elevateNodesOnSelect):new Map;e({nodeInternals:s,edges:o?r:[],hasDefaultNodes:i,hasDefaultEdges:o})},updateNodeDimensions:n=>{let{onNodesChange:r,nodeInternals:i,fitViewOnInit:o,fitViewOnInitDone:s,fitViewOnInitOptions:a,domNode:l,nodeOrigin:u}=t(),c=l?.querySelector(".react-flow__viewport");if(!c)return;let f=window.getComputedStyle(c),{m22:d}=new window.DOMMatrixReadOnly(f.transform),h=n.reduce((g,b)=>{let v=i.get(b.id);if(v){let x=jQ(b.nodeElement);!!(x.width&&x.height&&(v.width!==x.width||v.height!==x.height||b.forceUpdate))&&(i.set(v.id,{...v,[ua]:{...v[ua],handleBounds:{source:GCe(".source",b.nodeElement,d,u),target:GCe(".target",b.nodeElement,d,u)}},...x}),g.push({id:v.id,type:"dimensions",dimensions:x}))}return g},[]);xSe(i,u);let m=s||o&&!s&&_Se(t,{initial:!0,...a});e({nodeInternals:new Map(i),fitViewOnInitDone:m}),h?.length>0&&r?.(h)},updateNodePositions:(n,r=!0,i=!1)=>{let{triggerNodeChanges:o}=t(),s=n.map(a=>{let l={id:a.id,type:"position",dragging:i};return r&&(l.positionAbsolute=a.positionAbsolute,l.position=a.position),l});o(s)},triggerNodeChanges:n=>{let{onNodesChange:r,nodeInternals:i,hasDefaultNodes:o,nodeOrigin:s,getNodes:a,elevateNodesOnSelect:l}=t();if(n?.length){if(o){let u=PSe(n,a()),c=GQ(u,i,s,l);e({nodeInternals:c})}r?.(n)}},addSelectedNodes:n=>{let{multiSelectionActive:r,edges:i,getNodes:o}=t(),s,a=null;r?s=n.map(l=>lv(l,!0)):(s=t5(o(),n),a=t5(i,[])),mI({changedNodes:s,changedEdges:a,get:t,set:e})},addSelectedEdges:n=>{let{multiSelectionActive:r,edges:i,getNodes:o}=t(),s,a=null;r?s=n.map(l=>lv(l,!0)):(s=t5(i,n),a=t5(o(),[])),mI({changedNodes:a,changedEdges:s,get:t,set:e})},unselectNodesAndEdges:({nodes:n,edges:r}={})=>{let{edges:i,getNodes:o}=t(),s=n||o(),a=r||i,l=s.map(c=>(c.selected=!1,lv(c.id,!1))),u=a.map(c=>lv(c.id,!1));mI({changedNodes:l,changedEdges:u,get:t,set:e})},setMinZoom:n=>{let{d3Zoom:r,maxZoom:i}=t();r?.scaleExtent([n,i]),e({minZoom:n})},setMaxZoom:n=>{let{d3Zoom:r,minZoom:i}=t();r?.scaleExtent([i,n]),e({maxZoom:n})},setTranslateExtent:n=>{t().d3Zoom?.translateExtent(n),e({translateExtent:n})},resetSelectedElements:()=>{let{edges:n,getNodes:r}=t(),o=r().filter(a=>a.selected).map(a=>lv(a.id,!1)),s=n.filter(a=>a.selected).map(a=>lv(a.id,!1));mI({changedNodes:o,changedEdges:s,get:t,set:e})},setNodeExtent:n=>{let{nodeInternals:r}=t();r.forEach(i=>{i.positionAbsolute=HQ(i.position,n)}),e({nodeExtent:n,nodeInternals:new Map(r)})},panBy:n=>{let{transform:r,width:i,height:o,d3Zoom:s,d3Selection:a,translateExtent:l}=t();if(!s||!a||!n.x&&!n.y)return!1;let u=Xd.translate(r[0]+n.x,r[1]+n.y).scale(r[2]),c=[[0,0],[i,o]],f=s?.constrain()(u,c,l);return s.transform(a,f),r[0]!==f.x||r[1]!==f.y||r[2]!==f.k},cancelConnection:()=>e({connectionNodeId:av.connectionNodeId,connectionHandleId:av.connectionHandleId,connectionHandleType:av.connectionHandleType,connectionStatus:av.connectionStatus,connectionStartHandle:av.connectionStartHandle,connectionEndHandle:av.connectionEndHandle}),reset:()=>e({...av})})),BSe=({children:e})=>{let t=(0,lt.useRef)(null);return t.current||(t.current=XCt()),(0,At.jsx)(dAt,{value:t.current,children:e})};BSe.displayName="ReactFlowProvider";var NSe=({children:e})=>(0,lt.useContext)(vI)?(0,At.jsx)(At.Fragment,{children:e}):(0,At.jsx)(BSe,{children:e});NSe.displayName="ReactFlowWrapper";function RCe(e,t){let n=(0,lt.useRef)(null);return(0,lt.useMemo)(()=>t(e),[e])}var qCt={input:lSe,default:LQ,output:cSe,group:KQ},$Ct={default:gI,straight:qQ,step:XQ,smoothstep:yI,simplebezier:WQ},KCt=[0,0],YCt=[15,15],ZCt={x:0,y:0,zoom:1},UCt={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0},_I=(0,lt.forwardRef)(({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,className:i,nodeTypes:o=qCt,edgeTypes:s=$Ct,onNodeClick:a,onEdgeClick:l,onInit:u,onMove:c,onMoveStart:f,onMoveEnd:d,onConnect:h,onConnectStart:m,onConnectEnd:g,onClickConnectStart:b,onClickConnectEnd:v,onNodeMouseEnter:x,onNodeMouseMove:y,onNodeMouseLeave:_,onNodeContextMenu:w,onNodeDoubleClick:k,onNodeDragStart:O,onNodeDrag:M,onNodeDragStop:I,onNodesDelete:W,onEdgesDelete:J,onSelectionChange:H,onSelectionDragStart:ee,onSelectionDrag:j,onSelectionDragStop:V,onSelectionContextMenu:B,onSelectionStart:N,onSelectionEnd:C,connectionMode:S=Ry.Strict,connectionLineType:G=uv.Bezier,connectionLineStyle:T,connectionLineComponent:Q,connectionLineContainerStyle:U,deleteKeyCode:F="Backspace",selectionKeyCode:D="Shift",selectionOnDrag:L=!1,selectionMode:$=Fk.Full,panActivationKeyCode:Z="Space",multiSelectionKeyCode:se="Meta",zoomActivationKeyCode:Y="Meta",snapToGrid:ue=!1,snapGrid:pe=YCt,onlyRenderVisibleElements:oe=!1,selectNodesOnDrag:de=!0,nodesDraggable:ve,nodesConnectable:Ae,nodesFocusable:Ce,nodeOrigin:Ge=KCt,edgesFocusable:Ee,edgesUpdatable:Ne,elementsSelectable:De,defaultViewport:Ue=ZCt,minZoom:Re=.5,maxZoom:je=2,translateExtent:$e=JQ,preventScrolling:Le=!0,nodeExtent:Xe,defaultMarkerColor:mt="#b1b1b7",zoomOnScroll:fe=!0,zoomOnPinch:be=!0,panOnScroll:ye=!1,panOnScrollSpeed:Oe=.5,panOnScrollMode:Me=n5.Free,zoomOnDoubleClick:Ke=!0,panOnDrag:gt=!0,onPaneClick:ft,onPaneMouseEnter:Bt,onPaneMouseMove:Ft,onPaneMouseLeave:Kn,onPaneScroll:Ut,onPaneContextMenu:ln,children:Yn,onEdgeUpdate:jn,onEdgeContextMenu:Hn,onEdgeDoubleClick:dn,onEdgeMouseEnter:cr,onEdgeMouseMove:Bn,onEdgeMouseLeave:Si,onEdgeUpdateStart:ir,onEdgeUpdateEnd:Mr,edgeUpdaterRadius:ct=10,onNodesChange:_n,onEdgesChange:Oi,noDragClassName:or="nodrag",noWheelClassName:bn="nowheel",noPanClassName:Qn="nopan",fitView:Ho=!1,fitViewOptions:ds,connectOnClick:$r=!0,attributionPosition:co,proOptions:gr,defaultEdgeOptions:sr,elevateNodesOnSelect:We=!0,elevateEdgesOnSelect:an=!1,disableKeyboardA11y:tn=!1,autoPanOnConnect:Ze=!0,autoPanOnNodeDrag:zt=!0,connectionRadius:rn=20,isValidConnection:Rt,onError:gn,style:Xt,id:wn,..._o},Tl)=>{let Dl=RCe(o,rCt),Ks=RCe(s,UAt),ul=wn||"1";return(0,At.jsx)("div",{..._o,style:{...Xt,...UCt},ref:Tl,className:Fl(["react-flow",i]),"data-testid":"rf__wrapper",id:wn,children:(0,At.jsxs)(NSe,{children:[(0,At.jsx)(WCt,{onInit:u,onMove:c,onMoveStart:f,onMoveEnd:d,onNodeClick:a,onEdgeClick:l,onNodeMouseEnter:x,onNodeMouseMove:y,onNodeMouseLeave:_,onNodeContextMenu:w,onNodeDoubleClick:k,nodeTypes:Dl,edgeTypes:Ks,connectionLineType:G,connectionLineStyle:T,connectionLineComponent:Q,connectionLineContainerStyle:U,selectionKeyCode:D,selectionOnDrag:L,selectionMode:$,deleteKeyCode:F,multiSelectionKeyCode:se,panActivationKeyCode:Z,zoomActivationKeyCode:Y,onlyRenderVisibleElements:oe,selectNodesOnDrag:de,defaultViewport:Ue,translateExtent:$e,minZoom:Re,maxZoom:je,preventScrolling:Le,zoomOnScroll:fe,zoomOnPinch:be,zoomOnDoubleClick:Ke,panOnScroll:ye,panOnScrollSpeed:Oe,panOnScrollMode:Me,panOnDrag:gt,onPaneClick:ft,onPaneMouseEnter:Bt,onPaneMouseMove:Ft,onPaneMouseLeave:Kn,onPaneScroll:Ut,onPaneContextMenu:ln,onSelectionContextMenu:B,onSelectionStart:N,onSelectionEnd:C,onEdgeUpdate:jn,onEdgeContextMenu:Hn,onEdgeDoubleClick:dn,onEdgeMouseEnter:cr,onEdgeMouseMove:Bn,onEdgeMouseLeave:Si,onEdgeUpdateStart:ir,onEdgeUpdateEnd:Mr,edgeUpdaterRadius:ct,defaultMarkerColor:mt,noDragClassName:or,noWheelClassName:bn,noPanClassName:Qn,elevateEdgesOnSelect:an,rfId:ul,disableKeyboardA11y:tn,nodeOrigin:Ge,nodeExtent:Xe}),(0,At.jsx)(jAt,{nodes:e,edges:t,defaultNodes:n,defaultEdges:r,onConnect:h,onConnectStart:m,onConnectEnd:g,onClickConnectStart:b,onClickConnectEnd:v,nodesDraggable:ve,nodesConnectable:Ae,nodesFocusable:Ce,edgesFocusable:Ee,edgesUpdatable:Ne,elementsSelectable:De,elevateNodesOnSelect:We,minZoom:Re,maxZoom:je,nodeExtent:Xe,onNodesChange:_n,onEdgesChange:Oi,snapToGrid:ue,snapGrid:pe,connectionMode:S,translateExtent:$e,connectOnClick:$r,defaultEdgeOptions:sr,fitView:Ho,fitViewOptions:ds,onNodesDelete:W,onEdgesDelete:J,onNodeDragStart:O,onNodeDrag:M,onNodeDragStop:I,onSelectionDrag:j,onSelectionDragStart:ee,onSelectionDragStop:V,noPanClassName:Qn,nodeOrigin:Ge,rfId:ul,autoPanOnConnect:Ze,autoPanOnNodeDrag:zt,onError:gn,connectionRadius:rn,isValidConnection:Rt}),(0,At.jsx)(VAt,{onSelectionChange:H}),Yn,(0,At.jsx)(hAt,{proOptions:gr,position:co}),(0,At.jsx)($At,{rfId:ul,disableKeyboardA11y:tn})]})})});_I.displayName="ReactFlow";var QCt=e=>e.domNode?.querySelector(".react-flow__edgelabel-renderer");function GSe({children:e}){let t=Qo(QCt);return t?(0,LCe.createPortal)(e,t):null}function FSe(e){return t=>{let[n,r]=(0,lt.useState)(t),i=(0,lt.useCallback)(o=>r(s=>e(o,s)),[]);return[n,r,i]}}var ISe=FSe(PSe),zSe=FSe(yCt);var mm=ie(St()),bI=ie(Pe());var of;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(of||(of={}));function eSt({color:e,dimensions:t,lineWidth:n}){return(0,mm.jsx)("path",{stroke:e,strokeWidth:n,d:`M${t[0]/2} 0 V${t[1]} M0 ${t[1]/2} H${t[0]}`})}function tSt({color:e,radius:t}){return(0,mm.jsx)("circle",{cx:t,cy:t,r:t,fill:e})}var nSt={[of.Dots]:"#91919a",[of.Lines]:"#eee",[of.Cross]:"#e2e2e2"},rSt={[of.Dots]:1,[of.Lines]:1,[of.Cross]:6},iSt=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function TSe({id:e,variant:t=of.Dots,gap:n=20,size:r,lineWidth:i=1,offset:o=2,color:s,style:a,className:l}){let u=(0,bI.useRef)(null),{transform:c,patternId:f}=Qo(iSt,sl),d=s||nSt[t],h=r||rSt[t],m=t===of.Dots,g=t===of.Cross,b=Array.isArray(n)?n:[n,n],v=[b[0]*c[2]||1,b[1]*c[2]||1],x=h*c[2],y=g?[x,x]:v,_=m?[x/o,x/o]:[y[0]/o,y[1]/o];return(0,mm.jsxs)("svg",{className:Fl(["react-flow__background",l]),style:{...a,position:"absolute",width:"100%",height:"100%",top:0,left:0},ref:u,"data-testid":"rf__background",children:[(0,mm.jsx)("pattern",{id:f+e,x:c[0]%v[0],y:c[1]%v[1],width:v[0],height:v[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${_[0]},-${_[1]})`,children:m?(0,mm.jsx)(tSt,{color:d,radius:x/o}):(0,mm.jsx)(eSt,{dimensions:y,color:d,lineWidth:i})}),(0,mm.jsx)("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${f+e})`})]})}TSe.displayName="Background";var DSe=(0,bI.memo)(TSe);var qs=ie(Pe());var RSe=[{id:"instant",type:"instant",data:{label:"\u26A1\uFE0F Instant",classNames:"font-bold"},targetPosition:"integration"},{id:"email_platform",type:"instant",connected:!0,data:{label:"Email Platform",type:"integration",description:"Connect Instant to your email platform so that you can nurture your leads."}},{id:"crm",type:"instant",data:{label:"CRM",type:"integration",connected:!0,description:"Connect Instant to your CRM so that you can track leads, opportunities created, and revenue generated."}},{id:"ad_platforms",type:"instant",data:{label:"AD Platform Attribution",type:"integration",description:"Connect Instant to your AD pixels for proper attribution.",connected:!0,onAction:()=>{alert("Hello")}}}],LSe=[{id:"instant-crm",source:"instant",target:"crm",markerEnd:{type:dv.ArrowClosed},animated:!0},{id:"instant-email-platform",source:"instant",target:"email_platform",label:"",animated:!0,markerEnd:{type:dv.ArrowClosed}},{id:"instant-ads",source:"instant",target:"ad_platforms",label:"",animated:!0,markerEnd:{type:dv.ArrowClosed}}],VSe=({id:e,sourceX:t,sourceY:n,targetX:r,targetY:i,sourcePosition:o,targetPosition:s,style:a,markerEnd:l,data:u})=>{let[c,f,d]=xI({sourceX:t,sourceY:n,sourcePosition:o,targetX:r,targetY:i,targetPosition:s});return console.log("Style: ",a),qs.default.createElement(qs.default.Fragment,null,qs.default.createElement(Vy,{path:c,markerEnd:l,style:a}),qs.default.createElement(GSe,null,qs.default.createElement("div",{style:{position:"absolute",transform:`translate(-50%, -50%) translate(${f}px,${d}px)`},className:"nodrag nopan text-xs text-gray-500"},u.label)))},JSe=({data:e})=>qs.default.createElement("div",{style:{fontSize:"10px"},className:"px-4 py-2 shadow-md rounded-md bg-white border-2 border-slate-400 w-[272px]"},e.type==="integration"?qs.default.createElement(qs.default.Fragment,null,qs.default.createElement("p",{className:"pb-2 text-xs font-bold w-full border-b border-gray-200 mb-2 text-black-200"},e.label),qs.default.createElement("div",{className:"flex flex-col"},qs.default.createElement("p",{className:"text-xs w-full text-black-200 pb-2"},e.description),e.connected?qs.default.createElement("div",{className:"flex items-center mb-1"},qs.default.createElement("div",{className:"w-2 h-2 mr-1 bg-green-500 rounded-full"}),qs.default.createElement("p",{className:"text-xs w-full text-black-200 pr-2"},"Connected"),qs.default.createElement("a",{className:"text-xs text-blue-500 cursor-pointer",onClick:e.onAction},"Edit")):qs.default.createElement("button",{type:"button",className:"w-full py-1 mb-2 border border-transparent shadow-sm text-xs font-medium rounded-md text-black bg-slate-200 hover:bg-slate-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500",onClick:e.onAction},"Connect"))):qs.default.createElement("p",{className:`text-xs w-full text-center text-black-200 ${e.classNames}`},e.label),qs.default.createElement(Ly,{type:"target",position:yn.Left,className:"w-24 opacity-0"}),qs.default.createElement(Ly,{type:"source",position:yn.Right,className:"w-24 opacity-0"}));var kte=ie(RDe()),x5=new kte.default.graphlib.Graph;x5.setDefaultEdgeLabel(()=>({}));var LDe=272,VDe=120,yXt=(e,t,n="LR")=>{let r=n==="LR";return x5.setGraph({rankdir:n}),e.forEach(i=>{x5.setNode(i.id,{width:LDe,height:VDe})}),t.forEach(i=>{x5.setEdge(i.source,i.target)}),kte.default.layout(x5),e.forEach(i=>{let o=x5.node(i.id);return i.targetPosition=r?"left":"top",i.sourcePosition=r?"right":"bottom",i.position={x:o.x-LDe/2,y:o.y-VDe/2},i}),{nodes:e,edges:t}},{nodes:xXt,edges:_Xt}=yXt(RSe,LSe),bXt=e=>{console.log("flow loaded:",e)},wXt={instant:JSe},PXt={instant:VSe},kXt=e=>{let[t,n,r]=ISe(xXt),[i,o,s]=zSe(_Xt);return(0,_5.useEffect)(()=>{console.log("Instant Workflow init"),Vle().then(a=>{console.log(a),paragon.authenticate("2a40f106-f9ed-4ad3-99d0-0f86a1af65f0",a.response.data.token)})},[]),_5.default.createElement("div",{className:"w-full h-full"},_5.default.createElement(_I,{nodes:t,edges:i,onInit:bXt,attributionPosition:"bottom-right",nodeTypes:wXt,edgeTypes:PXt,fitView:"true",proOptions:{hideAttribution:!0}},_5.default.createElement(DSe,{color:"#aaa",gap:16})))},JDe=kXt;var Wt=ie(Pe());var xu=ie(Xa()),b5=ie(fu());var Ht=ie(Pe());var Ate=function(){};var jDe=typeof window<"u";var bm=ie(Pe());var AXt=function(e,t,n){if(!jDe)return[t,Ate,Ate];if(!e)throw new Error("useLocalStorage key may not be falsy");var r=n?n.raw?function(c){return c}:n.deserializer:JSON.parse,i=(0,bm.useRef)(function(c){try{var f=n?n.raw?String:n.serializer:JSON.stringify,d=localStorage.getItem(c);return d!==null?r(d):(t&&localStorage.setItem(c,f(t)),t)}catch{return t}}),o=(0,bm.useState)(function(){return i.current(e)}),s=o[0],a=o[1];(0,bm.useLayoutEffect)(function(){return a(i.current(e))},[e]);var l=(0,bm.useCallback)(function(c){try{var f=typeof c=="function"?c(s):c;if(typeof f>"u")return;var d=void 0;n?n.raw?typeof f=="string"?d=f:d=JSON.stringify(f):n.serializer?d=n.serializer(f):d=JSON.stringify(f):d=JSON.stringify(f),localStorage.setItem(e,d),a(r(d))}catch{}},[e,a]),u=(0,bm.useCallback)(function(){try{localStorage.removeItem(e),a(void 0)}catch{}},[e,a]);return[s,l,u]},Xc=AXt;var es=ie(Pe());var Ste=ie(nx());var Jn=ie(Pe());var Cte=ie(nx());var CXt=e=>{let[t,n]=(0,Jn.useState)(!1),{userData:r}=(0,Jn.useContext)(Vr),[i,o]=(0,Jn.useState)(!1),[s,a]=(0,Jn.useState)(!1),[l,u]=(0,Jn.useState)(!1),[c,f]=(0,Jn.useState)(!1),[d,h]=(0,Jn.useState)(!1);(0,Jn.useEffect)(()=>{Fn.track("Loaded Instant Pro Upsell Modal",{feature:e.feature}),e.isOpen&&u(!0)},[e]),(0,Jn.useEffect)(()=>{r?.uid&&(Cte.default.identify(r.uid),Cte.default.people.set({$email:r.email,$name:r.name}),r?.subscription?.purchased_launchpack&&h(!0))},[r]);let m=()=>{switch(e.options.feature){case"pages":return"You've hit your limit of \u26A1\uFE0F Pages";case"email":return"Increase Conversion Rates with \u26A1\uFE0F Pro";case"optimization":return"Increase Conversion Rates with \u26A1\uFE0F Pro";default:return"You've hit your limit"}},g=()=>{switch(e.options.feature){case"pages":return"You've reached the limit of the number of Instant Pages you can create. You can upgrade to Instant PRO to unlock additional Instant Pages.";case"email":return"Instant Email Co-Pilot is an Instant PRO feature. It helps you convert your leads to opportunities faster by sending personalized emails.";case"optimization":return"Instant Optimization is an Instant PRO feature. It helps you analyze your Instant Pages across 12-key benchmarks and optimize it to increase conversion and activation rates.";default:return"You've reached the limit."}},b=()=>{Fn.track("Upgrade to Instant Pro"),o(!0),setTimeout(()=>{vS("pro",c).then(v=>{v.success?(a({success:!0,title:"Boom. You're in Instant PRO",message:Jn.default.createElement(Jn.default.Fragment,null,Jn.default.createElement("p",{className:"text-sm text-gray-800"},"Congratulations! You've unlocked Instant PRO. You can now:"),Jn.default.createElement("ul",{className:"text-sm text-gray-800 list-disc ml-4 mt-4 space-y-4"},Jn.default.createElement("li",null,"Build up to ",Jn.default.createElement("strong",null,"6 \u26A1\uFE0F Pages")," to offer different lead magnets and target different segments of the market so you can generate more leads and pipeline."),Jn.default.createElement("li",null,"Use ",Jn.default.createElement("strong",null,"\u26A1\uFE0F Emails")," to send AI-enabled personalized emails to your leads to drive activation and conversion."),Jn.default.createElement("li",null,"Use ",Jn.default.createElement("strong",null,"\u26A1\uFE0F Optimize")," to continually improve your Instant Page and increase conversion and activation rates."),c&&Jn.default.createElement("li",null,"Access the ",Jn.default.createElement("strong",null,"Content Marketing Launchpack")," ","to get step-by-step training and templates on how to build your simple Lead Magnet, set up your Content Funnel in Instant and start generating leads. You'll receive an email with a special link to access the training."))),button_cta:"Let's Do This!",onHandleSuccess:()=>{window.location.reload()}}),u(!0)):(console.log(v),a({success:!1,title:"We couldn't upgrade your account to Instant Pro",message:Jn.default.createElement(Jn.default.Fragment,null,"Unfortunately, we weren't able to upgrade your account to Instant Pro. Please"," ",Jn.default.createElement("a",{href:"mailto:team@instantlanding.page?subject=Instant PRO Trial Couldn't Start",className:"text-blue-500 text-underline",target:"_new"},"email us")," ","with the error message below and we'll get you sorted."),errors:v.response.message,button_cta:"Got It",onHandleClose:()=>{u(!1),e.onClose&&e.onClose(),a(!1)}}),u(!0))})},1e3)};return Jn.default.createElement(Dc,{open:l,options:s||{mode:"action",title:m(),message:Jn.default.createElement(Jn.default.Fragment,null,Jn.default.createElement("p",{className:"text-sm text-gray-800"},g()," With Instant PRO you can:"),Jn.default.createElement("ul",{className:"text-sm text-gray-800 list-disc ml-4 mt-4 space-y-4"},Jn.default.createElement("li",null,"Build up to ",Jn.default.createElement("strong",null,"6 \u26A1\uFE0F Pages")," to offer different lead magnets and target different segments of the market so you can generate more leads and pipeline."),Jn.default.createElement("li",null,"Use ",Jn.default.createElement("strong",null,"\u26A1\uFE0F Emails")," to send AI-enabled personalized emails to your leads to drive activation and conversion."),Jn.default.createElement("li",null,"Use ",Jn.default.createElement("strong",null,"\u26A1\uFE0F Optimize")," to continually improve your Instant Page and increase conversion and activation rates.")),!d&&Jn.default.createElement("div",{className:"mt-4 border-t border-b py-4 border-gray-200"},Jn.default.createElement("form",null,Jn.default.createElement(F3,{className:"flex items-center"},Jn.default.createElement(T3,{checked:c,onChange:f,className:"group relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent bg-gray-200 transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-600 focus:ring-offset-2 data-[checked]:bg-indigo-600"},Jn.default.createElement("span",{"aria-hidden":"true",className:"pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out group-data-[checked]:translate-x-5"})),Jn.default.createElement(Np,{as:"span",className:"ml-3 text-sm"},Jn.default.createElement("span",{className:"font-bold text-gray-900"},"Content Marketing Launchpack")," ",Jn.default.createElement("span",{className:"text-gray-500"},"($1250)"),Jn.default.createElement("p",{className:"text-sm text-black"},"Add the Content Marketing Launchpack to your account to get step-by-step training and templates on how to build your simple Lead Magnet, set up your Content Funnel in Instant and start generating leads.")))))),button_cta:"Upgrade to Instant Pro for $99/month",onAction:()=>{b()},onHandleClose:()=>{u(!1),e.onClose&&e.onClose()}}})},QI=CXt;var SXt=e=>{let{userData:t}=(0,es.useContext)(Vr),[n,r]=(0,es.useState)(!1),[i,o]=(0,es.useState)({feature:"pages"});return(0,es.useEffect)(()=>{Fn.track("Loaded Instant Pro Banner",{tab:e.tab}),o({feature:e.tab})},[e]),(0,es.useEffect)(()=>{t?.uid&&(Ste.default.identify(t.uid),Ste.default.people.set({$email:t.email,$name:t.name}))},[t]),es.default.createElement("div",{className:"bg-slate-200 mb-4 rounded-md p-8"},es.default.createElement("div",{className:"mx-auto w-full"},es.default.createElement("h2",{className:"text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl"},e.tab=="content"&&"Instant Content Co-Pilot",e.tab=="email"&&"Instant Email Co-Pilot",e.tab=="optimization"&&"Instant GTM Optimization"),es.default.createElement("p",{className:"mt-3 text-black font-bold mb-3 ml-0 pl-0"},"$99/month"),es.default.createElement("p",{className:"mt-4 max-w-3xl text-xl text-gray-500"},e.tab=="email"&&es.default.createElement("span",null,"Instant Email Co-Pilot helps you convert your leads to opportunities faster by sending personalized emails. Upgrade to Instant PRO to unlock this feature and accelerate your lead to revenue."),e.tab=="content"&&es.default.createElement("span",null,"Promote your Instant Landing Page through social media posts and ADs with compelling and high converting content. Instant Content AI Co-Pilot has been specifically trained to help you write high converting posts that builds brand awareness and generates quality leads. Upgrade to Instant PRO to unlock Instant Content Co-Pilot."),e.tab=="optimization"&&es.default.createElement("span",null,"Upgrade to Instant PRO to unlock Instant GTM Optimization. Analyze your Instant Landing Page across 12-key benchmarks and optimize it to increase conversion and activation rates.")),es.default.createElement("div",{className:"mt-6 flex items-center gap-x-6"},es.default.createElement("a",{onClick:s=>{s.preventDefault(),r(!0)},href:"https://offers.tkkader.com/instant-pro-2023",target:"_blank",className:"disabled:opacity-25 text-center justify-center flex items-center rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"},"Upgrade to Instant PRO"),e.tab=="content"&&es.default.createElement("a",{href:"https://instant.academy/promoting-your-lead-magnet",target:"_blank",className:"text-sm font-semibold leading-6 text-gray-900"},"Learn more ",es.default.createElement("span",{"aria-hidden":"true"},"\u2192")),e.tab=="optimization"&&es.default.createElement("a",{href:"https://instant.academy/optimizing-your-landing-page",target:"_blank",className:"text-sm font-semibold leading-6 text-gray-900"},"Learn more ",es.default.createElement("span",{"aria-hidden":"true"},"\u2192")))),es.default.createElement(QI,{isOpen:n,options:i,onClose:()=>{r(!1)}}))},ez=SXt;var Dt=ie(Pe());var Ss=ie(Xa()),Zy=ie(fu());var OXt=e=>{let{userData:t}=(0,Dt.useContext)(Vr),[n,r]=(0,Dt.useState)(null),[i,o]=(0,Dt.useState)(null),[s,a]=(0,Dt.useState)([]);(0,Dt.useEffect)(()=>{e.event!=null&&(r(e.event),o(e.event.page))},[e]),(0,Dt.useEffect)(()=>{n!=null&&l()},[n]);let l=()=>{events=[],n&&n.page_metrics&&n.page_metrics.length>0&&n.page_metrics.forEach(c=>{events.push({created_at:c.created_at,details:friendlyEngagement(c)})}),n.pct_engaged>0&&n.time_spent>0&&events.push({created_at:n.updated_at,details:Dt.default.createElement("span",null,"Engaged with"," ",Dt.default.createElement("span",{className:"text-green-600 text-bold"},(0,Zy.default)(n.pct_engaged).format("0%"))," ","of content"," ",Dt.default.createElement("span",{className:"text-gray-500"},"for"," ",Dt.default.createElement("strong",null,Ss.default.utc(Ss.default.duration(n.time_spent,"seconds").asMilliseconds()).format("m[m] ss[s]")),"."))}),n.opportunity&&(opportunity_at=n.updated_at,n.opportunity_pipeline_logged_at&&(opportunity_at=n.opportunity_pipeline_logged_at),lead_to_opportunity=Ss.default.duration((0,Ss.default)(opportunity_at).diff((0,Ss.default)(n.created_at))).as("days"),(lead_to_opportunity<0||lead_to_opportunity==Number.isNaN()||lead_to_opportunity==null)&&(lead_to_opportunity=0),events.push({created_at:opportunity_at,details:Dt.default.createElement("span",null,"Became an opportunity"," ",Dt.default.createElement("span",{className:"text-green-600 text-bold"},(0,Zy.default)(n.opportunity_value).format("$0a"))," ",Dt.default.createElement("span",{className:"text-gray-500"},"after"," ",Dt.default.createElement("strong",null,(0,Zy.default)(lead_to_opportunity).format("0,0")," days")," ","of becoming a lead."))})),n.revenue>0&&(revenue_at=n.updated_at,n.opportunity_revenue_logged_at&&(revenue_at=n.opportunity_revenue_logged_at),time_to_revenue=Ss.default.duration((0,Ss.default)(revenue_at).diff((0,Ss.default)(n.created_at))).as("days"),time_to_revenue_since="of becoming a lead",n.opportunity&&(opportunity_at=n.updated_at,n.opportunity_pipeline_logged_at&&(opportunity_at=n.opportunity_pipeline_logged_at),time_to_revenue=Ss.default.duration((0,Ss.default)(revenue_at).diff((0,Ss.default)(opportunity_at))).as("days"),time_to_revenue_since="of becoming an opportunity"),(time_to_revenue<1||isNaN(time_to_revenue)||time_to_revenue==null)&&(time_to_revenue=0),events.push({created_at:revenue_at,details:Dt.default.createElement(Dt.default.Fragment,null,"Became a customer"," ",Dt.default.createElement("span",{className:"text-green-600 text-bold"},(0,Zy.default)(n.revenue).format("$0a"))," ",Dt.default.createElement("span",{className:"text-gray-500"},"after"," ",Dt.default.createElement("strong",null,(0,Zy.default)(time_to_revenue).format("0,0")," days")," ",time_to_revenue_since,"."))})),events=events.sort((c,f)=>new Date(f.created_at)-new Date(c.created_at)),a(events)};friendlyEngagement=c=>c.action=="cta"?"Clicked on CTA.":c.action=="engagement"?`${(0,Zy.default)(c.pct_engaged).format("0%")} consumed ${Ss.default.utc(Ss.default.duration(c.time_spent,"seconds").asMilliseconds()).format("m[m] ss[s]")}`:c.action=="pdf_link"&&c.meta_data.url&&c.meta_data.page_number?Dt.default.createElement(Dt.default.Fragment,null,"Clicked"," ",Dt.default.createElement("a",{className:"text-indigo-600 hover:underline",target:"_new",href:c.meta_data.url},"PDF link")," ","on page ",c.meta_data.page_number,"."):c.action=="email_click"?"Clicked on CTA from email nurture sequence.":c.action=="cta_show"?"Just watched the CTA Offer":c.action;let u=c=>{let f=c.jarvis;return`${f.value_proposition} They target ${f.target_audience}, and is in the ${f.industry} (${f.market}) industry.`};return Dt.default.createElement(Dt.default.Fragment,null,n!=null&&Dt.default.createElement(Dt.default.Fragment,null,Dt.default.createElement("div",{className:"w-full h-full"},Dt.default.createElement("div",{className:"flex group"},Dt.default.createElement("div",{className:"flex flex-col w-5/6 max-w-5/6 mr-2"},Dt.default.createElement("div",{className:"flex items-center space-x-3"},n.details&&n.details.clearbit&&n.details.clearbit.avatar&&Dt.default.createElement("img",{className:"h-10 w-10 flex-shrink-0 rounded-full bg-gray-300 mb-2",src:n.details.clearbit.avatar,alt:""}),Dt.default.createElement("h3",{className:"truncate text-lg font-bold text-gray-900"},n.name),n.icp&&Dt.default.createElement("span",{className:"inline-flex flex-shrink-0 items-center rounded-full bg-green-50 px-1.5 py-0.5 text-xs font-medium text-green-700 ring-1 ring-inset ring-green-600/20"},n.icp?"ICP":"Non-ICP")),e.mode=="full"&&Dt.default.createElement("ul",{className:"list-none pl-0 ml-0 text-sm text-gray-500 max-w-full"},Dt.default.createElement("li",null,"became a lead"," ",(0,Ss.default)(n.created_at).isSame((0,Ss.default)(),"day")?Dt.default.createElement(Dt.default.Fragment,null,(0,Ss.default)(n.created_at).fromNow()):Dt.default.createElement(Dt.default.Fragment,null,(0,Ss.default)(n.created_at).format("MMM Do h:mm a"))),Dt.default.createElement("li",null,Dt.default.createElement("p",{className:"truncate text-gray-500"},Dt.default.createElement("span",null,n.utm_source," ",Dt.default.createElement("span",{className:"text-slate-400"},n.utm_medium?`${n.utm_medium}`:"")))),Dt.default.createElement("li",null,Dt.default.createElement("p",{className:"truncate text-gray-500"},n.stage)))),e.mode=="full"&&Dt.default.createElement("div",{className:`flex flex-col space-y-2 text-xs ${n.icp?"":"opacity-0 group-hover:opacity-100"}`},Dt.default.createElement("a",{href:`mailto:${n.email}`,onClick:c=>{e.onOpenEmailModal(n),c.preventDefault()},className:"flex-initial text-center w-full rounded-md border border-transparent bg-green-400 px-2 py-2 text-xs font-medium text-white shadow-sm hover:bg-green-500 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"},"Email"),n.phone!=null&&Dt.default.createElement("a",{href:`tel:${n.phone}`,className:"flex-initial text-center w-full rounded-md border border-transparent bg-slate-200 px-4 py-2 text-xs font-medium text-slate-500 shadow-sm hover:bg-slate-300 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"},"Call"))),Dt.default.createElement("div",{className:"flex"},Dt.default.createElement("ul",{className:"list-none pl-0 ml-0 text-sm text-gray-500 max-w-full"},n.details&&n.details.jarvis&&Dt.default.createElement("li",{className:"my-2"},Dt.default.createElement("p",{className:"wrap whitespace-normal text-gray-500"},u(n.details))),e.mode=="full"&&Dt.default.createElement("li",{className:"mb-2"},Dt.default.createElement("p",{className:"wrap whitespace-normal text-gray-500"},Dt.default.createElement(Dt.default.Fragment,null,n.details&&n.details.clearbit&&n.details.clearbit.employment&&n.details.clearbit.employment.title?Dt.default.createElement("span",null,n.details.clearbit.employment.title," @"," ",Dt.default.createElement("a",{href:"https://"+n.email.split("@")[1],target:"_new",className:"text-blue-500"},n.details.clearbit.employment.name)):Dt.default.createElement(Dt.default.Fragment,null,Dt.default.createElement("a",{href:`https://${n.email.split("@")[1]}`,target:"_new",className:"text-blue-500"},n.email.split("@")[1])))))))),Dt.default.createElement("div",{className:"w-full h-full"},Dt.default.createElement("ul",{className:"list-none pl-0 ml-0 text-sm text-gray-500 max-w-full"},s.slice(0,e.mode=="mini"?1:s.length).map((c,f)=>Dt.default.createElement("li",{key:f,className:"flex space-x-2"},Dt.default.createElement(Jj,{className:"flex-none h-4 w-4 text-slate-800"})," ",Dt.default.createElement("span",{className:"text-slate-400 flex-none"},(0,Ss.default)(c.created_at).isSame((0,Ss.default)(),"day")?Dt.default.createElement(Dt.default.Fragment,null,(0,Ss.default)(c.created_at).fromNow()):Dt.default.createElement(Dt.default.Fragment,null,(0,Ss.default)(c.created_at).format("MMM Do h:mm a"))),Dt.default.createElement("span",{className:"text-slate-800"},c.details)))))))},tz=OXt;var nz=ie(b4()),EXt=({open:e,options:t,onHandleClose:n})=>{let r=(0,Ht.useRef)(null),[i,o]=(0,Ht.useState)(!1),[s,a]=(0,Ht.useState)(!1),[l,u]=(0,Ht.useState)(null),[c,f]=Xc("email_type","call to action email"),[d,h]=Xc(`from_name-${t?.pageEntry?.page_id}`,""),[m,g]=Xc(`from_role-${t?.pageEntry?.page_id}`,""),{userData:b}=(0,Ht.useContext)(Vr),v=()=>b?.subscription?.plan=="vip"||b?.subscription?.plan=="pro",x=async(w,k)=>{try{let O=await Xle(w,k,c,d,m);u(O.response.data),a(!1),nz.isMobile&&r.current.scrollIntoView({behavior:"smooth"})}catch(O){a(!1),console.error("Error fetching email:",O)}},y=()=>{n(),u(null)},_=()=>{s||(u(null),a(!0),x(t.pageEntry.page_id,t.pageEntry.id))};return Ht.default.createElement(Rd,{open:e,closeDialogue:y,additionalStyles:"sm:max-w-screen-lg px-0 py-0 sm:px-0 sm:py-0 shadow-xl"},Ht.default.createElement("div",{className:"flex space-x-2 items-center justify-center py-4 md:px-6 md:py-4"},Ht.default.createElement("div",{className:"min-w-0 flex-1 items-center"},Ht.default.createElement(Ii.Title,{as:"h3",className:"text-lg leading-6 font-bold text-gray-900"},"\u26A1\uFE0F Email"))),Ht.default.createElement("div",{className:"overflow-hidden flex flex-col gap-4 py-2 px-2 sm:flex-row sm:gap-6 bg-white md:px-6 md:py-4"},Ht.default.createElement("div",{className:"sm:w-1/2"},Ht.default.createElement("div",{className:"text-left"},Ht.default.createElement("h3",{class:"text-lg font-bold leading-6 text-gray-900 hidden sm:block"},"Drive Activation with Instant Email Co-Pilot"),Ht.default.createElement("p",{className:"text-sm text-gray-800 mt-1 hidden sm:block"},"Email Co-Pilot will help you craft a personalized email to reach out to your leads and drive activation inside of your content funnel."),Ht.default.createElement("div",{className:"mt-0 sm:mt-4 sm:border-t border-b border-gray-200 sm:pt-2 pb-2"},Ht.default.createElement(tz,{event:t.pageEntry,mode:"mini"})),Ht.default.createElement("label",{className:"block font-semibold text-gray-500 text-sm mt-4"},"What kind of email do you want to send?"),Ht.default.createElement("select",{className:"mt-2 mb-4 block w-full pl-3 pr-10 py-2 text-sm border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 rounded-md",onChange:w=>{l&&u(null),f(w.target.value)},value:c},Ht.default.createElement("option",{value:"welcome email"},"Welcome Email"),Ht.default.createElement("option",{value:"ask for feedback"},"Ask for Feedback"),Ht.default.createElement("option",{value:"nurture email"},"Nurture Email"),Ht.default.createElement("option",{value:"call to action email"},"Call to Action Email")),v()&&Ht.default.createElement(Ht.default.Fragment,null,Ht.default.createElement("label",{className:"block font-semibold text-gray-500 text-sm mt-2"},"What is your name?"),Ht.default.createElement("input",{type:"text",name:"from_name",id:"from_name",className:"mt-2 mb-4 block w-full pl-3 pr-10 py-2 text-sm border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 rounded-md",value:d,onChange:w=>h(w.target.value)}),Ht.default.createElement("label",{className:"block font-semibold text-gray-500 text-sm mt-2"},"What is your role?"),Ht.default.createElement("textarea",{name:"from_role",id:"from_role",rows:"2",className:"mt-2 mb-4 block w-full pl-3 pr-10 py-2 text-sm border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 rounded-md",value:m,onChange:w=>g(w.target.value)}))),v()?Ht.default.createElement("div",{className:"mt-4 sm:mt-4"},l?Ht.default.createElement("div",{className:"flex justify-between space-x-4"},Ht.default.createElement("button",{type:"button",className:"w-1/4 inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:text-sm",onClick:_},Ht.default.createElement(_J,{className:"h-5 w-5 mr-2"}))):Ht.default.createElement("button",{type:"button",className:"inline-flex justify-center w-full rounded-md border border-transparent shadow-sm px-4 py-2 bg-indigo-600 text-base font-medium text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:text-sm",onClick:_},s?Ht.default.createElement(Ht.default.Fragment,null,Ht.default.createElement("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},Ht.default.createElement("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),Ht.default.createElement("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})),"Generating..."):Ht.default.createElement(Ht.default.Fragment,null,Ht.default.createElement(h2,{className:"mr-2 -mr-1 h-5 w-5"}),"Generate Email"))):Ht.default.createElement(ez,{page:t.page,tab:"email"})),(nz.isMobile&&l||!nz.isMobile)&&Ht.default.createElement("div",{className:"block grow sm:w-1/2"},Ht.default.createElement("div",{className:"inset-0 h-full bg-gray-50"},Ht.default.createElement("div",{className:"rounded-lg border-2 border-dashed border-gray-200 p-6 h-full overflow-y-auto"},Ht.default.createElement("div",{className:"flex flex-col h-full"},Ht.default.createElement("div",{className:"flex flex-col bg-gray-50"},Ht.default.createElement("div",{className:""},Ht.default.createElement("div",{className:"inline-block w-full align-middle"},Ht.default.createElement("div",{className:"overflow-hidden"},Ht.default.createElement("table",{className:"w-full divide-y divide-gray-300 border-b border-gray-200",ref:r},Ht.default.createElement("tbody",{className:"divide-y divide-gray-200 bg-gray-50"},Ht.default.createElement("tr",null,Ht.default.createElement("td",{className:"py-2 text-sm text-gray-500"},"To:"),Ht.default.createElement("td",{className:"py-2 text-sm text-gray-500"},t&&t.pageEntry&&t.pageEntry.name&&t.pageEntry.email?Ht.default.createElement("span",{className:"bg-amber-100"},t.pageEntry.name," -"," ",t.pageEntry.email):Ht.default.createElement("span",{className:"bg-amber-100"},"No name or email"))),Ht.default.createElement("tr",null,Ht.default.createElement("td",{className:"py-2 text-sm text-gray-500"},"Subject:"),Ht.default.createElement("td",{className:"py-2 text-sm text-gray-500"},Ht.default.createElement("input",{type:"text",name:"email-subject",id:"email-subject",disabled:!l,className:"mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm text-sm border-gray-300 rounded-md",value:l?l.subject:"",onChange:w=>u({...l,subject:w.target.value})}))))),Ht.default.createElement("div",{className:"mt-6"},Ht.default.createElement("textarea",{id:"email-body",name:"email-body",rows:16,disabled:!l,className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full text-sm border border-gray-300 rounded-md",value:l?l.body:"",onChange:w=>u({...l,body:w.target.value})}))))),l&&Ht.default.createElement("div",{className:"mt-4"},Ht.default.createElement("a",{href:`mailto:${t.pageEntry.email}?subject=${encodeURIComponent(l.subject)}&body=${encodeURIComponent(l.body)}`,className:"inline-flex justify-center w-full rounded-md border border-transparent shadow-sm px-4 py-2 bg-indigo-600 text-base font-medium text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:text-sm",target:"_blank",rel:"noopener noreferrer"},"Send Email ",Ht.default.createElement(Vu,{className:"ml-2 h-5 w-5"}))))))))))},rz=EXt;var MXt=e=>{let[t,n]=(0,Wt.useState)(!1),[r,i]=(0,Wt.useState)({}),o=a=>(events=[],a.cta?(cta={event:"CTA",details:Wt.default.createElement("span",null,Wt.default.createElement(L3,{className:"h-5 w-5 text-green-400"}))},events.push(cta)):(cta={event:"CTA",details:Wt.default.createElement("span",null,Wt.default.createElement(Yj,{className:"h-5 w-5 text-red-400"}))},events.push(cta)),a.cta_via_email&&(cta={event:"CTA",details:Wt.default.createElement("div",{className:"flex flex-row"},Wt.default.createElement(L3,{className:"h-5 w-5 text-green-400"})," ",Wt.default.createElement("span",{className:"pl-1"},"via email nurture"))},events.push(cta)),a.pdf_clicked&&events.push({event:"PDF",details:`Clicked ${a.pdf_clicked_url} from page ${a.pdf_clicked_url_on_page} of your PDF.`}),a.opportunity&&(opportunity_at=a.updated_at,a.opportunity_pipeline_logged_at&&(opportunity_at=a.opportunity_pipeline_logged_at),lead_to_opportunity=xu.default.duration((0,xu.default)(opportunity_at).diff((0,xu.default)(a.created_at))).as("days"),(lead_to_opportunity<0||lead_to_opportunity==Number.isNaN()||lead_to_opportunity==null)&&(lead_to_opportunity=0),events.push({event:"OPPTY",details:Wt.default.createElement(Wt.default.Fragment,null,Wt.default.createElement("span",{className:"text-gray-400"},(0,xu.default)(opportunity_at).format("ll"))," ",Wt.default.createElement("span",{className:"text-green-600 text-bold"},(0,b5.default)(a.opportunity_value).format("$0a"))," ",Wt.default.createElement("span",{className:"text-gray-400"},"after"," ",Wt.default.createElement("strong",null,(0,b5.default)(lead_to_opportunity).format("0,0")," days")," ","of becoming a lead."))})),a.revenue>0&&(revenue_at=a.updated_at,a.opportunity_revenue_logged_at&&(revenue_at=a.opportunity_revenue_logged_at),time_to_revenue=xu.default.duration((0,xu.default)(revenue_at).diff((0,xu.default)(a.created_at))).as("days"),time_to_revenue_since="of becoming a lead",a.opportunity&&(opportunity_at=a.updated_at,a.opportunity_pipeline_logged_at&&(opportunity_at=a.opportunity_pipeline_logged_at),time_to_revenue=xu.default.duration((0,xu.default)(revenue_at).diff((0,xu.default)(opportunity_at))).as("days"),time_to_revenue_since="of becoming an opportunity"),(time_to_revenue<1||isNaN(time_to_revenue)||time_to_revenue==null)&&(time_to_revenue=0),events.push({event:"REVENUE",details:Wt.default.createElement(Wt.default.Fragment,null,Wt.default.createElement("span",{className:"text-gray-400"},(0,xu.default)(revenue_at).format("ll"))," ",Wt.default.createElement("span",{className:"text-green-600 text-bold"},(0,b5.default)(a.revenue).format("$0a"))," ",Wt.default.createElement("span",{className:"text-gray-400"},"after"," ",Wt.default.createElement("strong",null,(0,b5.default)(time_to_revenue).format("0,0")," days")," ",time_to_revenue_since,"."))})),events),s=a=>{let l=a.details.jarvis;return`${l.value_proposition} They target ${l.target_audience}, and is in the ${l.industry} (${l.market}) industry.`};return Wt.default.createElement(Wt.default.Fragment,null,Wt.default.createElement("ul",{role:"list",className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3"},e.leads.map(a=>Wt.default.createElement("li",{key:a.email,className:"col-span-1 divide-y divide-gray-200 rounded-lg bg-white shadow min-h-[400px] flex flex-col justify-between"},Wt.default.createElement("div",{className:"flex w-full items-center justify-between space-x-6 p-6"},Wt.default.createElement("div",{className:"flex-1 truncate"},Wt.default.createElement("p",{className:"mt-1 truncate text-xs text-gray-400"},(0,xu.default)(a.created_at).format("ll")),Wt.default.createElement("div",{className:"mt-1 flex items-center space-x-3"},Wt.default.createElement("h3",{className:"truncate text-sm font-medium text-gray-900"},a.name),a.icp&&Wt.default.createElement("span",{className:"inline-flex flex-shrink-0 items-center rounded-full bg-green-50 px-1.5 py-0.5 text-xs font-medium text-green-700 ring-1 ring-inset ring-green-600/20"},"ICP")),a.details&&a.details.jarvis&&Wt.default.createElement("p",{className:"mt-1 text-xs text-gray-500 wrap whitespace-normal"},s(a)),Wt.default.createElement("p",{className:"mt-1 wrap whitespace-normal text-xs text-gray-500"},Wt.default.createElement(Wt.default.Fragment,null,a.details&&a.details.clearbit&&a.details.clearbit.employment&&a.details.clearbit.employment.title?Wt.default.createElement("span",null,a.details.clearbit.employment.title," @"," ",Wt.default.createElement("a",{href:"https://"+a.email.split("@")[1],target:"_new",className:"text-blue-500"},a.details.clearbit.employment.name)):Wt.default.createElement("a",{href:`https://${a.email.split("@")[1]}`,target:"_new",className:"text-blue-500 text-xs"},a.email.split("@")[1]))),Wt.default.createElement("p",{className:"mt-1 truncate text-xs text-gray-500"},Wt.default.createElement("span",null,a.utm_source," ",Wt.default.createElement("span",{className:"text-slate-400"},a.utm_medium?`${a.utm_medium}`:"")," ",a.stage)),Wt.default.createElement("div",{className:"mt-1 truncate text-xs text-gray-500 border-t border-gray-200 pt-2 pb-2"},Wt.default.createElement("span",null,"Consumed ",(0,b5.default)(a.pct_engaged).format("0%")," ",a.time_spent>0?Wt.default.createElement("span",null,"for"," ",xu.default.utc(xu.default.duration(a.time_spent,"seconds").asMilliseconds()).format("m[m] ss[s]")):Wt.default.createElement("span",null,"of your content:")),Wt.default.createElement("div",{className:"mt-1"},Wt.default.createElement(AG,{progressPercentage:a.pct_engaged}))),Wt.default.createElement("div",{className:"mt-1 flex flex-col border-t border-gray-200"},Wt.default.createElement("div",{className:"overflow-x-auto w-full"},Wt.default.createElement("div",{className:"inline-block min-w-full py-2 align-middle "},Wt.default.createElement("table",{className:"min-w-full divide-y divide-gray-200"},Wt.default.createElement("tbody",{className:"divide-y divide-gray-200"},o(a).map(l=>Wt.default.createElement("tr",null,Wt.default.createElement("td",{className:"whitespace-nowrap py-2 pr-4 text-xs font-medium text-gray-500 sm:pl-6 md:pl-0 w-1/4"},Wt.default.createElement("span",{className:"text-gray-400"},l.event)),Wt.default.createElement("td",{className:"break-all whitespace-normal py-2 text-xs text-gray-500"},l.details))))))))),a.details&&a.details.clearbit&&a.details.clearbit.avatar&&Wt.default.createElement("img",{className:"h-10 w-10 flex-shrink-0 rounded-full bg-gray-300",src:a.details.clearbit.avatar,alt:""})),Wt.default.createElement("div",null,Wt.default.createElement("div",{className:"-mt-px flex divide-x divide-gray-200"},Wt.default.createElement("div",{className:"flex w-0 flex-1"},Wt.default.createElement("a",{href:`mailto:${a.email}`,className:"relative -mr-px inline-flex w-0 flex-1 items-center justify-center gap-x-3 rounded-bl-lg border border-transparent py-4 text-sm font-semibold text-gray-900",onClick:l=>{n(!0),i({pageEntry:a}),l.preventDefault()}},Wt.default.createElement(W8,{className:"h-5 w-5 text-gray-400","aria-hidden":"true"}),"Email")),Wt.default.createElement("div",{className:"-ml-px flex w-0 flex-1"},a.phone&&Wt.default.createElement("a",{href:`tel:${a.phone}`,className:"relative inline-flex w-0 flex-1 items-center justify-center gap-x-3 rounded-br-lg border border-transparent py-4 text-sm font-semibold text-gray-900"},Wt.default.createElement(NO,{className:"h-5 w-5 text-gray-400","aria-hidden":"true"}),"Call"),!a.phone&&a.details&&a.details.clearbit&&a.details.clearbit.phone&&Wt.default.createElement("a",{href:`tel:${a.details.clearbit.phone}`,className:"relative inline-flex w-0 flex-1 items-center justify-center gap-x-3 rounded-br-lg border border-transparent py-4 text-sm font-semibold text-gray-900"},Wt.default.createElement(NO,{className:"h-5 w-5 text-gray-400","aria-hidden":"true"}),"Call"))))))),Wt.default.createElement(rz,{open:t,options:r,onHandleClose:()=>n(!1)}))},HDe=MXt;var Li=ie(Pe());var en=ie(Pe());var rRe=ie($0());var QDe=ie(WDe()),Qr=ie(Pe()),Ote=ie(qDe()),Ete=ie(ZDe());function Mte(){return Mte=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mte.apply(this,arguments)}function GXt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Bte(e,t){return t={exports:{}},e(t,t.exports),t.exports}var Aa=typeof Symbol=="function"&&Symbol.for,Nte=Aa?Symbol.for("react.element"):60103,Gte=Aa?Symbol.for("react.portal"):60106,iz=Aa?Symbol.for("react.fragment"):60107,oz=Aa?Symbol.for("react.strict_mode"):60108,sz=Aa?Symbol.for("react.profiler"):60114,az=Aa?Symbol.for("react.provider"):60109,lz=Aa?Symbol.for("react.context"):60110,Fte=Aa?Symbol.for("react.async_mode"):60111,uz=Aa?Symbol.for("react.concurrent_mode"):60111,cz=Aa?Symbol.for("react.forward_ref"):60112,dz=Aa?Symbol.for("react.suspense"):60113,FXt=Aa?Symbol.for("react.suspense_list"):60120,pz=Aa?Symbol.for("react.memo"):60115,fz=Aa?Symbol.for("react.lazy"):60116,IXt=Aa?Symbol.for("react.block"):60121,zXt=Aa?Symbol.for("react.fundamental"):60117,TXt=Aa?Symbol.for("react.responder"):60118,DXt=Aa?Symbol.for("react.scope"):60119;function qc(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Nte:switch(e=e.type,e){case Fte:case uz:case iz:case sz:case oz:case dz:return e;default:switch(e=e&&e.$$typeof,e){case lz:case cz:case fz:case pz:case az:return e;default:return t}}case Gte:return t}}}function eRe(e){return qc(e)===uz}var RXt=Fte,LXt=uz,VXt=lz,JXt=az,jXt=Nte,HXt=cz,WXt=iz,XXt=fz,qXt=pz,$Xt=Gte,KXt=sz,YXt=oz,ZXt=dz,UXt=function(e){return eRe(e)||qc(e)===Fte},QXt=eRe,eqt=function(e){return qc(e)===lz},tqt=function(e){return qc(e)===az},nqt=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Nte},rqt=function(e){return qc(e)===cz},iqt=function(e){return qc(e)===iz},oqt=function(e){return qc(e)===fz},sqt=function(e){return qc(e)===pz},aqt=function(e){return qc(e)===Gte},lqt=function(e){return qc(e)===sz},uqt=function(e){return qc(e)===oz},cqt=function(e){return qc(e)===dz},dqt=function(e){return typeof e=="string"||typeof e=="function"||e===iz||e===uz||e===sz||e===oz||e===dz||e===FXt||typeof e=="object"&&e!==null&&(e.$$typeof===fz||e.$$typeof===pz||e.$$typeof===az||e.$$typeof===lz||e.$$typeof===cz||e.$$typeof===zXt||e.$$typeof===TXt||e.$$typeof===DXt||e.$$typeof===IXt)},pqt=qc,fqt={AsyncMode:RXt,ConcurrentMode:LXt,ContextConsumer:VXt,ContextProvider:JXt,Element:jXt,ForwardRef:HXt,Fragment:WXt,Lazy:XXt,Memo:qXt,Portal:$Xt,Profiler:KXt,StrictMode:YXt,Suspense:ZXt,isAsyncMode:UXt,isConcurrentMode:QXt,isContextConsumer:eqt,isContextProvider:tqt,isElement:nqt,isForwardRef:rqt,isFragment:iqt,isLazy:oqt,isMemo:sqt,isPortal:aqt,isProfiler:lqt,isStrictMode:uqt,isSuspense:cqt,isValidElementType:dqt,typeOf:pqt},kzn=Bte(function(e,t){}),Azn=Bte(function(e){e.exports=fqt});var UDe=Object.getOwnPropertySymbols,hqt=Object.prototype.hasOwnProperty,mqt=Object.prototype.propertyIsEnumerable;function gqt(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function vqt(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(r.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Czn=vqt()?Object.assign:function(e,t){for(var n,r=gqt(e),i,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var s in n)hqt.call(n,s)&&(r[s]=n[s]);if(UDe){i=UDe(n);for(var a=0;a<i.length;a++)mqt.call(n,i[a])&&(r[i[a]]=n[i[a]])}}return r},yqt="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",xqt=yqt,Szn=Function.call.bind(Object.prototype.hasOwnProperty);function _qt(e,t,n,r,i){if(!1){for(var o in e)if(has$1(e,o)){var s;try{if(typeof e[o]!="function")var a}catch(u){}if(s instanceof Error&&!(s.message in loggedTypeFailures))var l}}}_qt.resetWarningCache=function(){};function tRe(){}function nRe(){}nRe.resetWarningCache=tRe;var bqt=function(){function e(r,i,o,s,a,l){if(l!==xqt){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:nRe,resetWarningCache:tRe};return n.PropTypes=n,n},Ts=Bte(function(e){if(!1)var t,n;else e.exports=bqt()}),wqt={animationData:Ts.object,path:Ts.string,play:Ts.bool,goTo:Ts.number,speed:Ts.number,direction:Ts.number,loop:Ts.oneOfType([Ts.number,Ts.bool]),useSubframes:Ts.bool,segments:Ts.oneOfType([Ts.arrayOf(Ts.number),Ts.bool]),rendererSettings:Ts.object,renderer:Ts.string,audioFactory:Ts.func,onComplete:Ts.func,onLoopComplete:Ts.func,onEnterFrame:Ts.func,onSegmentStart:Ts.func},Pqt={animationData:null,path:null,play:null,segments:null,goTo:null,useSubframes:!0,speed:1,direction:1,loop:!0,rendererSettings:{},renderer:"svg",audioFactory:null,onLoad:function(){},onComplete:function(){},onLoopComplete:function(){},onEnterFrame:function(){},onSegmentStart:function(){}},kqt=function(t){var n=t.loadAnimation,r=(0,Qr.memo)((0,Qr.forwardRef)(function(i,o){var s=i.animationData,a=i.path,l=i.play,u=i.speed,c=i.direction,f=i.segments,d=i.goTo,h=i.useSubframes,m=i.renderer,g=i.loop,b=i.rendererSettings,v=i.audioFactory,x=i.onLoad,y=i.onComplete,_=i.onLoopComplete,w=i.onEnterFrame,k=i.onSegmentStart,O=GXt(i,["animationData","path","play","speed","direction","segments","goTo","useSubframes","renderer","loop","rendererSettings","audioFactory","onLoad","onComplete","onLoopComplete","onEnterFrame","onSegmentStart"]),M=(0,Qr.useRef)(),I=(0,Qr.useRef)(),W=(0,Qr.useState)(!1),J=W[0],H=W[1],ee=(0,Qr.useState)(f),j=ee[0],V=ee[1];(0,Qr.useEffect)(function(){(0,Ote.default)(j,f)||V(f)},[f,j]);var B=(0,Qr.useState)(b),N=B[0],C=B[1];(0,Qr.useEffect)(function(){(0,Ote.default)(N,b)||C(b)},[b,N]),(0,Qr.useEffect)(function(){return function(){return I.current.removeEventListener("complete",y)}},[y]),(0,Qr.useEffect)(function(){return function(){return I.current.removeEventListener("loopComplete",_)}},[_]),(0,Qr.useEffect)(function(){return function(){return I.current.removeEventListener("enterFrame",w)}},[w]),(0,Qr.useEffect)(function(){return function(){return I.current.removeEventListener("segmentStart",k)}},[k]),(0,Qr.useEffect)(function(){return function(){return I.current.removeEventListener("DOMLoaded",x)}},[x]);var S=(0,Qr.useCallback)(function(T){I.current=T,o&&(o.current=T)},[]);(0,Qr.useEffect)(function(){function T(){return s==null||typeof s!="object"?s:typeof s.default=="object"?(0,Ete.default)(s.default):(0,Ete.default)(s)}var Q=n({animationData:T(),path:a,container:M.current,renderer:m,loop:!1,autoplay:!1,rendererSettings:N,audioFactory:v});S(Q);var U=function(){return H(!0)};return I.current.addEventListener("DOMLoaded",U),function(){I.current.removeEventListener("DOMLoaded",U),H(!1),I.current.destroy(),S(void 0)}},[g,m,N,s,a,v,S]),(0,Qr.useEffect)(function(){I.current.addEventListener("DOMLoaded",x)},[x]),(0,Qr.useEffect)(function(){I.current.addEventListener("complete",y)},[y]),(0,Qr.useEffect)(function(){I.current.addEventListener("loopComplete",_)},[_]),(0,Qr.useEffect)(function(){I.current.addEventListener("enterFrame",w)},[w]),(0,Qr.useEffect)(function(){I.current.addEventListener("segmentStart",k)},[k]),(0,Qr.useEffect)(function(){!J||(I.current.loop=g)},[J,g]);var G=(0,Qr.useRef)(!1);return(0,Qr.useEffect)(function(){if(!J)return;function T(D){I.current.goToAndPlay(D,!0),I.current.setDirection(c)}if(l===!0){var Q=!0;if(j){if(I.current.playSegments(j,Q),G.current=!0,c===-1){var U=j[1];T(U)}}else if(G.current&&I.current.resetSegments(Q),G.current=!1,c===-1){var F=I.current.getDuration(!0);T(F)}else I.current.play()}else l===!1&&I.current.pause()},[l,j,J,c]),(0,Qr.useEffect)(function(){!J||Number.isNaN(u)||I.current.setSpeed(u)},[u,J]),(0,Qr.useEffect)(function(){!J||I.current.setDirection(c)},[c,J]),(0,Qr.useEffect)(function(){if(!!J&&d!=null){var T=!0;l?I.current.goToAndPlay(d,T):I.current.goToAndStop(d,T)}},[d,l,J]),(0,Qr.useEffect)(function(){I.current.setSubframe&&I.current.setSubframe(h)},[h]),Qr.default.createElement("div",Mte({},O,{ref:M}))}));return r.propTypes=wqt,r.defaultProps=Pqt,r},Aqt=kqt(QDe.default),hz=Aqt;var mz={v:"5.6.8",fr:25,ip:0,op:50,w:1920,h:1080,nm:"icon create",ddd:0,assets:[],layers:[{ddd:0,ind:1,ty:3,nm:"Null 3",sr:1,ks:{o:{a:0,k:0,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[960,540,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:1,k:[{i:{x:[.461,.461,.667],y:[1,1,1]},o:{x:[.49,.49,.333],y:[0,0,0]},t:0,s:[0,0,100]},{i:{x:[.753,.753,.667],y:[1,1,1]},o:{x:[.386,.386,.333],y:[0,0,0]},t:14,s:[75,75,100]},{i:{x:[.424,.424,.667],y:[1,1,1]},o:{x:[.377,.377,.333],y:[0,0,0]},t:25,s:[50,50,100]},{i:{x:[.795,.795,.667],y:[1,1,1]},o:{x:[.391,.391,.333],y:[0,0,0]},t:33,s:[80,80,100]},{t:50,s:[0,0,100]}],ix:6}},ao:0,ip:0,op:140,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"Group 1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:1,k:[{i:{x:[.025],y:[-.07]},o:{x:[.333],y:[0]},t:0,s:[0]},{i:{x:[.349],y:[.56]},o:{x:[.871],y:[.478]},t:16,s:[45]},{i:{x:[.552],y:[1]},o:{x:[.924],y:[1.326]},t:32,s:[135]},{t:49,s:[180]}],ix:10},p:{a:0,k:[589.859,618.793,0],ix:2},a:{a:0,k:[-370.141,78.793,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[-309.388,78.793],[-430.894,78.793]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:25,ix:5},lc:1,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:140,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"Group 2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:1,k:[{i:{x:[.025],y:[-.07]},o:{x:[.333],y:[0]},t:2,s:[0]},{i:{x:[.349],y:[.56]},o:{x:[.871],y:[.478]},t:18,s:[45]},{i:{x:[.552],y:[1]},o:{x:[.924],y:[1.248]},t:34,s:[135]},{t:50,s:[180]}],ix:10},p:{a:0,k:[589.859,618.793,0],ix:2},a:{a:0,k:[-370.141,78.793,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[-370.141,18.04],[-370.141,139.546]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:25,ix:5},lc:1,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 2",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:140,st:0,bm:0},{ddd:0,ind:4,ty:4,nm:"Group 3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[934.126,254.276,0],ix:2},a:{a:0,k:[-25.874,-285.724,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],v:[[-25.874,-407.23],[14.628,-326.226],[95.632,-285.724],[14.628,-245.222],[-25.874,-164.218],[-66.376,-245.222],[-147.38,-285.724],[-66.376,-326.226]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tr",p:{a:0,k:[-30,-284],ix:2},a:{a:0,k:[-30,-284],ix:1},s:{a:1,k:[{i:{x:[.783,.783],y:[1,1]},o:{x:[.627,.627],y:[0,0]},t:0,s:[100,100]},{i:{x:[.38,.38],y:[1,1]},o:{x:[.152,.152],y:[0,0]},t:13,s:[125,125]},{i:{x:[.598,.598],y:[1,1]},o:{x:[.497,.497],y:[0,0]},t:33,s:[90,90]},{t:50,s:[100,100]}],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 3",np:1,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"st",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:25,ix:5},lc:1,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:0,op:140,st:0,bm:0},{ddd:0,ind:5,ty:4,nm:"Group 4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[670.863,375.782,0],ix:2},a:{a:0,k:[-289.137,-164.218,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],v:[[-289.137,-265.473],[-255.385,-197.971],[-187.882,-164.218],[-255.385,-130.466],[-289.137,-62.963],[-322.889,-130.466],[-390.392,-164.218],[-322.889,-197.971]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tr",p:{a:0,k:[-290,-162],ix:2},a:{a:0,k:[-290,-162],ix:1},s:{a:1,k:[{i:{x:[.783,.783],y:[1,1]},o:{x:[.627,.627],y:[0,0]},t:2,s:[100,100]},{i:{x:[.667,.667],y:[1,1]},o:{x:[.333,.333],y:[0,0]},t:17,s:[90,90]},{i:{x:[.063,.063],y:[1,1]},o:{x:[.497,.497],y:[0,0]},t:37,s:[125,125]},{t:50,s:[100,100]}],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 4",np:1,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"st",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:25,ix:5},lc:1,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:0,op:140,st:0,bm:0},{ddd:0,ind:6,ty:4,nm:"Group 6",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[1339.145,821.303,0],ix:2},a:{a:0,k:[379.145,281.303,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[379.145,261.052],[379.145,301.554]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:25,ix:5},lc:1,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 6",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:140,st:0,bm:0},{ddd:0,ind:7,ty:4,nm:"Group 7",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[1349.271,730.174,0],ix:2},a:{a:0,k:[389.271,190.174,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[318.392,362.307],[460.149,362.307],[460.149,18.04],[318.392,18.04]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:25,ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 7",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:140,st:0,bm:0},{ddd:0,ind:8,ty:4,nm:"Group 5",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[712.204,892.112,0],ix:2},a:{a:0,k:[-247.796,352.112,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[{i:[[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0]],v:[[-230.407,295.867],[-244.838,312.313],[-265.186,408.357]],c:!1}]},{t:25,s:[{i:[[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0]],v:[[-134.407,295.867],[-148.838,312.313],[-148.186,411.857]],c:!1}]}],ix:2,x:`var $bm_rt;
var s, t0, t1, t;
$bm_rt = s = thisComp.layer('Null 3').transform.scale[0];
if (numKeys > 1) {
    t0 = key(1).time;
    t1 = key(numKeys).time;
    t = linear(s, 0, 100, t0, t1);
    $bm_rt = valueAtTime(t);
} else
    $bm_rt = value;`},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:25,ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 5",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:140,st:0,bm:0},{ddd:0,ind:9,ty:4,nm:"Group 8",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[1025.255,770.676,0],ix:2},a:{a:0,k:[65.255,230.676,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[{i:[[0,0],[0,0],[30.97,0],[0,0],[0,-34.25],[-40.502,0],[0,0],[0,0],[-44.465,0],[0,0],[-18.189,5.207],[0,0],[-18.92,0],[0,0]],o:[[0,0],[0,30.97],[0,0],[-26.482,0],[0,34.25],[0,0],[0,0],[35.571,31.389],[0,0],[18.92,0],[0,0],[18.189,-5.207],[0,0],[0,0]],v:[[95.632,99.044],[95.632,139.546],[34.879,200.299],[-127.129,200.299],[-187.882,261.052],[-127.129,321.805],[-46.125,321.805],[14.628,321.805],[115.882,362.307],[176.635,362.307],[240.529,347.878],[240.529,347.878],[298.141,342.056],[318.392,342.056]],c:!1}]},{t:25,s:[{i:[[0,0],[0,0],[30.97,0],[0,0],[0,-34.25],[-40.502,0],[0,0],[0,0],[-44.465,0],[0,0],[-18.189,5.207],[0,0],[-18.92,0],[0,0]],o:[[0,0],[0,30.97],[0,0],[-26.482,0],[0,34.25],[0,0],[0,0],[35.571,31.389],[0,0],[18.92,0],[0,0],[18.189,-5.207],[0,0],[0,0]],v:[[147.632,104.343],[157.632,138.845],[84.879,200.598],[-64.129,200.455],[-124.882,261.208],[-64.129,321.961],[.875,321.61],[61.628,321.61],[133.882,362.307],[194.635,362.307],[258.529,347.878],[258.529,347.878],[298.141,342.056],[318.392,342.056]],c:!1}]}],ix:2,x:`var $bm_rt;
var s, t0, t1, t;
$bm_rt = s = thisComp.layer('Null 3').transform.scale[0];
if (numKeys > 1) {
    t0 = key(1).time;
    t1 = key(numKeys).time;
    t = linear(s, 0, 100, t0, t1);
    $bm_rt = valueAtTime(t);
} else
    $bm_rt = value;`},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:25,ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 8",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:140,st:0,bm:0},{ddd:0,ind:10,ty:4,nm:"Group 9",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[1023.987,536.748,0],ix:2},a:{a:0,k:[63.987,-3.252,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[{i:[[0,0],[0,0],[16.089,16.089],[0,0],[16.513,-18.364],[0,0]],o:[[0,0],[15.055,-17.061],[0,0],[-17.462,-17.46],[0,0],[0,0]],v:[[-25.874,200.299],[272.827,-143.967],[270.987,-202.944],[270.987,-202.944],[208.476,-201.284],[-155.632,209.06]],c:!1}]},{t:25,s:[{i:[[0,0],[0,0],[16.089,16.089],[0,0],[16.513,-18.364],[0,0]],o:[[0,0],[15.055,-17.061],[0,0],[-17.462,-17.46],[0,0],[0,0]],v:[[63.126,186.196],[300.827,-175.07],[298.987,-234.047],[298.987,-234.047],[236.476,-232.386],[-66.632,194.957]],c:!1}]}],ix:2,x:`var $bm_rt;
var s, t0, t1, t;
$bm_rt = s = thisComp.layer('Null 3').transform.scale[0];
if (numKeys > 1) {
    t0 = key(1).time;
    t1 = key(numKeys).time;
    t = linear(s, 0, 100, t0, t1);
    $bm_rt = valueAtTime(t);
} else
    $bm_rt = value;`},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:25,ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 9",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:140,st:0,bm:0},{ddd:0,ind:11,ty:4,nm:"Group 10",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[772.11,905.081,0],ix:2},a:{a:0,k:[-187.89,365.081,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[{i:[[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0]],v:[[-265.186,408.357],[-154.974,354.713],[-110.594,321.805]],c:!1}]},{t:25,s:[{i:[[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0]],v:[[-146.186,412.43],[-49.974,367.785],[-11.594,321.877]],c:!1}]}],ix:2,x:`var $bm_rt;
var s, t0, t1, t;
$bm_rt = s = thisComp.layer('Null 3').transform.scale[0];
if (numKeys > 1) {
    t0 = key(1).time;
    t1 = key(numKeys).time;
    t = linear(s, 0, 100, t0, t1);
    $bm_rt = valueAtTime(t);
} else
    $bm_rt = value;`},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:25,ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 10",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:140,st:0,bm:0},{ddd:0,ind:12,ty:4,nm:"Group 11",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[846.4,666.578,0],ix:2},a:{a:0,k:[-113.6,126.578,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[{i:[[0,0],[36.294,53.623],[0,0],[0,0],[0,0]],o:[[0,0],[20.549,-34.25],[0,0],[0,0],[0,0]],v:[[-181.914,290.375],[-289.137,261.052],[-187.882,78.793],[-5.623,-42.712],[61.936,-35.752]],c:!1}]},{t:25,s:[{i:[[0,0],[36.294,53.623],[0,0],[0,0],[0,0]],o:[[0,0],[20.549,-34.25],[0,0],[0,0],[0,0]],v:[[-135.914,291.375],[-223.137,262.052],[-130.882,89.793],[11.377,-31.712],[89.936,-36.752]],c:!1}]}],ix:2,x:`var $bm_rt;
var s, t0, t1, t;
$bm_rt = s = thisComp.layer('Null 3').transform.scale[0];
if (numKeys > 1) {
    t0 = key(1).time;
    t1 = key(numKeys).time;
    t = linear(s, 0, 100, t0, t1);
    $bm_rt = valueAtTime(t);
} else
    $bm_rt = value;`},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:25,ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 11",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:140,st:0,bm:0},{ddd:0,ind:13,ty:4,nm:"Group 12",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[1199.445,563.81,0],ix:2},a:{a:0,k:[239.445,23.81,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[{i:[[0,0],[0,0],[0,0]],o:[[0,0],[-51.529,0],[0,0]],v:[[318.392,58.542],[298.141,58.542],[160.497,-10.923]],c:!1}]},{t:25,s:[{i:[[0,0],[0,0],[0,0]],o:[[0,0],[-51.529,0],[0,0]],v:[[318.392,58.542],[298.141,58.542],[185.497,8.077]],c:!1}]}],ix:2,x:`var $bm_rt;
var s, t0, t1, t;
$bm_rt = s = thisComp.layer('Null 3').transform.scale[0];
if (numKeys > 1) {
    t0 = key(1).time;
    t1 = key(numKeys).time;
    t = linear(s, 0, 100, t0, t1);
    $bm_rt = valueAtTime(t);
} else
    $bm_rt = value;`},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:25,ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 12",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:140,st:0,bm:0}],markers:[]};var iRe=ie(Xa());function Ite(e){let[t,n]=(0,en.useState)(""),[r,i]=(0,en.useState)(!1),[o,s]=(0,en.useState)(!1),[a,l]=(0,en.useState)(null),[u,c]=(0,en.useState)(30);(0,en.useEffect)(()=>{e.open!=r&&i(e.open)},[e]);let f=d=>{d.key==="Enter"&&!o&&(d.preventDefault(),handleQuestion())};return(0,en.useEffect)(()=>{console.log("Question Results Updated: ",a)},[a]),(0,en.useEffect)(()=>{n(e.question)},[e.question]),(0,en.useEffect)(()=>{e.open&&e.question&&handleQuestion()},[e.open]),handleQuestion=()=>{s(!0),c(90),l(null);let d=null;d=setInterval(()=>{c(h=>h==1?60:h-1)},1e3),Hle(e.id,t,"answer").then(h=>{s(!1),clearInterval(d),h.success?l(h.response.data):(console.log("Error: ",h.response),l({error:!0,error_message:h.response}))})},formatTime=d=>{let h=iRe.default.duration(d,"seconds"),m=h.minutes(),g=h.seconds().toString().padStart(2,"0");return`${m}m ${g}s`},generateStatusText=d=>d>70?"Analyzing the question...":d>60?"Searching through our Youtube Library... ":d>55?"Sifting through the results... ":d>50?"Picking the best results for you...":d>45?"Distilling the episode into key principles...":d>30?"Pulling together a great answer for you...":"Fact checking the answer...",en.default.createElement(Fi.Root,{show:r,as:en.Fragment,appear:!0},en.default.createElement(Ii,{as:"div",className:"relative z-10",onClose:i},en.default.createElement(Fi.Child,{as:en.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0"},en.default.createElement("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-25 transition-opacity"})),en.default.createElement("div",{className:"fixed inset-0 z-10 w-screen overflow-y-auto p-4 sm:p-6 md:p-20"},en.default.createElement(Fi.Child,{as:en.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95"},en.default.createElement(Ii.Panel,{className:"mx-auto max-w-xl transform divide-y divide-gray-100 overflow-hidden rounded-xl bg-white shadow-2xl ring-1 ring-black ring-opacity-5 transition-all"},en.default.createElement("div",{className:"relative"},en.default.createElement(Y8,{className:"pointer-events-none absolute left-4 top-3.5 h-5 w-5 text-gray-400","aria-hidden":"true"}),en.default.createElement("input",{type:"text",className:"h-12 w-full border-0 bg-transparent pl-11 pr-4 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-md disabled:text-gray-400",placeholder:"Ask \u26A1\uFE0F AI a Question about your Go-To-Market...",onChange:d=>n(d.target.value),onKeyDown:f,value:t,disabled:o})),!o&&a!=null&&en.default.createElement("div",{className:"max-h-[440px] scroll-py-2 overflow-y-auto text-gray-800 px-8 py-0 mb-4 bg-white"},en.default.createElement("div",{className:"prose text-sm text-gray-950"},a.error&&en.default.createElement("div",{className:"text-red-500"},a.error_message&&a.error_message.message&&en.default.createElement("p",null,a.error_message.message,". Please kindly try again by asking a more specific question."),a.error&&!a.error_message&&en.default.createElement("p",null,a.error)),!a.error&&a.related_video_id=="videoId"&&en.default.createElement("div",{className:"text-red-500"},en.default.createElement("p",{className:"py-2"},"Please phrase your question differntially and be more specific so I can tap into the right knowledge base.")),!a.error&&en.default.createElement("div",{className:"flex flex-col"},a.answerCredibility&&en.default.createElement("p",{className:"mb-0"},a.answerCredibility),a.answerDetails&&en.default.createElement("ul",{className:"pt-0 mt-2 pb-0 mb-0 space-y-4"},a.answerDetails.map((d,h)=>en.default.createElement("li",{key:h},d))),a.answerUpsell&&en.default.createElement("p",{className:""},a.answerUpsell),a.related_video&&a.related_video_url&&en.default.createElement("div",{className:"bg-gray-100 rounded-md p-6 mb-4"},en.default.createElement("div",{className:"player-wrapper rounded-md border-4 border-black"},en.default.createElement(rRe.default,{url:a.related_video_url,className:"react-player",width:"100%",height:"100%"})),en.default.createElement("button",{onClick:()=>{window.open(a.related_video_url,"_blank")},className:"mt-4 w-full rounded-md border border-transparent bg-slate-200 px-4 py-2 text-sm font-medium text-slate-500 shadow-sm hover:bg-slate-300 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"},en.default.createElement("center",null,"Watch on Youtube \u2192")),en.default.createElement("button",{onClick:()=>{window.open("https://tkkader.com/gtm","_blank")},className:"mt-4 w-full rounded-md border border-transparent bg-indigo-600 px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 no-underline text-center"},en.default.createElement("center",null,"Implement inside the GTM Program \u2192")))))),o&&en.default.createElement("div",{className:"p-6"},en.default.createElement("div",{className:"absolute inset-0 flex justify-center items-center z-10"},en.default.createElement("div",{className:"bg-white rounded-full p-4 border-4 border-blue-500 opacity-50"},en.default.createElement(hz,{loop:!0,style:{width:"150px",height:"150px"},animationData:mz,play:!0}),en.default.createElement("div",{className:"absolute left-0 right-0 bottom-[30px] flex justify-center opacity-100 items-center text-center text-blue-900 text-sm"},en.default.createElement("span",{className:"text-blue-900 font-bold"},generateStatusText(u),en.default.createElement("br",null),formatTime(u))))),en.default.createElement("div",{className:"animate-pulse space-y-2"},en.default.createElement("div",{className:"h-4 bg-gray-100 rounded w-4/4"}),en.default.createElement("div",{className:"h-4 bg-gray-100 rounded w-4/4"}),en.default.createElement("div",{className:"h-4 bg-gray-100 rounded w-4/4"}),en.default.createElement("div",{className:"h-4 bg-gray-100 rounded w-4/4"}),en.default.createElement("div",{className:"h-4 bg-gray-100 rounded w-3/4"}),en.default.createElement("div",{className:"h-4 bg-gray-100 rounded w-3/4"}),en.default.createElement("div",{className:"h-4 bg-gray-100 rounded w-3/4"}),en.default.createElement("div",{className:"h-4 bg-gray-100 rounded w-3/4"}),en.default.createElement("div",{className:"h-4 bg-gray-100 rounded w-2/4"}),en.default.createElement("div",{className:"h-4 bg-gray-100 rounded w-2/4"}),en.default.createElement("div",{className:"h-4 bg-gray-100 rounded w-2/4"}),en.default.createElement("div",{className:"h-4 bg-gray-100 rounded w-2/4"}),en.default.createElement("div",{className:"h-4 bg-gray-100 rounded w-1/4"}))))))))}var $i=ie(Pe());var zte=ie(nx());var Sqt=e=>{let{userData:t}=(0,$i.useContext)(Vr),[n,r]=(0,$i.useState)(!1),[i,o]=(0,$i.useState)(!1),[s,a]=(0,$i.useState)(!1),[l,u]=(0,$i.useState)(!1),[c,f]=(0,$i.useState)(!1);(0,$i.useEffect)(()=>{Fn.track("Loaded Instant Content Launchpack Add-On Modal"),e.isOpen&&a(!0)},[e]),(0,$i.useEffect)(()=>{t?.uid&&(zte.default.identify(t.uid),zte.default.people.set({$email:t.email,$name:t.name}),t?.subscription?.purchased_launchpack&&f(!0))},[t]);let d=()=>$i.default.createElement("ul",{className:"text-sm text-gray-800 list-disc ml-4 mt-4 space-y-4"},$i.default.createElement("li",null,$i.default.createElement("strong",null,"Build Your Lead Magnet:")," Learn how to create a simple and effective Lead Magnet that will attract your ideal customers and generate leads."),$i.default.createElement("li",null,$i.default.createElement("strong",null,"Launch Your Content Funnel:")," Learn how to set up your Content Funnel in Instant to start generating quality leads and pipeline."),$i.default.createElement("li",null,$i.default.createElement("strong",null,"Marketing Math & Diagnostics Training to Scale:")," Learn how to do marketing math to establish your lead targets and effectively use the metrics inside of Instant to scale your content marketing and lead generation efforts.")),h=()=>{Fn.track("Purchase Instant Content Launchpack Add-On"),r(!0),setTimeout(()=>{vS(t.subscription.plan,!0).then(m=>{m.success?(o({success:!0,title:"Boom. You've now got the Instant Content Launchpack",message:$i.default.createElement($i.default.Fragment,null,$i.default.createElement("p",{className:"text-sm text-gray-800"},"Congratulations! You've unlocked the Instant Content Launchpack. You'll now have access to step-by-step training on how to:"),d(),$i.default.createElement("p",{className:"text-sm text-gray-800 mt-4"},"You'll receive an email with a special link to access the training.")),button_cta:"Let's Do This!",onHandleSuccess:()=>{window.location.reload()}}),a(!0)):(console.log(m),o({success:!1,title:"We couldn't complete your purchase.",message:$i.default.createElement($i.default.Fragment,null,"Unfortunately, we weren't able to complete your purchase. Please"," ",$i.default.createElement("a",{href:"mailto:team@instantlanding.page?subject=Instant PRO Trial Couldn't Start",className:"text-blue-500 text-underline",target:"_new"},"email us")," ","with the error message below and we'll get you sorted."),errors:m.response.message,button_cta:"Got It",onHandleClose:()=>{a(!1),e.onClose&&e.onClose(),o(!1)}}),a(!0))})},1e3)};return $i.default.createElement(Dc,{open:s,options:i||{mode:"action",title:"Purchase \u26A1\uFE0F Content Launchpack",message:$i.default.createElement($i.default.Fragment,null,$i.default.createElement("p",{className:"text-sm text-gray-800"},"Add the Instant Content Marketing Launchpack to your account for step-by-step training and templates on how to:"),d()),button_cta:"Purchase the Instant Content Launchpack",button_seconday_cta:"($1250 for lifetime access)",onAction:()=>{h()},onHandleClose:()=>{a(!1),e.onClose&&e.onClose()}}})},oRe=Sqt;var Oqt=[{name:"Getting Started with Instant",description:"Learn how to get started with Instant and how to use it to generate quality leads for your business.",link:"https://instant.academy/how-to-build-high-converting-landing-pages",icon:bS},{name:"How to Create a Lead Magnet",description:"Learn the key principles behind building a lead magnet that converts leads to revenue.",link:"https://instant.academy/how-to-create-a-great-lead-magnet",icon:h2},{name:"Nurture Your Leads",description:"Learn how to connect Instant with your MarTech stack to nurture your leads.",link:"https://instant.academy/nurturing-your-leads",icon:xS},{name:"Track Pipeline & Revenue",description:"Learn how to connect your CRM to Instant and track your pipeline and revenue.",link:"https://instant.academy/tracking-pipeline-revenue",icon:yS}],Eqt=[{name:"How to Promote Your Lead Magnet",description:"Learn how to promote your lead magnet to generate more leads for your business.",link:"https://instant.academy/promoting-your-lead-magnet",icon:bS},{name:"Optimizing Your Landing Page",description:"Learn how to optimize your Landing Page and your overall GTM machine.",link:"https://instant.academy/optimizing-your-landing-page",icon:xS},{name:"Nurture Your Leads",description:"Learn how to nurture your leads to convert them to paying customers.",link:"https://instant.academy/nurturing-your-leads",icon:yJ},{name:"Track Pipeline & Revenue",description:"Learn how to connect your CRM to Instant and track your pipeline and revenue.",link:"https://instant.academy/tracking-pipeline-revenue",icon:yS}],Mqt=e=>{let[t,n]=(0,Li.useState)(!1),[r,i]=(0,Li.useState)(""),[o,s]=(0,Li.useState)(!1);return Li.default.createElement("div",{className:"bg-white mb-8"},Li.default.createElement("div",{className:"mx-auto w-full"},Li.default.createElement("div",{className:"mx-auto grid max-w-2xl grid-cols-1 gap-x-8 gap-y-8 lg:mx-0 lg:max-w-none"},Li.default.createElement("div",null,Li.default.createElement("h3",{className:"text-lg font-semibold leading-6 text-gray-900"},"Instant Academy"),Li.default.createElement("p",{className:"mt-2 text-sm text-gray-500"},"Helpful tutorials and videos by the creators of Instant where you can learn how to make the most of your Instant account so you can generate more leads and revenue."),Li.default.createElement("div",{className:"mt-6 flex"},Li.default.createElement("input",{type:"text",name:"question",id:"question",value:r,onChange:a=>{i(a.target.value)},onKeyDown:a=>{a.key==="Enter"&&r.length>=5&&n(!0)},className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md mr-4 flex-grow",placeholder:"Ask \u26A1\uFE0F AI a Question about your Go-To-Market..."}),Li.default.createElement("button",{onClick:()=>{n(!0)},type:"button",disabled:!(r.length>=5),className:`min-w-[140px] inline-flex items-center justify-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white ${r.length>=5?"bg-slate-500 hover:bg-slate-600 focus:ring-slate-400 cursor-pointer":"bg-slate-200 hover:bg-slate-200 focus:ring-slate-400"} focus:outline-none focus:ring-2 focus:ring-offset-2`},"Ask \u26A1\uFE0F AI \u2192"))),Li.default.createElement("dl",{className:"grid grid-cols-1 gap-x-8 gap-y-16 sm:grid-cols-2"},(e.advanced?Eqt:Oqt).map(a=>Li.default.createElement("div",{key:a.name},Li.default.createElement("dt",{className:"text-base font-semibold leading-7 text-gray-900"},Li.default.createElement("div",{className:"mb-4 flex h-10 w-10 items-center justify-center rounded-lg bg-indigo-600"},Li.default.createElement(a.icon,{className:"h-6 w-6 text-white","aria-hidden":"true"})),Li.default.createElement("a",{href:a.link,target:"_blank",className:"text-indigo-600 hover:text-indigo-800 hover:underline"},a.name)),Li.default.createElement("dd",{className:"mt-1 text-base leading-7 text-gray-600"},a.description)))),!(e.userData.subscription.academy||e.userData.subscription.purchased_launchpack||e.userData.subscription.plan=="vip")&&Li.default.createElement("div",{className:"bg-slate-200 mb-4 rounded-md p-8"},Li.default.createElement("div",{className:"mx-auto w-full"},Li.default.createElement("h2",{className:"text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl"},"Instant Content Launchpack"),Li.default.createElement("p",{className:"mt-3 text-black font-bold mb-3 ml-0 pl-0 hidden"},"$1250 for lifetime access"),Li.default.createElement("p",{className:"mt-4 max-w-3xl text-xl text-gray-500"},"Add the Content Marketing Launchpack to your account to get step-by-step training and templates on how to build your simple Lead Magnet, set up your Content Funnel in Instant and start generating leads."),Li.default.createElement("div",{className:"mt-6 flex items-center gap-x-6"},Li.default.createElement("a",{href:"https://tkkader.com/launchpack",target:"_blank",className:"disabled:opacity-25 text-center justify-center flex items-center rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",onClick:a=>{a.preventDefault(),s(!0)}},"Add to Account \u2192"),Li.default.createElement("a",{href:"https://tkkader.com/launchpack",target:"_blank",className:"hidden text-sm font-semibold leading-6 text-gray-900 hover:text-gray-700 focus:outline-none focus:underline focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 focus:ring-offset-slate-100 focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},"Learn More")))))),Li.default.createElement(Ite,{open:t,id:e.id,question:r}),Li.default.createElement(oRe,{isOpen:o,onClose:()=>{s(!1)}}))},sRe=Mqt;var ts=ie(Pe());var Tte=ie(fu()),Dte=ie(Xa());function Bqt(...e){return e.filter(Boolean).join(" ")}var Nqt=e=>{let[t,n]=(0,ts.useState)(null),[r,i]=(0,ts.useState)([]),o=async()=>{if(e.snapshot){if(console.log("Skipping server retrieval of overview data"),e.data){n(e.data);return}return}let a=await mS(e.page.id);a&&a.success?n(a.response.data):console.log("Error fetching page overview metrics",a)};(0,ts.useEffect)(()=>{o()},[]),(0,ts.useEffect)(()=>{o()},[e.data]),(0,ts.useEffect)(()=>{t&&(console.log("Overview Data: ",t),i(generateStatsForAllPeriods(t)))},[t]);let s=(a,l)=>a===0||l===0||a==null||l==null?0:(a-l)/l;return generateStatObject=(a,l,u,c="0,0")=>({stat:c=="duration"?Dte.default.utc(Dte.default.duration(a,"seconds").asMilliseconds()).format("m[m] ss[s]"):(0,Tte.default)(a).format(c),statLabel:u,change:(0,Tte.default)(s(a,l)).format("0.00%"),changeType:s(a,l)>0?"increase":s(a,l)<0?"decrease":"neutral"}),generatStatPeriod=a=>{console.log("Data: ",a);let l=[];return l.push(generateStatObject(a.current.numVisits,a.previous.numVisits,"visits")),l.push(generateStatObject(a.current.numLeads,a.previous.numLeads,"leads")),l.push(generateStatObject(a.current.conversion/100,a.previous.conversion/100,"conversion rate","0%")),l.push(generateStatObject(a.current.avgTimeSpent,a.previous.avgTimeSpent,"time spent","duration")),a.current.numLeads>0&&l.push(generateStatObject(a.current.numCTA/a.current.numLeads,a.previous.numCTA/a.previous.numLeads,"Clicked CTA","0%")),l.push(generateStatObject(a.current.numOpportunities,a.previous.numOpportunities,"opportunities")),l.push(generateStatObject(a.current.numOpportunitiesWon,a.previous.numOpportunitiesWon,"won")),l.push(generateStatObject(a.current.totalRevenue,a.previous.totalRevenue,"revenue","$0a")),l},generateStatsForAllPeriods=a=>{let l=[];return[{label:"Last 30 Days",previousLabel:"Previous 30 Days",data:a.last_30_days},{label:"Last 90 Days",previousLabel:"Prior 90-Days",data:a.last_90_days},{label:"Lifetime",data:{current:a.lifetime,previous:a.lifetime}}].forEach(c=>{l.push({period:c.label,previousLabel:c.previousLabel,stats:generatStatPeriod(c.data)})}),l},ts.default.createElement("div",null,ts.default.createElement("div",null,ts.default.createElement("dl",{className:"min-h-[250px] mt-6 mb-6 grid grid-cols-1 gap-6 divide-y divide-gray-200 overflow-hidden rounded-lg bg-white md:grid-cols-3 md:divide-x md:divide-y-0"},r.map(a=>ts.default.createElement("div",{key:a.period,className:"px-4 first:pl-0"},ts.default.createElement("h3",{className:"text-base font-semibold leading-6 text-gray-900"},a.period,a.period!="Lifetime"&&ts.default.createElement("span",{className:"ml-2 text-sm font-medium text-gray-500"},"vs ",a.previousLabel)),a.stats.map(l=>ts.default.createElement("dd",{key:`${a.period}-${l.statLabel}`,className:"mt-1 flex items-baseline justify-between md:block lg:flex space-y-4"},ts.default.createElement("div",{className:"flex items-baseline text-2xl font-semibold text-indigo-600"},l.stat,ts.default.createElement("span",{className:"ml-2 text-sm font-medium text-gray-500"},l.statLabel)),l.changeType=="neutral"?ts.default.createElement("div",{className:"inline-flex items-baseline rounded-full px-2.5 py-0.5 text-sm font-medium md:mt-2 lg:mt-0 text-white"},ts.default.createElement(Hj,{className:"-ml-1 mr-0.5 h-5 w-5 flex-shrink-0 self-center text-green-500","aria-hidden":"true"}),ts.default.createElement("span",{className:"sr-only"},"No Change"),"Neutral"):ts.default.createElement("div",{className:Bqt(l.changeType==="increase"?"bg-green-100 text-green-800":"bg-red-100 text-red-800","inline-flex items-baseline rounded-full px-2.5 py-0.5 text-sm font-medium md:mt-2 lg:mt-0")},l.changeType==="increase"?ts.default.createElement(C2,{className:"-ml-1 mr-0.5 h-5 w-5 flex-shrink-0 self-center text-green-500","aria-hidden":"true"}):ts.default.createElement(A2,{className:"-ml-1 mr-0.5 h-5 w-5 flex-shrink-0 self-center text-red-500","aria-hidden":"true"}),ts.default.createElement("span",{className:"sr-only"}," ",l.changeType==="increase"?"Increased":"Decreased"," ","by"," "),l.change))))))))},gz=Nqt;var fi=ie(Pe());var aRe=ie(Xa()),Uzn=ie(CG());var _v=ie(Ua()),lRe=ie(hN());vo.register(vh,jd,Vc,gu,il,Zg,T4,D4,R4);var vz=e=>aRe.default.duration(e,"seconds").format("h[h] m[m] s[s]"),Gqt=({pdfUrl:e,currentUnitEngagement:t={},previousUnitEngagement:n={},currentClicksByPage:r={},currentAvgViewingTimeByPage:i={},currentTotalViewingTimeByPage:o={},previousClicksByPage:s={},previousAvgViewingTimeByPage:a={},previousTotalViewingTimeByPage:l={}})=>{let[u,c]=(0,fi.useState)(0),f=(0,fi.useRef)(null),d=(0,lRe.pageNavigationPlugin)(),h=Object.keys(i),m=()=>{c((u+1)%h.length)},g=()=>{c((u-1+h.length)%h.length)},b={labels:h,datasets:[{type:"bar",label:"Current Period",data:Object.values(t),backgroundColor:y=>u===y.dataIndex?"black":"rgb(88, 80, 236)",borderColor:y=>u===y.dataIndex?"black":"rgb(88, 80, 236)",borderWidth:1,yAxisID:"y"},{type:"bar",label:"Previous Period",data:Object.values(n),backgroundColor:"rgba(107, 114, 128, 0.5)",borderColor:y=>u===y.dataIndex?"red":"rgba(107, 114, 128, 0.5)",borderWidth:y=>u===y.dataIndex?3:1,yAxisID:"y"},{type:"line",label:"Avg. Time Current Period",data:Object.values(i),backgroundColor:"rgba(255, 99, 132, 0.5)",borderColor:"rgba(255, 99, 132, 1)",borderWidth:2,yAxisID:"y1",fill:!1,tension:.4},{type:"line",label:"Avg. Time Previous Period",data:Object.values(a),backgroundColor:"rgba(54, 162, 235, 0.5)",borderColor:"rgba(54, 162, 235, 1)",borderWidth:2,yAxisID:"y1",fill:!1,tension:.4}]},v={responsive:!0,maintainAspectRatio:!1,animation:{duration:1e3,easing:"easeOutBounce"},interaction:{mode:"index",intersect:!1},onHover:(y,_)=>{y.native.target.style.cursor=_[0]?"pointer":"default"},onClick:(y,_)=>{if(_.length){let w=_[0].index;c(w)}},scales:{x:{title:{display:!1}},y:{display:!0,title:{display:!0,text:"# of Leads Engaged"}},y1:{display:!0,position:"right",title:{display:!0,text:"Avg. Time Spent"},ticks:{callback:y=>vz(y)},max:120,grid:{drawOnChartArea:!1}}},plugins:{legend:{display:!0,position:"bottom"},tooltip:{enabled:!1},datalabels:{display:y=>!1,color:"white",anchor:"end",align:"start",formatter:y=>vz(y),font:{weight:"bold"}}},elements:{point:{hoverRadius:12}}},x=u!==null?{label:h[u],currentValue:t[u]||0,previousValue:n[u]||0,currentBaseValue:t[0]||1,previousBaseValue:n[0]||1,currentPercent:((t[u]||0)/(t[0]||1)*100).toFixed(0),previousPercent:((n[u]||0)/(n[0]||1)*100).toFixed(0),currentAvgTime:vz(i[u]||0),previousAvgTime:vz(a[u]||0),currentTotalClicks:r[u]||0,previousTotalClicks:s[u]||0,points:[]}:null;return(0,fi.useEffect)(()=>{d.jumpToPage(u)},[u]),fi.default.createElement("div",{className:"flex h-[400px]"},fi.default.createElement("div",{className:"flex-1"},fi.default.createElement(AF,{data:b,options:v,ref:f})),fi.default.createElement("div",{className:"w-64 px-2 ml-1"},fi.default.createElement("div",{className:"h-full"},fi.default.createElement("div",{className:"pl-4 overflow-y-auto border-l border-gray-200 w-full h-full"},fi.default.createElement("nav",{className:"flex items-center justify-between border-b border-gray-200 px-4 sm:px-0 mb-4"},fi.default.createElement("div",{className:"flex w-0 flex-1"},fi.default.createElement("button",{className:"inline-flex items-center border-b-2 border-transparent pb-2 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700",onClick:g},fi.default.createElement(vd,{className:"h-5 w-5 text-gray-400","aria-hidden":"true"}))),fi.default.createElement("div",{className:"flex flex-col text-lg text-center items-center mx-0"},`Page #${x.label}`),fi.default.createElement("div",{className:"flex w-0 flex-1 justify-end"},fi.default.createElement("button",{className:"inline-flex items-center border-b-2 border-transparent pl-1 pb-2 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700",onClick:m},fi.default.createElement(Vu,{className:"ml-3 h-5 w-5 text-gray-400","aria-hidden":"true"})))),fi.default.createElement("div",{className:"w-full h-[140px] rounded-lg overflow-hidden shadow-lg mb-4 border-4 bg-black border-black"},fi.default.createElement(_v.Worker,{workerUrl:"https://unpkg.com/pdfjs-dist@3.4.120/build/pdf.worker.min.js"},fi.default.createElement(_v.Viewer,{fileUrl:e,defaultScale:_v.SpecialZoomLevel.PageFit,scrollMode:_v.ScrollMode.Page,initialPage:u,theme:"dark",plugins:[d]}))),fi.default.createElement("ul",{className:"list-disc list-outside text-sm space-y-2 ml-4"},fi.default.createElement("li",{className:"whitespace-normal whitespace-pre-wrap leading-6"},fi.default.createElement("strong",null,x.currentPercent,"%")," still viewing (",x.currentValue," leads) in this period vs."," ",fi.default.createElement("strong",null,x.previousPercent,"%")," in previous period (",x.previousValue," leads)."),fi.default.createElement("li",null,fi.default.createElement("strong",null,x.currentAvgTime)," spent on average during this period vs"," ",fi.default.createElement("strong",null,x.previousAvgTime)," in previous period."),fi.default.createElement("li",null,fi.default.createElement("strong",null,x.currentTotalClicks)," clicks in this period vs"," ",fi.default.createElement("strong",null,x.previousTotalClicks)," in previous period."))))))},uRe=Gqt;var Zd=ie(Pe()),cRe=ie($0());var dRe=ie(Xa()),iTn=ie(CG());vo.register(il,vh,jd,gu,Zg,T4,oke,R4);var Fqt=({videoUrl:e,currentUnitEngagement:t,prevUnitEngagement:n})=>{let[r,i]=(0,Zd.useState)(!1),o=(0,Zd.useRef)(null),s=(0,Zd.useRef)(null),a={labels:t.map((c,f)=>f+1),datasets:[{label:"# of Users",data:t,fill:!0,borderColor:"rgba(255, 0, 0, 1)",backgroundColor:"rgba(255, 0, 0, 0.2)",tension:.1,pointRadius:0,pointHoverRadius:12,pointHoverBackgroundColor:"rgba(255, 0, 0, 1)",pointHoverBorderColor:"rgba(255, 255, 255, 1)",pointHoverBorderWidth:6},{label:"# of Users",data:n,fill:!1,borderColor:"rgba(128, 128, 128, 1)",tension:.1,pointRadius:0,pointHoverRadius:12,pointHoverBackgroundColor:"rgba(255, 0, 0, 1)",pointHoverBorderColor:"rgba(255, 255, 255, 1)",pointHoverBorderWidth:6}]},l={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:!0,intersect:!1,mode:"nearest",padding:10,displayColors:!1,callbacks:{title:function(c){let f=c[0].label;return`${dRe.default.duration(f,"seconds").format("h[h] m[m] s[s]")}`},label:function(c){baseValue=0,c.datasetIndex===0?baseValue=t[0]:baseValue=n[0];let f=c.raw;return`${(f/baseValue*100).toFixed(0)}% still watching (${f} leads)`}}},datalabels:{display:!1},currentTimeLine:{id:"currentTimeLine",afterDraw:c=>{let f=o.current?o.current.getDuration():0,d=o.current?o.current.getCurrentTime():0,h=c.ctx,m=c.scales.x,g=m.getPixelForValue(d/f*(m.max-m.min)+m.min);h.save(),h.beginPath(),h.moveTo(g,c.scales.y.top),h.lineTo(g,c.scales.y.bottom),h.lineWidth=2,h.strokeStyle="blue",h.stroke(),h.restore()}}},scales:{x:{display:!1},y:{display:!1}},elements:{line:{borderWidth:4},point:{radius:0}}},u=c=>{if(r){i(!1);return}let f=c.currentTarget.getBoundingClientRect(),d=c.clientX-f.left,h=f.width,m=o.current.getDuration(),g=d/h*m;o.current.seekTo(g),i(!0)};return(0,Zd.useEffect)(()=>{let c=setInterval(()=>{o.current&&s.current&&s.current.update()},1e3);return()=>clearInterval(c)},[]),Zd.default.createElement("div",{className:"relative aspect-w-16 aspect-h-9 w-full flex-auto h-full overflow-y-auto rounded-lg overflow-hidden shadow-lg mb-8 border-4 bg-black border-black",onClick:u},Zd.default.createElement(cRe.default,{ref:o,url:e,width:"100%",height:"100%",className:"absolute top-0 left-0 z-10 p-6",controls:!1,playing:r}),Zd.default.createElement("div",{className:"absolute top-0 left-0 w-full h-full z-20 pointer-events-auto"},Zd.default.createElement(kF,{ref:s,data:a,options:l,plugins:[l.plugins.currentTimeLine]})))},pRe=Fqt;var wm=ie(Pe());var vt=ie(Pe());var fRe=ie(fu());var af=ie(Pe());var Iqt=e=>{let[t,n]=(0,af.useState)(!1);return af.default.createElement("div",{className:"invisible group-hover:visible absolute flex items-start justify-center bg-gray-200 bg-opacity-50 inset-0"},af.default.createElement("button",{type:"button",className:"-ml-px relative mt-4 inline-flex items-center space-x-2 px-4 py-2 border border-gray-300 text-sm font-medium rounded-r-md text-gray-700 bg-gray-50 hover:bg-gray-100",onClick:()=>{n(!0),setTimeout(()=>{n(!1)},1e3),e.handleOnClick()}},af.default.createElement(af.default.Fragment,null,t?af.default.createElement(af.default.Fragment,null,af.default.createElement(I8,{className:"h-6 w-6 text-blue-400 mr-2","aria-hidden":"true"})," Copied to Clipboard!"):af.default.createElement(W1,{className:"h-6 w-6","aria-hidden":"true"}))))},Rte=Iqt;var Ai=ie(Pe());var zqt=e=>{let[t,n]=(0,Ai.useState)(0),[r,i]=(0,Ai.useState)(""),[o,s]=(0,Ai.useState)(""),[a,l]=(0,Ai.useState)(0),u=3,c=m=>{i(m.target.value),e.onChange&&e.onChange(m)},f=m=>{s(m.target.value),e.onChange&&e.onChange(m)},d=m=>{n(g=>m==="next"?g+1<a?g+1:g:g-1>=0?g-1:g)};(0,Ai.useEffect)(()=>{e.preSelectedHook&&i(e.preSelectedHook)},[e.preSelectedHook]);let h=()=>Ai.default.createElement("div",{className:"animate-pulse flex items-center space-x-4"},Ai.default.createElement("div",{className:"rounded-full bg-gray-400 h-5 w-5"}),Ai.default.createElement("div",{className:"h-6 bg-gray-400 rounded w-3/4"}));return(0,Ai.useEffect)(()=>{e.hookIdeas&&e.hookIdeas!=null&&e.hookIdeas.length>0?l(Math.ceil(e.hookIdeas.length/u)):l(0)},[e.hookIdeas]),(0,Ai.useEffect)(()=>{n(0)},[e.hookIdeas,e.isLoadingHookIdeas]),Ai.default.createElement("div",{className:"space-y-3 border border-gray-300 p-4 shadow-sm rounded-md min-h-[210px]"},Ai.default.createElement("div",{className:"flex justify-between border-b-2 mb-2 pb-1"},Ai.default.createElement("p",{className:"text-gray-800"},"\u26A1\uFE0F Hooks"),!e.isLoadingHookIdeas&&Ai.default.createElement("div",{className:"flex w-2/4 justify-end"},Ai.default.createElement("button",{onClick:m=>{m.preventDefault(),d("previous")},disabled:t===0,className:"inline-flex items-center border-b-2 border-transparent text-sm font-medium text-gray-500 hover:text-indigo-600"},Ai.default.createElement(vd,{className:`h-5 w-5 text-gray-400 ${t===0?null:"hover:text-indigo-600"}`,"aria-hidden":"true"})),!e.isLoadingHookIdeas&&Ai.default.createElement("p",{className:"px-2 text-sm text-gray-400 min-w-4 inline-block"},t+1," of ",a),Ai.default.createElement("button",{onClick:m=>{m.preventDefault(),d("next")},disabled:t===a-1,className:`inline-flex items-center border-b-2 border-transparent text-sm font-medium text-gray-500 ${t===a-1?null:"hover:text-indigo-600"}`},Ai.default.createElement(Vu,{className:"h-5 w-5 text-gray-400 hover:text-indigo-600","aria-hidden":"true"})),Ai.default.createElement("div",{className:"ml-3 inline-flex items-center"},Ai.default.createElement(Ec,{content:`Succinctly write the hook for your post catches the attention of your reader. This is the first thing people will see so make it
            catchy, snappy, and attention grabbing. Citing a Macro Trend
            relevant to your ideal customer is a great way to start. You can type in your own or choose from the 10 hooks we've instantly written for you.`,placement:"right",style:"dark",arrow:!1,animation:"duration-500",className:"w-max-md w-[300px] px-6 py-6"},Ai.default.createElement(gJ,{className:"w-6 h-6 text-gray-500 hover:text-indigo-600 cursor-pointer"}))))),e.isLoadingHookIdeas||a==0||e.hookIdeas==null?Array.from({length:u}).map((m,g)=>Ai.default.createElement(h,{key:g})):e.hookIdeas.slice(t*u,(t+1)*u).map((m,g)=>Ai.default.createElement("label",{key:g,className:"flex items-center space-x-2"},Ai.default.createElement("input",{type:"radio",name:"hook",value:m,checked:r===m,onChange:c,className:"form-radio h-4 w-4 text-blue-600"}),Ai.default.createElement("span",{className:"text-slate-500 focus:ring-indigo-500 focus:border-indigo-500 text-sm"},m))),!e.preview&&Ai.default.createElement("label",{className:"flex items-center space-x-2"},Ai.default.createElement("input",{type:"radio",name:"hook",value:"custom",checked:r==="custom",onChange:()=>i("custom"),className:"form-radio h-4 w-4 text-blue-600"}),Ai.default.createElement("span",{className:"text-slate-500 focus:ring-indigo-500 focus:border-indigo-500 text-sm"},"Type in your own ",e.postType,"...")),r==="custom"&&Ai.default.createElement("input",{name:"story",defaultValue:o,onChange:f,className:"mt-1 text-slate-500 shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"}))},P5=zqt;var Tqt=e=>{let[t,n]=(0,vt.useState)({post_type:"Lesson Learned",hook:null,story:null,model:"v3"}),[r,i]=(0,vt.useState)([]),[o,s]=Xc("post_type","Lesson Learned"),[a,l]=(0,vt.useState)(!1),[u,c]=(0,vt.useState)(30),[f,d]=(0,vt.useState)(!0),[h,m]=(0,vt.useState)({}),[g,b]=(0,vt.useState)(null),[v,x]=(0,vt.useState)(null),[y,_]=(0,vt.useState)(null),w=(0,vt.useRef)(null),{userData:k}=(0,vt.useContext)(Vr),[O,M]=(0,vt.useState)(!1),[I,W]=(0,vt.useState)(!1),J=N=>{N!=null&&N.target.value!=null&&(n({...t,hook:N.target.value}),W(!0))},H=N=>{n({...t,[N.target.name]:N.target.value}),N.target.name=="post_type"&&s(N.target.value)},ee=N=>{if(console.log(v),N=="comment")return navigator.clipboard.writeText(h.comments+g),!0;let C=[h.hook,h.story,h.offer];return v=="t"?C.push(h.comments+`
`+g):y=="paid"?C.push(`
--- Remove everything after this line ---

* Use this as the Content for your AD

* Then set the target link to your Instant Landing Page and the Button as 'Learn More'

* Use this link: `+g+`

----
`):C.push(`Follow the link in the comments below to grab your copy \u{1F447}

--- Remove everything after this line ---

* Post this Content

* Then go back to Instant and hover over the 'Comment' section and copy the comment into your clipboard.

* Paste in the Comment from Instant to link to your Instant Landing Page

* Make sure you choose the appropriate platform in the dropdown so we use the right Instant Link for attribution.

----
`),navigator.clipboard.writeText(C.join(`

`)),!0},j=()=>{l(!0),m(null),c(45);let N=null;N=setInterval(()=>{c(C=>C==1?45:C-1)},1e3),w.current.scrollIntoView({behavior:"smooth",block:"start",inline:"start"}),Wle(e.page.id,t.post_type,t.hook,t.story,t.model).then(C=>{if(l(!1),C.success){clearInterval(N);let S=C.response.data,G=null;S.post!=null?G=S.post:S&&(G=S),m({...G,comments:G.comments.replace(/\[.*?\]/g,`
`)})}else C.response.response.status==429&&M(!0)}),console.log(t)};(0,vt.useEffect)(()=>{o&&(d(!0),c3(e.page.id,o).then(N=>{if(d(!1),N.success){let C=N.response.data;e.preSelectedHook&&(C=C.filter(S=>S!==e.preSelectedHook),C.unshift(e.preSelectedHook),n({...t,hook:e.preSelectedHook,post_type:o}),W(!0)),i(C)}else console.log("Error fetching Hook ideas: ",N)}))},[o]);let V=()=>{switch(t.post_type){case"Personal Moment":return"What were you doing when you had this moment?";case"Lesson Learned":return"What's the one-liner that summarizes the lesson you learned?";case"Relatable Story":return"How were you engaging with your customer and what were you doing together?";case"Open Ended Question":return"What is an open ended question that is top of mind for your Ideal Customer?";case"Macro Trend":return"What is a macro trend directly impacting your Ideal Customer?";default:return"The one-liner (Hook)"}},B=()=>{switch(t.post_type){case"Personal Moment":return"What are the two to three things you learned during this personal moment?";case"Lesson Learned":return"Write out a sentence for the lesson learned and then share the two to three steps that outlines the lesson you learned:";case"Relatable Story":return"What have you helped the customer accomplish and how did you help them?";case"Open Ended Question":return"How do you help your Ideal Customer think about this open-ended question and achieve their goals?";case"Macro Trend":return"How do you help your Ideal Customer deal with this macro trend and achieve what they want?";default:return"The Story"}};return vt.default.createElement("div",{className:"grid grid-cols-2 min-h-0 gap-6",ref:w},vt.default.createElement("div",{className:"h-full overflow-y-auto"},vt.default.createElement("form",{className:"flex flex-col h-full text-sm"},vt.default.createElement("div",null,vt.default.createElement("label",{className:"block text-medium font-semibold text-gray-500"},"What would you like to share?"),vt.default.createElement("select",{name:"post_type",onChange:H,value:o,disabled:!e.planSupportsFeature,className:"mt-2 text-slate-500 shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"},vt.default.createElement("option",{value:"Macro Trend"},"a macro trend"),vt.default.createElement("option",{value:"Personal Moment"},"a personal moment"),vt.default.createElement("option",{value:"Lesson Learned"},"a lesson learned"),vt.default.createElement("option",{value:"Relatable Story"},"a customer story"),vt.default.createElement("option",{value:"Open Ended Question"},"an open ended question")),vt.default.createElement("label",{className:"block flex text-medium font-semibold text-gray-500 mt-4",key:t.post_type},vt.default.createElement("span",{className:"flex-1"},V())),vt.default.createElement("p",{className:"text-sm  text-gray-500"}),vt.default.createElement("div",{className:"mt-2"},vt.default.createElement(P5,{postType:t.post_type.toLowerCase(),hookIdeas:r,onChange:J,preSelectedHook:e.preSelectedHook,isLoadingHookIdeas:f}))),vt.default.createElement("div",{className:`mt-4 ${I?"opacity-100":"opacity-50 disabled"}`,disabled:!I},vt.default.createElement("label",{className:"block text-medium font-semibold text-gray-500"},vt.default.createElement("span",{className:"flex items-center justify-between"},vt.default.createElement("span",{className:"mr-1"},B()),vt.default.createElement(Ec,{content:`Now give us all the details about your
                ${t.post_type.toLowerCase()}. Give as much detail and raw
                materials as possible but don't worry about it all being well written. Put your thoughts down into multiple
                paragraphs and even use bullet points. We'll use this to generate a
                beautiful post for you.`,placement:"right",style:"dark",arrow:!1,animation:"duration-500",className:"w-max-md w-[300px] px-6 py-6"},vt.default.createElement(mJ,{className:"w-6 h-6 text-gray-500 hover:text-indigo-600 cursor-pointer"})))),vt.default.createElement("textarea",{name:"story",defaultValue:t.story,onChange:H,disabled:!I,rows:4,className:"mt-2 text-slate-500 shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"}),O&&vt.default.createElement("p",{className:"mt-4 p-2 border border-gray-100 text-sm text-red-500"},"You've hit the rate limit for generating Instant Content. While you are in trial mode for Instant PRO we limit this to 3 posts per day. Once you've upgraded to Instant PRO you can generate an unlimited number of posts daily."),!O&&vt.default.createElement("button",{type:"button",onClick:j,disabled:a||!t.hook||!t.story||t.hook==""||t.story==""||!e.planSupportsFeature,className:"mt-2 flex justify-center items-center w-full rounded-md border border-transparent bg-indigo-600 disabled:bg-slate-200 px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"},a?"Generating Post...":"Generate Post",a&&vt.default.createElement("svg",{className:"animate-spin ml-4 h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},vt.default.createElement("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),vt.default.createElement("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})))))),vt.default.createElement("div",{className:"flex flex-col min-h-[565px] max-h-[565px] overflow-hidden"},vt.default.createElement("div",{className:"w-full h-full flex flex-col rounded-lg border-2 border-dashed border-gray-200 p-4 bg-gray-50"},vt.default.createElement("div",{className:"flex flex-row space-x-2"},vt.default.createElement("div",{className:"flex items-center space-x-4"},vt.default.createElement("div",{className:"rounded-full bg-slate-200 h-10 w-10"}),vt.default.createElement("div",null,vt.default.createElement("p",{className:"font-bold text-slate-300 text-sm"},"User Name"),vt.default.createElement("p",{className:"text-slate-300 text-sm"},"Posted 2h ago"))),h&&h.hook&&vt.default.createElement("div",{className:""},vt.default.createElement(OG,{page:e.page,mode:"mini",handleTrackingURL:(N,C,S)=>{b(S),x(N),_(C)},handleOnClick:N=>{ee("full")}}))),vt.default.createElement("div",{className:"flex flex-col grow min-h-0"},vt.default.createElement("div",{className:"grow overflow-y-auto"},h&&h.hook?vt.default.createElement("div",{className:"group relative text-sm text-slate-950 mt-6 whitespace-pre-line"},[h.hook,h.story,h.offer].join(`

`),vt.default.createElement(Rte,{handleOnClick:()=>{ee("content")}})):vt.default.createElement("div",{className:"relative h-full animate-pulse space-y-2 mt-4"},a&&vt.default.createElement("div",{className:"absolute inset-0 flex justify-center items-start mt-6 z-10"},vt.default.createElement("div",{className:"bg-white rounded-full p-4 border-4 border-blue-500 opacity-50"},vt.default.createElement(hz,{loop:!0,style:{width:"150px",height:"150px"},animationData:mz,play:!0}),vt.default.createElement("div",{className:"absolute left-0 right-0 top-[230px] flex justify-center opacity-100 items-center text-black text-sm font-bold z-10"},vt.default.createElement("center",{className:"animate-none"},"Summoning the Greatest Marketer in the World...",vt.default.createElement("br",null),"00:",(0,fRe.default)(u).format("00"))))),vt.default.createElement("div",{className:"text-sm text-slate-250 bg-slate-50 whitespace-pre-line"},!a&&t.hook&&vt.default.createElement("span",null,t.hook)),(a||!t.hook)&&vt.default.createElement(vt.default.Fragment,null,Array.from({length:3}).map((N,C)=>vt.default.createElement("div",{key:`post-w-full-${C}`,className:`h-4 ${a?"bg-blue-300":"bg-slate-200"} rounded w-full`}))),Array.from({length:3}).map((N,C)=>vt.default.createElement("div",{key:`post-3-4${C}`,className:`h-4 ${a?"bg-blue-300":"bg-slate-200"} rounded w-3/4`})),Array.from({length:3}).map((N,C)=>vt.default.createElement("div",{key:`post-1-3${C}`,className:`h-4 ${a?"bg-blue-300":"bg-slate-200"} rounded w-1/3`}))))),vt.default.createElement("div",{className:"flex justify-between items-center mt-2 text-xs"},vt.default.createElement("div",{className:"flex space-x-2"},vt.default.createElement("button",{className:"flex items-center text-slate-200 hover:text-slate-300 mr-2",disabled:!0},vt.default.createElement(bJ,{className:"h-6 w-6 mr-1"})," ",vt.default.createElement("span",null,"Like")),vt.default.createElement("button",{className:"flex items-center text-slate-200 hover:text-slate-300",disabled:!0},vt.default.createElement(pJ,{className:"h-6 w-6 mr-1"})," ",vt.default.createElement("span",null,"Comment"))),vt.default.createElement("button",{className:"flex items-center text-slate-200 hover:text-slate-300",disabled:!0},vt.default.createElement(dJ,{className:"h-6 w-6 mr-1"})," ",vt.default.createElement("span",null,"Save"))),vt.default.createElement("div",{className:"mt-2 border-t-2 pt-4"},vt.default.createElement("h4",{className:"font-bold"},"Comments"),vt.default.createElement("div",{className:`${a||h===null?"animate-pulse":""} flex space-x-4 mt-4`},vt.default.createElement("div",{className:"rounded-full bg-slate-200 h-10 w-10"}),vt.default.createElement("div",{className:"flex-1 space-y-6 group"},h&&h.comments?vt.default.createElement("div",{className:"group relative ml-2 rounded-lg px-2 w-full text-sm"},vt.default.createElement("p",{className:"text-slate-950"},h.comments,vt.default.createElement("br",null),g),vt.default.createElement(Rte,{handleOnClick:N=>{ee("comment")}})):vt.default.createElement(vt.default.Fragment,null,vt.default.createElement("div",{className:"space-y-3"},vt.default.createElement("div",{className:"grid grid-cols-3 gap-4"},vt.default.createElement("div",{className:`h-2 ${a?"bg-blue-300":"bg-slate-200"} rounded col-span-2`}),vt.default.createElement("div",{className:`h-2 ${a?"bg-blue-300":"bg-slate-200"} rounded col-span-1`})),vt.default.createElement("div",{className:`h-2 ${a?"bg-blue-300":"bg-slate-200"} rounded`}))))),vt.default.createElement("div",{className:"mt-4 flex items-center hidden"},vt.default.createElement("input",{type:"text",placeholder:"Add a comment...",className:"border rounded-lg p-2 flex-grow text-slate-200 text-sm border-slate-200",disabled:!0}),vt.default.createElement("button",{className:"ml-2 text-slate-200 hover:text-slate-300",disabled:!0},vt.default.createElement(h2,{className:"h-6 w-6"})))))))},hRe=Tqt;var Dqt=({open:e,page:t,preSelectedHook:n,planSupportsFeature:r,onHandleClose:i})=>{let[o,s]=(0,wm.useState)(!1);return wm.default.createElement(Rd,{open:e,closeDialogue:()=>{i()},additionalStyles:"sm:max-w-screen-lg sm:px-0 sm:py-0 shadow-xl overflow-hidden h-full flex flex-col max-h-[95vh]"},wm.default.createElement("div",{className:"flex space-x-2 items-center justify-center px-6 py-4"},wm.default.createElement("div",{className:"min-w-0 flex-1 items-center"},wm.default.createElement(Ii.Title,{as:"h3",className:"text-lg leading-6 font-bold text-gray-900"},"\u26A1\uFE0F Content Co-Pilot"))),wm.default.createElement("div",{className:"px-6 py-4 h-full overflow-y-auto"},wm.default.createElement(hRe,{page:t,planSupportsFeature:r,preSelectedHook:n})))},mRe=Dqt;var Xr=ie(Pe());var gRe=ie(fu()),Rqt=e=>{let[t,n]=Xc("initialPostTypeFromLauncher","Macro Trend"),[r,i]=Xc("post_type","Macro Trend"),[o,s]=(0,Xr.useState)(""),[a,l]=(0,Xr.useState)([]),[u,c]=(0,Xr.useState)(!1);(0,Xr.useEffect)(()=>{i(t.id)},[t]),(0,Xr.useEffect)(()=>{r&&(c(!0),c3(e.page.id,r).then(g=>{g.success?(c(!1),l(g.response.data)):(c(!1),console.log("Error fetching Hook ideas: ",g))}))},[r]);let f=g=>{s(g.target.value)},d=(g,b)=>Xr.default.createElement("span",{className:"bg-yellow-100 p-1 font-bold"},(0,gRe.default)(g).format(b)),h=()=>{let g="conversion_rate_by_traffic_source",b="leads";if(!e.rawStats||!e.rawStats.current||!e.rawStats.current[g])return null;let v=0,x=null,y=null;for(let _ in e.rawStats.current[g]){let w=e.rawStats.current[g][_][b];w&&w>v&&(v=w,x=_,y=e.rawStats.current[g][_])}return x===null||x===null||y==null?null:Xr.default.createElement("div",{className:"w-full text-xs leading-5 mt-1"},d(y.leads,"0,0")," leads generated from"," ",Xr.default.createElement("span",{className:"bg-yellow-100 p-1 font-bold"},x)," with a conversion rate of"," ",d(y.lead_conversion_rate,"0.0%"),".")};return Xr.default.createElement(Xr.default.Fragment,null,Xr.default.createElement("div",{className:"flex flex-row"},Xr.default.createElement("div",{className:"w-2/4 flex-grow pr-6 mr-6 border-r border-gray-200"},Xr.default.createElement("fieldset",null,Xr.default.createElement("legend",{className:"text-sm font-semibold text-gray-900"},"What would you like to share?"),Xr.default.createElement(MO,{value:t,onChange:n,className:"mt-4 grid grid-cols-1 gap-y-2 sm:grid-cols-3 sm:gap-x-4"},[{id:"Macro Trend",name:"Macro Trend",description:"Share a macro trend that you've noticed in your industry."},{id:"Personal Moment",name:"Personal Moment",description:"Write about a moment that will inspire your ideal customers."},{id:"Lesson Learned",name:"Lesson Learned",description:"Share a lesson you've learned that will help your ideal customers."},{id:"Relatable Story",name:"Customer Success Story",description:"Share a success story about one of your customers."},{id:"Open Ended Question",name:"Open Ended Question",description:"Engage your ideal customers with an open ended question."}].map(g=>Xr.default.createElement(z3,{key:g.id,value:g,"aria-label":g.name,"aria-description":`${g.description} to ${g.users}`,className:"group relative flex cursor-pointer rounded-lg border border-gray-300 bg-white p-2 shadow-sm focus:outline-none data-[focus]:border-indigo-600 data-[focus]:ring-2 data-[focus]:ring-indigo-600"},Xr.default.createElement("span",{className:"flex flex-1"},Xr.default.createElement("span",{className:"flex flex-col"},Xr.default.createElement("span",{className:"block text-sm font-medium text-gray-900"},g.name),Xr.default.createElement("span",{className:"mt-1 flex items-center text-xs text-gray-500"},g.description))),Xr.default.createElement(L3,{"aria-hidden":"true",className:"h-5 w-5 text-indigo-600 [.group:not([data-checked])_&]:invisible"}),Xr.default.createElement("span",{"aria-hidden":"true",className:"pointer-events-none absolute -inset-px rounded-lg border-2 border-transparent group-data-[focus]:border group-data-[checked]:border-indigo-600"}))),e.rawStats&&e.rawStats.current&&e.rawStats.current.numLeads>10&&Xr.default.createElement(z3,{key:"stats",value:"stats",disabled:!0,className:"group relative flex rounded-lg border border-gray-200 border-dashed bg-white p-2 shadow-sm focus:outline-none data-[focus]:border-indigo-600 data-[focus]:ring-2 data-[focus]:ring-indigo-600"},Xr.default.createElement("div",{className:"flex flex-col"},Xr.default.createElement("span",{className:"leading-8 flex items-center text-xs text-gray-500"},h())))))),Xr.default.createElement("div",{className:"w-2/4 text-sm text-gray-500 h-full"},Xr.default.createElement("p",{className:"text-sm font-semibold text-gray-900 mb-2"},"Select a hook for your post:"),Xr.default.createElement(P5,{postType:r.toLowerCase(),hookIdeas:a,preview:!1,onChange:f,isLoadingHookIdeas:u}),Xr.default.createElement("div",{className:""},Xr.default.createElement("button",{onClick:()=>{e.onLaunch(o)},className:"bg-indigo-600 hover:bg-indigo-700 text-white py-2 px-4 rounded mt-4 w-full font-bold"},"Create High Converting Content \u2192"))),Xr.default.createElement("div",{className:"w-1/3 text-sm text-gray-500 hidden"},Xr.default.createElement("p",{className:""},"Instant Content AI Co-Pilot has been specifically trained to help you write high converting posts that builds brand awareness and generates quality leads."),Xr.default.createElement("p",{className:"mt-4"},"The key to great content that captures your audience's attention is to be authentic and share stories that resonate with your ideal customers. Instant Content AI Co-Pilot will help you write posts that will help you achieve this."),Xr.default.createElement("p",{className:"mt-4"},"The best places to share your posts are on LinkedIn, Facebook, and Twitter. You can then take your best performing content and scale them into ads."))))},vRe=Rqt;var Ci=ie(Pe()),Lte=ie(Pe());var Vte=ie(fu());function yRe(...e){return e.filter(Boolean).join(" ")}var xRe=[{name:"30 Days",inStock:!0},{name:"60 Days",inStock:!0},{name:"90 Days",inStock:!0},{name:"365 Days",inStock:!0}];function Jte({page:e}){let[t,n]=(0,Lte.useState)(null),[r,i]=(0,Lte.useState)([{name:"Total Leads",stat:"0",previousStat:"0",change:"0",changeType:"increase"},{name:"Lead -> Revenue",stat:"0%",previousStat:"0%",change:"0%",changeType:"increase"},{name:"Revenue per Lead",stat:"$0k",previousStat:"$0k",change:"0%",changeType:"increase"},{name:"Total Revenue",stat:"$0k",previousStat:"$0k",change:"0%",changeType:"increase"}]),[o,s]=Xc("trailingPeriod",xRe[0].name),[a,l]=Xc("icpLeadsOnlyForTrailing",!1);(0,Ci.useEffect)(()=>{mS(e.id).then(c=>{c.success?n(c.response.data):console.log("Error fetching page overview metrics: ",c)})},[e.id]),(0,Ci.useEffect)(()=>{if(t){let c=t.last_90_days;o=="30 Days"&&(c=t.last_30_days),o=="60 Days"&&(c=t.last_60_days),o=="90 Days"&&(c=t.last_90_days),o=="365 Days"&&(c=t.last_365_days);let f=[u(c,a?"numICPLeads":"numLeads","Total Leads","number"),u(c,a?"icpLeadToRevenue":"leadToRevenue","Lead -> Revenue","pct"),u(c,a?"icpRevenuePerLead":"revenuePerLead","Revenue per Lead","currency"),u(c,"totalRevenue","Total Revenue","currency","numOpportunitiesWon","Won")];i(f)}},[t,o,a]);let u=(c,f,d,h,m,g)=>{let b=c.current[f]*1,v=c.previous[f]*1,x=Math.round((b-v)/v*100);v==0&&(x=0);let y="increase";x<0&&(y="decrease"),h=="currency"&&(b=(0,Vte.default)(b).format("$0.0a"),v=(0,Vte.default)(v).format("$0.0a"));let _={name:d,stat:b.toString()+(h=="pct"?"%":""),previousStat:v.toString()+(h=="pct"?"%":""),change:x.toString()+"%",changeType:y};return m&&(_.related_label=g,_.related_stat=c.current[m],_.related_stat_previous=c.previous[m]),_};return Ci.default.createElement("div",null,Ci.default.createElement("div",{className:"border-gray-200 pb-5"},Ci.default.createElement("div",{className:"flex items-center justify-between"},Ci.default.createElement("h3",{className:"text-lg font-semibold leading-6 text-gray-900"},"Overall Performance"),Ci.default.createElement("div",{className:"flex flex-row gap-2 right"},Ci.default.createElement(F3,{className:"flex items-center"},Ci.default.createElement(T3,{checked:a,onChange:l,className:"group relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent bg-gray-200 transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-600 focus:ring-offset-2 data-[checked]:bg-indigo-600"},Ci.default.createElement("span",{"aria-hidden":"true",className:"pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out group-data-[checked]:translate-x-5"})),Ci.default.createElement(Np,{as:"span",className:"ml-2 mr-3 text-sm"},Ci.default.createElement("span",{className:"font-medium text-gray-900"},"Only ICP Leads"))),Ci.default.createElement("fieldset",{"aria-label":"Choose a memory option"},Ci.default.createElement(MO,{value:o,onChange:s,className:"grid grid-cols-4 gap-3 sm:grid-cols-4"},xRe.map(c=>Ci.default.createElement(z3,{key:c.name,value:c.name,disabled:!c.inStock,className:yRe(c.inStock?"cursor-pointer focus:outline-none":"cursor-not-allowed opacity-25","flex items-center justify-center rounded-md bg-white px-2 py-2 text-xs font-semibold uppercase text-gray-900 ring-1 ring-gray-300 hover:bg-gray-50 data-[checked]:bg-indigo-600 data-[checked]:text-white data-[checked]:ring-0 data-[focus]:data-[checked]:ring-2 data-[focus]:ring-2 data-[focus]:ring-indigo-600 data-[focus]:ring-offset-2 data-[checked]:hover:bg-indigo-500 sm:flex-1 [&:not([data-focus],[data-checked])]:ring-inset")},c.name)))),Ci.default.createElement(Ec,{content:Ci.default.createElement(Ci.default.Fragment,null,"Here is the overall performance of your Instant Funnel. You can"," ",Ci.default.createElement("a",{href:"https://instant.academy/tracking-pipeline-revenue",target:"_new",className:"text-blue-400 hover:underline"},"connect to your CRM and Payment systems to get full funnel attribution")," ","from lead to revenue. It's best to look at this data over over a trailing period."),placement:"left",style:"dark",arrow:!1,animation:"duration-500",className:"w-max-md w-[300px] px-6 py-6"},Ci.default.createElement(Y8,{className:"mt-1 w-6 h-6 text-gray-500 hover:text-indigo-600 cursor-pointer"}))))),Ci.default.createElement("dl",{className:"grid grid-cols-1 divide-y divide-gray-200 overflow-hidden rounded-lg bg-white shadow md:grid-cols-4 md:divide-x md:divide-y-0"},r&&r.map(c=>Ci.default.createElement("div",{key:c.name,className:"px-4 py-5 sm:p-4"},Ci.default.createElement("dt",{className:"text-base font-bold text-gray-900"},c.related_label&&Ci.default.createElement("span",{className:"inline-flex items-baseline float-right px-2.5 py-0.5 -ml-1 rounded-full text-sm font-medium bg-slate-100"},c.related_stat," ",c.related_label),c.name),Ci.default.createElement("dd",{className:"mt-1 flex items-baseline justify-between md:block lg:flex"},Ci.default.createElement("div",{className:"flex items-baseline text-lg font-semibold text-indigo-600"},c.stat,Ci.default.createElement("span",{className:"ml-2 text-xs font-medium text-gray-500"},"from ",c.previousStat)),Ci.default.createElement("div",{className:yRe(c.changeType==="increase"?"bg-green-100 text-green-800":"bg-red-100 text-red-800","inline-flex items-baseline rounded-full px-2.5 py-0.5 text-sm font-medium md:mt-2 lg:mt-0")},c.changeType==="increase"?Ci.default.createElement(C2,{"aria-hidden":"true",className:"-ml-1 mr-0.5 h-5 w-5 flex-shrink-0 self-center text-green-500"}):Ci.default.createElement(A2,{"aria-hidden":"true",className:"-ml-1 mr-0.5 h-5 w-5 flex-shrink-0 self-center text-red-500"}),Ci.default.createElement("span",{className:"sr-only"}," ",c.changeType==="increase"?"Increased":"Decreased"," ","by"," "),c.change))))))}function Lqt(...e){return e.filter(Boolean).join(" ")}var c9=class extends ze.Component{constructor(t){super(t),this.state={activatedUser:!1,testMode:!1,plan:"basic",contentModalOpen:!1,currentTab:this.props.tab?this.props.tab:"metrics",tabs:[{id:"promote",name:"Promote",href:`/dashboard/${this.props.id}/promote`,plan:"basic",enabled:!0},{id:"metrics",name:"Metrics",href:`/dashboard/${this.props.id}/metrics`,plan:"basic",enabled:!0},{id:"leads",name:"Leads",href:`/dashboard/${this.props.id}/leads`,plan:"basic",enabled:!0},{id:"optimization",name:"Optimization",href:`/dashboard/${this.props.id}/optimization`,plan:"pro",enabled:!0},{id:"academy",name:"\u26A1\uFE0F Academy",href:`/dashboard/${this.props.id}/academy`,plan:"basic",enabled:!1},{id:"workflows",name:"\u26A1\uFE0F Workflows",href:`/dashboard/${this.props.id}/workflows`,plan:"pro",enabled:!1}],stats:[{name:"Traffic",stat:"0",previousStat:"0",change:"0%",changeType:"increase"},{name:"Conversion Rate",stat:"0%",previousStat:"0%",change:"0%",changeType:"increase"},{name:"Activation Rate",stat:"0%",previousStat:"0%",change:"0%",changeType:"decrease"}],leads:[],metricsTimeframe:Va.get("metricsTimeframe")||"this_week",fetchingPageMetrics:!1,fetchingPageEntries:!1,instantModalOpen:!1,instantModalOptions:{success:!0,message:"",button_cta:""},leadFilterOptions:[{label:"All Leads",value:"all"},{label:"ICP Leads",value:"icp"},{label:"Leads w/CTA",value:"cta"},{label:"Leads w/Oppty or Revenue",value:"oppty_or_revenue"},{label:"Leads w/Revenue",value:"revenue"}],leadFilter:Va.get("leadFilter")||"all"},this.classNames=this.classNames.bind(this),this.getPageMetrics=this.getPageMetrics.bind(this),this.getPreviousPeriodVisitSourceStats=this.getPreviousPeriodVisitSourceStats.bind(this),this.predictVisitsFor=this.predictVisitsFor.bind(this),this.handleTimeFrameChange=this.handleTimeFrameChange.bind(this),this.handleTabChange=this.handleTabChange.bind(this),this.getPageEntries=this.getPageEntries.bind(this),this.downloadPageEntries=this.downloadPageEntries.bind(this),this.currentTabSupportsPlan=this.currentTabSupportsPlan.bind(this),this.isInProPlan=this.isInProPlan.bind(this),this.filteredLeads=this.filteredLeads.bind(this),this.getSharpestDropOff=this.getSharpestDropOff.bind(this)}componentDidMount(){let{isLoggedIn:t,setLogin:n,userData:r,setUserData:i}=this.context;this.getPageMetrics(),this.getPageEntries()}currentTabSupportsPlan(){let{isLoggedIn:t,setLogin:n,userData:r,setUserData:i}=this.context,o=this.state.tabs.find(s=>s.id===this.state.currentTab);return o.plan==="basic"?!0:(r?.subscription?.plan=="vip"||r?.subscription?.plan==o.plan)&&!this.state.testMode&&r?.subscription.status!="inactive"}isInProPlan(){let{isLoggedIn:t,setLogin:n,userData:r,setUserData:i}=this.context;return r?.subscription?.plan=="vip"||r?.subscription?.plan=="pro"}async downloadPageEntries(){let t=await Qle(this.props.id);if(t.success){let n=t.response.headers["content-disposition"],r=n.indexOf('"')+1,i=n.lastIndexOf('"'),o=n.substring(r,i),s=window.URL.createObjectURL(new Blob([t.response.data])),a=document.createElement("a");a.href=s,a.setAttribute("download",o),document.body.appendChild(a),a.click(),setTimeout(()=>window.URL.revokeObjectURL(s),0)}else alert("Sorry, an error occurred while trying to download your leads. Please refresh your page and try again."),console.log(t)}async getPageMetrics(){console.log("Fething Page Metrics",this.state.metricsTimeframe),this.setState({fetchingPageMetrics:!0});let t=await Kle(this.props.id,this.state.metricsTimeframe);if(t.success){let n=t.response.data;console.log("Page Metrics: ",n);let r=[];r.push(this.generateStatistics(n,"numVisits","Traffic","")),r.push(this.generateStatistics(n,"conversion","Conversion Rate","pct","numLeads","Leads")),r.push(this.generateStatistics(n,"activation","Activation Rate","pct","numCTA","Activations")),n.current.numICPLeads>10&&r.push(this.generateStatistics(n,"pctICPLeads","Traffic Quality","pct","numICPLeads","ICP Leads")),n.current.numOpportunities>0&&r.push(this.generateStatistics(n,"totalOpportunityValue","Pipeline Quality","currency","numOpportunities","Opportunities")),n.current.totalRevenue>0&&r.push(this.generateStatistics(n,"totalRevenue","Revenue Quality","currency","numOpportunitiesWon","Won"));let i="basic";n.trend&&Object.keys(n.trend).length!=0&&(i="pro");let o=!1;this.setState({activatedUser:o,plan:i,rawStats:n,stats:r,opportunityStats:{current:n.current.num_opportunities_by_traffic_source,previous:n.previous.num_opportunities_by_traffic_source},revenueStats:{current:n.current.revenue_by_traffic_source,previous:n.previous.revenue_by_traffic_source},engagementStats:{current:n.current.avgEngagement,previous:n.previous.avgEngagement},visitSourceStats:{current:n.current.top_visit_sources,previous:n.previous.top_visit_sources},leadSourceStats:{current:n.current.num_leads_by_traffic_source,previous:n.previous.num_leads_by_traffic_source},icpLeadSourceStats:{current:n.current.num_icp_leads_by_traffic_source,previous:n.previous.num_icp_leads_by_traffic_source},statsBySource:{current:n.current.conversion_rate_by_traffic_source,previous:n.previous.conversion_rate_by_traffic_source}},()=>{this.setState({fetchingPageMetrics:!1}),console.log(this.state)})}else console.log("Error fetching metrics data for the page...")}async getPageEntries(){this.setState({fetchingPageEntries:!0});let t=await Ule(this.props.id,this.state.metricsTimeframe);this.setState({fetchingPageEntries:!1}),t.success?this.setState({leads:t.response.data}):console.log("Error festching entries data for the page...")}generateStatistics(t,n,r,i,o,s){let a=t.current[n]*1,l=t.previous[n]*1,u=Math.round((a-l)/l*100);l==0&&(u=0);let c="increase";u<0&&(c="decrease"),i=="currency"&&(a=(0,bv.default)(a).format("$0a"),l=(0,bv.default)(l).format("$0a"));let f={name:r,stat:a.toString()+(i=="pct"?"%":""),previousStat:l.toString()+(i=="pct"?"%":""),change:u.toString()+"%",changeType:c};return o&&(f.related_label=s,f.related_stat=t.current[o],f.related_stat_previous=t.previous[o]),f}getPreviousPeriodRevenueStats(t){return Object.entries(this.state.revenueStats.previous).map(n=>{if(n[0]==t)return n[1]})}getPreviousPeriodOpportunityStats(t){return Object.entries(this.state.opportunityStats.previous).map(n=>{if(n[0]==t)return n[1]})}getPreviousPeriodVisitSourceStats(t){return Object.entries(this.state.visitSourceStats.previous).map(n=>{if(n[0]==t)return n[1]})}getPreviousPeriodLeadSourceStats(t){return Object.entries(this.state.statsBySource.previous).map(n=>{if(n[0]==t)return n[1].leads})}getPreviousPeriodICPLeadSourceStats(t){return Object.entries(this.state.icpLeadSourceStats.previous).map(n=>{if(n[0]==t)return n[1]})}getPctICPLeads(t){let n=Object.entries(this.state.statsBySource.current).reduce((i,o)=>(o[0]==t&&(i=o[1].leads),i),0),r=Object.entries(this.state.icpLeadSourceStats.current).reduce((i,o)=>(o[0]==t&&(i=o[1]),i),0);return r>0&&n>0?r/n:0}getPreviousPeriodCTASourceStats(t){return Object.entries(this.state.statsBySource.previous).map(n=>{if(n[0]==t)return n[1].cta})}getConversionRateForSource(t){return Object.entries(this.state.statsBySource.current).map(n=>{if(n[0].includes(`"${t}"`))return console.log("Matched",n[0],t,n[1]),n[1]})}handleTimeFrameChange(t){this.setState({metricsTimeframe:t},()=>{Va.set("metricsTimeframe",this.state.metricsTimeframe),this.getPageMetrics(),this.getPageEntries()})}handleTabChange(t,n){this.setState({currentTab:n.id},()=>{n.id=="optimization"&&this.state.metricsTimeframe.includes("previous")&&this.handleTimeFrameChange("previous_90_days")}),window.history.replaceState(null,"",n.href),t.preventDefault()}predictVisitsFor(t,n){if(this.state.rawStats){if(t=="conversion")return Math.round(n*1/(this.state.rawStats.current.conversion/100));if(t=="activation")return Math.round(n*1/(this.state.rawStats.current.activation/100*(this.state.rawStats.current.conversion/100)))}return 0}getSharpestDropOff(t){return t.reduce((n,r,i,o)=>{if(i===0)return n;let s=o[i-1]-r;return s>n.maxDrop?{maxDrop:s,pageNumber:i}:n},{maxDrop:0,pageNumber:0}).pageNumber}filteredLeads(){return this.state.leads.filter(t=>this.state.leadFilter=="all"?!0:this.state.leadFilter=="icp"?t.icp==!0:this.state.leadFilter=="cta"?t.cta==!0:this.state.leadFilter=="oppty_or_revenue"?t.opportunity||t.revenue>0:this.state.leadFilter=="revenue"?t.revenue>0:!1)}classNames(...t){return t.filter(Boolean).join(" ")}render(){let{isLoggedIn:t,setLogin:n,userData:r,setUserData:i}=this.context;return ze.default.createElement(ze.default.Fragment,null,ze.default.createElement("div",{className:"px-6 py-2 m-0 text-black pb-6 h-full"},ze.default.createElement("div",{className:"grid grid-cols-1 gap-y-6 sm:grid-cols-6 sm:gap-x-6 mb-6"},ze.default.createElement("div",{className:"sm:col-span-6"},ze.default.createElement("div",null,ze.default.createElement("div",{className:"border-b border-gray-200"},ze.default.createElement("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs"},this.state.tabs.map(o=>o.enabled&&ze.default.createElement("a",{key:o.name,href:o.href,onClick:s=>{this.handleTabChange(s,o)},className:Lqt(o.id==this.state.currentTab?"border-indigo-500 text-indigo-600":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700","whitespace-nowrap border-b-2 py-4 px-1 text-sm font-medium"),"aria-current":o.current?"page":void 0},o.name))))))),this.state.currentTab=="promote"&&ze.default.createElement("div",{className:"mt-4 mb-8"},ze.default.createElement(Jte,{page:this.props.page})),this.state.currentTab=="promote"&&ze.default.createElement(ze.default.Fragment,null,ze.default.createElement("div",{className:"sm:col-span-6 border-b border-gray-100 mb-6"},ze.default.createElement("div",{className:"border-gray-200 pb-6"},ze.default.createElement("h3",{className:"text-lg font-semibold leading-6 text-gray-900"},"Drive Traffic"),ze.default.createElement("p",{className:"mt-2 text-sm text-gray-500"},"It's now time to drive traffic to your Instant Landing Page. Just pick the platform you'll be sharing your Landing Page in and we'll generate a friendly and trackable URL for you. If you want to get fancy, you can also pass in UTM tags which we'll track and store for attribution.")),ze.default.createElement("div",{className:"sm:col-span-6 pb-6"},ze.default.createElement(OG,{page:this.props.page,mode:"default"})))),this.state.currentTab=="metrics"&&ze.default.createElement("div",{className:"sm:col-span-6 border-b border-gray-100 mb-8 pb-6"},!this.state.activatedUser&&ze.default.createElement("div",{className:"border-gray-200 pb-5"},ze.default.createElement("h3",{className:"text-lg font-semibold leading-6 text-gray-900"},"Measure Metrics & Iterate"),ze.default.createElement("p",{className:"mt-2 text-sm text-gray-500"},"There are three critical components to a successful Landing Page: ",ze.default.createElement("strong",null,"Traffic")," (how many people discover it), ",ze.default.createElement("strong",null,"Conversion")," (how many people exchange their email for your content), and",ze.default.createElement("strong",null," Activation")," (how many people actually take action after viewing your content). Over here, you'll be able to see how your Landing Page is performing across these three key areas. As you iterate on your Landing Page, Instant will show you how your metrics improve over time.")),ze.default.createElement(SG,{handleTimeFrameChange:this.handleTimeFrameChange,metricsTimeframe:this.state.metricsTimeframe,fetchingPageMetrics:this.state.fetchingPageMetrics}),ze.default.createElement("dl",{className:"mt-6 grid grid-cols-1 gap-5 sm:grid-cols-2 lg:grid-cols-3 pb-6"},this.state.stats.map(o=>ze.default.createElement("div",{key:o.name,className:"relative overflow-hidden rounded-lg bg-white px-4 pt-5 pb-12 shadow sm:px-6 sm:pt-6"},ze.default.createElement("dt",{className:"text-base font-semibold text-gray-900"},o.related_label&&ze.default.createElement("span",{className:"inline-flex items-baseline float-right px-2.5 py-0.5 -ml-1 rounded-full text-sm font-medium bg-slate-100"},o.related_stat," ",o.related_label),o.name),ze.default.createElement("dd",{className:"mt-1 flex items-baseline justify-between md:block lg:flex"},ze.default.createElement("div",{className:"flex items-baseline text-2xl font-semibold text-indigo-600"},o.stat,ze.default.createElement("span",{className:"ml-2 text-sm font-medium text-gray-500"},"from ",o.previousStat)),ze.default.createElement("div",{className:this.classNames(o.changeType==="increase"?"bg-green-100 text-green-800":"bg-red-100 text-red-800","inline-flex items-baseline px-2.5 py-0.5 rounded-full text-sm font-medium md:mt-2 lg:mt-0")},o.changeType==="increase"?ze.default.createElement(C2,{className:"-ml-1 mr-0.5 h-5 w-5 flex-shrink-0 self-center text-green-500","aria-hidden":"true"}):ze.default.createElement(A2,{className:"-ml-1 mr-0.5 h-5 w-5 flex-shrink-0 self-center text-red-500","aria-hidden":"true"}),ze.default.createElement("span",{className:"sr-only"}," ",o.changeType==="increase"?"Increased":"Decreased"," ","by"," "),o.change)),o.name=="Traffic"&&this.state.visitSourceStats&&ze.default.createElement("dd",{className:"text-sm mt-0"},ze.default.createElement("div",{className:"mt-0 flex flex-col"},ze.default.createElement("div",{className:"-my-2 -mx-8 overflow-x-auto"},ze.default.createElement("div",{className:"inline-block min-w-full py-2 align-middle md:px-6 lg:px-8"},ze.default.createElement("table",{className:"min-w-full divide-y divide-gray-200"},ze.default.createElement("thead",null,ze.default.createElement("tr",null,ze.default.createElement("th",{scope:"col",className:"py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6 md:pl-0"},"Source"),ze.default.createElement("th",{scope:"col",className:"py-3.5 px-3 text-left text-sm font-semibold text-gray-900"},"Visits"),ze.default.createElement("th",{scope:"col",className:"py-3.5 px-3 text-left text-sm font-semibold text-gray-900"},"Prev."))),ze.default.createElement("tbody",{className:"divide-y divide-gray-200"},Object.entries(this.state.visitSourceStats.current).map(s=>ze.default.createElement("tr",{key:s[0]},ze.default.createElement("td",{className:"whitespace-nowrap py-2 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 md:pl-0"},s[0].split("/")[0].substring(0,10)," ",ze.default.createElement("span",{className:"text-slate-400"},s[0].split("/")[1])),ze.default.createElement("td",{className:"whitespace-nowrap py-2 px-3 text-sm text-gray-500"},s[1]),ze.default.createElement("td",{className:"whitespace-nowrap py-2 px-3 text-sm text-gray-500"},this.getPreviousPeriodVisitSourceStats(s[0])))))))))),o.name=="Conversion Rate"&&this.state.leadSourceStats&&ze.default.createElement("dd",{className:"text-sm mt-0"},ze.default.createElement("div",{className:"mt-0 flex flex-col"},ze.default.createElement("div",{className:"-my-2 -mx-8 overflow-x-auto"},ze.default.createElement("div",{className:"inline-block min-w-full py-2 align-middle md:px-6 lg:px-8"},ze.default.createElement("table",{className:"min-w-full divide-y divide-gray-200"},ze.default.createElement("thead",null,ze.default.createElement("tr",null,ze.default.createElement("th",{scope:"col",className:"py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6 md:pl-0"},"Source"),ze.default.createElement("th",{scope:"col",className:"py-3.5 px-3 text-left text-sm font-semibold text-gray-900"},"Leads"),ze.default.createElement("th",{scope:"col",className:"py-3.5 px-3 text-left text-sm font-semibold text-gray-900"},"Prev."))),ze.default.createElement("tbody",{className:"divide-y divide-gray-200"},Object.entries(this.state.statsBySource.current).map(s=>ze.default.createElement("tr",{key:s[0]},ze.default.createElement("td",{className:"whitespace-nowrap py-2 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 md:pl-0"},ze.default.createElement("span",{className:"text-indigo-400"},Math.round(s[1].lead_conversion_rate*100).toString()+"%")," ",s[0].split("/")[0].substring(0,10)," ",ze.default.createElement("span",{className:"text-slate-400"},s[0].split("/")[1])),ze.default.createElement("td",{className:"whitespace-nowrap py-2 px-3 text-sm text-gray-500"},s[1].leads),ze.default.createElement("td",{className:"whitespace-nowrap py-2 px-3 text-sm text-gray-500"},this.getPreviousPeriodLeadSourceStats(s[0])))))))))),o.name=="Traffic Quality"&&this.state.icpLeadSourceStats&&ze.default.createElement("dd",{className:"text-sm mt-0"},ze.default.createElement("div",{className:"mt-0 flex flex-col"},ze.default.createElement("div",{className:"-my-2 -mx-8 overflow-x-auto"},ze.default.createElement("div",{className:"inline-block min-w-full py-2 align-middle md:px-6 lg:px-8"},ze.default.createElement("table",{className:"min-w-full divide-y divide-gray-200"},ze.default.createElement("thead",null,ze.default.createElement("tr",null,ze.default.createElement("th",{scope:"col",className:"py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6 md:pl-0"},"% ICP by Source"),ze.default.createElement("th",{scope:"col",className:"py-3.5 px-3 text-left text-sm font-semibold text-gray-900"},"Leads"),ze.default.createElement("th",{scope:"col",className:"py-3.5 px-3 text-left text-sm font-semibold text-gray-900"},"Prev."))),ze.default.createElement("tbody",{className:"divide-y divide-gray-200"},Object.entries(this.state.icpLeadSourceStats.current).map(s=>ze.default.createElement("tr",{key:s[0]},ze.default.createElement("td",{className:"whitespace-nowrap py-2 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 md:pl-0"},ze.default.createElement("span",{className:"text-indigo-400"},Math.round(this.getPctICPLeads(s[0])*100).toString()+"%")," ",s[0].split("/")[0].substring(0,10)," ",ze.default.createElement("span",{className:"text-slate-400"},s[0].split("/")[1])),ze.default.createElement("td",{className:"whitespace-nowrap py-2 px-3 text-sm text-gray-500"},s[1]),ze.default.createElement("td",{className:"whitespace-nowrap py-2 px-3 text-sm text-gray-500"},this.getPreviousPeriodICPLeadSourceStats(s[0])))))))))),o.name=="Activation Rate"&&this.state.leadSourceStats&&ze.default.createElement("dd",{className:"text-sm mt-0"},ze.default.createElement("div",{className:"mt-0 flex flex-col"},ze.default.createElement("div",{className:"-my-2 -mx-8 overflow-x-auto"},ze.default.createElement("div",{className:"inline-block min-w-full py-2 align-middle md:px-6 lg:px-8"},ze.default.createElement("table",{className:"min-w-full divide-y divide-gray-200"},ze.default.createElement("thead",null,ze.default.createElement("tr",null,ze.default.createElement("th",{scope:"col",className:"py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6 md:pl-0"},"Source"),ze.default.createElement("th",{scope:"col",className:"py-3.5 px-3 text-left text-sm font-semibold text-gray-900"},"CTAs"),ze.default.createElement("th",{scope:"col",className:"py-3.5 px-3 text-left text-sm font-semibold text-gray-900"},"Prev."))),ze.default.createElement("tbody",{className:"divide-y divide-gray-200"},Object.entries(this.state.statsBySource.current).map(s=>ze.default.createElement("tr",{key:s[0]},ze.default.createElement("td",{className:"whitespace-nowrap py-2 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 md:pl-0"},ze.default.createElement("span",{className:"text-indigo-400"},Math.round(s[1].cta_conversion_rate*100).toString()+"%")," ",s[0].split("/")[0].substring(0,10)," ",ze.default.createElement("span",{className:"text-slate-400"},s[0].split("/")[1])),ze.default.createElement("td",{className:"whitespace-nowrap py-2 px-3 text-sm text-gray-500"},s[1].cta),ze.default.createElement("td",{className:"whitespace-nowrap py-2 px-3 text-sm text-gray-500"},this.getPreviousPeriodCTASourceStats(s[0])))))))))),o.name=="Pipeline Quality"&&this.state.opportunityStats&&ze.default.createElement("dd",{className:"text-sm mt-0"},ze.default.createElement("div",{className:"mt-0 flex flex-col"},ze.default.createElement("div",{className:"-my-2 -mx-8 overflow-x-auto"},ze.default.createElement("div",{className:"inline-block min-w-full py-2 align-middle md:px-6 lg:px-8"},ze.default.createElement("table",{className:"min-w-full divide-y divide-gray-200"},ze.default.createElement("thead",null,ze.default.createElement("tr",null,ze.default.createElement("th",{scope:"col",className:"py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6 md:pl-0"},"Source"),ze.default.createElement("th",{scope:"col",className:"py-3.5 px-3 text-left text-sm font-semibold text-gray-900"},"Opptys"),ze.default.createElement("th",{scope:"col",className:"py-3.5 px-3 text-left text-sm font-semibold text-gray-900"},"Prev."))),ze.default.createElement("tbody",{className:"divide-y divide-gray-200"},Object.entries(this.state.opportunityStats.current).map(s=>ze.default.createElement("tr",{key:s[0]},ze.default.createElement("td",{className:"whitespace-nowrap py-2 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 md:pl-0"},s[0].split("/")[0].substring(0,10)," ",ze.default.createElement("span",{className:"text-slate-400"},s[0].split("/")[1])),ze.default.createElement("td",{className:"whitespace-nowrap py-2 px-3 text-sm text-gray-500"},s[1]),ze.default.createElement("td",{className:"whitespace-nowrap py-2 px-3 text-sm text-gray-500"},this.getPreviousPeriodOpportunityStats(s[0])))))))))),o.name=="Revenue Quality"&&this.state.revenueStats&&ze.default.createElement("dd",{className:"text-sm mt-0"},ze.default.createElement("div",{className:"mt-0 flex flex-col"},ze.default.createElement("div",{className:"-my-2 -mx-8 overflow-x-auto"},ze.default.createElement("div",{className:"inline-block min-w-full py-2 align-middle md:px-6 lg:px-8"},ze.default.createElement("table",{className:"min-w-full divide-y divide-gray-200"},ze.default.createElement("thead",null,ze.default.createElement("tr",null,ze.default.createElement("th",{scope:"col",className:"py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6 md:pl-0"},"Source"),ze.default.createElement("th",{scope:"col",className:"py-3.5 px-3 text-left text-sm font-semibold text-gray-900"},"Revenue"),ze.default.createElement("th",{scope:"col",className:"py-3.5 px-3 text-left text-sm font-semibold text-gray-900"},"Prev."))),ze.default.createElement("tbody",{className:"divide-y divide-gray-200"},Object.entries(this.state.revenueStats.current).map(s=>ze.default.createElement("tr",{key:s[0]},ze.default.createElement("td",{className:"whitespace-nowrap py-2 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 md:pl-0"},s[0].split("/")[0].substring(0,10)," ",ze.default.createElement("span",{className:"text-slate-400"},s[0].split("/")[1])),ze.default.createElement("td",{className:"whitespace-nowrap py-2 px-3 text-sm text-gray-500"},(0,bv.default)(s[1]).format("$0a")),ze.default.createElement("td",{className:"whitespace-nowrap py-2 px-3 text-sm text-gray-500"},(0,bv.default)(this.getPreviousPeriodRevenueStats(s[0])).format("$0a")))))))))),o.name=="Traffic"&&this.state.rawStats&&this.state.rawStats.current.numVisits>0&&ze.default.createElement("dd",{className:"text-sm mt-2 leading-6 text-gray-600"},ze.default.createElement("hr",{className:"mt-4 mb-4 block"}),"Promote your ",ze.default.createElement("strong",null,this.props.page.what)," ","and generate more traffic to your Instant Landing Page using"," ",ze.default.createElement("a",{className:"text-blue-500 hover:underline hover:text-indigo-600",href:`/dashboard/${this.props.page.id}/promote`},"\u26A1\uFE0F Content"),"."),o.name=="Conversion Rate"&&this.state.rawStats&&this.state.rawStats.current.numVisits>20&&this.state.rawStats.current.conversion<20&&ze.default.createElement("dd",{className:"text-sm mt-2 leading-6"},ze.default.createElement("hr",{className:"mt-4 mb-4 block"}),"Optimize your Instant Landing Page and increase your Conversion Rates using"," ",ze.default.createElement("a",{className:"text-blue-500 hover:underline hover:text-indigo-600",href:`/dashboard/${this.props.page.id}/optimization`},"\u26A1\uFE0F Optimization"),"."),o.name=="Conversion Rate"&&this.state.rawStats&&this.state.rawStats.current.conversion>20&&ze.default.createElement("dd",{className:"text-sm mt-2 leading-6"},ze.default.createElement("hr",{className:"mt-4 mb-4 block"}),"At your current conversion rate, to generate"," ",ze.default.createElement("strong",null,"100 "),"additional leads, you'll need to generate"," ",ze.default.createElement("strong",null,this.predictVisitsFor("conversion",100)," ")," ","visits to your Instant Landing Page."),o.name=="Activation Rate"&&this.state.engagementStats&&ze.default.createElement("dd",{className:"text-sm mt-2 leading-6"},ze.default.createElement("hr",{className:"mt-4 mb-4 block"}),ze.default.createElement(AG,{progressPercentage:this.state.engagementStats.current}),ze.default.createElement("hr",{className:"mt-4 mb-4"}),"On average, your leads are engaging with"," ",ze.default.createElement("strong",null,Math.round(this.state.engagementStats.current*100).toString()+"%")," ","of your lead magnet",this.state.rawStats.current.avgTimeSpent>0&&ze.default.createElement(ze.default.Fragment,null," ","spending",ze.default.createElement("strong",null," ",Pm.default.utc(Pm.default.duration(this.state.rawStats.current.avgTimeSpent,"seconds").asMilliseconds()).format("m[m] s[s]"))),this.state.engagementStats.previous!=null&&ze.default.createElement(ze.default.Fragment,null," ","compared to"," ",ze.default.createElement("strong",null,Math.round(this.state.engagementStats.previous*100).toString()+"%")," ",this.state.rawStats.previous.avgTimeSpent>0&&ze.default.createElement(ze.default.Fragment,null," ","spending",ze.default.createElement("strong",null," ",Pm.default.utc(Pm.default.duration(this.state.rawStats.current.avgTimeSpent,"seconds").asMilliseconds()).format("m[m] ss[s]"))," "),"in the previous period"),"."),o.name=="Activation Rate"&&!1,o.name=="Pipeline Quality"&&this.state.rawStats&&this.state.rawStats.current.numLeads>0&&this.state.rawStats.current.numICPLeads==0&&this.state.rawStats.current.numOpportunities>0&&ze.default.createElement("dd",{className:"text-sm mt-2 leading-6"},ze.default.createElement("hr",{className:"mt-4 mb-4 block"}),"You are converting"," ",ze.default.createElement("strong",null,(0,bv.default)(this.state.rawStats.current.numOpportunities*1/(this.state.rawStats.current.numLeads*1)).format("0.0%"))," ","of your leads into opportunities."),o.name=="Pipeline Quality"&&this.state.rawStats&&this.state.rawStats.current.numICPLeads>0&&this.state.rawStats.current.numOpportunities>0&&ze.default.createElement("dd",{className:"text-sm mt-2 leading-6"},ze.default.createElement("hr",{className:"mt-4 mb-4 block"}),"You are converting"," ",ze.default.createElement("strong",null,(0,bv.default)(this.state.rawStats.current.numOpportunities*1/(this.state.rawStats.current.numICPLeads*1)).format("0.0%"))," ","of your ICP leads into opportunities."),o.name=="Pipeline Quality"&&this.state.rawStats&&this.state.rawStats.current.numLeads>0&&this.state.rawStats.current.numOpportunities>0&&this.state.rawStats.current.avgTimeLeadToOpportunity>0&&ze.default.createElement("dd",{className:"text-sm mt-2 leading-6"},ze.default.createElement("hr",{className:"mt-4 mb-4 block"}),"On average, it takes"," ",ze.default.createElement("strong",null,Pm.default.duration(this.state.rawStats.current.avgTimeLeadToOpportunity,"seconds").humanize())," ","for your leads to turn into opportunities."),o.name=="Revenue Quality"&&this.state.rawStats&&this.state.rawStats.current.numOpportunitiesWon>0&&this.state.rawStats.current.avgTimeLeadToRevenue>0&&ze.default.createElement("dd",{className:"text-sm mt-2 leading-6"},ze.default.createElement("hr",{className:"mt-4 mb-4 block"}),"On average, it takes"," ",ze.default.createElement("strong",null,Pm.default.duration(this.state.rawStats.current.avgTimeLeadToRevenue,"seconds").humanize())," ","for your leads to turn into revenue."),o.name=="Revenue Quality"&&this.state.rawStats&&this.state.rawStats.current.numOpportunitiesWon>0&&this.state.rawStats.current.avgTimeOpportunityToRevenue!=null&&ze.default.createElement("dd",{className:"text-sm mt-2 leading-6"},ze.default.createElement("hr",{className:"mt-4 mb-4 block"}),"On average, it takes"," ",ze.default.createElement("strong",null,Pm.default.duration(this.state.rawStats.current.avgTimeOpportunityToRevenue,"seconds").humanize())," ","for your opportunity to turn into revenue with an average win rate of"," ",ze.default.createElement("strong",null,(0,bv.default)(this.state.rawStats.current.numOpportunitiesWon*1/(this.state.rawStats.current.numOpportunities*1)).format("0.0%")),"."))))),this.state.currentTab=="metrics"&&this.state.rawStats&&this.state.rawStats.previous&&this.state.rawStats.current&&this.state.rawStats.current.unitEngagement.length>0&&this.state.rawStats.current.unitEngagement[0]!=0&&(this.props.page.what_type=="training"||Object.keys(this.state.rawStats.current.avgViewingTimeByPage).length>0)&&ze.default.createElement("div",{className:"sm:col-span-6 border-b border-gray-100 mb-8 pb-6 w-full"},!this.state.activatedUser&&ze.default.createElement("div",{className:"border-gray-200 pb-5"},ze.default.createElement("h3",{className:"text-lg font-semibold leading-6 text-gray-900"},"Content Engagement"),ze.default.createElement("p",{className:"mt-2 text-sm text-gray-500"},"Here's a detailed breakdown of how leads are engaging with your Lead Magnet."," ",this.props.page.what_type=="training"?ze.default.createElement("span",{className:"font-bold bg-yellow-50"},"Your sharpest dropoff is at"," ",Pm.default.duration(this.getSharpestDropOff(this.state.rawStats.current.unitEngagement),"seconds").format("h[h] m[m] s[s]"),"."):ze.default.createElement("span",{className:"font-bold bg-yellow-50"},"Your sharpest dropoff is on Page #",this.getSharpestDropOff(this.state.rawStats.current.unitEngagement),"."))),ze.default.createElement("div",{className:"w-full"},this.props.page.what_type=="training"?ze.default.createElement(pRe,{videoUrl:this.props.page.pdf_url,currentUnitEngagement:this.state.rawStats.current.unitEngagement,prevUnitEngagement:this.state.rawStats.previous.unitEngagement}):ze.default.createElement("div",{className:"h-[400px]"},ze.default.createElement(uRe,{pdfUrl:this.props.page.pdf_url,currentUnitEngagement:this.state.rawStats.current.unitEngagement,prevUnitEngagement:this.state.rawStats.previous.unitEngagement,currentClicksByPage:this.state.rawStats.current.clicksByPage,currentAvgViewingTimeByPage:this.state.rawStats.current.avgViewingTimeByPage,currentTotalViewingTimeByPage:this.state.rawStats.current.totalViewingTimeByPage,previousClicksByPage:this.state.rawStats.previous.clicksByPage,previousAvgViewingTimeByPage:this.state.rawStats.previous.avgViewingTimeByPage,previousTotalViewingTimeByPage:this.state.rawStats.previous.totalViewingTimeByPage})))),this.state.currentTab=="promote"&&ze.default.createElement("div",{className:"sm:col-span-6"},ze.default.createElement("div",{className:"flex flex-col"},ze.default.createElement("div",{className:" border-gray-200"},ze.default.createElement("h3",{className:"text-lg font-semibold leading-6 text-gray-900"},"Drive Traffic with Content Co-Pilot"),ze.default.createElement("p",{className:"mt-2 text-sm text-gray-500"},"The key to generating leads is to promote your Instant Landing Page through social media posts and ADs with compelling and high converting content. Use the Content Co-Pilot to generate content that resonates with your audience and drives traffic to your Instant Landing Page."))),ze.default.createElement("div",{className:"mt-6 border-b border-gray-100 pb-6 mb-6"},ze.default.createElement(vRe,{rawStats:this.state.rawStats,page:this.props.page,onLaunch:o=>{this.setState({contentModalOpen:!0}),this.setState({selectedContentHook:o})}}),ze.default.createElement(mRe,{open:this.state.contentModalOpen,page:this.props.page,planSupportsFeature:!0,preSelectedHook:this.state.selectedContentHook,onHandleClose:()=>{this.setState({contentModalOpen:!1})}}))),this.state.currentTab=="optimization"&&ze.default.createElement("div",{className:"sm:col-span-6"},ze.default.createElement("div",{className:"flex flex-col"},ze.default.createElement("div",{className:" border-gray-200"},ze.default.createElement("h3",{className:"text-lg font-semibold leading-6 text-gray-900"},"Instant Optimization"),ze.default.createElement("p",{className:"mt-2 text-sm text-gray-500"},"Here's an overview of how your Instant Landing Page is performing across key metrics. Use this information to optimize your Landing Page and drive more traffic, conversion, and quality leads that lead to more revenue."))),ze.default.createElement("div",{className:"w-full"},ze.default.createElement(gz,{page:this.props.page})),ze.default.createElement("div",{className:"flex flex-col border-t border-gray-100 pt-6"},ze.default.createElement("div",{className:" border-gray-200"},ze.default.createElement("h3",{className:"text-lg font-semibold leading-6 text-gray-900"},"Instant GTM Grader"),ze.default.createElement("p",{className:"mt-2 text-sm text-gray-500"},"We'll analyze your data and provide you with actionable insights on how to drive more quality traffic, conversion, and quality leads that lead to more revenue. Choose the timeline you'd like to use to analyze the performance of your Instant Landing Page."))),ze.default.createElement("div",{className:"flex flex-col mt-4 mb-4"},ze.default.createElement(SG,{handleTimeFrameChange:this.handleTimeFrameChange,metricsTimeframe:this.state.metricsTimeframe,fetchingPageMetrics:this.state.fetchingPageMetrics,trends:!0})),ze.default.createElement("div",{className:"w-full"},ze.default.createElement(m9e,{data:this.state.rawStats,page:this.props.page,planSupportsFeature:this.currentTabSupportsPlan()})),!this.isInProPlan()&&ze.default.createElement(ez,{page:this.props.page,tab:"optimization"})),this.state.currentTab=="leads"&&ze.default.createElement(ze.default.Fragment,null,!this.state.activatedUser&&ze.default.createElement("div",{className:"sm:col-span-6"},ze.default.createElement("div",{className:"flex flex-col"},ze.default.createElement("div",{className:" border-gray-200"},ze.default.createElement("h3",{className:"text-lg font-semibold leading-6 text-gray-900"},"Engage with Leads"),ze.default.createElement("p",{className:"mt-2 text-sm text-gray-500"},"Here is a list of leads that you've generated over the selected time period. From here you'll be able to learn at a granular level who engaged with your content, how they discovered you and whether they took action. We recommend using Zapier to engage with these leads through the email automation platform of your choice.")))),ze.default.createElement("div",{className:"grid grid-cols-1 gap-y-6 sm:grid-cols-6 sm:gap-x-6 mb-6 mt-6"},ze.default.createElement("div",{className:"sm:col-span-3"},ze.default.createElement(SG,{handleTimeFrameChange:this.handleTimeFrameChange,metricsTimeframe:this.state.metricsTimeframe,fetchingPageMetrics:this.state.fetchingPageMetrics,className:"float-right"})),ze.default.createElement("div",{className:"sm:col-span-3"},ze.default.createElement("select",{value:this.state.leadFilter,onChange:o=>this.setState({leadFilter:o.target.value},()=>{Va.set("leadFilter",this.state.leadFilter)}),className:"shadow-sm border sm:text-sm border-gray-300 rounded-md"},this.state.leadFilterOptions.map(o=>ze.default.createElement("option",{key:o.value,value:o.value},o.label))),ze.default.createElement("a",{onClick:o=>this.downloadPageEntries(),className:"cursor-pointer inline-flex items-center float-right text-sm font-medium text-slate-500 mt-2 mx-4",title:"Download Leads"},ze.default.createElement("br",null),ze.default.createElement(Lj,{className:"h-5 w-5 hover:text-red-500","aria-hidden":"true"}))),ze.default.createElement("div",{className:"sm:col-span-6"},!this.state.fetchingPageEntries&&this.state.leads!=null&&ze.default.createElement(HDe,{fetching:this.state.fetchingPageEntries,leads:this.filteredLeads()})))),this.state.currentTab=="workflows"&&this.currentTabSupportsPlan()&&ze.default.createElement("div",{className:"w-full h-full"},ze.default.createElement(JDe,null)),this.state.currentTab=="promote"&&r&&r.subscription&&ze.default.createElement("div",{className:"sm:col-span-6"},ze.default.createElement(sRe,{advanced:this.state.rawStats&&this.state.rawStats.current.numVisits>10&&this.state.rawStats.current.conversion>0||r?.subscription?.academy,userData:r,id:this.props.id})),ze.default.createElement("p",{className:"py-6 text-xs text-slate-600 text-center items-center"},ze.default.createElement("strong",null,"belief")," x ",ze.default.createElement("strong",null,"discipline")," makes you"," ",ze.default.createElement("strong",null,ze.default.createElement("a",{href:"https://getunstoppable.com/youtube",className:"hover:cursor-pointer hover:text-blue-800",target:"_new"},"unstoppable")))),ze.default.createElement(Dc,{open:this.state.instantModalOpen,options:this.state.instantModalOptions}))}};Kt(c9,"contextType",Vr);var KDn=ie(fu());var yo=ie(Pe());var d9=ie(fu()),Vqt=e=>{let{pages:t,currentPage:n,userData:r,handleShowPage:i,showInstantProPagesUpsell:o}=e;return yo.default.createElement("div",{className:"h-full flex flex-col"},yo.default.createElement("div",{className:"border-b border-gray-200 bg-white px-4 py-3"},yo.default.createElement("div",{className:"-ml-4 -mt-2 flex flex-wrap items-center justify-between sm:flex-nowrap"},yo.default.createElement("div",{className:"ml-4 mt-2"},yo.default.createElement("h3",{className:"text-lg font-bold leading-6 text-gray-900"},"My \u26A1\uFE0F Pages")),yo.default.createElement("div",{className:`ml-4 mt-2 flex-shrink-0 ${r&&r.admin?"":"hidden"}`},r&&r.subscription&&r.subscription.can_add_page?yo.default.createElement("a",{href:"/builder/new",className:"relative inline-flex items-center rounded-md border border-transparent bg-indigo-600 px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"},yo.default.createElement(xJ,{className:"h-4 w-4 mr-2","aria-hidden":"true"}),"New"):yo.default.createElement("a",{onClick:s=>{s.preventDefault(),o()},href:"#",className:"relative inline-flex items-center rounded-md border border-transparent bg-indigo-600 px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"},"New")))),yo.default.createElement("div",{className:"h-full overflow-y-auto"},Object.entries(t.reduce((s,a)=>{let l=a.category||a.what_type;return s[l]||(s[l]=[]),s[l].push(a),s},{})).map(([s,a])=>yo.default.createElement("div",{key:s,className:"relative"},yo.default.createElement("div",{className:"sticky top-0 z-10 border-y border-b-gray-200 border-t-gray-100 bg-gray-50 px-3 py-1.5 text-sm font-semibold leading-6 text-gray-900"},yo.default.createElement("h3",null,s)),yo.default.createElement("ul",{role:"list",className:"divide-y divide-gray-200 flex-1 h-full"},a.map(l=>yo.default.createElement("li",{key:l.id,className:"relative py-5 px-4 focus-within:ring-2 focus-within:ring-inset focus-within:ring-indigo-600 hover:bg-yellow-50"},yo.default.createElement("div",{className:"flex justify-between space-x-3"},yo.default.createElement("div",{className:"min-w-0 flex-1"},yo.default.createElement("a",{href:"/dashboard/"+l.id,key:l.id,onClick:u=>{u.preventDefault(),i(l.id,"promote")},className:"block focus:outline-none"},yo.default.createElement("span",{className:"absolute inset-0","aria-hidden":"true"}),yo.default.createElement("p",{className:"truncate text-md font-semibold text-gray-600"},l.what)))),yo.default.createElement("div",{className:"mt-2"},l.performance_summary&&yo.default.createElement("div",{className:"text-xs text-gray-800 line-clamp-2 flex gap-2"},yo.default.createElement("span",{className:""},(0,d9.default)(l.performance_summary.num_visits).format("0a")," ","Visits"),yo.default.createElement("span",null,(0,d9.default)(l.performance_summary.conversion).format("0%")," ","Conv."),yo.default.createElement("span",null,(0,d9.default)(l.performance_summary.num_leads).format("0a")," ","Leads"),l.performance_summary.total_revenue>0&&yo.default.createElement("span",null,(0,d9.default)(l.performance_summary.total_revenue).format("$0a")," ","Revenue"))))))))))},_Re=Vqt;var jt=ie(Pe());var km=ie(Pe());var bRe=ie(Xa());vo.register(vh,Hd,Vc);var Jqt=e=>{let{userData:t}=(0,km.useContext)(Vr),[n,r]=(0,km.useState)({});return(0,km.useEffect)(()=>{e.leadData!=null&&e.leadData!=null&&r({labels:Object.keys(e.leadData).map(i=>(0,bRe.default)(i).format("MMM Do")),datasets:[{data:Object.values(e.leadData),backgroundColor:"rgba(165, 180, 252, 0.6);",borderColor:"rgba(79, 70, 229,1)",borderWidth:1,label:"Leads"}]})},[e]),km.default.createElement("div",{className:"w-full h-full",key:e.leadData},n&&n.labels&&n.labels.length>0&&km.default.createElement(AF,{data:n,options:{responsive:!0,plugins:{legend:{display:!1},tooltip:{enabled:!1},datalabels:{color:"white"}},scales:{x:{type:"category",grid:{display:!1},ticks:{}},y:{display:!1,grid:{display:!1},beginAtZero:!0,ticks:{stepSize:1}}}}}))},wRe=Jqt;var p9=ie(Xa());var Vi=ie(Pe()),PRe=ie(fu());var jqt=e=>{let[t,n]=(0,Vi.useState)([]),[r,i]=(0,Vi.useState)(!0),o=(s,a)=>Vi.default.createElement("span",{className:"bg-indigo-600 text-white p-1 font-bold"},(0,PRe.default)(s).format(a));return(0,Vi.useEffect)(()=>{console.log("Next Best Step: ",e),e&&e.page_id&&e.mode=="mini"&&c3(e.page_id,"Lesson Learned").then(s=>{s.success?(i(!1),n(s.response.data)):(i(!1),console.log("Error fetching Hook ideas: ",s))})},[e.page_id]),nextBestStepMini=()=>Vi.default.createElement("div",{className:"border-gray-200 leading-6 text-sm text-black"},Vi.default.createElement(Vi.default.Fragment,null,Vi.default.createElement("h3",{className:"text-lg font-semibold leading-6 text-gray-900 mb-2"},"Your Next Best Step"),Vi.default.createElement("div",{className:"grid grid-cols-2 gap-4"},Vi.default.createElement("div",null,Vi.default.createElement("p",{className:"mt-2 text-sm text-gray-500"},"Your next best step is to promote your Instant Landing Page. You can use \u26A1\uFE0F Content Co-Pilot to write a compelling social media post or ADs to promote your lead magnet and generate quality leads."),Vi.default.createElement("p",{className:"mt-4 text-sm text-gray-500"},"Content Co-Pilot is specifically designed to help you write high converting content for your social media posts and ADs that drives traffic to your Instant Landing Page."),Vi.default.createElement("p",{className:"mt-4 border-t border-gray-100 pt-8"},Vi.default.createElement("a",{href:`/dashboard/${e.page_id}/promote`,className:"rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"},"Use Instant Content Co-Pilot \u2192"))),Vi.default.createElement("div",null,Vi.default.createElement(P5,{postType:"lesson learned",hookIdeas:t,isLoadingHookIdeas:r,preview:!0}))))),nextBestStepJumbo=()=>Vi.default.createElement(Vi.default.Fragment,null,e.numLeadsToday<5?Vi.default.createElement("div",{className:"flex space-x-2"},Vi.default.createElement("p",{className:"text-xs text-slate-500 w-4/6"},"Promote your Lead Magnet to generate more leads with Instant Co-Pilot."),Vi.default.createElement("a",{target:"_new",href:`/dashboard/${e.page_id}/promote`,className:"w-2/6 text-center align-middle text-xs rounded-md bg-indigo-600 py-2 px-1.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"},"\u26A1\uFE0F Co-Pilot \u2192")):Vi.default.createElement("p",{className:"text-center text-xs align-middle"},"Great job! You've generated ",e.numLeadsToday," leads today.")),Vi.default.createElement(Vi.default.Fragment,null,e.mode=="mini"?Vi.default.createElement(Vi.default.Fragment,null,nextBestStepMini()):Vi.default.createElement(Vi.default.Fragment,null,nextBestStepJumbo()))},kRe=jqt;var ARe=ie(b4()),Hqt=e=>{let{showInstantProPagesUpsell:t}=e,[n,r]=(0,jt.useState)([]),[i,o]=(0,jt.useState)(!1),[s,a]=(0,jt.useState)([]),[l,u]=(0,jt.useState)(null),[c,f]=(0,jt.useState)(null),[d,h]=(0,jt.useState)(null),[m,g]=(0,jt.useState)("OFFLINE"),[b,v]=(0,jt.useState)(null),[x,y]=(0,jt.useState)(null),[_,w]=(0,jt.useState)(null),k=f2(),O=(0,jt.useRef)(0),M=(0,jt.useRef)(null),[I,W]=(0,jt.useState)(!1),[J,H]=(0,jt.useState)({pageEntry:null,page:null}),{userData:ee}=(0,jt.useContext)(Vr),j=()=>(console.log(e,ee),e.userData&&e.userData.id?e.userData.id:ee&&ee.id?ee.id:null);return(0,jt.useEffect)(()=>{j()!=null&&(e&&!inMiniMode()&&!inInlineMode()&&fetchPages(),k.id?v(k.id):e.page_id&&v(e.page_id))},[ee,e.userData]),(0,jt.useEffect)(()=>{inInlineMode()&&v(e.page_id)},[e.page_id]),(0,jt.useEffect)(()=>{b==null&n.length>0&&v(n[0].id)},[n]),(0,jt.useEffect)(()=>{if(j()!=null){let V=Lle();return V.subscribe("private-user-"+j()).bind("page_entry",N=>{N.page.id==b&&processEvent("page_entry",N)}),V.connection.bind("state_change",N=>{N.current=="connected"?g("LIVE"):g("OFFLINE")}),a([]),u(null),f(null),h(null),w(null),O.current=0,!inMiniMode()&&!inInlineMode()&&window.history.pushState({},"",`/dashboard/${b}/live`),monitorPageMetrics(!0),()=>{ee&&j(),V.unsubscribe("private-user-"+j())}}},[b]),(0,jt.useEffect)(()=>{O.current=s.length},[s]),openEmailModal=V=>{H({pageEntry:V,page:_}),W(!0)},fetchPages=()=>{n.length==0&&i==!1&&(o(!0),hS().then(B=>{if(B.success){let N=B.response.data;r(N),o(!1)}}))},monitorPageMetrics=(V=!0)=>{if(b==null)return console.log("[Live Feed] No page to monitor"),!1;Yle(b).then(N=>{if(N.success&&(y((0,p9.default)().format("YYYY-MM-DD HH:mm:ss")),u(N.response.data.num_leads_today),f(N.response.data.num_leads_last_7_days_by_day),h(N.response.data.next_best_action),w(N.response.data.page),N.response.data.recent_page_entries!=null&&O.current==0&&a(N.response.data.recent_page_entries),V))return M.current!=null&&clearTimeout(M.current),M.current=setTimeout(monitorPageMetrics,6e4*1),()=>{clearTimeout(M.current)}})},processEvent=(V,B)=>{console.log("Processing event: ",V,B);let N=s.findIndex(S=>S.id===B.id),C;if(N!==-1){console.log("Updating existing lead",B);let S=[...s];S.splice(N,1),S.unshift(B),a(S)}else console.log("Processing new lead",B),C=[B,...s],a(C);if(V=="page_entry"){(0,p9.default)(B.created_at)>x&&u(l+1);let S=c;S!=null&&S[(0,p9.default)().format("YYYY-MM-DD")]!=null&&(S[(0,p9.default)().format("YYYY-MM-DD")]=l+1,f(S))}},openLiveFeedWindow=V=>{V.preventDefault();let B=400,N=window.screen.height,C=0,S=0;window.open("/dashboard/"+b+"/live","_blank",`toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=${B},height=${N},top=${C},left=${S}`)},inMiniMode=()=>(isInMiniMode=e&&e.mode!=null&&e.mode=="mini",isInMiniMode),inInlineMode=()=>e&&e.mode!=null&&e.mode=="inline",liveStatus=()=>jt.default.createElement(jt.default.Fragment,null,jt.default.createElement("span",{className:"relative flex h-3 w-3"},jt.default.createElement("span",{className:`animate-ping absolute inline-flex h-full w-full rounded-full ${m=="LIVE"?"bg-green-400":"bg-red-400"} opacity-75`}),jt.default.createElement("span",{className:`relative inline-flex rounded-full h-3 w-3 ${m=="LIVE"?"bg-green-500":"bg-red-500"}`})),jt.default.createElement("span",{className:"font-bold text-gray-500"},m=="LIVE"?"LIVE":"...")),jt.default.createElement("div",{className:"flex h-full min-w-0 flex-1 flex-col overflow-hidden lg:order-last bg-white"},inInlineMode()&&jt.default.createElement(jt.default.Fragment,null,jt.default.createElement("div",{className:"border-b border-gray-200 bg-white px-4 py-3 mb-2"},jt.default.createElement("div",{className:"-ml-4 -mt-2 flex flex-wrap items-center justify-between sm:flex-nowrap"},jt.default.createElement("div",{className:"ml-4 mt-2 flex-shrink-0"},jt.default.createElement("a",{className:"relative cursor-pointer inline-flex items-center mr-4 rounded-md border border-transparent bg-slate-200 px-4 py-2 text-sm font-medium text-slate-500 shadow-sm hover:bg-slate-300 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",onClick:V=>{V.preventDefault(),e.setMode("list")}},jt.default.createElement(vd,{className:"h-4 w-4 mr-2","aria-hidden":"true"})," ","All Pages")),jt.default.createElement("div",{className:"mt-2 flex-auto w-96 flex items-center space-x-2 "},jt.default.createElement("h3",{className:"text-lg font-bold leading-6 text-gray-900 w-full"},"Live Leads Feed"))))),!inInlineMode()&&jt.default.createElement("div",{className:"px-6 pt-3"},jt.default.createElement("div",{className:"flex items-center justify-between space-x-8 border-b border-gray-100 pb-2 align-middle"},jt.default.createElement("div",{className:"flex items-center space-x-4 min-h-[40px]"},n.length>0&&jt.default.createElement("span",{className:"w-5/6 flex space-x-2"},jt.default.createElement(mK._default,{className:"w-80 text-sm",options:n.map(V=>({value:V.id,label:V.what})),defaultValue:()=>(p=n.find(V=>V.id==b),p==null&&(p=n[0]),{value:p.id,label:p.what}),onChange:V=>{v(V.value)},creatable:!1,isSearchable:!1,isClearable:!1})," ",jt.default.createElement("a",{className:"text-sm pt-2.5 font-bold hover:text-indigo-600 hover:underline",href:`/dashboard/${b}/overview`,target:"_new"},jt.default.createElement(Jb,{className:"text-bold -bottom-1w-4 h-4 mr-1"}))),jt.default.createElement("span",{className:"flex items-center space-x-2 w-1/6 absolute right-0 pr-4"},liveStatus())))),jt.default.createElement("div",{className:"px-6 pt-3"},jt.default.createElement("div",{className:"flex flex-row border-b border-gray-100 space-x-2"},jt.default.createElement("div",{className:"w-64 pt-2"},jt.default.createElement("dd",{className:"text-6xl font-bold text-indigo-600"},l),jt.default.createElement("dt",{className:"text-sm font-medium leading-6 text-gray-500"},"Lead",l!=1?"s":""," Today")),jt.default.createElement("div",{className:"flex-grow h-[120px] w-full"},jt.default.createElement(wRe,{leadData:c,key:c}))),inInlineMode()&&jt.default.createElement("div",{className:"border-b border-gray-100 py-2 flex items-center space-x-2"},jt.default.createElement("div",{className:"mt-2 flex-auto w-64 flex items-center space-x-2 "},liveStatus()),jt.default.createElement("div",{className:"mt-2 flex-shrink-0"},jt.default.createElement("span",{className:"flex items-center justify-between text-xs"},jt.default.createElement("a",{href:`/dashboard/${b}/live`,onClick:openLiveFeedWindow,className:"text-blue-500 hover:text-blue-700",target:`${b}-live}`},jt.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-4 h-4 float-left mr-1"},jt.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 003 8.25v10.5A2.25 2.25 0 005.25 21h10.5A2.25 2.25 0 0018 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))," ","Pop Out")))),!inInlineMode()&&!ARe.isMobile&&l<3&&jt.default.createElement("div",{className:"border-b border-gray-100 py-2"},jt.default.createElement(kRe,{mode:inMiniMode()?"mini":"jumbo",page_id:b,nextBestAction:d,numLeadsToday:l}))),s.length===0&&jt.default.createElement("div",{className:"flex-1 flex items-center justify-center"},jt.default.createElement("div",{className:"text-gray-400 text-sm text-center mx-auto w-48"},"New leads you generate will appear here in real-time.")),s.length>0&&jt.default.createElement("div",{className:"divide-y divide-gray-200 overflow-y-auto flex-1 overflow-hidden px-6 pb-6"},s.map((V,B)=>jt.default.createElement("div",{className:`pt-4 ${B!==s.length-1?"pb-4":""}`,key:`container-${V.id}-${V.updated_at}-${V.page_metrics.length}`},jt.default.createElement(tz,{event:V,key:`${V.id}-${V.updated_at}-${V.page_metrics.length}`,mode:"full",onOpenEmailModal:openEmailModal})))),jt.default.createElement(rz,{open:I,onHandleClose:()=>W(!1),options:J}))},Am=Hqt;var yz=class extends qr.Component{constructor(t){super(t),this.detailsRef=qr.default.createRef(),this.state={askJarvis:!1,pages:[],currentPage:null,currentTab:null,instantProModalOpen:!1,instantProModalOptions:{feature:"pages"},mode:"feed"},this.handleShowPage=this.handleShowPage.bind(this),this.handleDeletePage=this.handleDeletePage.bind(this),this.getPageDetails=this.getPageDetails.bind(this),this.showInstantProPagesUpsell=this.showInstantProPagesUpsell.bind(this),this.openLiveFeed=this.openLiveFeed.bind(this)}async componentDidMount(){let t=await hS();t.success&&(console.log("Page Data: ",t.response.data),this.setState({pages:t.response.data},()=>{this.props.params&&this.props.params.id?this.setState({currentPage:this.props.params.id,currentTab:this.props.params.current_tab?this.props.params.current_tab:"promote",currentPageDetails:this.getPageDetails(this.props.params.id)},()=>{this.handleShowPage(this.state.currentPage,this.state.currentTab)}):t.response.data.length>0&&this.setState({currentPage:t.response.data[0].id,currentTab:"promote",currentPageDetails:this.getPageDetails(t.response.data[0].id)},()=>{console.log("Setting current page to: ",this.state.currentPage),this.handleShowPage(this.state.currentPage,this.state.currentTab)})}))}handleShowPage(t,n="promote"){this.setState({currentPage:t,currentPageDetails:this.getPageDetails(t),currentTab:n,mode:"feed"},()=>{this.detailsRef.current.scrollTo({top:0,behavior:"smooth"}),document.title=this.state.currentPageDetails.what}),this.props.navigate(`/dashboard/${t}/${n}`)}getPageDetails(t){return console.log("Getting page details for: ",t),this.state.pages.find(n=>n.id==t)}showInstantProPagesUpsell(){this.setState({instantProModalOpen:!0})}async handleClonePage(t,n){t.preventDefault();let{isLoggedIn:r,setLogin:i,userData:o}=this.context;if(o&&o.subscription&&o.subscription.can_add_page){if(confirm("Are you sure you want to clone this Instant Landing page?")){let a=await nue(this.state.currentPage);if(console.log(a),a.success){alert("The page has successfully been cloned.");let l=a.response.data.id;this.props.navigate(`/dashboard/${l}`),location.reload()}else alert("Sorry - we weren't able to delete that page.")}}else this.showInstantProPagesUpsell()}async handleDeletePage(t,n){t.preventDefault(),confirm("Are you sure you want to delete this Instant Landing page? This operation cannot be undone.")&&((await tue(this.state.currentPage)).success?(alert("The page has successfully been deleted."),this.props.navigate("/dashboard",{replace:!0}),location.reload()):alert("Sorry - we weren't able to delete that page."))}openLiveFeed(){let n=window.screen.height,r=0,i=0;window.open("/dashboard/"+this.state.currentPage+"/live","_blank",`toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=${400},height=${n},top=${r},left=${i}`)}render(){let{isLoggedIn:t,setLogin:n,userData:r}=this.context;return qr.default.createElement(qr.default.Fragment,null,qr.default.createElement("section",{"aria-labelledby":"primary-heading",className:"flex h-full min-w-0 flex-1 flex-col overflow-hidden lg:order-last bg-slate-50"},qr.default.createElement("div",{className:"m-6 block h-full rounded border-gray-200 bg-white text-gray-200 shadow flex flex-col overflow-hidden"},qr.default.createElement("div",{className:"border-b border-gray-200 bg-white px-6 py-3"},qr.default.createElement("div",{className:"-ml-4 -mt-2 flex flex-wrap items-center justify-between sm:flex-nowrap"},qr.default.createElement("div",{className:"ml-4 mt-2"},qr.default.createElement("h3",{className:"text-lg font-bold leading-6 text-gray-900"},this.state.currentPage&&this.state.currentPageDetails&&this.state.currentPageDetails.what?this.state.currentPageDetails.what.length>50?this.state.currentPageDetails.what.substring(0,50)+"...":this.state.currentPageDetails.what:"Page Details")),qr.default.createElement("div",{className:"ml-4 mt-2 flex-shrink-0"},r&&r.admin&&qr.default.createElement(qr.default.Fragment,null,qr.default.createElement("a",{onClick:i=>this.handleDeletePage(i,this.state.currentPage),title:"Delete Page",className:"cursor-pointer inline-flex items-center px-4 text-sm font-medium text-slate-500"},qr.default.createElement("br",null),qr.default.createElement(wJ,{className:"h-5 w-5 hover:text-red-500","aria-hidden":"true"})),qr.default.createElement("a",{onClick:i=>this.handleClonePage(i,this.state.currentPage),className:"cursor-pointer inline-flex items-center pr-6 text-sm font-medium text-slate-500",title:"Clone Page"},qr.default.createElement("br",null),qr.default.createElement(W1,{className:"h-5 w-5 hover:text-red-500","aria-hidden":"true"})),qr.default.createElement("a",{href:"https://zapier.com/developer/public-invite/171591/13921d96c8dc31ff4e8ce723dda5b75b/",target:"_new",className:"relative cursor-pointer inline-flex items-center mr-4 rounded-md border border-transparent bg-slate-200 px-4 py-2 text-sm font-medium text-slate-500 shadow-sm hover:bg-slate-300 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"},qr.default.createElement(R8,{className:"h-4 w-4 mr-2","aria-hidden":"true"}),"Connect to Zapier"),qr.default.createElement("a",{href:"#",onClick:i=>{i.preventDefault(),this.openLiveFeed()},target:"_new",className:"hidden relative inline-flex items-center mr-4 items-center rounded-md border border-transparent bg-indigo-600 px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"},qr.default.createElement(Wj,{className:"h-4 w-4 mr-2","aria-hidden":"true"}),"Live Feed"),qr.default.createElement("a",{href:"/builder/"+this.state.currentPage,className:"relative inline-flex items-center rounded-md border border-transparent bg-indigo-600 px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"},qr.default.createElement(S2,{className:"h-4 w-4 mr-2","aria-hidden":"true"}),"Edit"))))),qr.default.createElement("div",{className:"overflow-y-auto flex-1 overflow-hidden",ref:this.detailsRef},this.state.currentPage&&this.state.currentPageDetails&&qr.default.createElement(c9,{key:this.state.currentPage,id:this.state.currentPage,tab:this.state.currentTab,page:this.state.currentPageDetails})))),qr.default.createElement("aside",{className:"hidden sm:block flex-shrink-0"},qr.default.createElement("div",{className:"relative flex h-full w-96 flex-col bg-slate-50"},qr.default.createElement("div",{className:"m-6 block h-full rounded border-gray-200 bg-white text-gray-200 m-6 shadow text-gray-200 bg-white flex flex-col overflow-hidden"},r&&r.id&&qr.default.createElement(qr.default.Fragment,null,this.state.mode==="list"||this.state.currentPage==null?qr.default.createElement(_Re,{pages:this.state.pages,userData:r,currentPage:this.state.currentPage,handleShowPage:this.handleShowPage,showInstantProPagesUpsell:this.showInstantProPagesUpsell}):qr.default.createElement(Am,{showInstantProPagesUpsell:this.showInstantProPagesUpsell,userData:r,page_id:this.state.currentPage,mode:"inline",setMode:i=>{this.setState({mode:i})}})))),qr.default.createElement(QI,{isOpen:this.state.instantProModalOpen,options:this.state.instantProModalOptions,onClose:()=>{this.setState({instantProModalOpen:!1})}})))}};Kt(yz,"contextType",Vr);var f9=Pd(yz);var Ud=ie(Pe());var ns=ie(Pe()),jte=ie(Jp()),tRn=ie(Ex()),rRn=ie(Fw());var xz=class extends ns.Component{constructor(t){super(t)}static get propTypes(){return{page:jte.default.object,mode:jte.default.string}}render(){return ns.default.createElement("div",{className:"w-[1200px] h-[630px] border pt-10 pl-10"},ns.default.createElement("svg",{className:"absolute inset-0 -z-10 h-full w-full stroke-gray-300 [mask-image:radial-gradient(100%_100%_at_top_right,white,transparent)]","aria-hidden":"true"},ns.default.createElement("defs",null,ns.default.createElement("pattern",{id:"0787a7c5-978c-4f66-83c7-11c213f99cb7",width:200,height:200,x:"50%",y:-1,patternUnits:"userSpaceOnUse"},ns.default.createElement("path",{d:"M.5 200V.5H200",fill:"none"}))),ns.default.createElement("rect",{width:"100%",height:"100%",strokeWidth:0,fill:"url(#0787a7c5-978c-4f66-83c7-11c213f99cb7)"})),ns.default.createElement("div",{className:"mx-auto grid grid-cols-12 px-3 pb-0 pt-20"},ns.default.createElement("div",{className:"col-span-6 bg-transparent pt-0 w-full"},ns.default.createElement("div",{className:"mx-auto px-8 w-full"},ns.default.createElement("span",{className:`inline-block text-xs text-black font-bold px-1 py-1 rounded-md uppercase ${this.props.page.cover_spine_color||"bg-yellow-300"} opacity-75`},"EXCLUSIVELY FOR ",this.props.page.who),ns.default.createElement("h1",{className:"font-display text-6xl font-extrabold text-slate-900 mt-2"},this.props.page.what==""?ns.default.createElement("span",{className:"bg-yellow-100 text-black opacity-50"},"Name of Your Lead Magnet Goes Here"):this.props.page.what),ns.default.createElement("p",{className:"mt-4 font-bold text-xl text-gray-700"},"This ",this.props.page.what_type," for"," ",this.props.page.who==""?ns.default.createElement("span",{className:"bg-yellow-100 text-black opacity-50"},"your ideal customer"):this.props.page.who," ","covers"," ",this.props.page.what_get==""?ns.default.createElement("span",{className:"bg-yellow-100 text-black opacity-50"},"what they specifically get inside"):this.props.page.what_get," ","so you can"," ",this.props.page.what_want==""?ns.default.createElement("span",{className:"bg-yellow-100 text-black opacity-50"},"the specific result your ideal customer wants."):this.props.page.what_want),ns.default.createElement("p",{className:"hidden mt-4 text-md text-gray-700"},this.props.page.why==""?ns.default.createElement("span",{className:"bg-yellow-100 text-black opacity-50"},"Establish your credibility for delivering this"," ",this.props.page.what_type," and why your ideal customer should trust you in delivering this information."):this.props.page.why," "))),ns.default.createElement("div",{className:"relative flex items-start col-span-3 row-span-2"},ns.default.createElement("div",{className:"relative z-10 mx-auto flex w-64 rounded-xl shadow-xl rotate-6"},ns.default.createElement(ME,{title:"this.props.page.what",subtitle:this.props.page.who,spineColor:this.props.page.cover_spine_color||"bg-yellow-300",backgroundColor:this.props.page.cover_background_color||"bg-gray-800",backgroundPattern:this.props.page.cover_background_pattern||"",backgroundPatternColor:this.props.page.cover_background_pattern_color||"yellow-500/50",bookType:this.props.page.what_type,preview:!0})))))}};var $s=ie(Pe());var Wqt=e=>{let[t,n]=(0,$s.useState)(null),r=f2();return(0,$s.useEffect)(()=>{e.page&&r.secret&&Zle(e.page.id,r.secret).then(i=>{i.success?n(i.response.data):window.location.href=`/${e.page.public_hash}`})},[e]),$s.default.createElement("div",{className:"mx-auto mt-8 w-[1100px] h-[630px]"},$s.default.createElement("svg",{className:"absolute inset-0 -z-10 h-full w-full stroke-gray-300 [mask-image:radial-gradient(100%_100%_at_top_right,white,transparent)]","aria-hidden":"true"},$s.default.createElement("defs",null,$s.default.createElement("pattern",{id:"0787a7c5-978c-4f66-83c7-11c213f99cb7",width:200,height:200,x:"50%",y:-1,patternUnits:"userSpaceOnUse"},$s.default.createElement("path",{d:"M.5 200V.5H200",fill:"none"}))),$s.default.createElement("rect",{width:"100%",height:"100%",strokeWidth:0,fill:"url(#0787a7c5-978c-4f66-83c7-11c213f99cb7)"})),$s.default.createElement("div",{className:"m-4 px-4 py-6 bg-white border-gray-200 rounded-md"},$s.default.createElement("div",{className:"flex flex-row justify-between"},$s.default.createElement("h3",{className:"text-2xl font-bold text-gray-900"},e.page.what),$s.default.createElement("div",{className:"flex space-x-4"},$s.default.createElement("a",{href:`/${e.page.public_hash}?utm_source=preview`,target:"_blank",className:"text-sm font-medium text-gray-500"},$s.default.createElement(Jb,{className:"h-6 w-6 text-gray-500","aria-hidden":"true"})),$s.default.createElement("a",{href:`/${e.page.public_hash}/content/testing?utm_source=preview`,target:"_blank",className:"text-sm font-medium text-gray-500"},$s.default.createElement(Gb,{className:"h-6 w-6 text-gray-500","aria-hidden":"true"})))),$s.default.createElement(gz,{page:e.page,data:t,snapshot:!0})))},CRe=Wqt;var BRe=ie(SRe());var Xte=ie(ORe()),Pz=ie(ERe()),Az=ie(MRe());var kz=class extends Ud.Component{constructor(t){super(t);let n=!1,r="lander";t.mode=="screenshot"&&(r="screenshot"),t.mode=="snapshot"&&(r="snapshot"),(t.mode=="leadmagnet"||n)&&(r="leadmagnet"),this.state={mode:r,instantModalOpen:!1,instantModalOptions:{success:!0,message:"",button_cta:""}},this.handleSubmit=this.handleSubmit.bind(this),this.generateDataParameters=this.generateDataParameters.bind(this)}generateDataParameters(){let t={};t.timezone=BRe.default.determine().name();let n=Object.fromEntries([...this.props.searchParams.entries()]);t.utm_id=n.utm_id,t.utm_source=n.utm_source;let r=document.referrer;if((t.utm_source==""||t.utm_source==null||t.utm_source==null)&&r!=""&&r!=null&&r!=null){let{hostname:i}=new URL(r);t.utm_source=i}return t.utm_medium=n.utm_medium,t.utm_campaign=n.utm_campaign,t.utm_term=n.utm_term,t.utm_content=n.utm_content,(this.state.mode=="leadmagnet"||this.state.mode=="screenshot"||this.state.mode=="snapshot")&&(t.silent=!0),t}async componentDidMount(){let t=await Fxe(this.props.params.hash,this.generateDataParameters());t.success&&(this.setState({page:t.response.data},()=>{this.state.page.google_partner_id&&(0,Az.install)(this.state.page.google_partner_id),this.state.page.linkedin_partner_id&&Xte.default.init(this.state.page.linkedin_partner_id,"dc",!1),this.state.page.facebook_pixel_id&&(Pz.default.init(this.state.page.facebook_pixel_id,null,{autoConfig:!0,debug:!0}),Pz.default.pageView())}),document.title=t.response.data.what)}async handleSubmit(t){let n=await Ixe(this.props.params.hash,{...t,...this.generateDataParameters()});if(n.success){let r=n.response.data.icp,i=this.state.page.stages.length>0&&this.state.page.stages[0].label!=""&&this.state.page.stages[0].label!=null;(r||!i)&&(this.state.page.linkedin_partner_id&&this.state.page.linkedin_conversion_id&&(console.log("Tracked LinkedIn Conversion Event..."),Xte.default.track(this.state.page.linkedin_conversion_id)),this.state.page.facebook_pixel_id&&(console.log("Tracked Facebook Conversion Event"),Pz.default.track("Lead",{content_name:this.state.page.what})),this.state.page.google_partner_id&&(0,Az.gtag)("event","conversion",{send_to:this.state.page.google_conversion_id}));let o=window.location.hostname;o=="localhost"&&(o="localhost:3000"),this.setState({mode:"leadmagnet"},()=>{let s=Va.get("instant_uuid");s!=null&&s!=""&&window.location.replace(`https://${window.bootstrap.lander_host}/${this.props.params.hash}/content/${s}`)})}else console.log(n),alert("Sorry, we couldn't process your request. Please try again.")}render(){return Ud.default.createElement(Ud.default.Fragment,null,this.state.page&&this.state.mode=="lander"&&Ud.default.createElement(Ud.default.Fragment,null,this.state.page.what_type=="training"&&Ud.default.createElement(wG,{mode:"live",page:this.state.page,onSubmit:this.handleSubmit}),this.state.page.what_type!="training"&&Ud.default.createElement(Mx,{mode:"live",page:this.state.page,onSubmit:this.handleSubmit})),this.state.page&&this.state.mode=="screenshot"&&Ud.default.createElement(xz,{page:this.state.page}),this.state.page&&this.state.mode=="leadmagnet"&&Ud.default.createElement(w4,{mode:"live",page:this.state.page}),this.state.page&&this.state.mode=="snapshot"&&Ud.default.createElement(CRe,{page:this.state.page}))}};Kt(kz,"contextType",Vr);var m9=Pd(kz);var Ca=ie(Pe());var Cm=ie(Pe());var NRe=ie(Pe());function ll({className:e,...t}){return NRe.default.createElement("div",{className:Is("mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",e),...t})}var GRe="/assets/background-call-to-action-NJNFM4WW.digested.jpg";function Cz(){return Cm.default.createElement("section",{id:"get-started-today",className:"relative overflow-hidden bg-blue-600 py-32"},Cm.default.createElement("img",{className:"absolute top-1/2 left-1/2 max-w-none -translate-x-1/2 -translate-y-1/2",src:GRe,alt:"",width:2347,height:1244}),Cm.default.createElement(ll,{className:"relative"},Cm.default.createElement("div",{className:"mx-auto max-w-xl text-center"},Cm.default.createElement("h2",{className:"font-display text-2xl font-bold tracking-tight text-white sm:text-4xl"},"Launch Your Instant Content Marketing Funnel"),Cm.default.createElement("p",{className:"mt-4 text-lg tracking-tight text-white"},"Post Content, Acquire Leads, Convert to Revenue with a High Converting Instant Content Marketing Funnel."),Cm.default.createElement("p",{className:"mt-10 text-sm tracking-tight text-white"},"Launch in minutes. Integrate with your exisitng MarTech stack."),Cm.default.createElement(ks,{href:"/bootstrap",color:"white",className:"mt-10"},"Start Building"))))}var $c=ie(Pe());var FRe="/assets/background-faqs-KXJOG2UV.digested.jpg";var FRn=ie(MP()),Yqt=[[{question:"Why do Instant Landing Pages perform well?",answer:"Instant Landing Pages ensure you have minimal design and essential copy to drive high conversions. The minimal design ensures visitors focus on your copy. Instant's Builder asks you the key questions so you have compelling copy."},{question:"Will Instant integrate with my existing MarTech?",answer:"Absolutely, you can pipe Instant Leads to any of your MarTech platforms through our Zapier integration. You can also use follow up events to customize your visitor journey."},{question:"Can I test multiple variations of a Landing Page?",answer:"Yes, you can create multiple Instant Pages to test the Hook, Story and Offer that best resonates with your audience."}],[{question:"What is Marketing Math?",answer:"Marketing Math ensures the success of your lead generation campaigns. Instant automatically does the math for you to help identiy how much more traffic you need to generate to get quality outcomes."},{question:"Can I do Lead Scoring with Instant?",answer:"Lead Scoring is so 1990s. Instant automatically asks your Leads to self-identify their segment so that you can identify Ideal Customer Profile (ICP) Leads and treat them with higher priority."},{question:"How long does it take to launch an Instant Page?",answer:"The fastest world record for building, publishing and generating traffic for an Instant Landing Page (as of this writing) is 3 minutes and 43 seconds."}],[{question:"Does this work with Paid traffic?",answer:"Absolutely. Instant has built in conversion tracking that will fire off your Facebook or LinkedIn conversion events so that you can full loop attribution. You can even set up lead segments so your conversion tracking only fires for ICP leads."},{question:"Can I do Email Nurture Sequences with Instant?",answer:"Yes! You can use your existing Email Tool to nurture Instant Leads. You can set this up easily using our Zapier integration to nurture new leads and nurture leads as they activate."},{question:"Why don't you offer a free trial?",answer:"You can build your Instant Page for FREE. But to publish, you'll have to set up a paid account. We do this to prevent spam and abuse of our service."}]];function Sz(){return $c.default.createElement("section",{id:"faq","aria-labelledby":"faq-title",className:"relative overflow-hidden bg-slate-50 py-20 sm:py-32"},$c.default.createElement("img",{className:"absolute top-0 left-1/2 max-w-none translate-x-[-30%] -translate-y-1/4",src:FRe,alt:"",width:1558,height:946}),$c.default.createElement(ll,{className:"relative"},$c.default.createElement("div",{className:"mx-auto max-w-2xl lg:mx-0"},$c.default.createElement("h2",{id:"faq-title",className:"font-display text-3xl tracking-tight font-bold text-slate-900 sm:text-4xl"},"Frequent Questions"),$c.default.createElement("p",{className:"mt-4 text-lg tracking-tight text-slate-700 hidden"},"If you can\u2019t find what you\u2019re looking for, email our support team and if you\u2019re lucky someone will get back to you.")),$c.default.createElement("ul",{role:"list",className:"mx-auto mt-16 grid max-w-2xl grid-cols-1 gap-8 lg:max-w-none lg:grid-cols-3"},Yqt.map((e,t)=>$c.default.createElement("li",{key:t},$c.default.createElement("ul",{role:"list",className:"flex flex-col gap-y-8"},e.map((n,r)=>$c.default.createElement("li",{key:r},$c.default.createElement("h3",{className:"font-display text-md font-bold leading-7 text-slate-900"},n.question),$c.default.createElement("p",{className:"mt-2 text-md text-slate-700"},n.answer)))))))))}var _u=ie(Pe());var Oz=ie(Pe());function Ez(e){return Oz.default.createElement("div",{className:"flex gap-4"},Oz.default.createElement("img",{className:"h-8 w-8 rounded-full border-2 border-black",src:window.bootstrap.image_url.user_avatar,alt:""}),Oz.default.createElement("h3",{className:"text-2xl font-bold text-gray-900"},"Instant"))}var IRe=ie(Pe());function Uy({href:e,children:t,target:n="_self"}){return IRe.default.createElement("a",{href:e,className:"inline-block rounded-lg py-1 px-2 text-sm text-slate-700 hover:bg-slate-100 hover:text-slate-900",target:n},t)}function Mz(){return _u.default.createElement("footer",{className:"bg-slate-50"},_u.default.createElement(ll,null,_u.default.createElement("div",{className:"py-16 hidden"},_u.default.createElement(Ez,{className:"mx-auto h-10 w-auto"}),_u.default.createElement("nav",{className:"mt-10 text-sm","aria-label":"quick links"},_u.default.createElement("div",{className:"-my-1 flex justify-center gap-x-6"},_u.default.createElement(Uy,{href:"#features"},"Features"),_u.default.createElement(Uy,{href:"#pricing"},"Pricing")))),_u.default.createElement("div",{className:"flex flex-col items-center border-t border-slate-400/10 py-10 sm:flex-row-reverse sm:justify-between"},_u.default.createElement("p",{className:"mt-6 text-sm text-slate-500 sm:mt-0"},"Here are our ",_u.default.createElement("a",{href:"https://tkkader.com/terms",className:"text-blue-400",target:"_new"},"Terms of Service")," and ",_u.default.createElement("a",{href:"https://tkkader.com/privacy",className:"text-blue-400",target:"_new"},"Privacy Policy"),"."),_u.default.createElement("p",{className:"mt-6 text-sm text-slate-500 sm:mt-0"}),_u.default.createElement("p",{className:"mt-6 text-sm text-slate-500 sm:mt-0"},"Copyright \xA9 ",new Date().getFullYear()," Ideal Customer Profile, LLC. All rights reserved."))))}var Ji=ie(Pe()),qte=ie(Pe());function zRe({href:e,children:t}){return Ji.default.createElement(Uy,{href:e,className:"block w-full p-2"},t)}function Zqt({open:e}){return Ji.default.createElement("svg",{"aria-hidden":"true",className:"h-3.5 w-3.5 overflow-visible stroke-slate-700",fill:"none",strokeWidth:2,strokeLinecap:"round"},Ji.default.createElement("path",{d:"M0 1H14M0 7H14M0 13H14",className:Is("origin-center transition",e&&"scale-90 opacity-0")}),Ji.default.createElement("path",{d:"M2 2L12 12M12 2L2 12",className:Is("origin-center transition",!e&&"scale-90 opacity-0")}))}function Uqt(){return Ji.default.createElement(O8,null,Ji.default.createElement(O8.Button,{className:"relative z-10 flex h-8 w-8 items-center justify-center [&:not(:focus-visible)]:focus:outline-none","aria-label":"Toggle Navigation"},({open:e})=>Ji.default.createElement(Zqt,{open:e})),Ji.default.createElement(Fi.Root,null,Ji.default.createElement(Fi.Child,{as:qte.Fragment,enter:"duration-150 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"duration-150 ease-in",leaveFrom:"opacity-100",leaveTo:"opacity-0"},Ji.default.createElement(O8.Overlay,{className:"fixed inset-0 bg-slate-300/50"})),Ji.default.createElement(Fi.Child,{as:qte.Fragment,enter:"duration-150 ease-out",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"duration-100 ease-in",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95"},Ji.default.createElement(O8.Panel,{as:"div",className:"absolute inset-x-0 top-full mt-4 flex origin-top flex-col rounded-2xl bg-white p-4 text-lg tracking-tight text-slate-900 shadow-xl ring-1 ring-slate-900/5"},Ji.default.createElement(zRe,{href:"https://instant.academy",target:"_blank"},"GTM Academy"),Ji.default.createElement("hr",{className:"m-2 border-slate-300/40"}),Ji.default.createElement(zRe,{href:"/login"},"Log in")))))}function Bz(){return Ji.default.createElement("header",{className:"py-10"},Ji.default.createElement(ll,null,Ji.default.createElement("nav",{className:"relative z-50 flex justify-between"},Ji.default.createElement("div",{className:"flex items-center md:gap-x-12"},Ji.default.createElement("a",{href:"#","aria-label":"Home"},Ji.default.createElement(Ez,{className:"h-10 w-auto"})),Ji.default.createElement("div",{className:"hidden md:flex md:gap-x-6 md:items-center font-semibold"})),Ji.default.createElement("div",{className:"flex items-center gap-x-5 md:gap-x-8"},Ji.default.createElement("div",{className:"hidden md:block"},Ji.default.createElement(Uy,{href:"https://instant.academy",target:"_blank"},"Academy"),Ji.default.createElement(Uy,{href:"mailto:team@instantlanding.page?subject=Hey Team Instant..."},"Contact")),Ji.default.createElement(ks,{href:"/bootstrap",color:"blue"},Ji.default.createElement("span",null,"Start Building")),Ji.default.createElement("div",{className:"-mr-1 md:hidden"},Ji.default.createElement(Uqt,null))))))}var rr=ie(Pe());var TRe="/assets/laravel-PXXNC7WS.digested.svg";var DRe="/assets/mirage-DDJOYTQE.digested.svg";var RRe="/assets/statamic-NWS6X67Z.digested.svg";var LRe="/assets/statickit-26JXPFFF.digested.svg";var VRe="/assets/transistor-OJ2ONQZ2.digested.svg";var JRe="/assets/tuple-OTVQVYGR.digested.svg";var HRe=ie(NZ());var jRe="/assets/instant-hero-VUCJWYS5.digested.png";var WRe=ie($0());function XRe(){let[e,t]=(0,rr.useState)(!1),[n,r]=(0,rr.useState)(!1),[i,o]=(0,rr.useState)("https://calendly.com/d/2mm-kc9-wkq/schedule-an-instant-demo"),s=(l,u=null)=>{Fn.track("Talk to Sales",{event:l,data:u?.data?.payload?u.data.payload:null})};q1({onProfilePageViewed:()=>s("Profile Page Viewed"),onDateAndTimeSelected:()=>s("Date and Time Selected"),onEventTypeViewed:()=>s("Event Type Viewed"),onEventScheduled:l=>s("Event Scheduled",l)});let a=[{name:"Create a Lead Magnet Landing Page",description:"Build a high converting Landing Page that you can use to generate leads by just answering a few questions. These landing pages convert 10% higher than making them yourself and accelerates lead to opportunity and revenue.",href:"#",icon:qj},{name:"Post Content with Content AI",description:"Generate leads by promoting your Instant Landing Page through social media content and ADs that documents your journey and inspires your prospects. Instant Content helps you write content in just a few clicks.",href:"#",icon:S2},{name:"Convert Leads to Revenue",description:"Turn your warm leads into revenue by serving them your PDF or Video content. Allow them to consume it, learn more, build trust, and take the next step. Instant even helps you write personalized follow up emails to engage your leads.",href:"#",icon:Ij}];return(0,rr.useEffect)(()=>{e&&Fn.track("Viewed Sales Video")},[e]),rr.default.createElement(ll,{className:"pt-10 pb-16 text-center lg:pt-20"},rr.default.createElement("h1",{className:"mx-auto max-w-4xl font-display text-5xl font-bold tracking-tight text-slate-900 sm:text-7xl"},"Generate Leads & Drive Revenue Growth with a"," ",rr.default.createElement("span",{className:"relative whitespace-nowrap text-blue-600"},rr.default.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 418 42",className:"absolute top-2/3 left-0 h-[0.58em] w-full fill-blue-300/70",preserveAspectRatio:"none"},rr.default.createElement("path",{d:"M203.371.916c-26.013-2.078-76.686 1.963-124.73 9.946L67.3 12.749C35.421 18.062 18.2 21.766 6.004 25.934 1.244 27.561.828 27.778.874 28.61c.07 1.214.828 1.121 9.595-1.176 9.072-2.377 17.15-3.92 39.246-7.496C123.565 7.986 157.869 4.492 195.942 5.046c7.461.108 19.25 1.696 19.17 2.582-.107 1.183-7.874 4.31-25.75 10.366-21.992 7.45-35.43 12.534-36.701 13.884-2.173 2.308-.202 4.407 4.442 4.734 2.654.187 3.263.157 15.593-.78 35.401-2.686 57.944-3.488 88.365-3.143 46.327.526 75.721 2.23 130.788 7.584 19.787 1.924 20.814 1.98 24.557 1.332l.066-.011c1.201-.203 1.53-1.825.399-2.335-2.911-1.31-4.893-1.604-22.048-3.261-57.509-5.556-87.871-7.36-132.059-7.842-23.239-.254-33.617-.116-50.627.674-11.629.54-42.371 2.494-46.696 2.967-2.359.259 8.133-3.625 26.504-9.81 23.239-7.825 27.934-10.149 28.304-14.005.417-4.348-3.529-6-16.878-7.066Z"})),rr.default.createElement("span",{className:"relative"},"Scalable"))," ","Content Marketing Machine"),rr.default.createElement("p",{className:"mx-auto mt-6 max-w-2xl text-xl tracking-tight text-slate-700"},"Instantly write content, generate leads, build authority, and drive revenue growth for your business with a Scalable Content Marketing Machine."),rr.default.createElement("div",{className:"mt-10 flex justify-center gap-x-6"},rr.default.createElement(ks,{href:"/bootstrap",className:"text-lg"},"Start Building \u2192")),rr.default.createElement(rr.default.Fragment,null,rr.default.createElement("div",{className:"relative overflow-hidden pt-8 lg:pt-12"},rr.default.createElement("div",{className:"mx-auto max-w-7xl px-6 lg:px-8"},e?rr.default.createElement("div",{className:"rounded-xl ring-4 ring-gray-900/10 p-4 mb-2"},rr.default.createElement("div",{className:"player-wrapper"},rr.default.createElement(WRe.default,{url:"https://tkkader.wistia.com/medias/25qnygl4zg",className:"react-player",width:"100%",height:"100%",playing:!0,controls:!0}))):rr.default.createElement("div",{className:"cursor-pointer"},rr.default.createElement("img",{className:"mb-[-12%]",src:jRe,alt:""}),rr.default.createElement("div",{className:"relative","aria-hidden":"true"},rr.default.createElement("div",{className:"absolute -inset-x-20 bottom-0 bg-gradient-to-t from-white pt-[7%]"})),rr.default.createElement("div",{className:"absolute inset-0 flex items-center justify-center z-10 cursor-pointer"},rr.default.createElement(HRe.default,{animationData:jwe,className:"flex justify-center items-center",loop:!0,onClick:()=>{t(!0)}})))))),rr.default.createElement("div",{className:"mt-36 lg:mt-44 hidden"},rr.default.createElement("p",{className:"font-display text-base text-slate-900"},"Trusted by these six companies so far"),rr.default.createElement("ul",{role:"list",className:"mt-8 flex items-center justify-center gap-x-8 sm:flex-col sm:gap-x-0 sm:gap-y-10 xl:flex-row xl:gap-x-12 xl:gap-y-0"},[[{name:"Transistor",logo:VRe},{name:"Tuple",logo:JRe},{name:"StaticKit",logo:LRe}],[{name:"Mirage",logo:DRe},{name:"Laravel",logo:TRe},{name:"Statamic",logo:RRe}]].map((l,u)=>rr.default.createElement("li",{key:u},rr.default.createElement("ul",{role:"list",className:"flex flex-col items-center gap-y-8 sm:flex-row sm:gap-x-12 sm:gap-y-0"},l.map(c=>rr.default.createElement("li",{key:c.name,className:"flex"},rr.default.createElement("img",{src:c.logo,alt:c.name})))))))),rr.default.createElement("div",{className:"mx-auto mt-20 mb-10 max-w-2xl lg:max-w-none text-left",id:"product"},rr.default.createElement("dl",{className:"grid max-w-xl grid-cols-1 gap-x-8 gap-y-10 lg:max-w-none lg:grid-cols-3 lg:gap-y-16"},a.map(l=>rr.default.createElement("div",{key:l.name,className:"relative pl-16"},rr.default.createElement("dt",{className:"text-base font-semibold leading-7 text-gray-900"},rr.default.createElement("div",{className:"absolute left-0 top-0 flex h-10 w-10 items-center justify-center rounded-lg bg-indigo-600"},rr.default.createElement(l.icon,{"aria-hidden":"true",className:"h-6 w-6 text-white"})),l.name),rr.default.createElement("dd",{className:"mt-2 text-base leading-7 text-gray-600"},l.description))))),rr.default.createElement(Wf,{url:i,open:n,rootElement:document.getElementById("app")}))}var hi=ie(Pe());function s$t({className:e}){return hi.default.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 281 40",className:e,preserveAspectRatio:"none"},hi.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M240.172 22.994c-8.007 1.246-15.477 2.23-31.26 4.114-18.506 2.21-26.323 2.977-34.487 3.386-2.971.149-3.727.324-6.566 1.523-15.124 6.388-43.775 9.404-69.425 7.31-26.207-2.14-50.986-7.103-78-15.624C10.912 20.7.988 16.143.734 14.657c-.066-.381.043-.344 1.324.456 10.423 6.506 49.649 16.322 77.8 19.468 23.708 2.65 38.249 2.95 55.821 1.156 9.407-.962 24.451-3.773 25.101-4.692.074-.104.053-.155-.058-.135-1.062.195-13.863-.271-18.848-.687-16.681-1.389-28.722-4.345-38.142-9.364-15.294-8.15-7.298-19.232 14.802-20.514 16.095-.934 32.793 1.517 47.423 6.96 13.524 5.033 17.942 12.326 11.463 18.922l-.859.874.697-.006c2.681-.026 15.304-1.302 29.208-2.953 25.845-3.07 35.659-4.519 54.027-7.978 9.863-1.858 11.021-2.048 13.055-2.145a61.901 61.901 0 0 0 4.506-.417c1.891-.259 2.151-.267 1.543-.047-.402.145-2.33.913-4.285 1.707-4.635 1.882-5.202 2.07-8.736 2.903-3.414.805-19.773 3.797-26.404 4.829Zm40.321-9.93c.1-.066.231-.085.29-.041.059.043-.024.096-.183.119-.177.024-.219-.007-.107-.079ZM172.299 26.22c9.364-6.058 5.161-12.039-12.304-17.51-11.656-3.653-23.145-5.47-35.243-5.576-22.552-.198-33.577 7.462-21.321 14.814 12.012 7.205 32.994 10.557 61.531 9.831 4.563-.116 5.372-.288 7.337-1.559Z"}))}function a$t({className:e}){return hi.default.createElement("svg",{"aria-hidden":"true",className:Is("h-6 w-6 flex-none fill-current stroke-current",e)},hi.default.createElement("path",{d:"M9.307 12.248a.75.75 0 1 0-1.114 1.004l1.114-1.004ZM11 15.25l-.557.502a.75.75 0 0 0 1.15-.043L11 15.25Zm4.844-5.041a.75.75 0 0 0-1.188-.918l1.188.918Zm-7.651 3.043 2.25 2.5 1.114-1.004-2.25-2.5-1.114 1.004Zm3.4 2.457 4.25-5.5-1.187-.918-4.25 5.5 1.188.918Z",strokeWidth:0}),hi.default.createElement("circle",{cx:12,cy:12,r:8.25,fill:"none",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))}function $te({name:e,price:t,description:n,href:r,features:i,featured:o=!1,cta:s="Get Started",calendly_url:a=null}){let[l,u]=(0,hi.useState)(!1),c=(f,d=null)=>{Fn.track("Schedule Instant+ Demo",{event:f,data:d?.data?.payload?d.data.payload:null})};return q1({onProfilePageViewed:()=>c("Profile Page Viewed"),onDateAndTimeSelected:()=>c("Date and Time Selected"),onEventTypeViewed:()=>c("Event Type Viewed"),onEventScheduled:f=>c("Event Scheduled",f)}),hi.default.createElement("section",{id:"pricing",className:Is("flex flex-col rounded-3xl px-6 sm:px-8",o?"order-first bg-blue-600 py-8 lg:order-none":"lg:py-8")},hi.default.createElement("h3",{className:"mt-5 font-display text-lg text-white"},e),hi.default.createElement("p",{className:Is("mt-2 text-base",o?"text-white":"text-slate-400")},n),hi.default.createElement("p",{className:"order-first font-display text-5xl font-light text-white"},t,hi.default.createElement("span",{className:"text-sm"},"/mo")),hi.default.createElement("ul",{role:"list",className:Is("order-last mt-10 flex flex-col gap-y-3 text-sm",o?"text-white":"text-slate-200")},i.map(f=>hi.default.createElement("li",{key:f,className:"flex"},hi.default.createElement(a$t,{className:o?"text-white":"text-slate-400"}),hi.default.createElement("span",{className:"ml-4"},f)))),hi.default.createElement(ks,{href:r,variant:o?"solid":"outline",color:"white",className:"mt-8","aria-label":`Get started with the ${e} plan for ${t}`,onClick:f=>{console.log(e,"clicked"),Fn.track("Pricing Plan Clicked",{plan:e}),a!=null&&(f.preventDefault(),u(!0))}},s),a&&hi.default.createElement(Wf,{url:a,open:l,rootElement:document.getElementById("app"),onModalClose:()=>u(!1)}))}function Nz(e){let[t,n]=(0,hi.useState)("starter");return(0,hi.useEffect)(()=>{e.featuredPlan&&n(e.featuredPlan)},[e.featuredPlan]),hi.default.createElement("section",{id:"pricing","aria-label":"Pricing",className:"bg-slate-900 py-20 sm:py-32"},hi.default.createElement(ll,null,hi.default.createElement("div",{className:"md:text-center"},hi.default.createElement("h2",{className:"font-display text-3xl tracking-tight text-white sm:text-4xl font-bold"},hi.default.createElement("span",{className:"relative whitespace-nowrap"},hi.default.createElement(s$t,{className:"absolute top-1/2 left-0 h-[1em] w-full fill-blue-400"}),hi.default.createElement("span",{className:"relative"},"Instant pricing,"))," ","instant results."),hi.default.createElement("p",{className:"mt-4 text-lg text-slate-400"},"Instant Pays For Itself With the First Customer You Acquire")),hi.default.createElement("div",{className:"-mx-4 mt-16 grid max-w-2xl grid-cols-1 gap-y-10 sm:mx-auto lg:-mx-8 lg:max-w-none lg:grid-cols-3 xl:mx-0 xl:gap-x-8"},hi.default.createElement($te,{featured:t==="starter",name:"Starter",price:"$49",description:"Get your first Instant Content Marketing Funnel up and running.",href:"/bootstrap",features:["Build your first Instant Funnel","Embed a PDF or Video Lead Magnet","Custom Call To Action to drive next steps","Super Trackable URLs for Attribution","Real-Time lead analytics","Zapier integration to your MarTech stack","Promote Every Day on Social Media with \u26A1\uFE0F AI Content Co-Pilot to generate leads"]}),hi.default.createElement($te,{featured:t==="pro",name:"Pro",price:"$99",description:"Scale your Content Marketing with multiple funnels and Instant Optimization.",href:"/bootstrap",features:["Includes all Starter features","Build Up to 6 Instant Funnels for different segments of the market","Offer a variety of PDFs, Checklists, and Video Lead Magnets","\u26A1\uFE0F Email to send AI-generated personalized emails to your leads to drive conversions","\u26A1\uFE0F AI Optimization Recommendations to consistently improve conversion rates"]}),hi.default.createElement($te,{featured:t==="team",name:"Team",price:"$299",description:"Mobilize your entire company to promote content online and generate leads.",href:"/bootstrap",features:["Includes all Pro features","Invite Team Members (20 seats included)","Mobilize your team to use \u26A1\uFE0F AI Content Co-Pilot to post content & drive leads"],cta:"Talk to Sales",calendly_url:"https://calendly.com/d/2mm-kc9-wkq/talk-to-instant-sales"}))))}var xo=ie(Pe()),Gz=ie(Pe());var qRe="/assets/background-features-L55JVSLL.digested.jpg";var $Re="/assets/instant-builder-6BAKPTOO.digested.png";var KRe="/assets/instant-trackable-url-4S6GBREQ.digested.png";var YRe="/assets/instant-analytics-OSIHP624.digested.png";var ZRe="/assets/instant-zapier-X7EYEMUF.digested.png";var URe=[{title:"Instant AI Lead Funnel Builder",description:"Instantly build a high converting landing page and drive acquire leads with AI-Powered Content Generation.",image:$Re},{title:"Super Trackable URLs",description:"Use super trackable URLs to track attribution across key channels where you promote your lead magnet.",image:KRe},{title:"Actionable Analytics",description:"Track analytics across Traffic, Conversion and Activation to understand exactly how to 10x your lead generation efforts and your growth.",image:YRe},{title:"Zapier Integration",description:"Easily integrate into your existing MarTech stack including Hubspot and Marketo through our versatile Zapier integration.",image:ZRe}];function Fz(){let[e,t]=(0,Gz.useState)("horizontal");return(0,Gz.useEffect)(()=>{let n=window.matchMedia("(min-width: 1024px)");function r({matches:i}){t(i?"vertical":"horizontal")}return r(n),n.addEventListener("change",r),()=>{n.removeEventListener("change",r)}},[]),xo.default.createElement("section",{id:"features","aria-label":"Features for running your books",className:"relative overflow-hidden bg-slate-900 pt-20 pb-28 sm:py-32"},xo.default.createElement("img",{className:"hidden absolute top-1/2 left-1/2 max-w-none translate-x-[-44%] translate-y-[-42%]",src:qRe,alt:"",width:2245,height:1636}),xo.default.createElement(ll,{className:"relative"},xo.default.createElement("div",{className:"max-w-2xl md:mx-auto md:text-center xl:max-w-none"},xo.default.createElement("h2",{className:"font-display text-3xl tracking-tight font-bold text-white sm:text-4xl md:text-5xl"},"Generate Quality Leads & Pipeline"),xo.default.createElement("p",{className:"mt-6 text-lg tracking-tight text-blue-100 leading-24"},"Quickly Spin up High Converting Content Marketing Experiences with Instant"),xo.default.createElement("div",{className:"mt-10 flex justify-center gap-x-6"},xo.default.createElement(ks,{href:"/bootstrap",color:"blue"},"Start Building"))),xo.default.createElement(wd.Group,{as:"div",className:"mt-16 grid grid-cols-1 items-center gap-y-2 pt-10 sm:gap-y-6 md:mt-20 lg:grid-cols-12 lg:pt-0",vertical:e==="vertical"},({selectedIndex:n})=>xo.default.createElement(xo.default.Fragment,null,xo.default.createElement("div",{className:"-mx-4 flex overflow-x-auto pb-4 sm:mx-0 sm:overflow-visible sm:pb-0 lg:col-span-5"},xo.default.createElement(wd.List,{className:"relative z-10 flex gap-x-4 whitespace-nowrap px-4 sm:mx-auto sm:px-0 lg:mx-0 lg:block lg:gap-x-0 lg:gap-y-1 lg:whitespace-normal"},URe.map((r,i)=>xo.default.createElement("div",{key:r.title,className:Is("group relative rounded-full py-1 px-4 lg:rounded-r-none lg:rounded-l-xl lg:p-6",n===i?"bg-white lg:bg-white/10 lg:ring-1 lg:ring-inset lg:ring-white/10":"hover:bg-white/10 lg:hover:bg-white/5")},xo.default.createElement("h3",null,xo.default.createElement(wd,{className:Is("font-display text-lg [&:not(:focus-visible)]:focus:outline-none",n===i?"text-blue-600 lg:text-white":"text-blue-100 hover:text-white lg:text-white")},xo.default.createElement("span",{className:"absolute inset-0 rounded-full lg:rounded-r-none lg:rounded-l-xl"}),xo.default.createElement("strong",null,r.title))),xo.default.createElement("p",{className:Is("mt-2 hidden text-sm lg:block",n===i?"text-white":"text-blue-100 group-hover:text-white")},r.description))))),xo.default.createElement(wd.Panels,{className:"lg:col-span-7"},URe.map(r=>xo.default.createElement(wd.Panel,{key:r.title,unmount:!1},xo.default.createElement("div",{className:"relative sm:px-6 lg:hidden"},xo.default.createElement("div",{className:"absolute -inset-x-4 top-[-6.5rem] bottom-[-4.25rem] bg-white/10 ring-1 ring-inset ring-white/10 sm:inset-x-0 sm:rounded-t-xl"}),xo.default.createElement("p",{className:"relative mx-auto max-w-2xl text-base text-white sm:text-center"},r.description)),xo.default.createElement("div",{className:"mt-10 w-sm overflow-hidden rounded-xl bg-slate-50 shadow-xl shadow-blue-900/20 sm:w-auto lg:mt-0 lg:w-[67.8125rem]"},xo.default.createElement("img",{className:"w-full",src:r.image,alt:"",priority:"true",sizes:"(min-width: 1024px) 67.8125rem, (min-width: 640px) 100vw, 45rem"})))))))))}var On=ie(Pe()),nLe=ie(Pe());var QRe="/assets/instant-analytics-activation-FOBPMLIM.digested.png";var eLe="/assets/instant-analytics-conversion-B7E2YZNA.digested.png";var tLe="/assets/instant-analytics-traffic-EZDYCPTB.digested.png";var Kte=[{name:"Traffic",summary:"Super Trackable URLs easily help track where your landing page traffic is coming from.",description:"We talked about reporting in the section above but we needed three items here, so mentioning it one more time for posterity.",image:tLe,icon:function(){let t=(0,nLe.useId)();return On.default.createElement(On.default.Fragment,null,On.default.createElement("defs",null,On.default.createElement("linearGradient",{id:t,x1:"11.5",y1:18,x2:36,y2:"15.5",gradientUnits:"userSpaceOnUse"},On.default.createElement("stop",{offset:".194",stopColor:"#fff"}),On.default.createElement("stop",{offset:1,stopColor:"#6692F1"}))),On.default.createElement("path",{d:"m30 15-4 5-4-11-4 18-4-11-4 7-4-5",stroke:`url(#${t})`,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}))}},{name:"Conversion",summary:"Conversion tracking by Traffic Source helps you double down on your best channel.",description:"We don\u2019t offer this as part of our software but that statement is inarguably true. Accurate inventory tracking would help you for sure.",image:eLe,icon:function(){return On.default.createElement(On.default.Fragment,null,On.default.createElement("path",{opacity:".5",d:"M8 17a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-2Z",fill:"#fff"}),On.default.createElement("path",{opacity:".3",d:"M8 24a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-2Z",fill:"#fff"}),On.default.createElement("path",{d:"M8 10a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-2Z",fill:"#fff"}))}},{name:"Activation",summary:"Instant activates your leads by presenting a clear call to action so they engage with your product or sales team.",description:"This also isn\u2019t actually a feature, it\u2019s just some friendly advice. We definitely recommend that you do this, you\u2019ll feel really organized and professional.",image:QRe,icon:function(){return On.default.createElement(On.default.Fragment,null,On.default.createElement("path",{opacity:".5",d:"M25.778 25.778c.39.39 1.027.393 1.384-.028A11.952 11.952 0 0 0 30 18c0-6.627-5.373-12-12-12S6 11.373 6 18c0 2.954 1.067 5.659 2.838 7.75.357.421.993.419 1.384.028.39-.39.386-1.02.036-1.448A9.959 9.959 0 0 1 8 18c0-5.523 4.477-10 10-10s10 4.477 10 10a9.959 9.959 0 0 1-2.258 6.33c-.35.427-.354 1.058.036 1.448Z",fill:"#fff"}),On.default.createElement("path",{d:"M12 28.395V28a6 6 0 0 1 12 0v.395A11.945 11.945 0 0 1 18 30c-2.186 0-4.235-.584-6-1.605ZM21 16.5c0-1.933-.5-3.5-3-3.5s-3 1.567-3 3.5 1.343 3.5 3 3.5 3-1.567 3-3.5Z",fill:"#fff"}))}}];function rLe({feature:e,isActive:t,className:n,...r}){return On.default.createElement("div",{className:Is(n,!t&&"opacity-75 hover:opacity-100"),...r},On.default.createElement("div",{className:Is("w-9 rounded-lg",t?"bg-blue-600":"bg-slate-500")},On.default.createElement("svg",{"aria-hidden":"true",className:"h-9 w-9",fill:"none"},On.default.createElement(e.icon,null))),On.default.createElement("h3",{className:Is("mt-6 text-lg font-bold",t?"text-blue-900":"text-slate-900")},e.name),On.default.createElement("p",{className:"mt-2 font-display text-xl text-slate-900"},e.summary),On.default.createElement("p",{className:"mt-4 text-sm text-slate-600 hidden"},e.description))}function g$t(){return On.default.createElement("div",{className:"-mx-4 mt-20 flex flex-col gap-y-10 overflow-hidden px-4 sm:-mx-6 sm:px-6 lg:hidden"},Kte.map(e=>On.default.createElement("div",{key:e.name},On.default.createElement(rLe,{feature:e,className:"mx-auto max-w-2xl",isActive:!0}),On.default.createElement("div",{className:"relative mt-10 pb-10"},On.default.createElement("div",{className:"absolute -inset-x-4 bottom-0 top-8 bg-white sm:-inset-x-6"}),On.default.createElement("div",{className:"relative mx-auto w-full overflow-hidden rounded-xl bg-white shadow-lg shadow-slate-900/5 ring-1 ring-slate-500/10"},On.default.createElement("img",{className:"w-full",src:e.image,alt:"",sizes:"52.75rem"}))))))}function v$t(){return On.default.createElement(wd.Group,{as:"div",className:"hidden lg:mt-20 lg:block"},({selectedIndex:e})=>On.default.createElement(On.default.Fragment,null,On.default.createElement(wd.List,{className:"grid grid-cols-3 gap-x-8"},Kte.map((t,n)=>On.default.createElement(rLe,{key:t.name,feature:{...t,name:On.default.createElement(wd,{className:"[&:not(:focus-visible)]:focus:outline-none"},On.default.createElement("span",{className:"absolute inset-0"}),t.name)},isActive:n===e,className:"relative"}))),On.default.createElement(wd.Panels,{className:"relative mt-20 overflow-hidden bg-zinc-50 px-14 py-16 xl:px-16"},On.default.createElement("div",{className:"-mx-5 flex"},Kte.map((t,n)=>On.default.createElement(wd.Panel,{static:!0,key:t.name,className:Is("px-5 transition duration-500 ease-in-out [&:not(:focus-visible)]:focus:outline-none",n!==e&&"opacity-60"),style:{transform:`translateX(-${e*100}%)`},"aria-hidden":n!==e},On.default.createElement("div",{className:"w-[52.75rem] overflow-hidden rounded-xl bg-white shadow-lg shadow-slate-900/5 ring-1 ring-slate-500/10"},On.default.createElement("img",{className:"w-full",src:t.image,alt:"",sizes:"52.75rem"}))))),On.default.createElement("div",{className:"pointer-events-none absolute inset-0 rounded-xl ring-1 ring-inset ring-slate-900/10"}))))}function Iz(){return On.default.createElement("section",{id:"secondary-features","aria-label":"Features for simplifying everyday business tasks",className:"pt-20 pb-14 sm:pb-20 sm:pt-32 lg:pb-32"},On.default.createElement(ll,null,On.default.createElement("div",{className:"mx-auto max-w-2xl md:text-center  md:mx-auto md:text-center xl:max-w-none"},On.default.createElement("h2",{className:"font-display text-3xl font-bold tracking-tight text-slate-900 sm:text-4xl md:text-5xl"},"Simple Yet Sophisticated Analytics"),On.default.createElement("p",{className:"mt-4 text-lg font-bold tracking-tight text-slate-700 max-w-2xl mx-auto"},"Instant breaks down your Content Funnel Analytics to the 3 most critical components and does the math for you so you can scale.")),On.default.createElement(g$t,null),On.default.createElement(v$t,null),On.default.createElement("div",{className:"mt-20 flex justify-center gap-x-6"},On.default.createElement(ks,{href:"/bootstrap",color:"blue"},"Start Building \u2192"))))}var y$t=ie(Pe());var mi=ie(Pe()),x$t=[{label:"Founded",value:"2023"},{label:"Customers",value:"80+"},{label:"Leads Generated",value:"15K+"}];function iLe(){return mi.default.createElement("div",{className:"bg-white py-24 sm:py-32",id:"mission"},mi.default.createElement("div",{className:"mx-auto max-w-7xl px-6 lg:px-8"},mi.default.createElement("div",{className:"mx-auto grid max-w-2xl grid-cols-1 items-start gap-x-8 gap-y-16 sm:gap-y-24 lg:mx-0 lg:max-w-none lg:grid-cols-2"},mi.default.createElement("div",{className:"lg:pr-4"},mi.default.createElement("div",{className:"relative overflow-hidden rounded-3xl bg-gray-900 px-6 pb-9 pt-64 shadow-2xl sm:px-12 lg:max-w-lg lg:px-8 lg:pb-8 xl:px-10 xl:pb-10"},mi.default.createElement("img",{className:"absolute inset-0 h-full w-full object-cover brightness-125 saturate-0",src:"https://images.unsplash.com/photo-1630569267625-157f8f9d1a7e?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2669&q=80",alt:""}),mi.default.createElement("div",{className:"absolute inset-0 bg-gray-900 mix-blend-multiply"}),mi.default.createElement("div",{className:"absolute left-1/2 top-1/2 -ml-16 -translate-x-1/2 -translate-y-1/2 transform-gpu blur-3xl","aria-hidden":"true"},mi.default.createElement("div",{className:"aspect-[1097/845] w-[68.5625rem] bg-gradient-to-tr from-[#ff4694] to-[#776fff] opacity-40",style:{clipPath:"polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)"}})),mi.default.createElement("figure",{className:"relative isolate"},mi.default.createElement("svg",{viewBox:"0 0 162 128",fill:"none","aria-hidden":"true",className:"absolute -left-2 -top-4 -z-10 h-32 stroke-white/20"},mi.default.createElement("path",{id:"0ef284b8-28c2-426e-9442-8655d393522e",d:"M65.5697 118.507L65.8918 118.89C68.9503 116.314 71.367 113.253 73.1386 109.71C74.9162 106.155 75.8027 102.28 75.8027 98.0919C75.8027 94.237 75.16 90.6155 73.8708 87.2314C72.5851 83.8565 70.8137 80.9533 68.553 78.5292C66.4529 76.1079 63.9476 74.2482 61.0407 72.9536C58.2795 71.4949 55.276 70.767 52.0386 70.767C48.9935 70.767 46.4686 71.1668 44.4872 71.9924L44.4799 71.9955L44.4726 71.9988C42.7101 72.7999 41.1035 73.6831 39.6544 74.6492C38.2407 75.5916 36.8279 76.455 35.4159 77.2394L35.4047 77.2457L35.3938 77.2525C34.2318 77.9787 32.6713 78.3634 30.6736 78.3634C29.0405 78.3634 27.5131 77.2868 26.1274 74.8257C24.7483 72.2185 24.0519 69.2166 24.0519 65.8071C24.0519 60.0311 25.3782 54.4081 28.0373 48.9335C30.703 43.4454 34.3114 38.345 38.8667 33.6325C43.5812 28.761 49.0045 24.5159 55.1389 20.8979C60.1667 18.0071 65.4966 15.6179 71.1291 13.7305C73.8626 12.8145 75.8027 10.2968 75.8027 7.38572C75.8027 3.6497 72.6341 0.62247 68.8814 1.1527C61.1635 2.2432 53.7398 4.41426 46.6119 7.66522C37.5369 11.6459 29.5729 17.0612 22.7236 23.9105C16.0322 30.6019 10.618 38.4859 6.47981 47.558L6.47976 47.558L6.47682 47.5647C2.4901 56.6544 0.5 66.6148 0.5 77.4391C0.5 84.2996 1.61702 90.7679 3.85425 96.8404L3.8558 96.8445C6.08991 102.749 9.12394 108.02 12.959 112.654L12.959 112.654L12.9646 112.661C16.8027 117.138 21.2829 120.739 26.4034 123.459L26.4033 123.459L26.4144 123.465C31.5505 126.033 37.0873 127.316 43.0178 127.316C47.5035 127.316 51.6783 126.595 55.5376 125.148L55.5376 125.148L55.5477 125.144C59.5516 123.542 63.0052 121.456 65.9019 118.881L65.5697 118.507Z"}),mi.default.createElement("use",{href:"#0ef284b8-28c2-426e-9442-8655d393522e",x:86})),mi.default.createElement("blockquote",{className:"mt-6 text-xl font-semibold leading-8 text-white"},mi.default.createElement("p",null,"\u201CInstant is the Content Marketing Platform that helps make Marketing and Lead Generation fun again.\u201D")),mi.default.createElement("figcaption",{className:"mt-6 text-sm leading-6 text-gray-300"},mi.default.createElement("strong",{className:"font-semibold text-white"},"TK Kader,")," ","Founder & Chief Engineer of Instant")))),mi.default.createElement("div",null,mi.default.createElement("div",{className:"text-base leading-7 text-gray-700 lg:max-w-lg"},mi.default.createElement("p",{className:"text-base font-semibold leading-7 text-indigo-600"},"Our Manifesto"),mi.default.createElement("h1",{className:"mt-2 text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl"},"On a Mission to Empower Founders & Marketers"),mi.default.createElement("div",{className:"max-w-xl"},mi.default.createElement("p",{className:"mt-6"},"We're Founders & Marketers who have been in your shoes. We know how hard it is to attract attention online and convert leads into customers. That's why we built Instant to transform how the customer journey works."),mi.default.createElement("p",{className:"mt-6"},"Instant is built by Founders and Marketers for Founders and Marketers. Just like you, we grew tired of the complexity, price, in-flexibilty of traditional Marketing Platforms that hasn't released meaningful new features in years."),mi.default.createElement("p",{className:"mt-8"},"So we set out to build a platform that is easy to use, has all the features you need, and is affordable. We're on a mission to empower businesses to drive growth with the power of Content Marketing."),mi.default.createElement("p",{className:"mt-8"},"We believe that the future of marketing is to educate your buyers by sharing your journey. This is the key to rising above your competition and building a loyal customer base."))),mi.default.createElement("dl",{className:"mt-10 grid grid-cols-2 gap-8 border-t border-gray-900/10 pt-10 sm:grid-cols-4"},x$t.map((e,t)=>mi.default.createElement("div",{key:t},mi.default.createElement("dt",{className:"text-sm font-semibold leading-6 text-gray-600"},e.label),mi.default.createElement("dd",{className:"mt-2 text-3xl font-bold leading-10 tracking-tight text-gray-900"},e.value)))),mi.default.createElement("div",{className:"mt-10 flex hidden"},mi.default.createElement("a",{href:"#",className:"text-base font-semibold leading-7 text-indigo-600"},"Learn more about our company"," ",mi.default.createElement("span",{"aria-hidden":"true"},"\u2192")))))))}var zr=ie(Pe());var oLe="/assets/instant-content-copilot-static-47FC4QG3.digested.png";function Yte(){return zr.default.createElement("div",{className:"relative isolate overflow-hidden bg-white mt-24 px-6 pb-0 sm:pb-8 lg:overflow-visible lg:px-0",id:"Manifesto"},zr.default.createElement("div",{className:"absolute inset-0 -z-10 overflow-hidden"},zr.default.createElement("svg",{className:"absolute opacity-50 left-[max(50%,25rem)] top-0 h-[64rem] w-[128rem] -translate-x-1/2 stroke-gray-200 [mask-image:radial-gradient(64rem_64rem_at_top,white,transparent)]","aria-hidden":"true"},zr.default.createElement("defs",null,zr.default.createElement("pattern",{id:"e813992c-7d03-4cc4-a2bd-151760b470a0",width:200,height:200,x:"50%",y:-1,patternUnits:"userSpaceOnUse"},zr.default.createElement("path",{d:"M100 200V.5M.5 .5H200",fill:"none"}))),zr.default.createElement("svg",{x:"50%",y:-1,className:"overflow-visible fill-gray-50"},zr.default.createElement("path",{d:"M-100.5 0h201v201h-201Z M699.5 0h201v201h-201Z M499.5 400h201v201h-201Z M-300.5 600h201v201h-201Z",strokeWidth:0})),zr.default.createElement("rect",{width:"100%",height:"100%",strokeWidth:0,fill:"url(#e813992c-7d03-4cc4-a2bd-151760b470a0)"}))),zr.default.createElement("div",{className:"mx-auto grid max-w-2xl grid-cols-1 gap-x-8 gap-y-8 lg:mx-0 lg:max-w-none lg:grid-cols-2 lg:items-start lg:gap-y-10"},zr.default.createElement("div",{className:"lg:col-span-2 lg:col-start-1 lg:row-start-1 lg:mx-auto lg:grid lg:w-full lg:max-w-7xl lg:grid-cols-2 lg:gap-x-8 lg:px-8"},zr.default.createElement("div",{className:"lg:pr-4"},zr.default.createElement("div",{className:"lg:max-w-lg"},zr.default.createElement("p",{className:"text-base font-semibold leading-7 text-indigo-600"},"Post Content with \u26A1\uFE0F Content"),zr.default.createElement("h1",{className:"mt-2 text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl"},"Instant Content Co-Pilot"),zr.default.createElement("p",{className:"mt-6 text-xl leading-8 text-gray-700"},"Instant Content Co-Pilot helps you and your entire team create high converting content so you can attract your ideal customers and turn them into engaged leads.")))),zr.default.createElement("div",{className:"-ml-12 -mt-12 p-12 pb-0 lg:sticky lg:top-4 lg:col-start-2 lg:row-span-2 lg:row-start-1 lg:overflow-hidden"},zr.default.createElement("img",{className:"w-[48rem] max-w-none sm:w-[57rem]",src:oLe,alt:""})),zr.default.createElement("div",{className:"lg:col-span-2 lg:col-start-1 lg:row-start-2 lg:mx-auto lg:grid lg:w-full lg:max-w-7xl lg:grid-cols-2 lg:gap-x-8 lg:px-8"},zr.default.createElement("div",{className:"lg:pr-4"},zr.default.createElement("div",{className:"max-w-xl text-base leading-7 text-gray-700 lg:max-w-lg"},zr.default.createElement("ul",{role:"list",className:"mt-2 space-y-8 text-gray-600"},zr.default.createElement("li",{className:"flex gap-x-3"},zr.default.createElement(Vj,{className:"mt-1 h-5 w-5 flex-none text-indigo-600","aria-hidden":"true"}),zr.default.createElement("span",null,zr.default.createElement("strong",{className:"font-semibold text-gray-900"},"Guided Content Creation.")," ","Instant Content Co-Pilot guides you through creating content that converts. You can create content for social media or ADs that attracts your ideal customers and converts them into leads.")),zr.default.createElement("li",{className:"flex gap-x-3"},zr.default.createElement(O2,{className:"mt-1 h-5 w-5 flex-none text-indigo-600","aria-hidden":"true"}),zr.default.createElement("span",null,zr.default.createElement("strong",{className:"font-semibold text-gray-900"},"Personalized Hooks & Messaging.")," ","Instant generates personalized hooks and messaging that helps you overcome writer's block and resonates with your ideal customers using the power of AI.")),zr.default.createElement("li",{className:"flex gap-x-3"},zr.default.createElement(Xj,{className:"mt-1 h-5 w-5 flex-none text-indigo-600","aria-hidden":"true"}),zr.default.createElement("span",null,zr.default.createElement("strong",{className:"font-semibold text-gray-900"},"Mobilize Your Entire Team.")," ","With Instant Team Edition, you can mobilize your entire team to create and post content that documents their journey, educates your buyers, and turns them into highly engaged leads."))),zr.default.createElement("p",{className:"mt-8"},"Share your journey, educate your buyers, and turn them into highly engaged leads who want to buy from you vs your competition."),zr.default.createElement("div",{className:"mt-8 w-full flex gap-x-6"},zr.default.createElement(ks,{href:"/bootstrap",color:"blue"},"Start Building \u2192")))))))}var Tr=ie(Pe());var sLe="/assets/instant-builder-2024-65NCUO66.digested.png";function Zte(){return Tr.default.createElement("div",{className:"relative isolate overflow-hidden bg-white mt-0 px-6 pb-8 sm:pb-8 lg:overflow-visible lg:px-0",id:"Manifesto"},Tr.default.createElement("div",{className:"absolute inset-0 -z-10 overflow-hidden"},Tr.default.createElement("svg",{className:"absolute opacity-50 left-[max(50%,25rem)] top-0 h-[64rem] w-[128rem] -translate-x-1/2 stroke-gray-200 [mask-image:radial-gradient(64rem_64rem_at_top,white,transparent)]","aria-hidden":"true"},Tr.default.createElement("defs",null,Tr.default.createElement("pattern",{id:"e813992c-7d03-4cc4-a2bd-151760b470a0",width:200,height:200,x:"50%",y:-1,patternUnits:"userSpaceOnUse"},Tr.default.createElement("path",{d:"M100 200V.5M.5 .5H200",fill:"none"}))),Tr.default.createElement("svg",{x:"50%",y:-1,className:"overflow-visible fill-gray-50"},Tr.default.createElement("path",{d:"M-100.5 0h201v201h-201Z M699.5 0h201v201h-201Z M499.5 400h201v201h-201Z M-300.5 600h201v201h-201Z",strokeWidth:0})),Tr.default.createElement("rect",{width:"100%",height:"100%",strokeWidth:0,fill:"url(#e813992c-7d03-4cc4-a2bd-151760b470a0)"}))),Tr.default.createElement("div",{className:"mx-auto grid max-w-2xl grid-cols-1 gap-x-8 gap-y-8 lg:mx-0 lg:max-w-none lg:grid-cols-2 lg:items-start lg:gap-y-10"},Tr.default.createElement("div",{className:"lg:col-span-2 lg:col-start-1 lg:row-start-1 lg:mx-auto lg:grid lg:w-full lg:max-w-7xl lg:grid-cols-2 lg:gap-x-8 lg:px-8"},Tr.default.createElement("div",{className:"lg:pr-4"},Tr.default.createElement("div",{className:"lg:max-w-lg"},Tr.default.createElement("p",{className:"text-base font-semibold leading-7 text-indigo-600"},"Acquire Leads with \u26A1\uFE0F Landing Pages"),Tr.default.createElement("h1",{className:"mt-2 text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl"},"Instant Landing Pages"),Tr.default.createElement("p",{className:"mt-6 text-xl leading-8 text-gray-700"},"Instant Landing Pages turns attention online into quality leads with high-converting content funnels.")))),Tr.default.createElement("div",{className:"-ml-12 -mt-12 p-12 pb-0 lg:sticky lg:top-4 lg:col-start-2 lg:row-span-2 lg:row-start-1 lg:overflow-hidden"},Tr.default.createElement("img",{className:"w-[48rem] max-w-none sm:w-[57rem]",src:sLe,alt:""})),Tr.default.createElement("div",{className:"lg:col-span-2 lg:col-start-1 lg:row-start-2 lg:mx-auto lg:grid lg:w-full lg:max-w-7xl lg:grid-cols-2 lg:gap-x-8 lg:px-8"},Tr.default.createElement("div",{className:"lg:pr-4"},Tr.default.createElement("div",{className:"max-w-xl text-base leading-7 text-gray-700 lg:max-w-lg"},Tr.default.createElement("ul",{role:"list",className:"mt-2 space-y-8 text-gray-600"},Tr.default.createElement("li",{className:"flex gap-x-3"},Tr.default.createElement(Rj,{className:"mt-1 h-5 w-5 flex-none text-indigo-600","aria-hidden":"true"}),Tr.default.createElement("span",null,Tr.default.createElement("strong",{className:"font-semibold text-gray-900"},"High Converting Landing Pages.")," ","Build landing pages that convert 10% higher with the power of AI. Instant landing pages help you convert leads faster by focusing on quality copywriting rather than complicated designs that get in the way.")),Tr.default.createElement("li",{className:"flex gap-x-3"},Tr.default.createElement(O2,{className:"mt-1 h-5 w-5 flex-none text-indigo-600","aria-hidden":"true"}),Tr.default.createElement("span",null,Tr.default.createElement("strong",{className:"font-semibold text-gray-900"},"High Converting Copy")," ","Instant Landing Pages uses AI to generate high-converting copy that resonates with your audience. This helps you convert leads faster and grow your business.")),Tr.default.createElement("li",{className:"flex gap-x-3"},Tr.default.createElement(b0,{className:"mt-1 h-5 w-5 flex-none text-indigo-600","aria-hidden":"true"}),Tr.default.createElement("span",null,Tr.default.createElement("strong",{className:"font-semibold text-gray-900"},"Instant Lead Magnet.")," ","Upon collecting your lead\u2019s email, Instant displays your lead magnet in an embedded and trackable PDF viewer. This allows your leads to engage with your content immediately, helping you convert them faster."))),Tr.default.createElement("p",{className:"mt-8"},"Not just a Thank You page. With Instant, you get a fully built Lead Generation Funnel. This direct approach helps you engage your leads better, convert leads faster, and helps grow your business."),Tr.default.createElement("div",{className:"mt-8 w-full flex gap-x-6"},Tr.default.createElement(ks,{href:"/bootstrap",color:"blue"},"Start Building \u2192")))))))}var Dr=ie(Pe());var aLe="/assets/instant-lead-magnet-NZKAS2AR.digested.png";function Ute(){return Dr.default.createElement("div",{className:"relative isolate overflow-hidden bg-white mt-24 px-6 pb-8 sm:pb-8 lg:overflow-visible lg:px-0",id:"Engagement"},Dr.default.createElement("div",{className:"absolute inset-0 -z-10 overflow-hidden"},Dr.default.createElement("svg",{className:"absolute opacity-50 left-[max(50%,25rem)] top-0 h-[64rem] w-[128rem] -translate-x-1/2 stroke-gray-200 [mask-image:radial-gradient(64rem_64rem_at_top,white,transparent)]","aria-hidden":"true"},Dr.default.createElement("defs",null,Dr.default.createElement("pattern",{id:"e813992c-7d03-4cc4-a2bd-151760b470a0",width:200,height:200,x:"50%",y:-1,patternUnits:"userSpaceOnUse"},Dr.default.createElement("path",{d:"M100 200V.5M.5 .5H200",fill:"none"}))),Dr.default.createElement("svg",{x:"50%",y:-1,className:"overflow-visible fill-gray-50"},Dr.default.createElement("path",{d:"M-100.5 0h201v201h-201Z M699.5 0h201v201h-201Z M499.5 400h201v201h-201Z M-300.5 600h201v201h-201Z",strokeWidth:0})),Dr.default.createElement("rect",{width:"100%",height:"100%",strokeWidth:0,fill:"url(#e813992c-7d03-4cc4-a2bd-151760b470a0)"}))),Dr.default.createElement("div",{className:"mx-auto grid max-w-2xl grid-cols-1 gap-x-8 gap-y-8 lg:mx-0 lg:max-w-none lg:grid-cols-2 lg:items-start lg:gap-y-10"},Dr.default.createElement("div",{className:"lg:col-span-2 lg:col-start-1 lg:row-start-1 lg:mx-auto lg:grid lg:w-full lg:max-w-7xl lg:grid-cols-2 lg:gap-x-8 lg:px-8"},Dr.default.createElement("div",{className:"lg:pr-4"},Dr.default.createElement("div",{className:"lg:max-w-lg"},Dr.default.createElement("p",{className:"text-base font-semibold leading-7 text-indigo-600"},"Drive Engagement with \u26A1\uFE0F CTAs"),Dr.default.createElement("h1",{className:"mt-2 text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl"},"Instant Call to Action"),Dr.default.createElement("p",{className:"mt-6 text-xl leading-8 text-gray-700"},"Instant serves up your lead magnet content right away after leads opt-in. This boosts engagement and accelerates trust in your brand.")))),Dr.default.createElement("div",{className:"-ml-12 -mt-12 p-12 pb-0 lg:sticky lg:top-4 lg:col-start-2 lg:row-span-2 lg:row-start-1 lg:overflow-hidden"},Dr.default.createElement("img",{className:"w-[48rem] max-w-none sm:w-[57rem]",src:aLe,alt:""})),Dr.default.createElement("div",{className:"lg:col-span-2 lg:col-start-1 lg:row-start-2 lg:mx-auto lg:grid lg:w-full lg:max-w-7xl lg:grid-cols-2 lg:gap-x-8 lg:px-8"},Dr.default.createElement("div",{className:"lg:pr-4"},Dr.default.createElement("div",{className:"max-w-xl text-base leading-7 text-gray-700 lg:max-w-lg"},Dr.default.createElement("ul",{role:"list",className:"mt-2 space-y-8 text-gray-600"},Dr.default.createElement("li",{className:"flex gap-x-3"},Dr.default.createElement(T8,{className:"mt-1 h-5 w-5 flex-none text-indigo-600","aria-hidden":"true"}),Dr.default.createElement("span",null,Dr.default.createElement("strong",{className:"font-semibold text-gray-900"},"Embedded PDF and Video Content.")," ","Instant allows you to embed your lead magnet content directly into your Content Funnel so your leads can view it right away.")),Dr.default.createElement("li",{className:"flex gap-x-3"},Dr.default.createElement(b0,{className:"mt-1 h-5 w-5 flex-none text-indigo-600","aria-hidden":"true"}),Dr.default.createElement("span",null,Dr.default.createElement("strong",{className:"font-semibold text-gray-900"},"Instant CTA.")," ","Instant displays a clear Call to Action (CTA) right below your content. This gives your leads a clear path to the next step of their buyer journey and encourages them to take action.")),Dr.default.createElement("li",{className:"flex gap-x-3"},Dr.default.createElement(zj,{className:"mt-1 h-5 w-5 flex-none text-indigo-600","aria-hidden":"true"}),Dr.default.createElement("span",null,Dr.default.createElement("strong",{className:"font-semibold text-gray-900"},"Insant Content Tracking.")," ","Instant tracks every aspect of your lead's engagement in your Content Funnel in real-time giving you unique insights into your leads' behavior."))),Dr.default.createElement("p",{className:"mt-8"},"With Instant, you're able to engage your leads right away and guide them through their buyer journey. This boosts your chances of closing the sale and building a long-term relationship with your leads."),Dr.default.createElement("div",{className:"mt-8 w-full flex gap-x-6"},Dr.default.createElement(ks,{href:"/bootstrap",color:"blue"},"Start Building \u2192")))))))}var Rr=ie(Pe());var lLe="/assets/instant-content-engagement-live-feed-HJU54URF.digested.png";function Qte(){return Rr.default.createElement("div",{className:"relative isolate overflow-hidden bg-white mt-20 px-6 pb-24 sm:pb-32 lg:overflow-visible lg:px-0",id:"Engagement"},Rr.default.createElement("div",{className:"absolute inset-0 -z-10 overflow-hidden"},Rr.default.createElement("svg",{className:"absolute opacity-50 left-[max(50%,25rem)] top-0 h-[64rem] w-[128rem] -translate-x-1/2 stroke-gray-200 [mask-image:radial-gradient(64rem_64rem_at_top,white,transparent)]","aria-hidden":"true"},Rr.default.createElement("defs",null,Rr.default.createElement("pattern",{id:"e813992c-7d03-4cc4-a2bd-151760b470a0",width:200,height:200,x:"50%",y:-1,patternUnits:"userSpaceOnUse"},Rr.default.createElement("path",{d:"M100 200V.5M.5 .5H200",fill:"none"}))),Rr.default.createElement("svg",{x:"50%",y:-1,className:"overflow-visible fill-gray-50"},Rr.default.createElement("path",{d:"M-100.5 0h201v201h-201Z M699.5 0h201v201h-201Z M499.5 400h201v201h-201Z M-300.5 600h201v201h-201Z",strokeWidth:0})),Rr.default.createElement("rect",{width:"100%",height:"100%",strokeWidth:0,fill:"url(#e813992c-7d03-4cc4-a2bd-151760b470a0)"}))),Rr.default.createElement("div",{className:"mx-auto grid max-w-2xl grid-cols-1 gap-x-8 gap-y-8 lg:mx-0 lg:max-w-none lg:grid-cols-2 lg:items-start lg:gap-y-10"},Rr.default.createElement("div",{className:"lg:col-span-2 lg:col-start-1 lg:row-start-1 lg:mx-auto lg:grid lg:w-full lg:max-w-7xl lg:grid-cols-2 lg:gap-x-8 lg:px-8"},Rr.default.createElement("div",{className:"lg:pr-4"},Rr.default.createElement("div",{className:"lg:max-w-lg"},Rr.default.createElement("p",{className:"text-base font-semibold leading-7 text-indigo-600"},"Convert Leads with \u26A1\uFE0F Engagement"),Rr.default.createElement("h1",{className:"mt-2 text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl"},"Instant Engagement"),Rr.default.createElement("p",{className:"mt-6 text-xl leading-8 text-gray-700"},"Instant tracks every aspect of your lead's engagement in real-time so you can follow up and convert them faster.")))),Rr.default.createElement("div",{className:"-ml-12 -mt-12 p-12 pb-0 lg:sticky lg:top-4 lg:col-start-2 lg:row-span-2 lg:row-start-1 lg:overflow-hidden"},Rr.default.createElement("img",{className:"w-[48rem] max-w-none sm:w-[57rem]",src:lLe,alt:""})),Rr.default.createElement("div",{className:"lg:col-span-2 lg:col-start-1 lg:row-start-2 lg:mx-auto lg:grid lg:w-full lg:max-w-7xl lg:grid-cols-2 lg:gap-x-8 lg:px-8"},Rr.default.createElement("div",{className:"lg:pr-4"},Rr.default.createElement("div",{className:"max-w-xl text-base leading-7 text-gray-700 lg:max-w-lg"},Rr.default.createElement("ul",{role:"list",className:"mt-2 space-y-8 text-gray-600"},Rr.default.createElement("li",{className:"flex gap-x-3"},Rr.default.createElement(Kj,{className:"mt-1 h-5 w-5 flex-none text-indigo-600","aria-hidden":"true"}),Rr.default.createElement("span",null,Rr.default.createElement("strong",{className:"font-semibold text-gray-900"},"Real-Time Lead Tracking")," ","Instant tracks your leads in a real-time feed as they engage with your lead magnet content. This allows you to follow up and convert them faster.")),Rr.default.createElement("li",{className:"flex gap-x-3"},Rr.default.createElement(O2,{className:"mt-1 h-5 w-5 flex-none text-indigo-600","aria-hidden":"true"}),Rr.default.createElement("span",null,Rr.default.createElement("strong",{className:"font-semibold text-gray-900"},"Real-Time Lead Enrichment and 1-Click Emails.")," ","Instant AI will automatically enrich your leads based on data available on their website so you can reach out to them with personalized emails generated for you in just 1-click.")),Rr.default.createElement("li",{className:"flex gap-x-3"},Rr.default.createElement(b0,{className:"mt-1 h-5 w-5 flex-none text-indigo-600","aria-hidden":"true"}),Rr.default.createElement("span",null,Rr.default.createElement("strong",{className:"font-semibold text-gray-900"},"Insant Content Engagement.")," ","Instant will analyze engagement across all your leads and show you what content is resonating with your audience and where they're dropping off."))),Rr.default.createElement("p",{className:"mt-8"},"With Instant, you get full visibility into your leads' engagement with your content, so you can follow up with your engaged leads and continue to improve your content to drive more conversions."),Rr.default.createElement("div",{className:"mt-8 w-full flex gap-x-6"},Rr.default.createElement(ks,{href:"/bootstrap",color:"blue"},"Start Building \u2192")))))))}var ene=class extends Ca.Component{constructor(t){super(t)}componentDidMount(){Fn.track("Loaded Sales Page")}render(){return Ca.default.createElement("div",{className:"bg-white"},Ca.default.createElement(Bz,null),Ca.default.createElement("main",null,Ca.default.createElement(XRe,null),Ca.default.createElement(Zte,null),Ca.default.createElement(Yte,null),Ca.default.createElement(Ute,null),Ca.default.createElement(Qte,null),Ca.default.createElement(Fz,null),Ca.default.createElement(Iz,null),Ca.default.createElement(Nz,null),Ca.default.createElement(iLe,null),Ca.default.createElement(Sz,null),Ca.default.createElement(Cz,null)),Ca.default.createElement(Mz,null))}},tne=Pd(ene);var Pu=ie(Pe());var ai=ie(Pe());var Lz=ie(ALe());var X$t=e=>{let[t,n]=(0,ai.useState)(!1),[r,i]=(0,ai.useState)("https://calendly.com/d/2mm-kc9-wkq/schedule-an-instant-demo"),[o,s]=(0,ai.useState)("l7w2194jj4"),[a,l]=(0,ai.useState)([]),[u,c]=(0,ai.useState)(!1),[f,d]=(0,ai.useState)({}),[h,m]=(0,ai.useState)(!1);(0,ai.useEffect)(()=>{Fn.track("Loaded Instant+ Upsell",{mode:"landing_page"});let b=[{name:"Instant PRO Optimization:",description:"Actionable insights into your Go-To-Market performance so you know exactly what you need to do to scale.",icon:Tj},{name:"Instant PRO Content:",description:`Instantly generate high converting social media posts and AD copy using our custom trained AI model ${e?.page?.who?`that attracts ${e.page.who}`:""}.`,icon:S2},{name:"Instant PRO Workflows:",description:"Deep integrations into your CRM and Marketing Automation platforms so you can streamline your customer journey.",icon:T8}];l(b)},[e]);let g=(b,v=null)=>{Fn.track("Schedule Instant+ Demo",{event:b,data:v?.data?.payload?v.data.payload:null})};return q1({onProfilePageViewed:()=>g("Profile Page Viewed"),onDateAndTimeSelected:()=>g("Date and Time Selected"),onEventTypeViewed:()=>g("Event Type Viewed"),onEventScheduled:b=>g("Event Scheduled",b)}),ai.default.createElement("div",{className:"overflow-hidden bg-white mb-16"},ai.default.createElement("svg",{className:"absolute inset-0 -z-10 h-full w-full stroke-gray-200 [mask-image:radial-gradient(100%_100%_at_top_right,white,transparent)]","aria-hidden":"true"},ai.default.createElement("defs",null,ai.default.createElement("pattern",{id:"0787a7c5-978c-4f66-83c7-11c213f99cb7",width:200,height:200,x:"50%",y:-1,patternUnits:"userSpaceOnUse"},ai.default.createElement("path",{d:"M.5 200V.5H200",fill:"none"}))),ai.default.createElement("rect",{width:"100%",height:"100%",strokeWidth:0,fill:"url(#0787a7c5-978c-4f66-83c7-11c213f99cb7)"})),ai.default.createElement("div",{className:"mx-auto max-w-7xl"},ai.default.createElement("div",{className:"mx-auto grid max-w-2xl grid-cols-1 gap-x-8 gap-y-16 sm:gap-y-20 lg:mx-0 lg:max-w-none lg:grid-cols-2"},ai.default.createElement("div",{className:"lg:pr-8"},ai.default.createElement("p",{className:"text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl"},e.jumbo?"Instant PRO":"Upgrade to Instant PRO"),ai.default.createElement("p",{className:`mt-4 leading-6 text-gray-600 ${e.jumbo?"text-xl leading-8":"text-md"}`},"Scale your Lead Generation with Instant PRO so you can generate quality ICP leads, build pipeline, and drive revenues."),ai.default.createElement("dl",{className:`mt-4 max-w-xl space-y-4 leading-6 text-gray-600 lg:max-w-none ${e.jumbo?"leading-8 mt-6 text-lg":"text-md"}`},a.map(b=>ai.default.createElement("div",{key:b.name,className:"relative pl-9"},ai.default.createElement("dt",{className:"inline font-semibold text-gray-900"},ai.default.createElement(b.icon,{className:"absolute left-1 top-1 h-5 w-5 text-indigo-600","aria-hidden":"true"}),b.name)," ",ai.default.createElement("dd",{className:"inline"},b.description))))),ai.default.createElement("div",{className:"mt-12"},ai.default.createElement("div",{className:""},ai.default.createElement("div",{className:"rounded-xl bg-gray-900/5 p-2 ring-1 ring-inset ring-gray-900/10 lg:rounded-2xl lg:p-4"},ai.default.createElement(Lz.WistiaProvider,null,ai.default.createElement(Lz.WistiaPlayer,{hashedId:o}))),ai.default.createElement("div",{className:"mt-6 flex items-center gap-x-6 w-full"},ai.default.createElement("a",{href:"#",onClick:b=>{b.preventDefault(),n(!0),Fn.track("Book Demo Call")},className:"text-center text-2xl items-center w-full rounded-md bg-green-600 px-3.5 py-2.5 text-md font-semibold text-white shadow-sm hover:bg-green-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-600"},"Talk to Sales \u2192"))))),ai.default.createElement(Wf,{url:r,open:t,rootElement:document.getElementById("app")})))},CLe=X$t;var lne=class extends Pu.Component{constructor(t){super(t)}componentDidMount(){Fn.track("Loaded Sales Page")}render(){return Pu.default.createElement(Pu.default.Fragment,null,Pu.default.createElement(Bz,null),Pu.default.createElement("main",null,Pu.default.createElement("div",{className:"p-6 sm:py-16 sm:px-32 bg-white"},Pu.default.createElement(CLe,{jumbo:!0})),Pu.default.createElement(Fz,null),Pu.default.createElement(Iz,null),Pu.default.createElement(Cz,null),Pu.default.createElement(Nz,{featuredPlan:"pro"}),Pu.default.createElement(Sz,null)),Pu.default.createElement(Mz,null))}},SLe=Pd(lne);var OLe=ie(Pe());var A5=PrivateWrapper=({children:e})=>localStorage.getItem("uid")?e:OLe.default.createElement(hb,{to:"/",replace:!0});var Ph=ie(Pe());var ELe=SigninPage=()=>{let{search:e}=md(),[t,n]=(0,Ph.useState)(!0),[r,i]=(0,Ph.useState)(!1);return(0,Ph.useEffect)(()=>{Fn.track("Log In Page Viewed")},[]),Ph.default.createElement("div",{className:"flex min-h-full flex-col justify-center py-12 sm:px-6 lg:px-8"},Ph.default.createElement("div",{className:"grid place-items-center h-screen text-center"},"\u26A1\uFE0F"),Ph.default.createElement(gG,{open:t,handleLoginClose:()=>{},handleSignupOpen:()=>{},handleForgetOpen:()=>{n(!1),i(!0)}}),Ph.default.createElement(_G,{open:r,handleForgetClose:()=>{i(!1),n(!0)}}))};var C5=ie(b4()),une=class extends sn.Component{constructor(t){super(t)}render(){let{isLoggedIn:t,setLogin:n,userData:r}=this.context;return sn.default.createElement(nle,null,sn.default.createElement(mb,null,sn.default.createElement(RV,null,sn.default.createElement(ko,{path:"/:hash",element:sn.default.createElement(m9,null)}),sn.default.createElement(ko,{path:"/:hash/screenshot",element:sn.default.createElement(m9,{mode:"screenshot"})}),sn.default.createElement(ko,{path:"/:hash/snapshot/:secret",element:sn.default.createElement(m9,{mode:"snapshot"})}),sn.default.createElement(ko,{path:"/:hash/content/:instant_uuid",element:sn.default.createElement(m9,{mode:"leadmagnet"})}),sn.default.createElement(ko,{path:"/login",element:sn.default.createElement(ELe,null)}),sn.default.createElement(ko,{path:"/learn",element:sn.default.createElement(tne,null)}),sn.default.createElement(ko,{path:"/pro",element:sn.default.createElement(SLe,null)}),sn.default.createElement(ko,{path:"/",element:sn.default.createElement(yge,null)},sn.default.createElement(ko,{path:"/",element:sn.default.createElement(sn.default.Fragment,null,t&&C5.isMobile?sn.default.createElement(Am,null):sn.default.createElement(Lg,{allowBootstrap:!0}))}),sn.default.createElement(ko,{path:"/learn",element:sn.default.createElement(tne,null)}),sn.default.createElement(ko,{path:"/bootstrap",element:sn.default.createElement(Lg,{allowBootstrap:!0})}),sn.default.createElement(ko,{path:"/builder",element:sn.default.createElement(Lg,{currentStep:1})}),sn.default.createElement(ko,{path:"/builder/:id",element:sn.default.createElement(Lg,{currentStep:1})}),sn.default.createElement(ko,{path:"/builder/:id/1",element:sn.default.createElement(Lg,{currentStep:1})}),sn.default.createElement(ko,{path:"/builder/:id/2",element:sn.default.createElement(Lg,{currentStep:2})}),sn.default.createElement(ko,{path:"/builder/:id/3",element:sn.default.createElement(Lg,{currentStep:3})}),sn.default.createElement(ko,{path:"/dashboard",element:sn.default.createElement(A5,null,C5.isMobile?sn.default.createElement(Am,null):sn.default.createElement(f9,null))}),sn.default.createElement(ko,{path:"/dashboard/:id",element:sn.default.createElement(A5,null,C5.isMobile?sn.default.createElement(Am,null):sn.default.createElement(f9,null))}),sn.default.createElement(ko,{path:"/dashboard/:id/live",element:sn.default.createElement(A5,null,sn.default.createElement(Am,null))}),sn.default.createElement(ko,{path:"/dashboard/:id/:current_tab",element:sn.default.createElement(A5,null,C5.isMobile?sn.default.createElement(Am,null):sn.default.createElement(f9,null))}),sn.default.createElement(ko,{path:"/dashboard/:id/:current_tab/:chart_focus",element:sn.default.createElement(A5,null,C5.isMobile?sn.default.createElement(Am,null):sn.default.createElement(f9,null))})),sn.default.createElement(ko,{path:"/reset_password",element:sn.default.createElement(due,null)}),sn.default.createElement(ko,{path:"/activate",element:sn.default.createElement(pue,null)}))))}},MLe=une;var Vz=class extends s1{async connect(){let e=document.getElementById("app");(0,NLe.createRoot)(e).render(BLe.default.createElement(MLe,null))}};CA.register("react",Vz);})();
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/
/*!
  * chartjs-adapter-moment v1.0.1
  * https://www.chartjs.org
  * (c) 2022 chartjs-adapter-moment Contributors
  * Released under the MIT license
  */
/*!
  Copyright (c) 2017 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/
/*!
 * @kurkle/color v0.3.2
 * https://github.com/kurkle/color#readme
 * (c) 2023 Jukka Kurkela
 * Released under the MIT License
 */
/*!
 * Chart.js v4.3.0
 * https://www.chartjs.org
 * (c) 2023 Chart.js Contributors
 * Released under the MIT License
 */
/*!
 * Pusher JavaScript Library v8.3.0
 * https://pusher.com/
 *
 * Copyright 2020, Pusher
 * Released under the MIT licence.
 */
/*!
 * chartjs-plugin-datalabels v2.2.0
 * https://chartjs-plugin-datalabels.netlify.app
 * (c) 2017-2022 chartjs-plugin-datalabels contributors
 * Released under the MIT license
 */
/*!
 Transformation Matrix v2.0
 (c) Epistemex 2014-2015
 www.epistemex.com
 By Ken Fyrstenberg
 Contributions by leeoniya.
 License: MIT, header required.
 */
/*!
* chartjs-plugin-annotation v3.0.1
* https://www.chartjs.org/chartjs-plugin-annotation/index
 * (c) 2023 chartjs-plugin-annotation Contributors
 * Released under the MIT License
 */
/*!
* sweetalert2 v11.7.8
* Released under the MIT License.
*/
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/*! @preserve
 * numeral.js
 * version : 2.0.6
 * author : Adam Draper
 * license : MIT
 * http://adamwdraper.github.com/Numeral-js/
 */
/*! Moment Duration Format v2.2.2
 *  https://github.com/jsmreese/moment-duration-format
 *  Date: 2018-02-16
 *
 *  Duration format plugin function for the Moment.js library
 *  http://momentjs.com/
 *
 *  Copyright 2018 John Madhavan-Reese
 *  Released under the MIT license
 */
/*! js-cookie v3.0.1 | MIT */
/*! js-cookie v3.0.5 | MIT */
/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */
/**
 * @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.
 */
/**
 * @license React
 * react-jsx-runtime.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.
 */
/**
 * @license React
 * react.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.
 */
/**
 * @license React
 * scheduler.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.
 */
/**
 * @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.
 */
/**
 * @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.
 */
/**
 * @remix-run/router v1.6.2
 *
 * 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
 */
/**
 * A React component to view a PDF document
 *
 * @see https://react-pdf-viewer.dev
 * @license https://react-pdf-viewer.dev/license
 * @copyright 2019-2023 Nguyen Huu Phuoc <me@phuoc.ng>
 */
/**
 * React Router DOM v6.11.2
 *
 * 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
 */
/**
 * React Router v6.11.2
 *
 * 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
 */
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @license Apache-2.0
*
* Copyright (c) 2021 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @license Apache-2.0
*
* Copyright (c) 2022 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/** @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.
 */
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! goToAndStop must be relative to the start of the current segment
//! license : MIT
//! moment.js
//! momentjs.com
//! version : 2.29.4;
