1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`[email protected]`},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(n!=null)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:patient-web":!0});var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`1f404b15-d3c0-477e-8132-9f1ec183eddf`,e._sentryDebugIdIdentifier=`sentry-dbid-1f404b15-d3c0-477e-8132-9f1ec183eddf`)}catch{}})();import{n as e,r as t,t as n}from"./rolldown-runtime-BmkFm-oZ.js";function r(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var i={},a=[],o=()=>{},s=()=>!1,c=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),l=e=>e.startsWith(`onUpdate:`),u=Object.assign,d=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},f=Object.prototype.hasOwnProperty,p=(e,t)=>f.call(e,t),m=Array.isArray,h=e=>E(e)===`[object Map]`,g=e=>E(e)===`[object Set]`,v=e=>E(e)===`[object Date]`,y=e=>E(e)===`[object RegExp]`,b=e=>typeof e==`function`,x=e=>typeof e==`string`,S=e=>typeof e==`symbol`,C=e=>typeof e==`object`&&!!e,w=e=>(C(e)||b(e))&&b(e.then)&&b(e.catch),T=Object.prototype.toString,E=e=>T.call(e),D=e=>E(e).slice(8,-1),ee=e=>E(e)===`[object Object]`,te=e=>x(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,ne=r(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),re=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ie=/-\w/g,ae=re(e=>e.replace(ie,e=>e.slice(1).toUpperCase())),oe=/\B([A-Z])/g,O=re(e=>e.replace(oe,`-$1`).toLowerCase()),se=re(e=>e.charAt(0).toUpperCase()+e.slice(1)),ce=re(e=>e?`on${se(e)}`:``),le=(e,t)=>!Object.is(e,t),ue=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},de=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},fe=e=>{let t=parseFloat(e);return isNaN(t)?e:t},pe=e=>{let t=x(e)?Number(e):NaN;return isNaN(t)?e:t},me,he=()=>me||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function ge(e){if(m(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=x(r)?be(r):ge(r);if(i)for(let e in i)t[e]=i[e]}return t}if(x(e)||C(e))return e}var _e=/;(?![^(]*\))/g,ve=/:([^]+)/,ye=/\/\*[^]*?\*\//g;function be(e){let t={};return e.replace(ye,``).split(_e).forEach(e=>{if(e){let n=e.split(ve);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function k(e){let t=``;if(x(e))t=e;else if(m(e))for(let n=0;n<e.length;n++){let r=k(e[n]);r&&(t+=r+` `)}else if(C(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}function xe(e){if(!e)return null;let{class:t,style:n}=e;return t&&!x(t)&&(e.class=k(t)),n&&(e.style=ge(n)),e}var Se=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,Ce=r(Se);Se+``;function we(e){return!!e||e===``}function Te(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=De(e[r],t[r]);return n}function Ee(e,t){if(e.size!==t.size)return!1;let n=Array.from(t),r=new Uint8Array(n.length);for(let t of e){let e=-1;for(let i=0;i<n.length;i++)if(!r[i]&&De(t,n[i])){e=i;break}if(e<0)return!1;r[e]=1}return!0}function De(e,t){if(e===t)return!0;let n=v(e),r=v(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=S(e),r=S(t),n||r)return e===t;if(n=m(e),r=m(t),n||r)return n&&r?Te(e,t):!1;if(n=C(e),r=C(t),n||r){if(!n||!r)return!1;if(n=h(e),r=h(t),n||r||(n=g(e),r=g(t),n||r))return n&&r?Ee(e,t):!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!De(e[n],t[n]))return!1}}return String(e)===String(t)}var Oe=e=>!!(e&&e.__v_isRef===!0),A=e=>x(e)?e:e==null?``:m(e)||C(e)&&(e.toString===T||!b(e.toString))?Oe(e)?A(e.value):JSON.stringify(e,ke,2):String(e),ke=(e,t)=>Oe(t)?ke(e,t.value):h(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>
vendor: 16,601 bytes, line 1
1(e[Ae(t,r)+` =>`]=n,e),{})}:g(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Ae(e))}:S(t)?Ae(t):C(t)&&!m(t)&&!ee(t)?String(t):t,Ae=(e,t=``)=>S(e)?`Symbol(${e.description??t})`:e;function je(e){return e==null?`initial`:typeof e==`string`?e===``?` `:e:String(e)}var Me,Ne=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&Me&&(Me.active?(this.parent=Me,this.index=(Me.scopes||(Me.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].pause()}for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}let n=this.effects.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}}run(e){if(this._active){let t=Me;try{return Me=this,e()}finally{Me=t}}}on(){++this._on===1&&(this.prevScope=Me,Me=this)}off(){if(this._on>0&&--this._on===0){if(Me===this)Me=this.prevScope;else{let e=Me;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){let e=this.scopes.slice();for(t=0,n=e.length;t<n;t++)e[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function Pe(e){return new Ne(e)}function Fe(){return Me}function Ie(e,t=!1){Me&&Me.cleanups.push(e)}var Le,Re=new WeakSet,ze=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Me&&(Me.active?Me.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Re.has(this)&&(Re.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ue(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,nt(this),Ke(this);let e=Le,t=Qe;Le=this,Qe=!0;try{return this.fn()}finally{qe(this),Le=e,Qe=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Xe(e);this.deps=this.depsTail=void 0,nt(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Re.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Je(this)&&this.run()}get dirty(){return Je(this)}},Be=0,Ve,He;function Ue(e,t=!1){if(e.flags|=8,t){e.next=He,He=e;return}e.next=Ve,Ve=e}function We(){Be++}function Ge(){if(--Be>0)return;if(He){let e=He;for(He=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Ve;){let t=Ve;for(Ve=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Ke(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function qe(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),Xe(r),Ze(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Je(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ye(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ye(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===rt)||(e.globalVersion=rt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Je(e))))return;e.flags|=2;let t=e.dep,n=Le,r=Qe;Le=e,Qe=!0;try{Ke(e);let n=e.fn(e._value);(t.version===0||le(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{Le=n,Qe=r,qe(e),e.flags&=-3}}function Xe(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)Xe(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ze(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var Qe=!0,$e=[];function et(){$e.push(Qe),Qe=!1}function tt(){let e=$e.pop();Qe=e===void 0||e}function nt(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=Le;Le=void 0;try{t()}finally{Le=e}}}var rt=0,it=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},at=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!Le||!Qe||Le===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==Le)t=this.activeLink=new it(Le,this),Le.deps?(t.prevDep=Le.depsTail,Le.depsTail.nextDep=t,Le.depsTail=t):Le.deps=Le.depsTail=t,ot(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=Le.depsTail,t.nextDep=void 0,Le.depsTail.nextDep=t,Le.depsTail=t,Le.deps===t&&(Le.deps=e)}return t}trigger(e){this.version++,rt++,this.notify(e)}notify(e){We();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Ge()}}};function ot(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)ot(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var st=new WeakMap,ct=Symbol(``),lt=Symbol(``),ut=Symbol(``);function dt(e,t,n){if(Qe&&Le){let t=st.get(e);t||st.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new at),r.map=t,r.key=n),r.track()}}function ft(e,t,n,r,i,a){let o=st.get(e);if(!o){rt++;return}let s=e=>{e&&e.trigger()};if(We(),t===`clear`)o.forEach(s);else{let i=m(e),a=i&&te(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===ut||!S(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(ut)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(ct)),h(e)&&s(o.get(lt)));break;case`delete`:i||(s(o.get(ct)),h(e)&&s(o.get(lt)));break;case`set`:h(e)&&s(o.get(ct))}}Ge()}function pt(e,t){let n=st.get(e);return n&&n.get(t)}function mt(e){let t=tn(e);return t===e?t:(dt(t,`iterate`,ut),$t(e)?t:t.map(rn))}function ht(e){return dt(e=tn(e),`iterate`,ut),e}function gt(e,t){return Qt(e)?an(Zt(e)?rn(t):t):rn(t)}var _t={__proto__:null,[Symbol.iterator](){return vt(this,Symbol.iterator,e=>gt(this,e))},concat(...e){return mt(this).concat(...e.map(e=>m(e)?mt(e):e))},entries(){return vt(this,`entries`,e=>(e[1]=gt(this,e[1]),e))},every(e,t){return bt(this,`every`,e,t,void 0,arguments)},filter(e,t){return bt(this,`filter`,e,t,e=>e.map(e=>gt(this,e)),arguments)},find(e,t){return bt(this,`find`,e,t,e=>gt(this,e),arguments)},findIndex(e,t){return bt(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return bt(this,`findLast`,e,t,e=>gt(this,e),arguments)},findLastIndex(e,t){return bt(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return bt(this,`forEach`,e,t,void 0,arguments)},includes(...e){return St(this,`includes`,e)},indexOf(...e){return St(this,`indexOf`,e)},join(e){return mt(this).join(e)},lastIndexOf(...e){return St(this,`lastIndexOf`,e)},map(e,t){return bt(this,`map`,e,t,void 0,arguments)},pop(){return Ct(this,`pop`)},push(...e){return Ct(this,`push`,e)},reduce(e,...t){return xt(this,`reduce`,e,t)},reduceRight(e,...t){return xt(this,`reduceRight`,e,t)},shift(){return Ct(this,`shift`)},some(e,t){return bt(this,`some`,e,t,void 0,arguments)},splice(...e){return Ct(this,`splice`,e)},toReversed(){return mt(this).toReversed()},toSorted(e){return mt(this).toSorted(e)},toSpliced(...e){return mt(this).toSpliced(...e)},unshift(...e){return Ct(this,`unshift`,e)},values(){return vt(this,`values`,e=>gt(this,e))}};function vt(e,t,n){let r=ht(e),i=r[t]();return r!==e&&!$t(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var yt=Array.prototype;function bt(e,t,n,r,i,a){let o=ht(e),s=o!==e&&!$t(e),c=o[t];if(c!==yt[t]){let t=c.apply(e,a);return s?rn(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,gt(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function xt(e,t,n,r){let i=ht(e),a=i!==e&&!$t(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=gt(e,t)),n.call(this,t,gt(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?gt(e,c):c}function St(e,t,n){let r=tn(e);dt(r,`iterate`,ut);let i=r[t](...n);return(i===-1||i===!1)&&en(n[0])?(n[0]=tn(n[0]),r[t](...n)):i}function Ct(e,t,n=[]){et(),We();let r=tn(e)[t].apply(e,n);return Ge(),tt(),r}var wt=r(`__proto__,__v_isRef,__isVue`),Tt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(S));function Et(e){S(e)||(e=String(e));let t=tn(this);return dt(t,`has`,e),t.hasOwnProperty(e)}var Dt=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?Gt:Wt:i?Ut:Ht).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=m(e);if(!r){let e;if(a&&(e=_t[t]))return e;if(t===`hasOwnProperty`)return Et}let o=Reflect.get(e,t,on(e)?e:n);if((S(t)?Tt.has(t):wt(t))||(r||dt(e,`get`,t),i))return o;if(on(o)){let e=a&&te(t)?o:o.value;return r&&C(e)?Yt(e):e}return C(o)?r?Yt(o):qt(o):o}},Ot=class extends Dt{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=m(e)&&te(t);if(!this._isShallow){let e=Qt(i);if(!$t(n)&&!Qt(n)&&(i=tn(i),n=tn(n)),!a&&on(i)&&!on(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:p(e,t),s=Reflect.set(e,t,n,on(e)?e:r);return e===tn(r)&&s&&(o?le(n,i)&&ft(e,`set`,t,n,i):ft(e,`add`,t,n)),s}deleteProperty(e,t){let n=p(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&ft(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!S(t)||!Tt.has(t))&&dt(e,`has`,t),n}ownKeys(e){return dt(e,`iterate`,m(e)?`length`:ct),Reflect.ownKeys(e)}},kt=class extends Dt{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},At=new Ot,jt=new kt,Mt=new Ot(!0),Nt=e=>e,Pt=e=>Reflect.getPrototypeOf(e);function Ft(e,t,n){return function(...r){let i=this.__v_raw,a=tn(i),o=h(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,l=i[e](...r),d=n?Nt:t?an:rn;return!t&&dt(a,`iterate`,c?lt:ct),u(Object.create(l),{next(){let{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:s?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function It(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Lt(e,t){let n={get(n){let r=this.__v_raw,i=tn(r),a=tn(n);e||(le(n,a)&&dt(i,`get`,n),dt(i,`get`,a));let{has:o}=Pt(i),s=t?Nt:e?an:rn;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&dt(tn(t),`iterate`,ct),t.size},has(t){let n=this.__v_raw,r=tn(n),i=tn(t);return e||(le(t,i)&&dt(r,`has`,t),dt(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=tn(a),s=t?Nt:e?an:rn;return!e&&dt(o,`iterate`,ct),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return u(n,e?{add:It(`add`),set:It(`set`),delete:It(`delete`),clear:It(`clear`)}:{add(e){let n=tn(this),r=Pt(n),i=tn(e),a=!t&&!$t(e)&&!Qt(e)?i:e;return r.has.call(n,a)||le(e,a)&&r.has.call(n,e)||le(i,a)&&r.has.call(n,i)||(n.add(a),ft(n,`add`,a,a)),this},set(e,n){!t&&!$t(n)&&!Qt(n)&&(n=tn(n));let r=tn(this),{has:i,get:a}=Pt(r),o=i.call(r,e);o||=(e=tn(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?le(n,s)&&ft(r,`set`,e,n,s):ft(r,`add`,e,n),this},delete(e){let t=tn(this),{has:n,get:r}=Pt(t),i=n.call(t,e);i||=(e=tn(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&ft(t,`delete`,e,void 0,a),o},clear(){let e=tn(this),t=e.size!==0,n=e.clear();return t&&ft(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Ft(r,e,t)}),n}function Rt(e,t){let n=Lt(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(p(n,r)&&r in t?n:t,r,i)}var zt={get:Rt(!1,!1)},Bt={get:Rt(!1,!0)},Vt={get:Rt(!0,!1)},Ht=new WeakMap,Ut=new WeakMap,Wt=new WeakMap,Gt=new WeakMap;function Kt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function qt(e){return Qt(e)?e:Xt(e,!1,At,zt,Ht)}function Jt(e){return Xt(e,!1,Mt,Bt,Ut)}function Yt(e){return Xt(e,!0,jt,Vt,Wt)}function Xt(e,t,n,r,i){if(!C(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=Kt(D(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function Zt(e){return Qt(e)?Zt(e.__v_raw):!!(e&&e.__v_isReactive)}function Qt(e){return!!(e&&e.__v_isReadonly)}function $t(e){return!!(e&&e.__v_isShallow)}function en(e){return e?!!e.__v_raw:!1}function tn(e){let t=e&&e.__v_raw;return t?tn(t):e}function nn(e){return!p(e,`__v_skip`)&&Object.isExtensible(e)&&de(e,`__v_skip`,!0),e}var rn=e=>C(e)?qt(e):e,an=e=>C(e)?Yt(e):e;function on(e){return e?e.__v_isRef===!0:!1}function j(e){return cn(e,!1)}function sn(e){return cn(e,!0)}function cn(e,t){return on(e)?e:new ln(e,t)}var ln=class{constructor(e,t){this.dep=new at,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:tn(e),this._value=t?e:rn(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||$t(e)||Qt(e);e=n?e:tn(e),le(e,t)&&(this._rawValue=e,this._value=n?e:rn(e),this.dep.trigger())}};function M(e){return on(e)?e.value:e}var un={get:(e,t,n)=>t===`__v_raw`?e:M(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return on(i)&&!on(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function dn(e){return Zt(e)?e:new Proxy(e,un)}function N(e){let t=m(e)?Array(e.length):{};for(let n in e)t[n]=hn(e,n);return t}var fn=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=S(t)?t:String(t),this._raw=tn(e);let r=!0,i=e;if(!m(e)||S(this._key)||!te(this._key))do r=!en(i)||$t(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=M(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&on(this._raw[this._key])){let t=this._object[this._key];if(on(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return pt(this._raw,this._key)}},pn=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function mn(e,t,n){return on(e)?e:b(e)?new pn(e):C(e)&&arguments.length>1?hn(e,t,n):j(e)}function hn(e,t,n){return new fn(e,t,n)}var gn=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new at(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=rt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Le!==this)return Ue(this,!0),!0}get value(){let e=this.dep.track();return Ye(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function _n(e,t,n=!1){let r,i;return b(e)?r=e:(r=e.get,i=e.set),new gn(r,i,n)}var vn={},yn=new WeakMap,bn=void 0;function xn(e,t=!1,n=bn){if(n){let t=yn.get(n);t||yn.set(n,t=[]),t.push(e)}}function Sn(e,t,n=i){let{immediate:r,deep:a,once:s,scheduler:c,augmentJob:l,call:u}=n,f=e=>a?e:$t(e)||a===!1||a===0?Cn(e,1):Cn(e),p,h,g,v,y=!1,x=!1;if(on(e)?(h=()=>e.value,y=$t(e)):Zt(e)?(h=()=>f(e),y=!0):m(e)?(x=!0,y=e.some(e=>Zt(e)||$t(e)),h=()=>e.map(e=>{if(on(e))return e.value;if(Zt(e))return f(e);if(b(e))return u?u(e,2):e()})):h=b(e)?t?u?()=>u(e,2):e:()=>{if(g){et();try{g()}finally{tt()}}let t=bn;bn=p;try{return u?u(e,3,[v]):e(v)}finally{bn=t}}:o,t&&a){let e=h,t=a===!0?1/0:a;h=()=>Cn(e(),t)}let S=Fe(),C=()=>{p.stop(),S&&S.active&&d(S.effects,p)};if(s&&t){let e=t;t=(...t)=>{let n=e(...t);return C(),n}}let w=x?Array(e.length).fill(vn):vn,T=e=>{if(p.flags&1&&(p.dirty||e)){if(t){let n=p.run();if(e||a||y||(x?n.some((e,t)=>le(e,w[t])):le(n,w))){g&&g();let e=bn;bn=p;try{let e=[n,w===vn?void 0:x&&w[0]===vn?[]:w,v];w=n,u?u(t,3,e):t(...e)}finally{bn=e}}}else p.run()}};
vendor: 4,083 bytes, line 1
1return l&&l(T),p=new ze(h),p.scheduler=c?()=>c(T,!1):T,v=e=>xn(e,!1,p),g=p.onStop=()=>{let e=yn.get(p);if(e){if(u)u(e,4);else for(let t of e)t();yn.delete(p)}},t?r?T(!0):w=p.run():c?c(T.bind(null,!0),!0):p.run(),C.pause=p.pause.bind(p),C.resume=p.resume.bind(p),C.stop=C,C}function Cn(e,t=1/0,n){if(t<=0||!C(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,on(e))Cn(e.value,t,n);else if(m(e))for(let r=0;r<e.length;r++)Cn(e[r],t,n);else if(g(e)||h(e))e.forEach(e=>{Cn(e,t,n)});else if(ee(e)){for(let r in e)Cn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Cn(e[r],t,n)}return e}function wn(e,t,n,r){try{return r?e(...r):e()}catch(e){En(e,t,n)}}function Tn(e,t,n,r){if(b(e)){let i=wn(e,t,n,r);return i&&w(i)&&i.catch(e=>{En(e,t,n)}),i}if(m(e)){let i=[];for(let a=0;a<e.length;a++)i.push(Tn(e[a],t,n,r));return i}}function En(e,t,n,r=!0){let a=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||i;if(t){let r=t.parent,i=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){let t=r.ec;if(t){for(let n=0;n<t.length;n++)if(t[n](e,i,a)===!1)return}r=r.parent}if(o){et(),wn(o,null,10,[e,i,a]),tt();return}}Dn(e,n,a,r,s)}function Dn(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var On=[],kn=-1,An=[],jn=null,Mn=0,Nn=Promise.resolve(),Pn=null;function Fn(e){let t=Pn||Nn;return e?t.then(this?e.bind(this):e):t}function In(e){let t=kn+1,n=On.length;for(;t<n;){let r=t+n>>>1,i=On[r],a=Hn(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function Ln(e){if(!(e.flags&1)){let t=Hn(e),n=On[On.length-1];!n||!(e.flags&2)&&t>=Hn(n)?On.push(e):On.splice(In(t),0,e),e.flags|=1,Rn()}}function Rn(){Pn||=Nn.then(Un)}function zn(e){if(!m(e))jn&&e.id===-1?jn.splice(Mn+1,0,e):e.flags&1||(An.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)An.push(e[t]);Rn()}function Bn(e,t,n=kn+1){for(;n<On.length;n++){let t=On[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;On.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function Vn(e){if(An.length){let e=[...new Set(An)].sort((e,t)=>Hn(e)-Hn(t));if(An.length=0,jn){for(let t=0;t<e.length;t++)jn.push(e[t]);return}for(jn=e,Mn=0;Mn<jn.length;Mn++){let e=jn[Mn];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}jn=null,Mn=0}}var Hn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Un(e){try{for(kn=0;kn<On.length;kn++){let e=On[kn];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),wn(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;kn<On.length;kn++){let e=On[kn];e&&(e.flags&=-2)}kn=-1,On.length=0,Vn(e),Pn=null,(On.length||An.length)&&Un(e)}}var Wn=null,Gn=null;function Kn(e){let t=Wn;return Wn=e,Gn=e&&e.type.__scopeId||null,t}function P(e,t=Wn,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&Ga(-1);let i=Kn(t),a=Va.length,o;try{o=e(...n)}finally{for(let e=Va.length;e>a;e--)Ua();Kn(i),r._d&&Ga(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function qn(e,t){if(Wn===null)return e;let n=To(Wn),r=e.dirs||=[];for(let e=0;e<t.length;e++){let[a,o,s,c=i]=t[e];a&&(b(a)&&(a={mounted:a,updated:a}),a.deep&&Cn(o),r.push({dir:a,instance:n,value:o,oldValue:void 0,arg:s,modifiers:c}))}return e}function Jn(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&(et(),Tn(c,n,8,[e.el,s,e,t]),tt())}}function Yn(e,t){if(uo){let n=uo.provides,r=uo.parent&&uo.parent.provides;r===n&&(n=uo.provides=Object.create(r)),n[e]=t}}function F(e,t,n=!1){let r=fo();if(r||Ji){let i=Ji?Ji._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&b(t)?t.call(r&&r.proxy):t}}function Xn(){return!!(fo()||Ji)}var Zn=Symbol.for(`v-scx`),Qn=()=>F(Zn);function $n(e,t){return er(e,null,t)}function I(e,t,n){return er(e,t,n)}function er(e,t,n=i){let{immediate:r,deep:a,flush:s,once:c}=n,l=u({},n),d=t&&r||!t&&s!==`post`,f;if(vo){if(s===`sync`){let e=Qn();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=o,e.resume=o,e.pause=o,e}}let p=uo;
vendor: 9,005 bytes, line 1
1l.call=(e,t,n)=>Tn(e,p,t,n);let m=!1;s===`post`?l.scheduler=e=>{Ta(e,p&&p.suspense)}:s!==`sync`&&(m=!0,l.scheduler=(e,t)=>{t?e():Ln(e)}),l.augmentJob=e=>{t&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=Sn(e,t,l);return vo&&(f?f.push(h):d&&h()),h}function tr(e,t,n){let r=this.proxy,i=x(e)?e.includes(`.`)?nr(r,e):()=>r[e]:e.bind(r,r),a;b(t)?a=t:(a=t.handler,n=t);let o=ho(this),s=er(i,a.bind(r),n);return o(),s}function nr(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}var rr=new WeakMap,ir=Symbol(`_vte`),ar=e=>e.__isTeleport,or=e=>e&&(e.disabled||e.disabled===``),sr=e=>e&&(e.defer||e.defer===``),cr=e=>typeof SVGElement<`u`&&e instanceof SVGElement,lr=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,ur=(e,t)=>{let n=e&&e.to;return x(n)?t?t(n):null:n},dr={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g,parentNode:v}}=l,y=or(t.props),{dynamicChildren:b}=t,x=(e,t,n)=>{e.shapeFlag&16&&u(e.children,t,n,i,a,o,s,c)},S=(e=t)=>{let n=or(e.props),r=e.target=ur(e.props,m),a=gr(r,e,h,p);r&&(o!==`svg`&&cr(r)?o=`svg`:o!==`mathml`&&lr(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(x(e,r,a),hr(e,!1)))},C=e=>{let t=()=>{if(rr.get(e)===t){if(rr.delete(e),or(e.props)){let t=v(e.el)||n;x(e,t,e.anchor),hr(e,!0)}S(e)}};rr.set(e,t),Ta(t,a)};if(e==null){let e=t.el=h(``),i=t.anchor=h(``);if(p(e,n,r),p(i,n,r),sr(t.props)||a&&a.pendingBranch){C(t);return}y&&(x(t,n,i),hr(t,!0)),S()}else{t.el=e.el;let r=t.anchor=e.anchor,u=rr.get(e);if(u){u.flags|=8,rr.delete(e),C(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=or(e.props),v=g?n:p,x=g?r:h;if(o===`svg`||cr(p)?o=`svg`:(o===`mathml`||lr(p))&&(o=`mathml`),b?(f(e.dynamicChildren,b,v,i,a,o,s),ja(e,t,!0)):c||d(e,t,v,x,i,a,o,s,!1),y)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):fr(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=ur(t.props,m);e&&(t.target=e,fr(t,e,null,l,0))}else g&&fr(t,p,h,l,1);hr(t,y)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e,p=or(f),m=a||!p,h=rr.get(e);if(h&&(h.flags|=8,rr.delete(e)),d&&(i(l),i(u)),a&&i(c),!h&&(p||d)&&o&16)for(let e=0;e<s.length;e++){let i=s[e];r(i,t,n,m,!!i.dynamicChildren)}},move:fr,hydrate:pr};function fr(e,t,n,{o:{insert:r},m:i},a=2){a===0&&r(e.targetAnchor,t,n);let{el:o,anchor:s,shapeFlag:c,children:l,props:u}=e,d=a===2;if(d&&r(o,t,n),!rr.has(e)&&(!d||or(u))&&c&16)for(let e=0;e<l.length;e++)i(l[e],t,n,2);d&&r(s,t,n)}function pr(e,t,n,r,i,a,{o:{nextSibling:o,parentNode:s,querySelector:c,insert:l,createText:u}},d){function f(e,n){let r=n;for(;r;){if(r&&r.nodeType===8){if(r.data===`teleport start anchor`)t.targetStart=r;else if(r.data===`teleport anchor`){t.targetAnchor=r,e._lpa=t.targetAnchor&&o(t.targetAnchor);break}}r=o(r)}}function p(e,t){t.anchor=d(o(e),t,s(e),n,r,i,a)}let m=t.target=ur(t.props,c),h=or(t.props);if(m){let c=m._lpa||m.firstChild;t.shapeFlag&16&&(h?(p(e,t),f(m,c),t.targetAnchor||gr(m,t,u,l,s(e)===m?e:null)):(t.anchor=o(e),f(m,c),t.targetAnchor||gr(m,t,u,l),d(c&&o(c),t,m,n,r,i,a))),hr(t,h)}else h&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}var mr=dr;function hr(e,t){let n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute(`data-v-owner`,n.uid),r=r.nextSibling;n.ut()}}function gr(e,t,n,r,i=null){let a=t.targetStart=n(``),o=t.targetAnchor=n(``);return a[ir]=o,e&&(r(a,e,i),r(o,e,i)),o}var _r=Symbol(`_leaveCb`),vr=Symbol(`_enterCb`);function yr(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ti(()=>{e.isMounted=!0}),ii(()=>{e.isUnmounting=!0}),e}var br=[Function,Array],xr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:br,onEnter:br,onAfterEnter:br,onEnterCancelled:br,onBeforeLeave:br,onLeave:br,onAfterLeave:br,onLeaveCancelled:br,onBeforeAppear:br,onAppear:br,onAfterAppear:br,onAppearCancelled:br},Sr=e=>{let t=e.subTree;return t.component?Sr(t.component):t},Cr={name:`BaseTransition`,props:xr,setup(e,{slots:t}){let n=fo(),r=yr();return()=>{let i=t.default&&jr(t.default(),!0),a=i&&i.length?wr(i):n.subTree?K():void 0;if(!a)return;let o=tn(e),{mode:s}=o;if(r.isLeaving)return Or(a);let c=kr(a);if(!c)return Or(a);let l=Dr(c,o,r,n,e=>l=e);c.type!==za&&Ar(c,l);let u=n.subTree&&kr(n.subTree);if(u&&u.type!==za&&!Ja(u,c)&&Sr(n).type!==za){let e=Dr(u,o,r,n);if(Ar(u,e),s===`out-in`&&c.type!==za)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},Or(a);s===`in-out`&&c.type!==za?e.delayLeave=(e,t,n)=>{let i=Er(r,u);i[String(u.key)]=u,e[_r]=()=>{t(),e[_r]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function wr(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==za){t=n;break}}return t}var Tr=Cr;function Er(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Dr(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:p,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:v,onAppear:y,onAfterAppear:b,onAppearCancelled:x}=t,S=String(e.key),C=Er(n,e),w=(e,t)=>{e&&Tn(e,r,9,t)},T=(e,t)=>{let n=t[1];w(e,t),m(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},E={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted){if(a)r=v||c;else return}t[_r]&&t[_r](!0);let i=C[S];i&&Ja(e,i)&&i.el[_r]&&i.el[_r](),w(r,[t])},enter(t){if(C[S]===e)return;let r=l,i=u,o=d;if(!n.isMounted){if(a)r=y||l,i=b||u,o=x||d;else return}let s=!1;t[vr]=e=>{s||(s=!0,w(e?o:i,[t]),E.delayedLeave&&E.delayedLeave(),t[vr]=void 0)};let c=t[vr].bind(null,!1);r?T(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[vr]&&t[vr](!0),n.isUnmounting)return r();w(f,[t]);let a=!1;t[_r]=n=>{a||(a=!0,r(),w(n?g:h,[t]),t[_r]=void 0,C[i]===e&&delete C[i])};let o=t[_r].bind(null,!1);C[i]=e,p?T(p,[t,o]):o()},clone(e){let a=Dr(e,t,n,r,i);return i&&i(a),a}};return E}function Or(e){if(Ur(e))return e=$a(e),e.children=null,e}function kr(e){if(!Ur(e))return ar(e.type)&&e.children?wr(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&b(n.default))return n.default()}}function Ar(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;Ar(ar(n.type)&&kr(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function jr(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a],s=n==null?o.key:String(n)+String(o.key==null?a:o.key);o.type===B?(o.patchFlag&128&&i++,r=r.concat(jr(o.children,t,s))):(t||o.type!==za)&&r.push(s==null?o:$a(o,{key:s}))}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function L(e,t){return b(e)?u({name:e.name},t,{setup:e}):e}function Mr(e){e.ids=[e.ids[0]+e.ids[2]+++`-`,0,0]}function Nr(e){let t=fo(),n=sn(null);if(t){let r=t.refs===i?t.refs={}:t.refs;Object.defineProperty(r,e,{enumerable:!0,get:()=>n.value,set:e=>n.value=e})}return n}function Pr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var Fr=new WeakMap;function Ir(e,t,n,r,a=!1){if(m(e)){e.forEach((e,i)=>Ir(e,t&&(m(t)?t[i]:t),n,r,a));return}if(Br(r)&&!a){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Ir(e,t,n,r.component.subTree);return}let o=r.shapeFlag&4?To(r.component):r.el,c=a?null:o,{i:l,r:u}=e,f=t&&t.r,h=l.refs===i?l.refs={}:l.refs,g=l.setupState,v=tn(g),y=g===i?s:e=>!Pr(h,e)&&p(v,e),S=(e,t)=>!(t&&Pr(h,t));if(f!=null&&f!==u){if(Lr(t),x(f))h[f]=null,y(f)&&(g[f]=null);else if(on(f)){let e=t;S(f,e.k)&&(f.value=null),e.k&&(h[e.k]=null)}}if(b(u))wn(u,l,12,[c,h]);else{let t=x(u),r=on(u);if(t||r){let i=()=>{if(e.f){let n=t?y(u)?g[u]:h[u]:S(u)||!e.k?u.value:h[e.k];if(a)m(n)&&d(n,o);else if(m(n))n.includes(o)||n.push(o);else if(t)h[u]=[o],y(u)&&(g[u]=h[u]);else{let t=[o];S(u,e.k)&&(u.value=t),e.k&&(h[e.k]=t)}}else t?(h[u]=c,y(u)&&(g[u]=c)):r&&(S(u,e.k)&&(u.value=c),e.k&&(h[e.k]=c))};if(c){let t=()=>{i(),Fr.delete(e)};t.id=-1,Fr.set(e,t),Ta(t,n)}else Lr(e),i()}}}function Lr(e){let t=Fr.get(e);t&&(t.flags|=8,Fr.delete(e))}var Rr=e=>e.nodeType===8;he().requestIdleCallback,he().cancelIdleCallback;function zr(e,t){if(Rr(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Rr(r)){if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++}r=r.nextSibling}}else t(e)}var Br=e=>!!e.type.__asyncLoader;function Vr(e){b(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:c}=e,l=null,u,d=0,f=()=>(d++,l=null,p()),p=()=>{let e;
vendor: 5,745 bytes, line 1
1return l||(e=l=t().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),c)return new Promise((t,n)=>{c(e,()=>t(f()),()=>n(e),d+1)});throw e}).then(t=>e!==l&&l?l:(t&&(t.__esModule||t[Symbol.toStringTag]===`Module`)&&(t=t.default),u=t,t)))};return L({name:`AsyncComponentWrapper`,__asyncLoader:p,__asyncHydrate(e,t,n){let r=e.isConnected,i=!1;(t.bu||=[]).push(()=>i=!0);let o=()=>{i||!e.parentNode||r&&!e.isConnected||n()},s=a?()=>{let n=a(o,t=>zr(e,t));n&&(t.bum||=[]).push(n)}:o;u?s():p().then(()=>!t.isUnmounted&&s())},get __asyncResolved(){return u},setup(){let e=uo;if(Mr(e),u)return()=>Hr(u,e);let t=t=>{l=null,En(t,e,13,!r)};if(s&&e.suspense||vo)return p().then(t=>()=>Hr(t,e)).catch(e=>(t(e),()=>r?G(r,{error:e}):null));let a=j(!1),c=j(),d=j(!!i),f,m;return ai(()=>{f!=null&&clearTimeout(f),m!=null&&clearTimeout(m)}),i&&(m=setTimeout(()=>{e.isUnmounted||(d.value=!1)},i)),o!=null&&(f=setTimeout(()=>{if(!e.isUnmounted&&!a.value&&!c.value){let e=Error(`Async component timed out after ${o}ms.`);t(e),c.value=e}},o)),p().then(()=>{e.isUnmounted||(a.value=!0,e.parent&&Ur(e.parent.vnode)&&e.parent.update())}).catch(n=>{if(e.isUnmounted){l=null;return}t(n),c.value=n}),()=>{if(a.value&&u)return Hr(u,e);if(c.value&&r)return G(r,{error:c.value});if(n&&!d.value)return Hr(n,e)}}})}function Hr(e,t){let{ref:n,props:r,children:i,ce:a}=t.vnode,o=G(e,r,i);return o.ref=n,o.ce=a,delete t.vnode.ce,o}var Ur=e=>e.type.__isKeepAlive,Wr={name:`KeepAlive`,__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let n=fo(),r=n.ctx;if(!r.renderer)return()=>{let e=t.default&&t.default();return e&&e.length===1?e[0]:e};let i=new Map,a=new Set,o=null,s=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:d}}}=r,f=d(`div`);r.activate=(e,t,n,r,i)=>{let a=e.component;l(e,t,n,0,s),c(a.vnode,e,t,n,a,s,r,e.slotScopeIds,i),Ta(()=>{a.isDeactivated=!1,a.a&&ue(a.a);let t=e.props&&e.props.onVnodeMounted;t&&oo(t,a.parent,e)},s)},r.deactivate=e=>{let t=e.component;Pa(t.m),Pa(t.a),l(e,f,null,1,s),Ta(()=>{t.da&&ue(t.da);let n=e.props&&e.props.onVnodeUnmounted;n&&oo(n,t.parent,e),t.isDeactivated=!0},s)};function p(e){Xr(e),u(e,n,s,!0)}function m(e){i.forEach((t,n)=>{let r=Eo(Br(t)?t.type.__asyncResolved||{}:t.type);r&&!e(r)&&h(n)})}function h(e){let t=i.get(e);t&&(!o||!Ja(t,o))?p(t):o&&Xr(o),i.delete(e),a.delete(e)}I(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>Gr(e,t)),t&&m(e=>!Gr(t,e))},{flush:`post`,deep:!0});let g=null,v=()=>{g!=null&&(Ia(n.subTree.type)?Ta(()=>{let e=Zr(n.subTree);e.component&&i.set(g,e)},n.subTree.suspense):i.set(g,Zr(n.subTree)))};return ti(v),ri(v),ii(()=>{i.forEach(e=>{let{subTree:t,suspense:r}=n,i=Zr(t);if(e.type===i.type&&e.key===i.key){Xr(i);let e=i.component.da;e&&Ta(e,r);return}p(e)})}),()=>{if(g=null,!t.default)return o=null;let n=t.default(),r=n[0];if(n.length>1)return o=null,n;if(!qa(r)||!(r.shapeFlag&4)&&!(r.shapeFlag&128))return o=null,r;let s=Zr(r);if(s.type===za)return o=null,s;let c=s.type,l=Eo(Br(s)?s.type.__asyncResolved||{}:c),{include:u,exclude:d,max:f}=e;if(u&&(!l||!Gr(u,l))||d&&l&&Gr(d,l))return s.shapeFlag&=-257,o=s,r;let p=s.key==null?c:s.key,m=i.get(p);return s.el&&(s=$a(s),r.shapeFlag&128&&(r.ssContent=s)),g=p,m?(s.el=m.el,s.component=m.component,s.transition&&Ar(s,s.transition),s.shapeFlag|=512,a.delete(p),a.add(p)):(a.add(p),f&&a.size>parseInt(f,10)&&h(a.values().next().value)),s.shapeFlag|=256,o=s,Ia(r.type)?r:s}}};function Gr(e,t){return m(e)?e.some(e=>Gr(e,t)):x(e)?e.split(`,`).includes(t):y(e)?(e.lastIndex=0,e.test(t)):!1}function Kr(e,t){Jr(e,`a`,t)}function qr(e,t){Jr(e,`da`,t)}function Jr(e,t,n=uo){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(Qr(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Ur(e.parent.vnode)&&Yr(r,t,n,e),e=e.parent}}function Yr(e,t,n,r){let i=Qr(t,e,r,!0);ai(()=>{d(r[t],i)},n)}function Xr(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Zr(e){return e.shapeFlag&128?e.ssContent:e}function Qr(e,t,n=uo,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{et();let i=ho(n),a=Tn(t,n,e,r);return i(),tt(),a};return r?i.unshift(a):i.push(a),a}}var $r=e=>(t,n=uo)=>{(!vo||e===`sp`)&&Qr(e,(...e)=>t(...e),n)},ei=$r(`bm`),ti=$r(`m`),ni=$r(`bu`),ri=$r(`u`),ii=$r(`bum`),ai=$r(`um`),oi=$r(`sp`),si=$r(`rtg`),ci=$r(`rtc`);function li(e,t=uo){Qr(`ec`,e,t)}var ui=`components`,di=`directives`;function fi(e,t){return gi(ui,e,!0,t)||e}var pi=Symbol.for(`v-ndc`);function mi(e){return x(e)?gi(ui,e,!1)||e:e||pi}function hi(e){return gi(di,e)}function gi(e,t,n=!0,r=!1){let i=Wn||uo;if(i){let n=i.type;if(e===ui){let e=Eo(n,!1);if(e&&(e===t||e===ae(t)||e===se(ae(t))))return n}let a=_i(i[e]||n[e],t)||_i(i.appContext[e],t);return!a&&r?n:a}}function _i(e,t){return e&&(e[t]||e[ae(t)]||e[se(ae(t))])}function vi(e,t,n,r){let i,a=n&&n[r],o=m(e);if(o||x(e)){let n=o&&Zt(e),r=!1,s=!1;n&&(r=!$t(e),s=Qt(e),e=ht(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?an(rn(e[n])):rn(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}else if(C(e)){if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r<o;r++){let o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}}else i=[];return n&&(n[r]=i),i}function yi(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(m(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function R(e,t,n,r,i,a){if(n??={},Wn.ce||Wn.parent&&Br(Wn.parent)&&Wn.parent.ce){let e=a!=null&&n.key==null?u({},n,{key:a}):n,i=Object.keys(e).length>0;return t!=="default"&&(e.name=t),V(),U(B,null,[G(`slot`,e,r&&r())],i?-2:64)}
vendor: 28,931 bytes, line 1
1let o=e[t];o&&o._c&&(o._d=!1);let s=Va.length;V();let c;try{let i=o&&bi(o(n)),s=n.key||a||i&&i.key;c=U(B,{key:(s&&!S(s)?s:`_${t}`)+(!i&&r?`_fb`:``)},i||(r?r():[]),i&&e._===1?64:-2)}catch(e){for(let e=Va.length;e>s;e--)Ua();throw e}finally{o&&o._c&&(o._d=!0)}return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),c}function bi(e){return e.some(e=>!qa(e)||!(e.type===za||e.type===B&&!bi(e.children)))?e:null}function xi(e,t){let n={};for(let r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:ce(r)]=e[r];return n}var Si=e=>e?_o(e)?To(e):Si(e.parent):null,Ci=u(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Si(e.parent),$root:e=>Si(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Fi(e),$forceUpdate:e=>e.f||=()=>{Ln(e.update)},$nextTick:e=>e.n||=Fn.bind(e.proxy),$watch:e=>tr.bind(e)}),wi=(e,t)=>e!==i&&!e.__isScriptSetup&&p(e,t),Ti={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:n,setupState:r,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(t[0]!==`$`){let e=s[t];if(e!==void 0)switch(e){case 1:return r[t];case 2:return a[t];case 4:return n[t];case 3:return o[t]}else if(wi(r,t))return s[t]=1,r[t];else if(a!==i&&p(a,t))return s[t]=2,a[t];else if(p(o,t))return s[t]=3,o[t];else if(n!==i&&p(n,t))return s[t]=4,n[t];else Ai&&(s[t]=0)}let u=Ci[t],d,f;if(u)return t===`$attrs`&&dt(e.attrs,`get`,``),u(e);if((d=c.__cssModules)&&(d=d[t]))return d;if(n!==i&&p(n,t))return s[t]=4,n[t];if(f=l.config.globalProperties,p(f,t))return f[t]},set({_:e},t,n){let{data:r,setupState:a,ctx:o}=e;return wi(a,t)?(a[t]=n,!0):r!==i&&p(r,t)?(r[t]=n,!0):p(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:a,props:o,type:s}},c){let l;return!!(n[c]||e!==i&&c[0]!==`$`&&p(e,c)||wi(t,c)||p(o,c)||p(r,c)||p(Ci,c)||p(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?p(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function Ei(){return Oi(`useSlots`).slots}function Di(){return Oi(`useAttrs`).attrs}function Oi(e){let t=fo();return t.setupContext||=wo(t)}function ki(e){return m(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function z(e,t){let n=ki(e);for(let e in t){if(e.startsWith(`__skip`))continue;let r=n[e];r?m(r)||b(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:r===null&&(r=n[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n}var Ai=!0;function ji(e){let t=Fi(e),n=e.proxy,r=e.ctx;Ai=!1,t.beforeCreate&&Ni(t.beforeCreate,e,`bc`);let{data:i,computed:a,methods:s,watch:c,provide:l,inject:u,created:d,beforeMount:f,mounted:p,beforeUpdate:h,updated:g,activated:v,deactivated:y,beforeDestroy:x,beforeUnmount:S,destroyed:w,unmounted:T,render:E,renderTracked:D,renderTriggered:ee,errorCaptured:te,serverPrefetch:ne,expose:re,inheritAttrs:ie,components:ae,directives:oe,filters:O}=t;if(u&&Mi(u,r,null),s)for(let e in s){let t=s[e];b(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);C(t)&&(e.data=qt(t))}if(Ai=!0,a)for(let e in a){let t=a[e],i=q({get:b(t)?t.bind(n,n):b(t.get)?t.get.bind(n,n):o,set:!b(t)&&b(t.set)?t.set.bind(n):o});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(c)for(let e in c)Pi(c[e],r,n,e);if(l){let e=b(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{Yn(t,e[t])})}d&&Ni(d,e,`c`);function se(e,t){m(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(se(ei,f),se(ti,p),se(ni,h),se(ri,g),se(Kr,v),se(qr,y),se(li,te),se(ci,D),se(si,ee),se(ii,S),se(ai,T),se(oi,ne),m(re)){if(re.length){let t=e.exposed||={};re.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={}}E&&e.render===o&&(e.render=E),ie!=null&&(e.inheritAttrs=ie),ae&&(e.components=ae),oe&&(e.directives=oe),ne&&Mr(e)}function Mi(e,t,n=o){m(e)&&(e=Bi(e));for(let n in e){let r=e[n],i;i=C(r)?`default`in r?F(r.from||n,r.default,!0):F(r.from||n):F(r),on(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function Ni(e,t,n){Tn(m(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Pi(e,t,n,r){let i=r.includes(`.`)?nr(n,r):()=>n[r];if(x(e)){let n=t[e];b(n)&&I(i,n)}else if(b(e))I(i,e.bind(n));else if(C(e)){if(m(e))e.forEach(e=>Pi(e,t,n,r));else{let r=b(e.handler)?e.handler.bind(n):t[e.handler];b(r)&&I(i,r,e)}}}function Fi(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>Ii(c,e,o,!0)),Ii(c,t,o)),C(t)&&a.set(t,c),c}function Ii(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Ii(e,a,n,!0),i&&i.forEach(t=>Ii(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=Li[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var Li={data:Ri,props:Ui,emits:Ui,methods:Hi,computed:Hi,beforeCreate:Vi,created:Vi,beforeMount:Vi,mounted:Vi,beforeUpdate:Vi,updated:Vi,beforeDestroy:Vi,beforeUnmount:Vi,destroyed:Vi,unmounted:Vi,activated:Vi,deactivated:Vi,errorCaptured:Vi,serverPrefetch:Vi,components:Hi,directives:Hi,watch:Wi,provide:Ri,inject:zi};function Ri(e,t){return t?e?function(){return u(b(e)?e.call(this,this):e,b(t)?t.call(this,this):t)}:t:e}function zi(e,t){return Hi(Bi(e),Bi(t))}function Bi(e){if(m(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Vi(e,t){return e?[...new Set([].concat(e,t))]:t}function Hi(e,t){return e?u(Object.create(null),e,t):t}function Ui(e,t){return e?m(e)&&m(t)?[...new Set([...e,...t])]:u(Object.create(null),ki(e),ki(t??{})):t}function Wi(e,t){if(!e)return t;if(!t)return e;let n=u(Object.create(null),e);for(let r in t)n[r]=Vi(e[r],t[r]);return n}function Gi(){return{app:null,config:{isNativeTag:s,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var Ki=0;function qi(e,t){return function(n,r=null){b(n)||(n=u({},n)),r!=null&&!C(r)&&(r=null);let i=Gi(),a=new WeakSet,o=[],s=!1,c=i.app={_uid:Ki++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:ko,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&b(e.install)?(a.add(e),e.install(c,...t)):b(e)&&(a.add(e),e(c,...t))),c},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),c},component(e,t){return t?(i.components[e]=t,c):i.components[e]},directive(e,t){return t?(i.directives[e]=t,c):i.directives[e]},mount(a,o,l){if(!s){let u=c._ceVNode||G(n,r);return u.appContext=i,l===!0?l=`svg`:l===!1&&(l=void 0),o&&t?t(u,a):e(u,a,l),s=!0,c._container=a,a.__vue_app__=c,To(u.component)}},onUnmount(e){o.push(e)},unmount(){s&&(Tn(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(e,t){return i.provides[e]=t,c},runWithContext(e){let t=Ji;Ji=c;try{return e()}finally{Ji=t}}};return c}}var Ji=null,Yi=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${ae(t)}Modifiers`]||e[`${O(t)}Modifiers`];function Xi(e,t,...n){if(e.isUnmounted)return;let r=e.vnode.props||i,a=n,o=t.startsWith(`update:`),s=o&&Yi(r,t.slice(7));s&&(s.trim&&(a=n.map(e=>x(e)?e.trim():e)),s.number&&(a=a.map(fe)));let c,l=r[c=ce(t)]||r[c=ce(ae(t))];!l&&o&&(l=r[c=ce(O(t))]),l&&Tn(l,e,6,a);let u=r[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Tn(u,e,6,a)}}var Zi=new WeakMap;function Qi(e,t,n=!1){let r=n?Zi:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!b(e)){let r=e=>{let n=Qi(e,t,!0);n&&(s=!0,u(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(C(e)&&r.set(e,null),null):(m(a)?a.forEach(e=>o[e]=null):u(o,a),C(e)&&r.set(e,o),o)}function $i(e,t){return!e||!c(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),p(e,t[0].toLowerCase()+t.slice(1))||p(e,O(t))||p(e,t))}function ea(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:c,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,v=Kn(e),y,b;try{if(n.shapeFlag&4){let e=i||r,t=e;y=no(u.call(t,e,d,f,m,p,h)),b=s}else{let e=t;y=no(e.length>1?e(f,{attrs:s,slots:o,emit:c}):e(f,null)),b=t.props?s:ta(s)}}catch(t){Va.length=0,En(t,e,1),y=G(za)}let x=y;if(b&&g!==!1){let e=Object.keys(b),{shapeFlag:t}=x;e.length&&t&7&&(a&&e.some(l)&&(b=na(b,a)),x=$a(x,b,!1,!0))}return n.dirs&&(x=$a(x,null,!1,!0),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&Ar(ar(x.type)&&kr(x)||x,n.transition),y=x,Kn(v),y}var ta=e=>{let t;for(let n in e)(n===`class`||n===`style`||c(n))&&((t||={})[n]=e[n]);return t},na=(e,t)=>{let n={};for(let r in e)(!l(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function ra(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?ia(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(aa(o,r,n)&&!$i(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?!o||ia(r,o,l):!!o;return!1}function ia(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(aa(t,e,a)&&!$i(n,a))return!0}return!1}function aa(e,t,n){let r=e[n],i=t[n];return n===`style`&&C(r)&&C(i)?!De(r,i):r!==i}function oa({vnode:e,parent:t,suspense:n},r){for(;t;){let n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}var sa={},ca=()=>Object.create(sa),la=e=>Object.getPrototypeOf(e)===sa;function ua(e,t,n,r=!1){let i={},a=ca();e.propsDefaults=Object.create(null),fa(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:Jt(i):e.type.props?i:a,e.attrs=a}function da(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=tn(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if($i(e.emitsOptions,o))continue;let u=t[o];if(c){if(p(a,o))u!==a[o]&&(a[o]=u,l=!0);else{let t=ae(o);i[t]=pa(c,s,t,u,e,!1)}}else u!==a[o]&&(a[o]=u,l=!0)}}}else{fa(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!p(t,a)&&((r=O(a))===a||!p(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=pa(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!p(t,e))&&(delete a[e],l=!0)}l&&ft(e.attrs,`set`,``)}function fa(e,t,n,r){let[a,o]=e.propsOptions,s=!1,c;if(t)for(let i in t){if(ne(i))continue;let l=t[i],u;a&&p(a,u=ae(i))?!o||!o.includes(u)?n[u]=l:(c||={})[u]=l:$i(e.emitsOptions,i)||(!(i in r)||l!==r[i])&&(r[i]=l,s=!0)}if(o){let t=tn(n),r=c||i;for(let i=0;i<o.length;i++){let s=o[i];n[s]=pa(a,t,s,r[s],e,!p(r,s))}}return s}function pa(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=p(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&b(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=ho(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===O(n))&&(r=!0))}return r}var ma=new WeakMap;function ha(e,t,n=!1){let r=n?ma:t.propsCache,o=r.get(e);if(o)return o;let s=e.props,c={},l=[],d=!1;if(!b(e)){let r=e=>{d=!0;let[n,r]=ha(e,t,!0);u(c,n),r&&l.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!s&&!d)return C(e)&&r.set(e,a),a;if(m(s))for(let e=0;e<s.length;e++){let t=ae(s[e]);ga(t)&&(c[t]=i)}else if(s)for(let e in s){let t=ae(e);if(ga(t)){let n=s[e],r=c[t]=m(n)||b(n)?{type:n}:u({},n),i=r.type,a=!1,o=!0;if(m(i))for(let e=0;e<i.length;++e){let t=i[e],n=b(t)&&t.name;if(n===`Boolean`){a=!0;break}n===`String`&&(o=!1)}else a=b(i)&&i.name===`Boolean`;r[0]=a,r[1]=o,(a||p(r,`default`))&&l.push(t)}}let f=[c,l];return C(e)&&r.set(e,f),f}function ga(e){return e[0]!==`$`&&!ne(e)}var _a=e=>e===`_`||e===`_ctx`||e===`$stable`,va=e=>m(e)?e.map(no):[no(e)],ya=(e,t,n)=>{if(t._n)return t;let r=P((...e)=>va(t(...e)),n);return r._c=!1,r},ba=(e,t,n)=>{let r=e._ctx;for(let n in e){if(_a(n))continue;let i=e[n];if(b(i))t[n]=ya(n,i,r);else if(i!=null){let e=va(i);t[n]=()=>e}}},xa=(e,t)=>{let n=va(t);e.slots.default=()=>n},Sa=(e,t,n)=>{for(let r in t)(n||!_a(r))&&(e[r]=t[r])},Ca=(e,t,n)=>{let r=e.slots=ca();if(e.vnode.shapeFlag&32){let e=t._;e?(Sa(r,t,n),n&&de(r,`_`,e,!0)):ba(t,r)}else t&&xa(e,t)},wa=(e,t,n)=>{let{vnode:r,slots:a}=e,o=!0,s=i;if(r.shapeFlag&32){let e=t._;e?n&&e===1?o=!1:Sa(a,t,n):(o=!t.$stable,ba(t,a)),s=t}else t&&(xa(e,t),s={default:1});if(o)for(let e in a)!_a(e)&&s[e]==null&&delete a[e]},Ta=La;function Ea(e){return Da(e)}function Da(e,t){let n=he();n.__VUE__=!0;let{insert:r,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=o,insertStaticContent:v}=e,y=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Ja(e,t)&&(r=k(e),ge(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case Ra:b(e,t,n,r);break;case za:x(e,t,n,r);break;case Ba:e??S(t,n,r,o);break;case B:ae(e,t,n,r,i,a,o,s,c);break;default:d&1?T(e,t,n,r,i,a,o,s,c):d&6?oe(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,Ce)}u!=null&&i?Ir(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&Ir(e.ref,null,a,e,!0)},b=(e,t,n,i)=>{if(e==null)r(t.el=u(t.children),n,i);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},x=(e,t,n,i)=>{e==null?r(t.el=d(t.children||``),n,i):t.el=e.el},S=(e,t,n,r)=>{[e.el,e.anchor]=v(e.children,t,n,r,e.el,e.anchor)},C=({el:e,anchor:t},n,i)=>{let a;for(;e&&e!==t;)a=h(e),r(e,n,i),e=a;r(t,n,i)},w=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},T=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)E(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),te(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},E=(e,t,n,i,a,o,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:v}=e;if(d=e.el=l(e.type,o,m&&m.is,m),h&8?p(d,e.children):h&16&&ee(e.children,d,null,i,a,Oa(e,o),s,u),v&&Jn(e,null,i,`created`),D(d,e,e.scopeId,s,i),m){for(let e in m)e!==`value`&&!ne(e)&&c(d,e,null,m[e],o,i);`value`in m&&c(d,`value`,null,m.value,o),(f=m.onVnodeBeforeMount)&&oo(f,i,e)}v&&Jn(e,null,i,`beforeMount`);let y=Aa(a,g);y&&g.beforeEnter(d),r(d,t,n),((f=m&&m.onVnodeMounted)||y||v)&&Ta(()=>{try{f&&oo(f,i,e),y&&g.enter(d),v&&Jn(e,null,i,`mounted`)}finally{}},a)},D=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t<r.length;t++)g(e,r[t]);if(i){let n=i.subTree;if(t===n||Ia(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;D(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},ee=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++){let c=e[l]=s?ro(e[l]):no(e[l]);y(null,c,t,n,r,i,a,o,s)}},te=(e,t,n,r,a,o,s)=>{let l=t.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=t;u|=e.patchFlag&16;let m=e.props||i,h=t.props||i,g;if(n&&ka(n,!1),(g=h.onVnodeBeforeUpdate)&&oo(g,n,t,e),f&&Jn(t,e,n,`beforeUpdate`),n&&ka(n,!0),d&&(!e.dynamicChildren||e.dynamicChildren.length!==d.length)&&(u=0,s=!1,d=null),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?re(e.dynamicChildren,d,l,n,r,Oa(t,a),o):s||de(e,t,l,null,n,r,Oa(t,a),o,!1),u>0){if(u&16)ie(l,m,h,n,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let r=e[t],i=m[r],o=h[r];(o!==i||r===`value`)&&c(l,r,i,o,a,n)}}u&1&&e.children!==t.children&&p(l,t.children)}else!s&&d==null&&ie(l,m,h,n,a);((g=h.onVnodeUpdated)||f)&&Ta(()=>{g&&oo(g,n,t,e),f&&Jn(t,e,n,`updated`)},r)},re=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s],u=c.el&&(c.type===B||!Ja(c,l)||c.shapeFlag&198)?m(c.el):n;y(c,l,u,null,r,i,a,o,!0)}},ie=(e,t,n,r,a)=>{if(t!==n){if(t!==i)for(let i in t)!ne(i)&&!(i in n)&&c(e,i,t[i],null,a,r);for(let i in n){if(ne(i))continue;let o=n[i],s=t[i];o!==s&&i!==`value`&&c(e,i,s,o,a,r)}`value`in n&&c(e,`value`,t.value,n.value,a)}},ae=(e,t,n,i,a,o,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(r(d,n,i),r(f,n,i),ee(t.children||[],n,f,a,o,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(re(e.dynamicChildren,m,n,a,o,s,c),(t.key!=null||a&&t===a.subTree)&&ja(e,t,!0)):de(e,t,n,f,a,o,s,c,l)},oe=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):O(t,n,r,i,a,o,c):se(e,t,c)},O=(e,t,n,r,i,a,o)=>{let s=e.component=lo(e,r,i);if(Ur(e)&&(s.ctx.renderer=Ce),yo(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,ce,o),!e.el){let r=s.subTree=G(za);x(null,r,t,n),e.placeholder=r.el}}else ce(s,e,t,n,i,a,o)},se=(e,t,n)=>{let r=t.component=e.component;if(ra(e,t,n)){if(r.asyncDep&&!r.asyncResolved){le(r,t,n);return}r.next=t,r.update()}else t.el=e.el,r.vnode=t},ce=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=Na(e);if(n){t&&(t.el=c.el,le(e,t,o)),n.asyncDep.then(()=>{Ta(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;ka(e,!1),t?(t.el=c.el,le(e,t,o)):t=c,n&&ue(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&oo(d,s,t,c),ka(e,!0);let f=ea(e),p=e.subTree;e.subTree=f,y(p,f,m(p.el),k(p),e,i,a),t.el=f.el,u===null&&oa(e,f.el),r&&Ta(r,i),(d=t.props&&t.props.onVnodeUpdated)&&Ta(()=>oo(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Br(t);if(ka(e,!1),l&&ue(l),!m&&(o=c&&c.onVnodeBeforeMount)&&oo(o,d,t),ka(e,!0),s&&Te){let t=()=>{e.subTree=ea(e),Te(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=ea(e);y(null,o,n,r,e,i,a),t.el=o.el}if(u&&Ta(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;Ta(()=>oo(o,d,e),i)}(t.shapeFlag&256||d&&Br(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&Ta(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new ze(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>Ln(u),ka(e,!0),l()},le=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,da(e,t.props,r,n),wa(e,t.children,n),et(),Bn(e),tt()},de=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){pe(l,d,n,r,i,a,o,s,c);return}if(f&256){fe(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&be(l,i,a),d!==l&&p(n,d)):u&16?m&16?pe(l,d,n,r,i,a,o,s,c):be(l,i,a,!0):(u&8&&p(n,``),m&16&&ee(d,n,r,i,a,o,s,c))},fe=(e,t,n,r,i,o,s,c,l)=>{e||=a,t||=a;let u=e.length,d=t.length,f=Math.min(u,d),p=0;for(;p<f;p++){let r=t[p]=l?ro(t[p]):no(t[p]);y(e[p],r,n,null,i,o,s,c,l)}u>d?be(e,i,o,!0,!1,f):ee(t,n,r,i,o,s,c,l,f)},pe=(e,t,n,r,i,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let r=e[u],a=t[u]=l?ro(t[u]):no(t[u]);if(Ja(r,a))y(r,a,n,null,i,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let r=e[f],a=t[p]=l?ro(t[p]):no(t[p]);if(Ja(r,a))y(r,a,n,null,i,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,a=e<d?t[e].el:r;for(;u<=p;)y(null,t[u]=l?ro(t[u]):no(t[u]),n,a,i,o,s,c,l),u++}}else if(u>p)for(;u<=f;)ge(e[u],i,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?ro(t[u]):no(t[u]);e.key!=null&&g.set(e.key,u)}let v,b=0,x=p-h+1,S=!1,C=0,w=Array(x);for(u=0;u<x;u++)w[u]=0;for(u=m;u<=f;u++){let r=e[u];if(b>=x){ge(r,i,o,!0);continue}let a;if(r.key!=null)a=g.get(r.key);else for(v=h;v<=p;v++)if(w[v-h]===0&&Ja(r,t[v])){a=v;break}a===void 0?ge(r,i,o,!0):(w[a-h]=u+1,a>=C?C=a:S=!0,y(r,t[a],n,null,i,o,s,c,l),b++)}let T=S?Ma(w):a;for(v=T.length-1,u=x-1;u>=0;u--){let e=h+u,a=t[e],f=t[e+1],p=e+1<d?f.el||Fa(f):r;w[u]===0?y(null,a,n,p,i,o,s,c,l):S&&(v<0||u!==T[v]?me(a,n,p,2):v--)}}},me=(e,t,n,i,a=null)=>{let{el:o,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){me(e.component.subTree,t,n,i);return}if(d&128){e.suspense.move(t,n,i);return}if(d&64){c.move(e,t,n,Ce);return}if(c===B){r(o,t,n);for(let e=0;e<u.length;e++)me(u[e],t,n,i);r(e.anchor,t,n);return}if(c===Ba){C(e,t,n);return}if(i!==2&&d&1&&l){if(i===0)l.persisted&&!o[_r]?r(o,t,n):(l.beforeEnter(o),r(o,t,n),Ta(()=>l.enter(o),a));else{let{leave:i,delayLeave:a,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(o):r(o,t,n)},d=()=>{let e=o._isLeaving||!!o[_r];o._isLeaving&&o[_r](!0),l.persisted&&!e?u():i(o,()=>{u(),c&&c()})};a?a(o,u,d):d()}}else r(o,t,n)},ge=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&(et(),Ir(s,null,n,e,!0),tt()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!Br(e),v;if(g&&(v=o&&o.onVnodeBeforeUnmount)&&oo(v,t,e),u&6)ye(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Jn(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,Ce,r):l&&!l.hasOnce&&(a!==B||d>0&&d&64)?be(l,t,n,!1,!0):(a===B&&d&384||!i&&u&16)&&be(c,t,n),r&&_e(e)}let y=m!=null&&p==null;(g&&(v=o&&o.onVnodeUnmounted)||h||y)&&Ta(()=>{v&&oo(v,t,e),h&&Jn(e,null,t,`unmounted`),y&&(e.el=null)},n)},_e=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===B){ve(n,r);return}if(t===Ba){w(e);return}let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},ve=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},ye=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;Pa(c),Pa(l),r&&ue(r),i.stop(),a&&(a.flags|=8,ge(o,e,t,n)),s&&Ta(s,t),Ta(()=>{e.isUnmounted=!0},t)},be=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)ge(e[o],t,n,r,i)},k=e=>{if(e.shapeFlag&6)return k(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[ir];return n?h(n):t},xe=!1,Se=(e,t,n)=>{let r;e==null?t._vnode&&(ge(t._vnode,null,null,!0),r=t._vnode.component):y(t._vnode||null,e,t,null,null,null,n),t._vnode=e,xe||=(xe=!0,Bn(r),Vn(),!1)},Ce={p:y,um:ge,m:me,r:_e,mt:O,mc:ee,pc:de,pbc:re,n:k,o:e},we,Te;return t&&([we,Te]=t(Ce)),{render:Se,hydrate:we,createApp:qi(Se,we)}}function Oa({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function ka({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Aa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ja(e,t,n=!1){let r=e.children,i=t.children;if(m(r)&&m(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=ro(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&ja(t,a)),a.type===Ra&&(a.patchFlag===-1&&(a=i[e]=ro(a)),a.el=t.el),a.type===za&&!a.el&&(a.el=t.el)}}function Ma(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function Na(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Na(t)}function Pa(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Fa(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?Fa(t.subTree):null}var Ia=e=>e.__isSuspense;function La(e,t){t&&t.pendingBranch?m(e)?t.effects.push(...e):t.effects.push(e):zn(e)}var B=Symbol.for(`v-fgt`),Ra=Symbol.for(`v-txt`),za=Symbol.for(`v-cmt`),Ba=Symbol.for(`v-stc`),Va=[],Ha=null;function V(e=!1){Va.push(Ha=e?null:[])}function Ua(){Va.pop(),Ha=Va[Va.length-1]||null}var Wa=1;function Ga(e,t=!1){Wa+=e,e<0&&Ha&&t&&(Ha.hasOnce=!0)}function Ka(e){return e.dynamicChildren=Wa>0?Ha||a:null,Ua(),Wa>0&&Ha&&Ha.push(e),e}function H(e,t,n,r,i,a){return Ka(W(e,t,n,r,i,a,!0))}function U(e,t,n,r,i){return Ka(G(e,t,n,r,i,!0))}function qa(e){return e?e.__v_isVNode===!0:!1}function Ja(e,t){return e.type===t.type&&e.key===t.key}var Ya=({key:e})=>e??null,Xa=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:x(e)||on(e)||b(e)?{i:Wn,r:e,k:t,f:!!n}:e);function W(e,t=null,n=null,r=0,i=null,a=e===B?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ya(t),ref:t&&Xa(t),scopeId:Gn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Wn};return s?(io(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=x(n)?8:16),Wa>0&&!o&&Ha&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Ha.push(c),c}var G=Za;function Za(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===pi)&&(e=za),qa(e)){let r=$a(e,t,!0);return n&&io(r,n),Wa>0&&!a&&Ha&&(r.shapeFlag&6?Ha[Ha.indexOf(e)]=r:Ha.push(r)),r.patchFlag=-2,r}if(Do(e)&&(e=e.__vccOpts),t){t=Qa(t);let{class:e,style:n}=t;e&&!x(e)&&(t.class=k(e)),C(n)&&(en(n)&&!m(n)&&(n=u({},n)),t.style=ge(n))}let o=x(e)?1:Ia(e)?128:ar(e)?64:C(e)?4:b(e)?2:0;return W(e,t,n,r,i,o,a,!0)}function Qa(e){return e?en(e)||la(e)?u({},e):e:null}function $a(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?ao(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Ya(l),ref:t&&t.ref?n&&a?m(a)?a.concat(Xa(t)):[a,Xa(t)]:Xa(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==B?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&$a(e.ssContent),ssFallback:e.ssFallback&&$a(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Ar(u,c.clone(u)),u}function eo(e=` `,t=0){return G(Ra,null,e,t)}function to(e,t){let n=G(Ba,null,e);return n.staticCount=t,n}function K(e=``,t=!1){return t?(V(),U(za,null,e)):G(za,null,e)}function no(e){return e==null||typeof e==`boolean`?G(za):m(e)?G(B,null,e.slice()):qa(e)?ro(e):G(Ra,null,String(e))}function ro(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:$a(e)}function io(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(m(t))n=16;else if(typeof t==`object`){if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),io(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;!r&&!la(t)?t._ctx=Wn:r===3&&Wn&&(Wn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}}else if(b(t)){if(r&65){io(e,{default:t});return}t={default:t,_ctx:Wn},n=32}else t=String(t),r&64?(n=16,t=[eo(t)]):n=8;e.children=t,e.shapeFlag|=n}function ao(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=k([t.class,r.class]));else if(e===`style`)t.style=ge([t.style,r.style]);else if(c(e)){let n=t[e],i=r[e];i&&n!==i&&!(m(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!l(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function oo(e,t,n,r=null){Tn(e,t,7,[n,r])}var so=Gi(),co=0;function lo(e,t,n){let r=e.type,a=(t?t.appContext:e.appContext)||so,o={uid:co++,vnode:e,type:r,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ne(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),ids:t?t.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ha(r,a),emitsOptions:Qi(r,a),emit:null,emitted:null,propsDefaults:i,inheritAttrs:r.inheritAttrs,ctx:i,data:i,props:i,attrs:i,slots:i,refs:i,setupState:i,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Xi.bind(null,o),e.ce&&e.ce(o),o}var uo=null,fo=()=>uo||Wn,po,mo;{let e=he(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};po=t(`__VUE_INSTANCE_SETTERS__`,e=>uo=e),mo=t(`__VUE_SSR_SETTERS__`,e=>vo=e)}var ho=e=>{let t=uo;return po(e),e.scope.on(),()=>{e.scope.off(),po(t)}},go=()=>{uo&&uo.scope.off(),po(null)};function _o(e){return e.vnode.shapeFlag&4}var vo=!1;function yo(e,t=!1,n=!1){t&&mo(t);let{props:r,children:i}=e.vnode,a=_o(e);ua(e,r,a,t),Ca(e,i,n||t);let o=a?bo(e,t):void 0;return t&&mo(!1),o}function bo(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ti);let{setup:r}=n;if(r){et();let n=e.setupContext=r.length>1?wo(e):null,i=ho(e),a=wn(r,e,0,[e.props,n]),o=w(a);if(tt(),i(),(o||e.sp)&&!Br(e)&&Mr(e),o){if(a.then(go,go),t)return a.then(n=>{mo(!0);try{xo(e,n,t)}finally{mo(!1)}}).catch(t=>{En(t,e,0)});e.asyncDep=a}else xo(e,a,t)}else So(e,t)}
vendor: 1,664 bytes, line 1
1function xo(e,t,n){b(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:C(t)&&(e.setupState=dn(t)),So(e,n)}function So(e,t,n){let r=e.type;e.render||=r.render||o;{let t=ho(e);et();try{ji(e)}finally{tt(),t()}}}var Co={get(e,t){return dt(e,`get`,``),e[t]}};function wo(e){return{attrs:new Proxy(e.attrs,Co),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function To(e){return e.exposed?e.exposeProxy||=new Proxy(dn(nn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ci)return Ci[n](e)},has(e,t){return t in e||t in Ci}}):e.proxy}function Eo(e,t=!0){return b(e)?e.displayName||e.name:e.name||t&&e.__name}function Do(e){return b(e)&&`__vccOpts`in e}var q=(e,t)=>_n(e,t,vo);function Oo(e,t,n){try{Ga(-1);let r=arguments.length;return r===2?C(t)&&!m(t)?qa(t)?G(e,null,[t]):G(e,t):G(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&qa(n)&&(n=[n]),G(e,t,n))}finally{Ga(1)}}var ko=`3.5.42`,Ao=void 0,jo=typeof window<`u`&&window.trustedTypes;if(jo)try{Ao=jo.createPolicy(`vue`,{createHTML:e=>e})}catch{}var Mo=Ao?e=>Ao.createHTML(e):e=>e,No=`http://www.w3.org/2000/svg`,Po=`http://www.w3.org/1998/Math/MathML`,Fo=typeof document<`u`?document:null,Io=Fo&&Fo.createElement(`template`),Lo={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?Fo.createElementNS(No,e):t===`mathml`?Fo.createElementNS(Po,e):n?Fo.createElement(e,{is:n}):Fo.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>Fo.createTextNode(e),createComment:e=>Fo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>
vendor: 8,617 bytes, line 1
1{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Fo.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==a&&(i=i.nextSibling););else{Io.innerHTML=Mo(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=Io.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ro=`transition`,zo=`animation`,Bo=Symbol(`_vtc`),Vo={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ho=u({},xr,Vo),Uo=(e=>(e.displayName=`Transition`,e.props=Ho,e))((e,{slots:t})=>Oo(Tr,Ko(e),t)),Wo=(e,t=[])=>{m(e)?e.forEach(e=>e(...t)):e&&e(...t)},Go=e=>e?m(e)?e.some(e=>e.length>1):e.length>1:!1;function Ko(e){let t={};for(let n in e)n in Vo||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:d=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,h=qo(i),g=h&&h[0],v=h&&h[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:x,onLeave:S,onLeaveCancelled:C,onBeforeAppear:w=y,onAppear:T=b,onAppearCancelled:E=x}=t,D=(e,t,n,r)=>{e._enterCancelled=r,Xo(e,t?d:s),Xo(e,t?l:o),n&&n()},ee=(e,t)=>{e._isLeaving=!1,Xo(e,f),Xo(e,m),Xo(e,p),t&&t()},te=e=>(t,n)=>{let i=e?T:b,o=()=>D(t,e,n);Wo(i,[t,o]),Zo(()=>{Xo(t,e?c:a),Yo(t,e?d:s),Go(i)||$o(t,r,g,o)})};return u(t,{onBeforeEnter(e){Wo(y,[e]),Yo(e,a),Yo(e,o)},onBeforeAppear(e){Wo(w,[e]),Yo(e,c),Yo(e,l)},onEnter:te(!1),onAppear:te(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>ee(e,t);Yo(e,f),e._enterCancelled?(Yo(e,p),rs(e)):(rs(e),Yo(e,p)),Zo(()=>{e._isLeaving&&(Xo(e,f),Yo(e,m),Go(S)||$o(e,r,v,n))}),Wo(S,[e,n])},onEnterCancelled(e){D(e,!1,void 0,!0),Wo(x,[e])},onAppearCancelled(e){D(e,!0,void 0,!0),Wo(E,[e])},onLeaveCancelled(e){ee(e),Wo(C,[e])}})}function qo(e){if(e==null)return null;if(C(e))return[Jo(e.enter),Jo(e.leave)];{let t=Jo(e);return[t,t]}}function Jo(e){return pe(e)}function Yo(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[Bo]||(e[Bo]=new Set)).add(t)}function Xo(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[Bo];n&&(n.delete(t),n.size||(e[Bo]=void 0))}function Zo(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Qo=0;function $o(e,t,n,r){let i=e._endId=++Qo,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=es(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function es(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${Ro}Delay`),a=r(`${Ro}Duration`),o=ts(i,a),s=r(`${zo}Delay`),c=r(`${zo}Duration`),l=ts(s,c),u=null,d=0,f=0;t===Ro?o>0&&(u=Ro,d=o,f=a.length):t===zo?l>0&&(u=zo,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?Ro:zo:null,f=u?u===Ro?a.length:c.length:0);let p=u===Ro&&/\b(?:transform|all)(?:,|$)/.test(r(`${Ro}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function ts(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>ns(t)+ns(e[n])))}function ns(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function rs(e){return(e?e.ownerDocument:document).body.offsetHeight}function is(e,t,n){let r=e[Bo];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var as=Symbol(`_vod`),os=Symbol(`_vsh`),ss={name:`show`,beforeMount(e,{value:t},{transition:n}){e[as]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):cs(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),cs(e,!0),r.enter(e)):r.leave(e,()=>{cs(e,!1)}):cs(e,t))},beforeUnmount(e,{value:t}){cs(e,t)}};function cs(e,t){e.style.display=t?e[as]:`none`,e[os]=!t}var ls=Symbol(``);function us(e){let t=fo();if(!t)return;let n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>fs(e,n))},r=()=>{let r=e(t.proxy);t.ce?fs(t.ce,r):ds(t.subTree,r),n(r)};ni(()=>{zn(r)}),ti(()=>{I(r,o,{flush:`post`});let e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),ai(()=>e.disconnect())})}function ds(e,t){if(e.shapeFlag&128){let n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{ds(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)fs(e.el,t);else if(e.type===B)e.children.forEach(e=>ds(e,t));else if(e.type===Ba){let{el:n,anchor:r}=e;for(;n&&(fs(n,t),n!==r);)n=n.nextSibling}}function fs(e,t){if(e.nodeType===1){let n=e.style,r=``;for(let e in t){let i=je(t[e]);n.setProperty(`--${e}`,i),r+=`--${e}: ${i};`}n[ls]=r}}var ps=/(?:^|;)\s*display\s*:/;function ms(e,t,n){let r=e.style,i=x(n),a=!1;if(n&&!i){if(t){if(x(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??gs(r,t,``)}else for(let e in t)n[e]??gs(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?gs(r,i,``):bs(e,i,!x(t)&&t?t[i]:void 0,o)||gs(r,i,o)}}else if(i){if(t!==n){let e=r[ls];e&&(n+=`;`+e),r.cssText=n,a=ps.test(n)}}else t&&e.removeAttribute(`style`);as in e&&(e[as]=a?r.display:``,e[os]&&(r.display=`none`))}var hs=/\s*!important$/;function gs(e,t,n){if(m(n))n.forEach(n=>gs(e,t,n));else if(n??=``,t.startsWith(`--`))hs.test(n)?e.setProperty(t,n.replace(hs,``),`important`):e.setProperty(t,n);else{let r=ys(e,t);hs.test(n)?e.setProperty(O(r),n.replace(hs,``),`important`):e[r]=n}}var _s=[`Webkit`,`Moz`,`ms`],vs={};function ys(e,t){let n=vs[t];if(n)return n;let r=ae(t);if(r!==`filter`&&r in e)return vs[t]=r;r=se(r);for(let n=0;n<_s.length;n++){let i=_s[n]+r;if(i in e)return vs[t]=i}return t}function bs(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&x(r)&&n===r}var xs=`http://www.w3.org/1999/xlink`;function Ss(e,t,n,r,i,a=Ce(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(xs,t.slice(6,t.length)):e.setAttributeNS(xs,t,n):n==null||a&&!we(n)?e.removeAttribute(t):e.setAttribute(t,a?``:S(n)?String(n):n)}function Cs(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?Mo(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=we(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function ws(e,t,n,r){e.addEventListener(t,n,r)}function Ts(e,t,n,r){e.removeEventListener(t,n,r)}var Es=Symbol(`_vei`);function Ds(e,t,n,r,i=null){let a=e[Es]||(e[Es]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=As(t);r?ws(e,n,a[t]=Ps(r,i),s):o&&(Ts(e,n,o,s),a[t]=void 0)}}var Os=/(Once|Passive|Capture)$/,ks=/^on:?(?:Once|Passive|Capture)$/;function As(e){let t,n;for(;(n=e.match(Os))&&!ks.test(e);)t||={},e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):O(e.slice(2)),t]}var js=0,Ms=Promise.resolve(),Ns=()=>js||=(Ms.then(()=>js=0),Date.now());function Ps(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(m(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;n<i.length&&!e._stopped;n++){let e=i[n];e&&Tn(e,t,5,a)}}else Tn(r,t,5,[e])};return n.value=e,n.attached=Ns(),n}var Fs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Is=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?is(e,r,o):t===`style`?ms(e,n,r):c(t)?l(t)||Ds(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),1):t[0]===`^`?(t=t.slice(1),0):Ls(e,t,r,o))?(Cs(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&Ss(e,t,r,o,a,t!==`value`)):e._isVueCE&&(Rs(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!x(r)))?Cs(e,ae(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`fal
1se-value`&&(e._falseValue=r),Ss(e,t,r,o))};function Ls(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&Fs(t)&&b(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return Fs(t)&&x(n)?!1:t in e}function Rs(e,t){let n=e._def.props;if(!n)return!1;let r=ae(t);return Array.isArray(n)?n.some(e=>ae(e)===r):Object.keys(n).some(e=>ae(e)===r)}function zs(e=`$style`){{let t=fo();if(!t)return i;let n=t.type.__cssModules;return n&&n[e]||i}}var Bs=new WeakMap,Vs=new WeakMap,Hs=Symbol(`_moveCb`),Us=Symbol(`_enterCb`),Ws=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:u({},Ho,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=fo(),r=yr(),i,a;return ri(()=>{if(!i.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!Ys(i[0].el,n.vnode.el,t)){i=[];return}
1i.forEach(Gs),i.forEach(Ks);let r=i.filter(qs);rs(n.vnode.el),r.forEach(e=>{let n=e.el,r=n.style;Yo(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[Hs]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[Hs]=null,Xo(n,t))};n.addEventListener(`transitionend`,i)}),i=[]}),()=>{let o=tn(e),s=Ko(o),c=o.tag||B;if(i=[],a)for(let e=0;e<a.length;e++){let t=a[e];t.el&&t.el instanceof Element&&!t.el[os]&&(i.push(t),Ar(t,Dr(t,s,r,n)),Bs.set(t,Js(t.el)))}a=t.default?jr(t.default()):[];for(let e=0;e<a.length;e++){let t=a[e];t.key!=null&&Ar(t,Dr(t,s,r,n))}return G(c,null,a)}}});function Gs(e){let t=e.el;t[Hs]&&t[Hs](),t[Us]&&t[Us]()}function Ks(e){Vs.set(e,Js(e.el))}function qs(e){let t=Bs.get(e),n=Vs.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){let t=e.el,n=t.style,a=t.getBoundingClientRect(),o=1,s=1;return t.offsetWidth&&(o=a.width/t.offsetWidth),t.offsetHeight&&(s=a.height/t.offsetHeight),(!Number.isFinite(o)||o===0)&&(o=1),(!Number.isFinite(s)||s===0)&&(s=1),Math.abs(o-1)<.01&&(o=1),Math.abs(s-1)<.01&&(s=1),n.transform=n.webkitTransform=`translate(${r/o}px,${i/s}px)`,n.transitionDuration=`0s`,e}}function Js(e){let t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function Ys(e,t,n){let r=e.cloneNode(),i=e[Bo];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=es(r);return a.removeChild(r),o}var Xs=[`ctrl`,`shift`,`alt`,`meta`],Zs={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>Xs.some(n=>e[`${n}Key`]&&!t.includes(n))},Qs=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=Zs[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},$s={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},ec=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=O(n.key);if(t.some(e=>e===r||$s[e]===r))return e(n)}))},tc=u({patchProp:Is},Lo),nc;function rc(){return nc||=Ea(tc)}var ic=((...e)=>{let t=rc().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=oc(e);if(!r)return;let i=t._component;!b(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,ac(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function ac(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function oc(e){return x(e)?document.querySelector(e):e}function sc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function cc(e){if(Array.isArray(e))return e}function lc(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function uc(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dc(e,t){return cc(e)||lc(e,t)||fc(e,t)||uc()}function fc(e,t){if(e){if(typeof e==`string`)return sc(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sc(e,t):void 0}}var pc=Object.entries,mc=Object.setPrototypeOf,hc=Object.isFrozen,gc=Object.getPrototypeOf,_c=Object.getOwnPropertyDescriptor,vc=Object.freeze,yc=Object.
vendor: 4,135 bytes, line 2
2seal,bc=Object.create,xc=typeof Reflect<`u`&&Reflect,Sc=xc.apply,Cc=xc.construct;vc||=function(e){return e},yc||=function(e){return e},Sc||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},Cc||=function(e){return new e(...[...arguments].slice(1))};var wc=Wc(Array.prototype.forEach),Tc=Wc(Array.prototype.lastIndexOf),Ec=Wc(Array.prototype.pop),Dc=Wc(Array.prototype.push),Oc=Wc(Array.prototype.splice),kc=Array.isArray,Ac=Wc(String.prototype.toLowerCase),jc=Wc(String.prototype.toString),Mc=Wc(String.prototype.match),Nc=Wc(String.prototype.replace),Pc=Wc(String.prototype.indexOf),Fc=Wc(String.prototype.trim),Ic=Wc(Number.prototype.toString),Lc=Wc(Boolean.prototype.toString),Rc=typeof BigInt>`u`?null:Wc(BigInt.prototype.toString),zc=typeof Symbol>`u`?null:Wc(Symbol.prototype.toString),Bc=Wc(Object.prototype.hasOwnProperty),Vc=Wc(Object.prototype.toString),Hc=Wc(RegExp.prototype.test),Uc=Gc(TypeError);function Wc(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return Sc(e,t,n)}}function Gc(e){return function(){return Cc(e,[...arguments])}}function Kc(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ac;if(mc&&mc(e,null),!kc(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(hc(t)||(t[r]=e),i=e)}e[i]=!0}return e}function qc(e){for(let t=0;t<e.length;t++)Bc(e,t)||(e[t]=null);return e}function Jc(e){let t=bc(null);for(let r of pc(e)){var n=dc(r,2);let i=n[0],a=n[1];Bc(e,i)&&(t[i]=kc(a)?qc(a):a&&typeof a==`object`&&a.constructor===Object?Jc(a):a)}return t}function Yc(e){switch(typeof e){case`string`:return e;case`number`:return Ic(e);case`boolean`:return Lc(e);case`bigint`:return Rc?Rc(e):`0`;case`symbol`:return zc?zc(e):`Symbol()`;case`undefined`:return Vc(e);case`function`:case`object`:{if(e===null)return Vc(e);let t=e,n=Xc(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:Vc(e)}return Vc(e)}default:return Vc(e)}}function Xc(e,t){for(;e!==null;){let n=_c(e,t);if(n){if(n.get)return Wc(n.get);if(typeof n.value==`function`)return Wc(n.value)}e=gc(e)}function n(){return null}return n}function Zc(e){try{return Hc(e,``),!0}catch{return!1}}var Qc=vc(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),$c=vc(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),el=vc([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),tl=vc([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),nl=vc(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),rl=vc([`maction`,`mal
2igngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),il=vc([`#text`]),al=vc(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),ol=vc(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),sl=vc(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),cl=vc([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),ll=yc(/{{[\w\W]*|^[\w\W]*}}/g),ul=yc(/<%[\w\W]*|^[\w\W]*%>/g),dl=yc(/\${[\w\W]*/g),fl=yc(/^data-[\-\w.\u00B7-\uFFFF]+$/),pl=yc(/^aria-[\-\w]+$/),ml=yc(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),hl=yc(/^(?:\w+script|data):/i),gl=yc(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),_l=yc(/^html$/i),vl=yc(/^[a-z][.\w]*(-[.\w]+)+$/i),yl=yc(/<[/\w!]/g),bl=yc(/<[/\w]/g),xl=yc(/<\/no(script|embed|frames)/i),Sl=yc(/\/>/i),Cl={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},wl=[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`],Tl=vc(Kc({},wl)),El=function(){let e={};return wc(wl,t=>{e[t]=yc(RegExp(`</`+t+`(?=[\\t\\n\\f\\r />])`,`i`))}),vc(e)}(),Dl=function(){return typeof window>`u`?null:window},Ol=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},kl=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Al=function(e,t,n,r){return Bc(e,t)&&kc(e[t])?Kc(r.base?Jc(r.base):{},e[t],r.transform):n},jl=function(e,t,n){let r=Bc(e,t)?e[t]:void 0;return r&&typeof r==`object`?Jc(r):n()};function Ml(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Dl(),t=e=>Ml(e);if(t.version=`3.4.15`,t.removed=[],!e||!e.document||e.document.nodeType!==Cl.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=Xc(d,`cloneNode`),p=Xc(d,`remove`),m=Xc(d,`removeAttributeNode`),h=Xc(d,`nextSibling`),g=Xc(d,`childNodes`),v=Xc(d,`parentNode`),y=Xc(d,`shadowRoot`),b=Xc(d,`attributes`),x=o&&o.prototype?Xc(o.prototype,`nodeType`):null,S=o&&o.prototype?Xc(o.prototype,`nodeName`):null,C=o&&o.prototype?Xc(o.prototype,`ownerDocument`):null,w=function(e){return x?x(e):e.nodeType},T=function(e){return S?S(e):e.nodeName};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let E,D=``,ee,te=!1,ne=0,re=function(){if(ne>0)throw Uc(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},ie=function(e){re(),ne++;try{return E.createHTML(e)}finally{ne--}},ae=function(e){re(),ne++;try{return E.createScriptURL(e)}finally{ne--}}
vendor: 16,039 bytes, lines 2-3
2,oe=function(){return te||=(ee=Ol(u,i),!0),ee},O=n,se=O.implementation,ce=O.createNodeIterator,le=O.createDocumentFragment,ue=O.getElementsByTagName,de=r.importNode,fe=kl();t.isSupported=typeof pc==`function`&&typeof v==`function`&&se&&se.createHTMLDocument!==void 0;let pe=ll,me=ul,he=dl,ge=fl,_e=pl,ve=hl,ye=gl,be=vl,k=ml,xe=null,Se=Kc({},[...Qc,...$c,...el,...nl,...il]),Ce=null,we=Kc({},[...al,...ol,...sl,...cl]),Te=Object.seal(bc(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}})),Ee=null,De=null,Oe=Object.seal(bc(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),A=!0,ke=!0,Ae=!1,je=!0,Me=!1,Ne=!0,Pe=!1,Fe=!1,Ie=null,Le=null,Re=!1,ze=!1,Be=!1,Ve=!1,He=!0,Ue=!1,We=`user-content-`,Ge=!0,Ke=!1,qe={},Je=null,Ye=Kc({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Xe=null,Ze=Kc({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Qe=null,$e=Kc({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),et=`http://www.w3.org/1998/Math/MathML`,tt=`http://www.w3.org/2000/svg`,nt=`http://www.w3.org/1999/xhtml`,rt=nt,it=!1,at=null,ot=Kc({},[et,tt,nt],jc),st=vc([`mi`,`mo`,`mn`,`ms`,`mtext`]),ct=Kc({},st),lt=vc([`annotation-xml`]),ut=Kc({},lt),dt=Kc({},[`title`,`style`,`font`,`a`,`script`]),ft=null,pt=[`application/xhtml+xml`,`text/html`],mt=null,ht=null,gt=n.createElement(`form`),_t=function(e){return e instanceof RegExp||e instanceof Function},vt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ht&&ht===e)return;(!e||typeof e!=`object`)&&(e={}),e=Jc(e),ft=pt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,mt=ft===`application/xhtml+xml`?jc:Ac,xe=Al(e,`ALLOWED_TAGS`,Se,{transform:mt}),Ce=Al(e,`ALLOWED_ATTR`,we,{transform:mt}),at=Al(e,`ALLOWED_NAMESPACES`,ot,{transform:jc}),Qe=Al(e,`ADD_URI_SAFE_ATTR`,$e,{transform:mt,base:$e}),Xe=Al(e,`ADD_DATA_URI_TAGS`,Ze,{transform:mt,base:Ze}),Je=Al(e,`FORBID_CONTENTS`,Ye,{transform:mt}),Ee=Al(e,`FORBID_TAGS`,Jc({}),{transform:mt}),De=Al(e,`FORBID_ATTR`,Jc({}),{transform:mt}),qe=Bc(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?Jc(e.USE_PROFILES):e.USE_PROFILES:!1,A=e.ALLOW_ARIA_ATTR!==!1,ke=e.ALLOW_DATA_ATTR!==!1,Ae=e.ALLOW_UNKNOWN_PROTOCOLS||!1,je=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Me=e.SAFE_FOR_TEMPLATES||!1,Ne=e.SAFE_FOR_XML!==!1,Pe=e.WHOLE_DOCUMENT||!1,ze=e.RETURN_DOM||!1,Be=e.RETURN_DOM_FRAGMENT||!1,Ve=e.RETURN_TRUSTED_TYPE||!1,Re=e.FORCE_BODY||!1,He=e.SANITIZE_DOM!==!1,Ue=e.SANITIZE_NAMED_PROPS||!1,Ge=e.KEEP_CONTENT!==!1,Ke=e.IN_PLACE||!1,k=Zc(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:ml,rt=typeof e.NAMESPACE==`string`?e.NAMESPACE:nt,ct=jl(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>Kc({},st)),ut=jl(e,`HTML_INTEGRATION_POINTS`,()=>Kc({},lt));let t=jl(e,`CUSTOM_ELEMENT_HANDLING`,()=>bc(null));if(Te=bc(null),Bc(t,`tagNameCheck`)&&_t(t.tagNameCheck)&&(Te.tagNameCheck=t.tagNameCheck),Bc(t,`attributeNameCheck`)&&_t(t.attributeNameCheck)&&(Te.attributeNameCheck=t.attributeNameCheck),Bc(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(Te.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),yc(Te),Me&&(ke=!1),Be&&(ze=!0),qe&&(xe=Kc({},il),Ce=bc(null),qe.html===!0&&(Kc(xe,Qc),Kc(Ce,al)),qe.svg===!0&&(Kc(xe,$c),Kc(Ce,ol),Kc(Ce,cl)),qe.svgFilters===!0&&(Kc(xe,el),Kc(Ce,ol),Kc(Ce,cl)),qe.mathMl===!0&&(Kc(xe,nl),Kc(Ce,sl),Kc(Ce,cl))),Oe.tagCheck=null,Oe.attributeCheck=null,Bc(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?Oe.tagCheck=e.ADD_TAGS:kc(e.ADD_TAGS)&&(xe===Se&&(xe=Jc(xe)),Kc(xe,e.ADD_TAGS,mt))),Bc(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?Oe.attributeCheck=e.ADD_ATTR:kc(e.ADD_ATTR)&&(Ce===we&&(Ce=Jc(Ce)),Kc(Ce,e.ADD_ATTR,mt))),Bc(e,`ADD_FORBID_CONTENTS`)&&kc(e.ADD_FORBID_CONTENTS)&&(Je===Ye&&(Je=Jc(Je)),Kc(Je,e.ADD_FORBID_CONTENTS,mt)),Ge&&(xe[`#text`]=!0),Pe&&Kc(xe,[`html`,`head`,`body`]),xe.table&&(Kc(xe,[`tbody`]),delete Ee.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw Uc(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw Uc(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=E;E=e.TRUSTED_TYPES_POLICY;try{D=ie(``)}catch(e){throw E=t,e}}else e.TRUSTED_TYPES_POLICY===null?(E=void 0,D=``):(E===void 0&&(E=oe()),E&&typeof D==`string`&&(D=ie(``)));vc&&vc(e),ht=e},yt=Kc({},[...$c,...el,...tl]),bt=Kc({},[...nl,...rl]),xt=function(e,t,n){return t.namespaceURI===nt?e===`svg`:t.namespaceURI===et?e===`svg`&&(n===`annotation-xml`||ct[n]):!!yt[e]},St=function(e,t,n){return t.namespaceURI===nt?e===`math`:t.namespaceURI===tt?e===`math`&&ut[n]:!!bt[e]},Ct=function(e,t,n){return t.namespaceURI===tt&&!ut[n]||t.namespaceURI===et&&!ct[n]?!1:!bt[e]&&(dt[e]||!yt[e])},wt=function(e){let t=v(e);(!t||!t.tagName)&&(t={namespaceURI:rt,tagName:`template`});let n=Ac(e.tagName),r=Ac(t.tagName);return at[e.namespaceURI]?e.namespaceURI===tt?xt(n,t,r):e.namespaceURI===et?St(n,t,r):e.namespaceURI===nt?Ct(n,t,r):!!(ft===`application/xhtml+xml`&&at[e.namespaceURI]):!1},Tt=function(e){Dc(t.removed,{element:e});try{v(e).removeChild(e)}catch{if(p(e),!v(e))throw Uc(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},Et=function(e,t,n){try{m(e,t)}catch{try{e.removeAttribute(n)}catch{}}},Dt=function(e){At(e);let t=g(e);if(t){let e=[];wc(t,t=>{Dc(e,t)}),wc(e,e=>{try{p(e)}catch{}})}let n=b(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&Et(e,r,i)}},Ot=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}Dc(t.removed,{attribute:r||null,from:n});try{r?m(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`){if(ze||Be)try{Tt(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},kt=function(e){let t=b(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||Ce[mt(i)]||Et(e,r,i)}},At=function(e){let t=[e];for(;t.length>0;){let e=t.pop();w(e)===Cl.element&&kt(e);let n=g(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},jt=function(e,t){return Ne?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},Mt=function(e){if(!Ne)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=w(e);if(n===Cl.processingInstruction||n===Cl.comment&&Hc(bl,e.data)){try{p(e)}catch{}continue}if(n===Cl.element){let t=e,n=mt(T(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&jt(`for`,n)&&t.removeAttribute(`for`)}catch{}}let r=g(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},Nt=function(e){let t=null,r=null;if(Re)e=`<remove></remove>`+e;else{let t=Mc(e,/^[\r\n\t ]+/);r=t&&t[0]}ft===`application/xhtml+xml`&&rt===nt&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=E?ie(e):e;if(rt===nt)try{t=new l().parseFromString(i,ft)}catch{}if(!t||!t.documentElement){t=se.createDocument(rt,`template`,null);try{t.documentElement.innerHTML=it?D:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),rt===nt?ue.call(t,Pe?`html`:`body`)[0]:Pe?t.documentElement:a},Pt=function(e){let t=C?C(e):e.ownerDocument;return ce.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Ft=function(e){return e=Nc(e,pe,` `),e=Nc(e,me,` `),e=Nc(e,he,` `),e},It=function(e){e.normalize();let t=C?C(e):e.ownerDocument,n=ce.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=Ft(r.data),r=n.nextNode();let i=e.querySelectorAll?.call(e,`template`);i&&wc(i,e=>{Rt(e.content)&&It(e.content)})},Lt=function(e){let t=S?S(e):null;return typeof t!=`string`||mt(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==b(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==x(e)||e.childNodes!==g(e)},Rt=function(e){if(!x||typeof e!=`object`||!e)return!1;try{return x(e)===Cl.documentFragment}catch{return!1}},zt=function(e){if(!x||typeof e!=`object`||!e)return!1;try{return typeof x(e)==`number`}catch{return!1}};function Bt(e,n,r){e.length!==0&&wc(e,e=>{e.call(t,n,r,ht)})}let Vt=function(e,t){return!!(Ne&&e.hasChildNodes()&&!zt(e.firstElementChild)&&Hc(yl,e.textContent)&&Hc(yl,e.innerHTML)||Ne&&e.namespaceURI===nt&&Tl[t]&&(zt(e.firstElementChild)||typeof e.textContent==`string`&&Hc(El[t],e.textContent))||e.nodeType===Cl.processingInstruction||Ne&&e.nodeType===Cl.comment&&Hc(bl,e.data))},Ht=function(e,t){return e instanceof RegExp?Hc(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},Ut=function(e,t,n){if(!Ee[t]&&Yt(t)&&Ht(Te.tagNameCheck,t))return!1;if(Ge&&!Je[t]){let t=v(e),r=g(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,h(e))}}}return Tt(e),!0},Wt=function(e,t,n,r){return e.length===0?t:t===n||t===r?Jc(t):t},Gt=function(e,t){return e===t||v(e)!==null?!1:(Ke&&At(e),!0)},Kt=function(e,n){if(Bt(fe.beforeSanitizeElements,e,null),Gt(e,n))return!0;if(Lt(e))return Tt(e),!0;let r=mt(T(e));if(xe=Wt(fe.uponSanitizeElement,xe,Se,Ie),Bt(fe.uponSanitizeElement,e,{tagName:r,allowedTags:xe}),Gt(e,n))return!0;if(Vt(e,r))return Tt(e),!0;if(Ee[r]||!(Oe.tagCheck instanceof Function&&Oe.tagCheck(r))&&!xe[r]){let t=Ut(e,r,n);return t===!1&&Bt(fe.afterSanitizeElements,e,null),t}if(w(e)===Cl.element&&!wt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&Hc(xl,e.innerHTML))return Tt(e),!0;if(Me&&e.nodeType===Cl.text){let n=Ft(e.textContent);e.textContent!==n&&(Dc(t.removed,{element:e.cloneNode()}),e.textContent=n)}return Bt(fe.afterSanitizeElements,e,null),!1},qt=function(e,t,r){if(De[t]||jt(t,e)||He&&(t===`id`||t===`name`)&&(r in n||r in gt))return!1;let i=Ce[t]||Oe.attributeCheck instanceof Function&&Oe.attributeCheck(t,e);return ke&&Hc(ge,t)||A&&Hc(_e,t)?!0:i?Qe[t]||Hc(k,Nc(r,ye,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Pc(r,`data:`)===0&&Xe[e]||Ae&&!Hc(ve,Nc(r,ye,``))?!0:!r:Yt(e)&&Ht(Te.tagNameCheck,e)&&Ht(Te.attributeNameCheck,t,e)||t===`is`&&Te.allowCustomizedBuiltInElements&&Ht(Te.tagNameCheck,r)},Jt=Kc({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),Yt=function(e){return!Jt[Ac(e)]&&Hc(be,e)},Xt=function(e,t,n,r){if(E&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return ie(r);case`TrustedScriptURL`:return ae(r)}return r},Zt=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!Lt(e)||(Tt(e),!1)}catch{return Ot(t,e),!1}},Qt=function(e){Bt(fe.beforeSanitizeAttributes,e,null);let n=e.attributes;if(!n||Lt(e))return;Ce=Wt(fe.uponSanitizeAttribute,Ce,we,Le);let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:Ce,forceKeepAttr:void 0},i=n.length,a=mt(e.nodeName);for(;i--;){let o=n[i],s=o.name,c=o.namespaceURI,l=o.value,u=mt(s),d=l,f=s===`value`?d:Fc(d),p=!1;if(r.attrName=u,r.attrValue=f,r.keepAttr=!0,r.forceKeepAttr=void 0,Bt(fe.uponSanitizeAttribute,e,r),f=r.attrValue,Ue&&(u===`id`||u===`name`)&&Pc(f,We)!==0&&(Ot(s,e,o),f=We+f,p=!0),Ne&&Hc(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){Ot(s,e,o);continue}if(u===`attributename`&&Mc(f,`href`)){Ot(s,e,o);continue}if(!r.forceKeepAttr){if(!r.keepAttr){Ot(s,e,o);continue}if(!je&&Hc(Sl,f)){Ot(s,e,o);continue}if(Me&&(f=Ft(f)),!qt(a,u,f)){Ot(s,e,o);continue}f=Xt(a,u,c,f),f!==d&&Zt(e,s,c,f)&&p&&Ec(t.removed)}}Bt(fe.afterSanitizeAttributes,e,null)},$t=function(e){let t=null,n=Pt(e);for(Bt(fe.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(Bt(fe.uponSanitizeShadowNode,t,null),Kt(t,e),Qt(t),Rt(t.content)&&$t(t.content),w(t)===Cl.element){let e=y(t);Rt(e)&&(en(e),$t(e))}Bt(fe.afterSanitizeShadowDOM,e,null)},en=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){$t(e.shadow);continue}let n=e.node,r=w(n)===Cl.element,i=g(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=S?S(n):null;if(typeof e==`string`&&mt(e)===`template`){let e=n.content;Rt(e)&&t.push({node:e,shadow:null})}}if(r){let e=y(n);Rt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(it=!e,it&&(e=`<!-->`),typeof e!=`string`&&!zt(e)&&(e=Yc(e),typeof e!=`string`))throw Uc(`dirty is not a string, aborting`);if(!t.isSupported)return e;Fe?(xe=Ie,Ce=Le):vt(n),(fe.uponSanitizeElement.length>0||fe.uponSanitizeAttribute.length>0)&&(xe=Jc(xe)),fe.uponSanitizeAttribute.length>0&&(Ce=Jc(Ce)),t.removed=[];let c=Ke&&typeof e!=`string`&&zt(e);if(c){Mt(e);let t=T(e);if(typeof t==`string`){let n=mt(t);if(!xe[n]||Ee[n])throw Dt(e),Uc(`root node is forbidden and cannot be sanitized in-place`)}if(Lt(e))throw Dt(e),Uc(`root node is clobbered and cannot be sanitized in-place`);try{en(e)}catch(t){throw Dt(e),t}}else if(zt(e))i=Nt(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===Cl.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),en(i);else{if(!ze&&!Me&&!Pe&&e.indexOf(`<`)===-1)return E&&Ve?ie(e):e;if(i=Nt(e),!i)return ze?null:Ve?D:``}i&&Re&&Tt(i.firstChild);let l=c?e:i;try{let e=Pt(l);for(;o=e.nextNode();)Kt(o,l),Qt(o),Rt(o.content)&&$t(o.content)}catch(n){throw c&&(Dt(e),wc(t.removed,e=>{e.element&&At(e.element)})),n}if(c)return wc(t.removed,e=>{e.element&&At(e.element)}),Me&&It(e),e;if(ze){if(Me&&It(i),Be)for(s=le.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(Ce.shadowroot||Ce.shadowrootmode)&&(s=de.call(r,s,!0)),s}let u=Pe?i.outerHTML:i.innerHTML;return Pe&&xe[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Hc(_l,i.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+i.ownerDocument.doctype.name+`> 3`+u),Me&&(u=Ft(u)),E&&Ve?ie(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};vt(e),Fe=!0,Ie=xe,Le=Ce},t.clearConfig=function(){ht=null,Fe=!1,Ie=null,Le=null,E=ee,D=``},t.isValidAttribute=function(e,t,n){ht||vt({});let r=mt(e),i=mt(t);return qt(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&Bc(fe,e)&&Dc(fe[e],t)},t.removeHook=function(e,t){if(Bc(fe,e)){if(t!==void 0){let n=Tc(fe[e],t);return n===-1?void 0:Oc(fe[e],n,1)[0]}return Ec(fe[e])}},t.removeHooks=function(e){Bc(fe,e)&&(fe[e]=[])},t.removeAllHooks=function(){fe=kl()},t}var Nl=Ml();function Pl(e,t){let n=e.hooks??{},r;for(r in n){let e=n[r];e!==void 0&&t.addHook(r,e)}}function Fl(){return Nl()}function Il(e={},t=Fl){let n=t();Pl(e,n);let r=function(t){let r=t.value;if(t.oldValue===r)return;let i=`${r}`,a=t.arg,o=e.namedConfigurations,s=e.default??{};return o&&a!==void 0?n.sanitize(i,o[a]??s):n.sanitize(i,s)},i=function(e,t){let n=r(t);n!==void 0&&(e.innerHTML=n)},a={mounted:i,updated:i};return e.enableSSRPropsSupport?{...a,getSSRProps(e){return{innerHTML:r(e)}}}:a}var Ll={install(e,t={},n=Fl){e.directive(`dompurify-html`,Il(t,n))}},Rl=function(e){return e.idle=`IDLE`,e.polling=`POLLING`,e.completed=`COMPLETED`,e.error=`ERROR`,e}({}),zl=5e3;function Bl(e){return{state:j(Rl.idle),attemptCount:j(0),elapsedTime:j(0),lastResult:j(null),maxRetriesExtended:j(0),runI
3d:0,startTime:null,pollingTimer:null,delayResolve:null,currentPollPromise:null,config:{interval:e.interval??zl,timeout:e.timeout??1/0,maxRetries:e.maxRetries??1/0,stopOnError:e.stopOnError??!0,shouldStop:e.shouldStop??null,onStart:e.onStart??null,onResult:e.onResult??null,onError:e.onError??null,onStop:e.onStop??null,onComplete:e.onComplete??null}}}function Vl(e){return{attemptCount:e.attemptCount.value,elapsedTime:e.elapsedTime.value,state:e.state.value,lastResult:e.lastResult.value,maxRetriesExtended:e.maxRetriesExtended.value}}function Hl(e,...t){if(e)try{let n=e(...t);return n instanceof Promise?n.catch(e=>{console.error(`Polling callback error:`,e)}):n}catch(e){console.error(`Polling callback error:`,e);return}}function Ul(e){return e.runId++,e.runId}function Wl(e,t){return e.runId===t}function Gl(e,t){return Wl(e,t)&&e.state.value===Rl.polling}async function Kl(e,t,n){let{config:r}=e;e.startTime=Date.now(),e.state.value=Rl.polling;let i=Hl(r.onStart,Vl(e));if(i instanceof Promise&&await i,Gl(e,n))for(;Gl(e,n);){if(r.timeout<1/0){let t=Date.now()-(e.startTime??Date.now());if(e.elapsedTime.value=t,t>r.timeout){e.state.value=Rl.error,await Hl(r.onStop,Rl.error,Vl(e));return}}let i=r.maxRetries+e.maxRetriesExtended.value;if(i<1/0&&e.attemptCount.value>=i){e.state.value=Rl.error,await Hl(r.onStop,Rl.error,Vl(e));return}try{let i=await t();if(!Gl(e,n))return;e.attemptCount.value++,e.lastResult.value=i,e.elapsedTime.value=Date.now()-(e.startTime??Date.now());let a=await Hl(r.onResult,i,Vl(e));if(!Gl(e,n))return;if(a&&typeof a==`object`&&`retryWithExtendedCount`in a&&(e.maxRetriesExtended.value+=a.retryWithExtendedCount??0),a&&typeof a==`object`&&`shouldContinue`in a&&a.shouldContinue===!1){e.state.value=Rl.idle,await Hl(r.onStop,Rl.idle,Vl(e));return}if(r.shouldStop&&r.shouldStop(i)){if(e.state.value=Rl.completed,await Hl(r.onComplete,i,Vl(e)),!Wl(e,n)||e.state.value!==Rl.completed)return;await Hl(r.onStop,Rl.completed,Vl(e));return}}catch(t){if(!Gl(e,n))return;e.attemptCount.value++,e.elapsedTime.value=Date.now()-(e.startTime??Date.now());let i=await Hl(r.onError,t instanceof Error?t:Error(String(t)),Vl(e));if(!Gl(e,n))return;if(i&&typeof i==`object`&&`shouldContinue`in i?i.shouldContinue===!1:r.stopOnError){e.state.value=Rl.error,await Hl(r.onStop,Rl.error,Vl(e));return}}await new Promise(t=>{e.delayResolve=t,e.pollingTimer=setTimeout(()=>{e.pollingTimer=null,e.delayResolve=null,t()},r.interval)})}}function ql(e={}){let t=Bl(e),n=q(()=>t.state.value===Rl.polling);function r(e){if(t.state.value===Rl.polling)return;o();let n=Ul(t);t.currentPollPromise=Kl(t,e,n)}function i(){t.state.value===Rl.polling&&(Ul(t),a(),t.state.value=Rl.idle,Hl(t.config.onStop,Rl.idle,Vl(t)))}function a(){t.pollingTimer&&=(clearTimeout(t.pollingTimer),null),t.delayResolve&&=(t.delayResolve(),null)}function o(){Ul(t),a(),t.state.value=Rl.idle,t.attemptCount.value=0,t.elapsedTime.value=0,t.lastResult.value=null,t.maxRetriesExtended.value=0,t.startTime=null,t.currentPollPromise=null}return{state:Yt(t.state),attemptCount:Yt(t.attemptCount),elapsedTime:Yt(t.elapsedTime),isPolling:n,startPolling:r,stopPolling:i,reset:o,getContext:()=>Vl(t)}}var Jl=e=>e.toLowerCase().split(`,`).map(e=>e.trim());function Yl(e,t){if(!t)return!0;let n=`.${(e.name.split(`.`).pop()||``).toLowerCase()}`;return Jl(t).some(t=>t===n||t===e.type||t.split(`/`)[1]===`*`&&e.type.split(`/`)[0]===t.split(`/`)[0])}function Xl(e){e=e.startsWith(`.`)?e.slice(1):e;let t=e.split(`/`);if(t.length>1){let e=t[0];if(e===`audio`||e===`video`||e===`image`)return e}if(e=t[1]||e,e===`audio`||e===`video`||e===`image`)return e;switch(e){case`aac`:case`mid`:case`midi`:case`mp3`:case`oga`:case`opus`:case`wav`:case`weba`:return`audio`;case`avi`:case`mp4`:case`mpeg`:case`ogv`:case`quicktime`:case`webm`:return`video`;case`apng`:case`avif`:case`bmp`:case`gif`:case`ico`:case`jpeg`:case`jpg`:case`png`:case`svg`:case`tif`:case`tiff`:case`webp`:return`image`;default:return null}}function Zl(){}function Ql(e,[t,n,r]){let i=e%10,a=e%100;return i===1&&a!==11?t:i>=2&&i<=4&&(a<10||a>=20)?n:r}function $l(e){return typeof e==`function`?e():M(e)}function eu(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}function tu(e,t=!0,n=!0,r=!1){let i=0,a,o=!0,s=Zl,c,l=()=>{a&&(clearTimeout(a),a=void 0,s(),s=Zl)};return u=>{let d=$l(e),f=Date.now()-i,p=()=>c=u();return l(),d<=0?(i=Date.now(),p()):(f>d&&(n||!o)?(i=Date.now(),p()):t&&(c=new Promise((e,t)=>
3{s=r?t:e,a=setTimeout(()=>{i=Date.now(),o=!0,e(p()),l()},Math.max(0,d-f))})),!n&&!a&&(a=setTimeout(()=>o=!0,d)),o=!1,c)}}function nu(e,t=200,n=!1,r=!0,i=!1){return eu(tu(t,n,r,i),e)}function ru(e,t={}){let n,r,i=Zl,a=e=>{clearTimeout(e),i(),i=Zl};return o=>{let s=$l(e),c=$l(t.maxWait);return n&&a(n),s<=0||c!==void 0&&c<=0?(r&&=(a(r),null),Promise.resolve(o())):new Promise((e,l)=>{i=t.rejectOnCancel?l:e,c&&!r&&(r=setTimeout(()=>{n&&a(n),r=null,e(o())},c)),n=setTimeout(()=>{r&&a(r),r=null,e(o())},s)})}}function iu(e,t=200,n={}){return eu(ru(t,n),e)}var J=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,au=globalThis,ou=`10.74.0`;function su(){return cu(au),au}function cu(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||`10.74.0`,t[ou]=t[`10.74.0`]||{}}function lu(e,t,n=au){let r=n.__SENTRY__=n.__SENTRY__||{},i=r[ou]=r[`10.74.0`]||{};return i[e]||(i[e]=t())}var uu=[`debug`,`info`,`warn`,`error`,`log`,`assert`,`trace`],du=`Sentry Logger `,fu={};function pu(e){if(!(`console`in au))return e();let t=au.console,n={},r=Object.keys(fu);r.forEach(e=>{let r=fu[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function mu(){xu().enabled=!0}function hu(){xu().enabled=!1}function gu(){return xu().enabled}function _u(...e){bu(`log`,...e)}function vu(...e){bu(`warn`,...e)}function yu(...e){bu(`error`,...e)}function bu(e,...t){J&&gu()&&pu(()=>{au.console[e](`${du}[${e}]:`,...t)})}function xu(){return J?lu(`loggerSettings`,()=>({enabled:!1})):{enabled:!1}}var Y={enable:mu,disable:hu,isEnabled:gu,log:_u,warn:vu,error:yu},Su=50,Cu=/\(error: (.*)\)/,wu=/captureMessage|captureException/;function Tu(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{let i=[],a=e.split(` 4`);for(let e=n;e<a.length;e++){let n=a[e];n.length>1024&&(n=n.slice(0,1024));let o=Cu.test(n)?n.replace(Cu,`$1`):n;if(!o.includes(`Error: `)){for(let e of t){let t=e(o);if(t){i.push(t);break}}if(i.length>=Su+r)break}}return Du(i.slice(r))}}function Eu(e){return Array.isArray(e)?Tu(...e):e}function Du(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(Ou(t).function||``)&&t.pop(),t.reverse(),wu.test(Ou(t).function||``)&&(t.pop(),wu.test(Ou(t).function||``)&&t.pop()),t.slice(0,Su).map(e=>({...e,filename:e.filename||Ou(t).filename,function:e.function||`?`}))}function Ou(e){return e[e.length-1]||{}}var ku=`<anonymous>`;function Au(e){try{return!e||typeof e!=`function`?ku:e.name||ku}catch{return ku}}function ju(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return}}}var Mu={},Nu={};function Pu(e,t){return Mu[e]=Mu[e]||[],Mu[e].push(t),()=>{let n=Mu[e];if(n){let e=n.indexOf(t);e!==-1&&n.splice(e,1)}}}function Fu(e,t){if(!Nu[e]){Nu[e]=!0;try{t()}catch(t){J&&Y.error(`Error while instrumenting ${e}`,t)}}}function Iu(e,t){let n=e&&Mu[e];if(n)for(let r of n)try{r(t)}catch(t){J&&Y.error(`Error while triggering instrumentation handler. 5Type: ${e} 6Name: ${Au(r)} 7Error:`,t)}}var Lu=null;function Ru(e){let t=`error`;Pu(t,e),Fu(t,zu)}function zu(){Lu=au.onerror,au.onerror=function(e,t,n,r,i){return Iu(`error`,{column:r,error:i,line:n,msg:e,url:t}),Lu?Lu.apply(this,arguments):!1},au.onerror.__SENTRY_INSTRUMENTED__=!0}var Bu=null;function Vu(e){let t=`unhandledrejection`;Pu(t,e),Fu(t,Hu)}function Hu(){Bu=au.onunhandledrejection,au.onunhandledrejection=function(e){return Iu(`unhandledrejection`,e),!Bu||Bu.apply(this,arguments)},au.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var Uu=Object.prototype.toString;function Wu(e){switch(Uu.call(e)){case`[object Error]`:case`[object Exception]`:case`[object DOMException]`:case`[object WebAssembly.Exception]`:return!0;default:return rd(e,Error)}}function Gu(e,t){return Uu.call(e)===`[object ${t}]`}function Ku(e){return Gu(e,`ErrorEvent`)}function qu(e){return Gu(e,`DOMError`)}function Ju(e){return Gu(e,`DOMException`)}function Yu(e){return Gu(e,`String`)}function Xu(e){return typeof e==`object`&&!!e&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function Zu(e){return e===null||Xu(e)||typeof e!=`object`&&typeof e!=`function`}function Qu(e){return Gu(e,`Object`)}function $u(e){return typeof e==`object`&&!!e}function ed(e){return typeof Event<`u`&&rd(e,Event)}function td(e){return Gu(e,`RegExp`)}
7function nd(e){return!!(e?.then&&typeof e.then==`function`)}function rd(e,t){try{return e instanceof t}catch{return!1}}function id(e){return typeof Request<`u`&&rd(e,Request)}function ad(e,t,n){if(!(t in e))return;let r=e[t];if(typeof r!=`function`)return;let i=n(r);typeof i==`function`&&sd(i,r);try{e[t]=i}catch{J&&Y.log(`Failed to replace method "${t}" in object`,e)}}function od(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{J&&Y.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function sd(e,t){try{e.prototype=t.prototype=t.prototype||{},od(e,`__sentry_original__`,t)}catch{}}function cd(e){return e.__sentry_original__}function ld(e){if(Wu(e))return{message:e.message,name:e.name,stack:e.stack,...ud(e)};if(ed(e)){let{type:t,target:n,currentTarget:r,detail:i}=e;return{type:t,target:n,currentTarget:r,...i?{detail:i}:{},...ud(e)}}return e}function ud(e){return $u(e)?Object.fromEntries(Object.entries(e)):{}}function dd(e){let t=Object.keys(ld(e));return t.sort(),t[0]?t.join(`, `):`[object has no keys]`}var fd;function pd(e){if(fd!==void 0)return fd?fd(e):e();let t=Symbol.for(`__SENTRY_SAFE_RANDOM_ID_WRAPPER__`),n=au;return t in n&&typeof n[t]==`function`?(fd=n[t],fd(e)):(fd=null,e())}function md(){return pd(()=>Math.random())}function hd(){return pd(()=>Date.now())}var gd=Symbol.for(`sentry.skipNormalization`),_d=Symbol.for(`sentry.overrideNormalizationDepth`);function vd(e){return!!e[gd]}function yd(e){let t=e[_d];return typeof t==`number`?t:void 0}var bd;function xd(e){bd=e}function Sd(e,t=100,n=1/0){try{return wd(``,e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Cd(e,t=3,n=102400){let r=Sd(e,t);return Od(r)>n?Cd(e,t-1,n):r}function wd(e,t,n=1/0,r=1/0,i=kd()){let[a,o]=i;if(t==null||[`boolean`,`string`].includes(typeof t)||typeof t==`number`&&Number.isFinite(t))return t;let s=Td(e,t);if(!s.startsWith(`[object `))return s;if(vd(t))return t;let c=yd(t),l=c===void 0?n:c;if(l===0)return s.replace(`object `,``);if(a(t))return`[Circular ~]`;let u=t;if(u&&typeof u.toJSON==`function`)try{return wd(``,u.toJSON(),l-1,r,i)}catch{}let d=Array.isArray(t)?[]:{},f=0,p=ld(t);for(let e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(f>=r){d[e]=`[MaxProperties ~]`;break}let t=p[e];d[e]=wd(e,t,l-1,r,i),f++}return o(t),d}function Td(e,t){try{if(bd){let e=bd(t);if(e)return e}return typeof global<`u`&&t===global?`[Global]`:typeof t==`number`&&!Number.isFinite(t)?`[${t}]`:typeof t==`function`?`[Function: ${Au(t)}]`:typeof t==`symbol`?`[${String(t)}]`:typeof t==`bigint`?`[BigInt: ${String(t)}]`:`[object ${Ed(t)}]`}catch(e){return`**non-serializable** (${e})`}}function Ed(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function Dd(e){return~-encodeURI(e).split(/%..|./).length}function Od(e){return Dd(JSON.stringify(e))}function kd(){let e=new WeakSet;function t(t){return e.has(t)?!0:(e.add(t),!1)}function n(t){e.delete(t)}return[t,n]}function Ad(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function jd(e,t){if(!Array.isArray(e))return``;let n=[];for(let t=0;t<e.length;t++){let r=e[t];Zu(r)?n.push(String(r)):r instanceof Error?n.push(r.message?`${r.name}: ${r.message}`:r.name):n.push(Td(void 0,r))}return n.join(t)}function Md(e,t,n=!1){return Yu(e)?td(t)?t.test(e):Yu(t)?n?e===t:e.includes(t):typeof t==`function`&&t(e):!1}function Nd(e,t=[],n=!1){for(let r of t)if(Md(e,r,n))return!0;return!1}function Pd(){let e=au;return e.crypto||e.msCrypto}var Fd;function Id(){return md()*16}
7function Ld(e=Pd()){try{if(e?.randomUUID)return pd(()=>e.randomUUID()).replace(/-/g,``)}catch{}return Fd||=`10000000100040008000100000000000`,Fd.replace(/[018]/g,e=>(e^(Id()&15)>>e/4).toString(16))}function Rd(e){return e.exception?.values?.[0]}function zd(e){let{message:t,event_id:n}=e;if(t)return t;let r=Rd(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||`<unknown>`:n||`<unknown>`}function Bd(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||=t||``,a.type||=n||`Error`}function Vd(e,t){let n=Rd(e);if(!n)return;let r={type:`generic`,handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&`data`in t){let e={...i?.data,...t.data};n.mechanism.data=e}}function Hd(e){if(Ud(e))return!0;try{od(e,`__sentry_captured__`,!0)}catch{}return!1}function Ud(e){try{return e.__sentry_captured__}catch{}}var Wd=1e3;function Gd(){return hd()/Wd}function Kd(){let{performance:e}=au;if(!e?.now||!e.timeOrigin)return Gd;let t=e.timeOrigin;return()=>(t+pd(()=>e.now()))/Wd}var qd;function Jd(){return(qd??=Kd())()}var Yd=null;function Xd(){let{performance:e}=au;if(!e?.now)return;let t=3e5,n=pd(()=>e.now()),r=hd(),i=e.timeOrigin;if(typeof i==`number`&&Math.abs(i+n-r)<t)return i;let a=e.timing?.navigationStart;return typeof a==`number`&&Math.abs(a+n-r)<t?a:r-n}function Zd(){return Yd===null&&(Yd=Xd()),Yd}function Qd(e){let t=Jd(),n={sid:Ld(),init:!0,timestamp:t,started:t,duration:0,status:`ok`,errors:0,ignoreDuration:!1,toJSON:()=>tf(n)};return e&&$d(n,e),n}function $d(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Jd(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Ld()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started==`number`&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration==`number`)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors==`number`&&(e.errors=t.errors),t.status&&(e.status=t.status)}function ef(e,t){let n={};t?n={status:t}:e.status===`ok`&&(n={status:`exited`}),$d(e,n)}function tf(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did==`number`||typeof e.did==`string`?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function nf(e,t,n=2){if(!t||typeof t!=`object`||n<=0)return t;if(e&&Object.keys(t).length===0)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=nf(r[e],t[e],n-1));return r}function rf(){return Ld()}function af(){return Ld().substring(16)}function of(e){try{let t=au.WeakRef;if(typeof t==`function`)return new t(e)}catch{}return e}function sf(e){if(e){if(typeof e==`object`&&`deref`in e&&typeof e.deref==`function`)try{return e.deref()}catch{return}return e}}var cf=`_sentrySpan`;function lf(e,t){t?od(e,cf,of(t)):delete e[cf]}function uf(e){return sf(e[cf])}var df=100,ff=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:rf(),sampleRand:md()}}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,lf(t,uf(this)),t}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&$d(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return t===null?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let n=typeof t==`function`?t(this):t,{tags:r,attributes:i,extra:a,user:o,contexts:s,level:c,fingerprint:l=[],propagationContext:u,conversationId:d}=(n instanceof e?n.getScopeData():Qu(n)?t:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...i},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),d&&(this._conversationId=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,lf(this,void 0),this._attachments=[],this.setPropagationContext({traceId:rf(),sampleRand:md()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:df;if(n<=0)return this;let r={timestamp:Gd(),...e,message:e.message?Ad(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent(`buffer_overflow`,`log_item`)),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:uf(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=nf(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||Ld();if(!this._client)return J&&Y.warn(`No client configured on scope - will not capture exception!`),n;let r=Error(`Sentry syntheticException`);return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n?.event_id||Ld();if(!this._client)return J&&Y.warn(`No client configured on scope - will not capture message!`),r;let i=n?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=e.event_id||t?.event_id||Ld();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(J&&Y.warn(`No client configured on scope - will not capture event!`),n)}_notifyScopeListeners(){this._notifyingListeners||=(this._notifyingListeners=!0,this._scopeListeners.forEac
7h(e=>{e(this)}),!1)}};function pf(){return lu(`defaultCurrentScope`,()=>new ff)}function mf(){return lu(`defaultIsolationScope`,()=>new ff)}var hf=e=>e instanceof Promise&&!e[gf],gf=Symbol(`chained PromiseLike`),_f=(e,t,n)=>{let r=e.then(e=>(t(e),e),e=>{throw n(e),e});return hf(r)&&hf(e)?r:vf(e,r)},vf=(e,t)=>{if(!t)return e;let n=!1;for(let r in e){if(r in t)continue;n=!0;let i=e[r];typeof i==`function`?Object.defineProperty(t,r,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[gf]:!0}),t},yf=class{constructor(e,t){let n;n=e||new ff;let r;r=t||new ff,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t=this._pushScope(),n;try{n=e(t)}catch(e){throw this._popScope(),e}return nd(n)?_f(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function bf(){let e=cu(su());return e.stack=e.stack||new yf(pf(),mf())}function xf(e){return bf().withScope(e)}function Sf(e,t){let n=bf();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Cf(e){return bf().withScope(()=>e(bf().getIsolationScope()))}function wf(){return{withIsolationScope:Cf,withScope:xf,withSetScope:Sf,withSetIsolationScope:(e,t)=>Cf(t),getCurrentScope:()=>bf().getScope(),getIsolationScope:()=>bf().getIsolationScope()}}function Tf(e){let t=cu(e);return t.acs?t.acs:wf()}function Ef(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).includes(`value`)}function Df(e,t){let{value:n,unit:r}=Ef(e)?e:{value:e,unit:void 0},i=kf(n),a=r&&typeof r==`string`?{unit:r}:{};if(i)return{...i,...a};if(!t||t===`skip-undefined`&&n===void 0)return;let o=``;try{o=JSON.stringify(n)??``}catch{}return{value:o,type:`string`,...a}}function Of(e,t=!1){let n={};for(let[r,i]of Object.entries(e??{})){let e=Df(i,t);e&&(n[r]=e)}return n}function kf(e){if(Array.isArray(e))return{value:e,type:`array`};let t=typeof e==`string`?`string`:typeof e==`boolean`?`boolean`:typeof e==`number`&&!Number.isNaN(e)?Number.isInteger(e)?`integer`:`double`:null;if(t)return{value:e,type:t}}function Af(){return!1}function jf(){return Tf(su()).getCurrentScope()}function Mf(){return Tf(su()).getIsolationScope()}function Nf(){return lu(`globalScope`,()=>new ff)}function Pf(...e){let t=Tf(su());if(e.length===2){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function Ff(){return jf().getClient()}function If(e){let{traceId:t,parentSpanId:n,propagationSpanId:r}=e.getPropagationContext(),i={trace_id:t,span_id:r||af()};return n&&(i.parent_span_id=n),i}var Lf=`sentry.source`,Rf=`sentry.sample_rate`,zf=`sentry.previous_trace_sample_rate`,Bf=`sentry.op`,Vf=`sentry.origin`,Hf=`sentry.idle_span_finish_reason`,Uf=`sentry.measurement_unit`,Wf=`sentry.measurement_value`,Gf=`sentry.custom_span_name`,Kf=`sentry.profile_id`,qf=`sentry.exclusive_time`,Jf=`sentry.link.type`,Yf=`gen_ai.conversation.id`;function Xf(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:`unauthenticated`};case 403:return{code:2,message:`permission_denied`};case 404:return{code:2,message:`not_found`};case 409:return{code:2,message:`already_exists`};case 413:return{code:2,message:`failed_precondition`};case 429:return{code:2,message:`resource_exhausted`};case 499:return{code:2,message:`cancelled`};default:return{code:2,message:`invalid_argument`}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:`unimplemented`};case 503:return{code:2,message:`unavailable`};case 504:return{code:2,message:`deadline_exceeded`};default:return{code:2,message:`internal_error`}}return{code:2,message:`internal_error`}}function Zf(e,t){e.setAttribute(`http.response.status_code`,t);let n=Xf(t);n.message!==`unknown_error`&&e.setStatus(n)}var Qf=`_sentryScope`,$f=`_sentryIsolationScope`,ep=Symbol.for(`sentry.otelSourceInference`),tp=Symbol.for(`sentry.otelSourceExplicitlySet`),np=Symbol.for(`sentry.tracerProviderSpan`);function rp(e,t,n){e&&(od(e,$f,of(n)),od(e,Qf,t))}function ip(e){let t=e;return{scope:t[Qf],isolationScope:sf(t[$f])}}
7function ap(e){return e[ep]===!0}function op(e){od(e,tp,!0)}function sp(e){return e[np]===!0}var cp=`sentry-`;function lp(e){let t=dp(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>{if(t.startsWith(`sentry-`)){let r=t.slice(7);e[r]=n}return e},{});if(Object.keys(n).length>0)return n}function up(e){if(e)return pp(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${cp}${t}`]=n),e),{}))}function dp(e){if(e&&(Yu(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{let n=fp(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):fp(e)}function fp(e){return e.split(`,`).map(e=>{let t=e.indexOf(`=`);return t===-1?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}function pp(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((e,[t,n],r)=>{let i=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,a=r===0?i:`${e},${i}`;return a.length>8192?(J&&Y.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):a},``)}var mp=/^o(\d+)\./,hp=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function gp(e){return e===`http`||e===`https`}function _p(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&i?`:${i}`:``}@${n}${a?`:${a}`:``}/${r&&`${r}/`}${o}`}function vp(e){let t=hp.exec(e);if(!t){pu(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,i=``,a=``,o=``,s=``]=t.slice(1),c=``,l=s,u=l.split(`/`);if(u.length>1&&(c=u.slice(0,-1).join(`/`),l=u.pop()),l){let e=l.match(/^\d+/);e&&(l=e[0])}return yp({host:a,pass:i,path:c,projectId:l,port:o,protocol:n,publicKey:r})}function yp(e){return{protocol:e.protocol,publicKey:e.publicKey||``,pass:e.pass||``,host:e.host,port:e.port||``,path:e.path||``,projectId:e.projectId}}function bp(e){if(!J)return!0;let{port:t,projectId:n,protocol:r}=e;return[`protocol`,`publicKey`,`host`,`projectId`].find(t=>!e[t]&&(Y.error(`Invalid Sentry Dsn: ${t} missing`),!0))?!1:n.match(/^\d+$/)?gp(r)?t&&isNaN(parseInt(t,10))?(Y.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(Y.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(Y.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function xp(e){return e.match(mp)?.[1]}function Sp(e){let t=e.getOptions(),{host:n}=e.getDsn()||{},r;return t.orgId?r=String(t.orgId):n&&(r=xp(n)),r}function Cp(e){let t=typeof e==`string`?vp(e):yp(e);if(t&&bp(t))return t}function wp(e){if(typeof e==`boolean`)return Number(e);let t=typeof e==`string`?parseFloat(e):e;if(!(typeof t!=`number`||isNaN(t)||t<0||t>1))return t}var Tp=RegExp(`^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$`);function Ep(e){if(!e)return;let t=e.match(Tp);if(!t)return;let n;return t[3]===`1`?n=!0:t[3]===`0`&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function Dp(e,t){let n=Ep(e),r=lp(t);if(!n?.traceId)return{traceId:rf(),sampleRand:md()};let i=Ap(n,r);r&&(r.sample_rand=i.toString());let{traceId:a,parentSpanId:o,parentSampled:s}=n;return{traceId:a,parentSpanId:o,sampled:s,dsc:r||{},sampleRand:i}}function Op(e=rf(),t=af(),n){let r=``;return n!==void 0&&(r=n?`-1`:`-0`),`${e}-${t}${r}`}function kp(e=rf(),t=af(),n){return`00-${e}-${t}-${n?`01`:`00`}`}function Ap(e,t){let n=wp(t?.sample_rand);if(n!==void 0)return n;let r=wp(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?md()*r:r+md()*(1-r):md()}var jp=!1;function Mp(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,origin:s,links:c}=Bp(e);return{parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:o,origin:s,links:c}}function Np(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:Bp(e).parent_span_id,a=ip(e).scope;return{parent_span_id:i,span_id:r?a?.getPropagationContext().propagationSpanId||af():t,trace_id:n}}function Pp(e){let{traceId:t,spanId:n}=e.spanContext();return Op(t,n,Kp(e))}function Fp(e){let{traceId:t,spanId:n}=e.spanContext();return kp(t,n,Kp(e))}function Ip(e){if(e&&e.length>0)return e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:n===1,attributes:i,...r}))}function Lp(e){if(e?.length)return e.map(({context:{spanId:e,traceId:t,traceFlags:n},attributes:r})=>({span_id:e,trace_id:t,sampled:n===1,attributes:r}))}function Rp(e){return typeof e==`number`?zp(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?zp(e.getTime()):Jd()}function zp(e){return e>9999999999?e/1e3:e}function Bp(e){if(Gp(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(Wp(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{span_id:t,trace_id:n,data:r,description:a,parent_span_id:Hp(e),start_timestamp:Rp(i),timestamp:Rp(o)||void 0,status:qp(s),op:r[Bf],origin:r[Vf],links:Ip(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function Vp(e){if(Gp(e))return e.getStreamedSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(Wp(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{name:a,span_id:t,trace_id:n,parent_span_id:Hp(e),start_timestamp:Rp(i),end_timestamp:Rp(o),is_segment:e===nm(e),status:Jp(s),attributes:Yp(r,s),links:Lp(c)}}return{span_id:t,trace_id:n,start_timestamp:0,name:``,end_timestamp:0,status:`ok`,is_segment:e===nm(e)}}function Hp(e){return`parentSpanId`in e?e.parentSpanId:`parentSpanContext`in e?e.parentSpanContext?.spanId:void 0}function Up(e){return{...e,attributes:Of(e.attributes),links:e.links?.map(e=>({...e,attributes:Of(e.attributes)}))}}function Wp(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Gp(e){return typeof e.getSpanJSON==`function`}function Kp(e){let{traceFlags:t}=e.spanContext();return t===1}function qp(e){if(e&&e.code!==0)return e.code===1?`ok`:e.message||`internal_error`}function Jp(e){return!e||e.code===1||e.code===0||e.message===`cancelled`?`ok`:`error`}function Yp(e,t){let n=Jp(t)===`error`?t?.message:void 0;return{...n&&{"sentry.status.message":n},...e}}var Xp=`_sentryChildSpans`,Zp=`_sentryRootSpan`;function Qp(e,t){let n=e[Zp]||e;od(t,Zp,n),Kp(e)&&(e.isRecording()||n.isRecording())&&(e[Xp]?e[Xp].add(t):od(e,Xp,new Set([t])))}function $p(e,t){e[Xp]&&e[Xp].delete(t)}function em(e){let t=new Set;function n(e){if(!t.has(e)&&Kp(e)){t.add(e);let r=e[Xp]?Array.from(e[Xp]):[];for(let e of r)n(e)}}return n(e),Array.from(t)}var tm=nm;function nm(e){return e[Zp]||e}function rm(){let e=Tf(su());return e.getActiveSpan?e.getActiveSpan():uf(jf())}function im(){jp||=(pu(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),!0)}var am=!1;function om(){if(am)return;function e(){let e=rm(),t=e&&tm(e);
7if(t){let e=`internal_error`;J&&Y.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:2,message:e})}}am=!0,Ru(e),Vu(e)}function sm(e){if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return!1;let t=e||Ff()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function cm(e){Y.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function lm(e,t){if(!t?.length)return!1;for(let n of t){if(fm(n)){if(e.description&&Md(e.description,n))return J&&cm(e),!0;continue}let t=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!t)continue;let r=!n.name||e.description&&Md(e.description,n.name),i=!n.op||e.op&&Md(e.op,n.op),a=!n.attributes||Object.entries(n.attributes).every(([t,n])=>um(e.attributes?.[t],n));if(r&&i&&a)return J&&cm(e),!0}return!1}function um(e,t){return typeof e==`string`&&(typeof t==`string`||t instanceof RegExp)?Md(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t}function dm(e,t){let n=t.parent_span_id,r=t.span_id;if(n)for(let t of e)t.parent_span_id===r&&(t.parent_span_id=n)}function fm(e){return typeof e==`string`||e instanceof RegExp}var pm=Symbol.for(`sentry.nonRecordingSpan`),mm=class{constructor(e={}){this._traceId=e.traceId||rf(),this._spanId=e.spanId||af(),this.dropReason=e.dropReason,od(this,pm,!0)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}};function hm(e){return!!e&&e[pm]===!0}var gm=`production`,_m=`_frozenDsc`;function vm(e,t){od(e,_m,t)}function ym(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||`production`,release:n.release,public_key:r,trace_id:e,org_id:Sp(t)};return t.emit(`createDsc`,i),i}function bm(e,t){let n=t.getPropagationContext();return n.dsc||ym(n.traceId,e)}function xm(e){let t=Ff();if(!t)return{};let n=tm(e),r=Bp(n),i=r.data,a=n.spanContext().traceState,o=a?.get(`sentry.sample_rate`)??i[`sentry.sample_rate`]??i[`sentry.previous_trace_sample_rate`];function s(e){return(typeof o==`number`||typeof o==`string`)&&(e.sample_rate=`${o}`),e}let c=n[_m];if(c)return s(c);let l=hm(n),u=l&&n.dropReason===`ignored`;if(l&&(!sm(t.getOptions())||u)){let e=ip(n).scope;if(e){let n={...bm(t,e)};return u&&(n.sampled=`false`),s(n)}}let d=a?.get(`sentry.dsc`),f=d&&lp(d);if(f)return s(f);let p=ym(e.spanContext().traceId,t),m=i[`sentry.source`]??i[`sentry.segment.name.source`],h=r.description;return m!==`url`&&h&&(p.transaction=h),sm()&&(p.sampled=String(Kp(n)),p.sample_rand=a?.get(`sentry.sample_rand`)??ip(n).scope?.getPropagationContext().sampleRand.toString()),s(p),t.emit(`createDsc`,p,n),p}function Sm(e){return!!e&&typeof e==`function`&&`_streamed`in e&&!!e._streamed}function Cm(e,t=[]){return[e,t]}function wm(e,t){let[n,r]=e;return[n,[...r,t]]}function Tm(e,t){let n=e[1];for(let e of n){let n=e[0].type;if(t(e,n))return!0}return!1}function Em(e,t){return Tm(e,(e,n)=>t.includes(n))}function Dm(e){let t=cu(au);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function Om(e){let[t,n]=e,r=JSON.stringify(t);function i(e){typeof r==`string`?r=typeof e==`string`?r+e:[Dm(r),e]:r.push(typeof e==`string`?Dm(e):e)}for(let e of n){let[t,n]=e;if(i(` 8${JSON.stringify(t)} 9`),typeof n==`string`||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(Sd(n))}i(e)}}return typeof r==`string`?r:km(r)}function km(e){let t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}function Am(e){return[{type:`span`},e]}function jm(e){let t=typeof e.data==`string`?Dm(e.data):e.data;return[{type:`attachment`,length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var Mm={sessions:`session`,event:`error`,client_report:`internal`,user_report:`default`,profile_chunk:`profile`,replay_event:`replay`,replay_recording:`replay`,check_in:`monitor`,raw_security:`security`,log:`log_item`,trace_metric:`metric`};function Nm(e){return e in Mm}function Pm(e){return Nm(e)?Mm[e]:e}function Fm(e){if(!e?.sdk)return;
9let{name:t,version:n}=e.sdk;return{name:t,version:n}}function Im(e,t,n,r){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date(hd()).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:_p(r)},...i&&{trace:i}}}function Lm(e,t){if(!t)return e;let n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function Rm(e,t,n,r){let i=Fm(n);return Cm({sent_at:new Date(hd()).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:_p(t)}},[`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()]])}function zm(e,t,n,r){let i=Fm(n),a=e.type&&e.type!==`replay_event`?e.type:`event`;Lm(e,n?.sdk);let o=Im(e,i,r,t);return delete e.sdkProcessingMetadata,Cm(o,[[{type:a},e]])}function Bm(e,t){function n(e){return!!e.trace_id&&!!e.public_key}let r=xm(e[0]),i=t?.getDsn(),a=t?.getOptions().tunnel,o={sent_at:new Date(hd()).toISOString(),...n(r)&&{trace:r},...!!a&&i&&{dsn:_p(i)}},{beforeSendSpan:s,ignoreSpans:c}=t?.getOptions()||{},l=c?.length?e.filter(e=>{let t=Bp(e);return!lm({description:t.description,op:t.op,attributes:t.data},c)}):e,u=e.length-l.length;u&&t?.recordDroppedEvent(`before_send`,`span`,u);let d=s?e=>{let t=Bp(e);return(Sm(s)?t:s(t))||(im(),t)}:Bp,f=[];for(let e of l){let t=d(e);t&&f.push(Am(t))}return Cm(o,f)}function Vm(e){if(!J)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`,parent_span_id:r}=Bp(e),{spanId:i}=e.spanContext(),a=Kp(e),o=tm(e),s=o===e,c=`[Tracing] Starting ${a?`sampled`:`unsampled`} ${s?`root `:``}span`,l=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&l.push(`parent ID: ${r}`),!s){let{op:e,description:t}=Bp(o);l.push(`root ID: ${o.spanContext().spanId}`),e&&l.push(`root op: ${e}`),t&&l.push(`root description: ${t}`)}Y.log(`${c} 10 ${l.join(` 11 `)}`)}function Hm(e){if(!J)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`}=Bp(e),{spanId:r}=e.spanContext(),i=`[Tracing] Finishing "${n}" ${tm(e)===e?`root `:``}span "${t}" with ID ${r}`;Y.log(i)}
11function Um(e,t,n,r=rm()){let i=r&&tm(r);i&&(J&&Y.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),i.addEvent(e,{[Wf]:t,[Uf]:n}))}function Wm(e){if(!e||e.length===0)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[Uf],i=n[Wf];typeof r==`string`&&typeof i==`number`&&(t[e.name]={value:i,unit:r})}),t}function Gm(){return cu(su()).segmentSpanCaptureStrategy}function Km(e){return e.getOptions().traceLifecycle===`stream`}var qm=1e3,Jm=class{constructor(e={}){this._traceId=e.traceId||rf(),this._spanId=e.spanId||af(),this._startTime=e.startTimestamp||Jd(),this._links=e.links,this._attributes={},this.setAttributes({[Vf]:`manual`,[Bf]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),`sampled`in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._frozen||(this._links?this._links.push(e):this._links=[e]),this}addLinks(e){return this._frozen||(this._links?this._links.push(...e):this._links=e),this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:+!!n}}setAttribute(e,t){return this._frozen?this:(t===void 0?delete this._attributes[e]:this._attributes[e]=t,e===`sentry.source`&&t!==void 0&&ap(this)&&op(this),this)}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._frozen||(this._startTime=Rp(e))}setStatus(e){return this._frozen||(this._status=e),this}updateName(e){return this._frozen?this:(this._name=e,ap(this)||this.setAttribute(Lf,`custom`),this)}end(e){if(this._endTime){this._frozen=sp(this);return}this._endTime=Rp(e),Hm(this),this._onSpanEnded(),this._frozen=sp(this)}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[Bf],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:qp(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Vf],profile_id:this._attributes[Kf],exclusive_time:this._attributes[qf],measurements:Wm(this._events),is_segment:this._isStandaloneSpan&&tm(this)===this||void 0,segment_id:this._isStandaloneSpan?tm(this).spanContext().spanId:void 0,links:Ip(this._links)}}getStreamedSpanJSON(){return{name:this._name??``,span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===tm(this),status:Jp(this._status),attributes:Yp(this._attributes,this._status),links:Lp(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){if(this._frozen)return this;J&&Y.log(`[Tracing] Adding an event to span:`,e);let r=Ym(t)?t:n||Jd(),i=Ym(t)?{}:t||{},a={name:e,time:Rp(r),attributes:i};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=Ff();e&&(e.emit(`spanEnd`,this),this._isStandaloneSpan||e.emit(`afterSpanEnd`,this));let t=tm(this),n=this._isStandaloneSpan||this===t;if(this._isStandaloneSpan){this._sampled?Qm(Bm([this],e)):(J&&Y.log(`[Tracing] Discarding standalone span because its trace was not chosen to be sampled.`),e&&e.recordDroppedEvent(`sample_rate`,`span`));return}if(!n){let e=Gm();if(e){let n=ip(this).scope||jf();e.onChildSpanEnded(this,t,e=>this._convertSpanToTransaction(e),n)}return}if(e&&Km(e)){e.emit(`afterSegmentSpanEnd`,this);return}let r=ip(this).scope||jf(),i=Gm();if(i)i.onSegmentSpanEnded(e=>this._convertSpanToTransaction(e),r);else{let e=this._convertSpanToTransaction();e&&r.captureEvent(e)}}_convertSpanToTransaction(e={}){if(!Xm(Bp(this)))return;this._name||=(J&&Y.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),`<unlabeled transaction>`);let{scope:t,isolationScope:n}=ip(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;e.onSpanCaptured?.(this);let i=[];for(let t of em(this)){if(t===this||Zm(t)||e.isSpanAlreadyCaptured?.(t))continue;let n=Bp(t);Xm(n)&&(e.onSpanCaptured?.(t),i.push(n))}let a=this._attributes[Lf];delete this._attributes[Gf];let o=!1;
11i.forEach(e=>{delete e.data[Gf],e.op?.startsWith(`gen_ai.`)&&(o=!0)});let s={contexts:{trace:Mp(this)},spans:i.length>qm?i.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,qm):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:`transaction`,sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:xm(this),hasGenAiSpans:o},request:r,...a&&{transaction_info:{source:a}}},c=Wm(this._events);return c&&Object.keys(c).length&&(J&&Y.log(`[Measurements] Adding measurements to transaction event`,JSON.stringify(c,void 0,2)),s.measurements=c),s}};function Ym(e){return e&&typeof e==`number`||e instanceof Date||Array.isArray(e)}function Xm(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function Zm(e){return e instanceof Jm&&e.isStandaloneSpan()}function Qm(e){let t=Ff();if(!t)return;let n=e[1];if(!n||n.length===0){t.recordDroppedEvent(`before_send`,`span`);return}t.sendEnvelope(e)}function $m(e,t,n){if(!sm(e))return[!1];let r,i;typeof e.tracesSampler==`function`?(i=e.tracesSampler({...t,inheritOrSampleWith:e=>typeof t.parentSampleRate==`number`?t.parentSampleRate:typeof t.parentSampled==`boolean`?Number(t.parentSampled):e}),r=!0):t.parentSampled===void 0?e.tracesSampleRate!==void 0&&(i=e.tracesSampleRate,r=!0):i=t.parentSampled;let a=wp(i);if(a===void 0)return J&&Y.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(i)} of type ${JSON.stringify(typeof i)}.`),[!1];if(!a)return J&&Y.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler==`function`?`tracesSampler returned 0 or false`:`a negative sampling decision was inherited or tracesSampleRate is set to 0`}`),[!1,a,r];let o=n<a;return o||J&&Y.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),[o,a,r]}var eh=`__SENTRY_SUPPRESS_TRACING__`;function th(e){let t=ch();return t.startInactiveSpan?t.startInactiveSpan(e):nh(e)}function nh(e){let t=sh(e),{forceTransaction:n,parentSpan:r}=e;return(e.scope?t=>Pf(e.scope,t):r===void 0?e=>e():e=>rh(r,e))(()=>{let i=jf(),a=dh(i,r),o=Ff();return e.onlyIfParent&&!a?ah(i,o):oh({parentSpan:a,spanArguments:t,forceTransaction:n,scope:i})})}function rh(e,t){let n=ch();return n.withActiveSpan?n.withActiveSpan(e,t):Pf(n=>(lf(n,e||void 0),t(n)))}function ih(e=jf()){let t=ch();return t.isTracingSuppressed?t.isTracingSuppressed(e):e.getScopeData().sdkProcessingMetadata[eh]===!0}function ah(e,t){t?.recordDroppedEvent(`no_parent_span`,`span`);let n=new mm({traceId:e.getPropagationContext().traceId});return rp(n,e,Mf()),n}function oh({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){let i=Mf();if(!sm()){let t=r.getPropagationContext(),a=new mm({traceId:e?e.spanContext().traceId:t.traceId});return e&&!n&&Qp(e,a),rp(a,r,i),a}let a=Ff();if(fh(a,t)){ih(r)||a?.recordDroppedEvent(`ignored`,`span`);let t=new mm({dropReason:`ignored`,traceId:e?.spanContext().traceId??r.getPropagationContext().traceId});return e&&!n&&Qp(e,t),rp(t,r,i),t}let o;if(e&&!n)o=uh(e,r,t,i),Qp(e,o);else if(e){let n=xm(e),{traceId:a,spanId:s}=e.spanContext(),c=Kp(e);o=lh({traceId:a,parentSpanId:s,...t},r,i,c),vm(o,n)}else{let{traceId:e,dsc:n,parentSpanId:a,sampled:s}=r.getPropagationContext();o=lh({traceId:e,parentSpanId:a,...t},r,i,s),n&&vm(o,n)}return Vm(o),o}function sh(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=Rp(e.startTime),delete n.startTime,n}return t}function ch(){return Tf(su())}function lh(e,t,n,r){let i=Ff(),a=i?.getOptions()||{},{name:o=``}=e,s={spanAttributes:{...e.attributes},spanName:o,parentSampled:r};i?.emit(`beforeSampling`,s,{decision:!1});let c=s.parentSampled??r,l=s.spanAttributes,u=t.getPropagationContext(),d=ih(t),[f,p,m]=d?[!1]:$m(a,{name:o,parentSampled:c,attributes:l,normalizedRequest:n.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:wp(u.dsc?.sample_rate)},u.sampleRand),h=new Jm({...e,attributes:{[Lf]:`custom`,[Rf]:p!==void 0&&m?p:void 0,...l},sampled:f});return!f&&i&&!d&&(J&&Y.log(`[Tracing] Discarding root span because its trace was not chosen to be sampled.`),i.recordDroppedEvent(`sample_rate`,Km(i)?`span`:`transaction`)),rp(h,t,n),i&&i.emit(`spanStart`,h),h}function uh(e,t,n,r){let{spanId:i,traceId:a}=e.spanContext(),o=ih(t),s=!o&&Kp(e),c=s?new Jm({...n,parentSpanId:i,traceId:a,sampled:s}):new mm({traceId:a});Qp(e,c),rp(c,t,r);let l=Ff();return l?(Km(l)&&hm(c)&&(hm(e)&&e.dropReason?(c.dropReason=e.dropReason,l.recordDroppedEvent(e.dropReason,`span`)):o||(c.dropReason=`sample_rate`,l.recordDroppedEvent(`sample_rate`,`span`))),l.emit(`spanStart`,c),n.endTimestamp&&(l.emit(`spanEnd`,c),l.emit(`afterSpanEnd`,c)),c):c}function dh(e,t){if(t)return t;if(t===null)return;let n=uf(e);if(!n)return;let r=Ff();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?tm(n):n}function fh(e,t){let n=e?.getOptions().ignoreSpans;return!e||!Km(e)||!n?.length?!1:lm({description:t.name||``,op:t.attributes?.[`sentry.op`]||t.op,attributes:t.attributes},n)}function ph(e){return hm(e)&&e.dropReason===`ignored`}var mh={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},hh=`heartbeatFailed`,gh=`idleTimeout`,_h=`finalTimeout`,vh=`externalFinish`;function yh(e,t={}){let n=new Map,r=!1,i,a,o=vh,s=!t.disableAutoFinish,c=[],{idleTimeout:l=mh.idleTimeout,finalTimeout:u=mh.finalTimeout,childSpanTimeout:d=mh.childSpanTimeout,beforeSpanEnd:f,trimIdleSpanEndTimestamp:p=!0}=t,m=Ff(),h=jf();if(!m||!sm()){let e=new mm({traceId:h.getPropagationContext().traceId});return rp(e,h,Mf()),e}let g=rm(),v=bh(e);v.end=new Proxy(v.end,{apply(e,t,n){if(f&&f(v),hm(t))return;let[r,...i]=n,a=Rp(r||Jd()),o=em(v).filter(e=>e!==v),s=Bp(v);if(!o.length||!p)return T(a),Reflect.apply(e,t,[a,...i]);let c=m.getOptions().ignoreSpans,l=o?.reduce((e,t)=>
11{let n=Bp(t);return!n.timestamp||c&&lm({description:n.description,op:n.op,attributes:n.data},c)?e:e?Math.max(e,n.timestamp):n.timestamp},void 0),d=s.start_timestamp,h=Math.min(d?d+u/1e3:1/0,Math.max(d||-1/0,Math.min(a,l||1/0)));return T(h),Reflect.apply(e,t,[h,...i])}});function y(){i&&=(clearTimeout(i),void 0)}function b(){a&&=(clearTimeout(a),void 0)}function x(e){y(),i=setTimeout(()=>{!r&&n.size===0&&s&&(o=gh,v.end(e))},l)}function S(e){b(),a=setTimeout(()=>{!r&&s&&(o=hh,v.end(e))},d)}function C(e){y(),n.set(e,!0),S(Jd()+d/1e3)}function w(e){n.has(e)&&n.delete(e),n.size===0&&(x(Jd()+l/1e3),b())}function T(e){r=!0,n.clear(),c.forEach(e=>e()),lf(h,g);let t=Bp(v),{start_timestamp:i}=t;if(!i)return;t.data[`sentry.idle_span_finish_reason`]||v.setAttribute(Hf,o);let a=t.status;(!a||a===`unknown`)&&v.setStatus({code:1}),Y.log(`[Tracing] Idle span "${t.op}" finished`);let s=em(v).filter(e=>e!==v),d=0;s.forEach(t=>{t.isRecording()&&(t.setStatus({code:2,message:`cancelled`}),t.end(e),J&&Y.log(`[Tracing] Cancelling span since span ended early`,JSON.stringify(t,void 0,2)));let{timestamp:n=0,start_timestamp:r=0}=Bp(t),i=r<=e,a=(u+l)/1e3,o=n-r<=a;if(J){let e=JSON.stringify(t,void 0,2);i?o||Y.log(`[Tracing] Discarding span since it finished after idle span final timeout`,e):Y.log(`[Tracing] Discarding span since it happened after idle span was finished`,e)}(!o||!i)&&($p(v,t),d++)}),d>0&&v.setAttribute(`sentry.idle_span_discarded_spans`,d)}return c.push(m.on(`spanStart`,e=>{r||e===v||Bp(e).timestamp||e instanceof Jm&&e.isStandaloneSpan()||em(v).includes(e)&&C(e.spanContext().spanId)})),c.push(m.on(`spanEnd`,e=>{r||w(e.spanContext().spanId)})),c.push(m.on(`idleSpanEnableAutoFinish`,e=>{e===v&&(s=!0,x(),n.size&&S())})),t.disableAutoFinish||x(),setTimeout(()=>{r||(v.setStatus({code:2,message:`deadline_exceeded`}),o=_h,v.end())},u),v}function bh(e){let t=th(e);return lf(jf(),t),J&&Y.log(`[Tracing] Started span is an idle span`),t}function xh(e,t,n){let r,i,a,o=n?.maxWait?Math.max(n.maxWait,t):0,s=n?.setTimeoutImpl||setTimeout;function c(){return l(),r=e(),r}function l(){i!==void 0&&clearTimeout(i),a!==void 0&&clearTimeout(a),i=a=void 0}function u(){return i!==void 0||a!==void 0?c():r}function d(){return i&&clearTimeout(i),i=s(c,t),o&&a===void 0&&(a=s(c,o)),r}return d.cancel=l,d.flush=u,d}function Sh(e,t){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;Eh(e,t),r&&kh(e,r),Ah(e,n),Dh(e,i),Oh(e,a)}function Ch(e,t){let{extra:n,tags:r,attributes:i,user:a,contexts:o,level:s,sdkProcessingMetadata:c,breadcrumbs:l,fingerprint:u,eventProcessors:d,attachments:f,propagationContext:p,transactionName:m,span:h}=t;wh(e,`extra`,n),wh(e,`tags`,r),wh(e,`attributes`,i),wh(e,`user`,a),wh(e,`contexts`,o),e.sdkProcessingMetadata=nf(e.sdkProcessingMetadata,c,2),s&&(e.level=s),m&&(e.transactionName=m),h&&(e.span=h),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function wh(e,t,n){e[t]=nf(e[t],n,1)}function Th(e,t){let n=Nf().getScopeData();return e&&Ch(n,e.getScopeData()),t&&Ch(n,t.getScopeData()),n}function Eh(e,t){let{extra:n,tags:r,user:i,contexts:a,level:o,transactionName:s}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(a).length&&(e.contexts={...a,...e.contexts}),o&&(e.level=o),s&&e.type!==`transaction`&&(e.transaction=s)}function Dh(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Oh(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function kh(e,t){e.contexts={trace:Np(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:xm(t),...e.sdkProcessingMetadata};let n=Bp(tm(t)).description;n&&!e.transaction&&e.type===`transaction`&&(e.transaction=n)}function Ah(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}var jh=`http.url`,Mh=`navigation.route.id`,Nh=`params`,Ph=`sentry.segment.name`,Fh=`sentry.transaction`,Ih=`url.full`,Lh=`url.path.parameter`,Rh=`url.template`,zh=`user_agent.original`;function Bh(e,t){let n=e.attributes??={};Object.entries(t).forEach(([e,t])=>{t!=null&&!(e in n)&&(n[e]=t)})}var Vh=0,Hh=1,Uh=2;function Wh(e){return new Kh(t=>{t(e)})}function Gh(e){return new Kh((t,n)=>{n(e)})}var Kh=class e{constructor(e){this._state=Vh,this._handlers=[],this._runExecutor(e)}then(t,n){return new e((e,r)=>{this._handlers.push([!1,n=>
11{if(!t)e(n);else try{e(t(n))}catch(e){r(e)}},t=>{if(!n)r(t);else try{e(n(t))}catch(e){r(e)}}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(t){return new e((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{if(i){n(r);return}e(r)})})}_executeHandlers(){if(this._state===Vh)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||=(this._state===Hh&&e[1](this._value),this._state===Uh&&e[2](this._value),!0)})}_runExecutor(e){let t=(e,t)=>{if(this._state===Vh){if(nd(t)){t.then(n,r);return}this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(Hh,e)},r=e=>{t(Uh,e)};try{e(n,r)}catch(e){r(e)}}};function qh(e,t,n,r=0){try{let i=Jh(t,n,e,r);return nd(i)?i:Wh(i)}catch(e){return Gh(e)}}function Jh(e,t,n,r){let i=n[r];if(!e||!i)return e;let a=i({...e},t);return J&&a===null&&Y.log(`Event processor "${i.id||`?`}" dropped event`),nd(a)?a.then(e=>Jh(e,t,n,r+1)):Jh(a,t,n,r+1)}var Yh,Xh,Zh,Qh;function $h(e){let t=au._sentryDebugIds,n=au._debugIds;if(!t&&!n)return{};let r=t?Object.keys(t):[],i=n?Object.keys(n):[];if(Qh&&r.length===Xh&&i.length===Zh)return Qh;Xh=r.length,Zh=i.length,Qh={},Yh||={};let a=(t,n)=>{for(let r of t){let t=n[r],i=Yh?.[r];if(i&&Qh&&t)Qh[i[0]]=t,Yh&&(Yh[r]=[i[0],t]);else if(t){let n=e(r);for(let e=n.length-1;e>=0;e--){let i=n[e]?.filename;if(i&&Qh&&Yh){Qh[i]=t,Yh[r]=[i,t];break}}}}};return t&&a(r,t),n&&a(i,n),Qh}function eg(e,t,n,r,i,a){let{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||Ld(),timestamp:t.timestamp||Gd()},l=n.integrations||e.integrations.map(e=>e.name);tg(c,e),ig(c,l),i&&i.emit(`applyFrameMetadata`,t),t.type===void 0&&ng(c,e.stackParser);let u=og(r,n.captureContext);n.mechanism&&Vd(c,n.mechanism);let d=i?i.getEventProcessors():[],f=Th(a,u),p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),Sh(c,f);let m=[...d,...f.eventProcessors];return(n.data&&n.data.__sentry__===!0?Wh(c):qh(m,c,n)).then(e=>(e&&rg(e),typeof o==`number`&&o>0?ag(e,o,s):e))}function tg(e,t){let{environment:n,release:r,dist:i,maxValueLength:a}=t;e.environment=e.environment||n||`production`,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);let o=e.request;o?.url&&a&&(o.url=Ad(o.url,a)),a&&e.exception?.values?.forEach(e=>{e.value&&=Ad(e.value,a)})}function ng(e,t){let n=$h(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}function rg(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:`sourcemap`,code_file:e,debug_id:t})})}function ig(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function ag(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:Sd(e.data,t,n)}}))},...e.user&&{user:Sd(e.user,t,n)},...e.contexts&&{contexts:Sd(e.contexts,t,n)},...e.extra&&{extra:Sd(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Sd(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:Sd(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=Sd(e.contexts.flags,3,n)),r}function og(e,t){if(!t)return e;let n=e?e.clone():new ff;return n.update(t),n}function sg(e){if(e)return cg(e)||ug(e)?{captureContext:e}:e}function cg(e){return e instanceof ff||typeof e==`function`}var lg=[`user`,`level`,`extra`,`contexts`,`tags`,`fingerprint`,`propagationContext`];function ug(e){return Object.keys(e).some(e=>lg.includes(e))}function dg(e,t){return jf().captureException(e,sg(t))}function fg(e,t){return jf().captureEvent(e,t)}function pg(e,t){Mf().setContext(e,t)}function mg(){let e=Ff();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function hg(e){Mf().addEventProcessor(e)}function gg(e){let t=Mf(),{user:n}=Th(t,jf()),{userAgent:r}=au.navigator||{},i=Qd({user:n,...r&&{userAgent:r},...e}),a=t.getSession();return a?.status===`ok`&&$d(a,{status:`exited`}),_g(),t.setSession(i),i}function _g(){let e=Mf(),t=jf().getSession()||e.getSession();t&&ef(t),vg(),e.setSession()}function vg(){let e=Mf(),t=Ff(),n=e.getSession();n&&t&&t.captureSession(n)}function yg(e=!1){if(e){_g();return}vg()}function bg(e){return typeof e==`object`&&typeof e.unref==`function`&&e.unref(),e}function xg(e){let t=e.protocol?`${e.protocol}:`:``,n=e.port?`:${e.port}`:``;return`${t}//${e.host}${n}${e.path?`/${e.path}`:``}/api/`}function Sg(e){return`${xg(e)}${e.projectId}/envelope/`}function Cg(e,t){let n={sentry_version:`7`};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function wg(e,t,n){return t||`${Sg(e)}?${Cg(e,n)}`}var Tg=[];function Eg(e){let t={};
11return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}function Dg(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n==`function`){let e=n(t);r=Array.isArray(e)?e:[e]}else r=t;return Eg(r)}function Og(e,t){let n={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&Ag(e,t,n)}),n}function kg(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function Ag(e,t,n){if(n[t.name]){J&&Y.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!Tg.includes(t.name)&&typeof t.setupOnce==`function`&&(t.setupOnce(),Tg.push(t.name)),t.setup&&typeof t.setup==`function`&&t.setup(e),typeof t.preprocessEvent==`function`){let n=t.preprocessEvent.bind(t);e.on(`preprocessEvent`,(t,r)=>n(t,r,e))}if(typeof t.processEvent==`function`){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}[`processSpan`,`processSegmentSpan`].forEach(n=>{let r=t[n];typeof r==`function`&&e.on(n,n=>r.call(t,n,e))}),J&&Y.log(`Integration installed: ${t.name}`)}function jg(e){return e}function Mg(){return typeof __SENTRY_BROWSER_BUNDLE__<`u`&&!!__SENTRY_BROWSER_BUNDLE__}function Ng(){return`npm`}function Pg(){return!Mg()&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`}function Fg(){return typeof window<`u`&&(!Pg()||Ig())}function Ig(){return au.process?.type===`renderer`}function Lg(e,t){let n=t?`auto`:`never`;return[{type:`log`,item_count:e.length,content_type:`application/vnd.sentry.items.log+json`},{version:2,...Fg()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Rg(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=_p(r)),Cm(a,[Lg(e,i)])}function zg(e,t){let n=t??Bg(e)??[];if(n.length===0)return;let r=e.getOptions(),i=Rg(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);Vg().set(e,[]),e.emit(`flushLogs`),e.sendEnvelope(i)}function Bg(e){return Vg().get(e)}function Vg(){return lu(`clientToLogBufferMap`,()=>new WeakMap)}function Hg(e,t){let n=t?`auto`:`never`;return[{type:`trace_metric`,item_count:e.length,content_type:`application/vnd.sentry.items.trace-metric+json`},{version:2,...Fg()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Ug(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=_p(r)),Cm(a,[Hg(e,i)])}function Wg(e,t){let n=t??Gg(e)??[];if(n.length===0)return;let r=e.getOptions(),i=Ug(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);Kg().set(e,[]),e.emit(`flushMetrics`),e.sendEnvelope(i)}function Gg(e){return Kg().get(e)}function Kg(){return lu(`clientToMetricBufferMap`,()=>new WeakMap)}function qg(e){return Up({trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||``,start_timestamp:e.start_timestamp,end_timestamp:e.timestamp||e.start_timestamp,status:!e.status||e.status===`ok`||e.status===`cancelled`?`ok`:`error`,is_segment:!1,attributes:{...e.data},links:e.links})}function Jg(e,t){if(e.type!==`transaction`||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||t.getOptions().streamGenAiSpans===!1||Km(t))return;let n=[],r=[];for(let t of e.spans)t.op?.startsWith(`gen_ai.`)?n.push(qg(t)):r.push(t);if(n.length===0)return;e.spans=r;let i=t.getDataCollectionOptions().userInfo?`auto`:`never`;return[{type:`span`,item_count:n.length,content_type:`application/vnd.sentry.items.span.v2+json`},{version:2,...Fg()&&{ingest_settings:{infer_ip:i,infer_user_agent:i}},items:n}]}var Yg=Symbol.for(`SentryBufferFullError`);function Xg(e=100){let t=new Set;function n(){return t.size<e}function r(e){t.delete(e)}function i(e){if(!n())return Gh(Yg);let i=e();return t.add(i),i.then(()=>r(i),()=>r(i)),i}function a(e){if(!t.size)return Wh(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;let r=[n,new Promise(t=>bg(setTimeout(()=>t(!1),e)))];return Promise.race(r)}return{get $(){return Array.from(t)},add:i,drain:a}}var Zg=6e4;function Qg(e,t=hd()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?Zg:r-t}function $g(e,t){return e[t]||e.all||0}function e_(e,t,n=hd()){return $g(e,t)>n}function t_(e,{statusCode:t,headers:n},r=hd()){let i={...e},a=n?.[`x-sentry-rate-limits`],o=n?.[`retry-after`];if(a)for(let e of a.trim().split(`,`)){let[t,n,,,a]=e.split(`:`,5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(!n)i.all=r+s;else for(let e of n.split(`;`))e===`metric_bucket`?(!a||a.split(`;`).includes(`custom`))&&(i[e]=r+s):i[e]=r+s}else o?i.all=r+Qg(o,r):t===429&&(i.all=r+6e4);return i}function n_(e,t,n=Xg(e.bufferSize||64)){let r={},i=e=>n.drain(e);function a(i){let a=[];if(Tm(i,(t,n)=>{let i=Pm(n);e_(r,i)?e.recordDroppedEvent(`ratelimit_backoff`,i):a.push(t)}),a.length===0)return Promise.resolve({});let o=Cm(i[0],a),s=t=>{if(Em(o,[`client_report`])){J&&Y.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}Tm(o,(n,r)=>{e.recordDroppedEvent(t,Pm(r))})};return n.add(()=>t({body:Om(o)}).then(e=>e.statusCode===413?(J&&Y.error(`Sentry responded with status code 413. Envelope was discarded due to exceeding size limits.`),s(`send_error`),e):(J&&e.statusCode!==void 0&&(e.statusCode<200||e.statusCode>=300)&&Y.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=t_(r,e),e),e=>{throw s(`network_error`),J&&Y.error(`Encountered error running transport request:`,e),e})).then(e=>e,e=>
11{if(e===Yg)return J&&Y.error(`Skipped sending event because buffer is full.`),s(`queue_overflow`),Promise.resolve({});throw e})}return{send:a,flush:i}}function r_(e,t,n){let r=[{type:`client_report`},{timestamp:n||Gd(),discarded_events:e}];return Cm(t?{dsn:t}:{},[r])}function i_(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function a_(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:a,data:o,op:s}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:s,parent_span_id:n,span_id:r??``,start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??``,origin:a,profile_id:o?.[Kf],exclusive_time:o?.[qf],measurements:e.measurements,is_segment:!0}}function o_(e){return{type:`transaction`,timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{"sentry.profile_id":e.profile_id},...e.exclusive_time&&{"sentry.exclusive_time":e.exclusive_time}}}},measurements:e.measurements}}var s_=[`forwarded`,`-ip`,`remote-`,`via`,`-user`];function c_(e){return e===!0?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:[`incomingRequest`,`outgoingRequest`,`incomingResponse`,`outgoingResponse`],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:s_},httpHeaders:{request:{deny:s_},response:{deny:s_}},httpBodies:[],urlQueryParams:{deny:s_},graphQL:{document:!0,variables:!0},genAI:{inputs:!1,outputs:!1},databaseQueryData:!1,stackFrameVariables:!0,frameContextLines:7}}var l_={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:[`incomingRequest`,`outgoingRequest`,`incomingResponse`,`outgoingResponse`],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:5};function u_(e){let t=e.dataCollection==null?c_(e.sendDefaultPii):l_,n=e.dataCollection??{};return{userInfo:n.userInfo??t.userInfo,cookies:n.cookies??t.cookies,httpHeaders:{request:n.httpHeaders?.request??t.httpHeaders.request,response:n.httpHeaders?.response??t.httpHeaders.response},httpBodies:n.httpBodies??t.httpBodies,urlQueryParams:n.urlQueryParams??n.queryParams??t.urlQueryParams,graphQL:{document:n.graphQL?.document??t.graphQL.document,variables:n.graphQL?.variables??t.graphQL.variables},genAI:{inputs:n.genAI?.inputs??t.genAI.inputs,outputs:n.genAI?.outputs??t.genAI.outputs},databaseQueryData:n.databaseQueryData??t.databaseQueryData,stackFrameVariables:n.stackFrameVariables??t.stackFrameVariables,frameContextLines:n.frameContextLines??t.frameContextLines}}var d_=`Not capturing exception because it's already been captured.`,f_=`Discarded session because of missing or non-string release`,p_=Symbol.for(`SentryInternalError`),m_=Symbol.for(`SentryDoNotSendEventError`),h_=5e3;function g_(e){return{message:e,[p_]:!0}}function __(e){return{message:e,[m_]:!0}}function v_(e){return $u(e)&&p_ in e}function y_(e){return $u(e)&&m_ in e}function b_(e,t,n,r,i){let a=0,o,s=!1;e.on(n,()=>{a=0,clearTimeout(o),s=!1}),e.on(t,t=>{if(a+=r(t),a>=8e5)i(e);else if(!s){let t=e.getOptions()._flushInterval??h_;t>0&&(s=!0,o=bg(setTimeout(()=>{i(e)},t)))}}),e.on(`flush`,()=>{i(e)})}var x_=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Xg(e.transportOptions?.bufferSize??64),this._dataCollection=u_(e),e.dsn?this._dsn=Cp(e.dsn):J&&Y.warn(`No DSN provided, client will not send events.`),this._dsn){let t=wg(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs??!0,this._options.enableLogs&&b_(this,`afterCaptureLog`,`flushLogs`,O_,zg),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&b_(this,`afterCaptureMetric`,`flushMetrics`,D_,Wg)}captureException(e,t,n){let r=Ld();if(Hd(e))return J&&Y.log(d_),r;let i={event_id:r,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,n)).then(e=>e),`error`),i.event_id}captureMessage(e,t,n,r){let i={event_id:Ld(),...n}
11,a=Xu(e)?e:String(e),o=Zu(e),s=o?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(()=>s.then(e=>this._captureEvent(e,i,r)),o?`unknown`:`error`),i.event_id}captureEvent(e,t,n){let r=Ld();if(t?.originalException&&Hd(t.originalException))return J&&Y.log(d_),r;let i={event_id:r,...t},a=e.sdkProcessingMetadata||{},o=a.capturedSpanScope,s=a.capturedSpanIsolationScope,c=S_(e.type);return this._process(()=>this._captureEvent(e,i,o||n,s),c),i.event_id}captureSession(e){this.sendSession(e),$d(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(this.emit(`flush`),!t)return!0;let n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit(`close`),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith(`Spotlight`)))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),Ag(this,e,this._integrations),t||kg(this,[e])}sendEvent(e,t={}){this.emit(`beforeSendEvent`,e,t);let n=Jg(e,this),r=zm(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])r=wm(r,jm(e));n&&(r=wm(r,n)),this.sendEnvelope(r).then(t=>this.emit(`afterSendEvent`,e,t))}sendSession(e){let{release:t,environment:n=gm}=this._options;if(`aggregates`in e){let r=e.attrs||{};if(!r.release&&!t){J&&Y.warn(f_);return}r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t){J&&Y.warn(f_);return}e.release=e.release||t,e.environment=e.environment||n}this.emit(`beforeSendSession`,e);let r=Rm(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){let r=`${e}:${t}`;J&&Y.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:``}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit(`beforeEnvelope`,e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return J&&Y.error(`Error while sending envelope:`,e),{}}return J&&Y.error(`Transport disabled`),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=Og(this,e),kg(this,e)}_updateSessionFromEvent(e,t){let n=t.level===`fatal`,r=!1,i=t.exception?.values;if(i){r=!0,n=!1;for(let e of i)if(e.mechanism?.handled===!1){n=!0;break}}let a=e.status===`ok`;(a&&e.errors===0||a&&n)&&($d(e,{...n&&{status:`crashed`},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n,r){let i=this.getOptions(),a=this.getIntegrationNames();return!t.integrations&&a.length&&(t.integrations=a),this.emit(`preprocessEvent`,e,t),e.type||r.setLastEventId(e.event_id||t.event_id),eg(i,e,t,n,this,r).then(e=>e===null?e:(this.emit(`postprocessEvent`,e,t),e.contexts={trace:{...e.contexts?.trace,...If(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:bm(this,n),...e.sdkProcessingMetadata},e))}_captureEvent(e,t={},n=jf(),r=Mf()){return J&&T_(e)&&Y.log(`Captured error event \`${i_(e)[0]||`<unknown>`}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{J&&(y_(e)?Y.log(e.message):v_(e)?Y.warn(e.message):Y.warn(e))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:a}=i,o=E_(e),s=T_(e),c=`before send for type \`${e.type||`error`}\``,l=a===void 0?void 0:wp(a),u=S_(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(e===null)throw this.recordDroppedEvent(`event_processor`,u),__("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:C_(w_(this,i,e,t),c)}).then(i=>{if(i===null){if(this.recordDroppedEvent(`before_send`,u),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent(`before_send`,`span`,t)}throw __(`${c} returned \`null\`, will not send event.`)}
11let d=n.getSession()||r.getSession();if(s&&d&&this._updateSessionFromEvent(d,i),s&&typeof l==`number`&&md()>l)throw this.recordDroppedEvent(`sample_rate`,`error`),__(`Discarding event because it's not included in the random sample (sampling rate = ${a})`);if(o){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent(`before_send`,`span`,e)}let f=i.transaction_info;return o&&f&&i.transaction!==e.transaction&&(i.transaction_info={...f,source:`custom`}),this.sendEvent(i,t),i}).then(null,e=>{throw y_(e)||v_(e)?e:(this.captureException(e,{mechanism:{handled:!1,type:`internal`},data:{__sentry__:!0},originalException:e}),g_(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 12Reason: ${e}`))})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===Yg&&this.recordDroppedEvent(`queue_overflow`,t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(`:`);return{reason:n,category:r,quantity:t}})}_flushOutcomes(){J&&Y.log(`Flushing outcomes...`);let e=this._clearOutcomes();if(e.length===0){J&&Y.log(`No outcomes to send`);return}if(!this._dsn){J&&Y.log(`No dsn provided, will not send outcomes`);return}J&&Y.log(`Sending outcomes:`,e);let t=r_(e,this._options.tunnel&&_p(this._dsn));this.sendEnvelope(t)}};function S_(e){return e===`replay_event`?`replay`:e||`error`}function C_(e,t){let n=`${t} must return \`null\` or a valid event.`;if(nd(e))return e.then(e=>{if(!Qu(e)&&e!==null)throw g_(n);return e},e=>{throw g_(`${t} rejected with ${e}`)});if(!Qu(e)&&e!==null)throw g_(n);return e}function w_(e,t,n,r){let{beforeSend:i,beforeSendTransaction:a,ignoreSpans:o}=t,s=!Sm(t.beforeSendSpan)&&t.beforeSendSpan,c=n;if(T_(c)&&i)return i(c,r);if(E_(c)){if(s||o){let t=a_(c);if(o?.length&&lm({description:t.description,op:t.op,attributes:t.data},o))return null;if(s){let e=s(t);e?c=nf(n,o_(e)):im()}if(c.spans){let t=[],n=c.spans;for(let e of n){if(o?.length&&lm({description:e.description,op:e.op,attributes:e.data},o)){dm(n,e);continue}if(s){let n=s(e);n?t.push(n):(im(),t.push(e))}else t.push(e)}let r=c.spans.length-t.length;r&&e.recordDroppedEvent(`before_send`,`span`,r),c.spans=t}}if(a){if(c.spans){let e=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(c,r)}}return c}function T_(e){return e.type===void 0}function E_(e){return e.type===`transaction`}function D_(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+k_(e.attributes)}function O_(e){let t=0;return e.message&&(t+=e.message.length*2),t+k_(e.attributes)}function k_(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*A_(e[0]):Zu(e)?t+=A_(e):t+=100}),t}function A_(e){return typeof e==`string`?e.length*2:typeof e==`number`?8:typeof e==`boolean`?4:0}function j_(e,t){t.debug===!0&&(J?Y.enable():pu(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),jf().update(t.initialScope);let n=new e(t);return M_(n),n.init(),n}function M_(e){jf().setClient(e)}var N_=`thismessage:/`;function P_(e){return`isRelative`in e}function F_(e,t){let n=e.indexOf(`://`)<=0&&e.indexOf(`//`)!==0,r=t??(n?N_:void 0);try{if(`canParse`in URL&&!URL.canParse(e,r))return;let t=new URL(e,r);return n?{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash}:t}catch{}}function I_(e){if(P_(e))return e.pathname;let t=new URL(e);return t.search=``,t.hash=``,[`80`,`443`].includes(t.port)&&(t.port=``),t.password&&=`%filtered%`,t.username&&=`%filtered%`,t.toString()}function L_(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||``,r=t[8]||``;return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function R_(e){return e.split(/[?#]/,1)[0]}function z_(e,t=!0){if(e.startsWith(`data:`)){let n=e.match(/^data:([^;,]+)/),r=n?n[1]:`text/plain`,i=e.includes(`;base64,`),a=e.indexOf(`,`),o=``;if(t&&a!==-1){let t=e.slice(a+1);o=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${i?`,base64`:``}${o?`,${o}`:``}`}return e}function B_(e,t){let n=t?.getDsn(),r=t?.getOptions().tunnel;return H_(e,n)||V_(e,r)}function V_(e,t){return t?W_(e)===W_(t):!1}function H_(e,t){let n=F_(e);return!n||P_(n)||!t?!1:U_(n.hostname,t.host)&&/(^|&|\?)sentry_key=/.test(n.search)}function U_(e,t){return e===t||t.length>0&&e.endsWith(`.${t}`)}function W_(e){return e[e.length-1]===`/`?e.slice(0,-1):e}function G_(e){`aggregates`in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:`{{auto}}`}):e.ipAddress===void 0&&(e.ipAddress=`{{auto}}`)}function K_(e,t,n=[t],r=`npm`){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:ou})),i.version=ou)}function q_(e={}){let t=e.client||Ff();if(!mg()||!t)return{};let n=Tf(su());if(n.getTraceData)return n.getTraceData(e);let r=e.scope||jf(),i=e.span||rm(),a=hm(i)&&!sm(t.getOptions());if(!i&&Af())return{};let o=i&&!a?Pp(i):J_(r),s=up(i?xm(i):bm(t,r));
12if(!Tp.test(o))return Y.warn(`Invalid sentry-trace data. Cannot generate trace data`),{};let c={"sentry-trace":o,baggage:s};return e.propagateTraceparent&&(c.traceparent=i&&!a?Fp(i):Y_(r)),c}function J_(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Op(t,r,n)}function Y_(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return kp(t,r,n)}function X_(e){return Array.from(new Set(e))}var Z_=100;function Q_(e,t){let n=Ff(),r=Mf();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=Z_}=n.getOptions();if(a<=0)return;let o={timestamp:Gd(),...e},s=i?pu(()=>i(o,t)):o;s!==null&&(n.emit&&n.emit(`beforeAddBreadcrumb`,s,t),r.addBreadcrumb(s,a))}var $_=`FunctionToString`,ev=new WeakMap,tv=jg((()=>({name:$_,setupOnce(){let e=Function.prototype.toString;try{Function.prototype.toString=function(...t){let n=cd(this),r;try{ev.has(Ff())&&n!==void 0&&(r=n)}catch{}return e.apply(r??this,t)}}catch{}},setup(e){ev.set(e,!0)}}))),nv=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/Java exception was raised during method invocation$/,/Java object is gone$/],rv=`EventFilters`,iv=jg((e={})=>{let t;return{name:rv,setup(n){t=ov(e,n.getOptions())},processEvent(n,r,i){return t||=ov(e,i.getOptions()),sv(n,t)?null:n}}}),av=jg(((e={})=>({...iv(e),name:`InboundFilters`})));function ov(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:nv],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function sv(e,t){if(!e.type){if(cv(e,t.ignoreErrors))return J&&Y.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 13Event: ${zd(e)}`),!0;if(mv(e))return J&&Y.warn(`Event dropped due to not having an error message, error type or stacktrace. 14Event: ${zd(e)}`),!0;if(uv(e,t.denyUrls))return J&&Y.warn(`Event dropped due to being matched by \`denyUrls\` option. 15Event: ${zd(e)}. 16Url: ${pv(e)}`),!0;if(!dv(e,t.allowUrls))return J&&Y.warn(`Event dropped due to not being matched by \`allowUrls\` option. 17Event: ${zd(e)}. 18Url: ${pv(e)}`),!0}else if(e.type===`transaction`&&lv(e,t.ignoreTransactions))return J&&Y.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 19Event: ${zd(e)}`),!0;return!1}function cv(e,t){return t?.length?i_(e).some(e=>Nd(e,t)):!1}function lv(e,t){if(!t?.length)return!1;let n=e.transaction;return n?Nd(n,t):!1}function uv(e,t){if(!t?.length)return!1;let n=pv(e);return n?Nd(n,t):!1}function dv(e,t){if(!t?.length)return!0;let n=pv(e);return!n||Nd(n,t)}function fv(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!==`<anonymous>`&&n.filename!==`[native code]`)return n.filename||null}return null}function pv(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length)?.stacktrace?.frames;return t?fv(t):null}catch{return J&&Y.error(`Cannot extract url for event ${zd(e)}`),null}}function mv(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&e.type!==`Error`||e.value):!1}function hv(e,t,n,r,i,a){if(!i.exception?.values||!a||!Wu(a.originalException))return;let o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=gv(e,t,r,a.originalException,n,i.exception.values,o,0))}function gv(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(Wu(r[i])){vv(o,s,r);let a=e(t,r[i]),l=c.length;yv(a,i,l,s),c=gv(e,t,n,r[i],i,[a,...c],a,l)}return _v(r)&&r.errors.forEach((a,l)=>{if(Wu(a)){vv(o,s,r);let u=e(t,a),d=c.length;yv(u,`errors[${l}]`,d,s),c=gv(e,t,n,a,i,[u,...c],u,d)}}),c}function _v(e){return Array.isArray(e.errors)}function vv(e,t,n){e.mechanism={handled:!0,type:`auto.core.linked_errors`,..._v(n)&&{is_exception_group:!0}
19,...e.mechanism,exception_id:t}}function yv(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:`chained`,source:t,exception_id:n,parent_id:r}}function bv(e){return Wu(e)&&`__sentry_fetch_url_host__`in e&&typeof e.__sentry_fetch_url_host__==`string`}function xv(e){return bv(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}var Sv=new Map,Cv=new Set;function wv(e){if(au._sentryModuleMetadata)for(let t of Object.keys(au._sentryModuleMetadata)){let n=au._sentryModuleMetadata[t];if(Cv.has(t))continue;Cv.add(t);let r=e(t);for(let e of r.reverse())if(e.filename){Sv.set(e.filename,n);break}}}function Tv(e,t){return wv(e),Sv.get(t)}function Ev(e,t){t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{if(!t.filename||t.module_metadata)return;let n=Tv(e,t.filename);n&&(t.module_metadata=n)})})}function Dv(e){e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{delete e.module_metadata})})}var Ov=new Set([]);function kv(e){let t=`console`,n=Pu(t,e);return Fu(t,jv),n}var Av=new Set;function jv(){`console`in au&&uu.forEach(function(e){!Av.has(e)&&e in au.console&&(Av.add(e),ad(au.console,e,function(t){return fu[e]=t,function(...t){let n=t[0],r=fu[e],i=Ov.size&&typeof n==`string`&&Nd(n,Ov);i||Iu(`console`,{args:t,level:e}),(!i||J&&Y.isEnabled())&&r?.apply(au.console,t)}}))})}function Mv(e){return e===`warn`?`warning`:[`fatal`,`error`,`warning`,`log`,`info`,`debug`].includes(e)?e:`log`}var Nv=`Dedupe`,Pv=jg((()=>{let e;return{name:Nv,processEvent(t){if(t.type)return t;try{if(Fv(t,e))return J&&Y.warn(`Event dropped due to being a duplicate of previously captured event.`),null}catch{}return e=t}}}));function Fv(e,t){return t?!!(Iv(e,t)||Lv(e,t)):!1}function Iv(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!zv(e,t)||!Rv(e,t))}function Lv(e,t){let n=Bv(t),r=Bv(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!zv(e,t)||!Rv(e,t))}function Rv(e,t){let n=ju(e),r=ju(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function zv(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join(``)===r.join(``)}catch{return!1}}function Bv(e){return e.exception?.values?.[0]}var Vv=jg(e=>({name:`ThirdPartyErrorsFilter`,setup(e){e.on(`beforeEnvelope`,e=>{Tm(e,(e,t)=>{if(t===`event`){let t=Array.isArray(e)?e[1]:void 0;t&&(Dv(t),e[1]=t)}})}),e.on(`applyFrameMetadata`,t=>{if(t.type)return;let n=e.getOptions().stackParser;Ev(n,t)})},preprocessEvent(t){e.ignoreSentryInternalFrames&&(au._sentryWrappedDepth??0)>0&&(t.sdkProcessingMetadata={...t.sdkProcessingMetadata,insideSentryWrapped:!0})},processEvent(t){let n=e.ignoreSentryInternalFrames?t.sdkProcessingMetadata?.insideSentryWrapped===!0&&t.exception?.values?.length===1:!1,r=Uv(t,e.ignoreSentryInternalFrames,n);if(r&&r[e.behaviour===`drop-error-if-contains-third-party-frames`||e.behaviour===`apply-tag-if-contains-third-party-frames`?`some`:`every`](t=>!t.some(t=>e.filterKeys.includes(t)))){if(e.behaviour===`drop-error-if-contains-third-party-frames`||e.behaviour===`drop-error-if-exclusively-contains-third-party-frames`)return null;t.tags={...t.tags,third_party_code:!0}}return t}}));function Hv(e,t,n){if(t!==0)return!1;if(n&&Wv(e)||e.function===`sentryWrapped`)return!0;if(!e.context_line||!e.filename||!e.filename.includes(`sentry`)||!e.filename.includes(`helpers`)||!e.context_line.includes(qv))return!1;if(e.pre_context){let t=e.pre_context.length;for(let n=0;n<t;n++)if(e.pre_context[n]?.includes(Kv))return!0}return!1}function Uv(e,t,n){let r=ju(e);if(r)return r.filter((e,r)=>!e.filename||e.lineno==null&&e.colno==null&&e.instruction_addr==null?!1:!t||!Hv(e,r,!!n)).map(e=>e.module_metadata?Object.keys(e.module_metadata).filter(e=>e.startsWith(Gv)).map(e=>e.slice(Gv.length)):[])}function Wv(e){return!e.context_line&&!e.pre_context&&!!e.function&&e.function.length<=2}var Gv=`_sentryBundlerPluginAppKey:`,Kv=`Attempt to invoke user-land function`,qv=`fn.apply(this, wrappedArguments)`,Jv=`ConversationId`,Yv=jg((()=>({name:Jv,setup(e){e.on(`spanStart`,e=>{let t=jf().getScopeData(),n=Mf().getScopeData(),r=t.conversationId||n.conversationId;if(r){let{op:t,data:n,description:i}=Bp(e);if(!t?.startsWith(`gen_ai.`)&&!n[`ai.operationId`]&&!i?.startsWith(`ai.`))return;e.setAttribute(Yf,r)}})}})));function Xv(e,t,n,r,i){if(!e.fetchData)return;let{method:a,url:o}=e.fetchData,s=sm()&&t(o);if(e.endTimestamp){let t=e.fetchData.__span;if(!t)return;let n=r[t];n&&(s&&($v(n,e),Zv(n,e,i)),delete r[t]);return}let{spanOrigin:c=`auto.http.browser`,propagateTraceparent:l=!1}=typeof i==`object`?i:{spanOrigin:i},u=Ff(),d=!!rm(),f=d||!!u&&Km(u),p=s&&f?th(ry(o,a,c)):new mm,m=ph(p)&&d?void 0:p;if(s&&!f&&u?.recordDroppedEvent(`no_parent_span`,`span`),e.fetchData.__span=p.spanContext().spanId,r[p.spanContext().spanId]=p,n(e.fetchData.url)){let t=e.args[0],n={...e.args[1]||{}},r=Qv(t,n,sm()&&f?m:void 0,l);r&&(e.args[1]=n,n.headers=r)}if(u){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};u.emit(`beforeOutgoingRequestSpan`,p,t)}return p}function Zv(e,t,n){(typeof n==`object`&&n?n.onRequestSpanEnd:void 0)?.(e,{headers:t.response?.headers,error:t.error})}
19function Qv(e,t,n,r){let i=q_({span:n,propagateTraceparent:r}),a=i[`sentry-trace`],o=i.baggage,s=i.traceparent;if(!a)return;let c=t.headers||(id(e)?e.headers:void 0);if(!c)return{"sentry-trace":a,...o&&{baggage:o},...s&&{traceparent:s}};if(ty(c)){let e=new Headers(c);if(e.get(`sentry-trace`)||e.set(`sentry-trace`,a),r&&s&&!e.get(`traceparent`)&&e.set(`traceparent`,s),o){let t=e.get(`baggage`);t?ey(t)||e.set(`baggage`,`${t},${o}`):e.set(`baggage`,o)}return e}if(ny(c)){let e=[...c];e.find(e=>e[0]===`sentry-trace`)||e.push([`sentry-trace`,a]),r&&s&&!e.find(e=>e[0]===`traceparent`)&&e.push([`traceparent`,s]);let t=c.find(e=>e[0]===`baggage`&&typeof e[1]==`string`&&ey(e[1]));return o&&!t&&e.push([`baggage`,o]),e}{let e=`sentry-trace`in c?c[`sentry-trace`]:void 0,t=`traceparent`in c?c.traceparent:void 0,n=`baggage`in c?c.baggage:void 0,i=n?Array.isArray(n)?[...n]:[n]:[],l=n&&(Array.isArray(n)?n.find(e=>ey(e)):ey(n));o&&!l&&i.push(o);let u=Object.assign({},c,{"sentry-trace":e??a,...i.length>0&&{baggage:i.join(`,`)}});return r&&s&&!t&&(u.traceparent=s),u}}function $v(e,t){if(t.response){Zf(e,t.response.status);let n=t.response?.headers?.get(`content-length`);if(n){let t=parseInt(n);t>0&&e.setAttribute(`http.response_content_length`,t)}}else t.error&&e.setStatus({code:2,message:`internal_error`});e.end()}function ey(e){return typeof e==`string`&&e.split(`,`).some(e=>e.trim().startsWith(cp))}function ty(e){return typeof Headers<`u`&&rd(e,Headers)}function ny(e){return Array.isArray(e)?e.every(e=>Array.isArray(e)&&e.length===2&&typeof e[0]==`string`):!1}function ry(e,t,n){if(e.startsWith(`data:`))return{name:`${t} ${z_(e)}`,attributes:iy(e,void 0,t,n)};let r=F_(e);return{name:`${t} ${r?I_(r):e}`,attributes:iy(e,r,t,n)}}function iy(e,t,n,r){let i={url:z_(e),type:`fetch`,"http.method":n,[Vf]:r,[Bf]:`http.client`};return t&&(P_(t)||(i[jh]=z_(t.href),i[Ih]=z_(t.href),i[`server.address`]=t.host),t.search&&(i[`http.query`]=t.search),t.hash&&(i[`http.fragment`]=t.hash)),i}function ay(e){if(e!==void 0){if(e>=400&&e<500)return`warning`;if(e>=500)return`error`}}var oy=au;function sy(){return`history`in oy&&!!oy.history}function cy(){if(!(`fetch`in oy))return!1;try{return new Headers,new Request(`data:,`),new Response,!0}catch{return!1}}function ly(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function uy(){if(typeof EdgeRuntime==`string`)return!0;if(!cy())return!1;if(ly(oy.fetch))return!0;let e=!1,t=oy.document;if(t&&typeof t.createElement==`function`)try{let n=t.createElement(`iframe`);n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=ly(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){J&&Y.warn(`Could not create sandbox iframe for pure fetch check, bailing to window.fetch: `,e)}return e}function dy(e,t){let n=`fetch`,r=Pu(n,e);return Fu(n,()=>py(void 0,t)),r}function fy(e){let t=`fetch-body-resolved`,n=Pu(t,e);return Fu(t,()=>py(hy)),n}function py(e,t=!1){(!t||uy())&&ad(au,`fetch`,function(t){return function(...n){let r=Error(),{method:i,url:a}=vy(n),o={args:n,fetchData:{method:i,url:a},startTimestamp:Jd()*1e3,virtualError:r,headers:yy(n)};return e||Iu(`fetch`,{...o}),t.apply(au,n).then(async t=>(e?e(t):Iu(`fetch`,{...o,endTimestamp:Jd()*1e3,response:t}),t),e=>{Iu(`fetch`,{...o,endTimestamp:Jd()*1e3,error:e}),Wu(e)&&e.stack===void 0&&(e.stack=r.stack,od(e,`framesToPop`,1));let t=Ff()?.getOptions().enhanceFetchErrorMessages??`always`;if(t!==!1&&Wu(e)&&e.name===`TypeError`&&(e.message===`Failed to fetch`||e.message===`Load failed`||e.message===`NetworkError when attempting to fetch resource.`))try{let n=new URL(o.fetchData.url).host;t===`always`?e.message=`${e.message} (${n})`:od(e,`__sentry_fetch_url_host__`,n)}catch{}throw e})}})}async function my(e,t){if(e?.body){let n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},9e4),a=!0;for(;a;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:i}=await r.read();clearTimeout(e),i&&(t(),a=!1)}catch{a=!1}finally{clearTimeout(e)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function hy(e){let t;try{t=e.clone()}catch{return}my(t,()=>{Iu(`fetch-body-resolved`,{endTimestamp:Jd()*1e3,response:e})})}function gy(e,t){return $u(e)&&!!e[t]}function _y(e){return typeof e==`string`?e:e?gy(e,`url`)?e.url:e.toString?e.toString():``:``}function vy(e){if(e.length===0)return{method:`GET`,url:``};if(e.length===2){let[t,n]=e;return{url:_y(t),method:gy(n,`method`)?String(n.method).toUpperCase():id(t)&&gy(t,`method`)?String(t.method).toUpperCase():`GET`}}let t=e[0];return{url:_y(t),method:gy(t,`method`)?String(t.method).toUpperCase():`GET`}}function yy(e){let[t,n]=e;try{if(typeof n==`object`&&n&&`headers`in n&&n.headers)return new Headers(n.headers);if(id(t))return new Headers(t.headers)}catch{}}var by=au;function xy(){try{return by.document.location.href}catch{return``}}function Sy(e,t=5){if(!by.HTMLElement)return null;let n=e;for(let e=0;e<t;e++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}var Cy=au,wy=0;function Ty(){return wy>0}function Ey(){wy++,setTimeout(()=>{wy--})}function Dy(e,t={}){function n(e){return typeof e==`function`}if(!n(e))return e;try{if(Object.prototype.hasOwnProperty.call(e,`__sentry_wrapped__`)){let t=e.__sentry_wrapped__;return typeof t==`function`?t:e}if(cd(e))return e}catch{return e}let r=function(...n){au._sentryWrappedDepth=(au._sentryWrappedDepth||0)+1;try{let r=n.map(e=>Dy(e,t));return e.apply(this,r)}catch(e){throw Ey(),Pf(r=>{r.addEventProcessor(e=>(t.mechanism&&(Bd(e,void 0,void 0),Vd(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),dg(e)}),e}finally{au._sentryWrappedDepth=(au._sentryWrappedDepth||0)-1}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}sd(r,e),od(e,`__sentry_wrapped__`,r);try{Object.getOwnPropertyDescriptor(r,`name`).configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function Oy(){let e=xy(),{referrer:t}=Cy.document||{},{userAgent:n}=Cy.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}function ky(e,t){let n=My(e,t),r={type:Ly(t),value:Ry(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===``&&(r.value=`Unrecoverable error caught`),r}function Ay(e,t,n,r){let i=Ff()?.getOptions().normalizeDepth,a=Gy(t),o={__serialized__:Cd(t,i)};if(a)return{exception:{values:[ky(e,a)]},extra:o};let s={exception:{values:[{type:ed(t)?t.constructor.name:r?`UnhandledRejection`:`Error`,value:Uy(t,{isUnhandledRejection:r})}]},extra:o};if(n){let t=My(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}function jy(e,t){return{exception:{values:[ky(e,t)]}}}function My(e,t){let n=t.stacktrace||t.stack||``,r=Py(t),i=Fy(t);try{return e(n,r,i)}catch{}return[]}var Ny=/Minified React error #\d+;/i;function Py(e){return e&&Ny.test(e.message)?1:0}function Fy(e){return typeof e.framesToPop==`number`?e.framesToPop:0}function Iy(e){return typeof WebAssembly<`u`&&WebAssembly.Exception!==void 0&&e instanceof WebAssembly.Exception}function Ly(e){let t=e?.name;return!t&&Iy(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:`WebAssembly.Exception`:t}function Ry(e){let t=e?.message;return Iy(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:`wasm exception`:t?t.error&&typeof t.error.message==`string`?xv(t.error):xv(e):`No error message`}function zy(e,t,n,r){let i=Vy(e,t,n?.syntheticException||void 0,r);
19return Vd(i),i.level=`error`,n?.event_id&&(i.event_id=n.event_id),Wh(i)}function By(e,t,n=`info`,r,i){let a=Hy(e,t,r?.syntheticException||void 0,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),Wh(a)}function Vy(e,t,n,r,i){let a;if(Ku(t)&&t.error)return jy(e,t.error);if(qu(t)||Ju(t)){let i=t;if(`stack`in t){a=jy(e,t);let i=a.exception?.values?.[0];if(r&&n&&i&&!i.stacktrace){let t=My(e,n);t.length&&(i.stacktrace={frames:t},Vd(a,{synthetic:!0}))}}else{let t=i.name||(qu(i)?`DOMError`:`DOMException`),o=i.message?`${t}: ${i.message}`:t;a=Hy(e,o,n,r),Bd(a,o)}return`code`in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return Wu(t)?jy(e,t):Qu(t)||ed(t)?(a=Ay(e,t,n,i),Vd(a,{synthetic:!0}),a):(a=Hy(e,t,n,r),Bd(a,`${t}`,void 0),Vd(a,{synthetic:!0}),a)}function Hy(e,t,n,r){let i={};if(r&&n){let r=My(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),Vd(i,{synthetic:!0})}if(Xu(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function Uy(e,{isUnhandledRejection:t}){let n=dd(e),r=t?`promise rejection`:`exception`;return Ku(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:ed(e)?`Event \`${Wy(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Wy(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Gy(e){return Object.values(e).find(Wu)}var Ky=class extends x_{constructor(e){let t=qy(e);K_(t,`browser`,[`browser`],Cy.SENTRY_SDK_SOURCE||Ng()),super(t);let{userInfo:n}=this.getDataCollectionOptions();t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:n?`auto`:`never`,...t._metadata.sdk.settings});let{sendClientReports:r}=this._options;Cy.document&&Cy.document.addEventListener(`visibilitychange`,()=>{Cy.document.visibilityState===`hidden`&&(r&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),n&&this.on(`beforeSendSession`,G_)}eventFromException(e,t){return zy(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t=`info`,n){return By(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||`javascript`,super._prepareEvent(e,t,n,r)}};function qy(e){return{release:typeof __SENTRY_RELEASE__==`string`?__SENTRY_RELEASE__:Cy.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}var Jy=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,Yy=au,Xy=(e,t)=>e>t[1]?`poor`:e>t[0]?`needs-improvement`:`good`,Zy=(e,t,n,r)=>{let i,a;return o=>{t.value>=0&&(o||r)&&(a=t.value-(i??0),(a||i===void 0)&&(i=t.value,t.delta=a,t.rating=Xy(t.value,n),e(t)))}},Qy=(e=!0)=>{let t=Yy.performance?.getEntriesByType?.(`navigation`)[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},$y=()=>Qy()?.activationStart??0;function eb(e,t,n){Yy.document&&Yy.addEventListener(e,t,n)}function tb(e,t,n){Yy.document&&Yy.removeEventListener(e,t,n)}var nb=-1,rb=new Set,ib=()=>Yy.document?.visibilityState===`hidden`&&!Yy.document?.prerendering?0:1/0,ab=e=>{if(sb(e)&&nb>-1){if(e.type===`visibilitychange`||e.type===`pagehide`)for(let e of rb)e();isFinite(nb)||(nb=e.type===`visibilitychange`?e.timeStamp:0,tb(`prerenderingchange`,ab,!0))}},ob=()=>{if(Yy.document&&nb<0){let e=$y();nb=(Yy.document.prerendering?void 0:globalThis.performance.getEntriesByType(`visibility-state`).filter(t=>t.name===`hidden`&&t.startTime>e)[0]?.startTime)??ib(),eb(`visibilitychange`,ab,!0),eb(`pagehide`,ab,!0),eb(`prerenderingchange`,ab,!0)}return{get firstHiddenTime(){return nb},onHidden(e){rb.add(e)}}};function sb(e){return e.type===`pagehide`||Yy.document?.visibilityState===`hidden`}var cb=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+0xe8d4a51000}`,lb=(e,t=-1)=>{let n=Qy(),r=`navigate`;return n&&(Yy.document?.prerendering||$y()>0?r=`prerender`:Yy.document?.wasDiscarded?r=`restore`:n.type&&(r=n.type.replace(/_/g,`-`))),{name:e,value:t,rating:`good`,delta:0,entries:[],id:cb(),navigationType:r}},ub=new WeakMap;function db(e,t){try{return ub.get(e)||ub.set(e,new t),ub.get(e)}catch{return new t}}var fb=class{constructor(){this._sessionValue=0,this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}},pb=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},mb=e=>{let t=!1;return()=>{t||=(e(),!0)}},hb=e=>{Yy.document?.prerendering?addEventListener(`prerenderingchange`,()=>e(),!0):e()},gb=[1800,3e3],_b=(e,t={})=>{hb(()=>{let n=ob(),r=lb(`FCP`),i,a=pb(`paint`,e=>{for(let t of e)t.name===`first-contentful-paint`&&(a.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-$y(),0),r.entries.push(t),i(!0)))});a&&(i=Zy(e,r,gb,t.reportAllChanges))})},vb=[.1,.25],yb=(e,t={})=>{_b(mb(()=>{let n=lb(`CLS`,0),r,i=ob(),a=db(t,fb),o=e=>{for(let t of e)a._processEntry(t);a._sessionValue>
19n.value&&(n.value=a._sessionValue,n.entries=a._sessionEntries,r())},s=pb(`layout-shift`,o);s&&(r=Zy(e,n,vb,t.reportAllChanges),i.onHidden(()=>{o(s.takeRecords()),r(!0)}),Yy?.setTimeout?.(r))}))},bb=0,xb=1/0,Sb=0,Cb=e=>{e.forEach(e=>{e.interactionId&&(xb=Math.min(xb,e.interactionId),Sb=Math.max(Sb,e.interactionId),bb=Sb?(Sb-xb)/7+1:0)})},wb,Tb=()=>wb?bb:performance.interactionCount||0,Eb=()=>{`interactionCount`in performance||wb||(wb=pb(`event`,Cb,{type:`event`,buffered:!0,durationThreshold:0}))},Db=10,Ob=0,kb=()=>Tb()-Ob,Ab=class{constructor(){this._longestInteractionList=[],this._longestInteractionMap=new Map}_resetInteractions(){Ob=Tb(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor(kb()/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||e.entryType===`first-input`))return;let t=this._longestInteractionList.at(-1),n=this._longestInteractionMap.get(e.interactionId);if(n||this._longestInteractionList.length<Db||e.duration>t._latency){if(n?e.duration>n._latency?(n.entries=[e],n._latency=e.duration):e.duration===n._latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>Db){let e=this._longestInteractionList.splice(Db);for(let t of e)this._longestInteractionMap.delete(t.id)}this._onAfterProcessingINPCandidate?.(n)}}},jb=e=>{let t=Yy.requestIdleCallback||Yy.setTimeout;Yy.document?.visibilityState===`hidden`?e():(e=mb(e),eb(`visibilitychange`,e,{once:!0,capture:!0}),eb(`pagehide`,e,{once:!0,capture:!0}),t(()=>{e(),tb(`visibilitychange`,e,{capture:!0}),tb(`pagehide`,e,{capture:!0})}))},Mb=[200,500],Nb=40,Pb=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&`interactionId`in PerformanceEventTiming.prototype))return;let n=ob();hb(()=>{Eb();let r=lb(`INP`),i,a=db(t,Ab),o=e=>{jb(()=>{for(let t of e)a._processEntry(t);let t=a._estimateP98LongestInteraction();t&&t._latency!==r.value&&(r.value=t._latency,r.entries=t.entries,i())})},s=pb(`event`,o,{durationThreshold:t.durationThreshold??Nb});i=Zy(e,r,Mb,t.reportAllChanges),s&&(s.observe({type:`first-input`,buffered:!0}),n.onHidden(()=>{o(s.takeRecords()),i(!0)}))})},Fb=class{_processEntry(e){this._onBeforeProcessingEntry?.(e)}},Ib=[2500,4e3],Lb=(e,t={})=>{hb(()=>{let n=ob(),r=lb(`LCP`),i,a=db(t,Fb),o=e=>{t.reportAllChanges||(e=e.slice(-1));for(let t of e)a._processEntry(t),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-$y(),0),r.entries=[t],i())},s=pb(`largest-contentful-paint`,o);if(s){i=Zy(e,r,Ib,t.reportAllChanges);let n=mb(()=>{o(s.takeRecords()),s.disconnect(),i(!0)}),a=e=>{e.isTrusted&&(jb(n),tb(e.type,a,{capture:!0}))};for(let e of[`keydown`,`click`,`visibilitychange`])eb(e,a,{capture:!0})}})},Rb=[800,1800],zb=e=>{Yy.document?.prerendering?hb(()=>zb(e)):Yy.document?.readyState===`complete`?setTimeout(e):addEventListener(`load`,()=>zb(e),!0)},Bb=(e,t={})=>{let n=lb(`TTFB`),r=Zy(e,n,Rb,t.reportAllChanges);zb(()=>{let e=Qy();e&&(n.value=Math.max(e.responseStart-$y(),0),n.entries=[e],r(!0))})},Vb={},Hb={},Ub,Wb,Gb,Kb;function qb(e,t=!1){return rx(`cls`,e,$b,Ub,t)}function Jb(e,t=!1){return rx(`lcp`,e,ex,Wb,t)}function Yb(e){return rx(`ttfb`,e,tx,Gb)}function Xb(e){return rx(`inp`,e,nx,Kb)}function Zb(e,t){return ax(e,t),Hb[e]||(ix(e),Hb[e]=!0),ox(e,t)}function Qb(e,t){let n=Vb[e];if(n?.length)for(let r of n)try{r(t)}catch(t){Jy&&Y.error(`Error while triggering instrumentation handler. 20Type: ${e} 21Name: ${Au(r)} 22Error:`,t)}}function $b(){return yb(e=>{Qb(`cls`,{metric:e}),Ub=e},{reportAllChanges:!0})}function ex(){return Lb(e=>{Qb(`lcp`,{metric:e}),Wb=e},{reportAllChanges:!0})}function tx(){return Bb(e=>{Qb(`ttfb`,{metric:e}),Gb=e})}function nx(){return Pb(e=>{Qb(`inp`,{metric:e}),Kb=e})}function rx(e,t,n,r,i=!1){ax(e,t);let a;return Hb[e]||(a=n(),Hb[e]=!0),r&&t({metric:r}),ox(e,t,i?a:void 0)}function ix(e){let t={};e===`event`&&(t.durationThreshold=0),pb(e,t=>{Qb(e,{entries:t})},t)}function ax(e,t){Vb[e]=Vb[e]||[],Vb[e].push(t)}
22function ox(e,t,n){return()=>{n&&n();let r=Vb[e];if(!r)return;let i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function sx(e){return`duration`in e}var cx=80,lx={};try{typeof Node<`u`&&(lx.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,`parentNode`).get),typeof Element<`u`&&(lx.tagName=Object.getOwnPropertyDescriptor(Element.prototype,`tagName`).get,lx.id=Object.getOwnPropertyDescriptor(Element.prototype,`id`).get,lx.className=Object.getOwnPropertyDescriptor(Element.prototype,`className`).get,lx.getAttribute=Element.prototype.getAttribute),typeof HTMLElement<`u`&&(lx.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,`dataset`).get)}catch{}function ux(e,t,n){let r=lx[t];if(r)try{return r.call(e,n)}catch{}let i=e[t];return typeof i==`function`?i.call(e,n):i}function dx(e,t={}){if(!e)return`<unknown>`;try{let n=e,r=[],i=0,a=0,o,s=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||cx;for(;n&&i++<5&&(o=fx(n,s),!(o===`html`||i>1&&a+r.length*3+o.length>=c));)r.push(o),a+=o.length,n=ux(n,`parentNode`);return r.reverse().join(` > `)}catch{return`<unknown>`}}function fx(e,t){let n=[],r=ux(e,`tagName`);if(!r)return``;if(typeof HTMLElement<`u`&&e instanceof HTMLElement){let t=ux(e,`dataset`);if(t){if(t.sentryComponent)return t.sentryComponent;if(t.sentryElement)return t.sentryElement}}n.push(r.toLowerCase());let i=t?.length?t.filter(t=>ux(e,`getAttribute`,t)).map(t=>[t,ux(e,`getAttribute`,t)]):null;if(i?.length)i.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{let t=ux(e,`id`);t&&n.push(`#${t}`);let r=ux(e,`className`);if(r&&Yu(r)){let e=r.split(/\s+/);for(let t of e)n.push(`.${t}`)}}for(let t of[`aria-label`,`type`,`name`,`title`,`alt`]){let r=ux(e,`getAttribute`,t);r&&n.push(`[${t}="${r}"]`)}return n.join(``)}var px=e=>{let t=t=>{(t.type===`pagehide`||Yy.document?.visibilityState===`hidden`)&&e(t)};eb(`visibilitychange`,t,{capture:!0,once:!0}),eb(`pagehide`,t,{capture:!0,once:!0})};function mx(e){return typeof e==`number`&&isFinite(e)}function hx(e,t,n,{...r}){let i=Bp(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime==`function`&&e.updateStartTime(t),rh(e,()=>{let e=th({startTime:t,...r});return e&&e.end(n),e})}function gx(e){let t=Ff();if(!t)return;let{name:n,transaction:r,attributes:i,startTime:a}=e,{release:o,environment:s}=t.getOptions(),{userInfo:c}=t.getDataCollectionOptions(),l=t.getIntegrationByName(`Replay`)?.getReplayId(),u=jf(),d=u.getUser(),f=d===void 0?void 0:d.email||d.id||d.ip_address,p;try{p=u.getScopeData().contexts.profile.profile_id}catch{}return th({name:n,attributes:{release:o,environment:s,user:f||void 0,profile_id:p||void 0,replay_id:l||void 0,transaction:r,"user_agent.original":Yy.navigator?.userAgent,"client.address":c?`{{auto}}`:void 0,...i},startTime:a,experimental:{standalone:!0}})}function _x(){return Yy.addEventListener&&Yy.performance}function vx(e){return e/1e3}function yx(e){let t=`unknown`,n=`unknown`,r=``;for(let i of e){if(i===`/`){[t,n]=e.split(`/`);break}if(!isNaN(Number(i))){t=r===`h`?`http`:r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function bx(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function xx(e,t){let n,r=!1;function i(e){!r&&n&&t(e,n.spanContext().spanId,n),r=!0}px(()=>{i(`pagehide`)});let a=e.on(`beforeStartNavigationSpan`,(e,t)=>{t?.isRedirect||(i(`navigation`),a(),o())}),o=e.on(`afterStartPageLoadSpan`,e=>{n=e,o()})}function Sx(e){let t=0,n;if(!bx(`layout-shift`))return;let r=qb(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(t=e.value,n=r)},!0);xx(e,(e,i)=>{Cx(t,n,i,e),r()})}function Cx(e,t,n,r){Jy&&Y.log(`Sending CLS span (${e})`);let i=t?vx((Zd()||0)+t.startTime):Jd(),a=jf().getScopeData().transactionName,o=t?dx(t.sources[0]?.node):`Layout shift`,s={[Vf]:`auto.http.browser.cls`,[Bf]:`ui.webvital.cls`,[qf]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((e,t)=>{s[`cls.source.${t+1}`]=dx(e.node)});let c=gx({name:o,transaction:a,attributes:s,startTime:i});c&&(c.addEvent(`cls`,{[Uf]:``,[Wf]:e}),c.end(i))}function wx(e){return e!=null&&e>0&&e<=6e4}function Tx(e){let t=0,n;if(!bx(`largest-contentful-paint`))return;let r=Jb(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&wx(e.value)&&(t=e.value,n=r)},!0);xx(e,(e,i)=>{Ex(t,n,i,e),r()})}function Ex(e,t,n,r){if(!wx(e))return;Jy&&Y.log(`Sending LCP span (${e})`);let i=vx((Zd()||0)+(t?.startTime||0)),a=jf().getScopeData().transactionName,o=t?dx(t.element):`Largest contentful paint`,s={[Vf]:`auto.http.browser.lcp`,[Bf]:`ui.webvital.lcp`,[qf]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(s[`lcp.element`]=dx(t.element)),t.id&&(s[`lcp.id`]=t.id),t.url&&(s[`lcp.url`]=t.url),t.loadTime!=null&&(s[`lcp.loadTime`]=t.loadTime),t.renderTime!=null&&(s[`lcp.renderTime`]=t.renderTime),t.size!=null&&(s[`lcp.size`]=t.size));let c=gx({name:o,transaction:a,attributes:s,startTime:i});c&&(c.addEvent(`lcp`,{[Uf]:`millisecond`,[Wf]:e}),c.end(i))}function Dx(e){return e&&((Zd()||performance.timeOrigin)+e)/1e3}function Ox(e){let t={};if(e.nextHopProtocol!=null){let{name:n,version:r}=yx(e.nextHopProtocol);t[`network.protocol.version`]=r,t[`network.protocol.name`]=n}return Zd()||_x()?.timeOrigin?kx({...t,"http.request.redirect_start":Dx(e.redirectStart),"http.request.redirect_end":Dx(e.redirectEnd),"http.request.worker_start":Dx(e.workerStart),"http.request.fetch_start":Dx(e.fetchStart),"http.request.domain_lookup_start":Dx(e.domainLookupStart),"http.request.domain_lookup_end":Dx(e.domainLookupEnd),"http.request.connect_start":Dx(e.connectStart),"http.request.secure_connection_start":Dx(e.secureConnectionStart),"http.request.connection_end":Dx(e.connectEnd),"http.request.request_start":Dx(e.requestStart),"http.request.response_start":Dx(e.responseStart),"http.request.response_end":Dx(e.responseEnd),"http.request.time_to_first_byte":e.responseStart==null?void 0:e.responseStart/1e3}):t}function kx(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!=null))}var Ax=2147483647,jx=0,Mx={},Nx,Px;function Fx({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){let r=_x();if(r&&Zd()){r.mark&&Yy.performance.mark(`sentry-tracing-init`);let i=t?Tx(n):t===!1?Bx():void 0,a=e?Sx(n):e===!1?zx():void 0,o=Vx(),s=Hx();return()=>{o(),s(),i?.(),a?.()}}return()=>void 0}function Ix(){Zb(`longtask`,({entries:e})=>{let t=rm();if(!t)return;let{op:n,start_timestamp:r}=Bp(t);for(let i of e){let e=vx(Zd()+i.startTime),a=vx(i.duration);
22n===`navigation`&&r&&e<r||hx(t,e,e+a,{name:`Main UI thread blocked`,op:`ui.long-task`,attributes:{[Vf]:`auto.ui.browser.metrics`}})}})}function Lx(){new PerformanceObserver(e=>{let t=rm();if(t)for(let n of e.getEntries()){if(!n.scripts[0])continue;let e=vx(Zd()+n.startTime),{start_timestamp:r,op:i}=Bp(t);if(i===`navigation`&&r&&e<r)continue;let a=vx(n.duration),o={[Vf]:`auto.ui.browser.metrics`},{invoker:s,invokerType:c,sourceURL:l,sourceFunctionName:u,sourceCharPosition:d}=n.scripts[0];o[`browser.script.invoker`]=s,o[`browser.script.invoker_type`]=c,l&&(o[`code.filepath`]=l),u&&(o[`code.function`]=u),d!==-1&&(o[`browser.script.source_char_position`]=d),hx(t,e,e+a,{name:`Main UI thread blocked`,op:`ui.long-animation-frame`,attributes:o})}}).observe({type:`long-animation-frame`,buffered:!0})}function Rx(){Zb(`event`,({entries:e})=>{let t=rm();if(t){for(let n of e)if(n.name===`click`){let e=vx(Zd()+n.startTime),r=vx(n.duration),i={name:dx(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[Vf]:`auto.ui.browser.metrics`}},a=Sy(n.target);a&&(i.attributes[`ui.component_name`]=a),hx(t,e,e+r,i)}}})}function zx(){return qb(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(Mx.cls={value:e.value,unit:``},Px=t)},!0)}function Bx(){return Jb(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&wx(e.value)&&(Mx.lcp={value:e.value,unit:`millisecond`},Nx=t)},!0)}function Vx(){return Yb(({metric:e})=>{e.entries[e.entries.length-1]&&(Mx.ttfb={value:e.value,unit:`millisecond`})})}function Hx(){return Zb(`paint`,({entries:e})=>
22{let t=ob();for(let n of e){let e=n.startTime<t.firstHiddenTime;n.name===`first-paint`&&e&&(Mx.fp={value:n.startTime,unit:`millisecond`}),n.name===`first-contentful-paint`&&e&&(Mx.fcp={value:n.startTime,unit:`millisecond`})}})}function Ux(e,t){let n=_x(),r=Zd();if(!n?.getEntries||!r)return;let{spanStreamingEnabled:i,ignorePerformanceApiSpans:a,ignoreResourceSpans:o}=t,s=vx(r),c=n.getEntries(),{op:l,start_timestamp:u}=Bp(e);c.slice(jx).forEach(t=>{let n=vx(t.startTime),r=vx(Math.max(0,t.duration));if(!(l===`navigation`&&u&&s+n<u))switch(t.entryType){case`navigation`:Yx(e,t,s);break;case`mark`:case`paint`:case`measure`:qx(e,t,n,r,s,a);break;case`resource`:$x(e,t,t.name,n,r,s,o)}}),jx=Math.max(c.length-1,0),eS(e,i)}function Wx(e,t){let n=Zd();if(!_x()?.getEntries||!n){Gx();return}let{spanStreamingEnabled:r,recordClsOnPageloadSpan:i,recordLcpOnPageloadSpan:a}=t,o=vx(n);if(Bp(e).op===`pageload`){if(rS(Mx),r){let t=(t,n,r)=>{let i=r??`browser.web_vital.${t}.value`;e.setAttribute(i,n),Jy&&Y.log(`Setting web vital attribute`,{[i]:n},`on pageload span`)};[`ttfb`,`fp`,`fcp`].forEach(e=>{Mx[e]&&t(e,Mx[e].value)}),Mx[`ttfb.requestTime`]&&t(`ttfb.requestTime`,Mx[`ttfb.requestTime`].value,`browser.web_vital.ttfb.request_time`)}else i||delete Mx.cls,a||delete Mx.lcp,Object.entries(Mx).forEach(([t,n])=>{Um(t,n.value,n.unit,e)}),tS(e,t);e.setAttribute(r?`browser.performance.time_origin`:`performance.timeOrigin`,o),e.setAttribute(r?`browser.performance.navigation.activation_start`:`performance.activationStart`,$y())}Gx()}function Gx(){Nx=void 0,Px=void 0,Mx={}}function Kx(e){if(e?.entryType===`measure`)try{return e.detail.devtools.track===`Components â`}catch{return}}function qx(e,t,n,r,i,a){if(Kx(t)||[`mark`,`measure`].includes(t.entryType)&&Nd(t.name,a))return;let o=Qy(!1),s=vx(o?o.requestStart:0),c=i+Math.max(n,s),l=i+n,u=l+r,d={[Vf]:`auto.resource.browser.metrics`};c!==l&&(d[`sentry.browser.measure_happened_before_request`]=!0,d[`sentry.browser.measure_start_time`]=c),Jx(d,t),c<=u&&hx(e,c,u,{name:t.name,op:t.entryType,attributes:d})}function Jx(e,t){try{let n=t.detail;if(!n)return;if(typeof n==`object`){for(let[t,r]of Object.entries(n))if(r&&Zu(r))e[`sentry.browser.measure.detail.${t}`]=r;else if(r!==void 0)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(r)}catch{}return}if(Zu(n)){e[`sentry.browser.measure.detail`]=n;return}try{e[`sentry.browser.measure.detail`]=JSON.stringify(n)}catch{}}catch{}}function Yx(e,t,n){[`unloadEvent`,`redirect`,`domContentLoadedEvent`,`loadEvent`,`connect`].forEach(r=>{Xx(e,t,r,n)}),Xx(e,t,`secureConnection`,n,`TLS/SSL`),Xx(e,t,`fetch`,n,`cache`),Xx(e,t,`domainLookup`,n,`DNS`),Qx(e,t,n)}function Xx(e,t,n,r,i=n){let a=t[Zx(n)],o=t[`${n}Start`];o&&a&&hx(e,r+vx(o),r+vx(a),{op:`browser.${i}`,name:t.name,attributes:{[Vf]:`auto.ui.browser.metrics`,...n===`redirect`&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function Zx(e){return e===`secureConnection`?`connectEnd`:e===`fetch`?`domainLookupStart`:`${e}End`}function Qx(e,t,n){let r=n+vx(t.requestStart),i=n+vx(t.responseEnd),a=n+vx(t.responseStart);t.responseEnd&&(hx(e,r,i,{op:`browser.request`,name:t.name,attributes:{[Vf]:`auto.ui.browser.metrics`}}),hx(e,a,i,{op:`browser.response`,name:t.name,attributes:{[Vf]:`auto.ui.browser.metrics`}}))}function $x(e,t,n,r,i,a,o){if(t.initiatorType===`xmlhttprequest`||t.initiatorType===`fetch`)return;let s=t.initiatorType?`resource.${t.initiatorType}`:`resource.other`;if(o?.includes(s))return;let c={[Vf]:`auto.resource.browser.metrics`},l=L_(n);l.protocol&&(c[`url.scheme`]=l.protocol.split(`:`).pop()),l.host&&(c[`server.address`]=l.host),c[`url.same_origin`]=n.includes(Yy.location.origin),c[Ih]=n,nS(t,c,[[`responseStatus`,`http.response.status_code`],[`transferSize`,`http.response_transfer_size`],[`encodedBodySize`,`http.response_content_length`],[`decodedBodySize`,`http.decoded_response_content_length`],[`renderBlockingStatus`,`resource.render_blocking_status`],[`deliveryType`,`http.response_delivery_type`]]);let u={...c,...Ox(t)},d=a+r;hx(e,d,d+i,{name:n.replace(Yy.location.origin,``),op:s,attributes:u})}function eS(e,t){let n=Yy.navigator;if(!n)return;let r=n.connection;r&&(r.effectiveType&&e.setAttribute(t?`network.connection.effective_type`:`effectiveConnectionType`,r.effectiveType),r.type&&e.setAttribute(t?`network.connection.type`:`connectionType`,r.type),mx(r.rtt)&&(t?e.setAttribute(`network.connection.rtt`,r.rtt):Bp(e).op===`pageload`&&Um(`connection.rtt`,r.rtt,`millisecond`))),mx(n.deviceMemory)&&(t?e.setAttribute(`device.memory.estimated_capacity`,n.deviceMemory):e.setAttribute(`deviceMemory`,`${n.deviceMemory} GB`)),mx(n.hardwareConcurrency)&&(t?e.setAttribute(`device.processor_count`,n.hardwareConcurrency):e.setAttribute(`hardwareConcurrency`,String(n.hardwareConcurrency)))}function tS(e,t){Nx&&t.recordLcpOnPageloadSpan&&(Nx.element&&e.setAttribute(`lcp.element`,dx(Nx.element)),Nx.id&&e.setAttribute(`lcp.id`,Nx.id),Nx.url&&e.setAttribute(`lcp.url`,Nx.url.trim().slice(0,200)),Nx.loadTime!=null&&e.setAttribute(`lcp.loadTime`,Nx.loadTime),Nx.renderTime!=null&&e.setAttribute(`lcp.renderTime`,Nx.renderTime),e.setAttribute(`lcp.size`,Nx.size)),Px?.sources&&t.recordClsOnPageloadSpan&&Px.sources.forEac
22h((t,n)=>e.setAttribute(`cls.source.${n+1}`,dx(t.node)))}function nS(e,t,n){n.forEach(([n,r])=>{let i=e[n];i!=null&&(typeof i==`number`&&i<Ax||typeof i==`string`)&&(t[r]=i)})}function rS(e){let t=Qy(!1);if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e[`ttfb.requestTime`]={value:n-r,unit:`millisecond`})}var iS=[],aS=new Map,oS=new Map;function sS(){if(_x()&&Zd()){let e=lS();return()=>{e()}}return()=>void 0}var cS={click:`click`,pointerdown:`click`,pointerup:`click`,mousedown:`click`,mouseup:`click`,touchstart:`click`,touchend:`click`,mouseover:`hover`,mouseout:`hover`,mouseenter:`hover`,mouseleave:`hover`,pointerover:`hover`,pointerout:`hover`,pointerenter:`hover`,pointerleave:`hover`,dragstart:`drag`,dragend:`drag`,drag:`drag`,dragenter:`drag`,dragleave:`drag`,dragover:`drag`,drop:`drag`,keydown:`press`,keyup:`press`,keypress:`press`,input:`press`};function lS(){return Xb(uS)}var uS=({metric:e})=>{if(e.value==null)return;let t=vx(e.value);if(t>60)return;let n=e.entries.find(t=>t.duration===e.value&&cS[t.name]);if(!n)return;let{interactionId:r}=n,i=cS[n.name],a=vx(Zd()+n.startTime),o=rm(),s=o?tm(o):void 0,c=r==null?void 0:aS.get(r),l=c?.span||s,u=l?Bp(l).description:jf().getScopeData().transactionName,d=gx({name:c?.elementName||dx(n.target),transaction:u,attributes:{[Vf]:`auto.http.browser.inp`,[Bf]:`ui.interaction.${i}`,[qf]:n.duration},startTime:a});d&&(d.addEvent(`inp`,{[Uf]:`millisecond`,[Wf]:e.value}),d.end(a+t))};function dS(e){return e==null?void 0:aS.get(e)}function fS(){let e=Object.keys(cS);Fg()&&e.forEach(e=>{Yy.addEventListener(e,t,{capture:!0,passive:!0})});function t(e){let t=e.target;if(!t)return;let n=dx(t),r=Math.round(e.timeStamp);if(oS.set(r,n),oS.size>50){let e=oS.keys().next().value;e!==void 0&&oS.delete(e)}}function n(e){let t=Math.round(e.startTime),n=oS.get(t);if(!n)for(let e=-5;e<=5;e++){let r=oS.get(t+e);if(r){n=r;break}}return n||`<unknown>`}let r=({entries:e})=>{let t=rm(),r=t&&tm(t);e.forEach(e=>{if(!sx(e))return;let t=e.interactionId;if(t==null||aS.has(t))return;let i=e.target?dx(e.target):n(e);if(iS.length>10){let e=iS.shift();aS.delete(e)}iS.push(t),aS.set(t,{span:r,elementName:i})})};Zb(`event`,r),Zb(`first-input`,r)}function pS(e){let{name:t,op:n,origin:r,metricName:i,value:a,attributes:o,parentSpan:s,reportEvent:c,startTime:l,endTime:u}=e,d=jf().getScopeData().transactionName,f={[Vf]:r,[Bf]:n,[qf]:0,[`browser.web_vital.${i}.value`]:a,[Fh]:d,[Ph]:d,"user_agent.original":Yy.navigator?.userAgent,...o};s&&Vp(s).attributes?.[`sentry.op`]===`pageload`&&(f[`sentry.pageload.span_id`]=s.spanContext().spanId),c&&(f[`browser.web_vital.${i}.report_event`]=c);let p=th({name:t,attributes:f,startTime:l,parentSpan:s});p&&p.end(u??l)}function mS(e){let t=0,n;if(!bx(`largest-contentful-paint`))return;let r=Jb(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&wx(e.value)&&(t=e.value,n=r)},!0);xx(e,(e,i,a)=>{hS(t,n,a,e),r()})}function hS(e,t,n,r){if(!wx(e))return;Jy&&Y.log(`Sending LCP span (${e})`);let i=Zd()||0,a=vx(i),o=vx(i+(t?.startTime||0)),s=t?dx(t.element):`Largest contentful paint`,c={};t?.element&&(c[`browser.web_vital.lcp.element`]=dx(t.element)),t?.id&&(c[`browser.web_vital.lcp.id`]=t.id),t?.url&&(c[`browser.web_vital.lcp.url`]=t.url),t?.loadTime!=null&&(c[`browser.web_vital.lcp.load_time`]=t.loadTime),t?.renderTime!=null&&(c[`browser.web_vital.lcp.render_time`]=t.renderTime),t?.size!=null&&(c[`browser.web_vital.lcp.size`]=t.size),pS({name:s,op:`ui.webvital.lcp`,origin:`auto.http.browser.lcp`,metricName:`lcp`,value:e,attributes:c,parentSpan:n,reportEvent:r,startTime:a,endTime:o})}function gS(e){let t=0,n;if(!bx(`layout-shift`))return;let r=qb(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(t=e.value,n=r)},!0);xx(e,(e,i,a)=>{_S(t,n,a,e),r()})}function _S(e,t,n,r){Jy&&Y.log(`Sending CLS span (${e})`);let i=t?vx((Zd()||0)+t.startTime):Jd(),a=t?dx(t.sources[0]?.node):`Layout shift`,o={};t?.sources&&t.sources.forEach((e,t)=>{o[`browser.web_vital.cls.source.${t+1}`]=dx(e.node)}),pS({name:a,op:`ui.webvital.cls`,origin:`auto.http.browser.cls`,metricName:`cls`,value:e,attributes:o,parentSpan:n,reportEvent:r,startTime:i})}function vS(){_x()&&Zd()&&Xb(({metric:e})=>
22{if(e.value==null||vx(e.value)>60)return;let t=e.entries.find(t=>t.duration===e.value&&cS[t.name]);t&&yS(e.value,t)})}function yS(e,t){Jy&&Y.log(`Sending INP span (${e})`);let n=vx(Zd()+t.startTime),r=vx(e),i=cS[t.name],a=dS(t.interactionId),o=rm(),s=o?tm(o):void 0,c=a?.span||s,l=c?Vp(c).name:jf().getScopeData().transactionName;pS({name:a?.elementName||dx(t.target),op:`ui.interaction.${i}`,origin:`auto.http.browser.inp`,metricName:`inp`,value:e,attributes:{[qf]:t.duration,[Fh]:l,[Ph]:l},startTime:n,endTime:n+r,parentSpan:c})}var bS=1e3,xS,SS,CS;function wS(e){Pu(`dom`,e),Fu(`dom`,TS)}function TS(){if(!Yy.document)return;let e=Iu.bind(null,`dom`),t=OS(e,!0);Yy.document.addEventListener(`click`,t,!1),Yy.document.addEventListener(`keypress`,t,!1),[`EventTarget`,`Node`].forEach(t=>{let n=Yy[t]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(ad(n,`addEventListener`,function(t){return function(n,r,i){if(n===`click`||n==`keypress`)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){let r=OS(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch{}return t.call(this,n,r,i)}}),ad(n,`removeEventListener`,function(e){return function(t,n,r){if(t===`click`||t==`keypress`)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),Object.keys(n).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function ES(e){if(e.type!==SS)return!1;try{if(!e.target||e.target._sentryId!==CS)return!1}catch{}return!0}function DS(e,t){return e===`keypress`?!t?.tagName||!(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable):!1}function OS(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=kS(n);if(DS(n.type,r))return;od(n,`_sentryCaptured`,!0),r&&!r._sentryId&&od(r,`_sentryId`,Ld());let i=n.type===`keypress`?`input`:n.type;ES(n)||(e({event:n,name:i,global:t}),SS=n.type,CS=r?r._sentryId:void 0),clearTimeout(xS),xS=Yy.setTimeout(()=>{CS=void 0,SS=void 0},bS)}}function kS(e){try{return e.target}catch{return null}}var AS;function jS(e){let t=`history`;Pu(t,e),Fu(t,MS)}function MS(){if(Yy.addEventListener(`popstate`,()=>{let e=Yy.location.href,t=AS;AS=e,t!==e&&Iu(`history`,{from:t,to:e})}),!sy())return;function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let r=AS,i=NS(String(n));if(AS=i,r===i)return e.apply(this,t);Iu(`history`,{from:r,to:i})}return e.apply(this,t)}}ad(Yy.history,`pushState`,e),ad(Yy.history,`replaceState`,e)}function NS(e){try{return new URL(e,Yy.location.origin).toString()}catch{return e}}var PS={};function FS(e){let t=PS[e];if(t)return t;let n=Yy[e];if(ly(n))return PS[e]=n.bind(Yy);let r=Yy.document;if(r&&typeof r.createElement==`function`)try{let t=r.createElement(`iframe`);t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(t)}catch(t){Jy&&Y.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(PS[e]=n.bind(Yy))}function IS(e){PS[e]=void 0}function LS(...e){return FS(`setTimeout`)(...e)}var RS=`__sentry_xhr_v3__`;function zS(e){Pu(`xhr`,e),Fu(`xhr`,BS)}function BS(){if(!Yy.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=Jd()*1e3,a=Yu(n[0])?n[0].toUpperCase():void 0,o=VS(n[1]);if(!a||!o)return e.apply(t,n);t[RS]={method:a,url:o,request_headers:{}},a===`POST`&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[RS];if(e&&t.readyState===4){try{e.status_code=t.status}catch{}Iu(`xhr`,{endTimestamp:Jd()*1e3,startTimestamp:i,xhr:t,virtualError:r}),t.removeEventListener(`readystatechange`,s)}};return`onreadystatechange`in t&&typeof t.onreadystatechange==`function`?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply(e,t,n){return s(),e.apply(t,n)}}):t.addEventListener(`readystatechange`,s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,a=t[RS];return a&&Yu(r)&&Yu(i)&&(a.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[RS];return r?(n[0]!==void 0&&(r.body=n[0]),Iu(`xhr`,{startTimestamp:Jd()*1e3,xhr:t}),e.apply(t,n)):e.apply(t,n)}})}function VS(e){if(Yu(e))return e;try{return e.toString()}catch{}}var HS=Symbol.for(`sentry__originalRequestBody`);function US(e){return new URLSearchParams(e).toString()}function WS(e,t=Y){try{if(typeof e==`string`)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[US(e)];if(!e)return[void 0]}catch(n){return Jy&&t.error(n,`Failed to serialize body`,e),[void 0,`BODY_PARSE_ERROR`]}return Jy&&t.log(`Skipping network body because of body type`,e),[void 0,`UNPARSEABLE_BODY_TYPE`]}function GS(e=[]){if(e.length>
22=2&&e[1]&&typeof e[1]==`object`&&`body`in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){let t=e[0][HS];return t===void 0?void 0:t}}function KS(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return Jy&&Y.error(t,`Failed to get xhr response headers`,e),{}}return t?t.split(`\r 23`).reduce((e,t)=>{let[n,r]=t.split(`: `);return r&&(e[n.toLowerCase()]=r),e},{}):{}}function qS(e){if(typeof Element>`u`)return!1;try{return e instanceof Element}catch{return!1}}function JS(e){try{return new URL(e,Yy.location.origin).toString()}catch{return e}}var YS=40;function XS(e,t=FS(`fetch`)){let n=0,r=0;async function i(i){let a=i.body.length;n+=a,r++;let o={body:i.body,method:`POST`,referrerPolicy:`strict-origin`,headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{let n=await t(e.url,o);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get(`X-Sentry-Rate-Limits`),"retry-after":n.headers.get(`Retry-After`)}}}catch(e){throw IS(`fetch`),e}finally{n-=a,r--}}return n_(e,i,Xg(e.bufferSize||YS))}var ZS=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,QS=30,$S=50;function eC(e,t,n,r){let i={filename:e,function:t===`<anonymous>`?`?`:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var tC=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,nC=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,rC=/\((\S*)(?::(\d+))(?::(\d+))\)/,iC=/at (.+?) ?\(data:(.+?),/,aC=[QS,e=>{let t=e.match(iC);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=tC.exec(e);if(n){let[,e,t,r]=n;return eC(e,`?`,+t,+r)}let r=nC.exec(e);if(r){if(r[2]?.indexOf(`eval`)===0){let e=rC.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=lC(r[1]||`?`,r[2]);return eC(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],oC=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,sC=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,cC=Tu(aC,[$S,e=>{let t=oC.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let e=sC.exec(t[3]);e&&(t[1]=t[1]||`eval`,t[3]=e[1],t[4]=e[2],t[5]=``)}let e=t[3],n=t[1]||`?`;return[n,e]=lC(n,e),eC(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),lC=(e,t)=>{let n=e.indexOf(`safari-extension`)!==-1,r=e.indexOf(`safari-web-extension`)!==-1;return n||r?[e.indexOf(`@`)===-1?`?`:e.split(`@`)[0],n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},uC=1024,dC=`Breadcrumbs`,fC=jg(((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:dC,setup(e){t.console&&kv(hC(e)),t.dom&&wS(mC(e,t.dom)),t.xhr&&zS(gC(e)),t.fetch&&dy(_C(e)),t.history&&jS(vC(e)),t.sentry&&e.on(`beforeSendEvent`,pC(e))}}}));function pC(e){return function(t){Ff()===e&&Q_({category:`sentry.${t.type===`transaction`?`transaction`:`event`}`,event_id:t.event_id,level:t.level,message:zd(t)},{event:t})}}function mC(e,t){return function(n){if(Ff()!==e)return;let r,i,a=typeof t==`object`?t.serializeAttribute:void 0,o=typeof t==`object`&&typeof t.maxStringLength==`number`?t.maxStringLength:void 0;o&&o>uC&&(ZS&&Y.warn(`\`dom.maxStringLength\` cannot exceed ${uC}, but a value of ${o} was configured. Sentry will use ${uC} instead.`),o=uC),typeof a==`string`&&(a=[a]);try{let e=n.event,t=yC(e)?e.target:e;r=dx(t,{keyAttrs:a,maxStringLength:o}),i=Sy(t)}catch{r=`<unknown>`}if(r.length===0)return;let s={category:`ui.${n.name}`,message:r};i&&(s.data={"ui.component_name":i}),Q_(s,{event:n.event,name:n.name,global:n.global})}}function hC(e){return function(t){if(Ff()!==e)return;let n={category:`console`,data:{arguments:t.args,logger:`console`},level:Mv(t.level),message:jd(t.args,` `)};if(t.level===`assert`){if(t.args[0]===!1)n.message=`Assertion failed: ${jd(t.args.slice(1),` `)||`console.assert`}`,n.data.arguments=t.args.slice(1);else return}Q_(n,{input:t.args,level:t.level})}}function gC(e){return function(t){if(Ff()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[RS];if(!n||!r||!i)return;let{method:a,url:o,status_code:s,body:c}=i,l={method:a,url:o,status_code:s},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:`xhr`,data:l,type:`http`,level:ay(s)};e.emit(`beforeOutgoingRequestBreadcrumb`,d,u),Q_(d,u)}}function _C(e){return function(t){if(Ff()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;
23if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method===`POST`)){if(t.error){let i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},a={category:`fetch`,data:t.fetchData,level:`error`,type:`http`};e.emit(`beforeOutgoingRequestBreadcrumb`,a,i),Q_(a,i)}else{let i=t.response,a={...t.fetchData,status_code:i?.status},o={input:t.args,response:i,startTimestamp:n,endTimestamp:r},s={category:`fetch`,data:a,type:`http`,level:ay(a.status_code)};e.emit(`beforeOutgoingRequestBreadcrumb`,s,o),Q_(s,o)}}}}function vC(e){return function(t){if(Ff()!==e)return;let n=t.from,r=t.to,i=L_(Cy.location.href),a=n?L_(n):void 0,o=L_(r);a?.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),Q_({category:`navigation`,data:{from:n,to:r}})}}function yC(e){return!!e&&!!e.target}var bC=`EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload`.split(`,`),xC=`BrowserApiErrors`,SC=jg(((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:xC,setupOnce(){t.setTimeout&&ad(Cy,`setTimeout`,CC),t.setInterval&&ad(Cy,`setInterval`,CC),t.requestAnimationFrame&&ad(Cy,`requestAnimationFrame`,wC),t.XMLHttpRequest&&`XMLHttpRequest`in Cy&&ad(XMLHttpRequest.prototype,`send`,TC);let e=t.eventTarget;e&&(Array.isArray(e)?e:bC).forEach(e=>EC(e,t))}}}));function CC(e){return function(...t){let n=t[0];return t[0]=Dy(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${Au(e)}`}}),e.apply(this,t)}}function wC(e){return function(t){return e.apply(this,[Dy(t,{mechanism:{data:{handler:Au(e)},handled:!1,type:`auto.browser.browserapierrors.requestAnimationFrame`}})])}}function TC(e){return function(...t){let n=this;return[`onload`,`onerror`,`onprogress`,`onreadystatechange`].forEach(e=>{e in n&&typeof n[e]==`function`&&ad(n,e,function(t){let n={mechanism:{data:{handler:Au(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=cd(t);return r&&(n.mechanism.data.handler=Au(r)),Dy(t,n)})}),e.apply(this,t)}}function EC(e,t){let n=Cy[e]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(ad(n,`addEventListener`,function(n){return function(r,i,a){try{DC(i)&&(i.handleEvent=Dy(i.handleEvent,{mechanism:{data:{handler:Au(i),target:e},handled:!1,type:`auto.browser.browserapierrors.handleEvent`}}))}catch{}return t.unregisterOriginalCallbacks&&OC(this,r,i),n.apply(this,[r,Dy(i,{mechanism:{data:{handler:Au(i),target:e},handled:!1,type:`auto.browser.browserapierrors.addEventListener`}}),a])}}),ad(n,`removeEventListener`,function(e){return function(t,n,r){try{if(Object.prototype.hasOwnProperty.call(n,`__sentry_wrapped__`)){let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}}catch{}return e.call(this,t,n,r)}}))}function DC(e){return typeof e.handleEvent==`function`}function OC(e,t,n){e&&typeof e==`object`&&`removeEventListener`in e&&typeof e.removeEventListener==`function`&&e.removeEventListener(t,n)}var kC=jg((e={})=>{let t=e.lifecycle??`route`;return{name:`BrowserSession`,setupOnce(){if(Cy.document===void 0){ZS&&Y.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}gg({ignoreDuration:!0});let e=!1;jb(()=>{e||=(yg(),!0)});let n=Mf(),r=n.getUser();n.addScopeListener(t=>{let n=t.getUser();(r?.id!==n?.id||r?.ip_address!==n?.ip_address)&&(r=n,e&&yg())}),t===`route`&&jS(({from:t,to:n})=>{t!==n&&(gg({ignoreDuration:!0}),yg(),e=!0)})}}}),AC=`CultureContext`,jC=jg((()=>({name:AC,preprocessEvent(e){let t=MC();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=MC();t&&Bh(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}})));function MC(){try{let e=Cy.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}var NC=`GlobalHandlers`,PC=jg(((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:NC,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(FC(e),BC(`onerror`)),t.onunhandledrejection&&(IC(e),BC(`onunhandledrejection`))}}}));function FC(e){Ru(t=>{let{stackParser:n,attachStacktrace:r}=VC();if(Ff()!==e||Ty())return;let{msg:i,url:a,line:o,column:s,error:c}=t,l=zC(Vy(n,c||i,void 0,r,!1),a,o,s);l.level=`error`,fg(l,{originalException:c,mechanism:{handled:!1,type:`auto.browser.global_handlers.onerror`}})})}function IC(e){Vu(t=>{let{stackParser:n,attachStacktrace:r}=VC();if(Ff()!==e||Ty())return;let i=LC(t),a=Zu(i)?RC(i):Vy(n,i,void 0,r,!0);a.level=`error`,fg(a,{originalException:i,mechanism:{handled:!1,type:`auto.browser.global_handlers.onunhandledrejection`}})})}function LC(e){if(Zu(e))return e;try{if(`reason`in e)return e.reason;if(`detail`in e&&`reason`in e.detail)return e.detail.reason}catch{}return e}function RC(e){return{exception:{values:[{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function zC(e,t,n,r){let i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},c=s.frames=s.frames||[];
23return c.length===0&&c.push({colno:r,lineno:n,filename:HC(t)??xy(),function:`?`,in_app:!0}),e}function BC(e){ZS&&Y.log(`Global Handler attached: ${e}`)}function VC(){return Ff()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function HC(e){if(Yu(e)&&e.length!==0)return e.startsWith(`data:`)?`<${z_(e,!1)}>`:e}var UC=jg(()=>({name:`HttpContext`,preprocessEvent(e){if(!Cy.navigator&&!Cy.location&&!Cy.document)return;let t=Oy(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}},processSpan(e){if(!Cy.navigator&&!Cy.location&&!Cy.document)return;let t=Oy();Bh(e,{[zh]:t.headers[`User-Agent`],...e.is_segment&&{"url.full":e.attributes?.[`sentry.op`]===`http.client`?void 0:t.url,"http.request.header.referer":t.headers.Referer}})}})),WC=`cause`,GC=5,KC=`LinkedErrors`,qC=jg(((e={})=>{let t=e.limit||GC,n=e.key||WC;return{name:KC,preprocessEvent(e,r,i){hv(ky,i.getOptions().stackParser,n,t,e,r)}}})),JC=/^HTML(\w*)Element$/;function YC(e){if(typeof window<`u`&&e===window)return`[Window]`;if(typeof document<`u`&&e===document)return`[Document]`;if(qS(e)){let t=XC(e);if(JC.test(t))return`[HTMLElement: ${dx(e)}]`}}function XC(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function ZC(){return QC()?(ZS&&pu(()=>{console.error(`[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/`)}),!0):!1}function QC(){if(Cy.window===void 0)return!1;let e=Cy;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;let t=xy();return!(Cy===Cy.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}function $C(e){return[av(),tv(),Yv(),SC(),fC(),PC(),qC(),Pv(),UC(),jC(),kC()]}function ew(e={}){let t=!e.skipBrowserExtensionCheck&&ZC(),n=e.defaultIntegrations==null?$C():e.defaultIntegrations,r={...e,enabled:!t&&e.enabled,stackParser:Eu(e.stackParser||cC),integrations:Dg({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||XS};return xd(YC),j_(Ky,r)}var tw=au,nw=`sentryReplaySession`,rw=`replay_event`,iw=`Unable to send Replay`,aw=3e5,ow=9e5,sw=5e3,cw=5500,lw=6e4,uw=5e3,dw=3,fw=15e4,pw=5e3,mw=3e3,hw=300,gw=2e7,_w=4999,vw=5e4,yw=36e5,bw=Object.defineProperty,xw=(e,t,n)=>t in e?bw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sw=(e,t,n)=>xw(e,typeof t==`symbol`?t:t+``,n),Cw=(e=>(e[e.Document=0]=`Document`,e[e.DocumentType=1]=`DocumentType`,e[e.Element=2]=`Element`,e[e.Text=3]=`Text`,e[e.CDATA=4]=`CDATA`,e[e.Comment=5]=`Comment`,e))(Cw||{});function ww(e){return e.nodeType===e.ELEMENT_NODE}function Tw(e){return e?.host?.shadowRoot===e}function Ew(e){return Object.prototype.toString.call(e)===`[object ShadowRoot]`}function Dw(e){return e.includes(` background-clip: text;`)&&!e.includes(` -webkit-background-clip: text;`)&&(e=e.replace(/\sbackground-clip:\s*text;/g,` -webkit-background-clip: text; background-clip: text;`)),e}function Ow(e){let{cssText:t}=e;if(t.split(`"`).length<3)return t;let n=[`@import`,`url(${JSON.stringify(e.href)})`];return e.layerName===``?n.push(`layer`):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(` `)+`;`}function kw(e){try{let t=e.rules||e.cssRules;return t?Dw(Array.from(t,jw).join(``)):null}catch{return null}}function Aw(e){let t=``;for(let n=0;n<e.style.length;n++){let r=e.style,i=r[n],a=r.getPropertyPriority(i);t+=`${i}:${r.getPropertyValue(i)}${a?` !important`:``};`}return`${e.selectorText} { ${t} }`}function jw(e){let t;if(Nw(e))try{t=kw(e.styleSheet)||Ow(e)}catch{}else if(Pw(e)){let t=e.cssText,n=e.selectorText.includes(`:`),r=typeof e.style.all==`string`&&e.style.all;if(r&&(t=Aw(e)),n&&(t=Mw(t)),n||r)return t}return t||e.cssText}function Mw(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,`$1\\$2`)}function Nw(e){return`styleSheet`in e}function Pw(e){return`selectorText`in e}var Fw=class{constructor(){Sw(this,`idNodeMap`,new Map),Sw(this,`nodeMetaMap`,new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);
23this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Iw(){return new Fw}function Lw({maskInputOptions:e,tagName:t,type:n}){return t===`OPTION`&&(t=`SELECT`),!!(e[t.toLowerCase()]||n&&e[n]||n===`password`||t===`INPUT`&&!n&&e.text)}function Rw({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||``;return e?(r&&(i=r(i,t)),`*`.repeat(i.length)):i}function zw(e){return e.toLowerCase()}function Bw(e){return e.toUpperCase()}var Vw=`__rrweb_original__`;function Hw(e){let t=e.getContext(`2d`);if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){let i=t.getImageData,a=Vw in i?i[Vw]:i;if(new Uint32Array(a.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(e=>e!==0))return!1}return!0}function Uw(e){let t=e.type;return e.hasAttribute(`data-rr-is-password`)?`password`:t?zw(t):null}function Ww(e,t,n){return t===`INPUT`&&(n===`radio`||n===`checkbox`)?e.getAttribute(`value`)||``:e.value}function Gw(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}return n.pathname.match(/\.([0-9a-z]+)(?:$)/i)?.[1]??null}var Kw={};function qw(e){let t=Kw[e];if(t)return t;let n=window.document,r=window[e];if(n&&typeof n.createElement==`function`)try{let t=n.createElement(`iframe`);t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch{}return Kw[e]=r.bind(window)}function Jw(...e){return qw(`setTimeout`)(...e)}function Yw(...e){return qw(`clearTimeout`)(...e)}function Xw(e){try{return e.contentDocument}catch{}}function Zw(e){try{return e.contentWindow}catch{}}var Qw=1,$w=RegExp(`[^a-z0-9-_:]`),eT=-2;function tT(){return Qw++}function nT(e){if(e instanceof HTMLFormElement)return`form`;let t=zw(e.tagName);return $w.test(t)?`div`:t}function rT(e){let t=``;return t=e.indexOf(`//`)>-1?e.split(`/`).slice(0,3).join(`/`):e.split(`/`)[0],t=t.split(`?`)[0],t}var iT,aT,oT=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,sT=/^(?:[a-z+]+:)?\/\//i,cT=/^www\..*/i,lT=/^(data:)([^,]*),(.*)/i;function uT(e,t){if(!e||t.size===0)return e;try{let n=e.split(`;`),r=[];for(let e of n){if(e=e.trim(),!e)continue;let n=e.indexOf(`:`);if(n===-1){r.push(e);continue}let i=e.slice(0,n).trim();t.has(i)||r.push(e)}return r.join(`; `)+(r.length>0&&e.endsWith(`;`)?`;`:``)}catch(t){return console.warn(`Error filtering CSS properties:`,t),e}}function dT(e,t){return(e||``).replace(oT,(e,n,r,i,a,o)=>{let s=r||a||o,c=n||i||``;if(!s)return e;if(sT.test(s)||cT.test(s)||lT.test(s))return`url(${c}${s}${c})`;if(s[0]===`/`)return`url(${c}${rT(t)+s}${c})`;let l=t.split(`/`),u=s.split(`/`);l.pop();for(let e of u)if(e===`.`)continue;else e===`..`?l.pop():l.push(e);return`url(${c}${l.join(`/`)}${c})`})}var fT=/^[^ \t\n\r\u000c]+/,pT=/^[, \t\n\r\u000c]+/;function mT(e,t){if(t.trim()===``)return t;let n=0;function r(e){let r,i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):``}let i=[];for(;r(pT),!(n>=t.length);){let a=r(fT);if(a.slice(-1)===`,`)a=gT(e,a.substring(0,a.length-1)),i.push(a);else{let r=``;a=gT(e,a);let o=!1;for(;;){let e=t.charAt(n);if(e===``){i.push((a+r).trim());break}if(o)e===`)`&&(o=!1);else{if(e===`,`){n+=1,i.push((a+r).trim());break}e===`(`&&(o=!0)}r+=e,n+=1}}}return i.join(`, `)}var hT=new WeakMap;function gT(e,t){return!t||t.trim()===``?t:vT(e,t)}function _T(e){return!!(e.tagName===`svg`||e.ownerSVGElement)}function vT(e,t){let n=hT.get(e);if(n||(n=e.createElement(`a`),hT.set(e,n)),!t)t=``;else if(t.startsWith(`blob:`)||t.startsWith(`data:`))return t;return n.setAttribute(`href`,t),n.href}function yT(e,t,n,r,i,a,o){if(!r)return r;if(n===`src`||n===`href`&&(t!==`use`||r[0]!==`#`)||n===`xlink:href`&&r[0]!==`#`||n===`background`&&(t===`table`||t===`td`||t===`th`))return gT(e,r);if(n===`srcset`)return mT(e,r);if(n===`style`){let t=dT(r,vT(e));return o&&o.size>0&&(t=uT(t,o)),t}return t===`object`&&n===`data`?gT(e,r):typeof a==`function`?a(n,r,i):r}function bT(e,t,n){return(e===`video`||e===`audio`)&&t===`autoplay`}function xT(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t==`string`){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch{}return!1}function ST(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}function CT(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:CT(e.parentNode,t,n,r+1)}function wT(e,t){return n=>{let r=n;if(r===null)return!1;try{if(e){if(typeof e==`string`){if(r.matches(`.${e}`))return!0}else if(ST(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function TT(e,t,n,r,i,a){try{let o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(o===null)return!1;if(o.tagName===`INPUT`){let e=o.getAttribute(`autocomplete`);if([`current-password`,`new-password`,`cc-number`,`cc-exp`,`cc-exp-month`,`cc-exp-year`,`cc-csc`].includes(e))return!0}let s=-1,c=-1;if(a){if(c=CT(o,wT(r,i)),c<0)return!0;s=CT(o,wT(t,n),c>=0?c:1/0)}else{if(s=CT(o,wT(t,n)),s<0)return!1;c=CT(o,wT(r,i),s>=0?s:1/0)}return s>=0?c>=0?s<=c:!0:c>=0?!1:!!a}catch{}return!!a}function ET(e,t,n){let r=Zw(e);if(!r)return;let i=!1,a;try{a=r.document.readyState}catch{return}if(a!==`complete`){let r=Jw(()=>{i||=(t(),!0)},n);e.addEventListener(`load`,()=>{Yw(r),i=!0,t()});return}let o=`about:blank`;if(r.location.href!==o||e.src===o||e.src===``)return Jw(t,0),e.addEventListener(`load`,t);e.addEventListener(`load`,t)}function DT(e,t,n){let r=!1,i;try{i=e.sheet}catch{i=null}if(i)return;let a=Jw(()=>{r||=(t(),!0)},n);e.addEventListener(`load`,()=>{Yw(a),r=!0,t()})}function OT(e,t){let{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:m={}
23,maskTextFn:h,maskInputFn:g,dataURLOptions:v={},inlineImages:y,recordCanvas:b,keepIframeSrcFn:x,newlyAddedElement:S=!1,ignoreCSSAttributes:C}=t,w=kT(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode===`CSS1Compat`?{type:Cw.Document,childNodes:[]}:{type:Cw.Document,childNodes:[],compatMode:e.compatMode};case e.DOCUMENT_TYPE_NODE:return{type:Cw.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:return jT(e,{doc:n,blockClass:i,blockSelector:a,unblockSelector:o,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:m,maskInputFn:g,dataURLOptions:v,inlineImages:y,recordCanvas:b,keepIframeSrcFn:x,newlyAddedElement:S,rootId:w,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,ignoreCSSAttributes:C});case e.TEXT_NODE:return AT(e,{doc:n,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:h,maskInputOptions:m,maskInputFn:g,rootId:w});case e.CDATA_SECTION_NODE:return{type:Cw.CDATA,textContent:``,rootId:w};case e.COMMENT_NODE:return{type:Cw.Comment,textContent:e.textContent||``,rootId:w};default:return!1}}function kT(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return n===1?void 0:n}function AT(e,t){let{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:a,unmaskTextSelector:o,maskTextFn:s,maskInputOptions:c,maskInputFn:l,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName,f=e.textContent,p=d===`STYLE`||void 0,m=d===`SCRIPT`||void 0,h=d===`TEXTAREA`||void 0;if(p&&f){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(f=kw(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}f=dT(f,vT(t.doc))}m&&(f=`SCRIPT_PLACEHOLDER`);let g=TT(e,r,a,i,o,n);return!p&&!m&&!h&&f&&g&&(f=s?s(f,e.parentElement):f.replace(/[\S]/g,`*`)),h&&f&&(c.textarea||g)&&(f=l?l(f,e.parentNode):f.replace(/[\S]/g,`*`)),d===`OPTION`&&f&&(f=Rw({isMasked:TT(e,r,a,i,o,Lw({type:null,tagName:d,maskInputOptions:c})),element:e,value:f,maskInputFn:l})),{type:Cw.Text,textContent:f||``,isStyle:p,rootId:u}}function jT(e,t){let{doc:n,blockClass:r,blockSelector:i,unblockSelector:a,inlineStylesheet:o,maskInputOptions:s={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:d,recordCanvas:f,keepIframeSrcFn:p,newlyAddedElement:m=!1,rootId:h,maskTextClass:g,unmaskTextClass:v,maskTextSelector:y,unmaskTextSelector:b,ignoreCSSAttributes:x}=t,S=xT(e,r,i,a),C=nT(e),w={},T=e.attributes.length;for(let t=0;t<T;t++){let r=e.attributes[t];r.name&&!bT(C,r.name,r.value)&&(w[r.name]=yT(n,C,zw(r.name),r.value,e,c,x))}if(C===`link`&&o){let t=Array.from(n.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=kw(t)),r&&(w.rel=null,w.href=null,w.crossorigin=null,w._cssText=dT(r,t.href))}if(C===`style`&&e.sheet&&!(e.innerText||e.textContent||``).trim().length){let t=kw(e.sheet);t&&(w._cssText=dT(t,vT(n)))}if(C===`input`||C===`textarea`||C===`select`||C===`option`){let t=e,n=Uw(t),r=Ww(t,Bw(C),n),i=t.checked;if(n!==`submit`&&n!==`button`&&r){let e=TT(t,g,y,v,b,Lw({type:n,tagName:Bw(C),maskInputOptions:s}));w.value=Rw({isMasked:e,element:t,value:r,maskInputFn:l})}i&&(w.checked=i)}if(C===`option`&&(e.selected&&!s.select?w.selected=!0:delete w.selected),C===`canvas`&&f){if(e.__context===`2d`)Hw(e)||(w.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!(`__context`in e)){let t=e.toDataURL(u.type,u.quality),r=n.createElement(`canvas`);r.width=e.width,r.height=e.height,t!==r.toDataURL(u.type,u.quality)&&(w.rr_dataURL=t)}}if(C===`img`&&d){iT||(iT=n.createElement(`canvas`),aT=iT.getContext(`2d`));let t=e,r=t.currentSrc||t.getAttribute(`src`)||`<unknown-src>`,i=t.crossOrigin,a=()=>{t.removeEventListener(`load`,a);try{iT.width=t.naturalWidth,iT.height=t.naturalHeight,aT.drawImage(t,0,0),w.rr_dataURL=iT.toDataURL(u.type,u.quality)}catch(e){if(t.crossOrigin!==`anonymous`){t.crossOrigin=`anonymous`,t.complete&&t.naturalWidth!==0?a():t.addEventListener(`load`,a);return}console.warn(`Cannot inline img src=${r}! Error: ${e}`)}t.crossOrigin===`anonymous`&&(i?w.crossOrigin=i:t.removeAttribute(`crossorigin`))};
23t.complete&&t.naturalWidth!==0?a():t.addEventListener(`load`,a)}if((C===`audio`||C===`video`)&&(w.rr_mediaState=e.paused?`paused`:`played`,w.rr_mediaCurrentTime=e.currentTime),m||(e.scrollLeft&&(w.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(w.rr_scrollTop=e.scrollTop)),S){let{width:t,height:n}=e.getBoundingClientRect();w={class:w.class,rr_width:`${t}px`,rr_height:`${n}px`}}C===`iframe`&&!p(w.src)&&(!S&&!Xw(e)&&(w.rr_src=w.src),delete w.src);let E;try{customElements.get(C)&&(E=!0)}catch{}return{type:Cw.Element,tagName:C,attributes:w,childNodes:[],isSVG:_T(e)||void 0,needBlock:S,rootId:h,isCustom:E}}function MT(e){return e==null?``:e.toLowerCase()}function NT(e,t){return!!(t.comment&&e.type===Cw.Comment||e.type===Cw.Element&&(t.script&&(e.tagName===`script`||e.tagName===`link`&&(e.attributes.rel===`preload`||e.attributes.rel===`modulepreload`)||e.tagName===`link`&&e.attributes.rel===`prefetch`&&typeof e.attributes.href==`string`&&Gw(e.attributes.href)===`js`)||t.headFavicon&&(e.tagName===`link`&&e.attributes.rel===`shortcut icon`||e.tagName===`meta`&&(MT(e.attributes.name).match(/^msapplication-tile(image|color)$/)||MT(e.attributes.name)===`application-name`||MT(e.attributes.rel)===`icon`||MT(e.attributes.rel)===`apple-touch-icon`||MT(e.attributes.rel)===`shortcut icon`))||e.tagName===`meta`&&(t.headMetaDescKeywords&&MT(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(MT(e.attributes.property).match(/^(og|twitter|fb):/)||MT(e.attributes.name).match(/^(og|twitter):/)||MT(e.attributes.name)===`pinterest`)||t.headMetaRobots&&(MT(e.attributes.name)===`robots`||MT(e.attributes.name)===`googlebot`||MT(e.attributes.name)===`bingbot`)||t.headMetaHttpEquiv&&e.attributes[`http-equiv`]!==void 0||t.headMetaAuthorship&&(MT(e.attributes.name)===`author`||MT(e.attributes.name)===`generator`||MT(e.attributes.name)===`framework`||MT(e.attributes.name)===`publisher`||MT(e.attributes.name)===`progid`||MT(e.attributes.property).match(/^article:/)||MT(e.attributes.property).match(/^product:/))||t.headMetaVerification&&(MT(e.attributes.name)===`google-site-verification`||MT(e.attributes.name)===`yandex-verification`||MT(e.attributes.name)===`csrf-token`||MT(e.attributes.name)===`p:domain_verify`||MT(e.attributes.name)===`verify-v1`||MT(e.attributes.name)===`verification`||MT(e.attributes.name)===`shopify-checkout-api-token`))))}function PT(e,t){let{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:f=!1,inlineStylesheet:p=!0,maskInputOptions:m={},maskAttributeFn:h,maskTextFn:g,maskInputFn:v,slimDOMOptions:y,dataURLOptions:b={},inlineImages:x=!1,recordCanvas:S=!1,onSerialize:C,onIframeLoad:w,iframeLoadTimeout:T=5e3,onBlockedImageLoad:E,onStylesheetLoad:D,stylesheetLoadTimeout:ee=5e3,keepIframeSrcFn:te=()=>!1,newlyAddedElement:ne=!1,ignoreCSSAttributes:re}=t,{preserveWhiteSpace:ie=!0}=t,ae=OT(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,maskAllText:s,unblockSelector:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:v,dataURLOptions:b,inlineImages:x,recordCanvas:S,keepIframeSrcFn:te,newlyAddedElement:ne,ignoreCSSAttributes:re});if(!ae)return console.warn(e,`not serialized`),null;let oe;oe=r.hasNode(e)?r.getId(e):NT(ae,y)||!ie&&ae.type===Cw.Text&&!ae.isStyle&&!ae.textContent.trim().length?eT:tT();let O=Object.assign(ae,{id:oe});if(r.add(e,O),oe===eT)return null;C&&C(e);let se=!f;if(O.type===Cw.Element){se&&=!O.needBlock;let t=e.shadowRoot;t&&Ew(t)&&(O.isShadowHost=!0)}if((O.type===Cw.Document||O.type===Cw.Element)&&se){y.headWhitespace&&O.type===Cw.Element&&O.tagName===`head`&&(ie=!1);let t={doc:n,mirror:r,blockClass:i,blockSelector:a,maskAllText:s,unblockSelector:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:f,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:v,slimDOMOptions:y,dataURLOptions:b,inlineImages:x,recordCanvas:S,preserveWhiteSpace:ie,onSerialize:C,onIframeLoad:w,iframeLoadTimeout:T,onBlockedImageLoad:E,onStylesheetLoad:D,stylesheetLoadTimeout:ee,keepIframeSrcFn:te,ignoreCSSAttributes:re},ne=e.childNodes?Array.from(e.childNodes):[];for(let e of ne){let n=PT(e,t);n&&O.childNodes.push(n)}if(ww(e)&&e.shadowRoot)for(let n of Array.from(e.shadowRoot.childNodes)){let r=PT(n,t);r&&(Ew(e.shadowRoot)&&(r.isShadow=!0),O.childNodes.push(r))}}if(e.parentNode&&Tw(e.parentNode)&&Ew(e.parentNode)&&(O.isShadow=!0),O.type===Cw.Element&&O.tagName===`iframe`&&!O.needBlock&&ET(e,()=>{let t=Xw(e);if(t&&w){let n=PT(t,{doc:t,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:v,slimDOMOptions:y,dataURLOptions:b,inlineImages:x,recordCanvas:S,preserveWhiteSpace:ie,onSerialize:C,onIframeLoad:w,iframeLoadTimeout:T,onStylesheetLoad:D,stylesheetLoadTimeout:ee,keepIframeSrcFn:te,ignoreCSSAttributes:re});n&&w(e,n)}},T),O.type===Cw.Element&&O.tagName===`img`&&!e.complete&&O.needBlock){let t=e,n=()=>
23{if(t.isConnected&&!t.complete&&E)try{let e=t.getBoundingClientRect();e.width>0&&e.height>0&&E(t,O,e)}catch{}t.removeEventListener(`load`,n)};t.isConnected&&t.addEventListener(`load`,n)}return O.type===Cw.Element&&O.tagName===`link`&&typeof O.attributes.rel==`string`&&(O.attributes.rel===`stylesheet`||O.attributes.rel===`preload`&&typeof O.attributes.href==`string`&&Gw(O.attributes.href)===`css`)&&DT(e,()=>{if(D){let t=PT(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:v,slimDOMOptions:y,dataURLOptions:b,inlineImages:x,recordCanvas:S,preserveWhiteSpace:ie,onSerialize:C,onIframeLoad:w,iframeLoadTimeout:T,onStylesheetLoad:D,stylesheetLoadTimeout:ee,keepIframeSrcFn:te,ignoreCSSAttributes:re});t&&D(e,t)}},ee),O.type===Cw.Element&&delete O.needBlock,O}function FT(e,t){let{mirror:n=new Fw,blockClass:r=`rr-block`,blockSelector:i=null,unblockSelector:a=null,maskAllText:o=!1,maskTextClass:s=`rr-mask`,unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:f=!1,recordCanvas:p=!1,maskAllInputs:m=!1,maskAttributeFn:h,maskTextFn:g,maskInputFn:v,slimDOM:y=!1,dataURLOptions:b,preserveWhiteSpace:x,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onBlockedImageLoad:T,onStylesheetLoad:E,stylesheetLoadTimeout:D,keepIframeSrcFn:ee=()=>!1,ignoreCSSAttributes:te=new Set([])}=t||{};return PT(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,maskAllText:o,maskTextClass:s,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:m===!1?{}:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:v,slimDOMOptions:y===!0||y===`all`?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:y===`all`,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:y===!1?{}:y,dataURLOptions:b,inlineImages:f,recordCanvas:p,preserveWhiteSpace:x,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onBlockedImageLoad:T,onStylesheetLoad:E,stylesheetLoadTimeout:D,keepIframeSrcFn:ee,newlyAddedElement:!1,ignoreCSSAttributes:te})}function IT(e,t,n=document){let r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}var LT=`Please stop import mirror directly. Instead of that,\r 24now you can use replayer.getMirror() to access the mirror instance of a replayer,\r 25or you can use record.mirror to access the mirror instance during recording.`,RT={map:{},getId(){return console.error(LT),-1},getNode(){return console.error(LT),null},removeNodeFromMap(){console.error(LT)},has(){return console.error(LT),!1},reset(){console.error(LT)}};typeof window<`u`&&window.Proxy&&window.Reflect&&(RT=new Proxy(RT,{get(e,t,n){return t===`map`&&console.error(LT),Reflect.get(e,t,n)}}));function zT(e,t,n={}){let r=null,i=0;return function(...a){let o=Date.now();!i&&n.leading===!1&&(i=o);let s=t-(o-i),c=this;s<=0||s>t?(r&&=(dE(r),null),i=o,e.apply(c,a)):!r&&n.trailing!==!1&&(r=uE(()=>{i=n.leading===!1?0:Date.now(),r=null,e.apply(c,a)},s))}}function BT(e,t,n,r,i=window){let a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(e){uE(()=>{n.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>BT(e,t,a||{},!0)}function VT(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],i=n(r);return typeof i==`function`&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}var HT=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(HT=()=>new Date().getTime());function UT(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset===void 0?t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0:e.pageXOffset,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset===void 0?t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0:e.pageYOffset}}function WT(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function GT(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function KT(e){if(!e)return null;
25try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function qT(e,t,n,r,i){if(!e)return!1;let a=KT(e);if(!a)return!1;let o=wT(t,n);if(!i){let e=r&&a.matches(r);return o(a)&&!e}let s=CT(a,o),c=-1;return s<0?!1:(r&&(c=CT(a,wT(null,r))),s>-1&&c<0||s<c)}function JT(e,t){return t.getId(e)!==-1}function YT(e,t){return t.getId(e)===eT}function XT(e,t){if(Tw(e))return!1;let n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:!e.parentNode||XT(e.parentNode,t):!0}function ZT(e){return!!e.changedTouches}function QT(e=window){`NodeList`in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),`DOMTokenList`in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError(`1 argument is required`);do if(this===t)return!0;while(t&&=t.parentNode);return!1})}function $T(e,t){return!!(e.nodeName===`IFRAME`&&t.getMeta(e))}function eE(e,t){return!!(e.nodeName===`LINK`&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute(`rel`)===`stylesheet`&&t.getMeta(e))}function tE(e){return!!e?.shadowRoot}var nE=class{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=t===void 0?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function rE(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function iE(e){let t=e,n;for(;n=rE(t);)t=n;return t}function aE(e){let t=e.ownerDocument;if(!t)return!1;let n=iE(e);return t.contains(n)}function oE(e){let t=e.ownerDocument;return t?t.contains(e)||aE(e):!1}var sE={};function cE(e){let t=sE[e];if(t)return t;let n=window.document,r=window[e];if(n&&typeof n.createElement==`function`)try{let t=n.createElement(`iframe`);t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch{}return sE[e]=r.bind(window)}function lE(...e){return cE(`requestAnimationFrame`)(...e)}function uE(...e){return cE(`setTimeout`)(...e)}function dE(...e){return cE(`clearTimeout`)(...e)}var fE=(e=>(e[e.DomContentLoaded=0]=`DomContentLoaded`,e[e.Load=1]=`Load`,e[e.FullSnapshot=2]=`FullSnapshot`,e[e.IncrementalSnapshot=3]=`IncrementalSnapshot`,e[e.Meta=4]=`Meta`,e[e.Custom=5]=`Custom`,e[e.Plugin=6]=`Plugin`,e))(fE||{}),pE=(e=>(e[e.Mutation=0]=`Mutation`,e[e.MouseMove=1]=`MouseMove`,e[e.MouseInteraction=2]=`MouseInteraction`,e[e.Scroll=3]=`Scroll`,e[e.ViewportResize=4]=`ViewportResize`,e[e.Input=5]=`Input`,e[e.TouchMove=6]=`TouchMove`,e[e.MediaInteraction=7]=`MediaInteraction`,e[e.StyleSheetRule=8]=`StyleSheetRule`,e[e.CanvasMutation=9]=`CanvasMutation`,e[e.Font=10]=`Font`,e[e.Log=11]=`Log`,e[e.Drag=12]=`Drag`,e[e.StyleDeclaration=13]=`StyleDeclaration`,e[e.Selection=14]=`Selection`,e[e.AdoptedStyleSheet=15]=`AdoptedStyleSheet`,e[e.CustomElement=16]=`CustomElement`,e))(pE||{}),mE=(e=>(e[e.MouseUp=0]=`MouseUp`,e[e.MouseDown=1]=`MouseDown`,e[e.Click=2]=`Click`,e[e.ContextMenu=3]=`ContextMenu`,e[e.DblClick=4]=`DblClick`,e[e.Focus=5]=`Focus`,e[e.Blur=6]=`Blur`,e[e.TouchStart=7]=`TouchStart`,e[e.TouchMove_Departed=8]=`TouchMove_Departed`,e[e.TouchEnd=9]=`TouchEnd`,e[e.TouchCancel=10]=`TouchCancel`,e))(mE||{}),hE=(e=>(e[e.Mouse=0]=`Mouse`,e[e.Pen=1]=`Pen`,e[e.Touch=2]=`Touch`,e))(hE||{}),gE=(e=>(e[e.Play=0]=`Play`,e[e.Pause=1]=`Pause`,e[e.Seeked=2]=`Seeked`,e[e.VolumeChange=3]=`VolumeChange`,e[e.RateChange=4]=`RateChange`,e))(gE||{}),_E;function vE(e){_E=e}function yE(){_E=void 0}for(var bE=e=>_E?((...t)=>{try{return e(...t)}catch(e){if(_E&&_E(e)===!0)return()=>{};throw e}}):e,xE=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,SE=typeof Uint8Array>`u`?[]:new Uint8Array(256),CE=0;CE<xE.length;CE++)SE[xE.charCodeAt(CE)]=CE;var wE=class{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}};function TE(e){try{return e.contentDocument}catch{}}function EE(e){try{return e.contentWindow}catch{}}var DE=class{constructor(e){this.doc=e,this.unattachedDoc=null}parse(e){return this.parseWithConstructableStylesheet(e)||this.parseWithDetachedElement(e)}parseWithConstructableStylesheet(e){if(typeof CSSStyleSheet>`u`||typeof CSSStyleSheet.prototype.replaceSync!=`function`)return null;try{let t=new CSSStyleSheet;t.replaceSync(`x { ${e} }`);let n=t.cssRules[0];
25return!n||n.type!==CSSRule.STYLE_RULE?null:n.style}catch{return null}}parseWithDetachedElement(e){let t=this.getUnattachedDoc().createElement(`span`);return t.setAttribute(`style`,e),t.style}getUnattachedDoc(){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}return this.unattachedDoc}};function OE(e){return`__ln`in e}var kE=class{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error(`Position outside of list range`);let t=this.head;for(let n=0;n<e;n++)t=t?.next||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&OE(e.previousSibling)){let n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&OE(e.nextSibling)&&e.nextSibling.__ln.previous){let n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;t.next===null&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}},AE=(e,t)=>`${e}@${t}`,jE=class{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,n=new kE,r=e=>{let t=e,n=eT;for(;n===eT;)t&&=t.nextSibling,n=t&&this.mirror.getId(t);return n},i=i=>{if(!i.parentNode||!oE(i))return;let a=Tw(i.parentNode)?this.mirror.getId(rE(i)):this.mirror.getId(i.parentNode),o=r(i);if(a===-1||o===-1)return n.addNode(i);let s=PT(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{$T(e,this.mirror)&&!qT(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),eE(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),tE(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{if(qT(e,this.blockClass,this.blockSelector,this.unblockSelector,!1))return;this.iframeManager.attachIframe(e,t);let n=EE(e);n&&this.canvasManager.addWindow(n),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});s&&(e.push({parentId:a,nextId:o,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!NE(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&i(e);for(let e of this.addedSet)!FE(this.droppedSet,e)&&!NE(this.removes,e,this.mirror)||FE(this.movedSet,e)?i(e):this.droppedSet.add(e);let a=null;for(;n.length;){let e=null;if(a){let t=this.mirror.getId(a.value.parentNode),n=r(a.value);t!==-1&&n!==-1&&(e=a)}if(!e){let t=n.tail;for(;t;){let n=t;if(t=t.previous,n){let t=this.mirror.getId(n.value.parentNode);if(r(n.value)===-1)continue;if(t!==-1){e=n;break}{let t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let r=t.parentNode.host;if(this.mirror.getId(r)!==-1){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}a=e.previous,n.removeNode(e.value),i(e.value)}let o={texts:this.texts.map(e=>
25({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if(typeof t.style==`string`){let n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split(`var(`).length===t.style.split(`var(`).length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(o.texts.length||o.attributes.length||o.removes.length||o.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(o))},this.processMutation=e=>{if(!YT(e.target,this.mirror))switch(e.type){case`characterData`:{let t=e.target.textContent;!qT(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:TT(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,KT(e.target)):t.replace(/[\S]/g,`*`):t,node:e.target});break}case`attributes`:{let t=e.target,n=e.attributeName,r=e.target.getAttribute(n);if(n===`value`){let n=Uw(t),i=t.tagName;r=Ww(t,i,n);let a=Lw({maskInputOptions:this.maskInputOptions,tagName:i,type:n});r=Rw({isMasked:TT(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,a),element:t,value:r,maskInputFn:this.maskInputFn})}if(qT(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let i=this.attributeMap.get(e.target);if(t.tagName===`IFRAME`&&n===`src`&&!this.keepIframeSrcFn(r)){if(!TE(t))n=`rr_src`;else return}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}}
25,this.attributes.push(i),this.attributeMap.set(e.target,i)),n===`type`&&t.tagName===`INPUT`&&(e.oldValue||``).toLowerCase()===`password`&&t.setAttribute(`data-rr-is-password`,`true`),!bT(t.tagName,n)&&(i.attributes[n]=yT(this.doc,zw(t.tagName),zw(n),r,t,this.maskAttributeFn),n===`style`)){let n=e.oldValue?this.styleDeclarationParser.parse(e.oldValue):null;for(let e of Array.from(t.style)){let r=t.style.getPropertyValue(e),a=t.style.getPropertyPriority(e);r!==(n?.getPropertyValue(e)||``)||a!==(n?.getPropertyPriority(e)||``)?a===``?i.styleDiff[e]=r:i.styleDiff[e]=[r,a]:i._unchangedStyles[e]=[r,a]}if(n)for(let e of Array.from(n))t.style.getPropertyValue(e)===``&&(i.styleDiff[e]=!1)}break}case`childList`:if(qT(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let n=this.mirror.getId(t),r=Tw(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);qT(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||YT(t,this.mirror)||!JT(t,this.mirror)||(this.addedSet.has(t)?(ME(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&n===-1||XT(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[AE(n,r)]?ME(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:Tw(e.target)&&Ew(e.target)?!0:void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(YT(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&n!==-1&&(this.movedMap[AE(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);qT(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes&&e.childNodes.forEach(e=>this.genAdds(e)),tE(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){`mutationCb.blockClass.blockSelector.unblockSelector.maskAllText.maskTextClass.unmaskTextClass.maskTextSelector.unmaskTextSelector.inlineStylesheet.maskInputOptions.maskAttributeFn.maskTextFn.maskInputFn.keepIframeSrcFn.recordCanvas.inlineImages.slimDOMOptions.dataURLOptions.doc.mirror.iframeManager.stylesheetManager.shadowDomManager.canvasManager.processedNodeManager.ignoreCSSAttributes`.split(`.`).forEach(t=>{this[t]=e[t]}),this.styleDeclarationParser=new DE(this.doc)}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}};function ME(e,t){e.delete(t),t.childNodes?.forEach(t=>ME(e,t))}function NE(e,t,n){return e.length!==0&&PE(e,t,n)}function PE(e,t,n){let r=t.parentNode;for(;r;){let t=n.getId(r);if(e.some(e=>e.id===t))return!0;r=r.parentNode}return!1}function FE(e,t){return e.size!==0&&IE(e,t)}function IE(e,t){let{parentNode:n}=t;return n?e.has(n)?!0:IE(e,n):!1}var LE=[];function RE(e){try{if(`composedPath`in e){let t=e.composedPath();if(t.length)return t[0]}else if(`path`in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function zE(e,t){let n=new jE;LE.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver,i=window?.Zone?.__symbol__?.(`MutationObserver`);i&&window[i]&&(r=window[i]);let a=new r(bE(t=>{e.onMutation&&e.onMutation(t)===!1||n.processMutations.bind(n)(t)}));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function BE({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};let i=typeof t.mousemove==`number`?t.mousemove:50,a=typeof t.mousemoveCallback==`number`?t.mousemoveCallback:500,o=[],s,c=zT(bE(t=>{let n=Date.now()-s;e(o.map(e=>(e.timeOffset-=n,e)),t),o=[],s=null}),a),l=bE(zT(bE(e=>{let t=RE(e),{clientX:n,clientY:i}=ZT(e)?e.changedTouches[0]:e;s||=HT(),o.push({x:n,y:i,id:r.getId(t),timeOffset:HT()-s}
25),c(typeof DragEvent<`u`&&e instanceof DragEvent?pE.Drag:e instanceof MouseEvent?pE.MouseMove:pE.TouchMove)}),i,{trailing:!1})),u=[IT(`mousemove`,l,n),IT(`touchmove`,l,n),IT(`drag`,l,n)];return bE(()=>{u.forEach(e=>e())})}function VE({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:o}){if(o.mouseInteraction===!1)return()=>{};let s=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,c=[],l=null,u=t=>o=>{let s=RE(o);if(qT(s,r,i,a,!0))return;let c=null,u=t;if(`pointerType`in o){switch(o.pointerType){case`mouse`:c=hE.Mouse;break;case`touch`:c=hE.Touch;break;case`pen`:c=hE.Pen}c===hE.Touch?mE[t]===mE.MouseDown?u=`TouchStart`:mE[t]===mE.MouseUp&&(u=`TouchEnd`):hE.Pen}else ZT(o)&&(c=hE.Touch);c===null?mE[t]===mE.Click&&(c=l,l=null):(l=c,(u.startsWith(`Touch`)&&c===hE.Touch||u.startsWith(`Mouse`)&&c===hE.Mouse)&&(c=null));let d=ZT(o)?o.changedTouches[0]:o;if(!d)return;let f=n.getId(s),{clientX:p,clientY:m}=d;bE(e)({type:mE[u],id:f,x:p,y:m,...c!==null&&{pointerType:c}})};return Object.keys(mE).filter(e=>Number.isNaN(Number(e))&&!e.endsWith(`_Departed`)&&s[e]!==!1).forEach(e=>{let n=zw(e),r=u(e);if(window.PointerEvent)switch(mE[e]){case mE.MouseDown:case mE.MouseUp:n=n.replace(`mouse`,`pointer`);break;case mE.TouchStart:case mE.TouchEnd:return}c.push(IT(n,r,t))}),bE(()=>{c.forEach(e=>e())})}function HE({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:o}){return IT(`scroll`,bE(zT(bE(o=>{let s=RE(o);if(!s||qT(s,r,i,a,!0))return;let c=n.getId(s);if(s===t&&t.defaultView){let n=UT(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:s.scrollLeft,y:s.scrollTop})}),o.scroll||100)),t)}function UE({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return IT(`resize`,bE(zT(bE(()=>{let t=WT(),i=GT();(n!==t||r!==i)&&(e({width:Number(i),height:Number(t)}),n=t,r=i)}),200)),t)}var WE=[`INPUT`,`TEXTAREA`,`SELECT`],GE=new WeakMap;function KE({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,ignoreClass:o,ignoreSelector:s,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:p,maskTextSelector:m,unmaskTextSelector:h}){function g(e){let n=RE(e),u=e.isTrusted,g=n&&Bw(n.tagName);if(g===`OPTION`&&(n=n.parentElement),!n||!g||WE.indexOf(g)<0||qT(n,r,i,a,!0))return;let y=n;
vendor: 8,580 bytes, line 25
25if(y.classList.contains(o)||s&&y.matches(s))return;let b=Uw(n),x=Ww(y,g,b),S=!1,C=Lw({maskInputOptions:c,tagName:g,type:b}),w=TT(n,f,m,p,h,C);(b===`radio`||b===`checkbox`)&&(S=n.checked),x=Rw({isMasked:w,element:n,value:x,maskInputFn:l}),v(n,d?{text:x,isChecked:S,userTriggered:u}:{text:x,isChecked:S});let T=n.name;b===`radio`&&T&&S&&t.querySelectorAll(`input[type="radio"][name="${T}"]`).forEach(e=>{if(e!==n){let t=Rw({isMasked:w,element:e,value:Ww(e,g,b),maskInputFn:l});v(e,d?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}})}function v(t,r){let i=GE.get(t);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){GE.set(t,r);let i=n.getId(t);bE(e)({...r,id:i})}}let y=(u.input===`last`?[`change`]:[`input`,`change`]).map(e=>IT(e,bE(g),t)),b=t.defaultView;if(!b)return()=>{y.forEach(e=>e())};let x=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,`value`),S=[[b.HTMLInputElement.prototype,`value`],[b.HTMLInputElement.prototype,`checked`],[b.HTMLSelectElement.prototype,`value`],[b.HTMLTextAreaElement.prototype,`value`],[b.HTMLSelectElement.prototype,`selectedIndex`],[b.HTMLOptionElement.prototype,`selected`]];return x&&x.set&&y.push(...S.map(e=>BT(e[0],e[1],{set(){bE(g)({target:this,isTrusted:!1})}},!1,b))),bE(()=>{y.forEach(e=>e())})}function qE(e){let t=[];function n(e,t){if(rD(`CSSGroupingRule`)&&e.parentRule instanceof CSSGroupingRule||rD(`CSSMediaRule`)&&e.parentRule instanceof CSSMediaRule||rD(`CSSSupportsRule`)&&e.parentRule instanceof CSSSupportsRule||rD(`CSSConditionRule`)&&e.parentRule instanceof CSSConditionRule){let n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){let n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}return n(e,t)}function JE(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function YE({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};let i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:bE((r,i,a)=>{let[o,s]=a,{id:c,styleId:l}=JE(i,t,n.styleMirror);return(c&&c!==-1||l&&l!==-1)&&e({id:c,styleId:l,adds:[{rule:o,index:s}]}),r.apply(i,a)})});let a=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:bE((r,i,a)=>{let[o]=a,{id:s,styleId:c}=JE(i,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,removes:[{index:o}]}),r.apply(i,a)})});let o;r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:bE((r,i,a)=>{let[o]=a,{id:s,styleId:c}=JE(i,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,replace:o}),r.apply(i,a)})}));let s;r.CSSStyleSheet.prototype.replaceSync&&(s=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:bE((r,i,a)=>{let[o]=a,{id:s,styleId:c}=JE(i,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,replaceSync:o}),r.apply(i,a)})}));let c={};iD(`CSSGroupingRule`)?c.CSSGroupingRule=r.CSSGroupingRule:(iD(`CSSMediaRule`)&&(c.CSSMediaRule=r.CSSMediaRule),iD(`CSSConditionRule`)&&(c.CSSConditionRule=r.CSSConditionRule),iD(`CSSSupportsRule`)&&(c.CSSSupportsRule=r.CSSSupportsRule));let l={};return Object.entries(c).forEach(([r,i])=>{l[r]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(l[r].insertRule,{apply:bE((r,i,a)=>{let[o,s]=a,{id:c,styleId:l}=JE(i.parentStyleSheet,t,n.styleMirror);return(c&&c!==-1||l&&l!==-1)&&e({id:c,styleId:l,adds:[{rule:o,index:[...qE(i),s||0]}]}),r.apply(i,a)})}),i.prototype.deleteRule=new Proxy(l[r].deleteRule,{apply:bE((r,i,a)=>{let[o]=a,{id:s,styleId:c}=JE(i.parentStyleSheet,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,removes:[{index:[...qE(i),o]}]}),r.apply(i,a)})})}),bE(()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=a,o&&(r.CSSStyleSheet.prototype.replace=o),s&&(r.CSSStyleSheet.prototype.replaceSync=s),Object.entries(c).forEach(([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule})})}function XE({mirror:e,stylesheetManager:t},n){let r=null;r=n.nodeName===`#document`?e.getId(n):e.getId(n.host);let i=n.nodeName===`#document`?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,a=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,`adoptedStyleSheets`):void 0;return r===null||r===-1||!i||!a?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return a.get?.call(this)},set(e){let n=a.set?.call(this,e);if(r!==null&&r!==-1)try{t.adoptStyleSheets(e,r)}catch{}return n}}),bE(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function ZE({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){let a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:bE((i,o,s)=>{let[c,l,u]=s;if(n.has(c))return a.apply(o,[c,l,u]);let{id:d,styleId:f}=JE(o.parentRule?.parentStyleSheet,t,r.styleMirror);return(d&&d!==-1||f&&f!==-1)&&e({id:d,styleId:f,set:{property:c,value:l,priority:u},index:qE(o.parentRule)}),i.apply(o,s)})});let o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:bE((i,a,s)=>{let[c]=s;if(n.has(c))return o.apply(a,[c]);let{id:l,styleId:u}=JE(a.parentRule?.parentStyleSheet,t,r.styleMirror);return(l&&l!==-1||u&&u!==-1)&&e({id:l,styleId:u,remove:{property:c},index:qE(a.parentRule)}),i.apply(a,s)})}),bE(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=o})}function QE({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:a,doc:o}){let s=bE(o=>zT(bE(a=>{let s=RE(a);if(!s||qT(s,t,n,r,!0))return;let{currentTime:c,volume:l,muted:u,playbackRate:d}=s;e({type:o,id:i.getId(s),currentTime:c,volume:l,muted:u,playbackRate:d})}),a.media||500)),c=[IT(`play`,s(gE.Play),o),IT(`pause`,s(gE.Pause),o),IT(`seeked`,s(gE.Seeked),o),IT(`volumechange`,s(gE.VolumeChange),o),IT(`ratechange`,s(gE.RateChange),o)];return bE(()=>{c.forEach(e=>e())})}function $E({fontCb:e,doc:t}){let n=t.defaultView;if(!n)return()=>{};let r=[],i=new WeakMap,a=n.FontFace;n.FontFace=function(e,t,n){let r=new a(e,t,n);return i.set(r,{family:e,buffer:typeof t!=`string`,descriptors:n,fontSource:typeof t==`string`?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};let o=VT(t.fonts,`add`,function(t){return function(n){return uE(bE(()=>{let t=i.get(n);t&&(e(t),i.delete(n))}),0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=a}),r.push(o),bE(()=>{r.forEach(e=>e())})}function eD(e){let{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,selectionCb:o}=e,s=!0,c=bE(()=>{let e=t.getSelection();if(!e||s&&e?.isCollapsed)return;s=e.isCollapsed||!1;let c=[],l=e.rangeCount||0;for(let t=0;t<l;t++){let{startContainer:o,startOffset:s,endContainer:l,endOffset:u}=e.getRangeAt(t);qT(o,r,i,a,!0)||qT(l,r,i,a,!0)||c.push({start:n.getId(o),startOffset:s,end:n.getId(l),endOffset:u})}o({ranges:c})});return c(),IT(`selectionchange`,c)}function tD({doc:e,customElementCb:t}){let n=e.defaultView;return!n||!n.customElements?()=>{}:VT(n.customElements,`define`,function(e){return function(n,r,i){try{t({define:{name:n}})}catch{}return e.apply(this,[n,r,i])}})}function nD(e,t={}){let n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=zE(e,e.doc));let i=BE(e),a=VE(e),o=HE(e),s=UE(e,{win:n}),c=KE(e),l=QE(e),u=()=>{},d=()=>{},f=()=>{},p=()=>{};e.recordDOM&&(u=YE(e,{win:n}),d=XE(e,e.doc),f=ZE(e,{win:n}),e.collectFonts&&(p=$E(e)));let m=eD(e),h=tD(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,n,t.options));return bE(()=>{LE.forEach(e=>e.reset()),r?.disconnect(),i(),a(),o(),s(),c(),l(),u(),d(),f(),p(),m(),h(),g.forEach(e=>e())})}function rD(e){return window[e]!==void 0}function iD(e){return!!(window[e]!==void 0&&window[e].prototype&&`insertRule`in window[e].prototype&&`deleteRule`in window[e].prototype)}var aD=class{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){let i=n||this.getIdToRemoteIdMap(e),a=r||this.getRemoteIdToIdMap(e),o=i.get(t);return o||(o=this.generateIdFn(),i.set(t,o),a.set(o,t)),o}getIds(e,t){let n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}
25getRemoteId(e,t,n){let r=n||this.getRemoteIdToIdMap(e);return typeof t==`number`?r.get(t)||-1:t}getRemoteIds(e,t){let n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}},oD=class{constructor(){this.crossOriginIframeMirror=new aD(tT),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}},sD=class{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new aD(tT),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new aD(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener(`message`,this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0);let t=EE(e);t&&this.crossOriginIframeMap.set(t,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&EE(e)?.addEventListener(`message`,this.handleMessage.bind(this)),this.loadListener?.(e);let n=TE(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){let t=e;if(t.data.type!==`rrweb`||t.origin!==t.data.origin||!e.source)return;let n=this.crossOriginIframeMap.get(e.source);if(!n)return;let r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case fE.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:fE.IncrementalSnapshot,data:{source:pE.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case fE.Meta:case fE.Load:case fE.DomContentLoaded:return!1;case fE.Plugin:return t;case fE.Custom:return this.replaceIds(t.data.payload,e,[`id`,`parentId`,`previousId`,`nextId`]),t;case fE.IncrementalSnapshot:switch(t.data.source){case pE.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,[`parentId`,`nextId`,`previousId`]),this.replaceIdOnNode(t.node,e);let n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,[`parentId`,`id`])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,[`id`])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,[`id`])}),t;case pE.Drag:case pE.TouchMove:case pE.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,[`id`])}),t;case pE.ViewportResize:return!1;case pE.MediaInteraction:case pE.MouseInteraction:case pE.Scroll:case pE.CanvasMutation:case pE.Input:return this.replaceIds(t.data,e,[`id`]),t;case pE.StyleSheetRule:case pE.StyleDeclaration:return this.replaceIds(t.data,e,[`id`]),this.replaceStyleIds(t.data,e,[`styleId`]),t;case pE.Font:return t;case pE.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,[`start`,`end`])}),t;case pE.AdoptedStyleSheet:return this.replaceIds(t.data,e,[`id`]),this.replaceStyleIds(t.data,e,[`styleIds`]),t.data.styles?.forEach(t=>{this.replaceStyleIds(t,e,[`styleId`])}),t}}return!1}replace(e,t,n,r){for(let i of r)(Array.isArray(t[i])||typeof t[i]==`number`)&&(t[i]=Array.isArray(t[i])?e.getIds(n,t[i]):e.getId(n,t[i]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,[`id`,`rootId`]),`childNodes`in e&&e.childNodes.forEac
25h(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type!==Cw.Document&&!e.rootId&&(e.rootId=t),`childNodes`in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}},cD=class{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}},lD=class{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!Ew(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let n=zE({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(HE({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),uE(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(XE({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=TE(e),n=EE(e);t&&n&&this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){let n=this;this.restoreHandlers.push(VT(e.prototype,`attachShadow`,function(e){return function(r){let i=e.call(this,r);return this.shadowRoot&&oE(this)&&n.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}},uD=class{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new nE,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){`_cssText`in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(e.length===0)return;let n={id:t,styleIds:[]},r=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:jw(e),index:t}))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}},dD=class{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,lE(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}},fD,pD;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement(`iframe`);document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug(`Unable to override Array.from`,e)}var mD=Iw();function hD(e={}){let{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i=`rr-block`,blockSelector:a=null,unblockSelector:o=null,ignoreClass:s=`rr-ignore`,ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:u=`rr-mask`,unmaskTextClass:d=null,maskTextSelector:f=null,unmaskTextSelector:p=null,inlineStylesheet:m=!0,maskAllInputs:h,maskInputOptions:g,slimDOMOptions:v,maskAttributeFn:y,maskInputFn:b,maskTextFn:x,maxCanvasSize:S=null,packFn:C,sampling:w={},dataURLOptions:T={},mousemoveWait:E,recordDOM:D=!0,recordCanvas:ee=!1,recordCrossOriginIframes:te=!1,recordAfter:ne=e.recordAfter===`DOMContentLoaded`?e.recordAfter:`load`,userTriggeredOnInput:re=!1,collectFonts:ie=!1,inlineImages:ae=!1,plugins:oe,keepIframeSrcFn:O=()=>!1,ignoreCSSAttributes:se=new Set([]),errorHandler:ce,onMutation:le,getCanvasManager:ue}=e;vE(ce);let de=!te||window.parent===window,fe=!1;if(!de)try{window.parent.document&&(fe=!1)}catch{fe=!0}if(de&&!t)throw Error(`emit function is required`);if(!de&&!fe)return()=>{};E!==void 0&&w.mousemove===void 0&&(w.mousemove=E),mD.reset();let pe=h===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:g===void 0?{}:g,me=v===!0||v===`all`?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:v===`all`,headMetaDescKeywords:v===`all`}:v||{};QT();let he,ge=0,_e=e=>{for(let t of oe||[])t.eventProcessor&&(e=t.eventProcessor(e));return C&&!fe&&(e=C(e)),e};fD=(e,i)=>{let a=e;if(a.timestamp=HT(),LE[0]?.isFrozen()&&a.type!==fE.FullSnapshot&&(a.type!==fE.IncrementalSnapshot||a.data.source!==pE.Mutation)&&LE.forEach(e
25=>e.unfreeze()),de)t?.(_e(a),i);else if(fe){let e={type:`rrweb`,event:_e(a),origin:window.location.origin,isCheckout:i};window.parent.postMessage(e,`*`)}if(a.type===fE.FullSnapshot)he=a,ge=0;else if(a.type===fE.IncrementalSnapshot){if(a.data.source===pE.Mutation&&a.data.isAttachIframe)return;ge++;let e=r&&ge>=r,t=n&&he&&a.timestamp-he.timestamp>n;(e||t)&&Te(!0)}};let ve=e=>{fD({type:fE.IncrementalSnapshot,data:{source:pE.Mutation,...e}})},ye=e=>fD({type:fE.IncrementalSnapshot,data:{source:pE.Scroll,...e}}),be=e=>fD({type:fE.IncrementalSnapshot,data:{source:pE.CanvasMutation,...e}}),k=new uD({mutationCb:ve,adoptedStyleSheetCb:e=>fD({type:fE.IncrementalSnapshot,data:{source:pE.AdoptedStyleSheet,...e}})}),xe=typeof __RRWEB_EXCLUDE_IFRAME__==`boolean`&&__RRWEB_EXCLUDE_IFRAME__?new oD:new sD({mirror:mD,mutationCb:ve,stylesheetManager:k,recordCrossOriginIframes:te,wrappedEmit:fD});for(let e of oe||[])e.getMirror&&e.getMirror({nodeMirror:mD,crossOriginIframeMirror:xe.crossOriginIframeMirror,crossOriginIframeStyleMirror:xe.crossOriginIframeStyleMirror});let Se=new dD,Ce=_D(ue,{mirror:mD,win:window,mutationCb:e=>fD({type:fE.IncrementalSnapshot,data:{source:pE.CanvasMutation,...e}}),recordCanvas:ee,blockClass:i,blockSelector:a,unblockSelector:o,maxCanvasSize:S,sampling:w.canvas,dataURLOptions:T,errorHandler:ce}),we=typeof __RRWEB_EXCLUDE_SHADOW_DOM__==`boolean`&&__RRWEB_EXCLUDE_SHADOW_DOM__?new cD:new lD({mutationCb:ve,scrollCb:ye,bypassOptions:{onMutation:le,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:pe,dataURLOptions:T,maskAttributeFn:y,maskTextFn:x,maskInputFn:b,recordCanvas:ee,inlineImages:ae,sampling:w,slimDOMOptions:me,iframeManager:xe,stylesheetManager:k,canvasManager:Ce,keepIframeSrcFn:O,processedNodeManager:Se,ignoreCSSAttributes:se},mirror:mD}),Te=(e=!1)=>{if(!D)return;fD({type:fE.Meta,data:{href:window.location.href,width:GT(),height:WT()}},e),k.reset(),we.init(),LE.forEach(e=>e.lock());let t=FT(document,{mirror:mD,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskAllInputs:pe,maskAttributeFn:y,maskInputFn:b,maskTextFn:x,slimDOM:me,dataURLOptions:T,recordCanvas:ee,inlineImages:ae,onSerialize:e=>{$T(e,mD)&&xe.addIframe(e),eE(e,mD)&&k.trackLinkElement(e),tE(e)&&we.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{xe.attachIframe(e,t);let n=EE(e);n&&Ce.addWindow(n),we.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{k.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{ve({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},keepIframeSrcFn:O,ignoreCSSAttributes:se});if(!t)return console.warn(`Failed to snapshot the document`);fD({type:fE.FullSnapshot,data:{node:t,initialOffset:UT(window)}}),LE.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&k.adoptStyleSheets(document.adoptedStyleSheets,mD.getId(document))};pD=Te;try{let e=[],t=e=>bE(nD)({onMutation:le,mutationCb:ve,mousemoveCb:(e,t)=>fD({type:fE.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>fD({type:fE.IncrementalSnapshot,data:{source:pE.MouseInteraction,...e}}),scrollCb:ye,viewportResizeCb:e=>fD({type:fE.IncrementalSnapshot,data:{source:pE.ViewportResize,...e}}),inputCb:e=>fD({type:fE.IncrementalSnapshot,data:{source:pE.Input,...e}}),mediaInteractionCb:e=>fD({type:fE.IncrementalSnapshot,data:{source:pE.MediaInteraction,...e}}),styleSheetRuleCb:e=>fD({type:fE.IncrementalSnapshot,data:{source:pE.StyleSheetRule,...e}}),styleDeclarationCb:e=>fD({type:fE.IncrementalSnapshot,data:{source:pE.StyleDeclaration,...e}}),canvasMutationCb:be,fontCb:e=>fD({type:fE.IncrementalSnapshot,data:{source:pE.Font,...e}}),selectionCb:e=>{fD({type:fE.IncrementalSnapshot,data:{source:pE.Selection,...e}})},customElementCb:e=>{fD({type:fE.IncrementalSnapshot,data:{source:pE.CustomElement,...e}})},blockClass:i,ignoreClass:s,ignoreSelector:c,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:pe,inlineStylesheet:m,sampling:w,recordDOM:D,recordCanvas:ee,inlineImages:ae,userTriggeredOnInput:re,collectFonts:ie,doc:e,maskAttributeFn:y,maskInputFn:b,maskTextFn:x,keepIframeSrcFn:O,blockSelector:a,unblockSelector:o,slimDOMOptions:me,dataURLOptions:T,mirror:mD,iframeManager:xe,stylesheetManager:k,shadowDomManager:we,processedNodeManager:Se,canvasManager:Ce,ignoreCSSAttributes:se,plugins:oe?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>fD({type:fE.Plugin,data:{plugin:e.name,payload:t}}
25)}))||[]},{});xe.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});let n=()=>{Te(),e.push(t(document))};return document.readyState===`interactive`||document.readyState===`complete`?n():(e.push(IT(`DOMContentLoaded`,()=>{fD({type:fE.DomContentLoaded,data:{}}),ne===`DOMContentLoaded`&&n()})),e.push(IT(`load`,()=>{fD({type:fE.Load,data:{}}),ne===`load`&&n()},window))),()=>{e.forEach(e=>e()),Se.destroy(),pD=void 0,yE()}}catch(e){console.warn(e)}}function gD(e){if(!pD)throw Error(`please take full snapshot after start recording`);pD(e)}hD.mirror=mD,hD.takeFullSnapshot=gD;function _D(e,t){try{return e?e(t):new wE}catch{return console.warn(`Unable to initialize CanvasManager`),new wE}}var vD;(function(e){e[e.NotStarted=0]=`NotStarted`,e[e.Running=1]=`Running`,e[e.Stopped=2]=`Stopped`})(vD||={});var yD=3,bD=5;function xD(e){return e>9999999999?e:e*1e3}function SD(e){return e>9999999999?e/1e3:e}function CD(e,t){t.category!==`sentry.transaction`&&([`ui.click`,`ui.input`].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:fE.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:`breadcrumb`,payload:Sd(t,10,1e3)}}),t.category===`console`)))}var wD=`button,a`;function TD(e){return e.closest(wD)||e}function ED(e){let t=DD(e);return!t||!(t instanceof Element)?t:TD(t)}function DD(e){return OD(e)?e.target:e}function OD(e){return $u(e)&&`target`in e}var kD;function AD(e){return kD||(kD=[],jD()),kD.push(e),()=>{let t=kD?kD.indexOf(e):-1;t>-1&&kD.splice(t,1)}}function jD(){ad(tw,`open`,function(e){return function(...t){if(kD)try{kD.forEach(e=>e())}catch{}return e.apply(tw,t)}})}var MD=new Set([pE.Mutation,pE.StyleSheetRule,pE.StyleDeclaration,pE.AdoptedStyleSheet,pE.CanvasMutation,pE.Selection,pE.MediaInteraction]);function ND(e,t,n){e.handleClick(t,n)}var PD=class{constructor(e,t,n=CD){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){let e=AD(()=>{this._lastMutation=RD()});this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(ID(t,this._ignoreSelector)||!LD(e))return;let n={timestamp:SD(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1)||(this._clicks.push(n),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=SD(e)}registerScroll(e=Date.now()){this._lastScroll=SD(e)}registerClick(e){let t=TD(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=RD();this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)});for(let t of e){let e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,i=!n&&!r,{clickCount:a,clickBreadcrumb:o}=e;if(i){let n=Math.min(e.mutationAfter||this._timeout,this._timeout)*1e3,r=n<this._timeout*1e3?`mutation`:`timeout`,i={type:`default`,message:o.message,timestamp:o.timestamp,category:`ui.slowClickDetected`,data:{...o.data,url:tw.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:a||1}};this._addBreadcrumbEvent(t,i);return}if(a>1){let e={type:`default`,message:o.message,timestamp:o.timestamp,category:`ui.multiClick`,data:{...o.data,url:tw.location.href,route:t.getCurrentRoute(),clickCount:a,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=LS(()=>this._checkClicks(),1e3)}},FD=[`A`,`BUTTON`,`INPUT`];function ID(e,t){return!!(!FD.includes(e.tagName)||e.tagName===`INPUT`&&![`submit`,`button`].includes(e.getAttribute(`type`)||``)||e.tagName===`A`&&(e.hasAttribute(`download`)||e.hasAttribute(`target`)&&e.getAttribute(`target`)!==`_self`)||t&&e.matches(t))}
25function LD(e){return!!(e.data&&typeof e.data.nodeId==`number`&&e.timestamp)}function RD(){return Date.now()/1e3}function zD(e,t){try{if(!BD(t))return;let{source:n}=t.data;if(MD.has(n)&&e.registerMutation(t.timestamp),n===pE.Scroll&&e.registerScroll(t.timestamp),VD(t)){let{type:n,id:r}=t.data,i=hD.mirror.getNode(r);i instanceof HTMLElement&&n===mE.Click&&e.registerClick(i)}}catch{}}function BD(e){return e.type===yD}function VD(e){return e.data.source===pE.MouseInteraction}function HD(e){return{timestamp:Date.now()/1e3,type:`default`,...e}}var UD=(e=>(e[e.Document=0]=`Document`,e[e.DocumentType=1]=`DocumentType`,e[e.Element=2]=`Element`,e[e.Text=3]=`Text`,e[e.CDATA=4]=`CDATA`,e[e.Comment=5]=`Comment`,e))(UD||{}),WD=new Set([`id`,`class`,`aria-label`,`role`,`name`,`alt`,`title`,`data-test-id`,`data-testid`,`disabled`,`aria-disabled`,`data-sentry-component`]);function GD(e){let t={};!e[`data-sentry-component`]&&e[`data-sentry-element`]&&(e[`data-sentry-component`]=e[`data-sentry-element`]);for(let n in e)if(WD.has(n)){let r=n;(n===`data-testid`||n===`data-test-id`)&&(r=`testId`),t[r]=e[n]}return t}var KD=e=>t=>{if(!e.isEnabled())return;let n=JD(t);if(!n)return;let r=t.name===`click`,i=r?t.event:void 0;r&&e.clickDetector&&i?.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&ND(e.clickDetector,n,ED(t.event)),CD(e,n)};function qD(e,t){let n=hD.mirror.getId(e),r=n&&hD.mirror.getNode(n),i=r&&hD.mirror.getMeta(r),a=i&&XD(i)?i:null;return{message:t,data:a?{nodeId:n,node:{id:n,tagName:a.tagName,textContent:Array.from(a.childNodes).map(e=>e.type===UD.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(``),attributes:GD(a.attributes)}}:{}}}function JD(e){let{target:t,message:n}=YD(e);return HD({category:`ui.${e.name}`,...qD(t,n)})}function YD(e){let t=e.name===`click`,n,r=null;try{r=t?ED(e.event):DD(e.event),n=dx(r,{maxStringLength:200})||`<unknown>`}catch{n=`<unknown>`}return{target:r,message:n}}function XD(e){return e.type===UD.Element}function ZD(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=QD(t);n&&CD(e,n)}function QD(e){let{metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a,target:o}=e;if(!o||$D(o)||!a)return null;let s=t||r||i,c=a.length===1;if(!s&&c)return null;let l=dx(o,{maxStringLength:200})||`<unknown>`;return HD({category:`ui.keyDown`,message:l,data:{...qD(o,l).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a}})}function $D(e){return e.tagName===`INPUT`||e.tagName===`TEXTAREA`||e.isContentEditable}var eO={resource:sO,paint:aO,navigation:oO};function tO(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function nO(e){return e.map(rO).filter(Boolean)}function rO(e){let t=eO[e.entryType];return t?t(e):null}function iO(e){return((Zd()||tw.performance.timeOrigin)+e)/1e3}function aO(e){let{duration:t,entryType:n,name:r,startTime:i}=e,a=iO(i);return{type:n,name:r,start:a,end:a+t,data:void 0}}function oO(e){let{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:a,encodedBodySize:o,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:d,redirectCount:f,startTime:p,transferSize:m,type:h}=e;return i===0?null:{type:`${t}.${h}`,start:iO(p),end:iO(a),name:n,data:{size:m,decodedBodySize:r,encodedBodySize:o,duration:i,domInteractive:l,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:d,domComplete:a,redirectCount:f}}}function sO(e){let{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:a,decodedBodySize:o,encodedBodySize:s,responseStatus:c,transferSize:l}=e;return[`fetch`,`xmlhttprequest`].includes(n)?null:{type:`${t}.${n}`,start:iO(a),end:iO(i),name:r,data:{size:l,statusCode:c,decodedBodySize:o,encodedBodySize:s}}}function cO(e){let t=e.entries[e.entries.length-1];return fO(e,`largest-contentful-paint`,t?.element?[t.element]:void 0)}function lO(e){return e.sources!==void 0}function uO(e){let t=[],n=[];for(let r of e.entries)if(lO(r)){let e=[];for(let t of r.sources)if(t.node){n.push(t.node);let r=hD.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return fO(e,`cumulative-layout-shift`,n,t)}function dO(e){let t=e.entries[e.entries.length-1];return fO(e,`interaction-to-next-paint`,t?.target?[t.target]:void 0)}function fO(e,t,n,r){let i=e.value,a=e.rating,o=iO(i);return{type:`web-vital`,name:t,start:o,end:o,data:{value:i,size:i,rating:a,nodeIds:n?n.map(e=>hD.mirror.getId(e)):void 0,attributions:r}}}function pO(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}let r=[];
25return[`navigation`,`paint`,`resource`].forEach(e=>{r.push(Zb(e,n))}),r.push(Jb(tO(cO,e)),qb(tO(uO,e)),Xb(tO(dO,e))),()=>{r.forEach(e=>e())}}var X=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,mO=
vendor: 10,332 bytes, line 25
25`var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});`;
25function hO(){let e=new Blob([mO],{type:`text/javascript`});return URL.createObjectURL(e)}var gO=[`log`,`warn`,`error`],_O=`[Replay] `;function vO(e,t=`info`){Q_({category:`console`,data:{logger:`replay`},level:t,message:`${_O}${e}`},{level:t})}function yO(){let e=!1,t=!1,n={exception:()=>void 0,infoTick:()=>void 0,setConfig:n=>{e=!!n.captureExceptions,t=!!n.traceInternals}};return X?(gO.forEach(e=>{n[e]=(...n)=>{Y[e](_O,...n),t&&vO(n.join(``),Mv(e))}}),n.exception=(r,...i)=>{i.length&&n.error&&n.error(...i),Y.error(_O,r),e?dg(r,{mechanism:{handled:!0,type:`auto.function.replay.debug`}}):t&&vO(r,`error`)},n.infoTick=(...e)=>{Y.log(_O,...e),t&&setTimeout(()=>vO(e[0]),0)}):gO.forEach(e=>{n[e]=()=>void 0}),n}var bO=yO(),xO=class extends Error{constructor(){super(`Event buffer exceeded maximum size of ${gw}.`)}},SO=class extends Error{constructor(){super(`Worker destroyed`)}},CO=class{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return`sync`}destroy(){this.events=[]}async addEvent(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>gw)throw new xO;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=null;for(let{timestamp:t}of this.events)(e===null||t<e)&&(e=t);return e===null?e:xD(e)}},wO=class{constructor(e){this._onMessage=({data:e})=>{let t=e;if(typeof t.id!=`number`)return;let n=this._pending.get(t.id);if(n&&n.method===t.method){if(this._pending.delete(t.id),!t.success){X&&bO.error(`Error in compression worker: `,t.response),n.reject(Error(`Error in compression worker`));return}n.resolve(t.response)}},this._worker=e,this._id=0,this._pending=new Map,this._worker.addEventListener(`message`,this._onMessage)}ensureReady(){return this._ensureReadyPromise||=new Promise((e,t)=>{this._worker.addEventListener(`message`,({data:n})=>{n.success?e():(X&&bO.warn(`Received worker message with unsuccessful status`,n),t(Error(`Received worker message with unsuccessful status`)))},{once:!0}),this._worker.addEventListener(`error`,e=>{X&&bO.warn(`Failed to load Replay compression worker`,e),t(Error(`Failed to load Replay compression worker: ${e instanceof ErrorEvent&&e.message?e.message:`Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load.`}`))},{once:!0})}),this._ensureReadyPromise}destroy(){X&&bO.log(`Destroying compression worker`),this._worker.removeEventListener(`message`,this._onMessage),this._pending.forEach(e=>e.reject(new SO)),this._pending.clear(),this._worker.terminate()}postMessage(e,t){let n=this._getAndIncrementId();return new Promise((r,i)=>{this._pending.set(n,{method:e,resolve:r,reject:i});try{this._worker.postMessage({id:n,method:e,arg:t})}catch(e){this._pending.delete(n),i(e)}})}_getAndIncrementId(){return this._id++}},TO=class{constructor(e){this._worker=new wO(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return`worker`}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){let t=xD(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>gw?Promise.reject(new xO):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage(`clear`).then(null,e=>{X&&bO.exception(e,`Sending "clear" message to worker failed`,e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage(`addEvent`,e)}async _finishRequest(){let e=await this._worker.postMessage(`finish`);return this._earliestTimestamp=null,this._totalSize=0,e}},EO=class{constructor(e){this._fallback=new CO,this._compression=new TO(e),this._used=this._fallback,this._ensureWorkerIsLoadedProm
25ise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){X&&bO.exception(e,`Failed to load the compression worker, falling back to simple buffer`);return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(let t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){if(e instanceof SO)return;X&&bO.exception(e,`Failed to add events when switching buffers.`)}}};function DO({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=OO(t);if(e)return e}return X&&bO.log(`Using simple buffer`),new CO}function OO(e){try{let t=e||kO();return t?(X&&bO.log(`Using compression worker${e?` from ${e}`:``}`),new EO(new Worker(t))):void 0}catch(e){X&&bO.exception(e,`Failed to create compression worker`)}}function kO(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>`u`||!__SENTRY_EXCLUDE_REPLAY_WORKER__?hO():``}function AO(){try{return`sessionStorage`in tw&&!!tw.sessionStorage}catch{return!1}}function jO(e){MO(),e.session=void 0}function MO(){if(AO())try{tw.sessionStorage.removeItem(nw)}catch{}}function NO(e){return e!==void 0&&Math.random()<e}function PO(e){if(AO())try{tw.sessionStorage.setItem(nw,JSON.stringify(e))}catch{}}function FO(e){let t=Date.now();return{id:e.id||Ld(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function IO(e,t){return NO(e)?`session`:t?`buffer`:!1}function LO({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){let i=FO({sampled:IO(e,t),previousSessionId:r});return n&&PO(i),i}function RO(){if(!AO())return null;try{let e=tw.sessionStorage.getItem(nw);if(!e)return null;let t=JSON.parse(e);return X&&bO.infoTick(`Loading existing session`),FO(t)}catch{return null}}function zO(e,t,n=+new Date){return e===null||t===void 0||t<0||t!==0&&e+t<=n}function BO(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return zO(e.started,t,r)||zO(e.lastActivity,n,r)}function VO(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!BO(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled===`buffer`&&e.segmentId===0)}function HO({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){let i=r.stickySession&&RO();return i?VO(i,{sessionIdleExpire:e,maxReplayDuration:t})?(X&&bO.infoTick(`Session in sessionStorage is expired, creating new one...`),LO(r,{previousSessionId:i.id})):i:(X&&bO.infoTick(`Creating new session`),LO(r,{previousSessionId:n}))}function UO(e){return e.type===fE.Custom}function WO(e,t,n){return qO(e,t)?(KO(e,t,n),!0):!1}function GO(e,t,n){return qO(e,t)?KO(e,t,n):Promise.resolve(null)}async function KO(e,t,n){let{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;let i=e.recordingMode===`buffer`;try{n&&i&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);let a=JO(t,e.getOptions().beforeAddRecordingEvent);return a?await r.addEvent(a):void 0}catch(t){if(!e.isEnabled())return e.handleException(t),null;let n=t&&t instanceof xO,a=n?`eventBufferOverflow`:`eventBufferError`,o=Ff();if(o){let e=n?`buffer_overflow`:`internal_sdk_error`;o.recordDroppedEvent(e,`replay`)}if(n&&i)return r.clear(),r.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:a})}}
25function qO(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=xD(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(X&&bO.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function JO(e,t){try{if(typeof t==`function`&&UO(e))return t(e)}catch(e){return X&&bO.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}var YO=100;function XO(e,t,n){let r=e.getContext();t&&r.traceIds.size<YO&&r.traceIds.add(t),n&&r.segmentNames.size<YO&&r.segmentNames.add(n)}function ZO(e){return t=>{e.isEnabled()&&XO(e,t.trace_id,t.name||void 0)}}function QO(e){return!e.type}function $O(e){return e.type===`transaction`}function ek(e){return e.type===`replay_event`}function tk(e){return e.type===`feedback`}function nk(e){return(t,n)=>{if(!e.isEnabled()||!QO(t)&&!$O(t))return;let r=n.statusCode;if(!(!r||r<200||r>=300)){if($O(t)){rk(e,t);return}ik(e,t)}}}function rk(e,t){XO(e,t.contexts?.trace?.trace_id,t.transaction)}function ik(e,t){let n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!==`buffer`||!t.tags?.replayId)return;let{beforeErrorSampling:r}=e.getOptions();(typeof r!=`function`||r(t))&&LS(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}function ak(e){return t=>{e.isEnabled()&&QO(t)&&ok(e,t)}}function ok(e,t){let n=t.exception?.values?.[0]?.value;typeof n==`string`&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&CD(e,HD({category:`replay.hydrate-error`,data:{url:xy()}}))}function sk(e){let t=Ff();t&&t.on(`beforeAddBreadcrumb`,t=>ck(e,t))}function ck(e,t){if(!e.isEnabled()||!dk(t))return;let n=lk(t);n&&CD(e,n)}function lk(e){return!dk(e)||[`fetch`,`xhr`,`sentry.event`,`sentry.transaction`].includes(e.category)||e.category.startsWith(`ui.`)?null:e.category===`console`?uk(e):HD(e)}function uk(e){let t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return HD(e);let n=!1,r=t.map(e=>{if(!e)return e;if(typeof e==`string`)return e.length>pw?(n=!0,`${e.slice(0,pw)}\u2026`):e;if(typeof e==`object`)try{let t=Sd(e,7);return JSON.stringify(t).length>pw?(n=!0,`${JSON.stringify(t,null,2).slice(0,pw)}\u2026`):t}catch{}return e});return HD({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:[`CONSOLE_ARG_TRUNCATED`]}}:{}}})}function dk(e){return!!e.category}function fk(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function pk(){let e=jf().getPropagationContext().dsc;e&&delete e.replay_id;let t=rm();if(t){let e=xm(t);delete e.replay_id}}function mk(e){let t=jf().getPropagationContext().dsc;t&&(t.replay_id=e);let n=rm();if(n){let t=xm(n);t.replay_id=e}}function hk(e,t){e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:fE.Custom,timestamp:t.timestamp*1e3,data:{tag:`breadcrumb`,payload:{timestamp:t.timestamp,type:`default`,category:`sentry.feedback`,data:{feedbackId:t.event_id}}}}),!1))}function gk(e,t){return e.recordingMode!==`buffer`||t.message===iw||!t.exception||t.type?!1:NO(e.getOptions().errorSampleRate)}function _k(e){return Object.assign((t,n)=>{if(e.session&&VO(e.session,{maxReplayDuration:e.getOptions().maxReplayDuration,sessionIdleExpire:e.timeouts.sessionIdleExpire})&&pk(),!e.isEnabled()||e.isPaused())return t;if(ek(t))return delete t.breadcrumbs,t;if(!QO(t)&&!$O(t)&&!tk(t))return t;if(!e.checkAndHandleExpiredSession())return pk(),t;if(tk(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),hk(e,t),t;if(fk(t,n)&&!e.getOptions()._experiments.captureExceptions)return X&&bO.log(`Ignoring error from rrweb internals`,t),null;let r=gk(e,t);if((r||e.recordingMode===`session`)&&(t.tags={...t.tags,replayId:e.getSessionId()}),r&&e.recordingMode===`buffer`&&e.session?.sampled===`buffer`){let t=e.session;t.dirty=!0,e.getOptions().stickySession&&PO(t)}return t},{id:`Replay`})}function vk(e,t){return t.map(({type:t,start:n,end:r,name:i,data:a})=>{let o=e.throttledAddEvent({type:fE.Custom,timestamp:n,data:{tag:`performanceSpan`,payload:{op:t,description:i,startTimestamp:n,endTimestamp:r,data:a}}});return typeof o==`string`?Promise.resolve(null):o})}function yk(e){let{from:t,to:n}=e,r=Date.now()/1e3;return{type:`navigation.push`,start:r,end:r,name:n,data:{previous:t}}}function bk(e){return t=>{if(!e.isEnabled())return;let n=yk(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>
25(vk(e,[n]),!1)))}}function xk(e,t){return X&&e.getOptions()._experiments.traceInternals?!1:B_(t,Ff())}function Sk(e,t){e.isEnabled()&&t!==null&&(xk(e,t.name)||e.addUpdate(()=>(vk(e,[t]),!0)))}function Ck(e){if(!e)return;let t=new TextEncoder;try{if(typeof e==`string`)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let n=US(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function wk(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function Tk(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let n={...e._meta};return n.warnings=[...n.warnings||[],t],e._meta=n,e}function Ek(e,t){if(!t)return null;let{startTimestamp:n,endTimestamp:r,url:i,method:a,statusCode:o,request:s,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:{method:a,statusCode:o,request:s,response:c}}}function Dk(e){return{headers:{},size:e,_meta:{warnings:[`URL_SKIPPED`]}}}function Ok(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};let r={headers:e,size:t},{body:i,warnings:a}=Ak(n);return r.body=i,a?.length&&(r._meta={warnings:a}),r}function kk(e,t){return Object.entries(e).reduce((n,[r,i])=>{let a=r.toLowerCase();return t.includes(a)&&e[r]&&(n[a]=i),n},{})}function Ak(e){if(!e||typeof e!=`string`)return{body:e};let t=e.length>fw,n=jk(e);if(t){let t=e.slice(0,fw);return n?{body:t,warnings:[`MAYBE_JSON_TRUNCATED`]}:{body:`${t}\u2026`,warnings:[`TEXT_TRUNCATED`]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function jk(e){let t=e[0],n=e[e.length-1];return t===`[`&&n===`]`||t===`{`&&n===`}`}function Mk(e,t){return Nd(Nk(e),t)}function Nk(e,t=tw.document.baseURI){if(e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(tw.location.origin))return e;let n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;let r=n.href;return!e.endsWith(`/`)&&r.endsWith(`/`)?r.slice(0,-1):r}async function Pk(e,t,n){try{let r=Ek(`resource.fetch`,await Ik(e,t,n));Sk(n.replay,r)}catch(e){X&&bO.exception(e,`Failed to capture fetch breadcrumb`)}}function Fk(e,t){let{input:n,response:r}=t,i=Ck(n?GS(n):void 0),a=r?wk(r.headers.get(`content-length`)):void 0;i!==void 0&&(e.data.request_body_size=i),a!==void 0&&(e.data.response_body_size=a)}async function Ik(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:a=r}=t,{url:o,method:s,status_code:c=0,request_body_size:l,response_body_size:u}=e.data,d=Mk(o,n.networkDetailAllowUrls)&&!Mk(o,n.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:a,url:o,method:s,statusCode:c,request:d?Lk(n,t.input,l):Dk(l),response:await Rk(d,n,t.response,u)}}function Lk({networkCaptureBodies:e,networkRequestHeaders:t},n,r){let i=n?Hk(n,t):{};if(!e)return Ok(i,r,void 0);let[a,o]=WS(GS(n),bO),s=Ok(i,r,a);return o?Tk(s,o):s}async function Rk(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,i){if(!e&&i!==void 0)return Dk(i);let a=r?Vk(r.headers,n):{};if(!r||!t&&i!==void 0)return Ok(a,i,void 0);let[o,s]=await Bk(r),c=zk(o,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:a});return s?Tk(c,s):c}function zk(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:i}){try{let a=e?.length&&n===void 0?Ck(e):n;return r?t?Ok(i,a,e):Ok(i,a,void 0):Dk(a)}catch(e){return X&&bO.exception(e,`Failed to serialize response body`),Ok(i,n,void 0)}}async function Bk(e){let t=Wk(e);if(!t)return[void 0,`BODY_PARSE_ERROR`];try{return[await Gk(t)]}catch(e){return e instanceof Error&&e.message.indexOf(`Timeout`)>-1?(X&&bO.warn(`Parsing text body from response timed out`),[void 0,`BODY_PARSE_TIMEOUT`]):(X&&bO.exception(e,`Failed to get text body from response`),[void 0,`BODY_PARSE_ERROR`])}}function Vk(e,t){let n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function Hk(e,t){return e.length===1&&typeof e[0]!=`string`?Uk(e[0],t):e.length===2?Uk(e[1],t):{}}function Uk(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?Vk(n,t):Array.isArray(n)?{}:kk(n,t):{}}function Wk(e){try{return e.clone()}catch(e){X&&bO.exception(e,`Failed to clone response body`)}}function Gk(e){return new Promise((t,n)=>{let r=LS(()=>n(Error(`Timeout while trying to read response body`)),500);Kk(e).then(e=>t(e),e=>n(e)).finally(()=>clearTimeout(r))})}async function Kk(e){return await e.text()}async function qk(e,t,n){try{let r=Ek(`resource.xhr`,Yk(e,t,n));Sk(n.replay,r)}catch(e){X&&bO.exception(e,`Failed to capture xhr breadcrumb`)}}function Jk(e,t){let{xhr:n,input:r}=t;if(!n)return;let i=Ck(r),a=n.getResponseHeader(`content-length`)?wk(n.getResponseHeader(`content-length`)):Qk(n.response,n.responseType);i!==void 0&&(e.data.request_body_size=i),a!==void 0&&(e.data.response_body_size=a
25)}function Yk(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:a=r,input:o,xhr:s}=t,{url:c,method:l,status_code:u=0,request_body_size:d,response_body_size:f}=e.data;if(!c)return null;if(!s||!Mk(c,n.networkDetailAllowUrls)||Mk(c,n.networkDetailDenyUrls))return{startTimestamp:i,endTimestamp:a,url:c,method:l,statusCode:u,request:Dk(d),response:Dk(f)};let p=s[RS],m=p?kk(p.request_headers,n.networkRequestHeaders):{},h=kk(KS(s),n.networkResponseHeaders),[g,v]=n.networkCaptureBodies?WS(o,bO):[void 0],[y,b]=n.networkCaptureBodies?Xk(s):[void 0],x=Ok(m,d,g),S=Ok(h,f,y);return{startTimestamp:i,endTimestamp:a,url:c,method:l,statusCode:u,request:v?Tk(x,v):x,response:b?Tk(S,b):S}}function Xk(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return Zk(e.response,e.responseType)}catch(e){t.push(e)}return X&&bO.warn(`Failed to get xhr response body`,...t),[void 0]}function Zk(e,t){try{if(typeof e==`string`)return[e];if(e instanceof Document)return[e.body.outerHTML];if(t===`json`&&$u(e))return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return X&&bO.exception(t,`Failed to serialize body`,e),[void 0,`BODY_PARSE_ERROR`]}return X&&bO.log(`Skipping network body because of body type`,e),[void 0,`UNPARSEABLE_BODY_TYPE`]}function Qk(e,t){try{return Ck(t===`json`&&$u(e)?JSON.stringify(e):e)}catch{return}}function $k(e){let t=Ff();try{let{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:o}=e.getOptions(),s={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:o};t&&t.on(`beforeAddBreadcrumb`,(e,t)=>eA(s,e,t))}catch{}}function eA(e,t,n){if(t.data)try{tA(t)&&rA(n)&&(Jk(t,n),qk(t,n,e)),nA(t)&&iA(n)&&(Fk(t,n),Pk(t,n,e))}catch(e){X&&bO.exception(e,`Error when enriching network breadcrumb`)}}function tA(e){return e.category===`xhr`}function nA(e){return e.category===`fetch`}function rA(e){return e?.xhr}function iA(e){return e?.input!==void 0}function aA(e){let t=Ff();wS(KD(e)),jS(bk(e)),sk(e),$k(e),hg(_k(e)),t&&(t.on(`beforeSendEvent`,ak(e)),t.on(`afterSendEvent`,nk(e)),t.on(`createDsc`,t=>{let n=e.getSessionId();n&&e.isEnabled()&&e.recordingMode===`session`&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)}),t.on(`processSegmentSpan`,ZO(e)),t.on(`spanStart`,t=>{e.lastActiveSpan=t}),t.on(`spanEnd`,t=>{e.lastActiveSpan=t}),t.on(`beforeSendFeedback`,async(t,n)=>{let r=e.getSessionId();n?.includeReplay&&e.isEnabled()&&r&&t.contexts?.feedback&&(t.contexts.feedback.source===`api`&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=r)}),t.on(`openFeedbackWidget`,async()=>{await e.sendBufferedReplayOrFlush()}))}async function oA(e){try{return Promise.all(vk(e,[sA(tw.performance.memory)]))}catch{return[]}}function sA(e){let{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:`memory`,name:`memory`,start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function cA(e,t,n){return xh(e,t,{...n,setTimeoutImpl:LS})}var lA=au.navigator;function uA(){return/iPhone|iPad|iPod/i.test(lA?.userAgent??``)||/Macintosh/i.test(lA?.userAgent??``)&&lA?.maxTouchPoints&&lA?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function dA(e){let t=!1;return(n,r)=>{try{if(!e.checkAndHandleExpiredSession()){X&&bO.warn(`Received replay event after session expired.`);return}let i=r||!t;t=!0,fA(n),e.clickDetector&&zD(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode===`buffer`&&i&&e.setInitialState(),!WO(e,n,i))return!0;if(!i)return!1;let t=e.session;if(mA(e,i),e.recordingMode===`buffer`&&t&&e.eventBuffer&&!t.dirty){let n=e.eventBuffer.getEarliestTimestamp();n&&(X&&bO.log(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&PO(t))}return t?.previousSessionId||e.recordingMode===`session`&&e.flush(),!0})}catch(t){e.handleException(t)}}}function fA(e){let t=e.data;if(e.type===fE.IncrementalSnapshot&&t&&typeof t==`object`&&`source`in t&&t.source===pE.Mutation&&`attributes`in t&&Array.isArray(t.attributes))for(let e of t.attributes){let t=hD.mirror.getNode(e.id),n=t&&hD.mirror.getMeta(t);if(n?.type===UD.Element)for(let[t,r]of Object.entries(e.attributes))r===null?delete n.attributes[t]:n.attributes[t]=r}}function pA(e){let t=e.getOptions();return{type:fE.Custom,timestamp:Date.now(),data:{tag:`options`,payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type===`worker`:!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function mA(e,t){t&&e.session?.segmentId===0&&WO(e,pA(e),!1)}function hA(e){if(!e)return null;
25try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function gA(e,t,n,r){return Cm(Im(e,Fm(e),r,n),[[{type:`replay_event`},e],[{type:`replay_recording`,length:typeof t==`string`?new TextEncoder().encode(t).length:t.length},t]])}function _A({recordingData:e,headers:t}){let n,r=`${JSON.stringify(t)} 26`;if(typeof e==`string`)n=`${r}${e}`;else{let t=new TextEncoder().encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}async function vA({client:e,scope:t,replayId:n,event:r}){let i={event_id:n,integrations:typeof e._integrations==`object`&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0};e.emit(`preprocessEvent`,r,i);let a=await eg(e.getOptions(),r,i,t,e,Mf());if(!a)return null;e.emit(`postprocessEvent`,a,i),a.platform=a.platform||`javascript`;let{name:o,version:s,settings:c}=e.getSdkMetadata()?.sdk||{};return a.sdk={...a.sdk,name:o||`sentry.javascript.unknown`,version:s||`0.0.0`,settings:c},a}async function yA({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:a}){let o=_A({recordingData:e,headers:{segment_id:n}}),{urls:s,errorIds:c,traceIds:l,segmentNames:u,initialTimestamp:d}=r,f=Ff(),p=jf(),m=f?.getTransport(),h=f?.getDsn();if(!f||!m||!h||!a.sampled)return Promise.resolve({});let g=await vA({scope:p,client:f,replayId:t,event:{type:rw,replay_start_timestamp:d/1e3,timestamp:i/1e3,error_ids:c,trace_ids:l,segment_names:u,urls:s,replay_id:t,segment_id:n,replay_type:a.sampled}});if(!g)return f.recordDroppedEvent(`event_processor`,`replay`),X&&bO.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete g.sdkProcessingMetadata;let v=gA(g,o,h,f.getOptions().tunnel),y;try{y=await m.send(v)}catch(e){let t=Error(iw);try{t.cause=e}catch{}throw t}let b=t_({},y);if(e_(b,`replay`))throw new xA(b);if(typeof y.statusCode==`number`&&(y.statusCode<200||y.statusCode>=300))throw new bA(y.statusCode);return y}var bA=class extends Error{constructor(e){super(`Transport returned status code ${e}`)}},xA=class extends Error{constructor(e){super(`Rate limit hit`),this.rateLimits=e}},SA=class extends Error{constructor(){super(`Session is too long, not sending replay`)}};async function CA(e,t={count:0,interval:uw}){let{recordingData:n,onError:r}=e;if(n.length)try{return await yA(e),!0}catch(n){if(n instanceof bA||n instanceof xA)throw n;if(pg(`Replays`,{_retryCount:t.count}),r&&r(n),t.count>=dw){let e=Error(`${iw} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise((n,r)=>{LS(async()=>{try{await CA(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}var wA=`__THROTTLED`,TA=`__SKIPPED`;function EA(e,t,n){let r=new Map,i=e=>{let t=e-n;r.forEach((e,n)=>{n<t&&r.delete(n)})},a=()=>[...r.values()].reduce((e,t)=>e+t,0),o=!1;return(...n)=>{let s=Math.floor(Date.now()/1e3);if(i(s),a()>=t){let e=o;return o=!0,e?TA:wA}o=!1;let c=r.get(s)||0;return r.set(s,c+1),e(...n)}}var DA=class{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode=`session`,this.timeouts={sessionIdlePause:aw,sessionIdleExpire:ow},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,segmentNames:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:``},this._recordingOptions=t,this._options=e,this._debouncedFlush=cA(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=EA((e,t)=>GO(this,e,t),300,5);let{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),i=n?{threshold:Math.min(mw,n),timeout:n,scrollTimeout:hw,ignoreSelector:r?r.join(`,`):``}:void 0;if(i&&(this.clickDetector=new PD(this,i)),X){let t=e._experiments;bO.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{tw.document.visibilityState===`visible`?this._doChangeToForegroundTasks():this._doChangeToBackgroun
26dTasks()},this._handleWindowBlur=()=>{let e=HD({category:`ui.blur`});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{let e=HD({category:`ui.focus`});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{ZD(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){X&&bO.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;if(this._requiresManualStart=r,!r){if(this._initializeSessionForSampling(e),!this.session){X&&bO.exception(Error(`Unable to initialize and create session`));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled===`buffer`&&this.session.segmentId===0?`buffer`:`session`,X&&bO.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode===`session`){X&&bO.log(`Recording is already in progress`);return}if(this._isEnabled&&this.recordingMode===`buffer`){X&&bO.log("Buffering is in progress, call `flush()` to save the replay");return}X&&bO.infoTick(`Starting replay in session mode`),this._updateUserActivity();let e=HO({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode=`session`,this._initializeRecording()}startBuffering(){if(this._isEnabled){X&&bO.log("Buffering is in progress, call `flush()` to save the replay");return}X&&bO.infoTick(`Starting replay in buffer mode`);let e=HO({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode=`buffer`,this._initializeRecording()}startRecording(){try{let e=this._canvas;this._stopRecording=hD({...this._recordingOptions,...this.recordingMode===`buffer`?{checkoutEveryNms:lw}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:dA(this),...uA(),onMutation:this._onMutationHandler.bind(this),...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&=(this._stopRecording(),void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(!this._isEnabled)return;this._isEnabled=!1,this.recordingMode=`buffer`;let n=t??`manual`;Ff()?.emit(`replayEnd`,{sessionId:this.session?.id,reason:n});try{X&&bO.log(`Stopping Replay triggered by ${n}`),pk(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,jO(this)}catch(e){this.handleException(e)}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),X&&bO.log(`Pausing replay`))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),X&&bO.log(`Resuming replay`))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if(this.recordingMode===`session`)return this.flushImmediate();let t=Date.now();X&&bO.log(`Converting buffer to session`),await this.flushImmediate();let n=this.stopRecording();e&&n&&this.recordingMode!==`session`&&(this.recordingMode=`session`,this.session&&(this.session.dirty=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession(),mk(this.session.id)),this.startRecording())}addUpdate(e){let t=e();this.recordingMode!==`buffer`&&this._isEnabled&&t!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode===`buffer`?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(e){if(!(e&&this.session?.sampled===!1))return this.session?.id}
26checkAndHandleExpiredSession(){if(this._lastActivity&&zO(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session?.sampled===`session`){this.pause();return}return!!this._checkSession()}setInitialState(){let e=`${tw.location.pathname}${tw.location.hash}${tw.location.search}`,t=`${tw.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let n=this._throttledAddEvent(e,t);if(n===wA){let e=HD({category:`replay.throttled`});this.addUpdate(()=>!WO(this,{type:bD,timestamp:e.timestamp||0,data:{tag:`breadcrumb`,payload:e,metric:!0}}))}return n}getCurrentRoute(){let e=this.lastActiveSpan||rm(),t=e&&tm(e),n=(t&&Bp(t).data||{})[Lf];if(t&&n&&[`route`,`custom`].includes(n))return Bp(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=DO({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.session&&Ff()?.emit(`replayStart`,{sessionId:this.session.id,recordingMode:this.recordingMode}),this.startRecording(),this.recordingMode===`session`&&this.session&&mk(this.session.id)}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,n=HO({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;let e=this.session;return!VO(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:`sessionExpired`}),this.initializeSampling(e.id))}_addListeners(){try{tw.document.addEventListener(`visibilitychange`,this._handleVisibilityChange),tw.addEventListener(`blur`,this._handleWindowBlur),tw.addEventListener(`focus`,this._handleWindowFocus),tw.addEventListener(`keydown`,this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||=(aA(this),!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=pO(this)}_removeListeners(){try{tw.document.removeEventListener(`visibilitychange`,this._handleVisibilityChange),tw.removeEventListener(`blur`,this._handleWindowBlur),tw.removeEventListener(`focus`,this._handleWindowFocus),tw.removeEventListener(`keydown`,this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){if(this.session){if(VO(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})){pk();return}e&&this._createCustomBreadcrumb(e),this.conditionalFlush()}}_doChangeToForegroundTasks(e){if(this.session){if(!this.checkAndHandleExpiredSession()){X&&bO.log(`Document has become active, but session has expired`);return}e&&this._createCustomBreadcrumb(e)}}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:fE.Custom,timestamp:e.timestamp||0,data:{tag:`breadcrumb`,payload:e}})})}_addPerformanceEntries(){let e=nO(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(vk(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.segmentNames.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let n=t.getEarliestTimestamp();
26n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),segmentNames:Array.from(this._context.segmentNames),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){let e=this.getSessionId();if(!this.session||!this.eventBuffer||!e){X&&bO.error(`No session or eventBuffer found to flush.`);return}if(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents&&(await oA(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new SA;let n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession(),await CA({replayId:e,recordingData:await this.eventBuffer.finish(),segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:`sendError`});let t=Ff();if(t){let n;n=e instanceof xA?`ratelimit_backoff`:e instanceof SA?`invalid`:`send_error`,t.recordDroppedEvent(n,`replay`)}}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){X&&bO.error(`Attempting to finish replay event after session expired.`);return}if(!this.session)return;let t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();let r=n<this._options.minReplayDuration,i=n>this._options.maxReplayDuration+5e3;if(r||i){X&&bO.log(`Session duration (${Math.floor(n/1e3)}s) is too ${r?`short`:`long`}, not sending replay.`),r&&this._debouncedFlush();return}let a=this.eventBuffer;a&&this.session.segmentId===0&&!a.hasCheckout&&X&&bO.log(`Flushing initial segment without checkout.`);let o=!!this._flushLock;this._flushLock||=this._runFlush();try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,o&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&PO(this.session)}_onMutationHandler(e){let{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{let n=hA(e.target),r=t.join(`,`);return n?.matches(r)}))return!1;let n=e.length,r=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,a=r&&n>r;if(n>i||a){let e=HD({category:`replay.mutations`,data:{count:n,limit:a}});this._createCustomBreadcrumb(e)}return!a||(this.stop({reason:`mutationLimit`,forceFlush:this.recordingMode===`session`}),!1)}};function OA(e,t){return[...e,...t].join(`,`)}function kA({mask:e,unmask:t,block:n,unblock:r,ignore:i}){return{maskTextSelector:OA(e,[`.sentry-mask`,`[data-sentry-mask]`]),unmaskTextSelector:OA(t,[]),blockSelector:OA(n,[`.sentry-block`,`[data-sentry-block]`,`base`,`iframe[srcdoc]:not([src])`]),unblockSelector:OA(r,[]),ignoreSelector:OA(i,[`.sentry-ignore`,`[data-sentry-ignore]`,`input[type="file"]`])}}function AA({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:a}){if(i.unmaskTextSelector&&e.matches(i.unmaskTextSelector))return a;let o=n.includes(t),s=r&&t===`value`&&e.tagName===`INPUT`&&[`submit`,`button`].includes(e.getAttribute(`type`)||``);return o||s?a.replace(/[\S]/g,`*`):a}var jA=`img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]`,MA=[`content-length`,`content-type`,`accept`],NA=Symbol.for(`sentry__originalRequestBody`),PA=!1,FA=!1;function IA(){if(typeof Request>`u`||FA)return;let e=Request;try{let t=function(t,n){let r=new e(t,n);return n?.body!=null&&(r[NA]=n.body),r};t.prototype=e.prototype,au.Request=t,FA=!0}catch{}}var LA=(e=>new RA(e)),RA=class{constructor({flushMinDelay:e=sw,flushMaxDelay:t=cw,minReplayDuration:n=_w,maxReplayDuration:r=yw,stickySession:i=!0,useCompression:a=!0,workerUrl:o,_experiments:s={},maskAllText:c=!0,maskAllInputs:l=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:d=750,mutationLimit:f=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:h=[],networkDetailDenyUrls:g=[],networkCaptureBodies:v=!0,networkRequestHeaders:y=[],networkResponseHeaders:b=[],mask:x=[],maskAttributes:S=[`title`,`placeholder`,`aria-label`],unmask:C=[],block:w=[],unblock:T=[],ignore:E=[],maskFn:D,beforeAddRecordingEvent:ee,beforeErrorSampling:te,onError:ne,attachRawBodyFromRequest:re=!1}={}){this.name=`Replay`;let ie=kA({mask:x,unmask:C,block:w,unblock:T,ignore:E});if(this._recordingOptions={maskAllInputs:l,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:D,maskInputFn:D,maskAttributeFn:(e,t,n)=>AA({maskAttributes:S,maskAllText:c,privacyOptions:ie,key:e,value:t,el:n}),...ie,slimDOMOptions:`all`,inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!s.recordCrossOriginIframes},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,vw),maxReplayDuration:Math.min(r,yw),stickySession:i,useCompression:a,workerUrl:o,blockAllMedia:u,maskAllInputs:l,maskAllText:c,mutationBreadcrumbLimit:d,mutationLimit:f,slowClickTimeout:p,slowClickIgnoreSelectors:m,networkDetailAllowUrls:h,networkDetailDenyUrls:g,networkCaptureBodies:v,networkRequestHeaders:BA(y),networkResponseHeaders:BA(b),beforeAddRecordingEvent:ee,beforeErrorSampling:te,onError:ne,attachRawBodyFromRequest:re,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${jA}`:jA,this._recordingOptions.ignoreCSSAttributes=new Set([`background-image`])),this._isInitialized&&Fg())throw Error(`Multiple Sentry Session Replay instances are not supported`);this._isInitialized=!0}get _isInitialized(){return PA}set _isInitialized(e){PA=e}afterAllSetup(e){Fg()&&!this._replay&&(this._initialOptions.attachRawBodyFromRequest&&IA(),this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}
26startBuffering(){this._replay&&this._replay.startBuffering()}stop(e){return this._replay?this._replay.stop({forceFlush:e?.flush??this._replay.recordingMode===`session`,reason:`manual`}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){if(this._replay?.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}processSpan(e){let t=this.getReplayId(!0);t&&(Bh(e,{"sentry.replay_id":t}),this.getRecordingMode()===`buffer`&&Bh(e,{"sentry._internal.replay_is_buffering":!0}))}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){let t=zA(this._initialOptions,e);this._replay=new DA({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName(`ReplayCanvas`);if(!t)return;this._replay._canvas=t.getOptions()}catch{}}};function zA(e,t){let n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},i=wp(n.replaysSessionSampleRate),a=wp(n.replaysOnErrorSampleRate);return i==null&&a==null&&pu(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),i!=null&&(r.sessionSampleRate=i),a!=null&&(r.errorSampleRate=a),r}function BA(e){return[...MA,...e.map(e=>e.toLowerCase())]}function VA(e){return e.split(`,`).some(e=>e.trim().startsWith(`sentry-`))}function HA(e){try{return new URL(e,Cy.location.origin).href}catch{return}}function UA(e){return e.entryType===`resource`&&`initiatorType`in e&&typeof e.nextHopProtocol==`string`&&(e.initiatorType===`fetch`||e.initiatorType===`xmlhttprequest`)}function WA(e){try{return new Headers(e)}catch{return}}var GA={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function KA(e,t){let{traceFetch:n,traceXHR:r,shouldCreateSpanForRequest:i,enableHTTPTimings:a,tracePropagationTargets:o,onRequestSpanStart:s,onRequestSpanEnd:c}
26={...GA,...t},l=typeof i==`function`?i:e=>!0,u=e=>YA(e,o),d={},f=e.getOptions().propagateTraceparent;n&&dy(t=>{let n=Xv(t,l,u,d,{propagateTraceparent:f,onRequestSpanEnd:c});if(n){let r=HA(t.fetchData.url),i=r?L_(r).host:void 0,o=r?z_(r):void 0;n.setAttributes({[jh]:o,[Ih]:o,"server.address":i}),a&&JA(n,e),s?.(n,{headers:t.headers})}}),r&&zS(t=>{let n=XA(t,l,u,d,f,c);n&&(a&&JA(n,e),s?.(n,{headers:WA(t.xhr.__sentry_xhr_v3__?.request_headers)}))})}var qA=300;function JA(e,t){let{url:n}=Bp(e).data;if(!n||typeof n!=`string`)return;let r=()=>void setTimeout(i);if(Km(t)){let t=e.end.bind(e);e.end=e=>{let n=e??Jd(),a=!1,o=()=>{a||(a=!0,setTimeout(i),t(n),clearTimeout(s))};r=o;let s=setTimeout(o,qA)}}let i=Zb(`resource`,({entries:t})=>{t.forEach(t=>{UA(t)&&t.name.endsWith(n)&&(e.setAttributes(Ox(t)),r())})})}function YA(e,t){let n=xy();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}let a=r.origin===i;return t?Nd(r.toString(),t)||a&&Nd(r.pathname,t):a}{let n=!!e.match(/^\/(?!\/)/);return t?Nd(e,t):n}}function XA(e,t,n,r,i,a){let o=e.xhr,s=o?.[RS];if(!o||o.__sentry_own_request__||!s)return;let{url:c,method:l}=s,u=sm()&&t(c);if(e.endTimestamp){let t=o.__sentry_xhr_span_id__;if(!t)return;let n=r[t];n&&(u&&s.status_code!==void 0&&(Zf(n,s.status_code),n.end(),a?.(n,{headers:WA(KS(o)),error:e.error})),delete r[t]);return}let d=HA(c),f=L_(d||c),p=d?z_(d):void 0,m=z_(R_(c)),h=Ff(),g=!!rm(),v=g||!!h&&Km(h),y=u&&v?th({name:`${l} ${m}`,attributes:{url:z_(c),type:`xhr`,"http.method":l,"http.url":p,[Ih]:p,"server.address":f?.host,[Vf]:`auto.http.browser`,[Bf]:`http.client`,...f?.search&&{"http.query":f?.search},...f?.hash&&{"http.fragment":f?.hash}}}):new mm,b=ph(y)&&g?void 0:y;return u&&!v&&h?.recordDroppedEvent(`no_parent_span`,`span`),o.__sentry_xhr_span_id__=y.spanContext().spanId,r[o.__sentry_xhr_span_id__]=y,n(c)&&ZA(o,sm()&&v?b:void 0,i),h&&h.emit(`beforeOutgoingRequestSpan`,y,e),y}function ZA(e,t,n){let{"sentry-trace":r,baggage:i,traceparent:a}=q_({span:t,propagateTraceparent:n});r&&QA(e,r,i,a)}function QA(e,t,n,r){let i=e.__sentry_xhr_v3__?.request_headers;if(!i?.[`sentry-trace`]&&e.setRequestHeader)try{if(e.setRequestHeader(`sentry-trace`,t),r&&!i?.traceparent&&e.setRequestHeader(`traceparent`,r),n){let t=i?.baggage;(!t||!VA(t))&&e.setRequestHeader(`baggage`,n)}}catch{}}var $A=new WeakMap,ej=new WeakMap,tj=9e4,nj=[`text/event-stream`,`application/x-ndjson`,`application/stream+json`],rj=jg(()=>({name:`FetchStreamPerformance`,setup(){fy(e=>{if(e.response){let t=$A.get(e.response);if(t&&e.endTimestamp){t.end(e.endTimestamp);let n=ej.get(e.response);n&&clearTimeout(n)}}}),dy(e=>{if(e.endTimestamp&&e.response){let t=e.response.headers?.get(`content-type`)||``;if(e.response.headers?.get(`content-length`)||!nj.some(e=>
26t.startsWith(e)))return;let n=e.fetchData?.url||``,r=e.fetchData?.method||`GET`,i=F_(n),a=th({name:`${r} ${n.startsWith(`data:`)?z_(n):i?I_(i):n}`,startTime:e.endTimestamp,attributes:{url:z_(n),"http.method":r,type:`fetch`,[Bf]:`http.client.stream`,[Vf]:`auto.http.browser.stream`}});$A.set(e.response,a);let o=setTimeout(()=>{a.isRecording()&&a.end()},tj);ej.set(e.response,o)}})}})),ij=`WebVitals`,aj=jg((e={})=>{let t=new Set(e.ignore??[]);return{name:ij,setup(n){let r=Km(n),{enableStandaloneClsSpans:i,enableStandaloneLcpSpans:a}=e._experiments??{},o=r||t.has(`cls`)?void 0:i||!1,s=r||t.has(`lcp`)?void 0:a||!1,c=Fx({recordClsStandaloneSpans:o,recordLcpStandaloneSpans:s,client:n}),l=new WeakSet;n.on(`afterStartPageLoadSpan`,e=>{l.add(e)}),n.on(`spanEnd`,e=>{l.delete(e)&&(c(),Wx(e,{recordClsOnPageloadSpan:o===!1,recordLcpOnPageloadSpan:s===!1,spanStreamingEnabled:r}))}),r?(t.has(`lcp`)||mS(n),t.has(`cls`)||gS(n),t.has(`inp`)||vS()):t.has(`inp`)||sS()},afterAllSetup(){t.has(`inp`)||fS()}}});function oj(){Cy.document?Cy.document.addEventListener(`visibilitychange`,()=>{let e=rm();if(!e)return;let t=tm(e);if(Cy.document.hidden&&t){let e=`cancelled`,{op:n,status:r}=Bp(t);ZS&&Y.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:2,message:e}),t.setAttribute(`sentry.cancellation_reason`,`document.hidden`),t.end()}}):ZS&&Y.warn(`[Tracing] Could not set up background tab detection due to lack of global document`)}var sj=`sentry_previous_trace`,cj=`sentry.previous_trace`;function lj(e,{linkPreviousTrace:t,consistentTraceSampling:n}){let r=t===`session-storage`,i=r?fj():void 0;e.on(`spanStart`,e=>{if(tm(e)!==e)return;let t=jf().getPropagationContext();i=uj(i,e,t),r&&dj(i)});let a=!0;n&&e.on(`beforeSampling`,e=>{if(!i)return;let t=jf(),n=t.getPropagationContext();if(a&&n.parentSpanId){a=!1;return}t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(i.sampleRate),sampled:String(pj(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=pj(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[zf]:i.sampleRate}})}function uj(e,t,n){let r=Bp(t);function i(){try{let e=Number(r.data?.[`sentry.sample_rate`]??n.dsc?.sample_rate);return Number.isNaN(e)?0:e}catch{return 0}}let a={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!e)return a;let o=e.spanContext;return o.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(ZS&&Y.log(`Adding previous_trace \`${JSON.stringify(o)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:o,attributes:{[Jf]:`previous_trace`}}),t.setAttribute(cj,`${o.traceId}-${o.spanId}-${+!!pj(o)}`)),a)}function dj(e){try{Cy.sessionStorage.setItem(sj,JSON.stringify(e))}catch(e){ZS&&Y.warn(`Could not store previous trace in sessionStorage`,e)}}function fj(){try{let e=Cy.sessionStorage?.getItem(sj);return JSON.parse(e)}catch{return}}function pj(e){return e.traceFlags===1}var mj=`BrowserTracing`,hj=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function gj(){let e=Cy.navigator;return e?.userAgent?hj.test(e.userAgent):!1}var _j={...mh,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:`in-memory`,consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...GA},vj=((e={})=>{`enableElementTiming`in e&&pu(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});let t={name:void 0,source:void 0},n=Cy.document,{enableInp:r,enableLongTask:i,enableLongAnimationFrame:a,_experiments:{enableInteractions:o,enableStandaloneClsSpans:s,enableStandaloneLcpSpans:c},beforeStartSpan:l,idleTimeout:u,finalTimeout:d,childSpanTimeout:f,markBackgroundSpan:p,traceFetch:m,traceXHR:h,trackFetchStreamPerformance:g,shouldCreateSpanForRequest:v,enableHTTPTimings:y,ignoreResourceSpans:b,ignorePerformanceApiSpans:x,instrumentPageLoad:S,instrumentNavigation:C,detectRedirects:w,linkPreviousTrace:T,consistentTraceSampling:E,enableReportPageLoaded:D,onRequestSpanStart:ee,onRequestSpanEnd:te}={..._j,...e}
26,ne=gj(),re,ie;function ae(e,r,i=!0,a){let o=r.op===`pageload`,s=r.name,c=l?l(r):r,p=F_(a||xy()),m={...p?.pathname&&{"url.path":p.pathname},...p&&!P_(p)&&{"url.full":p.href},...c.attributes};if(s!==c.name&&(m[Lf]=`custom`),c.attributes=m,!i){let e=Gd();th({...c,startTime:e}).end(e);return}t.name=c.name,t.source=m[Lf];let h=yh(c,{idleTimeout:u,finalTimeout:d,childSpanTimeout:f,disableAutoFinish:o,beforeSpanEnd:t=>{Ux(t,{ignoreResourceSpans:b,ignorePerformanceApiSpans:x,spanStreamingEnabled:Km(e)}),Ej(e,void 0);let n=jf(),r=n.getPropagationContext();n.setPropagationContext({...r,traceId:h.spanContext().traceId,sampled:Kp(h),dsc:xm(t)}),o&&(ie=void 0)},trimIdleSpanEndTimestamp:!D});o&&D&&(ie=h),Ej(e,h);function g(){n&&[`interactive`,`complete`].includes(n.readyState)&&(e.emit(`idleSpanEnableAutoFinish`,h),n.removeEventListener(`readystatechange`,g))}o&&!D&&n&&(n.addEventListener(`readystatechange`,g),g())}return{name:mj,setup(e){if(ne){ZS&&Y.log(`[Tracing] Skipping browserTracingIntegration setup for bot user agent.`);return}if(om(),a&&au.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes(`long-animation-frame`)?Lx():i&&Ix(),o&&Rx(),w&&n){let e=()=>{re=Jd()};addEventListener(`click`,e,{capture:!0}),addEventListener(`keydown`,e,{capture:!0,passive:!0})}function t(){let t=Tj(e);t&&!Bp(t).timestamp&&(ZS&&Y.log(`[Tracing] Finishing current active span with op: ${Bp(t).op}`),t.setAttribute(Hf,`cancelled`),t.end())}e.on(`startNavigationSpan`,(n,r)=>{if(Ff()!==e)return;if(r?.isRedirect){ZS&&Y.warn(`[Tracing] Detected redirect, navigation span will not be the root span, but a child span.`),ae(e,{op:`navigation.redirect`,...n},!1,r.url);return}re=void 0,t();let i=jf();i.setPropagationContext({traceId:rf(),sampleRand:Math.random(),propagationSpanId:sm()?void 0:af()}),i.setSDKProcessingMetadata({normalizedRequest:void 0}),ae(e,{op:`navigation`,...n,parentSpan:null,forceTransaction:!0},!0,r?.url)}),e.on(`startPageLoadSpan`,(n,r={})=>{if(Ff()!==e)return;t();let i=Dp(r.sentryTrace||xj(`sentry-trace`)||Sj(`sentry-trace`),r.baggage||xj(`baggage`)||Sj(`baggage`)),a=jf();a.setPropagationContext(i),sm()||(a.getPropagationContext().propagationSpanId=af()),a.setSDKProcessingMetadata({normalizedRequest:Oy()}),ae(e,{op:`pageload`,...n})}),e.on(`endPageloadSpan`,()=>{D&&ie&&(ie.setAttribute(Hf,`reportPageLoaded`),ie.end())})},afterAllSetup(e){if(ne)return;e.addIntegration&&!e.getIntegrationByName?.(`WebVitals`)&&e.addIntegration(aj({ignore:r?[]:[`inp`],_experiments:{enableStandaloneClsSpans:s,enableStandaloneLcpSpans:c}}));let n=xy();if(T!==`off`&&lj(e,{linkPreviousTrace:T,consistentTraceSampling:E}),Cy.location){if(S){let t=Zd();yj(e,{name:Cy.location.pathname,startTime:t?t/1e3:void 0,attributes:{[Lf]:`url`,[Vf]:`auto.pageload.browser`}})}C&&jS(({to:t,from:r})=>{if(r===void 0&&n?.indexOf(t)!==-1){n=void 0;return}n=void 0;let i=F_(t),a=Tj(e),o=a&&w&&Oj(a,re);bj(e,{name:i?.pathname||Cy.location.pathname,attributes:{[Lf]:`url`,[Vf]:`auto.navigation.browser`}},{url:t,isRedirect:o})})}p&&oj(),o&&Cj(e,u,d,f,t),KA(e,{traceFetch:m,traceXHR:h,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:v,enableHTTPTimings:y,onRequestSpanStart:ee,onRequestSpanEnd:te}),g&&e.addIntegration(rj())}}});function yj(e,t,n){e.emit(`startPageLoadSpan`,t,n),jf().setTransactionName(t.name);let r=Tj(e);return r&&e.emit(`afterStartPageLoadSpan`,r),r}function bj(e,t,n){let{url:r,isRedirect:i}=n||{};e.emit(`beforeStartNavigationSpan`,t,{isRedirect:i,url:r}),e.emit(`startNavigationSpan`,t,{isRedirect:i,url:r});let a=jf();return a.setTransactionName(t.name),r&&!i&&a.setSDKProcessingMetadata({normalizedRequest:{...Oy(),url:r}}),Tj(e)}function xj(e){return(Cy.document?.querySelector(`meta[name=${e}]`))?.getAttribute(`content`)||void 0}function Sj(e){return(Cy.performance?.getEntriesByType?.(`navigation`)[0])?.serverTiming?.find(t=>t.name===e)?.description}function Cj(e,t,n,r,i){let a=Cy.document,o;a&&addEventListener(`click`,()=>{let a=`ui.action.click`,s=Tj(e);if(s){let e=Bp(s).op;if([`navigation`,`pageload`].includes(e)){ZS&&Y.warn(`[Tracing] Did not create ${a} span because a pageload or navigation span is in progress.`);return}}if(o&&=(o.setAttribute(Hf,`interactionInterrupted`),o.end(),void 0),!i.name){ZS&&Y.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`);return}o=yh({name:i.name,op:a,attributes:{[Lf]:i.source||`url`}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})},{capture:!0})}var wj=`_sentry_idleSpan`;function Tj(e){return e[wj]}function Ej(e,t){od(e,wj,t)}var Dj=1.5;function Oj(e,t){let n=Bp(e),r=Gd();return!(r-n.start_timestamp>Dj||t&&r-t<=Dj)}var kj=[`activate`,`mount`],Aj=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,jj=/(?:^|[-_])(\w)/g,Mj=e=>e.replace(jj,e=>e.toUpperCase()).replace(/[-_]/g,``),Nj=`<Root>`,Pj=`<Anonymous>`,Fj=(e,t)=>e.repeat(t),Ij=(e,t)=>{if(!e)return Pj;if(e.$root===e)return Nj;if(!e.$options)return Pj;let n=e.$options,r=n.name||n._componentTag||n.__name,i=n.__file;if(!r&&i){let e=i.match(/([^/\\]+)\.vue$/);e&&(r=e[1])}return(r?`<${Mj(r)}>`:Pj)+(i&&t!==!1?` at ${i}`:``)},Lj=e=>{if(e&&(e._isVue||e.__isVue)&&e.$parent){let t=[],n=0;for(;e;){if(t.length>0){let r=t[t.length-1];if(r.constructor===e.constructor){n++,e=e.$parent;continue}n>0&&(t[t.length-1]=[r,n],n=0)}t.push(e),e=e.$parent}return` 27 28found in 29 30${t.map((e,t)=>`${(t===0?`---> `:Fj(` `,5+t*2))+(Array.isArray(e)?`${Ij(e[0])}... (${e[1]} recursive calls)`:Ij(e))}`).join(` 31`)}`}return` 32 33(found in ${Ij(e)})`},Rj=(e,t)=>{let{errorHandler:n}=e.config;e.config.errorHandler=(r,i,a)=>{let o={componentName:Ij(i,!1),lifecycleHook:a,trace:i?Lj(i):``};if(t?.attachProps!==!1&&i&&(i.$options?.propsData?o.propsData=i.$options.propsData:i.$props&&(o.propsData=i.$props)),setTimeout(()=>{dg(r,{captureContext:{contexts:{vue:o}},mechanism:{handled:!!n,type:`auto.function.vue.error_handler`}})}),typeof n==`function`&&e.config.errorHandler)n.call(e,r,i,a);else throw r}},zj=`ui.vue`,Bj={activate:[`activated`,`deactivated`],create:[`beforeCreate`,`created`],unmount:[`beforeUnmount`,`unmounted`],destroy:[`beforeDestroy`,`destroyed`],mount:[`beforeMount`,`mounted`],update:[`beforeUpdate`,`updated`]};function Vj(e,t,n){e.$_sentryRootComponentSpanTimer&&clearTimeout(e.$_sentryRootComponentSpanTimer),e.$_sentryRootComponentSpanTimer=setTimeout(()=>{e.$root?.$_sentryRootComponentSpan&&(e.$root.$_sentryRootComponentSpan.end(t),e.$root.$_sentryRootComponentSpan=void 0)},n)}function Hj(e,t){function n(e){return e.replace(/^<([^\s]*)>(?: at [^\s]*)?$/,`$1`)}return e.some(e=>n(t)===n(e))}var Uj=(e={})=>{let t=X_((e.hooks||[]).concat(kj)),n={},r=e.timeout||2e3;for(let i of t){let t=Bj[i];if(!t){Aj&&Y.warn(`Unknown hook: ${i}`);continue}for(let a of t)n[a]=function(){let n=this.$root===this;n&&(this.$_sentryRootComponentSpan=this.$_sentryRootComponentSpan||th({name:`Application Render`,op:`${zj}.render`,attributes:{"sentry.origin":`auto.ui.vue`},onlyIfParent:!0}),Vj(this,Jd(),r));let o=Ij(this,!1);if(!(n||(Array.isArray(e.trackComponents)?Hj(e.trackComponents,o):e.trackComponents))){Vj(this,Jd(),r);return}this.$_sentryComponentSpans=this.$_sentryComponentSpans||{};let s=a===t[0],c=this.$root?.$_sentryRootComponentSpan||rm();if(s){if(c){let e=this.$_sentryComponentSpans[i];e&&e.end(),this.$_sentryComponentSpans[i]=th({name:`Vue ${o}`,op:`${zj}.${i}`,attributes:{[Vf]:`auto.ui.vue`},onlyIfParent:!0})}}else{let e=this.$_sentryComponentSpans[i];if(!e)return;e.end(),Vj(this,Jd(),r)}}}return n},Wj={Vue:au.Vue,attachProps:!0,attachErrorHandler:!0,tracingOptions:{hooks:kj,timeout:2e3,trackComponents:!1}},Gj=`Vue`,Kj=jg((e={})=>({name:Gj,setup(t){let n={...Wj,...t.getOptions(),...e};if(!n.Vue&&!n.app){pu(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured. Update your `Sentry.init` call with an appropriate config option: `app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}
33n.app?(Array.isArray(n.app)?n.app:[n.app]).forEach(e=>qj(e,n)):n.Vue&&qj(n.Vue,n)}})),qj=(e,t)=>{Aj&&e._instance?.isMounted===!0&&pu(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),t.attachErrorHandler&&Rj(e,t),sm(t)&&e.mixin(Uj(t.tracingOptions))};function Jj(e){return!!(typeof e==`object`&&e&&(e.__isVue||e._isVue))}function Yj(e){return!!(typeof e==`object`&&e?.__v_isVNode)}function Xj(e){return Jj(e)?`[VueViewModel]`:Yj(e)?`[VueVNode]`:YC(e)}function Zj(e={}){let t={defaultIntegrations:[...$C(e),Kj()],...e};K_(t,`vue`);let n=ew(t);return xd(Xj),n}function Qj(e,t,n){let r=!1,i=`mode`in e;e.onError(e=>dg(e,{mechanism:{handled:!1}})),e.beforeEach((e,a,...o)=>{let s=r?void 0:$j(),c={};for(let t of Object.keys(e.params))c[`${Lh}.${t}`]=e.params[t],c[`${Nh}.${t}`]=e.params[t];for(let t of Object.keys(e.query)){let n=e.query[t];n&&(c[`query.${t}`]=n)}let l=e.path,u=`url`;if(e.name&&t.routeLabel!==`path`)l=e.name.toString(),u=`custom`;else if(e.matched.length>0){let t=e.matched.length-1;l=e.matched[t].path,u=`route`}if(u===`route`&&(c[Rh]=l),e.name&&(c[Mh]=e.name.toString()),jf().setTransactionName(l),t.instrumentPageLoad&&s&&(Bp(s).data[`sentry.source`]!==`custom`&&(s.updateName(l),s.setAttribute(Lf,u)),s.setAttributes({...c,[Vf]:`auto.pageload.vue`}),r=!0),t.instrumentNavigation&&!s&&n({name:l,op:`navigation`,attributes:{...c,[Vf]:`auto.navigation.vue`,[Lf]:u}},JS(e.fullPath??e.path)),i){let e=o[0];typeof e==`function`&&e()}})}function $j(){let e=rm(),t=e&&tm(e);if(t)return Bp(t).op===`pageload`?t:void 0}function eM(e={}){if(!e.router)return vj(e);let t=vj({...e,instrumentNavigation:!1}),{router:n,instrumentNavigation:r=!0,instrumentPageLoad:i=!0,routeLabel:a=`name`}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),Qj(n,{routeLabel:a,instrumentNavigation:r,instrumentPageLoad:i},(t,n)=>{bj(e,t,{url:n})})}}}var tM=Symbol(),nM={disabled:!0,loging:!0},rM={install:(e,{disabled:t,loging:n=!0})=>{e.provide(tM,j({disabled:t,loging:n}))}},iM=new class{events={};emitted={};$on(e,t){return this.events[e]||(this.events[e]=[]),this.events[e].push(t),this._emitted(e)&&this.$emit(e,null),()=>{this.events[e]=this.events[e].filter(e=>t!==e)}}$emit(e,t){let n=this.events[e];n&&(this.emitted[e]=!0,n.forEach(e=>e(t)))}_emitted(e){return!!this.emitted[e]}};function aM({id:e,src:t,isReloadScript:n=!1}){return new Promise((r,i)=>{let a=document.head||document.getElementsByTagName(`head`)[0],o=e+`scriptLoaded`,s=document.getElementById(e);if(s){if(iM.$on(o,r),!n)return;a.removeChild(s)}let c=document.createElement(`SCRIPT`);c.setAttribute(`src`,t),c.setAttribute(`async`,`true`),c.setAttribute(`defer`,``),c.setAttribute(`charset`,`utf-8`),c.setAttribute(`id`,e),a.appendChild(c),c.onload=()=>{iM.$emit(o,null),r(null)},c.onerror=i})}var oM=function(e){return e.Disabled=`disabled`,e.Connected=`connected`,e.Connecting=`connecting`,e.Disconnected=`disconnected`,e.Disconnecting=`disconnecting`,e.Reconnecting=`reconnecting`,e.Idle=`idle`,e}({}),sM=function(e){return e.Disconnected=`Disconnected`,e.Connecting=`Connecting`,e.Connected=`Connected`,e.Disconnecting=`Disconnecting`,e.Reconnecting=`Reconnecting`,e}(sM||{}),cM={[sM.Connected]:oM.Connected,[sM.Connecting]:oM.Connecting,[sM.Disconnected]:oM.Disconnected,[sM.Disconnecting]:oM.Disconnecting,[sM.Reconnecting]:oM.Reconnecting},lM=e=>`[${e.split(`/`).slice(-2).join(`/`)}]`;function uM(e,t,n){let r=j(nM),i=j(NaN);$n(()=>{let e=F(tM)?.value;e?r.value=e:r.value=nM});let a=lM(e.endpoint);r.value===nM&&(console.error(`[${a}] оÑклÑÑен`),console.error(`[NotificationHub] ÐобавÑÑе плагин в Ð²Ð°Ñ main.ts ÑÑÐ¾Ð±Ñ ÑпÑавлÑÑÑ ÑоÑÑоÑнием notificationHub`));let o=null,s=0,c=q(()=>(i.value,r.value.disabled?oM.Disabled:o?cM[o.state]:oM.Idle)),l=()=>{i.value=Date.now()};async function u(t){if(r.value.disabled)return Promise.resolve();let i=++s;try{await aM({id:`_smartmed-signalr`,src:`https://static.medsi.pro/scripts/signalr.min.js`,isReloadScript:!0})}catch(e){return console.error(`loadScript signalr failed`,e),n.onError?.(`initialization_error`,e),Promise.reject(e)}if(!window.signalR){let e=Error(`${a} window.signalR is empty. Initialization is skipped`);return console.error(`${a} window.signalR is empty. Initialization is skipped`),n.onError?.(`initialization_error`,e),Promise.reject(e)}if(i!==s)return Promise.resolve();l();let c=new window.signalR.HubConnectionBuilder().withUrl(e.endpoint,{transport:e.transport??4,accessTokenFactory:()=>t()}
33).withAutomaticReconnect({nextRetryDelayInMilliseconds:e=>1e3*e.previousRetryCount}).configureLogging(window.signalR.LogLevel.Warning).build();return o=c,p(c),l(),c.onclose(l),c.onreconnected(l),c.onreconnecting(l),c.start().then(()=>{o===c&&(r.value.loging&&console.log(`${a} Connection started`),l())}).catch(e=>(o===c&&l(),console.error(`${a} Error while starting connection: ${e}`),n.onError?.(`start_error`,e),Promise.reject(e)))}function d(){if(r.value.disabled||(s++,!o))return Promise.resolve();let e=o;return m(e),l(),e.stop().then(()=>{o===e&&(o=null,l()),r.value.loging&&console.log(`${a} Connection stoped`)}).catch(t=>(o===e&&l(),console.error(`${a} Error while stoping connection ${t}`),n.onError?.(`stop_error`,t),Promise.reject(t)))}function f(e,...t){return o?o.invoke(e,...t):Promise.reject(null)}function p(e){t.forEach(({eventName:t,resolver:n})=>e.on(t,n))}function m(e){t.forEach(({eventName:t})=>e.off(t))}return{state:c,start:u,stop:d,invoke:f}}function dM(e){return typeof e==`function`?q(e):on(e)?e:j(e)}function fM(e){return`beforeStart`in e}function pM(e){Fe()&&fo()&&ii(e)}function mM(e,t,n=[],r={},i){let a=fM(r)?{}:r,o=fM(r)?r:i??{},s=dM(t),c=uM(e,n,a),l=j(NaN),u=s.value,d=!1,f=!1,p=async()=>{await c.stop(),f=!1,u&&(await o.beforeStart?.(),f=!1,u&&await c.start(()=>u??``))},m=async()=>{if(d){f=!0;return}d=!0,f=!0;try{for(;f;){f=!1;try{await p()}catch{if(!f)break}}}
33finally{d=!1,f&&m()}},h=e=>{u=e,f=!0,m()};return pM(()=>{h(null)}),I([s,l],([e])=>h(e),{immediate:!0}),{state:c.state,invoke:c.invoke,manualRetry:()=>{l.value=Date.now()}}}var hM=Symbol(),gM=5e3,_M={type:`success`,closable:!0,autoClose:5e3,data:void 0};function vM(){let e=j([]),t=new Map,n=n=>{let r=t.get(n);r&&clearTimeout(r),t.delete(n),e.value=e.value.filter(({id:e})=>e!==n)};return{alerts:e,close:n,closeLast:()=>{let t=e.value[0];t&&n(t.id)},show:(r,i,a=_M)=>{let{type:o=_M.type,autoClose:s=_M.autoClose,closable:c=_M.closable}=a;if(e.value=e.value.concat({id:r,content:i,type:o,closable:c,data:a.data}),s){let e=setTimeout(()=>{n(r)},typeof s==`number`?s:gM);t.set(r,e)}}}}var yM=Symbol(),bM=Symbol(),xM=Symbol(),SM=Symbol(),CM=Symbol(),wM=Symbol(),TM=Symbol(),EM=Symbol(),DM=Symbol(),OM=Symbol(),kM=Symbol(),AM=Symbol(),jM=Symbol(),MM=Symbol(),NM=Symbol(),PM=Symbol(),FM=`__internalSmedMediaBreakpoints`,IM=Symbol(),LM=Symbol(),RM=Symbol(),zM=Symbol(),BM=Symbol(),VM=Symbol(),HM=Symbol(),UM=`https://static.medsi.pro`,WM=Symbol(),GM=e=>e.startsWith(`@smed.`)?`${UM}/icons/${e.replace(`@smed.`,``)}.svg`:e.includes(`/`)?e:`${UM}/icons/${e}.svg`,KM=Symbol(),qM=Symbol(),JM=Symbol();function YM(e){return e.composedPath()[0]}function XM(e){return`getRootNode`in e&&e.isConnected?e.getRootNode():e.ownerDocument}function ZM(e){return XM(e).activeElement!==e&&!e.matches(`:disabled`)}var QM=j(null),$M=null,eN=()=>{$M?.removeEventListener(`focusin`,aN),$M?.removeEventListener(`focusout`,tN)},tN=e=>{eN(),ZM(YM(e))&&(QM.value=e.relatedTarget)},nN=e=>{QM.value=e.target},rN=e=>{let{relatedTarget:t,target:n}=e;t&&ZM(n)&&(QM.value=t)},iN=e=>{e.addEventListener(`focusin`,nN),e.addEventListener(`focusout`,rN),$M=e},aN=e=>{eN();let t=YM(e),n=XM(t);n===document?QM.value=t:(QM.value=t,iN(n))},oN=()=>{eN();let e=document.activeElement;e?.matches(`iframe`)||(QM.value=e)},sN=e=>{let t=()=>{QM.value=e,window.removeEventListener(`focusout`,t)};window.addEventListener(`focusout`,t),setTimeout(()=>{window.removeEventListener(`focusout`,t)},0)},cN=e=>{eN(),window.removeEventListener(`focusout`,tN);let t=YM(e);!document.activeElement||document.activeElement===document.body?QM.value=t:sN(t)},lN=()=>{window.addEventListener(`focusout`,tN)},uN={install:e=>{e.config.globalProperties.$smedserver||(document.body.onclick=Zl,window.addEventListener(`focusout`,tN),window.addEventListener(`focusin`,aN),window.addEventListener(`blur`,oN),window.addEventListener(`mousedown`,cN),window.addEventListener(`mouseup`,lN)),e.provide(hM,Yt(QM))}},dN={size:`lg`,rotateDeg:180,color:`currentColor`},fN={sm:16,md:20,lg:24,xl:32,xxl:52},pN=[`data-rotate`,`data-test`],mN=[`src`],hN=L({name:`Icon`,__name:`Icon`,props:z({name:{},size:{},colored:{type:Boolean},rotate:{type:Boolean},rotateDeg:{},background:{},color:{}},dN),setup(e){us(e=>({v135f0b22:e.color,v3223ab40:c.value,v5cffdcbc:M(a),b74bbbdc:l.value}));let{name:t,rotateDeg:n,colored:r,size:i,background:a}=N(e),o=F(KM,GM),s=q(()=>{let e=t.value;return e?o(e):``}),c=q(()=>{let e=s.value;return r.value||!e?`var(--smed-empty-icon)`:`url('${e}')`}),l=q(()=>`${n.value}deg`),u=q(()=>{let e=i.value;return typeof e==`string`?[fN[e],fN[e]]:typeof e==`number`?[e,e]:Array.isArray(e)&&e.length===2?[e[0],e[1]]:[fN.lg,fN.lg]}),d=q(()=>{let[e,t]=u.value;return{"--smed-icon-width":`${e}px`,"--smed-icon-height":`${t}px`,"--smed-icon-scaled":a.value?`${(e-8)/e}`:`1`}});return(n,i)=>(V(),H(`span`,{class:`smed-icon`,"data-automation-id":`smed-icon`,"data-rotate":e.rotate,"data-test":M(t)||``,style:ge(d.value)},[R(n.$slots,`default`,{},()=>[M(r)?(V(),H(`img`,{key:0,alt:``,src:s.value},null,8,mN)):K(``,!0)])],12,pN))}}),Z=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};function gN(e){return typeof e==`function`?q(e):j(e)}function _N(e){Fe()&&ii(e)}var vN={size:`lg`,rotateDeg:180},yN={sm:16,md:20,lg:24,xl:32,xxl:52},bN=new Headers({Accept:`image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*`}),xN=class{},SN=qt({});function CN(e,t,n){if(e in SN){let t=SN[e];return typeof t==`string`?Promise.resolve(t):t||Promise.resolve(``)}if(!fetch)return Promise.resolve(``);let r=fetch(n(e),{method:`GET`,headers:bN,signal:t.signal}).then(e=>e.ok?e.text():Promise.reject(null)).then(t=>(SN[e]=DN(t),t)).catch(()=>(delete SN[e],t.signal.aborted?new xN:``));return SN[e]=r,r}var wN=`width="`,TN=`height="`,EN=`<svg`;function DN(e){let t=e.slice(Math.max(0,e.indexOf(EN))),n=t.slice(0,Math.max(0,t.indexOf(`>`))),r=n.indexOf(wN);return n.indexOf(TN)===-1||r===-1?e.replace(EN,`${EN} width="100%" height="100%"`):e}function ON(e){let t=gN(e),n=F(KM,GM),r=F(SM,{}),i=null,a=!0,o=q(()=>{let e=t.value;if(r[e])return r[e];let n=SN[e];return typeof n==`string`?n:null}),s=()=>{i&&i.abort()},c=e=>{s(),!r[e]&&(i=new AbortController,CN(e,i,n).then(t=>{if(i=null,t instanceof xN&&a)return c(e)}))};return _N(()=>{a=!1,s()}),I(t,c,{immediate:!0}),o}var kN=[`data-rotate`,`data-test`],AN=[`innerHTML`],jN=Z(L({name:`
33SvgIcon`,__name:`SvgIcon`,props:z({name:{},size:{},rotate:{type:Boolean},rotateDeg:{}},vN),setup(e){us(e=>({efd29288:t.value}));let t=q(()=>`${n.rotateDeg}deg`),n=e,{name:r,size:i}=N(n),a=ON(r),o=q(()=>{let e=i.value;return typeof e==`string`?[yN[e],yN[e]]:typeof e==`number`?[e,e]:Array.isArray(e)&&e.length===2?[e[0],e[1]]:[yN.lg,yN.lg]}),s=q(()=>{let[e,t]=o.value;return{"--smed-svg-icon-width":`${e}px`,"--smed-svg-icon-height":`${t}px`}});return(t,n)=>(V(),H(`span`,{"data-automation-id":`smed-svg-icon`,class:`smed-svg-icon`,"data-rotate":e.rotate,"data-test":M(r)||``,style:ge(s.value)},[typeof M(a)==`string`?(V(),H(`span`,{key:0,innerHTML:M(a),class:`smed-svg-icon`},null,8,AN)):(V(),U(mi(M(a)),{key:1,tabindex:`-1`,focusable:`false`,"aria-hidden":`true`,width:`100%`,height:`100%`}))],12,kN))}}),[[`__scopeId`,`data-v-56add58c`]]),MN=jN,NN={onMousedown:`mousedown`,onMouseup:`mouseup`,onFocus:`focus`,onBlur:`blur`},PN=(e,t)=>{t.forEach(t=>{let n=`_smed_${t.key}`;e.addEventListener(NN[t.key],t.callback),e[n]=t.callback})},FN=(e,t)=>{t.forEach(t=>{let n=`_smed_${t}`,r=e[n];r&&(e.removeEventListener(NN[t],r),delete e[n])})},IN=`smed-focused-element`,LN={mounted:e=>{let t=!0;PN(e,[{key:`onMousedown`,callback:()=>{t=!1}},{key:`onMouseup`,callback:()=>{t=!0}},{key:`onFocus`,callback:()=>{t&&e.classList.add(IN)}},{key:`onBlur`,callback:()=>{e.classList.remove(IN),t=!0}}])},beforeUnmount:e=>{FN(e,[`onMousedown`,`onMouseup`,`onFocus`,`onBlur`])}},RN={type:`success`},zN=[`data-type`],BN={class:`smed-alert__content`},VN={alertMaxWidth:680,component:L({name:`Alert`,__name:`Alert`,props:z({type:{},content:{},closable:{type:Boolean},data:{}},RN),emits:[`close`],setup(e,{emit:t}){let n=e,r=t,{type:i}=N(n),a=F(bM,null),o=q(()=>{let e=i.value;return a?.iconsByType[e]}),s=()=>{r(`close`)},c={data:n.data,close:s};return(t,n)=>(V(),H(`div`,{"data-automation-id":`smed-alert`,class:`smed-alert`,"data-type":M(i)},[W(`div`,BN,[typeof o.value==`string`?(V(),U(M(jN),{key:0,class:`smed-alert__icon`,name:o.value},null,8,[`name`])):typeof o.value==`function`?(V(),U(mi(o.value),{key:1})):K(``,!0),typeof e.content==`string`?(V(),H(B,{key:2},[eo(A(e.content),1)],64)):(V(),U(mi(e.content),{key:3,context:c}))]),e.closable?qn((V(),H(`button`,{key:0,type:`button`,"aria-label":`ÐакÑÑÑÑ Ð½Ð¾ÑиÑикаÑиÑ`,title:`ÐакÑÑÑÑ Ð½Ð¾ÑиÑикаÑиÑ`,"data-automation-id":`smed-alert-close`,class:`smed-alert__close`,onClick:Qs(s,[`stop`,`prevent`])},[G(M(hN),{name:`@smed.close`,size:`sm`})])),[[M(LN)]]):K(``,!0)],8,zN))}}),position:`bottom`,transitionName:`smed-list-transition`,iconsByType:{success:`check-rounded`,error:`warning-rounded`,warning:`warning-rounded`,info:`info-circle`}},HN={install:(e,t)=>{let{alertMaxWidth:n=VN.alertMaxWidth,transitionName:r=VN.transitionName,component:i=VN.component,position:a=VN.position,iconsByType:o=VN.iconsByType}=t||{},s=vM();e.provide(bM,{component:i,transitionName:r,position:a,alertMaxWidth:n,iconsByType:o}),e.provide(yM,s)}},UN={mobile:768,landscape:1024},WN={popupMobileBreakpoint:UN.mobile,breakpoints:UN},GN={install:(e,t=WN)=>{let n=e.config.globalProperties.$smedserver,r=j(n?1440:window.innerWidth),i=q(()=>r.value<t.popupMobileBreakpoint),a=nu(()=>{r.value=window.innerWidth},100);!n&&window.addEventListener(`resize`,a),e.provide(PM,r),e.provide(FM,t.breakpoints),e.provide(jM,i)}},KN={};function qN(e,t){return R(e.$slots,`default`)}var JN=Z(KN,[[`render`,qN]]),YN={alerts:VN,media:WN,nuxt:!1},XN={install:(e,t)=>{e.use(uN).use(HN,t.alerts).use(GN,t.media),t.nuxt||e.component(`ClientOnly`,JN)}},ZN={mounted(e){e.focus()}};function QN(e,t){return e.contains(t)||!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}var $N={mounted:(e,{value:t})=>{document.addEventListener(`keydown`,({key:n,target:r})=>{n===`Escape`&&r instanceof Element&&(!QN(e,r)||e.contains(r))&&t.onEvent()})}};function eP(e=document){if(!e.activeElement||!e.activeElement.shadowRoot)return e.activeElement;let t=e.activeElement.shadowRoot.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function tP(e,t=!0,n=!1){t?e.focus({preventScroll:n}):e.blur()}function nP(){let e=eP();e instanceof HTMLElement&&tP(e,!1)}function rP(e){if(e.hasAttribute(`disabled`)||e.getAttribute(`tabIndex`)===`-1`)return!1;if(e instanceof HTMLElement&&e.isContentEditable||e.getAttribute(`tabIndex`)===`0`)return!0;switch(e.tagName){case`BUTTON`:case`SELECT`:case`TEXTAREA`:return!0;case`VIDEO`:case`AUDIO`:return e.hasAttribute(`controls`);case`INPUT`:return e.getAttribute(`type`)!==`hidden`;
33case`A`:case`LINK`:return e.hasAttribute(`href`);default:return!1}}var iP=(e=>`ownerSVGElement`in e?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);function aP(e,t=!1,n){if(!n.ownerDocument)return null;let r=n.ownerDocument.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,iP);for(r.currentNode=e;t?r.previousNode():r.nextNode();)if(r.currentNode instanceof HTMLElement&&(e=r.currentNode),rP(e))return e;return null}function oP(e){return!!e&&!!e.ownerDocument&&eP(e.ownerDocument)===e}function sP(e,t,n){for(e+=n;e>=0&&e<t.length;){if(tP(t[e]),oP(t[e]))return;e+=n}}var cP={mounted:(e,{value:t})=>{if(t&&t.handle===!1)return;e.setAttribute(`tabIndex`,`0`),e.__smedBeforeFocustrapFocusedElement=eP(),Fn(()=>e.focus());let n=()=>{e.removeAttribute(`tabIndex`),e.removeEventListener(`blur`,n),e.__smedBlurListener=null};e.addEventListener(`blur`,n),e.__smedBlurListener=n},beforeUnmount:e=>{nP(),e.__smedBlurListener&&=(e.removeEventListener(`blur`,e.__smedBlurListener),null),Fn(()=>{let t=e.__smedBeforeFocustrapFocusedElement;t instanceof HTMLElement&&tP(t)})}},lP=new Map,uP={mounted:(e,{value:t})=>{let n=()=>{t.onEvent?.(!0)},r=()=>{t.onEvent?.(!1)};e.addEventListener(`mouseenter`,n),e.addEventListener(`mouseleave`,r),lP.set(e,[n,r])},beforeUnmount:e=>{let t=lP.get(e);t&&(e.removeEventListener(`mouseenter`,t[0]),e.removeEventListener(`mouseleave`,t[1])),lP.delete(e)}},dP={threshold:1},fP={mounted(e,{value:t}){let{onIntersect:n,isObserve:r=!0,disconnectAfterIntersect:i=!0,options:a={}}=t;r&&IntersectionObserver&&(e.__observer_intersection=new IntersectionObserver(([t])=>{let{isIntersecting:r}=t;r&&(n(t),i&&e.__observer_intersection.disconnect())},{...dP,...a,root:typeof a.root==`function`?a.root():a.root}),e.__observer_intersection.observe(e))},beforeUnmount(e){e.__observer_intersection&&e.__observer_intersection.disconnect()}},pP={mask:/^.*$/,preprocessors:[],postprocessors:[],plugins:[],overwriteMode:`shift`},mP=class{constructor(){this.now=null,this.past=[],this.future=[]}undo(){let e=this.past.pop();e&&this.now&&(this.future.push(this.now),this.updateElement(e,`historyUndo`))}redo(){let e=this.future.pop();e&&this.now&&(this.past.push(this.now),this.updateElement(e,`historyRedo`))}updateHistory(e){if(!this.now){this.now=e;return}let t=this.now.value!==e.value,n=this.now.selection.some((t,n)=>t!==e.selection[n]);(t||n)&&(t&&(this.past.push(this.now),this.future=[]),this.now=e)}updateElement(e,t){this.now=e,this.updateElementState(e,{inputType:t,data:null})}};function hP(e,...t){return t.every(({value:t})=>t===e.value)}function gP(e,...t){return t.every(({value:t,selection:n})=>t===e.value&&n[0]===e.selection[0]&&n[1]===e.selection[1])}function _P({value:e,selection:t},n,r){let[i,a]=t;return{value:e,selection:(typeof r==`function`?r({value:e,selection:t}):r)===`replace`?[i,Math.max(i+n.length,a)]:[i,a]}}function vP(e){return typeof e==`string`}function yP(e,t,n,r){let i=``;for(let a=t.length;a<e.length;a++){let t=e[a]||``,o=r?.value[a]===t;if(!vP(t)||t===n&&!o)return i;i+=t}return i}function bP(e,t){return Array.isArray(t)?e.length===t.length&&Array.from(e).every((e,n)=>{let r=t[n]||``;return vP(r)?e===r:e.match(r)}):t.test(e)}function xP(e,t,n){let r=null,i=null,a=Array.from(e.value).reduce((a,o,s)=>{let c=yP(t,a,o,n),l=a+c,u=t[l.length]||``;return r===null&&s>=e.selection[0]&&(r=l.length),i===null&&s>=e.selection[1]&&(i=l.length),vP(u)?l+u:o.match(u)?l+o:c.startsWith(o)?l:a},``),o=yP(t,a,``,n);return{value:bP(a+o,t)?a+o:a,selection:[r??a.length,i??a.length]}}function SP({value:e,selection:t},n){let[r,i]=t,a=r,o=i,s=Array.from(e).reduce((e,t,s)=>{let c=e+t;return r===s&&(a=e.length),i===s&&(o=e.length),c.match(n)?c:e},``);return{value:s,selection:[Math.min(a,s.length),Math.min(o,s.length)]}}function CP(e,t,n=null){if(bP(e.value,t))return e;let{value:r,selection:i}=Array.isArray(t)?xP(e,t,n):SP(e,t);return{selection:i,value:Array.isArray(t)?r.slice(0,t.length):r}}function wP(e,t){if(!Array.isArray(t))return e;let[n,r]=e.selection,i=[],a=Array.from(e.value).reduce((e,a,o)=>{let s=t[o]||``;return o===n&&i.push(e.length),o===r&&i.push(e.length),vP(s)&&s===a?e:e+a},``);return i.length<2&&i.push(...Array(2-i.length).fill(a.length)),{value:a,selection:[i[0],i[1]]}}var TP=class{constructor(e,t){this.maskOptions=t,this.unmaskInitialState={value:``,selection:[0,0]},this.value=``,this.selection=[0,0];let n=this.getMaskExpression(e),{value:r,selection:i}=CP(e,n);this.unmaskInitialState=wP({value:r,selection:i},n),this.value=r,this.selection=i}addCharacters(e){let{value:t,selection:n,maskOptions:r}=this,i={value:t,selection:n},{selection:[a,o]}=_P(i,e,r.overwriteMode),s=this.getMaskExpression({value:t.slice(0,a)+e+t.slice(o),selection:[a+e.length,a+e.length]}),[c,l]=_P(this.unmaskInitialState,e,r.overwriteMode).selection,u=this.unmaskInitialState.value.slice(0,c)+e,d=u.length,f=CP({value:u+this.unmaskInitialState.value.slice(l),selection:[d,d]},s,i),p=t.slice(0,a),m=CP({value:u,selection:[d,d]},s,i);if(m.value===p||m.value.length<p.length&&wP(m,s).value===this.unmaskInitialState.value.slice(0,c)||gP(this,f))throw Error(`Invalid mask value`);this.value=f.value,this.selection=f.selection}deleteCharacters(){let[e,t]=this.selection;if(e===t||!t)return;let{value:n}=this,r=this.getMaskExpression({value:n.slice(0,e)+n.slice(t),selection:[e,e]}),i={value:n},[a,o]=this.unmaskInitialState.selection,s=CP({value:this.unmaskInitialState.value.slice(0,a)+this.unmaskInitialState.value.slice(o),selection:[a,a]},r,i);this.value=s.value,this.selection=s.selection}getMaskExpression(e){let{mask:t}=this.maskOptions;return typeof t==`function`?t(e):t}},EP=class{constructor(e){this.element=e,this.listeners=[]}
33listen(e,t,n){let r=t;this.element.addEventListener(e,r,n),this.listeners.push(()=>this.element.removeEventListener(e,r,n))}destroy(){this.listeners.forEach(e=>e())}},DP={CTRL:1,ALT:2,SHIFT:4,META:8},OP={Y:89,Z:90};function kP(e,t,n){return e.ctrlKey===!!(t&DP.CTRL)&&e.altKey===!!(t&DP.ALT)&&e.shiftKey===!!(t&DP.SHIFT)&&e.metaKey===!!(t&DP.META)&&e.keyCode===n}function AP(e){return kP(e,DP.CTRL,OP.Y)||kP(e,DP.CTRL|DP.SHIFT,OP.Z)||kP(e,DP.META|DP.SHIFT,OP.Z)}function jP(e){return kP(e,DP.CTRL,OP.Z)||kP(e,DP.META,OP.Z)}function MP(e,t){var n;let r=e.value;if(typeof t==`string`)e.value=t;else{let[r,i]=t.selection;e.value=t.value,e.matches(`:focus`)&&((n=e.setSelectionRange)==null||n.call(e,r,i))}e.value!==r&&e.dispatchEvent(new Event(`input`,{bubbles:!0}))}function NP({value:e,selection:t},n){let[r,i]=t;if(r!==i)return[r,i];let a=n?e.slice(r).indexOf(` 34`)+1||e.length:e.slice(0,i).lastIndexOf(` 35`)+1;return[n?r:a,n?a:i]}function PP({value:e,selection:t},n){let[r,i]=t;return r===i?(n?[r,i+1]:[r-1,i]).map(t=>Math.min(Math.max(t,0),e.length)):[r,i]}var FP=/\s+$/g,IP=/^\s+/g,LP=/\s/;function RP({value:e,selection:t},n){let[r,i]=t;if(r!==i)return[r,i];if(n){let t=e.slice(r),[n]=t.match(IP)||[``],i=t.trimStart().search(LP);return[r,i===-1?e.length:r+n.length+i]}let a=e.slice(0,i),[o]=a.match(FP)||[``],s=a.trimEnd().split(``).reverse().findIndex(e=>LP.exec(e));return[s===-1?0:i-o.length-s,i]}function zP(e=[]){return(t,...n)=>e.reduce((e,t)=>Object.assign(Object.assign({},e),t(e,...n)),t)}function BP(e,t){let n=Object.assign(Object.assign({},pP),t),r=zP(n.preprocessors),i=zP(n.postprocessors),a=typeof e==`string`?{value:e,selection:[0,0]}:e,{elementState:o}=r({elementState:a,data:``},`validation`),{value:s,selection:c}=i(new TP(o,n),a);return typeof e==`string`?s:{value:s,selection:c}}function VP(){return e=>{let t=new EP(e),n=!1,r,i=e.value;return t.listen(`keydown`,({key:e})=>{n=e===`Unidentified`}),t.listen(`beforeinput`,t=>{r=t,i=e.value}),t.listen(`input`,t=>{n&&r.defaultPrevented&&r.inputType===`deleteContentBackward`&&t.inputType===`deleteContentBackward`&&(e.value=i)},{capture:!0}),()=>t.destroy()}}var HP=` `;function UP(){let e=``,t=0,n=null,r=!1;return i=>{let a=new EP(i);return a.listen(`beforeinput`,a=>{var o,s;let{value:c,selectionStart:l,selectionEnd:u}=i,d=n?.inputType===`insertText`&&n?.data===HP&&!c.slice(0,Number(u)).endsWith(HP);a.inputType===`insertText`&&a.data===`.${HP}`&&(n?.inputType===`deleteContentBackward`&&r?(i.value=e,(o=i.setSelectionRange)==null||o.call(i,t,t)):d&&((s=i.setSelectionRange)==null||s.call(i,l,l))),r=d,n=a,e=c,t=Number((d?t:u)===c.length?u:l)}),()=>a.destroy()}}function WP(e){return(t,n)=>{let r=t.selectionStart??0,i=t.selectionEnd??0;MP(t,{value:BP(t.value,e||n),selection:[r,i]})}}var GP=[UP(),VP()],KP=class extends mP{constructor(e,t){super(),this.element=e,this.maskitoOptions=t,this.isTextArea=this.element.nodeName===`TEXTAREA`,this.eventListener=new EP(this.element),this.options=Object.assign(Object.assign({},pP),this.maskitoOptions),this.upcomingElementState=null,this.preprocessor=zP(this.options.preprocessors),this.postprocessor=zP(this.options.postprocessors),this.teardowns=this.options.plugins.concat(GP).map(e=>e(this.element,this.options)),this.updateHistory(this.elementState),this.eventListener.listen(`keydown`,e=>{if(AP(e))return e.preventDefault(),this.redo();if(jP(e))return e.preventDefault(),this.undo()}),this.eventListener.listen(`beforeinput`,e=>{let t=e.inputType.includes(`Forward`);switch(this.updateHistory(this.elementState),e.inputType){case`deleteByCut`:case`deleteContentBackward`:case`deleteContentForward`:return this.handleDelete({event:e,isForward:t,selection:PP(this.elementState,t)});case`deleteHardLineBackward`:case`deleteHardLineForward`:case`deleteSoftLineBackward`:case`deleteSoftLineForward`:return this.handleDelete({event:e,isForward:t,selection:NP(this.elementState,t),force:!0});case`deleteWordBackward`:case`deleteWordForward`:return this.handleDelete({event:e,isForward:t,selection:RP(this.elementState,t)});case`historyRedo`:return e.preventDefault(),this.redo();case`historyUndo`:return e.preventDefault(),this.undo();case`insertCompositionText`:return;case`insertLineBreak`:case`insertParagraph`:return this.handleEnter(e);case`insertReplacementText`:return;default:return this.handleInsert(e,e.data??e.dataTransfer?.getData(`text/plain`)??``)}}),this.eventListener.listen(`input`,()=>{this.upcomingElementState&&!gP(this.upcomingElementState,this.elementState)&&this.updateElementState(this.upcomingElementState),this.upcomingElementState=null},{capture:!0}
35),this.eventListener.listen(`input`,({inputType:e})=>{e!==`insertCompositionText`&&(this.ensureValueFitsMask(),this.updateHistory(this.elementState))}),this.eventListener.listen(`compositionend`,()=>{this.ensureValueFitsMask(),this.updateHistory(this.elementState)})}destroy(){this.eventListener.destroy(),this.teardowns.forEach(e=>e?.())}updateElementState({value:e,selection:t},n){let r=this.elementState.value;this.updateValue(e),this.updateSelectionRange(t),n&&r!==e&&this.dispatchInputEvent(n)}get elementState(){let{value:e,selectionStart:t,selectionEnd:n}=this.element;return{value:e,selection:[t??0,n??0]}}get maxLength(){let{maxLength:e}=this.element;return e===-1?1/0:e}updateSelectionRange([e,t]){var n;let{element:r}=this;r.matches(`:focus`)&&(r.selectionStart!==e||r.selectionEnd!==t)&&((n=r.setSelectionRange)==null||n.call(r,e,t))}updateValue(e){(this.element.value!==e||this.element.isContentEditable)&&(this.element.value=e)}ensureValueFitsMask(){this.updateElementState(BP(this.elementState,this.options),{inputType:`insertText`,data:null})}dispatchInputEvent(e={inputType:`insertText`,data:null}){globalThis.InputEvent&&this.element.dispatchEvent(new InputEvent(`input`,Object.assign(Object.assign({},e),{bubbles:!0,cancelable:!1})))}handleDelete({event:e,selection:t,isForward:n}){let r={value:this.elementState.value,selection:t},{elementState:i}=this.preprocessor({elementState:r,data:``},n?`deleteForward`:`deleteBackward`),a=new TP(i,this.options);a.deleteCharacters();let o=this.postprocessor(a,r);if(hP(r,i,a,o)){let[t,r]=i.selection;return e.preventDefault(),this.updateSelectionRange(n?[r,r]:[t,t])}this.upcomingElementState=o}handleInsert(e,t){let{options:n,maxLength:r,elementState:i}=this,[a,o]=i.selection,{elementState:s,data:c=t}=this.preprocessor({data:t,elementState:i},`insert`),l=new TP(s,n);try{l.addCharacters(c)}catch{return e.preventDefault()}this.upcomingElementState=this.clampState(this.postprocessor(l,i)),i.value.length>=r&&a===o&&(n.overwriteMode===`replace`&&!gP(this.upcomingElementState,i)?this.dispatchInputEvent({inputType:`insertText`,data:t}):this.upcomingElementState=null)}handleEnter(e){(this.isTextArea||this.element.isContentEditable)&&this.handleInsert(e,` 36`)}clampState({value:e,selection:t}){let[n,r]=t,i=this.maxLength;return{value:e.slice(0,i),selection:[Math.min(n,i),Math.min(r,i)]}}},qP=`input:not([data-maskito-skip="true"]),textarea:not([data-maskito-skip="true"])`,JP=e=>e.querySelector(qP)||e,YP=new Map,XP=new Map;async function ZP(e,t){let n=t?.elementPredicate??JP;XP.set(e,n);let r=await n(e);XP.get(e)===n&&(YP.get(e)?.destroy(),t&&YP.set(e,new KP(r,t)))}var QP={unmounted:e=>{YP.get(e)?.destroy(),YP.delete(e),XP.delete(e)},mounted:async(e,{value:t})=>ZP(e,t),updated:async(e,{value:t,oldValue:n})=>{t!==n&&await ZP(e,t)}},$P=`\xA0â\xA0`;function eF(e,t,n){return Math.min(n,Math.max(t,e))}function tF(e,t=`,`,n=`\xA0`){let r=`${Math.floor(Math.abs(e))}`,i=`${e}`.split(`.`)[1]||``,a=e<0?`-`:``,o=r.length%3,s=a+r.charAt(0);for(let e=1;e<r.length;e++)e%3===o&&r.length>3&&(s+=n),s+=r.charAt(e);return i?s+t+i:s}var nF=[`байÑ`,`Ðб`,`Ðб`,`Ðб`,`Тб`,`Ðб`,`Ðб`,`Ðб`,`Ðб`],rF=1024,iF=(e,t=0)=>{if(e===0)return`0 байÑ`;let n=t<0?0:t,r=Math.floor(Math.log(e)/Math.log(rF));return parseFloat((e/rF**+r).toFixed(n))+` `+nF[r]},aF=2;function oF(e,t,n,r){return n?sF(e,t,r):cF(e,t,r)}function sF(e,t,n){let r=e;for(;r!==t.parentElement;){if(Math.floor(r.scrollTop)>0&&!n||Math.ceil(r.scrollTop+r.clientHeight)<r.scrollHeight-aF&&n)return!0;if(r.parentElement)r=r.parentElement;else return!1}return!1}function cF(e,t,n){let r=e;for(;r!==t.parentElement;){if(Math.floor(r.scrollLeft)>0&&!n||Math.ceil(r.scrollLeft+r.clientWidth)<r.scrollWidth-aF&&n)return!0;if(r.parentElement)r=r.parentElement;else return!1}return!1}function lF(e,t,n=`horizontal`){if(n===`horizontal`){let n=eF(t.offsetLeft-e.offsetLeft,0,1/0),r=n+t.offsetWidth,i=e.scrollLeft;r>e.scrollLeft+e.clientWidth?e.scrollTo({left:r-e.clientWidth,behavior:`smooth`}):n<i&&e.scrollTo({left:n,behavior:`smooth`})}else if(n===`vertical`){let n=eF(t.offsetTop-e.offsetTop,0,1/0),r=n+t.offsetHeight,i=e.scrollTop;r>e.scrollTop+e.clientHeight?e.scrollTo({top:r-e.clientHeight,behavior:`smooth`}):n<i&&e.scrollTo({top:n,behavior:`smooth`})}}var uF=new Map;function dF(e){return!!e&&`nodeType`in e&&e.nodeType===Node.ELEMENT_NODE}function fF(e,t=!0){return e===null?null:t&&e.scrollHeight>e.clientHeight||!t&&e.scrollWidth>e.clientWidth?e:fF(e.parentElement,t)}var pF=(e,t,n,r)=>{let{target:i,currentTarget:a,cancelable:o}=e;if(!o||!a||!dF(i)||i?.type===`range`)return;let s=a;if(r===`all`&&(t&&!s.contains(fF(i))||!t&&!s.contains(fF(i,!1)))){e.preventDefault();return}if(t&&(n&&!oF(i,s,!0,!1)||!n&&!oF(i,s,!0,!0))){e.preventDefault();return}!t&&(n&&!oF(i,s,!1,!1)||!n&&!oF(i,s,!1,!0))&&e.preventDefault()},mF=(e,t)=>{let n=e=>{pF(e,!!e.deltaY,e.deltaY?e.deltaY<0:e.deltaX<0,t)},r=0,i=0,a=0,o=0,s,c=e=>{let n=e.changedTouches[0];a=r-n.clientX,o=i-n.clientY,r=n.clientX,i=n.clientY,s===void 0&&(s=Math.abs(o)>
36Math.abs(a)),pF(e,s,s?o<0:a<0,t)};return{wheelHandler:n,touchstartHandler:t=>{let n=t.touches[0];r=n.clientX,i=n.clientY,a=0,o=0,s=void 0,e.removeEventListener(`touchmove`,c),e.addEventListener(`touchmove`,c,{passive:!1})},touchmoveHandler:c}},hF=(e,{value:t=`all`})=>{if(t===`none`)return;e.style.overscrollBehavior=`contain`;let{wheelHandler:n,touchmoveHandler:r,touchstartHandler:i}=mF(e,t);e.addEventListener(`wheel`,n,{passive:!1}),e.addEventListener(`touchstart`,i,{passive:!0}),uF.set(e,[n,r,i])},gF=e=>{let[t,n,r]=uF.get(e)||[];t&&e.removeEventListener(`wheel`,t),n&&e.removeEventListener(`touchmove`,n),r&&e.removeEventListener(`touchstart`,r),uF.delete(e)},_F={mounted:hF,updated:(e,t)=>{t.value!==t.oldValue&&(gF(e),hF(e,t))},beforeUnmount:gF},vF=200,yF=e=>e&&Object.keys(e).map(e=>parseInt(e)).find(e=>!isNaN(e))||vF,bF=(e,{value:t,arg:n,modifiers:r})=>{let i=(e=>(...n)=>{let[r]=n,[i]=r;t(e,i.contentRect)})(e);if(!n)return i;let a=yF(r);switch(n){case`debounce`:i=iu(i,a);break;case`throttle`:i=nu(i,a)}return i},xF={mounted:(e,{value:t,arg:n,modifiers:r})=>{if(!window||!(`ResizeObserver`in window)){console.warn(`Not supported ResizeObserver`);return}if(!t||typeof t!=`function`){console.warn(`ResizeDirective needs a function as value`);return}let i=bF(e,{value:t,arg:n,modifiers:r}),a=new ResizeObserver(i);a.observe(e),e.__smedClearResizeObserver=()=>{a.disconnect()}},beforeUnmount:e=>{e.__smedClearResizeObserver&&e.__smedClearResizeObserver()}},SF=typeof window<`u`,CF,wF=e=>CF=e,TF=Symbol();function EF(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var DF;(function(e){e.direct=`direct`,e.patchObject=`patch object`,e.patchFunction=`patch function`})(DF||={});var OF=typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:typeof globalThis==`object`?globalThis:{HTMLElement:null};function kF(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function AF(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){FF(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function jF(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function MF(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(t)}}var NF=typeof navigator==`object`?navigator:{userAgent:``},PF=/Macintosh/.test(NF.userAgent)&&/AppleWebKit/.test(NF.userAgent)&&!/Safari/.test(NF.userAgent),FF=SF?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!PF?IF:`msSaveOrOpenBlob`in NF?LF:RF:()=>{};function IF(e,t=`download`,n){let r=document.createElement(`a`);r.download=t,r.rel=`noopener`,typeof e==`string`?(r.href=e,r.origin===location.origin?MF(r):jF(r.href)?AF(e,t,n):(r.target=`_blank`,MF(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){MF(r)},0))}function LF(e,t=`download`,n){if(typeof e==`string`){if(jF(e))AF(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){MF(t)})}}else navigator.msSaveOrOpenBlob(kF(e,n),t)}function RF(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return AF(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(OF.HTMLElement))||`safari`in OF,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||PF)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw r=null,Error(`Wrong reader.result type`);e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location.assign(e),r=null}
36,t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}var{assign:zF}=Object;function BF(){let e=Pe(!0),t=e.run(()=>j({})),n=[],r=[],i=nn({install(e){wF(i),i._a=e,e.provide(TF,i),e.config.globalProperties.$pinia=i,r.forEach(e=>n.push(e)),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}var VF=()=>{};function HF(e,t,n,r=VF){e.add(t);let i=()=>{e.delete(t)&&r()};return!n&&Fe()&&Ie(i),i}function UF(e,...t){e.forEach(e=>{e(...t)})}var WF=e=>e(),GF=Symbol(),KF=Symbol();function qF(e,t){e instanceof Map&&t instanceof Map?t.forEach((t,n)=>e.set(n,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(let n in t){if(!t.hasOwnProperty(n))continue;let r=t[n],i=e[n];e[n]=EF(i)&&EF(r)&&e.hasOwnProperty(n)&&!on(r)&&!Zt(r)?qF(i,r):r}return e}var JF=Symbol();function YF(e){return!EF(e)||!Object.prototype.hasOwnProperty.call(e,JF)}var{assign:XF}=Object;function ZF(e){return!!(on(e)&&e.effect)}function QF(e,t,n,r){let{state:i,actions:a,getters:o}=t,s=n.state.value[e],c;function l(){return s||(n.state.value[e]=i?i():{}),XF(N(n.state.value[e]),a,Object.keys(o||{}).reduce((t,r)=>(t[r]=nn(q(()=>{wF(n);let t=n._s.get(e);return o[r].call(t,t)})),t),{}))}return c=$F(e,l,t,n,r,!0),c}function $F(e,t,n={},r,i,a){let o,s=XF({actions:{}},n),c={deep:!0},l,u,d=new Set,f=new Set,p,m=r.state.value[e];!a&&!m&&(r.state.value[e]={});let h;function g(t){let n;l=u=!1,typeof t==`function`?(t(r.state.value[e]),n={type:DF.patchFunction,storeId:e,events:p}):(qF(r.state.value[e],t),n={type:DF.patchObject,payload:t,storeId:e,events:p});let i=h=Symbol();Fn().then(()=>{h===i&&(l=!0)}),u=!0,UF(d,n,r.state.value[e])}let v=a?function(){let{state:e}=n,t=e?e():{};this.$patch(e=>{XF(e,t)})}:VF;function y(){o.stop(),d.clear(),f.clear(),r._s.delete(e)}let b=(t,n=``)=>{if(GF in t)return t[KF]=n,t;let i=function(){wF(r);let n=Array.from(arguments),a=new Set,o=new Set;function s(e){a.add(e)}function c(e){o.add(e)}UF(f,{args:n,name:i[KF],store:x,after:s,onError:c});let l;try{l=t.apply(this&&this.$id===e?this:x,n)}catch(e){throw UF(o,e),e}return l instanceof Promise?l.then(e=>(UF(a,e),e)).catch(e=>(UF(o,e),Promise.reject(e))):(UF(a,l),l)};return i[GF]=!0,i[KF]=n,i},x=qt({_p:r,$id:e,$onAction:HF.bind(null,f),$patch:g,$reset:v,$subscribe(t,n={}){let i=HF(d,t,n.detached,()=>a()),a=o.run(()=>I(()=>r.state.value[e],r=>{(n.flush===`sync`?u:l)&&t({storeId:e,type:DF.direct,events:p},r)},XF({},c,n)));return i},$dispose:y});r._s.set(e,x);let S=(r._a&&r._a.runWithContext||WF)(()=>r._e.run(()=>(o=Pe()).run(()=>t({action:b}))));for(let t in S){let n=S[t];on(n)&&!ZF(n)||Zt(n)?a||(m&&YF(n)&&(on(n)?n.value=m[t]:qF(n,m[t])),r.state.value[e][t]=n):typeof n==`function`&&(S[t]=b(n,t),s.actions[t]=n)}return XF(x,S),XF(tn(x),S),Object.defineProperty(x,"$state",{get:()=>r.state.value[e],set:e=>{g(t=>{XF(t,e)})}}),r._p.forEach(e=>{XF(x,o.run(()=>e({store:x,app:r._a,pinia:r,options:s})))}),m&&a&&n.hydrate&&n.hydrate(x.$state,m),l=!0,u=!0,x}function eI(e,t,n){let r,i=typeof t==`function`;r=i?n:t;function a(n,a){let o=Xn();return n||=o?F(TF,null):null,n&&wF(n),n=CF,n._s.has(e)||(i?$F(e,t,r,n):QF(e,r,n)),n._s.get(e)}return a.$id=e,a}function tI(e){let t=tn(e),n={};for(let r in t){let i=t[r];i.effect?n[r]=q({get:()=>e[r],set(t){e[r]=t}}):(on(i)||Zt(i))&&(n[r]=mn(e,r))}return n}var nI=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`;function rI(e,t,n,r){let i,a,o,s=t||[0],c=(n||=0)>>>3,l=r===-1?3:0;for(i=0;i<e.length;i+=1)o=i+c,a=o>>>2,s.length<=a&&s.push(0),s[a]|=e[i]<<8*(l+o%4*r);return{value:s,binLen:8*e.length+n}}function iI(e,t,n){switch(t){case`UTF8`:case`UTF16BE`:case`UTF16LE`:break;default:throw Error(`encoding must be UTF8, UTF16BE, or UTF16LE`)}switch(e){case`HEX`:return function(e,t,r){return function(e,t,n,r){let i,a,o,s;if(e.length%2!=0)throw Error(`String of HEX type must be in byte increments`);let c=t||[0],l=(n||=0)>>>3,u=r===-1?3:0;for(i=0;i<e.length;i+=2){if(a=parseInt(e.substr(i,2),16),isNaN(a))throw Error(`String of HEX type contains invali
36d characters`);for(s=(i>>>1)+l,o=s>>>2;c.length<=o;)c.push(0);c[o]|=a<<8*(u+s%4*r)}return{value:c,binLen:4*e.length+n}}(e,t,r,n)};case`TEXT`:return function(e,r,i){return function(e,t,n,r,i){let a,o,s,c,l,u,d,f,p=0,m=n||[0],h=(r||=0)>>>3;if(t===`UTF8`)for(d=i===-1?3:0,s=0;s<e.length;s+=1)for(a=e.charCodeAt(s),o=[],128>a?o.push(a):2048>a?(o.push(192|a>>>6),o.push(128|63&a)):55296>a||57344<=a?o.push(224|a>>>12,128|a>>>6&63,128|63&a):(s+=1,a=65536+((1023&a)<<10|1023&e.charCodeAt(s)),o.push(240|a>>>18,128|a>>>12&63,128|a>>>6&63,128|63&a)),c=0;c<o.length;c+=1){for(u=p+h,l=u>>>2;m.length<=l;)m.push(0);m[l]|=o[c]<<8*(d+u%4*i),p+=1}else for(d=i===-1?2:0,f=t===`UTF16LE`&&i!==1||t!==`UTF16LE`&&i===1,s=0;s<e.length;s+=1){for(a=e.charCodeAt(s),!0===f&&(c=255&a,a=c<<8|a>>>8),u=p+h,l=u>>>2;m.length<=l;)m.push(0);m[l]|=a<<8*(d+u%4*i),p+=2}return{value:m,binLen:8*p+r}}(e,t,r,i,n)};case`B64`:return function(e,t,r){return function(e,t,n,r){let i,a,o,s,c,l,u,d=0,f=t||[0],p=(n||=0)>>>3,m=r===-1?3:0,h=e.indexOf(`=`);if(e.search(/^[a-zA-Z0-9=+/]+$/)===-1)throw Error(`Invalid character in base-64 string`);if(e=e.replace(/=/g,``),h!==-1&&h<e.length)throw Error(`Invalid '=' found in base-64 string`);for(a=0;a<e.length;a+=4){for(c=e.substr(a,4),s=0,o=0;o<c.length;o+=1)i=nI.indexOf(c.charAt(o)),s|=i<<18-6*o;for(o=0;o<c.length-1;o+=1){for(u=d+p,l=u>>>2;f.length<=l;)f.push(0);f[l]|=(s>>>16-8*o&255)<<8*(m+u%4*r),d+=1}}return{value:f,binLen:8*d+n}}(e,t,r,n)};case`BYTES`:return function(e,t,r){return function(e,t,n,r){let i,a,o,s,c=t||[0],l=(n||=0)>>>3,u=r===-1?3:0;for(a=0;a<e.length;a+=1)i=e.charCodeAt(a),s=a+l,o=s>>>2,c.length<=o&&c.push(0),c[o]|=i<<8*(u+s%4*r);return{value:c,binLen:8*e.length+n}}(e,t,r,n)};case`ARRAYBUFFER`:return function(e,t,r){return function(e,t,n,r){return rI(new Uint8Array(e),t,n,r)}(e,t,r,n)};case`UINT8ARRAY`:return function(e,t,r){return rI(e,t,r,n)};default:throw Error(`format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY`)}}function aI(e,t,n,r){switch(e){case`HEX`:return function(e){return function(e,t,n,r){let i=`0123456789abcdef`,a,o,s=``,c=t/8,l=n===-1?3:0;for(a=0;a<c;a+=1)o=e[a>>>2]>>>8*(l+a%4*n),s+=i.charAt(o>>>4&15)+i.charAt(15&o);return r.outputUpper?s.toUpperCase():s}(e,t,n,r)};case`B64`:return function(e){return function(e,t,n,r){let i,a,o,s,c,l=``,u=t/8,d=n===-1?3:0;for(i=0;i<u;i+=3)for(s=i+1<u?e[i+1>>>2]:0,c=i+2<u?e[i+2>>>2]:0,o=(e[i>>>2]>>>8*(d+i%4*n)&255)<<16|(s>>>8*(d+n*((i+1)%4))&255)<<8|c>>>8*(d+n*((i+2)%4))&255,a=0;a<4;a+=1)l+=8*i+6*a<=t?nI.charAt(o>>>6*(3-a)&63):r.b64Pad;return l}(e,t,n,r)};case`BYTES`:return function(e){return function(e,t,n){let r,i,a=``,o=t/8,s=n===-1?3:0;for(r=0;r<o;r+=1)i=e[r>>>2]>>>8*(s+r%4*n)&255,a+=String.fromCharCode(i);return a}(e,t,n)};case`ARRAYBUFFER`:return function(e){return function(e,t,n){let r,i=t/8,a=new ArrayBuffer(i),o=new Uint8Array(a),s=n===-1?3:0;for(r=0;r<i;r+=1)o[r]=e[r>>>2]>>>8*(s+r%4*n)&255;return a}(e,t,n)};case`UINT8ARRAY`:return function(e){return function(e,t,n){let r,i=t/8,a=n===-1?3:0,o=new Uint8Array(i);for(r=0;r<i;r+=1)o[r]=e[r>>>2]>>>8*(a+r%4*n)&255;return o}(e,t,n)};default:throw Error(`format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY`)}}var oI=4294967296,Q=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],sI=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428],cI=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],lI=`Chosen SHA variant is not supported`,uI=`Cannot set numRounds with MAC`;function dI(e,t){let n,r,i=e.binLen>>>3,a=t.binLen>>>3,o=i<<3,s=4-i<<3;if(i%4!=0){for(n=0;n<a;n+=4)r=i+n>>>2,e.value[r]|=t.value[n>>>2]<<o,e.value.push(0),e.value[r+1]|=t.value[n>>>2]>>>s;return(e.value.length<<2)-4>=a+i&&e.value.pop(),{value:e.value,binLen:e.binLen+t.binLen}}return{value:e.value.concat(t.value),binLen:e.binLen+t.binLen}}function fI(e){let t={outputUpper:!1,b64Pad:`=`,outputLen:-1},n=e||{},r=`Output length must be a multiple of 8`;if(t.outputUpper=n.outputUpper||!1,n.b64Pad&&(t.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw Error(r);t.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw Error(r);t.outputLen=n.shakeLen}if(typeof t.outputUpper!=`boolean`)throw Error(`Invalid outputUpper formatting option`);if(typeof t.b64Pad!=`string`)throw Error(`Invalid b64Pad formatting option`);return t}function pI(e,t,n,r){let i=e+` must include a value and format`;if(!t){if(!r)throw Error(i);return r}if(t.value===void 0||!t.format)throw Error(i);return iI(t.format,t.encoding||`UTF8`,n)(t.value)}var mI=class{constructor(e,t,n){let r=n||{};if(this.t=t,this.i=r.encoding||`UTF8`,this.numRounds=r.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw Error(`numRounds must a integer >= 1`);this.o=e,this.h=[],this.u=0,this.l=!1,this.A=0,this.H=!1,this.S=[],this.p=[]}update(e){let t,n=0,r=this.m>>>5,i=this.C(e,this.h,this.u),a=i.binLen,o=i.value,s=a>>>5;for(t=0;t<s;t+=r)n+this.m<=a&&(this.U=this.R(o.slice(t,t+r),this.U),n+=this.m);return this.A+=n,this.h=o.slice(n>>>5),this.u=a%this.m,this.l=!0,this}getHash(e,t){let n,r,i=this.K,a=fI(t);if(this.v){if(a.outputLen===-1)throw Error(`Output length must be specified in options`);i=a.outputLen}let o=aI(e,i,this.T,a);if(this.H&&this.F)return o(this.F(a));for(r=this.L(this.h.slice(),this.u,this.A,this.B(this.U),i),n=1;n<this.numRounds;n+=1)this.v&&i%32!=0&&(r[r.length-1]&=16777215>>>24-i%32),r=this.L(r,i,0,this.M(this.o),i);return o(r)}setHMACKey(e,t,n){if(!this.k)throw Error(`Variant does not support HMAC`);if(this.l)throw Error(`Cannot set MAC key after calling update`);let r=iI(t,(n||{}).encoding||`UTF8`,this.T);this.Y(r(e))}Y(e){let t=this.m>>>3,n=t/4-1,r;if(this.numRounds!==1)throw Error(uI);if(this.H)throw Error(`MAC key already set`);for(t<e.binLen/8&&(e.value=this.L(e.value,e.binLen,0,this.M(this.o),this.K));e.value.length<=n;)e.value.push(0);for(r=0;r<=n;r+=1)this.S[r]=909522486^e.value[r],this.p[r]=1549556828^e.value[r];this.U=this.R(this.S,this.U),this.A=this.m,this.H=!0}getHMAC(e,t){let n=fI(t);return aI(e,this.K,this.T,n)(this.N())}N(){let e;if(!this.H)throw Error(`Cannot call getHMAC without first setting MAC key`);let t=this.L(this.h.slice(),this.u,this.A,this.B(this.U),this.K);return e=this.R(this.p,this.M(this.o)),e=this.L(t,this.K,this.m,e,this.K),e}};function hI(e,t){return e<<t|e>>>32-t}function gI(e,t){return e>>>t|e<<32-t}function _I(e,t){return e>>>t}function vI(e,t,n){return e^t^n}function yI(e,t,n){return e&t^~e&n}function bI(e,t,n){return e&t^e&n^t&n}function xI(e){return gI(e,2)^gI(e,13)^gI(e,22)}function SI(e,t){let n=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(n>>>16))<<16|65535&n}function CI(e,t,n,r){let i=(65535&e)+(65535&t)+(65535&n)+(65535&r);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(i>>>16))<<16|65535&i}function wI(e,t,n,r,i){let a=(65535&e)+(65535&t)+(65535&n)+(65535&r)+(65535&i);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(i>>>16)+(a>>>16))<<16|65535&a}function TI(e){return gI(e,17)^gI(e,19)^_I(e,10)}function EI(e){return gI(e,7)^gI(e,18)^_I(e,3)}function DI(e){return gI(e,6)^gI(e,11)^gI(e,25)}function OI(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function kI(e,t){let n,r,i,a,o,s,c,l=[];for(n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],c=0;c<80;c+=1)l[c]=c<16?e[c]:hI(l[c-3]^l[c-8]^l[c-14]^l[c-16],1),s=c<20?wI(hI(n,5),yI(r,i,a),o,
361518500249,l[c]):c<40?wI(hI(n,5),vI(r,i,a),o,1859775393,l[c]):c<60?wI(hI(n,5),bI(r,i,a),o,2400959708,l[c]):wI(hI(n,5),vI(r,i,a),o,3395469782,l[c]),o=a,a=i,i=hI(r,30),r=n,n=s;return t[0]=SI(n,t[0]),t[1]=SI(r,t[1]),t[2]=SI(i,t[2]),t[3]=SI(a,t[3]),t[4]=SI(o,t[4]),t}function AI(e,t,n,r){let i,a=15+(t+65>>>9<<4),o=t+n;for(;e.length<=a;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[a]=4294967295&o,e[a-1]=o/oI|0,i=0;i<e.length;i+=16)r=kI(e.slice(i,i+16),r);return r}var jI=class extends mI{constructor(e,t,n){if(e!==`SHA-1`)throw Error(lI);super(e,t,n);let r=n||{};this.k=!0,this.F=this.N,this.T=-1,this.C=iI(this.t,this.i,this.T),this.R=kI,this.B=function(e){return e.slice()},this.M=OI,this.L=AI,this.U=[1732584193,4023233417,2562383102,271733878,3285377520],this.m=512,this.K=160,this.v=!1,r.hmacKey&&this.Y(pI(`hmacKey`,r.hmacKey,this.T))}};function MI(e){let t;return t=e==`SHA-224`?sI.slice():cI.slice(),t}function NI(e,t){let n,r,i,a,o,s,c,l,u,d,f,p=[];for(n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],f=0;f<64;f+=1)p[f]=f<16?e[f]:CI(TI(p[f-2]),p[f-7],EI(p[f-15]),p[f-16]),u=wI(l,DI(o),yI(o,s,c),Q[f],p[f]),d=SI(xI(n),bI(n,r,i)),l=c,c=s,s=o,o=SI(a,u),a=i,i=r,r=n,n=SI(u,d);return t[0]=SI(n,t[0]),t[1]=SI(r,t[1]),t[2]=SI(i,t[2]),t[3]=SI(a,t[3]),t[4]=SI(o,t[4]),t[5]=SI(s,t[5]),t[6]=SI(c,t[6]),t[7]=SI(l,t[7]),t}var PI=class extends mI{constructor(e,t,n){if(e!==`SHA-224`&&e!==`SHA-256`)throw Error(lI);super(e,t,n);let r=n||{};this.F=this.N,this.k=!0,this.T=-1,this.C=iI(this.t,this.i,this.T),this.R=NI,this.B=function(e){return e.slice()},this.M=MI,this.L=function(t,n,r,i){return function(e,t,n,r,i){let a,o,s=15+(t+65>>>9<<4),c=t+n;for(;e.length<=s;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[s]=4294967295&c,e[s-1]=c/oI|0,a=0;a<e.length;a+=16)r=NI(e.slice(a,a+16),r);return o=i===`SHA-224`?[r[0],r[1],r[2],r[3],r[4],r[5],r[6]]:r,o}(t,n,r,i,e)},this.U=MI(e),this.m=512,this.K=e===`SHA-224`?224:256,this.v=!1,r.hmacKey&&this.Y(pI(`hmacKey`,r.hmacKey,this.T))}},$=class{constructor(e,t){this.I=e,this.X=t}};function FI(e,t){let n;return t>32?(n=64-t,new $(e.X<<t|e.I>>>n,e.I<<t|e.X>>>n)):t===0?e:(n=32-t,new $(e.I<<t|e.X>>>n,e.X<<t|e.I>>>n))}function II(e,t){let n;return t<32?(n=32-t,new $(e.I>>>t|e.X<<n,e.X>>>t|e.I<<n)):(n=64-t,new $(e.X>>>t|e.I<<n,e.I>>>t|e.X<<n))}function LI(e,t){return new $(e.I>>>t,e.X>>>t|e.I<<32-t)}function RI(e,t,n){return new $(e.I&t.I^~e.I&n.I,e.X&t.X^~e.X&n.X)}function zI(e,t,n){return new $(e.I&t.I^e.I&n.I^t.I&n.I,e.X&t.X^e.X&n.X^t.X&n.X)}function BI(e){let t=II(e,28),n=II(e,34),r=II(e,39);return new $(t.I^n.I^r.I,t.X^n.X^r.X)}function VI(e,t){let n,r;n=(65535&e.X)+(65535&t.X),r=(e.X>>>16)+(t.X>>>16)+(n>>>16);let i=(65535&r)<<16|65535&n;return n=(65535&e.I)+(65535&t.I)+(r>>>16),r=(e.I>>>16)+(t.I>>>16)+(n>>>16),new $((65535&r)<<16|65535&n,i)}function HI(e,t,n,r){let i,a;i=(65535&e.X)+(65535&t.X)+(65535&n.X)+(65535&r.X),a=(e.X>>>16)+(t.X>>>16)+(n.X>>>16)+(r.X>>>16)+(i>>>16);let o=(65535&a)<<16|65535&i;return i=(65535&e.I)+(65535&t.I)+(65535&n.I)+(65535&r.I)+(a>>>16),a=(e.I>>>16)+(t.I>>>16)+(n.I>>>16)+(r.I>>>16)+(i>>>16),new $((65535&a)<<16|65535&i,o)}function UI(e,t,n,r,i){let a,o;a=(65535&e.X)+(65535&t.X)+(65535&n.X)+(65535&r.X)+(65535&i.X),o=(e.X>>>16)+(t.X>>>16)+(n.X>>>16)+(r.X>>>16)+(i.X>>>16)+(a>>>16);let s=(65535&o)<<16|65535&a;return a=(65535&e.I)+(65535&t.I)+(65535&n.I)+(65535&r.I)+(65535&i.I)+(o>>>16),o=(e.I>>>16)+(t.I>>>16)+(n.I>>>16)+(r.I>>>16)+(i.I>>>16)+(a>>>16),new $((65535&o)<<16|65535&a,s)}function WI(e,t){return new $(e.I^t.I,e.X^t.X)}function GI(e,t,n,r,i){return new $(e.I^t.I^n.I^r.I^i.I,e.X^t.X^n.X^r.X^i.X)}function KI(e){let t=II(e,19),n=II(e,61),r=LI(e,6);return new $(t.I^n.I^r.I,t.X^n.X^r.X)}function qI(e){let t=II(e,1),n=II(e,8),r=LI(e,7);return new $(t.I^n.I^r.I,t.X^n.X^r.X)}function JI(e){let t=II(e,14),n=II(e,18),r=II(e,41);return new $(t.I^n.I^r.I,t.X^n.X^r.X)}var YI=[new $(Q[0],3609767458),new $(Q[1],602891725),new $(Q[2],3964484399),new $(Q[3],2173295548),new $(Q[4],4081628472),new $(Q[5],3053834265),new $(Q[6],2937671579),new $(Q[7],3664609560),new $(Q[8],2734883394),new $(Q[9],1164996542),new $(Q[10],1323610764),new $(Q[11],3590304994),new $(Q[12],4068182383),new $(Q[13],991336113),new $(Q[14],
vendor: 6,322 bytes, line 36
36633803317),new $(Q[15],3479774868),new $(Q[16],2666613458),new $(Q[17],944711139),new $(Q[18],2341262773),new $(Q[19],2007800933),new $(Q[20],1495990901),new $(Q[21],1856431235),new $(Q[22],3175218132),new $(Q[23],2198950837),new $(Q[24],3999719339),new $(Q[25],766784016),new $(Q[26],2566594879),new $(Q[27],3203337956),new $(Q[28],1034457026),new $(Q[29],2466948901),new $(Q[30],3758326383),new $(Q[31],168717936),new $(Q[32],1188179964),new $(Q[33],1546045734),new $(Q[34],1522805485),new $(Q[35],2643833823),new $(Q[36],2343527390),new $(Q[37],1014477480),new $(Q[38],1206759142),new $(Q[39],344077627),new $(Q[40],1290863460),new $(Q[41],3158454273),new $(Q[42],3505952657),new $(Q[43],106217008),new $(Q[44],3606008344),new $(Q[45],1432725776),new $(Q[46],1467031594),new $(Q[47],851169720),new $(Q[48],3100823752),new $(Q[49],1363258195),new $(Q[50],3750685593),new $(Q[51],3785050280),new $(Q[52],3318307427),new $(Q[53],3812723403),new $(Q[54],2003034995),new $(Q[55],3602036899),new $(Q[56],1575990012),new $(Q[57],1125592928),new $(Q[58],2716904306),new $(Q[59],442776044),new $(Q[60],593698344),new $(Q[61],3733110249),new $(Q[62],2999351573),new $(Q[63],3815920427),new $(3391569614,3928383900),new $(3515267271,566280711),new $(3940187606,3454069534),new $(4118630271,4000239992),new $(116418474,1914138554),new $(174292421,2731055270),new $(289380356,3203993006),new $(460393269,320620315),new $(685471733,587496836),new $(852142971,1086792851),new $(1017036298,365543100),new $(1126000580,2618297676),new $(1288033470,3409855158),new $(1501505948,4234509866),new $(1607167915,987167468),new $(1816402316,1246189591)];function XI(e){return e===`SHA-384`?[new $(3418070365,sI[0]),new $(1654270250,sI[1]),new $(2438529370,sI[2]),new $(355462360,sI[3]),new $(1731405415,sI[4]),new $(41048885895,sI[5]),new $(3675008525,sI[6]),new $(1203062813,sI[7])]:[new $(cI[0],4089235720),new $(cI[1],2227873595),new $(cI[2],4271175723),new $(cI[3],1595750129),new $(cI[4],2917565137),new $(cI[5],725511199),new $(cI[6],4215389547),new $(cI[7],327033209)]}function ZI(e,t){let n,r,i,a,o,s,c,l,u,d,f,p,m=[];for(n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],f=0;f<80;f+=1)f<16?(p=2*f,m[f]=new $(e[p],e[p+1])):m[f]=HI(KI(m[f-2]),m[f-7],qI(m[f-15]),m[f-16]),u=UI(l,JI(o),RI(o,s,c),YI[f],m[f]),d=VI(BI(n),zI(n,r,i)),l=c,c=s,s=o,o=VI(a,u),a=i,i=r,r=n,n=VI(u,d);return t[0]=VI(n,t[0]),t[1]=VI(r,t[1]),t[2]=VI(i,t[2]),t[3]=VI(a,t[3]),t[4]=VI(o,t[4]),t[5]=VI(s,t[5]),t[6]=VI(c,t[6]),t[7]=VI(l,t[7]),t}var QI=class extends mI{constructor(e,t,n){if(e!==`SHA-384`&&e!==`SHA-512`)throw Error(lI);super(e,t,n);let r=n||{};this.F=this.N,this.k=!0,this.T=-1,this.C=iI(this.t,this.i,this.T),this.R=ZI,this.B=function(e){return e.slice()},this.M=XI,this.L=function(t,n,r,i){return function(e,t,n,r,i){let a,o,s=31+(t+129>>>10<<5),c=t+n;for(;e.length<=s;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[s]=4294967295&c,e[s-1]=c/oI|0,a=0;a<e.length;a+=32)r=ZI(e.slice(a,a+32),r);return o=i===`SHA-384`?[r[0].I,r[0].X,r[1].I,r[1].X,r[2].I,r[2].X,r[3].I,r[3].X,r[4].I,r[4].X,r[5].I,r[5].X]:[r[0].I,r[0].X,r[1].I,r[1].X,r[2].I,r[2].X,r[3].I,r[3].X,r[4].I,r[4].X,r[5].I,r[5].X,r[6].I,r[6].X,r[7].I,r[7].X],o}(t,n,r,i,e)},this.U=XI(e),this.m=1024,this.K=e===`SHA-384`?384:512,this.v=!1,r.hmacKey&&this.Y(pI(`hmacKey`,r.hmacKey,this.T))}},$I=[new $(0,1),new $(0,32898),new $(2147483648,32906),new $(2147483648,2147516416),new $(0,32907),new $(0,2147483649),new $(2147483648,2147516545),new $(2147483648,32777),new $(0,138),new $(0,136),new $(0,2147516425),new $(0,2147483658),new $(0,2147516555),new $(2147483648,139),new $(2147483648,32905),new $(2147483648,32771),new $(2147483648,32770),new $(2147483648,128),new $(0,32778),new $(2147483648,2147483658),new $(2147483648,2147516545),new $(2147483648,32896),new $(0,2147483649),new $(2147483648,2147516424)],eL=[[0,36,3,41,18],[1,44,10,45,2],[62,6,43,15,61],[28,55,25,21,56],[27,20,39,8,14]];function tL(e){let t,n=[];for(t=0;t<5;t+=1)n[t]=[new $(0,0),new $(0,0),new $(0,0),new $(0,0),new $(0,0)];return n}function nL(e){let t,n=[];for(t=0;t<5;t+=1)n[t]=e[t].slice();return n}function rL(e,t){let n,r,i,a,o=[],s=[];if(e!==null)for(r=0;r<e.length;r+=2)t[(r>>>1)%5][(r>>>1)/5|0]=WI(t[(r>>>1)%5][(r>>>1)/5|0],new $(e[r+1],e[r]));for(n=0;n<24;n+=1){for(a=tL(),r=0;r<5;r+=1)o[r]=GI(t[r][0],t[r][1],t[r][2],t[r][3],t[r][4]);for(r=0;r<5;r+=1)s[r]=WI(o[(r+4)%5],FI(o[(r+1)%5],1));for(r=0;r<5;r+=1)for(i=0;i<5;i+=1)t[r][i]=WI(t[r][i],s[r]);for(r=0;r<5;r+=1)for(i=0;i<5;i+=1)a[i][(2*r+3*i)%5]=FI(t[r][i],eL[r][i]);for(r=0;r<5;r+=1)for(i=0;i<5;i+=1)t[r][i]=WI(a[r][i],new $(~a[(r+1)%5][i].I&a[(r+2)%5][i].I,~a[(r+1)%5][i].X&a[(r+2)%5][i].X));t[0][0]=WI(t[0][0],$I[n])}return t}function iL(e){let t,n,r=0,i=[0,0],a=[4294967295&e,e/oI&2097151];for(t=6;t>=0;t--)n=a[t>>2]>>>8*t&255,n===0&&r===0||(i[r+1>>2]|=n<<8*(r+1),r+=1);return r=r===0?1:r,i[0]|=r,{value:r+1>4?i:[i[0]],binLen:8+8*r}}function aL(e){return dI(iL(e.binLen),e)}function oL(e,t){let n,r=iL(t);r=dI(r,e);let i=t>>>2,a=(i-r.value.length%i)%i;for(n=0;n<a;n++)r.value.push(0);return r.value}var sL=class extends mI{constructor(e,t,n){let r=6,i=0;super(e,t,n);let a=n||{};if(this.numRounds!==1){if(a.kmacKey||a.hmacKey)throw Error(uI);if(this.o===`CSHAKE128`||this.o===`CSHAKE256`)throw Error(`Cannot set numRounds for CSHAKE variants`)}switch(this.T=1,this.C=iI(this.t,this.i,this.T),this.R=rL,this.B=nL,this.M=tL,this.U=tL(),this.v=!1,e){case`SHA3-224`:this.m=i=1152,this.K=224,this.k=!0,this.F=this.N;break;case`SHA3-256`:this.m=i=1088,this.K=256,this.k=!0,this.F=this.N;break;case`SHA3-384`:this.m=i=832,this.K=384,this.k=!0,this.F=this.N;break;case`SHA3-512`:this.m=i=576,this.K=512,this.k=!0,this.F=this.N;break;case`SHAKE128`:r=31,this.m=i=1344,this.K=-1,this.v=!0,this.k=!1,this.F=null;break;case`SHAKE256`:r=31,this.m=i=1088,this.K=-1,this.v=!0,this.k=!1,this.F=null;break;case`KMAC128`:r=4,this.m=i=1344,this._(n),this.K=-1,this.v=!0,this.k=!1,this.F=this.O;break;case`KMAC256`:r=4,this.m=i=1088,this._(n),this.K=-1,this.v=!0,this.k=!1,this.F=this.O;break;case`CSHAKE128`:this.m=i=1344,r=this.P(n),this.K=-1,this.v=!0,this.k=!1,this.F=null;break;case`CSHAKE256`:this.m=i=1088,r=this.P(n),this.K=-1,this.v=!0,this.k=!1,this.F=null;break;default:throw Error(lI)}this.L=function(e,t,n,a,o){return function(e,t,n,r,i,a,o){let s,c,l=0,u=[],d=i>
36>>5,f=t>>>5;for(s=0;s<f&&t>=i;s+=d)r=rL(e.slice(s,s+d),r),t-=i;for(e=e.slice(s),t%=i;e.length<d;)e.push(0);for(s=t>>>3,e[s>>2]^=a<<s%4*8,e[d-1]^=2147483648,r=rL(e,r);32*u.length<o&&(c=r[l%5][l/5|0],u.push(c.X),!(32*u.length>=o));)u.push(c.I),l+=1,64*l%i==0&&(rL(null,r),l=0);return u}(e,t,0,a,i,r,o)},a.hmacKey&&this.Y(pI(`hmacKey`,a.hmacKey,this.T))}P(e,t){let n=function(e){let t=e||{};return{funcName:pI(`funcName`,t.funcName,1,{value:[],binLen:0}),customization:pI(`Customization`,t.customization,1,{value:[],binLen:0})}}(e||{});t&&(n.funcName=t);let r=dI(aL(n.funcName),aL(n.customization));if(n.customization.binLen!==0||n.funcName.binLen!==0){let e=oL(r,this.m>>>3);for(let t=0;t<e.length;t+=this.m>>>5)this.U=this.R(e.slice(t,t+(this.m>>>5)),this.U),this.A+=this.m;return 4}return 31}_(e){let t=function(e){let t=e||{};return{kmacKey:pI(`kmacKey`,t.kmacKey,1),funcName:{value:[1128353099],binLen:32},customization:pI(`Customization`,t.customization,1,{value:[],binLen:0})}}(e||{});this.P(e,t.funcName);let n=oL(aL(t.kmacKey),this.m>>>3);for(let e=0;e<n.length;e+=this.m>>>5)this.U=this.R(n.slice(e,e+(this.m>>>5)),this.U),this.A+=this.m;this.H=!0}O(e){let t=dI({value:this.h.slice(),binLen:this.u},function(e){let t,n,r=0,i=[0,0],a=[4294967295&e,e/oI&2097151];for(t=6;t>=0;t--)n=a[t>>2]>>>8*t&255,n===0&&r===0||(i[r>>2]|=n<<8*r,r+=1);return r=r===0?1:r,i[r>>2]|=r<<8*r,{value:r+1>4?i:[i[0]],binLen:8+8*r}}(e.outputLen));return this.L(t.value,t.binLen,this.A,this.B(this.U),e.outputLen)}},cL=class{constructor(e,t,n){if(e==`SHA-1`)this.V=new jI(e,t,n);else if(e==`SHA-224`||e==`SHA-256`)this.V=new PI(e,t,n);else if(e==`SHA-384`||e==`SHA-512`)this.V=new QI(e,t,n);else{if(e!=`SHA3-224`&&e!=`SHA3-256`&&e!=`SHA3-384`&&e!=`SHA3-512`&&e!=`SHAKE128`&&e!=`SHAKE256`&&e!=`CSHAKE128`&&e!=`CSHAKE256`&&e!=`KMAC128`&&e!=`KMAC256`)throw Error(lI);this.V=new sL(e,t,n)}}update(e){return this.V.update(e),this}getHash(e,t){return this.V.getHash(e,t)}setHMACKey(e,t,n){this.V.setHMACKey(e,t,n)}getHMAC(e,t){return this.V.getHMAC(e,t)}},lL=e=>e.startsWith(`/`);function uL(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function dL(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&uL(e.default)}var fL=Object.assign;function pL(e,t){let n={};for(let r in t){let i=t[r];n[r]=hL(i)?i.map(e):e(i)}return n}var mL=()=>{},hL=Array.isArray;function gL(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var _L=Symbol(``);function vL(e,t){return fL(Error(),{type:e,[_L]:!0},t)}function yL(e,t){return e instanceof Error&&_L in e&&(t==null||!!(e.type&t))}var bL=Symbol(``),xL=Symbol(``),SL=Symbol(``),CL=Symbol(``),wL=Symbol(``);function TL(){return F(SL)}function EL(e){return F(CL)}var DL=typeof document<`u`,OL=/#/g,kL=/&/g,AL=/\//g,jL=/=/g,ML=/\?/g,NL=/\+/g,PL=/%5B/g,FL=/%5D/g,IL=/%5E/g,LL=/%60/g,RL=/%7B/g,zL=/%7C/g,BL=/%7D/g,VL=/%20/g;function HL(e){return e==null?``:encodeURI(``+e).replace(zL,`|`).replace(PL,`[`).replace(FL,`]`)}function UL(e){return HL(e).replace(RL,`{`).replace(BL,`}`).replace(IL,`^`)}function WL(e){return HL(e).replace(NL,`%2B`).replace(VL,`+`).replace(OL,`%23`).replace(kL,`%26`).replace(LL,"`").replace(RL,`{`).replace(BL,`}`).replace(IL,`^`)}function GL(e){return WL(e).replace(jL,`%3D`)}function KL(e){return HL(e).replace(OL,`%23`).replace(ML,`%3F`)}function qL(e){return KL(e).replace(AL,`%2F`)}function JL(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var YL=/\/$/,XL=e=>e.replace(YL,``);function ZL(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=aR(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:JL(o)}}function QL(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function $L(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function eR(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&tR(t.matched[r],n.matched[i])&&nR(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function tR(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function nR(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!rR(e[n],t[n]))return!1;return!0}function rR(e,t){return hL(e)?iR(e,t):hL(t)?iR(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function iR(e,t){return hL(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function aR(e,t){if(lL(e))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`){if(s===`..`)a>1&&a--;else break}return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var oR={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function sR(e){if(!e){if(DL){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`}return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),XL(e)}var cR=/^[^#]+#/;function lR(e,t){return e.replace(cR,`#`)+t}function uR(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var dR=()=>history.scrollRestoration===`manual`?{left:window.scrollX,top:window.scrollY}:null;function fR(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=uR(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}
vendor: 5,218 bytes, line 36
36function pR(e,t){return(history.state?history.state.position-t:-1)+e}var mR=new Map;function hR(e){mR.set(e,dR())}function gR(e){let t=mR.get(e);return mR.delete(e),t}function _R(e){return typeof e==`string`||e&&typeof e==`object`}function vR(e){return typeof e==`string`||typeof e==`symbol`}function yR(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(NL,` `),i=r.indexOf(`=`),a=JL(i<0?r:r.slice(0,i)),o=i<0?null:JL(r.slice(i+1));if(a in t){let e=t[a];hL(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function bR(e){let t=``;for(let n in e){let r=e[n];if(n=GL(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(hL(r)?r.map(e=>e&&WL(e)):[r&&WL(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function xR(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=hL(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function SR(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function CR(e,t,n){let r=e.value;if(!r)return;let i=r,a=()=>{i[t].delete(n)};ai(a),qr(a),Kr(()=>{let r=e.value;r&&(i=r),i[t].add(n)}),i[t].add(n)}function wR(e){CR(F(bL,{}),`leaveGuards`,e)}function TR(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(vL(4,{from:n,to:t})):e instanceof Error?c(e):_R(e)?c(vL(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function ER(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(t===`beforeRouteEnter`||o.instances[e]){if(uL(s)){let c=(s.__vccOpts||s)[t];c&&a.push(TR(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=dL(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&TR(c,n,r,o,e,i)()}))}}}return a}function DR(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>tR(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>tR(e,s))||i.push(s))}return[n,r,i]}var OR=()=>location.protocol+`//`+location.host;function kR(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),$L(n,``)}return $L(n,e)+r+i}function AR(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=kR(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){let{history:e}=window;e.state&&e.replaceState(fL({},e.state,{scroll:dR()}),``)}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),{pauseListeners:c,listen:l,destroy:d}}function jR(e,t,n,r=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:null}}function MR(e){let{history:t,location:n}=window,r={value:kR(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:OR()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,fL({},t.state,jR(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=fL({},i.value,t.state,{forward:e,scroll:dR()});a(o.current,o,!0),a(e,fL({},jR(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function NR(e){e=sR(e);let t=MR(e),n=AR(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=fL({location:``,base:e,go:r,createHref:lR.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}var PR={type:0,value:``},FR=/[a-zA-Z0-9_]/;function IR(e){if(!e)return[[]];if(e===`/`)return[[PR]];if(!lL(e))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;)switch(c=e[s++],n){case 0:c===`\\`?(r=n,n=4):c===`/`?(l&&d(),o()):c===`:`?(
vendor: 4,382 bytes, line 36
36d(),n=1):f();break;case 4:f(),n=r;break;case 1:c===`(`?n=2:FR.test(c)?f():(d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case 2:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=3:u+=c;break;case 3:d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`)}return n===2&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var LR=`[^/]+?`,RR={sensitive:!1,strict:!1,start:!0,end:!0},zR=/[.+*?^${}()[\]/\\]/g;function BR(e,t){let n=fL({},RR,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[90];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=40+(n.sensitive?.25:0);if(o.type===0)r||(i+=`/`),i+=o.value.replace(zR,`\\$&`),s+=40;else if(o.type===1){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||LR;if(u!==LR){s+=10;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=20,c&&(s+=-8),n&&(s+=-20),u===`.*`&&(s+=-50)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===0)n+=e.value;else if(e.type===1){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(hL(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=hL(c)?c.join(`/`):c;if(!l){if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`)}n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function VR(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function HR(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=VR(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(UR(r))return 1;if(UR(i))return-1}return i.length-r.length}function UR(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var WR={strict:!1,end:!0,sensitive:!1};function GR(e,t,n){let r=fL(BR(IR(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function KR(e,t){let n=[],r=new Map;t=gL(WR,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=JR(e);s.aliasOf=r&&r.record;let l=gL(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(JR(fL({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&!lL(u)){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=GR(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!XR(d)&&o(e.name)),ez(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:mL}function o(e){if(vR(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=QR(e,n);n.splice(t,0,e),e.record.name&&!XR(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw vL(1,{location:e});s=i.record.name,a=fL(qR(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&qR(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw vL(1,{location:e,currentLocation:t});s=i.record.name,a=fL({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:ZR(c)}}
vendor: 7,306 bytes, line 36
36e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function qR(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function JR(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:YR(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function YR(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function XR(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ZR(e){return e.reduce((e,t)=>fL(e,t.meta),{})}function QR(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;HR(e,t[i])<0?r=i:n=i+1}let i=$R(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function $R(e){let t=e;for(;t=t.parent;)if(ez(t)&&HR(e,t)===0)return t}function ez({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function tz(e){let t=F(SL),n=F(CL),r=q(()=>{let n=M(e.to);return t.resolve(n)}),i=q(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(tR.bind(null,i));if(o>-1)return o;let s=oz(e[t-2]);return t>1&&oz(i)===s&&a[a.length-1].path!==s?a.findIndex(tR.bind(null,e[t-2])):o}),a=q(()=>i.value>-1&&az(n.params,r.value.params)),o=q(()=>i.value>-1&&i.value===n.matched.length-1&&nR(n.params,r.value.params));function s(n={}){if(iz(n)){let n=t[M(e.replace)?`replace`:`push`](M(e.to)).catch(mL);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:q(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function nz(e){return e.length===1?e[0]:e}var rz=L({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:tz,setup(e,{slots:t}){let n=qt(tz(e)),{options:r}=F(SL),i=q(()=>({[sz(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[sz(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&nz(t.default(n));return e.custom?r:Oo(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function iz(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(e.button===void 0||e.button===0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function az(e,t){for(let n in t){let r=t[n],i=e[n];if(hL(r)){if(!hL(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}else if(r!==i)return!1}return!0}function oz(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var sz=(e,t,n)=>e??t??n,cz=L({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=F(wL),i=q(()=>e.route||r.value),a=F(xL,0),o=q(()=>{let e=M(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=q(()=>i.value.matched[o.value]);Yn(xL,q(()=>o.value+1)),Yn(bL,s),Yn(wL,i);let c=j();return I(()=>[c.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!tR(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,l=o&&o.components[a];if(!l)return lz(n.default,{Component:l,route:r});let u=o.props[a],d=Oo(l,fL({},u?u===!0?r.params:typeof u==`function`?u(r):u:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:c}));return lz(n.default,{Component:d,route:r})||d}}});function lz(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var uz=cz;function dz(e){let t=KR(e.routes,e),n=e.parseQuery||yR,r=e.stringifyQuery||bR,i=e.history,a=SR(),o=SR(),s=SR(),c=sn(oR),l=sn(0),u=oR;DL&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let d=pL.bind(null,e=>``+e),f=pL.bind(null,qL),p=pL.bind(null,JL);function m(e,n){let r,i;vR(e)?(r=t.getRecordMatcher(e),i=n):i=e;let a=t.addRoute(i,r);return l.value++,()=>{a(),l.value++}}function h(e){let n=t.getRecordMatcher(e);n&&(t.removeRoute(n),l.value++)}function g(){t.clearRoutes(),l.value++}function v(){return t.getRoutes().map(e=>e.record)}function y(e){return!!t.getRecordMatcher(e)}function b(e,a){if(l.value,typeof e==`string`){a||=e.startsWith(`/`)?oR:c.value;let r=ZL(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return fL(r,o,{params:p(o.params),redirectedFrom:void 0,href:s})}a=fL({},a||(e.path!=null&&e.path.startsWith(`/`)&&!(`name`in e&&e.name)?oR:c.value));let o;if(e.path!=null)o=fL({},e,{path:ZL(n,e.path,a.path).path});else{let t=fL({},e.params);for(let e in t)t[e]??delete t[e];o=fL({},e,{params:f(t)}),a.params=f(a.params)}let s=t.resolve(o,a),u=e.hash||``;s.params=d(p(s.params));let m=QL(r,fL({},e,{hash:UL(u),path:s.path})),h=i.createHref(m);return fL({fullPath:m,hash:u,query:r===bR?xR(e.query):e.query||{}},s,{redirectedFrom:void 0,href:h})}function x(e){return typeof e==`string`?ZL(n,e,c.value.path):fL({},e)}function S(e,t){if(u!==e)return vL(8,{from:t,to:e})}function C(e){return E(e)}function w(e){return C(fL(x(e),{replace:!0}))}function T(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=x(i):{path:i},i.params={}),fL({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function E(e,t){let n=u=b(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,l=T(n,i);if(l)return E(fL(x(l),{state:typeof l==`object`?fL({},a,l.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&eR(r,i,n)&&(f=vL(16,{to:d,from:i}),de(i,i,!0,!1)),(f?Promise.resolve(f):te(d,i)).catch(e=>yL(e)?yL(e,2)?e:ue(e):ce(e,d,i)).then(e=>{if(e){if(yL(e,2))return E(fL({replace:s},x(e.to),{state:typeof e.to==`object`?fL({},a,e.to.state):a,force:o}),t||d)}else e=re(d,i,!0,s,a);return ne(d,i,e),e})}function D(e,t){let n=S(e,t);return n?Promise.reject(n):Promise.resolve()}function ee(e){let t=me.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function te(e,t){let n,[r,i,s]=DR(e,t);n=ER(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(TR(r,e,t))});let c=D.bind(null,e,t);return n.push(c),ge(n).then(()=>{n=[];for(let r of a.list())n.push(TR(r,e,t));return n.push(c),ge(n)}).then(()=>{n=ER(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(TR(r,e,t))});return n.push(c),ge(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter){if(hL(r.beforeEnter))for(let i of r.beforeEnter)n.push(TR(i,e,t));else n.push(TR(r.beforeEnter,e,t))}return n.push(c),ge(n)}).then(()=>
36(e.matched.forEach(e=>e.enterCallbacks={}),n=ER(s,`beforeRouteEnter`,e,t,ee),n.push(c),ge(n))).then(()=>{n=[];for(let r of o.list())n.push(TR(r,e,t));return n.push(c),ge(n)}).catch(e=>yL(e,8)?e:Promise.reject(e))}function ne(e,t,n){s.list().forEach(r=>ee(()=>r(e,t,n)))}function re(e,t,n,r,a){let o=S(e,t);if(o)return o;let s=t===oR,l=DL?history.state:{};n&&(r||s?i.replace(e.fullPath,fL({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,de(e,t,n,s),ue()}let ie;function ae(){ie||=i.listen((e,t,n)=>{if(!he.listening)return;let r=b(e),a=T(r,he.currentRoute.value);if(a){E(fL(a,{replace:!0,force:!0}),r).catch(mL);return}u=r;let o=c.value;DL&&n.delta&&hR(pR(o.fullPath,n.delta)),te(r,o).catch(e=>yL(e,12)?e:yL(e,2)?(E(fL(x(e.to),{force:!0}),r).then(e=>{yL(e,20)&&!n.delta&&n.type===`pop`&&i.go(-1,!1)}).catch(mL),Promise.reject()):(n.delta&&i.go(-n.delta,!1),ce(e,r,o))).then(e=>{e||=re(r,o,!1),e&&(n.delta&&!yL(e,8)?i.go(-n.delta,!1):n.type===`pop`&&yL(e,20)&&i.go(-1,!1)),ne(r,o,e)}).catch(mL)})}let oe=SR(),O=SR(),se;function ce(e,t,n){ue(e);let r=O.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function le(){return se&&c.value!==oR?Promise.resolve():new Promise((e,t)=>{oe.add([e,t])})}function ue(e){return se||(se=!e,ae(),oe.list().forEach(([t,n])=>e?n(e):t()),oe.reset()),e}function de(t,n,r,i){let{scrollBehavior:a}=e;if(!DL||!a)return Promise.resolve();let o=!r&&gR(pR(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return Fn().then(()=>a(t,n,o)).then(e=>t===c.value&&e&&fR(e)).catch(e=>t===c.value&&ce(e,t,n))}let fe=e=>i.go(e),pe,me=new Set,he={currentRoute:c,listening:!0,addRoute:m,removeRoute:h,clearRoutes:g,hasRoute:y,getRoutes:v,resolve:b,options:e,push:C,replace:w,go:fe,back:()=>fe(-1),forward:()=>fe(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:O.add,isReady:le,install(e){e.component(`RouterLink`,rz),e.component(`RouterView`,uz),e.config.globalProperties.$router=he,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>M(c)}),DL&&!pe&&c.value===oR&&(pe=!0,C(i.location).catch(e=>{}));let t={};for(let e in oR)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(SL,he),e.provide(CL,Jt(t)),e.provide(wL,c);let n=e.unmount;me.add(e),e.unmount=function(){me.delete(e),me.size<1&&(u=oR,ie&&ie(),ie=null,c.value=oR,pe=!1,se=!1),n()}}};function ge(e){return e.reduce((e,t)=>e.then(()=>ee(t)),Promise.resolve())}return he}var fz=`modulepreload`,pz=function(e){return`/`+e},mz={},hz=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=pz(t,n),t=s(t),t in mz)return;mz[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:fz,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},gz=n(((e,t)=>{t.exports=function(e,t){return function(){return e.apply(t,arguments)}}})),_z=n(((e,t)=>{var n=gz(),r=Object.prototype.toString,i=(function(e){return function(t){var n=r.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())}})(Object.create(null));function a(e){return e=e.toLowerCase(),function(t){return i(t)===e}}function o(e){return Array.isArray(e)}function s(e){return e===void 0}function c(e){return e!==null&&!s(e)&&e.constructor!==null&&!s(e.constructor)&&typeof e.constructor.isBuffer==`function`&&e.constructor.isBuffer(e)}var l=a(`ArrayBuffer`);function u(e){return typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&l(e.buffer)}function d(e){return typeof e==`string`}function f(e){return typeof e==`number`}function p(e){return typeof e==`object`&&!!e}function m(e){if(i(e)!==`object`)return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function h(e){if(!m(e))return!1;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}var g=a(`Date`),v=a(`File`),y=a(`Blob`),b=a(`FileList`);function x(e){return r.call(e)===`[object Function]`}function S(e){return p(e)&&x(e.pipe)}function C(e){var t=`[object FormData]`;if(!e)return!1;if(typeof FormData==`function`&&e instanceof FormData)return!0;
36if(!p(e))return!1;var n=Object.getPrototypeOf(e);return!n||n===Object.prototype||!x(e.append)?!1:r.call(e)===t||x(e.toString)&&e.toString()===t}var w=a(`URLSearchParams`);function T(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}function E(){var e;return typeof navigator<`u`&&((e=navigator.product)===`ReactNative`||e===`NativeScript`||e===`NS`)?!1:typeof window<`u`&&typeof document<`u`}function D(e,t){if(e!=null){if(typeof e!=`object`&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}}function ee(){var e=Object.create(null);function t(t,n){var r;n!==`__proto__`&&n!==`constructor`&&n!==`prototype`&&(r=Object.prototype.hasOwnProperty.call(e,n)?e[n]:void 0,e[n]=m(r)&&m(t)?ee(r,t):m(t)?ee({},t):o(t)?t.slice():t)}for(var n=0,r=arguments.length;n<r;n++)D(arguments[n],t);return e}function te(e,t,r){return D(t,function(t,i){e[i]=r&&typeof t==`function`?n(t,r):t}),e}function ne(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function re(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)}function ie(e,t,n,r){var i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-->0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t}function ae(e,t,n){e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return r!==-1&&r===n}function oe(e){if(!e)return null;if(o(e))return e;var t=e.length;if(!f(t))return null;for(var n=Array(t);t-->0;)n[t]=e[t];return n}var O=(function(e){return function(t){return e&&t instanceof e}})(typeof Uint8Array<`u`&&Object.getPrototypeOf(Uint8Array));function se(e,t){for(var n=(e&&e[Symbol.iterator]).call(e),r;(r=n.next())&&!r.done;){var i=r.value;t.call(e,i[0],i[1])}}function ce(e,t){for(var n,r=[];(n=e.exec(t))!==null;)r.push(n);return r}t.exports={isArray:o,isArrayBuffer:l,isBuffer:c,isFormData:C,isArrayBufferView:u,isString:d,isNumber:f,isObject:p,isPlainObject:m,isEmptyObject:h,isUndefined:s,isDate:g,isFile:v,isBlob:y,isFunction:x,isStream:S,isURLSearchParams:w,isStandardBrowserEnv:E,forEach:D,merge:ee,extend:te,trim:T,stripBOM:ne,inherits:re,toFlatObject:ie,kindOf:i,kindOfTest:a,endsWith:ae,toArray:oe,isTypedArray:O,isFileList:b,forEachEntry:se,matchAll:ce,isHTMLForm:a(`HTMLFormElement`),hasOwnProperty:(function(e){return function(t,n){return e.call(t,n)}})(Object.prototype.hasOwnProperty)}})),vz=n(((e,t)=>{t.exports=[`authorization`,`proxy-authorization`,`cookie`,`set-cookie`,`x-api-key`,`password`]})),yz=n(((e,t)=>{var n=_z(),r=vz(),i=`[REDACTED ****]`;function a(e){var t=Object.create(null);return t.value=e,t}function o(e){var t=(e&&n.isArray(e.redact)&&e.redact.length?e.redact:null)||r,i={};return n.forEach(t,function(e){typeof e==`string`&&(i[e.toLowerCase()]=!0)}),i}function s(e,t){return typeof e==`string`&&t[e.toLowerCase()]}var c=`[Circular]`;function l(e,t,r,a){var o;return s(r,t)?i:n.isArray(e)?a.indexOf(e)===-1?(a.push(e),o=[],n.forEach(e,function(e,n){o[n]=l(e,t,n,a)}),a.pop(),o):c:n.isPlainObject(e)?a.indexOf(e)===-1?(a.push(e),o={},n.forEach(e,function(e,n){o[n]=l(e,t,n,a)}),a.pop(),o):c:e}function u(e){return e&&l(e,o(e),void 0,[])}function d(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name=`AxiosError`,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}n.inherits(d,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:u(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var f=d.prototype,p=Object.create(null);[`ERR_BAD_OPTION_VALUE`,`ERR_BAD_OPTION`,`ECONNABORTED`,`ETIMEDOUT`,`ERR_NETWORK`,`ERR_FR_TOO_MANY_REDIRECTS`,`ERR_DEPRECATED`,`ERR_BAD_RESPONSE`,`ERR_BAD_REQUEST`,`ERR_CANCELED`,`ERR_NOT_SUPPORT`,`ERR_INVALID_URL`,`ERR_FORM_DATA_DEPTH_EXCEEDED`].forEach(function(e){p[e]=a(e)}
36),Object.defineProperties(d,p),Object.defineProperty(f,"isAxiosError",a(!0)),d.from=function(e,t,r,i,a,o){var s=Object.create(f);return n.toFlatObject(e,s,function(e){return e!==Error.prototype}),d.call(s,e.message,t,r,i,a),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s},t.exports=d})),bz=n(((e,t)=>{t.exports=typeof self==`object`?self.FormData:window.FormData})),xz=n(((e,t)=>{t.exports=bz()})),Sz=n(((e,t)=>{var n=_z(),r=yz(),i=xz();function a(e){return n.isPlainObject(e)||n.isArray(e)}function o(e){return n.endsWith(e,`[]`)?e.slice(0,-2):e}function s(e,t,n){return e?e.concat(t).map(function(e,t){return e=o(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function c(e){return n.isArray(e)&&!e.some(a)}var l=n.toFlatObject(n,{},null,function(e){return/^is[A-Z]/.test(e)});function u(e){return e&&n.isFunction(e.append)&&e[Symbol.toStringTag]===`FormData`&&e[Symbol.iterator]}function d(e,t,d){if(!n.isObject(e))throw TypeError(`target must be an object`);t||=new(i||FormData),d=n.toFlatObject(d,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!n.isUndefined(t[e])});var f=d.metaTokens,p=d.visitor||C,m=d.dots,h=d.indexes,g=d.Blob||typeof Blob<`u`&&Blob,v=d.maxDepth===void 0?100:d.maxDepth,y=g&&u(t);if(!n.isFunction(p))throw TypeError(`visitor must be a function`);function b(e){if(e===null)return``;if(n.isDate(e))return e.toISOString();if(!y&&n.isBlob(e))throw new r(`Blob is not supported. Use a Buffer instead.`);return n.isArrayBuffer(e)||n.isTypedArray(e)?y&&typeof Blob==`function`?new Blob([e]):Buffer.from(e):e}var x=[];function S(e,t){if(t>v)throw new r(`Maximum object depth of `+v+` exceeded (got `+t+` levels)`,r.ERR_FORM_DATA_DEPTH_EXCEEDED);n.isObject(e)&&x.indexOf(e)===-1&&(x.push(e),n.forEach(e,function(e){S(e,t+1)}),x.pop())}function C(e,r,i){var l=e;if(e&&!i&&typeof e==`object`){if(n.endsWith(r,`{}`))r=f?r:r.slice(0,-2),S(e,1),e=JSON.stringify(e);else if(n.isArray(e)&&c(e)||n.isFileList(e)||n.endsWith(r,`[]`)&&(l=n.toArray(e)))return r=o(r),l.forEach(function(e,i){!(n.isUndefined(e)||e===null)&&t.append(h===!0?s([r],i,m):h===null?r:r+`[]`,b(e))}),!1}return a(e)?!0:(t.append(s(i,r,m),b(e)),!1)}var w=Object.assign(l,{defaultVisitor:C,convertValue:b,isVisitable:a});function T(e,i,a){if(!n.isUndefined(e)){if(a||=0,a>v)throw new r(`Maximum object depth of `+v+` exceeded (got `+a+` levels)`,r.ERR_FORM_DATA_DEPTH_EXCEEDED);if(x.indexOf(e)!==-1)throw Error(`Circular reference detected in `+i.join(`.`));x.push(e),n.forEach(e,function(e,r){(!(n.isUndefined(e)||e===null)&&p.call(t,e,n.isString(r)?r.trim():r,i,w))===!0&&T(e,i?i.concat(r):[r],a+1)}),x.pop()}}if(!n.isObject(e))throw TypeError(`data must be an object`);return T(e,null,0),t}t.exports=d})),Cz=n(((e,t)=>{var n=Sz();function r(e){var t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'\(\)~]|%20/g,function(e){return t[e]})}function i(e,t){this._pairs=[],e&&n(e,this,t)}var a=i.prototype;a.append=function(e,t){this._pairs.push([e,t])},a.toString=function(e){var t=e?function(t){return e.call(this,t,r)}:r;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)},t.exports=i})),wz=n(((e,t)=>{var n=_z(),r=Cz();function i(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`).replace(/%5B/gi,`[`).replace(/%5D/gi,`]`)}t.exports=function(e,t,a){if(!t)return e;var o=e.indexOf(`#`);o!==-1&&(e=e.slice(0,o));var s=i,c;a&&(n.isFunction(a)?c=a:(s=n.hasOwnProperty(a,`encode`)&&a.encode||i,c=n.hasOwnProperty(a,`serialize`)?a.serialize:void 0));var l=c?c(t,a):n.isURLSearchParams(t)?t.toString():new r(t,a).toString(s);return l&&(e+=(e.indexOf(`?`)===-1?`?`:`&`)+l),e}})),Tz=n(((e,t)=>{var n=_z();function r(){this.handlers=[]}r.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.clear=function(){this.handlers&&=[]},r.prototype.forEach=function(e){n.forEach(this.handlers,function(t){t!==null&&e(t)})},t.exports=r})),Ez=n(((e,t)=>{var n=_z();
36t.exports=function(e,t){n.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}})),Dz=n(((e,t)=>{t.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}})),Oz=n(((e,t)=>{var n=Cz();t.exports=typeof URLSearchParams<`u`?URLSearchParams:n})),kz=n(((e,t)=>{t.exports=FormData})),Az=n(((e,t)=>{t.exports={isBrowser:!0,classes:{URLSearchParams:Oz(),FormData:kz(),Blob},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]}})),jz=n(((e,t)=>{t.exports=Az()})),Mz=n(((e,t)=>{var n=_z(),r=Sz(),i=jz();t.exports=function(e,t){return r(e,new i.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,a){return i.isNode&&n.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):a.defaultVisitor.apply(this,arguments)}},t))}})),Nz=n(((e,t)=>{var n=_z(),r=yz(),i=100;function a(e){var t=e.length-1;if(t>i)throw new r(`Maximum object depth of `+i+` exceeded (got `+t+` levels)`,r.ERR_FORM_DATA_DEPTH_EXCEEDED)}function o(e){return n.matchAll(/\w+|\[(\w*)]/g,e).map(function(e){return e[0]===`[]`?``:e[1]||e[0]})}function s(e){var t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function c(e){function t(e,r,i,a){var o=e[a++];if(o===`__proto__`)return!0;var c=Number.isFinite(+o),l=a>=e.length;return o=!o&&n.isArray(i)?i.length:o,l?(n.hasOwnProperty(i,o)?i[o]=[i[o],r]:i[o]=r,!c):((!i[o]||!n.isObject(i[o]))&&(i[o]=[]),t(e,r,i[o],a)&&n.isArray(i[o])&&(i[o]=s(i[o])),!c)}if(n.isFormData(e)&&n.isFunction(e.entries)){var r={};return n.forEachEntry(e,function(e,n){var i=o(e);a(i),t(i,n,r,0)}),r}return null}t.exports=c})),Pz=n(((e,t)=>{var n=yz();t.exports=function(e,t,r){var i=r.config.validateStatus;!r.status||!i||i(r.status)?e(r):t(new n(`Request failed with status code `+r.status,[n.ERR_BAD_REQUEST,n.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}})),Fz=n(((e,t)=>{var n=_z();t.exports=n.isStandardBrowserEnv()?(function(){return{write:function(e,t,r,i,a,o){var s=[];s.push(e+`=`+encodeURIComponent(t)),n.isNumber(r)&&s.push(`expires=`+new Date(r).toGMTString()),n.isString(i)&&s.push(`path=`+i),n.isString(a)&&s.push(`domain=`+a),o===!0&&s.push(`secure`),document.cookie=s.join(`; `)},read:function(e){for(var t=e+`=`,n=document.cookie.split(`;`),r,i=0;i<n.length;i++){for(r=n[i];r.charAt(0)===` `;)r=r.substring(1);if(r.indexOf(t)===0)return decodeURIComponent(r.substring(t.length))}return null},remove:function(e){this.write(e,``,Date.now()-864e5)}}})():(function(){return{write:function(){},read:function(){return null},remove:function(){}}})()})),Iz=n(((e,t)=>{t.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}})),Lz=n(((e,t)=>{t.exports=function(e,t){return t?e.replace(/\/?\/$/,``)+`/`+t.replace(/^\/+/,``):e}})),Rz=n(((e,t)=>{var n=Iz(),r=Lz();t.exports=function(e,t,i){var a=!n(t);return e&&(a||i===!1)?r(e,t):t}})),zz=n(((e,t)=>{var n=_z(),r=[`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`];t.exports=function(e){var t={},i,a,o;return e&&n.forEach(e.split(` 37`),function(e){if(o=e.indexOf(`:`),i=n.trim(e.slice(0,o)).toLowerCase(),a=n.trim(e.slice(o+1)),i){if(t[i]&&r.indexOf(i)>=0)return;i===`set-cookie`?t[i]=(t[i]?t[i]:[]).concat([a]):t[i]=t[i]?t[i]+`, `+a:a}}),t}})),Bz=n(((e,t)=>{var n=_z();t.exports=n.isStandardBrowserEnv()?(function(){var e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement(`a`),r;function i(n){var r=n;return e&&(t.setAttribute(`href`,r),r=t.href),t.setAttribute(`href`,r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,``):``,host:t.host,search:t.search?t.search.replace(/^\?/,``):``,hash:t.hash?t.hash.replace(/^#/,``):``,hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)===`/`?t.pathname:`/`+t.pathname}}return r=i(window.location.href),function(e){var t=n.isString(e)?i(e):e;return t.protocol===r.protocol&&t.host===r.host}})():(function(){return function(){return!0}})()})),Vz=n(((e,t)=>{var n=yz(),r=_z();function i(e,t,r){n.call(this,e??`canceled`,n.ERR_CANCELED,t,r),this.name=`CanceledError`}r.inherits(i,n,{__CANCEL__:!0}),t.exports=i})),Hz=n(((e,t)=>{t.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||``}})),Uz=n(((e,t)=>{var n=_z(),r=Pz(),i=Fz(),a=wz(),o=Rz(),s=zz(),c=Bz(),l=Dz(),u=yz(),d=Vz(),f=Hz(),p=jz();t.exports=function(e){return new Promise(function(t,m){var h=e.data,g=e.headers,v=e.responseType,y=n.hasOwnProperty(e,`withXSRFToken`)?e.withXSRFToken:void 0,b;function x(){e.cancelToken&&e.cancelToken.unsubscribe(b),e.signal&&e.signal.removeEventListener(`abort`,b)}n.isFormData(h)&&n.isStandardBrowserEnv()&&delete g[`Content-Type`];var S=new XMLHttpRequest,C=n.hasOwnProperty(e,`auth`)?e.auth:void 0;if(C){var w=n.hasOwnProperty(C,`username`)&&C.username||``,T=n.hasOwnProperty(C,`password`)&&C.password?unescape(encodeURIComponent(C.password)):``;g.Authorization=`Basic `+btoa(w+`:`+T)}var E=o(e.baseURL,e.url,e.allowAbsoluteUrls);S.open(e.method.toUpperCase(),a(E,e.params,n.hasOwnProperty(e,`paramsSerializer`)?e.paramsSerializer:void 0),!0),S.timeout=e.timeout;function D(){if(S){var n=`getAllResponseHeaders`in S?s(S.getAllResponseHeaders()):null;r(function(e){t(e),x()},function(e){m(e),x()},{data:!v||v===`text`||v===`json`?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:n,config:e,request:S}),S=null}}if(`onloadend`in S?S.onloadend=D:S.onreadystatechange=function(){S&&S.readyState===4&&(S.status!==0||S.responseURL&&S.responseURL.indexOf(`file:`)===0)&&setTimeout(D)},S.onabort=function(){S&&=(m(new u(`Request aborted`,u.ECONNABORTED,e,S)),null)},S.onerror=function(){m(new u(`Network Error`,u.ERR_NETWORK,e,S)),S=null},S.ontimeout=function(){var t=e.timeout?`timeout of `+e.timeout+`ms exceeded`:`timeout exceeded`,n=e.transitional||l;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),m(new u(t,n.clarifyTimeoutError?u.ETIMEDOUT:u.ECONNABORTED,e,S)),S=null},n.isStandardBrowserEnv()&&(n.isFunction(y)&&(y=y(e)),y===!0||y!==!1&&c(E))){var ee=e.xsrfHeaderName&&e.xsrfCookieName&&i.read(e.xsrfCookieName);ee&&(g[e.xsrfHeaderName]=ee)}
37`setRequestHeader`in S&&n.forEach(g,function(e,t){h===void 0&&t.toLowerCase()===`content-type`?delete g[t]:S.setRequestHeader(t,e)}),n.isUndefined(e.withCredentials)||(S.withCredentials=!!e.withCredentials),v&&v!==`json`&&(S.responseType=e.responseType),typeof e.onDownloadProgress==`function`&&S.addEventListener(`progress`,e.onDownloadProgress),typeof e.onUploadProgress==`function`&&S.upload&&S.upload.addEventListener(`progress`,e.onUploadProgress),(e.cancelToken||e.signal)&&(b=function(t){S&&=(m(!t||t.type?new d(null,e,S):t),S.abort(),null)},e.cancelToken&&e.cancelToken.subscribe(b),e.signal&&(e.signal.aborted?b():e.signal.addEventListener(`abort`,b))),!h&&h!==!1&&h!==0&&h!==``&&(h=null);var te=f(E);if(te&&p.protocols.indexOf(te)===-1){m(new u(`Unsupported protocol `+te+`:`,u.ERR_BAD_REQUEST,e));return}S.send(h)})}})),Wz=n(((e,t)=>{var n=_z(),r=Ez(),i=yz(),a=Dz(),o=Sz(),s=Mz(),c=jz(),l=Nz(),u=vz(),d={"Content-Type":`application/x-www-form-urlencoded`};function f(e,t){!n.isUndefined(e)&&n.isUndefined(e[`Content-Type`])&&(e[`Content-Type`]=t)}function p(){var e;return(typeof XMLHttpRequest<`u`||typeof process<`u`&&Object.prototype.toString.call(process)===`[object process]`)&&(e=Uz()),e}function m(e,t,r){if(n.isString(e))try{return(t||JSON.parse)(e),n.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(r||JSON.stringify)(e)}var h={transitional:a,adapter:p(),transformRequest:[function(e,t){r(t,`Accept`),r(t,`Content-Type`);var i=t&&t[`Content-Type`]||``,a=i.indexOf(`application/json`)>-1,c=n.isObject(e);if(c&&n.isHTMLForm(e)&&(e=new FormData(e)),n.isFormData(e))return a?JSON.stringify(l(e)):e;if(n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e))return e;if(n.isArrayBufferView(e))return e.buffer;if(n.isURLSearchParams(e))return f(t,`application/x-www-form-urlencoded;charset=utf-8`),e.toString();var u;if(c){var d=n.hasOwnProperty(this,`formSerializer`)?this.formSerializer:void 0,p=n.hasOwnProperty(this,`env`)?this.env:void 0;if(i.indexOf(`application/x-www-form-urlencoded`)!==-1)return s(e,d).toString();if((u=n.isFileList(e))||i.indexOf(`multipart/form-data`)>-1){var h=p&&p.FormData;return o(u?{"files[]":e}:e,h&&new h,d)}}return c||a?(f(t,`application/json`),m(e)):e}],transformResponse:[function(e){var t=this.transitional||h.transitional,r=t&&t.forcedJSONParsing,a=this.responseType===`json`;if(e&&n.isString(e)&&(r&&!this.responseType||a)){var o=!(t&&t.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(e){if(o)throw e.name===`SyntaxError`?i.from(e,i.ERR_BAD_RESPONSE,this,null,this.response):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,redact:u.slice(),env:{FormData:c.classes.FormData,Blob:c.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`}}};n.forEach([`delete`,`get`,`head`],function(e){h.headers[e]={}}),n.forEach([`post`,`put`,`patch`],function(e){h.headers[e]=n.merge(d)}),t.exports=h})),Gz=n(((e,t)=>{var n=_z(),r=Wz();t.exports=function(e,t,i,a){var o=this||r;return n.forEach(a,function(n){e=n.call(o,e,t,i)}),e}})),Kz=n(((e,t)=>{t.exports=function(e){return!!(e&&e.__CANCEL__)}})),qz=n(((e,t)=>{var n=_z(),r=/[^\x09\x20-\x7E\x80-\xFF]/g,i=/^[\x09\x20]+|[\x09\x20]+$/g;function a(e){return e===!1||e==null?e:n.isArray(e)?e.map(a):String(e).replace(r,``).replace(i,``)}t.exports=a})),Jz=n(((e,t)=>{var n=_z(),r=Gz(),i=Kz(),a=Wz(),o=Vz(),s=Ez(),c=qz();function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new o}t.exports=function(e){l(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,null,e.transformRequest),s(e.headers,`Accept`),s(e.headers,`Content-Type`);var t=n.hasOwnProperty(e.headers,`common`)&&e.headers.common?e.headers.common:{},o=e.method&&n.hasOwnProperty(e.headers,e.method)&&e.headers[e.method]?e.headers[e.method]:{};return e.headers=n.merge(t,o,e.headers),n.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`common`],function(t){delete e.headers[t]}),n.forEach(e.headers,function(t,n){e.headers[n]=c(t)}),(e.adapter||a.adapter)(e).then(function(t){return l(e),t.data=r.call(e,t.data,t.headers,t.status,e.transformResponse),t},function(t){return i(t)||(l(e),t&&t.response&&(t.response.data=r.call(e,t.response.data,t.response.headers,t.response.status,e.transformResponse))),Promise.reject(t)})}})),Yz=n(((e,t)=>{var n=_z();t.exports=function(e,t){t||={};var r=Object.create(null);function i(e,t){return n.hasOwnProperty(e,t)?e[t]:void 0}function a(e,t){return n.hasOwnProperty(e,t)}function o(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isEmptyObject(t)?n.merge({},e):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function s(r){if(a(t,r)&&!n.isUndefined(t[r]))return o(i(e,r),t[r]);if(a(e,r)&&!n.isUndefined(e[r]))return o(void 0,e[r])}function c(e){if(a(t,e)&&!n.isUndefined(t[e]))return o(void 0,t[e])}function l(r){if(a(t,r)&&!n.isUndefined(t[r]))return o(void 0,t[r]);if(a(e,r)&&!n.isUndefined(e[r]))return o(void 0,e[r])}function u(n){if(a(t,n))return o(i(e,n),t[n]);if(a(e,n))return o(void 0,e[n])}var d={url:c,method:c,data:c,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,allowedSocketPaths:l,responseEncoding:l,validateStatus:u};
37return n.forEach(Object.keys(e).concat(Object.keys(t)),function(e){if(e!==`__proto__`&&e!==`constructor`&&e!==`prototype`){var t=n.hasOwnProperty(d,e)?d[e]:s,i=t(e);n.isUndefined(i)&&t!==u||(r[e]=i)}}),r}})),Xz=n(((e,t)=>{t.exports={version:`0.33.0`}})),Zz=n(((e,t)=>{var n=Xz().version,r=yz(),i={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach(function(e,t){i[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var a={};i.transitional=function(e,t,i){function o(e,t){return`[Axios v`+n+`] Transitional option '`+e+`'`+t+(i?`. `+i:``)}return function(n,i,s){if(e===!1)throw new r(o(i,` has been removed`+(t?` in `+t:``)),r.ERR_DEPRECATED);return t&&!a[i]&&(a[i]=!0,console.warn(o(i,` has been deprecated since v`+t+` and will be removed in the near future`))),!e||e(n,i,s)}};function o(e,t,n){if(typeof e!=`object`)throw new r(`options must be an object`,r.ERR_BAD_OPTION_VALUE);for(var i=Object.keys(e),a=i.length;a-->0;){var o=i[a],s=t[o];if(s){var c=e[o],l=c===void 0||s(c,o,e);if(l!==!0)throw new r(`option `+o+` must be `+l,r.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new r(`Unknown option `+o,r.ERR_BAD_OPTION)}}t.exports={assertOptions:o,validators:i}})),Qz=n(((e,t)=>{var n=_z(),r=wz(),i=Tz(),a=Jz(),o=Yz(),s=Rz(),c=Zz(),l=c.validators;function u(e){this.defaults=e,this.interceptors={request:new i,response:new i}}u.prototype.request=function(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=o(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method=`get`;var r=t.transitional;r!==void 0&&c.assertOptions(r,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);var i=t.paramsSerializer;i!=null&&(n.isFunction(i)?t.paramsSerializer={serialize:i}:c.assertOptions(i,{encode:l.function,serialize:l.function},!0));var s=[],u=!0;this.interceptors.request.forEach(function(e){(typeof e.runWhen!=`function`||e.runWhen(t)!==!1)&&(u&&=e.synchronous,s.unshift(e.fulfilled,e.rejected))});var d=[];this.interceptors.response.forEach(function(e){d.push(e.fulfilled,e.rejected)});var f;if(!u){var p=[a,void 0];for(Array.prototype.unshift.apply(p,s),p=p.concat(d),f=Promise.resolve(t);p.length;)f=f.then(p.shift(),p.shift());return f}for(var m=t;s.length;){var h=s.shift(),g=s.shift();try{m=h(m)}catch(e){g(e);break}}try{f=a(m)}catch(e){return Promise.reject(e)}for(;d.length;)f=f.then(d.shift(),d.shift());return f},u.prototype.getUri=function(e){return e=o(this.defaults,e),r(s(e.baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)},n.forEach([`delete`,`get`,`head`,`options`],function(e){u.prototype[e]=function(t,r){var i=r||{};return this.request(o(i,{method:e,url:t,data:n.hasOwnProperty(i,`data`)?i.data:void 0}))}}),n.forEach([`post`,`put`,`patch`],function(e){function t(t){return function(n,r,i){return this.request(o(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}u.prototype[e]=t(),u.prototype[e+`Form`]=t(!0)}),t.exports=u})),$z=n(((e,t)=>{var n=Vz();function r(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);var t;this.promise=new Promise(function(e){t=e});var r=this;this.promise.then(function(e){if(r._listeners){for(var t=r._listeners.length;t-->0;)r._listeners[t](e);r._listeners=null}}),this.promise.then=function(e){var t,n=new Promise(function(e){r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,i,a){r.reason||(r.reason=new n(e,i,a),t(r.reason))})}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.prototype.subscribe=function(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]},r.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}},r.source=function(){var e;return{token:new r(function(t){e=t}),cancel:e}},t.exports=r})),eB=n(((e,t)=>{t.exports=function(e){return function(t){return e.apply(null,t)}}})),tB=n(((e,t)=>{var n=_z();t.exports=function(e){return n.isObject(e)&&e.isAxiosError===!0}})),nB=n(((e,t)=>{var n=_z(),r=gz(),i=Qz(),a=Yz(),o=Wz(),s=Nz();function c(e){var t=new i(e),o=r(i.prototype.request,t);return n.extend(o,i.prototype,t),n.extend(o,t),o.create=function(t){return c(a(e,t))},o}var l=c(o);l.Axios=i,l.CanceledError=Vz(),l.CancelToken=$z(),l.isCancel=Kz(),l.VERSION=Xz().version,l.toFormData=Sz(),l.AxiosError=yz(),l.Cancel=l.CanceledError,l.all=function(e){return Promise.all(e)},l.spread=eB(),l.isAxiosError=tB(),l.formToJSON=function(e){return s(n.isHTMLForm(e)?new FormData(e):e)},t.exports=l,t.exports.default=l})),rB=n(((e,t)=>{t.exports=nB()})),iB={},aB;function oB(){if(aB)return iB;aB=1,Object.defineProperty(iB,"__esModule",{value:!0}),iB.parseCookie=s,iB.parse=s,iB.stringifyCookie=c,iB.stringifySetCookie=l,iB.serialize=l,iB.parseSetCookie=u,iB.stringifySetCookie=l,iB.serialize=l;let e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,i=/^-?\d+$/,a=Object.prototype.toString,o=(()=>{let e=function(){};return e.prototype=Object.create(null),e})();function s(e,t){let n=new o,r=e.length;if(r<2)return n;let i=t?.decode||m,a=0;do{let t=f(e,a,r);if(t===-1)break;let o=d(e,a,r);if(t>o){a=e.lastIndexOf(`;`,t-1)+1;continue}let s=p(e,a,t);n[s]===void 0&&(n[s]=i(p(e,t+1,o))),a=o+1}while(a<r);return n}function c(n,r){let i=r?.encode||encodeURIComponent,a=[];for(let r of Object.keys(n)){let o=n[r];if(o===void 0)continue;
37if(!e.test(r))throw TypeError(`cookie name is invalid: ${r}`);let s=i(o);if(!t.test(s))throw TypeError(`cookie val is invalid: ${o}`);a.push(`${r}=${s}`)}return a.join(`; `)}function l(i,a,o){let s=typeof i==`object`?i:{...o,name:i,value:String(a)},c=(typeof a==`object`?a:o)?.encode||encodeURIComponent;if(!e.test(s.name))throw TypeError(`argument name is invalid: ${s.name}`);let l=s.value?c(s.value):``;if(!t.test(l))throw TypeError(`argument val is invalid: ${s.value}`);let u=s.name+`=`+l;if(s.maxAge!==void 0){if(!Number.isInteger(s.maxAge))throw TypeError(`option maxAge is invalid: ${s.maxAge}`);u+=`; Max-Age=`+s.maxAge}if(s.domain){if(!n.test(s.domain))throw TypeError(`option domain is invalid: ${s.domain}`);u+=`; Domain=`+s.domain}if(s.path){if(!r.test(s.path))throw TypeError(`option path is invalid: ${s.path}`);u+=`; Path=`+s.path}if(s.expires){if(!h(s.expires)||!Number.isFinite(s.expires.valueOf()))throw TypeError(`option expires is invalid: ${s.expires}`);u+=`; Expires=`+s.expires.toUTCString()}if(s.httpOnly&&(u+=`; HttpOnly`),s.secure&&(u+=`; Secure`),s.partitioned&&(u+=`; Partitioned`),s.priority)switch(typeof s.priority==`string`?s.priority.toLowerCase():void 0){case`low`:u+=`; Priority=Low`;break;case`medium`:u+=`; Priority=Medium`;break;case`high`:u+=`; Priority=High`;break;
37default:throw TypeError(`option priority is invalid: ${s.priority}`)}if(s.sameSite)switch(typeof s.sameSite==`string`?s.sameSite.toLowerCase():s.sameSite){case!0:case`strict`:u+=`; SameSite=Strict`;break;case`lax`:u+=`; SameSite=Lax`;break;case`none`:u+=`; SameSite=None`;break;default:throw TypeError(`option sameSite is invalid: ${s.sameSite}`)}return u}function u(e,t){let n=t?.decode||m,r=e.length,a=d(e,0,r),o=f(e,0,a),s=o===-1?{name:``,value:n(p(e,0,a))}:{name:p(e,0,o),value:n(p(e,o+1,a))},c=a+1;for(;c<r;){let t=d(e,c,r),n=f(e,c,t),a=n===-1?p(e,c,t):p(e,c,n),o=n===-1?void 0:p(e,n+1,t);switch(a.toLowerCase()){case`httponly`:s.httpOnly=!0;break;case`secure`:s.secure=!0;break;case`partitioned`:s.partitioned=!0;break;case`domain`:s.domain=o;break;case`path`:s.path=o;break;case`max-age`:o&&i.test(o)&&(s.maxAge=Number(o));break;case`expires`:if(!o)break;let e=new Date(o);Number.isFinite(e.valueOf())&&(s.expires=e);break;case`priority`:if(!o)break;let t=o.toLowerCase();(t===`low`||t===`medium`||t===`high`)&&(s.priority=t);break;case`samesite`:if(!o)break;let n=o.toLowerCase();(n===`lax`||n===`strict`||n===`none`)&&(s.sameSite=n)}c=t+1}return s}function d(e,t,n){let r=e.indexOf(`;`,t);return r===-1?n:r}function f(e,t,n){let r=e.indexOf(`=`,t);return r<n?r:-1}function p(e,t,n){let r=t,i=n;do{let t=e.charCodeAt(r);if(t!==32&&t!==9)break}while(++r<i);for(;i>r;){let t=e.charCodeAt(i-1);if(t!==32&&t!==9)break;i--}return e.slice(r,i)}function m(e){if(e.indexOf(`%`)===-1)return e;try{return decodeURIComponent(e)}catch{return e}}function h(e){return a.call(e)===`[object Date]`}return iB}var sB=oB();function cB(){let e=typeof globalThis>`u`?void 0:globalThis.TEST_HAS_DOCUMENT_COOKIE;return typeof e==`boolean`?e:typeof document==`object`&&typeof document.cookie==`string`}function lB(e){return typeof e==`string`?sB.parse(e):typeof e==`object`&&e?e:{}}function uB(e,t={}){let n=dB(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function dB(e){return e&&e[0]===`j`&&e[1]===`:`?e.substr(2):e}var fB=class{constructor(e,t={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;let e=this.cookies;this.cookies=sB.parse(document.cookie),this._checkChanges(e)};let n=typeof document>`u`?``:document.cookie;this.cookies=lB(e||n),this.defaultSetOptions=t,this.HAS_DOCUMENT_COOKIE=cB()}_emitChange(e){for(let t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e)}_checkChanges(e){new Set(Object.keys(e).concat(Object.keys(this.cookies))).forEach(t=>{e[t]!==this.cookies[t]&&this._emitChange({name:t,value:uB(this.cookies[t])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(e,t={}){return t.doNotUpdate||this.update(),uB(this.cookies[e],t)}getAll(e={}){e.doNotUpdate||this.update();let t={};for(let n in this.cookies)t[n]=uB(this.cookies[n],e);return t}set(e,t,n){n=n?Object.assign(Object.assign({},this.defaultSetOptions),n):this.defaultSetOptions;let r=typeof t==`string`?t:JSON.stringify(t);this.cookies=Object.assign(Object.assign({},this.cookies),{[e]:r}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=sB.serialize(e,r,n)),this._emitChange({name:e,value:t,options:n})}remove(e,t){let n=t=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),t),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=sB.serialize(e,``,n)),this._emitChange({name:e,value:void 0,options:t})}addChangeListener(e){this.changeListeners.push(e),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window==`object`&&`cookieStore`in window?window.cookieStore.addEventListener(`change`,this.update):this._startPolling())}removeChangeListener(e){let t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window==`object`&&`cookieStore`in window?window.cookieStore.removeEventListener(`change`,this.update):this._stopPolling())}removeAllChangeListeners(){for(;this.changeListeners.length>0;)this.removeChangeListener(this.changeListeners[0])}};function pB(e,t){let n=new fB;return{get:()=>n.get(e),set:r=>n.set(e,r,t),delete:()=>n.remove(e,t)}}var mB=t(rB(),1);function hB(e){Fe()&&ii(e)}function gB(e){return mB.default.create({baseURL:e})}function _B(e,t,n,r,i){let a=[],o=()=>
37{a.forEach(e=>e.abort()),a=[]},s=e=>{a=a.filter(t=>t!==e)};hB(o);let c=(...c)=>{let l=new AbortController,u=typeof n==`string`?n:n(...c),d=i&&typeof i==`function`?i(...c):{...i||{}},f=typeof r==`function`?r(...c):r,p=d.disabledAbortable;return!p&&!d.disableAbortOnRequest&&o(),p||a.push(l),e.request({...d,data:f,method:t,url:u.startsWith(`/`)?u:`/${u}`,signal:l.signal}).then(e=>(s(l),e)).catch(e=>(s(l),mB.default.isCancel(e)?null:Promise.reject({status:e.response?.status||500,error:e.response?.data||{}})))};return Object.defineProperty(c,"execute",{get:()=>c}),Object.defineProperty(c,"abort",{get:()=>o}),c}function vB(e,t=[]){let n=gB(e);return t.forEach(e=>e(n.interceptors,n)),{options(e,t){return _B(n,`options`,e,void 0,t)},get(e,t){return _B(n,`get`,e,void 0,t)},post(e,t,r){return _B(n,`post`,e,t,r)},delete(e,t){return _B(n,`delete`,e,void 0,t)},put(e,t,r){return _B(n,`put`,e,t,r)},patch(e,t,r){return _B(n,`patch`,e,t,r)}}}var yB=e=>e,bB=e=>e.status===401;function xB(e,t,n,r=bB){return yB((i,a)=>{i.request.use(t=>{let n=e.get();if(n){let e=t.headers||{};t={...t,headers:{...e,Authorization:n}}}return t},e=>Promise.reject(e)),i.response.use(e=>e,i=>{if(!i.response)return Promise.reject(i);let o=i.config;return o._retry&&r(i.response)?(e.delete(),n()):!o._retry&&r(i.response)?t(i).then(t=>(t?e.set(t):e.delete(),t?a({...o,_retry:!0}):n())).catch(()=>n()):Promise.reject(i)})})}var SB={status:`default`},CB=[`data-status`],wB=L({name:`Tag`,__name:`Tag`,props:z({status:{},icon:{}},SB),setup(e){return(t,n)=>(V(),H(`span`,{class:`smed-tag`,"data-status":e.status},[R(t.$slots,`icon`,{},()=>[e.icon?(V(),U(M(jN),{key:0,size:`sm`,name:e.icon},null,8,[`name`])):K(``,!0)]),R(t.$slots,`default`)],8,CB))}}),TB=`smed-dropdown-pivot`,EB=`smed-scrollable`,DB=`smed-active`,OB=`smed-virtual`,kB=[{id:`AZ`,title:`ÐзеÑбайджан`,prefix:`+994`,digitsCount:12},{id:`AM`,title:`ÐÑмениÑ`,prefix:`+374`,digitsCount:11},{id:`BY`,title:`ÐелаÑÑÑÑ`,prefix:`+375`,digitsCount:12},{id:`GE`,title:`ÐÑÑзиÑ`,prefix:`+995`,digitsCount:12},{id:`KZ`,title:`ÐазаÑ
ÑÑан`,prefix:`+7`,digitsCount:11},{id:`KG`,title:`ÐиÑгизиÑ`,prefix:`+996`,digitsCount:12},{id:`MD`,title:`Ðолдова`,prefix:`+373`,digitsCount:11},{id:`RU`,title:`РоÑÑиÑ`,prefix:`+7`,digitsCount:11},{id:`TJ`,title:`ТаджикиÑÑан`,prefix:`+992`,digitsCount:12},{id:`TM`,title:`ТÑÑкмениÑÑан`,prefix:`+993`,digitsCount:11},{id:`UZ`,title:`УзбекиÑÑан`,prefix:`+998`,digitsCount:12}],AB=[{id:`KZ`,title:`ÐазаÑ
ÑÑан`,prefix:`+7`,digitsCount:11},{id:`RU`,title:`РоÑÑиÑ`,prefix:`+7`,digitsCount:11}],jB={neutral:{color:`lavender-2`,icon:`info-filled`},warning:{color:`secondary-red`,icon:`info-filled`}},MB=Z(L({name:`Banner`,__name:`Banner`,props:z({size:{},type:{},closable:{type:Boolean},vertical:{type:Boolean}},{size:`md`,type:`neutral`,closable:!1,vertical:!1}),setup(e){let t=e,n=jB[t.type]?.icon,r=jB[t.type]?.color,i=q(()=>t.size===`sm`?`sm`:`lg`),a=j(null),o=q(()=>Number(a.value?.getBoundingClientRect().height)<32);return(t,s)=>(V(),H(`div`,{class:k([t.$style.banner,t.$style[`banner_`+e.size]])},[W(`div`,{ref_key:`content`,ref:a,class:k([t.$style.content,e.vertical&&t.$style.content_vertical,o.value&&t.$style[`content_one-line`]]),"data-automation-id":`content`},[W(`div`,{class:k([t.$style.icon,t.$style[`icon_`+M(r)],t.$style[`icon_`+e.size],o.value&&!e.vertical&&t.$style.icon_center])},[R(t.$slots,`icon`,{},()=>[G(M(jN),{size:i.value,name:M(n)},null,8,[`size`,`name`])])],2),W(`div`,null,[t.$slots.title?(V(),H(`div`,{key:0,class:k([t.$style.title,t.$style[`title_`+e.size]])},[R(t.$slots,`title`)],2)):K(``,!0),t.$slots.description?(V(),H(`div`,{key:1,class:k([t.$style.description,t.$style[`description_`+e.size]])},[R(t.$slots,`description`)],2)):K(``,!0),t.$slots.buttons?(V(),H(`div`,{key:2,class:k(t.$style.buttons),"data-automation-id":`buttons`},[R(t.$slots,`buttons`)],2)):K(``,!0)])],2),e.closable?(V(),H(`button`,{key:0,"data-automation-id":`banner-close`,tabindex:`0`,type:`button`,"aria-label":`ÐакÑÑÑÑ Ð±Ð°Ð½Ð½ÐµÑ`,title:`ÐакÑÑÑÑ Ð±Ð°Ð½Ð½ÐµÑ`,class:k([t.$style.closeBtn,o.value&&t.$style.closeBtn_center]),onClick:s[0]||=Qs(e=>t.$emit(`close`),[`stop`])},[G(M(hN),{name:`@smed.close`,size:`sm`})],2)):K(``,!0)],2))}}),[[`__cssModules`,{$style:{banner:`_banner_1vsu6_1`,banner_sm:`_banner_sm_1vsu6_10`,banner_md:`_banner_md_1vsu6_13`,banner_lg:`_banner_lg_1vsu6_16`,content:`_content_1vsu6_20`,"content_one-line":`_content_one-line_1vsu6_23`,content_vertical:`_content_vertical_1vsu6_26`,"icon_lavender-2":`_icon_lavender-2_1vsu6_31`,"
37icon_secondary-red":`_icon_secondary-red_1vsu6_34`,icon_sm:`_icon_sm_1vsu6_37`,icon_md:`_icon_md_1vsu6_40`,icon_lg:`_icon_lg_1vsu6_43`,icon_center:`_icon_center_1vsu6_46`,text:`_text_1vsu6_51`,title_sm:`_title_sm_1vsu6_55`,title_md:`_title_md_1vsu6_59`,title_lg:`_title_lg_1vsu6_63`,description:`_description_1vsu6_67`,description_sm:`_description_sm_1vsu6_70`,description_md:`_description_md_1vsu6_73`,description_lg:`_description_lg_1vsu6_76`,buttons:`_buttons_1vsu6_80`,closeBtn:`_closeBtn_1vsu6_86`,closeBtn_center:`_closeBtn_center_1vsu6_117`}}]]),NB={color:`primary`,disabled:!1,size:`md`,type:`button`,icon:``,iconRight:``,svgIconSize:`sm`,title:``},PB={key:0,class:`smed-base-button__content`,"data-automation-id":`button__content`},FB=L({name:`BaseButton`,__name:`BaseButton`,props:z({title:{},color:{},disabled:{type:Boolean},size:{},type:{},loading:{type:Boolean},icon:{},iconRight:{},svgIconSize:{},iconRotate:{type:Boolean},iconRightRotate:{type:Boolean},iconRotateDeg:{},iconRightRotateDeg:{},to:{},href:{}},NB),setup(e,{expose:t}){let{size:n,disabled:r,to:i,href:a,title:o,iconRight:s,icon:c,svgIconSize:l}=N(e),u=j(null),d=Ei(),f=q(()=>n.value===`sm`?`sm`:`lg`),p=q(()=>{let e=!!c.value||!!d.icon,t=!!s.value||!!d[`icon-right`],n=!!o.value||!!d.default;return e&&!t&&!n||t&&!e&&!n}),m=q(()=>r.value?`button`:a?.value?`a`:i?.value?`router-link`:`button`),h=q(()=>m.value===`a`?{href:a?.value}:{});return t({blur:()=>{u.value?.blur()}}),(t,a)=>(V(),U(mi(m.value),ao(h.value,{ref_key:`native`,ref:u,class:`smed-base-button`,type:e.type,"data-size":M(n),"data-color":e.color,"data-loading":e.loading,disabled:M(r),tabindex:M(r)||e.loading?`-1`:`0`,to:M(i)}),{default:P(()=>[R(t.$slots,`icon`,{},()=>[M(c)?(V(),U(M(jN),{key:0,size:M(l),name:M(c),rotate:e.iconRotate,"rotate-deg":e.iconRotateDeg},null,8,[`size`,`name`,`rotate`,`rotate-deg`])):K(``,!0)]),p.value?K(``,!0):(V(),H(`span`,PB,[R(t.$slots,`default`,{},()=>[eo(A(M(o)),1)])])),R(t.$slots,`icon-right`,{},()=>[M(s)?(V(),U(M(jN),{key:0,size:`sm`,name:M(s),rotate:e.iconRightRotate,"rotate-deg":e.iconRightRotateDeg},null,8,[`name`,`rotate`,`rotate-deg`])):K(``,!0)]),e.loading?(V(),U(M(hN),{key:1,name:`@smed.spinner`,class:`smed-base-button__spinner`,size:f.value},null,8,[`size`])):K(``,!0)]),_:3},16,[`type`,`data-size`,`data-color`,`data-loading`,`disabled`,`tabindex`,`to`]))}}),IB=L({name:`Money`,__name:`Money`,props:{value:{}},setup(e){let{value:t}=N(e),n=q(()=>{let e=t.value;return e===null?``:`${tF(e)} â½`});return(e,t)=>(V(),H(`span`,null,A(n.value),1))}});function LB(e,t,n){return function(r){let i=new e({baseURL:t});return n(i),new r(i)}}var RB=Z(L({name:`BackButton`,__name:`BackButton`,setup(e){let t=TL(),n=Di(),r=()=>window.history.length>2,i=()=>{n.onClick||(r()?t.back():t.push(`/`))};return(e,t)=>(V(),H(`div`,null,[qn((V(),H(`button`,{type:`button`,class:k(e.$style.button),onClick:i},[G(M(hN),{name:`@smed.arrow-back`,size:`sm`}),R(e.$slots,`default`,{},()=>[t[0]||=eo(`Ðазад`,-1)])],2)),[[M(LN)]])]))}}),[[`__cssModules`,{$style:{button:`_button_5xzea_1`}}]]),zB=/\d/,BB=[`+`,zB],VB=e=>e.split(``).map(e=>e===`x`?zB:e),HB=[`+`,/7/,...VB(` (xxx) xxx-xx-xx`)],UB=[`+`,`7`,...VB(` (xxx) xxx-xx-xx`)],WB=e=>e.split(``).map(e=>new RegExp(e)),GB=[{prefix:`992`,mask:[`+`,...WB(`992`),...VB(` xx xxx xxxx`)]},{prefix:`993`,mask:[`+`,...WB(`993`),...VB(` xx xxxxxx`)]},{prefix:`994`,mask:[`+`,...WB(`994`),...VB(` xx xxx xxxx`)]},{prefix:`995`,mask:[`+`,...WB(`995`),...VB(` xxx xxx xxx`)]},{prefix:`996`,mask:[`+`,...WB(`996`),...VB(` xx xxxxxx`)]},{prefix:`998`,mask:[`+`,...WB(`998`),...VB(` xx xxxxxxx`)]},{prefix:`373`,mask:[`+`,...WB(`373`),...VB(` xx xxx xxx`)]},{prefix:`374`,mask:[`+`,...WB(`374`),...VB(` xx-xxx-xxx`)]},{prefix:`375`,mask:[`+`,...WB(`375`),...VB(` xx-xxx-xxxx`)]}],KB=[`+`,...Array(15).fill(zB)],qB=10;function JB(e){let t=GB.find(({prefix:t})=>e.startsWith(t));return t?t.mask:e.length===qB?UB:KB}var YB=(e,t)=>e?t:t===`8`?`7`:t!==`3`&&t!==`9`&&t!==`7`&&t!==`6`?`7${t}`:t,XB=11,ZB={mask:({value:e})=>{let t=tV(e);return t?t.startsWith(`7`)?HB:JB(t):BB},plugins:[WP()],preprocessors:[(()=>{let e=e=>e.replace(/\D/g,``),t=t=>e(t).length,n=e=>e.startsWith(`7`)||e.startsWith(`8`),r=e=>e.length===XB&&e.startsWith(`8`)?`7${e.slice(1)}`:e;return({elementState:i,data:a})=>{let{value:o,selection:s}=i,c=e(o),l=e(a);return{elementState:{selection:s,value:t(o)>XB&&n(c)?r(c):o}
37,data:t(a)>=XB&&n(l)?r(l):YB(o,a)}}})()]};function QB(){let e=e=>e.replace(/^(\+?7?\s?8?)\s?/,``),t=e=>e.replace(/\D/g,``).length,n=(e,t)=>e?t:t===`8`?`7`:t;return({elementState:r,data:i})=>{let{value:a,selection:o}=r;return{elementState:{selection:o,value:t(a||``)>11?e(a):a},data:t(i||``)>=11?e(i):n(a,i)}}}var $B={mask:UB,plugins:[WP()],preprocessors:[QB()]};function eV(e){return e.replace(/(\bhttps?:\/\/(www\.)?[a-zA-Zа-ÑÐ-Я0-9-\\.]+\.[a-zA-Zа-ÑÐ-Я]{2,})(?:(\/)[^\s\\.\\,]*)?/g,e=>`<a href="${e}" target="_blank">${e}</a>`)}function tV(e){return(e||``).replace(/\D/g,``)}function nV(e){return BP(tV(e),ZB)}var rV=(e,t)=>{let n=e.toLowerCase(),r=t.toLowerCase(),i=[],a=0;for(;a<n.length;){let o=n.indexOf(r,a);if(o===-1){i.push({text:e.slice(a)});break}let s=e.slice(a,o),c=e.slice(o,o+t.length);s&&i.push({text:s}),c&&i.push({bold:c}),a=o+t.length}return i},iV=0;function aV(){return`smed-element_${iV++}_${Date.now()}`}function oV(e){let t=tV(e||``),n=`+${t}`,r=t.length,i=kB.find(({prefix:e})=>n.startsWith(e));return!!i&&i.digitsCount===r}function sV(e){return e.replace(/<[^>]*>/g,``)}var cV=L({name:`Portal`,__name:`Portal`,props:z({appendTo:{}},{appendTo:`body`}),setup(e){return(t,n)=>(V(),U(mr,{to:e.appendTo},[R(t.$slots,`default`)],8,[`to`]))}}),lV={size:`md`,dismissible:!0},uV=[`data-appearance`,`data-size`,`data-mobile`],dV=L({__name:`Dialog`,props:z({appearance:{},size:{},dismissible:{type:Boolean},opened:{type:Boolean}},lV),emits:[`update:opened`],setup(e,{emit:t}){let n=e,r=t,{size:i,dismissible:a,opened:o}=N(n),s=j(null),c=j(null),l=F(LM,j(null)),u=F(jM,j(!1));Yn(RM,s);let d=aV(),f=q(()=>i.value===`full`),p=q(()=>{let e=f.value?`fullsize`:`default`;return{"enter-from-class":`smed-dialog-${e}-enter-from`,"enter-active-class":`smed-dialog-${e}-enter-active`,"leave-active-class":`smed-dialog-${e}-leave-active`,"leave-to-class":`smed-dialog-${e}-leave-to`}}),m=()=>{r(`update:opened`,!1)},h=e=>{if(!a.value)return;let t=Array.from(c.value?.children||[]),n=e.target;t.length>0&&n&&t.some(e=>e.contains(n))||m()},g={onEvent:()=>{a.value&&m()}};return I(c,e=>{e&&e.focus()},{immediate:!0}),I([o,l],([e,t])=>{t?.setOpened(d,e)},{immediate:!0}),ii(()=>{l.value?.remove(d)}),(t,n)=>M(l)?(V(),U(M(cV),{key:0,"append-to":`#smed_popups-host`},{default:P(()=>[G(Uo,ao(p.value,{appear:``}),{default:P(()=>[M(o)?qn((V(),H(`section`,{key:0,ref_key:`popupRef`,ref:s,"aria-modal":`true`,role:`dialog`,class:`smed-dialog__section`,"data-automation-id":`dialog-section`,onClick:h},[W(`div`,{ref_key:`dialogRef`,ref:c,class:`smed-dialog`,"data-appearance":e.appearance,"data-size":M(i),"data-mobile":M(u)},[R(t.$slots,`default`,{close:m})],8,uV)])),[[M($N),g],[M(cP)],[M(_F),`all`]]):K(``,!0)]),_:3},16)]),_:3})):K(``,!0)}}),fV={...lV,modelValue:!1,closable:!0,title:``},pV={key:0,class:`smed-text_h2 smed-space_bottom-8`},mV=[`onKeydown`],hV=Z(L({name:`Popup`,__name:`Popup`,props:z({appearance:{},size:{},dismissible:{type:Boolean},modelValue:{type:Boolean},closable:{type:Boolean},title:{}},fV),emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,{modelValue:i,size:a}=N(n),o=F(jM,j(!1)),s=q(()=>a.value===`full`),c=()=>{r(`update:modelValue`,!1)};return(t,n)=>(V(),U(M(dV),{appearance:e.appearance,size:M(a),dismissible:e.dismissible,opened:M(i),"onUpdate:opened":n[1]||=e=>r(`update:modelValue`,e)},{default:P(()=>[W(`div`,{class:k([t.$style.content,M(o)&&t.$style.content_mobile,s.value&&t.$style.content_full])},[e.title?(V(),H(`h2`,pV,A(e.title),1)):K(``,!0),R(t.$slots,`default`,{close:c})],2),e.closable?(V(),H(`div`,{key:0,ref:`sticky`,class:k(t.$style.sticky)},[W(`button`,{type:`button`,title:`ÐакÑÑÑÑ Ð¿Ð¾Ð¿Ð°Ð¿`,"aria-label":`ÐакÑÑÑÑ Ð¿Ð¾Ð¿Ð°Ð¿`,class:k(t.$style.close),onClick:Qs(c,[`prevent`,`stop`]),onKeydown:ec(Qs(c,[`stop`,`prevent`]),[`enter`]),onMousedown:n[0]||=Qs(()=>{},[`prevent`])},[G(M(jN),{name:`close-black`,size:`xl`})],42,mV)],2)):K(``,!0)]),_:3},8,[`appearance`,`size`,`dismissible`,`opened`]))}}),[[`__cssModules`,{$style:{content:`_content_1diie_1`,content_full:`_content_full_1diie_6`,content_mobile:`_content_mobile_1diie_13`,sticky:`_sticky_1diie_17`,close:`_close_1diie_24`}}]]),gV={size:`lg`},_V={success:`@smed.check-rounded`,completed:`@smed.info-circle`,info:`@smed.info-circle`,error:`@smed.warning-rounded`,warning:`@smed.warning-rounded`,loading:`@smed.spinner`},vV={lg:32,md:24,sm:16},yV=Z(L({__name:`MarkerIcon`,props:z({name:{},size:{}},gV),setup(e){let{name:t,size:n}=N(e),r=q(()=>_V[t.value]),i=q(()=>{let e=t.value;return[`success`,`completed`,`error`,`info`,`warning`].includes(e)?vV[n.value]:n.value});return(e,a)=>(V(),H(`span`,{class:k([e.$style.marker,e.$style[`marker_`+M(t)],e.$style[`marker_`+M(n)]])}
37,[G(M(hN),{size:i.value,name:r.value},null,8,[`size`,`name`])],2))}}),[[`__cssModules`,{$style:{marker:`_marker_1kh7d_1`,marker_success:`_marker_success_1kh7d_8`,marker_completed:`_marker_completed_1kh7d_12`,marker_info:`_marker_info_1kh7d_16`,marker_error:`_marker_error_1kh7d_20`,marker_warning:`_marker_warning_1kh7d_24`,marker_loading:`_marker_loading_1kh7d_28`,marker_sm:`_marker_sm_1kh7d_34`,marker_md:`_marker_md_1kh7d_42`,marker_lg:`_marker_lg_1kh7d_50`}}]]),bV={analysis:`Ðа\xA0ближайÑее вÑÐµÐ¼Ñ Ð°Ð½Ð°Ð»Ð¸Ð·Ð¾Ð² 38не\xA0запланиÑовано`,appointment:`Ðа\xA0ближайÑее вÑÐµÐ¼Ñ Ð¿ÑиÑмов 39не\xA0запланиÑовано`,basket:`ÐоÑзина пока пÑÑÑа`,cards:`ÐÑивÑжиÑе банковÑкÑÑ ÐºÐ°ÑÑÑ, ÑÑÐ¾Ð±Ñ Ð¾Ð¿Ð»Ð°ÑиваÑÑ ÐºÐ¾Ð½ÑÑлÑÑаÑии`,clinics:`ÐÑ\xA0не\xA0Ñмогли найÑи клиники. 40ÐопÑобÑйÑе обновиÑÑ ÑÑÑаниÑÑ`,documents:`ÐдеÑÑ Ð±ÑдÑÑ Ñ ÑаниÑÑÑÑ Ð²Ñе ваÑи 41докÑменÑÑ Ð¸Ð·\xA0иÑÑоÑии конÑÑлÑÑаÑий 42Ñ\xA0вÑаÑами`,family:`ÐобавÑÑе даннÑе ваÑÐ¸Ñ Ð±Ð»Ð¸Ð·ÐºÐ¸Ñ , 43ÑÑÐ¾Ð±Ñ Ð·Ð°Ð±Ð¾ÑиÑÑÑÑ Ð¾Ð±\xA0Ð¸Ñ \xA0здоÑовÑе`,notifications:`Уведомлений еÑÑ Ð½ÐµÑ`,orders:`Ðока Ð½ÐµÑ Ð·Ð°ÐºÐ°Ð·Ð¾Ð²`,referrals:`ÐÑаÑи пока не\xA0назнаÑили 44вам напÑавлений`,support:`ÐдеÑÑ Ð±ÑдÑÑ Ð²Ð°Ñи обÑаÑÐµÐ½Ð¸Ñ 45в\xA0ÑÐµÑ Ð½Ð¸ÑеÑкÑÑ Ð¿Ð¾Ð´Ð´ÐµÑжкÑ`},xV={text:``,type:`appointment`,src:``},SV={key:0},CV=[`srcset`],wV=[`alt`,`src`,`srcset`],TV=[`alt`,`src`],EV=Z(L({name:`EmptyState`,__name:`EmptyState`,props:z({type:{},text:{},src:{}},xV),setup(e){let{type:t,text:n,src:r}=N(e),i=(e,t)=>`https://static.medsi.pro/images/${e}/pic@1x.${t} 1x, https://static.medsi.pro/images/${e}/pic@2x.${t} 2x`,a=q(()=>n.value||bV[t.value]||``),o=q(()=>r.value||`https://static.medsi.pro/images/${t.value}/[email protected]`),s=q(()=>{if(r.value)return{png:``,webp:``};let e=t.value;return{png:i(e,`png`),webp:i(e,`webp`)}});return(e,n)=>(V(),H(`div`,{class:k([`smed-text_body-lg`,e.$style.root])},[R(e.$slots,`picture`,{},()=>[M(r)?(V(),H(`img`,{key:1,role:`presentation`,decoding:`async`,fetchpriority:`low`,width:`104`,height:`104`,alt:M(t),src:o.value,class:k([`smed-space_bottom-6 smed-space_auto`,e.$style.picture])},null,10,TV)):(V(),H(`picture`,SV,[W(`source`,{type:`image/webp`,srcset:s.value.webp},null,8,CV),W(`img`,{role:`presentation`,decoding:`async`,fetchpriority:`low`,width:`104`,height:`104`,alt:M(t),src:o.value,srcset:s.value.png,class:k([`smed-space_bottom-6 smed-space_auto`,e.$style.picture])},null,10,wV)]))]),W(`span`,null,[R(e.$slots,`text`,{},()=>[eo(A(a.value),1)])])],2))}}),[[`__cssModules`,{$style:{root:`_root_6chww_1`,picture:`_picture_6chww_9`}}]]),DV=j(null);function OV(e){return!!e&&typeof e==`object`&&(`$data`in e||`$el`in e)}var kV=Symbol();function AV(e,t=DV,n=null){let r=gN(e),i=gN(t),a=j([]),o=F(hM,DV),s=q(()=>{let e=r.value;return OV(e)?e.$el:e}),c=q(()=>{let e=i.value;return OV(e)?e.$el:e}),l=q(()=>{let e=o.value;return s.value,a.value,c.value,u(e)}),u=e=>{let t=s.value,n=a.value,r=c.value;return t?!e&&r&&r.querySelector(`[data-virtual-list]`)?!0:t===e||t.contains(e)||(r?r===e||r.contains(e):!1)||n.length>0&&n.some((t,n,r)=>r.indexOf(t)===n&&t._contains(e)):!1},d={id:aV(),insideZone:l,_contains:u,_setSubZone:e=>{a.value=[...a.value,e]},_removeSubZone:e=>{a.value=a.value.filter(t=>t.id!==e.id)}},f=n||F(kV,null);return f?._setSubZone(d),ii(()=>{f?._removeSubZone(d)}),Yn(kV,d),d}var jV=Vr(()=>hz(()=>Promise.resolve().then(()=>s$).then(e=>e.AlertUndo),void 0));function MV(e){let t=F(yM,null);t===null&&console.warn(`[useAlerts] ÐÐµÐ¾Ð±Ñ Ð¾Ð´Ð¸Ð¼Ð¾ добавиÑÑ AlertsPlugin в main.ts`);let n=[],r=(r,i)=>{let a=aV();return t?.show(a,r,i),e?.autoCloseOnUnmount&&n.push(a),a},i=e=>{if(!e){a();return}t?.close(e)},a=()=>{t?.closeLast()};return _N(()=>{n.forEach(i)}),{show:r,close:i,closeLast:a,showUndo:(e,t)=>r(jV,{...t,type:`undo`,closable:!1,data:{message:e,autoClose:t?.autoClose||5e3,...t?.data||{}}})}}function NV(e=void 0){return e!==void 0&&Yn(xM,e),F(xM,null)}function PV(e=!1){let t=NV(),n=gN(e),r=t?gN(t.disabled):j(!1);return q(()=>n.value||r.value)}
45function FV(e=!1){let t=NV(),n=gN(e),r=t?gN(t.invalid):j(!1);return q(()=>n.value||r.value)}function IV(){let e=F(NM,aV()),t=j(null),n=j(!1),r=()=>{n.value=!0},i=()=>{n.value=!1},a=q(()=>{let e=t.value;return e?`$el`in e?e.$el:e:null});return ti(()=>{let e=a.value;e&&typeof e.addEventListener==`function`&&(e.addEventListener(`focusin`,r),e.addEventListener(`focusout`,i))}),ii(()=>{let e=a.value;e&&typeof e.removeEventListener==`function`&&(e.removeEventListener(`focusin`,r),e.removeEventListener(`focusout`,i))}),{native:t,focused:n,id:e,focus:()=>{a.value&&a.value.focus()},blur:()=>{a.value&&a.value.blur()}}}function LV(e,t,n){let r=gN(e),i=window&&window.IntersectionObserver?new IntersectionObserver(t,n):null;I(r,(e,t,n)=>{n(()=>{i?.disconnect()}),e&&i?.observe(e)},{immediate:!0})}var RV=e=>{let t=new Map,n=Object.keys(e);for(let r=0;r<n.length+1;r++)r===0?t.set([-1/0,e[n[r]]],n[r]):r===n.length?t.set([e[n[r-1]],1/0],`largerThenDefined`):t.set([e[n[r-1]],e[n[r]]],n[r]);return t},zV=(e,t,n)=>t<e&&e<=n,BV=(e,t)=>{let n=e.keys(),r=Array.from(n);for(let n=0;n<r.length;n++){let i=r[n];if(zV(t,i[0],i[1]))return e.get(i)||null}return null};function VV(){let e=F(PM),t=F(FM,{}),n=RV(t),r=q(()=>e?.value||window.innerWidth);return{media:q(()=>{let e=r.value;return BV(n,e)}),computedSmallerThen:e=>q(()=>{let n=r.value;return t[e]===void 0?(console.warn(`useMedia. Unknown breakpoint token`),!1):n<=t[e]}),computedBiggerThen:e=>q(()=>{let n=r.value;return t[e]===void 0?(console.warn(`useMedia. Unknown breakpoint token`),!0):n>t[e]})}}var HV={trim:e=>typeof e==`string`?e.trim():e,capitalize:e=>typeof e==`string`?e.charAt(0).toUpperCase()+e.slice(1):e,uppercase:e=>typeof e==`string`?e.toUpperCase():e,lowercase:e=>typeof e==`string`?e.toLowerCase():e};function UV(e){let t=F(IM,HV),n=e=>e,r=Object.keys(e).filter(t=>e[t]).map(e=>t[e]||HV[e]||n);return{modify:e=>{let t=e;return r.forEach(e=>{t=e(t)}),t}}}var WV=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/,GV=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/,KV=/ipad|iphone|ipod/,qV=!1,JV=!1;function YV(){if(qV)return JV;if(!navigator)return!1;let e=navigator.userAgent;return JV=WV.test(e.toLowerCase())||GV.test(e.substring(0,4).toLowerCase()),qV=!0,JV}function XV(){return navigator?navigator.platform.startsWith(`Mac`)||navigator.platform===`iPhone`:!1}function ZV(){return navigator?KV.test(navigator.userAgent.toLowerCase())||XV()&&navigator.maxTouchPoints>1:!1}function QV(){return!!window?.webkitConvertPointFromNodeToPage}var $V=window&&window.CSS?window.CSS:{escape:e=>e,supports:()=>!1},eH=e=>{if(navigator.clipboard&&window.isSecureContext)return navigator.clipboard.writeText(e);{let t=document.createElement(`textarea`);t.value=e,t.style.position=`absolute`,t.style.left=`-999999px`,t.style.width=`0px`,t.style.height=`0px`,t.style.opacity=`0`,document.body.prepend(t),t.select();try{return document.execCommand(`copy`),t.remove(),Promise.resolve(null)}catch(e){return t.remove(),Promise.reject(e)}}};function tH(e,t,n){let r=F(BM,null),i=$V.supports(`selector(:has(*))`),a=gN(e),o=gN(t),s=gN(n),c=q(()=>a.value?`disabled`:o.value?`invalid`:s.value?`checked`:``),l=null;ti(()=>{r&&!i&&(l=I(c,e=>{r.value=e},{immediate:!0}))}),ii(()=>{l?.(),l=null})}function nH(){let e=F(BM,null),t=j(void 0);return e===null&&Yn(BM,t),e??t}var rH={size:`md`},iH=[`checked`,`data-size`,`data-state`,`indeterminate`,`disabled`],aH=L({n
45ame:`Checkbox`,__name:`Checkbox`,props:z({modelValue:{type:[Boolean,null]},size:{},disabled:{type:Boolean},invalid:{type:Boolean}},rH),emits:[`update:modelValue`],setup(e,{emit:t}){us(e=>({bbb59fb2:u,v4ed1405a:d}));let n=e,r=t,{invalid:i,disabled:a,modelValue:o}=N(n),s=FV(i),c=PV(a);tH(c,s,o);let l=F(KM,GM),u=`url(${l(`check`)})`,d=`url(${l(`minus`)})`,f=q(()=>s.value?`invalid`:``),p=()=>{r(`update:modelValue`,!n.modelValue)};return(t,n)=>(V(),H(`input`,{class:k([`smed-checkbox-v2`,M(o)&&`_checked`]),type:`checkbox`,"data-automation-id":`smed-checkbox`,checked:!!M(o),"data-size":e.size,"data-state":f.value,indeterminate:M(o)===null,disabled:M(c),onInput:p},null,42,iH))}}),oH={size:`md`},sH=[`data-size`,`data-state`],cH=L({name:`SmedLabel`,__name:`Label`,props:z({size:{}},oH),setup(e){let t=nH();return(n,r)=>(V(),H(`label`,{class:`smed-label-v2`,"data-size":e.size,"data-state":M(t)},[R(n.$slots,`default`)],8,sH))}}),lH={...rH,label:``,id:``,size:`md`,focusable:!0},uH={key:0},dH=L({name:`BaseCheckbox`,__name:`BaseCheckbox`,props:z({modelValue:{type:[Boolean,null]},size:{},disabled:{type:Boolean},invalid:{type:Boolean},id:{},label:{},focusable:{type:Boolean}},lH),emits:[`update:modelValue`],setup(e,{expose:t,emit:n}){let r=e,i=n,{modelValue:a,invalid:o,disabled:s,label:c,id:l}=N(r),{id:u,native:d,focus:f,blur:p}=IV(),m=q(()=>l.value||u);return t({focus:f,blur:p}),(t,n)=>(V(),U(M(cH),{size:e.size,for:m.value},{default:P(()=>[G(M(aH),{id:m.value,ref_key:`native`,ref:d,"model-value":M(a),disabled:M(s),invalid:M(o),size:e.size,tabindex:e.focusable?`0`:`-1`,"onUpdate:modelValue":n[0]||=e=>i(`update:modelValue`,e)},null,8,[`id`,`model-value`,`disabled`,`invalid`,`size`,`tabindex`]),t.$slots.default||M(c)?(V(),H(`span`,uH,[R(t.$slots,`default`,{},()=>[eo(A(M(c)),1)])])):K(``,!0)]),_:3},8,[`size`,`for`]))}});function fH(){return{}}function pH(e){return e==null?``:String(e)}function mH(e){e.dispatchEvent(new CustomEvent(TB,{bubbles:!0,detail:e}))}function hH(e){e.dispatchEvent(new CustomEvent(TB,{bubbles:!0,detail:null}))}var gH={mounted:mH,beforeUnmount:hH},_H={type:`text`,size:`md`,disabled:!1,editable:!0,isSuccess:!1,hasCleaner:!0,id:``,dataAutomationId:`smed-base-input-native`,stringify:pH,modelModifiers:fH},vH=[`data-state`],yH=[`data-size`,`data-state`,`data-raized`,`data-icons-right`,`data-icons-left`,`data-editable`,`data-label-outside`,`data-table-view`,`for`,`data-autofill`],bH={key:0,class:`smed-input__icons smed-input__icons_left`,"data-automation-id":`smed-base-input-left-icon`},xH={class:`smed-input__wrapper`},SH=[`id`,`data-automation-id`,`autocomplete`,`type`,`name`,`placeholder`,`disabled`,`inputmode`,`readonly`,`value`,`data-hide`],CH={key:0,class:`smed-input__native smed-input__template`,"data-automation-id":`smed-base-input-value-content`},wH={class:`smed-input__content`},TH={class:`smed-input__labelContent`},EH=[`data-raized`],DH={class:`smed-input__decoration`},OH={class:`smed-input__hidden`},kH={class:`smed-input__postfix`}
45,AH={key:1,class:`smed-input__icons`},jH={key:0,class:`smed-input__description`},MH=Z(L({name:`BaseInput`,__name:`BaseInput`,props:z({modelValue:{},modelModifiers:{},type:{},size:{},disabled:{type:Boolean},label:{},description:{},editable:{type:Boolean},hasCleaner:{type:Boolean},invalid:{type:Boolean},isSuccess:{type:Boolean},placeholder:{},autocomplete:{},name:{},decoratorPostfix:{},decoratorPostfixColorClass:{},inputmode:{},readonly:{type:Boolean},required:{type:Boolean},id:{},dataAutomationId:{},pseudoHovered:{type:Boolean},pseudoFocused:{type:Boolean},stringify:{type:Function}},_H),emits:[`update:modelValue`,`focused`],setup(e,{expose:t,emit:n}){let r=e,i=n,a=Ei(),{modelValue:o,modelModifiers:s,size:c,invalid:l,disabled:u,readonly:d,editable:f,hasCleaner:p,id:m,pseudoFocused:h,pseudoHovered:g,description:v,isSuccess:y,decoratorPostfix:b}=N(r),x=F(VM,null),S=F(MM,!1),C=NV(),w=IV(),T=UV(s.value),E=FV(l),D=PV(u),ee=w.native,te=j(null),ne=j(!1),re=j(!1),ie={onEvent:e=>{ne.value=e}},ae=q(()=>m.value||w.id),oe=q(()=>w.focused.value||h.value),O=q(()=>ne.value||g.value),se=q(()=>{let e=o.value;return r.stringify(e)}),ce=q(()=>D.value?`disabled`:E.value?`invalid`:oe.value?`focused`:O.value?`hovered`:``),le=q(()=>D.value||d.value),ue=q(()=>le.value||!f.value),de=q(()=>!!o.value&&String(o.value).length>0),fe=q(()=>de.value||f.value&&oe.value||re.value),pe=q(()=>S||c.value===`sm`?!fe.value:!0),me=q(()=>!S&&!le.value&&(de.value||re.value)&&p.value&&oe.value),he=q(()=>!!b?.value&&de.value),ge=q(()=>{let e=de.value&&!!a.valueContent,t=!f.value&&e,n=f.value&&!oe.value&&e;return t||n}),_e=e=>{let t=e.target.value;i(`update:modelValue`,T.modify(t))},ve=()=>{i(`update:modelValue`,null),w.focus()},ye=e=>{let t=e.animationName.startsWith(`smedOnAutoFillStart`),n=e.animationName.startsWith(`smedOnAutoFillCancel`);t?re.value=!0:n&&(re.value=!1)};return ei(()=>{x&&(x.value+=1)}),ii(()=>{x&&--x.value}),I(oe,(e,t)=>{t&&!e&&C?.markAsTouch(),i(`focused`,e)},{immediate:!0}),t({focus:w.focus,blur:w.blur,wrapper:te,native:ee}),(t,n)=>(V(),H(`div`,{class:`smed-input__container`,"data-state":ce.value},[qn((V(),H(`label`,{ref_key:`labelRef`,ref:te,class:`smed-input`,"data-size":M(c),"data-state":ce.value,"data-raized":fe.value,"data-icons-right":!!t.$slots.right||me.value||M(y),"data-icons-left":!!t.$slots.left,"data-editable":M(f),"data-label-outside":M(S)||!t.$slots.label&&!e.label,"data-table-view":M(S),for:ae.value,"data-autofill":re.value},[t.$slots.left?(V(),H(`div`,bH,[R(t.$slots,`left`,{},void 0,!0)])):K(``,!0),W(`div`,xH,[W(`input`,{id:ae.value,ref_key:`nativeRef`,ref:ee,class:`smed-input__native`,"data-automation-id":e.dataAutomationId,autocomplete:e.autocomplete,type:e.type,name:e.name,placeholder:e.placeholder,disabled:le.value,inputmode:e.inputmode,readonly:ue.value,value:se.value,"data-hide":ge.value,onAnimationstart:ye,onInput:_e},null,40,SH),ge.value?(V(),H(`div`,CH,[R(t.$slots,`valueContent`,{value:M(o)},void 0,!0)])):K(``,!0),W(`div`,wH,[W(`div`,TH,[pe.value&&(t.$slots.label||e.label)?(V(),H(`span`,{key:0,class:k([`smed-input__label`,e.required&&`smed-required`]),"data-automation-id":`smed-base-input-label`,"data-raized":fe.value},[R(t.$slots,`label`,{},()=>[eo(A(e.label||`\xA0`),1)],!0)],10,EH)):K(``,!0),W(`div`,DH,[he.value?(V(),H(`span`,{key:0,class:k([`smed-input__decorator`,e.decoratorPostfixColorClass])},[W(`span`,OH,A(se.value),1),W(`span`,kH,A(M(b)),1)],2)):K(``,!0)])])])]),t.$slots.right||me.value||M(y)?(V(),H(`div`,AH,[M(y)?(V(),U(M(hN),{key:0,"data-automation-id":`smed-base-input-success-icon`,name:`@smed.check-filled`,size:`sm`,style:{color:`var(--smed-primary)`}})):K(``,!0),me.value?(V(),H(`button`,{key:1,"aria-label":`ÐÑиÑÑиÑÑ Ð¿Ð¾Ð»Ðµ ввода`,class:`smed-input__cleaner`,"data-automation-id":`smed-base-input-cleaner-icon`,tabindex:`-1`,type:`button`,title:`ÐÑиÑÑиÑÑ Ð¿Ð¾Ð»Ðµ ввода`,onMousedown:Qs(ve,[`stop`,`prevent`])},[G(M(hN),{name:`@smed.close-filled`,size:`sm`})],32)):K(``,!0),R(t.$slots,`right`,{},void 0,!0)])):K(``,!0)],8,yH)),[[M(gH)],[M(uP),ie]]),t.$slots.description||M(v)?(V(),H(`div`,jH,[R(t.$slots,`description`,{},()=>[eo(A(M(v)),1)],!0)])):K(``,!0)],8,vH))}}
45),[[`__scopeId`,`data-v-fcd8d7fb`]]),NH=()=>[],PH=(e,t)=>e===t,FH=(e,t)=>{let n={id:null},r=performance.now(),i=a=>{a-r>=t&&(e(a),r=a),n.id=requestAnimationFrame(i)};return n.id=requestAnimationFrame(i),{stop:()=>{n.id!==null&&cancelAnimationFrame(n.id)}}},IH=j(null),LH={scrollToActive:!0},RH={is:`button`,hideIcon:!1},zH=`smed-data-scroll`;function BH(e,{value:t,oldValue:n}){t&&t!==n&&e.dispatchEvent(new CustomEvent(zH,{detail:e,bubbles:!0}))}var VH={mounted:BH},HH={key:0,class:`smed-data-list__empty smed-data-list__loader`},UH={class:`smed-data-list__empty`},WH=Z(L({name:`DataList`,__name:`DataList`,props:z({loading:{type:Boolean},scrollToActive:{type:Boolean}},LH),setup(e){let t=e,n=j(null),r=F(RM,IH),i=()=>{let e=n.value?.querySelectorAll(`[role="option"]`)||[];return Array.from(e)},a=(e,t)=>{let n=e.target,r=i();sP(r.indexOf(n),r,t)},o=null,s=!0,c=!1,l=e=>{let t=n.value;if(!t)return;let i=r.value,a=e.offsetTop-t.offsetTop,o=eF(a,0,1/0);(t.scrollTop>a||Math.abs(t.scrollTop-a)>(i?.clientHeight||200))&&i&&(i.scrollTo({top:o,behavior:s?void 0:`smooth`}),s=!1)},u=e=>{if(!t.scrollToActive||c)return;let n=o===null;o=e.detail,n&&Fn(()=>{o&&(l(o),o=null,c=!0)})};return(t,r)=>(V(),H(`div`,ao({ref_key:`root`,ref:n,role:`listbox`,class:`smed-data-list`,onKeydown:[r[0]||=ec(Qs(e=>a(e,-1),[`prevent`]),[`up`]),r[1]||=ec(Qs(e=>a(e,1),[`prevent`]),[`down`])]},{[ce(M(zH))]:Qs(u,[`stop`])}),[e.loading?(V(),H(`p`,HH,[G(M(hN),{name:`@smed.spinner`,size:32})])):R(t.$slots,`default`,{},()=>[W(`div`,UH,[R(t.$slots,`emptyContent`,{},()=>[r[2]||=eo(` ÐиÑего не найдено `,-1)],!0)])],!0,1)],16))}}),[[`__scopeId`,`data-v-25134800`]]),GH=Z(L({__name:`DataOption`,props:z({active:{type:Boolean},disabled:{type:Boolean},hideIcon:{type:Boolean},is:{}},RH),setup(e){let t=e,n=aV(),r=q(()=>t.is===`label`?n:void 0);return(t,n)=>qn((V(),U(mi(e.is),{type:`button`,role:`option`,disabled:e.disabled,"data-disabled":e.disabled,"data-active":e.active,class:k(t.$style.option),for:r.value},{default:P(n=>[R(t.$slots,`default`,ao(n,{id:r.value,active:e.active,disabled:e.disabled})),!e.hideIcon&&e.active?(V(),U(M(hN),{key:0,name:`@smed.check`,size:`sm`,class:k(t.$style.icon)},null,8,[`class`])):K(``,!0)]),_:3},8,[`disabled`,`data-disabled`,`data-active`,`class`,`for`])),[[M(VH),e.active]])}}),[[`__cssModules`,{$style:{option:`_option_1p65d_1`,icon:`_icon_1p65d_55`}}]]),KH=Symbol(),qH=L({__name:`ScrollbarThumb`,props:{direction:{default:`vertical`}},setup(e){let t=e,{direction:n}=N(t),r=j(null),i=F(KH,IH),a=F(RM,IH),o=F(HM,!1),s=q(()=>a&&a.value||(o?null:document.documentElement)),c=q(()=>a&&a.value||window),l=()=>{let e=s.value;if(!e)return 0;let{clientHeight:t,scrollHeight:r,clientWidth:i,scrollWidth:a}=e;return n.value===`vertical`?Math.ceil(t/r*100)/100:Math.ceil(i/a*100)/100},u=()=>{let e=s.value;if(!e)return 0;let{scrollTop:t,scrollHeight:r,clientHeight:i,scrollLeft:a,scrollWidth:o,clientWidth:c}=e;return n.value===`vertical`?t/(r-i):a/(o-c)},d=()=>{let e=r.value;if(!e)return;let n=i.value||e.parentElement,a=l()*100;if(t.direction===`vertical`){e.style.height=`${a}%`;let t=n?.offsetHeight||0,r=t?e.offsetHeight/t:0;e.style.top=`${u()*(1-r)*100}%`}else{e.style.width=`${a}%`;let t=n?.offsetWidth||0,r=t?e.offsetWidth/t:0;e.style.left=`${u()*(1-r)*100}%`}};function f(e){let t=!1;return function(...n){t||(t=!0,requestAnimationFrame(()=>{e(...n),t=!1}))}}let p=f(d),m=({clientY:e,clientX:t},n,a)=>{let o=s.value;if(!r.value||!i.value||!o)return[0,0];let{offsetHeight:c,offsetWidth:l}=r.value,{top:u,left:d,width:f,height:p}=i.value.getBoundingClientRect(),m=o.scrollHeight-p,h=o.scrollWidth-f,g=(e-u-c*n)/(p-c),v=(t-d-l*a)/(f-l);return[m*g,h*v]},h=0,g=0,v=({clientY:e},{top:t,height:n})=>(e-t)/n,y=({clientX:e},{left:t,width:n})=>(e-t)/n,b=()=>{document.removeEventListener(`mousemove`,x)},x=e=>{let[r,i]=m(e,h,g),o=a&&a.value;if(!o){let{scrollX:e,scrollY:t}=window;window.scrollTo(n.value===`vertical`?e:i,n.value===`vertical`?r:t);return}t.direction===`vertical`?o.scrollTop=r:o.scrollLeft=i},S=e=>{if(e.preventDefault(),e.stopPropagation(),!r.value)return;let t=r.value.getBoundingClientRect();h=v(e,t),g=y(e,t),document.removeEventListener(`mousemove`,x),document.removeEventListener(`mouseup`,b),document.addEventListener(`mousemove`,x),document.addEventListener(`mouseup`,b)},C=e=>{e.preventDefault();let r=a&&a.value,[i,o]=m(e,.5,.5);if(!r){let{scrollX:e,scrollY:t}=window;window.scrollTo(n.value===`vertical`?e:o,n.value===`vertical`?i:t);return}t.direction===`vertical`?r.scrollTop=i:r.scrollLeft=o},w=()=>{p(),c.value.addEventListener(`scroll`,p),r.value?.addEventListener(`mousedown`,S),i.value?.addEventListener(`mousedown`,C)};return ii(()=>{c.value.removeEventListener(`scroll`,p),r.value?.removeEventListener(`mousedown`,S),i.value?.removeEventListener(`mousedown`,C),document.removeEventListener(`mousemove`,x),document.removeEventListener(`mouseup`,b)}),I([i,r],(e,t)=>{e&&t&&w()},{immediate:!0}),(e,t)=>qn((V(),H(`div`,{ref_key:`thumbRef`,ref:r},null,512)),[[M(xF),d,`throttle`]])}}),JH=L({__name:`ScrollbarWrapper`,setup(e){let t=j(null);return Yn(KH,t),(e,n)=>(V(),H(`div`,{ref_key:`wrapper`,ref:t},[R(e.$slots,`default`)],512))}}
45),YH=Z(L({name:`ScrollbarControllers`,__name:`ScrollbarControllers`,setup(e){let t=F(RM,IH),n=F(HM,!1),r=j(!1),i=j(!1),a=q(()=>t.value||(n?null:document.documentElement)),o=()=>{let e=a.value;if(!e)return;let{clientHeight:t,scrollHeight:n,clientWidth:o,scrollWidth:s}=e;r.value=Math.ceil(t/n*100)<100,i.value=Math.ceil(o/s*100)<100};return I(a,(e,t,n)=>{if(!e)return;let r=new ResizeObserver(o);r.observe(e);let i=e.lastElementChild;i&&r.observe(i);let a=i?.lastElementChild;a&&r.observe(a),o(),n(()=>r.disconnect())},{immediate:!0}),(e,t)=>(V(),H(`div`,{class:k(e.$style.root)},[G(Uo,{name:`fade`},{default:P(()=>[r.value?(V(),U(JH,{key:0,class:k([e.$style.bar,e.$style.bar_vertical,i.value&&e.$style.bar_hashorizontal])},{default:P(()=>[G(qH,{direction:`vertical`,class:k(e.$style.thumb)},null,8,[`class`])]),_:1},8,[`class`])):K(``,!0)]),_:1}),G(Uo,{name:`fade`},{default:P(()=>[i.value?(V(),U(JH,{key:0,class:k([e.$style.bar,e.$style.bar_horizontal,r.value&&e.$style.bar_hasvertical])},{default:P(()=>[G(qH,{direction:`horizontal`,class:k(e.$style.thumb)},null,8,[`class`])]),_:1},8,[`class`])):K(``,!0)]),_:1})],2))}}),[[`__cssModules`,{$style:{root:`_root_1s6b8_1`,bar:`_bar_1s6b8_17`,bar_vertical:`_bar_vertical_1s6b8_23`,bar_horizontal:`_bar_horizontal_1s6b8_27`,bar_hashorizontal:`_bar_hashorizontal_1s6b8_31`,bar_hasvertical:`_bar_hasvertical_1s6b8_34`,thumb:`_thumb_1s6b8_38`}}]]),XH={dataAutomationId:`smed-scrollbar`},ZH=[`data-automation-id`,`data-native-hidden`],QH=[`data-delegated`],$H=L({name:`Scrollbar`,__name:`Scrollbar`,props:z({dataAutomationId:{},hideControls:{type:Boolean}},XH),setup(e,{expose:t}){let{hideControls:n}=N(e),r=j(null),i=j(null),a=ZV(),o=q(()=>!a||n.value),s=q(()=>i.value||r.value);Yn(RM,s);let c=e=>{i.value=e.detail};return t({native:s}),(t,s)=>{let l=fi(`ClientOnly`);return V(),H(`div`,ao({ref_key:`scrollbarRef`,ref:r,class:`smed-scrollbar`,"data-automation-id":e.dataAutomationId,"data-native-hidden":o.value},{[ce(M(EB))]:Qs(c,[`stop`])}),[G(l,null,{default:P(()=>[!M(a)&&!M(n)?(V(),U(M(YH),{key:0})):K(``,!0)]),_:1}),W(`div`,{class:`smed-scrollbar__content`,"data-delegated":!!i.value},[R(t.$slots,`default`)],8,QH)],16,ZH)}}}),eU={modelValue:!1,canOpen:!0,maxHeight:400,align:`right`,direction:`bottom`,minHeight:80,customDropdownStyles:fH},tU=L({__name:`DropdownProvider`,setup(e){return Yn(MM,!1),(e,t)=>R(e.$slots,`default`)}}),nU=8,rU=Z(L({name:`DropdownHost`,__name:`DropdownHost`,props:z({modelValue:{type:Boolean},canOpen:{type:Boolean},minHeight:{},maxHeight:{},maxWidth:{},minWidth:{},align:{},direction:{},customDropdownStyles:{}},eU),emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,i=j(!!n.modelValue),{modelValue:a,canOpen:o,maxHeight:s,maxWidth:c,minHeight:l,direction:u,minWidth:d,align:f,customDropdownStyles:p}=N(n),m=F(CM,IH),h=F(RM,IH),g=F(wM,IH),v=F(TM,j([])),y=j(null),b=j(null),x=j(null),S=j(null),C=j(null),w=j(null),T=j(null),E=j(null),D=j(null),ee=j(null),te=j(!1),ne=q(()=>g.value||y.value||D.value||null),re=q(()=>ee.value?.$el),ie=q(()=>h.value||window),ae=AV(ne,re).insideZone;I(o,(e,t)=>{t&&!e&&(r(`update:modelValue`,!1),i.value=!1)});let oe=()=>{let e=m.value;return e?e.getBoundingClientRect():{left:0,top:document.body.clientHeight,width:document.body.clientWidth}},O=q(()=>{let e=c&&c.value,t=d&&d.value,n=b.value;return{"max-width":e?`${e}px`:null,"min-width":t?`${t}px`:null,"max-height":n?`${n}px`:null,"--smed-dropdown-host-max-height":n?`${n}px`:null,top:x.value,bottom:S.value,left:C.value,right:w.value,width:T.value}}),se=q(()=>{let e=p.value,t=O.value;return{...e,...t}}),le=e=>{o.value&&(e?.stopPropagation(),e?.preventDefault(),r(`update:modelValue`,!i.value),i.value=!i.value)},ue=e=>{o.value&&e&&(e.stopPropagation(),e.preventDefault()),i.value&&le()},de=e=>{e||ue()},fe=e=>{y.value=e.detail};I(ae,de),I(ne,(e,t,n)=>{n(()=>{e?.removeEventListener(`click`,le)}),e?.addEventListener(`click`,le)},{immediate:!0});let pe=j(null),me=e=>{let t=window.innerHeight,n=e.top-nU,r=t-e.bottom-nU,i=re.value.scrollHeight,a=Math.max(Math.min(i,s.value||400),l.value||80),o=n>=a,c=r>=a;return pe.value===`top`&&o?`top`:pe.value===`bottom`&&c?`bottom`:u.value===`top`&&o?`top`:u.value===`bottom`&&c||r>=n?`bottom`:`top`},he=()=>{if(!ne.value||!re.value)return;let e=ne.value.getBoundingClientRect(),t=oe();_e(e,t),ve(e,t),ye(e)},_e=(e,t)=>
45{let n=window.innerHeight,r=Math.min(s.value,n-16),i=nU,a=e.top-i,o=n-e.bottom-i,c=me(e);pe.value=c,c===`top`?(b.value=Math.min(r,a),x.value=`auto`,S.value=`${t.bottom-e.top+nU}px`):(b.value=Math.min(r,o),x.value=`${e.bottom-t.top+nU}px`,S.value=`auto`)},ve=(e,t)=>{let n=Math.ceil(e.left-t.left),r=Math.floor(t.right-e.right),i=Math.max(e.width,d.value??0),a=window.innerWidth,o=e.left+i+nU<=a,s=e.right-i-nU>=0,c=f.value===`left`;(o===s?c:o)?(C.value=`${n}px`,w.value=`auto`):(C.value=`auto`,w.value=`${r}px`)},ye=e=>{T.value=`${e.width}px`},be=()=>{v.value.forEach(e=>{e.addEventListener(`scroll`,he)})},xe=()=>{v.value.forEach(e=>{e.removeEventListener(`scroll`,he)})};ti(()=>{i.value&&o.value&&he()}),ri(()=>{i.value&&o.value&&he()}),I(te,(e,t)=>{t&&!e&&ue()}),I(i,e=>{o.value&&(e?(pe.value=null,b.value=null,ie.value.addEventListener(`scroll`,he),be(),window.addEventListener(`resize`,he)):(ie.value.removeEventListener(`scroll`,he),xe(),window.removeEventListener(`resize`,he)))});let Se=null;ii(()=>{ie.value.removeEventListener(`scroll`,he),xe(),window.removeEventListener(`resize`,he),Se&&clearTimeout(Se)});let Ce=e=>{o.value&&(e.stopPropagation(),e.preventDefault(),i.value||=(r(`update:modelValue`,!i.value),!i.value),Se=setTimeout(()=>{let e=aP(E.value,!1,re.value);Se=null,e&&e.id!==`smed_autoUnfocusableBottom`&&e.id!==`smed_autoUnfocusableTop`&&tP(e)}))},we=()=>{Ee(!0)},Te=()=>{Ee(!1)},Ee=e=>{let t=ne.value,{ownerDocument:n}=t,r=n?n.body:t,i=aP(t,e,r);for(;i!==null&&t.contains(i);)i=aP(i,e,r);i!==null&&tP(i)};return I(a,e=>{i.value=e},{immediate:!0}),I([ne,re],he,{immediate:!0}),LV(ne,([e])=>{te.value=e.isIntersecting}),(e,t)=>(V(),H(`div`,{ref_key:`host`,ref:D,class:k(e.$style.container),onKeydown:[ec(ue,[`esc`]),ec(Ce,[`down`])]},[W(`div`,ao({class:e.$style.content},{[ce(M(TB))]:Qs(fe,[`stop`])}),[R(e.$slots,`default`)],16),M(m)?(V(),U(M(cV),{key:0,"append-to":`#smed_dropdown-host`},{default:P(()=>[M(o)?(V(),U(Uo,{key:0,name:`fade`},{default:P(()=>[i.value?qn((V(),U(M($H),{key:0,ref_key:`dropdownRef`,ref:ee,"data-automation-id":`smed-dropdown__scrollbar`,class:k([e.$style.dropdown,e.$style[`dropdown_`+M(f)]]),style:ge(se.value)},{default:P(()=>[W(`div`,{id:`smed_autoUnfocusableTop`,ref_key:`topFocusableElement`,ref:E,tabindex:`0`,onFocus:we},null,544),G(tU,null,{default:P(()=>[R(e.$slots,`dropdown`)]),_:3}),W(`div`,{id:`smed_autoUnfocusableBottom`,tabindex:`0`,onFocus:Te},null,32)]),_:3},8,[`class`,`style`])),[[M(_F),`all`]]):K(``,!0)]),_:3})):K(``,!0)]),_:3})):K(``,!0)],34))}}),[[`__cssModules`,{$style:{container:`_container_zhy4y_1`,content:`_content_zhy4y_6`,dropdown:`_dropdown_zhy4y_13`}}]]),iU={..._H,editable:!1,dropdownProps:fH,items:NH,identityMatcher:PH},aU=L({name:`BaseSelect`,__name:`BaseSelect`,props:z({modelValue:{},modelModifiers:{},type:{},size:{},disabled:{type:Boolean},label:{},description:{},editable:{type:Boolean},hasCleaner:{type:Boolean},invalid:{type:Boolean},isSuccess:{type:Boolean},placeholder:{},autocomplete:{},name:{},decoratorPostfix:{},decoratorPostfixColorClass:{},inputmode:{},readonly:{type:Boolean},required:{type:Boolean},id:{},dataAutomationId:{},pseudoHovered:{type:Boolean},pseudoFocused:{type:Boolean},stringify:{type:Function},items:{},dropdownProps:{},identityMatcher:{type:Function}},iU),emits:[`update:modelValue`,`focused`],setup(e,{expose:t,emit:n}){let r=e,i=n,{modelValue:a,disabled:o,invalid:s}=N(r),c=j(!1),l=j(null),u=FV(s),d=PV(o);I(a,()=>{c.value&&=!1});let f=e=>{i(`update:modelValue`,e),l.value?.focus()},p=e=>{c.value&&e.preventDefault()};return t({focus:()=>l.value?.focus(),blur:()=>l.value?.blur()}),(t,n)=>(V(),U(M(rU),ao(e.dropdownProps,{modelValue:c.value,"onUpdate:modelValue":n[0]||=e=>c.value=e,class:`smed-base-select`,"can-open":!M(d),onKeydown:ec(p,[`enter`])}),{dropdown:P(()=>[R(t.$slots,`dropdown`,{items:e.items},()=>[G(M(WH),{loading:e.items===null},yi({default:P(()=>[(V(!0),H(B,null,vi(e.items,(n,r)=>(V(),U(M(GH),{key:r,active:e.identityMatcher(M(a),n),onClick:e=>f(n)},{default:P(({active:e})=>[R(t.$slots,`itemContent`,{active:e,item:n},()=>[eo(A(n),1)])]),_:2},1032,[`active`,`onClick`]))),128)),e.items&&e.items.length>0&&t.$slots.action?(V(),U(M(GH),{key:0},{default:P(()=>[R(t.$slots,`action`)]),_:3})):K(``,!0)]),_:2},[t.$slots.emptyContent?{name:`emptyContent`,fn:P(()=>[R(t.$slots,`emptyContent`)]),key:`0`}:void 0]),1032,[`loading`])])]),default:P(()=>[G(M(MH),ao(r,{ref_key:`baseInputExposed`,ref:l,"model-value":M(a),disabled:M(d),invalid:M(u),"pseudo-focused":c.value,"onUpdate:modelValue":f}),yi({right:P(()=>[R(t.$slots,`right`),G(M(hN),{name:`@smed.arrow-down`,size:`sm`,rotate:c.value,class:k(!M(d)&&`smed-base-select__icon`)},null,8,[`rotate`,`class`])]),_:2},[t.$slots.left?{name:`left`,fn:P(()=>[R(t.$slots,`left`)]),key:`0`}:void 0,t.$slots.valueContent?{name:`valueContent`,fn:P(e=>[R(t.$slots,`valueContent`,xe(Qa(e)))]),key:`1`}:void 0,t.$slots.label?{name:`label`,fn:P(()=>[R(t.$slots,`label`)]),key:`2`}:void 0,t.$slots.description?{name:`description`,fn:P(()=>[R(t.$slots,`description`)]),key:`3`}:void 0]),1040,[`model-value`,`disabled`,`invalid`,`pseudo-focused`])]),_:3},16,[`modelValue`,`can-open`]))}}),oU={opened:!1,duration:`0.2s`},sU=[`aria-expanded`],cU=L({name:`Expand`,__name:`Expand`,props:z({opened:{type:[Boolean,null]},duration:{},keepAlive:{type:Boolean}},oU),setup(e){us(e=>({v964704b0:e.duration}));let t=e,n=j(!!t.opened),r=q(()=>t.opened||n.value);function i(e){t.opened||e.target===e.currentTarget&&(n.value=!1)}return(t,a)=>(V(),H(`div`,{class:k([`smed-expand`,[e.opened&&`_opened`]]),"aria-expanded":r.value,onTransitionstart:a[0]||=e=>n.value=!0,onTransitionend:i},[W(`div`,null,[e.keepAlive||r.value?R(t.$slots,`default`,{},void 0,void 0,0):K(``,!0)])],42,sU))}}),lU=L({name:`AutoHeight`,__name:`AutoHeight`,props:z({duration:{},timingFunction:{}},{duration:`0.4s`,timingFunction:`ease-in-out`}),setup(e){us(e=>({v7f71fc1c:e.duration,v1e1cf26c:e.timingFunction}));let t=j(null),n=j(null),r=null,i=0;function a(e){e.target===e.currentTarget&&e.propertyName===`height`&&t.value&&(t.value.style.height=`auto`)}return ti(()=>{n.value&&t.value&&(i=n.value.offsetHeight,t.value.style.height=`auto`,r=new ResizeObserver(()=>{let e=t.value,r=n.value.offsetHeight;if(i===r)return;let a=e.style.height===`auto`?i:e.getBoundingClientRect().height;i=r,e.style.transition=`none`,e.style.height=`${a}
45px`,e.offsetHeight,e.style.transition=``,e.style.height=`${r}px`}),r.observe(n.value))}),ii(()=>r?.disconnect()),(e,r)=>(V(),H(`div`,{ref_key:`containerRef`,ref:t,class:`smed-auto-height`,onTransitionend:a},[W(`div`,{ref_key:`contentRef`,ref:n},[R(e.$slots,`default`)],512)],544))}}),uU={error:null},dU=[`data-center`],fU=`0.4s`,pU=Z(L({name:`FieldError`,__name:`FieldError`,props:z({error:{},center:{type:Boolean}},uU),setup(e){let{error:t}=N(e),n=F(JM,null),r=q(()=>{let e=t.value;if(typeof e==`string`||e===null)return e;let r=Object.keys(e);if(r.length===0)return null;let i=r[0];return n&&n[i]||e[i]});return(t,n)=>(V(),U(M(cU),{opened:!!r.value,duration:fU},{default:P(()=>[G(M(lU),{duration:fU},{default:P(()=>[W(`p`,{class:k([`smed-text_body-xs`,t.$style.error]),"data-center":e.center},A(r.value),11,dU)]),_:1})]),_:1},8,[`opened`]))}}),[[`__cssModules`,{$style:{error:`_error_13evn_1`}}]]),mU=Z(L({name:`Control`,__name:`Control`,props:z({control:{},showErrors:{type:Boolean},validationErrors:{}},{showErrors:!0,validationErrors:null}),setup(e){let t=e;NV({markAsTouch:t.control.configuration.validateOn===`blur`?t.control.markAsTouch:()=>{},invalid:t.control.invalid,disabled:t.control.disabled}),t.validationErrors&&Yn(JM,t.validationErrors);let n=qt({value:t.control.value}),r=t.control.invalid,i=t.control.error,a=t.control.disabled,o=t.control.valid;return(t,s)=>(V(),H(`div`,null,[R(t.$slots,`default`,{invalid:M(r),model:n,disabled:M(a),valid:M(o)}),e.showErrors?(V(),U(M(pU),{key:0,class:k(M(r)&&t.$style.error),error:M(i)},null,8,[`class`,`error`])):K(``,!0)]))}}),[[`__cssModules`,{$style:{error:`_error_dnfat_1`}}]]);function hU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function gU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?hU(Object(n),!0).forEach(function(t){_U(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hU(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _U(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vU(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Object.keys(e).reduce((n,r)=>(t.includes(r)||(n[r]=M(e[r])),n),{})}function yU(e){return typeof e==`function`}function bU(e){return Zt(e)||Qt(e)}function xU(e,t,n){let r=e,i=t.split(`.`);for(let e=0;e<i.length;e++){if(!r[i[e]])return n;r=r[i[e]]}return r}function SU(e,t,n){return q(()=>e.some(e=>xU(t,e,{[n]:!1})[n]))}function CU(e,t,n){return q(()=>e.reduce((e,r)=>{let i=xU(t,r,{[n]:!1})[n]||[];return e.concat(i)},[]))}function wU(e,t,n,r){return e.call(r,M(t),M(n),r)}function TU(e){return e.$valid===void 0?!e:!e.$valid}function EU(e,t,n,r,i,a,o){let{$lazy:s,$rewardEarly:c}=i,l=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],u=arguments.length>8?arguments[8]:void 0,d=arguments.length>9?arguments[9]:void 0,f=arguments.length>10?arguments[10]:void 0,p=j(!!r.value),m=j(0);return n.value=!1,{$invalid:p,$unwatch:I([t,r].concat(l,f),()=>{if(s&&!r.value||c&&!d.value&&!n.value)return;let i;try{i=wU(e,t,u,o)}catch(e){i=Promise.reject(e)}m.value++,n.value=!!m.value,p.value=!1,Promise.resolve(i).then(e=>{m.value--,n.value=!!m.value,a.value=e,p.value=TU(e)}).catch(e=>{m.value--,n.value=!!m.value,a.value=e,p.value=!0})},{immediate:!0,deep:typeof t==`object`})}}function DU(e,t,n,r,i,a,o,s){let{$lazy:c,$rewardEarly:l}=r;return{$unwatch:()=>({}),$invalid:q(()=>{if(c&&!n.value||l&&!s.value)return!1;let r=!0;try{let n=wU(e,t,o,a);i.value=n,r=TU(n)}catch(e){i.value=e}return r})}}function OU(e,t,n,r,i,a,o,s,c,l,u){let d=j(!1),f=e.$params||{},p=j(null),m,h;e.$async?{$invalid:m,$unwatch:h}=EU(e.$validator,t,d,n,r,p,i,e.$watchTargets,c,l,u):{$invalid:m,$unwatch:h}=DU(e.$validator,t,n,r,p,i,c,l);let g=e.$message;return{$message:yU(g)?q(()=>g(vU({$pending:d,$invalid:m,$params:vU(f),$model:t,$response:p,$validator:a,$propertyPath:s,$property:o}))):g||``,$params:f,$pending:d,$invalid:m,$response:p,$unwatch:h}}function kU(){let e=M(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),t=Object.keys(e),n={},r={},i={},a=null;return t.forEach(t=>{let o=e[t];switch(!0){case yU(o.$validator):n[t]=o;break;case yU(o):n[t]={$validator:o};break;case t===`$validationGroups`:a=o;break;case t.startsWith(`$`):i[t]=o;break;default:r[t]=o}}),{rules:n,nestedValidators:r,config:i,validationGroups:a}}var AU=`__root`;function jU(e,t,n,r,i,a,o,s,c){let l=Object.keys(e),u=r.get(i,e),d=j(!1),f=j(!1),p=j(0);if(u){if(!u.$partial)return u;u.$unwatch(),d.value=u.$dirty.value}let m={$dirty:d,$path:i,$touch:()=>{d.value||=!0},$reset:()=>{d.value&&=!1},$commit:()=>{}};return l.length?(l.forEach(r=>{m[r]=OU(e[r],t,m.$dirty,a,o,r,n,i,c,f,p)}),m.$externalResults=q(()=>s.value?[].concat(s.value).map((e,t)=>({$propertyPath:i,$property:n,$validator:`$externalResults`,$uid:`${i}-externalResult-${t}`,$message:e,$params:{},$response:null,$pending:!1}
vendor: 4,132 bytes, line 45
45)):[]),m.$invalid=q(()=>{let e=l.some(e=>M(m[e].$invalid));return f.value=e,!!m.$externalResults.value.length||e}),m.$pending=q(()=>l.some(e=>M(m[e].$pending))),m.$error=q(()=>m.$dirty.value?m.$pending.value||m.$invalid.value:!1),m.$silentErrors=q(()=>l.filter(e=>M(m[e].$invalid)).map(e=>{let t=m[e];return qt({$propertyPath:i,$property:n,$validator:e,$uid:`${i}-${e}`,$message:t.$message,$params:t.$params,$response:t.$response,$pending:t.$pending})}).concat(m.$externalResults.value)),m.$errors=q(()=>m.$dirty.value?m.$silentErrors.value:[]),m.$unwatch=()=>l.forEach(e=>{m[e].$unwatch()}),m.$commit=()=>{f.value=!0,p.value=Date.now()},r.set(i,e,m),m):(u&&r.set(i,e,m),m)}function MU(e,t,n,r,i,a,o){let s=Object.keys(e);return s.length?s.reduce((s,c)=>(s[c]=PU({validations:e[c],state:t,key:c,parentKey:n,resultsCache:r,globalConfig:i,instance:a,externalResults:o}),s),{}):{}}function NU(e,t,n){let r=q(()=>[t,n].filter(e=>e).reduce((e,t)=>e.concat(Object.values(M(t))),[])),i=q({get(){return e.$dirty.value||(r.value.length?r.value.every(e=>e.$dirty):!1)},set(t){e.$dirty.value=t}}),a=q(()=>{let t=M(e.$silentErrors)||[],n=r.value.filter(e=>(M(e).$silentErrors||[]).length).reduce((e,t)=>e.concat(...t.$silentErrors),[]);return t.concat(n)}),o=q(()=>{let t=M(e.$errors)||[],n=r.value.filter(e=>(M(e).$errors||[]).length).reduce((e,t)=>e.concat(...t.$errors),[]);return t.concat(n)}),s=q(()=>r.value.some(e=>e.$invalid)||M(e.$invalid)||!1),c=q(()=>r.value.some(e=>M(e.$pending))||M(e.$pending)||!1),l=q(()=>r.value.some(e=>e.$dirty)||r.value.some(e=>e.$anyDirty)||i.value),u=q(()=>i.value?c.value||s.value:!1),d=()=>{e.$touch(),r.value.forEach(e=>{e.$touch()})};return r.value.length&&r.value.every(e=>e.$dirty)&&d(),{$dirty:i,$errors:o,$invalid:s,$anyDirty:l,$error:u,$pending:c,$touch:d,$reset:()=>{e.$reset(),r.value.forEach(e=>{e.$reset()})},$silentErrors:a,$commit:()=>{e.$commit(),r.value.forEach(e=>{e.$commit()})}}}function PU(e){let{validations:t,state:n,key:r,parentKey:i,childResults:a,resultsCache:o,globalConfig:s={},instance:c,externalResults:l}=e,u=i?`${i}.${r}`:r,{rules:d,nestedValidators:f,config:p,validationGroups:m}=kU(t),h=gU(gU({},s),p),g=r?q(()=>{let e=M(n);return e?M(e[r]):void 0}):n,v=gU({},M(l)||{}),y=q(()=>{let e=M(l);return r?e?M(e[r]):void 0:e}),b=jU(d,g,r,o,u,h,c,y,n),x=MU(f,g,u,o,h,c,y),S={};m&&Object.entries(m).forEach(e=>{let[t,n]=e;S[t]={$invalid:SU(n,x,`$invalid`),$error:SU(n,x,`$error`),$pending:SU(n,x,`$pending`),$errors:CU(n,x,`$errors`),$silentErrors:CU(n,x,`$silentErrors`)}});let{$dirty:C,$errors:w,$invalid:T,$anyDirty:E,$error:D,$pending:ee,$touch:te,$reset:ne,$silentErrors:re,$commit:ie}=NU(b,x,a),ae=r?q({get:()=>M(g),set:e=>{C.value=!0;let t=M(n),i=M(l);i&&(i[r]=v[r]),on(t[r])?t[r].value=e:t[r]=e}}):null;r&&h.$autoDirty&&I(g,()=>{C.value||te();let e=M(l);e&&(e[r]=v[r])},{flush:`sync`});async function oe(){return te(),h.$rewardEarly&&(ie(),await Fn()),await Fn(),new Promise(e=>{if(!ee.value)return e(!T.value);let t=I(ee,()=>{e(!T.value),t()})})}function O(e){return(a.value||{})[e]}function se(){on(l)?l.value=v:Object.keys(v).length===0?Object.keys(l).forEach(e=>{delete l[e]}):Object.assign(l,v)}return qt(gU(gU(gU({},b),{},{$model:ae,$dirty:C,$error:D,$errors:w,$invalid:T,$anyDirty:E,$pending:ee,$touch:te,$reset:ne,$path:u||AU,$silentErrors:re,$validate:oe,$commit:ie},a&&{$getResultsForChild:O,$clearExternalResults:se,$validationGroups:S}),x))}var FU=class{constructor(){this.storage=new Map}set(e,t,n){this.storage.set(e,{rules:t,result:n})}checkRulesValidity(e,t,n){let r=Object.keys(n),i=Object.keys(t);return i.length!==r.length||!i.every(e=>r.includes(e))?!1:i.every(e=>!t[e].$params||Object.keys(t[e].$params).every(r=>M(n[e].$params[r])===M(t[e].$params[r])))}get(e,t){let n=this.storage.get(e);if(!n)return;let{rules:r,result:i}=n,a=this.checkRulesValidity(e,t,r),o=i.$unwatch?i.$unwatch:()=>({});return a?i:{$dirty:i.$dirty,$partial:!0,$unwatch:o}}},IU={COLLECT_ALL:!0,COLLECT_NONE:!1},LU=Symbol(`vuelidate#injectChildResults`),RU=Symbol(`vuelidate#removeChildResults`);function zU(e){let{$scope:t,instance:n}=e,r={},i=j([]),a=q(()=>i.value.reduce((e,t)=>
45(e[t]=M(r[t]),e),{}));function o(e,n){let{$registerAs:a,$scope:o,$stopPropagation:s}=n;s||t===IU.COLLECT_NONE||o===IU.COLLECT_NONE||t!==IU.COLLECT_ALL&&t!==o||(r[a]=e,i.value.push(a))}n.__vuelidateInjectInstances=[].concat(n.__vuelidateInjectInstances||[],o);function s(e){i.value=i.value.filter(t=>t!==e),delete r[e]}n.__vuelidateRemoveInstances=[].concat(n.__vuelidateRemoveInstances||[],s);let c=F(LU,[]);Yn(LU,n.__vuelidateInjectInstances);let l=F(RU,[]);return Yn(RU,n.__vuelidateRemoveInstances),{childResults:a,sendValidationResultsToParent:c,removeValidationResultsFromParent:l}}function BU(e){return new Proxy(e,{get(e,t){return typeof e[t]==`object`?BU(e[t]):q(()=>e[t])}})}var VU=0;function HU(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};arguments.length===1&&(n=e,e=void 0,t=void 0);let{$registerAs:r,$scope:i=IU.COLLECT_ALL,$stopPropagation:a,$externalResults:o,currentVueInstance:s}=n,c=s||fo()?.proxy,l=c?c.$options:{};r||=(VU+=1,`_vuelidate_${VU}`);let u=j({}),d=new FU,{childResults:f,sendValidationResultsToParent:p,removeValidationResultsFromParent:m}=c?zU({$scope:i,instance:c}):{childResults:j({})};if(!e&&l.validations){let e=l.validations;t=j({}),ei(()=>{t.value=c,I(()=>yU(e)?e.call(t.value,new BU(t.value)):e,e=>{u.value=PU({validations:e,state:t,childResults:f,resultsCache:d,globalConfig:n,instance:c,externalResults:o||c.vuelidateExternalResults})},{immediate:!0})}),n=l.validationsConfig||n}else I(on(e)||bU(e)?e:qt(e||{}),e=>{u.value=PU({validations:e,state:t,childResults:f,resultsCache:d,globalConfig:n,instance:c??{},externalResults:o})},{immediate:!0});return c&&(p.forEach(e=>e(u,{$registerAs:r,$scope:i,$stopPropagation:a})),ii(()=>m.forEach(e=>e(r)))),q(()=>gU(gU({},M(u.value)),f.value))}function UU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function WU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?UU(Object(n),!0).forEach(function(t){GU(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UU(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function GU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KU(e){return typeof e==`function`}function qU(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function JU(e){return KU(e.$validator)?WU({},e):{$validator:e}}function YU(e){return typeof e==`object`?e.$valid:e}function XU(e){return e.$validator||e}function ZU(e,t){if(!qU(e))throw Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof e}`);if(!qU(t)&&!KU(t))throw Error(`[@vuelidate/validators]: Validator must be a function or object with $validator parameter`);let n=JU(t);return n.$params=WU(WU({},n.$params||{}),e),n}function QU(e,t){if(!KU(e)&&typeof M(e)!=`string`)throw Error(`[@vuelidate/validators]: First parameter to "withMessage" should be string or a function returning a string, provided ${typeof e}`);if(!qU(t)&&!KU(t))throw Error(`[@vuelidate/validators]: Validator must be a function or object with $validator parameter`);let n=JU(t);return n.$message=e,n}function $U(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return WU(WU({},JU(e)),{},{$async:!0,$watchTargets:t})}function eW(e){return{$validator(t){var n=[...arguments].slice(1);return M(t).reduce((t,r,i)=>{let a=Object.entries(r).reduce((t,a)=>{let[o,s]=a,c=e[o]||{},l=Object.entries(c).reduce((e,t)=>{let[a,c]=t,l=XU(c).call(this,s,r,i,...n),u=YU(l);if(e.$data[a]=l,e.$data.$invalid=!u||!!e.$data.$invalid,e.$data.$error=e.$data.$invalid,!u){let t=c.$message||``,n=c.$params||{};typeof t==`function`&&(t=t({$pending:!1,$invalid:!u,$params:n,$model:s,$response:l})),e.$errors.push({$property:o,$message:t,$params:n,$response:l,$model:s,$pending:!1,$validator:a})}return{$valid:e.$valid&&u,$data:e.$data,$errors:e.$errors}},{$valid:!0,$data:{},$errors:[]});return t.$data[o]=l.$data,t.$errors[o]=l.$errors,{$valid:t.$valid&&l.$valid,$data:t.$data,$errors:t.$errors}},{$valid:!0,$data:{},$errors:{}});return{$valid:t.$valid&&a.$valid,$data:t.$data.concat(a.$data),$errors:t.$errors.concat(a.$errors)}},{$valid:!0,$data:[],$errors:[]})},$message:e=>{let{$response:t}=e;return t?t.$errors.map(e=>Object.values(e).map(e=>e.map(e=>e.$message)).reduce((e,t)=>
45e.concat(t),[])):[]}}}var tW=e=>{if(e=M(e),Array.isArray(e))return!!e.length;if(e==null)return!1;if(e===!1)return!0;if(e instanceof Date)return!isNaN(e.getTime());if(typeof e==`object`){for(let t in e)return!0;return!1}return!!String(e).length},nW=e=>(e=M(e),Array.isArray(e)?e.length:typeof e==`object`?Object.keys(e).length:String(e).length);function rW(){var e=[...arguments];return t=>(t=M(t),!tW(t)||e.every(e=>(e.lastIndex=0,e.test(t))))}var iW=Object.freeze({__proto__:null,forEach:eW,len:nW,normalizeValidatorObject:JU,regex:rW,req:tW,unwrap:M,unwrapNormalizedValidator:XU,unwrapValidatorResponse:YU,withAsync:$U,withMessage:QU,withParams:ZU}),aW={$validator:rW(/^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i),$message:`Value is not a valid email address`,$params:{type:`email`}};function oW(e){return t=>!tW(t)||nW(t)<=M(e)}function sW(e){return{$validator:oW(e),$message:e=>{let{$params:t}=e;return`The maximum length allowed is ${t.max}`},$params:{max:e,type:`maxLength`}}}function cW(e){return typeof e==`string`&&(e=e.trim()),tW(e)}var lW={$validator:cW,$message:`Value is required`,$params:{type:`required`}};function uW(e){return t=>!tW(t)||(!/\s/.test(t)||t instanceof Date)&&+t>=+M(e)}function dW(e){return{$validator:uW(e),$message:e=>{let{$params:t}=e;return`The minimum value allowed is ${t.min}`},$params:{min:e,type:`minValue`}}}function fW(e,t,n,r){let i=t.value,a=j(!1),o=j({}),s=q(()=>{let t=n.value[e].$errors;return a.value||t.length===0?{}:t.reduce((e,t)=>({...e,[t.$validator]:typeof t.$message==`string`?t.$message:t.$message.value}),{...o.value})}),c=q(()=>{let e=Object.keys(o.value);return e.length===0?null:{[e[0]]:o.value[e[0]]}}),l=q(()=>{let t=c.value,r=n.value[e].$errors[0];return a.value||!r&&!t?null:r?{[r.$validator]:typeof r.$message==`string`?r.$message:r.$message.value}:t}),u=q(()=>!a.value&&!!l.value),d=q(()=>!u.value),f=e=>{t.value=e},p=()=>{a.value||n.value[e].$touch()};return r.validateOn===`valueChange`&&I(t,()=>{p()}),{error:l,errors:s,value:t,setValue:f,invalid:u,valid:d,reset:()=>{f(i),n.value[e].$reset()},disabled:a,disable:()=>{a.value=!0},enable:()=>{a.value=!1},markAsTouch:p,setErrors:e=>{o.value=e},removeErrors:e=>{o.value=Object.keys(o.value).reduce((t,n)=>e.includes(n)?t:{...t,[n]:o.value[n]},{})},configuration:r}}function pW(e){let t=Object.keys(e).reduce((t,n)=>{let[r,i]=e[n];return{...t,[n]:i||{}}},{}),n=Object.keys(e).reduce((t,n)=>{let[r]=e[n];return{...t,[n]:j(r)}},{}),r=HU(t,n),i=Object.keys(n).reduce((t,i)=>{let a=e[i][2]||{validateOn:`blur`};return{...t,[i]:fW(i,n[i],r,a)}},{}),a=q(()=>Object.keys(i).some(e=>i[e].invalid.value)),o=q(()=>!a.value),s=q(()=>a.value?Object.keys(i).filter(e=>i[e].invalid.value).reduce((e,t)=>({...e,[t]:i[t].errors.value}),{}):{}),c=()=>
45{Object.keys(i).forEach(e=>i[e].markAsTouch())};return{invalid:a,valid:o,markAsTouch:c,errors:s,validate:()=>{c()},value:n,getCurrentValue:()=>Object.keys(n).reduce((e,t)=>({...e,[t]:n[t].value}),{}),...i}}var mW=iW.withMessage(`ÐаполниÑе поле`,lW);iW.withMessage(`ÐаполниÑе поле`,e=>e.length>0);var hW=iW.withMessage(`ÐаполниÑе поле`,e=>e===!0),gW=iW.withMessage(`ÐведиÑе коÑÑекÑнÑй адÑÐµÑ ÑлекÑÑонной поÑÑÑ`,aW),_W=e=>iW.withMessage(`ÐнаÑение должно бÑÑÑ Ð½Ðµ менÑÑе ${e}`,dW(e)),vW=e=>iW.withMessage(`Ðлина должна бÑÑÑ Ð½Ðµ болÑÑе ${e} Ñимволов`,sW(e)),yW=iW.withMessage(`ÐекоÑÑекÑнÑй Ð½Ð¾Ð¼ÐµÑ Ð¼Ð¾Ð±Ð¸Ð»Ñного ÑелеÑона`,oV);function bW(e){if(!e)return!0;let t=e.replace(/\D/g,``);if(t.length!==11)return!1;let n=t.slice(0,9),r=parseInt(n.slice(0,3),10),i=parseInt(n.slice(3,6),10),a=parseInt(n.slice(6),10);if(r<=1&&i<=1&&a<=998)return r===1&&i===1&&a>=1;let o=n.split(``).reduce((e,t,n)=>e+parseInt(t,10)*(9-n),0),s=parseInt(t.slice(9),10);return o<100?o===s:o===100||o===101?s===0:o%101===s||o%101==100&&s===0}iW.withMessage(`ÐекоÑÑекÑнÑй СÐÐÐС`,bW);var xW=()=>!1,SW=9999;function CW(e,t,n){return Number.isNaN(e)||e<=t?t:e>=n?n:Math.round(e)}var wW=class e{year;constructor(e){this.year=e}static isValidYear(e){return Number.isInteger(e)&&e>=0&&e<=9999}static isLeapYear(e){return e%4==0&&(e%100!=0||e%400==0)}static lengthBetween(e,t){return t.year-e.year}static normalizeYearPart(e){return CW(e,0,SW)}get formattedYear(){return String(this.year).padStart(4,`0`)}get isLeapYear(){return e.isLeapYear(this.year)}yearBefore({year:e}){return this.year<e}yearSame({year:e}){return this.year===e}yearSameOrBefore({year:e}){return this.year<=e}yearSameOrAfter({year:e}){return this.year>=e}yearAfter({year:e}){return this.year>e}append({year:t=0}){return new e(this.year+t)}toString(){return this.formattedYear}valueOf(){return this.year}toJSON(){return this.formattedYear}[Symbol.toPrimitive](e){return Date.prototype[Symbol.toPrimitive].call(this,e)}},TW=function(e){return e[e.January=0]=`January`,e[e.February=1]=`February`,e[e.March=2]=`March`,e[e.April=3]=`April`,e[e.May=4]=`May`,e[e.June=5]=`June`,e[e.July=6]=`July`,e[e.August=7]=`August`,e[e.September=8]=`September`,e[e.October=9]=`October`,e[e.November=10]=`November`,e[e.December=11]=`December`,e}({}),EW=class e extends wW{month;constructor(e,t){super(e),this.month=t}static isValidMonth(t,n){return wW.isValidYear(t)&&e.isValidMonthPart(n)}static getMonthDaysCount(e,t){switch(e){case 1:return t?29:28;case 3:case 5:case 8:case 10:return 30;default:return 31}}static currentLocal(){let t=new Date;return new e(t.getFullYear(),t.getMonth())}static currentUtc(){let t=new Date;return new e(t.getUTCFullYear(),t.getUTCMonth())}static lengthBetween(e,t){let n=e.month+e.year*12;return t.month+t.year*12-n}static normalizeMonthPart(e){return CW(e,0,11)}static isValidMonthPart(e){return Number.isInteger(e)&&e>=0&&e<=11}get formattedMonthPart(){return String(this.month+1).padStart(2,`0`)}get daysCount(){return e.getMonthDaysCount(this.month,this.isLeapYear)}monthBefore(e){return this.yearBefore(e)||this.yearSame(e)&&this.month<e.month}monthSameOrBefore(e){return this.yearBefore(e)||this.yearSame(e)&&this.month<=e.month}monthSame(e){return this.yearSame(e)&&this.month===e.month}monthSameOrAfter(e){return this.yearAfter(e)||this.yearSame(e)&&this.month>=e.month}monthAfter(e){return this.yearAfter(e)||this.yearSame(e)&&this.month>e.month}append({year:t=0,month:n=0}){let r=(this.year+t)*12+this.month+n;return new e(Math.floor(r/12),r%12)}toString(){return`${this.formattedMonthPart}.${this.formattedYear}`}valueOf(){return this.toLocalNativeDate().valueOf()}toJSON(){return`${super.toJSON()}-${this.formattedMonthPart}`}toLocalNativeDate(){return new Date(this.year,this.month)}toUtcNativeDate(){return new Date(Date.UTC(this.year,this.month))}},DW=`дд.мм.гггг`,OW=class e extends EW{day;constructor(e,t,n){super(e,t),this.day=n}static fromLocalNativeDate(t){return new e(t.getFullYear(),t.getMonth(),t.getDate())}static fromUtcNativeDate(t){return new e(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())}static isValidDay(e,t,n){return EW.isValidMonth(e,t)&&Number.isInteger(n)&&n>=1&&n<=EW.getMonthDaysCount(t,wW.isLeapYear(e))}static currentLocal(){let t=new Date,n=t.getFullYear(),r=t.getMonth(),i=t.getDate();return new e(n,r,i)}static currentUtc(){let t=new Date,n=t.getUTCFullYear(),r=t.getUTCMonth(),i=t.getUTCDate();return new e(n,r,i)}static normalizeOf(t,n,r){let i=wW.normalizeYearPart(t),a=EW.normalizeMonthPart(n),o=e.normalizeDayPart(r,a,t);return new e(i,a,o)}static lengthBetween(e,t){return Math.round(t.toLocalNativeDate().getTime()-e.toLocalNativeDate().getTime())/864e5}static parseRawDateString(e,t){return t===`DMY`?{day:parseInt(e.slice(0,2),10),month:parseInt(e.slice(3,5),10)-1,year:parseInt(e.slice(6,10),10)}:{day:parseInt(e.slice(8,10),10),month:parseInt(e.slice(5,7),10)-1,year:parseInt(e.slice(0,4),10)}}static normalizeParse(t,n=`DMY`){let{day:r,month:i,year:a}=e.parseRawDateString(t,n);return e.normalizeOf(a,i,r)}static jsonParse(t){let{day:n,month:r,year:i}=this.parseRawDateString(t,`YMD`);if(!wW.isValidYear(i))throw Error(`Invalid year: ${i}`);if(!EW.isValidMonth(i,r))throw Error(`Invalid month: ${r}`);if(!Number.isInteger(n)||!(n>=1&&n<=EW.getMonthDaysCount(r,wW.isLeapYear(i))))throw Error(`Invalid day: ${n}`);return new e(i,r,n)}static normalizeDayPart(e,t,n){return CW(e,1,EW.getMonthDaysCount(t,wW.isLeapYear(n)))}get formattedDayPart(){return String(this.day).padStart(2,`0`)}get isWeekend(){let e=this.dayOfWeek(!1);return e===0||e===6}dayOfWeek(e=!0){let t=e?this.toLocalNativeDate().getDay()-1:this.toLocalNativeDate().getDay();return t<0?6:t}dayBefore(e){return this.monthBefore(e)||this.monthSame(e)&&this.day<e.day}daySameOrBefore(e){return this.monthBefore(e)||this.monthSame(e)&&this.day<=e.day}daySame(e){return this.monthSame(e)&&this.day===e.day}daySameOrAfter(e){return this.monthAfter(e)||this.monthSame(e)&&this.day>=e.day}dayAfter(e){return this.monthAfter(e)||this.monthSame(e)&&this.day>e.day}dayLimit(e,t){return e!==null&&this.dayBefore(e)?e:t!==null&&this.dayAfter(t)?t:this}append({year:t=0,month:n=0,day:r=0}){let i=(this.year+t)*12+this.month+n,a=Math.floor(i/12),o=i%12,s=Math.min(this.day,EW.getMonthDaysCount(o,wW.isLeapYear(a)))+r;for(;s>EW.getMonthDaysCount(o,wW.isLeapYear(a));)s-=EW.getMonthDaysCount(o,wW.isLeapYear(a)),o===TW.December?(a++,o=TW.January):o++;for(;s<1;)o===TW.January?(a--,o=TW.December):o--,s+=EW.getMonthDaysCount(o,EW.isLeapYear(a));return new e(a,o,s)}getFormattedDay(e,t){let n=this.formattedDayPart,r=this.formattedMonthPart,i=this.formattedYear;switch(e){case`YMD`:return`${i}${t}${r}${t}${n}`;default:return`${n}${t}${r}${t}${i}`}}toString(e=`DMY`,t=`.`){return this.getFormattedDay(e,t)}toJSON(){return`${super.toJSON()}-${this.formattedDayPart}`}toLocalNativeDate(){return new Date(this.year,this.month,this.day)}toUtcNativeDate(){return new Date(Date.UTC(this.year,this.month,this.day))}},kW=new OW(0,0,1),AW=new OW(SW,11,31),jW=()=>kW,MW=()=>AW,NW=()=>EW.currentLocal(),PW=L({__name:`DataListWrapper`,props:z({modelValue:{},items:{},matcher:{type:Function}},{items:NH,matcher:PH}),emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,{items:i}=N(n),a=q(()=>i.value===null);return(t,n)=>(V(),U(M(WH),{loading:a.value},yi({default:P(()=>[(V(!0),H(B,null,vi(M(i),(n,i)=>(V(),U(M(GH),{key:i,active:e.matcher(e.modelValue,n),"hide-icon":!!t.$slots.itemContent,onClick:e=>r(`update:modelValue`,n)},{default:P(({active:e})=>[R(t.$slots,`itemContent`,{item:n,active:e},()=>[eo(A(n),1)])]),_:2},1032,[`active`,`hide-icon`,`onClick`]))),128))]),_:2},[t.$slots.emptyContent?{name:`emptyContent`,fn:P(()=>[R(t.$slots,`emptyContent`)]),key:`0`}:void 0]),1032,[`loading`]))}}),FW=class e{from;to;constructor(e,t){this.from=e,this.to=t}static sort(t,n){return t.monthSameOrBefore(n)?new e(t,n):new e(n,t)}get isSingleMonth(){return this.from.monthSame(this.to)}monthSame(e){return this.from.monthSame(e.from)&&this.to.monthSame(e.to)}toString(){return`${this.from}${$P}${this.to}`}},IW=`${DW}${$P}${DW}`,LW=20+$P.length,RW=class e extends FW{from;to;constructor(e,t){super(e,t),this.from=e,this.to=t}static sort(t,n){return t.daySameOrBefore(n)?new e(t,n):new e(n,t)}static normalizeParse(t,n=`DMY`){let r=OW.normalizeParse(t.slice(0,10),n);if(t.length<LW)return new e(r,r);let i=OW.normalizeParse(t.slice(10+$P.length),n);return e.sort(r,i)}get isSingleDay(){return this.from.daySame(this.to)}daySame(e){return this.from.daySame(e.from)&&this.to.daySame(e.to)}dayLimit(t,n){return new e(this.from.dayLimit(t,n),this.to.dayLimit(t,n))}getFormattedDayRange(e,t){return`${this.from.getFormattedDay(e,t)}${$P}${this.to.getFormattedDay(e,t)}`}toString(e=`DMY`,t=`.`){return this.getFormattedDayRange(e,t)}},zW=class{range;name;constructor(e,t){this.range=e,this.name=t}toString(){return this.name}};function BW(){let e=OW.currentLocal(),t=e.append({day:-1}),n=e.append({day:-e.dayOfWeek()}
45),r=n.append({day:6}),i=e.append({day:1-e.day}),a=i.append({month:1,day:-1}),o=i.append({month:-1});return[new zW(new RW(kW,e),`Ðа вÑе вÑемÑ`),new zW(new RW(e,e),`СегоднÑ`),new zW(new RW(t,t),`ÐÑеÑа`),new zW(new RW(n,r),`ТекÑÑÐ°Ñ Ð½ÐµÐ´ÐµÐ»Ñ`),new zW(new RW(i,a),`ТекÑÑий меÑÑÑ`),new zW(new RW(o,i.append({day:-1})),`ÐÑоÑлÑй меÑÑÑ`)]}function VW(e,t,n){return n&&n<e?n:t&&t>e?t:e}var HW=1e3,UW=HW*60,WW=UW*60,GW=WW*24,KW=class e{hours;minutes;seconds;ms;constructor(e,t,n=0,r=0){this.hours=e,this.minutes=t,this.seconds=n,this.ms=r}static currentUtc(){return e.fromAbsoluteMilliseconds(Date.now()%GW)}static currentLocal(){let t=new Date,n=(Date.now()-t.getTimezoneOffset()*UW)%GW;return e.fromAbsoluteMilliseconds(n)}static fromAbsoluteMilliseconds(t){let n=Math.floor(t/WW),r=Math.floor(t%WW/UW),i=Math.floor(t%36e5%6e4/1e3)||0,a=Math.floor(t%36e5%6e4%1e3)||0;return new e(n,r,i,a)}static fromString(t){let n=Number(t.slice(0,2)),r=Number(t.slice(3,5)),i=Number(t.slice(6,8))||0,a=Number(t.slice(9,12))||0;return new e(n,r,i,a)}static fromLocalNativeDate(t){return new e(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}shift({hours:t=0,minutes:n=0,seconds:r=0,ms:i=0}){let a=this.toAbsoluteMilliseconds()+t*WW+n*UW+r*HW+i;return a=(a<0?GW:0)+a%GW,e.fromAbsoluteMilliseconds(a)}toString(e){let t=e===`HH:MM:SS.MSS`||!e&&this.ms>0,n=t||e===`HH:MM:SS`||!e&&this.seconds>0;return`${this.formatTime(this.hours)}:${this.formatTime(this.minutes)}${n?`:${this.formatTime(this.seconds)}`:``}${t?`.${this.formatTime(this.ms,3)}`:``}`}valueOf(){return this.toAbsoluteMilliseconds()}[Symbol.toPrimitive](e){return Date.prototype[Symbol.toPrimitive].call(this,e)}toAbsoluteMilliseconds(){return this.hours*WW+this.minutes*UW+this.seconds*HW+this.ms}formatTime(e,t=2){return String(e).padStart(t,`0`)}};function qW(e){let t=new Date(e.year,e.month,1).getDay();return t>=1?t-1:7-(1-t)}function JW({month:e,rowIndex:t,colIndex:n}){let r=t*7+n-qW(e)+1;return r>e.daysCount&&(r-=e.daysCount,e=e.append({month:1})),r<=0&&(e=e.append({month:-1}),r=e.daysCount+r),new OW(e.year,e.month,r)}var YW=6;function XW(e,t=!1){let n=[],r=(t,n=e)=>t.year<n.year||t.month<n.month,i=(t,n=e)=>t.year>n.year||t.month>n.month;for(let a=0;a<YW;a++){let o=[];for(let n=0;n<7;n++){let s=JW({month:e,rowIndex:a,colIndex:n});if(!r(s)||t){if(i(s)&&!t)break;o.push(s)}}n.push(o)}return n}var ZW=(e,t={})=>Intl.DateTimeFormat(`ru`,t).format(e);function QW(e,t,n,r){if(n===`numeric`&&t!==`day`&&(e=e.length===1?`0${e}`:e),t===`month`&&n===`long`&&r){let t=e[e.length-1];e=t===`Ñ`||t===`й`?e.slice(0,e.length-1)+`Ñ`:e+`а`}return e}function $W(e,t){let n=t.indexOf(`day`)>-1,r=``,i=!1,a=``,o=``,s=``;for(let c=0;c<t.length;c++){let l=t[c];l===`[`?(i=!0,r+=a,a=``):i?l===`]`?(i=!1,s=a,r+=QW(ZW(e,{[o]:s}),o,s,n),a=``,o=``):l===`:`?(o=a,a=``):a+=l:a+=l}return r+=a,r}function eG(e,t){if(!e)return null;if(!t)return e?e.toString():null;let n=$W(e,t);return n[n.length-1]===`.`?n.slice(0,n.length-1):n}function tG(e,t,n,r=1,i=100){let a=[],o=Math.max(e-i,t),s=Math.min(e+i,n),c=o;for(;c<=s;){let e=[];for(let t=0;t<3&&!(c>s);t++)e.push(c),c+=r;a.push(e)}return a}function nG(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}function rG(e,t){return nG(e,t)&&e.getDate()===t.getDate()}var iG={value:null,showAdjacentDays:!0,bordered:!0,hoveredItem:null,flexWidth:!1,minViewedMonth:jW,maxViewedMonth:MW,min:jW,max:MW,disabledDatesHandler:xW},aG=[`data-state`],oG=Z(L({__name:`CellItem`,props:{state:{}},setup(e){return(t,n)=>(V(),H(`span`,{class:k(t.$style.item),"data-state":e.state},[R(t.$slots,`default`)],10,aG))}}),[[`__cssModules`,{$style:{item:`_item_i35ak_1`}}]]);function sG(e,t,n){return e||cG(t,n)}function cG(e,t){let n=EW.currentLocal();return!e&&!t?n:e?t?n.monthSameOrAfter(e)&&n.monthSameOrBefore(t)?n:n.monthSameOrAfter(e)&&n.monthSameOrAfter(t)?t:n.monthSameOrBefore(e)&&n.monthSameOrBefore(t)?e:n:e?n.monthSameOrAfter(e)?n:e:n:t?n.monthSameOrBefore(t)?n:t:n}var lG={"data-automation-id":`smed-calendar__month-name`,class:`smed-space_right-1`},uG=[`disabled`,`data-state`,`onMouseenter`,`onClick`],dG=Z(L({name:`Calendar`,__name:`Calendar`,props:z({value:{},showAdjacentDays:{type:Boolean},min:{},max:{},month:{},flexWidth:{type:Boolean},maxViewedMonth:{},minViewedMonth:{},hoveredItem:{},bordered:{type:Boolean},disabledDatesHandler:{type:Function}},iG),emits:[`dayClick`,`update:month`,`update:hoveredItem`],setup(e,{emit:t}){let n=e,r=t,{value:i,showAdjacentDays:a,min:o,max:s,month:c,maxViewedMonth:l,minViewedMonth:u,flexWidth:d,hoveredItem:f}=N(n),p=j(null),m=j(sG(c?.value||null,o.value,s.value)),h=j(null),g=j(!1),v=[`Ðн`,`ÐÑ`,`СÑ`,`ЧÑ`,`ÐÑ`,`Сб`,`ÐÑ`],y={0:`ÑнваÑÑ`,1:`ÑевÑалÑ`,2:`маÑÑ`,3:`апÑелÑ`,4:`май`,5:`иÑнÑ`,6:`иÑлÑ`,7:`авгÑÑÑ`,8:`ÑенÑÑбÑÑ`,9:`окÑÑбÑÑ`,10:`ноÑбÑÑ`,11:`декабÑÑ`},b=OW.currentLocal();Yn(wM,p);let x=q(()=>XW(m.value,!0)),S=q(()=>{let e=m.value.year,t=o.value.year,n=s.value.year;return[].concat(...tG(e,t,n))}),C=q(()=>{let e=m.value.month;return y[e]}),w=q(()=>{let e=u.value,t=o.value;return e.monthSameOrAfter(t)?e:t}),T=q(()=>{let e=l.value,t=s.value;return e.monthSameOrBefore(t)?e:t}),E=q(()=>{let e=m.value,t=w.value;return e.monthAfter(t)}),D=q(()=>{let e=T.value;return m.value.monthBefore(e)}),ee=()=>{if(!E.value)return;let e=m.value;m.value=VW(e.append({month:-1}),w.value,T.value),r(`update:month`,m.value)},te=()=>{if(!D.value)return;let e=m.value;m.value=VW(e.append({month:1}),w.value,T.value),r(`update:month`,m.value)},ne=e=>{e&&oe(e)||r(`update:hoveredItem`,e)},re=e=>e.daySame(b),ie=e=>{oe(e)||r(`dayClick`,e)},ae=e=>{m.value=VW(new EW(e,m.value.month),w.value,T.value);let t=h.value;t&&tP(t),r(`update:month`,m.value),g.value=!1},oe=e=>
45{let t=o.value,r=s.value;return e.dayBefore(t)||e.dayAfter(r)||n.disabledDatesHandler(e)},O=e=>{let t=i.value;if(!t||t instanceof OW)return!1;if(!t.isSingleDay)return t.from.daySameOrBefore(e)&&t.to.daySameOrAfter(e);let n=f.value;if(n===null)return!1;let r=RW.sort(t.from,n);return r.from.daySameOrBefore(e)&&r.to.daySameOrAfter(e)},se=e=>{let t=i.value;if(!t)return null;if(t instanceof OW)return t.daySame(e)?`single`:null;let n=f.value;return t.from.daySame(e)&&!t.isSingleDay||n?.dayAfter(t.from)&&t.from.daySame(e)&&t.isSingleDay||n?.daySame(e)&&n.dayBefore(t.from)&&t.isSingleDay?`start`:t.to.daySame(e)&&!t.isSingleDay||n?.dayBefore(t.from)&&t.from.daySame(e)&&t.isSingleDay||n?.daySame(e)&&n.dayAfter(t.from)&&t.isSingleDay?`end`:t.isSingleDay&&t.from.daySame(e)?`single`:null};return c&&I(c,e=>{m.value=sG(e||null,o.value,s.value)}),I(i,e=>{n.month||(e instanceof OW&&(m.value=e),e instanceof RW&&(m.value=e.from))},{immediate:!0}),(t,n)=>(V(),H(`div`,{class:k([t.$style.container,M(d)&&t.$style.container_flexWidth,e.bordered&&t.$style.container_bordered])},[W(`div`,{class:k(t.$style.header)},[G(M(FB),{"data-automation-id":`smed-calendar__month-button-left`,size:`sm`,color:`text`,icon:`arrow-left-accent`,class:k(!E.value&&t.$style.buttonHidden
45),onClick:ee},null,8,[`class`]),W(`div`,{ref_key:`yearsPivotRef`,ref:p,class:k(t.$style.month)},[W(`span`,lG,A(C.value)+`, `,1),G(M(rU),{modelValue:g.value,"onUpdate:modelValue":n[0]||=e=>g.value=e,"can-open":S.value.length>1,"max-height":200},{dropdown:P(()=>[G(M(PW),{"model-value":m.value.year,items:S.value,"onUpdate:modelValue":ae},null,8,[`model-value`,`items`])]),default:P(()=>[qn((V(),H(`button`,{ref_key:`dropdownHostButtonRef`,ref:h,"data-automation-id":`smed-calendar__year`,type:`button`,class:k(t.$style.year)},[W(`span`,null,A(m.value.year),1),S.value.length>1?(V(),U(M(hN),{key:0,name:`@smed.arrow-down`,size:`sm`,class:`smed-space_left-2`})):K(``,!0)],2)),[[M(LN)]])]),_:1},8,[`modelValue`,`can-open`])],2),G(M(FB),{"data-automation-id":`smed-calendar__month-button-right`,size:`sm`,color:`text`,icon:`arrow-right-accent`,class:k(!D.value&&t.$style.buttonHidden),onClick:te},null,8,[`class`])],2),W(`div`,{class:k(t.$style.rowContainer)},[W(`div`,{class:k(t.$style.row)},[(V(),H(B,null,vi(v,e=>W(`span`,{key:e,"data-automation-id":`smed-calendar__weekday`,class:k([t.$style.cell,t.$style.cell_week])},A(e),3)),64))],2),(V(!0),H(B,null,vi(x.value,(e,r)=>(V(),H(`div`,{key:r,class:k(t.$style.row)},[(V(!0),H(B,null,vi(e,e=>(V(),H(`button`,{key:e.valueOf(),type:`button`,"data-automation-id":`smed-calendar__day`,class:k([t.$style.cell,re(e)&&t.$style.cell_current,!e.monthSame(m.value)&&t.$style.cell_adjacent,!e.monthSame(m.value)&&!M(a)&&t.$style.cell_hide,O(e)&&t.$style.cell_interval]),disabled:oe(e),"data-state":se(e),onMouseenter:t=>ne(e),onMouseleave:n[1]||=e=>ne(null),onClick:Qs(t=>ie(e),[`stop`,`prevent`])},[G(oG,{state:se(e)},{default:P(()=>[eo(A(e.day),1)]),_:2},1032,[`state`])],42,uG))),128))],2))),128))],2)],2))}}),[[`__cssModules`,{$style:{container:`_container_fdlq7_1`,container_bordered:`_container_bordered_fdlq7_6`,header:`_header_fdlq7_10`,container_flexWidth:`_container_flexWidth_fdlq7_13`,container_overflow:`_container_overflow_fdlq7_17`,buttonHidden:`_buttonHidden_fdlq7_31`,rowContainer:`_rowContainer_fdlq7_36`,row:`_row_fdlq7_36`,cell:`_cell_fdlq7_49`,cell_week:`_cell_week_fdlq7_83`,cell_current:`_cell_current_fdlq7_92`,cell_adjacent:`_cell_adjacent_fdlq7_95`,cell_hide:`_cell_hide_fdlq7_98`,cell_interval:`_cell_interval_fdlq7_103`,month:`_month_fdlq7_128`,year:`_year_fdlq7_135`}}]]);function fG(e,t,n){let r=Math.min(Number(n),Math.max(Number(t),Number(e)));return e instanceof Date?new Date(r):r}function pG(e){return e.replaceAll(/\W/g,``).length}var mG={day:31,month:12,year:9999},hG=[`.`,`,`,`б`,`Ñ`],gG=new Date(`0001-01-01T00:00`),_G=new Date(`9999-12-31T23:59:59.999`),vG=`\xA0`,yG=`â`,bG=`â`,xG=`â`,SG=`-`,CG=`â`,wG=`ã¼`,TG=[SG,bG,xG,wG,CG];RegExp(`[${vG}APM]+$`,`g`),RegExp(`${vG}[AP]M$`,`g`);var EG=[`:`,`.`],DG=[SG,bG,xG,CG,wG],OG=1,kG=12,AG={January:0,February:1,April:3,June:5,September:8,November:10,December:11};function jG(e,{day:t=0,month:n=0,year:r=0}={}){if(t===0&&n===0&&r===0)return e;let i=e.getFullYear(),a=e.getMonth(),o=e.getDate(),s=(i+r)*kG+a+n,c=Math.floor(s/kG),l=s%kG,u=Math.min(o,MG(l,NG(c)))+t;for(;u>MG(l,NG(c));)u-=MG(l,NG(c)),l===AG.December?(c++,l=AG.January):l++;for(;u<OG;)l===AG.January?(c--,l=AG.December):l--,u+=MG(l,NG(c));return u=t<0||t===0&&NG(i)&&(n<0||r<0)?u+1:u-1,new Date(c,l,u)}function MG(e,t){switch(e){case AG.April:case AG.June:case AG.November:case AG.September:return 30;case AG.February:return t?29:28;default:return 31}}function NG(e){return e%400==0||e%4==0&&e%100!=0}var PG=e=>({day:e.match(/d/g)?.length??0,month:e.match(/m/g)?.length??0,year:e.match(/y/g)?.length??0});function FG(e){return{day:String(e.getDate()).padStart(2,`0`),month:String(e.getMonth()+1).padStart(2,`0`),year:String(e.getFullYear()).padStart(4,`0`),hours:String(e.getHours()).padStart(2,`0`),minutes:String(e.getMinutes()).padStart(2,`0`),seconds:String(e.getSeconds()).padStart(2,`0`),milliseconds:String(e.getMilliseconds()).padStart(3,`0`)}}var IG=[`day`,`month`,`year`];function LG(e){return[...IG].sort((t,n)=>e.indexOf(t[0])>e.indexOf(n[0])?1:-1)}function RG(e,t){let n=pG(t),[r=``]=RegExp(`(\\D*\\d){${n}}`).exec(e)||[];return r}function zG(e,t){return e.length<t.length?!1:e.split(/\D/).every(e=>!/^0+$/.exec(e))}function BG(e,t,n){let r=pG(t);return e.replace(n,``).match(RegExp(`(\\D*\\d[^\\d\\s]*){1,${r}}`,`g`))||[]}function VG(e,t){let n=t.replaceAll(/[^dmy]/g,``),r=e.replaceAll(/\D+/g,``),i={day:r.slice(n.indexOf(`d`),n.lastIndexOf(`d`)+1),month:r.slice(n.indexOf(`m`),n.lastIndexOf(`m`)+1),year:r.slice(n.indexOf(`y`),n.lastIndexOf(`y`)+1)};return Object.fromEntries(Object.entries(i).filter(([e,t])=>!!t).sort(([e],[n])=>t.toLowerCase().indexOf(e.slice(0,1))>t.toLowerCase().indexOf(n.slice(0,1))?1:-1))}function HG(e,t){let n=e.year?.length===2?`20${e.year}`:e.year,r=new Date(Number(n??`0`),Number(e.month??`1`)-1,Number(e.day??`1`),Number(t?.hours??`0`),Number(t?.minutes??`0`),Number(t?.seconds??`0`),Number(t?.milliseconds??`0`));return r.setFullYear(Number(n??`0`)),r}var UG=`, `;function WG({day:e,month:t,year:n,hours:r,minutes:i,seconds:a,milliseconds:o},{dateMode:s,dateTimeSeparator:c=UG,timeMode:l}){let u=s.match(/y/g)?.length===2?n?.slice(-2):n;return(s+(l?c+l:``)).replaceAll(/d+/g,e??``).replaceAll(/m+/g,t??``).replaceAll(/y+/g,u??``).replaceAll(/H+/g,r??``).replaceAll(`MSS`,o??``).replaceAll(/M+/g,i??``).replaceAll(/S+/g,a??``).replaceAll(/^\D+/g,``).replaceAll(/\D+$/g,``)}function GG({dateString:e,dateModeTemplate:t,dateSegmentsSeparator:n,offset:r,selection:[i,a]}){let o=VG(e,t),s=Object.entries(o),c=LG(t),l={};for(let e=0;e<s.length;e++){let[o,u]=s[e],d=WG(l,{dateMode:t}),f=mG[o],p=d.length&&n.length,m=r+d.length+p+PG(t)[o],h=m>=i&&m===a;if(h&&Number(u)>Number(f)){let t=c[c.indexOf(o)+1];if(!t||t===`year`)return{validatedDateString:``,updatedSelection:[i,a]};l[o]=`0${u.slice(0,-1)}`,s[e+1]=[t,u.slice(-1)+(s[e+1]?.[1]??``).slice(1)];continue}if(h&&Number(u)<1)return{validatedDateString:``,updatedSelection:[i,a]};l[o]=u}let u=WG(l,{dateMode:t}),d=u.length-e.length;return{validatedDateString:u,updatedSelection:[i+d,a+d]}}function KG(e){return e}function qG(){}var JG=/[\\^$.*+?()[\]{}|]/g,YG=new RegExp(JG.source);
45function XG(e){return e&&YG.test(e)?e.replaceAll(JG,String.raw`\$&`):e}function ZG(e,t){let n=``;for(let r=0;r<e.length;r++){if(e[r]!==t[r])return n;n+=e[r]}return n}function QG(e){return!e||typeof e==`object`&&Object.keys(e).length===0}var $G=/^0+$/;function eK(e,t,n=0){let r=e.padEnd(t.length,`0`);if(Number(r)<=Number(t))return{validatedSegmentValue:e,prefixedZeroesCount:n};if(r.endsWith(`0`))return eK(`0${e.slice(0,t.length-1)}`,t,n+1);let i=e.slice(0,t.length-1);return $G.exec(i)?{validatedSegmentValue:``,prefixedZeroesCount:n}:eK(`${i}0`,t,n)}function tK(e){return e.replaceAll(/[ï¼-ï¼]/g,e=>String.fromCharCode(e.charCodeAt(0)-65248))}function nK({dateModeTemplate:e,dateSegmentSeparator:t,splitFn:n,uniteFn:r}){return({value:i,selection:a})=>{let[o,s]=a,{dateStrings:c,restPart:l=``}=n(i),u=[],d=0;c.forEach(t=>{let n=VG(t,e),r=Object.entries(n).reduce((e,[t,n])=>{let{validatedSegmentValue:r,prefixedZeroesCount:i}=eK(n,`${mG[t]}`);return d+=i,Object.assign(Object.assign({},e),{[t]:r})},{});u.push(WG(r,{dateMode:e}))});let f=r(u,i)+(c[c.length-1]?.endsWith(t)?t:``)+l;return d&&f.slice(s+d,s+d+t.length)===t&&(d+=t.length),{selection:[o+d,s+d],value:f}}}
45function rK({dateModeTemplate:e,firstDateEndSeparator:t,dateSegmentSeparator:n,pseudoFirstDateEndSeparators:r}){return({elementState:i,data:a})=>{let{value:o,selection:s}=i,[c,l]=s,u=RG(o,e),d=r.filter(e=>!t.includes(e)&&e!==n),f=RegExp(`[${d.join(``)}]`,`gi`),p=u&&o.length>u.length?u+o.slice(u.length).replace(/^[\D\s]*/,t):o,m=p.length-o.length;return{elementState:{selection:[c+m,l+m],value:p},data:a.replace(f,t)}}}function iK(){return({elementState:e,data:t})=>{let{value:n,selection:r}=e;return{elementState:{selection:r,value:tK(n)},data:tK(t)}}}RegExp(`[${EG.map(XG).join(``)}]$`);function aK(e,t){let n=PG(t);return Object.fromEntries(Object.entries(e).map(([e,t])=>{let r=n[e];return[e,t.length===r&&/^0+$/.exec(t)?`1`.padStart(r,`0`):t]}))}var oK=`1972`;function sK({dateModeTemplate:e,min:t=gG,max:n=_G,rangeSeparator:r=``,dateSegmentSeparator:i=`.`}){return({value:a,selection:o})=>{let s=r&&a.endsWith(r),c=BG(a,e,r),l=``;for(let a of c){l+=l?r:``;let o=VG(a,e);if(!zG(a,e)){let t=WG(aK(o,e),{dateMode:e}),n=a.endsWith(i)?i:``;l+=t+n;continue}let s=fG(HG(Object.assign({year:oK},o)),t,n);l+=WG(FG(s),{dateMode:e})}return{selection:o,value:l+(s?r:``)}}}function cK({dateModeTemplate:e,dateSegmentsSeparator:t,rangeSeparator:n=``,dateTimeSeparator:r=UG}){return({elementState:i,data:a})=>{let o=e.split(t),s=a.includes(r),c=a.slice(0,s?a.indexOf(r):1/0).split(/\D/).filter(Boolean);if(!c.length||c.length%o.length!==0)return{elementState:i,data:a};let l=c.reduce((e,n,r)=>{let i=o[r%o.length]??``,a=Math.trunc(r/o.length),s=r%o.length===o.length-1;return e[a]||(e[a]=``),e[a]+=s?n:`${n.padStart(i.length,`0`)}${t}`,e},[]);return{elementState:i,data:s?`${l[0]}${a.slice(a.indexOf(r))}`:l.join(n)}}}function lK(e){let t=RegExp(`${XG(e)}$`),n=new RegExp(e&&`(${e.split(``).map(XG).reduce((e,t,n,r)=>`${e}|${r.slice(0,n+1).join(``)}`)})$`);return e?({value:r,selection:i},a)=>{if(!r&&!a.value.endsWith(e))return{value:r,selection:i};if(!r.match(n)&&!a.value.endsWith(e))return{selection:i,value:r+e};let o=a.value.replace(t,``),s=a.selection[1]>o.length,c=ZG(o,r);return{selection:i,value:Array.from(e).reverse().reduce((e,t,n)=>{let r=e.length-1-n,i=c[r]===t&&s;return e[r]!==t||i?e.slice(0,r+1)+t+e.slice(r+1):e},r)}}:KG}function uK(e){return e?({value:t,selection:n},r)=>{if(t.startsWith(e)||!t&&!r.value.startsWith(e))return{value:t,selection:n};let[i,a]=n,o=Array.from(e).reduce((e,t,n)=>e[n]===t?e:e.slice(0,n)+t+e.slice(n),t),s=o.length-t.length;return{selection:[i+s,a+s],value:o}}:KG}function dK({dateModeTemplate:e,dateSegmentsSeparator:t,rangeSeparator:n=``}){return({elementState:r,data:i})=>{let{value:a,selection:o}=r;if(i===t)return{elementState:r,data:o[0]===a.length?i:``};if(!i.replaceAll(/\D/g,``))return{elementState:r,data:i};let s=i.replaceAll(RegExp(`[^\\d${XG(t)}${n}]`,`g`),``),[c,l]=o,u=l+i.length,d=a.slice(0,c)+s+a.slice(u),f=BG(d,e,n),p=``,m=!!n&&d.includes(n);for(let i of f){let{validatedDateString:a,updatedSelection:o}=GG({dateString:i,dateModeTemplate:e,dateSegmentsSeparator:t,offset:p.length,selection:[c,u]});if(i&&!a)return{elementState:r,data:``};u=o[1],p+=m&&!p?a+n:a}let h=p.slice(c,u);return{elementState:{selection:o,value:p.slice(0,c)+h.split(t).map(e=>`0`.repeat(e.length)).join(t)+p.slice(u)},data:h}}}function fK(e,t,n){return(r,i)=>{let a=()=>t(r,i);return r.addEventListener(e,a,n),()=>r.removeEventListener(e,a,n)}}function pK(e){return(t,n)=>{let r=t.ownerDocument,i=0,a=()=>i++,o=()=>{i=Math.max(--i,0)},s=()=>
45{if(t.matches(`:focus`)){if(i)return r.addEventListener(`mouseup`,s,{once:!0,passive:!0});e(t,n)}};return r.addEventListener(`selectionchange`,s,{passive:!0}),t.addEventListener(`focus`,s,{passive:!0}),t.addEventListener(`mousedown`,a,{passive:!0}),r.addEventListener(`mouseup`,o,{passive:!0}),()=>{r.removeEventListener(`selectionchange`,s),t.removeEventListener(`focus`,s),t.removeEventListener(`mousedown`,a),r.removeEventListener(`mouseup`,o)}}}function mK(e){return pK(t=>{let n=t.selectionStart??0,r=t.selectionEnd??0,[i,a]=e(t.value,[n,r]);(i>n||a<r)&&t.setSelectionRange(fG(n,i,a),fG(r,i,a))})}function hK(e=``){let t=(t,[n,r])=>r>=t.length-e.length;return({elementState:e},n)=>{let{value:r,selection:i}=e;if(!r||t(r,i))return{elementState:e};let[a,o]=i,s=r.slice(a,o).replaceAll(/\d/g,`0`),c=r.slice(0,a)+s+r.slice(o);return s.replaceAll(/\D/g,``)?n===`validation`||n===`insert`&&a===o?{elementState:{selection:i,value:c}}:{elementState:{selection:n===`deleteBackward`||n===`insert`?[a,a]:[o,o],value:c}}:{elementState:e}}}function gK({mode:e,separator:t=`.`,max:n,min:r}){let i=e.split(`/`).join(t);return Object.assign(Object.assign({},pP),{mask:Array.from(i).map(e=>t.includes(e)?e:/\d/),overwriteMode:`replace`,preprocessors:[iK(),hK(),cK({dateModeTemplate:i,dateSegmentsSeparator:t}),dK({dateModeTemplate:i,dateSegmentsSeparator:t})],postprocessors:[nK({dateModeTemplate:i,dateSegmentSeparator:t,splitFn:e=>({dateStrings:[e]}),uniteFn:([e=``])=>e}),sK({min:r,max:n,dateModeTemplate:i,dateSegmentSeparator:t})]})}Intl.DateTimeFormat(`en-US`,{month:`2-digit`,day:`2-digit`,year:`numeric`});function _K({dateModeTemplate:e,rangeSeparator:t,minLength:n,maxLength:r,max:i=_G}){return QG(n)&&QG(r)?KG:({value:a,selection:o})=>{let s=BG(a,e,t);if(s.length!==2||s.some(t=>!zG(t,e)))return{value:a,selection:o};let[c,l]=s.map(t=>HG(VG(t,e)));if(!c||!l)return{value:a,selection:o};let u=jG(c,n),d=QG(r)?i:jG(c,r),f=fG(l,u,i),p=f>d?d:f;return{selection:o,value:s[0]+t+WG(FG(p),{dateMode:e})}}}function vK({dateModeTemplate:e,rangeSeparator:t}){return({value:n,selection:r})=>{let i=BG(n,e,t),a=i.length===2&&i.every(t=>zG(t,e)),[o,s]=r,c=o>=n.length,l=o===0&&s>=n.length;if(!(c||l)||!a)return{value:n,selection:r};let[u,d]=i.map(t=>HG(VG(t,e)));return{selection:r,value:u&&d&&u>d?i.reverse().join(t):n}}}function yK({mode:e,min:t,max:n,minLength:r,maxLength:i,dateSeparator:a=`.`,rangeSeparator:o=`${vG}${bG}${vG}`}){let s=e.split(`/`).join(a),c=Array.from(s).map(e=>a.includes(e)?e:/\d/);return Object.assign(Object.assign({},pP),{mask:[...c,...Array.from(o),...c],overwriteMode:`replace`,preprocessors:[iK(),rK({dateModeTemplate:s,dateSegmentSeparator:a,firstDateEndSeparator:o,pseudoFirstDateEndSeparators:DG}),hK(),cK({dateModeTemplate:s,rangeSeparator:o,dateSegmentsSeparator:a}),dK({dateModeTemplate:s,rangeSeparator:o,dateSegmentsSeparator:a})],postprocessors:[nK({dateModeTemplate:s,dateSegmentSeparator:a,splitFn:e=>({dateStrings:BG(e,s,o)}),uniteFn:(e,t)=>e.reduce((e,n,r)=>e+n+(!r&&t.includes(o)?o:``),``)}),sK({min:t,max:n,dateModeTemplate:s,rangeSeparator:o,dateSegmentSeparator:a}),_K({dateModeTemplate:s,minLength:r,maxLength:i,max:n,rangeSeparator:o}),vK({dateModeTemplate:s,rangeSeparator:o})]})}function bK(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function xK(e,{prefix:t,postfix:n,decimalSeparator:r,decimalPseudoSeparators:i,minusSign:a,minusPseudoSigns:o,maximumFractionDigits:s}){let c=[...i,r].map(e=>`\\${e}`).join(``),l=[...o,a].map(e=>`\\${e}`).join(``),u=t&&RegExp(`^([${l}])?(${t.split(``).map(XG).join(`?`)}?)`),d=n&&RegExp(`${n.split(``).map(XG).join(`?`)}?$`),[,,f=``]=e.match(u)??[],[p=``]=e.match(d)??[],m=e.replace(u,t&&`$1`).replace(d,``),h=RegExp(r&&s>0?`^[${c}]`:``),g=new RegExp(e.endsWith(n)?``:String.raw`^\d+`),v=RegExp(r&&s>0?`[${c}]$`:``),y=new RegExp(e.startsWith(t)?``:String.raw`\d+$`);return{extractedPrefix:f.replace(v,``).replace(y,``),extractedPostfix:p.replace(h,``).replace(g,``),cleanValue:(y.exec(f)?.[0]??``)+(v.exec(f)?.[0]??``)+m+(g.exec(p)?.[0]??``)+(h.exec(p)?.[0]??``)}}function SK({decimalPseudoSeparators:e,decimalSeparator:t,maximumFractionDigits:n,min:r,minusSign:i,minusPseudoSigns:a,postfix:o,prefix:s,thousandSeparator:c}){let l=r<0&&[i,...a].includes(s)?``:CK(s),u=String.raw`\d`,d=r<0?`[${i}${a.map(e=>`\\${e}`).join(``)}]?`:``,f=c?`[${u}${XG(c).replaceAll(/\s/g,String.raw`\s`)}]*`:`[${u}]*`,p=Number.isFinite(n)?n:``,m=n>0?`([${XG(t)}${e.map(XG).join(``)}]${u}{0,${p}})?`:``,h=CK(o),g=`(${d+l}|${l+d})`;return RegExp(`^${g}${f}${m}${h}$`)}function CK(e){return e?`${e.split(``).map(e=>`${XG(e)}?`).join(``)}`:``}function wK(e,t){let{extractedPrefix:n,cleanValue:r,extractedPostfix:i}=xK(e,t),{decimalSeparator:a,minusSign:o,minusPseudoSigns:s,decimalPseudoSeparators:c,maximumFractionDigits:l}=t,[u=``,d=``]=a?r.split(a):[r],f=[o,...s].map(e=>`\\${e}`).join(``),[,p=``,m=``]=RegExp(`^([${f}])?(.*)`).exec(u)||[];return{prefix:n,minus:p,integerPart:m,decimalPart:d,decimalSeparator:a&&l>0?RegExp(`[${[a,...c].map(XG).join(``)}]`,`i`).exec(r)?.[0]??``:``,postfix:i}}function TK({minus:e=``,integerPart:t=``,decimalPart:n=``,prefix:r=``,postfix:i=``,decimalSeparator:a=``},o){let s=n?o.decimalSeparator:a;
45return`${o.negativePattern===`minusFirst`?e+r:r+e}${t}${s}${n}${i}`}function EK(e,t={}){let{decimalSeparator:n=`.`,minusSign:r=``,minusPseudoSigns:i=TG}=typeof t==`string`?{decimalSeparator:t}:t,a=!!RegExp(`^\\D*[${XG(r)}\\${i.join(`\\`)}]`).exec(e),o=XG(n),s=e.replaceAll(RegExp(`${o}(?!\\d)`,`g`),``).replaceAll(RegExp(`[^\\d${o}]`,`g`),``).replace(n,n&&`.`);return s?Number(`${a?SG:``}${s}`):NaN}function DK(e){let t=String(e),[n=``,r]=t.split(`e-`),i=t;if(r){let[,t]=n.split(`.`),a=Number(r)+(t?.length??0);i=e.toFixed(a)}return i}function OK({decimalSeparator:e,thousandSeparator:t,decimalPseudoSeparators:n=hG}){return n.filter(n=>n!==t&&n!==e)}function kK(e){return({elementState:t,data:n})=>{let{value:r}=t,i=wK(n,e),{prefix:a,postfix:o}=i,s=bK(i,[`prefix`,`postfix`]);return{elementState:t,data:TK(Object.assign(Object.assign({},s),{prefix:r.startsWith(a)?``:a,postfix:r.endsWith(o)?``:o}),e)}}}function AK(e){let{minimumFractionDigits:t}=e;return t?({value:n,selection:r})=>{if(Number.isNaN(EK(n,e)))return{value:n,selection:r};let i=wK(n,e),{decimalPart:a}=i,o=bK(i,[`decimalPart`]);return{value:TK(Object.assign(Object.assign({},o),{decimalPart:a.padEnd(t,`0`)}),e),selection:r}}:KG}function jK(e){return({value:t,selection:n})=>{let[r]=n,{prefix:i,minus:a,integerPart:o,decimalSeparator:s,decimalPart:c,postfix:l}=wK(t,e),u=!o&&!c&&s;return!o&&!Number(c)&&r===(a+i).length||u?{selection:n,value:TK({prefix:i,minus:a,postfix:l},e)}:{value:t,selection:n}}}function MK(e){let t=!0,n=SK(Object.assign(Object.assign({},e),{prefix:``,postfix:``,thousandSeparator:``,maximumFractionDigits:1/0,min:-(2**53-1)}));return({elementState:r,data:i})=>{if(!t)return{elementState:r,data:i};t=!1;let{value:a,selection:o}=r,[s,c]=o,l=wK(a,e),{prefix:u,postfix:d}=l,f=TK(bK(l,[`prefix`,`postfix`]),e),p=BP({selection:[Math.max(s-u.length,0),Math.max(c-u.length,0)],value:f},{mask:n}),m=f.slice(0,Math.max(c-u.length,0)).length-p.value.slice(0,p.selection[1]).length;return{elementState:{selection:[Math.max(s-m,0),Math.max(c-m,0)],value:TK(Object.assign(Object.assign({},wK(p.value,e)),{prefix:u,postfix:d}),e)},data:i}}}function NK(e){return({elementState:t},n)=>{let{value:r,selection:i}=t,[a,o]=i,{prefix:s,minusSign:c,negativePattern:l}=e,u=l===`prefixFirst`?s:c+s,d=TK(Object.assign(Object.assign({},wK(r,e)),{minus:``}),e),f=r.length-d.length;return{elementState:n.includes(`delete`)&&r.includes(c)&&a<u.length?{value:d,selection:[Math.max(a-f,u.length-1),Math.max(o-f,u.length-1)]}:t}}}function PK(e){let{thousandSeparator:t}=e,n=e=>{let n=XG(t);return e.replace(RegExp(`^(\\D+)?[0${n}]+(?=0)`),`$1`).replace(RegExp(`^(\\D+)?[0${n}]+(?=[1-9])`),`$1`)},r=(e,t)=>{let r=e.slice(0,t),i=e.slice(t).startsWith(`0`);return r.length-n(r).length+ +!!i};return({value:t,selection:i})=>{let[a,o]=i,s=wK(t,e),{integerPart:c}=s,l=bK(s,[`integerPart`]),u=n(c);if(c===u)return{value:t,selection:i};let d=a-r(t,a),f=o-r(t,o);return{value:TK(Object.assign(Object.assign({},l),{integerPart:u}),e),selection:[Math.max(d,0),Math.max(f,0)]}}}function FK({min:e,max:t,decimalSeparator:n,minusSign:r}){return({value:i,selection:a})=>{let o=EK(i,{decimalSeparator:n,minusSign:r}),s=o>0?Math.min(o,t):Math.max(o,e);if(o&&s!==o){let e=`${s}`.replace(`.`,n).replace(SG,r);return{value:e,selection:[e.length,e.length]}}return{value:i,selection:a}}}function IK({decimalSeparator:e,thousandSeparator:t,minimumFractionDigits:n}){return({elementState:r,data:i},a)=>{let{value:o,selection:s}=r,[c,l]=s,u=o.slice(c,l),d=n?[e,t]:[t],f=!!n&&c>o.indexOf(e)&&!!u.match(/^0+$/gi);return a!==`deleteBackward`&&a!==`deleteForward`||!d.includes(u)&&!f?{elementState:r,data:i}:{elementState:{value:o,selection:a===`deleteForward`?[l,l]:[c,c]},data:i}}}function LK(e){let{maximumFractionDigits:t,decimalSeparator:n}=e,r=RegExp(`^\\D*${XG(n)}`);return({elementState:i,data:a})=>{let{value:o,selection:s}=i,c=wK(o,e),{prefix:l,postfix:u}=c,d=TK(bK(c,[`prefix`,`postfix`]),e),[f,p]=s,m=fG(f-l.length,0,d.length),h=fG(p-l.length,0,d.length);return t<=0||d.slice(0,m).includes(n)||d.slice(h).includes(n)||!a.match(r)?{elementState:i,data:a}:{elementState:i,data:/\d+/.exec(d.slice(0,m))?a:`0${a}`}}}
45function RK({prefix:e,minusSign:t,negativePattern:n}){return({value:r,selection:i},a)=>uK(r.includes(t)&&n===`minusFirst`?t+e:e)({value:r,selection:i},a)}function zK(e){var{validCharacter:t,pseudoCharacters:n}=e,r=bK(e,[`validCharacter`,`pseudoCharacters`]);let i=RegExp(`[${n.join(``)}]`,`gi`);return({elementState:e,data:n})=>{let{value:a,selection:o}=e,s=wK(a,r),{prefix:c,postfix:l}=s,u=TK(bK(s,[`prefix`,`postfix`]),r).replace(i,t);return{elementState:{selection:o,value:TK(Object.assign(Object.assign({},wK(u,r)),{prefix:c,postfix:l}),r)},data:n.replace(i,t)}}}function BK(e){let{decimalSeparator:t}=e;return t?({elementState:n,data:r})=>{let{value:i,selection:a}=n,[o,s]=a;return{elementState:n,data:!wK(i,e).decimalSeparator||i.slice(o,s+1).includes(t)?r:r.replaceAll(new RegExp(XG(t),`gi`),``)}}:KG}function VK(e){let{thousandSeparator:t}=e;if(!t)return KG;let n=(...e)=>e.every(e=>/\s/.test(e));return({value:r,selection:i})=>{let[a,o]=i,[s,c]=i,{prefix:l,minus:u,integerPart:d,decimalSeparator:f,decimalPart:p,postfix:m}=wK(r,e),h=TK({minus:u,integerPart:d,decimalSeparator:f,decimalPart:p},e).length-(u+d+(f?f+p:``)).length;return h>0&&a&&a<=h&&(s-=h),h>0&&o&&o<=h&&(c-=h),{value:TK({prefix:l,minus:u,integerPart:Array.from(d).reduceRight((e,r,i)=>{let l=!(!i&&r===t)&&!!e.length&&(e.length+1)%4==0,u=r===t||n(r,t);return l&&u?t+e:!l&&u?(s&&i<=a&&s--,c&&i<=o&&c--,e):l?(i<a&&s++,i<o&&c++,r+t+e):r+e},``),decimalSeparator:f,decimalPart:p,postfix:m},e),selection:[s,c]}}}function HK(e){let{maximumFractionDigits:t,decimalSeparator:n}=e;if(t>0||!n)return KG;let r=RegExp(`${XG(n)}.*$`,`g`);return({elementState:t,data:n})=>{let{value:i,selection:a}=t,o=wK(i,e),{prefix:s,postfix:c}=o,l=bK(o,[`prefix`,`postfix`]),[u,d]=a,f=TK(l,e).replace(r,``),p=TK(Object.assign(Object.assign({},wK(f,e)),{prefix:s,postfix:c}),e);return{elementState:{selection:[Math.min(u,p.length),Math.min(d,p.length)],value:p},data:n.replace(r,``)}}}var UK=[0,0];function WK(e){let t=PK(e);return fK(`blur`,e=>{let n=t({value:e.value,selection:UK},{value:``,selection:UK}).value;MP(e,n)},{capture:!0})}function GK({min:e,max:t,decimalSeparator:n,minusSign:r}){return fK(`blur`,(i,a)=>{let o=EK(i.value,{decimalSeparator:n,minusSign:r}),s=fG(o,e,t);!Number.isNaN(o)&&o!==s&&MP(i,BP(DK(s),a))},{capture:!0})}function KK(e){let{decimalSeparator:t}=e;return t?fK(`blur`,n=>{let r=wK(n.value,e),{prefix:i,postfix:a}=r,o=TK(bK(r,[`prefix`,`postfix`]),e).replace(RegExp(`^(\\D+)?${XG(t)}`),`$10${t}`);MP(n,TK(Object.assign(Object.assign({},wK(o,e)),{prefix:i,postfix:a}),e))},{capture:!0}):qG}function qK({max:e=2**53-1,min:t=-(2**53-1),precision:n=0,thousandSeparator:r=vG,decimalSeparator:i=`.`,decimalPseudoSeparators:a,decimalZeroPadding:o=!1,prefix:s=``,postfix:c=``,minusSign:l=CG,minusPseudoSigns:u=TG.filter(e=>e!==r&&e!==i&&e!==l),maximumFractionDigits:d=n,minimumFractionDigits:f=o?d:0,negativePattern:p=`prefixFirst`}={}){let m=OK({decimalSeparator:i,thousandSeparator:r,decimalPseudoSeparators:a}),h={max:e,min:t,precision:n,thousandSeparator:r,postfix:c,minusSign:l,minusPseudoSigns:u,maximumFractionDigits:d,decimalPseudoSeparators:m,negativePattern:p,decimalZeroPadding:o,decimalSeparator:d<=0&&i===r?``:i,prefix:s.endsWith(i)&&d>0?`${s}${yG}`:s,minimumFractionDigits:Math.min(f,d)};return Object.assign(Object.assign({},pP),{mask:SK(h),preprocessors:[iK(),MK(h),kK(h),zK(Object.assign(Object.assign({},h),{validCharacter:l,pseudoCharacters:u})),zK(Object.assign(Object.assign({},h),{validCharacter:i,pseudoCharacters:m})),LK(h),IK(h),HK(h),BK(h),NK(h)],postprocessors:[FK(h),RK(h),lK(c),VK(h),AK(h),jK(h)],plugins:[WK(h),KK(h),GK(h)],overwriteMode:f>0?({value:e,selection:[t]})=>t<=e.indexOf(i)?`shift`:`replace`:`shift`})}var JK={value:null,single:!0,max:MW,min:jW,disabledDatesHandler:xW},YK=[`onClick`],XK=Z(L({__name:`InternalCalendarMobile`,props:{value:{},month:{},single:{type:Boolean},min:{},max:{},disabledDatesHandler:{type:Function}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,{month:i,value:a,single:o,min:s,max:c}=N(n),l=zs(),u=q(()=>XW(i.value)),d=e=>{if(h(e,s.value,c.value))return;if(o.value){r(`select`,e);return}let t=a.value;if(t===null){r(`select`,e);return}if(t instanceof OW){r(`select`,RW.sort(t,e));return}r(`select`,e)},f=OW.currentLocal(),p=(e,t)=>e instanceof OW?e.daySame(t):e.from.daySame(t)||e.to.daySame(t),m=(e,t)=>
45e instanceof RW&&e.from.dayBefore(t)&&e.to.dayAfter(t),h=(e,t,r)=>e.dayBefore(t)||e.dayAfter(r)||n.disabledDatesHandler(e),g=e=>{let t=[],n=e.daySame(f),r=a.value;return n&&t.push(l.dateCell_now),r&&p(r,e)&&t.push(l.dateCell_selected),r&&m(r,e)&&t.push(l.dateCell_range),h(e,s.value,c.value)&&t.push(l.dateCell_disabled),t};return(e,t)=>(V(),H(`div`,null,[(V(!0),H(B,null,vi(u.value,(t,n)=>(V(),H(B,{key:n},[t.length?(V(),H(`div`,{key:0,class:k(e.$style.dateRow)},[(V(!0),H(B,null,vi(t,t=>(V(),H(`div`,{key:t.valueOf(),class:k([e.$style.dateCell,g(t)]),onClick:e=>d(t)},A(t.day),11,YK))),128))],2)):K(``,!0)],64))),128))]))}}),[[`__cssModules`,{$style:{dateRow:`_dateRow_gvj41_1`,dateCell:`_dateCell_gvj41_11`,dateCell_now:`_dateCell_now_gvj41_26`,dateCell_range:`_dateCell_range_gvj41_29`,dateCell_selected:`_dateCell_selected_gvj41_33`,dateCell_disabled:`_dateCell_disabled_gvj41_37`}}]]),ZK={class:`smed-text_body-lg smed-text_bold`},QK=[`id`,`onClick`],$K=[`id`],eq=Z(L({__name:`CalendarMobile`,props:z({value:{},single:{type:Boolean},min:{},max:{},actionsFixed:{type:Boolean},disabledDatesHandler:{type:Function}},JK),emits:[`confirm`,`cancel`],setup(e,{emit:t}){let n=e,r=t,{value:i,single:a,min:o,max:s}=N(n),c=j(null),l=j(null),u=[`Ðн`,`ÐÑ`,`СÑ`,`ЧÑ`,`ÐÑ`,`Сб`,`ÐÑ`],d=OW.currentLocal(),f=j(cG(o.value,s.value)),p=j(cG(o.value,s.value)),m=q(()=>c.value?.native||null),h=q(()=>l.value?.native||null),g=[].concat(...tG(d.year,d.append({year:-100}).year,d.append({year:100}).year,1,200)),v=j(n.value||null),y=q(()=>{let e=[],t=f.value.year;for(let n=0;n<12;n++)e.push(new EW(t,n));return e}),b={0:`ЯнваÑÑ`,1:`ФевÑалÑ`,2:`ÐаÑÑ`,3:`ÐпÑелÑ`,4:`Ðай`,5:`ÐÑнÑ`,6:`ÐÑлÑ`,7:`ÐвгÑÑÑ`,8:`СенÑÑбÑÑ`,9:`ÐкÑÑбÑÑ`,10:`ÐоÑбÑÑ`,11:`ÐекабÑÑ`},x=e=>{v.value=e},S=e=>{f.value=new wW(e),p.value=new EW(e,p.value.month)},C=()=>{let e=v.value;a.value?e instanceof RW?r(`confirm`,e.from):r(`confirm`,e):e instanceof OW?r(`confirm`,new RW(e,e)):r(`confirm`,e)},w=()=>{r(`cancel`)};return I(i,e=>{v.value=e;let t=sG(e instanceof RW?e.from:e,o.value,s.value);f.value=t,p.value=t},{immediate:!0}),I([p,m],([e,t])=>{if(t){let n=t.querySelector(`#month_${e.month}`);t.scrollTo({top:n.offsetTop})}}),I([f,h],([e,t])=>{t&&t.querySelector(`#year_${e.year}`)?.scrollIntoView({block:`center`,inline:`center`})}),(t,n)=>(V(),H(`div`,null,[W(`div`,{class:k(t.$style.header)},[W(`span`,ZK,` ÐÑбеÑиÑе `+A(M(a)?`денÑ`:`пеÑиод`),1)],2),G(M($H),{ref_key:`yearsScrollbar`,ref:l,class:k(t.$style.years)},{default:P(()=>[W(`div`,{class:k(t.$style.years__container)},[(V(!0),H(B,null,vi(M(g),e=>(V(),H(`button`,{id:`year_${e}`,key:e,type:`button`,class:k([t.$style.years__item,(f.value.year===e-1||f.value.year===e+1)&&t.$style.years__item_adjacent,f.value.year===e&&t.$style.years__item_active]),onClick:Qs(t=>S(e),[`stop`,`prevent`])},A(e),11,QK))),128))],2)]),_:1},8,[`class`]),W(`div`,{class:k(t.$style.weeks)},[(V(),H(B,null,vi(u,e=>W(`div`,{key:e,class:k(t.$style.weeks__item)},A(e),3)),64))],2),G(M($H),{ref_key:`monthsScrollbar`,ref:c,class:k(t.$style.months)},{default:P(()=>[(V(!0),H(B,null,vi(y.value,n=>(V(),H(`section`,{id:`month_${n.month}`,key:n.month},[W(`h2`,{class:k([`smed-text_h5 smed-text_extrabold smed-space_vertical-2`,t.$style.name])},A(b[n.month]),3),G(XK,{value:v.value,month:n,class:k(t.$style.calendar),single:M(a),min:M(o),max:M(s),"disabled-dates-handler":e.disabledDatesHandler,onSelect:x},null,8,[`value`,`month`,`class`,`single`,`min`,`max`,`disabled-dates-handler`])],8,$K))),128))]),_:1},8,[`class`]),W(`div`,{class:k([t.$style.actions,e.actionsFixed&&t.$style.actions_fixed])},[G(M(FB),{onClick:C},{default:P(()=>[...n[0]||=[eo(` ÐодÑвеÑдиÑÑ `,-1)]]),_:1}),G(M(FB),{color:`text`,class:`smed-space_top-1`,onClick:w},{default:P(()=>[...n[1]||=[eo(` ÐÑмениÑÑ `,-1)]]),_:1})],2)]))}}),[[`__cssModules`,{$style:{header:`_header_je22z_1`,name:`_name_je22z_6`,calendar:`_calendar_je22z_10`,years:`_years_je22z_15`,years__container:`_years__container_je22z_19`,years__item:`_years__item_je22z_23`,years__item_adjacent:`_years__item_adjacent_je22z_42`,years__item_active:`_years__item_active_je22z_47`,weeks:`_weeks_je22z_53`,weeks__item:`_weeks__item_je22z_61`,months:`_months_je22z_69`,actions:`_actions_je22z_74`,actions_fixed:`_actions_fixed_je22z_80`}}]]),tq={..._H,inputmode:`numeric`,placeholder:DW,dropdownProps:fH,calendarProps:fH,min:jW,max:MW,disabledDatesHandler:xW},nq=[`dsiabled`],rq=Z(L({name:`InputDate`,__name:`InputDate`,props:z({modelValue:{},modelModifiers:{},type:{},size:{},disabled:{type:Boolean},label:{},description:{},editable:{type:Boolean},hasCleaner:{type:Boolean},invalid:{type:Boolean},isSuccess:{type:Boolean},placeholder:{},autocomplete:{},name:{},decoratorPostfix:{},decoratorPostfixColorClass:{},inputmode:{},readonly:{type:Boolean},required:{type:Boolean},id:{},dataAutomationId:{},pseudoHovered:{type:Boolean},pseudoFocused:{type:Boolean},stringify:{type:Function},max:{},min:{},disabledDatesHandler:{type:Function},dropdownProps:{},calendarProps:{}},tq),emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,{modelValue:i,disabled:a,invalid:o,max:s,min:c,hasCleaner:l}=N(n),u=F(jM,j(!1)),d=j(!1),f=j(null),p=e=>e?.toString()||``,m=j(p(i.value)),h=j(!1),g=FV(o),v=PV(a),y=q(()=>gK({mode:`dd/mm/yyyy`,separator:`.`,max:s.value.toLocalNativeDate(),min:c.value.toLocalNativeDate()})),b=q(()=>l.value&&!!i.value),x=q(()=>{let e=m.value;return DW.slice(e.length)}),S=e=>{u.value||(d.value=e)},C=e=>{h.value=!1,!(e instanceof RW)&&r(`update:modelValue`,e)},w=()=>{h.value=!1},T=e=>{r(`update:modelValue`,e),d.value=!1,f.value?.focus()},E=e=>{let t=e;if(m.value=t||``,!t){r(`update:modelValue`,null);return}t.length===10&&r(`update:modelValue`,OW.normalizeParse(t))},D=e=>{u.value?(e.stopPropagation(),e.preventDefault(),h.value=!h.value):(f.value?.focus(),d.value=!0)};return I(i,e=>{p(e)!==m.value&&(m.value=p(e))}),(t,r)=>(V(),H(`div`,{class:k(t.$style.host)},[G(M(rU),ao(e.dropdownProps,{"model-value":d.value,class:t.$style.host,"max-width":241,"min-width":241,"min-height":274,"can-open":!M(u)&&!M(v),"onUpdate:modelValue":S}),{dropdown:P(()=>[G(M(dG),ao(e.calendarProps,{"show-adjacent-days":``,"flex-width":``,bordered:!1,max:M(s),min:M(c),value:M(i),"disabled-dates-handler":e.disabledDatesHandler,onDayClick:T}),null,16,[`max`,`min`,`value`,`disabled-dates-handler`])]),default:P(()=>[qn((V(),U(M(MH),ao(n,{ref_key:`baseInputExposed`,ref:f,disabled:M(v),"model-value":m.value,invali
45d:M(g),"pseudo-focused":!M(u)&&d.value,"decorator-postfix":x.value,"decorator-postfix-color-class":t.$style.decorator,"has-cleaner":b.value,"onUpdate:modelValue":E}),yi({right:P(()=>[W(`button`,{type:`button`,tabindex:`-1`,title:`ÐÑкÑÑÑÑ/ÑкÑÑÑÑ ÐºÐ°Ð»ÐµÐ½Ð´Ð°ÑÑ`,"aria-label":`ÐÑкÑÑÑÑ/ÑкÑÑÑÑ ÐºÐ°Ð»ÐµÐ½Ð´Ð°ÑÑ`,class:k(t.$style.icon),dsiabled:M(v),onClick:Qs(D,[`stop`,`prevent`])},[G(M(hN),{name:`@smed.calendar-day`,size:`sm`})],10,nq)]),_:2},[t.$slots.label?{name:`label`,fn:P(()=>[R(t.$slots,`label`)]),key:`0`}:void 0,t.$slots.description?{name:`description`,fn:P(()=>[R(t.$slots,`description`)]),key:`1`}:void 0]),1040,[`disabled`,`model-value`,`invalid`,`pseudo-focused`,`decorator-postfix`,`decorator-postfix-color-class`,`has-cleaner`])),[[M(QP),y.value]])]),_:3},16,[`model-value`,`class`,`can-open`]),M(u)?(V(),U(M(hV),{key:0,modelValue:h.value,"onUpdate:modelValue":r[0]||=e=>h.value=e,size:`full`,closable:!1},{default:P(()=>[G(M(eq),{"actions-fixed":``,single:``,value:M(i),class:k(t.$style.calendar),min:M(c),max:M(s),"disabled-dates-handler":e.disabledDatesHandler,onConfirm:C,onCancel:w},null,8,[`value`,`class`,`min`,`max`,`disabled-dates-handler`])]),_:1},8,[`modelValue`])):K(``,!0)],2))}}),[[`__cssModules`,{$style:{host:`_host_1comd_1`,icon:`_icon_1comd_6`,decorator:`_decorator_1comd_32`,calendar:`_calendar_1comd_36`}}]]),iq=L({name:`TimePreview`,__name:`TimePreview`,props:z({date:{},utc:{type:Boolean},mask:{}},{date:null,utc:!1,mask:null}),setup(e){let{mask:t,date:n,utc:r}=N(e),i=q(()=>{let e=t.value,i=n.value,a=r.value,o;if(i instanceof EW)return eG(i.toLocalNativeDate(),e);if(i instanceof KW){let{hours:t,minutes:n,seconds:r,ms:a}=i,o=new Date;return o.setHours(t,n,r,a),eG(o,e)}if(i instanceof RW){let{from:t,to:n}=i;return`${eG(t.toLocalNativeDate(),e)}${$P}${eG(n.toLocalNativeDate(),e)}`}return typeof i==`string`?(o=new Date(i),a&&o.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds())):o=i,eG(o,e)});return(e,t)=>(V(),H(`span`,null,A(i.value),1))}}),aq={..._H,thousandSeparator:``,decimalSeparator:`,`,min:0},oq=L({name:`NumberInput`,__name:`NumberInput`,props:z({modelValue:{},modelModifiers:{},type:{},size:{},disabled:{type:Boolean},label:{},description:{},editable:{type:Boolean},hasCleaner:{type:Boolean},invalid:{type:Boolean},isSuccess:{type:Boolean},placeholder:{},autocomplete:{},name:{},decoratorPostfix:{},decoratorPostfixColorClass:{},readonly:{type:Boolean},required:{type:Boolean},id:{},dataAutomationId:{},pseudoHovered:{type:Boolean},pseudoFocused:{type:Boolean},stringify:{type:Function},precision:{},decimalSeparator:{},thousandSeparator:{},max:{},min:{},postfix:{}},aq),emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,{modelValue:i,max:a,precision:o,thousandSeparator:s,decimalSeparator:c,min:l,postfix:u}=N(n),d=q(()=>{let e=a?.value,t=o?.value,n=s.value,r=c.value,i=l?.value,d=u?.value,f=d?.length||0,{plugins:p,...m}=qK({min:i,max:e,precision:t,thousandSeparator:n,decimalSeparator:r,postfix:d}),h=e=>[0,e.length-f];return{...m,plugins:[...p,mK(h)]}}),f=q(()=>{let e=i.value,t=d.value;return BP(String(e??``),t)}),p=q(()=>o?.value?`decimal`:`numeric`),m=e=>{if(!e)return null;let t=c.value,n=EK(e,t);return Number.isNaN(n)?null:n},h=e=>{r(`update:modelValue`,m(String(e||``)))};return(e,t)=>qn((V(),U(M(MH),ao(n,{"model-value":f.value,inputmode:p.value,"onUpdate:modelValue":h}),yi({default:P(()=>[e.$slots.left?R(e.$slots,`left`,{},void 0,void 0,0):K(``,!0)]),_:2},[e.$slots.valueContent?{name:`valueContent`,fn:P(t=>[R(e.$slots,`valueContent`,xe(Qa(t)))]),key:`0`}:void 0,e.$slots.right?{name:`right`,fn:P(()=>[R(e.$slots,`right`)]),key:`1`}:void 0,e.$slots.label?{name:`label`,fn:P(()=>[R(e.$slots,`label`)]),key:`2`}:void 0,e.$slots.description?{name:`description`,fn:P(()=>[R(e.$slots,`description`)]),key:`3`}:void 0]),1040,[`model-value`,`inputmode`])),[[M(QP),d.value]])}}),{decimalSeparator:sq,...cq}=aq,lq={...cq,thousandSeparator:` `,placeholder:`0`,min:0,dataAutomationId:`smed-input-bonus`},uq=[`for`],dq={key:0,class:`smed-space_bottom-1 smed-input-bonus__label`},fq=[`disabled`],pq=Z(L({name:`InputBonus`,__name:`InputBonus`,props:z({modelValue:{},modelModifiers:{},type:{},size:{},disabled:{type:Boolean},label:{},description:{},editable:{type:Boolean},hasCleaner:{type:Boolean},invalid:{type:Boolean},isSuccess:{type:Boolean},placeholder:{},autocomplete:{},name:{},decoratorPostfixColorClass:{},readonly:{type:Boolean},required:{type:Boolean},id:{},dataAutomationId:{},pseudoHovered:{type:Boolean},pseudoFocused:{type:Boolean},stringify:{type:Function},thousandSeparator:{},max:{},min:{},postfix:{}},lq),emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,{max:i,disabled:a,readonly:o,id:s}=N(n),c=PV(a),l=aV(),u=q(()=>s.value||l),d=q(()=>{let e=i&&i.value;return typeof e==`number`&&e>0}),f=e=>{r(`update:modelValue`,e)},p=()=>{d.value&&!c.value&&!o.value&&i&&f(i.value)};return(t,r)=>(V(),H(`label`,{class:`smed-input-bonus`,for:u.value},[t.$slots.label||e.label?(V(),H(`p`,dq,[R(t.$slots,`label`,{},()=>[eo(A(e.label),1)],!0)])):K(``,!0),G(M(oq),ao(n,{id:u.value,"label-outside":``,"model-value":e.modelValue,"onUpdate:modelValue":f}),yi({_:2},[t.$slots.description?{name:`description`,fn:P(()=>[R(t.$slots,`description`,{},void 0,!0)]),key:`0`}:void 0,d.value?{name:`right`,fn:P(()=>[W(`button`,{type:`button`,"data-automation-id":`smed-input-bonus-all-bonuses`,class:`smed-input-bonus__all`,disabled:M(c)||M(o),onClick:Qs(p,[`stop`,`prevent`])},[G(M(wB),null,{default:P(()=>[...r[0]||=[eo(`ÐÑе бонÑÑÑ`,-1)]]),_:1}
45)],8,fq)]),key:`1`}:void 0]),1040,[`id`,`model-value`])],8,uq))}}),[[`__scopeId`,`data-v-d50a999f`]]),mq={id:`smed-alerts-host`},hq=Z(L({name:`AlertsHost`,__name:`AlertsHost`,setup(e){let t=F(yM,null),n=F(bM,null),r=n?.component?n.component:`div`,i=n?.transitionName?n.transitionName:`none`,a=n?.position||`bottom`,o={"--smed-alert-max-width":`${n?.alertMaxWidth||680}px`},s=q(()=>t?.alerts.value||[]),c=e=>{t?.close(e)};return(e,t)=>(V(),H(`div`,mq,[W(`div`,{class:k([e.$style.root,e.$style[`root_`+M(a)]]),style:o,onTouchstart:t[0]||=(...e)=>M(Zl)&&M(Zl)(...e)},[G(Ws,{tag:`ul`,name:M(i),class:k(e.$style.container)},{default:P(()=>[(V(!0),H(B,null,vi(s.value,e=>(V(),U(mi(M(r)),{key:e.id,class:`smed-space_bottom-4`,type:e.type,content:e.content,data:e.data,closable:e.closable,onClose:t=>c(e.id)},null,40,[`type`,`content`,`data`,`closable`,`onClose`]))),128))]),_:1},8,[`name`,`class`])],34)]))}}),[[`__cssModules`,{$style:{root:`_root_ntlsp_1`,root_bottom:`_root_bottom_ntlsp_12`,"root_bottom-right":`_root_bottom-right_ntlsp_15`,container:`_container_ntlsp_18`,root_top:`_root_top_ntlsp_21`,"root_top-right":`_root_top-right_ntlsp_24`}}]]),gq=Z(L({__name:`PopupsHost`,setup(e,{expose:t}){let n=j([]),r=q(()=>n.value.length>0),i=(e,t)=>{t?a(e):o(e)},a=e=>{let t=n.value;n.value=[...t,e]},o=e=>{let t=n.value;n.value=t.filter(t=>t!==e)};return t({isShown:r,setOpened:i,remove:o}),(e,t)=>(V(),H(`div`,{id:`smed_popups-host`,class:k([e.$style.host,r.value&&e.$style.host_overlay])},null,2))}}),[[`__cssModules`,{$style:{host:`_host_13xfk_1`,host_overlay:`_host_overlay_13xfk_9`,smedPopupOverlay:`_smedPopupOverlay_13xfk_1`}}]]),_q={id:`smed_table-bar-host`},vq={id:`smed_table-bar-overlayable`},yq=Z(L({__name:`TableBarHost`,setup(e,{expose:t}){let n=j(!1),r=j(NaN),i=()=>{n.value=!0},a=()=>{n.value=!1},o=()=>{r.value=Date.now()};return t({isOverlay:n,overlayClickEvents:r,showOverlay:i,hideOverlay:a}),(e,t)=>(V(),H(`div`,_q,[t[0]||=W(`div`,{id:`smed_table-bars`},null,-1),W(`div`,vq,[G(Uo,{name:`fade`},{default:P(()=>[n.value?qn((V(),H(`div`,{key:0,class:k(e.$style.overlay),onClick:o,onTouchend:o},null,34)),[[M(_F),`all`]]):K(``,!0)]),_:1})])]))}}),[[`__cssModules`,{$style:{overlay:`_overlay_yhglf_1`}}]]),bq=Z(L({name:`Root`,__name:`Root`,setup(e){let t=j(null),n=j(null),r=j(null),i=j(null),a=j(NaN),o=YV(),s=0;return window.addEventListener(`scroll`,()=>{a.value=++s},{passive:!0,capture:!0}),Yn(kM,t),Yn(LM,n),Yn(qM,r),Yn(CM,i),Yn(zM,Yt(a)),(e,a)=>{let s=fi(`ClientOnly`);return V(),H(B,null,[G(s,null,{default:P(()=>[M(o)?K(``,!0):(V(),U(Uo,{key:0,name:`fade`},{default:P(()=>[!n.value?.isShown&&!r.value?.isOverlay?(V(),U(M(YH),{key:0,class:k(e.$style.scrollbar)},null,8,[`class`])):K(``,!0)]),_:1}))]),_:1}),W(`div`,{class:k(e.$style.content)},[R(e.$slots,`default`)],2),R(e.$slots,`overContent`),G(yq,{ref_key:`tableBarHostRef`,ref:r,class:k(e.$style.host)},null,8,[`class`]),R(e.$slots,`overTablebars`),G(gq,{ref_key:`popupsHostRef`,ref:n,class:k(e.$style.host)},null,8,[`class`]),R(e.$slots,`overPopups`),G(hq),R(e.$slots,`overAlerts`),W(`div`,{id:`smed_dropdown-host`,ref_key:`dropdownHostRef`,ref:i,class:k(e.$style.host)},null,2),R(e.$slots,`overDropdowns`),W(`div`,{id:`smed_hints-host`,ref_key:`hintsHostRef`,ref:t,class:k(e.$style.host),"data-top":!0},null,2),R(e.$slots,`overHints`)],64)}}}),[[`__cssModules`,{$style:{host:`_host_e7dpy_1`,scrollbar:`_scrollbar_e7dpy_13`,content:`_content_e7dpy_22`}}]]),xq={sm:24,md:32,lg:40,xl:44},Sq={BOT:`bot`,PATIENT:`patient`,DOCTOR:`doctor`},Cq={rounded:!0,size:`lg`,user:Sq.PATIENT},wq=[`title`,`data-size`,`data-rounded`],Tq={key:0},Eq=[`src`,`data-hide`,`width`,`alt`],Dq=Z(L({name:`Avatar`,__name:`Avatar`,props:z({rounded:{type:Boolean},size:{},src:{},name:{},user:{}},Cq),setup(e){let t=e,n=F(WM,UM),r={[Sq.BOT]:`${n}/images/avatars/bot.png`,[Sq.PATIENT]:`${n}/images/avatars/patient.png`,[Sq.DOCTOR]:`${n}/images/avatars/doctor.png`},{size:i,name:a,src:o,user:s}=N(t),c=j(!1),l=j(!1),u=q(()=>(a&&a.value||``)[0]||``),d=q(()=>{let e=o&&o.value,t=u.value,n=c.value;return t&&e&&!n||!e&&t}),f=q(()=>{let e=o&&o.value;return l.value?r[Sq.PATIENT]:e||r[s.value]||r[Sq.PATIENT]}),p=q(()=>{let e=i.value;return typeof e==`string`?xq[e]:i.value}),m=q(()=>{let e=a?.value;return e?`ÐваÑÐ°Ñ ${e}`:`ÐваÑаÑ`}),h=q(()=>({"--smed-avatar-size":`${p.value}px`}));function g(){c.value=!0}function v(){l.value=!0}return I(o,e=>{e!==f.value&&(l.value=!1,c.value=!1)}),(t,n)=>(V(),H(`div`,{title:m.value,class:k(t.$style.avatar),"data-size":M(i),"data-rounded":e.rounded,style:ge(h.value)},[d.value?(V(),H(`span`,Tq,A(u.value),1)):(V(),H(`img`,{key:1,loading:`lazy`,decoding:`async`,role:`presentation`,fetchpriority:`low`,height:`auto`,class:k(t.$style.image),src:f.value,"data-hide":!c.value,width:p.value,alt:M(a)||`ÐваÑаÑ`,onLoad:g,onError:v},null,42,Eq))],14,wq))}}),[[`__cssModules`,{$style:{avatar:`_avatar_161zt_1`,image:`_image_161zt_36`}}]]);function Oq(e){return e&&typeof e.then==`function`}Promise.resolve(!1),Promise.resolve(!0);var kq=Promise.resolve();function Aq(e,t){return e||=0,new Promise(function(n){return setTimeout(function(){return n(t)},e)})}function jq(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function Mq(){return Math.random().toString(36).substring(2)}var Nq=0;
45function Pq(){var e=Date.now()*1e3;return e<=Nq&&(e=Nq+1),Nq=e,e}var Fq=Pq,Iq=`native`;function Lq(e){var t={time:Pq(),messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(e){t.messagesCallback&&t.messagesCallback(e.data)},t}function Rq(e){e.bc.close(),e.subFns=[]}function zq(e,t){try{return e.bc.postMessage(t,!1),kq}catch(e){return Promise.reject(e)}}function Bq(e,t){e.messagesCallback=t}function Vq(){if(typeof globalThis<`u`&&globalThis.Deno&&globalThis.Deno.args)return!0;if((typeof window<`u`||typeof self<`u`)&&typeof BroadcastChannel==`function`){if(BroadcastChannel._pubkey)throw Error(`BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill`);return!0}return!1}function Hq(){return 150}var Uq={create:Lq,close:Rq,onMessage:Bq,postMessage:zq,canBeUsed:Vq,type:Iq,averageResponseTime:Hq,microSeconds:Fq},Wq=class{ttl;map=new Map;_to=!1;constructor(e){this.ttl=e}has(e){let t=this.map.get(e);return t===void 0?!1:t<Kq()-this.ttl?(this.map.delete(e),!1):!0}add(e){this.map.delete(e),this.map.set(e,Kq()),this._to||(this._to=!0,setTimeout(()=>{this._to=!1,Gq(this)},0))}clear(){this.map.clear()}};function Gq(e){let t=Kq()-e.ttl,n=e.map[Symbol.iterator]();for(;;){let r=n.next().value;if(!r)break;let i=r[0];if(r[1]<t)e.map.delete(i);else break}}function Kq(){return Date.now()}function qq(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return t.webWorkerSupport===void 0&&(t.webWorkerSupport=!0),t.idb||={},t.idb.ttl||(t.idb.ttl=45e3),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&typeof e.idb.onclose==`function`&&(t.idb.onclose=e.idb.onclose),t.localstorage||={},t.localstorage.removeTimeout||(t.localstorage.removeTimeout=6e4),e.methods&&(t.methods=e.methods),t.node||={},t.node.ttl||(t.node.ttl=12e4),t.node.maxParallelWrites||(t.node.maxParallelWrites=2048),t.node.useFastPath===void 0&&(t.node.useFastPath=!0),t}var Jq=Pq,Yq=`pubkey.broadcast-channel-0-`,Xq=`messages`,Zq={durability:`relaxed`};function Qq(){if(typeof indexedDB<`u`)return indexedDB;if(typeof window<`u`){if(window.mozIndexedDB!==void 0)return window.mozIndexedDB;if(window.webkitIndexedDB!==void 0)return window.webkitIndexedDB;if(window.msIndexedDB!==void 0)return window.msIndexedDB}return!1}function $q(e){e.commit&&e.commit()}function eJ(e){var t=Qq(),n=Yq+e,r=t.open(n);return r.onupgradeneeded=function(e){e.target.result.createObjectStore(Xq,{keyPath:`id`,autoIncrement:!0})},new Promise(function(e,t){r.onerror=function(e){return t(e)},r.onsuccess=function(){e(r.result)}})}function tJ(e,t,n){var r={uuid:t,time:Date.now(),data:n},i=e.transaction([Xq],`readwrite`,Zq);return new Promise(function(e,t){i.oncomplete=function(){return e()},i.onerror=function(e){return t(e)},i.objectStore(Xq).add(r),$q(i)})}function nJ(e,t){var n=e.transaction(Xq,`readonly`,Zq),r=n.objectStore(Xq),i=[],a=IDBKeyRange.bound(t+1,1/0);if(r.getAll){var o=r.getAll(a);return new Promise(function(e,t){o.onerror=function(e){return t(e)},o.onsuccess=function(t){e(t.target.result)}})}function s(){try{return a=IDBKeyRange.bound(t+1,1/0),r.openCursor(a)}catch{return r.openCursor()}}return new Promise(function(e,r){var a=s();a.onerror=function(e){return r(e)},a.onsuccess=function(r){var a=r.target.result;a?a.value.id<t+1?a.continue(t+1):(i.push(a.value),a.continue()):($q(n),e(i))}})}function rJ(e,t){if(e.closed)return Promise.resolve([]);var n=e.db.transaction(Xq,`readwrite`,Zq).objectStore(Xq);return Promise.all(t.map(function(e){var t=n.delete(e);return new Promise(function(e){t.onsuccess=function(){return e()}})}))}function iJ(e,t){var n=Date.now()-t,r=e.transaction(Xq,`readonly`,Zq),i=r.objectStore(Xq),a=[];return new Promise(function(e){i.openCursor().onsuccess=function(t){var i=t.target.result;if(i){var o=i.value;o.time<n?(a.push(o),i.continue()):($q(r),e(a))}else e(a)}})}function aJ(e){return iJ(e.db,e.options.idb.ttl).then(function(t){return rJ(e,t.map(function(e){return e.id}))})}function oJ(e,t){return t=qq(t),eJ(e).then(function(n){var r={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:Mq(),eMIs:new Wq(t.idb.ttl*2),writeBlockPromise:kq,messagesCallback:null,readQueuePromises:[],db:n};
45return n.onclose=function(){r.closed=!0,t.idb.onclose&&t.idb.onclose()},sJ(r),r})}function sJ(e){e.closed||lJ(e).then(function(){return Aq(e.options.idb.fallbackInterval)}).then(function(){return sJ(e)})}function cJ(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function lJ(e){return e.closed||!e.messagesCallback?kq:nJ(e.db,e.lastCursorId).then(function(t){return t.filter(function(e){return!!e}).map(function(t){return t.id>e.lastCursorId&&(e.lastCursorId=t.id),t}).filter(function(t){return cJ(t,e)}).sort(function(e,t){return e.time-t.time}).forEach(function(t){e.messagesCallback&&(e.eMIs.add(t.id),e.messagesCallback(t.data))}),kq})}function uJ(e){e.closed=!0,e.db.close()}function dJ(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return tJ(e.db,e.uuid,t)}).then(function(){jq(0,10)===0&&aJ(e)}),e.writeBlockPromise}function fJ(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t,lJ(e)}function pJ(){return!!Qq()}function mJ(e){return e.idb.fallbackInterval*2}var hJ={create:oJ,close:uJ,onMessage:fJ,postMessage:dJ,canBeUsed:pJ,type:`idb`,averageResponseTime:mJ,microSeconds:Jq},gJ=Pq,_J=`pubkey.broadcastChannel-`,vJ=`localstorage`;function yJ(){var e;if(typeof window>`u`)return null;try{e=window.localStorage,e=window[`ie8-eventlistener/storage`]||window.localStorage}catch{}return e}function bJ(e){return _J+e}function xJ(e,t){return new Promise(function(n){Aq().then(function(){var r=bJ(e.channelName),i={token:Mq(),time:Date.now(),data:t,uuid:e.uuid},a=JSON.stringify(i);yJ().setItem(r,a);var o=document.createEvent(`Event`);o.initEvent(`storage`,!0,!0),o.key=r,o.newValue=a,window.dispatchEvent(o),n()})})}function SJ(e,t){var n=bJ(e),r=function(e){e.key===n&&t(JSON.parse(e.newValue))};return window.addEventListener(`storage`,r),r}function CJ(e){window.removeEventListener(`storage`,e)}function wJ(e,t){if(t=qq(t),!DJ())throw Error(`BroadcastChannel: localstorage cannot be used`);var n=Mq(),r=new Wq(t.localstorage.removeTimeout),i={channelName:e,uuid:n,eMIs:r};return i.listener=SJ(e,function(e){i.messagesCallback&&e.uuid!==n&&e.token&&!r.has(e.token)&&(e.data.time&&e.data.time<i.messagesCallbackTime||(r.add(e.token),i.messagesCallback(e.data)))}),i}function TJ(e){CJ(e.listener)}function EJ(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t}function DJ(){var e=yJ();if(!e)return!1;try{var t=`__broadcastchannel_check`;e.setItem(t,`works`),e.removeItem(t)}catch{return!1}return!0}function OJ(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes(`safari`)&&!t.includes(`chrome`)?e*2:e}var kJ={create:wJ,close:TJ,onMessage:EJ,postMessage:xJ,canBeUsed:DJ,type:vJ,averageResponseTime:OJ,microSeconds:gJ},AJ=Pq,jJ=`simulate`,MJ=new Set;function NJ(e){var t={time:AJ(),name:e,messagesCallback:null};return MJ.add(t),t}function PJ(e){MJ.delete(e)}function FJ(e,t){return new Promise(function(n){return setTimeout(function(){Array.from(MJ).forEach(function(n){n.name===e.name&&n!==e&&n.messagesCallback&&n.time<t.time&&n.messagesCallback(t)}),n()},5)})}function IJ(e,t){e.messagesCallback=t}function LJ(){return!0}function RJ(){return 5}var zJ={create:NJ,close:PJ,onMessage:IJ,postMessage:FJ,canBeUsed:LJ,type:jJ,averageResponseTime:RJ,microSeconds:AJ},BJ=[Uq,hJ,kJ];function VJ(e){var t=[].concat(e.methods,BJ).filter(Boolean);if(e.type){if(e.type===`simulate`)return zJ;var n=t.find(function(t){return t.type===e.type});if(n)return n;throw Error(`method-type `+e.type+` not found`)}e.webWorkerSupport||(t=t.filter(function(e){return e.type!==`idb`}));var r=t.find(function(e){return e.canBeUsed()});if(r)return r;throw Error(`No usable method found in `+JSON.stringify(BJ.map(function(e){return e.type})))}var HJ=new Set,UJ=0,WJ=function(e,t){this.id=UJ++,HJ.add(this),this.name=e,GJ&&(t=GJ),this.options=qq(t),this.method=VJ(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,qJ(this)};WJ._pubkey=!0;var GJ;WJ.prototype={postMessage:function(e){if(this.closed)throw Error(`BroadcastChannel.postMessage(): Cannot post message after channel has closed `+JSON.stringify(e));return KJ(this,`message`,e)},postInternal:function(e){return KJ(this,`internal`,e)},set onmessage(e){var t={time:this.method.microSeconds(),fn:e};XJ(this,`message`,this._onML),e&&typeof e==`function`?(this._onML=t,YJ(this,`message`,t)):this._onML=null},addEventListener:function(e,t){var n={time:this.method.microSeconds(),fn:t};YJ(this,e,n)},removeEventListener:function(e,t){var n=this._addEL[e].find(function(e){return e.fn===t});XJ(this,e,n)},close:function(){var e=this;if(!this.closed){HJ.delete(this),this.closed=!0;var t=this._prepP?this._prepP:kq;return this._onML=null,this._addEL.message=[],t.then(function(){return Promise.all(Array.from(e._uMP))}).then(function(){return Promise.all(e._befC.map(function(e){return e()}))}).then(function(){return e.method.close(e._state)})}}
45,get type(){return this.method.type},get isClosed(){return this.closed}};function KJ(e,t,n){var r={time:e.method.microSeconds(),type:t,data:n};return(e._prepP?e._prepP:kq).then(function(){var t=e.method.postMessage(e._state,r);return e._uMP.add(t),t.catch().then(function(){return e._uMP.delete(t)}),t})}function qJ(e){var t=e.method.create(e.name,e.options);Oq(t)?(e._prepP=t,t.then(function(t){e._state=t})):e._state=t}function JJ(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function YJ(e,t,n){e._addEL[t].push(n),ZJ(e)}function XJ(e,t,n){e._addEL[t]=e._addEL[t].filter(function(e){return e!==n}),QJ(e)}function ZJ(e){if(!e._iL&&JJ(e)){var t=function(t){e._addEL[t.type].forEach(function(e){t.time>=e.time&&e.fn(t.data)})},n=e.method.microSeconds();e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,n)}):(e._iL=!0,e.method.onMessage(e._state,t,n))}}function QJ(e){if(e._iL&&!JJ(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}var $J={length:6,size:`md`,resendTimeoutSeconds:30,loading:!1},eY=[`tabindex`,`value`,`disabled`,`data-state`,`data-size`],tY=Z(L({__name:`InputCodeCell`,props:{modelValue:{},size:{},tabindex:{},invalid:{type:Boolean},disabled:{type:Boolean},index:{},length:{}},emits:[`update:modelValue`,`onFocus`,`onBackspace`,`onPaste`],setup(e,{expose:t,emit:n}){let r=e,i=n,{disabled:a,invalid:o}=N(r),s={mask:Array(r.length-r.index).fill(`_`).map(e=>/\d/)},c=j(!1),l=j(!1),u=j(null),d=e=>{let t=e.target.value;t.length>1?i(`onPaste`,t):i(`update:modelValue`,t?Number(t):null)},f=q(()=>a.value?`disabled`:o.value?`invalid`:l.value?`focused`:c.value?`hovered`:``),p=()=>{l.value=!0,i(`onFocus`)},m=()=>{l.value=!1},h=()=>i(`onBackspace`),g=e=>{e.preventDefault(),e.stopPropagation();let t=e.clipboardData?.getData(`text`),n=t?t.replace(/\D/g,``):null;i(`onPaste`,n)},v=()=>{let e=u.value;e&&tP(e)},y={onEvent:e=>{c.value=e}};return t({focus:v}),(t,n)=>qn((V(),H(`input`,{ref_key:`nativeRef`,ref:u,type:`text`,inputmode:`numeric`,"data-automation-id":`smed-input-code-cell`,tabindex:M(a)?`-1`:e.tabindex,value:e.modelValue,disabled:M(a),"data-state":f.value,"data-size":e.size,class:k(t.$style.native),onPaste:g,onInput:d,onFocus:p,onBlur:m,onKeydown:ec(h,[`backspace`])},null,42,eY)),[[M(QP),s],[M(uP),y]])}}),[[`__cssModules`,{$style:{native:`_native_c2erj_1`,smedOnAutoFillStart:`_smedOnAutoFillStart_c2erj_1`,smedOnAutoFillCancel:`_smedOnAutoFillCancel_c2erj_1`}}]]),nY=1e3,rY=Z(L({__name:`Resend`,props:{resendTimeoutSeconds:{},loading:{type:Boolean}},emits:[`resendCode`],setup(e,{emit:t}){let n=e,r=t,{resendTimeoutSeconds:i,loading:a}=N(n),o=j(null),s=j(i.value),c=q(()=>s.value!==0),l=()=>{s.value=i.value,o.value=setInterval(()=>{--s.value,c.value||u()},nY)},u=()=>{o.value&&clearInterval(o.value)};ii(()=>{u()}),I(i,()=>{u(),l()},{immediate:!0});let d=()=>{a.value||r(`resendCode`)};return(e,t)=>(V(),H(`div`,{class:k(e.$style.root)},[c.value?(V(),H(`span`,{key:0,"data-automation-id":`smed-resend-timer`,class:k(e.$style.timer)},` ÐÑÑлаÑÑ ÐºÐ¾Ð´ повÑоÑно (`+A(s.value)+`\xA0Ñек) `,3)):(V(),H(`span`,{key:1,class:k([e.$style.timer,e.$style.timer_clickable])},[W(`span`,{"data-automation-id":`smed-resend-link`,tabindex:`0`,onKeydown:ec(d,[`enter`]),onClick:d},` ÐÑÑлаÑÑ ÐºÐ¾Ð´ повÑоÑно `,32),M(a)?(V(),U(M(hN),{key:0,"data-automation-id":`smed-resend-code-spinner`,name:`@smed.spinner`,size:`sm`,class:k([`smed-space_left-1`,e.$style.spinner])},null,8,[`class`])):K(``,!0)],2))],2))}}),[[`__cssModules`,{$style:{root:`_root_ykcok_1`,timer:`_timer_ykcok_5`,timer_clickable:`_timer_clickable_ykcok_11`,spinner:`_spinner_ykcok_21`}}]]),iY=Z(L({name:`InputCode`,__name:`InputCode`,props:z({length:{},size:{},disabled:{type:Boolean},invalidText:{},resendTimeoutSeconds:{},loading:{type:Boolean}},$J),emits:[`submitCode`,`resendCode`],setup(e,{emit:t}){let n=e,r=t,i=j(Array(n.length).fill(`_`).map(()=>null)),a=j([]),o=()=>i.value.findIndex(e=>e===null),s=()=>{let e=o(),t=a.value;if(e!==-1&&t[e]){t[e].focus();return}let n=a.value[a.value.length-1];e===-1&&n&&n.focus()},c=(e,t)=>{i.value=Array(n.length).fill(`_`).map((n,r)=>i.value[r]!==null&&r!==e?i.value[r]:r===e?t:null),s()},l=()=>{s()},u=e=>{i.value[e]===null&&(i.value=Array(n.length).fill(`_`).map((t,n)=>n>=e-1?null:i.value[n]),s())},d=e=>{let t=e-1,n=i.value;return e===n.length-1?n[t]!==null||n[e]!==null?`0`:`-1`:e===0?n[e]===null?`0`:`-1`:n[t]!==null&&n[e]===null?`0`:`-1`},f=()=>{i.value=i.value.map(e=>null),s()},p=()=>{f(),r(`resendCode`)},m=e=>{let t=e.slice(0,n.length);if(t){if(t.length===n.length)i.value=Array(n.length).fill(``).map((e,n)=>Number(t[n]));else{let e=0;i.value=Array(n.length).fill(``).map((n,r)=>{let a=t[e],o=i.value[r];return o===null&&a?(e+=1,Number(a)):o})}s()}}
45,h=e=>{e&&m(e)};return I(i,e=>{e.every(e=>e!==null)&&r(`submitCode`,e.join(``))}),(t,n)=>(V(),H(`div`,null,[R(t.$slots,`label`,{},()=>[n[0]||=W(`p`,{class:`smed-text_body-sm`},` Ðа\xA0введеннÑй Ð½Ð¾Ð¼ÐµÑ Ð²ÑÑлан СÐС Ñ\xA0кодом. `,-1),n[1]||=W(`p`,{class:`smed-text_body-sm smed-space_bottom-4`},` ÐожалÑйÑÑа, введиÑе его в\xA0поле ниже. `,-1),W(`p`,{class:k([`smed-text_body-sm smed-space_bottom-2`,t.$style.label])},` Ðод из\xA0СÐС `,2)]),W(`div`,{class:k(t.$style.root)},[(V(!0),H(B,null,vi(e.length,(n,r)=>(V(),U(tY,{ref_for:!0,ref_key:`cells`,ref:a,key:r,tabindex:d(r),"model-value":i.value[r],class:k(t.$style.code),size:e.size,disabled:e.disabled,invalid:!!e.invalidText,index:r,length:e.length,"onUpdate:modelValue":e=>c(r,e),onOnFocus:l,onOnBackspace:e=>u(r),onOnPaste:h},null,8,[`tabindex`,`model-value`,`class`,`size`,`disabled`,`invalid`,`index`,`length`,`onUpdate:modelValue`,`onOnBackspace`]))),128))],2),G(M(pU),{class:k(e.invalidText&&`smed-space_top-1`),error:e.invalidText},null,8,[`class`,`error`]),e.disabled?K(``,!0):(V(),U(rY,{key:0,class:`smed-space_top-2`,loading:e.loading,"resend-timeout-seconds":e.resendTimeoutSeconds,onResendCode:p},null,8,[`loading`,`resend-timeout-seconds`]))]))}}),[[`__cssModules`,{$style:{root:`_root_1aig9_1`,label:`_label_1aig9_5`,code:`_code_1aig9_9`,error:`_error_1aig9_13`}}]]),aY=Z(L({name:`CountryFlag`,__name:`CountryFlag`,props:z({code:{}},{code:null}),setup(e){let{code:t}=N(e),n=q(()=>{let e=t.value;return e&&AB.find(t=>t.id===e)?.title||``}),r=q(()=>{let e=t.value;return e?`https://static.medsi.pro/images/country/${e}.png`:``}),i=q(()=>t.value?`img`:`div`);return(e,a)=>(V(),U(mi(i.value),{alt:M(t)||``,title:n.value,src:r.value,class:k(e.$style.flag),width:16,height:12},null,8,[`alt`,`title`,`src`,`class`]))}}),[[`__cssModules`,{$style:{flag:`_flag_dbb53_1`}}]]),oY=[`onKeydown`],sY=Z(L({name:`InternationalPhoneAvailable`,__name:`InternationalPhoneAvailable`,setup(e){let t=AB,n=Math.round(t.length/2),r=[t.slice(0,n),t.slice(n)],i=j(!1),a=()=>{i.value=!i.value};return(e,n)=>(V(),H(`div`,null,[qn((V(),H(`div`,{tabindex:`0`,class:k(e.$style.root),onKeydown:[ec(Qs(a,[`stop`,`prevent`]),[`enter`]),ec(Qs(a,[`stop`,`prevent`]),[`space`])],onClick:a},[W(`div`,null,[W(`p`,{class:k([`smed-text_body-xs smed-text_bold smed-space_bottom-2`,e.$style.label])},` ÐоÑÑÑпнÑе номеÑа ÑелеÑонов `,2),(V(!0),H(B,null,vi(M(t),e=>(V(),U(M(aY),{key:e.id,class:`smed-space_right-2`,code:e.id},null,8,[`code`]))),128))]),G(M(hN),{name:`@smed.warning-filled`,rotate:``,size:`sm`,class:k(e.$style.icon)},null,8,[`class`])],42,oY)),[[M(LN)]]),G(M(hV),{modelValue:i.value,"onUpdate:modelValue":n[0]||=e=>i.value=e,title:`ÐоÑÑÑпнÑе номеÑа ÑелеÑонов`},{default:P(()=>[W(`p`,{class:k([`smed-space_bottom-6`,e.$style.text])},` ÐÑ\xA0можеÑе заÑегиÑÑÑиÑоваÑÑÑÑ Ð¸Ð»Ð¸ войÑи в\xA0пÑоÑилÑ, иÑполÑзÑÑ Ð½Ð¾Ð¼ÐµÑа ÑелеÑонов ÑледÑÑÑиÑ
ÑÑÑан: `,2),W(`div`,{class:k(e.$style.countriesContainer)},[(V(),H(B,null,vi(r,(t,n)=>W(`div`,{key:n},[(V(!0),H(B,null,vi(t,t=>(V(),H(`div`,{key:t.id,class:k(e.$style.country)},[G(M(aY),{class:`smed-space_right-2`,code:t.id},null,8,[`code`]),W(`span`,{class:k([`smed-space_right-1`,e.$style.country__title])},A(t.title),3),W(`span`,{class:k(e.$style.country__prefix)},A(t.prefix),3)],2))),128))])),64))],2)]),_:1},8,[`modelValue`])]))}}),[[`__cssModules`,{$style:{root:`_root_1doxe_1`,label:`_label_1doxe_17`,text:`_text_1doxe_21`,icon:`_icon_1doxe_25`,countriesContainer:`_countriesContainer_1doxe_29`,country:`_country_1doxe_36`,country__title:`_country__title_1doxe_43`,country__prefix:`_country__prefix_1doxe_43`}}]]),cY={..._H,autocomplete:`tel`,type:`tel`,name:`tel`,placeholder:`+7`},lY=L({name:`InputPhone`,__name:`InputPhone`,props:z({modelValue:{},modelModifiers:{},type:{},size:{},disabled:{type:Boolean},label:{},description:{},editable:{type:Boolean},hasCleaner:{type:Boolean},invalid:{type:Boolean},isSuccess:{type:Boolean},placeholder:{},autocomplete:{},name:{},decoratorPostfix:{},decoratorPostfixColorClass:{},inputmode:{},readonly:{type:Boolean},required:{type:Boolean},id:{},dataAutomationId:{},pseudoHovered:{type:Boolean},pseudoFocused:{type:Boolean},stringify:{type:Function},maskOptions:{}},cY),emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,{maskOptions:i}=N(n),a=q(()=>i?.value??$B);return(t,i)=>qn((V(),U(M(MH),ao(n,{"model-value":e.modelValue,"onUpdate:modelValue":i[0]||=e=>r(`update:modelValue`,e)}),yi({_:2},[t.$slots.left?{name:`left`,fn:P(()=>[R(t.$slots,`left`)]),key:`0`}:void 0,t.$slots.label?{name:`label`,fn:P(()=>[R(t.$slots,`label`)]),key:`1`}:void 0,t.$slots.description?{name:`description`,fn:P(()=>[R(t.$slots,`description`)]),key:`2`}:void 0]),1040,[`model-value`])),[[M(QP),a.value]])}}),uY=Z(L({name:`Notification`,__name:`Notification`,props:z({color:{},size:{},closable:{type:Boolean},icon:{}},{color:`grey`,size:`md`,closable:!0,icon:``}),setup(e){let{icon:t}=N(e);return(n,r)=>(V(),H(`div`,{class:k([n.$style.notification,n.$style[`notification_`+e.color],n.$style[`notification_`+e.size]])},[M(t)||n.$slots.icon?(V(),H(`div`,{key:0,class:k(n.$style.leftIcon)},[R(n.$slots,`icon`,{},()=>[G(M(jN),{name:M(t)},null,8,[`name`])])],2)):K(``,!0),W(`div`,{class:k(n.$style.content)},[R(n.$slots,`default`)],2),e.closable?(V(),H(`button`,{key:1,"data-automation-id":`notification-close`,tabindex:`0`,type:`button`,"aria-label":`ÐакÑÑÑÑ Ð½Ð¾ÑиÑикаÑиÑ`,title:`ÐакÑÑÑÑ Ð½Ð¾ÑиÑикаÑиÑ`,class:k(n.$style.icon),onClick:r[0]||=Qs(e=>n.$emit(`close`),[`stop`])},[G(M(hN),{name:`@smed.close-filled`})],2)):K(``,!0)],2))}}),[[`__cssModules`,{$style:{notification:`_notification_1tyc5_1`,notification_grey:`_notification_grey_1tyc5_7`,notification_white:`_notification_white_1tyc5_11`,notification_sm:`_notification_sm_1tyc5_15`,notification_md:`_notification_md_1tyc5_19`,notification_lg:`_notification_lg_1tyc5_23`,content:`_content_1tyc5_27`,leftIcon:`_leftIcon_1tyc5_31`,icon:`_icon_1tyc5_35`}}]]),dY={load:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:`//api-maps.yandex.ru/2.1/?lang=en_RU`,t=function(){var t=e.match(/[\\?&]ns=([^&#]*)/);return t===null?``:decodeURIComponent(t[1].replace(/\+/g,` `))};return this.promise||=new Promise(function(t,n){var r=document.createElement(`script`);r.onload=t,r.onerror=n,r.type=`text/javascript`,r.src=e,document.body.appendChild(r)}).then(function(){var e=t();return e&&e!==`ymaps`&&(0,eval)(`var ymaps = ${e};`),new Promise(function(e){return ymaps.ready(e)})}),this.promise}},fY={direction:`bottom`},pY=[`data-automation-id`],mY=12,hY=72,gY=Z(L({name:`TableBar`,__name:`TableBar`,props:z({modelValue:{type:Boolean},direction:{},overlay:{type:Boolean},rootClass:{},contentClass:{},dataAutomationId:{},closeButton:{type:Boolean}},fY),emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,{modelValue:i,overlay:a,direction:o}=N(n),s=q(()=>a.value?`all`:`none`),c=j(null),l=j(!1),u=F(qM,IH),d=zs(),f=q(()=>{let e=o.value;return{"enter-from-class":d[`trn_${e}-enter-from`],"enter-active-class":d[`trn_${e}-enter-active`],"leave-active-class":d[`trn_${e}-leave-active`],"leave-to-class":d[`trn_${e}-leave-to`]}}),p=q(()=>u.value&&u.value.overlayClickEvents),m=()=>{r(`update:modelValue`,!1)},h=()=>{a.value&&m()},g=()=>{let e=c.value?.getBoundingClientRect();if(!e)return!1;
45let t=o.value,{left:n,right:r,top:i,bottom:a}=e,s=window.innerWidth,l=window.innerHeight;switch(t){case`left`:return s-r-hY-mY<0;case`right`:return n-hY-mY<0;case`top`:return l-a-hY-mY<0;default:return i-hY-mY<0}};ii(()=>{a.value&&u.value?.hideOverlay()}),I([i,a,u],([e,t,n])=>{e&&t&&n?n.showOverlay():n?.hideOverlay()},{immediate:!0}),I(p,()=>{i.value&&a.value&&m()});let v=nu(()=>{if(!i.value)return;let e=g();l.value=e},300),y={onEvent:h};if(n.closeButton){let e=null;I(i,e=>{e?Fn(v):l.value=!1}),I(c,(t,n)=>{n&&e?.unobserve(n),t&&(e??=new ResizeObserver(v),e.observe(t))}),window.addEventListener(`resize`,v),ii(()=>{window.removeEventListener(`resize`,v),e?.disconnect(),e=null})}return(t,n)=>M(u)?(V(),U(M(cV),{key:0,"append-to":M(a)?`#smed_table-bar-overlayable`:`#smed_table-bars`},{default:P(()=>[G(Uo,ao(f.value,{appear:``}),{default:P(()=>[M(i)?qn((V(),H(`section`,{key:0,ref_key:`tableBarRef`,ref:c,"data-automation-id":e.dataAutomationId||`smed-table-bar`,class:k([`smed-table-bar`,[`smed-table-bar_${M(o)}`,t.$style.tableBar,t.$style[`tableBar_`+M(o)],e.rootClass]])},[W(`div`,{class:k([`smed-table-bar__content`,t.$style.content])},[G(M($H),{class:k(t.$style.scrollbar)},{default:P(()=>[W(`div`,{class:k(e.contentClass)},[R(t.$slots,`default`,{close:m})],2)]),_:3},8,[`class`]),e.closeButton&&M(i)?qn((V(),H(`button`,{key:0,"data-automation-id":`smed-table-bar-close-button`,type:`button`,class:k([t.$style.close,t.$style[`close_`+M(o)],l.value&&t.$style.close_inside]),onClick:Qs(m,[`stop`,`prevent`])},[G(M(hN),{name:`@smed.close`,size:`xl`})],2)),[[M(LN)]]):K(``,!0)],2)],10,pY)),[[M($N),y],[M(cP),{handle:M(a)}],[M(_F),s.value]]):K(``,!0)]),_:3},16)]),_:3},8,[`append-to`])):K(``,!0)}}),[[`__cssModules`,{$style:{tableBar:`_tableBar_uoume_1`,tableBar_bottom:`_tableBar_bottom_uoume_10`,tableBar_top:`_tableBar_top_uoume_14`,tableBar_left:`_tableBar_left_uoume_18`,tableBar_right:`_tableBar_right_uoume_23`,content:`_content_uoume_29`,scrollbar:`_scrollbar_uoume_35`,close:`_close_uoume_39`,close_left:`_close_left_uoume_88`,close_right:`_close_right_uoume_94`,close_bottom:`_close_bottom_uoume_100`,close_top:`_close_top_uoume_106`,close_inside:`_close_inside_uoume_112`,"trn_bottom-enter-active":`_trn_bottom-enter-active_uoume_135`,"trn_bottom-leave-active":`_trn_bottom-leave-active_uoume_135`,"trn_bottom-enter-from":`_trn_bottom-enter-from_uoume_139`,"trn_bottom-leave-to":`_trn_bottom-leave-to_uoume_139`,"trn_left-enter-active":`_trn_left-enter-active_uoume_142`,"trn_left-leave-active":`_trn_left-leave-active_uoume_142`,"trn_left-enter-from":`_trn_left-enter-from_uoume_146`,"trn_left-leave-to":`_trn_left-leave-to_uoume_146`,"trn_right-enter-active":`_trn_right-enter-active_uoume_149`,"trn_right-leave-active":`_trn_right-leave-active_uoume_149`,"trn_right-enter-from":`_trn_right-enter-from_uoume_153`,"trn_right-leave-to":`_trn_right-leave-to_uoume_153`,"trn_top-enter-active":`_trn_top-enter-active_uoume_156`,"trn_top-leave-active":`_trn_top-leave-active_uoume_156`,"trn_top-enter-from":`_trn_top-enter-from_uoume_160`,"trn_top-leave-to":`_trn_top-leave-to_uoume_160`}}]]),_Y={rounded:!0,size:`md`,active:!1,disabled:!1},vY=`smed-chips-scroll`;function yY(e,{value:t,oldValue:n}){t&&t!==n&&e.dispatchEvent(new CustomEvent(`smed-chips-scroll`,{detail:e,bubbles:!0}))}var bY={mounted:yY,updated:yY},xY=[`data-size`,`data-rounded`,`data-active`,`disabled`,`data-removable`,`tabindex`],SY=L({name:`ChipsItem`,__name:`ChipsItem`,props:z({size:{},active:{type:Boolean},rounded:{type:Boolean},icon:{},disabled:{type:Boolean},removable:{type:Boolean}},_Y),emits:[`remove`],setup(e,{emit:t}){let n=e,r=t,{removable:i,disabled:a,active:o}=N(n),s=q(()=>!a.value&&o.value),c=q(()=>!a.value&&i.value),l=()=>{c.value&&r(`remove`)};return(t,n)=>qn((V(),H(`button`,{class:`smed-chips-item`,type:`button`,"data-size":e.size,"data-rounded":e.rounded,"data-active":s.value,disabled:M(a),"data-removable":c.value,tabindex:M(a)?`-1`:`0`,onKeydown:[ec(l,[`backspace`]),ec(l,[`esc`])]},[R(t.$slots,`icon`,{},()=>[e.icon?(V(),U(M(jN),{key:0,size:`sm`,name:e.icon},null,8,[`name`])):K(``,!0)]),R(t.$slots,`default`,{active:M(o),disabled:M(a)}),c.value?(V(),U(M(FB),{key:0,tabindex:`-1`,size:`sm`,icon:`close-filled`,color:`chips-item`,type:`button`,onClick:Qs(l,[`stop`,`prevent`])})):K(``,!0)],40,xY)),[[M(bY),s.value]])}}),CY=Z(L({name:`Filters`,__name:`Filters`,props:z({modelValue:{},items:{},icon:{type:[String,Function]},size:{},rounded:{type:Boolean},dataAutomationItemPrefix:{},matcher:{type:Function},disableItemHandler:{type:Function}},{rounded:!1,dataAutomationItemPrefix:`smed-filters-item`,matcher:PH,disableItemHandler:xW}),emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,{modelValue:i}=N(n),a=(e,t,n)=>typeof n==`function`?n(e,t):n,o=(e,t,n)=>!!e.find(e=>n(e,t)),s=(e,t,n)=>
45{let i=o(e,t,n)?e.filter(e=>!n(e,t)):[...e,t];r(`update:modelValue`,i)};return(t,n)=>(V(),H(`div`,{class:k(t.$style.root)},[(V(!0),H(B,null,vi(e.items,(n,r)=>(V(),U(M(SY),{key:r,class:`smed-space_right-2 smed-space_bottom-2`,active:o(M(i),n,e.matcher),icon:a(n,r,e.icon),size:e.size,rounded:e.rounded,"data-automation-id":`${e.dataAutomationItemPrefix}_${r}`,disabled:e.disableItemHandler(n,r),onClick:t=>s(M(i),n,e.matcher)},{default:P(({active:e})=>[R(t.$slots,`default`,{item:n,active:e},()=>[eo(A(n),1)])]),_:2},1032,[`active`,`icon`,`size`,`rounded`,`data-automation-id`,`disabled`,`onClick`]))),128))],2))}}),[[`__cssModules`,{$style:{root:`_root_jr8li_1`}}]]),wY=[`id`,`data-size`,`data-state`,`checked`,`disabled`],TY=Z(L({name:`Toggle`,__name:`Toggle`,props:{modelValue:{type:Boolean},size:{default:`md`},disabled:{type:Boolean},id:{},invalid:{type:Boolean}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,{disabled:i,size:a,invalid:o,modelValue:s}=N(n),c=FV(o),l=PV(i);tH(l,c,s);let u=q(()=>c.value?`invalid`:``),d=()=>{r(`update:modelValue`,!n.modelValue)};return(t,n)=>(V(),H(`input`,{id:e.id,type:`checkbox`,role:`switch`,class:k([`smed-toggle`,M(s)&&`_checked`]),"data-size":M(a),"data-state":u.value,checked:M(s),disabled:M(l),onChange:d},null,42,wY))}}),[[`__scopeId`,`data-v-ca26a279`]]),EY=L({name:`SearchInput`,__name:`SearchInput`,props:z({modelValue:{},modelModifiers:{},type:{},size:{},disabled:{type:Boolean},label:{},description:{},editable:{type:Boolean},hasCleaner:{type:Boolean},invalid:{type:Boolean},isSuccess:{type:Boolean},placeholder:{},autocomplete:{},name:{},decoratorPostfix:{},decoratorPostfixColorClass:{},inputmode:{},readonly:{type:Boolean},required:{type:Boolean},id:{},dataAutomationId:{},pseudoHovered:{type:Boolean},pseudoFocused:{type:Boolean},stringify:{type:Function}},_H),emits:[`update:modelValue`],setup(e,{expose:t,emit:n}){let r=n,i=j(null),a=q(()=>i.value?.wrapper??null),o=e=>{r(`update:modelValue`,e||``)};return t({baseInputWrapper:a,focus:()=>{i.value?.focus()}}),(t,n)=>(V(),U(M(MH),ao(t.$props,{ref_key:`baseInputExposed`,ref:i,"model-value":e.modelValue,"onUpdate:modelValue":o}),yi({left:P(()=>[G(M(hN),{name:`@smed.search`,size:`sm`})]),_:2},[t.$slots.valueContent?{name:`valueContent`,fn:P(e=>[R(t.$slots,`valueContent`,xe(Qa(e)))]),key:`0`}:void 0,t.$slots.right?{name:`right`,fn:P(()=>[R(t.$slots,`right`)]),key:`1`}:void 0,t.$slots.label?{name:`label`,fn:P(()=>[R(t.$slots,`label`)]),key:`2`}:void 0,t.$slots.description?{name:`description`,fn:P(()=>[R(t.$slots,`description`)]),key:`3`}:void 0]),1040,[`model-value`]))}}),DY=5,OY=(e,t)=>{let n={range:{},sizes:new Map,firstRangeTotalSize:0,firstRangeAverageSize:0,lastCalcIndex:0,fixedSizeValue:0,calcType:`INIT`,direction:null,param:e,callUpdate:t,offset:0,_prefixSums:[0],_prefixSumsValidUpto:0,_idToIndex:new Map,destroy(){this.range={},this.sizes=new Map,this.firstRangeTotalSize=0,this.firstRangeAverageSize=0,this.lastCalcIndex=0,this.fixedSizeValue=0,this.calcType=`INIT`,this.offset=0,this.direction=null,this._prefixSums=[0],this._prefixSumsValidUpto=0,this._idToIndex=new Map},_invalidatePrefixSums(e){this._prefixSumsValidUpto=Math.min(this._prefixSumsValidUpto,e)},_ensurePrefixSums(e){if(e<=this._prefixSumsValidUpto)return;let t=this.param.uniqueIds,n=this._prefixSumsValidUpto;for(let r=n;r<e;r++){let e=this.sizes.get(t[r]);this._prefixSums[r+1]=this._prefixSums[r]+(typeof e==`number`?e:this.getEstimateSize())}this._prefixSumsValidUpto=e},_rebuildIdToIndex(){this._idToIndex.clear();let e=this.param.uniqueIds;for(let t=0;t<e.length;t++)this._idToIndex.set(e[t],t)},getRange(){let{start:e,end:t,padFront:n,padBehind:r}=this.range;return{start:e,end:t,padFront:n,padBehind:r}},isBehind(){return this.direction===`BEHIND`},isFront(){return this.direction===`FRONT`},getOffset(e){return(e<1?0:this.getIndexOffset(e))+this.param.slotHeaderSize},updateParam(e,t){this.param&&e in this.param&&(e===`uniqueIds`&&this.sizes.forEac
45h((e,n)=>{t.includes(n)||this.sizes.delete(n)}),this.param[e]=t,e===`uniqueIds`&&(this._rebuildIdToIndex(),this._invalidatePrefixSums(0),this._prefixSums.length=t.length+1))},saveSize(e,t){let n=this.sizes.get(e);if(this.sizes.set(e,t),n!==t){let t=this._idToIndex.get(e);t!==void 0&&this._invalidatePrefixSums(t)}if(this.calcType===`INIT`?(this.fixedSizeValue=t,this.calcType=`FIXED`):this.calcType===`FIXED`&&this.fixedSizeValue!==t&&(this.calcType=`DYNAMIC`,this.fixedSizeValue=null),this.calcType!==`FIXED`&&this.firstRangeTotalSize!==null){if(this.sizes.size<Math.min(this.param.keeps,this.param.uniqueIds.length)){this.firstRangeTotalSize=[...this.sizes.values()].reduce((e,t)=>e+t,0);let e=Math.round(this.firstRangeTotalSize/this.sizes.size);e!==this.firstRangeAverageSize&&(this.firstRangeAverageSize=e,this._invalidatePrefixSums(0))}else this.firstRangeTotalSize=null}},handleItemsChange(){let e=this.range.start;this.isFront()?e-=DY:this.isBehind()&&(e+=DY),e=Math.max(e,0),this.updateRange(this.range.start,this.getEndByStart(e))},handleSlotSizeChange(){this.handleItemsChange()},handleScroll(e){e!==this.offset&&(this.direction=e<this.offset?`FRONT`:`BEHIND`,this.offset=e,this.param&&(this.direction===`FRONT`?this.handleFront():this.direction===`BEHIND`&&this.handleBehind()))},handleFront(){let e=this.getScrollOvers();if(this.range.start!=null&&e-this.range.start>this.param.buffer)return;let t=Math.max(e-this.param.buffer,0);this.checkRange(t,this.getEndByStart(t))},handleBehind(){let e=this.getScrollOvers();if(this.range.start!=null&&e<this.range.start+this.param.buffer)return;let t=Math.max(e-this.param.buffer,0);this.checkRange(t,this.getEndByStart(t))},getScrollOvers(){let e=this.offset-this.param.slotHeaderSize;if(e<=0)return 0;if(this.isFixedType())return Math.floor(e/this.fixedSizeValue);let t=0,n=0,r=0,i=this.param.uniqueIds.length;for(;t<=i;){if(n=t+Math.floor((i-t)/2),r=this.getIndexOffset(n),r===e)return n;r<e?t=n+1:r>e&&(i=n-1)}return t>0?--t:0},getIndexOffset(e){return e?(this._ensurePrefixSums(e),this.lastCalcIndex=Math.max(this.lastCalcIndex,e-1),this.lastCalcIndex=Math.min(this.lastCalcIndex,this.getLastIndex()),this._prefixSums[e]):0},isFixedType(){return this.calcType===`FIXED`},getLastIndex(){return this.param.uniqueIds.length-1},checkRange(e,t){let n=this.param.keeps;this.param.uniqueIds.length<=n?(e=0,t=this.getLastIndex()):t-e<n-1&&(e=t-n+1),this.range.start!==e&&this.updateRange(e,t)},updateRange(e,t){this.range.start=e,this.range.end=t,this.range.padFront=this.getPadFront(),this.range.padBehind=this.getPadBehind(),this.callUpdate(this.getRange())},getEndByStart(e){let t=e+this.param.keeps-1;return Math.min(t,this.getLastIndex())},getPadFront(){return this.isFixedType()?this.fixedSizeValue*this.range.start:this.getIndexOffset(this.range.start)},getPadBehind(){let e=this.range.end,t=this.getLastIndex();return this.isFixedType()?(t-e)*this.fixedSizeValue:this.lastCalcIndex===t?this.getIndexOffset(t)-this.getIndexOffset(e):(t-e)*this.getEstimateSize()},getEstimateSize(){return this.isFixedType()?this.fixedSizeValue:this.firstRangeAverageSize||this.param.estimateSize}};return e&&(n._rebuildIdToIndex(),n.checkRange(0,e.keeps-1)),n},kY=Symbol(`virtual-key`),AY=new Map;function jY(e,t){e.dispatchEvent(new CustomEvent(OB,{detail:{el:e,key:t},bubbles:!0}))}function MY(e,{value:t}){e[kY]=t;let n=new ResizeObserver(()=>jY(e,e[kY]));n.observe(e),AY.set(e,n)}function NY(e,{value:t}){e[kY]!==t&&(e[kY]=t,jY(e,t))}function PY(e){AY.get(e)?.disconnect(),AY.delete(e)}var FY={mounted:MY,updated:NY,beforeUnmount:PY},IY={items:NH,is:`div`,keeps:50,estimateSize:50,direction:`vertical`,start:0,offset:0,topThreshold:0,bottomThreshold:0,v2:!1},LY={key:0},RY=L({__name:`BackwardsCompatibility`,props:{v2:{type:Boolean},itemkey:{}},setup(e){return(t,n)=>e.v2?R(t.$slots,`default`,{},void 0,void 0,1):qn((V(),H(`div`,LY,[R(t.$slots,`default`)])),[[M(FY),e.itemkey]])}}),zY={key:0},BY=[`data-dir`],VY=[`data-dir`],HY={key:1},UY=[`data-dir`],WY=16,GY=L({name:`VirtualList`,__name:`VirtualList`,props:z({items:{},dataKey:{},deligated:{type:Boolean},is:{},v2:{type:Boolean},keeps:{},estimateSize:{},pageMode:{type:Boolean},direction:{},start:{},offset:{},topThreshold:{},bottomThreshold:{}},IY),emits:[`totop`,`tobottom`],setup(e,{expose:t,emit:n}){let r=e,i=n,{dataKey:a,items:o,direction:s,start:c,offset:l,topThreshold:u,bottomThreshold:d,keeps:f,deligated:p,pageMode:m}=N(r),h=F(RM,IH),g=j({}),v=j(null),y=j(null),b=j(0),x=e=>{g.value=e},S=q(()=>{if(p.value)return h.value;let e=v.value;return e?`$el`in e?e.$el:e:null}),C=(e,t,n)=>t?e[t]:n,w=q(()=>{let e=a.value;return o.value.map((t,n)=>C(t,e,n))}),T=q(()=>s.value===`horizontal`),E=q(()=>T.value?`scrollLeft`:`scrollTop`),D=OY({slotHeaderSize:0,slotFooterSize:0,keeps:r.keeps,estimateSize:r.estimateSize,buffer:Math.round(r.keeps/3),uniqueIds:w.value},x);ei(()=>{ae(D.offset)}),ti(()=>{c.value?ee(c.value):l.value&&ae(l.value),m.value&&oe()});let ee=e=>{if(e>=o.value.length-1)te();else{let t=D.getOffset(e);ae(t)}},te=()=>{if(y.value){let e=y.value[T.value?`offsetLeft`:`offsetTop`];ae(e),setTimeout(()=>{ne()+re()<ie()&&te()})}},ne=()=>m.value?document.documentElement[E.value]||document.body[E.value]:S.value?Math.ceil(S.value[E.value]):0,re=()=>{let e=T.value?`clientWidth`:`clientHeight`;return m.value?document.documentElement[e]||document.body[e]:S.value?Math.ceil(S.value[e]):0},ie=()=>{let e=T.value?`scrollWidth`:`scrollHeight`;return m.value?document.documentElement[e]||document.body[e]:S.value?Math.ceil(S.value[e]):0},ae=e=>{if(m.value){document.body[E.value]=e,document.documentElement[E.value]=e;return}S.value&&(S.value[E.value]=e)},oe=()=>{if(!S.value)return;let e=S.value.getBoundingClientRect(),{defaultView:t}=S.value.ownerDocument;if(t){let n=b.value;b.value=T.value?e.left+t.pageXOffset:e.top+t.pageYOffset;let r=D.param.slotHeaderSize-n;D.updateParam(`slotHeaderSize`,b.value+r)}},O=(e,t,n)=>{D.isFront()&&o.value.length&&e-u.value<=0?i(`totop`):D.isBehind()&&e+t+d.value>=n&&i(`tobottom`)},se=nu(()=>{let e=ne(),t=re(),n=ie();e<0||e+t>n+1||!n||(D.handleScroll(e),O(e,t,n))},WY);ii(()=>{D.destroy()});let le=q(()=>`${g.value.padFront??0}px`),ue=q(()=>`${g.value.padBehind??0}px`),de=q(()=>{let e=le.value;return T.value?{paddingTop:`0`,paddingLeft:e}:{paddingTop:e}}),fe=q(()=>{let e=ue.value;return T.value?{paddingBottom:`0`,paddingRight:e}:{paddingBottom:e}}),pe=q(()=>{let{start:e,end:t}=g.value;return e===void 0||t===void 0?o.value:o.value.slice(e,t+1)}),me=(e,t)=>
45{D.saveSize(e,t)},he=(e,t)=>{m.value&&e===`slotHeaderSize`?D.updateParam(e,b.value+t):D.updateParam(e,t)},_e=({detail:e})=>{let t=e.key,n=T.value?`offsetWidth`:`offsetHeight`,r=e.el[n];t===`slotFooterSize`||t===`slotHeaderSize`?he(t,r):me(t,r)};return I(f,e=>{D.updateParam(`keeps`,e),D.handleSlotSizeChange()}),I(c,e=>{ee(e)}),I(l,e=>{ae(e)}),I(m,(e,t,n)=>{n(()=>{document.removeEventListener(`scroll`,se)}),e&&document.addEventListener(`scroll`,se,{passive:!1})},{immediate:!0}),I([S,m],([e,t],n,r)=>{r(()=>{e?.removeEventListener(`scroll`,se)}),!t&&e?.addEventListener(`scroll`,se,{passive:!0})},{immediate:!0}),I(o,()=>{D.updateParam(`uniqueIds`,w.value),D.handleItemsChange()}),t({root:S,shepherd:y,onScroll:se,scrollToBottom:te}),(t,n)=>(V(),U(mi(e.is),ao({ref_key:`rootRef`,ref:v,class:`smed-virtual-list`,"data-virtual-list":``,"data-virt-v2":e.v2,"data-virt-dir":M(s),"data-virt-page-mode":M(m)},{[ce(M(OB))]:Qs(_e,[`stop`])}),{default:P(()=>[t.$slots.before?qn((V(),H(`div`,zY,[R(t.$slots,`before`)])),[[M(FY),`slotHeaderSize`]]):K(``,!0),W(`div`,{class:`smed-virtual-list__front`,"data-dir":M(s),style:ge(de.value)},null,12,BY),(V(!0),H(B,null,vi(pe.value,(n,r)=>(V(),U(RY,{key:C(n,M(a),r+(g.value.start??0)),v2:e.v2,itemkey:C(n,M(a),r+(g.value.start??0))},{default:P(()=>[R(t.$slots,`default`,{item:n,index:r+(g.value.start??0)})]),_:2},1032,[`v2`,`itemkey`]))),128)),W(`div`,{class:`smed-virtual-list__behind`,"data-dir":M(s),style:ge(fe.value)},null,12,VY),t.$slots.after?qn((V(),H(`div`,HY,[R(t.$slots,`after`)])),[[M(FY),`slotFooterSize`]]):K(``,!0),W(`div`,{ref_key:`shepherd`,ref:y,class:`smed-virtual-list__shepherd`,"data-dir":M(s)},null,8,UY)]),_:3},16,[`data-virt-v2`,`data-virt-dir`,`data-virt-page-mode`]))}}),KY={draggable:!1,autoScrollLooping:!1},qY=`__smartmed_carouselScroll__`,JY={beforeMount(e,{value:t}){let n=nu(e=>{t.onEvent(e)},500),r=({deltaX:t})=>{Math.abs(t)<=20||(n(Math.sign(t)),e.scrollLeft=10)};YV()||(e.addEventListener(`wheel`,r,{passive:!0}),e[qY]=r)},beforeUnmount(e){e[qY]&&e.removeEventListener(`wheel`,e[qY])}},YY=[`data-index`],XY=16,ZY=8,QY=30,$Y=1e-6,eX=Z(L({name:`Carousel`,__name:`Carousel`,props:z({modelValue:{},itemsCount:{},items:{},draggable:{type:Boolean},autoScrollLooping:{type:Boolean}},KY),emits:[`update:modelValue`,`autoscroll-end`],setup(e,{expose:t,emit:n}){let r=e,i=n,a=F(EM,null),o=F(DM,null),{itemsCount:s,modelValue:c,items:l,draggable:u,autoScrollLooping:d}=N(r),f=j(!0),p=j(!0),m=j(0),h=j(null),g=j(!1),v=null,y=null,b=e=>{let t=l.value.length;return{start:Math.floor(eF(e-1,0,t-1)),end:Math.ceil(eF(e+s.value+1,0,t-1))}},x=q(()=>{let e=s.value,t=`calc(${100/e}% + ${XY/e}px)`;return{minWidth:t,maxWidth:t,flexBasis:t,transform:`translateX(${T.value.start*100}%)`}}),S=q(()=>-c.value/s.value),C=q(()=>{let e=f.value?S.value:m.value;return{transform:`translateX(${100*e}%) translateX(-${XY/2-XY*e}px)`}}),w=q(()=>f.value&&p.value),T=q(()=>b(c.value)),E=(e,t)=>{let n=l.value.length;if(n===0)return!0;let r=b(e),i=Math.floor(eF(t,0,n-1)),a=eF(Math.ceil(t+s.value-$Y)-1,0,n-1);return r.start<=i&&r.end>=a},D=q(()=>T.value.start),ee=q(()=>{let{start:e,end:t}=T.value;return l.value.slice(e,t+1)}),te=q(()=>YV()||u.value),ne=q(()=>eF(l.value.length-1,0,Math.max(0,l.value.length-s.value)));a&&I(a,()=>{A()}),o&&I(c,()=>{o.reset()}),I(s,()=>{re(0)}),I(c,(e,t)=>{p.value=E(e,t)}),ii(()=>{Se(),v!==null&&cancelAnimationFrame(v),y!==null&&cancelAnimationFrame(y)});let re=e=>{i(`update:modelValue`,eF(e,0,ne.value))},ie=(e,t)=>{let n=ne.value;if(t===-1&&e>n+$Y)return n;if(t===1&&e<-1e-6)return 0;let r=eF(e,0,n);return t===1?r>=n-$Y?n:Math.min(r+1,n):r<=$Y?0:Math.abs(n-Math.round(n))>$Y&&r>=n-$Y?Math.floor(n+$Y):Math.max(0,r-1)},ae=()=>{re(ie(c.value,1))},oe=()=>{re(ie(c.value,-1))},O=e=>e.pointerType===`mouse`&&e.button!==0,se=()=>typeof window<`u`&&window.TouchEvent!==void 0,ce=e=>e.pointerType!==`touch`||!se(),le=e=>{!te.value||!e.isPrimary||!ce(e)||O(e)||l.value.length<2||(de({source:`pointer`,id:e.pointerId,clientX:e.clientX,clientY:e.clientY,track:e.currentTarget}),ve())},ue=e=>{if(!te.value||e.touches.length!==1||l.value.length<2)return;let t=e.changedTouches[0];t&&(de({source:`touch`,id:t.identifier,clientX:t.clientX,clientY:t.clientY,track:e.currentTarget}),be())},de=({source:e,id:t,clientX:n,clientY:r,track:i})=>{v!==null&&(cancelAnimationFrame(v),v=null,g.value=!1),y!==null&&(cancelAnimationFrame(y),y=null),p.value=!0,h.value={source:e,id:t,startX:n,startY:r,startPosition:c.value,startTranslate:S.value,direction:null,track:i}},fe=(e,t,n,r)=>{let i=h.value;if(!i||i.id!==e)return!1;let a=t-i.startX,o=n-i.startY;if(i.direction===null){if(Math.abs(a)<ZY&&Math.abs(o)<ZY)return!1;i.direction=Math.abs(a)>Math.abs(o)?`horizontal`:`vertical`,i.direction===`horizontal`?(r?.(i),f.value=!1,m.value=i.startTranslate,g.value=!0):(h.value=null,Se())}if(i.direction!==`horizontal`)return!1;let{clientWidth:c}=i.track,l=-ne.value/s.value;return m.value=eF(i.startTranslate+a/c,l,0),!0},pe=e=>{fe(e.pointerId,e.clientX,e.clientY,t=>{me(t.track,e.pointerId)})},me=(e,t)=>
45{try{e.setPointerCapture(t)}catch{}},he=e=>{let t=h.value;if(!t||t.source!==`pointer`||t.id!==e.pointerId)return;let n=e.clientX-t.startX;Oe(),t.direction===`horizontal`&&Math.abs(n)>QY&&re(ie(t.startPosition,n<0?1:-1))},_e=e=>{h.value?.source===`pointer`&&h.value.id===e.pointerId&&Oe()},ve=()=>{document.addEventListener(`pointermove`,pe),document.addEventListener(`pointerup`,he),document.addEventListener(`pointercancel`,_e)},ye=()=>{document.removeEventListener(`pointermove`,pe),document.removeEventListener(`pointerup`,he),document.removeEventListener(`pointercancel`,_e)},be=()=>{document.addEventListener(`touchmove`,we,{passive:!1}),document.addEventListener(`touchend`,Te),document.addEventListener(`touchcancel`,Ee)},xe=()=>{document.removeEventListener(`touchmove`,we),document.removeEventListener(`touchend`,Te),document.removeEventListener(`touchcancel`,Ee)},Se=()=>{ye(),xe()},Ce=(e,t)=>Array.from(e).find(e=>e.identifier===t),we=e=>{let t=h.value;if(!t||t.source!==`touch`)return;if(e.touches.length!==1){Oe();return}let n=Ce(e.touches,t.id);n&&fe(t.id,n.clientX,n.clientY)&&e.cancelable&&e.preventDefault()},Te=e=>{let t=h.value;if(!t||t.source!==`touch`)return;let n=Ce(e.changedTouches,t.id);if(!n)return;let r=n.clientX-t.startX;Oe(),t.direction===`horizontal`&&Math.abs(r)>QY&&re(ie(t.startPosition,r<0?1:-1))},Ee=e=>{let t=h.value;t?.source===`touch`&&Ce(e.changedTouches,t.id)&&Oe()},De=e=>{e.target===e.currentTarget&&h.value?.source===`pointer`&&h.value.id===e.pointerId&&(y=requestAnimationFrame(()=>{y=null,h.value?.source===`pointer`&&h.value.id===e.pointerId&&Oe()}))},Oe=()=>{Se(),y!==null&&(cancelAnimationFrame(y),y=null),h.value=null,f.value=!0,g.value&&(v=requestAnimationFrame(()=>{g.value=!1,v=null}))},A=()=>{if(l.value.length===0){re(0);return}let e=c.value>=ne.value-$Y;if(d.value&&e){re(0);return}e&&(ne.value>$Y||l.value.length===1)&&i(`autoscroll-end`),ae()},ke={onEvent:e=>{re(ie(c.value,e))}};return t({next:ae,prev:oe}),(e,t)=>(V(),H(`div`,{ondragstart:`return false;`,class:k([e.$style.container,M(u)&&e.$style.container_draggable])},[qn((V(),H(`div`,{class:k(e.$style.scroller)},[W(`div`,{class:k(e.$style.wrapper)},[W(`div`,{class:k([e.$style.items,w.value&&e.$style.items_transitioned]),style:ge(C.value),onPointerdown:le,onTouchstart:ue,onLostpointercapture:De},[(V(!0),H(B,null,vi(ee.value,(t,n)=>(V(),H(`div`,{key:n+D.value,style:ge(x.value),"data-index":n+D.value,class:k([e.$style.item,g.value&&e.$style.item_notClickable])},[R(e.$slots,`default`,{item:t,index:n+D.value})],14,YY))),128))],38)],2)],2)),[[M(JY),ke]])],2))}}),[[`__cssModules`,{$style:{container:`_container_yen20_1`,container_draggable:`_container_draggable_yen20_6`,scroller:`_scroller_yen20_18`,items:`_items_yen20_34`,items_transitioned:`_items_transitioned_yen20_38`,wrapper:`_wrapper_yen20_42`,item:`_item_yen20_34`,item_notClickable:`_item_notClickable_yen20_53`}}]]),tX=function(){return tX=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},tX.apply(this,arguments)},nX;(function(e){e.QrCode=function(){function a(e,t,n,i){if(this.version=e,this.errorCorrectionLevel=t,this.modules=[],this.isFunction=[],e<a.MIN_VERSION||e>a.MAX_VERSION)throw RangeError(`Version value out of range`);if(i<-1||i>7)throw RangeError(`Mask value out of range`);this.size=e*4+17;for(var o=[],s=0;s<this.size;s++)o.push(!1);for(var s=0;s<this.size;s++)this.modules.push(o.slice()),this.isFunction.push(o.slice());this.drawFunctionPatterns();var c=this.addEccAndInterleave(n);if(this.drawCodewords(c),i==-1)for(var l=1e9,s=0;s<8;s++){this.applyMask(s),this.drawFormatBits(s);var u=this.getPenaltyScore();u<l&&(i=s,l=u),this.applyMask(s)}r(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}return a.encodeText=function(t,n){var r=e.QrSegment.makeSegments(t);return a.encodeSegments(r,n)},a.encodeBinary=function(t,n){var r=e.QrSegment.makeBytes(t);return a.encodeSegments([r],n)},a.encodeSegments=function(e,n,o,s,c,l){if(o===void 0&&(o=1),s===void 0&&(s=40),c===void 0&&(c=-1),l===void 0&&(l=!0),!(a.MIN_VERSION<=o&&o<=s&&s<=a.MAX_VERSION)||c<-1||c>7)throw RangeError(`Invalid value`);for(var u=o,d;;u++){var f=a.getNumDataCodewords(u,n)*8,p=i.getTotalBits(e,u);if(p<=f){d=p;break}if(u>=s)throw RangeError(`Data too long`)}for(var m=0,h=[a.Ecc.MEDIUM,a.Ecc.QUARTILE,a.Ecc.HIGH];m<h.length;m++){var g=h[m];l&&d<=a.getNumDataCodewords(u,g)*8&&(n=g)}for(var v=[],y=0,b=e;y<b.length;y++){var x=b[y];t(x.mode.modeBits,4,v),t(x.numChars,x.mode.numCharCountBits(u),v);for(var S=0,C=x.getData();S<C.length;S++){var w=C[S];v.push(w)}}r(v.length==d);var T=a.getNumDataCodewords(u,n)*8;r(v.length<=T),t(0,Math.min(4,T-v.length),v),t(0,(8-v.length%8)%8,v),r(v.length%8==0);for(var E=236;v.length<T;E^=253)t(E,8,v);for(var D=[];D.length*8<v.length;)D.push(0);return v.forEach(function(e,t){return D[t>>>3]|=e<<7-(t&7)}),new a(u,n,D,c)},a.prototype.getModule=function(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]},a.prototype.getModules=function(){return this.modules},a.prototype.drawFunctionPatterns=function(){for(var e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var t=this.getAlignmentPatternPositions(),n=t.length,e=0;e<n;e++)for(var r=0;r<n;r++)e==0&&r==0||e==0&&r==n-1||e==n-1&&r==0||this.drawAlignmentPattern(t[e],t[r]);this.drawFormatBits(0),this.drawVersion()},a.prototype.drawFormatBits=function(e){for(var t=this.errorCorrectionLevel.formatBits<<3|e,i=t,a=0;a<10;a++)i=i<<1^(i>>>9)*1335;var o=(t<<10|i)^21522;r(!(o>>>15));for(var a=0;a<=5;a++)this.setFunctionModule(8,a,n(o,a));this.setFunctionModule(8,7,n(o,6)),this.setFunctionModule(8,8,n(o,7)),this.setFunctionModule(7,8,n(o,8));for(var a=9;a<15;a++)this.setFunctionModule(14-a,8,n(o,a));for(var a=0;a<8;a++)this.setFunctionModule(this.size-1-a,8,n(o,a));for(var a=8;a<15;a++)this.setFunctionModule(8,this.size-15+a,n(o,a));this.setFunctionModule(8,this.size-8,!0)},a.prototype.drawVersion=function(){if(!(this.version<7)){for(var e=this.version,t=0;t<12;t++)e=e<<1^(e>>>11)*7973;var i=this.version<<12|e;r(!(i>>>18));for(var t=0;t<18;t++){var a=n(i,t),o=this.size-11+t%3,s=Math.floor(t/3);this.setFunctionModule(o,s,a),this.setFunctionModule(s,o,a)}}},a.prototype.drawFinderPattern=function(e,t){for(var n=-4;n<=4;n++)for(var r=-4;r<=4;r++){var i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,o=t+n;0<=a&&a<this.size&&0<=o&&o<this.size&&this.setFunctionModule(a,o,i!=2&&i!=4)}},a.prototype.drawAlignmentPattern=function(e,t){for(var n=-2;n<=2;n++)for(var r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,Math.max(Math.abs(r),Math.abs(n))!=1)},a.prototype.setFunctionModule=function(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0},a.prototype.addEccAndInterleave=function(e){var t=this.version,n=this.errorCorrectionLevel;if(e.length!=a.getNumDataCodewords(t,n))throw RangeError(`Invalid argument`);for(var i=a.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][t],o=a.ECC_CODEWORDS_PER_BLOCK[n.ordinal][t],s=Math.floor(a.getNumRawDataModules(t)/8),c=i-s%i,l=Math.floor(s/i),u=[],d=a.reedSolomonComputeDivisor(o),f=0,p=0;f<i;f++){var m=e.slice(p,p+l-o+(f<c?0:1));p+=m.length;var h=a.reedSolomonComputeRemainder(m,d);f<c&&m.push(0),u.push(m.concat(h))}for(var g=[],v=function(e){u.forEach(function(t,n){(e!=l-o||n>=c)&&g.push(t[e])})},f=0;f<u[0].length;f++)v(f);return r(g.length==s),g},a.prototype.drawCodewords=function(e){if(e.length!=Math.floor(a.getNumRawDataModules(this.version)/8))throw RangeError(`Invalid argument`);for(var t=0,i=this.size-1;i>=1;i-=2){i==6&&(i=5);for(var o=0;o<this.size;o++)for(var s=0;s<2;s++){var c=i-s,l=i+1&2?o:this.size-1-o;!this.isFunction[l][c]&&t<e.length*8&&(this.modules[l][c]=n(e[t>>>3],7-(t&7)),t++)}}r(t==e.length*8)}
45,a.prototype.applyMask=function(e){if(e<0||e>7)throw RangeError(`Mask value out of range`);for(var t=0;t<this.size;t++)for(var n=0;n<this.size;n++){var r=void 0;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw Error(`Unreachable`)}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}},a.prototype.getPenaltyScore=function(){for(var e=0,t=0;t<this.size;t++){for(var n=!1,i=0,o=[0,0,0,0,0,0,0],s=0;s<this.size;s++)this.modules[t][s]==n?(i++,i==5?e+=a.PENALTY_N1:i>5&&e++):(this.finderPenaltyAddHistory(i,o),n||(e+=this.finderPenaltyCountPatterns(o)*a.PENALTY_N3),n=this.modules[t][s],i=1);e+=this.finderPenaltyTerminateAndCount(n,i,o)*a.PENALTY_N3}for(var s=0;s<this.size;s++){for(var n=!1,c=0,o=[0,0,0,0,0,0,0],t=0;t<this.size;t++)this.modules[t][s]==n?(c++,c==5?e+=a.PENALTY_N1:c>5&&e++):(this.finderPenaltyAddHistory(c,o),n||(e+=this.finderPenaltyCountPatterns(o)*a.PENALTY_N3),n=this.modules[t][s],c=1);e+=this.finderPenaltyTerminateAndCount(n,c,o)*a.PENALTY_N3}for(var t=0;t<this.size-1;t++)for(var s=0;s<this.size-1;s++){var l=this.modules[t][s];l==this.modules[t][s+1]&&l==this.modules[t+1][s]&&l==this.modules[t+1][s+1]&&(e+=a.PENALTY_N2)}for(var u=0,d=0,f=this.modules;d<f.length;d++)u=f[d].reduce(function(e,t){return e+ +!!t},u);var p=this.size*this.size,m=Math.ceil(Math.abs(u*20-p*10)/p)-1;return r(0<=m&&m<=9),e+=m*a.PENALTY_N4,r(0<=e&&e<=2568888),e},a.prototype.getAlignmentPatternPositions=function(){if(this.version==1)return[];for(var e=Math.floor(this.version/7)+2,t=Math.floor((this.version*8+e*3+5)/(e*4-4))*2,n=[6],r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n},a.getNumRawDataModules=function(e){if(e<a.MIN_VERSION||e>a.MAX_VERSION)throw RangeError(`Version number out of range`);var t=(16*e+128)*e+64;if(e>=2){var n=Math.floor(e/7)+2;
45t-=(25*n-10)*n-55,e>=7&&(t-=36)}return r(208<=t&&t<=29648),t},a.getNumDataCodewords=function(e,t){return Math.floor(a.getNumRawDataModules(e)/8)-a.ECC_CODEWORDS_PER_BLOCK[t.ordinal][e]*a.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][e]},a.reedSolomonComputeDivisor=function(e){if(e<1||e>255)throw RangeError(`Degree out of range`);for(var t=[],n=0;n<e-1;n++)t.push(0);t.push(1);for(var r=1,n=0;n<e;n++){for(var i=0;i<t.length;i++)t[i]=a.reedSolomonMultiply(t[i],r),i+1<t.length&&(t[i]^=t[i+1]);r=a.reedSolomonMultiply(r,2)}return t},a.reedSolomonComputeRemainder=function(e,t){for(var n=t.map(function(e){return 0}),r=function(e){var r=e^n.shift();n.push(0),t.forEach(function(e,t){return n[t]^=a.reedSolomonMultiply(e,r)})},i=0,o=e;i<o.length;i++){var s=o[i];r(s)}return n},a.reedSolomonMultiply=function(e,t){if(e>>>8||t>>>8)throw RangeError(`Byte out of range`);for(var n=0,i=7;i>=0;i--)n=n<<1^(n>>>7)*285,n^=(t>>>i&1)*e;return r(!(n>>>8)),n},a.prototype.finderPenaltyCountPatterns=function(e){var t=e[1];r(t<=this.size*3);var n=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(n&&e[0]>=t*4&&e[6]>=t?1:0)+(n&&e[6]>=t*4&&e[0]>=t?1:0)},a.prototype.finderPenaltyTerminateAndCount=function(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)},a.prototype.finderPenaltyAddHistory=function(e,t){t[0]==0&&(e+=this.size),t.pop(),t.unshift(e)},a.MIN_VERSION=1,a.MAX_VERSION=40,a.PENALTY_N1=3,a.PENALTY_N2=3,a.PENALTY_N3=40,a.PENALTY_N4=10,a.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],a.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],a}();function t(e,t,n){if(t<0||t>31||e>>>t)throw RangeError(`Value out of range`);for(var r=t-1;r>=0;r--)n.push(e>>>r&1)}function n(e,t){return!!(e>>>t&1)}function r(e){if(!e)throw Error(`Assertion error`)}var i=function(){function e(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw RangeError(`Invalid argument`);this.bitData=n.slice()}return e.makeBytes=function(n){for(var r=[],i=0,a=n;i<a.length;i++){var o=a[i];t(o,8,r)}return new e(e.Mode.BYTE,n.length,r)},e.makeNumeric=function(n){if(!e.isNumeric(n))throw RangeError(`String contains non-numeric characters`);for(var r=[],i=0;i<n.length;){var a=Math.min(n.length-i,3);t(parseInt(n.substring(i,i+a),10),a*3+1,r),i+=a}return new e(e.Mode.NUMERIC,n.length,r)},e.makeAlphanumeric=function(n){if(!e.isAlphanumeric(n))throw RangeError(`String contains unencodable characters in alphanumeric mode`);for(var r=[],i=0;i+2<=n.length;i+=2){var a=e.ALPHANUMERIC_CHARSET.indexOf(n.charAt(i))*45;a+=e.ALPHANUMERIC_CHARSET.indexOf(n.charAt(i+1)),t(a,11,r)}return i<n.length&&t(e.ALPHANUMERIC_CHARSET.indexOf(n.charAt(i)),6,r),new e(e.Mode.ALPHANUMERIC,n.length,r)},e.makeSegments=function(t){return t==``?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]},e.makeEci=function(n){var r=[];if(n<0)throw RangeError(`ECI assignment value out of range`);if(n<128)t(n,8,r);else if(n<16384)t(2,2,r),t(n,14,r);else if(n<1e6)t(6,3,r),t(n,21,r);else throw RangeError(`ECI assignment value out of range`);return new e(e.Mode.ECI,0,r)},e.isNumeric=function(t){return e.NUMERIC_REGEX.test(t)},e.isAlphanumeric=function(t){return e.ALPHANUMERIC_REGEX.test(t)},e.prototype.getData=function(){return this.bitData.slice()},e.getTotalBits=function(e,t){for(var n=0,r=0,i=e;r<i.length;r++){var a=i[r],o=a.mode.numCharCountBits(t);if(a.numChars>=1<<o)return 1/0;n+=4+o+a.bitData.length}return n},e.toUtf8ByteArray=function(e){e=encodeURI(e);for(var t=[],n=0;n<e.length;n++)e.charAt(n)==`%`?(t.push(parseInt(e.substring(n+1,n+3),16)),n+=2):t.push(e.charCodeAt(n));return t},e.NUMERIC_REGEX=/^[0-9]*$/,e.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,e.ALPHANUMERIC_CHARSET=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`,e}();e.QrSegment=i})(nX||={}),(function(e){(function(e){e.Ecc=function(){function e(e,t){this.ordinal=e,this.formatBits=t}return e.LOW=new e(0,1),e.MEDIUM=new e(1,0),e.QUARTILE=new e(2,3),e.HIGH=new e(3,2),e}()})(e.QrCode||={})})(nX||={}),(function(e){(function(e){e.Mode=function(){function e(e,t){this.modeBits=e,this.numBitsCharCount=t}return e.prototype.numCharCountBits=function(e){return this.numBitsCharCount[Math.floor((e+7)/17)]},e.NUMERIC=new e(1,[10,12,14]),e.ALPHANUMERIC=new e(2,[9,11,13]),e.BYTE=new e(4,[8,16,16]),e.KANJI=new e(8,[8,10,12]),e.ECI=new e(7,[0,0,0]),e}()})(e.QrSegment||={})})(nX||={});var rX=nX,iX=0;function aX(e){return e||`v-${iX++}`}
45var oX=`L`,sX=100,cX=0,lX=.1,uX=2,dX={L:rX.QrCode.Ecc.LOW,M:rX.QrCode.Ecc.MEDIUM,Q:rX.QrCode.Ecc.QUARTILE,H:rX.QrCode.Ecc.HIGH},fX=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})();function pX(e){return e in dX}function mX(e,t,n){var r=t>0&&e[t-1][n],i=t<e.length-1&&e[t+1][n],a=n>0&&e[t][n-1],o=n<e[t].length-1&&e[t][n+1];return{nw:!r&&!a,ne:!r&&!o,se:!i&&!o,sw:!i&&!a}}function hX(e,t,n){t===void 0&&(t=0),n===void 0&&(n=0);for(var r=[],i=Math.min(n,.5),a=0;a<e.length;a++)for(var o=0;o<e[a].length;o++)if(e[a][o]){var s=mX(e,a,o),c=s.nw,l=s.ne,u=s.se,d=s.sw,f=o+t,p=a+t;r.push(`M${f+(c?i:0)} ${p}`,`L${f+1-(l?i:0)} ${p}`),l&&r.push(`A${i} ${i} 0 0 1 ${f+1} ${p+i}`),r.push(`L${f+1} ${p+1-(u?i:0)}`),u&&r.push(`A${i} ${i} 0 0 1 ${f+1-i} ${p+1}`),r.push(`L${f+(d?i:0)} ${p+1}`),d&&r.push(`A${i} ${i} 0 0 1 ${f} ${p+1-i}`),r.push(`L${f} ${p+(c?i:0)}`),c&&r.push(`A${i} ${i} 0 0 1 ${f+i} ${p}`),r.push(`z`)}return r.join(``)}function gX(e,t){t===void 0&&(t=0);for(var n=[],r=0;r<e.length;r++)for(var i=e[r],a=null,o=0;o<i.length;o++){var s=i[o];if(!s&&a!==null){n.push(`M${a+t} ${r+t}h${o-a}v1H${a+t}z`),a=null;continue}if(o===i.length-1){if(!s)continue;a===null?n.push(`M${o+t},${r+t} h1v1H${o+t}z`):n.push(`M${a+t},${r+t} h${o+1-a}v1H${a+t}z`);continue}s&&a===null&&(a=o)}return n.join(``)}function _X(e,t,n,r){var i=r.width,a=r.height,o=r.x,s=r.y,c=e.length+n*2,l=Math.floor(t*lX),u=c/t,d=(i||l)*u,f=(a||l)*u;return{x:o==null?e.length/2-d/2:o*u,y:s==null?e.length/2-f/2:s*u,h:f,w:d,borderRadius:(r.borderRadius||0)*u}}function vX(e){var t=q(function(){return(e.margin??cX)>>>0}),n=q(function(){var t=pX(e.level)?e.level:oX;return rX.QrCode.encodeText(e.value,dX[t]).getModules()}),r=q(function(){return n.value.length+t.value*2}),i=q(function(){return e.radius>0?hX(n.value,t.value,e.radius):gX(n.value,t.value)}),a=q(function(){if(!e.imageSettings.src)return null;var r=_X(n.value,e.size,t.value,e.imageSettings);return{x:r.x+t.value,y:r.y+t.value,width:r.w,height:r.h,borderRadius:r.borderRadius}});return{margin:t,numCells:r,cells:n,fgPath:i,imageProps:a,imageBorderProps:q(function(){if(!e.imageSettings.excavate||!a.value)return null;var t=uX/(e.size/r.value);return{x:a.value.x-t,y:a.value.y-t,width:a.value.width+t*2,height:a.value.height+t*2,borderRadius:a.value.borderRadius}})}}function yX(e,t){var n=document.createElement(`a`);n.download=t,n.href=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)}var bX={value:{type:String,required:!0,default:``},size:{type:Number,default:sX},level:{type:String,default:oX,validator:function(e){return pX(e)}},background:{type:String,default:`#fff`},foreground:{type:String,default:`#000`},margin:{type:Number,default:cX,validator:function(e){return e>=0}},imageSettings:{type:Object,default:function(){return{}}},gradient:{type:Boolean,default:!1},gradientType:{type:String,default:`linear`,validator:function(e){return[`linear`,`radial`].indexOf(e)>-1}},gradientStartColor:{type:String,default:`#000`},gradientEndColor:{type:String,default:`#fff`},radius:{type:Number,default:0,validator:function(e){return!isNaN(e)&&e>=0&&e<=.5}},id:{type:String,required:!1}},xX=tX(tX({},bX),{renderAs:{type:String,required:!1,default:`canvas`,validator:function(e){return[`canvas`,`svg`].indexOf(e)>-1}}}),SX=L({name:`QRCodeSvg`,props:bX,setup:function(e,t){var n=vX(e),r=n.numCells,i=n.fgPath,a=n.imageProps,o=n.imageBorderProps,s=j(),c=aX(e.id),l=`qrcode.vue-gradient-${c}`,u=`qrcode.vue-logo-clip-path-${c}`,d=q(function(){if(!e.gradient)return null;var t=e.gradientType===`linear`?{x1:`0%`,y1:`0%`,x2:`100%`,y2:`100%`}:{cx:`50%`,cy:`50%`,r:`50%`,fx:`50%`,fy:`50%`};return Oo(e.gradientType===`linear`?`linearGradient`:`radialGradient`,tX({id:l},t),[Oo(`stop`,{offset:`0%`,style:{stopColor:e.gradientStartColor}}),Oo(`stop`,{offset:`100%`,style:{stopColor:e.gradientEndColor}})])}),f=q(function(){if(!a.value)return null;var e=a.value.borderRadius;return e<=0?null:Oo(`clipPath`,{id:u},[Oo(`rect`,{x:a.value.x,y:a.value.y,width:a.value.width,height:a.value.height,rx:e,ry:e})])}),p=function(e){return`data:image/svg+xml;charset=utf-8,`+encodeURIComponent(`<?xml version="1.0" standalone="no"?>
45`+new XMLSerializer().serializeToString(e))};return t.expose({toDataURL:function(){var e=s.value;if(e)return p(e)},download:function(e){e===void 0&&(e=`qrcode.svg`);var t=s.value;t&&yX(p(t),e)}}),function(){return Oo(`svg`,{ref:s,width:e.size,height:e.size,xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 ${r.value} ${r.value}`,role:`img`},[Oo(`defs`,{},[d.value,f.value].filter(Boolean)),Oo(`rect`,{width:`100%`,height:`100%`,fill:e.background}),Oo(`path`,{fill:e.gradient?`url(#${l})`:e.foreground,d:i.value}),o.value&&Oo(`rect`,{x:o.value.x,y:o.value.y,width:o.value.width,height:o.value.height,fill:e.background,rx:o.value.borderRadius,ry:o.value.borderRadius}),e.imageSettings.src&&a.value&&Oo(`image`,tX({href:e.imageSettings.src,crossorigin:e.imageSettings.crossOrigin,"clip-path":a.value.borderRadius>0?`url(#${u})`:void 0},a.value))])}}}),CX=L({name:`QRCodeCanvas`,props:bX,setup:function(e,t){var n=vX(e),r=n.margin,i=n.cells,a=n.numCells,o=n.fgPath,s=n.imageProps,c=n.imageBorderProps,l=j(null),u=j(null),d=function(e,t,n,r,i,a){e.beginPath(),e.roundRect?e.roundRect(t,n,r,i,a):e.rect(t,n,r,i)},f=function(){var t=e.size,n=e.background,f=e.foreground,p=e.gradient,m=e.gradientType,h=e.gradientStartColor,g=e.gradientEndColor,v=l.value;if(v){var y=v.getContext(`2d`);if(y){var b=u.value,x=typeof window<`u`&&window.devicePixelRatio||1,S=t/a.value*x;if(v.height=v.width=t*x,y.setTransform(S,0,0,S,0,0),y.fillStyle=n,y.fillRect(0,0,a.value,a.value),p){var C=void 0;C=m===`linear`?y.createLinearGradient(0,0,a.value,a.value):y.createRadialGradient(a.value/2,a.value/2,0,a.value/2,a.value/2,a.value/2),C.addColorStop(0,h),C.addColorStop(1,g),y.fillStyle=C}else y.fillStyle=f;if(fX?y.fill(new Path2D(o.value)):i.value.forEach(function(e,t){e.forEach(function(e,n){e&&y.fillRect(n+r.value,t+r.value,1,1)})}),e.imageSettings.src&&b&&b.naturalWidth!==0&&b.naturalHeight!==0&&s.value){if(c.value){var w=c.value;y.fillStyle=e.background,d(y,w.x,w.y,w.width,w.height,w.borderRadius),y.fill()}var T=s.value.borderRadius;T>0?(y.save(),d(y,s.value.x,s.value.y,s.value.width,s.value.height,T),y.clip(),y.drawImage(b,s.value.x,s.value.y,s.value.width,s.value.height),y.restore()):y.drawImage(b,s.value.x,s.value.y,s.value.width,s.value.height)}}}};return ti(f),$n(f,{flush:`post`}),t.expose({toDataURL:function(e,t){return l.value?.toDataURL(e,t)},download:function(e){e===void 0&&(e=`qrcode.png`);var t=l.value;t&&yX(t.toDataURL(`image/png`),e)}}),function(){return Oo(B,[Oo(`canvas`,tX(tX({},t.attrs),{ref:l,role:`img`,style:tX(tX({},t.attrs.style),{width:`${e.size}px`,height:`${e.size}px`})})),e.imageSettings.src&&Oo(`img`,{ref:u,src:e.imageSettings.src,crossorigin:e.imageSettings.crossOrigin,style:{display:`none`},onLoad:f})])}}}),wX=L({name:`Qrcode`,props:xX,setup:function(e,t){var n=j();return t.expose({toDataURL:function(e,t){var r;return((r=n.value)?.toDataURL)?.call(r,e,t)},download:function(e){var t;return((t=n.value)?.download)?.call(t,e)}}),function(){return Oo(e.renderAs===`svg`?SX:CX,{ref:n,value:e.value,size:e.size,margin:e.margin,level:e.level,background:e.background,foreground:e.foreground,imageSettings:e.imageSettings,gradient:e.gradient,gradientType:e.gradientType,gradientStartColor:e.gradientStartColor,gradientEndColor:e.gradientEndColor,radius:e.radius,id:e.id})}}}),TX=[`data-appearance`,`data-initialized`],EX=L({__name:`PrimitiveTabs`,props:{appearance:{}},setup(e){us(e=>({v7f4f0705:a.value,v6b2ea688:o.value}));let t=j(null),n=j(!1),r=j(0),i=j(0),a=q(()=>`${r.value}px`),o=q(()=>`${i.value}px`),s=null;ti(()=>{s=setTimeout(()=>{n.value=!0},1)}),ii(()=>{s&&=(clearTimeout(s),null)});let c=e=>{let n=e.detail,a=t.value;r.value=n.offsetLeft,i.value=n.clientWidth,a&&lF(a,n,`horizontal`)};return(r,i)=>(V(),H(`nav`,ao({ref_key:`rootRef`,ref:t,class:`smed-primitive-tabs`,"data-appearance":e.appearance,"data-initialized":n.value},{[ce(M(DB))]:Qs(c,[`stop`])}),[R(r.$slots,`default`)],16,TX))}});function DX(e,{value:t}){t&&e.dispatchEvent(new CustomEvent(`smed-active`,{detail:e,bubbles:!0}))}var OX={mounted:DX,updated:DX},kX={exact:!1,active:!1,disabled:!1},AX=[`data-appearance`,`data-active`,`href`,`onClick`],jX=[`data-appearance`,`data-active`,`disabled`,`tabindex`],MX=L({__name:`Tab`,props:z({to:{},replace:{type:Boolean},appearance:{},exact:{type:Boolean},active:{type:Boolean},disabled:{type:Boolean}},kX),setup(e){return(t,n)=>{let r=fi(`router-link`);return e.to&&!e.disabled?(V(),U(r,{key:0,custom:``,to:e.to,replace:e.replace},{default:P(({navigate:n,isActive:r,isExactActive:i,href:a})=>[qn((V(),H(`a`,{class:`smed-tab`,"data-appearance":e.appearance,"data-active":e.exact?i:r,href:a,onClick:n},[R(t.$slots,`default`)],8,AX)),[[M(OX),e.exact?i:r]])]),_:3},8,[`to`,`replace`])):qn((V(),H(`button`,{key:1,type:`button`,class:`smed-tab`,"data-appearance":e.appearance,"data-active":e.active,disabled:e.disabled,tabindex:e.disabled?`-1`:0},[R(t.$slots,`default`)],8,jX)),[[M(OX),e.active]])}}}),NX={key:0},PX=L({__name:`LinkOrButton`,props:{to:{}},setup(e){return(t,n)=>{let r=fi(`router-link`);return e.to?(V(),U(r,{key:1,to:e.to},{default:P(({isActive:e,isExactActive:n})=>[R(t.$slots,`default`,{isActive:e,isExactActive:n})]),_:3},8,[`to`])):(V(),H(`button`,NX,[R(t.$slots,`default`,{isActive:!1,isExactActive:!1})]))}}}),FX=Z(L({name:`CellButton`,__name:`CellButton`,props:z({icon:{},avatar:{},rounded:{type:Boolean},active:{type:Boolean},to:{},routeExactMatch:{type:Boolean},disabled:{type:Boolean},hasArrow:{type:[Boolean,null]},clickable:{type:Boolean},colorClass:{},backgroundClass:{},rightColorClass:{}},{rounded:!0,clickable:!0,hasArrow:null}),setup(e){let{icon:t,avatar:n,to:r,clickable:i,disabled:a,hasArrow:o}=N(e),s=Ei(),c=q(()=>!!(t&&t.value)||!!(n&&n.value)||!!s.left),l=q(()=>n&&n.value?{rounded:!1,...n.value}:null),u=q(()=>i.value&&!a.value?r?.value:void 0),d=q(()=>{let e=o.value,t=a.value,n=r?.value;return!t&&(e===null?!!n:e)});return(n,r)=>qn((V(),U(M(PX),{class:k([n.$style.root,!c.value&&n.$style.root_emptyLeft,e.rounded&&n.$style.root_roun
45ded,M(i)&&!M(a)&&n.$style.root_clickable,e.backgroundClass&&[n.$style.root_custom,e.backgroundClass]]),tabindex:M(i)&&!M(a)?`0`:`-1`,to:u.value},{default:P(({isActive:r,isExactActive:i})=>[e.active||(e.routeExactMatch?i:r)?(V(),H(`span`,{key:0,class:k(n.$style.activeRoute)},null,2)):K(``,!0),c.value?(V(),H(`span`,{key:1,class:k([`smed-space_right-3`,n.$style.left])},[R(n.$slots,`left`,{},()=>[M(t)?(V(),H(`div`,{key:0,class:k([n.$style.icon,e.colorClass])},[G(M(jN),{name:M(a)?`lock`:M(t)},null,8,[`name`])],2)):K(``,!0),l.value?(V(),U(M(Dq),ao({key:1},l.value,{size:`lg`}),null,16)):K(``,!0)])],2)):K(``,!0),W(`span`,{class:k([`smed-text_body-sm smed-text_bold`,[n.$style.content,e.colorClass]])},[R(n.$slots,`default`)],2),n.$slots.right?(V(),H(`span`,{key:2,class:k([`smed-space_left-1 smed-text_body-sm smed-text_bold`,[n.$style.right,e.rightColorClass]])},[R(n.$slots,`right`)],2)):K(``,!0),d.value?(V(),H(`span`,{key:3,class:k([`smed-space_left-1`,[n.$style.right,e.rightColorClass]])},[G(M(hN),{name:`@smed.arrow-right`})],2)):K(``,!0)]),_:3},8,[`class`,`tabindex`,`to`])),[[M(LN)]])}}),[[`__cssModules`,{$style:{root:`_root_19n7n_1`,root_emptyLeft:`_root_emptyLeft_19n7n_41`,root_rounded:`_root_rounded_19n7n_48`,root_clickable:`_root_clickable_19n7n_51`,root_custom:`_root_custom_19n7n_59`,activeRoute:`_activeRoute_19n7n_68`,left:`_left_19n7n_79`,content:`_content_19n7n_83`,icon:`_icon_19n7n_87`,right:`_right_19n7n_102`,wrapper:`_wrapper_19n7n_108`}}]]),IX=Symbol(),LX=20,RX=4,zX=Z(L({__name:`ContextMenu`,props:{edgeGap:{},openOn:{default:`contextmenu`},disabled:{type:Boolean,default:!1}},setup(e){let t=F(CM,IH),n=F(IX,!1);Yn(IX,!0);let r=j(null),i=j(),a=j(!1),{insideZone:o}=AV(r,i),s=e,c=j(n?{left:0,top:0}:null),l=j(null),u=q(()=>i.value?.$el),d=e=>{e.preventDefault(),a.value=!0,c.value={left:e.x,top:e.y}},f=()=>t.value?t.value.getBoundingClientRect():{left:0,top:document.body.clientHeight,width:document.body.clientWidth},p=q(()=>{let e=l.value;return e?{top:`${e.top}px`,left:`${e.left}px`}:{}}),m=s.disabled||n?{}:{[s.openOn]:d},h=iu(e=>{a.value=e},200),g={onEvent:e=>{n&&h(e)}},v=()=>{let e=r.value;e&&tP(e)},y={onEvent:e=>{n&&(h(e),e||v())}},b=q(()=>s.edgeGap||LX),x=(e,t,r)=>{let i=f(),a=0,o=0;if(n){let{top:t,right:n}=e.getBoundingClientRect();a=t,o=n}else{let{left:e,top:t}=r;a=t,o=e}let s=a-i.top,c=o-i.left+RX,{width:u,height:d}=t.getBoundingClientRect();if(n){if(i.width<=c+u){let{left:t}=e.getBoundingClientRect();c=t-u}if(i.top<=a+d){let{bottom:t}=e.getBoundingClientRect();s=t-i.top-d}}else d>i.top-2*b.value?(s-=d/2,t.style.maxHeight=`${i.top-2*b.value}px`,t.style.overflowY=`auto`,s=b.value-i.top):(i.width<=c+u&&(c=o-u),i.top<=a+d&&(s=-d-b.value));l.value={left:c,top:s}},S=()=>{a.value=!1,n&&v()};return I(o,e=>{e||S()}),I([r,u,c],([e,t,n])=>{e&&t&&n&&x(e,t,n)},{immediate:!0}),(e,t)=>(V(),H(`div`,{class:k(e.$style.container)},[qn((V(),H(`div`,ao({ref_key:`zoneRef`,ref:r,tabindex:`0`,class:e.$style.content},xi(M(m),!0)),[R(e.$slots,`default`,{close:S})],16)),[[M(uP),g]]),G(M(cV),{"append-to":`#smed_dropdown-host`},{default:P(()=>[G(Uo,{name:`fade`},{default:P(()=>[a.value?qn((V(),U(M($H),{key:0,ref_key:`childRef`,ref:i,class:k(e.$style.dropdown),style:ge(p.value)},{default:P(()=>[R(e.$slots,`menu`,{close:S})]),_:3},8,[`class`,`style`])),[[M(uP),y]]):K(``,!0)]),_:3})]),_:3})],2))}}),[[`__cssModules`,{$style:{container:`_container_sfkbg_1`,content:`_content_sfkbg_7`,dropdown:`_dropdown_sfkbg_14`}}]]),BX=`smed-video-connector`,VX=`smed-video-event`,HX=()=>new CustomEvent(VX,{detail:`started`,bubbles:!0}),UX=()=>new CustomEvent(VX,{detail:`stopped`,bubbles:!0});function WX(e){(e.currentTarget||e.target)?.dispatchEvent(HX())}function GX(e){(e.currentTarget||e.target)?.dispatchEvent(UX())}function KX(e){e.dispatchEvent(new CustomEvent(BX,{detail:e,bubbles:!0})),e.addEventListener(`play`,WX),e.addEventListener(`pause`,GX),e.addEventListener(`ended`,GX)}function qX(e){e.removeEventListener(`play`,WX),e.removeEventListener(`pause`,GX),e.removeEventListener(`ended`,GX)}var JX={mounted:KX,beforeUnmount:qX},YX=[`src`],XX=[`src`],ZX=[`data-pause`],QX=L({__name:`MediaPreview`,props:{file:{},playable:{type:Boolean}},setup(e){let{file:t}=N(e),n=F(HM,!1),r=j(null),i=j(!1),a=q(()=>{let e=t?.value;return e?!n&&e instanceof File?window.URL.createObjectURL(e):e?.src||``:``}),o=q(()=>{let e=t?.value;
45return e&&e.type?Xl(e.type):``}),s=()=>{i.value&&=!1},c=e=>{r.value=e.detail},l=e=>{i.value=e.detail===`started`};return I(a,(e,t,r)=>{r(()=>{e.startsWith(`blob:`)&&!n&&window.URL.revokeObjectURL(e)})}),I([r,i],([e,t])=>{e&&(t?e.play():e.pause())},{immediate:!0}),(t,n)=>(V(),H(`div`,ao({class:`smed-media-preview`},{[ce(M(VX))]:Qs(l,[`stop`])},{[ce(M(BX))]:Qs(c,[`stop`])}),[R(t.$slots,`default`,{},()=>[o.value===`video`?qn((V(),H(`video`,{key:0,muted:``,playsinline:``,src:a.value},null,8,YX)),[[M(JX)]]):o.value===`image`?(V(),H(`img`,{key:1,alt:``,src:a.value},null,8,XX)):K(``,!0)]),e.playable&&r.value?(V(),H(`div`,{key:0,class:`smed-media-preview__playable`,"data-pause":!i.value,onClick:s},[i.value?K(``,!0):(V(),U(M(FB),{key:0,color:`_control`,icon:`play`,onClick:n[0]||=Qs(e=>i.value=!i.value,[`stop`,`prevent`])}))],8,ZX)):K(``,!0)],16))}}),$X={format:`ÐевеÑнÑй ÑоÑÐ¼Ð°Ñ Ñайла`,size:`ÐÑевÑÑен макÑималÑнÑй ÑÐ°Ð·Ð¼ÐµÑ Ñайла`},eZ={allowDelete:!0},tZ=[`Ð`,`ÐÐ`,`ÐÐ`,`ÐÐ`];function nZ(e){let t=e&&!Number.isNaN(e)&&Number.isFinite(e)?e:0,n=0;for(;Math.abs(Math.trunc(t))>=1e3&&n!==tZ.length-1;)t=Number(t)/1e3,n+=1;let r=t.toFixed(1).replace(`.`,`,`);return`${r.split(`,`)[1]===`0`?Math.trunc(t).toString():r} ${tZ[n]}`}var rZ={class:`smed-file-preview__content`},iZ={key:0,class:`smed-file-preview__size`},aZ={key:1,class:`smed-text_bold`},oZ=L({name:`FilePreview`,__name:`FilePreview`,props:z({state:{},file:{},allowDelete:{type:Boolean}},eZ),emits:[`onDelete`],setup(e,{emit:t}){let n=e,r=t,{file:i,state:a}=N(n),o=F(HM,!1),s=q(()=>{let e=i.value;return e&&e.errorReason?$X[e.errorReason]||e.errorReason:`ÐÑибка загÑÑзки`}),c=q(()=>a?.value===`loading`),l=q(()=>a?.value===`error`),u=q(()=>i.value?.src),d=q(()=>u.value?`a`:`div`),f=q(()=>d.value===`a`),p=q(()=>c.value?`@smed.spinner`:`@smed.document`),m=q(()=>{let e=i.value;if(!(!o&&e instanceof File)&&(!e.src||!e.type))return!1;let t=e.type?Xl(e.type):``;return t===`image`||t===`video`}),h=q(()=>nZ(i.value.size||0));return(t,n)=>(V(),U(mi(d.value),{ref:`noreferrer noopener`,target:`_blank`,class:`smed-file-preview`,"data-link":f.value,href:u.value,"data-invalid":l.value},{default:P(()=>[W(`div`,rZ,[!c.value&&(m.value||t.$slots.default)?(V(),U(M(QX),{key:0,size:`sm`,class:`smed-file-preview__media smed-space_right-3`,file:M(i)},{default:P(()=>[t.$slots.default?R(t.$slots,`default`,{file:M(i)},void 0,void 0,0):K(``,!0)]),_:3},8,[`file`])):(V(),U(M(hN),{key:1,name:p.value,size:`lg`,class:`smed-space_right-3`},null,8,[`name`])),W(`span`,null,A(M(i)?.name),1),e.allowDelete?(V(),U(M(FB),{key:2,color:`text`,class:`smed-space_left-3`,type:`button`,icon:`close-rounded`,size:`sm`,disabled:c.value,onClick:n[0]||=Qs(e=>r(`onDelete`),[`stop`,`prevent`])},null,8,[`disabled`])):K(``,!0)]),M(i).size?(V(),H(`p`,iZ,A(h.value),1)):K(``,!0),l.value?(V(),H(`p`,aZ,A(s.value),1)):K(``,!0)]),_:3},8,[`data-link`,`href`,`data-invalid`]))}});function sZ(e){e.dispatchEvent(new CustomEvent(EB,{detail:e,bubbles:!0}))}function cZ(e){e.dispatchEvent(new CustomEvent(EB,{detail:null,bubbles:!0}))}var lZ={mounted:sZ,beforeUnmount:cZ},uZ={label:``,rows:9,size:`md`,maxLength:null,modelModifiers:fH,hasCleaner:!0},dZ=[`data-size`,`data-state`,`data-label`,`data-raized`],fZ={class:`smed-base-textarea__wrapper`},pZ=[`data-expandable`],mZ=[`for`,`data-raized`],hZ=[`data-oneline`,`data-hidden`],gZ={class:`smed-base-textarea__scrolltogether`},_Z={"aria-hidden":`true`,class:`smed-base-textarea__pseudo`},vZ=[`id`,`value`,`placeholder`,`disabled`,`readonly`],yZ={key:0,class:`smed-base-textarea__footer`},bZ=[`data-state`],xZ={key:1,class:`smed-base-textarea__counter`},SZ=L({name:`BaseTextarea`,__name:`BaseTextarea`,props:z({modelValue:{},modelModifiers:{},label:{},expandable:{type:Boolean},rows:{},invalid:{type:Boolean},disabled:{type:Boolean},placeholder:{},description:{},readonly:{type:Boolean},size:{},maxLength:{},required:{type:Boolean},pseudoHovered:{type:Boolean},hasCleaner:{type:Boolean}},uZ),emits:[`update:modelValue`,`focused`],setup(e,{expose:t,emit:n}){us(e=>({v1b58c9fc:M(m)}));let r=e,i=n,{modelModifiers:a,disabled:o,invalid:s,label:c,description:l,modelValue:u,pseudoHovered:d,size:f,expandable:p,rows:m,hasCleaner:h,readonly:g}=N(r),v=NV(),y=UV(a.value),b=IV(),x=PV(o),S=FV(s),C=b.focused,w=b.native,T=b.id,E=j(!1),D={onEvent:e=>{E.value=e}},ee=q(()=>u.value?.length||0),te=q(()=>E.value||d.value),ne=q(()=>x.value?`disabled`:S.value?`invalid`:C.value?`focused`:te.value?`hovered`:``),re=q(()=>ie.value&&!x.value&&h.value&&!g.value),ie=q(()=>!!u.value),ae=q(()=>ie.value||C.value),oe=q(()=>f.value!==`sm`||!ae.value),O=e=>{let t=e.target.value;o.value||i(`update:modelValue`,y.modify(t))},se=()=>{i(`update:modelValue`,``),b.focus()};return I(C,(e,t)=>{t&&!e&&v?.markAsTouch(),i(`focused`,e)},{immediate:!0}),t({focus:b.focus,blur:b.blur}),(t,n)=>(V(),H(`div`,{class:`smed-base-textarea`,"data-size":M(f),"data-state":ne.value,"data-label":oe.value&&(t.$slots.label||!!M(c)),"data-raized":ae.value},[W(`div`,fZ,[G(M($H),null,{default:P(()=>[qn((V(),H(`div`,{class:`smed-base-textarea__container`,"data-expandable":M(p)},[oe.value&&(t.$slots.label||M(c))?(V(),H(`label`,{key:0,class:k([`smed-base-textarea__label`,e.required&&`smed-required`]),for:M(T),"data-raized":ae.value},[R(t.$slots,`label`,{},()=>[eo(A(M(c)),1)])],10,mZ)):K(``,!0),re.value?(V(),H(`button`,{key:1,"aria-label":`ÐÑиÑÑиÑÑ Ð¿Ð¾Ð»Ðµ ввода`,class:`smed-base-textarea__cleaner`,"data-automation-id":`smed-base-textarea-cleaner-icon`,tabindex:`-1`,type:`button`,title:`ÐÑиÑÑиÑÑ Ð¿Ð¾Ð»Ðµ ввода`,"data-oneline":M(m)===1,"data-hidden":!M(C),onClick:Qs(se,[`stop`,`prevent`])},[G(M(hN),{name:`@smed.close-filled`,size:`sm`})],8,hZ)):K(``,!0),W(`div`,gZ,[W(`div`,_Z,[W(`span`,null,A(M(u)),1),n[0]||=W(`span`,{class:`smed-base-textarea__carret`},null,-1)]),W(`textarea`,{id:M(T),ref_key:`native`,ref:w,class:`smed-base-textarea__input`,value:M(u)||``,placeholder:e.placeholder,disabled:M(x),readonly:M(g),onInput:O},null,40,vZ)])],8,pZ)),[[M(lZ)],[M(uP),D]])]),_:3})]),t.$slots.description||M(l)||e.maxLength!==null?(V(),H(`div`,yZ,[t.$slots.description||M(l)?(V(),H(`div`,{key:0,class:`smed-base-textarea__description`,"data-state":ne.value},[R(t.$slots,`description`,{},()=>[eo(A(M(l)),1)])],8,bZ)):K(``,!0),e.maxLength===null?K(``,!0):(V(),H(`p`,xZ,A(ee.value)+`/`+A(e.maxLength),1))])):K(``,!0)],8,dZ))}}),CZ=L({__name:`ButtonsMessage`,props:{buttons:{}},setup(e){return(t,n)=>(V(),H(`div`,{class:k([t.$style.container,t.$style.container_self])},[(V(!0),H(B,null,vi(e.buttons,e=>(V(),U(M(FB),{key:e.text,class:k(t.$style.button),color:`green`,"data-automation-id":`buttons_message-button`,onClick:e.callback},{default:P(()=>[eo(A(e.text),1)]),_:2},1032,[`class`,`onClick`]))),128))],2))}}),wZ={container:`_container_mrr91_1`,container_self:`_container_self_mrr91_8`,button:`_button_mrr91_13`},TZ=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},EZ=TZ(CZ,[[`__cssModules`,{$style:wZ}]]),DZ={"data-automation-id":`day_divider-text`},OZ={key:1},kZ=TZ(L({__name:`DayDivider`,props:{date:{}},setup(e){let t=e,n=OW.currentLocal(),r=q(()=>n.daySame(t.date));return(t,n)=>(V(),H(`div`,{class:k([`smed-text_body-xs`,`smed-text_bold`,t.$style.time])},[W(`span`,DZ,[r.value?(V(),H(`span`,OZ,`СегоднÑ`)):(V(),U(M(iq),{key:0,mask:`[day:numeric]\xA0[month:long]`,date:e.date},null,8,[`date`]))])],2))}}),[[`__cssModules`,{$style:{time:`_time_1a9zk_1`}}]]),AZ=TZ(L({__name:`FileMessage`,props:{isSelf:{type:Boolean},isDone:{type:Boolean},time:{},icon:{},file:{},status:{}},setup(e){let{status:t}=N(e),n=q(()=>{let e=t.value;return e===`loading`?e:void 0});return(t,r)=>(V(),H(`div`,{class:k([t.$style.container,e.isSelf&&t.$style.container_self]),"data-automation-id":`file_message`},[G(M(oZ),{size:`sm`,class:k([t.$style.file,e.isSelf&&t.$style.file_self]),file:e.file,"allow-delete":!1,state:n.value,download:e.file.name},null,8,[`class`,`file`,`state`,`download`]),W(`p`,{class:k(t.$style.time)},[W(`span`,{class:k(t.$style.time_value),"data-automation-id":`file_message-time`},A(e.time),3),e.icon?(V(),U(M(jN),{key:0,size:`sm`,class:k([t.$style.state,e.isDone&&t.$style.state_done]),name:e.icon,"data-automation-id":`file_message-icon`},null,8,[`class`,`name`])):K(``,!0)],2)],2))}}),[[`__cssModules`,{$style:{container:`_container_vcdrw_1`,container_self:`_container_self_vcdrw_8`,file:`_file_vcdrw_14`,time:`_time_vcdrw_30`,time_value:`_time_value_vcdrw_37`,state:`_state_vcdrw_41`,state_done:`_state_done_vcdrw_45`}}]]),jZ={"data-automation-id":`menu_item-text`},MZ=TZ(L({__name:`MenuItem`,props:{text:{},icon:{}},setup(e){return(t,n)=>(V(),H(`div`,{class:k([`smed-text_body-sm smed-text_bold`,t.$style.menuitem]),"data-automation-id":`menu_item`},[W(`div`,{class:k(t.$style.menuitem__content)},[e.icon?(V(),U(M(jN),{key:0,name:e.icon,size:`md`,"data-automation-id":`menu_item-icon`},null,8,[`name`])):K(``,!0),W(`span`,jZ,A(e.text),1)],2)],2))}}),[[`__cssModules`,{$style:{menuitem:`_menuitem_u9hc5_1`,menuitem__content:`_menuitem__content_u9hc
455_13`}}]]),NZ={"data-automation-id":`system_message-text`},PZ=TZ(L({__name:`SystemMessage`,props:{text:{}},setup(e){return(t,n)=>(V(),H(`div`,{class:k([`smed-text_body-xs`,t.$style.system])},[W(`span`,NZ,A(e.text),1)],2))}}),[[`__cssModules`,{$style:{system:`_system_8sf7n_1`}}]]),FZ={GREY:`grey`,BLACK:`black`},IZ=` `,LZ=[`innerHTML`],RZ=TZ(L({__name:`TextMessage`,props:{title:{},text:{},isSelf:{type:Boolean},isDone:{type:Boolean},icon:{},time:{},disableLinks:{type:Boolean},status:{}},setup(e){let t=zs(),n=e,r=q(()=>{let e={[FZ.BLACK]:t.title_black,[FZ.GREY]:t.title_grey},r=n.title&&n.title.type?e[n.title.type]:e[FZ.BLACK];return[t.title,r]}),i=q(()=>{let e=sV(n.text);return`${n.disableLinks?e:eV(e)}${IZ}`});return(n,a)=>(V(),H(`div`,{class:k([M(t).container,e.isSelf&&M(t).container_self]),"data-automation-id":`text_message`},[e.title?(V(),H(`p`,{key:0,class:k(r.value),"data-automation-id":`text_message-title`},A(e.title.text),3)):K(``,!0),W(`div`,{class:k(M(t).content)},[W(`p`,{innerHTML:i.value,class:k(M(t).text),"data-automation-id":`text_message-text`},null,10,LZ),W(`p`,{class:k(M(t).time)},[W(`span`,{class:k(M(t).time_value),"data-automation-id":`text_message-time`},A(e.time),3),e.icon?(V(),U(M(jN),{key:0,size:`sm`,class:k([M(t).state,e.isDone&&M(t).state_done]),name:e.icon,"data-automation-id":`text_message-icon`},null,8,[`class`,`name`])):K(``,!0)],2)],2)],2))}}),[[`__cssModules`,{$style:{container:`_container_1rsyh_1`,container_self:`_container_self_1rsyh_8`,content:`_content_1rsyh_14`,title:`_title_1rsyh_18`,title_black:`_title_black_1rsyh_21`,title_grey:`_title_grey_1rsyh_26`,text:`_text_1rsyh_32`,time:`_time_1rsyh_38`,time_value:`_time_value_1rsyh_47`,state:`_state_1rsyh_51`,state_done:`_state_done_1rsyh_55`}}]]),zZ=TZ(L({__name:`ChatMessage`,props:{message:{},timeFormat:{},status:{},disableLinks:{type:Boolean}},emits:[`retry`,`delete`],setup(e,{emit:t}){let n=zs(),r=t,i=e,{message:a,timeFormat:o,status:s}=N(i),c=q(()=>{let e=a.value;return`user`in e&&e.user===`self`}),l=q(()=>i.status===`sent`||i.status===`read`),u=q(()=>{let e=a.value,t=o.value;return`time`in e&&e.time?e.time.toString(t):``}),d=q(()=>{let e=s.value;if(e===`error`||!e)return null;switch(e){case`loading`:return`time`;case`read`:return`check-double`;case`sent`:return`check`;default:return null}}),f=q(()=>{let e=a.value;return`avatar`in e&&e.avatar?e.avatar:null}),p=q(()=>a.value.type===`system`||a.value.type===`date`?n.container_system:c.value||a.value.type===`buttons`?n.container_self:n.container_companion);function m(e){r(`retry`),e()}function h(e){r(`delete`),e()}return(t,r)=>(V(),U(M(zX),{"open-on":`click`,disabled:M(s)!==`error`,class:k([M(n).container,p.value])},{menu:P(({close:e})=>[G(MZ,{icon:`@smed.refresh`,text:`ÐовÑоÑиÑÑ Ñнова`,onClick:t=>m(e)},null,8,[`onClick`]),G(MZ,{icon:`@smed.delete`,text:`УдалиÑÑ`,onClick:t=>h(e)},null,8,[`onClick`])]),default:P(()=>[W(`div`,{class:k(M(n).message)},[M(a).type===`date`?(V(),U(kZ,{key:0,date:M(a).date},null,8,[`date`])):M(a).type===`system`?(V(),U(PZ,{key:1,text:M(a).text},null,8,[`text`])):M(a).type===`text`?(V(),U(RZ,{key:2,text:M(a).text,time:u.value,icon:d.value,"is-self":c.value,"is-done":l.value,title:M(a).title,"disable-links":e.disableLinks},null,8,[`text`,`time`,`icon`,`is-self`,`is-done`,`title`,`disable-links`])):M(a).type===`file`?(V(),U(AZ,{key:3,"is-self":c.value,"is-done":l.value,file:M(a).file,time:u.value,status:M(s),icon:d.value},null,8,[`is-self`,`is-done`,`file`,`time`,`status`,`icon`])):K(``,!0),M(a).type===`buttons`?(V(),U(EZ,{key:4,buttons:M(a).buttons},null,8,[`buttons`])):K(``,!0),M(s)===`error`?R(t.$slots,`iconError`,{isSelf:c.value,message:M(a)},()=>[G(M(hN),{rotate:``,name:`@smed.info-filled`,size:20,class:k(M(n)[`error-icon`]),"data-automation-id":`chat_message-default_error_icon`},null,8,[`class`])],void 0,5):K(``,!0),f.value?(V(),H(B,{key:6},[f.value===`slot`?R(t.$slots,`avatar`,{isSelf:c.value,message:M(a)},void 0,void 0,0):(V(),U(M(Dq),{key:1,src:f.value.src,user:f.value.user,size:`md`,class:k(M(n).avatar),"data-automation-id":`chat_message-default_avatar`},null,8,[`src`,`user`,`class`]))],64)):K(``,!0)],2)]),_:3},8,[`disabled`,`class`]))}}),[[`__cssModules`,{$style:{message:`_message_kraqa_1`,container:`_container_kraqa_6`,container_system:`_container_system_kraqa_10`,container_
45companion:`_container_companion_kraqa_13`,container_self:`_container_self_kraqa_17`,"error-icon":`_error-icon_kraqa_31`,avatar:`_avatar_kraqa_36`}}]]),BZ=TZ(L({__name:`ChatRoom`,props:z({messages:{},autoscroll:{type:Boolean},timeFormat:{},minHeight:{},autoHeight:{type:Boolean},scrollbarHeightCorrection:{},statusMap:{},disableLinks:{type:Boolean}},{scrollbarHeightCorrection:0,messages:()=>[],minHeight:300,timeFormat:`HH:MM`,autoHeight:!0,autoscroll:!0}),emits:[`messageShown`,`messageRetry`,`messageDelete`],setup(e,{expose:t,emit:n}){let r=e,i=n,{scrollbarHeightCorrection:a,autoHeight:o,minHeight:s,autoscroll:c,messages:l}=N(r),u=F(HM,!1),d=j(null),f=j(null),p=j(NaN),m=u?1440:window.innerHeight,h=q(()=>{let e=d.value;return e&&e.$el}),g=q(()=>{let e=f.value;return e?{maxHeight:`${e}px`}:{}}),v=q(()=>{let{maxHeight:e}=g.value;return{minHeight:e}});function y(e,t){i(`messageShown`,e,t)}function b(e){return{onIntersect:y.bind(null,e)}}function x(){let e=h.value;if(!e)return;let{top:t}=e.getBoundingClientRect(),n=window.innerHeight,r=a.value;f.value=eF(n-t-r,s.value,m)}function S(){p.value=Date.now()}I([o,h,p],([e,t])=>{e&&t&&x()},{immediate:!0}),I(o,(e,t,n)=>{n(()=>{window?.removeEventListener(`resize`,S)}),e&&window?.addEventListener(`resize`,S)},{immediate:!0});function C(){setTimeout(()=>{h.value?.scroll({top:1e6,behavior:`smooth`})})}return I([c,h,l],([e,t,n],[r,i,a])=>{let o=n[n.length-1],s=a||[],c=s[s.length-1];e&&t&&o?.id!==c?.id&&C()},{immediate:!0}),t({scrollToAnchor:C,recalculateSize:S}),(t,n)=>(V(),U(M($H),{ref_key:`scrollbarRef`,ref:d,class:k(t.$style.scrollbar),style:ge(g.value)},{default:P(()=>[W(`div`,{class:k(t.$style.content),style:ge(v.value)},[R(t.$slots,`before`),(V(!0),H(B,null,vi(M(l),n=>qn((V(),U(M(zZ),{key:n.id,message:n,"time-format":e.timeFormat,status:e.statusMap&&e.statusMap[n.id]||null,"disable-links":e.disableLinks,onRetry:e=>i(`messageRetry`,n),onDelete:e=>i(`messageDelete`,n)},{iconError:P(e=>[R(t.$slots,`iconError`,{isSelf:e?.isSelf||!1,message:e.message})]),avatar:P(e=>[R(t.$slots,`avatar`,{isSelf:e?.isSelf||!1,message:e.message})]),_:2},1032,[`message`,`time-format`,`status`,`disable-links`,`onRetry`,`onDelete`])),[[M(fP),b(n)]])),128))],6)]),_:3},8,[`class`,`style`]))}}),[[`__cssModules`,{$style:{scrollbar:`_scrollbar_sag8l_1`,content:`_content_sag8l_5`}}]]),VZ=[`for`],HZ=[`id`,`accept`,`multiple`],UZ=TZ(L({__name:`InputFileButton`,props:{accept:{default:``},multiple:{type:Boolean},disabled:{type:Boolean}},emits:[`selectFiles`],setup(e,{emit:t}){let n=e,r=t,i=aV(),{multiple:a}=N(n),o=j(null),s=j(!1);function c(e){s.value=e}function l(e){if(!e?.length)return;let t=a.value?Array.from(e):[e[0]];r(`selectFiles`,t)}function u(){if(!o.value)return;let e=o.value.files;l(e),o.value.value=``}return(t,n)=>(V(),H(`label`,{class:k(t.$style.label),for:M(i)},[W(`button`,{tabindex:`-1`,type:`button`,class:k([t.$style.button,s.value&&`smed-focused-element`])},[G(M(hN),{name:`@smed.clip`,size:24})],2),e.disabled?K(``,!0):(V(),H(`input`,{key:0,id:M(i),ref_key:`native`,ref:o,type:`file`,title:``,"data-maskito-skip":`true`,accept:e.accept,class:k(t.$style.native),multiple:M(a),onFocusin:n[0]||=e=>c(!0),onFocusout:n[1]||=e=>c(!1),onChange:u},null,42,HZ))],10,VZ))}}),[[`__cssModules`,{$style:{label:`_label_16jbf_1`,button:`_button_16jbf_13`,native:`_native_16jbf_22`,smedOnAutoFillStart:`_smedOnAutoFillStart_16jbf_1`,smedOnAutoFillCancel:`_smedOnAutoFillCancel_16jbf_1`}}]]),WZ=TZ(L({__name:`InputMessage`,props:{text:{},maxTextLength:{},showFileInput:{type:Boolean,default:!0},showSubmitButton:{type:Boolean,default:!0},acceptFiles:{},multipleFiles:{type:Boolean},disabled:{type:Boolean},placeholder:{default:`СообÑение`}},emits:[`update:text`,`selectFiles`],setup(e,{emit:t}){let n=e,r=t,{maxTextLength:i}=N(n),a=q(()=>{if(!i.value)return;let e=Ql(i.value,[`Ñимвол`,`Ñимвола`,`Ñимволов`]);return`ÐакÑимÑм ${i.value} ${e}`});function o(e){r(`update:text`,e)}function s(e){r(`selectFiles`,e)}return(t,n)=>(V(),H(`div`,{class:k(t.$style[`input-message`])},[e.showFileInput?(V(),U(UZ,{key:0,accept:e.acceptFiles,multiple:e.multipleFiles,disabled:e.disabled,class:k(t.$style[`input-message__file-button`]),"data-automation-id":`input_message-file_button`,onSelectFiles:s},null,8,[`accept`,`multiple`,`disabled`,`class`])):K(``,!0),W(`div`,{class:k(t.$style[`input-message__input-container`])},[G(M(SZ),{"model-value":e.text,"has-cleaner":!1,placeholder:e.placeholder,size:`lg`,disabled:e.disabled,class:k(t.$style[`input-message__input`]),"data-automation-id":`input_message-input`,"onUpdate:modelValue":o},null,8,[`model-value`,`placeholder`,`disabled`,`class`]),M(i)&&e.text&&e.text.length>=M(i)?(V(),H(`p`,{key:0,class:k([`smed-text_caption`,t.$style[`input-message__alert`]]),"data-automation-id":`input_message-input_alert`},A(a.value),3)):K(``,!0)],2),e.showSubmitButton?(V(),U(M(FB),{key:1,type:`submit`,icon:`arrow-up-big`,size:`md`,"svg-icon-size":`lg`,color:`primary`,disabled:!e.text||e.disabled,class:k(t.$style[`input-message__send-button`]),"data-automation-id":`input_message-send_button`},null,8,[`disabled`,`class`])):K(``,!0)],2))}}),[[`__cssModules`,{$style:{"input-message":`_input-message_8uywf_1`,"input-message__file-button":`_input-message__file-button_8uywf_9`,"input-message__input-container":`_input-message__input-container_8uywf_13`,"input-message__input":`_input-message__input_8uywf_13`,"input-message__alert":`_input-message__alert_8uywf_32`,"input-message__send-button":`_input-message__send-button_8uywf_35`}}]]),GZ=6e4,KZ=36e5,qZ=864e5;function JZ(e,t=!0){return t&&e===1?`${e} минÑÑÑ`:`${e} ${Ql(e,[`минÑÑÑ`,`минÑÑÑ`,`минÑÑ`])}`}function YZ(e,t){if(!e)return``;let n=e.getTime(),r=t.getTime();if(n<=r)return``;let i=n-r,a=Math.floor(i/qZ);if(a>0)return`${a} ${Ql(a,[`денÑ`,`днÑ`,`дней`])}`;let o=Math.floor(i%qZ/KZ);if(o>0){let e=Math.floor(i%KZ/GZ);return e>0?`${o} ${Ql(o,[`ÑаÑ`,`ÑаÑа`,`ÑаÑов`])} ${JZ(e)}`:`${o} ${Ql(o,[`ÑаÑ`,`ÑаÑа`,`ÑаÑов`])}`}let s=Math.floor(i%KZ/GZ);return s>0?JZ(s):``}var XZ=TZ(L({__name:`TimeCountdown`,props:{eventDate:{},mask:{default:`ÐÑием [day:numeric] [month:long] в [hour:numeric]:[minute:numeric]`}},setup(e){let t=e,n=j(new Date),r=null,i=q(()=>YZ(t.eventDate,n.value));function a(){n.value=new Date}return ti(()=>{a(),r=setInterval(a,6e4)}),ii(()=>{r&&=(clearInterval(r),null)}),(t,n)=>(V(),H(`div`,{class:k(t.$style.header)},[W(`div`,{class:k(t.$style.eventInfo)},[G(M(iq),{mask:e.mask,date:e.eventDate},null,8,[`mask`,`date`]),R(t.$slots,`countdown`,{countdown:i.value},()=>[i.value?(V(),H(`span`,{key:0,class:k(t.$style.timeRemaining),"data-automation-id":`countdown`},` ÑеÑез `+A(i.value),3)):K(``,!0)])],2)],2))}}),[[`__cssModules`,{$style:{header:`_header_1degz_1`,eventInfo:`_eventInfo_1degz_7`,timeRemaining:`_timeRemaining_1degz_22`}}]]),ZZ=Z(L({name:`Chips`,__name:`Chips`,props:z({modelValue:{},items:{},icon:{type:[String,Function]},rounded:{type:Boolean},removable:{type:[Boolean,Function]},dataAutomationItemPrefix:{},size:{},matcher:{type:Function},disableItemHandler:{type:Function}},{rounded:!0,dataAutomationItemPrefix:`smed-chips-item`,matcher:PH,disableItemHandler:xW}),emits:[`update:modelValue`,`remove`],setup(e,{expose:t,emit:n}){let r=e,i=n,{modelValue:a,items:o,matcher:s}
45=N(r),c=j(null),l=aV(),u=(e,t,n)=>typeof n==`function`?n(e,t):n,d=(e,t,n)=>typeof n==`function`?n(e,t):n,f=e=>{i(`update:modelValue`,e)},p=e=>{i(`remove`,e)},m=e=>{let t=c.value;if(!t)return;let n=eF(e.offsetLeft-t.offsetLeft,0,1/0),r=t.scrollLeft+t.clientWidth<n,i=t.scrollLeft-t.clientWidth>n;(r||i)&&t.scrollTo({left:n,behavior:`smooth`})},h=e=>{m(e.detail)};return t({scrollTo:e=>{let t=c.value?.querySelector(`#${l}_${e}`);t&&m(t)}}),(t,n)=>(V(),H(`div`,ao({ref_key:`rootRef`,ref:c,class:t.$style.root},{[ce(M(vY))]:Qs(h,[`stop`])}),[(V(!0),H(B,null,vi(M(o),(n,r)=>(V(),U(M(SY),{id:`${M(l)}_${r}`,key:r,"data-automation-id":`${e.dataAutomationItemPrefix}_${r}`,icon:d(n,r,e.icon),active:M(s)(M(a),n),rounded:e.rounded,size:e.size,removable:u(n,r,e.removable),disabled:e.disableItemHandler(n,r),onClick:e=>f(n),onRemove:e=>p(n)},{default:P(({active:e})=>[R(t.$slots,`default`,{item:n,active:e},()=>[eo(A(n),1)])]),_:2},1032,[`id`,`data-automation-id`,`icon`,`active`,`rounded`,`size`,`removable`,`disabled`,`onClick`,`onRemove`]))),128))],16))}}),[[`__cssModules`,{$style:{root:`_root_66eoc_1`}}]]),QZ=Z(L({name:`CalendarRange`,__name:`CalendarRange`,props:z({modelValue:{},min:{},max:{},defaultViewedMonth:{},disabledDatesHandler:{type:Function},periods:{}},{min:jW,max:MW,defaultViewedMonth:NW,periods:NH}),emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,{modelValue:i,max:a,min:o,defaultViewedMonth:s,periods:c}=N(n),l=j(i.value),u=j(null),d=q(()=>s.value.append({month:1})),f=j(s.value),p=j(d.value),m=q(()=>c.value.length>0),h=q(()=>{let e=l.value;if(e===null)return null;let t=o.value,n=a.value;return c.value.find(({range:r})=>e.from.daySame(r.from.dayLimit(t,n))&&e.to.daySame(r.to.dayLimit(t,n)))||null}),g=q(()=>[].concat(c.value,`ÐÑÑÐ³Ð°Ñ Ð´Ð°Ñа`)),v=q(()=>{if(m.value){let e=l.value;return e?e.to:s.value}return f.value}),y=q(()=>{if(!m.value)return S.value.append({month:-1})}),b=q(()=>x.value.append({month:1})),x=q(()=>{let e=f.value,t=p.value;return e.monthSameOrBefore(t)?e:t}),S=q(()=>{let e=a.value,t=p.value;return t.monthBefore(e)?t:e}),C=(e,t)=>{let n=h.value;return typeof t==`string`&&n===null||n===t},w=e=>{let t=l.value;if(t===null||!t.isSingleDay){l.value=new RW(e,e);return}let n=RW.sort(t.from,e);l.value=n,r(`update:modelValue`,n)},T=e=>{f.value=e,p.value=e.append({month:1})},E=e=>{f.value=e.append({month:-1}),p.value=e},D=e=>{if(typeof e!=`string`){let t=e.range,n=o.value,i=a.value;r(`update:modelValue`,t.dayLimit(n,i));return}h.value!==null&&r(`update:modelValue`,null)},ee=e=>{let t=e===null?s.value:e.from;f.value=t,p.value=t.append({month:1})},te=e=>{let t=a.value;if(e.monthSameOrAfter(t))return t;let n=o.value;return e.monthBefore(n)?n.append({month:1}):e},ne=(e,t)=>{if(e.monthSameOrAfter(t))return t.append({month:-1});let n=o.value;return e.monthSameOrBefore(n)?n:e},re=()=>{if(!l.value){let e=te(d.value);p.value=e,f.value=ne(s.value,e)}};return ti(()=>{re()}),I(i,e=>{(!l.value&&e||l.value&&!e?.daySame(l.value))&&(l.value=e,ee(e)),l.value=e},{immediate:!0}),(t,n)=>(V(),H(`div`,{class:k(t.$style.root)},[G(M(dG),{"hovered-item":u.value,"onUpdate:hoveredItem":n[0]||=e=>u.value=e,"flex-width":``,bordered:!1,"show-adjacent-days":m.value,min:M(o),max:M(a),month:v.value,"max-viewed-month":y.value,"disabled-dates-handler":e.disabledDatesHandler,value:l.value,onDayClick:w,"onUpdate:month":T},null,8,[`hovered-item`,`show-adjacent-days`,`min`,`max`,`month`,`max-viewed-month`,`disabled-dates-handler`,`value`]),m.value?(V(),U(M(WH),{key:1,class:k([t.$style.border,t.$style.list])},{default:P(()=>[(V(!0),H(B,null,vi(g.value,e=>(V(),U(M(GH),{key:e.toString(),active:C(M(i),e),onClick:t=>D(e)},{default:P(()=>[eo(A(e),1)]),_:2},1032,[`active`,`onClick`]))),128))]),_:1},8,[`class`])):(V(),U(M(dG),{key:0,"hovered-item":u.value,"onUpdate:hoveredItem":n[1]||=e=>u.value=e,"flex-width":``,class:k(t.$style.border),bordered:!1,min:M(o),max:M(a),month:p.value,"min-viewed-month":b.value,"disabled-dates-handler":e.disabledDatesHandler,value:l.value,onDayClick:w,"onUpdate:month":E},null,8,[`hovered-item`,`class`,`min`,`max`,`month`,`min-viewed-month`,`disabled-dates-handler`,`value`]))],2))}}),[[`__cssModules`,{$style:{root:`_root_110mj_1`,border:`_border_110mj_5`,list:`_list_110mj_9`}}]]),$Z={..._H,inputmode:`numeric`,placeholder:IW,dropdownProps:fH,calendarRangeProps:fH,min:jW,max:MW,periods:NH,disabledDatesHandler:xW},eQ=[`disabled`],tQ=Z(L({name:`InputDateRange`,__name:`InputDateRange`,props:z({modelValue:{},modelModifiers:{},type:{},size:{},disabled:{type:Boolean},label:{},description:{},editable:{type:Boolean},hasCleaner:{type:Boolean},invalid:{type:Boolean},isSuccess:{type:Boolean},placeholder:{},autocomplete:{},name:{},decoratorPostfix:{},decoratorPostfixColorClass:{},inputmode:{},readonly:{type:Boolean},required:{type:Boolean},id:{},dataAutomationId:{},pseudoHovered:{type:Boolean},pseudoFocused:{type:Boolean},stringify:{type:Function},max:{},min:{},periods:{},disabledDatesHandler:{type:Function},dropdownProps:{},calendarRangeProps:{}},$Z),emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,{modelValue:i,disabled:a,invalid:o,max:s,min:c,periods:l,hasCleaner:u}=N(n),d=F(jM,j(!1)),f=j(!1),p=j(!1),m=j(null),h=FV(o),g=PV(a),v=e=>e?.toString()||``,y=j(v(i.value)),b=q(()=>u.value&&(!!i.value||!!y.value)),x=q(()=>l.value.length>0),S=q(()=>{let e=i.value;if(e===null)return null;
45let t=c.value,n=s.value;return l.value.find(({range:r})=>e.from.daySame(r.from.dayLimit(t,n))&&e.to.daySame(r.to.dayLimit(t,n)))||null}),C=q(()=>{let e=S.value;return e?e.range.isSingleDay&&e.range?`${e} (${e.range.from})`:e:``}),w=q(()=>yK({mode:`dd/mm/yyyy`,dateSeparator:`.`,max:s.value.toLocalNativeDate(),min:c.value.toLocalNativeDate()})),T=q(()=>{let e=y.value;return IW.slice(e.length)}),E=e=>{f.value=!1,!(e instanceof OW)&&r(`update:modelValue`,e)},D=()=>{f.value=!1},ee=e=>{r(`update:modelValue`,e),p.value=!1,m.value?.focus()},te=e=>{let t=e;if(y.value=t||``,!t){r(`update:modelValue`,null);return}t.length===LW&&r(`update:modelValue`,RW.normalizeParse(t))},ne=e=>{d.value?(e.stopPropagation(),e.preventDefault(),f.value=!f.value):(m.value?.focus(),p.value=!0)};return I(i,e=>{v(e)!==y.value&&(y.value=v(e))}),(t,r)=>(V(),H(`div`,{class:k(t.$style.idrHost)},[G(M(rU),ao(e.dropdownProps,{modelValue:p.value,"onUpdate:modelValue":r[0]||=e=>p.value=e,class:t.$style.idrHost,"max-width":480,"min-width":480,"min-height":x.value?330:268,"can-open":!M(d)&&!M(g)}),{dropdown:P(()=>[G(M(QZ),ao(e.calendarRangeProps,{max:M(s),min:M(c),periods:M(l),"model-value":M(i),"disabled-dates-handler":e.disabledDatesHandler,"onUpdate:modelValue":ee}),null,16,[`max`,`min`,`periods`,`model-value`,`disabled-dates-handler`])]),default:P(()=>[qn((V(),U(M(MH),ao(n,{ref_key:`baseInputExposed`,ref:m,disabled:M(g),"model-value":y.value,invalid:M(h),"pseudo-focused":!M(d)&&p.value,"decorator-postfix":T.value,"decorator-postfix-color-class":t.$style.idrDecorator,"has-cleaner":b.value,"onUpdate:modelValue":te}),yi({right:P(()=>[W(`button`,{tabindex:`-1`,title:`ÐоказаÑÑ/ÑкÑÑÑÑ ÐºÐ°Ð»ÐµÐ½Ð´Ð°ÑÑ`,"aria-label":`ÐоказаÑÑ/ÑкÑÑÑÑ ÐºÐ°Ð»ÐµÐ½Ð´Ð°ÑÑ`,type:`button`,class:k(t.$style.idrIcon),disabled:M(g),onClick:Qs(ne,[`stop`,`prevent`])},[G(M(hN),{name:`@smed.calendar-day`,size:`sm`})],10,eQ)]),_:2},[t.$slots.label?{name:`label`,fn:P(()=>[R(t.$slots,`label`)]),key:`0`}:void 0,t.$slots.description?{name:`description`,fn:P(()=>[R(t.$slots,`description`)]),key:`1`}:void 0,x.value&&S.value&&C.value?{name:`valueContent`,fn:P(()=>[eo(A(C.value),1)]),key:`2`}:void 0]),1040,[`disabled`,`model-value`,`invalid`,`pseudo-focused`,`decorator-postfix`,`decorator-postfix-color-class`,`has-cleaner`])),[[M(QP),w.value]])]),_:3},16,[`modelValue`,`class`,`min-height`,`can-open`]),M(d)?(V(),U(M(hV),{key:0,modelValue:f.value,"onUpdate:modelValue":r[1]||=e=>f.value=e,size:`full`,closable:!1},{default:P(()=>[G(M(eq),{"actions-fixed":``,value:M(i),single:!1,class:k(t.$style.calendar),min:M(c),max:M(s),"disabled-dates-handler":e.disabledDatesHandler,onConfirm:E,onCancel:D},null,8,[`value`,`class`,`min`,`max`,`disabled-dates-handler`])]),_:1},8,[`modelValue`])):K(``,!0)],2))}}),[[`__cssModules`,{$style:{idrHost:`_idrHost_qix66_1`,idrIcon:`_idrIcon_qix66_6`,idrDecorator:`_idrDecorator_qix66_35`,calendar:`_calendar_qix66_39`}}]]),nQ=[`bottom-left`,`bottom`,`bottom-right`,`top-left`,`top`,`top-right`,`left-top`,`left`,`left-bottom`,`right-top`,`right`,`right-bottom`],rQ={direction:`bottom-right`,showDelay:500,hideDelay:200,appearance:`default`},iQ=0,aQ=1,oQ=8,sQ=35;function cQ(e,t,n){let r=nQ.reduce((e,t)=>(e[t]=[0,0],e),{}),i=j(null),a=gN(e),o=gN(t),s=gN(n),c=F(zM,j(NaN)),l=([e,t],n,r)=>{let{innerHeight:i,innerWidth:a}=window;return e>oQ&&t>oQ&&e+r<i-oQ&&t+n<a-oQ},u=()=>{let{innerHeight:e}=window;return r.top[iQ]>e-r.bottom[iQ]?`top`:`bottom`},d=(e,t)=>{let n=e.getBoundingClientRect(),{width:i,height:a}=t.getBoundingClientRect(),o=n.left+n.width/2,c=n.top+n.height/2;if(r[`top-left`][iQ]=n.top-a-oQ,r[`top-left`][aQ]=o-i+sQ,r.top[iQ]=r[`top-left`][iQ],r.top[aQ]=o-i/2,r[`top-right`][iQ]=r[`top-left`][iQ],r[`top-right`][aQ]=o-sQ,r[`bottom-left`][iQ]=n.bottom+oQ,r[`bottom-left`][aQ]=r[`top-left`][aQ],r.bottom[iQ]=r[`bottom-left`][iQ],r.bottom[aQ]=r.top[aQ],r[`bottom-right`][iQ]=r[`bottom-left`][iQ],r[`bottom-right`][aQ]=r[`top-right`][aQ],r[`left-top`][iQ]=c-a+sQ,r[`left-top`][aQ]=n.left-i-oQ,r.left[iQ]=c-a/2,r.left[aQ]=r[`left-top`][aQ],r[`left-bottom`][iQ]=c-sQ,r[`left-bottom`][aQ]=r[`left-top`][aQ],r[`right-top`][iQ]=r[`left-top`][iQ],r[`right-top`][aQ]=n.right+oQ,r.right[iQ]=r.left[iQ],r.right[aQ]=r[`right-top`][aQ],r[`right-bottom`][iQ]=r[`left-bottom`][iQ],r[`right-bottom`][aQ]=r[`right-top`][aQ],l(r[s.value],i,a))return r[s.value];let d=nQ.find(e=>l(r[e],i,a));return r[d||u()]},f=null,p=()=>{f=I([a,o,c],([e,t])=>
45{if(e&&t){let n=d(e,t),r=i.value;(!r||r[iQ]!==n[iQ]||r[aQ]!==n[aQ])&&(i.value=[n[iQ],n[aQ]])}},{immediate:!0})},m=()=>{f?.(),f=null};return I([a,o],(e,t,n)=>{n(m),e[0]&&e[1]?p():m()},{immediate:!0}),i}function lQ(e,t,n){return F(AM,cQ)(e,t,n)}var uQ=[`aria-describedby`,`data-appearance`],dQ=4,fQ=L({__name:`Hint`,props:z({direction:{},describedBy:{},appearance:{},showDelay:{},hideDelay:{},class:{},style:{}},rQ),emits:[`shown`],setup(e,{emit:t}){let n=e,r=Ei(),i=t,{direction:a,showDelay:o,hideDelay:s}=N(n),c=F(kM,IH);function l(e){return!!e&&typeof e==`object`&&`$el`in e}let u=j(null),d=j(null),f=lQ(u,d,a),p={ref:e=>{u.value=l(e)?e.$el:e}},{insideZone:m}=AV(u,d),h={mouseenter:()=>g.value=!!c.value&&!!r.hint&&!0,mouseleave:()=>g.value=!1},g=j(!1),v=j(!1),y={attrs:p,on:h},b={attrs:{},on:{}},x=e=>QV()?[e[0]+(window.visualViewport?.offsetTop??0),e[1]+(window.visualViewport?.offsetLeft??0)]:e,S=j({top:void 0,left:void 0,"--top":void 0,"--left":void 0}),C=(e,t,n)=>{let[r,i]=x(n),{height:a,width:o}=t.getBoundingClientRect(),s=e.getBoundingClientRect(),c=eF(i,dQ,window.innerWidth-o-dQ),[l,u]=x([s.top+s.height/2-r,s.left+s.width/2-c]);S.value={top:`${r}px`,left:`${c}px`,"--top":`${eF(l,.5,a-1)}px`,"--left":`${eF(u,.5,o-1)}px`}};I(m,e=>{g.value=!!c.value&&!!r.hint&&e},{immediate:!0}),I(v,e=>{i(`shown`,e)}),I([u,d,f],([e,t,n])=>{e&&t&&n&&C(e,t,n)},{immediate:!0});let w,T,E=()=>{w&&clearTimeout(w),T&&clearTimeout(T)},D=()=>{T=setTimeout(()=>{v.value=!0},o.value)},ee=()=>{w=setTimeout(()=>{v.value=!1},s.value)};return I(g,(e,t,n)=>{n(()=>{E()}),e?D():ee()},{immediate:!0}),(t,r)=>(V(),H(B,null,[R(t.$slots,`default`,xe(Qa(M(c)&&t.$slots.hint?y:b))),M(c)&&t.$slots.hint?(V(),U(M(cV),{key:0,"append-to":`#smed_hints-host`},{default:P(()=>[G(Uo,{name:`fade`},{default:P(()=>[v.value?(V(),H(`div`,ao({key:0,ref_key:`hintRef`,ref:d,class:[`smed-hint`,n.class],"aria-describedby":e.describedBy,"data-appearance":e.appearance,style:{...e.style,...S.value}},xi(h,!0)),[R(t.$slots,`hint`)],16,uQ)):K(``,!0)]),_:3})]),_:3})):K(``,!0)],64))}}),pQ={linesLimit:2,appearance:`bubble`,lazyHint:!1},mQ=[],hQ=!1,gQ=30;function _Q(){hQ=!0,requestAnimationFrame(()=>{let e=mQ.splice(0,gQ);mQ.length>0?_Q():hQ=!1;for(let t of e)t()})}function vQ(e){mQ.push(e),hQ||_Q()}var yQ=0,bQ=1,xQ=16,SQ=12;function CQ(e,t){let n=j(null),r=gN(e),i=gN(t),a=F(zM,j(NaN)),o=e=>{let t=e.getBoundingClientRect();return[t.top-SQ,t.left-xQ]},s=null,c=()=>{s=I([r,a],([e])=>{if(e){let t=o(e),r=n.value;(!r||r[yQ]!==t[yQ]||r[bQ]!==t[bQ])&&(n.value=[t[yQ],t[bQ]])}},{immediate:!0})},l=()=>{s?.(),s=null};return I([r,i],(e,t,n)=>{n(l),e[0]&&e[1]?c():l()},{immediate:!0}),n}var wQ=Z(L({name:`LineClamp`,inheritAttrs:!1,__name:`LineClamp`,props:z({lineHeight:{},linesLimit:{},disableHint:{type:Boolean},appearance:{},align:{type:Boolean},lazyHint:{type:Boolean}},pQ),emits:[`overflowed`],setup(e,{emit:t}){let n=e,r=t;n.align&&Yn(AM,CQ);let{lineHeight:i,linesLimit:a}=N(n),o=j(null),s=j(null),c=j(!1),l=j(!1),u=j(a.value),d=j(!1),f=j(void 0),p=(e,t)=>{o.value=t,e.ref?.(t)};ti(()=>{vQ(()=>{c.value=!0,f.value=`${o.value?.getBoundingClientRect().width}px`})});let m=q(()=>({"-webkit-line-clamp":u.value})),h=q(()=>({"max-height":`${i.value*a.value}px`})),g=q(()=>f.value?{minWidth:f.value}:{minWidth:void 0}),v=()=>{let e=o.value,t=s.value;if(!e||!t)return;let{scrollHeight:r,scrollWidth:i}=t,{clientHeight:a,clientWidth:c}=e;d.value=r-a>4||i-c>0,n.align&&(f.value=`${e.offsetWidth}px`)},y=null,b=()=>{y!==null&&cancelAnimationFrame(y),y=requestAnimationFrame(()=>{y=null,v()})},x=()=>{y!==null&&(cancelAnimationFrame(y),y=null)},S=()=>{u.value=a.value,b()},C=()=>{l.value=!0,o.value?.dispatchEvent(new MouseEvent(`mouseenter`,{bubbles:!1}))};return I(s,(e,t,n)=>{if(!e)return;b();let r=typeof ResizeObserver>`u`?null:new ResizeObserver(b);r&&r.observe(e),n(()=>{r?.disconnect(),x()})},{flush:`post`}),I(d,e=>{r(`overflowed`,e)}),I(a,(e,t)=>{(!t||e>=t)&&(u.value=e)},{immediate:!0}),(t,n)=>e.lazyHint&&!l.value?(V(),H(`div`,{key:0,onMouseenter:C},[W(`div`,ao(t.$attrs,{ref_key:`rootElement`,ref:o,class:[t.$style.root,c.value&&t.$style.root_initialized],style:h.value,onTransitionend:S}),[W(`div`,{ref_key:`contentRef`,ref:s,class:k(t.$style.content),style:ge(m.value)},[R(t.$slots,`default`)],6)],16)],32)):(V(),U(M(fQ),{key:1,appearance:e.appearance,class:k([t.$style.hint,e.align?t.$style.hint_clear:``]),style:ge(g.value)},yi({default:P(({on:e,attrs:n})=>[W(`div`,ao(t.$attrs,{ref:p.bind(null,n),class:[t.$style.root,c.value&&t.$style.root_initialized],style:h.value},xi(e,!0),{onTransitionend:S}),[W(`div`,{ref_key:`contentRef`,ref:s,class:k(t.$style.content),style:ge(m.value)},[R(t.$slots,`default`)],6)],16)]),_:2},[d.value&&!e.disableHint?{name:`hint`,fn:P(()=>[R(t.$slots,`default`)]),key:`0`}:void 0]),1032,[`appearance`,`class`,`style`]))}}),[[`__cssModules`,{$style:{root:`_root_u3ui3_1`,root_initialized:`_root_initialized_u3ui3_6`,content:`_content_u3ui3_10`,hint:`_hint_u3ui3_20`,hint_clear:`_hint_clear_u3ui3_24`}}]]),TQ={size:`sm`},EQ=[`onClick`],DQ=Z(L({name:`Pagination`,__name:`Pagination`,props:z({modelValue:{},length:{},size:{}},TQ),emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,i=F(OM,null),{length:a,size:o}=N(n),s=q(()=>o.value===`md`?{width:`${100/a.value}%`}:{}),c=q(()=>i!==null),l=q(()=>({transform:i?`translateX(${i.value*100-100}%)`:`translateX(0)`})),u=e=>{r(`update:modelValue`,e)};return(t,n)=>(V(),H(`div`,{class:k([t.$style.container,t.$style[`container_`+M(o)]])},[(V(!0),H(B,null,vi(M(a),n=>qn((V(),H(`button`,{key:n,type:`button`,class:k(t.$style.button),style:ge(s.value),onClick:Qs(e=>u(n-1),[`stop`,`prevent`])},[W(`span`,{class:k([t.$style.content,c.value?e.modelValue>=n-1&&t.$style.content_active:e.modelValue===n-1&&t.$style.content_active]),style:ge(c.value&&e.modelValue==n-1?l.value:{})},null,6)],14,EQ)),[[M(LN)]])),128))],2))}}),[[`__cssModules`,{$style:{container:`_container_1fjq1_1`,container_md:`_container_md_1fjq1_5`,container_sm:`_container_sm_1fjq1_11`,button:`_button_1fjq1_14`,content:`_content_1fjq1_46`,content_active:`_content_active_1fjq1_54`}}]]),OQ={max:10,size:`sm`,color:`var(--smed-primary)`},kQ=[`max`,`value`],AQ=Z(L({__name:`ProgressBar`,props:z({value:{},max:{},size:{},color:{}}
45,OQ),setup(e){let{color:t}=N(e),n=q(()=>({"--smed-progress-color":t.value}));return(t,r)=>(V(),H(`progress`,{max:e.max,value:e.value,class:k([t.$style.progress,t.$style[`progress_`+e.size]]),style:ge(n.value)},null,14,kQ))}}),[[`__cssModules`,{$style:{progress:`_progress_1wiry_1`,progress_sm:`_progress_sm_1wiry_28`,progress_md:`_progress_md_1wiry_40`,smedIndeterminateAnimation:`_smedIndeterminateAnimation_1wiry_1`}}]]),jQ=(e,t,n=String)=>n(t).toLowerCase()===(e||``).toLowerCase(),MQ={..._H,search:null,identityMatcher:PH,strictMatcher:()=>jQ,stringify:pH,items:NH,dropdownProps:fH},NQ=L({name:`Combobox`,__name:`Combobox`,props:z({modelValue:{},modelModifiers:{},type:{},size:{},disabled:{type:Boolean},label:{},description:{},editable:{type:Boolean},hasCleaner:{type:Boolean},invalid:{type:Boolean},isSuccess:{type:Boolean},placeholder:{},autocomplete:{},name:{},decoratorPostfix:{},decoratorPostfixColorClass:{},inputmode:{},readonly:{type:Boolean},required:{type:Boolean},id:{},dataAutomationId:{},pseudoHovered:{type:Boolean},pseudoFocused:{type:Boolean},stringify:{type:Function},search:{},items:{},identityMatcher:{type:Function},strictMatcher:{type:[Function,null]},dropdownProps:{}},MQ),emits:[`update:search`,`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,{modelValue:i,items:a,invalid:o,disabled:s,search:c,stringify:l}=N(n),u=j(null),d=FV(o),f=PV(s),p=j(!1),m=j(n.search),h=q(()=>{let e=i.value,t=m.value;return e===null?t||``:n.stringify(e)}),g=q(()=>a.value===null),v=e=>{p.value&&e.preventDefault();let t=a.value||[];t.length===1&&(r(`update:modelValue`,t[0]),y(null),p.value=!1)},y=e=>{m.value!==e&&(m.value=e,r(`update:search`,e))},b=e=>{let t=m.value;return!!t&&!!n.strictMatcher?.(t,e,l.value)},x=e=>{y(e);let t=(a.value||[]).find(e=>b(e));if(t!==void 0){r(`update:modelValue`,t),y(null);return}r(`update:modelValue`,null),e&&(p.value=!0)},S=e=>{u.value?.focus(),p.value=!1,y(null),r(`update:modelValue`,e),e&&(m.value=l.value(e))};return I(c,e=>{m.value=e}),(t,n)=>(V(),U(M(rU),ao(e.dropdownProps,{modelValue:p.value,"onUpdate:modelValue":n[0]||=e=>p.value=e,class:`smed-combobox`,"can-open":!M(f),onKeydown:ec(v,[`enter`])}),{dropdown:P(()=>[R(t.$slots,`dropdown`,{items:M(a)},()=>[G(M(WH),{loading:g.value},yi({default:P(()=>[(V(!0),H(B,null,vi(M(a),(n,r)=>(V(),U(M(GH),{key:r,active:e.identityMatcher(M(i),n),onClick:e=>S(n)},{default:P(({active:e})=>[R(t.$slots,`itemContent`,{active:e,item:n},()=>[eo(A(n),1)])]),_:2},1032,[`active`,`onClick`]))),128)),M(a)&&M(a).length>0&&t.$slots.action?R(t.$slots,`action`,{},void 0,void 0,0):K(``,!0)]),_:2},[t.$slots.emptyContent?{name:`emptyContent`,fn:P(()=>[R(t.$slots,`emptyContent`)]),key:`0`}:void 0]),1032,[`loading`])])]),default:P(()=>[G(M(MH),ao(t.$props,{ref_key:`baseInputExposed`,ref:u,disabled:M(f),"model-value":h.value,invalid:M(d),stringify:void 0,"pseudo-focused":p.value,"onUpdate:modelValue":x}),yi({right:P(()=>[G(M(hN),{name:`@smed.arrow-down`,size:`sm`,rotate:p.value,class:k(!M(f)&&`smed-combobox__icon`)},null,8,[`rotate`,`class`]),R(t.$slots,`right`)]),_:2},[t.$slots.left?{name:`left`,fn:P(()=>[R(t.$slots,`left`)]),key:`0`}:void 0,t.$slots.valueContent&&M(i)?{name:`valueContent`,fn:P(()=>[R(t.$slots,`valueContent`,{value:M(i)})]),key:`1`}:void 0,t.$slots.label?{name:`label`,fn:P(()=>[R(t.$slots,`label`)]),key:`2`}:void 0,t.$slots.description?{name:`description`,fn:P(()=>[R(t.$slots,`description`)]),key:`3`}:void 0]),1040,[`disabled`,`model-value`,`invalid`,`pseudo-focused`])]),_:3},16,[`modelValue`,`can-open`]))}}),PQ={key:0},FQ=Z(L({__name:`HighlightText`,props:{query:{},text:{}},setup(e){let{query:t,text:n}=N(e),r=q(()=>!t||!t.value?[{text:n.value}]:rV(n.value,t.value));return(e,t)=>(V(),H(`span`,{class:k(e.$style.highlight)},[(V(!0),H(B,null,vi(r.value,(e,t)=>(V(),H(B,{key:t},[e.bold?(V(),H(`b`,PQ,A(e.bold),1)):(V(),H(B,{key:1},[eo(A(e.text),1)],64))],64))),128))],2))}}),[[`__cssModules`,{$style:{highlight:`_highlight_p7dzj_1`}}]]),IQ=L({name:`Memo`,__name:`Memo`,props:{a:{},b:{},c:{},d:{},e:{}},setup(e){let t=e;return(e,n)=>R(e.$slots,`default`,xe(Qa(t)))}}),LQ={modelValue:null,wide:!1,items:NH,identityMatcher:PH,disableItemHandler:xW},RQ=[`data-wide`,`disabled`,`tabindex`,`onClick`],zQ=Z(L({name:`BaseSelector`,__name:`BaseSelector`,props:z({modelValue:{},asRouter:{type:Boolean},routeExactMatch:{type:Boolean},items:{},wide:{type:Boolean},identityMatcher:{type:Function},disableItemHandler:{type:Function}},LQ),emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,{asRouter:i,modelValue:a,routeExactMatch:o}=N(n);return(t,n)=>{let s=fi(`router-link`);return V(),H(`div`,{class:k(t.$style.wrapper)},[(V(!0),H(B,null,vi(e.items,(n,c)=>(V(),U(M(IQ),{key:c,a:e.disableItemHandler(n,c)},{default:P(({a:l})=>[!l&&M(i)?(V(),U(s,{key:0,class:k(t.$style.itemContainer),"data-wide":e.wide,to:n,onClick:e=>r(`update:modelValue`,n)},{default:P(e=>[R(t.$slots,`default`,{active:M(o)?e.isExactActive:e.isActive,item:n,index:c,disabled:l},()=>[eo(A(n),1)])]),_:2},1032,[`class`,`data-wide`,`to`,`onClick`])):(V(),H(`button`,{key:1,type:`button`,class:k(t.$style.itemContainer),"data-wide":e.wide,disabled:l,tabindex:l?-1:0,onClick:Qs(e=>r(`update:modelValue`,n),[`stop`,`prevent`])},[R(t.$slots,`default`,{active:e.identityMatcher(M(a),n),item:n,index:c,disabled:l},()=>[eo(A(n),1)])],10,RQ))]),_:2},1032,[`a`]))),128))],2)}}}),[[`__cssModules`,{$style:{wrapper:`_wrapper_10q7w_1`,itemContainer:`_itemContainer_10q7w_15`}}]]),BQ=Z(L({name:`Tabs`,__name:`Tabs`,props:{modelValue:{},asRouter:{type:Boolean},routeExactMatch:{type:Boolean},items:{},wide:{type:Boolean},identityMatcher:{type:Function},disableItemHandler:{type:Function}},emits:[`update:modelValue`],setup(e){let t=e;return(e,n)=>(V(),H(`div`,{class:k(e.$style.wrapper)},[G(M(zQ),ao(t,{"onUpdate:modelValue":n[0]||=t=>e.$emit(`update:modelValue`,t)}),{default:P(({item:t,active:n,disabled:r,index:i})=>[W(`div`,{class:k([`smed-text_body-lg`,e.$style.item,n&&e.$style.item_active,r&&e.$style.item_disabled])},[W(`div`,{class:k(e.$style.content)},[R(e.$slots,`default`,{item:t,active:n,disabled:r,index:i},()=>[eo(A(t),1)])],2),W(`div`,{class:k([`smed-text_bold`,e.$style.defineSize])},[R(e.$slots,`default`,{item:t,active:n,disabled:r,index:i},()=>
45[eo(A(t),1)])],2)],2)]),_:3},16)],2))}}),[[`__cssModules`,{$style:{wrapper:`_wrapper_pbjdy_1`,item:`_item_pbjdy_6`,item_active:`_item_active_pbjdy_32`,item_disabled:`_item_disabled_pbjdy_32`,content:`_content_pbjdy_46`,defineSize:`_defineSize_pbjdy_53`}}]]),VQ=Math.pow,HQ=3294.6,UQ=269.025,WQ=e=>~~(e>1227e-8?UQ*VQ(e,.416666)-13.025:e*HQ+1),GQ=4096,KQ=new Uint8ClampedArray(4097);for(let e=0;e<=GQ;e++)KQ[e]=WQ(e/GQ);function qQ(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}var JQ={...rQ},YQ=[`data-wide`],XQ=Z(L({name:`Tooltip`,__name:`Tooltip`,props:z({direction:{},describedBy:{},appearance:{},showDelay:{},hideDelay:{},class:{},style:{},maxWidth:{},wide:{type:Boolean},disabled:{type:Boolean}},JQ),setup(e){let t=e,n=q(()=>t.maxWidth?{maxWidth:t.maxWidth}:void 0);return(t,r)=>(V(),H(`div`,{class:`smed-tooltip`,"data-wide":e.wide},[G(M(fQ),{direction:e.direction,"described-by":e.describedBy,appearance:e.appearance,"show-delay":e.showDelay,"hide-delay":e.hideDelay,style:ge(n.value)},yi({default:P(({on:e,attrs:n})=>[W(`div`,ao(n,{class:`smed-tooltip__container`},xi(e,!0)),[R(t.$slots,`default`,{},void 0,!0)],16)]),_:2},[!e.disabled&&t.$slots.hint?{name:`hint`,fn:P(()=>[R(t.$slots,`hint`,{},void 0,!0)]),key:`0`}:void 0]),1032,[`direction`,`described-by`,`appearance`,`show-delay`,`hide-delay`,`style`])],8,YQ))}}),[[`__scopeId`,`data-v-a208b665`]]),ZQ={class:`appearance`},QQ=Z(L({__name:`TabSwitch`,props:{modelValue:{},items:{},label:{},value:{}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t;function i(e){let t=n.items[e][n.value],r=n.modelValue[n.value];return Object.is(t,r)}function a(e){r(`update:modelValue`,e)}return(t,n)=>(V(),H(`div`,ZQ,[G(M(EX),{appearance:`segmented`},{default:P(()=>[(V(!0),H(B,null,vi(e.items,(t,n)=>(V(),U(M(MX),{key:n,appearance:`segmented`,active:i(n),onClick:e=>a(t)},{default:P(()=>[eo(A(t[e.label]),1)]),_:2},1032,[`active`,`onClick`]))),128))]),_:1})]))}}),[[`__scopeId`,`data-v-d0d49722`]]),$Q={...cY,placeholder:``,dataAutomationId:`smed-input-phone-international`},e$=L({name:`InputPhoneInternational`,__name:`InputPhoneInternational`,props:z({modelValue:{},modelModifiers:{},type:{},size:{},disabled:{type:Boolean},label:{},description:{},editable:{type:Boolean},hasCleaner:{type:Boolean},invalid:{type:Boolean},isSuccess:{type:Boolean},placeholder:{},autocomplete:{},name:{},decoratorPostfix:{},decoratorPostfixColorClass:{},inputmode:{},readonly:{type:Boolean},required:{type:Boolean},id:{},dataAutomationId:{},pseudoHovered:{type:Boolean},pseudoFocused:{type:Boolean},stringify:{type:Function}},$Q),emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,{modelValue:i}=N(n),a=AB.map(({prefix:e})=>e),o=a.map(e=>e.replace(`+`,``)),s=q(()=>{let e=tV(i.value||``),t=`+${e}`;if(e.startsWith(`77`)||e.startsWith(`76`))return`KZ`;if(e.startsWith(`7`))return`RU`;let n=AB.find(({prefix:e})=>t.startsWith(e));return n?n.id:null}),c=q(()=>{let e=i.value||``,t=e.length;return!(e.startsWith(`+`)?a:o).some(n=>t<=n.length&&n.startsWith(e))}),l=e=>{r(`update:modelValue`,e)};return(e,t)=>(V(),U(M(lY),ao(n,{"model-value":M(i),"has-cleaner":c.value,"mask-options":M(ZB),"onUpdate:modelValue":l}),yi({left:P(()=>[G(M(aY),{code:s.value},null,8,[`code`])]),_:2},[e.$slots.label?{name:`label`,fn:P(()=>[R(e.$slots,`label`)]),key:`0`}:void 0,e.$slots.description?{name:`description`,fn:P(()=>[R(e.$slots,`description`)]),key:`1`}:void 0]),1040,[`model-value`,`has-cleaner`,`mask-options`]))}}),t$=`+`,n$=Z(L({name:`Badge`,__name:`Badge`,props:{value:{default:null},notificationClass:{}},setup(e){let{value:t}=N(e),n=q(()=>t.value===null?null:typeof t.value==`number`?t.value>99?`99${t$}`:`${t.value}`:t.value||` `);return(t,r)=>(V(),H(`div`,{class:k(t.$style.host)},[W(`div`,null,[R(t.$slots,`default`)]),n.value===null?K(``,!0):(V(),H(`span`,{key:0,class:k([`smed-text_body-xs`,t.$style.notification,e.notificationClass])},A(n.value),3))],2))}}),[[`__cssModules`,{$style:{host:`_host_1vnvt_1`,notification:`_notification_1vnvt_6`}}]]),r$={max:1,track:`var(--smed-base-04)`,color:`var(--smed-primary)`,size:`lg`,duration:300},i$={sm:{s:2,r:24},md:{r:32,s:2},lg:{r:52,s:4}},a$=[`value`,`max`],o$=Z(L({__name:`ProgressCircle`,props:z({value:{},max:{},size:{},track:{},color:{},duration:{}},r$),setup(e){let{value:t,max:n,size:r,color:i,track:a,duration:o}=N(e),s=j(!1);ti(()=>{s.value=!0});let c=q(()=>{let e=r.value;return typeof e==`string`?i$[e]:e}),l=q(()=>{let e=t.value,r=n.value,s=c.value,l=`${s.r}px`,u=`${s.s}px`,d=i.value,f=a.value;return{"--smed-duration":`${o.value}ms`,"--smed-progress-color":d,"--smed-track-color":f,"--smed-progress-prcnt":e/r,"--smed-progress-r":`calc((${l} - ${u}) / 2)`,"--smed-progress-sw":u,"--smed-progress-sd":`calc((${l} - ${u}) * ${Math.PI})`,"--smed-progress-size":l}});return(e,i)=>(V(),H(`div`,{class:k([e.$style.root,e.$style[`root_`+M(r)]]),style:ge(l.value)},[W(`progress`,{class:k(e.$style.native),value:M(t),max:M(n)},null,10,a$),(V(),H(`svg`,{height:`100%`,width:`100%`,"aria-hidden":`true`,class:k(e.$style.svg)},[W(`circle`,{cx:`50%`,cy:`50%`,class:k(e.$style.track)},null,2),W(`circle`,{cx:`50%`,cy:`50%`,class:k([e.$style.progress,s.value&&e.$style.progress_filled])},null,2)],2))],6))}}),[[`__cssModules`,{$style:{root:`_root_1c3ok_1`,native:`_native_1c3ok_11`,svg:`_svg_1c3ok_23`,track:`_track_1c3ok_27`,progress:`_progress_1c3ok_34`,progress_filled:`_progress_filled_1c3ok_43`}}]]),s$=e({AlertUndo:()=>c$,default:()=>c$}),c$=Z(L({__name:`AlertUndo`,props:{context:{}}
45,setup(e){let{context:t}=N(e),n=t.value.data.autoClose,r=n/1e3,i=j(-n),a=j(n),o=q(()=>{let e=a.value;return Math.round(e/1e3)}),s=q(()=>{let e=o.value;return eF(e,0,r)}),c,l=FH(e=>{c&&(a.value=a.value-e+c,i.value=i.value+e-c),c=e},100);ii(()=>{l.stop()});let u=()=>{let e=t.value;e.close(),e.data.onUndo()};return(e,n)=>(V(),H(B,null,[W(`label`,{class:k(e.$style.label)},[W(`span`,{class:k(e.$style.text)},A(s.value),3),G(M(o$),{size:`sm`,color:`var(--smed-base-01)`,track:`transparent`,value:i.value+100,max:M(t).data.autoClose,duration:100},null,8,[`value`,`max`])],2),W(`p`,null,A(M(t).data.message),1),G(M(FB),{color:`secondary`,size:`sm`,class:k(e.$style.link),onClick:u},{default:P(()=>[eo(A(M(t).data.cancelText||`ÐÑмена`),1)]),_:1},8,[`class`])],64))}}),[[`__cssModules`,{$style:{label:`_label_10wvk_1`,text:`_text_10wvk_6`,link:`_link_10wvk_19`}}]]),l$=e({Workbox:()=>C$,WorkboxEvent:()=>v$,messageSW:()=>u$});try{self[`workbox:window:7.4.0`]&&_()}catch{}function u$(e,t){return new Promise((function(n){var r=new MessageChannel;r.port1.onmessage=function(e){n(e.data)},e.postMessage(t,[r.port2])}))}function d$(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function f$(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,h$(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function p$(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if(typeof e==`string`)return d$(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d$(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance. 46In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m$(e,t){return m$=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m$(e,t)}function h$(e){var t=function(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}(e,`string`);return typeof t==`symbol`?t:t+``}try{self[`workbox:core:7.4.0`]&&_()}catch{}var g$=function(){var e=this;this.promise=new Promise((function(t,n){e.resolve=t,e.reject=n}))};function _$(e,t){var n=location.href;return new URL(e,n).href===new URL(t,n).href}var v$=function(e,t){this.type=e,Object.assign(this,t)};function y$(e,t,n){return e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e}function b$(){}var x$={type:`SKIP_WAITING`};function S$(e,t){return e&&e.then?e.then(b$):Promise.resolve()}var C$=function(e){function t(t,n){var r,i;return n===void 0&&(n={}),(r=e.call(this)||this).nn={},r.tn=0,r.rn=new g$,r.en=new g$,r.on=new g$,r.un=0,r.an=new Set,r.cn=function(){var e=r.fn,t=e.installing;r.tn>0||!_$(t.scriptURL,r.sn.toString())||performance.now()>r.un+6e4?(r.vn=t,e.removeEventListener(`updatefound`,r.cn)):(r.hn=t,r.an.add(t),r.rn.resolve(t)),++r.tn,t.addEventListener(`statechange`,r.ln)},r.ln=function(e){var t=r.fn,n=e.target,i=n.state,a=n===r.vn,o={sw:n,isExternal:a,originalEvent:e};!a&&r.mn&&(o.isUpdate=!0),r.dispatchEvent(new v$(i,o)),i===`installed`?r.wn=self.setTimeout((function(){i===`installed`&&t.waiting===n&&r.dispatchEvent(new v$(`waiting`,o))}),200):i===`activating`&&(clearTimeout(r.wn),a||r.en.resolve(n))},r.yn=function(e){var t=r.hn,n=t!==navigator.serviceWorker.controller;r.dispatchEvent(new v$(`controlling`,{isExternal:n,originalEvent:e,sw:t,isUpdate:r.mn})),n||r.on.resolve(t)},r.gn=(i=function(e){var t=e.data,n=e.ports,i=e.source;return y$(r.getSW(),(function(){r.an.has(i)&&r.dispatchEvent(new v$(`message`,{data:t,originalEvent:e,ports:n,sw:i}))}))},function(){var e=[...arguments];try{return Promise.resolve(i.apply(this,e))}catch(e){return Promise.reject(e)}}),r.sn=t,r.nn=n,navigator.serviceWorker.addEventListener(`message`,r.gn),r}var n,r=e;(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,m$(n,r);var i=t.prototype;return i.register=function(e){var t=(e===void 0?{}:e).immediate,n=t!==void 0&&t;try{var r=this;return y$(function(e,t){var n=e();return n&&n.then?n.then(t):t(n)}((function(){if(!n&&document.readyState!==`complete`)return S$(new Promise((function(e){return window.addEventListener(`load`,e)})))}),(function(){return r.mn=!!navigator.serviceWorker.controller,r.dn=r.pn(),y$(r.bn(),(function(e){r.fn=e,r.dn&&(r.hn=r.dn,r.en.resolve(r.dn),r.on.resolve(r.dn),r.dn.addEventListener(`statechange`,r.ln,{once:!0}));var t=r.fn.waiting;
vendor: 3,399 bytes, line 46
46return t&&_$(t.scriptURL,r.sn.toString())&&(r.hn=t,Promise.resolve().then((function(){r.dispatchEvent(new v$(`waiting`,{sw:t,wasWaitingBeforeRegister:!0}))})).then((function(){}))),r.hn&&(r.rn.resolve(r.hn),r.an.add(r.hn)),r.fn.addEventListener(`updatefound`,r.cn),navigator.serviceWorker.addEventListener(`controllerchange`,r.yn),r.fn}))})))}catch(e){return Promise.reject(e)}},i.update=function(){try{return this.fn?y$(S$(this.fn.update())):y$()}catch(e){return Promise.reject(e)}},i.getSW=function(){return this.hn===void 0?this.rn.promise:Promise.resolve(this.hn)},i.messageSW=function(e){try{return y$(this.getSW(),(function(t){return u$(t,e)}))}catch(e){return Promise.reject(e)}},i.messageSkipWaiting=function(){this.fn&&this.fn.waiting&&u$(this.fn.waiting,x$)},i.pn=function(){var e=navigator.serviceWorker.controller;return e&&_$(e.scriptURL,this.sn.toString())?e:void 0},i.bn=function(){try{var e=this;return y$(function(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}((function(){return y$(navigator.serviceWorker.register(e.sn,e.nn),(function(t){return e.un=performance.now(),t}))}),(function(e){throw e})))}catch(e){return Promise.reject(e)}},f$(t,[{key:`active`,get:function(){return this.en.promise}},{key:`controlling`,get:function(){return this.on.promise}}])}(function(){function e(){this.Pn=new Map}var t=e.prototype;return t.addEventListener=function(e,t){this.jn(e).add(t)},t.removeEventListener=function(e,t){this.jn(e).delete(t)},t.dispatchEvent=function(e){e.target=this;for(var t,n=p$(this.jn(e.type));!(t=n()).done;)(0,t.value)(e)},t.jn=function(e){return this.Pn.has(e)||this.Pn.set(e,new Set),this.Pn.get(e)},e}());export{eG as $,eo as $n,BF as $t,CY as A,nu as An,j as Ar,tV as At,WJ as B,us as Bn,xB as Bt,MX as C,rM as Cn,I as Cr,eH as Ct,GY as D,Vv as Dn,nn as Dr,EV as Dt,eX as E,LA as En,on as Er,MV as Et,lY as F,Ll as Fn,ge as Fr,IB as Ft,pq as G,Wr as Gn,hz as Gt,Sq as H,ec as Hn,vB as Ht,cY as I,Uo as In,A as Ir,FB as It,rq as J,U as Jn,NR as Jt,oq as K,q as Kn,rz as Kt,sY as L,Ws as Ln,ce as Lr,MB as Lt,gY as M,Zl as Mn,M as Mr,nV as Mt,dY as N,ql as Nn,k as Nr,RB as Nt,EY as O,Yl as On,qt as Or,yV as Ot,uY as P,Rl as Pn,xe as Pr,LB as Pt,rG as Q,to as Qn,cL as Qt,aY as R,ic as Rn,AB as Rt,FX as S,mM as Sn,Nr as Sr,ZV as St,wX as T,Zj as Tn,qn as Tr,VV as Tt,Cq as U,Qs as Un,pB as Ut,Dq as V,ss as Vn,yB as Vt,bq as W,B as Wn,rB as Wt,uK as X,H as Xn,EL as Xt,mK as Y,K as Yn,wR as Yt,dG as Z,yi as Zn,TL as Zt,WZ as _,JM as _n,R as _r,$H as _t,XQ as a,QP as an,z as ar,OW as at,SZ as b,SM as bn,mi as br,MH as bt,zQ as c,ZN as cn,Kr as cr,hW as ct,AQ as d,LN as dn,ti as dr,_W as dt,eI as en,G as er,HW as et,DQ as f,jN as fn,ai as fr,vW as ft,ZZ as g,IM as gn,vi as gr,rU as gt,tQ as h,hN as hn,Yn as hr,aU as ht,QQ as i,tF as in,F as ir,PW as it,SY as j,iu as jn,N as jr,aV as jt,TY as k,Ql as kn,Yt as kr,hV as kt,FQ as l,XN as ln,ei as lr,mW as lt,fQ as m,gN as mn,V as mr,mU as mt,n$ as n,iF as nn,L as nr,BW as nt,qQ as o,WP as on,ao as or,yW as ot,wQ as p,MN as pn,ri as pr,iW as pt,iq as q,W as qn,dz as qt,e$ as r,eF as rn,Qa as rr,RW as rt,BQ as s,fP as sn,Fn as sr,gW as st,l$ as t,tI as tn,Vr as tr,KW as tt,NQ as u,YN as un,ii as ur,pW as ut,XZ as v,GM as vn,fi as vr,WH as vt,EX as w,eM as wn,P as wr,YV as wt,QX as x,jM as xn,xi as xr,dH as xt,BZ as y,KM as yn,hi as yr,GH as yt,iY as z,zs as zn,wB as zt};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.