diff --git a/assets/Microphone.5b9de2a7.js b/assets/Microphone.5b9de2a7.js new file mode 100644 index 000000000..398b0604a --- /dev/null +++ b/assets/Microphone.5b9de2a7.js @@ -0,0 +1,20 @@ +import{v as qt,C as Kt,N as Ut,V as Wt,s as Ht,n as Vt}from"./index.84cfc13b.js";var be={};const jt=()=>qt(),E=()=>jt().replace(new RegExp("-","g"),"").toUpperCase();var w;(function(i){i[i.Debug=0]="Debug",i[i.Info=1]="Info",i[i.Warning=2]="Warning",i[i.Error=3]="Error",i[i.None=4]="None"})(w||(w={}));class Q{constructor(e,t){this.privName=e,this.privEventId=E(),this.privEventTime=new Date().toISOString(),this.privEventType=t,this.privMetadata={}}get name(){return this.privName}get eventId(){return this.privEventId}get eventTime(){return this.privEventTime}get eventType(){return this.privEventType}get metadata(){return this.privMetadata}}class ve extends Q{constructor(e,t,r=w.Info){super(e,r),this.privAudioSourceId=t}get audioSourceId(){return this.privAudioSourceId}}class Me extends ve{constructor(e){super("AudioSourceInitializingEvent",e)}}class ue extends ve{constructor(e){super("AudioSourceReadyEvent",e)}}class yt extends ve{constructor(e){super("AudioSourceOffEvent",e)}}class Re extends ve{constructor(e,t){super("AudioSourceErrorEvent",e,w.Error),this.privError=t}get error(){return this.privError}}class De extends ve{constructor(e,t,r){super(e,t),this.privAudioNodeId=r}get audioNodeId(){return this.privAudioNodeId}}class fe extends De{constructor(e,t){super("AudioStreamNodeAttachingEvent",e,t)}}class le extends De{constructor(e,t){super("AudioStreamNodeAttachedEvent",e,t)}}class V extends De{constructor(e,t){super("AudioStreamNodeDetachedEvent",e,t)}}class $e extends De{constructor(e,t,r){super("AudioStreamNodeErrorEvent",e,t),this.privError=r}get error(){return this.privError}}class Ct extends Q{constructor(e,t,r=w.Info){super(e,r),this.privJsonResult=t}get jsonString(){return this.privJsonResult}}class X extends Q{constructor(e,t,r=w.Info){super(e,r),this.privConnectionId=t}get connectionId(){return this.privConnectionId}}class bt extends X{constructor(e,t,r){super("ConnectionStartEvent",e),this.privUri=t,this.privHeaders=r}get uri(){return this.privUri}get headers(){return this.privHeaders}}class Rt extends X{constructor(e){super("ConnectionEstablishedEvent",e)}}class Ft extends X{constructor(e,t,r){super("ConnectionClosedEvent",e,w.Debug),this.privReason=r,this.privStatusCode=t}get reason(){return this.privReason}get statusCode(){return this.privStatusCode}}class $t extends X{constructor(e,t,r){super("ConnectionErrorEvent",e,w.Debug),this.privMessage=t,this.privType=r}get message(){return this.privMessage}get type(){return this.privType}}class Jt extends X{constructor(e,t,r){super("ConnectionEstablishErrorEvent",e,w.Error),this.privStatusCode=t,this.privReason=r}get reason(){return this.privReason}get statusCode(){return this.privStatusCode}}class qe extends X{constructor(e,t,r){super("ConnectionMessageReceivedEvent",e),this.privNetworkReceivedTime=t,this.privMessage=r}get networkReceivedTime(){return this.privNetworkReceivedTime}get message(){return this.privMessage}}class Gt extends X{constructor(e,t,r){super("ConnectionMessageSentEvent",e),this.privNetworkSentTime=t,this.privMessage=r}get networkSentTime(){return this.privNetworkSentTime}get message(){return this.privMessage}}class I extends Error{constructor(e){super(e),this.name="ArgumentNull",this.message=e}}class _ extends Error{constructor(e){super(e),this.name="InvalidOperation",this.message=e}}class Je extends Error{constructor(e,t){super(t),this.name=e+"ObjectDisposed",this.message=t}}var S;(function(i){i[i.Text=0]="Text",i[i.Binary=1]="Binary"})(S||(S={}));class Ke{constructor(e,t,r,n){if(this.privBody=null,e===S.Text&&t&&typeof t!="string")throw new _("Payload must be a string");if(e===S.Binary&&t&&!(t instanceof ArrayBuffer))throw new _("Payload must be ArrayBuffer");switch(this.privMessageType=e,this.privBody=t,this.privHeaders=r||{},this.privId=n||E(),this.messageType){case S.Binary:this.privSize=this.binaryBody!==null?this.binaryBody.byteLength:0;break;case S.Text:this.privSize=this.textBody.length}}get messageType(){return this.privMessageType}get headers(){return this.privHeaders}get body(){return this.privBody}get textBody(){if(this.privMessageType===S.Binary)throw new _("Not supported for binary message");return this.privBody}get binaryBody(){if(this.privMessageType===S.Text)throw new _("Not supported for text message");return this.privBody}get id(){return this.privId}}class Be{constructor(e,t){this.privStatusCode=e,this.privReason=t}get statusCode(){return this.privStatusCode}get reason(){return this.privReason}}class K{constructor(e){this.privEventListeners={},this.privIsDisposed=!1,this.privConsoleListener=void 0,this.privMetadata=e}onEvent(e){if(this.isDisposed())throw new Je("EventSource");if(this.metadata)for(const t in this.metadata)t&&e.metadata&&(e.metadata[t]||(e.metadata[t]=this.metadata[t]));for(const t in this.privEventListeners)t&&this.privEventListeners[t]&&this.privEventListeners[t](e)}attach(e){const t=E();return this.privEventListeners[t]=e,{detach:()=>(delete this.privEventListeners[t],Promise.resolve())}}attachListener(e){return this.attach(t=>e.onEvent(t))}attachConsoleListener(e){return this.privConsoleListener&&this.privConsoleListener.detach(),this.privConsoleListener=this.attach(t=>e.onEvent(t)),this.privConsoleListener}isDisposed(){return this.privIsDisposed}dispose(){this.privEventListeners=null,this.privIsDisposed=!0}get metadata(){return this.privMetadata}}class M{static setEventSource(e){if(!e)throw new I("eventSource");M.privInstance=e}static get instance(){return M.privInstance}}M.privInstance=new K;var A;(function(i){i[i.None=0]="None",i[i.Connected=1]="Connected",i[i.Connecting=2]="Connecting",i[i.Disconnected=3]="Disconnected"})(A||(A={}));class q{constructor(e){if(this.privSubscriptionIdCounter=0,this.privAddSubscriptions={},this.privRemoveSubscriptions={},this.privDisposedSubscriptions={},this.privDisposeReason=null,this.privList=[],e)for(const t of e)this.privList.push(t)}get(e){return this.throwIfDisposed(),this.privList[e]}first(){return this.get(0)}last(){return this.get(this.length()-1)}add(e){this.throwIfDisposed(),this.insertAt(this.privList.length,e)}insertAt(e,t){this.throwIfDisposed(),e===0?this.privList.unshift(t):e===this.privList.length?this.privList.push(t):this.privList.splice(e,0,t),this.triggerSubscriptions(this.privAddSubscriptions)}removeFirst(){return this.throwIfDisposed(),this.removeAt(0)}removeLast(){return this.throwIfDisposed(),this.removeAt(this.length()-1)}removeAt(e){return this.throwIfDisposed(),this.remove(e,1)[0]}remove(e,t){this.throwIfDisposed();const r=this.privList.splice(e,t);return this.triggerSubscriptions(this.privRemoveSubscriptions),r}clear(){this.throwIfDisposed(),this.remove(0,this.length())}length(){return this.throwIfDisposed(),this.privList.length}onAdded(e){this.throwIfDisposed();const t=this.privSubscriptionIdCounter++;return this.privAddSubscriptions[t]=e,{detach:()=>(delete this.privAddSubscriptions[t],Promise.resolve())}}onRemoved(e){this.throwIfDisposed();const t=this.privSubscriptionIdCounter++;return this.privRemoveSubscriptions[t]=e,{detach:()=>(delete this.privRemoveSubscriptions[t],Promise.resolve())}}onDisposed(e){this.throwIfDisposed();const t=this.privSubscriptionIdCounter++;return this.privDisposedSubscriptions[t]=e,{detach:()=>(delete this.privDisposedSubscriptions[t],Promise.resolve())}}join(e){return this.throwIfDisposed(),this.privList.join(e)}toArray(){const e=Array();return this.privList.forEach(t=>{e.push(t)}),e}any(e){return this.throwIfDisposed(),e?this.where(e).length()>0:this.length()>0}all(e){return this.throwIfDisposed(),this.where(e).length()===this.length()}forEach(e){this.throwIfDisposed();for(let t=0;te(r,t))}clone(){return this.throwIfDisposed(),new q(this.toArray())}concat(e){return this.throwIfDisposed(),new q(this.privList.concat(e.toArray()))}concatArray(e){return this.throwIfDisposed(),new q(this.privList.concat(e))}isDisposed(){return this.privList==null}dispose(e){this.isDisposed()||(this.privDisposeReason=e,this.privList=null,this.privAddSubscriptions=null,this.privRemoveSubscriptions=null,this.triggerSubscriptions(this.privDisposedSubscriptions))}throwIfDisposed(){if(this.isDisposed())throw new Je("List",this.privDisposeReason)}triggerSubscriptions(e){if(e)for(const t in e)t&&e[t]()}}var ct;(function(i){i[i.None=0]="None",i[i.Resolved=1]="Resolved",i[i.Rejected=2]="Rejected"})(ct||(ct={}));class T{constructor(){this.resolve=e=>(this.privResolve(e),this),this.reject=e=>(this.privReject(e),this),this.privPromise=new Promise((e,t)=>{this.privResolve=e,this.privReject=t})}get promise(){return this.privPromise}}function ce(i,e,t){i.then(r=>{try{e&&e(r)}catch(n){if(t)try{if(n instanceof Error){const s=n;t(s.name+": "+s.message)}else t(n)}catch{}}},r=>{if(t)try{if(r instanceof Error){const n=r;t(n.name+": "+n.message)}else t(r)}catch{}})}var at=globalThis&&globalThis.__awaiter||function(i,e,t,r){function n(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function h(c){try{a(r.next(c))}catch(p){o(p)}}function u(c){try{a(r.throw(c))}catch(p){o(p)}}function a(c){c.done?s(c.value):n(c.value).then(h,u)}a((r=r.apply(i,e||[])).next())})},ae;(function(i){i[i.Dequeue=0]="Dequeue",i[i.Peek=1]="Peek"})(ae||(ae={}));class Ee{constructor(e){this.privPromiseStore=new q,this.privIsDrainInProgress=!1,this.privIsDisposing=!1,this.privDisposeReason=null,this.privList=e||new q,this.privDetachables=[],this.privSubscribers=new q,this.privDetachables.push(this.privList.onAdded(()=>this.drain()))}enqueue(e){this.throwIfDispose(),this.enqueueFromPromise(new Promise(t=>t(e)))}enqueueFromPromise(e){this.throwIfDispose(),e.then(t=>{this.privList.add(t)},()=>{})}dequeue(){this.throwIfDispose();const e=new T;return this.privSubscribers&&(this.privSubscribers.add({deferral:e,type:ae.Dequeue}),this.drain()),e.promise}peek(){this.throwIfDispose();const e=new T;return this.privSubscribers&&(this.privSubscribers.add({deferral:e,type:ae.Peek}),this.drain()),e.promise}length(){return this.throwIfDispose(),this.privList.length()}isDisposed(){return this.privSubscribers==null}drainAndDispose(e,t){return at(this,void 0,void 0,function*(){if(!this.isDisposed()&&!this.privIsDisposing){this.privDisposeReason=t,this.privIsDisposing=!0;const r=this.privSubscribers;if(r){for(;r.length()>0;)r.removeFirst().deferral.resolve(void 0);this.privSubscribers===r&&(this.privSubscribers=r)}for(const n of this.privDetachables)yield n.detach();if(this.privPromiseStore.length()>0&&e){const n=[];return this.privPromiseStore.toArray().forEach(s=>{n.push(s)}),Promise.all(n).finally(()=>{this.privSubscribers=null,this.privList.forEach(s=>{e(s)}),this.privList=null}).then()}else this.privSubscribers=null,this.privList=null}})}dispose(e){return at(this,void 0,void 0,function*(){yield this.drainAndDispose(null,e)})}drain(){if(!this.privIsDrainInProgress&&!this.privIsDisposing){this.privIsDrainInProgress=!0;const e=this.privSubscribers,t=this.privList;if(e&&t){for(;t.length()>0&&e.length()>0&&!this.privIsDisposing;){const r=e.removeFirst();if(r.type===ae.Peek)r.deferral.resolve(t.first());else{const n=t.removeFirst();r.deferral.resolve(n)}}this.privSubscribers===e&&(this.privSubscribers=e),this.privList===t&&(this.privList=t)}this.privIsDrainInProgress=!1}}throwIfDispose(){if(this.isDisposed())throw this.privDisposeReason?new _(this.privDisposeReason):new Je("Queue");if(this.privIsDisposing)throw new _("Queue disposing")}}class Ae{constructor(e,t,r){if(this.privPayload=null,!t)throw new I("payload");if(e===S.Binary&&t.__proto__.constructor.name!=="ArrayBuffer")throw new _("Payload must be ArrayBuffer");if(e===S.Text&&typeof t!="string")throw new _("Payload must be a string");this.privMessageType=e,this.privPayload=t,this.privId=r||E()}get messageType(){return this.privMessageType}get payload(){return this.privPayload}get textContent(){if(this.privMessageType===S.Binary)throw new _("Not supported for binary message");return this.privPayload}get binaryContent(){if(this.privMessageType===S.Text)throw new _("Not supported for text message");return this.privPayload}get id(){return this.privId}}class Qt{constructor(e,t){this.privActualSampleRate=e,this.privDesiredSampleRate=t}encode(e){const t=this.downSampleAudioFrame(e,this.privActualSampleRate,this.privDesiredSampleRate);if(!t)return null;const r=t.length*2,n=new ArrayBuffer(r),s=new DataView(n);return this.floatTo16BitPCM(s,0,t),n}setString(e,t,r){for(let n=0;nt)return e;const n=t/r,s=Math.round(e.length/n),o=new Float32Array(s);let h=0,u=0;for(;uXt(this,void 0,void 0,function*(){return(e===void 0||e.isEnd)&&(yield this.privReaderQueue.dispose("End of stream reached")),e}))}readEnded(){this.privIsReadEnded||(this.privIsReadEnded=!0,this.privReaderQueue=new Ee)}throwIfClosed(){if(this.privIsWriteEnded)throw new _("Stream closed")}}class Ge extends Et{constructor(e,t){super(t),this.privTargetChunkSize=e,this.privNextBufferReadyBytes=0}writeStreamChunk(e){if(e.isEnd||this.privNextBufferReadyBytes===0&&e.buffer.byteLength===this.privTargetChunkSize){super.writeStreamChunk(e);return}let t=0;for(;t{}]]),t=new Map,n="data:text/javascript;base64,"+btoa(`!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=14)}([function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return d}));const r=new Map,o=new Map,i=e=>{const t=r.get(e);if(void 0===t)throw new Error('There is no interval scheduled with the given id "'.concat(e,'".'));clearTimeout(t),r.delete(e)},u=e=>{const t=o.get(e);if(void 0===t)throw new Error('There is no timeout scheduled with the given id "'.concat(e,'".'));clearTimeout(t),o.delete(e)},f=(e,t)=>{let n,r;if("performance"in self){const o=performance.now();n=o,r=e-Math.max(0,o-t)}else n=Date.now(),r=e;return{expected:n+r,remainingDelay:r}},c=(e,t,n,r)=>{const o="performance"in self?performance.now():Date.now();o>n?postMessage({id:null,method:"call",params:{timerId:t}}):e.set(t,setTimeout(c,n-o,e,t,n))},a=(e,t,n)=>{const{expected:o,remainingDelay:i}=f(e,n);r.set(t,setTimeout(c,i,r,t,o))},d=(e,t,n)=>{const{expected:r,remainingDelay:i}=f(e,n);o.set(t,setTimeout(c,i,o,t,r))}},function(e,t,n){"use strict";n.r(t);var r=n(2);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);var i=n(3);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var u=n(4);for(var o in u)"default"!==o&&function(e){n.d(t,e,(function(){return u[e]}))}(o);var f=n(5);for(var o in f)"default"!==o&&function(e){n.d(t,e,(function(){return f[e]}))}(o);var c=n(6);for(var o in c)"default"!==o&&function(e){n.d(t,e,(function(){return c[e]}))}(o);var a=n(7);for(var o in a)"default"!==o&&function(e){n.d(t,e,(function(){return a[e]}))}(o);var d=n(8);for(var o in d)"default"!==o&&function(e){n.d(t,e,(function(){return d[e]}))}(o);var s=n(9);for(var o in s)"default"!==o&&function(e){n.d(t,e,(function(){return s[e]}))}(o)},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.r(t);var r=n(11);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);var i=n(12);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var u=n(13);for(var o in u)"default"!==o&&function(e){n.d(t,e,(function(){return u[e]}))}(o)},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(1);for(var i in o)"default"!==i&&function(e){n.d(t,e,(function(){return o[e]}))}(i);var u=n(10);for(var i in u)"default"!==i&&function(e){n.d(t,e,(function(){return u[e]}))}(i);addEventListener("message",({data:e})=>{try{if("clear"===e.method){const{id:t,params:{timerId:n}}=e;Object(r.b)(n),postMessage({error:null,id:t})}else{if("set"!==e.method)throw new Error('The given method "'.concat(e.method,'" is not supported'));{const{params:{delay:t,now:n,timerId:o}}=e;Object(r.d)(t,o,n)}}}catch(t){postMessage({error:{message:t.message},id:e.id,result:null})}})}]);`),s=new Worker(n);return s.addEventListener("message",({data:u})=>{if(D.isCallNotification(u)){const{params:{timerId:a}}=u,c=e.get(a);if(typeof c=="number"){const p=t.get(c);if(p===void 0||p!==a)throw new Error("The timer is in an undefined state.")}else if(typeof c!="undefined")c(),e.delete(a);else throw new Error("The timer is in an undefined state.")}else if(D.isClearResponse(u)){const{id:a}=u,c=t.get(a);if(c===void 0)throw new Error("The timer is in an undefined state.");t.delete(a),e.delete(c)}else{const{error:{message:a}}=u;throw new Error(a)}}),{clearTimeout:u=>{const a=Math.random();t.set(a,u),e.set(u,a),s.postMessage({id:a,method:"clear",params:{timerId:u}})},setTimeout:(u,a)=>{const c=Math.random();return e.set(c,u),s.postMessage({id:null,method:"set",params:{delay:a,now:performance.now(),timerId:c}}),c}}}static loadWorkerTimers(){return()=>(D.workerTimers!==null||(D.workerTimers=D.load()),D.workerTimers)}static isCallNotification(e){return e.method!==void 0&&e.method==="call"}static isClearResponse(e){return e.error===null&&typeof e.id=="number"}}D.workerTimers=null;D.clearTimeout=i=>D.timers().clearTimeout(i);D.setTimeout=(i,e)=>D.timers().setTimeout(i,e);D.timers=D.loadWorkerTimers();class x extends Q{constructor(e,t,r){super(e,t),this.privSignature=r}}class Zt extends x{constructor(e){super("OCSPMemoryCacheHitEvent",w.Debug,e)}}class Yt extends x{constructor(e){super("OCSPCacheMissEvent",w.Debug,e)}}class ei extends x{constructor(e){super("OCSPDiskCacheHitEvent",w.Debug,e)}}class ti extends x{constructor(e){super("OCSPCacheUpdateNeededEvent",w.Debug,e)}}class ii extends x{constructor(e){super("OCSPMemoryCacheStoreEvent",w.Debug,e)}}class ri extends x{constructor(e){super("OCSPDiskCacheStoreEvent",w.Debug,e)}}class ni extends x{constructor(e){super("OCSPCacheUpdateCompleteEvent",w.Debug,e)}}class si extends x{constructor(){super("OCSPStapleReceivedEvent",w.Debug,"")}}class oi extends x{constructor(e,t){super("OCSPCacheEntryExpiredEvent",w.Debug,e),this.privExpireTime=t}}class ci extends x{constructor(e,t,r){super("OCSPCacheEntryNeedsRefreshEvent",w.Debug,e),this.privExpireTime=r,this.privStartTime=t}}class ai extends x{constructor(e,t,r){super("OCSPCacheHitEvent",w.Debug,e),this.privExpireTime=r,this.privExpireTimeString=new Date(r).toLocaleDateString(),this.privStartTime=t,this.privStartTimeString=new Date(t).toLocaleTimeString()}}class hi extends x{constructor(e,t){super("OCSPVerificationFailedEvent",w.Debug,e),this.privError=t}}class ht extends x{constructor(e,t){super("OCSPCacheFetchErrorEvent",w.Debug,e),this.privError=t}}class ui extends x{constructor(e){super("OCSPResponseRetrievedEvent",w.Debug,e)}}class pi extends x{constructor(e,t){super("OCSPCacheUpdateErrorEvent",w.Debug,e),this.privError=t}}class he extends Q{constructor(e){super("BackgroundEvent",w.Error),this.privError=e}get error(){return this.privError}}class m{static throwIfNullOrUndefined(e,t){if(e==null)throw new Error("throwIfNullOrUndefined:"+t)}static throwIfNull(e,t){if(e===null)throw new Error("throwIfNull:"+t)}static throwIfNullOrWhitespace(e,t){if(m.throwIfNullOrUndefined(e,t),(""+e).trim().length<1)throw new Error("throwIfNullOrWhitespace:"+t)}static throwIfDisposed(e){if(e)throw new Error("the object is already disposed")}static throwIfArrayEmptyOrWhitespace(e,t){if(m.throwIfNullOrUndefined(e,t),e.length===0)throw new Error("throwIfArrayEmptyOrWhitespace:"+t);for(const r of e)m.throwIfNullOrWhitespace(r,t)}static throwIfFileDoesNotExist(e,t){m.throwIfNullOrWhitespace(e,t)}static throwIfNotUndefined(e,t){if(e!==void 0)throw new Error("throwIfNotUndefined:"+t)}}class C{}C.AuthKey="Ocp-Apim-Subscription-Key";C.Authorization="Authorization";C.ConnectionId="X-ConnectionId";C.ContentType="Content-Type";C.CustomCommandsAppId="X-CommandsAppId";C.Path="Path";C.RequestId="X-RequestId";C.RequestStreamId="X-StreamId";C.RequestTimestamp="X-Timestamp";class Ue{constructor(e,t){this.privHeaderName=e,this.privToken=t}get headerName(){return this.privHeaderName}get token(){return this.privToken}}class di{constructor(e){if(!e)throw new I("subscriptionKey");this.privAuthInfo=new Ue(C.AuthKey,e)}fetch(e){return Promise.resolve(this.privAuthInfo)}fetchOnExpiry(e){return Promise.resolve(this.privAuthInfo)}}class pe{constructor(e,t){if(!e)throw new I("fetchCallback");if(!t)throw new I("fetchOnExpiryCallback");this.privFetchCallback=e,this.privFetchOnExpiryCallback=t}fetch(e){return this.privFetchCallback(e).then(t=>new Ue(C.Authorization,t===void 0?void 0:pe.privTokenPrefix+t))}fetchOnExpiry(e){return this.privFetchOnExpiryCallback(e).then(t=>new Ue(C.Authorization,t===void 0?void 0:pe.privTokenPrefix+t))}}pe.privTokenPrefix="bearer ";class vi{constructor(e){m.throwIfNullOrUndefined(void 0,` +File System access not available, please use Push or PullAudioOutputStream`),this.privFd=(void 0)(e,"w")}set format(e){m.throwIfNotUndefined(this.privAudioFormat,"format is already set"),this.privAudioFormat=e;let t=0;this.privAudioFormat.hasHeader&&(t=this.privAudioFormat.header.byteLength),this.privFd!==void 0&&(this.privWriteStream=(void 0)("",{fd:this.privFd,start:t,autoClose:!1}))}write(e){m.throwIfNullOrUndefined(this.privAudioFormat,"must set format before writing."),this.privWriteStream!==void 0&&this.privWriteStream.write(new Uint8Array(e.slice(0)))}close(){this.privFd!==void 0&&(this.privWriteStream.on("finish",()=>{this.privAudioFormat.hasHeader&&(this.privAudioFormat.updateHeader(this.privWriteStream.bytesWritten),(void 0)(this.privFd,new Int8Array(this.privAudioFormat.header),0,this.privAudioFormat.header.byteLength,0)),(void 0)(this.privFd),this.privFd=void 0}),this.privWriteStream.end())}id(){return this.privId}}var v;(function(i){i[i.PCM=1]="PCM",i[i.MuLaw=2]="MuLaw",i[i.Siren=3]="Siren",i[i.MP3=4]="MP3",i[i.SILKSkype=5]="SILKSkype",i[i.OGG_OPUS=6]="OGG_OPUS",i[i.WEBM_OPUS=7]="WEBM_OPUS",i[i.ALaw=8]="ALaw",i[i.FLAC=9]="FLAC",i[i.OPUS=10]="OPUS"})(v||(v={}));class ze{static getDefaultInputFormat(){return $.getDefaultInputFormat()}static getWaveFormat(e,t,r,n){return new $(e,t,r,n)}static getWaveFormatPCM(e,t,r){return new $(e,t,r)}}class $ extends ze{constructor(e=16e3,t=16,r=1,n=v.PCM){super();let s=!0;switch(n){case v.PCM:this.formatTag=1;break;case v.ALaw:this.formatTag=6;break;case v.MuLaw:this.formatTag=7;break;default:s=!1}if(this.bitsPerSample=t,this.samplesPerSec=e,this.channels=r,this.avgBytesPerSec=this.samplesPerSec*this.channels*(this.bitsPerSample/8),this.blockAlign=this.channels*Math.max(this.bitsPerSample,8),s){this.privHeader=new ArrayBuffer(44);const o=new DataView(this.privHeader);this.setString(o,0,"RIFF"),o.setUint32(4,0,!0),this.setString(o,8,"WAVEfmt "),o.setUint32(16,16,!0),o.setUint16(20,this.formatTag,!0),o.setUint16(22,this.channels,!0),o.setUint32(24,this.samplesPerSec,!0),o.setUint32(28,this.avgBytesPerSec,!0),o.setUint16(32,this.channels*(this.bitsPerSample/8),!0),o.setUint16(34,this.bitsPerSample,!0),this.setString(o,36,"data"),o.setUint32(40,0,!0)}}static getDefaultInputFormat(){return new $}static getAudioContext(e){const t=window.AudioContext||window.webkitAudioContext||!1;if(t)return e!==void 0&&navigator.mediaDevices.getSupportedConstraints().sampleRate?new t({sampleRate:e}):new t;throw new Error("Browser does not support Web Audio API (AudioContext is not available).")}close(){}get header(){return this.privHeader}setString(e,t,r){for(let n=0;n{const t=[];let r=Buffer.from("");const n=()=>e.read().then(s=>!s||s.isEnd?typeof XMLHttpRequest!="undefined"&&typeof Blob!="undefined"?Promise.resolve(new Blob(t)):Promise.resolve(Buffer.from(r)):(typeof Blob!="undefined"?t.push(s.buffer):r=Buffer.concat([r,this.toBuffer(s.buffer)]),n()));return n()})}turnOn(){this.onEvent(new Me(this.privId)),this.onEvent(new ue(this.privId))}attach(e){return We(this,void 0,void 0,function*(){this.onEvent(new fe(this.privId,e)),yield this.turnOn();const t=this.privStream;return this.onEvent(new le(this.privId,e)),{detach:()=>We(this,void 0,void 0,function*(){return this.onEvent(new V(this.privId,e)),this.turnOff()}),id:()=>e,read:()=>t.read()}})}detach(e){this.onEvent(new V(this.privId,e))}turnOff(){}get events(){return this.privEvents}get deviceInfo(){return Promise.resolve({bitspersample:this.privFormat.bitsPerSample,channelcount:this.privFormat.channels,connectivity:ie.Unknown,manufacturer:"Speech SDK",model:"PushStream",samplerate:this.privFormat.samplesPerSec,type:G.Stream})}onEvent(e){this.privEvents.onEvent(e),M.instance.onEvent(e)}toBuffer(e){const t=Buffer.alloc(e.byteLength),r=new Uint8Array(e);for(let n=0;n(this.privCallback.close(),this.onEvent(new V(this.privId,e)),this.turnOff()),id:()=>e,read:()=>{let t=0,r;for(;te.byteLength)return t.set(this.privLastChunkView.slice(0,e.byteLength)),this.privLastChunkView=this.privLastChunkView.slice(e.byteLength),Promise.resolve(e.byteLength);t.set(this.privLastChunkView),r=this.privLastChunkView.length,this.privLastChunkView=void 0}for(;re.byteLength-r?(s=n.buffer.slice(0,e.byteLength-r),this.privLastChunkView=new Int8Array(n.buffer.slice(e.byteLength-r))):s=n.buffer,t.set(new Int8Array(s),r),r+=s.byteLength}else this.privStream.readEnded()}return r})}write(e){m.throwIfNullOrUndefined(this.privStream,"must set format before writing"),this.privStream.writeStreamChunk({buffer:e,isEnd:!1,timeReceived:Date.now()})}close(){this.privStream.close()}}class Mt extends It{constructor(){super()}static create(e){return new Dt(e)}}class Dt extends Mt{constructor(e){super(),this.privId=E(),this.privCallback=e}set format(e){}write(e){this.privCallback.write&&this.privCallback.write(e)}close(){this.privCallback.close&&this.privCallback.close()}id(){return this.privId}}class re{static fromDefaultMicrophoneInput(){const e=new Ne(!0);return new Z(new N(e))}static fromMicrophoneInput(e){const t=new Ne(!0);return new Z(new N(t,e))}static fromWavFileInput(e,t="unnamedBuffer.wav"){return new Z(new ji(e,t))}static fromStreamInput(e){if(e instanceof Si)return new Z(new Tt(e));if(e instanceof Qe)return new Z(e);if(typeof MediaStream!="undefined"&&e instanceof MediaStream){const t=new Ne(!1);return new Z(new N(t,null,null,e))}throw new Error("Not Supported Type")}static fromDefaultSpeakerOutput(){return new Y(new vt)}static fromSpeakerOutput(e){if(e===void 0)return re.fromDefaultSpeakerOutput();if(e instanceof vt)return new Y(e);throw new Error("Not Supported Type")}static fromAudioFileOutput(e){return new Y(new vi(e))}static fromStreamOutput(e){if(e instanceof gi)return new Y(new Dt(e));if(e instanceof Mt)return new Y(e);if(e instanceof Xe)return new Y(e);throw new Error("Not Supported Type")}}class Z extends re{constructor(e){super(),this.privSource=e}get format(){return this.privSource.format}close(e,t){this.privSource.turnOff().then(()=>{e&&e()},r=>{t&&t(r)})}id(){return this.privSource.id()}get blob(){return this.privSource.blob}turnOn(){return this.privSource.turnOn()}attach(e){return this.privSource.attach(e)}detach(e){return this.privSource.detach(e)}turnOff(){return this.privSource.turnOff()}get events(){return this.privSource.events}setProperty(e,t){if(m.throwIfNull(t,"value"),this.privSource.setProperty!==void 0)this.privSource.setProperty(e,t);else throw new Error("This AudioConfig instance does not support setting properties.")}getProperty(e,t){if(this.privSource.getProperty!==void 0)return this.privSource.getProperty(e,t);throw new Error("This AudioConfig instance does not support getting properties.")}get deviceInfo(){return this.privSource.deviceInfo}}class Y extends re{constructor(e){super(),this.privDestination=e}set format(e){this.privDestination.format=e}write(e){this.privDestination.write(e)}close(){this.privDestination.close()}id(){return this.privDestination.id()}setProperty(){throw new Error("This AudioConfig instance does not support setting properties.")}getProperty(){throw new Error("This AudioConfig instance does not support getting properties.")}}var O;(function(i){i[i.Error=0]="Error",i[i.EndOfStream=1]="EndOfStream"})(O||(O={}));class Si{}class gi{}class He{constructor(e){this.privSessionId=e}get sessionId(){return this.privSessionId}}class Pe extends He{constructor(e,t){super(t),this.privOffset=e}get offset(){return this.privOffset}}var k;(function(i){i[i.Simple=0]="Simple",i[i.Detailed=1]="Detailed"})(k||(k={}));class mi{constructor(e,t,r,n,s,o,h,u,a,c){this.privResultId=e,this.privReason=t,this.privText=r,this.privDuration=n,this.privOffset=s,this.privLanguage=o,this.privLanguageDetectionConfidence=h,this.privErrorDetails=u,this.privJson=a,this.privProperties=c}get resultId(){return this.privResultId}get reason(){return this.privReason}get text(){return this.privText}get duration(){return this.privDuration}get offset(){return this.privOffset}get language(){return this.privLanguage}get languageDetectionConfidence(){return this.privLanguageDetectionConfidence}get errorDetails(){return this.privErrorDetails}get json(){return this.privJson}get properties(){return this.privProperties}}class ge extends mi{constructor(e,t,r,n,s,o,h,u,a,c,p){super(e,t,r,n,s,o,h,a,c,p),this.privSpeakerId=u}get speakerId(){return this.privSpeakerId}}class ut extends Pe{constructor(e,t,r){super(t,r),this.privResult=e}get result(){return this.privResult}}class wi extends Pe{constructor(e,t,r,n,s){super(n,s),this.privReason=e,this.privErrorDetails=t,this.privErrorCode=r}get reason(){return this.privReason}get errorCode(){return this.privErrorCode}get errorDetails(){return this.privErrorDetails}}class yi extends wi{}var B;(function(i){i[i.NoMatch=0]="NoMatch",i[i.Canceled=1]="Canceled",i[i.RecognizingSpeech=2]="RecognizingSpeech",i[i.RecognizedSpeech=3]="RecognizedSpeech",i[i.RecognizedKeyword=4]="RecognizedKeyword",i[i.RecognizingIntent=5]="RecognizingIntent",i[i.RecognizedIntent=6]="RecognizedIntent",i[i.TranslatingSpeech=7]="TranslatingSpeech",i[i.TranslatedSpeech=8]="TranslatedSpeech",i[i.SynthesizingAudio=9]="SynthesizingAudio",i[i.SynthesizingAudioCompleted=10]="SynthesizingAudioCompleted",i[i.SynthesizingAudioStarted=11]="SynthesizingAudioStarted",i[i.EnrollingVoiceProfile=12]="EnrollingVoiceProfile",i[i.EnrolledVoiceProfile=13]="EnrolledVoiceProfile",i[i.RecognizedSpeakers=14]="RecognizedSpeakers",i[i.RecognizedSpeaker=15]="RecognizedSpeaker",i[i.ResetVoiceProfile=16]="ResetVoiceProfile",i[i.DeletedVoiceProfile=17]="DeletedVoiceProfile",i[i.VoicesListRetrieved=18]="VoicesListRetrieved"})(B||(B={}));class zt{constructor(){}static fromSubscription(e,t){m.throwIfNullOrWhitespace(e,"subscriptionKey"),m.throwIfNullOrWhitespace(t,"region");const r=new ee;return r.setProperty(d.SpeechServiceConnection_Region,t),r.setProperty(d.SpeechServiceConnection_IntentRegion,t),r.setProperty(d.SpeechServiceConnection_Key,e),r}static fromEndpoint(e,t){m.throwIfNull(e,"endpoint");const r=new ee;return r.setProperty(d.SpeechServiceConnection_Endpoint,e.href),t!==void 0&&r.setProperty(d.SpeechServiceConnection_Key,t),r}static fromHost(e,t){m.throwIfNull(e,"hostName");const r=new ee;return r.setProperty(d.SpeechServiceConnection_Host,e.protocol+"//"+e.hostname+(e.port===""?"":":"+e.port)),t!==void 0&&r.setProperty(d.SpeechServiceConnection_Key,t),r}static fromAuthorizationToken(e,t){m.throwIfNull(e,"authorizationToken"),m.throwIfNullOrWhitespace(t,"region");const r=new ee;return r.setProperty(d.SpeechServiceConnection_Region,t),r.setProperty(d.SpeechServiceConnection_IntentRegion,t),r.authorizationToken=e,r}close(){}}class ee extends zt{constructor(){super(),this.privProperties=new te,this.speechRecognitionLanguage="en-US",this.outputFormat=k.Simple}get properties(){return this.privProperties}get endPoint(){return new URL(this.privProperties.getProperty(d.SpeechServiceConnection_Endpoint))}get subscriptionKey(){return this.privProperties.getProperty(d.SpeechServiceConnection_Key)}get region(){return this.privProperties.getProperty(d.SpeechServiceConnection_Region)}get authorizationToken(){return this.privProperties.getProperty(d.SpeechServiceAuthorization_Token)}set authorizationToken(e){this.privProperties.setProperty(d.SpeechServiceAuthorization_Token,e)}get speechRecognitionLanguage(){return this.privProperties.getProperty(d.SpeechServiceConnection_RecoLanguage)}set speechRecognitionLanguage(e){this.privProperties.setProperty(d.SpeechServiceConnection_RecoLanguage,e)}get autoDetectSourceLanguages(){return this.privProperties.getProperty(d.SpeechServiceConnection_AutoDetectSourceLanguages)}set autoDetectSourceLanguages(e){this.privProperties.setProperty(d.SpeechServiceConnection_AutoDetectSourceLanguages,e)}get outputFormat(){return k[this.privProperties.getProperty(de,void 0)]}set outputFormat(e){this.privProperties.setProperty(de,k[e])}get endpointId(){return this.privProperties.getProperty(d.SpeechServiceConnection_EndpointId)}set endpointId(e){this.privProperties.setProperty(d.SpeechServiceConnection_EndpointId,e)}setProperty(e,t){m.throwIfNull(t,"value"),this.privProperties.setProperty(e,t)}getProperty(e,t){return this.privProperties.getProperty(e,t)}setProxy(e,t,r,n){this.setProperty(d[d.SpeechServiceConnection_ProxyHostName],e),this.setProperty(d[d.SpeechServiceConnection_ProxyPort],t),this.setProperty(d[d.SpeechServiceConnection_ProxyUserName],r),this.setProperty(d[d.SpeechServiceConnection_ProxyPassword],n)}setServiceProperty(e,t){const r=JSON.parse(this.privProperties.getProperty(je,"{}"));r[e]=t,this.privProperties.setProperty(je,JSON.stringify(r))}setProfanity(e){this.privProperties.setProperty(d.SpeechServiceResponse_ProfanityOption,Ve[e])}enableAudioLogging(){this.privProperties.setProperty(d.SpeechServiceConnection_EnableAudioLogging,"true")}requestWordLevelTimestamps(){this.privProperties.setProperty(d.SpeechServiceResponse_RequestWordLevelTimestamps,"true")}enableDictation(){this.privProperties.setProperty(Nt,"true")}clone(){const e=new ee;return e.privProperties=this.privProperties.clone(),e}get speechSynthesisLanguage(){return this.privProperties.getProperty(d.SpeechServiceConnection_SynthLanguage)}set speechSynthesisLanguage(e){this.privProperties.setProperty(d.SpeechServiceConnection_SynthLanguage,e)}get speechSynthesisVoiceName(){return this.privProperties.getProperty(d.SpeechServiceConnection_SynthVoice)}set speechSynthesisVoiceName(e){this.privProperties.setProperty(d.SpeechServiceConnection_SynthVoice,e)}get speechSynthesisOutputFormat(){return l[this.privProperties.getProperty(d.SpeechServiceConnection_SynthOutputFormat,void 0)]}set speechSynthesisOutputFormat(e){this.privProperties.setProperty(d.SpeechServiceConnection_SynthOutputFormat,l[e])}}class te{constructor(){this.privKeys=[],this.privValues=[]}getProperty(e,t){let r;typeof e=="string"?r=e:r=d[e];for(let n=0;n{if(e.getProperty(t,void 0)===void 0){const r=this.getProperty(t);e.setProperty(t,r)}})}get keys(){return this.privKeys}}var d;(function(i){i[i.SpeechServiceConnection_Key=0]="SpeechServiceConnection_Key",i[i.SpeechServiceConnection_Endpoint=1]="SpeechServiceConnection_Endpoint",i[i.SpeechServiceConnection_Region=2]="SpeechServiceConnection_Region",i[i.SpeechServiceAuthorization_Token=3]="SpeechServiceAuthorization_Token",i[i.SpeechServiceAuthorization_Type=4]="SpeechServiceAuthorization_Type",i[i.SpeechServiceConnection_EndpointId=5]="SpeechServiceConnection_EndpointId",i[i.SpeechServiceConnection_TranslationToLanguages=6]="SpeechServiceConnection_TranslationToLanguages",i[i.SpeechServiceConnection_TranslationVoice=7]="SpeechServiceConnection_TranslationVoice",i[i.SpeechServiceConnection_TranslationFeatures=8]="SpeechServiceConnection_TranslationFeatures",i[i.SpeechServiceConnection_IntentRegion=9]="SpeechServiceConnection_IntentRegion",i[i.SpeechServiceConnection_ProxyHostName=10]="SpeechServiceConnection_ProxyHostName",i[i.SpeechServiceConnection_ProxyPort=11]="SpeechServiceConnection_ProxyPort",i[i.SpeechServiceConnection_ProxyUserName=12]="SpeechServiceConnection_ProxyUserName",i[i.SpeechServiceConnection_ProxyPassword=13]="SpeechServiceConnection_ProxyPassword",i[i.SpeechServiceConnection_RecoMode=14]="SpeechServiceConnection_RecoMode",i[i.SpeechServiceConnection_RecoLanguage=15]="SpeechServiceConnection_RecoLanguage",i[i.Speech_SessionId=16]="Speech_SessionId",i[i.SpeechServiceConnection_SynthLanguage=17]="SpeechServiceConnection_SynthLanguage",i[i.SpeechServiceConnection_SynthVoice=18]="SpeechServiceConnection_SynthVoice",i[i.SpeechServiceConnection_SynthOutputFormat=19]="SpeechServiceConnection_SynthOutputFormat",i[i.SpeechServiceConnection_AutoDetectSourceLanguages=20]="SpeechServiceConnection_AutoDetectSourceLanguages",i[i.SpeechServiceResponse_RequestDetailedResultTrueFalse=21]="SpeechServiceResponse_RequestDetailedResultTrueFalse",i[i.SpeechServiceResponse_RequestProfanityFilterTrueFalse=22]="SpeechServiceResponse_RequestProfanityFilterTrueFalse",i[i.SpeechServiceResponse_JsonResult=23]="SpeechServiceResponse_JsonResult",i[i.SpeechServiceResponse_JsonErrorDetails=24]="SpeechServiceResponse_JsonErrorDetails",i[i.CancellationDetails_Reason=25]="CancellationDetails_Reason",i[i.CancellationDetails_ReasonText=26]="CancellationDetails_ReasonText",i[i.CancellationDetails_ReasonDetailedText=27]="CancellationDetails_ReasonDetailedText",i[i.LanguageUnderstandingServiceResponse_JsonResult=28]="LanguageUnderstandingServiceResponse_JsonResult",i[i.SpeechServiceConnection_Url=29]="SpeechServiceConnection_Url",i[i.SpeechServiceConnection_InitialSilenceTimeoutMs=30]="SpeechServiceConnection_InitialSilenceTimeoutMs",i[i.SpeechServiceConnection_EndSilenceTimeoutMs=31]="SpeechServiceConnection_EndSilenceTimeoutMs",i[i.Speech_SegmentationSilenceTimeoutMs=32]="Speech_SegmentationSilenceTimeoutMs",i[i.SpeechServiceConnection_EnableAudioLogging=33]="SpeechServiceConnection_EnableAudioLogging",i[i.SpeechServiceConnection_AtStartLanguageIdPriority=34]="SpeechServiceConnection_AtStartLanguageIdPriority",i[i.SpeechServiceConnection_ContinuousLanguageIdPriority=35]="SpeechServiceConnection_ContinuousLanguageIdPriority",i[i.SpeechServiceConnection_RecognitionEndpointVersion=36]="SpeechServiceConnection_RecognitionEndpointVersion",i[i.SpeechServiceResponse_ProfanityOption=37]="SpeechServiceResponse_ProfanityOption",i[i.SpeechServiceResponse_PostProcessingOption=38]="SpeechServiceResponse_PostProcessingOption",i[i.SpeechServiceResponse_RequestWordLevelTimestamps=39]="SpeechServiceResponse_RequestWordLevelTimestamps",i[i.SpeechServiceResponse_StablePartialResultThreshold=40]="SpeechServiceResponse_StablePartialResultThreshold",i[i.SpeechServiceResponse_OutputFormatOption=41]="SpeechServiceResponse_OutputFormatOption",i[i.SpeechServiceResponse_TranslationRequestStablePartialResult=42]="SpeechServiceResponse_TranslationRequestStablePartialResult",i[i.SpeechServiceResponse_RequestWordBoundary=43]="SpeechServiceResponse_RequestWordBoundary",i[i.SpeechServiceResponse_RequestPunctuationBoundary=44]="SpeechServiceResponse_RequestPunctuationBoundary",i[i.SpeechServiceResponse_RequestSentenceBoundary=45]="SpeechServiceResponse_RequestSentenceBoundary",i[i.Conversation_ApplicationId=46]="Conversation_ApplicationId",i[i.Conversation_DialogType=47]="Conversation_DialogType",i[i.Conversation_Initial_Silence_Timeout=48]="Conversation_Initial_Silence_Timeout",i[i.Conversation_From_Id=49]="Conversation_From_Id",i[i.Conversation_Conversation_Id=50]="Conversation_Conversation_Id",i[i.Conversation_Custom_Voice_Deployment_Ids=51]="Conversation_Custom_Voice_Deployment_Ids",i[i.Conversation_Speech_Activity_Template=52]="Conversation_Speech_Activity_Template",i[i.Conversation_Request_Bot_Status_Messages=53]="Conversation_Request_Bot_Status_Messages",i[i.Conversation_Agent_Connection_Id=54]="Conversation_Agent_Connection_Id",i[i.SpeechServiceConnection_Host=55]="SpeechServiceConnection_Host",i[i.ConversationTranslator_Host=56]="ConversationTranslator_Host",i[i.ConversationTranslator_Name=57]="ConversationTranslator_Name",i[i.ConversationTranslator_CorrelationId=58]="ConversationTranslator_CorrelationId",i[i.ConversationTranslator_Token=59]="ConversationTranslator_Token",i[i.PronunciationAssessment_ReferenceText=60]="PronunciationAssessment_ReferenceText",i[i.PronunciationAssessment_GradingSystem=61]="PronunciationAssessment_GradingSystem",i[i.PronunciationAssessment_Granularity=62]="PronunciationAssessment_Granularity",i[i.PronunciationAssessment_EnableMiscue=63]="PronunciationAssessment_EnableMiscue",i[i.PronunciationAssessment_Json=64]="PronunciationAssessment_Json",i[i.PronunciationAssessment_Params=65]="PronunciationAssessment_Params",i[i.SpeakerRecognition_Api_Version=66]="SpeakerRecognition_Api_Version"})(d||(d={}));var ne=globalThis&&globalThis.__awaiter||function(i,e,t,r){function n(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function h(c){try{a(r.next(c))}catch(p){o(p)}}function u(c){try{a(r.throw(c))}catch(p){o(p)}}function a(c){c.done?s(c.value):n(c.value).then(h,u)}a((r=r.apply(i,e||[])).next())})};class Ye{constructor(e,t,r){this.audioConfig=e!==void 0?e:re.fromDefaultMicrophoneInput(),this.privDisposed=!1,this.privProperties=t.clone(),this.privConnectionFactory=r,this.implCommonRecognizerSetup()}close(e,t){m.throwIfDisposed(this.privDisposed),ce(this.dispose(!0),e,t)}get internalData(){return this.privReco}dispose(e){return ne(this,void 0,void 0,function*(){this.privDisposed||(this.privDisposed=!0,e&&this.privReco&&(yield this.privReco.audioSource.turnOff(),yield this.privReco.dispose()))})}static get telemetryEnabled(){return W.telemetryDataEnabled}static enableTelemetry(e){W.telemetryDataEnabled=e}implCommonRecognizerSetup(){let e=typeof window!="undefined"?"Browser":"Node",t="unknown",r="unknown";typeof navigator!="undefined"&&(e=e+"/"+navigator.platform,t=navigator.userAgent,r=navigator.appVersion);const n=this.createRecognizerConfig(new Bt(new Lt(new zi(e,t,r))));this.privReco=this.createServiceRecognizer(Ye.getAuthFromProperties(this.privProperties),this.privConnectionFactory,this.audioConfig,n)}recognizeOnceAsyncImpl(e){return ne(this,void 0,void 0,function*(){m.throwIfDisposed(this.privDisposed);const t=new T;yield this.implRecognizerStop(),yield this.privReco.recognize(e,t.resolve,t.reject);const r=yield t.promise;return yield this.implRecognizerStop(),r})}startContinuousRecognitionAsyncImpl(e){return ne(this,void 0,void 0,function*(){m.throwIfDisposed(this.privDisposed),yield this.implRecognizerStop(),yield this.privReco.recognize(e,void 0,void 0)})}stopContinuousRecognitionAsyncImpl(){return ne(this,void 0,void 0,function*(){m.throwIfDisposed(this.privDisposed),yield this.implRecognizerStop()})}implRecognizerStop(){return ne(this,void 0,void 0,function*(){this.privReco&&(yield this.privReco.stopRecognizing())})}static getAuthFromProperties(e){const t=e.getProperty(d.SpeechServiceConnection_Key,void 0);return t&&t!==""?new di(t):new pe(()=>{const n=e.getProperty(d.SpeechServiceAuthorization_Token,void 0);return Promise.resolve(n)},()=>{const n=e.getProperty(d.SpeechServiceAuthorization_Token,void 0);return Promise.resolve(n)})}}var Ci=globalThis&&globalThis.__awaiter||function(i,e,t,r){function n(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function h(c){try{a(r.next(c))}catch(p){o(p)}}function u(c){try{a(r.throw(c))}catch(p){o(p)}}function a(c){c.done?s(c.value):n(c.value).then(h,u)}a((r=r.apply(i,e||[])).next())})};class et extends Ye{constructor(e,t){const r=e;m.throwIfNull(r,"speechConfig"),m.throwIfNullOrWhitespace(r.properties.getProperty(d.SpeechServiceConnection_RecoLanguage),d[d.SpeechServiceConnection_RecoLanguage]),super(t,r.properties,new xi),this.privDisposedRecognizer=!1}static FromConfig(e,t,r){const n=e;return t.properties.mergeTo(n.properties),new et(e,r)}get endpointId(){return m.throwIfDisposed(this.privDisposedRecognizer),this.properties.getProperty(d.SpeechServiceConnection_EndpointId,"00000000-0000-0000-0000-000000000000")}get authorizationToken(){return this.properties.getProperty(d.SpeechServiceAuthorization_Token)}set authorizationToken(e){m.throwIfNullOrWhitespace(e,"token"),this.properties.setProperty(d.SpeechServiceAuthorization_Token,e)}get speechRecognitionLanguage(){return m.throwIfDisposed(this.privDisposedRecognizer),this.properties.getProperty(d.SpeechServiceConnection_RecoLanguage)}get outputFormat(){return m.throwIfDisposed(this.privDisposedRecognizer),this.properties.getProperty(de,k[k.Simple])===k[k.Simple]?k.Simple:k.Detailed}get properties(){return this.privProperties}recognizeOnceAsync(e,t){ce(this.recognizeOnceAsyncImpl(H.Interactive),e,t)}startContinuousRecognitionAsync(e,t){ce(this.startContinuousRecognitionAsyncImpl(H.Conversation),e,t)}stopContinuousRecognitionAsync(e,t){ce(this.stopContinuousRecognitionAsyncImpl(),e,t)}startKeywordRecognitionAsync(e,t,r){m.throwIfNull(e,"model"),r&&r("Not yet implemented.")}stopKeywordRecognitionAsync(e){e&&e()}close(e,t){m.throwIfDisposed(this.privDisposedRecognizer),ce(this.dispose(!0),e,t)}dispose(e){const t=Object.create(null,{dispose:{get:()=>super.dispose}});return Ci(this,void 0,void 0,function*(){this.privDisposedRecognizer||(e&&(this.privDisposedRecognizer=!0,yield this.implRecognizerStop()),yield t.dispose.call(this,e))})}createRecognizerConfig(e){return new Mi(e,this.properties)}createServiceRecognizer(e,t,r,n){const s=r;return new Li(e,t,s,n,this)}}var b;(function(i){i[i.NoError=0]="NoError",i[i.AuthenticationFailure=1]="AuthenticationFailure",i[i.BadRequestParameters=2]="BadRequestParameters",i[i.TooManyRequests=3]="TooManyRequests",i[i.ConnectionFailure=4]="ConnectionFailure",i[i.ServiceTimeout=5]="ServiceTimeout",i[i.ServiceError=6]="ServiceError",i[i.RuntimeError=7]="RuntimeError",i[i.Forbidden=8]="Forbidden"})(b||(b={}));class g{}g.BotId="botid";g.CustomSpeechDeploymentId="cid";g.CustomVoiceDeploymentId="deploymentId";g.EnableAudioLogging="storeAudio";g.EnableLanguageId="lidEnabled";g.EnableWordLevelTimestamps="wordLevelTimestamps";g.EndSilenceTimeoutMs="endSilenceTimeoutMs";g.SegmentationSilenceTimeoutMs="segmentationSilenceTimeoutMs";g.Format="format";g.InitialSilenceTimeoutMs="initialSilenceTimeoutMs";g.Language="language";g.Profanity="profanity";g.RequestBotStatusMessages="enableBotMessageStatus";g.StableIntermediateThreshold="stableIntermediateThreshold";g.StableTranslation="stableTranslation";g.TestHooks="testhooks";g.Postprocessing="postprocessing";class pt{static getHostSuffix(e){if(e){if(e.toLowerCase().startsWith("china"))return".azure.cn";if(e.toLowerCase().startsWith("usgov"))return".azure.us"}return".microsoft.com"}setCommonUrlParams(e,t,r){new Map([[d.Speech_SegmentationSilenceTimeoutMs,g.SegmentationSilenceTimeoutMs],[d.SpeechServiceConnection_EnableAudioLogging,g.EnableAudioLogging],[d.SpeechServiceConnection_EndSilenceTimeoutMs,g.EndSilenceTimeoutMs],[d.SpeechServiceConnection_InitialSilenceTimeoutMs,g.InitialSilenceTimeoutMs],[d.SpeechServiceResponse_PostProcessingOption,g.Postprocessing],[d.SpeechServiceResponse_ProfanityOption,g.Profanity],[d.SpeechServiceResponse_RequestWordLevelTimestamps,g.EnableWordLevelTimestamps],[d.SpeechServiceResponse_StablePartialResultThreshold,g.StableIntermediateThreshold]]).forEach((o,h)=>{this.setUrlParameter(h,o,e,t,r)});const s=JSON.parse(e.parameters.getProperty(je,"{}"));Object.keys(s).forEach(o=>{t[o]=s[o]})}setUrlParameter(e,t,r,n,s){const o=r.parameters.getProperty(e,void 0);o&&(!s||s.search(t)===-1)&&(n[t]=o.toLocaleLowerCase())}}var Ve;(function(i){i[i.Masked=0]="Masked",i[i.Removed=1]="Removed",i[i.Raw=2]="Raw"})(Ve||(Ve={}));class bi{constructor(e,t,r,n){this.privResultId=e,this.privReason=t,this.privErrorDetails=r,this.privProperties=n}get resultId(){return this.privResultId}get reason(){return this.privReason}get errorDetails(){return this.privErrorDetails}get properties(){return this.privProperties}}class me extends bi{constructor(e,t,r,n,s,o){super(e,t,n,s),this.privAudioData=r,this.privAudioDuration=o}get audioData(){return this.privAudioData}get audioDuration(){return this.privAudioDuration}}class we{constructor(e){this.privResult=e}get result(){return this.privResult}}class Ri{constructor(e,t,r,n,s,o){this.privAudioOffset=e,this.privDuration=t,this.privText=r,this.privWordLength=n,this.privTextOffset=s,this.privBoundaryType=o}get audioOffset(){return this.privAudioOffset}get duration(){return this.privDuration}get text(){return this.privText}get wordLength(){return this.privWordLength}get textOffset(){return this.privTextOffset}get boundaryType(){return this.privBoundaryType}}class Ei{constructor(e,t){this.privAudioOffset=e,this.privText=t}get audioOffset(){return this.privAudioOffset}get text(){return this.privText}}class Ai{constructor(e,t,r){this.privAudioOffset=e,this.privVisemeId=t,this.privAnimation=r}get audioOffset(){return this.privAudioOffset}get visemeId(){return this.privVisemeId}get animation(){return this.privAnimation}}var Le=globalThis&&globalThis.__awaiter||function(i,e,t,r){function n(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function h(c){try{a(r.next(c))}catch(p){o(p)}}function u(c){try{a(r.throw(c))}catch(p){o(p)}}function a(c){c.done?s(c.value):n(c.value).then(h,u)}a((r=r.apply(i,e||[])).next())})};const Pi=60*30,dt={[v.PCM]:"audio/wav",[v.MuLaw]:"audio/x-wav",[v.MP3]:"audio/mpeg",[v.OGG_OPUS]:"audio/ogg",[v.WEBM_OPUS]:"audio/webm; codecs=opus",[v.ALaw]:"audio/x-wav",[v.FLAC]:"audio/flac"};class vt{constructor(e){this.privPlaybackStarted=!1,this.privAppendingToBuffer=!1,this.privMediaSourceOpened=!1,this.privBytesReceived=0,this.privId=e||E(),this.privIsPaused=!1,this.privIsClosed=!1}id(){return this.privId}write(e,t,r){this.privAudioBuffer!==void 0?(this.privAudioBuffer.push(e),this.updateSourceBuffer().then(()=>{t&&t()},n=>{r&&r(n)})):this.privAudioOutputStream!==void 0&&(this.privAudioOutputStream.write(e),this.privBytesReceived+=e.byteLength)}close(e,t){if(this.privIsClosed=!0,this.privSourceBuffer!==void 0)this.handleSourceBufferUpdateEnd().then(()=>{e&&e()},r=>{t&&t(r)});else if(this.privAudioOutputStream!==void 0&&typeof window!="undefined")if((this.privFormat.formatTag===v.PCM||this.privFormat.formatTag===v.MuLaw||this.privFormat.formatTag===v.ALaw)&&this.privFormat.hasHeader===!1)console.warn("Play back is not supported for raw PCM, mulaw or alaw format without header."),this.onAudioEnd&&this.onAudioEnd(this);else{let r=new ArrayBuffer(this.privBytesReceived);this.privAudioOutputStream.read(r).then(()=>{r=Se.addHeader(r,this.privFormat);const n=new Blob([r],{type:dt[this.privFormat.formatTag]});this.privAudio.src=window.URL.createObjectURL(n),this.notifyPlayback().then(()=>{e&&e()},s=>{t&&t(s)})},n=>{t&&t(n)})}else this.onAudioEnd&&this.onAudioEnd(this)}set format(e){if(typeof AudioContext!="undefined"||typeof window!="undefined"&&typeof window.webkitAudioContext!="undefined"){this.privFormat=e;const t=dt[this.privFormat.formatTag];t===void 0?console.warn(`Unknown mimeType for format ${v[this.privFormat.formatTag]}; playback is not supported.`):typeof MediaSource!="undefined"&&MediaSource.isTypeSupported(t)?(this.privAudio=new Audio,this.privAudioBuffer=[],this.privMediaSource=new MediaSource,this.privAudio.src=URL.createObjectURL(this.privMediaSource),this.privAudio.load(),this.privMediaSource.onsourceopen=()=>{this.privMediaSourceOpened=!0,this.privMediaSource.duration=Pi,this.privSourceBuffer=this.privMediaSource.addSourceBuffer(t),this.privSourceBuffer.onupdate=()=>{this.updateSourceBuffer().catch(r=>{M.instance.onEvent(new he(r))})},this.privSourceBuffer.onupdateend=()=>{this.handleSourceBufferUpdateEnd().catch(r=>{M.instance.onEvent(new he(r))})},this.privSourceBuffer.onupdatestart=()=>{this.privAppendingToBuffer=!1}},this.updateSourceBuffer().catch(r=>{M.instance.onEvent(new he(r))})):(console.warn(`Format ${v[this.privFormat.formatTag]} could not be played by MSE, streaming playback is not enabled.`),this.privAudioOutputStream=new Ze,this.privAudioOutputStream.format=this.privFormat,this.privAudio=new Audio)}}get volume(){var e,t;return(t=(e=this.privAudio)===null||e===void 0?void 0:e.volume)!==null&&t!==void 0?t:-1}set volume(e){this.privAudio&&(this.privAudio.volume=e)}mute(){this.privAudio&&(this.privAudio.muted=!0)}unmute(){this.privAudio&&(this.privAudio.muted=!1)}get isClosed(){return this.privIsClosed}get currentTime(){return this.privAudio!==void 0?this.privAudio.currentTime:-1}pause(){!this.privIsPaused&&this.privAudio!==void 0&&(this.privAudio.pause(),this.privIsPaused=!0)}resume(e,t){this.privIsPaused&&this.privAudio!==void 0&&(this.privAudio.play().then(()=>{e&&e()},r=>{t&&t(r)}),this.privIsPaused=!1)}get internalAudio(){return this.privAudio}updateSourceBuffer(){return Le(this,void 0,void 0,function*(){if(this.privAudioBuffer!==void 0&&this.privAudioBuffer.length>0&&this.sourceBufferAvailable()){this.privAppendingToBuffer=!0;const e=this.privAudioBuffer.shift();try{this.privSourceBuffer.appendBuffer(e)}catch{this.privAudioBuffer.unshift(e),console.log("buffer filled, pausing addition of binaries until space is made");return}yield this.notifyPlayback()}else this.canEndStream()&&(yield this.handleSourceBufferUpdateEnd())})}handleSourceBufferUpdateEnd(){return Le(this,void 0,void 0,function*(){this.canEndStream()&&this.sourceBufferAvailable()&&(this.privMediaSource.endOfStream(),yield this.notifyPlayback())})}notifyPlayback(){return Le(this,void 0,void 0,function*(){!this.privPlaybackStarted&&this.privAudio!==void 0&&(this.privPlaybackStarted=!0,this.onAudioStart&&this.onAudioStart(this),this.privAudio.onended=()=>{this.onAudioEnd&&this.onAudioEnd(this)},this.privIsPaused||(yield this.privAudio.play()))})}canEndStream(){return this.isClosed&&this.privSourceBuffer!==void 0&&this.privAudioBuffer.length===0&&this.privMediaSourceOpened&&!this.privAppendingToBuffer&&this.privMediaSource.readyState==="open"}sourceBufferAvailable(){return this.privSourceBuffer!==void 0&&!this.privSourceBuffer.updating}}class ke extends Q{constructor(e,t,r,n=w.Info){super(e,n),this.privRequestId=t,this.privSessionId=r}get requestId(){return this.privRequestId}get sessionId(){return this.privSessionId}}class kt extends ke{constructor(e,t,r,n){super("RecognitionTriggeredEvent",e,t),this.privAudioSourceId=r,this.privAudioNodeId=n}get audioSourceId(){return this.privAudioSourceId}get audioNodeId(){return this.privAudioNodeId}}class Ti extends ke{constructor(e,t,r,n){super("ListeningStartedEvent",e,t),this.privAudioSourceId=r,this.privAudioNodeId=n}get audioSourceId(){return this.privAudioSourceId}get audioNodeId(){return this.privAudioNodeId}}class xt extends ke{constructor(e,t,r){super("ConnectingToServiceEvent",e,r),this.privAuthFetchEventid=t}get authFetchEventid(){return this.privAuthFetchEventid}}class Ii extends ke{constructor(e,t,r,n,s){super("RecognitionStartedEvent",e,s),this.privAudioSourceId=t,this.privAudioNodeId=r,this.privAuthFetchEventId=n}get audioSourceId(){return this.privAudioSourceId}get audioNodeId(){return this.privAudioNodeId}get authFetchEventId(){return this.privAuthFetchEventId}}var ft;(function(i){i[i.Success=0]="Success",i[i.AudioSourceError=1]="AudioSourceError",i[i.AudioSourceTimeout=2]="AudioSourceTimeout",i[i.AuthTokenFetchError=3]="AuthTokenFetchError",i[i.AuthTokenFetchTimeout=4]="AuthTokenFetchTimeout",i[i.UnAuthorized=5]="UnAuthorized",i[i.ConnectTimeout=6]="ConnectTimeout",i[i.ConnectError=7]="ConnectError",i[i.ClientRecognitionActivityTimeout=8]="ClientRecognitionActivityTimeout",i[i.UnknownError=9]="UnknownError"})(ft||(ft={}));class z extends Ke{constructor(e,t,r,n,s,o,h,u){if(!t)throw new I("path");if(!r)throw new I("requestId");const a={};if(a[C.Path]=t,a[C.RequestId]=r,a[C.RequestTimestamp]=new Date().toISOString(),n&&(a[C.ContentType]=n),o&&(a[C.RequestStreamId]=o),h)for(const c in h)c&&(a[c]=h[c]);u?super(e,s,a,u):super(e,s,a),this.privPath=t,this.privRequestId=r,this.privContentType=n,this.privStreamId=o,this.privAdditionalHeaders=h}get path(){return this.privPath}get requestId(){return this.privRequestId}get contentType(){return this.privContentType}get streamId(){return this.privStreamId}get additionalHeaders(){return this.privAdditionalHeaders}static fromConnectionMessage(e){let t=null,r=null,n=null,s=null;const o={};if(e.headers)for(const h in e.headers)h&&(h.toLowerCase()===C.Path.toLowerCase()?t=e.headers[h]:h.toLowerCase()===C.RequestId.toLowerCase()?r=e.headers[h]:h.toLowerCase()===C.ContentType.toLowerCase()?n=e.headers[h]:h.toLowerCase()===C.RequestStreamId.toLowerCase()?s=e.headers[h]:o[h]=e.headers[h]);return new z(e.messageType,t,r,n,e.body,s,o,e.id)}}var P=globalThis&&globalThis.__awaiter||function(i,e,t,r){function n(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function h(c){try{a(r.next(c))}catch(p){o(p)}}function u(c){try{a(r.throw(c))}catch(p){o(p)}}function a(c){c.done?s(c.value):n(c.value).then(h,u)}a((r=r.apply(i,e||[])).next())})};class W{constructor(e,t,r,n,s){if(this.privConnectionConfigurationPromise=void 0,this.privConnectionPromise=void 0,this.privSetTimeout=setTimeout,this.privIsLiveAudio=!1,this.recognizeOverride=void 0,this.disconnectOverride=void 0,this.receiveMessageOverride=void 0,this.sendPrePayloadJSONOverride=void 0,this.postConnectImplOverride=void 0,this.configConnectionOverride=void 0,!e)throw new I("authentication");if(!t)throw new I("connectionFactory");if(!r)throw new I("audioSource");if(!n)throw new I("recognizerConfig");this.privMustReportEndOfStream=!1,this.privAuthentication=e,this.privConnectionFactory=t,this.privAudioSource=r,this.privRecognizerConfig=n,this.privIsDisposed=!1,this.privRecognizer=s,this.privRequestSession=new _i(this.privAudioSource.id()),this.privConnectionEvents=new K,this.privServiceEvents=new K,this.privDynamicGrammar=new qi,this.privSpeechContext=new Ni(this.privDynamicGrammar),this.privAgentConfig=new Ot,typeof Blob!="undefined"&&typeof Worker!="undefined"&&(this.privSetTimeout=D.setTimeout),this.connectionEvents.attach(o=>{if(o.name==="ConnectionClosedEvent"){const h=o;(h.statusCode===1003||h.statusCode===1007||h.statusCode===1002||h.statusCode===4e3||this.privRequestSession.numConnectionAttempts>this.privRecognizerConfig.maxRetryCount)&&this.cancelRecognitionLocal(O.Error,h.statusCode===1007?b.BadRequestParameters:b.ConnectionFailure,`${h.reason} websocket error code: ${h.statusCode}`)}})}get audioSource(){return this.privAudioSource}get speechContext(){return this.privSpeechContext}get dynamicGrammar(){return this.privDynamicGrammar}get agentConfig(){return this.privAgentConfig}set conversationTranslatorToken(e){this.privRecognizerConfig.parameters.setProperty(d.ConversationTranslator_Token,e)}set authentication(e){this.privAuthentication=this.authentication}isDisposed(){return this.privIsDisposed}dispose(e){return P(this,void 0,void 0,function*(){if(this.privIsDisposed=!0,this.privConnectionConfigurationPromise!==void 0)try{yield(yield this.privConnectionConfigurationPromise).dispose(e)}catch{return}})}get connectionEvents(){return this.privConnectionEvents}get serviceEvents(){return this.privServiceEvents}get recognitionMode(){return this.privRecognizerConfig.recognitionMode}recognize(e,t,r){return P(this,void 0,void 0,function*(){if(this.recognizeOverride!==void 0){yield this.recognizeOverride(e,t,r);return}this.privConnectionConfigurationPromise=void 0,this.privRecognizerConfig.recognitionMode=e,this.privSuccessCallback=t,this.privErrorCallback=r,this.privRequestSession.startNewRecognition(),this.privRequestSession.listenForServiceTelemetry(this.privAudioSource.events);const n=this.connectImpl();let s;try{const u=yield this.audioSource.attach(this.privRequestSession.audioNodeId),a=yield this.audioSource.format,c=yield this.audioSource.deviceInfo;this.privIsLiveAudio=c.type&&c.type===G.Microphones,s=new Ji(u,a.avgBytesPerSec),yield this.privRequestSession.onAudioSourceAttachCompleted(s,!1),this.privRecognizerConfig.SpeechServiceConfig.Context.audio={source:c}}catch(u){throw yield this.privRequestSession.onStopRecognizing(),u}try{yield n}catch(u){yield this.cancelRecognitionLocal(O.Error,b.ConnectionFailure,u);return}const o=new He(this.privRequestSession.sessionId);this.privRecognizer.sessionStarted&&this.privRecognizer.sessionStarted(this.privRecognizer,o),this.receiveMessage(),this.sendAudio(s).catch(u=>P(this,void 0,void 0,function*(){yield this.cancelRecognitionLocal(O.Error,b.RuntimeError,u)}))})}stopRecognizing(){return P(this,void 0,void 0,function*(){if(this.privRequestSession.isRecognizing)try{yield this.audioSource.turnOff(),yield this.sendFinalAudio(),yield this.privRequestSession.onStopRecognizing(),yield this.privRequestSession.turnCompletionPromise}finally{yield this.privRequestSession.dispose()}})}connect(){return P(this,void 0,void 0,function*(){return yield this.connectImpl(),Promise.resolve()})}connectAsync(e,t){this.connectImpl().then(()=>{try{e&&e()}catch(r){t&&t(r)}},r=>{try{t&&t(r)}catch{}})}disconnect(){return P(this,void 0,void 0,function*(){if(yield this.cancelRecognitionLocal(O.Error,b.NoError,"Disconnecting"),this.disconnectOverride!==void 0&&(yield this.disconnectOverride()),this.privConnectionPromise!==void 0)try{yield(yield this.privConnectionPromise).dispose()}catch{}this.privConnectionPromise=void 0})}sendMessage(e){}sendNetworkMessage(e,t){return P(this,void 0,void 0,function*(){const r=typeof t=="string"?S.Text:S.Binary,n=typeof t=="string"?"application/json":"";return(yield this.fetchConnection()).send(new z(r,e,this.privRequestSession.requestId,n,t))})}set activityTemplate(e){this.privActivityTemplate=e}get activityTemplate(){return this.privActivityTemplate}sendTelemetryData(){return P(this,void 0,void 0,function*(){const e=this.privRequestSession.getTelemetry();if(W.telemetryDataEnabled!==!0||this.privIsDisposed||e===null)return;if(W.telemetryData)try{W.telemetryData(e)}catch{}yield(yield this.fetchConnection()).send(new z(S.Text,"telemetry",this.privRequestSession.requestId,"application/json",e))})}cancelRecognitionLocal(e,t,r){return P(this,void 0,void 0,function*(){this.privRequestSession.isRecognizing&&(yield this.privRequestSession.onStopRecognizing(),this.cancelRecognition(this.privRequestSession.sessionId,this.privRequestSession.requestId,e,t,r))})}receiveMessage(){return P(this,void 0,void 0,function*(){try{if(this.privIsDisposed)return;let e=yield this.fetchConnection();const t=yield e.read();if(this.receiveMessageOverride!==void 0)return this.receiveMessageOverride();if(!t)return this.privRequestSession.isRecognizing?this.receiveMessage():void 0;this.privServiceHasSentMessage=!0;const r=z.fromConnectionMessage(t);if(r.requestId.toLowerCase()===this.privRequestSession.requestId.toLowerCase())switch(r.path.toLowerCase()){case"turn.start":this.privMustReportEndOfStream=!0,this.privRequestSession.onServiceTurnStartResponse();break;case"speech.startdetected":const n=Te.fromJSON(r.textBody),s=new Pe(n.Offset,this.privRequestSession.sessionId);this.privRecognizer.speechStartDetected&&this.privRecognizer.speechStartDetected(this.privRecognizer,s);break;case"speech.enddetected":let o;r.textBody.length>0?o=r.textBody:o="{ Offset: 0 }";const h=Te.fromJSON(o);this.privRecognizerConfig.isContinuousRecognition&&this.privRequestSession.onServiceRecognized(h.Offset+this.privRequestSession.currentTurnAudioOffset);const u=new Pe(h.Offset+this.privRequestSession.currentTurnAudioOffset,this.privRequestSession.sessionId);this.privRecognizer.speechEndDetected&&this.privRecognizer.speechEndDetected(this.privRecognizer,u);break;case"turn.end":yield this.sendTelemetryData(),this.privRequestSession.isSpeechEnded&&this.privMustReportEndOfStream&&(this.privMustReportEndOfStream=!1,yield this.cancelRecognitionLocal(O.EndOfStream,b.NoError,void 0));const a=new He(this.privRequestSession.sessionId);if(yield this.privRequestSession.onServiceTurnEndResponse(this.privRecognizerConfig.isContinuousRecognition),!this.privRecognizerConfig.isContinuousRecognition||this.privRequestSession.isSpeechEnded||!this.privRequestSession.isRecognizing){this.privRecognizer.sessionStopped&&this.privRecognizer.sessionStopped(this.privRecognizer,a);return}else e=yield this.fetchConnection(),yield this.sendPrePayloadJSON(e);break;default:(yield this.processTypeSpecificMessages(r))||this.privServiceEvents&&this.serviceEvents.onEvent(new Ct(r.path.toLowerCase(),r.textBody))}return this.receiveMessage()}catch{return null}})}sendSpeechContext(e,t){const r=this.speechContext.toJSON();if(t&&this.privRequestSession.onSpeechContext(),r)return e.send(new z(S.Text,"speech.context",this.privRequestSession.requestId,"application/json",r))}sendPrePayloadJSON(e,t=!0){return P(this,void 0,void 0,function*(){if(this.sendPrePayloadJSONOverride!==void 0)return this.sendPrePayloadJSONOverride(e);yield this.sendSpeechContext(e,t),yield this.sendWaveHeader(e)})}sendWaveHeader(e){return P(this,void 0,void 0,function*(){const t=yield this.audioSource.format;return e.send(new z(S.Binary,"audio",this.privRequestSession.requestId,"audio/x-wav",t.header))})}connectImpl(){return this.privConnectionPromise!==void 0?this.privConnectionPromise.then(e=>e.state()===A.Disconnected?(this.privConnectionId=null,this.privConnectionPromise=void 0,this.privServiceHasSentMessage=!1,this.connectImpl()):this.privConnectionPromise,()=>(this.privConnectionId=null,this.privConnectionPromise=void 0,this.privServiceHasSentMessage=!1,this.connectImpl())):(this.privConnectionPromise=this.retryableConnect(),this.privConnectionPromise.catch(()=>{}),this.postConnectImplOverride!==void 0?this.postConnectImplOverride(this.privConnectionPromise):this.privConnectionPromise)}sendSpeechServiceConfig(e,t,r){if(t.onSpeechContext(),W.telemetryDataEnabled!==!0){const s={context:{system:JSON.parse(r).context.system}};r=JSON.stringify(s)}if(this.privRecognizerConfig.parameters.getProperty("f0f5debc-f8c9-4892-ac4b-90a7ab359fd2","false").toLowerCase()==="true"){const n=JSON.parse(r);n.context.DisableReferenceChannel="True",n.context.MicSpec="1_0_0",r=JSON.stringify(n)}if(r)return e.send(new z(S.Text,"speech.config",t.requestId,"application/json",r))}fetchConnection(){return P(this,void 0,void 0,function*(){return this.privConnectionConfigurationPromise!==void 0?this.privConnectionConfigurationPromise.then(e=>e.state()===A.Disconnected?(this.privConnectionId=null,this.privConnectionConfigurationPromise=void 0,this.privServiceHasSentMessage=!1,this.fetchConnection()):this.privConnectionConfigurationPromise,()=>(this.privConnectionId=null,this.privConnectionConfigurationPromise=void 0,this.privServiceHasSentMessage=!1,this.fetchConnection())):(this.privConnectionConfigurationPromise=this.configureConnection(),yield this.privConnectionConfigurationPromise)})}sendAudio(e){return P(this,void 0,void 0,function*(){const t=yield this.audioSource.format;let r=Date.now();const n=this.privRecognizerConfig.parameters.getProperty("SPEECH-TransmitLengthBeforThrottleMs","5000"),s=t.avgBytesPerSec/1e3*parseInt(n,10),o=this.privRequestSession.recogNumber,h=()=>P(this,void 0,void 0,function*(){if(!this.privIsDisposed&&!this.privRequestSession.isSpeechEnded&&this.privRequestSession.isRecognizing&&this.privRequestSession.recogNumber===o){const u=yield this.fetchConnection(),a=yield e.read();if(this.privRequestSession.isSpeechEnded)return;let c,p;if(!a||a.isEnd?(c=null,p=0):(c=a.buffer,this.privRequestSession.onAudioSent(c.byteLength),s>=this.privRequestSession.bytesSent?p=0:p=Math.max(0,r-Date.now())),p!==0&&(yield this.delay(p)),c!==null&&(r=Date.now()+c.byteLength*1e3/(t.avgBytesPerSec*2)),!this.privIsDisposed&&!this.privRequestSession.isSpeechEnded&&this.privRequestSession.isRecognizing&&this.privRequestSession.recogNumber===o)if(u.send(new z(S.Binary,"audio",this.privRequestSession.requestId,null,c)).catch(()=>{this.privRequestSession.onServiceTurnEndResponse(this.privRecognizerConfig.isContinuousRecognition).catch(()=>{})}),a!=null&&a.isEnd)this.privIsLiveAudio||this.privRequestSession.onSpeechEnded();else return h()}});return h()})}retryableConnect(){return P(this,void 0,void 0,function*(){let e=!1;this.privAuthFetchEventId=E();const t=this.privRequestSession.sessionId;this.privConnectionId=t!==void 0?t:E(),this.privRequestSession.onPreConnectionStart(this.privAuthFetchEventId,this.privConnectionId);let r=0,n="";for(;this.privRequestSession.numConnectionAttempts<=this.privRecognizerConfig.maxRetryCount;){const o=yield e?this.privAuthentication.fetchOnExpiry(this.privAuthFetchEventId):this.privAuthentication.fetch(this.privAuthFetchEventId);yield this.privRequestSession.onAuthCompleted(!1);const h=this.privConnectionFactory.create(this.privRecognizerConfig,o,this.privConnectionId);this.privRequestSession.listenForServiceTelemetry(h.events),h.events.attach(a=>{this.connectionEvents.onEvent(a)});const u=yield h.open();if(u.statusCode===200)return yield this.privRequestSession.onConnectionEstablishCompleted(u.statusCode),Promise.resolve(h);u.statusCode===1006&&(e=!0),r=u.statusCode,n=u.reason,this.privRequestSession.onRetryConnection()}return yield this.privRequestSession.onConnectionEstablishCompleted(r,n),Promise.reject(`Unable to contact server. StatusCode: ${r}, ${this.privRecognizerConfig.parameters.getProperty(d.SpeechServiceConnection_Endpoint)} Reason: ${n}`)})}delay(e){return new Promise(t=>this.privSetTimeout(t,e))}writeBufferToConsole(e){let t="Buffer Size: ";if(e===null)t+="null";else{const r=new Uint8Array(e);t+=`${e.byteLength}\r +`;for(let n=0;n{if(t&&typeof t=="object"){const r={};for(const n in t)Object.hasOwnProperty.call(t,n)&&(r[n&&n.charAt(0).toLowerCase()+n.substring(1)]=t[n]);return r}return t})}get Context(){return this.context}get Recognition(){return this.recognition}set Recognition(e){this.recognition=e.toLowerCase()}}class Lt{constructor(e){this.system=new Di,this.os=e}}class Di{constructor(){const e="1.24.1";this.name="SpeechSDK",this.version=e,this.build="JavaScript",this.lang="JavaScript"}}class zi{constructor(e,t,r){this.platform=e,this.name=t,this.version=r}}var ie;(function(i){i.Bluetooth="Bluetooth",i.Wired="Wired",i.WiFi="WiFi",i.Cellular="Cellular",i.InBuilt="InBuilt",i.Unknown="Unknown"})(ie||(ie={}));var G;(function(i){i.Phone="Phone",i.Speaker="Speaker",i.Car="Car",i.Headset="Headset",i.Thermostat="Thermostat",i.Microphones="Microphones",i.Deskphone="Deskphone",i.RemoteControl="RemoteControl",i.Unknown="Unknown",i.File="File",i.Stream="Stream"})(G||(G={}));const St=`\r +`;class ki{toConnectionMessage(e){const t=new T;try{if(e.messageType===S.Text){const r=e.textContent;let n={},s=null;if(r){const o=r.split(`\r +\r +`);o&&o.length>0&&(n=this.parseHeaders(o[0]),o.length>1&&(s=o[1]))}t.resolve(new Ke(e.messageType,s,n,e.id))}else if(e.messageType===S.Binary){const r=e.binaryContent;let n={},s=null;if(!r||r.byteLength<2)throw new Error("Invalid binary message format. Header length missing.");const o=new DataView(r),h=o.getInt16(0);if(r.byteLengthh+2&&(s=r.slice(2+h)),t.resolve(new Ke(e.messageType,s,n,e.id))}}catch(r){t.reject(`Error formatting the message. Error: ${r}`)}return t.promise}fromConnectionMessage(e){const t=new T;try{if(e.messageType===S.Text){const r=`${this.makeHeaders(e)}${St}${e.textBody?e.textBody:""}`;t.resolve(new Ae(S.Text,r,e.id))}else if(e.messageType===S.Binary){const r=this.makeHeaders(e),n=e.binaryBody,s=this.stringToArrayBuffer(r),o=new Int8Array(s),h=o.byteLength,u=new Int8Array(2+h+(n?n.byteLength:0));if(u[0]=h>>8&255,u[1]=h&255,u.set(o,2),n){const c=new Int8Array(n);u.set(c,2+h)}const a=u.buffer;t.resolve(new Ae(S.Binary,a,e.id))}}catch(r){t.reject(`Error formatting the message. ${r}`)}return t.promise}makeHeaders(e){let t="";if(e.headers)for(const r in e.headers)r&&(t+=`${r}: ${e.headers[r]}${St}`);return t}parseHeaders(e){const t={};if(e){const r=e.match(/[^\r\n]+/g);if(t){for(const n of r)if(n){const s=n.indexOf(":"),o=s>0?n.substr(0,s).trim().toLowerCase():n,h=s>0&&n.length>s+1?n.substr(s+1).trim():"";t[o]=h}}}return t}stringToArrayBuffer(e){const t=new ArrayBuffer(e.length),r=new DataView(t);for(let n=0;n1?n=`${h}${this.universalUri}${e.recognitionEndpointVersion}`:n=h+this.conversationRelativeUri;break;case H.Dictation:n=h+this.dictationRelativeUri;break;default:e.recognitionEndpointVersion!==void 0&&parseInt(e.recognitionEndpointVersion,10)>1?n=`${h}${this.universalUri}${e.recognitionEndpointVersion}`:n=h+this.interactiveRelativeUri;break}const p={};t.token!==void 0&&t.token!==""&&(p[t.headerName]=t.token),p[C.ConnectionId]=r,e.parameters.setProperty(d.SpeechServiceConnection_Url,n);const L=e.parameters.getProperty("SPEECH-EnableWebsocketCompression","false")==="true";return new $i(n,u,p,new ki,ot.fromRecognizerConfig(e),L,r)}}class ye{static implTranslateRecognitionResult(e){let t=B.Canceled;switch(e){case y.Success:t=B.RecognizedSpeech;break;case y.NoMatch:case y.InitialSilenceTimeout:case y.BabbleTimeout:case y.EndOfDictation:t=B.NoMatch;break;case y.Error:case y.BadRequest:case y.Forbidden:default:t=B.Canceled;break}return t}static implTranslateCancelResult(e){let t=O.EndOfStream;switch(e){case y.Success:case y.EndOfDictation:case y.NoMatch:t=O.EndOfStream;break;case y.InitialSilenceTimeout:case y.BabbleTimeout:case y.Error:case y.BadRequest:case y.Forbidden:default:t=O.Error;break}return t}static implTranslateCancelErrorCode(e){let t=b.NoError;switch(e){case y.Error:t=b.ServiceError;break;case y.TooManyRequests:t=b.TooManyRequests;break;case y.BadRequest:t=b.BadRequestParameters;break;case y.Forbidden:t=b.Forbidden;break;default:t=b.NoError;break}return t}static implTranslateErrorDetails(e){let t="The speech service encountered an internal error and could not continue.";switch(e){case b.Forbidden:t="The recognizer is using a free subscription that ran out of quota.";break;case b.BadRequestParameters:t="Invalid parameter or unsupported audio format in the request.";break;case b.TooManyRequests:t="The number of parallel requests exceeded the number of allowed concurrent transcriptions.";break}return t}}var gt;(function(i){i[i.Success=0]="Success",i[i.SynthesisEnd=1]="SynthesisEnd",i[i.Error=2]="Error"})(gt||(gt={}));var y;(function(i){i[i.Success=0]="Success",i[i.NoMatch=1]="NoMatch",i[i.InitialSilenceTimeout=2]="InitialSilenceTimeout",i[i.BabbleTimeout=3]="BabbleTimeout",i[i.Error=4]="Error",i[i.EndOfDictation=5]="EndOfDictation",i[i.TooManyRequests=6]="TooManyRequests",i[i.BadRequest=7]="BadRequest",i[i.Forbidden=8]="Forbidden"})(y||(y={}));class Te{constructor(e){this.privSpeechStartDetected=JSON.parse(e)}static fromJSON(e){return new Te(e)}get Offset(){return this.privSpeechStartDetected.Offset}}class tt{constructor(e){this.privSpeechHypothesis=JSON.parse(e)}static fromJSON(e){return new tt(e)}get Text(){return this.privSpeechHypothesis.Text}get Offset(){return this.privSpeechHypothesis.Offset}get Duration(){return this.privSpeechHypothesis.Duration}get Language(){return this.privSpeechHypothesis.PrimaryLanguage===void 0?void 0:this.privSpeechHypothesis.PrimaryLanguage.Language}get LanguageDetectionConfidence(){return this.privSpeechHypothesis.PrimaryLanguage===void 0?void 0:this.privSpeechHypothesis.PrimaryLanguage.Confidence}get SpeakerId(){return this.privSpeechHypothesis.SpeakerId}}var Bi=globalThis&&globalThis.__awaiter||function(i,e,t,r){function n(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function h(c){try{a(r.next(c))}catch(p){o(p)}}function u(c){try{a(r.throw(c))}catch(p){o(p)}}function a(c){c.done?s(c.value):n(c.value).then(h,u)}a((r=r.apply(i,e||[])).next())})};class Li extends W{constructor(e,t,r,n,s){super(e,t,r,n,s),this.privSpeechRecognizer=s;const o={},h=n.parameters.getProperty(d.Speech_SegmentationSilenceTimeoutMs,void 0);if(h!==void 0){const a=parseInt(h,10);o.mode="INTERACTIVE",o.INTERACTIVE={segmentation:{mode:"Custom",segmentationSilenceTimeoutMs:a}}}if(n.autoDetectSourceLanguages!==void 0){const a=n.autoDetectSourceLanguages.split(",");this.privSpeechContext.setSection("languageId",{Priority:n.languageIdPriority,languages:a,mode:n.languageIdMode,onSuccess:{action:"Recognize"},onUnknown:{action:"None"}}),this.privSpeechContext.setSection("phraseOutput",{interimResults:{resultType:"Auto"},phraseResults:{resultType:"Always"}});const c=n.sourceLanguageModels;c!==void 0&&(o.customModels=c,o.onInterim={action:"None"},o.onSuccess={action:"None"})}(a=>{for(const c in a)return!1;return!0})(o)||this.privSpeechContext.setSection("phraseDetection",o)}processTypeSpecificMessages(e){return Bi(this,void 0,void 0,function*(){let t;const r=new te;r.setProperty(d.SpeechServiceResponse_JsonResult,e.textBody);let n=!1;switch(e.path.toLowerCase()){case"speech.hypothesis":case"speech.fragment":const s=tt.fromJSON(e.textBody),o=s.Offset+this.privRequestSession.currentTurnAudioOffset;t=new ge(this.privRequestSession.requestId,B.RecognizingSpeech,s.Text,s.Duration,o,s.Language,s.LanguageDetectionConfidence,void 0,void 0,e.textBody,r),this.privRequestSession.onHypothesis(o);const h=new ut(t,s.Duration,this.privRequestSession.sessionId);if(this.privSpeechRecognizer.recognizing)try{this.privSpeechRecognizer.recognizing(this.privSpeechRecognizer,h)}catch{}n=!0;break;case"speech.phrase":const u=rt.fromJSON(e.textBody),a=ye.implTranslateRecognitionResult(u.RecognitionStatus);if(this.privRequestSession.onPhraseRecognized(this.privRequestSession.currentTurnAudioOffset+u.Offset+u.Duration),B.Canceled===a){const c=ye.implTranslateCancelResult(u.RecognitionStatus),p=ye.implTranslateCancelErrorCode(u.RecognitionStatus);yield this.cancelRecognitionLocal(c,p,ye.implTranslateErrorDetails(p))}else{if(!(this.privRequestSession.isSpeechEnded&&a===B.NoMatch&&u.RecognitionStatus!==y.InitialSilenceTimeout)){if(this.privRecognizerConfig.parameters.getProperty(de)===k[k.Simple])t=new ge(this.privRequestSession.requestId,a,u.DisplayText,u.Duration,u.Offset+this.privRequestSession.currentTurnAudioOffset,u.Language,u.LanguageDetectionConfidence,void 0,void 0,e.textBody,r);else{const p=it.fromJSON(e.textBody),L=p.Offset+this.privRequestSession.currentTurnAudioOffset,J=p.getJsonWithCorrectedOffsets(L);t=new ge(this.privRequestSession.requestId,a,p.RecognitionStatus===y.Success?p.NBest[0].Display:void 0,p.Duration,L,p.Language,p.LanguageDetectionConfidence,void 0,void 0,J,r)}const c=new ut(t,t.offset,this.privRequestSession.sessionId);if(this.privSpeechRecognizer.recognized)try{this.privSpeechRecognizer.recognized(this.privSpeechRecognizer,c)}catch{}}if(this.privSuccessCallback){try{this.privSuccessCallback(t)}catch(c){this.privErrorCallback&&this.privErrorCallback(c)}this.privSuccessCallback=void 0,this.privErrorCallback=void 0}}n=!0;break}return n})}cancelRecognition(e,t,r,n,s){const o=new te;if(o.setProperty(_t,b[n]),this.privSpeechRecognizer.canceled){const h=new yi(r,s,n,void 0,e);try{this.privSpeechRecognizer.canceled(this.privSpeechRecognizer,h)}catch{}}if(this.privSuccessCallback){const h=new ge(t,B.Canceled,void 0,void 0,void 0,void 0,void 0,void 0,s,void 0,o);try{this.privSuccessCallback(h),this.privSuccessCallback=void 0}catch{}}}}class it{constructor(e){this.privDetailedSpeechPhrase=JSON.parse(e),this.privDetailedSpeechPhrase.RecognitionStatus=y[this.privDetailedSpeechPhrase.RecognitionStatus]}static fromJSON(e){return new it(e)}getJsonWithCorrectedOffsets(e){if(this.privDetailedSpeechPhrase.NBest){let t;for(const r of this.privDetailedSpeechPhrase.NBest)if(!!r.Words&&!!r.Words[0]){t=r.Words[0].Offset;break}if(!!t&&t0&&this.privPhraseLatencies.push(Date.now()-e)}hypothesisReceived(e){e>0&&this.privHypothesisLatencies.push(Date.now()-e)}onEvent(e){if(!this.privIsDisposed&&(e instanceof kt&&e.requestId===this.privRequestId&&(this.privListeningTriggerMetric={End:e.eventTime,Name:"ListeningTrigger",Start:e.eventTime}),e instanceof fe&&e.audioSourceId===this.privAudioSourceId&&e.audioNodeId===this.privAudioNodeId&&(this.privMicStartTime=e.eventTime),e instanceof le&&e.audioSourceId===this.privAudioSourceId&&e.audioNodeId===this.privAudioNodeId&&(this.privMicStartTime=e.eventTime),e instanceof Re&&e.audioSourceId===this.privAudioSourceId&&(this.privMicMetric||(this.privMicMetric={End:e.eventTime,Error:e.error,Name:"Microphone",Start:this.privMicStartTime})),e instanceof $e&&e.audioSourceId===this.privAudioSourceId&&e.audioNodeId===this.privAudioNodeId&&(this.privMicMetric||(this.privMicMetric={End:e.eventTime,Error:e.error,Name:"Microphone",Start:this.privMicStartTime})),e instanceof V&&e.audioSourceId===this.privAudioSourceId&&e.audioNodeId===this.privAudioNodeId&&(this.privMicMetric||(this.privMicMetric={End:e.eventTime,Name:"Microphone",Start:this.privMicStartTime})),e instanceof xt&&e.requestId===this.privRequestId&&(this.privConnectionId=e.sessionId),e instanceof bt&&e.connectionId===this.privConnectionId&&(this.privConnectionStartTime=e.eventTime),e instanceof Rt&&e.connectionId===this.privConnectionId&&(this.privConnectionEstablishMetric||(this.privConnectionEstablishMetric={End:e.eventTime,Id:this.privConnectionId,Name:"Connection",Start:this.privConnectionStartTime})),e instanceof Jt&&e.connectionId===this.privConnectionId&&(this.privConnectionEstablishMetric||(this.privConnectionEstablishMetric={End:e.eventTime,Error:this.getConnectionError(e.statusCode),Id:this.privConnectionId,Name:"Connection",Start:this.privConnectionStartTime})),e instanceof qe&&e.connectionId===this.privConnectionId&&e.message&&e.message.headers&&e.message.headers.path)){this.privReceivedMessages[e.message.headers.path]||(this.privReceivedMessages[e.message.headers.path]=new Array);const t=50;this.privReceivedMessages[e.message.headers.path].length0&&e.push({PhraseLatencyMs:this.privPhraseLatencies}),this.privHypothesisLatencies.length>0&&e.push({FirstHypothesisLatencyMs:this.privHypothesisLatencies});const t={Metrics:e,ReceivedMessages:this.privReceivedMessages},r=JSON.stringify(t);return this.privReceivedMessages={},this.privListeningTriggerMetric=null,this.privMicMetric=null,this.privConnectionEstablishMetric=null,this.privPhraseLatencies=[],this.privHypothesisLatencies=[],r}get hasTelemetry(){return Object.keys(this.privReceivedMessages).length!==0||this.privListeningTriggerMetric!==null||this.privMicMetric!==null||this.privConnectionEstablishMetric!==null||this.privPhraseLatencies.length!==0||this.privHypothesisLatencies.length!==0}dispose(){this.privIsDisposed=!0}getConnectionError(e){switch(e){case 400:case 1002:case 1003:case 1005:case 1007:case 1008:case 1009:return"BadRequest";case 401:return"Unauthorized";case 403:return"Forbidden";case 503:case 1001:return"ServerUnavailable";case 500:case 1011:return"ServerError";case 408:case 504:return"Timeout";default:return"statuscode:"+e.toString()}}}var j=globalThis&&globalThis.__awaiter||function(i,e,t,r){function n(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function h(c){try{a(r.next(c))}catch(p){o(p)}}function u(c){try{a(r.throw(c))}catch(p){o(p)}}function a(c){c.done?s(c.value):n(c.value).then(h,u)}a((r=r.apply(i,e||[])).next())})};class _i{constructor(e){this.privIsDisposed=!1,this.privDetachables=new Array,this.privIsAudioNodeDetached=!1,this.privIsRecognizing=!1,this.privIsSpeechEnded=!1,this.privTurnStartAudioOffset=0,this.privLastRecoOffset=0,this.privHypothesisReceived=!1,this.privBytesSent=0,this.privRecogNumber=0,this.privInTurn=!1,this.privConnectionAttempts=0,this.privAudioSourceId=e,this.privRequestId=E(),this.privAudioNodeId=E(),this.privTurnDeferral=new T,this.privTurnDeferral.resolve()}get sessionId(){return this.privSessionId}get requestId(){return this.privRequestId}get audioNodeId(){return this.privAudioNodeId}get turnCompletionPromise(){return this.privTurnDeferral.promise}get isSpeechEnded(){return this.privIsSpeechEnded}get isRecognizing(){return this.privIsRecognizing}get currentTurnAudioOffset(){return this.privTurnStartAudioOffset}get recogNumber(){return this.privRecogNumber}get numConnectionAttempts(){return this.privConnectionAttempts}get bytesSent(){return this.privBytesSent}listenForServiceTelemetry(e){this.privServiceTelemetryListener&&this.privDetachables.push(e.attachListener(this.privServiceTelemetryListener))}startNewRecognition(){this.privIsSpeechEnded=!1,this.privIsRecognizing=!0,this.privTurnStartAudioOffset=0,this.privLastRecoOffset=0,this.privRecogNumber++,this.privServiceTelemetryListener=new Oi(this.privRequestId,this.privAudioSourceId,this.privAudioNodeId),this.onEvent(new kt(this.requestId,this.privSessionId,this.privAudioSourceId,this.privAudioNodeId))}onAudioSourceAttachCompleted(e,t){return j(this,void 0,void 0,function*(){this.privAudioNode=e,this.privIsAudioNodeDetached=!1,t?yield this.onComplete():this.onEvent(new Ti(this.privRequestId,this.privSessionId,this.privAudioSourceId,this.privAudioNodeId))})}onPreConnectionStart(e,t){this.privAuthFetchEventId=e,this.privSessionId=t,this.onEvent(new xt(this.privRequestId,this.privAuthFetchEventId,this.privSessionId))}onAuthCompleted(e){return j(this,void 0,void 0,function*(){e&&(yield this.onComplete())})}onConnectionEstablishCompleted(e,t){return j(this,void 0,void 0,function*(){if(e===200){this.onEvent(new Ii(this.requestId,this.privAudioSourceId,this.privAudioNodeId,this.privAuthFetchEventId,this.privSessionId)),this.privAudioNode&&this.privAudioNode.replay(),this.privTurnStartAudioOffset=this.privLastRecoOffset,this.privBytesSent=0;return}else e===403&&(yield this.onComplete())})}onServiceTurnEndResponse(e){return j(this,void 0,void 0,function*(){this.privTurnDeferral.resolve(),!e||this.isSpeechEnded?(yield this.onComplete(),this.privInTurn=!1):(this.privTurnStartAudioOffset=this.privLastRecoOffset,this.privAudioNode.replay())})}onSpeechContext(){this.privRequestId=E()}onServiceTurnStartResponse(){!!this.privTurnDeferral&&!!this.privInTurn&&(this.privTurnDeferral.reject("Another turn started before current completed."),this.privTurnDeferral.promise.then().catch(()=>{})),this.privInTurn=!0,this.privTurnDeferral=new T}onHypothesis(e){this.privHypothesisReceived||(this.privHypothesisReceived=!0,this.privServiceTelemetryListener.hypothesisReceived(this.privAudioNode.findTimeAtOffset(e)))}onPhraseRecognized(e){this.privServiceTelemetryListener.phraseReceived(this.privAudioNode.findTimeAtOffset(e)),this.onServiceRecognized(e)}onServiceRecognized(e){this.privLastRecoOffset=e,this.privHypothesisReceived=!1,this.privAudioNode.shrinkBuffers(e),this.privConnectionAttempts=0}onAudioSent(e){this.privBytesSent+=e}onRetryConnection(){this.privConnectionAttempts++}dispose(){return j(this,void 0,void 0,function*(){if(!this.privIsDisposed){this.privIsDisposed=!0;for(const e of this.privDetachables)yield e.detach();this.privServiceTelemetryListener&&this.privServiceTelemetryListener.dispose(),this.privIsRecognizing=!1}})}getTelemetry(){return this.privServiceTelemetryListener.hasTelemetry?this.privServiceTelemetryListener.getTelemetry():null}onStopRecognizing(){return j(this,void 0,void 0,function*(){yield this.onComplete()})}onSpeechEnded(){this.privIsSpeechEnded=!0}onEvent(e){this.privServiceTelemetryListener&&this.privServiceTelemetryListener.onEvent(e),M.instance.onEvent(e)}onComplete(){return j(this,void 0,void 0,function*(){this.privIsRecognizing&&(this.privIsRecognizing=!1,yield this.detachAudioNode())})}detachAudioNode(){return j(this,void 0,void 0,function*(){this.privIsAudioNodeDetached||(this.privIsAudioNodeDetached=!0,this.privAudioNode&&(yield this.privAudioNode.detach()))})}}class Ni{constructor(e){this.privContext={},this.privDynamicGrammar=e}setSection(e,t){this.privContext[e]=t}setPronunciationAssessmentParams(e){this.privContext.phraseDetection===void 0&&(this.privContext.phraseDetection={enrichment:{pronunciationAssessment:{}}}),this.privContext.phraseDetection.enrichment.pronunciationAssessment=JSON.parse(e),this.setWordLevelTimings(),this.privContext.phraseOutput.detailed.options.push("PronunciationAssessment"),this.privContext.phraseOutput.detailed.options.indexOf("SNR")===-1&&this.privContext.phraseOutput.detailed.options.push("SNR")}setWordLevelTimings(){this.privContext.phraseOutput===void 0&&(this.privContext.phraseOutput={detailed:{options:[]},format:{}}),this.privContext.phraseOutput.detailed===void 0&&(this.privContext.phraseOutput.detailed={options:[]}),this.privContext.phraseOutput.format="Detailed",this.privContext.phraseOutput.detailed.options.indexOf("WordTimings")===-1&&this.privContext.phraseOutput.detailed.options.push("WordTimings")}toJSON(){const e=this.privDynamicGrammar.generateGrammarObject();return this.setSection("dgi",e),JSON.stringify(this.privContext)}}class qi{addPhrase(e){this.privPhrases||(this.privPhrases=[]),e instanceof Array?this.privPhrases=this.privPhrases.concat(e):this.privPhrases.push(e)}clearPhrases(){this.privPhrases=void 0}addReferenceGrammar(e){this.privGrammars||(this.privGrammars=[]),e instanceof Array?this.privGrammars=this.privGrammars.concat(e):this.privGrammars.push(e)}clearGrammars(){this.privGrammars=void 0}generateGrammarObject(){if(this.privGrammars===void 0&&this.privPhrases===void 0)return;const e={};if(e.ReferenceGrammars=this.privGrammars,this.privPhrases!==void 0&&this.privPhrases.length!==0){const t=[];this.privPhrases.forEach(r=>{t.push({Text:r})}),e.Groups=[{Type:"Generic",Items:t}]}return e}}class Ot{toJsonString(){return JSON.stringify(this.iPrivConfig)}get(){return this.iPrivConfig}set(e){this.iPrivConfig=e}}var U;(function(i){i.WordBoundary="WordBoundary",i.Bookmark="Bookmark",i.Viseme="Viseme",i.SentenceBoundary="SentenceBoundary",i.SessionEnd="SessionEnd"})(U||(U={}));class nt{constructor(e){this.privSynthesisAudioMetadata=JSON.parse(e)}static fromJSON(e){return new nt(e)}get Metadata(){return this.privSynthesisAudioMetadata.Metadata}}var F=globalThis&&globalThis.__awaiter||function(i,e,t,r){function n(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function h(c){try{a(r.next(c))}catch(p){o(p)}}function u(c){try{a(r.throw(c))}catch(p){o(p)}}function a(c){c.done?s(c.value):n(c.value).then(h,u)}a((r=r.apply(i,e||[])).next())})};class Se{constructor(e,t,r,n,s){if(this.speakOverride=void 0,this.receiveMessageOverride=void 0,this.connectImplOverride=void 0,this.configConnectionOverride=void 0,this.privConnectionConfigurationPromise=void 0,!e)throw new I("authentication");if(!t)throw new I("connectionFactory");if(!r)throw new I("synthesizerConfig");this.privAuthentication=e,this.privConnectionFactory=t,this.privSynthesizerConfig=r,this.privIsDisposed=!1,this.privSpeechSynthesizer=n,this.privSessionAudioDestination=s,this.privSynthesisTurn=new Ie,this.privConnectionEvents=new K,this.privServiceEvents=new K,this.privSynthesisContext=new Hi(this.privSpeechSynthesizer),this.privAgentConfig=new Ot,this.connectionEvents.attach(o=>{if(o.name==="ConnectionClosedEvent"){const h=o;h.statusCode!==1e3&&this.cancelSynthesisLocal(O.Error,h.statusCode===1007?b.BadRequestParameters:b.ConnectionFailure,`${h.reason} websocket error code: ${h.statusCode}`)}})}get synthesisContext(){return this.privSynthesisContext}get agentConfig(){return this.privAgentConfig}get connectionEvents(){return this.privConnectionEvents}get serviceEvents(){return this.privServiceEvents}set activityTemplate(e){this.privActivityTemplate=e}get activityTemplate(){return this.privActivityTemplate}set audioOutputFormat(e){this.privAudioOutputFormat=e,this.privSynthesisTurn.audioOutputFormat=e,this.privSessionAudioDestination!==void 0&&(this.privSessionAudioDestination.format=e),this.synthesisContext!==void 0&&(this.synthesisContext.audioOutputFormat=e)}static addHeader(e,t){if(!t.hasHeader)return e;t.updateHeader(e.byteLength);const r=new Uint8Array(e.byteLength+t.header.byteLength);return r.set(new Uint8Array(t.header),0),r.set(new Uint8Array(e),t.header.byteLength),r.buffer}isDisposed(){return this.privIsDisposed}dispose(e){return F(this,void 0,void 0,function*(){this.privIsDisposed=!0,this.privSessionAudioDestination!==void 0&&this.privSessionAudioDestination.close(),this.privConnectionConfigurationPromise!==void 0&&(yield(yield this.privConnectionConfigurationPromise).dispose(e))})}connect(){return F(this,void 0,void 0,function*(){yield this.connectImpl()})}sendNetworkMessage(e,t){return F(this,void 0,void 0,function*(){const r=typeof t=="string"?S.Text:S.Binary,n=typeof t=="string"?"application/json":"";return(yield this.fetchConnection()).send(new z(r,e,this.privSynthesisTurn.requestId,n,t))})}Speak(e,t,r,n,s,o){return F(this,void 0,void 0,function*(){let h;if(t?h=e:h=this.privSpeechSynthesizer.buildSsml(e),this.speakOverride!==void 0)return this.speakOverride(h,r,n,s);this.privSuccessCallback=n,this.privErrorCallback=s,this.privSynthesisTurn.startNewSynthesis(r,e,t,o);try{yield this.connectImpl();const u=yield this.fetchConnection();yield this.sendSynthesisContext(u),yield this.sendSsmlMessage(u,h,r);const a=new we(new me(r,B.SynthesizingAudioStarted));this.privSpeechSynthesizer.synthesisStarted&&this.privSpeechSynthesizer.synthesisStarted(this.privSpeechSynthesizer,a),this.receiveMessage()}catch(u){return this.cancelSynthesisLocal(O.Error,b.ConnectionFailure,u),Promise.reject(u)}})}cancelSynthesis(e,t,r,n){const s=new te;s.setProperty(_t,b[r]);const o=new me(e,B.Canceled,void 0,n,s);if(this.privSpeechSynthesizer.SynthesisCanceled){const h=new we(o);try{this.privSpeechSynthesizer.SynthesisCanceled(this.privSpeechSynthesizer,h)}catch{}}if(this.privSuccessCallback)try{this.privSuccessCallback(o)}catch{}}cancelSynthesisLocal(e,t,r){this.privSynthesisTurn.isSynthesizing&&(this.privSynthesisTurn.onStopSynthesizing(),this.cancelSynthesis(this.privSynthesisTurn.requestId,e,t,r))}processTypeSpecificMessages(e){return!0}receiveMessage(){return F(this,void 0,void 0,function*(){try{const t=yield(yield this.fetchConnection()).read();if(this.receiveMessageOverride!==void 0)return this.receiveMessageOverride();if(this.privIsDisposed)return;if(!t)return this.privSynthesisTurn.isSynthesizing?this.receiveMessage():void 0;const r=z.fromConnectionMessage(t);if(r.requestId.toLowerCase()===this.privSynthesisTurn.requestId.toLowerCase())switch(r.path.toLowerCase()){case"turn.start":this.privSynthesisTurn.onServiceTurnStartResponse();break;case"response":this.privSynthesisTurn.onServiceResponseMessage(r.textBody);break;case"audio":if(this.privSynthesisTurn.streamId.toLowerCase()===r.streamId.toLowerCase()&&!!r.binaryBody){if(this.privSynthesisTurn.onAudioChunkReceived(r.binaryBody),this.privSpeechSynthesizer.synthesizing)try{const o=Se.addHeader(r.binaryBody,this.privSynthesisTurn.audioOutputFormat),h=new we(new me(this.privSynthesisTurn.requestId,B.SynthesizingAudio,o));this.privSpeechSynthesizer.synthesizing(this.privSpeechSynthesizer,h)}catch{}this.privSessionAudioDestination!==void 0&&this.privSessionAudioDestination.write(r.binaryBody)}break;case"audio.metadata":const n=nt.fromJSON(r.textBody).Metadata;for(const o of n)switch(o.Type){case U.WordBoundary:case U.SentenceBoundary:this.privSynthesisTurn.onTextBoundaryEvent(o);const h=new Ri(o.Data.Offset,o.Data.Duration,o.Data.text.Text,o.Data.text.Length,o.Type===U.WordBoundary?this.privSynthesisTurn.currentTextOffset:this.privSynthesisTurn.currentSentenceOffset,o.Data.text.BoundaryType);if(this.privSpeechSynthesizer.wordBoundary)try{this.privSpeechSynthesizer.wordBoundary(this.privSpeechSynthesizer,h)}catch{}break;case U.Bookmark:const u=new Ei(o.Data.Offset,o.Data.Bookmark);if(this.privSpeechSynthesizer.bookmarkReached)try{this.privSpeechSynthesizer.bookmarkReached(this.privSpeechSynthesizer,u)}catch{}break;case U.Viseme:if(this.privSynthesisTurn.onVisemeMetadataReceived(o),o.Data.IsLastAnimation){const a=new Ai(o.Data.Offset,o.Data.VisemeId,this.privSynthesisTurn.getAndClearVisemeAnimation());if(this.privSpeechSynthesizer.visemeReceived)try{this.privSpeechSynthesizer.visemeReceived(this.privSpeechSynthesizer,a)}catch{}}break;case U.SessionEnd:this.privSynthesisTurn.onSessionEnd(o);break}break;case"turn.end":this.privSynthesisTurn.onServiceTurnEndResponse();let s;try{const o=yield this.privSynthesisTurn.getAllReceivedAudioWithHeader();s=new me(this.privSynthesisTurn.requestId,B.SynthesizingAudioCompleted,o,void 0,void 0,this.privSynthesisTurn.audioDuration),this.privSuccessCallback&&this.privSuccessCallback(s)}catch(o){this.privErrorCallback&&this.privErrorCallback(o)}if(this.privSpeechSynthesizer.synthesisCompleted)try{this.privSpeechSynthesizer.synthesisCompleted(this.privSpeechSynthesizer,new we(s))}catch{}break;default:this.processTypeSpecificMessages(r)||this.privServiceEvents&&this.serviceEvents.onEvent(new Ct(r.path.toLowerCase(),r.textBody))}return this.receiveMessage()}catch{}})}sendSynthesisContext(e){const t=this.synthesisContext.toJSON();if(t)return e.send(new z(S.Text,"synthesis.context",this.privSynthesisTurn.requestId,"application/json",t))}connectImpl(e=!1){if(this.privConnectionPromise!=null)return this.privConnectionPromise.then(r=>r.state()===A.Disconnected?(this.privConnectionId=null,this.privConnectionPromise=null,this.connectImpl()):this.privConnectionPromise,()=>(this.privConnectionId=null,this.privConnectionPromise=null,this.connectImpl()));this.privAuthFetchEventId=E(),this.privConnectionId=E(),this.privSynthesisTurn.onPreConnectionStart(this.privAuthFetchEventId);const t=e?this.privAuthentication.fetchOnExpiry(this.privAuthFetchEventId):this.privAuthentication.fetch(this.privAuthFetchEventId);return this.privConnectionPromise=t.then(r=>F(this,void 0,void 0,function*(){this.privSynthesisTurn.onAuthCompleted(!1);const n=this.privConnectionFactory.create(this.privSynthesizerConfig,r,this.privConnectionId);n.events.attach(o=>{this.connectionEvents.onEvent(o)});const s=yield n.open();return s.statusCode===200?(this.privSynthesisTurn.onConnectionEstablishCompleted(s.statusCode),Promise.resolve(n)):s.statusCode===403&&!e?this.connectImpl(!0):(this.privSynthesisTurn.onConnectionEstablishCompleted(s.statusCode),Promise.reject(`Unable to contact server. StatusCode: ${s.statusCode}, ${this.privSynthesizerConfig.parameters.getProperty(d.SpeechServiceConnection_Endpoint)} Reason: ${s.reason}`))}),r=>{throw this.privSynthesisTurn.onAuthCompleted(!0),new Error(r)}),this.privConnectionPromise.catch(()=>{}),this.privConnectionPromise}sendSpeechServiceConfig(e,t){if(t)return e.send(new z(S.Text,"speech.config",this.privSynthesisTurn.requestId,"application/json",t))}sendSsmlMessage(e,t,r){return e.send(new z(S.Text,"ssml",r,"application/ssml+xml",t))}fetchConnection(){return F(this,void 0,void 0,function*(){return this.privConnectionConfigurationPromise!==void 0?this.privConnectionConfigurationPromise.then(e=>e.state()===A.Disconnected?(this.privConnectionId=null,this.privConnectionConfigurationPromise=void 0,this.fetchConnection()):this.privConnectionConfigurationPromise,()=>(this.privConnectionId=null,this.privConnectionConfigurationPromise=void 0,this.fetchConnection())):(this.privConnectionConfigurationPromise=this.configureConnection(),yield this.privConnectionConfigurationPromise)})}configureConnection(){return F(this,void 0,void 0,function*(){const e=yield this.connectImpl();return this.configConnectionOverride!==void 0?this.configConnectionOverride(e):(yield this.sendSpeechServiceConfig(e,this.privSynthesizerConfig.SpeechServiceConfig.serialize()),e)})}}Se.telemetryDataEnabled=!0;class st extends Q{constructor(e,t,r=w.Info){super(e,r),this.privRequestId=t}get requestId(){return this.privRequestId}}class Ki extends st{constructor(e,t,r){super("SynthesisTriggeredEvent",e),this.privSessionAudioDestinationId=t,this.privTurnAudioDestinationId=r}get audioSessionDestinationId(){return this.privSessionAudioDestinationId}get audioTurnDestinationId(){return this.privTurnAudioDestinationId}}class Ui extends st{constructor(e,t){super("ConnectingToSynthesisServiceEvent",e),this.privAuthFetchEventId=t}get authFetchEventId(){return this.privAuthFetchEventId}}class Wi extends st{constructor(e,t){super("SynthesisStartedEvent",e),this.privAuthFetchEventId=t}get authFetchEventId(){return this.privAuthFetchEventId}}var Oe=globalThis&&globalThis.__awaiter||function(i,e,t,r){function n(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function h(c){try{a(r.next(c))}catch(p){o(p)}}function u(c){try{a(r.throw(c))}catch(p){o(p)}}function a(c){c.done?s(c.value):n(c.value).then(h,u)}a((r=r.apply(i,e||[])).next())})};class Ie{constructor(){this.privIsDisposed=!1,this.privIsSynthesizing=!1,this.privIsSynthesisEnded=!1,this.privBytesReceived=0,this.privInTurn=!1,this.privTextOffset=0,this.privNextSearchTextIndex=0,this.privSentenceOffset=0,this.privNextSearchSentenceIndex=0,this.privRequestId=E(),this.privTurnDeferral=new T,this.privTurnDeferral.resolve()}get requestId(){return this.privRequestId}get streamId(){return this.privStreamId}set streamId(e){this.privStreamId=e}get audioOutputFormat(){return this.privAudioOutputFormat}set audioOutputFormat(e){this.privAudioOutputFormat=e}get turnCompletionPromise(){return this.privTurnDeferral.promise}get isSynthesisEnded(){return this.privIsSynthesisEnded}get isSynthesizing(){return this.privIsSynthesizing}get currentTextOffset(){return this.privTextOffset}get currentSentenceOffset(){return this.privSentenceOffset}get bytesReceived(){return this.privBytesReceived}get audioDuration(){return this.privAudioDuration}getAllReceivedAudio(){return Oe(this,void 0,void 0,function*(){return this.privReceivedAudio?Promise.resolve(this.privReceivedAudio):this.privIsSynthesisEnded?(yield this.readAllAudioFromStream(),Promise.resolve(this.privReceivedAudio)):null})}getAllReceivedAudioWithHeader(){return Oe(this,void 0,void 0,function*(){if(this.privReceivedAudioWithHeader)return this.privReceivedAudioWithHeader;if(!this.privIsSynthesisEnded)return null;if(this.audioOutputFormat.hasHeader){const e=yield this.getAllReceivedAudio();return this.privReceivedAudioWithHeader=Se.addHeader(e,this.audioOutputFormat),this.privReceivedAudioWithHeader}else return this.getAllReceivedAudio()})}startNewSynthesis(e,t,r,n){this.privIsSynthesisEnded=!1,this.privIsSynthesizing=!0,this.privRequestId=e,this.privRawText=t,this.privIsSSML=r,this.privAudioOutputStream=new Ze,this.privAudioOutputStream.format=this.privAudioOutputFormat,this.privReceivedAudio=null,this.privReceivedAudioWithHeader=null,this.privBytesReceived=0,this.privTextOffset=0,this.privNextSearchTextIndex=0,this.privSentenceOffset=0,this.privNextSearchSentenceIndex=0,this.privPartialVisemeAnimation="",n!==void 0&&(this.privTurnAudioDestination=n,this.privTurnAudioDestination.format=this.privAudioOutputFormat),this.onEvent(new Ki(this.requestId,void 0,n===void 0?void 0:n.id()))}onPreConnectionStart(e){this.privAuthFetchEventId=e,this.onEvent(new Ui(this.privRequestId,this.privAuthFetchEventId))}onAuthCompleted(e){e&&this.onComplete()}onConnectionEstablishCompleted(e){if(e===200){this.onEvent(new Wi(this.requestId,this.privAuthFetchEventId)),this.privBytesReceived=0;return}else e===403&&this.onComplete()}onServiceResponseMessage(e){const t=JSON.parse(e);this.streamId=t.audio.streamId}onServiceTurnEndResponse(){this.privInTurn=!1,this.privTurnDeferral.resolve(),this.onComplete()}onServiceTurnStartResponse(){!!this.privTurnDeferral&&!!this.privInTurn&&(this.privTurnDeferral.reject("Another turn started before current completed."),this.privTurnDeferral.promise.then().catch(()=>{})),this.privInTurn=!0,this.privTurnDeferral=new T}onAudioChunkReceived(e){this.isSynthesizing&&(this.privAudioOutputStream.write(e),this.privBytesReceived+=e.byteLength,this.privTurnAudioDestination!==void 0&&this.privTurnAudioDestination.write(e))}onTextBoundaryEvent(e){this.updateTextOffset(e.Data.text.Text,e.Type)}onVisemeMetadataReceived(e){e.Data.AnimationChunk!==void 0&&(this.privPartialVisemeAnimation+=e.Data.AnimationChunk)}onSessionEnd(e){this.privAudioDuration=e.Data.Offset}dispose(){this.privIsDisposed||(this.privIsDisposed=!0)}onStopSynthesizing(){this.onComplete()}getAndClearVisemeAnimation(){const e=this.privPartialVisemeAnimation;return this.privPartialVisemeAnimation="",e}onEvent(e){M.instance.onEvent(e)}static isXmlTag(e){return e.length>=2&&e[0]==="<"&&e[e.length-1]===">"}updateTextOffset(e,t){t===U.WordBoundary?(this.privTextOffset=this.privRawText.indexOf(e,this.privNextSearchTextIndex),this.privTextOffset>=0&&(this.privNextSearchTextIndex=this.privTextOffset+e.length,this.privIsSSML&&this.withinXmlTag(this.privTextOffset)&&!Ie.isXmlTag(e)&&this.updateTextOffset(e,t))):(this.privSentenceOffset=this.privRawText.indexOf(e,this.privNextSearchSentenceIndex),this.privSentenceOffset>=0&&(this.privNextSearchSentenceIndex=this.privSentenceOffset+e.length,this.privIsSSML&&this.withinXmlTag(this.privSentenceOffset)&&!Ie.isXmlTag(e)&&this.updateTextOffset(e,t)))}onComplete(){this.privIsSynthesizing&&(this.privIsSynthesizing=!1,this.privIsSynthesisEnded=!0,this.privAudioOutputStream.close(),this.privInTurn=!1,this.privTurnAudioDestination!==void 0&&(this.privTurnAudioDestination.close(),this.privTurnAudioDestination=void 0))}readAllAudioFromStream(){return Oe(this,void 0,void 0,function*(){if(this.privIsSynthesisEnded){this.privReceivedAudio=new ArrayBuffer(this.bytesReceived);try{yield this.privAudioOutputStream.read(this.privReceivedAudio)}catch{this.privReceivedAudio=new ArrayBuffer(0)}}})}withinXmlTag(e){return this.privRawText.indexOf("<",e+1)>this.privRawText.indexOf(">",e+1)}}class Hi{constructor(e){this.privContext={},this.privSpeechSynthesizer=e}setSection(e,t){this.privContext[e]=t}set audioOutputFormat(e){this.privAudioOutputFormat=e}toJSON(){const e=this.buildSynthesisContext();return this.setSection("synthesis",e),JSON.stringify(this.privContext)}buildSynthesisContext(){return{audio:{metadataOptions:{bookmarkEnabled:!!this.privSpeechSynthesizer.bookmarkReached,punctuationBoundaryEnabled:this.privSpeechSynthesizer.properties.getProperty(d.SpeechServiceResponse_RequestPunctuationBoundary,!!this.privSpeechSynthesizer.wordBoundary),sentenceBoundaryEnabled:this.privSpeechSynthesizer.properties.getProperty(d.SpeechServiceResponse_RequestSentenceBoundary,!1),sessionEndEnabled:!0,visemeEnabled:!!this.privSpeechSynthesizer.visemeReceived,wordBoundaryEnabled:this.privSpeechSynthesizer.properties.getProperty(d.SpeechServiceResponse_RequestWordBoundary,!!this.privSpeechSynthesizer.wordBoundary)},outputFormat:this.privAudioOutputFormat.requestAudioFormatString},language:{autoDetection:this.privSpeechSynthesizer.autoDetectSourceLanguage}}}}const de="OutputFormat",_t="CancellationErrorCode",je="ServiceProperties",Nt="ForceDictation";var Ce=globalThis&&globalThis.__awaiter||function(i,e,t,r){function n(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function h(c){try{a(r.next(c))}catch(p){o(p)}}function u(c){try{a(r.throw(c))}catch(p){o(p)}}function a(c){c.done?s(c.value):n(c.value).then(h,u)}a((r=r.apply(i,e||[])).next())})};const Vi="MICROPHONE-WorkletSourceUrl";class N{constructor(e,t,r,n){this.privRecorder=e,this.deviceId=t,this.privStreams={},this.privOutputChunkSize=N.AUDIOFORMAT.avgBytesPerSec/10,this.privId=r||E(),this.privEvents=new K,this.privMediaStream=n||null,this.privIsClosing=!1}get format(){return Promise.resolve(N.AUDIOFORMAT)}get blob(){return Promise.reject("Not implemented for Mic input")}turnOn(){if(this.privInitializeDeferral)return this.privInitializeDeferral.promise;this.privInitializeDeferral=new T;try{this.createAudioContext()}catch(r){if(r instanceof Error){const n=r;this.privInitializeDeferral.reject(n.name+": "+n.message)}else this.privInitializeDeferral.reject(r);return this.privInitializeDeferral.promise}const e=window.navigator;let t=e.getUserMedia||e.webkitGetUserMedia||e.mozGetUserMedia||e.msGetUserMedia;if(e.mediaDevices&&(t=(r,n,s)=>{e.mediaDevices.getUserMedia(r).then(n).catch(s)}),t){const r=()=>{this.onEvent(new Me(this.privId)),this.privMediaStream&&this.privMediaStream.active?(this.onEvent(new ue(this.privId)),this.privInitializeDeferral.resolve()):t({audio:this.deviceId?{deviceId:this.deviceId}:!0,video:!1},n=>{this.privMediaStream=n,this.onEvent(new ue(this.privId)),this.privInitializeDeferral.resolve()},n=>{const s=`Error occurred during microphone initialization: ${n}`;this.privInitializeDeferral.reject(s),this.onEvent(new Re(this.privId,s))})};this.privContext.state==="suspended"?this.privContext.resume().then(r).catch(n=>{this.privInitializeDeferral.reject(`Failed to initialize audio context: ${n}`)}):r()}else{const r="Browser does not support getUserMedia.";this.privInitializeDeferral.reject(r),this.onEvent(new Re(r,""))}return this.privInitializeDeferral.promise}id(){return this.privId}attach(e){return this.onEvent(new fe(this.privId,e)),this.listen(e).then(t=>(this.onEvent(new le(this.privId,e)),{detach:()=>Ce(this,void 0,void 0,function*(){return t.readEnded(),delete this.privStreams[e],this.onEvent(new V(this.privId,e)),this.turnOff()}),id:()=>e,read:()=>t.read()}))}detach(e){e&&this.privStreams[e]&&(this.privStreams[e].close(),delete this.privStreams[e],this.onEvent(new V(this.privId,e)))}turnOff(){return Ce(this,void 0,void 0,function*(){for(const e in this.privStreams)if(e){const t=this.privStreams[e];t&&t.close()}this.onEvent(new yt(this.privId)),this.privInitializeDeferral&&(yield this.privInitializeDeferral,this.privInitializeDeferral=null),yield this.destroyAudioContext()})}get events(){return this.privEvents}get deviceInfo(){return this.getMicrophoneLabel().then(e=>({bitspersample:N.AUDIOFORMAT.bitsPerSample,channelcount:N.AUDIOFORMAT.channels,connectivity:ie.Unknown,manufacturer:"Speech SDK",model:e,samplerate:N.AUDIOFORMAT.samplesPerSec,type:G.Microphones}))}setProperty(e,t){if(e===Vi)this.privRecorder.setWorkletUrl(t);else throw new Error("Property '"+e+"' is not supported on Microphone.")}getMicrophoneLabel(){const e="microphone";if(this.privMicrophoneLabel!==void 0)return Promise.resolve(this.privMicrophoneLabel);if(this.privMediaStream===void 0||!this.privMediaStream.active)return Promise.resolve(e);this.privMicrophoneLabel=e;const t=this.privMediaStream.getTracks()[0].getSettings().deviceId;if(t===void 0)return Promise.resolve(this.privMicrophoneLabel);const r=new T;return navigator.mediaDevices.enumerateDevices().then(n=>{for(const s of n)if(s.deviceId===t){this.privMicrophoneLabel=s.label;break}r.resolve(this.privMicrophoneLabel)},()=>r.resolve(this.privMicrophoneLabel)),r.promise}listen(e){return Ce(this,void 0,void 0,function*(){yield this.turnOn();const t=new Ge(this.privOutputChunkSize,e);this.privStreams[e]=t;try{this.privRecorder.record(this.privContext,this.privMediaStream,t)}catch(n){throw this.onEvent(new $e(this.privId,e,n)),n}return t})}onEvent(e){this.privEvents.onEvent(e),M.instance.onEvent(e)}createAudioContext(){this.privContext||(this.privContext=$.getAudioContext(N.AUDIOFORMAT.samplesPerSec))}destroyAudioContext(){return Ce(this,void 0,void 0,function*(){if(!this.privContext)return;this.privRecorder.releaseMediaResources(this.privContext);let e=!1;"close"in this.privContext&&(e=!0),e?this.privIsClosing||(this.privIsClosing=!0,yield this.privContext.close(),this.privContext=null,this.privIsClosing=!1):this.privContext!==null&&this.privContext.state==="running"&&(yield this.privContext.suspend())})}}N.AUDIOFORMAT=ze.getDefaultInputFormat();var _e=globalThis&&globalThis.__awaiter||function(i,e,t,r){function n(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function h(c){try{a(r.next(c))}catch(p){o(p)}}function u(c){try{a(r.throw(c))}catch(p){o(p)}}function a(c){c.done?s(c.value):n(c.value).then(h,u)}a((r=r.apply(i,e||[])).next())})};class ji{constructor(e,t,r){this.privStreams={},this.privHeaderEnd=44,this.privId=r||E(),this.privEvents=new K,this.privSource=e,typeof window!="undefined"&&typeof Blob!="undefined"&&this.privSource instanceof Blob?this.privFilename=e.name:this.privFilename=t||"unknown.wav",this.privAudioFormatPromise=this.readHeader()}get format(){return this.privAudioFormatPromise}get blob(){return Promise.resolve(this.privSource)}turnOn(){if(this.privFilename.lastIndexOf(".wav")!==this.privFilename.length-4){const e=this.privFilename+" is not supported. Only WAVE files are allowed at the moment.";return this.onEvent(new Re(e,"")),Promise.reject(e)}this.onEvent(new Me(this.privId)),this.onEvent(new ue(this.privId))}id(){return this.privId}attach(e){return _e(this,void 0,void 0,function*(){this.onEvent(new fe(this.privId,e));const t=yield this.upload(e);return this.onEvent(new le(this.privId,e)),Promise.resolve({detach:()=>_e(this,void 0,void 0,function*(){t.readEnded(),delete this.privStreams[e],this.onEvent(new V(this.privId,e)),yield this.turnOff()}),id:()=>e,read:()=>t.read()})})}detach(e){e&&this.privStreams[e]&&(this.privStreams[e].close(),delete this.privStreams[e],this.onEvent(new V(this.privId,e)))}turnOff(){for(const e in this.privStreams)if(e){const t=this.privStreams[e];t&&!t.isClosed&&t.close()}return this.onEvent(new yt(this.privId)),Promise.resolve()}get events(){return this.privEvents}get deviceInfo(){return this.privAudioFormatPromise.then(e=>Promise.resolve({bitspersample:e.bitsPerSample,channelcount:e.channels,connectivity:ie.Unknown,manufacturer:"Speech SDK",model:"File",samplerate:e.samplesPerSec,type:G.File}))}readHeader(){const t=this.privSource.slice(0,512),r=new T,n=s=>{const o=new DataView(s),h=J=>String.fromCharCode(o.getUint8(J),o.getUint8(J+1),o.getUint8(J+2),o.getUint8(J+3));if(h(0)!=="RIFF"){r.reject("Invalid WAV header in file, RIFF was not found");return}if(h(8)!=="WAVE"||h(12)!=="fmt "){r.reject("Invalid WAV header in file, WAVEfmt was not found");return}const u=o.getInt32(16,!0),a=o.getUint16(22,!0),c=o.getUint32(24,!0),p=o.getUint16(34,!0);let L=36+Math.max(u-16,0);for(;h(L)!=="data";L+=2)if(L>512-8){r.reject("Invalid WAV header in file, data block was not found");return}this.privHeaderEnd=L+8,r.resolve(ze.getWaveFormatPCM(c,p,a))};if(typeof window!="undefined"&&typeof Blob!="undefined"&&t instanceof Blob){const s=new FileReader;s.onload=o=>{const h=o.target.result;n(h)},s.readAsArrayBuffer(t)}else{const s=t;n(s.buffer.slice(s.byteOffset,s.byteOffset+s.byteLength))}return r.promise}upload(e){return _e(this,void 0,void 0,function*(){const t=r=>{const n=`Error occurred while processing '${this.privFilename}'. ${r}`;throw this.onEvent(new $e(this.privId,e,n)),new Error(n)};try{yield this.turnOn();const r=yield this.privAudioFormatPromise,n=new Ge(r.avgBytesPerSec/10,e);this.privStreams[e]=n;const s=this.privSource.slice(this.privHeaderEnd),o=h=>{n.isClosed||(n.writeStreamChunk({buffer:h,isEnd:!1,timeReceived:Date.now()}),n.close())};if(typeof window!="undefined"&&typeof Blob!="undefined"&&s instanceof Blob){const h=new FileReader;h.onerror=u=>t(u.toString()),h.onload=u=>{const a=u.target.result;o(a)},h.readAsArrayBuffer(s)}else{const h=s;o(h.buffer.slice(h.byteOffset,h.byteOffset+h.byteLength))}return n}catch(r){t(r)}})}onEvent(e){this.privEvents.onEvent(e),M.instance.onEvent(e)}}class Ne{constructor(e){this.privStopInputOnRelease=e}record(e,t,r){const s=new Qt(e.sampleRate,16e3),o=e.createMediaStreamSource(t),h=()=>{const u=(()=>{let a=0;try{return e.createScriptProcessor(a,1,1)}catch{a=2048;let p=e.sampleRate;for(;a<16384&&p>=32e3;)a<<=1,p>>=1;return e.createScriptProcessor(a,1,1)}})();u.onaudioprocess=a=>{const c=a.inputBuffer.getChannelData(0);if(r&&!r.isClosed){const p=s.encode(c);p&&r.writeStreamChunk({buffer:p,isEnd:!1,timeReceived:Date.now()})}},o.connect(u),u.connect(e.destination),this.privMediaResources={scriptProcessorNode:u,source:o,stream:t}};if(e.audioWorklet){if(!this.privSpeechProcessorScript){const u=`class SP extends AudioWorkletProcessor { + constructor(options) { + super(options); + } + process(inputs, outputs) { + const input = inputs[0]; + const output = []; + for (let channel = 0; channel < input.length; channel += 1) { + output[channel] = input[channel]; + } + this.port.postMessage(output[0]); + return true; + } + } + registerProcessor('speech-processor', SP);`,a=new Blob([u],{type:"application/javascript; charset=utf-8"});this.privSpeechProcessorScript=URL.createObjectURL(a)}e.audioWorklet.addModule(this.privSpeechProcessorScript).then(()=>{const u=new AudioWorkletNode(e,"speech-processor");u.port.onmessage=a=>{const c=a.data;if(r&&!r.isClosed){const p=s.encode(c);p&&r.writeStreamChunk({buffer:p,isEnd:!1,timeReceived:Date.now()})}},o.connect(u),u.connect(e.destination),this.privMediaResources={scriptProcessorNode:u,source:o,stream:t}}).catch(()=>{h()})}else try{h()}catch(u){throw new Error(`Unable to start audio worklet node for PCMRecorder: ${u}`)}}releaseMediaResources(e){this.privMediaResources&&(this.privMediaResources.scriptProcessorNode&&(this.privMediaResources.scriptProcessorNode.disconnect(e.destination),this.privMediaResources.scriptProcessorNode=null),this.privMediaResources.source&&(this.privMediaResources.source.disconnect(),this.privStopInputOnRelease&&this.privMediaResources.stream.getTracks().forEach(t=>t.stop()),this.privMediaResources.source=null))}setWorkletUrl(e){this.privSpeechProcessorScript=e}}var se=globalThis&&globalThis.__awaiter||function(i,e,t,r){function n(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function h(c){try{a(r.next(c))}catch(p){o(p)}}function u(c){try{a(r.throw(c))}catch(p){o(p)}}function a(c){c.done?s(c.value):n(c.value).then(h,u)}a((r=r.apply(i,e||[])).next())})};class R{constructor(e){e&&(this.privProxyInfo=e),R.privDiskCache||(R.privDiskCache=new be("microsoft-cognitiveservices-speech-sdk-cache",{supportBuffer:!0,location:typeof process!="undefined"&&!!{}.SPEECH_OCSP_CACHE_ROOT?{}.SPEECH_OCSP_CACHE_ROOT:void 0}))}static forceReinitDiskCache(){R.privDiskCache=void 0,R.privMemCache={}}GetAgent(e){const t=new be.Agent(this.CreateConnection);if(this.privProxyInfo!==void 0&&this.privProxyInfo.HostName!==void 0&&this.privProxyInfo.Port>0){const r="privProxyInfo";t[r]=this.privProxyInfo}return t}static GetProxyAgent(e){const t={host:e.HostName,port:e.Port};return e.UserName?t.headers={"Proxy-Authentication":"Basic "+new Buffer(`${e.UserName}:${e.Password===void 0?"":e.Password}`).toString("base64")}:t.headers={},t.headers.requestOCSP="true",new be(t)}static OCSPCheck(e,t){return se(this,void 0,void 0,function*(){let r,n,s=!1;const o=yield e;o.cork();const h=o;return new Promise((u,a)=>{o.on("OCSPResponse",c=>{c&&(this.onEvent(new si),n=c)}),o.on("error",c=>{s||(s=!0,o.destroy(),a(c))}),h.on("secure",()=>se(this,void 0,void 0,function*(){const c=h.getPeerCertificate(!0);try{const p=yield this.GetIssuer(c);r=(void 0)(c.raw,p.raw);const L=r.id.toString("hex");n||(n=yield R.GetResponseFromCache(L,r,t)),yield this.VerifyOCSPResponse(n,r,t),o.uncork(),s=!0,u(o)}catch(p){o.destroy(),s=!0,a(p)}}))})})}static GetIssuer(e){return e.issuerCertificate?Promise.resolve(e.issuerCertificate):new Promise((t,r)=>{new(void 0)({}).fetchIssuer(e,null,(s,o)=>{if(s){r(s);return}t(o)})})}static GetResponseFromCache(e,t,r){return se(this,void 0,void 0,function*(){let n=R.privMemCache[e];if(n&&this.onEvent(new Zt(e)),!n)try{const s=yield R.privDiskCache.get(e);s.isCached&&(R.onEvent(new ei(e)),R.StoreMemoryCacheEntry(e,s.value),n=s.value)}catch{n=null}if(!n)return n;try{const h=(void 0)(n).value.tbsResponseData;if(h.responses.length<1){this.onEvent(new ht(e,"Not enough data in cached response"));return}const u=h.responses[0].thisUpdate,a=h.responses[0].nextUpdate;if(a{this.onEvent(new pi(e,p.toString()))})):this.onEvent(new ai(e,u,a))}}catch(s){this.onEvent(new ht(e,s)),n=null}return n||this.onEvent(new Yt(e)),n})}static VerifyOCSPResponse(e,t,r){return se(this,void 0,void 0,function*(){let n=e;return n||(n=yield R.GetOCSPResponse(t,r)),new Promise((s,o)=>{(void 0)({request:t,response:n},h=>{h?(R.onEvent(new hi(t.id.toString("hex"),h)),e?this.VerifyOCSPResponse(null,t,r).then(()=>{s()},u=>{o(u)}):o(h)):(e||R.StoreCacheEntry(t.id.toString("hex"),n),s())})})})}static UpdateCache(e,t){return se(this,void 0,void 0,function*(){const r=e.id.toString("hex");this.onEvent(new ti(r));const n=yield this.GetOCSPResponse(e,t);this.StoreCacheEntry(r,n),this.onEvent(new ni(e.id.toString("hex")))})}static StoreCacheEntry(e,t){this.StoreMemoryCacheEntry(e,t),this.StoreDiskCacheEntry(e,t)}static StoreMemoryCacheEntry(e,t){this.privMemCache[e]=t,this.onEvent(new ii(e))}static StoreDiskCacheEntry(e,t){this.privDiskCache.set(e,t).then(()=>{this.onEvent(new ri(e))})}static GetOCSPResponse(e,t){const r="1.3.6.1.5.5.7.48.1";let n={};if(t){const s=R.GetProxyAgent(t);n.agent=s}return new Promise((s,o)=>{(void 0)(e.cert,r,(h,u)=>{if(h){o(h);return}const a=new URL(u);n=Object.assign(Object.assign({},n),{host:a.host,protocol:a.protocol,port:a.port,path:a.pathname,hostname:a.host}),(void 0)(n,e.data,(c,p)=>{if(c){o(c);return}const L=e.certID;this.onEvent(new ui(L.toString("hex"))),s(p)})})})}static onEvent(e){M.instance.onEvent(e)}CreateConnection(e,t){const r=typeof process!="undefined"&&{}.NODE_TLS_REJECT_UNAUTHORIZED!=="0"&&{}.SPEECH_CONDUCT_OCSP_CHECK!=="0"&&t.secureEndpoint;let n;if(t=Object.assign(Object.assign({},t),{requestOCSP:!R.forceDisableOCSPStapling,servername:t.host}),this.privProxyInfo){const o=R.GetProxyAgent(this.privProxyInfo);n=new Promise((h,u)=>{o.callback(e,t,(a,c)=>{a?u(a):h(c)})})}else t.secureEndpoint,n=Promise.resolve((void 0)(t));return r?R.OCSPCheck(n,this.privProxyInfo):n}}R.testTimeOffset=0;R.forceDisableOCSPStapling=!1;R.privMemCache={};var mt=globalThis&&globalThis.__awaiter||function(i,e,t,r){function n(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function h(c){try{a(r.next(c))}catch(p){o(p)}}function u(c){try{a(r.throw(c))}catch(p){o(p)}}function a(c){c.done?s(c.value):n(c.value).then(h,u)}a((r=r.apply(i,e||[])).next())})};class xe{constructor(e,t,r,n,s,o){if(!e)throw new I("uri");if(!r)throw new I("messageFormatter");this.proxyInfo=n,this.privConnectionEvents=new K,this.privConnectionId=t,this.privMessageFormatter=r,this.privConnectionState=A.None,this.privUri=e,this.privHeaders=s,this.privEnableCompression=o,this.privHeaders[C.ConnectionId]=this.privConnectionId,this.privLastErrorReceived=""}get state(){return this.privConnectionState}open(){if(this.privConnectionState===A.Disconnected)return Promise.reject(`Cannot open a connection that is in ${this.privConnectionState} state`);if(this.privConnectionEstablishDeferral)return this.privConnectionEstablishDeferral.promise;this.privConnectionEstablishDeferral=new T,this.privCertificateValidatedDeferral=new T,this.privConnectionState=A.Connecting;try{if(typeof WebSocket!="undefined"&&!xe.forceNpmWebSocket)this.privCertificateValidatedDeferral.resolve(),this.privWebsocketClient=new WebSocket(this.privUri);else{const e={headers:this.privHeaders,perMessageDeflate:this.privEnableCompression};this.privCertificateValidatedDeferral.resolve();const t=new R(this.proxyInfo);e.agent=t.GetAgent();let n=new URL(this.privUri).protocol;(n==null?void 0:n.toLocaleLowerCase())==="wss:"?n="https:":(n==null?void 0:n.toLocaleLowerCase())==="ws:"&&(n="http:"),e.agent.protocol=n,this.privWebsocketClient=new be(this.privUri,e)}this.privWebsocketClient.binaryType="arraybuffer",this.privReceivingMessageQueue=new Ee,this.privDisconnectDeferral=new T,this.privSendMessageQueue=new Ee,this.processSendQueue().catch(e=>{M.instance.onEvent(new he(e))})}catch(e){return this.privConnectionEstablishDeferral.resolve(new Be(500,e)),this.privConnectionEstablishDeferral.promise}return this.onEvent(new bt(this.privConnectionId,this.privUri)),this.privWebsocketClient.onopen=()=>{this.privCertificateValidatedDeferral.promise.then(()=>{this.privConnectionState=A.Connected,this.onEvent(new Rt(this.privConnectionId)),this.privConnectionEstablishDeferral.resolve(new Be(200,""))},e=>{this.privConnectionEstablishDeferral.reject(e)})},this.privWebsocketClient.onerror=e=>{this.onEvent(new $t(this.privConnectionId,e.message,e.type)),this.privLastErrorReceived=e.message},this.privWebsocketClient.onclose=e=>{this.privConnectionState===A.Connecting?(this.privConnectionState=A.Disconnected,this.privConnectionEstablishDeferral.resolve(new Be(e.code,e.reason+" "+this.privLastErrorReceived))):(this.privConnectionState=A.Disconnected,this.privWebsocketClient=null,this.onEvent(new Ft(this.privConnectionId,e.code,e.reason))),this.onClose(e.code,e.reason).catch(t=>{M.instance.onEvent(new he(t))})},this.privWebsocketClient.onmessage=e=>{const t=new Date().toISOString();if(this.privConnectionState===A.Connected){const r=new T;if(this.privReceivingMessageQueue.enqueueFromPromise(r.promise),e.data instanceof ArrayBuffer){const n=new Ae(S.Binary,e.data);this.privMessageFormatter.toConnectionMessage(n).then(s=>{this.onEvent(new qe(this.privConnectionId,t,s)),r.resolve(s)},s=>{r.reject(`Invalid binary message format. Error: ${s}`)})}else{const n=new Ae(S.Text,e.data);this.privMessageFormatter.toConnectionMessage(n).then(s=>{this.onEvent(new qe(this.privConnectionId,t,s)),r.resolve(s)},s=>{r.reject(`Invalid text message format. Error: ${s}`)})}}},this.privConnectionEstablishDeferral.promise}send(e){if(this.privConnectionState!==A.Connected)return Promise.reject(`Cannot send on connection that is in ${A[this.privConnectionState]} state`);const t=new T,r=new T;return this.privSendMessageQueue.enqueueFromPromise(r.promise),this.privMessageFormatter.fromConnectionMessage(e).then(n=>{r.resolve({Message:e,RawWebsocketMessage:n,sendStatusDeferral:t})},n=>{r.reject(`Error formatting the message. ${n}`)}),t.promise}read(){return this.privConnectionState!==A.Connected?Promise.reject(`Cannot read on connection that is in ${this.privConnectionState} state`):this.privReceivingMessageQueue.dequeue()}close(e){if(this.privWebsocketClient)this.privConnectionState!==A.Disconnected&&this.privWebsocketClient.close(1e3,e||"Normal closure by client");else return Promise.resolve();return this.privDisconnectDeferral.promise}get events(){return this.privConnectionEvents}sendRawMessage(e){try{if(!e)return Promise.resolve();if(this.onEvent(new Gt(this.privConnectionId,new Date().toISOString(),e.Message)),this.isWebsocketOpen)this.privWebsocketClient.send(e.RawWebsocketMessage.payload);else return Promise.reject("websocket send error: Websocket not ready "+this.privConnectionId+" "+e.Message.id+" "+new Error().stack);return Promise.resolve()}catch(t){return Promise.reject(`websocket send error: ${t}`)}}onClose(e,t){return mt(this,void 0,void 0,function*(){const r=`Connection closed. ${e}: ${t}`;this.privConnectionState=A.Disconnected,this.privDisconnectDeferral.resolve(),yield this.privReceivingMessageQueue.drainAndDispose(()=>{},r),yield this.privSendMessageQueue.drainAndDispose(n=>{n.sendStatusDeferral.reject(r)},r)})}processSendQueue(){return mt(this,void 0,void 0,function*(){for(;;){const t=yield this.privSendMessageQueue.dequeue();if(!t)return;try{yield this.sendRawMessage(t),t.sendStatusDeferral.resolve()}catch(r){t.sendStatusDeferral.reject(r)}}})}onEvent(e){this.privConnectionEvents.onEvent(e),M.instance.onEvent(e)}get isWebsocketOpen(){return this.privWebsocketClient&&this.privWebsocketClient.readyState===this.privWebsocketClient.OPEN}}xe.forceNpmWebSocket=!1;var Fi=globalThis&&globalThis.__awaiter||function(i,e,t,r){function n(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function h(c){try{a(r.next(c))}catch(p){o(p)}}function u(c){try{a(r.throw(c))}catch(p){o(p)}}function a(c){c.done?s(c.value):n(c.value).then(h,u)}a((r=r.apply(i,e||[])).next())})};class $i{constructor(e,t,r,n,s,o=!1,h){if(this.privIsDisposed=!1,!e)throw new I("uri");if(!n)throw new I("messageFormatter");this.privMessageFormatter=n;let u="",a=0;if(t){for(const c in t)if(c){u+=a===0&&e.indexOf("?")===-1?"?":"&";const p=encodeURIComponent(t[c]);u+=`${c}=${p}`,a++}}if(r){for(const c in r)if(c){u+=a===0&&e.indexOf("?")===-1?"?":"&";const p=encodeURIComponent(r[c]);u+=`${c}=${p}`,a++}}this.privUri=e+u,this.privId=h||E(),this.privConnectionMessageAdapter=new xe(this.privUri,this.id,this.privMessageFormatter,s,r,o)}dispose(){return Fi(this,void 0,void 0,function*(){this.privIsDisposed=!0,this.privConnectionMessageAdapter&&(yield this.privConnectionMessageAdapter.close())})}isDisposed(){return this.privIsDisposed}get id(){return this.privId}state(){return this.privConnectionMessageAdapter.state}open(){return this.privConnectionMessageAdapter.open()}send(e){return this.privConnectionMessageAdapter.send(e)}read(){return this.privConnectionMessageAdapter.read()}get events(){return this.privConnectionMessageAdapter.events}}class Ji{constructor(e,t){this.privBuffers=[],this.privReplayOffset=0,this.privLastShrinkOffset=0,this.privBufferStartOffset=0,this.privBufferSerial=0,this.privBufferedBytes=0,this.privReplay=!1,this.privLastChunkAcquiredTime=0,this.privAudioNode=e,this.privBytesPerSecond=t}id(){return this.privAudioNode.id()}read(){if(!!this.privReplay&&this.privBuffers.length!==0){const e=this.privReplayOffset-this.privBufferStartOffset;let t=Math.round(e*this.privBytesPerSecond*1e-7);t%2!==0&&t++;let r=0;for(;r=this.privBuffers[r].chunk.buffer.byteLength;)t-=this.privBuffers[r++].chunk.buffer.byteLength;if(r(e&&e.buffer&&(this.privBuffers.push(new Gi(e,this.privBufferSerial++,this.privBufferedBytes)),this.privBufferedBytes+=e.buffer.byteLength),e))}detach(){return this.privBuffers=void 0,this.privAudioNode.detach()}replay(){this.privBuffers&&this.privBuffers.length!==0&&(this.privReplay=!0,this.privReplayOffset=this.privLastShrinkOffset)}shrinkBuffers(e){if(this.privBuffers===void 0||this.privBuffers.length===0)return;this.privLastShrinkOffset=e;const t=e-this.privBufferStartOffset;let r=Math.round(t*this.privBytesPerSecond*1e-7),n=0;for(;n=this.privBuffers[n].chunk.buffer.byteLength;)r-=this.privBuffers[n++].chunk.buffer.byteLength;this.privBufferStartOffset=Math.round(e-r/this.privBytesPerSecond*1e7),this.privBuffers=this.privBuffers.slice(n)}findTimeAtOffset(e){if(e=r&&e<=n)return t.chunk.timeReceived}return 0}}class Gi{constructor(e,t,r){this.chunk=e,this.serial=t,this.byteOffset=r}}class ot{constructor(e,t,r,n){this.privProxyHostName=e,this.privProxyPort=t,this.privProxyUserName=r,this.privProxyPassword=n}static fromParameters(e){return new ot(e.getProperty(d.SpeechServiceConnection_ProxyHostName),parseInt(e.getProperty(d.SpeechServiceConnection_ProxyPort),10),e.getProperty(d.SpeechServiceConnection_ProxyUserName),e.getProperty(d.SpeechServiceConnection_ProxyPassword))}static fromRecognizerConfig(e){return this.fromParameters(e.parameters)}get HostName(){return this.privProxyHostName}get Port(){return this.privProxyPort}get UserName(){return this.privProxyUserName}get Password(){return this.privProxyPassword}}var Qi=Object.defineProperty,Xi=Object.getOwnPropertyDescriptor,Zi=(i,e,t,r)=>{for(var n=r>1?void 0:r?Xi(e,t):e,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(e,t,n):o(n))||n);return r&&n&&Qi(e,t,n),n};const Yi="westeurope";var oe;let Fe=class extends Wt{constructor(){super(...arguments),this.text="",this.selectedLanguage="de-DE"}onStream(i){const e=zt.fromSubscription(Ht,Yi);e.speechRecognitionLanguage=this.selectedLanguage;const t=re.fromStreamInput(i);oe=new et(e,t),oe.recognizing=this.onRegonitionResult,oe.recognized=this.onRegonitionResult,oe.startContinuousRecognitionAsync()}onRegonitionResult(i,e){this.text=e.result.text}onResult(){oe.stopContinuousRecognitionAsync()}onChange(i){this.selectedLanguage=i.target.value,console.log(i.target.value)}};Fe=Zi([Kt({components:{NavBarBack:Ut}})],Fe);var er=function(){var i=this,e=i.$createElement,t=i._self._c||e;return t("div",{attrs:{id:"microphone"}},[t("div",{attrs:{id:"select"}},[t("h2",[i._v("Select your language:")]),t("select",{staticClass:"custom-select",attrs:{name:"lang"},on:{change:function(r){return i.onChange(r)}}},[t("option",{attrs:{value:"de-DE",selected:""}},[i._v("German")]),t("option",{attrs:{value:"en-US"}},[i._v("English")])])]),t("br"),t("NavBarBack"),t("VueRecordAudio",{attrs:{mode:"press"},on:{stream:i.onStream,result:i.onResult}}),t("p",{staticClass:"is-large"},[i._v(i._s(i.text))])],1)},tr=[];const wt={};var ir=Vt(Fe,er,tr,!1,rr,"273b06f0",null,null);function rr(i){for(let e in wt)this[e]=wt[e]}var sr=function(){return ir.exports}();export{sr as default}; diff --git a/assets/Microphone.ce721c47.css b/assets/Microphone.ce721c47.css new file mode 100644 index 000000000..686811a33 --- /dev/null +++ b/assets/Microphone.ce721c47.css @@ -0,0 +1 @@ +#microphone[data-v-273b06f0]{margin-top:3.25rem}.custom-select[data-v-273b06f0]{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:57px;padding:10px 38px 10px 16px;background-size:10px;transition:border-color .1s ease-in-out,box-shadow .1s ease-in-out;border:1px solid #ddd;border-radius:3px}.custom-select[data-v-273b06f0]:hover{border:1px solid #999}.custom-select[data-v-273b06f0]:focus{border:1px solid #999;box-shadow:0 3px 5px #0003;outline:none}select[data-v-273b06f0]::-ms-expand{display:none}html[data-v-273b06f0]{height:100%;font-size:62.5%}body[data-v-273b06f0]{height:100%;display:flex;align-items:center;justify-content:center;text-align:center;font-family:Source Sans Pro,sans-serif;font-size:1.8rem;color:#333;background:radial-gradient(ellipse at center,#f5f5f5 0%,#ddd 100%)}.custom-select[data-v-273b06f0]{font-family:Source Sans Pro,sans-serif;font-size:1.6rem} diff --git a/assets/index.84cfc13b.js b/assets/index.84cfc13b.js new file mode 100644 index 000000000..b05ffb8e6 --- /dev/null +++ b/assets/index.84cfc13b.js @@ -0,0 +1,1342 @@ +const oE=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerpolicy&&(o.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?o.credentials="include":s.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}};oE();/*! + * Vue.js v2.7.14 + * (c) 2014-2022 Evan You + * Released under the MIT License. + */var un=Object.freeze({}),Le=Array.isArray;function Te(e){return e==null}function G(e){return e!=null}function at(e){return e===!0}function uE(e){return e===!1}function to(e){return typeof e=="string"||typeof e=="number"||typeof e=="symbol"||typeof e=="boolean"}function it(e){return typeof e=="function"}function Pt(e){return e!==null&&typeof e=="object"}var kh=Object.prototype.toString;function cn(e){return kh.call(e)==="[object Object]"}function lE(e){return kh.call(e)==="[object RegExp]"}function ob(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function cd(e){return G(e)&&typeof e.then=="function"&&typeof e.catch=="function"}function cE(e){return e==null?"":Array.isArray(e)||cn(e)&&e.toString===kh?JSON.stringify(e,null,2):String(e)}function Fs(e){var t=parseFloat(e);return isNaN(t)?e:t}function Hn(e,t){for(var n=Object.create(null),r=e.split(","),s=0;s-1)return e.splice(r,1)}}var dE=Object.prototype.hasOwnProperty;function jt(e,t){return dE.call(e,t)}function Jr(e){var t=Object.create(null);return function(r){var s=t[r];return s||(t[r]=e(r))}}var hE=/-(\w)/g,Wr=Jr(function(e){return e.replace(hE,function(t,n){return n?n.toUpperCase():""})}),pE=Jr(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),mE=/\B([A-Z])/g,no=Jr(function(e){return e.replace(mE,"-$1").toLowerCase()});function vE(e,t){function n(r){var s=arguments.length;return s?s>1?e.apply(t,arguments):e.call(t,r):e.call(t)}return n._length=e.length,n}function gE(e,t){return e.bind(t)}var ub=Function.prototype.bind?gE:vE;function fd(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function Je(e,t){for(var n in t)e[n]=t[n];return e}function lb(e){for(var t={},n=0;n0,$h=Ot&&Ot.indexOf("edge/")>0;Ot&&Ot.indexOf("android")>0;var CE=Ot&&/iphone|ipad|ipod|ios/.test(Ot);Ot&&/chrome\/\d+/.test(Ot);Ot&&/phantomjs/.test(Ot);var Ag=Ot&&Ot.match(/firefox\/(\d+)/),dd={}.watch,pb=!1;if(dn)try{var Pg={};Object.defineProperty(Pg,"passive",{get:function(){pb=!0}}),window.addEventListener("test-passive",null,Pg)}catch{}var eu,io=function(){return eu===void 0&&(!dn&&typeof global!="undefined"?eu=global.process&&global.process.env.VUE_ENV==="server":eu=!1),eu},Uu=dn&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function Ba(e){return typeof e=="function"&&/native code/.test(e.toString())}var ro=typeof Symbol!="undefined"&&Ba(Symbol)&&typeof Reflect!="undefined"&&Ba(Reflect.ownKeys),Ls;typeof Set!="undefined"&&Ba(Set)?Ls=Set:Ls=function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(t){return this.set[t]===!0},e.prototype.add=function(t){this.set[t]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var Es=null;function hr(e){e===void 0&&(e=null),e||Es&&Es._scope.off(),Es=e,e&&e._scope.on()}var fn=function(){function e(t,n,r,s,o,c,u,i){this.tag=t,this.data=n,this.children=r,this.text=s,this.elm=o,this.ns=void 0,this.context=c,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=n&&n.key,this.componentOptions=u,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=i,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(e.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),e}(),qr=function(e){e===void 0&&(e="");var t=new fn;return t.text=e,t.isComment=!0,t};function Ia(e){return new fn(void 0,void 0,void 0,String(e))}function hd(e){var t=new fn(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var xE=0,Ou=[],TE=function(){for(var e=0;e0&&(s=Sb(s,"".concat(t||"","_").concat(r)),ws(s[0])&&ws(c)&&(n[o]=Ia(c.text+s[0].text),s.shift()),n.push.apply(n,s)):to(s)?ws(c)?n[o]=Ia(c.text+s):s!==""&&n.push(Ia(s)):ws(s)&&ws(c)?n[o]=Ia(c.text+s.text):(at(e._isVList)&&G(s.tag)&&Te(s.key)&&G(t)&&(s.key="__vlist".concat(t,"_").concat(r,"__")),n.push(s)));return n}function DE(e,t){var n=null,r,s,o,c;if(Le(e)||typeof e=="string")for(n=new Array(e.length),r=0,s=e.length;r0,c=t?!!t.$stable:!o,u=t&&t.$key;if(!t)s={};else{if(t._normalized)return t._normalized;if(c&&r&&r!==un&&u===r.$key&&!o&&!r.$hasNormal)return r;s={};for(var i in t)t[i]&&i[0]!=="$"&&(s[i]=HE(e,n,i,t[i]))}for(var a in n)a in s||(s[a]=WE(n,a));return t&&Object.isExtensible(t)&&(t._normalized=s),lr(s,"$stable",c),lr(s,"$key",u),lr(s,"$hasNormal",o),s}function HE(e,t,n,r){var s=function(){var o=Es;hr(e);var c=arguments.length?r.apply(null,arguments):r({});c=c&&typeof c=="object"&&!Le(c)?[c]:Dh(c);var u=c&&c[0];return hr(o),c&&(!u||c.length===1&&u.isComment&&!Bs(u))?void 0:c};return r.proxy&&Object.defineProperty(t,n,{get:s,enumerable:!0,configurable:!0}),s}function WE(e,t){return function(){return e[t]}}function GE(e){var t=e.$options,n=t.setup;if(n){var r=e._setupContext=YE(e);hr(e),Xa();var s=vr(n,null,[e._props||_b({}),r],e,"setup");if(Qa(),hr(),it(s))t.render=s;else if(Pt(s))if(e._setupState=s,s.__sfc){var c=e._setupProxy={};for(var o in s)o!=="__sfc"&&pd(c,s,o)}else for(var o in s)hb(o)||pd(e,s,o)}}function YE(e){return{get attrs(){if(!e._attrsProxy){var t=e._attrsProxy={};lr(t,"_v_attr_proxy",!0),Wu(t,e.$attrs,un,e,"$attrs")}return e._attrsProxy},get listeners(){if(!e._listenersProxy){var t=e._listenersProxy={};Wu(t,e.$listeners,un,e,"$listeners")}return e._listenersProxy},get slots(){return XE(e)},emit:ub(e.$emit,e),expose:function(t){t&&Object.keys(t).forEach(function(n){return pd(e,t,n)})}}}function Wu(e,t,n,r,s){var o=!1;for(var c in t)c in e?t[c]!==n[c]&&(o=!0):(o=!0,KE(e,c,r,s));for(var c in e)c in t||(o=!0,delete e[c]);return o}function KE(e,t,n,r){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){return n[r][t]}})}function XE(e){return e._slotsProxy||Tb(e._slotsProxy={},e.$scopedSlots),e._slotsProxy}function Tb(e,t){for(var n in t)e[n]=t[n];for(var n in e)n in t||delete e[n]}function QE(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,r=n&&n.context;e.$slots=Ih(t._renderChildren,r),e.$scopedSlots=n?Ms(e.$parent,n.data.scopedSlots,e.$slots):un,e._c=function(o,c,u,i){return Gu(e,o,c,u,i,!1)},e.$createElement=function(o,c,u,i){return Gu(e,o,c,u,i,!0)};var s=n&&n.data;Yr(e,"$attrs",s&&s.attrs||un,null,!0),Yr(e,"$listeners",t._parentListeners||un,null,!0)}var vd=null;function ZE(e){xb(e.prototype),e.prototype.$nextTick=function(t){return Nh(t,this)},e.prototype._render=function(){var t=this,n=t.$options,r=n.render,s=n._parentVnode;s&&t._isMounted&&(t.$scopedSlots=Ms(t.$parent,s.data.scopedSlots,t.$slots,t.$scopedSlots),t._slotsProxy&&Tb(t._slotsProxy,t.$scopedSlots)),t.$vnode=s;var o;try{hr(t),vd=t,o=r.call(t._renderProxy,t.$createElement)}catch(c){Kr(c,t,"render"),o=t._vnode}finally{vd=null,hr()}return Le(o)&&o.length===1&&(o=o[0]),o instanceof fn||(o=qr()),o.parent=s,o}}function Rf(e,t){return(e.__esModule||ro&&e[Symbol.toStringTag]==="Module")&&(e=e.default),Pt(e)?t.extend(e):e}function JE(e,t,n,r,s){var o=qr();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:s},o}function eM(e,t){if(at(e.error)&&G(e.errorComp))return e.errorComp;if(G(e.resolved))return e.resolved;var n=vd;if(n&&G(e.owners)&&e.owners.indexOf(n)===-1&&e.owners.push(n),at(e.loading)&&G(e.loadingComp))return e.loadingComp;if(n&&!G(e.owners)){var r=e.owners=[n],s=!0,o=null,c=null;n.$on("hook:destroyed",function(){return _r(r,n)});var u=function(d){for(var p=0,v=r.length;p1?fd(s):s;for(var o=fd(arguments,1),c='event handler for "'.concat(n,'"'),u=0,i=s.length;udocument.createEvent("Event").timeStamp&&(Sd=function(){return Df.now()})}var yM=function(e,t){if(e.post){if(!t.post)return 1}else if(t.post)return-1;return e.id-t.id};function _M(){Rb=Sd(),zh=!0;var e,t;for(Mi.sort(yM),Na=0;NaNa&&Mi[n].id>e.id;)n--;Mi.splice(n+1,0,e)}bd||(bd=!0,Nh(_M))}}function xM(e){var t=e.$options.provide;if(t){var n=it(t)?t.call(e):t;if(!Pt(n))return;for(var r=EE(e),s=ro?Reflect.ownKeys(n):Object.keys(n),o=0;o-1){if(o&&!jt(s,"default"))c=!1;else if(c===""||c===no(e)){var i=Ug(String,s.type);(i<0||u-1)return this;var r=fd(arguments,1);return r.unshift(this),it(t.install)?t.install.apply(t,r):it(t)&&t.apply(null,r),n.push(t),this}}function tR(e){e.mixin=function(t){return this.options=Xr(this.options,t),this}}function nR(e){e.cid=0;var t=1;e.extend=function(n){n=n||{};var r=this,s=r.cid,o=n._Ctor||(n._Ctor={});if(o[s])return o[s];var c=Xu(n)||Xu(r.options),u=function(a){this._init(a)};return u.prototype=Object.create(r.prototype),u.prototype.constructor=u,u.cid=t++,u.options=Xr(r.options,n),u.super=r,u.options.props&&iR(u),u.options.computed&&rR(u),u.extend=r.extend,u.mixin=r.mixin,u.use=r.use,kl.forEach(function(i){u[i]=r[i]}),c&&(u.options.components[c]=u),u.superOptions=r.options,u.extendOptions=n,u.sealedOptions=Je({},u.options),o[s]=u,u}}function iR(e){var t=e.options.props;for(var n in t)Uh(e.prototype,"_props",n)}function rR(e){var t=e.options.computed;for(var n in t)Ib(e.prototype,n,t[n])}function aR(e){kl.forEach(function(t){e[t]=function(n,r){return r?(t==="component"&&cn(r)&&(r.name=r.name||n,r=this.options._base.extend(r)),t==="directive"&&it(r)&&(r={bind:r,update:r}),this.options[t+"s"][n]=r,r):this.options[t+"s"][n]}})}function Gg(e){return e&&(Xu(e.Ctor.options)||e.tag)}function iu(e,t){return Le(e)?e.indexOf(t)>-1:typeof e=="string"?e.split(",").indexOf(t)>-1:lE(e)?e.test(t):!1}function Yg(e,t){var n=e.cache,r=e.keys,s=e._vnode;for(var o in n){var c=n[o];if(c){var u=c.name;u&&!t(u)&&xd(n,o,r,s)}}}function xd(e,t,n,r){var s=e[t];s&&(!r||s.tag!==r.tag)&&s.componentInstance.$destroy(),e[t]=null,_r(n,t)}var Kg=[String,RegExp,Array],sR={name:"keep-alive",abstract:!0,props:{include:Kg,exclude:Kg,max:[String,Number]},methods:{cacheVNode:function(){var e=this,t=e.cache,n=e.keys,r=e.vnodeToCache,s=e.keyToCache;if(r){var o=r.tag,c=r.componentInstance,u=r.componentOptions;t[s]={name:Gg(u),tag:o,componentInstance:c},n.push(s),this.max&&n.length>parseInt(this.max)&&xd(t,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)xd(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",function(t){Yg(e,function(n){return iu(t,n)})}),this.$watch("exclude",function(t){Yg(e,function(n){return!iu(t,n)})})},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=Ab(e),n=t&&t.componentOptions;if(n){var r=Gg(n),s=this,o=s.include,c=s.exclude;if(o&&(!r||!iu(o,r))||c&&r&&iu(c,r))return t;var u=this,i=u.cache,a=u.keys,l=t.key==null?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):t.key;i[l]?(t.componentInstance=i[l].componentInstance,_r(a,l),a.push(l)):(this.vnodeToCache=t,this.keyToCache=l),t.data.keepAlive=!0}return t||e&&e[0]}},oR={KeepAlive:sR};function uR(e){var t={};t.get=function(){return Pn},Object.defineProperty(e,"config",t),e.util={warn:EM,extend:Je,mergeOptions:Xr,defineReactive:Yr},e.set=Mh,e.delete=gb,e.nextTick=Nh,e.observable=function(n){return Fi(n),n},e.options=Object.create(null),kl.forEach(function(n){e.options[n+"s"]=Object.create(null)}),e.options._base=e,Je(e.options.components,oR),eR(e),tR(e),nR(e),aR(e)}uR($e);Object.defineProperty($e.prototype,"$isServer",{get:io});Object.defineProperty($e.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}});Object.defineProperty($e,"FunctionalRenderContext",{value:jh});$e.version=sM;var lR=Hn("style,class"),cR=Hn("input,textarea,option,select,progress"),fR=function(e,t,n){return n==="value"&&cR(e)&&t!=="button"||n==="selected"&&e==="option"||n==="checked"&&e==="input"||n==="muted"&&e==="video"},Nb=Hn("contenteditable,draggable,spellcheck"),dR=Hn("events,caret,typing,plaintext-only"),hR=function(e,t){return Zu(t)||t==="false"?"false":e==="contenteditable"&&dR(t)?t:"true"},pR=Hn("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Td="http://www.w3.org/1999/xlink",Wh=function(e){return e.charAt(5)===":"&&e.slice(0,5)==="xlink"},Fb=function(e){return Wh(e)?e.slice(6,e.length):""},Zu=function(e){return e==null||e===!1};function mR(e){for(var t=e.data,n=e,r=e;G(r.componentInstance);)r=r.componentInstance._vnode,r&&r.data&&(t=Xg(r.data,t));for(;G(n=n.parent);)n&&n.data&&(t=Xg(t,n.data));return vR(t.staticClass,t.class)}function Xg(e,t){return{staticClass:Gh(e.staticClass,t.staticClass),class:G(e.class)?[e.class,t.class]:t.class}}function vR(e,t){return G(e)||G(t)?Gh(e,Yh(t)):""}function Gh(e,t){return e?t?e+" "+t:e:t||""}function Yh(e){return Array.isArray(e)?gR(e):Pt(e)?yR(e):typeof e=="string"?e:""}function gR(e){for(var t="",n,r=0,s=e.length;r-1?ru[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:ru[e]=/HTMLUnknownElement/.test(t.toString())}var Ad=Hn("text,number,password,search,email,tel,url");function CR(e){if(typeof e=="string"){var t=document.querySelector(e);return t||document.createElement("div")}else return e}function xR(e,t){var n=document.createElement(e);return e!=="select"||t.data&&t.data.attrs&&t.data.attrs.multiple!==void 0&&n.setAttribute("multiple","multiple"),n}function TR(e,t){return document.createElementNS(_R[e],t)}function AR(e){return document.createTextNode(e)}function PR(e){return document.createComment(e)}function OR(e,t,n){e.insertBefore(t,n)}function kR(e,t){e.removeChild(t)}function $R(e,t){e.appendChild(t)}function ER(e){return e.parentNode}function MR(e){return e.nextSibling}function RR(e){return e.tagName}function DR(e,t){e.textContent=t}function IR(e,t){e.setAttribute(t,"")}var NR=Object.freeze({__proto__:null,createElement:xR,createElementNS:TR,createTextNode:AR,createComment:PR,insertBefore:OR,removeChild:kR,appendChild:$R,parentNode:ER,nextSibling:MR,tagName:RR,setTextContent:DR,setStyleScope:IR}),FR={create:function(e,t){Fa(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Fa(e,!0),Fa(t))},destroy:function(e){Fa(e,!0)}};function Fa(e,t){var n=e.data.ref;if(!!G(n)){var r=e.context,s=e.componentInstance||e.elm,o=t?null:s,c=t?void 0:s;if(it(n)){vr(n,r,[o],r,"template ref function");return}var u=e.data.refInFor,i=typeof n=="string"||typeof n=="number",a=si(n),l=r.$refs;if(i||a){if(u){var d=i?l[n]:n.value;t?Le(d)&&_r(d,s):Le(d)?d.includes(s)||d.push(s):i?(l[n]=[s],Qg(r,n,l[n])):n.value=[s]}else if(i){if(t&&l[n]!==s)return;l[n]=c,Qg(r,n,o)}else if(a){if(t&&n.value!==s)return;n.value=o}}}}function Qg(e,t,n){var r=e._setupState;r&&jt(r,t)&&(si(r[t])?r[t].value=n:r[t]=n)}var ur=new fn("",{},[]),Cs=["create","activate","update","remove","destroy"];function Br(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&G(e.data)===G(t.data)&&LR(e,t)||at(e.isAsyncPlaceholder)&&Te(t.asyncFactory.error))}function LR(e,t){if(e.tag!=="input")return!0;var n,r=G(n=e.data)&&G(n=n.attrs)&&n.type,s=G(n=t.data)&&G(n=n.attrs)&&n.type;return r===s||Ad(r)&&Ad(s)}function BR(e,t,n){var r,s,o={};for(r=t;r<=n;++r)s=e[r].key,G(s)&&(o[s]=r);return o}function zR(e){var t,n,r={},s=e.modules,o=e.nodeOps;for(t=0;tpe?(re=Te(I[R+1])?null:I[R+1].elm,T(k,re,I,ce,R,J)):ce>R&&L(O,le,pe)}function P(k,O,I,J){for(var ue=I;ue-1?ty(e,t,n):pR(t)?Zu(n)?e.removeAttribute(t):(n=t==="allowfullscreen"&&e.tagName==="EMBED"?"true":t,e.setAttribute(t,n)):Nb(t)?e.setAttribute(t,hR(t,n)):Wh(t)?Zu(n)?e.removeAttributeNS(Td,Fb(t)):e.setAttributeNS(Td,t,n):ty(e,t,n)}function ty(e,t,n){if(Zu(n))e.removeAttribute(t);else{if(Ya&&!Ka&&e.tagName==="TEXTAREA"&&t==="placeholder"&&n!==""&&!e.__ieph){var r=function(s){s.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var WR={create:Jg,update:Jg};function ny(e,t){var n=t.elm,r=t.data,s=e.data;if(!(Te(r.staticClass)&&Te(r.class)&&(Te(s)||Te(s.staticClass)&&Te(s.class)))){var o=mR(t),c=n._transitionClasses;G(c)&&(o=Gh(o,Yh(c))),o!==n._prevClass&&(n.setAttribute("class",o),n._prevClass=o)}}var GR={create:ny,update:ny},Nf="__r",Ff="__c";function YR(e){if(G(e[Nf])){var t=Ya?"change":"input";e[t]=[].concat(e[Nf],e[t]||[]),delete e[Nf]}G(e[Ff])&&(e.change=[].concat(e[Ff],e.change||[]),delete e[Ff])}var qs;function KR(e,t,n){var r=qs;return function s(){var o=t.apply(null,arguments);o!==null&&Bb(e,s,n,r)}}var XR=gd&&!(Ag&&Number(Ag[1])<=53);function QR(e,t,n,r){if(XR){var s=Rb,o=t;t=o._wrapper=function(c){if(c.target===c.currentTarget||c.timeStamp>=s||c.timeStamp<=0||c.target.ownerDocument!==document)return o.apply(this,arguments)}}qs.addEventListener(e,t,pb?{capture:n,passive:r}:n)}function Bb(e,t,n,r){(r||qs).removeEventListener(e,t._wrapper||t,n)}function Lf(e,t){if(!(Te(e.data.on)&&Te(t.data.on))){var n=t.data.on||{},r=e.data.on||{};qs=t.elm||e.elm,YR(n),bb(n,r,QR,Bb,KR,t.context),qs=void 0}}var ZR={create:Lf,update:Lf,destroy:function(e){return Lf(e,ur)}},au;function iy(e,t){if(!(Te(e.data.domProps)&&Te(t.data.domProps))){var n,r,s=t.elm,o=e.data.domProps||{},c=t.data.domProps||{};(G(c.__ob__)||at(c._v_attr_proxy))&&(c=t.data.domProps=Je({},c));for(n in o)n in c||(s[n]="");for(n in c){if(r=c[n],n==="textContent"||n==="innerHTML"){if(t.children&&(t.children.length=0),r===o[n])continue;s.childNodes.length===1&&s.removeChild(s.childNodes[0])}if(n==="value"&&s.tagName!=="PROGRESS"){s._value=r;var u=Te(r)?"":String(r);JR(s,u)&&(s.value=u)}else if(n==="innerHTML"&&Kh(s.tagName)&&Te(s.innerHTML)){au=au||document.createElement("div"),au.innerHTML="".concat(r,"");for(var i=au.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;i.firstChild;)s.appendChild(i.firstChild)}else if(r!==o[n])try{s[n]=r}catch{}}}}function JR(e,t){return!e.composing&&(e.tagName==="OPTION"||eD(e,t)||tD(e,t))}function eD(e,t){var n=!0;try{n=document.activeElement!==e}catch{}return n&&e.value!==t}function tD(e,t){var n=e.value,r=e._vModifiers;if(G(r)){if(r.number)return Fs(n)!==Fs(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}var nD={create:iy,update:iy},iD=Jr(function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach(function(s){if(s){var o=s.split(r);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t});function Bf(e){var t=zb(e.style);return e.staticStyle?Je(e.staticStyle,t):t}function zb(e){return Array.isArray(e)?lb(e):typeof e=="string"?iD(e):e}function rD(e,t){var n={},r;if(t)for(var s=e;s.componentInstance;)s=s.componentInstance._vnode,s&&s.data&&(r=Bf(s.data))&&Je(n,r);(r=Bf(e.data))&&Je(n,r);for(var o=e;o=o.parent;)o.data&&(r=Bf(o.data))&&Je(n,r);return n}var aD=/^--/,ry=/\s*!important$/,ay=function(e,t,n){if(aD.test(t))e.style.setProperty(t,n);else if(ry.test(n))e.style.setProperty(no(t),n.replace(ry,""),"important");else{var r=sD(t);if(Array.isArray(n))for(var s=0,o=n.length;s-1?t.split(jb).forEach(function(r){return e.classList.add(r)}):e.classList.add(t);else{var n=" ".concat(e.getAttribute("class")||""," ");n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Vb(e,t){if(!(!t||!(t=t.trim())))if(e.classList)t.indexOf(" ")>-1?t.split(jb).forEach(function(s){return e.classList.remove(s)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" ".concat(e.getAttribute("class")||""," "),r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function Ub(e){if(!!e){if(typeof e=="object"){var t={};return e.css!==!1&&Je(t,uy(e.name||"v")),Je(t,e),t}else if(typeof e=="string")return uy(e)}}var uy=Jr(function(e){return{enterClass:"".concat(e,"-enter"),enterToClass:"".concat(e,"-enter-to"),enterActiveClass:"".concat(e,"-enter-active"),leaveClass:"".concat(e,"-leave"),leaveToClass:"".concat(e,"-leave-to"),leaveActiveClass:"".concat(e,"-leave-active")}}),Hb=dn&&!Ka,Ra="transition",zf="animation",Eu="transition",Ju="transitionend",Pd="animation",Wb="animationend";Hb&&(window.ontransitionend===void 0&&window.onwebkittransitionend!==void 0&&(Eu="WebkitTransition",Ju="webkitTransitionEnd"),window.onanimationend===void 0&&window.onwebkitanimationend!==void 0&&(Pd="WebkitAnimation",Wb="webkitAnimationEnd"));var ly=dn?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Gb(e){ly(function(){ly(e)})}function Ur(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),qb(e,t))}function Ri(e,t){e._transitionClasses&&_r(e._transitionClasses,t),Vb(e,t)}function Yb(e,t,n){var r=Kb(e,t),s=r.type,o=r.timeout,c=r.propCount;if(!s)return n();var u=s===Ra?Ju:Wb,i=0,a=function(){e.removeEventListener(u,l),n()},l=function(d){d.target===e&&++i>=c&&a()};setTimeout(function(){i0&&(a=Ra,l=o,d=s.length):t===zf?i>0&&(a=zf,l=i,d=u.length):(l=Math.max(o,i),a=l>0?o>i?Ra:zf:null,d=a?a===Ra?s.length:u.length:0);var p=a===Ra&&uD.test(n[Eu+"Property"]);return{type:a,timeout:l,propCount:d,hasTransform:p}}function cy(e,t){for(;e.length1}function dy(e,t){t.data.show!==!0&&Od(t)}var lD=dn?{create:dy,activate:dy,remove:function(e,t){e.data.show!==!0?Xb(e,t):t()}}:{},cD=[WR,GR,ZR,nD,oD,lD],fD=cD.concat(HR),dD=zR({nodeOps:NR,modules:fD});Ka&&document.addEventListener("selectionchange",function(){var e=document.activeElement;e&&e.vmodel&&Qh(e,"input")});var Zb={inserted:function(e,t,n,r){n.tag==="select"?(r.elm&&!r.elm._vOptions?or(n,"postpatch",function(){Zb.componentUpdated(e,t,n)}):hy(e,t,n.context),e._vOptions=[].map.call(e.options,el)):(n.tag==="textarea"||Ad(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",hD),e.addEventListener("compositionend",vy),e.addEventListener("change",vy),Ka&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if(n.tag==="select"){hy(e,t,n.context);var r=e._vOptions,s=e._vOptions=[].map.call(e.options,el);if(s.some(function(c,u){return!Gr(c,r[u])})){var o=e.multiple?t.value.some(function(c){return my(c,s)}):t.value!==t.oldValue&&my(t.value,s);o&&Qh(e,"change")}}}};function hy(e,t,n){py(e,t),(Ya||$h)&&setTimeout(function(){py(e,t)},0)}function py(e,t,n){var r=t.value,s=e.multiple;if(!(s&&!Array.isArray(r))){for(var o,c,u=0,i=e.options.length;u-1,c.selected!==o&&(c.selected=o);else if(Gr(el(c),r)){e.selectedIndex!==u&&(e.selectedIndex=u);return}s||(e.selectedIndex=-1)}}function my(e,t){return t.every(function(n){return!Gr(n,e)})}function el(e){return"_value"in e?e._value:e.value}function hD(e){e.target.composing=!0}function vy(e){!e.target.composing||(e.target.composing=!1,Qh(e.target,"input"))}function Qh(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function kd(e){return e.componentInstance&&(!e.data||!e.data.transition)?kd(e.componentInstance._vnode):e}var pD={bind:function(e,t,n){var r=t.value;n=kd(n);var s=n.data&&n.data.transition,o=e.__vOriginalDisplay=e.style.display==="none"?"":e.style.display;r&&s?(n.data.show=!0,Od(n,function(){e.style.display=o})):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value,s=t.oldValue;if(!r!=!s){n=kd(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,r?Od(n,function(){e.style.display=e.__vOriginalDisplay}):Xb(n,function(){e.style.display="none"})):e.style.display=r?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,r,s){s||(e.style.display=e.__vOriginalDisplay)}},mD={model:Zb,show:pD},Jb={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function $d(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?$d(Ab(t.children)):e}function e0(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var s=n._parentListeners;for(var r in s)t[Wr(r)]=s[r];return t}function gy(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function vD(e){for(;e=e.parent;)if(e.data.transition)return!0}function gD(e,t){return t.key===e.key&&t.tag===e.tag}var yD=function(e){return e.tag||Bs(e)},_D=function(e){return e.name==="show"},bD={name:"transition",props:Jb,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(!!n&&(n=n.filter(yD),!!n.length)){var r=this.mode,s=n[0];if(vD(this.$vnode))return s;var o=$d(s);if(!o)return s;if(this._leaving)return gy(e,s);var c="__transition-".concat(this._uid,"-");o.key=o.key==null?o.isComment?c+"comment":c+o.tag:to(o.key)?String(o.key).indexOf(c)===0?o.key:c+o.key:o.key;var u=(o.data||(o.data={})).transition=e0(this),i=this._vnode,a=$d(i);if(o.data.directives&&o.data.directives.some(_D)&&(o.data.show=!0),a&&a.data&&!gD(o,a)&&!Bs(a)&&!(a.componentInstance&&a.componentInstance._vnode.isComment)){var l=a.data.transition=Je({},u);if(r==="out-in")return this._leaving=!0,or(l,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),gy(e,s);if(r==="in-out"){if(Bs(o))return i;var d,p=function(){d()};or(u,"afterEnter",p),or(u,"enterCancelled",p),or(l,"delayLeave",function(v){d=v})}}return s}}},t0=Je({tag:String,moveClass:String},Jb);delete t0.mode;var SD={props:t0,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var s=$b(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,s(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,s=this.$slots.default||[],o=this.children=[],c=e0(this),u=0;u1&&arguments[1]!==void 0?arguments[1]:{};t.name=t.name||e._componentTag||e.name;var n=e.prototype;Object.getOwnPropertyNames(n).forEach(function(u){if(u!=="constructor"){if(Ed.indexOf(u)>-1){t[u]=n[u];return}var i=Object.getOwnPropertyDescriptor(n,u);i.value!==void 0?typeof i.value=="function"?(t.methods||(t.methods={}))[u]=i.value:(t.mixins||(t.mixins=[])).push({data:function(){return AD({},u,i.value)}}):(i.get||i.set)&&((t.computed||(t.computed={}))[u]={get:i.get,set:i.set})}}),(t.mixins||(t.mixins=[])).push({data:function(){return ND(this,e)}});var r=e.__decorators__;r&&(r.forEach(function(u){return u(t)}),delete e.__decorators__);var s=Object.getPrototypeOf(e.prototype),o=s instanceof $e?s.constructor:$e,c=o.extend(t);return LD(c,e,o),ED()&&MD(c,e),c}var FD={prototype:!0,arguments:!0,callee:!0,caller:!0};function LD(e,t,n){Object.getOwnPropertyNames(t).forEach(function(r){if(!FD[r]){var s=Object.getOwnPropertyDescriptor(e,r);if(!(s&&!s.configurable)){var o=Object.getOwnPropertyDescriptor(t,r);if(!DD){if(r==="cid")return;var c=Object.getOwnPropertyDescriptor(n,r);if(!ID(o.value)&&c&&c.value===o.value)return}Object.defineProperty(e,r,o)}}})}function Wn(e){return typeof e=="function"?yy(e):function(t){return yy(t,e)}}Wn.registerHooks=function(t){Ed.push.apply(Ed,PD(t))};globalThis&&globalThis.__spreadArrays;function Zh(e){return n0(function(t,n){t.computed=t.computed||{},t.computed[n]={cache:!1,get:function(){return this.$refs[e||n]}}})}function Za(e,t){t===void 0&&(t={});var n=t.deep,r=n===void 0?!1:n,s=t.immediate,o=s===void 0?!1:s;return n0(function(c,u){typeof c.watch!="object"&&(c.watch=Object.create(null));var i=c.watch;typeof i[e]=="object"&&!Array.isArray(i[e])?i[e]=[i[e]]:typeof i[e]=="undefined"&&(i[e]=[]),i[e].push({handler:u,deep:r,immediate:o})})}/*! + * vuex v3.6.2 + * (c) 2021 Evan You + * @license MIT + */function BD(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(s){s===void 0&&(s={}),s.init=s.init?[r].concat(s.init):r,n.call(this,s)}}function r(){var s=this.$options;s.store?this.$store=typeof s.store=="function"?s.store():s.store:s.parent&&s.parent.$store&&(this.$store=s.parent.$store)}}var zD=typeof window!="undefined"?window:typeof global!="undefined"?global:{},ka=zD.__VUE_DEVTOOLS_GLOBAL_HOOK__;function jD(e){!ka||(e._devtoolHook=ka,ka.emit("vuex:init",e),ka.on("vuex:travel-to-state",function(t){e.replaceState(t)}),e.subscribe(function(t,n){ka.emit("vuex:mutation",t,n)},{prepend:!0}),e.subscribeAction(function(t,n){ka.emit("vuex:action",t,n)},{prepend:!0}))}function qD(e,t){return e.filter(t)[0]}function Md(e,t){if(t===void 0&&(t=[]),e===null||typeof e!="object")return e;var n=qD(t,function(s){return s.original===e});if(n)return n.copy;var r=Array.isArray(e)?[]:{};return t.push({original:e,copy:r}),Object.keys(e).forEach(function(s){r[s]=Md(e[s],t)}),r}function Ja(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function i0(e){return e!==null&&typeof e=="object"}function VD(e){return e&&typeof e.then=="function"}function UD(e,t){return function(){return e(t)}}var Gn=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var r=t.state;this.state=(typeof r=="function"?r():r)||{}},r0={namespaced:{configurable:!0}};r0.namespaced.get=function(){return!!this._rawModule.namespaced};Gn.prototype.addChild=function(t,n){this._children[t]=n};Gn.prototype.removeChild=function(t){delete this._children[t]};Gn.prototype.getChild=function(t){return this._children[t]};Gn.prototype.hasChild=function(t){return t in this._children};Gn.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)};Gn.prototype.forEachChild=function(t){Ja(this._children,t)};Gn.prototype.forEachGetter=function(t){this._rawModule.getters&&Ja(this._rawModule.getters,t)};Gn.prototype.forEachAction=function(t){this._rawModule.actions&&Ja(this._rawModule.actions,t)};Gn.prototype.forEachMutation=function(t){this._rawModule.mutations&&Ja(this._rawModule.mutations,t)};Object.defineProperties(Gn.prototype,r0);var ea=function(t){this.register([],t,!1)};ea.prototype.get=function(t){return t.reduce(function(n,r){return n.getChild(r)},this.root)};ea.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(r,s){return n=n.getChild(s),r+(n.namespaced?s+"/":"")},"")};ea.prototype.update=function(t){a0([],this.root,t)};ea.prototype.register=function(t,n,r){var s=this;r===void 0&&(r=!0);var o=new Gn(n,r);if(t.length===0)this.root=o;else{var c=this.get(t.slice(0,-1));c.addChild(t[t.length-1],o)}n.modules&&Ja(n.modules,function(u,i){s.register(t.concat(i),u,r)})};ea.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1],s=n.getChild(r);!s||!s.runtime||n.removeChild(r)};ea.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1];return n?n.hasChild(r):!1};function a0(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return;a0(e.concat(r),t.getChild(r),n.modules[r])}}var Yt,hn=function(t){var n=this;t===void 0&&(t={}),!Yt&&typeof window!="undefined"&&window.Vue&&u0(window.Vue);var r=t.plugins;r===void 0&&(r=[]);var s=t.strict;s===void 0&&(s=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new ea(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new Yt,this._makeLocalGettersCache=Object.create(null);var o=this,c=this,u=c.dispatch,i=c.commit;this.dispatch=function(p,v){return u.call(o,p,v)},this.commit=function(p,v,g){return i.call(o,p,v,g)},this.strict=s;var a=this._modules.root.state;$l(this,a,[],this._modules.root),ep(this,a),r.forEach(function(d){return d(n)});var l=t.devtools!==void 0?t.devtools:Yt.config.devtools;l&&jD(this)},Jh={state:{configurable:!0}};Jh.state.get=function(){return this._vm._data.$$state};Jh.state.set=function(e){};hn.prototype.commit=function(t,n,r){var s=this,o=tl(t,n,r),c=o.type,u=o.payload,i={type:c,payload:u},a=this._mutations[c];!a||(this._withCommit(function(){a.forEach(function(d){d(u)})}),this._subscribers.slice().forEach(function(l){return l(i,s.state)}))};hn.prototype.dispatch=function(t,n){var r=this,s=tl(t,n),o=s.type,c=s.payload,u={type:o,payload:c},i=this._actions[o];if(!!i){try{this._actionSubscribers.slice().filter(function(l){return l.before}).forEach(function(l){return l.before(u,r.state)})}catch{}var a=i.length>1?Promise.all(i.map(function(l){return l(c)})):i[0](c);return new Promise(function(l,d){a.then(function(p){try{r._actionSubscribers.filter(function(v){return v.after}).forEach(function(v){return v.after(u,r.state)})}catch{}l(p)},function(p){try{r._actionSubscribers.filter(function(v){return v.error}).forEach(function(v){return v.error(u,r.state,p)})}catch{}d(p)})})}};hn.prototype.subscribe=function(t,n){return s0(t,this._subscribers,n)};hn.prototype.subscribeAction=function(t,n){var r=typeof t=="function"?{before:t}:t;return s0(r,this._actionSubscribers,n)};hn.prototype.watch=function(t,n,r){var s=this;return this._watcherVM.$watch(function(){return t(s.state,s.getters)},n,r)};hn.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._vm._data.$$state=t})};hn.prototype.registerModule=function(t,n,r){r===void 0&&(r={}),typeof t=="string"&&(t=[t]),this._modules.register(t,n),$l(this,this.state,t,this._modules.get(t),r.preserveState),ep(this,this.state)};hn.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var r=tp(n.state,t.slice(0,-1));Yt.delete(r,t[t.length-1])}),o0(this)};hn.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};hn.prototype.hotUpdate=function(t){this._modules.update(t),o0(this,!0)};hn.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n};Object.defineProperties(hn.prototype,Jh);function s0(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function o0(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;$l(e,n,[],e._modules.root,!0),ep(e,n,t)}function ep(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var s=e._wrappedGetters,o={};Ja(s,function(u,i){o[i]=UD(u,e),Object.defineProperty(e.getters,i,{get:function(){return e._vm[i]},enumerable:!0})});var c=Yt.config.silent;Yt.config.silent=!0,e._vm=new Yt({data:{$$state:t},computed:o}),Yt.config.silent=c,e.strict&&XD(e),r&&(n&&e._withCommit(function(){r._data.$$state=null}),Yt.nextTick(function(){return r.$destroy()}))}function $l(e,t,n,r,s){var o=!n.length,c=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[c],e._modulesNamespaceMap[c]=r),!o&&!s){var u=tp(t,n.slice(0,-1)),i=n[n.length-1];e._withCommit(function(){Yt.set(u,i,r.state)})}var a=r.context=HD(e,c,n);r.forEachMutation(function(l,d){var p=c+d;GD(e,p,l,a)}),r.forEachAction(function(l,d){var p=l.root?d:c+d,v=l.handler||l;YD(e,p,v,a)}),r.forEachGetter(function(l,d){var p=c+d;KD(e,p,l,a)}),r.forEachChild(function(l,d){$l(e,t,n.concat(d),l,s)})}function HD(e,t,n){var r=t==="",s={dispatch:r?e.dispatch:function(o,c,u){var i=tl(o,c,u),a=i.payload,l=i.options,d=i.type;return(!l||!l.root)&&(d=t+d),e.dispatch(d,a)},commit:r?e.commit:function(o,c,u){var i=tl(o,c,u),a=i.payload,l=i.options,d=i.type;(!l||!l.root)&&(d=t+d),e.commit(d,a,l)}};return Object.defineProperties(s,{getters:{get:r?function(){return e.getters}:function(){return WD(e,t)}},state:{get:function(){return tp(e.state,n)}}}),s}function WD(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach(function(s){if(s.slice(0,r)===t){var o=s.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[s]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function GD(e,t,n,r){var s=e._mutations[t]||(e._mutations[t]=[]);s.push(function(c){n.call(e,r.state,c)})}function YD(e,t,n,r){var s=e._actions[t]||(e._actions[t]=[]);s.push(function(c){var u=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},c);return VD(u)||(u=Promise.resolve(u)),e._devtoolHook?u.catch(function(i){throw e._devtoolHook.emit("vuex:error",i),i}):u})}function KD(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(o){return n(r.state,r.getters,o.state,o.getters)})}function XD(e){e._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}function tp(e,t){return t.reduce(function(n,r){return n[r]},e)}function tl(e,t,n){return i0(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function u0(e){Yt&&e===Yt||(Yt=e,BD(Yt))}var l0=Ml(function(e,t){var n={};return El(t).forEach(function(r){var s=r.key,o=r.val;n[s]=function(){var u=this.$store.state,i=this.$store.getters;if(e){var a=Rl(this.$store,"mapState",e);if(!a)return;u=a.context.state,i=a.context.getters}return typeof o=="function"?o.call(this,u,i):u[o]},n[s].vuex=!0}),n}),c0=Ml(function(e,t){var n={};return El(t).forEach(function(r){var s=r.key,o=r.val;n[s]=function(){for(var u=[],i=arguments.length;i--;)u[i]=arguments[i];var a=this.$store.commit;if(e){var l=Rl(this.$store,"mapMutations",e);if(!l)return;a=l.context.commit}return typeof o=="function"?o.apply(this,[a].concat(u)):a.apply(this.$store,[o].concat(u))}}),n}),f0=Ml(function(e,t){var n={};return El(t).forEach(function(r){var s=r.key,o=r.val;o=e+o,n[s]=function(){if(!(e&&!Rl(this.$store,"mapGetters",e)))return this.$store.getters[o]},n[s].vuex=!0}),n}),d0=Ml(function(e,t){var n={};return El(t).forEach(function(r){var s=r.key,o=r.val;n[s]=function(){for(var u=[],i=arguments.length;i--;)u[i]=arguments[i];var a=this.$store.dispatch;if(e){var l=Rl(this.$store,"mapActions",e);if(!l)return;a=l.context.dispatch}return typeof o=="function"?o.apply(this,[a].concat(u)):a.apply(this.$store,[o].concat(u))}}),n}),QD=function(e){return{mapState:l0.bind(null,e),mapGetters:f0.bind(null,e),mapMutations:c0.bind(null,e),mapActions:d0.bind(null,e)}};function El(e){return ZD(e)?Array.isArray(e)?e.map(function(t){return{key:t,val:t}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function ZD(e){return Array.isArray(e)||i0(e)}function Ml(e){return function(t,n){return typeof t!="string"?(n=t,t=""):t.charAt(t.length-1)!=="/"&&(t+="/"),e(t,n)}}function Rl(e,t,n){var r=e._modulesNamespaceMap[n];return r}function JD(e){e===void 0&&(e={});var t=e.collapsed;t===void 0&&(t=!0);var n=e.filter;n===void 0&&(n=function(l,d,p){return!0});var r=e.transformer;r===void 0&&(r=function(l){return l});var s=e.mutationTransformer;s===void 0&&(s=function(l){return l});var o=e.actionFilter;o===void 0&&(o=function(l,d){return!0});var c=e.actionTransformer;c===void 0&&(c=function(l){return l});var u=e.logMutations;u===void 0&&(u=!0);var i=e.logActions;i===void 0&&(i=!0);var a=e.logger;return a===void 0&&(a=console),function(l){var d=Md(l.state);typeof a!="undefined"&&(u&&l.subscribe(function(p,v){var g=Md(v);if(n(p,d,g)){var _=Sy(),b=s(p),C="mutation "+p.type+_;_y(a,C,t),a.log("%c prev state","color: #9E9E9E; font-weight: bold",r(d)),a.log("%c mutation","color: #03A9F4; font-weight: bold",b),a.log("%c next state","color: #4CAF50; font-weight: bold",r(g)),by(a)}d=g}),i&&l.subscribeAction(function(p,v){if(o(p,v)){var g=Sy(),_=c(p),b="action "+p.type+g;_y(a,b,t),a.log("%c action","color: #03A9F4; font-weight: bold",_),by(a)}}))}}function _y(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch{e.log(t)}}function by(e){try{e.groupEnd()}catch{e.log("\u2014\u2014 log end \u2014\u2014")}}function Sy(){var e=new Date;return" @ "+ou(e.getHours(),2)+":"+ou(e.getMinutes(),2)+":"+ou(e.getSeconds(),2)+"."+ou(e.getMilliseconds(),3)}function e2(e,t){return new Array(t+1).join(e)}function ou(e,t){return e2("0",t-e.toString().length)+e}var t2={Store:hn,install:u0,version:"3.6.2",mapState:l0,mapMutations:c0,mapGetters:f0,mapActions:d0,createNamespacedHelpers:QD,createLogger:JD},h0=t2,Da=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function p0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n2=function(t){return i2(t)&&!r2(t)};function i2(e){return!!e&&typeof e=="object"}function r2(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||o2(e)}var a2=typeof Symbol=="function"&&Symbol.for,s2=a2?Symbol.for("react.element"):60103;function o2(e){return e.$$typeof===s2}function u2(e){return Array.isArray(e)?[]:{}}function Vs(e,t){return t.clone!==!1&&t.isMergeableObject(e)?qa(u2(e),e,t):e}function l2(e,t,n){return e.concat(t).map(function(r){return Vs(r,n)})}function c2(e,t){if(!t.customMerge)return qa;var n=t.customMerge(e);return typeof n=="function"?n:qa}function f2(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]}function wy(e){return Object.keys(e).concat(f2(e))}function m0(e,t){try{return t in e}catch{return!1}}function d2(e,t){return m0(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function h2(e,t,n){var r={};return n.isMergeableObject(e)&&wy(e).forEach(function(s){r[s]=Vs(e[s],n)}),wy(t).forEach(function(s){d2(e,s)||(m0(e,s)&&n.isMergeableObject(t[s])?r[s]=c2(s,n)(e[s],t[s],n):r[s]=Vs(t[s],n))}),r}function qa(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||l2,n.isMergeableObject=n.isMergeableObject||n2,n.cloneUnlessOtherwiseSpecified=Vs;var r=Array.isArray(t),s=Array.isArray(e),o=r===s;return o?r?n.arrayMerge(e,t,n):h2(e,t,n):Vs(t,n)}qa.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,s){return qa(r,s,n)},{})};var p2=qa,m2=p2;let Rd;Rd=class{get length(){return Object.keys(this).length}key(e){return Object.keys(this)[e]}setItem(e,t){this[e]=t.toString()}getItem(e){return this[e]}removeItem(e){delete this[e]}clear(){for(let e of Object.keys(this))delete this[e]}};class v2{constructor(){this._queue=[],this._flushing=!1}enqueue(t){return this._queue.push(t),this._flushing?Promise.resolve():this.flushQueue()}flushQueue(){this._flushing=!0;const t=()=>{const n=this._queue.shift();if(n)return n.then(t);this._flushing=!1};return Promise.resolve(t())}}const g2={replaceArrays:{arrayMerge:(e,t,n)=>t},concatArrays:{arrayMerge:(e,t,n)=>e.concat(...t)}};function Ts(e,t,n){return m2(e,t,g2[n])}let As=JSON;class y2{constructor(t){this._mutex=new v2,this.subscriber=r=>s=>r.subscribe(s),typeof t=="undefined"&&(t={}),this.key=t.key!=null?t.key:"vuex",this.subscribed=!1,this.supportCircular=t.supportCircular||!1,this.supportCircular&&(As=require("flatted")),this.mergeOption=t.mergeOption||"replaceArrays";let n=!0;try{window.localStorage.getItem("")}catch{n=!1}if(t.storage)this.storage=t.storage;else if(n)this.storage=window.localStorage;else if(Rd)this.storage=new Rd;else throw new Error("Neither 'window' is defined, nor 'MockStorage' is available");this.reducer=t.reducer!=null?t.reducer:t.modules==null?r=>r:r=>t.modules.reduce((s,o)=>Ts(s,{[o]:r[o]},this.mergeOption),{}),this.filter=t.filter||(r=>!0),this.strictMode=t.strictMode||!1,this.RESTORE_MUTATION=function(s,o){const c=Ts(s,o||{},this.mergeOption);for(const u of Object.keys(c))this._vm.$set(s,u,c[u])},this.asyncStorage=t.asyncStorage||!1,this.asyncStorage?(this.restoreState=t.restoreState!=null?t.restoreState:(r,s)=>s.getItem(r).then(o=>typeof o=="string"?this.supportCircular?As.parse(o||"{}"):JSON.parse(o||"{}"):o||{}),this.saveState=t.saveState!=null?t.saveState:(r,s,o)=>o.setItem(r,this.asyncStorage?Ts({},s||{},this.mergeOption):this.supportCircular?As.stringify(s):JSON.stringify(s)),this.plugin=r=>{r.restored=this.restoreState(this.key,this.storage).then(s=>{this.strictMode?r.commit("RESTORE_MUTATION",s):r.replaceState(Ts(r.state,s||{},this.mergeOption)),this.subscriber(r)((o,c)=>{this.filter(o)&&this._mutex.enqueue(this.saveState(this.key,this.reducer(c),this.storage))}),this.subscribed=!0})}):(this.restoreState=t.restoreState!=null?t.restoreState:(r,s)=>{const o=s.getItem(r);return typeof o=="string"?this.supportCircular?As.parse(o||"{}"):JSON.parse(o||"{}"):o||{}},this.saveState=t.saveState!=null?t.saveState:(r,s,o)=>o.setItem(r,this.supportCircular?As.stringify(s):JSON.stringify(s)),this.plugin=r=>{const s=this.restoreState(this.key,this.storage);this.strictMode?r.commit("RESTORE_MUTATION",s):r.replaceState(Ts(r.state,s||{},this.mergeOption)),this.subscriber(r)((o,c)=>{this.filter(o)&&this.saveState(this.key,this.reducer(c),this.storage)}),this.subscribed=!0})}}var _2=y2,np={exports:{}},v0=function(t,n){return function(){for(var s=new Array(arguments.length),o=0;o=0)return;r==="set-cookie"?n[r]=(n[r]?n[r]:[]).concat([s]):n[r]=n[r]?n[r]+", "+s:s}}),n},xy=pn,Q2=xy.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),r;function s(o){var c=o;return t&&(n.setAttribute("href",c),c=n.href),n.setAttribute("href",c),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(c){var u=xy.isString(c)?s(c):c;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}(),lu=pn,Z2=q2,J2=V2,eI=_0,tI=Y2,nI=X2,iI=Q2,Vf=S0,Ty=function(t){return new Promise(function(r,s){var o=t.data,c=t.headers,u=t.responseType;lu.isFormData(o)&&delete c["Content-Type"];var i=new XMLHttpRequest;if(t.auth){var a=t.auth.username||"",l=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";c.Authorization="Basic "+btoa(a+":"+l)}var d=tI(t.baseURL,t.url);i.open(t.method.toUpperCase(),eI(d,t.params,t.paramsSerializer),!0),i.timeout=t.timeout;function p(){if(!!i){var g="getAllResponseHeaders"in i?nI(i.getAllResponseHeaders()):null,_=!u||u==="text"||u==="json"?i.responseText:i.response,b={data:_,status:i.status,statusText:i.statusText,headers:g,config:t,request:i};Z2(r,s,b),i=null}}if("onloadend"in i?i.onloadend=p:i.onreadystatechange=function(){!i||i.readyState!==4||i.status===0&&!(i.responseURL&&i.responseURL.indexOf("file:")===0)||setTimeout(p)},i.onabort=function(){!i||(s(Vf("Request aborted",t,"ECONNABORTED",i)),i=null)},i.onerror=function(){s(Vf("Network Error",t,null,i)),i=null},i.ontimeout=function(){var _="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(_=t.timeoutErrorMessage),s(Vf(_,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",i)),i=null},lu.isStandardBrowserEnv()){var v=(t.withCredentials||iI(d))&&t.xsrfCookieName?J2.read(t.xsrfCookieName):void 0;v&&(c[t.xsrfHeaderName]=v)}"setRequestHeader"in i&&lu.forEach(c,function(_,b){typeof o=="undefined"&&b.toLowerCase()==="content-type"?delete c[b]:i.setRequestHeader(b,_)}),lu.isUndefined(t.withCredentials)||(i.withCredentials=!!t.withCredentials),u&&u!=="json"&&(i.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&i.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&i.upload&&i.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(_){!i||(i.abort(),s(_),i=null)}),o||(o=null),i.send(o)})},wt=pn,Ay=B2,rI=b0,aI={"Content-Type":"application/x-www-form-urlencoded"};function Py(e,t){!wt.isUndefined(e)&&wt.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function sI(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Ty),e}function oI(e,t,n){if(wt.isString(e))try{return(t||JSON.parse)(e),wt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var Il={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:sI(),transformRequest:[function(t,n){return Ay(n,"Accept"),Ay(n,"Content-Type"),wt.isFormData(t)||wt.isArrayBuffer(t)||wt.isBuffer(t)||wt.isStream(t)||wt.isFile(t)||wt.isBlob(t)?t:wt.isArrayBufferView(t)?t.buffer:wt.isURLSearchParams(t)?(Py(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):wt.isObject(t)||n&&n["Content-Type"]==="application/json"?(Py(n,"application/json"),oI(t)):t}],transformResponse:[function(t){var n=this.transitional,r=n&&n.silentJSONParsing,s=n&&n.forcedJSONParsing,o=!r&&this.responseType==="json";if(o||s&&wt.isString(t)&&t.length)try{return JSON.parse(t)}catch(c){if(o)throw c.name==="SyntaxError"?rI(c,this,"E_JSON_PARSE"):c}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};Il.headers={common:{Accept:"application/json, text/plain, */*"}};wt.forEach(["delete","get","head"],function(t){Il.headers[t]={}});wt.forEach(["post","put","patch"],function(t){Il.headers[t]=wt.merge(aI)});var ap=Il,uI=pn,lI=ap,cI=function(t,n,r){var s=this||lI;return uI.forEach(r,function(c){t=c.call(s,t,n)}),t},w0=function(t){return!!(t&&t.__CANCEL__)},Oy=pn,Uf=cI,fI=w0,dI=ap;function Hf(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var hI=function(t){Hf(t),t.headers=t.headers||{},t.data=Uf.call(t,t.data,t.headers,t.transformRequest),t.headers=Oy.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Oy.forEach(["delete","get","head","post","put","patch","common"],function(s){delete t.headers[s]});var n=t.adapter||dI.adapter;return n(t).then(function(s){return Hf(t),s.data=Uf.call(t,s.data,s.headers,t.transformResponse),s},function(s){return fI(s)||(Hf(t),s&&s.response&&(s.response.data=Uf.call(t,s.response.data,s.response.headers,t.transformResponse))),Promise.reject(s)})},At=pn,C0=function(t,n){n=n||{};var r={},s=["url","method","data"],o=["headers","auth","proxy","params"],c=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],u=["validateStatus"];function i(p,v){return At.isPlainObject(p)&&At.isPlainObject(v)?At.merge(p,v):At.isPlainObject(v)?At.merge({},v):At.isArray(v)?v.slice():v}function a(p){At.isUndefined(n[p])?At.isUndefined(t[p])||(r[p]=i(void 0,t[p])):r[p]=i(t[p],n[p])}At.forEach(s,function(v){At.isUndefined(n[v])||(r[v]=i(void 0,n[v]))}),At.forEach(o,a),At.forEach(c,function(v){At.isUndefined(n[v])?At.isUndefined(t[v])||(r[v]=i(void 0,t[v])):r[v]=i(void 0,n[v])}),At.forEach(u,function(v){v in n?r[v]=i(t[v],n[v]):v in t&&(r[v]=i(void 0,t[v]))});var l=s.concat(o).concat(c).concat(u),d=Object.keys(t).concat(Object.keys(n)).filter(function(v){return l.indexOf(v)===-1});return At.forEach(d,a),r};const pI="axios",mI="0.21.4",vI="Promise based HTTP client for the browser and node.js",gI="index.js",yI={test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},_I={type:"git",url:"https://github.com/axios/axios.git"},bI=["xhr","http","ajax","promise","node"],SI="Matt Zabriskie",wI="MIT",CI={url:"https://github.com/axios/axios/issues"},xI="https://axios-http.com",TI={coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},AI={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},PI="dist/axios.min.js",OI="dist/axios.min.js",kI="./index.d.ts",$I={"follow-redirects":"^1.14.0"},EI=[{path:"./dist/axios.min.js",threshold:"5kB"}];var MI={name:pI,version:mI,description:vI,main:gI,scripts:yI,repository:_I,keywords:bI,author:SI,license:wI,bugs:CI,homepage:xI,devDependencies:TI,browser:AI,jsdelivr:PI,unpkg:OI,typings:kI,dependencies:$I,bundlesize:EI},x0=MI,sp={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){sp[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var ky={},RI=x0.version.split(".");function T0(e,t){for(var n=t?t.split("."):RI,r=e.split("."),s=0;s<3;s++){if(n[s]>r[s])return!0;if(n[s]0;){var o=r[s],c=t[o];if(c){var u=e[o],i=u===void 0||c(u,o,e);if(i!==!0)throw new TypeError("option "+o+" must be "+i);continue}if(n!==!0)throw Error("Unknown option "+o)}}var II={isOlderVersion:T0,assertOptions:DI,validators:sp},A0=pn,NI=_0,$y=F2,Ey=hI,Nl=C0,P0=II,Ea=P0.validators;function ao(e){this.defaults=e,this.interceptors={request:new $y,response:new $y}}ao.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=Nl(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;n!==void 0&&P0.assertOptions(n,{silentJSONParsing:Ea.transitional(Ea.boolean,"1.0.0"),forcedJSONParsing:Ea.transitional(Ea.boolean,"1.0.0"),clarifyTimeoutError:Ea.transitional(Ea.boolean,"1.0.0")},!1);var r=[],s=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(t)===!1||(s=s&&p.synchronous,r.unshift(p.fulfilled,p.rejected))});var o=[];this.interceptors.response.forEach(function(p){o.push(p.fulfilled,p.rejected)});var c;if(!s){var u=[Ey,void 0];for(Array.prototype.unshift.apply(u,r),u=u.concat(o),c=Promise.resolve(t);u.length;)c=c.then(u.shift(),u.shift());return c}for(var i=t;r.length;){var a=r.shift(),l=r.shift();try{i=a(i)}catch(d){l(d);break}}try{c=Ey(i)}catch(d){return Promise.reject(d)}for(;o.length;)c=c.then(o.shift(),o.shift());return c};ao.prototype.getUri=function(t){return t=Nl(this.defaults,t),NI(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};A0.forEach(["delete","get","head","options"],function(t){ao.prototype[t]=function(n,r){return this.request(Nl(r||{},{method:t,url:n,data:(r||{}).data}))}});A0.forEach(["post","put","patch"],function(t){ao.prototype[t]=function(n,r,s){return this.request(Nl(s||{},{method:t,url:n,data:r}))}});var FI=ao;function op(e){this.message=e}op.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};op.prototype.__CANCEL__=!0;var O0=op,LI=O0;function nl(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(s){t=s});var n=this;e(function(s){n.reason||(n.reason=new LI(s),t(n.reason))})}nl.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};nl.source=function(){var t,n=new nl(function(s){t=s});return{token:n,cancel:t}};var BI=nl,zI=function(t){return function(r){return t.apply(null,r)}},jI=function(t){return typeof t=="object"&&t.isAxiosError===!0},My=pn,qI=v0,Du=FI,VI=C0,UI=ap;function k0(e){var t=new Du(e),n=qI(Du.prototype.request,t);return My.extend(n,Du.prototype,t),My.extend(n,t),n}var Un=k0(UI);Un.Axios=Du;Un.create=function(t){return k0(VI(Un.defaults,t))};Un.Cancel=O0;Un.CancelToken=BI;Un.isCancel=w0;Un.all=function(t){return Promise.all(t)};Un.spread=zI;Un.isAxiosError=jI;np.exports=Un;np.exports.default=Un;var Us=np.exports;const Hs="https://milligram-backend-mayumi.azurewebsites.net/",$0="",HI="ed242cb8d7034560ac52fbfd4bbe2fae",WI="",E0="15756226f0434435bf0dfe5b67c60404",GI="https://computer-vision-aac.cognitiveservices.azure.com/",YI=new _2({storage:window.localStorage});$e.use(h0);var so=new h0.Store({state:{githubUsername:"CodeUnicornMartha",imageList:[]},mutations:{setGithubUsername(e,t){e.githubUsername=t},setImageList(e,t){console.log(t),e.imageList=t}},actions:{refreshImageList(e){Us.get(`${Hs}images`).then(t=>{e.commit("setImageList",t.data)}).catch(t=>{e.commit("setImageList",[]),console.log(t)})},deleteImage(e,t){Us.delete(`${Hs}${t.image_url}`).then(()=>{e.dispatch("refreshImageList")})}},modules:{},plugins:[YI.plugin]}),KI=Object.defineProperty,XI=Object.getOwnPropertyDescriptor,QI=(e,t,n,r)=>{for(var s=r>1?void 0:r?XI(t,n):t,o=e.length-1,c;o>=0;o--)(c=e[o])&&(s=(r?c(t,n,s):c(s))||s);return r&&s&&KI(t,n,s),s};let Nd=class extends $e{constructor(){super(...arguments),this.apiUrl=Hs}get imageList(){return this.$store.state.imageList}deleteImage(e){this.$store.dispatch("deleteImage",e)}mounted(){this.$store.dispatch("refreshImageList")}};Nd=QI([Wn({store:so})],Nd);var ZI=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"tile is-ancestor",staticStyle:{"margin-bottom":"100px"}},[n("div",{staticClass:"tile is-parent is-vertical"},e._l(e.imageList,function(r){return n("div",{key:r.image_url,staticClass:"tile is-child"},[n("b-image",{attrs:{ratio:"1by1 ",src:""+e.apiUrl+r.image_url}}),n("b-button",{attrs:{id:"btn-delete",rounded:"",type:"is-black"},on:{click:function(s){return e.deleteImage(r)}}},[e._v(" Delete ")])],1)}),0)])])},JI=[];function ui(e,t,n,r,s,o,c,u){var i=typeof e=="function"?e.options:e;t&&(i.render=t,i.staticRenderFns=n,i._compiled=!0),r&&(i.functional=!0),o&&(i._scopeId="data-v-"+o);var a;if(c?(a=function(p){p=p||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!p&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(p=__VUE_SSR_CONTEXT__),s&&s.call(this,p),p&&p._registeredComponents&&p._registeredComponents.add(c)},i._ssrRegister=a):s&&(a=u?function(){s.call(this,(i.functional?this.parent:this).$root.$options.shadowRoot)}:s),a)if(i.functional){i._injectStyles=a;var l=i.render;i.render=function(v,g){return a.call(g),l(v,g)}}else{var d=i.beforeCreate;i.beforeCreate=d?[].concat(d,a):[a]}return{exports:e,options:i}}const Ry={};var eN=ui(Nd,ZI,JI,!1,tN,"9f0ebbe6",null,null);function tN(e){for(let t in Ry)this[t]=Ry[t]}var M0=function(){return eN.exports}(),nN=Object.defineProperty,iN=Object.getOwnPropertyDescriptor,R0=(e,t,n,r)=>{for(var s=r>1?void 0:r?iN(t,n):t,o=e.length-1,c;o>=0;o--)(c=e[o])&&(s=(r?c(t,n,s):c(s))||s);return r&&s&&nN(t,n,s),s};const rN="https://api.github.com/users/";let il=class extends $e{constructor(){super(...arguments),this.profile={}}mounted(){this.getProfileDetails()}get githubUsername(){return this.$store.state.githubUsername}getProfileDetails(){Us.get(`${rN}${this.githubUsername}`).then(e=>{this.profile=e.data}).catch(e=>{console.log(e)})}};R0([Za("githubUsername")],il.prototype,"getProfileDetails",1);il=R0([Wn({store:so})],il);var aN=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"profile is-size-4"},[n("b-image",{staticStyle:{"margin-top":"100px"},attrs:{src:e.profile.avatar_url,alt:"Profile Picture of User",ratio:"1by1",rounded:""}}),n("h1",[e._v(e._s(e.profile.name))]),n("div",{staticClass:"buttons"},[n("b-button",{attrs:{tag:"router-link",to:"/editprofile",rounded:"",type:"is-black",expanded:""}},[e._v(" Edit Profile ")])],1)],1)},sN=[];const Dy={};var oN=ui(il,aN,sN,!1,uN,"fa6e167e",null,null);function uN(e){for(let t in Dy)this[t]=Dy[t]}var D0=function(){return oN.exports}(),lN=Object.defineProperty,cN=Object.getOwnPropertyDescriptor,fN=(e,t,n,r)=>{for(var s=r>1?void 0:r?cN(t,n):t,o=e.length-1,c;o>=0;o--)(c=e[o])&&(s=(r?c(t,n,s):c(s))||s);return r&&s&&lN(t,n,s),s};let Fd=class extends $e{get showCameraButton(){return Hs!==""}get showFaceButton(){return $0!==""}get showSpeechButton(){return HI!==""}get showVisionButton(){return E0!==""}};Fd=fN([Wn],Fd);var dN=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("b-navbar",{attrs:{"fixed-bottom":"",centered:"","mobile-burger":!1},scopedSlots:e._u([{key:"brand",fn:function(){return[n("div",{attrs:{id:"left"}}),n("div",{attrs:{id:"right"}}),n("div",{attrs:{id:"top"}}),n("div",{attrs:{id:"bottom"}}),n("div",{staticClass:"buttons-container navbar-center"},[e.showCameraButton?n("b-button",{attrs:{rounded:"",type:"is-black"}},[n("router-link",{attrs:{to:"/camera"}},[n("b-icon",{attrs:{type:"is-white",icon:"camera",pack:"fas"}})],1)],1):e._e(),e.showSpeechButton?n("b-button",{attrs:{rounded:"",type:"is-black"}},[n("router-link",{attrs:{to:"/microphone"}},[n("b-icon",{attrs:{type:"is-white",icon:"microphone",pack:"fas"}})],1)],1):e._e(),e.showFaceButton?n("b-button",{attrs:{rounded:"",type:"is-black"}},[n("router-link",{attrs:{to:"/faceai"}},[n("b-icon",{attrs:{type:"is-white",icon:"grin-stars",pack:"fas"}})],1)],1):e._e(),e.showVisionButton?n("b-button",{attrs:{rounded:"",type:"is-black"}},[n("router-link",{attrs:{to:"/vision"}},[n("b-icon",{attrs:{type:"is-white",icon:"object-group",pack:"fas"}})],1)],1):e._e()],1)]},proxy:!0}])})},hN=[];const Iy={};var pN=ui(Fd,dN,hN,!1,mN,"1317d448",null,null);function mN(e){for(let t in Iy)this[t]=Iy[t]}var I0=function(){return pN.exports}(),vN=Object.defineProperty,gN=Object.getOwnPropertyDescriptor,N0=(e,t,n,r)=>{for(var s=r>1?void 0:r?gN(t,n):t,o=e.length-1,c;o>=0;o--)(c=e[o])&&(s=(r?c(t,n,s):c(s))||s);return r&&s&&vN(t,n,s),s};let rl=class extends $e{constructor(){super(...arguments),this.transitionName="forward",this.screen="home"}route(e,t){e.params["stack-key-dir"]==="forward"?this.transitionName="forward":this.transitionName="back"}};N0([Za("$route")],rl.prototype,"route",1);rl=N0([Wn({components:{Profile:D0,ImageList:M0,Navbar:I0}})],rl);var yN=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("div",{attrs:{id:"left"}}),n("div",{attrs:{id:"right"}}),n("div",{attrs:{id:"top"}}),n("div",{attrs:{id:"bottom"}}),n("transition",{attrs:{name:e.transitionName}},[n("vue-page-stack",[n("router-view",{key:e.screen,staticClass:"router-view-c"})],1)],1)],1)},_N=[];const Ny={};var bN=ui(rl,yN,_N,!1,SN,null,null,null);function SN(e){for(let t in Ny)this[t]=Ny[t]}var wN=function(){return bN.exports}();function Xt(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Xt=function(t){return typeof t}:Xt=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xt(e)}function F0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fy(e,t){for(var n=0;n=0)&&(n[s]=e[s]);return n}function ON(e,t){if(e==null)return{};var n=PN(e,t),r,s;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(s=0;s=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function kN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $N(e,t){return t&&(typeof t=="object"||typeof t=="function")?t:kN(e)}function up(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function cu(e,t){return L0(e)||RN(e,t)||z0()}function EN(e){return L0(e)||B0(e)||z0()}function Kt(e){return MN(e)||B0(e)||DN()}function MN(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0?1:0}var NN=Math.sign||IN;function sl(e,t){return(e&t)===t}function j0(e,t){return(e%t+t)%t}function Ni(e,t,n){return Math.max(t,Math.min(n,e))}function zn(e,t){return t.split(".").reduce(function(n,r){return n?n[r]:null},e)}function Wf(e,t,n){if(!e)return-1;if(!n||typeof n!="function")return e.indexOf(t);for(var r=0;r2&&arguments[2]!==void 0?arguments[2]:!1;if(r||!Object.assign){var s=function(u){return By(n[u])&&t!==null&&t.hasOwnProperty(u)&&By(t[u])},o=Object.getOwnPropertyNames(n).map(function(c){return fe({},c,s(c)?e(t[c],n[c],r):n[c])}).reduce(function(c,u){return Ld({},c,{},u)},{});return Ld({},t,{},o)}else return Object.assign(t,n)},Vn=FN,Ei={Android:function(){return typeof window!="undefined"&&window.navigator.userAgent.match(/Android/i)},BlackBerry:function(){return typeof window!="undefined"&&window.navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return typeof window!="undefined"&&(window.navigator.userAgent.match(/iPhone|iPad|iPod/i)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1)},Opera:function(){return typeof window!="undefined"&&window.navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return typeof window!="undefined"&&window.navigator.userAgent.match(/IEMobile/i)},any:function(){return Ei.Android()||Ei.BlackBerry()||Ei.iOS()||Ei.Opera()||Ei.Windows()}};function Ui(e){typeof e.remove!="undefined"?e.remove():typeof e.parentNode!="undefined"&&e.parentNode!==null&&e.parentNode.removeChild(e)}function lp(e){var t=document.createElement("div");t.style.position="absolute",t.style.left="0px",t.style.top="0px",t.style.width="100%";var n=document.createElement("div");return t.appendChild(n),n.appendChild(e),document.body.appendChild(t),t}function Nu(e){return e&&e._isVue}function LN(e){return e&&e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function zy(e){return e&&e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function jy(e,t){var n=JSON.parse(JSON.stringify(e)),r=function(o){return function(c,u){return o.map(function(i){var a=1;i[0]==="-"&&(a=-1,i=i.substring(1));var l=zn(c,i),d=zn(u,i);return l>d?a:l0&&arguments[0]!==void 0?arguments[0]:void 0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"long",n=[],r=0;r<12;r++)n.push(new Date(2e3,r,15));var s=new Intl.DateTimeFormat(e,{month:t});return n.map(function(o){return s.format(o)})}function zN(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"narrow",n=[],r=0;r<7;r++){var s=new Date(2e3,0,r+1);n[s.getDay()]=s}var o=new Intl.DateTimeFormat(e,{weekday:t});return n.map(function(c){return o.format(c)})}function cp(e,t){var n=t.match(e);return e.toString().match(/<(.+?)>/g).map(function(r){var s=r.match(/<(.+)>/);return!s||s.length<=0?null:r.match(/<(.+)>/)[1]}).reduce(function(r,s,o,c){return n&&n.length>o?r[s]=n[o+1]:r[s]=null,r},{})}function jN(){return new Promise(function(e){var t=new Image;t.onerror=function(){return e(!1)},t.onload=function(){return e(t.width===1)},t.src="data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoBAAEAAwA0JaQAA3AA/vuUAAA="}).catch(function(){return!1})}function fp(e){return"shadowRoot"in e.$root.$options}var ol=function(t){return t!==void 0},fu=function(t){return t==null},Q={defaultContainerElement:null,defaultIconPack:"mdi",defaultIconComponent:null,defaultIconPrev:"chevron-left",defaultIconNext:"chevron-right",defaultLocale:void 0,defaultDialogConfirmText:null,defaultDialogCancelText:null,defaultSnackbarDuration:3500,defaultSnackbarPosition:null,defaultToastDuration:2e3,defaultToastPosition:null,defaultNotificationDuration:2e3,defaultNotificationPosition:null,defaultTooltipType:"is-primary",defaultTooltipDelay:null,defaultTooltipCloseDelay:null,defaultSidebarDelay:null,defaultInputAutocomplete:"on",defaultDateFormatter:null,defaultDateParser:null,defaultDateCreator:null,defaultTimeCreator:null,defaultDayNames:null,defaultMonthNames:null,defaultFirstDayOfWeek:null,defaultUnselectableDaysOfWeek:null,defaultTimeFormatter:null,defaultTimeParser:null,defaultModalCanCancel:["escape","x","outside","button"],defaultModalScroll:null,defaultDatepickerMobileNative:!0,defaultTimepickerMobileNative:!0,defaultNoticeQueue:!0,defaultInputHasCounter:!0,defaultTaginputHasCounter:!0,defaultUseHtml5Validation:!0,defaultDropdownMobileModal:!0,defaultFieldLabelPosition:null,defaultDatepickerYearsRange:[-100,10],defaultDatepickerNearbyMonthDays:!0,defaultDatepickerNearbySelectableMonthDays:!1,defaultDatepickerShowWeekNumber:!1,defaultDatepickerWeekNumberClickable:!1,defaultDatepickerMobileModal:!0,defaultTrapFocus:!0,defaultAutoFocus:!0,defaultButtonRounded:!1,defaultSwitchRounded:!0,defaultCarouselInterval:3500,defaultTabsExpanded:!1,defaultTabsAnimated:!0,defaultTabsType:null,defaultStatusIcon:!0,defaultProgrammaticPromise:!1,defaultLinkTags:["a","button","input","router-link","nuxt-link","n-link","RouterLink","NuxtLink","NLink"],defaultImageWebpFallback:null,defaultImageLazy:!0,defaultImageResponsive:!0,defaultImageRatio:null,defaultImageSrcsetFormatter:null,defaultBreadcrumbTag:"a",defaultBreadcrumbAlign:"is-left",defaultBreadcrumbSeparator:"",defaultBreadcrumbSize:"is-medium",customIconPacks:null},q0=function(t){Q=t},V0=function(t){Hi=t},Hi,li={props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,autocomplete:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:function(){return Q.defaultUseHtml5Validation}},validationMessage:String,locale:{type:[String,Array],default:function(){return Q.defaultLocale}},statusIcon:{type:Boolean,default:function(){return Q.defaultStatusIcon}}},data:function(){return{isValid:!0,isFocused:!1,newIconPack:this.iconPack||Q.defaultIconPack}},computed:{parentField:function(){for(var t=this.$parent,n=0;n<3;n++)t&&!t.$data._isField&&(t=t.$parent);return t},statusType:function(){var t=this.parentField||{},n=t.newType;if(!!n){if(typeof n=="string")return n;for(var r in n)if(n[r])return r}},statusMessage:function(){if(!!this.parentField)return this.parentField.newMessage||this.parentField.$slots.message},iconSize:function(){switch(this.size){case"is-small":return this.size;case"is-medium":return;case"is-large":return this.newIconPack==="mdi"?"is-medium":""}}},methods:{focus:function(){var t=this.getElement();t!==void 0&&this.$nextTick(function(){t&&t.focus()})},onBlur:function(t){this.isFocused=!1,this.$emit("blur",t),this.checkHtml5Validity()},onFocus:function(t){this.isFocused=!0,this.$emit("focus",t)},getElement:function(){for(var t=this.$refs[this.$data._elementRef];Nu(t);)t=t.$refs[t.$data._elementRef];return t},setInvalid:function(){var t="is-danger",n=this.validationMessage||this.getElement().validationMessage;this.setValidity(t,n)},setValidity:function(t,n){var r=this;this.$nextTick(function(){r.parentField&&(r.parentField.type||(r.parentField.newType=t),r.parentField.message||(r.parentField.newMessage=n))})},checkHtml5Validity:function(){if(!!this.useHtml5Validation){var t=this.getElement();if(t!==void 0)return t.checkValidity()?(this.setValidity(null,null),this.isValid=!0):(this.setInvalid(),this.isValid=!1),this.isValid}}}};function qN(e,t,n,r,s,o,c,u,i,a){typeof c!="boolean"&&(i=u,u=c,c=!1);var l=typeof n=="function"?n.options:n;e&&e.render&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),r&&(l._scopeId=r);var d;if(o?(d=function(_){_=_||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!_&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(_=__VUE_SSR_CONTEXT__),t&&t.call(this,i(_)),_&&_._registeredComponents&&_._registeredComponents.add(o)},l._ssrRegister=d):t&&(d=c?function(){t.call(this,a(this.$root.$options.shadowRoot))}:function(g){t.call(this,u(g))}),d)if(l.functional){var p=l.render;l.render=function(_,b){return d.call(b),p(_,b)}}else{var v=l.beforeCreate;l.beforeCreate=v?[].concat(v,d):[d]}return n}var me=qN,Oe=function(t){typeof window!="undefined"&&window.Vue&&window.Vue.use(t)},_e=function(t,n){t.component(n.name,n)},na=function(t,n,r){t.prototype.$buefy||(t.prototype.$buefy={}),t.prototype.$buefy[n]=r},VN={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},xn=function(){var t=Q&&Q.defaultIconComponent?"":"fa-";return{sizes:{default:null,"is-small":null,"is-medium":t+"lg","is-large":t+"2x"},iconPrefix:t,internalIcons:{information:"info-circle",alert:"exclamation-triangle","alert-circle":"exclamation-circle","chevron-right":"angle-right","chevron-left":"angle-left","chevron-down":"angle-down","eye-off":"eye-slash","menu-down":"caret-down","menu-up":"caret-up","close-circle":"times-circle"}}},UN=function(){var t={mdi:VN,fa:xn(),fas:xn(),far:xn(),fad:xn(),fab:xn(),fal:xn(),"fa-solid":xn(),"fa-regular":xn(),"fa-light":xn(),"fa-thin":xn(),"fa-duotone":xn(),"fa-brands":xn()};return Q&&Q.customIconPacks&&(t=Vn(t,Q.customIconPacks,!0)),t},HN={name:"BIcon",props:{type:[String,Object],component:String,pack:String,icon:String,size:String,customSize:String,customClass:String,both:Boolean},computed:{iconConfig:function(){var t=UN();return t[this.newPack]},iconPrefix:function(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon:function(){return"".concat(this.iconPrefix).concat(this.getEquivalentIconOf(this.icon))},newPack:function(){return this.pack||Q.defaultIconPack},newType:function(){if(!!this.type){var t=[];if(typeof this.type=="string")t=this.type.split("-");else for(var n in this.type)if(this.type[n]){t=n.split("-");break}if(!(t.length<=1)){var r=t,s=EN(r),o=s.slice(1);return"has-text-".concat(o.join("-"))}}},newCustomSize:function(){return this.customSize||this.customSizeByPack},customSizeByPack:function(){if(this.iconConfig&&this.iconConfig.sizes){if(this.size&&this.iconConfig.sizes[this.size]!==void 0)return this.iconConfig.sizes[this.size];if(this.iconConfig.sizes.default)return this.iconConfig.sizes.default}return null},useIconComponent:function(){return this.component||Q.defaultIconComponent}},methods:{getEquivalentIconOf:function(t){return this.both&&this.iconConfig&&this.iconConfig.internalIcons&&this.iconConfig.internalIcons[t]?this.iconConfig.internalIcons[t]:t}}};const WN=HN;var GN=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"icon",class:[e.newType,e.size]},[e.useIconComponent?n(e.useIconComponent,{tag:"component",class:[e.customClass],attrs:{icon:[e.newPack,e.newIcon],size:e.newCustomSize}}):n("i",{class:[e.newPack,e.newIcon,e.newCustomSize,e.customClass]})],1)},YN=[];const KN=void 0,XN=void 0,QN=void 0,ZN=!1;var Fe=me({render:GN,staticRenderFns:YN},KN,WN,XN,ZN,QN,void 0,void 0),JN={name:"BInput",components:fe({},Fe.name,Fe),mixins:[li],inheritAttrs:!1,props:{value:[Number,String],type:{type:String,default:"text"},lazy:{type:Boolean,default:!1},passwordReveal:Boolean,iconClickable:Boolean,hasCounter:{type:Boolean,default:function(){return Q.defaultInputHasCounter}},customClass:{type:String,default:""},iconRight:String,iconRightClickable:Boolean,iconRightType:String},data:function(){return{newValue:this.value,newType:this.type,newAutocomplete:this.autocomplete||Q.defaultInputAutocomplete,isPasswordVisible:!1,_elementRef:this.type==="textarea"?"textarea":"input"}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){this.newValue=t,this.$emit("input",t)}},rootClasses:function(){return[this.iconPosition,this.size,{"is-expanded":this.expanded,"is-loading":this.loading,"is-clearfix":!this.hasMessage}]},inputClasses:function(){return[this.statusType,this.size,{"is-rounded":this.rounded}]},hasIconRight:function(){return this.passwordReveal||this.loading||this.statusIcon&&this.statusTypeIcon||this.iconRight},rightIcon:function(){return this.passwordReveal?this.passwordVisibleIcon:this.iconRight?this.iconRight:this.statusTypeIcon},rightIconType:function(){return this.passwordReveal?"is-primary":this.iconRight?this.iconRightType||null:this.statusType},iconPosition:function(){var t="";return this.icon&&(t+="has-icons-left "),this.hasIconRight&&(t+="has-icons-right"),t},statusTypeIcon:function(){switch(this.statusType){case"is-success":return"check";case"is-danger":return"alert-circle";case"is-info":return"information";case"is-warning":return"alert"}},hasMessage:function(){return!!this.statusMessage},passwordVisibleIcon:function(){return this.isPasswordVisible?"eye-off":"eye"},valueLength:function(){return typeof this.computedValue=="string"?Array.from(this.computedValue).length:typeof this.computedValue=="number"?this.computedValue.toString().length:0}},watch:{value:function(t){this.newValue=t},type:function(t){this.newType=t}},methods:{togglePasswordVisibility:function(){var t=this;this.isPasswordVisible=!this.isPasswordVisible,this.newType=this.isPasswordVisible?"text":"password",this.$nextTick(function(){t.focus()})},iconClick:function(t,n){var r=this;this.$emit(t,n),this.$nextTick(function(){r.focus()})},rightIconClick:function(t){this.passwordReveal?this.togglePasswordVisibility():this.iconRightClickable&&this.iconClick("icon-right-click",t)},onInput:function(t){if(!this.lazy){var n=t.target.value;this.updateValue(n)}},onChange:function(t){if(this.lazy){var n=t.target.value;this.updateValue(n)}},updateValue:function(t){this.computedValue=t,!this.isValid&&this.checkHtml5Validity()}}};const eF=JN;var tF=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"control",class:e.rootClasses},[e.type!=="textarea"?n("input",e._b({ref:"input",staticClass:"input",class:[e.inputClasses,e.customClass],attrs:{type:e.newType,autocomplete:e.newAutocomplete,maxlength:e.maxlength},domProps:{value:e.computedValue},on:{input:e.onInput,change:e.onChange,blur:e.onBlur,focus:e.onFocus}},"input",e.$attrs,!1)):n("textarea",e._b({ref:"textarea",staticClass:"textarea",class:[e.inputClasses,e.customClass],attrs:{maxlength:e.maxlength},domProps:{value:e.computedValue},on:{input:e.onInput,change:e.onChange,blur:e.onBlur,focus:e.onFocus}},"textarea",e.$attrs,!1)),e.icon?n("b-icon",{staticClass:"is-left",class:{"is-clickable":e.iconClickable},attrs:{icon:e.icon,pack:e.iconPack,size:e.iconSize},nativeOn:{click:function(r){return e.iconClick("icon-click",r)}}}):e._e(),!e.loading&&e.hasIconRight?n("b-icon",{staticClass:"is-right",class:{"is-clickable":e.passwordReveal||e.iconRightClickable},attrs:{icon:e.rightIcon,pack:e.iconPack,size:e.iconSize,type:e.rightIconType,both:""},nativeOn:{click:function(r){return e.rightIconClick(r)}}}):e._e(),e.maxlength&&e.hasCounter&&e.type!=="number"?n("small",{staticClass:"help counter",class:{"is-invisible":!e.isFocused}},[e._v(" "+e._s(e.valueLength)+" / "+e._s(e.maxlength)+" ")]):e._e()],1)},nF=[];const iF=void 0,rF=void 0,aF=void 0,sF=!1;var qt=me({render:tF,staticRenderFns:nF},iF,eF,rF,sF,aF,void 0,void 0),oF={name:"BAutocomplete",components:fe({},qt.name,qt),mixins:[li],inheritAttrs:!1,props:{value:[Number,String],data:{type:Array,default:function(){return[]}},field:{type:String,default:"value"},keepFirst:Boolean,clearOnSelect:Boolean,openOnFocus:Boolean,customFormatter:Function,checkInfiniteScroll:Boolean,keepOpen:Boolean,selectOnClickOutside:Boolean,clearable:Boolean,maxHeight:[String,Number],dropdownPosition:{type:String,default:"auto"},groupField:String,groupOptions:String,iconRight:String,iconRightClickable:Boolean,appendToBody:Boolean,type:{type:String,default:"text"},confirmKeys:{type:Array,default:function(){return["Tab","Enter"]}},selectableHeader:Boolean,selectableFooter:Boolean},data:function(){return{selected:null,hovered:null,headerHovered:null,footerHovered:null,isActive:!1,newValue:this.value,newAutocomplete:this.autocomplete||"off",ariaAutocomplete:this.keepFirst?"both":"list",isListInViewportVertically:!0,hasFocus:!1,style:{},_isAutocomplete:!0,_elementRef:"input",_bodyEl:void 0}},computed:{computedData:function(){var t=this;if(this.groupField)if(this.groupOptions){var n=[];return this.data.forEach(function(o){var c=zn(o,t.groupField),u=zn(o,t.groupOptions);n.push({group:c,items:u})}),n}else{var r={};this.data.forEach(function(o){var c=zn(o,t.groupField);r[c]||(r[c]=[]),r[c].push(o)});var s=[];return Object.keys(r).forEach(function(o){s.push({group:o,items:r[o]})}),s}return[{items:this.data}]},isEmpty:function(){return this.computedData?!this.computedData.some(function(t){return t.items&&t.items.length}):!0},whiteList:function(){var t=[];if(t.push(this.$refs.input.$el.querySelector("input")),t.push(this.$refs.dropdown),this.$refs.dropdown!==void 0){var n=this.$refs.dropdown.querySelectorAll("*"),r=!0,s=!1,o=void 0;try{for(var c=n[Symbol.iterator](),u;!(r=(u=c.next()).done);r=!0){var i=u.value;t.push(i)}}catch(b){s=!0,o=b}finally{try{!r&&c.return!=null&&c.return()}finally{if(s)throw o}}}if(this.$parent.$data._isTaginput){t.push(this.$parent.$el);var a=this.$parent.$el.querySelectorAll("*"),l=!0,d=!1,p=void 0;try{for(var v=a[Symbol.iterator](),g;!(l=(g=v.next()).done);l=!0){var _=g.value;t.push(_)}}catch(b){d=!0,p=b}finally{try{!l&&v.return!=null&&v.return()}finally{if(d)throw p}}}return t},hasDefaultSlot:function(){return!!this.$scopedSlots.default},hasGroupSlot:function(){return!!this.$scopedSlots.group},hasEmptySlot:function(){return!!this.$slots.empty},hasHeaderSlot:function(){return!!this.$slots.header},hasFooterSlot:function(){return!!this.$slots.footer},isOpenedTop:function(){return this.dropdownPosition==="top"||this.dropdownPosition==="auto"&&!this.isListInViewportVertically},newIconRight:function(){return this.clearable&&this.newValue?"close-circle":this.iconRight},newIconRightClickable:function(){return this.clearable?!0:this.iconRightClickable},contentStyle:function(){return{maxHeight:Fl(this.maxHeight)}}},watch:{isActive:function(t){var n=this;this.dropdownPosition==="auto"&&(t?this.calcDropdownInViewportVertical():setTimeout(function(){n.calcDropdownInViewportVertical()},100))},newValue:function(t){this.$emit("input",t);var n=this.getValue(this.selected);n&&n!==t&&this.setSelected(null,!1),this.hasFocus&&(!this.openOnFocus||t)&&(this.isActive=!!t)},value:function(t){this.newValue=t},data:function(){var t=this;if(this.keepFirst)this.$nextTick(function(){t.isActive?t.selectFirstOption(t.computedData):t.setHovered(null)});else if(this.hovered){var n=this.getValue(this.hovered),r=this.computedData.map(function(s){return s.items}).reduce(function(s,o){return[].concat(Kt(s),Kt(o))},[]);r.some(function(s){return t.getValue(s)===n})||this.setHovered(null)}}},methods:{setHovered:function(t){t!==void 0&&(this.hovered=t)},setSelected:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;if(t!==void 0){if(this.selected=t,this.$emit("select",this.selected,s),this.selected!==null){if(this.clearOnSelect){var o=this.$refs.input;o.newValue="",o.$refs.input.value=""}else this.newValue=this.getValue(this.selected);this.setHovered(null)}r&&this.$nextTick(function(){n.isActive=!1}),this.checkValidity()}},selectFirstOption:function(t){var n=this;this.$nextTick(function(){var r=t.filter(function(o){return o.items&&o.items.length});if(r.length){var s=r[0].items[0];n.setHovered(s)}else n.setHovered(null)})},keydown:function(t){var n=t.key;if(n==="Enter"&&t.preventDefault(),(n==="Escape"||n==="Tab")&&(this.isActive=!1),this.confirmKeys.indexOf(n)>=0){n===","&&t.preventDefault();var r=!this.keepOpen||n==="Tab";if(this.hovered===null){this.checkIfHeaderOrFooterSelected(t,null,r);return}this.setSelected(this.hovered,r,t)}},selectHeaderOrFoterByClick:function(t,n){this.checkIfHeaderOrFooterSelected(t,{origin:n})},checkIfHeaderOrFooterSelected:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;this.selectableHeader&&(this.headerHovered||n&&n.origin==="header")&&(this.$emit("select-header",t),this.headerHovered=!1,n&&this.setHovered(null),r&&(this.isActive=!1)),this.selectableFooter&&(this.footerHovered||n&&n.origin==="footer")&&(this.$emit("select-footer",t),this.footerHovered=!1,n&&this.setHovered(null),r&&(this.isActive=!1))},clickedOutside:function(t){var n=fp(this)?t.composedPath()[0]:t.target;!this.hasFocus&&this.whiteList.indexOf(n)<0&&(this.keepFirst&&this.hovered&&this.selectOnClickOutside?this.setSelected(this.hovered,!0):this.isActive=!1)},getValue:function(t){if(t!==null)return typeof this.customFormatter!="undefined"?this.customFormatter(t):Xt(t)==="object"?zn(t,this.field):t},checkIfReachedTheEndOfScroll:function(t){t.clientHeight!==t.scrollHeight&&t.scrollTop+t.clientHeight>=t.scrollHeight&&this.$emit("infinite-scroll")},calcDropdownInViewportVertical:function(){var t=this;this.$nextTick(function(){if(t.$refs.dropdown!==void 0){var n=t.$refs.dropdown.getBoundingClientRect();t.isListInViewportVertically=n.top>=0&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight),t.appendToBody&&t.updateAppendToBody()}})},keyArrows:function(t){var n=t==="down"?1:-1;if(this.isActive){var r=this.computedData.map(function(l){return l.items}).reduce(function(l,d){return[].concat(Kt(l),Kt(d))},[]);this.hasHeaderSlot&&this.selectableHeader&&r.unshift(void 0),this.hasFooterSlot&&this.selectableFooter&&r.push(void 0);var s;this.headerHovered?s=0+n:this.footerHovered?s=r.length-1+n:s=r.indexOf(this.hovered)+n,s=s>r.length-1?r.length-1:s,s=s<0?0:s,this.footerHovered=!1,this.headerHovered=!1,this.setHovered(r[s]!==void 0?r[s]:null),this.hasFooterSlot&&this.selectableFooter&&s===r.length-1&&(this.footerHovered=!0),this.hasHeaderSlot&&this.selectableHeader&&s===0&&(this.headerHovered=!0);var o=this.$refs.dropdown.querySelector(".dropdown-content"),c="a.dropdown-item:not(.is-disabled)";this.hasHeaderSlot&&this.selectableHeader&&(c+=",div.dropdown-header"),this.hasFooterSlot&&this.selectableFooter&&(c+=",div.dropdown-footer");var u=o.querySelectorAll(c)[s];if(!u)return;var i=o.scrollTop,a=o.scrollTop+o.clientHeight-u.clientHeight;u.offsetTop=a&&(o.scrollTop=u.offsetTop-o.clientHeight+u.clientHeight)}else this.isActive=!0},focused:function(t){this.getValue(this.selected)===this.newValue&&this.$el.querySelector("input").select(),this.openOnFocus&&(this.isActive=!0,this.keepFirst&&this.selectFirstOption(this.computedData)),this.hasFocus=!0,this.$emit("focus",t)},onBlur:function(t){this.hasFocus=!1,this.$emit("blur",t)},onInput:function(){var t=this.getValue(this.selected);t&&t===this.newValue||(this.$emit("typing",this.newValue),this.checkValidity())},rightIconClick:function(t){this.clearable?(this.newValue="",this.setSelected(null,!1),this.openOnFocus&&this.$refs.input.$el.focus()):this.$emit("icon-right-click",t)},checkValidity:function(){var t=this;this.useHtml5Validation&&this.$nextTick(function(){t.checkHtml5Validity()})},updateAppendToBody:function(){var t=this.$refs.dropdown,n=this.$refs.input.$el;if(t&&n){var r=this.$data._bodyEl;r.classList.forEach(function(u){return r.classList.remove(u)}),r.classList.add("autocomplete"),r.classList.add("control"),this.expandend&&r.classList.add("is-expandend");var s=n.getBoundingClientRect(),o=s.top+window.scrollY,c=s.left+window.scrollX;this.isOpenedTop?o-=t.clientHeight:o+=n.clientHeight,this.style={position:"absolute",top:"".concat(o,"px"),left:"".concat(c,"px"),width:"".concat(n.clientWidth,"px"),maxWidth:"".concat(n.clientWidth,"px"),zIndex:"99"}}}},created:function(){typeof window!="undefined"&&(document.addEventListener("click",this.clickedOutside),this.dropdownPosition==="auto"&&window.addEventListener("resize",this.calcDropdownInViewportVertical))},mounted:function(){var t=this;if(this.checkInfiniteScroll&&this.$refs.dropdown&&this.$refs.dropdown.querySelector(".dropdown-content")){var n=this.$refs.dropdown.querySelector(".dropdown-content");n.addEventListener("scroll",function(){return t.checkIfReachedTheEndOfScroll(n)})}this.appendToBody&&(this.$data._bodyEl=lp(this.$refs.dropdown),this.updateAppendToBody())},beforeDestroy:function(){if(typeof window!="undefined"&&(document.removeEventListener("click",this.clickedOutside),this.dropdownPosition==="auto"&&window.removeEventListener("resize",this.calcDropdownInViewportVertical)),this.checkInfiniteScroll&&this.$refs.dropdown&&this.$refs.dropdown.querySelector(".dropdown-content")){var t=this.$refs.dropdown.querySelector(".dropdown-content");t.removeEventListener("scroll",this.checkIfReachedTheEndOfScroll)}this.appendToBody&&Ui(this.$data._bodyEl)}};const uF=oF;var lF=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"autocomplete control",class:{"is-expanded":e.expanded}},[n("b-input",e._b({ref:"input",attrs:{type:e.type,size:e.size,loading:e.loading,rounded:e.rounded,icon:e.icon,"icon-right":e.newIconRight,"icon-right-clickable":e.newIconRightClickable,"icon-pack":e.iconPack,maxlength:e.maxlength,autocomplete:e.newAutocomplete,"use-html5-validation":!1,"aria-autocomplete":e.ariaAutocomplete},on:{input:e.onInput,focus:e.focused,blur:e.onBlur,"icon-right-click":e.rightIconClick,"icon-click":function(r){return e.$emit("icon-click",r)}},nativeOn:{keydown:[function(r){return e.keydown(r)},function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"up",38,r.key,["Up","ArrowUp"])?null:(r.preventDefault(),e.keyArrows("up"))},function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"down",40,r.key,["Down","ArrowDown"])?null:(r.preventDefault(),e.keyArrows("down"))}]},model:{value:e.newValue,callback:function(r){e.newValue=r},expression:"newValue"}},"b-input",e.$attrs,!1)),n("transition",{attrs:{name:"fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive&&(!e.isEmpty||e.hasEmptySlot||e.hasHeaderSlot),expression:"isActive && (!isEmpty || hasEmptySlot || hasHeaderSlot)"}],ref:"dropdown",staticClass:"dropdown-menu",class:{"is-opened-top":e.isOpenedTop&&!e.appendToBody},style:e.style},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"dropdown-content",style:e.contentStyle},[e.hasHeaderSlot?n("div",{staticClass:"dropdown-item dropdown-header",class:{"is-hovered":e.headerHovered},attrs:{role:"button",tabindex:"0"},on:{click:function(r){return e.selectHeaderOrFoterByClick(r,"header")}}},[e._t("header")],2):e._e(),e._l(e.computedData,function(r,s){return[r.group?n("div",{key:s+"group",staticClass:"dropdown-item"},[e.hasGroupSlot?e._t("group",null,{group:r.group,index:s}):n("span",{staticClass:"has-text-weight-bold"},[e._v(" "+e._s(r.group)+" ")])],2):e._e(),e._l(r.items,function(o,c){return n("a",{key:s+":"+c,staticClass:"dropdown-item",class:{"is-hovered":o===e.hovered},attrs:{role:"button",tabindex:"0"},on:{click:function(u){return u.stopPropagation(),e.setSelected(o,!e.keepOpen,u)}}},[e.hasDefaultSlot?e._t("default",null,{option:o,index:c}):n("span",[e._v(" "+e._s(e.getValue(o,!0))+" ")])],2)})]}),e.isEmpty&&e.hasEmptySlot?n("div",{staticClass:"dropdown-item is-disabled"},[e._t("empty")],2):e._e(),e.hasFooterSlot?n("div",{staticClass:"dropdown-item dropdown-footer",class:{"is-hovered":e.footerHovered},attrs:{role:"button",tabindex:"0"},on:{click:function(r){return e.selectHeaderOrFoterByClick(r,"footer")}}},[e._t("footer")],2):e._e()],2)])])],1)},cF=[];const fF=void 0,dF=void 0,hF=void 0,pF=!1;var zd=me({render:lF,staticRenderFns:cF},fF,uF,dF,pF,hF,void 0,void 0),U0={install:function(t){_e(t,zd)}};Oe(U0);var mF=U0,vF={name:"BBreadcrumb",props:{align:{type:String,default:function(){return Q.defaultBreadcrumbAlign}},separator:{type:String,default:function(){return Q.defaultBreadcrumbSeparator}},size:{type:String,default:function(){return Q.defaultBreadcrumbSize}}},computed:{breadcrumbClasses:function(){return["breadcrumb",this.align,this.separator,this.size]}}};const gF=vF;var yF=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("nav",{class:e.breadcrumbClasses},[n("ul",[e._t("default")],2)])},_F=[];const bF=void 0,SF=void 0,wF=void 0,CF=!1;var xF=me({render:yF,staticRenderFns:_F},bF,gF,SF,CF,wF,void 0,void 0),TF={name:"BBreadcrumbItem",inheritAttrs:!1,props:{tag:{type:String,default:function(){return Q.defaultBreadcrumbTag}},active:Boolean}};const AF=TF;var PF=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{class:{"is-active":e.active}},[n(e.tag,e._g(e._b({tag:"component"},"component",e.$attrs,!1),e.$listeners),[e._t("default")],2)],1)},OF=[];const kF=void 0,$F=void 0,EF=void 0,MF=!1;var RF=me({render:PF,staticRenderFns:OF},kF,AF,$F,MF,EF,void 0,void 0),H0={install:function(t){_e(t,xF),_e(t,RF)}};Oe(H0);var DF=H0,IF={name:"BButton",components:fe({},Fe.name,Fe),inheritAttrs:!1,props:{type:[String,Object],size:String,label:String,iconPack:String,iconLeft:String,iconRight:String,rounded:{type:Boolean,default:function(){return Q.defaultButtonRounded}},loading:Boolean,outlined:Boolean,expanded:Boolean,inverted:Boolean,focused:Boolean,active:Boolean,hovered:Boolean,selected:Boolean,nativeType:{type:String,default:"button",validator:function(t){return["button","submit","reset"].indexOf(t)>=0}},tag:{type:String,default:"button",validator:function(t){return Q.defaultLinkTags.indexOf(t)>=0}}},computed:{computedTag:function(){return this.$attrs.disabled!==void 0&&this.$attrs.disabled!==!1?"button":this.tag},iconSize:function(){return!this.size||this.size==="is-medium"?"is-small":this.size==="is-large"?"is-medium":this.size}}};const NF=IF;var FF=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.computedTag,e._g(e._b({tag:"component",staticClass:"button",class:[e.size,e.type,{"is-rounded":e.rounded,"is-loading":e.loading,"is-outlined":e.outlined,"is-fullwidth":e.expanded,"is-inverted":e.inverted,"is-focused":e.focused,"is-active":e.active,"is-hovered":e.hovered,"is-selected":e.selected}],attrs:{type:e.computedTag==="button"?e.nativeType:void 0}},"component",e.$attrs,!1),e.$listeners),[e.iconLeft?n("b-icon",{attrs:{pack:e.iconPack,icon:e.iconLeft,size:e.iconSize}}):e._e(),e.label?n("span",[e._v(e._s(e.label))]):e.$slots.default?n("span",[e._t("default")],2):e._e(),e.iconRight?n("b-icon",{attrs:{pack:e.iconPack,icon:e.iconRight,size:e.iconSize}}):e._e()],1)},LF=[];const BF=void 0,zF=void 0,jF=void 0,qF=!1;var jd=me({render:FF,staticRenderFns:LF},BF,NF,zF,qF,jF,void 0,void 0),W0={install:function(t){_e(t,jd)}};Oe(W0);var VF=W0,UF=1,G0=3,Y0=G0,Ll=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n={provide:function(){return fe({},"b"+e,this)}};return sl(t,UF)&&(n.data=function(){return{childItems:[]}},n.methods={_registerItem:function(s){this.childItems.push(s)},_unregisterItem:function(s){this.childItems=this.childItems.filter(function(o){return o!==s})}},sl(t,G0)&&(n.watch={childItems:function(s){if(s.length>0&&this.$scopedSlots.default){var o=s[0].$vnode.tag,c=0,u=function i(a){var l=!0,d=!1,p=void 0;try{for(var v=function(){var C=_.value;if(C.tag===o){var T=s.find(function(L){return L.$vnode===C});T&&(T.index=c++)}else if(C.tag){var $=C.componentInstance?C.componentInstance.$scopedSlots.default?C.componentInstance.$scopedSlots.default():C.componentInstance.$children:C.children;Array.isArray($)&&$.length>0&&i($.map(function(L){return L.$vnode}))}},g=a[Symbol.iterator](),_;!(l=(_=g.next()).done);l=!0)v()}catch(b){d=!0,p=b}finally{try{!l&&g.return!=null&&g.return()}finally{if(d)throw p}}return!1};u(this.$scopedSlots.default())}}},n.computed={sortedItems:function(){return this.childItems.slice().sort(function(s,o){return s.index-o.index})}})),n},K0=1,HF=2,X0=K0,Bl=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n={inject:{parent:{from:"b"+e,default:!1}},created:function(){if(this.parent)this.parent._registerItem&&this.parent._registerItem(this);else if(!sl(t,HF))throw this.$destroy(),new Error("You should wrap "+this.$options.name+" in a "+e)},beforeDestroy:function(){this.parent&&this.parent._unregisterItem&&this.parent._unregisterItem(this)}};return sl(t,K0)&&(n.data=function(){return{index:null}}),n},WF={name:"BImage",props:{src:String,alt:String,srcFallback:String,webpFallback:{type:String,default:function(){return Q.defaultImageWebpFallback}},lazy:{type:Boolean,default:function(){return Q.defaultImageLazy}},responsive:{type:Boolean,default:function(){return Q.defaultImageResponsive}},ratio:{type:String,default:function(){return Q.defaultImageRatio}},placeholder:String,srcset:String,srcsetSizes:Array,srcsetFormatter:{type:Function,default:function(t,n,r){return typeof Q.defaultImageSrcsetFormatter=="function"?Q.defaultImageSrcsetFormatter(t,n):r.formatSrcset(t,n)}},rounded:{type:Boolean,default:!1},captionFirst:{type:Boolean,default:!1},customClass:String},data:function(){return{clientWidth:0,webpSupportVerified:!1,webpSupported:!1,useNativeLazy:!1,observer:null,inViewPort:!1,bulmaKnownRatio:["square","1by1","5by4","4by3","3by2","5by3","16by9","b2y1","3by1","4by5","3by4","2by3","3by5","9by16","1by2","1by3"],loaded:!1,failed:!1}},computed:{ratioPattern:function(){return new RegExp(/([0-9]+)by([0-9]+)/)},hasRatio:function(){return this.ratio&&this.ratioPattern.test(this.ratio)},figureClasses:function(){var t={image:this.responsive};return this.hasRatio&&this.bulmaKnownRatio.indexOf(this.ratio)>=0&&(t["is-".concat(this.ratio)]=!0),t},figureStyles:function(){if(this.hasRatio&&this.bulmaKnownRatio.indexOf(this.ratio)<0){var t=this.ratioPattern.exec(this.ratio);return{paddingTop:"".concat(t[2]/t[1]*100,"%")}}},imgClasses:function(){return fe({"is-rounded":this.rounded,"has-ratio":this.hasRatio},this.customClass,!!this.customClass)},srcExt:function(){return this.getExt(this.src)},isWepb:function(){return this.srcExt==="webp"},computedSrc:function(){var t=this.src;return this.failed&&this.srcFallback&&(t=this.srcFallback),!this.webpSupported&&this.isWepb&&this.webpFallback?this.webpFallback.startsWith(".")?t.replace(/\.webp/gi,"".concat(this.webpFallback)):this.webpFallback:t},computedWidth:function(){if(this.responsive&&this.clientWidth>0)return this.clientWidth},computedNativeLazy:function(){if(this.lazy&&this.useNativeLazy)return"lazy"},isDisplayed:function(){return(this.webpSupportVerified||!this.isWepb)&&(!this.lazy||this.useNativeLazy||this.inViewPort)},placeholderExt:function(){if(this.placeholder)return this.getExt(this.placeholder)},isPlaceholderWepb:function(){if(this.placeholder)return this.placeholderExt==="webp"},computedPlaceholder:function(){return!this.webpSupported&&this.isPlaceholderWepb&&this.webpFallback&&this.webpFallback.startsWith(".")?this.placeholder.replace(/\.webp/gi,"".concat(this.webpFallback)):this.placeholder},isPlaceholderDisplayed:function(){return!this.loaded&&(this.$slots.placeholder||this.placeholder&&(this.webpSupportVerified||!this.isPlaceholderWepb))},computedSrcset:function(){var t=this;if(this.srcset)return!this.webpSupported&&this.isWepb&&this.webpFallback&&this.webpFallback.startsWith(".")?this.srcset.replace(/\.webp/gi,"".concat(this.webpFallback)):this.srcset;if(this.srcsetSizes&&Array.isArray(this.srcsetSizes)&&this.srcsetSizes.length>0)return this.srcsetSizes.map(function(n){return"".concat(t.srcsetFormatter(t.computedSrc,n,t)," ").concat(n,"w")}).join(",")},computedSizes:function(){if(this.computedSrcset&&this.computedWidth)return"".concat(this.computedWidth,"px")},isCaptionFirst:function(){return this.$slots.caption&&this.captionFirst},isCaptionLast:function(){return this.$slots.caption&&!this.captionFirst}},methods:{getExt:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(t){var r=n?t.split("?")[0]:t;return r.split(".").pop()}return""},setWidth:function(){this.clientWidth=this.$el.clientWidth},formatSrcset:function(t,n){var r=this.getExt(t,!1),s=t.split(".").slice(0,-1).join(".");return"".concat(s,"-").concat(n,".").concat(r)},onLoad:function(t){this.loaded=!0,this.emit("load",t)},onError:function(t){this.emit("error",t),this.failed||(this.failed=!0)},emit:function(t,n){var r=n.target;this.$emit(t,n,r.currentSrc||r.src||this.computedSrc)}},created:function(){var t=this;if(this.isWepb&&jN().then(function(s){t.webpSupportVerified=!0,t.webpSupported=s}),this.lazy){var n=typeof window!="undefined"&&"HTMLImageElement"in window&&"loading"in HTMLImageElement.prototype,r=typeof window!="undefined"&&"IntersectionObserver"in window;!n&&r?this.observer=new IntersectionObserver(function(s){var o=s[0],c=o.target,u=o.isIntersecting;u&&!t.inViewPort&&(t.inViewPort=!0,t.observer.unobserve(c))}):this.useNativeLazy=!0}},mounted:function(){this.lazy&&this.observer&&this.observer.observe(this.$el),this.setWidth(),typeof window!="undefined"&&window.addEventListener("resize",this.setWidth)},beforeDestroy:function(){this.observer&&this.observer.disconnect(),typeof window!="undefined"&&window.removeEventListener("resize",this.setWidth)}};const GF=WF;var YF=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("figure",{staticClass:"b-image-wrapper",class:e.figureClasses,style:e.figureStyles},[e.isCaptionFirst?n("figcaption",[e._t("caption")],2):e._e(),n("transition",{attrs:{name:"fade"}},[e.isDisplayed?n("img",{class:e.imgClasses,attrs:{srcset:e.computedSrcset,src:e.computedSrc,alt:e.alt,width:e.computedWidth,sizes:e.computedSizes,loading:e.computedNativeLazy},on:{load:e.onLoad,error:e.onError}}):e._e()]),n("transition",{attrs:{name:"fade"}},[e.isPlaceholderDisplayed?e._t("placeholder",[n("img",{staticClass:"placeholder",class:e.imgClasses,attrs:{src:e.computedPlaceholder,alt:e.alt}})]):e._e()],2),e.isCaptionLast?n("figcaption",[e._t("caption")],2):e._e()],1)},KF=[];const XF=void 0,QF=void 0,ZF=void 0,JF=!1;var qd=me({render:YF,staticRenderFns:KF},XF,GF,QF,JF,ZF,void 0,void 0),eL={name:"BCarousel",components:fe({},Fe.name,Fe),mixins:[Ll("carousel",Y0)],props:{value:{type:Number,default:0},animated:{type:String,default:"slide"},interval:Number,hasDrag:{type:Boolean,default:!0},autoplay:{type:Boolean,default:!0},pauseHover:{type:Boolean,default:!0},pauseInfo:{type:Boolean,default:!0},pauseInfoType:{type:String,default:"is-white"},pauseText:{type:String,default:"Pause"},arrow:{type:Boolean,default:!0},arrowHover:{type:Boolean,default:!0},repeat:{type:Boolean,default:!0},iconPack:String,iconSize:String,iconPrev:{type:String,default:function(){return Q.defaultIconPrev}},iconNext:{type:String,default:function(){return Q.defaultIconNext}},indicator:{type:Boolean,default:!0},indicatorBackground:Boolean,indicatorCustom:Boolean,indicatorCustomSize:{type:String,default:"is-small"},indicatorInside:{type:Boolean,default:!0},indicatorMode:{type:String,default:"click"},indicatorPosition:{type:String,default:"is-bottom"},indicatorStyle:{type:String,default:"is-dots"},overlay:Boolean,progress:Boolean,progressType:{type:String,default:"is-primary"},withCarouselList:Boolean},data:function(){return{transition:"next",activeChild:this.value||0,isPause:!1,dragX:!1,timer:null}},computed:{indicatorClasses:function(){return[{"has-background":this.indicatorBackground,"has-custom":this.indicatorCustom,"is-inside":this.indicatorInside},this.indicatorCustom&&this.indicatorCustomSize,this.indicatorInside&&this.indicatorPosition]},hasPrev:function(){return this.repeat||this.activeChild!==0},hasNext:function(){return this.repeat||this.activeChild=t.length&&this.activeChild>0&&this.changeActive(this.activeChild-1)},autoplay:function(t){t?this.startTimer():this.pauseTimer()},repeat:function(t){t&&this.startTimer()}},methods:{startTimer:function(){var t=this;!this.autoplay||this.timer||(this.isPause=!1,this.timer=setInterval(function(){!t.repeat&&t.activeChild>=t.childItems.length-1?t.pauseTimer():t.next()},this.interval||Q.defaultCarouselInterval))},pauseTimer:function(){this.isPause=!0,this.timer&&(clearInterval(this.timer),this.timer=null)},restartTimer:function(){this.pauseTimer(),this.startTimer()},checkPause:function(){this.pauseHover&&this.autoplay&&this.pauseTimer()},changeActive:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.activeChild===t||isNaN(t)||(n=n||t-this.activeChild,t=this.repeat?j0(t,this.childItems.length):Ni(t,0,this.childItems.length-1),this.transition=n>0?"prev":"next",this.activeChild=t,t!==this.value&&this.$emit("input",t),this.restartTimer(),this.$emit("change",t))},modeChange:function(t,n){if(this.indicatorMode===t)return this.changeActive(n)},prev:function(){this.changeActive(this.activeChild-1,-1)},next:function(){this.changeActive(this.activeChild+1,1)},dragStart:function(t){!this.hasDrag||!t.target.draggable||(this.dragX=t.touches?t.changedTouches[0].pageX:t.pageX,t.touches?this.pauseTimer():t.preventDefault())},dragEnd:function(t){if(this.dragX!==!1){var n=t.touches?t.changedTouches[0].pageX:t.pageX,r=n-this.dragX;Math.abs(r)>30?r<0?this.next():this.prev():(t.target.click(),this.sortedItems[this.activeChild].$emit("click"),this.$emit("click")),t.touches&&this.startTimer(),this.dragX=!1}}},mounted:function(){this.startTimer()},beforeDestroy:function(){this.pauseTimer()}};const tL=eL;var nL=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"carousel",class:{"is-overlay":e.overlay},on:{mouseenter:e.checkPause,mouseleave:e.startTimer}},[e.progress?n("progress",{staticClass:"progress",class:e.progressType,attrs:{max:e.childItems.length-1},domProps:{value:e.activeChild}},[e._v(" "+e._s(e.childItems.length-1)+" ")]):e._e(),n("div",{staticClass:"carousel-items",on:{mousedown:e.dragStart,mouseup:e.dragEnd,touchstart:function(r){return r.stopPropagation(),e.dragStart(r)},touchend:function(r){return r.stopPropagation(),e.dragEnd(r)}}},[e._t("default"),e.arrow?n("div",{staticClass:"carousel-arrow",class:{"is-hovered":e.arrowHover}},[n("b-icon",{directives:[{name:"show",rawName:"v-show",value:e.hasPrev,expression:"hasPrev"}],staticClass:"has-icons-left",attrs:{pack:e.iconPack,icon:e.iconPrev,size:e.iconSize,both:""},nativeOn:{click:function(r){return e.prev(r)}}}),n("b-icon",{directives:[{name:"show",rawName:"v-show",value:e.hasNext,expression:"hasNext"}],staticClass:"has-icons-right",attrs:{pack:e.iconPack,icon:e.iconNext,size:e.iconSize,both:""},nativeOn:{click:function(r){return e.next(r)}}})],1):e._e()],2),e.autoplay&&e.pauseHover&&e.pauseInfo&&e.isPause?n("div",{staticClass:"carousel-pause"},[n("span",{staticClass:"tag",class:e.pauseInfoType},[e._v(" "+e._s(e.pauseText)+" ")])]):e._e(),e.withCarouselList&&!e.indicator?[e._t("list",null,{active:e.activeChild,switch:e.changeActive})]:e._e(),e.indicator?n("div",{staticClass:"carousel-indicator",class:e.indicatorClasses},e._l(e.sortedItems,function(r,s){return n("a",{key:r._uid,staticClass:"indicator-item",class:{"is-active":r.isActive},on:{mouseover:function(o){return e.modeChange("hover",s)},click:function(o){return e.modeChange("click",s)}}},[e._t("indicators",[n("span",{staticClass:"indicator-style",class:e.indicatorStyle})],{i:s})],2)}),0):e._e(),e.overlay?[e._t("overlay")]:e._e()],2)},iL=[];const rL=void 0,aL=void 0,sL=void 0,oL=!1;var uL=me({render:nL,staticRenderFns:iL},rL,tL,aL,oL,sL,void 0,void 0),lL={name:"BCarouselItem",mixins:[Bl("carousel",X0)],data:function(){return{transitionName:null}},computed:{transition:function(){if(this.parent.animated==="fade")return"fade";if(this.parent.transition)return"slide-"+this.parent.transition},isActive:function(){return this.parent.activeChild===this.index}}};const cL=lL;var fL=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:e.transition}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"carousel-item"},[e._t("default")],2)])},dL=[];const hL=void 0,pL=void 0,mL=void 0,vL=!1;var gL=me({render:fL,staticRenderFns:dL},hL,cL,pL,vL,mL,void 0,void 0),du,yL={name:"BCarouselList",components:(du={},fe(du,Fe.name,Fe),fe(du,qd.name,qd),du),props:{data:{type:Array,default:function(){return[]}},value:{type:Number,default:0},scrollValue:{type:Number,default:0},hasDrag:{type:Boolean,default:!0},hasGrayscale:Boolean,hasOpacity:Boolean,repeat:Boolean,itemsToShow:{type:Number,default:4},itemsToList:{type:Number,default:1},asIndicator:Boolean,arrow:{type:Boolean,default:!0},arrowHover:{type:Boolean,default:!0},iconPack:String,iconSize:String,iconPrev:{type:String,default:function(){return Q.defaultIconPrev}},iconNext:{type:String,default:function(){return Q.defaultIconNext}},breakpoints:{type:Object,default:function(){return{}}}},data:function(){return{activeItem:this.value,scrollIndex:this.asIndicator?this.scrollValue:this.value,delta:0,dragX:!1,hold:0,windowWidth:0,touch:!1,observer:null,refresh_:0}},computed:{dragging:function(){return this.dragX!==!1},listClass:function(){return[{"has-grayscale":this.settings.hasGrayscale,"has-opacity":this.settings.hasOpacity,"is-dragging":this.dragging}]},itemStyle:function(){return"width: ".concat(this.itemWidth,"px;")},translation:function(){return-Ni(this.delta+this.scrollIndex*this.itemWidth,0,(this.data.length-this.settings.itemsToShow)*this.itemWidth)},total:function(){return this.data.length-this.settings.itemsToShow},hasPrev:function(){return this.settings.repeat||this.scrollIndex>0},hasNext:function(){return this.settings.repeat||this.scrollIndex=r)return!0})[0];return n?Ld({},this.$props,{},this.breakpoints[n]):this.$props},itemWidth:function(){if(this.windowWidth){this.refresh_;var t=this.$el.getBoundingClientRect();return t.width/this.settings.itemsToShow}return 0}},watch:{value:function(t){this.switchTo(this.asIndicator?t-(this.itemsToShow-3)/2:t),this.activeItem!==t&&(this.activeItem=Ni(t,0,this.data.length-1))},scrollValue:function(t){this.switchTo(t)}},methods:{resized:function(){this.windowWidth=window.innerWidth},switchTo:function(t){t===this.scrollIndex||isNaN(t)||(this.settings.repeat&&(t=j0(t,this.total+1)),t=Ni(t,0,this.total),this.scrollIndex=t,!this.asIndicator&&this.value!==t?this.$emit("input",t):this.scrollIndex!==t&&this.$emit("updated:scroll",t))},next:function(){this.switchTo(this.scrollIndex+this.settings.itemsToList)},prev:function(){this.switchTo(this.scrollIndex-this.settings.itemsToList)},checkAsIndicator:function(t,n){if(!!this.asIndicator){var r=n.changedTouches?n.changedTouches[0].clientX:n.clientX;this.hold-Date.now()>2e3||Math.abs(this.dragX-r)>10||(this.dragX=!1,this.hold=0,n.preventDefault(),this.activeItem=t,this.$emit("switch",t))}},dragStart:function(t){this.dragging||!this.settings.hasDrag||t.button!==0&&t.type!=="touchstart"||(this.hold=Date.now(),this.touch=!!t.touches,this.dragX=this.touch?t.touches[0].clientX:t.clientX,window.addEventListener(this.touch?"touchmove":"mousemove",this.dragMove),window.addEventListener(this.touch?"touchend":"mouseup",this.dragEnd))},dragMove:function(t){if(!!this.dragging){var n=t.touches?(t.changedTouches[0]||t.touches[0]).clientX:t.clientX;this.delta=this.dragX-n,t.touches||t.preventDefault()}},dragEnd:function(){if(!(!this.dragging&&!this.hold)){if(this.hold){var t=NN(this.delta),n=Math.round(Math.abs(this.delta/this.itemWidth)+.15);this.switchTo(this.scrollIndex+t*n)}this.delta=0,this.dragX=!1,window.removeEventListener(this.touch?"touchmove":"mousemove",this.dragMove),window.removeEventListener(this.touch?"touchend":"mouseup",this.dragEnd)}},refresh:function(){var t=this;this.$nextTick(function(){t.refresh_++})}},mounted:function(){if(typeof window!="undefined"&&(window.ResizeObserver&&(this.observer=new ResizeObserver(this.refresh),this.observer.observe(this.$el)),window.addEventListener("resize",this.resized),document.addEventListener("animationend",this.refresh),document.addEventListener("transitionend",this.refresh),document.addEventListener("transitionstart",this.refresh),this.resized()),this.$attrs.config)throw new Error("The config prop was removed, you need to use v-bind instead")},beforeDestroy:function(){typeof window!="undefined"&&(window.ResizeObserver&&this.observer.disconnect(),window.removeEventListener("resize",this.resized),document.removeEventListener("animationend",this.refresh),document.removeEventListener("transitionend",this.refresh),document.removeEventListener("transitionstart",this.refresh),this.dragEnd())}};const _L=yL;var bL=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"carousel-list",class:{"has-shadow":e.scrollIndex>0},on:{mousedown:function(r){return r.preventDefault(),e.dragStart(r)},touchstart:e.dragStart}},[n("div",{staticClass:"carousel-slides",class:e.listClass,style:"transform:translateX("+e.translation+"px)"},e._l(e.data,function(r,s){return n("div",{key:s,staticClass:"carousel-slide",class:{"is-active":e.asIndicator?e.activeItem===s:e.scrollIndex===s},style:e.itemStyle,on:{mouseup:function(o){return e.checkAsIndicator(s,o)},touchend:function(o){return e.checkAsIndicator(s,o)}}},[e._t("item",[n("b-image",e._b({attrs:{src:r.image}},"b-image",r,!1))],{index:s,active:e.activeItem,scroll:e.scrollIndex,list:r},r)],2)}),0),e.arrow?n("div",{staticClass:"carousel-arrow",class:{"is-hovered":e.settings.arrowHover}},[n("b-icon",{directives:[{name:"show",rawName:"v-show",value:e.hasPrev,expression:"hasPrev"}],staticClass:"has-icons-left",attrs:{pack:e.settings.iconPack,icon:e.settings.iconPrev,size:e.settings.iconSize,both:""},nativeOn:{click:function(r){return r.preventDefault(),e.prev(r)}}}),n("b-icon",{directives:[{name:"show",rawName:"v-show",value:e.hasNext,expression:"hasNext"}],staticClass:"has-icons-right",attrs:{pack:e.settings.iconPack,icon:e.settings.iconNext,size:e.settings.iconSize,both:""},nativeOn:{click:function(r){return r.preventDefault(),e.next(r)}}})],1):e._e()])},SL=[];const wL=void 0,CL=void 0,xL=void 0,TL=!1;var AL=me({render:bL,staticRenderFns:SL},wL,_L,CL,TL,xL,void 0,void 0),Q0={install:function(t){_e(t,uL),_e(t,gL),_e(t,AL)}};Oe(Q0);var PL=Q0,zl={props:{value:[String,Number,Boolean,Function,Object,Array],nativeValue:[String,Number,Boolean,Function,Object,Array],type:String,disabled:Boolean,required:Boolean,name:String,size:String},data:function(){return{newValue:this.value}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){this.newValue=t,this.$emit("input",t)}}},watch:{value:function(t){this.newValue=t}},methods:{focus:function(){this.$refs.input.focus()}}},OL={name:"BCheckbox",mixins:[zl],props:{indeterminate:Boolean,ariaLabelledby:String,trueValue:{type:[String,Number,Boolean,Function,Object,Array],default:!0},falseValue:{type:[String,Number,Boolean,Function,Object,Array],default:!1},autocomplete:{type:String,default:"on"}}};const kL=OL;var $L=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{ref:"label",staticClass:"b-checkbox checkbox",class:[e.size,{"is-disabled":e.disabled}],attrs:{disabled:e.disabled},on:{click:e.focus,keydown:[function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:(r.preventDefault(),e.$refs.label.click())},function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"space",32,r.key,[" ","Spacebar"])?null:(r.preventDefault(),e.$refs.label.click())}]}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"checkbox",autocomplete:e.autocomplete,disabled:e.disabled,required:e.required,name:e.name,"true-value":e.trueValue,"false-value":e.falseValue,"aria-labelledby":e.ariaLabelledby},domProps:{indeterminate:e.indeterminate,value:e.nativeValue,checked:Array.isArray(e.computedValue)?e._i(e.computedValue,e.nativeValue)>-1:e._q(e.computedValue,e.trueValue)},on:{click:function(r){r.stopPropagation()},change:function(r){var s=e.computedValue,o=r.target,c=o.checked?e.trueValue:e.falseValue;if(Array.isArray(s)){var u=e.nativeValue,i=e._i(s,u);o.checked?i<0&&(e.computedValue=s.concat([u])):i>-1&&(e.computedValue=s.slice(0,i).concat(s.slice(i+1)))}else e.computedValue=c}}}),n("span",{staticClass:"check",class:e.type}),n("span",{staticClass:"control-label",attrs:{id:e.ariaLabelledby}},[e._t("default")],2)])},EL=[];const ML=void 0,RL=void 0,DL=void 0,IL=!1;var Vd=me({render:$L,staticRenderFns:EL},ML,kL,RL,IL,DL,void 0,void 0),NL={name:"BCheckboxButton",mixins:[zl],props:{type:{type:String,default:"is-primary"},expanded:Boolean},data:function(){return{isFocused:!1}},computed:{checked:function(){return Array.isArray(this.newValue)?this.newValue.indexOf(this.nativeValue)>=0:this.newValue===this.nativeValue}}};const FL=NL;var LL=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"control",class:{"is-expanded":e.expanded}},[n("label",{ref:"label",staticClass:"b-checkbox checkbox button",class:[e.checked?e.type:null,e.size,{"is-disabled":e.disabled,"is-focused":e.isFocused}],attrs:{disabled:e.disabled},on:{click:e.focus,keydown:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:(r.preventDefault(),e.$refs.label.click())}}},[e._t("default"),n("input",{directives:[{name:"model",rawName:"v-model",value:e.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"checkbox",disabled:e.disabled,required:e.required,name:e.name},domProps:{value:e.nativeValue,checked:Array.isArray(e.computedValue)?e._i(e.computedValue,e.nativeValue)>-1:e.computedValue},on:{click:function(r){r.stopPropagation()},focus:function(r){e.isFocused=!0},blur:function(r){e.isFocused=!1},change:function(r){var s=e.computedValue,o=r.target,c=!!o.checked;if(Array.isArray(s)){var u=e.nativeValue,i=e._i(s,u);o.checked?i<0&&(e.computedValue=s.concat([u])):i>-1&&(e.computedValue=s.slice(0,i).concat(s.slice(i+1)))}else e.computedValue=c}}})],2)])},BL=[];const zL=void 0,jL=void 0,qL=void 0,VL=!1;var UL=me({render:LL,staticRenderFns:BL},zL,FL,jL,VL,qL,void 0,void 0),Z0={install:function(t){_e(t,Vd),_e(t,UL)}};Oe(Z0);var HL=Z0,WL={name:"BCollapse",model:{prop:"open",event:"update:open"},props:{open:{type:Boolean,default:!0},animation:{type:String,default:"fade"},ariaId:{type:String,default:""},position:{type:String,default:"is-top",validator:function(t){return["is-top","is-bottom"].indexOf(t)>-1}}},data:function(){return{isOpen:this.open}},watch:{open:function(t){this.isOpen=t}},methods:{toggle:function(){this.isOpen=!this.isOpen,this.$emit("update:open",this.isOpen),this.$emit(this.isOpen?"open":"close")}},render:function(t){var n=t("div",{staticClass:"collapse-trigger",on:{click:this.toggle}},this.$scopedSlots.trigger?[this.$scopedSlots.trigger({open:this.isOpen})]:[this.$slots.trigger]),r=t("transition",{props:{name:this.animation}},[t("div",{staticClass:"collapse-content",attrs:{id:this.ariaId},directives:[{name:"show",value:this.isOpen}]},this.$slots.default)]);return t("div",{staticClass:"collapse"},this.position==="is-top"?[n,r]:[r,n])}};const GL=WL,YL=void 0,KL=void 0,XL=void 0,QL=void 0;var ZL=me({},YL,GL,KL,QL,XL,void 0,void 0),J0={install:function(t){_e(t,ZL)}};Oe(J0);var JL=J0,Rs="AM",Ds="PM",hu="24",za="12",eB=function(t,n){return n.dtf.format(t)},tB=function(t,n){if(t){var r=null;if(n.computedValue&&!isNaN(n.computedValue)?r=new Date(n.computedValue):(r=n.timeCreator(),r.setMilliseconds(0)),n.dtf.formatToParts&&typeof n.dtf.formatToParts=="function"){var s=n.dtf.formatToParts(r).map(function(p){return p.type==="literal"?p.value.replace(/ /g,"\\s?"):p.type==="dayPeriod"?"((?!=<".concat(p.type,">)(").concat(n.amString,"|").concat(n.pmString,"|").concat(Rs,"|").concat(Ds,"|").concat(Rs.toLowerCase(),"|").concat(Ds.toLowerCase(),")?)"):"((?!=<".concat(p.type,">)\\d+)")}).join(""),o=cp(s,t);if(o.hour=o.hour?parseInt(o.hour,10):null,o.minute=o.minute?parseInt(o.minute,10):null,o.second=o.second?parseInt(o.second,10):null,o.hour&&o.hour>=0&&o.hour<24&&o.minute&&o.minute>=0&&o.minute<59)return o.dayPeriod&&(o.dayPeriod.toLowerCase()===n.pmString.toLowerCase()||o.dayPeriod.toLowerCase()===Ds.toLowerCase())&&o.hour<12&&(o.hour+=12),r.setHours(o.hour),r.setMinutes(o.minute),r.setSeconds(o.second||0),r}var c=!1;if(n.hourFormat===za){var u=t.split(" ");t=u[0],c=u[1]===n.amString||u[1]===Rs}var i=t.split(":"),a=parseInt(i[0],10),l=parseInt(i[1],10),d=n.enableSeconds?parseInt(i[2],10):0;return isNaN(a)||a<0||a>23||n.hourFormat===za&&(a<1||a>12)||isNaN(l)||l<0||l>59?null:(r.setSeconds(d),r.setMinutes(l),n.hourFormat===za&&(c&&a===12?a=0:!c&&a!==12&&(a+=12)),r.setHours(a),new Date(r.getTime()))}return null},eS={mixins:[li],inheritAttrs:!1,props:{value:Date,inline:Boolean,minTime:Date,maxTime:Date,placeholder:String,editable:Boolean,disabled:Boolean,hourFormat:{type:String,validator:function(t){return t===hu||t===za}},incrementHours:{type:Number,default:1},incrementMinutes:{type:Number,default:1},incrementSeconds:{type:Number,default:1},timeFormatter:{type:Function,default:function(t,n){return typeof Q.defaultTimeFormatter=="function"?Q.defaultTimeFormatter(t):eB(t,n)}},timeParser:{type:Function,default:function(t,n){return typeof Q.defaultTimeParser=="function"?Q.defaultTimeParser(t):tB(t,n)}},mobileNative:{type:Boolean,default:function(){return Q.defaultTimepickerMobileNative}},timeCreator:{type:Function,default:function(){return typeof Q.defaultTimeCreator=="function"?Q.defaultTimeCreator():new Date}},position:String,unselectableTimes:Array,openOnFocus:Boolean,enableSeconds:Boolean,defaultMinutes:Number,defaultSeconds:Number,focusable:{type:Boolean,default:!0},tzOffset:{type:Number,default:0},appendToBody:Boolean,resetOnMeridianChange:{type:Boolean,default:!1}},data:function(){return{dateSelected:this.value,hoursSelected:null,minutesSelected:null,secondsSelected:null,meridienSelected:null,_elementRef:"input",AM:Rs,PM:Ds,HOUR_FORMAT_24:hu,HOUR_FORMAT_12:za}},computed:{computedValue:{get:function(){return this.dateSelected},set:function(t){this.dateSelected=t,this.$emit("input",this.dateSelected)}},localeOptions:function(){return new Intl.DateTimeFormat(this.locale,{hour:"numeric",minute:"numeric",second:this.enableSeconds?"numeric":void 0}).resolvedOptions()},dtf:function(){return new Intl.DateTimeFormat(this.locale,{hour:this.localeOptions.hour||"numeric",minute:this.localeOptions.minute||"numeric",second:this.enableSeconds?this.localeOptions.second||"numeric":void 0,hourCycle:this.isHourFormat24?"h23":"h12"})},newHourFormat:function(){return this.hourFormat||(this.localeOptions.hour12?za:hu)},sampleTime:function(){var t=this.timeCreator();return t.setHours(10),t.setSeconds(0),t.setMinutes(0),t.setMilliseconds(0),t},hourLiteral:function(){if(this.dtf.formatToParts&&typeof this.dtf.formatToParts=="function"){var t=this.sampleTime,n=this.dtf.formatToParts(t),r=n.find(function(s,o){return o>0&&n[o-1].type==="hour"});if(r)return r.value}return":"},minuteLiteral:function(){if(this.dtf.formatToParts&&typeof this.dtf.formatToParts=="function"){var t=this.sampleTime,n=this.dtf.formatToParts(t),r=n.find(function(s,o){return o>0&&n[o-1].type==="minute"});if(r)return r.value}return":"},secondLiteral:function(){if(this.dtf.formatToParts&&typeof this.dtf.formatToParts=="function"){var t=this.sampleTime,n=this.dtf.formatToParts(t),r=n.find(function(s,o){return o>0&&n[o-1].type==="second"});if(r)return r.value}},amString:function(){if(this.dtf.formatToParts&&typeof this.dtf.formatToParts=="function"){var t=this.sampleTime;t.setHours(10);var n=this.dtf.formatToParts(t).find(function(r){return r.type==="dayPeriod"});if(n)return n.value}return Rs},pmString:function(){if(this.dtf.formatToParts&&typeof this.dtf.formatToParts=="function"){var t=this.sampleTime;t.setHours(20);var n=this.dtf.formatToParts(t).find(function(r){return r.type==="dayPeriod"});if(n)return n.value}return Ds},hours:function(){if(!this.incrementHours||this.incrementHours<1)throw new Error("Hour increment cannot be null or less than 1.");for(var t=[],n=this.isHourFormat24?24:12,r=0;r=12?this.pmString:this.amString)},locale:function(){this.value||(this.meridienSelected=this.amString)},value:{handler:function(t){this.updateInternalState(t),!this.isValid&&this.$refs.input.checkHtml5Validity()},immediate:!0}},methods:{onMeridienChange:function(t){this.hoursSelected!==null&&this.resetOnMeridianChange?(this.hoursSelected=null,this.minutesSelected=null,this.secondsSelected=null,this.computedValue=null):this.hoursSelected!==null&&(t===this.pmString?this.hoursSelected+=12:t===this.amString&&(this.hoursSelected-=12)),this.updateDateSelected(this.hoursSelected,this.minutesSelected,this.enableSeconds?this.secondsSelected:0,t)},onHoursChange:function(t){!this.minutesSelected&&typeof this.defaultMinutes!="undefined"&&(this.minutesSelected=this.defaultMinutes),!this.secondsSelected&&typeof this.defaultSeconds!="undefined"&&(this.secondsSelected=this.defaultSeconds),this.updateDateSelected(parseInt(t,10),this.minutesSelected,this.enableSeconds?this.secondsSelected:0,this.meridienSelected)},onMinutesChange:function(t){!this.secondsSelected&&this.defaultSeconds&&(this.secondsSelected=this.defaultSeconds),this.updateDateSelected(this.hoursSelected,parseInt(t,10),this.enableSeconds?this.secondsSelected:0,this.meridienSelected)},onSecondsChange:function(t){this.updateDateSelected(this.hoursSelected,this.minutesSelected,parseInt(t,10),this.meridienSelected)},updateDateSelected:function(t,n,r,s){if(t!=null&&n!=null&&(!this.isHourFormat24&&s!==null||this.isHourFormat24)){var o=null;this.computedValue&&!isNaN(this.computedValue)?o=new Date(this.computedValue):(o=this.timeCreator(),o.setMilliseconds(0)),o.setHours(t),o.setMinutes(n),o.setSeconds(r),isNaN(o.getTime())||(this.computedValue=new Date(o.getTime()))}},updateInternalState:function(t){t?(this.hoursSelected=t.getHours(),this.minutesSelected=t.getMinutes(),this.secondsSelected=t.getSeconds(),this.meridienSelected=t.getHours()>=12?this.pmString:this.amString):(this.hoursSelected=null,this.minutesSelected=null,this.secondsSelected=null,this.meridienSelected=this.amString),this.dateSelected=t},isHourDisabled:function(t){var n=this,r=!1;if(this.minTime){var s=this.minTime.getHours(),o=this.minutes.every(function(i){return n.isMinuteDisabledForHour(t,i.value)});r=tc}if(this.unselectableTimes&&!r){var u=this.unselectableTimes.filter(function(i){return n.enableSeconds&&n.secondsSelected!==null?i.getHours()===t&&i.getMinutes()===n.minutesSelected&&i.getSeconds()===n.secondsSelected:n.minutesSelected!==null?i.getHours()===t&&i.getMinutes()===n.minutesSelected:!1});u.length>0?r=!0:r=this.minutes.every(function(i){return n.unselectableTimes.filter(function(a){return a.getHours()===t&&a.getMinutes()===i.value}).length>0})}return r},isMinuteDisabledForHour:function(t,n){var r=!1;if(this.minTime){var s=this.minTime.getHours(),o=this.minTime.getMinutes();r=t===s&&nu}return r},isMinuteDisabled:function(t){var n=this,r=!1;if(this.hoursSelected!==null&&(this.isHourDisabled(this.hoursSelected)?r=!0:r=this.isMinuteDisabledForHour(this.hoursSelected,t),this.unselectableTimes&&!r)){var s=this.unselectableTimes.filter(function(o){return n.enableSeconds&&n.secondsSelected!==null?o.getHours()===n.hoursSelected&&o.getMinutes()===t&&o.getSeconds()===n.secondsSelected:o.getHours()===n.hoursSelected&&o.getMinutes()===t});r=s.length>0}return r},isSecondDisabled:function(t){var n=this,r=!1;if(this.minutesSelected!==null){if(this.isMinuteDisabled(this.minutesSelected))r=!0;else{if(this.minTime){var s=this.minTime.getHours(),o=this.minTime.getMinutes(),c=this.minTime.getSeconds();r=this.hoursSelected===s&&this.minutesSelected===o&&ta}}if(this.unselectableTimes&&!r){var l=this.unselectableTimes.filter(function(d){return d.getHours()===n.hoursSelected&&d.getMinutes()===n.minutesSelected&&d.getSeconds()===t});r=l.length>0}}return r},onChange:function(t){var n=this.timeParser(t,this);this.updateInternalState(n),n&&!isNaN(n)?this.computedValue=n:(this.computedValue=null,this.$refs.input.newValue=this.computedValue)},toggle:function(t){this.$refs.dropdown&&(this.$refs.dropdown.isActive=typeof t=="boolean"?t:!this.$refs.dropdown.isActive)},close:function(){this.toggle(!1)},handleOnFocus:function(){this.onFocus(),this.openOnFocus&&this.toggle(!0)},formatHHMMSS:function(t){var n=new Date(t);if(t&&!isNaN(n)){var r=n.getHours(),s=n.getMinutes(),o=n.getSeconds();return this.formatNumber(r,!0)+":"+this.formatNumber(s,!0)+":"+this.formatNumber(o,!0)}return""},onChangeNativePicker:function(t){var n=t.target.value;if(n){var r=null;this.computedValue&&!isNaN(this.computedValue)?r=new Date(this.computedValue):(r=new Date,r.setMilliseconds(0));var s=n.split(":");r.setHours(parseInt(s[0],10)),r.setMinutes(parseInt(s[1],10)),r.setSeconds(s[2]?parseInt(s[2],10):0),this.computedValue=new Date(r.getTime())}else this.computedValue=null},formatNumber:function(t,n){return this.isHourFormat24||n?this.pad(t):t},pad:function(t){return(t<10?"0":"")+t},formatValue:function(t){return t&&!isNaN(t)?this.timeFormatter(t,this):null},keyPress:function(t){var n=t.key;this.$refs.dropdown&&this.$refs.dropdown.isActive&&(n==="Escape"||n==="Esc")&&this.toggle(!1)},onActiveChange:function(t){t||this.onBlur()}},created:function(){typeof window!="undefined"&&document.addEventListener("keyup",this.keyPress)},beforeDestroy:function(){typeof window!="undefined"&&document.removeEventListener("keyup",this.keyPress)}},pu=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return t?n?t.querySelectorAll('*[tabindex="-1"]'):t.querySelectorAll(`a[href]:not([tabindex="-1"]), + area[href], + input:not([disabled]), + select:not([disabled]), + textarea:not([disabled]), + button:not([disabled]), + iframe, + object, + embed, + *[tabindex]:not([tabindex="-1"]), + *[contenteditable]`):null},Ud,nB=function(t,n){var r=n.value,s=r===void 0?!0:r;if(s){var o=pu(t),c=pu(t,!0);o&&o.length>0&&(Ud=function(i){o=pu(t),c=pu(t,!0);var a=o[0],l=o[o.length-1];i.target===a&&i.shiftKey&&i.key==="Tab"?(i.preventDefault(),l.focus()):(i.target===l||Array.from(c).indexOf(i.target)>=0)&&!i.shiftKey&&i.key==="Tab"&&(i.preventDefault(),a.focus())},t.addEventListener("keydown",Ud))}},iB=function(t){t.removeEventListener("keydown",Ud)},dp={bind:nB,unbind:iB},rB=["escape","outside"],aB={name:"BDropdown",directives:{trapFocus:dp},mixins:[Ll("dropdown")],props:{value:{type:[String,Number,Boolean,Object,Array,Function],default:null},disabled:Boolean,inline:Boolean,scrollable:Boolean,maxHeight:{type:[String,Number],default:200},position:{type:String,validator:function(t){return["is-top-right","is-top-left","is-bottom-left","is-bottom-right"].indexOf(t)>-1}},triggers:{type:Array,default:function(){return["click"]}},mobileModal:{type:Boolean,default:function(){return Q.defaultDropdownMobileModal}},ariaRole:{type:String,validator:function(t){return["menu","list","dialog"].indexOf(t)>-1},default:null},animation:{type:String,default:"fade"},multiple:Boolean,trapFocus:{type:Boolean,default:function(){return Q.defaultTrapFocus}},closeOnClick:{type:Boolean,default:!0},canClose:{type:[Array,Boolean],default:!0},expanded:Boolean,appendToBody:Boolean,appendToBodyCopyParent:Boolean},data:function(){return{selected:this.value,style:{},isActive:!1,isHoverable:!1,_bodyEl:void 0}},computed:{rootClasses:function(){return[this.position,{"is-disabled":this.disabled,"is-hoverable":this.hoverable,"is-inline":this.inline,"is-active":this.isActive||this.inline,"is-mobile-modal":this.isMobileModal,"is-expanded":this.expanded}]},isMobileModal:function(){return this.mobileModal&&!this.inline},cancelOptions:function(){return typeof this.canClose=="boolean"?this.canClose?rB:[]:this.canClose},contentStyle:function(){return{maxHeight:this.scrollable?Fl(this.maxHeight):null,overflow:this.scrollable?"auto":null}},hoverable:function(){return this.triggers.indexOf("hover")>=0}},watch:{value:function(t){this.selected=t},isActive:function(t){var n=this;this.$emit("active-change",t),this.handleScroll(),this.appendToBody&&this.$nextTick(function(){n.updateAppendToBody()})},isHoverable:function(t){this.hoverable&&this.$emit("active-change",t)}},methods:{handleScroll:function(){typeof window!="undefined"&&this.isMobileModal&&(this.isActive?document.documentElement.classList.add("is-clipped-touch"):document.documentElement.classList.remove("is-clipped-touch"))},selectItem:function(t){this.multiple?(this.selected?this.selected.indexOf(t)===-1?this.selected=[].concat(Kt(this.selected),[t]):this.selected=this.selected.filter(function(n){return n!==t}):this.selected=[t],this.$emit("change",this.selected)):this.selected!==t&&(this.selected=t,this.$emit("change",this.selected)),this.$emit("input",this.selected),this.multiple||(this.isActive=!this.closeOnClick,this.hoverable&&this.closeOnClick&&(this.isHoverable=!1))},isInWhiteList:function(t){if(t===this.$refs.dropdownMenu||t===this.$refs.trigger)return!0;if(this.$refs.dropdownMenu!==void 0){var n=this.$refs.dropdownMenu.querySelectorAll("*"),r=!0,s=!1,o=void 0;try{for(var c=n[Symbol.iterator](),u;!(r=(u=c.next()).done);r=!0){var i=u.value;if(t===i)return!0}}catch(b){s=!0,o=b}finally{try{!r&&c.return!=null&&c.return()}finally{if(s)throw o}}}if(this.$refs.trigger!==void 0){var a=this.$refs.trigger.querySelectorAll("*"),l=!0,d=!1,p=void 0;try{for(var v=a[Symbol.iterator](),g;!(l=(g=v.next()).done);l=!0){var _=g.value;if(t===_)return!0}}catch(b){d=!0,p=b}finally{try{!l&&v.return!=null&&v.return()}finally{if(d)throw p}}}return!1},clickedOutside:function(t){if(!(this.cancelOptions.indexOf("outside")<0)&&!this.inline){var n=fp(this)?t.composedPath()[0]:t.target;this.isInWhiteList(n)||(this.isActive=!1)}},keyPress:function(t){var n=t.key;if(this.isActive&&(n==="Escape"||n==="Esc")){if(this.cancelOptions.indexOf("escape")<0)return;this.isActive=!1}},onClick:function(){this.triggers.indexOf("click")<0||this.toggle()},onContextMenu:function(){this.triggers.indexOf("contextmenu")<0||this.toggle()},onHover:function(){this.triggers.indexOf("hover")<0||(this.isHoverable=!0)},onFocus:function(){this.triggers.indexOf("focus")<0||this.toggle()},toggle:function(){var t=this;this.disabled||(this.isActive?this.isActive=!this.isActive:this.$nextTick(function(){var n=!t.isActive;t.isActive=n,setTimeout(function(){return t.isActive=n})}))},updateAppendToBody:function(){var t=this.$refs.dropdown,n=this.$refs.dropdownMenu,r=this.$refs.trigger;if(n&&r){var s=this.$data._bodyEl.children[0];if(s.classList.forEach(function(l){return s.classList.remove(l)}),s.classList.add("dropdown"),s.classList.add("dropdown-menu-animation"),this.$vnode&&this.$vnode.data&&this.$vnode.data.staticClass&&s.classList.add(this.$vnode.data.staticClass),this.rootClasses.forEach(function(l){if(l&&Xt(l)==="object")for(var d in l)l[d]&&s.classList.add(d)}),this.appendToBodyCopyParent){var o=this.$refs.dropdown.parentNode,c=this.$data._bodyEl;c.classList.forEach(function(l){return c.classList.remove(l)}),o.classList.forEach(function(l){c.classList.add(l)})}var u=r.getBoundingClientRect(),i=u.top+window.scrollY,a=u.left+window.scrollX;!this.position||this.position.indexOf("bottom")>=0?i+=r.clientHeight:i-=n.clientHeight,this.position&&this.position.indexOf("left")>=0&&(a-=n.clientWidth-r.clientWidth),this.style={position:"absolute",top:"".concat(i,"px"),left:"".concat(a,"px"),zIndex:"99",width:this.expanded?"".concat(t.offsetWidth,"px"):void 0}}}},mounted:function(){this.appendToBody&&(this.$data._bodyEl=lp(this.$refs.dropdownMenu),this.updateAppendToBody())},created:function(){typeof window!="undefined"&&(document.addEventListener("click",this.clickedOutside),document.addEventListener("keyup",this.keyPress))},beforeDestroy:function(){typeof window!="undefined"&&(document.removeEventListener("click",this.clickedOutside),document.removeEventListener("keyup",this.keyPress)),this.appendToBody&&Ui(this.$data._bodyEl)}};const sB=aB;var oB=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"dropdown",staticClass:"dropdown dropdown-menu-animation",class:e.rootClasses,on:{mouseleave:function(r){e.isHoverable=!1}}},[e.inline?e._e():n("div",{ref:"trigger",staticClass:"dropdown-trigger",attrs:{tabindex:e.disabled?!1:0,"aria-haspopup":"true"},on:{click:e.onClick,contextmenu:function(r){return r.preventDefault(),e.onContextMenu(r)},mouseenter:e.onHover,"!focus":function(r){return e.onFocus(r)}}},[e._t("trigger",null,{active:e.isActive})],2),n("transition",{attrs:{name:e.animation}},[e.isMobileModal?n("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"background",attrs:{"aria-hidden":!e.isActive}}):e._e()]),n("transition",{attrs:{name:e.animation}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled&&(e.isActive||e.isHoverable)||e.inline,expression:"(!disabled && (isActive || isHoverable)) || inline"},{name:"trap-focus",rawName:"v-trap-focus",value:e.trapFocus,expression:"trapFocus"}],ref:"dropdownMenu",staticClass:"dropdown-menu",style:e.style,attrs:{"aria-hidden":!e.isActive}},[n("div",{staticClass:"dropdown-content",style:e.contentStyle,attrs:{role:e.ariaRole,"aria-modal":!e.inline}},[e._t("default")],2)])])],1)},uB=[];const lB=void 0,cB=void 0,fB=void 0,dB=!1;var Li=me({render:oB,staticRenderFns:uB},lB,sB,cB,dB,fB,void 0,void 0),hB={name:"BDropdownItem",mixins:[Bl("dropdown")],props:{value:{type:[String,Number,Boolean,Object,Array,Function],default:null},separator:Boolean,disabled:Boolean,custom:Boolean,focusable:{type:Boolean,default:!0},paddingless:Boolean,hasLink:Boolean,ariaRole:{type:String,default:""}},computed:{anchorClasses:function(){return{"is-disabled":this.parent.disabled||this.disabled,"is-paddingless":this.paddingless,"is-active":this.isActive}},itemClasses:function(){return{"dropdown-item":!this.hasLink,"is-disabled":this.disabled,"is-paddingless":this.paddingless,"is-active":this.isActive,"has-link":this.hasLink}},ariaRoleItem:function(){return this.ariaRole==="menuitem"||this.ariaRole==="listitem"?this.ariaRole:null},isClickable:function(){return!this.parent.disabled&&!this.separator&&!this.disabled&&!this.custom},isActive:function(){return this.parent.selected===null?!1:this.parent.multiple?this.parent.selected.indexOf(this.value)>=0:this.value===this.parent.selected},isFocusable:function(){return this.hasLink?!1:this.focusable}},methods:{selectItem:function(){!this.isClickable||(this.parent.selectItem(this.value),this.$emit("click"))}}};const pB=hB;var mB=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.separator?n("hr",{staticClass:"dropdown-divider"}):!e.custom&&!e.hasLink?n("a",{staticClass:"dropdown-item",class:e.anchorClasses,attrs:{role:e.ariaRoleItem,tabindex:e.isFocusable?0:null},on:{click:e.selectItem}},[e._t("default")],2):n("div",{class:e.itemClasses,attrs:{role:e.ariaRoleItem,tabindex:e.isFocusable?0:null},on:{click:e.selectItem}},[e._t("default")],2)},vB=[];const gB=void 0,yB=void 0,_B=void 0,bB=!1;var Bi=me({render:mB,staticRenderFns:vB},gB,pB,yB,bB,_B,void 0,void 0),SB={name:"BFieldBody",props:{message:{type:[String,Array]},type:{type:[String,Object]}},render:function(t){var n=this,r=!0;return t("div",{attrs:{class:"field-body"}},this.$slots.default.map(function(s){if(!s.tag)return s;var o;return r&&(o=n.message,r=!1),t("b-field",{attrs:{type:n.type,message:o}},[s])}))}};const wB=SB,CB=void 0,xB=void 0,TB=void 0,AB=void 0;var qy=me({},CB,wB,xB,AB,TB,void 0,void 0),PB={name:"BField",components:fe({},qy.name,qy),provide:function(){return{BField:this}},inject:{parent:{from:"BField",default:!1}},props:{type:[String,Object],label:String,labelFor:String,message:[String,Array,Object],grouped:Boolean,groupMultiline:Boolean,position:String,expanded:Boolean,horizontal:Boolean,addons:{type:Boolean,default:!0},customClass:String,labelPosition:{type:String,default:function(){return Q.defaultFieldLabelPosition}}},data:function(){return{newType:this.type,newMessage:this.message,fieldLabelSize:null,_isField:!0}},computed:{rootClasses:function(){return[{"is-expanded":this.expanded,"is-horizontal":this.horizontal,"is-floating-in-label":this.hasLabel&&!this.horizontal&&this.labelPosition==="inside","is-floating-label":this.hasLabel&&!this.horizontal&&this.labelPosition==="on-border"},this.numberInputClasses]},innerFieldClasses:function(){return[this.fieldType(),this.newPosition,{"is-grouped-multiline":this.groupMultiline}]},hasInnerField:function(){return this.grouped||this.groupMultiline||this.hasAddons()},newPosition:function(){if(this.position!==void 0){var t=this.position.split("-");if(!(t.length<1)){var n=this.grouped?"is-grouped-":"has-addons-";if(this.position)return n+t[1]}}},formattedMessage:function(){if(this.parent&&this.parent.hasInnerField)return"";if(typeof this.newMessage=="string")return[this.newMessage];var t=[];if(Array.isArray(this.newMessage))this.newMessage.forEach(function(r){if(typeof r=="string")t.push(r);else for(var s in r)r[s]&&t.push(s)});else for(var n in this.newMessage)this.newMessage[n]&&t.push(n);return t.filter(function(r){if(r)return r})},hasLabel:function(){return this.label||this.$slots.label},hasMessage:function(){return(!this.parent||!this.parent.hasInnerField)&&this.newMessage||this.$slots.message},numberInputClasses:function(){if(this.$slots.default){var t=this.$slots.default.filter(function(o){return o.tag&&o.tag.toLowerCase().indexOf("numberinput")>=0})[0];if(t){var n=["has-numberinput"],r=t.componentOptions.propsData.controlsPosition,s=t.componentOptions.propsData.size;return r&&n.push("has-numberinput-".concat(r)),s&&n.push("has-numberinput-".concat(s)),n}}return null}},watch:{type:function(t){this.newType=t},message:function(t){this.newMessage=t},newMessage:function(t){this.parent&&this.parent.hasInnerField&&(this.parent.type||(this.parent.newType=this.newType),this.parent.message||(this.parent.newMessage=t))}},methods:{fieldType:function(){if(this.grouped)return"is-grouped";if(this.hasAddons())return"has-addons"},hasAddons:function(){var t=0;return this.$slots.default&&(t=this.$slots.default.reduce(function(n,r){return r.tag?n+1:n},0)),t>1&&this.addons&&!this.horizontal}},mounted:function(){if(this.horizontal){var t=this.$el.querySelectorAll(".input, .select, .button, .textarea, .b-slider");t.length>0&&(this.fieldLabelSize="is-normal")}}};const OB=PB;var kB=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"field",class:e.rootClasses},[e.horizontal?n("div",{staticClass:"field-label",class:[e.customClass,e.fieldLabelSize]},[e.hasLabel?n("label",{staticClass:"label",class:e.customClass,attrs:{for:e.labelFor}},[e.$slots.label?e._t("label"):[e._v(e._s(e.label))]],2):e._e()]):[e.hasLabel?n("label",{staticClass:"label",class:e.customClass,attrs:{for:e.labelFor}},[e.$slots.label?e._t("label"):[e._v(e._s(e.label))]],2):e._e()],e.horizontal?n("b-field-body",{attrs:{message:e.newMessage?e.formattedMessage:"",type:e.newType}},[e._t("default")],2):e.hasInnerField?n("div",{staticClass:"field-body"},[n("b-field",{class:e.innerFieldClasses,attrs:{addons:!1,type:e.newType}},[e._t("default")],2)],1):[e._t("default")],e.hasMessage&&!e.horizontal?n("p",{staticClass:"help",class:e.newType},[e.$slots.message?e._t("message",null,{messages:e.formattedMessage}):[e._l(e.formattedMessage,function(r,s){return[e._v(" "+e._s(r)+" "),s+1=this.countPerRing},calcHandAngle:function(t){var n=this.degreesPerUnit*(t-this.min);return this.isInnerRing(t)&&(n-=360),n},calcHandScale:function(t){return this.isInnerRing(t)?this.innerRadius/this.outerRadius:1},onMouseDown:function(t){t.preventDefault(),this.isDragging=!0,this.onDragMove(t)},onMouseUp:function(){this.isDragging=!1,this.isDisabled(this.inputValue)||this.$emit("change",this.inputValue)},onDragMove:function(t){if(t.preventDefault(),!(!this.isDragging&&t.type!=="click")){var n=this.$refs.clock.getBoundingClientRect(),r=n.width,s=n.top,o=n.left,c="touches"in t?t.touches[0]:t,u=c.clientX,i=c.clientY,a={x:r/2,y:-r/2},l={x:u-o,y:s-i},d=Math.round(this.coordToAngle(a,l)+360)%360,p=this.double&&this.euclidean(a,l)<(this.outerRadius+this.innerRadius)/2-16,v=Math.round(d/this.degreesPerUnit)+this.min+(p?this.countPerRing:0);d>=360-this.degreesPerUnit/2&&(v=p?this.max:this.min),this.update(v)}},update:function(t){this.inputValue!==t&&!this.isDisabled(t)&&(this.prevAngle=this.handRotateAngle,this.inputValue=t,this.$emit("input",t))}}};const NB=IB;var FB=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"b-clockpicker-face",on:{mousedown:e.onMouseDown,mouseup:e.onMouseUp,mousemove:e.onDragMove,touchstart:e.onMouseDown,touchend:e.onMouseUp,touchmove:e.onDragMove}},[n("div",{ref:"clock",staticClass:"b-clockpicker-face-outer-ring"},[n("div",{staticClass:"b-clockpicker-face-hand",style:e.handStyle}),e._l(e.faceNumbers,function(r,s){return n("span",{key:s,staticClass:"b-clockpicker-face-number",class:e.getFaceNumberClasses(r),style:{transform:e.getNumberTranslate(r.value)}},[n("span",[e._v(e._s(r.label))])])})],2)])},LB=[];const BB=void 0,zB=void 0,jB=void 0,qB=!1;var Hy=me({render:FB,staticRenderFns:LB},BB,NB,zB,qB,jB,void 0,void 0),nr,VB=12,UB={name:"BClockpicker",components:(nr={},fe(nr,Hy.name,Hy),fe(nr,qt.name,qt),fe(nr,zi.name,zi),fe(nr,Fe.name,Fe),fe(nr,Li.name,Li),fe(nr,Bi.name,Bi),nr),mixins:[eS],props:{pickerSize:{type:Number,default:290},incrementMinutes:{type:Number,default:5},autoSwitch:{type:Boolean,default:!0},type:{type:String,default:"is-primary"},hoursLabel:{type:String,default:function(){return Q.defaultClockpickerHoursLabel||"Hours"}},minutesLabel:{type:String,default:function(){return Q.defaultClockpickerMinutesLabel||"Min"}}},data:function(){return{isSelectingHour:!0,isDragging:!1,_isClockpicker:!0}},computed:{hoursDisplay:function(){if(this.hoursSelected==null)return"--";if(this.isHourFormat24)return this.pad(this.hoursSelected);var t=this.hoursSelected;return this.meridienSelected===this.pmString&&(t-=12),t===0&&(t=12),t},minutesDisplay:function(){return this.minutesSelected==null?"--":this.pad(this.minutesSelected)},minFaceValue:function(){return this.isSelectingHour&&!this.isHourFormat24&&this.meridienSelected===this.pmString?12:0},maxFaceValue:function(){return this.isSelectingHour?!this.isHourFormat24&&this.meridienSelected===this.amString?11:23:59},faceSize:function(){return this.pickerSize-VB*2},faceDisabledValues:function(){return this.isSelectingHour?this.isHourDisabled:this.isMinuteDisabled}},methods:{onClockInput:function(t){this.isSelectingHour?(this.hoursSelected=t,this.onHoursChange(t)):(this.minutesSelected=t,this.onMinutesChange(t))},onClockChange:function(t){this.autoSwitch&&this.isSelectingHour&&(this.isSelectingHour=!this.isSelectingHour)},onMeridienClick:function(t){this.meridienSelected!==t&&(this.meridienSelected=t,this.onMeridienChange(t))},onInputClick:function(t){this.$refs.dropdown.isActive&&t.stopPropagation()}}};const HB=UB;var WB=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"b-clockpicker control",class:[e.size,e.type,{"is-expanded":e.expanded}]},[!e.isMobile||e.inline?n("b-dropdown",{ref:"dropdown",attrs:{position:e.position,disabled:e.disabled,inline:e.inline,"append-to-body":e.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":e.onActiveChange},scopedSlots:e._u([e.inline?null:{key:"trigger",fn:function(){return[e._t("trigger",[n("b-input",e._b({ref:"input",attrs:{slot:"trigger",autocomplete:"off",value:e.formatValue(e.computedValue),placeholder:e.placeholder,size:e.size,icon:e.icon,"icon-pack":e.iconPack,loading:e.loading,disabled:e.disabled,readonly:!e.editable,rounded:e.rounded,"use-html5-validation":e.useHtml5Validation},on:{focus:e.handleOnFocus,blur:function(r){return e.checkHtml5Validity()}},nativeOn:{click:function(r){return e.onInputClick(r)},keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.toggle(!0)},change:function(r){return e.onChange(r.target.value)}},slot:"trigger"},"b-input",e.$attrs,!1))])]},proxy:!0}],null,!0)},[n("div",{staticClass:"card",attrs:{disabled:e.disabled,custom:""}},[e.inline?n("header",{staticClass:"card-header"},[n("div",{staticClass:"b-clockpicker-header card-header-title"},[n("div",{staticClass:"b-clockpicker-time"},[n("span",{staticClass:"b-clockpicker-btn",class:{active:e.isSelectingHour},on:{click:function(r){e.isSelectingHour=!0}}},[e._v(e._s(e.hoursDisplay))]),n("span",[e._v(e._s(e.hourLiteral))]),n("span",{staticClass:"b-clockpicker-btn",class:{active:!e.isSelectingHour},on:{click:function(r){e.isSelectingHour=!1}}},[e._v(e._s(e.minutesDisplay))])]),e.isHourFormat24?e._e():n("div",{staticClass:"b-clockpicker-period"},[n("div",{staticClass:"b-clockpicker-btn",class:{active:e.meridienSelected===e.amString||e.meridienSelected===e.AM},on:{click:function(r){return e.onMeridienClick(e.amString)}}},[e._v(e._s(e.amString))]),n("div",{staticClass:"b-clockpicker-btn",class:{active:e.meridienSelected===e.pmString||e.meridienSelected===e.PM},on:{click:function(r){return e.onMeridienClick(e.pmString)}}},[e._v(e._s(e.pmString))])])])]):e._e(),n("div",{staticClass:"card-content"},[n("div",{staticClass:"b-clockpicker-body",style:{width:e.faceSize+"px",height:e.faceSize+"px"}},[e.inline?e._e():n("div",{staticClass:"b-clockpicker-time"},[n("div",{staticClass:"b-clockpicker-btn",class:{active:e.isSelectingHour},on:{click:function(r){e.isSelectingHour=!0}}},[e._v(e._s(e.hoursLabel))]),n("span",{staticClass:"b-clockpicker-btn",class:{active:!e.isSelectingHour},on:{click:function(r){e.isSelectingHour=!1}}},[e._v(e._s(e.minutesLabel))])]),!e.isHourFormat24&&!e.inline?n("div",{staticClass:"b-clockpicker-period"},[n("div",{staticClass:"b-clockpicker-btn",class:{active:e.meridienSelected===e.amString||e.meridienSelected===e.AM},on:{click:function(r){return e.onMeridienClick(e.amString)}}},[e._v(e._s(e.amString))]),n("div",{staticClass:"b-clockpicker-btn",class:{active:e.meridienSelected===e.pmString||e.meridienSelected===e.PM},on:{click:function(r){return e.onMeridienClick(e.pmString)}}},[e._v(e._s(e.pmString))])]):e._e(),n("b-clockpicker-face",{attrs:{"picker-size":e.faceSize,min:e.minFaceValue,max:e.maxFaceValue,"face-numbers":e.isSelectingHour?e.hours:e.minutes,"disabled-values":e.faceDisabledValues,double:e.isSelectingHour&&e.isHourFormat24,value:e.isSelectingHour?e.hoursSelected:e.minutesSelected},on:{input:e.onClockInput,change:e.onClockChange}})],1)]),e.$slots.default!==void 0&&e.$slots.default.length?n("footer",{staticClass:"b-clockpicker-footer card-footer"},[e._t("default")],2):e._e()])]):n("b-input",e._b({ref:"input",attrs:{type:"time",autocomplete:"off",value:e.formatHHMMSS(e.computedValue),placeholder:e.placeholder,size:e.size,icon:e.icon,"icon-pack":e.iconPack,loading:e.loading,max:e.formatHHMMSS(e.maxTime),min:e.formatHHMMSS(e.minTime),disabled:e.disabled,readonly:!1,"use-html5-validation":e.useHtml5Validation},on:{focus:e.handleOnFocus,blur:function(r){e.onBlur()&&e.checkHtml5Validity()}},nativeOn:{click:function(r){return r.stopPropagation(),e.toggle(!0)},keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.toggle(!0)},change:function(r){return e.onChangeNativePicker(r)}}},"b-input",e.$attrs,!1))],1)},GB=[];const YB=void 0,KB=void 0,XB=void 0,QB=!1;var ZB=me({render:WB,staticRenderFns:GB},YB,HB,KB,QB,XB,void 0,void 0),tS={install:function(t){_e(t,ZB)}};Oe(tS);var JB=tS,ez={name:"BSelect",components:fe({},Fe.name,Fe),mixins:[li],inheritAttrs:!1,props:{value:{type:[String,Number,Boolean,Object,Array,Function,Date],default:null},placeholder:String,multiple:Boolean,nativeSize:[String,Number]},data:function(){return{selected:this.value,_elementRef:"select"}},computed:{computedValue:{get:function(){return this.selected},set:function(t){this.selected=t,this.$emit("input",t),!this.isValid&&this.checkHtml5Validity()}},spanClasses:function(){return[this.size,this.statusType,{"is-fullwidth":this.expanded,"is-loading":this.loading,"is-multiple":this.multiple,"is-rounded":this.rounded,"is-empty":this.selected===null}]}},watch:{value:function(t){this.selected=t,!this.isValid&&this.checkHtml5Validity()}}};const tz=ez;var nz=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"control",class:{"is-expanded":e.expanded,"has-icons-left":e.icon}},[n("span",{staticClass:"select",class:e.spanClasses},[n("select",e._b({directives:[{name:"model",rawName:"v-model",value:e.computedValue,expression:"computedValue"}],ref:"select",attrs:{multiple:e.multiple,size:e.nativeSize},on:{blur:function(r){e.$emit("blur",r)&&e.checkHtml5Validity()},focus:function(r){return e.$emit("focus",r)},change:function(r){var s=Array.prototype.filter.call(r.target.options,function(o){return o.selected}).map(function(o){var c="_value"in o?o._value:o.value;return c});e.computedValue=r.target.multiple?s:s[0]}}},"select",e.$attrs,!1),[e.placeholder?[e.computedValue==null?n("option",{attrs:{disabled:"",hidden:""},domProps:{value:null}},[e._v(" "+e._s(e.placeholder)+" ")]):e._e()]:e._e(),e._t("default")],2)]),e.icon?n("b-icon",{staticClass:"is-left",attrs:{icon:e.icon,pack:e.iconPack,size:e.iconSize}}):e._e()],1)},iz=[];const rz=void 0,az=void 0,sz=void 0,oz=!1;var ji=me({render:nz,staticRenderFns:iz},rz,tz,az,oz,sz,void 0,void 0),uz={name:"BTooltip",props:{active:{type:Boolean,default:!0},type:{type:String,default:function(){return Q.defaultTooltipType}},label:String,delay:{type:Number,default:function(){return Q.defaultTooltipDelay}},closeDelay:{type:Number,default:function(){return Q.defaultTooltipCloseDelay}},position:{type:String,default:"is-top",validator:function(t){return["is-top","is-bottom","is-left","is-right"].indexOf(t)>-1}},triggers:{type:Array,default:function(){return["hover"]}},always:Boolean,square:Boolean,dashed:Boolean,multilined:Boolean,size:{type:String,default:"is-medium"},appendToBody:Boolean,animated:{type:Boolean,default:!0},animation:{type:String,default:"fade"},contentClass:String,autoClose:{type:[Array,Boolean],default:!0}},data:function(){return{isActive:!1,triggerStyle:{},timer:null,_bodyEl:void 0}},computed:{rootClasses:function(){return["b-tooltip",this.type,this.position,this.size,{"is-square":this.square,"is-always":this.always,"is-multiline":this.multilined,"is-dashed":this.dashed}]},newAnimation:function(){return this.animated?this.animation:void 0}},watch:{isActive:function(){this.$emit(this.isActive?"open":"close"),this.appendToBody&&this.updateAppendToBody()}},methods:{updateAppendToBody:function(){var t=this.$refs.tooltip,n=this.$refs.trigger;if(t&&n){var r=this.$data._bodyEl.children[0];r.classList.forEach(function(a){return r.classList.remove(a)}),this.$vnode&&this.$vnode.data&&this.$vnode.data.staticClass&&r.classList.add(this.$vnode.data.staticClass),this.rootClasses.forEach(function(a){if(Xt(a)==="object")for(var l in a)a[l]&&r.classList.add(l);else r.classList.add(a)});var s=n.getBoundingClientRect(),o=s.top+window.scrollY,c=s.left+window.scrollX,u=n.clientHeight/2/2;switch(this.position){case"is-top":r.style.width="".concat(n.clientWidth,"px"),r.style.height="0px",o-=n.clientHeight-u;break;case"is-bottom":r.style.width="".concat(n.clientWidth,"px"),r.style.height="0px",o+=u;break;case"is-left":r.style.width="0px",r.style.height="".concat(n.clientHeight,"px");break;case"is-right":r.style.width="0px",r.style.height="".concat(n.clientHeight,"px"),c+=n.clientWidth;break}var i=this.$data._bodyEl;i.style.position="absolute",i.style.top="".concat(o,"px"),i.style.left="".concat(c,"px"),i.style.width="0px",i.style.zIndex=this.isActive||this.always?"99":"-1",this.triggerStyle={zIndex:this.isActive||this.always?"100":void 0}}},onClick:function(){var t=this;this.triggers.indexOf("click")<0||this.$nextTick(function(){setTimeout(function(){return t.open()})})},onHover:function(){this.triggers.indexOf("hover")<0||this.open()},onContextMenu:function(t){this.triggers.indexOf("contextmenu")<0||(t.preventDefault(),this.open())},onFocus:function(){this.triggers.indexOf("focus")<0||this.open()},open:function(){var t=this;this.delay?this.timer=setTimeout(function(){t.isActive=!0,t.timer=null},this.delay):this.isActive=!0},close:function(){var t=this;typeof this.autoClose=="boolean"&&(this.autoClose&&this.timer&&clearTimeout(this.timer),this.closeDelay?this.timer=setTimeout(function(){t.isActive=!t.autoClose,t.timer=null},this.closeDelay):this.isActive=!this.autoClose)},clickedOutside:function(t){if(this.isActive&&Array.isArray(this.autoClose)){if(this.autoClose.includes("outside")&&!this.isInWhiteList(t.target)){this.isActive=!1;return}this.autoClose.includes("inside")&&this.isInWhiteList(t.target)&&(this.isActive=!1)}},keyPress:function(t){var n=t.key;this.isActive&&(n==="Escape"||n==="Esc")&&Array.isArray(this.autoClose)&&this.autoClose.indexOf("escape")>=0&&(this.isActive=!1)},isInWhiteList:function(t){if(t===this.$refs.content)return!0;if(this.$refs.content!==void 0){var n=this.$refs.content.querySelectorAll("*"),r=!0,s=!1,o=void 0;try{for(var c=n[Symbol.iterator](),u;!(r=(u=c.next()).done);r=!0){var i=u.value;if(t===i)return!0}}catch(a){s=!0,o=a}finally{try{!r&&c.return!=null&&c.return()}finally{if(s)throw o}}}return!1}},mounted:function(){this.appendToBody&&typeof window!="undefined"&&(this.$data._bodyEl=lp(this.$refs.content),this.updateAppendToBody())},created:function(){typeof window!="undefined"&&(document.addEventListener("click",this.clickedOutside),document.addEventListener("keyup",this.keyPress))},beforeDestroy:function(){typeof window!="undefined"&&(document.removeEventListener("click",this.clickedOutside),document.removeEventListener("keyup",this.keyPress)),this.appendToBody&&Ui(this.$data._bodyEl)}};const lz=uz;var cz=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"tooltip",class:e.rootClasses},[n("transition",{attrs:{name:e.newAnimation}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.active&&(e.isActive||e.always),expression:"active && (isActive || always)"}],ref:"content",class:["tooltip-content",e.contentClass]},[e.label?[e._v(e._s(e.label))]:e.$slots.content?[e._t("content")]:e._e()],2)]),n("div",{ref:"trigger",staticClass:"tooltip-trigger",style:e.triggerStyle,on:{click:e.onClick,contextmenu:e.onContextMenu,mouseenter:e.onHover,"!focus":function(r){return e.onFocus(r)},"!blur":function(r){return e.close(r)},mouseleave:e.close}},[e._t("default")],2)],1)},fz=[];const dz=void 0,hz=void 0,pz=void 0,mz=!1;var Gs=me({render:cz,staticRenderFns:fz},dz,lz,hz,mz,pz,void 0,void 0),Jn=["red","green","blue","alpha"],Wy={black:"#000000",silver:"#c0c0c0",gray:"#808080",white:"#ffffff",maroon:"#800000",red:"#ff0000",purple:"#800080",fuchsia:"#ff00ff",green:"#008000",lime:"#00ff00",olive:"#808000",yellow:"#ffff00",navy:"#000080",blue:"#0000ff",teal:"#008080",aqua:"#00ffff",orange:"#ffa500",aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",blanchedalmond:"#ffebcd",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",oldlace:"#fdf5e6",olivedrab:"#6b8e23",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",whitesmoke:"#f5f5f5",yellowgreen:"#9acd32",rebeccapurple:"#663399"},vz=function(e){xN(t,e);function t(){return F0(this,t),$N(this,al(t).call(this,"ColorTypeError: type must be hex(a), rgb(a) or hsl(a)"))}return t}(Bd(Error)),Va=function(){function e(){var t=this;if(F0(this,e),arguments.length>0)return e.parse.apply(e,arguments);this.$channels=new Uint8Array(Jn.length),Jn.forEach(function(n,r){Object.defineProperty(t,n,{get:function(){return t.$channels[r]},set:function(o){Number.isNaN(o/1)||(t.$channels[r]=Math.min(255,Math.max(0,o)))},enumerable:!0,configurable:!0})}),["hue","saturation","lightness"].forEach(function(n){var r=n.replace(/^./,function(s){return s.toUpperCase()});Object.defineProperty(t,n,{get:function(){return t["get".concat(r)]()},set:function(o){Number.isNaN(o/1)||t["set".concat(r)](o)},enumerable:!0,configurable:!0})})}return CN(e,[{key:"getHue",value:function(){var n=Array.from(this.$channels).map(function(p){return p/255}),r=cu(n,3),s=r[0],o=r[1],c=r[2],u=[Math.min(s,o,c),Math.max(s,o,c)],i=u[0],a=u[1],l=a-i,d=0;if(l===0)return d;for(s===a?d=(o-c)/l%6:o===a?d=(c-s)/l+2:d=(s-o)/l+4,d*=60;d!==-1/0&&d<0;)d+=360;return Math.round(d%360)}},{key:"setHue",value:function(n){for(var r=e.fromHSL(n,this.saturation,this.lightness,this.alpha/255),s=0;s0&&arguments[0]!==void 0?arguments[0]:"hex";switch(String(r).toLowerCase()){case"hex":return"#"+Jn.slice(0,3).map(function(s){return n[s].toString(16).padStart(2,"0")}).join("");case"hexa":return"#"+Jn.map(function(s){return n[s].toString(16).padStart(2,"0")}).join("");case"rgb":return"rgb(".concat(this.red,", ").concat(this.green,", ").concat(this.blue,")");case"rgba":return"rgba(".concat(this.red,", ").concat(this.green,", ").concat(this.blue,", ").concat(Math.round(this.alpha/2.55)/100,")");case"hsl":return"hsl(".concat(Math.round(this.hue),"deg, ").concat(Math.round(this.saturation*100),"%, ").concat(Math.round(this.lightness*100),"%)");case"hsla":return"hsla(".concat(Math.round(this.hue),"deg, ").concat(Math.round(this.saturation*100),"%, ").concat(Math.round(this.lightness*100),"%, ").concat(Math.round(this.alpha/2.55)/100,")");default:throw new vz}}},{key:Symbol.toString,get:function(){return this.toString("hex")}}],[{key:"parse",value:function(){for(var n=arguments.length,r=new Array(n),s=0;s3)o.red=r[0],o.green=r[1],o.blue=r[2],r[3]&&(o.alpha=r[3]);else if(r.length===1){var c=Number(r[0]);return e.parseIndex(c,c>Math.pow(2,24)?3:4)}}else if(typeof r[0]=="string"){var u=null;if(typeof Wy[r[0].toLowerCase()]=="string")return e.parseHex(Wy[r[0].toLowerCase()]);if((u=r[0].match(/^(#|&h|0x)?(([a-f0-9]{3,4}){1,2})$/i))!==null)return e.parseHex(u[2]);if((u=r[0].match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)(\s*,\s*(\d*\.?\d+))?\s*\)$/i))!==null){var i=[u[1],u[2],u[3],typeof u[5]!="undefined"?u[5]:1];return e.fromRGB.apply(e,Kt(i.map(function(a){return Number(a)})))}else if(u=r[0].match(/^(h(sl|wb)a?|lab|color|cmyk)\(/i))throw new Error("Color expression not implemented yet")}return new e}},{key:"parseObject",value:function(n){var r=new e;return n===null||Xt(n)!=="object"?r:e.isColor(n)?n.clone():(Jn.forEach(function(s){Number.isNaN(n[s])||(r[s]=n[s])}),r)}},{key:"parseHex",value:function(n){if(typeof n!="string")throw new Error("Hex expression must be a string");if(n=n.trim().replace(/^(0x|&h|#)/i,""),(n.length===3||n.length===4)&&(n=n.split("").map(function(s){return s.repeat(2)}).join("")),!(n.length===6||n.length===8))throw new Error("Incorrect Hex expression length");var r=n.split(/(..)/).filter(function(s){return s}).map(function(s){return Number.parseInt(s,16)});return typeof r[3]=="number"&&(r[3]/=255),e.fromRGB.apply(e,Kt(r))}},{key:"parseIndex",value:function(n){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3,s=new e,o=0;o<4;o++)s[Jn[o]]=n>>(r-o)*8&&255;return s}},{key:"fromRGB",value:function(n,r,s){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if([n,r,s,o].some(function(u){return Number.isNaN(u/1)}))throw new Error("Invalid arguments");o*=255;var c=new e;return[n,r,s,o].forEach(function(u,i){c[Jn[i]]=u}),c}},{key:"fromHSL",value:function(n,r,s){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if([n,r,s,o].some(function(g){return Number.isNaN(g)}))throw new Error("Invalid arguments");for(;n<0&&n!==-1/0;)n+=360;n=n%360,r=Math.max(0,Math.min(1,r)),s=Math.max(0,Math.min(1,s)),o=Math.max(0,Math.min(1,o));var c=(1-Math.abs(2*s-1))*r,u=c*(1-Math.abs(n/60%2-1)),i=s-c/2,a=n<60?[c,u,0]:n<120?[u,c,0]:n<180?[0,c,u]:n<240?[0,u,c]:n<300?[u,0,c]:[c,0,u],l=cu(a,3),d=l[0],p=l[1],v=l[2];return e.fromRGB((d+i)*255,(p+i)*255,(v+i)*255,o)}},{key:"isColor",value:function(n){return n instanceof e}}]),e}(),zr=.86602540378,mu=.5,gz=0,yz={name:"BColorpickerHSLRepresentationTriangle",props:{value:{type:Object,required:!0,validator:function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"}},size:{type:Number,default:200},thickness:{type:Number,default:20}},data:function(){return{id:gz++,hue:this.value.hue,saturation:this.value.saturation,lightness:this.value.lightness,captureMouse:!1,captureType:"hue",clientOffset:{cx:-1,cy:-1,width:0,height:0},cos30:zr,sin30:mu,debounce:0}},computed:{viewBox:function(){var t=this.size;return"0 0 ".concat(t," ").concat(t)},internalRadius:function(){return this.size/2-this.thickness},haloPath:function(){var t=this.size,n=this.thickness,r=t/2-2,s=r-n,o=t/2;return"M".concat(o-r," ").concat(o,"a").concat(r," ").concat(r," 0 1 1 ").concat(2*r," 0")+"h".concat(-n)+"a".concat(-s," ").concat(s," 0 1 0 ").concat(-2*s," 0")+"a".concat(s," ").concat(s," 0 1 0 ").concat(2*s," 0")+"h".concat(n)+"a".concat(r," ").concat(r," 0 1 1 ").concat(-2*r," 0z")},trianglePath:function(){var t=this.size,n=this.thickness,r=t-4,s=(r-2*n)/2;return"M0 ".concat(-s)+"L".concat(zr*s," ").concat(mu*s)+"H".concat(-zr*s,"z")}},watch:{captureMouse:function(t,n){if(n===!1&&t!==!1){var r=this.$el.getBoundingClientRect();this.clientOffset.cx=r.x+r.width/2,this.clientOffset.cy=r.y+r.height/2,this.clientOffset.width=r.width,this.clientOffset.height=r.height}},value:{deep:!0,handler:function(t){var n=this,r=t.hue,s=t.saturation,o=t.lightness;window.clearTimeout(this.debounce),this.debounce=window.setTimeout(function(){o>=.03&&o<=.97&&s>0&&(n.hue=r),n.saturation=s,n.lightness=o},200)}}},methods:{increaseHue:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this.hue=(this.hue+t)%360},decreaseHue:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this.hue=(360+this.hue-t)%360},increaseSaturation:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:.01;this.saturation=Math.min(1,Math.max(0,this.saturation+t)),this.lightness=Math.min(.5+(1-this.saturation)*.5,Math.max(.5-(1-this.saturation)*.5,this.lightness))},decreaseSaturation:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:.01;this.saturation=Math.min(1,Math.max(0,this.saturation-t)),this.lightness=Math.min(.5+(1-this.saturation)*.5,Math.max(.5-(1-this.saturation)*.5,this.lightness))},increaseLightness:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:.01;this.lightness=Math.min(.5+(1-this.saturation)*.5,Math.max(.5-(1-this.saturation)*.5,this.lightness+t))},decreaseLightness:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:.01;this.lightness=Math.min(.5+(1-this.saturation)*.5,Math.max(.5-(1-this.saturation)*.5,this.lightness-t))},hueKeyPress:function(t){var n=!1;switch(t.key){case"ArrowRight":case"ArrowUp":this.increaseHue(),n=!0;break;case"ArrowLeft":case"ArrowDown":this.decreaseHue(),n=!0;break;case"Home":this.increaseHue(360-this.hue),n=!0;break;case"End":this.decreaseHue(this.hue),n=!0;break;case"PageUp":this.increaseHue(60-this.hue%60),n=!0;break;case"PageDown":this.decreaseHue(60+this.hue%60),n=!0;break}n&&(t.preventDefault(),t.stopPropagation(),this.emitColor())},slKeyPress:function(t){var n=!1;switch(t.key){case"ArrowRight":this.decreaseLightness(),n=!0;break;case"ArrowUp":this.increaseSaturation(),n=!0;break;case"ArrowLeft":this.increaseLightness(),n=!0;break;case"ArrowDown":this.decreaseSaturation(),n=!0;break;case"Home":this.increaseLightness(1-this.lightness),n=!0;break;case"End":this.decreaseLightness(this.lightness),n=!0;break;case"PageUp":this.increaseSaturation(1-this.saturation),n=!0;break;case"PageDown":this.decreaseSaturation(this.saturation),n=!0;break}n&&(t.preventDefault(),t.stopPropagation(),this.emitColor())},clickHue:function(t){this.startMouseCapture(t),this.trackMouse(t),this.stopMouseCapture(t),this.$refs.hueCursor.focus()},clickSL:function(t){this.startMouseCapture(t),this.trackMouse(t),this.stopMouseCapture(t),this.$refs.slCursor.focus()},trackMouse:function(t){if(this.captureMouse!==!1){t.preventDefault(),t.stopPropagation();var n=0,r=0;if(typeof t.touches!="undefined"&&t.touches.length){var s=[t.touches[0].clientX,t.touches[0].clientY];n=s[0],r=s[1]}else{var o=[t.clientX,t.clientY];n=o[0],r=o[1]}var c=Math.atan2(r-this.clientOffset.cy,n-this.clientOffset.cx);if(this.captureType==="sl"){var u=Math.sqrt(Math.pow(n-this.clientOffset.cx,2)+Math.pow(r-this.clientOffset.cy,2)),i=this.size/this.clientOffset.width,a=u*Math.cos(c-this.hue/180*Math.PI)*i,l=u*Math.sin(c-this.hue/180*Math.PI)*i,d=this.internalRadius,p=1-(Math.min(d*mu,Math.max(-d,l))+d)/(d+d*mu),v=(Math.min(d*zr*(1-p),Math.max(-d*zr*(1-p),a))+d*zr)/(d*2*zr);this.saturation=Math.round(p*1e3)/1e3,this.lightness=1-Math.round(v*1e3)/1e3}else this.hue=Math.round(c/Math.PI*180+90)%360;this.emitColor()}},startMouseCapture:function(t){t.stopPropagation(),this.captureMouse=!0,t.target.closest(".colorpicker-triangle-slider-sl")!==null?this.captureType="sl":this.captureType="hue"},stopMouseCapture:function(t){this.captureMouse!==!1&&(t.preventDefault(),t.stopPropagation(),this.$refs[this.captureType==="sl"?"slCursor":"hueCursor"].focus()),this.captureMouse=!1},emitColor:function(){var t=this.hue,n=this.saturation,r=this.lightness;this.$emit("input",Va.fromHSL(t,n,r)),window.clearTimeout(this.debounce)}},mounted:function(){window.addEventListener("mousemove",this.trackMouse),window.addEventListener("touchmove",this.trackMouse,{passive:!1}),window.addEventListener("mouseup",this.stopMouseCapture),window.addEventListener("touchend",this.stopMouseCapture)},beforeDestroy:function(){window.removeEventListener("mousemove",this.trackMouse),window.removeEventListener("touchmove",this.trackMouse),window.removeEventListener("mouseup",this.stopMouseCapture),window.removeEventListener("touchend",this.stopMouseCapture)}};const _z=yz;var bz=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{staticClass:"b-colorpicker-triangle",attrs:{viewBox:e.viewBox}},[n("defs",[n("linearGradient",{attrs:{id:"cp-triangle-gradient-ligthness-"+e.id,x1:"0",y1:"0",x2:"1",y2:"0"}},[n("stop",{attrs:{offset:"0%","stop-color":"#fff"}}),n("stop",{attrs:{offset:"100%","stop-color":"#000"}})],1),n("linearGradient",{attrs:{id:"cp-triangle-gradient-saturation-"+e.id,x1:"0",y1:"0",x2:"0",y2:"1"}},[n("stop",{attrs:{offset:"0%","stop-color":"hsl("+e.hue+"deg, 100%, 50%)","stop-opacity":"1"}}),n("stop",{attrs:{offset:"100%","stop-color":"hsl("+e.hue+"deg, 100%, 50%)","stop-opacity":"0"}})],1),n("clipPath",{attrs:{id:"cp-triangle-clip-"+e.id}},[n("path",{attrs:{d:e.haloPath}})])],1),n("g",{staticClass:"colorpicker-triangle-slider-hue"},[n("foreignObject",{attrs:{x:0,y:0,width:e.size,height:e.size,"clip-path":"url(#cp-triangle-clip-"+e.id+")"}},[n("div",{staticClass:"colorpicker-triangle-hue",on:{click:e.clickHue,mousedown:function(r){return r.preventDefault(),e.startMouseCapture(r)},touchstart:function(r){return r.preventDefault(),e.startMouseCapture(r)}}})]),n("g",{style:"transform: rotate("+e.hue+"deg)"},[n("foreignObject",{attrs:{x:e.size/2-4,y:0,width:"8",height:e.thickness+4}},[n("div",{ref:"hueCursor",staticClass:"hue-range-thumb",style:"background-color: hsl("+e.hue+"deg, 100%, 50%)",attrs:{role:"slider",tabindex:"0","aria-label":"Hue","aria-valuemin":"0","aria-valuenow":e.hue,"aria-valuemax":"360"},on:{click:e.clickHue,keydown:e.hueKeyPress,mousedown:function(r){return r.preventDefault(),e.startMouseCapture(r)},touchstart:function(r){return r.preventDefault(),e.startMouseCapture(r)}}})])],1)],1),n("g",{staticClass:"colorpicker-triangle-slider-sl",style:"transform: rotate("+e.hue+"deg) translate(50%, 50%)",attrs:{role:"graphics-datagroup","aria-datascales":"lightness, saturation"}},[n("path",{attrs:{d:e.trianglePath,fill:"url(#cp-triangle-gradient-ligthness-"+e.id+")"}}),n("path",{staticStyle:{"mix-blend-mode":"overlay"},attrs:{d:e.trianglePath,fill:"url(#cp-triangle-gradient-saturation-"+e.id+")"},on:{click:e.clickSL,mousedown:function(r){return r.preventDefault(),e.startMouseCapture(r)},touchstart:function(r){return r.preventDefault(),e.startMouseCapture(r)}}}),n("foreignObject",{attrs:{x:(e.internalRadius-3)*e.cos30*(-e.lightness+.5)*2-6,y:-e.internalRadius+(1-e.saturation)*(e.internalRadius-3)*1.5-3,width:"12",height:"12"}},[n("div",{ref:"slCursor",staticClass:"sl-range-thumb",style:{backgroundColor:"hsl("+e.hue+"deg, "+e.saturation*100+"%, "+e.lightness*100+"%)"},attrs:{tabindex:"0","aria-datavalues":e.saturation*100+"%, "+e.lightness*100+"%"},on:{click:e.clickSL,keydown:e.slKeyPress,mousedown:function(r){return r.preventDefault(),e.startMouseCapture(r)},touchstart:function(r){return r.preventDefault(),e.startMouseCapture(r)}}})])],1)])},Sz=[];const wz=void 0,Cz=void 0,xz=void 0,Tz=!1;var Gy=me({render:bz,staticRenderFns:Sz},wz,_z,Cz,Tz,xz,void 0,void 0);function nS(){var e=up(["","px"]);return nS=function(){return e},e}function iS(){var e=up(["","px"]);return iS=function(){return e},e}function rS(){var e=up(["","px"]);return rS=function(){return e},e}var Gf=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s0&&arguments[0]!==void 0?arguments[0]:1;this.hue=(this.hue+t)%360},decreaseHue:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this.hue=(360+this.hue-t)%360},increaseSaturation:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:.01;this.saturation=Math.min(1,Math.max(0,this.saturation+t)),this.lightness=Math.min(.5+(1-this.saturation)*.5,Math.max(.5-(1-this.saturation)*.5,this.lightness))},decreaseSaturation:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:.01;this.saturation=Math.min(1,Math.max(0,this.saturation-t)),this.lightness=Math.min(.5+(1-this.saturation)*.5,Math.max(.5-(1-this.saturation)*.5,this.lightness))},increaseLightness:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:.01;this.lightness=Math.min(.5+(1-this.saturation)*.5,Math.max(.5-(1-this.saturation)*.5,this.lightness+t))},decreaseLightness:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:.01;this.lightness=Math.min(.5+(1-this.saturation)*.5,Math.max(.5-(1-this.saturation)*.5,this.lightness-t))},hueKeyPress:function(t){var n=!1;switch(t.key){case"ArrowRight":case"ArrowUp":this.increaseHue(),n=!0;break;case"ArrowLeft":case"ArrowDown":this.decreaseHue(),n=!0;break;case"Home":this.increaseHue(360-this.hue),n=!0;break;case"End":this.decreaseHue(this.hue),n=!0;break;case"PageUp":this.increaseHue(60-this.hue%60),n=!0;break;case"PageDown":this.decreaseHue(60+this.hue%60),n=!0;break}n&&(t.preventDefault(),t.stopPropagation(),this.emitColor())},slKeyPress:function(t){var n=!1;switch(t.key){case"ArrowRight":this.increaseSaturation(),n=!0;break;case"ArrowUp":this.increaseLightness(),n=!0;break;case"ArrowLeft":this.decreaseSaturation(),n=!0;break;case"ArrowDown":this.decreaseLightness(),n=!0;break;case"Home":this.increaseLightness(1-this.lightness),n=!0;break;case"End":this.decreaseLightness(this.lightness),n=!0;break;case"PageUp":this.increaseSaturation(1-this.saturation),n=!0;break;case"PageDown":this.decreaseSaturation(this.saturation),n=!0;break}n&&(t.preventDefault(),t.stopPropagation(),this.emitColor())},startMouseCapture:function(t){t.stopPropagation(),this.captureMouse=!0,t.target.closest(".colorpicker-square-slider-sl")!==null?this.captureType="sl":this.captureType="hue"},stopMouseCapture:function(t){this.captureMouse!==!1&&(t.preventDefault(),t.stopPropagation(),this.$refs[this.captureType==="sl"?"slCursor":"hueCursor"].focus()),this.captureMouse=!1},clickHue:function(t){this.startMouseCapture(t),this.trackMouse(t),this.stopMouseCapture(t),this.$refs.hueCursor.focus()},clickSL:function(t){this.startMouseCapture(t),this.trackMouse(t),this.stopMouseCapture(t),this.$refs.slCursor.focus()},trackMouse:function(t){if(this.captureMouse!==!1){t.preventDefault(),t.stopPropagation();var n=0,r=0;if(typeof t.touches!="undefined"&&t.touches.length){var s=[t.touches[0].clientX,t.touches[0].clientY];n=s[0],r=s[1]}else{var o=[t.clientX,t.clientY];n=o[0],r=o[1]}var c=Math.atan2(r-this.clientOffset.cy,n-this.clientOffset.cx);if(this.captureType==="sl"){var u=(n-this.clientOffset.cx)/(this.clientOffset.width-this.thickness*2)+.5,i=(r-this.clientOffset.cy)/(this.clientOffset.height-this.thickness*2)+.5;this.saturation=Math.round(Math.min(1,Math.max(0,u))*1e3)/1e3,this.lightness=1-Math.round(Math.min(1,Math.max(0,i))*1e3)/1e3}else this.hue=Math.round(c/Math.PI*180+90)%360;this.emitColor()}},emitColor:function(){var t=this.hue,n=this.saturation,r=this.lightness;this.$emit("input",Va.fromHSL(t,n,r)),window.clearTimeout(this.debounce)}},mounted:function(){window.addEventListener("mousemove",this.trackMouse),window.addEventListener("touchmove",this.trackMouse,{passive:!1}),window.addEventListener("mouseup",this.stopMouseCapture),window.addEventListener("touchend",this.stopMouseCapture)},beforeDestroy:function(){window.removeEventListener("mousemove",this.trackMouse),window.removeEventListener("touchmove",this.trackMouse),window.removeEventListener("mouseup",this.stopMouseCapture),window.removeEventListener("touchend",this.stopMouseCapture)}};const Pz=Az;var Oz=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"b-colorpicker-square",style:{width:e.size+"px"}},[n("div",{staticClass:"colorpicker-square-slider-hue",on:{click:e.clickHue,mousedown:function(r){return r.preventDefault(),e.startMouseCapture(r)},touchstart:function(r){return r.preventDefault(),e.startMouseCapture(r)}}},[n("div",{ref:"hueCursor",staticClass:"hue-range-thumb",style:e.hueThumbStyle,attrs:{role:"slider",tabindex:"0","aria-label":"Hue","aria-valuemin":"0","aria-valuemax":"359"}})]),n("div",{staticClass:"colorpicker-square-slider-sl",style:{background:e.SLBackground,margin:e.thickness+"px"},attrs:{"aria-datascales":"lightness, saturation"},on:{click:e.clickSL,mousedown:function(r){return r.preventDefault(),e.startMouseCapture(r)},touchstart:function(r){return r.preventDefault(),e.startMouseCapture(r)}}},[n("div",{ref:"slCursor",staticClass:"sl-range-thumb",style:e.slThumbStyle,attrs:{role:"slider",tabindex:"0","aria-datavalues":e.saturation*100+"%, "+e.lightness*100+"%"},on:{click:e.clickSL,keydown:e.slKeyPress,mousedown:function(r){return r.preventDefault(),e.startMouseCapture(r)},touchstart:function(r){return r.preventDefault(),e.startMouseCapture(r)}}})])])},kz=[];const $z=void 0,Ez=void 0,Mz=void 0,Rz=!1;var Yy=me({render:Oz,staticRenderFns:kz},$z,Pz,Ez,Rz,Mz,void 0,void 0),Dz={name:"BColorpickerAlphaSlider",components:fe({},Gs.name,Gs),props:{value:{type:Number,validator:function(t){return t>=0&&t<256}},color:[String,Object]},data:function(){var t=Va.parse(this.color);return t.alpha=0,{startColor:t.toString("hex"),endColor:t.toString("hexa"),percent:Math.round((1-this.value/255)*100),captureMouse:!1,clientOffset:{cx:-1,cy:-1,width:0,height:0}}},computed:{style:function(){return{backgroundImage:"linear-gradient(90deg, ".concat(this.startColor," 0%, ").concat(this.endColor,` 100%), + linear-gradient(45deg, #c7c7c7 25%, transparent 25%, transparent 75%, #c7c7c7 75%, #c7c7c7), + linear-gradient(45deg, #c7c7c7 25%, transparent 25%, transparent 75%, #c7c7c7 75%, #c7c7c7)`),backgroundSize:"100% 100%, 1em 1em, 1em 1em",backgroundPosition:"0 0, .5em .5em, 0 0"}}},watch:{value:function(t,n){t!==n&&(this.percent=Math.round((1-t/255)*100))},color:function(t){var n=Va.parse(t);n.alpha=0,this.startColor=n.toString("hex"),this.endColor=n.toString("hexa")},captureMouse:function(t,n){if(n===!1&&t!==!1){var r=this.$el.getBoundingClientRect();this.clientOffset.cx=r.x+r.width/2,this.clientOffset.cy=r.y+r.height/2,this.clientOffset.width=r.width,this.clientOffset.height=r.height}}},methods:{increaseAlpha:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this.percent=Math.max(0,Math.min(100,this.percent+t))},decreaseAlpha:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:.01;this.increaseAlpha(-t)},alphaKeyPress:function(t){var n=!1;switch(t.key){case"ArrowRight":case"ArrowUp":this.increaseAlpha(),n=!0;break;case"ArrowLeft":case"ArrowDown":this.decreaseAlpha(),n=!0;break;case"Home":this.decreaseAlpha(this.percent),n=!0;break;case"End":this.increaseAlpha(100-this.percent),n=!0;break;case"PageUp":this.increaseAlpha(10-this.percent%10),n=!0;break;case"PageDown":this.decreaseAlpha(this.percent%10),n=!0;break}n&&(t.preventDefault(),t.stopPropagation(),this.emitAlpha())},clickAlpha:function(t){this.startMouseCapture(t),this.trackMouse(t),this.stopMouseCapture(t),this.$refs.alphaCursor.focus()},startMouseCapture:function(t){t.stopPropagation(),this.captureMouse=!0},trackMouse:function(t){if(this.captureMouse!==!1){t.preventDefault(),t.stopPropagation();var n=[0,0],r=n[0];if(typeof t.touches!="undefined"&&t.touches.length){var s=[t.touches[0].clientX];r=s[0]}else{var o=[t.clientX];r=o[0]}var c=.5+(this.clientOffset.cx-r)/this.clientOffset.width;this.percent=Math.round(100-Math.max(0,Math.min(1,c))*100),this.emitAlpha()}},stopMouseCapture:function(t){this.captureMouse!==!1&&(t.preventDefault(),t.stopPropagation(),this.$refs.alphaCursor.focus()),this.captureMouse=!1},emitAlpha:function(){this.$emit("input",(1-this.percent/100)*255)}},mounted:function(){window.addEventListener("mousemove",this.trackMouse),window.addEventListener("touchmove",this.trackMouse,{passive:!1}),window.addEventListener("mouseup",this.stopMouseCapture),window.addEventListener("touchend",this.stopMouseCapture)},beforeDestroy:function(){window.removeEventListener("mousemove",this.trackMouse),window.removeEventListener("touchmove",this.trackMouse),window.removeEventListener("mouseup",this.stopMouseCapture),window.removeEventListener("touchend",this.stopMouseCapture)}};const Iz=Dz;var Nz=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"b-colorpicker-alpha-slider",style:e.style,on:{click:e.clickAlpha,keydown:e.alphaKeyPress,mousedown:e.startMouseCapture,touchstart:function(r){return r.preventDefault(),e.startMouseCapture(r)}}},[n("div",{ref:"alphaCursor",staticClass:"alpha-range-thumb",style:{left:e.percent+"%"},attrs:{role:"slider",tabindex:"0","aria-label":"Tranparency","aria-valuemin":"0","aria-valuenow":e.percent,"aria-valuemax":"100"}},[n("b-tooltip",{attrs:{label:e.percent+"%",always:e.captureMouse}})],1)])},Fz=[];const Lz=void 0,Bz=void 0,zz=void 0,jz=!1;var Ky=me({render:Nz,staticRenderFns:Fz},Lz,Iz,Bz,jz,zz,void 0,void 0),Ln,qz=function(t,n){return t.alpha<1?t.toString("hexa"):t.toString("hex")},Vz=function(t,n){return Va.parse(t)},Uz={name:"BColorpicker",components:(Ln={},fe(Ln,Gy.name,Gy),fe(Ln,Yy.name,Yy),fe(Ln,Ky.name,Ky),fe(Ln,qt.name,qt),fe(Ln,zi.name,zi),fe(Ln,ji.name,ji),fe(Ln,Fe.name,Fe),fe(Ln,Li.name,Li),fe(Ln,Bi.name,Bi),Ln),mixins:[li],inheritAttrs:!1,provide:function(){return{$colorpicker:this}},props:{value:{type:[String,Object],validator:function(t){return typeof t=="string"||Xt(t)==="object"&&typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"}},representation:{type:String,default:"triangle",value:function(t){return["triangle","square"].some(function(n){return n===t})}},inline:Boolean,disabled:Boolean,horizontalColorPicker:{type:Boolean,default:!1},colorFormatter:{type:Function,default:function(t,n){return typeof Q.defaultColorFormatter=="function"?Q.defaultColorFormatter(t):qz(t)}},colorParser:{type:Function,default:function(t,n){return typeof Q.defaultColorParser=="function"?Q.defaultColorParser(t):Vz(t)}},alpha:{type:Boolean,default:!1},expanded:Boolean,position:String,mobileModal:{type:Boolean,default:function(){return Q.defaultDatepickerMobileModal}},focusable:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:function(){return Q.defaultTrapFocus}},appendToBody:Boolean},data:function(){var t=this.colorParser(this.value);return{colorSelected:t}},computed:{background:function(){if(this.alpha)return`linear-gradient( + 45deg, + `.concat(this.colorSelected.toString("hex"),` 50%, + `).concat(this.colorSelected.toString("hexa"),` 50% + )`);var t=this.colorSelected.toString("hex");return`linear-gradient( + 45deg, + `.concat(t,` 50%, + `).concat(t,` 50% + )`)},triggerStyle:function(){var t=this.colorSelected,n=t.red,r=t.green,s=t.blue,o=n*.299+r*.587+s*.114>186;return{backgroundColor:"#ffffff",backgroundImage:` + `.concat(this.background,`, + linear-gradient(45deg, #c7c7c7 25%, transparent 25%, transparent 75%, #c7c7c7 75%, #c7c7c7), + linear-gradient(45deg, #c7c7c7 25%, transparent 25%, transparent 75%, #c7c7c7 75%, #c7c7c7) + `),backgroundSize:"100% 100%, 16px 16px, 16px 16px",backgroundPosition:"0 0, 8px 8px, 0 0",color:o?"#000000":"#FFFFFF",textShadow:"0 0 2px ".concat(o?"#FFFFFFAA":"#000000AA")}},isMobile:function(){return this.mobileNative&&Ei.any()},ariaRole:function(){if(!this.inline)return"dialog"}},watch:{value:function(t){this.colorSelected=new Va(t)}},methods:{updateColor:function(t){t.alpha=this.colorSelected.alpha,this.colorSelected=t,this.$emit("input",t)},updateAlpha:function(t){this.colorSelected.alpha=t,this.$emit("input",this.colorSelected)},formatValue:function(t){return t?this.colorFormatter(t,this):null},togglePicker:function(t){if(this.$refs.dropdown){var n=typeof t=="boolean"?t:!this.$refs.dropdown.isActive;n?this.$refs.dropdown.isActive=n:this.closeOnClick&&(this.$refs.dropdown.isActive=n)}},handleOnFocus:function(t){this.onFocus(t),this.openOnFocus&&this.togglePicker(!0)},toggle:function(){if(this.mobileNative&&this.isMobile){var t=this.$refs.input.$refs.input;t.focus(),t.click();return}this.$refs.dropdown.toggle()},onInputClick:function(t){this.$refs.dropdown.isActive&&t.stopPropagation()},keyPress:function(t){var n=t.key;this.$refs.dropdown&&this.$refs.dropdown.isActive&&(n==="Escape"||n==="Esc")&&this.togglePicker(!1)},onActiveChange:function(t){t||this.onBlur(),this.$emit("active-change",t)}}};const Hz=Uz;var Wz=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"colorpicker control",class:[e.size,{"is-expanded":e.expanded}]},[!e.isMobile||e.inline?n("b-dropdown",{ref:"dropdown",attrs:{position:e.position,expanded:e.expanded,disabled:e.disabled,inline:e.inline,"mobile-modal":e.mobileModal,"trap-focus":e.trapFocus,"aria-role":e.ariaRole,"append-to-body":e.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":e.onActiveChange},scopedSlots:e._u([e.inline?null:{key:"trigger",fn:function(){return[e._t("trigger",[n("b-button",{style:e.triggerStyle,attrs:{expanded:e.expanded,disabled:e.disabled}},[n("span",{staticClass:"color-name"},[e._v(e._s(e.colorFormatter(e.colorSelected)))])])])]},proxy:!0}],null,!0)},[n("b-dropdown-item",{class:{"dropdown-horizontal-colorpicker":e.horizontalColorPicker},attrs:{disabled:e.disabled,focusable:e.focusable,custom:""}},[n("div",[n("header",{staticClass:"colorpicker-header"},[e.$slots.header!==void 0&&e.$slots.header.length?[e._t("header")]:e._e()],2),n("div",{staticClass:"colorpicker-content"},[e.representation==="square"?n("b-colorpicker-h-s-l-representation-square",{attrs:{value:e.colorSelected},on:{input:e.updateColor}}):n("b-colorpicker-h-s-l-representation-triangle",{attrs:{value:e.colorSelected},on:{input:e.updateColor}})],1)]),n("footer",{staticClass:"colorpicker-footer"},[e.alpha?n("b-colorpicker-alpha-slider",{attrs:{value:e.colorSelected.alpha,color:e.colorSelected},on:{input:e.updateAlpha}}):e._e(),e._t("footer",[n("b-field",{staticClass:"colorpicker-fields",attrs:{grouped:""}},[n("b-field",{attrs:{horizontal:"",label:"R"}},[n("b-input",{attrs:{type:"number",size:"is-small","aria-label":"Red"},model:{value:e.colorSelected.red,callback:function(r){e.$set(e.colorSelected,"red",e._n(r))},expression:"colorSelected.red"}})],1),n("b-field",{attrs:{horizontal:"",label:"G"}},[n("b-input",{attrs:{type:"number",size:"is-small","aria-label":"Green"},model:{value:e.colorSelected.green,callback:function(r){e.$set(e.colorSelected,"green",e._n(r))},expression:"colorSelected.green"}})],1),n("b-field",{attrs:{horizontal:"",label:"B"}},[n("b-input",{attrs:{type:"number",size:"is-small","aria-label":"Blue"},model:{value:e.colorSelected.blue,callback:function(r){e.$set(e.colorSelected,"blue",e._n(r))},expression:"colorSelected.blue"}})],1)],1)],{color:e.colorSelected})],2)])],1):e._e()],1)},Gz=[];const Yz=void 0,Kz=void 0,Xz=void 0,Qz=!1;var Zz=me({render:Wz,staticRenderFns:Gz},Yz,Hz,Kz,Qz,Xz,void 0,void 0),aS={install:function(t){_e(t,Zz)}};Oe(aS);var Jz=aS,e3={name:"BDatepickerTableRow",inject:{$datepicker:{name:"$datepicker",default:!1}},props:{selectedDate:{type:[Date,Array]},hoveredDateRange:Array,day:{type:Number},week:{type:Array,required:!0},month:{type:Number,required:!0},minDate:Date,maxDate:Date,disabled:Boolean,unselectableDates:[Array,Function],unselectableDaysOfWeek:Array,selectableDates:[Array,Function],events:Array,indicators:String,dateCreator:Function,nearbyMonthDays:Boolean,nearbySelectableMonthDays:Boolean,showWeekNumber:Boolean,weekNumberClickable:Boolean,range:Boolean,multiple:Boolean,rulesForFirstWeek:Number,firstDayOfWeek:Number},watch:{day:function(t){var n=this,r="day-".concat(this.month,"-").concat(t);this.$nextTick(function(){n.$refs[r]&&n.$refs[r].length>0&&n.$refs[r][0]&&n.$refs[r][0].focus()})}},methods:{firstWeekOffset:function(t,n,r){var s=7+n-r,o=new Date(t,0,s),c=(7+o.getDay()-n)%7;return-c+s-1},daysInYear:function(t){return this.isLeapYear(t)?366:365},isLeapYear:function(t){return t%4===0&&t%100!==0||t%400===0},getSetDayOfYear:function(t){return Math.round((t-new Date(t.getFullYear(),0,1))/864e5)+1},weeksInYear:function(t,n,r){var s=this.firstWeekOffset(t,n,r),o=this.firstWeekOffset(t+1,n,r);return(this.daysInYear(t)-s+o)/7},getWeekNumber:function(t){var n=this.firstDayOfWeek,r=this.rulesForFirstWeek,s=this.firstWeekOffset(t.getFullYear(),n,r),o=Math.floor((this.getSetDayOfYear(t)-s-1)/7)+1,c,u;return o<1?(u=t.getFullYear()-1,c=o+this.weeksInYear(u,n,r)):o>this.weeksInYear(t.getFullYear(),n,r)?(c=o-this.weeksInYear(t.getFullYear(),n,r),u=t.getFullYear()+1):(u=t.getFullYear(),c=o),{week:c,year:u}},clickWeekNumber:function(t){this.weekNumberClickable&&this.$datepicker.$emit("week-number-click",t.week,t.year)},selectableDate:function(t){var n=[];if(this.minDate&&n.push(t>=this.minDate),this.maxDate&&n.push(t<=this.maxDate),this.nearbyMonthDays&&!this.nearbySelectableMonthDays&&n.push(t.getMonth()===this.month),this.selectableDates)if(typeof this.selectableDates=="function"){if(this.selectableDates(t))return!0;n.push(!1)}else for(var r=0;ro[0]&&sthis.minDate)&&(!this.maxDate||rt?(this.selectedEndDate=this.selectedBeginDate,this.selectedBeginDate=t):this.selectedEndDate=t,this.$emit("range-end",t),this.$emit("input",[this.selectedBeginDate,this.selectedEndDate])):(this.selectedBeginDate=t,this.$emit("range-start",t))},handleSelectMultipleDates:function(t){var n=this.multipleSelectedDates.filter(function(r){return r.getDate()===t.getDate()&&r.getFullYear()===t.getFullYear()&&r.getMonth()===t.getMonth()});n.length?this.multipleSelectedDates=this.multipleSelectedDates.filter(function(r){return r.getDate()!==t.getDate()||r.getFullYear()!==t.getFullYear()||r.getMonth()!==t.getMonth()}):this.multipleSelectedDates=[].concat(Kt(this.multipleSelectedDates),[t])},weekBuilder:function(t,n,r){for(var s=new Date(r,n),o=[],c=new Date(r,n,t).getDay(),u=c>=this.firstDayOfWeek?c-this.firstDayOfWeek:7-this.firstDayOfWeek+c,i=1,a=0;a=this.minDate),this.maxDate&&n.push(t<=this.maxDate),this.nearbyMonthDays&&!this.nearbySelectableMonthDays&&n.push(t.getMonth()===this.focused.month),this.selectableDates)if(typeof this.selectableDates=="function"){if(this.selectableDates(t))return!0;n.push(!1)}else for(var r=0;r0&&this.$nextTick(function(){n.$refs[r][0]&&n.$refs[r][0].focus()})}},methods:{selectMultipleDates:function(t){var n=this.multipleSelectedDates.filter(function(r){return r.getDate()===t.getDate()&&r.getFullYear()===t.getFullYear()&&r.getMonth()===t.getMonth()});n.length?this.multipleSelectedDates=this.multipleSelectedDates.filter(function(r){return r.getDate()!==t.getDate()||r.getFullYear()!==t.getFullYear()||r.getMonth()!==t.getMonth()}):this.multipleSelectedDates.push(t),this.$emit("input",this.multipleSelectedDates)},selectableDate:function(t){var n=[];if(this.minDate&&n.push(t>=this.minDate),this.maxDate&&n.push(t<=this.maxDate),n.push(t.getFullYear()===this.focused.year),this.selectableDates)if(typeof this.selectableDates=="function"){if(this.selectableDates(t))return!0;n.push(!1)}else for(var r=0;rc[0]&&ot?(this.selectedEndDate=this.selectedBeginDate,this.selectedBeginDate=t):this.selectedEndDate=t,this.$emit("range-end",t),this.$emit("input",[this.selectedBeginDate,this.selectedEndDate])):(this.selectedBeginDate=t,this.$emit("range-start",t)))},setRangeHoverEndDate:function(t){this.range&&(this.hoveredEndDate=t)},changeFocus:function(t,n){var r=t;r.setMonth(t.getMonth()+n),this.$emit("change-focus",r)}}};const g3=v3;var y3=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"datepicker-table"},[n("div",{staticClass:"datepicker-body",class:{"has-events":e.hasEvents}},[n("div",{staticClass:"datepicker-months"},[e._l(e.monthDates,function(r,s){return[e.selectableDate(r)&&!e.disabled?n("a",{key:s,ref:"month-"+r.getMonth(),refInFor:!0,staticClass:"datepicker-cell",class:[e.classObject(r),{"has-event":e.eventsDateMatch(r)},e.indicators],attrs:{role:"button",href:"#",disabled:e.disabled,tabindex:e.focused.month===r.getMonth()?null:-1},on:{click:function(o){return o.preventDefault(),e.updateSelectedDate(r)},mouseenter:function(o){return e.setRangeHoverEndDate(r)},keydown:function(o){return o.preventDefault(),e.manageKeydown(o,r)}}},[e._v(" "+e._s(e.monthNames[r.getMonth()])+" "),e.eventsDateMatch(r)?n("div",{staticClass:"events"},e._l(e.eventsDateMatch(r),function(o,c){return n("div",{key:c,staticClass:"event",class:o.type})}),0):e._e()]):n("div",{key:s,staticClass:"datepicker-cell",class:e.classObject(r)},[e._v(" "+e._s(e.monthNames[r.getMonth()])+" ")])]})],2)])])},_3=[];const b3=void 0,S3=void 0,w3=void 0,C3=!1;var Zy=me({render:y3,staticRenderFns:_3},b3,g3,S3,C3,w3,void 0,void 0),ei,x3=function(t,n){var r=Array.isArray(t)?t:[t],s=r.map(function(o){var c=new Date(o.getFullYear(),o.getMonth(),o.getDate(),12);return n.isTypeMonth?n.dtfMonth.format(c):n.dtf.format(c)});return n.multiple?s.join(", "):s.join(" - ")},T3=function(t,n){if(n.dtf.formatToParts&&typeof n.dtf.formatToParts=="function"){var r=(n.isTypeMonth?n.dtfMonth:n.dtf).formatToParts(new Date(2e3,11,25)).map(function(i){return i.type==="literal"?i.value:"((?!=<".concat(i.type,">)\\d+)")}).join(""),s=cp(r,t);if(s.year&&s.year.length===4&&s.month&&s.month<=12){if(n.isTypeMonth)return new Date(s.year,s.month-1);if(s.day&&s.day<=31)return new Date(s.year,s.month-1,s.day,12)}}if(!n.isTypeMonth)return new Date(Date.parse(t));if(t){var o=t.split("/"),c=o[0].length===4?o[0]:o[1],u=o[0].length===2?o[0]:o[1];if(c&&u)return new Date(parseInt(c,10),parseInt(u-1,10),1,0,0,0,0)}return null},A3={name:"BDatepicker",components:(ei={},fe(ei,Qy.name,Qy),fe(ei,Zy.name,Zy),fe(ei,qt.name,qt),fe(ei,zi.name,zi),fe(ei,ji.name,ji),fe(ei,Fe.name,Fe),fe(ei,Li.name,Li),fe(ei,Bi.name,Bi),ei),mixins:[li],inheritAttrs:!1,provide:function(){return{$datepicker:this}},props:{value:{type:[Date,Array]},dayNames:{type:Array,default:function(){if(!!Array.isArray(Q.defaultDayNames))return Q.defaultDayNames}},monthNames:{type:Array,default:function(){if(!!Array.isArray(Q.defaultMonthNames))return Q.defaultMonthNames}},firstDayOfWeek:{type:Number,default:function(){return typeof Q.defaultFirstDayOfWeek=="number"?Q.defaultFirstDayOfWeek:0}},inline:Boolean,minDate:Date,maxDate:Date,focusedDate:Date,placeholder:String,editable:Boolean,disabled:Boolean,horizontalTimePicker:Boolean,unselectableDates:[Array,Function],unselectableDaysOfWeek:{type:Array,default:function(){return Q.defaultUnselectableDaysOfWeek}},selectableDates:[Array,Function],dateFormatter:{type:Function,default:function(t,n){return typeof Q.defaultDateFormatter=="function"?Q.defaultDateFormatter(t):x3(t,n)}},dateParser:{type:Function,default:function(t,n){return typeof Q.defaultDateParser=="function"?Q.defaultDateParser(t):T3(t,n)}},dateCreator:{type:Function,default:function(){return typeof Q.defaultDateCreator=="function"?Q.defaultDateCreator():new Date}},mobileNative:{type:Boolean,default:function(){return Q.defaultDatepickerMobileNative}},position:String,iconRight:String,iconRightClickable:Boolean,events:Array,indicators:{type:String,default:"dots"},openOnFocus:Boolean,iconPrev:{type:String,default:function(){return Q.defaultIconPrev}},iconNext:{type:String,default:function(){return Q.defaultIconNext}},yearsRange:{type:Array,default:function(){return Q.defaultDatepickerYearsRange}},type:{type:String,validator:function(t){return["month"].indexOf(t)>=0}},nearbyMonthDays:{type:Boolean,default:function(){return Q.defaultDatepickerNearbyMonthDays}},nearbySelectableMonthDays:{type:Boolean,default:function(){return Q.defaultDatepickerNearbySelectableMonthDays}},showWeekNumber:{type:Boolean,default:function(){return Q.defaultDatepickerShowWeekNumber}},weekNumberClickable:{type:Boolean,default:function(){return Q.defaultDatepickerWeekNumberClickable}},rulesForFirstWeek:{type:Number,default:function(){return 4}},range:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},mobileModal:{type:Boolean,default:function(){return Q.defaultDatepickerMobileModal}},focusable:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:function(){return Q.defaultTrapFocus}},appendToBody:Boolean,ariaNextLabel:String,ariaPreviousLabel:String},data:function(){var t=(Array.isArray(this.value)?this.value[0]:this.value)||this.focusedDate||this.dateCreator();return!this.value&&this.maxDate&&this.maxDate.getFullYear()n}})},listOfYears:function(){var t=this.focusedDateData.year+this.yearsRange[1];this.maxDate&&this.maxDate.getFullYear()n&&(n=Math.min(this.minDate.getFullYear(),this.focusedDateData.year));for(var r=[],s=n;s<=t;s++)r.push(s);return r.reverse()},showPrev:function(){if(!this.minDate)return!1;if(this.isTypeMonth)return this.focusedDateData.year<=this.minDate.getFullYear();var t=new Date(this.focusedDateData.year,this.focusedDateData.month),n=new Date(this.minDate.getFullYear(),this.minDate.getMonth());return t<=n},showNext:function(){if(!this.maxDate)return!1;if(this.isTypeMonth)return this.focusedDateData.year>=this.maxDate.getFullYear();var t=new Date(this.focusedDateData.year,this.focusedDateData.month),n=new Date(this.maxDate.getFullYear(),this.maxDate.getMonth());return t>=n},isMobile:function(){return this.mobileNative&&Ei.any()},isTypeMonth:function(){return this.type==="month"},ariaRole:function(){if(!this.inline)return"dialog"}},watch:{value:function(t){this.updateInternalState(t),this.multiple||this.togglePicker(!1)},focusedDate:function(t){t&&(this.focusedDateData={day:t.getDate(),month:t.getMonth(),year:t.getFullYear()})},"focusedDateData.month":function(t){this.$emit("change-month",t)},"focusedDateData.year":function(t){this.$emit("change-year",t)}},methods:{onChange:function(t){var n=this.dateParser(t,this);n&&(!isNaN(n)||Array.isArray(n)&&n.length===2&&!isNaN(n[0])&&!isNaN(n[1]))?this.computedValue=n:(this.computedValue=null,this.$refs.input&&(this.$refs.input.newValue=this.computedValue))},formatValue:function(t){if(Array.isArray(t)){var n=Array.isArray(t)&&t.every(function(r){return!isNaN(r)});return n?this.dateFormatter(Kt(t),this):null}return t&&!isNaN(t)?this.dateFormatter(t,this):null},prev:function(){this.disabled||(this.isTypeMonth?this.focusedDateData.year-=1:this.focusedDateData.month>0?this.focusedDateData.month-=1:(this.focusedDateData.month=11,this.focusedDateData.year-=1))},next:function(){this.disabled||(this.isTypeMonth?this.focusedDateData.year+=1:this.focusedDateData.month<11?this.focusedDateData.month+=1:(this.focusedDateData.month=0,this.focusedDateData.year+=1))},formatNative:function(t){return this.isTypeMonth?this.formatYYYYMM(t):this.formatYYYYMMDD(t)},formatYYYYMMDD:function(t){var n=new Date(t);if(t&&!isNaN(n)){var r=n.getFullYear(),s=n.getMonth()+1,o=n.getDate();return r+"-"+((s<10?"0":"")+s)+"-"+((o<10?"0":"")+o)}return""},formatYYYYMM:function(t){var n=new Date(t);if(t&&!isNaN(n)){var r=n.getFullYear(),s=n.getMonth()+1;return r+"-"+((s<10?"0":"")+s)}return""},onChangeNativePicker:function(t){var n=t.target.value,r=n?n.split("-"):[];if(r.length===3){var s=parseInt(r[0],10),o=parseInt(r[1])-1,c=parseInt(r[2]);this.computedValue=new Date(s,o,c)}else this.computedValue=null},updateInternalState:function(t){if(this.dateSelected!==t){var n=Array.isArray(t),r=n?t.length?t[t.length-1]:this.dateCreator():t||this.dateCreator();(!n||n&&this.dateSelected&&t.length>this.dateSelected.length)&&(this.focusedDateData={day:r.getDate(),month:r.getMonth(),year:r.getFullYear()}),this.dateSelected=t}},togglePicker:function(t){if(this.$refs.dropdown){var n=typeof t=="boolean"?t:!this.$refs.dropdown.isActive;n?this.$refs.dropdown.isActive=n:this.closeOnClick&&(this.$refs.dropdown.isActive=n)}},handleOnFocus:function(t){this.onFocus(t),this.openOnFocus&&this.togglePicker(!0)},toggle:function(){if(this.mobileNative&&this.isMobile){var t=this.$refs.input.$refs.input;t.focus(),t.click();return}this.$refs.dropdown.toggle()},onInputClick:function(t){this.$refs.dropdown.isActive&&t.stopPropagation()},keyPress:function(t){var n=t.key;this.$refs.dropdown&&this.$refs.dropdown.isActive&&(n==="Escape"||n==="Esc")&&this.togglePicker(!1)},onActiveChange:function(t){t||this.onBlur(),this.$emit("active-change",t)},changeFocus:function(t){this.focusedDateData={day:t.getDate(),month:t.getMonth(),year:t.getFullYear()}}},created:function(){typeof window!="undefined"&&document.addEventListener("keyup",this.keyPress)},beforeDestroy:function(){typeof window!="undefined"&&document.removeEventListener("keyup",this.keyPress)}};const P3=A3;var O3=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"datepicker control",class:[e.size,{"is-expanded":e.expanded}]},[!e.isMobile||e.inline?n("b-dropdown",{ref:"dropdown",attrs:{position:e.position,disabled:e.disabled,inline:e.inline,"mobile-modal":e.mobileModal,"trap-focus":e.trapFocus,"aria-role":e.ariaRole,"append-to-body":e.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":e.onActiveChange},scopedSlots:e._u([e.inline?null:{key:"trigger",fn:function(){return[e._t("trigger",[n("b-input",e._b({ref:"input",attrs:{autocomplete:"off",value:e.formattedValue,placeholder:e.placeholder,size:e.size,icon:e.icon,"icon-right":e.iconRight,"icon-right-clickable":e.iconRightClickable,"icon-pack":e.iconPack,rounded:e.rounded,loading:e.loading,disabled:e.disabled,readonly:!e.editable,"use-html5-validation":!1},on:{"icon-right-click":function(r){return e.$emit("icon-right-click",r)},focus:e.handleOnFocus},nativeOn:{click:function(r){return e.onInputClick(r)},keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.togglePicker(!0)},change:function(r){return e.onChange(r.target.value)}}},"b-input",e.$attrs,!1))])]},proxy:!0}],null,!0)},[n("b-dropdown-item",{class:{"dropdown-horizontal-timepicker":e.horizontalTimePicker},attrs:{disabled:e.disabled,focusable:e.focusable,custom:""}},[n("div",[n("header",{staticClass:"datepicker-header"},[e.$slots.header!==void 0&&e.$slots.header.length?[e._t("header")]:n("div",{staticClass:"pagination field is-centered",class:e.size},[n("a",{directives:[{name:"show",rawName:"v-show",value:!e.showPrev&&!e.disabled,expression:"!showPrev && !disabled"}],staticClass:"pagination-previous",attrs:{role:"button",href:"#",disabled:e.disabled,"aria-label":e.ariaPreviousLabel},on:{click:function(r){return r.preventDefault(),e.prev(r)},keydown:[function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:(r.preventDefault(),e.prev(r))},function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"space",32,r.key,[" ","Spacebar"])?null:(r.preventDefault(),e.prev(r))}]}},[n("b-icon",{attrs:{icon:e.iconPrev,pack:e.iconPack,both:"",type:"is-primary is-clickable"}})],1),n("a",{directives:[{name:"show",rawName:"v-show",value:!e.showNext&&!e.disabled,expression:"!showNext && !disabled"}],staticClass:"pagination-next",attrs:{role:"button",href:"#",disabled:e.disabled,"aria-label":e.ariaNextLabel},on:{click:function(r){return r.preventDefault(),e.next(r)},keydown:[function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:(r.preventDefault(),e.next(r))},function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"space",32,r.key,[" ","Spacebar"])?null:(r.preventDefault(),e.next(r))}]}},[n("b-icon",{attrs:{icon:e.iconNext,pack:e.iconPack,both:"",type:"is-primary is-clickable"}})],1),n("div",{staticClass:"pagination-list"},[n("b-field",[e.isTypeMonth?e._e():n("b-select",{attrs:{disabled:e.disabled,size:e.size},model:{value:e.focusedDateData.month,callback:function(r){e.$set(e.focusedDateData,"month",r)},expression:"focusedDateData.month"}},e._l(e.listOfMonths,function(r){return n("option",{key:r.name,attrs:{disabled:r.disabled},domProps:{value:r.index}},[e._v(" "+e._s(r.name)+" ")])}),0),n("b-select",{attrs:{disabled:e.disabled,size:e.size},model:{value:e.focusedDateData.year,callback:function(r){e.$set(e.focusedDateData,"year",r)},expression:"focusedDateData.year"}},e._l(e.listOfYears,function(r){return n("option",{key:r,domProps:{value:r}},[e._v(" "+e._s(r)+" ")])}),0)],1)],1)])],2),e.isTypeMonth?n("div",[n("b-datepicker-month",{attrs:{"month-names":e.newMonthNames,"min-date":e.minDate,"max-date":e.maxDate,focused:e.focusedDateData,disabled:e.disabled,"unselectable-dates":e.unselectableDates,"unselectable-days-of-week":e.unselectableDaysOfWeek,"selectable-dates":e.selectableDates,events:e.events,indicators:e.indicators,"date-creator":e.dateCreator,range:e.range,multiple:e.multiple},on:{"range-start":function(r){return e.$emit("range-start",r)},"range-end":function(r){return e.$emit("range-end",r)},close:function(r){return e.togglePicker(!1)},"change-focus":e.changeFocus,"update:focused":function(r){e.focusedDateData=r}},model:{value:e.computedValue,callback:function(r){e.computedValue=r},expression:"computedValue"}})],1):n("div",{staticClass:"datepicker-content",class:{"content-horizontal-timepicker":e.horizontalTimePicker}},[n("b-datepicker-table",{attrs:{"day-names":e.newDayNames,"month-names":e.newMonthNames,"first-day-of-week":e.firstDayOfWeek,"rules-for-first-week":e.rulesForFirstWeek,"min-date":e.minDate,"max-date":e.maxDate,focused:e.focusedDateData,disabled:e.disabled,"unselectable-dates":e.unselectableDates,"unselectable-days-of-week":e.unselectableDaysOfWeek,"selectable-dates":e.selectableDates,events:e.events,indicators:e.indicators,"date-creator":e.dateCreator,"type-month":e.isTypeMonth,"nearby-month-days":e.nearbyMonthDays,"nearby-selectable-month-days":e.nearbySelectableMonthDays,"show-week-number":e.showWeekNumber,"week-number-clickable":e.weekNumberClickable,range:e.range,multiple:e.multiple},on:{"range-start":function(r){return e.$emit("range-start",r)},"range-end":function(r){return e.$emit("range-end",r)},close:function(r){return e.togglePicker(!1)},"update:focused":function(r){e.focusedDateData=r}},model:{value:e.computedValue,callback:function(r){e.computedValue=r},expression:"computedValue"}})],1)]),e.$slots.default!==void 0&&e.$slots.default.length?n("footer",{staticClass:"datepicker-footer",class:{"footer-horizontal-timepicker":e.horizontalTimePicker}},[e._t("default")],2):e._e()])],1):n("b-input",e._b({ref:"input",attrs:{type:e.isTypeMonth?"month":"date",autocomplete:"off",value:e.formatNative(e.computedValue),placeholder:e.placeholder,size:e.size,icon:e.icon,"icon-pack":e.iconPack,rounded:e.rounded,loading:e.loading,max:e.formatNative(e.maxDate),min:e.formatNative(e.minDate),disabled:e.disabled,readonly:!1,"use-html5-validation":!1},on:{focus:e.onFocus,blur:e.onBlur},nativeOn:{change:function(r){return e.onChangeNativePicker(r)}}},"b-input",e.$attrs,!1))],1)},k3=[];const $3=void 0,E3=void 0,M3=void 0,R3=!1;var Hd=me({render:O3,staticRenderFns:k3},$3,P3,E3,R3,M3,void 0,void 0),sS={install:function(t){_e(t,Hd)}};Oe(sS);var D3=sS,ir,I3={name:"BTimepicker",components:(ir={},fe(ir,qt.name,qt),fe(ir,zi.name,zi),fe(ir,ji.name,ji),fe(ir,Fe.name,Fe),fe(ir,Li.name,Li),fe(ir,Bi.name,Bi),ir),mixins:[eS],inheritAttrs:!1,data:function(){return{_isTimepicker:!0}},computed:{nativeStep:function(){if(this.enableSeconds)return"1"}}};const N3=I3;var F3=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"timepicker control",class:[e.size,{"is-expanded":e.expanded}]},[!e.isMobile||e.inline?n("b-dropdown",{ref:"dropdown",attrs:{position:e.position,disabled:e.disabled,inline:e.inline,"append-to-body":e.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":e.onActiveChange},scopedSlots:e._u([e.inline?null:{key:"trigger",fn:function(){return[e._t("trigger",[n("b-input",e._b({ref:"input",attrs:{autocomplete:"off",value:e.formatValue(e.computedValue),placeholder:e.placeholder,size:e.size,icon:e.icon,"icon-pack":e.iconPack,loading:e.loading,disabled:e.disabled,readonly:!e.editable,rounded:e.rounded,"use-html5-validation":e.useHtml5Validation},on:{focus:e.handleOnFocus},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.toggle(!0)},change:function(r){return e.onChange(r.target.value)}}},"b-input",e.$attrs,!1))])]},proxy:!0}],null,!0)},[n("b-dropdown-item",{attrs:{disabled:e.disabled,focusable:e.focusable,custom:""}},[n("b-field",{attrs:{grouped:"",position:"is-centered"}},[n("b-select",{attrs:{disabled:e.disabled,placeholder:"00"},nativeOn:{change:function(r){return e.onHoursChange(r.target.value)}},model:{value:e.hoursSelected,callback:function(r){e.hoursSelected=r},expression:"hoursSelected"}},e._l(e.hours,function(r){return n("option",{key:r.value,attrs:{disabled:e.isHourDisabled(r.value)},domProps:{value:r.value}},[e._v(" "+e._s(r.label)+" ")])}),0),n("span",{staticClass:"control is-colon"},[e._v(e._s(e.hourLiteral))]),n("b-select",{attrs:{disabled:e.disabled,placeholder:"00"},nativeOn:{change:function(r){return e.onMinutesChange(r.target.value)}},model:{value:e.minutesSelected,callback:function(r){e.minutesSelected=r},expression:"minutesSelected"}},e._l(e.minutes,function(r){return n("option",{key:r.value,attrs:{disabled:e.isMinuteDisabled(r.value)},domProps:{value:r.value}},[e._v(" "+e._s(r.label)+" ")])}),0),e.enableSeconds?[n("span",{staticClass:"control is-colon"},[e._v(e._s(e.minuteLiteral))]),n("b-select",{attrs:{disabled:e.disabled,placeholder:"00"},nativeOn:{change:function(r){return e.onSecondsChange(r.target.value)}},model:{value:e.secondsSelected,callback:function(r){e.secondsSelected=r},expression:"secondsSelected"}},e._l(e.seconds,function(r){return n("option",{key:r.value,attrs:{disabled:e.isSecondDisabled(r.value)},domProps:{value:r.value}},[e._v(" "+e._s(r.label)+" ")])}),0),n("span",{staticClass:"control is-colon"},[e._v(e._s(e.secondLiteral))])]:e._e(),e.isHourFormat24?e._e():n("b-select",{attrs:{disabled:e.disabled},nativeOn:{change:function(r){return e.onMeridienChange(r.target.value)}},model:{value:e.meridienSelected,callback:function(r){e.meridienSelected=r},expression:"meridienSelected"}},e._l(e.meridiens,function(r){return n("option",{key:r,domProps:{value:r}},[e._v(" "+e._s(r)+" ")])}),0)],2),e.$slots.default!==void 0&&e.$slots.default.length?n("footer",{staticClass:"timepicker-footer"},[e._t("default")],2):e._e()],1)],1):n("b-input",e._b({ref:"input",attrs:{type:"time",step:e.nativeStep,autocomplete:"off",value:e.formatHHMMSS(e.computedValue),placeholder:e.placeholder,size:e.size,icon:e.icon,"icon-pack":e.iconPack,rounded:e.rounded,loading:e.loading,max:e.formatHHMMSS(e.maxTime),min:e.formatHHMMSS(e.minTime),disabled:e.disabled,readonly:!1,"use-html5-validation":e.useHtml5Validation},on:{focus:e.handleOnFocus,blur:function(r){e.onBlur()&&e.checkHtml5Validity()}},nativeOn:{change:function(r){return e.onChange(r.target.value)}}},"b-input",e.$attrs,!1))],1)},L3=[];const B3=void 0,z3=void 0,j3=void 0,q3=!1;var Wd=me({render:F3,staticRenderFns:L3},B3,N3,z3,q3,j3,void 0,void 0),vu,Jy="AM",e_="PM",V3={name:"BDatetimepicker",components:(vu={},fe(vu,Hd.name,Hd),fe(vu,Wd.name,Wd),vu),mixins:[li],inheritAttrs:!1,props:{value:{type:Date},editable:{type:Boolean,default:!1},placeholder:String,horizontalTimePicker:Boolean,disabled:Boolean,firstDayOfWeek:{type:Number,default:function(){return typeof Q.defaultFirstDayOfWeek=="number"?Q.defaultFirstDayOfWeek:0}},rulesForFirstWeek:{type:Number,default:function(){return 4}},icon:String,iconRight:String,iconRightClickable:Boolean,iconPack:String,inline:Boolean,openOnFocus:Boolean,position:String,mobileNative:{type:Boolean,default:!0},minDatetime:Date,maxDatetime:Date,datetimeFormatter:{type:Function},datetimeParser:{type:Function},datetimeCreator:{type:Function,default:function(t){return typeof Q.defaultDatetimeCreator=="function"?Q.defaultDatetimeCreator(t):t}},datepicker:Object,timepicker:Object,tzOffset:{type:Number,default:0},focusable:{type:Boolean,default:!0},appendToBody:Boolean},data:function(){return{newValue:this.adjustValue(this.value)}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){if(t){var n=new Date(t.getTime());this.newValue?(t.getDate()!==this.newValue.getDate()||t.getMonth()!==this.newValue.getMonth()||t.getFullYear()!==this.newValue.getFullYear())&&t.getHours()===0&&t.getMinutes()===0&&t.getSeconds()===0&&n.setHours(this.newValue.getHours(),this.newValue.getMinutes(),this.newValue.getSeconds(),0):n=this.datetimeCreator(t),this.minDatetime&&nthis.adjustValue(this.maxDatetime)&&(n=this.adjustValue(this.maxDatetime)),this.newValue=new Date(n.getTime())}else this.newValue=this.adjustValue(t);var r=this.adjustValue(this.newValue,!0);this.$emit("input",r)}},localeOptions:function(){return new Intl.DateTimeFormat(this.locale,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:this.enableSeconds()?"numeric":void 0}).resolvedOptions()},dtf:function(){return new Intl.DateTimeFormat(this.locale,{year:this.localeOptions.year||"numeric",month:this.localeOptions.month||"numeric",day:this.localeOptions.day||"numeric",hour:this.localeOptions.hour||"numeric",minute:this.localeOptions.minute||"numeric",second:this.enableSeconds()?this.localeOptions.second||"numeric":void 0,hourCycle:this.isHourFormat24()?"h23":"h12"})},isMobileNative:function(){return this.mobileNative&&this.tzOffset===0},isMobile:function(){return this.isMobileNative&&Ei.any()},minDate:function(){if(!this.minDatetime)return this.datepicker?this.adjustValue(this.datepicker.minDate):null;var t=this.adjustValue(this.minDatetime);return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)},maxDate:function(){if(!this.maxDatetime)return this.datepicker?this.adjustValue(this.datepicker.maxDate):null;var t=this.adjustValue(this.maxDatetime);return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)},minTime:function(){if(!this.minDatetime||this.newValue===null||typeof this.newValue=="undefined")return this.timepicker?this.adjustValue(this.timepicker.minTime):null;var t=this.adjustValue(this.minDatetime);if(t.getFullYear()===this.newValue.getFullYear()&&t.getMonth()===this.newValue.getMonth()&&t.getDate()===this.newValue.getDate())return t},maxTime:function(){if(!this.maxDatetime||this.newValue===null||typeof this.newValue=="undefined")return this.timepicker?this.adjustValue(this.timepicker.maxTime):null;var t=this.adjustValue(this.maxDatetime);if(t.getFullYear()===this.newValue.getFullYear()&&t.getMonth()===this.newValue.getMonth()&&t.getDate()===this.newValue.getDate())return t},datepickerSize:function(){return this.datepicker&&this.datepicker.size?this.datepicker.size:this.size},timepickerSize:function(){return this.timepicker&&this.timepicker.size?this.timepicker.size:this.size},timepickerDisabled:function(){return this.timepicker&&this.timepicker.disabled?this.timepicker.disabled:this.disabled}},watch:{value:function(){this.newValue=this.adjustValue(this.value)},tzOffset:function(){this.newValue=this.adjustValue(this.value)}},methods:{enableSeconds:function(){return this.$refs.timepicker?this.$refs.timepicker.enableSeconds:!1},isHourFormat24:function(){return this.$refs.timepicker?this.$refs.timepicker.isHourFormat24:!this.localeOptions.hour12},adjustValue:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return t&&(n?new Date(t.getTime()-this.tzOffset*6e4):new Date(t.getTime()+this.tzOffset*6e4))},defaultDatetimeParser:function(t){if(typeof this.datetimeParser=="function")return this.datetimeParser(t);if(typeof Q.defaultDatetimeParser=="function")return Q.defaultDatetimeParser(t);if(this.dtf.formatToParts&&typeof this.dtf.formatToParts=="function"){var n=[Jy,e_,Jy.toLowerCase(),e_.toLowerCase()];this.$refs.timepicker&&(n.push(this.$refs.timepicker.amString),n.push(this.$refs.timepicker.pmString));var r=this.dtf.formatToParts(new Date),s=r.map(function(u,i){return u.type==="literal"?i+1)(").concat(n.join("|"),")?)"):"((?!=<".concat(u.type,">)\\d+)")}).join(""),o=cp(s,t);if(o.year&&o.year.length===4&&o.month&&o.month<=12&&o.day&&o.day<=31&&o.hour&&o.hour>=0&&o.hour<24&&o.minute&&o.minute>=0&&o.minute<=59){var c=new Date(o.year,o.month-1,o.day,o.hour,o.minute,o.second||0);return c}}return new Date(Date.parse(t))},defaultDatetimeFormatter:function(t){return typeof this.datetimeFormatter=="function"?this.datetimeFormatter(t):typeof Q.defaultDatetimeFormatter=="function"?Q.defaultDatetimeFormatter(t):this.dtf.format(t)},onChangeNativePicker:function(t){var n=t.target.value,r=n?n.split(/\D/):[];if(r.length>=5){var s=parseInt(r[0],10),o=parseInt(r[1],10)-1,c=parseInt(r[2],10),u=parseInt(r[3],10),i=parseInt(r[4],10);this.computedValue=new Date(s,o,c,u,i)}else this.computedValue=null},onActiveChange:function(t){this.$emit("active-change",t)},formatNative:function(t){var n=new Date(t);if(t&&!isNaN(n)){var r=n.getFullYear(),s=n.getMonth()+1,o=n.getDate(),c=n.getHours(),u=n.getMinutes(),i=n.getSeconds();return r+"-"+((s<10?"0":"")+s)+"-"+((o<10?"0":"")+o)+"T"+((c<10?"0":"")+c)+":"+((u<10?"0":"")+u)+":"+((i<10?"0":"")+i)}return""},toggle:function(){this.$refs.datepicker.toggle()}},mounted:function(){(!this.isMobile||this.inline)&&this.newValue&&this.$refs.datepicker.$forceUpdate()}};const U3=V3;var H3=function(){var e=this,t=e.$createElement,n=e._self._c||t;return!e.isMobile||e.inline?n("b-datepicker",e._b({ref:"datepicker",attrs:{rounded:e.rounded,"open-on-focus":e.openOnFocus,position:e.position,loading:e.loading,inline:e.inline,editable:e.editable,expanded:e.expanded,"close-on-click":!1,"first-day-of-week":e.firstDayOfWeek,"rules-for-first-week":e.rulesForFirstWeek,"date-formatter":e.defaultDatetimeFormatter,"date-parser":e.defaultDatetimeParser,"min-date":e.minDate,"max-date":e.maxDate,icon:e.icon,"icon-right":e.iconRight,"icon-right-clickable":e.iconRightClickable,"icon-pack":e.iconPack,size:e.datepickerSize,placeholder:e.placeholder,"horizontal-time-picker":e.horizontalTimePicker,range:!1,disabled:e.disabled,"mobile-native":e.isMobileNative,locale:e.locale,focusable:e.focusable,"append-to-body":e.appendToBody},on:{focus:e.onFocus,blur:e.onBlur,"active-change":e.onActiveChange,"icon-right-click":function(r){return e.$emit("icon-right-click")},"change-month":function(r){return e.$emit("change-month",r)},"change-year":function(r){return e.$emit("change-year",r)}},model:{value:e.computedValue,callback:function(r){e.computedValue=r},expression:"computedValue"}},"b-datepicker",e.datepicker,!1),[n("nav",{staticClass:"level is-mobile"},[e.$slots.left!==void 0?n("div",{staticClass:"level-item has-text-centered"},[e._t("left")],2):e._e(),n("div",{staticClass:"level-item has-text-centered"},[n("b-timepicker",e._b({ref:"timepicker",attrs:{inline:"",editable:e.editable,"min-time":e.minTime,"max-time":e.maxTime,size:e.timepickerSize,disabled:e.timepickerDisabled,focusable:e.focusable,"mobile-native":e.isMobileNative,locale:e.locale},model:{value:e.computedValue,callback:function(r){e.computedValue=r},expression:"computedValue"}},"b-timepicker",e.timepicker,!1))],1),e.$slots.right!==void 0?n("div",{staticClass:"level-item has-text-centered"},[e._t("right")],2):e._e()])]):n("b-input",e._b({ref:"input",attrs:{type:"datetime-local",autocomplete:"off",value:e.formatNative(e.computedValue),placeholder:e.placeholder,size:e.size,icon:e.icon,"icon-pack":e.iconPack,rounded:e.rounded,loading:e.loading,max:e.formatNative(e.maxDate),min:e.formatNative(e.minDate),disabled:e.disabled,readonly:!1,"use-html5-validation":e.useHtml5Validation},on:{focus:e.onFocus,blur:e.onBlur},nativeOn:{change:function(r){return e.onChangeNativePicker(r)}}},"b-input",e.$attrs,!1))},W3=[];const G3=void 0,Y3=void 0,K3=void 0,X3=!1;var Q3=me({render:H3,staticRenderFns:W3},G3,U3,Y3,X3,K3,void 0,void 0),oS={install:function(t){_e(t,Q3)}};Oe(oS);var Z3=oS,J3={name:"BModal",directives:{trapFocus:dp},model:{prop:"active",event:"update:active"},props:{active:Boolean,component:[Object,Function,String],content:[String,Array],programmatic:Boolean,props:Object,events:Object,width:{type:[String,Number],default:960},hasModalCard:Boolean,animation:{type:String,default:"zoom-out"},canCancel:{type:[Array,Boolean],default:function(){return Q.defaultModalCanCancel}},onCancel:{type:Function,default:function(){}},scroll:{type:String,default:function(){return Q.defaultModalScroll?Q.defaultModalScroll:"clip"},validator:function(t){return["clip","keep"].indexOf(t)>=0}},fullScreen:Boolean,trapFocus:{type:Boolean,default:function(){return Q.defaultTrapFocus}},autoFocus:{type:Boolean,default:function(){return Q.defaultAutoFocus}},customClass:String,ariaRole:{type:String,validator:function(t){return["dialog","alertdialog"].indexOf(t)>=0}},ariaModal:Boolean,ariaLabel:{type:String,validator:function(t){return Boolean(t)}},closeButtonAriaLabel:String,destroyOnHide:{type:Boolean,default:!0}},data:function(){return{isActive:this.active||!1,savedScrollTop:null,newWidth:typeof this.width=="number"?this.width+"px":this.width,animating:!this.active,destroyed:!this.active}},computed:{cancelOptions:function(){return typeof this.canCancel=="boolean"?this.canCancel?Q.defaultModalCanCancel:[]:this.canCancel},showX:function(){return this.cancelOptions.indexOf("x")>=0},customStyle:function(){return this.fullScreen?null:{maxWidth:this.newWidth}}},watch:{active:function(t){this.isActive=t},isActive:function(t){var n=this;t&&(this.destroyed=!1),this.handleScroll(),this.$nextTick(function(){t&&n.$el&&n.$el.focus&&n.autoFocus&&n.$el.focus()})}},methods:{handleScroll:function(){if(typeof window!="undefined"){if(this.scroll==="clip"){this.isActive?document.documentElement.classList.add("is-clipped"):document.documentElement.classList.remove("is-clipped");return}if(this.savedScrollTop=this.savedScrollTop?this.savedScrollTop:document.documentElement.scrollTop,this.isActive?document.body.classList.add("is-noscroll"):document.body.classList.remove("is-noscroll"),this.isActive){document.body.style.top="-".concat(this.savedScrollTop,"px");return}document.documentElement.scrollTop=this.savedScrollTop,document.body.style.top=null,this.savedScrollTop=null}},cancel:function(t){this.cancelOptions.indexOf(t)<0||(this.$emit("cancel",arguments),this.onCancel.apply(null,arguments),this.close())},close:function(){var t=this;this.$emit("close"),this.$emit("update:active",!1),this.programmatic&&(this.isActive=!1,setTimeout(function(){t.$destroy(),Ui(t.$el)},150))},keyPress:function(t){var n=t.key;this.isActive&&(n==="Escape"||n==="Esc")&&this.cancel("escape")},afterEnter:function(){this.animating=!1,this.$emit("after-enter")},beforeLeave:function(){this.animating=!0},afterLeave:function(){this.destroyOnHide&&(this.destroyed=!0),this.$emit("after-leave")}},created:function(){typeof window!="undefined"&&document.addEventListener("keyup",this.keyPress)},beforeMount:function(){this.programmatic&&document.body.appendChild(this.$el)},mounted:function(){this.programmatic?this.isActive=!0:this.isActive&&this.handleScroll()},beforeDestroy:function(){if(typeof window!="undefined"){document.removeEventListener("keyup",this.keyPress),document.documentElement.classList.remove("is-clipped");var t=this.savedScrollTop?this.savedScrollTop:document.documentElement.scrollTop;document.body.classList.remove("is-noscroll"),document.documentElement.scrollTop=t,document.body.style.top=null}}};const e5=J3;var t5=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:e.animation},on:{"after-enter":e.afterEnter,"before-leave":e.beforeLeave,"after-leave":e.afterLeave}},[e.destroyed?e._e():n("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"},{name:"trap-focus",rawName:"v-trap-focus",value:e.trapFocus,expression:"trapFocus"}],staticClass:"modal is-active",class:[{"is-full-screen":e.fullScreen},e.customClass],attrs:{tabindex:"-1",role:e.ariaRole,"aria-label":e.ariaLabel,"aria-modal":e.ariaModal}},[n("div",{staticClass:"modal-background",on:{click:function(r){return e.cancel("outside")}}}),n("div",{staticClass:"animation-content",class:{"modal-content":!e.hasModalCard},style:e.customStyle},[e.component?n(e.component,e._g(e._b({tag:"component",attrs:{"can-cancel":e.canCancel},on:{close:e.close}},"component",e.props,!1),e.events)):e.content?[n("div",{domProps:{innerHTML:e._s(e.content)}})]:e._t("default",null,{canCancel:e.canCancel,close:e.close}),e.showX?n("button",{directives:[{name:"show",rawName:"v-show",value:!e.animating,expression:"!animating"}],staticClass:"modal-close is-large",attrs:{type:"button","aria-label":e.closeButtonAriaLabel},on:{click:function(r){return e.cancel("x")}}}):e._e()],2)])])},n5=[];const i5=void 0,r5=void 0,a5=void 0,s5=!1;var hp=me({render:t5,staticRenderFns:n5},i5,e5,r5,s5,a5,void 0,void 0),gu,o5={name:"BDialog",components:(gu={},fe(gu,Fe.name,Fe),fe(gu,jd.name,jd),gu),directives:{trapFocus:dp},extends:hp,props:{title:String,message:[String,Array],icon:String,iconPack:String,hasIcon:Boolean,type:{type:String,default:"is-primary"},size:String,confirmText:{type:String,default:function(){return Q.defaultDialogConfirmText?Q.defaultDialogConfirmText:"OK"}},cancelText:{type:String,default:function(){return Q.defaultDialogCancelText?Q.defaultDialogCancelText:"Cancel"}},hasInput:Boolean,inputAttrs:{type:Object,default:function(){return{}}},onConfirm:{type:Function,default:function(){}},closeOnConfirm:{type:Boolean,default:!0},container:{type:String,default:function(){return Q.defaultContainerElement}},focusOn:{type:String,default:"confirm"},trapFocus:{type:Boolean,default:function(){return Q.defaultTrapFocus}},ariaRole:{type:String,validator:function(t){return["dialog","alertdialog"].indexOf(t)>=0}},ariaModal:Boolean},data:function(){var t=this.hasInput&&this.inputAttrs.value||"";return{prompt:t,isActive:!1,validationMessage:"",isCompositing:!1}},computed:{dialogClass:function(){return[this.size,{"has-custom-container":this.container!==null}]},iconByType:function(){switch(this.type){case"is-info":return"information";case"is-success":return"check-circle";case"is-warning":return"alert";case"is-danger":return"alert-circle";default:return null}},showCancel:function(){return this.cancelOptions.indexOf("button")>=0}},methods:{confirm:function(){var t=this;if(this.$refs.input!==void 0){if(this.isCompositing)return;if(!this.$refs.input.checkValidity()){this.validationMessage=this.$refs.input.validationMessage,this.$nextTick(function(){return t.$refs.input.select()});return}}this.$emit("confirm",this.prompt),this.onConfirm(this.prompt,this),this.closeOnConfirm&&this.close()},close:function(){var t=this;this.isActive=!1,setTimeout(function(){t.$destroy(),Ui(t.$el)},150)}},beforeMount:function(){var t=this;typeof window!="undefined"&&this.$nextTick(function(){var n=document.querySelector(t.container)||document.body;n.appendChild(t.$el)})},mounted:function(){var t=this;this.isActive=!0,typeof this.inputAttrs.required=="undefined"&&this.$set(this.inputAttrs,"required",!0),this.$nextTick(function(){t.hasInput?t.$refs.input.focus():t.focusOn==="cancel"&&t.showCancel?t.$refs.cancelButton.$el.focus():t.$refs.confirmButton.$el.focus()})}};const u5=o5;var l5=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:e.animation}},[e.isActive?n("div",{directives:[{name:"trap-focus",rawName:"v-trap-focus",value:e.trapFocus,expression:"trapFocus"}],staticClass:"dialog modal is-active",class:e.dialogClass,attrs:{role:e.ariaRole,"aria-modal":e.ariaModal}},[n("div",{staticClass:"modal-background",on:{click:function(r){return e.cancel("outside")}}}),n("div",{staticClass:"modal-card animation-content"},[e.title?n("header",{staticClass:"modal-card-head"},[n("p",{staticClass:"modal-card-title"},[e._v(e._s(e.title))])]):e._e(),n("section",{staticClass:"modal-card-body",class:{"is-titleless":!e.title,"is-flex":e.hasIcon}},[n("div",{staticClass:"media"},[e.hasIcon&&(e.icon||e.iconByType)?n("div",{staticClass:"media-left"},[n("b-icon",{attrs:{icon:e.icon?e.icon:e.iconByType,pack:e.iconPack,type:e.type,both:!e.icon,size:"is-large"}})],1):e._e(),n("div",{staticClass:"media-content"},[n("p",[e.$slots.default?[e._t("default")]:[n("div",{domProps:{innerHTML:e._s(e.message)}})]],2),e.hasInput?n("div",{staticClass:"field"},[n("div",{staticClass:"control"},[e.inputAttrs.type==="checkbox"?n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.prompt,expression:"prompt"}],ref:"input",staticClass:"input",class:{"is-danger":e.validationMessage},attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.prompt)?e._i(e.prompt,null)>-1:e.prompt},on:{compositionstart:function(r){e.isCompositing=!0},compositionend:function(r){e.isCompositing=!1},keydown:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.confirm(r)},change:function(r){var s=e.prompt,o=r.target,c=!!o.checked;if(Array.isArray(s)){var u=null,i=e._i(s,u);o.checked?i<0&&(e.prompt=s.concat([u])):i>-1&&(e.prompt=s.slice(0,i).concat(s.slice(i+1)))}else e.prompt=c}}},"input",e.inputAttrs,!1)):e.inputAttrs.type==="radio"?n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.prompt,expression:"prompt"}],ref:"input",staticClass:"input",class:{"is-danger":e.validationMessage},attrs:{type:"radio"},domProps:{checked:e._q(e.prompt,null)},on:{compositionstart:function(r){e.isCompositing=!0},compositionend:function(r){e.isCompositing=!1},keydown:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.confirm(r)},change:function(r){e.prompt=null}}},"input",e.inputAttrs,!1)):n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.prompt,expression:"prompt"}],ref:"input",staticClass:"input",class:{"is-danger":e.validationMessage},attrs:{type:e.inputAttrs.type},domProps:{value:e.prompt},on:{compositionstart:function(r){e.isCompositing=!0},compositionend:function(r){e.isCompositing=!1},keydown:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.confirm(r)},input:function(r){r.target.composing||(e.prompt=r.target.value)}}},"input",e.inputAttrs,!1))]),n("p",{staticClass:"help is-danger"},[e._v(e._s(e.validationMessage))])]):e._e()])])]),n("footer",{staticClass:"modal-card-foot"},[e.showCancel?n("b-button",{ref:"cancelButton",on:{click:function(r){return e.cancel("button")}}},[e._v(e._s(e.cancelText))]):e._e(),n("b-button",{ref:"confirmButton",attrs:{type:e.type},on:{click:e.confirm}},[e._v(e._s(e.confirmText))])],1)])]):e._e()])},c5=[];const f5=void 0,d5=void 0,h5=void 0,p5=!1;var uS=me({render:l5,staticRenderFns:c5},f5,u5,d5,p5,h5,void 0,void 0),lS;function Yf(e){var t;Array.isArray(e.message)&&(t=e.message,delete e.message);var n=typeof window!="undefined"&&window.Vue?window.Vue:lS||Hi,r=n.extend(uS),s=new r({el:document.createElement("div"),propsData:e});return t&&(s.$slots.default=t,s.$forceUpdate()),Q.defaultProgrammaticPromise?new Promise(function(o){s.$on("confirm",function(c){return o({result:c||!0,dialog:s})}),s.$on("cancel",function(){return o({result:!1,dialog:s})})}):s}var m5={alert:function(t){typeof t=="string"&&(t={message:t});var n={canCancel:!1},r=Vn(n,t);return Yf(r)},confirm:function(t){var n={},r=Vn(n,t);return Yf(r)},prompt:function(t){var n={hasInput:!0},r=Vn(n,t);return Yf(r)}},cS={install:function(t){lS=t,_e(t,uS),na(t,"dialog",m5)}};Oe(cS);var v5=cS,fS={install:function(t){_e(t,Li),_e(t,Bi)}};Oe(fS);var g5=fS,dS={install:function(t){_e(t,zi)}};Oe(dS);var y5=dS,hS={install:function(t){_e(t,Fe)}};Oe(hS);var _5=hS,pS={install:function(t){_e(t,qd)}};Oe(pS);var b5=pS,mS={install:function(t){_e(t,qt)}};Oe(mS);var S5=mS,vS=typeof window=="undefined",w5=vS?Object:window.HTMLElement,C5=vS?Object:window.File,x5={name:"BLoading",model:{prop:"active",event:"update:active"},props:{active:Boolean,programmatic:Boolean,container:[Object,Function,w5],isFullPage:{type:Boolean,default:!0},animation:{type:String,default:"fade"},canCancel:{type:Boolean,default:!1},onCancel:{type:Function,default:function(){}}},data:function(){return{isActive:this.active||!1,displayInFullPage:this.isFullPage}},watch:{active:function(t){this.isActive=t},isFullPage:function(t){this.displayInFullPage=t}},methods:{cancel:function(){!this.canCancel||!this.isActive||this.close()},close:function(){var t=this;this.onCancel.apply(null,arguments),this.$emit("close"),this.$emit("update:active",!1),this.programmatic&&(this.isActive=!1,setTimeout(function(){t.$destroy(),Ui(t.$el)},150))},keyPress:function(t){var n=t.key;(n==="Escape"||n==="Esc")&&this.cancel()}},created:function(){typeof window!="undefined"&&document.addEventListener("keyup",this.keyPress)},beforeMount:function(){this.programmatic&&(this.container?(this.displayInFullPage=!1,this.$emit("update:is-full-page",!1),this.container.appendChild(this.$el)):document.body.appendChild(this.$el))},mounted:function(){this.programmatic&&(this.isActive=!0)},beforeDestroy:function(){typeof window!="undefined"&&document.removeEventListener("keyup",this.keyPress)}};const T5=x5;var A5=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:e.animation}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"loading-overlay is-active",class:{"is-full-page":e.displayInFullPage}},[n("div",{staticClass:"loading-background",on:{click:e.cancel}}),e._t("default",[n("div",{staticClass:"loading-icon"})])],2)])},P5=[];const O5=void 0,k5=void 0,$5=void 0,E5=!1;var ul=me({render:A5,staticRenderFns:P5},O5,T5,k5,E5,$5,void 0,void 0),gS,M5={open:function(t){var n={programmatic:!0},r=Vn(n,t),s=typeof window!="undefined"&&window.Vue?window.Vue:gS||Hi,o=s.extend(ul);return new o({el:document.createElement("div"),propsData:r})}},yS={install:function(t){gS=t,_e(t,ul),na(t,"loading",M5)}};Oe(yS);var R5=yS,D5={name:"BMenu",props:{accordion:{type:Boolean,default:!0},activable:{type:Boolean,default:!0}},data:function(){return{_isMenu:!0}}};const I5=D5;var N5=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"menu"},[e._t("default")],2)},F5=[];const L5=void 0,B5=void 0,z5=void 0,j5=!1;var q5=me({render:N5,staticRenderFns:F5},L5,I5,B5,j5,z5,void 0,void 0),V5={name:"BMenuList",functional:!0,props:{label:String,icon:String,iconPack:String,ariaRole:{type:String,default:""},size:{type:String,default:"is-small"}},render:function(t,n){var r=null,s=n.slots();(n.props.label||s.label)&&(r=t("p",{attrs:{class:"menu-label"}},n.props.label?n.props.icon?[t("b-icon",{props:{icon:n.props.icon,pack:n.props.iconPack,size:n.props.size}}),t("span",{},n.props.label)]:n.props.label:s.label));var o=t("ul",{attrs:{class:"menu-list",role:n.props.ariaRole==="menu"?n.props.ariaRole:null}},s.default);return r?[r,o]:o}};const U5=V5,H5=void 0,W5=void 0,G5=void 0,Y5=void 0;var K5=me({},H5,U5,W5,Y5,G5,void 0,void 0),X5={name:"BMenuItem",components:fe({},Fe.name,Fe),inheritAttrs:!1,model:{prop:"active",event:"update:active"},props:{label:String,active:Boolean,expanded:Boolean,disabled:Boolean,iconPack:String,icon:String,animation:{type:String,default:"slide"},tag:{type:String,default:"a",validator:function(t){return Q.defaultLinkTags.indexOf(t)>=0}},ariaRole:{type:String,default:""},size:{type:String,default:"is-small"}},data:function(){return{newActive:this.active,newExpanded:this.expanded}},computed:{ariaRoleMenu:function(){return this.ariaRole==="menuitem"?this.ariaRole:null}},watch:{active:function(t){this.newActive=t},expanded:function(t){this.newExpanded=t}},methods:{onClick:function(t){if(!this.disabled){var n=this.getMenu();this.reset(this.$parent,n),this.newExpanded=this.$props.expanded||!this.newExpanded,this.$emit("update:expanded",this.newExpanded),n&&n.activable&&(this.newActive=!0,this.$emit("update:active",this.newActive))}},reset:function(t,n){var r=this,s=t.$children.filter(function(o){return o.name===r.name});s.forEach(function(o){o!==r&&(r.reset(o,n),(!t.$data._isMenu||t.$data._isMenu&&t.accordion)&&(o.newExpanded=!1,o.$emit("update:expanded",o.newActive)),n&&n.activable&&(o.newActive=!1,o.$emit("update:active",o.newActive)))})},getMenu:function(){for(var t=this.$parent;t&&!t.$data._isMenu;)t=t.$parent;return t}}};const Q5=X5;var Z5=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{attrs:{role:e.ariaRoleMenu}},[n(e.tag,e._g(e._b({tag:"component",class:{"is-active":e.newActive,"is-expanded":e.newExpanded,"is-disabled":e.disabled,"icon-text":e.icon},on:{click:function(r){return e.onClick(r)}}},"component",e.$attrs,!1),e.$listeners),[e.icon?n("b-icon",{attrs:{icon:e.icon,pack:e.iconPack,size:e.size}}):e._e(),e.label?n("span",[e._v(" "+e._s(e.label)+" ")]):e._t("label",null,{expanded:e.newExpanded,active:e.newActive})],2),e.$slots.default?[n("transition",{attrs:{name:e.animation}},[n("ul",{directives:[{name:"show",rawName:"v-show",value:e.newExpanded,expression:"newExpanded"}]},[e._t("default")],2)])]:e._e()],2)},J5=[];const e4=void 0,t4=void 0,n4=void 0,i4=!1;var r4=me({render:Z5,staticRenderFns:J5},e4,Q5,t4,i4,n4,void 0,void 0),_S={install:function(t){_e(t,q5),_e(t,K5),_e(t,r4)}};Oe(_S);var a4=_S,bS={components:fe({},Fe.name,Fe),model:{prop:"active",event:"update:active"},props:{active:{type:Boolean,default:!0},title:String,closable:{type:Boolean,default:!0},message:String,type:String,hasIcon:Boolean,size:String,icon:String,iconPack:String,iconSize:String,autoClose:{type:Boolean,default:!1},duration:{type:Number,default:2e3},progressBar:{type:Boolean,default:!1}},data:function(){return{isActive:this.active,remainingTime:this.duration/1e3,newIconSize:this.iconSize||this.size||"is-large"}},watch:{active:function(t){this.isActive=t},isActive:function(t){t?(this.setAutoClose(),this.setDurationProgress()):this.timer&&clearTimeout(this.timer)}},computed:{computedIcon:function(){if(this.icon)return this.icon;switch(this.type){case"is-info":return"information";case"is-success":return"check-circle";case"is-warning":return"alert";case"is-danger":return"alert-circle";default:return null}}},methods:{close:function(){this.isActive=!1,this.resetDurationProgress(),this.$emit("close"),this.$emit("update:active",!1)},click:function(){this.$emit("click")},setAutoClose:function(){var t=this;this.autoClose&&(this.timer=setTimeout(function(){t.isActive&&t.close()},this.duration))},setDurationProgress:function(){var t=this;this.progressBar&&(this.$buefy.globalNoticeInterval=setInterval(function(){t.remainingTime!==0?t.remainingTime-=1:t.resetDurationProgress()},1e3))},resetDurationProgress:function(){var t=this;setTimeout(function(){t.remainingTime=t.duration/1e3,clearInterval(t.$buefy.globalNoticeInterval)},100)}},mounted:function(){this.setAutoClose()}},s4={name:"BMessage",mixins:[bS],props:{ariaCloseLabel:String}};const o4=s4;var u4=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"fade"}},[n("article",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"message",class:[e.type,e.size]},[e.$slots.header||e.title?n("header",{staticClass:"message-header"},[e.$slots.header?n("div",[e._t("header")],2):e.title?n("p",[e._v(e._s(e.title))]):e._e(),e.closable?n("button",{staticClass:"delete",attrs:{type:"button","aria-label":e.ariaCloseLabel},on:{click:e.close}}):e._e()]):e._e(),e.$slots.default?n("section",{staticClass:"message-body"},[n("div",{staticClass:"media"},[e.computedIcon&&e.hasIcon?n("div",{staticClass:"media-left"},[n("b-icon",{class:e.type,attrs:{icon:e.computedIcon,pack:e.iconPack,both:"",size:e.newIconSize}})],1):e._e(),n("div",{staticClass:"media-content"},[e._t("default")],2)])]):e._e(),e.autoClose&&e.progressBar?n("b-progress",{attrs:{value:e.remainingTime-1,max:e.duration/1e3-1,type:e.type,rounded:!1}}):e._e()],1)])},l4=[];const c4=void 0,f4=void 0,d4=void 0,h4=!1;var p4=me({render:u4,staticRenderFns:l4},c4,o4,f4,h4,d4,void 0,void 0),SS={install:function(t){_e(t,p4)}};Oe(SS);var m4=SS,wS,v4={open:function(t){var n;typeof t=="string"&&(t={content:t});var r={programmatic:!0};t.parent&&(n=t.parent,delete t.parent);var s;Array.isArray(t.content)&&(s=t.content,delete t.content);var o=Vn(r,t),c=typeof window!="undefined"&&window.Vue?window.Vue:wS||Hi,u=c.extend(hp),i=new u({parent:n,el:document.createElement("div"),propsData:o});return s&&(i.$slots.default=s,i.$forceUpdate()),i}},CS={install:function(t){wS=t,_e(t,hp),na(t,"modal",v4)}};Oe(CS);var g4=CS,pp={props:{type:{type:String,default:"is-dark"},message:[String,Array],duration:Number,queue:{type:Boolean,default:void 0},indefinite:{type:Boolean,default:!1},pauseOnHover:{type:Boolean,default:!1},position:{type:String,default:"is-top",validator:function(t){return["is-top-right","is-top","is-top-left","is-bottom-right","is-bottom","is-bottom-left"].indexOf(t)>-1}},container:String},data:function(){return{isActive:!1,isPaused:!1,parentTop:null,parentBottom:null,newContainer:this.container||Q.defaultContainerElement}},computed:{correctParent:function(){switch(this.position){case"is-top-right":case"is-top":case"is-top-left":return this.parentTop;case"is-bottom-right":case"is-bottom":case"is-bottom-left":return this.parentBottom}},transition:function(){switch(this.position){case"is-top-right":case"is-top":case"is-top-left":return{enter:"fadeInDown",leave:"fadeOut"};case"is-bottom-right":case"is-bottom":case"is-bottom-left":return{enter:"fadeInUp",leave:"fadeOut"}}}},methods:{pause:function(){this.pauseOnHover&&!this.indefinite&&(this.isPaused=!0,clearInterval(this.$buefy.globalNoticeInterval))},removePause:function(){this.pauseOnHover&&!this.indefinite&&(this.isPaused=!1,this.close())},shouldQueue:function(){var t=this.queue!==void 0?this.queue:Q.defaultNoticeQueue;return t?this.parentTop.childElementCount>0||this.parentBottom.childElementCount>0:!1},click:function(){this.$emit("click")},close:function(){var t=this;this.isPaused||(clearTimeout(this.timer),this.isActive=!1,this.$emit("close"),setTimeout(function(){t.$destroy(),Ui(t.$el)},150))},timeoutCallback:function(){return this.close()},showNotice:function(){var t=this;this.shouldQueue()&&(this.correctParent.innerHTML=""),this.correctParent.insertAdjacentElement("afterbegin",this.$el),this.isActive=!0,this.indefinite||(this.timer=setTimeout(function(){return t.timeoutCallback()},this.newDuration))},setupContainer:function(){if(this.parentTop=document.querySelector((this.newContainer?this.newContainer:"body")+">.notices.is-top"),this.parentBottom=document.querySelector((this.newContainer?this.newContainer:"body")+">.notices.is-bottom"),!(this.parentTop&&this.parentBottom)){this.parentTop||(this.parentTop=document.createElement("div"),this.parentTop.className="notices is-top"),this.parentBottom||(this.parentBottom=document.createElement("div"),this.parentBottom.className="notices is-bottom");var t=document.querySelector(this.newContainer)||document.body;t.appendChild(this.parentTop),t.appendChild(this.parentBottom),this.newContainer&&(this.parentTop.classList.add("has-custom-container"),this.parentBottom.classList.add("has-custom-container"))}}},beforeMount:function(){this.setupContainer()},mounted:function(){this.showNotice()}},y4={name:"BNotification",mixins:[bS],props:{position:String,ariaCloseLabel:String,animation:{type:String,default:"fade"}}};const _4=y4;var b4=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:e.animation}},[n("article",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"notification",class:[e.type,e.position],on:{click:e.click}},[e.closable?n("button",{staticClass:"delete",attrs:{type:"button","aria-label":e.ariaCloseLabel},on:{click:e.close}}):e._e(),e.$slots.default||e.message?n("div",{staticClass:"media"},[e.computedIcon&&e.hasIcon?n("div",{staticClass:"media-left"},[n("b-icon",{attrs:{icon:e.computedIcon,pack:e.iconPack,size:e.newIconSize,both:"","aria-hidden":""}})],1):e._e(),n("div",{staticClass:"media-content"},[e.$slots.default?[e._t("default")]:[n("p",{staticClass:"text",domProps:{innerHTML:e._s(e.message)}})]],2)]):e._e(),e.progressBar?n("b-progress",{attrs:{value:e.remainingTime-1,max:e.duration/1e3-1,type:e.type,rounded:!1}}):e._e()],1)])},S4=[];const w4=void 0,C4=void 0,x4=void 0,T4=!1;var A4=me({render:b4,staticRenderFns:S4},w4,_4,C4,T4,x4,void 0,void 0),P4={name:"BNotificationNotice",mixins:[pp],data:function(){return{newDuration:this.duration||Q.defaultNotificationDuration}},methods:{close:function(){var t=this;this.isPaused||(clearTimeout(this.timer),this.$refs.notification.isActive=!1,this.$emit("close"),setTimeout(function(){t.$destroy(),Ui(t.$el)},150))}}};const O4=P4;var k4=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("b-notification",e._b({ref:"notification",on:{click:e.click,close:e.close},nativeOn:{mouseenter:function(r){return e.pause(r)},mouseleave:function(r){return e.removePause(r)}}},"b-notification",e.$options.propsData,!1),[e._t("default")],2)},$4=[];const E4=void 0,M4=void 0,R4=void 0,D4=!1;var I4=me({render:k4,staticRenderFns:$4},E4,O4,M4,D4,R4,void 0,void 0),xS,N4={open:function(t){var n;typeof t=="string"&&(t={message:t});var r={position:Q.defaultNotificationPosition||"is-top-right"};t.parent&&(n=t.parent,delete t.parent);var s;Array.isArray(t.message)&&(s=t.message,delete t.message),t.active=!1;var o=Vn(r,t),c=typeof window!="undefined"&&window.Vue?window.Vue:xS||Hi,u=c.extend(I4),i=new u({parent:n,el:document.createElement("div"),propsData:o});return s&&(i.$slots.default=s,i.$forceUpdate()),i.$children[0].isActive=!0,i}},TS={install:function(t){xS=t,_e(t,A4),na(t,"notification",N4)}};Oe(TS);var F4=TS,L4={name:"NavbarBurger",props:{isOpened:{type:Boolean,default:!1}}};const B4=L4;var z4=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a",e._g({staticClass:"navbar-burger burger",class:{"is-active":e.isOpened},attrs:{role:"button","aria-label":"menu","aria-expanded":e.isOpened,tabindex:"0"}},e.$listeners),[n("span",{attrs:{"aria-hidden":"true"}}),n("span",{attrs:{"aria-hidden":"true"}}),n("span",{attrs:{"aria-hidden":"true"}})])},j4=[];const q4=void 0,V4=void 0,U4=void 0,H4=!1;var W4=me({render:z4,staticRenderFns:j4},q4,B4,V4,H4,U4,void 0,void 0),G4=typeof window!="undefined"&&("ontouchstart"in window||navigator.msMaxTouchPoints>0),Y4=G4?["touchstart","click"]:["click"],jl=[];function AS(e){var t=typeof e=="function";if(!t&&Xt(e)!=="object")throw new Error("v-click-outside: Binding value should be a function or an object, ".concat(Xt(e)," given"));return{handler:t?e:e.handler,middleware:e.middleware||function(n){return n},events:e.events||Y4}}function PS(e){var t=e.el,n=e.event,r=e.handler,s=e.middleware,o=n.target!==t&&!t.contains(n.target);!o||!s(n,t)||r(n,t)}function ll(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.eventHandlers,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"add";t.forEach(function(r){var s=r.event,o=r.handler;document["".concat(n,"EventListener")](s,o)})}function K4(e,t){var n=t.value,r=AS(n),s=r.handler,o=r.middleware,c=r.events,u={el:e,eventHandlers:c.map(function(i){return{event:i,handler:function(l){return PS({event:l,el:e,handler:s,middleware:o})}}})};ll(u,"add"),jl.push(u)}function X4(e,t){var n=t.value,r=AS(n),s=r.handler,o=r.middleware,c=r.events,u=jl.filter(function(i){return i.el===e})[0];ll(u,"remove"),u.eventHandlers=c.map(function(i){return{event:i,handler:function(l){return PS({event:l,el:e,handler:s,middleware:o})}}}),ll(u,"add")}function Q4(e){var t=jl.filter(function(n){return n.el===e})[0];ll(t,"remove")}var OS={bind:K4,update:X4,unbind:Q4,instances:jl},Z4="is-fixed-top",Kf="has-navbar-fixed-top",Xf="has-spaced-navbar-fixed-top",J4="is-fixed-bottom",Qf="has-navbar-fixed-bottom",Zf="has-spaced-navbar-fixed-bottom",e6="has-navbar-centered",t6=function(t){return!!t},n6={name:"BNavbar",components:{NavbarBurger:W4},directives:{clickOutside:OS},model:{prop:"active",event:"update:active"},props:{type:[String,Object],transparent:{type:Boolean,default:!1},fixedTop:{type:Boolean,default:!1},fixedBottom:{type:Boolean,default:!1},active:{type:Boolean,default:!1},centered:{type:Boolean,default:!1},wrapperClass:{type:[String,Array,Object]},closeOnClick:{type:Boolean,default:!0},mobileBurger:{type:Boolean,default:!0},spaced:Boolean,shadow:Boolean},data:function(){return{internalIsActive:this.active,_isNavBar:!0}},computed:{isOpened:function(){return this.internalIsActive},computedClasses:function(){var t;return[this.type,(t={},fe(t,Z4,this.fixedTop),fe(t,J4,this.fixedBottom),fe(t,e6,this.centered),fe(t,"is-spaced",this.spaced),fe(t,"has-shadow",this.shadow),fe(t,"is-transparent",this.transparent),t)]}},watch:{active:{handler:function(t){this.internalIsActive=t},immediate:!0},fixedTop:function(t){this.setBodyFixedTopClass(t)},bottomTop:function(t){this.setBodyFixedBottomClass(t)}},methods:{toggleActive:function(){this.internalIsActive=!this.internalIsActive,this.emitUpdateParentEvent()},closeMenu:function(){this.closeOnClick&&this.internalIsActive&&(this.internalIsActive=!1,this.emitUpdateParentEvent())},emitUpdateParentEvent:function(){this.$emit("update:active",this.internalIsActive)},setBodyClass:function(t){typeof window!="undefined"&&document.body.classList.add(t)},removeBodyClass:function(t){typeof window!="undefined"&&document.body.classList.remove(t)},checkIfFixedPropertiesAreColliding:function(){var t=this.fixedTop&&this.fixedBottom;if(t)throw new Error("You should choose if the BNavbar is fixed bottom or fixed top, but not both")},genNavbar:function(t){var n=[this.genNavbarBrandNode(t),this.genNavbarSlotsNode(t)];if(!t6(this.wrapperClass))return this.genNavbarSlots(t,n);var r=t("div",{class:this.wrapperClass},n);return this.genNavbarSlots(t,[r])},genNavbarSlots:function(t,n){return t("nav",{staticClass:"navbar",class:this.computedClasses,attrs:{role:"navigation","aria-label":"main navigation"},directives:[{name:"click-outside",value:this.closeMenu}]},n)},genNavbarBrandNode:function(t){return t("div",{class:"navbar-brand"},[this.$slots.brand,this.genBurgerNode(t)])},genBurgerNode:function(t){var n=this;if(this.mobileBurger){var r=t("navbar-burger",{props:{isOpened:this.isOpened},on:{click:this.toggleActive,keyup:function(c){c.keyCode===13&&n.toggleActive()}}}),s=!!this.$scopedSlots.burger;return s?this.$scopedSlots.burger({isOpened:this.isOpened,toggleActive:this.toggleActive}):r}},genNavbarSlotsNode:function(t){return t("div",{staticClass:"navbar-menu",class:{"is-active":this.isOpened}},[this.genMenuPosition(t,"start"),this.genMenuPosition(t,"end")])},genMenuPosition:function(t,n){return t("div",{staticClass:"navbar-".concat(n)},this.$slots[n])},setBodyFixedTopClass:function(t){this.checkIfFixedPropertiesAreColliding(),t?(this.setBodyClass(Kf),this.spaced&&this.setBodyClass(Xf)):(this.removeBodyClass(Kf),this.removeBodyClass(Xf))},setBodyFixedBottomClass:function(t){this.checkIfFixedPropertiesAreColliding(),t?(this.setBodyClass(Qf),this.spaced&&this.setBodyClass(Zf)):(this.removeBodyClass(Qf),this.removeBodyClass(Zf))}},beforeMount:function(){this.fixedTop&&this.setBodyFixedTopClass(!0),this.fixedBottom&&this.setBodyFixedBottomClass(!0)},beforeDestroy:function(){if(this.fixedTop){var t=this.spaced?Xf:Kf;this.removeBodyClass(t)}else if(this.fixedBottom){var n=this.spaced?Zf:Qf;this.removeBodyClass(n)}},render:function(t,n){return this.genNavbar(t)}};const i6=n6,r6=void 0,a6=void 0,s6=void 0,o6=void 0;var u6=me({},r6,i6,a6,o6,s6,void 0,void 0),l6=["div","span","input"],c6={name:"BNavbarItem",inheritAttrs:!1,props:{tag:{type:String,default:"a"},active:Boolean},methods:{keyPress:function(t){var n=t.key;(n==="Escape"||n==="Esc")&&this.closeMenuRecursive(this,["NavBar"])},handleClickEvent:function(t){var n=l6.some(function(s){return s===t.target.localName});if(!n){var r=this.closeMenuRecursive(this,["NavbarDropdown","NavBar"]);r&&r.$data._isNavbarDropdown&&this.closeMenuRecursive(r,["NavBar"])}},closeMenuRecursive:function(t,n){if(!t.$parent)return null;var r=n.reduce(function(s,o){return t.$parent.$data["_is".concat(o)]?(t.$parent.closeMenu(),t.$parent):s},null);return r||this.closeMenuRecursive(t.$parent,n)}},mounted:function(){typeof window!="undefined"&&(this.$el.addEventListener("click",this.handleClickEvent),document.addEventListener("keyup",this.keyPress))},beforeDestroy:function(){typeof window!="undefined"&&(this.$el.removeEventListener("click",this.handleClickEvent),document.removeEventListener("keyup",this.keyPress))}};const f6=c6;var d6=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.tag,e._g(e._b({tag:"component",staticClass:"navbar-item",class:{"is-active":e.active}},"component",e.$attrs,!1),e.$listeners),[e._t("default")],2)},h6=[];const p6=void 0,m6=void 0,v6=void 0,g6=!1;var y6=me({render:d6,staticRenderFns:h6},p6,f6,m6,g6,v6,void 0,void 0),_6={name:"BNavbarDropdown",directives:{clickOutside:OS},inheritAttrs:!1,props:{label:String,hoverable:Boolean,active:Boolean,right:Boolean,arrowless:Boolean,boxed:Boolean,closeOnClick:{type:Boolean,default:!0},collapsible:Boolean,tag:{type:String,default:"a"}},data:function(){return{newActive:this.active,isHoverable:this.hoverable,_isNavbarDropdown:!0}},watch:{active:function(t){this.newActive=t},newActive:function(t){this.$emit("active-change",t)}},methods:{toggleMenu:function(){this.newActive=!this.newActive},showMenu:function(){this.newActive=!0},closeMenu:function(){this.newActive=!this.closeOnClick,this.hoverable&&this.closeOnClick&&(this.isHoverable=!1)},checkHoverable:function(){this.hoverable&&(this.isHoverable=!0)}}};const b6=_6;var S6=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closeMenu,expression:"closeMenu"}],staticClass:"navbar-item has-dropdown",class:{"is-hoverable":e.isHoverable,"is-active":e.newActive},on:{mouseenter:e.checkHoverable}},[n(e.tag,e._g(e._b({tag:"component",staticClass:"navbar-link",class:{"is-arrowless":e.arrowless,"is-active":e.newActive&&e.collapsible},attrs:{"aria-haspopup":"true",tabindex:"0"},on:{click:function(r){return r.preventDefault(),e.toggleMenu(r)},keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.toggleMenu(r)}}},"component",e.$attrs,!1),e.$listeners),[e.label?[e._v(e._s(e.label))]:e._t("label")],2),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.collapsible||e.collapsible&&e.newActive,expression:"!collapsible || (collapsible && newActive)"}],staticClass:"navbar-dropdown",class:{"is-right":e.right,"is-boxed":e.boxed}},[e._t("default")],2)],1)},w6=[];const C6=void 0,x6=void 0,T6=void 0,A6=!1;var P6=me({render:S6,staticRenderFns:w6},C6,b6,x6,A6,T6,void 0,void 0),kS={install:function(t){_e(t,u6),_e(t,y6),_e(t,P6)}};Oe(kS);var O6=kS,yu,k6={name:"BNumberinput",components:(yu={},fe(yu,Fe.name,Fe),fe(yu,qt.name,qt),yu),mixins:[li],inheritAttrs:!1,props:{value:Number,min:{type:[Number,String]},max:[Number,String],step:[Number,String],minStep:[Number,String],exponential:[Boolean,Number],disabled:Boolean,type:{type:String,default:"is-primary"},editable:{type:Boolean,default:!0},controls:{type:Boolean,default:!0},controlsAlignment:{type:String,default:"center",validator:function(t){return["left","right","center"].indexOf(t)>=0}},controlsRounded:{type:Boolean,default:!1},controlsPosition:String,placeholder:[Number,String],ariaMinusLabel:String,ariaPlusLabel:String,longPress:{type:Boolean,default:!0}},data:function(){return{newValue:this.value,newStep:this.step||1,newMinStep:this.minStep,timesPressed:1,_elementRef:"input"}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){var n=this,r=Number(t)===0?0:Number(t)||null;(t===""||t===void 0||t===null)&&(this.minNumber!==void 0?r=this.minNumber:r=null),this.newValue=r,r===null?this.$emit("input",r):!isNaN(r)&&r!=="-0"&&this.$emit("input",Number(r)),this.$nextTick(function(){n.$refs.input&&n.$refs.input.checkHtml5Validity()})}},controlsLeft:function(){return this.controls&&this.controlsAlignment!=="right"?this.controlsAlignment==="left"?["minus","plus"]:["minus"]:[]},controlsRight:function(){return this.controls&&this.controlsAlignment!=="left"?this.controlsAlignment==="right"?["minus","plus"]:["plus"]:[]},fieldClasses:function(){return[{"has-addons":this.controlsPosition==="compact"},{"is-grouped":this.controlsPosition!=="compact"},{"is-expanded":this.expanded}]},buttonClasses:function(){return[this.type,this.size,{"is-rounded":this.controlsRounded}]},minNumber:function(){return typeof this.min=="string"?parseFloat(this.min):this.min},maxNumber:function(){return typeof this.max=="string"?parseFloat(this.max):this.max},stepNumber:function(){return this.newStep==="any"?1:typeof this.newStep=="string"?parseFloat(this.newStep):this.newStep},minStepNumber:function(){if(this.newStep==="any"&&typeof this.newMinStep=="undefined")return"any";var t=typeof this.newMinStep!="undefined"?this.newMinStep:this.newStep;return typeof t=="string"?parseFloat(t):t},disabledMin:function(){return this.computedValue-this.stepNumberthis.maxNumber},stepDecimals:function(){var t=this.minStepNumber.toString(),n=t.indexOf(".");return n>=0?t.substring(n+1).length:0}},watch:{value:{immediate:!0,handler:function(t){this.newValue=t}},step:function(t){this.newStep=t},minStep:function(t){this.newMinStep=t}},methods:{isDisabled:function(t){return this.disabled||(t==="plus"?this.disabledMax:this.disabledMin)},decrement:function(){if(this.computedValue===null||typeof this.computedValue=="undefined"){if(this.maxNumber!==null&&typeof this.maxNumber!="undefined"){this.computedValue=this.maxNumber;return}this.computedValue=0}if(typeof this.minNumber=="undefined"||this.computedValue-this.stepNumber>=this.minNumber){var t=this.computedValue-this.stepNumber;this.computedValue=parseFloat(t.toFixed(this.stepDecimals))}},increment:function(){if(this.computedValue===null||typeof this.computedValue=="undefined"){if(this.minNumber!==null&&typeof this.minNumber!="undefined"){this.computedValue=this.minNumber;return}this.computedValue=0}if(typeof this.maxNumber=="undefined"||this.computedValue+this.stepNumber<=this.maxNumber){var t=this.computedValue+this.stepNumber;this.computedValue=parseFloat(t.toFixed(this.stepDecimals))}},onControlClick:function(t,n){t.detail!==0||t.type!=="click"||(n?this.increment():this.decrement())},longPressTick:function(t){var n=this;t?this.increment():this.decrement(),this._$intervalRef=setTimeout(function(){n.longPressTick(t)},this.exponential?250/(this.exponential*this.timesPressed++):250)},onStartLongPress:function(t,n){!this.longPress||t.button!==0&&t.type!=="touchstart"||(clearTimeout(this._$intervalRef),this.longPressTick(n))},onStopLongPress:function(){!this._$intervalRef||(this.timesPressed=1,clearTimeout(this._$intervalRef),this._$intervalRef=null)}}};const $6=k6;var E6=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"b-numberinput field",class:e.fieldClasses},[e._l(e.controlsLeft,function(r){return n("p",{key:r,class:["control",r],on:{mouseup:e.onStopLongPress,mouseleave:e.onStopLongPress,touchend:e.onStopLongPress,touchcancel:e.onStopLongPress}},[n("button",{staticClass:"button",class:e.buttonClasses,attrs:{type:"button",disabled:e.isDisabled(r),"aria-label":r==="plus"?e.ariaPlusLabel:e.ariaMinusLabel},on:{mousedown:function(s){!e.isDisabled(r)&&e.onStartLongPress(s,r==="plus")},touchstart:function(s){s.preventDefault(),!e.isDisabled(r)&&e.onStartLongPress(s,r==="plus")},click:function(s){!e.isDisabled(r)&&e.onControlClick(s,r==="plus")}}},[n("b-icon",{attrs:{both:"",icon:r,pack:e.iconPack,size:e.iconSize}})],1)])}),n("b-input",e._b({ref:"input",attrs:{type:"number",step:e.minStepNumber,max:e.max,min:e.min,size:e.size,disabled:e.disabled,readonly:!e.editable,loading:e.loading,rounded:e.rounded,icon:e.icon,"icon-pack":e.iconPack,autocomplete:e.autocomplete,expanded:e.expanded,placeholder:e.placeholder,"use-html5-validation":e.useHtml5Validation},on:{focus:function(r){return e.$emit("focus",r)},blur:function(r){return e.$emit("blur",r)}},model:{value:e.computedValue,callback:function(r){e.computedValue=r},expression:"computedValue"}},"b-input",e.$attrs,!1)),e._l(e.controlsRight,function(r){return n("p",{key:r,class:["control",r],on:{mouseup:e.onStopLongPress,mouseleave:e.onStopLongPress,touchend:e.onStopLongPress,touchcancel:e.onStopLongPress}},[n("button",{staticClass:"button",class:e.buttonClasses,attrs:{type:"button",disabled:e.isDisabled(r),"aria-label":r==="plus"?e.ariaPlusLabel:e.ariaMinusLabel},on:{mousedown:function(s){!e.isDisabled(r)&&e.onStartLongPress(s,r==="plus")},touchstart:function(s){s.preventDefault(),!e.isDisabled(r)&&e.onStartLongPress(s,r==="plus")},click:function(s){!e.isDisabled(r)&&e.onControlClick(s,r==="plus")}}},[n("b-icon",{attrs:{both:"",icon:r,pack:e.iconPack,size:e.iconSize}})],1)])})],2)},M6=[];const R6=void 0,D6=void 0,I6=void 0,N6=!1;var F6=me({render:E6,staticRenderFns:M6},R6,$6,D6,N6,I6,void 0,void 0),$S={install:function(t){_e(t,F6)}};Oe($S);var L6=$S,B6={name:"BPaginationButton",props:{page:{type:Object,required:!0},tag:{type:String,default:"a",validator:function(t){return Q.defaultLinkTags.indexOf(t)>=0}},disabled:{type:Boolean,default:!1}},computed:{href:function(){if(this.tag==="a")return"#"},isDisabled:function(){return this.disabled||this.page.disabled}}};const z6=B6;var j6=function(){var e,t=this,n=t.$createElement,r=t._self._c||n;return r(t.tag,t._b({tag:"component",staticClass:"pagination-link",class:(e={"is-current":t.page.isCurrent},e[t.page.class]=!0,e),attrs:{role:"button",href:t.href,disabled:t.isDisabled,"aria-label":t.page["aria-label"],"aria-current":t.page.isCurrent},on:{click:function(s){return s.preventDefault(),t.page.click(s)}}},"component",t.$attrs,!1),[t._t("default",[t._v(t._s(t.page.number))])],2)},q6=[];const V6=void 0,U6=void 0,H6=void 0,W6=!1;var Gd=me({render:j6,staticRenderFns:q6},V6,z6,U6,W6,H6,void 0,void 0);function ES(e,t,n){var r;return function(){var s=this,o=arguments,c=function(){r=null,n||e.apply(s,o)},u=n&&!r;clearTimeout(r),r=setTimeout(c,t),u&&e.apply(s,o)}}var _u,G6={name:"BPagination",components:(_u={},fe(_u,Fe.name,Fe),fe(_u,Gd.name,Gd),_u),model:{prop:"current",event:"update:current"},props:{total:[Number,String],perPage:{type:[Number,String],default:20},current:{type:[Number,String],default:1},rangeBefore:{type:[Number,String],default:1},rangeAfter:{type:[Number,String],default:1},size:String,simple:Boolean,rounded:Boolean,order:String,iconPack:String,iconPrev:{type:String,default:function(){return Q.defaultIconPrev}},iconNext:{type:String,default:function(){return Q.defaultIconNext}},ariaNextLabel:String,ariaPreviousLabel:String,ariaPageLabel:String,ariaCurrentLabel:String,pageInput:{type:Boolean,default:!1},pageInputPosition:String,debouncePageInput:[Number,String]},data:function(){return{inputValue:this.current}},computed:{rootClasses:function(){return[this.order,this.size,this.pageInputPosition,{"is-simple":this.simple,"is-rounded":this.rounded,"has-input":this.pageInput}]},beforeCurrent:function(){return parseInt(this.rangeBefore)},afterCurrent:function(){return parseInt(this.rangeAfter)},pageCount:function(){return Math.ceil(this.total/this.perPage)},firstItem:function(){var t=this.current*this.perPage-this.perPage+1;return t>=0?t:0},hasPrev:function(){return this.current>1},hasFirst:function(){return this.current>=2+this.beforeCurrent},hasFirstEllipsis:function(){return this.current>=this.beforeCurrent+4},hasLast:function(){return this.current<=this.pageCount-(1+this.afterCurrent)},hasLastEllipsis:function(){return this.currentt&&this.last()},current:function(t){this.inputValue=t},debouncePageInput:{handler:function(t){this.debounceHandlePageInput=ES(this.handleOnInputPageChange,t)},immediate:!0}},methods:{prev:function(t){this.changePage(this.current-1,t)},next:function(t){this.changePage(this.current+1,t)},first:function(t){this.changePage(1,t)},last:function(t){this.changePage(this.pageCount,t)},changePage:function(t,n){this.current===t||t<1||t>this.pageCount||(this.$emit("update:current",t),this.$emit("change",t),n&&n.target&&this.$nextTick(function(){return n.target.focus()}))},getPage:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{number:t,isCurrent:this.current===t,click:function(o){return n.changePage(t,o)},input:function(o,c){return n.changePage(+c,o)},disabled:r.disabled||!1,class:r.class||"","aria-label":r["aria-label"]||this.getAriaPageLabel(t,this.current===t)}},getAriaPageLabel:function(t,n){return this.ariaPageLabel&&(!n||!this.ariaCurrentLabel)?this.ariaPageLabel+" "+t+".":this.ariaPageLabel&&n&&this.ariaCurrentLabel?this.ariaCurrentLabel+", "+this.ariaPageLabel+" "+t+".":null},handleOnInputPageChange:function(t){this.getPage(this.inputValue).input(t,this.inputValue)},handleOnInputDebounce:function(t){this.debouncePageInput?this.debounceHandlePageInput(t):this.handleOnInputPageChange(t)},handleOnKeyPress:function(t){var n=t.which||t.keyCode;return n>=48&&n<=57?!0:t.preventDefault()},handleAllowableInputPageRange:function(t){+t.target.value>0&&+t.target.value<=this.pageCount?this.handleOnInputValue(t):(this.inputValue=1,this.inputValue="")},handleOnInputValue:function(t){var n=+t.target.value;this.inputValue=n,Number.isInteger(this.inputValue)?this.handleOnInputDebounce(t):this.inputValue=this.current}}};const Y6=G6;var K6=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("nav",{staticClass:"pagination",class:e.rootClasses},[e.$scopedSlots.previous?e._t("previous",[n("b-icon",{attrs:{icon:e.iconPrev,pack:e.iconPack,both:"","aria-hidden":"true"}})],{page:e.getPage(e.current-1,{disabled:!e.hasPrev,class:"pagination-previous","aria-label":e.ariaPreviousLabel})}):n("BPaginationButton",{staticClass:"pagination-previous",attrs:{disabled:!e.hasPrev,page:e.getPage(e.current-1),"aria-label":e.ariaPreviousLabel}},[n("b-icon",{attrs:{icon:e.iconPrev,pack:e.iconPack,both:"","aria-hidden":"true"}})],1),e.$scopedSlots.next?e._t("next",[n("b-icon",{attrs:{icon:e.iconNext,pack:e.iconPack,both:"","aria-hidden":"true"}})],{page:e.getPage(e.current+1,{disabled:!e.hasNext,class:"pagination-next","aria-label":e.ariaNextLabel})}):n("BPaginationButton",{staticClass:"pagination-next",attrs:{disabled:!e.hasNext,page:e.getPage(e.current+1),"aria-label":e.ariaNextLabel}},[n("b-icon",{attrs:{icon:e.iconNext,pack:e.iconPack,both:"","aria-hidden":"true"}})],1),n("div",{staticClass:"control pagination-input"},[e.pageInput?n("input",{staticClass:"input",attrs:{size:e.pageCount.toString().length,maxlength:e.pageCount.toString().length},domProps:{value:e.inputValue},on:{input:e.handleAllowableInputPageRange,keypress:e.handleOnKeyPress}}):e._e()]),e.simple?n("small",{staticClass:"info"},[e.perPage==1?[e._v(" "+e._s(e.firstItem)+" / "+e._s(e.total)+" ")]:[e._v(" "+e._s(e.firstItem)+"-"+e._s(Math.min(e.current*e.perPage,e.total))+" / "+e._s(e.total)+" ")]],2):n("ul",{staticClass:"pagination-list"},[e.hasFirst?n("li",[e.$scopedSlots.default?e._t("default",null,{page:e.getPage(1)}):n("BPaginationButton",{attrs:{page:e.getPage(1)}})],2):e._e(),e.hasFirstEllipsis?n("li",[n("span",{staticClass:"pagination-ellipsis"},[e._v("\u2026")])]):e._e(),e._l(e.pagesInRange,function(r){return n("li",{key:r.number},[e.$scopedSlots.default?e._t("default",null,{page:r}):n("BPaginationButton",{attrs:{page:r}})],2)}),e.hasLastEllipsis?n("li",[n("span",{staticClass:"pagination-ellipsis"},[e._v("\u2026")])]):e._e(),e.hasLast?n("li",[e.$scopedSlots.default?e._t("default",null,{page:e.getPage(e.pageCount)}):n("BPaginationButton",{attrs:{page:e.getPage(e.pageCount)}})],2):e._e()],2)],2)},X6=[];const Q6=void 0,Z6=void 0,J6=void 0,ej=!1;var Yd=me({render:K6,staticRenderFns:X6},Q6,Y6,Z6,ej,J6,void 0,void 0),MS={install:function(t){_e(t,Yd),_e(t,Gd)}};Oe(MS);var tj=MS,nj={name:"BProgress",mixins:[Ll("progress")],props:{type:{type:[String,Object],default:"is-darkgrey"},size:String,rounded:{type:Boolean,default:!0},value:{type:Number,default:void 0},max:{type:Number,default:100},showValue:{type:Boolean,default:!1},format:{type:String,default:"raw",validator:function(t){return["raw","percent"].indexOf(t)>=0}},precision:{type:Number,default:2},keepTrailingZeroes:{type:Boolean,default:!1},locale:{type:[String,Array],default:function(){return Q.defaultLocale}}},computed:{isIndeterminate:function(){return this.value===void 0||this.value===null},newType:function(){return[this.size,this.type,{"is-more-than-half":this.value&&this.value>this.max/2}]},newValue:function(){return this.calculateValue(this.value)},isNative:function(){return this.$slots.bar===void 0},wrapperClasses:function(){return fe({"is-not-native":!this.isNative},this.size,typeof this.size=="string"&&!this.isNative)}},watch:{isIndeterminate:function(t){var n=this;this.$nextTick(function(){n.$refs.progress&&(t?n.$refs.progress.removeAttribute("value"):n.$refs.progress.setAttribute("value",n.value))})}},methods:{calculateValue:function(t){if(!(t==null||isNaN(t))){var n=this.keepTrailingZeroes?this.precision:0,r=this.precision;return this.format==="percent"?new Intl.NumberFormat(this.locale,{style:"percent",minimumFractionDigits:n,maximumFractionDigits:r}).format(t/this.max):new Intl.NumberFormat(this.locale,{minimumFractionDigits:n,maximumFractionDigits:r}).format(t)}}}};const ij=nj;var rj=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"progress-wrapper",class:[e.wrapperClasses,{"is-squared":!e.rounded}]},[e.isNative?n("progress",{ref:"progress",staticClass:"progress",class:[e.newType,{"is-squared":!e.rounded}],attrs:{max:e.max},domProps:{value:e.value}},[e._v(e._s(e.newValue))]):e._t("bar"),e.isNative&&e.showValue?n("p",{staticClass:"progress-value"},[e._t("default",[e._v(e._s(e.newValue))])],2):e._e()],2)},aj=[];const sj=void 0,oj=void 0,uj=void 0,lj=!1;var cj=me({render:rj,staticRenderFns:aj},sj,ij,oj,lj,uj,void 0,void 0),fj={name:"BProgressBar",mixins:[Bl("progress")],props:{type:{type:[String,Object],default:void 0},value:{type:Number,default:void 0},showValue:{type:Boolean,default:!1}},computed:{newType:function(){return[this.parent.size,this.type||this.parent.type]},newShowValue:function(){return this.showValue||this.parent.showValue},newValue:function(){return this.parent.calculateValue(this.value)},barWidth:function(){return"".concat(this.value*100/this.parent.max,"%")}}};const dj=fj;var hj=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"progress-bar",class:e.newType,style:{width:e.barWidth},attrs:{role:"progressbar","aria-valuenow":e.value,"aria-valuemax":e.parent.max,"aria-valuemin":"0"}},[e.newShowValue?n("p",{staticClass:"progress-value"},[e._t("default",[e._v(e._s(e.newValue))])],2):e._e()])},pj=[];const mj=void 0,vj=void 0,gj=void 0,yj=!1;var _j=me({render:hj,staticRenderFns:pj},mj,dj,vj,yj,gj,void 0,void 0),RS={install:function(t){_e(t,cj),_e(t,_j)}};Oe(RS);var bj=RS,Sj={name:"BRadio",mixins:[zl]};const wj=Sj;var Cj=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{ref:"label",staticClass:"b-radio radio",class:[e.size,{"is-disabled":e.disabled}],attrs:{disabled:e.disabled},on:{click:e.focus,keydown:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:(r.preventDefault(),e.$refs.label.click())}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"radio",disabled:e.disabled,required:e.required,name:e.name},domProps:{value:e.nativeValue,checked:e._q(e.computedValue,e.nativeValue)},on:{click:function(r){r.stopPropagation()},change:function(r){e.computedValue=e.nativeValue}}}),n("span",{staticClass:"check",class:e.type}),n("span",{staticClass:"control-label"},[e._t("default")],2)])},xj=[];const Tj=void 0,Aj=void 0,Pj=void 0,Oj=!1;var kj=me({render:Cj,staticRenderFns:xj},Tj,wj,Aj,Oj,Pj,void 0,void 0),$j={name:"BRadioButton",mixins:[zl],props:{type:{type:String,default:"is-primary"},expanded:Boolean},data:function(){return{isFocused:!1}},computed:{isSelected:function(){return this.newValue===this.nativeValue},labelClass:function(){return[this.isSelected?this.type:null,this.size,{"is-selected":this.isSelected,"is-disabled":this.disabled,"is-focused":this.isFocused}]}}};const Ej=$j;var Mj=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"control",class:{"is-expanded":e.expanded}},[n("label",{ref:"label",staticClass:"b-radio radio button",class:e.labelClass,attrs:{disabled:e.disabled},on:{click:e.focus,keydown:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:(r.preventDefault(),e.$refs.label.click())}}},[e._t("default"),n("input",{directives:[{name:"model",rawName:"v-model",value:e.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"radio",disabled:e.disabled,required:e.required,name:e.name},domProps:{value:e.nativeValue,checked:e._q(e.computedValue,e.nativeValue)},on:{click:function(r){r.stopPropagation()},focus:function(r){e.isFocused=!0},blur:function(r){e.isFocused=!1},change:function(r){e.computedValue=e.nativeValue}}})],2)])},Rj=[];const Dj=void 0,Ij=void 0,Nj=void 0,Fj=!1;var Lj=me({render:Mj,staticRenderFns:Rj},Dj,Ej,Ij,Fj,Nj,void 0,void 0),DS={install:function(t){_e(t,kj),_e(t,Lj)}};Oe(DS);var Bj=DS,zj={name:"BRate",components:fe({},Fe.name,Fe),props:{value:{type:Number,default:0},max:{type:Number,default:5},icon:{type:String,default:"star"},iconPack:String,size:String,spaced:Boolean,rtl:Boolean,disabled:Boolean,showScore:Boolean,showText:Boolean,customText:String,texts:Array,locale:{type:[String,Array],default:function(){return Q.defaultLocale}}},data:function(){return{newValue:this.value,hoverValue:0}},computed:{halfStyle:function(){return"width:".concat(this.valueDecimal,"%")},showMe:function(){var t="";return this.showScore?(t=this.disabled?this.value:this.newValue,t===0?t="":t=new Intl.NumberFormat(this.locale).format(this.value)):this.showText&&(t=this.texts[Math.ceil(this.newValue)-1]),t},valueDecimal:function(){return this.value*100-Math.floor(this.value)*100}},watch:{value:function(t){this.newValue=t}},methods:{resetNewValue:function(){this.disabled||(this.hoverValue=0)},previewRate:function(t,n){this.disabled||(this.hoverValue=t,n.stopPropagation())},confirmValue:function(t){this.disabled||(this.newValue=t,this.$emit("change",this.newValue),this.$emit("input",this.newValue))},checkHalf:function(t){var n=this.disabled&&this.valueDecimal>0&&t-1this.value;return n},rateClass:function(t){var n="",r=this.hoverValue!==0?this.hoverValue:this.newValue;return t<=r?n="set-on":this.disabled&&Math.ceil(this.value)===t&&(n="set-half"),n}}};const jj=zj;var qj=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"rate",class:{"is-disabled":e.disabled,"is-spaced":e.spaced,"is-rtl":e.rtl}},[e._l(e.max,function(r,s){return n("div",{key:s,staticClass:"rate-item",class:e.rateClass(r),on:{mousemove:function(o){return e.previewRate(r,o)},mouseleave:e.resetNewValue,click:function(o){return o.preventDefault(),e.confirmValue(r)}}},[n("b-icon",{attrs:{pack:e.iconPack,icon:e.icon,size:e.size}}),e.checkHalf(r)?n("b-icon",{staticClass:"is-half",style:e.halfStyle,attrs:{pack:e.iconPack,icon:e.icon,size:e.size}}):e._e()],1)}),e.showText||e.showScore||e.customText?n("div",{staticClass:"rate-text",class:e.size},[n("span",[e._v(e._s(e.showMe))]),e.customText&&!e.showText?n("span",[e._v(e._s(e.customText))]):e._e()]):e._e()],2)},Vj=[];const Uj=void 0,Hj=void 0,Wj=void 0,Gj=!1;var Yj=me({render:qj,staticRenderFns:Vj},Uj,jj,Hj,Gj,Wj,void 0,void 0),IS={install:function(t){_e(t,Yj)}};Oe(IS);var Kj=IS,NS={install:function(t){_e(t,ji)}};Oe(NS);var Xj=NS,Qj={name:"BSkeleton",functional:!0,props:{active:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:[Number,String],height:[Number,String],circle:Boolean,rounded:{type:Boolean,default:!0},count:{type:Number,default:1},position:{type:String,default:"",validator:function(t){return["","is-centered","is-right"].indexOf(t)>-1}},size:String},render:function(t,n){if(!!n.props.active){for(var r=[],s=n.props.width,o=n.props.height,c=0;c=0}},fullheight:Boolean,fullwidth:Boolean,right:Boolean,mobile:{type:String},reduce:Boolean,expandOnHover:Boolean,expandOnHoverFixed:Boolean,delay:{type:Number,default:function(){return Q.defaultSidebarDelay}},canCancel:{type:[Array,Boolean],default:function(){return["escape","outside"]}},onCancel:{type:Function,default:function(){}},scroll:{type:String,default:function(){return Q.defaultModalScroll?Q.defaultModalScroll:"clip"},validator:function(t){return["clip","keep"].indexOf(t)>=0}}},data:function(){return{isOpen:this.open,isDelayOver:!1,transitionName:null,animating:!0,savedScrollTop:null,hasLeaved:!1,whiteList:[]}},computed:{rootClasses:function(){return[this.type,{"is-fixed":this.isFixed,"is-static":this.isStatic,"is-absolute":this.isAbsolute,"is-fullheight":this.fullheight,"is-fullwidth":this.fullwidth,"is-right":this.right,"is-mini":this.reduce&&!this.isDelayOver,"is-mini-expand":this.expandOnHover||this.isDelayOver,"is-mini-expand-fixed":this.expandOnHover&&this.expandOnHoverFixed||this.isDelayOver,"is-mini-delayed":this.delay!==null,"is-mini-mobile":this.mobile==="reduce","is-hidden-mobile":this.mobile==="hide","is-fullwidth-mobile":this.mobile==="fullwidth"}]},cancelOptions:function(){return typeof this.canCancel=="boolean"?this.canCancel?["escape","outside"]:[]:this.canCancel},isStatic:function(){return this.position==="static"},isFixed:function(){return this.position==="fixed"},isAbsolute:function(){return this.position==="absolute"}},watch:{open:{handler:function(t){this.isOpen=t,this.overlay&&this.handleScroll();var n=this.right?!t:t;this.transitionName=n?"slide-next":"slide-prev"},immediate:!0}},methods:{keyPress:function(t){var n=t.key;this.isFixed&&this.isOpen&&(n==="Escape"||n==="Esc")&&this.cancel("escape")},cancel:function(t){this.cancelOptions.indexOf(t)<0||this.isStatic||(this.onCancel.apply(null,arguments),this.close())},close:function(){this.isOpen=!1,this.$emit("close"),this.$emit("update:open",!1)},clickedOutside:function(t){if(this.isFixed&&this.isOpen&&!this.animating){var n=fp(this)?t.composedPath()[0]:t.target;this.whiteList.indexOf(n)<0&&this.cancel("outside")}},beforeEnter:function(){this.animating=!0},afterEnter:function(){this.animating=!1},handleScroll:function(){if(typeof window!="undefined"){if(this.scroll==="clip"){this.open?document.documentElement.classList.add("is-clipped"):document.documentElement.classList.remove("is-clipped");return}if(this.savedScrollTop=this.savedScrollTop?this.savedScrollTop:document.documentElement.scrollTop,this.open?document.body.classList.add("is-noscroll"):document.body.classList.remove("is-noscroll"),this.open){document.body.style.top="-".concat(this.savedScrollTop,"px");return}document.documentElement.scrollTop=this.savedScrollTop,document.body.style.top=null,this.savedScrollTop=null}},onHover:function(){var t=this;this.delay?(this.hasLeaved=!1,this.timer=setTimeout(function(){t.hasLeaved||(t.isDelayOver=!0),t.timer=null},this.delay)):this.isDelayOver=!1},onHoverLeave:function(){this.hasLeaved=!0,this.timer=null,this.isDelayOver=!1}},created:function(){typeof window!="undefined"&&(document.addEventListener("keyup",this.keyPress),document.addEventListener("click",this.clickedOutside))},mounted:function(){typeof window!="undefined"&&this.isFixed&&document.body.appendChild(this.$el),this.overlay&&this.open&&this.handleScroll()},beforeDestroy:function(){if(typeof window!="undefined"&&(document.removeEventListener("keyup",this.keyPress),document.removeEventListener("click",this.clickedOutside),this.overlay)){document.documentElement.classList.remove("is-clipped");var t=this.savedScrollTop?this.savedScrollTop:document.documentElement.scrollTop;document.body.classList.remove("is-noscroll"),document.documentElement.scrollTop=t,document.body.style.top=null}this.isFixed&&Ui(this.$el)},beforeUpdate:function(){if(this.whiteList=[],this.whiteList.push(this.$refs.sidebarContent),this.$refs.sidebarContent!==void 0){var t=this.$refs.sidebarContent.querySelectorAll("*"),n=!0,r=!1,s=void 0;try{for(var o=t[Symbol.iterator](),c;!(n=(c=o.next()).done);n=!0){var u=c.value;this.whiteList.push(u)}}catch(i){r=!0,s=i}finally{try{!n&&o.return!=null&&o.return()}finally{if(r)throw s}}}}};const sq=aq;var oq=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"b-sidebar"},[e.overlay&&e.isOpen?n("div",{staticClass:"sidebar-background"}):e._e(),n("transition",{attrs:{name:e.transitionName},on:{"before-enter":e.beforeEnter,"after-enter":e.afterEnter}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isOpen,expression:"isOpen"}],ref:"sidebarContent",staticClass:"sidebar-content",class:e.rootClasses,on:{mouseenter:e.onHover,mouseleave:e.onHoverLeave}},[e._t("default")],2)])],1)},uq=[];const lq=void 0,cq=void 0,fq=void 0,dq=!1;var hq=me({render:oq,staticRenderFns:uq},lq,sq,cq,dq,fq,void 0,void 0),LS={install:function(t){_e(t,hq)}};Oe(LS);var pq=LS,mq={name:"BSliderThumb",components:fe({},Gs.name,Gs),inheritAttrs:!1,props:{value:{type:Number,default:0},type:{type:String,default:""},tooltip:{type:Boolean,default:!0},indicator:{type:Boolean,default:!1},customFormatter:Function,format:{type:String,default:"raw",validator:function(t){return["raw","percent"].indexOf(t)>=0}},locale:{type:[String,Array],default:function(){return Q.defaultLocale}},tooltipAlways:{type:Boolean,default:!1}},data:function(){return{isFocused:!1,dragging:!1,startX:0,startPosition:0,newPosition:null,oldValue:this.value}},computed:{disabled:function(){return this.$parent.disabled},max:function(){return this.$parent.max},min:function(){return this.$parent.min},step:function(){return this.$parent.step},precision:function(){return this.$parent.precision},currentPosition:function(){return"".concat((this.value-this.min)/(this.max-this.min)*100,"%")},wrapperStyle:function(){return{left:this.currentPosition}},formattedValue:function(){return typeof this.customFormatter!="undefined"?this.customFormatter(this.value):this.format==="percent"?new Intl.NumberFormat(this.locale,{style:"percent"}).format((this.value-this.min)/(this.max-this.min)):new Intl.NumberFormat(this.locale).format(this.value)}},methods:{onFocus:function(){this.isFocused=!0},onBlur:function(){this.isFocused=!1},onButtonDown:function(t){this.disabled||(t.preventDefault(),this.onDragStart(t),typeof window!="undefined"&&(document.addEventListener("mousemove",this.onDragging),document.addEventListener("touchmove",this.onDragging),document.addEventListener("mouseup",this.onDragEnd),document.addEventListener("touchend",this.onDragEnd),document.addEventListener("contextmenu",this.onDragEnd)))},onLeftKeyDown:function(){this.disabled||this.value===this.min||(this.newPosition=parseFloat(this.currentPosition)-this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onRightKeyDown:function(){this.disabled||this.value===this.max||(this.newPosition=parseFloat(this.currentPosition)+this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onHomeKeyDown:function(){this.disabled||this.value===this.min||(this.newPosition=0,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onEndKeyDown:function(){this.disabled||this.value===this.max||(this.newPosition=100,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onDragStart:function(t){this.dragging=!0,this.$emit("dragstart"),t.type==="touchstart"&&(t.clientX=t.touches[0].clientX),this.startX=t.clientX,this.startPosition=parseFloat(this.currentPosition),this.newPosition=this.startPosition},onDragging:function(t){if(this.dragging){t.type==="touchmove"&&(t.clientX=t.touches[0].clientX);var n=(t.clientX-this.startX)/this.$parent.sliderSize()*100;this.newPosition=this.startPosition+n,this.setPosition(this.newPosition)}},onDragEnd:function(){this.dragging=!1,this.$emit("dragend"),this.value!==this.oldValue&&this.$parent.emitValue("change"),this.setPosition(this.newPosition),typeof window!="undefined"&&(document.removeEventListener("mousemove",this.onDragging),document.removeEventListener("touchmove",this.onDragging),document.removeEventListener("mouseup",this.onDragEnd),document.removeEventListener("touchend",this.onDragEnd),document.removeEventListener("contextmenu",this.onDragEnd))},setPosition:function(t){if(!(t===null||isNaN(t))){t<0?t=0:t>100&&(t=100);var n=100/((this.max-this.min)/this.step),r=Math.round(t/n),s=r*n/100*(this.max-this.min)+this.min;s=parseFloat(s.toFixed(this.precision)),this.$emit("input",s),!this.dragging&&s!==this.oldValue&&(this.oldValue=s)}}}};const vq=mq;var gq=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"b-slider-thumb-wrapper",class:{"is-dragging":e.dragging,"has-indicator":e.indicator},style:e.wrapperStyle},[n("b-tooltip",{attrs:{label:e.formattedValue,type:e.type,always:e.dragging||e.isFocused||e.tooltipAlways,active:!e.disabled&&e.tooltip}},[n("div",e._b({staticClass:"b-slider-thumb",attrs:{tabindex:e.disabled?!1:0},on:{mousedown:e.onButtonDown,touchstart:e.onButtonDown,focus:e.onFocus,blur:e.onBlur,keydown:[function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"left",37,r.key,["Left","ArrowLeft"])||"button"in r&&r.button!==0?null:(r.preventDefault(),e.onLeftKeyDown(r))},function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"right",39,r.key,["Right","ArrowRight"])||"button"in r&&r.button!==2?null:(r.preventDefault(),e.onRightKeyDown(r))},function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"down",40,r.key,["Down","ArrowDown"])?null:(r.preventDefault(),e.onLeftKeyDown(r))},function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"up",38,r.key,["Up","ArrowUp"])?null:(r.preventDefault(),e.onRightKeyDown(r))},function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"home",void 0,r.key,void 0)?null:(r.preventDefault(),e.onHomeKeyDown(r))},function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"end",void 0,r.key,void 0)?null:(r.preventDefault(),e.onEndKeyDown(r))}]}},"div",e.$attrs,!1),[e.indicator?n("span",[e._v(e._s(e.formattedValue))]):e._e()])])],1)},yq=[];const _q=void 0,bq=void 0,Sq=void 0,wq=!1;var t_=me({render:gq,staticRenderFns:yq},_q,vq,bq,wq,Sq,void 0,void 0),Cq={name:"BSliderTick",props:{value:{type:Number,default:0}},computed:{position:function(){var t=(this.value-this.$parent.min)/(this.$parent.max-this.$parent.min)*100;return t>=0&&t<=100?t:0},hidden:function(){return this.value===this.$parent.min||this.value===this.$parent.max}},methods:{getTickStyle:function(t){return{left:t+"%"}}},created:function(){if(!this.$parent.$data._isSlider)throw this.$destroy(),new Error("You should wrap bSliderTick on a bSlider")}};const xq=Cq;var Tq=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"b-slider-tick",class:{"is-tick-hidden":e.hidden},style:e.getTickStyle(e.position)},[e.$slots.default?n("span",{staticClass:"b-slider-tick-label"},[e._t("default")],2):e._e()])},Aq=[];const Pq=void 0,Oq=void 0,kq=void 0,$q=!1;var Kd=me({render:Tq,staticRenderFns:Aq},Pq,xq,Oq,$q,kq,void 0,void 0),bu,Eq={name:"BSlider",components:(bu={},fe(bu,t_.name,t_),fe(bu,Kd.name,Kd),bu),props:{value:{type:[Number,Array],default:0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},type:{type:String,default:"is-primary"},size:String,ticks:{type:Boolean,default:!1},tooltip:{type:Boolean,default:!0},tooltipType:String,rounded:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},customFormatter:Function,ariaLabel:[String,Array],biggerSliderFocus:{type:Boolean,default:!1},indicator:{type:Boolean,default:!1},format:{type:String,default:"raw",validator:function(t){return["raw","percent"].indexOf(t)>=0}},locale:{type:[String,Array],default:function(){return Q.defaultLocale}},tooltipAlways:{type:Boolean,default:!1}},data:function(){return{value1:null,value2:null,dragging:!1,isRange:!1,_isSlider:!0}},computed:{newTooltipType:function(){return this.tooltipType?this.tooltipType:this.type},tickValues:function(){if(!this.ticks||this.min>this.max||this.step===0)return[];for(var t=[],n=this.min+this.step;nthis.max))if(Array.isArray(t)){this.isRange=!0;var n=typeof t[0]!="number"||isNaN(t[0])?this.min:Ni(t[0],this.min,this.max),r=typeof t[1]!="number"||isNaN(t[1])?this.max:Ni(t[1],this.min,this.max);this.value1=this.isThumbReversed?r:n,this.value2=this.isThumbReversed?n:r}else this.isRange=!1,this.value1=isNaN(t)?this.min:Ni(t,this.min,this.max),this.value2=null},onInternalValueUpdate:function(){this.isRange&&(this.isThumbReversed=this.value1>this.value2),(!this.lazy||!this.dragging)&&this.emitValue("input"),this.dragging&&this.emitValue("dragging")},sliderSize:function(){return this.$refs.slider.getBoundingClientRect().width},onSliderClick:function(t){if(!(this.disabled||this.isTrackClickDisabled)){var n=this.$refs.slider.getBoundingClientRect().left,r=(t.clientX-n)/this.sliderSize()*100,s=this.min+r*(this.max-this.min)/100,o=Math.abs(s-this.value1);if(this.isRange){var c=Math.abs(s-this.value2);if(o<=c){if(o1&&arguments[1]!==void 0?arguments[1]:!1,o=null,c=r+1;c1&&arguments[1]!==void 0?arguments[1]:!1,o=null,c=r-1;c>=0;c--){var u=this.items[c];if(u.visible&&(!s||s&&!u.disabled)){o=c;break}}return o}}}},VS=function(e){return{mixins:[Bl(e,X0)],props:{label:String,icon:String,iconPack:String,visible:{type:Boolean,default:!0},value:{type:String,default:function(){return this._uid.toString()}},headerClass:{type:[String,Array,Object],default:null}},data:function(){return{transitionName:null,elementClass:"item",elementRole:null}},computed:{isActive:function(){return this.parent.activeItem===this}},methods:{activate:function(n){this.transitionName=this.index-1},default:"bottom"},rounded:{type:Boolean,default:!0},mobileMode:{type:String,validator:function(t){return["minimalist","compact"].indexOf(t)>-1},default:"minimalist"},ariaNextLabel:String,ariaPreviousLabel:String},computed:{activeItem:function(){var t=this;return this.childItems.filter(function(n){return n.value===t.activeId})[0]||this.items[0]},wrapperClasses:function(){return[this.size,fe({"is-vertical":this.vertical},this.position,this.position&&this.vertical)]},mainClasses:function(){return[this.type,fe({"has-label-right":this.labelPosition==="right","has-label-left":this.labelPosition==="left","is-animated":this.animated,"is-rounded":this.rounded},"mobile-".concat(this.mobileMode),this.mobileMode!==null)]},hasPrev:function(){return this.prevItemIdx!==null},nextItemIdx:function(){var t=this.activeItem?this.items.indexOf(this.activeItem):0;return this.getNextItemIdx(t)},nextItem:function(){var t=null;return this.nextItemIdx!==null&&(t=this.items[this.nextItemIdx]),t},prevItemIdx:function(){if(!this.activeItem)return null;var t=this.items.indexOf(this.activeItem);return this.getPrevItemIdx(t)},prevItem:function(){if(!this.activeItem)return null;var t=null;return this.prevItemIdx!==null&&(t=this.items[this.prevItemIdx]),t},hasNext:function(){return this.nextItemIdx!==null},navigationProps:function(){return{previous:{disabled:!this.hasPrev,action:this.prev},next:{disabled:!this.hasNext,action:this.next}}}},methods:{isItemClickable:function(t){return t.clickable===void 0?t.indexr.index}]},[n("a",{staticClass:"step-link",class:{"is-clickable":e.isItemClickable(r)},on:{click:function(s){e.isItemClickable(r)&&e.childClick(r)}}},[n("div",{staticClass:"step-marker"},[r.icon?n("b-icon",{attrs:{icon:r.icon,pack:r.iconPack,size:e.size}}):r.step?n("span",[e._v(e._s(r.step))]):e._e()],1),n("div",{staticClass:"step-details"},[n("span",{staticClass:"step-title"},[e._v(e._s(r.label))])])])])}),0)]),n("section",{staticClass:"step-content",class:{"is-transitioning":e.isTransitioning}},[e._t("default")],2),e._t("navigation",[e.hasNavigation?n("nav",{staticClass:"step-navigation"},[n("a",{staticClass:"pagination-previous",attrs:{role:"button",disabled:e.navigationProps.previous.disabled,"aria-label":e.ariaPreviousLabel},on:{click:function(r){return r.preventDefault(),e.navigationProps.previous.action(r)}}},[n("b-icon",{attrs:{icon:e.iconPrev,pack:e.iconPack,both:"","aria-hidden":"true"}})],1),n("a",{staticClass:"pagination-next",attrs:{role:"button",disabled:e.navigationProps.next.disabled,"aria-label":e.ariaNextLabel},on:{click:function(r){return r.preventDefault(),e.navigationProps.next.action(r)}}},[n("b-icon",{attrs:{icon:e.iconNext,pack:e.iconPack,both:"","aria-hidden":"true"}})],1)]):e._e()],{previous:e.navigationProps.previous,next:e.navigationProps.next})],2)},tV=[];const nV=void 0,iV=void 0,rV=void 0,aV=!1;var sV=me({render:eV,staticRenderFns:tV},nV,Jq,iV,aV,rV,void 0,void 0),oV={name:"BStepItem",mixins:[VS("step")],props:{step:[String,Number],type:[String,Object],clickable:{type:Boolean,default:void 0}},data:function(){return{elementClass:"step-item"}}};const uV=oV,lV=void 0,cV=void 0,fV=void 0,dV=void 0;var hV=me({},lV,uV,cV,dV,fV,void 0,void 0),US={install:function(t){_e(t,sV),_e(t,hV)}};Oe(US);var pV=US,mV={name:"BSwitch",props:{value:[String,Number,Boolean,Function,Object,Array,Date],nativeValue:[String,Number,Boolean,Function,Object,Array,Date],disabled:Boolean,type:String,passiveType:String,name:String,required:Boolean,size:String,ariaLabelledby:String,trueValue:{type:[String,Number,Boolean,Function,Object,Array,Date],default:!0},falseValue:{type:[String,Number,Boolean,Function,Object,Array,Date],default:!1},rounded:{type:Boolean,default:function(){return Q.defaultSwitchRounded}},outlined:{type:Boolean,default:!1},leftLabel:{type:Boolean,default:!1}},data:function(){return{newValue:this.value,isMouseDown:!1}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){this.newValue=t,this.$emit("input",t)}},newClass:function(){return[this.size,{"is-disabled":this.disabled,"is-rounded":this.rounded,"is-outlined":this.outlined,"has-left-label":this.leftLabel}]},checkClasses:function(){return[{"is-elastic":this.isMouseDown&&!this.disabled},this.passiveType&&"".concat(this.passiveType,"-passive"),this.type]},showControlLabel:function(){return!!this.$slots.default}},watch:{value:function(t){this.newValue=t}},methods:{focus:function(){this.$refs.input.focus()}}};const vV=mV;var gV=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{ref:"label",staticClass:"switch",class:e.newClass,attrs:{disabled:e.disabled},on:{click:e.focus,keydown:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:(r.preventDefault(),e.$refs.label.click())},mousedown:function(r){e.isMouseDown=!0},mouseup:function(r){e.isMouseDown=!1},mouseout:function(r){e.isMouseDown=!1},blur:function(r){e.isMouseDown=!1}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"checkbox",disabled:e.disabled,name:e.name,required:e.required,"true-value":e.trueValue,"false-value":e.falseValue,"aria-labelledby":e.ariaLabelledby},domProps:{value:e.nativeValue,checked:Array.isArray(e.computedValue)?e._i(e.computedValue,e.nativeValue)>-1:e._q(e.computedValue,e.trueValue)},on:{click:function(r){r.stopPropagation()},change:function(r){var s=e.computedValue,o=r.target,c=o.checked?e.trueValue:e.falseValue;if(Array.isArray(s)){var u=e.nativeValue,i=e._i(s,u);o.checked?i<0&&(e.computedValue=s.concat([u])):i>-1&&(e.computedValue=s.slice(0,i).concat(s.slice(i+1)))}else e.computedValue=c}}}),n("span",{staticClass:"check",class:e.checkClasses}),e.showControlLabel?n("span",{staticClass:"control-label",attrs:{id:e.ariaLabelledby}},[e._t("default")],2):e._e()])},yV=[];const _V=void 0,bV=void 0,SV=void 0,wV=!1;var CV=me({render:gV,staticRenderFns:yV},_V,vV,bV,wV,SV,void 0,void 0),HS={install:function(t){_e(t,CV)}};Oe(HS);var xV=HS,Su,TV={name:"BTableMobileSort",components:(Su={},fe(Su,ji.name,ji),fe(Su,Fe.name,Fe),Su),props:{currentSortColumn:Object,sortMultipleData:Array,isAsc:Boolean,columns:Array,placeholder:String,iconPack:String,sortIcon:{type:String,default:"arrow-up"},sortIconSize:{type:String,default:"is-small"},sortMultiple:{type:Boolean,default:!1}},data:function(){return{sortMultipleSelect:"",mobileSort:this.currentSortColumn,defaultEvent:{shiftKey:!0,altKey:!0,ctrlKey:!0},ignoreSort:!1}},computed:{showPlaceholder:function(){var t=this;return!this.columns||!this.columns.some(function(n){return n===t.mobileSort})}},watch:{sortMultipleSelect:function(t){this.ignoreSort?this.ignoreSort=!1:this.$emit("sort",t,this.defaultEvent)},mobileSort:function(t){this.currentSortColumn!==t&&this.$emit("sort",t,this.defaultEvent)},currentSortColumn:function(t){this.mobileSort=t}},methods:{removePriority:function(){var t=this;this.$emit("removePriority",this.sortMultipleSelect),this.ignoreSort=!0;var n=this.sortMultipleData.filter(function(r){return r.field!==t.sortMultipleSelect.field}).map(function(r){return r.field});this.sortMultipleSelect=this.columns.filter(function(r){return n.includes(r.field)})[0]},getSortingObjectOfColumn:function(t){return this.sortMultipleData.filter(function(n){return n.field===t.field})[0]},columnIsDesc:function(t){var n=this.getSortingObjectOfColumn(t);return n?!!(n.order&&n.order==="desc"):!0},getLabel:function(t){var n=this.getSortingObjectOfColumn(t);return n?t.label+"("+(this.sortMultipleData.indexOf(n)+1)+")":t.label},sort:function(){this.$emit("sort",this.sortMultiple?this.sortMultipleSelect:this.mobileSort,this.defaultEvent)}}};const AV=TV;var PV=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"field table-mobile-sort"},[n("div",{staticClass:"field has-addons"},[e.sortMultiple?n("b-select",{attrs:{expanded:""},model:{value:e.sortMultipleSelect,callback:function(r){e.sortMultipleSelect=r},expression:"sortMultipleSelect"}},e._l(e.columns,function(r,s){return r.sortable?n("option",{key:s,domProps:{value:r}},[e._v(" "+e._s(e.getLabel(r))+" "),e.getSortingObjectOfColumn(r)?[e.columnIsDesc(r)?[e._v(" \u2193 ")]:[e._v(" \u2191 ")]]:e._e()],2):e._e()}),0):n("b-select",{attrs:{expanded:""},model:{value:e.mobileSort,callback:function(r){e.mobileSort=r},expression:"mobileSort"}},[e.placeholder?[n("option",{directives:[{name:"show",rawName:"v-show",value:e.showPlaceholder,expression:"showPlaceholder"}],attrs:{selected:"",disabled:"",hidden:""},domProps:{value:{}}},[e._v(" "+e._s(e.placeholder)+" ")])]:e._e(),e._l(e.columns,function(r,s){return r.sortable?n("option",{key:s,domProps:{value:r}},[e._v(" "+e._s(r.label)+" ")]):e._e()})],2),n("div",{staticClass:"control"},[e.sortMultiple&&e.sortMultipleData.length>0?[n("button",{staticClass:"button is-primary",on:{click:e.sort}},[n("b-icon",{class:{"is-desc":e.columnIsDesc(e.sortMultipleSelect)},attrs:{icon:e.sortIcon,pack:e.iconPack,size:e.sortIconSize,both:""}})],1),n("button",{staticClass:"button is-primary",on:{click:e.removePriority}},[n("b-icon",{attrs:{icon:"delete",size:e.sortIconSize,both:""}})],1)]:e.sortMultiple?e._e():n("button",{staticClass:"button is-primary",on:{click:e.sort}},[n("b-icon",{directives:[{name:"show",rawName:"v-show",value:e.currentSortColumn===e.mobileSort,expression:"currentSortColumn === mobileSort"}],class:{"is-desc":!e.isAsc},attrs:{icon:e.sortIcon,pack:e.iconPack,size:e.sortIconSize,both:""}})],1)],2)],1)])},OV=[];const kV=void 0,$V=void 0,EV=void 0,MV=!1;var n_=me({render:PV,staticRenderFns:OV},kV,AV,$V,MV,EV,void 0,void 0),RV={name:"BTableColumn",inject:{$table:{name:"$table",default:!1}},props:{label:String,customKey:[String,Number],field:String,meta:[String,Number,Boolean,Function,Object,Array],width:[Number,String],numeric:Boolean,centered:Boolean,searchable:Boolean,sortable:Boolean,visible:{type:Boolean,default:!0},subheading:[String,Number],customSort:Function,customSearch:Function,sticky:Boolean,headerSelectable:Boolean,headerClass:String,cellClass:String,thAttrs:{type:Function,default:function(){return{}}},tdAttrs:{type:Function,default:function(){return{}}}},data:function(){return{newKey:this.customKey||this.label,_isTableColumn:!0}},computed:{thClasses:function(){var t=this.thAttrs(this),n=[this.headerClass,{"is-sortable":this.sortable,"is-sticky":this.sticky,"is-unselectable":this.isHeaderUnSelectable}];return t&&t.class&&n.push(t.class),n},thStyle:function(){var t=this.thAttrs(this),n=[this.style];return t&&t.style&&n.push(t.style),n},rootClasses:function(){return[this.cellClass,{"has-text-right":this.numeric&&!this.centered,"has-text-centered":this.centered,"is-sticky":this.sticky}]},style:function(){return{width:Fl(this.width)}},hasDefaultSlot:function(){return!!this.$scopedSlots.default},isHeaderUnSelectable:function(){return!this.headerSelectable&&this.sortable}},methods:{getRootClasses:function(t){var n=this.tdAttrs(t,this),r=[this.rootClasses];return n&&n.class&&r.push(n.class),r},getRootStyle:function(t){var n=this.tdAttrs(t,this),r=[];return n&&n.style&&r.push(n.style),r}},created:function(){if(!this.$table)throw this.$destroy(),new Error("You should wrap bTableColumn on a bTable");this.$table.refreshSlots()},beforeDestroy:function(){this.$table.refreshSlots()},render:function(t){return null}};const DV=RV,IV=void 0,NV=void 0,FV=void 0,LV=void 0;var Fu=me({},IV,DV,NV,LV,FV,void 0,void 0),BV={name:"BTablePagination",components:fe({},Yd.name,Yd),props:{paginated:Boolean,total:[Number,String],perPage:[Number,String],currentPage:[Number,String],paginationSimple:Boolean,paginationSize:String,rounded:Boolean,iconPack:String,ariaNextLabel:String,ariaPreviousLabel:String,ariaPageLabel:String,ariaCurrentLabel:String,pageInput:Boolean,paginationOrder:String,pageInputPosition:String,debouncePageInput:[Number,String]},data:function(){return{newCurrentPage:this.currentPage}},watch:{currentPage:function(t){this.newCurrentPage=t}},methods:{pageChanged:function(t){this.newCurrentPage=t>0?t:1,this.$emit("update:currentPage",this.newCurrentPage),this.$emit("page-change",this.newCurrentPage)}}};const zV=BV;var jV=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"top level"},[n("div",{staticClass:"level-left"},[e._t("default")],2),n("div",{staticClass:"level-right"},[e.paginated?n("div",{staticClass:"level-item"},[n("b-pagination",{attrs:{"icon-pack":e.iconPack,total:e.total,"per-page":e.perPage,simple:e.paginationSimple,size:e.paginationSize,current:e.newCurrentPage,rounded:e.rounded,"aria-next-label":e.ariaNextLabel,"aria-previous-label":e.ariaPreviousLabel,"aria-page-label":e.ariaPageLabel,"aria-current-label":e.ariaCurrentLabel,"page-input":e.pageInput,order:e.paginationOrder,"page-input-position":e.pageInputPosition,"debounce-page-input":e.debouncePageInput},on:{change:e.pageChanged}})],1):e._e()])])},qV=[];const VV=void 0,UV=void 0,HV=void 0,WV=!1;var i_=me({render:jV,staticRenderFns:qV},VV,zV,UV,WV,HV,void 0,void 0),ti,GV={name:"BTable",components:(ti={},fe(ti,Vd.name,Vd),fe(ti,Fe.name,Fe),fe(ti,qt.name,qt),fe(ti,ul.name,ul),fe(ti,cl.name,cl),fe(ti,n_.name,n_),fe(ti,Fu.name,Fu),fe(ti,i_.name,i_),ti),inheritAttrs:!1,provide:function(){return{$table:this}},props:{data:{type:Array,default:function(){return[]}},columns:{type:Array,default:function(){return[]}},bordered:Boolean,striped:Boolean,narrowed:Boolean,hoverable:Boolean,loading:Boolean,detailed:Boolean,checkable:Boolean,headerCheckable:{type:Boolean,default:!0},checkboxType:{type:String,default:"is-primary"},checkboxPosition:{type:String,default:"left",validator:function(t){return["left","right"].indexOf(t)>=0}},stickyCheckbox:{type:Boolean,default:!1},selected:Object,isRowSelectable:{type:Function,default:function(){return!0}},focusable:Boolean,customIsChecked:Function,isRowCheckable:{type:Function,default:function(){return!0}},checkedRows:{type:Array,default:function(){return[]}},mobileCards:{type:Boolean,default:!0},defaultSort:[String,Array],defaultSortDirection:{type:String,default:"asc"},sortIcon:{type:String,default:"arrow-up"},sortIconSize:{type:String,default:"is-small"},sortMultiple:{type:Boolean,default:!1},sortMultipleData:{type:Array,default:function(){return[]}},sortMultipleKey:{type:String,default:null},paginated:Boolean,currentPage:{type:Number,default:1},perPage:{type:[Number,String],default:20},showDetailIcon:{type:Boolean,default:!0},detailIcon:{type:String,default:"chevron-right"},paginationPosition:{type:String,default:"bottom",validator:function(t){return["bottom","top","both"].indexOf(t)>=0}},paginationRounded:Boolean,backendSorting:Boolean,backendFiltering:Boolean,rowClass:{type:Function,default:function(){return""}},openedDetailed:{type:Array,default:function(){return[]}},hasDetailedVisible:{type:Function,default:function(){return!0}},detailKey:{type:String,default:""},detailTransition:{type:String,default:""},customDetailRow:{type:Boolean,default:!1},backendPagination:Boolean,total:{type:[Number,String],default:0},iconPack:String,mobileSortPlaceholder:String,customRowKey:String,draggable:{type:Boolean,default:!1},draggableColumn:{type:Boolean,default:!1},scrollable:Boolean,ariaNextLabel:String,ariaPreviousLabel:String,ariaPageLabel:String,ariaCurrentLabel:String,stickyHeader:Boolean,height:[Number,String],filtersEvent:{type:String,default:""},cardLayout:Boolean,showHeader:{type:Boolean,default:!0},debounceSearch:Number,caption:String,showCaption:{type:Boolean,default:!0},pageInput:{type:Boolean,default:!1},paginationOrder:String,pageInputPosition:String,debouncePageInput:[Number,String]},data:function(){return{sortMultipleDataLocal:[],getValueByPath:zn,visibleDetailRows:this.openedDetailed,newData:this.data,newDataTotal:this.backendPagination?this.total:this.data.length,newCheckedRows:Kt(this.checkedRows),lastCheckedRowIndex:null,newCurrentPage:this.currentPage,currentSortColumn:{},isAsc:!0,filters:{},defaultSlots:[],firstTimeSort:!0,_isTable:!0,isDraggingRow:!1,isDraggingColumn:!1}},computed:{sortMultipleDataComputed:function(){return this.backendSorting?this.sortMultipleData:this.sortMultipleDataLocal},tableClasses:function(){return{"is-bordered":this.bordered,"is-striped":this.striped,"is-narrow":this.narrowed,"is-hoverable":(this.hoverable||this.focusable)&&this.visibleData.length}},tableWrapperClasses:function(){return{"has-mobile-cards":this.mobileCards,"has-sticky-header":this.stickyHeader,"is-card-list":this.cardLayout,"table-container":this.isScrollable}},tableStyle:function(){return{height:Fl(this.height)}},visibleData:function(){if(!this.paginated)return this.newData;var t=this.newCurrentPage,n=this.perPage;if(this.newData.length<=n)return this.newData;var r=(t-1)*n,s=parseInt(r,10)+parseInt(n,10);return this.newData.slice(r,s)},visibleColumns:function(){return this.newColumns?this.newColumns.filter(function(t){return t.visible||t.visible===void 0}):this.newColumns},isAllChecked:function(){var t=this,n=this.visibleData.filter(function(s){return t.isRowCheckable(s)});if(n.length===0)return!1;var r=n.some(function(s){return Wf(t.newCheckedRows,s,t.customIsChecked)<0});return!r},isAllUncheckable:function(){var t=this,n=this.visibleData.filter(function(r){return t.isRowCheckable(r)});return n.length===0},hasSortablenewColumns:function(){return this.newColumns.some(function(t){return t.sortable})},hasSearchablenewColumns:function(){return this.newColumns.some(function(t){return t.searchable})},hasCustomSubheadings:function(){return this.$scopedSlots&&this.$scopedSlots.subheading?!0:this.newColumns.some(function(t){return t.subheading||t.$scopedSlots&&t.$scopedSlots.subheading})},columnCount:function(){var t=this.visibleColumns.length;return t+=this.checkable?1:0,t+=this.detailed&&this.showDetailIcon?1:0,t},showDetailRowIcon:function(){return this.detailed&&this.showDetailIcon},isScrollable:function(){return this.scrollable?!0:this.newColumns?this.newColumns.some(function(t){return t.sticky}):!1},newColumns:function(){var t=this;return this.columns&&this.columns.length?this.columns.map(function(n){var r=Hi.extend(Fu),s=new r({parent:t,propsData:n});return s.$scopedSlots={default:function(c){var u=s.$createElement("span",{domProps:{innerHTML:zn(c.row,n.field)}});return[u]}},s}):this.defaultSlots.filter(function(n){return n.componentInstance&&n.componentInstance.$data&&n.componentInstance.$data._isTableColumn}).map(function(n){return n.componentInstance})},canDragRow:function(){return this.draggable&&!this.isDraggingColumn},canDragColumn:function(){return this.draggableColumn&&!this.isDraggingRow}},watch:{data:function(t){var n=this;this.newData=t,this.backendFiltering||(this.newData=t.filter(function(r){return n.isRowFiltered(r)})),this.backendSorting||this.sort(this.currentSortColumn,!0),this.backendPagination||(this.newDataTotal=this.newData.length)},total:function(t){!this.backendPagination||(this.newDataTotal=t)},currentPage:function(t){this.newCurrentPage=t},newCurrentPage:function(t){this.$emit("update:currentPage",t)},checkedRows:function(t){this.newCheckedRows=Kt(t)},debounceSearch:{handler:function(t){this.debouncedHandleFiltersChange=ES(this.handleFiltersChange,t)},immediate:!0},filters:{handler:function(t){this.debounceSearch?this.debouncedHandleFiltersChange(t):this.handleFiltersChange(t)},deep:!0},openedDetailed:function(t){this.visibleDetailRows=t}},methods:{onFiltersEvent:function(t){this.$emit("filters-event-".concat(this.filtersEvent),{event:t,filters:this.filters})},handleFiltersChange:function(t){var n=this;this.backendFiltering?this.$emit("filters-change",t):(this.newData=this.data.filter(function(r){return n.isRowFiltered(r)}),this.backendPagination||(this.newDataTotal=this.newData.length),this.backendSorting||(this.sortMultiple&&this.sortMultipleDataLocal&&this.sortMultipleDataLocal.length>0?this.doSortMultiColumn():Object.keys(this.currentSortColumn).length>0&&this.doSortSingleColumn(this.currentSortColumn)))},findIndexOfSortData:function(t){var n=this.sortMultipleDataComputed.filter(function(r){return r.field===t.field})[0];return this.sortMultipleDataComputed.indexOf(n)+1},removeSortingPriority:function(t){if(this.backendSorting)this.$emit("sorting-priority-removed",t.field);else{this.sortMultipleDataLocal=this.sortMultipleDataLocal.filter(function(r){return r.field!==t.field});var n=this.sortMultipleDataLocal.map(function(r){return(r.order&&r.order==="desc"?"-":"")+r.field});n.length===0?this.resetMultiSorting():this.newData=jy(this.newData,n)}},resetMultiSorting:function(){this.sortMultipleDataLocal=[],this.currentSortColumn={},this.newData=this.data},sortBy:function(t,n,r,s){var o=[];return r&&typeof r=="function"?o=Kt(t).sort(function(c,u){return r(c,u,s)}):o=Kt(t).sort(function(c,u){var i=zn(c,n),a=zn(u,n);return typeof i=="boolean"&&typeof a=="boolean"?s?i-a:a-i:!fu(a)&&fu(i)?s?1:-1:!fu(i)&&fu(a)?s?-1:1:i===a?0:(i=typeof i=="string"?i.toUpperCase():i,a=typeof a=="string"?a.toUpperCase():a,s?i>a?1:-1:i>a?-1:1)}),o},sortMultiColumn:function(t){if(this.currentSortColumn={},!this.backendSorting){var n=this.sortMultipleDataLocal.filter(function(r){return r.field===t.field})[0];n?n.order=n.order==="desc"?"asc":"desc":this.sortMultipleDataLocal.push({field:t.field,order:t.isAsc}),this.doSortMultiColumn()}},doSortMultiColumn:function(){var t=this.sortMultipleDataLocal.map(function(n){return(n.order&&n.order==="desc"?"-":"")+n.field});this.newData=jy(this.newData,t)},sort:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;!t||!t.sortable||(!this.backendSorting&&this.sortMultiple&&(this.sortMultipleKey&&r[this.sortMultipleKey]||!this.sortMultipleKey)?n?this.doSortMultiColumn():this.sortMultiColumn(t):(this.sortMultiple&&(this.sortMultipleDataLocal=[]),n||(this.isAsc=t===this.currentSortColumn?!this.isAsc:this.defaultSortDirection.toLowerCase()!=="desc"),this.firstTimeSort||this.$emit("sort",t.field,this.isAsc?"asc":"desc",r),this.backendSorting||this.doSortSingleColumn(t),this.currentSortColumn=t))},doSortSingleColumn:function(t){this.newData=this.sortBy(this.newData,t.field,t.customSort,this.isAsc)},isRowSelected:function(t,n){return n?this.customRowKey?t[this.customRowKey]===n[this.customRowKey]:t===n:!1},isRowChecked:function(t){return Wf(this.newCheckedRows,t,this.customIsChecked)>=0},removeCheckedRow:function(t){var n=Wf(this.newCheckedRows,t,this.customIsChecked);n>=0&&this.newCheckedRows.splice(n,1)},checkAll:function(){var t=this,n=this.isAllChecked;this.visibleData.forEach(function(r){t.isRowCheckable(r)&&t.removeCheckedRow(r),n||t.isRowCheckable(r)&&t.newCheckedRows.push(r)}),this.$emit("check",this.newCheckedRows),this.$emit("check-all",this.newCheckedRows),this.$emit("update:checkedRows",this.newCheckedRows)},checkRow:function(t,n,r){if(!!this.isRowCheckable(t)){var s=this.lastCheckedRowIndex;this.lastCheckedRowIndex=n,r.shiftKey&&s!==null&&n!==s?this.shiftCheckRow(t,n,s):this.isRowChecked(t)?this.removeCheckedRow(t):this.newCheckedRows.push(t),this.$emit("check",this.newCheckedRows,t),this.$emit("update:checkedRows",this.newCheckedRows)}},shiftCheckRow:function(t,n,r){var s=this,o=this.visibleData.slice(Math.min(n,r),Math.max(n,r)+1),c=!this.isRowChecked(t);o.forEach(function(u){s.removeCheckedRow(u),c&&s.isRowCheckable(u)&&s.newCheckedRows.push(u)})},selectRow:function(t,n){this.$emit("click",t),this.selected!==t&&(!this.isRowSelectable(t)||(this.$emit("select",t,this.selected),this.$emit("update:selected",t)))},toggleDetails:function(t){var n=this.isVisibleDetailRow(t);n?(this.closeDetailRow(t),this.$emit("details-close",t)):(this.openDetailRow(t),this.$emit("details-open",t)),this.$emit("update:openedDetailed",this.visibleDetailRows)},openDetailRow:function(t){var n=this.handleDetailKey(t);this.visibleDetailRows.push(n)},closeDetailRow:function(t){var n=this.handleDetailKey(t),r=this.visibleDetailRows.indexOf(n);r>=0&&this.visibleDetailRows.splice(r,1)},isVisibleDetailRow:function(t){var n=this.handleDetailKey(t);return this.visibleDetailRows.indexOf(n)>=0},isActiveDetailRow:function(t){return this.detailed&&!this.customDetailRow&&this.isVisibleDetailRow(t)},isActiveCustomDetailRow:function(t){return this.detailed&&this.customDetailRow&&this.isVisibleDetailRow(t)},isRowFiltered:function(t){var n=this,r=function(u){if(!n.filters[u])return"continue";var i=n.filters[u],a=n.newColumns.filter(function(v){return v.field===u})[0];if(a&&a.customSearch&&typeof a.customSearch=="function"){if(!a.customSearch(t,i))return{v:!1}}else{var l=n.getValueByPath(t,u);if(l==null)return{v:!1};if(Number.isInteger(l)){if(l!==Number(i))return{v:!1}}else{var d=new RegExp(LN(i),"i");if(Array.isArray(l)){var p=l.some(function(v){return d.test(zy(v))||d.test(v)});if(!p)return{v:!1}}else if(!d.test(zy(l))&&!d.test(l))return{v:!1}}}};for(var s in this.filters){var o=r(s);switch(o){case"continue":continue;default:if(Xt(o)==="object")return o.v}}return!0},handleDetailKey:function(t){var n=this.detailKey;return!n.length||!t?t:t[n]},checkPredefinedDetailedRows:function(){var t=this.openedDetailed.length>0;if(t&&!this.detailKey.length)throw new Error('If you set a predefined opened-detailed, you must provide a unique key using the prop "detail-key"')},checkSort:function(){if(this.newColumns.length&&this.firstTimeSort)this.initSort(),this.firstTimeSort=!1;else if(this.newColumns.length&&Object.keys(this.currentSortColumn).length>0){for(var t=0;t1)return!0;var t=this.$slots.footer[0].tag;return!(t!=="th"&&t!=="td")},hasBottomLeftSlot:function(){return typeof this.$slots["bottom-left"]!="undefined"},pressedArrow:function(t){if(!!this.visibleData.length){var n=this.visibleData.indexOf(this.selected)+t;n=n<0?0:n>this.visibleData.length-1?this.visibleData.length-1:n;var r=this.visibleData[n];if(this.isRowSelectable(r))this.selectRow(r);else{var s=null;if(t>0)for(var o=n;o=0&&s===null;c--)this.isRowSelectable(this.visibleData[c])&&(s=c);s>=0&&this.selectRow(this.visibleData[s])}}},focus:function(){!this.focusable||this.$el.querySelector("table").focus()},initSort:function(){var t=this;if(this.sortMultiple&&this.sortMultipleData)this.sortMultipleData.forEach(function(o){t.sortMultiColumn(o)});else{if(!this.defaultSort)return;var n="",r=this.defaultSortDirection;Array.isArray(this.defaultSort)?(n=this.defaultSort[0],this.defaultSort[1]&&(r=this.defaultSort[1])):n=this.defaultSort;var s=this.newColumns.filter(function(o){return o.field===n})[0];s&&(this.isAsc=r.toLowerCase()!=="desc",this.sort(s,!0))}},handleDragStart:function(t,n,r){!this.canDragRow||(this.isDraggingRow=!0,this.$emit("dragstart",{event:t,row:n,index:r}))},handleDragEnd:function(t,n,r){!this.canDragRow||(this.isDraggingRow=!1,this.$emit("dragend",{event:t,row:n,index:r}))},handleDrop:function(t,n,r){!this.canDragRow||this.$emit("drop",{event:t,row:n,index:r})},handleDragOver:function(t,n,r){!this.canDragRow||this.$emit("dragover",{event:t,row:n,index:r})},handleDragLeave:function(t,n,r){!this.canDragRow||this.$emit("dragleave",{event:t,row:n,index:r})},emitEventForRow:function(t,n,r){return this.$listeners[t]?this.$emit(t,r,n):null},handleColumnDragStart:function(t,n,r){!this.canDragColumn||(this.isDraggingColumn=!0,this.$emit("columndragstart",{event:t,column:n,index:r}))},handleColumnDragEnd:function(t,n,r){!this.canDragColumn||(this.isDraggingColumn=!1,this.$emit("columndragend",{event:t,column:n,index:r}))},handleColumnDrop:function(t,n,r){!this.canDragColumn||this.$emit("columndrop",{event:t,column:n,index:r})},handleColumnDragOver:function(t,n,r){!this.canDragColumn||this.$emit("columndragover",{event:t,column:n,index:r})},handleColumnDragLeave:function(t,n,r){!this.canDragColumn||this.$emit("columndragleave",{event:t,column:n,index:r})},refreshSlots:function(){this.defaultSlots=this.$slots.default||[]}},mounted:function(){this.refreshSlots(),this.checkPredefinedDetailedRows(),this.checkSort()}};const YV=GV;var KV=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"b-table"},[e._t("default"),e.mobileCards&&e.hasSortablenewColumns?n("b-table-mobile-sort",{attrs:{"current-sort-column":e.currentSortColumn,"sort-multiple":e.sortMultiple,"sort-multiple-data":e.sortMultipleDataComputed,"is-asc":e.isAsc,columns:e.newColumns,placeholder:e.mobileSortPlaceholder,"icon-pack":e.iconPack,"sort-icon":e.sortIcon,"sort-icon-size":e.sortIconSize},on:{sort:function(r,s){return e.sort(r,null,s)},removePriority:function(r){return e.removeSortingPriority(r)}}}):e._e(),e.paginated&&(e.paginationPosition==="top"||e.paginationPosition==="both")?[e._t("pagination",[n("b-table-pagination",e._b({attrs:{"per-page":e.perPage,paginated:e.paginated,rounded:e.paginationRounded,"icon-pack":e.iconPack,total:e.newDataTotal,"current-page":e.newCurrentPage,"aria-next-label":e.ariaNextLabel,"aria-previous-label":e.ariaPreviousLabel,"aria-page-label":e.ariaPageLabel,"aria-current-label":e.ariaCurrentLabel,"page-input":e.pageInput,"pagination-order":e.paginationOrder,"page-input-position":e.pageInputPosition,"debounce-page-input":e.debouncePageInput},on:{"update:currentPage":function(r){e.newCurrentPage=r},"update:current-page":function(r){e.newCurrentPage=r},"page-change":function(r){return e.$emit("page-change",r)}}},"b-table-pagination",e.$attrs,!1),[e._t("top-left")],2)])]:e._e(),n("div",{staticClass:"table-wrapper",class:e.tableWrapperClasses,style:e.tableStyle},[n("table",{staticClass:"table",class:e.tableClasses,attrs:{tabindex:e.focusable?0:!1},on:{keydown:[function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"up",38,r.key,["Up","ArrowUp"])||r.target!==r.currentTarget?null:(r.preventDefault(),e.pressedArrow(-1))},function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"down",40,r.key,["Down","ArrowDown"])||r.target!==r.currentTarget?null:(r.preventDefault(),e.pressedArrow(1))}]}},[e.caption?n("caption",{directives:[{name:"show",rawName:"v-show",value:e.showCaption,expression:"showCaption"}]},[e._v(e._s(e.caption))]):e._e(),e.newColumns.length&&e.showHeader?n("thead",[n("tr",[e.showDetailRowIcon?n("th",{attrs:{width:"40px"}}):e._e(),e.checkable&&e.checkboxPosition==="left"?n("th",{class:["checkbox-cell",{"is-sticky":e.stickyCheckbox}]},[e.headerCheckable?[n("b-checkbox",{attrs:{autocomplete:"off",value:e.isAllChecked,type:e.checkboxType,disabled:e.isAllUncheckable},nativeOn:{change:function(r){return e.checkAll(r)}}})]:e._e()],2):e._e(),e._l(e.visibleColumns,function(r,s){return n("th",e._b({key:r.newKey+":"+s+"header",class:[r.thClasses,{"is-current-sort":!e.sortMultiple&&e.currentSortColumn===r}],style:r.thStyle,attrs:{draggable:e.canDragColumn},on:{click:function(o){return o.stopPropagation(),e.sort(r,null,o)},dragstart:function(o){return e.handleColumnDragStart(o,r,s)},dragend:function(o){return e.handleColumnDragEnd(o,r,s)},drop:function(o){return e.handleColumnDrop(o,r,s)},dragover:function(o){return e.handleColumnDragOver(o,r,s)},dragleave:function(o){return e.handleColumnDragLeave(o,r,s)}}},"th",r.thAttrs(r),!1),[n("div",{staticClass:"th-wrap",class:{"is-numeric":r.numeric,"is-centered":r.centered}},[r.$scopedSlots&&r.$scopedSlots.header?[n("b-slot-component",{attrs:{component:r,scoped:"",name:"header",tag:"span",props:{column:r,index:s}}})]:[n("span",{staticClass:"is-relative"},[e._v(" "+e._s(r.label)+" "),e.sortMultiple&&e.sortMultipleDataComputed&&e.sortMultipleDataComputed.length>0&&e.sortMultipleDataComputed.filter(function(o){return o.field===r.field}).length>0?[n("b-icon",{class:{"is-desc":e.sortMultipleDataComputed.filter(function(o){return o.field===r.field})[0].order==="desc"},attrs:{icon:e.sortIcon,pack:e.iconPack,both:"",size:e.sortIconSize}}),e._v(" "+e._s(e.findIndexOfSortData(r))+" "),n("button",{staticClass:"delete is-small multi-sort-cancel-icon",attrs:{type:"button"},on:{click:function(o){return o.stopPropagation(),e.removeSortingPriority(r)}}})]:n("b-icon",{staticClass:"sort-icon",class:{"is-desc":!e.isAsc,"is-invisible":e.currentSortColumn!==r},attrs:{icon:e.sortIcon,pack:e.iconPack,both:"",size:e.sortIconSize}})],2)]],2)])}),e.checkable&&e.checkboxPosition==="right"?n("th",{class:["checkbox-cell",{"is-sticky":e.stickyCheckbox}]},[e.headerCheckable?[n("b-checkbox",{attrs:{autocomplete:"off",value:e.isAllChecked,type:e.checkboxType,disabled:e.isAllUncheckable},nativeOn:{change:function(r){return e.checkAll(r)}}})]:e._e()],2):e._e()],2),e.hasCustomSubheadings?n("tr",{staticClass:"is-subheading"},[e.showDetailRowIcon?n("th",{attrs:{width:"40px"}}):e._e(),e.checkable&&e.checkboxPosition==="left"?n("th"):e._e(),e._l(e.visibleColumns,function(r,s){return n("th",{key:r.newKey+":"+s+"subheading",style:r.style},[n("div",{staticClass:"th-wrap",class:{"is-numeric":r.numeric,"is-centered":r.centered}},[r.$scopedSlots&&r.$scopedSlots.subheading?[n("b-slot-component",{attrs:{component:r,scoped:"",name:"subheading",tag:"span",props:{column:r,index:s}}})]:[e._v(e._s(r.subheading))]],2)])}),e.checkable&&e.checkboxPosition==="right"?n("th"):e._e()],2):e._e(),e.hasSearchablenewColumns?n("tr",[e.showDetailRowIcon?n("th",{attrs:{width:"40px"}}):e._e(),e.checkable&&e.checkboxPosition==="left"?n("th"):e._e(),e._l(e.visibleColumns,function(r,s){return n("th",e._b({key:r.newKey+":"+s+"searchable",class:{"is-sticky":r.sticky},style:r.thStyle},"th",r.thAttrs(r),!1),[n("div",{staticClass:"th-wrap"},[r.searchable?[r.$scopedSlots&&r.$scopedSlots.searchable?[n("b-slot-component",{attrs:{component:r,scoped:!0,name:"searchable",tag:"span",props:{column:r,filters:e.filters}}})]:n("b-input",{attrs:{type:r.numeric?"number":"text"},nativeOn:e._d({},[e.filtersEvent,function(o){return e.onFiltersEvent(o)}]),model:{value:e.filters[r.field],callback:function(o){e.$set(e.filters,r.field,o)},expression:"filters[column.field]"}})]:e._e()],2)])}),e.checkable&&e.checkboxPosition==="right"?n("th"):e._e()],2):e._e()]):e._e(),n("tbody",[e._l(e.visibleData,function(r,s){return[n("tr",{key:e.customRowKey?r[e.customRowKey]:s,class:[e.rowClass(r,s),{"is-selected":e.isRowSelected(r,e.selected),"is-checked":e.isRowChecked(r)}],attrs:{draggable:e.canDragRow},on:{click:function(o){return e.selectRow(r)},dblclick:function(o){return e.$emit("dblclick",r)},mouseenter:function(o){return e.emitEventForRow("mouseenter",o,r)},mouseleave:function(o){return e.emitEventForRow("mouseleave",o,r)},contextmenu:function(o){return e.$emit("contextmenu",r,o)},dragstart:function(o){return e.handleDragStart(o,r,s)},dragend:function(o){return e.handleDragEnd(o,r,s)},drop:function(o){return e.handleDrop(o,r,s)},dragover:function(o){return e.handleDragOver(o,r,s)},dragleave:function(o){return e.handleDragLeave(o,r,s)}}},[e.showDetailRowIcon?n("td",{staticClass:"chevron-cell"},[e.hasDetailedVisible(r)?n("a",{attrs:{role:"button"},on:{click:function(o){return o.stopPropagation(),e.toggleDetails(r)}}},[n("b-icon",{class:{"is-expanded":e.isVisibleDetailRow(r)},attrs:{icon:e.detailIcon,pack:e.iconPack,both:""}})],1):e._e()]):e._e(),e.checkable&&e.checkboxPosition==="left"?n("td",{class:["checkbox-cell",{"is-sticky":e.stickyCheckbox}]},[n("b-checkbox",{attrs:{autocomplete:"off",value:e.isRowChecked(r),type:e.checkboxType,disabled:!e.isRowCheckable(r)},nativeOn:{click:function(o){return o.preventDefault(),o.stopPropagation(),e.checkRow(r,s,o)}}})],1):e._e(),e._l(e.visibleColumns,function(o,c){return[o.$scopedSlots&&o.$scopedSlots.default?[n("b-slot-component",e._b({key:o.newKey+":"+s+":"+c,class:o.getRootClasses(r),style:o.getRootStyle(r),attrs:{component:o,scoped:"",name:"default",tag:"td","data-label":o.label,props:{row:r,column:o,index:s,colindex:c,toggleDetails:e.toggleDetails}},nativeOn:{click:function(u){return e.$emit("cellclick",r,o,s,c)}}},"b-slot-component",o.tdAttrs(r,o),!1))]:e._e()]}),e.checkable&&e.checkboxPosition==="right"?n("td",{class:["checkbox-cell",{"is-sticky":e.stickyCheckbox}]},[n("b-checkbox",{attrs:{autocomplete:"off",value:e.isRowChecked(r),type:e.checkboxType,disabled:!e.isRowCheckable(r)},nativeOn:{click:function(o){return o.preventDefault(),o.stopPropagation(),e.checkRow(r,s,o)}}})],1):e._e()],2),n("transition",{key:(e.customRowKey?r[e.customRowKey]:s)+"detail",attrs:{name:e.detailTransition}},[e.isActiveDetailRow(r)?n("tr",{staticClass:"detail"},[n("td",{attrs:{colspan:e.columnCount}},[n("div",{staticClass:"detail-container"},[e._t("detail",null,{row:r,index:s})],2)])]):e._e()]),e.isActiveCustomDetailRow(r)?e._t("detail",null,{row:r,index:s}):e._e()]}),e.visibleData.length?e._e():n("tr",{staticClass:"is-empty"},[n("td",{attrs:{colspan:e.columnCount}},[e._t("empty")],2)])],2),e.$slots.footer!==void 0?n("tfoot",[n("tr",{staticClass:"table-footer"},[e.hasCustomFooterSlot()?e._t("footer"):n("th",{attrs:{colspan:e.columnCount}},[e._t("footer")],2)],2)]):e._e()]),e.loading?[e._t("loading",[n("b-loading",{attrs:{"is-full-page":!1,active:e.loading},on:{"update:active":function(r){e.loading=r}}})])]:e._e()],2),e.checkable&&e.hasBottomLeftSlot()||e.paginated&&(e.paginationPosition==="bottom"||e.paginationPosition==="both")?[e._t("pagination",[n("b-table-pagination",e._b({attrs:{"per-page":e.perPage,paginated:e.paginated,rounded:e.paginationRounded,"icon-pack":e.iconPack,total:e.newDataTotal,"current-page":e.newCurrentPage,"aria-next-label":e.ariaNextLabel,"aria-previous-label":e.ariaPreviousLabel,"aria-page-label":e.ariaPageLabel,"aria-current-label":e.ariaCurrentLabel,"page-input":e.pageInput,"pagination-order":e.paginationOrder,"page-input-position":e.pageInputPosition,"debounce-page-input":e.debouncePageInput},on:{"update:currentPage":function(r){e.newCurrentPage=r},"update:current-page":function(r){e.newCurrentPage=r},"page-change":function(r){return e.$emit("page-change",r)}}},"b-table-pagination",e.$attrs,!1),[e._t("bottom-left")],2)])]:e._e()],2)},XV=[];const QV=void 0,ZV=void 0,JV=void 0,e8=!1;var t8=me({render:KV,staticRenderFns:XV},QV,YV,ZV,e8,JV,void 0,void 0),WS={install:function(t){typeof Hi=="undefined"&&V0(t),_e(t,t8),_e(t,Fu)}};Oe(WS);var n8=WS,i8={name:"BTabs",mixins:[qS("tab")],props:{expanded:{type:Boolean,default:function(){return Q.defaultTabsExpanded}},type:{type:[String,Object],default:function(){return Q.defaultTabsType}},animated:{type:Boolean,default:function(){return Q.defaultTabsAnimated}},multiline:Boolean},data:function(){return{currentFocus:this.value}},computed:{mainClasses:function(){return fe({"is-fullwidth":this.expanded,"is-vertical":this.vertical,"is-multiline":this.multiline},this.position,this.position&&this.vertical)},navClasses:function(){var t;return[this.type,this.size,(t={},fe(t,this.position,this.position&&!this.vertical),fe(t,"is-fullwidth",this.expanded),fe(t,"is-toggle",this.type==="is-toggle-rounded"),t)]}},methods:{giveFocusToTab:function(t){t.$el&&t.$el.focus?t.$el.focus():t.focus&&t.focus()},manageTablistKeydown:function(t){var n=t.key;switch(n){case(this.vertical?"ArrowUp":"ArrowLeft"):case(this.vertical?"Up":"Left"):{var r=this.getPrevItemIdx(this.currentFocus,!0);r===null&&(r=this.getPrevItemIdx(this.items.length,!0)),r!==null&&this.$refs.tabLink&&r0&&this.removeTag(this.tagsLength-1)},keydown:function(t){var n=t.key;if(this.removeOnKeys.indexOf(n)!==-1&&!this.newTag.length&&this.removeLastTag(),!(this.autocomplete&&!this.allowNew)&&this.confirmKeys.indexOf(n)>=0){if(n!=="Tab"&&t.preventDefault(),n==="Enter"&&this.isComposing)return;this.addTag()}},onTyping:function(t){this.$emit("typing",t.trim())},emitInfiniteScroll:function(){this.$emit("infinite-scroll")}}};const B8=L8;var z8=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"taginput control",class:e.rootClasses},[n("div",{staticClass:"taginput-container",class:[e.statusType,e.size,e.containerClasses],attrs:{disabled:e.disabled},on:{click:function(r){e.hasInput&&e.focus(r)}}},[e._t("selected",e._l(e.tags,function(r,s){return n("b-tag",{key:e.getNormalizedTagText(r)+s,attrs:{type:e.type,"close-type":e.closeType,size:e.size,rounded:e.rounded,attached:e.attached,tabstop:!1,disabled:e.disabled,ellipsis:e.ellipsis,closable:e.closable,"aria-close-label":e.ariaCloseLabel,title:e.ellipsis&&e.getNormalizedTagText(r)},on:{close:function(o){return e.removeTag(s,o)}}},[e._t("tag",[e._v(" "+e._s(e.getNormalizedTagText(r))+" ")],{tag:r})],2)}),{tags:e.tags}),e.hasInput?n("b-autocomplete",e._g(e._b({ref:"autocomplete",attrs:{data:e.data,field:e.field,icon:e.icon,"icon-pack":e.iconPack,maxlength:e.maxlength,"has-counter":!1,size:e.size,disabled:e.disabled,loading:e.loading,autocomplete:e.nativeAutocomplete,"open-on-focus":e.openOnFocus,"keep-open":e.openOnFocus,"keep-first":e.keepFirst,"group-field":e.groupField,"group-options":e.groupOptions,"use-html5-validation":e.useHtml5Validation,"check-infinite-scroll":e.checkInfiniteScroll,"append-to-body":e.appendToBody,"confirm-keys":e.confirmKeys},on:{typing:e.onTyping,focus:e.onFocus,blur:e.customOnBlur,select:e.onSelect,"infinite-scroll":e.emitInfiniteScroll},nativeOn:{keydown:function(r){return e.keydown(r)},compositionstart:function(r){e.isComposing=!0},compositionend:function(r){e.isComposing=!1}},scopedSlots:e._u([e.hasHeaderSlot?{key:"header",fn:function(){return[e._t("header")]},proxy:!0}:null,e.hasDefaultSlot?{key:"default",fn:function(r){return[e._t("default",null,{option:r.option,index:r.index})]}}:null,e.hasEmptySlot?{key:"empty",fn:function(){return[e._t("empty")]},proxy:!0}:null,e.hasFooterSlot?{key:"footer",fn:function(){return[e._t("footer")]},proxy:!0}:null],null,!0),model:{value:e.newTag,callback:function(r){e.newTag=r},expression:"newTag"}},"b-autocomplete",e.$attrs,!1),e.listeners)):e._e()],2),e.hasCounter&&(e.maxtags||e.maxlength)?n("small",{staticClass:"help counter"},[e.maxlength&&e.valueLength>0?[e._v(" "+e._s(e.valueLength)+" / "+e._s(e.maxlength)+" ")]:e.maxtags?[e._v(" "+e._s(e.tagsLength)+" / "+e._s(e.maxtags)+" ")]:e._e()],2):e._e()])},j8=[];const q8=void 0,V8=void 0,U8=void 0,H8=!1;var W8=me({render:z8,staticRenderFns:j8},q8,B8,V8,H8,U8,void 0,void 0),KS={install:function(t){_e(t,W8)}};Oe(KS);var G8=KS,XS={install:function(t){_e(t,Wd)}};Oe(XS);var Y8=XS,K8={name:"BToast",mixins:[pp],data:function(){return{newDuration:this.duration||Q.defaultToastDuration}}};const X8=K8;var Q8=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{"enter-active-class":e.transition.enter,"leave-active-class":e.transition.leave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"toast",class:[e.type,e.position],attrs:{"aria-hidden":!e.isActive,role:"alert"},on:{mouseenter:e.pause,mouseleave:e.removePause}},[e.$slots.default?[e._t("default")]:[n("div",{domProps:{innerHTML:e._s(e.message)}})]],2)])},Z8=[];const J8=void 0,eU=void 0,tU=void 0,nU=!1;var iU=me({render:Q8,staticRenderFns:Z8},J8,X8,eU,nU,tU,void 0,void 0),QS,rU={open:function(t){var n;typeof t=="string"&&(t={message:t});var r={position:Q.defaultToastPosition||"is-top"};t.parent&&(n=t.parent,delete t.parent);var s;Array.isArray(t.message)&&(s=t.message,delete t.message);var o=Vn(r,t),c=typeof window!="undefined"&&window.Vue?window.Vue:QS||Hi,u=c.extend(iU),i=new u({parent:n,el:document.createElement("div"),propsData:o});return s&&(i.$slots.default=s,i.$forceUpdate()),i}},ZS={install:function(t){QS=t,na(t,"toast",rU)}};Oe(ZS);var aU=ZS,JS={install:function(t){_e(t,Gs)}};Oe(JS);var sU=JS,oU={name:"BUpload",mixins:[li],inheritAttrs:!1,props:{value:{type:[Object,Function,C5,Array]},multiple:Boolean,disabled:Boolean,accept:String,dragDrop:Boolean,type:{type:String,default:"is-primary"},native:{type:Boolean,default:!1},expanded:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1}},data:function(){return{newValue:this.value,dragDropFocus:!1,_elementRef:"input"}},watch:{value:function(t){this.newValue=t,(!t||Array.isArray(t)&&t.length===0)&&(this.$refs.input.value=null),!this.isValid&&!this.dragDrop&&this.checkHtml5Validity()}},methods:{onFileChange:function(t){if(!(this.disabled||this.loading)){this.dragDrop&&this.updateDragDropFocus(!1);var n=t.target.files||t.dataTransfer.files;if(n.length===0){if(!this.newValue)return;this.native&&(this.newValue=null)}else if(this.multiple){var s=!1;(this.native||!this.newValue)&&(this.newValue=[],s=!0);for(var o=0;o1&&arguments[1]!==void 0?arguments[1]:{};V0(t),q0(Vn(Q,n,!0));for(var r in r_)t.use(r_[r]);na(t,"config",yU),t.prototype.$buefy.globalNoticeInterval=null}};Oe(tw);var _U=tw;/*! + * Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com + * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) + */function Is(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Is=function(t){return typeof t}:Is=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Is(e)}function bU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a_(e,t){for(var n=0;n-1;s--){var o=n[s],c=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(c)>-1&&(r=o)}return zt.head.insertBefore(t,r),e}}var VU="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function pl(){for(var e=12,t="";e-- >0;)t+=VU[Math.random()*62|0];return t}function pw(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function UU(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(pw(e[n]),'" ')},"").trim()}function mw(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n],";")},"")}function vw(e){return e.size!==La.size||e.x!==La.x||e.y!==La.y||e.rotate!==La.rotate||e.flipX||e.flipY}function gw(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,s={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),c="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),u="rotate(".concat(t.rotate," 0 0)"),i={transform:"".concat(o," ").concat(c," ").concat(u)},a={transform:"translate(".concat(r/2*-1," -256)")};return{outer:s,inner:i,path:a}}var ed={x:0,y:0,width:"100%",height:"100%"};function l_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function HU(e){return e.tag==="g"?e.children:[e]}function WU(e){var t=e.children,n=e.attributes,r=e.main,s=e.mask,o=e.maskId,c=e.transform,u=r.width,i=r.icon,a=s.width,l=s.icon,d=gw({transform:c,containerWidth:a,iconWidth:u}),p={tag:"rect",attributes:He({},ed,{fill:"white"})},v=i.children?{children:i.children.map(l_)}:{},g={tag:"g",attributes:He({},d.inner),children:[l_(He({tag:i.tag,attributes:He({},i.attributes,d.path)},v))]},_={tag:"g",attributes:He({},d.outer),children:[g]},b="mask-".concat(o||pl()),C="clip-".concat(o||pl()),T={tag:"mask",attributes:He({},ed,{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[p,_]},$={tag:"defs",children:[{tag:"clipPath",attributes:{id:C},children:HU(l)},T]};return t.push($,{tag:"rect",attributes:He({fill:"currentColor","clip-path":"url(#".concat(C,")"),mask:"url(#".concat(b,")")},ed)}),{children:t,attributes:n}}function GU(e){var t=e.children,n=e.attributes,r=e.main,s=e.transform,o=e.styles,c=mw(o);if(c.length>0&&(n.style=c),vw(s)){var u=gw({transform:s,containerWidth:r.width,iconWidth:r.width});t.push({tag:"g",attributes:He({},u.outer),children:[{tag:"g",attributes:He({},u.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:He({},r.icon.attributes,u.path)}]}]})}else t.push(r.icon);return{children:t,attributes:n}}function YU(e){var t=e.children,n=e.main,r=e.mask,s=e.attributes,o=e.styles,c=e.transform;if(vw(c)&&n.found&&!r.found){var u=n.width,i=n.height,a={x:u/i/2,y:.5};s.style=mw(He({},o,{"transform-origin":"".concat(a.x+c.x/16,"em ").concat(a.y+c.y/16,"em")}))}return[{tag:"svg",attributes:s,children:t}]}function KU(e){var t=e.prefix,n=e.iconName,r=e.children,s=e.attributes,o=e.symbol,c=o===!0?"".concat(t,"-").concat(ln.familyPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:He({},s,{id:c}),children:r}]}]}function XU(e){var t=e.icons,n=t.main,r=t.mask,s=e.prefix,o=e.iconName,c=e.transform,u=e.symbol,i=e.title,a=e.maskId,l=e.titleId,d=e.extra,p=e.watchable,v=p===void 0?!1:p,g=r.found?r:n,_=g.width,b=g.height,C=s==="fak",T=C?"":"fa-w-".concat(Math.ceil(_/b*16)),$=[ln.replacementClass,o?"".concat(ln.familyPrefix,"-").concat(o):"",T].filter(function(H){return d.classes.indexOf(H)===-1}).filter(function(H){return H!==""||!!H}).concat(d.classes).join(" "),L={children:[],attributes:He({},d.attributes,{"data-prefix":s,"data-icon":o,class:$,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(_," ").concat(b)})},D=C&&!~d.classes.indexOf("fa-fw")?{width:"".concat(_/b*16*.0625,"em")}:{};v&&(L.attributes[OU]=""),i&&L.children.push({tag:"title",attributes:{id:L.attributes["aria-labelledby"]||"title-".concat(l||pl())},children:[i]});var F=He({},L,{prefix:s,iconName:o,main:n,mask:r,maskId:a,transform:c,symbol:u,styles:He({},D,d.styles)}),P=r.found&&n.found?WU(F):GU(F),j=P.children,V=P.attributes;return F.children=j,F.attributes=V,u?KU(F):YU(F)}var c_=function(){};ln.measurePerformance&&Cu&&Cu.mark&&Cu.measure;var QU=function(t,n){return function(r,s,o,c){return t.call(n,r,s,o,c)}},td=function(t,n,r,s){var o=Object.keys(t),c=o.length,u=s!==void 0?QU(n,s):n,i,a,l;for(r===void 0?(i=1,l=t[o[0]]):(i=0,l=r);i2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,s=r===void 0?!1:r,o=Object.keys(t).reduce(function(c,u){var i=t[u],a=!!i.icon;return a?c[i.iconName]=i.icon:c[u]=i,c},{});typeof ri.hooks.addPack=="function"&&!s?ri.hooks.addPack(e,o):ri.styles[e]=He({},ri.styles[e]||{},o),e==="fas"&&yw("fa",t)}var f_=ri.styles,ZU=ri.shims,_w=function(){var t=function(s){return td(f_,function(o,c,u){return o[u]=td(c,s,{}),o},{})};t(function(r,s,o){return s[3]&&(r[s[3]]=o),r}),t(function(r,s,o){var c=s[2];return r[o]=o,c.forEach(function(u){r[u]=o}),r});var n="far"in f_;td(ZU,function(r,s){var o=s[0],c=s[1],u=s[2];return c==="far"&&!n&&(c="fas"),r[o]={prefix:c,iconName:u},r},{})};_w();ri.styles;function d_(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}function bw(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,s=e.children,o=s===void 0?[]:s;return typeof e=="string"?pw(e):"<".concat(t," ").concat(UU(r),">").concat(o.map(bw).join(""),"")}var JU=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t?t.toLowerCase().split(" ").reduce(function(r,s){var o=s.toLowerCase().split("-"),c=o[0],u=o.slice(1).join("-");if(c&&u==="h")return r.flipX=!0,r;if(c&&u==="v")return r.flipY=!0,r;if(u=parseFloat(u),isNaN(u))return r;switch(c){case"grow":r.size=r.size+u;break;case"shrink":r.size=r.size-u;break;case"left":r.x=r.x-u;break;case"right":r.x=r.x+u;break;case"up":r.y=r.y-u;break;case"down":r.y=r.y+u;break;case"rotate":r.rotate=r.rotate+u;break}return r},n):n};function eh(e){this.name="MissingIcon",this.message=e||"Icon unavailable",this.stack=new Error().stack}eh.prototype=Object.create(Error.prototype);eh.prototype.constructor=eh;var Vl={fill:"currentColor"},Sw={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};He({},Vl,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"});var _p=He({},Sw,{attributeName:"opacity"});He({},Vl,{cx:"256",cy:"364",r:"28"}),He({},Sw,{attributeName:"r",values:"28;14;28;28;14;28;"}),He({},_p,{values:"1;0;1;1;0;1;"});He({},Vl,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),He({},_p,{values:"1;0;0;0;0;1;"});He({},Vl,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),He({},_p,{values:"0;0;1;1;0;0;"});ri.styles;function h_(e){var t=e[0],n=e[1],r=e.slice(4),s=nw(r,1),o=s[0],c=null;return Array.isArray(o)?c={tag:"g",attributes:{class:"".concat(ln.familyPrefix,"-").concat(Jf.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ln.familyPrefix,"-").concat(Jf.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat(ln.familyPrefix,"-").concat(Jf.PRIMARY),fill:"currentColor",d:o[1]}}]}:c={tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:t,height:n,icon:c}}ri.styles;var eH=`svg:not(:root).svg-inline--fa { + overflow: visible; +} + +.svg-inline--fa { + display: inline-block; + font-size: inherit; + height: 1em; + overflow: visible; + vertical-align: -0.125em; +} +.svg-inline--fa.fa-lg { + vertical-align: -0.225em; +} +.svg-inline--fa.fa-w-1 { + width: 0.0625em; +} +.svg-inline--fa.fa-w-2 { + width: 0.125em; +} +.svg-inline--fa.fa-w-3 { + width: 0.1875em; +} +.svg-inline--fa.fa-w-4 { + width: 0.25em; +} +.svg-inline--fa.fa-w-5 { + width: 0.3125em; +} +.svg-inline--fa.fa-w-6 { + width: 0.375em; +} +.svg-inline--fa.fa-w-7 { + width: 0.4375em; +} +.svg-inline--fa.fa-w-8 { + width: 0.5em; +} +.svg-inline--fa.fa-w-9 { + width: 0.5625em; +} +.svg-inline--fa.fa-w-10 { + width: 0.625em; +} +.svg-inline--fa.fa-w-11 { + width: 0.6875em; +} +.svg-inline--fa.fa-w-12 { + width: 0.75em; +} +.svg-inline--fa.fa-w-13 { + width: 0.8125em; +} +.svg-inline--fa.fa-w-14 { + width: 0.875em; +} +.svg-inline--fa.fa-w-15 { + width: 0.9375em; +} +.svg-inline--fa.fa-w-16 { + width: 1em; +} +.svg-inline--fa.fa-w-17 { + width: 1.0625em; +} +.svg-inline--fa.fa-w-18 { + width: 1.125em; +} +.svg-inline--fa.fa-w-19 { + width: 1.1875em; +} +.svg-inline--fa.fa-w-20 { + width: 1.25em; +} +.svg-inline--fa.fa-pull-left { + margin-right: 0.3em; + width: auto; +} +.svg-inline--fa.fa-pull-right { + margin-left: 0.3em; + width: auto; +} +.svg-inline--fa.fa-border { + height: 1.5em; +} +.svg-inline--fa.fa-li { + width: 2em; +} +.svg-inline--fa.fa-fw { + width: 1.25em; +} + +.fa-layers svg.svg-inline--fa { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; +} + +.fa-layers { + display: inline-block; + height: 1em; + position: relative; + text-align: center; + vertical-align: -0.125em; + width: 1em; +} +.fa-layers svg.svg-inline--fa { + -webkit-transform-origin: center center; + transform-origin: center center; +} + +.fa-layers-counter, .fa-layers-text { + display: inline-block; + position: absolute; + text-align: center; +} + +.fa-layers-text { + left: 50%; + top: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + -webkit-transform-origin: center center; + transform-origin: center center; +} + +.fa-layers-counter { + background-color: #ff253a; + border-radius: 1em; + -webkit-box-sizing: border-box; + box-sizing: border-box; + color: #fff; + height: 1.5em; + line-height: 1; + max-width: 5em; + min-width: 1.5em; + overflow: hidden; + padding: 0.25em; + right: 0; + text-overflow: ellipsis; + top: 0; + -webkit-transform: scale(0.25); + transform: scale(0.25); + -webkit-transform-origin: top right; + transform-origin: top right; +} + +.fa-layers-bottom-right { + bottom: 0; + right: 0; + top: auto; + -webkit-transform: scale(0.25); + transform: scale(0.25); + -webkit-transform-origin: bottom right; + transform-origin: bottom right; +} + +.fa-layers-bottom-left { + bottom: 0; + left: 0; + right: auto; + top: auto; + -webkit-transform: scale(0.25); + transform: scale(0.25); + -webkit-transform-origin: bottom left; + transform-origin: bottom left; +} + +.fa-layers-top-right { + right: 0; + top: 0; + -webkit-transform: scale(0.25); + transform: scale(0.25); + -webkit-transform-origin: top right; + transform-origin: top right; +} + +.fa-layers-top-left { + left: 0; + right: auto; + top: 0; + -webkit-transform: scale(0.25); + transform: scale(0.25); + -webkit-transform-origin: top left; + transform-origin: top left; +} + +.fa-lg { + font-size: 1.3333333333em; + line-height: 0.75em; + vertical-align: -0.0667em; +} + +.fa-xs { + font-size: 0.75em; +} + +.fa-sm { + font-size: 0.875em; +} + +.fa-1x { + font-size: 1em; +} + +.fa-2x { + font-size: 2em; +} + +.fa-3x { + font-size: 3em; +} + +.fa-4x { + font-size: 4em; +} + +.fa-5x { + font-size: 5em; +} + +.fa-6x { + font-size: 6em; +} + +.fa-7x { + font-size: 7em; +} + +.fa-8x { + font-size: 8em; +} + +.fa-9x { + font-size: 9em; +} + +.fa-10x { + font-size: 10em; +} + +.fa-fw { + text-align: center; + width: 1.25em; +} + +.fa-ul { + list-style-type: none; + margin-left: 2.5em; + padding-left: 0; +} +.fa-ul > li { + position: relative; +} + +.fa-li { + left: -2em; + position: absolute; + text-align: center; + width: 2em; + line-height: inherit; +} + +.fa-border { + border: solid 0.08em #eee; + border-radius: 0.1em; + padding: 0.2em 0.25em 0.15em; +} + +.fa-pull-left { + float: left; +} + +.fa-pull-right { + float: right; +} + +.fa.fa-pull-left, +.fas.fa-pull-left, +.far.fa-pull-left, +.fal.fa-pull-left, +.fab.fa-pull-left { + margin-right: 0.3em; +} +.fa.fa-pull-right, +.fas.fa-pull-right, +.far.fa-pull-right, +.fal.fa-pull-right, +.fab.fa-pull-right { + margin-left: 0.3em; +} + +.fa-spin { + -webkit-animation: fa-spin 2s infinite linear; + animation: fa-spin 2s infinite linear; +} + +.fa-pulse { + -webkit-animation: fa-spin 1s infinite steps(8); + animation: fa-spin 1s infinite steps(8); +} + +@-webkit-keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +.fa-rotate-90 { + -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)"; + -webkit-transform: rotate(90deg); + transform: rotate(90deg); +} + +.fa-rotate-180 { + -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)"; + -webkit-transform: rotate(180deg); + transform: rotate(180deg); +} + +.fa-rotate-270 { + -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)"; + -webkit-transform: rotate(270deg); + transform: rotate(270deg); +} + +.fa-flip-horizontal { + -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)"; + -webkit-transform: scale(-1, 1); + transform: scale(-1, 1); +} + +.fa-flip-vertical { + -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"; + -webkit-transform: scale(1, -1); + transform: scale(1, -1); +} + +.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical { + -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"; + -webkit-transform: scale(-1, -1); + transform: scale(-1, -1); +} + +:root .fa-rotate-90, +:root .fa-rotate-180, +:root .fa-rotate-270, +:root .fa-flip-horizontal, +:root .fa-flip-vertical, +:root .fa-flip-both { + -webkit-filter: none; + filter: none; +} + +.fa-stack { + display: inline-block; + height: 2em; + position: relative; + width: 2.5em; +} + +.fa-stack-1x, +.fa-stack-2x { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; +} + +.svg-inline--fa.fa-stack-1x { + height: 1em; + width: 1.25em; +} +.svg-inline--fa.fa-stack-2x { + height: 2em; + width: 2.5em; +} + +.fa-inverse { + color: #fff; +} + +.sr-only { + border: 0; + clip: rect(0, 0, 0, 0); + height: 1px; + margin: -1px; + overflow: hidden; + padding: 0; + position: absolute; + width: 1px; +} + +.sr-only-focusable:active, .sr-only-focusable:focus { + clip: auto; + height: auto; + margin: 0; + overflow: visible; + position: static; + width: auto; +} + +.svg-inline--fa .fa-primary { + fill: var(--fa-primary-color, currentColor); + opacity: 1; + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa .fa-secondary { + fill: var(--fa-secondary-color, currentColor); + opacity: 0.4; + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-primary { + opacity: 0.4; + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-secondary { + opacity: 1; + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa mask .fa-primary, +.svg-inline--fa mask .fa-secondary { + fill: black; +} + +.fad.fa-inverse { + color: #fff; +}`;function tH(){var e=aw,t=sw,n=ln.familyPrefix,r=ln.replacementClass,s=eH;if(n!==e||r!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),c=new RegExp("\\--".concat(e,"\\-"),"g"),u=new RegExp("\\.".concat(t),"g");s=s.replace(o,".".concat(n,"-")).replace(c,"--".concat(n,"-")).replace(u,".".concat(r))}return s}var nH=function(){function e(){bU(this,e),this.definitions={}}return SU(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,s=new Array(r),o=0;o1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:p_(t||{}),s=n.mask;return s&&(s=(s||{}).icon?s:p_(s||{})),e(r,He({},n,{mask:s}))}}var ww=new nH,m_=!1,th={transform:function(t){return JU(t)}},sH=aH(function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.transform,r=n===void 0?La:n,s=t.symbol,o=s===void 0?!1:s,c=t.mask,u=c===void 0?null:c,i=t.maskId,a=i===void 0?null:i,l=t.title,d=l===void 0?null:l,p=t.titleId,v=p===void 0?null:p,g=t.classes,_=g===void 0?[]:g,b=t.attributes,C=b===void 0?{}:b,T=t.styles,$=T===void 0?{}:T;if(!!e){var L=e.prefix,D=e.iconName,F=e.icon;return rH(He({type:"icon"},e),function(){return iH(),ln.autoA11y&&(d?C["aria-labelledby"]="".concat(ln.replacementClass,"-title-").concat(v||pl()):(C["aria-hidden"]="true",C.focusable="false")),XU({icons:{main:h_(F),mask:u?h_(u.icon):{found:!1,width:null,height:null,icon:{}}},prefix:L,iconName:D,transform:He({},La,r),symbol:o,title:d,maskId:a,titleId:v,extra:{attributes:C,styles:$,classes:_}})})}});/*! + * Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com + * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) + */var oH={prefix:"fas",iconName:"arrow-left",icon:[448,512,[],"f060","M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"]},uH={prefix:"fas",iconName:"camera",icon:[512,512,[],"f030","M512 144v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V144c0-26.5 21.5-48 48-48h88l12.3-32.9c7-18.7 24.9-31.1 44.9-31.1h125.5c20 0 37.9 12.4 44.9 31.1L376 96h88c26.5 0 48 21.5 48 48zM376 288c0-66.2-53.8-120-120-120s-120 53.8-120 120 53.8 120 120 120 120-53.8 120-120zm-32 0c0 48.5-39.5 88-88 88s-88-39.5-88-88 39.5-88 88-88 88 39.5 88 88z"]},lH={prefix:"fas",iconName:"check",icon:[512,512,[],"f00c","M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"]},cH={prefix:"fas",iconName:"exclamation-circle",icon:[512,512,[],"f06a","M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"]},fH={prefix:"fas",iconName:"grin-stars",icon:[496,512,[],"f587","M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM94.6 168.9l34.9-5 15.5-31.6c2.9-5.8 11-5.8 13.9 0l15.5 31.6 34.9 5c6.2 1 8.9 8.6 4.3 13.2l-25.4 24.6 6 34.9c1 6.2-5.3 11-11 7.9L152 233.3l-31.3 16.3c-5.7 3.1-12-1.7-11-7.9l6-34.9-25.4-24.6c-4.6-4.7-1.9-12.3 4.3-13.3zM248 432c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.3-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.5-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3zm157.7-249.9l-25.4 24.6 6 34.9c1 6.2-5.3 11-11 7.9L344 233.3l-31.3 16.3c-5.7 3.1-12-1.7-11-7.9l6-34.9-25.4-24.6c-4.5-4.6-1.9-12.2 4.3-13.2l34.9-5 15.5-31.6c2.9-5.8 11-5.8 13.9 0l15.5 31.6 34.9 5c6.3.9 9 8.5 4.4 13.1z"]},dH={prefix:"fas",iconName:"microphone",icon:[352,512,[],"f130","M176 352c53.02 0 96-42.98 96-96V96c0-53.02-42.98-96-96-96S80 42.98 80 96v160c0 53.02 42.98 96 96 96zm160-160h-16c-8.84 0-16 7.16-16 16v48c0 74.8-64.49 134.82-140.79 127.38C96.71 376.89 48 317.11 48 250.3V208c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v40.16c0 89.64 63.97 169.55 152 181.69V464H96c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16h-56v-33.77C285.71 418.47 352 344.9 352 256v-48c0-8.84-7.16-16-16-16z"]},hH={prefix:"fas",iconName:"object-group",icon:[512,512,[],"f247","M480 128V96h20c6.627 0 12-5.373 12-12V44c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v20H64V44c0-6.627-5.373-12-12-12H12C5.373 32 0 37.373 0 44v40c0 6.627 5.373 12 12 12h20v320H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-20h384v20c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-20V128zM96 276V140c0-6.627 5.373-12 12-12h168c6.627 0 12 5.373 12 12v136c0 6.627-5.373 12-12 12H108c-6.627 0-12-5.373-12-12zm320 96c0 6.627-5.373 12-12 12H236c-6.627 0-12-5.373-12-12v-52h72c13.255 0 24-10.745 24-24v-72h84c6.627 0 12 5.373 12 12v136z"]};function v_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function ni(e){for(var t=1;t=0)&&(n[s]=e[s]);return n}function mH(e,t){if(e==null)return{};var n=pH(e,t),r,s;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(s=0;s=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}var vH=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Cw={exports:{}};(function(e){(function(t){var n=function(C,T,$){if(!a(T)||d(T)||p(T)||v(T)||i(T))return T;var L,D=0,F=0;if(l(T))for(L=[],F=T.length;D2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=(t.children||[]).map(xw.bind(null,e)),o=Object.keys(t.attributes||{}).reduce(function(v,g){var _=t.attributes[g];switch(g){case"class":v.class=bH(_);break;case"style":v.style=_H(_);break;default:v.attrs[g]=_}return v},{class:{},style:{},attrs:{}}),c=r.class,u=c===void 0?{}:c,i=r.style,a=i===void 0?{}:i,l=r.attrs,d=l===void 0?{}:l,p=mH(r,yH);return typeof t=="string"?t:e(t.tag,ni(ni({class:SH(o.class,u),style:ni(ni({},o.style),a),attrs:ni(ni({},o.attrs),d)},p),{},{props:n}),s)}var Tw=!1;try{Tw=!0}catch{}function wH(){if(!Tw&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function nd(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?ki({},e,t):{}}function CH(e){var t,n=(t={"fa-spin":e.spin,"fa-spin-pulse":e.spinPulse,"fa-spin-reverse":e.spinReverse,"fa-pulse":e.pulse,"fa-beat":e.beat,"fa-fade":e.fade,"fa-flash":e.flash,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":e.flip===!0,"fa-flip-horizontal":e.flip==="horizontal"||e.flip==="both","fa-flip-vertical":e.flip==="vertical"||e.flip==="both"},ki(t,"fa-".concat(e.size),e.size!==null),ki(t,"fa-rotate-".concat(e.rotation),e.rotation!==null),ki(t,"fa-pull-".concat(e.pull),e.pull!==null),ki(t,"fa-swap-opacity",e.swapOpacity),ki(t,"fa-bounce",e.bounce),ki(t,"fa-shake",e.shake),ki(t,"fa-beat-fade",e.beatFade),t);return Object.keys(n).map(function(r){return n[r]?r:null}).filter(function(r){return r})}function g_(e){if(e&&ml(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(th.icon)return th.icon(e);if(e===null)return null;if(ml(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}var xH={name:"FontAwesomeIcon",functional:!0,props:{beat:{type:Boolean,default:!1},border:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(t){return[!0,!1,"horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(parseInt(t,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1}},render:function(t,n){var r=n.props,s=r.icon,o=r.mask,c=r.symbol,u=r.title,i=g_(s),a=nd("classes",CH(r)),l=nd("transform",typeof r.transform=="string"?th.transform(r.transform):r.transform),d=nd("mask",g_(o)),p=sH(i,ni(ni(ni(ni({},a),l),d),{},{symbol:c,title:u}));if(!p)return wH("Could not find one or more icon(s)",i,d);var v=p.abstract,g=xw.bind(null,t);return g(v[0],{},n.data)}};const TH="modulepreload",y_={},AH="/anyonecancode/",PH=function(t,n){return!n||n.length===0?t():Promise.all(n.map(r=>{if(r=`${AH}${r}`,r in y_)return;y_[r]=!0;const s=r.endsWith(".css"),o=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${o}`))return;const c=document.createElement("link");if(c.rel=s?"stylesheet":TH,s||(c.as="script",c.crossOrigin=""),c.href=r,document.head.appendChild(c),s)return new Promise((u,i)=>{c.addEventListener("load",u),c.addEventListener("error",()=>i(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t())};/*! + * vue-router v3.6.5 + * (c) 2022 Evan You + * @license MIT + */function Bn(e,t){for(var n in t)e[n]=t[n];return e}var OH=/[!'()*]/g,kH=function(e){return"%"+e.charCodeAt(0).toString(16)},$H=/%2C/g,Ma=function(e){return encodeURIComponent(e).replace(OH,kH).replace($H,",")};function nh(e){try{return decodeURIComponent(e)}catch{}return e}function EH(e,t,n){t===void 0&&(t={});var r=n||MH,s;try{s=r(e||"")}catch{s={}}for(var o in t){var c=t[o];s[o]=Array.isArray(c)?c.map(__):__(c)}return s}var __=function(e){return e==null||typeof e=="object"?e:String(e)};function MH(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e&&e.split("&").forEach(function(n){var r=n.replace(/\+/g," ").split("="),s=nh(r.shift()),o=r.length>0?nh(r.join("=")):null;t[s]===void 0?t[s]=o:Array.isArray(t[s])?t[s].push(o):t[s]=[t[s],o]}),t}function RH(e){var t=e?Object.keys(e).map(function(n){var r=e[n];if(r===void 0)return"";if(r===null)return Ma(n);if(Array.isArray(r)){var s=[];return r.forEach(function(o){o!==void 0&&(o===null?s.push(Ma(n)):s.push(Ma(n)+"="+Ma(o)))}),s.join("&")}return Ma(n)+"="+Ma(r)}).filter(function(n){return n.length>0}).join("&"):null;return t?"?"+t:""}var vl=/\/?$/;function gl(e,t,n,r){var s=r&&r.options.stringifyQuery,o=t.query||{};try{o=ih(o)}catch{}var c={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:o,params:t.params||{},fullPath:b_(t,s),matched:e?DH(e):[]};return n&&(c.redirectedFrom=b_(n,s)),Object.freeze(c)}function ih(e){if(Array.isArray(e))return e.map(ih);if(e&&typeof e=="object"){var t={};for(var n in e)t[n]=ih(e[n]);return t}else return e}var br=gl(null,{path:"/"});function DH(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function b_(e,t){var n=e.path,r=e.query;r===void 0&&(r={});var s=e.hash;s===void 0&&(s="");var o=t||RH;return(n||"/")+o(r)+s}function Aw(e,t,n){return t===br?e===t:t?e.path&&t.path?e.path.replace(vl,"")===t.path.replace(vl,"")&&(n||e.hash===t.hash&&Lu(e.query,t.query)):e.name&&t.name?e.name===t.name&&(n||e.hash===t.hash&&Lu(e.query,t.query)&&Lu(e.params,t.params)):!1:!1}function Lu(e,t){if(e===void 0&&(e={}),t===void 0&&(t={}),!e||!t)return e===t;var n=Object.keys(e).sort(),r=Object.keys(t).sort();return n.length!==r.length?!1:n.every(function(s,o){var c=e[s],u=r[o];if(u!==s)return!1;var i=t[s];return c==null||i==null?c===i:typeof c=="object"&&typeof i=="object"?Lu(c,i):String(c)===String(i)})}function IH(e,t){return e.path.replace(vl,"/").indexOf(t.path.replace(vl,"/"))===0&&(!t.hash||e.hash===t.hash)&&NH(e.query,t.query)}function NH(e,t){for(var n in t)if(!(n in e))return!1;return!0}function Pw(e){for(var t=0;t=0&&(t=e.slice(r),e=e.slice(0,r));var s=e.indexOf("?");return s>=0&&(n=e.slice(s+1),e=e.slice(0,s)),{path:e,query:n,hash:t}}function cr(e){return e.replace(/\/(?:\s*\/)+/g,"/")}var yl=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"},es=Ew,zH=bp,jH=HH,qH=kw,VH=$w,UH=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function bp(e,t){for(var n=[],r=0,s=0,o="",c=t&&t.delimiter||"/",u;(u=UH.exec(e))!=null;){var i=u[0],a=u[1],l=u.index;if(o+=e.slice(s,l),s=l+i.length,a){o+=a[1];continue}var d=e[s],p=u[2],v=u[3],g=u[4],_=u[5],b=u[6],C=u[7];o&&(n.push(o),o="");var T=p!=null&&d!=null&&d!==p,$=b==="+"||b==="*",L=b==="?"||b==="*",D=u[2]||c,F=g||_;n.push({name:v||r++,prefix:p||"",delimiter:D,optional:L,repeat:$,partial:T,asterisk:!!C,pattern:F?YH(F):C?".*":"[^"+Bu(D)+"]+?"})}return s1||!D.length)return D.length===0?t():t("span",{},D)}if(this.tag==="a")L.on=$,L.attrs={href:i,"aria-current":C};else{var F=Mw(this.$slots.default);if(F){F.isStatic=!1;var P=F.data=Bn({},F.data);P.on=P.on||{};for(var j in P.on){var V=P.on[j];j in $&&(P.on[j]=Array.isArray(V)?V:[V])}for(var H in $)H in P.on?P.on[H].push($[H]):P.on[H]=T;var X=F.data.attrs=Bn({},F.data.attrs);X.href=i,X["aria-current"]=C}else L.on=$}return t(this.tag,L,this.$slots.default)}};function x_(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){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Mw(e){if(e){for(var t,n=0;n-1&&(b.params[L]=g.params[L]);return b.path=zu(T.path,b.params),p(T,b,_)}else if(b.path){b.params={};for(var D=0;D-1}function Wl(e,t){return Sl(e)&&e._isRouter&&(t==null||e.type===t)}function $_(e,t,n){var r=function(s){s>=e.length?n():e[s]?t(e[s],function(){r(s+1)}):r(s+1)};r(0)}function v9(e){return function(t,n,r){var s=!1,o=0,c=null;Bw(e,function(u,i,a,l){if(typeof u=="function"&&u.cid===void 0){s=!0,o++;var d=E_(function(_){y9(_)&&(_=_.default),u.resolved=typeof _=="function"?_:_l.extend(_),a.components[l]=_,o--,o<=0&&r()}),p=E_(function(_){var b="Failed to resolve async component "+l+": "+_;c||(c=Sl(_)?_:new Error(b),r(c))}),v;try{v=u(d,p)}catch(_){p(_)}if(v)if(typeof v.then=="function")v.then(d,p);else{var g=v.component;g&&typeof g.then=="function"&&g.then(d,p)}}}),s||r()}}function Bw(e,t){return zw(e.map(function(n){return Object.keys(n.components).map(function(r){return t(n.components[r],n.instances[r],n,r)})}))}function zw(e){return Array.prototype.concat.apply([],e)}var g9=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function y9(e){return e.__esModule||g9&&e[Symbol.toStringTag]==="Module"}function E_(e){var t=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!t)return t=!0,e.apply(this,n)}}var Yn=function(t,n){this.router=t,this.base=_9(n),this.current=br,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};Yn.prototype.listen=function(t){this.cb=t};Yn.prototype.onReady=function(t,n){this.ready?t():(this.readyCbs.push(t),n&&this.readyErrorCbs.push(n))};Yn.prototype.onError=function(t){this.errorCbs.push(t)};Yn.prototype.transitionTo=function(t,n,r){var s=this,o;try{o=this.router.match(t,this.current)}catch(u){throw this.errorCbs.forEach(function(i){i(u)}),u}var c=this.current;this.confirmTransition(o,function(){s.updateRoute(o),n&&n(o),s.ensureURL(),s.router.afterHooks.forEach(function(u){u&&u(o,c)}),s.ready||(s.ready=!0,s.readyCbs.forEach(function(u){u(o)}))},function(u){r&&r(u),u&&!s.ready&&(!Wl(u,ia.redirected)||c!==br)&&(s.ready=!0,s.readyErrorCbs.forEach(function(i){i(u)}))})};Yn.prototype.confirmTransition=function(t,n,r){var s=this,o=this.current;this.pending=t;var c=function(_){!Wl(_)&&Sl(_)&&(s.errorCbs.length?s.errorCbs.forEach(function(b){b(_)}):console.error(_)),r&&r(_)},u=t.matched.length-1,i=o.matched.length-1;if(Aw(t,o)&&u===i&&t.matched[u]===o.matched[i])return this.ensureURL(),t.hash&&fr(this.router,o,t,!1),c(d9(o,t));var a=b9(this.current.matched,t.matched),l=a.updated,d=a.deactivated,p=a.activated,v=[].concat(w9(d),this.router.beforeHooks,C9(l),p.map(function(_){return _.beforeEnter}),v9(p)),g=function(_,b){if(s.pending!==t)return c(k_(o,t));try{_(t,o,function(C){C===!1?(s.ensureURL(!0),c(h9(o,t))):Sl(C)?(s.ensureURL(!0),c(C)):typeof C=="string"||typeof C=="object"&&(typeof C.path=="string"||typeof C.name=="string")?(c(f9(o,t)),typeof C=="object"&&C.replace?s.replace(C):s.push(C)):b(C)})}catch(C){c(C)}};$_(v,g,function(){var _=x9(p),b=_.concat(s.router.resolveHooks);$_(b,g,function(){if(s.pending!==t)return c(k_(o,t));s.pending=null,n(t),s.router.app&&s.router.app.$nextTick(function(){Pw(t)})})})};Yn.prototype.updateRoute=function(t){this.current=t,this.cb&&this.cb(t)};Yn.prototype.setupListeners=function(){};Yn.prototype.teardown=function(){this.listeners.forEach(function(t){t()}),this.listeners=[],this.current=br,this.pending=null};function _9(e){if(!e)if(oo){var t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return e.charAt(0)!=="/"&&(e="/"+e),e.replace(/\/$/,"")}function b9(e,t){var n,r=Math.max(e.length,t.length);for(n=0;n0)){var s=this.router,o=s.options.scrollBehavior,c=dr&&o;c&&this.listeners.push(Fw());var u=function(){var i=r.current,a=$s(r.base);r.current===br&&a===r._startLocation||r.transitionTo(a,function(l){c&&fr(s,l,i,!0)})};window.addEventListener("popstate",u),this.listeners.push(function(){window.removeEventListener("popstate",u)})}},t.prototype.go=function(r){window.history.go(r)},t.prototype.push=function(r,s,o){var c=this,u=this,i=u.current;this.transitionTo(r,function(a){bl(cr(c.base+a.fullPath)),fr(c.router,a,i,!1),s&&s(a)},o)},t.prototype.replace=function(r,s,o){var c=this,u=this,i=u.current;this.transitionTo(r,function(a){sh(cr(c.base+a.fullPath)),fr(c.router,a,i,!1),s&&s(a)},o)},t.prototype.ensureURL=function(r){if($s(this.base)!==this.current.fullPath){var s=cr(this.base+this.current.fullPath);r?bl(s):sh(s)}},t.prototype.getCurrentLocation=function(){return $s(this.base)},t}(Yn);function $s(e){var t=window.location.pathname,n=t.toLowerCase(),r=e.toLowerCase();return e&&(n===r||n.indexOf(cr(r+"/"))===0)&&(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var Vw=function(e){function t(n,r,s){e.call(this,n,r),!(s&&A9(this.base))&&M_()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var r=this;if(!(this.listeners.length>0)){var s=this.router,o=s.options.scrollBehavior,c=dr&&o;c&&this.listeners.push(Fw());var u=function(){var a=r.current;!M_()||r.transitionTo(ju(),function(l){c&&fr(r.router,l,a,!0),dr||qu(l.fullPath)})},i=dr?"popstate":"hashchange";window.addEventListener(i,u),this.listeners.push(function(){window.removeEventListener(i,u)})}},t.prototype.push=function(r,s,o){var c=this,u=this,i=u.current;this.transitionTo(r,function(a){R_(a.fullPath),fr(c.router,a,i,!1),s&&s(a)},o)},t.prototype.replace=function(r,s,o){var c=this,u=this,i=u.current;this.transitionTo(r,function(a){qu(a.fullPath),fr(c.router,a,i,!1),s&&s(a)},o)},t.prototype.go=function(r){window.history.go(r)},t.prototype.ensureURL=function(r){var s=this.current.fullPath;ju()!==s&&(r?R_(s):qu(s))},t.prototype.getCurrentLocation=function(){return ju()},t}(Yn);function A9(e){var t=$s(e);if(!/^\/#/.test(t))return window.location.replace(cr(e+"/#"+t)),!0}function M_(){var e=ju();return e.charAt(0)==="/"?!0:(qu("/"+e),!1)}function ju(){var e=window.location.href,t=e.indexOf("#");return t<0?"":(e=e.slice(t+1),e)}function oh(e){var t=window.location.href,n=t.indexOf("#"),r=n>=0?t.slice(0,n):t;return r+"#"+e}function R_(e){dr?bl(oh(e)):window.location.hash=e}function qu(e){dr?sh(oh(e)):window.location.replace(oh(e))}var P9=function(e){function t(n,r){e.call(this,n,r),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(r,s,o){var c=this;this.transitionTo(r,function(u){c.stack=c.stack.slice(0,c.index+1).concat(u),c.index++,s&&s(u)},o)},t.prototype.replace=function(r,s,o){var c=this;this.transitionTo(r,function(u){c.stack=c.stack.slice(0,c.index).concat(u),s&&s(u)},o)},t.prototype.go=function(r){var s=this,o=this.index+r;if(!(o<0||o>=this.stack.length)){var c=this.stack[o];this.confirmTransition(c,function(){var u=s.current;s.index=o,s.updateRoute(c),s.router.afterHooks.forEach(function(i){i&&i(c,u)})},function(u){Wl(u,ia.duplicated)&&(s.index=o)})}},t.prototype.getCurrentLocation=function(){var r=this.stack[this.stack.length-1];return r?r.fullPath:"/"},t.prototype.ensureURL=function(){},t}(Yn),tt=function(t){t===void 0&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=i9(t.routes||[],this);var n=t.mode||"hash";switch(this.fallback=n==="history"&&!dr&&t.fallback!==!1,this.fallback&&(n="hash"),oo||(n="abstract"),this.mode=n,n){case"history":this.history=new qw(this,t.base);break;case"hash":this.history=new Vw(this,t.base,this.fallback);break;case"abstract":this.history=new P9(this,t.base);break}},Uw={currentRoute:{configurable:!0}};tt.prototype.match=function(t,n,r){return this.matcher.match(t,n,r)};Uw.currentRoute.get=function(){return this.history&&this.history.current};tt.prototype.init=function(t){var n=this;if(this.apps.push(t),t.$once("hook:destroyed",function(){var c=n.apps.indexOf(t);c>-1&&n.apps.splice(c,1),n.app===t&&(n.app=n.apps[0]||null),n.app||n.history.teardown()}),!this.app){this.app=t;var r=this.history;if(r instanceof qw||r instanceof Vw){var s=function(c){var u=r.current,i=n.options.scrollBehavior,a=dr&&i;a&&"fullPath"in c&&fr(n,c,u,!1)},o=function(c){r.setupListeners(),s(c)};r.transitionTo(r.getCurrentLocation(),o,o)}r.listen(function(c){n.apps.forEach(function(u){u._route=c})})}};tt.prototype.beforeEach=function(t){return Tp(this.beforeHooks,t)};tt.prototype.beforeResolve=function(t){return Tp(this.resolveHooks,t)};tt.prototype.afterEach=function(t){return Tp(this.afterHooks,t)};tt.prototype.onReady=function(t,n){this.history.onReady(t,n)};tt.prototype.onError=function(t){this.history.onError(t)};tt.prototype.push=function(t,n,r){var s=this;if(!n&&!r&&typeof Promise!="undefined")return new Promise(function(o,c){s.history.push(t,o,c)});this.history.push(t,n,r)};tt.prototype.replace=function(t,n,r){var s=this;if(!n&&!r&&typeof Promise!="undefined")return new Promise(function(o,c){s.history.replace(t,o,c)});this.history.replace(t,n,r)};tt.prototype.go=function(t){this.history.go(t)};tt.prototype.back=function(){this.go(-1)};tt.prototype.forward=function(){this.go(1)};tt.prototype.getMatchedComponents=function(t){var n=t?t.matched?t:this.resolve(t).route:this.currentRoute;return n?[].concat.apply([],n.matched.map(function(r){return Object.keys(r.components).map(function(s){return r.components[s]})})):[]};tt.prototype.resolve=function(t,n,r){n=n||this.history.current;var s=Cp(t,n,r,this),o=this.match(s,n),c=o.redirectedFrom||o.fullPath,u=this.history.base,i=O9(u,c,this.mode);return{location:s,route:o,href:i,normalizedTo:s,resolved:o}};tt.prototype.getRoutes=function(){return this.matcher.getRoutes()};tt.prototype.addRoute=function(t,n){this.matcher.addRoute(t,n),this.history.current!==br&&this.history.transitionTo(this.history.getCurrentLocation())};tt.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==br&&this.history.transitionTo(this.history.getCurrentLocation())};Object.defineProperties(tt.prototype,Uw);var Hw=tt;function Tp(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function O9(e,t,n){var r=n==="hash"?"#"+t:t;return e?cr(e+"/"+r):r}tt.install=rh;tt.version="3.6.5";tt.isNavigationFailure=Wl;tt.NavigationFailureType=ia;tt.START_LOCATION=br;oo&&window.Vue&&window.Vue.use(tt);var Ww={exports:{}};(function(e){e.exports=function(t){var n={};function r(s){if(n[s])return n[s].exports;var o=n[s]={i:s,l:!1,exports:{}};return t[s].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=n,r.d=function(s,o,c){r.o(s,o)||Object.defineProperty(s,o,{enumerable:!0,get:c})},r.r=function(s){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},r.t=function(s,o){if(o&1&&(s=r(s)),o&8||o&4&&typeof s=="object"&&s&&s.__esModule)return s;var c=Object.create(null);if(r.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:s}),o&2&&typeof s!="string")for(var u in s)r.d(c,u,function(i){return s[i]}.bind(null,u));return c},r.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return r.d(o,"a",o),o},r.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},r.p="",r(r.s="fb15")}({"02f4":function(t,n,r){var s=r("4588"),o=r("be13");t.exports=function(c){return function(u,i){var a=String(o(u)),l=s(i),d=a.length,p,v;return l<0||l>=d?c?"":void 0:(p=a.charCodeAt(l),p<55296||p>56319||l+1===d||(v=a.charCodeAt(l+1))<56320||v>57343?c?a.charAt(l):p:c?a.slice(l,l+2):(p-55296<<10)+(v-56320)+65536)}}},"0390":function(t,n,r){var s=r("02f4")(!0);t.exports=function(o,c,u){return c+(u?s(o,c).length:1)}},"0bfb":function(t,n,r){var s=r("cb7c");t.exports=function(){var o=s(this),c="";return o.global&&(c+="g"),o.ignoreCase&&(c+="i"),o.multiline&&(c+="m"),o.unicode&&(c+="u"),o.sticky&&(c+="y"),c}},"0d58":function(t,n,r){var s=r("ce10"),o=r("e11e");t.exports=Object.keys||function(u){return s(u,o)}},"11e9":function(t,n,r){var s=r("52a7"),o=r("4630"),c=r("6821"),u=r("6a99"),i=r("69a8"),a=r("c69a"),l=Object.getOwnPropertyDescriptor;n.f=r("9e1e")?l:function(p,v){if(p=c(p),v=u(v,!0),a)try{return l(p,v)}catch{}if(i(p,v))return o(!s.f.call(p,v),p[v])}},1495:function(t,n,r){var s=r("86cc"),o=r("cb7c"),c=r("0d58");t.exports=r("9e1e")?Object.defineProperties:function(i,a){o(i);for(var l=c(a),d=l.length,p=0,v;d>p;)s.f(i,v=l[p++],a[v]);return i}},"214f":function(t,n,r){r("b0c5");var s=r("2aba"),o=r("32e9"),c=r("79e5"),u=r("be13"),i=r("2b4c"),a=r("520a"),l=i("species"),d=!c(function(){var v=/./;return v.exec=function(){var g=[];return g.groups={a:"7"},g},"".replace(v,"$")!=="7"}),p=function(){var v=/(?:)/,g=v.exec;v.exec=function(){return g.apply(this,arguments)};var _="ab".split(v);return _.length===2&&_[0]==="a"&&_[1]==="b"}();t.exports=function(v,g,_){var b=i(v),C=!c(function(){var P={};return P[b]=function(){return 7},""[v](P)!=7}),T=C?!c(function(){var P=!1,j=/a/;return j.exec=function(){return P=!0,null},v==="split"&&(j.constructor={},j.constructor[l]=function(){return j}),j[b](""),!P}):void 0;if(!C||!T||v==="replace"&&!d||v==="split"&&!p){var $=/./[b],L=_(u,b,""[v],function(j,V,H,X,k){return V.exec===a?C&&!k?{done:!0,value:$.call(V,H,X)}:{done:!0,value:j.call(H,V,X)}:{done:!1}}),D=L[0],F=L[1];s(String.prototype,v,D),o(RegExp.prototype,b,g==2?function(P,j){return F.call(P,this,j)}:function(P){return F.call(P,this)})}}},"230e":function(t,n,r){var s=r("d3f4"),o=r("7726").document,c=s(o)&&s(o.createElement);t.exports=function(u){return c?o.createElement(u):{}}},"23c6":function(t,n,r){var s=r("2d95"),o=r("2b4c")("toStringTag"),c=s(function(){return arguments}())=="Arguments",u=function(i,a){try{return i[a]}catch{}};t.exports=function(i){var a,l,d;return i===void 0?"Undefined":i===null?"Null":typeof(l=u(a=Object(i),o))=="string"?l:c?s(a):(d=s(a))=="Object"&&typeof a.callee=="function"?"Arguments":d}},"2aba":function(t,n,r){var s=r("7726"),o=r("32e9"),c=r("69a8"),u=r("ca5a")("src"),i=r("fa5b"),a="toString",l=(""+i).split(a);r("8378").inspectSource=function(d){return i.call(d)},(t.exports=function(d,p,v,g){var _=typeof v=="function";_&&(c(v,"name")||o(v,"name",p)),d[p]!==v&&(_&&(c(v,u)||o(v,u,d[p]?""+d[p]:l.join(String(p)))),d===s?d[p]=v:g?d[p]?d[p]=v:o(d,p,v):(delete d[p],o(d,p,v)))})(Function.prototype,a,function(){return typeof this=="function"&&this[u]||i.call(this)})},"2aeb":function(t,n,r){var s=r("cb7c"),o=r("1495"),c=r("e11e"),u=r("613b")("IE_PROTO"),i=function(){},a="prototype",l=function(){var d=r("230e")("iframe"),p=c.length,v="<",g=">",_;for(d.style.display="none",r("fab2").appendChild(d),d.src="javascript:",_=d.contentWindow.document,_.open(),_.write(v+"script"+g+"document.F=Object"+v+"/script"+g),_.close(),l=_.F;p--;)delete l[a][c[p]];return l()};t.exports=Object.create||function(p,v){var g;return p!==null?(i[a]=s(p),g=new i,i[a]=null,g[u]=p):g=l(),v===void 0?g:o(g,v)}},"2b4c":function(t,n,r){var s=r("5537")("wks"),o=r("ca5a"),c=r("7726").Symbol,u=typeof c=="function",i=t.exports=function(a){return s[a]||(s[a]=u&&c[a]||(u?c:o)("Symbol."+a))};i.store=s},"2d00":function(t,n){t.exports=!1},"2d95":function(t,n){var r={}.toString;t.exports=function(s){return r.call(s).slice(8,-1)}},"32e9":function(t,n,r){var s=r("86cc"),o=r("4630");t.exports=r("9e1e")?function(c,u,i){return s.f(c,u,o(1,i))}:function(c,u,i){return c[u]=i,c}},3846:function(t,n,r){r("9e1e")&&/./g.flags!="g"&&r("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:r("0bfb")})},4588:function(t,n){var r=Math.ceil,s=Math.floor;t.exports=function(o){return isNaN(o=+o)?0:(o>0?s:r)(o)}},4630:function(t,n){t.exports=function(r,s){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:s}}},"4bf8":function(t,n,r){var s=r("be13");t.exports=function(o){return Object(s(o))}},"520a":function(t,n,r){var s=r("0bfb"),o=RegExp.prototype.exec,c=String.prototype.replace,u=o,i="lastIndex",a=function(){var p=/a/,v=/b*/g;return o.call(p,"a"),o.call(v,"a"),p[i]!==0||v[i]!==0}(),l=/()??/.exec("")[1]!==void 0,d=a||l;d&&(u=function(v){var g=this,_,b,C,T;return l&&(b=new RegExp("^"+g.source+"$(?!\\s)",s.call(g))),a&&(_=g[i]),C=o.call(g,v),a&&C&&(g[i]=g.global?C.index+C[0].length:_),l&&C&&C.length>1&&c.call(C[0],b,function(){for(T=1;T0?o(s(c),9007199254740991):0}},"9e1e":function(t,n,r){t.exports=!r("79e5")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},a481:function(t,n,r){var s=r("cb7c"),o=r("4bf8"),c=r("9def"),u=r("4588"),i=r("0390"),a=r("5f1b"),l=Math.max,d=Math.min,p=Math.floor,v=/\$([$&`']|\d\d?|<[^>]*>)/g,g=/\$([$&`']|\d\d?)/g,_=function(b){return b===void 0?b:String(b)};r("214f")("replace",2,function(b,C,T,$){return[function(F,P){var j=b(this),V=F==null?void 0:F[C];return V!==void 0?V.call(F,j,P):T.call(String(j),F,P)},function(D,F){var P=$(T,D,this,F);if(P.done)return P.value;var j=s(D),V=String(this),H=typeof F=="function";H||(F=String(F));var X=j.global;if(X){var k=j.unicode;j.lastIndex=0}for(var O=[];;){var I=a(j,V);if(I===null||(O.push(I),!X))break;var J=String(I[0]);J===""&&(j.lastIndex=i(V,c(j.lastIndex),k))}for(var ue="",le=0,ce=0;ce=le&&(ue+=V.slice(le,Y)+ie,le=Y+pe.length)}return ue+V.slice(le)}];function L(D,F,P,j,V,H){var X=P+D.length,k=j.length,O=g;return V!==void 0&&(V=o(V),O=v),T.call(H,O,function(I,J){var ue;switch(J.charAt(0)){case"$":return"$";case"&":return D;case"`":return F.slice(0,P);case"'":return F.slice(X);case"<":ue=V[J.slice(1,-1)];break;default:var le=+J;if(le===0)return I;if(le>k){var ce=p(le/10);return ce===0?I:ce<=k?j[ce-1]===void 0?J.charAt(1):j[ce-1]+J.charAt(1):I}ue=j[le-1]}return ue===void 0?"":ue})}})},aa77:function(t,n,r){var s=r("5ca1"),o=r("be13"),c=r("79e5"),u=r("fdef"),i="["+u+"]",a="\u200B\x85",l=RegExp("^"+i+i+"*"),d=RegExp(i+i+"*$"),p=function(g,_,b){var C={},T=c(function(){return!!u[g]()||a[g]()!=a}),$=C[g]=T?_(v):u[g];b&&(C[b]=$),s(s.P+s.F*T,"String",C)},v=p.trim=function(g,_){return g=String(o(g)),_&1&&(g=g.replace(l,"")),_&2&&(g=g.replace(d,"")),g};t.exports=p},b0c5:function(t,n,r){var s=r("520a");r("5ca1")({target:"RegExp",proto:!0,forced:s!==/./.exec},{exec:s})},be13:function(t,n){t.exports=function(r){if(r==null)throw TypeError("Can't call method on "+r);return r}},c366:function(t,n,r){var s=r("6821"),o=r("9def"),c=r("77f1");t.exports=function(u){return function(i,a,l){var d=s(i),p=o(d.length),v=c(l,p),g;if(u&&a!=a){for(;p>v;)if(g=d[v++],g!=g)return!0}else for(;p>v;v++)if((u||v in d)&&d[v]===a)return u||v||0;return!u&&-1}}},c5f6:function(t,n,r){var s=r("7726"),o=r("69a8"),c=r("2d95"),u=r("5dbc"),i=r("6a99"),a=r("79e5"),l=r("9093").f,d=r("11e9").f,p=r("86cc").f,v=r("aa77").trim,g="Number",_=s[g],b=_,C=_.prototype,T=c(r("2aeb")(C))==g,$="trim"in String.prototype,L=function(j){var V=i(j,!1);if(typeof V=="string"&&V.length>2){V=$?V.trim():v(V,3);var H=V.charCodeAt(0),X,k,O;if(H===43||H===45){if(X=V.charCodeAt(2),X===88||X===120)return NaN}else if(H===48){switch(V.charCodeAt(1)){case 66:case 98:k=2,O=49;break;case 79:case 111:k=8,O=55;break;default:return+V}for(var I=V.slice(2),J=0,ue=I.length,le;JO)return NaN;return parseInt(I,k)}}return+V};if(!_(" 0o1")||!_("0b1")||_("+0x1")){_=function(V){var H=arguments.length<1?0:V,X=this;return X instanceof _&&(T?a(function(){C.valueOf.call(X)}):c(X)!=g)?u(new b(L(H)),X,_):L(H)};for(var D=r("9e1e")?l(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),F=0,P;D.length>F;F++)o(b,P=D[F])&&!o(_,P)&&p(_,P,d(b,P));_.prototype=C,C.constructor=_,r("2aba")(s,g,_)}},c69a:function(t,n,r){t.exports=!r("9e1e")&&!r("79e5")(function(){return Object.defineProperty(r("230e")("div"),"a",{get:function(){return 7}}).a!=7})},ca5a:function(t,n){var r=0,s=Math.random();t.exports=function(o){return"Symbol(".concat(o===void 0?"":o,")_",(++r+s).toString(36))}},cb7c:function(t,n,r){var s=r("d3f4");t.exports=function(o){if(!s(o))throw TypeError(o+" is not an object!");return o}},ce10:function(t,n,r){var s=r("69a8"),o=r("6821"),c=r("c366")(!1),u=r("613b")("IE_PROTO");t.exports=function(i,a){var l=o(i),d=0,p=[],v;for(v in l)v!=u&&s(l,v)&&p.push(v);for(;a.length>d;)s(l,v=a[d++])&&(~c(p,v)||p.push(v));return p}},d3f4:function(t,n){t.exports=function(r){return typeof r=="object"?r!==null:typeof r=="function"}},d8e8:function(t,n){t.exports=function(r){if(typeof r!="function")throw TypeError(r+" is not a function!");return r}},e11e:function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f6fd:function(t,n){(function(r){var s="currentScript",o=r.getElementsByTagName("script");s in r||Object.defineProperty(r,s,{get:function(){try{throw new Error}catch(i){var c,u=(/.*at [^\(]*\((.*):.+:.+\)$/ig.exec(i.stack)||[!1])[1];for(c in o)if(o[c].src==u||o[c].readyState=="interactive")return o[c];return null}}})})(document)},fa5b:function(t,n,r){t.exports=r("5537")("native-function-to-string",Function.toString)},fab2:function(t,n,r){var s=r("7726").document;t.exports=s&&s.documentElement},fb15:function(t,n,r){if(r.r(n),typeof window!="undefined"){r("f6fd");var s;(s=window.document.currentScript)&&(s=s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(r.p=s[1])}r("6b54"),r("a481"),r("c5f6");var o={componentName:"VuePageStack",keyName:"stack-key",pushName:"push",goName:"go",replaceName:"replace",backName:"back",forwardName:"forward"},c={action:o.pushName},u=c;function i(D){return D!=null}function a(D){return D.isComment&&D.asyncFactory}function l(D){if(Array.isArray(D))for(var F=0;F{for(var s=r>1?void 0:r?E9(t,n):t,o=e.length-1,c;o>=0;o--)(c=e[o])&&(s=(r?c(t,n,s):c(s))||s);return r&&s&&$9(t,n,s),s};let uh=class extends $e{};uh=M9([Wn({components:{Profile:D0,ImageList:M0,Navbar:I0}})],uh);var R9=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("b-navbar",{attrs:{"fixed-top":"","mobile-burger":!1},scopedSlots:e._u([{key:"brand",fn:function(){return[n("div",{attrs:{id:"left"}}),n("div",{attrs:{id:"right"}}),n("div",{attrs:{id:"top"}}),n("div",{attrs:{id:"bottom"}}),n("b-navbar-item",{staticClass:"title is-2",attrs:{id:"fontnavbar"}},[e._v(" Milligram2 ")])]},proxy:!0}])}),n("div",{staticClass:"container"},[n("Profile"),n("ImageList"),n("Navbar")],1)],1)},D9=[];const D_={};var I9=ui(uh,R9,D9,!1,N9,"958f4340",null,null);function N9(e){for(let t in D_)this[t]=D_[t]}var F9=function(){return I9.exports}(),L9=Object.defineProperty,B9=Object.getOwnPropertyDescriptor,Ap=(e,t,n,r)=>{for(var s=r>1?void 0:r?B9(t,n):t,o=e.length-1,c;o>=0;o--)(c=e[o])&&(s=(r?c(t,n,s):c(s))||s);return r&&s&&L9(t,n,s),s};function z9(){let e=()=>Math.floor((1+Math.random())*65536).toString(16).substring(1);return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`.toLowerCase()}let Ks=class extends $e{constructor(){super(...arguments),this.picture=""}onClose(){is.back()}savePicture(){this.camera.close(),fetch(this.picture).then(e=>e.blob()).then(e=>{const t=new File([e],`${z9()}.png`,{type:"image/png"});console.log(t);const n=new FormData;return n.append("file",t),Us.post(`${Hs}upload/`,n,{headers:{"Content-Type":"multipart/form-data"}}).then(()=>{this.$store.dispatch("refreshImageList")})})}};Ap([Zh()],Ks.prototype,"camera",2);Ap([Za("picture")],Ks.prototype,"savePicture",1);Ks=Ap([Wn({store:so})],Ks);var j9=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"camera"}},[n("EasyCamera",{ref:"camera",attrs:{fullscreen:""},on:{close:e.onClose},model:{value:e.picture,callback:function(r){e.picture=r},expression:"picture"}})],1)},q9=[];const I_={};var V9=ui(Ks,j9,q9,!1,U9,"5be432a2",null,null);function U9(e){for(let t in I_)this[t]=I_[t]}var H9=function(){return V9.exports}();function Tu(e){return e.toLowerCase()}function Gw(e){return!e||typeof e!="object"?!1:typeof e.rawHeaders=="function"&&typeof e.clone=="function"&&typeof e.get=="function"&&typeof e.set=="function"&&typeof e.contains=="function"&&typeof e.remove=="function"&&typeof e.headersArray=="function"&&typeof e.headerValues=="function"&&typeof e.headerNames=="function"&&typeof e.toJson=="function"}var Gl=function(){function e(t){if(this._headersMap={},t)for(var n in t)this.set(n,t[n])}return e.prototype.set=function(t,n){this._headersMap[Tu(t)]={name:t,value:n.toString()}},e.prototype.get=function(t){var n=this._headersMap[Tu(t)];return n?n.value:void 0},e.prototype.contains=function(t){return!!this._headersMap[Tu(t)]},e.prototype.remove=function(t){var n=this.contains(t);return delete this._headersMap[Tu(t)],n},e.prototype.rawHeaders=function(){var t={};for(var n in this._headersMap){var r=this._headersMap[n];t[r.name.toLowerCase()]=r.value}return t},e.prototype.headersArray=function(){var t=[];for(var n in this._headersMap)t.push(this._headersMap[n]);return t},e.prototype.headerNames=function(){for(var t=[],n=this.headersArray(),r=0;r1&&arguments[1]!==void 0?arguments[1]:0,n=(St[e[t+0]]+St[e[t+1]]+St[e[t+2]]+St[e[t+3]]+"-"+St[e[t+4]]+St[e[t+5]]+"-"+St[e[t+6]]+St[e[t+7]]+"-"+St[e[t+8]]+St[e[t+9]]+"-"+St[e[t+10]]+St[e[t+11]]+St[e[t+12]]+St[e[t+13]]+St[e[t+14]]+St[e[t+15]]).toLowerCase();if(!K9(n))throw TypeError("Stringified UUID is invalid");return n}function Xs(e,t,n){e=e||{};var r=e.random||(e.rng||G9)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var s=0;s<16;++s)t[n+s]=r[s];return t}return X9(r)}var Yl={msRestVersion:"2.6.4",HTTP:"http:",HTTPS:"https:",HTTP_PROXY:"HTTP_PROXY",HTTPS_PROXY:"HTTPS_PROXY",NO_PROXY:"NO_PROXY",ALL_PROXY:"ALL_PROXY",HttpConstants:{HttpVerbs:{PUT:"PUT",GET:"GET",DELETE:"DELETE",POST:"POST",MERGE:"MERGE",HEAD:"HEAD",PATCH:"PATCH"},StatusCodes:{TooManyRequests:429}},HeaderConstants:{AUTHORIZATION:"authorization",AUTHORIZATION_SCHEME:"Bearer",RETRY_AFTER:"Retry-After",USER_AGENT:"User-Agent"}};typeof process!="undefined"&&!!process.version&&!!process.versions&&process.versions.node;function N_(e){var t={};return t.body=e.bodyAsText,t.headers=e.headers,t.status=e.status,t}function F_(e){var t=e.clone();return t.headers&&t.headers.remove("authorization"),t}function Q9(e){var t=new RegExp("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","ig");return t.test(e)}function Kl(){return Xs()}function Xl(e,t){return new Promise(function(n){return setTimeout(function(){return n(t)},e)})}function Z9(e,t){var n;return Array.isArray(e)||(e=[e]),n={},n[t]=e,n}var J9=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function e7(e){return J9.test(e)}function Ps(e,t,n){return!e||!t?e:e.split(t).join(n||"")}function t7(e){return typeof e!="object"&&typeof e!="function"||e===null}var ci=function(){function e(t,n){t===void 0&&(t={}),this.modelMappers=t,this.isXML=n}return e.prototype.validateConstraints=function(t,n,r){var s=function(T,$){throw new Error('"'+r+'" with value "'+n+'" should satisfy the constraint "'+T+'": '+$+".")};if(t.constraints&&n!=null){var o=t.constraints,c=o.ExclusiveMaximum,u=o.ExclusiveMinimum,i=o.InclusiveMaximum,a=o.InclusiveMinimum,l=o.MaxItems,d=o.MaxLength,p=o.MinItems,v=o.MinLength,g=o.MultipleOf,_=o.Pattern,b=o.UniqueItems;if(c!=null&&n>=c&&s("ExclusiveMaximum",c),u!=null&&n<=u&&s("ExclusiveMinimum",u),i!=null&&n>i&&s("InclusiveMaximum",i),a!=null&&nl&&s("MaxItems",l),d!=null&&n.length>d&&s("MaxLength",d),p!=null&&n.length=0&&e[n-1]===t;)--n;return e.substr(0,n)}function i7(e){if(!!e){if(!(e instanceof Uint8Array))throw new Error("Please provide an input of type Uint8Array for converting to Base64Url.");var t=Yw(e);return n7(t,"=").replace(/\+/g,"-").replace(/\//g,"_")}}function r7(e){if(!!e){if(e&&typeof e.valueOf()!="string")throw new Error("Please provide an input of type string for converting to Uint8Array");return e=e.replace(/\-/g,"+").replace(/\_/g,"/"),Kw(e)}}function lh(e){var t=[],n="";if(e)for(var r=e.split("."),s=0,o=r;s0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]0)}function $i(e){return dh(e.parameterPath,e.mapper)}function dh(e,t){var n;return typeof e=="string"?n=e:Array.isArray(e)?n=e.join("."):n=t.serializedName,n}function Zw(e){var t=!1;for(var n in e.responses){var r=e.responses[n];if(r.bodyMapper&&r.bodyMapper.type.name===Qs.Stream){t=!0;break}}return t}var ad,sd,Jw=new DOMParser,Hr;try{typeof self.trustedTypes!="undefined"&&(Hr=self.trustedTypes.createPolicy("@azure/ms-rest-js#xml.browser",{createHTML:function(e){return e}}))}catch{console.warn('Could not create trusted types policy "@azure/ms-rest-js#xml.browser"')}function x7(e){var t;try{var n=Jw.parseFromString((t=Hr==null?void 0:Hr.createHTML(e))!==null&&t!==void 0?t:e,"application/xml");A7(n);var r=e1(n.childNodes[0]);return Promise.resolve(r)}catch(s){return Promise.reject(s)}}var hh="";try{var T7=(ad=Hr==null?void 0:Hr.createHTML("INVALID"))!==null&&ad!==void 0?ad:"INVALID";hh=(sd=Jw.parseFromString(T7,"text/xml").getElementsByTagName("parsererror")[0].namespaceURI)!==null&&sd!==void 0?sd:""}catch{}function A7(e){if(hh){var t=e.getElementsByTagNameNS(hh,"parsererror");if(t.length)throw new Error(t.item(0).innerHTML)}}function P7(e){return!!e.attributes}function O7(e){return P7(e)&&e.hasAttributes()?e:void 0}function e1(e){var t={},n=e.childNodes.length,r=e.childNodes[0],s=r&&n===1&&r.nodeType===Node.TEXT_NODE&&r.nodeValue||void 0,o=O7(e);if(o){t.$={};for(var c=0;c'+k7.serializeToString(r)}function $7(e){for(var t=[],n=0,r=Object.keys(e);n=200&&n.status<300);a.headersMapper&&(r.parsedHeaders=o.serializer.deserialize(a.headersMapper,r.headers.rawHeaders(),"operationRes.parsedHeaders"))}}else{var d=o.responses.default;if(d){var p=Zw(o)?"Unexpected status code: "+c:r.bodyAsText,v=new An(p);v.statusCode=c,v.request=F_(r.request),v.response=N_(r);var g=r.parsedBody;try{if(g){var _=d.bodyMapper;if(_&&_.serializedName==="CloudError")g.error&&(g=g.error),g.code&&(v.code=g.code),g.message&&(v.message=g.message);else{var b=g;g.error&&(b=g.error),v.code=b.code,b.message&&(v.message=b.message)}if(_){var C=g;o.isXML&&_.type.name===Qs.Sequence&&(C=typeof g=="object"?g[_.xmlElementName]:[]),v.body=o.serializer.deserialize(_,C,"error.body")}}}catch($){v.message='Error "'+$.message+'" occurred in deserializing the responseBody - "'+r.bodyAsText+'" for the default response.'}return Promise.reject(v)}}}}return Promise.resolve(r)})}function B7(e,t,n){var r=function(u){var i='Error "'+u+'" occurred while parsing the response body - '+n.bodyAsText+".",a=u.code||An.PARSE_ERROR,l=new An(i,a,n.status,n.request,n,n.bodyAsText);return Promise.reject(l)};if(!n.request.streamResponseBody&&n.bodyAsText){var s=n.bodyAsText,o=n.headers.get("Content-Type")||"",c=o?o.split(";").map(function(u){return u.toLowerCase()}):[];if(c.length===0||c.some(function(u){return e.indexOf(u)!==-1}))return new Promise(function(u){n.parsedBody=JSON.parse(s),u(n)}).catch(r);if(c.some(function(u){return t.indexOf(u)!==-1}))return x7(s).then(function(u){return n.parsedBody=u,n}).catch(r)}return Promise.resolve(n)}function z7(e,t,n,r){return{create:function(s,o){return new H7(s,o,e,t,n,r)}}}var j7=1e3*30,q7=3,V7=1e3*90,U7=1e3*3,H7=function(e){kt(t,e);function t(n,r,s,o,c,u){var i=e.call(this,n,r)||this;function a(l){return typeof l=="number"}return i.retryCount=a(s)?s:q7,i.retryInterval=a(o)?o:j7,i.minRetryInterval=a(c)?c:U7,i.maxRetryInterval=a(u)?u:V7,i}return t.prototype.sendRequest=function(n){var r=this;return this._nextPolicy.sendRequest(n.clone()).then(function(s){return Cl(r,n,s)}).catch(function(s){return Cl(r,n,s.response,void 0,s)})},t}(Kn);function W7(e,t,n){if(t==null||t<500&&t!==408||t===501||t===505)return!1;var r;if(n)r=n&&n.retryCount;else throw new Error("retryData for the ExponentialRetryPolicyFilter cannot be null.");return r0},e.prototype.set=function(t,n){if(t)if(n!=null){var r=Array.isArray(n)?n:n.toString();this._rawQuery[t]=r}else delete this._rawQuery[t]},e.prototype.get=function(t){return t?this._rawQuery[t]:void 0},e.prototype.toString=function(){var t="";for(var n in this._rawQuery){t&&(t+="&");var r=this._rawQuery[n];if(Array.isArray(r)){for(var s=[],o=0,c=r;o0)for(var s=this._requestPolicyFactories.length-1;s>=0;--s)r=this._requestPolicyFactories[s].create(r,this._requestPolicyOptions);return r.sendRequest(n)},e.prototype.sendOperationRequest=function(t,n,r){typeof t.options=="function"&&(r=t.options,t.options=void 0);var s=new B_,o;try{var c=n.baseUrl||this.baseUri;if(!c)throw new Error("If operationSpec.baseUrl is not specified, then the ServiceClient must have a baseUri string property that contains the base URL to use.");s.method=n.httpMethod,s.operationSpec=n;var u=n1.parse(c);if(n.path&&u.appendPath(n.path),n.urlParameters&&n.urlParameters.length>0)for(var i=0,a=n.urlParameters;i0)for(var p=0,v=n.queryParameters;p0){t.formData={};for(var p=0,v=r.formDataParameters;p0){if(r.isConstant)o=r.defaultValue;else{var c=U_(t,n);c.propertyFound||(c=U_(e,n));var u=!1;c.propertyFound||(u=r.required||n[0]==="options"&&n.length===2),o=u?r.defaultValue:c.propertyValue}var i=dh(n,r);s.serialize(r,o,i)}}else{r.required&&(o={});for(var a in n){var l=r.type.modelProperties[a],d=n[a],p=c1(e,t,d,l,s),v=dh(d,l);s.serialize(l,p,v),p!==void 0&&(o||(o={}),o[a]=p)}}return o}function U_(e,t){for(var n={propertyFound:!1},r=0;r{for(var s=r>1?void 0:r?WY(t,n):t,o=e.length-1,c;o>=0;o--)(c=e[o])&&(s=(r?c(t,n,s):c(s))||s);return r&&s&&HY(t,n,s),s};let yh=class extends $e{onBack(){is.back()}};yh=GY([Wn],yh);var YY=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("b-navbar",{attrs:{"fixed-top":"","mobile-burger":!1},scopedSlots:e._u([{key:"brand",fn:function(){return[n("div",{staticClass:"buttons container"},[n("b-button",{attrs:{rounded:"",type:"is-black"},on:{click:e.onBack}},[n("b-icon",{attrs:{type:"is-white",icon:"arrow-left",pack:"fas"}})],1)],1)]},proxy:!0}])})},KY=[];const H_={};var XY=ui(yh,YY,KY,!1,QY,"7e40c602",null,null);function QY(e){for(let t in H_)this[t]=H_[t]}var M1=function(){return XY.exports}(),ZY=Object.defineProperty,JY=Object.getOwnPropertyDescriptor,$p=(e,t,n,r)=>{for(var s=r>1?void 0:r?JY(t,n):t,o=e.length-1,c;o>=0;o--)(c=e[o])&&(s=(r?c(t,n,s):c(s))||s);return r&&s&&ZY(t,n,s),s};const eK=new f1({inHeader:{"Ocp-Apim-Subscription-Key":$0}}),W_=new UY(eK,WI);function Tn(e,t){return e>.5?t:""}let Zs=class extends $e{constructor(){super(...arguments),this.picture="",this.faceInterval=-1,this.faces=[],this.liveFaces=[],this.faceRect={width:92,height:92,left:301,top:149},this.useLiveFaceDetection=!0,this.liveFaceDetectionInverval=3e3,this.columns=[{field:"age",label:"Age"},{field:"emotion",label:"Emotion"},{field:"facialHair",label:"Facial Hair"},{field:"gender",label:"Gender"},{field:"smile",label:"Smile"},{field:"glasses",label:"Glasses"}]}onClose(){window.clearInterval(this.faceInterval),is.back()}created(){this.faceInterval=window.setInterval(()=>{let e=document.getElementById("ghostVideo"),t=e.getContext("2d"),n=document.querySelector("video"),r=0,s=0;const o=n;if(!(t==null||o==null))try{r=o.videoWidth,s=o.videoHeight,e.width=r,e.height=s,t.fillRect(0,0,r,s),t.drawImage(o,0,0,r,s);const u=e.toDataURL();t.clearRect(0,0,r,s);const i=document.getElementById("faceRect");i.width=r,i.height=s;var c=i.getContext("2d");c!=null&&(c.rect(this.faceRect.left,this.faceRect.top,this.faceRect.width,this.faceRect.height),c.stroke()),u!=="data:,"&&this.useLiveFaceDetection&&fetch(u).then(a=>a.blob()).then(a=>{W_.face.detectWithStream(a).then(l=>{this.liveFaces=l.map(d=>{this.faceRect=d.faceRectangle})})})}catch(u){console.log(u)}},this.liveFaceDetectionInverval)}savePicture(){this.camera.stop(),clearInterval(this.faceInterval),fetch(this.picture).then(e=>e.blob()).then(e=>{W_.face.detectWithStream(e,{returnFaceAttributes:["age","emotion","facialHair","smile","gender","glasses"]}).then(t=>{if(t.length==0){this.$confirm("The AI could not recognize your face, make sure the gray box covers most of your face.","AI Error","error").then(n=>{this.$router.go(0)}).catch(()=>{this.$router.push({name:"home"})});return}this.faces=t.map(n=>{const{age:r=0,emotion:{anger:s=0,contempt:o=0,disgust:c=0,fear:u=0,happiness:i=0,neutral:a=0,sadness:l=0,surprise:d=0}={},facialHair:{moustache:p=0,beard:v=0,sideburns:g=0}={},gender:_="",smile:b=0,glasses:C=""}={...n.faceAttributes};return{age:r,emotion:`${Tn(s,"anger")} ${Tn(o,"contempt")} ${Tn(c,"disgust")} ${Tn(u,"fear")} ${Tn(i,"happiness")} ${Tn(a,"neutral")} ${Tn(l,"sadness")} ${Tn(d,"surprise")}`,facialHair:`${Tn(p,"moustache")} ${Tn(v,"beard")} ${Tn(g,"sideburns")}`,gender:_,smile:`${Tn(b,"smile")}`,glasses:C}})}).catch(t=>{this.$alert("An error occurred while trying to connect to Face AI. Try again and ask your coach if the problem persists.","Face AI not available","warning").then(()=>this.$router.go(0)),console.log("An error occurred:"),console.error(t)})})}};$p([Zh()],Zs.prototype,"camera",2);$p([Za("picture")],Zs.prototype,"savePicture",1);Zs=$p([Wn({components:{NavBarBack:M1}})],Zs);var tK=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",[e.faces.length==0?n("div",[n("canvas",{staticStyle:{display:"none"},attrs:{id:"ghostVideo"}}),e._m(0),n("EasyCamera",{ref:"camera",attrs:{fullscreenZIndex:-1,fullscreen:""},on:{close:e.onClose},model:{value:e.picture,callback:function(r){e.picture=r},expression:"picture"}})],1):e._e(),e.faces.length>0?n("section",[n("NavBarBack"),n("b-tabs",[n("b-tab-item",{attrs:{label:"Results"}},[n("b-table",{attrs:{data:e.faces,columns:e.columns}})],1)],1)],1):e._e()])},nK=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"faceRectContainer"}},[n("canvas",{attrs:{id:"faceRect"}})])}];const G_={};var iK=ui(Zs,tK,nK,!1,rK,"0c838076",null,null);function rK(e){for(let t in G_)this[t]=G_[t]}var aK=function(){return iK.exports}(),sK={serializedName:"FaceRectangle",type:{name:"Composite",className:"FaceRectangle",modelProperties:{left:{nullable:!1,serializedName:"left",type:{name:"Number"}},top:{nullable:!1,serializedName:"top",type:{name:"Number"}},width:{nullable:!1,serializedName:"width",type:{name:"Number"}},height:{nullable:!1,serializedName:"height",type:{name:"Number"}}}}},oK={serializedName:"CelebritiesModel",type:{name:"Composite",className:"CelebritiesModel",modelProperties:{name:{nullable:!0,serializedName:"name",type:{name:"String"}},confidence:{nullable:!1,serializedName:"confidence",type:{name:"Number"}},faceRectangle:{serializedName:"faceRectangle",type:{name:"Composite",className:"FaceRectangle"}}}}},uK={serializedName:"LandmarksModel",type:{name:"Composite",className:"LandmarksModel",modelProperties:{name:{nullable:!0,serializedName:"name",type:{name:"String"}},confidence:{nullable:!1,serializedName:"confidence",type:{name:"Number"}}}}},lK={serializedName:"CategoryDetail",type:{name:"Composite",className:"CategoryDetail",modelProperties:{celebrities:{nullable:!0,serializedName:"celebrities",type:{name:"Sequence",element:{type:{name:"Composite",className:"CelebritiesModel"}}}},landmarks:{nullable:!0,serializedName:"landmarks",type:{name:"Sequence",element:{type:{name:"Composite",className:"LandmarksModel"}}}}}}},cK={serializedName:"Category",type:{name:"Composite",className:"Category",modelProperties:{name:{nullable:!0,serializedName:"name",type:{name:"String"}},score:{nullable:!1,serializedName:"score",type:{name:"Number"}},detail:{serializedName:"detail",type:{name:"Composite",className:"CategoryDetail"}}}}},fK={serializedName:"AdultInfo",type:{name:"Composite",className:"AdultInfo",modelProperties:{isAdultContent:{nullable:!1,serializedName:"isAdultContent",type:{name:"Boolean"}},isRacyContent:{nullable:!1,serializedName:"isRacyContent",type:{name:"Boolean"}},isGoryContent:{nullable:!1,serializedName:"isGoryContent",type:{name:"Boolean"}},adultScore:{nullable:!1,serializedName:"adultScore",type:{name:"Number"}},racyScore:{nullable:!1,serializedName:"racyScore",type:{name:"Number"}},goreScore:{nullable:!1,serializedName:"goreScore",type:{name:"Number"}}}}},dK={serializedName:"ColorInfo",type:{name:"Composite",className:"ColorInfo",modelProperties:{dominantColorForeground:{nullable:!0,serializedName:"dominantColorForeground",type:{name:"String"}},dominantColorBackground:{nullable:!0,serializedName:"dominantColorBackground",type:{name:"String"}},dominantColors:{nullable:!0,serializedName:"dominantColors",type:{name:"Sequence",element:{type:{name:"String"}}}},accentColor:{nullable:!0,serializedName:"accentColor",type:{name:"String"}},isBWImg:{nullable:!1,serializedName:"isBWImg",type:{name:"Boolean"}}}}},hK={serializedName:"ImageType",type:{name:"Composite",className:"ImageType",modelProperties:{clipArtType:{nullable:!1,serializedName:"clipArtType",type:{name:"Number"}},lineDrawingType:{nullable:!1,serializedName:"lineDrawingType",type:{name:"Number"}}}}},pK={serializedName:"ImageTag",type:{name:"Composite",className:"ImageTag",modelProperties:{name:{nullable:!0,serializedName:"name",type:{name:"String"}},confidence:{nullable:!1,serializedName:"confidence",type:{name:"Number"}},hint:{nullable:!0,serializedName:"hint",type:{name:"String"}}}}},mK={serializedName:"ImageCaption",type:{name:"Composite",className:"ImageCaption",modelProperties:{text:{nullable:!0,serializedName:"text",type:{name:"String"}},confidence:{nullable:!1,serializedName:"confidence",type:{name:"Number"}}}}},vK={serializedName:"ImageDescriptionDetails",type:{name:"Composite",className:"ImageDescriptionDetails",modelProperties:{tags:{nullable:!0,serializedName:"tags",type:{name:"Sequence",element:{type:{name:"String"}}}},captions:{nullable:!0,serializedName:"captions",type:{name:"Sequence",element:{type:{name:"Composite",className:"ImageCaption"}}}}}}},gK={serializedName:"FaceDescription",type:{name:"Composite",className:"FaceDescription",modelProperties:{age:{nullable:!1,serializedName:"age",type:{name:"Number"}},gender:{nullable:!0,serializedName:"gender",type:{name:"Enum",allowedValues:["Male","Female"]}},faceRectangle:{serializedName:"faceRectangle",type:{name:"Composite",className:"FaceRectangle"}}}}},yK={serializedName:"BoundingRect",type:{name:"Composite",className:"BoundingRect",modelProperties:{x:{nullable:!1,serializedName:"x",type:{name:"Number"}},y:{nullable:!1,serializedName:"y",type:{name:"Number"}},w:{nullable:!1,serializedName:"w",type:{name:"Number"}},h:{nullable:!1,serializedName:"h",type:{name:"Number"}}}}},_K={serializedName:"ObjectHierarchy",type:{name:"Composite",className:"ObjectHierarchy",modelProperties:{object:{nullable:!0,serializedName:"object",type:{name:"String"}},confidence:{nullable:!1,serializedName:"confidence",type:{name:"Number"}},parent:{serializedName:"parent",type:{name:"Composite",className:"ObjectHierarchy"}}}}},bK={serializedName:"DetectedObject",type:{name:"Composite",className:"DetectedObject",modelProperties:{rectangle:{readOnly:!0,serializedName:"rectangle",type:{name:"Composite",className:"BoundingRect"}},object:{nullable:!0,serializedName:"object",type:{name:"String"}},confidence:{nullable:!1,serializedName:"confidence",type:{name:"Number"}},parent:{serializedName:"parent",type:{name:"Composite",className:"ObjectHierarchy"}}}}},SK={serializedName:"DetectedBrand",type:{name:"Composite",className:"DetectedBrand",modelProperties:{name:{nullable:!0,readOnly:!0,serializedName:"name",type:{name:"String"}},confidence:{nullable:!1,readOnly:!0,serializedName:"confidence",type:{name:"Number"}},rectangle:{readOnly:!0,serializedName:"rectangle",type:{name:"Composite",className:"BoundingRect"}}}}},wK={serializedName:"ImageMetadata",type:{name:"Composite",className:"ImageMetadata",modelProperties:{width:{nullable:!1,serializedName:"width",type:{name:"Number"}},height:{nullable:!1,serializedName:"height",type:{name:"Number"}},format:{nullable:!0,serializedName:"format",type:{name:"String"}}}}},Ep={serializedName:"ImageAnalysis",type:{name:"Composite",className:"ImageAnalysis",modelProperties:{categories:{nullable:!0,serializedName:"categories",type:{name:"Sequence",element:{type:{name:"Composite",className:"Category"}}}},adult:{serializedName:"adult",type:{name:"Composite",className:"AdultInfo"}},color:{serializedName:"color",type:{name:"Composite",className:"ColorInfo"}},imageType:{serializedName:"imageType",type:{name:"Composite",className:"ImageType"}},tags:{nullable:!0,serializedName:"tags",type:{name:"Sequence",element:{type:{name:"Composite",className:"ImageTag"}}}},description:{serializedName:"description",type:{name:"Composite",className:"ImageDescriptionDetails"}},faces:{nullable:!0,serializedName:"faces",type:{name:"Sequence",element:{type:{name:"Composite",className:"FaceDescription"}}}},objects:{nullable:!0,serializedName:"objects",type:{name:"Sequence",element:{type:{name:"Composite",className:"DetectedObject"}}}},brands:{nullable:!0,serializedName:"brands",type:{name:"Sequence",element:{type:{name:"Composite",className:"DetectedBrand"}}}},requestId:{nullable:!0,serializedName:"requestId",type:{name:"String"}},metadata:{serializedName:"metadata",type:{name:"Composite",className:"ImageMetadata"}},modelVersion:{serializedName:"modelVersion",type:{name:"String"}}}}},Mp={serializedName:"ImageDescription",type:{name:"Composite",className:"ImageDescription",modelProperties:{tags:{nullable:!0,serializedName:"description.tags",type:{name:"Sequence",element:{type:{name:"String"}}}},captions:{nullable:!0,serializedName:"description.captions",type:{name:"Sequence",element:{type:{name:"Composite",className:"ImageCaption"}}}},requestId:{nullable:!0,serializedName:"requestId",type:{name:"String"}},metadata:{serializedName:"metadata",type:{name:"Composite",className:"ImageMetadata"}},modelVersion:{serializedName:"modelVersion",type:{name:"String"}}}}},Rp={serializedName:"DetectResult",type:{name:"Composite",className:"DetectResult",modelProperties:{objects:{nullable:!0,readOnly:!0,serializedName:"objects",type:{name:"Sequence",element:{type:{name:"Composite",className:"DetectedObject"}}}},requestId:{nullable:!0,serializedName:"requestId",type:{name:"String"}},metadata:{serializedName:"metadata",type:{name:"Composite",className:"ImageMetadata"}},modelVersion:{serializedName:"modelVersion",type:{name:"String"}}}}},CK={serializedName:"ModelDescription",type:{name:"Composite",className:"ModelDescription",modelProperties:{name:{nullable:!0,serializedName:"name",type:{name:"String"}},categories:{nullable:!0,serializedName:"categories",type:{name:"Sequence",element:{type:{name:"String"}}}}}}},R1={serializedName:"ListModelsResult",type:{name:"Composite",className:"ListModelsResult",modelProperties:{modelsProperty:{nullable:!0,readOnly:!0,serializedName:"models",type:{name:"Sequence",element:{type:{name:"Composite",className:"ModelDescription"}}}}}}},Dp={serializedName:"DomainModelResults",type:{name:"Composite",className:"DomainModelResults",modelProperties:{result:{serializedName:"result",type:{name:"Object"}},requestId:{nullable:!0,serializedName:"requestId",type:{name:"String"}},metadata:{serializedName:"metadata",type:{name:"Composite",className:"ImageMetadata"}},modelVersion:{serializedName:"modelVersion",type:{name:"String"}}}}},xK={serializedName:"OcrWord",type:{name:"Composite",className:"OcrWord",modelProperties:{boundingBox:{nullable:!0,serializedName:"boundingBox",type:{name:"String"}},text:{nullable:!0,serializedName:"text",type:{name:"String"}}}}},TK={serializedName:"OcrLine",type:{name:"Composite",className:"OcrLine",modelProperties:{boundingBox:{nullable:!0,serializedName:"boundingBox",type:{name:"String"}},words:{nullable:!0,serializedName:"words",type:{name:"Sequence",element:{type:{name:"Composite",className:"OcrWord"}}}}}}},AK={serializedName:"OcrRegion",type:{name:"Composite",className:"OcrRegion",modelProperties:{boundingBox:{nullable:!0,serializedName:"boundingBox",type:{name:"String"}},lines:{nullable:!0,serializedName:"lines",type:{name:"Sequence",element:{type:{name:"Composite",className:"OcrLine"}}}}}}},Ip={serializedName:"OcrResult",type:{name:"Composite",className:"OcrResult",modelProperties:{language:{nullable:!0,serializedName:"language",type:{name:"String"}},textAngle:{nullable:!1,serializedName:"textAngle",type:{name:"Number"}},orientation:{nullable:!0,serializedName:"orientation",type:{name:"String"}},regions:{nullable:!0,serializedName:"regions",type:{name:"Sequence",element:{type:{name:"Composite",className:"OcrRegion"}}}},modelVersion:{serializedName:"modelVersion",type:{name:"String"}}}}},Np={serializedName:"TagResult",type:{name:"Composite",className:"TagResult",modelProperties:{tags:{nullable:!0,serializedName:"tags",type:{name:"Sequence",element:{type:{name:"Composite",className:"ImageTag"}}}},requestId:{nullable:!0,serializedName:"requestId",type:{name:"String"}},metadata:{serializedName:"metadata",type:{name:"Composite",className:"ImageMetadata"}},modelVersion:{serializedName:"modelVersion",type:{name:"String"}}}}},Fp={serializedName:"AreaOfInterestResult",type:{name:"Composite",className:"AreaOfInterestResult",modelProperties:{areaOfInterest:{readOnly:!0,serializedName:"areaOfInterest",type:{name:"Composite",className:"BoundingRect"}},requestId:{nullable:!0,serializedName:"requestId",type:{name:"String"}},metadata:{serializedName:"metadata",type:{name:"Composite",className:"ImageMetadata"}},modelVersion:{serializedName:"modelVersion",type:{name:"String"}}}}},yi={serializedName:"ImageUrl",type:{name:"Composite",className:"ImageUrl",modelProperties:{url:{required:!0,serializedName:"url",type:{name:"String"}}}}},PK={serializedName:"ComputerVisionInnerError",type:{name:"Composite",className:"ComputerVisionInnerError",modelProperties:{code:{required:!0,serializedName:"code",type:{name:"String"}},message:{required:!0,serializedName:"message",type:{name:"String"}}}}},OK={serializedName:"ComputerVisionError",type:{name:"Composite",className:"ComputerVisionError",modelProperties:{code:{required:!0,serializedName:"code",type:{name:"String"}},message:{required:!0,serializedName:"message",type:{name:"String"}},innererror:{serializedName:"innererror",type:{name:"Composite",className:"ComputerVisionInnerError"}}}}},Dt={serializedName:"ComputerVisionErrorResponse",type:{name:"Composite",className:"ComputerVisionErrorResponse",modelProperties:{error:{required:!0,serializedName:"error",type:{name:"Composite",className:"ComputerVisionError"}}}}},kK={serializedName:"Style",type:{name:"Composite",className:"Style",modelProperties:{name:{required:!0,serializedName:"name",type:{name:"String"}},confidence:{required:!0,serializedName:"confidence",type:{name:"Number"}}}}},$K={serializedName:"Appearance",type:{name:"Composite",className:"Appearance",modelProperties:{style:{required:!0,serializedName:"style",type:{name:"Composite",className:"Style"}}}}},EK={serializedName:"Word",type:{name:"Composite",className:"Word",modelProperties:{boundingBox:{required:!0,serializedName:"boundingBox",type:{name:"Sequence",element:{type:{name:"Number"}}}},text:{required:!0,serializedName:"text",type:{name:"String"}},confidence:{required:!0,serializedName:"confidence",type:{name:"Number"}}}}},MK={serializedName:"Line",type:{name:"Composite",className:"Line",modelProperties:{language:{serializedName:"language",type:{name:"String"}},boundingBox:{required:!0,serializedName:"boundingBox",type:{name:"Sequence",element:{type:{name:"Number"}}}},appearance:{serializedName:"appearance",type:{name:"Composite",className:"Appearance"}},text:{required:!0,serializedName:"text",type:{name:"String"}},words:{required:!0,serializedName:"words",type:{name:"Sequence",element:{type:{name:"Composite",className:"Word"}}}}}}},RK={serializedName:"ReadResult",type:{name:"Composite",className:"ReadResult",modelProperties:{page:{required:!0,serializedName:"page",type:{name:"Number"}},language:{serializedName:"language",type:{name:"String"}},angle:{required:!0,serializedName:"angle",type:{name:"Number"}},width:{required:!0,serializedName:"width",type:{name:"Number"}},height:{required:!0,serializedName:"height",type:{name:"Number"}},unit:{required:!0,nullable:!1,serializedName:"unit",type:{name:"Enum",allowedValues:["pixel","inch"]}},lines:{required:!0,serializedName:"lines",type:{name:"Sequence",element:{type:{name:"Composite",className:"Line"}}}}}}},DK={serializedName:"analyzeResults",type:{name:"Composite",className:"AnalyzeResults",modelProperties:{version:{required:!0,serializedName:"version",type:{name:"String"}},modelVersion:{required:!0,serializedName:"modelVersion",constraints:{Pattern:/^(latest|\d{4}-\d{2}-\d{2})(-preview)?$/},type:{name:"String"}},readResults:{required:!0,serializedName:"readResults",type:{name:"Sequence",element:{type:{name:"Composite",className:"ReadResult"}}}}}}},D1={serializedName:"ReadOperationResult",type:{name:"Composite",className:"ReadOperationResult",modelProperties:{status:{nullable:!1,serializedName:"status",type:{name:"Enum",allowedValues:["notStarted","running","failed","succeeded"]}},createdDateTime:{nullable:!1,serializedName:"createdDateTime",type:{name:"String"}},lastUpdatedDateTime:{nullable:!1,serializedName:"lastUpdatedDateTime",type:{name:"String"}},analyzeResult:{serializedName:"analyzeResult",type:{name:"Composite",className:"AnalyzeResults"}}}}},tc={serializedName:"ComputerVisionOcrError",type:{name:"Composite",className:"ComputerVisionOcrError",modelProperties:{code:{required:!0,serializedName:"code",type:{name:"Object"}},message:{required:!0,serializedName:"message",type:{name:"String"}},requestId:{serializedName:"requestId",type:{name:"String"}}}}},_h={serializedName:"read-headers",type:{name:"Composite",className:"ReadHeaders",modelProperties:{operationLocation:{serializedName:"operation-location",type:{name:"String"}}}}},bh={serializedName:"readinstream-headers",type:{name:"Composite",className:"ReadInStreamHeaders",modelProperties:{operationLocation:{serializedName:"operation-location",type:{name:"String"}}}}},IK=Object.freeze(Object.defineProperty({__proto__:null,FaceRectangle:sK,CelebritiesModel:oK,LandmarksModel:uK,CategoryDetail:lK,Category:cK,AdultInfo:fK,ColorInfo:dK,ImageType:hK,ImageTag:pK,ImageCaption:mK,ImageDescriptionDetails:vK,FaceDescription:gK,BoundingRect:yK,ObjectHierarchy:_K,DetectedObject:bK,DetectedBrand:SK,ImageMetadata:wK,ImageAnalysis:Ep,ImageDescription:Mp,DetectResult:Rp,ModelDescription:CK,ListModelsResult:R1,DomainModelResults:Dp,OcrWord:xK,OcrLine:TK,OcrRegion:AK,OcrResult:Ip,TagResult:Np,AreaOfInterestResult:Fp,ImageUrl:yi,ComputerVisionInnerError:PK,ComputerVisionError:OK,ComputerVisionErrorResponse:Dt,Style:kK,Appearance:$K,Word:EK,Line:MK,ReadResult:RK,AnalyzeResults:DK,ReadOperationResult:D1,ComputerVisionOcrError:tc,ReadHeaders:_h,ReadInStreamHeaders:bh},Symbol.toStringTag,{value:"Module"})),nc={parameterPath:["options","descriptionExclude"],mapper:{serializedName:"descriptionExclude",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["Celebrities","Landmarks"]}}}},collectionFormat:Bt.Csv},I1={parameterPath:["options","details"],mapper:{serializedName:"details",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["Celebrities","Landmarks"]}}}},collectionFormat:Bt.Csv},N1={parameterPath:"detectOrientation",mapper:{required:!0,serializedName:"detectOrientation",defaultValue:!0,type:{name:"Boolean"}}},ct={parameterPath:"endpoint",mapper:{required:!0,serializedName:"Endpoint",defaultValue:"",type:{name:"String"}},skipEncoding:!0},F1={parameterPath:"height",mapper:{required:!0,serializedName:"height",constraints:{InclusiveMaximum:1024,InclusiveMinimum:1},type:{name:"Number"}}},Ar={parameterPath:["options","language"],mapper:{serializedName:"language",defaultValue:"en",type:{name:"String"}}},L1={parameterPath:["options","language"],mapper:{serializedName:"language",defaultValue:"unk",type:{name:"Enum",allowedValues:["unk","zh-Hans","zh-Hant","cs","da","nl","en","fi","fr","de","el","hu","it","ja","ko","nb","pl","pt","ru","es","sv","tr","ar","ro","sr-Cyrl","sr-Latn","sk"]}}},B1={parameterPath:["options","language"],mapper:{serializedName:"language",type:{name:"String"}}},z1={parameterPath:["options","maxCandidates"],mapper:{serializedName:"maxCandidates",defaultValue:1,type:{name:"Number"}}},j1={parameterPath:"model",mapper:{required:!0,serializedName:"model",type:{name:"String"}}},yt={parameterPath:["options","modelVersion"],mapper:{serializedName:"model-version",defaultValue:"latest",constraints:{Pattern:/^(latest|\d{4}-\d{2}-\d{2})(-preview)?$/},type:{name:"String"}}},NK={parameterPath:"operationId",mapper:{required:!0,serializedName:"operationId",type:{name:"Uuid"}}},q1={parameterPath:["options","pages"],mapper:{serializedName:"pages",type:{name:"Sequence",element:{type:{name:"String"}}}},collectionFormat:Bt.Csv},V1={parameterPath:["options","readingOrder"],mapper:{serializedName:"readingOrder",defaultValue:"basic",type:{name:"String"}}},U1={parameterPath:["options","smartCropping"],mapper:{serializedName:"smartCropping",defaultValue:!1,type:{name:"Boolean"}}},H1={parameterPath:["options","visualFeatures"],mapper:{serializedName:"visualFeatures",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["ImageType","Faces","Adult","Categories","Color","Tags","Description","Objects","Brands"]}}}},collectionFormat:Bt.Csv},W1={parameterPath:"width",mapper:{required:!0,serializedName:"width",constraints:{InclusiveMaximum:1024,InclusiveMinimum:1},type:{name:"Number"}}},FK="@azure/cognitiveservices-computervision",LK="8.2.0",BK=function(e){kt(t,e);function t(n,r,s){var o=this;if(r==null)throw new Error("'endpoint' cannot be null.");if(n==null)throw new Error("'credentials' cannot be null.");if(s||(s={}),!s.userAgent){var c=Ql();s.userAgent=FK+"/"+LK+" "+c}return o=e.call(this,n,s)||this,o.baseUri="{Endpoint}/vision/v3.2",o.requestContentType="application/json; charset=utf-8",o.endpoint=r,o.credentials=n,o}return t}(l1),zK=function(e){kt(t,e);function t(n,r,s){return e.call(this,n,r,s)||this}return t.prototype.analyzeImage=function(n,r,s){return this.sendOperationRequest({url:n,options:r},jK,s)},t.prototype.describeImage=function(n,r,s){return this.sendOperationRequest({url:n,options:r},qK,s)},t.prototype.detectObjects=function(n,r,s){return this.sendOperationRequest({url:n,options:r},VK,s)},t.prototype.listModels=function(n,r){return this.sendOperationRequest({options:n},UK,r)},t.prototype.analyzeImageByDomain=function(n,r,s,o){return this.sendOperationRequest({model:n,url:r,options:s},HK,o)},t.prototype.recognizePrintedText=function(n,r,s,o){return this.sendOperationRequest({detectOrientation:n,url:r,options:s},WK,o)},t.prototype.tagImage=function(n,r,s){return this.sendOperationRequest({url:n,options:r},GK,s)},t.prototype.generateThumbnail=function(n,r,s,o,c){return this.sendOperationRequest({width:n,height:r,url:s,options:o},YK,c)},t.prototype.getAreaOfInterest=function(n,r,s){return this.sendOperationRequest({url:n,options:r},KK,s)},t.prototype.read=function(n,r,s){return this.sendOperationRequest({url:n,options:r},XK,s)},t.prototype.getReadResult=function(n,r,s){return this.sendOperationRequest({operationId:n,options:r},QK,s)},t.prototype.analyzeImageInStream=function(n,r,s){return this.sendOperationRequest({image:n,options:r},ZK,s)},t.prototype.getAreaOfInterestInStream=function(n,r,s){return this.sendOperationRequest({image:n,options:r},JK,s)},t.prototype.describeImageInStream=function(n,r,s){return this.sendOperationRequest({image:n,options:r},eX,s)},t.prototype.detectObjectsInStream=function(n,r,s){return this.sendOperationRequest({image:n,options:r},tX,s)},t.prototype.generateThumbnailInStream=function(n,r,s,o,c){return this.sendOperationRequest({width:n,height:r,image:s,options:o},nX,c)},t.prototype.analyzeImageByDomainInStream=function(n,r,s,o){return this.sendOperationRequest({model:n,image:r,options:s},iX,o)},t.prototype.recognizePrintedTextInStream=function(n,r,s,o){return this.sendOperationRequest({detectOrientation:n,image:r,options:s},rX,o)},t.prototype.tagImageInStream=function(n,r,s){return this.sendOperationRequest({image:n,options:r},aX,s)},t.prototype.readInStream=function(n,r,s){return this.sendOperationRequest({image:n,options:r},sX,s)},t}(BK),ft=new ci(IK),jK={httpMethod:"POST",path:"analyze",urlParameters:[ct],queryParameters:[H1,I1,Ar,nc,yt],requestBody:{parameterPath:{url:"url"},mapper:oe(oe({},yi),{required:!0})},responses:{200:{bodyMapper:Ep},default:{bodyMapper:Dt}},serializer:ft},qK={httpMethod:"POST",path:"describe",urlParameters:[ct],queryParameters:[z1,Ar,nc,yt],requestBody:{parameterPath:{url:"url"},mapper:oe(oe({},yi),{required:!0})},responses:{200:{bodyMapper:Mp},default:{bodyMapper:Dt}},serializer:ft},VK={httpMethod:"POST",path:"detect",urlParameters:[ct],queryParameters:[yt],requestBody:{parameterPath:{url:"url"},mapper:oe(oe({},yi),{required:!0})},responses:{200:{bodyMapper:Rp},default:{bodyMapper:Dt}},serializer:ft},UK={httpMethod:"GET",path:"models",urlParameters:[ct],responses:{200:{bodyMapper:R1},default:{bodyMapper:Dt}},serializer:ft},HK={httpMethod:"POST",path:"models/{model}/analyze",urlParameters:[ct,j1],queryParameters:[Ar,yt],requestBody:{parameterPath:{url:"url"},mapper:oe(oe({},yi),{required:!0})},responses:{200:{bodyMapper:Dp},default:{bodyMapper:Dt}},serializer:ft},WK={httpMethod:"POST",path:"ocr",urlParameters:[ct],queryParameters:[N1,L1,yt],requestBody:{parameterPath:{url:"url"},mapper:oe(oe({},yi),{required:!0})},responses:{200:{bodyMapper:Ip},default:{bodyMapper:Dt}},serializer:ft},GK={httpMethod:"POST",path:"tag",urlParameters:[ct],queryParameters:[Ar,yt],requestBody:{parameterPath:{url:"url"},mapper:oe(oe({},yi),{required:!0})},responses:{200:{bodyMapper:Np},default:{bodyMapper:Dt}},serializer:ft},YK={httpMethod:"POST",path:"generateThumbnail",urlParameters:[ct],queryParameters:[W1,F1,U1,yt],requestBody:{parameterPath:{url:"url"},mapper:oe(oe({},yi),{required:!0})},responses:{200:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Stream"}}},default:{}},serializer:ft},KK={httpMethod:"POST",path:"areaOfInterest",urlParameters:[ct],queryParameters:[yt],requestBody:{parameterPath:{url:"url"},mapper:oe(oe({},yi),{required:!0})},responses:{200:{bodyMapper:Fp},default:{bodyMapper:Dt}},serializer:ft},XK={httpMethod:"POST",path:"read/analyze",urlParameters:[ct],queryParameters:[B1,q1,yt,V1],requestBody:{parameterPath:{url:"url"},mapper:oe(oe({},yi),{required:!0})},responses:{202:{headersMapper:_h},default:{bodyMapper:tc,headersMapper:_h}},serializer:ft},QK={httpMethod:"GET",path:"read/analyzeResults/{operationId}",urlParameters:[ct,NK],responses:{200:{bodyMapper:D1},default:{bodyMapper:tc}},serializer:ft},ZK={httpMethod:"POST",path:"analyze",urlParameters:[ct],queryParameters:[H1,I1,Ar,nc,yt],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:Ep},default:{bodyMapper:Dt}},serializer:ft},JK={httpMethod:"POST",path:"areaOfInterest",urlParameters:[ct],queryParameters:[yt],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:Fp},default:{bodyMapper:Dt}},serializer:ft},eX={httpMethod:"POST",path:"describe",urlParameters:[ct],queryParameters:[z1,Ar,nc,yt],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:Mp},default:{bodyMapper:Dt}},serializer:ft},tX={httpMethod:"POST",path:"detect",urlParameters:[ct],queryParameters:[yt],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:Rp},default:{bodyMapper:Dt}},serializer:ft},nX={httpMethod:"POST",path:"generateThumbnail",urlParameters:[ct],queryParameters:[W1,F1,U1,yt],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Stream"}}},default:{}},serializer:ft},iX={httpMethod:"POST",path:"models/{model}/analyze",urlParameters:[ct,j1],queryParameters:[Ar,yt],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:Dp},default:{bodyMapper:Dt}},serializer:ft},rX={httpMethod:"POST",path:"ocr",urlParameters:[ct],queryParameters:[N1,L1,yt],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:Ip},default:{bodyMapper:Dt}},serializer:ft},aX={httpMethod:"POST",path:"tag",urlParameters:[ct],queryParameters:[Ar,yt],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:Np},default:{bodyMapper:Dt}},serializer:ft},sX={httpMethod:"POST",path:"read/analyze",urlParameters:[ct],queryParameters:[B1,q1,yt,V1],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{202:{headersMapper:bh},default:{bodyMapper:tc,headersMapper:bh}},serializer:ft},oX=Object.defineProperty,uX=Object.getOwnPropertyDescriptor,Lp=(e,t,n,r)=>{for(var s=r>1?void 0:r?uX(t,n):t,o=e.length-1,c;o>=0;o--)(c=e[o])&&(s=(r?c(t,n,s):c(s))||s);return r&&s&&oX(t,n,s),s};const lX=new f1({inHeader:{"Ocp-Apim-Subscription-Key":E0}}),cX=new zK(lX,GI);let Js=class extends $e{constructor(){super(...arguments),this.picture="",this.description=null}onClose(){is.back()}savePicture(){this.camera.stop(),fetch(this.picture).then(e=>e.blob()).then(e=>{cX.describeImageInStream(e).then(t=>{this.description=t}).catch(t=>{this.$alert("An error occurred while trying to connect to Computer Vision. Try again and ask your coach if the problem persists.","Computer Vision not available","warning").then(()=>this.$router.go(0)),console.log("An error occurred:"),console.error(t)})})}};Lp([Zh()],Js.prototype,"camera",2);Lp([Za("picture")],Js.prototype,"savePicture",1);Js=Lp([Wn({components:{NavBarBack:M1}})],Js);var fX=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",[e.description?e._e():n("div",[n("EasyCamera",{ref:"camera",attrs:{fullscreenZIndex:-1,fullscreen:""},on:{close:e.onClose},model:{value:e.picture,callback:function(r){e.picture=r},expression:"picture"}})],1),e.description?n("section",[n("NavBarBack"),n("h1",[e._v("Results")]),e._l(e.description.captions,function(r){return n("div",[n("p",[e._v(e._s(r.text))])])}),e._l(e.description.tags,function(r){return n("div",[n("p",[e._v(e._s(r))])])})],2):e._e()])},dX=[];const Y_={};var hX=ui(Js,fX,dX,!1,pX,"39c01be6",null,null);function pX(e){for(let t in Y_)this[t]=Y_[t]}var mX=function(){return hX.exports}(),Sh={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */(function(e,t){(function(){var n,r="4.17.21",s=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",u="Invalid `variable` option passed into `_.template`",i="__lodash_hash_undefined__",a=500,l="__lodash_placeholder__",d=1,p=2,v=4,g=1,_=2,b=1,C=2,T=4,$=8,L=16,D=32,F=64,P=128,j=256,V=512,H=30,X="...",k=800,O=16,I=1,J=2,ue=3,le=1/0,ce=9007199254740991,pe=17976931348623157e292,Y=0/0,M=4294967295,R=M-1,U=M>>>1,K=[["ary",P],["bind",b],["bindKey",C],["curry",$],["curryRight",L],["flip",V],["partial",D],["partialRight",F],["rearg",j]],ie="[object Arguments]",B="[object Array]",q="[object AsyncFunction]",re="[object Boolean]",se="[object Date]",Se="[object DOMException]",xe="[object Error]",ke="[object Function]",Be="[object GeneratorFunction]",Ve="[object Map]",De="[object Number]",dt="[object Null]",Me="[object Object]",Ye="[object Promise]",It="[object Proxy]",Jt="[object RegExp]",mt="[object Set]",Wi="[object String]",kr="[object Symbol]",AC="[object Undefined]",as="[object WeakMap]",PC="[object WeakSet]",ss="[object ArrayBuffer]",pa="[object DataView]",fc="[object Float32Array]",dc="[object Float64Array]",hc="[object Int8Array]",pc="[object Int16Array]",mc="[object Int32Array]",vc="[object Uint8Array]",gc="[object Uint8ClampedArray]",yc="[object Uint16Array]",_c="[object Uint32Array]",OC=/\b__p \+= '';/g,kC=/\b(__p \+=) '' \+/g,$C=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Xp=/&(?:amp|lt|gt|quot|#39);/g,Qp=/[&<>"']/g,EC=RegExp(Xp.source),MC=RegExp(Qp.source),RC=/<%-([\s\S]+?)%>/g,DC=/<%([\s\S]+?)%>/g,Zp=/<%=([\s\S]+?)%>/g,IC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,NC=/^\w*$/,FC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bc=/[\\^$.*+?()[\]{}|]/g,LC=RegExp(bc.source),Sc=/^\s+/,BC=/\s/,zC=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,jC=/\{\n\/\* \[wrapped with (.+)\] \*/,qC=/,? & /,VC=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,UC=/[()=,{}\[\]\/\s]/,HC=/\\(\\)?/g,WC=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Jp=/\w*$/,GC=/^[-+]0x[0-9a-f]+$/i,YC=/^0b[01]+$/i,KC=/^\[object .+?Constructor\]$/,XC=/^0o[0-7]+$/i,QC=/^(?:0|[1-9]\d*)$/,ZC=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,co=/($^)/,JC=/['\n\r\u2028\u2029\\]/g,fo="\\ud800-\\udfff",ex="\\u0300-\\u036f",tx="\\ufe20-\\ufe2f",nx="\\u20d0-\\u20ff",em=ex+tx+nx,tm="\\u2700-\\u27bf",nm="a-z\\xdf-\\xf6\\xf8-\\xff",ix="\\xac\\xb1\\xd7\\xf7",rx="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ax="\\u2000-\\u206f",sx=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",im="A-Z\\xc0-\\xd6\\xd8-\\xde",rm="\\ufe0e\\ufe0f",am=ix+rx+ax+sx,wc="['\u2019]",ox="["+fo+"]",sm="["+am+"]",ho="["+em+"]",om="\\d+",ux="["+tm+"]",um="["+nm+"]",lm="[^"+fo+am+om+tm+nm+im+"]",Cc="\\ud83c[\\udffb-\\udfff]",lx="(?:"+ho+"|"+Cc+")",cm="[^"+fo+"]",xc="(?:\\ud83c[\\udde6-\\uddff]){2}",Tc="[\\ud800-\\udbff][\\udc00-\\udfff]",ma="["+im+"]",fm="\\u200d",dm="(?:"+um+"|"+lm+")",cx="(?:"+ma+"|"+lm+")",hm="(?:"+wc+"(?:d|ll|m|re|s|t|ve))?",pm="(?:"+wc+"(?:D|LL|M|RE|S|T|VE))?",mm=lx+"?",vm="["+rm+"]?",fx="(?:"+fm+"(?:"+[cm,xc,Tc].join("|")+")"+vm+mm+")*",dx="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",hx="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",gm=vm+mm+fx,px="(?:"+[ux,xc,Tc].join("|")+")"+gm,mx="(?:"+[cm+ho+"?",ho,xc,Tc,ox].join("|")+")",vx=RegExp(wc,"g"),gx=RegExp(ho,"g"),Ac=RegExp(Cc+"(?="+Cc+")|"+mx+gm,"g"),yx=RegExp([ma+"?"+um+"+"+hm+"(?="+[sm,ma,"$"].join("|")+")",cx+"+"+pm+"(?="+[sm,ma+dm,"$"].join("|")+")",ma+"?"+dm+"+"+hm,ma+"+"+pm,hx,dx,om,px].join("|"),"g"),_x=RegExp("["+fm+fo+em+rm+"]"),bx=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Sx=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],wx=-1,et={};et[fc]=et[dc]=et[hc]=et[pc]=et[mc]=et[vc]=et[gc]=et[yc]=et[_c]=!0,et[ie]=et[B]=et[ss]=et[re]=et[pa]=et[se]=et[xe]=et[ke]=et[Ve]=et[De]=et[Me]=et[Jt]=et[mt]=et[Wi]=et[as]=!1;var Qe={};Qe[ie]=Qe[B]=Qe[ss]=Qe[pa]=Qe[re]=Qe[se]=Qe[fc]=Qe[dc]=Qe[hc]=Qe[pc]=Qe[mc]=Qe[Ve]=Qe[De]=Qe[Me]=Qe[Jt]=Qe[mt]=Qe[Wi]=Qe[kr]=Qe[vc]=Qe[gc]=Qe[yc]=Qe[_c]=!0,Qe[xe]=Qe[ke]=Qe[as]=!1;var Cx={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},xx={"&":"&","<":"<",">":">",'"':""","'":"'"},Tx={"&":"&","<":"<",">":">",""":'"',"'":"'"},Ax={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Px=parseFloat,Ox=parseInt,ym=typeof Da=="object"&&Da&&Da.Object===Object&&Da,kx=typeof self=="object"&&self&&self.Object===Object&&self,_t=ym||kx||Function("return this")(),Pc=t&&!t.nodeType&&t,$r=Pc&&!0&&e&&!e.nodeType&&e,_m=$r&&$r.exports===Pc,Oc=_m&&ym.process,vn=function(){try{var N=$r&&$r.require&&$r.require("util").types;return N||Oc&&Oc.binding&&Oc.binding("util")}catch{}}(),bm=vn&&vn.isArrayBuffer,Sm=vn&&vn.isDate,wm=vn&&vn.isMap,Cm=vn&&vn.isRegExp,xm=vn&&vn.isSet,Tm=vn&&vn.isTypedArray;function en(N,Z,W){switch(W.length){case 0:return N.call(Z);case 1:return N.call(Z,W[0]);case 2:return N.call(Z,W[0],W[1]);case 3:return N.call(Z,W[0],W[1],W[2])}return N.apply(Z,W)}function $x(N,Z,W,ge){for(var Ae=-1,Ue=N==null?0:N.length;++Ae-1}function kc(N,Z,W){for(var ge=-1,Ae=N==null?0:N.length;++ge-1;);return W}function Rm(N,Z){for(var W=N.length;W--&&va(Z,N[W],0)>-1;);return W}function Bx(N,Z){for(var W=N.length,ge=0;W--;)N[W]===Z&&++ge;return ge}var zx=Rc(Cx),jx=Rc(xx);function qx(N){return"\\"+Ax[N]}function Vx(N,Z){return N==null?n:N[Z]}function ga(N){return _x.test(N)}function Ux(N){return bx.test(N)}function Hx(N){for(var Z,W=[];!(Z=N.next()).done;)W.push(Z.value);return W}function Fc(N){var Z=-1,W=Array(N.size);return N.forEach(function(ge,Ae){W[++Z]=[Ae,ge]}),W}function Dm(N,Z){return function(W){return N(Z(W))}}function Ki(N,Z){for(var W=-1,ge=N.length,Ae=0,Ue=[];++W-1}function MT(f,h){var m=this.__data__,y=Eo(m,f);return y<0?(++this.size,m.push([f,h])):m[y][1]=h,this}bi.prototype.clear=OT,bi.prototype.delete=kT,bi.prototype.get=$T,bi.prototype.has=ET,bi.prototype.set=MT;function Si(f){var h=-1,m=f==null?0:f.length;for(this.clear();++h=h?f:h)),f}function bn(f,h,m,y,S,x){var A,E=h&d,z=h&p,te=h&v;if(m&&(A=S?m(f,y,S,x):m(f)),A!==n)return A;if(!rt(f))return f;var ne=Pe(f);if(ne){if(A=NA(f),!E)return Vt(f,A)}else{var ae=Tt(f),he=ae==ke||ae==Be;if(tr(f))return vv(f,E);if(ae==Me||ae==ie||he&&!S){if(A=z||he?{}:Iv(f),!E)return z?TA(f,YT(A,f)):xA(f,Wm(A,f))}else{if(!Qe[ae])return S?f:{};A=FA(f,ae,E)}}x||(x=new In);var ye=x.get(f);if(ye)return ye;x.set(f,A),cg(f)?f.forEach(function(Ce){A.add(bn(Ce,h,m,Ce,f,x))}):ug(f)&&f.forEach(function(Ce,ze){A.set(ze,bn(Ce,h,m,ze,f,x))});var we=te?z?cf:lf:z?Ht:vt,Re=ne?n:we(f);return gn(Re||f,function(Ce,ze){Re&&(ze=Ce,Ce=f[ze]),hs(A,ze,bn(Ce,h,m,ze,f,x))}),A}function KT(f){var h=vt(f);return function(m){return Gm(m,f,h)}}function Gm(f,h,m){var y=m.length;if(f==null)return!y;for(f=Ke(f);y--;){var S=m[y],x=h[S],A=f[S];if(A===n&&!(S in f)||!x(A))return!1}return!0}function Ym(f,h,m){if(typeof f!="function")throw new yn(c);return bs(function(){f.apply(n,m)},h)}function ps(f,h,m,y){var S=-1,x=po,A=!0,E=f.length,z=[],te=h.length;if(!E)return z;m&&(h=nt(h,tn(m))),y?(x=kc,A=!1):h.length>=s&&(x=os,A=!1,h=new Rr(h));e:for(;++SS?0:S+m),y=y===n||y>S?S:Ee(y),y<0&&(y+=S),y=m>y?0:dg(y);m0&&m(E)?h>1?bt(E,h-1,m,y,S):Yi(S,E):y||(S[S.length]=E)}return S}var Uc=wv(),Qm=wv(!0);function Xn(f,h){return f&&Uc(f,h,vt)}function Hc(f,h){return f&&Qm(f,h,vt)}function Ro(f,h){return Gi(h,function(m){return Ai(f[m])})}function Ir(f,h){h=Ji(h,f);for(var m=0,y=h.length;f!=null&&mh}function ZT(f,h){return f!=null&&Ge.call(f,h)}function JT(f,h){return f!=null&&h in Ke(f)}function eA(f,h,m){return f>=xt(h,m)&&f=120&&ne.length>=120)?new Rr(A&&ne):n}ne=f[0];var ae=-1,he=E[0];e:for(;++ae-1;)E!==f&&xo.call(E,z,1),xo.call(f,z,1);return f}function uv(f,h){for(var m=f?h.length:0,y=m-1;m--;){var S=h[m];if(m==y||S!==x){var x=S;Ti(S)?xo.call(f,S,1):tf(f,S)}}return f}function Zc(f,h){return f+Po(qm()*(h-f+1))}function hA(f,h,m,y){for(var S=-1,x=pt(Ao((h-f)/(m||1)),0),A=W(x);x--;)A[y?x:++S]=f,f+=m;return A}function Jc(f,h){var m="";if(!f||h<1||h>ce)return m;do h%2&&(m+=f),h=Po(h/2),h&&(f+=f);while(h);return m}function Ie(f,h){return gf(Lv(f,h,Wt),f+"")}function pA(f){return Hm(Oa(f))}function mA(f,h){var m=Oa(f);return Uo(m,Dr(h,0,m.length))}function gs(f,h,m,y){if(!rt(f))return f;h=Ji(h,f);for(var S=-1,x=h.length,A=x-1,E=f;E!=null&&++SS?0:S+h),m=m>S?S:m,m<0&&(m+=S),S=h>m?0:m-h>>>0,h>>>=0;for(var x=W(S);++y>>1,A=f[x];A!==null&&!rn(A)&&(m?A<=h:A=s){var te=h?null:kA(f);if(te)return vo(te);A=!1,S=os,z=new Rr}else z=h?[]:E;e:for(;++y=y?f:Sn(f,h,m)}var mv=sT||function(f){return _t.clearTimeout(f)};function vv(f,h){if(h)return f.slice();var m=f.length,y=Fm?Fm(m):new f.constructor(m);return f.copy(y),y}function sf(f){var h=new f.constructor(f.byteLength);return new wo(h).set(new wo(f)),h}function bA(f,h){var m=h?sf(f.buffer):f.buffer;return new f.constructor(m,f.byteOffset,f.byteLength)}function SA(f){var h=new f.constructor(f.source,Jp.exec(f));return h.lastIndex=f.lastIndex,h}function wA(f){return ds?Ke(ds.call(f)):{}}function gv(f,h){var m=h?sf(f.buffer):f.buffer;return new f.constructor(m,f.byteOffset,f.length)}function yv(f,h){if(f!==h){var m=f!==n,y=f===null,S=f===f,x=rn(f),A=h!==n,E=h===null,z=h===h,te=rn(h);if(!E&&!te&&!x&&f>h||x&&A&&z&&!E&&!te||y&&A&&z||!m&&z||!S)return 1;if(!y&&!x&&!te&&f=E)return z;var te=m[y];return z*(te=="desc"?-1:1)}}return f.index-h.index}function _v(f,h,m,y){for(var S=-1,x=f.length,A=m.length,E=-1,z=h.length,te=pt(x-A,0),ne=W(z+te),ae=!y;++E1?m[S-1]:n,A=S>2?m[2]:n;for(x=f.length>3&&typeof x=="function"?(S--,x):n,A&&Ft(m[0],m[1],A)&&(x=S<3?n:x,S=1),h=Ke(h);++y-1?S[x?h[A]:A]:n}}function Tv(f){return xi(function(h){var m=h.length,y=m,S=_n.prototype.thru;for(f&&h.reverse();y--;){var x=h[y];if(typeof x!="function")throw new yn(c);if(S&&!A&&qo(x)=="wrapper")var A=new _n([],!0)}for(y=A?y:m;++y1&&qe.reverse(),ne&&zE))return!1;var te=x.get(f),ne=x.get(h);if(te&&ne)return te==h&&ne==f;var ae=-1,he=!0,ye=m&_?new Rr:n;for(x.set(f,h),x.set(h,f);++ae1?"& ":"")+h[y],h=h.join(m>2?", ":" "),f.replace(zC,`{ +/* [wrapped with `+h+`] */ +`)}function BA(f){return Pe(f)||Lr(f)||!!(zm&&f&&f[zm])}function Ti(f,h){var m=typeof f;return h=h==null?ce:h,!!h&&(m=="number"||m!="symbol"&&QC.test(f))&&f>-1&&f%1==0&&f0){if(++h>=k)return arguments[0]}else h=0;return f.apply(n,arguments)}}function Uo(f,h){var m=-1,y=f.length,S=y-1;for(h=h===n?y:h;++m1?f[h-1]:n;return m=typeof m=="function"?(f.pop(),m):n,Xv(f,m)});function Qv(f){var h=w(f);return h.__chain__=!0,h}function XP(f,h){return h(f),f}function Ho(f,h){return h(f)}var QP=xi(function(f){var h=f.length,m=h?f[0]:0,y=this.__wrapped__,S=function(x){return Vc(x,f)};return h>1||this.__actions__.length||!(y instanceof je)||!Ti(m)?this.thru(S):(y=y.slice(m,+m+(h?1:0)),y.__actions__.push({func:Ho,args:[S],thisArg:n}),new _n(y,this.__chain__).thru(function(x){return h&&!x.length&&x.push(n),x}))});function ZP(){return Qv(this)}function JP(){return new _n(this.value(),this.__chain__)}function eO(){this.__values__===n&&(this.__values__=fg(this.value()));var f=this.__index__>=this.__values__.length,h=f?n:this.__values__[this.__index__++];return{done:f,value:h}}function tO(){return this}function nO(f){for(var h,m=this;m instanceof $o;){var y=Uv(m);y.__index__=0,y.__values__=n,h?S.__wrapped__=y:h=y;var S=y;m=m.__wrapped__}return S.__wrapped__=f,h}function iO(){var f=this.__wrapped__;if(f instanceof je){var h=f;return this.__actions__.length&&(h=new je(this)),h=h.reverse(),h.__actions__.push({func:Ho,args:[yf],thisArg:n}),new _n(h,this.__chain__)}return this.thru(yf)}function rO(){return hv(this.__wrapped__,this.__actions__)}var aO=Fo(function(f,h,m){Ge.call(f,m)?++f[m]:wi(f,m,1)});function sO(f,h,m){var y=Pe(f)?Am:XT;return m&&Ft(f,h,m)&&(h=n),y(f,be(h,3))}function oO(f,h){var m=Pe(f)?Gi:Xm;return m(f,be(h,3))}var uO=xv(Hv),lO=xv(Wv);function cO(f,h){return bt(Wo(f,h),1)}function fO(f,h){return bt(Wo(f,h),le)}function dO(f,h,m){return m=m===n?1:Ee(m),bt(Wo(f,h),m)}function Zv(f,h){var m=Pe(f)?gn:Qi;return m(f,be(h,3))}function Jv(f,h){var m=Pe(f)?Ex:Km;return m(f,be(h,3))}var hO=Fo(function(f,h,m){Ge.call(f,m)?f[m].push(h):wi(f,m,[h])});function pO(f,h,m,y){f=Ut(f)?f:Oa(f),m=m&&!y?Ee(m):0;var S=f.length;return m<0&&(m=pt(S+m,0)),Qo(f)?m<=S&&f.indexOf(h,m)>-1:!!S&&va(f,h,m)>-1}var mO=Ie(function(f,h,m){var y=-1,S=typeof h=="function",x=Ut(f)?W(f.length):[];return Qi(f,function(A){x[++y]=S?en(h,A,m):ms(A,h,m)}),x}),vO=Fo(function(f,h,m){wi(f,m,h)});function Wo(f,h){var m=Pe(f)?nt:nv;return m(f,be(h,3))}function gO(f,h,m,y){return f==null?[]:(Pe(h)||(h=h==null?[]:[h]),m=y?n:m,Pe(m)||(m=m==null?[]:[m]),sv(f,h,m))}var yO=Fo(function(f,h,m){f[m?0:1].push(h)},function(){return[[],[]]});function _O(f,h,m){var y=Pe(f)?$c:$m,S=arguments.length<3;return y(f,be(h,4),m,S,Qi)}function bO(f,h,m){var y=Pe(f)?Mx:$m,S=arguments.length<3;return y(f,be(h,4),m,S,Km)}function SO(f,h){var m=Pe(f)?Gi:Xm;return m(f,Ko(be(h,3)))}function wO(f){var h=Pe(f)?Hm:pA;return h(f)}function CO(f,h,m){(m?Ft(f,h,m):h===n)?h=1:h=Ee(h);var y=Pe(f)?HT:mA;return y(f,h)}function xO(f){var h=Pe(f)?WT:gA;return h(f)}function TO(f){if(f==null)return 0;if(Ut(f))return Qo(f)?ya(f):f.length;var h=Tt(f);return h==Ve||h==mt?f.size:Kc(f).length}function AO(f,h,m){var y=Pe(f)?Ec:yA;return m&&Ft(f,h,m)&&(h=n),y(f,be(h,3))}var PO=Ie(function(f,h){if(f==null)return[];var m=h.length;return m>1&&Ft(f,h[0],h[1])?h=[]:m>2&&Ft(h[0],h[1],h[2])&&(h=[h[0]]),sv(f,bt(h,1),[])}),Go=oT||function(){return _t.Date.now()};function OO(f,h){if(typeof h!="function")throw new yn(c);return f=Ee(f),function(){if(--f<1)return h.apply(this,arguments)}}function eg(f,h,m){return h=m?n:h,h=f&&h==null?f.length:h,Ci(f,P,n,n,n,n,h)}function tg(f,h){var m;if(typeof h!="function")throw new yn(c);return f=Ee(f),function(){return--f>0&&(m=h.apply(this,arguments)),f<=1&&(h=n),m}}var bf=Ie(function(f,h,m){var y=b;if(m.length){var S=Ki(m,Aa(bf));y|=D}return Ci(f,y,h,m,S)}),ng=Ie(function(f,h,m){var y=b|C;if(m.length){var S=Ki(m,Aa(ng));y|=D}return Ci(h,y,f,m,S)});function ig(f,h,m){h=m?n:h;var y=Ci(f,$,n,n,n,n,n,h);return y.placeholder=ig.placeholder,y}function rg(f,h,m){h=m?n:h;var y=Ci(f,L,n,n,n,n,n,h);return y.placeholder=rg.placeholder,y}function ag(f,h,m){var y,S,x,A,E,z,te=0,ne=!1,ae=!1,he=!0;if(typeof f!="function")throw new yn(c);h=Cn(h)||0,rt(m)&&(ne=!!m.leading,ae="maxWait"in m,x=ae?pt(Cn(m.maxWait)||0,h):x,he="trailing"in m?!!m.trailing:he);function ye(lt){var Fn=y,Oi=S;return y=S=n,te=lt,A=f.apply(Oi,Fn),A}function we(lt){return te=lt,E=bs(ze,h),ne?ye(lt):A}function Re(lt){var Fn=lt-z,Oi=lt-te,xg=h-Fn;return ae?xt(xg,x-Oi):xg}function Ce(lt){var Fn=lt-z,Oi=lt-te;return z===n||Fn>=h||Fn<0||ae&&Oi>=x}function ze(){var lt=Go();if(Ce(lt))return qe(lt);E=bs(ze,Re(lt))}function qe(lt){return E=n,he&&y?ye(lt):(y=S=n,A)}function an(){E!==n&&mv(E),te=0,y=z=S=E=n}function Lt(){return E===n?A:qe(Go())}function sn(){var lt=Go(),Fn=Ce(lt);if(y=arguments,S=this,z=lt,Fn){if(E===n)return we(z);if(ae)return mv(E),E=bs(ze,h),ye(z)}return E===n&&(E=bs(ze,h)),A}return sn.cancel=an,sn.flush=Lt,sn}var kO=Ie(function(f,h){return Ym(f,1,h)}),$O=Ie(function(f,h,m){return Ym(f,Cn(h)||0,m)});function EO(f){return Ci(f,V)}function Yo(f,h){if(typeof f!="function"||h!=null&&typeof h!="function")throw new yn(c);var m=function(){var y=arguments,S=h?h.apply(this,y):y[0],x=m.cache;if(x.has(S))return x.get(S);var A=f.apply(this,y);return m.cache=x.set(S,A)||x,A};return m.cache=new(Yo.Cache||Si),m}Yo.Cache=Si;function Ko(f){if(typeof f!="function")throw new yn(c);return function(){var h=arguments;switch(h.length){case 0:return!f.call(this);case 1:return!f.call(this,h[0]);case 2:return!f.call(this,h[0],h[1]);case 3:return!f.call(this,h[0],h[1],h[2])}return!f.apply(this,h)}}function MO(f){return tg(2,f)}var RO=_A(function(f,h){h=h.length==1&&Pe(h[0])?nt(h[0],tn(be())):nt(bt(h,1),tn(be()));var m=h.length;return Ie(function(y){for(var S=-1,x=xt(y.length,m);++S=h}),Lr=Jm(function(){return arguments}())?Jm:function(f){return ot(f)&&Ge.call(f,"callee")&&!Bm.call(f,"callee")},Pe=W.isArray,YO=bm?tn(bm):nA;function Ut(f){return f!=null&&Xo(f.length)&&!Ai(f)}function ut(f){return ot(f)&&Ut(f)}function KO(f){return f===!0||f===!1||ot(f)&&Nt(f)==re}var tr=lT||Mf,XO=Sm?tn(Sm):iA;function QO(f){return ot(f)&&f.nodeType===1&&!Ss(f)}function ZO(f){if(f==null)return!0;if(Ut(f)&&(Pe(f)||typeof f=="string"||typeof f.splice=="function"||tr(f)||Pa(f)||Lr(f)))return!f.length;var h=Tt(f);if(h==Ve||h==mt)return!f.size;if(_s(f))return!Kc(f).length;for(var m in f)if(Ge.call(f,m))return!1;return!0}function JO(f,h){return vs(f,h)}function ek(f,h,m){m=typeof m=="function"?m:n;var y=m?m(f,h):n;return y===n?vs(f,h,n,m):!!y}function wf(f){if(!ot(f))return!1;var h=Nt(f);return h==xe||h==Se||typeof f.message=="string"&&typeof f.name=="string"&&!Ss(f)}function tk(f){return typeof f=="number"&&jm(f)}function Ai(f){if(!rt(f))return!1;var h=Nt(f);return h==ke||h==Be||h==q||h==It}function og(f){return typeof f=="number"&&f==Ee(f)}function Xo(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=ce}function rt(f){var h=typeof f;return f!=null&&(h=="object"||h=="function")}function ot(f){return f!=null&&typeof f=="object"}var ug=wm?tn(wm):aA;function nk(f,h){return f===h||Yc(f,h,df(h))}function ik(f,h,m){return m=typeof m=="function"?m:n,Yc(f,h,df(h),m)}function rk(f){return lg(f)&&f!=+f}function ak(f){if(qA(f))throw new Ae(o);return ev(f)}function sk(f){return f===null}function ok(f){return f==null}function lg(f){return typeof f=="number"||ot(f)&&Nt(f)==De}function Ss(f){if(!ot(f)||Nt(f)!=Me)return!1;var h=Co(f);if(h===null)return!0;var m=Ge.call(h,"constructor")&&h.constructor;return typeof m=="function"&&m instanceof m&&_o.call(m)==iT}var Cf=Cm?tn(Cm):sA;function uk(f){return og(f)&&f>=-ce&&f<=ce}var cg=xm?tn(xm):oA;function Qo(f){return typeof f=="string"||!Pe(f)&&ot(f)&&Nt(f)==Wi}function rn(f){return typeof f=="symbol"||ot(f)&&Nt(f)==kr}var Pa=Tm?tn(Tm):uA;function lk(f){return f===n}function ck(f){return ot(f)&&Tt(f)==as}function fk(f){return ot(f)&&Nt(f)==PC}var dk=jo(Xc),hk=jo(function(f,h){return f<=h});function fg(f){if(!f)return[];if(Ut(f))return Qo(f)?Dn(f):Vt(f);if(us&&f[us])return Hx(f[us]());var h=Tt(f),m=h==Ve?Fc:h==mt?vo:Oa;return m(f)}function Pi(f){if(!f)return f===0?f:0;if(f=Cn(f),f===le||f===-le){var h=f<0?-1:1;return h*pe}return f===f?f:0}function Ee(f){var h=Pi(f),m=h%1;return h===h?m?h-m:h:0}function dg(f){return f?Dr(Ee(f),0,M):0}function Cn(f){if(typeof f=="number")return f;if(rn(f))return Y;if(rt(f)){var h=typeof f.valueOf=="function"?f.valueOf():f;f=rt(h)?h+"":h}if(typeof f!="string")return f===0?f:+f;f=Em(f);var m=YC.test(f);return m||XC.test(f)?Ox(f.slice(2),m?2:8):GC.test(f)?Y:+f}function hg(f){return Qn(f,Ht(f))}function pk(f){return f?Dr(Ee(f),-ce,ce):f===0?f:0}function We(f){return f==null?"":nn(f)}var mk=xa(function(f,h){if(_s(h)||Ut(h)){Qn(h,vt(h),f);return}for(var m in h)Ge.call(h,m)&&hs(f,m,h[m])}),pg=xa(function(f,h){Qn(h,Ht(h),f)}),Zo=xa(function(f,h,m,y){Qn(h,Ht(h),f,y)}),vk=xa(function(f,h,m,y){Qn(h,vt(h),f,y)}),gk=xi(Vc);function yk(f,h){var m=Ca(f);return h==null?m:Wm(m,h)}var _k=Ie(function(f,h){f=Ke(f);var m=-1,y=h.length,S=y>2?h[2]:n;for(S&&Ft(h[0],h[1],S)&&(y=1);++m1),x}),Qn(f,cf(f),m),y&&(m=bn(m,d|p|v,$A));for(var S=h.length;S--;)tf(m,h[S]);return m});function Fk(f,h){return vg(f,Ko(be(h)))}var Lk=xi(function(f,h){return f==null?{}:fA(f,h)});function vg(f,h){if(f==null)return{};var m=nt(cf(f),function(y){return[y]});return h=be(h),ov(f,m,function(y,S){return h(y,S[0])})}function Bk(f,h,m){h=Ji(h,f);var y=-1,S=h.length;for(S||(S=1,f=n);++yh){var y=f;f=h,h=y}if(m||f%1||h%1){var S=qm();return xt(f+S*(h-f+Px("1e-"+((S+"").length-1))),h)}return Zc(f,h)}var Xk=Ta(function(f,h,m){return h=h.toLowerCase(),f+(m?_g(h):h)});function _g(f){return Af(We(f).toLowerCase())}function bg(f){return f=We(f),f&&f.replace(ZC,zx).replace(gx,"")}function Qk(f,h,m){f=We(f),h=nn(h);var y=f.length;m=m===n?y:Dr(Ee(m),0,y);var S=m;return m-=h.length,m>=0&&f.slice(m,S)==h}function Zk(f){return f=We(f),f&&MC.test(f)?f.replace(Qp,jx):f}function Jk(f){return f=We(f),f&&LC.test(f)?f.replace(bc,"\\$&"):f}var e$=Ta(function(f,h,m){return f+(m?"-":"")+h.toLowerCase()}),t$=Ta(function(f,h,m){return f+(m?" ":"")+h.toLowerCase()}),n$=Cv("toLowerCase");function i$(f,h,m){f=We(f),h=Ee(h);var y=h?ya(f):0;if(!h||y>=h)return f;var S=(h-y)/2;return zo(Po(S),m)+f+zo(Ao(S),m)}function r$(f,h,m){f=We(f),h=Ee(h);var y=h?ya(f):0;return h&&y>>0,m?(f=We(f),f&&(typeof h=="string"||h!=null&&!Cf(h))&&(h=nn(h),!h&&ga(f))?er(Dn(f),0,m):f.split(h,m)):[]}var f$=Ta(function(f,h,m){return f+(m?" ":"")+Af(h)});function d$(f,h,m){return f=We(f),m=m==null?0:Dr(Ee(m),0,f.length),h=nn(h),f.slice(m,m+h.length)==h}function h$(f,h,m){var y=w.templateSettings;m&&Ft(f,h,m)&&(h=n),f=We(f),h=Zo({},h,y,$v);var S=Zo({},h.imports,y.imports,$v),x=vt(S),A=Nc(S,x),E,z,te=0,ne=h.interpolate||co,ae="__p += '",he=Lc((h.escape||co).source+"|"+ne.source+"|"+(ne===Zp?WC:co).source+"|"+(h.evaluate||co).source+"|$","g"),ye="//# sourceURL="+(Ge.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++wx+"]")+` +`;f.replace(he,function(Ce,ze,qe,an,Lt,sn){return qe||(qe=an),ae+=f.slice(te,sn).replace(JC,qx),ze&&(E=!0,ae+=`' + +__e(`+ze+`) + +'`),Lt&&(z=!0,ae+=`'; +`+Lt+`; +__p += '`),qe&&(ae+=`' + +((__t = (`+qe+`)) == null ? '' : __t) + +'`),te=sn+Ce.length,Ce}),ae+=`'; +`;var we=Ge.call(h,"variable")&&h.variable;if(!we)ae=`with (obj) { +`+ae+` +} +`;else if(UC.test(we))throw new Ae(u);ae=(z?ae.replace(OC,""):ae).replace(kC,"$1").replace($C,"$1;"),ae="function("+(we||"obj")+`) { +`+(we?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(E?", __e = _.escape":"")+(z?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+ae+`return __p +}`;var Re=wg(function(){return Ue(x,ye+"return "+ae).apply(n,A)});if(Re.source=ae,wf(Re))throw Re;return Re}function p$(f){return We(f).toLowerCase()}function m$(f){return We(f).toUpperCase()}function v$(f,h,m){if(f=We(f),f&&(m||h===n))return Em(f);if(!f||!(h=nn(h)))return f;var y=Dn(f),S=Dn(h),x=Mm(y,S),A=Rm(y,S)+1;return er(y,x,A).join("")}function g$(f,h,m){if(f=We(f),f&&(m||h===n))return f.slice(0,Im(f)+1);if(!f||!(h=nn(h)))return f;var y=Dn(f),S=Rm(y,Dn(h))+1;return er(y,0,S).join("")}function y$(f,h,m){if(f=We(f),f&&(m||h===n))return f.replace(Sc,"");if(!f||!(h=nn(h)))return f;var y=Dn(f),S=Mm(y,Dn(h));return er(y,S).join("")}function _$(f,h){var m=H,y=X;if(rt(h)){var S="separator"in h?h.separator:S;m="length"in h?Ee(h.length):m,y="omission"in h?nn(h.omission):y}f=We(f);var x=f.length;if(ga(f)){var A=Dn(f);x=A.length}if(m>=x)return f;var E=m-ya(y);if(E<1)return y;var z=A?er(A,0,E).join(""):f.slice(0,E);if(S===n)return z+y;if(A&&(E+=z.length-E),Cf(S)){if(f.slice(E).search(S)){var te,ne=z;for(S.global||(S=Lc(S.source,We(Jp.exec(S))+"g")),S.lastIndex=0;te=S.exec(ne);)var ae=te.index;z=z.slice(0,ae===n?E:ae)}}else if(f.indexOf(nn(S),E)!=E){var he=z.lastIndexOf(S);he>-1&&(z=z.slice(0,he))}return z+y}function b$(f){return f=We(f),f&&EC.test(f)?f.replace(Xp,Kx):f}var S$=Ta(function(f,h,m){return f+(m?" ":"")+h.toUpperCase()}),Af=Cv("toUpperCase");function Sg(f,h,m){return f=We(f),h=m?n:h,h===n?Ux(f)?Zx(f):Ix(f):f.match(h)||[]}var wg=Ie(function(f,h){try{return en(f,n,h)}catch(m){return wf(m)?m:new Ae(m)}}),w$=xi(function(f,h){return gn(h,function(m){m=Zn(m),wi(f,m,bf(f[m],f))}),f});function C$(f){var h=f==null?0:f.length,m=be();return f=h?nt(f,function(y){if(typeof y[1]!="function")throw new yn(c);return[m(y[0]),y[1]]}):[],Ie(function(y){for(var S=-1;++Sce)return[];var m=M,y=xt(f,M);h=be(h),f-=M;for(var S=Ic(y,h);++m0||h<0)?new je(m):(f<0?m=m.takeRight(-f):f&&(m=m.drop(f)),h!==n&&(h=Ee(h),m=h<0?m.dropRight(-h):m.take(h-f)),m)},je.prototype.takeRightWhile=function(f){return this.reverse().takeWhile(f).reverse()},je.prototype.toArray=function(){return this.take(M)},Xn(je.prototype,function(f,h){var m=/^(?:filter|find|map|reject)|While$/.test(h),y=/^(?:head|last)$/.test(h),S=w[y?"take"+(h=="last"?"Right":""):h],x=y||/^find/.test(h);!S||(w.prototype[h]=function(){var A=this.__wrapped__,E=y?[1]:arguments,z=A instanceof je,te=E[0],ne=z||Pe(A),ae=function(ze){var qe=S.apply(w,Yi([ze],E));return y&&he?qe[0]:qe};ne&&m&&typeof te=="function"&&te.length!=1&&(z=ne=!1);var he=this.__chain__,ye=!!this.__actions__.length,we=x&&!he,Re=z&&!ye;if(!x&&ne){A=Re?A:new je(this);var Ce=f.apply(A,E);return Ce.__actions__.push({func:Ho,args:[ae],thisArg:n}),new _n(Ce,he)}return we&&Re?f.apply(this,E):(Ce=this.thru(ae),we?y?Ce.value()[0]:Ce.value():Ce)})}),gn(["pop","push","shift","sort","splice","unshift"],function(f){var h=go[f],m=/^(?:push|sort|unshift)$/.test(f)?"tap":"thru",y=/^(?:pop|shift)$/.test(f);w.prototype[f]=function(){var S=arguments;if(y&&!this.__chain__){var x=this.value();return h.apply(Pe(x)?x:[],S)}return this[m](function(A){return h.apply(Pe(A)?A:[],S)})}}),Xn(je.prototype,function(f,h){var m=w[h];if(m){var y=m.name+"";Ge.call(wa,y)||(wa[y]=[]),wa[y].push({name:h,func:m})}}),wa[Lo(n,C).name]=[{name:"wrapper",func:n}],je.prototype.clone=bT,je.prototype.reverse=ST,je.prototype.value=wT,w.prototype.at=QP,w.prototype.chain=ZP,w.prototype.commit=JP,w.prototype.next=eO,w.prototype.plant=nO,w.prototype.reverse=iO,w.prototype.toJSON=w.prototype.valueOf=w.prototype.value=rO,w.prototype.first=w.prototype.head,us&&(w.prototype[us]=tO),w},_a=Jx();$r?(($r.exports=_a)._=_a,Pc._=_a):_t._=_a}).call(Da)})(Sh,Sh.exports);var vX=Object.defineProperty,gX=Object.getOwnPropertyDescriptor,G1=(e,t,n,r)=>{for(var s=r>1?void 0:r?gX(t,n):t,o=e.length-1,c;o>=0;o--)(c=e[o])&&(s=(r?c(t,n,s):c(s))||s);return r&&s&&vX(t,n,s),s};const yX="https://api.github.com/users/";let xl=class extends $e{constructor(){super(...arguments),this.githubUsername=this.$store.state.githubUsername,this.isValid=!1,this.profile={},this.debouncedOnUsernameChanged=Sh.exports.debounce(this.onUsernameChanged,500)}get status(){return this.isValid?"is-success":"is-danger"}mounted(){this.onUsernameChanged()}onUsernameChanged(){console.log(this.githubUsername),Us.get(`${yX}${this.githubUsername}`).then(e=>{this.profile=e.data,this.isValid=!0}).catch(e=>{console.log(e),this.isValid=!1})}saveProfile(){this.$store.commit("setGithubUsername",this.githubUsername),this.$router.back()}};G1([Za("githubUsername")],xl.prototype,"debouncedOnUsernameChanged",2);xl=G1([Wn({store:so})],xl);var _X=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"profile is-size-4"},[n("b-image",{attrs:{src:e.profile.avatar_url,alt:"Profile Picture of User",ratio:"1by1",rounded:""}}),n("h1",[e._v(e._s(e.profile.name))]),n("b-field",{attrs:{label:"Github Username",type:e.status,message:"Check if your username is correct"}},[n("b-input",{attrs:{maxlength:"30"},model:{value:e.githubUsername,callback:function(r){e.githubUsername=r},expression:"githubUsername"}})],1),n("div",{staticClass:"buttons"},[n("b-button",{attrs:{rounded:"",type:"is-black",expanded:"",disabled:!e.isValid},on:{click:e.saveProfile}},[e._v("Save Profile")])],1)],1)},bX=[];const K_={};var SX=ui(xl,_X,bX,!1,wX,"34f55bee",null,null);function wX(e){for(let t in K_)this[t]=K_[t]}var CX=function(){return SX.exports}();$e.use(Hw);const xX=[{path:"/",name:"home",component:F9},{path:"/camera",name:"camera",component:H9},{path:"/microphone",name:"microphone",component:()=>PH(()=>import("./Microphone.5b9de2a7.js"),["assets/Microphone.5b9de2a7.js","assets/Microphone.ce721c47.css"])},{path:"/faceai",name:"faceai",component:aK},{path:"/vision",name:"vision",component:mX},{path:"/editprofile",name:"editprofile",component:CX}],is=new Hw({base:"/anyonecancode/",routes:xX});$e.use(k9,{router:is});var ic={},Bp={};Object.defineProperty(Bp,"__esModule",{value:!0});function TX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var AX=function e(t){TX(this,e),this.id=t.deviceId,this.label=t.label};Bp.default=AX;Object.defineProperty(ic,"__esModule",{value:!0});ic.Constraints=void 0;var Y1=function(){function e(t,n){for(var r=0;r0&&arguments[0]!==void 0?arguments[0]:!1;return this.video.facingMode==="user"?this.video.facingMode="environment":n?this.video.facingMode={exact:"environment"}:this.video.facingMode="user",this}},{key:"getConstraint",value:function(){return{video:this.video,audio:this.audio}}}]),e}(),$X=function(){function e(t,n){K1(this,e),this.devices=[],this.stream=null,this.canvasElement=n,this.videoElement=t,this.constraints=new ud}return Y1(e,[{key:"getDevices",value:function(){var n=this;return new Promise(async function(r,s){if(n.devices.length>0){r(n.devices);return}try{var o=await navigator.mediaDevices.enumerateDevices();o.forEach(function(c){c.kind&&c.kind.toLocaleLowerCase()==="videoinput"&&n.devices.push(new OX.default(c))}),r(n.devices)}catch(c){console.error("GetDevices",c),s(c)}})}},{key:"setVideoConstraints",value:function(n){return this.constraints||(this.constraints=new ud),this.constraints.video=n,this}},{key:"snap",value:function(){this.canvasElement.width=this.videoElement.videoWidth,this.canvasElement.height=this.videoElement.videoHeight;var n=this.canvasElement.getContext("2d");return n.drawImage(this.videoElement,0,0,this.canvasElement.width,this.canvasElement.height),this.canvasElement}},{key:"snapAsDataUrl",value:function(){this.snap();var n=this.canvasElement.toDataURL("image/png");return n}},{key:"snapAsBlob",value:function(){var n=this;return this.snap(),new Promise(function(r){n.canvasElement.toBlob(function(s){r(s)},"image/png",1)})}},{key:"start",value:function(){var n=this;return new Promise(async function(r,s){try{await n.getDevices();var o=await navigator.mediaDevices.getUserMedia(n.constraints.getConstraint());n.videoElement.srcObject=o,n.stream=o,r()}catch(c){console.error("StartCamera",c),s(c)}})}},{key:"stop",value:function(){if(!!this.stream){var n=this.videoElement.srcObject.getTracks();n.forEach(function(r){return r.stop()})}}},{key:"switch",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return new Promise(async function(s,o){n.constraints=n.constraints.switchFacingMode(r),n.stop();try{await n.start(),s()}catch(c){console.error("SwitchCamera",c),o(c)}})}}],[{key:"isCameraSupported",value:function(){return"mediaDevices"in navigator&&"getUserMedia"in navigator.mediaDevices}},{key:"tryInvokePermission",value:function(n,r){return new Promise(async function(s,o){try{await navigator.mediaDevices.getUserMedia(new ud),s(new e(n,r))}catch(c){console.error("MediaDevices",c),o(c)}})}}]),e}(),X1=ic.default=$X,EX={computed:{hasHeader:function(){return typeof this.$slots.header!="undefined"&&this.$slots.header!==null},multiDevice:function(){return this.camera?this.camera.devices.length>1:!1}},data:function(){return{camera:null,canvasElementId:"canvas-"+Xs().replace(/-/g,""),canvas:null,picture:null,pictureDataUrl:null,switching:!1,video:null,videoElementId:"video-"+Xs().replace(/-/g,""),visibleMask:!1}},methods:{approve:function(){this.$emit("input",this.picture),this.$emit("approve",this.picture)},close:function(){this.stop(),this.$emit("close")},snapAsBlob:function(){var t=this;if(!this.camera){console.error("Camera not found to take a picture");return}return new Promise(function(n){t.camera.snapAsBlob().then(function(r){t.picture=r,n(r)})})},snapAsDataUrl:function(){if(!this.camera){console.error("Camera not found to take a picture");return}return this.picture=this.camera.snapAsDataUrl(),this.stop(),this.mustApprove||this.$emit("input",this.picture),this.picture},start:function(){var t=this;if(this.camera){this.picture=null,this.$emit("input",null),this.$emit("loading",!0),this.camera.start().finally(function(){return t.$emit("loading",!1)});return}return this.video=document.getElementById(this.videoElementId),this.canvas=document.getElementById(this.canvasElementId),new Promise(function(n){X1.tryInvokePermission(t.video,t.canvas).then(function(r){t.camera=r,n(r)})})},stop:function(){!this.camera||this.camera.stop()},switchCamera:function(t){var n=this;if(t===void 0&&(t=!1),!(this.switching&&!t)){if(!this.camera){console.error("No camera found to switch...");return}return this.switching=!0,new Promise(function(r,s){n.camera.switch(t).then(function(){n.switching=!1,r()}).catch(function(){t?(n.switching=!1,s()):n.switchCamera(!0)})})}}},mounted:function(){this.startOnMounted&&(this.$emit("loading",!0),this.start().then(function(t){t&&t.start()}).finally(this.$emit("loading",!1)))},name:"fullscreen-view-camera",props:{fullscreenZIndex:Number,mustApprove:Boolean,overlayMask:String,startOnMounted:Boolean,visibleOverlay:Boolean},watch:{picture:function(){var t=this;if(this.picture||(this.pictureDataUrl=null),!(this.picture instanceof Blob))this.pictureDataUrl=this.picture;else{var n=new FileReader;n.readAsDataURL(this.picture),n.onload=function(){t.pictureDataUrl=n.result}}}}};function zp(e,t,n,r,s,o,c,u,i,a){typeof c!="boolean"&&(i=u,u=c,c=!1);var l=typeof n=="function"?n.options:n;e&&e.render&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),r&&(l._scopeId=r);var d;if(o?(d=function(g){g=g||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!g&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(g=__VUE_SSR_CONTEXT__),t&&t.call(this,i(g)),g&&g._registeredComponents&&g._registeredComponents.add(o)},l._ssrRegister=d):t&&(d=c?function(g){t.call(this,a(g,this.$root.$options.shadowRoot))}:function(g){t.call(this,u(g))}),d)if(l.functional){var p=l.render;l.render=function(_,b){return d.call(b),p(_,b)}}else{var v=l.beforeCreate;l.beforeCreate=v?[].concat(v,d):[d]}return n}var MX=typeof navigator!="undefined"&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function Q1(e){return function(t,n){return RX(t,n)}}var ld,X_={};function RX(e,t){var n=MX?t.media||"default":e,r=X_[n]||(X_[n]={ids:new Set,styles:[]});if(!r.ids.has(e)){r.ids.add(e);var s=t.source;if(t.map&&(s+=` +/*# sourceURL=`+t.map.sources[0]+" */",s+=` +/*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),r.element||(r.element=document.createElement("style"),r.element.type="text/css",t.media&&r.element.setAttribute("media",t.media),ld===void 0&&(ld=document.head||document.getElementsByTagName("head")[0]),ld.appendChild(r.element)),"styleSheet"in r.element)r.styles.push(s),r.element.styleSheet.cssText=r.styles.filter(Boolean).join(` +`);else{var o=r.ids.size-1,c=document.createTextNode(s),u=r.element.childNodes;u[o]&&r.element.removeChild(u[o]),u.length?r.element.insertBefore(c,u[o]):r.element.appendChild(c)}}}var DX=EX,Z1=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"fullscreen-camera",style:{"z-index":e.fullscreenZIndex}},[n("div",{staticClass:"camera-stack"},[n("div",{staticClass:"camera-stack-header"},[e._t("header"),e._v(" "),e.hasHeader?e._e():n("a",{staticClass:"close-button",attrs:{role:"button"},on:{click:e.close}},[e._v("\xD7")])],2),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.picture,expression:"!picture"}],staticClass:"video-wrapper"},[n("video",{attrs:{id:e.videoElementId,autoplay:"",playsinline:""}}),e._v(" "),n("div",{staticClass:"overlay-mask",class:{"visible-overlay":e.visibleOverlay}},[e.visibleMask?n("img",{attrs:{src:e.overlayMask}}):e._e()])]),e._v(" "),n("canvas",{staticStyle:{display:"none"},attrs:{id:e.canvasElementId}}),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.picture,expression:"picture"}],staticClass:"camera-snap",style:{"background-image":"url("+e.pictureDataUrl+")"}}),e._v(" "),n("div",{staticClass:"camera-stack-controls",class:{background:!!e.picture}},[n("div",{staticClass:"camera-stack-controls-wrapper"},[n("div",{staticClass:"control-slot"},[e.overlayMask&&!e.picture?n("a",{staticClass:"secondary-button",attrs:{role:"button"},on:{click:function(r){e.visibleMask=!e.visibleMask}}},[n("i",{staticClass:"mdi mdi-grid-large"})]):e._e()]),e._v(" "),n("div",{staticClass:"control-slot"},[e.picture?e._e():n("a",{attrs:{role:"button"},on:{click:function(r){return e.$emit("snap")}}},[n("i",{staticClass:"mdi mdi-circle"})]),e._v(" "),e.picture&&e.mustApprove?n("a",{attrs:{role:"button"},on:{click:e.approve}},[n("i",{staticClass:"mdi mdi-check"})]):e._e()]),e._v(" "),n("div",{staticClass:"control-slot"},[e.multiDevice&&!e.picture?n("a",{staticClass:"secondary-button",attrs:{disabled:e.switching,role:"button"},on:{click:function(r){return e.switchCamera(!1)}}},[n("i",{staticClass:"mdi mdi-camera-switch"})]):e._e(),e._v(" "),e.picture?n("a",{staticClass:"secondary-button",attrs:{role:"button"},on:{click:e.start}},[n("i",{staticClass:"mdi mdi-camera-retake-outline"})]):e._e()])])])])])},IX=[];Z1._withStripped=!0;var NX=function(e){!e||e("data-v-36306e52_0",{source:`.fullscreen-camera[data-v-36306e52] { + position: fixed; + left: 0; + top: 0; + width: 100%; + height: 100%; +} +.fullscreen-camera .camera-stack[data-v-36306e52] { + display: flex; + flex-direction: column; + position: relative; + height: 100%; +} +.fullscreen-camera .camera-stack .camera-stack-header a.close-button[data-v-36306e52] { + position: fixed; + top: 5px; + right: 15px; + color: #fff; + font-family: Roboto, Tahoma; + font-size: 2.5rem; + line-height: 40px; + font-weight: 300 !important; + z-index: 100; +} +.fullscreen-camera .camera-stack .video-wrapper[data-v-36306e52] { + height: 100%; + width: 100%; + align-self: stretch; + align-items: center; + position: relative; + display: flex; + flex-direction: column; +} +.fullscreen-camera .camera-stack .video-wrapper video[data-v-36306e52] { + object-fit: cover; + position: absolute; + width: 100%; + height: 100%; + z-index: -1; +} +.fullscreen-camera .camera-stack .video-wrapper .overlay-mask[data-v-36306e52] { + max-width: 50vh; + max-height: 50vh; + width: 100%; + height: 100%; + margin-top: 10vh; +} +.fullscreen-camera .camera-stack .video-wrapper .overlay-mask.visible-overlay[data-v-36306e52] { + box-shadow: 0px 0px 2000px 2000px rgba(0, 0, 0, 0.8); +} +.fullscreen-camera .camera-stack .video-wrapper .overlay-mask img[data-v-36306e52] { + width: 100%; +} +.fullscreen-camera .camera-stack .camera-snap[data-v-36306e52] { + background-repeat: no-repeat; + background-position: center; + background-size: cover; + width: 100%; + height: 100%; +} +.fullscreen-camera .camera-stack .camera-stack-controls[data-v-36306e52] { + width: 100%; + display: flex; + align-items: center; + position: fixed; + bottom: 0; + padding: 5vh 0px; +} +.fullscreen-camera .camera-stack .camera-stack-controls.background[data-v-36306e52] { + background-color: rgba(0, 0, 0, 0.8) !important; +} +.fullscreen-camera .camera-stack .camera-stack-controls .camera-stack-controls-wrapper[data-v-36306e52] { + max-width: 500px; + width: 100%; + display: flex; + align-items: center; + margin: 0 auto; +} +.fullscreen-camera .camera-stack .camera-stack-controls .camera-stack-controls-wrapper .control-slot[data-v-36306e52] { + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + opacity: 0.8; +} +.fullscreen-camera .camera-stack .camera-stack-controls .camera-stack-controls-wrapper .control-slot a[data-v-36306e52] { + color: #fff; + border-radius: 100%; + font-size: 35pt; + padding: 8px; + display: flex; + align-items: center; + justify-content: center; + box-shadow: 0px 0px 1px 2px #fff; +} +.fullscreen-camera .camera-stack .camera-stack-controls .camera-stack-controls-wrapper .control-slot a i[data-v-36306e52]:before { + display: block !important; + line-height: normal !important; +} +.fullscreen-camera .camera-stack .camera-stack-controls .camera-stack-controls-wrapper .control-slot a.secondary-button[data-v-36306e52] { + font-size: 15pt; + padding: 10px; +} + +/*# sourceMappingURL=FullscreenViewCamera.vue.map */`,map:{version:3,sources:["D:\\Projects\\easy-vue-camera\\src\\components\\FullscreenViewCamera.vue","FullscreenViewCamera.vue"],names:[],mappings:"AAgMA;EACA,eAAA;EACA,OAAA;EACA,MAAA;EACA,WAAA;EACA,YAAA;AC/LA;ADgMA;EACA,aAAA;EACA,sBAAA;EACA,kBAAA;EACA,YAAA;AC9LA;ADiMA;EACA,eAAA;EACA,QAAA;EACA,WAAA;EACA,WAAA;EACA,2BAAA;EACA,iBAAA;EACA,iBAAA;EACA,2BAAA;EACA,YAAA;AC/LA;ADmMA;EACA,YAAA;EACA,WAAA;EACA,mBAAA;EACA,mBAAA;EACA,kBAAA;EACA,aAAA;EACA,sBAAA;ACjMA;ADkMA;EACA,iBAAA;EACA,kBAAA;EACA,WAAA;EACA,YAAA;EACA,WAAA;AChMA;ADkMA;EACA,eAAA;EACA,gBAAA;EACA,WAAA;EACA,YAAA;EACA,gBAAA;AChMA;ADiMA;EACA,oDAAA;AC/LA;ADiMA;EACA,WAAA;AC/LA;ADmMA;EACA,4BAAA;EACA,2BAAA;EACA,sBAAA;EACA,WAAA;EACA,YAAA;ACjMA;ADmMA;EACA,WAAA;EACA,aAAA;EACA,mBAAA;EACA,eAAA;EACA,SAAA;EACA,gBAAA;ACjMA;ADkMA;EACA,+CAAA;AChMA;ADkMA;EACA,gBAAA;EACA,WAAA;EACA,aAAA;EACA,mBAAA;EACA,cAAA;AChMA;ADiMA;EACA,WAAA;EACA,YAAA;EACA,aAAA;EACA,mBAAA;EACA,uBAAA;EACA,YAAA;AC/LA;ADgMA;EACA,WAAA;EACA,mBAAA;EACA,eAAA;EACA,YAAA;EACA,aAAA;EACA,mBAAA;EACA,uBAAA;EACA,gCAAA;AC9LA;ADgMA;EACA,yBAAA;EACA,8BAAA;AC9LA;ADiMA;EACA,eAAA;EACA,aAAA;AC/LA;;AAEA,mDAAmD",file:"FullscreenViewCamera.vue",sourcesContent:[`\r +\r + + + + + +
+ + + diff --git a/robots.txt b/robots.txt new file mode 100644 index 000000000..eb0536286 --- /dev/null +++ b/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: