diff --git a/assets/index-035fbbbd.js b/assets/index-183bc25d.js similarity index 90% rename from assets/index-035fbbbd.js rename to assets/index-183bc25d.js index be0c9b9..778dd31 100644 --- a/assets/index-035fbbbd.js +++ b/assets/index-183bc25d.js @@ -73,7 +73,7 @@ Error generating stack: `+_e.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function _extends(){return _extends=Object.assign?Object.assign.bind():function(i){for(var o=1;o{let o;const g=new Set,$=(tt,nt)=>{const st=typeof tt=="function"?tt(o):tt;if(!Object.is(st,o)){const ft=o;o=nt??typeof st!="object"?st:Object.assign({},o,st),g.forEach(it=>it(o,ft))}},j=()=>o,rt={setState:$,getState:j,subscribe:tt=>(g.add(tt),()=>g.delete(tt)),destroy:()=>{g.clear()}};return o=i($,j,rt),rt},createStore=i=>i?createStoreImpl(i):createStoreImpl;var withSelector={exports:{}},withSelector_production_min={};/** + */function _extends(){return _extends=Object.assign?Object.assign.bind():function(i){for(var o=1;o{const[i,o]=x();reactExports.useEffect(()=>{i||o()},[])},createStoreImpl=i=>{let o;const g=new Set,$=(tt,nt)=>{const st=typeof tt=="function"?tt(o):tt;if(!Object.is(st,o)){const ft=o;o=nt??typeof st!="object"?st:Object.assign({},o,st),g.forEach(it=>it(o,ft))}},j=()=>o,rt={setState:$,getState:j,subscribe:tt=>(g.add(tt),()=>g.delete(tt)),destroy:()=>{g.clear()}};return o=i($,j,rt),rt},createStore=i=>i?createStoreImpl(i):createStoreImpl;var withSelector={exports:{}},withSelector_production_min={};/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * @@ -81,11 +81,11 @@ Error generating stack: `+_e.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var h$2=reactExports,n=shimExports;function p(i,o){return i===o&&(i!==0||1/i===1/o)||i!==i&&o!==o}var q=typeof Object.is=="function"?Object.is:p,r=n.useSyncExternalStore,t=h$2.useRef,u=h$2.useEffect,v$2=h$2.useMemo,w$2=h$2.useDebugValue;withSelector_production_min.useSyncExternalStoreWithSelector=function(i,o,g,$,j){var _e=t(null);if(_e.current===null){var et={hasValue:!1,value:null};_e.current=et}else et=_e.current;_e=v$2(function(){function tt(pt){if(!nt){if(nt=!0,st=pt,pt=$(pt),j!==void 0&&et.hasValue){var ut=et.value;if(j(ut,pt))return ft=ut}return ft=pt}if(ut=ft,q(st,pt))return ut;var ht=$(pt);return j!==void 0&&j(ut,ht)?ut:(st=pt,ft=ht)}var nt=!1,st,ft,it=g===void 0?null:g;return[function(){return tt(o())},it===null?void 0:function(){return tt(it())}]},[o,g,$,j]);var rt=r(i,_e[0],_e[1]);return u(function(){et.hasValue=!0,et.value=rt},[rt]),w$2(rt),rt};withSelector.exports=withSelector_production_min;var withSelectorExports=withSelector.exports;const useSyncExternalStoreExports=getDefaultExportFromCjs(withSelectorExports),{useSyncExternalStoreWithSelector}=useSyncExternalStoreExports;function useStore$1(i,o=i.getState,g){const $=useSyncExternalStoreWithSelector(i.subscribe,i.getState,i.getServerState||i.getState,o,g);return reactExports.useDebugValue($),$}const createImpl=i=>{const o=typeof i=="function"?createStore(i):i,g=($,j)=>useStore$1(o,$,j);return Object.assign(g,o),g},create$1=i=>i?createImpl(i):createImpl,useStore=create$1((i,o)=>({txId:void 0,setTxId:g=>i({txId:g}),users:[],setUsers:g=>i({users:g}),selectPersonId:null,setSelectPersonId:g=>i({selectPersonId:g}),currencies:[],setCurrencies:g=>i({currencies:g}),setCurrency:g=>{o().transaction!==void 0&&i({transaction:{...o().transaction,currency_id:g}})},transaction:void 0,setTransaction:g=>i({transaction:g}),isSuccess:null,setSuccess:g=>i({isSuccess:g}),txPatchError:null,setTxPatchError:g=>i({txPatchError:g})})),useInit=()=>{const{txId:i,setTxId:o}=useStore(),g=useLocation(),[$]=M();if(i===void 0){const _e=new URLSearchParams(g.search).get("txid"),et=$.start_param;o(_e||et||null)}},mockCurrencies$1=[{_id:"RUB",symbol:"₽",title:"Рубль",in:"В рублях"},{_id:"GEL",symbol:"₾",title:"Лари",in:"В лари"},{_id:"TRY",symbol:"₺",title:"Лира",in:"В лирах"},{_id:"EUR",symbol:"€",title:"Евро",in:"В евро"},{_id:"USD",symbol:"$",title:"Доллар",in:"В долларах"},{_id:"GBP",symbol:"£",title:"Фунт",in:"В фунтах"},{_id:"UAH",symbol:"₴",title:"Гривна",in:"В гривнах"},{_id:"BYN",symbol:"Br",title:"Бел. рубль",in:"В бел. рублях"},{_id:"KZT",symbol:"₸",title:"Тенге",in:"В тенге"},{_id:"CNY",symbol:"¥",title:"Юань",in:"В юанях"},{_id:"JPY",symbol:"¥",title:"Иена",in:"В иенах"},{_id:"CHF",symbol:"₣",title:"Франк",in:"В франках"},{_id:"CAD",symbol:"$",title:"Кан. доллар",in:"В кан. долларах"},{_id:"AUD",symbol:"$",title:"Австр. доллар",in:"В австр. долларах"},{_id:"NZD",symbol:"$",title:"Нов. доллар",in:"В нов. долларах"},{_id:"AZN",symbol:"₼",title:"Азерб. манат",in:"В азерб. манатах"},{_id:"AMD",symbol:"֏",title:"Арм. драм",in:"В арм. драмах"},{_id:"KGS",symbol:"с",title:"Сом",in:"В сомах"},{_id:"RSD",symbol:"дин",title:"Динар",in:"В динарах"},{_id:"BGN",symbol:"лв",title:"Лев",in:"В левах"}],TOLERANCE=.03,decimals=2,visible_decimals=2,consoleLogger={type:"logger",log(i){this.output("log",i)},warn(i){this.output("warn",i)},error(i){this.output("error",i)},output(i,o){console&&console[i]&&console[i].apply(console,o)}};class Logger{constructor(o){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(o,g)}init(o){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=g.prefix||"i18next:",this.logger=o||consoleLogger,this.options=g,this.debug=g.debug}log(){for(var o=arguments.length,g=new Array(o),$=0;${this.observers[$]=this.observers[$]||[],this.observers[$].push(g)}),this}off(o,g){if(this.observers[o]){if(!g){delete this.observers[o];return}this.observers[o]=this.observers[o].filter($=>$!==g)}}emit(o){for(var g=arguments.length,$=new Array(g>1?g-1:0),j=1;j{et(...$)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(et=>{et.apply(et,[o,...$])})}}function defer(){let i,o;const g=new Promise(($,j)=>{i=$,o=j});return g.resolve=i,g.reject=o,g}function makeString(i){return i==null?"":""+i}function copy(i,o,g){i.forEach($=>{o[$]&&(g[$]=o[$])})}function getLastOfPath(i,o,g){function $(et){return et&&et.indexOf("###")>-1?et.replace(/###/g,"."):et}function j(){return!i||typeof i=="string"}const _e=typeof o!="string"?[].concat(o):o.split(".");for(;_e.length>1;){if(j())return{};const et=$(_e.shift());!i[et]&&g&&(i[et]=new g),Object.prototype.hasOwnProperty.call(i,et)?i=i[et]:i={}}return j()?{}:{obj:i,k:$(_e.shift())}}function setPath(i,o,g){const{obj:$,k:j}=getLastOfPath(i,o,Object);$[j]=g}function pushPath(i,o,g,$){const{obj:j,k:_e}=getLastOfPath(i,o,Object);j[_e]=j[_e]||[],$&&(j[_e]=j[_e].concat(g)),$||j[_e].push(g)}function getPath(i,o){const{obj:g,k:$}=getLastOfPath(i,o);if(g)return g[$]}function getPathWithDefaults(i,o,g){const $=getPath(i,g);return $!==void 0?$:getPath(o,g)}function deepExtend(i,o,g){for(const $ in o)$!=="__proto__"&&$!=="constructor"&&($ in i?typeof i[$]=="string"||i[$]instanceof String||typeof o[$]=="string"||o[$]instanceof String?g&&(i[$]=o[$]):deepExtend(i[$],o[$],g):i[$]=o[$]);return i}function regexEscape(i){return i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var _entityMap={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function escape(i){return typeof i=="string"?i.replace(/[&<>"'\/]/g,o=>_entityMap[o]):i}const chars=[" ",",","?","!",";"];function looksLikeObjectPath(i,o,g){o=o||"",g=g||"";const $=chars.filter(et=>o.indexOf(et)<0&&g.indexOf(et)<0);if($.length===0)return!0;const j=new RegExp(`(${$.map(et=>et==="?"?"\\?":et).join("|")})`);let _e=!j.test(i);if(!_e){const et=i.indexOf(g);et>0&&!j.test(i.substring(0,et))&&(_e=!0)}return _e}function deepFind(i,o){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!i)return;if(i[o])return i[o];const $=o.split(g);let j=i;for(let _e=0;_e<$.length;++_e){if(!j||typeof j[$[_e]]=="string"&&_e+1<$.length)return;if(j[$[_e]]===void 0){let et=2,rt=$.slice(_e,_e+et).join(g),tt=j[rt];for(;tt===void 0&&$.length>_e+et;)et++,rt=$.slice(_e,_e+et).join(g),tt=j[rt];if(tt===void 0)return;if(tt===null)return null;if(o.endsWith(rt)){if(typeof tt=="string")return tt;if(rt&&typeof tt[rt]=="string")return tt[rt]}const nt=$.slice(_e+et).join(g);return nt?deepFind(tt,nt,g):void 0}j=j[$[_e]]}return j}function getCleanedCode(i){return i&&i.indexOf("_")>0?i.replace("_","-"):i}class ResourceStore extends EventEmitter{constructor(o){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=o||{},this.options=g,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(o){this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}removeNamespaces(o){const g=this.options.ns.indexOf(o);g>-1&&this.options.ns.splice(g,1)}getResource(o,g,$){let j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const _e=j.keySeparator!==void 0?j.keySeparator:this.options.keySeparator,et=j.ignoreJSONStructure!==void 0?j.ignoreJSONStructure:this.options.ignoreJSONStructure;let rt=[o,g];$&&typeof $!="string"&&(rt=rt.concat($)),$&&typeof $=="string"&&(rt=rt.concat(_e?$.split(_e):$)),o.indexOf(".")>-1&&(rt=o.split("."));const tt=getPath(this.data,rt);return tt||!et||typeof $!="string"?tt:deepFind(this.data&&this.data[o]&&this.data[o][g],$,_e)}addResource(o,g,$,j){let _e=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const et=_e.keySeparator!==void 0?_e.keySeparator:this.options.keySeparator;let rt=[o,g];$&&(rt=rt.concat(et?$.split(et):$)),o.indexOf(".")>-1&&(rt=o.split("."),j=g,g=rt[1]),this.addNamespaces(g),setPath(this.data,rt,j),_e.silent||this.emit("added",o,g,$,j)}addResources(o,g,$){let j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const _e in $)(typeof $[_e]=="string"||Object.prototype.toString.apply($[_e])==="[object Array]")&&this.addResource(o,g,_e,$[_e],{silent:!0});j.silent||this.emit("added",o,g,$)}addResourceBundle(o,g,$,j,_e){let et=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},rt=[o,g];o.indexOf(".")>-1&&(rt=o.split("."),j=$,$=g,g=rt[1]),this.addNamespaces(g);let tt=getPath(this.data,rt)||{};j?deepExtend(tt,$,_e):tt={...tt,...$},setPath(this.data,rt,tt),et.silent||this.emit("added",o,g,$)}removeResourceBundle(o,g){this.hasResourceBundle(o,g)&&delete this.data[o][g],this.removeNamespaces(g),this.emit("removed",o,g)}hasResourceBundle(o,g){return this.getResource(o,g)!==void 0}getResourceBundle(o,g){return g||(g=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(o,g)}:this.getResource(o,g)}getDataByLanguage(o){return this.data[o]}hasLanguageSomeTranslations(o){const g=this.getDataByLanguage(o);return!!(g&&Object.keys(g)||[]).find(j=>g[j]&&Object.keys(g[j]).length>0)}toJSON(){return this.data}}var postProcessor={processors:{},addPostProcessor(i){this.processors[i.name]=i},handle(i,o,g,$,j){return i.forEach(_e=>{this.processors[_e]&&(o=this.processors[_e].process(o,g,$,j))}),o}};const checkedLoadedFor={};class Translator extends EventEmitter{constructor(o){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),copy(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],o,this),this.options=g,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=baseLogger.create("translator")}changeLanguage(o){o&&(this.language=o)}exists(o){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(o==null)return!1;const $=this.resolve(o,g);return $&&$.res!==void 0}extractFromKey(o,g){let $=g.nsSeparator!==void 0?g.nsSeparator:this.options.nsSeparator;$===void 0&&($=":");const j=g.keySeparator!==void 0?g.keySeparator:this.options.keySeparator;let _e=g.ns||this.options.defaultNS||[];const et=$&&o.indexOf($)>-1,rt=!this.options.userDefinedKeySeparator&&!g.keySeparator&&!this.options.userDefinedNsSeparator&&!g.nsSeparator&&!looksLikeObjectPath(o,$,j);if(et&&!rt){const tt=o.match(this.interpolator.nestingRegexp);if(tt&&tt.length>0)return{key:o,namespaces:_e};const nt=o.split($);($!==j||$===j&&this.options.ns.indexOf(nt[0])>-1)&&(_e=nt.shift()),o=nt.join(j)}return typeof _e=="string"&&(_e=[_e]),{key:o,namespaces:_e}}translate(o,g,$){if(typeof g!="object"&&this.options.overloadTranslationOptionHandler&&(g=this.options.overloadTranslationOptionHandler(arguments)),typeof g=="object"&&(g={...g}),g||(g={}),o==null)return"";Array.isArray(o)||(o=[String(o)]);const j=g.returnDetails!==void 0?g.returnDetails:this.options.returnDetails,_e=g.keySeparator!==void 0?g.keySeparator:this.options.keySeparator,{key:et,namespaces:rt}=this.extractFromKey(o[o.length-1],g),tt=rt[rt.length-1],nt=g.lng||this.language,st=g.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(nt&&nt.toLowerCase()==="cimode"){if(st){const ct=g.nsSeparator||this.options.nsSeparator;return j?{res:`${tt}${ct}${et}`,usedKey:et,exactUsedKey:et,usedLng:nt,usedNS:tt,usedParams:this.getUsedParamsDetails(g)}:`${tt}${ct}${et}`}return j?{res:et,usedKey:et,exactUsedKey:et,usedLng:nt,usedNS:tt,usedParams:this.getUsedParamsDetails(g)}:et}const ft=this.resolve(o,g);let it=ft&&ft.res;const pt=ft&&ft.usedKey||et,ut=ft&&ft.exactUsedKey||et,ht=Object.prototype.toString.apply(it),mt=["[object Number]","[object Function]","[object RegExp]"],at=g.joinArrays!==void 0?g.joinArrays:this.options.joinArrays,lt=!this.i18nFormat||this.i18nFormat.handleAsObject;if(lt&&it&&(typeof it!="string"&&typeof it!="boolean"&&typeof it!="number")&&mt.indexOf(ht)<0&&!(typeof at=="string"&&ht==="[object Array]")){if(!g.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const ct=this.options.returnedObjectHandler?this.options.returnedObjectHandler(pt,it,{...g,ns:rt}):`key '${et} (${this.language})' returned an object instead of string.`;return j?(ft.res=ct,ft.usedParams=this.getUsedParamsDetails(g),ft):ct}if(_e){const ct=ht==="[object Array]",gt=ct?[]:{},yt=ct?ut:pt;for(const xt in it)if(Object.prototype.hasOwnProperty.call(it,xt)){const _t=`${yt}${_e}${xt}`;gt[xt]=this.translate(_t,{...g,joinArrays:!1,ns:rt}),gt[xt]===_t&&(gt[xt]=it[xt])}it=gt}}else if(lt&&typeof at=="string"&&ht==="[object Array]")it=it.join(at),it&&(it=this.extendTranslation(it,o,g,$));else{let ct=!1,gt=!1;const yt=g.count!==void 0&&typeof g.count!="string",xt=Translator.hasDefaultValue(g),_t=yt?this.pluralResolver.getSuffix(nt,g.count,g):"",Pt=g.ordinal&&yt?this.pluralResolver.getSuffix(nt,g.count,{ordinal:!1}):"",At=g[`defaultValue${_t}`]||g[`defaultValue${Pt}`]||g.defaultValue;!this.isValidLookup(it)&&xt&&(ct=!0,it=At),this.isValidLookup(it)||(gt=!0,it=et);const wt=(g.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&>?void 0:it,Ot=xt&&At!==it&&this.options.updateMissing;if(gt||ct||Ot){if(this.logger.log(Ot?"updateKey":"missingKey",nt,tt,et,Ot?At:it),_e){const kt=this.resolve(et,{...g,keySeparator:!1});kt&&kt.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let $t=[];const Mt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,g.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Mt&&Mt[0])for(let kt=0;kt{const bt=xt&&vt!==it?vt:wt;this.options.missingKeyHandler?this.options.missingKeyHandler(kt,tt,dt,bt,Ot,g):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(kt,tt,dt,bt,Ot,g),this.emit("missingKey",kt,tt,dt,it)};this.options.saveMissing&&(this.options.saveMissingPlurals&&yt?$t.forEach(kt=>{this.pluralResolver.getSuffixes(kt,g).forEach(dt=>{Et([kt],et+dt,g[`defaultValue${dt}`]||At)})}):Et($t,et,At))}it=this.extendTranslation(it,o,g,ft,$),gt&&it===et&&this.options.appendNamespaceToMissingKey&&(it=`${tt}:${et}`),(gt||ct)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?it=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${tt}:${et}`:et,ct?it:void 0):it=this.options.parseMissingKeyHandler(it))}return j?(ft.res=it,ft.usedParams=this.getUsedParamsDetails(g),ft):it}extendTranslation(o,g,$,j,_e){var et=this;if(this.i18nFormat&&this.i18nFormat.parse)o=this.i18nFormat.parse(o,{...this.options.interpolation.defaultVariables,...$},$.lng||this.language||j.usedLng,j.usedNS,j.usedKey,{resolved:j});else if(!$.skipInterpolation){$.interpolation&&this.interpolator.init({...$,interpolation:{...this.options.interpolation,...$.interpolation}});const nt=typeof o=="string"&&($&&$.interpolation&&$.interpolation.skipOnVariables!==void 0?$.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let st;if(nt){const it=o.match(this.interpolator.nestingRegexp);st=it&&it.length}let ft=$.replace&&typeof $.replace!="string"?$.replace:$;if(this.options.interpolation.defaultVariables&&(ft={...this.options.interpolation.defaultVariables,...ft}),o=this.interpolator.interpolate(o,ft,$.lng||this.language,$),nt){const it=o.match(this.interpolator.nestingRegexp),pt=it&&it.length;st1&&arguments[1]!==void 0?arguments[1]:{},$,j,_e,et,rt;return typeof o=="string"&&(o=[o]),o.forEach(tt=>{if(this.isValidLookup($))return;const nt=this.extractFromKey(tt,g),st=nt.key;j=st;let ft=nt.namespaces;this.options.fallbackNS&&(ft=ft.concat(this.options.fallbackNS));const it=g.count!==void 0&&typeof g.count!="string",pt=it&&!g.ordinal&&g.count===0&&this.pluralResolver.shouldUseIntlApi(),ut=g.context!==void 0&&(typeof g.context=="string"||typeof g.context=="number")&&g.context!=="",ht=g.lngs?g.lngs:this.languageUtils.toResolveHierarchy(g.lng||this.language,g.fallbackLng);ft.forEach(mt=>{this.isValidLookup($)||(rt=mt,!checkedLoadedFor[`${ht[0]}-${mt}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(rt)&&(checkedLoadedFor[`${ht[0]}-${mt}`]=!0,this.logger.warn(`key "${j}" for languages "${ht.join(", ")}" won't get resolved as namespace "${rt}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),ht.forEach(at=>{if(this.isValidLookup($))return;et=at;const lt=[st];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(lt,st,at,mt,g);else{let ct;it&&(ct=this.pluralResolver.getSuffix(at,g.count,g));const gt=`${this.options.pluralSeparator}zero`,yt=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(it&&(lt.push(st+ct),g.ordinal&&ct.indexOf(yt)===0&<.push(st+ct.replace(yt,this.options.pluralSeparator)),pt&<.push(st+gt)),ut){const xt=`${st}${this.options.contextSeparator}${g.context}`;lt.push(xt),it&&(lt.push(xt+ct),g.ordinal&&ct.indexOf(yt)===0&<.push(xt+ct.replace(yt,this.options.pluralSeparator)),pt&<.push(xt+gt))}}let ot;for(;ot=lt.pop();)this.isValidLookup($)||(_e=ot,$=this.getResource(at,mt,ot,g))}))})}),{res:$,usedKey:j,exactUsedKey:_e,usedLng:et,usedNS:rt}}isValidLookup(o){return o!==void 0&&!(!this.options.returnNull&&o===null)&&!(!this.options.returnEmptyString&&o==="")}getResource(o,g,$){let j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(o,g,$,j):this.resourceStore.getResource(o,g,$,j)}getUsedParamsDetails(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const g=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],$=o.replace&&typeof o.replace!="string";let j=$?o.replace:o;if($&&typeof o.count<"u"&&(j.count=o.count),this.options.interpolation.defaultVariables&&(j={...this.options.interpolation.defaultVariables,...j}),!$){j={...j};for(const _e of g)delete j[_e]}return j}static hasDefaultValue(o){const g="defaultValue";for(const $ in o)if(Object.prototype.hasOwnProperty.call(o,$)&&g===$.substring(0,g.length)&&o[$]!==void 0)return!0;return!1}}function capitalize(i){return i.charAt(0).toUpperCase()+i.slice(1)}class LanguageUtil{constructor(o){this.options=o,this.supportedLngs=this.options.supportedLngs||!1,this.logger=baseLogger.create("languageUtils")}getScriptPartFromCode(o){if(o=getCleanedCode(o),!o||o.indexOf("-")<0)return null;const g=o.split("-");return g.length===2||(g.pop(),g[g.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(g.join("-"))}getLanguagePartFromCode(o){if(o=getCleanedCode(o),!o||o.indexOf("-")<0)return o;const g=o.split("-");return this.formatLanguageCode(g[0])}formatLanguageCode(o){if(typeof o=="string"&&o.indexOf("-")>-1){const g=["hans","hant","latn","cyrl","cans","mong","arab"];let $=o.split("-");return this.options.lowerCaseLng?$=$.map(j=>j.toLowerCase()):$.length===2?($[0]=$[0].toLowerCase(),$[1]=$[1].toUpperCase(),g.indexOf($[1].toLowerCase())>-1&&($[1]=capitalize($[1].toLowerCase()))):$.length===3&&($[0]=$[0].toLowerCase(),$[1].length===2&&($[1]=$[1].toUpperCase()),$[0]!=="sgn"&&$[2].length===2&&($[2]=$[2].toUpperCase()),g.indexOf($[1].toLowerCase())>-1&&($[1]=capitalize($[1].toLowerCase())),g.indexOf($[2].toLowerCase())>-1&&($[2]=capitalize($[2].toLowerCase()))),$.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?o.toLowerCase():o}isSupportedCode(o){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(o=this.getLanguagePartFromCode(o)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(o)>-1}getBestMatchFromCodes(o){if(!o)return null;let g;return o.forEach($=>{if(g)return;const j=this.formatLanguageCode($);(!this.options.supportedLngs||this.isSupportedCode(j))&&(g=j)}),!g&&this.options.supportedLngs&&o.forEach($=>{if(g)return;const j=this.getLanguagePartFromCode($);if(this.isSupportedCode(j))return g=j;g=this.options.supportedLngs.find(_e=>{if(_e===j)return _e;if(!(_e.indexOf("-")<0&&j.indexOf("-")<0)&&_e.indexOf(j)===0)return _e})}),g||(g=this.getFallbackCodes(this.options.fallbackLng)[0]),g}getFallbackCodes(o,g){if(!o)return[];if(typeof o=="function"&&(o=o(g)),typeof o=="string"&&(o=[o]),Object.prototype.toString.apply(o)==="[object Array]")return o;if(!g)return o.default||[];let $=o[g];return $||($=o[this.getScriptPartFromCode(g)]),$||($=o[this.formatLanguageCode(g)]),$||($=o[this.getLanguagePartFromCode(g)]),$||($=o.default),$||[]}toResolveHierarchy(o,g){const $=this.getFallbackCodes(g||this.options.fallbackLng||[],o),j=[],_e=et=>{et&&(this.isSupportedCode(et)?j.push(et):this.logger.warn(`rejecting language code not found in supportedLngs: ${et}`))};return typeof o=="string"&&(o.indexOf("-")>-1||o.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&_e(this.formatLanguageCode(o)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&_e(this.getScriptPartFromCode(o)),this.options.load!=="currentOnly"&&_e(this.getLanguagePartFromCode(o))):typeof o=="string"&&_e(this.formatLanguageCode(o)),$.forEach(et=>{j.indexOf(et)<0&&_e(this.formatLanguageCode(et))}),j}}let sets=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],_rulesPluralsTypes={1:function(i){return+(i>1)},2:function(i){return+(i!=1)},3:function(i){return 0},4:function(i){return i%10==1&&i%100!=11?0:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?1:2},5:function(i){return i==0?0:i==1?1:i==2?2:i%100>=3&&i%100<=10?3:i%100>=11?4:5},6:function(i){return i==1?0:i>=2&&i<=4?1:2},7:function(i){return i==1?0:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?1:2},8:function(i){return i==1?0:i==2?1:i!=8&&i!=11?2:3},9:function(i){return+(i>=2)},10:function(i){return i==1?0:i==2?1:i<7?2:i<11?3:4},11:function(i){return i==1||i==11?0:i==2||i==12?1:i>2&&i<20?2:3},12:function(i){return+(i%10!=1||i%100==11)},13:function(i){return+(i!==0)},14:function(i){return i==1?0:i==2?1:i==3?2:3},15:function(i){return i%10==1&&i%100!=11?0:i%10>=2&&(i%100<10||i%100>=20)?1:2},16:function(i){return i%10==1&&i%100!=11?0:i!==0?1:2},17:function(i){return i==1||i%10==1&&i%100!=11?0:1},18:function(i){return i==0?0:i==1?1:2},19:function(i){return i==1?0:i==0||i%100>1&&i%100<11?1:i%100>10&&i%100<20?2:3},20:function(i){return i==1?0:i==0||i%100>0&&i%100<20?1:2},21:function(i){return i%100==1?1:i%100==2?2:i%100==3||i%100==4?3:0},22:function(i){return i==1?0:i==2?1:(i<0||i>10)&&i%10==0?2:3}};const nonIntlVersions=["v1","v2","v3"],intlVersions=["v4"],suffixesOrder={zero:0,one:1,two:2,few:3,many:4,other:5};function createRules(){const i={};return sets.forEach(o=>{o.lngs.forEach(g=>{i[g]={numbers:o.nr,plurals:_rulesPluralsTypes[o.fc]}})}),i}class PluralResolver{constructor(o){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=o,this.options=g,this.logger=baseLogger.create("pluralResolver"),(!this.options.compatibilityJSON||intlVersions.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=createRules()}addRule(o,g){this.rules[o]=g}getRule(o){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(getCleanedCode(o),{type:g.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[o]||this.rules[this.languageUtils.getLanguagePartFromCode(o)]}needsPlural(o){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const $=this.getRule(o,g);return this.shouldUseIntlApi()?$&&$.resolvedOptions().pluralCategories.length>1:$&&$.numbers.length>1}getPluralFormsOfKey(o,g){let $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(o,$).map(j=>`${g}${j}`)}getSuffixes(o){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const $=this.getRule(o,g);return $?this.shouldUseIntlApi()?$.resolvedOptions().pluralCategories.sort((j,_e)=>suffixesOrder[j]-suffixesOrder[_e]).map(j=>`${this.options.prepend}${g.ordinal?`ordinal${this.options.prepend}`:""}${j}`):$.numbers.map(j=>this.getSuffix(o,j,g)):[]}getSuffix(o,g){let $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const j=this.getRule(o,$);return j?this.shouldUseIntlApi()?`${this.options.prepend}${$.ordinal?`ordinal${this.options.prepend}`:""}${j.select(g)}`:this.getSuffixRetroCompatible(j,g):(this.logger.warn(`no plural rule found for: ${o}`),"")}getSuffixRetroCompatible(o,g){const $=o.noAbs?o.plurals(g):o.plurals(Math.abs(g));let j=o.numbers[$];this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1&&(j===2?j="plural":j===1&&(j=""));const _e=()=>this.options.prepend&&j.toString()?this.options.prepend+j.toString():j.toString();return this.options.compatibilityJSON==="v1"?j===1?"":typeof j=="number"?`_plural_${j.toString()}`:_e():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1?_e():this.options.prepend&&$.toString()?this.options.prepend+$.toString():$.toString()}shouldUseIntlApi(){return!nonIntlVersions.includes(this.options.compatibilityJSON)}}function deepFindWithDefaults(i,o,g){let $=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",j=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,_e=getPathWithDefaults(i,o,g);return!_e&&j&&typeof g=="string"&&(_e=deepFind(i,g,$),_e===void 0&&(_e=deepFind(o,g,$))),_e}class Interpolator{constructor(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=baseLogger.create("interpolator"),this.options=o,this.format=o.interpolation&&o.interpolation.format||(g=>g),this.init(o)}init(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};o.interpolation||(o.interpolation={escapeValue:!0});const g=o.interpolation;this.escape=g.escape!==void 0?g.escape:escape,this.escapeValue=g.escapeValue!==void 0?g.escapeValue:!0,this.useRawValueToEscape=g.useRawValueToEscape!==void 0?g.useRawValueToEscape:!1,this.prefix=g.prefix?regexEscape(g.prefix):g.prefixEscaped||"{{",this.suffix=g.suffix?regexEscape(g.suffix):g.suffixEscaped||"}}",this.formatSeparator=g.formatSeparator?g.formatSeparator:g.formatSeparator||",",this.unescapePrefix=g.unescapeSuffix?"":g.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":g.unescapeSuffix||"",this.nestingPrefix=g.nestingPrefix?regexEscape(g.nestingPrefix):g.nestingPrefixEscaped||regexEscape("$t("),this.nestingSuffix=g.nestingSuffix?regexEscape(g.nestingSuffix):g.nestingSuffixEscaped||regexEscape(")"),this.nestingOptionsSeparator=g.nestingOptionsSeparator?g.nestingOptionsSeparator:g.nestingOptionsSeparator||",",this.maxReplaces=g.maxReplaces?g.maxReplaces:1e3,this.alwaysFormat=g.alwaysFormat!==void 0?g.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const o=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(o,"g");const g=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(g,"g");const $=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp($,"g")}interpolate(o,g,$,j){let _e,et,rt;const tt=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function nt(ut){return ut.replace(/\$/g,"$$$$")}const st=ut=>{if(ut.indexOf(this.formatSeparator)<0){const lt=deepFindWithDefaults(g,tt,ut,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(lt,void 0,$,{...j,...g,interpolationkey:ut}):lt}const ht=ut.split(this.formatSeparator),mt=ht.shift().trim(),at=ht.join(this.formatSeparator).trim();return this.format(deepFindWithDefaults(g,tt,mt,this.options.keySeparator,this.options.ignoreJSONStructure),at,$,{...j,...g,interpolationkey:mt})};this.resetRegExp();const ft=j&&j.missingInterpolationHandler||this.options.missingInterpolationHandler,it=j&&j.interpolation&&j.interpolation.skipOnVariables!==void 0?j.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:ut=>nt(ut)},{regex:this.regexp,safeValue:ut=>this.escapeValue?nt(this.escape(ut)):nt(ut)}].forEach(ut=>{for(rt=0;_e=ut.regex.exec(o);){const ht=_e[1].trim();if(et=st(ht),et===void 0)if(typeof ft=="function"){const at=ft(o,_e,j);et=typeof at=="string"?at:""}else if(j&&Object.prototype.hasOwnProperty.call(j,ht))et="";else if(it){et=_e[0];continue}else this.logger.warn(`missed to pass in variable ${ht} for interpolating ${o}`),et="";else typeof et!="string"&&!this.useRawValueToEscape&&(et=makeString(et));const mt=ut.safeValue(et);if(o=o.replace(_e[0],mt),it?(ut.regex.lastIndex+=et.length,ut.regex.lastIndex-=_e[0].length):ut.regex.lastIndex=0,rt++,rt>=this.maxReplaces)break}}),o}nest(o,g){let $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},j,_e,et;function rt(tt,nt){const st=this.nestingOptionsSeparator;if(tt.indexOf(st)<0)return tt;const ft=tt.split(new RegExp(`${st}[ ]*{`));let it=`{${ft[1]}`;tt=ft[0],it=this.interpolate(it,et);const pt=it.match(/'/g),ut=it.match(/"/g);(pt&&pt.length%2===0&&!ut||ut.length%2!==0)&&(it=it.replace(/'/g,'"'));try{et=JSON.parse(it),nt&&(et={...nt,...et})}catch(ht){return this.logger.warn(`failed parsing options string in nesting for key ${tt}`,ht),`${tt}${st}${it}`}return delete et.defaultValue,tt}for(;j=this.nestingRegexp.exec(o);){let tt=[];et={...$},et=et.replace&&typeof et.replace!="string"?et.replace:et,et.applyPostProcessor=!1,delete et.defaultValue;let nt=!1;if(j[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(j[1])){const st=j[1].split(this.formatSeparator).map(ft=>ft.trim());j[1]=st.shift(),tt=st,nt=!0}if(_e=g(rt.call(this,j[1].trim(),et),et),_e&&j[0]===o&&typeof _e!="string")return _e;typeof _e!="string"&&(_e=makeString(_e)),_e||(this.logger.warn(`missed to resolve ${j[1]} for nesting ${o}`),_e=""),nt&&(_e=tt.reduce((st,ft)=>this.format(st,ft,$.lng,{...$,interpolationkey:j[1].trim()}),_e.trim())),o=o.replace(j[0],_e),this.regexp.lastIndex=0}return o}}function parseFormatStr(i){let o=i.toLowerCase().trim();const g={};if(i.indexOf("(")>-1){const $=i.split("(");o=$[0].toLowerCase().trim();const j=$[1].substring(0,$[1].length-1);o==="currency"&&j.indexOf(":")<0?g.currency||(g.currency=j.trim()):o==="relativetime"&&j.indexOf(":")<0?g.range||(g.range=j.trim()):j.split(";").forEach(et=>{if(!et)return;const[rt,...tt]=et.split(":"),nt=tt.join(":").trim().replace(/^'+|'+$/g,"");g[rt.trim()]||(g[rt.trim()]=nt),nt==="false"&&(g[rt.trim()]=!1),nt==="true"&&(g[rt.trim()]=!0),isNaN(nt)||(g[rt.trim()]=parseInt(nt,10))})}return{formatName:o,formatOptions:g}}function createCachedFormatter(i){const o={};return function($,j,_e){const et=j+JSON.stringify(_e);let rt=o[et];return rt||(rt=i(getCleanedCode(j),_e),o[et]=rt),rt($)}}class Formatter{constructor(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=baseLogger.create("formatter"),this.options=o,this.formats={number:createCachedFormatter((g,$)=>{const j=new Intl.NumberFormat(g,{...$});return _e=>j.format(_e)}),currency:createCachedFormatter((g,$)=>{const j=new Intl.NumberFormat(g,{...$,style:"currency"});return _e=>j.format(_e)}),datetime:createCachedFormatter((g,$)=>{const j=new Intl.DateTimeFormat(g,{...$});return _e=>j.format(_e)}),relativetime:createCachedFormatter((g,$)=>{const j=new Intl.RelativeTimeFormat(g,{...$});return _e=>j.format(_e,$.range||"day")}),list:createCachedFormatter((g,$)=>{const j=new Intl.ListFormat(g,{...$});return _e=>j.format(_e)})},this.init(o)}init(o){const $=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=$.formatSeparator?$.formatSeparator:$.formatSeparator||","}add(o,g){this.formats[o.toLowerCase().trim()]=g}addCached(o,g){this.formats[o.toLowerCase().trim()]=createCachedFormatter(g)}format(o,g,$){let j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return g.split(this.formatSeparator).reduce((rt,tt)=>{const{formatName:nt,formatOptions:st}=parseFormatStr(tt);if(this.formats[nt]){let ft=rt;try{const it=j&&j.formatParams&&j.formatParams[j.interpolationkey]||{},pt=it.locale||it.lng||j.locale||j.lng||$;ft=this.formats[nt](rt,pt,{...st,...j,...it})}catch(it){this.logger.warn(it)}return ft}else this.logger.warn(`there was no format function for ${nt}`);return rt},o)}}function removePending(i,o){i.pending[o]!==void 0&&(delete i.pending[o],i.pendingCount--)}class Connector extends EventEmitter{constructor(o,g,$){let j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=o,this.store=g,this.services=$,this.languageUtils=$.languageUtils,this.options=j,this.logger=baseLogger.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=j.maxParallelReads||10,this.readingCalls=0,this.maxRetries=j.maxRetries>=0?j.maxRetries:5,this.retryTimeout=j.retryTimeout>=1?j.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init($,j.backend,j)}queueLoad(o,g,$,j){const _e={},et={},rt={},tt={};return o.forEach(nt=>{let st=!0;g.forEach(ft=>{const it=`${nt}|${ft}`;!$.reload&&this.store.hasResourceBundle(nt,ft)?this.state[it]=2:this.state[it]<0||(this.state[it]===1?et[it]===void 0&&(et[it]=!0):(this.state[it]=1,st=!1,et[it]===void 0&&(et[it]=!0),_e[it]===void 0&&(_e[it]=!0),tt[ft]===void 0&&(tt[ft]=!0)))}),st||(rt[nt]=!0)}),(Object.keys(_e).length||Object.keys(et).length)&&this.queue.push({pending:et,pendingCount:Object.keys(et).length,loaded:{},errors:[],callback:j}),{toLoad:Object.keys(_e),pending:Object.keys(et),toLoadLanguages:Object.keys(rt),toLoadNamespaces:Object.keys(tt)}}loaded(o,g,$){const j=o.split("|"),_e=j[0],et=j[1];g&&this.emit("failedLoading",_e,et,g),$&&this.store.addResourceBundle(_e,et,$),this.state[o]=g?-1:2;const rt={};this.queue.forEach(tt=>{pushPath(tt.loaded,[_e],et),removePending(tt,o),g&&tt.errors.push(g),tt.pendingCount===0&&!tt.done&&(Object.keys(tt.loaded).forEach(nt=>{rt[nt]||(rt[nt]={});const st=tt.loaded[nt];st.length&&st.forEach(ft=>{rt[nt][ft]===void 0&&(rt[nt][ft]=!0)})}),tt.done=!0,tt.errors.length?tt.callback(tt.errors):tt.callback())}),this.emit("loaded",rt),this.queue=this.queue.filter(tt=>!tt.done)}read(o,g,$){let j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,_e=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,et=arguments.length>5?arguments[5]:void 0;if(!o.length)return et(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:o,ns:g,fcName:$,tried:j,wait:_e,callback:et});return}this.readingCalls++;const rt=(nt,st)=>{if(this.readingCalls--,this.waitingReads.length>0){const ft=this.waitingReads.shift();this.read(ft.lng,ft.ns,ft.fcName,ft.tried,ft.wait,ft.callback)}if(nt&&st&&j{this.read.call(this,o,g,$,j+1,_e*2,et)},_e);return}et(nt,st)},tt=this.backend[$].bind(this.backend);if(tt.length===2){try{const nt=tt(o,g);nt&&typeof nt.then=="function"?nt.then(st=>rt(null,st)).catch(rt):rt(null,nt)}catch(nt){rt(nt)}return}return tt(o,g,rt)}prepareLoading(o,g){let $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},j=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),j&&j();typeof o=="string"&&(o=this.languageUtils.toResolveHierarchy(o)),typeof g=="string"&&(g=[g]);const _e=this.queueLoad(o,g,$,j);if(!_e.toLoad.length)return _e.pending.length||j(),null;_e.toLoad.forEach(et=>{this.loadOne(et)})}load(o,g,$){this.prepareLoading(o,g,{},$)}reload(o,g,$){this.prepareLoading(o,g,{reload:!0},$)}loadOne(o){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const $=o.split("|"),j=$[0],_e=$[1];this.read(j,_e,"read",void 0,void 0,(et,rt)=>{et&&this.logger.warn(`${g}loading namespace ${_e} for language ${j} failed`,et),!et&&rt&&this.logger.log(`${g}loaded namespace ${_e} for language ${j}`,rt),this.loaded(o,et,rt)})}saveMissing(o,g,$,j,_e){let et=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},rt=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(g)){this.logger.warn(`did not save key "${$}" as the namespace "${g}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!($==null||$==="")){if(this.backend&&this.backend.create){const tt={...et,isUpdate:_e},nt=this.backend.create.bind(this.backend);if(nt.length<6)try{let st;nt.length===5?st=nt(o,g,$,j,tt):st=nt(o,g,$,j),st&&typeof st.then=="function"?st.then(ft=>rt(null,ft)).catch(rt):rt(null,st)}catch(st){rt(st)}else nt(o,g,$,j,rt,tt)}!o||!o[0]||this.store.addResource(o[0],g,$,j)}}}function get(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(o){let g={};if(typeof o[1]=="object"&&(g=o[1]),typeof o[1]=="string"&&(g.defaultValue=o[1]),typeof o[2]=="string"&&(g.tDescription=o[2]),typeof o[2]=="object"||typeof o[3]=="object"){const $=o[3]||o[2];Object.keys($).forEach(j=>{g[j]=$[j]})}return g},interpolation:{escapeValue:!0,format:i=>i,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function transformOptions(i){return typeof i.ns=="string"&&(i.ns=[i.ns]),typeof i.fallbackLng=="string"&&(i.fallbackLng=[i.fallbackLng]),typeof i.fallbackNS=="string"&&(i.fallbackNS=[i.fallbackNS]),i.supportedLngs&&i.supportedLngs.indexOf("cimode")<0&&(i.supportedLngs=i.supportedLngs.concat(["cimode"])),i}function noop(){}function bindMemberFunctions(i){Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach(g=>{typeof i[g]=="function"&&(i[g]=i[g].bind(i))})}class I18n extends EventEmitter{constructor(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g=arguments.length>1?arguments[1]:void 0;if(super(),this.options=transformOptions(o),this.services={},this.logger=baseLogger,this.modules={external:[]},bindMemberFunctions(this),g&&!this.isInitialized&&!o.isClone){if(!this.options.initImmediate)return this.init(o,g),this;setTimeout(()=>{this.init(o,g)},0)}}init(){var o=this;let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$=arguments.length>1?arguments[1]:void 0;typeof g=="function"&&($=g,g={}),!g.defaultNS&&g.defaultNS!==!1&&g.ns&&(typeof g.ns=="string"?g.defaultNS=g.ns:g.ns.indexOf("translation")<0&&(g.defaultNS=g.ns[0]));const j=get();this.options={...j,...this.options,...transformOptions(g)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...j.interpolation,...this.options.interpolation}),g.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=g.keySeparator),g.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=g.nsSeparator);function _e(st){return st?typeof st=="function"?new st:st:null}if(!this.options.isClone){this.modules.logger?baseLogger.init(_e(this.modules.logger),this.options):baseLogger.init(null,this.options);let st;this.modules.formatter?st=this.modules.formatter:typeof Intl<"u"&&(st=Formatter);const ft=new LanguageUtil(this.options);this.store=new ResourceStore(this.options.resources,this.options);const it=this.services;it.logger=baseLogger,it.resourceStore=this.store,it.languageUtils=ft,it.pluralResolver=new PluralResolver(ft,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),st&&(!this.options.interpolation.format||this.options.interpolation.format===j.interpolation.format)&&(it.formatter=_e(st),it.formatter.init(it,this.options),this.options.interpolation.format=it.formatter.format.bind(it.formatter)),it.interpolator=new Interpolator(this.options),it.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},it.backendConnector=new Connector(_e(this.modules.backend),it.resourceStore,it,this.options),it.backendConnector.on("*",function(pt){for(var ut=arguments.length,ht=new Array(ut>1?ut-1:0),mt=1;mt1?ut-1:0),mt=1;mt{pt.init&&pt.init(this)})}if(this.format=this.options.interpolation.format,$||($=noop),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const st=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);st.length>0&&st[0]!=="dev"&&(this.options.lng=st[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(st=>{this[st]=function(){return o.store[st](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(st=>{this[st]=function(){return o.store[st](...arguments),o}});const tt=defer(),nt=()=>{const st=(ft,it)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),tt.resolve(it),$(ft,it)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return st(null,this.t.bind(this));this.changeLanguage(this.options.lng,st)};return this.options.resources||!this.options.initImmediate?nt():setTimeout(nt,0),tt}loadResources(o){let $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop;const j=typeof o=="string"?o:this.language;if(typeof o=="function"&&($=o),!this.options.resources||this.options.partialBundledLanguages){if(j&&j.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return $();const _e=[],et=rt=>{if(!rt||rt==="cimode")return;this.services.languageUtils.toResolveHierarchy(rt).forEach(nt=>{nt!=="cimode"&&_e.indexOf(nt)<0&&_e.push(nt)})};j?et(j):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(tt=>et(tt)),this.options.preload&&this.options.preload.forEach(rt=>et(rt)),this.services.backendConnector.load(_e,this.options.ns,rt=>{!rt&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),$(rt)})}else $(null)}reloadResources(o,g,$){const j=defer();return o||(o=this.languages),g||(g=this.options.ns),$||($=noop),this.services.backendConnector.reload(o,g,_e=>{j.resolve(),$(_e)}),j}use(o){if(!o)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!o.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return o.type==="backend"&&(this.modules.backend=o),(o.type==="logger"||o.log&&o.warn&&o.error)&&(this.modules.logger=o),o.type==="languageDetector"&&(this.modules.languageDetector=o),o.type==="i18nFormat"&&(this.modules.i18nFormat=o),o.type==="postProcessor"&&postProcessor.addPostProcessor(o),o.type==="formatter"&&(this.modules.formatter=o),o.type==="3rdParty"&&this.modules.external.push(o),this}setResolvedLanguage(o){if(!(!o||!this.languages)&&!(["cimode","dev"].indexOf(o)>-1))for(let g=0;g-1)&&this.store.hasLanguageSomeTranslations($)){this.resolvedLanguage=$;break}}}changeLanguage(o,g){var $=this;this.isLanguageChangingTo=o;const j=defer();this.emit("languageChanging",o);const _e=tt=>{this.language=tt,this.languages=this.services.languageUtils.toResolveHierarchy(tt),this.resolvedLanguage=void 0,this.setResolvedLanguage(tt)},et=(tt,nt)=>{nt?(_e(nt),this.translator.changeLanguage(nt),this.isLanguageChangingTo=void 0,this.emit("languageChanged",nt),this.logger.log("languageChanged",nt)):this.isLanguageChangingTo=void 0,j.resolve(function(){return $.t(...arguments)}),g&&g(tt,function(){return $.t(...arguments)})},rt=tt=>{!o&&!tt&&this.services.languageDetector&&(tt=[]);const nt=typeof tt=="string"?tt:this.services.languageUtils.getBestMatchFromCodes(tt);nt&&(this.language||_e(nt),this.translator.language||this.translator.changeLanguage(nt),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(nt)),this.loadResources(nt,st=>{et(st,nt)})};return!o&&this.services.languageDetector&&!this.services.languageDetector.async?rt(this.services.languageDetector.detect()):!o&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(rt):this.services.languageDetector.detect(rt):rt(o),j}getFixedT(o,g,$){var j=this;const _e=function(et,rt){let tt;if(typeof rt!="object"){for(var nt=arguments.length,st=new Array(nt>2?nt-2:0),ft=2;ft`${tt.keyPrefix}${it}${ut}`):pt=tt.keyPrefix?`${tt.keyPrefix}${it}${et}`:et,j.t(pt,tt)};return typeof o=="string"?_e.lng=o:_e.lngs=o,_e.ns=g,_e.keyPrefix=$,_e}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(o){this.options.defaultNS=o}hasLoadedNamespace(o){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const $=g.lng||this.resolvedLanguage||this.languages[0],j=this.options?this.options.fallbackLng:!1,_e=this.languages[this.languages.length-1];if($.toLowerCase()==="cimode")return!0;const et=(rt,tt)=>{const nt=this.services.backendConnector.state[`${rt}|${tt}`];return nt===-1||nt===2};if(g.precheck){const rt=g.precheck(this,et);if(rt!==void 0)return rt}return!!(this.hasResourceBundle($,o)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||et($,o)&&(!j||et(_e,o)))}loadNamespaces(o,g){const $=defer();return this.options.ns?(typeof o=="string"&&(o=[o]),o.forEach(j=>{this.options.ns.indexOf(j)<0&&this.options.ns.push(j)}),this.loadResources(j=>{$.resolve(),g&&g(j)}),$):(g&&g(),Promise.resolve())}loadLanguages(o,g){const $=defer();typeof o=="string"&&(o=[o]);const j=this.options.preload||[],_e=o.filter(et=>j.indexOf(et)<0);return _e.length?(this.options.preload=j.concat(_e),this.loadResources(et=>{$.resolve(),g&&g(et)}),$):(g&&g(),Promise.resolve())}dir(o){if(o||(o=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!o)return"rtl";const g=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],$=this.services&&this.services.languageUtils||new LanguageUtil(get());return g.indexOf($.getLanguagePartFromCode(o))>-1||o.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g=arguments.length>1?arguments[1]:void 0;return new I18n(o,g)}cloneInstance(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop;const $=o.forkResourceStore;$&&delete o.forkResourceStore;const j={...this.options,...o,isClone:!0},_e=new I18n(j);return(o.debug!==void 0||o.prefix!==void 0)&&(_e.logger=_e.logger.clone(o)),["store","services","language"].forEach(rt=>{_e[rt]=this[rt]}),_e.services={...this.services},_e.services.utils={hasLoadedNamespace:_e.hasLoadedNamespace.bind(_e)},$&&(_e.store=new ResourceStore(this.store.data,j),_e.services.resourceStore=_e.store),_e.translator=new Translator(_e.services,j),_e.translator.on("*",function(rt){for(var tt=arguments.length,nt=new Array(tt>1?tt-1:0),st=1;st()=>{if(i.isInitialized)o();else{const g=()=>{setTimeout(()=>{i.off("initialized",g)},0),o()};i.on("initialized",g)}};function loadNamespaces(i,o,g){i.loadNamespaces(o,loadedClb(i,g))}function loadLanguages(i,o,g,$){typeof g=="string"&&(g=[g]),g.forEach(j=>{i.options.ns.indexOf(j)<0&&i.options.ns.push(j)}),i.loadLanguages(o,loadedClb(i,$))}function oldI18nextHasLoadedNamespace(i,o){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const $=o.languages[0],j=o.options?o.options.fallbackLng:!1,_e=o.languages[o.languages.length-1];if($.toLowerCase()==="cimode")return!0;const et=(rt,tt)=>{const nt=o.services.backendConnector.state[`${rt}|${tt}`];return nt===-1||nt===2};return g.bindI18n&&g.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!et(o.isLanguageChangingTo,i)?!1:!!(o.hasResourceBundle($,i)||!o.services.backendConnector.backend||o.options.resources&&!o.options.partialBundledLanguages||et($,i)&&(!j||et(_e,i)))}function hasLoadedNamespace(i,o){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!o.languages||!o.languages.length?(warnOnce("i18n.languages were undefined or empty",o.languages),!0):o.options.ignoreJSONStructure!==void 0?o.hasLoadedNamespace(i,{lng:g.lng,precheck:(j,_e)=>{if(g.bindI18n&&g.bindI18n.indexOf("languageChanging")>-1&&j.services.backendConnector.backend&&j.isLanguageChangingTo&&!_e(j.isLanguageChangingTo,i))return!1}}):oldI18nextHasLoadedNamespace(i,o,g)}const matchHtmlEntity=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,htmlEntities={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},unescapeHtmlEntity=i=>htmlEntities[i],unescape=i=>i.replace(matchHtmlEntity,unescapeHtmlEntity);let defaultOptions={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape};function setDefaults(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};defaultOptions={...defaultOptions,...i}}function getDefaults(){return defaultOptions}let i18nInstance;function setI18n(i){i18nInstance=i}function getI18n(){return i18nInstance}const initReactI18next={type:"3rdParty",init(i){setDefaults(i.options.react),setI18n(i)}},I18nContext=reactExports.createContext();class ReportNamespaces{constructor(){this.usedNamespaces={}}addUsedNamespaces(o){o.forEach(g=>{this.usedNamespaces[g]||(this.usedNamespaces[g]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const usePrevious=(i,o)=>{const g=reactExports.useRef();return reactExports.useEffect(()=>{g.current=o?g.current:i},[i,o]),g.current};function useTranslation(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:g}=o,{i18n:$,defaultNS:j}=reactExports.useContext(I18nContext)||{},_e=g||$||getI18n();if(_e&&!_e.reportNamespaces&&(_e.reportNamespaces=new ReportNamespaces),!_e){warnOnce("You will need to pass in an i18next instance by using initReactI18next");const ot=(gt,yt)=>typeof yt=="string"?yt:yt&&typeof yt=="object"&&typeof yt.defaultValue=="string"?yt.defaultValue:Array.isArray(gt)?gt[gt.length-1]:gt,ct=[ot,{},!1];return ct.t=ot,ct.i18n={},ct.ready=!1,ct}_e.options.react&&_e.options.react.wait!==void 0&&warnOnce("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const et={...getDefaults(),..._e.options.react,...o},{useSuspense:rt,keyPrefix:tt}=et;let nt=i||j||_e.options&&_e.options.defaultNS;nt=typeof nt=="string"?[nt]:nt||["translation"],_e.reportNamespaces.addUsedNamespaces&&_e.reportNamespaces.addUsedNamespaces(nt);const st=(_e.isInitialized||_e.initializedStoreOnce)&&nt.every(ot=>hasLoadedNamespace(ot,_e,et));function ft(){return _e.getFixedT(o.lng||null,et.nsMode==="fallback"?nt:nt[0],tt)}const[it,pt]=reactExports.useState(ft);let ut=nt.join();o.lng&&(ut=`${o.lng}${ut}`);const ht=usePrevious(ut),mt=reactExports.useRef(!0);reactExports.useEffect(()=>{const{bindI18n:ot,bindI18nStore:ct}=et;mt.current=!0,!st&&!rt&&(o.lng?loadLanguages(_e,o.lng,nt,()=>{mt.current&&pt(ft)}):loadNamespaces(_e,nt,()=>{mt.current&&pt(ft)})),st&&ht&&ht!==ut&&mt.current&&pt(ft);function gt(){mt.current&&pt(ft)}return ot&&_e&&_e.on(ot,gt),ct&&_e&&_e.store.on(ct,gt),()=>{mt.current=!1,ot&&_e&&ot.split(" ").forEach(yt=>_e.off(yt,gt)),ct&&_e&&ct.split(" ").forEach(yt=>_e.store.off(yt,gt))}},[_e,ut]);const at=reactExports.useRef(!0);reactExports.useEffect(()=>{mt.current&&!at.current&&pt(ft),at.current=!1},[_e,tt]);const lt=[it,_e,st];if(lt.t=it,lt.i18n=_e,lt.ready=st,st||!st&&!rt)return lt;throw new Promise(ot=>{o.lng?loadLanguages(_e,o.lng,nt,()=>ot()):loadNamespaces(_e,nt,()=>ot())})}const demoMode$1="Demo mode",bot$1="bot",cancel$1="Cancel",back$1="Back",addMore$1="Add more",addEveryone$1="Add everyone",next$1="Next",save$1="Save",message$1="Message",addUsers$1="Add users",matchUsers$1="Match names",willBeSaved$1="I'll remember the names later",paid$1="paid",owes$1="owes",select$1="please select...",author$1="author",added$1="added",addUser$1="Add user",selectWhoIs$1="Select who is",selectUser$1="Select user",checkout$1="Checkout",lack$1="Lack",allRight$1="All right",overdo$1="Overdo",paidSum$1="Paid",oweSum$1="owe",payers$1="Payers",noShares$1="Nobody here",forYourselfAndForOthers$1="For yourself and for others",forOthers$1="For others",splitEqually$1="Split equally",selectCurrency$1="Select currency",translationEn={demoMode:demoMode$1,bot:bot$1,cancel:cancel$1,back:back$1,delete:"Delete",addMore:addMore$1,addEveryone:addEveryone$1,next:next$1,save:save$1,message:message$1,addUsers:addUsers$1,matchUsers:matchUsers$1,willBeSaved:willBeSaved$1,paid:paid$1,owes:owes$1,select:select$1,author:author$1,added:added$1,addUser:addUser$1,selectWhoIs:selectWhoIs$1,selectUser:selectUser$1,checkout:checkout$1,lack:lack$1,allRight:allRight$1,overdo:overdo$1,paidSum:paidSum$1,oweSum:oweSum$1,payers:payers$1,noShares:noShares$1,forYourselfAndForOthers:forYourselfAndForOthers$1,forOthers:forOthers$1,splitEqually:splitEqually$1,selectCurrency:selectCurrency$1},demoMode="Демо-режим",bot="бот",cancel="Отмена",back="Назад",addMore="Добавить ещё",addEveryone="Добавить всех",next="Далее",save="Сохранить",message="Сообщение",addUsers="Добавьте людей",matchUsers="Соотнесите людей",willBeSaved="Со временем я запомню соотношения",paid="заплатил",owes="должен",select="выберите...",author="автор",added="доп.",addUser="Добавить человека",selectWhoIs="Выберите, кто",selectUser="Выберите",checkout="Проверить траты",lack="Не хватает",allRight="Всё верно",overdo="Перебор",paidSum="Заплатили",oweSum="должны",payers="Заплатили",noShares="Пусто",forYourselfAndForOthers="За себя и за других",forOthers="За других",splitEqually="Разделить поровну",selectCurrency="Выберите валюту",translationRu={demoMode,bot,cancel,back,delete:"Удалить",addMore,addEveryone,next,save,message,addUsers,matchUsers,willBeSaved,paid,owes,select,author,added,addUser,selectWhoIs,selectUser,checkout,lack,allRight,overdo,paidSum,oweSum,payers,noShares,forYourselfAndForOthers,forOthers,splitEqually,selectCurrency};instance.use(initReactI18next).init({lng:"en",fallbackLng:"en",debug:!0,resources:{en:{translation:translationEn},ru:{translation:translationRu}}});const transliterate=i=>{const o={Ё:"YO",Й:"I",Ц:"TS",У:"U",К:"K",Е:"E",Н:"N",Г:"G",Ш:"SH",Щ:"SCH",З:"Z",Х:"H",Ъ:"",ё:"yo",й:"i",ц:"ts",у:"u",к:"k",е:"e",н:"n",г:"g",ш:"sh",щ:"sch",з:"z",х:"h",ъ:"",Ф:"F",Ы:"I",В:"V",А:"A",П:"P",Р:"R",О:"O",Л:"L",Д:"D",Ж:"ZH",Э:"E",ф:"f",ы:"i",в:"v",а:"a",п:"p",р:"r",о:"o",л:"l",д:"d",ж:"zh",э:"e",Я:"Ya",Ч:"CH",С:"S",М:"M",И:"I",Т:"T",Ь:"",Б:"B",Ю:"YU",я:"ya",ч:"ch",с:"s",м:"m",и:"i",т:"t",ь:"",б:"b",ю:"yu"};return i.split("").map(g=>o[g]||g).join("")},generateUser=i=>({_id:Math.round(Math.random()*1e10),first_name:i,last_name:i,username:Math.random()>.2?transliterate(i):void 0,profile_photo:Math.random()<.5?null:`https://i.pravatar.cc/48/${Math.round(Math.random()*1e10)}`,_name:i}),generateName=()=>{const i=instance.language==="ru"?["Александр","Дмитрий","Максим","Сергей","Андрей","Алексей","Артём","Илья","Кирилл","Михаил","Никита","Матвей","Роман","Егор","Арсений","Иван","Денис","Евгений","Тимофей","Владислав","Игорь","Владимир","Павел","Руслан","Марк","Константин","Тимур","Олег","Ярослав","Антон","Николай","Данил","Анастасия","Мария","Анна","Виктория","Екатерина","Наталья","Марина","Полина","София","Дарья","Алиса","Ксения","Александра","Елена"]:["Isabelle","Louis","Tariq","Joyce","Zaid","Mary","Rufus","Ishaq","Lucy","Vinnie","Amelie","Jaydon","Beth","Zackary","Scott","Rhonda","Gilbert","Ayla","Dale","Moshe","Jon","Sylvie","Grover","Neil","Lukas","Amber","Shreya","Evan","Lucinda","Kareem","Reid","Owain","Liberty","Cordelia","Tony","Ophelia","Maeve","Yasir","Gary","Daniella","Keira","Umar","Sally","Oskar","Lucia","Dewi","Bethany","Marco","Amna","Micheal"];return i[Math.floor(Math.random()*i.length)]},generateNames=i=>{const o=[];do{const g=generateName();o.includes(g)||o.push(g)}while(o.length!==i);return o},_names=generateNames(6),mockUsers=_names.map(i=>generateUser(i)),shares=mockUsers.slice(0,4).map((i,o)=>({person_id:`Person${o}`,raw_name:i._name||"",normalized_name:i._name||"",related_user_id:Math.random()>.3?i._id:null,is_payer:o==0,amount:parseFloat((Math.round(Math.random()*1e4)/10**decimals).toFixed(decimals)),user_candidates:null}));shares.splice(1,0,{...shares[0],amount:parseFloat((shares[0].amount/3).toFixed(decimals)),is_payer:!1});const mockTransaction={_id:"1",chat_id:null,is_voice:!0,raw_text:shares.map(i=>`${i.normalized_name} ${i.is_payer?instance.t("paid"):instance.t("owes")} ${i.amount}`).join(", "),formatted_text:shares.map(i=>`${i.normalized_name} ${i.is_payer?instance.t("paid"):instance.t("owes")} ${i.amount}`).join(", "),shares,is_confirmed:!1,currency_id:mockCurrencies$1[0]._id},apiUrl$1="https://3.79.107.152.sslip.io",staleTime=5*60*1e3,handleJsonResponse=i=>{if(!i.ok)throw new Error(`Backend ${i.status}`);return i.json()},useTxQuery=()=>{const{setTransaction:i,txId:o}=useStore();return console.log("useTxQuery txId",o),useQuery({queryKey:["tx",`tx-${o}`],queryFn:o?()=>fetch(`${apiUrl$1}/transactions/${o}`).then(handleJsonResponse):()=>mockTransaction,onSuccess:g=>{console.log("success tx data",g),i(g)},staleTime})},useUsersQuery=i=>{const{setUsers:o}=useStore();return useQuery({queryKey:["users",`chat-${i}`],queryFn:i?()=>fetch(`${apiUrl$1}/chats/${i}/users`).then(handleJsonResponse):()=>mockUsers,onSuccess:g=>{console.log("success users data",g),o(g)},enabled:i!==void 0,staleTime})},useCurrenciesQuery=i=>{const{setCurrencies:o}=useStore();return useQuery({queryKey:["currencies"],queryFn:()=>fetch(`${apiUrl$1}/currencies/`).then(handleJsonResponse),onSuccess:g=>{console.log("success currencies data",g),o(g)},enabled:i!==void 0,staleTime})},usePatchTransaction=()=>{const{txId:i}=useStore(),o=i?`${apiUrl$1}/transactions/${i}`:"https://jsonplaceholder.typicode.com/posts/1";return g=>fetch(o,{method:"PUT",body:JSON.stringify(g),headers:{"Content-type":"application/json"}}).then(handleJsonResponse)},useSplash=()=>{const{isLoading:i,error:o,data:g}=useTxQuery(),{isLoading:$,error:j}=useUsersQuery(g?g.chat_id:void 0),{isLoading:_e,error:et}=useCurrenciesQuery(g?g.chat_id:void 0),{currencies:rt}=useStore(),{isSuccess:tt,txPatchError:nt}=useStore(),st=i||$||_e,ft=g!=null&&g.currency_id&&rt.length&&!rt.find(ut=>ut._id===g.currency_id)?new Error(`Unknown tx currency ${g.currency_id}`):null,it=o||j||nt||et||ft;return{isSplash:st||it||tt,isLoading:st,error:it,isSuccess:tt}},useTheme=()=>{const[i]=C(),o=()=>{var tt,nt;const _e=((nt=(tt=window==null?void 0:window.Telegram)==null?void 0:tt.Webapp)==null?void 0:nt.colorScheme)==="dark"||i==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches,et=["theme-dark","dark"],rt=["theme-light","light"];return document.body.classList.add(..._e?et:rt),document.body.classList.remove(..._e?rt:et),_e},[g,$]=reactExports.useState(o()),j=()=>{$(o())};return window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",j),{isDark:g}},useUsers=()=>{const{users:i,transaction:o,setTransaction:g,selectPersonId:$}=useStore(),[j,,_e]=b(),et=(o==null?void 0:o.shares)||[],rt=et.map(ut=>ut.related_user_id),tt=i.filter(ut=>!rt.includes(ut._id)),nt=et.length>1&&et.every(ut=>ut.related_user_id&&i.find(ht=>ht._id===ut.related_user_id));return{users:i,unrelatedUsers:tt,isRelationsComplete:nt,getUserById:ut=>i.find(ht=>ht._id===ut),addUsers:ut=>()=>{if($===null){const ht=[...et,...ut.map(mt=>({person_id:`added-person-user-${mt._id}`,raw_name:null,normalized_name:null,is_payer:!1,amount:0,user_candidates:null,related_user_id:mt._id}))];o&&g({...o,shares:ht})}console.log("selectUser vibro"),_e(),j("light"),history.back()},selectUser:ut=>()=>{if($!==null){const ht=[...et],mt=[];for(let at=0;at()=>{const ht=[...et].filter(mt=>mt.person_id!==ut);o&&g({...o,shares:ht}),history.back()}}};var classnames={exports:{}};/*! + */var h$2=reactExports,n=shimExports;function p(i,o){return i===o&&(i!==0||1/i===1/o)||i!==i&&o!==o}var q=typeof Object.is=="function"?Object.is:p,r=n.useSyncExternalStore,t=h$2.useRef,u=h$2.useEffect,v$2=h$2.useMemo,w$2=h$2.useDebugValue;withSelector_production_min.useSyncExternalStoreWithSelector=function(i,o,g,$,j){var _e=t(null);if(_e.current===null){var et={hasValue:!1,value:null};_e.current=et}else et=_e.current;_e=v$2(function(){function tt(pt){if(!nt){if(nt=!0,st=pt,pt=$(pt),j!==void 0&&et.hasValue){var ut=et.value;if(j(ut,pt))return ft=ut}return ft=pt}if(ut=ft,q(st,pt))return ut;var ht=$(pt);return j!==void 0&&j(ut,ht)?ut:(st=pt,ft=ht)}var nt=!1,st,ft,it=g===void 0?null:g;return[function(){return tt(o())},it===null?void 0:function(){return tt(it())}]},[o,g,$,j]);var rt=r(i,_e[0],_e[1]);return u(function(){et.hasValue=!0,et.value=rt},[rt]),w$2(rt),rt};withSelector.exports=withSelector_production_min;var withSelectorExports=withSelector.exports;const useSyncExternalStoreExports=getDefaultExportFromCjs(withSelectorExports),{useSyncExternalStoreWithSelector}=useSyncExternalStoreExports;function useStore$1(i,o=i.getState,g){const $=useSyncExternalStoreWithSelector(i.subscribe,i.getState,i.getServerState||i.getState,o,g);return reactExports.useDebugValue($),$}const createImpl=i=>{const o=typeof i=="function"?createStore(i):i,g=($,j)=>useStore$1(o,$,j);return Object.assign(g,o),g},create$1=i=>i?createImpl(i):createImpl,useStore=create$1((i,o)=>({txId:void 0,setTxId:g=>i({txId:g}),users:[],setUsers:g=>i({users:g}),selectPersonId:null,setSelectPersonId:g=>i({selectPersonId:g}),currencies:[],setCurrencies:g=>i({currencies:g}),setCurrency:g=>{o().transaction!==void 0&&i({transaction:{...o().transaction,currency_id:g}})},transaction:void 0,setTransaction:g=>i({transaction:g}),isSuccess:null,setSuccess:g=>i({isSuccess:g}),txPatchError:null,setTxPatchError:g=>i({txPatchError:g})})),useInit=()=>{const{txId:i,setTxId:o}=useStore(),g=useLocation(),[$]=M();if(i===void 0){const _e=new URLSearchParams(g.search).get("txid"),et=$.start_param;o(_e||et||null)}},mockCurrencies$1=[{_id:"RUB",symbol:"₽",title:"Рубль",in:"В рублях"},{_id:"GEL",symbol:"₾",title:"Лари",in:"В лари"},{_id:"TRY",symbol:"₺",title:"Лира",in:"В лирах"},{_id:"EUR",symbol:"€",title:"Евро",in:"В евро"},{_id:"USD",symbol:"$",title:"Доллар",in:"В долларах"},{_id:"GBP",symbol:"£",title:"Фунт",in:"В фунтах"},{_id:"UAH",symbol:"₴",title:"Гривна",in:"В гривнах"},{_id:"BYN",symbol:"Br",title:"Бел. рубль",in:"В бел. рублях"},{_id:"KZT",symbol:"₸",title:"Тенге",in:"В тенге"},{_id:"CNY",symbol:"¥",title:"Юань",in:"В юанях"},{_id:"JPY",symbol:"¥",title:"Иена",in:"В иенах"},{_id:"CHF",symbol:"₣",title:"Франк",in:"В франках"},{_id:"CAD",symbol:"$",title:"Кан. доллар",in:"В кан. долларах"},{_id:"AUD",symbol:"$",title:"Австр. доллар",in:"В австр. долларах"},{_id:"NZD",symbol:"$",title:"Нов. доллар",in:"В нов. долларах"},{_id:"AZN",symbol:"₼",title:"Азерб. манат",in:"В азерб. манатах"},{_id:"AMD",symbol:"֏",title:"Арм. драм",in:"В арм. драмах"},{_id:"KGS",symbol:"с",title:"Сом",in:"В сомах"},{_id:"RSD",symbol:"дин",title:"Динар",in:"В динарах"},{_id:"BGN",symbol:"лв",title:"Лев",in:"В левах"}],TOLERANCE=.03,decimals=2,visible_decimals=2,consoleLogger={type:"logger",log(i){this.output("log",i)},warn(i){this.output("warn",i)},error(i){this.output("error",i)},output(i,o){console&&console[i]&&console[i].apply(console,o)}};class Logger{constructor(o){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(o,g)}init(o){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=g.prefix||"i18next:",this.logger=o||consoleLogger,this.options=g,this.debug=g.debug}log(){for(var o=arguments.length,g=new Array(o),$=0;${this.observers[$]=this.observers[$]||[],this.observers[$].push(g)}),this}off(o,g){if(this.observers[o]){if(!g){delete this.observers[o];return}this.observers[o]=this.observers[o].filter($=>$!==g)}}emit(o){for(var g=arguments.length,$=new Array(g>1?g-1:0),j=1;j{et(...$)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(et=>{et.apply(et,[o,...$])})}}function defer(){let i,o;const g=new Promise(($,j)=>{i=$,o=j});return g.resolve=i,g.reject=o,g}function makeString(i){return i==null?"":""+i}function copy(i,o,g){i.forEach($=>{o[$]&&(g[$]=o[$])})}function getLastOfPath(i,o,g){function $(et){return et&&et.indexOf("###")>-1?et.replace(/###/g,"."):et}function j(){return!i||typeof i=="string"}const _e=typeof o!="string"?[].concat(o):o.split(".");for(;_e.length>1;){if(j())return{};const et=$(_e.shift());!i[et]&&g&&(i[et]=new g),Object.prototype.hasOwnProperty.call(i,et)?i=i[et]:i={}}return j()?{}:{obj:i,k:$(_e.shift())}}function setPath(i,o,g){const{obj:$,k:j}=getLastOfPath(i,o,Object);$[j]=g}function pushPath(i,o,g,$){const{obj:j,k:_e}=getLastOfPath(i,o,Object);j[_e]=j[_e]||[],$&&(j[_e]=j[_e].concat(g)),$||j[_e].push(g)}function getPath(i,o){const{obj:g,k:$}=getLastOfPath(i,o);if(g)return g[$]}function getPathWithDefaults(i,o,g){const $=getPath(i,g);return $!==void 0?$:getPath(o,g)}function deepExtend(i,o,g){for(const $ in o)$!=="__proto__"&&$!=="constructor"&&($ in i?typeof i[$]=="string"||i[$]instanceof String||typeof o[$]=="string"||o[$]instanceof String?g&&(i[$]=o[$]):deepExtend(i[$],o[$],g):i[$]=o[$]);return i}function regexEscape(i){return i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var _entityMap={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function escape(i){return typeof i=="string"?i.replace(/[&<>"'\/]/g,o=>_entityMap[o]):i}const chars=[" ",",","?","!",";"];function looksLikeObjectPath(i,o,g){o=o||"",g=g||"";const $=chars.filter(et=>o.indexOf(et)<0&&g.indexOf(et)<0);if($.length===0)return!0;const j=new RegExp(`(${$.map(et=>et==="?"?"\\?":et).join("|")})`);let _e=!j.test(i);if(!_e){const et=i.indexOf(g);et>0&&!j.test(i.substring(0,et))&&(_e=!0)}return _e}function deepFind(i,o){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!i)return;if(i[o])return i[o];const $=o.split(g);let j=i;for(let _e=0;_e<$.length;++_e){if(!j||typeof j[$[_e]]=="string"&&_e+1<$.length)return;if(j[$[_e]]===void 0){let et=2,rt=$.slice(_e,_e+et).join(g),tt=j[rt];for(;tt===void 0&&$.length>_e+et;)et++,rt=$.slice(_e,_e+et).join(g),tt=j[rt];if(tt===void 0)return;if(tt===null)return null;if(o.endsWith(rt)){if(typeof tt=="string")return tt;if(rt&&typeof tt[rt]=="string")return tt[rt]}const nt=$.slice(_e+et).join(g);return nt?deepFind(tt,nt,g):void 0}j=j[$[_e]]}return j}function getCleanedCode(i){return i&&i.indexOf("_")>0?i.replace("_","-"):i}class ResourceStore extends EventEmitter{constructor(o){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=o||{},this.options=g,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(o){this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}removeNamespaces(o){const g=this.options.ns.indexOf(o);g>-1&&this.options.ns.splice(g,1)}getResource(o,g,$){let j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const _e=j.keySeparator!==void 0?j.keySeparator:this.options.keySeparator,et=j.ignoreJSONStructure!==void 0?j.ignoreJSONStructure:this.options.ignoreJSONStructure;let rt=[o,g];$&&typeof $!="string"&&(rt=rt.concat($)),$&&typeof $=="string"&&(rt=rt.concat(_e?$.split(_e):$)),o.indexOf(".")>-1&&(rt=o.split("."));const tt=getPath(this.data,rt);return tt||!et||typeof $!="string"?tt:deepFind(this.data&&this.data[o]&&this.data[o][g],$,_e)}addResource(o,g,$,j){let _e=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const et=_e.keySeparator!==void 0?_e.keySeparator:this.options.keySeparator;let rt=[o,g];$&&(rt=rt.concat(et?$.split(et):$)),o.indexOf(".")>-1&&(rt=o.split("."),j=g,g=rt[1]),this.addNamespaces(g),setPath(this.data,rt,j),_e.silent||this.emit("added",o,g,$,j)}addResources(o,g,$){let j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const _e in $)(typeof $[_e]=="string"||Object.prototype.toString.apply($[_e])==="[object Array]")&&this.addResource(o,g,_e,$[_e],{silent:!0});j.silent||this.emit("added",o,g,$)}addResourceBundle(o,g,$,j,_e){let et=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},rt=[o,g];o.indexOf(".")>-1&&(rt=o.split("."),j=$,$=g,g=rt[1]),this.addNamespaces(g);let tt=getPath(this.data,rt)||{};j?deepExtend(tt,$,_e):tt={...tt,...$},setPath(this.data,rt,tt),et.silent||this.emit("added",o,g,$)}removeResourceBundle(o,g){this.hasResourceBundle(o,g)&&delete this.data[o][g],this.removeNamespaces(g),this.emit("removed",o,g)}hasResourceBundle(o,g){return this.getResource(o,g)!==void 0}getResourceBundle(o,g){return g||(g=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(o,g)}:this.getResource(o,g)}getDataByLanguage(o){return this.data[o]}hasLanguageSomeTranslations(o){const g=this.getDataByLanguage(o);return!!(g&&Object.keys(g)||[]).find(j=>g[j]&&Object.keys(g[j]).length>0)}toJSON(){return this.data}}var postProcessor={processors:{},addPostProcessor(i){this.processors[i.name]=i},handle(i,o,g,$,j){return i.forEach(_e=>{this.processors[_e]&&(o=this.processors[_e].process(o,g,$,j))}),o}};const checkedLoadedFor={};class Translator extends EventEmitter{constructor(o){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),copy(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],o,this),this.options=g,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=baseLogger.create("translator")}changeLanguage(o){o&&(this.language=o)}exists(o){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(o==null)return!1;const $=this.resolve(o,g);return $&&$.res!==void 0}extractFromKey(o,g){let $=g.nsSeparator!==void 0?g.nsSeparator:this.options.nsSeparator;$===void 0&&($=":");const j=g.keySeparator!==void 0?g.keySeparator:this.options.keySeparator;let _e=g.ns||this.options.defaultNS||[];const et=$&&o.indexOf($)>-1,rt=!this.options.userDefinedKeySeparator&&!g.keySeparator&&!this.options.userDefinedNsSeparator&&!g.nsSeparator&&!looksLikeObjectPath(o,$,j);if(et&&!rt){const tt=o.match(this.interpolator.nestingRegexp);if(tt&&tt.length>0)return{key:o,namespaces:_e};const nt=o.split($);($!==j||$===j&&this.options.ns.indexOf(nt[0])>-1)&&(_e=nt.shift()),o=nt.join(j)}return typeof _e=="string"&&(_e=[_e]),{key:o,namespaces:_e}}translate(o,g,$){if(typeof g!="object"&&this.options.overloadTranslationOptionHandler&&(g=this.options.overloadTranslationOptionHandler(arguments)),typeof g=="object"&&(g={...g}),g||(g={}),o==null)return"";Array.isArray(o)||(o=[String(o)]);const j=g.returnDetails!==void 0?g.returnDetails:this.options.returnDetails,_e=g.keySeparator!==void 0?g.keySeparator:this.options.keySeparator,{key:et,namespaces:rt}=this.extractFromKey(o[o.length-1],g),tt=rt[rt.length-1],nt=g.lng||this.language,st=g.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(nt&&nt.toLowerCase()==="cimode"){if(st){const ct=g.nsSeparator||this.options.nsSeparator;return j?{res:`${tt}${ct}${et}`,usedKey:et,exactUsedKey:et,usedLng:nt,usedNS:tt,usedParams:this.getUsedParamsDetails(g)}:`${tt}${ct}${et}`}return j?{res:et,usedKey:et,exactUsedKey:et,usedLng:nt,usedNS:tt,usedParams:this.getUsedParamsDetails(g)}:et}const ft=this.resolve(o,g);let it=ft&&ft.res;const pt=ft&&ft.usedKey||et,ut=ft&&ft.exactUsedKey||et,ht=Object.prototype.toString.apply(it),mt=["[object Number]","[object Function]","[object RegExp]"],at=g.joinArrays!==void 0?g.joinArrays:this.options.joinArrays,lt=!this.i18nFormat||this.i18nFormat.handleAsObject;if(lt&&it&&(typeof it!="string"&&typeof it!="boolean"&&typeof it!="number")&&mt.indexOf(ht)<0&&!(typeof at=="string"&&ht==="[object Array]")){if(!g.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const ct=this.options.returnedObjectHandler?this.options.returnedObjectHandler(pt,it,{...g,ns:rt}):`key '${et} (${this.language})' returned an object instead of string.`;return j?(ft.res=ct,ft.usedParams=this.getUsedParamsDetails(g),ft):ct}if(_e){const ct=ht==="[object Array]",gt=ct?[]:{},yt=ct?ut:pt;for(const xt in it)if(Object.prototype.hasOwnProperty.call(it,xt)){const _t=`${yt}${_e}${xt}`;gt[xt]=this.translate(_t,{...g,joinArrays:!1,ns:rt}),gt[xt]===_t&&(gt[xt]=it[xt])}it=gt}}else if(lt&&typeof at=="string"&&ht==="[object Array]")it=it.join(at),it&&(it=this.extendTranslation(it,o,g,$));else{let ct=!1,gt=!1;const yt=g.count!==void 0&&typeof g.count!="string",xt=Translator.hasDefaultValue(g),_t=yt?this.pluralResolver.getSuffix(nt,g.count,g):"",Pt=g.ordinal&&yt?this.pluralResolver.getSuffix(nt,g.count,{ordinal:!1}):"",At=g[`defaultValue${_t}`]||g[`defaultValue${Pt}`]||g.defaultValue;!this.isValidLookup(it)&&xt&&(ct=!0,it=At),this.isValidLookup(it)||(gt=!0,it=et);const wt=(g.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&>?void 0:it,Ot=xt&&At!==it&&this.options.updateMissing;if(gt||ct||Ot){if(this.logger.log(Ot?"updateKey":"missingKey",nt,tt,et,Ot?At:it),_e){const kt=this.resolve(et,{...g,keySeparator:!1});kt&&kt.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let $t=[];const Mt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,g.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Mt&&Mt[0])for(let kt=0;kt{const bt=xt&&vt!==it?vt:wt;this.options.missingKeyHandler?this.options.missingKeyHandler(kt,tt,dt,bt,Ot,g):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(kt,tt,dt,bt,Ot,g),this.emit("missingKey",kt,tt,dt,it)};this.options.saveMissing&&(this.options.saveMissingPlurals&&yt?$t.forEach(kt=>{this.pluralResolver.getSuffixes(kt,g).forEach(dt=>{Et([kt],et+dt,g[`defaultValue${dt}`]||At)})}):Et($t,et,At))}it=this.extendTranslation(it,o,g,ft,$),gt&&it===et&&this.options.appendNamespaceToMissingKey&&(it=`${tt}:${et}`),(gt||ct)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?it=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${tt}:${et}`:et,ct?it:void 0):it=this.options.parseMissingKeyHandler(it))}return j?(ft.res=it,ft.usedParams=this.getUsedParamsDetails(g),ft):it}extendTranslation(o,g,$,j,_e){var et=this;if(this.i18nFormat&&this.i18nFormat.parse)o=this.i18nFormat.parse(o,{...this.options.interpolation.defaultVariables,...$},$.lng||this.language||j.usedLng,j.usedNS,j.usedKey,{resolved:j});else if(!$.skipInterpolation){$.interpolation&&this.interpolator.init({...$,interpolation:{...this.options.interpolation,...$.interpolation}});const nt=typeof o=="string"&&($&&$.interpolation&&$.interpolation.skipOnVariables!==void 0?$.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let st;if(nt){const it=o.match(this.interpolator.nestingRegexp);st=it&&it.length}let ft=$.replace&&typeof $.replace!="string"?$.replace:$;if(this.options.interpolation.defaultVariables&&(ft={...this.options.interpolation.defaultVariables,...ft}),o=this.interpolator.interpolate(o,ft,$.lng||this.language,$),nt){const it=o.match(this.interpolator.nestingRegexp),pt=it&&it.length;st1&&arguments[1]!==void 0?arguments[1]:{},$,j,_e,et,rt;return typeof o=="string"&&(o=[o]),o.forEach(tt=>{if(this.isValidLookup($))return;const nt=this.extractFromKey(tt,g),st=nt.key;j=st;let ft=nt.namespaces;this.options.fallbackNS&&(ft=ft.concat(this.options.fallbackNS));const it=g.count!==void 0&&typeof g.count!="string",pt=it&&!g.ordinal&&g.count===0&&this.pluralResolver.shouldUseIntlApi(),ut=g.context!==void 0&&(typeof g.context=="string"||typeof g.context=="number")&&g.context!=="",ht=g.lngs?g.lngs:this.languageUtils.toResolveHierarchy(g.lng||this.language,g.fallbackLng);ft.forEach(mt=>{this.isValidLookup($)||(rt=mt,!checkedLoadedFor[`${ht[0]}-${mt}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(rt)&&(checkedLoadedFor[`${ht[0]}-${mt}`]=!0,this.logger.warn(`key "${j}" for languages "${ht.join(", ")}" won't get resolved as namespace "${rt}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),ht.forEach(at=>{if(this.isValidLookup($))return;et=at;const lt=[st];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(lt,st,at,mt,g);else{let ct;it&&(ct=this.pluralResolver.getSuffix(at,g.count,g));const gt=`${this.options.pluralSeparator}zero`,yt=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(it&&(lt.push(st+ct),g.ordinal&&ct.indexOf(yt)===0&<.push(st+ct.replace(yt,this.options.pluralSeparator)),pt&<.push(st+gt)),ut){const xt=`${st}${this.options.contextSeparator}${g.context}`;lt.push(xt),it&&(lt.push(xt+ct),g.ordinal&&ct.indexOf(yt)===0&<.push(xt+ct.replace(yt,this.options.pluralSeparator)),pt&<.push(xt+gt))}}let ot;for(;ot=lt.pop();)this.isValidLookup($)||(_e=ot,$=this.getResource(at,mt,ot,g))}))})}),{res:$,usedKey:j,exactUsedKey:_e,usedLng:et,usedNS:rt}}isValidLookup(o){return o!==void 0&&!(!this.options.returnNull&&o===null)&&!(!this.options.returnEmptyString&&o==="")}getResource(o,g,$){let j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(o,g,$,j):this.resourceStore.getResource(o,g,$,j)}getUsedParamsDetails(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const g=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],$=o.replace&&typeof o.replace!="string";let j=$?o.replace:o;if($&&typeof o.count<"u"&&(j.count=o.count),this.options.interpolation.defaultVariables&&(j={...this.options.interpolation.defaultVariables,...j}),!$){j={...j};for(const _e of g)delete j[_e]}return j}static hasDefaultValue(o){const g="defaultValue";for(const $ in o)if(Object.prototype.hasOwnProperty.call(o,$)&&g===$.substring(0,g.length)&&o[$]!==void 0)return!0;return!1}}function capitalize(i){return i.charAt(0).toUpperCase()+i.slice(1)}class LanguageUtil{constructor(o){this.options=o,this.supportedLngs=this.options.supportedLngs||!1,this.logger=baseLogger.create("languageUtils")}getScriptPartFromCode(o){if(o=getCleanedCode(o),!o||o.indexOf("-")<0)return null;const g=o.split("-");return g.length===2||(g.pop(),g[g.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(g.join("-"))}getLanguagePartFromCode(o){if(o=getCleanedCode(o),!o||o.indexOf("-")<0)return o;const g=o.split("-");return this.formatLanguageCode(g[0])}formatLanguageCode(o){if(typeof o=="string"&&o.indexOf("-")>-1){const g=["hans","hant","latn","cyrl","cans","mong","arab"];let $=o.split("-");return this.options.lowerCaseLng?$=$.map(j=>j.toLowerCase()):$.length===2?($[0]=$[0].toLowerCase(),$[1]=$[1].toUpperCase(),g.indexOf($[1].toLowerCase())>-1&&($[1]=capitalize($[1].toLowerCase()))):$.length===3&&($[0]=$[0].toLowerCase(),$[1].length===2&&($[1]=$[1].toUpperCase()),$[0]!=="sgn"&&$[2].length===2&&($[2]=$[2].toUpperCase()),g.indexOf($[1].toLowerCase())>-1&&($[1]=capitalize($[1].toLowerCase())),g.indexOf($[2].toLowerCase())>-1&&($[2]=capitalize($[2].toLowerCase()))),$.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?o.toLowerCase():o}isSupportedCode(o){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(o=this.getLanguagePartFromCode(o)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(o)>-1}getBestMatchFromCodes(o){if(!o)return null;let g;return o.forEach($=>{if(g)return;const j=this.formatLanguageCode($);(!this.options.supportedLngs||this.isSupportedCode(j))&&(g=j)}),!g&&this.options.supportedLngs&&o.forEach($=>{if(g)return;const j=this.getLanguagePartFromCode($);if(this.isSupportedCode(j))return g=j;g=this.options.supportedLngs.find(_e=>{if(_e===j)return _e;if(!(_e.indexOf("-")<0&&j.indexOf("-")<0)&&_e.indexOf(j)===0)return _e})}),g||(g=this.getFallbackCodes(this.options.fallbackLng)[0]),g}getFallbackCodes(o,g){if(!o)return[];if(typeof o=="function"&&(o=o(g)),typeof o=="string"&&(o=[o]),Object.prototype.toString.apply(o)==="[object Array]")return o;if(!g)return o.default||[];let $=o[g];return $||($=o[this.getScriptPartFromCode(g)]),$||($=o[this.formatLanguageCode(g)]),$||($=o[this.getLanguagePartFromCode(g)]),$||($=o.default),$||[]}toResolveHierarchy(o,g){const $=this.getFallbackCodes(g||this.options.fallbackLng||[],o),j=[],_e=et=>{et&&(this.isSupportedCode(et)?j.push(et):this.logger.warn(`rejecting language code not found in supportedLngs: ${et}`))};return typeof o=="string"&&(o.indexOf("-")>-1||o.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&_e(this.formatLanguageCode(o)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&_e(this.getScriptPartFromCode(o)),this.options.load!=="currentOnly"&&_e(this.getLanguagePartFromCode(o))):typeof o=="string"&&_e(this.formatLanguageCode(o)),$.forEach(et=>{j.indexOf(et)<0&&_e(this.formatLanguageCode(et))}),j}}let sets=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],_rulesPluralsTypes={1:function(i){return+(i>1)},2:function(i){return+(i!=1)},3:function(i){return 0},4:function(i){return i%10==1&&i%100!=11?0:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?1:2},5:function(i){return i==0?0:i==1?1:i==2?2:i%100>=3&&i%100<=10?3:i%100>=11?4:5},6:function(i){return i==1?0:i>=2&&i<=4?1:2},7:function(i){return i==1?0:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?1:2},8:function(i){return i==1?0:i==2?1:i!=8&&i!=11?2:3},9:function(i){return+(i>=2)},10:function(i){return i==1?0:i==2?1:i<7?2:i<11?3:4},11:function(i){return i==1||i==11?0:i==2||i==12?1:i>2&&i<20?2:3},12:function(i){return+(i%10!=1||i%100==11)},13:function(i){return+(i!==0)},14:function(i){return i==1?0:i==2?1:i==3?2:3},15:function(i){return i%10==1&&i%100!=11?0:i%10>=2&&(i%100<10||i%100>=20)?1:2},16:function(i){return i%10==1&&i%100!=11?0:i!==0?1:2},17:function(i){return i==1||i%10==1&&i%100!=11?0:1},18:function(i){return i==0?0:i==1?1:2},19:function(i){return i==1?0:i==0||i%100>1&&i%100<11?1:i%100>10&&i%100<20?2:3},20:function(i){return i==1?0:i==0||i%100>0&&i%100<20?1:2},21:function(i){return i%100==1?1:i%100==2?2:i%100==3||i%100==4?3:0},22:function(i){return i==1?0:i==2?1:(i<0||i>10)&&i%10==0?2:3}};const nonIntlVersions=["v1","v2","v3"],intlVersions=["v4"],suffixesOrder={zero:0,one:1,two:2,few:3,many:4,other:5};function createRules(){const i={};return sets.forEach(o=>{o.lngs.forEach(g=>{i[g]={numbers:o.nr,plurals:_rulesPluralsTypes[o.fc]}})}),i}class PluralResolver{constructor(o){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=o,this.options=g,this.logger=baseLogger.create("pluralResolver"),(!this.options.compatibilityJSON||intlVersions.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=createRules()}addRule(o,g){this.rules[o]=g}getRule(o){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(getCleanedCode(o),{type:g.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[o]||this.rules[this.languageUtils.getLanguagePartFromCode(o)]}needsPlural(o){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const $=this.getRule(o,g);return this.shouldUseIntlApi()?$&&$.resolvedOptions().pluralCategories.length>1:$&&$.numbers.length>1}getPluralFormsOfKey(o,g){let $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(o,$).map(j=>`${g}${j}`)}getSuffixes(o){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const $=this.getRule(o,g);return $?this.shouldUseIntlApi()?$.resolvedOptions().pluralCategories.sort((j,_e)=>suffixesOrder[j]-suffixesOrder[_e]).map(j=>`${this.options.prepend}${g.ordinal?`ordinal${this.options.prepend}`:""}${j}`):$.numbers.map(j=>this.getSuffix(o,j,g)):[]}getSuffix(o,g){let $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const j=this.getRule(o,$);return j?this.shouldUseIntlApi()?`${this.options.prepend}${$.ordinal?`ordinal${this.options.prepend}`:""}${j.select(g)}`:this.getSuffixRetroCompatible(j,g):(this.logger.warn(`no plural rule found for: ${o}`),"")}getSuffixRetroCompatible(o,g){const $=o.noAbs?o.plurals(g):o.plurals(Math.abs(g));let j=o.numbers[$];this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1&&(j===2?j="plural":j===1&&(j=""));const _e=()=>this.options.prepend&&j.toString()?this.options.prepend+j.toString():j.toString();return this.options.compatibilityJSON==="v1"?j===1?"":typeof j=="number"?`_plural_${j.toString()}`:_e():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1?_e():this.options.prepend&&$.toString()?this.options.prepend+$.toString():$.toString()}shouldUseIntlApi(){return!nonIntlVersions.includes(this.options.compatibilityJSON)}}function deepFindWithDefaults(i,o,g){let $=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",j=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,_e=getPathWithDefaults(i,o,g);return!_e&&j&&typeof g=="string"&&(_e=deepFind(i,g,$),_e===void 0&&(_e=deepFind(o,g,$))),_e}class Interpolator{constructor(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=baseLogger.create("interpolator"),this.options=o,this.format=o.interpolation&&o.interpolation.format||(g=>g),this.init(o)}init(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};o.interpolation||(o.interpolation={escapeValue:!0});const g=o.interpolation;this.escape=g.escape!==void 0?g.escape:escape,this.escapeValue=g.escapeValue!==void 0?g.escapeValue:!0,this.useRawValueToEscape=g.useRawValueToEscape!==void 0?g.useRawValueToEscape:!1,this.prefix=g.prefix?regexEscape(g.prefix):g.prefixEscaped||"{{",this.suffix=g.suffix?regexEscape(g.suffix):g.suffixEscaped||"}}",this.formatSeparator=g.formatSeparator?g.formatSeparator:g.formatSeparator||",",this.unescapePrefix=g.unescapeSuffix?"":g.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":g.unescapeSuffix||"",this.nestingPrefix=g.nestingPrefix?regexEscape(g.nestingPrefix):g.nestingPrefixEscaped||regexEscape("$t("),this.nestingSuffix=g.nestingSuffix?regexEscape(g.nestingSuffix):g.nestingSuffixEscaped||regexEscape(")"),this.nestingOptionsSeparator=g.nestingOptionsSeparator?g.nestingOptionsSeparator:g.nestingOptionsSeparator||",",this.maxReplaces=g.maxReplaces?g.maxReplaces:1e3,this.alwaysFormat=g.alwaysFormat!==void 0?g.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const o=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(o,"g");const g=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(g,"g");const $=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp($,"g")}interpolate(o,g,$,j){let _e,et,rt;const tt=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function nt(ut){return ut.replace(/\$/g,"$$$$")}const st=ut=>{if(ut.indexOf(this.formatSeparator)<0){const lt=deepFindWithDefaults(g,tt,ut,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(lt,void 0,$,{...j,...g,interpolationkey:ut}):lt}const ht=ut.split(this.formatSeparator),mt=ht.shift().trim(),at=ht.join(this.formatSeparator).trim();return this.format(deepFindWithDefaults(g,tt,mt,this.options.keySeparator,this.options.ignoreJSONStructure),at,$,{...j,...g,interpolationkey:mt})};this.resetRegExp();const ft=j&&j.missingInterpolationHandler||this.options.missingInterpolationHandler,it=j&&j.interpolation&&j.interpolation.skipOnVariables!==void 0?j.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:ut=>nt(ut)},{regex:this.regexp,safeValue:ut=>this.escapeValue?nt(this.escape(ut)):nt(ut)}].forEach(ut=>{for(rt=0;_e=ut.regex.exec(o);){const ht=_e[1].trim();if(et=st(ht),et===void 0)if(typeof ft=="function"){const at=ft(o,_e,j);et=typeof at=="string"?at:""}else if(j&&Object.prototype.hasOwnProperty.call(j,ht))et="";else if(it){et=_e[0];continue}else this.logger.warn(`missed to pass in variable ${ht} for interpolating ${o}`),et="";else typeof et!="string"&&!this.useRawValueToEscape&&(et=makeString(et));const mt=ut.safeValue(et);if(o=o.replace(_e[0],mt),it?(ut.regex.lastIndex+=et.length,ut.regex.lastIndex-=_e[0].length):ut.regex.lastIndex=0,rt++,rt>=this.maxReplaces)break}}),o}nest(o,g){let $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},j,_e,et;function rt(tt,nt){const st=this.nestingOptionsSeparator;if(tt.indexOf(st)<0)return tt;const ft=tt.split(new RegExp(`${st}[ ]*{`));let it=`{${ft[1]}`;tt=ft[0],it=this.interpolate(it,et);const pt=it.match(/'/g),ut=it.match(/"/g);(pt&&pt.length%2===0&&!ut||ut.length%2!==0)&&(it=it.replace(/'/g,'"'));try{et=JSON.parse(it),nt&&(et={...nt,...et})}catch(ht){return this.logger.warn(`failed parsing options string in nesting for key ${tt}`,ht),`${tt}${st}${it}`}return delete et.defaultValue,tt}for(;j=this.nestingRegexp.exec(o);){let tt=[];et={...$},et=et.replace&&typeof et.replace!="string"?et.replace:et,et.applyPostProcessor=!1,delete et.defaultValue;let nt=!1;if(j[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(j[1])){const st=j[1].split(this.formatSeparator).map(ft=>ft.trim());j[1]=st.shift(),tt=st,nt=!0}if(_e=g(rt.call(this,j[1].trim(),et),et),_e&&j[0]===o&&typeof _e!="string")return _e;typeof _e!="string"&&(_e=makeString(_e)),_e||(this.logger.warn(`missed to resolve ${j[1]} for nesting ${o}`),_e=""),nt&&(_e=tt.reduce((st,ft)=>this.format(st,ft,$.lng,{...$,interpolationkey:j[1].trim()}),_e.trim())),o=o.replace(j[0],_e),this.regexp.lastIndex=0}return o}}function parseFormatStr(i){let o=i.toLowerCase().trim();const g={};if(i.indexOf("(")>-1){const $=i.split("(");o=$[0].toLowerCase().trim();const j=$[1].substring(0,$[1].length-1);o==="currency"&&j.indexOf(":")<0?g.currency||(g.currency=j.trim()):o==="relativetime"&&j.indexOf(":")<0?g.range||(g.range=j.trim()):j.split(";").forEach(et=>{if(!et)return;const[rt,...tt]=et.split(":"),nt=tt.join(":").trim().replace(/^'+|'+$/g,"");g[rt.trim()]||(g[rt.trim()]=nt),nt==="false"&&(g[rt.trim()]=!1),nt==="true"&&(g[rt.trim()]=!0),isNaN(nt)||(g[rt.trim()]=parseInt(nt,10))})}return{formatName:o,formatOptions:g}}function createCachedFormatter(i){const o={};return function($,j,_e){const et=j+JSON.stringify(_e);let rt=o[et];return rt||(rt=i(getCleanedCode(j),_e),o[et]=rt),rt($)}}class Formatter{constructor(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=baseLogger.create("formatter"),this.options=o,this.formats={number:createCachedFormatter((g,$)=>{const j=new Intl.NumberFormat(g,{...$});return _e=>j.format(_e)}),currency:createCachedFormatter((g,$)=>{const j=new Intl.NumberFormat(g,{...$,style:"currency"});return _e=>j.format(_e)}),datetime:createCachedFormatter((g,$)=>{const j=new Intl.DateTimeFormat(g,{...$});return _e=>j.format(_e)}),relativetime:createCachedFormatter((g,$)=>{const j=new Intl.RelativeTimeFormat(g,{...$});return _e=>j.format(_e,$.range||"day")}),list:createCachedFormatter((g,$)=>{const j=new Intl.ListFormat(g,{...$});return _e=>j.format(_e)})},this.init(o)}init(o){const $=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=$.formatSeparator?$.formatSeparator:$.formatSeparator||","}add(o,g){this.formats[o.toLowerCase().trim()]=g}addCached(o,g){this.formats[o.toLowerCase().trim()]=createCachedFormatter(g)}format(o,g,$){let j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return g.split(this.formatSeparator).reduce((rt,tt)=>{const{formatName:nt,formatOptions:st}=parseFormatStr(tt);if(this.formats[nt]){let ft=rt;try{const it=j&&j.formatParams&&j.formatParams[j.interpolationkey]||{},pt=it.locale||it.lng||j.locale||j.lng||$;ft=this.formats[nt](rt,pt,{...st,...j,...it})}catch(it){this.logger.warn(it)}return ft}else this.logger.warn(`there was no format function for ${nt}`);return rt},o)}}function removePending(i,o){i.pending[o]!==void 0&&(delete i.pending[o],i.pendingCount--)}class Connector extends EventEmitter{constructor(o,g,$){let j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=o,this.store=g,this.services=$,this.languageUtils=$.languageUtils,this.options=j,this.logger=baseLogger.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=j.maxParallelReads||10,this.readingCalls=0,this.maxRetries=j.maxRetries>=0?j.maxRetries:5,this.retryTimeout=j.retryTimeout>=1?j.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init($,j.backend,j)}queueLoad(o,g,$,j){const _e={},et={},rt={},tt={};return o.forEach(nt=>{let st=!0;g.forEach(ft=>{const it=`${nt}|${ft}`;!$.reload&&this.store.hasResourceBundle(nt,ft)?this.state[it]=2:this.state[it]<0||(this.state[it]===1?et[it]===void 0&&(et[it]=!0):(this.state[it]=1,st=!1,et[it]===void 0&&(et[it]=!0),_e[it]===void 0&&(_e[it]=!0),tt[ft]===void 0&&(tt[ft]=!0)))}),st||(rt[nt]=!0)}),(Object.keys(_e).length||Object.keys(et).length)&&this.queue.push({pending:et,pendingCount:Object.keys(et).length,loaded:{},errors:[],callback:j}),{toLoad:Object.keys(_e),pending:Object.keys(et),toLoadLanguages:Object.keys(rt),toLoadNamespaces:Object.keys(tt)}}loaded(o,g,$){const j=o.split("|"),_e=j[0],et=j[1];g&&this.emit("failedLoading",_e,et,g),$&&this.store.addResourceBundle(_e,et,$),this.state[o]=g?-1:2;const rt={};this.queue.forEach(tt=>{pushPath(tt.loaded,[_e],et),removePending(tt,o),g&&tt.errors.push(g),tt.pendingCount===0&&!tt.done&&(Object.keys(tt.loaded).forEach(nt=>{rt[nt]||(rt[nt]={});const st=tt.loaded[nt];st.length&&st.forEach(ft=>{rt[nt][ft]===void 0&&(rt[nt][ft]=!0)})}),tt.done=!0,tt.errors.length?tt.callback(tt.errors):tt.callback())}),this.emit("loaded",rt),this.queue=this.queue.filter(tt=>!tt.done)}read(o,g,$){let j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,_e=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,et=arguments.length>5?arguments[5]:void 0;if(!o.length)return et(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:o,ns:g,fcName:$,tried:j,wait:_e,callback:et});return}this.readingCalls++;const rt=(nt,st)=>{if(this.readingCalls--,this.waitingReads.length>0){const ft=this.waitingReads.shift();this.read(ft.lng,ft.ns,ft.fcName,ft.tried,ft.wait,ft.callback)}if(nt&&st&&j{this.read.call(this,o,g,$,j+1,_e*2,et)},_e);return}et(nt,st)},tt=this.backend[$].bind(this.backend);if(tt.length===2){try{const nt=tt(o,g);nt&&typeof nt.then=="function"?nt.then(st=>rt(null,st)).catch(rt):rt(null,nt)}catch(nt){rt(nt)}return}return tt(o,g,rt)}prepareLoading(o,g){let $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},j=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),j&&j();typeof o=="string"&&(o=this.languageUtils.toResolveHierarchy(o)),typeof g=="string"&&(g=[g]);const _e=this.queueLoad(o,g,$,j);if(!_e.toLoad.length)return _e.pending.length||j(),null;_e.toLoad.forEach(et=>{this.loadOne(et)})}load(o,g,$){this.prepareLoading(o,g,{},$)}reload(o,g,$){this.prepareLoading(o,g,{reload:!0},$)}loadOne(o){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const $=o.split("|"),j=$[0],_e=$[1];this.read(j,_e,"read",void 0,void 0,(et,rt)=>{et&&this.logger.warn(`${g}loading namespace ${_e} for language ${j} failed`,et),!et&&rt&&this.logger.log(`${g}loaded namespace ${_e} for language ${j}`,rt),this.loaded(o,et,rt)})}saveMissing(o,g,$,j,_e){let et=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},rt=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(g)){this.logger.warn(`did not save key "${$}" as the namespace "${g}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!($==null||$==="")){if(this.backend&&this.backend.create){const tt={...et,isUpdate:_e},nt=this.backend.create.bind(this.backend);if(nt.length<6)try{let st;nt.length===5?st=nt(o,g,$,j,tt):st=nt(o,g,$,j),st&&typeof st.then=="function"?st.then(ft=>rt(null,ft)).catch(rt):rt(null,st)}catch(st){rt(st)}else nt(o,g,$,j,rt,tt)}!o||!o[0]||this.store.addResource(o[0],g,$,j)}}}function get(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(o){let g={};if(typeof o[1]=="object"&&(g=o[1]),typeof o[1]=="string"&&(g.defaultValue=o[1]),typeof o[2]=="string"&&(g.tDescription=o[2]),typeof o[2]=="object"||typeof o[3]=="object"){const $=o[3]||o[2];Object.keys($).forEach(j=>{g[j]=$[j]})}return g},interpolation:{escapeValue:!0,format:i=>i,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function transformOptions(i){return typeof i.ns=="string"&&(i.ns=[i.ns]),typeof i.fallbackLng=="string"&&(i.fallbackLng=[i.fallbackLng]),typeof i.fallbackNS=="string"&&(i.fallbackNS=[i.fallbackNS]),i.supportedLngs&&i.supportedLngs.indexOf("cimode")<0&&(i.supportedLngs=i.supportedLngs.concat(["cimode"])),i}function noop(){}function bindMemberFunctions(i){Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach(g=>{typeof i[g]=="function"&&(i[g]=i[g].bind(i))})}class I18n extends EventEmitter{constructor(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g=arguments.length>1?arguments[1]:void 0;if(super(),this.options=transformOptions(o),this.services={},this.logger=baseLogger,this.modules={external:[]},bindMemberFunctions(this),g&&!this.isInitialized&&!o.isClone){if(!this.options.initImmediate)return this.init(o,g),this;setTimeout(()=>{this.init(o,g)},0)}}init(){var o=this;let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$=arguments.length>1?arguments[1]:void 0;typeof g=="function"&&($=g,g={}),!g.defaultNS&&g.defaultNS!==!1&&g.ns&&(typeof g.ns=="string"?g.defaultNS=g.ns:g.ns.indexOf("translation")<0&&(g.defaultNS=g.ns[0]));const j=get();this.options={...j,...this.options,...transformOptions(g)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...j.interpolation,...this.options.interpolation}),g.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=g.keySeparator),g.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=g.nsSeparator);function _e(st){return st?typeof st=="function"?new st:st:null}if(!this.options.isClone){this.modules.logger?baseLogger.init(_e(this.modules.logger),this.options):baseLogger.init(null,this.options);let st;this.modules.formatter?st=this.modules.formatter:typeof Intl<"u"&&(st=Formatter);const ft=new LanguageUtil(this.options);this.store=new ResourceStore(this.options.resources,this.options);const it=this.services;it.logger=baseLogger,it.resourceStore=this.store,it.languageUtils=ft,it.pluralResolver=new PluralResolver(ft,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),st&&(!this.options.interpolation.format||this.options.interpolation.format===j.interpolation.format)&&(it.formatter=_e(st),it.formatter.init(it,this.options),this.options.interpolation.format=it.formatter.format.bind(it.formatter)),it.interpolator=new Interpolator(this.options),it.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},it.backendConnector=new Connector(_e(this.modules.backend),it.resourceStore,it,this.options),it.backendConnector.on("*",function(pt){for(var ut=arguments.length,ht=new Array(ut>1?ut-1:0),mt=1;mt1?ut-1:0),mt=1;mt{pt.init&&pt.init(this)})}if(this.format=this.options.interpolation.format,$||($=noop),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const st=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);st.length>0&&st[0]!=="dev"&&(this.options.lng=st[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(st=>{this[st]=function(){return o.store[st](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(st=>{this[st]=function(){return o.store[st](...arguments),o}});const tt=defer(),nt=()=>{const st=(ft,it)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),tt.resolve(it),$(ft,it)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return st(null,this.t.bind(this));this.changeLanguage(this.options.lng,st)};return this.options.resources||!this.options.initImmediate?nt():setTimeout(nt,0),tt}loadResources(o){let $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop;const j=typeof o=="string"?o:this.language;if(typeof o=="function"&&($=o),!this.options.resources||this.options.partialBundledLanguages){if(j&&j.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return $();const _e=[],et=rt=>{if(!rt||rt==="cimode")return;this.services.languageUtils.toResolveHierarchy(rt).forEach(nt=>{nt!=="cimode"&&_e.indexOf(nt)<0&&_e.push(nt)})};j?et(j):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(tt=>et(tt)),this.options.preload&&this.options.preload.forEach(rt=>et(rt)),this.services.backendConnector.load(_e,this.options.ns,rt=>{!rt&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),$(rt)})}else $(null)}reloadResources(o,g,$){const j=defer();return o||(o=this.languages),g||(g=this.options.ns),$||($=noop),this.services.backendConnector.reload(o,g,_e=>{j.resolve(),$(_e)}),j}use(o){if(!o)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!o.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return o.type==="backend"&&(this.modules.backend=o),(o.type==="logger"||o.log&&o.warn&&o.error)&&(this.modules.logger=o),o.type==="languageDetector"&&(this.modules.languageDetector=o),o.type==="i18nFormat"&&(this.modules.i18nFormat=o),o.type==="postProcessor"&&postProcessor.addPostProcessor(o),o.type==="formatter"&&(this.modules.formatter=o),o.type==="3rdParty"&&this.modules.external.push(o),this}setResolvedLanguage(o){if(!(!o||!this.languages)&&!(["cimode","dev"].indexOf(o)>-1))for(let g=0;g-1)&&this.store.hasLanguageSomeTranslations($)){this.resolvedLanguage=$;break}}}changeLanguage(o,g){var $=this;this.isLanguageChangingTo=o;const j=defer();this.emit("languageChanging",o);const _e=tt=>{this.language=tt,this.languages=this.services.languageUtils.toResolveHierarchy(tt),this.resolvedLanguage=void 0,this.setResolvedLanguage(tt)},et=(tt,nt)=>{nt?(_e(nt),this.translator.changeLanguage(nt),this.isLanguageChangingTo=void 0,this.emit("languageChanged",nt),this.logger.log("languageChanged",nt)):this.isLanguageChangingTo=void 0,j.resolve(function(){return $.t(...arguments)}),g&&g(tt,function(){return $.t(...arguments)})},rt=tt=>{!o&&!tt&&this.services.languageDetector&&(tt=[]);const nt=typeof tt=="string"?tt:this.services.languageUtils.getBestMatchFromCodes(tt);nt&&(this.language||_e(nt),this.translator.language||this.translator.changeLanguage(nt),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(nt)),this.loadResources(nt,st=>{et(st,nt)})};return!o&&this.services.languageDetector&&!this.services.languageDetector.async?rt(this.services.languageDetector.detect()):!o&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(rt):this.services.languageDetector.detect(rt):rt(o),j}getFixedT(o,g,$){var j=this;const _e=function(et,rt){let tt;if(typeof rt!="object"){for(var nt=arguments.length,st=new Array(nt>2?nt-2:0),ft=2;ft`${tt.keyPrefix}${it}${ut}`):pt=tt.keyPrefix?`${tt.keyPrefix}${it}${et}`:et,j.t(pt,tt)};return typeof o=="string"?_e.lng=o:_e.lngs=o,_e.ns=g,_e.keyPrefix=$,_e}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(o){this.options.defaultNS=o}hasLoadedNamespace(o){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const $=g.lng||this.resolvedLanguage||this.languages[0],j=this.options?this.options.fallbackLng:!1,_e=this.languages[this.languages.length-1];if($.toLowerCase()==="cimode")return!0;const et=(rt,tt)=>{const nt=this.services.backendConnector.state[`${rt}|${tt}`];return nt===-1||nt===2};if(g.precheck){const rt=g.precheck(this,et);if(rt!==void 0)return rt}return!!(this.hasResourceBundle($,o)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||et($,o)&&(!j||et(_e,o)))}loadNamespaces(o,g){const $=defer();return this.options.ns?(typeof o=="string"&&(o=[o]),o.forEach(j=>{this.options.ns.indexOf(j)<0&&this.options.ns.push(j)}),this.loadResources(j=>{$.resolve(),g&&g(j)}),$):(g&&g(),Promise.resolve())}loadLanguages(o,g){const $=defer();typeof o=="string"&&(o=[o]);const j=this.options.preload||[],_e=o.filter(et=>j.indexOf(et)<0);return _e.length?(this.options.preload=j.concat(_e),this.loadResources(et=>{$.resolve(),g&&g(et)}),$):(g&&g(),Promise.resolve())}dir(o){if(o||(o=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!o)return"rtl";const g=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],$=this.services&&this.services.languageUtils||new LanguageUtil(get());return g.indexOf($.getLanguagePartFromCode(o))>-1||o.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g=arguments.length>1?arguments[1]:void 0;return new I18n(o,g)}cloneInstance(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop;const $=o.forkResourceStore;$&&delete o.forkResourceStore;const j={...this.options,...o,isClone:!0},_e=new I18n(j);return(o.debug!==void 0||o.prefix!==void 0)&&(_e.logger=_e.logger.clone(o)),["store","services","language"].forEach(rt=>{_e[rt]=this[rt]}),_e.services={...this.services},_e.services.utils={hasLoadedNamespace:_e.hasLoadedNamespace.bind(_e)},$&&(_e.store=new ResourceStore(this.store.data,j),_e.services.resourceStore=_e.store),_e.translator=new Translator(_e.services,j),_e.translator.on("*",function(rt){for(var tt=arguments.length,nt=new Array(tt>1?tt-1:0),st=1;st()=>{if(i.isInitialized)o();else{const g=()=>{setTimeout(()=>{i.off("initialized",g)},0),o()};i.on("initialized",g)}};function loadNamespaces(i,o,g){i.loadNamespaces(o,loadedClb(i,g))}function loadLanguages(i,o,g,$){typeof g=="string"&&(g=[g]),g.forEach(j=>{i.options.ns.indexOf(j)<0&&i.options.ns.push(j)}),i.loadLanguages(o,loadedClb(i,$))}function oldI18nextHasLoadedNamespace(i,o){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const $=o.languages[0],j=o.options?o.options.fallbackLng:!1,_e=o.languages[o.languages.length-1];if($.toLowerCase()==="cimode")return!0;const et=(rt,tt)=>{const nt=o.services.backendConnector.state[`${rt}|${tt}`];return nt===-1||nt===2};return g.bindI18n&&g.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!et(o.isLanguageChangingTo,i)?!1:!!(o.hasResourceBundle($,i)||!o.services.backendConnector.backend||o.options.resources&&!o.options.partialBundledLanguages||et($,i)&&(!j||et(_e,i)))}function hasLoadedNamespace(i,o){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!o.languages||!o.languages.length?(warnOnce("i18n.languages were undefined or empty",o.languages),!0):o.options.ignoreJSONStructure!==void 0?o.hasLoadedNamespace(i,{lng:g.lng,precheck:(j,_e)=>{if(g.bindI18n&&g.bindI18n.indexOf("languageChanging")>-1&&j.services.backendConnector.backend&&j.isLanguageChangingTo&&!_e(j.isLanguageChangingTo,i))return!1}}):oldI18nextHasLoadedNamespace(i,o,g)}const matchHtmlEntity=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,htmlEntities={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},unescapeHtmlEntity=i=>htmlEntities[i],unescape=i=>i.replace(matchHtmlEntity,unescapeHtmlEntity);let defaultOptions={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape};function setDefaults(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};defaultOptions={...defaultOptions,...i}}function getDefaults(){return defaultOptions}let i18nInstance;function setI18n(i){i18nInstance=i}function getI18n(){return i18nInstance}const initReactI18next={type:"3rdParty",init(i){setDefaults(i.options.react),setI18n(i)}},I18nContext=reactExports.createContext();class ReportNamespaces{constructor(){this.usedNamespaces={}}addUsedNamespaces(o){o.forEach(g=>{this.usedNamespaces[g]||(this.usedNamespaces[g]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const usePrevious=(i,o)=>{const g=reactExports.useRef();return reactExports.useEffect(()=>{g.current=o?g.current:i},[i,o]),g.current};function useTranslation(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:g}=o,{i18n:$,defaultNS:j}=reactExports.useContext(I18nContext)||{},_e=g||$||getI18n();if(_e&&!_e.reportNamespaces&&(_e.reportNamespaces=new ReportNamespaces),!_e){warnOnce("You will need to pass in an i18next instance by using initReactI18next");const ot=(gt,yt)=>typeof yt=="string"?yt:yt&&typeof yt=="object"&&typeof yt.defaultValue=="string"?yt.defaultValue:Array.isArray(gt)?gt[gt.length-1]:gt,ct=[ot,{},!1];return ct.t=ot,ct.i18n={},ct.ready=!1,ct}_e.options.react&&_e.options.react.wait!==void 0&&warnOnce("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const et={...getDefaults(),..._e.options.react,...o},{useSuspense:rt,keyPrefix:tt}=et;let nt=i||j||_e.options&&_e.options.defaultNS;nt=typeof nt=="string"?[nt]:nt||["translation"],_e.reportNamespaces.addUsedNamespaces&&_e.reportNamespaces.addUsedNamespaces(nt);const st=(_e.isInitialized||_e.initializedStoreOnce)&&nt.every(ot=>hasLoadedNamespace(ot,_e,et));function ft(){return _e.getFixedT(o.lng||null,et.nsMode==="fallback"?nt:nt[0],tt)}const[it,pt]=reactExports.useState(ft);let ut=nt.join();o.lng&&(ut=`${o.lng}${ut}`);const ht=usePrevious(ut),mt=reactExports.useRef(!0);reactExports.useEffect(()=>{const{bindI18n:ot,bindI18nStore:ct}=et;mt.current=!0,!st&&!rt&&(o.lng?loadLanguages(_e,o.lng,nt,()=>{mt.current&&pt(ft)}):loadNamespaces(_e,nt,()=>{mt.current&&pt(ft)})),st&&ht&&ht!==ut&&mt.current&&pt(ft);function gt(){mt.current&&pt(ft)}return ot&&_e&&_e.on(ot,gt),ct&&_e&&_e.store.on(ct,gt),()=>{mt.current=!1,ot&&_e&&ot.split(" ").forEach(yt=>_e.off(yt,gt)),ct&&_e&&ct.split(" ").forEach(yt=>_e.store.off(yt,gt))}},[_e,ut]);const at=reactExports.useRef(!0);reactExports.useEffect(()=>{mt.current&&!at.current&&pt(ft),at.current=!1},[_e,tt]);const lt=[it,_e,st];if(lt.t=it,lt.i18n=_e,lt.ready=st,st||!st&&!rt)return lt;throw new Promise(ot=>{o.lng?loadLanguages(_e,o.lng,nt,()=>ot()):loadNamespaces(_e,nt,()=>ot())})}const demoMode$1="Demo mode",bot$1="bot",cancel$1="Cancel",back$1="Back",addMore$1="Add more",addEveryone$1="Add everyone",next$1="Next",save$1="Save",message$1="Message",addUsers$1="Add users",matchUsers$1="Match names",willBeSaved$1="I'll remember the names later",paid$1="paid",owes$1="owes",select$1="please select...",author$1="author",added$1="added",addUser$1="Add user",selectWhoIs$1="Select who is",selectUser$1="Select user",checkout$1="Checkout",lack$1="Lack",allRight$1="All right",overdo$1="Overdo",paidSum$1="Paid",oweSum$1="owe",payers$1="Payers",noShares$1="Nobody here",forYourselfAndForOthers$1="For yourself and for others",forOthers$1="For others",splitEqually$1="Split equally",selectCurrency$1="Select currency",translationEn={demoMode:demoMode$1,bot:bot$1,cancel:cancel$1,back:back$1,delete:"Delete",addMore:addMore$1,addEveryone:addEveryone$1,next:next$1,save:save$1,message:message$1,addUsers:addUsers$1,matchUsers:matchUsers$1,willBeSaved:willBeSaved$1,paid:paid$1,owes:owes$1,select:select$1,author:author$1,added:added$1,addUser:addUser$1,selectWhoIs:selectWhoIs$1,selectUser:selectUser$1,checkout:checkout$1,lack:lack$1,allRight:allRight$1,overdo:overdo$1,paidSum:paidSum$1,oweSum:oweSum$1,payers:payers$1,noShares:noShares$1,forYourselfAndForOthers:forYourselfAndForOthers$1,forOthers:forOthers$1,splitEqually:splitEqually$1,selectCurrency:selectCurrency$1},demoMode="Демо-режим",bot="бот",cancel="Отмена",back="Назад",addMore="Добавить ещё",addEveryone="Добавить всех",next="Далее",save="Сохранить",message="Сообщение",addUsers="Добавьте людей",matchUsers="Соотнесите людей",willBeSaved="Со временем я запомню соотношения",paid="заплатил",owes="должен",select="выберите...",author="автор",added="доп.",addUser="Добавить человека",selectWhoIs="Выберите, кто",selectUser="Выберите",checkout="Проверить траты",lack="Не хватает",allRight="Всё верно",overdo="Перебор",paidSum="Заплатили",oweSum="должны",payers="Заплатили",noShares="Пусто",forYourselfAndForOthers="За себя и за других",forOthers="За других",splitEqually="Разделить поровну",selectCurrency="Выберите валюту",translationRu={demoMode,bot,cancel,back,delete:"Удалить",addMore,addEveryone,next,save,message,addUsers,matchUsers,willBeSaved,paid,owes,select,author,added,addUser,selectWhoIs,selectUser,checkout,lack,allRight,overdo,paidSum,oweSum,payers,noShares,forYourselfAndForOthers,forOthers,splitEqually,selectCurrency};var Yr,Xr;instance.use(initReactI18next).init({lng:((Xr=(Yr=window.Telegram)==null?void 0:Yr.WebApp.initDataUnsafe.user)==null?void 0:Xr.language_code)==="ru"?"ru":"en",fallbackLng:"en",supportedLngs:["en","ru"],debug:!0,resources:{en:{translation:translationEn},ru:{translation:translationRu}}});const transliterate=i=>{const o={Ё:"YO",Й:"I",Ц:"TS",У:"U",К:"K",Е:"E",Н:"N",Г:"G",Ш:"SH",Щ:"SCH",З:"Z",Х:"H",Ъ:"",ё:"yo",й:"i",ц:"ts",у:"u",к:"k",е:"e",н:"n",г:"g",ш:"sh",щ:"sch",з:"z",х:"h",ъ:"",Ф:"F",Ы:"I",В:"V",А:"A",П:"P",Р:"R",О:"O",Л:"L",Д:"D",Ж:"ZH",Э:"E",ф:"f",ы:"i",в:"v",а:"a",п:"p",р:"r",о:"o",л:"l",д:"d",ж:"zh",э:"e",Я:"Ya",Ч:"CH",С:"S",М:"M",И:"I",Т:"T",Ь:"",Б:"B",Ю:"YU",я:"ya",ч:"ch",с:"s",м:"m",и:"i",т:"t",ь:"",б:"b",ю:"yu"};return i.split("").map(g=>o[g]||g).join("")},generateUser=i=>({_id:Math.round(Math.random()*1e10),first_name:i,last_name:i,username:Math.random()>.2?transliterate(i):void 0,profile_photo:Math.random()<.5?null:`https://i.pravatar.cc/48/${Math.round(Math.random()*1e10)}`,_name:i}),generateName=()=>{const i=instance.language==="ru"?["Александр","Дмитрий","Максим","Сергей","Андрей","Алексей","Артём","Илья","Кирилл","Михаил","Никита","Матвей","Роман","Егор","Арсений","Иван","Денис","Евгений","Тимофей","Владислав","Игорь","Владимир","Павел","Руслан","Марк","Константин","Тимур","Олег","Ярослав","Антон","Николай","Данил","Анастасия","Мария","Анна","Виктория","Екатерина","Наталья","Марина","Полина","София","Дарья","Алиса","Ксения","Александра","Елена"]:["Isabelle","Louis","Tariq","Joyce","Zaid","Mary","Rufus","Ishaq","Lucy","Vinnie","Amelie","Jaydon","Beth","Zackary","Scott","Rhonda","Gilbert","Ayla","Dale","Moshe","Jon","Sylvie","Grover","Neil","Lukas","Amber","Shreya","Evan","Lucinda","Kareem","Reid","Owain","Liberty","Cordelia","Tony","Ophelia","Maeve","Yasir","Gary","Daniella","Keira","Umar","Sally","Oskar","Lucia","Dewi","Bethany","Marco","Amna","Micheal"];return i[Math.floor(Math.random()*i.length)]},generateNames=i=>{const o=[];do{const g=generateName();o.includes(g)||o.push(g)}while(o.length!==i);return o},_names=generateNames(6),mockUsers=_names.map(i=>generateUser(i)),shares=mockUsers.slice(0,4).map((i,o)=>({person_id:`Person${o}`,raw_name:i._name||"",normalized_name:i._name||"",related_user_id:Math.random()>.3?i._id:null,is_payer:o==0,amount:parseFloat((Math.round(Math.random()*1e4)/10**decimals).toFixed(decimals)),user_candidates:null}));shares.splice(1,0,{...shares[0],amount:parseFloat((shares[0].amount/3).toFixed(decimals)),is_payer:!1});const mockTransaction={_id:"1",chat_id:null,is_voice:!0,raw_text:shares.map(i=>`${i.normalized_name} ${i.is_payer?instance.t("paid"):instance.t("owes")} ${i.amount}`).join(", "),formatted_text:shares.map(i=>`${i.normalized_name} ${i.is_payer?instance.t("paid"):instance.t("owes")} ${i.amount}`).join(", "),shares,is_confirmed:!1,currency_id:mockCurrencies$1[0]._id},apiUrl$1="https://3.79.107.152.sslip.io",staleTime=5*60*1e3,handleJsonResponse=i=>{if(!i.ok)throw new Error(`Backend ${i.status}`);return i.json()},useTxQuery=()=>{const{setTransaction:i,txId:o}=useStore();return console.log("useTxQuery txId",o),useQuery({queryKey:["tx",`tx-${o}`],queryFn:o?()=>fetch(`${apiUrl$1}/transactions/${o}`).then(handleJsonResponse):()=>mockTransaction,onSuccess:g=>{console.log("success tx data",g),i(g)},staleTime})},useUsersQuery=i=>{const{setUsers:o}=useStore();return useQuery({queryKey:["users",`chat-${i}`],queryFn:i?()=>fetch(`${apiUrl$1}/chats/${i}/users`).then(handleJsonResponse):()=>mockUsers,onSuccess:g=>{console.log("success users data",g),o(g)},enabled:i!==void 0,staleTime})},useCurrenciesQuery=i=>{const{setCurrencies:o}=useStore();return useQuery({queryKey:["currencies"],queryFn:()=>fetch(`${apiUrl$1}/currencies/`).then(handleJsonResponse),onSuccess:g=>{console.log("success currencies data",g),o(g)},enabled:i!==void 0,staleTime})},usePatchTransaction=()=>{const{txId:i}=useStore(),o=i?`${apiUrl$1}/transactions/${i}`:"https://jsonplaceholder.typicode.com/posts/1";return g=>fetch(o,{method:"PUT",body:JSON.stringify(g),headers:{"Content-type":"application/json"}}).then(handleJsonResponse)},useSplash=()=>{const{isLoading:i,error:o,data:g}=useTxQuery(),{isLoading:$,error:j}=useUsersQuery(g?g.chat_id:void 0),{isLoading:_e,error:et}=useCurrenciesQuery(g?g.chat_id:void 0),{currencies:rt}=useStore(),{isSuccess:tt,txPatchError:nt}=useStore(),st=i||$||_e,ft=g!=null&&g.currency_id&&rt.length&&!rt.find(ut=>ut._id===g.currency_id)?new Error(`Unknown tx currency ${g.currency_id}`):null,it=o||j||nt||et||ft;return{isSplash:st||it||tt,isLoading:st,error:it,isSuccess:tt}},useTheme=()=>{const[i]=C(),o=()=>{var tt;const _e=((tt=window.Telegram)==null?void 0:tt.WebApp.colorScheme)==="dark"||i==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches,et=["theme-dark","dark"],rt=["theme-light","light"];return document.body.classList.add(..._e?et:rt),document.body.classList.remove(..._e?rt:et),_e},[g,$]=reactExports.useState(o()),j=()=>{$(o())};return window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",j),{isDark:g}},useUsers=()=>{const{users:i,transaction:o,setTransaction:g,selectPersonId:$}=useStore(),[j,,_e]=b(),et=(o==null?void 0:o.shares)||[],rt=et.map(ut=>ut.related_user_id),tt=i.filter(ut=>!rt.includes(ut._id)),nt=et.length>1&&et.every(ut=>ut.related_user_id&&i.find(ht=>ht._id===ut.related_user_id));return{users:i,unrelatedUsers:tt,isRelationsComplete:nt,getUserById:ut=>i.find(ht=>ht._id===ut),addUsers:ut=>()=>{if($===null){const ht=[...et,...ut.map(mt=>({person_id:`added-person-user-${mt._id}`,raw_name:null,normalized_name:null,is_payer:!1,amount:0,user_candidates:null,related_user_id:mt._id}))];o&&g({...o,shares:ht})}console.log("selectUser vibro"),_e(),j("light"),history.back()},selectUser:ut=>()=>{if($!==null){const ht=[...et],mt=[];for(let at=0;at()=>{const ht=[...et].filter(mt=>mt.person_id!==ut);o&&g({...o,shares:ht}),history.back()}}};var classnames={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(i){(function(){var o={}.hasOwnProperty;function g(){for(var $=[],j=0;jjsxRuntimeExports.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-y-1/2 -translate-x-1/2 w-[50px] h-[50px]",style:{width:i,height:i},children:jsxRuntimeExports.jsx("div",{className:"w-full h-full rounded-full border-[3px] border-button border-l-button/10 border-t-button/10 animate-[spin_0.6s_linear_infinite]"})});function Button({theme:i="default",isBottom:o,text:g,disabled:$,isBusy:j,onClick:_e}){const et=O(),{isSplash:rt}=useSplash(),[tt]=b(),nt=$?void 0:ft=>{console.log("Button vibro"),tt(o?"heavy":"light"),_e(ft)};if(o&&et.platform!=="unknown")return rt?null:jsxRuntimeExports.jsx(P,{text:g,disabled:$,progress:j,color:$?"#888888":void 0,onClick:nt});const st={default:"mx-auto w-full block h-10 bg-button text-buttonText rounded-md text-[14px] leading-[20px] font-semibold enabled:hover:brightness-110 enabled:active:brightness-[1.2] transition-all",text:"min-h-[24px] text-[14px] leading-[1.2em] text-button hover:brightness-[1.2] active:brightness-[1.4] transition-all"}[i];return jsxRuntimeExports.jsx("div",{className:cx(o&&"h-[56px]"),children:jsxRuntimeExports.jsxs("div",{className:cx(o?"fixed bottom-0 left-0 w-full pt-1 bg-bg":"relative"),children:[o&&jsxRuntimeExports.jsx("div",{className:"absolute bottom-full left-0 w-full h-2 bg-gradient-to-t from-bg"}),jsxRuntimeExports.jsx("button",{className:cx(st,o&&"!h-[56px]","disabled:opacity-40 disabled:cursor-not-allowed"),disabled:$||j,onClick:nt,children:g}),j&&jsxRuntimeExports.jsx(Loader,{size:30})]})})}const SvgBack=i=>reactExports.createElement("svg",{width:12,height:20,viewBox:"0 0 12 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.53714 19.5928L0.292152 10.6788C-0.097384 10.3036 -0.097384 9.69738 0.292152 9.32117L9.53714 0.407154C10.0995 -0.135718 11.0144 -0.135718 11.5777 0.407154C12.14 0.950026 12.14 1.8311 11.5777 2.37397L3.66913 10.0005L11.5777 17.6251C12.14 18.1689 12.14 19.05 11.5777 19.5928C11.0144 20.1357 10.0995 20.1357 9.53714 19.5928Z",fill:"currentColor"}));function Header({onBack:i,onCancel:o}){var $,j;const{t:g}=useTranslation();return((j=($=window==null?void 0:window.Telegram)==null?void 0:$.WebApp)==null?void 0:j.platform)!=="unknown"?jsxRuntimeExports.jsx("div",{className:"h-3",children:jsxRuntimeExports.jsx(B,{onClick:i})}):jsxRuntimeExports.jsxs("header",{className:"relative flex items-center justify-center h-[64px]",children:[o&&jsxRuntimeExports.jsx("button",{className:"absolute left-4 top-1/2 -translate-y-1/2 text-link hover:brightness-[1.2] active:brightness-[1.4] transition-all",onClick:o,children:g("cancel")}),i&&jsxRuntimeExports.jsxs("button",{className:"flex items-center gap-[5px] absolute left-4 top-1/2 -translate-y-1/2 text-link hover:brightness-[1.2] active:brightness-[1.4] transition-all",onClick:i,children:[jsxRuntimeExports.jsx(SvgBack,{}),jsxRuntimeExports.jsx("span",{children:g("back")})]}),jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center justify-center gap-0.5",children:[jsxRuntimeExports.jsx("div",{className:"text-[17px] leading-[22px] font-semibold",children:"Calcoala"}),jsxRuntimeExports.jsx("div",{className:"text-hint text-[13px] leading-[18px] font-semibold opacity-70",children:g("bot")})]})]})}var lottie$1={exports:{}};(function(module,exports){typeof navigator<"u"&&function(i,o){module.exports=o()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(o){_useWebWorker=!!o},getWebWorker=function(){return _useWebWorker},setLocationHref=function(o){locationHref=o},getLocationHref=function(){return locationHref};function createTag(i){return document.createElement(i)}function extendPrototype(i,o){var g,$=i.length,j;for(g=0;g<$;g+=1){j=i[g].prototype;for(var _e in j)Object.prototype.hasOwnProperty.call(j,_e)&&(o.prototype[_e]=j[_e])}}function getDescriptor(i,o){return Object.getOwnPropertyDescriptor(i,o)}function createProxyFunction(i){function o(){}return o.prototype=i,o}var audioControllerFactory=function(){function i(o){this.audios=[],this.audioFactory=o,this._volume=1,this._isMuted=!1}return i.prototype={addAudio:function(g){this.audios.push(g)},pause:function(){var g,$=this.audios.length;for(g=0;g<$;g+=1)this.audios[g].pause()},resume:function(){var g,$=this.audios.length;for(g=0;g<$;g+=1)this.audios[g].resume()},setRate:function(g){var $,j=this.audios.length;for($=0;$1?g[1]=1:g[1]<=0&&(g[1]=0),HSVtoRGB(g[0],g[1],g[2])}function addBrightnessToRGB(i,o){var g=RGBtoHSV(i[0]*255,i[1]*255,i[2]*255);return g[2]+=o,g[2]>1?g[2]=1:g[2]<0&&(g[2]=0),HSVtoRGB(g[0],g[1],g[2])}function addHueToRGB(i,o){var g=RGBtoHSV(i[0]*255,i[1]*255,i[2]*255);return g[0]+=o/360,g[0]>1?g[0]-=1:g[0]<0&&(g[0]+=1),HSVtoRGB(g[0],g[1],g[2])}var rgbToHex=function(){var i=[],o,g;for(o=0;o<256;o+=1)g=o.toString(16),i[o]=g.length===1?"0"+g:g;return function($,j,_e){return $<0&&($=0),j<0&&(j=0),_e<0&&(_e=0),"#"+i[$]+i[j]+i[_e]}}(),setSubframeEnabled=function(o){subframeEnabled=!!o},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(o){expressionsPlugin=o},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(o){expressionsInterfaces=o},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(o){defaultCurveSegments=o},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(o){idPrefix$1=o};function createNS(i){return document.createElementNS(svgNS,i)}function _typeof$5(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(g){return typeof g}:_typeof$5=function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},_typeof$5(i)}var dataManager=function(){var i=1,o=[],g,$,j={onmessage:function(){},postMessage:function(pt){g({data:pt})}},_e={postMessage:function(pt){j.onmessage({data:pt})}};function et(it){if(window.Worker&&window.Blob&&getWebWorker()){var pt=new Blob(["var _workerSelf = self; self.onmessage = ",it.toString()],{type:"text/javascript"}),ut=URL.createObjectURL(pt);return new Worker(ut)}return g=it,j}function rt(){$||($=et(function(pt){function ut(){function mt(Mt,Et){var kt,dt,vt=Mt.length,bt,St,It,Lt;for(dt=0;dt=0;Et-=1)if(Mt[Et].ty==="sh")if(Mt[Et].ks.k.i)gt(Mt[Et].ks.k);else for(vt=Mt[Et].ks.k.length,dt=0;dtkt[0]?!0:kt[0]>Mt[0]?!1:Mt[1]>kt[1]?!0:kt[1]>Mt[1]?!1:Mt[2]>kt[2]?!0:kt[2]>Mt[2]?!1:null}var xt=function(){var Mt=[4,4,14];function Et(dt){var vt=dt.t.d;dt.t.d={k:[{s:vt,t:0}]}}function kt(dt){var vt,bt=dt.length;for(vt=0;vt=0;vt-=1)if(dt[vt].ty==="sh")if(dt[vt].ks.k.i)dt[vt].ks.k.c=dt[vt].closed;else for(It=dt[vt].ks.k.length,St=0;St500)&&(this._imageLoaded(),clearInterval(ot)),lt+=1}.bind(this),50)}function _e(at){var lt=$(at,this.assetsPath,this.path),ot=createNS("image");isSafari?this.testImageLoaded(ot):ot.addEventListener("load",this._imageLoaded,!1),ot.addEventListener("error",function(){ct.img=i,this._imageLoaded()}.bind(this),!1),ot.setAttributeNS("http://www.w3.org/1999/xlink","href",lt),this._elementHelper.append?this._elementHelper.append(ot):this._elementHelper.appendChild(ot);var ct={img:ot,assetData:at};return ct}function et(at){var lt=$(at,this.assetsPath,this.path),ot=createTag("img");ot.crossOrigin="anonymous",ot.addEventListener("load",this._imageLoaded,!1),ot.addEventListener("error",function(){ct.img=i,this._imageLoaded()}.bind(this),!1),ot.src=lt;var ct={img:ot,assetData:at};return ct}function rt(at){var lt={assetData:at},ot=$(at,this.assetsPath,this.path);return dataManager.loadData(ot,function(ct){lt.img=ct,this._footageLoaded()}.bind(this),function(){lt.img={},this._footageLoaded()}.bind(this)),lt}function tt(at,lt){this.imagesLoadedCb=lt;var ot,ct=at.length;for(ot=0;otjsxRuntimeExports.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-y-1/2 -translate-x-1/2 w-[50px] h-[50px]",style:{width:i,height:i},children:jsxRuntimeExports.jsx("div",{className:"w-full h-full rounded-full border-[3px] border-button border-l-button/10 border-t-button/10 animate-[spin_0.6s_linear_infinite]"})});function Button({theme:i="default",isBottom:o,text:g,disabled:$,isBusy:j,onClick:_e}){const et=O(),{isSplash:rt}=useSplash(),[tt]=b(),nt=$?()=>{}:()=>{console.log("Button vibro"),tt(o?"heavy":"light"),_e()};if(o&&et.platform!=="unknown")return rt?null:jsxRuntimeExports.jsx(P,{text:g,disabled:$,progress:j,color:$?"#888888":void 0,onClick:nt});const st={default:"mx-auto w-full block h-10 bg-button text-buttonText rounded-md text-[14px] leading-[20px] font-semibold enabled:hover:brightness-110 enabled:active:brightness-[1.2] transition-all",text:"min-h-[24px] text-[14px] leading-[1.2em] text-button hover:brightness-[1.2] active:brightness-[1.4] transition-all"}[i];return jsxRuntimeExports.jsx("div",{className:cx(o&&"h-[56px]"),children:jsxRuntimeExports.jsxs("div",{className:cx(o?"fixed bottom-0 left-0 w-full pt-1 bg-bg":"relative"),children:[o&&jsxRuntimeExports.jsx("div",{className:"absolute bottom-full left-0 w-full h-2 bg-gradient-to-t from-bg"}),jsxRuntimeExports.jsx("button",{className:cx(st,o&&"!h-[56px]","disabled:opacity-40 disabled:cursor-not-allowed"),disabled:$||j,onClick:nt,children:g}),j&&jsxRuntimeExports.jsx(Loader,{size:30})]})})}const SvgBack=i=>reactExports.createElement("svg",{width:12,height:20,viewBox:"0 0 12 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.53714 19.5928L0.292152 10.6788C-0.097384 10.3036 -0.097384 9.69738 0.292152 9.32117L9.53714 0.407154C10.0995 -0.135718 11.0144 -0.135718 11.5777 0.407154C12.14 0.950026 12.14 1.8311 11.5777 2.37397L3.66913 10.0005L11.5777 17.6251C12.14 18.1689 12.14 19.05 11.5777 19.5928C11.0144 20.1357 10.0995 20.1357 9.53714 19.5928Z",fill:"currentColor"}));function Header({onBack:i,onCancel:o}){var $;const{t:g}=useTranslation();return(($=window.Telegram)==null?void 0:$.WebApp.platform)!=="unknown"?jsxRuntimeExports.jsx("div",{className:"h-3",children:jsxRuntimeExports.jsx(B,{onClick:i})}):jsxRuntimeExports.jsxs("header",{className:"relative flex items-center justify-center h-[64px]",children:[o&&jsxRuntimeExports.jsx("button",{className:"absolute left-4 top-1/2 -translate-y-1/2 text-link hover:brightness-[1.2] active:brightness-[1.4] transition-all",onClick:o,children:g("cancel")}),i&&jsxRuntimeExports.jsxs("button",{className:"flex items-center gap-[5px] absolute left-4 top-1/2 -translate-y-1/2 text-link hover:brightness-[1.2] active:brightness-[1.4] transition-all",onClick:i,children:[jsxRuntimeExports.jsx(SvgBack,{}),jsxRuntimeExports.jsx("span",{children:g("back")})]}),jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center justify-center gap-0.5",children:[jsxRuntimeExports.jsx("div",{className:"text-[17px] leading-[22px] font-semibold",children:"Calcoala"}),jsxRuntimeExports.jsx("div",{className:"text-hint text-[13px] leading-[18px] font-semibold opacity-70",children:g("bot")})]})]})}var lottie$1={exports:{}};(function(module,exports){typeof navigator<"u"&&function(i,o){module.exports=o()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(o){_useWebWorker=!!o},getWebWorker=function(){return _useWebWorker},setLocationHref=function(o){locationHref=o},getLocationHref=function(){return locationHref};function createTag(i){return document.createElement(i)}function extendPrototype(i,o){var g,$=i.length,j;for(g=0;g<$;g+=1){j=i[g].prototype;for(var _e in j)Object.prototype.hasOwnProperty.call(j,_e)&&(o.prototype[_e]=j[_e])}}function getDescriptor(i,o){return Object.getOwnPropertyDescriptor(i,o)}function createProxyFunction(i){function o(){}return o.prototype=i,o}var audioControllerFactory=function(){function i(o){this.audios=[],this.audioFactory=o,this._volume=1,this._isMuted=!1}return i.prototype={addAudio:function(g){this.audios.push(g)},pause:function(){var g,$=this.audios.length;for(g=0;g<$;g+=1)this.audios[g].pause()},resume:function(){var g,$=this.audios.length;for(g=0;g<$;g+=1)this.audios[g].resume()},setRate:function(g){var $,j=this.audios.length;for($=0;$1?g[1]=1:g[1]<=0&&(g[1]=0),HSVtoRGB(g[0],g[1],g[2])}function addBrightnessToRGB(i,o){var g=RGBtoHSV(i[0]*255,i[1]*255,i[2]*255);return g[2]+=o,g[2]>1?g[2]=1:g[2]<0&&(g[2]=0),HSVtoRGB(g[0],g[1],g[2])}function addHueToRGB(i,o){var g=RGBtoHSV(i[0]*255,i[1]*255,i[2]*255);return g[0]+=o/360,g[0]>1?g[0]-=1:g[0]<0&&(g[0]+=1),HSVtoRGB(g[0],g[1],g[2])}var rgbToHex=function(){var i=[],o,g;for(o=0;o<256;o+=1)g=o.toString(16),i[o]=g.length===1?"0"+g:g;return function($,j,_e){return $<0&&($=0),j<0&&(j=0),_e<0&&(_e=0),"#"+i[$]+i[j]+i[_e]}}(),setSubframeEnabled=function(o){subframeEnabled=!!o},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(o){expressionsPlugin=o},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(o){expressionsInterfaces=o},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(o){defaultCurveSegments=o},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(o){idPrefix$1=o};function createNS(i){return document.createElementNS(svgNS,i)}function _typeof$5(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(g){return typeof g}:_typeof$5=function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},_typeof$5(i)}var dataManager=function(){var i=1,o=[],g,$,j={onmessage:function(){},postMessage:function(pt){g({data:pt})}},_e={postMessage:function(pt){j.onmessage({data:pt})}};function et(it){if(window.Worker&&window.Blob&&getWebWorker()){var pt=new Blob(["var _workerSelf = self; self.onmessage = ",it.toString()],{type:"text/javascript"}),ut=URL.createObjectURL(pt);return new Worker(ut)}return g=it,j}function rt(){$||($=et(function(pt){function ut(){function mt(Mt,Et){var kt,dt,vt=Mt.length,bt,St,It,Lt;for(dt=0;dt=0;Et-=1)if(Mt[Et].ty==="sh")if(Mt[Et].ks.k.i)gt(Mt[Et].ks.k);else for(vt=Mt[Et].ks.k.length,dt=0;dtkt[0]?!0:kt[0]>Mt[0]?!1:Mt[1]>kt[1]?!0:kt[1]>Mt[1]?!1:Mt[2]>kt[2]?!0:kt[2]>Mt[2]?!1:null}var xt=function(){var Mt=[4,4,14];function Et(dt){var vt=dt.t.d;dt.t.d={k:[{s:vt,t:0}]}}function kt(dt){var vt,bt=dt.length;for(vt=0;vt=0;vt-=1)if(dt[vt].ty==="sh")if(dt[vt].ks.k.i)dt[vt].ks.k.c=dt[vt].closed;else for(It=dt[vt].ks.k.length,St=0;St500)&&(this._imageLoaded(),clearInterval(ot)),lt+=1}.bind(this),50)}function _e(at){var lt=$(at,this.assetsPath,this.path),ot=createNS("image");isSafari?this.testImageLoaded(ot):ot.addEventListener("load",this._imageLoaded,!1),ot.addEventListener("error",function(){ct.img=i,this._imageLoaded()}.bind(this),!1),ot.setAttributeNS("http://www.w3.org/1999/xlink","href",lt),this._elementHelper.append?this._elementHelper.append(ot):this._elementHelper.appendChild(ot);var ct={img:ot,assetData:at};return ct}function et(at){var lt=$(at,this.assetsPath,this.path),ot=createTag("img");ot.crossOrigin="anonymous",ot.addEventListener("load",this._imageLoaded,!1),ot.addEventListener("error",function(){ct.img=i,this._imageLoaded()}.bind(this),!1),ot.src=lt;var ct={img:ot,assetData:at};return ct}function rt(at){var lt={assetData:at},ot=$(at,this.assetsPath,this.path);return dataManager.loadData(ot,function(ct){lt.img=ct,this._footageLoaded()}.bind(this),function(){lt.img={},this._footageLoaded()}.bind(this)),lt}function tt(at,lt){this.imagesLoadedCb=lt;var ot,ct=at.length;for(ot=0;otthis.animationData.op&&(this.animationData.op=i.op,this.totalFrames=Math.floor(i.op-this.animationData.ip));var o=this.animationData.layers,g,$=o.length,j=i.layers,_e,et=j.length;for(_e=0;_ethis.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(i){this.triggerRenderFrameError(i)}},AnimationItem.prototype.play=function(i){i&&this.name!==i||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(i){i&&this.name!==i||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(i){i&&this.name!==i||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(i){i&&this.name!==i||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(i){for(var o,g=0;g=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(o>this.totalFrames?o%this.totalFrames:0)||(g=!0,o=this.totalFrames-1):o>=this.totalFrames?(this.playCount+=1,this.checkSegments(o%this.totalFrames)||(this.setCurrentRawFrameValue(o%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(o):o<0?this.checkSegments(o%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+o%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(g=!0,o=0)):this.setCurrentRawFrameValue(o),g&&(this.setCurrentRawFrameValue(o),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(i,o){this.playCount=0,i[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=i[0]-i[1],this.timeCompleted=this.totalFrames,this.firstFrame=i[1],this.setCurrentRawFrameValue(this.totalFrames-.001-o)):i[1]>i[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=i[1]-i[0],this.timeCompleted=this.totalFrames,this.firstFrame=i[0],this.setCurrentRawFrameValue(.001+o)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(i,o){var g=-1;this.isPaused&&(this.currentRawFrame+this.firstFrameo&&(g=o-i)),this.firstFrame=i,this.totalFrames=o-i,this.timeCompleted=this.totalFrames,g!==-1&&this.goToAndStop(g,!0)},AnimationItem.prototype.playSegments=function(i,o){if(o&&(this.segments.length=0),_typeof$4(i[0])==="object"){var g,$=i.length;for(g=0;g<$;g+=1)this.segments.push(i[g])}else this.segments.push(i);this.segments.length&&o&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(i){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),i&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(i){return this.segments.length?(this.adjustSegment(this.segments.shift(),i),!0):!1},AnimationItem.prototype.destroy=function(i){i&&this.name!==i||!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(i){this.currentRawFrame=i,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(i){this.playSpeed=i,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(i){this.playDirection=i<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(i){this.loop=i},AnimationItem.prototype.setVolume=function(i,o){o&&this.name!==o||this.audioController.setVolume(i)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(i){i&&this.name!==i||this.audioController.mute()},AnimationItem.prototype.unmute=function(i){i&&this.name!==i||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(i){var o="";if(i.e)o=i.p;else if(this.assetsPath){var g=i.p;g.indexOf("images/")!==-1&&(g=g.split("/")[1]),o=this.assetsPath+g}else o=this.path,o+=i.u?i.u:"",o+=i.p;return o},AnimationItem.prototype.getAssetData=function(i){for(var o=0,g=this.assets.length;o=0;kt-=1)o[kt].animation.destroy(Et)}function _t(Et,kt,dt){var vt=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),bt,St=vt.length;for(bt=0;bt0?ct=_t:ot=_t;while(Math.abs(xt)>_e&&++Pt=j?mt(ot,Ft,ct,gt):wt===0?Ft:ht(ot,xt,xt+tt,ct,gt)}},i}(),pooling=function(){function i(o){return o.concat(createSizedArray(o.length))}return{double:i}}(),poolFactory=function(){return function(i,o,g){var $=0,j=i,_e=createSizedArray(j),et={newElement:rt,release:tt};function rt(){var nt;return $?($-=1,nt=_e[$]):nt=o(),nt}function tt(nt){$===j&&(_e=pooling.double(_e),j*=2),g&&g(nt),_e[$]=nt,$+=1}return et}}(),bezierLengthPool=function(){function i(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,i)}(),segmentsLengthPool=function(){function i(){return{lengths:[],totalLength:0}}function o(g){var $,j=g.lengths.length;for($=0;$-.001&<<.001}function g(it,pt,ut,ht,mt,at,lt,ot,ct){if(ut===0&&at===0&&ct===0)return o(it,pt,ht,mt,lt,ot);var gt=i.sqrt(i.pow(ht-it,2)+i.pow(mt-pt,2)+i.pow(at-ut,2)),yt=i.sqrt(i.pow(lt-it,2)+i.pow(ot-pt,2)+i.pow(ct-ut,2)),xt=i.sqrt(i.pow(lt-ht,2)+i.pow(ot-mt,2)+i.pow(ct-at,2)),_t;return gt>yt?gt>xt?_t=gt-yt-xt:_t=xt-yt-gt:xt>yt?_t=xt-yt-gt:_t=yt-gt-xt,_t>-1e-4&&_t<1e-4}var $=function(){return function(it,pt,ut,ht){var mt=getDefaultCurveSegments(),at,lt,ot,ct,gt,yt=0,xt,_t=[],Pt=[],At=bezierLengthPool.newElement();for(ot=ut.length,at=0;atlt?-1:1,gt=!0;gt;)if(ht[at]<=lt&&ht[at+1]>lt?(ot=(lt-ht[at])/(ht[at+1]-ht[at]),gt=!1):at+=ct,at<0||at>=mt-1){if(at===mt-1)return ut[at];gt=!1}return ut[at]+(ut[at+1]-ut[at])*ot}function nt(it,pt,ut,ht,mt,at){var lt=tt(mt,at),ot=1-lt,ct=i.round((ot*ot*ot*it[0]+(lt*ot*ot+ot*lt*ot+ot*ot*lt)*ut[0]+(lt*lt*ot+ot*lt*lt+lt*ot*lt)*ht[0]+lt*lt*lt*pt[0])*1e3)/1e3,gt=i.round((ot*ot*ot*it[1]+(lt*ot*ot+ot*lt*ot+ot*ot*lt)*ut[1]+(lt*lt*ot+ot*lt*lt+lt*ot*lt)*ht[1]+lt*lt*lt*pt[1])*1e3)/1e3;return[ct,gt]}var st=createTypedArray("float32",8);function ft(it,pt,ut,ht,mt,at,lt){mt<0?mt=0:mt>1&&(mt=1);var ot=tt(mt,lt);at=at>1?1:at;var ct=tt(at,lt),gt,yt=it.length,xt=1-ot,_t=1-ct,Pt=xt*xt*xt,At=ot*xt*xt*3,Ft=ot*ot*xt*3,wt=ot*ot*ot,Ot=xt*xt*_t,$t=ot*xt*_t+xt*ot*_t+xt*xt*ct,Mt=ot*ot*_t+xt*ot*ct+ot*xt*ct,Et=ot*ot*ct,kt=xt*_t*_t,dt=ot*_t*_t+xt*ct*_t+xt*_t*ct,vt=ot*ct*_t+xt*ct*ct+ot*_t*ct,bt=ot*ct*ct,St=_t*_t*_t,It=ct*_t*_t+_t*ct*_t+_t*_t*ct,Lt=ct*ct*_t+_t*ct*ct+ct*_t*ct,Nt=ct*ct*ct;for(gt=0;gt=nt.t-g){tt.h&&(tt=nt),j=0;break}if(nt.t-g>i){j=_e;break}_e=at||i=at?ct.points.length-1:0;for(it=ct.points[gt].point.length,ft=0;ft=_t&&yt<_t+ct.points[ht+1].partialLength){for(xt=(yt-_t)/ct.points[ht+1].partialLength,it=ct.points[ht].point.length,ft=0;ft=at)$[0]=ot[0],$[1]=ot[1],$[2]=ot[2];else if(i<=lt)$[0]=tt.s[0],$[1]=tt.s[1],$[2]=tt.s[2];else{var $t=createQuaternion(tt.s),Mt=createQuaternion(ot),Et=(i-lt)/(at-lt);quaternionToEuler($,slerp($t,Mt,Et))}else for(_e=0;_e=at?pt=1:i1e-6?(it=Math.acos(pt),ut=Math.sin(it),ht=Math.sin((1-g)*it)/ut,mt=Math.sin(g*it)/ut):(ht=1-g,mt=g),$[0]=ht*j+mt*tt,$[1]=ht*_e+mt*nt,$[2]=ht*et+mt*st,$[3]=ht*rt+mt*ft,$}function quaternionToEuler(i,o){var g=o[0],$=o[1],j=o[2],_e=o[3],et=Math.atan2(2*$*_e-2*g*j,1-2*$*$-2*j*j),rt=Math.asin(2*g*$+2*j*_e),tt=Math.atan2(2*g*_e-2*$*j,1-2*g*g-2*j*j);i[0]=et/degToRads,i[1]=rt/degToRads,i[2]=tt/degToRads}function createQuaternion(i){var o=i[0]*degToRads,g=i[1]*degToRads,$=i[2]*degToRads,j=Math.cos(o/2),_e=Math.cos(g/2),et=Math.cos($/2),rt=Math.sin(o/2),tt=Math.sin(g/2),nt=Math.sin($/2),st=j*_e*et-rt*tt*nt,ft=rt*tt*et+j*_e*nt,it=rt*_e*et+j*tt*nt,pt=j*tt*et-rt*_e*nt;return[ft,it,pt,st]}function getValueAtCurrentTime(){var i=this.comp.renderedFrame-this.offsetTime,o=this.keyframes[0].t-this.offsetTime,g=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(i===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=g&&i>=g||this._caching.lastFrame=i&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var $=this.interpolateValue(i,this._caching);this.pv=$}return this._caching.lastFrame=i,this.pv}function setVValue(i){var o;if(this.propType==="unidimensional")o=i*this.mult,mathAbs(this.v-o)>1e-5&&(this.v=o,this._mdf=!0);else for(var g=0,$=this.v.length;g<$;)o=i[g]*this.mult,mathAbs(this.v[g]-o)>1e-5&&(this.v[g]=o,this._mdf=!0),g+=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 i,o=this.effectsSequence.length,g=this.kf?this.pv:this.data.k;for(i=0;i=this._maxLength&&this.doubleArrayLength(),g){case"v":_e=this.v;break;case"i":_e=this.i;break;case"o":_e=this.o;break;default:_e=[];break}(!_e[$]||_e[$]&&!j)&&(_e[$]=pointPool.newElement()),_e[$][0]=i,_e[$][1]=o},ShapePath.prototype.setTripleAt=function(i,o,g,$,j,_e,et,rt){this.setXYAt(i,o,"v",et,rt),this.setXYAt(g,$,"o",et,rt),this.setXYAt(j,_e,"i",et,rt)},ShapePath.prototype.reverse=function(){var i=new ShapePath;i.setPathData(this.c,this._length);var o=this.v,g=this.o,$=this.i,j=0;this.c&&(i.setTripleAt(o[0][0],o[0][1],$[0][0],$[0][1],g[0][0],g[0][1],0,!1),j=1);var _e=this._length-1,et=this._length,rt;for(rt=j;rt=$t[$t.length-1].t-this.offsetTime)gt=$t[$t.length-1].s?$t[$t.length-1].s[0]:$t[$t.length-2].e[0],xt=!0;else{for(var Mt=ct,Et=$t.length-1,kt=!0,dt,vt,bt;kt&&(dt=$t[Mt],vt=$t[Mt+1],!(vt.t-this.offsetTime>at));)Mt=vt.t-this.offsetTime)wt=1;else if(atot&&at>ot)||(this._caching.lastIndex=ct0||dt>-1e-6&&dt<0?$(dt*vt)/vt:dt}function kt(){var dt=this.props,vt=Et(dt[0]),bt=Et(dt[1]),St=Et(dt[4]),It=Et(dt[5]),Lt=Et(dt[12]),Nt=Et(dt[13]);return"matrix("+vt+","+bt+","+St+","+It+","+Lt+","+Nt+")"}return function(){this.reset=j,this.rotate=_e,this.rotateX=et,this.rotateY=rt,this.rotateZ=tt,this.skew=st,this.skewFromAxis=ft,this.shear=nt,this.scale=it,this.setTransform=pt,this.translate=ut,this.transform=ht,this.multiply=mt,this.applyToPoint=gt,this.applyToX=yt,this.applyToY=xt,this.applyToZ=_t,this.applyToPointArray=Ot,this.applyToTriplePoints=wt,this.applyToPointStringified=$t,this.toCSS=Mt,this.to2dCSS=kt,this.clone=ot,this.cloneFromProps=ct,this.equals=lt,this.inversePoints=Ft,this.inversePoint=At,this.getInverseMatrix=Pt,this._t=this.transform,this.isIdentity=at,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(g){return typeof g}:_typeof$3=function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},_typeof$3(i)}var lottie={};function setLocation(i){setLocationHref(i)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(i){setSubframeEnabled(i)}function setPrefix(i){setIdPrefix(i)}function loadAnimation(i){return animationManager.loadAnimation(i)}function setQuality(i){if(typeof i=="string")switch(i){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(i)&&i>1&&setDefaultCurveSegments(i)}function inBrowser(){return typeof navigator<"u"}function installPlugin(i,o){i==="expressions"&&setExpressionsPlugin(o)}function getFactory(i){switch(i){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(i){for(var o=queryString.split("&"),g=0;g=1?_e.push({s:i-1,e:o-1}):(_e.push({s:i,e:1}),_e.push({s:0,e:o-1}));var et=[],rt,tt=_e.length,nt;for(rt=0;rt$+g)){var st,ft;nt.s*j<=$?st=0:st=(nt.s*j-$)/g,nt.e*j>=$+g?ft=1:ft=(nt.e*j-$)/g,et.push([st,ft])}return et.length||et.push([0,0]),et},TrimModifier.prototype.releasePathsData=function(i){var o,g=i.length;for(o=0;o1?o=1+$:this.s.v<0?o=0+$:o=this.s.v+$,this.e.v>1?g=1+$:this.e.v<0?g=0+$:g=this.e.v+$,o>g){var j=o;o=g,g=j}o=Math.round(o*1e4)*1e-4,g=Math.round(g*1e4)*1e-4,this.sValue=o,this.eValue=g}else o=this.sValue,g=this.eValue;var _e,et,rt=this.shapes.length,tt,nt,st,ft,it,pt=0;if(g===o)for(et=0;et=0;et-=1)if(ht=this.shapes[et],ht.shape._mdf){for(mt=ht.localShapeCollection,mt.releaseShapes(),this.m===2&&rt>1?(ct=this.calculateShapeEdges(o,g,ht.totalShapeLength,ot,pt),ot+=ht.totalShapeLength):ct=[[at,lt]],nt=ct.length,tt=0;tt=1?ut.push({s:ht.totalShapeLength*(at-1),e:ht.totalShapeLength*(lt-1)}):(ut.push({s:ht.totalShapeLength*at,e:ht.totalShapeLength}),ut.push({s:0,e:ht.totalShapeLength*(lt-1)}));var gt=this.addShapes(ht,ut[0]);if(ut[0].s!==ut[0].e){if(ut.length>1){var yt=ht.shape.paths.shapes[ht.shape.paths._length-1];if(yt.c){var xt=gt.pop();this.addPaths(gt,mt),gt=this.addShapes(ht,ut[1],xt)}else this.addPaths(gt,mt),gt=this.addShapes(ht,ut[1])}this.addPaths(gt,mt)}}ht.shape.paths=mt}}},TrimModifier.prototype.addPaths=function(i,o){var g,$=i.length;for(g=0;g<$;g+=1)o.addShape(i[g])},TrimModifier.prototype.addSegment=function(i,o,g,$,j,_e,et){j.setXYAt(o[0],o[1],"o",_e),j.setXYAt(g[0],g[1],"i",_e+1),et&&j.setXYAt(i[0],i[1],"v",_e),j.setXYAt($[0],$[1],"v",_e+1)},TrimModifier.prototype.addSegmentFromArray=function(i,o,g,$){o.setXYAt(i[1],i[5],"o",g),o.setXYAt(i[2],i[6],"i",g+1),$&&o.setXYAt(i[0],i[4],"v",g),o.setXYAt(i[3],i[7],"v",g+1)},TrimModifier.prototype.addShapes=function(i,o,g){var $=i.pathsData,j=i.shape.paths.shapes,_e,et=i.shape.paths._length,rt,tt,nt=0,st,ft,it,pt,ut=[],ht,mt=!0;for(g?(ft=g._length,ht=g._length):(g=shapePool.newElement(),ft=0,ht=0),ut.push(g),_e=0;_eo.e){g.c=!1;break}else o.s<=nt&&o.e>=nt+st.addedLength?(this.addSegment(j[_e].v[rt-1],j[_e].o[rt-1],j[_e].i[rt],j[_e].v[rt],g,ft,mt),mt=!1):(pt=bez.getNewSegment(j[_e].v[rt-1],j[_e].v[rt],j[_e].o[rt-1],j[_e].i[rt],(o.s-nt)/st.addedLength,(o.e-nt)/st.addedLength,it[rt-1]),this.addSegmentFromArray(pt,g,ft,mt),mt=!1,g.c=!1),nt+=st.addedLength,ft+=1;if(j[_e].c&&it.length){if(st=it[rt-1],nt<=o.e){var at=it[rt-1].addedLength;o.s<=nt&&o.e>=nt+at?(this.addSegment(j[_e].v[rt-1],j[_e].o[rt-1],j[_e].i[0],j[_e].v[0],g,ft,mt),mt=!1):(pt=bez.getNewSegment(j[_e].v[rt-1],j[_e].v[0],j[_e].o[rt-1],j[_e].i[0],(o.s-nt)/at,(o.e-nt)/at,it[rt-1]),this.addSegmentFromArray(pt,g,ft,mt),mt=!1,g.c=!1)}else g.c=!1;nt+=st.addedLength,ft+=1}if(g._length&&(g.setXYAt(g.v[ht][0],g.v[ht][1],"i",ht),g.setXYAt(g.v[g._length-1][0],g.v[g._length-1][1],"o",g._length-1)),nt>o.e)break;_e=this.p.keyframes[this.p.keyframes.length-1].t?(st=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/nt,0),ft=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/nt,0)):(st=this.p.pv,ft=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/nt,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){st=[],ft=[];var it=this.px,pt=this.py;it._caching.lastFrame+it.offsetTime<=it.keyframes[0].t?(st[0]=it.getValueAtTime((it.keyframes[0].t+.01)/nt,0),st[1]=pt.getValueAtTime((pt.keyframes[0].t+.01)/nt,0),ft[0]=it.getValueAtTime(it.keyframes[0].t/nt,0),ft[1]=pt.getValueAtTime(pt.keyframes[0].t/nt,0)):it._caching.lastFrame+it.offsetTime>=it.keyframes[it.keyframes.length-1].t?(st[0]=it.getValueAtTime(it.keyframes[it.keyframes.length-1].t/nt,0),st[1]=pt.getValueAtTime(pt.keyframes[pt.keyframes.length-1].t/nt,0),ft[0]=it.getValueAtTime((it.keyframes[it.keyframes.length-1].t-.01)/nt,0),ft[1]=pt.getValueAtTime((pt.keyframes[pt.keyframes.length-1].t-.01)/nt,0)):(st=[it.pv,pt.pv],ft[0]=it.getValueAtTime((it._caching.lastFrame+it.offsetTime-.01)/nt,it.offsetTime),ft[1]=pt.getValueAtTime((pt._caching.lastFrame+pt.offsetTime-.01)/nt,pt.offsetTime))}else ft=i,st=ft;this.v.rotate(-Math.atan2(st[1]-ft[1],st[0]-ft[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 $(){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 j(){}function _e(tt){this._addDynamicProperty(tt),this.elem.addDynamicProperty(tt),this._isDirty=!0}function et(tt,nt,st){if(this.elem=tt,this.frameId=-1,this.propType="transform",this.data=nt,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(st||tt),nt.p&&nt.p.s?(this.px=PropertyFactory.getProp(tt,nt.p.x,0,0,this),this.py=PropertyFactory.getProp(tt,nt.p.y,0,0,this),nt.p.z&&(this.pz=PropertyFactory.getProp(tt,nt.p.z,0,0,this))):this.p=PropertyFactory.getProp(tt,nt.p||{k:[0,0,0]},1,0,this),nt.rx){if(this.rx=PropertyFactory.getProp(tt,nt.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(tt,nt.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(tt,nt.rz,0,degToRads,this),nt.or.k[0].ti){var ft,it=nt.or.k.length;for(ft=0;ft0;)g-=1,this._elements.unshift(o[g]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(i){var o,g=i.length;for(o=0;o0?Math.floor(it):Math.ceil(it),ht=this.pMatrix.props,mt=this.rMatrix.props,at=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var lt=0;if(it>0){for(;ltut;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),lt-=1;pt&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-pt,!0),lt-=pt)}$=this.data.m===1?0:this._currentCopies-1,j=this.data.m===1?1:-1,_e=this._currentCopies;for(var ot,ct;_e;){if(o=this.elemsData[$].it,g=o[o.length-1].transform.mProps.v.props,ct=g.length,o[o.length-1].transform.mProps._mdf=!0,o[o.length-1].transform.op._mdf=!0,o[o.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*($/(this._currentCopies-1)),lt!==0){for(($!==0&&j===1||$!==this._currentCopies-1&&j===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(mt[0],mt[1],mt[2],mt[3],mt[4],mt[5],mt[6],mt[7],mt[8],mt[9],mt[10],mt[11],mt[12],mt[13],mt[14],mt[15]),this.matrix.transform(at[0],at[1],at[2],at[3],at[4],at[5],at[6],at[7],at[8],at[9],at[10],at[11],at[12],at[13],at[14],at[15]),this.matrix.transform(ht[0],ht[1],ht[2],ht[3],ht[4],ht[5],ht[6],ht[7],ht[8],ht[9],ht[10],ht[11],ht[12],ht[13],ht[14],ht[15]),ot=0;ot0&&$<1?[o]:[]:[o-$,o+$].filter(function(j){return j>0&&j<1})},PolynomialBezier.prototype.split=function(i){if(i<=0)return[singlePoint(this.points[0]),this];if(i>=1)return[this,singlePoint(this.points[this.points.length-1])];var o=lerpPoint(this.points[0],this.points[1],i),g=lerpPoint(this.points[1],this.points[2],i),$=lerpPoint(this.points[2],this.points[3],i),j=lerpPoint(o,g,i),_e=lerpPoint(g,$,i),et=lerpPoint(j,_e,i);return[new PolynomialBezier(this.points[0],o,j,et,!0),new PolynomialBezier(et,_e,$,this.points[3],!0)]};function extrema(i,o){var g=i.points[0][o],$=i.points[i.points.length-1][o];if(g>$){var j=$;$=g,g=j}for(var _e=quadRoots(3*i.a[o],2*i.b[o],i.c[o]),et=0;et<_e.length;et+=1)if(_e[et]>0&&_e[et]<1){var rt=i.point(_e[et])[o];rt$&&($=rt)}return{min:g,max:$}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var i=this.bounds();return{left:i.x.min,right:i.x.max,top:i.y.min,bottom:i.y.max,width:i.x.max-i.x.min,height:i.y.max-i.y.min,cx:(i.x.max+i.x.min)/2,cy:(i.y.max+i.y.min)/2}};function intersectData(i,o,g){var $=i.boundingBox();return{cx:$.cx,cy:$.cy,width:$.width,height:$.height,bez:i,t:(o+g)/2,t1:o,t2:g}}function splitData(i){var o=i.bez.split(.5);return[intersectData(o[0],i.t1,i.t),intersectData(o[1],i.t,i.t2)]}function boxIntersect(i,o){return Math.abs(i.cx-o.cx)*2=_e||i.width<=$&&i.height<=$&&o.width<=$&&o.height<=$){j.push([i.t,o.t]);return}var et=splitData(i),rt=splitData(o);intersectsImpl(et[0],rt[0],g+1,$,j,_e),intersectsImpl(et[0],rt[1],g+1,$,j,_e),intersectsImpl(et[1],rt[0],g+1,$,j,_e),intersectsImpl(et[1],rt[1],g+1,$,j,_e)}}PolynomialBezier.prototype.intersections=function(i,o,g){o===void 0&&(o=2),g===void 0&&(g=7);var $=[];return intersectsImpl(intersectData(this,0,1),intersectData(i,0,1),0,o,$,g),$},PolynomialBezier.shapeSegment=function(i,o){var g=(o+1)%i.length();return new PolynomialBezier(i.v[o],i.o[o],i.i[g],i.v[g],!0)},PolynomialBezier.shapeSegmentInverted=function(i,o){var g=(o+1)%i.length();return new PolynomialBezier(i.v[g],i.i[g],i.o[o],i.v[o],!0)};function crossProduct(i,o){return[i[1]*o[2]-i[2]*o[1],i[2]*o[0]-i[0]*o[2],i[0]*o[1]-i[1]*o[0]]}function lineIntersection(i,o,g,$){var j=[i[0],i[1],1],_e=[o[0],o[1],1],et=[g[0],g[1],1],rt=[$[0],$[1],1],tt=crossProduct(crossProduct(j,_e),crossProduct(et,rt));return floatZero(tt[2])?null:[tt[0]/tt[2],tt[1]/tt[2]]}function polarOffset(i,o,g){return[i[0]+Math.cos(o)*g,i[1]-Math.sin(o)*g]}function pointDistance(i,o){return Math.hypot(i[0]-o[0],i[1]-o[1])}function pointEqual(i,o){return floatEqual(i[0],o[0])&&floatEqual(i[1],o[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(i,o){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(i,o.s,0,null,this),this.frequency=PropertyFactory.getProp(i,o.r,0,null,this),this.pointsType=PropertyFactory.getProp(i,o.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(i,o,g,$,j,_e,et){var rt=g-Math.PI/2,tt=g+Math.PI/2,nt=o[0]+Math.cos(g)*$*j,st=o[1]-Math.sin(g)*$*j;i.setTripleAt(nt,st,nt+Math.cos(rt)*_e,st-Math.sin(rt)*_e,nt+Math.cos(tt)*et,st-Math.sin(tt)*et,i.length())}function getPerpendicularVector(i,o){var g=[o[0]-i[0],o[1]-i[1]],$=-Math.PI*.5,j=[Math.cos($)*g[0]-Math.sin($)*g[1],Math.sin($)*g[0]+Math.cos($)*g[1]];return j}function getProjectingAngle(i,o){var g=o===0?i.length()-1:o-1,$=(o+1)%i.length(),j=i.v[g],_e=i.v[$],et=getPerpendicularVector(j,_e);return Math.atan2(0,1)-Math.atan2(et[1],et[0])}function zigZagCorner(i,o,g,$,j,_e,et){var rt=getProjectingAngle(o,g),tt=o.v[g%o._length],nt=o.v[g===0?o._length-1:g-1],st=o.v[(g+1)%o._length],ft=_e===2?Math.sqrt(Math.pow(tt[0]-nt[0],2)+Math.pow(tt[1]-nt[1],2)):0,it=_e===2?Math.sqrt(Math.pow(tt[0]-st[0],2)+Math.pow(tt[1]-st[1],2)):0;setPoint(i,o.v[g%o._length],rt,et,$,it/((j+1)*2),ft/((j+1)*2))}function zigZagSegment(i,o,g,$,j,_e){for(var et=0;et<$;et+=1){var rt=(et+1)/($+1),tt=j===2?Math.sqrt(Math.pow(o.points[3][0]-o.points[0][0],2)+Math.pow(o.points[3][1]-o.points[0][1],2)):0,nt=o.normalAngle(rt),st=o.point(rt);setPoint(i,st,nt,_e,g,tt/(($+1)*2),tt/(($+1)*2)),_e=-_e}return _e}ZigZagModifier.prototype.processPath=function(i,o,g,$){var j=i._length,_e=shapePool.newElement();if(_e.c=i.c,i.c||(j-=1),j===0)return _e;var et=-1,rt=PolynomialBezier.shapeSegment(i,0);zigZagCorner(_e,i,0,o,g,$,et);for(var tt=0;tt1&&o.length>1&&(j=getIntersection(i[0],o[o.length-1]),j)?[[i[0].split(j[0])[0]],[o[o.length-1].split(j[1])[1]]]:[g,$]}function pruneIntersections(i){for(var o,g=1;g1&&(o=pruneSegmentIntersection(i[i.length-1],i[0]),i[i.length-1]=o[0],i[0]=o[1]),i}function offsetSegmentSplit(i,o){var g=i.inflectionPoints(),$,j,_e,et;if(g.length===0)return[offsetSegment(i,o)];if(g.length===1||floatEqual(g[1],1))return _e=i.split(g[0]),$=_e[0],j=_e[1],[offsetSegment($,o),offsetSegment(j,o)];_e=i.split(g[0]),$=_e[0];var rt=(g[1]-g[0])/(1-g[0]);return _e=_e[1].split(rt),et=_e[0],j=_e[1],[offsetSegment($,o),offsetSegment(et,o),offsetSegment(j,o)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(i,o){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(i,o.a,0,null,this),this.miterLimit=PropertyFactory.getProp(i,o.ml,0,null,this),this.lineJoin=o.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(i,o,g,$){var j=shapePool.newElement();j.c=i.c;var _e=i.length();i.c||(_e-=1);var et,rt,tt,nt=[];for(et=0;et<_e;et+=1)tt=PolynomialBezier.shapeSegment(i,et),nt.push(offsetSegmentSplit(tt,o));if(!i.c)for(et=_e-1;et>=0;et-=1)tt=PolynomialBezier.shapeSegmentInverted(i,et),nt.push(offsetSegmentSplit(tt,o));nt=pruneIntersections(nt);var st=null,ft=null;for(et=0;et0&&(It=!1),It){var qt=createTag("style");qt.setAttribute("f-forigin",dt[vt].fOrigin),qt.setAttribute("f-origin",dt[vt].origin),qt.setAttribute("f-family",dt[vt].fFamily),qt.type="text/css",qt.innerText="@font-face {font-family: "+dt[vt].fFamily+"; font-style: normal; src: url('"+dt[vt].fPath+"');}",kt.appendChild(qt)}}else if(dt[vt].fOrigin==="g"||dt[vt].origin===1){for(Lt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Nt=0;Nt=55296&&dt<=56319){var vt=Et.charCodeAt(1);vt>=56320&&vt<=57343&&(kt=(dt-55296)*1024+vt-56320+65536)}return kt}function yt(Et,kt){var dt=Et.toString(16)+kt.toString(16);return ft.indexOf(dt)!==-1}function xt(Et){return Et===tt}function _t(Et){return Et===rt}function Pt(Et){var kt=gt(Et);return kt>=nt&&kt<=st}function At(Et){return Pt(Et.substr(0,2))&&Pt(Et.substr(2,2))}function Ft(Et){return g.indexOf(Et)!==-1}function wt(Et,kt){var dt=gt(Et.substr(kt,2));if(dt!==$)return!1;var vt=0;for(kt+=2;vt<5;){if(dt=gt(Et.substr(kt,2)),dt<_e||dt>et)return!1;vt+=1,kt+=2}return gt(Et.substr(kt,2))===j}function Ot(){this.isLoaded=!0}var $t=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)};$t.isModifier=yt,$t.isZeroWidthJoiner=xt,$t.isFlagEmoji=At,$t.isRegionalCode=Pt,$t.isCombinedCharacter=Ft,$t.isRegionalFlag=wt,$t.isVariationSelector=_t,$t.BLACK_FLAG_CODE_POINT=$;var Mt={addChars:at,addFonts:mt,getCharData:lt,getFontByName:ct,measureText:ot,checkLoadedFonts:ut,setIsLoaded:Ot};return $t.prototype=Mt,$t}();function SlotManager(i){this.animationData=i}SlotManager.prototype.getProp=function(i){return this.animationData.slots&&this.animationData.slots[i.sid]?Object.assign(i,this.animationData.slots[i.sid].p):i};function slotFactory(i){return new SlotManager(i)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(o){this.renderableComponents.indexOf(o)===-1&&this.renderableComponents.push(o)},removeRenderableComponent:function(o){this.renderableComponents.indexOf(o)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(o),1)},prepareRenderableFrame:function(o){this.checkLayerLimits(o)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(o){this.data.ip-this.data.st<=o&&this.data.op-this.data.st>o?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var o,g=this.renderableComponents.length;for(o=0;o.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(i){this.audio.rate(i)},AudioElement.prototype.volume=function(i){this._volumeMultiplier=i,this._previousVolume=i*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(i){var o,g=this.layers.length,$;for(this.completeLayers=!0,o=g-1;o>=0;o-=1)this.elements[o]||($=this.layers[o],$.ip-$.st<=i-this.layers[o].st&&$.op-$.st>i-this.layers[o].st&&this.buildItem(o)),this.completeLayers=this.elements[o]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(i){switch(i.ty){case 2:return this.createImage(i);case 0:return this.createComp(i);case 1:return this.createSolid(i);case 3:return this.createNull(i);case 4:return this.createShape(i);case 5:return this.createText(i);case 6:return this.createAudio(i);case 13:return this.createCamera(i);case 15:return this.createFootage(i);default:return this.createNull(i)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(i){return new AudioElement(i,this.globalData,this)},BaseRenderer.prototype.createFootage=function(i){return new FootageElement(i,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var i,o=this.layers.length;for(i=0;i0&&(this.maskElement.setAttribute("id",it),this.element.maskedElement.setAttribute(lt,"url("+getLocationHref()+"#"+it+")"),$.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(i){return this.viewData[i].prop},MaskElement.prototype.renderFrame=function(i){var o=this.element.finalTransform.mat,g,$=this.masksProperties.length;for(g=0;g<$;g+=1)if((this.viewData[g].prop._mdf||i)&&this.drawPath(this.masksProperties[g],this.viewData[g].prop.v,this.viewData[g]),(this.viewData[g].op._mdf||i)&&this.viewData[g].elem.setAttribute("fill-opacity",this.viewData[g].op.v),this.masksProperties[g].mode!=="n"&&(this.viewData[g].invRect&&(this.element.finalTransform.mProp._mdf||i)&&this.viewData[g].invRect.setAttribute("transform",o.getInverseMatrix().to2dCSS()),this.storedData[g].x&&(this.storedData[g].x._mdf||i))){var j=this.storedData[g].expan;this.storedData[g].x.v<0?(this.storedData[g].lastOperator!=="erode"&&(this.storedData[g].lastOperator="erode",this.storedData[g].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[g].filterId+")")),j.setAttribute("radius",-this.storedData[g].x.v)):(this.storedData[g].lastOperator!=="dilate"&&(this.storedData[g].lastOperator="dilate",this.storedData[g].elem.setAttribute("filter",null)),this.storedData[g].elem.setAttribute("stroke-width",this.storedData[g].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var i="M0,0 ";return i+=" h"+this.globalData.compSize.w,i+=" v"+this.globalData.compSize.h,i+=" h-"+this.globalData.compSize.w,i+=" v-"+this.globalData.compSize.h+" ",i},MaskElement.prototype.drawPath=function(i,o,g){var $=" M"+o.v[0][0]+","+o.v[0][1],j,_e;for(_e=o._length,j=1;j<_e;j+=1)$+=" C"+o.o[j-1][0]+","+o.o[j-1][1]+" "+o.i[j][0]+","+o.i[j][1]+" "+o.v[j][0]+","+o.v[j][1];if(o.c&&_e>1&&($+=" C"+o.o[j-1][0]+","+o.o[j-1][1]+" "+o.i[0][0]+","+o.i[0][1]+" "+o.v[0][0]+","+o.v[0][1]),g.lastPath!==$){var et="";g.elem&&(o.c&&(et=i.inv?this.solidPath+$:$),g.elem.setAttribute("d",et)),g.lastPath=$}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var i={};i.createFilter=o,i.createAlphaToLuminanceFilter=g;function o($,j){var _e=createNS("filter");return _e.setAttribute("id",$),j!==!0&&(_e.setAttribute("filterUnits","objectBoundingBox"),_e.setAttribute("x","0%"),_e.setAttribute("y","0%"),_e.setAttribute("width","100%"),_e.setAttribute("height","100%")),_e}function g(){var $=createNS("feColorMatrix");return $.setAttribute("type","matrix"),$.setAttribute("color-interpolation-filters","sRGB"),$.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),$}return i}(),featureSupport=function(){var i={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))&&(i.maskType=!1),/firefox/i.test(navigator.userAgent)&&(i.svgLumaHidden=!1),i}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(i){var o,g="SourceGraphic",$=i.data.ef?i.data.ef.length:0,j=createElementID(),_e=filtersFactory.createFilter(j,!0),et=0;this.filters=[];var rt;for(o=0;o<$;o+=1){rt=null;var tt=i.data.ef[o].ty;if(registeredEffects$1[tt]){var nt=registeredEffects$1[tt].effect;rt=new nt(_e,i.effectsManager.effectElements[o],i,idPrefix+et,g),g=idPrefix+et,registeredEffects$1[tt].countsAsEffect&&(et+=1)}rt&&this.filters.push(rt)}et&&(i.globalData.defs.appendChild(_e),i.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+j+")")),this.filters.length&&i.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(i){var o,g=this.filters.length;for(o=0;o=0&&($=this.shapeModifiers[o].processShapes(this._isFirstFrame),!$);o-=1);}},searchProcessedElement:function(o){for(var g=this.processedElements,$=0,j=g.length;$.01)return!1;g+=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 i=0,o=this.data.k.k.length;i0;)at=it.transformers[Pt].mProps._mdf||at,_t-=1,Pt-=1;if(at)for(_t=gt-it.styles[ot].lvl,Pt=it.transformers.length-1;_t>0;)xt.multiply(it.transformers[Pt].mProps.v),_t-=1,Pt-=1}else xt=i;if(yt=it.sh.paths,ht=yt._length,at){for(mt="",ut=0;ut=1?Ot=.99:Ot<=-1&&(Ot=-.99);var $t=Ft*Ot,Mt=Math.cos(wt+it.a.v)*$t+mt[0],Et=Math.sin(wt+it.a.v)*$t+mt[1];ut.setAttribute("fx",Mt),ut.setAttribute("fy",Et),ht&&!it.g._collapsable&&(it.of.setAttribute("fx",Mt),it.of.setAttribute("fy",Et))}}}function st(ft,it,pt){var ut=it.style,ht=it.d;ht&&(ht._mdf||pt)&&ht.dashStr&&(ut.pElem.setAttribute("stroke-dasharray",ht.dashStr),ut.pElem.setAttribute("stroke-dashoffset",ht.dashoffset[0])),it.c&&(it.c._mdf||pt)&&ut.pElem.setAttribute("stroke","rgb("+bmFloor(it.c.v[0])+","+bmFloor(it.c.v[1])+","+bmFloor(it.c.v[2])+")"),(it.o._mdf||pt)&&ut.pElem.setAttribute("stroke-opacity",it.o.v),(it.w._mdf||pt)&&(ut.pElem.setAttribute("stroke-width",it.w.v),ut.msElem&&ut.msElem.setAttribute("stroke-width",it.w.v))}return g}();function SVGShapeElement(i,o,g){this.shapes=[],this.shapesData=i.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(i,o,g),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 i,o=this.shapes.length,g,$,j=this.stylesList.length,_e,et=[],rt=!1;for($=0;$1&&rt&&this.setShapesAsAnimated(et)}},SVGShapeElement.prototype.setShapesAsAnimated=function(i){var o,g=i.length;for(o=0;o=0;tt-=1){if(mt=this.searchProcessedElement(i[tt]),mt?o[tt]=g[mt-1]:i[tt]._render=et,i[tt].ty==="fl"||i[tt].ty==="st"||i[tt].ty==="gf"||i[tt].ty==="gs"||i[tt].ty==="no")mt?o[tt].style.closed=!1:o[tt]=this.createStyleElement(i[tt],j),i[tt]._render&&o[tt].style.pElem.parentNode!==$&&$.appendChild(o[tt].style.pElem),it.push(o[tt].style);else if(i[tt].ty==="gr"){if(!mt)o[tt]=this.createGroupElement(i[tt]);else for(ft=o[tt].it.length,st=0;st1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(i){this.effectsSequence.push(i),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(i){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!i)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var o=this.currentData,g=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var $,j=this.effectsSequence.length,_e=i||this.data.d.k[this.keysIndex].s;for($=0;$o);)g+=1;return this.keysIndex!==g&&(this.keysIndex=g),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(i){for(var o=[],g=0,$=i.length,j,_e,et=!1,rt=!1,tt="";g<$;)et=rt,rt=!1,j=i.charCodeAt(g),tt=i.charAt(g),FontManager.isCombinedCharacter(j)?et=!0:j>=55296&&j<=56319?FontManager.isRegionalFlag(i,g)?tt=i.substr(g,14):(_e=i.charCodeAt(g+1),_e>=56320&&_e<=57343&&(FontManager.isModifier(j,_e)?(tt=i.substr(g,2),et=!0):FontManager.isFlagEmoji(i.substr(g,4))?tt=i.substr(g,4):tt=i.substr(g,2))):j>56319?(_e=i.charCodeAt(g+1),FontManager.isVariationSelector(j)&&(et=!0)):FontManager.isZeroWidthJoiner(j)&&(et=!0,rt=!0),et?(o[o.length-1]+=tt,et=!1):o.push(tt),g+=tt.length;return o},TextProperty.prototype.completeTextData=function(i){i.__complete=!0;var o=this.elem.globalData.fontManager,g=this.data,$=[],j,_e,et,rt=0,tt,nt=g.m.g,st=0,ft=0,it=0,pt=[],ut=0,ht=0,mt,at,lt=o.getFontByName(i.f),ot,ct=0,gt=getFontProperties(lt);i.fWeight=gt.weight,i.fStyle=gt.style,i.finalSize=i.s,i.finalText=this.buildFinalText(i.t),_e=i.finalText.length,i.finalLineHeight=i.lh;var yt=i.tr/1e3*i.finalSize,xt;if(i.sz)for(var _t=!0,Pt=i.sz[0],At=i.sz[1],Ft,wt;_t;){wt=this.buildFinalText(i.t),Ft=0,ut=0,_e=wt.length,yt=i.tr/1e3*i.finalSize;var Ot=-1;for(j=0;j<_e;j+=1)xt=wt[j].charCodeAt(0),et=!1,wt[j]===" "?Ot=j:(xt===13||xt===3)&&(ut=0,et=!0,Ft+=i.finalLineHeight||i.finalSize*1.2),o.chars?(ot=o.getCharData(wt[j],lt.fStyle,lt.fFamily),ct=et?0:ot.w*i.finalSize/100):ct=o.measureText(wt[j],i.f,i.finalSize),ut+ct>Pt&&wt[j]!==" "?(Ot===-1?_e+=1:j=Ot,Ft+=i.finalLineHeight||i.finalSize*1.2,wt.splice(j,Ot===j?1:0,"\r"),Ot=-1,ut=0):(ut+=ct,ut+=yt);Ft+=lt.ascent*i.finalSize/100,this.canResize&&i.finalSize>this.minimumFontSize&&Atht?ut:ht,ut=-2*yt,tt="",et=!0,it+=1):tt=Mt,o.chars?(ot=o.getCharData(Mt,lt.fStyle,o.getFontByName(i.f).fFamily),ct=et?0:ot.w*i.finalSize/100):ct=o.measureText(tt,i.f,i.finalSize),Mt===" "?$t+=ct+yt:(ut+=ct+yt+$t,$t=0),$.push({l:ct,an:ct,add:st,n:et,anIndexes:[],val:tt,line:it,animatorJustifyOffset:0}),nt==2){if(st+=ct,tt===""||tt===" "||j===_e-1){for((tt===""||tt===" ")&&(st-=ct);ft<=j;)$[ft].an=st,$[ft].ind=rt,$[ft].extra=ct,ft+=1;rt+=1,st=0}}else if(nt==3){if(st+=ct,tt===""||j===_e-1){for(tt===""&&(st-=ct);ft<=j;)$[ft].an=st,$[ft].ind=rt,$[ft].extra=ct,ft+=1;st=0,rt+=1}}else $[rt].ind=rt,$[rt].extra=0,rt+=1;if(i.l=$,ht=ut>ht?ut:ht,pt.push(ut),i.sz)i.boxWidth=i.sz[0],i.justifyOffset=0;else switch(i.boxWidth=ht,i.j){case 1:i.justifyOffset=-i.boxWidth;break;case 2:i.justifyOffset=-i.boxWidth/2;break;default:i.justifyOffset=0}i.lineWidths=pt;var Et=g.a,kt,dt;at=Et.length;var vt,bt,St=[];for(mt=0;mt0?rt=this.ne.v/100:tt=-this.ne.v/100,this.xe.v>0?nt=1-this.xe.v/100:st=1+this.xe.v/100;var ft=BezierFactory.getBezierEasing(rt,tt,nt,st).get,it=0,pt=this.finalS,ut=this.finalE,ht=this.data.sh;if(ht===2)ut===pt?it=et>=ut?1:0:it=i(0,o(.5/(ut-pt)+(et-pt)/(ut-pt),1)),it=ft(it);else if(ht===3)ut===pt?it=et>=ut?0:1:it=1-i(0,o(.5/(ut-pt)+(et-pt)/(ut-pt),1)),it=ft(it);else if(ht===4)ut===pt?it=0:(it=i(0,o(.5/(ut-pt)+(et-pt)/(ut-pt),1)),it<.5?it*=2:it=1-2*(it-.5)),it=ft(it);else if(ht===5){if(ut===pt)it=0;else{var mt=ut-pt;et=o(i(0,et+.5-pt),ut-pt);var at=-mt/2+et,lt=mt/2;it=Math.sqrt(1-at*at/(lt*lt))}it=ft(it)}else ht===6?(ut===pt?it=0:(et=o(i(0,et+.5-pt),ut-pt),it=(1+Math.cos(Math.PI+Math.PI*2*et/(ut-pt)))/2),it=ft(it)):(et>=g(pt)&&(et-pt<0?it=i(0,o(o(ut,1)-(pt-et),1)):it=i(0,o(ut-et,1))),it=ft(it));if(this.sm.v!==100){var ot=this.sm.v*.01;ot===0&&(ot=1e-8);var ct=.5-ot*.5;it1&&(it=1))}return it*this.a.v},getValue:function(et){this.iterateDynamicProperties(),this._mdf=et||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,et&&this.data.r===2&&(this.e.v=this._currentTextLength);var rt=this.data.r===2?1:100/this.data.totalChars,tt=this.o.v/rt,nt=this.s.v/rt+tt,st=this.e.v/rt+tt;if(nt>st){var ft=nt;nt=st,st=ft}this.finalS=nt,this.finalE=st}},extendPrototype([DynamicPropertyContainer],$);function j(_e,et,rt){return new $(_e,et)}return{getTextSelectorProp:j}}();function TextAnimatorDataProperty(i,o,g){var $={propType:!1},j=PropertyFactory.getProp,_e=o.a;this.a={r:_e.r?j(i,_e.r,0,degToRads,g):$,rx:_e.rx?j(i,_e.rx,0,degToRads,g):$,ry:_e.ry?j(i,_e.ry,0,degToRads,g):$,sk:_e.sk?j(i,_e.sk,0,degToRads,g):$,sa:_e.sa?j(i,_e.sa,0,degToRads,g):$,s:_e.s?j(i,_e.s,1,.01,g):$,a:_e.a?j(i,_e.a,1,0,g):$,o:_e.o?j(i,_e.o,0,.01,g):$,p:_e.p?j(i,_e.p,1,0,g):$,sw:_e.sw?j(i,_e.sw,0,0,g):$,sc:_e.sc?j(i,_e.sc,1,0,g):$,fc:_e.fc?j(i,_e.fc,1,0,g):$,fh:_e.fh?j(i,_e.fh,0,0,g):$,fs:_e.fs?j(i,_e.fs,0,.01,g):$,fb:_e.fb?j(i,_e.fb,0,.01,g):$,t:_e.t?j(i,_e.t,0,0,g):$},this.s=TextSelectorProp.getTextSelectorProp(i,o.s,g),this.s.t=o.s.t}function TextAnimatorProperty(i,o,g){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=i,this._renderType=o,this._elem=g,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(g)}TextAnimatorProperty.prototype.searchProperties=function(){var i,o=this._textData.a.length,g,$=PropertyFactory.getProp;for(i=0;i=ut+pr||!gt?(Pt=(ut+pr-mt)/ht.partialLength,Nt=ct.point[0]+(ht.point[0]-ct.point[0])*Pt,qt=ct.point[1]+(ht.point[1]-ct.point[1])*Pt,_e.translate(-g[0]*it[st].an*.005,-(g[1]*$t)*.01),at=!1):gt&&(mt+=ht.partialLength,lt+=1,lt>=gt.length&&(lt=0,ot+=1,yt[ot]?gt=yt[ot].points:Ft.v.c?(lt=0,ot=0,gt=yt[ot].points):(mt-=ht.partialLength,gt=null)),gt&&(ct=ht,ht=gt[lt],xt=ht.partialLength));Lt=it[st].an/2-it[st].add,_e.translate(-Lt,0,0)}else Lt=it[st].an/2-it[st].add,_e.translate(-Lt,0,0),_e.translate(-g[0]*it[st].an*.005,-g[1]*$t*.01,0);for(dt=0;dti?this.textSpans[i].span:createNS(rt?"g":"text"),ot<=i){if(tt.setAttribute("stroke-linecap","butt"),tt.setAttribute("stroke-linejoin","round"),tt.setAttribute("stroke-miterlimit","4"),this.textSpans[i].span=tt,rt){var gt=createNS("g");tt.appendChild(gt),this.textSpans[i].childSpan=gt}this.textSpans[i].span=tt,this.layerElement.appendChild(tt)}tt.style.display="inherit"}if(nt.reset(),ft&&(et[i].n&&(it=-ht,pt+=g.yOffset,pt+=ut?1:0,ut=!1),this.applyTextPropertiesToMatrix(g,nt,et[i].line,it,pt),it+=et[i].l||0,it+=ht),rt){ct=this.globalData.fontManager.getCharData(g.finalText[i],$.fStyle,this.globalData.fontManager.getFontByName(g.f).fFamily);var yt;if(ct.t===1)yt=new SVGCompElement(ct.data,this.globalData,this);else{var xt=emptyShapeData;ct.data&&ct.data.shapes&&(xt=this.buildShapeData(ct.data,g.finalSize)),yt=new SVGShapeElement(xt,this.globalData,this)}if(this.textSpans[i].glyph){var _t=this.textSpans[i].glyph;this.textSpans[i].childSpan.removeChild(_t.layerElement),_t.destroy()}this.textSpans[i].glyph=yt,yt._debug=!0,yt.prepareFrame(0),yt.renderFrame(),this.textSpans[i].childSpan.appendChild(yt.layerElement),ct.t===1&&this.textSpans[i].childSpan.setAttribute("transform","scale("+g.finalSize/100+","+g.finalSize/100+")")}else ft&&tt.setAttribute("transform","translate("+nt.props[12]+","+nt.props[13]+")"),tt.textContent=et[i].val,tt.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}ft&&tt&&tt.setAttribute("d",st)}for(;i=0;o-=1)(this.completeLayers||this.elements[o])&&this.elements[o].prepareFrame(i-this.layers[o].st);if(this.globalData._mdf)for(o=0;o=0;g-=1)(this.completeLayers||this.elements[g])&&(this.elements[g].prepareFrame(this.renderedFrame-this.layers[g].st),this.elements[g]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var i,o=this.layers.length;for(i=0;i=0;$-=1)o.finalTransform.multiply(o.transforms[$].transform.mProps.v);o._mdf=_e},processSequences:function(o){var g,$=this.sequenceList.length;for(g=0;g<$;g+=1)this.processSequence(this.sequenceList[g],o)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var o="__lottie_element_luma_buffer",g=null,$=null,j=null;function _e(){var tt=createNS("svg"),nt=createNS("filter"),st=createNS("feColorMatrix");return nt.setAttribute("id",o),st.setAttribute("type","matrix"),st.setAttribute("color-interpolation-filters","sRGB"),st.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"),nt.appendChild(st),tt.appendChild(nt),tt.setAttribute("id",o+"_svg"),featureSupport.svgLumaHidden&&(tt.style.display="none"),tt}function et(){g||(j=_e(),document.body.appendChild(j),g=createTag("canvas"),$=g.getContext("2d"),$.filter="url(#"+o+")",$.fillStyle="rgba(0,0,0,0)",$.fillRect(0,0,1,1))}function rt(tt){return g||et(),g.width=tt.width,g.height=tt.height,$.filter="url(#"+o+")",g}return{load:et,get:rt}};function createCanvas(i,o){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(i,o);var g=createTag("canvas");return g.width=i,g.height=o,g}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(i){var o,g=i.data.ef?i.data.ef.length:0;this.filters=[];var $;for(o=0;o=1){this.buffers=[];var o=this.globalData.canvasContext,g=assetLoader.createCanvas(o.canvas.width,o.canvas.height);this.buffers.push(g);var $=assetLoader.createCanvas(o.canvas.width,o.canvas.height);this.buffers.push($),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var o=this.globalData;if(o.blendMode!==this.data.bm){o.blendMode=this.data.bm;var g=getBlendMode(this.data.bm);o.canvasContext.globalCompositeOperation=g}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(o){o.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var o=this.buffers[0],g=o.getContext("2d");this.clearCanvas(g),g.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var o=this.buffers[1],g=o.getContext("2d");this.clearCanvas(g),g.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 $=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if($.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var j=assetLoader.getLumaCanvas(this.canvasContext.canvas),_e=j.getContext("2d");_e.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(j,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(o,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(o){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!o)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var g=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(g),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(g),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(i,o,g,$){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var j=4;o.ty==="rc"?j=5:o.ty==="el"?j=6:o.ty==="sr"&&(j=7),this.sh=ShapePropertyFactory.getShapeProp(i,o,j,i);var _e,et=g.length,rt;for(_e=0;_e=0;_e-=1){if(ft=this.searchProcessedElement(i[_e]),ft?o[_e]=g[ft-1]:i[_e]._shouldRender=$,i[_e].ty==="fl"||i[_e].ty==="st"||i[_e].ty==="gf"||i[_e].ty==="gs")ft?o[_e].style.closed=!1:o[_e]=this.createStyleElement(i[_e],ut),nt.push(o[_e].style);else if(i[_e].ty==="gr"){if(!ft)o[_e]=this.createGroupElement(i[_e]);else for(tt=o[_e].it.length,rt=0;rt=0;j-=1)o[j].ty==="tr"?(et=g[j].transform,this.renderShapeTransform(i,et)):o[j].ty==="sh"||o[j].ty==="el"||o[j].ty==="rc"||o[j].ty==="sr"?this.renderPath(o[j],g[j]):o[j].ty==="fl"?this.renderFill(o[j],g[j],et):o[j].ty==="st"?this.renderStroke(o[j],g[j],et):o[j].ty==="gf"||o[j].ty==="gs"?this.renderGradientFill(o[j],g[j],et):o[j].ty==="gr"?this.renderShape(et,o[j].it,g[j].it):o[j].ty;$&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(i,o){if(this._isFirstFrame||o._mdf||i.transforms._mdf){var g=i.trNodes,$=o.paths,j,_e,et,rt=$._length;g.length=0;var tt=i.transforms.finalTransform;for(et=0;et=1?st=.99:st<=-1&&(st=-.99);var ft=tt*st,it=Math.cos(nt+o.a.v)*ft+et[0],pt=Math.sin(nt+o.a.v)*ft+et[1];j=_e.createRadialGradient(it,pt,0,et[0],et[1],tt)}var ut,ht=i.g.p,mt=o.g.c,at=1;for(ut=0;ut_e&&tt==="xMidYMid slice"||j<_e&&tt!=="xMidYMid slice"?(rt=$,et=rt*_e):(et=g,rt=et/_e),o.drawImage(this.img,(g-et)/2,($-rt)/2,et,rt,0,0,this.assetData.w,this.assetData.h),this.img=i}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(i,o,g){this.initElement(i,o,g)}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(i){return new CVShapeElement(i,this.globalData,this)},CanvasRendererBase.prototype.createText=function(i){return new CVTextElement(i,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(i){return new CVImageElement(i,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(i){return new CVSolidElement(i,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(i){i[0]===1&&i[1]===0&&i[4]===0&&i[5]===1&&i[12]===0&&i[13]===0||this.canvasContext.transform(i[0],i[1],i[4],i[5],i[12],i[13])},CanvasRendererBase.prototype.ctxOpacity=function(i){this.canvasContext.globalAlpha*=i<0?0:i},CanvasRendererBase.prototype.ctxFillStyle=function(i){this.canvasContext.fillStyle=i},CanvasRendererBase.prototype.ctxStrokeStyle=function(i){this.canvasContext.strokeStyle=i},CanvasRendererBase.prototype.ctxLineWidth=function(i){this.canvasContext.lineWidth=i},CanvasRendererBase.prototype.ctxLineCap=function(i){this.canvasContext.lineCap=i},CanvasRendererBase.prototype.ctxLineJoin=function(i){this.canvasContext.lineJoin=i},CanvasRendererBase.prototype.ctxMiterLimit=function(i){this.canvasContext.miterLimit=i},CanvasRendererBase.prototype.ctxFill=function(i){this.canvasContext.fill(i)},CanvasRendererBase.prototype.ctxFillRect=function(i,o,g,$){this.canvasContext.fillRect(i,o,g,$)},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(i){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}i&&(this.globalData.blendMode="source-over"),this.contextData.restore(i)},CanvasRendererBase.prototype.configAnimation=function(i){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var o=this.animationItem.container.style;o.width="100%",o.height="100%";var g="0px 0px 0px";o.transformOrigin=g,o.mozTransformOrigin=g,o.webkitTransformOrigin=g,o["-webkit-transform"]=g,o.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=i,this.layers=i.layers,this.transformCanvas={w:i.w,h:i.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(i,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(i.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(i,o){this.reset();var g,$;i?(g=i,$=o,this.canvasContext.canvas.width=g,this.canvasContext.canvas.height=$):(this.animationItem.wrapper&&this.animationItem.container?(g=this.animationItem.wrapper.offsetWidth,$=this.animationItem.wrapper.offsetHeight):(g=this.canvasContext.canvas.width,$=this.canvasContext.canvas.height),this.canvasContext.canvas.width=g*this.renderConfig.dpr,this.canvasContext.canvas.height=$*this.renderConfig.dpr);var j,_e;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var et=this.renderConfig.preserveAspectRatio.split(" "),rt=et[1]||"meet",tt=et[0]||"xMidYMid",nt=tt.substr(0,4),st=tt.substr(4);j=g/$,_e=this.transformCanvas.w/this.transformCanvas.h,_e>j&&rt==="meet"||_ej&&rt==="slice")?this.transformCanvas.tx=(g-this.transformCanvas.w*($/this.transformCanvas.h))/2*this.renderConfig.dpr:nt==="xMax"&&(_ej&&rt==="slice")?this.transformCanvas.tx=(g-this.transformCanvas.w*($/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,st==="YMid"&&(_e>j&&rt==="meet"||_ej&&rt==="meet"||_e=0;i-=1)this.elements[i]&&this.elements[i].destroy&&this.elements[i].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(i,o){if(!(this.renderedFrame===i&&this.renderConfig.clearCanvas===!0&&!o||this.destroyed||i===-1)){this.renderedFrame=i,this.globalData.frameNum=i-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||o,this.globalData.projectInterface.currentFrame=i;var g,$=this.layers.length;for(this.completeLayers||this.checkLayers(i),g=$-1;g>=0;g-=1)(this.completeLayers||this.elements[g])&&this.elements[g].prepareFrame(i-this.layers[g].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),g=$-1;g>=0;g-=1)(this.completeLayers||this.elements[g])&&this.elements[g].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(i){var o=this.elements;if(!(o[i]||this.layers[i].ty===99)){var g=this.createItem(this.layers[i],this,this.globalData);o[i]=g,g.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var i=this.pendingElements.pop();i.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 i,o=15;for(i=0;i=0;o-=1)(this.completeLayers||this.elements[o])&&this.elements[o].renderFrame()},CVCompElement.prototype.destroy=function(){var i,o=this.layers.length;for(i=o-1;i>=0;i-=1)this.elements[i]&&this.elements[i].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(i){return new CVCompElement(i,this.globalData,this)};function CanvasRenderer(i,o){this.animationItem=i,this.renderConfig={clearCanvas:o&&o.clearCanvas!==void 0?o.clearCanvas:!0,context:o&&o.context||null,progressiveLoad:o&&o.progressiveLoad||!1,preserveAspectRatio:o&&o.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:o&&o.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:o&&o.contentVisibility||"visible",className:o&&o.className||"",id:o&&o.id||"",runExpressions:!o||o.runExpressions===void 0||o.runExpressions},this.renderConfig.dpr=o&&o.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=o&&o.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(i){return new CVCompElement(i,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var o=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var g=this.finalTransform.mat.toCSS();o.transform=g,o.webkitTransform=g}this.finalTransform._opMdf&&(o.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(i,o,g){this.initElement(i,o,g)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var i;this.data.hasMask?(i=createNS("rect"),i.setAttribute("width",this.data.sw),i.setAttribute("height",this.data.sh),i.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(i=createTag("div"),i.style.width=this.data.sw+"px",i.style.height=this.data.sh+"px",i.style.backgroundColor=this.data.sc),this.layerElement.appendChild(i)};function HShapeElement(i,o,g){this.shapes=[],this.shapesData=i.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(i,o,g),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 i;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),i=this.svgElement;else{i=createNS("svg");var o=this.comp.data?this.comp.data:this.globalData.compSize;i.setAttribute("width",o.w),i.setAttribute("height",o.h),i.appendChild(this.shapesContainer),this.layerElement.appendChild(i)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=i},HShapeElement.prototype.getTransformedPoint=function(i,o){var g,$=i.length;for(g=0;g<$;g+=1)o=i[g].mProps.v.applyToPointArray(o[0],o[1],0);return o},HShapeElement.prototype.calculateShapeBoundingBox=function(i,o){var g=i.sh.v,$=i.transformers,j,_e=g._length,et,rt,tt,nt;if(!(_e<=1)){for(j=0;j<_e-1;j+=1)et=this.getTransformedPoint($,g.v[j]),rt=this.getTransformedPoint($,g.o[j]),tt=this.getTransformedPoint($,g.i[j+1]),nt=this.getTransformedPoint($,g.v[j+1]),this.checkBounds(et,rt,tt,nt,o);g.c&&(et=this.getTransformedPoint($,g.v[j]),rt=this.getTransformedPoint($,g.o[j]),tt=this.getTransformedPoint($,g.i[0]),nt=this.getTransformedPoint($,g.v[0]),this.checkBounds(et,rt,tt,nt,o))}},HShapeElement.prototype.checkBounds=function(i,o,g,$,j){this.getBoundsOfCurve(i,o,g,$);var _e=this.shapeBoundingBox;j.x=bmMin(_e.left,j.x),j.xMax=bmMax(_e.right,j.xMax),j.y=bmMin(_e.top,j.y),j.yMax=bmMax(_e.bottom,j.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(i,o,g,$){for(var j=[[i[0],$[0]],[i[1],$[1]]],_e,et,rt,tt,nt,st,ft,it=0;it<2;++it)et=6*i[it]-12*o[it]+6*g[it],_e=-3*i[it]+9*o[it]-9*g[it]+3*$[it],rt=3*o[it]-3*i[it],et|=0,_e|=0,rt|=0,_e===0&&et===0||(_e===0?(tt=-rt/et,tt>0&&tt<1&&j[it].push(this.calculateF(tt,i,o,g,$,it))):(nt=et*et-4*rt*_e,nt>=0&&(st=(-et+bmSqrt(nt))/(2*_e),st>0&&st<1&&j[it].push(this.calculateF(st,i,o,g,$,it)),ft=(-et-bmSqrt(nt))/(2*_e),ft>0&&ft<1&&j[it].push(this.calculateF(ft,i,o,g,$,it)))));this.shapeBoundingBox.left=bmMin.apply(null,j[0]),this.shapeBoundingBox.top=bmMin.apply(null,j[1]),this.shapeBoundingBox.right=bmMax.apply(null,j[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,j[1])},HShapeElement.prototype.calculateF=function(i,o,g,$,j,_e){return bmPow(1-i,3)*o[_e]+3*bmPow(1-i,2)*i*g[_e]+3*(1-i)*bmPow(i,2)*$[_e]+bmPow(i,3)*j[_e]},HShapeElement.prototype.calculateBoundingBox=function(i,o){var g,$=i.length;for(g=0;g<$;g+=1)i[g]&&i[g].sh?this.calculateShapeBoundingBox(i[g],o):i[g]&&i[g].it?this.calculateBoundingBox(i[g].it,o):i[g]&&i[g].style&&i[g].w&&this.expandStrokeBoundingBox(i[g].w,o)},HShapeElement.prototype.expandStrokeBoundingBox=function(i,o){var g=0;if(i.keyframes){for(var $=0;$g&&(g=j)}g*=i.mult}else g=i.v*i.mult;o.x-=g,o.xMax+=g,o.y-=g,o.yMax+=g},HShapeElement.prototype.currentBoxContains=function(i){return this.currentBBox.x<=i.x&&this.currentBBox.y<=i.y&&this.currentBBox.width+this.currentBBox.x>=i.x+i.width&&this.currentBBox.height+this.currentBBox.y>=i.y+i.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var i=this.tempBoundingBox,o=999999;if(i.x=o,i.xMax=-o,i.y=o,i.yMax=-o,this.calculateBoundingBox(this.itemsData,i),i.width=i.xMax=0;o-=1){var $=this.hierarchy[o].finalTransform.mProp;this.mat.translate(-$.p.v[0],-$.p.v[1],$.p.v[2]),this.mat.rotateX(-$.or.v[0]).rotateY(-$.or.v[1]).rotateZ($.or.v[2]),this.mat.rotateX(-$.rx.v).rotateY(-$.ry.v).rotateZ($.rz.v),this.mat.scale(1/$.s.v[0],1/$.s.v[1],1/$.s.v[2]),this.mat.translate($.a.v[0],$.a.v[1],$.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 j;this.p?j=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:j=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var _e=Math.sqrt(Math.pow(j[0],2)+Math.pow(j[1],2)+Math.pow(j[2],2)),et=[j[0]/_e,j[1]/_e,j[2]/_e],rt=Math.sqrt(et[2]*et[2]+et[0]*et[0]),tt=Math.atan2(et[1],rt),nt=Math.atan2(et[0],-et[2]);this.mat.rotateY(nt).rotateX(-tt)}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 st=!this._prevMat.equals(this.mat);if((st||this.pe._mdf)&&this.comp.threeDElements){g=this.comp.threeDElements.length;var ft,it,pt;for(o=0;o=i)return this.threeDElements[o].perspectiveElem;o+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(i,o){var g=createTag("div"),$,j;styleDiv(g);var _e=createTag("div");if(styleDiv(_e),o==="3d"){$=g.style,$.width=this.globalData.compSize.w+"px",$.height=this.globalData.compSize.h+"px";var et="50% 50%";$.webkitTransformOrigin=et,$.mozTransformOrigin=et,$.transformOrigin=et,j=_e.style;var rt="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";j.transform=rt,j.webkitTransform=rt}g.appendChild(_e);var tt={container:_e,perspectiveElem:g,startPos:i,endPos:i,type:o};return this.threeDElements.push(tt),tt},HybridRendererBase.prototype.build3dContainers=function(){var i,o=this.layers.length,g,$="";for(i=0;i=0;i-=1)this.resizerElem.appendChild(this.threeDElements[i].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(i,o){for(var g=0,$=this.threeDElements.length;g<$;){if(o<=this.threeDElements[g].endPos){for(var j=this.threeDElements[g].startPos,_e;jg?(j=i/this.globalData.compSize.w,_e=i/this.globalData.compSize.w,et=0,rt=(o-this.globalData.compSize.h*(i/this.globalData.compSize.w))/2):(j=o/this.globalData.compSize.h,_e=o/this.globalData.compSize.h,et=(i-this.globalData.compSize.w*(o/this.globalData.compSize.h))/2,rt=0);var tt=this.resizerElem.style;tt.webkitTransform="matrix3d("+j+",0,0,0,0,"+_e+",0,0,0,0,1,0,"+et+","+rt+",0,1)",tt.transform=tt.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 i=this.globalData.compSize.w,o=this.globalData.compSize.h,g,$=this.threeDElements.length;for(g=0;g<$;g+=1){var j=this.threeDElements[g].perspectiveElem.style;j.webkitPerspective=Math.sqrt(Math.pow(i,2)+Math.pow(o,2))+"px",j.perspective=j.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(i){var o,g=i.length,$=createTag("div");for(o=0;o=nt;)Ft/=2,wt/=2,Ot>>>=1;return(Ft+Ot)/wt};return Pt.int32=function(){return _t.g(4)|0},Pt.quick=function(){return _t.g(4)/4294967296},Pt.double=Pt,mt(lt(_t.S),i),(ct.pass||gt||function(At,Ft,wt,Ot){return Ot&&(Ot.S&&ut(Ot,_t),At.state=function(){return ut(_t,{})}),wt?(o[et]=At,Ft):At})(Pt,xt,"global"in ct?ct.global:this==o,ct.state)}o["seed"+et]=it;function pt(ot){var ct,gt=ot.length,yt=this,xt=0,_t=yt.i=yt.j=0,Pt=yt.S=[];for(gt||(ot=[gt++]);xt<$;)Pt[xt]=xt++;for(xt=0;xt<$;xt++)Pt[xt]=Pt[_t=st&_t+ot[xt%gt]+(ct=Pt[xt])],Pt[_t]=ct;yt.g=function(At){for(var Ft,wt=0,Ot=yt.i,$t=yt.j,Mt=yt.S;At--;)Ft=Mt[Ot=st&Ot+1],wt=wt*$+Mt[st&(Mt[Ot]=Mt[$t=st&$t+Ft])+(Mt[$t]=Ft)];return yt.i=Ot,yt.j=$t,wt}}function ut(ot,ct){return ct.i=ot.i,ct.j=ot.j,ct.S=ot.S.slice(),ct}function ht(ot,ct){var gt=[],yt=_typeof$2(ot),xt;if(ct&&yt=="object")for(xt in ot)try{gt.push(ht(ot[xt],ct-1))}catch{}return gt.length?gt:yt=="string"?ot:ot+"\0"}function mt(ot,ct){for(var gt=ot+"",yt,xt=0;xtg){var $=g;g=o,o=$}return Math.min(Math.max(i,o),g)}function radiansToDegrees(i){return i/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(i){return i*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(i,o){if(typeof i=="number"||i instanceof Number)return o=o||0,Math.abs(i-o);o||(o=helperLengthArray);var g,$=Math.min(i.length,o.length),j=0;for(g=0;g<$;g+=1)j+=Math.pow(o[g]-i[g],2);return Math.sqrt(j)}function normalize(i){return div(i,length(i))}function rgbToHsl(i){var o=i[0],g=i[1],$=i[2],j=Math.max(o,g,$),_e=Math.min(o,g,$),et,rt,tt=(j+_e)/2;if(j===_e)et=0,rt=0;else{var nt=j-_e;switch(rt=tt>.5?nt/(2-j-_e):nt/(j+_e),j){case o:et=(g-$)/nt+(g<$?6:0);break;case g:et=($-o)/nt+2;break;case $:et=(o-g)/nt+4;break}et/=6}return[et,rt,tt,i[3]]}function hue2rgb(i,o,g){return g<0&&(g+=1),g>1&&(g-=1),g<1/6?i+(o-i)*6*g:g<1/2?o:g<2/3?i+(o-i)*(2/3-g)*6:i}function hslToRgb(i){var o=i[0],g=i[1],$=i[2],j,_e,et;if(g===0)j=$,et=$,_e=$;else{var rt=$<.5?$*(1+g):$+g-$*g,tt=2*$-rt;j=hue2rgb(tt,rt,o+1/3),_e=hue2rgb(tt,rt,o),et=hue2rgb(tt,rt,o-1/3)}return[j,_e,et,i[3]]}function linear(i,o,g,$,j){if(($===void 0||j===void 0)&&($=o,j=g,o=0,g=1),g=g)return j;var et=g===o?0:(i-o)/(g-o);if(!$.length)return $+(j-$)*et;var rt,tt=$.length,nt=createTypedArray("float32",tt);for(rt=0;rt1){for(j=0;j<_e;j+=1)st[j]=this.pv[j]+et[j]+(-g+g*2*BMMath.random())*nt;return st}return this.pv+et[0]+(-g+g*2*BMMath.random())*nt}.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(i,o){return loopIn(i,o,!0)}function loopOutDuration(i,o){return loopOut(i,o,!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(i,o){var g=[o[0]-i[0],o[1]-i[1],o[2]-i[2]],$=Math.atan2(g[0],Math.sqrt(g[1]*g[1]+g[2]*g[2]))/degToRads,j=-Math.atan2(g[1],g[2])/degToRads;return[j,$,0]}function easeOut(i,o,g,$,j){return applyEase(easeOutBez,i,o,g,$,j)}function easeIn(i,o,g,$,j){return applyEase(easeInBez,i,o,g,$,j)}function ease(i,o,g,$,j){return applyEase(easeInOutBez,i,o,g,$,j)}function applyEase(i,o,g,$,j,_e){j===void 0?(j=g,_e=$):o=(o-g)/($-g),o>1?o=1:o<0&&(o=0);var et=i(o);if($bm_isInstanceOfArray(j)){var rt,tt=j.length,nt=createTypedArray("float32",tt);for(rt=0;rtdata.k[o].t&&idata.k[o+1].t-i?($=o+2,j=data.k[o+1].t):($=o+1,j=data.k[o].t);break}$===-1&&($=o+1,j=data.k[o].t)}var _e={};return _e.index=$,_e.time=j/elem.comp.globalData.frameRate,_e}function key(i){var o,g,$;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+i);i-=1,o={time:data.k[i].t/elem.comp.globalData.frameRate,value:[]};var j=Object.prototype.hasOwnProperty.call(data.k[i],"s")?data.k[i].s:data.k[i-1].e;for($=j.length,g=0;g<$;g+=1)o[g]=j[g],o.value[g]=j[g];return o}function framesToTime(i,o){return o||(o=elem.comp.globalData.frameRate),i/o}function timeToFrames(i,o){return!i&&i!==0&&(i=time),o||(o=elem.comp.globalData.frameRate),i*o}function seedRandom(i){BMMath.seedrandom(randSeed+i)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(i,o){return typeof value=="string"?o===void 0?value.substring(i):value.substring(i,o):""}function substr(i,o){return typeof value=="string"?o===void 0?value.substr(i):value.substr(i,o):""}function posterizeTime(i){time=i===0?0:Math.floor(time*i)/i,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(i){return value=i,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 i={};i.initExpressions=o,i.resetFrame=ExpressionManager.resetFrame;function o(g){var $=0,j=[];function _e(){$+=1}function et(){$-=1,$===0&&tt()}function rt(nt){j.indexOf(nt)===-1&&j.push(nt)}function tt(){var nt,st=j.length;for(nt=0;ntmt.length-1)&&(pt=mt.length-1),ot=mt[mt.length-1-pt].t,lt=at-ot);var ct,gt,yt;if(it==="pingpong"){var xt=Math.floor((ht-ot)/lt);if(xt%2!==0)return this.getValueAtTime((lt-(ht-ot)%lt+ot)/this.comp.globalData.frameRate,0)}else if(it==="offset"){var _t=this.getValueAtTime(ot/this.comp.globalData.frameRate,0),Pt=this.getValueAtTime(at/this.comp.globalData.frameRate,0),At=this.getValueAtTime(((ht-ot)%lt+ot)/this.comp.globalData.frameRate,0),Ft=Math.floor((ht-ot)/lt);if(this.pv.length){for(yt=new Array(_t.length),gt=yt.length,ct=0;ct=at)return this.pv;var lt,ot;ut?(pt?lt=Math.abs(this.elem.comp.globalData.frameRate*pt):lt=Math.max(0,this.elem.data.op-at),ot=at+lt):((!pt||pt>mt.length-1)&&(pt=mt.length-1),ot=mt[pt].t,lt=ot-at);var ct,gt,yt;if(it==="pingpong"){var xt=Math.floor((at-ht)/lt);if(xt%2===0)return this.getValueAtTime(((at-ht)%lt+at)/this.comp.globalData.frameRate,0)}else if(it==="offset"){var _t=this.getValueAtTime(at/this.comp.globalData.frameRate,0),Pt=this.getValueAtTime(ot/this.comp.globalData.frameRate,0),At=this.getValueAtTime((lt-(at-ht)%lt+at)/this.comp.globalData.frameRate,0),Ft=Math.floor((at-ht)/lt)+1;if(this.pv.length){for(yt=new Array(_t.length),gt=yt.length,ct=0;ct1?(mt-ht)/(pt-1):1,lt=0,ot=0,ct;this.pv.length?ct=createTypedArray("float32",this.pv.length):ct=0;for(var gt;ltlt){var xt=ot,_t=ht.c&&ot===ct-1?0:ot+1,Pt=(lt-gt)/at[ot].addedLength;yt=bez.getPointInSegment(ht.v[xt],ht.v[_t],ht.o[xt],ht.i[_t],Pt,at[ot]);break}else gt+=at[ot].addedLength;ot+=1}return yt||(yt=ht.c?[ht.v[0][0],ht.v[0][1]]:[ht.v[ht._length-1][0],ht.v[ht._length-1][1]]),yt},vectorOnPath:function(pt,ut,ht){pt==1?pt=this.v.c:pt==0&&(pt=.999);var mt=this.pointOnPath(pt,ut),at=this.pointOnPath(pt+.001,ut),lt=at[0]-mt[0],ot=at[1]-mt[1],ct=Math.sqrt(Math.pow(lt,2)+Math.pow(ot,2));if(ct===0)return[0,0];var gt=ht==="tangent"?[lt/ct,ot/ct]:[-ot/ct,lt/ct];return gt},tangentOnPath:function(pt,ut){return this.vectorOnPath(pt,ut,"tangent")},normalOnPath:function(pt,ut){return this.vectorOnPath(pt,ut,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([st],tt),extendPrototype([st],nt),nt.prototype.getValueAtTime=rt,nt.prototype.initiateExpression=ExpressionManager.initiateExpression;var ft=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(it,pt,ut,ht,mt){var at=ft(it,pt,ut,ht,mt);return at.propertyIndex=pt.ix,at.lock=!1,ut===3?expressionHelpers.searchExpressions(it,pt.pt,at):ut===4&&expressionHelpers.searchExpressions(it,pt.ks,at),at.k&&it.addDynamicProperty(at),at}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function i(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(o,g){var $=this.calculateExpression(g);if(o.t!==$){var j={};return this.copyData(j,o),j.t=$.toString(),j.__complete=!1,j}return o},TextProperty.prototype.searchProperty=function(){var o=this.searchKeyframes(),g=this.searchExpressions();return this.kf=o||g,this.kf},TextProperty.prototype.searchExpressions=i}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function i(o,g){var $=createNS("feMerge");$.setAttribute("result",o);var j,_e;for(_e=0;_e=nt?ft=ut<0?$:j:ft=$+pt*Math.pow((rt-i)/ut,1/g),st[it]=ft,it+=1,_e+=256/(et-1);return st.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(i){if(i||this.filterManager._mdf){var o,g=this.filterManager.effectElements;this.feFuncRComposed&&(i||g[3].p._mdf||g[4].p._mdf||g[5].p._mdf||g[6].p._mdf||g[7].p._mdf)&&(o=this.getTableValue(g[3].p.v,g[4].p.v,g[5].p.v,g[6].p.v,g[7].p.v),this.feFuncRComposed.setAttribute("tableValues",o),this.feFuncGComposed.setAttribute("tableValues",o),this.feFuncBComposed.setAttribute("tableValues",o)),this.feFuncR&&(i||g[10].p._mdf||g[11].p._mdf||g[12].p._mdf||g[13].p._mdf||g[14].p._mdf)&&(o=this.getTableValue(g[10].p.v,g[11].p.v,g[12].p.v,g[13].p.v,g[14].p.v),this.feFuncR.setAttribute("tableValues",o)),this.feFuncG&&(i||g[17].p._mdf||g[18].p._mdf||g[19].p._mdf||g[20].p._mdf||g[21].p._mdf)&&(o=this.getTableValue(g[17].p.v,g[18].p.v,g[19].p.v,g[20].p.v,g[21].p.v),this.feFuncG.setAttribute("tableValues",o)),this.feFuncB&&(i||g[24].p._mdf||g[25].p._mdf||g[26].p._mdf||g[27].p._mdf||g[28].p._mdf)&&(o=this.getTableValue(g[24].p.v,g[25].p.v,g[26].p.v,g[27].p.v,g[28].p.v),this.feFuncB.setAttribute("tableValues",o)),this.feFuncA&&(i||g[31].p._mdf||g[32].p._mdf||g[33].p._mdf||g[34].p._mdf||g[35].p._mdf)&&(o=this.getTableValue(g[31].p.v,g[32].p.v,g[33].p.v,g[34].p.v,g[35].p.v),this.feFuncA.setAttribute("tableValues",o))}};function SVGDropShadowEffect(i,o,g,$,j){var _e=o.container.globalData.renderConfig.filterSize,et=o.data.fs||_e;i.setAttribute("x",et.x||_e.x),i.setAttribute("y",et.y||_e.y),i.setAttribute("width",et.width||_e.width),i.setAttribute("height",et.height||_e.height),this.filterManager=o;var rt=createNS("feGaussianBlur");rt.setAttribute("in","SourceAlpha"),rt.setAttribute("result",$+"_drop_shadow_1"),rt.setAttribute("stdDeviation","0"),this.feGaussianBlur=rt,i.appendChild(rt);var tt=createNS("feOffset");tt.setAttribute("dx","25"),tt.setAttribute("dy","0"),tt.setAttribute("in",$+"_drop_shadow_1"),tt.setAttribute("result",$+"_drop_shadow_2"),this.feOffset=tt,i.appendChild(tt);var nt=createNS("feFlood");nt.setAttribute("flood-color","#00ff00"),nt.setAttribute("flood-opacity","1"),nt.setAttribute("result",$+"_drop_shadow_3"),this.feFlood=nt,i.appendChild(nt);var st=createNS("feComposite");st.setAttribute("in",$+"_drop_shadow_3"),st.setAttribute("in2",$+"_drop_shadow_2"),st.setAttribute("operator","in"),st.setAttribute("result",$+"_drop_shadow_4"),i.appendChild(st);var ft=this.createMergeNode($,[$+"_drop_shadow_4",j]);i.appendChild(ft)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(i){if(i||this.filterManager._mdf){if((i||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),i||this.filterManager.effectElements[0].p._mdf){var o=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(o[0]*255),Math.round(o[1]*255),Math.round(o[2]*255)))}if((i||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),i||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var g=this.filterManager.effectElements[3].p.v,$=(this.filterManager.effectElements[2].p.v-90)*degToRads,j=g*Math.cos($),_e=g*Math.sin($);this.feOffset.setAttribute("dx",j),this.feOffset.setAttribute("dy",_e)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(i,o,g){this.initialized=!1,this.filterManager=o,this.filterElem=i,this.elem=g,g.matteElement=createNS("g"),g.matteElement.appendChild(g.layerElement),g.matteElement.appendChild(g.transformedElement),g.baseElement=g.matteElement}SVGMatte3Effect.prototype.findSymbol=function(i){for(var o=0,g=_svgMatteSymbols.length;o=0)&&(g[j]=i[j]);return g}function _objectWithoutProperties(i,o){if(i==null)return{};var g=_objectWithoutPropertiesLoose(i,o),$,j;if(Object.getOwnPropertySymbols){var _e=Object.getOwnPropertySymbols(i);for(j=0;j<_e.length;j++)$=_e[j],!(o.indexOf($)>=0)&&Object.prototype.propertyIsEnumerable.call(i,$)&&(g[$]=i[$])}return g}function _slicedToArray(i,o){return _arrayWithHoles(i)||_iterableToArrayLimit(i,o)||_unsupportedIterableToArray(i,o)||_nonIterableRest()}function _arrayWithHoles(i){if(Array.isArray(i))return i}function _unsupportedIterableToArray(i,o){if(i){if(typeof i=="string")return _arrayLikeToArray(i,o);var g=Object.prototype.toString.call(i).slice(8,-1);if(g==="Object"&&i.constructor&&(g=i.constructor.name),g==="Map"||g==="Set")return Array.from(i);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return _arrayLikeToArray(i,o)}}function _arrayLikeToArray(i,o){(o==null||o>i.length)&&(o=i.length);for(var g=0,$=new Array(o);g0&&arguments[0]!==void 0?arguments[0]:{},Lt;if(xt.current){(Lt=yt.current)===null||Lt===void 0||Lt.destroy();var Nt=_objectSpread2(_objectSpread2(_objectSpread2({},o),It),{},{container:xt.current});return yt.current=lottie.loadAnimation(Nt),gt(!!yt.current),function(){var qt;(qt=yt.current)===null||qt===void 0||qt.destroy(),yt.current=void 0}}};reactExports.useEffect(function(){var St=vt();return function(){return St==null?void 0:St()}},[$,j]),reactExports.useEffect(function(){yt.current&&(yt.current.autoplay=!!_e)},[_e]),reactExports.useEffect(function(){if(yt.current){if(!et){yt.current.resetSegments(!0);return}!Array.isArray(et)||!et.length||((yt.current.currentRawFrameet[1])&&(yt.current.currentRawFrame=et[0]),yt.current.setSegment(et[0],et[1]))}},[et]),reactExports.useEffect(function(){var St=[{name:"complete",handler:rt},{name:"loopComplete",handler:tt},{name:"enterFrame",handler:nt},{name:"segmentStart",handler:st},{name:"config_ready",handler:ft},{name:"data_ready",handler:it},{name:"data_failed",handler:pt},{name:"loaded_images",handler:ut},{name:"DOMLoaded",handler:ht},{name:"destroy",handler:mt}],It=St.filter(function(Nt){return Nt.handler!=null});if(It.length){var Lt=It.map(function(Nt){var qt;return(qt=yt.current)===null||qt===void 0||qt.addEventListener(Nt.name,Nt.handler),function(){var Qt;(Qt=yt.current)===null||Qt===void 0||Qt.removeEventListener(Nt.name,Nt.handler)}});return function(){Lt.forEach(function(Nt){return Nt()})}}},[rt,tt,nt,st,ft,it,pt,ut,ht,mt]);var bt=React.createElement("div",_objectSpread2({style:g,ref:xt},at));return{View:bt,play:_t,stop:Pt,pause:At,setSpeed:Ft,goToAndStop:Ot,goToAndPlay:wt,setDirection:$t,playSegments:Mt,setSubframe:Et,getDuration:kt,destroy:dt,animationContainerRef:xt,animationLoaded:ct,animationItem:yt.current}};function getContainerVisibility(i){var o=i.getBoundingClientRect(),g=o.top,$=o.height,j=window.innerHeight-g,_e=window.innerHeight+$;return j/_e}function getContainerCursorPosition(i,o,g){var $=i.getBoundingClientRect(),j=$.top,_e=$.left,et=$.width,rt=$.height,tt=(o-_e)/et,nt=(g-j)/rt;return{x:tt,y:nt}}var useInitInteractivity=function i(o){var g=o.wrapperRef,$=o.animationItem,j=o.mode,_e=o.actions;reactExports.useEffect(function(){var et=g.current;if(!(!et||!$||!_e.length)){$.stop();var rt=function(){var st=null,ft=function(){var pt=getContainerVisibility(et),ut=_e.find(function(mt){var at=mt.visibility;return at&&pt>=at[0]&&pt<=at[1]});if(ut){if(ut.type==="seek"&&ut.visibility&&ut.frames.length===2){var ht=ut.frames[0]+Math.ceil((pt-ut.visibility[0])/(ut.visibility[1]-ut.visibility[0])*ut.frames[1]);//! goToAndStop must be relative to the start of the current segment -$.goToAndStop(ht-$.firstFrame-1,!0)}ut.type==="loop"&&(st===null||st!==ut.frames||$.isPaused)&&($.playSegments(ut.frames,!0),st=ut.frames),ut.type==="play"&&$.isPaused&&($.resetSegments(!0),$.play()),ut.type==="stop"&&$.goToAndStop(ut.frames[0]-$.firstFrame-1,!0)}};return document.addEventListener("scroll",ft),function(){document.removeEventListener("scroll",ft)}},tt=function(){var st=function(ut,ht){var mt=ut,at=ht;if(mt!==-1&&at!==-1){var lt=getContainerCursorPosition(et,mt,at);mt=lt.x,at=lt.y}var ot=_e.find(function(yt){var xt=yt.position;return xt&&Array.isArray(xt.x)&&Array.isArray(xt.y)?mt>=xt.x[0]&&mt<=xt.x[1]&&at>=xt.y[0]&&at<=xt.y[1]:xt&&!Number.isNaN(xt.x)&&!Number.isNaN(xt.y)?mt===xt.x&&at===xt.y:!1});if(ot){if(ot.type==="seek"&&ot.position&&Array.isArray(ot.position.x)&&Array.isArray(ot.position.y)&&ot.frames.length===2){var ct=(mt-ot.position.x[0])/(ot.position.x[1]-ot.position.x[0]),gt=(at-ot.position.y[0])/(ot.position.y[1]-ot.position.y[0]);$.playSegments(ot.frames,!0),$.goToAndStop(Math.ceil((ct+gt)/2*(ot.frames[1]-ot.frames[0])),!0)}ot.type==="loop"&&$.playSegments(ot.frames,!0),ot.type==="play"&&($.isPaused&&$.resetSegments(!1),$.playSegments(ot.frames)),ot.type==="stop"&&$.goToAndStop(ot.frames[0],!0)}},ft=function(ut){st(ut.clientX,ut.clientY)},it=function(){st(-1,-1)};return et.addEventListener("mousemove",ft),et.addEventListener("mouseout",it),function(){et.removeEventListener("mousemove",ft),et.removeEventListener("mouseout",it)}};switch(j){case"scroll":return rt();case"cursor":return tt()}}},[j,$])},useLottieInteractivity=function i(o){var g=o.actions,$=o.mode,j=o.lottieObj,_e=j.animationItem,et=j.View,rt=j.animationContainerRef;return useInitInteractivity({actions:g,animationItem:_e,mode:$,wrapperRef:rt}),et},_excluded=["style","interactivity"],Lottie=function i(o){var g,$,j,_e=o.style,et=o.interactivity,rt=_objectWithoutProperties(o,_excluded),tt=useLottie(rt,_e),nt=tt.View,st=tt.play,ft=tt.stop,it=tt.pause,pt=tt.setSpeed,ut=tt.goToAndStop,ht=tt.goToAndPlay,mt=tt.setDirection,at=tt.playSegments,lt=tt.setSubframe,ot=tt.getDuration,ct=tt.destroy,gt=tt.animationContainerRef,yt=tt.animationLoaded,xt=tt.animationItem;return reactExports.useEffect(function(){o.lottieRef&&(o.lottieRef.current={play:st,stop:ft,pause:it,setSpeed:pt,goToAndPlay:ht,goToAndStop:ut,setDirection:mt,playSegments:at,setSubframe:lt,getDuration:ot,destroy:ct,animationContainerRef:gt,animationLoaded:yt,animationItem:xt})},[(g=o.lottieRef)===null||g===void 0?void 0:g.current]),useLottieInteractivity({lottieObj:{View:nt,play:st,stop:ft,pause:it,setSpeed:pt,goToAndStop:ut,goToAndPlay:ht,setDirection:mt,playSegments:at,setSubframe:lt,getDuration:ot,destroy:ct,animationContainerRef:gt,animationLoaded:yt,animationItem:xt},actions:($=et==null?void 0:et.actions)!==null&&$!==void 0?$:[],mode:(j=et==null?void 0:et.mode)!==null&&j!==void 0?j:"scroll"})};const tgs=1,v$1="5.5.2",fr$1=60,ip$1=0,op$1=114,w$1=512,h$1=512,nm$1="Comp 1",ddd$1=0,assets$1=[],layers$1=[{ddd:0,ind:1,ty:4,nm:"hand",parent:7,sr:1,ks:{r:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:35,s:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:62,s:[11.563]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:71,s:[11.563]},{t:97,s:[0]}]},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[320.151,436.828,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:26,s:[311.778,404.225,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[311.778,404.225,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[282.389,483.088,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[283.252,476.53,0],to:[0,0,0],ti:[0,0,0]},{t:97,s:[320.151,436.828,0]}]},a:{a:0,k:[341.151,436.828,0]}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:26,s:[{i:[[0,0],[-20.624,-6.94],[-12.048,30.801],[1.585,12.68],[32.12,6.302],[3.1,-16.822],[6.873,1.635],[2.904,-30.857],[-30.642,-5.811]],o:[[0,0],[31.564,10.621],[11.751,-30.042],[-1.585,-12.68],[-26.065,-5.114],[-2.328,12.634],[-26.809,-6.378],[-3,31.875],[0,0]],v:[[-29.623,47.125],[-12.981,69.842],[74.719,47.125],[68.907,-24.197],[61.775,-74.915],[24.717,-34.619],[9.217,-25.212],[-78.792,-9.933],[-21.7,16.71]],c:!1}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[{i:[[0,0],[-20.624,-6.94],[-12.048,30.801],[1.585,12.68],[27.401,5.559],[-6.809,-18.123],[6.873,1.635],[8.938,-20.152],[-30.642,-5.811]],o:[[0,0],[31.564,10.621],[11.751,-30.042],[-1.585,-12.68],[-26.028,-5.297],[3.771,11.468],[-26.809,-6.378],[-14.412,27.228],[0,0]],v:[[-29.623,47.125],[-12.981,69.842],[74.719,47.125],[68.907,-24.197],[44.106,-74.641],[22.481,-35.216],[9.218,-25.212],[-64.729,-29.59],[-21.7,16.71]],c:!1}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:43,s:[{i:[[0,0],[-20.624,-6.94],[-12.048,30.801],[1.585,12.68],[32.12,6.302],[3.1,-16.822],[6.873,1.635],[2.904,-30.857],[-30.642,-5.811]],o:[[0,0],[31.564,10.621],[11.751,-30.042],[-1.585,-12.68],[-26.065,-5.114],[-2.328,12.634],[-26.809,-6.378],[-3,31.875],[0,0]],v:[[-29.623,47.125],[-12.981,69.842],[74.719,47.125],[68.907,-24.197],[61.775,-74.915],[24.717,-34.619],[9.217,-25.212],[-78.792,-9.933],[-21.7,16.71]],c:!1}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[{i:[[0,0],[-20.624,-6.94],[-12.048,30.801],[1.585,12.68],[32.12,6.302],[3.1,-16.822],[6.873,1.635],[2.904,-30.857],[-30.642,-5.811]],o:[[0,0],[31.564,10.621],[11.751,-30.042],[-1.585,-12.68],[-26.065,-5.114],[-2.328,12.634],[-26.809,-6.378],[-3,31.875],[0,0]],v:[[-29.623,47.125],[-12.981,69.842],[74.719,47.125],[68.907,-24.197],[61.775,-74.915],[24.717,-34.619],[9.217,-25.212],[-78.792,-9.933],[-21.7,16.71]],c:!1}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[{i:[[0,0],[-20.624,-6.94],[-12.048,30.801],[1.585,12.68],[27.401,5.559],[-6.809,-18.123],[6.873,1.635],[8.938,-20.152],[-30.642,-5.811]],o:[[0,0],[31.564,10.621],[11.751,-30.042],[-1.585,-12.68],[-26.028,-5.297],[3.771,11.468],[-26.809,-6.378],[-14.412,27.228],[0,0]],v:[[-29.623,47.125],[-12.981,69.842],[74.719,47.125],[68.907,-24.197],[44.106,-74.641],[22.481,-35.216],[9.218,-25.212],[-64.729,-29.59],[-21.7,16.71]],c:!1}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:79,s:[{i:[[0,0],[-20.624,-6.94],[-12.048,30.801],[1.585,12.68],[32.12,6.302],[3.1,-16.822],[6.873,1.635],[2.904,-30.857],[-30.642,-5.811]],o:[[0,0],[31.564,10.621],[11.751,-30.042],[-1.585,-12.68],[-26.065,-5.114],[-2.328,12.634],[-26.809,-6.378],[-3,31.875],[0,0]],v:[[-29.623,47.125],[-12.981,69.842],[74.719,47.125],[68.907,-24.197],[61.775,-74.915],[24.717,-34.619],[9.217,-25.212],[-78.792,-9.933],[-21.7,16.71]],c:!1}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:92,s:[{i:[[0,0],[-20.624,-6.94],[-12.048,30.801],[1.585,12.68],[32.12,6.302],[3.1,-16.822],[6.873,1.635],[2.904,-30.857],[-30.642,-5.811]],o:[[0,0],[31.564,10.621],[11.751,-30.042],[-1.585,-12.68],[-26.065,-5.114],[-2.328,12.634],[-26.809,-6.378],[-3,31.875],[0,0]],v:[[-29.623,47.125],[-12.981,69.842],[74.719,47.125],[68.907,-24.197],[61.775,-74.915],[24.717,-34.619],[9.217,-25.212],[-78.792,-9.933],[-21.7,16.71]],c:!1}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:103,s:[{i:[[0,0],[-20.624,-6.94],[-12.048,30.801],[1.585,12.68],[29.975,5.965],[-1.404,-17.413],[6.873,1.635],[5.647,-25.991],[-30.642,-5.811]],o:[[0,0],[31.564,10.621],[11.751,-30.042],[-1.585,-12.68],[-26.048,-5.197],[.444,12.104],[-26.809,-6.378],[-8.188,29.763],[0,0]],v:[[-29.623,47.125],[-12.981,69.842],[74.719,47.125],[68.907,-24.197],[53.744,-74.791],[23.701,-34.891],[9.218,-25.212],[-72.399,-18.868],[-21.7,16.71]],c:!1}]},{t:114,s:[{i:[[0,0],[-20.624,-6.94],[-12.048,30.801],[1.585,12.68],[32.12,6.302],[3.1,-16.822],[6.873,1.635],[2.904,-30.857],[-30.642,-5.811]],o:[[0,0],[31.564,10.621],[11.751,-30.042],[-1.585,-12.68],[-26.065,-5.114],[-2.328,12.634],[-26.809,-6.378],[-3,31.875],[0,0]],v:[[-29.623,47.125],[-12.981,69.842],[74.719,47.125],[68.907,-24.197],[61.775,-74.915],[24.717,-34.619],[9.217,-25.212],[-78.792,-9.933],[-21.7,16.71]],c:!1}]}]},nm:"Path 1",hd:!1},{ty:"st",c:{a:0,k:[.329411774874,.270588248968,.376470595598,1]},o:{a:0,k:100},w:{a:0,k:8.005},lc:2,lj:2,bm:0,nm:"Stroke 1",hd:!1},{ty:"tr",p:{a:0,k:[286.436,382.828]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 1",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[0,0],[5.283,15.321],[-2.514,3.493]],o:[[0,0],[-2.924,-8.48],[0,0]],v:[[14.071,15.685],[-12.557,1.862],[-11.184,-15.725]],c:!1}},nm:"Path 1",hd:!1},{ty:"st",c:{a:0,k:[.329411774874,.270588248968,.376470595598,1]},o:{a:0,k:100},w:{a:0,k:8.005},lc:2,lj:2,bm:0,nm:"Stroke 1",hd:!1},{ty:"tr",p:{a:0,k:[255.106,413.563]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 2",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:26,s:[{i:[[-2.96,-15.225],[-20.3,2.96],[-15.601,-1.276],[-2.537,12.687],[-30.449,-14.802],[13.956,-.423],[3.91,-13.692],[10.573,-1.269],[30.872,-3.806]],o:[[0,0],[20.3,-2.96],[11.63,.952],[2.048,-10.242],[0,0],[-13.956,.423],[-3.91,13.692],[-10.573,1.269],[-30.872,3.806]],v:[[-74.237,38.913],[-48.969,13.856],[18.379,21.151],[35.718,3.389],[75.472,-28.329],[56.018,-38.901],[30.221,-11.835],[16.688,9.733],[-46.325,6.772]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[{i:[[-4.746,-4.343],[-20.481,-1.17],[-15.601,-1.276],[4.055,12.286],[-30.4,-22.59],[13.956,-.423],[-1.872,-13.808],[10.573,-1.269],[27.476,3.509]],o:[[0,0],[24.676,1.41],[11.63,.952],[-7.786,-23.591],[0,0],[-13.956,.423],[1.913,14.11],[-10.573,1.269],[-30.855,-3.94]],v:[[-64.662,28.322],[-44.153,7.658],[18.379,21.151],[32.549,4.006],[63.857,-25.213],[39.407,-38.302],[21.83,-8.829],[16.688,9.733],[-40.331,-2.385]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:43,s:[{i:[[-2.96,-15.225],[-20.3,2.96],[-15.601,-1.276],[-2.537,12.687],[-30.449,-14.802],[13.956,-.423],[3.91,-13.692],[10.573,-1.269],[30.872,-3.806]],o:[[0,0],[20.3,-2.96],[11.63,.952],[2.048,-10.242],[0,0],[-13.956,.423],[-3.91,13.692],[-10.573,1.269],[-30.872,3.806]],v:[[-74.237,38.913],[-48.969,13.856],[18.379,21.151],[35.718,3.389],[75.472,-28.329],[56.018,-38.901],[30.221,-11.835],[16.688,9.733],[-46.325,6.772]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[{i:[[-2.96,-15.225],[-20.3,2.96],[-15.601,-1.276],[-2.537,12.687],[-30.449,-14.802],[13.956,-.423],[3.91,-13.692],[10.573,-1.269],[30.872,-3.806]],o:[[0,0],[20.3,-2.96],[11.63,.952],[2.048,-10.242],[0,0],[-13.956,.423],[-3.91,13.692],[-10.573,1.269],[-30.872,3.806]],v:[[-74.237,38.913],[-48.969,13.856],[18.379,21.151],[35.718,3.389],[75.472,-28.329],[56.018,-38.901],[30.221,-11.835],[16.688,9.733],[-46.325,6.772]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[{i:[[-4.746,-4.343],[-20.481,-1.17],[-15.601,-1.276],[4.055,12.286],[-30.4,-22.59],[13.956,-.423],[-1.872,-13.808],[10.573,-1.269],[27.476,3.509]],o:[[0,0],[24.676,1.41],[11.63,.952],[-7.786,-23.591],[0,0],[-13.956,.423],[1.913,14.11],[-10.573,1.269],[-30.855,-3.94]],v:[[-64.662,28.322],[-44.153,7.658],[18.379,21.151],[32.549,4.006],[63.857,-25.213],[39.407,-38.302],[21.83,-8.829],[16.688,9.733],[-40.331,-2.385]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:79,s:[{i:[[-2.96,-15.225],[-20.3,2.96],[-15.601,-1.276],[-2.537,12.687],[-30.449,-14.802],[13.956,-.423],[3.91,-13.692],[10.573,-1.269],[30.872,-3.806]],o:[[0,0],[20.3,-2.96],[11.63,.952],[2.048,-10.242],[0,0],[-13.956,.423],[-3.91,13.692],[-10.573,1.269],[-30.872,3.806]],v:[[-74.237,38.913],[-48.969,13.856],[18.379,21.151],[35.718,3.389],[75.472,-28.329],[56.018,-38.901],[30.221,-11.835],[16.688,9.733],[-46.325,6.772]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:92,s:[{i:[[-2.96,-15.225],[-20.3,2.96],[-15.601,-1.276],[-2.537,12.687],[-30.449,-14.802],[13.956,-.423],[3.91,-13.692],[10.573,-1.269],[30.872,-3.806]],o:[[0,0],[20.3,-2.96],[11.63,.952],[2.048,-10.242],[0,0],[-13.956,.423],[-3.91,13.692],[-10.573,1.269],[-30.872,3.806]],v:[[-74.237,38.913],[-48.969,13.856],[18.379,21.151],[35.718,3.389],[75.472,-28.329],[56.018,-38.901],[30.221,-11.835],[16.688,9.733],[-46.325,6.772]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:103,s:[{i:[[-3.772,-10.278],[-20.382,1.083],[-15.601,-1.276],[.459,12.505],[-30.427,-18.342],[13.956,-.423],[1.281,-13.745],[10.573,-1.269],[29.328,-.481]],o:[[0,0],[22.289,-.974],[11.63,.952],[-2.422,-16.31],[0,0],[-13.956,.423],[-1.263,13.882],[-10.573,1.269],[-30.865,.285]],v:[[-69.885,34.099],[-46.78,11.039],[18.379,21.151],[34.278,3.669],[70.192,-26.913],[48.467,-38.629],[26.407,-10.469],[16.688,9.733],[-43.601,2.61]],c:!0}]},{t:114,s:[{i:[[-2.96,-15.225],[-20.3,2.96],[-15.601,-1.276],[-2.537,12.687],[-30.449,-14.802],[13.956,-.423],[3.91,-13.692],[10.573,-1.269],[30.872,-3.806]],o:[[0,0],[20.3,-2.96],[11.63,.952],[2.048,-10.242],[0,0],[-13.956,.423],[-3.91,13.692],[-10.573,1.269],[-30.872,3.806]],v:[[-74.237,38.913],[-48.969,13.856],[18.379,21.151],[35.718,3.389],[75.472,-28.329],[56.018,-38.901],[30.221,-11.835],[16.688,9.733],[-46.325,6.772]],c:!0}]}]},nm:"Path 1",hd:!1},{ty:"fl",c:{a:0,k:[.92549020052,.823529422283,.878431379795,1]},o:{a:0,k:100},r:1,bm:0,nm:"Fill 1",hd:!1},{ty:"tr",p:{a:0,k:[284.842,346.352]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 3",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[7.93,11.418],[-25.374,23.471],[0,0],[23.471,-25.057]],o:[[0,0],[25.374,-23.471],[0,0],[-23.471,25.057]],v:[[-48.642,26.736],[23.675,14.683],[43.975,-38.603],[35.411,22.93]],c:!0}},nm:"Path 1",hd:!1},{ty:"fl",c:{a:0,k:[.57647061348,.435294121504,.549019634724,1]},o:{a:0,k:100},r:1,bm:0,nm:"Fill 1",hd:!1},{ty:"tr",p:{a:0,k:[315.916,419.745]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 4",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:26,s:[{i:[[0,0],[-.211,-13.533],[0,0],[0,0],[-21.026,-5.607],[-15.057,28.529],[1.585,12.68],[32.491,3.962],[4.239,-16.572],[6.873,1.635],[8.211,-29.886],[-11.841,-2.537]],o:[[0,0],[.211,13.533],[0,0],[0,0],[27.736,7.396],[15.057,-28.529],[-1.585,-12.68],[-22.479,-2.741],[-1.751,6.844],[-26.809,-6.378],[-6.604,24.038],[0,0]],v:[[-44.003,16.834],[-46.224,29.627],[-31.21,45.063],[-30.887,47.883],[-14.245,70.6],[73.455,47.883],[67.643,-23.44],[60.511,-74.158],[23.453,-33.862],[7.953,-24.454],[-78.153,-11.713],[-45.589,14.93]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[{i:[[0,0],[-.211,-13.533],[0,0],[0,0],[-21.026,-5.607],[-15.057,28.529],[1.585,12.68],[32.491,3.962],[-6.96,-15.625],[6.873,1.635],[8.211,-29.886],[-11.51,-8.094]],o:[[0,0],[.211,13.533],[0,0],[0,0],[27.736,7.396],[15.057,-28.529],[-1.585,-12.68],[-22.479,-2.741],[3.906,8.769],[-26.809,-6.378],[-6.604,24.038],[0,0]],v:[[-44.003,16.834],[-46.224,29.627],[-31.21,45.063],[-30.887,47.883],[-14.245,70.6],[73.455,47.883],[67.643,-23.44],[42.016,-74.886],[20.721,-33.809],[7.953,-24.454],[-67.046,-24.276],[-45.589,14.93]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:43,s:[{i:[[0,0],[-.211,-13.533],[0,0],[0,0],[-21.026,-5.607],[-15.057,28.529],[1.585,12.68],[32.491,3.962],[4.239,-16.572],[6.873,1.635],[8.211,-29.886],[-11.841,-2.537]],o:[[0,0],[.211,13.533],[0,0],[0,0],[27.736,7.396],[15.057,-28.529],[-1.585,-12.68],[-22.479,-2.741],[-1.751,6.844],[-26.809,-6.378],[-6.604,24.038],[0,0]],v:[[-44.003,16.834],[-46.224,29.627],[-31.21,45.063],[-30.887,47.883],[-14.245,70.6],[73.455,47.883],[67.643,-23.44],[60.511,-74.158],[23.453,-33.862],[7.953,-24.454],[-78.153,-11.713],[-45.589,14.93]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[{i:[[0,0],[-.211,-13.533],[0,0],[0,0],[-21.026,-5.607],[-15.057,28.529],[1.585,12.68],[32.491,3.962],[4.239,-16.572],[6.873,1.635],[8.211,-29.886],[-11.841,-2.537]],o:[[0,0],[.211,13.533],[0,0],[0,0],[27.736,7.396],[15.057,-28.529],[-1.585,-12.68],[-22.479,-2.741],[-1.751,6.844],[-26.809,-6.378],[-6.604,24.038],[0,0]],v:[[-44.003,16.834],[-46.224,29.627],[-31.21,45.063],[-30.887,47.883],[-14.245,70.6],[73.455,47.883],[67.643,-23.44],[60.511,-74.158],[23.453,-33.862],[7.953,-24.454],[-78.153,-11.713],[-45.589,14.93]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[{i:[[0,0],[-.211,-13.533],[0,0],[0,0],[-21.026,-5.607],[-15.057,28.529],[1.585,12.68],[32.491,3.962],[-6.96,-15.625],[6.873,1.635],[8.211,-29.886],[-11.51,-8.094]],o:[[0,0],[.211,13.533],[0,0],[0,0],[27.736,7.396],[15.057,-28.529],[-1.585,-12.68],[-22.479,-2.741],[3.906,8.769],[-26.809,-6.378],[-6.604,24.038],[0,0]],v:[[-44.003,16.834],[-46.224,29.627],[-31.21,45.063],[-30.887,47.883],[-14.245,70.6],[73.455,47.883],[67.643,-23.44],[42.016,-74.886],[20.721,-33.809],[7.953,-24.454],[-67.046,-24.276],[-45.589,14.93]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:79,s:[{i:[[0,0],[-.211,-13.533],[0,0],[0,0],[-21.026,-5.607],[-15.057,28.529],[1.585,12.68],[32.491,3.962],[4.239,-16.572],[6.873,1.635],[8.211,-29.886],[-11.841,-2.537]],o:[[0,0],[.211,13.533],[0,0],[0,0],[27.736,7.396],[15.057,-28.529],[-1.585,-12.68],[-22.479,-2.741],[-1.751,6.844],[-26.809,-6.378],[-6.604,24.038],[0,0]],v:[[-44.003,16.834],[-46.224,29.627],[-31.21,45.063],[-30.887,47.883],[-14.245,70.6],[73.455,47.883],[67.643,-23.44],[60.511,-74.158],[23.453,-33.862],[7.953,-24.454],[-78.153,-11.713],[-45.589,14.93]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:92,s:[{i:[[0,0],[-.211,-13.533],[0,0],[0,0],[-21.026,-5.607],[-15.057,28.529],[1.585,12.68],[32.491,3.962],[4.239,-16.572],[6.873,1.635],[8.211,-29.886],[-11.841,-2.537]],o:[[0,0],[.211,13.533],[0,0],[0,0],[27.736,7.396],[15.057,-28.529],[-1.585,-12.68],[-22.479,-2.741],[-1.751,6.844],[-26.809,-6.378],[-6.604,24.038],[0,0]],v:[[-44.003,16.834],[-46.224,29.627],[-31.21,45.063],[-30.887,47.883],[-14.245,70.6],[73.455,47.883],[67.643,-23.44],[60.511,-74.158],[23.453,-33.862],[7.953,-24.454],[-78.153,-11.713],[-45.589,14.93]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:103,s:[{i:[[0,0],[-.211,-13.533],[0,0],[0,0],[-21.026,-5.607],[-15.057,28.529],[1.585,12.68],[32.491,3.962],[-.852,-16.141],[6.873,1.635],[8.211,-29.886],[-11.691,-5.063]],o:[[0,0],[.211,13.533],[0,0],[0,0],[27.736,7.396],[15.057,-28.529],[-1.585,-12.68],[-22.479,-2.741],[.821,7.719],[-26.809,-6.378],[-6.604,24.038],[0,0]],v:[[-44.003,16.834],[-46.224,29.627],[-31.21,45.063],[-30.887,47.883],[-14.245,70.6],[73.455,47.883],[67.643,-23.44],[52.104,-74.489],[22.211,-33.838],[7.953,-24.454],[-73.104,-17.423],[-45.589,14.93]],c:!0}]},{t:114,s:[{i:[[0,0],[-.211,-13.533],[0,0],[0,0],[-21.026,-5.607],[-15.057,28.529],[1.585,12.68],[32.491,3.962],[4.239,-16.572],[6.873,1.635],[8.211,-29.886],[-11.841,-2.537]],o:[[0,0],[.211,13.533],[0,0],[0,0],[27.736,7.396],[15.057,-28.529],[-1.585,-12.68],[-22.479,-2.741],[-1.751,6.844],[-26.809,-6.378],[-6.604,24.038],[0,0]],v:[[-44.003,16.834],[-46.224,29.627],[-31.21,45.063],[-30.887,47.883],[-14.245,70.6],[73.455,47.883],[67.643,-23.44],[60.511,-74.158],[23.453,-33.862],[7.953,-24.454],[-78.153,-11.713],[-45.589,14.93]],c:!0}]}]},nm:"Path 1",hd:!1},{ty:"gf",o:{a:0,k:100},r:1,bm:0,g:{p:3,k:{a:0,k:[0,.627,.49,.596,.519,.757,.606,.69,1,.886,.722,.784]}},s:{a:0,k:[7.3,94.93]},e:{a:0,k:[-4.826,-71.467]},t:1,nm:"Gradient Fill 1",hd:!1},{ty:"tr",p:{a:0,k:[287.701,382.07]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 5",bm:0,hd:!1}],ip:0,op:180,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"eyebrows",parent:3,sr:1,ks:{p:{a:0,k:[241.48,107.66,0]},a:{a:0,k:[241.48,107.66,0]}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[-.428,5.586],[-10.567,3.922],[-2.311,-6.34],[12.313,-3.333]],o:[[.31,-4.05],[11.65,-4.324],[2.178,5.976],[-12.597,3.41]],v:[[-23.739,9.024],[-4.048,-9.442],[23.503,-4.721],[.753,6.261]],c:!0}},nm:"Path 1",hd:!1},{ty:"fl",c:{a:0,k:[0,0,0,1]},o:{a:0,k:100},r:1,bm:0,nm:"Fill 1",hd:!1},{ty:"tr",p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[176.604,85.216],to:[.357,6.461],ti:[-.357,-6.461]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:26,s:[178.745,123.983],to:[.357,6.461],ti:[-1.907,-2.589]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[178.745,123.983],to:[1.907,2.589],ti:[-1.907,-2.589]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[190.188,139.514],to:[1.907,2.589],ti:[2.264,9.05]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[190.188,139.514],to:[-2.264,-9.05],ti:[2.264,9.05]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:97,s:[176.604,85.216],to:[0,0],ti:[0,0]},{t:107,s:[176.604,85.216]}]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:0,s:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:26,s:[48.617]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:35,s:[48.617]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:62,s:[58.529]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:71,s:[58.529]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:97,s:[0]},{t:107,s:[0]}]},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 1",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[3.497,4.377],[10.942,-2.703],[-1.656,-6.541],[-12.055,4.172]],o:[[-2.535,-3.173],[-12.064,2.98],[1.561,6.166],[12.333,-4.268]],v:[[23.197,-6.403],[-3.471,-10.59],[-23.592,8.813],[1.395,5.092]],c:!0}},nm:"Path 1",hd:!1},{ty:"fl",c:{a:0,k:[0,0,0,1]},o:{a:0,k:100},r:1,bm:0,nm:"Fill 1",hd:!1},{ty:"tr",p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[306.328,130.129],to:[-.119,-7.343],ti:[.119,7.343]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:26,s:[305.616,86.068],to:[-.119,-7.343],ti:[5.011,-9.706]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[305.616,86.068],to:[-5.011,9.706],ti:[5.011,-9.706]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[275.55,144.304],to:[-5.011,9.706],ti:[-5.13,2.362]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[275.55,144.304],to:[5.13,-2.362],ti:[-5.13,2.362]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:97,s:[306.328,130.129],to:[0,0],ti:[0,0]},{t:107,s:[306.328,130.129]}]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:0,s:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:26,s:[41.627]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:35,s:[41.627]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:62,s:[-6.655]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:71,s:[-6.655]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:97,s:[0]},{t:107,s:[0]}]},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 2",bm:0,hd:!1}],ip:0,op:180,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"nose",parent:7,sr:1,ks:{p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[221.195,235.407,0],to:[1.966,-4.995,0],ti:[-.899,-6.634,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:26,s:[232.993,205.439,0],to:[.252,1.857,0],ti:[-.562,-14.436,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[232.993,205.439,0],to:[.562,14.436,0],ti:[1.416,-3.597,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[236.366,292.057,0],to:[-.7,1.777,0],ti:[1.416,-3.597,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[236.366,292.057,0],to:[-1.966,4.995,0],ti:[.579,4.274,0]},{t:97,s:[221.195,235.407,0]}]},a:{a:0,k:[221.195,235.407,0]}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[9.703,4.848],[-10.943,-7.503]],o:[[-6.554,-3.274],[10.943,7.503]],v:[[8.832,-23.335],[-8.785,22.734]],c:!0}},nm:"Path 1",hd:!1},{ty:"fl",c:{a:0,k:[.505882382393,.392156869173,.470588237047,1]},o:{a:0,k:100},r:1,bm:0,nm:"Fill 1",hd:!1},{ty:"tr",p:{a:0,k:[211.295,220.293]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 1",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[.869,7.362],[-1.065,-9.205]],o:[[-2.405,-20.384],[1.065,9.205]],v:[[15.263,-4.309],[-15.253,9.297]],c:!0}},nm:"Path 1",hd:!1},{ty:"fl",c:{a:0,k:[0,0,0,1]},o:{a:0,k:100},r:1,bm:0,nm:"Fill 1",hd:!1},{ty:"tr",p:{a:0,k:[241.772,273.622]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 2",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[30.752,5.157],[5.982,-49.532],[-.871,-2.197],[-12.437,-7.959],[-3.289,.201],[-16.884,13.602],[-.215,4.065]],o:[[-19.666,-3.298],[-.283,2.347],[1.975,4.98],[5.286,3.383],[9.101,-.555],[3.17,-2.554],[.95,-17.959]],v:[[10.116,-52.243],[-40.001,18.014],[-39.148,24.944],[-21.918,46.4],[-3.944,52.533],[34.495,33.518],[39.842,23.144]],c:!0}},nm:"Path 1",hd:!1},{ty:"st",c:{a:0,k:[0,0,0,1]},o:{a:0,k:100},w:{a:0,k:8.005},lc:2,lj:2,bm:0,nm:"Stroke 1",hd:!1},{ty:"fl",c:{a:0,k:[.219607844949,.168627455831,.203921571374,1]},o:{a:0,k:100},r:1,bm:0,nm:"Fill 1",hd:!1},{ty:"tr",p:{a:0,k:[221.195,235.407]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 3",bm:0,hd:!1}],ip:0,op:180,st:0,bm:0},{ddd:0,ind:4,ty:4,nm:"right eye",parent:3,sr:1,ks:{p:{a:0,k:[329.881,213.307,0]},a:{a:0,k:[329.881,213.307,0]}},ao:0,shapes:[{ty:"gr",it:[{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[-9.228,7.015],[0,0],[0,0]],o:[[7.848,-5.966],[0,0],[0,0]],v:[[8.154,9.215],[4.469,-11.009],[-10.889,.413]],c:!0}},nm:"Path 1",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1]},o:{a:0,k:100},r:1,bm:0,nm:"Fill 1",hd:!1},{ty:"tr",p:{a:0,k:[313.771,187.156]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 1",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[-2.257,5.883],[-10.707,6.875],[-4.919,.157],[14.656,-12.461]],o:[[.777,-2.025],[8.475,-5.442],[4.919,-.157],[-14.656,12.461]],v:[[-19.914,5.806],[.629,-1.267],[11.678,-18.67],[12.662,13.771]],c:!0}},nm:"Path 1",hd:!1},{ty:"fl",c:{a:0,k:[.078431375325,.392156869173,.505882382393,1]},o:{a:0,k:100},r:1,bm:0,nm:"Fill 1",hd:!1},{ty:"tr",p:{a:0,k:[336.069,220.276]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 2",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[1.829,-22.16],[18.803,1.459],[-1.829,22.16],[-18.803,-1.459]],o:[[-1.829,22.16],[-18.803,-1.459],[1.829,-22.16],[18.803,1.459]],v:[[34.046,3.145],[-2.934,36.058],[-34.047,-2.138],[3.018,-36.066]],c:!0}},nm:"Path 1",hd:!1},{ty:"fl",c:{a:0,k:[0,0,0,1]},o:{a:0,k:100},r:1,bm:0,nm:"Fill 1",hd:!1},{ty:"tr",p:{a:0,k:[334.278,213.719]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 3",bm:0,hd:!1},{ty:"tr",p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[334.278,213.719],to:[-3.542,-2.08],ti:[3.542,2.08]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:26,s:[313.027,201.24],to:[-3.542,-2.08],ti:[-1.929,-5.602]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[313.027,201.24],to:[1.929,5.602],ti:[-1.929,-5.602]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[324.602,234.851],to:[1.929,5.602],ti:[-1.613,3.522]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[324.602,234.851],to:[1.613,-3.522],ti:[-1.613,3.522]},{t:97,s:[334.278,213.719]}]},a:{a:0,k:[334.278,213.719]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 1",bm:0,hd:!1},{ty:"gr",it:[{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[{i:[[.103,32.518],[-38.808,-6.5],[4.554,-44.525],[35.19,6.084]],o:[[-.147,-46.533],[38.808,6.5],[-4.141,40.486],[-34.224,-5.917]],v:[[-65.025,2.116],[8.519,-67.44],[64.425,14.537],[-11.431,67.19]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[{i:[[.103,32.518],[-39.151,-3.945],[4.554,-44.525],[35.19,6.084]],o:[[-.147,-46.533],[35.011,3.528],[-4.141,40.486],[-34.224,-5.917]],v:[[-65.025,2.116],[3.619,-68.125],[56.095,13.373],[-11.431,67.19]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[{i:[[.103,32.518],[-39.151,-3.945],[4.554,-44.525],[35.19,6.084]],o:[[-.147,-46.533],[35.011,3.528],[-4.141,40.486],[-34.224,-5.917]],v:[[-65.025,2.116],[3.619,-68.125],[56.095,13.373],[-11.431,67.19]],c:!0}]},{t:97,s:[{i:[[.103,32.518],[-38.808,-6.5],[4.554,-44.525],[35.19,6.084]],o:[[-.147,-46.533],[38.808,6.5],[-4.141,40.486],[-34.224,-5.917]],v:[[-65.025,2.116],[8.519,-67.44],[64.425,14.537],[-11.431,67.19]],c:!0}]}]},nm:"Path 1",hd:!1},{ty:"st",c:{a:0,k:[0,0,0,1]},o:{a:0,k:100},w:{a:0,k:9.384},lc:1,lj:1,ml:10,bm:0,nm:"Stroke 1",hd:!1},{ty:"tr",p:{a:0,k:[329.473,213.307]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 1",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[{i:[[6.57,13.383],[52.98,-7.222],[8.343,16.569],[-69.457,4.779]],o:[[0,0],[-51.848,7.068],[0,0],[69.457,-4.779]],v:[[59.804,-46.007],[9.309,34.147],[-65.031,-15.418],[9.119,45.759]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[{i:[[6.57,13.383],[52.98,-7.222],[8.343,16.569],[-69.132,8.241]],o:[[0,0],[-51.848,7.068],[0,0],[59.156,-7.052]],v:[[51.215,-49.013],[9.309,34.147],[-65.031,-15.418],[9.119,45.759]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[{i:[[6.57,13.383],[52.98,-7.222],[8.343,16.569],[-69.132,8.241]],o:[[0,0],[-51.848,7.068],[0,0],[59.156,-7.052]],v:[[51.215,-49.013],[9.309,34.147],[-65.031,-15.418],[9.119,45.759]],c:!0}]},{t:97,s:[{i:[[6.57,13.383],[52.98,-7.222],[8.343,16.569],[-69.457,4.779]],o:[[0,0],[-51.848,7.068],[0,0],[69.457,-4.779]],v:[[59.804,-46.007],[9.309,34.147],[-65.031,-15.418],[9.119,45.759]],c:!0}]}]},nm:"Path 1",hd:!1},{ty:"fl",c:{a:0,k:[.835294127464,.909803926945,.901960790157,1]},o:{a:0,k:100},r:1,bm:0,nm:"Fill 1",hd:!1},{ty:"tr",p:{a:0,k:[330.282,233.973]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 2",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[{i:[[.103,32.518],[-38.808,-6.5],[4.554,-44.525],[35.19,6.084]],o:[[-.147,-46.533],[38.808,6.5],[-4.141,40.486],[-34.224,-5.917]],v:[[-65.025,2.116],[8.519,-67.44],[64.425,14.537],[-11.431,67.19]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[{i:[[.103,32.518],[-38.808,-6.5],[4.554,-44.525],[35.19,6.084]],o:[[-.147,-46.533],[38.808,6.5],[-4.141,40.486],[-34.224,-5.917]],v:[[-65.025,2.116],[8.519,-67.44],[58.3,13.681],[-11.431,67.19]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[{i:[[.103,32.518],[-38.808,-6.5],[4.554,-44.525],[35.19,6.084]],o:[[-.147,-46.533],[38.808,6.5],[-4.141,40.486],[-34.224,-5.917]],v:[[-65.025,2.116],[8.519,-67.44],[58.3,13.681],[-11.431,67.19]],c:!0}]},{t:97,s:[{i:[[.103,32.518],[-38.808,-6.5],[4.554,-44.525],[35.19,6.084]],o:[[-.147,-46.533],[38.808,6.5],[-4.141,40.486],[-34.224,-5.917]],v:[[-65.025,2.116],[8.519,-67.44],[64.425,14.537],[-11.431,67.19]],c:!0}]}]},nm:"Path 1",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1]},o:{a:0,k:100},r:1,bm:0,nm:"Fill 1",hd:!1},{ty:"tr",p:{a:0,k:[329.473,213.307]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 3",bm:0,hd:!1},{ty:"tr",p:{a:0,k:[329.473,213.307]},a:{a:0,k:[329.473,213.307]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 2",bm:0,hd:!1}],ip:0,op:180,st:0,bm:0},{ddd:0,ind:5,ty:4,nm:"left eye",parent:3,sr:1,ks:{p:{a:0,k:[139.923,205.79,0]},a:{a:0,k:[139.923,205.79,0]}},ao:0,shapes:[{ty:"gr",it:[{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[-7.368,7.654],[0,0],[0,0]],o:[[6.266,-6.509],[0,0],[0,0]],v:[[7.515,8.519],[2.831,-10.757],[-9.45,1.736]],c:!0}},nm:"Path 1",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1]},o:{a:0,k:100},r:1,bm:0,nm:"Fill 1",hd:!1},{ty:"tr",p:{a:0,k:[141.264,182.701]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 1",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[-1.487,5.914],[-8.644,7.654],[-4.198,.605],[11.602,-13.436]],o:[[.512,-2.036],[6.842,-6.059],[4.198,-.605],[-11.602,13.436]],v:[[-16.817,7.938],[.231,-.814],[8.371,-18.71],[11.667,12.664]],c:!0}},nm:"Path 1",hd:!1},{ty:"fl",c:{a:0,k:[.078431375325,.392156869173,.505882382393,1]},o:{a:0,k:100},r:1,bm:0,nm:"Fill 1",hd:!1},{ty:"tr",p:{a:0,k:[162.904,212.63]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 2",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[-.111,-21.662],[16.204,-.317],[.111,21.662],[-16.204,.317]],o:[[.111,21.662],[-16.204,.317],[-.111,-21.662],[16.204,-.317]],v:[[29.341,-.077],[.178,35.25],[-29.341,1.07],[-.183,-35.25]],c:!0}},nm:"Path 1",hd:!1},{ty:"fl",c:{a:0,k:[0,0,0,1]},o:{a:0,k:100},r:1,bm:0,nm:"Fill 1",hd:!1},{ty:"tr",p:{a:0,k:[160.702,206.902]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 3",bm:0,hd:!1},{ty:"tr",p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[160.702,206.902],to:[-2.959,-2.06],ti:[2.959,2.06]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:26,s:[142.949,194.54],to:[-2.959,-2.06],ti:[-1.561,-4.604]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[142.949,194.54],to:[1.561,4.604],ti:[-1.561,-4.604]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[152.313,222.165],to:[1.561,4.604],ti:[-1.398,2.544]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[152.313,222.165],to:[1.398,-2.544],ti:[-1.398,2.544]},{t:97,s:[160.702,206.902]}]},a:{a:0,k:[160.702,206.902]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 1",bm:0,hd:!1},{ty:"gr",it:[{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[{i:[[-7.22,29.994],[-29.951,-14.629],[13.686,-40.024],[23.471,11.101]],o:[[10.332,-42.921],[29.951,14.629],[-12.444,36.394],[-26.608,-12.585]],v:[[-52.916,-7.995],[28.496,-60.408],[48.361,26.068],[-29.032,60.215]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[{i:[[-7.22,29.994],[-29.331,-15.836],[13.686,-40.024],[23.471,11.101]],o:[[10.332,-42.921],[28.734,15.514],[-12.444,36.394],[-26.608,-12.585]],v:[[-57.578,-14.322],[21.145,-61.435],[48.361,26.068],[-29.032,60.215]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[{i:[[-7.22,29.994],[-29.331,-15.836],[13.686,-40.024],[23.471,11.101]],o:[[10.332,-42.921],[28.734,15.514],[-12.444,36.394],[-26.608,-12.585]],v:[[-57.578,-14.322],[21.145,-61.435],[48.361,26.068],[-29.032,60.215]],c:!0}]},{t:97,s:[{i:[[-7.22,29.994],[-29.951,-14.629],[13.686,-40.024],[23.471,11.101]],o:[[10.332,-42.921],[29.951,14.629],[-12.444,36.394],[-26.608,-12.585]],v:[[-52.916,-7.995],[28.496,-60.408],[48.361,26.068],[-29.032,60.215]],c:!0}]}]},nm:"Path 1",hd:!1},{ty:"st",c:{a:0,k:[0,0,0,1]},o:{a:0,k:100},w:{a:0,k:9.384},lc:1,lj:1,ml:10,bm:0,nm:"Stroke 1",hd:!1},{ty:"tr",p:{a:0,k:[139.619,205.79]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 1",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[{i:[[-5.384,14.063],[-54.218,-11.555],[-6.836,17.411],[56.914,5.022]],o:[[0,0],[42.181,8.989],[0,0],[-56.914,-5.022]],v:[[-45.208,-44.689],[-15.787,31.969],[51.006,-19.136],[-8.504,44.426]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[{i:[[-5.384,14.063],[-47.282,-8.638],[-6.836,17.411],[56.914,5.022]],o:[[0,0],[42.426,7.751],[0,0],[-56.914,-5.022]],v:[[-50.745,-36.691],[-15.787,31.969],[51.006,-19.136],[-8.504,44.426]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[{i:[[-5.384,14.063],[-47.282,-8.638],[-6.836,17.411],[56.914,5.022]],o:[[0,0],[42.426,7.751],[0,0],[-56.914,-5.022]],v:[[-50.745,-36.691],[-15.787,31.969],[51.006,-19.136],[-8.504,44.426]],c:!0}]},{t:97,s:[{i:[[-5.384,14.063],[-54.218,-11.555],[-6.836,17.411],[56.914,5.022]],o:[[0,0],[42.181,8.989],[0,0],[-56.914,-5.022]],v:[[-45.208,-44.689],[-15.787,31.969],[51.006,-19.136],[-8.504,44.426]],c:!0}]}]},nm:"Path 1",hd:!1},{ty:"fl",c:{a:0,k:[.835294127464,.909803926945,.901960790157,1]},o:{a:0,k:100},r:1,bm:0,nm:"Fill 1",hd:!1},{ty:"tr",p:{a:0,k:[139.273,222.618]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 2",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[{i:[[-7.22,29.994],[-29.951,-14.629],[13.686,-40.024],[27.116,13.441]],o:[[10.332,-42.921],[29.951,14.629],[-12.444,36.394],[-26.372,-13.071]],v:[[-52.402,-9.711],[28.924,-59.485],[46.846,26.442],[-26.377,58.086]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[{i:[[-7.22,29.994],[-29.951,-14.629],[13.686,-40.024],[27.116,13.441]],o:[[10.332,-42.921],[29.951,14.629],[-12.444,36.394],[-26.372,-13.071]],v:[[-57.064,-16.039],[20.348,-60.684],[46.846,26.442],[-26.377,58.086]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[{i:[[-7.22,29.994],[-29.951,-14.629],[13.686,-40.024],[27.116,13.441]],o:[[10.332,-42.921],[29.951,14.629],[-12.444,36.394],[-26.372,-13.071]],v:[[-57.064,-16.039],[20.348,-60.684],[46.846,26.442],[-26.377,58.086]],c:!0}]},{t:97,s:[{i:[[-7.22,29.994],[-29.951,-14.629],[13.686,-40.024],[27.116,13.441]],o:[[10.332,-42.921],[29.951,14.629],[-12.444,36.394],[-26.372,-13.071]],v:[[-52.402,-9.711],[28.924,-59.485],[46.846,26.442],[-26.377,58.086]],c:!0}]}]},nm:"Path 1",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1]},o:{a:0,k:100},r:1,bm:0,nm:"Fill 1",hd:!1},{ty:"tr",p:{a:0,k:[141.134,205.416]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 3",bm:0,hd:!1},{ty:"tr",p:{a:0,k:[141.134,205.416]},a:{a:0,k:[141.134,205.416]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 2",bm:0,hd:!1}],ip:0,op:180,st:0,bm:0},{ddd:0,ind:6,ty:4,nm:"mouth",parent:3,sr:1,ks:{p:{a:0,k:[225.195,306.709,0]},a:{a:0,k:[225.195,306.709,0]}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[{i:[[0,0],[-38.062,-15.648]],o:[[0,0],[0,0]],v:[[-29.815,.244],[29.815,4.05]],c:!1}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:26,s:[{i:[[0,0],[-53.732,-58.292]],o:[[0,0],[0,0]],v:[[-40.47,-3.939],[38.321,-.249]],c:!1}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[{i:[[0,0],[-53.732,-58.292]],o:[[0,0],[0,0]],v:[[-40.47,-3.939],[38.321,-.249]],c:!1}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[{i:[[0,0],[-25.316,-32.455]],o:[[0,0],[0,0]],v:[[-25.614,-5.08],[13.827,-1.765]],c:!1}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[{i:[[0,0],[-25.316,-32.455]],o:[[0,0],[0,0]],v:[[-25.614,-5.08],[13.827,-1.765]],c:!1}]},{t:97,s:[{i:[[0,0],[-38.062,-15.648]],o:[[0,0],[0,0]],v:[[-29.815,.244],[29.815,4.05]],c:!1}]}]},nm:"Path 1",hd:!1},{ty:"st",c:{a:0,k:[0,0,0,1]},o:{a:0,k:100},w:{a:0,k:8.005},lc:2,lj:2,bm:0,nm:"Stroke 1",hd:!1},{ty:"tr",p:{a:0,k:[225.195,327.506]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 1",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[{i:[[0,0],[0,0]],o:[[3.806,-16.176],[0,0]],v:[[-.884,19.691],[-.602,-19.691]],c:!1}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:26,s:[{i:[[0,0],[0,0]],o:[[-1.118,-11.023],[0,0]],v:[[-3.4,-1.582],[-.602,-19.691]],c:!1}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[{i:[[0,0],[0,0]],o:[[-1.118,-11.023],[0,0]],v:[[-3.4,-1.582],[-.602,-19.691]],c:!1}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[{i:[[0,0],[0,0]],o:[[-.817,-16.593],[0,0]],v:[[-2.059,7.713],[-.602,-19.691]],c:!1}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[{i:[[0,0],[0,0]],o:[[-.817,-16.593],[0,0]],v:[[-2.059,7.713],[-.602,-19.691]],c:!1}]},{t:97,s:[{i:[[0,0],[0,0]],o:[[3.806,-16.176],[0,0]],v:[[-.884,19.691],[-.602,-19.691]],c:!1}]}]},nm:"Path 1",hd:!1},{ty:"st",c:{a:0,k:[0,0,0,1]},o:{a:0,k:100},w:{a:0,k:8.005},lc:2,lj:2,bm:0,nm:"Stroke 1",hd:!1},{ty:"tr",p:{a:0,k:[221.412,301.552]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 2",bm:0,hd:!1}],ip:0,op:180,st:0,bm:0},{ddd:0,ind:7,ty:4,nm:"head",sr:1,ks:{r:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:0,s:[0]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:26,s:[6.269]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:35,s:[6.269]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:62,s:[-7.697]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:71,s:[-7.697]},{t:97,s:[0]}]},p:{a:1,k:[{i:{x:.667,y:1},o:{x:.333,y:0},t:0,s:[225.26,340.477,0],to:[.667,-5.417,0],ti:[-.667,5.417,0]},{i:{x:.667,y:.667},o:{x:.333,y:.333},t:26,s:[229.26,307.977,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:35,s:[229.26,307.977,0],to:[2.583,5.5,0],ti:[-2.583,-5.5,0]},{i:{x:.667,y:.667},o:{x:.333,y:.333},t:62,s:[244.76,340.977,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:71,s:[244.76,340.977,0],to:[-3.25,-.083,0],ti:[3.25,.083,0]},{t:97,s:[225.26,340.477,0]}]},a:{a:0,k:[229.76,331.977,0]},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:0,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:14,s:[104,92,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:30,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:49,s:[104,92,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:67,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:85,s:[104,92,100]},{t:103,s:[100,100,100]}]}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[0,0],[8.947,-48.002],[-112.758,-4.75],[0,0],[8.74,46.892],[106.413,3.999]],o:[[-106.877,3.724],[-8.717,46.768],[0,0],[113.565,-4.505],[-8.933,-47.925],[0,0]],v:[[-8.116,-124.044],[-139.462,19.346],[-18.139,124.008],[17.24,124.044],[139.462,19.346],[8.63,-124.026]],c:!0}},nm:"Path 1",hd:!1},{ty:"gf",o:{a:0,k:100},r:1,bm:0,g:{p:3,k:{a:0,k:[.001,.753,.624,.682,.52,.867,.757,.814,1,.98,.89,.945]}},s:{a:0,k:[-15.595,135.424]},e:{a:0,k:[-4.049,-214.518]},t:1,nm:"Gradient Fill 2",hd:!1},{ty:"tr",p:{a:0,k:[247.905,242.076]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 1",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[{i:[[122.739,20.892],[-14.802,19.454],[17.762,-26.643],[-3.806,18.608],[.098,-16.019],[43.089,-67.898],[-77.038,-31.338],[-24.809,71.815]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[-43.089,67.898],[77.038,31.338],[24.809,-71.815]],v:[[43.522,-128.308],[42.928,-155.433],[-.631,-134.711],[-5.283,-156.279],[-25.681,-132.225],[-135.363,-72.162],[-110.554,136.755],[158.427,94.972]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:26,s:[{i:[[122.739,20.892],[-17.867,5.351],[26.877,-22.948],[-8.588,12.401],[6.6,-20.815],[43.089,-67.898],[-77.038,-31.338],[-24.809,71.815]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[-43.089,67.898],[77.038,31.338],[24.809,-71.815]],v:[[43.522,-128.308],[54.013,-144.883],[-.631,-134.711],[7.37,-154.375],[-25.681,-132.225],[-135.363,-72.162],[-110.554,136.755],[158.427,94.972]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[{i:[[122.739,20.892],[-14.802,19.454],[17.762,-26.643],[-3.806,18.608],[.098,-16.019],[43.089,-67.898],[-77.038,-31.338],[-24.809,71.815]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[-43.089,67.898],[77.038,31.338],[24.809,-71.815]],v:[[43.522,-128.308],[42.928,-155.433],[-.631,-134.711],[-5.283,-156.279],[-25.681,-132.225],[-135.363,-72.162],[-110.554,136.755],[158.427,94.972]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[{i:[[122.739,20.892],[-17.867,5.351],[26.877,-22.948],[-8.588,12.401],[6.6,-20.815],[43.089,-67.898],[-77.038,-31.338],[-24.809,71.815]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[-43.089,67.898],[77.038,31.338],[24.809,-71.815]],v:[[43.522,-128.308],[54.013,-144.883],[-.631,-134.711],[7.37,-154.375],[-25.681,-132.225],[-135.363,-72.162],[-110.554,136.755],[158.427,94.972]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[{i:[[122.739,20.892],[-14.802,19.454],[17.762,-26.643],[-3.806,18.608],[.098,-16.019],[43.089,-67.898],[-77.038,-31.338],[-24.809,71.815]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[-43.089,67.898],[77.038,31.338],[24.809,-71.815]],v:[[43.522,-128.308],[42.928,-155.433],[-.631,-134.711],[-5.283,-156.279],[-25.681,-132.225],[-135.363,-72.162],[-110.554,136.755],[158.427,94.972]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:97,s:[{i:[[122.739,20.892],[-17.867,5.351],[26.877,-22.948],[-8.588,12.401],[6.6,-20.815],[43.089,-67.898],[-77.038,-31.338],[-24.809,71.815]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[-43.089,67.898],[77.038,31.338],[24.809,-71.815]],v:[[43.522,-128.308],[54.013,-144.883],[-.631,-134.711],[7.37,-154.375],[-25.681,-132.225],[-135.363,-72.162],[-110.554,136.755],[158.427,94.972]],c:!0}]},{t:114,s:[{i:[[122.739,20.892],[-14.802,19.454],[17.762,-26.643],[-3.806,18.608],[.098,-16.019],[43.089,-67.898],[-77.038,-31.338],[-24.809,71.815]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[-43.089,67.898],[77.038,31.338],[24.809,-71.815]],v:[[43.522,-128.308],[42.928,-155.433],[-.631,-134.711],[-5.283,-156.279],[-25.681,-132.225],[-135.363,-72.162],[-110.554,136.755],[158.427,94.972]],c:!0}]}]},nm:"Path 1",hd:!1},{ty:"st",c:{a:0,k:[.329411774874,.270588248968,.376470595598,1]},o:{a:0,k:100},w:{a:0,k:8.005},lc:2,lj:2,bm:0,nm:"Stroke 1",hd:!1},{ty:"gf",o:{a:0,k:100},r:1,bm:0,g:{p:3,k:{a:0,k:[0,.627,.49,.596,.519,.757,.606,.69,1,.886,.722,.784]}},s:{a:0,k:[-11.24,158.023]},e:{a:0,k:[1.988,-162.777]},t:1,nm:"Gradient Fill 3",hd:!1},{ty:"tr",p:{a:0,k:[246.76,231.977]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 2",bm:0,hd:!1}],ip:0,op:180,st:0,bm:0},{ddd:0,ind:8,ty:3,nm:"Null 1",parent:7,sr:1,ks:{o:{a:0,k:0},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[239,184,0],to:[.285,5.785,0],ti:[-.285,-5.785,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:26,s:[240.708,218.709,0],to:[.285,5.785,0],ti:[.463,9.181,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[240.708,218.709,0],to:[-.463,-9.181,0],ti:[.463,9.181,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[237.927,163.623,0],to:[-.463,-9.181,0],ti:[-.179,-3.396,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[237.927,163.623,0],to:[.179,3.396,0],ti:[-.179,-3.396,0]},{t:97,s:[239,184,0]}]}},ao:0,ip:0,op:180,st:0,bm:0},{ddd:0,ind:9,ty:4,nm:"ears 1",parent:8,sr:1,ks:{r:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:0,s:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:26,s:[-7.888]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:35,s:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:62,s:[-7.888]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:71,s:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:97,s:[-7.888]},{t:113,s:[0]}]},p:{a:0,k:[-118,-15.5,0]},a:{a:0,k:[-135,-87.5,0]}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[2.224,16.677],[18.901,-51.144],[-32.352,24.106],[-6.671,23.348]],o:[[-2.629,-19.714],[-18.901,51.144],[8.916,-6.643],[6.671,-23.348]],v:[[41.499,-43.309],[-37.44,-24.408],[21.548,54.39],[29.16,-.8]],c:!0}},nm:"Path 1",hd:!1},{ty:"gf",o:{a:0,k:100},r:1,bm:0,g:{p:3,k:{a:0,k:[0,.898,.608,.792,.499,.949,.714,.814,1,1,.82,.835]}},s:{a:0,k:[25.509,5.067]},e:{a:0,k:[-28.041,-8.9]},t:2,h:{a:0,k:0},a:{a:0,k:0},nm:"Gradient Fill 4",hd:!1},{ty:"tr",p:{a:0,k:[-164.509,-51.067]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 2",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[0,0],[35.524,11.826],[0,0],[0,0],[0,0],[0,0],[-37.427,.591],[0,0]],o:[[0,0],[-65.005,-21.64],[0,0],[2.96,-45.674],[0,0],[0,0],[46.023,-.727],[0,0]],v:[[45.938,61.363],[-21.938,88.006],[-58.308,-10.484],[-67.189,-6.937],[-28.599,-66.007],[-38.749,-69.555],[5.022,-90.25],[67.189,-63.051]],c:!0}},nm:"Path 1",hd:!1},{ty:"st",c:{a:0,k:[.329411774874,.270588248968,.376470595598,1]},o:{a:0,k:100},w:{a:0,k:8.005},lc:2,lj:2,bm:0,nm:"Stroke 1",hd:!1},{ty:"gf",o:{a:0,k:100},r:1,bm:0,g:{p:3,k:{a:0,k:[0,.627,.49,.596,.519,.757,.606,.69,1,.886,.722,.784]}},s:{a:0,k:[239.388,87.578]},e:{a:0,k:[235.802,-73.757]},t:1,nm:"Gradient Fill 5",hd:!1},{ty:"tr",p:{a:0,k:[-165.388,-60.578]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 3",bm:0,hd:!1}],ip:0,op:180,st:0,bm:0},{ddd:0,ind:10,ty:4,nm:"ears 2",parent:8,sr:1,ks:{r:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:0,s:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:26,s:[10.974]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:35,s:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:62,s:[10.974]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:71,s:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:97,s:[10.974]},{t:113,s:[0]}]},p:{a:0,k:[138.822,-4.902,0]},a:{a:0,k:[377.822,179.098,0]}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[-.321,16.822],[-24.57,-48.675],[34.873,20.288],[9.271,22.443]],o:[[.38,-19.885],[24.57,48.675],[-9.61,-5.591],[-9.271,-22.443]],v:[[-44.111,-39.074],[36.461,-29.231],[-13.227,55.738],[-27.039,1.765]],c:!0}},nm:"Path 1",hd:!1},{ty:"gf",o:{a:0,k:100},r:1,bm:0,g:{p:3,k:{a:0,k:[0,.898,.608,.792,.499,.949,.714,.814,1,1,.82,.835]}},s:{a:0,k:[-25.11,3.976]},e:{a:0,k:[36.531,-14.167]},t:2,h:{a:0,k:0},a:{a:0,k:0},nm:"Gradient Fill 4",hd:!1},{ty:"tr",p:{a:0,k:[410.228,220.81]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 2",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[0,0],[-45.815,4.435],[0,0],[0,0],[-11.793,-58.672],[0,0],[61.958,-30.426],[0,0]],o:[[0,0],[37.258,-3.607],[0,0],[0,0],[0,0],[0,0],[-33.859,16.627],[0,0]],v:[[-73.696,-61.432],[-15.232,-97.463],[30.771,-80.358],[21.118,-75.428],[73.696,-11.826],[64.441,-14.602],[31.812,91.27],[-28.583,87.936]],c:!1}},nm:"Path 1",hd:!1},{ty:"st",c:{a:0,k:[.329411774874,.270588248968,.376470595598,1]},o:{a:0,k:100},w:{a:0,k:8.005},lc:2,lj:2,bm:0,nm:"Stroke 1",hd:!1},{ty:"gf",o:{a:0,k:100},r:1,bm:0,g:{p:3,k:{a:0,k:[0,.627,.49,.596,.519,.757,.606,.69,1,.886,.722,.784]}},s:{a:0,k:[12.726,108.942]},e:{a:0,k:[14.675,-103.974]},t:1,nm:"Gradient Fill 5",hd:!1},{ty:"tr",p:{a:0,k:[417.526,213.153]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 3",bm:0,hd:!1}],ip:0,op:180,st:0,bm:0}],lottieKoala={tgs,v:v$1,fr:fr$1,ip:ip$1,op:op$1,w:w$1,h:h$1,nm:nm$1,ddd:ddd$1,assets:assets$1,layers:layers$1},apiUrl="https://3.79.107.152.sslip.io",getLetters=i=>{const o=i?i.split(" "):[];return`${o[0]?o[0][0]:""}${o[1]?o[1][0]:""}`};function Avatar({user:i,size:o=40}){const g=[...i!=null&&i.first_name?[i.first_name]:[],...i!=null&&i.last_name?[i.last_name]:[]].join(" "),{isDark:$}=useTheme(),_e=i?["#e17076","#faa774","#a695e7","#7bc862","#6ec9cb","#65aadd","#ee7aae"][Math.abs(Number(i._id))%7||0]:$?"#888888":"#bbbbbb",et=_e+"44",{txId:rt}=useStore(),tt=i==null?void 0:i.profile_photo,nt=tt?`url(${rt?`${apiUrl}${tt}`:tt})`:void 0,st=!tt&&g?getLetters(g):null;return jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-center rounded-full bg-cover bg-center",style:{width:o,height:o,backgroundColor:et,backgroundImage:nt},children:[st&&jsxRuntimeExports.jsx("div",{className:"uppercase font-semibold text-main",style:{fontSize:.35*o+"px",lineHeight:.6*o+"px",color:_e},children:st}),!i&&jsxRuntimeExports.jsx(Lottie,{style:{height:.8*o},animationData:lottieKoala,loop:!0})]})}function User({user:i,size:o=40}){const{t:g}=useTranslation();return jsxRuntimeExports.jsxs("div",{className:"w-full flex gap-2 items-center truncate",children:[jsxRuntimeExports.jsx(Avatar,{user:i,size:o}),jsxRuntimeExports.jsx("div",{className:"flex flex-col -gap-0.5 flex-1 text-left truncate text-[16px] leading-[20px]",children:i?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"truncate",children:[i.first_name," ",i.last_name]}),i.username&&jsxRuntimeExports.jsxs("div",{className:"text-[14px] leading-[18px] text-hint truncate",children:["@",i.username]})]}):jsxRuntimeExports.jsxs("div",{className:"text-hint truncate",children:["(",g("select"),")"]})})]})}const formatAmount=i=>i.toFixed(visible_decimals),unformatAmount=i=>parseFloat(i)||0,filter=(i,o)=>{const g=visible_decimals,$=10,j=/[^0-9.]/,_e=o.replace(/,/g,".").replace(j,"");if(!/^\d*.?\d*$/.test(_e)||_e.length>$)return i;const[rt,tt]=i.split("."),[nt,st]=_e.split(".");return rt==="0"&&nt==="00"||tt==="0".repeat(g-1)&&st==="0".repeat(g)||st&&st.length>g?i:i===""&&_e==="."?"0.":i==="0."&&_e==="0"?"":i!=="0."&&_e==="0"?"0.":_e};function InputAmount({amount:i,onChange:o}){const[g,$]=reactExports.useState(formatAmount(i));reactExports.useEffect(()=>{const et=unformatAmount(g);i!==et&&$(formatAmount(i))},[i,g]);const j=et=>{const rt=et.target.value,tt=filter(g,rt);$(tt);const nt=unformatAmount(tt);o(nt)},_e=()=>{$(formatAmount(i))};return jsxRuntimeExports.jsx("input",{type:"text",className:"w-[117px] h-10 p-2 rounded-md border border-[#DDE2E4] dark:border-[#6E7C87] dark:bg-[#D5DADD] text-right text-[16px] text-text dark:text-[#48535B] leading-[24px] focus:ring-2 focus:ring-button focus:outline-none appearance-none transition-all selection:bg-button selection:text-buttonText",inputMode:"decimal",placeholder:"0",value:g,onFocus:et=>{et.target.select()},onBlur:_e,onChange:j})}function UserAmount({related_user_id:i,amount:o,onChange:g}){const{getUserById:$}=useUsers(),j=i?$(i):void 0;return j?jsxRuntimeExports.jsxs("div",{className:"flex gap-3",children:[jsxRuntimeExports.jsx(User,{user:j,size:48}),jsxRuntimeExports.jsx(InputAmount,{amount:o,onChange:g})]}):null}function Panel({children:i,className:o}){return jsxRuntimeExports.jsx("div",{className:cx("panel p-4 pb-6 rounded-3xl bg-bg",o),children:i})}const OPEN_DEBUG_RIGHT_CLICKS=3;function Debug(){var et;const{transaction:i,users:o,txId:g}=useStore(),[$,j]=reactExports.useState(0),_e=reactExports.useCallback(()=>{j($+1)},[$,j]);return reactExports.useEffect(()=>(window.addEventListener("contextmenu",_e),()=>{window.removeEventListener("contextmenu",_e)}),[_e]),jsxRuntimeExports.jsx("div",{className:cx($"u"){var loc={hostname:""};window$1={navigator:{userAgent:""},document:{location:loc,referrer:""},screen:{width:0,height:0},location:loc}}else window$1=window;var ArrayProto=Array.prototype,FuncProto=Function.prototype,ObjProto=Object.prototype,slice=ArrayProto.slice,toString=ObjProto.toString,hasOwnProperty=ObjProto.hasOwnProperty,windowConsole=window$1.console,navigator$1=window$1.navigator,document$1=window$1.document,windowOpera=window$1.opera,screen=window$1.screen,userAgent=navigator$1.userAgent,nativeBind=FuncProto.bind,nativeForEach=ArrayProto.forEach,nativeIndexOf=ArrayProto.indexOf,nativeMap=ArrayProto.map,nativeIsArray=Array.isArray,breaker={},_={trim:function(i){return i.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},console$1={log:function(){if(Config.DEBUG&&!_.isUndefined(windowConsole)&&windowConsole)try{windowConsole.log.apply(windowConsole,arguments)}catch{_.each(arguments,function(o){windowConsole.log(o)})}},warn:function(){if(Config.DEBUG&&!_.isUndefined(windowConsole)&&windowConsole){var i=["Mixpanel warning:"].concat(_.toArray(arguments));try{windowConsole.warn.apply(windowConsole,i)}catch{_.each(i,function(g){windowConsole.warn(g)})}}},error:function(){if(Config.DEBUG&&!_.isUndefined(windowConsole)&&windowConsole){var i=["Mixpanel error:"].concat(_.toArray(arguments));try{windowConsole.error.apply(windowConsole,i)}catch{_.each(i,function(g){windowConsole.error(g)})}}},critical:function(){if(!_.isUndefined(windowConsole)&&windowConsole){var i=["Mixpanel error:"].concat(_.toArray(arguments));try{windowConsole.error.apply(windowConsole,i)}catch{_.each(i,function(g){windowConsole.error(g)})}}}},log_func_with_prefix=function(i,o){return function(){return arguments[0]="["+o+"] "+arguments[0],i.apply(console$1,arguments)}},console_with_prefix=function(i){return{log:log_func_with_prefix(console$1.log,i),error:log_func_with_prefix(console$1.error,i),critical:log_func_with_prefix(console$1.critical,i)}};_.bind=function(i,o){var g,$;if(nativeBind&&i.bind===nativeBind)return nativeBind.apply(i,slice.call(arguments,1));if(!_.isFunction(i))throw new TypeError;return g=slice.call(arguments,2),$=function(){if(!(this instanceof $))return i.apply(o,g.concat(slice.call(arguments)));var j={};j.prototype=i.prototype;var _e=new j;j.prototype=null;var et=i.apply(_e,g.concat(slice.call(arguments)));return Object(et)===et?et:_e},$};_.each=function(i,o,g){if(i!=null){if(nativeForEach&&i.forEach===nativeForEach)i.forEach(o,g);else if(i.length===+i.length){for(var $=0,j=i.length;$0&&(o[$]=g)}),o};_.truncate=function(i,o){var g;return typeof i=="string"?g=i.slice(0,o):_.isArray(i)?(g=[],_.each(i,function($){g.push(_.truncate($,o))})):_.isObject(i)?(g={},_.each(i,function($,j){g[j]=_.truncate($,o)})):g=i,g};_.JSONEncode=function(){return function(i){var o=i,g=function(j){var _e=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,et={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return _e.lastIndex=0,_e.test(j)?'"'+j.replace(_e,function(rt){var tt=et[rt];return typeof tt=="string"?tt:"\\u"+("0000"+rt.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+j+'"'},$=function(j,_e){var et="",rt=" ",tt=0,nt="",st="",ft=0,it=et,pt=[],ut=_e[j];switch(ut&&typeof ut=="object"&&typeof ut.toJSON=="function"&&(ut=ut.toJSON(j)),typeof ut){case"string":return g(ut);case"number":return isFinite(ut)?String(ut):"null";case"boolean":case"null":return String(ut);case"object":if(!ut)return"null";if(et+=rt,pt=[],toString.apply(ut)==="[object Array]"){for(ft=ut.length,tt=0;tt=xt.x[0]&&mt<=xt.x[1]&&at>=xt.y[0]&&at<=xt.y[1]:xt&&!Number.isNaN(xt.x)&&!Number.isNaN(xt.y)?mt===xt.x&&at===xt.y:!1});if(ot){if(ot.type==="seek"&&ot.position&&Array.isArray(ot.position.x)&&Array.isArray(ot.position.y)&&ot.frames.length===2){var ct=(mt-ot.position.x[0])/(ot.position.x[1]-ot.position.x[0]),gt=(at-ot.position.y[0])/(ot.position.y[1]-ot.position.y[0]);$.playSegments(ot.frames,!0),$.goToAndStop(Math.ceil((ct+gt)/2*(ot.frames[1]-ot.frames[0])),!0)}ot.type==="loop"&&$.playSegments(ot.frames,!0),ot.type==="play"&&($.isPaused&&$.resetSegments(!1),$.playSegments(ot.frames)),ot.type==="stop"&&$.goToAndStop(ot.frames[0],!0)}},ft=function(ut){st(ut.clientX,ut.clientY)},it=function(){st(-1,-1)};return et.addEventListener("mousemove",ft),et.addEventListener("mouseout",it),function(){et.removeEventListener("mousemove",ft),et.removeEventListener("mouseout",it)}};switch(j){case"scroll":return rt();case"cursor":return tt()}}},[j,$])},useLottieInteractivity=function i(o){var g=o.actions,$=o.mode,j=o.lottieObj,_e=j.animationItem,et=j.View,rt=j.animationContainerRef;return useInitInteractivity({actions:g,animationItem:_e,mode:$,wrapperRef:rt}),et},_excluded=["style","interactivity"],Lottie=function i(o){var g,$,j,_e=o.style,et=o.interactivity,rt=_objectWithoutProperties(o,_excluded),tt=useLottie(rt,_e),nt=tt.View,st=tt.play,ft=tt.stop,it=tt.pause,pt=tt.setSpeed,ut=tt.goToAndStop,ht=tt.goToAndPlay,mt=tt.setDirection,at=tt.playSegments,lt=tt.setSubframe,ot=tt.getDuration,ct=tt.destroy,gt=tt.animationContainerRef,yt=tt.animationLoaded,xt=tt.animationItem;return reactExports.useEffect(function(){o.lottieRef&&(o.lottieRef.current={play:st,stop:ft,pause:it,setSpeed:pt,goToAndPlay:ht,goToAndStop:ut,setDirection:mt,playSegments:at,setSubframe:lt,getDuration:ot,destroy:ct,animationContainerRef:gt,animationLoaded:yt,animationItem:xt})},[(g=o.lottieRef)===null||g===void 0?void 0:g.current]),useLottieInteractivity({lottieObj:{View:nt,play:st,stop:ft,pause:it,setSpeed:pt,goToAndStop:ut,goToAndPlay:ht,setDirection:mt,playSegments:at,setSubframe:lt,getDuration:ot,destroy:ct,animationContainerRef:gt,animationLoaded:yt,animationItem:xt},actions:($=et==null?void 0:et.actions)!==null&&$!==void 0?$:[],mode:(j=et==null?void 0:et.mode)!==null&&j!==void 0?j:"scroll"})};const tgs=1,v$1="5.5.2",fr$1=60,ip$1=0,op$1=114,w$1=512,h$1=512,nm$1="Comp 1",ddd$1=0,assets$1=[],layers$1=[{ddd:0,ind:1,ty:4,nm:"hand",parent:7,sr:1,ks:{r:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:35,s:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:62,s:[11.563]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:71,s:[11.563]},{t:97,s:[0]}]},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[320.151,436.828,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:26,s:[311.778,404.225,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[311.778,404.225,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[282.389,483.088,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[283.252,476.53,0],to:[0,0,0],ti:[0,0,0]},{t:97,s:[320.151,436.828,0]}]},a:{a:0,k:[341.151,436.828,0]}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:26,s:[{i:[[0,0],[-20.624,-6.94],[-12.048,30.801],[1.585,12.68],[32.12,6.302],[3.1,-16.822],[6.873,1.635],[2.904,-30.857],[-30.642,-5.811]],o:[[0,0],[31.564,10.621],[11.751,-30.042],[-1.585,-12.68],[-26.065,-5.114],[-2.328,12.634],[-26.809,-6.378],[-3,31.875],[0,0]],v:[[-29.623,47.125],[-12.981,69.842],[74.719,47.125],[68.907,-24.197],[61.775,-74.915],[24.717,-34.619],[9.217,-25.212],[-78.792,-9.933],[-21.7,16.71]],c:!1}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[{i:[[0,0],[-20.624,-6.94],[-12.048,30.801],[1.585,12.68],[27.401,5.559],[-6.809,-18.123],[6.873,1.635],[8.938,-20.152],[-30.642,-5.811]],o:[[0,0],[31.564,10.621],[11.751,-30.042],[-1.585,-12.68],[-26.028,-5.297],[3.771,11.468],[-26.809,-6.378],[-14.412,27.228],[0,0]],v:[[-29.623,47.125],[-12.981,69.842],[74.719,47.125],[68.907,-24.197],[44.106,-74.641],[22.481,-35.216],[9.218,-25.212],[-64.729,-29.59],[-21.7,16.71]],c:!1}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:43,s:[{i:[[0,0],[-20.624,-6.94],[-12.048,30.801],[1.585,12.68],[32.12,6.302],[3.1,-16.822],[6.873,1.635],[2.904,-30.857],[-30.642,-5.811]],o:[[0,0],[31.564,10.621],[11.751,-30.042],[-1.585,-12.68],[-26.065,-5.114],[-2.328,12.634],[-26.809,-6.378],[-3,31.875],[0,0]],v:[[-29.623,47.125],[-12.981,69.842],[74.719,47.125],[68.907,-24.197],[61.775,-74.915],[24.717,-34.619],[9.217,-25.212],[-78.792,-9.933],[-21.7,16.71]],c:!1}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[{i:[[0,0],[-20.624,-6.94],[-12.048,30.801],[1.585,12.68],[32.12,6.302],[3.1,-16.822],[6.873,1.635],[2.904,-30.857],[-30.642,-5.811]],o:[[0,0],[31.564,10.621],[11.751,-30.042],[-1.585,-12.68],[-26.065,-5.114],[-2.328,12.634],[-26.809,-6.378],[-3,31.875],[0,0]],v:[[-29.623,47.125],[-12.981,69.842],[74.719,47.125],[68.907,-24.197],[61.775,-74.915],[24.717,-34.619],[9.217,-25.212],[-78.792,-9.933],[-21.7,16.71]],c:!1}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[{i:[[0,0],[-20.624,-6.94],[-12.048,30.801],[1.585,12.68],[27.401,5.559],[-6.809,-18.123],[6.873,1.635],[8.938,-20.152],[-30.642,-5.811]],o:[[0,0],[31.564,10.621],[11.751,-30.042],[-1.585,-12.68],[-26.028,-5.297],[3.771,11.468],[-26.809,-6.378],[-14.412,27.228],[0,0]],v:[[-29.623,47.125],[-12.981,69.842],[74.719,47.125],[68.907,-24.197],[44.106,-74.641],[22.481,-35.216],[9.218,-25.212],[-64.729,-29.59],[-21.7,16.71]],c:!1}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:79,s:[{i:[[0,0],[-20.624,-6.94],[-12.048,30.801],[1.585,12.68],[32.12,6.302],[3.1,-16.822],[6.873,1.635],[2.904,-30.857],[-30.642,-5.811]],o:[[0,0],[31.564,10.621],[11.751,-30.042],[-1.585,-12.68],[-26.065,-5.114],[-2.328,12.634],[-26.809,-6.378],[-3,31.875],[0,0]],v:[[-29.623,47.125],[-12.981,69.842],[74.719,47.125],[68.907,-24.197],[61.775,-74.915],[24.717,-34.619],[9.217,-25.212],[-78.792,-9.933],[-21.7,16.71]],c:!1}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:92,s:[{i:[[0,0],[-20.624,-6.94],[-12.048,30.801],[1.585,12.68],[32.12,6.302],[3.1,-16.822],[6.873,1.635],[2.904,-30.857],[-30.642,-5.811]],o:[[0,0],[31.564,10.621],[11.751,-30.042],[-1.585,-12.68],[-26.065,-5.114],[-2.328,12.634],[-26.809,-6.378],[-3,31.875],[0,0]],v:[[-29.623,47.125],[-12.981,69.842],[74.719,47.125],[68.907,-24.197],[61.775,-74.915],[24.717,-34.619],[9.217,-25.212],[-78.792,-9.933],[-21.7,16.71]],c:!1}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:103,s:[{i:[[0,0],[-20.624,-6.94],[-12.048,30.801],[1.585,12.68],[29.975,5.965],[-1.404,-17.413],[6.873,1.635],[5.647,-25.991],[-30.642,-5.811]],o:[[0,0],[31.564,10.621],[11.751,-30.042],[-1.585,-12.68],[-26.048,-5.197],[.444,12.104],[-26.809,-6.378],[-8.188,29.763],[0,0]],v:[[-29.623,47.125],[-12.981,69.842],[74.719,47.125],[68.907,-24.197],[53.744,-74.791],[23.701,-34.891],[9.218,-25.212],[-72.399,-18.868],[-21.7,16.71]],c:!1}]},{t:114,s:[{i:[[0,0],[-20.624,-6.94],[-12.048,30.801],[1.585,12.68],[32.12,6.302],[3.1,-16.822],[6.873,1.635],[2.904,-30.857],[-30.642,-5.811]],o:[[0,0],[31.564,10.621],[11.751,-30.042],[-1.585,-12.68],[-26.065,-5.114],[-2.328,12.634],[-26.809,-6.378],[-3,31.875],[0,0]],v:[[-29.623,47.125],[-12.981,69.842],[74.719,47.125],[68.907,-24.197],[61.775,-74.915],[24.717,-34.619],[9.217,-25.212],[-78.792,-9.933],[-21.7,16.71]],c:!1}]}]},nm:"Path 1",hd:!1},{ty:"st",c:{a:0,k:[.329411774874,.270588248968,.376470595598,1]},o:{a:0,k:100},w:{a:0,k:8.005},lc:2,lj:2,bm:0,nm:"Stroke 1",hd:!1},{ty:"tr",p:{a:0,k:[286.436,382.828]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 1",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[0,0],[5.283,15.321],[-2.514,3.493]],o:[[0,0],[-2.924,-8.48],[0,0]],v:[[14.071,15.685],[-12.557,1.862],[-11.184,-15.725]],c:!1}},nm:"Path 1",hd:!1},{ty:"st",c:{a:0,k:[.329411774874,.270588248968,.376470595598,1]},o:{a:0,k:100},w:{a:0,k:8.005},lc:2,lj:2,bm:0,nm:"Stroke 1",hd:!1},{ty:"tr",p:{a:0,k:[255.106,413.563]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 2",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:26,s:[{i:[[-2.96,-15.225],[-20.3,2.96],[-15.601,-1.276],[-2.537,12.687],[-30.449,-14.802],[13.956,-.423],[3.91,-13.692],[10.573,-1.269],[30.872,-3.806]],o:[[0,0],[20.3,-2.96],[11.63,.952],[2.048,-10.242],[0,0],[-13.956,.423],[-3.91,13.692],[-10.573,1.269],[-30.872,3.806]],v:[[-74.237,38.913],[-48.969,13.856],[18.379,21.151],[35.718,3.389],[75.472,-28.329],[56.018,-38.901],[30.221,-11.835],[16.688,9.733],[-46.325,6.772]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[{i:[[-4.746,-4.343],[-20.481,-1.17],[-15.601,-1.276],[4.055,12.286],[-30.4,-22.59],[13.956,-.423],[-1.872,-13.808],[10.573,-1.269],[27.476,3.509]],o:[[0,0],[24.676,1.41],[11.63,.952],[-7.786,-23.591],[0,0],[-13.956,.423],[1.913,14.11],[-10.573,1.269],[-30.855,-3.94]],v:[[-64.662,28.322],[-44.153,7.658],[18.379,21.151],[32.549,4.006],[63.857,-25.213],[39.407,-38.302],[21.83,-8.829],[16.688,9.733],[-40.331,-2.385]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:43,s:[{i:[[-2.96,-15.225],[-20.3,2.96],[-15.601,-1.276],[-2.537,12.687],[-30.449,-14.802],[13.956,-.423],[3.91,-13.692],[10.573,-1.269],[30.872,-3.806]],o:[[0,0],[20.3,-2.96],[11.63,.952],[2.048,-10.242],[0,0],[-13.956,.423],[-3.91,13.692],[-10.573,1.269],[-30.872,3.806]],v:[[-74.237,38.913],[-48.969,13.856],[18.379,21.151],[35.718,3.389],[75.472,-28.329],[56.018,-38.901],[30.221,-11.835],[16.688,9.733],[-46.325,6.772]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[{i:[[-2.96,-15.225],[-20.3,2.96],[-15.601,-1.276],[-2.537,12.687],[-30.449,-14.802],[13.956,-.423],[3.91,-13.692],[10.573,-1.269],[30.872,-3.806]],o:[[0,0],[20.3,-2.96],[11.63,.952],[2.048,-10.242],[0,0],[-13.956,.423],[-3.91,13.692],[-10.573,1.269],[-30.872,3.806]],v:[[-74.237,38.913],[-48.969,13.856],[18.379,21.151],[35.718,3.389],[75.472,-28.329],[56.018,-38.901],[30.221,-11.835],[16.688,9.733],[-46.325,6.772]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[{i:[[-4.746,-4.343],[-20.481,-1.17],[-15.601,-1.276],[4.055,12.286],[-30.4,-22.59],[13.956,-.423],[-1.872,-13.808],[10.573,-1.269],[27.476,3.509]],o:[[0,0],[24.676,1.41],[11.63,.952],[-7.786,-23.591],[0,0],[-13.956,.423],[1.913,14.11],[-10.573,1.269],[-30.855,-3.94]],v:[[-64.662,28.322],[-44.153,7.658],[18.379,21.151],[32.549,4.006],[63.857,-25.213],[39.407,-38.302],[21.83,-8.829],[16.688,9.733],[-40.331,-2.385]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:79,s:[{i:[[-2.96,-15.225],[-20.3,2.96],[-15.601,-1.276],[-2.537,12.687],[-30.449,-14.802],[13.956,-.423],[3.91,-13.692],[10.573,-1.269],[30.872,-3.806]],o:[[0,0],[20.3,-2.96],[11.63,.952],[2.048,-10.242],[0,0],[-13.956,.423],[-3.91,13.692],[-10.573,1.269],[-30.872,3.806]],v:[[-74.237,38.913],[-48.969,13.856],[18.379,21.151],[35.718,3.389],[75.472,-28.329],[56.018,-38.901],[30.221,-11.835],[16.688,9.733],[-46.325,6.772]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:92,s:[{i:[[-2.96,-15.225],[-20.3,2.96],[-15.601,-1.276],[-2.537,12.687],[-30.449,-14.802],[13.956,-.423],[3.91,-13.692],[10.573,-1.269],[30.872,-3.806]],o:[[0,0],[20.3,-2.96],[11.63,.952],[2.048,-10.242],[0,0],[-13.956,.423],[-3.91,13.692],[-10.573,1.269],[-30.872,3.806]],v:[[-74.237,38.913],[-48.969,13.856],[18.379,21.151],[35.718,3.389],[75.472,-28.329],[56.018,-38.901],[30.221,-11.835],[16.688,9.733],[-46.325,6.772]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:103,s:[{i:[[-3.772,-10.278],[-20.382,1.083],[-15.601,-1.276],[.459,12.505],[-30.427,-18.342],[13.956,-.423],[1.281,-13.745],[10.573,-1.269],[29.328,-.481]],o:[[0,0],[22.289,-.974],[11.63,.952],[-2.422,-16.31],[0,0],[-13.956,.423],[-1.263,13.882],[-10.573,1.269],[-30.865,.285]],v:[[-69.885,34.099],[-46.78,11.039],[18.379,21.151],[34.278,3.669],[70.192,-26.913],[48.467,-38.629],[26.407,-10.469],[16.688,9.733],[-43.601,2.61]],c:!0}]},{t:114,s:[{i:[[-2.96,-15.225],[-20.3,2.96],[-15.601,-1.276],[-2.537,12.687],[-30.449,-14.802],[13.956,-.423],[3.91,-13.692],[10.573,-1.269],[30.872,-3.806]],o:[[0,0],[20.3,-2.96],[11.63,.952],[2.048,-10.242],[0,0],[-13.956,.423],[-3.91,13.692],[-10.573,1.269],[-30.872,3.806]],v:[[-74.237,38.913],[-48.969,13.856],[18.379,21.151],[35.718,3.389],[75.472,-28.329],[56.018,-38.901],[30.221,-11.835],[16.688,9.733],[-46.325,6.772]],c:!0}]}]},nm:"Path 1",hd:!1},{ty:"fl",c:{a:0,k:[.92549020052,.823529422283,.878431379795,1]},o:{a:0,k:100},r:1,bm:0,nm:"Fill 1",hd:!1},{ty:"tr",p:{a:0,k:[284.842,346.352]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 3",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[7.93,11.418],[-25.374,23.471],[0,0],[23.471,-25.057]],o:[[0,0],[25.374,-23.471],[0,0],[-23.471,25.057]],v:[[-48.642,26.736],[23.675,14.683],[43.975,-38.603],[35.411,22.93]],c:!0}},nm:"Path 1",hd:!1},{ty:"fl",c:{a:0,k:[.57647061348,.435294121504,.549019634724,1]},o:{a:0,k:100},r:1,bm:0,nm:"Fill 1",hd:!1},{ty:"tr",p:{a:0,k:[315.916,419.745]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 4",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:26,s:[{i:[[0,0],[-.211,-13.533],[0,0],[0,0],[-21.026,-5.607],[-15.057,28.529],[1.585,12.68],[32.491,3.962],[4.239,-16.572],[6.873,1.635],[8.211,-29.886],[-11.841,-2.537]],o:[[0,0],[.211,13.533],[0,0],[0,0],[27.736,7.396],[15.057,-28.529],[-1.585,-12.68],[-22.479,-2.741],[-1.751,6.844],[-26.809,-6.378],[-6.604,24.038],[0,0]],v:[[-44.003,16.834],[-46.224,29.627],[-31.21,45.063],[-30.887,47.883],[-14.245,70.6],[73.455,47.883],[67.643,-23.44],[60.511,-74.158],[23.453,-33.862],[7.953,-24.454],[-78.153,-11.713],[-45.589,14.93]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[{i:[[0,0],[-.211,-13.533],[0,0],[0,0],[-21.026,-5.607],[-15.057,28.529],[1.585,12.68],[32.491,3.962],[-6.96,-15.625],[6.873,1.635],[8.211,-29.886],[-11.51,-8.094]],o:[[0,0],[.211,13.533],[0,0],[0,0],[27.736,7.396],[15.057,-28.529],[-1.585,-12.68],[-22.479,-2.741],[3.906,8.769],[-26.809,-6.378],[-6.604,24.038],[0,0]],v:[[-44.003,16.834],[-46.224,29.627],[-31.21,45.063],[-30.887,47.883],[-14.245,70.6],[73.455,47.883],[67.643,-23.44],[42.016,-74.886],[20.721,-33.809],[7.953,-24.454],[-67.046,-24.276],[-45.589,14.93]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:43,s:[{i:[[0,0],[-.211,-13.533],[0,0],[0,0],[-21.026,-5.607],[-15.057,28.529],[1.585,12.68],[32.491,3.962],[4.239,-16.572],[6.873,1.635],[8.211,-29.886],[-11.841,-2.537]],o:[[0,0],[.211,13.533],[0,0],[0,0],[27.736,7.396],[15.057,-28.529],[-1.585,-12.68],[-22.479,-2.741],[-1.751,6.844],[-26.809,-6.378],[-6.604,24.038],[0,0]],v:[[-44.003,16.834],[-46.224,29.627],[-31.21,45.063],[-30.887,47.883],[-14.245,70.6],[73.455,47.883],[67.643,-23.44],[60.511,-74.158],[23.453,-33.862],[7.953,-24.454],[-78.153,-11.713],[-45.589,14.93]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[{i:[[0,0],[-.211,-13.533],[0,0],[0,0],[-21.026,-5.607],[-15.057,28.529],[1.585,12.68],[32.491,3.962],[4.239,-16.572],[6.873,1.635],[8.211,-29.886],[-11.841,-2.537]],o:[[0,0],[.211,13.533],[0,0],[0,0],[27.736,7.396],[15.057,-28.529],[-1.585,-12.68],[-22.479,-2.741],[-1.751,6.844],[-26.809,-6.378],[-6.604,24.038],[0,0]],v:[[-44.003,16.834],[-46.224,29.627],[-31.21,45.063],[-30.887,47.883],[-14.245,70.6],[73.455,47.883],[67.643,-23.44],[60.511,-74.158],[23.453,-33.862],[7.953,-24.454],[-78.153,-11.713],[-45.589,14.93]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[{i:[[0,0],[-.211,-13.533],[0,0],[0,0],[-21.026,-5.607],[-15.057,28.529],[1.585,12.68],[32.491,3.962],[-6.96,-15.625],[6.873,1.635],[8.211,-29.886],[-11.51,-8.094]],o:[[0,0],[.211,13.533],[0,0],[0,0],[27.736,7.396],[15.057,-28.529],[-1.585,-12.68],[-22.479,-2.741],[3.906,8.769],[-26.809,-6.378],[-6.604,24.038],[0,0]],v:[[-44.003,16.834],[-46.224,29.627],[-31.21,45.063],[-30.887,47.883],[-14.245,70.6],[73.455,47.883],[67.643,-23.44],[42.016,-74.886],[20.721,-33.809],[7.953,-24.454],[-67.046,-24.276],[-45.589,14.93]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:79,s:[{i:[[0,0],[-.211,-13.533],[0,0],[0,0],[-21.026,-5.607],[-15.057,28.529],[1.585,12.68],[32.491,3.962],[4.239,-16.572],[6.873,1.635],[8.211,-29.886],[-11.841,-2.537]],o:[[0,0],[.211,13.533],[0,0],[0,0],[27.736,7.396],[15.057,-28.529],[-1.585,-12.68],[-22.479,-2.741],[-1.751,6.844],[-26.809,-6.378],[-6.604,24.038],[0,0]],v:[[-44.003,16.834],[-46.224,29.627],[-31.21,45.063],[-30.887,47.883],[-14.245,70.6],[73.455,47.883],[67.643,-23.44],[60.511,-74.158],[23.453,-33.862],[7.953,-24.454],[-78.153,-11.713],[-45.589,14.93]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:92,s:[{i:[[0,0],[-.211,-13.533],[0,0],[0,0],[-21.026,-5.607],[-15.057,28.529],[1.585,12.68],[32.491,3.962],[4.239,-16.572],[6.873,1.635],[8.211,-29.886],[-11.841,-2.537]],o:[[0,0],[.211,13.533],[0,0],[0,0],[27.736,7.396],[15.057,-28.529],[-1.585,-12.68],[-22.479,-2.741],[-1.751,6.844],[-26.809,-6.378],[-6.604,24.038],[0,0]],v:[[-44.003,16.834],[-46.224,29.627],[-31.21,45.063],[-30.887,47.883],[-14.245,70.6],[73.455,47.883],[67.643,-23.44],[60.511,-74.158],[23.453,-33.862],[7.953,-24.454],[-78.153,-11.713],[-45.589,14.93]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:103,s:[{i:[[0,0],[-.211,-13.533],[0,0],[0,0],[-21.026,-5.607],[-15.057,28.529],[1.585,12.68],[32.491,3.962],[-.852,-16.141],[6.873,1.635],[8.211,-29.886],[-11.691,-5.063]],o:[[0,0],[.211,13.533],[0,0],[0,0],[27.736,7.396],[15.057,-28.529],[-1.585,-12.68],[-22.479,-2.741],[.821,7.719],[-26.809,-6.378],[-6.604,24.038],[0,0]],v:[[-44.003,16.834],[-46.224,29.627],[-31.21,45.063],[-30.887,47.883],[-14.245,70.6],[73.455,47.883],[67.643,-23.44],[52.104,-74.489],[22.211,-33.838],[7.953,-24.454],[-73.104,-17.423],[-45.589,14.93]],c:!0}]},{t:114,s:[{i:[[0,0],[-.211,-13.533],[0,0],[0,0],[-21.026,-5.607],[-15.057,28.529],[1.585,12.68],[32.491,3.962],[4.239,-16.572],[6.873,1.635],[8.211,-29.886],[-11.841,-2.537]],o:[[0,0],[.211,13.533],[0,0],[0,0],[27.736,7.396],[15.057,-28.529],[-1.585,-12.68],[-22.479,-2.741],[-1.751,6.844],[-26.809,-6.378],[-6.604,24.038],[0,0]],v:[[-44.003,16.834],[-46.224,29.627],[-31.21,45.063],[-30.887,47.883],[-14.245,70.6],[73.455,47.883],[67.643,-23.44],[60.511,-74.158],[23.453,-33.862],[7.953,-24.454],[-78.153,-11.713],[-45.589,14.93]],c:!0}]}]},nm:"Path 1",hd:!1},{ty:"gf",o:{a:0,k:100},r:1,bm:0,g:{p:3,k:{a:0,k:[0,.627,.49,.596,.519,.757,.606,.69,1,.886,.722,.784]}},s:{a:0,k:[7.3,94.93]},e:{a:0,k:[-4.826,-71.467]},t:1,nm:"Gradient Fill 1",hd:!1},{ty:"tr",p:{a:0,k:[287.701,382.07]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 5",bm:0,hd:!1}],ip:0,op:180,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"eyebrows",parent:3,sr:1,ks:{p:{a:0,k:[241.48,107.66,0]},a:{a:0,k:[241.48,107.66,0]}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[-.428,5.586],[-10.567,3.922],[-2.311,-6.34],[12.313,-3.333]],o:[[.31,-4.05],[11.65,-4.324],[2.178,5.976],[-12.597,3.41]],v:[[-23.739,9.024],[-4.048,-9.442],[23.503,-4.721],[.753,6.261]],c:!0}},nm:"Path 1",hd:!1},{ty:"fl",c:{a:0,k:[0,0,0,1]},o:{a:0,k:100},r:1,bm:0,nm:"Fill 1",hd:!1},{ty:"tr",p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[176.604,85.216],to:[.357,6.461],ti:[-.357,-6.461]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:26,s:[178.745,123.983],to:[.357,6.461],ti:[-1.907,-2.589]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[178.745,123.983],to:[1.907,2.589],ti:[-1.907,-2.589]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[190.188,139.514],to:[1.907,2.589],ti:[2.264,9.05]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[190.188,139.514],to:[-2.264,-9.05],ti:[2.264,9.05]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:97,s:[176.604,85.216],to:[0,0],ti:[0,0]},{t:107,s:[176.604,85.216]}]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:0,s:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:26,s:[48.617]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:35,s:[48.617]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:62,s:[58.529]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:71,s:[58.529]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:97,s:[0]},{t:107,s:[0]}]},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 1",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[3.497,4.377],[10.942,-2.703],[-1.656,-6.541],[-12.055,4.172]],o:[[-2.535,-3.173],[-12.064,2.98],[1.561,6.166],[12.333,-4.268]],v:[[23.197,-6.403],[-3.471,-10.59],[-23.592,8.813],[1.395,5.092]],c:!0}},nm:"Path 1",hd:!1},{ty:"fl",c:{a:0,k:[0,0,0,1]},o:{a:0,k:100},r:1,bm:0,nm:"Fill 1",hd:!1},{ty:"tr",p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[306.328,130.129],to:[-.119,-7.343],ti:[.119,7.343]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:26,s:[305.616,86.068],to:[-.119,-7.343],ti:[5.011,-9.706]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[305.616,86.068],to:[-5.011,9.706],ti:[5.011,-9.706]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[275.55,144.304],to:[-5.011,9.706],ti:[-5.13,2.362]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[275.55,144.304],to:[5.13,-2.362],ti:[-5.13,2.362]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:97,s:[306.328,130.129],to:[0,0],ti:[0,0]},{t:107,s:[306.328,130.129]}]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:0,s:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:26,s:[41.627]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:35,s:[41.627]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:62,s:[-6.655]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:71,s:[-6.655]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:97,s:[0]},{t:107,s:[0]}]},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 2",bm:0,hd:!1}],ip:0,op:180,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"nose",parent:7,sr:1,ks:{p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[221.195,235.407,0],to:[1.966,-4.995,0],ti:[-.899,-6.634,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:26,s:[232.993,205.439,0],to:[.252,1.857,0],ti:[-.562,-14.436,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[232.993,205.439,0],to:[.562,14.436,0],ti:[1.416,-3.597,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[236.366,292.057,0],to:[-.7,1.777,0],ti:[1.416,-3.597,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[236.366,292.057,0],to:[-1.966,4.995,0],ti:[.579,4.274,0]},{t:97,s:[221.195,235.407,0]}]},a:{a:0,k:[221.195,235.407,0]}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[9.703,4.848],[-10.943,-7.503]],o:[[-6.554,-3.274],[10.943,7.503]],v:[[8.832,-23.335],[-8.785,22.734]],c:!0}},nm:"Path 1",hd:!1},{ty:"fl",c:{a:0,k:[.505882382393,.392156869173,.470588237047,1]},o:{a:0,k:100},r:1,bm:0,nm:"Fill 1",hd:!1},{ty:"tr",p:{a:0,k:[211.295,220.293]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 1",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[.869,7.362],[-1.065,-9.205]],o:[[-2.405,-20.384],[1.065,9.205]],v:[[15.263,-4.309],[-15.253,9.297]],c:!0}},nm:"Path 1",hd:!1},{ty:"fl",c:{a:0,k:[0,0,0,1]},o:{a:0,k:100},r:1,bm:0,nm:"Fill 1",hd:!1},{ty:"tr",p:{a:0,k:[241.772,273.622]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 2",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[30.752,5.157],[5.982,-49.532],[-.871,-2.197],[-12.437,-7.959],[-3.289,.201],[-16.884,13.602],[-.215,4.065]],o:[[-19.666,-3.298],[-.283,2.347],[1.975,4.98],[5.286,3.383],[9.101,-.555],[3.17,-2.554],[.95,-17.959]],v:[[10.116,-52.243],[-40.001,18.014],[-39.148,24.944],[-21.918,46.4],[-3.944,52.533],[34.495,33.518],[39.842,23.144]],c:!0}},nm:"Path 1",hd:!1},{ty:"st",c:{a:0,k:[0,0,0,1]},o:{a:0,k:100},w:{a:0,k:8.005},lc:2,lj:2,bm:0,nm:"Stroke 1",hd:!1},{ty:"fl",c:{a:0,k:[.219607844949,.168627455831,.203921571374,1]},o:{a:0,k:100},r:1,bm:0,nm:"Fill 1",hd:!1},{ty:"tr",p:{a:0,k:[221.195,235.407]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 3",bm:0,hd:!1}],ip:0,op:180,st:0,bm:0},{ddd:0,ind:4,ty:4,nm:"right eye",parent:3,sr:1,ks:{p:{a:0,k:[329.881,213.307,0]},a:{a:0,k:[329.881,213.307,0]}},ao:0,shapes:[{ty:"gr",it:[{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[-9.228,7.015],[0,0],[0,0]],o:[[7.848,-5.966],[0,0],[0,0]],v:[[8.154,9.215],[4.469,-11.009],[-10.889,.413]],c:!0}},nm:"Path 1",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1]},o:{a:0,k:100},r:1,bm:0,nm:"Fill 1",hd:!1},{ty:"tr",p:{a:0,k:[313.771,187.156]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 1",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[-2.257,5.883],[-10.707,6.875],[-4.919,.157],[14.656,-12.461]],o:[[.777,-2.025],[8.475,-5.442],[4.919,-.157],[-14.656,12.461]],v:[[-19.914,5.806],[.629,-1.267],[11.678,-18.67],[12.662,13.771]],c:!0}},nm:"Path 1",hd:!1},{ty:"fl",c:{a:0,k:[.078431375325,.392156869173,.505882382393,1]},o:{a:0,k:100},r:1,bm:0,nm:"Fill 1",hd:!1},{ty:"tr",p:{a:0,k:[336.069,220.276]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 2",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[1.829,-22.16],[18.803,1.459],[-1.829,22.16],[-18.803,-1.459]],o:[[-1.829,22.16],[-18.803,-1.459],[1.829,-22.16],[18.803,1.459]],v:[[34.046,3.145],[-2.934,36.058],[-34.047,-2.138],[3.018,-36.066]],c:!0}},nm:"Path 1",hd:!1},{ty:"fl",c:{a:0,k:[0,0,0,1]},o:{a:0,k:100},r:1,bm:0,nm:"Fill 1",hd:!1},{ty:"tr",p:{a:0,k:[334.278,213.719]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 3",bm:0,hd:!1},{ty:"tr",p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[334.278,213.719],to:[-3.542,-2.08],ti:[3.542,2.08]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:26,s:[313.027,201.24],to:[-3.542,-2.08],ti:[-1.929,-5.602]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[313.027,201.24],to:[1.929,5.602],ti:[-1.929,-5.602]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[324.602,234.851],to:[1.929,5.602],ti:[-1.613,3.522]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[324.602,234.851],to:[1.613,-3.522],ti:[-1.613,3.522]},{t:97,s:[334.278,213.719]}]},a:{a:0,k:[334.278,213.719]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 1",bm:0,hd:!1},{ty:"gr",it:[{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[{i:[[.103,32.518],[-38.808,-6.5],[4.554,-44.525],[35.19,6.084]],o:[[-.147,-46.533],[38.808,6.5],[-4.141,40.486],[-34.224,-5.917]],v:[[-65.025,2.116],[8.519,-67.44],[64.425,14.537],[-11.431,67.19]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[{i:[[.103,32.518],[-39.151,-3.945],[4.554,-44.525],[35.19,6.084]],o:[[-.147,-46.533],[35.011,3.528],[-4.141,40.486],[-34.224,-5.917]],v:[[-65.025,2.116],[3.619,-68.125],[56.095,13.373],[-11.431,67.19]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[{i:[[.103,32.518],[-39.151,-3.945],[4.554,-44.525],[35.19,6.084]],o:[[-.147,-46.533],[35.011,3.528],[-4.141,40.486],[-34.224,-5.917]],v:[[-65.025,2.116],[3.619,-68.125],[56.095,13.373],[-11.431,67.19]],c:!0}]},{t:97,s:[{i:[[.103,32.518],[-38.808,-6.5],[4.554,-44.525],[35.19,6.084]],o:[[-.147,-46.533],[38.808,6.5],[-4.141,40.486],[-34.224,-5.917]],v:[[-65.025,2.116],[8.519,-67.44],[64.425,14.537],[-11.431,67.19]],c:!0}]}]},nm:"Path 1",hd:!1},{ty:"st",c:{a:0,k:[0,0,0,1]},o:{a:0,k:100},w:{a:0,k:9.384},lc:1,lj:1,ml:10,bm:0,nm:"Stroke 1",hd:!1},{ty:"tr",p:{a:0,k:[329.473,213.307]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 1",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[{i:[[6.57,13.383],[52.98,-7.222],[8.343,16.569],[-69.457,4.779]],o:[[0,0],[-51.848,7.068],[0,0],[69.457,-4.779]],v:[[59.804,-46.007],[9.309,34.147],[-65.031,-15.418],[9.119,45.759]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[{i:[[6.57,13.383],[52.98,-7.222],[8.343,16.569],[-69.132,8.241]],o:[[0,0],[-51.848,7.068],[0,0],[59.156,-7.052]],v:[[51.215,-49.013],[9.309,34.147],[-65.031,-15.418],[9.119,45.759]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[{i:[[6.57,13.383],[52.98,-7.222],[8.343,16.569],[-69.132,8.241]],o:[[0,0],[-51.848,7.068],[0,0],[59.156,-7.052]],v:[[51.215,-49.013],[9.309,34.147],[-65.031,-15.418],[9.119,45.759]],c:!0}]},{t:97,s:[{i:[[6.57,13.383],[52.98,-7.222],[8.343,16.569],[-69.457,4.779]],o:[[0,0],[-51.848,7.068],[0,0],[69.457,-4.779]],v:[[59.804,-46.007],[9.309,34.147],[-65.031,-15.418],[9.119,45.759]],c:!0}]}]},nm:"Path 1",hd:!1},{ty:"fl",c:{a:0,k:[.835294127464,.909803926945,.901960790157,1]},o:{a:0,k:100},r:1,bm:0,nm:"Fill 1",hd:!1},{ty:"tr",p:{a:0,k:[330.282,233.973]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 2",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[{i:[[.103,32.518],[-38.808,-6.5],[4.554,-44.525],[35.19,6.084]],o:[[-.147,-46.533],[38.808,6.5],[-4.141,40.486],[-34.224,-5.917]],v:[[-65.025,2.116],[8.519,-67.44],[64.425,14.537],[-11.431,67.19]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[{i:[[.103,32.518],[-38.808,-6.5],[4.554,-44.525],[35.19,6.084]],o:[[-.147,-46.533],[38.808,6.5],[-4.141,40.486],[-34.224,-5.917]],v:[[-65.025,2.116],[8.519,-67.44],[58.3,13.681],[-11.431,67.19]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[{i:[[.103,32.518],[-38.808,-6.5],[4.554,-44.525],[35.19,6.084]],o:[[-.147,-46.533],[38.808,6.5],[-4.141,40.486],[-34.224,-5.917]],v:[[-65.025,2.116],[8.519,-67.44],[58.3,13.681],[-11.431,67.19]],c:!0}]},{t:97,s:[{i:[[.103,32.518],[-38.808,-6.5],[4.554,-44.525],[35.19,6.084]],o:[[-.147,-46.533],[38.808,6.5],[-4.141,40.486],[-34.224,-5.917]],v:[[-65.025,2.116],[8.519,-67.44],[64.425,14.537],[-11.431,67.19]],c:!0}]}]},nm:"Path 1",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1]},o:{a:0,k:100},r:1,bm:0,nm:"Fill 1",hd:!1},{ty:"tr",p:{a:0,k:[329.473,213.307]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 3",bm:0,hd:!1},{ty:"tr",p:{a:0,k:[329.473,213.307]},a:{a:0,k:[329.473,213.307]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 2",bm:0,hd:!1}],ip:0,op:180,st:0,bm:0},{ddd:0,ind:5,ty:4,nm:"left eye",parent:3,sr:1,ks:{p:{a:0,k:[139.923,205.79,0]},a:{a:0,k:[139.923,205.79,0]}},ao:0,shapes:[{ty:"gr",it:[{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[-7.368,7.654],[0,0],[0,0]],o:[[6.266,-6.509],[0,0],[0,0]],v:[[7.515,8.519],[2.831,-10.757],[-9.45,1.736]],c:!0}},nm:"Path 1",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1]},o:{a:0,k:100},r:1,bm:0,nm:"Fill 1",hd:!1},{ty:"tr",p:{a:0,k:[141.264,182.701]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 1",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[-1.487,5.914],[-8.644,7.654],[-4.198,.605],[11.602,-13.436]],o:[[.512,-2.036],[6.842,-6.059],[4.198,-.605],[-11.602,13.436]],v:[[-16.817,7.938],[.231,-.814],[8.371,-18.71],[11.667,12.664]],c:!0}},nm:"Path 1",hd:!1},{ty:"fl",c:{a:0,k:[.078431375325,.392156869173,.505882382393,1]},o:{a:0,k:100},r:1,bm:0,nm:"Fill 1",hd:!1},{ty:"tr",p:{a:0,k:[162.904,212.63]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 2",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[-.111,-21.662],[16.204,-.317],[.111,21.662],[-16.204,.317]],o:[[.111,21.662],[-16.204,.317],[-.111,-21.662],[16.204,-.317]],v:[[29.341,-.077],[.178,35.25],[-29.341,1.07],[-.183,-35.25]],c:!0}},nm:"Path 1",hd:!1},{ty:"fl",c:{a:0,k:[0,0,0,1]},o:{a:0,k:100},r:1,bm:0,nm:"Fill 1",hd:!1},{ty:"tr",p:{a:0,k:[160.702,206.902]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 3",bm:0,hd:!1},{ty:"tr",p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[160.702,206.902],to:[-2.959,-2.06],ti:[2.959,2.06]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:26,s:[142.949,194.54],to:[-2.959,-2.06],ti:[-1.561,-4.604]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[142.949,194.54],to:[1.561,4.604],ti:[-1.561,-4.604]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[152.313,222.165],to:[1.561,4.604],ti:[-1.398,2.544]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[152.313,222.165],to:[1.398,-2.544],ti:[-1.398,2.544]},{t:97,s:[160.702,206.902]}]},a:{a:0,k:[160.702,206.902]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 1",bm:0,hd:!1},{ty:"gr",it:[{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[{i:[[-7.22,29.994],[-29.951,-14.629],[13.686,-40.024],[23.471,11.101]],o:[[10.332,-42.921],[29.951,14.629],[-12.444,36.394],[-26.608,-12.585]],v:[[-52.916,-7.995],[28.496,-60.408],[48.361,26.068],[-29.032,60.215]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[{i:[[-7.22,29.994],[-29.331,-15.836],[13.686,-40.024],[23.471,11.101]],o:[[10.332,-42.921],[28.734,15.514],[-12.444,36.394],[-26.608,-12.585]],v:[[-57.578,-14.322],[21.145,-61.435],[48.361,26.068],[-29.032,60.215]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[{i:[[-7.22,29.994],[-29.331,-15.836],[13.686,-40.024],[23.471,11.101]],o:[[10.332,-42.921],[28.734,15.514],[-12.444,36.394],[-26.608,-12.585]],v:[[-57.578,-14.322],[21.145,-61.435],[48.361,26.068],[-29.032,60.215]],c:!0}]},{t:97,s:[{i:[[-7.22,29.994],[-29.951,-14.629],[13.686,-40.024],[23.471,11.101]],o:[[10.332,-42.921],[29.951,14.629],[-12.444,36.394],[-26.608,-12.585]],v:[[-52.916,-7.995],[28.496,-60.408],[48.361,26.068],[-29.032,60.215]],c:!0}]}]},nm:"Path 1",hd:!1},{ty:"st",c:{a:0,k:[0,0,0,1]},o:{a:0,k:100},w:{a:0,k:9.384},lc:1,lj:1,ml:10,bm:0,nm:"Stroke 1",hd:!1},{ty:"tr",p:{a:0,k:[139.619,205.79]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 1",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[{i:[[-5.384,14.063],[-54.218,-11.555],[-6.836,17.411],[56.914,5.022]],o:[[0,0],[42.181,8.989],[0,0],[-56.914,-5.022]],v:[[-45.208,-44.689],[-15.787,31.969],[51.006,-19.136],[-8.504,44.426]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[{i:[[-5.384,14.063],[-47.282,-8.638],[-6.836,17.411],[56.914,5.022]],o:[[0,0],[42.426,7.751],[0,0],[-56.914,-5.022]],v:[[-50.745,-36.691],[-15.787,31.969],[51.006,-19.136],[-8.504,44.426]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[{i:[[-5.384,14.063],[-47.282,-8.638],[-6.836,17.411],[56.914,5.022]],o:[[0,0],[42.426,7.751],[0,0],[-56.914,-5.022]],v:[[-50.745,-36.691],[-15.787,31.969],[51.006,-19.136],[-8.504,44.426]],c:!0}]},{t:97,s:[{i:[[-5.384,14.063],[-54.218,-11.555],[-6.836,17.411],[56.914,5.022]],o:[[0,0],[42.181,8.989],[0,0],[-56.914,-5.022]],v:[[-45.208,-44.689],[-15.787,31.969],[51.006,-19.136],[-8.504,44.426]],c:!0}]}]},nm:"Path 1",hd:!1},{ty:"fl",c:{a:0,k:[.835294127464,.909803926945,.901960790157,1]},o:{a:0,k:100},r:1,bm:0,nm:"Fill 1",hd:!1},{ty:"tr",p:{a:0,k:[139.273,222.618]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 2",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[{i:[[-7.22,29.994],[-29.951,-14.629],[13.686,-40.024],[27.116,13.441]],o:[[10.332,-42.921],[29.951,14.629],[-12.444,36.394],[-26.372,-13.071]],v:[[-52.402,-9.711],[28.924,-59.485],[46.846,26.442],[-26.377,58.086]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[{i:[[-7.22,29.994],[-29.951,-14.629],[13.686,-40.024],[27.116,13.441]],o:[[10.332,-42.921],[29.951,14.629],[-12.444,36.394],[-26.372,-13.071]],v:[[-57.064,-16.039],[20.348,-60.684],[46.846,26.442],[-26.377,58.086]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[{i:[[-7.22,29.994],[-29.951,-14.629],[13.686,-40.024],[27.116,13.441]],o:[[10.332,-42.921],[29.951,14.629],[-12.444,36.394],[-26.372,-13.071]],v:[[-57.064,-16.039],[20.348,-60.684],[46.846,26.442],[-26.377,58.086]],c:!0}]},{t:97,s:[{i:[[-7.22,29.994],[-29.951,-14.629],[13.686,-40.024],[27.116,13.441]],o:[[10.332,-42.921],[29.951,14.629],[-12.444,36.394],[-26.372,-13.071]],v:[[-52.402,-9.711],[28.924,-59.485],[46.846,26.442],[-26.377,58.086]],c:!0}]}]},nm:"Path 1",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1]},o:{a:0,k:100},r:1,bm:0,nm:"Fill 1",hd:!1},{ty:"tr",p:{a:0,k:[141.134,205.416]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 3",bm:0,hd:!1},{ty:"tr",p:{a:0,k:[141.134,205.416]},a:{a:0,k:[141.134,205.416]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 2",bm:0,hd:!1}],ip:0,op:180,st:0,bm:0},{ddd:0,ind:6,ty:4,nm:"mouth",parent:3,sr:1,ks:{p:{a:0,k:[225.195,306.709,0]},a:{a:0,k:[225.195,306.709,0]}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[{i:[[0,0],[-38.062,-15.648]],o:[[0,0],[0,0]],v:[[-29.815,.244],[29.815,4.05]],c:!1}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:26,s:[{i:[[0,0],[-53.732,-58.292]],o:[[0,0],[0,0]],v:[[-40.47,-3.939],[38.321,-.249]],c:!1}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[{i:[[0,0],[-53.732,-58.292]],o:[[0,0],[0,0]],v:[[-40.47,-3.939],[38.321,-.249]],c:!1}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[{i:[[0,0],[-25.316,-32.455]],o:[[0,0],[0,0]],v:[[-25.614,-5.08],[13.827,-1.765]],c:!1}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[{i:[[0,0],[-25.316,-32.455]],o:[[0,0],[0,0]],v:[[-25.614,-5.08],[13.827,-1.765]],c:!1}]},{t:97,s:[{i:[[0,0],[-38.062,-15.648]],o:[[0,0],[0,0]],v:[[-29.815,.244],[29.815,4.05]],c:!1}]}]},nm:"Path 1",hd:!1},{ty:"st",c:{a:0,k:[0,0,0,1]},o:{a:0,k:100},w:{a:0,k:8.005},lc:2,lj:2,bm:0,nm:"Stroke 1",hd:!1},{ty:"tr",p:{a:0,k:[225.195,327.506]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 1",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[{i:[[0,0],[0,0]],o:[[3.806,-16.176],[0,0]],v:[[-.884,19.691],[-.602,-19.691]],c:!1}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:26,s:[{i:[[0,0],[0,0]],o:[[-1.118,-11.023],[0,0]],v:[[-3.4,-1.582],[-.602,-19.691]],c:!1}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[{i:[[0,0],[0,0]],o:[[-1.118,-11.023],[0,0]],v:[[-3.4,-1.582],[-.602,-19.691]],c:!1}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[{i:[[0,0],[0,0]],o:[[-.817,-16.593],[0,0]],v:[[-2.059,7.713],[-.602,-19.691]],c:!1}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[{i:[[0,0],[0,0]],o:[[-.817,-16.593],[0,0]],v:[[-2.059,7.713],[-.602,-19.691]],c:!1}]},{t:97,s:[{i:[[0,0],[0,0]],o:[[3.806,-16.176],[0,0]],v:[[-.884,19.691],[-.602,-19.691]],c:!1}]}]},nm:"Path 1",hd:!1},{ty:"st",c:{a:0,k:[0,0,0,1]},o:{a:0,k:100},w:{a:0,k:8.005},lc:2,lj:2,bm:0,nm:"Stroke 1",hd:!1},{ty:"tr",p:{a:0,k:[221.412,301.552]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 2",bm:0,hd:!1}],ip:0,op:180,st:0,bm:0},{ddd:0,ind:7,ty:4,nm:"head",sr:1,ks:{r:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:0,s:[0]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:26,s:[6.269]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:35,s:[6.269]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:62,s:[-7.697]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:71,s:[-7.697]},{t:97,s:[0]}]},p:{a:1,k:[{i:{x:.667,y:1},o:{x:.333,y:0},t:0,s:[225.26,340.477,0],to:[.667,-5.417,0],ti:[-.667,5.417,0]},{i:{x:.667,y:.667},o:{x:.333,y:.333},t:26,s:[229.26,307.977,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:35,s:[229.26,307.977,0],to:[2.583,5.5,0],ti:[-2.583,-5.5,0]},{i:{x:.667,y:.667},o:{x:.333,y:.333},t:62,s:[244.76,340.977,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:71,s:[244.76,340.977,0],to:[-3.25,-.083,0],ti:[3.25,.083,0]},{t:97,s:[225.26,340.477,0]}]},a:{a:0,k:[229.76,331.977,0]},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:0,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:14,s:[104,92,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:30,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:49,s:[104,92,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:67,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:85,s:[104,92,100]},{t:103,s:[100,100,100]}]}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[0,0],[8.947,-48.002],[-112.758,-4.75],[0,0],[8.74,46.892],[106.413,3.999]],o:[[-106.877,3.724],[-8.717,46.768],[0,0],[113.565,-4.505],[-8.933,-47.925],[0,0]],v:[[-8.116,-124.044],[-139.462,19.346],[-18.139,124.008],[17.24,124.044],[139.462,19.346],[8.63,-124.026]],c:!0}},nm:"Path 1",hd:!1},{ty:"gf",o:{a:0,k:100},r:1,bm:0,g:{p:3,k:{a:0,k:[.001,.753,.624,.682,.52,.867,.757,.814,1,.98,.89,.945]}},s:{a:0,k:[-15.595,135.424]},e:{a:0,k:[-4.049,-214.518]},t:1,nm:"Gradient Fill 2",hd:!1},{ty:"tr",p:{a:0,k:[247.905,242.076]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 1",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[{i:[[122.739,20.892],[-14.802,19.454],[17.762,-26.643],[-3.806,18.608],[.098,-16.019],[43.089,-67.898],[-77.038,-31.338],[-24.809,71.815]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[-43.089,67.898],[77.038,31.338],[24.809,-71.815]],v:[[43.522,-128.308],[42.928,-155.433],[-.631,-134.711],[-5.283,-156.279],[-25.681,-132.225],[-135.363,-72.162],[-110.554,136.755],[158.427,94.972]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:26,s:[{i:[[122.739,20.892],[-17.867,5.351],[26.877,-22.948],[-8.588,12.401],[6.6,-20.815],[43.089,-67.898],[-77.038,-31.338],[-24.809,71.815]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[-43.089,67.898],[77.038,31.338],[24.809,-71.815]],v:[[43.522,-128.308],[54.013,-144.883],[-.631,-134.711],[7.37,-154.375],[-25.681,-132.225],[-135.363,-72.162],[-110.554,136.755],[158.427,94.972]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[{i:[[122.739,20.892],[-14.802,19.454],[17.762,-26.643],[-3.806,18.608],[.098,-16.019],[43.089,-67.898],[-77.038,-31.338],[-24.809,71.815]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[-43.089,67.898],[77.038,31.338],[24.809,-71.815]],v:[[43.522,-128.308],[42.928,-155.433],[-.631,-134.711],[-5.283,-156.279],[-25.681,-132.225],[-135.363,-72.162],[-110.554,136.755],[158.427,94.972]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[{i:[[122.739,20.892],[-17.867,5.351],[26.877,-22.948],[-8.588,12.401],[6.6,-20.815],[43.089,-67.898],[-77.038,-31.338],[-24.809,71.815]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[-43.089,67.898],[77.038,31.338],[24.809,-71.815]],v:[[43.522,-128.308],[54.013,-144.883],[-.631,-134.711],[7.37,-154.375],[-25.681,-132.225],[-135.363,-72.162],[-110.554,136.755],[158.427,94.972]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[{i:[[122.739,20.892],[-14.802,19.454],[17.762,-26.643],[-3.806,18.608],[.098,-16.019],[43.089,-67.898],[-77.038,-31.338],[-24.809,71.815]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[-43.089,67.898],[77.038,31.338],[24.809,-71.815]],v:[[43.522,-128.308],[42.928,-155.433],[-.631,-134.711],[-5.283,-156.279],[-25.681,-132.225],[-135.363,-72.162],[-110.554,136.755],[158.427,94.972]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:97,s:[{i:[[122.739,20.892],[-17.867,5.351],[26.877,-22.948],[-8.588,12.401],[6.6,-20.815],[43.089,-67.898],[-77.038,-31.338],[-24.809,71.815]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[-43.089,67.898],[77.038,31.338],[24.809,-71.815]],v:[[43.522,-128.308],[54.013,-144.883],[-.631,-134.711],[7.37,-154.375],[-25.681,-132.225],[-135.363,-72.162],[-110.554,136.755],[158.427,94.972]],c:!0}]},{t:114,s:[{i:[[122.739,20.892],[-14.802,19.454],[17.762,-26.643],[-3.806,18.608],[.098,-16.019],[43.089,-67.898],[-77.038,-31.338],[-24.809,71.815]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[-43.089,67.898],[77.038,31.338],[24.809,-71.815]],v:[[43.522,-128.308],[42.928,-155.433],[-.631,-134.711],[-5.283,-156.279],[-25.681,-132.225],[-135.363,-72.162],[-110.554,136.755],[158.427,94.972]],c:!0}]}]},nm:"Path 1",hd:!1},{ty:"st",c:{a:0,k:[.329411774874,.270588248968,.376470595598,1]},o:{a:0,k:100},w:{a:0,k:8.005},lc:2,lj:2,bm:0,nm:"Stroke 1",hd:!1},{ty:"gf",o:{a:0,k:100},r:1,bm:0,g:{p:3,k:{a:0,k:[0,.627,.49,.596,.519,.757,.606,.69,1,.886,.722,.784]}},s:{a:0,k:[-11.24,158.023]},e:{a:0,k:[1.988,-162.777]},t:1,nm:"Gradient Fill 3",hd:!1},{ty:"tr",p:{a:0,k:[246.76,231.977]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 2",bm:0,hd:!1}],ip:0,op:180,st:0,bm:0},{ddd:0,ind:8,ty:3,nm:"Null 1",parent:7,sr:1,ks:{o:{a:0,k:0},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[239,184,0],to:[.285,5.785,0],ti:[-.285,-5.785,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:26,s:[240.708,218.709,0],to:[.285,5.785,0],ti:[.463,9.181,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:35,s:[240.708,218.709,0],to:[-.463,-9.181,0],ti:[.463,9.181,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:62,s:[237.927,163.623,0],to:[-.463,-9.181,0],ti:[-.179,-3.396,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:71,s:[237.927,163.623,0],to:[.179,3.396,0],ti:[-.179,-3.396,0]},{t:97,s:[239,184,0]}]}},ao:0,ip:0,op:180,st:0,bm:0},{ddd:0,ind:9,ty:4,nm:"ears 1",parent:8,sr:1,ks:{r:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:0,s:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:26,s:[-7.888]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:35,s:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:62,s:[-7.888]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:71,s:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:97,s:[-7.888]},{t:113,s:[0]}]},p:{a:0,k:[-118,-15.5,0]},a:{a:0,k:[-135,-87.5,0]}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[2.224,16.677],[18.901,-51.144],[-32.352,24.106],[-6.671,23.348]],o:[[-2.629,-19.714],[-18.901,51.144],[8.916,-6.643],[6.671,-23.348]],v:[[41.499,-43.309],[-37.44,-24.408],[21.548,54.39],[29.16,-.8]],c:!0}},nm:"Path 1",hd:!1},{ty:"gf",o:{a:0,k:100},r:1,bm:0,g:{p:3,k:{a:0,k:[0,.898,.608,.792,.499,.949,.714,.814,1,1,.82,.835]}},s:{a:0,k:[25.509,5.067]},e:{a:0,k:[-28.041,-8.9]},t:2,h:{a:0,k:0},a:{a:0,k:0},nm:"Gradient Fill 4",hd:!1},{ty:"tr",p:{a:0,k:[-164.509,-51.067]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 2",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[0,0],[35.524,11.826],[0,0],[0,0],[0,0],[0,0],[-37.427,.591],[0,0]],o:[[0,0],[-65.005,-21.64],[0,0],[2.96,-45.674],[0,0],[0,0],[46.023,-.727],[0,0]],v:[[45.938,61.363],[-21.938,88.006],[-58.308,-10.484],[-67.189,-6.937],[-28.599,-66.007],[-38.749,-69.555],[5.022,-90.25],[67.189,-63.051]],c:!0}},nm:"Path 1",hd:!1},{ty:"st",c:{a:0,k:[.329411774874,.270588248968,.376470595598,1]},o:{a:0,k:100},w:{a:0,k:8.005},lc:2,lj:2,bm:0,nm:"Stroke 1",hd:!1},{ty:"gf",o:{a:0,k:100},r:1,bm:0,g:{p:3,k:{a:0,k:[0,.627,.49,.596,.519,.757,.606,.69,1,.886,.722,.784]}},s:{a:0,k:[239.388,87.578]},e:{a:0,k:[235.802,-73.757]},t:1,nm:"Gradient Fill 5",hd:!1},{ty:"tr",p:{a:0,k:[-165.388,-60.578]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 3",bm:0,hd:!1}],ip:0,op:180,st:0,bm:0},{ddd:0,ind:10,ty:4,nm:"ears 2",parent:8,sr:1,ks:{r:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:0,s:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:26,s:[10.974]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:35,s:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:62,s:[10.974]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:71,s:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:97,s:[10.974]},{t:113,s:[0]}]},p:{a:0,k:[138.822,-4.902,0]},a:{a:0,k:[377.822,179.098,0]}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[-.321,16.822],[-24.57,-48.675],[34.873,20.288],[9.271,22.443]],o:[[.38,-19.885],[24.57,48.675],[-9.61,-5.591],[-9.271,-22.443]],v:[[-44.111,-39.074],[36.461,-29.231],[-13.227,55.738],[-27.039,1.765]],c:!0}},nm:"Path 1",hd:!1},{ty:"gf",o:{a:0,k:100},r:1,bm:0,g:{p:3,k:{a:0,k:[0,.898,.608,.792,.499,.949,.714,.814,1,1,.82,.835]}},s:{a:0,k:[-25.11,3.976]},e:{a:0,k:[36.531,-14.167]},t:2,h:{a:0,k:0},a:{a:0,k:0},nm:"Gradient Fill 4",hd:!1},{ty:"tr",p:{a:0,k:[410.228,220.81]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 2",bm:0,hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ks:{a:0,k:{i:[[0,0],[-45.815,4.435],[0,0],[0,0],[-11.793,-58.672],[0,0],[61.958,-30.426],[0,0]],o:[[0,0],[37.258,-3.607],[0,0],[0,0],[0,0],[0,0],[-33.859,16.627],[0,0]],v:[[-73.696,-61.432],[-15.232,-97.463],[30.771,-80.358],[21.118,-75.428],[73.696,-11.826],[64.441,-14.602],[31.812,91.27],[-28.583,87.936]],c:!1}},nm:"Path 1",hd:!1},{ty:"st",c:{a:0,k:[.329411774874,.270588248968,.376470595598,1]},o:{a:0,k:100},w:{a:0,k:8.005},lc:2,lj:2,bm:0,nm:"Stroke 1",hd:!1},{ty:"gf",o:{a:0,k:100},r:1,bm:0,g:{p:3,k:{a:0,k:[0,.627,.49,.596,.519,.757,.606,.69,1,.886,.722,.784]}},s:{a:0,k:[12.726,108.942]},e:{a:0,k:[14.675,-103.974]},t:1,nm:"Gradient Fill 5",hd:!1},{ty:"tr",p:{a:0,k:[417.526,213.153]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},r:{a:0,k:0},o:{a:0,k:100},sk:{a:0,k:0},sa:{a:0,k:0},nm:"Transform"}],nm:"Group 3",bm:0,hd:!1}],ip:0,op:180,st:0,bm:0}],lottieKoala={tgs,v:v$1,fr:fr$1,ip:ip$1,op:op$1,w:w$1,h:h$1,nm:nm$1,ddd:ddd$1,assets:assets$1,layers:layers$1},apiUrl="https://3.79.107.152.sslip.io",getLetters=i=>{const o=i?i.split(" "):[];return`${o[0]?o[0][0]:""}${o[1]?o[1][0]:""}`};function Avatar({user:i,size:o=40}){const g=[...i!=null&&i.first_name?[i.first_name]:[],...i!=null&&i.last_name?[i.last_name]:[]].join(" "),{isDark:$}=useTheme(),_e=i?["#e17076","#faa774","#a695e7","#7bc862","#6ec9cb","#65aadd","#ee7aae"][Math.abs(Number(i._id))%7||0]:$?"#888888":"#bbbbbb",et=_e+"44",{txId:rt}=useStore(),tt=i==null?void 0:i.profile_photo,nt=tt?`url(${rt?`${apiUrl}${tt}`:tt})`:void 0,st=!tt&&g?getLetters(g):null;return jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-center rounded-full bg-cover bg-center",style:{width:o,height:o,backgroundColor:et,backgroundImage:nt},children:[st&&jsxRuntimeExports.jsx("div",{className:"uppercase font-semibold text-main",style:{fontSize:.35*o+"px",lineHeight:.6*o+"px",color:_e},children:st}),!i&&jsxRuntimeExports.jsx(Lottie,{style:{height:.8*o},animationData:lottieKoala,loop:!0})]})}function User({user:i,size:o=40}){const{t:g}=useTranslation();return jsxRuntimeExports.jsxs("div",{className:"w-full flex gap-2 items-center truncate",children:[jsxRuntimeExports.jsx(Avatar,{user:i,size:o}),jsxRuntimeExports.jsx("div",{className:"flex flex-col -gap-0.5 flex-1 text-left truncate text-[16px] leading-[20px]",children:i?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"truncate",children:[i.first_name," ",i.last_name]}),i.username&&jsxRuntimeExports.jsxs("div",{className:"text-[14px] leading-[18px] text-hint truncate",children:["@",i.username]})]}):jsxRuntimeExports.jsxs("div",{className:"text-hint truncate",children:["(",g("select"),")"]})})]})}const formatAmount=i=>i.toFixed(visible_decimals),unformatAmount=i=>parseFloat(i)||0,filter=(i,o)=>{const g=visible_decimals,$=10,j=/[^0-9.]/,_e=o.replace(/,/g,".").replace(j,"");if(!/^\d*.?\d*$/.test(_e)||_e.length>$)return i;const[rt,tt]=i.split("."),[nt,st]=_e.split(".");return rt==="0"&&nt==="00"||tt==="0".repeat(g-1)&&st==="0".repeat(g)||st&&st.length>g?i:i===""&&_e==="."?"0.":i==="0."&&_e==="0"?"":i!=="0."&&_e==="0"?"0.":_e};function InputAmount({amount:i,onChange:o}){const[g,$]=reactExports.useState(formatAmount(i));reactExports.useEffect(()=>{const et=unformatAmount(g);i!==et&&$(formatAmount(i))},[i,g]);const j=et=>{const rt=et.target.value,tt=filter(g,rt);$(tt);const nt=unformatAmount(tt);o(nt)},_e=()=>{$(formatAmount(i))};return jsxRuntimeExports.jsx("input",{type:"text",className:"w-[117px] h-10 p-2 rounded-md border border-[#DDE2E4] dark:border-[#6E7C87] dark:bg-[#D5DADD] text-right text-[16px] text-text dark:text-[#48535B] leading-[24px] focus:ring-2 focus:ring-button focus:outline-none appearance-none transition-all selection:bg-button selection:text-buttonText",inputMode:"decimal",placeholder:"0",value:g,onFocus:et=>{et.target.select()},onBlur:_e,onChange:j})}function UserAmount({related_user_id:i,amount:o,onChange:g}){const{getUserById:$}=useUsers(),j=i?$(i):void 0;return j?jsxRuntimeExports.jsxs("div",{className:"flex gap-3",children:[jsxRuntimeExports.jsx(User,{user:j,size:48}),jsxRuntimeExports.jsx(InputAmount,{amount:o,onChange:g})]}):null}function Panel({children:i,className:o}){return jsxRuntimeExports.jsx("div",{className:cx("panel p-4 pb-6 rounded-3xl bg-bg",o),children:i})}const OPEN_DEBUG_RIGHT_CLICKS=3;function Debug(){var et;const{transaction:i,users:o,txId:g}=useStore(),[$,j]=reactExports.useState(0),_e=reactExports.useCallback(()=>{j($+1)},[$,j]);return reactExports.useEffect(()=>(window.addEventListener("contextmenu",_e),()=>{window.removeEventListener("contextmenu",_e)}),[_e]),jsxRuntimeExports.jsx("div",{className:cx($"u"){var loc={hostname:""};window$1={navigator:{userAgent:""},document:{location:loc,referrer:""},screen:{width:0,height:0},location:loc}}else window$1=window;var ArrayProto=Array.prototype,FuncProto=Function.prototype,ObjProto=Object.prototype,slice=ArrayProto.slice,toString=ObjProto.toString,hasOwnProperty=ObjProto.hasOwnProperty,windowConsole=window$1.console,navigator$1=window$1.navigator,document$1=window$1.document,windowOpera=window$1.opera,screen=window$1.screen,userAgent=navigator$1.userAgent,nativeBind=FuncProto.bind,nativeForEach=ArrayProto.forEach,nativeIndexOf=ArrayProto.indexOf,nativeMap=ArrayProto.map,nativeIsArray=Array.isArray,breaker={},_={trim:function(i){return i.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},console$1={log:function(){if(Config.DEBUG&&!_.isUndefined(windowConsole)&&windowConsole)try{windowConsole.log.apply(windowConsole,arguments)}catch{_.each(arguments,function(o){windowConsole.log(o)})}},warn:function(){if(Config.DEBUG&&!_.isUndefined(windowConsole)&&windowConsole){var i=["Mixpanel warning:"].concat(_.toArray(arguments));try{windowConsole.warn.apply(windowConsole,i)}catch{_.each(i,function(g){windowConsole.warn(g)})}}},error:function(){if(Config.DEBUG&&!_.isUndefined(windowConsole)&&windowConsole){var i=["Mixpanel error:"].concat(_.toArray(arguments));try{windowConsole.error.apply(windowConsole,i)}catch{_.each(i,function(g){windowConsole.error(g)})}}},critical:function(){if(!_.isUndefined(windowConsole)&&windowConsole){var i=["Mixpanel error:"].concat(_.toArray(arguments));try{windowConsole.error.apply(windowConsole,i)}catch{_.each(i,function(g){windowConsole.error(g)})}}}},log_func_with_prefix=function(i,o){return function(){return arguments[0]="["+o+"] "+arguments[0],i.apply(console$1,arguments)}},console_with_prefix=function(i){return{log:log_func_with_prefix(console$1.log,i),error:log_func_with_prefix(console$1.error,i),critical:log_func_with_prefix(console$1.critical,i)}};_.bind=function(i,o){var g,$;if(nativeBind&&i.bind===nativeBind)return nativeBind.apply(i,slice.call(arguments,1));if(!_.isFunction(i))throw new TypeError;return g=slice.call(arguments,2),$=function(){if(!(this instanceof $))return i.apply(o,g.concat(slice.call(arguments)));var j={};j.prototype=i.prototype;var _e=new j;j.prototype=null;var et=i.apply(_e,g.concat(slice.call(arguments)));return Object(et)===et?et:_e},$};_.each=function(i,o,g){if(i!=null){if(nativeForEach&&i.forEach===nativeForEach)i.forEach(o,g);else if(i.length===+i.length){for(var $=0,j=i.length;$0&&(o[$]=g)}),o};_.truncate=function(i,o){var g;return typeof i=="string"?g=i.slice(0,o):_.isArray(i)?(g=[],_.each(i,function($){g.push(_.truncate($,o))})):_.isObject(i)?(g={},_.each(i,function($,j){g[j]=_.truncate($,o)})):g=i,g};_.JSONEncode=function(){return function(i){var o=i,g=function(j){var _e=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,et={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return _e.lastIndex=0,_e.test(j)?'"'+j.replace(_e,function(rt){var tt=et[rt];return typeof tt=="string"?tt:"\\u"+("0000"+rt.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+j+'"'},$=function(j,_e){var et="",rt=" ",tt=0,nt="",st="",ft=0,it=et,pt=[],ut=_e[j];switch(ut&&typeof ut=="object"&&typeof ut.toJSON=="function"&&(ut=ut.toJSON(j)),typeof ut){case"string":return g(ut);case"number":return isFinite(ut)?String(ut):"null";case"boolean":case"null":return String(ut);case"object":if(!ut)return"null";if(et+=rt,pt=[],toString.apply(ut)==="[object Array]"){for(ft=ut.length,tt=0;tt="0"&&o<="9";)ut+=o,_e();if(o===".")for(ut+=".";_e()&&o>="0"&&o<="9";)ut+=o;if(o==="e"||o==="E")for(ut+=o,_e(),(o==="-"||o==="+")&&(ut+=o,_e());o>="0"&&o<="9";)ut+=o,_e();if(pt=+ut,!isFinite(pt))j("Bad number");else return pt},rt=function(){var pt,ut,ht="",mt;if(o==='"')for(;_e();){if(o==='"')return _e(),ht;if(o==="\\")if(_e(),o==="u"){for(mt=0,ut=0;ut<4&&(pt=parseInt(_e(),16),!!isFinite(pt));ut+=1)mt=mt*16+pt;ht+=String.fromCharCode(mt)}else if(typeof g[o]=="string")ht+=g[o];else break;else ht+=o}j("Bad string")},tt=function(){for(;o&&o<=" ";)_e()},nt=function(){switch(o){case"t":return _e("t"),_e("r"),_e("u"),_e("e"),!0;case"f":return _e("f"),_e("a"),_e("l"),_e("s"),_e("e"),!1;case"n":return _e("n"),_e("u"),_e("l"),_e("l"),null}j('Unexpected "'+o+'"')},st,ft=function(){var pt=[];if(o==="["){if(_e("["),tt(),o==="]")return _e("]"),pt;for(;o;){if(pt.push(st()),tt(),o==="]")return _e("]"),pt;_e(","),tt()}}j("Bad array")},it=function(){var pt,ut={};if(o==="{"){if(_e("{"),tt(),o==="}")return _e("}"),ut;for(;o;){if(pt=rt(),tt(),_e(":"),Object.hasOwnProperty.call(ut,pt)&&j('Duplicate key "'+pt+'"'),ut[pt]=st(),tt(),o==="}")return _e("}"),ut;_e(","),tt()}}j("Bad object")};return st=function(){switch(tt(),o){case"{":return it();case"[":return ft();case'"':return rt();case"-":return et();default:return o>="0"&&o<="9"?et():nt()}},function(pt){var ut;return $=pt,i=0,o=" ",ut=st(),tt(),o&&j("Syntax error"),ut}}();_.base64Encode=function(i){var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",g,$,j,_e,et,rt,tt,nt,st=0,ft=0,it="",pt=[];if(!i)return i;i=_.utf8Encode(i);do g=i.charCodeAt(st++),$=i.charCodeAt(st++),j=i.charCodeAt(st++),nt=g<<16|$<<8|j,_e=nt>>18&63,et=nt>>12&63,rt=nt>>6&63,tt=nt&63,pt[ft++]=o.charAt(_e)+o.charAt(et)+o.charAt(rt)+o.charAt(tt);while(st127&&et<2048?rt=String.fromCharCode(et>>6|192,et&63|128):rt=String.fromCharCode(et>>12|224,et>>6&63|128,et&63|128),rt!==null&&($>g&&(o+=i.substring(g,$)),o+=rt,g=$=_e+1)}return $>g&&(o+=i.substring(g,i.length)),o};_.UUID=function(){var i=function(){var $=1*new Date,j;if(window$1.performance&&window$1.performance.now)j=window$1.performance.now();else for(j=0;$==1*new Date;)j++;return $.toString(16)+Math.floor(j).toString(16)},o=function(){return Math.random().toString(16).replace(".","")},g=function(){var $=userAgent,j,_e,et=[],rt=0;function tt(nt,st){var ft,it=0;for(ft=0;ft=4&&(rt=tt(rt,et),et=[]);return et.length>0&&(rt=tt(rt,et)),rt.toString(16)};return function(){var $=(screen.height*screen.width).toString(16);return i()+"-"+o()+"-"+g()+"-"+$+"-"+i()}}();var BLOCKED_UA_STRS=["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"];_.isBlockedUA=function(i){var o;for(i=i.toLowerCase(),o=0;o=0}function $(j){if(!document$1.getElementsByTagName)return[];var _e=j.split(" "),et,rt,tt,nt,st,ft,it,pt,ut,ht,mt=[document$1];for(ft=0;ft<_e.length;ft++){if(et=_e[ft].replace(/^\s+/,"").replace(/\s+$/,""),et.indexOf("#")>-1){rt=et.split("#"),tt=rt[0];var at=rt[1],lt=document$1.getElementById(at);if(!lt||tt&<.nodeName.toLowerCase()!=tt)return[];mt=[lt];continue}if(et.indexOf(".")>-1){rt=et.split("."),tt=rt[0];var ot=rt[1];for(tt||(tt="*"),nt=[],st=0,it=0;it-1};break;default:_t=function(Pt){return Pt.getAttribute(gt)}}for(mt=[],ht=0,it=0;it=3?o[2]:""},properties:function(){return _.extend(_.strip_empty_properties({$os:_.info.os(),$browser:_.info.browser(userAgent,navigator$1.vendor,windowOpera),$referrer:document$1.referrer,$referring_domain:_.info.referringDomain(document$1.referrer),$device:_.info.device(userAgent)}),{$current_url:window$1.location.href,$browser_version:_.info.browserVersion(userAgent,navigator$1.vendor,windowOpera),$screen_height:screen.height,$screen_width:screen.width,mp_lib:"web",$lib_version:Config.LIB_VERSION,$insert_id:cheap_guid(),time:_.timestamp()/1e3})},people_properties:function(){return _.extend(_.strip_empty_properties({$os:_.info.os(),$browser:_.info.browser(userAgent,navigator$1.vendor,windowOpera)}),{$browser_version:_.info.browserVersion(userAgent,navigator$1.vendor,windowOpera)})},mpPageViewProperties:function(){return _.strip_empty_properties({current_page_title:document$1.title,current_domain:window$1.location.hostname,current_url_path:window$1.location.pathname,current_url_protocol:window$1.location.protocol,current_url_search:window$1.location.search})}};var cheap_guid=function(i){var o=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return i?o.substring(0,i):o},SIMPLE_DOMAIN_MATCH_REGEX=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,DOMAIN_MATCH_REGEX=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,extract_domain=function(i){var o=DOMAIN_MATCH_REGEX,g=i.split("."),$=g[g.length-1];($.length>4||$==="com"||$==="org")&&(o=SIMPLE_DOMAIN_MATCH_REGEX);var j=i.match(o);return j?j[0]:""},JSONStringify=null,JSONParse=null;typeof JSON<"u"&&(JSONStringify=JSON.stringify,JSONParse=JSON.parse);JSONStringify=JSONStringify||_.JSONEncode;JSONParse=JSONParse||_.JSONDecode;_.toArray=_.toArray;_.isObject=_.isObject;_.JSONEncode=_.JSONEncode;_.JSONDecode=_.JSONDecode;_.isBlockedUA=_.isBlockedUA;_.isEmptyObject=_.isEmptyObject;_.info=_.info;_.info.device=_.info.device;_.info.browser=_.info.browser;_.info.browserVersion=_.info.browserVersion;_.info.properties=_.info.properties;var DomTracker=function(){};DomTracker.prototype.create_properties=function(){};DomTracker.prototype.event_handler=function(){};DomTracker.prototype.after_track_handler=function(){};DomTracker.prototype.init=function(i){return this.mp=i,this};DomTracker.prototype.track=function(i,o,g,$){var j=this,_e=_.dom_query(i);if(_e.length===0){console$1.error("The DOM query ("+i+") returned 0 elements");return}return _.each(_e,function(et){_.register_event(et,this.override_event,function(rt){var tt={},nt=j.create_properties(g,this),st=j.mp.get_config("track_links_timeout");j.event_handler(rt,this,tt),window.setTimeout(j.track_callback($,nt,tt,!0),st),j.mp.track(o,nt,j.track_callback($,nt,tt))})},this),!0};DomTracker.prototype.track_callback=function(i,o,g,$){$=$||!1;var j=this;return function(){g.callback_fired||(g.callback_fired=!0,!(i&&i($,o)===!1)&&j.after_track_handler(o,g,$))}};DomTracker.prototype.create_properties=function(i,o){var g;return typeof i=="function"?g=i(o):g=_.extend({},i),g};var LinkTracker=function(){this.override_event="click"};_.inherit(LinkTracker,DomTracker);LinkTracker.prototype.create_properties=function(i,o){var g=LinkTracker.superclass.create_properties.apply(this,arguments);return o.href&&(g.url=o.href),g};LinkTracker.prototype.event_handler=function(i,o,g){g.new_tab=i.which===2||i.metaKey||i.ctrlKey||o.target==="_blank",g.href=o.href,g.new_tab||i.preventDefault()};LinkTracker.prototype.after_track_handler=function(i,o){o.new_tab||setTimeout(function(){window.location=o.href},0)};var FormTracker=function(){this.override_event="submit"};_.inherit(FormTracker,DomTracker);FormTracker.prototype.event_handler=function(i,o,g){g.element=o,i.preventDefault()};FormTracker.prototype.after_track_handler=function(i,o){setTimeout(function(){o.element.submit()},0)};var logger$2=console_with_prefix("lock"),SharedLock=function(i,o){o=o||{},this.storageKey=i,this.storage=o.storage||window.localStorage,this.pollIntervalMS=o.pollIntervalMS||100,this.timeoutMS=o.timeoutMS||2e3};SharedLock.prototype.withLock=function(i,o,g){!g&&typeof o!="function"&&(g=o,o=null);var $=g||new Date().getTime()+"|"+Math.random(),j=new Date().getTime(),_e=this.storageKey,et=this.pollIntervalMS,rt=this.timeoutMS,tt=this.storage,nt=_e+":X",st=_e+":Y",ft=_e+":Z",it=function(lt){o&&o(lt)},pt=function(lt){if(new Date().getTime()-j>rt){logger$2.error("Timeout waiting for mutex on "+_e+"; clearing lock. ["+$+"]"),tt.removeItem(ft),tt.removeItem(st),mt();return}setTimeout(function(){try{lt()}catch(ot){it(ot)}},et*(Math.random()+.1))},ut=function(lt,ot){lt()?ot():pt(function(){ut(lt,ot)})},ht=function(){var lt=tt.getItem(st);if(lt&<!==$)return!1;if(tt.setItem(st,$),tt.getItem(st)===$)return!0;if(!localStorageSupported(tt,!0))throw new Error("localStorage support dropped while acquiring lock");return!1},mt=function(){tt.setItem(nt,$),ut(ht,function(){if(tt.getItem(nt)===$){at();return}pt(function(){if(tt.getItem(st)!==$){mt();return}ut(function(){return!tt.getItem(ft)},at)})})},at=function(){tt.setItem(ft,"1");try{i()}finally{tt.removeItem(ft),tt.getItem(st)===$&&tt.removeItem(st),tt.getItem(nt)===$&&tt.removeItem(nt)}};try{if(localStorageSupported(tt,!0))mt();else throw new Error("localStorage support check failed")}catch(lt){it(lt)}};var logger$1=console_with_prefix("batch"),RequestQueue=function(i,o){o=o||{},this.storageKey=i,this.storage=o.storage||window.localStorage,this.reportError=o.errorReporter||_.bind(logger$1.error,logger$1),this.lock=new SharedLock(i,{storage:this.storage}),this.pid=o.pid||null,this.memQueue=[]};RequestQueue.prototype.enqueue=function(i,o,g){var $={id:cheap_guid(),flushAfter:new Date().getTime()+o*2,payload:i};this.lock.withLock(_.bind(function(){var _e;try{var et=this.readFromStorage();et.push($),_e=this.saveToStorage(et),_e&&this.memQueue.push($)}catch{this.reportError("Error enqueueing item",i),_e=!1}g&&g(_e)},this),_.bind(function(_e){this.reportError("Error acquiring storage lock",_e),g&&g(!1)},this),this.pid)};RequestQueue.prototype.fillBatch=function(i){var o=this.memQueue.slice(0,i);if(o.length_e.flushAfter&&!$[_e.id]&&(_e.orphaned=!0,o.push(_e),o.length>=i))break}}}return o};var filterOutIDsAndInvalid=function(i,o){var g=[];return _.each(i,function($){$.id&&!o[$.id]&&g.push($)}),g};RequestQueue.prototype.removeItemsByID=function(i,o){var g={};_.each(i,function(j){g[j]=!0}),this.memQueue=filterOutIDsAndInvalid(this.memQueue,g);var $=_.bind(function(){var j;try{var _e=this.readFromStorage();if(_e=filterOutIDsAndInvalid(_e,g),j=this.saveToStorage(_e),j){_e=this.readFromStorage();for(var et=0;et<_e.length;et++){var rt=_e[et];if(rt.id&&g[rt.id])return this.reportError("Item not removed from storage"),!1}}}catch{this.reportError("Error removing items",i),j=!1}return j},this);this.lock.withLock(function(){var _e=$();o&&o(_e)},_.bind(function(_e){var et=!1;if(this.reportError("Error acquiring storage lock",_e),!localStorageSupported(this.storage,!0)&&(et=$(),!et))try{this.storage.removeItem(this.storageKey)}catch(rt){this.reportError("Error clearing queue",rt)}o&&o(et)},this),this.pid)};var updatePayloads=function(i,o){var g=[];return _.each(i,function($){var j=$.id;if(j in o){var _e=o[j];_e!==null&&($.payload=_e,g.push($))}else g.push($)}),g};RequestQueue.prototype.updatePayloads=function(i,o){this.memQueue=updatePayloads(this.memQueue,i),this.lock.withLock(_.bind(function(){var $;try{var j=this.readFromStorage();j=updatePayloads(j,i),$=this.saveToStorage(j)}catch{this.reportError("Error updating items",i),$=!1}o&&o($)},this),_.bind(function($){this.reportError("Error acquiring storage lock",$),o&&o(!1)},this),this.pid)};RequestQueue.prototype.readFromStorage=function(){var i;try{i=this.storage.getItem(this.storageKey),i&&(i=JSONParse(i),_.isArray(i)||(this.reportError("Invalid storage entry:",i),i=null))}catch(o){this.reportError("Error retrieving queue",o),i=null}return i||[]};RequestQueue.prototype.saveToStorage=function(i){try{return this.storage.setItem(this.storageKey,JSONStringify(i)),!0}catch(o){return this.reportError("Error saving queue",o),!1}};RequestQueue.prototype.clear=function(){this.memQueue=[],this.storage.removeItem(this.storageKey)};var MAX_RETRY_INTERVAL_MS=10*60*1e3,logger=console_with_prefix("batch"),RequestBatcher=function(i,o){this.errorReporter=o.errorReporter,this.queue=new RequestQueue(i,{errorReporter:_.bind(this.reportError,this),storage:o.storage}),this.libConfig=o.libConfig,this.sendRequest=o.sendRequestFunc,this.beforeSendHook=o.beforeSendHook,this.stopAllBatching=o.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={}};RequestBatcher.prototype.enqueue=function(i,o){this.queue.enqueue(i,this.flushInterval,o)};RequestBatcher.prototype.start=function(){this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()};RequestBatcher.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)};RequestBatcher.prototype.clear=function(){this.queue.clear()};RequestBatcher.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size};RequestBatcher.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)};RequestBatcher.prototype.scheduleFlush=function(i){this.flushInterval=i,this.stopped||(this.timeoutID=setTimeout(_.bind(this.flush,this),this.flushInterval))};RequestBatcher.prototype.flush=function(i){try{if(this.requestInProgress){logger.log("Flush: Request already in progress");return}i=i||{};var o=this.libConfig.batch_request_timeout_ms,g=new Date().getTime(),$=this.batchSize,j=this.queue.fillBatch($),_e=[],et={};if(_.each(j,function(nt){var st=nt.payload;if(this.beforeSendHook&&!nt.orphaned&&(st=this.beforeSendHook(st)),st){st.event&&st.properties&&(st.properties=_.extend({},st.properties,{mp_sent_by_lib_version:Config.LIB_VERSION}));var ft=!0,it=nt.id;it?(this.itemIdsSentSuccessfully[it]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:nt,batchSize:j.length,timesSent:this.itemIdsSentSuccessfully[it]}),ft=!1):this.reportError("[dupe] found item with no ID",{item:nt}),ft&&_e.push(st)}et[nt.id]=st},this),_e.length<1){this.resetFlush();return}this.requestInProgress=!0;var rt=_.bind(function(nt){this.requestInProgress=!1;try{var st=!1;if(i.unloading)this.queue.updatePayloads(et);else if(_.isObject(nt)&&nt.error==="timeout"&&new Date().getTime()-g>=o)this.reportError("Network timeout; retrying"),this.flush();else if(_.isObject(nt)&&nt.xhr_req&&(nt.xhr_req.status>=500||nt.xhr_req.status===429||nt.error==="timeout")){var ft=this.flushInterval*2,it=nt.xhr_req.responseHeaders;if(it){var pt=it["Retry-After"];pt&&(ft=parseInt(pt,10)*1e3||ft)}ft=Math.min(MAX_RETRY_INTERVAL_MS,ft),this.reportError("Error; retry in "+ft+" ms"),this.scheduleFlush(ft)}else if(_.isObject(nt)&&nt.xhr_req&&nt.xhr_req.status===413)if(j.length>1){var ut=Math.max(1,Math.floor($/2));this.batchSize=Math.min(this.batchSize,ut,j.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush()}else this.reportError("Single-event request too large; dropping",j),this.resetBatchSize(),st=!0;else st=!0;st&&(this.queue.removeItemsByID(_.map(j,function(ht){return ht.id}),_.bind(function(ht){ht?(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)),_.each(j,_.bind(function(ht){var mt=ht.id;mt?(this.itemIdsSentSuccessfully[mt]=this.itemIdsSentSuccessfully[mt]||0,this.itemIdsSentSuccessfully[mt]++,this.itemIdsSentSuccessfully[mt]>5&&this.reportError("[dupe] item ID sent too many times",{item:ht,batchSize:j.length,timesSent:this.itemIdsSentSuccessfully[mt]})):this.reportError("[dupe] found item with no ID while removing",{item:ht})},this)))}catch(ht){this.reportError("Error handling API response",ht),this.resetFlush()}},this),tt={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:o};i.unloading&&(tt.transport="sendBeacon"),logger.log("MIXPANEL REQUEST:",_e),this.sendRequest(_e,tt,rt)}catch(nt){this.reportError("Error flushing request queue",nt),this.resetFlush()}};RequestBatcher.prototype.reportError=function(i,o){if(logger.error.apply(logger.error,arguments),this.errorReporter)try{o instanceof Error||(o=new Error(i)),this.errorReporter(i,o)}catch(g){logger.error(g)}};var GDPR_DEFAULT_PERSISTENCE_PREFIX="__mp_opt_in_out_";function optIn(i,o){_optInOut(!0,i,o)}function optOut(i,o){_optInOut(!1,i,o)}function hasOptedIn(i,o){return _getStorageValue(i,o)==="1"}function hasOptedOut(i,o){if(_hasDoNotTrackFlagOn(o))return console$1.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 g=_getStorageValue(i,o)==="0";return g&&console$1.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),g}function addOptOutCheckMixpanelLib(i){return _addOptOutCheck(i,function(o){return this.get_config(o)})}function addOptOutCheckMixpanelPeople(i){return _addOptOutCheck(i,function(o){return this._get_config(o)})}function addOptOutCheckMixpanelGroup(i){return _addOptOutCheck(i,function(o){return this._get_config(o)})}function clearOptInOut(i,o){o=o||{},_getStorage(o).remove(_getStorageKey(i,o),!!o.crossSubdomainCookie,o.cookieDomain)}function _getStorage(i){return i=i||{},i.persistenceType==="localStorage"?_.localStorage:_.cookie}function _getStorageKey(i,o){return o=o||{},(o.persistencePrefix||GDPR_DEFAULT_PERSISTENCE_PREFIX)+i}function _getStorageValue(i,o){return _getStorage(o).get(_getStorageKey(i,o))}function _hasDoNotTrackFlagOn(i){if(i&&i.ignoreDnt)return!1;var o=i&&i.window||window$1,g=o.navigator||{},$=!1;return _.each([g.doNotTrack,g.msDoNotTrack,o.doNotTrack],function(j){_.includes([!0,1,"1","yes"],j)&&($=!0)}),$}function _optInOut(i,o,g){if(!_.isString(o)||!o.length){console$1.error("gdpr."+(i?"optIn":"optOut")+" called with an invalid token");return}g=g||{},_getStorage(g).set(_getStorageKey(o,g),i?1:0,_.isNumber(g.cookieExpiration)?g.cookieExpiration:null,!!g.crossSubdomainCookie,!!g.secureCookie,!!g.crossSiteCookie,g.cookieDomain),g.track&&i&&g.track(g.trackEventName||"$opt_in",g.trackProperties,{send_immediately:!0})}function _addOptOutCheck(i,o){return function(){var g=!1;try{var $=o.call(this,"token"),j=o.call(this,"ignore_dnt"),_e=o.call(this,"opt_out_tracking_persistence_type"),et=o.call(this,"opt_out_tracking_cookie_prefix"),rt=o.call(this,"window");$&&(g=hasOptedOut($,{ignoreDnt:j,persistenceType:_e,persistencePrefix:et,window:rt}))}catch(nt){console$1.error("Unexpected error when checking tracking opt-out status: "+nt)}if(!g)return i.apply(this,arguments);var tt=arguments[arguments.length-1];typeof tt=="function"&&tt(0)}}var SET_ACTION="$set",SET_ONCE_ACTION="$set_once",UNSET_ACTION="$unset",ADD_ACTION="$add",APPEND_ACTION="$append",UNION_ACTION="$union",REMOVE_ACTION="$remove",DELETE_ACTION="$delete",apiActions={set_action:function(i,o){var g={},$={};return _.isObject(i)?_.each(i,function(j,_e){this._is_reserved_property(_e)||($[_e]=j)},this):$[i]=o,g[SET_ACTION]=$,g},unset_action:function(i){var o={},g=[];return _.isArray(i)||(i=[i]),_.each(i,function($){this._is_reserved_property($)||g.push($)},this),o[UNSET_ACTION]=g,o},set_once_action:function(i,o){var g={},$={};return _.isObject(i)?_.each(i,function(j,_e){this._is_reserved_property(_e)||($[_e]=j)},this):$[i]=o,g[SET_ONCE_ACTION]=$,g},union_action:function(i,o){var g={},$={};return _.isObject(i)?_.each(i,function(j,_e){this._is_reserved_property(_e)||($[_e]=_.isArray(j)?j:[j])},this):$[i]=_.isArray(o)?o:[o],g[UNION_ACTION]=$,g},append_action:function(i,o){var g={},$={};return _.isObject(i)?_.each(i,function(j,_e){this._is_reserved_property(_e)||($[_e]=j)},this):$[i]=o,g[APPEND_ACTION]=$,g},remove_action:function(i,o){var g={},$={};return _.isObject(i)?_.each(i,function(j,_e){this._is_reserved_property(_e)||($[_e]=j)},this):$[i]=o,g[REMOVE_ACTION]=$,g},delete_action:function(){var i={};return i[DELETE_ACTION]="",i}},MixpanelGroup=function(){};_.extend(MixpanelGroup.prototype,apiActions);MixpanelGroup.prototype._init=function(i,o,g){this._mixpanel=i,this._group_key=o,this._group_id=g};MixpanelGroup.prototype.set=addOptOutCheckMixpanelGroup(function(i,o,g){var $=this.set_action(i,o);return _.isObject(i)&&(g=o),this._send_request($,g)});MixpanelGroup.prototype.set_once=addOptOutCheckMixpanelGroup(function(i,o,g){var $=this.set_once_action(i,o);return _.isObject(i)&&(g=o),this._send_request($,g)});MixpanelGroup.prototype.unset=addOptOutCheckMixpanelGroup(function(i,o){var g=this.unset_action(i);return this._send_request(g,o)});MixpanelGroup.prototype.union=addOptOutCheckMixpanelGroup(function(i,o,g){_.isObject(i)&&(g=o);var $=this.union_action(i,o);return this._send_request($,g)});MixpanelGroup.prototype.delete=addOptOutCheckMixpanelGroup(function(i){var o=this.delete_action();return this._send_request(o,i)});MixpanelGroup.prototype.remove=addOptOutCheckMixpanelGroup(function(i,o,g){var $=this.remove_action(i,o);return this._send_request($,g)});MixpanelGroup.prototype._send_request=function(i,o){i.$group_key=this._group_key,i.$group_id=this._group_id,i.$token=this._get_config("token");var g=_.encodeDates(i);return this._mixpanel._track_or_batch({type:"groups",data:g,endpoint:this._get_config("api_host")+"/groups/",batcher:this._mixpanel.request_batchers.groups},o)};MixpanelGroup.prototype._is_reserved_property=function(i){return i==="$group_key"||i==="$group_id"};MixpanelGroup.prototype._get_config=function(i){return this._mixpanel.get_config(i)};MixpanelGroup.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id};MixpanelGroup.prototype.remove=MixpanelGroup.prototype.remove;MixpanelGroup.prototype.set=MixpanelGroup.prototype.set;MixpanelGroup.prototype.set_once=MixpanelGroup.prototype.set_once;MixpanelGroup.prototype.union=MixpanelGroup.prototype.union;MixpanelGroup.prototype.unset=MixpanelGroup.prototype.unset;MixpanelGroup.prototype.toString=MixpanelGroup.prototype.toString;var MixpanelPeople=function(){};_.extend(MixpanelPeople.prototype,apiActions);MixpanelPeople.prototype._init=function(i){this._mixpanel=i};MixpanelPeople.prototype.set=addOptOutCheckMixpanelPeople(function(i,o,g){var $=this.set_action(i,o);return _.isObject(i)&&(g=o),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),$[SET_ACTION]=_.extend({},_.info.people_properties(),this._mixpanel.persistence.get_referrer_info(),$[SET_ACTION]),this._send_request($,g)});MixpanelPeople.prototype.set_once=addOptOutCheckMixpanelPeople(function(i,o,g){var $=this.set_once_action(i,o);return _.isObject(i)&&(g=o),this._send_request($,g)});MixpanelPeople.prototype.unset=addOptOutCheckMixpanelPeople(function(i,o){var g=this.unset_action(i);return this._send_request(g,o)});MixpanelPeople.prototype.increment=addOptOutCheckMixpanelPeople(function(i,o,g){var $={},j={};return _.isObject(i)?(_.each(i,function(_e,et){if(!this._is_reserved_property(et))if(isNaN(parseFloat(_e))){console$1.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}else j[et]=_e},this),g=o):(_.isUndefined(o)&&(o=1),j[i]=o),$[ADD_ACTION]=j,this._send_request($,g)});MixpanelPeople.prototype.append=addOptOutCheckMixpanelPeople(function(i,o,g){_.isObject(i)&&(g=o);var $=this.append_action(i,o);return this._send_request($,g)});MixpanelPeople.prototype.remove=addOptOutCheckMixpanelPeople(function(i,o,g){_.isObject(i)&&(g=o);var $=this.remove_action(i,o);return this._send_request($,g)});MixpanelPeople.prototype.union=addOptOutCheckMixpanelPeople(function(i,o,g){_.isObject(i)&&(g=o);var $=this.union_action(i,o);return this._send_request($,g)});MixpanelPeople.prototype.track_charge=addOptOutCheckMixpanelPeople(function(i,o,g){if(!_.isNumber(i)&&(i=parseFloat(i),isNaN(i))){console$1.error("Invalid value passed to mixpanel.people.track_charge - must be a number");return}return this.append("$transactions",_.extend({$amount:i},o),g)});MixpanelPeople.prototype.clear_charges=function(i){return this.set("$transactions",[],i)};MixpanelPeople.prototype.delete_user=function(){if(!this._identify_called()){console$1.error("mixpanel.people.delete_user() requires you to call identify() first");return}var i={$delete:this._mixpanel.get_distinct_id()};return this._send_request(i)};MixpanelPeople.prototype.toString=function(){return this._mixpanel.toString()+".people"};MixpanelPeople.prototype._send_request=function(i,o){i.$token=this._get_config("token"),i.$distinct_id=this._mixpanel.get_distinct_id();var g=this._mixpanel.get_property("$device_id"),$=this._mixpanel.get_property("$user_id"),j=this._mixpanel.get_property("$had_persisted_distinct_id");g&&(i.$device_id=g),$&&(i.$user_id=$),j&&(i.$had_persisted_distinct_id=j);var _e=_.encodeDates(i);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:_e,endpoint:this._get_config("api_host")+"/engage/",batcher:this._mixpanel.request_batchers.people},o):(this._enqueue(i),_.isUndefined(o)||(this._get_config("verbose")?o({status:-1,error:null}):o(-1)),_.truncate(_e,255))};MixpanelPeople.prototype._get_config=function(i){return this._mixpanel.get_config(i)};MixpanelPeople.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0};MixpanelPeople.prototype._enqueue=function(i){SET_ACTION in i?this._mixpanel.persistence._add_to_people_queue(SET_ACTION,i):SET_ONCE_ACTION in i?this._mixpanel.persistence._add_to_people_queue(SET_ONCE_ACTION,i):UNSET_ACTION in i?this._mixpanel.persistence._add_to_people_queue(UNSET_ACTION,i):ADD_ACTION in i?this._mixpanel.persistence._add_to_people_queue(ADD_ACTION,i):APPEND_ACTION in i?this._mixpanel.persistence._add_to_people_queue(APPEND_ACTION,i):REMOVE_ACTION in i?this._mixpanel.persistence._add_to_people_queue(REMOVE_ACTION,i):UNION_ACTION in i?this._mixpanel.persistence._add_to_people_queue(UNION_ACTION,i):console$1.error("Invalid call to _enqueue():",i)};MixpanelPeople.prototype._flush_one_queue=function(i,o,g,$){var j=this,_e=_.extend({},this._mixpanel.persistence._get_queue(i)),et=_e;!_.isUndefined(_e)&&_.isObject(_e)&&!_.isEmptyObject(_e)&&(j._mixpanel.persistence._pop_from_people_queue(i,_e),$&&(et=$(_e)),o.call(j,et,function(rt,tt){rt===0&&j._mixpanel.persistence._add_to_people_queue(i,_e),_.isUndefined(g)||g(rt,tt)}))};MixpanelPeople.prototype._flush=function(i,o,g,$,j,_e,et){var rt=this,tt=this._mixpanel.persistence._get_queue(APPEND_ACTION),nt=this._mixpanel.persistence._get_queue(REMOVE_ACTION);if(this._flush_one_queue(SET_ACTION,this.set,i),this._flush_one_queue(SET_ONCE_ACTION,this.set_once,$),this._flush_one_queue(UNSET_ACTION,this.unset,_e,function(mt){return _.keys(mt)}),this._flush_one_queue(ADD_ACTION,this.increment,o),this._flush_one_queue(UNION_ACTION,this.union,j),!_.isUndefined(tt)&&_.isArray(tt)&&tt.length){for(var st,ft=function(mt,at){mt===0&&rt._mixpanel.persistence._add_to_people_queue(APPEND_ACTION,st),_.isUndefined(g)||g(mt,at)},it=tt.length-1;it>=0;it--)st=tt.pop(),_.isEmptyObject(st)||rt.append(st,ft);rt._mixpanel.persistence.save()}if(!_.isUndefined(nt)&&_.isArray(nt)&&nt.length){for(var pt,ut=function(mt,at){mt===0&&rt._mixpanel.persistence._add_to_people_queue(REMOVE_ACTION,pt),_.isUndefined(et)||et(mt,at)},ht=nt.length-1;ht>=0;ht--)pt=nt.pop(),_.isEmptyObject(pt)||rt.remove(pt,ut);rt._mixpanel.persistence.save()}};MixpanelPeople.prototype._is_reserved_property=function(i){return i==="$distinct_id"||i==="$token"||i==="$device_id"||i==="$user_id"||i==="$had_persisted_distinct_id"};MixpanelPeople.prototype.set=MixpanelPeople.prototype.set;MixpanelPeople.prototype.set_once=MixpanelPeople.prototype.set_once;MixpanelPeople.prototype.unset=MixpanelPeople.prototype.unset;MixpanelPeople.prototype.increment=MixpanelPeople.prototype.increment;MixpanelPeople.prototype.append=MixpanelPeople.prototype.append;MixpanelPeople.prototype.remove=MixpanelPeople.prototype.remove;MixpanelPeople.prototype.union=MixpanelPeople.prototype.union;MixpanelPeople.prototype.track_charge=MixpanelPeople.prototype.track_charge;MixpanelPeople.prototype.clear_charges=MixpanelPeople.prototype.clear_charges;MixpanelPeople.prototype.delete_user=MixpanelPeople.prototype.delete_user;MixpanelPeople.prototype.toString=MixpanelPeople.prototype.toString;var SET_QUEUE_KEY="__mps",SET_ONCE_QUEUE_KEY="__mpso",UNSET_QUEUE_KEY="__mpus",ADD_QUEUE_KEY="__mpa",APPEND_QUEUE_KEY="__mpap",REMOVE_QUEUE_KEY="__mpr",UNION_QUEUE_KEY="__mpu",PEOPLE_DISTINCT_ID_KEY="$people_distinct_id",ALIAS_ID_KEY="__alias",EVENT_TIMERS_KEY="__timers",RESERVED_PROPERTIES=[SET_QUEUE_KEY,SET_ONCE_QUEUE_KEY,UNSET_QUEUE_KEY,ADD_QUEUE_KEY,APPEND_QUEUE_KEY,REMOVE_QUEUE_KEY,UNION_QUEUE_KEY,PEOPLE_DISTINCT_ID_KEY,ALIAS_ID_KEY,EVENT_TIMERS_KEY],MixpanelPersistence=function(i){this.props={},this.campaign_params_saved=!1,i.persistence_name?this.name="mp_"+i.persistence_name:this.name="mp_"+i.token+"_mixpanel";var o=i.persistence;o!=="cookie"&&o!=="localStorage"&&(console$1.critical("Unknown persistence type "+o+"; falling back to cookie"),o=i.persistence="cookie"),o==="localStorage"&&_.localStorage.is_supported()?this.storage=_.localStorage:this.storage=_.cookie,this.load(),this.update_config(i),this.upgrade(i),this.save()};MixpanelPersistence.prototype.properties=function(){var i={};return _.each(this.props,function(o,g){_.include(RESERVED_PROPERTIES,g)||(i[g]=o)}),i};MixpanelPersistence.prototype.load=function(){if(!this.disabled){var i=this.storage.parse(this.name);i&&(this.props=_.extend({},i))}};MixpanelPersistence.prototype.upgrade=function(i){var o=i.upgrade,g,$;o&&(g="mp_super_properties",typeof o=="string"&&(g=o),$=this.storage.parse(g),this.storage.remove(g),this.storage.remove(g,!0),$&&(this.props=_.extend(this.props,$.all,$.events))),!i.cookie_name&&i.name!=="mixpanel"&&(g="mp_"+i.token+"_"+i.name,$=this.storage.parse(g),$&&(this.storage.remove(g),this.storage.remove(g,!0),this.register_once($))),this.storage===_.localStorage&&($=_.cookie.parse(this.name),_.cookie.remove(this.name),_.cookie.remove(this.name,!0),$&&this.register_once($))};MixpanelPersistence.prototype.save=function(){this.disabled||this.storage.set(this.name,_.JSONEncode(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)};MixpanelPersistence.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)};MixpanelPersistence.prototype.clear=function(){this.remove(),this.props={}};MixpanelPersistence.prototype.register_once=function(i,o,g){return _.isObject(i)?(typeof o>"u"&&(o="None"),this.expire_days=typeof g>"u"?this.default_expiry:g,_.each(i,function($,j){(!this.props.hasOwnProperty(j)||this.props[j]===o)&&(this.props[j]=$)},this),this.save(),!0):!1};MixpanelPersistence.prototype.register=function(i,o){return _.isObject(i)?(this.expire_days=typeof o>"u"?this.default_expiry:o,_.extend(this.props,i),this.save(),!0):!1};MixpanelPersistence.prototype.unregister=function(i){i in this.props&&(delete this.props[i],this.save())};MixpanelPersistence.prototype.update_search_keyword=function(i){this.register(_.info.searchInfo(i))};MixpanelPersistence.prototype.update_referrer_info=function(i){this.register_once({$initial_referrer:i||"$direct",$initial_referring_domain:_.info.referringDomain(i)||"$direct"},"")};MixpanelPersistence.prototype.get_referrer_info=function(){return _.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})};MixpanelPersistence.prototype.safe_merge=function(i){return _.each(this.props,function(o,g){g in i||(i[g]=o)}),i};MixpanelPersistence.prototype.update_config=function(i){this.default_expiry=this.expire_days=i.cookie_expiration,this.set_disabled(i.disable_persistence),this.set_cookie_domain(i.cookie_domain),this.set_cross_site(i.cross_site_cookie),this.set_cross_subdomain(i.cross_subdomain_cookie),this.set_secure(i.secure_cookie)};MixpanelPersistence.prototype.set_disabled=function(i){this.disabled=i,this.disabled?this.remove():this.save()};MixpanelPersistence.prototype.set_cookie_domain=function(i){i!==this.cookie_domain&&(this.remove(),this.cookie_domain=i,this.save())};MixpanelPersistence.prototype.set_cross_site=function(i){i!==this.cross_site&&(this.cross_site=i,this.remove(),this.save())};MixpanelPersistence.prototype.set_cross_subdomain=function(i){i!==this.cross_subdomain&&(this.cross_subdomain=i,this.remove(),this.save())};MixpanelPersistence.prototype.get_cross_subdomain=function(){return this.cross_subdomain};MixpanelPersistence.prototype.set_secure=function(i){i!==this.secure&&(this.secure=!!i,this.remove(),this.save())};MixpanelPersistence.prototype._add_to_people_queue=function(i,o){var g=this._get_queue_key(i),$=o[i],j=this._get_or_create_queue(SET_ACTION),_e=this._get_or_create_queue(SET_ONCE_ACTION),et=this._get_or_create_queue(UNSET_ACTION),rt=this._get_or_create_queue(ADD_ACTION),tt=this._get_or_create_queue(UNION_ACTION),nt=this._get_or_create_queue(REMOVE_ACTION,[]),st=this._get_or_create_queue(APPEND_ACTION,[]);g===SET_QUEUE_KEY?(_.extend(j,$),this._pop_from_people_queue(ADD_ACTION,$),this._pop_from_people_queue(UNION_ACTION,$),this._pop_from_people_queue(UNSET_ACTION,$)):g===SET_ONCE_QUEUE_KEY?(_.each($,function(ft,it){it in _e||(_e[it]=ft)}),this._pop_from_people_queue(UNSET_ACTION,$)):g===UNSET_QUEUE_KEY?_.each($,function(ft){_.each([j,_e,rt,tt],function(it){ft in it&&delete it[ft]}),_.each(st,function(it){ft in it&&delete it[ft]}),et[ft]=!0}):g===ADD_QUEUE_KEY?(_.each($,function(ft,it){it in j?j[it]+=ft:(it in rt||(rt[it]=0),rt[it]+=ft)},this),this._pop_from_people_queue(UNSET_ACTION,$)):g===UNION_QUEUE_KEY?(_.each($,function(ft,it){_.isArray(ft)&&(it in tt||(tt[it]=[]),tt[it]=tt[it].concat(ft))}),this._pop_from_people_queue(UNSET_ACTION,$)):g===REMOVE_QUEUE_KEY?(nt.push($),this._pop_from_people_queue(APPEND_ACTION,$)):g===APPEND_QUEUE_KEY&&(st.push($),this._pop_from_people_queue(UNSET_ACTION,$)),console$1.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),console$1.log(o),this.save()};MixpanelPersistence.prototype._pop_from_people_queue=function(i,o){var g=this._get_queue(i);_.isUndefined(g)||(_.each(o,function($,j){i===APPEND_ACTION||i===REMOVE_ACTION?_.each(g,function(_e){_e[j]===$&&delete _e[j]}):delete g[j]},this),this.save())};MixpanelPersistence.prototype._get_queue_key=function(i){if(i===SET_ACTION)return SET_QUEUE_KEY;if(i===SET_ONCE_ACTION)return SET_ONCE_QUEUE_KEY;if(i===UNSET_ACTION)return UNSET_QUEUE_KEY;if(i===ADD_ACTION)return ADD_QUEUE_KEY;if(i===APPEND_ACTION)return APPEND_QUEUE_KEY;if(i===REMOVE_ACTION)return REMOVE_QUEUE_KEY;if(i===UNION_ACTION)return UNION_QUEUE_KEY;console$1.error("Invalid queue:",i)};MixpanelPersistence.prototype._get_queue=function(i){return this.props[this._get_queue_key(i)]};MixpanelPersistence.prototype._get_or_create_queue=function(i,o){var g=this._get_queue_key(i);return o=_.isUndefined(o)?{}:o,this.props[g]||(this.props[g]=o)};MixpanelPersistence.prototype.set_event_timer=function(i,o){var g=this.props[EVENT_TIMERS_KEY]||{};g[i]=o,this.props[EVENT_TIMERS_KEY]=g,this.save()};MixpanelPersistence.prototype.remove_event_timer=function(i){var o=this.props[EVENT_TIMERS_KEY]||{},g=o[i];return _.isUndefined(g)||(delete this.props[EVENT_TIMERS_KEY][i],this.save()),g};var init_type,mixpanel_master,INIT_MODULE=0,INIT_SNIPPET=1,IDENTITY_FUNC=function(i){return i},NOOP_FUNC=function(){},PRIMARY_INSTANCE_NAME="mixpanel",PAYLOAD_TYPE_BASE64="base64",PAYLOAD_TYPE_JSON="json",DEVICE_ID_PREFIX="$device:",USE_XHR=window$1.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,ENQUEUE_REQUESTS=!USE_XHR&&userAgent.indexOf("MSIE")===-1&&userAgent.indexOf("Mozilla")===-1,sendBeacon=null;navigator$1.sendBeacon&&(sendBeacon=function(){return navigator$1.sendBeacon.apply(navigator$1,arguments)});var DEFAULT_CONFIG={api_host:"https://api-js.mixpanel.com",api_method:"POST",api_transport:"XHR",api_payload_format:PAYLOAD_TYPE_BASE64,app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:NOOP_FUNC,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:NOOP_FUNC,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:{}},DOM_LOADED=!1,MixpanelLib=function(){},create_mplib=function(i,o,g){var $,j=g===PRIMARY_INSTANCE_NAME?mixpanel_master:mixpanel_master[g];if(j&&init_type===INIT_MODULE)$=j;else{if(j&&!_.isArray(j)){console$1.error("You have already initialized "+g);return}$=new MixpanelLib}if($._cached_groups={},$._init(i,o,g),$.people=new MixpanelPeople,$.people._init($),!$.get_config("skip_first_touch_marketing")){var _e=_.info.campaignParams(null),et={},rt=!1;_.each(_e,function(tt,nt){et["initial_"+nt]=tt,tt&&(rt=!0)}),rt&&$.people.set_once(et)}return Config.DEBUG=Config.DEBUG||$.get_config("debug"),!_.isUndefined(j)&&_.isArray(j)&&($._execute_array.call($.people,j.people),$._execute_array(j)),$};MixpanelLib.prototype.init=function(i,o,g){if(_.isUndefined(g)){this.report_error("You must name your new library: init(token, config, name)");return}if(g===PRIMARY_INSTANCE_NAME){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var $=create_mplib(i,o,g);return mixpanel_master[g]=$,$._loaded(),$};MixpanelLib.prototype._init=function(i,o,g){o=o||{},this.__loaded=!0,this.config={};var $={};if(!("api_payload_format"in o)){var j=o.api_host||DEFAULT_CONFIG.api_host;j.match(/\.mixpanel\.com/)&&($.api_payload_format=PAYLOAD_TYPE_JSON)}if(this.set_config(_.extend({},DEFAULT_CONFIG,$,o,{name:g,token:i,callback_fn:(g===PRIMARY_INSTANCE_NAME?g:PRIMARY_INSTANCE_NAME+"."+g)+"._jsc"})),this._jsc=NOOP_FUNC,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(!_.localStorage.is_supported(!0)||!USE_XHR)this._batch_requests=!1,console$1.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support");else if(this.init_batchers(),sendBeacon&&window$1.addEventListener){var _e=_.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);window$1.addEventListener("pagehide",function(rt){rt.persisted&&_e()}),window$1.addEventListener("visibilitychange",function(){document$1.visibilityState==="hidden"&&_e()})}}this.persistence=this.cookie=new MixpanelPersistence(this.config),this.unpersisted_superprops={},this._gdpr_init();var et=_.UUID();this.get_distinct_id()||this.register_once({distinct_id:DEVICE_ID_PREFIX+et,$device_id:et},""),this.get_config("track_pageview")&&this.track_pageview()};MixpanelLib.prototype._loaded=function(){this.get_config("loaded")(this),this._set_default_superprops()};MixpanelLib.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(document$1.referrer),this.get_config("store_google")&&this.register(_.info.campaignParams(),{persistent:!1}),this.get_config("save_referrer")&&this.persistence.update_referrer_info(document$1.referrer)};MixpanelLib.prototype._dom_loaded=function(){_.each(this.__dom_loaded_queue,function(i){this._track_dom.apply(this,i)},this),this.has_opted_out_tracking()||_.each(this.__request_queue,function(i){this._send_request.apply(this,i)},this),delete this.__dom_loaded_queue,delete this.__request_queue};MixpanelLib.prototype._track_dom=function(i,o){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!DOM_LOADED)return this.__dom_loaded_queue.push([i,o]),!1;var g=new i().init(this);return g.track.apply(g,o)};MixpanelLib.prototype._prepare_callback=function(i,o){if(_.isUndefined(i))return null;if(USE_XHR){var g=function(et){i(et,o)};return g}else{var $=this._jsc,j=""+Math.floor(Math.random()*1e8),_e=this.get_config("callback_fn")+"["+j+"]";return $[j]=function(et){delete $[j],i(et,o)},_e}};MixpanelLib.prototype._send_request=function(i,o,g,$){var j=!0;if(ENQUEUE_REQUESTS)return this.__request_queue.push(arguments),j;var _e={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},et=null;!$&&(_.isFunction(g)||typeof g=="string")&&($=g,g=null),g=_.extend(_e,g||{}),USE_XHR||(g.method="GET");var rt=g.method==="POST",tt=sendBeacon&&rt&&g.transport.toLowerCase()==="sendbeacon",nt=g.verbose;o.verbose&&(nt=!0),this.get_config("test")&&(o.test=1),nt&&(o.verbose=1),this.get_config("img")&&(o.img=1),USE_XHR||($?o.callback=$:(nt||this.get_config("test"))&&(o.callback="(function(){})")),o.ip=this.get_config("ip")?1:0,o._=new Date().getTime().toString(),rt&&(et="data="+encodeURIComponent(o.data),delete o.data),i+="?"+_.HTTPBuildQuery(o);var st=this;if("img"in o){var ft=document$1.createElement("img");ft.src=i,document$1.body.appendChild(ft)}else if(tt){try{j=sendBeacon(i,et)}catch(at){st.report_error(at),j=!1}try{$&&$(j?1:0)}catch(at){st.report_error(at)}}else if(USE_XHR)try{var it=new XMLHttpRequest;it.open(g.method,i,!0);var pt=this.get_config("xhr_headers");if(rt&&(pt["Content-Type"]="application/x-www-form-urlencoded"),_.each(pt,function(at,lt){it.setRequestHeader(lt,at)}),g.timeout_ms&&typeof it.timeout<"u"){it.timeout=g.timeout_ms;var ut=new Date().getTime()}it.withCredentials=!0,it.onreadystatechange=function(){if(it.readyState===4)if(it.status===200){if($)if(nt){var at;try{at=_.JSONDecode(it.responseText)}catch(ot){if(st.report_error(ot),g.ignore_json_errors)at=it.responseText;else return}$(at)}else $(Number(it.responseText))}else{var lt;it.timeout&&!it.status&&new Date().getTime()-ut>=it.timeout?lt="timeout":lt="Bad HTTP status: "+it.status+" "+it.statusText,st.report_error(lt),$&&$(nt?{status:0,error:lt,xhr_req:it}:0)}},it.send(et)}catch(at){st.report_error(at),j=!1}else{var ht=document$1.createElement("script");ht.type="text/javascript",ht.async=!0,ht.defer=!0,ht.src=i;var mt=document$1.getElementsByTagName("script")[0];mt.parentNode.insertBefore(ht,mt)}return j};MixpanelLib.prototype._execute_array=function(i){var o,g=[],$=[],j=[];_.each(i,function(et){et&&(o=et[0],_.isArray(o)?j.push(et):typeof et=="function"?et.call(this):_.isArray(et)&&o==="alias"?g.push(et):_.isArray(et)&&o.indexOf("track")!==-1&&typeof this[o]=="function"?j.push(et):$.push(et))},this);var _e=function(et,rt){_.each(et,function(tt){if(_.isArray(tt[0])){var nt=rt;_.each(tt,function(st){nt=nt[st[0]].apply(nt,st.slice(1))})}else this[tt[0]].apply(this,tt.slice(1))},rt)};_e(g,this),_e($,this),_e(j,this)};MixpanelLib.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events};MixpanelLib.prototype.init_batchers=function(){var i=this.get_config("token");if(!this.are_batchers_initialized()){var o=_.bind(function(g){return new RequestBatcher("__mpq_"+i+g.queue_suffix,{libConfig:this.config,sendRequestFunc:_.bind(function($,j,_e){this._send_request(this.get_config("api_host")+g.endpoint,this._encode_data_for_request($),j,this._prepare_callback(_e,$))},this),beforeSendHook:_.bind(function($){return this._run_hook("before_send_"+g.type,$)},this),errorReporter:this.get_config("error_reporter"),stopAllBatchingFunc:_.bind(this.stop_batch_senders,this)})},this);this.request_batchers={events:o({type:"events",endpoint:"/track/",queue_suffix:"_ev"}),people:o({type:"people",endpoint:"/engage/",queue_suffix:"_pp"}),groups:o({type:"groups",endpoint:"/groups/",queue_suffix:"_gr"})}}this.get_config("batch_autostart")&&this.start_batch_senders()};MixpanelLib.prototype.start_batch_senders=function(){this.are_batchers_initialized()&&(this._batch_requests=!0,_.each(this.request_batchers,function(i){i.start()}))};MixpanelLib.prototype.stop_batch_senders=function(){this._batch_requests=!1,_.each(this.request_batchers,function(i){i.stop(),i.clear()})};MixpanelLib.prototype.push=function(i){this._execute_array([i])};MixpanelLib.prototype.disable=function(i){typeof i>"u"?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(i)};MixpanelLib.prototype._encode_data_for_request=function(i){var o=_.JSONEncode(i);return this.get_config("api_payload_format")===PAYLOAD_TYPE_BASE64&&(o=_.base64Encode(o)),{data:o}};MixpanelLib.prototype._track_or_batch=function(i,o){var g=_.truncate(i.data,255),$=i.endpoint,j=i.batcher,_e=i.should_send_immediately,et=i.send_request_options||{};o=o||NOOP_FUNC;var rt=!0,tt=_.bind(function(){return et.skip_hooks||(g=this._run_hook("before_send_"+i.type,g)),g?(console$1.log("MIXPANEL REQUEST:"),console$1.log(g),this._send_request($,this._encode_data_for_request(g),et,this._prepare_callback(o,g))):null},this);return this._batch_requests&&!_e?j.enqueue(g,function(nt){nt?o(1,g):tt()}):rt=tt(),rt&&g};MixpanelLib.prototype.track=addOptOutCheckMixpanelLib(function(i,o,g,$){!$&&typeof g=="function"&&($=g,g=null),g=g||{};var j=g.transport;j&&(g.transport=j);var _e=g.send_immediately;if(typeof $!="function"&&($=NOOP_FUNC),_.isUndefined(i)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(i)){$(0);return}o=o||{},o.token=this.get_config("token");var et=this.persistence.remove_event_timer(i);if(!_.isUndefined(et)){var rt=new Date().getTime()-et;o.$duration=parseFloat((rt/1e3).toFixed(3))}this._set_default_superprops();var tt=this.get_config("track_marketing")?_.info.marketingParams():{};o=_.extend({},_.info.properties(),tt,this.persistence.properties(),this.unpersisted_superprops,o);var nt=this.get_config("property_blacklist");_.isArray(nt)?_.each(nt,function(it){delete o[it]}):this.report_error("Invalid value for property_blacklist config: "+nt);var st={event:i,properties:o},ft=this._track_or_batch({type:"events",data:st,endpoint:this.get_config("api_host")+"/track/",batcher:this.request_batchers.events,should_send_immediately:_e,send_request_options:g},$);return ft});MixpanelLib.prototype.set_group=addOptOutCheckMixpanelLib(function(i,o,g){_.isArray(o)||(o=[o]);var $={};return $[i]=o,this.register($),this.people.set(i,o,g)});MixpanelLib.prototype.add_group=addOptOutCheckMixpanelLib(function(i,o,g){var $=this.get_property(i);if($===void 0){var j={};j[i]=[o],this.register(j)}else $.indexOf(o)===-1&&($.push(o),this.register(j));return this.people.union(i,o,g)});MixpanelLib.prototype.remove_group=addOptOutCheckMixpanelLib(function(i,o,g){var $=this.get_property(i);if($!==void 0){var j=$.indexOf(o);j>-1&&($.splice(j,1),this.register({group_key:$})),$.length===0&&this.unregister(i)}return this.people.remove(i,o,g)});MixpanelLib.prototype.track_with_groups=addOptOutCheckMixpanelLib(function(i,o,g,$){var j=_.extend({},o||{});return _.each(g,function(_e,et){_e!=null&&(j[et]=_e)}),this.track(i,j,$)});MixpanelLib.prototype._create_map_key=function(i,o){return i+"_"+JSON.stringify(o)};MixpanelLib.prototype._remove_group_from_cache=function(i,o){delete this._cached_groups[this._create_map_key(i,o)]};MixpanelLib.prototype.get_group=function(i,o){var g=this._create_map_key(i,o),$=this._cached_groups[g];return($===void 0||$._group_key!==i||$._group_id!==o)&&($=new MixpanelGroup,$._init(this,i,o),this._cached_groups[g]=$),$};MixpanelLib.prototype.track_pageview=addOptOutCheckMixpanelLib(function(i,o){typeof i!="object"&&(i={}),o=o||{};var g=o.event_name||"$mp_web_page_view",$=_.extend(_.info.mpPageViewProperties(),_.info.campaignParams(),_.info.clickParams()),j=_.extend({},$,i);return this.track(g,j)});MixpanelLib.prototype.track_links=function(){return this._track_dom.call(this,LinkTracker,arguments)};MixpanelLib.prototype.track_forms=function(){return this._track_dom.call(this,FormTracker,arguments)};MixpanelLib.prototype.time_event=function(i){if(_.isUndefined(i)){this.report_error("No event name provided to mixpanel.time_event");return}this._event_is_disabled(i)||this.persistence.set_event_timer(i,new Date().getTime())};var REGISTER_DEFAULTS={persistent:!0},options_for_register=function(i){var o;return _.isObject(i)?o=i:_.isUndefined(i)?o={}:o={days:i},_.extend({},REGISTER_DEFAULTS,o)};MixpanelLib.prototype.register=function(i,o){var g=options_for_register(o);g.persistent?this.persistence.register(i,g.days):_.extend(this.unpersisted_superprops,i)};MixpanelLib.prototype.register_once=function(i,o,g){var $=options_for_register(g);$.persistent?this.persistence.register_once(i,o,$.days):(typeof o>"u"&&(o="None"),_.each(i,function(j,_e){(!this.unpersisted_superprops.hasOwnProperty(_e)||this.unpersisted_superprops[_e]===o)&&(this.unpersisted_superprops[_e]=j)},this))};MixpanelLib.prototype.unregister=function(i,o){o=options_for_register(o),o.persistent?this.persistence.unregister(i):delete this.unpersisted_superprops[i]};MixpanelLib.prototype._register_single=function(i,o){var g={};g[i]=o,this.register(g)};MixpanelLib.prototype.identify=function(i,o,g,$,j,_e,et,rt){var tt=this.get_distinct_id();if(i&&tt!==i){if(typeof i=="string"&&i.indexOf(DEVICE_ID_PREFIX)===0)return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:i})}if(!this.get_property("$device_id")){var nt=tt;this.register_once({$had_persisted_distinct_id:!0,$device_id:nt},"")}i!==tt&&i!==this.get_property(ALIAS_ID_KEY)&&(this.unregister(ALIAS_ID_KEY),this.register({distinct_id:i})),this._flags.identify_called=!0,this.people._flush(o,g,$,j,_e,et,rt),i!==tt&&this.track("$identify",{distinct_id:i,$anon_distinct_id:tt},{skip_hooks:!0})};MixpanelLib.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var i=_.UUID();this.register_once({distinct_id:DEVICE_ID_PREFIX+i,$device_id:i},"")};MixpanelLib.prototype.get_distinct_id=function(){return this.get_property("distinct_id")};MixpanelLib.prototype.alias=function(i,o){if(i===this.get_property(PEOPLE_DISTINCT_ID_KEY))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var g=this;return _.isUndefined(o)&&(o=this.get_distinct_id()),i!==o?(this._register_single(ALIAS_ID_KEY,i),this.track("$create_alias",{alias:i,distinct_id:o},{skip_hooks:!0},function(){g.identify(i)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(i),-1)};MixpanelLib.prototype.name_tag=function(i){this._register_single("mp_name_tag",i)};MixpanelLib.prototype.set_config=function(i){if(_.isObject(i)){_.extend(this.config,i);var o=i.batch_size;o&&_.each(this.request_batchers,function(g){g.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),Config.DEBUG=Config.DEBUG||this.get_config("debug")}};MixpanelLib.prototype.get_config=function(i){return this.config[i]};MixpanelLib.prototype._run_hook=function(i){var o=(this.config.hooks[i]||IDENTITY_FUNC).apply(this,slice.call(arguments,1));return typeof o>"u"&&(this.report_error(i+" hook did not return a value"),o=null),o};MixpanelLib.prototype.get_property=function(i){return this.persistence.props[i]};MixpanelLib.prototype.toString=function(){var i=this.get_config("name");return i!==PRIMARY_INSTANCE_NAME&&(i=PRIMARY_INSTANCE_NAME+"."+i),i};MixpanelLib.prototype._event_is_disabled=function(i){return _.isBlockedUA(userAgent)||this._flags.disable_all_events||_.include(this.__disabled_events,i)};MixpanelLib.prototype._gdpr_init=function(){var i=this.get_config("opt_out_tracking_persistence_type")==="localStorage";i&&_.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")||_.cookie.get("mp_optout"))&&(_.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))};MixpanelLib.prototype._gdpr_update_persistence=function(i){var o;if(i&&i.clear_persistence)o=!0;else if(i&&i.enable_persistence)o=!1;else return;!this.get_config("disable_persistence")&&this.persistence.disabled!==o&&this.persistence.set_disabled(o),o&&_.each(this.request_batchers,function(g){g.clear()})};MixpanelLib.prototype._gdpr_call_func=function(i,o){return o=_.extend({track:_.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")},o),_.localStorage.is_supported()||(o.persistence_type="cookie"),i(this.get_config("token"),{track:o.track,trackEventName:o.track_event_name,trackProperties:o.track_properties,persistenceType:o.persistence_type,persistencePrefix:o.cookie_prefix,cookieDomain:o.cookie_domain,cookieExpiration:o.cookie_expiration,crossSiteCookie:o.cross_site_cookie,crossSubdomainCookie:o.cross_subdomain_cookie,secureCookie:o.secure_cookie,ignoreDnt:o.ignore_dnt})};MixpanelLib.prototype.opt_in_tracking=function(i){i=_.extend({enable_persistence:!0},i),this._gdpr_call_func(optIn,i),this._gdpr_update_persistence(i)};MixpanelLib.prototype.opt_out_tracking=function(i){i=_.extend({clear_persistence:!0,delete_user:!0},i),i.delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(optOut,i),this._gdpr_update_persistence(i)};MixpanelLib.prototype.has_opted_in_tracking=function(i){return this._gdpr_call_func(hasOptedIn,i)};MixpanelLib.prototype.has_opted_out_tracking=function(i){return this._gdpr_call_func(hasOptedOut,i)};MixpanelLib.prototype.clear_opt_in_out_tracking=function(i){i=_.extend({enable_persistence:!0},i),this._gdpr_call_func(clearOptInOut,i),this._gdpr_update_persistence(i)};MixpanelLib.prototype.report_error=function(i,o){console$1.error.apply(console$1.error,arguments);try{!o&&!(i instanceof Error)&&(i=new Error(i)),this.get_config("error_reporter")(i,o)}catch(g){console$1.error(g)}};MixpanelLib.prototype.init=MixpanelLib.prototype.init;MixpanelLib.prototype.reset=MixpanelLib.prototype.reset;MixpanelLib.prototype.disable=MixpanelLib.prototype.disable;MixpanelLib.prototype.time_event=MixpanelLib.prototype.time_event;MixpanelLib.prototype.track=MixpanelLib.prototype.track;MixpanelLib.prototype.track_links=MixpanelLib.prototype.track_links;MixpanelLib.prototype.track_forms=MixpanelLib.prototype.track_forms;MixpanelLib.prototype.track_pageview=MixpanelLib.prototype.track_pageview;MixpanelLib.prototype.register=MixpanelLib.prototype.register;MixpanelLib.prototype.register_once=MixpanelLib.prototype.register_once;MixpanelLib.prototype.unregister=MixpanelLib.prototype.unregister;MixpanelLib.prototype.identify=MixpanelLib.prototype.identify;MixpanelLib.prototype.alias=MixpanelLib.prototype.alias;MixpanelLib.prototype.name_tag=MixpanelLib.prototype.name_tag;MixpanelLib.prototype.set_config=MixpanelLib.prototype.set_config;MixpanelLib.prototype.get_config=MixpanelLib.prototype.get_config;MixpanelLib.prototype.get_property=MixpanelLib.prototype.get_property;MixpanelLib.prototype.get_distinct_id=MixpanelLib.prototype.get_distinct_id;MixpanelLib.prototype.toString=MixpanelLib.prototype.toString;MixpanelLib.prototype.opt_out_tracking=MixpanelLib.prototype.opt_out_tracking;MixpanelLib.prototype.opt_in_tracking=MixpanelLib.prototype.opt_in_tracking;MixpanelLib.prototype.has_opted_out_tracking=MixpanelLib.prototype.has_opted_out_tracking;MixpanelLib.prototype.has_opted_in_tracking=MixpanelLib.prototype.has_opted_in_tracking;MixpanelLib.prototype.clear_opt_in_out_tracking=MixpanelLib.prototype.clear_opt_in_out_tracking;MixpanelLib.prototype.get_group=MixpanelLib.prototype.get_group;MixpanelLib.prototype.set_group=MixpanelLib.prototype.set_group;MixpanelLib.prototype.add_group=MixpanelLib.prototype.add_group;MixpanelLib.prototype.remove_group=MixpanelLib.prototype.remove_group;MixpanelLib.prototype.track_with_groups=MixpanelLib.prototype.track_with_groups;MixpanelLib.prototype.start_batch_senders=MixpanelLib.prototype.start_batch_senders;MixpanelLib.prototype.stop_batch_senders=MixpanelLib.prototype.stop_batch_senders;MixpanelPersistence.prototype.properties=MixpanelPersistence.prototype.properties;MixpanelPersistence.prototype.update_search_keyword=MixpanelPersistence.prototype.update_search_keyword;MixpanelPersistence.prototype.update_referrer_info=MixpanelPersistence.prototype.update_referrer_info;MixpanelPersistence.prototype.get_cross_subdomain=MixpanelPersistence.prototype.get_cross_subdomain;MixpanelPersistence.prototype.clear=MixpanelPersistence.prototype.clear;var instances={},extend_mp=function(){_.each(instances,function(i,o){o!==PRIMARY_INSTANCE_NAME&&(mixpanel_master[o]=i)}),mixpanel_master._=_},override_mp_init_func=function(){mixpanel_master.init=function(i,o,g){if(g)return mixpanel_master[g]||(mixpanel_master[g]=instances[g]=create_mplib(i,o,g),mixpanel_master[g]._loaded()),mixpanel_master[g];var $=mixpanel_master;instances[PRIMARY_INSTANCE_NAME]?$=instances[PRIMARY_INSTANCE_NAME]:i&&($=create_mplib(i,o,PRIMARY_INSTANCE_NAME),$._loaded(),instances[PRIMARY_INSTANCE_NAME]=$),mixpanel_master=$,init_type===INIT_SNIPPET&&(window$1[PRIMARY_INSTANCE_NAME]=mixpanel_master),extend_mp()}},add_dom_loaded_handler=function(){function i(){i.done||(i.done=!0,DOM_LOADED=!0,ENQUEUE_REQUESTS=!1,_.each(instances,function($){$._dom_loaded()}))}function o(){try{document$1.documentElement.doScroll("left")}catch{setTimeout(o,1);return}i()}if(document$1.addEventListener)document$1.readyState==="complete"?i():document$1.addEventListener("DOMContentLoaded",i,!1);else if(document$1.attachEvent){document$1.attachEvent("onreadystatechange",i);var g=!1;try{g=window$1.frameElement===null}catch{}document$1.documentElement.doScroll&&g&&o()}_.register_event(window$1,"load",i,!0)};function init_as_module(){return init_type=INIT_MODULE,mixpanel_master=new MixpanelLib,override_mp_init_func(),mixpanel_master.init(),add_dom_loaded_handler(),mixpanel_master}var mixpanel=init_as_module(),mixpanel_cjs=mixpanel;const mixpanel$1=getDefaultExportFromCjs(mixpanel_cjs),envToken="9b5c61bf2bf4c48916655fe862e8fcbd",token=envToken,EVENT={OPEN_WEBAPP:"open_webapp",SEND_TRANSACTION:"send_transaction"},feedback=async i=>{console.info("[mixpanel]",i),await mixpanel$1.track(i)};mixpanel$1.init(token,{loaded:()=>{feedback(EVENT.OPEN_WEBAPP)}});function Check(){useInit();const{t:i}=useTranslation(),o=useNavigate(),[g,$]=reactExports.useState(!1),{currencies:j,transaction:_e,setTransaction:et,setSuccess:rt,setTxPatchError:tt}=useStore(),nt=usePatchTransaction();if(!_e)return null;const st=j.find(wt=>wt._id===_e.currency_id),ft=(wt,Ot)=>{const $t=_e.shares.findIndex(Mt=>Mt.person_id===wt.person_id&&Mt.related_user_id===wt.related_user_id&&Mt.is_payer===wt.is_payer);if(~$t){const Mt=[..._e.shares];Mt[$t].amount=Ot,et({..._e,shares:Mt})}},it=_e.shares.filter(wt=>wt.is_payer).reduce((wt,Ot)=>wt+Ot.amount,0),pt=formatAmount(it),ut=_e.shares.filter(wt=>!wt.is_payer).reduce((wt,Ot)=>wt+Ot.amount,0),ht=formatAmount(ut),mt=itut+TOLERANCE,ot=!at||!(it>0)||!(ut>0)||!_e.currency_id,ct=_e.shares.filter(wt=>wt.related_user_id&&wt.is_payer),gt=_e.shares.filter(wt=>wt.related_user_id&&!wt.is_payer),yt=ct.map(wt=>wt.related_user_id),xt=gt.map(wt=>wt.related_user_id),_t=yt.some(wt=>xt.includes(wt)),Pt=gt.every(wt=>wt.amount===gt[0].amount),At=()=>{const wt=parseFloat((it/gt.length).toFixed(decimals)),Ot=[..._e.shares];et({..._e,shares:Ot.map($t=>$t.is_payer?$t:{...$t,amount:wt})})},Ft=async()=>{const wt={..._e,is_confirmed:!0};$(!0);try{await feedback(EVENT.SEND_TRANSACTION),console.log(JSON.stringify(wt,null,2));const Ot=await nt(wt);console.log("patch res json",Ot),rt(!0),setTimeout(()=>{var $t,Mt;(Mt=($t=window==null?void 0:window.Telegram)==null?void 0:$t.WebApp)==null||Mt.close()},2300)}catch(Ot){rt(!1),tt(Ot)}finally{$(!1)}};return jsxRuntimeExports.jsxs(Screen,{children:[jsxRuntimeExports.jsx(Header,{onBack:()=>{o("/")}}),jsxRuntimeExports.jsxs("div",{className:"mb-2 px-4 flex items-center justify-between",children:[jsxRuntimeExports.jsx("h2",{className:"pt-[2px] pb-[6px]",children:i("checkout")}),jsxRuntimeExports.jsx(Button,{theme:"text",text:st?st.in:i("selectCurrency"),onClick:()=>{o("/select-currency")}})]}),jsxRuntimeExports.jsxs(Panel,{className:"!pb-4",children:[jsxRuntimeExports.jsxs("h3",{className:cx(!at&&"text-error"),children:[mt&&i("lack"),at&&i("allRight"),lt&&i("overdo")]}),jsxRuntimeExports.jsxs("div",{className:"mt-1 text-[14px] leading-[20px] text-hint",children:[i("paidSum")," ",pt," ",st==null?void 0:st.symbol,", ",i("oweSum")," ",ht," ",st==null?void 0:st.symbol]})]}),jsxRuntimeExports.jsxs(Panel,{children:[jsxRuntimeExports.jsx("h3",{children:i("payers")}),jsxRuntimeExports.jsxs("div",{className:"mt-4 flex flex-col gap-3",children:[!ct.length&&jsxRuntimeExports.jsxs("span",{className:"opacity-40",children:["(",i("noShares"),")"]}),ct.map((wt,Ot)=>jsxRuntimeExports.jsx(UserAmount,{...wt,onChange:$t=>{ft(wt,$t)}},`payer-share-${Ot}`))]})]}),jsxRuntimeExports.jsxs(Panel,{children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntimeExports.jsx("h3",{children:i(_t?"forYourselfAndForOthers":"forOthers")}),!!gt.length&&(!Pt||!at)&&jsxRuntimeExports.jsx(Button,{theme:"text",text:i("splitEqually"),onClick:At})]}),jsxRuntimeExports.jsxs("div",{className:"mt-4 flex flex-col gap-3",children:[!gt.length&&jsxRuntimeExports.jsxs("span",{className:"opacity-40",children:["(",i("noShares"),")"]}),gt.map((wt,Ot)=>jsxRuntimeExports.jsx(UserAmount,{...wt,onChange:$t=>{ft(wt,$t)}},`owe-share-${Ot}`))]})]}),jsxRuntimeExports.jsx(Button,{isBottom:!0,text:i("save"),onClick:Ft,disabled:ot,isBusy:g})]})}function Divider(){return jsxRuntimeExports.jsx("div",{className:"h-[1px] -my-[0.5px] mx-4 bg-[#E5E9EB] dark:bg-[#84919A]"})}function Select(){var ft;useInit();const{t:i}=useTranslation(),{users:o,unrelatedUsers:g,addUsers:$,selectUser:j,deleteUser:_e}=useUsers(),{selectPersonId:et,transaction:rt}=useStore(),tt=et!==null?o:g,nt=et!==null?(ft=((rt==null?void 0:rt.shares)||[]).find(it=>it.person_id===et))==null?void 0:ft.normalized_name:null,st=et!==null?nt?`${i("selectWhoIs")} "${nt==="MESSAGE_AUTHOR"?i("author"):nt}"`:i("selectUser"):i("addUser");return jsxRuntimeExports.jsxs(Screen,{className:"!bg-bg",children:[jsxRuntimeExports.jsx(Header,{onBack:()=>{history.back()}}),jsxRuntimeExports.jsxs("div",{className:"mb-2 px-4 flex items-center justify-between gap-3",children:[jsxRuntimeExports.jsx("h2",{className:"pt-[2px] pb-[6px]",children:st}),et!==null&&jsxRuntimeExports.jsx(Button,{theme:"text",text:i("delete"),onClick:_e(et)}),et===null&&tt.length>1&&jsxRuntimeExports.jsx(Button,{theme:"text",text:i("addEveryone"),onClick:$(tt)})]}),jsxRuntimeExports.jsx("div",{className:"mt-4 overflow-y-auto",children:tt.map((it,pt,ut)=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("button",{className:"w-full px-4 py-2 hover:bg-text/5 active:bg-text/10 transition-all",onClick:et!==null?j(it):$([it]),children:jsxRuntimeExports.jsx(User,{user:it})}),ptj(g),children:[jsxRuntimeExports.jsx("input",{className:"hidden",id:`${i}-${g}`,name:i,checked:$}),jsxRuntimeExports.jsx("div",{className:"p-1.5",children:jsxRuntimeExports.jsx("div",{className:cx("flex items-center justify-center w-5 h-5 border-2 rounded-full text-hint",$&&"!text-link"),children:jsxRuntimeExports.jsx("div",{className:cx("w-[10px] h-[10px] rounded-full bg-link opacity-0 transition-all",$&&"!opacity-100")})})}),jsxRuntimeExports.jsx("div",{className:"flex-1",children:o})]})}function SelectCurrency(){useInit();const{t:i}=useTranslation(),o=useNavigate(),{currencies:g,transaction:$,setCurrency:j}=useStore(),[_e,,et]=b(),rt=reactExports.useCallback(tt=>{j(tt),console.log("SelectCurrency change vibro"),et(),_e("medium"),o("/check")},[_e,et,o,j]);return jsxRuntimeExports.jsxs(Screen,{className:"!bg-bg",children:[jsxRuntimeExports.jsx(Header,{onBack:()=>{history.back()}}),jsxRuntimeExports.jsx("div",{className:"px-4",children:jsxRuntimeExports.jsx("h2",{children:i("selectCurrency")})}),jsxRuntimeExports.jsx("div",{className:"mt-4 overflow-y-auto",children:g.map((tt,nt)=>jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(RadioButton,{group:"currencies",label:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{className:"font-semibold",children:tt.symbol})," ",jsxRuntimeExports.jsx("span",{children:tt.title})]}),value:tt._id,checked:($==null?void 0:$.currency_id)===tt._id,onChange:rt},`currencies-${tt._id}`),ntreactExports.createElement("svg",{width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i},reactExports.createElement("path",{d:"M8 1C8 0.447715 7.55228 0 7 0C6.44772 0 6 0.447715 6 1V6H1C0.447715 6 0 6.44771 0 7C0 7.55228 0.447715 8 1 8H6V13C6 13.5523 6.44772 14 7 14C7.55228 14 8 13.5523 8 13V8H13C13.5523 8 14 7.55228 14 7C14 6.44772 13.5523 6 13 6H8V1Z",fill:"currentColor"}));/*! @license DOMPurify 3.0.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.5/LICENSE */const{entries,setPrototypeOf,isFrozen,getPrototypeOf,getOwnPropertyDescriptor}=Object;let{freeze,seal,create}=Object,{apply,construct}=typeof Reflect<"u"&&Reflect;apply||(apply=function(o,g,$){return o.apply(g,$)});freeze||(freeze=function(o){return o});seal||(seal=function(o){return o});construct||(construct=function(o,g){return new o(...g)});const arrayForEach=unapply(Array.prototype.forEach),arrayPop=unapply(Array.prototype.pop),arrayPush=unapply(Array.prototype.push),stringToLowerCase=unapply(String.prototype.toLowerCase),stringToString=unapply(String.prototype.toString),stringMatch=unapply(String.prototype.match),stringReplace=unapply(String.prototype.replace),stringIndexOf=unapply(String.prototype.indexOf),stringTrim=unapply(String.prototype.trim),regExpTest=unapply(RegExp.prototype.test),typeErrorCreate=unconstruct(TypeError);function unapply(i){return function(o){for(var g=arguments.length,$=new Array(g>1?g-1:0),j=1;j/gm),TMPLIT_EXPR=seal(/\${[\w\W]*}/gm),DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DOCTYPE_NAME=seal(/^html$/i);var EXPRESSIONS=Object.freeze({__proto__:null,MUSTACHE_EXPR,ERB_EXPR,TMPLIT_EXPR,DATA_ATTR,ARIA_ATTR,IS_ALLOWED_URI,IS_SCRIPT_OR_DATA,ATTR_WHITESPACE,DOCTYPE_NAME});const getGlobal=()=>typeof window>"u"?null:window,_createTrustedTypesPolicy=function i(o,g){if(typeof o!="object"||typeof o.createPolicy!="function")return null;let $=null;const j="data-tt-policy-suffix";g&&g.hasAttribute(j)&&($=g.getAttribute(j));const _e="dompurify"+($?"#"+$:"");try{return o.createPolicy(_e,{createHTML(et){return et},createScriptURL(et){return et}})}catch{return console.warn("TrustedTypes policy "+_e+" could not be created."),null}};function createDOMPurify(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:getGlobal();const o=Gt=>createDOMPurify(Gt);if(o.version="3.0.5",o.removed=[],!i||!i.document||i.document.nodeType!==9)return o.isSupported=!1,o;const g=i.document,$=g.currentScript;let{document:j}=i;const{DocumentFragment:_e,HTMLTemplateElement:et,Node:rt,Element:tt,NodeFilter:nt,NamedNodeMap:st=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:ft,DOMParser:it,trustedTypes:pt}=i,ut=tt.prototype,ht=lookupGetter(ut,"cloneNode"),mt=lookupGetter(ut,"nextSibling"),at=lookupGetter(ut,"childNodes"),lt=lookupGetter(ut,"parentNode");if(typeof et=="function"){const Gt=j.createElement("template");Gt.content&&Gt.content.ownerDocument&&(j=Gt.content.ownerDocument)}let ot,ct="";const{implementation:gt,createNodeIterator:yt,createDocumentFragment:xt,getElementsByTagName:_t}=j,{importNode:Pt}=g;let At={};o.isSupported=typeof entries=="function"&&typeof lt=="function"&>&>.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Ft,ERB_EXPR:wt,TMPLIT_EXPR:Ot,DATA_ATTR:$t,ARIA_ATTR:Mt,IS_SCRIPT_OR_DATA:Et,ATTR_WHITESPACE:kt}=EXPRESSIONS;let{IS_ALLOWED_URI:dt}=EXPRESSIONS,vt=null;const bt=addToSet({},[...html$1,...svg$1,...svgFilters,...mathMl$1,...text]);let St=null;const It=addToSet({},[...html,...svg,...mathMl,...xml]);let Lt=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Nt=null,qt=null,Qt=!0,Zt=!0,ir=!1,br=!0,sr=!1,tr=!1,hr=!1,Jt=!1,Vt=!1,ur=!1,_r=!1,Er=!0,gr=!1;const Pr="user-content-";let lr=!0,ar=!1,yr={},vr=null;const Sr=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let wr=null;const pr=addToSet({},["audio","video","img","source","image","track"]);let Tr=null;const Lr=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Or="http://www.w3.org/1998/Math/MathML",Rr="http://www.w3.org/2000/svg",Dr="http://www.w3.org/1999/xhtml";let jr=Dr,qr=!1,Tt=null;const Rt=addToSet({},[Or,Rr,Dr],stringToString);let Dt;const Ut=["application/xhtml+xml","text/html"],Yt="text/html";let zt,Kt=null;const Wt=j.createElement("form"),Ht=function(Ct){return Ct instanceof RegExp||Ct instanceof Function},er=function(Ct){if(!(Kt&&Kt===Ct)){if((!Ct||typeof Ct!="object")&&(Ct={}),Ct=clone(Ct),Dt=Ut.indexOf(Ct.PARSER_MEDIA_TYPE)===-1?Dt=Yt:Dt=Ct.PARSER_MEDIA_TYPE,zt=Dt==="application/xhtml+xml"?stringToString:stringToLowerCase,vt="ALLOWED_TAGS"in Ct?addToSet({},Ct.ALLOWED_TAGS,zt):bt,St="ALLOWED_ATTR"in Ct?addToSet({},Ct.ALLOWED_ATTR,zt):It,Tt="ALLOWED_NAMESPACES"in Ct?addToSet({},Ct.ALLOWED_NAMESPACES,stringToString):Rt,Tr="ADD_URI_SAFE_ATTR"in Ct?addToSet(clone(Lr),Ct.ADD_URI_SAFE_ATTR,zt):Lr,wr="ADD_DATA_URI_TAGS"in Ct?addToSet(clone(pr),Ct.ADD_DATA_URI_TAGS,zt):pr,vr="FORBID_CONTENTS"in Ct?addToSet({},Ct.FORBID_CONTENTS,zt):Sr,Nt="FORBID_TAGS"in Ct?addToSet({},Ct.FORBID_TAGS,zt):{},qt="FORBID_ATTR"in Ct?addToSet({},Ct.FORBID_ATTR,zt):{},yr="USE_PROFILES"in Ct?Ct.USE_PROFILES:!1,Qt=Ct.ALLOW_ARIA_ATTR!==!1,Zt=Ct.ALLOW_DATA_ATTR!==!1,ir=Ct.ALLOW_UNKNOWN_PROTOCOLS||!1,br=Ct.ALLOW_SELF_CLOSE_IN_ATTR!==!1,sr=Ct.SAFE_FOR_TEMPLATES||!1,tr=Ct.WHOLE_DOCUMENT||!1,Vt=Ct.RETURN_DOM||!1,ur=Ct.RETURN_DOM_FRAGMENT||!1,_r=Ct.RETURN_TRUSTED_TYPE||!1,Jt=Ct.FORCE_BODY||!1,Er=Ct.SANITIZE_DOM!==!1,gr=Ct.SANITIZE_NAMED_PROPS||!1,lr=Ct.KEEP_CONTENT!==!1,ar=Ct.IN_PLACE||!1,dt=Ct.ALLOWED_URI_REGEXP||IS_ALLOWED_URI,jr=Ct.NAMESPACE||Dr,Lt=Ct.CUSTOM_ELEMENT_HANDLING||{},Ct.CUSTOM_ELEMENT_HANDLING&&Ht(Ct.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Lt.tagNameCheck=Ct.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Ct.CUSTOM_ELEMENT_HANDLING&&Ht(Ct.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Lt.attributeNameCheck=Ct.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Ct.CUSTOM_ELEMENT_HANDLING&&typeof Ct.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Lt.allowCustomizedBuiltInElements=Ct.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),sr&&(Zt=!1),ur&&(Vt=!0),yr&&(vt=addToSet({},[...text]),St=[],yr.html===!0&&(addToSet(vt,html$1),addToSet(St,html)),yr.svg===!0&&(addToSet(vt,svg$1),addToSet(St,svg),addToSet(St,xml)),yr.svgFilters===!0&&(addToSet(vt,svgFilters),addToSet(St,svg),addToSet(St,xml)),yr.mathMl===!0&&(addToSet(vt,mathMl$1),addToSet(St,mathMl),addToSet(St,xml))),Ct.ADD_TAGS&&(vt===bt&&(vt=clone(vt)),addToSet(vt,Ct.ADD_TAGS,zt)),Ct.ADD_ATTR&&(St===It&&(St=clone(St)),addToSet(St,Ct.ADD_ATTR,zt)),Ct.ADD_URI_SAFE_ATTR&&addToSet(Tr,Ct.ADD_URI_SAFE_ATTR,zt),Ct.FORBID_CONTENTS&&(vr===Sr&&(vr=clone(vr)),addToSet(vr,Ct.FORBID_CONTENTS,zt)),lr&&(vt["#text"]=!0),tr&&addToSet(vt,["html","head","body"]),vt.table&&(addToSet(vt,["tbody"]),delete Nt.tbody),Ct.TRUSTED_TYPES_POLICY){if(typeof Ct.TRUSTED_TYPES_POLICY.createHTML!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Ct.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ot=Ct.TRUSTED_TYPES_POLICY,ct=ot.createHTML("")}else ot===void 0&&(ot=_createTrustedTypesPolicy(pt,$)),ot!==null&&typeof ct=="string"&&(ct=ot.createHTML(""));freeze&&freeze(Ct),Kt=Ct}},Xt=addToSet({},["mi","mo","mn","ms","mtext"]),kr=addToSet({},["foreignobject","desc","title","annotation-xml"]),cr=addToSet({},["title","style","font","a","script"]),dr=addToSet({},svg$1);addToSet(dr,svgFilters),addToSet(dr,svgDisallowed);const Ar=addToSet({},mathMl$1);addToSet(Ar,mathMlDisallowed);const zr=function(Ct){let jt=lt(Ct);(!jt||!jt.tagName)&&(jt={namespaceURI:jr,tagName:"template"});const Bt=stringToLowerCase(Ct.tagName),rr=stringToLowerCase(jt.tagName);return Tt[Ct.namespaceURI]?Ct.namespaceURI===Rr?jt.namespaceURI===Dr?Bt==="svg":jt.namespaceURI===Or?Bt==="svg"&&(rr==="annotation-xml"||Xt[rr]):!!dr[Bt]:Ct.namespaceURI===Or?jt.namespaceURI===Dr?Bt==="math":jt.namespaceURI===Rr?Bt==="math"&&kr[rr]:!!Ar[Bt]:Ct.namespaceURI===Dr?jt.namespaceURI===Rr&&!kr[rr]||jt.namespaceURI===Or&&!Xt[rr]?!1:!Ar[Bt]&&(cr[Bt]||!dr[Bt]):!!(Dt==="application/xhtml+xml"&&Tt[Ct.namespaceURI]):!1},Nr=function(Ct){arrayPush(o.removed,{element:Ct});try{Ct.parentNode.removeChild(Ct)}catch{Ct.remove()}},Vr=function(Ct,jt){try{arrayPush(o.removed,{attribute:jt.getAttributeNode(Ct),from:jt})}catch{arrayPush(o.removed,{attribute:null,from:jt})}if(jt.removeAttribute(Ct),Ct==="is"&&!St[Ct])if(Vt||ur)try{Nr(jt)}catch{}else try{jt.setAttribute(Ct,"")}catch{}},Ir=function(Ct){let jt,Bt;if(Jt)Ct=""+Ct;else{const Fr=stringMatch(Ct,/^[\r\n\t ]+/);Bt=Fr&&Fr[0]}Dt==="application/xhtml+xml"&&jr===Dr&&(Ct=''+Ct+"");const rr=ot?ot.createHTML(Ct):Ct;if(jr===Dr)try{jt=new it().parseFromString(rr,Dt)}catch{}if(!jt||!jt.documentElement){jt=gt.createDocument(jr,"template",null);try{jt.documentElement.innerHTML=qr?ct:rr}catch{}}const xr=jt.body||jt.documentElement;return Ct&&Bt&&xr.insertBefore(j.createTextNode(Bt),xr.childNodes[0]||null),jr===Dr?_t.call(jt,tr?"html":"body")[0]:tr?jt.documentElement:xr},Gr=function(Ct){return yt.call(Ct.ownerDocument||Ct,Ct,nt.SHOW_ELEMENT|nt.SHOW_COMMENT|nt.SHOW_TEXT,null,!1)},Wr=function(Ct){return Ct instanceof ft&&(typeof Ct.nodeName!="string"||typeof Ct.textContent!="string"||typeof Ct.removeChild!="function"||!(Ct.attributes instanceof st)||typeof Ct.removeAttribute!="function"||typeof Ct.setAttribute!="function"||typeof Ct.namespaceURI!="string"||typeof Ct.insertBefore!="function"||typeof Ct.hasChildNodes!="function")},Ur=function(Ct){return typeof rt=="object"?Ct instanceof rt:Ct&&typeof Ct=="object"&&typeof Ct.nodeType=="number"&&typeof Ct.nodeName=="string"},Mr=function(Ct,jt,Bt){At[Ct]&&arrayForEach(At[Ct],rr=>{rr.call(o,jt,Bt,Kt)})},Hr=function(Ct){let jt;if(Mr("beforeSanitizeElements",Ct,null),Wr(Ct))return Nr(Ct),!0;const Bt=zt(Ct.nodeName);if(Mr("uponSanitizeElement",Ct,{tagName:Bt,allowedTags:vt}),Ct.hasChildNodes()&&!Ur(Ct.firstElementChild)&&(!Ur(Ct.content)||!Ur(Ct.content.firstElementChild))&®ExpTest(/<[/\w]/g,Ct.innerHTML)&®ExpTest(/<[/\w]/g,Ct.textContent))return Nr(Ct),!0;if(!vt[Bt]||Nt[Bt]){if(!Nt[Bt]&&Cr(Bt)&&(Lt.tagNameCheck instanceof RegExp&®ExpTest(Lt.tagNameCheck,Bt)||Lt.tagNameCheck instanceof Function&&Lt.tagNameCheck(Bt)))return!1;if(lr&&!vr[Bt]){const rr=lt(Ct)||Ct.parentNode,xr=at(Ct)||Ct.childNodes;if(xr&&rr){const Fr=xr.length;for(let or=Fr-1;or>=0;--or)rr.insertBefore(ht(xr[or],!0),mt(Ct))}}return Nr(Ct),!0}return Ct instanceof tt&&!zr(Ct)||(Bt==="noscript"||Bt==="noembed"||Bt==="noframes")&®ExpTest(/<\/no(script|embed|frames)/i,Ct.innerHTML)?(Nr(Ct),!0):(sr&&Ct.nodeType===3&&(jt=Ct.textContent,jt=stringReplace(jt,Ft," "),jt=stringReplace(jt,wt," "),jt=stringReplace(jt,Ot," "),Ct.textContent!==jt&&(arrayPush(o.removed,{element:Ct.cloneNode()}),Ct.textContent=jt)),Mr("afterSanitizeElements",Ct,null),!1)},nr=function(Ct,jt,Bt){if(Er&&(jt==="id"||jt==="name")&&(Bt in j||Bt in Wt))return!1;if(!(Zt&&!qt[jt]&®ExpTest($t,jt))){if(!(Qt&®ExpTest(Mt,jt))){if(!St[jt]||qt[jt]){if(!(Cr(Ct)&&(Lt.tagNameCheck instanceof RegExp&®ExpTest(Lt.tagNameCheck,Ct)||Lt.tagNameCheck instanceof Function&&Lt.tagNameCheck(Ct))&&(Lt.attributeNameCheck instanceof RegExp&®ExpTest(Lt.attributeNameCheck,jt)||Lt.attributeNameCheck instanceof Function&&Lt.attributeNameCheck(jt))||jt==="is"&&Lt.allowCustomizedBuiltInElements&&(Lt.tagNameCheck instanceof RegExp&®ExpTest(Lt.tagNameCheck,Bt)||Lt.tagNameCheck instanceof Function&&Lt.tagNameCheck(Bt))))return!1}else if(!Tr[jt]){if(!regExpTest(dt,stringReplace(Bt,kt,""))){if(!((jt==="src"||jt==="xlink:href"||jt==="href")&&Ct!=="script"&&stringIndexOf(Bt,"data:")===0&&wr[Ct])){if(!(ir&&!regExpTest(Et,stringReplace(Bt,kt,"")))){if(Bt)return!1}}}}}}return!0},Cr=function(Ct){return Ct.indexOf("-")>0},Br=function(Ct){let jt,Bt,rr,xr;Mr("beforeSanitizeAttributes",Ct,null);const{attributes:Fr}=Ct;if(!Fr)return;const or={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:St};for(xr=Fr.length;xr--;){jt=Fr[xr];const{name:$r,namespaceURI:Kr}=jt;if(Bt=$r==="value"?jt.value:stringTrim(jt.value),rr=zt($r),or.attrName=rr,or.attrValue=Bt,or.keepAttr=!0,or.forceKeepAttr=void 0,Mr("uponSanitizeAttribute",Ct,or),Bt=or.attrValue,or.forceKeepAttr||(Vr($r,Ct),!or.keepAttr))continue;if(!br&®ExpTest(/\/>/i,Bt)){Vr($r,Ct);continue}sr&&(Bt=stringReplace(Bt,Ft," "),Bt=stringReplace(Bt,wt," "),Bt=stringReplace(Bt,Ot," "));const Qr=zt(Ct.nodeName);if(nr(Qr,rr,Bt)){if(gr&&(rr==="id"||rr==="name")&&(Vr($r,Ct),Bt=Pr+Bt),ot&&typeof pt=="object"&&typeof pt.getAttributeType=="function"&&!Kr)switch(pt.getAttributeType(Qr,rr)){case"TrustedHTML":{Bt=ot.createHTML(Bt);break}case"TrustedScriptURL":{Bt=ot.createScriptURL(Bt);break}}try{Kr?Ct.setAttributeNS(Kr,$r,Bt):Ct.setAttribute($r,Bt),arrayPop(o.removed)}catch{}}}Mr("afterSanitizeAttributes",Ct,null)},mr=function Gt(Ct){let jt;const Bt=Gr(Ct);for(Mr("beforeSanitizeShadowDOM",Ct,null);jt=Bt.nextNode();)Mr("uponSanitizeShadowNode",jt,null),!Hr(jt)&&(jt.content instanceof _e&&Gt(jt.content),Br(jt));Mr("afterSanitizeShadowDOM",Ct,null)};return o.sanitize=function(Gt){let Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},jt,Bt,rr,xr;if(qr=!Gt,qr&&(Gt=""),typeof Gt!="string"&&!Ur(Gt))if(typeof Gt.toString=="function"){if(Gt=Gt.toString(),typeof Gt!="string")throw typeErrorCreate("dirty is not a string, aborting")}else throw typeErrorCreate("toString is not a function");if(!o.isSupported)return Gt;if(hr||er(Ct),o.removed=[],typeof Gt=="string"&&(ar=!1),ar){if(Gt.nodeName){const $r=zt(Gt.nodeName);if(!vt[$r]||Nt[$r])throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place")}}else if(Gt instanceof rt)jt=Ir(""),Bt=jt.ownerDocument.importNode(Gt,!0),Bt.nodeType===1&&Bt.nodeName==="BODY"||Bt.nodeName==="HTML"?jt=Bt:jt.appendChild(Bt);else{if(!Vt&&!sr&&!tr&&Gt.indexOf("<")===-1)return ot&&_r?ot.createHTML(Gt):Gt;if(jt=Ir(Gt),!jt)return Vt?null:_r?ct:""}jt&&Jt&&Nr(jt.firstChild);const Fr=Gr(ar?Gt:jt);for(;rr=Fr.nextNode();)Hr(rr)||(rr.content instanceof _e&&mr(rr.content),Br(rr));if(ar)return Gt;if(Vt){if(ur)for(xr=xt.call(jt.ownerDocument);jt.firstChild;)xr.appendChild(jt.firstChild);else xr=jt;return(St.shadowroot||St.shadowrootmode)&&(xr=Pt.call(g,xr,!0)),xr}let or=tr?jt.outerHTML:jt.innerHTML;return tr&&vt["!doctype"]&&jt.ownerDocument&&jt.ownerDocument.doctype&&jt.ownerDocument.doctype.name&®ExpTest(DOCTYPE_NAME,jt.ownerDocument.doctype.name)&&(or=" -`+or),sr&&(or=stringReplace(or,Ft," "),or=stringReplace(or,wt," "),or=stringReplace(or,Ot," ")),ot&&_r?ot.createHTML(or):or},o.setConfig=function(Gt){er(Gt),hr=!0},o.clearConfig=function(){Kt=null,hr=!1},o.isValidAttribute=function(Gt,Ct,jt){Kt||er({});const Bt=zt(Gt),rr=zt(Ct);return nr(Bt,rr,jt)},o.addHook=function(Gt,Ct){typeof Ct=="function"&&(At[Gt]=At[Gt]||[],arrayPush(At[Gt],Ct))},o.removeHook=function(Gt){if(At[Gt])return arrayPop(At[Gt])},o.removeHooks=function(Gt){At[Gt]&&(At[Gt]=[])},o.removeAllHooks=function(){At={}},o}var purify=createDOMPurify();const HTMLTagRenderer=({string:i,allowedTags:o})=>{const g=purify.sanitize(i,{ALLOWED_TAGS:o});return jsxRuntimeExports.jsx("span",{dangerouslySetInnerHTML:{__html:g}})},SvgNext=i=>reactExports.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.29289 6.29289C9.68342 5.90237 10.3166 5.90237 10.7071 6.29289L15.7071 11.2929C16.0976 11.6834 16.0976 12.3166 15.7071 12.7071L10.7071 17.7071C10.3166 18.0976 9.68342 18.0976 9.29289 17.7071C8.90237 17.3166 8.90237 16.6834 9.29289 16.2929L13.5858 12L9.29289 7.70711C8.90237 7.31658 8.90237 6.68342 9.29289 6.29289Z",fill:"currentColor"}));function UserRelation({normalized_name:i,related_user_id:o,onClick:g}){const{t:$}=useTranslation(),{getUserById:j}=useUsers(),_e=o?j(o):void 0;return jsxRuntimeExports.jsxs("button",{className:"w-full flex gap-3 text-left items-center px-4 py-2.5 truncate hover:bg-text/5 active:bg-text/10 transition-all",onClick:g,children:[jsxRuntimeExports.jsx("div",{className:"flex w-[35%] truncate",children:i?jsxRuntimeExports.jsx("div",{className:"truncate",children:i==="MESSAGE_AUTHOR"?jsxRuntimeExports.jsxs("span",{className:"opacity-30",children:["(",$("author"),")"]}):jsxRuntimeExports.jsx("span",{className:"font-medium",children:i})}):jsxRuntimeExports.jsxs("div",{className:"truncate opacity-30",children:["(",$("added"),")"]})}),jsxRuntimeExports.jsx("div",{className:"flex w-[55%] truncate",children:jsxRuntimeExports.jsx(User,{user:_e})}),jsxRuntimeExports.jsx("div",{className:"h-6 w-6 text-hint opacity-50",children:jsxRuntimeExports.jsx(SvgNext,{})})]})}function Start(){useInit();const{t:i}=useTranslation(),o=useNavigate(),{transaction:g,setSelectPersonId:$}=useStore(),{unrelatedUsers:j,isRelationsComplete:_e}=useUsers(),[et]=b();if(!g)return null;const rt=!(g!=null&&g.formatted_text)&&!(g!=null&&g.raw_text),tt=g.shares.reduce((it,pt)=>it.map(ht=>ht.person_id).includes(pt.person_id)?it:[...it,pt],[]),nt=it=>{$(it),console.log("onSelect vibro"),et("light"),o("/select-user")},st=()=>{$(null),console.log("onAdd vibro"),et("light"),o("/select-user")},ft=()=>{var it,pt;(pt=(it=window==null?void 0:window.Telegram)==null?void 0:it.WebApp)==null||pt.close()};return jsxRuntimeExports.jsxs(Screen,{children:[jsxRuntimeExports.jsx(Header,{onCancel:ft}),!rt&&jsxRuntimeExports.jsxs(Panel,{children:[jsxRuntimeExports.jsx("div",{className:"text-[12px] leading-[1.33em] font-medium text-hint",children:i("message")}),jsxRuntimeExports.jsxs("div",{className:"mt-1",children:[!!g.is_voice&&jsxRuntimeExports.jsx("span",{children:"🎙 "}),g.formatted_text?jsxRuntimeExports.jsx(HTMLTagRenderer,{allowedTags:["b","strong"],string:g.formatted_text}):jsxRuntimeExports.jsx("strong",{children:g.raw_text})]})]}),jsxRuntimeExports.jsx(Panel,{children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h2",{children:i(rt?"addUsers":"matchUsers")}),!rt&&jsxRuntimeExports.jsxs("div",{className:"mt-1 text-[14px] leading-[20px] text-hint",children:["🐨 ",i("willBeSaved")]}),jsxRuntimeExports.jsx("div",{className:"mt-2 -mx-4 overflow-y-auto",children:tt.map((it,pt)=>jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(UserRelation,{...it,onClick:()=>nt(it.person_id)},`UserRelation-${pt}`),pt{o("/check")}})]})}const v="5.7.1",fr=30,ip=0,op=60,w=300,h=300,nm="Comp 1",ddd=0,assets=[],layers=[{ddd:0,ind:1,ty:4,nm:"4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[151,151,0],ix:2},a:{a:0,k:[0,0,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],[-22.5,-7.5],[0,0]],o:[[0,0],[22.5,7.5],[0,0]],v:[[61,78.5],[78,100.5],[94,115.5]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.12941176470588237,.19607843137254902,.3843137254901961,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:5,ix:5},lc:2,lj:1,ml:4,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:"Shape 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:28.254,s:[0]},{t:51,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:17,s:[0]},{t:46.2109375,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:17,op:617,st:17,bm:0},{ddd:0,ind:2,ty:4,nm:"3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:203,ix:10},p:{a:0,k:[251.408,59.449,0],ix:2},a:{a:0,k:[-103.936,89.696,0],ix:1},s:{a:0,k:[91.456,89.381,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[29.459,25.084],[5,-25.75],[5.75,-.75]],o:[[0,0],[-25.25,-21.5],[-5.515,28.405],[-5.75,.75]],v:[[-75,68.75],[-107.25,86.5],[-94,84],[-128.75,113]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[1,.713725490196,.211764720842,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:5,ix:5},lc:2,lj:1,ml:4,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:"Shape 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:28.254,s:[0]},{t:51,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:17,s:[0]},{t:46.2109375,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:17,op:617,st:17,bm:0},{ddd:0,ind:3,ty:4,nm:"2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[-21,347,0],ix:2},a:{a:0,k:[0,0,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],[20.5,4.5],[0,0],[18.25,9.25],[3.5,-3.25]],o:[[0,0],[-20.5,-4.5],[0,0],[-18.25,-9.25],[-3.5,3.25]],v:[[90.75,-122.25],[83.5,-110.5],[81.25,-97.25],[69.75,-93.25],[61,-75.75]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.745098039216,.643137254902,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:5,ix:5},lc:2,lj:1,ml:4,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:"Shape 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:28.254,s:[0]},{t:51,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:17,s:[0]},{t:46.2109375,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:17,op:617,st:17,bm:0},{ddd:0,ind:4,ty:4,nm:"1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[147,146,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[109.756,101.856,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[33.75,1]],o:[[0,0],[-33.75,-1]],v:[[-57.75,-75.75],[-90.75,-107.5]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[1,.431372578939,.513725490196,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:5,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-1.5,-.25],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:"Shape 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:28.254,s:[0]},{t:51,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:17,s:[0]},{t:46.2109375,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:17,op:617,st:17,bm:0},{ddd:0,ind:5,ty:4,nm:"checkmark/success Outlines",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[150.06,150.061,0],ix:2},a:{a:0,k:[99,99,0],ix:1},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:0,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:12,s:[27,27,100]},{t:21,s:[100,100,100]}],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[.831,1.409],[0,0],[-.622,2.004],[-1.844,1.043],[-2.083,-.474],[-1.215,-1.74],[0,0],[-.949,.537],[0,0],[-2.041,-.632],[-1.075,-1.826],[.463,-2.047],[1.756,-1.181]],o:[[-1.424,.805],[0,0],[-.93,-1.899],[.622,-2.006],[1.844,-1.042],[2.084,.474],[0,0],[.553,.939],[0,0],[1.921,-.899],[2.042,.631],[1.076,1.823],[-.463,2.047],[0,0]],v:[[-26.138,30.587],[-30.199,29.498],[-58.899,-19.189],[-59.378,-25.261],[-55.542,-30.001],[-49.433,-30.884],[-44.302,-27.441],[-23.618,7.647],[-20.911,8.371],[47.571,-30.344],[53.736,-30.76],[58.584,-26.94],[59.537,-20.918],[56.086,-15.898]],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},{ty:"tr",p:{a:0,k:[99.943,103.024],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[83.631,83.631],ix:3},r:{a:0,k:-12.6,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},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[-47.479,-12.722],[12.721,-47.478],[47.478,12.722],[-12.723,47.478]],o:[[47.479,12.722],[-12.723,47.479],[-47.478,-12.723],[12.721,-47.479]],v:[[23.036,-85.967],[85.969,23.035],[-23.035,85.967],[-85.966,-23.035]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:0,s:[.901960790157,.901960790157,.901960790157,1]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:10,s:[.901960790157,.901960790157,.901960790157,1]},{t:29,s:[.262745112181,.823529422283,.588235318661,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:[98.939,98.939],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:2,mn:"ADBE Vector Group",hd:!1}],ip:0,op:600,st:0,bm:0},{ddd:0,ind:6,ty:4,nm:"large-circles/success Outlines",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:42,s:[100]},{t:52,s:[2]}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[148,146,0],ix:2},a:{a:0,k:[95.5,98,0],ix:1},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.009,.009,.333],y:[1.621,1.621,0]},t:17,s:[62,62,100]},{t:50,s:[124,124,100]}],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[-6.209,1.338],[-1.337,-6.209],[6.209,-1.337],[1.338,6.209]],o:[[6.208,-1.337],[1.338,6.209],[-6.209,1.338],[-1.337,-6.209]],v:[[-2.421,-11.243],[11.242,-2.422],[2.421,11.241],[-11.243,2.421]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.745000023935,.642999985639,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:[173.998,145.423],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[71,71],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},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[-6.209,1.337],[-1.338,-6.209],[6.209,-1.338],[1.338,6.209]],o:[[6.209,-1.338],[1.337,6.209],[-6.209,1.337],[-1.337,-6.208]],v:[[-2.421,-11.242],[11.242,-2.422],[2.422,11.242],[-11.243,2.422]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.011764705882352941,.45098039215686275,.8901960784313725,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:[63.997,183.011],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[70,70],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:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[-6.209,1.337],[-1.337,-6.208],[6.209,-1.337],[1.338,6.209]],o:[[6.209,-1.337],[1.338,6.209],[-6.209,1.338],[-1.337,-6.209]],v:[[-2.421,-11.243],[11.242,-2.423],[2.421,11.242],[-11.243,2.421]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[1,.713999968884,.211999990426,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:[103.291,12.83],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[70,70],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:2,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[-6.208,1.337],[-1.337,-6.209],[6.209,-1.338],[1.338,6.209]],o:[[6.209,-1.337],[1.338,6.209],[-6.209,1.337],[-1.337,-6.209]],v:[[-2.423,-11.242],[11.241,-2.422],[2.421,11.242],[-11.243,2.422]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.011764705882352941,.45098039215686275,.8901960784313725,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:[178.004,59.795],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[67,67],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:2,cix:2,bm:0,ix:4,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[-6.209,1.337],[-1.338,-6.208],[6.209,-1.337],[1.338,6.209]],o:[[6.209,-1.337],[1.337,6.209],[-6.209,1.338],[-1.337,-6.209]],v:[[-2.421,-11.243],[11.243,-2.423],[2.422,11.242],[-11.243,2.421]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[1,.430999995213,.513999968884,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:[12.829,84.352],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[68,68],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:5,mn:"ADBE Vector Group",hd:!1}],ip:17,op:617,st:17,bm:0},{ddd:0,ind:7,ty:4,nm:"checkmark/success Outlines",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[150.073,150.073,0],ix:2},a:{a:0,k:[99,99,0],ix:1},s:{a:1,k:[{i:{x:[.203,.203,.667],y:[.507,.507,1]},o:{x:[.915,.915,.333],y:[.651,.651,0]},t:50,s:[93.357,93.357,100]},{t:59,s:[121.357,121.357,100]}],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[.831,1.409],[0,0],[-.622,2.004],[-1.844,1.043],[-2.083,-.474],[-1.215,-1.74],[0,0],[-.949,.537],[0,0],[-2.041,-.632],[-1.075,-1.826],[.463,-2.047],[1.756,-1.181]],o:[[-1.424,.805],[0,0],[-.93,-1.899],[.622,-2.006],[1.844,-1.042],[2.084,.474],[0,0],[.553,.939],[0,0],[1.921,-.899],[2.042,.631],[1.076,1.823],[-.463,2.047],[0,0]],v:[[-26.138,30.587],[-30.199,29.498],[-58.899,-19.189],[-59.378,-25.261],[-55.542,-30.001],[-49.433,-30.884],[-44.302,-27.441],[-23.618,7.647],[-20.911,8.371],[47.571,-30.344],[53.736,-30.76],[58.584,-26.94],[59.537,-20.918],[56.086,-15.898]],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},{ty:"tr",p:{a:0,k:[98.943,102.024],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},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[-47.479,-12.722],[12.721,-47.478],[47.478,12.722],[-12.723,47.478]],o:[[47.479,12.722],[-12.723,47.479],[-47.478,-12.723],[12.721,-47.479]],v:[[23.036,-85.967],[85.969,23.035],[-23.035,85.967],[-85.966,-23.035]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.2235294117647059,.7843137254901961,.32941176470588235,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:[98.939,98.939],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:2,mn:"ADBE Vector Group",hd:!1}],ip:50,op:650,st:50,bm:0}],markers=[],lottieSuccess={v,fr,ip,op,w,h,nm,ddd,assets,layers,markers};function SplashScreen(){const{isSplash:i,isLoading:o,error:g,isSuccess:$}=useSplash(),[,j]=b();return reactExports.useEffect(()=>{$&&(console.log("success vibro"),j("success"))},[$,j]),reactExports.useEffect(()=>{g&&(console.log("error vibro"),j("error"))},[g,j]),jsxRuntimeExports.jsx("div",{className:cx("fixed top-0 left-0 w-full h-full overflow-y-auto bg-bg2 transition-all",i?"opacity-100":"pointer-events-none opacity-0"),children:jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-center w-full min-h-full",children:[o&&!g&&!$&&jsxRuntimeExports.jsx(Loader,{size:50}),!!g&&jsxRuntimeExports.jsxs("div",{className:"p-4 text-center text-[#e00]",children:["Error: ",g.message]}),!!$&&jsxRuntimeExports.jsx("div",{className:"w-[200px] h-[200px] p-4 text-center text-button text-[24px] font-medium",children:jsxRuntimeExports.jsx(Lottie,{animationData:lottieSuccess,loop:!0})})]})})}const DemoMode=()=>{const{txId:i}=useStore(),{t:o}=useTranslation();return i!==null?null:jsxRuntimeExports.jsx("div",{className:"fixed top-0 width-auto left-[50%] -translate-x-[50%] px-4 py-[1px] text-[13px] leading-[1em] font-semibold bg-[#3a3] text-white rounded-b-md",children:o("demoMode")})},queryClient=new QueryClient;function App(){useTheme();const[i,o]=x();reactExports.useEffect(()=>{i||o()},[]);const g=createHashRouter([{path:"/",element:jsxRuntimeExports.jsx(Start,{}),errorElement:jsxRuntimeExports.jsx(Start,{})},{path:"*",element:jsxRuntimeExports.jsx(Start,{})},{path:"/select-user",element:jsxRuntimeExports.jsx(Select,{})},{path:"/check",element:jsxRuntimeExports.jsx(Check,{})},{path:"/select-currency",element:jsxRuntimeExports.jsx(SelectCurrency,{})}]);return jsxRuntimeExports.jsx(y,{options:{smoothButtonsTransition:!0},children:jsxRuntimeExports.jsxs(QueryClientProvider,{client:queryClient,children:[jsxRuntimeExports.jsx(RouterProvider,{router:g}),jsxRuntimeExports.jsx(SplashScreen,{}),jsxRuntimeExports.jsx(DemoMode,{})]})})}const index="";client.createRoot(document.getElementById("root")).render(jsxRuntimeExports.jsx(React.StrictMode,{children:jsxRuntimeExports.jsx(App,{})})); +`);var o="",g,$,j=0,_e;for(g=$=0,j=i.length,_e=0;_e127&&et<2048?rt=String.fromCharCode(et>>6|192,et&63|128):rt=String.fromCharCode(et>>12|224,et>>6&63|128,et&63|128),rt!==null&&($>g&&(o+=i.substring(g,$)),o+=rt,g=$=_e+1)}return $>g&&(o+=i.substring(g,i.length)),o};_.UUID=function(){var i=function(){var $=1*new Date,j;if(window$1.performance&&window$1.performance.now)j=window$1.performance.now();else for(j=0;$==1*new Date;)j++;return $.toString(16)+Math.floor(j).toString(16)},o=function(){return Math.random().toString(16).replace(".","")},g=function(){var $=userAgent,j,_e,et=[],rt=0;function tt(nt,st){var ft,it=0;for(ft=0;ft=4&&(rt=tt(rt,et),et=[]);return et.length>0&&(rt=tt(rt,et)),rt.toString(16)};return function(){var $=(screen.height*screen.width).toString(16);return i()+"-"+o()+"-"+g()+"-"+$+"-"+i()}}();var BLOCKED_UA_STRS=["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"];_.isBlockedUA=function(i){var o;for(i=i.toLowerCase(),o=0;o=0}function $(j){if(!document$1.getElementsByTagName)return[];var _e=j.split(" "),et,rt,tt,nt,st,ft,it,pt,ut,ht,mt=[document$1];for(ft=0;ft<_e.length;ft++){if(et=_e[ft].replace(/^\s+/,"").replace(/\s+$/,""),et.indexOf("#")>-1){rt=et.split("#"),tt=rt[0];var at=rt[1],lt=document$1.getElementById(at);if(!lt||tt&<.nodeName.toLowerCase()!=tt)return[];mt=[lt];continue}if(et.indexOf(".")>-1){rt=et.split("."),tt=rt[0];var ot=rt[1];for(tt||(tt="*"),nt=[],st=0,it=0;it-1};break;default:_t=function(Pt){return Pt.getAttribute(gt)}}for(mt=[],ht=0,it=0;it=3?o[2]:""},properties:function(){return _.extend(_.strip_empty_properties({$os:_.info.os(),$browser:_.info.browser(userAgent,navigator$1.vendor,windowOpera),$referrer:document$1.referrer,$referring_domain:_.info.referringDomain(document$1.referrer),$device:_.info.device(userAgent)}),{$current_url:window$1.location.href,$browser_version:_.info.browserVersion(userAgent,navigator$1.vendor,windowOpera),$screen_height:screen.height,$screen_width:screen.width,mp_lib:"web",$lib_version:Config.LIB_VERSION,$insert_id:cheap_guid(),time:_.timestamp()/1e3})},people_properties:function(){return _.extend(_.strip_empty_properties({$os:_.info.os(),$browser:_.info.browser(userAgent,navigator$1.vendor,windowOpera)}),{$browser_version:_.info.browserVersion(userAgent,navigator$1.vendor,windowOpera)})},mpPageViewProperties:function(){return _.strip_empty_properties({current_page_title:document$1.title,current_domain:window$1.location.hostname,current_url_path:window$1.location.pathname,current_url_protocol:window$1.location.protocol,current_url_search:window$1.location.search})}};var cheap_guid=function(i){var o=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return i?o.substring(0,i):o},SIMPLE_DOMAIN_MATCH_REGEX=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,DOMAIN_MATCH_REGEX=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,extract_domain=function(i){var o=DOMAIN_MATCH_REGEX,g=i.split("."),$=g[g.length-1];($.length>4||$==="com"||$==="org")&&(o=SIMPLE_DOMAIN_MATCH_REGEX);var j=i.match(o);return j?j[0]:""},JSONStringify=null,JSONParse=null;typeof JSON<"u"&&(JSONStringify=JSON.stringify,JSONParse=JSON.parse);JSONStringify=JSONStringify||_.JSONEncode;JSONParse=JSONParse||_.JSONDecode;_.toArray=_.toArray;_.isObject=_.isObject;_.JSONEncode=_.JSONEncode;_.JSONDecode=_.JSONDecode;_.isBlockedUA=_.isBlockedUA;_.isEmptyObject=_.isEmptyObject;_.info=_.info;_.info.device=_.info.device;_.info.browser=_.info.browser;_.info.browserVersion=_.info.browserVersion;_.info.properties=_.info.properties;var DomTracker=function(){};DomTracker.prototype.create_properties=function(){};DomTracker.prototype.event_handler=function(){};DomTracker.prototype.after_track_handler=function(){};DomTracker.prototype.init=function(i){return this.mp=i,this};DomTracker.prototype.track=function(i,o,g,$){var j=this,_e=_.dom_query(i);if(_e.length===0){console$1.error("The DOM query ("+i+") returned 0 elements");return}return _.each(_e,function(et){_.register_event(et,this.override_event,function(rt){var tt={},nt=j.create_properties(g,this),st=j.mp.get_config("track_links_timeout");j.event_handler(rt,this,tt),window.setTimeout(j.track_callback($,nt,tt,!0),st),j.mp.track(o,nt,j.track_callback($,nt,tt))})},this),!0};DomTracker.prototype.track_callback=function(i,o,g,$){$=$||!1;var j=this;return function(){g.callback_fired||(g.callback_fired=!0,!(i&&i($,o)===!1)&&j.after_track_handler(o,g,$))}};DomTracker.prototype.create_properties=function(i,o){var g;return typeof i=="function"?g=i(o):g=_.extend({},i),g};var LinkTracker=function(){this.override_event="click"};_.inherit(LinkTracker,DomTracker);LinkTracker.prototype.create_properties=function(i,o){var g=LinkTracker.superclass.create_properties.apply(this,arguments);return o.href&&(g.url=o.href),g};LinkTracker.prototype.event_handler=function(i,o,g){g.new_tab=i.which===2||i.metaKey||i.ctrlKey||o.target==="_blank",g.href=o.href,g.new_tab||i.preventDefault()};LinkTracker.prototype.after_track_handler=function(i,o){o.new_tab||setTimeout(function(){window.location=o.href},0)};var FormTracker=function(){this.override_event="submit"};_.inherit(FormTracker,DomTracker);FormTracker.prototype.event_handler=function(i,o,g){g.element=o,i.preventDefault()};FormTracker.prototype.after_track_handler=function(i,o){setTimeout(function(){o.element.submit()},0)};var logger$2=console_with_prefix("lock"),SharedLock=function(i,o){o=o||{},this.storageKey=i,this.storage=o.storage||window.localStorage,this.pollIntervalMS=o.pollIntervalMS||100,this.timeoutMS=o.timeoutMS||2e3};SharedLock.prototype.withLock=function(i,o,g){!g&&typeof o!="function"&&(g=o,o=null);var $=g||new Date().getTime()+"|"+Math.random(),j=new Date().getTime(),_e=this.storageKey,et=this.pollIntervalMS,rt=this.timeoutMS,tt=this.storage,nt=_e+":X",st=_e+":Y",ft=_e+":Z",it=function(lt){o&&o(lt)},pt=function(lt){if(new Date().getTime()-j>rt){logger$2.error("Timeout waiting for mutex on "+_e+"; clearing lock. ["+$+"]"),tt.removeItem(ft),tt.removeItem(st),mt();return}setTimeout(function(){try{lt()}catch(ot){it(ot)}},et*(Math.random()+.1))},ut=function(lt,ot){lt()?ot():pt(function(){ut(lt,ot)})},ht=function(){var lt=tt.getItem(st);if(lt&<!==$)return!1;if(tt.setItem(st,$),tt.getItem(st)===$)return!0;if(!localStorageSupported(tt,!0))throw new Error("localStorage support dropped while acquiring lock");return!1},mt=function(){tt.setItem(nt,$),ut(ht,function(){if(tt.getItem(nt)===$){at();return}pt(function(){if(tt.getItem(st)!==$){mt();return}ut(function(){return!tt.getItem(ft)},at)})})},at=function(){tt.setItem(ft,"1");try{i()}finally{tt.removeItem(ft),tt.getItem(st)===$&&tt.removeItem(st),tt.getItem(nt)===$&&tt.removeItem(nt)}};try{if(localStorageSupported(tt,!0))mt();else throw new Error("localStorage support check failed")}catch(lt){it(lt)}};var logger$1=console_with_prefix("batch"),RequestQueue=function(i,o){o=o||{},this.storageKey=i,this.storage=o.storage||window.localStorage,this.reportError=o.errorReporter||_.bind(logger$1.error,logger$1),this.lock=new SharedLock(i,{storage:this.storage}),this.pid=o.pid||null,this.memQueue=[]};RequestQueue.prototype.enqueue=function(i,o,g){var $={id:cheap_guid(),flushAfter:new Date().getTime()+o*2,payload:i};this.lock.withLock(_.bind(function(){var _e;try{var et=this.readFromStorage();et.push($),_e=this.saveToStorage(et),_e&&this.memQueue.push($)}catch{this.reportError("Error enqueueing item",i),_e=!1}g&&g(_e)},this),_.bind(function(_e){this.reportError("Error acquiring storage lock",_e),g&&g(!1)},this),this.pid)};RequestQueue.prototype.fillBatch=function(i){var o=this.memQueue.slice(0,i);if(o.length_e.flushAfter&&!$[_e.id]&&(_e.orphaned=!0,o.push(_e),o.length>=i))break}}}return o};var filterOutIDsAndInvalid=function(i,o){var g=[];return _.each(i,function($){$.id&&!o[$.id]&&g.push($)}),g};RequestQueue.prototype.removeItemsByID=function(i,o){var g={};_.each(i,function(j){g[j]=!0}),this.memQueue=filterOutIDsAndInvalid(this.memQueue,g);var $=_.bind(function(){var j;try{var _e=this.readFromStorage();if(_e=filterOutIDsAndInvalid(_e,g),j=this.saveToStorage(_e),j){_e=this.readFromStorage();for(var et=0;et<_e.length;et++){var rt=_e[et];if(rt.id&&g[rt.id])return this.reportError("Item not removed from storage"),!1}}}catch{this.reportError("Error removing items",i),j=!1}return j},this);this.lock.withLock(function(){var _e=$();o&&o(_e)},_.bind(function(_e){var et=!1;if(this.reportError("Error acquiring storage lock",_e),!localStorageSupported(this.storage,!0)&&(et=$(),!et))try{this.storage.removeItem(this.storageKey)}catch(rt){this.reportError("Error clearing queue",rt)}o&&o(et)},this),this.pid)};var updatePayloads=function(i,o){var g=[];return _.each(i,function($){var j=$.id;if(j in o){var _e=o[j];_e!==null&&($.payload=_e,g.push($))}else g.push($)}),g};RequestQueue.prototype.updatePayloads=function(i,o){this.memQueue=updatePayloads(this.memQueue,i),this.lock.withLock(_.bind(function(){var $;try{var j=this.readFromStorage();j=updatePayloads(j,i),$=this.saveToStorage(j)}catch{this.reportError("Error updating items",i),$=!1}o&&o($)},this),_.bind(function($){this.reportError("Error acquiring storage lock",$),o&&o(!1)},this),this.pid)};RequestQueue.prototype.readFromStorage=function(){var i;try{i=this.storage.getItem(this.storageKey),i&&(i=JSONParse(i),_.isArray(i)||(this.reportError("Invalid storage entry:",i),i=null))}catch(o){this.reportError("Error retrieving queue",o),i=null}return i||[]};RequestQueue.prototype.saveToStorage=function(i){try{return this.storage.setItem(this.storageKey,JSONStringify(i)),!0}catch(o){return this.reportError("Error saving queue",o),!1}};RequestQueue.prototype.clear=function(){this.memQueue=[],this.storage.removeItem(this.storageKey)};var MAX_RETRY_INTERVAL_MS=10*60*1e3,logger=console_with_prefix("batch"),RequestBatcher=function(i,o){this.errorReporter=o.errorReporter,this.queue=new RequestQueue(i,{errorReporter:_.bind(this.reportError,this),storage:o.storage}),this.libConfig=o.libConfig,this.sendRequest=o.sendRequestFunc,this.beforeSendHook=o.beforeSendHook,this.stopAllBatching=o.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={}};RequestBatcher.prototype.enqueue=function(i,o){this.queue.enqueue(i,this.flushInterval,o)};RequestBatcher.prototype.start=function(){this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()};RequestBatcher.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)};RequestBatcher.prototype.clear=function(){this.queue.clear()};RequestBatcher.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size};RequestBatcher.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)};RequestBatcher.prototype.scheduleFlush=function(i){this.flushInterval=i,this.stopped||(this.timeoutID=setTimeout(_.bind(this.flush,this),this.flushInterval))};RequestBatcher.prototype.flush=function(i){try{if(this.requestInProgress){logger.log("Flush: Request already in progress");return}i=i||{};var o=this.libConfig.batch_request_timeout_ms,g=new Date().getTime(),$=this.batchSize,j=this.queue.fillBatch($),_e=[],et={};if(_.each(j,function(nt){var st=nt.payload;if(this.beforeSendHook&&!nt.orphaned&&(st=this.beforeSendHook(st)),st){st.event&&st.properties&&(st.properties=_.extend({},st.properties,{mp_sent_by_lib_version:Config.LIB_VERSION}));var ft=!0,it=nt.id;it?(this.itemIdsSentSuccessfully[it]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:nt,batchSize:j.length,timesSent:this.itemIdsSentSuccessfully[it]}),ft=!1):this.reportError("[dupe] found item with no ID",{item:nt}),ft&&_e.push(st)}et[nt.id]=st},this),_e.length<1){this.resetFlush();return}this.requestInProgress=!0;var rt=_.bind(function(nt){this.requestInProgress=!1;try{var st=!1;if(i.unloading)this.queue.updatePayloads(et);else if(_.isObject(nt)&&nt.error==="timeout"&&new Date().getTime()-g>=o)this.reportError("Network timeout; retrying"),this.flush();else if(_.isObject(nt)&&nt.xhr_req&&(nt.xhr_req.status>=500||nt.xhr_req.status===429||nt.error==="timeout")){var ft=this.flushInterval*2,it=nt.xhr_req.responseHeaders;if(it){var pt=it["Retry-After"];pt&&(ft=parseInt(pt,10)*1e3||ft)}ft=Math.min(MAX_RETRY_INTERVAL_MS,ft),this.reportError("Error; retry in "+ft+" ms"),this.scheduleFlush(ft)}else if(_.isObject(nt)&&nt.xhr_req&&nt.xhr_req.status===413)if(j.length>1){var ut=Math.max(1,Math.floor($/2));this.batchSize=Math.min(this.batchSize,ut,j.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush()}else this.reportError("Single-event request too large; dropping",j),this.resetBatchSize(),st=!0;else st=!0;st&&(this.queue.removeItemsByID(_.map(j,function(ht){return ht.id}),_.bind(function(ht){ht?(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)),_.each(j,_.bind(function(ht){var mt=ht.id;mt?(this.itemIdsSentSuccessfully[mt]=this.itemIdsSentSuccessfully[mt]||0,this.itemIdsSentSuccessfully[mt]++,this.itemIdsSentSuccessfully[mt]>5&&this.reportError("[dupe] item ID sent too many times",{item:ht,batchSize:j.length,timesSent:this.itemIdsSentSuccessfully[mt]})):this.reportError("[dupe] found item with no ID while removing",{item:ht})},this)))}catch(ht){this.reportError("Error handling API response",ht),this.resetFlush()}},this),tt={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:o};i.unloading&&(tt.transport="sendBeacon"),logger.log("MIXPANEL REQUEST:",_e),this.sendRequest(_e,tt,rt)}catch(nt){this.reportError("Error flushing request queue",nt),this.resetFlush()}};RequestBatcher.prototype.reportError=function(i,o){if(logger.error.apply(logger.error,arguments),this.errorReporter)try{o instanceof Error||(o=new Error(i)),this.errorReporter(i,o)}catch(g){logger.error(g)}};var GDPR_DEFAULT_PERSISTENCE_PREFIX="__mp_opt_in_out_";function optIn(i,o){_optInOut(!0,i,o)}function optOut(i,o){_optInOut(!1,i,o)}function hasOptedIn(i,o){return _getStorageValue(i,o)==="1"}function hasOptedOut(i,o){if(_hasDoNotTrackFlagOn(o))return console$1.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 g=_getStorageValue(i,o)==="0";return g&&console$1.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),g}function addOptOutCheckMixpanelLib(i){return _addOptOutCheck(i,function(o){return this.get_config(o)})}function addOptOutCheckMixpanelPeople(i){return _addOptOutCheck(i,function(o){return this._get_config(o)})}function addOptOutCheckMixpanelGroup(i){return _addOptOutCheck(i,function(o){return this._get_config(o)})}function clearOptInOut(i,o){o=o||{},_getStorage(o).remove(_getStorageKey(i,o),!!o.crossSubdomainCookie,o.cookieDomain)}function _getStorage(i){return i=i||{},i.persistenceType==="localStorage"?_.localStorage:_.cookie}function _getStorageKey(i,o){return o=o||{},(o.persistencePrefix||GDPR_DEFAULT_PERSISTENCE_PREFIX)+i}function _getStorageValue(i,o){return _getStorage(o).get(_getStorageKey(i,o))}function _hasDoNotTrackFlagOn(i){if(i&&i.ignoreDnt)return!1;var o=i&&i.window||window$1,g=o.navigator||{},$=!1;return _.each([g.doNotTrack,g.msDoNotTrack,o.doNotTrack],function(j){_.includes([!0,1,"1","yes"],j)&&($=!0)}),$}function _optInOut(i,o,g){if(!_.isString(o)||!o.length){console$1.error("gdpr."+(i?"optIn":"optOut")+" called with an invalid token");return}g=g||{},_getStorage(g).set(_getStorageKey(o,g),i?1:0,_.isNumber(g.cookieExpiration)?g.cookieExpiration:null,!!g.crossSubdomainCookie,!!g.secureCookie,!!g.crossSiteCookie,g.cookieDomain),g.track&&i&&g.track(g.trackEventName||"$opt_in",g.trackProperties,{send_immediately:!0})}function _addOptOutCheck(i,o){return function(){var g=!1;try{var $=o.call(this,"token"),j=o.call(this,"ignore_dnt"),_e=o.call(this,"opt_out_tracking_persistence_type"),et=o.call(this,"opt_out_tracking_cookie_prefix"),rt=o.call(this,"window");$&&(g=hasOptedOut($,{ignoreDnt:j,persistenceType:_e,persistencePrefix:et,window:rt}))}catch(nt){console$1.error("Unexpected error when checking tracking opt-out status: "+nt)}if(!g)return i.apply(this,arguments);var tt=arguments[arguments.length-1];typeof tt=="function"&&tt(0)}}var SET_ACTION="$set",SET_ONCE_ACTION="$set_once",UNSET_ACTION="$unset",ADD_ACTION="$add",APPEND_ACTION="$append",UNION_ACTION="$union",REMOVE_ACTION="$remove",DELETE_ACTION="$delete",apiActions={set_action:function(i,o){var g={},$={};return _.isObject(i)?_.each(i,function(j,_e){this._is_reserved_property(_e)||($[_e]=j)},this):$[i]=o,g[SET_ACTION]=$,g},unset_action:function(i){var o={},g=[];return _.isArray(i)||(i=[i]),_.each(i,function($){this._is_reserved_property($)||g.push($)},this),o[UNSET_ACTION]=g,o},set_once_action:function(i,o){var g={},$={};return _.isObject(i)?_.each(i,function(j,_e){this._is_reserved_property(_e)||($[_e]=j)},this):$[i]=o,g[SET_ONCE_ACTION]=$,g},union_action:function(i,o){var g={},$={};return _.isObject(i)?_.each(i,function(j,_e){this._is_reserved_property(_e)||($[_e]=_.isArray(j)?j:[j])},this):$[i]=_.isArray(o)?o:[o],g[UNION_ACTION]=$,g},append_action:function(i,o){var g={},$={};return _.isObject(i)?_.each(i,function(j,_e){this._is_reserved_property(_e)||($[_e]=j)},this):$[i]=o,g[APPEND_ACTION]=$,g},remove_action:function(i,o){var g={},$={};return _.isObject(i)?_.each(i,function(j,_e){this._is_reserved_property(_e)||($[_e]=j)},this):$[i]=o,g[REMOVE_ACTION]=$,g},delete_action:function(){var i={};return i[DELETE_ACTION]="",i}},MixpanelGroup=function(){};_.extend(MixpanelGroup.prototype,apiActions);MixpanelGroup.prototype._init=function(i,o,g){this._mixpanel=i,this._group_key=o,this._group_id=g};MixpanelGroup.prototype.set=addOptOutCheckMixpanelGroup(function(i,o,g){var $=this.set_action(i,o);return _.isObject(i)&&(g=o),this._send_request($,g)});MixpanelGroup.prototype.set_once=addOptOutCheckMixpanelGroup(function(i,o,g){var $=this.set_once_action(i,o);return _.isObject(i)&&(g=o),this._send_request($,g)});MixpanelGroup.prototype.unset=addOptOutCheckMixpanelGroup(function(i,o){var g=this.unset_action(i);return this._send_request(g,o)});MixpanelGroup.prototype.union=addOptOutCheckMixpanelGroup(function(i,o,g){_.isObject(i)&&(g=o);var $=this.union_action(i,o);return this._send_request($,g)});MixpanelGroup.prototype.delete=addOptOutCheckMixpanelGroup(function(i){var o=this.delete_action();return this._send_request(o,i)});MixpanelGroup.prototype.remove=addOptOutCheckMixpanelGroup(function(i,o,g){var $=this.remove_action(i,o);return this._send_request($,g)});MixpanelGroup.prototype._send_request=function(i,o){i.$group_key=this._group_key,i.$group_id=this._group_id,i.$token=this._get_config("token");var g=_.encodeDates(i);return this._mixpanel._track_or_batch({type:"groups",data:g,endpoint:this._get_config("api_host")+"/groups/",batcher:this._mixpanel.request_batchers.groups},o)};MixpanelGroup.prototype._is_reserved_property=function(i){return i==="$group_key"||i==="$group_id"};MixpanelGroup.prototype._get_config=function(i){return this._mixpanel.get_config(i)};MixpanelGroup.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id};MixpanelGroup.prototype.remove=MixpanelGroup.prototype.remove;MixpanelGroup.prototype.set=MixpanelGroup.prototype.set;MixpanelGroup.prototype.set_once=MixpanelGroup.prototype.set_once;MixpanelGroup.prototype.union=MixpanelGroup.prototype.union;MixpanelGroup.prototype.unset=MixpanelGroup.prototype.unset;MixpanelGroup.prototype.toString=MixpanelGroup.prototype.toString;var MixpanelPeople=function(){};_.extend(MixpanelPeople.prototype,apiActions);MixpanelPeople.prototype._init=function(i){this._mixpanel=i};MixpanelPeople.prototype.set=addOptOutCheckMixpanelPeople(function(i,o,g){var $=this.set_action(i,o);return _.isObject(i)&&(g=o),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),$[SET_ACTION]=_.extend({},_.info.people_properties(),this._mixpanel.persistence.get_referrer_info(),$[SET_ACTION]),this._send_request($,g)});MixpanelPeople.prototype.set_once=addOptOutCheckMixpanelPeople(function(i,o,g){var $=this.set_once_action(i,o);return _.isObject(i)&&(g=o),this._send_request($,g)});MixpanelPeople.prototype.unset=addOptOutCheckMixpanelPeople(function(i,o){var g=this.unset_action(i);return this._send_request(g,o)});MixpanelPeople.prototype.increment=addOptOutCheckMixpanelPeople(function(i,o,g){var $={},j={};return _.isObject(i)?(_.each(i,function(_e,et){if(!this._is_reserved_property(et))if(isNaN(parseFloat(_e))){console$1.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}else j[et]=_e},this),g=o):(_.isUndefined(o)&&(o=1),j[i]=o),$[ADD_ACTION]=j,this._send_request($,g)});MixpanelPeople.prototype.append=addOptOutCheckMixpanelPeople(function(i,o,g){_.isObject(i)&&(g=o);var $=this.append_action(i,o);return this._send_request($,g)});MixpanelPeople.prototype.remove=addOptOutCheckMixpanelPeople(function(i,o,g){_.isObject(i)&&(g=o);var $=this.remove_action(i,o);return this._send_request($,g)});MixpanelPeople.prototype.union=addOptOutCheckMixpanelPeople(function(i,o,g){_.isObject(i)&&(g=o);var $=this.union_action(i,o);return this._send_request($,g)});MixpanelPeople.prototype.track_charge=addOptOutCheckMixpanelPeople(function(i,o,g){if(!_.isNumber(i)&&(i=parseFloat(i),isNaN(i))){console$1.error("Invalid value passed to mixpanel.people.track_charge - must be a number");return}return this.append("$transactions",_.extend({$amount:i},o),g)});MixpanelPeople.prototype.clear_charges=function(i){return this.set("$transactions",[],i)};MixpanelPeople.prototype.delete_user=function(){if(!this._identify_called()){console$1.error("mixpanel.people.delete_user() requires you to call identify() first");return}var i={$delete:this._mixpanel.get_distinct_id()};return this._send_request(i)};MixpanelPeople.prototype.toString=function(){return this._mixpanel.toString()+".people"};MixpanelPeople.prototype._send_request=function(i,o){i.$token=this._get_config("token"),i.$distinct_id=this._mixpanel.get_distinct_id();var g=this._mixpanel.get_property("$device_id"),$=this._mixpanel.get_property("$user_id"),j=this._mixpanel.get_property("$had_persisted_distinct_id");g&&(i.$device_id=g),$&&(i.$user_id=$),j&&(i.$had_persisted_distinct_id=j);var _e=_.encodeDates(i);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:_e,endpoint:this._get_config("api_host")+"/engage/",batcher:this._mixpanel.request_batchers.people},o):(this._enqueue(i),_.isUndefined(o)||(this._get_config("verbose")?o({status:-1,error:null}):o(-1)),_.truncate(_e,255))};MixpanelPeople.prototype._get_config=function(i){return this._mixpanel.get_config(i)};MixpanelPeople.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0};MixpanelPeople.prototype._enqueue=function(i){SET_ACTION in i?this._mixpanel.persistence._add_to_people_queue(SET_ACTION,i):SET_ONCE_ACTION in i?this._mixpanel.persistence._add_to_people_queue(SET_ONCE_ACTION,i):UNSET_ACTION in i?this._mixpanel.persistence._add_to_people_queue(UNSET_ACTION,i):ADD_ACTION in i?this._mixpanel.persistence._add_to_people_queue(ADD_ACTION,i):APPEND_ACTION in i?this._mixpanel.persistence._add_to_people_queue(APPEND_ACTION,i):REMOVE_ACTION in i?this._mixpanel.persistence._add_to_people_queue(REMOVE_ACTION,i):UNION_ACTION in i?this._mixpanel.persistence._add_to_people_queue(UNION_ACTION,i):console$1.error("Invalid call to _enqueue():",i)};MixpanelPeople.prototype._flush_one_queue=function(i,o,g,$){var j=this,_e=_.extend({},this._mixpanel.persistence._get_queue(i)),et=_e;!_.isUndefined(_e)&&_.isObject(_e)&&!_.isEmptyObject(_e)&&(j._mixpanel.persistence._pop_from_people_queue(i,_e),$&&(et=$(_e)),o.call(j,et,function(rt,tt){rt===0&&j._mixpanel.persistence._add_to_people_queue(i,_e),_.isUndefined(g)||g(rt,tt)}))};MixpanelPeople.prototype._flush=function(i,o,g,$,j,_e,et){var rt=this,tt=this._mixpanel.persistence._get_queue(APPEND_ACTION),nt=this._mixpanel.persistence._get_queue(REMOVE_ACTION);if(this._flush_one_queue(SET_ACTION,this.set,i),this._flush_one_queue(SET_ONCE_ACTION,this.set_once,$),this._flush_one_queue(UNSET_ACTION,this.unset,_e,function(mt){return _.keys(mt)}),this._flush_one_queue(ADD_ACTION,this.increment,o),this._flush_one_queue(UNION_ACTION,this.union,j),!_.isUndefined(tt)&&_.isArray(tt)&&tt.length){for(var st,ft=function(mt,at){mt===0&&rt._mixpanel.persistence._add_to_people_queue(APPEND_ACTION,st),_.isUndefined(g)||g(mt,at)},it=tt.length-1;it>=0;it--)st=tt.pop(),_.isEmptyObject(st)||rt.append(st,ft);rt._mixpanel.persistence.save()}if(!_.isUndefined(nt)&&_.isArray(nt)&&nt.length){for(var pt,ut=function(mt,at){mt===0&&rt._mixpanel.persistence._add_to_people_queue(REMOVE_ACTION,pt),_.isUndefined(et)||et(mt,at)},ht=nt.length-1;ht>=0;ht--)pt=nt.pop(),_.isEmptyObject(pt)||rt.remove(pt,ut);rt._mixpanel.persistence.save()}};MixpanelPeople.prototype._is_reserved_property=function(i){return i==="$distinct_id"||i==="$token"||i==="$device_id"||i==="$user_id"||i==="$had_persisted_distinct_id"};MixpanelPeople.prototype.set=MixpanelPeople.prototype.set;MixpanelPeople.prototype.set_once=MixpanelPeople.prototype.set_once;MixpanelPeople.prototype.unset=MixpanelPeople.prototype.unset;MixpanelPeople.prototype.increment=MixpanelPeople.prototype.increment;MixpanelPeople.prototype.append=MixpanelPeople.prototype.append;MixpanelPeople.prototype.remove=MixpanelPeople.prototype.remove;MixpanelPeople.prototype.union=MixpanelPeople.prototype.union;MixpanelPeople.prototype.track_charge=MixpanelPeople.prototype.track_charge;MixpanelPeople.prototype.clear_charges=MixpanelPeople.prototype.clear_charges;MixpanelPeople.prototype.delete_user=MixpanelPeople.prototype.delete_user;MixpanelPeople.prototype.toString=MixpanelPeople.prototype.toString;var SET_QUEUE_KEY="__mps",SET_ONCE_QUEUE_KEY="__mpso",UNSET_QUEUE_KEY="__mpus",ADD_QUEUE_KEY="__mpa",APPEND_QUEUE_KEY="__mpap",REMOVE_QUEUE_KEY="__mpr",UNION_QUEUE_KEY="__mpu",PEOPLE_DISTINCT_ID_KEY="$people_distinct_id",ALIAS_ID_KEY="__alias",EVENT_TIMERS_KEY="__timers",RESERVED_PROPERTIES=[SET_QUEUE_KEY,SET_ONCE_QUEUE_KEY,UNSET_QUEUE_KEY,ADD_QUEUE_KEY,APPEND_QUEUE_KEY,REMOVE_QUEUE_KEY,UNION_QUEUE_KEY,PEOPLE_DISTINCT_ID_KEY,ALIAS_ID_KEY,EVENT_TIMERS_KEY],MixpanelPersistence=function(i){this.props={},this.campaign_params_saved=!1,i.persistence_name?this.name="mp_"+i.persistence_name:this.name="mp_"+i.token+"_mixpanel";var o=i.persistence;o!=="cookie"&&o!=="localStorage"&&(console$1.critical("Unknown persistence type "+o+"; falling back to cookie"),o=i.persistence="cookie"),o==="localStorage"&&_.localStorage.is_supported()?this.storage=_.localStorage:this.storage=_.cookie,this.load(),this.update_config(i),this.upgrade(i),this.save()};MixpanelPersistence.prototype.properties=function(){var i={};return _.each(this.props,function(o,g){_.include(RESERVED_PROPERTIES,g)||(i[g]=o)}),i};MixpanelPersistence.prototype.load=function(){if(!this.disabled){var i=this.storage.parse(this.name);i&&(this.props=_.extend({},i))}};MixpanelPersistence.prototype.upgrade=function(i){var o=i.upgrade,g,$;o&&(g="mp_super_properties",typeof o=="string"&&(g=o),$=this.storage.parse(g),this.storage.remove(g),this.storage.remove(g,!0),$&&(this.props=_.extend(this.props,$.all,$.events))),!i.cookie_name&&i.name!=="mixpanel"&&(g="mp_"+i.token+"_"+i.name,$=this.storage.parse(g),$&&(this.storage.remove(g),this.storage.remove(g,!0),this.register_once($))),this.storage===_.localStorage&&($=_.cookie.parse(this.name),_.cookie.remove(this.name),_.cookie.remove(this.name,!0),$&&this.register_once($))};MixpanelPersistence.prototype.save=function(){this.disabled||this.storage.set(this.name,_.JSONEncode(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)};MixpanelPersistence.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)};MixpanelPersistence.prototype.clear=function(){this.remove(),this.props={}};MixpanelPersistence.prototype.register_once=function(i,o,g){return _.isObject(i)?(typeof o>"u"&&(o="None"),this.expire_days=typeof g>"u"?this.default_expiry:g,_.each(i,function($,j){(!this.props.hasOwnProperty(j)||this.props[j]===o)&&(this.props[j]=$)},this),this.save(),!0):!1};MixpanelPersistence.prototype.register=function(i,o){return _.isObject(i)?(this.expire_days=typeof o>"u"?this.default_expiry:o,_.extend(this.props,i),this.save(),!0):!1};MixpanelPersistence.prototype.unregister=function(i){i in this.props&&(delete this.props[i],this.save())};MixpanelPersistence.prototype.update_search_keyword=function(i){this.register(_.info.searchInfo(i))};MixpanelPersistence.prototype.update_referrer_info=function(i){this.register_once({$initial_referrer:i||"$direct",$initial_referring_domain:_.info.referringDomain(i)||"$direct"},"")};MixpanelPersistence.prototype.get_referrer_info=function(){return _.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})};MixpanelPersistence.prototype.safe_merge=function(i){return _.each(this.props,function(o,g){g in i||(i[g]=o)}),i};MixpanelPersistence.prototype.update_config=function(i){this.default_expiry=this.expire_days=i.cookie_expiration,this.set_disabled(i.disable_persistence),this.set_cookie_domain(i.cookie_domain),this.set_cross_site(i.cross_site_cookie),this.set_cross_subdomain(i.cross_subdomain_cookie),this.set_secure(i.secure_cookie)};MixpanelPersistence.prototype.set_disabled=function(i){this.disabled=i,this.disabled?this.remove():this.save()};MixpanelPersistence.prototype.set_cookie_domain=function(i){i!==this.cookie_domain&&(this.remove(),this.cookie_domain=i,this.save())};MixpanelPersistence.prototype.set_cross_site=function(i){i!==this.cross_site&&(this.cross_site=i,this.remove(),this.save())};MixpanelPersistence.prototype.set_cross_subdomain=function(i){i!==this.cross_subdomain&&(this.cross_subdomain=i,this.remove(),this.save())};MixpanelPersistence.prototype.get_cross_subdomain=function(){return this.cross_subdomain};MixpanelPersistence.prototype.set_secure=function(i){i!==this.secure&&(this.secure=!!i,this.remove(),this.save())};MixpanelPersistence.prototype._add_to_people_queue=function(i,o){var g=this._get_queue_key(i),$=o[i],j=this._get_or_create_queue(SET_ACTION),_e=this._get_or_create_queue(SET_ONCE_ACTION),et=this._get_or_create_queue(UNSET_ACTION),rt=this._get_or_create_queue(ADD_ACTION),tt=this._get_or_create_queue(UNION_ACTION),nt=this._get_or_create_queue(REMOVE_ACTION,[]),st=this._get_or_create_queue(APPEND_ACTION,[]);g===SET_QUEUE_KEY?(_.extend(j,$),this._pop_from_people_queue(ADD_ACTION,$),this._pop_from_people_queue(UNION_ACTION,$),this._pop_from_people_queue(UNSET_ACTION,$)):g===SET_ONCE_QUEUE_KEY?(_.each($,function(ft,it){it in _e||(_e[it]=ft)}),this._pop_from_people_queue(UNSET_ACTION,$)):g===UNSET_QUEUE_KEY?_.each($,function(ft){_.each([j,_e,rt,tt],function(it){ft in it&&delete it[ft]}),_.each(st,function(it){ft in it&&delete it[ft]}),et[ft]=!0}):g===ADD_QUEUE_KEY?(_.each($,function(ft,it){it in j?j[it]+=ft:(it in rt||(rt[it]=0),rt[it]+=ft)},this),this._pop_from_people_queue(UNSET_ACTION,$)):g===UNION_QUEUE_KEY?(_.each($,function(ft,it){_.isArray(ft)&&(it in tt||(tt[it]=[]),tt[it]=tt[it].concat(ft))}),this._pop_from_people_queue(UNSET_ACTION,$)):g===REMOVE_QUEUE_KEY?(nt.push($),this._pop_from_people_queue(APPEND_ACTION,$)):g===APPEND_QUEUE_KEY&&(st.push($),this._pop_from_people_queue(UNSET_ACTION,$)),console$1.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),console$1.log(o),this.save()};MixpanelPersistence.prototype._pop_from_people_queue=function(i,o){var g=this._get_queue(i);_.isUndefined(g)||(_.each(o,function($,j){i===APPEND_ACTION||i===REMOVE_ACTION?_.each(g,function(_e){_e[j]===$&&delete _e[j]}):delete g[j]},this),this.save())};MixpanelPersistence.prototype._get_queue_key=function(i){if(i===SET_ACTION)return SET_QUEUE_KEY;if(i===SET_ONCE_ACTION)return SET_ONCE_QUEUE_KEY;if(i===UNSET_ACTION)return UNSET_QUEUE_KEY;if(i===ADD_ACTION)return ADD_QUEUE_KEY;if(i===APPEND_ACTION)return APPEND_QUEUE_KEY;if(i===REMOVE_ACTION)return REMOVE_QUEUE_KEY;if(i===UNION_ACTION)return UNION_QUEUE_KEY;console$1.error("Invalid queue:",i)};MixpanelPersistence.prototype._get_queue=function(i){return this.props[this._get_queue_key(i)]};MixpanelPersistence.prototype._get_or_create_queue=function(i,o){var g=this._get_queue_key(i);return o=_.isUndefined(o)?{}:o,this.props[g]||(this.props[g]=o)};MixpanelPersistence.prototype.set_event_timer=function(i,o){var g=this.props[EVENT_TIMERS_KEY]||{};g[i]=o,this.props[EVENT_TIMERS_KEY]=g,this.save()};MixpanelPersistence.prototype.remove_event_timer=function(i){var o=this.props[EVENT_TIMERS_KEY]||{},g=o[i];return _.isUndefined(g)||(delete this.props[EVENT_TIMERS_KEY][i],this.save()),g};var init_type,mixpanel_master,INIT_MODULE=0,INIT_SNIPPET=1,IDENTITY_FUNC=function(i){return i},NOOP_FUNC=function(){},PRIMARY_INSTANCE_NAME="mixpanel",PAYLOAD_TYPE_BASE64="base64",PAYLOAD_TYPE_JSON="json",DEVICE_ID_PREFIX="$device:",USE_XHR=window$1.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,ENQUEUE_REQUESTS=!USE_XHR&&userAgent.indexOf("MSIE")===-1&&userAgent.indexOf("Mozilla")===-1,sendBeacon=null;navigator$1.sendBeacon&&(sendBeacon=function(){return navigator$1.sendBeacon.apply(navigator$1,arguments)});var DEFAULT_CONFIG={api_host:"https://api-js.mixpanel.com",api_method:"POST",api_transport:"XHR",api_payload_format:PAYLOAD_TYPE_BASE64,app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:NOOP_FUNC,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:NOOP_FUNC,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:{}},DOM_LOADED=!1,MixpanelLib=function(){},create_mplib=function(i,o,g){var $,j=g===PRIMARY_INSTANCE_NAME?mixpanel_master:mixpanel_master[g];if(j&&init_type===INIT_MODULE)$=j;else{if(j&&!_.isArray(j)){console$1.error("You have already initialized "+g);return}$=new MixpanelLib}if($._cached_groups={},$._init(i,o,g),$.people=new MixpanelPeople,$.people._init($),!$.get_config("skip_first_touch_marketing")){var _e=_.info.campaignParams(null),et={},rt=!1;_.each(_e,function(tt,nt){et["initial_"+nt]=tt,tt&&(rt=!0)}),rt&&$.people.set_once(et)}return Config.DEBUG=Config.DEBUG||$.get_config("debug"),!_.isUndefined(j)&&_.isArray(j)&&($._execute_array.call($.people,j.people),$._execute_array(j)),$};MixpanelLib.prototype.init=function(i,o,g){if(_.isUndefined(g)){this.report_error("You must name your new library: init(token, config, name)");return}if(g===PRIMARY_INSTANCE_NAME){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var $=create_mplib(i,o,g);return mixpanel_master[g]=$,$._loaded(),$};MixpanelLib.prototype._init=function(i,o,g){o=o||{},this.__loaded=!0,this.config={};var $={};if(!("api_payload_format"in o)){var j=o.api_host||DEFAULT_CONFIG.api_host;j.match(/\.mixpanel\.com/)&&($.api_payload_format=PAYLOAD_TYPE_JSON)}if(this.set_config(_.extend({},DEFAULT_CONFIG,$,o,{name:g,token:i,callback_fn:(g===PRIMARY_INSTANCE_NAME?g:PRIMARY_INSTANCE_NAME+"."+g)+"._jsc"})),this._jsc=NOOP_FUNC,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(!_.localStorage.is_supported(!0)||!USE_XHR)this._batch_requests=!1,console$1.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support");else if(this.init_batchers(),sendBeacon&&window$1.addEventListener){var _e=_.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);window$1.addEventListener("pagehide",function(rt){rt.persisted&&_e()}),window$1.addEventListener("visibilitychange",function(){document$1.visibilityState==="hidden"&&_e()})}}this.persistence=this.cookie=new MixpanelPersistence(this.config),this.unpersisted_superprops={},this._gdpr_init();var et=_.UUID();this.get_distinct_id()||this.register_once({distinct_id:DEVICE_ID_PREFIX+et,$device_id:et},""),this.get_config("track_pageview")&&this.track_pageview()};MixpanelLib.prototype._loaded=function(){this.get_config("loaded")(this),this._set_default_superprops()};MixpanelLib.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(document$1.referrer),this.get_config("store_google")&&this.register(_.info.campaignParams(),{persistent:!1}),this.get_config("save_referrer")&&this.persistence.update_referrer_info(document$1.referrer)};MixpanelLib.prototype._dom_loaded=function(){_.each(this.__dom_loaded_queue,function(i){this._track_dom.apply(this,i)},this),this.has_opted_out_tracking()||_.each(this.__request_queue,function(i){this._send_request.apply(this,i)},this),delete this.__dom_loaded_queue,delete this.__request_queue};MixpanelLib.prototype._track_dom=function(i,o){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!DOM_LOADED)return this.__dom_loaded_queue.push([i,o]),!1;var g=new i().init(this);return g.track.apply(g,o)};MixpanelLib.prototype._prepare_callback=function(i,o){if(_.isUndefined(i))return null;if(USE_XHR){var g=function(et){i(et,o)};return g}else{var $=this._jsc,j=""+Math.floor(Math.random()*1e8),_e=this.get_config("callback_fn")+"["+j+"]";return $[j]=function(et){delete $[j],i(et,o)},_e}};MixpanelLib.prototype._send_request=function(i,o,g,$){var j=!0;if(ENQUEUE_REQUESTS)return this.__request_queue.push(arguments),j;var _e={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},et=null;!$&&(_.isFunction(g)||typeof g=="string")&&($=g,g=null),g=_.extend(_e,g||{}),USE_XHR||(g.method="GET");var rt=g.method==="POST",tt=sendBeacon&&rt&&g.transport.toLowerCase()==="sendbeacon",nt=g.verbose;o.verbose&&(nt=!0),this.get_config("test")&&(o.test=1),nt&&(o.verbose=1),this.get_config("img")&&(o.img=1),USE_XHR||($?o.callback=$:(nt||this.get_config("test"))&&(o.callback="(function(){})")),o.ip=this.get_config("ip")?1:0,o._=new Date().getTime().toString(),rt&&(et="data="+encodeURIComponent(o.data),delete o.data),i+="?"+_.HTTPBuildQuery(o);var st=this;if("img"in o){var ft=document$1.createElement("img");ft.src=i,document$1.body.appendChild(ft)}else if(tt){try{j=sendBeacon(i,et)}catch(at){st.report_error(at),j=!1}try{$&&$(j?1:0)}catch(at){st.report_error(at)}}else if(USE_XHR)try{var it=new XMLHttpRequest;it.open(g.method,i,!0);var pt=this.get_config("xhr_headers");if(rt&&(pt["Content-Type"]="application/x-www-form-urlencoded"),_.each(pt,function(at,lt){it.setRequestHeader(lt,at)}),g.timeout_ms&&typeof it.timeout<"u"){it.timeout=g.timeout_ms;var ut=new Date().getTime()}it.withCredentials=!0,it.onreadystatechange=function(){if(it.readyState===4)if(it.status===200){if($)if(nt){var at;try{at=_.JSONDecode(it.responseText)}catch(ot){if(st.report_error(ot),g.ignore_json_errors)at=it.responseText;else return}$(at)}else $(Number(it.responseText))}else{var lt;it.timeout&&!it.status&&new Date().getTime()-ut>=it.timeout?lt="timeout":lt="Bad HTTP status: "+it.status+" "+it.statusText,st.report_error(lt),$&&$(nt?{status:0,error:lt,xhr_req:it}:0)}},it.send(et)}catch(at){st.report_error(at),j=!1}else{var ht=document$1.createElement("script");ht.type="text/javascript",ht.async=!0,ht.defer=!0,ht.src=i;var mt=document$1.getElementsByTagName("script")[0];mt.parentNode.insertBefore(ht,mt)}return j};MixpanelLib.prototype._execute_array=function(i){var o,g=[],$=[],j=[];_.each(i,function(et){et&&(o=et[0],_.isArray(o)?j.push(et):typeof et=="function"?et.call(this):_.isArray(et)&&o==="alias"?g.push(et):_.isArray(et)&&o.indexOf("track")!==-1&&typeof this[o]=="function"?j.push(et):$.push(et))},this);var _e=function(et,rt){_.each(et,function(tt){if(_.isArray(tt[0])){var nt=rt;_.each(tt,function(st){nt=nt[st[0]].apply(nt,st.slice(1))})}else this[tt[0]].apply(this,tt.slice(1))},rt)};_e(g,this),_e($,this),_e(j,this)};MixpanelLib.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events};MixpanelLib.prototype.init_batchers=function(){var i=this.get_config("token");if(!this.are_batchers_initialized()){var o=_.bind(function(g){return new RequestBatcher("__mpq_"+i+g.queue_suffix,{libConfig:this.config,sendRequestFunc:_.bind(function($,j,_e){this._send_request(this.get_config("api_host")+g.endpoint,this._encode_data_for_request($),j,this._prepare_callback(_e,$))},this),beforeSendHook:_.bind(function($){return this._run_hook("before_send_"+g.type,$)},this),errorReporter:this.get_config("error_reporter"),stopAllBatchingFunc:_.bind(this.stop_batch_senders,this)})},this);this.request_batchers={events:o({type:"events",endpoint:"/track/",queue_suffix:"_ev"}),people:o({type:"people",endpoint:"/engage/",queue_suffix:"_pp"}),groups:o({type:"groups",endpoint:"/groups/",queue_suffix:"_gr"})}}this.get_config("batch_autostart")&&this.start_batch_senders()};MixpanelLib.prototype.start_batch_senders=function(){this.are_batchers_initialized()&&(this._batch_requests=!0,_.each(this.request_batchers,function(i){i.start()}))};MixpanelLib.prototype.stop_batch_senders=function(){this._batch_requests=!1,_.each(this.request_batchers,function(i){i.stop(),i.clear()})};MixpanelLib.prototype.push=function(i){this._execute_array([i])};MixpanelLib.prototype.disable=function(i){typeof i>"u"?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(i)};MixpanelLib.prototype._encode_data_for_request=function(i){var o=_.JSONEncode(i);return this.get_config("api_payload_format")===PAYLOAD_TYPE_BASE64&&(o=_.base64Encode(o)),{data:o}};MixpanelLib.prototype._track_or_batch=function(i,o){var g=_.truncate(i.data,255),$=i.endpoint,j=i.batcher,_e=i.should_send_immediately,et=i.send_request_options||{};o=o||NOOP_FUNC;var rt=!0,tt=_.bind(function(){return et.skip_hooks||(g=this._run_hook("before_send_"+i.type,g)),g?(console$1.log("MIXPANEL REQUEST:"),console$1.log(g),this._send_request($,this._encode_data_for_request(g),et,this._prepare_callback(o,g))):null},this);return this._batch_requests&&!_e?j.enqueue(g,function(nt){nt?o(1,g):tt()}):rt=tt(),rt&&g};MixpanelLib.prototype.track=addOptOutCheckMixpanelLib(function(i,o,g,$){!$&&typeof g=="function"&&($=g,g=null),g=g||{};var j=g.transport;j&&(g.transport=j);var _e=g.send_immediately;if(typeof $!="function"&&($=NOOP_FUNC),_.isUndefined(i)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(i)){$(0);return}o=o||{},o.token=this.get_config("token");var et=this.persistence.remove_event_timer(i);if(!_.isUndefined(et)){var rt=new Date().getTime()-et;o.$duration=parseFloat((rt/1e3).toFixed(3))}this._set_default_superprops();var tt=this.get_config("track_marketing")?_.info.marketingParams():{};o=_.extend({},_.info.properties(),tt,this.persistence.properties(),this.unpersisted_superprops,o);var nt=this.get_config("property_blacklist");_.isArray(nt)?_.each(nt,function(it){delete o[it]}):this.report_error("Invalid value for property_blacklist config: "+nt);var st={event:i,properties:o},ft=this._track_or_batch({type:"events",data:st,endpoint:this.get_config("api_host")+"/track/",batcher:this.request_batchers.events,should_send_immediately:_e,send_request_options:g},$);return ft});MixpanelLib.prototype.set_group=addOptOutCheckMixpanelLib(function(i,o,g){_.isArray(o)||(o=[o]);var $={};return $[i]=o,this.register($),this.people.set(i,o,g)});MixpanelLib.prototype.add_group=addOptOutCheckMixpanelLib(function(i,o,g){var $=this.get_property(i);if($===void 0){var j={};j[i]=[o],this.register(j)}else $.indexOf(o)===-1&&($.push(o),this.register(j));return this.people.union(i,o,g)});MixpanelLib.prototype.remove_group=addOptOutCheckMixpanelLib(function(i,o,g){var $=this.get_property(i);if($!==void 0){var j=$.indexOf(o);j>-1&&($.splice(j,1),this.register({group_key:$})),$.length===0&&this.unregister(i)}return this.people.remove(i,o,g)});MixpanelLib.prototype.track_with_groups=addOptOutCheckMixpanelLib(function(i,o,g,$){var j=_.extend({},o||{});return _.each(g,function(_e,et){_e!=null&&(j[et]=_e)}),this.track(i,j,$)});MixpanelLib.prototype._create_map_key=function(i,o){return i+"_"+JSON.stringify(o)};MixpanelLib.prototype._remove_group_from_cache=function(i,o){delete this._cached_groups[this._create_map_key(i,o)]};MixpanelLib.prototype.get_group=function(i,o){var g=this._create_map_key(i,o),$=this._cached_groups[g];return($===void 0||$._group_key!==i||$._group_id!==o)&&($=new MixpanelGroup,$._init(this,i,o),this._cached_groups[g]=$),$};MixpanelLib.prototype.track_pageview=addOptOutCheckMixpanelLib(function(i,o){typeof i!="object"&&(i={}),o=o||{};var g=o.event_name||"$mp_web_page_view",$=_.extend(_.info.mpPageViewProperties(),_.info.campaignParams(),_.info.clickParams()),j=_.extend({},$,i);return this.track(g,j)});MixpanelLib.prototype.track_links=function(){return this._track_dom.call(this,LinkTracker,arguments)};MixpanelLib.prototype.track_forms=function(){return this._track_dom.call(this,FormTracker,arguments)};MixpanelLib.prototype.time_event=function(i){if(_.isUndefined(i)){this.report_error("No event name provided to mixpanel.time_event");return}this._event_is_disabled(i)||this.persistence.set_event_timer(i,new Date().getTime())};var REGISTER_DEFAULTS={persistent:!0},options_for_register=function(i){var o;return _.isObject(i)?o=i:_.isUndefined(i)?o={}:o={days:i},_.extend({},REGISTER_DEFAULTS,o)};MixpanelLib.prototype.register=function(i,o){var g=options_for_register(o);g.persistent?this.persistence.register(i,g.days):_.extend(this.unpersisted_superprops,i)};MixpanelLib.prototype.register_once=function(i,o,g){var $=options_for_register(g);$.persistent?this.persistence.register_once(i,o,$.days):(typeof o>"u"&&(o="None"),_.each(i,function(j,_e){(!this.unpersisted_superprops.hasOwnProperty(_e)||this.unpersisted_superprops[_e]===o)&&(this.unpersisted_superprops[_e]=j)},this))};MixpanelLib.prototype.unregister=function(i,o){o=options_for_register(o),o.persistent?this.persistence.unregister(i):delete this.unpersisted_superprops[i]};MixpanelLib.prototype._register_single=function(i,o){var g={};g[i]=o,this.register(g)};MixpanelLib.prototype.identify=function(i,o,g,$,j,_e,et,rt){var tt=this.get_distinct_id();if(i&&tt!==i){if(typeof i=="string"&&i.indexOf(DEVICE_ID_PREFIX)===0)return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:i})}if(!this.get_property("$device_id")){var nt=tt;this.register_once({$had_persisted_distinct_id:!0,$device_id:nt},"")}i!==tt&&i!==this.get_property(ALIAS_ID_KEY)&&(this.unregister(ALIAS_ID_KEY),this.register({distinct_id:i})),this._flags.identify_called=!0,this.people._flush(o,g,$,j,_e,et,rt),i!==tt&&this.track("$identify",{distinct_id:i,$anon_distinct_id:tt},{skip_hooks:!0})};MixpanelLib.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var i=_.UUID();this.register_once({distinct_id:DEVICE_ID_PREFIX+i,$device_id:i},"")};MixpanelLib.prototype.get_distinct_id=function(){return this.get_property("distinct_id")};MixpanelLib.prototype.alias=function(i,o){if(i===this.get_property(PEOPLE_DISTINCT_ID_KEY))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var g=this;return _.isUndefined(o)&&(o=this.get_distinct_id()),i!==o?(this._register_single(ALIAS_ID_KEY,i),this.track("$create_alias",{alias:i,distinct_id:o},{skip_hooks:!0},function(){g.identify(i)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(i),-1)};MixpanelLib.prototype.name_tag=function(i){this._register_single("mp_name_tag",i)};MixpanelLib.prototype.set_config=function(i){if(_.isObject(i)){_.extend(this.config,i);var o=i.batch_size;o&&_.each(this.request_batchers,function(g){g.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),Config.DEBUG=Config.DEBUG||this.get_config("debug")}};MixpanelLib.prototype.get_config=function(i){return this.config[i]};MixpanelLib.prototype._run_hook=function(i){var o=(this.config.hooks[i]||IDENTITY_FUNC).apply(this,slice.call(arguments,1));return typeof o>"u"&&(this.report_error(i+" hook did not return a value"),o=null),o};MixpanelLib.prototype.get_property=function(i){return this.persistence.props[i]};MixpanelLib.prototype.toString=function(){var i=this.get_config("name");return i!==PRIMARY_INSTANCE_NAME&&(i=PRIMARY_INSTANCE_NAME+"."+i),i};MixpanelLib.prototype._event_is_disabled=function(i){return _.isBlockedUA(userAgent)||this._flags.disable_all_events||_.include(this.__disabled_events,i)};MixpanelLib.prototype._gdpr_init=function(){var i=this.get_config("opt_out_tracking_persistence_type")==="localStorage";i&&_.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")||_.cookie.get("mp_optout"))&&(_.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))};MixpanelLib.prototype._gdpr_update_persistence=function(i){var o;if(i&&i.clear_persistence)o=!0;else if(i&&i.enable_persistence)o=!1;else return;!this.get_config("disable_persistence")&&this.persistence.disabled!==o&&this.persistence.set_disabled(o),o&&_.each(this.request_batchers,function(g){g.clear()})};MixpanelLib.prototype._gdpr_call_func=function(i,o){return o=_.extend({track:_.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")},o),_.localStorage.is_supported()||(o.persistence_type="cookie"),i(this.get_config("token"),{track:o.track,trackEventName:o.track_event_name,trackProperties:o.track_properties,persistenceType:o.persistence_type,persistencePrefix:o.cookie_prefix,cookieDomain:o.cookie_domain,cookieExpiration:o.cookie_expiration,crossSiteCookie:o.cross_site_cookie,crossSubdomainCookie:o.cross_subdomain_cookie,secureCookie:o.secure_cookie,ignoreDnt:o.ignore_dnt})};MixpanelLib.prototype.opt_in_tracking=function(i){i=_.extend({enable_persistence:!0},i),this._gdpr_call_func(optIn,i),this._gdpr_update_persistence(i)};MixpanelLib.prototype.opt_out_tracking=function(i){i=_.extend({clear_persistence:!0,delete_user:!0},i),i.delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(optOut,i),this._gdpr_update_persistence(i)};MixpanelLib.prototype.has_opted_in_tracking=function(i){return this._gdpr_call_func(hasOptedIn,i)};MixpanelLib.prototype.has_opted_out_tracking=function(i){return this._gdpr_call_func(hasOptedOut,i)};MixpanelLib.prototype.clear_opt_in_out_tracking=function(i){i=_.extend({enable_persistence:!0},i),this._gdpr_call_func(clearOptInOut,i),this._gdpr_update_persistence(i)};MixpanelLib.prototype.report_error=function(i,o){console$1.error.apply(console$1.error,arguments);try{!o&&!(i instanceof Error)&&(i=new Error(i)),this.get_config("error_reporter")(i,o)}catch(g){console$1.error(g)}};MixpanelLib.prototype.init=MixpanelLib.prototype.init;MixpanelLib.prototype.reset=MixpanelLib.prototype.reset;MixpanelLib.prototype.disable=MixpanelLib.prototype.disable;MixpanelLib.prototype.time_event=MixpanelLib.prototype.time_event;MixpanelLib.prototype.track=MixpanelLib.prototype.track;MixpanelLib.prototype.track_links=MixpanelLib.prototype.track_links;MixpanelLib.prototype.track_forms=MixpanelLib.prototype.track_forms;MixpanelLib.prototype.track_pageview=MixpanelLib.prototype.track_pageview;MixpanelLib.prototype.register=MixpanelLib.prototype.register;MixpanelLib.prototype.register_once=MixpanelLib.prototype.register_once;MixpanelLib.prototype.unregister=MixpanelLib.prototype.unregister;MixpanelLib.prototype.identify=MixpanelLib.prototype.identify;MixpanelLib.prototype.alias=MixpanelLib.prototype.alias;MixpanelLib.prototype.name_tag=MixpanelLib.prototype.name_tag;MixpanelLib.prototype.set_config=MixpanelLib.prototype.set_config;MixpanelLib.prototype.get_config=MixpanelLib.prototype.get_config;MixpanelLib.prototype.get_property=MixpanelLib.prototype.get_property;MixpanelLib.prototype.get_distinct_id=MixpanelLib.prototype.get_distinct_id;MixpanelLib.prototype.toString=MixpanelLib.prototype.toString;MixpanelLib.prototype.opt_out_tracking=MixpanelLib.prototype.opt_out_tracking;MixpanelLib.prototype.opt_in_tracking=MixpanelLib.prototype.opt_in_tracking;MixpanelLib.prototype.has_opted_out_tracking=MixpanelLib.prototype.has_opted_out_tracking;MixpanelLib.prototype.has_opted_in_tracking=MixpanelLib.prototype.has_opted_in_tracking;MixpanelLib.prototype.clear_opt_in_out_tracking=MixpanelLib.prototype.clear_opt_in_out_tracking;MixpanelLib.prototype.get_group=MixpanelLib.prototype.get_group;MixpanelLib.prototype.set_group=MixpanelLib.prototype.set_group;MixpanelLib.prototype.add_group=MixpanelLib.prototype.add_group;MixpanelLib.prototype.remove_group=MixpanelLib.prototype.remove_group;MixpanelLib.prototype.track_with_groups=MixpanelLib.prototype.track_with_groups;MixpanelLib.prototype.start_batch_senders=MixpanelLib.prototype.start_batch_senders;MixpanelLib.prototype.stop_batch_senders=MixpanelLib.prototype.stop_batch_senders;MixpanelPersistence.prototype.properties=MixpanelPersistence.prototype.properties;MixpanelPersistence.prototype.update_search_keyword=MixpanelPersistence.prototype.update_search_keyword;MixpanelPersistence.prototype.update_referrer_info=MixpanelPersistence.prototype.update_referrer_info;MixpanelPersistence.prototype.get_cross_subdomain=MixpanelPersistence.prototype.get_cross_subdomain;MixpanelPersistence.prototype.clear=MixpanelPersistence.prototype.clear;var instances={},extend_mp=function(){_.each(instances,function(i,o){o!==PRIMARY_INSTANCE_NAME&&(mixpanel_master[o]=i)}),mixpanel_master._=_},override_mp_init_func=function(){mixpanel_master.init=function(i,o,g){if(g)return mixpanel_master[g]||(mixpanel_master[g]=instances[g]=create_mplib(i,o,g),mixpanel_master[g]._loaded()),mixpanel_master[g];var $=mixpanel_master;instances[PRIMARY_INSTANCE_NAME]?$=instances[PRIMARY_INSTANCE_NAME]:i&&($=create_mplib(i,o,PRIMARY_INSTANCE_NAME),$._loaded(),instances[PRIMARY_INSTANCE_NAME]=$),mixpanel_master=$,init_type===INIT_SNIPPET&&(window$1[PRIMARY_INSTANCE_NAME]=mixpanel_master),extend_mp()}},add_dom_loaded_handler=function(){function i(){i.done||(i.done=!0,DOM_LOADED=!0,ENQUEUE_REQUESTS=!1,_.each(instances,function($){$._dom_loaded()}))}function o(){try{document$1.documentElement.doScroll("left")}catch{setTimeout(o,1);return}i()}if(document$1.addEventListener)document$1.readyState==="complete"?i():document$1.addEventListener("DOMContentLoaded",i,!1);else if(document$1.attachEvent){document$1.attachEvent("onreadystatechange",i);var g=!1;try{g=window$1.frameElement===null}catch{}document$1.documentElement.doScroll&&g&&o()}_.register_event(window$1,"load",i,!0)};function init_as_module(){return init_type=INIT_MODULE,mixpanel_master=new MixpanelLib,override_mp_init_func(),mixpanel_master.init(),add_dom_loaded_handler(),mixpanel_master}var mixpanel=init_as_module(),mixpanel_cjs=mixpanel;const mixpanel$1=getDefaultExportFromCjs(mixpanel_cjs),envToken="9b5c61bf2bf4c48916655fe862e8fcbd",token=envToken,EVENT={OPEN_WEBAPP:"open_webapp",SEND_TRANSACTION:"send_transaction"},feedback=async i=>{console.info("[mixpanel]",i),await mixpanel$1.track(i)};mixpanel$1.init(token,{loaded:()=>{feedback(EVENT.OPEN_WEBAPP)}});function Check(){useInit();const{t:i}=useTranslation(),o=useNavigate(),[g,$]=reactExports.useState(!1),{currencies:j,transaction:_e,setTransaction:et,setSuccess:rt,setTxPatchError:tt}=useStore(),nt=usePatchTransaction();if(!_e)return null;const st=j.find(wt=>wt._id===_e.currency_id),ft=(wt,Ot)=>{const $t=_e.shares.findIndex(Mt=>Mt.person_id===wt.person_id&&Mt.related_user_id===wt.related_user_id&&Mt.is_payer===wt.is_payer);if(~$t){const Mt=[..._e.shares];Mt[$t].amount=Ot,et({..._e,shares:Mt})}},it=_e.shares.filter(wt=>wt.is_payer).reduce((wt,Ot)=>wt+Ot.amount,0),pt=formatAmount(it),ut=_e.shares.filter(wt=>!wt.is_payer).reduce((wt,Ot)=>wt+Ot.amount,0),ht=formatAmount(ut),mt=itut+TOLERANCE,ot=!at||!(it>0)||!(ut>0)||!_e.currency_id,ct=_e.shares.filter(wt=>wt.related_user_id&&wt.is_payer),gt=_e.shares.filter(wt=>wt.related_user_id&&!wt.is_payer),yt=ct.map(wt=>wt.related_user_id),xt=gt.map(wt=>wt.related_user_id),_t=yt.some(wt=>xt.includes(wt)),Pt=gt.every(wt=>wt.amount===gt[0].amount),At=()=>{const wt=parseFloat((it/gt.length).toFixed(decimals)),Ot=[..._e.shares];et({..._e,shares:Ot.map($t=>$t.is_payer?$t:{...$t,amount:wt})})},Ft=async()=>{const wt={..._e,is_confirmed:!0};$(!0);try{await feedback(EVENT.SEND_TRANSACTION),console.log(JSON.stringify(wt,null,2));const Ot=await nt(wt);console.log("patch res json",Ot),rt(!0),setTimeout(()=>{var $t;($t=window.Telegram)==null||$t.WebApp.close()},2300)}catch(Ot){rt(!1),tt(Ot)}finally{$(!1)}};return jsxRuntimeExports.jsxs(Screen,{children:[jsxRuntimeExports.jsx(Header,{onBack:()=>{o("/")}}),jsxRuntimeExports.jsxs("div",{className:"mb-2 px-4 flex items-center justify-between",children:[jsxRuntimeExports.jsx("h2",{className:"pt-[2px] pb-[6px]",children:i("checkout")}),jsxRuntimeExports.jsx(Button,{theme:"text",text:st?st.in:i("selectCurrency"),onClick:()=>{o("/select-currency")}})]}),jsxRuntimeExports.jsxs(Panel,{className:"!pb-4",children:[jsxRuntimeExports.jsxs("h3",{className:cx(!at&&"text-error"),children:[mt&&i("lack"),at&&i("allRight"),lt&&i("overdo")]}),jsxRuntimeExports.jsxs("div",{className:"mt-1 text-[14px] leading-[20px] text-hint",children:[i("paidSum")," ",pt," ",st==null?void 0:st.symbol,", ",i("oweSum")," ",ht," ",st==null?void 0:st.symbol]})]}),jsxRuntimeExports.jsxs(Panel,{children:[jsxRuntimeExports.jsx("h3",{children:i("payers")}),jsxRuntimeExports.jsxs("div",{className:"mt-4 flex flex-col gap-3",children:[!ct.length&&jsxRuntimeExports.jsxs("span",{className:"opacity-40",children:["(",i("noShares"),")"]}),ct.map((wt,Ot)=>jsxRuntimeExports.jsx(UserAmount,{...wt,onChange:$t=>{ft(wt,$t)}},`payer-share-${Ot}`))]})]}),jsxRuntimeExports.jsxs(Panel,{children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntimeExports.jsx("h3",{children:i(_t?"forYourselfAndForOthers":"forOthers")}),!!gt.length&&(!Pt||!at)&&jsxRuntimeExports.jsx(Button,{theme:"text",text:i("splitEqually"),onClick:At})]}),jsxRuntimeExports.jsxs("div",{className:"mt-4 flex flex-col gap-3",children:[!gt.length&&jsxRuntimeExports.jsxs("span",{className:"opacity-40",children:["(",i("noShares"),")"]}),gt.map((wt,Ot)=>jsxRuntimeExports.jsx(UserAmount,{...wt,onChange:$t=>{ft(wt,$t)}},`owe-share-${Ot}`))]})]}),jsxRuntimeExports.jsx(Button,{isBottom:!0,text:i("save"),onClick:Ft,disabled:ot,isBusy:g})]})}function Divider(){return jsxRuntimeExports.jsx("div",{className:"h-[1px] -my-[0.5px] mx-4 bg-[#E5E9EB] dark:bg-[#84919A]"})}function Select(){var ft;useInit();const{t:i}=useTranslation(),{users:o,unrelatedUsers:g,addUsers:$,selectUser:j,deleteUser:_e}=useUsers(),{selectPersonId:et,transaction:rt}=useStore(),tt=et!==null?o:g,nt=et!==null?(ft=((rt==null?void 0:rt.shares)||[]).find(it=>it.person_id===et))==null?void 0:ft.normalized_name:null,st=et!==null?nt?`${i("selectWhoIs")} "${nt==="MESSAGE_AUTHOR"?i("author"):nt}"`:i("selectUser"):i("addUser");return jsxRuntimeExports.jsxs(Screen,{className:"!bg-bg",children:[jsxRuntimeExports.jsx(Header,{onBack:()=>{history.back()}}),jsxRuntimeExports.jsxs("div",{className:"mb-2 px-4 flex items-center justify-between gap-3",children:[jsxRuntimeExports.jsx("h2",{className:"pt-[2px] pb-[6px]",children:st}),et!==null&&jsxRuntimeExports.jsx(Button,{theme:"text",text:i("delete"),onClick:_e(et)}),et===null&&tt.length>1&&jsxRuntimeExports.jsx(Button,{theme:"text",text:i("addEveryone"),onClick:$(tt)})]}),jsxRuntimeExports.jsx("div",{className:"mt-4 overflow-y-auto",children:tt.map((it,pt,ut)=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("button",{className:"w-full px-4 py-2 hover:bg-text/5 active:bg-text/10 transition-all",onClick:et!==null?j(it):$([it]),children:jsxRuntimeExports.jsx(User,{user:it})}),ptj(g),children:[jsxRuntimeExports.jsx("input",{className:"hidden",id:`${i}-${g}`,name:i,checked:$}),jsxRuntimeExports.jsx("div",{className:"p-1.5",children:jsxRuntimeExports.jsx("div",{className:cx("flex items-center justify-center w-5 h-5 border-2 rounded-full text-hint",$&&"!text-link"),children:jsxRuntimeExports.jsx("div",{className:cx("w-[10px] h-[10px] rounded-full bg-link opacity-0 transition-all",$&&"!opacity-100")})})}),jsxRuntimeExports.jsx("div",{className:"flex-1",children:o})]})}function SelectCurrency(){useInit();const{t:i}=useTranslation(),o=useNavigate(),{currencies:g,transaction:$,setCurrency:j}=useStore(),[_e,,et]=b(),rt=reactExports.useCallback(tt=>{j(tt),console.log("SelectCurrency change vibro"),et(),_e("medium"),o("/check")},[_e,et,o,j]);return jsxRuntimeExports.jsxs(Screen,{className:"!bg-bg",children:[jsxRuntimeExports.jsx(Header,{onBack:()=>{history.back()}}),jsxRuntimeExports.jsx("div",{className:"px-4",children:jsxRuntimeExports.jsx("h2",{children:i("selectCurrency")})}),jsxRuntimeExports.jsx("div",{className:"mt-4 overflow-y-auto",children:g.map((tt,nt)=>jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(RadioButton,{group:"currencies",label:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{className:"font-semibold",children:tt.symbol})," ",jsxRuntimeExports.jsx("span",{children:tt.title})]}),value:tt._id,checked:($==null?void 0:$.currency_id)===tt._id,onChange:rt},`currencies-${tt._id}`),ntreactExports.createElement("svg",{width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i},reactExports.createElement("path",{d:"M8 1C8 0.447715 7.55228 0 7 0C6.44772 0 6 0.447715 6 1V6H1C0.447715 6 0 6.44771 0 7C0 7.55228 0.447715 8 1 8H6V13C6 13.5523 6.44772 14 7 14C7.55228 14 8 13.5523 8 13V8H13C13.5523 8 14 7.55228 14 7C14 6.44772 13.5523 6 13 6H8V1Z",fill:"currentColor"}));/*! @license DOMPurify 3.0.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.5/LICENSE */const{entries,setPrototypeOf,isFrozen,getPrototypeOf,getOwnPropertyDescriptor}=Object;let{freeze,seal,create}=Object,{apply,construct}=typeof Reflect<"u"&&Reflect;apply||(apply=function(o,g,$){return o.apply(g,$)});freeze||(freeze=function(o){return o});seal||(seal=function(o){return o});construct||(construct=function(o,g){return new o(...g)});const arrayForEach=unapply(Array.prototype.forEach),arrayPop=unapply(Array.prototype.pop),arrayPush=unapply(Array.prototype.push),stringToLowerCase=unapply(String.prototype.toLowerCase),stringToString=unapply(String.prototype.toString),stringMatch=unapply(String.prototype.match),stringReplace=unapply(String.prototype.replace),stringIndexOf=unapply(String.prototype.indexOf),stringTrim=unapply(String.prototype.trim),regExpTest=unapply(RegExp.prototype.test),typeErrorCreate=unconstruct(TypeError);function unapply(i){return function(o){for(var g=arguments.length,$=new Array(g>1?g-1:0),j=1;j/gm),TMPLIT_EXPR=seal(/\${[\w\W]*}/gm),DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DOCTYPE_NAME=seal(/^html$/i);var EXPRESSIONS=Object.freeze({__proto__:null,MUSTACHE_EXPR,ERB_EXPR,TMPLIT_EXPR,DATA_ATTR,ARIA_ATTR,IS_ALLOWED_URI,IS_SCRIPT_OR_DATA,ATTR_WHITESPACE,DOCTYPE_NAME});const getGlobal=()=>typeof window>"u"?null:window,_createTrustedTypesPolicy=function i(o,g){if(typeof o!="object"||typeof o.createPolicy!="function")return null;let $=null;const j="data-tt-policy-suffix";g&&g.hasAttribute(j)&&($=g.getAttribute(j));const _e="dompurify"+($?"#"+$:"");try{return o.createPolicy(_e,{createHTML(et){return et},createScriptURL(et){return et}})}catch{return console.warn("TrustedTypes policy "+_e+" could not be created."),null}};function createDOMPurify(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:getGlobal();const o=Gt=>createDOMPurify(Gt);if(o.version="3.0.5",o.removed=[],!i||!i.document||i.document.nodeType!==9)return o.isSupported=!1,o;const g=i.document,$=g.currentScript;let{document:j}=i;const{DocumentFragment:_e,HTMLTemplateElement:et,Node:rt,Element:tt,NodeFilter:nt,NamedNodeMap:st=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:ft,DOMParser:it,trustedTypes:pt}=i,ut=tt.prototype,ht=lookupGetter(ut,"cloneNode"),mt=lookupGetter(ut,"nextSibling"),at=lookupGetter(ut,"childNodes"),lt=lookupGetter(ut,"parentNode");if(typeof et=="function"){const Gt=j.createElement("template");Gt.content&&Gt.content.ownerDocument&&(j=Gt.content.ownerDocument)}let ot,ct="";const{implementation:gt,createNodeIterator:yt,createDocumentFragment:xt,getElementsByTagName:_t}=j,{importNode:Pt}=g;let At={};o.isSupported=typeof entries=="function"&&typeof lt=="function"&>&>.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Ft,ERB_EXPR:wt,TMPLIT_EXPR:Ot,DATA_ATTR:$t,ARIA_ATTR:Mt,IS_SCRIPT_OR_DATA:Et,ATTR_WHITESPACE:kt}=EXPRESSIONS;let{IS_ALLOWED_URI:dt}=EXPRESSIONS,vt=null;const bt=addToSet({},[...html$1,...svg$1,...svgFilters,...mathMl$1,...text]);let St=null;const It=addToSet({},[...html,...svg,...mathMl,...xml]);let Lt=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Nt=null,qt=null,Qt=!0,Zt=!0,ir=!1,br=!0,sr=!1,tr=!1,hr=!1,Jt=!1,Vt=!1,ur=!1,_r=!1,Er=!0,gr=!1;const Pr="user-content-";let lr=!0,ar=!1,yr={},vr=null;const Sr=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let wr=null;const pr=addToSet({},["audio","video","img","source","image","track"]);let Tr=null;const Lr=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Or="http://www.w3.org/1998/Math/MathML",Rr="http://www.w3.org/2000/svg",Dr="http://www.w3.org/1999/xhtml";let jr=Dr,qr=!1,Tt=null;const Rt=addToSet({},[Or,Rr,Dr],stringToString);let Dt;const Ut=["application/xhtml+xml","text/html"],Yt="text/html";let zt,Kt=null;const Wt=j.createElement("form"),Ht=function(Ct){return Ct instanceof RegExp||Ct instanceof Function},er=function(Ct){if(!(Kt&&Kt===Ct)){if((!Ct||typeof Ct!="object")&&(Ct={}),Ct=clone(Ct),Dt=Ut.indexOf(Ct.PARSER_MEDIA_TYPE)===-1?Dt=Yt:Dt=Ct.PARSER_MEDIA_TYPE,zt=Dt==="application/xhtml+xml"?stringToString:stringToLowerCase,vt="ALLOWED_TAGS"in Ct?addToSet({},Ct.ALLOWED_TAGS,zt):bt,St="ALLOWED_ATTR"in Ct?addToSet({},Ct.ALLOWED_ATTR,zt):It,Tt="ALLOWED_NAMESPACES"in Ct?addToSet({},Ct.ALLOWED_NAMESPACES,stringToString):Rt,Tr="ADD_URI_SAFE_ATTR"in Ct?addToSet(clone(Lr),Ct.ADD_URI_SAFE_ATTR,zt):Lr,wr="ADD_DATA_URI_TAGS"in Ct?addToSet(clone(pr),Ct.ADD_DATA_URI_TAGS,zt):pr,vr="FORBID_CONTENTS"in Ct?addToSet({},Ct.FORBID_CONTENTS,zt):Sr,Nt="FORBID_TAGS"in Ct?addToSet({},Ct.FORBID_TAGS,zt):{},qt="FORBID_ATTR"in Ct?addToSet({},Ct.FORBID_ATTR,zt):{},yr="USE_PROFILES"in Ct?Ct.USE_PROFILES:!1,Qt=Ct.ALLOW_ARIA_ATTR!==!1,Zt=Ct.ALLOW_DATA_ATTR!==!1,ir=Ct.ALLOW_UNKNOWN_PROTOCOLS||!1,br=Ct.ALLOW_SELF_CLOSE_IN_ATTR!==!1,sr=Ct.SAFE_FOR_TEMPLATES||!1,tr=Ct.WHOLE_DOCUMENT||!1,Vt=Ct.RETURN_DOM||!1,ur=Ct.RETURN_DOM_FRAGMENT||!1,_r=Ct.RETURN_TRUSTED_TYPE||!1,Jt=Ct.FORCE_BODY||!1,Er=Ct.SANITIZE_DOM!==!1,gr=Ct.SANITIZE_NAMED_PROPS||!1,lr=Ct.KEEP_CONTENT!==!1,ar=Ct.IN_PLACE||!1,dt=Ct.ALLOWED_URI_REGEXP||IS_ALLOWED_URI,jr=Ct.NAMESPACE||Dr,Lt=Ct.CUSTOM_ELEMENT_HANDLING||{},Ct.CUSTOM_ELEMENT_HANDLING&&Ht(Ct.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Lt.tagNameCheck=Ct.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Ct.CUSTOM_ELEMENT_HANDLING&&Ht(Ct.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Lt.attributeNameCheck=Ct.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Ct.CUSTOM_ELEMENT_HANDLING&&typeof Ct.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Lt.allowCustomizedBuiltInElements=Ct.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),sr&&(Zt=!1),ur&&(Vt=!0),yr&&(vt=addToSet({},[...text]),St=[],yr.html===!0&&(addToSet(vt,html$1),addToSet(St,html)),yr.svg===!0&&(addToSet(vt,svg$1),addToSet(St,svg),addToSet(St,xml)),yr.svgFilters===!0&&(addToSet(vt,svgFilters),addToSet(St,svg),addToSet(St,xml)),yr.mathMl===!0&&(addToSet(vt,mathMl$1),addToSet(St,mathMl),addToSet(St,xml))),Ct.ADD_TAGS&&(vt===bt&&(vt=clone(vt)),addToSet(vt,Ct.ADD_TAGS,zt)),Ct.ADD_ATTR&&(St===It&&(St=clone(St)),addToSet(St,Ct.ADD_ATTR,zt)),Ct.ADD_URI_SAFE_ATTR&&addToSet(Tr,Ct.ADD_URI_SAFE_ATTR,zt),Ct.FORBID_CONTENTS&&(vr===Sr&&(vr=clone(vr)),addToSet(vr,Ct.FORBID_CONTENTS,zt)),lr&&(vt["#text"]=!0),tr&&addToSet(vt,["html","head","body"]),vt.table&&(addToSet(vt,["tbody"]),delete Nt.tbody),Ct.TRUSTED_TYPES_POLICY){if(typeof Ct.TRUSTED_TYPES_POLICY.createHTML!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Ct.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ot=Ct.TRUSTED_TYPES_POLICY,ct=ot.createHTML("")}else ot===void 0&&(ot=_createTrustedTypesPolicy(pt,$)),ot!==null&&typeof ct=="string"&&(ct=ot.createHTML(""));freeze&&freeze(Ct),Kt=Ct}},Xt=addToSet({},["mi","mo","mn","ms","mtext"]),kr=addToSet({},["foreignobject","desc","title","annotation-xml"]),cr=addToSet({},["title","style","font","a","script"]),dr=addToSet({},svg$1);addToSet(dr,svgFilters),addToSet(dr,svgDisallowed);const Ar=addToSet({},mathMl$1);addToSet(Ar,mathMlDisallowed);const zr=function(Ct){let jt=lt(Ct);(!jt||!jt.tagName)&&(jt={namespaceURI:jr,tagName:"template"});const Bt=stringToLowerCase(Ct.tagName),rr=stringToLowerCase(jt.tagName);return Tt[Ct.namespaceURI]?Ct.namespaceURI===Rr?jt.namespaceURI===Dr?Bt==="svg":jt.namespaceURI===Or?Bt==="svg"&&(rr==="annotation-xml"||Xt[rr]):!!dr[Bt]:Ct.namespaceURI===Or?jt.namespaceURI===Dr?Bt==="math":jt.namespaceURI===Rr?Bt==="math"&&kr[rr]:!!Ar[Bt]:Ct.namespaceURI===Dr?jt.namespaceURI===Rr&&!kr[rr]||jt.namespaceURI===Or&&!Xt[rr]?!1:!Ar[Bt]&&(cr[Bt]||!dr[Bt]):!!(Dt==="application/xhtml+xml"&&Tt[Ct.namespaceURI]):!1},Nr=function(Ct){arrayPush(o.removed,{element:Ct});try{Ct.parentNode.removeChild(Ct)}catch{Ct.remove()}},Vr=function(Ct,jt){try{arrayPush(o.removed,{attribute:jt.getAttributeNode(Ct),from:jt})}catch{arrayPush(o.removed,{attribute:null,from:jt})}if(jt.removeAttribute(Ct),Ct==="is"&&!St[Ct])if(Vt||ur)try{Nr(jt)}catch{}else try{jt.setAttribute(Ct,"")}catch{}},Ir=function(Ct){let jt,Bt;if(Jt)Ct=""+Ct;else{const Fr=stringMatch(Ct,/^[\r\n\t ]+/);Bt=Fr&&Fr[0]}Dt==="application/xhtml+xml"&&jr===Dr&&(Ct=''+Ct+"");const rr=ot?ot.createHTML(Ct):Ct;if(jr===Dr)try{jt=new it().parseFromString(rr,Dt)}catch{}if(!jt||!jt.documentElement){jt=gt.createDocument(jr,"template",null);try{jt.documentElement.innerHTML=qr?ct:rr}catch{}}const xr=jt.body||jt.documentElement;return Ct&&Bt&&xr.insertBefore(j.createTextNode(Bt),xr.childNodes[0]||null),jr===Dr?_t.call(jt,tr?"html":"body")[0]:tr?jt.documentElement:xr},Gr=function(Ct){return yt.call(Ct.ownerDocument||Ct,Ct,nt.SHOW_ELEMENT|nt.SHOW_COMMENT|nt.SHOW_TEXT,null,!1)},Wr=function(Ct){return Ct instanceof ft&&(typeof Ct.nodeName!="string"||typeof Ct.textContent!="string"||typeof Ct.removeChild!="function"||!(Ct.attributes instanceof st)||typeof Ct.removeAttribute!="function"||typeof Ct.setAttribute!="function"||typeof Ct.namespaceURI!="string"||typeof Ct.insertBefore!="function"||typeof Ct.hasChildNodes!="function")},Ur=function(Ct){return typeof rt=="object"?Ct instanceof rt:Ct&&typeof Ct=="object"&&typeof Ct.nodeType=="number"&&typeof Ct.nodeName=="string"},Mr=function(Ct,jt,Bt){At[Ct]&&arrayForEach(At[Ct],rr=>{rr.call(o,jt,Bt,Kt)})},Hr=function(Ct){let jt;if(Mr("beforeSanitizeElements",Ct,null),Wr(Ct))return Nr(Ct),!0;const Bt=zt(Ct.nodeName);if(Mr("uponSanitizeElement",Ct,{tagName:Bt,allowedTags:vt}),Ct.hasChildNodes()&&!Ur(Ct.firstElementChild)&&(!Ur(Ct.content)||!Ur(Ct.content.firstElementChild))&®ExpTest(/<[/\w]/g,Ct.innerHTML)&®ExpTest(/<[/\w]/g,Ct.textContent))return Nr(Ct),!0;if(!vt[Bt]||Nt[Bt]){if(!Nt[Bt]&&Cr(Bt)&&(Lt.tagNameCheck instanceof RegExp&®ExpTest(Lt.tagNameCheck,Bt)||Lt.tagNameCheck instanceof Function&&Lt.tagNameCheck(Bt)))return!1;if(lr&&!vr[Bt]){const rr=lt(Ct)||Ct.parentNode,xr=at(Ct)||Ct.childNodes;if(xr&&rr){const Fr=xr.length;for(let or=Fr-1;or>=0;--or)rr.insertBefore(ht(xr[or],!0),mt(Ct))}}return Nr(Ct),!0}return Ct instanceof tt&&!zr(Ct)||(Bt==="noscript"||Bt==="noembed"||Bt==="noframes")&®ExpTest(/<\/no(script|embed|frames)/i,Ct.innerHTML)?(Nr(Ct),!0):(sr&&Ct.nodeType===3&&(jt=Ct.textContent,jt=stringReplace(jt,Ft," "),jt=stringReplace(jt,wt," "),jt=stringReplace(jt,Ot," "),Ct.textContent!==jt&&(arrayPush(o.removed,{element:Ct.cloneNode()}),Ct.textContent=jt)),Mr("afterSanitizeElements",Ct,null),!1)},nr=function(Ct,jt,Bt){if(Er&&(jt==="id"||jt==="name")&&(Bt in j||Bt in Wt))return!1;if(!(Zt&&!qt[jt]&®ExpTest($t,jt))){if(!(Qt&®ExpTest(Mt,jt))){if(!St[jt]||qt[jt]){if(!(Cr(Ct)&&(Lt.tagNameCheck instanceof RegExp&®ExpTest(Lt.tagNameCheck,Ct)||Lt.tagNameCheck instanceof Function&&Lt.tagNameCheck(Ct))&&(Lt.attributeNameCheck instanceof RegExp&®ExpTest(Lt.attributeNameCheck,jt)||Lt.attributeNameCheck instanceof Function&&Lt.attributeNameCheck(jt))||jt==="is"&&Lt.allowCustomizedBuiltInElements&&(Lt.tagNameCheck instanceof RegExp&®ExpTest(Lt.tagNameCheck,Bt)||Lt.tagNameCheck instanceof Function&&Lt.tagNameCheck(Bt))))return!1}else if(!Tr[jt]){if(!regExpTest(dt,stringReplace(Bt,kt,""))){if(!((jt==="src"||jt==="xlink:href"||jt==="href")&&Ct!=="script"&&stringIndexOf(Bt,"data:")===0&&wr[Ct])){if(!(ir&&!regExpTest(Et,stringReplace(Bt,kt,"")))){if(Bt)return!1}}}}}}return!0},Cr=function(Ct){return Ct.indexOf("-")>0},Br=function(Ct){let jt,Bt,rr,xr;Mr("beforeSanitizeAttributes",Ct,null);const{attributes:Fr}=Ct;if(!Fr)return;const or={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:St};for(xr=Fr.length;xr--;){jt=Fr[xr];const{name:$r,namespaceURI:Kr}=jt;if(Bt=$r==="value"?jt.value:stringTrim(jt.value),rr=zt($r),or.attrName=rr,or.attrValue=Bt,or.keepAttr=!0,or.forceKeepAttr=void 0,Mr("uponSanitizeAttribute",Ct,or),Bt=or.attrValue,or.forceKeepAttr||(Vr($r,Ct),!or.keepAttr))continue;if(!br&®ExpTest(/\/>/i,Bt)){Vr($r,Ct);continue}sr&&(Bt=stringReplace(Bt,Ft," "),Bt=stringReplace(Bt,wt," "),Bt=stringReplace(Bt,Ot," "));const Qr=zt(Ct.nodeName);if(nr(Qr,rr,Bt)){if(gr&&(rr==="id"||rr==="name")&&(Vr($r,Ct),Bt=Pr+Bt),ot&&typeof pt=="object"&&typeof pt.getAttributeType=="function"&&!Kr)switch(pt.getAttributeType(Qr,rr)){case"TrustedHTML":{Bt=ot.createHTML(Bt);break}case"TrustedScriptURL":{Bt=ot.createScriptURL(Bt);break}}try{Kr?Ct.setAttributeNS(Kr,$r,Bt):Ct.setAttribute($r,Bt),arrayPop(o.removed)}catch{}}}Mr("afterSanitizeAttributes",Ct,null)},mr=function Gt(Ct){let jt;const Bt=Gr(Ct);for(Mr("beforeSanitizeShadowDOM",Ct,null);jt=Bt.nextNode();)Mr("uponSanitizeShadowNode",jt,null),!Hr(jt)&&(jt.content instanceof _e&&Gt(jt.content),Br(jt));Mr("afterSanitizeShadowDOM",Ct,null)};return o.sanitize=function(Gt){let Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},jt,Bt,rr,xr;if(qr=!Gt,qr&&(Gt=""),typeof Gt!="string"&&!Ur(Gt))if(typeof Gt.toString=="function"){if(Gt=Gt.toString(),typeof Gt!="string")throw typeErrorCreate("dirty is not a string, aborting")}else throw typeErrorCreate("toString is not a function");if(!o.isSupported)return Gt;if(hr||er(Ct),o.removed=[],typeof Gt=="string"&&(ar=!1),ar){if(Gt.nodeName){const $r=zt(Gt.nodeName);if(!vt[$r]||Nt[$r])throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place")}}else if(Gt instanceof rt)jt=Ir(""),Bt=jt.ownerDocument.importNode(Gt,!0),Bt.nodeType===1&&Bt.nodeName==="BODY"||Bt.nodeName==="HTML"?jt=Bt:jt.appendChild(Bt);else{if(!Vt&&!sr&&!tr&&Gt.indexOf("<")===-1)return ot&&_r?ot.createHTML(Gt):Gt;if(jt=Ir(Gt),!jt)return Vt?null:_r?ct:""}jt&&Jt&&Nr(jt.firstChild);const Fr=Gr(ar?Gt:jt);for(;rr=Fr.nextNode();)Hr(rr)||(rr.content instanceof _e&&mr(rr.content),Br(rr));if(ar)return Gt;if(Vt){if(ur)for(xr=xt.call(jt.ownerDocument);jt.firstChild;)xr.appendChild(jt.firstChild);else xr=jt;return(St.shadowroot||St.shadowrootmode)&&(xr=Pt.call(g,xr,!0)),xr}let or=tr?jt.outerHTML:jt.innerHTML;return tr&&vt["!doctype"]&&jt.ownerDocument&&jt.ownerDocument.doctype&&jt.ownerDocument.doctype.name&®ExpTest(DOCTYPE_NAME,jt.ownerDocument.doctype.name)&&(or=" +`+or),sr&&(or=stringReplace(or,Ft," "),or=stringReplace(or,wt," "),or=stringReplace(or,Ot," ")),ot&&_r?ot.createHTML(or):or},o.setConfig=function(Gt){er(Gt),hr=!0},o.clearConfig=function(){Kt=null,hr=!1},o.isValidAttribute=function(Gt,Ct,jt){Kt||er({});const Bt=zt(Gt),rr=zt(Ct);return nr(Bt,rr,jt)},o.addHook=function(Gt,Ct){typeof Ct=="function"&&(At[Gt]=At[Gt]||[],arrayPush(At[Gt],Ct))},o.removeHook=function(Gt){if(At[Gt])return arrayPop(At[Gt])},o.removeHooks=function(Gt){At[Gt]&&(At[Gt]=[])},o.removeAllHooks=function(){At={}},o}var purify=createDOMPurify();const HTMLTagRenderer=({string:i,allowedTags:o})=>{const g=purify.sanitize(i,{ALLOWED_TAGS:o});return jsxRuntimeExports.jsx("span",{dangerouslySetInnerHTML:{__html:g}})},SvgNext=i=>reactExports.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.29289 6.29289C9.68342 5.90237 10.3166 5.90237 10.7071 6.29289L15.7071 11.2929C16.0976 11.6834 16.0976 12.3166 15.7071 12.7071L10.7071 17.7071C10.3166 18.0976 9.68342 18.0976 9.29289 17.7071C8.90237 17.3166 8.90237 16.6834 9.29289 16.2929L13.5858 12L9.29289 7.70711C8.90237 7.31658 8.90237 6.68342 9.29289 6.29289Z",fill:"currentColor"}));function UserRelation({normalized_name:i,related_user_id:o,onClick:g}){const{t:$}=useTranslation(),{getUserById:j}=useUsers(),_e=o?j(o):void 0;return jsxRuntimeExports.jsxs("button",{className:"w-full flex gap-3 text-left items-center px-4 py-2.5 truncate hover:bg-text/5 active:bg-text/10 transition-all",onClick:g,children:[jsxRuntimeExports.jsx("div",{className:"flex w-[35%] truncate",children:i?jsxRuntimeExports.jsx("div",{className:"truncate",children:i==="MESSAGE_AUTHOR"?jsxRuntimeExports.jsxs("span",{className:"opacity-30",children:["(",$("author"),")"]}):jsxRuntimeExports.jsx("span",{className:"font-medium",children:i})}):jsxRuntimeExports.jsxs("div",{className:"truncate opacity-30",children:["(",$("added"),")"]})}),jsxRuntimeExports.jsx("div",{className:"flex w-[55%] truncate",children:jsxRuntimeExports.jsx(User,{user:_e})}),jsxRuntimeExports.jsx("div",{className:"h-6 w-6 text-hint opacity-50",children:jsxRuntimeExports.jsx(SvgNext,{})})]})}function Start(){useInit();const{t:i}=useTranslation(),o=useNavigate(),{transaction:g,setSelectPersonId:$}=useStore(),{unrelatedUsers:j,isRelationsComplete:_e}=useUsers(),[et]=b();if(!g)return null;const rt=!(g!=null&&g.formatted_text)&&!(g!=null&&g.raw_text),tt=g.shares.reduce((it,pt)=>it.map(ht=>ht.person_id).includes(pt.person_id)?it:[...it,pt],[]),nt=it=>{$(it),console.log("onSelect vibro"),et("light"),o("/select-user")},st=()=>{$(null),console.log("onAdd vibro"),et("light"),o("/select-user")},ft=()=>{var it;(it=window.Telegram)==null||it.WebApp.close()};return jsxRuntimeExports.jsxs(Screen,{children:[jsxRuntimeExports.jsx(Header,{onCancel:ft}),!rt&&jsxRuntimeExports.jsxs(Panel,{children:[jsxRuntimeExports.jsx("div",{className:"text-[12px] leading-[1.33em] font-medium text-hint",children:i("message")}),jsxRuntimeExports.jsxs("div",{className:"mt-1",children:[!!g.is_voice&&jsxRuntimeExports.jsx("span",{children:"🎙 "}),g.formatted_text?jsxRuntimeExports.jsx(HTMLTagRenderer,{allowedTags:["b","strong"],string:g.formatted_text}):jsxRuntimeExports.jsx("strong",{children:g.raw_text})]})]}),jsxRuntimeExports.jsx(Panel,{children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h2",{children:i(rt?"addUsers":"matchUsers")}),!rt&&jsxRuntimeExports.jsxs("div",{className:"mt-1 text-[14px] leading-[20px] text-hint",children:["🐨 ",i("willBeSaved")]}),jsxRuntimeExports.jsx("div",{className:"mt-2 -mx-4 overflow-y-auto",children:tt.map((it,pt)=>jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(UserRelation,{...it,onClick:()=>nt(it.person_id)},`UserRelation-${pt}`),pt{o("/check")}})]})}const v="5.7.1",fr=30,ip=0,op=60,w=300,h=300,nm="Comp 1",ddd=0,assets=[],layers=[{ddd:0,ind:1,ty:4,nm:"4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[151,151,0],ix:2},a:{a:0,k:[0,0,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],[-22.5,-7.5],[0,0]],o:[[0,0],[22.5,7.5],[0,0]],v:[[61,78.5],[78,100.5],[94,115.5]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.12941176470588237,.19607843137254902,.3843137254901961,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:5,ix:5},lc:2,lj:1,ml:4,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:"Shape 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:28.254,s:[0]},{t:51,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:17,s:[0]},{t:46.2109375,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:17,op:617,st:17,bm:0},{ddd:0,ind:2,ty:4,nm:"3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:203,ix:10},p:{a:0,k:[251.408,59.449,0],ix:2},a:{a:0,k:[-103.936,89.696,0],ix:1},s:{a:0,k:[91.456,89.381,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[29.459,25.084],[5,-25.75],[5.75,-.75]],o:[[0,0],[-25.25,-21.5],[-5.515,28.405],[-5.75,.75]],v:[[-75,68.75],[-107.25,86.5],[-94,84],[-128.75,113]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[1,.713725490196,.211764720842,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:5,ix:5},lc:2,lj:1,ml:4,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:"Shape 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:28.254,s:[0]},{t:51,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:17,s:[0]},{t:46.2109375,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:17,op:617,st:17,bm:0},{ddd:0,ind:3,ty:4,nm:"2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[-21,347,0],ix:2},a:{a:0,k:[0,0,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],[20.5,4.5],[0,0],[18.25,9.25],[3.5,-3.25]],o:[[0,0],[-20.5,-4.5],[0,0],[-18.25,-9.25],[-3.5,3.25]],v:[[90.75,-122.25],[83.5,-110.5],[81.25,-97.25],[69.75,-93.25],[61,-75.75]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.745098039216,.643137254902,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:5,ix:5},lc:2,lj:1,ml:4,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:"Shape 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:28.254,s:[0]},{t:51,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:17,s:[0]},{t:46.2109375,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:17,op:617,st:17,bm:0},{ddd:0,ind:4,ty:4,nm:"1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[147,146,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[109.756,101.856,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[33.75,1]],o:[[0,0],[-33.75,-1]],v:[[-57.75,-75.75],[-90.75,-107.5]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[1,.431372578939,.513725490196,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:5,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-1.5,-.25],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:"Shape 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:28.254,s:[0]},{t:51,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:17,s:[0]},{t:46.2109375,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:17,op:617,st:17,bm:0},{ddd:0,ind:5,ty:4,nm:"checkmark/success Outlines",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[150.06,150.061,0],ix:2},a:{a:0,k:[99,99,0],ix:1},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:0,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:12,s:[27,27,100]},{t:21,s:[100,100,100]}],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[.831,1.409],[0,0],[-.622,2.004],[-1.844,1.043],[-2.083,-.474],[-1.215,-1.74],[0,0],[-.949,.537],[0,0],[-2.041,-.632],[-1.075,-1.826],[.463,-2.047],[1.756,-1.181]],o:[[-1.424,.805],[0,0],[-.93,-1.899],[.622,-2.006],[1.844,-1.042],[2.084,.474],[0,0],[.553,.939],[0,0],[1.921,-.899],[2.042,.631],[1.076,1.823],[-.463,2.047],[0,0]],v:[[-26.138,30.587],[-30.199,29.498],[-58.899,-19.189],[-59.378,-25.261],[-55.542,-30.001],[-49.433,-30.884],[-44.302,-27.441],[-23.618,7.647],[-20.911,8.371],[47.571,-30.344],[53.736,-30.76],[58.584,-26.94],[59.537,-20.918],[56.086,-15.898]],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},{ty:"tr",p:{a:0,k:[99.943,103.024],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[83.631,83.631],ix:3},r:{a:0,k:-12.6,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},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[-47.479,-12.722],[12.721,-47.478],[47.478,12.722],[-12.723,47.478]],o:[[47.479,12.722],[-12.723,47.479],[-47.478,-12.723],[12.721,-47.479]],v:[[23.036,-85.967],[85.969,23.035],[-23.035,85.967],[-85.966,-23.035]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:0,s:[.901960790157,.901960790157,.901960790157,1]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:10,s:[.901960790157,.901960790157,.901960790157,1]},{t:29,s:[.262745112181,.823529422283,.588235318661,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:[98.939,98.939],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:2,mn:"ADBE Vector Group",hd:!1}],ip:0,op:600,st:0,bm:0},{ddd:0,ind:6,ty:4,nm:"large-circles/success Outlines",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:42,s:[100]},{t:52,s:[2]}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[148,146,0],ix:2},a:{a:0,k:[95.5,98,0],ix:1},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.009,.009,.333],y:[1.621,1.621,0]},t:17,s:[62,62,100]},{t:50,s:[124,124,100]}],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[-6.209,1.338],[-1.337,-6.209],[6.209,-1.337],[1.338,6.209]],o:[[6.208,-1.337],[1.338,6.209],[-6.209,1.338],[-1.337,-6.209]],v:[[-2.421,-11.243],[11.242,-2.422],[2.421,11.241],[-11.243,2.421]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.745000023935,.642999985639,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:[173.998,145.423],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[71,71],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},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[-6.209,1.337],[-1.338,-6.209],[6.209,-1.338],[1.338,6.209]],o:[[6.209,-1.338],[1.337,6.209],[-6.209,1.337],[-1.337,-6.208]],v:[[-2.421,-11.242],[11.242,-2.422],[2.422,11.242],[-11.243,2.422]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.011764705882352941,.45098039215686275,.8901960784313725,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:[63.997,183.011],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[70,70],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:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[-6.209,1.337],[-1.337,-6.208],[6.209,-1.337],[1.338,6.209]],o:[[6.209,-1.337],[1.338,6.209],[-6.209,1.338],[-1.337,-6.209]],v:[[-2.421,-11.243],[11.242,-2.423],[2.421,11.242],[-11.243,2.421]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[1,.713999968884,.211999990426,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:[103.291,12.83],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[70,70],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:2,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[-6.208,1.337],[-1.337,-6.209],[6.209,-1.338],[1.338,6.209]],o:[[6.209,-1.337],[1.338,6.209],[-6.209,1.337],[-1.337,-6.209]],v:[[-2.423,-11.242],[11.241,-2.422],[2.421,11.242],[-11.243,2.422]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.011764705882352941,.45098039215686275,.8901960784313725,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:[178.004,59.795],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[67,67],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:2,cix:2,bm:0,ix:4,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[-6.209,1.337],[-1.338,-6.208],[6.209,-1.337],[1.338,6.209]],o:[[6.209,-1.337],[1.337,6.209],[-6.209,1.338],[-1.337,-6.209]],v:[[-2.421,-11.243],[11.243,-2.423],[2.422,11.242],[-11.243,2.421]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[1,.430999995213,.513999968884,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:[12.829,84.352],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[68,68],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:5,mn:"ADBE Vector Group",hd:!1}],ip:17,op:617,st:17,bm:0},{ddd:0,ind:7,ty:4,nm:"checkmark/success Outlines",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[150.073,150.073,0],ix:2},a:{a:0,k:[99,99,0],ix:1},s:{a:1,k:[{i:{x:[.203,.203,.667],y:[.507,.507,1]},o:{x:[.915,.915,.333],y:[.651,.651,0]},t:50,s:[93.357,93.357,100]},{t:59,s:[121.357,121.357,100]}],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[.831,1.409],[0,0],[-.622,2.004],[-1.844,1.043],[-2.083,-.474],[-1.215,-1.74],[0,0],[-.949,.537],[0,0],[-2.041,-.632],[-1.075,-1.826],[.463,-2.047],[1.756,-1.181]],o:[[-1.424,.805],[0,0],[-.93,-1.899],[.622,-2.006],[1.844,-1.042],[2.084,.474],[0,0],[.553,.939],[0,0],[1.921,-.899],[2.042,.631],[1.076,1.823],[-.463,2.047],[0,0]],v:[[-26.138,30.587],[-30.199,29.498],[-58.899,-19.189],[-59.378,-25.261],[-55.542,-30.001],[-49.433,-30.884],[-44.302,-27.441],[-23.618,7.647],[-20.911,8.371],[47.571,-30.344],[53.736,-30.76],[58.584,-26.94],[59.537,-20.918],[56.086,-15.898]],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},{ty:"tr",p:{a:0,k:[98.943,102.024],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},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[-47.479,-12.722],[12.721,-47.478],[47.478,12.722],[-12.723,47.478]],o:[[47.479,12.722],[-12.723,47.479],[-47.478,-12.723],[12.721,-47.479]],v:[[23.036,-85.967],[85.969,23.035],[-23.035,85.967],[-85.966,-23.035]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.2235294117647059,.7843137254901961,.32941176470588235,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:[98.939,98.939],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:2,mn:"ADBE Vector Group",hd:!1}],ip:50,op:650,st:50,bm:0}],markers=[],lottieSuccess={v,fr,ip,op,w,h,nm,ddd,assets,layers,markers};function SplashScreen(){const{isSplash:i,isLoading:o,error:g,isSuccess:$}=useSplash(),[,j]=b();return reactExports.useEffect(()=>{$&&(console.log("success vibro"),j("success"))},[$,j]),reactExports.useEffect(()=>{g&&(console.log("error vibro"),j("error"))},[g,j]),jsxRuntimeExports.jsx("div",{className:cx("fixed top-0 left-0 w-full h-full overflow-y-auto bg-bg2 transition-all",i?"opacity-100":"pointer-events-none opacity-0"),children:jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-center w-full min-h-full",children:[o&&!g&&!$&&jsxRuntimeExports.jsx(Loader,{size:50}),!!g&&jsxRuntimeExports.jsxs("div",{className:"p-4 text-center text-[#e00]",children:["Error: ",g.message]}),!!$&&jsxRuntimeExports.jsx("div",{className:"w-[200px] h-[200px] p-4 text-center text-button text-[24px] font-medium",children:jsxRuntimeExports.jsx(Lottie,{animationData:lottieSuccess,loop:!0})})]})})}const DemoMode=()=>{const{txId:i}=useStore(),{t:o}=useTranslation();return i!==null?null:jsxRuntimeExports.jsx("div",{className:"fixed top-0 width-auto left-[50%] -translate-x-[50%] px-4 py-[1px] text-[13px] leading-[1em] font-semibold bg-[#3a3] text-white rounded-b-md",children:o("demoMode")})},queryClient=new QueryClient;function App(){useTheme(),useAutoExpand();const i=createHashRouter([{path:"/",element:jsxRuntimeExports.jsx(Start,{}),errorElement:jsxRuntimeExports.jsx(Start,{})},{path:"*",element:jsxRuntimeExports.jsx(Start,{})},{path:"/select-user",element:jsxRuntimeExports.jsx(Select,{})},{path:"/check",element:jsxRuntimeExports.jsx(Check,{})},{path:"/select-currency",element:jsxRuntimeExports.jsx(SelectCurrency,{})}]);return jsxRuntimeExports.jsx(y,{options:{smoothButtonsTransition:!0},children:jsxRuntimeExports.jsxs(QueryClientProvider,{client:queryClient,children:[jsxRuntimeExports.jsx(RouterProvider,{router:i}),jsxRuntimeExports.jsx(SplashScreen,{}),jsxRuntimeExports.jsx(DemoMode,{})]})})}const index="";client.createRoot(document.getElementById("root")).render(jsxRuntimeExports.jsx(React.StrictMode,{children:jsxRuntimeExports.jsx(App,{})})); diff --git a/index.html b/index.html index 923ef9b..48e6410 100644 --- a/index.html +++ b/index.html @@ -13,7 +13,7 @@ - +