UNPKG

react-chat-elements

Version:
21 lines 92.9 kB
import{jsx as t,jsxs as e,Fragment as n}from"react/jsx-runtime";import{useMemo as r,useCallback as o,useEffect as i,forwardRef as a,createElement as l,useState as c,useRef as s}from"react";var u,d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},p={exports:{}};u=function(){return(()=>{var t={720:(t,e,n)=>{n.r(e),n.d(e,{Scene:()=>re,Tweenable:()=>Ct,interpolate:()=>Gt,processTweens:()=>pt,setBezierFunction:()=>ie,shouldScheduleUpdate:()=>vt,tween:()=>kt,unsetBezierFunction:()=>ae});var r={};n.r(r),n.d(r,{bounce:()=>I,bouncePast:()=>A,easeFrom:()=>R,easeFromTo:()=>z,easeInBack:()=>L,easeInCirc:()=>S,easeInCubic:()=>u,easeInExpo:()=>O,easeInOutBack:()=>E,easeInOutCirc:()=>j,easeInOutCubic:()=>h,easeInOutExpo:()=>x,easeInOutQuad:()=>s,easeInOutQuart:()=>m,easeInOutQuint:()=>b,easeInOutSine:()=>w,easeInQuad:()=>l,easeInQuart:()=>f,easeInQuint:()=>y,easeInSine:()=>C,easeOutBack:()=>P,easeOutBounce:()=>N,easeOutCirc:()=>M,easeOutCubic:()=>p,easeOutExpo:()=>_,easeOutQuad:()=>c,easeOutQuart:()=>v,easeOutQuint:()=>g,easeOutSine:()=>k,easeTo:()=>B,elastic:()=>T,linear:()=>a,swingFrom:()=>D,swingFromTo:()=>F,swingTo:()=>W});var o={};n.r(o),n.d(o,{afterTween:()=>Ut,beforeTween:()=>Vt,doesApply:()=>Bt,tweenCreated:()=>Ht}); /*! * All equations are adapted from Thomas Fuchs' * [Scripty2](https://github.com/madrobby/scripty2/blob/master/src/effects/transitions/penner.js). * * Based on Easing Equations (c) 2003 [Robert * Penner](http://www.robertpenner.com/), all rights reserved. This work is * [subject to terms](http://www.robertpenner.com/easing_terms_of_use.html). */ /*! * TERMS OF USE - EASING EQUATIONS * Open source under the BSD License. * Easing Equations (c) 2003 Robert Penner, all rights reserved. */ var i,a=function(t){return t},l=function(t){return Math.pow(t,2)},c=function(t){return-(Math.pow(t-1,2)-1)},s=function(t){return(t/=.5)<1?.5*Math.pow(t,2):-.5*((t-=2)*t-2)},u=function(t){return Math.pow(t,3)},p=function(t){return Math.pow(t-1,3)+1},h=function(t){return(t/=.5)<1?.5*Math.pow(t,3):.5*(Math.pow(t-2,3)+2)},f=function(t){return Math.pow(t,4)},v=function(t){return-(Math.pow(t-1,4)-1)},m=function(t){return(t/=.5)<1?.5*Math.pow(t,4):-.5*((t-=2)*Math.pow(t,3)-2)},y=function(t){return Math.pow(t,5)},g=function(t){return Math.pow(t-1,5)+1},b=function(t){return(t/=.5)<1?.5*Math.pow(t,5):.5*(Math.pow(t-2,5)+2)},C=function(t){return 1-Math.cos(t*(Math.PI/2))},k=function(t){return Math.sin(t*(Math.PI/2))},w=function(t){return-.5*(Math.cos(Math.PI*t)-1)},O=function(t){return 0===t?0:Math.pow(2,10*(t-1))},_=function(t){return 1===t?1:1-Math.pow(2,-10*t)},x=function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},S=function(t){return-(Math.sqrt(1-t*t)-1)},M=function(t){return Math.sqrt(1-Math.pow(t-1,2))},j=function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},N=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},L=function(t){var e=1.70158;return t*t*((e+1)*t-e)},P=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},E=function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},T=function(t){return-1*Math.pow(4,-8*t)*Math.sin((6*t-1)*(2*Math.PI)/2)+1},F=function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},D=function(t){var e=1.70158;return t*t*((e+1)*t-e)},W=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},I=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},A=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?2-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?2-(7.5625*(t-=2.25/2.75)*t+.9375):2-(7.5625*(t-=2.625/2.75)*t+.984375)},z=function(t){return(t/=.5)<1?.5*Math.pow(t,4):-.5*((t-=2)*Math.pow(t,3)-2)},R=function(t){return Math.pow(t,4)},B=function(t){return Math.pow(t,.25)};function H(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function V(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function U(t){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},U(t)}function K(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function q(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?K(Object(n),!0).forEach((function(e){Z(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Z(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Q,$,G,Y="linear",J="undefined"!=typeof window?window:d,X="afterTween",tt="afterTweenEnd",et="beforeTween",nt="tweenCreated",rt="function",ot="string",it=J.requestAnimationFrame||J.webkitRequestAnimationFrame||J.oRequestAnimationFrame||J.msRequestAnimationFrame||J.mozCancelRequestAnimationFrame&&J.mozRequestAnimationFrame||setTimeout,at=function(){},lt=null,ct=null,st=q({},r),ut=function(t,e,n,r,o,i,a){var l,c,s,u=t<i?0:(t-i)/o,d=!1;for(var p in a&&a.call&&(d=!0,l=a(u)),e)d||(l=((c=a[p]).call?c:st[c])(u)),s=n[p],e[p]=s+(r[p]-s)*l;return e},dt=function(t,e){var n=t._timestamp,r=t._currentState,o=t._delay;if(!(e<n+o)){var i=t._duration,a=t._targetState,l=n+o+i,c=e>l?l:e;t._hasEnded=c>=l;var s=i-(l-c),u=t._filters.length>0;if(t._hasEnded)return t._render(a,t._data,s),t.stop(!0);u&&t._applyFilter(et),c<n+o?n=i=c=1:n+=o,ut(c,r,t._originalState,a,i,n,t._easing),u&&t._applyFilter(X),t._render(r,t._data,s)}},pt=function(){for(var t,e=Ct.now(),n=lt;n;)t=n._next,dt(n,e),n=t},ht=Date.now||function(){return+new Date},ft=!1,vt=function(t){t&&ft||(ft=t,t&&mt())},mt=function t(){Q=ht(),ft&&it.call(J,t,16.666666666666668),pt()},yt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Y,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=U(e);if(st[e])return st[e];if(r===ot||r===rt)for(var o in t)n[o]=e;else for(var i in t)n[i]=e[i]||Y;return n},gt=function(t){t===lt?(lt=t._next)?lt._previous=null:ct=null:t===ct?(ct=t._previous)?ct._next=null:lt=null:($=t._previous,G=t._next,$._next=G,G._previous=$),t._previous=t._next=null},bt="function"==typeof Promise?Promise:null;i=Symbol.toStringTag;var Ct=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;H(this,t),Z(this,i,"Promise"),this._config={},this._data={},this._delay=0,this._filters=[],this._next=null,this._previous=null,this._timestamp=null,this._hasEnded=!1,this._resolve=null,this._reject=null,this._currentState=e||{},this._originalState={},this._targetState={},this._start=at,this._render=at,this._promiseCtor=bt,n&&this.setConfig(n)}var e,n,r;return e=t,n=[{key:"_applyFilter",value:function(t){for(var e=this._filters.length;e>0;e--){var n=this._filters[e-e][t];n&&n(this)}}},{key:"tween",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return this._isPlaying&&this.stop(),!e&&this._config||this.setConfig(e),this._pausedAtTime=null,this._timestamp=t.now(),this._start(this.get(),this._data),this._delay&&this._render(this._currentState,this._data,0),this._resume(this._timestamp)}},{key:"setConfig",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this._config;for(var r in e)n[r]=e[r];var o=n.promise,i=void 0===o?this._promiseCtor:o,a=n.start,l=void 0===a?at:a,c=n.finish,s=n.render,u=void 0===s?this._config.step||at:s,d=n.step,p=void 0===d?at:d;this._data=n.data||n.attachment||this._data,this._isPlaying=!1,this._pausedAtTime=null,this._scheduleId=null,this._delay=e.delay||0,this._start=l,this._render=u||p,this._duration=n.duration||500,this._promiseCtor=i,c&&(this._resolve=c);var h=e.from,f=e.to,v=void 0===f?{}:f,m=this._currentState,y=this._originalState,g=this._targetState;for(var b in h)m[b]=h[b];var C=!1;for(var k in m){var w=m[k];C||U(w)!==ot||(C=!0),y[k]=w,g[k]=v.hasOwnProperty(k)?v[k]:w}if(this._easing=yt(this._currentState,n.easing,this._easing),this._filters.length=0,C){for(var O in t.filters)t.filters[O].doesApply(this)&&this._filters.push(t.filters[O]);this._applyFilter(nt)}return this}},{key:"then",value:function(t,e){var n=this;return this._promise=new this._promiseCtor((function(t,e){n._resolve=t,n._reject=e})),this._promise.then(t,e)}},{key:"catch",value:function(t){return this.then().catch(t)}},{key:"finally",value:function(t){return this.then().finally(t)}},{key:"get",value:function(){return q({},this._currentState)}},{key:"set",value:function(t){this._currentState=t}},{key:"pause",value:function(){if(this._isPlaying)return this._pausedAtTime=t.now(),this._isPlaying=!1,gt(this),this}},{key:"resume",value:function(){return this._resume()}},{key:"_resume",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.now();return null===this._timestamp?this.tween():this._isPlaying?this._promise:(this._pausedAtTime&&(this._timestamp+=e-this._pausedAtTime,this._pausedAtTime=null),this._isPlaying=!0,null===lt?(lt=this,ct=this):(this._previous=ct,ct._next=this,ct=this),this)}},{key:"seek",value:function(e){e=Math.max(e,0);var n=t.now();return this._timestamp+e===0||(this._timestamp=n-e,dt(this,n)),this}},{key:"stop",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this._isPlaying)return this;this._isPlaying=!1,gt(this);var e=this._filters.length>0;return t&&(e&&this._applyFilter(et),ut(1,this._currentState,this._originalState,this._targetState,1,0,this._easing),e&&(this._applyFilter(X),this._applyFilter(tt))),this._resolve&&this._resolve({data:this._data,state:this._currentState,tweenable:this}),this._resolve=null,this._reject=null,this}},{key:"cancel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._currentState,n=this._data,r=this._isPlaying;return r?(this._reject&&this._reject({data:n,state:e,tweenable:this}),this._resolve=null,this._reject=null,this.stop(t)):this}},{key:"isPlaying",value:function(){return this._isPlaying}},{key:"hasEnded",value:function(){return this._hasEnded}},{key:"setScheduleFunction",value:function(e){t.setScheduleFunction(e)}},{key:"data",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t&&(this._data=q({},t)),this._data}},{key:"dispose",value:function(){for(var t in this)delete this[t]}}],n&&V(e.prototype,n),r&&V(e,r),t}();function kt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=new Ct;return e.tween(t),e.tweenable=e,e}Z(Ct,"now",(function(){return Q})),Z(Ct,"setScheduleFunction",(function(t){return it=t})),Z(Ct,"filters",{}),Z(Ct,"formulas",st),vt(!0);var wt,Ot,_t=/(\d|-|\.)/,xt=/([^\-0-9.]+)/g,St=/[0-9.-]+/g,Mt=(wt=St.source,Ot=/,\s*/.source,new RegExp("rgba?\\(".concat(wt).concat(Ot).concat(wt).concat(Ot).concat(wt,"(").concat(Ot).concat(wt,")?\\)"),"g")),jt=/^.*\(/,Nt=/#([0-9]|[a-f]){3,6}/gi,Lt="VAL",Pt=function(t,e){return t.map((function(t,n){return"_".concat(e,"_").concat(n)}))};function Et(t){return parseInt(t,16)}var Tt=function(t){return"rgb(".concat((e=t,3===(e=e.replace(/#/,"")).length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]),[Et(e.substr(0,2)),Et(e.substr(2,2)),Et(e.substr(4,2))]).join(","),")");var e},Ft=function(t,e,n){var r=e.match(t),o=e.replace(t,Lt);return r&&r.forEach((function(t){return o=o.replace(Lt,n(t))})),o},Dt=function(t){for(var e in t){var n=t[e];"string"==typeof n&&n.match(Nt)&&(t[e]=Ft(Nt,n,Tt))}},Wt=function(t){var e=t.match(St),n=e.slice(0,3).map(Math.floor),r=t.match(jt)[0];if(3===e.length)return"".concat(r).concat(n.join(","),")");if(4===e.length)return"".concat(r).concat(n.join(","),",").concat(e[3],")");throw new Error("Invalid rgbChunk: ".concat(t))},It=function(t){return t.match(St)},At=function(t,e){var n={};return e.forEach((function(e){n[e]=t[e],delete t[e]})),n},zt=function(t,e){return e.map((function(e){return t[e]}))},Rt=function(t,e){return e.forEach((function(e){return t=t.replace(Lt,+e.toFixed(4))})),t},Bt=function(t){for(var e in t._currentState)if("string"==typeof t._currentState[e])return!0;return!1};function Ht(t){var e=t._currentState;[e,t._originalState,t._targetState].forEach(Dt),t._tokenData=function(t){var e,n,r={};for(var o in t){var i=t[o];"string"==typeof i&&(r[o]={formatString:(e=i,n=void 0,n=e.match(xt),n?(1===n.length||e.charAt(0).match(_t))&&n.unshift(""):n=["",""],n.join(Lt)),chunkNames:Pt(It(i),o)})}return r}(e)}function Vt(t){var e=t._currentState,n=t._originalState,r=t._targetState,o=t._easing,i=t._tokenData;!function(t,e){var n=function(n){var r=e[n].chunkNames,o=t[n];if("string"==typeof o){var i=o.split(" "),a=i[i.length-1];r.forEach((function(e,n){return t[e]=i[n]||a}))}else r.forEach((function(e){return t[e]=o}));delete t[n]};for(var r in e)n(r)}(o,i),[e,n,r].forEach((function(t){return function(t,e){var n=function(n){It(t[n]).forEach((function(r,o){return t[e[n].chunkNames[o]]=+r})),delete t[n]};for(var r in e)n(r)}(t,i)}))}function Ut(t){var e=t._currentState,n=t._originalState,r=t._targetState,o=t._easing,i=t._tokenData;[e,n,r].forEach((function(t){return function(t,e){for(var n in e){var r=e[n],o=r.chunkNames,i=r.formatString,a=Rt(i,zt(At(t,o),o));t[n]=Ft(Mt,a,Wt)}}(t,i)})),function(t,e){for(var n in e){var r=e[n].chunkNames,o=t[r[0]];t[n]="string"==typeof o?r.map((function(e){var n=t[e];return delete t[e],n})).join(" "):o}}(o,i)}function Kt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function qt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Kt(Object(n),!0).forEach((function(e){Zt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Zt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Qt=new Ct,$t=Ct.filters,Gt=function(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=qt({},t),a=yt(t,r);for(var l in Qt._filters.length=0,Qt.set({}),Qt._currentState=i,Qt._originalState=t,Qt._targetState=e,Qt._easing=a,$t)$t[l].doesApply(Qt)&&Qt._filters.push($t[l]);Qt._applyFilter("tweenCreated"),Qt._applyFilter("beforeTween");var c=ut(n,i,t,e,1,o,a);return Qt._applyFilter("afterTween"),c};function Yt(t){return function(t){if(Array.isArray(t))return Jt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Jt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jt(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Xt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function te(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ee(t,e){var n=e.get(t);if(!n)throw new TypeError("attempted to get private field on non-instance");return n.get?n.get.call(t):n.value}var ne=new WeakMap,re=function(){function t(){Xt(this,t),ne.set(this,{writable:!0,value:[]});for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];n.forEach(this.add.bind(this))}var e,n,r;return e=t,(n=[{key:"add",value:function(t){return ee(this,ne).push(t),t}},{key:"remove",value:function(t){var e=ee(this,ne).indexOf(t);return~e&&ee(this,ne).splice(e,1),t}},{key:"empty",value:function(){return this.tweenables.map(this.remove.bind(this))}},{key:"isPlaying",value:function(){return ee(this,ne).some((function(t){return t.isPlaying()}))}},{key:"play",value:function(){return ee(this,ne).forEach((function(t){return t.tween()})),this}},{key:"pause",value:function(){return ee(this,ne).forEach((function(t){return t.pause()})),this}},{key:"resume",value:function(){return ee(this,ne).forEach((function(t){return t.resume()})),this}},{key:"stop",value:function(t){return ee(this,ne).forEach((function(e){return e.stop(t)})),this}},{key:"tweenables",get:function(){return Yt(ee(this,ne))}},{key:"promises",get:function(){return ee(this,ne).map((function(t){return t.then()}))}}])&&te(e.prototype,n),r&&te(e,r),t}();function oe(t,e,n,r,o,i){var a,l,c=0,s=0,u=0,d=0,p=0,h=0,f=function(t){return((c*t+s)*t+u)*t},v=function(t){return(3*c*t+2*s)*t+u},m=function(t){return t>=0?t:0-t};return c=1-(u=3*e)-(s=3*(r-e)-u),d=1-(h=3*n)-(p=3*(o-n)-h),a=t,l=function(t){return 1/(200*t)}(i),function(t){return((d*t+p)*t+h)*t}(function(t,e){var n,r,o,i,a,l;for(o=t,l=0;l<8;l++){if(i=f(o)-t,m(i)<e)return o;if(a=v(o),m(a)<1e-6)break;o-=i/a}if((o=t)<(n=0))return n;if(o>(r=1))return r;for(;n<r;){if(i=f(o),m(i-t)<e)return o;t>i?n=o:r=o,o=.5*(r-n)+n}return o}(a,l))}var ie=function(t,e,n,r,o){var i=function(t,e,n,r){return function(o){return oe(o,t,e,n,r,1)}}(e,n,r,o);return i.displayName=t,i.x1=e,i.y1=n,i.x2=r,i.y2=o,Ct.formulas[t]=i},ae=function(t){return delete Ct.formulas[t]};Ct.filters.token=o}},e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}return n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n(720)})()},p.exports=u();var h="Webkit Moz O ms".split(" ");function f(t,e,n){for(var r=t.style,o=0;o<h.length;++o){r[h[o]+v(e)]=n}r[e]=n}function v(t){return t.charAt(0).toUpperCase()+t.slice(1)}function m(t){return!function(t){return"[object Array]"===Object.prototype.toString.call(t)}(t)&&("object"===typeof t&&!!t)}function y(t,e){for(var n in t){if(t.hasOwnProperty(n))e(t[n],n)}}var g={extend:function t(e,n,r){for(var o in e=e||{},r=r||!1,n=n||{})if(n.hasOwnProperty(o)){var i=e[o],a=n[o];r&&m(i)&&m(a)?e[o]=t(i,a,r):e[o]=a}return e},render:function(t,e){var n=t;for(var r in e)if(e.hasOwnProperty(r)){var o=e[r],i=new RegExp("\\{"+r+"\\}","g");n=n.replace(i,o)}return n},setStyle:f,setStyles:function(t,e){y(e,(function(e,n){null!=e&&(m(e)&&!0===e.prefix?f(t,n,e.value):t.style[n]=e)}))},capitalize:v,isString:function(t){return"string"==typeof t||t instanceof String},isFunction:function(t){return"function"==typeof t},isObject:m,forEachObject:y,floatEquals:function(t,e){return Math.abs(t-e)<.001},removeChildren:function(t){for(;t.firstChild;)t.removeChild(t.firstChild)}},b=p.exports,C=g,k=b.Tweenable,w={easeIn:"easeInCubic",easeOut:"easeOutCubic",easeInOut:"easeInOutCubic"},O=function t(e,n){if(!(this instanceof t))throw new Error("Constructor was called without new keyword");var r;n=C.extend({delay:0,duration:800,easing:"linear",from:{},to:{},step:function(){}},n),r=C.isString(e)?document.querySelector(e):e,this.path=r,this._opts=n,this._tweenable=null;var o=this.path.getTotalLength();this.path.style.strokeDasharray=o+" "+o,this.set(0)};O.prototype.value=function(){var t=this._getComputedDashOffset(),e=this.path.getTotalLength();return parseFloat((1-t/e).toFixed(6),10)},O.prototype.set=function(t){this.stop(),this.path.style.strokeDashoffset=this._progressToOffset(t);var e=this._opts.step;if(C.isFunction(e)){var n=this._easing(this._opts.easing);e(this._calculateTo(t,n),this._opts.shape||this,this._opts.attachment)}},O.prototype.stop=function(){this._stopTween(),this.path.style.strokeDashoffset=this._getComputedDashOffset()},O.prototype.animate=function(t,e,n){e=e||{},C.isFunction(e)&&(n=e,e={});var r=C.extend({},e),o=C.extend({},this._opts);e=C.extend(o,e);var i=this._easing(e.easing),a=this._resolveFromAndTo(t,i,r);this.stop(),this.path.getBoundingClientRect();var l=this._getComputedDashOffset(),c=this._progressToOffset(t),s=this;this._tweenable=new k,this._tweenable.tween({from:C.extend({offset:l},a.from),to:C.extend({offset:c},a.to),duration:e.duration,delay:e.delay,easing:i,step:function(t){s.path.style.strokeDashoffset=t.offset;var n=e.shape||s;e.step(t,n,e.attachment)}}).then((function(t){C.isFunction(n)&&n()}))},O.prototype._getComputedDashOffset=function(){var t=window.getComputedStyle(this.path,null);return parseFloat(t.getPropertyValue("stroke-dashoffset"),10)},O.prototype._progressToOffset=function(t){var e=this.path.getTotalLength();return e-t*e},O.prototype._resolveFromAndTo=function(t,e,n){return n.from&&n.to?{from:n.from,to:n.to}:{from:this._calculateFrom(e),to:this._calculateTo(t,e)}},O.prototype._calculateFrom=function(t){return b.interpolate(this._opts.from,this._opts.to,this.value(),t)},O.prototype._calculateTo=function(t,e){return b.interpolate(this._opts.from,this._opts.to,t,e)},O.prototype._stopTween=function(){null!==this._tweenable&&(this._tweenable.stop(),this._tweenable=null)},O.prototype._easing=function(t){return w.hasOwnProperty(t)?w[t]:t};var _=O,x=_,S=g,M="Object is destroyed",j=function t(e,n){if(!(this instanceof t))throw new Error("Constructor was called without new keyword");if(0!==arguments.length){this._opts=S.extend({color:"#555",strokeWidth:1,trailColor:null,trailWidth:null,fill:null,text:{style:{color:null,position:"absolute",left:"50%",top:"50%",padding:0,margin:0,transform:{prefix:!0,value:"translate(-50%, -50%)"}},autoStyleContainer:!0,alignToBottom:!0,value:null,className:"progressbar-text"},svgStyle:{display:"block",width:"100%"},warnings:!1},n,!0),S.isObject(n)&&void 0!==n.svgStyle&&(this._opts.svgStyle=n.svgStyle),S.isObject(n)&&S.isObject(n.text)&&void 0!==n.text.style&&(this._opts.text.style=n.text.style);var r,o=this._createSvgView(this._opts);if(!(r=S.isString(e)?document.querySelector(e):e))throw new Error("Container does not exist: "+e);this._container=r,this._container.appendChild(o.svg),this._opts.warnings&&this._warnContainerAspectRatio(this._container),this._opts.svgStyle&&S.setStyles(o.svg,this._opts.svgStyle),this.svg=o.svg,this.path=o.path,this.trail=o.trail,this.text=null;var i=S.extend({attachment:void 0,shape:this},this._opts);this._progressPath=new x(o.path,i),S.isObject(this._opts.text)&&null!==this._opts.text.value&&this.setText(this._opts.text.value)}};j.prototype.animate=function(t,e,n){if(null===this._progressPath)throw new Error(M);this._progressPath.animate(t,e,n)},j.prototype.stop=function(){if(null===this._progressPath)throw new Error(M);void 0!==this._progressPath&&this._progressPath.stop()},j.prototype.pause=function(){if(null===this._progressPath)throw new Error(M);void 0!==this._progressPath&&this._progressPath._tweenable&&this._progressPath._tweenable.pause()},j.prototype.resume=function(){if(null===this._progressPath)throw new Error(M);void 0!==this._progressPath&&this._progressPath._tweenable&&this._progressPath._tweenable.resume()},j.prototype.destroy=function(){if(null===this._progressPath)throw new Error(M);this.stop(),this.svg.parentNode.removeChild(this.svg),this.svg=null,this.path=null,this.trail=null,this._progressPath=null,null!==this.text&&(this.text.parentNode.removeChild(this.text),this.text=null)},j.prototype.set=function(t){if(null===this._progressPath)throw new Error(M);this._progressPath.set(t)},j.prototype.value=function(){if(null===this._progressPath)throw new Error(M);return void 0===this._progressPath?0:this._progressPath.value()},j.prototype.setText=function(t){if(null===this._progressPath)throw new Error(M);null===this.text&&(this.text=this._createTextContainer(this._opts,this._container),this._container.appendChild(this.text)),S.isObject(t)?(S.removeChildren(this.text),this.text.appendChild(t)):this.text.innerHTML=t},j.prototype._createSvgView=function(t){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");this._initializeSvg(e,t);var n=null;(t.trailColor||t.trailWidth)&&(n=this._createTrail(t),e.appendChild(n));var r=this._createPath(t);return e.appendChild(r),{svg:e,path:r,trail:n}},j.prototype._initializeSvg=function(t,e){t.setAttribute("viewBox","0 0 100 100")},j.prototype._createPath=function(t){var e=this._pathString(t);return this._createPathElement(e,t)},j.prototype._createTrail=function(t){var e=this._trailString(t),n=S.extend({},t);return n.trailColor||(n.trailColor="#eee"),n.trailWidth||(n.trailWidth=n.strokeWidth),n.color=n.trailColor,n.strokeWidth=n.trailWidth,n.fill=null,this._createPathElement(e,n)},j.prototype._createPathElement=function(t,e){var n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttribute("d",t),n.setAttribute("stroke",e.color),n.setAttribute("stroke-width",e.strokeWidth),e.fill?n.setAttribute("fill",e.fill):n.setAttribute("fill-opacity","0"),n},j.prototype._createTextContainer=function(t,e){var n=document.createElement("div");n.className=t.text.className;var r=t.text.style;return r&&(t.text.autoStyleContainer&&(e.style.position="relative"),S.setStyles(n,r),r.color||(n.style.color=t.color)),this._initializeTextContainer(t,e,n),n},j.prototype._initializeTextContainer=function(t,e,n){},j.prototype._pathString=function(t){throw new Error("Override this function for each progress bar")},j.prototype._trailString=function(t){throw new Error("Override this function for each progress bar")},j.prototype._warnContainerAspectRatio=function(t){if(this.containerAspectRatio){var e=window.getComputedStyle(t,null),n=parseFloat(e.getPropertyValue("width"),10),r=parseFloat(e.getPropertyValue("height"),10);S.floatEquals(this.containerAspectRatio,n/r)||(console.warn("Incorrect aspect ratio of container","#"+t.id,"detected:",e.getPropertyValue("width")+"(width)","/",e.getPropertyValue("height")+"(height)","=",n/r),console.warn("Aspect ratio of should be",this.containerAspectRatio))}};var N=j,L=N,P=g,E=function(t,e){this._pathTemplate="M 0,{center} L 100,{center}",L.apply(this,arguments)};(E.prototype=new L).constructor=E,E.prototype._initializeSvg=function(t,e){t.setAttribute("viewBox","0 0 100 "+e.strokeWidth),t.setAttribute("preserveAspectRatio","none")},E.prototype._pathString=function(t){return P.render(this._pathTemplate,{center:t.strokeWidth/2})},E.prototype._trailString=function(t){return this._pathString(t)};var T=E,F=N,D=g,W=function(t,e){this._pathTemplate="M 50,50 m 0,-{radius} a {radius},{radius} 0 1 1 0,{2radius} a {radius},{radius} 0 1 1 0,-{2radius}",this.containerAspectRatio=1,F.apply(this,arguments)};(W.prototype=new F).constructor=W,W.prototype._pathString=function(t){var e=t.strokeWidth;t.trailWidth&&t.trailWidth>t.strokeWidth&&(e=t.trailWidth);var n=50-e/2;return D.render(this._pathTemplate,{radius:n,"2radius":2*n})},W.prototype._trailString=function(t){return this._pathString(t)};var I=W,A=N,z=I,R=g,B=function(t,e){this._pathTemplate="M 50,50 m -{radius},0 a {radius},{radius} 0 1 1 {2radius},0",this.containerAspectRatio=2,A.apply(this,arguments)};(B.prototype=new A).constructor=B,B.prototype._initializeSvg=function(t,e){t.setAttribute("viewBox","0 0 100 50")},B.prototype._initializeTextContainer=function(t,e,n){t.text.style&&(n.style.top="auto",n.style.bottom="0",t.text.alignToBottom?R.setStyle(n,"transform","translate(-50%, 0)"):R.setStyle(n,"transform","translate(-50%, 50%)"))},B.prototype._pathString=z.prototype._pathString,B.prototype._trailString=z.prototype._trailString;var H=B,V=N,U=g,K=function(t,e){this._pathTemplate="M 0,{halfOfStrokeWidth} L {width},{halfOfStrokeWidth} L {width},{width} L {halfOfStrokeWidth},{width} L {halfOfStrokeWidth},{strokeWidth}",this._trailTemplate="M {startMargin},{halfOfStrokeWidth} L {width},{halfOfStrokeWidth} L {width},{width} L {halfOfStrokeWidth},{width} L {halfOfStrokeWidth},{halfOfStrokeWidth}",V.apply(this,arguments)};(K.prototype=new V).constructor=K,K.prototype._pathString=function(t){var e=100-t.strokeWidth/2;return U.render(this._pathTemplate,{width:e,strokeWidth:t.strokeWidth,halfOfStrokeWidth:t.strokeWidth/2})},K.prototype._trailString=function(t){var e=100-t.strokeWidth/2;return U.render(this._trailTemplate,{width:e,strokeWidth:t.strokeWidth,halfOfStrokeWidth:t.strokeWidth/2,startMargin:t.strokeWidth/2-t.trailWidth/2})};var q,Z={Line:T,Circle:I,SemiCircle:H,Square:K,Path:_,Shape:N,utils:g},Q=function(e){var n=e.animate,a=e.progressOptions,l=e.className,c=r((function(){return q=document.createElement("div"),new Z.Circle(q,a)}),[]),s=o((function(t){t&&t.appendChild(q)}),[]);return i((function(){c.animate(n)}),[n,c]),t("div",{className:l,ref:s})};const $={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none"},G=a((({color:t="currentColor",size:e=24,strokeWidth:n,absoluteStrokeWidth:r=!1,className:o="",altIcon:i,showAlt:a=!1,icon:c,...s},u)=>{const d=void 0!==n?r?24*Number(n)/Number(e):n:void 0,p=void 0!==d?{strokeWidth:d,stroke:"currentColor"}:{},h={ref:u,...$,width:e,height:e,color:t,className:o,...p,...s},f=(a&&i?i:c).map((([t,e])=>l(t,{...e,...p,key:e.key})));return l("svg",h,f)}));G.displayName="HugeiconsIcon";const Y=[["path",{d:"M5.32171 9.6829C7.73539 5.41196 8.94222 3.27648 10.5983 2.72678C11.5093 2.42437 12.4907 2.42437 13.4017 2.72678C15.0578 3.27648 16.2646 5.41196 18.6783 9.6829C21.092 13.9538 22.2988 16.0893 21.9368 17.8293C21.7376 18.7866 21.2469 19.6548 20.535 20.3097C19.241 21.5 16.8274 21.5 12 21.5C7.17265 21.5 4.75897 21.5 3.46496 20.3097C2.75308 19.6548 2.26239 18.7866 2.06322 17.8293C1.70119 16.0893 2.90803 13.9538 5.32171 9.6829Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.992 16H12.001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",key:"1"}],["path",{d:"M12 13L12 8.99997",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],J=[["path",{d:"M18 9.00005C18 9.00005 13.5811 15 12 15C10.4188 15 6 9 6 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],X=[["path",{d:"M9.00005 6C9.00005 6 15 10.4189 15 12C15 13.5812 9 18 9 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],tt=[["path",{d:"M17.9998 15C17.9998 15 13.5809 9.00001 11.9998 9C10.4187 8.99999 5.99985 15 5.99985 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],et=[["path",{d:"M18 2V4M6 2V4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.5 12.2432C2.5 7.88594 2.5 5.70728 3.75212 4.35364C5.00424 3 7.01949 3 11.05 3H12.95C16.9805 3 18.9958 3 20.2479 4.35364C21.5 5.70728 21.5 7.88594 21.5 12.2432V12.7568C21.5 17.1141 21.5 19.2927 20.2479 20.6464C18.9958 22 16.9805 22 12.95 22H11.05C7.01949 22 5.00424 22 3.75212 20.6464C2.5 19.2927 2.5 17.1141 2.5 12.7568V12.2432Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 8H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],nt=[["path",{d:"M9.1585 5.71223L8.75584 4.80625C8.49256 4.21388 8.36092 3.91768 8.16405 3.69101C7.91732 3.40694 7.59571 3.19794 7.23592 3.08785C6.94883 3 6.6247 3 5.97645 3C5.02815 3 4.554 3 4.15597 3.18229C3.68711 3.39702 3.26368 3.86328 3.09497 4.3506C2.95175 4.76429 2.99278 5.18943 3.07482 6.0397C3.94815 15.0902 8.91006 20.0521 17.9605 20.9254C18.8108 21.0075 19.236 21.0485 19.6496 20.9053C20.137 20.7366 20.6032 20.3131 20.818 19.8443C21.0002 19.4462 21.0002 18.9721 21.0002 18.0238C21.0002 17.3755 21.0002 17.0514 20.9124 16.7643C20.8023 16.4045 20.5933 16.0829 20.3092 15.8362C20.0826 15.6393 19.7864 15.5077 19.194 15.2444L18.288 14.8417C17.6465 14.5566 17.3257 14.4141 16.9998 14.3831C16.6878 14.3534 16.3733 14.3972 16.0813 14.5109C15.7762 14.6297 15.5066 14.8544 14.9672 15.3038C14.4304 15.7512 14.162 15.9749 13.834 16.0947C13.5432 16.2009 13.1588 16.2403 12.8526 16.1951C12.5071 16.1442 12.2426 16.0029 11.7135 15.7201C10.0675 14.8405 9.15977 13.9328 8.28011 12.2867C7.99738 11.7577 7.85602 11.4931 7.80511 11.1477C7.75998 10.8414 7.79932 10.457 7.90554 10.1663C8.02536 9.83828 8.24905 9.56986 8.69643 9.033C9.14586 8.49368 9.37058 8.22402 9.48939 7.91891C9.60309 7.62694 9.64686 7.3124 9.61719 7.00048C9.58618 6.67452 9.44362 6.35376 9.1585 5.71223Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}]],rt=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V12L14 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],ot=[["path",{d:"M17.4776 9.01106C17.485 9.01102 17.4925 9.01101 17.5 9.01101C19.9853 9.01101 22 11.0294 22 13.5193C22 15.8398 20.25 17.7508 18 18M17.4776 9.01106C17.4924 8.84606 17.5 8.67896 17.5 8.51009C17.5 5.46695 15.0376 3 12 3C9.12324 3 6.76233 5.21267 6.52042 8.03192M17.4776 9.01106C17.3753 10.1476 16.9286 11.1846 16.2428 12.0165M6.52042 8.03192C3.98398 8.27373 2 10.4139 2 13.0183C2 15.4417 3.71776 17.4632 6 17.9273M6.52042 8.03192C6.67826 8.01687 6.83823 8.00917 7 8.00917C8.12582 8.00917 9.16474 8.38194 10.0005 9.01101",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 21L12 13M12 21C11.2998 21 9.99153 19.0057 9.5 18.5M12 21C12.7002 21 14.0085 19.0057 14.5 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],it=[["path",{d:"M19.5 5.5L18.8803 15.5251C18.7219 18.0864 18.6428 19.3671 18.0008 20.2879C17.6833 20.7431 17.2747 21.1273 16.8007 21.416C15.8421 22 14.559 22 11.9927 22C9.42312 22 8.1383 22 7.17905 21.4149C6.7048 21.1257 6.296 20.7408 5.97868 20.2848C5.33688 19.3626 5.25945 18.0801 5.10461 15.5152L4.5 5.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 5.5H21M16.0557 5.5L15.3731 4.09173C14.9196 3.15626 14.6928 2.68852 14.3017 2.39681C14.215 2.3321 14.1231 2.27454 14.027 2.2247C13.5939 2 13.0741 2 12.0345 2C10.9688 2 10.436 2 9.99568 2.23412C9.8981 2.28601 9.80498 2.3459 9.71729 2.41317C9.32164 2.7167 9.10063 3.20155 8.65861 4.17126L8.05292 5.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M9.5 16.5L9.5 10.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M14.5 16.5L14.5 10.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}]],at=[["path",{d:"M8 7L16 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 11L12 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M13 21.5V21C13 18.1716 13 16.7574 13.8787 15.8787C14.7574 15 16.1716 15 19 15H19.5M20 13.3431V10C20 6.22876 20 4.34315 18.8284 3.17157C17.6569 2 15.7712 2 12 2C8.22877 2 6.34315 2 5.17157 3.17157C4 4.34314 4 6.22876 4 10L4 14.5442C4 17.7892 4 19.4117 4.88607 20.5107C5.06508 20.7327 5.26731 20.9349 5.48933 21.1139C6.58831 22 8.21082 22 11.4558 22C12.1614 22 12.5141 22 12.8372 21.886C12.9044 21.8623 12.9702 21.835 13.0345 21.8043C13.3436 21.6564 13.593 21.407 14.0919 20.9081L18.8284 16.1716C19.4065 15.5935 19.6955 15.3045 19.8478 14.9369C20 14.5694 20 14.1606 20 13.3431Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],lt=[["path",{d:"M13.5 17H17C19.7614 17 22 14.7614 22 12C22 9.23858 19.7614 7 17 7H13.5M10.5 17H7C4.23858 17 2 14.7614 2 12C2 9.23858 4.23858 7 7 7H10.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9 12H15",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]],ct=[["path",{d:"M19.1918 9.44118L17.2265 7.46899C15.8104 6.04799 15.2554 5.28357 14.4886 5.55381C13.5325 5.89077 13.8472 8.01692 13.8472 8.73471C12.3607 8.73471 10.8152 8.60259 9.34985 8.87787C4.51259 9.78664 3 13.7153 3 18C4.3691 17.0302 5.73683 15.997 7.38233 15.5476C9.43637 14.9865 11.7304 15.2542 13.8472 15.2542C13.8472 15.972 13.5325 18.0982 14.4886 18.4351C15.3575 18.7413 15.8104 17.9409 17.2265 16.5199L19.1918 14.5477C20.3973 13.338 21 12.7332 21 11.9945C21 11.2558 20.3973 10.6509 19.1918 9.44118Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],st=[["path",{d:"M7.5 12H13.5M7.5 8H10.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8.5 20C9.55038 20.8697 10.8145 21.4238 12.2635 21.5188C13.4052 21.5937 14.5971 21.5936 15.7365 21.5188C16.1288 21.4931 16.5565 21.4007 16.9248 21.251C17.3345 21.0845 17.5395 21.0012 17.6437 21.0138C17.7478 21.0264 17.8989 21.1364 18.2011 21.3563C18.7339 21.744 19.4051 22.0225 20.4005 21.9986C20.9038 21.9865 21.1555 21.9804 21.2681 21.7909C21.3808 21.6013 21.2405 21.3389 20.9598 20.8141C20.5706 20.0862 20.324 19.2529 20.6977 18.5852C21.3413 17.6315 21.8879 16.5021 21.9678 15.2823C22.0107 14.6269 22.0107 13.9481 21.9678 13.2927C21.9146 12.4799 21.7173 11.7073 21.4012 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.345 17.4868C15.9006 17.2526 18.7328 14.4069 18.9658 10.8344C19.0114 10.1353 19.0114 9.41131 18.9658 8.71219C18.7328 5.13969 15.9006 2.29401 12.345 2.05985C11.132 1.97997 9.86553 1.98013 8.65499 2.05985C5.09943 2.29401 2.26725 5.13969 2.0342 8.71219C1.9886 9.41131 1.9886 10.1353 2.0342 10.8344C2.11908 12.1356 2.69992 13.3403 3.38372 14.3576C3.78076 15.0697 3.51873 15.9586 3.10518 16.735C2.807 17.2948 2.65791 17.5747 2.77762 17.7769C2.89732 17.9791 3.16472 17.9856 3.69951 17.9985C4.75712 18.024 5.47028 17.7269 6.03638 17.3134C6.35744 17.0788 6.51798 16.9615 6.62862 16.9481C6.73926 16.9346 6.957 17.0234 7.39241 17.2011C7.78374 17.3608 8.23812 17.4593 8.65499 17.4868C9.86553 17.5665 11.132 17.5666 12.345 17.4868Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],ut=[["path",{d:"M21.7109 9.3871C21.8404 9.895 21.9249 10.4215 21.9598 10.9621C22.0134 11.7929 22.0134 12.6533 21.9598 13.4842C21.6856 17.7299 18.3536 21.1118 14.1706 21.3901C12.7435 21.485 11.2536 21.4848 9.8294 21.3901C9.33896 21.3574 8.8044 21.2403 8.34401 21.0505C7.83177 20.8394 7.5756 20.7338 7.44544 20.7498C7.31527 20.7659 7.1264 20.9052 6.74868 21.184C6.08268 21.6755 5.24367 22.0285 3.99943 21.9982C3.37026 21.9829 3.05568 21.9752 2.91484 21.7349C2.77401 21.4946 2.94941 21.1619 3.30021 20.4966C3.78674 19.5739 4.09501 18.5176 3.62791 17.6712C2.82343 16.4623 2.1401 15.0305 2.04024 13.4842C1.98659 12.6533 1.98659 11.7929 2.04024 10.9621C2.31441 6.71638 5.64639 3.33448 9.8294 3.05621C10.2156 3.03051 10.6067 3.01177 11 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8.5 15H15.5M8.5 10H12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M22 4.5L14 4.5M22 4.5C22 3.79977 20.0057 2.49153 19.5 2M22 4.5C22 5.20023 20.0057 6.50847 19.5 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],dt=[["path",{d:"M11.9959 12H12.0049",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",key:"0"}],["path",{d:"M17.9998 12H18.0088",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",key:"1"}],["path",{d:"M5.99981 12H6.00879",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",key:"2"}]],pt=[["path",{d:"M5 14L8.5 17.5L19 6.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],ht=[["path",{d:"M2.5 13.8333L6 17.5L7.02402 16.4272M16.5 6.5L10.437 12.8517",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.5 13.8333L11 17.5L21.5 6.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],ft=[["path",{d:"M5.25 5L19.25 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M22.25 12C22.25 6.47715 17.7728 2 12.25 2C6.72715 2 2.25 6.47715 2.25 12C2.25 17.5228 6.72715 22 12.25 22C17.7728 22 22.25 17.5228 22.25 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]],vt=[["path",{d:"M2 11C2 7.70017 2 6.05025 3.02513 5.02513C4.05025 4 5.70017 4 9 4H10C13.2998 4 14.9497 4 15.9749 5.02513C17 6.05025 17 7.70017 17 11V13C17 16.2998 17 17.9497 15.9749 18.9749C14.9497 20 13.2998 20 10 20H9C5.70017 20 4.05025 20 3.02513 18.9749C2 17.9497 2 16.2998 2 13V11Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 8.90585L17.1259 8.80196C19.2417 7.05623 20.2996 6.18336 21.1498 6.60482C22 7.02628 22 8.42355 22 11.2181V12.7819C22 15.5765 22 16.9737 21.1498 17.3952C20.2996 17.8166 19.2417 16.9438 17.1259 15.198L17 15.0941",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"11.5",cy:"9.5",r:"1.5",stroke:"currentColor",strokeWidth:"1.5",key:"2"}]],mt=[["path",{d:"M14 14.8135V9.18646C14 6.04126 14 4.46866 13.0747 4.0773C12.1494 3.68593 11.0603 4.79793 8.88232 7.02192C7.75439 8.17365 7.11085 8.42869 5.50604 8.42869C4.10257 8.42869 3.40084 8.42869 2.89675 8.77262C1.85035 9.48655 2.00852 10.882 2.00852 12C2.00852 13.118 1.85035 14.5134 2.89675 15.2274C3.40084 15.5713 4.10257 15.5713 5.50604 15.5713C7.11085 15.5713 7.75439 15.8264 8.88232 16.9781C11.0603 19.2021 12.1494 20.3141 13.0747 19.9227C14 19.5313 14 17.9587 14 14.8135Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 9C17.6254 9.81968 18 10.8634 18 12C18 13.1366 17.6254 14.1803 17 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20 7C21.2508 8.36613 22 10.1057 22 12C22 13.8943 21.2508 15.6339 20 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],yt=[["path",{d:"M22 22L2 2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 10C17.6296 10.7667 18 11.7054 18 12.7195C18 13.1635 17.929 13.593 17.7963 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20 8C21.2508 9.22951 22 10.7952 22 12.5C22 13.9164 21.4829 15.2367 20.5906 16.348",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M14 14C14 17.1452 14 19.5313 13.074 19.9227C12.1481 20.3141 11.0583 19.2021 8.8787 16.9781C7.7499 15.8264 7.106 15.5713 5.5 15.5713C4.3879 15.5713 3.02749 15.7187 2.33706 14.6643C2 14.1496 2 13.4331 2 12C2 10.5669 2 9.85038 2.33706 9.33566C3.02749 8.28131 4.3879 8.42869 5.5 8.42869C6.60725 8.42869 7.3569 8.43869 7.96 7.96M14 9.5C14 6.3548 14.026 4.46866 13.1 4.0773C12.3292 3.75147 11.5323 4.46765 10 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]];var gt,bt=function(){return bt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},bt.apply(this,arguments)},Ct=function(n){var r,o,i,a,l,c,s,u,d,p,h,f,v,m={strokeWidth:2.3,color:"#efe",trailColor:"#aaa",trailWidth:1,step:function(t,e){var n,r;e.path.setAttribute("trail",null===(n=null==t?void 0:t.state)||void 0===n?void 0:n.color),e.path.setAttribute("trailwidth-width",null===(r=null==t?void 0:t.state)||void 0===r?void 0:r.width);var o=Math.round(100*e.value());0===o?e.setText(""):e.setText(o)}},y=(null===(r=null==n?void 0:n.data)||void 0===r?void 0:r.status)&&!0===(null===(o=null==n?void 0:n.data)||void 0===o?void 0:o.status.error);return e("div",bt({className:"rce-mbox-photo"},{children:[e("div",bt({className:"rce-mbox-photo--img",style:bt({},(null===(i=null==n?void 0:n.data)||void 0===i?void 0:i.width)&&(null===(a=null==n?void 0:n.data)||void 0===a?void 0:a.height)&&{width:n.data.width,height:n.data.height})},{children:[t("img",{src:null===(l=null==n?void 0:n.data)||void 0===l?void 0:l.uri,alt:null===(c=null==n?void 0:n.data)||void 0===c?void 0:c.alt,onClick:n.onOpen,onLoad:n.onLoad,onError:n.onPhotoError}),y&&t("div",bt({className:"rce-mbox-photo--img__block"},{children:t("span",bt({className:"rce-mbox-photo--img__block-item rce-mbox-photo--error"},{children:t(G,{icon:Y})}))})),!y&&(null===(s=null==n?void 0:n.data)||void 0===s?void 0:s.status)&&!(null===(d=null===(u=null==n?void 0:n.data)||void 0===u?void 0:u.status)||void 0===d?void 0:d.download)&&e("div",bt({className:"rce-mbox-photo--img__block"},{children:[!(null===(p=null==n?void 0:n.data)||void 0===p?void 0:p.status.click)&&t("button",bt({onClick:n.onDownload,className:"rce-mbox-photo--img__block-item rce-mbox-photo--download"},{children:t(G,{icon:ot})})),"number"==typeof(null===(h=null==n?void 0:n.data)||void 0===h?void 0:h.status.loading)&&0!==(null===(f=null==n?void 0:n.data)||void 0===f?void 0:f.status.loading)&&t(Q,{animate:null===(v=null==n?void 0:n.data)||void 0===v?void 0:v.status.loading,progressOptions:m,className:"rce-mbox-photo--img__block-item"})]}))]})),(null==n?void 0:n.text)&&t("div",bt({className:"rce-mbox-text"},{children:n.text}))]}))},kt=function(){return kt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},kt.apply(this,arguments)},wt=function(n){var r,o,i,a,l,c,s,u,d,p={strokeWidth:5,color:"#333",trailColor:"#aaa",trailWidth:5,step:function(t,e){e.path.setAttribute("trail",t.color),e.path.setAttribute("trailwidth-width",t.width);var n=Math.round(100*e.value());0===n?e.setText(""):e.setText(n)}},h=(null===(r=null==n?void 0:n.data)||void 0===r?void 0:r.status)&&!0===(null===(o=null==n?void 0:n.data)||void 0===o?void 0:o.status.error);return t("div",kt({className:"rce-mbox-file"},{children:e("button",kt({onClick:function(t){var e,r,o;(null===(e=null==n?void 0:n.data)||void 0===e?void 0:e.status)&&(!(null===(r=null==n?void 0:n.data)||void 0===r?void 0:r.status.download)&&n.onDownload instanceof Function?n.onDownload(t):(null===(o=null==n?void 0:n.data)||void 0===o?void 0:o.status.download)&&n.onOpen instanceof Function&&n.onOpen(t))}},{children:[e("div",kt({className:"rce-mbox-file--icon"},{children:[t(G,{icon:at,color:"#aaa"}),t("div",kt({className:"rce-mbox-file--size"},{children:null==n?void 0:n.data.size}))]})),t("div",kt({className:"rce-mbox-file--text"},{children:n.text})),e("div",kt({className:"rce-mbox-file--buttons"},{children:[h&&t("span",kt({className:"rce-error-button"},{children:t(G,{icon:Y,color:"#ff3d3d"})})),!h&&(null===(i=null==n?void 0:n.data)||void 0===i?void 0:i.status)&&!(null===(a=null==n?void 0:n.data)||void 0===a?void 0:a.status.download)&&!(null===(l=null==n?void 0:n.data)||void 0===l?void 0:l.status.click)&&t(G,{icon:ot,color:"#aaa"}),!h&&(null===(c=null==n?void 0:n.data)||void 0===c?void 0:c.status)&&"number"==typeof(null===(s=null==n?void 0:n.data)||void 0===s?void 0:s.status.loading)&&0!==(null===(u=null==n?void 0:n.data)||void 0===u?void 0:u.status.loading)&&t(Q,{animate:null===(d=null==n?void 0:n.data)||void 0===d?void 0:d.status.loading,className:"rce-mbox-file--loading",progressOptions:p})]}))]}))}))},Ot={exports:{}}; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ gt=Ot,function(){var t={}.hasOwnProperty;function e(){for(var n=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)n.push(o);else if(Array.isArray(o)){if(o.length){var a=e.apply(null,o);a&&n.push(a)}}else if("object"===i){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){n.push(o.toString());continue}for(var l in o)t.call(o,l)&&o[l]&&n.push(l)}}}return n.join(" ")}gt.exports?(e.default=e,gt.exports=e):window.classNames=e}();var _t=Ot.exports,xt=function(){return xt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},xt.apply(this,arguments)},St=function(e){return t("div",xt({className:_t("rce-container-smsg",e.className)},{children:t("div",xt({className:"rce-smsg"},{children:t("div",xt({className:"rce-smsg-text"},{children:e.text}))}))}))},Mt=function(){return Mt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Mt.apply(this,arguments)},jt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n},Nt=function(n){var r,o=n.markerColor,i=void 0===o?"red":o,a=n.target,l=void 0===a?"_blank":a,c=n.zoom,s=void 0===c?"14":c,u=jt(n,["ma