webdata.omnimetrix.net
Open in
urlscan Pro
2606:4700:20::681a:b4b
Public Scan
Submitted URL: http://webdata.omnimetrix.net/scripts.da7f6d03b0fa55af.js
Effective URL: https://webdata.omnimetrix.net/scripts.da7f6d03b0fa55af.js
Submission: On October 31 via manual from US — Scanned from US
Effective URL: https://webdata.omnimetrix.net/scripts.da7f6d03b0fa55af.js
Submission: On October 31 via manual from US — Scanned from US
Form analysis
0 forms found in the DOMText Content
var t,e,Sr=Object.defineProperty,Tr=Object.defineProperties,Er=Object.getOwnPropertyDescriptors,sr=Object.getOwnPropertySymbols,Cr=Object.prototype.hasOwnProperty,Or=Object.prototype.propertyIsEnumerable,ar=(i,f,g)=>f in i?Sr(i,f,{enumerable:!0,configurable:!0,writable:!0,value:g}):i[f]=g,fn=(i,f)=>{for(var g in f||(f={}))Cr.call(f,g)&&ar(i,g,f[g]);if(sr)for(var g of sr(f))Or.call(f,g)&&ar(i,g,f[g]);return i},Ni=(i,f)=>Tr(i,Er(f)),Gt=(i,f,g)=>new Promise((j,l)=>{var S=p=>{try{k(g.next(p))}catch(m){l(m)}},w=p=>{try{k(g.throw(p))}catch(m){l(m)}},k=p=>p.done?j(p.value):Promise.resolve(p.value).then(S,w);k((g=g.apply(i,f)).next())});t=self,e=()=>(()=>{var i={d:(h,n)=>{for(var r in n)i.o(n,r)&&!i.o(h,r)&&Object.defineProperty(h,r,{enumerable:!0,get:n[r]})}};i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(h){if("object"==typeof window)return window}}(),i.o=(h,n)=>Object.prototype.hasOwnProperty.call(h,n),i.r=h=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(h,"t",{value:!0})};var f,h,g={};i.r(g),i.d(g,{AbortError:()=>S,DefaultHttpClient:()=>Z,HttpClient:()=>C,HttpError:()=>j,HttpResponse:()=>u,HttpTransportType:()=>Oe,HubConnection:()=>me,HubConnectionBuilder:()=>a,HubConnectionState:()=>J,JsonHubProtocol:()=>oe,LogLevel:()=>f,MessageType:()=>Q,NullLogger:()=>T,Subject:()=>U,TimeoutError:()=>l,TransferFormat:()=>we,VERSION:()=>M});class j extends Error{constructor(n,r){const d=new.target.prototype;super(`${n}: Status code '${r}'`),this.statusCode=r,this.__proto__=d}}class l extends Error{constructor(n="A timeout occurred."){const r=new.target.prototype;super(n),this.__proto__=r}}class S extends Error{constructor(n="An abort occurred."){const r=new.target.prototype;super(n),this.__proto__=r}}class w extends Error{constructor(n,r){const d=new.target.prototype;super(n),this.transport=r,this.errorType="UnsupportedTransportError",this.__proto__=d}}class k extends Error{constructor(n,r){const d=new.target.prototype;super(n),this.transport=r,this.errorType="DisabledTransportError",this.__proto__=d}}class p extends Error{constructor(n,r){const d=new.target.prototype;super(n),this.transport=r,this.errorType="FailedToStartTransportError",this.__proto__=d}}class m extends Error{constructor(n){const r=new.target.prototype;super(n),this.errorType="FailedToNegotiateWithServerError",this.__proto__=r}}class v extends Error{constructor(n,r){const d=new.target.prototype;super(n),this.innerErrors=r,this.__proto__=d}}class u{constructor(n,r,d){this.statusCode=n,this.statusText=r,this.content=d}}class C{get(n,r){return this.send(Ni(fn({},r),{method:"GET",url:n}))}post(n,r){return this.send(Ni(fn({},r),{method:"POST",url:n}))}delete(n,r){return this.send(Ni(fn({},r),{method:"DELETE",url:n}))}getCookieString(n){return""}}(h=f||(f={}))[h.Trace=0]="Trace",h[h.Debug=1]="Debug",h[h.Information=2]="Information",h[h.Warning=3]="Warning",h[h.Error=4]="Error",h[h.Critical=5]="Critical",h[h.None=6]="None";class T{constructor(){}log(n,r){}}T.instance=new T;const M="8.0.7";class O{static isRequired(n,r){if(null==n)throw new Error(`The '${r}' argument is required.`)}static isNotEmpty(n,r){if(!n||n.match(/^\s*$/))throw new Error(`The '${r}' argument should not be empty.`)}static isIn(n,r,d){if(!(n in r))throw new Error(`Unknown ${d} value: ${n}.`)}}class b{static get isBrowser(){return!b.isNode&&"object"==typeof window&&"object"==typeof window.document}static get isWebWorker(){return!b.isNode&&"object"==typeof self&&"importScripts"in self}static get isReactNative(){return!b.isNode&&"object"==typeof window&&void 0===window.document}static get isNode(){return"undefined"!=typeof process&&process.release&&"node"===process.release.name}}function A(h,n){let r="";return c(h)?(r=`Binary data of length ${h.byteLength}`,n&&(r+=`. Content: '${function(d){const E=new Uint8Array(d);let F="";return E.forEach(I=>{F+=`0x${I<16?"0":""}${I.toString(16)} `}),F.substr(0,F.length-1)}(h)}'`)):"string"==typeof h&&(r=`String data of length ${h.length}`,n&&(r+=`. Content: '${h}'`)),r}function c(h){return h&&"undefined"!=typeof ArrayBuffer&&(h instanceof ArrayBuffer||h.constructor&&"ArrayBuffer"===h.constructor.name)}function P(h,n,r,d,E,F){return Gt(this,null,function*(){const I={},[Y,V]=o();I[Y]=V,h.log(f.Trace,`(${n} transport) sending data. ${A(E,F.logMessageContent)}.`);const ie=c(E)?"arraybuffer":"text",re=yield r.post(d,{content:E,headers:fn(fn({},I),F.headers),responseType:ie,timeout:F.timeout,withCredentials:F.withCredentials});h.log(f.Trace,`(${n} transport) request complete. Response status: ${re.statusCode}.`)})}class B{constructor(n,r){this.i=n,this.h=r}dispose(){const n=this.i.observers.indexOf(this.h);n>-1&&this.i.observers.splice(n,1),0===this.i.observers.length&&this.i.cancelCallback&&this.i.cancelCallback().catch(r=>{})}}class q{constructor(n){this.l=n,this.out=console}log(n,r){if(n>=this.l){const d=`[${(new Date).toISOString()}] ${f[n]}: ${r}`;switch(n){case f.Critical:case f.Error:this.out.error(d);break;case f.Warning:this.out.warn(d);break;case f.Information:this.out.info(d);break;default:this.out.log(d)}}}}function o(){let h="X-SignalR-User-Agent";return b.isNode&&(h="User-Agent"),[h,y(M,_(),b.isNode?"NodeJS":"Browser",R())]}function y(h,n,r,d){let E="Microsoft SignalR/";const F=h.split(".");return E+=`${F[0]}.${F[1]}`,E+=` (${h}; `,E+=n&&""!==n?`${n}; `:"Unknown OS; ",E+=`${r}`,E+=d?`; ${d}`:"; Unknown Runtime Version",E+=")",E}function _(){if(!b.isNode)return"";switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}}function R(){if(b.isNode)return process.versions.node}function N(h){return h.stack?h.stack:h.message?h.message:`${h}`}class W extends C{constructor(n){if(super(),this.u=n,"undefined"==typeof fetch||b.isNode){const r=require;this.p=new(r("tough-cookie").CookieJar),this.m="undefined"==typeof fetch?r("node-fetch"):fetch,this.m=r("fetch-cookie")(this.m,this.p)}else this.m=fetch.bind(function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==i.g)return i.g;throw new Error("could not find global")}());if("undefined"==typeof AbortController){const r=require;this.v=r("abort-controller")}else this.v=AbortController}send(n){return Gt(this,null,function*(){if(n.abortSignal&&n.abortSignal.aborted)throw new S;if(!n.method)throw new Error("No method defined.");if(!n.url)throw new Error("No url defined.");const r=new this.v;let d;n.abortSignal&&(n.abortSignal.onabort=()=>{r.abort(),d=new S});let E,F=null;n.timeout&&(F=setTimeout(()=>{r.abort(),this.u.log(f.Warning,"Timeout from HTTP request."),d=new l},n.timeout)),""===n.content&&(n.content=void 0),n.content&&(n.headers=n.headers||{},n.headers["Content-Type"]=c(n.content)?"application/octet-stream":"text/plain;charset=UTF-8");try{E=yield this.m(n.url,{body:n.content,cache:"no-cache",credentials:!0===n.withCredentials?"include":"same-origin",headers:fn({"X-Requested-With":"XMLHttpRequest"},n.headers),method:n.method,mode:"cors",redirect:"follow",signal:r.signal})}catch(V){throw d||(this.u.log(f.Warning,`Error from HTTP request. ${V}.`),V)}finally{F&&clearTimeout(F),n.abortSignal&&(n.abortSignal.onabort=null)}if(!E.ok){const V=yield G(E,"text");throw new j(V||E.statusText,E.status)}const I=G(E,n.responseType),Y=yield I;return new u(E.status,E.statusText,Y)})}getCookieString(n){let r="";return b.isNode&&this.p&&this.p.getCookies(n,(d,E)=>r=E.join("; ")),r}}function G(h,n){let r;switch(n){case"arraybuffer":r=h.arrayBuffer();break;case"text":default:r=h.text();break;case"blob":case"document":case"json":throw new Error(`${n} is not supported.`)}return r}class ne extends C{constructor(n){super(),this.u=n}send(n){return n.abortSignal&&n.abortSignal.aborted?Promise.reject(new S):n.method?n.url?new Promise((r,d)=>{const E=new XMLHttpRequest;E.open(n.method,n.url,!0),E.withCredentials=void 0===n.withCredentials||n.withCredentials,E.setRequestHeader("X-Requested-With","XMLHttpRequest"),""===n.content&&(n.content=void 0),n.content&&(c(n.content)?E.setRequestHeader("Content-Type","application/octet-stream"):E.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const F=n.headers;F&&Object.keys(F).forEach(I=>{E.setRequestHeader(I,F[I])}),n.responseType&&(E.responseType=n.responseType),n.abortSignal&&(n.abortSignal.onabort=()=>{E.abort(),d(new S)}),n.timeout&&(E.timeout=n.timeout),E.onload=()=>{n.abortSignal&&(n.abortSignal.onabort=null),E.status>=200&&E.status<300?r(new u(E.status,E.statusText,E.response||E.responseText)):d(new j(E.response||E.responseText||E.statusText,E.status))},E.onerror=()=>{this.u.log(f.Warning,`Error from HTTP request. ${E.status}: ${E.statusText}.`),d(new j(E.statusText,E.status))},E.ontimeout=()=>{this.u.log(f.Warning,"Timeout from HTTP request."),d(new l)},E.send(n.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class Z extends C{constructor(n){if(super(),"undefined"!=typeof fetch||b.isNode)this.$=new W(n);else{if("undefined"==typeof XMLHttpRequest)throw new Error("No usable HttpClient found.");this.$=new ne(n)}}send(n){return n.abortSignal&&n.abortSignal.aborted?Promise.reject(new S):n.method?n.url?this.$.send(n):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(n){return this.$.getCookieString(n)}}class te{static write(n){return`${n}${te.RecordSeparator}`}static parse(n){if(n[n.length-1]!==te.RecordSeparator)throw new Error("Message is incomplete.");const r=n.split(te.RecordSeparator);return r.pop(),r}}te.RecordSeparatorCode=30,te.RecordSeparator=String.fromCharCode(te.RecordSeparatorCode);class ge{writeHandshakeRequest(n){return te.write(JSON.stringify(n))}parseHandshakeResponse(n){let r,d;if(c(n)){const I=new Uint8Array(n),Y=I.indexOf(te.RecordSeparatorCode);if(-1===Y)throw new Error("Message is incomplete.");const V=Y+1;r=String.fromCharCode.apply(null,Array.prototype.slice.call(I.slice(0,V))),d=I.byteLength>V?I.slice(V).buffer:null}else{const I=n,Y=I.indexOf(te.RecordSeparator);if(-1===Y)throw new Error("Message is incomplete.");const V=Y+1;r=I.substring(0,V),d=I.length>V?I.substring(V):null}const E=te.parse(r),F=JSON.parse(E[0]);if(F.type)throw new Error("Expected a handshake response from the server.");return[d,F]}}var Q,J;!function(h){h[h.Invocation=1]="Invocation",h[h.StreamItem=2]="StreamItem",h[h.Completion=3]="Completion",h[h.StreamInvocation=4]="StreamInvocation",h[h.CancelInvocation=5]="CancelInvocation",h[h.Ping=6]="Ping",h[h.Close=7]="Close",h[h.Ack=8]="Ack",h[h.Sequence=9]="Sequence"}(Q||(Q={}));class U{constructor(){this.observers=[]}next(n){for(const r of this.observers)r.next(n)}error(n){for(const r of this.observers)r.error&&r.error(n)}complete(){for(const n of this.observers)n.complete&&n.complete()}subscribe(n){return this.observers.push(n),new B(this,n)}}class se{constructor(n,r,d){this.C=1e5,this.S=[],this.k=0,this.P=!1,this.T=1,this.I=0,this._=0,this.H=!1,this.D=n,this.R=r,this.C=d}A(n){return Gt(this,null,function*(){const r=this.D.writeMessage(n);let d=Promise.resolve();if(this.U(n)){this.k++;let E=()=>{},F=()=>{};c(r)?this._+=r.byteLength:this._+=r.length,this._>=this.C&&(d=new Promise((I,Y)=>{E=I,F=Y})),this.S.push(new de(r,this.k,E,F))}try{this.H||(yield this.R.send(r))}catch(E){this.L()}yield d})}N(n){let r=-1;for(let d=0;d<this.S.length;d++){const E=this.S[d];if(E.q<=n.sequenceId)r=d,c(E.M)?this._-=E.M.byteLength:this._-=E.M.length,E.j();else{if(!(this._<this.C))break;E.j()}}-1!==r&&(this.S=this.S.slice(r+1))}W(n){if(this.P)return n.type===Q.Sequence&&(this.P=!1,!0);if(!this.U(n))return!0;const r=this.T;return this.T++,r<=this.I?(r===this.I&&this.O(),!1):(this.I=r,this.O(),!0)}F(n){n.sequenceId>this.T?this.R.stop(new Error("Sequence ID greater than amount of messages we've received.")):this.T=n.sequenceId}L(){this.H=!0,this.P=!0}B(){return Gt(this,null,function*(){const n=0!==this.S.length?this.S[0].q:this.k+1;yield this.R.send(this.D.writeMessage({type:Q.Sequence,sequenceId:n}));const r=this.S;for(const d of r)yield this.R.send(d.M);this.H=!1})}X(n){null!=n||(n=new Error("Unable to reconnect to server."));for(const r of this.S)r.J(n)}U(n){switch(n.type){case Q.Invocation:case Q.StreamItem:case Q.Completion:case Q.StreamInvocation:case Q.CancelInvocation:return!0;case Q.Close:case Q.Sequence:case Q.Ping:case Q.Ack:return!1}}O(){void 0===this.V&&(this.V=setTimeout(()=>Gt(this,null,function*(){try{this.H||(yield this.R.send(this.D.writeMessage({type:Q.Ack,sequenceId:this.I})))}catch(n){}clearTimeout(this.V),this.V=void 0}),1e3))}}class de{constructor(n,r,d,E){this.M=n,this.q=r,this.j=d,this.J=E}}!function(h){h.Disconnected="Disconnected",h.Connecting="Connecting",h.Connected="Connected",h.Disconnecting="Disconnecting",h.Reconnecting="Reconnecting"}(J||(J={}));class me{static create(n,r,d,E,F,I,Y){return new me(n,r,d,E,F,I,Y)}constructor(n,r,d,E,F,I,Y){this.K=0,this.G=()=>{this.u.log(f.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},O.isRequired(n,"connection"),O.isRequired(r,"logger"),O.isRequired(d,"protocol"),this.serverTimeoutInMilliseconds=null!=F?F:3e4,this.keepAliveIntervalInMilliseconds=null!=I?I:15e3,this.Y=null!=Y?Y:1e5,this.u=r,this.D=d,this.connection=n,this.Z=E,this.tt=new ge,this.connection.onreceive=V=>this.et(V),this.connection.onclose=V=>this.st(V),this.it={},this.nt={},this.rt=[],this.ot=[],this.ht=[],this.ct=0,this.lt=!1,this.ut=J.Disconnected,this.dt=!1,this.ft=this.D.writeMessage({type:Q.Ping})}get state(){return this.ut}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(n){if(this.ut!==J.Disconnected&&this.ut!==J.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!n)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=n}start(){return this.wt=this.gt(),this.wt}gt(){return Gt(this,null,function*(){if(this.ut!==J.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this.ut=J.Connecting,this.u.log(f.Debug,"Starting HubConnection.");try{yield this.yt(),b.isBrowser&&window.document.addEventListener("freeze",this.G),this.ut=J.Connected,this.dt=!0,this.u.log(f.Debug,"HubConnection connected successfully.")}catch(n){return this.ut=J.Disconnected,this.u.log(f.Debug,`HubConnection failed to start successfully because of error '${n}'.`),Promise.reject(n)}})}yt(){return Gt(this,null,function*(){this.bt=void 0,this.lt=!1;const n=new Promise((r,d)=>{this.vt=r,this.Et=d});yield this.connection.start(this.D.transferFormat);try{let r=this.D.version;this.connection.features.reconnect||(r=1);const d={protocol:this.D.name,version:r};if(this.u.log(f.Debug,"Sending handshake request."),yield this.$t(this.tt.writeHandshakeRequest(d)),this.u.log(f.Information,`Using HubProtocol '${this.D.name}'.`),this.Ct(),this.St(),this.kt(),yield n,this.bt)throw this.bt;this.connection.features.reconnect&&(this.Pt=new se(this.D,this.connection,this.Y),this.connection.features.disconnected=this.Pt.L.bind(this.Pt),this.connection.features.resend=()=>{if(this.Pt)return this.Pt.B()}),this.connection.features.inherentKeepAlive||(yield this.$t(this.ft))}catch(r){throw this.u.log(f.Debug,`Hub handshake failed with error '${r}' during start(). Stopping HubConnection.`),this.Ct(),this.Tt(),yield this.connection.stop(r),r}})}stop(){return Gt(this,null,function*(){const n=this.wt;this.connection.features.reconnect=!1,this.It=this._t(),yield this.It;try{yield n}catch(r){}})}_t(n){if(this.ut===J.Disconnected)return this.u.log(f.Debug,`Call to HubConnection.stop(${n}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this.ut===J.Disconnecting)return this.u.log(f.Debug,`Call to HttpConnection.stop(${n}) ignored because the connection is already in the disconnecting state.`),this.It;const r=this.ut;return this.ut=J.Disconnecting,this.u.log(f.Debug,"Stopping HubConnection."),this.Ht?(this.u.log(f.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this.Ht),this.Ht=void 0,this.Dt(),Promise.resolve()):(r===J.Connected&&this.Rt(),this.Ct(),this.Tt(),this.bt=n||new S("The connection was stopped before the hub handshake could complete."),this.connection.stop(n))}Rt(){return Gt(this,null,function*(){try{yield this.xt(this.At())}catch(n){}})}stream(n,...r){const[d,E]=this.Ut(r),F=this.Lt(n,r,E);let I;const Y=new U;return Y.cancelCallback=()=>{const V=this.Nt(F.invocationId);return delete this.it[F.invocationId],I.then(()=>this.xt(V))},this.it[F.invocationId]=(V,ie)=>{ie?Y.error(ie):V&&(V.type===Q.Completion?V.error?Y.error(new Error(V.error)):Y.complete():Y.next(V.item))},I=this.xt(F).catch(V=>{Y.error(V),delete this.it[F.invocationId]}),this.qt(d,I),Y}$t(n){return this.kt(),this.connection.send(n)}xt(n){return this.Pt?this.Pt.A(n):this.$t(this.D.writeMessage(n))}send(n,...r){const[d,E]=this.Ut(r),F=this.xt(this.Mt(n,r,!0,E));return this.qt(d,F),F}invoke(n,...r){const[d,E]=this.Ut(r),F=this.Mt(n,r,!1,E);return new Promise((I,Y)=>{this.it[F.invocationId]=(ie,re)=>{re?Y(re):ie&&(ie.type===Q.Completion?ie.error?Y(new Error(ie.error)):I(ie.result):Y(new Error(`Unexpected message type: ${ie.type}`)))};const V=this.xt(F).catch(ie=>{Y(ie),delete this.it[F.invocationId]});this.qt(d,V)})}on(n,r){n&&r&&(n=n.toLowerCase(),this.nt[n]||(this.nt[n]=[]),-1===this.nt[n].indexOf(r)&&this.nt[n].push(r))}off(n,r){if(!n)return;n=n.toLowerCase();const d=this.nt[n];if(d)if(r){const E=d.indexOf(r);-1!==E&&(d.splice(E,1),0===d.length&&delete this.nt[n])}else delete this.nt[n]}onclose(n){n&&this.rt.push(n)}onreconnecting(n){n&&this.ot.push(n)}onreconnected(n){n&&this.ht.push(n)}et(n){if(this.Ct(),this.lt||(n=this.jt(n),this.lt=!0),n){const r=this.D.parseMessages(n,this.u);for(const d of r)if(!this.Pt||this.Pt.W(d))switch(d.type){case Q.Invocation:this.Wt(d).catch(E=>{this.u.log(f.Error,`Invoke client method threw error: ${N(E)}`)});break;case Q.StreamItem:case Q.Completion:{const E=this.it[d.invocationId];if(E){d.type===Q.Completion&&delete this.it[d.invocationId];try{E(d)}catch(F){this.u.log(f.Error,`Stream callback threw error: ${N(F)}`)}}break}case Q.Ping:break;case Q.Close:{this.u.log(f.Information,"Close message received from server.");const E=d.error?new Error("Server returned an error on close: "+d.error):void 0;!0===d.allowReconnect?this.connection.stop(E):this.It=this._t(E);break}case Q.Ack:this.Pt&&this.Pt.N(d);break;case Q.Sequence:this.Pt&&this.Pt.F(d);break;default:this.u.log(f.Warning,`Invalid message type: ${d.type}.`)}}this.St()}jt(n){let r,d;try{[d,r]=this.tt.parseHandshakeResponse(n)}catch(E){const F="Error parsing handshake response: "+E;this.u.log(f.Error,F);const I=new Error(F);throw this.Et(I),I}if(r.error){const E="Server returned handshake error: "+r.error;this.u.log(f.Error,E);const F=new Error(E);throw this.Et(F),F}return this.u.log(f.Debug,"Server handshake complete."),this.vt(),d}kt(){this.connection.features.inherentKeepAlive||(this.K=(new Date).getTime()+this.keepAliveIntervalInMilliseconds,this.Tt())}St(){if(!(this.connection.features&&this.connection.features.inherentKeepAlive||(this.Ot=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),void 0!==this.Ft))){let n=this.K-(new Date).getTime();n<0&&(n=0),this.Ft=setTimeout(()=>Gt(this,null,function*(){if(this.ut===J.Connected)try{yield this.$t(this.ft)}catch(r){this.Tt()}}),n)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}Wt(n){return Gt(this,null,function*(){const r=n.target.toLowerCase(),d=this.nt[r];if(!d)return this.u.log(f.Warning,`No client method with the name '${r}' found.`),void(n.invocationId&&(this.u.log(f.Warning,`No result given for '${r}' method and invocation ID '${n.invocationId}'.`),yield this.xt(this.Bt(n.invocationId,"Client didn't provide a result.",null))));const E=d.slice(),F=!!n.invocationId;let I,Y,V;for(const ie of E)try{const re=I;I=yield ie.apply(this,n.arguments),F&&I&&re&&(this.u.log(f.Error,`Multiple results provided for '${r}'. Sending error to server.`),V=this.Bt(n.invocationId,"Client provided multiple results.",null)),Y=void 0}catch(re){Y=re,this.u.log(f.Error,`A callback for the method '${r}' threw error '${re}'.`)}V?yield this.xt(V):F?(Y?V=this.Bt(n.invocationId,`${Y}`,null):void 0!==I?V=this.Bt(n.invocationId,null,I):(this.u.log(f.Warning,`No result given for '${r}' method and invocation ID '${n.invocationId}'.`),V=this.Bt(n.invocationId,"Client didn't provide a result.",null)),yield this.xt(V)):I&&this.u.log(f.Error,`Result given for '${r}' method but server is not expecting a result.`)})}st(n){this.u.log(f.Debug,`HubConnection.connectionClosed(${n}) called while in state ${this.ut}.`),this.bt=this.bt||n||new S("The underlying connection was closed before the hub handshake could complete."),this.vt&&this.vt(),this.Xt(n||new Error("Invocation canceled due to the underlying connection being closed.")),this.Ct(),this.Tt(),this.ut===J.Disconnecting?this.Dt(n):this.ut===J.Connected&&this.Z?this.Jt(n):this.ut===J.Connected&&this.Dt(n)}Dt(n){if(this.dt){this.ut=J.Disconnected,this.dt=!1,this.Pt&&(this.Pt.X(null!=n?n:new Error("Connection closed.")),this.Pt=void 0),b.isBrowser&&window.document.removeEventListener("freeze",this.G);try{this.rt.forEach(r=>r.apply(this,[n]))}catch(r){this.u.log(f.Error,`An onclose callback called with error '${n}' threw error '${r}'.`)}}}Jt(n){return Gt(this,null,function*(){const r=Date.now();let d=0,E=void 0!==n?n:new Error("Attempting to reconnect due to a unknown error."),F=this.zt(d++,0,E);if(null===F)return this.u.log(f.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),void this.Dt(n);if(this.ut=J.Reconnecting,this.u.log(f.Information,n?`Connection reconnecting because of error '${n}'.`:"Connection reconnecting."),0!==this.ot.length){try{this.ot.forEach(I=>I.apply(this,[n]))}catch(I){this.u.log(f.Error,`An onreconnecting callback called with error '${n}' threw error '${I}'.`)}if(this.ut!==J.Reconnecting)return void this.u.log(f.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.")}for(;null!==F;){if(this.u.log(f.Information,`Reconnect attempt number ${d} will start in ${F} ms.`),yield new Promise(I=>{this.Ht=setTimeout(I,F)}),this.Ht=void 0,this.ut!==J.Reconnecting)return void this.u.log(f.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");try{if(yield this.yt(),this.ut=J.Connected,this.u.log(f.Information,"HubConnection reconnected successfully."),0!==this.ht.length)try{this.ht.forEach(I=>I.apply(this,[this.connection.connectionId]))}catch(I){this.u.log(f.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${I}'.`)}return}catch(I){if(this.u.log(f.Information,`Reconnect attempt failed because of error '${I}'.`),this.ut!==J.Reconnecting)return this.u.log(f.Debug,`Connection moved to the '${this.ut}' from the reconnecting state during reconnect attempt. Done reconnecting.`),void(this.ut===J.Disconnecting&&this.Dt());E=I instanceof Error?I:new Error(I.toString()),F=this.zt(d++,Date.now()-r,E)}}this.u.log(f.Information,`Reconnect retries have been exhausted after ${Date.now()-r} ms and ${d} failed attempts. Connection disconnecting.`),this.Dt()})}zt(n,r,d){try{return this.Z.nextRetryDelayInMilliseconds({elapsedMilliseconds:r,previousRetryCount:n,retryReason:d})}catch(E){return this.u.log(f.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${n}, ${r}) threw error '${E}'.`),null}}Xt(n){const r=this.it;this.it={},Object.keys(r).forEach(d=>{const E=r[d];try{E(null,n)}catch(F){this.u.log(f.Error,`Stream 'error' callback called with '${n}' threw error: ${N(F)}`)}})}Tt(){this.Ft&&(clearTimeout(this.Ft),this.Ft=void 0)}Ct(){this.Ot&&clearTimeout(this.Ot)}Mt(n,r,d,E){if(d)return 0!==E.length?{arguments:r,streamIds:E,target:n,type:Q.Invocation}:{arguments:r,target:n,type:Q.Invocation};{const F=this.ct;return this.ct++,0!==E.length?{arguments:r,invocationId:F.toString(),streamIds:E,target:n,type:Q.Invocation}:{arguments:r,invocationId:F.toString(),target:n,type:Q.Invocation}}}qt(n,r){if(0!==n.length){r||(r=Promise.resolve());for(const d in n)n[d].subscribe({complete:()=>{r=r.then(()=>this.xt(this.Bt(d)))},error:E=>{let F;F=E instanceof Error?E.message:E&&E.toString?E.toString():"Unknown error",r=r.then(()=>this.xt(this.Bt(d,F)))},next:E=>{r=r.then(()=>this.xt(this.Vt(d,E)))}})}}Ut(n){const r=[],d=[];for(let E=0;E<n.length;E++){const F=n[E];if(this.Kt(F)){const I=this.ct;this.ct++,r[I]=F,d.push(I.toString()),n.splice(E,1)}}return[r,d]}Kt(n){return n&&n.subscribe&&"function"==typeof n.subscribe}Lt(n,r,d){const E=this.ct;return this.ct++,0!==d.length?{arguments:r,invocationId:E.toString(),streamIds:d,target:n,type:Q.StreamInvocation}:{arguments:r,invocationId:E.toString(),target:n,type:Q.StreamInvocation}}Nt(n){return{invocationId:n,type:Q.CancelInvocation}}Vt(n,r){return{invocationId:n,item:r,type:Q.StreamItem}}Bt(n,r,d){return r?{error:r,invocationId:n,type:Q.Completion}:{invocationId:n,result:d,type:Q.Completion}}At(){return{type:Q.Close}}}const Se=[0,2e3,1e4,3e4,null];class ce{constructor(n){this.Gt=void 0!==n?[...n,null]:Se}nextRetryDelayInMilliseconds(n){return this.Gt[n.previousRetryCount]}}class xe{}xe.Authorization="Authorization",xe.Cookie="Cookie";class Re extends C{constructor(n,r){super(),this.Qt=n,this.Yt=r}send(n){return Gt(this,null,function*(){let r=!0;this.Yt&&(!this.Zt||n.url&&n.url.indexOf("/negotiate?")>0)&&(r=!1,this.Zt=yield this.Yt()),this.te(n);const d=yield this.Qt.send(n);return r&&401===d.statusCode&&this.Yt?(this.Zt=yield this.Yt(),this.te(n),yield this.Qt.send(n)):d})}te(n){n.headers||(n.headers={}),this.Zt?n.headers[xe.Authorization]=`Bearer ${this.Zt}`:this.Yt&&n.headers[xe.Authorization]&&delete n.headers[xe.Authorization]}getCookieString(n){return this.Qt.getCookieString(n)}}var Oe,we;(function(h){h[h.None=0]="None",h[h.WebSockets=1]="WebSockets",h[h.ServerSentEvents=2]="ServerSentEvents",h[h.LongPolling=4]="LongPolling"})(Oe||(Oe={})),function(h){h[h.Text=1]="Text",h[h.Binary=2]="Binary"}(we||(we={}));class Ue{constructor(){this.ee=!1,this.onabort=null}abort(){this.ee||(this.ee=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this.ee}}class tt{get pollAborted(){return this.se.aborted}constructor(n,r,d){this.$=n,this.u=r,this.se=new Ue,this.ie=d,this.ne=!1,this.onreceive=null,this.onclose=null}connect(n,r){return Gt(this,null,function*(){if(O.isRequired(n,"url"),O.isRequired(r,"transferFormat"),O.isIn(r,we,"transferFormat"),this.re=n,this.u.log(f.Trace,"(LongPolling transport) Connecting."),r===we.Binary&&"undefined"!=typeof XMLHttpRequest&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[d,E]=o(),F=fn({[d]:E},this.ie.headers),I={abortSignal:this.se.signal,headers:F,timeout:1e5,withCredentials:this.ie.withCredentials};r===we.Binary&&(I.responseType="arraybuffer");const Y=`${n}&_=${Date.now()}`;this.u.log(f.Trace,`(LongPolling transport) polling: ${Y}.`);const V=yield this.$.get(Y,I);200!==V.statusCode?(this.u.log(f.Error,`(LongPolling transport) Unexpected response code: ${V.statusCode}.`),this.oe=new j(V.statusText||"",V.statusCode),this.ne=!1):this.ne=!0,this.he=this.ce(this.re,I)})}ce(n,r){return Gt(this,null,function*(){try{for(;this.ne;)try{const d=`${n}&_=${Date.now()}`;this.u.log(f.Trace,`(LongPolling transport) polling: ${d}.`);const E=yield this.$.get(d,r);204===E.statusCode?(this.u.log(f.Information,"(LongPolling transport) Poll terminated by server."),this.ne=!1):200!==E.statusCode?(this.u.log(f.Error,`(LongPolling transport) Unexpected response code: ${E.statusCode}.`),this.oe=new j(E.statusText||"",E.statusCode),this.ne=!1):E.content?(this.u.log(f.Trace,`(LongPolling transport) data received. ${A(E.content,this.ie.logMessageContent)}.`),this.onreceive&&this.onreceive(E.content)):this.u.log(f.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(d){this.ne?d instanceof l?this.u.log(f.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this.oe=d,this.ne=!1):this.u.log(f.Trace,`(LongPolling transport) Poll errored after shutdown: ${d.message}`)}}finally{this.u.log(f.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this.ae()}})}send(n){return Gt(this,null,function*(){return this.ne?P(this.u,"LongPolling",this.$,this.re,n,this.ie):Promise.reject(new Error("Cannot send until the transport is connected"))})}stop(){return Gt(this,null,function*(){this.u.log(f.Trace,"(LongPolling transport) Stopping polling."),this.ne=!1,this.se.abort();try{yield this.he,this.u.log(f.Trace,`(LongPolling transport) sending DELETE request to ${this.re}.`);const n={},[r,d]=o();n[r]=d;const E={headers:fn(fn({},n),this.ie.headers),timeout:this.ie.timeout,withCredentials:this.ie.withCredentials};let F;try{yield this.$.delete(this.re,E)}catch(I){F=I}F?F instanceof j&&this.u.log(f.Trace,404===F.statusCode?"(LongPolling transport) A 404 response was returned from sending a DELETE request.":`(LongPolling transport) Error sending a DELETE request: ${F}`):this.u.log(f.Trace,"(LongPolling transport) DELETE request accepted.")}finally{this.u.log(f.Trace,"(LongPolling transport) Stop finished."),this.ae()}})}ae(){if(this.onclose){let n="(LongPolling transport) Firing onclose event.";this.oe&&(n+=" Error: "+this.oe),this.u.log(f.Trace,n),this.onclose(this.oe)}}}class it{constructor(n,r,d,E){this.$=n,this.Zt=r,this.u=d,this.ie=E,this.onreceive=null,this.onclose=null}connect(n,r){return Gt(this,null,function*(){return O.isRequired(n,"url"),O.isRequired(r,"transferFormat"),O.isIn(r,we,"transferFormat"),this.u.log(f.Trace,"(SSE transport) Connecting."),this.re=n,this.Zt&&(n+=(n.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(this.Zt)}`),new Promise((d,E)=>{let F,I=!1;if(r===we.Text){if(b.isBrowser||b.isWebWorker)F=new this.ie.EventSource(n,{withCredentials:this.ie.withCredentials});else{const Y=this.$.getCookieString(n),V={};V.Cookie=Y;const[ie,re]=o();V[ie]=re,F=new this.ie.EventSource(n,{withCredentials:this.ie.withCredentials,headers:fn(fn({},V),this.ie.headers)})}try{F.onmessage=Y=>{if(this.onreceive)try{this.u.log(f.Trace,`(SSE transport) data received. ${A(Y.data,this.ie.logMessageContent)}.`),this.onreceive(Y.data)}catch(V){return void this.le(V)}},F.onerror=Y=>{I?this.le():E(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},F.onopen=()=>{this.u.log(f.Information,`SSE connected to ${this.re}`),this.ue=F,I=!0,d()}}catch(Y){return void E(Y)}}else E(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))})})}send(n){return Gt(this,null,function*(){return this.ue?P(this.u,"SSE",this.$,this.re,n,this.ie):Promise.reject(new Error("Cannot send until the transport is connected"))})}stop(){return this.le(),Promise.resolve()}le(n){this.ue&&(this.ue.close(),this.ue=void 0,this.onclose&&this.onclose(n))}}class ot{constructor(n,r,d,E,F,I){this.u=d,this.Yt=r,this.de=E,this.fe=F,this.$=n,this.onreceive=null,this.onclose=null,this.pe=I}connect(n,r){return Gt(this,null,function*(){let d;return O.isRequired(n,"url"),O.isRequired(r,"transferFormat"),O.isIn(r,we,"transferFormat"),this.u.log(f.Trace,"(WebSockets transport) Connecting."),this.Yt&&(d=yield this.Yt()),new Promise((E,F)=>{let I;n=n.replace(/^http/,"ws");const Y=this.$.getCookieString(n);let V=!1;if(b.isNode||b.isReactNative){const ie={},[re,he]=o();ie[re]=he,d&&(ie[xe.Authorization]=`Bearer ${d}`),Y&&(ie[xe.Cookie]=Y),I=new this.fe(n,void 0,{headers:fn(fn({},ie),this.pe)})}else d&&(n+=(n.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(d)}`);I||(I=new this.fe(n)),r===we.Binary&&(I.binaryType="arraybuffer"),I.onopen=ie=>{this.u.log(f.Information,`WebSocket connected to ${n}.`),this.we=I,V=!0,E()},I.onerror=ie=>{let re=null;re="undefined"!=typeof ErrorEvent&&ie instanceof ErrorEvent?ie.error:"There was an error with the transport",this.u.log(f.Information,`(WebSockets transport) ${re}.`)},I.onmessage=ie=>{if(this.u.log(f.Trace,`(WebSockets transport) data received. ${A(ie.data,this.de)}.`),this.onreceive)try{this.onreceive(ie.data)}catch(re){return void this.le(re)}},I.onclose=ie=>{if(V)this.le(ie);else{let re=null;re="undefined"!=typeof ErrorEvent&&ie instanceof ErrorEvent?ie.error:"WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",F(new Error(re))}}})})}send(n){return this.we&&this.we.readyState===this.fe.OPEN?(this.u.log(f.Trace,`(WebSockets transport) sending data. ${A(n,this.de)}.`),this.we.send(n),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this.we&&this.le(void 0),Promise.resolve()}le(n){this.we&&(this.we.onclose=()=>{},this.we.onmessage=()=>{},this.we.onerror=()=>{},this.we.close(),this.we=void 0),this.u.log(f.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!this.ge(n)||!1!==n.wasClean&&1e3===n.code?n instanceof Error?this.onclose(n):this.onclose():this.onclose(new Error(`WebSocket closed with status code: ${n.code} (${n.reason||"no reason given"}).`)))}ge(n){return n&&"boolean"==typeof n.wasClean&&"number"==typeof n.code}}class Ot{constructor(n,r={}){var d;if(this.me=()=>{},this.features={},this.ye=1,O.isRequired(n,"url"),this.u=void 0===(d=r.logger)?new q(f.Information):null===d?T.instance:void 0!==d.log?d:new q(d),this.baseUrl=this.be(n),(r=r||{}).logMessageContent=void 0!==r.logMessageContent&&r.logMessageContent,"boolean"!=typeof r.withCredentials&&void 0!==r.withCredentials)throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");r.withCredentials=void 0===r.withCredentials||r.withCredentials,r.timeout=void 0===r.timeout?1e5:r.timeout;let E=null,F=null;if(b.isNode){const I=require;E=I("ws"),F=I("eventsource")}b.isNode||"undefined"==typeof WebSocket||r.WebSocket?b.isNode&&!r.WebSocket&&E&&(r.WebSocket=E):r.WebSocket=WebSocket,b.isNode||"undefined"==typeof EventSource||r.EventSource?b.isNode&&!r.EventSource&&void 0!==F&&(r.EventSource=F):r.EventSource=EventSource,this.$=new Re(r.httpClient||new Z(this.u),r.accessTokenFactory),this.ut="Disconnected",this.dt=!1,this.ie=r,this.onreceive=null,this.onclose=null}start(n){return Gt(this,null,function*(){if(O.isIn(n=n||we.Binary,we,"transferFormat"),this.u.log(f.Debug,`Starting connection with transfer format '${we[n]}'.`),"Disconnected"!==this.ut)return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this.ut="Connecting",this.ve=this.yt(n),yield this.ve,"Disconnecting"===this.ut){const r="Failed to start the HttpConnection before stop() was called.";return this.u.log(f.Error,r),yield this.It,Promise.reject(new S(r))}if("Connected"!==this.ut){const r="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this.u.log(f.Error,r),Promise.reject(new S(r))}this.dt=!0})}send(n){return"Connected"!==this.ut?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this.Ee||(this.Ee=new Et(this.transport)),this.Ee.send(n))}stop(n){return Gt(this,null,function*(){return"Disconnected"===this.ut?(this.u.log(f.Debug,`Call to HttpConnection.stop(${n}) ignored because the connection is already in the disconnected state.`),Promise.resolve()):"Disconnecting"===this.ut?(this.u.log(f.Debug,`Call to HttpConnection.stop(${n}) ignored because the connection is already in the disconnecting state.`),this.It):(this.ut="Disconnecting",this.It=new Promise(r=>{this.me=r}),yield this._t(n),void(yield this.It))})}_t(n){return Gt(this,null,function*(){this.$e=n;try{yield this.ve}catch(r){}if(this.transport){try{yield this.transport.stop()}catch(r){this.u.log(f.Error,`HttpConnection.transport.stop() threw error '${r}'.`),this.Ce()}this.transport=void 0}else this.u.log(f.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")})}yt(n){return Gt(this,null,function*(){let r=this.baseUrl;this.Yt=this.ie.accessTokenFactory,this.$.Yt=this.Yt;try{if(this.ie.skipNegotiation){if(this.ie.transport!==Oe.WebSockets)throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");this.transport=this.Se(Oe.WebSockets),yield this.ke(r,n)}else{let d=null,E=0;do{if(d=yield this.Pe(r),"Disconnecting"===this.ut||"Disconnected"===this.ut)throw new S("The connection was stopped during negotiation.");if(d.error)throw new Error(d.error);if(d.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(d.url&&(r=d.url),d.accessToken){const F=d.accessToken;this.Yt=()=>F,this.$.Zt=F,this.$.Yt=void 0}E++}while(d.url&&E<100);if(100===E&&d.url)throw new Error("Negotiate redirection limit exceeded.");yield this.Te(r,this.ie.transport,d,n)}this.transport instanceof tt&&(this.features.inherentKeepAlive=!0),"Connecting"===this.ut&&(this.u.log(f.Debug,"The HttpConnection connected successfully."),this.ut="Connected")}catch(d){return this.u.log(f.Error,"Failed to start the connection: "+d),this.ut="Disconnected",this.transport=void 0,this.me(),Promise.reject(d)}})}Pe(n){return Gt(this,null,function*(){const r={},[d,E]=o();r[d]=E;const F=this.Ie(n);this.u.log(f.Debug,`Sending negotiation request: ${F}.`);try{const I=yield this.$.post(F,{content:"",headers:fn(fn({},r),this.ie.headers),timeout:this.ie.timeout,withCredentials:this.ie.withCredentials});if(200!==I.statusCode)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${I.statusCode}'`));const Y=JSON.parse(I.content);return(!Y.negotiateVersion||Y.negotiateVersion<1)&&(Y.connectionToken=Y.connectionId),Y.useStatefulReconnect&&!0!==this.ie._e?Promise.reject(new m("Client didn't negotiate Stateful Reconnect but the server did.")):Y}catch(I){let Y="Failed to complete negotiation with the server: "+I;return I instanceof j&&404===I.statusCode&&(Y+=" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),this.u.log(f.Error,Y),Promise.reject(new m(Y))}})}He(n,r){return r?n+(-1===n.indexOf("?")?"?":"&")+`id=${r}`:n}Te(n,r,d,E){return Gt(this,null,function*(){let F=this.He(n,d.connectionToken);if(this.De(r))return this.u.log(f.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=r,yield this.ke(F,E),void(this.connectionId=d.connectionId);const I=[],Y=d.availableTransports||[];let V=d;for(const ie of Y){const re=this.Re(ie,r,E,!0===(null==V?void 0:V.useStatefulReconnect));if(re instanceof Error)I.push(`${ie.transport} failed:`),I.push(re);else if(this.De(re)){if(this.transport=re,!V){try{V=yield this.Pe(n)}catch(he){return Promise.reject(he)}F=this.He(n,V.connectionToken)}try{return yield this.ke(F,E),void(this.connectionId=V.connectionId)}catch(he){if(this.u.log(f.Error,`Failed to start the transport '${ie.transport}': ${he}`),V=void 0,I.push(new p(`${ie.transport} failed: ${he}`,Oe[ie.transport])),"Connecting"!==this.ut){const be="Failed to select transport before stop() was called.";return this.u.log(f.Debug,be),Promise.reject(new S(be))}}}}return Promise.reject(I.length>0?new v(`Unable to connect to the server with any of the available transports. ${I.join(" ")}`,I):new Error("None of the transports supported by the client are supported by the server."))})}Se(n){switch(n){case Oe.WebSockets:if(!this.ie.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new ot(this.$,this.Yt,this.u,this.ie.logMessageContent,this.ie.WebSocket,this.ie.headers||{});case Oe.ServerSentEvents:if(!this.ie.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new it(this.$,this.$.Zt,this.u,this.ie);case Oe.LongPolling:return new tt(this.$,this.u,this.ie);default:throw new Error(`Unknown transport: ${n}.`)}}ke(n,r){return this.transport.onreceive=this.onreceive,this.transport.onclose=this.features.reconnect?d=>Gt(this,null,function*(){let E=!1;if(this.features.reconnect){try{this.features.disconnected(),yield this.transport.connect(n,r),yield this.features.resend()}catch(F){E=!0}E&&this.Ce(d)}else this.Ce(d)}):d=>this.Ce(d),this.transport.connect(n,r)}Re(n,r,d,E){const F=Oe[n.transport];if(null==F)return this.u.log(f.Debug,`Skipping transport '${n.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${n.transport}' because it is not supported by this client.`);if((I=r)&&0==(F&I))return this.u.log(f.Debug,`Skipping transport '${Oe[F]}' because it was disabled by the client.`),new k(`'${Oe[F]}' is disabled by the client.`,F);var I;if(!(n.transferFormats.map(I=>we[I]).indexOf(d)>=0))return this.u.log(f.Debug,`Skipping transport '${Oe[F]}' because it does not support the requested transfer format '${we[d]}'.`),new Error(`'${Oe[F]}' does not support ${we[d]}.`);if(F===Oe.WebSockets&&!this.ie.WebSocket||F===Oe.ServerSentEvents&&!this.ie.EventSource)return this.u.log(f.Debug,`Skipping transport '${Oe[F]}' because it is not supported in your environment.'`),new w(`'${Oe[F]}' is not supported in your environment.`,F);this.u.log(f.Debug,`Selecting transport '${Oe[F]}'.`);try{return this.features.reconnect=F===Oe.WebSockets?E:void 0,this.Se(F)}catch(I){return I}}De(n){return n&&"object"==typeof n&&"connect"in n}Ce(n){if(this.u.log(f.Debug,`HttpConnection.stopConnection(${n}) called while in state ${this.ut}.`),this.transport=void 0,n=this.$e||n,this.$e=void 0,"Disconnected"!==this.ut){if("Connecting"===this.ut)throw this.u.log(f.Warning,`Call to HttpConnection.stopConnection(${n}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${n}) was called while the connection is still in the connecting state.`);if("Disconnecting"===this.ut&&this.me(),n?this.u.log(f.Error,`Connection disconnected with error '${n}'.`):this.u.log(f.Information,"Connection disconnected."),this.Ee&&(this.Ee.stop().catch(r=>{this.u.log(f.Error,`TransportSendQueue.stop() threw error '${r}'.`)}),this.Ee=void 0),this.connectionId=void 0,this.ut="Disconnected",this.dt){this.dt=!1;try{this.onclose&&this.onclose(n)}catch(r){this.u.log(f.Error,`HttpConnection.onclose(${n}) threw error '${r}'.`)}}}else this.u.log(f.Debug,`Call to HttpConnection.stopConnection(${n}) was ignored because the connection is already in the disconnected state.`)}be(n){if(0===n.lastIndexOf("https://",0)||0===n.lastIndexOf("http://",0))return n;if(!b.isBrowser)throw new Error(`Cannot resolve '${n}'.`);const r=window.document.createElement("a");return r.href=n,this.u.log(f.Information,`Normalizing '${n}' to '${r.href}'.`),r.href}Ie(n){const r=new URL(n);r.pathname.endsWith("/")?r.pathname+="negotiate":r.pathname+="/negotiate";const d=new URLSearchParams(r.searchParams);return d.has("negotiateVersion")||d.append("negotiateVersion",this.ye.toString()),d.has("useStatefulReconnect")?"true"===d.get("useStatefulReconnect")&&(this.ie._e=!0):!0===this.ie._e&&d.append("useStatefulReconnect","true"),r.search=d.toString(),r.toString()}}class Et{constructor(n){this.xe=n,this.Ae=[],this.Ue=!0,this.Le=new ae,this.Ne=new ae,this.qe=this.Me()}send(n){return this.je(n),this.Ne||(this.Ne=new ae),this.Ne.promise}stop(){return this.Ue=!1,this.Le.resolve(),this.qe}je(n){if(this.Ae.length&&typeof this.Ae[0]!=typeof n)throw new Error(`Expected data to be of type ${typeof this.Ae} but was of type ${typeof n}`);this.Ae.push(n),this.Le.resolve()}Me(){return Gt(this,null,function*(){for(;;){if(yield this.Le.promise,!this.Ue){this.Ne&&this.Ne.reject("Connection stopped.");break}this.Le=new ae;const n=this.Ne;this.Ne=void 0;const r="string"==typeof this.Ae[0]?this.Ae.join(""):Et.We(this.Ae);this.Ae.length=0;try{yield this.xe.send(r),n.resolve()}catch(d){n.reject(d)}}})}static We(n){const r=n.map(F=>F.byteLength).reduce((F,I)=>F+I),d=new Uint8Array(r);let E=0;for(const F of n)d.set(new Uint8Array(F),E),E+=F.byteLength;return d.buffer}}class ae{constructor(){this.promise=new Promise((n,r)=>[this.j,this.Oe]=[n,r])}resolve(){this.j()}reject(n){this.Oe(n)}}class oe{constructor(){this.name="json",this.version=2,this.transferFormat=we.Text}parseMessages(n,r){if("string"!=typeof n)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!n)return[];null===r&&(r=T.instance);const d=te.parse(n),E=[];for(const F of d){const I=JSON.parse(F);if("number"!=typeof I.type)throw new Error("Invalid payload.");switch(I.type){case Q.Invocation:this.U(I);break;case Q.StreamItem:this.Fe(I);break;case Q.Completion:this.Be(I);break;case Q.Ping:case Q.Close:break;case Q.Ack:this.Xe(I);break;case Q.Sequence:this.Je(I);break;default:r.log(f.Information,"Unknown message type '"+I.type+"' ignored.");continue}E.push(I)}return E}writeMessage(n){return te.write(JSON.stringify(n))}U(n){this.ze(n.target,"Invalid payload for Invocation message."),void 0!==n.invocationId&&this.ze(n.invocationId,"Invalid payload for Invocation message.")}Fe(n){if(this.ze(n.invocationId,"Invalid payload for StreamItem message."),void 0===n.item)throw new Error("Invalid payload for StreamItem message.")}Be(n){if(n.result&&n.error)throw new Error("Invalid payload for Completion message.");!n.result&&n.error&&this.ze(n.error,"Invalid payload for Completion message."),this.ze(n.invocationId,"Invalid payload for Completion message.")}Xe(n){if("number"!=typeof n.sequenceId)throw new Error("Invalid SequenceId for Ack message.")}Je(n){if("number"!=typeof n.sequenceId)throw new Error("Invalid SequenceId for Sequence message.")}ze(n,r){if("string"!=typeof n||""===n)throw new Error(r)}}const fe={trace:f.Trace,debug:f.Debug,info:f.Information,information:f.Information,warn:f.Warning,warning:f.Warning,error:f.Error,critical:f.Critical,none:f.None};class a{configureLogging(n){if(O.isRequired(n,"logging"),void 0!==n.log)this.logger=n;else if("string"==typeof n){const r=function(d){const E=fe[d.toLowerCase()];if(void 0!==E)return E;throw new Error(`Unknown log level: ${d}`)}(n);this.logger=new q(r)}else this.logger=new q(n);return this}withUrl(n,r){return O.isRequired(n,"url"),O.isNotEmpty(n,"url"),this.url=n,this.httpConnectionOptions="object"==typeof r?fn(fn({},this.httpConnectionOptions),r):Ni(fn({},this.httpConnectionOptions),{transport:r}),this}withHubProtocol(n){return O.isRequired(n,"protocol"),this.protocol=n,this}withAutomaticReconnect(n){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return this.reconnectPolicy=n?Array.isArray(n)?new ce(n):n:new ce,this}withServerTimeout(n){return O.isRequired(n,"milliseconds"),this.Ve=n,this}withKeepAliveInterval(n){return O.isRequired(n,"milliseconds"),this.Ke=n,this}withStatefulReconnect(n){return void 0===this.httpConnectionOptions&&(this.httpConnectionOptions={}),this.httpConnectionOptions._e=!0,this.Y=null==n?void 0:n.bufferSize,this}build(){const n=this.httpConnectionOptions||{};if(void 0===n.logger&&(n.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const r=new Ot(this.url,n);return me.create(r,this.logger||T.instance,this.protocol||new oe,this.reconnectPolicy,this.Ve,this.Ke,this.Y)}}return Uint8Array.prototype.indexOf||Object.defineProperty(Uint8Array.prototype,"indexOf",{value:Array.prototype.indexOf,writable:!0}),Uint8Array.prototype.slice||Object.defineProperty(Uint8Array.prototype,"slice",{value:function(h,n){return new Uint8Array(Array.prototype.slice.call(this,h,n))},writable:!0}),Uint8Array.prototype.forEach||Object.defineProperty(Uint8Array.prototype,"forEach",{value:Array.prototype.forEach,writable:!0}),g})(),"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.signalR=e():t.signalR=e(),function(i){"object"==typeof exports&&"undefined"!=typeof module?module.exports=i():"function"==typeof define&&define.amd?define([],i):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).localforage=i()}(function(){return function j(l,S,w){function k(v,u){if(!S[v]){if(!l[v]){var C="function"==typeof require&&require;if(!u&&C)return C(v,!0);if(p)return p(v,!0);var T=new Error("Cannot find module '"+v+"'");throw T.code="MODULE_NOT_FOUND",T}var M=S[v]={exports:{}};l[v][0].call(M.exports,function(O){return k(l[v][1][O]||O)},M,M.exports,j,l,S,w)}return S[v].exports}for(var p="function"==typeof require&&require,m=0;m<w.length;m++)k(w[m]);return k}({1:[function(j,l,S){(function(w){"use strict";var p,k=w.MutationObserver||w.WebKitMutationObserver;if(k){var m=0,v=new k(O),u=w.document.createTextNode("");v.observe(u,{characterData:!0}),p=function(){u.data=m=++m%2}}else if(w.setImmediate||void 0===w.MessageChannel)p="document"in w&&"onreadystatechange"in w.document.createElement("script")?function(){var A=w.document.createElement("script");A.onreadystatechange=function(){O(),A.onreadystatechange=null,A.parentNode.removeChild(A),A=null},w.document.documentElement.appendChild(A)}:function(){setTimeout(O,0)};else{var C=new w.MessageChannel;C.port1.onmessage=O,p=function(){C.port2.postMessage(0)}}var T,M=[];function O(){T=!0;for(var A,c,P=M.length;P;){for(c=M,M=[],A=-1;++A<P;)c[A]();P=M.length}T=!1}l.exports=function b(A){1===M.push(A)&&!T&&p()}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(j,l,S){"use strict";var w=j(1);function k(){}var p={},m=["REJECTED"],v=["FULFILLED"],u=["PENDING"];function C(o){if("function"!=typeof o)throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,o!==k&&b(this,o)}function T(o,y,_){this.promise=o,"function"==typeof y&&(this.onFulfilled=y,this.callFulfilled=this.otherCallFulfilled),"function"==typeof _&&(this.onRejected=_,this.callRejected=this.otherCallRejected)}function M(o,y,_){w(function(){var R;try{R=y(_)}catch(N){return p.reject(o,N)}R===o?p.reject(o,new TypeError("Cannot resolve promise with itself")):p.resolve(o,R)})}function O(o){var y=o&&o.then;if(o&&("object"==typeof o||"function"==typeof o)&&"function"==typeof y)return function(){y.apply(o,arguments)}}function b(o,y){var _=!1;function R(ne){_||(_=!0,p.reject(o,ne))}function N(ne){_||(_=!0,p.resolve(o,ne))}var G=A(function W(){y(N,R)});"error"===G.status&&R(G.value)}function A(o,y){var _={};try{_.value=o(y),_.status="success"}catch(R){_.status="error",_.value=R}return _}l.exports=C,C.prototype.catch=function(o){return this.then(null,o)},C.prototype.then=function(o,y){if("function"!=typeof o&&this.state===v||"function"!=typeof y&&this.state===m)return this;var _=new this.constructor(k);return this.state!==u?M(_,this.state===v?o:y,this.outcome):this.queue.push(new T(_,o,y)),_},T.prototype.callFulfilled=function(o){p.resolve(this.promise,o)},T.prototype.otherCallFulfilled=function(o){M(this.promise,this.onFulfilled,o)},T.prototype.callRejected=function(o){p.reject(this.promise,o)},T.prototype.otherCallRejected=function(o){M(this.promise,this.onRejected,o)},p.resolve=function(o,y){var _=A(O,y);if("error"===_.status)return p.reject(o,_.value);var R=_.value;if(R)b(o,R);else{o.state=v,o.outcome=y;for(var N=-1,W=o.queue.length;++N<W;)o.queue[N].callFulfilled(y)}return o},p.reject=function(o,y){o.state=m,o.outcome=y;for(var _=-1,R=o.queue.length;++_<R;)o.queue[_].callRejected(y);return o},C.resolve=function c(o){return o instanceof this?o:p.resolve(new this(k),o)},C.reject=function P(o){var y=new this(k);return p.reject(y,o)},C.all=function B(o){var y=this;if("[object Array]"!==Object.prototype.toString.call(o))return this.reject(new TypeError("must be an array"));var _=o.length,R=!1;if(!_)return this.resolve([]);for(var N=new Array(_),W=0,G=-1,ne=new this(k);++G<_;)Z(o[G],G);return ne;function Z(te,ge){y.resolve(te).then(function Q(J){N[ge]=J,++W===_&&!R&&(R=!0,p.resolve(ne,N))},function(J){R||(R=!0,p.reject(ne,J))})}},C.race=function q(o){if("[object Array]"!==Object.prototype.toString.call(o))return this.reject(new TypeError("must be an array"));var _=o.length,R=!1;if(!_)return this.resolve([]);for(var N=-1,W=new this(k);++N<_;)this.resolve(o[N]).then(function(Z){R||(R=!0,p.resolve(W,Z))},function(Z){R||(R=!0,p.reject(W,Z))});return W}},{1:1}],3:[function(j,l,S){(function(w){"use strict";"function"!=typeof w.Promise&&(w.Promise=j(2))}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(j,l,S){"use strict";var w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(le){return typeof le}:function(le){return le&&"function"==typeof Symbol&&le.constructor===Symbol&&le!==Symbol.prototype?"symbol":typeof le},m=function p(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(le){return}}();function u(le,Te){le=le||[],Te=Te||{};try{return new Blob(le,Te)}catch(Ce){if("TypeError"!==Ce.name)throw Ce;for(var De=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),Me=0;Me<le.length;Me+=1)De.append(le[Me]);return De.getBlob(Te.type)}}"undefined"==typeof Promise&&j(3);var C=Promise;function T(le,Te){Te&&le.then(function(pe){Te(null,pe)},function(pe){Te(pe)})}function M(le,Te,pe){"function"==typeof Te&&le.then(Te),"function"==typeof pe&&le.catch(pe)}function O(le){return"string"!=typeof le&&(console.warn(le+" used as a key, but it is not a string."),le=String(le)),le}function b(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var A="local-forage-detect-blob-support",c=void 0,P={},B=Object.prototype.toString,q="readonly",o="readwrite";function N(le){var Te=P[le.name],pe={};pe.promise=new C(function(De,Me){pe.resolve=De,pe.reject=Me}),Te.deferredOperations.push(pe),Te.dbReady=Te.dbReady?Te.dbReady.then(function(){return pe.promise}):pe.promise}function W(le){var pe=P[le.name].deferredOperations.pop();if(pe)return pe.resolve(),pe.promise}function G(le,Te){var De=P[le.name].deferredOperations.pop();if(De)return De.reject(Te),De.promise}function ne(le,Te){return new C(function(pe,De){if(P[le.name]=P[le.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},le.db){if(!Te)return pe(le.db);N(le),le.db.close()}var Me=[le.name];Te&&Me.push(le.version);var Ce=m.open.apply(m,Me);Te&&(Ce.onupgradeneeded=function(Ye){var Ze=Ce.result;try{Ze.createObjectStore(le.storeName),Ye.oldVersion<=1&&Ze.createObjectStore(A)}catch(Je){if("ConstraintError"!==Je.name)throw Je;console.warn('The database "'+le.name+'" has been upgraded from version '+Ye.oldVersion+" to version "+Ye.newVersion+', but the storage "'+le.storeName+'" already exists.')}}),Ce.onerror=function(Ye){Ye.preventDefault(),De(Ce.error)},Ce.onsuccess=function(){var Ye=Ce.result;Ye.onversionchange=function(Ze){Ze.target.close()},pe(Ye),W(le)}})}function Z(le){return ne(le,!1)}function te(le){return ne(le,!0)}function ge(le,Te){if(!le.db)return!0;var pe=!le.db.objectStoreNames.contains(le.storeName),Me=le.version>le.db.version;if(le.version<le.db.version&&(le.version!==Te&&console.warn('The database "'+le.name+"\" can't be downgraded from version "+le.db.version+" to version "+le.version+"."),le.version=le.db.version),Me||pe){if(pe){var Ce=le.db.version+1;Ce>le.version&&(le.version=Ce)}return!0}return!1}function J(le){var Te=function y(le){for(var Te=le.length,pe=new ArrayBuffer(Te),De=new Uint8Array(pe),Me=0;Me<Te;Me++)De[Me]=le.charCodeAt(Me);return pe}(atob(le.data));return u([Te],{type:le.type})}function U(le){return le&&le.__local_forage_encoded_blob}function se(le){var Te=this,pe=Te._initReady().then(function(){var De=P[Te._dbInfo.name];if(De&&De.dbReady)return De.dbReady});return M(pe,le,le),pe}function me(le,Te,pe,De){void 0===De&&(De=1);try{var Me=le.db.transaction(le.storeName,Te);pe(null,Me)}catch(Ce){if(De>0&&(!le.db||"InvalidStateError"===Ce.name||"NotFoundError"===Ce.name))return C.resolve().then(function(){if(!le.db||"NotFoundError"===Ce.name&&!le.db.objectStoreNames.contains(le.storeName)&&le.version<=le.db.version)return le.db&&(le.version=le.db.version+1),te(le)}).then(function(){return function de(le){N(le);for(var Te=P[le.name],pe=Te.forages,De=0;De<pe.length;De++){var Me=pe[De];Me._dbInfo.db&&(Me._dbInfo.db.close(),Me._dbInfo.db=null)}return le.db=null,Z(le).then(function(Ce){return le.db=Ce,ge(le)?te(le):Ce}).then(function(Ce){le.db=Te.db=Ce;for(var Ye=0;Ye<pe.length;Ye++)pe[Ye]._dbInfo.db=Ce}).catch(function(Ce){throw G(le,Ce),Ce})}(le).then(function(){me(le,Te,pe,De-1)})}).catch(pe);pe(Ce)}}var Et={_driver:"asyncStorage",_initStorage:function ce(le){var Te=this,pe={db:null};if(le)for(var De in le)pe[De]=le[De];var Me=P[pe.name];Me||(P[pe.name]=Me={forages:[],db:null,dbReady:null,deferredOperations:[]}),Me.forages.push(Te),Te._initReady||(Te._initReady=Te.ready,Te.ready=se);var Ce=[];function Ye(){return C.resolve()}for(var Ze=0;Ze<Me.forages.length;Ze++){var Je=Me.forages[Ze];Je!==Te&&Ce.push(Je._initReady().catch(Ye))}var et=Me.forages.slice(0);return C.all(Ce).then(function(){return pe.db=Me.db,Z(pe)}).then(function(nt){return pe.db=nt,ge(pe,Te._defaultConfig.version)?te(pe):nt}).then(function(nt){pe.db=Me.db=nt,Te._dbInfo=pe;for(var st=0;st<et.length;st++){var St=et[st];St!==Te&&(St._dbInfo.db=pe.db,St._dbInfo.version=pe.version)}})},_support:function v(){try{if(!m||!m.open)return!1;var le="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),Te="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!le||Te)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(pe){return!1}}(),iterate:function Re(le,Te){var pe=this,De=new C(function(Me,Ce){pe.ready().then(function(){me(pe._dbInfo,q,function(Ye,Ze){if(Ye)return Ce(Ye);try{var et=Ze.objectStore(pe._dbInfo.storeName).openCursor(),nt=1;et.onsuccess=function(){var st=et.result;if(st){var St=st.value;U(St)&&(St=J(St));var Lt=le(St,st.key,nt++);void 0!==Lt?Me(Lt):st.continue()}else Me()},et.onerror=function(){Ce(et.error)}}catch(st){Ce(st)}})}).catch(Ce)});return T(De,Te),De},getItem:function xe(le,Te){var pe=this;le=O(le);var De=new C(function(Me,Ce){pe.ready().then(function(){me(pe._dbInfo,q,function(Ye,Ze){if(Ye)return Ce(Ye);try{var et=Ze.objectStore(pe._dbInfo.storeName).get(le);et.onsuccess=function(){var nt=et.result;void 0===nt&&(nt=null),U(nt)&&(nt=J(nt)),Me(nt)},et.onerror=function(){Ce(et.error)}}catch(nt){Ce(nt)}})}).catch(Ce)});return T(De,Te),De},setItem:function Oe(le,Te,pe){var De=this;le=O(le);var Me=new C(function(Ce,Ye){var Ze;De.ready().then(function(){return Ze=De._dbInfo,"[object Blob]"===B.call(Te)?function R(le){return"boolean"==typeof c?C.resolve(c):function _(le){return new C(function(Te){var pe=le.transaction(A,o),De=u([""]);pe.objectStore(A).put(De,"key"),pe.onabort=function(Me){Me.preventDefault(),Me.stopPropagation(),Te(!1)},pe.oncomplete=function(){var Me=navigator.userAgent.match(/Chrome\/(\d+)/),Ce=navigator.userAgent.match(/Edge\//);Te(Ce||!Me||parseInt(Me[1],10)>=43)}}).catch(function(){return!1})}(le).then(function(Te){return c=Te})}(Ze.db).then(function(Je){return Je?Te:function Q(le){return new C(function(Te,pe){var De=new FileReader;De.onerror=pe,De.onloadend=function(Me){var Ce=btoa(Me.target.result||"");Te({__local_forage_encoded_blob:!0,data:Ce,type:le.type})},De.readAsBinaryString(le)})}(Te)}):Te}).then(function(Je){me(De._dbInfo,o,function(et,nt){if(et)return Ye(et);try{var st=nt.objectStore(De._dbInfo.storeName);null===Je&&(Je=void 0);var St=st.put(Je,le);nt.oncomplete=function(){void 0===Je&&(Je=null),Ce(Je)},nt.onabort=nt.onerror=function(){Ye(St.error?St.error:St.transaction.error)}}catch(Lt){Ye(Lt)}})}).catch(Ye)});return T(Me,pe),Me},removeItem:function we(le,Te){var pe=this;le=O(le);var De=new C(function(Me,Ce){pe.ready().then(function(){me(pe._dbInfo,o,function(Ye,Ze){if(Ye)return Ce(Ye);try{var et=Ze.objectStore(pe._dbInfo.storeName).delete(le);Ze.oncomplete=function(){Me()},Ze.onerror=function(){Ce(et.error)},Ze.onabort=function(){Ce(et.error?et.error:et.transaction.error)}}catch(nt){Ce(nt)}})}).catch(Ce)});return T(De,Te),De},clear:function Ue(le){var Te=this,pe=new C(function(De,Me){Te.ready().then(function(){me(Te._dbInfo,o,function(Ce,Ye){if(Ce)return Me(Ce);try{var Je=Ye.objectStore(Te._dbInfo.storeName).clear();Ye.oncomplete=function(){De()},Ye.onabort=Ye.onerror=function(){Me(Je.error?Je.error:Je.transaction.error)}}catch(et){Me(et)}})}).catch(Me)});return T(pe,le),pe},length:function tt(le){var Te=this,pe=new C(function(De,Me){Te.ready().then(function(){me(Te._dbInfo,q,function(Ce,Ye){if(Ce)return Me(Ce);try{var Je=Ye.objectStore(Te._dbInfo.storeName).count();Je.onsuccess=function(){De(Je.result)},Je.onerror=function(){Me(Je.error)}}catch(et){Me(et)}})}).catch(Me)});return T(pe,le),pe},key:function it(le,Te){var pe=this,De=new C(function(Me,Ce){le<0?Me(null):pe.ready().then(function(){me(pe._dbInfo,q,function(Ye,Ze){if(Ye)return Ce(Ye);try{var Je=Ze.objectStore(pe._dbInfo.storeName),et=!1,nt=Je.openKeyCursor();nt.onsuccess=function(){var st=nt.result;st?0===le||et?Me(st.key):(et=!0,st.advance(le)):Me(null)},nt.onerror=function(){Ce(nt.error)}}catch(st){Ce(st)}})}).catch(Ce)});return T(De,Te),De},keys:function ot(le){var Te=this,pe=new C(function(De,Me){Te.ready().then(function(){me(Te._dbInfo,q,function(Ce,Ye){if(Ce)return Me(Ce);try{var Je=Ye.objectStore(Te._dbInfo.storeName).openKeyCursor(),et=[];Je.onsuccess=function(){var nt=Je.result;nt?(et.push(nt.key),nt.continue()):De(et)},Je.onerror=function(){Me(Je.error)}}catch(nt){Me(nt)}})}).catch(Me)});return T(pe,le),pe},dropInstance:function Ot(le,Te){Te=b.apply(this,arguments);var pe=this.config();(le="function"!=typeof le&&le||{}).name||(le.name=le.name||pe.name,le.storeName=le.storeName||pe.storeName);var Me,De=this;if(le.name){var Ce=le.name===pe.name&&De._dbInfo.db,Ye=Ce?C.resolve(De._dbInfo.db):Z(le).then(function(Ze){var Je=P[le.name],et=Je.forages;Je.db=Ze;for(var nt=0;nt<et.length;nt++)et[nt]._dbInfo.db=Ze;return Ze});Me=Ye.then(le.storeName?function(Ze){if(Ze.objectStoreNames.contains(le.storeName)){var Je=Ze.version+1;N(le);var et=P[le.name],nt=et.forages;Ze.close();for(var st=0;st<nt.length;st++){var St=nt[st];St._dbInfo.db=null,St._dbInfo.version=Je}return new C(function(zt,$t){var Kt=m.open(le.name,Je);Kt.onerror=function(dn){Kt.result.close(),$t(dn)},Kt.onupgradeneeded=function(){Kt.result.deleteObjectStore(le.storeName)},Kt.onsuccess=function(){var dn=Kt.result;dn.close(),zt(dn)}}).then(function(zt){et.db=zt;for(var $t=0;$t<nt.length;$t++){var Kt=nt[$t];Kt._dbInfo.db=zt,W(Kt._dbInfo)}}).catch(function(zt){throw(G(le,zt)||C.resolve()).catch(function(){}),zt})}}:function(Ze){N(le);var Je=P[le.name],et=Je.forages;Ze.close();for(var nt=0;nt<et.length;nt++)et[nt]._dbInfo.db=null;return new C(function(Lt,zt){var $t=m.deleteDatabase(le.name);$t.onerror=function(){var Kt=$t.result;Kt&&Kt.close(),zt($t.error)},$t.onblocked=function(){console.warn('dropInstance blocked for database "'+le.name+'" until all open connections are closed')},$t.onsuccess=function(){var Kt=$t.result;Kt&&Kt.close(),Lt(Kt)}}).then(function(Lt){Je.db=Lt;for(var zt=0;zt<et.length;zt++)W(et[zt]._dbInfo)}).catch(function(Lt){throw(G(le,Lt)||C.resolve()).catch(function(){}),Lt})})}else Me=C.reject("Invalid arguments");return T(Me,Te),Me}},oe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=/^~~local_forage_type~([^~]+)~/,h="__lfsc__:",n=h.length,r="arbf",d="blob",E="si08",F="ui08",I="uic8",Y="si16",V="si32",qe=n+r.length,Ee=Object.prototype.toString;function je(le){var De,Ce,Ye,Ze,Je,Te=.75*le.length,pe=le.length,Me=0;"="===le[le.length-1]&&(Te--,"="===le[le.length-2]&&Te--);var et=new ArrayBuffer(Te),nt=new Uint8Array(et);for(De=0;De<pe;De+=4)Ce=oe.indexOf(le[De]),Ye=oe.indexOf(le[De+1]),Ze=oe.indexOf(le[De+2]),Je=oe.indexOf(le[De+3]),nt[Me++]=Ce<<2|Ye>>4,nt[Me++]=(15&Ye)<<4|Ze>>2,nt[Me++]=(3&Ze)<<6|63&Je;return et}function Ke(le){var De,Te=new Uint8Array(le),pe="";for(De=0;De<Te.length;De+=3)pe+=oe[Te[De]>>2],pe+=oe[(3&Te[De])<<4|Te[De+1]>>4],pe+=oe[(15&Te[De+1])<<2|Te[De+2]>>6],pe+=oe[63&Te[De+2]];return Te.length%3==2?pe=pe.substring(0,pe.length-1)+"=":Te.length%3==1&&(pe=pe.substring(0,pe.length-2)+"=="),pe}var We={serialize:function Ie(le,Te){var pe="";if(le&&(pe=Ee.call(le)),le&&("[object ArrayBuffer]"===pe||le.buffer&&"[object ArrayBuffer]"===Ee.call(le.buffer))){var De,Me=h;le instanceof ArrayBuffer?(De=le,Me+=r):(De=le.buffer,"[object Int8Array]"===pe?Me+=E:"[object Uint8Array]"===pe?Me+=F:"[object Uint8ClampedArray]"===pe?Me+=I:"[object Int16Array]"===pe?Me+=Y:"[object Uint16Array]"===pe?Me+="ur16":"[object Int32Array]"===pe?Me+=V:"[object Uint32Array]"===pe?Me+="ui32":"[object Float32Array]"===pe?Me+="fl32":"[object Float64Array]"===pe?Me+="fl64":Te(new Error("Failed to get type for BinaryArray"))),Te(Me+Ke(De))}else if("[object Blob]"===pe){var Ce=new FileReader;Ce.onload=function(){var Ye="~~local_forage_type~"+le.type+"~"+Ke(this.result);Te(h+d+Ye)},Ce.readAsArrayBuffer(le)}else try{Te(JSON.stringify(le))}catch(Ye){console.error("Couldn't convert value into a JSON string: ",le),Te(null,Ye)}},deserialize:function Ne(le){if(le.substring(0,n)!==h)return JSON.parse(le);var De,Te=le.substring(qe),pe=le.substring(n,qe);if(pe===d&&a.test(Te)){var Me=Te.match(a);De=Me[1],Te=Te.substring(Me[0].length)}var Ce=je(Te);switch(pe){case r:return Ce;case d:return u([Ce],{type:De});case E:return new Int8Array(Ce);case F:return new Uint8Array(Ce);case I:return new Uint8ClampedArray(Ce);case Y:return new Int16Array(Ce);case"ur16":return new Uint16Array(Ce);case V:return new Int32Array(Ce);case"ui32":return new Uint32Array(Ce);case"fl32":return new Float32Array(Ce);case"fl64":return new Float64Array(Ce);default:throw new Error("Unkown type: "+pe)}},stringToBuffer:je,bufferToString:Ke};function $e(le,Te,pe,De){le.executeSql("CREATE TABLE IF NOT EXISTS "+Te.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],pe,De)}function rt(le,Te,pe,De,Me,Ce){le.executeSql(pe,De,Me,function(Ye,Ze){Ze.code===Ze.SYNTAX_ERR?Ye.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[Te.storeName],function(Je,et){et.rows.length?Ce(Je,Ze):$e(Je,Te,function(){Je.executeSql(pe,De,Me,Ce)},Ce)},Ce):Ce(Ye,Ze)},Ce)}function ft(le,Te,pe,De){var Me=this;le=O(le);var Ce=new C(function(Ye,Ze){Me.ready().then(function(){void 0===Te&&(Te=null);var Je=Te,et=Me._dbInfo;et.serializer.serialize(Te,function(nt,st){st?Ze(st):et.db.transaction(function(St){rt(St,et,"INSERT OR REPLACE INTO "+et.storeName+" (key, value) VALUES (?, ?)",[le,nt],function(){Ye(Je)},function(Lt,zt){Ze(zt)})},function(St){if(St.code===St.QUOTA_ERR){if(De>0)return void Ye(ft.apply(Me,[le,Je,pe,De-1]));Ze(St)}})})}).catch(Ze)});return T(Ce,pe),Ce}function At(le){return new C(function(Te,pe){le.transaction(function(De){De.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(Me,Ce){for(var Ye=[],Ze=0;Ze<Ce.rows.length;Ze++)Ye.push(Ce.rows.item(Ze).name);Te({db:le,storeNames:Ye})},function(Me,Ce){pe(Ce)})},function(De){pe(De)})})}var Rt={_driver:"webSQLStorage",_initStorage:function Qe(le){var Te=this,pe={db:null};if(le)for(var De in le)pe[De]="string"!=typeof le[De]?le[De].toString():le[De];var Me=new C(function(Ce,Ye){try{pe.db=openDatabase(pe.name,String(pe.version),pe.description,pe.size)}catch(Ze){return Ye(Ze)}pe.db.transaction(function(Ze){$e(Ze,pe,function(){Te._dbInfo=pe,Ce()},function(Je,et){Ye(et)})},Ye)});return pe.serializer=We,Me},_support:function ae(){return"function"==typeof openDatabase}(),iterate:function ut(le,Te){var pe=this,De=new C(function(Me,Ce){pe.ready().then(function(){var Ye=pe._dbInfo;Ye.db.transaction(function(Ze){rt(Ze,Ye,"SELECT * FROM "+Ye.storeName,[],function(Je,et){for(var nt=et.rows,st=nt.length,St=0;St<st;St++){var Lt=nt.item(St),zt=Lt.value;if(zt&&(zt=Ye.serializer.deserialize(zt)),void 0!==(zt=le(zt,Lt.key,St+1)))return void Me(zt)}Me()},function(Je,et){Ce(et)})})}).catch(Ce)});return T(De,Te),De},getItem:function dt(le,Te){var pe=this;le=O(le);var De=new C(function(Me,Ce){pe.ready().then(function(){var Ye=pe._dbInfo;Ye.db.transaction(function(Ze){rt(Ze,Ye,"SELECT * FROM "+Ye.storeName+" WHERE key = ? LIMIT 1",[le],function(Je,et){var nt=et.rows.length?et.rows.item(0).value:null;nt&&(nt=Ye.serializer.deserialize(nt)),Me(nt)},function(Je,et){Ce(et)})})}).catch(Ce)});return T(De,Te),De},setItem:function gt(le,Te,pe){return ft.apply(this,[le,Te,pe,1])},removeItem:function vt(le,Te){var pe=this;le=O(le);var De=new C(function(Me,Ce){pe.ready().then(function(){var Ye=pe._dbInfo;Ye.db.transaction(function(Ze){rt(Ze,Ye,"DELETE FROM "+Ye.storeName+" WHERE key = ?",[le],function(){Me()},function(Je,et){Ce(et)})})}).catch(Ce)});return T(De,Te),De},clear:function bt(le){var Te=this,pe=new C(function(De,Me){Te.ready().then(function(){var Ce=Te._dbInfo;Ce.db.transaction(function(Ye){rt(Ye,Ce,"DELETE FROM "+Ce.storeName,[],function(){De()},function(Ze,Je){Me(Je)})})}).catch(Me)});return T(pe,le),pe},length:function Pt(le){var Te=this,pe=new C(function(De,Me){Te.ready().then(function(){var Ce=Te._dbInfo;Ce.db.transaction(function(Ye){rt(Ye,Ce,"SELECT COUNT(key) as c FROM "+Ce.storeName,[],function(Ze,Je){var et=Je.rows.item(0).c;De(et)},function(Ze,Je){Me(Je)})})}).catch(Me)});return T(pe,le),pe},key:function Bt(le,Te){var pe=this,De=new C(function(Me,Ce){pe.ready().then(function(){var Ye=pe._dbInfo;Ye.db.transaction(function(Ze){rt(Ze,Ye,"SELECT key FROM "+Ye.storeName+" WHERE id = ? LIMIT 1",[le+1],function(Je,et){var nt=et.rows.length?et.rows.item(0).key:null;Me(nt)},function(Je,et){Ce(et)})})}).catch(Ce)});return T(De,Te),De},keys:function yt(le){var Te=this,pe=new C(function(De,Me){Te.ready().then(function(){var Ce=Te._dbInfo;Ce.db.transaction(function(Ye){rt(Ye,Ce,"SELECT key FROM "+Ce.storeName,[],function(Ze,Je){for(var et=[],nt=0;nt<Je.rows.length;nt++)et.push(Je.rows.item(nt).key);De(et)},function(Ze,Je){Me(Je)})})}).catch(Me)});return T(pe,le),pe},dropInstance:function wt(le,Te){Te=b.apply(this,arguments);var pe=this.config();(le="function"!=typeof le&&le||{}).name||(le.name=le.name||pe.name,le.storeName=le.storeName||pe.storeName);var Me,De=this;return T(Me=le.name?new C(function(Ce){var Ye;Ye=le.name===pe.name?De._dbInfo.db:openDatabase(le.name,"","",0),Ce(le.storeName?{db:Ye,storeNames:[le.storeName]}:At(Ye))}).then(function(Ce){return new C(function(Ye,Ze){Ce.db.transaction(function(Je){function et(Lt){return new C(function(zt,$t){Je.executeSql("DROP TABLE IF EXISTS "+Lt,[],function(){zt()},function(Kt,dn){$t(dn)})})}for(var nt=[],st=0,St=Ce.storeNames.length;st<St;st++)nt.push(et(Ce.storeNames[st]));C.all(nt).then(function(){Ye()}).catch(function(Lt){Ze(Lt)})},function(Je){Ze(Je)})})}):C.reject("Invalid arguments"),Te),Me}};function Qt(le,Te){var pe=le.name+"/";return le.storeName!==Te.storeName&&(pe+=le.storeName+"/"),pe}var Yt={_driver:"localStorageWrapper",_initStorage:function bn(le){var pe={};if(le)for(var De in le)pe[De]=le[De];return pe.keyPrefix=Qt(le,this._defaultConfig),function Ft(){return!function Wt(){var le="_localforage_support_test";try{return localStorage.setItem(le,!0),localStorage.removeItem(le),!1}catch(Te){return!0}}()||localStorage.length>0}()?(this._dbInfo=pe,pe.serializer=We,C.resolve()):C.reject()},_support:function qt(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(le){return!1}}(),iterate:function hn(le,Te){var pe=this,De=pe.ready().then(function(){for(var Me=pe._dbInfo,Ce=Me.keyPrefix,Ye=Ce.length,Ze=localStorage.length,Je=1,et=0;et<Ze;et++){var nt=localStorage.key(et);if(0===nt.indexOf(Ce)){var st=localStorage.getItem(nt);if(st&&(st=Me.serializer.deserialize(st)),void 0!==(st=le(st,nt.substring(Ye),Je++)))return st}}});return T(De,Te),De},getItem:function gn(le,Te){var pe=this;le=O(le);var De=pe.ready().then(function(){var Me=pe._dbInfo,Ce=localStorage.getItem(Me.keyPrefix+le);return Ce&&(Ce=Me.serializer.deserialize(Ce)),Ce});return T(De,Te),De},setItem:function mn(le,Te,pe){var De=this;le=O(le);var Me=De.ready().then(function(){void 0===Te&&(Te=null);var Ce=Te;return new C(function(Ye,Ze){var Je=De._dbInfo;Je.serializer.serialize(Te,function(et,nt){if(nt)Ze(nt);else try{localStorage.setItem(Je.keyPrefix+le,et),Ye(Ce)}catch(st){("QuotaExceededError"===st.name||"NS_ERROR_DOM_QUOTA_REACHED"===st.name)&&Ze(st),Ze(st)}})})});return T(Me,pe),Me},removeItem:function Rn(le,Te){var pe=this;le=O(le);var De=pe.ready().then(function(){localStorage.removeItem(pe._dbInfo.keyPrefix+le)});return T(De,Te),De},clear:function wn(le){var Te=this,pe=Te.ready().then(function(){for(var De=Te._dbInfo.keyPrefix,Me=localStorage.length-1;Me>=0;Me--){var Ce=localStorage.key(Me);0===Ce.indexOf(De)&&localStorage.removeItem(Ce)}});return T(pe,le),pe},length:function _n(le){var pe=this.keys().then(function(De){return De.length});return T(pe,le),pe},key:function Mn(le,Te){var pe=this,De=pe.ready().then(function(){var Ce,Me=pe._dbInfo;try{Ce=localStorage.key(le)}catch(Ye){Ce=null}return Ce&&(Ce=Ce.substring(Me.keyPrefix.length)),Ce});return T(De,Te),De},keys:function Tn(le){var Te=this,pe=Te.ready().then(function(){for(var De=Te._dbInfo,Me=localStorage.length,Ce=[],Ye=0;Ye<Me;Ye++){var Ze=localStorage.key(Ye);0===Ze.indexOf(De.keyPrefix)&&Ce.push(Ze.substring(De.keyPrefix.length))}return Ce});return T(pe,le),pe},dropInstance:function en(le,Te){if(Te=b.apply(this,arguments),!(le="function"!=typeof le&&le||{}).name){var pe=this.config();le.name=le.name||pe.name,le.storeName=le.storeName||pe.storeName}var Me,De=this;return T(Me=le.name?new C(function(Ce){Ce(le.storeName?Qt(le,De._defaultConfig):le.name+"/")}).then(function(Ce){for(var Ye=localStorage.length-1;Ye>=0;Ye--){var Ze=localStorage.key(Ye);0===Ze.indexOf(Ce)&&localStorage.removeItem(Ze)}}):C.reject("Invalid arguments"),Te),Me}},pi=function(Te,pe){return Te===pe||"number"==typeof Te&&"number"==typeof pe&&isNaN(Te)&&isNaN(pe)},gi=function(Te,pe){for(var De=Te.length,Me=0;Me<De;){if(pi(Te[Me],pe))return!0;Me++}return!1},ti=Array.isArray||function(le){return"[object Array]"===Object.prototype.toString.call(le)},Wn={},mi={},Nn={INDEXEDDB:Et,WEBSQL:Rt,LOCALSTORAGE:Yt},vi=[Nn.INDEXEDDB._driver,Nn.WEBSQL._driver,Nn.LOCALSTORAGE._driver],Hn=["dropInstance"],ni=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Hn),xn={description:"",driver:vi.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function zn(le,Te){le[Te]=function(){var pe=arguments;return le.ready().then(function(){return le[Te].apply(le,pe)})}}function Un(){for(var le=1;le<arguments.length;le++){var Te=arguments[le];if(Te)for(var pe in Te)Te.hasOwnProperty(pe)&&(arguments[0][pe]=ti(Te[pe])?Te[pe].slice():Te[pe])}return arguments[0]}var Yn=function(){function le(Te){for(var pe in function k(le,Te){if(!(le instanceof Te))throw new TypeError("Cannot call a class as a function")}(this,le),Nn)if(Nn.hasOwnProperty(pe)){var De=Nn[pe],Me=De._driver;this[pe]=Me,Wn[Me]||this.defineDriver(De)}this._defaultConfig=Un({},xn),this._config=Un({},this._defaultConfig,Te),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return le.prototype.config=function(pe){if("object"===(void 0===pe?"undefined":w(pe))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var De in pe){if("storeName"===De&&(pe[De]=pe[De].replace(/\W/g,"_")),"version"===De&&"number"!=typeof pe[De])return new Error("Database version must be a number.");this._config[De]=pe[De]}return!("driver"in pe)||!pe.driver||this.setDriver(this._config.driver)}return"string"==typeof pe?this._config[pe]:this._config},le.prototype.defineDriver=function(pe,De,Me){var Ce=new C(function(Ye,Ze){try{var Je=pe._driver,et=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!pe._driver)return void Ze(et);for(var nt=ni.concat("_initStorage"),st=0,St=nt.length;st<St;st++){var Lt=nt[st];if((!gi(Hn,Lt)||pe[Lt])&&"function"!=typeof pe[Lt])return void Ze(et)}!function(){for(var Gn=function(Pi){return function(){var li=new Error("Method "+Pi+" is not implemented by the current driver"),bi=C.reject(li);return T(bi,arguments[arguments.length-1]),bi}},An=0,Ai=Hn.length;An<Ai;An++){var Zn=Hn[An];pe[Zn]||(pe[Zn]=Gn(Zn))}}();var Kt=function(Gn){Wn[Je]&&console.info("Redefining LocalForage driver: "+Je),Wn[Je]=pe,mi[Je]=Gn,Ye()};"_support"in pe?pe._support&&"function"==typeof pe._support?pe._support().then(Kt,Ze):Kt(!!pe._support):Kt(!0)}catch(dn){Ze(dn)}});return M(Ce,De,Me),Ce},le.prototype.driver=function(){return this._driver||null},le.prototype.getDriver=function(pe,De,Me){var Ce=Wn[pe]?C.resolve(Wn[pe]):C.reject(new Error("Driver not found."));return M(Ce,De,Me),Ce},le.prototype.getSerializer=function(pe){var De=C.resolve(We);return M(De,pe),De},le.prototype.ready=function(pe){var De=this,Me=De._driverSet.then(function(){return null===De._ready&&(De._ready=De._initDriver()),De._ready});return M(Me,pe,pe),Me},le.prototype.setDriver=function(pe,De,Me){var Ce=this;ti(pe)||(pe=[pe]);var Ye=this._getSupportedDrivers(pe);function Ze(){Ce._config.driver=Ce.driver()}function Je(st){return Ce._extend(st),Ze(),Ce._ready=Ce._initStorage(Ce._config),Ce._ready}var nt=null!==this._driverSet?this._driverSet.catch(function(){return C.resolve()}):C.resolve();return this._driverSet=nt.then(function(){var st=Ye[0];return Ce._dbInfo=null,Ce._ready=null,Ce.getDriver(st).then(function(St){Ce._driver=St._driver,Ze(),Ce._wrapLibraryMethodsWithReady(),Ce._initDriver=function et(st){return function(){var St=0;return function Lt(){for(;St<st.length;){var zt=st[St];return St++,Ce._dbInfo=null,Ce._ready=null,Ce.getDriver(zt).then(Je).catch(Lt)}Ze();var $t=new Error("No available storage method found.");return Ce._driverSet=C.reject($t),Ce._driverSet}()}}(Ye)})}).catch(function(){Ze();var st=new Error("No available storage method found.");return Ce._driverSet=C.reject(st),Ce._driverSet}),M(this._driverSet,De,Me),this._driverSet},le.prototype.supports=function(pe){return!!mi[pe]},le.prototype._extend=function(pe){Un(this,pe)},le.prototype._getSupportedDrivers=function(pe){for(var De=[],Me=0,Ce=pe.length;Me<Ce;Me++){var Ye=pe[Me];this.supports(Ye)&&De.push(Ye)}return De},le.prototype._wrapLibraryMethodsWithReady=function(){for(var pe=0,De=ni.length;pe<De;pe++)zn(this,ni[pe])},le.prototype.createInstance=function(pe){return new le(pe)},le}(),yi=new Yn;l.exports=yi},{3:3}]},{},[4])(4)}),function(i,f){"object"==typeof exports&&"undefined"!=typeof module?module.exports=f():"function"==typeof define&&define.amd?define(f):(i=i||self).Push=f()}(this,function(){"use strict";var i={errors:{incompatible:"".concat("PushError:"," Push.js is incompatible with browser."),invalid_plugin:"".concat("PushError:"," plugin class missing from plugin manifest (invalid plugin). Please check the documentation."),invalid_title:"".concat("PushError:"," title of notification must be a string"),permission_denied:"".concat("PushError:"," permission request declined"),sw_notification_error:"".concat("PushError:"," could not show a ServiceWorker notification due to the following reason: "),sw_registration_error:"".concat("PushError:"," could not register the ServiceWorker due to the following reason: "),unknown_interface:"".concat("PushError:"," unable to create notification: unknown interface")}};function f(A){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(c){return typeof c}:function(c){return c&&"function"==typeof Symbol&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(A)}function g(A,c){if(!(A instanceof c))throw new TypeError("Cannot call a class as a function")}function j(A,c){for(var P=0;P<c.length;P++){var B=c[P];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(A,B.key,B)}}function l(A,c,P){return c&&j(A.prototype,c),P&&j(A,P),A}function S(A,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(c&&c.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),c&&k(A,c)}function w(A){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)})(A)}function k(A,c){return(k=Object.setPrototypeOf||function(P,B){return P.__proto__=B,P})(A,c)}function p(A,c){return!c||"object"!=typeof c&&"function"!=typeof c?function(P){if(void 0===P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}(A):c}var m=function(){function A(c){g(this,A),this._win=c,this.GRANTED="granted",this.DEFAULT="default",this.DENIED="denied",this._permissions=[this.GRANTED,this.DEFAULT,this.DENIED]}return l(A,[{key:"request",value:function(c,P){return arguments.length>0?this._requestWithCallback.apply(this,arguments):this._requestAsPromise()}},{key:"_requestWithCallback",value:function(c,P){var B,q=this,o=this.get(),y=!1,_=function(){var R=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q._win.Notification.permission;y||(y=!0,void 0===R&&q._win.webkitNotifications&&(R=q._win.webkitNotifications.checkPermission()),R===q.GRANTED||0===R?c&&c():P&&P())};o!==this.DEFAULT?_(o):this._win.webkitNotifications&&this._win.webkitNotifications.checkPermission?this._win.webkitNotifications.requestPermission(_):this._win.Notification&&this._win.Notification.requestPermission?(B=this._win.Notification.requestPermission(_))&&B.then&&B.then(_).catch(function(){P&&P()}):c&&c()}},{key:"_requestAsPromise",value:function(){var c=this,P=this.get(),B=P!==this.DEFAULT,q=this._win.Notification&&this._win.Notification.requestPermission,o=this._win.webkitNotifications&&this._win.webkitNotifications.checkPermission;return new Promise(function(y,_){var R,N=!1,W=function(G){var ne;N||(N=!0,(ne=G)===c.GRANTED||0===ne?y():_())};B?W(P):o?c._win.webkitNotifications.requestPermission(function(G){W(G)}):q?(R=c._win.Notification.requestPermission(W))&&R.then&&R.then(W).catch(_):y()})}},{key:"has",value:function(){return this.get()===this.GRANTED}},{key:"get",value:function(){return this._win.Notification&&this._win.Notification.permission?this._win.Notification.permission:this._win.webkitNotifications&&this._win.webkitNotifications.checkPermission?this._permissions[this._win.webkitNotifications.checkPermission()]:navigator.mozNotification?this.GRANTED:this._win.external&&this._win.external.msIsSiteMode?this._win.external.msIsSiteMode()?this.GRANTED:this.DEFAULT:this.GRANTED}}]),A}(),v=function(){function A(){g(this,A)}return l(A,null,[{key:"isUndefined",value:function(c){return void 0===c}},{key:"isNull",value:function(c){return null===obj}},{key:"isString",value:function(c){return"string"==typeof c}},{key:"isFunction",value:function(c){return c&&"[object Function]"==={}.toString.call(c)}},{key:"isObject",value:function(c){return"object"===f(c)}},{key:"objectMerge",value:function(c,P){for(var B in P)c.hasOwnProperty(B)&&this.isObject(c[B])&&this.isObject(P[B])?this.objectMerge(c[B],P[B]):c[B]=P[B]}}]),A}(),u=function A(c){g(this,A),this._win=c},C=function(A){function c(){return g(this,c),p(this,w(c).apply(this,arguments))}return S(c,u),l(c,[{key:"isSupported",value:function(){return void 0!==this._win.Notification}},{key:"create",value:function(P,B){return new this._win.Notification(P,{icon:v.isString(B.icon)||v.isUndefined(B.icon)||v.isNull(B.icon)?B.icon:B.icon.x32,body:B.body,tag:B.tag,requireInteraction:B.requireInteraction})}},{key:"close",value:function(P){P.close()}}]),c}(),T=function(A){function c(){return g(this,c),p(this,w(c).apply(this,arguments))}return S(c,u),l(c,[{key:"isSupported",value:function(){return void 0!==this._win.navigator&&void 0!==this._win.navigator.serviceWorker}},{key:"getFunctionBody",value:function(P){var B=P.toString().match(/function[^{]+{([\s\S]*)}$/);return null!=B&&B.length>1?B[1]:null}},{key:"create",value:function(P,B,q,o,y){var _=this;this._win.navigator.serviceWorker.register(o),this._win.navigator.serviceWorker.ready.then(function(R){var N={id:P,link:q.link,origin:document.location.href,onClick:v.isFunction(q.onClick)?_.getFunctionBody(q.onClick):"",onClose:v.isFunction(q.onClose)?_.getFunctionBody(q.onClose):""};null!=q.data&&(N=Object.assign(N,q.data)),R.showNotification(B,{icon:q.icon,body:q.body,vibrate:q.vibrate,tag:q.tag,data:N,requireInteraction:q.requireInteraction,silent:q.silent}).then(function(){R.getNotifications().then(function(W){R.active.postMessage(""),y(W)})}).catch(function(W){throw new Error(i.errors.sw_notification_error+W.message)})}).catch(function(R){throw new Error(i.errors.sw_registration_error+R.message)})}},{key:"close",value:function(){}}]),c}(),M=function(A){function c(){return g(this,c),p(this,w(c).apply(this,arguments))}return S(c,u),l(c,[{key:"isSupported",value:function(){return void 0!==this._win.navigator.mozNotification}},{key:"create",value:function(P,B){var q=this._win.navigator.mozNotification.createNotification(P,B.body,B.icon);return q.show(),q}}]),c}(),O=function(A){function c(){return g(this,c),p(this,w(c).apply(this,arguments))}return S(c,u),l(c,[{key:"isSupported",value:function(){return void 0!==this._win.external&&void 0!==this._win.external.msIsSiteMode}},{key:"create",value:function(P,B){return this._win.external.msSiteModeClearIconOverlay(),this._win.external.msSiteModeSetIconOverlay(v.isString(B.icon)||v.isUndefined(B.icon)?B.icon:B.icon.x16,P),this._win.external.msSiteModeActivate(),null}},{key:"close",value:function(){this._win.external.msSiteModeClearIconOverlay()}}]),c}(),b=function(A){function c(){return g(this,c),p(this,w(c).apply(this,arguments))}return S(c,u),l(c,[{key:"isSupported",value:function(){return void 0!==this._win.webkitNotifications}},{key:"create",value:function(P,B){var q=this._win.webkitNotifications.createNotification(B.icon,P,B.body);return q.show(),q}},{key:"close",value:function(P){P.cancel()}}]),c}();return new(function(){function A(c){g(this,A),this._currentId=0,this._notifications={},this._win=c,this.Permission=new m(c),this._agents={desktop:new C(c),chrome:new T(c),firefox:new M(c),ms:new O(c),webkit:new b(c)},this._configuration={serviceWorker:"/serviceWorker.min.js",fallback:function(P){}}}return l(A,[{key:"_closeNotification",value:function(c){var P=!0,B=this._notifications[c];if(void 0!==B){if(P=this._removeNotification(c),this._agents.desktop.isSupported())this._agents.desktop.close(B);else if(this._agents.webkit.isSupported())this._agents.webkit.close(B);else{if(!this._agents.ms.isSupported())throw P=!1,new Error(i.errors.unknown_interface);this._agents.ms.close()}return P}return!1}},{key:"_addNotification",value:function(c){var P=this._currentId;return this._notifications[P]=c,this._currentId++,P}},{key:"_removeNotification",value:function(c){var P=!1;return this._notifications.hasOwnProperty(c)&&(delete this._notifications[c],P=!0),P}},{key:"_prepareNotification",value:function(c,P){var B,q=this;return B={get:function(){return q._notifications[c]},close:function(){q._closeNotification(c)}},P.timeout&&setTimeout(function(){B.close()},P.timeout),B}},{key:"_serviceWorkerCallback",value:function(c,P,B){var q=this,o=this._addNotification(c[c.length-1]);navigator&&navigator.serviceWorker&&(navigator.serviceWorker.addEventListener("message",function(y){var _=JSON.parse(y.data);"close"===_.action&&Number.isInteger(_.id)&&q._removeNotification(_.id)}),B(this._prepareNotification(o,P))),B(null)}},{key:"_createCallback",value:function(c,P,B){var q,o=this,y=null;if(P=P||{},q=function(G){o._removeNotification(G),v.isFunction(P.onClose)&&P.onClose.call(o,y)},this._agents.desktop.isSupported())try{y=this._agents.desktop.create(c,P)}catch(G){var _=this._currentId,R=this.config().serviceWorker;this._agents.chrome.isSupported()&&this._agents.chrome.create(_,c,P,R,function(ne){return o._serviceWorkerCallback(ne,P,B)})}else this._agents.webkit.isSupported()?y=this._agents.webkit.create(c,P):this._agents.firefox.isSupported()?this._agents.firefox.create(c,P):this._agents.ms.isSupported()?y=this._agents.ms.create(c,P):(P.title=c,this.config().fallback(P));if(null!==y){var N=this._addNotification(y),W=this._prepareNotification(N,P);v.isFunction(P.onShow)&&y.addEventListener("show",P.onShow),v.isFunction(P.onError)&&y.addEventListener("error",P.onError),v.isFunction(P.onClick)&&y.addEventListener("click",P.onClick),y.addEventListener("close",function(){q(N)}),y.addEventListener("cancel",function(){q(N)}),B(W)}B(null)}},{key:"create",value:function(c,P){var B,q=this;if(!v.isString(c))throw new Error(i.errors.invalid_title);return B=this.Permission.has()?function(o,y){try{q._createCallback(c,P,o)}catch(_){y(_)}}:function(o,y){q.Permission.request().then(function(){q._createCallback(c,P,o)}).catch(function(){y(i.errors.permission_denied)})},new Promise(B)}},{key:"count",value:function(){var c,P=0;for(c in this._notifications)this._notifications.hasOwnProperty(c)&&P++;return P}},{key:"close",value:function(c){var P;for(P in this._notifications)if(this._notifications.hasOwnProperty(P)&&this._notifications[P].tag===c)return this._closeNotification(P)}},{key:"clear",value:function(){var c,P=!0;for(c in this._notifications)this._notifications.hasOwnProperty(c)&&(P=P&&this._closeNotification(c));return P}},{key:"supported",value:function(){var c=!1;for(var P in this._agents)this._agents.hasOwnProperty(P)&&(c=c||this._agents[P].isSupported());return c}},{key:"config",value:function(c){return(void 0!==c||null!==c&&v.isObject(c))&&v.objectMerge(this._configuration,c),this._configuration}},{key:"extend",value:function(c){var P,B={}.hasOwnProperty;if(!B.call(c,"plugin"))throw new Error(i.errors.invalid_plugin);for(var q in B.call(c,"config")&&v.isObject(c.config)&&null!==c.config&&this.config(c.config),P=new c.plugin(this.config()))B.call(P,q)&&v.isFunction(P[q])&&(this[q]=P[q])}}]),A}())("undefined"!=typeof window?window:global)}),function(f,g){"object"==typeof exports&&"object"==typeof module?module.exports=g():"function"==typeof define&&define.amd?define([],g):"object"==typeof exports?exports.Quill=g():f.Quill=g()}("undefined"!=typeof self?self:this,function(){return function(i){var f={};function g(j){if(f[j])return f[j].exports;var l=f[j]={i:j,l:!1,exports:{}};return i[j].call(l.exports,l,l.exports,g),l.l=!0,l.exports}return g.m=i,g.c=f,g.d=function(j,l,S){g.o(j,l)||Object.defineProperty(j,l,{configurable:!1,enumerable:!0,get:S})},g.n=function(j){var l=j&&j.__esModule?function(){return j.default}:function(){return j};return g.d(l,"a",l),l},g.o=function(j,l){return Object.prototype.hasOwnProperty.call(j,l)},g.p="",g(g.s=109)}([function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0});var j=g(17),l=g(18),S=g(19),w=g(45),k=g(46),p=g(47),m=g(48),v=g(49),u=g(12),C=g(32),T=g(33),M=g(31),O=g(1);f.default={Scope:O.Scope,create:O.create,find:O.find,query:O.query,register:O.register,Container:j.default,Format:l.default,Leaf:S.default,Embed:m.default,Scroll:w.default,Block:p.default,Inline:k.default,Text:v.default,Attributor:{Attribute:u.default,Class:C.default,Style:T.default,Store:M.default}}},function(i,f,g){"use strict";var M,j=this&&this.__extends||(M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,b){O.__proto__=b}||function(O,b){for(var A in b)b.hasOwnProperty(A)&&(O[A]=b[A])},function(O,b){function A(){this.constructor=O}M(O,b),O.prototype=null===b?Object.create(b):(A.prototype=b.prototype,new A)});Object.defineProperty(f,"__esModule",{value:!0});var l=function(M){function O(b){var A=this;return(A=M.call(this,b="[Parchment] "+b)||this).message=b,A.name=A.constructor.name,A}return j(O,M),O}(Error);f.ParchmentError=l;var m,S={},w={},k={},p={};function C(M,O){var b;if(void 0===O&&(O=m.ANY),"string"==typeof M)b=p[M]||S[M];else if(M instanceof Text||M.nodeType===Node.TEXT_NODE)b=p.text;else if("number"==typeof M)M&m.LEVEL&m.BLOCK?b=p.block:M&m.LEVEL&m.INLINE&&(b=p.inline);else if(M instanceof HTMLElement){var A=(M.getAttribute("class")||"").split(/\s+/);for(var c in A)if(b=w[A[c]])break;b=b||k[M.tagName]}return null==b?null:O&m.LEVEL&b.scope&&O&m.TYPE&b.scope?b:null}f.DATA_KEY="__blot",function(M){M[M.TYPE=3]="TYPE",M[M.LEVEL=12]="LEVEL",M[M.ATTRIBUTE=13]="ATTRIBUTE",M[M.BLOT=14]="BLOT",M[M.INLINE=7]="INLINE",M[M.BLOCK=11]="BLOCK",M[M.BLOCK_BLOT=10]="BLOCK_BLOT",M[M.INLINE_BLOT=6]="INLINE_BLOT",M[M.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",M[M.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",M[M.ANY=15]="ANY"}(m=f.Scope||(f.Scope={})),f.create=function v(M,O){var b=C(M);if(null==b)throw new l("Unable to create "+M+" blot");var A=b,c=M instanceof Node||M.nodeType===Node.TEXT_NODE?M:A.create(O);return new A(c,O)},f.find=function u(M,O){return void 0===O&&(O=!1),null==M?null:null!=M[f.DATA_KEY]?M[f.DATA_KEY].blot:O?u(M.parentNode,O):null},f.query=C,f.register=function T(){for(var M=[],O=0;O<arguments.length;O++)M[O]=arguments[O];if(M.length>1)return M.map(function(c){return T(c)});var b=M[0];if("string"!=typeof b.blotName&&"string"!=typeof b.attrName)throw new l("Invalid definition");if("abstract"===b.blotName)throw new l("Cannot register abstract class");if(p[b.blotName||b.attrName]=b,"string"==typeof b.keyName)S[b.keyName]=b;else if(null!=b.className&&(w[b.className]=b),null!=b.tagName){b.tagName=Array.isArray(b.tagName)?b.tagName.map(function(c){return c.toUpperCase()}):b.tagName.toUpperCase();var A=Array.isArray(b.tagName)?b.tagName:[b.tagName];A.forEach(function(c){(null==k[c]||null==b.className)&&(k[c]=b)})}return b}},function(i,f,g){var j=g(51),l=g(11),S=g(3),w=g(20),k=String.fromCharCode(0),p=function(m){this.ops=Array.isArray(m)?m:null!=m&&Array.isArray(m.ops)?m.ops:[]};p.prototype.insert=function(m,v){var u={};return 0===m.length?this:(u.insert=m,null!=v&&"object"==typeof v&&Object.keys(v).length>0&&(u.attributes=v),this.push(u))},p.prototype.delete=function(m){return m<=0?this:this.push({delete:m})},p.prototype.retain=function(m,v){if(m<=0)return this;var u={retain:m};return null!=v&&"object"==typeof v&&Object.keys(v).length>0&&(u.attributes=v),this.push(u)},p.prototype.push=function(m){var v=this.ops.length,u=this.ops[v-1];if(m=S(!0,{},m),"object"==typeof u){if("number"==typeof m.delete&&"number"==typeof u.delete)return this.ops[v-1]={delete:u.delete+m.delete},this;if("number"==typeof u.delete&&null!=m.insert&&"object"!=typeof(u=this.ops[(v-=1)-1]))return this.ops.unshift(m),this;if(l(m.attributes,u.attributes)){if("string"==typeof m.insert&&"string"==typeof u.insert)return this.ops[v-1]={insert:u.insert+m.insert},"object"==typeof m.attributes&&(this.ops[v-1].attributes=m.attributes),this;if("number"==typeof m.retain&&"number"==typeof u.retain)return this.ops[v-1]={retain:u.retain+m.retain},"object"==typeof m.attributes&&(this.ops[v-1].attributes=m.attributes),this}}return v===this.ops.length?this.ops.push(m):this.ops.splice(v,0,m),this},p.prototype.chop=function(){var m=this.ops[this.ops.length-1];return m&&m.retain&&!m.attributes&&this.ops.pop(),this},p.prototype.filter=function(m){return this.ops.filter(m)},p.prototype.forEach=function(m){this.ops.forEach(m)},p.prototype.map=function(m){return this.ops.map(m)},p.prototype.partition=function(m){var v=[],u=[];return this.forEach(function(C){(m(C)?v:u).push(C)}),[v,u]},p.prototype.reduce=function(m,v){return this.ops.reduce(m,v)},p.prototype.changeLength=function(){return this.reduce(function(m,v){return v.insert?m+w.length(v):v.delete?m-v.delete:m},0)},p.prototype.length=function(){return this.reduce(function(m,v){return m+w.length(v)},0)},p.prototype.slice=function(m,v){m=m||0,"number"!=typeof v&&(v=1/0);for(var u=[],C=w.iterator(this.ops),T=0;T<v&&C.hasNext();){var M;T<m?M=C.next(m-T):(M=C.next(v-T),u.push(M)),T+=w.length(M)}return new p(u)},p.prototype.compose=function(m){var v=w.iterator(this.ops),u=w.iterator(m.ops),C=[],T=u.peek();if(null!=T&&"number"==typeof T.retain&&null==T.attributes){for(var M=T.retain;"insert"===v.peekType()&&v.peekLength()<=M;)M-=v.peekLength(),C.push(v.next());T.retain-M>0&&u.next(T.retain-M)}for(var O=new p(C);v.hasNext()||u.hasNext();)if("insert"===u.peekType())O.push(u.next());else if("delete"===v.peekType())O.push(v.next());else{var b=Math.min(v.peekLength(),u.peekLength()),A=v.next(b),c=u.next(b);if("number"==typeof c.retain){var P={};"number"==typeof A.retain?P.retain=b:P.insert=A.insert;var B=w.attributes.compose(A.attributes,c.attributes,"number"==typeof A.retain);if(B&&(P.attributes=B),O.push(P),!u.hasNext()&&l(O.ops[O.ops.length-1],P)){var q=new p(v.rest());return O.concat(q).chop()}}else"number"==typeof c.delete&&"number"==typeof A.retain&&O.push(c)}return O.chop()},p.prototype.concat=function(m){var v=new p(this.ops.slice());return m.ops.length>0&&(v.push(m.ops[0]),v.ops=v.ops.concat(m.ops.slice(1))),v},p.prototype.diff=function(m,v){if(this.ops===m.ops)return new p;var u=[this,m].map(function(b){return b.map(function(A){if(null!=A.insert)return"string"==typeof A.insert?A.insert:k;throw new Error("diff() called "+(b===m?"on":"with")+" non-document")}).join("")}),C=new p,T=j(u[0],u[1],v),M=w.iterator(this.ops),O=w.iterator(m.ops);return T.forEach(function(b){for(var A=b[1].length;A>0;){var c=0;switch(b[0]){case j.INSERT:c=Math.min(O.peekLength(),A),C.push(O.next(c));break;case j.DELETE:c=Math.min(A,M.peekLength()),M.next(c),C.delete(c);break;case j.EQUAL:c=Math.min(M.peekLength(),O.peekLength(),A);var P=M.next(c),B=O.next(c);l(P.insert,B.insert)?C.retain(c,w.attributes.diff(P.attributes,B.attributes)):C.push(B).delete(c)}A-=c}}),C.chop()},p.prototype.eachLine=function(m,v){v=v||"\n";for(var u=w.iterator(this.ops),C=new p,T=0;u.hasNext();){if("insert"!==u.peekType())return;var M=u.peek(),O=w.length(M)-u.peekLength(),b="string"==typeof M.insert?M.insert.indexOf(v,O)-O:-1;if(b<0)C.push(u.next());else if(b>0)C.push(u.next(b));else{if(!1===m(C,u.next(1).attributes||{},T))return;T+=1,C=new p}}C.length()>0&&m(C,{},T)},p.prototype.transform=function(m,v){if(v=!!v,"number"==typeof m)return this.transformPosition(m,v);for(var u=w.iterator(this.ops),C=w.iterator(m.ops),T=new p;u.hasNext()||C.hasNext();)if("insert"!==u.peekType()||!v&&"insert"===C.peekType())if("insert"===C.peekType())T.push(C.next());else{var M=Math.min(u.peekLength(),C.peekLength()),O=u.next(M),b=C.next(M);if(O.delete)continue;b.delete?T.push(b):T.retain(M,w.attributes.transform(O.attributes,b.attributes,v))}else T.retain(w.length(u.next()));return T.chop()},p.prototype.transformPosition=function(m,v){v=!!v;for(var u=w.iterator(this.ops),C=0;u.hasNext()&&C<=m;){var T=u.peekLength(),M=u.peekType();u.next(),"delete"!==M?("insert"===M&&(C<m||!v)&&(m+=T),C+=T):m-=Math.min(T,m-C)}return m},i.exports=p},function(i,f){"use strict";var g=Object.prototype.hasOwnProperty,j=Object.prototype.toString,l=Object.defineProperty,S=Object.getOwnPropertyDescriptor,w=function(u){return"function"==typeof Array.isArray?Array.isArray(u):"[object Array]"===j.call(u)},k=function(u){if(!u||"[object Object]"!==j.call(u))return!1;var M,C=g.call(u,"constructor"),T=u.constructor&&u.constructor.prototype&&g.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!C&&!T)return!1;for(M in u);return void 0===M||g.call(u,M)},p=function(u,C){l&&"__proto__"===C.name?l(u,C.name,{enumerable:!0,configurable:!0,value:C.newValue,writable:!0}):u[C.name]=C.newValue},m=function(u,C){if("__proto__"===C){if(!g.call(u,C))return;if(S)return S(u,C).value}return u[C]};i.exports=function v(){var u,C,T,M,O,b,A=arguments[0],c=1,P=arguments.length,B=!1;for("boolean"==typeof A&&(B=A,A=arguments[1]||{},c=2),(null==A||"object"!=typeof A&&"function"!=typeof A)&&(A={});c<P;++c)if(null!=(u=arguments[c]))for(C in u)T=m(A,C),A!==(M=m(u,C))&&(B&&M&&(k(M)||(O=w(M)))?(O?(O=!1,b=T&&w(T)?T:[]):b=T&&k(T)?T:{},p(A,{name:C,newValue:v(B,b,M)})):void 0!==M&&p(A,{name:C,newValue:M}));return A}},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.default=f.BlockEmbed=f.bubbleFormats=void 0;var j=function(){function R(N,W){for(var G=0;G<W.length;G++){var ne=W[G];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(N,ne.key,ne)}}return function(N,W,G){return W&&R(N.prototype,W),G&&R(N,G),N}}(),l=function R(N,W,G){null===N&&(N=Function.prototype);var ne=Object.getOwnPropertyDescriptor(N,W);if(void 0===ne){var Z=Object.getPrototypeOf(N);return null===Z?void 0:R(Z,W,G)}if("value"in ne)return ne.value;var te=ne.get;return void 0===te?void 0:te.call(G)},w=A(g(3)),p=A(g(2)),v=A(g(0)),C=A(g(16)),M=A(g(6)),b=A(g(7));function A(R){return R&&R.__esModule?R:{default:R}}function c(R,N){if(!(R instanceof N))throw new TypeError("Cannot call a class as a function")}function P(R,N){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!N||"object"!=typeof N&&"function"!=typeof N?R:N}function B(R,N){if("function"!=typeof N&&null!==N)throw new TypeError("Super expression must either be null or a function, not "+typeof N);R.prototype=Object.create(N&&N.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(R,N):R.__proto__=N)}var o=function(R){function N(){return c(this,N),P(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return B(N,R),j(N,[{key:"attach",value:function(){l(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"attach",this).call(this),this.attributes=new v.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new p.default).insert(this.value(),(0,w.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(G,ne){var Z=v.default.query(G,v.default.Scope.BLOCK_ATTRIBUTE);null!=Z&&this.attributes.attribute(Z,ne)}},{key:"formatAt",value:function(G,ne,Z,te){this.format(Z,te)}},{key:"insertAt",value:function(G,ne,Z){if("string"==typeof ne&&ne.endsWith("\n")){var te=v.default.create(y.blotName);this.parent.insertBefore(te,0===G?this:this.next),te.insertAt(0,ne.slice(0,-1))}else l(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"insertAt",this).call(this,G,ne,Z)}}]),N}(v.default.Embed);o.scope=v.default.Scope.BLOCK_BLOT;var y=function(R){function N(W){c(this,N);var G=P(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,W));return G.cache={},G}return B(N,R),j(N,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(v.default.Leaf).reduce(function(G,ne){return 0===ne.length()?G:G.insert(ne.value(),_(ne))},new p.default).insert("\n",_(this))),this.cache.delta}},{key:"deleteAt",value:function(G,ne){l(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"deleteAt",this).call(this,G,ne),this.cache={}}},{key:"formatAt",value:function(G,ne,Z,te){ne<=0||(v.default.query(Z,v.default.Scope.BLOCK)?G+ne===this.length()&&this.format(Z,te):l(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"formatAt",this).call(this,G,Math.min(ne,this.length()-G-1),Z,te),this.cache={})}},{key:"insertAt",value:function(G,ne,Z){if(null!=Z)return l(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"insertAt",this).call(this,G,ne,Z);if(0!==ne.length){var te=ne.split("\n"),ge=te.shift();ge.length>0&&(G<this.length()-1||null==this.children.tail?l(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"insertAt",this).call(this,Math.min(G,this.length()-1),ge):this.children.tail.insertAt(this.children.tail.length(),ge),this.cache={});var Q=this;te.reduce(function(J,U){return(Q=Q.split(J,!0)).insertAt(0,U),U.length},G+ge.length)}}},{key:"insertBefore",value:function(G,ne){var Z=this.children.head;l(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"insertBefore",this).call(this,G,ne),Z instanceof C.default&&Z.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=l(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(G,ne){l(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"moveChildren",this).call(this,G,ne),this.cache={}}},{key:"optimize",value:function(G){l(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"optimize",this).call(this,G),this.cache={}}},{key:"path",value:function(G){return l(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"path",this).call(this,G,!0)}},{key:"removeChild",value:function(G){l(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"removeChild",this).call(this,G),this.cache={}}},{key:"split",value:function(G){var ne=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(ne&&(0===G||G>=this.length()-1)){var Z=this.clone();return 0===G?(this.parent.insertBefore(Z,this),this):(this.parent.insertBefore(Z,this.next),Z)}var te=l(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"split",this).call(this,G,ne);return this.cache={},te}}]),N}(v.default.Block);function _(R){var N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==R||("function"==typeof R.formats&&(N=(0,w.default)(N,R.formats())),null==R.parent||"scroll"==R.parent.blotName||R.parent.statics.scope!==R.statics.scope)?N:_(R.parent,N)}y.blotName="block",y.tagName="P",y.defaultChild="break",y.allowedChildren=[M.default,v.default.Embed,b.default],f.bubbleFormats=_,f.BlockEmbed=o,f.default=y},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.default=f.overload=f.expandConfig=void 0;var j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Q){return typeof Q}:function(Q){return Q&&"function"==typeof Symbol&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q},l=function(J,U){if(Array.isArray(J))return J;if(Symbol.iterator in Object(J))return function Q(J,U){var se=[],de=!0,me=!1,Se=void 0;try{for(var xe,ce=J[Symbol.iterator]();!(de=(xe=ce.next()).done)&&(se.push(xe.value),!U||se.length!==U);de=!0);}catch(Re){me=!0,Se=Re}finally{try{!de&&ce.return&&ce.return()}finally{if(me)throw Se}}return se}(J,U);throw new TypeError("Invalid attempt to destructure non-iterable instance")},S=function(){function Q(J,U){for(var se=0;se<U.length;se++){var de=U[se];de.enumerable=de.enumerable||!1,de.configurable=!0,"value"in de&&(de.writable=!0),Object.defineProperty(J,de.key,de)}}return function(J,U,se){return U&&Q(J.prototype,U),se&&Q(J,se),J}}();g(50);var k=_(g(2)),m=_(g(14)),u=_(g(8)),T=_(g(9)),O=_(g(0)),b=g(15),A=_(b),P=_(g(3)),q=_(g(10)),y=_(g(34));function _(Q){return Q&&Q.__esModule?Q:{default:Q}}function R(Q,J,U){return J in Q?Object.defineProperty(Q,J,{value:U,enumerable:!0,configurable:!0,writable:!0}):Q[J]=U,Q}function N(Q,J){if(!(Q instanceof J))throw new TypeError("Cannot call a class as a function")}var W=(0,q.default)("quill"),G=function(){function Q(J){var U=this,se=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(N(this,Q),this.options=ne(J,se),this.container=this.options.container,null==this.container)return W.error("Invalid Quill container",J);this.options.debug&&Q.debug(this.options.debug);var de=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new u.default,this.scroll=O.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new m.default(this.scroll),this.selection=new A.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(u.default.events.EDITOR_CHANGE,function(Se){Se===u.default.events.TEXT_CHANGE&&U.root.classList.toggle("ql-blank",U.editor.isBlank())}),this.emitter.on(u.default.events.SCROLL_UPDATE,function(Se,ce){var xe=U.selection.lastRange,Re=xe&&0===xe.length?xe.index:void 0;Z.call(U,function(){return U.editor.update(null,ce,Re)},Se)});var me=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+de+"<p><br></p></div>");this.setContents(me),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return S(Q,null,[{key:"debug",value:function(U){!0===U&&(U="log"),q.default.level(U)}},{key:"find",value:function(U){return U.__quill||O.default.find(U)}},{key:"import",value:function(U){return null==this.imports[U]&&W.error("Cannot import "+U+". Are you sure it was registered?"),this.imports[U]}},{key:"register",value:function(U,se){var de=this,me=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof U){var Se=U.attrName||U.blotName;"string"==typeof Se?this.register("formats/"+Se,U,se):Object.keys(U).forEach(function(ce){de.register(ce,U[ce],se)})}else null!=this.imports[U]&&!me&&W.warn("Overwriting "+U+" with",se),this.imports[U]=se,(U.startsWith("blots/")||U.startsWith("formats/"))&&"abstract"!==se.blotName?O.default.register(se):U.startsWith("modules")&&"function"==typeof se.register&&se.register()}}]),S(Q,[{key:"addContainer",value:function(U){var se=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof U){var de=U;(U=document.createElement("div")).classList.add(de)}return this.container.insertBefore(U,se),U}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(U,se,de){var me=this,Se=te(U,se,de),ce=l(Se,4);return Z.call(this,function(){return me.editor.deleteText(U,se)},de=ce[3],U=ce[0],-1*(se=ce[1]))}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var U=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(U),this.container.classList.toggle("ql-disabled",!U)}},{key:"focus",value:function(){var U=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=U,this.scrollIntoView()}},{key:"format",value:function(U,se){var de=this,me=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;return Z.call(this,function(){var Se=de.getSelection(!0),ce=new k.default;if(null==Se)return ce;if(O.default.query(U,O.default.Scope.BLOCK))ce=de.editor.formatLine(Se.index,Se.length,R({},U,se));else{if(0===Se.length)return de.selection.format(U,se),ce;ce=de.editor.formatText(Se.index,Se.length,R({},U,se))}return de.setSelection(Se,u.default.sources.SILENT),ce},me)}},{key:"formatLine",value:function(U,se,de,me,Se){var xe,ce=this,Re=te(U,se,de,me,Se),Oe=l(Re,4);return se=Oe[1],xe=Oe[2],Z.call(this,function(){return ce.editor.formatLine(U,se,xe)},Se=Oe[3],U=Oe[0],0)}},{key:"formatText",value:function(U,se,de,me,Se){var xe,ce=this,Re=te(U,se,de,me,Se),Oe=l(Re,4);return se=Oe[1],xe=Oe[2],Z.call(this,function(){return ce.editor.formatText(U,se,xe)},Se=Oe[3],U=Oe[0],0)}},{key:"getBounds",value:function(U){var se=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,de=void 0;de="number"==typeof U?this.selection.getBounds(U,se):this.selection.getBounds(U.index,U.length);var me=this.container.getBoundingClientRect();return{bottom:de.bottom-me.top,height:de.height,left:de.left-me.left,right:de.right-me.left,top:de.top-me.top,width:de.width}}},{key:"getContents",value:function(){var U=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,se=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-U,de=te(U,se),me=l(de,2);return this.editor.getContents(U=me[0],se=me[1])}},{key:"getFormat",value:function(){var U=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),se=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof U?this.editor.getFormat(U,se):this.editor.getFormat(U.index,U.length)}},{key:"getIndex",value:function(U){return U.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(U){return this.scroll.leaf(U)}},{key:"getLine",value:function(U){return this.scroll.line(U)}},{key:"getLines",value:function(){var U=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,se=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof U?this.scroll.lines(U.index,U.length):this.scroll.lines(U,se)}},{key:"getModule",value:function(U){return this.theme.modules[U]}},{key:"getSelection",value:function(){var U=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return U&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var U=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,se=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-U,de=te(U,se),me=l(de,2);return this.editor.getText(U=me[0],se=me[1])}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(U,se,de){var me=this,Se=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Q.sources.API;return Z.call(this,function(){return me.editor.insertEmbed(U,se,de)},Se,U)}},{key:"insertText",value:function(U,se,de,me,Se){var xe,ce=this,Re=te(U,0,de,me,Se),Oe=l(Re,4);return xe=Oe[2],Z.call(this,function(){return ce.editor.insertText(U,se,xe)},Se=Oe[3],U=Oe[0],se.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(U,se,de){this.clipboard.dangerouslyPasteHTML(U,se,de)}},{key:"removeFormat",value:function(U,se,de){var me=this,Se=te(U,se,de),ce=l(Se,4);return se=ce[1],Z.call(this,function(){return me.editor.removeFormat(U,se)},de=ce[3],U=ce[0])}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(U){var se=this,de=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API;return Z.call(this,function(){U=new k.default(U);var me=se.getLength(),Se=se.editor.deleteText(0,me),ce=se.editor.applyDelta(U),xe=ce.ops[ce.ops.length-1];return null!=xe&&"string"==typeof xe.insert&&"\n"===xe.insert[xe.insert.length-1]&&(se.editor.deleteText(se.getLength()-1,1),ce.delete(1)),Se.compose(ce)},de)}},{key:"setSelection",value:function(U,se,de){if(null==U)this.selection.setRange(null,se||Q.sources.API);else{var me=te(U,se,de),Se=l(me,4);de=Se[3],this.selection.setRange(new b.Range(U=Se[0],se=Se[1]),de),de!==u.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(U){var se=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API,de=(new k.default).insert(U);return this.setContents(de,se)}},{key:"update",value:function(){var U=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.default.sources.USER,se=this.scroll.update(U);return this.selection.update(U),se}},{key:"updateContents",value:function(U){var se=this,de=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API;return Z.call(this,function(){return U=new k.default(U),se.editor.applyDelta(U,de)},de,!0)}}]),Q}();function ne(Q,J){if((J=(0,P.default)(!0,{container:Q,modules:{clipboard:!0,keyboard:!0,history:!0}},J)).theme&&J.theme!==G.DEFAULTS.theme){if(J.theme=G.import("themes/"+J.theme),null==J.theme)throw new Error("Invalid theme "+J.theme+". Did you register it?")}else J.theme=y.default;var U=(0,P.default)(!0,{},J.theme.DEFAULTS);[U,J].forEach(function(me){me.modules=me.modules||{},Object.keys(me.modules).forEach(function(Se){!0===me.modules[Se]&&(me.modules[Se]={})})});var de=Object.keys(U.modules).concat(Object.keys(J.modules)).reduce(function(me,Se){var ce=G.import("modules/"+Se);return null==ce?W.error("Cannot load "+Se+" module. Are you sure you registered it?"):me[Se]=ce.DEFAULTS||{},me},{});return null!=J.modules&&J.modules.toolbar&&J.modules.toolbar.constructor!==Object&&(J.modules.toolbar={container:J.modules.toolbar}),J=(0,P.default)(!0,{},G.DEFAULTS,{modules:de},U,J),["bounds","container","scrollingContainer"].forEach(function(me){"string"==typeof J[me]&&(J[me]=document.querySelector(J[me]))}),J.modules=Object.keys(J.modules).reduce(function(me,Se){return J.modules[Se]&&(me[Se]=J.modules[Se]),me},{}),J}function Z(Q,J,U,se){if(this.options.strict&&!this.isEnabled()&&J===u.default.sources.USER)return new k.default;var de=null==U?null:this.getSelection(),me=this.editor.delta,Se=Q();if(null!=de&&(!0===U&&(U=de.index),null==se?de=ge(de,Se,J):0!==se&&(de=ge(de,U,se,J)),this.setSelection(de,u.default.sources.SILENT)),Se.length()>0){var ce,Re,xe=[u.default.events.TEXT_CHANGE,Se,me,J];(ce=this.emitter).emit.apply(ce,[u.default.events.EDITOR_CHANGE].concat(xe)),J!==u.default.sources.SILENT&&(Re=this.emitter).emit.apply(Re,xe)}return Se}function te(Q,J,U,se,de){var me={};return"number"==typeof Q.index&&"number"==typeof Q.length?"number"!=typeof J?(de=se,se=U,U=J,J=Q.length,Q=Q.index):(J=Q.length,Q=Q.index):"number"!=typeof J&&(de=se,se=U,U=J,J=0),"object"===(void 0===U?"undefined":j(U))?(me=U,de=se):"string"==typeof U&&(null!=se?me[U]=se:de=U),[Q,J,me,de=de||u.default.sources.API]}function ge(Q,J,U,se){if(null==Q)return null;var de=void 0,me=void 0;if(J instanceof k.default){var Se=[Q.index,Q.index+Q.length].map(function(Oe){return J.transformPosition(Oe,se!==u.default.sources.USER)}),ce=l(Se,2);de=ce[0],me=ce[1]}else{var xe=[Q.index,Q.index+Q.length].map(function(Oe){return Oe<J||Oe===J&&se===u.default.sources.USER?Oe:U>=0?Oe+U:Math.max(J,Oe+U)}),Re=l(xe,2);de=Re[0],me=Re[1]}return new b.Range(de,me-de)}G.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},G.events=u.default.events,G.sources=u.default.sources,G.version="1.3.7",G.imports={delta:k.default,parchment:O.default,"core/module":T.default,"core/theme":y.default},f.expandConfig=ne,f.overload=te,f.default=G},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0});var j=function(){function M(O,b){for(var A=0;A<b.length;A++){var c=b[A];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(O,c.key,c)}}return function(O,b,A){return b&&M(O.prototype,b),A&&M(O,A),O}}(),l=function M(O,b,A){null===O&&(O=Function.prototype);var c=Object.getOwnPropertyDescriptor(O,b);if(void 0===c){var P=Object.getPrototypeOf(O);return null===P?void 0:M(P,b,A)}if("value"in c)return c.value;var B=c.get;return void 0===B?void 0:B.call(A)},w=m(g(7)),p=m(g(0));function m(M){return M&&M.__esModule?M:{default:M}}function v(M,O){if(!(M instanceof O))throw new TypeError("Cannot call a class as a function")}function u(M,O){if(!M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!O||"object"!=typeof O&&"function"!=typeof O?M:O}var T=function(M){function O(){return v(this,O),u(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments))}return function C(M,O){if("function"!=typeof O&&null!==O)throw new TypeError("Super expression must either be null or a function, not "+typeof O);M.prototype=Object.create(O&&O.prototype,{constructor:{value:M,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(M,O):M.__proto__=O)}(O,M),j(O,[{key:"formatAt",value:function(A,c,P,B){if(O.compare(this.statics.blotName,P)<0&&p.default.query(P,p.default.Scope.BLOT)){var q=this.isolate(A,c);B&&q.wrap(P,B)}else l(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"formatAt",this).call(this,A,c,P,B)}},{key:"optimize",value:function(A){if(l(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"optimize",this).call(this,A),this.parent instanceof O&&O.compare(this.statics.blotName,this.parent.statics.blotName)>0){var c=this.parent.isolate(this.offset(),this.length());this.moveChildren(c),c.wrap(this)}}}],[{key:"compare",value:function(A,c){var P=O.order.indexOf(A),B=O.order.indexOf(c);return P>=0||B>=0?P-B:A===c?0:A<c?-1:1}}]),O}(p.default.Inline);T.allowedChildren=[T,p.default.Embed,w.default],T.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],f.default=T},function(i,f,g){"use strict";function w(v,u){if(!(v instanceof u))throw new TypeError("Cannot call a class as a function")}function k(v,u){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!u||"object"!=typeof u&&"function"!=typeof u?v:u}Object.defineProperty(f,"__esModule",{value:!0});var m=function(v){function u(){return w(this,u),k(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return function p(v,u){if("function"!=typeof u&&null!==u)throw new TypeError("Super expression must either be null or a function, not "+typeof u);v.prototype=Object.create(u&&u.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(v,u):v.__proto__=u)}(u,v),u}(function S(v){return v&&v.__esModule?v:{default:v}}(g(0)).default.Text);f.default=m},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0});var j=function(){function b(A,c){for(var P=0;P<c.length;P++){var B=c[P];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(A,B.key,B)}}return function(A,c,P){return c&&b(A.prototype,c),P&&b(A,P),A}}(),l=function b(A,c,P){null===A&&(A=Function.prototype);var B=Object.getOwnPropertyDescriptor(A,c);if(void 0===B){var q=Object.getPrototypeOf(A);return null===q?void 0:b(q,c,P)}if("value"in B)return B.value;var o=B.get;return void 0===o?void 0:o.call(P)},w=m(g(54));function m(b){return b&&b.__esModule?b:{default:b}}var T=(0,m(g(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(function(b){document.addEventListener(b,function(){for(var A=arguments.length,c=Array(A),P=0;P<A;P++)c[P]=arguments[P];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(B){var q;B.__quill&&B.__quill.emitter&&(q=B.__quill.emitter).handleDOM.apply(q,c)})})});var O=function(b){function A(){!function v(b,A){if(!(b instanceof A))throw new TypeError("Cannot call a class as a function")}(this,A);var c=function u(b,A){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!A||"object"!=typeof A&&"function"!=typeof A?b:A}(this,(A.__proto__||Object.getPrototypeOf(A)).call(this));return c.listeners={},c.on("error",T.error),c}return function C(b,A){if("function"!=typeof A&&null!==A)throw new TypeError("Super expression must either be null or a function, not "+typeof A);b.prototype=Object.create(A&&A.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(b,A):b.__proto__=A)}(A,b),j(A,[{key:"emit",value:function(){T.log.apply(T,arguments),l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(P){for(var B=arguments.length,q=Array(B>1?B-1:0),o=1;o<B;o++)q[o-1]=arguments[o];(this.listeners[P.type]||[]).forEach(function(y){var _=y.node,R=y.handler;(P.target===_||_.contains(P.target))&&R.apply(void 0,[P].concat(q))})}},{key:"listenDOM",value:function(P,B,q){this.listeners[P]||(this.listeners[P]=[]),this.listeners[P].push({node:B,handler:q})}}]),A}(w.default);O.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},O.sources={API:"api",SILENT:"silent",USER:"user"},f.default=O},function(i,f,g){"use strict";function j(S,w){if(!(S instanceof w))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(f,"__esModule",{value:!0});var l=function S(w){var k=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};j(this,S),this.quill=w,this.options=k};l.DEFAULTS={},f.default=l},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0});var j=["error","warn","log","info"],l="warn";function S(k){if(j.indexOf(k)<=j.indexOf(l)){for(var p,m=arguments.length,v=Array(m>1?m-1:0),u=1;u<m;u++)v[u-1]=arguments[u];(p=console)[k].apply(p,v)}}function w(k){return j.reduce(function(p,m){return p[m]=S.bind(console,m,k),p},{})}S.level=w.level=function(k){l=k},f.default=w},function(i,f,g){var j=Array.prototype.slice,l=g(52),S=g(53),w=i.exports=function(v,u,C){return C||(C={}),v===u||(v instanceof Date&&u instanceof Date?v.getTime()===u.getTime():!v||!u||"object"!=typeof v&&"object"!=typeof u?C.strict?v===u:v==u:function m(v,u,C){var T,M;if(k(v)||k(u)||v.prototype!==u.prototype)return!1;if(S(v))return!!S(u)&&(v=j.call(v),u=j.call(u),w(v,u,C));if(p(v)){if(!p(u)||v.length!==u.length)return!1;for(T=0;T<v.length;T++)if(v[T]!==u[T])return!1;return!0}try{var O=l(v),b=l(u)}catch(A){return!1}if(O.length!=b.length)return!1;for(O.sort(),b.sort(),T=O.length-1;T>=0;T--)if(O[T]!=b[T])return!1;for(T=O.length-1;T>=0;T--)if(!w(v[M=O[T]],u[M],C))return!1;return typeof v==typeof u}(v,u,C))};function k(v){return null==v}function p(v){return!(!v||"object"!=typeof v||"number"!=typeof v.length||"function"!=typeof v.copy||"function"!=typeof v.slice||v.length>0&&"number"!=typeof v[0])}},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0});var j=g(1),l=function(){function S(w,k,p){void 0===p&&(p={}),this.attrName=w,this.keyName=k,this.scope=null!=p.scope?p.scope&j.Scope.LEVEL|j.Scope.TYPE&j.Scope.ATTRIBUTE:j.Scope.ATTRIBUTE,null!=p.whitelist&&(this.whitelist=p.whitelist)}return S.keys=function(w){return[].map.call(w.attributes,function(k){return k.name})},S.prototype.add=function(w,k){return!!this.canAdd(w,k)&&(w.setAttribute(this.keyName,k),!0)},S.prototype.canAdd=function(w,k){return null!=j.query(w,j.Scope.BLOT&(this.scope|j.Scope.TYPE))&&(null==this.whitelist||("string"==typeof k?this.whitelist.indexOf(k.replace(/["']/g,""))>-1:this.whitelist.indexOf(k)>-1))},S.prototype.remove=function(w){w.removeAttribute(this.keyName)},S.prototype.value=function(w){var k=w.getAttribute(this.keyName);return this.canAdd(w,k)&&k?k:""},S}();f.default=l},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.default=f.Code=void 0;var j=function(y,_){if(Array.isArray(y))return y;if(Symbol.iterator in Object(y))return function o(y,_){var R=[],N=!0,W=!1,G=void 0;try{for(var Z,ne=y[Symbol.iterator]();!(N=(Z=ne.next()).done)&&(R.push(Z.value),!_||R.length!==_);N=!0);}catch(te){W=!0,G=te}finally{try{!N&&ne.return&&ne.return()}finally{if(W)throw G}}return R}(y,_);throw new TypeError("Invalid attempt to destructure non-iterable instance")},l=function(){function o(y,_){for(var R=0;R<_.length;R++){var N=_[R];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(y,N.key,N)}}return function(y,_,R){return _&&o(y.prototype,_),R&&o(y,R),y}}(),S=function o(y,_,R){null===y&&(y=Function.prototype);var N=Object.getOwnPropertyDescriptor(y,_);if(void 0===N){var W=Object.getPrototypeOf(y);return null===W?void 0:o(W,_,R)}if("value"in N)return N.value;var G=N.get;return void 0===G?void 0:G.call(R)},k=b(g(2)),m=b(g(0)),u=b(g(4)),T=b(g(6)),O=b(g(7));function b(o){return o&&o.__esModule?o:{default:o}}function A(o,y){if(!(o instanceof y))throw new TypeError("Cannot call a class as a function")}function c(o,y){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||"object"!=typeof y&&"function"!=typeof y?o:y}function P(o,y){if("function"!=typeof y&&null!==y)throw new TypeError("Super expression must either be null or a function, not "+typeof y);o.prototype=Object.create(y&&y.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(o,y):o.__proto__=y)}var B=function(o){function y(){return A(this,y),c(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return P(y,o),y}(T.default);B.blotName="code",B.tagName="CODE";var q=function(o){function y(){return A(this,y),c(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return P(y,o),l(y,[{key:"delta",value:function(){var R=this,N=this.domNode.textContent;return N.endsWith("\n")&&(N=N.slice(0,-1)),N.split("\n").reduce(function(W,G){return W.insert(G).insert("\n",R.formats())},new k.default)}},{key:"format",value:function(R,N){if(R!==this.statics.blotName||!N){var W=this.descendant(O.default,this.length()-1),ne=j(W,1)[0];null!=ne&&ne.deleteAt(ne.length()-1,1),S(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,R,N)}}},{key:"formatAt",value:function(R,N,W,G){if(0!==N&&null!=m.default.query(W,m.default.Scope.BLOCK)&&(W!==this.statics.blotName||G!==this.statics.formats(this.domNode))){var ne=this.newlineIndex(R);if(!(ne<0||ne>=R+N)){var Z=this.newlineIndex(R,!0)+1,te=ne-Z+1,ge=this.isolate(Z,te),Q=ge.next;ge.format(W,G),Q instanceof y&&Q.formatAt(0,R-Z+N-te,W,G)}}}},{key:"insertAt",value:function(R,N,W){if(null==W){var G=this.descendant(O.default,R),ne=j(G,2);ne[0].insertAt(ne[1],N)}}},{key:"length",value:function(){var R=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?R:R+1}},{key:"newlineIndex",value:function(R){var N=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(N)return this.domNode.textContent.slice(0,R).lastIndexOf("\n");var W=this.domNode.textContent.slice(R).indexOf("\n");return W>-1?R+W:-1}},{key:"optimize",value:function(R){this.domNode.textContent.endsWith("\n")||this.appendChild(m.default.create("text","\n")),S(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"optimize",this).call(this,R);var N=this.next;null!=N&&N.prev===this&&N.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===N.statics.formats(N.domNode)&&(N.optimize(R),N.moveChildren(this),N.remove())}},{key:"replace",value:function(R){S(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"replace",this).call(this,R),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(N){var W=m.default.find(N);null==W?N.parentNode.removeChild(N):W instanceof m.default.Embed?W.remove():W.unwrap()})}}],[{key:"create",value:function(R){var N=S(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,R);return N.setAttribute("spellcheck",!1),N}},{key:"formats",value:function(){return!0}}]),y}(u.default);q.blotName="code-block",q.tagName="PRE",q.TAB=" ",f.Code=B,f.default=q},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0});var j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Q){return typeof Q}:function(Q){return Q&&"function"==typeof Symbol&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q},l=function(J,U){if(Array.isArray(J))return J;if(Symbol.iterator in Object(J))return function Q(J,U){var se=[],de=!0,me=!1,Se=void 0;try{for(var xe,ce=J[Symbol.iterator]();!(de=(xe=ce.next()).done)&&(se.push(xe.value),!U||se.length!==U);de=!0);}catch(Re){me=!0,Se=Re}finally{try{!de&&ce.return&&ce.return()}finally{if(me)throw Se}}return se}(J,U);throw new TypeError("Invalid attempt to destructure non-iterable instance")},S=function(){function Q(J,U){for(var se=0;se<U.length;se++){var de=U[se];de.enumerable=de.enumerable||!1,de.configurable=!0,"value"in de&&(de.writable=!0),Object.defineProperty(J,de.key,de)}}return function(J,U,se){return U&&Q(J.prototype,U),se&&Q(J,se),J}}(),k=N(g(2)),m=N(g(20)),u=N(g(0)),T=N(g(13)),O=N(g(24)),b=g(4),A=N(b),P=N(g(16)),q=N(g(21)),y=N(g(11)),R=N(g(3));function N(Q){return Q&&Q.__esModule?Q:{default:Q}}var ne=/^[ -~]*$/,Z=function(){function Q(J){(function G(Q,J){if(!(Q instanceof J))throw new TypeError("Cannot call a class as a function")})(this,Q),this.scroll=J,this.delta=this.getDelta()}return S(Q,[{key:"applyDelta",value:function(U){var se=this,de=!1;this.scroll.update();var me=this.scroll.length();return this.scroll.batchStart(),U=function ge(Q){return Q.reduce(function(J,U){if(1===U.insert){var se=(0,q.default)(U.attributes);return delete se.image,J.insert({image:U.attributes.image},se)}if(null!=U.attributes&&(!0===U.attributes.list||!0===U.attributes.bullet)&&((U=(0,q.default)(U)).attributes.list?U.attributes.list="ordered":(U.attributes.list="bullet",delete U.attributes.bullet)),"string"==typeof U.insert){var de=U.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return J.insert(de,U.attributes)}return J.push(U)},new k.default)}(U),U.reduce(function(Se,ce){var xe=ce.retain||ce.delete||ce.insert.length||1,Re=ce.attributes||{};if(null!=ce.insert){if("string"==typeof ce.insert){var Oe=ce.insert;Oe.endsWith("\n")&&de&&(de=!1,Oe=Oe.slice(0,-1)),Se>=me&&!Oe.endsWith("\n")&&(de=!0),se.scroll.insertAt(Se,Oe);var we=se.scroll.line(Se),Ue=l(we,2),tt=Ue[0],it=Ue[1],ot=(0,R.default)({},(0,b.bubbleFormats)(tt));if(tt instanceof A.default){var Ot=tt.descendant(u.default.Leaf,it),Et=l(Ot,1);ot=(0,R.default)(ot,(0,b.bubbleFormats)(Et[0]))}Re=m.default.attributes.diff(ot,Re)||{}}else if("object"===j(ce.insert)){var oe=Object.keys(ce.insert)[0];if(null==oe)return Se;se.scroll.insertAt(Se,oe,ce.insert[oe])}me+=xe}return Object.keys(Re).forEach(function(fe){se.scroll.formatAt(Se,xe,fe,Re[fe])}),Se+xe},0),U.reduce(function(Se,ce){return"number"==typeof ce.delete?(se.scroll.deleteAt(Se,ce.delete),Se):Se+(ce.retain||ce.insert.length||1)},0),this.scroll.batchEnd(),this.update(U)}},{key:"deleteText",value:function(U,se){return this.scroll.deleteAt(U,se),this.update((new k.default).retain(U).delete(se))}},{key:"formatLine",value:function(U,se){var de=this,me=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(me).forEach(function(Se){if(null==de.scroll.whitelist||de.scroll.whitelist[Se]){var ce=de.scroll.lines(U,Math.max(se,1)),xe=se;ce.forEach(function(Re){var Oe=Re.length();if(Re instanceof T.default){var we=U-Re.offset(de.scroll),Ue=Re.newlineIndex(we+xe)-we+1;Re.formatAt(we,Ue,Se,me[Se])}else Re.format(Se,me[Se]);xe-=Oe})}}),this.scroll.optimize(),this.update((new k.default).retain(U).retain(se,(0,q.default)(me)))}},{key:"formatText",value:function(U,se){var de=this,me=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(me).forEach(function(Se){de.scroll.formatAt(U,se,Se,me[Se])}),this.update((new k.default).retain(U).retain(se,(0,q.default)(me)))}},{key:"getContents",value:function(U,se){return this.delta.slice(U,U+se)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(U,se){return U.concat(se.delta())},new k.default)}},{key:"getFormat",value:function(U){var se=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,de=[],me=[];0===se?this.scroll.path(U).forEach(function(ce){var Re=l(ce,1)[0];Re instanceof A.default?de.push(Re):Re instanceof u.default.Leaf&&me.push(Re)}):(de=this.scroll.lines(U,se),me=this.scroll.descendants(u.default.Leaf,U,se));var Se=[de,me].map(function(ce){if(0===ce.length)return{};for(var xe=(0,b.bubbleFormats)(ce.shift());Object.keys(xe).length>0;){var Re=ce.shift();if(null==Re)return xe;xe=te((0,b.bubbleFormats)(Re),xe)}return xe});return R.default.apply(R.default,Se)}},{key:"getText",value:function(U,se){return this.getContents(U,se).filter(function(de){return"string"==typeof de.insert}).map(function(de){return de.insert}).join("")}},{key:"insertEmbed",value:function(U,se,de){return this.scroll.insertAt(U,se,de),this.update((new k.default).retain(U).insert(function W(Q,J,U){return J in Q?Object.defineProperty(Q,J,{value:U,enumerable:!0,configurable:!0,writable:!0}):Q[J]=U,Q}({},se,de)))}},{key:"insertText",value:function(U,se){var de=this,me=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return se=se.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(U,se),Object.keys(me).forEach(function(Se){de.scroll.formatAt(U,se.length,Se,me[Se])}),this.update((new k.default).retain(U).insert(se,(0,q.default)(me)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var U=this.scroll.children.head;return!(U.statics.blotName!==A.default.blotName||U.children.length>1)&&U.children.head instanceof P.default}},{key:"removeFormat",value:function(U,se){var de=this.getText(U,se),me=this.scroll.line(U+se),Se=l(me,2),ce=Se[0],xe=Se[1],Re=0,Oe=new k.default;null!=ce&&(Re=ce instanceof T.default?ce.newlineIndex(xe)-xe+1:ce.length()-xe,Oe=ce.delta().slice(xe,xe+Re-1).insert("\n"));var Ue=this.getContents(U,se+Re).diff((new k.default).insert(de).concat(Oe)),tt=(new k.default).retain(U).concat(Ue);return this.applyDelta(tt)}},{key:"update",value:function(U){var se=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],de=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,me=this.delta;if(1===se.length&&"characterData"===se[0].type&&se[0].target.data.match(ne)&&u.default.find(se[0].target)){var Se=u.default.find(se[0].target),ce=(0,b.bubbleFormats)(Se),xe=Se.offset(this.scroll),Re=se[0].oldValue.replace(O.default.CONTENTS,""),Oe=(new k.default).insert(Re),we=(new k.default).insert(Se.value()),Ue=(new k.default).retain(xe).concat(Oe.diff(we,de));U=Ue.reduce(function(tt,it){return it.insert?tt.insert(it.insert,ce):tt.push(it)},new k.default),this.delta=me.compose(U)}else this.delta=this.getDelta(),(!U||!(0,y.default)(me.compose(U),this.delta))&&(U=me.diff(this.delta,de));return U}}]),Q}();function te(Q,J){return Object.keys(J).reduce(function(U,se){return null==Q[se]||(J[se]===Q[se]?U[se]=J[se]:Array.isArray(J[se])?J[se].indexOf(Q[se])<0&&(U[se]=J[se].concat([Q[se]])):U[se]=[J[se],Q[se]]),U},{})}f.default=Z},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.default=f.Range=void 0;var j=function(y,_){if(Array.isArray(y))return y;if(Symbol.iterator in Object(y))return function o(y,_){var R=[],N=!0,W=!1,G=void 0;try{for(var Z,ne=y[Symbol.iterator]();!(N=(Z=ne.next()).done)&&(R.push(Z.value),!_||R.length!==_);N=!0);}catch(te){W=!0,G=te}finally{try{!N&&ne.return&&ne.return()}finally{if(W)throw G}}return R}(y,_);throw new TypeError("Invalid attempt to destructure non-iterable instance")},l=function(){function o(y,_){for(var R=0;R<_.length;R++){var N=_[R];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(y,N.key,N)}}return function(y,_,R){return _&&o(y.prototype,_),R&&o(y,R),y}}(),w=O(g(0)),p=O(g(21)),v=O(g(11)),C=O(g(8));function O(o){return o&&o.__esModule?o:{default:o}}function b(o){if(Array.isArray(o)){for(var y=0,_=Array(o.length);y<o.length;y++)_[y]=o[y];return _}return Array.from(o)}function A(o,y){if(!(o instanceof y))throw new TypeError("Cannot call a class as a function")}var c=(0,O(g(10)).default)("quill:selection"),P=function o(y){var _=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;A(this,o),this.index=y,this.length=_},B=function(){function o(y,_){var R=this;A(this,o),this.emitter=_,this.scroll=y,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=w.default.create("cursor",this),this.lastRange=this.savedRange=new P(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){R.mouseDown||setTimeout(R.update.bind(R,C.default.sources.USER),1)}),this.emitter.on(C.default.events.EDITOR_CHANGE,function(N,W){N===C.default.events.TEXT_CHANGE&&W.length()>0&&R.update(C.default.sources.SILENT)}),this.emitter.on(C.default.events.SCROLL_BEFORE_UPDATE,function(){if(R.hasFocus()){var N=R.getNativeRange();null!=N&&N.start.node!==R.cursor.textNode&&R.emitter.once(C.default.events.SCROLL_UPDATE,function(){try{R.setNativeRange(N.start.node,N.start.offset,N.end.node,N.end.offset)}catch(W){}})}}),this.emitter.on(C.default.events.SCROLL_OPTIMIZE,function(N,W){if(W.range){var G=W.range;R.setNativeRange(G.startNode,G.startOffset,G.endNode,G.endOffset)}}),this.update(C.default.sources.SILENT)}return l(o,[{key:"handleComposition",value:function(){var _=this;this.root.addEventListener("compositionstart",function(){_.composing=!0}),this.root.addEventListener("compositionend",function(){if(_.composing=!1,_.cursor.parent){var R=_.cursor.restore();if(!R)return;setTimeout(function(){_.setNativeRange(R.startNode,R.startOffset,R.endNode,R.endOffset)},1)}})}},{key:"handleDragging",value:function(){var _=this;this.emitter.listenDOM("mousedown",document.body,function(){_.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){_.mouseDown=!1,_.update(C.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(_,R){if(null==this.scroll.whitelist||this.scroll.whitelist[_]){this.scroll.update();var N=this.getNativeRange();if(null!=N&&N.native.collapsed&&!w.default.query(_,w.default.Scope.BLOCK)){if(N.start.node!==this.cursor.textNode){var W=w.default.find(N.start.node,!1);if(null==W)return;if(W instanceof w.default.Leaf){var G=W.split(N.start.offset);W.parent.insertBefore(this.cursor,G)}else W.insertBefore(this.cursor,N.start.node);this.cursor.attach()}this.cursor.format(_,R),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(_){var R=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,N=this.scroll.length();_=Math.min(_,N-1),R=Math.min(_+R,N-1)-_;var W=void 0,G=this.scroll.leaf(_),ne=j(G,2),Z=ne[0],te=ne[1];if(null==Z)return null;var ge=Z.position(te,!0),Q=j(ge,2);W=Q[0],te=Q[1];var J=document.createRange();if(R>0){J.setStart(W,te);var U=this.scroll.leaf(_+R),se=j(U,2);if(null==(Z=se[0]))return null;var de=Z.position(te=se[1],!0),me=j(de,2);return J.setEnd(W=me[0],te=me[1]),J.getBoundingClientRect()}var Se="left",ce=void 0;return W instanceof Text?(te<W.data.length?(J.setStart(W,te),J.setEnd(W,te+1)):(J.setStart(W,te-1),J.setEnd(W,te),Se="right"),ce=J.getBoundingClientRect()):(ce=Z.domNode.getBoundingClientRect(),te>0&&(Se="right")),{bottom:ce.top+ce.height,height:ce.height,left:ce[Se],right:ce[Se],top:ce.top,width:0}}},{key:"getNativeRange",value:function(){var _=document.getSelection();if(null==_||_.rangeCount<=0)return null;var R=_.getRangeAt(0);if(null==R)return null;var N=this.normalizeNative(R);return c.info("getNativeRange",N),N}},{key:"getRange",value:function(){var _=this.getNativeRange();return null==_?[null,null]:[this.normalizedToRange(_),_]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(_){var R=this,N=[[_.start.node,_.start.offset]];_.native.collapsed||N.push([_.end.node,_.end.offset]);var W=N.map(function(Z){var te=j(Z,2),ge=te[0],Q=te[1],J=w.default.find(ge,!0),U=J.offset(R.scroll);return 0===Q?U:J instanceof w.default.Container?U+J.length():U+J.index(ge,Q)}),G=Math.min(Math.max.apply(Math,b(W)),this.scroll.length()-1),ne=Math.min.apply(Math,[G].concat(b(W)));return new P(ne,G-ne)}},{key:"normalizeNative",value:function(_){if(!q(this.root,_.startContainer)||!_.collapsed&&!q(this.root,_.endContainer))return null;var R={start:{node:_.startContainer,offset:_.startOffset},end:{node:_.endContainer,offset:_.endOffset},native:_};return[R.start,R.end].forEach(function(N){for(var W=N.node,G=N.offset;!(W instanceof Text)&&W.childNodes.length>0;)if(W.childNodes.length>G)W=W.childNodes[G],G=0;else{if(W.childNodes.length!==G)break;G=(W=W.lastChild)instanceof Text?W.data.length:W.childNodes.length+1}N.node=W,N.offset=G}),R}},{key:"rangeToNative",value:function(_){var R=this,N=_.collapsed?[_.index]:[_.index,_.index+_.length],W=[],G=this.scroll.length();return N.forEach(function(ne,Z){ne=Math.min(G-1,ne);var ge=R.scroll.leaf(ne),Q=j(ge,2),U=Q[1],se=Q[0].position(U,0!==Z),de=j(se,2);W.push(de[0],U=de[1])}),W.length<2&&(W=W.concat(W)),W}},{key:"scrollIntoView",value:function(_){var R=this.lastRange;if(null!=R){var N=this.getBounds(R.index,R.length);if(null!=N){var W=this.scroll.length()-1,G=this.scroll.line(Math.min(R.index,W)),Z=j(G,1)[0],te=Z;if(R.length>0){var ge=this.scroll.line(Math.min(R.index+R.length,W));te=j(ge,1)[0]}if(null!=Z&&null!=te){var J=_.getBoundingClientRect();N.top<J.top?_.scrollTop-=J.top-N.top:N.bottom>J.bottom&&(_.scrollTop+=N.bottom-J.bottom)}}}}},{key:"setNativeRange",value:function(_,R){var N=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_,W=arguments.length>3&&void 0!==arguments[3]?arguments[3]:R,G=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(c.info("setNativeRange",_,R,N,W),null==_||null!=this.root.parentNode&&null!=_.parentNode&&null!=N.parentNode){var ne=document.getSelection();if(null!=ne)if(null!=_){this.hasFocus()||this.root.focus();var Z=(this.getNativeRange()||{}).native;if(null==Z||G||_!==Z.startContainer||R!==Z.startOffset||N!==Z.endContainer||W!==Z.endOffset){"BR"==_.tagName&&(R=[].indexOf.call(_.parentNode.childNodes,_),_=_.parentNode),"BR"==N.tagName&&(W=[].indexOf.call(N.parentNode.childNodes,N),N=N.parentNode);var te=document.createRange();te.setStart(_,R),te.setEnd(N,W),ne.removeAllRanges(),ne.addRange(te)}}else ne.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(_){var R=arguments.length>1&&void 0!==arguments[1]&&arguments[1],N=arguments.length>2&&void 0!==arguments[2]?arguments[2]:C.default.sources.API;if("string"==typeof R&&(N=R,R=!1),c.info("setRange",_),null!=_){var W=this.rangeToNative(_);this.setNativeRange.apply(this,b(W).concat([R]))}else this.setNativeRange(null);this.update(N)}},{key:"update",value:function(){var _=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C.default.sources.USER,R=this.lastRange,N=this.getRange(),W=j(N,2),G=W[0],ne=W[1];if(this.lastRange=G,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,v.default)(R,this.lastRange)){var Z;!this.composing&&null!=ne&&ne.native.collapsed&&ne.start.node!==this.cursor.textNode&&this.cursor.restore();var ge,te=[C.default.events.SELECTION_CHANGE,(0,p.default)(this.lastRange),(0,p.default)(R),_];(Z=this.emitter).emit.apply(Z,[C.default.events.EDITOR_CHANGE].concat(te)),_!==C.default.sources.SILENT&&(ge=this.emitter).emit.apply(ge,te)}}}]),o}();function q(o,y){return y instanceof Text&&(y=y.parentNode),o.contains(y)}f.Range=P,f.default=B},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0});var j=function(){function C(T,M){for(var O=0;O<M.length;O++){var b=M[O];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(T,b.key,b)}}return function(T,M,O){return M&&C(T.prototype,M),O&&C(T,O),T}}(),l=function C(T,M,O){null===T&&(T=Function.prototype);var b=Object.getOwnPropertyDescriptor(T,M);if(void 0===b){var A=Object.getPrototypeOf(T);return null===A?void 0:C(A,M,O)}if("value"in b)return b.value;var c=b.get;return void 0===c?void 0:c.call(O)};function p(C,T){if(!(C instanceof T))throw new TypeError("Cannot call a class as a function")}function m(C,T){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!T||"object"!=typeof T&&"function"!=typeof T?C:T}var u=function(C){function T(){return p(this,T),m(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}return function v(C,T){if("function"!=typeof T&&null!==T)throw new TypeError("Super expression must either be null or a function, not "+typeof T);C.prototype=Object.create(T&&T.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(C,T):C.__proto__=T)}(T,C),j(T,[{key:"insertInto",value:function(O,b){0===O.children.length?l(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"insertInto",this).call(this,O,b):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),T}(function k(C){return C&&C.__esModule?C:{default:C}}(g(0)).default.Embed);u.blotName="break",u.tagName="BR",f.default=u},function(i,f,g){"use strict";var m,j=this&&this.__extends||(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,u){v.__proto__=u}||function(v,u){for(var C in u)u.hasOwnProperty(C)&&(v[C]=u[C])},function(v,u){function C(){this.constructor=v}m(v,u),v.prototype=null===u?Object.create(u):(C.prototype=u.prototype,new C)});Object.defineProperty(f,"__esModule",{value:!0});var l=g(44),S=g(30),w=g(1),k=function(m){function v(u){var C=m.call(this,u)||this;return C.build(),C}return j(v,m),v.prototype.appendChild=function(u){this.insertBefore(u)},v.prototype.attach=function(){m.prototype.attach.call(this),this.children.forEach(function(u){u.attach()})},v.prototype.build=function(){var u=this;this.children=new l.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(C){try{var T=p(C);u.insertBefore(T,u.children.head||void 0)}catch(M){if(M instanceof w.ParchmentError)return;throw M}})},v.prototype.deleteAt=function(u,C){if(0===u&&C===this.length())return this.remove();this.children.forEachAt(u,C,function(T,M,O){T.deleteAt(M,O)})},v.prototype.descendant=function(u,C){var T=this.children.find(C),M=T[0],O=T[1];return null==u.blotName&&u(M)||null!=u.blotName&&M instanceof u?[M,O]:M instanceof v?M.descendant(u,O):[null,-1]},v.prototype.descendants=function(u,C,T){void 0===C&&(C=0),void 0===T&&(T=Number.MAX_VALUE);var M=[],O=T;return this.children.forEachAt(C,T,function(b,A,c){(null==u.blotName&&u(b)||null!=u.blotName&&b instanceof u)&&M.push(b),b instanceof v&&(M=M.concat(b.descendants(u,A,O))),O-=c}),M},v.prototype.detach=function(){this.children.forEach(function(u){u.detach()}),m.prototype.detach.call(this)},v.prototype.formatAt=function(u,C,T,M){this.children.forEachAt(u,C,function(O,b,A){O.formatAt(b,A,T,M)})},v.prototype.insertAt=function(u,C,T){var M=this.children.find(u),O=M[0];if(O)O.insertAt(M[1],C,T);else{var A=null==T?w.create("text",C):w.create(C,T);this.appendChild(A)}},v.prototype.insertBefore=function(u,C){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(T){return u instanceof T}))throw new w.ParchmentError("Cannot insert "+u.statics.blotName+" into "+this.statics.blotName);u.insertInto(this,C)},v.prototype.length=function(){return this.children.reduce(function(u,C){return u+C.length()},0)},v.prototype.moveChildren=function(u,C){this.children.forEach(function(T){u.insertBefore(T,C)})},v.prototype.optimize=function(u){if(m.prototype.optimize.call(this,u),0===this.children.length)if(null!=this.statics.defaultChild){var C=w.create(this.statics.defaultChild);this.appendChild(C),C.optimize(u)}else this.remove()},v.prototype.path=function(u,C){void 0===C&&(C=!1);var T=this.children.find(u,C),M=T[0],O=T[1],b=[[this,u]];return M instanceof v?b.concat(M.path(O,C)):(null!=M&&b.push([M,O]),b)},v.prototype.removeChild=function(u){this.children.remove(u)},v.prototype.replace=function(u){u instanceof v&&u.moveChildren(this),m.prototype.replace.call(this,u)},v.prototype.split=function(u,C){if(void 0===C&&(C=!1),!C){if(0===u)return this;if(u===this.length())return this.next}var T=this.clone();return this.parent.insertBefore(T,this.next),this.children.forEachAt(u,this.length(),function(M,O,b){M=M.split(O,C),T.appendChild(M)}),T},v.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},v.prototype.update=function(u,C){var T=this,M=[],O=[];u.forEach(function(b){b.target===T.domNode&&"childList"===b.type&&(M.push.apply(M,b.addedNodes),O.push.apply(O,b.removedNodes))}),O.forEach(function(b){if(!(null!=b.parentNode&&"IFRAME"!==b.tagName&&document.body.compareDocumentPosition(b)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var A=w.find(b);null!=A&&(null==A.domNode.parentNode||A.domNode.parentNode===T.domNode)&&A.detach()}}),M.filter(function(b){return b.parentNode==T.domNode}).sort(function(b,A){return b===A?0:b.compareDocumentPosition(A)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(b){var A=null;null!=b.nextSibling&&(A=w.find(b.nextSibling));var c=p(b);(c.next!=A||null==c.next)&&(null!=c.parent&&c.parent.removeChild(T),T.insertBefore(c,A||void 0))})},v}(S.default);function p(m){var v=w.find(m);if(null==v)try{v=w.create(m)}catch(u){v=w.create(w.Scope.INLINE),[].slice.call(m.childNodes).forEach(function(C){v.domNode.appendChild(C)}),m.parentNode&&m.parentNode.replaceChild(v.domNode,m),v.attach()}return v}f.default=k},function(i,f,g){"use strict";var m,j=this&&this.__extends||(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,u){v.__proto__=u}||function(v,u){for(var C in u)u.hasOwnProperty(C)&&(v[C]=u[C])},function(v,u){function C(){this.constructor=v}m(v,u),v.prototype=null===u?Object.create(u):(C.prototype=u.prototype,new C)});Object.defineProperty(f,"__esModule",{value:!0});var l=g(12),S=g(31),w=g(17),k=g(1),p=function(m){function v(u){var C=m.call(this,u)||this;return C.attributes=new S.default(C.domNode),C}return j(v,m),v.formats=function(u){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?u.tagName.toLowerCase():void 0)},v.prototype.format=function(u,C){var T=k.query(u);T instanceof l.default?this.attributes.attribute(T,C):C&&null!=T&&(u!==this.statics.blotName||this.formats()[u]!==C)&&this.replaceWith(u,C)},v.prototype.formats=function(){var u=this.attributes.values(),C=this.statics.formats(this.domNode);return null!=C&&(u[this.statics.blotName]=C),u},v.prototype.replaceWith=function(u,C){var T=m.prototype.replaceWith.call(this,u,C);return this.attributes.copy(T),T},v.prototype.update=function(u,C){var T=this;m.prototype.update.call(this,u,C),u.some(function(M){return M.target===T.domNode&&"attributes"===M.type})&&this.attributes.build()},v.prototype.wrap=function(u,C){var T=m.prototype.wrap.call(this,u,C);return T instanceof v&&T.statics.scope===this.statics.scope&&this.attributes.move(T),T},v}(w.default);f.default=p},function(i,f,g){"use strict";var k,j=this&&this.__extends||(k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,m){p.__proto__=m}||function(p,m){for(var v in m)m.hasOwnProperty(v)&&(p[v]=m[v])},function(p,m){function v(){this.constructor=p}k(p,m),p.prototype=null===m?Object.create(m):(v.prototype=m.prototype,new v)});Object.defineProperty(f,"__esModule",{value:!0});var l=g(30),S=g(1),w=function(k){function p(){return null!==k&&k.apply(this,arguments)||this}return j(p,k),p.value=function(m){return!0},p.prototype.index=function(m,v){return this.domNode===m||this.domNode.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(v,1):-1},p.prototype.position=function(m,v){var u=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return m>0&&(u+=1),[this.parent.domNode,u]},p.prototype.value=function(){var m;return(m={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,m},p.scope=S.Scope.INLINE_BLOT,p}(l.default);f.default=w},function(i,f,g){var j=g(11),l=g(3),S={attributes:{compose:function(k,p,m){"object"!=typeof k&&(k={}),"object"!=typeof p&&(p={});var v=l(!0,{},p);for(var u in m||(v=Object.keys(v).reduce(function(C,T){return null!=v[T]&&(C[T]=v[T]),C},{})),k)void 0!==k[u]&&void 0===p[u]&&(v[u]=k[u]);return Object.keys(v).length>0?v:void 0},diff:function(k,p){"object"!=typeof k&&(k={}),"object"!=typeof p&&(p={});var m=Object.keys(k).concat(Object.keys(p)).reduce(function(v,u){return j(k[u],p[u])||(v[u]=void 0===p[u]?null:p[u]),v},{});return Object.keys(m).length>0?m:void 0},transform:function(k,p,m){if("object"!=typeof k)return p;if("object"==typeof p){if(!m)return p;var v=Object.keys(p).reduce(function(u,C){return void 0===k[C]&&(u[C]=p[C]),u},{});return Object.keys(v).length>0?v:void 0}}},iterator:function(k){return new w(k)},length:function(k){return"number"==typeof k.delete?k.delete:"number"==typeof k.retain?k.retain:"string"==typeof k.insert?k.insert.length:1}};function w(k){this.ops=k,this.index=0,this.offset=0}w.prototype.hasNext=function(){return this.peekLength()<1/0},w.prototype.next=function(k){k||(k=1/0);var p=this.ops[this.index];if(p){var m=this.offset,v=S.length(p);if(k>=v-m?(k=v-m,this.index+=1,this.offset=0):this.offset+=k,"number"==typeof p.delete)return{delete:k};var u={};return p.attributes&&(u.attributes=p.attributes),"number"==typeof p.retain?u.retain=k:u.insert="string"==typeof p.insert?p.insert.substr(m,k):p.insert,u}return{retain:1/0}},w.prototype.peek=function(){return this.ops[this.index]},w.prototype.peekLength=function(){return this.ops[this.index]?S.length(this.ops[this.index])-this.offset:1/0},w.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},w.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var k=this.offset,p=this.index,m=this.next(),v=this.ops.slice(this.index);return this.offset=k,this.index=p,[m].concat(v)}return[]},i.exports=S},function(i,f){var g=function(){"use strict";function j(T,M){return null!=M&&T instanceof M}var l,S,w;try{l=Map}catch(T){l=function(){}}try{S=Set}catch(T){S=function(){}}try{w=Promise}catch(T){w=function(){}}function k(T,M,O,b,A){"object"==typeof M&&(O=M.depth,b=M.prototype,A=M.includeNonEnumerable,M=M.circular);var c=[],P=[],B="undefined"!=typeof Buffer;return void 0===M&&(M=!0),void 0===O&&(O=1/0),function q(o,y){if(null===o)return null;if(0===y)return o;var _,R;if("object"!=typeof o)return o;if(j(o,l))_=new l;else if(j(o,S))_=new S;else if(j(o,w))_=new w(function(J,U){o.then(function(se){J(q(se,y-1))},function(se){U(q(se,y-1))})});else if(k.__isArray(o))_=[];else if(k.__isRegExp(o))_=new RegExp(o.source,C(o)),o.lastIndex&&(_.lastIndex=o.lastIndex);else if(k.__isDate(o))_=new Date(o.getTime());else{if(B&&Buffer.isBuffer(o))return _=Buffer.allocUnsafe?Buffer.allocUnsafe(o.length):new Buffer(o.length),o.copy(_),_;j(o,Error)?_=Object.create(o):void 0===b?(R=Object.getPrototypeOf(o),_=Object.create(R)):(_=Object.create(b),R=b)}if(M){var N=c.indexOf(o);if(-1!=N)return P[N];c.push(o),P.push(_)}for(var W in j(o,l)&&o.forEach(function(J,U){var se=q(U,y-1),de=q(J,y-1);_.set(se,de)}),j(o,S)&&o.forEach(function(J){var U=q(J,y-1);_.add(U)}),o){var G;R&&(G=Object.getOwnPropertyDescriptor(R,W)),(!G||null!=G.set)&&(_[W]=q(o[W],y-1))}if(Object.getOwnPropertySymbols){var ne=Object.getOwnPropertySymbols(o);for(W=0;W<ne.length;W++){var Z=ne[W];(te=Object.getOwnPropertyDescriptor(o,Z))&&!te.enumerable&&!A||(_[Z]=q(o[Z],y-1),te.enumerable||Object.defineProperty(_,Z,{enumerable:!1}))}}if(A){var ge=Object.getOwnPropertyNames(o);for(W=0;W<ge.length;W++){var te,Q=ge[W];(te=Object.getOwnPropertyDescriptor(o,Q))&&te.enumerable||(_[Q]=q(o[Q],y-1),Object.defineProperty(_,Q,{enumerable:!1}))}}return _}(T,O)}function p(T){return Object.prototype.toString.call(T)}function C(T){var M="";return T.global&&(M+="g"),T.ignoreCase&&(M+="i"),T.multiline&&(M+="m"),M}return k.clonePrototype=function(M){if(null===M)return null;var O=function(){};return O.prototype=M,new O},k.__objToStr=p,k.__isDate=function m(T){return"object"==typeof T&&"[object Date]"===p(T)},k.__isArray=function v(T){return"object"==typeof T&&"[object Array]"===p(T)},k.__isRegExp=function u(T){return"object"==typeof T&&"[object RegExp]"===p(T)},k.__getRegExpFlags=C,k}();"object"==typeof i&&i.exports&&(i.exports=g)},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0});var j=function(R,N){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return function _(R,N){var W=[],G=!0,ne=!1,Z=void 0;try{for(var ge,te=R[Symbol.iterator]();!(G=(ge=te.next()).done)&&(W.push(ge.value),!N||W.length!==N);G=!0);}catch(Q){ne=!0,Z=Q}finally{try{!G&&te.return&&te.return()}finally{if(ne)throw Z}}return W}(R,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")},l=function(){function _(R,N){for(var W=0;W<N.length;W++){var G=N[W];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(R,G.key,G)}}return function(R,N,W){return N&&_(R.prototype,N),W&&_(R,W),R}}(),S=function _(R,N,W){null===R&&(R=Function.prototype);var G=Object.getOwnPropertyDescriptor(R,N);if(void 0===G){var ne=Object.getPrototypeOf(R);return null===ne?void 0:_(ne,N,W)}if("value"in G)return G.value;var Z=G.get;return void 0===Z?void 0:Z.call(W)},k=c(g(0)),m=c(g(8)),v=g(4),u=c(v),T=c(g(16)),O=c(g(13)),A=c(g(25));function c(_){return _&&_.__esModule?_:{default:_}}function o(_){return _ instanceof u.default||_ instanceof v.BlockEmbed}var y=function(_){function R(N,W){!function P(_,R){if(!(_ instanceof R))throw new TypeError("Cannot call a class as a function")}(this,R);var G=function B(_,R){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!R||"object"!=typeof R&&"function"!=typeof R?_:R}(this,(R.__proto__||Object.getPrototypeOf(R)).call(this,N));return G.emitter=W.emitter,Array.isArray(W.whitelist)&&(G.whitelist=W.whitelist.reduce(function(ne,Z){return ne[Z]=!0,ne},{})),G.domNode.addEventListener("DOMNodeInserted",function(){}),G.optimize(),G.enable(),G}return function q(_,R){if("function"!=typeof R&&null!==R)throw new TypeError("Super expression must either be null or a function, not "+typeof R);_.prototype=Object.create(R&&R.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),R&&(Object.setPrototypeOf?Object.setPrototypeOf(_,R):_.__proto__=R)}(R,_),l(R,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(W,G){var ne=this.line(W),Z=j(ne,2),te=Z[0],ge=Z[1],Q=this.line(W+G),U=j(Q,1)[0];if(S(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"deleteAt",this).call(this,W,G),null!=U&&te!==U&&ge>0){if(te instanceof v.BlockEmbed||U instanceof v.BlockEmbed)return void this.optimize();if(te instanceof O.default){var se=te.newlineIndex(te.length(),!0);if(se>-1&&(te=te.split(se+1))===U)return void this.optimize()}else if(U instanceof O.default){var de=U.newlineIndex(0);de>-1&&U.split(de+1)}te.moveChildren(U,U.children.head instanceof T.default?null:U.children.head),te.remove()}this.optimize()}},{key:"enable",value:function(){var W=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",W)}},{key:"formatAt",value:function(W,G,ne,Z){null!=this.whitelist&&!this.whitelist[ne]||(S(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"formatAt",this).call(this,W,G,ne,Z),this.optimize())}},{key:"insertAt",value:function(W,G,ne){if(null==ne||null==this.whitelist||this.whitelist[G]){if(W>=this.length())if(null==ne||null==k.default.query(G,k.default.Scope.BLOCK)){var Z=k.default.create(this.statics.defaultChild);this.appendChild(Z),null==ne&&G.endsWith("\n")&&(G=G.slice(0,-1)),Z.insertAt(0,G,ne)}else{var te=k.default.create(G,ne);this.appendChild(te)}else S(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertAt",this).call(this,W,G,ne);this.optimize()}}},{key:"insertBefore",value:function(W,G){if(W.statics.scope===k.default.Scope.INLINE_BLOT){var ne=k.default.create(this.statics.defaultChild);ne.appendChild(W),W=ne}S(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertBefore",this).call(this,W,G)}},{key:"leaf",value:function(W){return this.path(W).pop()||[null,-1]}},{key:"line",value:function(W){return W===this.length()?this.line(W-1):this.descendant(o,W)}},{key:"lines",value:function(){var W=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,G=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,ne=function Z(te,ge,Q){var J=[],U=Q;return te.children.forEachAt(ge,Q,function(se,de,me){o(se)?J.push(se):se instanceof k.default.Container&&(J=J.concat(Z(se,de,U))),U-=me}),J};return ne(this,W,G)}},{key:"optimize",value:function(){var W=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],G=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(S(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"optimize",this).call(this,W,G),W.length>0&&this.emitter.emit(m.default.events.SCROLL_OPTIMIZE,W,G))}},{key:"path",value:function(W){return S(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"path",this).call(this,W).slice(1)}},{key:"update",value:function(W){if(!0!==this.batch){var G=m.default.sources.USER;"string"==typeof W&&(G=W),Array.isArray(W)||(W=this.observer.takeRecords()),W.length>0&&this.emitter.emit(m.default.events.SCROLL_BEFORE_UPDATE,G,W),S(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"update",this).call(this,W.concat([])),W.length>0&&this.emitter.emit(m.default.events.SCROLL_UPDATE,G,W)}}}]),R}(k.default.Scroll);y.blotName="scroll",y.className="ql-editor",y.tagName="DIV",y.defaultChild="block",y.allowedChildren=[u.default,v.BlockEmbed,A.default],f.default=y},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.SHORTKEY=f.default=void 0;var j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ce){return typeof ce}:function(ce){return ce&&"function"==typeof Symbol&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},l=function(xe,Re){if(Array.isArray(xe))return xe;if(Symbol.iterator in Object(xe))return function ce(xe,Re){var Oe=[],we=!0,Ue=!1,tt=void 0;try{for(var ot,it=xe[Symbol.iterator]();!(we=(ot=it.next()).done)&&(Oe.push(ot.value),!Re||Oe.length!==Re);we=!0);}catch(Ot){Ue=!0,tt=Ot}finally{try{!we&&it.return&&it.return()}finally{if(Ue)throw tt}}return Oe}(xe,Re);throw new TypeError("Invalid attempt to destructure non-iterable instance")},S=function(){function ce(xe,Re){for(var Oe=0;Oe<Re.length;Oe++){var we=Re[Oe];we.enumerable=we.enumerable||!1,we.configurable=!0,"value"in we&&(we.writable=!0),Object.defineProperty(xe,we.key,we)}}return function(xe,Re,Oe){return Re&&ce(xe.prototype,Re),Oe&&ce(xe,Oe),xe}}(),k=_(g(21)),m=_(g(11)),u=_(g(3)),T=_(g(2)),O=_(g(20)),A=_(g(0)),P=_(g(5)),q=_(g(10)),y=_(g(9));function _(ce){return ce&&ce.__esModule?ce:{default:ce}}function R(ce,xe,Re){return xe in ce?Object.defineProperty(ce,xe,{value:Re,enumerable:!0,configurable:!0,writable:!0}):ce[xe]=Re,ce}var ne=(0,q.default)("quill:keyboard"),Z=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",te=function(ce){function xe(Re,Oe){!function N(ce,xe){if(!(ce instanceof xe))throw new TypeError("Cannot call a class as a function")}(this,xe);var we=function W(ce,xe){if(!ce)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!xe||"object"!=typeof xe&&"function"!=typeof xe?ce:xe}(this,(xe.__proto__||Object.getPrototypeOf(xe)).call(this,Re,Oe));return we.bindings={},Object.keys(we.options.bindings).forEach(function(Ue){"list autofill"===Ue&&null!=Re.scroll.whitelist&&!Re.scroll.whitelist.list||we.options.bindings[Ue]&&we.addBinding(we.options.bindings[Ue])}),we.addBinding({key:xe.keys.ENTER,shiftKey:null},se),we.addBinding({key:xe.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(we.addBinding({key:xe.keys.BACKSPACE},{collapsed:!0},Q),we.addBinding({key:xe.keys.DELETE},{collapsed:!0},J)):(we.addBinding({key:xe.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},Q),we.addBinding({key:xe.keys.DELETE},{collapsed:!0,suffix:/^.?$/},J)),we.addBinding({key:xe.keys.BACKSPACE},{collapsed:!1},U),we.addBinding({key:xe.keys.DELETE},{collapsed:!1},U),we.addBinding({key:xe.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},Q),we.listen(),we}return function G(ce,xe){if("function"!=typeof xe&&null!==xe)throw new TypeError("Super expression must either be null or a function, not "+typeof xe);ce.prototype=Object.create(xe&&xe.prototype,{constructor:{value:ce,enumerable:!1,writable:!0,configurable:!0}}),xe&&(Object.setPrototypeOf?Object.setPrototypeOf(ce,xe):ce.__proto__=xe)}(xe,ce),S(xe,null,[{key:"match",value:function(Oe,we){return we=Se(we),!["altKey","ctrlKey","metaKey","shiftKey"].some(function(Ue){return!!we[Ue]!==Oe[Ue]&&null!==we[Ue]})&&we.key===(Oe.which||Oe.keyCode)}}]),S(xe,[{key:"addBinding",value:function(Oe){var we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ue=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},tt=Se(Oe);if(null==tt||null==tt.key)return ne.warn("Attempted to add invalid keyboard binding",tt);"function"==typeof we&&(we={handler:we}),"function"==typeof Ue&&(Ue={handler:Ue}),tt=(0,u.default)(tt,we,Ue),this.bindings[tt.key]=this.bindings[tt.key]||[],this.bindings[tt.key].push(tt)}},{key:"listen",value:function(){var Oe=this;this.quill.root.addEventListener("keydown",function(we){if(!we.defaultPrevented){var tt=(Oe.bindings[we.which||we.keyCode]||[]).filter(function(ie){return xe.match(we,ie)});if(0!==tt.length){var it=Oe.quill.getSelection();if(null!=it&&Oe.quill.hasFocus()){var ot=Oe.quill.getLine(it.index),Ot=l(ot,2),Et=Ot[0],ae=Ot[1],oe=Oe.quill.getLeaf(it.index),fe=l(oe,2),a=fe[0],h=fe[1],n=0===it.length?[a,h]:Oe.quill.getLeaf(it.index+it.length),r=l(n,2),d=r[0],E=r[1],F=a instanceof A.default.Text?a.value().slice(0,h):"",I=d instanceof A.default.Text?d.value().slice(E):"",Y={collapsed:0===it.length,empty:0===it.length&&Et.length()<=1,format:Oe.quill.getFormat(it),offset:ae,prefix:F,suffix:I};tt.some(function(ie){if(null!=ie.collapsed&&ie.collapsed!==Y.collapsed||null!=ie.empty&&ie.empty!==Y.empty||null!=ie.offset&&ie.offset!==Y.offset)return!1;if(Array.isArray(ie.format)){if(ie.format.every(function(re){return null==Y.format[re]}))return!1}else if("object"===j(ie.format)&&!Object.keys(ie.format).every(function(re){return!0===ie.format[re]?null!=Y.format[re]:!1===ie.format[re]?null==Y.format[re]:(0,m.default)(ie.format[re],Y.format[re])}))return!1;return!(null!=ie.prefix&&!ie.prefix.test(Y.prefix)||null!=ie.suffix&&!ie.suffix.test(Y.suffix))&&!0!==ie.handler.call(Oe,it,Y)})&&we.preventDefault()}}}})}}]),xe}(y.default);function ge(ce,xe){var Re;return R(Re={key:ce,shiftKey:xe,altKey:null},ce===te.keys.LEFT?"prefix":"suffix",/^$/),R(Re,"handler",function(Ue){var tt=Ue.index;ce===te.keys.RIGHT&&(tt+=Ue.length+1);var it=this.quill.getLeaf(tt);return!(l(it,1)[0]instanceof A.default.Embed&&(ce===te.keys.LEFT?xe?this.quill.setSelection(Ue.index-1,Ue.length+1,P.default.sources.USER):this.quill.setSelection(Ue.index-1,P.default.sources.USER):xe?this.quill.setSelection(Ue.index,Ue.length+1,P.default.sources.USER):this.quill.setSelection(Ue.index+Ue.length+1,P.default.sources.USER),1))}),Re}function Q(ce,xe){if(!(0===ce.index||this.quill.getLength()<=1)){var Re=this.quill.getLine(ce.index),we=l(Re,1)[0],Ue={};if(0===xe.offset){var tt=this.quill.getLine(ce.index-1),ot=l(tt,1)[0];if(null!=ot&&ot.length()>1){var Ot=we.formats(),Et=this.quill.getFormat(ce.index-1,1);Ue=O.default.attributes.diff(Ot,Et)||{}}}var ae=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(xe.prefix)?2:1;this.quill.deleteText(ce.index-ae,ae,P.default.sources.USER),Object.keys(Ue).length>0&&this.quill.formatLine(ce.index-ae,ae,Ue,P.default.sources.USER),this.quill.focus()}}function J(ce,xe){var Re=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(xe.suffix)?2:1;if(!(ce.index>=this.quill.getLength()-Re)){var Oe={},we=0,Ue=this.quill.getLine(ce.index),it=l(Ue,1)[0];if(xe.offset>=it.length()-1){var ot=this.quill.getLine(ce.index+1),Et=l(ot,1)[0];if(Et){var ae=it.formats(),oe=this.quill.getFormat(ce.index,1);Oe=O.default.attributes.diff(ae,oe)||{},we=Et.length()}}this.quill.deleteText(ce.index,Re,P.default.sources.USER),Object.keys(Oe).length>0&&this.quill.formatLine(ce.index+we-1,Re,Oe,P.default.sources.USER)}}function U(ce){var xe=this.quill.getLines(ce),Re={};if(xe.length>1){var Oe=xe[0].formats(),we=xe[xe.length-1].formats();Re=O.default.attributes.diff(we,Oe)||{}}this.quill.deleteText(ce,P.default.sources.USER),Object.keys(Re).length>0&&this.quill.formatLine(ce.index,1,Re,P.default.sources.USER),this.quill.setSelection(ce.index,P.default.sources.SILENT),this.quill.focus()}function se(ce,xe){var Re=this;ce.length>0&&this.quill.scroll.deleteAt(ce.index,ce.length);var Oe=Object.keys(xe.format).reduce(function(we,Ue){return A.default.query(Ue,A.default.Scope.BLOCK)&&!Array.isArray(xe.format[Ue])&&(we[Ue]=xe.format[Ue]),we},{});this.quill.insertText(ce.index,"\n",Oe,P.default.sources.USER),this.quill.setSelection(ce.index+1,P.default.sources.SILENT),this.quill.focus(),Object.keys(xe.format).forEach(function(we){null==Oe[we]&&(Array.isArray(xe.format[we])||"link"!==we&&Re.quill.format(we,xe.format[we],P.default.sources.USER))})}function de(ce){return{key:te.keys.TAB,shiftKey:!ce,format:{"code-block":!0},handler:function(Re){var Oe=A.default.query("code-block"),we=Re.index,Ue=Re.length,tt=this.quill.scroll.descendant(Oe,we),it=l(tt,2),ot=it[0],Ot=it[1];if(null!=ot){var Et=this.quill.getIndex(ot),ae=ot.newlineIndex(Ot,!0)+1,oe=ot.newlineIndex(Et+Ot+Ue),fe=ot.domNode.textContent.slice(ae,oe).split("\n");Ot=0,fe.forEach(function(a,h){ce?(ot.insertAt(ae+Ot,Oe.TAB),Ot+=Oe.TAB.length,0===h?we+=Oe.TAB.length:Ue+=Oe.TAB.length):a.startsWith(Oe.TAB)&&(ot.deleteAt(ae+Ot,Oe.TAB.length),Ot-=Oe.TAB.length,0===h?we-=Oe.TAB.length:Ue-=Oe.TAB.length),Ot+=a.length+1}),this.quill.update(P.default.sources.USER),this.quill.setSelection(we,Ue,P.default.sources.SILENT)}}}}function me(ce){return{key:ce[0].toUpperCase(),shortKey:!0,handler:function(Re,Oe){this.quill.format(ce,!Oe.format[ce],P.default.sources.USER)}}}function Se(ce){if("string"==typeof ce||"number"==typeof ce)return Se({key:ce});if("object"===(void 0===ce?"undefined":j(ce))&&(ce=(0,k.default)(ce,!1)),"string"==typeof ce.key)if(null!=te.keys[ce.key.toUpperCase()])ce.key=te.keys[ce.key.toUpperCase()];else{if(1!==ce.key.length)return null;ce.key=ce.key.toUpperCase().charCodeAt(0)}return ce.shortKey&&(ce[Z]=ce.shortKey,delete ce.shortKey),ce}te.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},te.DEFAULTS={bindings:{bold:me("bold"),italic:me("italic"),underline:me("underline"),indent:{key:te.keys.TAB,format:["blockquote","indent","list"],handler:function(xe,Re){if(Re.collapsed&&0!==Re.offset)return!0;this.quill.format("indent","+1",P.default.sources.USER)}},outdent:{key:te.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(xe,Re){if(Re.collapsed&&0!==Re.offset)return!0;this.quill.format("indent","-1",P.default.sources.USER)}},"outdent backspace":{key:te.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(xe,Re){null!=Re.format.indent?this.quill.format("indent","-1",P.default.sources.USER):null!=Re.format.list&&this.quill.format("list",!1,P.default.sources.USER)}},"indent code-block":de(!0),"outdent code-block":de(!1),"remove tab":{key:te.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(xe){this.quill.deleteText(xe.index-1,1,P.default.sources.USER)}},tab:{key:te.keys.TAB,handler:function(xe){this.quill.history.cutoff();var Re=(new T.default).retain(xe.index).delete(xe.length).insert("\t");this.quill.updateContents(Re,P.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(xe.index+1,P.default.sources.SILENT)}},"list empty enter":{key:te.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(xe,Re){this.quill.format("list",!1,P.default.sources.USER),Re.format.indent&&this.quill.format("indent",!1,P.default.sources.USER)}},"checklist enter":{key:te.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(xe){var Re=this.quill.getLine(xe.index),Oe=l(Re,2),we=Oe[0],Ue=Oe[1],tt=(0,u.default)({},we.formats(),{list:"checked"}),it=(new T.default).retain(xe.index).insert("\n",tt).retain(we.length()-Ue-1).retain(1,{list:"unchecked"});this.quill.updateContents(it,P.default.sources.USER),this.quill.setSelection(xe.index+1,P.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:te.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(xe,Re){var Oe=this.quill.getLine(xe.index),we=l(Oe,2),Ue=we[0],tt=we[1],it=(new T.default).retain(xe.index).insert("\n",Re.format).retain(Ue.length()-tt-1).retain(1,{header:null});this.quill.updateContents(it,P.default.sources.USER),this.quill.setSelection(xe.index+1,P.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(xe,Re){var Oe=Re.prefix.length,we=this.quill.getLine(xe.index),Ue=l(we,2),tt=Ue[0],it=Ue[1];if(it>Oe)return!0;var ot=void 0;switch(Re.prefix.trim()){case"[]":case"[ ]":ot="unchecked";break;case"[x]":ot="checked";break;case"-":case"*":ot="bullet";break;default:ot="ordered"}this.quill.insertText(xe.index," ",P.default.sources.USER),this.quill.history.cutoff();var Ot=(new T.default).retain(xe.index-it).delete(Oe+1).retain(tt.length()-2-it).retain(1,{list:ot});this.quill.updateContents(Ot,P.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(xe.index-Oe,P.default.sources.SILENT)}},"code exit":{key:te.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(xe){var Re=this.quill.getLine(xe.index),Oe=l(Re,2),we=Oe[0],Ue=Oe[1],tt=(new T.default).retain(xe.index+we.length()-Ue-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(tt,P.default.sources.USER)}},"embed left":ge(te.keys.LEFT,!1),"embed left shift":ge(te.keys.LEFT,!0),"embed right":ge(te.keys.RIGHT,!1),"embed right shift":ge(te.keys.RIGHT,!0)}},f.default=te,f.SHORTKEY=Z},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0});var l=function O(b,A,c){null===b&&(b=Function.prototype);var P=Object.getOwnPropertyDescriptor(b,A);if(void 0===P){var B=Object.getPrototypeOf(b);return null===B?void 0:O(B,A,c)}if("value"in P)return P.value;var q=P.get;return void 0===q?void 0:q.call(c)},S=function(){function O(b,A){for(var c=0;c<A.length;c++){var P=A[c];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(b,P.key,P)}}return function(b,A,c){return A&&O(b.prototype,A),c&&O(b,c),b}}(),k=v(g(0)),m=v(g(7));function v(O){return O&&O.__esModule?O:{default:O}}var M=function(O){function b(A,c){!function u(O,b){if(!(O instanceof b))throw new TypeError("Cannot call a class as a function")}(this,b);var P=function C(O,b){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?O:b}(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,A));return P.selection=c,P.textNode=document.createTextNode(b.CONTENTS),P.domNode.appendChild(P.textNode),P._length=0,P}return function T(O,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);O.prototype=Object.create(b&&b.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(O,b):O.__proto__=b)}(b,O),S(b,null,[{key:"value",value:function(){}}]),S(b,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(c,P){if(0!==this._length)return l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,c,P);for(var B=this,q=0;null!=B&&B.statics.scope!==k.default.Scope.BLOCK_BLOT;)q+=B.offset(B.parent),B=B.parent;null!=B&&(this._length=b.CONTENTS.length,B.optimize(),B.formatAt(q,b.CONTENTS.length,c,P),this._length=0)}},{key:"index",value:function(c,P){return c===this.textNode?0:l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"index",this).call(this,c,P)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var c=this.textNode,P=this.selection.getNativeRange(),B=void 0,q=void 0,o=void 0;if(null!=P&&P.start.node===c&&P.end.node===c){var y=[c,P.start.offset,P.end.offset];B=y[0],q=y[1],o=y[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==b.CONTENTS){var _=this.textNode.data.split(b.CONTENTS).join("");this.next instanceof m.default?(B=this.next.domNode,this.next.insertAt(0,_),this.textNode.data=b.CONTENTS):(this.textNode.data=_,this.parent.insertBefore(k.default.create(this.textNode),this),this.textNode=document.createTextNode(b.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=q){var N=function(b,A){if(Array.isArray(b))return b;if(Symbol.iterator in Object(b))return function O(b,A){var c=[],P=!0,B=!1,q=void 0;try{for(var y,o=b[Symbol.iterator]();!(P=(y=o.next()).done)&&(c.push(y.value),!A||c.length!==A);P=!0);}catch(_){B=!0,q=_}finally{try{!P&&o.return&&o.return()}finally{if(B)throw q}}return c}(b,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}([q,o].map(function(W){return Math.max(0,Math.min(B.data.length,W-1))}),2);return{startNode:B,startOffset:q=N[0],endNode:B,endOffset:o=N[1]}}}}},{key:"update",value:function(c,P){var B=this;if(c.some(function(o){return"characterData"===o.type&&o.target===B.textNode})){var q=this.restore();q&&(P.range=q)}}},{key:"value",value:function(){return""}}]),b}(k.default.Embed);M.blotName="cursor",M.className="ql-cursor",M.tagName="span",M.CONTENTS="\ufeff",f.default=M},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0});var l=k(g(0)),S=g(4),w=k(S);function k(C){return C&&C.__esModule?C:{default:C}}function p(C,T){if(!(C instanceof T))throw new TypeError("Cannot call a class as a function")}function m(C,T){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!T||"object"!=typeof T&&"function"!=typeof T?C:T}var u=function(C){function T(){return p(this,T),m(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}return function v(C,T){if("function"!=typeof T&&null!==T)throw new TypeError("Super expression must either be null or a function, not "+typeof T);C.prototype=Object.create(T&&T.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(C,T):C.__proto__=T)}(T,C),T}(l.default.Container);u.allowedChildren=[w.default,S.BlockEmbed,u],f.default=u},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.ColorStyle=f.ColorClass=f.ColorAttributor=void 0;var j=function(){function M(O,b){for(var A=0;A<b.length;A++){var c=b[A];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(O,c.key,c)}}return function(O,b,A){return b&&M(O.prototype,b),A&&M(O,A),O}}(),l=function M(O,b,A){null===O&&(O=Function.prototype);var c=Object.getOwnPropertyDescriptor(O,b);if(void 0===c){var P=Object.getPrototypeOf(O);return null===P?void 0:M(P,b,A)}if("value"in c)return c.value;var B=c.get;return void 0===B?void 0:B.call(A)},w=function k(M){return M&&M.__esModule?M:{default:M}}(g(0));function p(M,O){if(!(M instanceof O))throw new TypeError("Cannot call a class as a function")}function m(M,O){if(!M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!O||"object"!=typeof O&&"function"!=typeof O?M:O}var u=function(M){function O(){return p(this,O),m(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments))}return function v(M,O){if("function"!=typeof O&&null!==O)throw new TypeError("Super expression must either be null or a function, not "+typeof O);M.prototype=Object.create(O&&O.prototype,{constructor:{value:M,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(M,O):M.__proto__=O)}(O,M),j(O,[{key:"value",value:function(A){var c=l(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"value",this).call(this,A);return c.startsWith("rgb(")?"#"+(c=c.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map(function(P){return("00"+parseInt(P).toString(16)).slice(-2)}).join(""):c}}]),O}(w.default.Attributor.Style),C=new w.default.Attributor.Class("color","ql-color",{scope:w.default.Scope.INLINE}),T=new u("color","color",{scope:w.default.Scope.INLINE});f.ColorAttributor=u,f.ColorClass=C,f.ColorStyle=T},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.sanitize=f.default=void 0;var j=function(){function T(M,O){for(var b=0;b<O.length;b++){var A=O[b];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(M,A.key,A)}}return function(M,O,b){return O&&T(M.prototype,O),b&&T(M,b),M}}(),l=function T(M,O,b){null===M&&(M=Function.prototype);var A=Object.getOwnPropertyDescriptor(M,O);if(void 0===A){var c=Object.getPrototypeOf(M);return null===c?void 0:T(c,O,b)}if("value"in A)return A.value;var P=A.get;return void 0===P?void 0:P.call(b)};function p(T,M){if(!(T instanceof M))throw new TypeError("Cannot call a class as a function")}function m(T,M){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!M||"object"!=typeof M&&"function"!=typeof M?T:M}var u=function(T){function M(){return p(this,M),m(this,(M.__proto__||Object.getPrototypeOf(M)).apply(this,arguments))}return function v(T,M){if("function"!=typeof M&&null!==M)throw new TypeError("Super expression must either be null or a function, not "+typeof M);T.prototype=Object.create(M&&M.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(T,M):T.__proto__=M)}(M,T),j(M,[{key:"format",value:function(b,A){if(b!==this.statics.blotName||!A)return l(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"format",this).call(this,b,A);A=this.constructor.sanitize(A),this.domNode.setAttribute("href",A)}}],[{key:"create",value:function(b){var A=l(M.__proto__||Object.getPrototypeOf(M),"create",this).call(this,b);return b=this.sanitize(b),A.setAttribute("href",b),A.setAttribute("rel","noopener noreferrer"),A.setAttribute("target","_blank"),A}},{key:"formats",value:function(b){return b.getAttribute("href")}},{key:"sanitize",value:function(b){return C(b,this.PROTOCOL_WHITELIST)?b:this.SANITIZED_URL}}]),M}(function k(T){return T&&T.__esModule?T:{default:T}}(g(6)).default);function C(T,M){var O=document.createElement("a");O.href=T;var b=O.href.slice(0,O.href.indexOf(":"));return M.indexOf(b)>-1}u.blotName="link",u.tagName="A",u.SANITIZED_URL="about:blank",u.PROTOCOL_WHITELIST=["http","https","mailto","tel"],f.default=u,f.sanitize=C},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0});var j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(M){return typeof M}:function(M){return M&&"function"==typeof Symbol&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},l=function(){function M(O,b){for(var A=0;A<b.length;A++){var c=b[A];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(O,c.key,c)}}return function(O,b,A){return b&&M(O.prototype,b),A&&M(O,A),O}}(),w=m(g(23)),p=m(g(107));function m(M){return M&&M.__esModule?M:{default:M}}var u=0;function C(M,O){M.setAttribute(O,"true"!==M.getAttribute(O))}var T=function(){function M(O){var b=this;(function v(M,O){if(!(M instanceof O))throw new TypeError("Cannot call a class as a function")})(this,M),this.select=O,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){b.togglePicker()}),this.label.addEventListener("keydown",function(A){switch(A.keyCode){case w.default.keys.ENTER:b.togglePicker();break;case w.default.keys.ESCAPE:b.escape(),A.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}return l(M,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),C(this.label,"aria-expanded"),C(this.options,"aria-hidden")}},{key:"buildItem",value:function(b){var A=this,c=document.createElement("span");return c.tabIndex="0",c.setAttribute("role","button"),c.classList.add("ql-picker-item"),b.hasAttribute("value")&&c.setAttribute("data-value",b.getAttribute("value")),b.textContent&&c.setAttribute("data-label",b.textContent),c.addEventListener("click",function(){A.selectItem(c,!0)}),c.addEventListener("keydown",function(P){switch(P.keyCode){case w.default.keys.ENTER:A.selectItem(c,!0),P.preventDefault();break;case w.default.keys.ESCAPE:A.escape(),P.preventDefault()}}),c}},{key:"buildLabel",value:function(){var b=document.createElement("span");return b.classList.add("ql-picker-label"),b.innerHTML=p.default,b.tabIndex="0",b.setAttribute("role","button"),b.setAttribute("aria-expanded","false"),this.container.appendChild(b),b}},{key:"buildOptions",value:function(){var b=this,A=document.createElement("span");A.classList.add("ql-picker-options"),A.setAttribute("aria-hidden","true"),A.tabIndex="-1",A.id="ql-picker-options-"+u,u+=1,this.label.setAttribute("aria-controls",A.id),this.options=A,[].slice.call(this.select.options).forEach(function(c){var P=b.buildItem(c);A.appendChild(P),!0===c.selected&&b.selectItem(P)}),this.container.appendChild(A)}},{key:"buildPicker",value:function(){var b=this;[].slice.call(this.select.attributes).forEach(function(A){b.container.setAttribute(A.name,A.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var b=this;this.close(),setTimeout(function(){return b.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(b){var A=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=this.container.querySelector(".ql-selected");if(b!==c&&(null!=c&&c.classList.remove("ql-selected"),null!=b&&(b.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(b.parentNode.children,b),b.hasAttribute("data-value")?this.label.setAttribute("data-value",b.getAttribute("data-value")):this.label.removeAttribute("data-value"),b.hasAttribute("data-label")?this.label.setAttribute("data-label",b.getAttribute("data-label")):this.label.removeAttribute("data-label"),A))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":j(Event))){var P=document.createEvent("Event");P.initEvent("change",!0,!0),this.select.dispatchEvent(P)}this.close()}}},{key:"update",value:function(){var b=void 0;if(this.select.selectedIndex>-1){var A=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];b=this.select.options[this.select.selectedIndex],this.selectItem(A)}else this.selectItem(null);var c=null!=b&&b!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",c)}}]),M}();f.default=T},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0});var l=ne(g(0)),w=ne(g(5)),k=g(4),p=ne(k),v=ne(g(16)),C=ne(g(25)),M=ne(g(24)),b=ne(g(35)),c=ne(g(6)),B=ne(g(22)),o=ne(g(7)),_=ne(g(55)),N=ne(g(42)),G=ne(g(23));function ne(Z){return Z&&Z.__esModule?Z:{default:Z}}w.default.register({"blots/block":p.default,"blots/block/embed":k.BlockEmbed,"blots/break":v.default,"blots/container":C.default,"blots/cursor":M.default,"blots/embed":b.default,"blots/inline":c.default,"blots/scroll":B.default,"blots/text":o.default,"modules/clipboard":_.default,"modules/history":N.default,"modules/keyboard":G.default}),l.default.register(p.default,v.default,M.default,c.default,B.default,o.default),f.default=w.default},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0});var j=g(1),l=function(){function S(w){this.domNode=w,this.domNode[j.DATA_KEY]={blot:this}}return Object.defineProperty(S.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),S.create=function(w){if(null==this.tagName)throw new j.ParchmentError("Blot definition missing tagName");var k;return Array.isArray(this.tagName)?("string"==typeof w&&(w=w.toUpperCase(),parseInt(w).toString()===w&&(w=parseInt(w))),k="number"==typeof w?document.createElement(this.tagName[w-1]):this.tagName.indexOf(w)>-1?document.createElement(w):document.createElement(this.tagName[0])):k=document.createElement(this.tagName),this.className&&k.classList.add(this.className),k},S.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},S.prototype.clone=function(){var w=this.domNode.cloneNode(!1);return j.create(w)},S.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[j.DATA_KEY]},S.prototype.deleteAt=function(w,k){this.isolate(w,k).remove()},S.prototype.formatAt=function(w,k,p,m){var v=this.isolate(w,k);if(null!=j.query(p,j.Scope.BLOT)&&m)v.wrap(p,m);else if(null!=j.query(p,j.Scope.ATTRIBUTE)){var u=j.create(this.statics.scope);v.wrap(u),u.format(p,m)}},S.prototype.insertAt=function(w,k,p){var m=null==p?j.create("text",k):j.create(k,p),v=this.split(w);this.parent.insertBefore(m,v)},S.prototype.insertInto=function(w,k){void 0===k&&(k=null),null!=this.parent&&this.parent.children.remove(this);var p=null;w.children.insertBefore(this,k),null!=k&&(p=k.domNode),(this.domNode.parentNode!=w.domNode||this.domNode.nextSibling!=p)&&w.domNode.insertBefore(this.domNode,p),this.parent=w,this.attach()},S.prototype.isolate=function(w,k){var p=this.split(w);return p.split(k),p},S.prototype.length=function(){return 1},S.prototype.offset=function(w){return void 0===w&&(w=this.parent),null==this.parent||this==w?0:this.parent.children.offset(this)+this.parent.offset(w)},S.prototype.optimize=function(w){null!=this.domNode[j.DATA_KEY]&&delete this.domNode[j.DATA_KEY].mutations},S.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},S.prototype.replace=function(w){null!=w.parent&&(w.parent.insertBefore(this,w.next),w.remove())},S.prototype.replaceWith=function(w,k){var p="string"==typeof w?j.create(w,k):w;return p.replace(this),p},S.prototype.split=function(w,k){return 0===w?this:this.next},S.prototype.update=function(w,k){},S.prototype.wrap=function(w,k){var p="string"==typeof w?j.create(w,k):w;return null!=this.parent&&this.parent.insertBefore(p,this.next),p.appendChild(this),p},S.blotName="abstract",S}();f.default=l},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0});var j=g(12),l=g(32),S=g(33),w=g(1),k=function(){function p(m){this.attributes={},this.domNode=m,this.build()}return p.prototype.attribute=function(m,v){v?m.add(this.domNode,v)&&(null!=m.value(this.domNode)?this.attributes[m.attrName]=m:delete this.attributes[m.attrName]):(m.remove(this.domNode),delete this.attributes[m.attrName])},p.prototype.build=function(){var m=this;this.attributes={};var v=j.default.keys(this.domNode),u=l.default.keys(this.domNode),C=S.default.keys(this.domNode);v.concat(u).concat(C).forEach(function(T){var M=w.query(T,w.Scope.ATTRIBUTE);M instanceof j.default&&(m.attributes[M.attrName]=M)})},p.prototype.copy=function(m){var v=this;Object.keys(this.attributes).forEach(function(u){var C=v.attributes[u].value(v.domNode);m.format(u,C)})},p.prototype.move=function(m){var v=this;this.copy(m),Object.keys(this.attributes).forEach(function(u){v.attributes[u].remove(v.domNode)}),this.attributes={}},p.prototype.values=function(){var m=this;return Object.keys(this.attributes).reduce(function(v,u){return v[u]=m.attributes[u].value(m.domNode),v},{})},p}();f.default=k},function(i,f,g){"use strict";var k,j=this&&this.__extends||(k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,m){p.__proto__=m}||function(p,m){for(var v in m)m.hasOwnProperty(v)&&(p[v]=m[v])},function(p,m){function v(){this.constructor=p}k(p,m),p.prototype=null===m?Object.create(m):(v.prototype=m.prototype,new v)});function S(k,p){return(k.getAttribute("class")||"").split(/\s+/).filter(function(v){return 0===v.indexOf(p+"-")})}Object.defineProperty(f,"__esModule",{value:!0});var w=function(k){function p(){return null!==k&&k.apply(this,arguments)||this}return j(p,k),p.keys=function(m){return(m.getAttribute("class")||"").split(/\s+/).map(function(v){return v.split("-").slice(0,-1).join("-")})},p.prototype.add=function(m,v){return!!this.canAdd(m,v)&&(this.remove(m),m.classList.add(this.keyName+"-"+v),!0)},p.prototype.remove=function(m){S(m,this.keyName).forEach(function(u){m.classList.remove(u)}),0===m.classList.length&&m.removeAttribute("class")},p.prototype.value=function(m){var u=(S(m,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(m,u)?u:""},p}(g(12).default);f.default=w},function(i,f,g){"use strict";var k,j=this&&this.__extends||(k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,m){p.__proto__=m}||function(p,m){for(var v in m)m.hasOwnProperty(v)&&(p[v]=m[v])},function(p,m){function v(){this.constructor=p}k(p,m),p.prototype=null===m?Object.create(m):(v.prototype=m.prototype,new v)});function S(k){var p=k.split("-"),m=p.slice(1).map(function(v){return v[0].toUpperCase()+v.slice(1)}).join("");return p[0]+m}Object.defineProperty(f,"__esModule",{value:!0});var w=function(k){function p(){return null!==k&&k.apply(this,arguments)||this}return j(p,k),p.keys=function(m){return(m.getAttribute("style")||"").split(";").map(function(v){return v.split(":")[0].trim()})},p.prototype.add=function(m,v){return!!this.canAdd(m,v)&&(m.style[S(this.keyName)]=v,!0)},p.prototype.remove=function(m){m.style[S(this.keyName)]="",m.getAttribute("style")||m.removeAttribute("style")},p.prototype.value=function(m){var v=m.style[S(this.keyName)];return this.canAdd(m,v)?v:""},p}(g(12).default);f.default=w},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0});var j=function(){function w(k,p){for(var m=0;m<p.length;m++){var v=p[m];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(k,v.key,v)}}return function(k,p,m){return p&&w(k.prototype,p),m&&w(k,m),k}}(),S=function(){function w(k,p){(function l(w,k){if(!(w instanceof k))throw new TypeError("Cannot call a class as a function")})(this,w),this.quill=k,this.options=p,this.modules={}}return j(w,[{key:"init",value:function(){var p=this;Object.keys(this.options.modules).forEach(function(m){null==p.modules[m]&&p.addModule(m)})}},{key:"addModule",value:function(p){var m=this.quill.constructor.import("modules/"+p);return this.modules[p]=new m(this.quill,this.options.modules[p]||{}),this.modules[p]}}]),w}();S.DEFAULTS={modules:{}},S.themes={default:S},f.default=S},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0});var j=function(){function O(b,A){for(var c=0;c<A.length;c++){var P=A[c];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(b,P.key,P)}}return function(b,A,c){return A&&O(b.prototype,A),c&&O(b,c),b}}(),l=function O(b,A,c){null===b&&(b=Function.prototype);var P=Object.getOwnPropertyDescriptor(b,A);if(void 0===P){var B=Object.getPrototypeOf(b);return null===B?void 0:O(B,A,c)}if("value"in P)return P.value;var q=P.get;return void 0===q?void 0:q.call(c)},w=m(g(0)),p=m(g(7));function m(O){return O&&O.__esModule?O:{default:O}}var T="\ufeff",M=function(O){function b(A){!function v(O,b){if(!(O instanceof b))throw new TypeError("Cannot call a class as a function")}(this,b);var c=function u(O,b){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?O:b}(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,A));return c.contentNode=document.createElement("span"),c.contentNode.setAttribute("contenteditable",!1),[].slice.call(c.domNode.childNodes).forEach(function(P){c.contentNode.appendChild(P)}),c.leftGuard=document.createTextNode(T),c.rightGuard=document.createTextNode(T),c.domNode.appendChild(c.leftGuard),c.domNode.appendChild(c.contentNode),c.domNode.appendChild(c.rightGuard),c}return function C(O,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);O.prototype=Object.create(b&&b.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(O,b):O.__proto__=b)}(b,O),j(b,[{key:"index",value:function(c,P){return c===this.leftGuard?0:c===this.rightGuard?1:l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"index",this).call(this,c,P)}},{key:"restore",value:function(c){var P=void 0,B=void 0,q=c.data.split(T).join("");if(c===this.leftGuard)if(this.prev instanceof p.default){var o=this.prev.length();this.prev.insertAt(o,q),P={startNode:this.prev.domNode,startOffset:o+q.length}}else B=document.createTextNode(q),this.parent.insertBefore(w.default.create(B),this),P={startNode:B,startOffset:q.length};else c===this.rightGuard&&(this.next instanceof p.default?(this.next.insertAt(0,q),P={startNode:this.next.domNode,startOffset:q.length}):(B=document.createTextNode(q),this.parent.insertBefore(w.default.create(B),this.next),P={startNode:B,startOffset:q.length}));return c.data=T,P}},{key:"update",value:function(c,P){var B=this;c.forEach(function(q){if("characterData"===q.type&&(q.target===B.leftGuard||q.target===B.rightGuard)){var o=B.restore(q.target);o&&(P.range=o)}})}}]),b}(w.default.Embed);f.default=M},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.AlignStyle=f.AlignClass=f.AlignAttribute=void 0;var l=function S(v){return v&&v.__esModule?v:{default:v}}(g(0)),w={scope:l.default.Scope.BLOCK,whitelist:["right","center","justify"]},k=new l.default.Attributor.Attribute("align","align",w),p=new l.default.Attributor.Class("align","ql-align",w),m=new l.default.Attributor.Style("align","text-align",w);f.AlignAttribute=k,f.AlignClass=p,f.AlignStyle=m},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.BackgroundStyle=f.BackgroundClass=void 0;var l=function w(m){return m&&m.__esModule?m:{default:m}}(g(0)),S=g(26),k=new l.default.Attributor.Class("background","ql-bg",{scope:l.default.Scope.INLINE}),p=new S.ColorAttributor("background","background-color",{scope:l.default.Scope.INLINE});f.BackgroundClass=k,f.BackgroundStyle=p},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.DirectionStyle=f.DirectionClass=f.DirectionAttribute=void 0;var l=function S(v){return v&&v.__esModule?v:{default:v}}(g(0)),w={scope:l.default.Scope.BLOCK,whitelist:["rtl"]},k=new l.default.Attributor.Attribute("direction","dir",w),p=new l.default.Attributor.Class("direction","ql-direction",w),m=new l.default.Attributor.Style("direction","direction",w);f.DirectionAttribute=k,f.DirectionClass=p,f.DirectionStyle=m},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.FontClass=f.FontStyle=void 0;var j=function(){function O(b,A){for(var c=0;c<A.length;c++){var P=A[c];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(b,P.key,P)}}return function(b,A,c){return A&&O(b.prototype,A),c&&O(b,c),b}}(),l=function O(b,A,c){null===b&&(b=Function.prototype);var P=Object.getOwnPropertyDescriptor(b,A);if(void 0===P){var B=Object.getPrototypeOf(b);return null===B?void 0:O(B,A,c)}if("value"in P)return P.value;var q=P.get;return void 0===q?void 0:q.call(c)},w=function k(O){return O&&O.__esModule?O:{default:O}}(g(0));function p(O,b){if(!(O instanceof b))throw new TypeError("Cannot call a class as a function")}function m(O,b){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?O:b}var u={scope:w.default.Scope.INLINE,whitelist:["serif","monospace"]},C=new w.default.Attributor.Class("font","ql-font",u),T=function(O){function b(){return p(this,b),m(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return function v(O,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);O.prototype=Object.create(b&&b.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(O,b):O.__proto__=b)}(b,O),j(b,[{key:"value",value:function(c){return l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"value",this).call(this,c).replace(/["']/g,"")}}]),b}(w.default.Attributor.Style),M=new T("font","font-family",u);f.FontStyle=M,f.FontClass=C},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.SizeStyle=f.SizeClass=void 0;var l=function S(p){return p&&p.__esModule?p:{default:p}}(g(0)),w=new l.default.Attributor.Class("size","ql-size",{scope:l.default.Scope.INLINE,whitelist:["small","large","huge"]}),k=new l.default.Attributor.Style("size","font-size",{scope:l.default.Scope.INLINE,whitelist:["10px","18px","32px"]});f.SizeClass=w,f.SizeStyle=k},function(i,f,g){"use strict";i.exports={align:{"":g(76),center:g(77),right:g(78),justify:g(79)},background:g(80),blockquote:g(81),bold:g(82),clean:g(83),code:g(58),"code-block":g(58),color:g(84),direction:{"":g(85),rtl:g(86)},float:{center:g(87),full:g(88),left:g(89),right:g(90)},formula:g(91),header:{1:g(92),2:g(93)},italic:g(94),image:g(95),indent:{"+1":g(96),"-1":g(97)},link:g(98),list:{ordered:g(99),bullet:g(100),check:g(101)},script:{sub:g(102),super:g(103)},strike:g(104),underline:g(105),video:g(106)}},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.getLastChangeIndex=f.default=void 0;var j=function(){function A(c,P){for(var B=0;B<P.length;B++){var q=P[B];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(c,q.key,q)}}return function(c,P,B){return P&&A(c.prototype,P),B&&A(c,B),c}}(),S=v(g(0)),k=v(g(5));function v(A){return A&&A.__esModule?A:{default:A}}var M=function(A){function c(P,B){!function u(A,c){if(!(A instanceof c))throw new TypeError("Cannot call a class as a function")}(this,c);var q=function C(A,c){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!=typeof c&&"function"!=typeof c?A:c}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,P,B));return q.lastRecorded=0,q.ignoreChange=!1,q.clear(),q.quill.on(k.default.events.EDITOR_CHANGE,function(o,y,_,R){o!==k.default.events.TEXT_CHANGE||q.ignoreChange||(q.options.userOnly&&R!==k.default.sources.USER?q.transform(y):q.record(y,_))}),q.quill.keyboard.addBinding({key:"Z",shortKey:!0},q.undo.bind(q)),q.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},q.redo.bind(q)),/Win/i.test(navigator.platform)&&q.quill.keyboard.addBinding({key:"Y",shortKey:!0},q.redo.bind(q)),q}return function T(A,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);A.prototype=Object.create(c&&c.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(A,c):A.__proto__=c)}(c,A),j(c,[{key:"change",value:function(B,q){if(0!==this.stack[B].length){var o=this.stack[B].pop();this.stack[q].push(o),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(o[B],k.default.sources.USER),this.ignoreChange=!1;var y=b(o[B]);this.quill.setSelection(y)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(B,q){if(0!==B.ops.length){this.stack.redo=[];var o=this.quill.getContents().diff(q),y=Date.now();if(this.lastRecorded+this.options.delay>y&&this.stack.undo.length>0){var _=this.stack.undo.pop();o=o.compose(_.undo),B=_.redo.compose(B)}else this.lastRecorded=y;this.stack.undo.push({redo:B,undo:o}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(B){this.stack.undo.forEach(function(q){q.undo=B.transform(q.undo,!0),q.redo=B.transform(q.redo,!0)}),this.stack.redo.forEach(function(q){q.undo=B.transform(q.undo,!0),q.redo=B.transform(q.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),c}(v(g(9)).default);function b(A){var c=A.reduce(function(B,q){return B+(q.delete||0)},0),P=A.length()-c;return function O(A){var c=A.ops[A.ops.length-1];return null!=c&&(null!=c.insert?"string"==typeof c.insert&&c.insert.endsWith("\n"):null!=c.attributes&&Object.keys(c.attributes).some(function(P){return null!=S.default.query(P,S.default.Scope.BLOCK)}))}(A)&&(P-=1),P}M.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},f.default=M,f.getLastChangeIndex=b},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.default=f.BaseTooltip=void 0;var j=function(){function se(de,me){for(var Se=0;Se<me.length;Se++){var ce=me[Se];ce.enumerable=ce.enumerable||!1,ce.configurable=!0,"value"in ce&&(ce.writable=!0),Object.defineProperty(de,ce.key,ce)}}return function(de,me,Se){return me&&se(de.prototype,me),Se&&se(de,Se),de}}(),l=function se(de,me,Se){null===de&&(de=Function.prototype);var ce=Object.getOwnPropertyDescriptor(de,me);if(void 0===ce){var xe=Object.getPrototypeOf(de);return null===xe?void 0:se(xe,me,Se)}if("value"in ce)return ce.value;var Re=ce.get;return void 0===Re?void 0:Re.call(Se)},w=y(g(3)),p=y(g(2)),v=y(g(8)),C=y(g(23)),M=y(g(34)),b=y(g(59)),c=y(g(60)),B=y(g(28)),o=y(g(61));function y(se){return se&&se.__esModule?se:{default:se}}function _(se,de){if(!(se instanceof de))throw new TypeError("Cannot call a class as a function")}function R(se,de){if(!se)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!de||"object"!=typeof de&&"function"!=typeof de?se:de}function N(se,de){if("function"!=typeof de&&null!==de)throw new TypeError("Super expression must either be null or a function, not "+typeof de);se.prototype=Object.create(de&&de.prototype,{constructor:{value:se,enumerable:!1,writable:!0,configurable:!0}}),de&&(Object.setPrototypeOf?Object.setPrototypeOf(se,de):se.__proto__=de)}var W=[!1,"center","right","justify"],G=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],ne=[!1,"serif","monospace"],Z=["1","2","3",!1],te=["small",!1,"large","huge"],ge=function(se){function de(me,Se){_(this,de);var ce=R(this,(de.__proto__||Object.getPrototypeOf(de)).call(this,me,Se));return me.emitter.listenDOM("click",document.body,function Re(Oe){if(!document.body.contains(me.root))return document.body.removeEventListener("click",Re);null!=ce.tooltip&&!ce.tooltip.root.contains(Oe.target)&&document.activeElement!==ce.tooltip.textbox&&!ce.quill.hasFocus()&&ce.tooltip.hide(),null!=ce.pickers&&ce.pickers.forEach(function(we){we.container.contains(Oe.target)||we.close()})}),ce}return N(de,se),j(de,[{key:"addModule",value:function(Se){var ce=l(de.prototype.__proto__||Object.getPrototypeOf(de.prototype),"addModule",this).call(this,Se);return"toolbar"===Se&&this.extendToolbar(ce),ce}},{key:"buildButtons",value:function(Se,ce){Se.forEach(function(xe){(xe.getAttribute("class")||"").split(/\s+/).forEach(function(Oe){if(Oe.startsWith("ql-")&&(Oe=Oe.slice(3),null!=ce[Oe]))if("direction"===Oe)xe.innerHTML=ce[Oe][""]+ce[Oe].rtl;else if("string"==typeof ce[Oe])xe.innerHTML=ce[Oe];else{var we=xe.value||"";null!=we&&ce[Oe][we]&&(xe.innerHTML=ce[Oe][we])}})})}},{key:"buildPickers",value:function(Se,ce){var xe=this;this.pickers=Se.map(function(Oe){if(Oe.classList.contains("ql-align"))return null==Oe.querySelector("option")&&U(Oe,W),new c.default(Oe,ce.align);if(Oe.classList.contains("ql-background")||Oe.classList.contains("ql-color")){var we=Oe.classList.contains("ql-background")?"background":"color";return null==Oe.querySelector("option")&&U(Oe,G,"background"===we?"#ffffff":"#000000"),new b.default(Oe,ce[we])}return null==Oe.querySelector("option")&&(Oe.classList.contains("ql-font")?U(Oe,ne):Oe.classList.contains("ql-header")?U(Oe,Z):Oe.classList.contains("ql-size")&&U(Oe,te)),new B.default(Oe)}),this.quill.on(v.default.events.EDITOR_CHANGE,function(){xe.pickers.forEach(function(we){we.update()})})}}]),de}(M.default);ge.DEFAULTS=(0,w.default)(!0,{},M.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var de=this,me=this.container.querySelector("input.ql-image[type=file]");null==me&&((me=document.createElement("input")).setAttribute("type","file"),me.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),me.classList.add("ql-image"),me.addEventListener("change",function(){if(null!=me.files&&null!=me.files[0]){var Se=new FileReader;Se.onload=function(ce){var xe=de.quill.getSelection(!0);de.quill.updateContents((new p.default).retain(xe.index).delete(xe.length).insert({image:ce.target.result}),v.default.sources.USER),de.quill.setSelection(xe.index+1,v.default.sources.SILENT),me.value=""},Se.readAsDataURL(me.files[0])}}),this.container.appendChild(me)),me.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var Q=function(se){function de(me,Se){_(this,de);var ce=R(this,(de.__proto__||Object.getPrototypeOf(de)).call(this,me,Se));return ce.textbox=ce.root.querySelector('input[type="text"]'),ce.listen(),ce}return N(de,se),j(de,[{key:"listen",value:function(){var Se=this;this.textbox.addEventListener("keydown",function(ce){C.default.match(ce,"enter")?(Se.save(),ce.preventDefault()):C.default.match(ce,"escape")&&(Se.cancel(),ce.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var Se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=ce?this.textbox.value=ce:Se!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+Se)||""),this.root.setAttribute("data-mode",Se)}},{key:"restoreFocus",value:function(){var Se=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=Se}},{key:"save",value:function(){var Se=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var ce=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",Se,v.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",Se,v.default.sources.USER)),this.quill.root.scrollTop=ce;break;case"video":Se=function J(se){var de=se.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||se.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return de?(de[1]||"https")+"://www.youtube.com/embed/"+de[2]+"?showinfo=0":(de=se.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(de[1]||"https")+"://player.vimeo.com/video/"+de[2]+"/":se}(Se);case"formula":if(!Se)break;var xe=this.quill.getSelection(!0);if(null!=xe){var Re=xe.index+xe.length;this.quill.insertEmbed(Re,this.root.getAttribute("data-mode"),Se,v.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(Re+1," ",v.default.sources.USER),this.quill.setSelection(Re+2,v.default.sources.USER)}}this.textbox.value="",this.hide()}}]),de}(o.default);function U(se,de){var me=arguments.length>2&&void 0!==arguments[2]&&arguments[2];de.forEach(function(Se){var ce=document.createElement("option");Se===me?ce.setAttribute("selected","selected"):ce.setAttribute("value",Se),se.appendChild(ce)})}f.BaseTooltip=Q,f.default=ge},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0});var j=function(){function l(){this.head=this.tail=null,this.length=0}return l.prototype.append=function(){for(var S=[],w=0;w<arguments.length;w++)S[w]=arguments[w];this.insertBefore(S[0],null),S.length>1&&this.append.apply(this,S.slice(1))},l.prototype.contains=function(S){for(var w,k=this.iterator();w=k();)if(w===S)return!0;return!1},l.prototype.insertBefore=function(S,w){!S||(S.next=w,null!=w?(S.prev=w.prev,null!=w.prev&&(w.prev.next=S),w.prev=S,w===this.head&&(this.head=S)):null!=this.tail?(this.tail.next=S,S.prev=this.tail,this.tail=S):(S.prev=null,this.head=this.tail=S),this.length+=1)},l.prototype.offset=function(S){for(var w=0,k=this.head;null!=k;){if(k===S)return w;w+=k.length(),k=k.next}return-1},l.prototype.remove=function(S){!this.contains(S)||(null!=S.prev&&(S.prev.next=S.next),null!=S.next&&(S.next.prev=S.prev),S===this.head&&(this.head=S.next),S===this.tail&&(this.tail=S.prev),this.length-=1)},l.prototype.iterator=function(S){return void 0===S&&(S=this.head),function(){var w=S;return null!=S&&(S=S.next),w}},l.prototype.find=function(S,w){void 0===w&&(w=!1);for(var k,p=this.iterator();k=p();){var m=k.length();if(S<m||w&&S===m&&(null==k.next||0!==k.next.length()))return[k,S];S-=m}return[null,0]},l.prototype.forEach=function(S){for(var w,k=this.iterator();w=k();)S(w)},l.prototype.forEachAt=function(S,w,k){if(!(w<=0))for(var u,p=this.find(S),C=S-p[1],T=this.iterator(p[0]);(u=T())&&C<S+w;){var M=u.length();S>C?k(u,S-C,Math.min(w,C+M-S)):k(u,0,Math.min(M,S+w-C)),C+=M}},l.prototype.map=function(S){return this.reduce(function(w,k){return w.push(S(k)),w},[])},l.prototype.reduce=function(S,w){for(var k,p=this.iterator();k=p();)w=S(w,k);return w},l}();f.default=j},function(i,f,g){"use strict";var m,j=this&&this.__extends||(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,u){v.__proto__=u}||function(v,u){for(var C in u)u.hasOwnProperty(C)&&(v[C]=u[C])},function(v,u){function C(){this.constructor=v}m(v,u),v.prototype=null===u?Object.create(u):(C.prototype=u.prototype,new C)});Object.defineProperty(f,"__esModule",{value:!0});var l=g(17),S=g(1),w={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},p=function(m){function v(u){var C=m.call(this,u)||this;return C.scroll=C,C.observer=new MutationObserver(function(T){C.update(T)}),C.observer.observe(C.domNode,w),C.attach(),C}return j(v,m),v.prototype.detach=function(){m.prototype.detach.call(this),this.observer.disconnect()},v.prototype.deleteAt=function(u,C){this.update(),0===u&&C===this.length()?this.children.forEach(function(T){T.remove()}):m.prototype.deleteAt.call(this,u,C)},v.prototype.formatAt=function(u,C,T,M){this.update(),m.prototype.formatAt.call(this,u,C,T,M)},v.prototype.insertAt=function(u,C,T){this.update(),m.prototype.insertAt.call(this,u,C,T)},v.prototype.optimize=function(u,C){var T=this;void 0===u&&(u=[]),void 0===C&&(C={}),m.prototype.optimize.call(this,C);for(var M=[].slice.call(this.observer.takeRecords());M.length>0;)u.push(M.pop());for(var O=function(P,B){void 0===B&&(B=!0),null!=P&&P!==T&&null!=P.domNode.parentNode&&(null==P.domNode[S.DATA_KEY].mutations&&(P.domNode[S.DATA_KEY].mutations=[]),B&&O(P.parent))},b=function(P){null==P.domNode[S.DATA_KEY]||null==P.domNode[S.DATA_KEY].mutations||(P instanceof l.default&&P.children.forEach(b),P.optimize(C))},A=u,c=0;A.length>0;c+=1){if(c>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(A.forEach(function(P){var B=S.find(P.target,!0);null!=B&&(B.domNode===P.target&&("childList"===P.type?(O(S.find(P.previousSibling,!1)),[].forEach.call(P.addedNodes,function(q){var o=S.find(q,!1);O(o,!1),o instanceof l.default&&o.children.forEach(function(y){O(y,!1)})})):"attributes"===P.type&&O(B.prev)),O(B))}),this.children.forEach(b),M=(A=[].slice.call(this.observer.takeRecords())).slice();M.length>0;)u.push(M.pop())}},v.prototype.update=function(u,C){var T=this;void 0===C&&(C={}),(u=u||this.observer.takeRecords()).map(function(M){var O=S.find(M.target,!0);return null==O?null:null==O.domNode[S.DATA_KEY].mutations?(O.domNode[S.DATA_KEY].mutations=[M],O):(O.domNode[S.DATA_KEY].mutations.push(M),null)}).forEach(function(M){null==M||M===T||null==M.domNode[S.DATA_KEY]||M.update(M.domNode[S.DATA_KEY].mutations||[],C)}),null!=this.domNode[S.DATA_KEY].mutations&&m.prototype.update.call(this,this.domNode[S.DATA_KEY].mutations,C),this.optimize(u,C)},v.blotName="scroll",v.defaultChild="block",v.scope=S.Scope.BLOCK_BLOT,v.tagName="DIV",v}(l.default);f.default=p},function(i,f,g){"use strict";var p,j=this&&this.__extends||(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var u in v)v.hasOwnProperty(u)&&(m[u]=v[u])},function(m,v){function u(){this.constructor=m}p(m,v),m.prototype=null===v?Object.create(v):(u.prototype=v.prototype,new u)});Object.defineProperty(f,"__esModule",{value:!0});var l=g(18),S=g(1),k=function(p){function m(){return null!==p&&p.apply(this,arguments)||this}return j(m,p),m.formats=function(v){if(v.tagName!==m.tagName)return p.formats.call(this,v)},m.prototype.format=function(v,u){var C=this;v!==this.statics.blotName||u?p.prototype.format.call(this,v,u):(this.children.forEach(function(T){T instanceof l.default||(T=T.wrap(m.blotName,!0)),C.attributes.copy(T)}),this.unwrap())},m.prototype.formatAt=function(v,u,C,T){null!=this.formats()[C]||S.query(C,S.Scope.ATTRIBUTE)?this.isolate(v,u).format(C,T):p.prototype.formatAt.call(this,v,u,C,T)},m.prototype.optimize=function(v){p.prototype.optimize.call(this,v);var u=this.formats();if(0===Object.keys(u).length)return this.unwrap();var C=this.next;C instanceof m&&C.prev===this&&function w(p,m){if(Object.keys(p).length!==Object.keys(m).length)return!1;for(var v in p)if(p[v]!==m[v])return!1;return!0}(u,C.formats())&&(C.moveChildren(this),C.remove())},m.blotName="inline",m.scope=S.Scope.INLINE_BLOT,m.tagName="SPAN",m}(l.default);f.default=k},function(i,f,g){"use strict";var k,j=this&&this.__extends||(k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,m){p.__proto__=m}||function(p,m){for(var v in m)m.hasOwnProperty(v)&&(p[v]=m[v])},function(p,m){function v(){this.constructor=p}k(p,m),p.prototype=null===m?Object.create(m):(v.prototype=m.prototype,new v)});Object.defineProperty(f,"__esModule",{value:!0});var l=g(18),S=g(1),w=function(k){function p(){return null!==k&&k.apply(this,arguments)||this}return j(p,k),p.formats=function(m){var v=S.query(p.blotName).tagName;if(m.tagName!==v)return k.formats.call(this,m)},p.prototype.format=function(m,v){null!=S.query(m,S.Scope.BLOCK)&&(m!==this.statics.blotName||v?k.prototype.format.call(this,m,v):this.replaceWith(p.blotName))},p.prototype.formatAt=function(m,v,u,C){null!=S.query(u,S.Scope.BLOCK)?this.format(u,C):k.prototype.formatAt.call(this,m,v,u,C)},p.prototype.insertAt=function(m,v,u){if(null==u||null!=S.query(v,S.Scope.INLINE))k.prototype.insertAt.call(this,m,v,u);else{var C=this.split(m),T=S.create(v,u);C.parent.insertBefore(T,C)}},p.prototype.update=function(m,v){navigator.userAgent.match(/Trident/)?this.build():k.prototype.update.call(this,m,v)},p.blotName="block",p.scope=S.Scope.BLOCK_BLOT,p.tagName="P",p}(l.default);f.default=w},function(i,f,g){"use strict";var w,j=this&&this.__extends||(w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,p){k.__proto__=p}||function(k,p){for(var m in p)p.hasOwnProperty(m)&&(k[m]=p[m])},function(k,p){function m(){this.constructor=k}w(k,p),k.prototype=null===p?Object.create(p):(m.prototype=p.prototype,new m)});Object.defineProperty(f,"__esModule",{value:!0});var S=function(w){function k(){return null!==w&&w.apply(this,arguments)||this}return j(k,w),k.formats=function(p){},k.prototype.format=function(p,m){w.prototype.formatAt.call(this,0,this.length(),p,m)},k.prototype.formatAt=function(p,m,v,u){0===p&&m===this.length()?this.format(v,u):w.prototype.formatAt.call(this,p,m,v,u)},k.prototype.formats=function(){return this.statics.formats(this.domNode)},k}(g(19).default);f.default=S},function(i,f,g){"use strict";var k,j=this&&this.__extends||(k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,m){p.__proto__=m}||function(p,m){for(var v in m)m.hasOwnProperty(v)&&(p[v]=m[v])},function(p,m){function v(){this.constructor=p}k(p,m),p.prototype=null===m?Object.create(m):(v.prototype=m.prototype,new v)});Object.defineProperty(f,"__esModule",{value:!0});var l=g(19),S=g(1),w=function(k){function p(m){var v=k.call(this,m)||this;return v.text=v.statics.value(v.domNode),v}return j(p,k),p.create=function(m){return document.createTextNode(m)},p.value=function(m){var v=m.data;return v.normalize&&(v=v.normalize()),v},p.prototype.deleteAt=function(m,v){this.domNode.data=this.text=this.text.slice(0,m)+this.text.slice(m+v)},p.prototype.index=function(m,v){return this.domNode===m?v:-1},p.prototype.insertAt=function(m,v,u){null==u?(this.text=this.text.slice(0,m)+v+this.text.slice(m),this.domNode.data=this.text):k.prototype.insertAt.call(this,m,v,u)},p.prototype.length=function(){return this.text.length},p.prototype.optimize=function(m){k.prototype.optimize.call(this,m),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof p&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},p.prototype.position=function(m,v){return void 0===v&&(v=!1),[this.domNode,m]},p.prototype.split=function(m,v){if(void 0===v&&(v=!1),!v){if(0===m)return this;if(m===this.length())return this.next}var u=S.create(this.domNode.splitText(m));return this.parent.insertBefore(u,this.next),this.text=this.statics.value(this.domNode),u},p.prototype.update=function(m,v){var u=this;m.some(function(C){return"characterData"===C.type&&C.target===u.domNode})&&(this.text=this.statics.value(this.domNode))},p.prototype.value=function(){return this.text},p.blotName="text",p.scope=S.Scope.INLINE_BLOT,p}(l.default);f.default=w},function(i,f,g){"use strict";var j=document.createElement("div");if(j.classList.toggle("test-class",!1),j.classList.contains("test-class")){var l=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(S,w){return arguments.length>1&&!this.contains(S)==!w?w:l.call(this,S)}}String.prototype.startsWith||(String.prototype.startsWith=function(S,w){return this.substr(w=w||0,S.length)===S}),String.prototype.endsWith||(String.prototype.endsWith=function(S,w){var k=this.toString();("number"!=typeof w||!isFinite(w)||Math.floor(w)!==w||w>k.length)&&(w=k.length);var p=k.indexOf(S,w-=S.length);return-1!==p&&p===w}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(w){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof w)throw new TypeError("predicate must be a function");for(var v,k=Object(this),p=k.length>>>0,m=arguments[1],u=0;u<p;u++)if(w.call(m,v=k[u],u,k))return v}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(i,f){var g=-1;function S(c,P,B){if(c==P)return c?[[0,c]]:[];(B<0||c.length<B)&&(B=null);var q=m(c,P),o=c.substring(0,q);q=v(c=c.substring(q),P=P.substring(q));var y=c.substring(c.length-q),_=function w(c,P){var B;if(!c)return[[1,P]];if(!P)return[[g,c]];var q=c.length>P.length?c:P,o=c.length>P.length?P:c,y=q.indexOf(o);if(-1!=y)return B=[[1,q.substring(0,y)],[0,o],[1,q.substring(y+o.length)]],c.length>P.length&&(B[0][0]=B[2][0]=g),B;if(1==o.length)return[[g,c],[1,P]];var _=function u(c,P){var B=c.length>P.length?c:P,q=c.length>P.length?P:c;if(B.length<4||2*q.length<B.length)return null;function o(te,ge,Q){for(var de,me,Se,ce,J=te.substring(Q,Q+Math.floor(te.length/4)),U=-1,se="";-1!=(U=ge.indexOf(J,U+1));){var xe=m(te.substring(Q),ge.substring(U)),Re=v(te.substring(0,Q),ge.substring(0,U));se.length<Re+xe&&(se=ge.substring(U-Re,U)+ge.substring(U,U+xe),de=te.substring(0,Q-Re),me=te.substring(Q+xe),Se=ge.substring(0,U-Re),ce=ge.substring(U+xe))}return 2*se.length>=te.length?[de,me,Se,ce,se]:null}var R,N,W,G,ne,y=o(B,q,Math.ceil(B.length/4)),_=o(B,q,Math.ceil(B.length/2));return y||_?(R=_?y&&y[4].length>_[4].length?y:_:y,c.length>P.length?(N=R[0],W=R[1],G=R[2],ne=R[3]):(G=R[0],ne=R[1],N=R[2],W=R[3]),[N,W,G,ne,R[4]]):null}(c,P);if(_){var N=_[1],G=_[3],ne=_[4],Z=S(_[0],_[2]),te=S(N,G);return Z.concat([[0,ne]],te)}return function k(c,P){for(var B=c.length,q=P.length,o=Math.ceil((B+q)/2),y=o,_=2*o,R=new Array(_),N=new Array(_),W=0;W<_;W++)R[W]=-1,N[W]=-1;R[y+1]=0,N[y+1]=0;for(var G=B-q,ne=G%2!=0,Z=0,te=0,ge=0,Q=0,J=0;J<o;J++){for(var U=-J+Z;U<=J-te;U+=2){for(var se=y+U,me=(de=U==-J||U!=J&&R[se-1]<R[se+1]?R[se+1]:R[se-1]+1)-U;de<B&&me<q&&c.charAt(de)==P.charAt(me);)de++,me++;if(R[se]=de,de>B)te+=2;else if(me>q)Z+=2;else if(ne&&(Se=y+G-U)>=0&&Se<_&&-1!=N[Se]&&de>=(ce=B-N[Se]))return p(c,P,de,me)}for(var xe=-J+ge;xe<=J-Q;xe+=2){for(var ce,Se=y+xe,Re=(ce=xe==-J||xe!=J&&N[Se-1]<N[Se+1]?N[Se+1]:N[Se-1]+1)-xe;ce<B&&Re<q&&c.charAt(B-ce-1)==P.charAt(q-Re-1);)ce++,Re++;if(N[Se]=ce,ce>B)Q+=2;else if(Re>q)ge+=2;else if(!ne){var de;if((se=y+G-xe)>=0&&se<_&&-1!=R[se])if(me=y+(de=R[se])-se,de>=(ce=B-ce))return p(c,P,de,me)}}}return[[g,c],[1,P]]}(c,P)}(c=c.substring(0,c.length-q),P=P.substring(0,P.length-q));return o&&_.unshift([0,o]),y&&_.push([0,y]),C(_),null!=B&&(_=function O(c,P){var B=function M(c,P){if(0===P)return[0,c];for(var B=0,q=0;q<c.length;q++){var o=c[q];if(o[0]===g||0===o[0]){var y=B+o[1].length;if(P===y)return[q+1,c];if(P<y){c=c.slice();var _=P-B,R=[o[0],o[1].slice(0,_)],N=[o[0],o[1].slice(_)];return c.splice(q,1,R,N),[q+1,c]}B=y}}throw new Error("cursor_pos is out of bounds!")}(c,P),q=B[1],o=B[0],y=q[o],_=q[o+1];if(null==y)return c;if(0!==y[0])return c;if(null!=_&&y[1]+_[1]===_[1]+y[1])return q.splice(o,2,_,y),A(q,o,2);if(null!=_&&0===_[1].indexOf(y[1])){q.splice(o,2,[_[0],y[1]],[0,y[1]]);var R=_[1].slice(y[1].length);return R.length>0&&q.splice(o+2,0,[_[0],R]),A(q,o,3)}return c}(_,B)),_=function b(c){for(var P=!1,B=function(_){return _.charCodeAt(0)>=56320&&_.charCodeAt(0)<=57343},q=function(_){return _.charCodeAt(_.length-1)>=55296&&_.charCodeAt(_.length-1)<=56319},o=2;o<c.length;o+=1)0===c[o-2][0]&&q(c[o-2][1])&&c[o-1][0]===g&&B(c[o-1][1])&&1===c[o][0]&&B(c[o][1])&&(P=!0,c[o-1][1]=c[o-2][1].slice(-1)+c[o-1][1],c[o][1]=c[o-2][1].slice(-1)+c[o][1],c[o-2][1]=c[o-2][1].slice(0,-1));if(!P)return c;var y=[];for(o=0;o<c.length;o+=1)c[o][1].length>0&&y.push(c[o]);return y}(_),_}function p(c,P,B,q){var o=c.substring(0,B),y=P.substring(0,q),_=c.substring(B),R=P.substring(q),N=S(o,y),W=S(_,R);return N.concat(W)}function m(c,P){if(!c||!P||c.charAt(0)!=P.charAt(0))return 0;for(var B=0,q=Math.min(c.length,P.length),o=q,y=0;B<o;)c.substring(y,o)==P.substring(y,o)?y=B=o:q=o,o=Math.floor((q-B)/2+B);return o}function v(c,P){if(!c||!P||c.charAt(c.length-1)!=P.charAt(P.length-1))return 0;for(var B=0,q=Math.min(c.length,P.length),o=q,y=0;B<o;)c.substring(c.length-o,c.length-y)==P.substring(P.length-o,P.length-y)?y=B=o:q=o,o=Math.floor((q-B)/2+B);return o}function C(c){c.push([0,""]);for(var _,P=0,B=0,q=0,o="",y="";P<c.length;)switch(c[P][0]){case 1:q++,y+=c[P][1],P++;break;case g:B++,o+=c[P][1],P++;break;case 0:B+q>1?(0!==B&&0!==q&&(0!==(_=m(y,o))&&(P-B-q>0&&0==c[P-B-q-1][0]?c[P-B-q-1][1]+=y.substring(0,_):(c.splice(0,0,[0,y.substring(0,_)]),P++),y=y.substring(_),o=o.substring(_)),0!==(_=v(y,o))&&(c[P][1]=y.substring(y.length-_)+c[P][1],y=y.substring(0,y.length-_),o=o.substring(0,o.length-_))),0===B?c.splice(P-q,B+q,[1,y]):0===q?c.splice(P-B,B+q,[g,o]):c.splice(P-B-q,B+q,[g,o],[1,y]),P=P-B-q+(B?1:0)+(q?1:0)+1):0!==P&&0==c[P-1][0]?(c[P-1][1]+=c[P][1],c.splice(P,1)):P++,q=0,B=0,o="",y=""}""===c[c.length-1][1]&&c.pop();var R=!1;for(P=1;P<c.length-1;)0==c[P-1][0]&&0==c[P+1][0]&&(c[P][1].substring(c[P][1].length-c[P-1][1].length)==c[P-1][1]?(c[P][1]=c[P-1][1]+c[P][1].substring(0,c[P][1].length-c[P-1][1].length),c[P+1][1]=c[P-1][1]+c[P+1][1],c.splice(P-1,1),R=!0):c[P][1].substring(0,c[P+1][1].length)==c[P+1][1]&&(c[P-1][1]+=c[P+1][1],c[P][1]=c[P][1].substring(c[P+1][1].length)+c[P+1][1],c.splice(P+1,1),R=!0)),P++;R&&C(c)}var T=S;function A(c,P,B){for(var q=P+B-1;q>=0&&q>=P-1;q--)if(q+1<c.length){var o=c[q],y=c[q+1];o[0]===y[1]&&c.splice(q,2,[o[0],o[1]+y[1]])}return c}T.INSERT=1,T.DELETE=g,T.EQUAL=0,i.exports=T},function(i,f){function g(j){var l=[];for(var S in j)l.push(S);return l}(i.exports="function"==typeof Object.keys?Object.keys:g).shim=g},function(i,f){var g="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function j(S){return"[object Arguments]"==Object.prototype.toString.call(S)}function l(S){return S&&"object"==typeof S&&"number"==typeof S.length&&Object.prototype.hasOwnProperty.call(S,"callee")&&!Object.prototype.propertyIsEnumerable.call(S,"callee")||!1}(f=i.exports=g?j:l).supported=j,f.unsupported=l},function(i,f){"use strict";var g=Object.prototype.hasOwnProperty,j="~";function l(){}function S(k,p,m){this.fn=k,this.context=p,this.once=m||!1}function w(){this._events=new l,this._eventsCount=0}Object.create&&(l.prototype=Object.create(null),(new l).__proto__||(j=!1)),w.prototype.eventNames=function(){var m,v,p=[];if(0===this._eventsCount)return p;for(v in m=this._events)g.call(m,v)&&p.push(j?v.slice(1):v);return Object.getOwnPropertySymbols?p.concat(Object.getOwnPropertySymbols(m)):p},w.prototype.listeners=function(p,m){var u=this._events[j?j+p:p];if(m)return!!u;if(!u)return[];if(u.fn)return[u.fn];for(var C=0,T=u.length,M=new Array(T);C<T;C++)M[C]=u[C].fn;return M},w.prototype.emit=function(p,m,v,u,C,T){var M=j?j+p:p;if(!this._events[M])return!1;var A,c,O=this._events[M],b=arguments.length;if(O.fn){switch(O.once&&this.removeListener(p,O.fn,void 0,!0),b){case 1:return O.fn.call(O.context),!0;case 2:return O.fn.call(O.context,m),!0;case 3:return O.fn.call(O.context,m,v),!0;case 4:return O.fn.call(O.context,m,v,u),!0;case 5:return O.fn.call(O.context,m,v,u,C),!0;case 6:return O.fn.call(O.context,m,v,u,C,T),!0}for(c=1,A=new Array(b-1);c<b;c++)A[c-1]=arguments[c];O.fn.apply(O.context,A)}else{var B,P=O.length;for(c=0;c<P;c++)switch(O[c].once&&this.removeListener(p,O[c].fn,void 0,!0),b){case 1:O[c].fn.call(O[c].context);break;case 2:O[c].fn.call(O[c].context,m);break;case 3:O[c].fn.call(O[c].context,m,v);break;case 4:O[c].fn.call(O[c].context,m,v,u);break;default:if(!A)for(B=1,A=new Array(b-1);B<b;B++)A[B-1]=arguments[B];O[c].fn.apply(O[c].context,A)}}return!0},w.prototype.on=function(p,m,v){var u=new S(m,v||this),C=j?j+p:p;return this._events[C]?this._events[C].fn?this._events[C]=[this._events[C],u]:this._events[C].push(u):(this._events[C]=u,this._eventsCount++),this},w.prototype.once=function(p,m,v){var u=new S(m,v||this,!0),C=j?j+p:p;return this._events[C]?this._events[C].fn?this._events[C]=[this._events[C],u]:this._events[C].push(u):(this._events[C]=u,this._eventsCount++),this},w.prototype.removeListener=function(p,m,v,u){var C=j?j+p:p;if(!this._events[C])return this;if(!m)return 0==--this._eventsCount?this._events=new l:delete this._events[C],this;var T=this._events[C];if(T.fn)T.fn===m&&(!u||T.once)&&(!v||T.context===v)&&(0==--this._eventsCount?this._events=new l:delete this._events[C]);else{for(var M=0,O=[],b=T.length;M<b;M++)(T[M].fn!==m||u&&!T[M].once||v&&T[M].context!==v)&&O.push(T[M]);O.length?this._events[C]=1===O.length?O[0]:O:0==--this._eventsCount?this._events=new l:delete this._events[C]}return this},w.prototype.removeAllListeners=function(p){var m;return p?this._events[m=j?j+p:p]&&(0==--this._eventsCount?this._events=new l:delete this._events[m]):(this._events=new l,this._eventsCount=0),this},w.prototype.off=w.prototype.removeListener,w.prototype.addListener=w.prototype.on,w.prototype.setMaxListeners=function(){return this},w.prefixed=j,w.EventEmitter=w,void 0!==i&&(i.exports=w)},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.matchText=f.matchSpacing=f.matchNewline=f.matchBlot=f.matchAttributor=f.default=void 0;var j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(oe){return typeof oe}:function(oe){return oe&&"function"==typeof Symbol&&oe.constructor===Symbol&&oe!==Symbol.prototype?"symbol":typeof oe},l=function(fe,a){if(Array.isArray(fe))return fe;if(Symbol.iterator in Object(fe))return function oe(fe,a){var h=[],n=!0,r=!1,d=void 0;try{for(var F,E=fe[Symbol.iterator]();!(n=(F=E.next()).done)&&(h.push(F.value),!a||h.length!==a);n=!0);}catch(I){r=!0,d=I}finally{try{!n&&E.return&&E.return()}finally{if(r)throw d}}return h}(fe,a);throw new TypeError("Invalid attempt to destructure non-iterable instance")},S=function(){function oe(fe,a){for(var h=0;h<a.length;h++){var n=a[h];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(fe,n.key,n)}}return function(fe,a,h){return a&&oe(fe.prototype,a),h&&oe(fe,h),fe}}(),k=N(g(3)),m=N(g(2)),u=N(g(0)),T=N(g(5)),O=N(g(10)),A=N(g(9)),c=g(36),P=g(37),q=N(g(13)),o=g(26),y=g(38),_=g(39),R=g(40);function N(oe){return oe&&oe.__esModule?oe:{default:oe}}function W(oe,fe,a){return fe in oe?Object.defineProperty(oe,fe,{value:a,enumerable:!0,configurable:!0,writable:!0}):oe[fe]=a,oe}var te=(0,O.default)("quill:clipboard"),ge="__ql-matcher",Q=[[Node.TEXT_NODE,ae],[Node.TEXT_NODE,ot],["br",function Ue(oe,fe){return Se(fe,"\n")||fe.insert("\n"),fe}],[Node.ELEMENT_NODE,ot],[Node.ELEMENT_NODE,we],[Node.ELEMENT_NODE,Ot],[Node.ELEMENT_NODE,Oe],[Node.ELEMENT_NODE,function Et(oe,fe){var a={},h=oe.style||{};return h.fontStyle&&"italic"===me(oe).fontStyle&&(a.italic=!0),h.fontWeight&&(me(oe).fontWeight.startsWith("bold")||parseInt(me(oe).fontWeight)>=700)&&(a.bold=!0),Object.keys(a).length>0&&(fe=de(fe,a)),parseFloat(h.textIndent||0)>0&&(fe=(new m.default).insert("\t").concat(fe)),fe}],["li",function it(oe,fe){var a=u.default.query(oe);if(null==a||"list-item"!==a.blotName||!Se(fe,"\n"))return fe;for(var h=-1,n=oe.parentNode;!n.classList.contains("ql-clipboard");)"list"===(u.default.query(n)||{}).blotName&&(h+=1),n=n.parentNode;return h<=0?fe:fe.compose((new m.default).retain(fe.length()-1).retain(1,{indent:h}))}],["b",Re.bind(Re,"bold")],["i",Re.bind(Re,"italic")],["style",function tt(){return new m.default}]],J=[c.AlignAttribute,y.DirectionAttribute].reduce(function(oe,fe){return oe[fe.keyName]=fe,oe},{}),U=[c.AlignStyle,P.BackgroundStyle,o.ColorStyle,y.DirectionStyle,_.FontStyle,R.SizeStyle].reduce(function(oe,fe){return oe[fe.keyName]=fe,oe},{}),se=function(oe){function fe(a,h){!function G(oe,fe){if(!(oe instanceof fe))throw new TypeError("Cannot call a class as a function")}(this,fe);var n=function ne(oe,fe){if(!oe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!fe||"object"!=typeof fe&&"function"!=typeof fe?oe:fe}(this,(fe.__proto__||Object.getPrototypeOf(fe)).call(this,a,h));return n.quill.root.addEventListener("paste",n.onPaste.bind(n)),n.container=n.quill.addContainer("ql-clipboard"),n.container.setAttribute("contenteditable",!0),n.container.setAttribute("tabindex",-1),n.matchers=[],Q.concat(n.options.matchers).forEach(function(r){var d=l(r,2),F=d[1];!h.matchVisual&&F===Ot||n.addMatcher(d[0],F)}),n}return function Z(oe,fe){if("function"!=typeof fe&&null!==fe)throw new TypeError("Super expression must either be null or a function, not "+typeof fe);oe.prototype=Object.create(fe&&fe.prototype,{constructor:{value:oe,enumerable:!1,writable:!0,configurable:!0}}),fe&&(Object.setPrototypeOf?Object.setPrototypeOf(oe,fe):oe.__proto__=fe)}(fe,oe),S(fe,[{key:"addMatcher",value:function(h,n){this.matchers.push([h,n])}},{key:"convert",value:function(h){if("string"==typeof h)return this.container.innerHTML=h.replace(/\>\r?\n +\</g,"><"),this.convert();var n=this.quill.getFormat(this.quill.selection.savedRange.index);if(n[q.default.blotName]){var r=this.container.innerText;return this.container.innerHTML="",(new m.default).insert(r,W({},q.default.blotName,n[q.default.blotName]))}var d=this.prepareMatching(),E=l(d,2),Y=xe(this.container,E[0],E[1]);return Se(Y,"\n")&&null==Y.ops[Y.ops.length-1].attributes&&(Y=Y.compose((new m.default).retain(Y.length()-1).delete(1))),te.log("convert",this.container.innerHTML,Y),this.container.innerHTML="",Y}},{key:"dangerouslyPasteHTML",value:function(h,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:T.default.sources.API;if("string"==typeof h)this.quill.setContents(this.convert(h),n),this.quill.setSelection(0,T.default.sources.SILENT);else{var d=this.convert(n);this.quill.updateContents((new m.default).retain(h).concat(d),r),this.quill.setSelection(h+d.length(),T.default.sources.SILENT)}}},{key:"onPaste",value:function(h){var n=this;if(!h.defaultPrevented&&this.quill.isEnabled()){var r=this.quill.getSelection(),d=(new m.default).retain(r.index),E=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(T.default.sources.SILENT),setTimeout(function(){d=d.concat(n.convert()).delete(r.length),n.quill.updateContents(d,T.default.sources.USER),n.quill.setSelection(d.length()-r.length,T.default.sources.SILENT),n.quill.scrollingContainer.scrollTop=E,n.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var h=this,n=[],r=[];return this.matchers.forEach(function(d){var E=l(d,2),F=E[0],I=E[1];switch(F){case Node.TEXT_NODE:r.push(I);break;case Node.ELEMENT_NODE:n.push(I);break;default:[].forEach.call(h.container.querySelectorAll(F),function(Y){Y[ge]=Y[ge]||[],Y[ge].push(I)})}}),[n,r]}}]),fe}(A.default);function de(oe,fe,a){return"object"===(void 0===fe?"undefined":j(fe))?Object.keys(fe).reduce(function(h,n){return de(h,n,fe[n])},oe):oe.reduce(function(h,n){return n.attributes&&n.attributes[fe]?h.push(n):h.insert(n.insert,(0,k.default)({},W({},fe,a),n.attributes))},new m.default)}function me(oe){if(oe.nodeType!==Node.ELEMENT_NODE)return{};var fe="__ql-computed-style";return oe[fe]||(oe[fe]=window.getComputedStyle(oe))}function Se(oe,fe){for(var a="",h=oe.ops.length-1;h>=0&&a.length<fe.length;--h){var n=oe.ops[h];if("string"!=typeof n.insert)break;a=n.insert+a}return a.slice(-1*fe.length)===fe}function ce(oe){if(0===oe.childNodes.length)return!1;var fe=me(oe);return["block","list-item"].indexOf(fe.display)>-1}function xe(oe,fe,a){return oe.nodeType===oe.TEXT_NODE?a.reduce(function(h,n){return n(oe,h)},new m.default):oe.nodeType===oe.ELEMENT_NODE?[].reduce.call(oe.childNodes||[],function(h,n){var r=xe(n,fe,a);return n.nodeType===oe.ELEMENT_NODE&&(r=fe.reduce(function(d,E){return E(n,d)},r),r=(n[ge]||[]).reduce(function(d,E){return E(n,d)},r)),h.concat(r)},new m.default):new m.default}function Re(oe,fe,a){return de(a,oe,!0)}function Oe(oe,fe){var a=u.default.Attributor.Attribute.keys(oe),h=u.default.Attributor.Class.keys(oe),n=u.default.Attributor.Style.keys(oe),r={};return a.concat(h).concat(n).forEach(function(d){var E=u.default.query(d,u.default.Scope.ATTRIBUTE);null!=E&&(r[E.attrName]=E.value(oe),r[E.attrName])||(null!=(E=J[d])&&(E.attrName===d||E.keyName===d)&&(r[E.attrName]=E.value(oe)||void 0),null!=(E=U[d])&&(E.attrName===d||E.keyName===d)&&(r[(E=U[d]).attrName]=E.value(oe)||void 0))}),Object.keys(r).length>0&&(fe=de(fe,r)),fe}function we(oe,fe){var a=u.default.query(oe);if(null==a)return fe;if(a.prototype instanceof u.default.Embed){var h={},n=a.value(oe);null!=n&&(h[a.blotName]=n,fe=(new m.default).insert(h,a.formats(oe)))}else"function"==typeof a.formats&&(fe=de(fe,a.blotName,a.formats(oe)));return fe}function ot(oe,fe){return Se(fe,"\n")||(ce(oe)||fe.length()>0&&oe.nextSibling&&ce(oe.nextSibling))&&fe.insert("\n"),fe}function Ot(oe,fe){if(ce(oe)&&null!=oe.nextElementSibling&&!Se(fe,"\n\n")){var a=oe.offsetHeight+parseFloat(me(oe).marginTop)+parseFloat(me(oe).marginBottom);oe.nextElementSibling.offsetTop>oe.offsetTop+1.5*a&&fe.insert("\n")}return fe}function ae(oe,fe){var a=oe.data;if("O:P"===oe.parentNode.tagName)return fe.insert(a.trim());if(0===a.trim().length&&oe.parentNode.classList.contains("ql-clipboard"))return fe;if(!me(oe.parentNode).whiteSpace.startsWith("pre")){var h=function(r,d){return(d=d.replace(/[^\u00a0]/g,"")).length<1&&r?" ":d};a=(a=a.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,h.bind(h,!0)),(null==oe.previousSibling&&ce(oe.parentNode)||null!=oe.previousSibling&&ce(oe.previousSibling))&&(a=a.replace(/^\s+/,h.bind(h,!1))),(null==oe.nextSibling&&ce(oe.parentNode)||null!=oe.nextSibling&&ce(oe.nextSibling))&&(a=a.replace(/\s+$/,h.bind(h,!1)))}return fe.insert(a)}se.DEFAULTS={matchers:[],matchVisual:!0},f.default=se,f.matchAttributor=Oe,f.matchBlot=we,f.matchNewline=ot,f.matchSpacing=Ot,f.matchText=ae},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0});var j=function(){function C(T,M){for(var O=0;O<M.length;O++){var b=M[O];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(T,b.key,b)}}return function(T,M,O){return M&&C(T.prototype,M),O&&C(T,O),T}}(),l=function C(T,M,O){null===T&&(T=Function.prototype);var b=Object.getOwnPropertyDescriptor(T,M);if(void 0===b){var A=Object.getPrototypeOf(T);return null===A?void 0:C(A,M,O)}if("value"in b)return b.value;var c=b.get;return void 0===c?void 0:c.call(O)};function p(C,T){if(!(C instanceof T))throw new TypeError("Cannot call a class as a function")}function m(C,T){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!T||"object"!=typeof T&&"function"!=typeof T?C:T}var u=function(C){function T(){return p(this,T),m(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}return function v(C,T){if("function"!=typeof T&&null!==T)throw new TypeError("Super expression must either be null or a function, not "+typeof T);C.prototype=Object.create(T&&T.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(C,T):C.__proto__=T)}(T,C),j(T,[{key:"optimize",value:function(O){l(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"optimize",this).call(this,O),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return l(T.__proto__||Object.getPrototypeOf(T),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),T}(function k(C){return C&&C.__esModule?C:{default:C}}(g(6)).default);u.blotName="bold",u.tagName=["STRONG","B"],f.default=u},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.addControls=f.default=void 0;var j=function(N,W){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return function R(N,W){var G=[],ne=!0,Z=!1,te=void 0;try{for(var Q,ge=N[Symbol.iterator]();!(ne=(Q=ge.next()).done)&&(G.push(Q.value),!W||G.length!==W);ne=!0);}catch(J){Z=!0,te=J}finally{try{!ne&&ge.return&&ge.return()}finally{if(Z)throw te}}return G}(N,W);throw new TypeError("Invalid attempt to destructure non-iterable instance")},l=function(){function R(N,W){for(var G=0;G<W.length;G++){var ne=W[G];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(N,ne.key,ne)}}return function(N,W,G){return W&&R(N.prototype,W),G&&R(N,G),N}}(),w=O(g(2)),p=O(g(0)),v=O(g(5)),C=O(g(10)),M=O(g(9));function O(R){return R&&R.__esModule?R:{default:R}}function c(R,N){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!N||"object"!=typeof N&&"function"!=typeof N?R:N}var B=(0,C.default)("quill:toolbar"),q=function(R){function N(W,G){!function A(R,N){if(!(R instanceof N))throw new TypeError("Cannot call a class as a function")}(this,N);var te,ne=c(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,W,G));if(Array.isArray(ne.options.container)){var Z=document.createElement("div");y(Z,ne.options.container),W.container.parentNode.insertBefore(Z,W.container),ne.container=Z}else ne.container="string"==typeof ne.options.container?document.querySelector(ne.options.container):ne.options.container;return ne.container instanceof HTMLElement?(ne.container.classList.add("ql-toolbar"),ne.controls=[],ne.handlers={},Object.keys(ne.options.handlers).forEach(function(ge){ne.addHandler(ge,ne.options.handlers[ge])}),[].forEach.call(ne.container.querySelectorAll("button, select"),function(ge){ne.attach(ge)}),ne.quill.on(v.default.events.EDITOR_CHANGE,function(ge,Q){ge===v.default.events.SELECTION_CHANGE&&ne.update(Q)}),ne.quill.on(v.default.events.SCROLL_OPTIMIZE,function(){var ge=ne.quill.selection.getRange(),Q=j(ge,1);ne.update(Q[0])}),ne):(te=B.error("Container required for toolbar",ne.options),c(ne,te))}return function P(R,N){if("function"!=typeof N&&null!==N)throw new TypeError("Super expression must either be null or a function, not "+typeof N);R.prototype=Object.create(N&&N.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(R,N):R.__proto__=N)}(N,R),l(N,[{key:"addHandler",value:function(G,ne){this.handlers[G]=ne}},{key:"attach",value:function(G){var ne=this,Z=[].find.call(G.classList,function(ge){return 0===ge.indexOf("ql-")});if(Z){if(Z=Z.slice(3),"BUTTON"===G.tagName&&G.setAttribute("type","button"),null==this.handlers[Z]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[Z])return void B.warn("ignoring attaching to disabled format",Z,G);if(null==p.default.query(Z))return void B.warn("ignoring attaching to nonexistent format",Z,G)}G.addEventListener("SELECT"===G.tagName?"change":"click",function(ge){var Q=void 0;if("SELECT"===G.tagName){if(G.selectedIndex<0)return;var J=G.options[G.selectedIndex];Q=!J.hasAttribute("selected")&&(J.value||!1)}else Q=!G.classList.contains("ql-active")&&(G.value||!G.hasAttribute("value")),ge.preventDefault();ne.quill.focus();var U=ne.quill.selection.getRange(),de=j(U,1)[0];if(null!=ne.handlers[Z])ne.handlers[Z].call(ne,Q);else if(p.default.query(Z).prototype instanceof p.default.Embed){if(!(Q=prompt("Enter "+Z)))return;ne.quill.updateContents((new w.default).retain(de.index).delete(de.length).insert(function b(R,N,W){return N in R?Object.defineProperty(R,N,{value:W,enumerable:!0,configurable:!0,writable:!0}):R[N]=W,R}({},Z,Q)),v.default.sources.USER)}else ne.quill.format(Z,Q,v.default.sources.USER);ne.update(de)}),this.controls.push([Z,G])}}},{key:"update",value:function(G){var ne=null==G?{}:this.quill.getFormat(G);this.controls.forEach(function(Z){var te=j(Z,2),ge=te[0],Q=te[1];if("SELECT"===Q.tagName){var J=void 0;if(null==G)J=null;else if(null==ne[ge])J=Q.querySelector("option[selected]");else if(!Array.isArray(ne[ge])){var U=ne[ge];"string"==typeof U&&(U=U.replace(/\"/g,'\\"')),J=Q.querySelector('option[value="'+U+'"]')}null==J?(Q.value="",Q.selectedIndex=-1):J.selected=!0}else if(null==G)Q.classList.remove("ql-active");else if(Q.hasAttribute("value")){var se=ne[ge]===Q.getAttribute("value")||null!=ne[ge]&&ne[ge].toString()===Q.getAttribute("value")||null==ne[ge]&&!Q.getAttribute("value");Q.classList.toggle("ql-active",se)}else Q.classList.toggle("ql-active",null!=ne[ge])})}}]),N}(M.default);function o(R,N,W){var G=document.createElement("button");G.setAttribute("type","button"),G.classList.add("ql-"+N),null!=W&&(G.value=W),R.appendChild(G)}function y(R,N){Array.isArray(N[0])||(N=[N]),N.forEach(function(W){var G=document.createElement("span");G.classList.add("ql-formats"),W.forEach(function(ne){if("string"==typeof ne)o(G,ne);else{var Z=Object.keys(ne)[0],te=ne[Z];Array.isArray(te)?function _(R,N,W){var G=document.createElement("select");G.classList.add("ql-"+N),W.forEach(function(ne){var Z=document.createElement("option");!1!==ne?Z.setAttribute("value",ne):Z.setAttribute("selected","selected"),G.appendChild(Z)}),R.appendChild(G)}(G,Z,te):o(G,Z,te)}}),R.appendChild(G)})}q.DEFAULTS={},q.DEFAULTS={container:null,handlers:{clean:function(){var N=this,W=this.quill.getSelection();if(null!=W)if(0==W.length){var G=this.quill.getFormat();Object.keys(G).forEach(function(ne){null!=p.default.query(ne,p.default.Scope.INLINE)&&N.quill.format(ne,!1)})}else this.quill.removeFormat(W,v.default.sources.USER)},direction:function(N){var W=this.quill.getFormat().align;"rtl"===N&&null==W?this.quill.format("align","right",v.default.sources.USER):!N&&"right"===W&&this.quill.format("align",!1,v.default.sources.USER),this.quill.format("direction",N,v.default.sources.USER)},indent:function(N){var W=this.quill.getSelection(),G=this.quill.getFormat(W),ne=parseInt(G.indent||0);if("+1"===N||"-1"===N){var Z="+1"===N?1:-1;"rtl"===G.direction&&(Z*=-1),this.quill.format("indent",ne+Z,v.default.sources.USER)}},link:function(N){!0===N&&(N=prompt("Enter link URL:")),this.quill.format("link",N,v.default.sources.USER)},list:function(N){var W=this.quill.getSelection(),G=this.quill.getFormat(W);this.quill.format("list","check"===N?"checked"!==G.list&&"unchecked"!==G.list&&"unchecked":N,v.default.sources.USER)}}},f.default=q,f.addControls=y},function(i,f){i.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0});var j=function(){function C(T,M){for(var O=0;O<M.length;O++){var b=M[O];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(T,b.key,b)}}return function(T,M,O){return M&&C(T.prototype,M),O&&C(T,O),T}}(),l=function C(T,M,O){null===T&&(T=Function.prototype);var b=Object.getOwnPropertyDescriptor(T,M);if(void 0===b){var A=Object.getPrototypeOf(T);return null===A?void 0:C(A,M,O)}if("value"in b)return b.value;var c=b.get;return void 0===c?void 0:c.call(O)},u=function(C){function T(M,O){!function p(C,T){if(!(C instanceof T))throw new TypeError("Cannot call a class as a function")}(this,T);var b=function m(C,T){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!T||"object"!=typeof T&&"function"!=typeof T?C:T}(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,M));return b.label.innerHTML=O,b.container.classList.add("ql-color-picker"),[].slice.call(b.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(A){A.classList.add("ql-primary")}),b}return function v(C,T){if("function"!=typeof T&&null!==T)throw new TypeError("Super expression must either be null or a function, not "+typeof T);C.prototype=Object.create(T&&T.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(C,T):C.__proto__=T)}(T,C),j(T,[{key:"buildItem",value:function(O){var b=l(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"buildItem",this).call(this,O);return b.style.backgroundColor=O.getAttribute("value")||"",b}},{key:"selectItem",value:function(O,b){l(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"selectItem",this).call(this,O,b);var A=this.label.querySelector(".ql-color-label"),c=O&&O.getAttribute("data-value")||"";A&&("line"===A.tagName?A.style.stroke=c:A.style.fill=c)}}]),T}(function k(C){return C&&C.__esModule?C:{default:C}}(g(28)).default);f.default=u},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0});var j=function(){function C(T,M){for(var O=0;O<M.length;O++){var b=M[O];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(T,b.key,b)}}return function(T,M,O){return M&&C(T.prototype,M),O&&C(T,O),T}}(),l=function C(T,M,O){null===T&&(T=Function.prototype);var b=Object.getOwnPropertyDescriptor(T,M);if(void 0===b){var A=Object.getPrototypeOf(T);return null===A?void 0:C(A,M,O)}if("value"in b)return b.value;var c=b.get;return void 0===c?void 0:c.call(O)},u=function(C){function T(M,O){!function p(C,T){if(!(C instanceof T))throw new TypeError("Cannot call a class as a function")}(this,T);var b=function m(C,T){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!T||"object"!=typeof T&&"function"!=typeof T?C:T}(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,M));return b.container.classList.add("ql-icon-picker"),[].forEach.call(b.container.querySelectorAll(".ql-picker-item"),function(A){A.innerHTML=O[A.getAttribute("data-value")||""]}),b.defaultItem=b.container.querySelector(".ql-selected"),b.selectItem(b.defaultItem),b}return function v(C,T){if("function"!=typeof T&&null!==T)throw new TypeError("Super expression must either be null or a function, not "+typeof T);C.prototype=Object.create(T&&T.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(C,T):C.__proto__=T)}(T,C),j(T,[{key:"selectItem",value:function(O,b){l(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"selectItem",this).call(this,O,b),this.label.innerHTML=(O=O||this.defaultItem).innerHTML}}]),T}(function k(C){return C&&C.__esModule?C:{default:C}}(g(28)).default);f.default=u},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0});var j=function(){function w(k,p){for(var m=0;m<p.length;m++){var v=p[m];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(k,v.key,v)}}return function(k,p,m){return p&&w(k.prototype,p),m&&w(k,m),k}}(),S=function(){function w(k,p){var m=this;(function l(w,k){if(!(w instanceof k))throw new TypeError("Cannot call a class as a function")})(this,w),this.quill=k,this.boundsContainer=p||document.body,this.root=k.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){m.root.style.marginTop=-1*m.quill.root.scrollTop+"px"}),this.hide()}return j(w,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(p){var m=p.left+p.width/2-this.root.offsetWidth/2,v=p.bottom+this.quill.root.scrollTop;this.root.style.left=m+"px",this.root.style.top=v+"px",this.root.classList.remove("ql-flip");var u=this.boundsContainer.getBoundingClientRect(),C=this.root.getBoundingClientRect(),T=0;return C.right>u.right&&(this.root.style.left=m+(T=u.right-C.right)+"px"),C.left<u.left&&(this.root.style.left=m+(T=u.left-C.left)+"px"),C.bottom>u.bottom&&(this.root.style.top=v-(p.bottom-p.top+(C.bottom-C.top))+"px",this.root.classList.add("ql-flip")),T}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),w}();f.default=S},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0});var l=function _(R,N,W){null===R&&(R=Function.prototype);var G=Object.getOwnPropertyDescriptor(R,N);if(void 0===G){var ne=Object.getPrototypeOf(R);return null===ne?void 0:_(ne,N,W)}if("value"in G)return G.value;var Z=G.get;return void 0===Z?void 0:Z.call(W)},S=function(){function _(R,N){for(var W=0;W<N.length;W++){var G=N[W];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(R,G.key,G)}}return function(R,N,W){return N&&_(R.prototype,N),W&&_(R,W),R}}(),k=A(g(3)),m=A(g(8)),v=g(43),u=A(v),T=A(g(27)),M=g(15),b=A(g(41));function A(_){return _&&_.__esModule?_:{default:_}}function c(_,R){if(!(_ instanceof R))throw new TypeError("Cannot call a class as a function")}function P(_,R){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!R||"object"!=typeof R&&"function"!=typeof R?_:R}function B(_,R){if("function"!=typeof R&&null!==R)throw new TypeError("Super expression must either be null or a function, not "+typeof R);_.prototype=Object.create(R&&R.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),R&&(Object.setPrototypeOf?Object.setPrototypeOf(_,R):_.__proto__=R)}var q=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],o=function(_){function R(N,W){c(this,R),null!=W.modules.toolbar&&null==W.modules.toolbar.container&&(W.modules.toolbar.container=q);var G=P(this,(R.__proto__||Object.getPrototypeOf(R)).call(this,N,W));return G.quill.container.classList.add("ql-snow"),G}return B(R,_),S(R,[{key:"extendToolbar",value:function(W){W.container.classList.add("ql-snow"),this.buildButtons([].slice.call(W.container.querySelectorAll("button")),b.default),this.buildPickers([].slice.call(W.container.querySelectorAll("select")),b.default),this.tooltip=new y(this.quill,this.options.bounds),W.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(G,ne){W.handlers.link.call(W,!ne.format.link)})}}]),R}(u.default);o.DEFAULTS=(0,k.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(R){if(R){var N=this.quill.getSelection();if(null==N||0==N.length)return;var W=this.quill.getText(N);/^\S+@\S+\.\S+$/.test(W)&&0!==W.indexOf("mailto:")&&(W="mailto:"+W),this.quill.theme.tooltip.edit("link",W)}else this.quill.format("link",!1)}}}}});var y=function(_){function R(N,W){c(this,R);var G=P(this,(R.__proto__||Object.getPrototypeOf(R)).call(this,N,W));return G.preview=G.root.querySelector("a.ql-preview"),G}return B(R,_),S(R,[{key:"listen",value:function(){var W=this;l(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(G){W.root.classList.contains("ql-editing")?W.save():W.edit("link",W.preview.textContent),G.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(G){if(null!=W.linkRange){var ne=W.linkRange;W.restoreFocus(),W.quill.formatText(ne,"link",!1,m.default.sources.USER),delete W.linkRange}G.preventDefault(),W.hide()}),this.quill.on(m.default.events.SELECTION_CHANGE,function(G,ne,Z){if(null!=G){if(0===G.length&&Z===m.default.sources.USER){var ge=function(R,N){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return function _(R,N){var W=[],G=!0,ne=!1,Z=void 0;try{for(var ge,te=R[Symbol.iterator]();!(G=(ge=te.next()).done)&&(W.push(ge.value),!N||W.length!==N);G=!0);}catch(Q){ne=!0,Z=Q}finally{try{!G&&te.return&&te.return()}finally{if(ne)throw Z}}return W}(R,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(W.quill.scroll.descendant(T.default,G.index),2),Q=ge[0];if(null!=Q){W.linkRange=new M.Range(G.index-ge[1],Q.length());var U=T.default.formats(Q.domNode);return W.preview.textContent=U,W.preview.setAttribute("href",U),W.show(),void W.position(W.quill.getBounds(W.linkRange))}}else delete W.linkRange;W.hide()}})}},{key:"show",value:function(){l(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),R}(v.BaseTooltip);y.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),f.default=o},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0});var l=n(g(29)),S=g(36),w=g(38),k=g(64),m=n(g(65)),u=n(g(66)),C=g(67),T=n(C),M=g(37),O=g(26),b=g(39),A=g(40),P=n(g(56)),q=n(g(68)),y=n(g(27)),R=n(g(69)),W=n(g(70)),ne=n(g(71)),te=n(g(72)),Q=n(g(73)),J=g(13),U=n(J),de=n(g(74)),Se=n(g(75)),xe=n(g(57)),Oe=n(g(41)),Ue=n(g(28)),it=n(g(59)),Ot=n(g(60)),ae=n(g(61)),fe=n(g(108)),h=n(g(62));function n(r){return r&&r.__esModule?r:{default:r}}l.default.register({"attributors/attribute/direction":w.DirectionAttribute,"attributors/class/align":S.AlignClass,"attributors/class/background":M.BackgroundClass,"attributors/class/color":O.ColorClass,"attributors/class/direction":w.DirectionClass,"attributors/class/font":b.FontClass,"attributors/class/size":A.SizeClass,"attributors/style/align":S.AlignStyle,"attributors/style/background":M.BackgroundStyle,"attributors/style/color":O.ColorStyle,"attributors/style/direction":w.DirectionStyle,"attributors/style/font":b.FontStyle,"attributors/style/size":A.SizeStyle},!0),l.default.register({"formats/align":S.AlignClass,"formats/direction":w.DirectionClass,"formats/indent":k.IndentClass,"formats/background":M.BackgroundStyle,"formats/color":O.ColorStyle,"formats/font":b.FontClass,"formats/size":A.SizeClass,"formats/blockquote":m.default,"formats/code-block":U.default,"formats/header":u.default,"formats/list":T.default,"formats/bold":P.default,"formats/code":J.Code,"formats/italic":q.default,"formats/link":y.default,"formats/script":R.default,"formats/strike":W.default,"formats/underline":ne.default,"formats/image":te.default,"formats/video":Q.default,"formats/list/item":C.ListItem,"modules/formula":de.default,"modules/syntax":Se.default,"modules/toolbar":xe.default,"themes/bubble":fe.default,"themes/snow":h.default,"ui/icons":Oe.default,"ui/picker":Ue.default,"ui/icon-picker":Ot.default,"ui/color-picker":it.default,"ui/tooltip":ae.default},!0),f.default=l.default},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.IndentClass=void 0;var j=function(){function T(M,O){for(var b=0;b<O.length;b++){var A=O[b];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(M,A.key,A)}}return function(M,O,b){return O&&T(M.prototype,O),b&&T(M,b),M}}(),l=function T(M,O,b){null===M&&(M=Function.prototype);var A=Object.getOwnPropertyDescriptor(M,O);if(void 0===A){var c=Object.getPrototypeOf(M);return null===c?void 0:T(c,O,b)}if("value"in A)return A.value;var P=A.get;return void 0===P?void 0:P.call(b)},w=function k(T){return T&&T.__esModule?T:{default:T}}(g(0));function p(T,M){if(!(T instanceof M))throw new TypeError("Cannot call a class as a function")}function m(T,M){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!M||"object"!=typeof M&&"function"!=typeof M?T:M}var u=function(T){function M(){return p(this,M),m(this,(M.__proto__||Object.getPrototypeOf(M)).apply(this,arguments))}return function v(T,M){if("function"!=typeof M&&null!==M)throw new TypeError("Super expression must either be null or a function, not "+typeof M);T.prototype=Object.create(M&&M.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(T,M):T.__proto__=M)}(M,T),j(M,[{key:"add",value:function(b,A){if("+1"===A||"-1"===A){var c=this.value(b)||0;A="+1"===A?c+1:c-1}return 0===A?(this.remove(b),!0):l(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"add",this).call(this,b,A)}},{key:"canAdd",value:function(b,A){return l(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"canAdd",this).call(this,b,A)||l(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"canAdd",this).call(this,b,parseInt(A))}},{key:"value",value:function(b){return parseInt(l(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"value",this).call(this,b))||void 0}}]),M}(w.default.Attributor.Class),C=new u("indent","ql-indent",{scope:w.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});f.IndentClass=C},function(i,f,g){"use strict";function w(v,u){if(!(v instanceof u))throw new TypeError("Cannot call a class as a function")}function k(v,u){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!u||"object"!=typeof u&&"function"!=typeof u?v:u}Object.defineProperty(f,"__esModule",{value:!0});var m=function(v){function u(){return w(this,u),k(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return function p(v,u){if("function"!=typeof u&&null!==u)throw new TypeError("Super expression must either be null or a function, not "+typeof u);v.prototype=Object.create(u&&u.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(v,u):v.__proto__=u)}(u,v),u}(function S(v){return v&&v.__esModule?v:{default:v}}(g(4)).default);m.blotName="blockquote",m.tagName="blockquote",f.default=m},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0});var j=function(){function u(C,T){for(var M=0;M<T.length;M++){var O=T[M];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(C,O.key,O)}}return function(C,T,M){return T&&u(C.prototype,T),M&&u(C,M),C}}();function k(u,C){if(!(u instanceof C))throw new TypeError("Cannot call a class as a function")}function p(u,C){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!C||"object"!=typeof C&&"function"!=typeof C?u:C}var v=function(u){function C(){return k(this,C),p(this,(C.__proto__||Object.getPrototypeOf(C)).apply(this,arguments))}return function m(u,C){if("function"!=typeof C&&null!==C)throw new TypeError("Super expression must either be null or a function, not "+typeof C);u.prototype=Object.create(C&&C.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(u,C):u.__proto__=C)}(C,u),j(C,null,[{key:"formats",value:function(M){return this.tagName.indexOf(M.tagName)+1}}]),C}(function w(u){return u&&u.__esModule?u:{default:u}}(g(4)).default);v.blotName="header",v.tagName=["H1","H2","H3","H4","H5","H6"],f.default=v},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.default=f.ListItem=void 0;var j=function(){function c(P,B){for(var q=0;q<B.length;q++){var o=B[q];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(P,o.key,o)}}return function(P,B,q){return B&&c(P.prototype,B),q&&c(P,q),P}}(),l=function c(P,B,q){null===P&&(P=Function.prototype);var o=Object.getOwnPropertyDescriptor(P,B);if(void 0===o){var y=Object.getPrototypeOf(P);return null===y?void 0:c(y,B,q)}if("value"in o)return o.value;var _=o.get;return void 0===_?void 0:_.call(q)},w=u(g(0)),p=u(g(4)),v=u(g(25));function u(c){return c&&c.__esModule?c:{default:c}}function T(c,P){if(!(c instanceof P))throw new TypeError("Cannot call a class as a function")}function M(c,P){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!P||"object"!=typeof P&&"function"!=typeof P?c:P}function O(c,P){if("function"!=typeof P&&null!==P)throw new TypeError("Super expression must either be null or a function, not "+typeof P);c.prototype=Object.create(P&&P.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(c,P):c.__proto__=P)}var b=function(c){function P(){return T(this,P),M(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return O(P,c),j(P,[{key:"format",value:function(q,o){q!==A.blotName||o?l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"format",this).call(this,q,o):this.replaceWith(w.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(q,o){return this.parent.isolate(this.offset(this.parent),this.length()),q===this.parent.statics.blotName?(this.parent.replaceWith(q,o),this):(this.parent.unwrap(),l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"replaceWith",this).call(this,q,o))}}],[{key:"formats",value:function(q){return q.tagName===this.tagName?void 0:l(P.__proto__||Object.getPrototypeOf(P),"formats",this).call(this,q)}}]),P}(p.default);b.blotName="list-item",b.tagName="LI";var A=function(c){function P(B){T(this,P);var q=M(this,(P.__proto__||Object.getPrototypeOf(P)).call(this,B)),o=function(_){if(_.target.parentNode===B){var R=q.statics.formats(B),N=w.default.find(_.target);"checked"===R?N.format("list","unchecked"):"unchecked"===R&&N.format("list","checked")}};return B.addEventListener("touchstart",o),B.addEventListener("mousedown",o),q}return O(P,c),j(P,null,[{key:"create",value:function(q){var o="ordered"===q?"OL":"UL",y=l(P.__proto__||Object.getPrototypeOf(P),"create",this).call(this,o);return("checked"===q||"unchecked"===q)&&y.setAttribute("data-checked","checked"===q),y}},{key:"formats",value:function(q){return"OL"===q.tagName?"ordered":"UL"===q.tagName?q.hasAttribute("data-checked")?"true"===q.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),j(P,[{key:"format",value:function(q,o){this.children.length>0&&this.children.tail.format(q,o)}},{key:"formats",value:function(){return function C(c,P,B){return P in c?Object.defineProperty(c,P,{value:B,enumerable:!0,configurable:!0,writable:!0}):c[P]=B,c}({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(q,o){if(q instanceof b)l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"insertBefore",this).call(this,q,o);else{var y=null==o?this.length():o.offset(this),_=this.split(y);_.parent.insertBefore(q,_)}}},{key:"optimize",value:function(q){l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"optimize",this).call(this,q);var o=this.next;null!=o&&o.prev===this&&o.statics.blotName===this.statics.blotName&&o.domNode.tagName===this.domNode.tagName&&o.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(o.moveChildren(this),o.remove())}},{key:"replace",value:function(q){if(q.statics.blotName!==this.statics.blotName){var o=w.default.create(this.statics.defaultChild);q.moveChildren(o),this.appendChild(o)}l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"replace",this).call(this,q)}}]),P}(v.default);A.blotName="list",A.scope=w.default.Scope.BLOCK_BLOT,A.tagName=["OL","UL"],A.defaultChild="list-item",A.allowedChildren=[b],f.ListItem=b,f.default=A},function(i,f,g){"use strict";function w(v,u){if(!(v instanceof u))throw new TypeError("Cannot call a class as a function")}function k(v,u){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!u||"object"!=typeof u&&"function"!=typeof u?v:u}Object.defineProperty(f,"__esModule",{value:!0});var m=function(v){function u(){return w(this,u),k(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return function p(v,u){if("function"!=typeof u&&null!==u)throw new TypeError("Super expression must either be null or a function, not "+typeof u);v.prototype=Object.create(u&&u.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(v,u):v.__proto__=u)}(u,v),u}(function S(v){return v&&v.__esModule?v:{default:v}}(g(56)).default);m.blotName="italic",m.tagName=["EM","I"],f.default=m},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0});var j=function(){function C(T,M){for(var O=0;O<M.length;O++){var b=M[O];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(T,b.key,b)}}return function(T,M,O){return M&&C(T.prototype,M),O&&C(T,O),T}}(),l=function C(T,M,O){null===T&&(T=Function.prototype);var b=Object.getOwnPropertyDescriptor(T,M);if(void 0===b){var A=Object.getPrototypeOf(T);return null===A?void 0:C(A,M,O)}if("value"in b)return b.value;var c=b.get;return void 0===c?void 0:c.call(O)};function p(C,T){if(!(C instanceof T))throw new TypeError("Cannot call a class as a function")}function m(C,T){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!T||"object"!=typeof T&&"function"!=typeof T?C:T}var u=function(C){function T(){return p(this,T),m(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}return function v(C,T){if("function"!=typeof T&&null!==T)throw new TypeError("Super expression must either be null or a function, not "+typeof T);C.prototype=Object.create(T&&T.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(C,T):C.__proto__=T)}(T,C),j(T,null,[{key:"create",value:function(O){return"super"===O?document.createElement("sup"):"sub"===O?document.createElement("sub"):l(T.__proto__||Object.getPrototypeOf(T),"create",this).call(this,O)}},{key:"formats",value:function(O){return"SUB"===O.tagName?"sub":"SUP"===O.tagName?"super":void 0}}]),T}(function k(C){return C&&C.__esModule?C:{default:C}}(g(6)).default);u.blotName="script",u.tagName=["SUB","SUP"],f.default=u},function(i,f,g){"use strict";function w(v,u){if(!(v instanceof u))throw new TypeError("Cannot call a class as a function")}function k(v,u){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!u||"object"!=typeof u&&"function"!=typeof u?v:u}Object.defineProperty(f,"__esModule",{value:!0});var m=function(v){function u(){return w(this,u),k(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return function p(v,u){if("function"!=typeof u&&null!==u)throw new TypeError("Super expression must either be null or a function, not "+typeof u);v.prototype=Object.create(u&&u.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(v,u):v.__proto__=u)}(u,v),u}(function S(v){return v&&v.__esModule?v:{default:v}}(g(6)).default);m.blotName="strike",m.tagName="S",f.default=m},function(i,f,g){"use strict";function w(v,u){if(!(v instanceof u))throw new TypeError("Cannot call a class as a function")}function k(v,u){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!u||"object"!=typeof u&&"function"!=typeof u?v:u}Object.defineProperty(f,"__esModule",{value:!0});var m=function(v){function u(){return w(this,u),k(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return function p(v,u){if("function"!=typeof u&&null!==u)throw new TypeError("Super expression must either be null or a function, not "+typeof u);v.prototype=Object.create(u&&u.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(v,u):v.__proto__=u)}(u,v),u}(function S(v){return v&&v.__esModule?v:{default:v}}(g(6)).default);m.blotName="underline",m.tagName="U",f.default=m},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0});var j=function(){function M(O,b){for(var A=0;A<b.length;A++){var c=b[A];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(O,c.key,c)}}return function(O,b,A){return b&&M(O.prototype,b),A&&M(O,A),O}}(),l=function M(O,b,A){null===O&&(O=Function.prototype);var c=Object.getOwnPropertyDescriptor(O,b);if(void 0===c){var P=Object.getPrototypeOf(O);return null===P?void 0:M(P,b,A)}if("value"in c)return c.value;var B=c.get;return void 0===B?void 0:B.call(A)},w=function p(M){return M&&M.__esModule?M:{default:M}}(g(0)),k=g(27);function m(M,O){if(!(M instanceof O))throw new TypeError("Cannot call a class as a function")}function v(M,O){if(!M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!O||"object"!=typeof O&&"function"!=typeof O?M:O}var C=["alt","height","width"],T=function(M){function O(){return m(this,O),v(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments))}return function u(M,O){if("function"!=typeof O&&null!==O)throw new TypeError("Super expression must either be null or a function, not "+typeof O);M.prototype=Object.create(O&&O.prototype,{constructor:{value:M,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(M,O):M.__proto__=O)}(O,M),j(O,[{key:"format",value:function(A,c){C.indexOf(A)>-1?c?this.domNode.setAttribute(A,c):this.domNode.removeAttribute(A):l(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"format",this).call(this,A,c)}}],[{key:"create",value:function(A){var c=l(O.__proto__||Object.getPrototypeOf(O),"create",this).call(this,A);return"string"==typeof A&&c.setAttribute("src",this.sanitize(A)),c}},{key:"formats",value:function(A){return C.reduce(function(c,P){return A.hasAttribute(P)&&(c[P]=A.getAttribute(P)),c},{})}},{key:"match",value:function(A){return/\.(jpe?g|gif|png)$/.test(A)||/^data:image\/.+;base64/.test(A)}},{key:"sanitize",value:function(A){return(0,k.sanitize)(A,["http","https","data"])?A:"//:0"}},{key:"value",value:function(A){return A.getAttribute("src")}}]),O}(w.default.Embed);T.blotName="image",T.tagName="IMG",f.default=T},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0});var j=function(){function M(O,b){for(var A=0;A<b.length;A++){var c=b[A];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(O,c.key,c)}}return function(O,b,A){return b&&M(O.prototype,b),A&&M(O,A),O}}(),l=function M(O,b,A){null===O&&(O=Function.prototype);var c=Object.getOwnPropertyDescriptor(O,b);if(void 0===c){var P=Object.getPrototypeOf(O);return null===P?void 0:M(P,b,A)}if("value"in c)return c.value;var B=c.get;return void 0===B?void 0:B.call(A)},S=g(4),k=function p(M){return M&&M.__esModule?M:{default:M}}(g(27));function m(M,O){if(!(M instanceof O))throw new TypeError("Cannot call a class as a function")}function v(M,O){if(!M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!O||"object"!=typeof O&&"function"!=typeof O?M:O}var C=["height","width"],T=function(M){function O(){return m(this,O),v(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments))}return function u(M,O){if("function"!=typeof O&&null!==O)throw new TypeError("Super expression must either be null or a function, not "+typeof O);M.prototype=Object.create(O&&O.prototype,{constructor:{value:M,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(M,O):M.__proto__=O)}(O,M),j(O,[{key:"format",value:function(A,c){C.indexOf(A)>-1?c?this.domNode.setAttribute(A,c):this.domNode.removeAttribute(A):l(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"format",this).call(this,A,c)}}],[{key:"create",value:function(A){var c=l(O.__proto__||Object.getPrototypeOf(O),"create",this).call(this,A);return c.setAttribute("frameborder","0"),c.setAttribute("allowfullscreen",!0),c.setAttribute("src",this.sanitize(A)),c}},{key:"formats",value:function(A){return C.reduce(function(c,P){return A.hasAttribute(P)&&(c[P]=A.getAttribute(P)),c},{})}},{key:"sanitize",value:function(A){return k.default.sanitize(A)}},{key:"value",value:function(A){return A.getAttribute("src")}}]),O}(S.BlockEmbed);T.blotName="video",T.className="ql-video",T.tagName="IFRAME",f.default=T},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.default=f.FormulaBlot=void 0;var j=function(){function A(c,P){for(var B=0;B<P.length;B++){var q=P[B];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(c,q.key,q)}}return function(c,P,B){return P&&A(c.prototype,P),B&&A(c,B),c}}(),l=function A(c,P,B){null===c&&(c=Function.prototype);var q=Object.getOwnPropertyDescriptor(c,P);if(void 0===q){var o=Object.getPrototypeOf(c);return null===o?void 0:A(o,P,B)}if("value"in q)return q.value;var y=q.get;return void 0===y?void 0:y.call(B)},w=u(g(35)),p=u(g(5)),v=u(g(9));function u(A){return A&&A.__esModule?A:{default:A}}function C(A,c){if(!(A instanceof c))throw new TypeError("Cannot call a class as a function")}function T(A,c){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!=typeof c&&"function"!=typeof c?A:c}function M(A,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);A.prototype=Object.create(c&&c.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(A,c):A.__proto__=c)}var O=function(A){function c(){return C(this,c),T(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}return M(c,A),j(c,null,[{key:"create",value:function(B){var q=l(c.__proto__||Object.getPrototypeOf(c),"create",this).call(this,B);return"string"==typeof B&&(window.katex.render(B,q,{throwOnError:!1,errorColor:"#f00"}),q.setAttribute("data-value",B)),q}},{key:"value",value:function(B){return B.getAttribute("data-value")}}]),c}(w.default);O.blotName="formula",O.className="ql-formula",O.tagName="SPAN";var b=function(A){function c(){C(this,c);var P=T(this,(c.__proto__||Object.getPrototypeOf(c)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return P}return M(c,A),j(c,null,[{key:"register",value:function(){p.default.register(O,!0)}}]),c}(v.default);f.FormulaBlot=O,f.default=b},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.default=f.CodeToken=f.CodeBlock=void 0;var j=function(){function B(q,o){for(var y=0;y<o.length;y++){var _=o[y];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(q,_.key,_)}}return function(q,o,y){return o&&B(q.prototype,o),y&&B(q,y),q}}(),l=function B(q,o,y){null===q&&(q=Function.prototype);var _=Object.getOwnPropertyDescriptor(q,o);if(void 0===_){var R=Object.getPrototypeOf(q);return null===R?void 0:B(R,o,y)}if("value"in _)return _.value;var N=_.get;return void 0===N?void 0:N.call(y)},w=T(g(0)),p=T(g(5)),v=T(g(9));function T(B){return B&&B.__esModule?B:{default:B}}function M(B,q){if(!(B instanceof q))throw new TypeError("Cannot call a class as a function")}function O(B,q){if(!B)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!q||"object"!=typeof q&&"function"!=typeof q?B:q}function b(B,q){if("function"!=typeof q&&null!==q)throw new TypeError("Super expression must either be null or a function, not "+typeof q);B.prototype=Object.create(q&&q.prototype,{constructor:{value:B,enumerable:!1,writable:!0,configurable:!0}}),q&&(Object.setPrototypeOf?Object.setPrototypeOf(B,q):B.__proto__=q)}var A=function(B){function q(){return M(this,q),O(this,(q.__proto__||Object.getPrototypeOf(q)).apply(this,arguments))}return b(q,B),j(q,[{key:"replaceWith",value:function(y){this.domNode.textContent=this.domNode.textContent,this.attach(),l(q.prototype.__proto__||Object.getPrototypeOf(q.prototype),"replaceWith",this).call(this,y)}},{key:"highlight",value:function(y){var _=this.domNode.textContent;this.cachedText!==_&&((_.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=y(_),this.domNode.normalize(),this.attach()),this.cachedText=_)}}]),q}(T(g(13)).default);A.className="ql-syntax";var c=new w.default.Attributor.Class("token","hljs",{scope:w.default.Scope.INLINE}),P=function(B){function q(o,y){M(this,q);var _=O(this,(q.__proto__||Object.getPrototypeOf(q)).call(this,o,y));if("function"!=typeof _.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var R=null;return _.quill.on(p.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(R),R=setTimeout(function(){_.highlight(),R=null},_.options.interval)}),_.highlight(),_}return b(q,B),j(q,null,[{key:"register",value:function(){p.default.register(c,!0),p.default.register(A,!0)}}]),j(q,[{key:"highlight",value:function(){var y=this;if(!this.quill.selection.composing){this.quill.update(p.default.sources.USER);var _=this.quill.getSelection();this.quill.scroll.descendants(A).forEach(function(R){R.highlight(y.options.highlight)}),this.quill.update(p.default.sources.SILENT),null!=_&&this.quill.setSelection(_,p.default.sources.SILENT)}}}]),q}(v.default);P.DEFAULTS={highlight:null==window.hljs?null:function(B){return window.hljs.highlightAuto(B).value},interval:1e3},f.CodeBlock=A,f.CodeToken=c,f.default=P},function(i,f){i.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(i,f){i.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(i,f){i.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(i,f){i.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(i,f){i.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(i,f){i.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(i,f){i.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(i,f){i.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(i,f){i.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(i,f){i.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(i,f){i.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(i,f){i.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(i,f){i.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(i,f){i.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(i,f){i.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(i,f){i.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(i,f){i.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(i,f){i.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(i,f){i.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(i,f){i.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(i,f){i.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(i,f){i.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(i,f){i.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(i,f){i.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(i,f){i.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(i,f){i.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(i,f){i.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(i,f){i.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(i,f){i.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(i,f){i.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(i,f){i.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(i,f){i.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(i,f,g){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.default=f.BubbleTooltip=void 0;var j=function q(o,y,_){null===o&&(o=Function.prototype);var R=Object.getOwnPropertyDescriptor(o,y);if(void 0===R){var N=Object.getPrototypeOf(o);return null===N?void 0:q(N,y,_)}if("value"in R)return R.value;var W=R.get;return void 0===W?void 0:W.call(_)},l=function(){function q(o,y){for(var _=0;_<y.length;_++){var R=y[_];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(o,R.key,R)}}return function(o,y,_){return y&&q(o.prototype,y),_&&q(o,_),o}}(),w=M(g(3)),p=M(g(8)),m=g(43),v=M(m),u=g(15),T=M(g(41));function M(q){return q&&q.__esModule?q:{default:q}}function O(q,o){if(!(q instanceof o))throw new TypeError("Cannot call a class as a function")}function b(q,o){if(!q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!o||"object"!=typeof o&&"function"!=typeof o?q:o}function A(q,o){if("function"!=typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function, not "+typeof o);q.prototype=Object.create(o&&o.prototype,{constructor:{value:q,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(q,o):q.__proto__=o)}var c=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],P=function(q){function o(y,_){O(this,o),null!=_.modules.toolbar&&null==_.modules.toolbar.container&&(_.modules.toolbar.container=c);var R=b(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,y,_));return R.quill.container.classList.add("ql-bubble"),R}return A(o,q),l(o,[{key:"extendToolbar",value:function(_){this.tooltip=new B(this.quill,this.options.bounds),this.tooltip.root.appendChild(_.container),this.buildButtons([].slice.call(_.container.querySelectorAll("button")),T.default),this.buildPickers([].slice.call(_.container.querySelectorAll("select")),T.default)}}]),o}(v.default);P.DEFAULTS=(0,w.default)(!0,{},v.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(o){o?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var B=function(q){function o(y,_){O(this,o);var R=b(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,y,_));return R.quill.on(p.default.events.EDITOR_CHANGE,function(N,W,G,ne){if(N===p.default.events.SELECTION_CHANGE)if(null!=W&&W.length>0&&ne===p.default.sources.USER){R.show(),R.root.style.left="0px",R.root.style.width="",R.root.style.width=R.root.offsetWidth+"px";var Z=R.quill.getLines(W.index,W.length);if(1===Z.length)R.position(R.quill.getBounds(W));else{var te=Z[Z.length-1],ge=R.quill.getIndex(te),Q=Math.min(te.length()-1,W.index+W.length-ge),J=R.quill.getBounds(new u.Range(ge,Q));R.position(J)}}else document.activeElement!==R.textbox&&R.quill.hasFocus()&&R.hide()}),R}return A(o,q),l(o,[{key:"listen",value:function(){var _=this;j(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){_.root.classList.remove("ql-editing")}),this.quill.on(p.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!_.root.classList.contains("ql-hidden")){var R=_.quill.getSelection();null!=R&&_.position(_.quill.getBounds(R))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(_){var R=j(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"position",this).call(this,_),N=this.root.querySelector(".ql-tooltip-arrow");if(N.style.marginLeft="",0===R)return R;N.style.marginLeft=-1*R-N.offsetWidth/2+"px"}}]),o}(m.BaseTooltip);B.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),f.BubbleTooltip=B,f.default=P},function(i,f,g){i.exports=g(63)}]).default}),function(i,f){"object"==typeof exports&&"undefined"!=typeof module?module.exports=f():"function"==typeof define&&define.amd?define(f):(i="undefined"!=typeof globalThis?globalThis:i||self).Sweetalert2=f()}(this,function(){"use strict";function i(D,L,X){if("function"==typeof D?D===L:D.has(L))return arguments.length<3?L:X;throw new TypeError("Private element is not present on this object")}function g(D,L){return D.get(i(D,L))}const w={},m="swal2-",u=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"].reduce((D,L)=>(D[L]=m+L,D),{}),T=["success","warning","info","question","error"].reduce((D,L)=>(D[L]=m+L,D),{}),M="SweetAlert2:",O=D=>D.charAt(0).toUpperCase()+D.slice(1),b=D=>{console.warn(`${M} ${"object"==typeof D?D.join(" "):D}`)},A=D=>{console.error(`${M} ${D}`)},c=[],P=D=>{c.includes(D)||(c.push(D),b(D))},B=function(D){let L=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;P(`"${D}" is deprecated and will be removed in the next major release.${L?` Use "${L}" instead.`:""}`)},q=D=>"function"==typeof D?D():D,o=D=>D&&"function"==typeof D.toPromise,y=D=>o(D)?D.toPromise():Promise.resolve(D),_=D=>D&&Promise.resolve(D)===D,R=()=>document.body.querySelector(`.${u.container}`),N=D=>{const L=R();return L?L.querySelector(D):null},W=D=>N(`.${D}`),G=()=>W(u.popup),ne=()=>W(u.icon),te=()=>W(u.title),ge=()=>W(u["html-container"]),Q=()=>W(u.image),J=()=>W(u["progress-steps"]),U=()=>W(u["validation-message"]),se=()=>N(`.${u.actions} .${u.confirm}`),de=()=>N(`.${u.actions} .${u.cancel}`),me=()=>N(`.${u.actions} .${u.deny}`),ce=()=>N(`.${u.loader}`),xe=()=>W(u.actions),Re=()=>W(u.footer),Oe=()=>W(u["timer-progress-bar"]),we=()=>W(u.close),tt=()=>{const D=G();if(!D)return[];const L=D.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),X=Array.from(L).sort((lt,jt)=>{const Ut=parseInt(lt.getAttribute("tabindex")||"0"),on=parseInt(jt.getAttribute("tabindex")||"0");return Ut>on?1:Ut<on?-1:0}),ve=D.querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n'),Fe=Array.from(ve).filter(lt=>"-1"!==lt.getAttribute("tabindex"));return[...new Set(X.concat(Fe))].filter(lt=>he(lt))},it=()=>ae(document.body,u.shown)&&!ae(document.body,u["toast-shown"])&&!ae(document.body,u["no-backdrop"]),ot=()=>{const D=G();return!!D&&ae(D,u.toast)},Et=(D,L)=>{if(D.textContent="",L){const ve=(new DOMParser).parseFromString(L,"text/html"),Fe=ve.querySelector("head");Fe&&Array.from(Fe.childNodes).forEach(jt=>{D.appendChild(jt)});const lt=ve.querySelector("body");lt&&Array.from(lt.childNodes).forEach(jt=>{jt instanceof HTMLVideoElement||jt instanceof HTMLAudioElement?D.appendChild(jt.cloneNode(!0)):D.appendChild(jt)})}},ae=(D,L)=>{if(!L)return!1;const X=L.split(/\s+/);for(let ve=0;ve<X.length;ve++)if(!D.classList.contains(X[ve]))return!1;return!0},fe=(D,L,X)=>{if(((D,L)=>{Array.from(D.classList).forEach(X=>{!Object.values(u).includes(X)&&!Object.values(T).includes(X)&&!Object.values(L.showClass||{}).includes(X)&&D.classList.remove(X)})})(D,L),!L.customClass)return;const ve=L.customClass[X];if(ve){if("string"!=typeof ve&&!ve.forEach)return void b(`Invalid type of customClass.${X}! Expected string or iterable object, got "${typeof ve}"`);r(D,ve)}},a=(D,L)=>{if(!L)return null;switch(L){case"select":case"textarea":case"file":return D.querySelector(`.${u.popup} > .${u[L]}`);case"checkbox":return D.querySelector(`.${u.popup} > .${u.checkbox} input`);case"radio":return D.querySelector(`.${u.popup} > .${u.radio} input:checked`)||D.querySelector(`.${u.popup} > .${u.radio} input:first-child`);case"range":return D.querySelector(`.${u.popup} > .${u.range} input`);default:return D.querySelector(`.${u.popup} > .${u.input}`)}},h=D=>{if(D.focus(),"file"!==D.type){const L=D.value;D.value="",D.value=L}},n=(D,L,X)=>{!D||!L||("string"==typeof L&&(L=L.split(/\s+/).filter(Boolean)),L.forEach(ve=>{Array.isArray(D)?D.forEach(Fe=>{X?Fe.classList.add(ve):Fe.classList.remove(ve)}):X?D.classList.add(ve):D.classList.remove(ve)}))},r=(D,L)=>{n(D,L,!0)},d=(D,L)=>{n(D,L,!1)},E=(D,L)=>{const X=Array.from(D.children);for(let ve=0;ve<X.length;ve++){const Fe=X[ve];if(Fe instanceof HTMLElement&&ae(Fe,L))return Fe}},F=(D,L,X)=>{X===`${parseInt(X)}`&&(X=parseInt(X)),X||0===parseInt(X)?D.style.setProperty(L,"number"==typeof X?`${X}px`:X):D.style.removeProperty(L)},I=function(D){let L=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";!D||(D.style.display=L)},Y=D=>{!D||(D.style.display="none")},V=function(D){let L=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"block";!D||new MutationObserver(()=>{re(D,D.innerHTML,L)}).observe(D,{childList:!0,subtree:!0})},ie=(D,L,X,ve)=>{const Fe=D.querySelector(L);Fe&&Fe.style.setProperty(X,ve)},re=function(D,L){let X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex";L?I(D,X):Y(D)},he=D=>!(!D||!(D.offsetWidth||D.offsetHeight||D.getClientRects().length)),qe=D=>D.scrollHeight>D.clientHeight,Ee=D=>{const L=window.getComputedStyle(D),X=parseFloat(L.getPropertyValue("animation-duration")||"0"),ve=parseFloat(L.getPropertyValue("transition-duration")||"0");return X>0||ve>0},je=function(D){let L=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const X=Oe();!X||he(X)&&(L&&(X.style.transition="none",X.style.width="100%"),setTimeout(()=>{X.style.transition=`width ${D/1e3}s linear`,X.style.width="0%"},10))},Ne=`\n <div aria-labelledby="${u.title}" aria-describedby="${u["html-container"]}" class="${u.popup}" tabindex="-1">\n <button type="button" class="${u.close}"></button>\n <ul class="${u["progress-steps"]}"></ul>\n <div class="${u.icon}"></div>\n <img class="${u.image}" />\n <h2 class="${u.title}" id="${u.title}"></h2>\n <div class="${u["html-container"]}" id="${u["html-container"]}"></div>\n <input class="${u.input}" id="${u.input}" />\n <input type="file" class="${u.file}" />\n <div class="${u.range}">\n <input type="range" />\n <output></output>\n </div>\n <select class="${u.select}" id="${u.select}"></select>\n <div class="${u.radio}"></div>\n <label class="${u.checkbox}">\n <input type="checkbox" id="${u.checkbox}" />\n <span class="${u.label}"></span>\n </label>\n <textarea class="${u.textarea}" id="${u.textarea}"></textarea>\n <div class="${u["validation-message"]}" id="${u["validation-message"]}"></div>\n <div class="${u.actions}">\n <div class="${u.loader}"></div>\n <button type="button" class="${u.confirm}"></button>\n <button type="button" class="${u.deny}"></button>\n <button type="button" class="${u.cancel}"></button>\n </div>\n <div class="${u.footer}"></div>\n <div class="${u["timer-progress-bar-container"]}">\n <div class="${u["timer-progress-bar"]}"></div>\n </div>\n </div>\n`.replace(/(^|\n)\s*/g,""),$e=()=>{w.currentInstance.resetValidationMessage()},gt=(D,L)=>{D instanceof HTMLElement?L.appendChild(D):"object"==typeof D?vt(D,L):D&&Et(L,D)},vt=(D,L)=>{D.jquery?bt(L,D):Et(L,D.toString())},bt=(D,L)=>{if(D.textContent="",0 in L)for(let X=0;X in L;X++)D.appendChild(L[X].cloneNode(!0));else D.appendChild(L.cloneNode(!0))};function At(D,L,X){const ve=O(L);re(D,X[`show${ve}Button`],"inline-block"),Et(D,X[`${L}ButtonText`]||""),D.setAttribute("aria-label",X[`${L}ButtonAriaLabel`]||""),D.className=u[L],fe(D,X,`${L}Button`)}var Ft={innerParams:new WeakMap,domCache:new WeakMap};const bn=["input","file","range","select","radio","checkbox","textarea"],_n=(D,L)=>{!D.placeholder&&L.inputPlaceholder&&(D.placeholder=L.inputPlaceholder)},Rn=(D,L,X)=>{if(X.inputLabel){const ve=document.createElement("label"),Fe=u["input-label"];ve.setAttribute("for",D.id),ve.className=Fe,"object"==typeof X.customClass&&r(ve,X.customClass.inputLabel),ve.innerText=X.inputLabel,L.insertAdjacentElement("beforebegin",ve)}},mn=D=>{const L=G();if(L)return E(L,u[D]||u.input)},en=(D,L)=>{["string","number"].includes(typeof L)?D.value=`${L}`:_(L)||b(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof L}"`)},Yt={};Yt.text=Yt.email=Yt.password=Yt.number=Yt.tel=Yt.url=Yt.search=Yt.date=Yt["datetime-local"]=Yt.time=Yt.week=Yt.month=(D,L)=>(en(D,L.inputValue),Rn(D,D,L),_n(D,L),D.type=L.input,D),Yt.file=(D,L)=>(Rn(D,D,L),_n(D,L),D),Yt.range=(D,L)=>{const X=D.querySelector("input"),ve=D.querySelector("output");return en(X,L.inputValue),X.type=L.input,en(ve,L.inputValue),Rn(X,D,L),D},Yt.select=(D,L)=>{if(D.textContent="",L.inputPlaceholder){const X=document.createElement("option");Et(X,L.inputPlaceholder),X.value="",X.disabled=!0,X.selected=!0,D.appendChild(X)}return Rn(D,D,L),D},Yt.radio=D=>(D.textContent="",D),Yt.checkbox=(D,L)=>{const X=a(G(),"checkbox");X.value="1",X.checked=Boolean(L.inputValue);const ve=D.querySelector("span");return Et(ve,L.inputPlaceholder||L.inputLabel),X},Yt.textarea=(D,L)=>(en(D,L.inputValue),_n(D,L),Rn(D,D,L),setTimeout(()=>{if("MutationObserver"in window){const ve=parseInt(window.getComputedStyle(G()).width);new MutationObserver(()=>{if(!document.body.contains(D))return;const lt=D.offsetWidth+(ve=>parseInt(window.getComputedStyle(ve).marginLeft)+parseInt(window.getComputedStyle(ve).marginRight))(D);lt>ve?G().style.width=`${lt}px`:F(G(),"width",L.width)}).observe(D,{attributes:!0,attributeFilter:["style"]})}}),D);const pi=(D,L)=>{const X=ge();!X||(V(X),fe(X,L,"htmlContainer"),L.html?(gt(L.html,X),I(X,"block")):L.text?(X.textContent=L.text,I(X,"block")):Y(X),((D,L)=>{const X=G();if(!X)return;const ve=Ft.innerParams.get(D),Fe=!ve||L.input!==ve.input;bn.forEach(lt=>{const jt=E(X,u[lt]);!jt||(((D,L)=>{const X=G();if(!X)return;const ve=a(X,D);if(ve){(D=>{for(let L=0;L<D.attributes.length;L++){const X=D.attributes[L].name;["id","type","value","style"].includes(X)||D.removeAttribute(X)}})(ve);for(const Fe in L)ve.setAttribute(Fe,L[Fe])}})(lt,L.inputAttributes),jt.className=u[lt],Fe&&Y(jt))}),L.input&&(Fe&&(D=>{if(!D.input)return;if(!Yt[D.input])return void A(`Unexpected type of input! Expected ${Object.keys(Yt).join(" | ")}, got "${D.input}"`);const L=mn(D.input);if(!L)return;const X=Yt[D.input](L,D);I(L),D.inputAutoFocus&&setTimeout(()=>{h(X)})})(L),(D=>{if(!D.input)return;const L=mn(D.input);L&&fe(L,D,"input")})(L))})(D,L))},Wn=(D,L)=>{for(const[X,ve]of Object.entries(T))L.icon!==X&&d(D,ve);r(D,L.icon&&T[L.icon]),ni(D,L),mi(),fe(D,L,"icon")},mi=()=>{const D=G();if(!D)return;const L=window.getComputedStyle(D).getPropertyValue("background-color"),X=D.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let ve=0;ve<X.length;ve++)X[ve].style.backgroundColor=L},Hn=(D,L)=>{if(!L.icon&&!L.iconHtml)return;let X=D.innerHTML,ve="";L.iconHtml?ve=xn(L.iconHtml):"success"===L.icon?(ve='\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n',X=X.replace(/ style=".*?"/g,"")):"error"===L.icon?ve='\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n':L.icon&&(ve=xn({question:"?",warning:"!",info:"i"}[L.icon])),X.trim()!==ve.trim()&&Et(D,ve)},ni=(D,L)=>{if(L.iconColor){D.style.color=L.iconColor,D.style.borderColor=L.iconColor;for(const X of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])ie(D,X,"background-color",L.iconColor);ie(D,".swal2-success-ring","border-color",L.iconColor)}},xn=D=>`<div class="${u["icon-content"]}">${D}</div>`,De=(D,L)=>{((D,L)=>{const X=R(),ve=G();if(X&&ve){if(L.toast){F(X,"width",L.width),ve.style.width="100%";const Fe=ce();Fe&&ve.insertBefore(Fe,ne())}else F(ve,"width",L.width);F(ve,"padding",L.padding),L.color&&(ve.style.color=L.color),L.background&&(ve.style.background=L.background),Y(U()),((D,L)=>{const X=L.showClass||{};D.className=`${u.popup} ${he(D)?X.popup:""}`,L.toast?(r([document.documentElement,document.body],u["toast-shown"]),r(D,u.toast)):r(D,u.modal),fe(D,L,"popup"),"string"==typeof L.customClass&&r(D,L.customClass),L.icon&&r(D,u[`icon-${L.icon}`])})(ve,L)}})(0,L),((D,L)=>{const X=R();!X||(function qt(D,L){"string"==typeof L?D.style.background=L:L||r([document.documentElement,document.body],u["no-backdrop"])}(X,L.backdrop),function Qt(D,L){!L||(L in u?r(D,u[L]):(b('The "position" parameter is not valid, defaulting to "center"'),r(D,u.center)))}(X,L.position),function Wt(D,L){!L||r(D,u[`grow-${L}`])}(X,L.grow),fe(X,L,"container"))})(0,L),((D,L)=>{const X=J();if(!X)return;const{progressSteps:ve,currentProgressStep:Fe}=L;ve&&0!==ve.length&&void 0!==Fe?(I(X),X.textContent="",Fe>=ve.length&&b("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),ve.forEach((lt,jt)=>{const Ut=(D=>{const L=document.createElement("li");return r(L,u["progress-step"]),Et(L,D),L})(lt);if(X.appendChild(Ut),jt===Fe&&r(Ut,u["active-progress-step"]),jt!==ve.length-1){const on=(D=>{const L=document.createElement("li");return r(L,u["progress-step-line"]),D.progressStepsDistance&&F(L,"width",D.progressStepsDistance),L})(L);X.appendChild(on)}})):Y(X)})(0,L),((D,L)=>{const X=Ft.innerParams.get(D),ve=ne();if(ve){if(X&&L.icon===X.icon)return Hn(ve,L),void Wn(ve,L);if(!L.icon&&!L.iconHtml)return void Y(ve);if(L.icon&&-1===Object.keys(T).indexOf(L.icon))return A(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${L.icon}"`),void Y(ve);I(ve),Hn(ve,L),Wn(ve,L),r(ve,L.showClass&&L.showClass.icon)}})(D,L),((D,L)=>{const X=Q();if(X){if(!L.imageUrl)return void Y(X);I(X,""),X.setAttribute("src",L.imageUrl),X.setAttribute("alt",L.imageAlt||""),F(X,"width",L.imageWidth),F(X,"height",L.imageHeight),X.className=u.image,fe(X,L,"image")}})(0,L),((D,L)=>{const X=te();!X||(V(X),re(X,L.title||L.titleText,"block"),L.title&>(L.title,X),L.titleText&&(X.innerText=L.titleText),fe(X,L,"title"))})(0,L),((D,L)=>{const X=we();!X||(Et(X,L.closeButtonHtml||""),fe(X,L,"closeButton"),re(X,L.showCloseButton),X.setAttribute("aria-label",L.closeButtonAriaLabel||""))})(0,L),pi(D,L),((D,L)=>{const X=xe(),ve=ce();!X||!ve||(L.showConfirmButton||L.showDenyButton||L.showCancelButton?I(X):Y(X),fe(X,L,"actions"),function Bt(D,L,X){const ve=se(),Fe=me(),lt=de();!ve||!Fe||!lt||(At(ve,"confirm",X),At(Fe,"deny",X),At(lt,"cancel",X),function yt(D,L,X,ve){ve.buttonsStyling?(r([D,L,X],u.styled),ve.confirmButtonColor&&(D.style.backgroundColor=ve.confirmButtonColor,r(D,u["default-outline"])),ve.denyButtonColor&&(L.style.backgroundColor=ve.denyButtonColor,r(L,u["default-outline"])),ve.cancelButtonColor&&(X.style.backgroundColor=ve.cancelButtonColor,r(X,u["default-outline"]))):d([D,L,X],u.styled)}(ve,Fe,lt,X),X.reverseButtons&&(X.toast?(D.insertBefore(lt,ve),D.insertBefore(Fe,ve)):(D.insertBefore(lt,L),D.insertBefore(Fe,L),D.insertBefore(ve,L))))}(X,ve,L),Et(ve,L.loaderHtml||""),fe(ve,L,"loader"))})(0,L),((D,L)=>{const X=Re();!X||(V(X),re(X,L.footer,"block"),L.footer&>(L.footer,X),fe(X,L,"footer"))})(0,L);const X=G();"function"==typeof L.didRender&&X&&L.didRender(X),w.eventEmitter.emit("didRender",X)},Ce=()=>{var D;return null===(D=se())||void 0===D?void 0:D.click()},Je=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),et=D=>{D.keydownTarget&&D.keydownHandlerAdded&&(D.keydownTarget.removeEventListener("keydown",D.keydownHandler,{capture:D.keydownListenerCapture}),D.keydownHandlerAdded=!1)},st=(D,L)=>{var X;const ve=tt();if(ve.length)return(D+=L)===ve.length?D=0:-1===D&&(D=ve.length-1),void ve[D].focus();null===(X=G())||void 0===X||X.focus()},St=["ArrowRight","ArrowDown"],Lt=["ArrowLeft","ArrowUp"],$t=(D,L)=>{if(!q(L.allowEnterKey))return;const X=a(G(),L.input);if(D.target&&X&&D.target instanceof HTMLElement&&D.target.outerHTML===X.outerHTML){if(["textarea","file"].includes(L.input))return;Ce(),D.preventDefault()}},Kt=D=>{const L=D.target,X=tt();let ve=-1;for(let Fe=0;Fe<X.length;Fe++)if(L===X[Fe]){ve=Fe;break}st(ve,D.shiftKey?-1:1),D.stopPropagation(),D.preventDefault()},dn=D=>{const L=xe(),X=se(),ve=me(),Fe=de();if(!(L&&X&&ve&&Fe))return;if(document.activeElement instanceof HTMLElement&&![X,ve,Fe].includes(document.activeElement))return;const jt=St.includes(D)?"nextElementSibling":"previousElementSibling";let Ut=document.activeElement;if(Ut){for(let on=0;on<L.children.length;on++){if(Ut=Ut[jt],!Ut)return;if(Ut instanceof HTMLButtonElement&&he(Ut))break}Ut instanceof HTMLButtonElement&&Ut.focus()}},Gn=(D,L,X)=>{q(L.allowEscapeKey)&&(D.preventDefault(),X(Je.esc))};var An={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const Zn=()=>{Array.from(document.body.children).forEach(L=>{L.hasAttribute("data-previous-aria-hidden")?(L.setAttribute("aria-hidden",L.getAttribute("data-previous-aria-hidden")||""),L.removeAttribute("data-previous-aria-hidden")):L.removeAttribute("aria-hidden")})},Di="undefined"!=typeof window&&!!window.GestureEvent,bi=D=>{const L=D.target,X=R(),ve=ge();return!(!X||!ve||Ki(D)||Zi(D)||L!==X&&(qe(X)||!(L instanceof HTMLElement)||"INPUT"===L.tagName||"TEXTAREA"===L.tagName||qe(ve)&&ve.contains(L)))},Ki=D=>D.touches&&D.touches.length&&"stylus"===D.touches[0].touchType,Zi=D=>D.touches&&D.touches.length>1;let ii=null;function Mi(D,L,X,ve){ot()?_i(D,ve):((D=>new Promise(L=>{if(!D)return L();const X=window.scrollX,ve=window.scrollY;w.restoreFocusTimeout=setTimeout(()=>{w.previousActiveElement instanceof HTMLElement?(w.previousActiveElement.focus(),w.previousActiveElement=null):document.body&&document.body.focus(),L()},100),window.scrollTo(X,ve)}))(X).then(()=>_i(D,ve)),et(w)),Di?(L.setAttribute("style","display:none !important"),L.removeAttribute("class"),L.innerHTML=""):L.remove(),it()&&(null!==ii&&(document.body.style.paddingRight=`${ii}px`,ii=null),(()=>{if(ae(document.body,u.iosfix)){const D=parseInt(document.body.style.top,10);d(document.body,u.iosfix),document.body.style.top="",document.body.scrollTop=-1*D}})(),Zn()),function Ri(){d([document.documentElement,document.body],[u.shown,u["height-auto"],u["no-backdrop"],u["toast-shown"]])}()}function Bn(D){D=ci(D);const L=An.swalPromiseResolve.get(this),X=Bi(this);this.isAwaitingPromise?D.isDismissed||(ui(this),L(D)):X&&L(D)}const Bi=D=>{const L=G();if(!L)return!1;const X=Ft.innerParams.get(D);if(!X||ae(L,X.hideClass.popup))return!1;d(L,X.showClass.popup),r(L,X.hideClass.popup);const ve=R();return d(ve,X.showClass.backdrop),r(ve,X.hideClass.backdrop),Fi(D,L,X),!0};function wi(D){const L=An.swalPromiseReject.get(this);ui(this),L&&L(D)}const ui=D=>{D.isAwaitingPromise&&(delete D.isAwaitingPromise,Ft.innerParams.get(D)||D._destroy())},ci=D=>void 0===D?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},D),Fi=(D,L,X)=>{const ve=R(),Fe=Ee(L);"function"==typeof X.willClose&&X.willClose(L),w.eventEmitter.emit("willClose",L),Fe?Wi(D,L,ve,X.returnFocus,X.didClose):Mi(D,ve,X.returnFocus,X.didClose)},Wi=(D,L,X,ve,Fe)=>{w.swalCloseEventFinishedCallback=Mi.bind(null,D,X,ve,Fe);const lt=function(jt){jt.target===L&&(w.swalCloseEventFinishedCallback(),delete w.swalCloseEventFinishedCallback,L.removeEventListener("animationend",lt),L.removeEventListener("transitionend",lt))};L.addEventListener("animationend",lt),L.addEventListener("transitionend",lt)},_i=(D,L)=>{setTimeout(()=>{"function"==typeof L&&L.bind(D.params)(),w.eventEmitter.emit("didClose"),D._destroy&&D._destroy()})},ri=D=>{let L=G();if(L||new Xi,L=G(),!L)return;const X=ce();ot()?Y(ne()):er(L,D),I(X),L.setAttribute("data-loading","true"),L.setAttribute("aria-busy","true"),L.focus()},er=(D,L)=>{const X=xe(),ve=ce();!X||!ve||(!L&&he(se())&&(L=se()),I(X),L&&(Y(L),ve.setAttribute("data-button-to-replace",L.className),X.insertBefore(ve,L)),r([D,X],u.loading))},_e=D=>{const L=[];return D instanceof Map?D.forEach((X,ve)=>{let Fe=X;"object"==typeof Fe&&(Fe=_e(Fe)),L.push([ve,Fe])}):Object.keys(D).forEach(X=>{let ve=D[X];"object"==typeof ve&&(ve=_e(ve)),L.push([X,ve])}),L},Pe=(D,L)=>!!L&&L.toString()===D.toString(),Xe=(D,L)=>{const X=Ft.innerParams.get(D);if(!X.input)return void A(`The "input" parameter is needed to be set when using returnInputValueOn${O(L)}`);const ve=D.getInput(),Fe=((D,L)=>{const X=D.getInput();if(!X)return null;switch(L.input){case"checkbox":return(D=>D.checked?1:0)(X);case"radio":return(D=>D.checked?D.value:null)(X);case"file":return(D=>D.files&&D.files.length?null!==D.getAttribute("multiple")?D.files:D.files[0]:null)(X);default:return L.inputAutoTrim?X.value.trim():X.value}})(D,X);X.inputValidator?mt(D,Fe,L):ve&&!ve.checkValidity()?(D.enableButtons(),D.showValidationMessage(X.validationMessage||ve.validationMessage)):"deny"===L?xt(D,Fe):sn(D,Fe)},mt=(D,L,X)=>{const ve=Ft.innerParams.get(D);D.disableInput(),Promise.resolve().then(()=>y(ve.inputValidator(L,ve.validationMessage))).then(lt=>{D.enableButtons(),D.enableInput(),lt?D.showValidationMessage(lt):"deny"===X?xt(D,L):sn(D,L)})},xt=(D,L)=>{const X=Ft.innerParams.get(D||void 0);X.showLoaderOnDeny&&ri(me()),X.preDeny?(D.isAwaitingPromise=!0,Promise.resolve().then(()=>y(X.preDeny(L,X.validationMessage))).then(Fe=>{!1===Fe?(D.hideLoading(),ui(D)):D.close({isDenied:!0,value:void 0===Fe?L:Fe})}).catch(Fe=>Jt(D||void 0,Fe))):D.close({isDenied:!0,value:L})},kt=(D,L)=>{D.close({isConfirmed:!0,value:L})},Jt=(D,L)=>{D.rejectPromise(L)},sn=(D,L)=>{const X=Ft.innerParams.get(D||void 0);X.showLoaderOnConfirm&&ri(),X.preConfirm?(D.resetValidationMessage(),D.isAwaitingPromise=!0,Promise.resolve().then(()=>y(X.preConfirm(L,X.validationMessage))).then(Fe=>{he(U())||!1===Fe?(D.hideLoading(),ui(D)):kt(D,void 0===Fe?L:Fe)}).catch(Fe=>Jt(D||void 0,Fe))):kt(D,L)};function En(){const D=Ft.innerParams.get(this);if(!D)return;const L=Ft.domCache.get(this);Y(L.loader),ot()?D.icon&&I(ne()):qn(L),d([L.popup,L.actions],u.loading),L.popup.removeAttribute("aria-busy"),L.popup.removeAttribute("data-loading"),L.confirmButton.disabled=!1,L.denyButton.disabled=!1,L.cancelButton.disabled=!1}const qn=D=>{const L=D.popup.getElementsByClassName(D.loader.getAttribute("data-button-to-replace"));L.length?I(L[0],"inline-block"):!he(se())&&!he(me())&&!he(de())&&Y(D.actions)};function Mt(){const D=Ft.innerParams.get(this),L=Ft.domCache.get(this);return L?a(L.popup,D.input):null}function $n(D,L,X){const ve=Ft.domCache.get(D);L.forEach(Fe=>{ve[Fe].disabled=X})}function It(D,L){const X=G();if(X&&D)if("radio"===D.type){const ve=X.querySelectorAll(`[name="${u.radio}"]`);for(let Fe=0;Fe<ve.length;Fe++)ve[Fe].disabled=L}else D.disabled=L}function Zt(){$n(this,["confirmButton","denyButton","cancelButton"],!1)}function oi(){$n(this,["confirmButton","denyButton","cancelButton"],!0)}function xi(){It(this.getInput(),!1)}function Dn(){It(this.getInput(),!0)}function si(D){const L=Ft.domCache.get(this),X=Ft.innerParams.get(this);Et(L.validationMessage,D),L.validationMessage.className=u["validation-message"],X.customClass&&X.customClass.validationMessage&&r(L.validationMessage,X.customClass.validationMessage),I(L.validationMessage);const ve=this.getInput();ve&&(ve.setAttribute("aria-invalid","true"),ve.setAttribute("aria-describedby",u["validation-message"]),h(ve),r(ve,u.inputerror))}function Ln(){const D=Ft.domCache.get(this);D.validationMessage&&Y(D.validationMessage);const L=this.getInput();L&&(L.removeAttribute("aria-invalid"),L.removeAttribute("aria-describedby"),d(L,u.inputerror))}const Cn={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,animation:!0,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},ai=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],On={allowEnterKey:void 0},ln=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],tn=D=>Object.prototype.hasOwnProperty.call(Cn,D),pn=D=>-1!==ai.indexOf(D),Fn=D=>On[D],vn=D=>{tn(D)||b(`Unknown parameter "${D}"`)},_t=D=>{ln.includes(D)&&b(`The parameter "${D}" is incompatible with toasts`)},nn=D=>{const L=Fn(D);L&&B(D,L)};function Vt(D){const L=G(),X=Ft.innerParams.get(this);if(!L||ae(L,X.hideClass.popup))return void b("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const ve=In(D),Fe=Object.assign({},X,ve);De(this,Fe),Ft.innerParams.set(this,Fe),Object.defineProperties(this,{params:{value:Object.assign({},this.params,D),writable:!1,enumerable:!0}})}const In=D=>{const L={};return Object.keys(D).forEach(X=>{pn(X)?L[X]=D[X]:b(`Invalid parameter to update: ${X}`)}),L};function Jn(){const D=Ft.domCache.get(this),L=Ft.innerParams.get(this);L?(D.popup&&w.swalCloseEventFinishedCallback&&(w.swalCloseEventFinishedCallback(),delete w.swalCloseEventFinishedCallback),"function"==typeof L.didDestroy&&L.didDestroy(),w.eventEmitter.emit("didDestroy"),ki(this)):Vn(this)}const ki=D=>{Vn(D),delete D.params,delete w.keydownHandler,delete w.keydownTarget,delete w.currentInstance},Vn=D=>{D.isAwaitingPromise?(hi(Ft,D),D.isAwaitingPromise=!0):(hi(An,D),hi(Ft,D),delete D.isAwaitingPromise,delete D.disableButtons,delete D.enableButtons,delete D.getInput,delete D.disableInput,delete D.enableInput,delete D.hideLoading,delete D.disableLoading,delete D.showValidationMessage,delete D.resetValidationMessage,delete D.close,delete D.closePopup,delete D.closeModal,delete D.closeToast,delete D.rejectPromise,delete D.update,delete D._destroy)},hi=(D,L)=>{for(const X in D)D[X].delete(L)};var Xn=Object.freeze({__proto__:null,_destroy:Jn,close:Bn,closeModal:Bn,closePopup:Bn,closeToast:Bn,disableButtons:oi,disableInput:Dn,disableLoading:En,enableButtons:Zt,enableInput:xi,getInput:Mt,handleAwaitingPromise:ui,hideLoading:En,rejectPromise:wi,resetValidationMessage:Ln,showValidationMessage:si,update:Vt});const Si=D=>!!(D.showConfirmButton||D.showDenyButton||D.showCancelButton||D.showCloseButton);let Qn=!1;const Ei=D=>D instanceof Element||(D=>"object"==typeof D&&D.jquery)(D),ze=()=>{if(w.timeout)return(()=>{const D=Oe();if(!D)return;const L=parseInt(window.getComputedStyle(D).width);D.style.removeProperty("transition"),D.style.width="100%";const X=parseInt(window.getComputedStyle(D).width);D.style.width=L/X*100+"%"})(),w.timeout.stop()},Ve=()=>{if(w.timeout){const D=w.timeout.start();return je(D),D}};let at=!1;const Nt={},Dt=D=>{for(let L=D.target;L&&L!==document;L=L.parentNode)for(const X in Nt){const ve=L.getAttribute(X);if(ve)return void Nt[X].fire({template:ve})}};w.eventEmitter=new class Ht{constructor(){this.events={}}_getHandlersByEventName(L){return void 0===this.events[L]&&(this.events[L]=[]),this.events[L]}on(L,X){const ve=this._getHandlersByEventName(L);ve.includes(X)||ve.push(X)}once(L,X){var ve=this;const Fe=function(){ve.removeListener(L,Fe);for(var lt=arguments.length,jt=new Array(lt),Ut=0;Ut<lt;Ut++)jt[Ut]=arguments[Ut];X.apply(ve,jt)};this.on(L,Fe)}emit(L){for(var X=arguments.length,ve=new Array(X>1?X-1:0),Fe=1;Fe<X;Fe++)ve[Fe-1]=arguments[Fe];this._getHandlersByEventName(L).forEach(lt=>{try{lt.apply(this,ve)}catch(jt){console.error(jt)}})}removeListener(L,X){const ve=this._getHandlersByEventName(L),Fe=ve.indexOf(X);Fe>-1&&ve.splice(Fe,1)}removeAllListeners(L){void 0!==this.events[L]&&(this.events[L].length=0)}reset(){this.events={}}};var cn=Object.freeze({__proto__:null,argsToParams:D=>{const L={};return"object"!=typeof D[0]||Ei(D[0])?["title","html","icon"].forEach((X,ve)=>{const Fe=D[ve];"string"==typeof Fe||Ei(Fe)?L[X]=Fe:void 0!==Fe&&A(`Unexpected type of ${X}! Expected "string" or "Element", got ${typeof Fe}`)}):Object.assign(L,D[0]),L},bindClickHandler:function Ct(){let D=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template";Nt[D]=this,at||(document.body.addEventListener("click",Dt),at=!0)},clickCancel:()=>{var D;return null===(D=de())||void 0===D?void 0:D.click()},clickConfirm:Ce,clickDeny:()=>{var D;return null===(D=me())||void 0===D?void 0:D.click()},enableLoading:ri,fire:function ye(){for(var D=arguments.length,L=new Array(D),X=0;X<D;X++)L[X]=arguments[X];return new this(...L)},getActions:xe,getCancelButton:de,getCloseButton:we,getConfirmButton:se,getContainer:R,getDenyButton:me,getFocusableElements:tt,getFooter:Re,getHtmlContainer:ge,getIcon:ne,getIconContent:()=>W(u["icon-content"]),getImage:Q,getInputLabel:()=>W(u["input-label"]),getLoader:ce,getPopup:G,getProgressSteps:J,getTimerLeft:()=>w.timeout&&w.timeout.getTimerLeft(),getTimerProgressBar:Oe,getTitle:te,getValidationMessage:U,increaseTimer:D=>{if(w.timeout){const L=w.timeout.increase(D);return je(L,!0),L}},isDeprecatedParameter:Fn,isLoading:()=>{const D=G();return!!D&&D.hasAttribute("data-loading")},isTimerRunning:()=>!(!w.timeout||!w.timeout.isRunning()),isUpdatableParameter:pn,isValidParameter:tn,isVisible:()=>he(G()),mixin:function Ae(D){return class L extends(this){_main(ve,Fe){return super._main(ve,Object.assign({},D,Fe))}}},off:(D,L)=>{D?L?w.eventEmitter.removeListener(D,L):w.eventEmitter.removeAllListeners(D):w.eventEmitter.reset()},on:(D,L)=>{w.eventEmitter.on(D,L)},once:(D,L)=>{w.eventEmitter.once(D,L)},resumeTimer:Ve,showLoading:ri,stopTimer:ze,toggleTimer:()=>{const D=w.timeout;return D&&(D.running?ze():Ve())}});class kn{constructor(L,X){this.callback=L,this.remaining=X,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(L){const X=this.running;return X&&this.stop(),this.remaining+=L,X&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const Sn=["swal-title","swal-html","swal-footer"],di=(D,L)=>{Array.from(D.attributes).forEach(X=>{-1===L.indexOf(X.name)&&b([`Unrecognized attribute "${X.name}" on <${D.tagName.toLowerCase()}>.`,L.length?`Allowed attributes are: ${L.join(", ")}`:"To set the value, use HTML within the element."])})},$i=D=>{const L=G();if(D.target!==L)return;const X=R();L.removeEventListener("animationend",$i),L.removeEventListener("transitionend",$i),X.style.overflowY="auto"},cr=(D,L)=>{Ee(L)?(D.style.overflowY="hidden",L.addEventListener("animationend",$i),L.addEventListener("transitionend",$i)):D.style.overflowY="auto"},hr=(D,L,X)=>{(()=>{if(Di&&!ae(document.body,u.iosfix)){const D=document.body.scrollTop;document.body.style.top=-1*D+"px",r(document.body,u.iosfix),(()=>{const D=R();if(!D)return;let L;D.ontouchstart=X=>{L=bi(X)},D.ontouchmove=X=>{L&&(X.preventDefault(),X.stopPropagation())}})()}})(),L&&"hidden"!==X&&(D=>{null===ii&&(document.body.scrollHeight>window.innerHeight||"scroll"===D)&&(ii=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${ii+(()=>{const D=document.createElement("div");D.className=u["scrollbar-measure"],document.body.appendChild(D);const L=D.getBoundingClientRect().width-D.clientWidth;return document.body.removeChild(D),L})()}px`)})(X),setTimeout(()=>{D.scrollTop=0})},fr=(D,L,X)=>{r(D,X.showClass.backdrop),X.animation?(L.style.setProperty("opacity","0","important"),I(L,"grid"),setTimeout(()=>{r(L,X.showClass.popup),L.style.removeProperty("opacity")},10)):I(L,"grid"),r([document.documentElement,document.body],u.shown),X.heightAuto&&X.backdrop&&!X.toast&&r([document.documentElement,document.body],u["height-auto"])};var or_email=(D,L)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(D)?Promise.resolve():Promise.resolve(L||"Invalid email address"),or_url=(D,L)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(D)?Promise.resolve():Promise.resolve(L||"Invalid URL");function gr(D){(function dr(D){D.inputValidator||("email"===D.input&&(D.inputValidator=or_email),"url"===D.input&&(D.inputValidator=or_url))})(D),D.showLoaderOnConfirm&&!D.preConfirm&&b("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function pr(D){(!D.target||"string"==typeof D.target&&!document.querySelector(D.target)||"string"!=typeof D.target&&!D.target.appendChild)&&(b('Target parameter is not valid, defaulting to "body"'),D.target="body")}(D),"string"==typeof D.title&&(D.title=D.title.split("\n").join("<br />")),(D=>{const L=(()=>{const D=R();return!!D&&(D.remove(),d([document.documentElement,document.body],[u["no-backdrop"],u["toast-shown"],u["has-column"]]),!0)})();if("undefined"==typeof window||"undefined"==typeof document)return void A("SweetAlert2 requires document to initialize");const X=document.createElement("div");X.className=u.container,L&&r(X,u["no-transition"]),Et(X,Ne);const ve=(D=>"string"==typeof D?document.querySelector(D):D)(D.target);ve.appendChild(X),(D=>{const L=G();L.setAttribute("role",D.toast?"alert":"dialog"),L.setAttribute("aria-live",D.toast?"polite":"assertive"),D.toast||L.setAttribute("aria-modal","true")})(D),(D=>{"rtl"===window.getComputedStyle(D).direction&&r(R(),u.rtl)})(ve),(()=>{const D=G(),L=E(D,u.input),X=E(D,u.file),ve=D.querySelector(`.${u.range} input`),Fe=D.querySelector(`.${u.range} output`),lt=E(D,u.select),jt=D.querySelector(`.${u.checkbox} input`),Ut=E(D,u.textarea);L.oninput=$e,X.onchange=$e,lt.onchange=$e,jt.onchange=$e,Ut.oninput=$e,ve.oninput=()=>{$e(),Fe.value=ve.value},ve.onchange=()=>{$e(),Fe.value=ve.value}})()})(D)}let Kn;var Vi=new WeakMap;class an{constructor(){if(function j(D,L,X){(function f(D,L){if(L.has(D))throw new TypeError("Cannot initialize the same private elements twice on an object")})(D,L),L.set(D,X)}(this,Vi,void 0),"undefined"==typeof window)return;Kn=this;for(var L=arguments.length,X=new Array(L),ve=0;ve<L;ve++)X[ve]=arguments[ve];const Fe=Object.freeze(this.constructor.argsToParams(X));this.params=Fe,this.isAwaitingPromise=!1,function l(D,L,X){D.set(i(D,L),X)}(Vi,this,this._main(Kn.params))}_main(L){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((D=>{!1===D.backdrop&&D.allowOutsideClick&&b('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const L in D)vn(L),D.toast&&_t(L),nn(L)})(Object.assign({},X,L)),w.currentInstance){const lt=An.swalPromiseResolve.get(w.currentInstance),{isAwaitingPromise:jt}=w.currentInstance;w.currentInstance._destroy(),jt||lt({isDismissed:!0}),it()&&Zn()}w.currentInstance=Kn;const ve=vr(L,X);gr(ve),Object.freeze(ve),w.timeout&&(w.timeout.stop(),delete w.timeout),clearTimeout(w.restoreFocusTimeout);const Fe=yr(Kn);return De(Kn,ve),Ft.innerParams.set(Kn,ve),mr(Kn,Fe,ve)}then(L){return g(Vi,this).then(L)}finally(L){return g(Vi,this).finally(L)}}const mr=(D,L,X)=>new Promise((ve,Fe)=>{const lt=jt=>{D.close({isDismissed:!0,dismiss:jt})};An.swalPromiseResolve.set(D,ve),An.swalPromiseReject.set(D,Fe),L.confirmButton.onclick=()=>{(D=>{const L=Ft.innerParams.get(D);D.disableButtons(),L.input?Xe(D,"confirm"):sn(D,!0)})(D)},L.denyButton.onclick=()=>{(D=>{const L=Ft.innerParams.get(D);D.disableButtons(),L.returnInputValueOnDeny?Xe(D,"deny"):xt(D,!1)})(D)},L.cancelButton.onclick=()=>{((D,L)=>{D.disableButtons(),L(Je.cancel)})(D,lt)},L.closeButton.onclick=()=>{lt(Je.close)},((D,L,X)=>{D.toast?((D,L,X)=>{L.popup.onclick=()=>{D&&(Si(D)||D.timer||D.input)||X(Je.close)}})(D,L,X):((D=>{D.popup.onmousedown=()=>{D.container.onmouseup=function(L){D.container.onmouseup=()=>{},L.target===D.container&&(Qn=!0)}}})(L),(D=>{D.container.onmousedown=L=>{L.target===D.container&&L.preventDefault(),D.popup.onmouseup=function(X){D.popup.onmouseup=()=>{},(X.target===D.popup||X.target instanceof HTMLElement&&D.popup.contains(X.target))&&(Qn=!0)}}})(L),((D,L,X)=>{L.container.onclick=ve=>{Qn?Qn=!1:ve.target===L.container&&q(D.allowOutsideClick)&&X(Je.backdrop)}})(D,L,X))})(X,L,lt),((D,L,X)=>{et(D),L.toast||(D.keydownHandler=ve=>((D,L,X)=>{!D||L.isComposing||229===L.keyCode||(D.stopKeydownPropagation&&L.stopPropagation(),"Enter"===L.key?$t(L,D):"Tab"===L.key?Kt(L):[...St,...Lt].includes(L.key)?dn(L.key):"Escape"===L.key&&Gn(L,D,X))})(L,ve,X),D.keydownTarget=L.keydownListenerCapture?window:G(),D.keydownListenerCapture=L.keydownListenerCapture,D.keydownTarget.addEventListener("keydown",D.keydownHandler,{capture:D.keydownListenerCapture}),D.keydownHandlerAdded=!0)})(w,X,lt),((D,L)=>{"select"===L.input||"radio"===L.input?((D,L)=>{const X=G();if(!X)return;const ve=Fe=>{"select"===L.input?function ue(D,L,X){const ve=E(D,u.select);if(!ve)return;const Fe=(lt,jt,Ut)=>{const on=document.createElement("option");on.value=Ut,Et(on,jt),on.selected=Pe(Ut,X.inputValue),lt.appendChild(on)};L.forEach(lt=>{const jt=lt[0],Ut=lt[1];if(Array.isArray(Ut)){const on=document.createElement("optgroup");on.label=jt,on.disabled=!1,ve.appendChild(on),Ut.forEach(Oi=>Fe(on,Oi[1],Oi[0]))}else Fe(ve,Ut,jt)}),ve.focus()}(X,_e(Fe),L):"radio"===L.input&&function ke(D,L,X){const ve=E(D,u.radio);if(!ve)return;L.forEach(lt=>{const jt=lt[0],Ut=lt[1],on=document.createElement("input"),Oi=document.createElement("label");on.type="radio",on.name=u.radio,on.value=jt,Pe(jt,X.inputValue)&&(on.checked=!0);const ir=document.createElement("span");Et(ir,Ut),ir.className=u.label,Oi.appendChild(on),Oi.appendChild(ir),ve.appendChild(Oi)});const Fe=ve.querySelectorAll("input");Fe.length&&Fe[0].focus()}(X,_e(Fe),L)};o(L.inputOptions)||_(L.inputOptions)?(ri(se()),y(L.inputOptions).then(Fe=>{D.hideLoading(),ve(Fe)})):"object"==typeof L.inputOptions?ve(L.inputOptions):A("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof L.inputOptions)})(D,L):["text","email","number","tel","textarea"].some(X=>X===L.input)&&(o(L.inputValue)||_(L.inputValue))&&(ri(se()),((D,L)=>{const X=D.getInput();!X||(Y(X),y(L.inputValue).then(ve=>{X.value="number"===L.input?`${parseFloat(ve)||0}`:`${ve}`,I(X),X.focus(),D.hideLoading()}).catch(ve=>{A(`Error in inputValue promise: ${ve}`),X.value="",I(X),X.focus(),D.hideLoading()}))})(D,L))})(D,X),(D=>{const L=R(),X=G();"function"==typeof D.willOpen&&D.willOpen(X),w.eventEmitter.emit("willOpen",X);const Fe=window.getComputedStyle(document.body).overflowY;fr(L,X,D),setTimeout(()=>{cr(L,X)},10),it()&&(hr(L,D.scrollbarPadding,Fe),(()=>{const D=R();Array.from(document.body.children).forEach(X=>{X.contains(D)||(X.hasAttribute("aria-hidden")&&X.setAttribute("data-previous-aria-hidden",X.getAttribute("aria-hidden")||""),X.setAttribute("aria-hidden","true"))})})()),!ot()&&!w.previousActiveElement&&(w.previousActiveElement=document.activeElement),"function"==typeof D.didOpen&&setTimeout(()=>D.didOpen(X)),w.eventEmitter.emit("didOpen",X),d(L,u["no-transition"])})(X),br(w,X,lt),wr(L,X),setTimeout(()=>{L.container.scrollTop=0})}),vr=(D,L)=>{const X=(D=>{const L="string"==typeof D.template?document.querySelector(D.template):D.template;if(!L)return{};const X=L.content;return(D=>{const L=Sn.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(D.children).forEach(X=>{const ve=X.tagName.toLowerCase();L.includes(ve)||b(`Unrecognized element <${ve}>`)})})(X),Object.assign((D=>{const L={};return Array.from(D.querySelectorAll("swal-param")).forEach(ve=>{di(ve,["name","value"]);const Fe=ve.getAttribute("name"),lt=ve.getAttribute("value");!Fe||!lt||(L[Fe]="boolean"==typeof Cn[Fe]?"false"!==lt:"object"==typeof Cn[Fe]?JSON.parse(lt):lt)}),L})(X),(D=>{const L={};return Array.from(D.querySelectorAll("swal-function-param")).forEach(ve=>{const Fe=ve.getAttribute("name"),lt=ve.getAttribute("value");!Fe||!lt||(L[Fe]=new Function(`return ${lt}`)())}),L})(X),(D=>{const L={};return Array.from(D.querySelectorAll("swal-button")).forEach(ve=>{di(ve,["type","color","aria-label"]);const Fe=ve.getAttribute("type");!Fe||!["confirm","cancel","deny"].includes(Fe)||(L[`${Fe}ButtonText`]=ve.innerHTML,L[`show${O(Fe)}Button`]=!0,ve.hasAttribute("color")&&(L[`${Fe}ButtonColor`]=ve.getAttribute("color")),ve.hasAttribute("aria-label")&&(L[`${Fe}ButtonAriaLabel`]=ve.getAttribute("aria-label")))}),L})(X),(D=>{const L={},X=D.querySelector("swal-image");return X&&(di(X,["src","width","height","alt"]),X.hasAttribute("src")&&(L.imageUrl=X.getAttribute("src")||void 0),X.hasAttribute("width")&&(L.imageWidth=X.getAttribute("width")||void 0),X.hasAttribute("height")&&(L.imageHeight=X.getAttribute("height")||void 0),X.hasAttribute("alt")&&(L.imageAlt=X.getAttribute("alt")||void 0)),L})(X),(D=>{const L={},X=D.querySelector("swal-icon");return X&&(di(X,["type","color"]),X.hasAttribute("type")&&(L.icon=X.getAttribute("type")),X.hasAttribute("color")&&(L.iconColor=X.getAttribute("color")),L.iconHtml=X.innerHTML),L})(X),(D=>{const L={},X=D.querySelector("swal-input");X&&(di(X,["type","label","placeholder","value"]),L.input=X.getAttribute("type")||"text",X.hasAttribute("label")&&(L.inputLabel=X.getAttribute("label")),X.hasAttribute("placeholder")&&(L.inputPlaceholder=X.getAttribute("placeholder")),X.hasAttribute("value")&&(L.inputValue=X.getAttribute("value")));const ve=Array.from(D.querySelectorAll("swal-input-option"));return ve.length&&(L.inputOptions={},ve.forEach(Fe=>{di(Fe,["value"]);const lt=Fe.getAttribute("value");lt&&(L.inputOptions[lt]=Fe.innerHTML)})),L})(X),((D,L)=>{const X={};for(const ve in L){const Fe=L[ve],lt=D.querySelector(Fe);lt&&(di(lt,[]),X[Fe.replace(/^swal-/,"")]=lt.innerHTML.trim())}return X})(X,Sn))})(D),ve=Object.assign({},Cn,L,X,D);return ve.showClass=Object.assign({},Cn.showClass,ve.showClass),ve.hideClass=Object.assign({},Cn.hideClass,ve.hideClass),!1===ve.animation&&(ve.showClass={backdrop:"swal2-noanimation"},ve.hideClass={}),ve},yr=D=>{const L={popup:G(),container:R(),actions:xe(),confirmButton:se(),denyButton:me(),cancelButton:de(),loader:ce(),closeButton:we(),validationMessage:U(),progressSteps:J()};return Ft.domCache.set(D,L),L},br=(D,L,X)=>{const ve=Oe();Y(ve),L.timer&&(D.timeout=new kn(()=>{X("timer"),delete D.timeout},L.timer),L.timerProgressBar&&(I(ve),fe(ve,L,"timerProgressBar"),setTimeout(()=>{D.timeout&&D.timeout.running&&je(L.timer)})))},wr=(D,L)=>{if(!L.toast){if(!q(L.allowEnterKey))return B("allowEnterKey"),void kr();_r(D)||xr(D,L)||st(-1,1)}},_r=D=>{const L=D.popup.querySelectorAll("[autofocus]");for(const X of L)if(X instanceof HTMLElement&&he(X))return X.focus(),!0;return!1},xr=(D,L)=>L.focusDeny&&he(D.denyButton)?(D.denyButton.focus(),!0):L.focusCancel&&he(D.cancelButton)?(D.cancelButton.focus(),!0):!(!L.focusConfirm||!he(D.confirmButton)||(D.confirmButton.focus(),0)),kr=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const D=new Date,L=localStorage.getItem("swal-initiation");L?(D.getTime()-Date.parse(L))/864e5>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const X=document.createElement("audio");X.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",X.loop=!0,document.body.appendChild(X),setTimeout(()=>{X.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation",`${D}`)}an.prototype.disableButtons=oi,an.prototype.enableButtons=Zt,an.prototype.getInput=Mt,an.prototype.disableInput=Dn,an.prototype.enableInput=xi,an.prototype.hideLoading=En,an.prototype.disableLoading=En,an.prototype.showValidationMessage=si,an.prototype.resetValidationMessage=Ln,an.prototype.close=Bn,an.prototype.closePopup=Bn,an.prototype.closeModal=Bn,an.prototype.closeToast=Bn,an.prototype.rejectPromise=wi,an.prototype.update=Vt,an.prototype._destroy=Jn,Object.assign(an,cn),Object.keys(Xn).forEach(D=>{an[D]=function(){return Kn&&Kn[D]?Kn[D](...arguments):null}}),an.DismissReason=Je,an.version="11.14.4";const Xi=an;return Xi.default=Xi,Xi}),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),function(i){if(!i.hasInitialised){var f={escapeRegExp:function(j){return j.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},hasClass:function(j,l){var S=" ";return 1===j.nodeType&&(S+j.className+S).replace(/[\n\t]/g,S).indexOf(S+l+S)>=0},addClass:function(j,l){j.className+=" "+l},removeClass:function(j,l){var S=new RegExp("\\b"+this.escapeRegExp(l)+"\\b");j.className=j.className.replace(S,"")},interpolateString:function(j,l){return j.replace(/{{([a-z][a-z0-9\-_]*)}}/gi,function(S){return l(arguments[1])||""})},getCookie:function(j){var l=("; "+document.cookie).split("; "+j+"=");return l.length<2?void 0:l.pop().split(";").shift()},setCookie:function(j,l,S,w,k,p){var m=new Date;m.setHours(m.getHours()+24*(S||365));var v=[j+"="+l,"expires="+m.toUTCString(),"path="+(k||"/")];w&&v.push("domain="+w),p&&v.push("secure"),document.cookie=v.join(";")},deepExtend:function(j,l){for(var S in l)l.hasOwnProperty(S)&&(S in j&&this.isPlainObject(j[S])&&this.isPlainObject(l[S])?this.deepExtend(j[S],l[S]):j[S]=l[S]);return j},throttle:function(j,l){var S=!1;return function(){S||(j.apply(this,arguments),S=!0,setTimeout(function(){S=!1},l))}},hash:function(j){var l,S,w=0;if(0===j.length)return w;for(l=0,S=j.length;l<S;++l)w=(w<<5)-w+j.charCodeAt(l),w|=0;return w},normaliseHex:function(j){return"#"==j[0]&&(j=j.substr(1)),3==j.length&&(j=j[0]+j[0]+j[1]+j[1]+j[2]+j[2]),j},getContrast:function(j){return j=this.normaliseHex(j),(299*parseInt(j.substr(0,2),16)+587*parseInt(j.substr(2,2),16)+114*parseInt(j.substr(4,2),16))/1e3>=128?"#000":"#fff"},getLuminance:function(j){var l=parseInt(this.normaliseHex(j),16),S=38+(l>>16),w=38+(l>>8&255),k=38+(255&l);return"#"+(16777216+65536*(S<255?S<1?0:S:255)+256*(w<255?w<1?0:w:255)+(k<255?k<1?0:k:255)).toString(16).slice(1)},isMobile:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},isPlainObject:function(j){return"object"==typeof j&&null!==j&&j.constructor==Object},traverseDOMPath:function(j,l){return j&&j.parentNode?f.hasClass(j,l)?j:this.traverseDOMPath(j.parentNode,l):null}};i.status={deny:"deny",allow:"allow",dismiss:"dismiss"},i.transitionEnd=function(){var j=document.createElement("div"),l={t:"transitionend",OT:"oTransitionEnd",msT:"MSTransitionEnd",MozT:"transitionend",WebkitT:"webkitTransitionEnd"};for(var S in l)if(l.hasOwnProperty(S)&&void 0!==j.style[S+"ransition"])return l[S];return""}(),i.hasTransition=!!i.transitionEnd;var g=Object.keys(i.status).map(f.escapeRegExp);i.customStyles={},i.Popup=function(){var j={enabled:!0,container:null,cookie:{name:"cookieconsent_status",path:"/",domain:"",expiryDays:365,secure:!1},onPopupOpen:function(){},onPopupClose:function(){},onInitialise:function(u){},onStatusChange:function(u,C){},onRevokeChoice:function(){},onNoCookieLaw:function(u,C){},content:{header:"Cookies used on the website!",message:"This website uses cookies to ensure you get the best experience on our website.",dismiss:"Got it!",allow:"Allow cookies",deny:"Decline",link:"Learn more",href:"https://www.cookiesandyou.com",close:"❌",target:"_blank",policy:"Cookie Policy"},elements:{header:'<span class="cc-header">{{header}}</span> ',message:'<span id="cookieconsent:desc" class="cc-message">{{message}}</span>',messagelink:'<span id="cookieconsent:desc" class="cc-message">{{message}} <a aria-label="learn more about cookies" role=button tabindex="0" class="cc-link" href="{{href}}" rel="noopener noreferrer nofollow" target="{{target}}">{{link}}</a></span>',dismiss:'<a aria-label="dismiss cookie message" role=button tabindex="0" class="cc-btn cc-dismiss">{{dismiss}}</a>',allow:'<a aria-label="allow cookies" role=button tabindex="0" class="cc-btn cc-allow">{{allow}}</a>',deny:'<a aria-label="deny cookies" role=button tabindex="0" class="cc-btn cc-deny">{{deny}}</a>',link:'<a aria-label="learn more about cookies" role=button tabindex="0" class="cc-link" href="{{href}}" rel="noopener noreferrer nofollow" target="{{target}}">{{link}}</a>',close:'<span aria-label="dismiss cookie message" role=button tabindex="0" class="cc-close">{{close}}</span>'},window:'<div role="dialog" aria-live="polite" aria-label="cookieconsent" aria-describedby="cookieconsent:desc" class="cc-window {{classes}}">\x3c!--googleoff: all--\x3e{{children}}\x3c!--googleon: all--\x3e</div>',revokeBtn:'<div class="cc-revoke {{classes}}">{{policy}}</div>',compliance:{info:'<div class="cc-compliance">{{dismiss}}</div>',"opt-in":'<div class="cc-compliance cc-highlight">{{deny}}{{allow}}</div>',"opt-out":'<div class="cc-compliance cc-highlight">{{deny}}{{allow}}</div>'},type:"info",layouts:{basic:"{{messagelink}}{{compliance}}","basic-close":"{{messagelink}}{{compliance}}{{close}}","basic-header":"{{header}}{{message}}{{link}}{{compliance}}"},layout:"basic",position:"bottom",theme:"block",static:!1,palette:null,revokable:!1,animateRevokable:!0,showLink:!0,dismissOnScroll:!1,dismissOnTimeout:!1,dismissOnWindowClick:!1,ignoreClicksFrom:["cc-revoke","cc-btn"],autoOpen:!0,autoAttach:!0,whitelistPage:[],blacklistPage:[],overrideHTML:null};function l(){this.initialise.apply(this,arguments)}function S(u){this.openingTimeout=null,f.removeClass(u,"cc-invisible")}function w(u){u.style.display="none",u.removeEventListener(i.transitionEnd,this.afterTransition),this.afterTransition=null}function k(){var u=this.options.position.split("-"),C=[];return u.forEach(function(T){C.push("cc-"+T)}),C}function p(u){var C=this.options,T=document.createElement("div"),M=C.container&&1===C.container.nodeType?C.container:document.body;T.innerHTML=u;var O=T.children[0];return O.style.display="none",f.hasClass(O,"cc-window")&&i.hasTransition&&f.addClass(O,"cc-invisible"),this.onButtonClick=function(b){var A=f.traverseDOMPath(b.target,"cc-btn")||b.target;if(f.hasClass(A,"cc-btn")){var c=A.className.match(new RegExp("\\bcc-("+g.join("|")+")\\b")),P=c&&c[1]||!1;P&&(this.setStatus(P),this.close(!0))}f.hasClass(A,"cc-close")&&(this.setStatus(i.status.dismiss),this.close(!0)),f.hasClass(A,"cc-revoke")&&this.revokeChoice()}.bind(this),O.addEventListener("click",this.onButtonClick),C.autoAttach&&(M.firstChild?M.insertBefore(O,M.firstChild):M.appendChild(O)),O}function m(u){return"000000"==(u=f.normaliseHex(u))?"#222":f.getLuminance(u)}function v(u,C){for(var T=0,M=u.length;T<M;++T){var O=u[T];if(O instanceof RegExp&&O.test(C)||"string"==typeof O&&O.length&&O===C)return!0}return!1}return l.prototype.initialise=function(u){this.options&&this.destroy(),f.deepExtend(this.options={},j),f.isPlainObject(u)&&f.deepExtend(this.options,u),function(){var O=this.options.onInitialise.bind(this);if(!window.navigator.cookieEnabled)return O(i.status.deny),!0;if(window.CookiesOK||window.navigator.CookiesOK)return O(i.status.allow),!0;var b=Object.keys(i.status),A=this.getStatus(),c=b.indexOf(A)>=0;return c&&O(A),c}.call(this)&&(this.options.enabled=!1),v(this.options.blacklistPage,location.pathname)&&(this.options.enabled=!1),v(this.options.whitelistPage,location.pathname)&&(this.options.enabled=!0);var C=this.options.window.replace("{{classes}}",function(){var O=this.options,b="top"==O.position||"bottom"==O.position?"banner":"floating";f.isMobile()&&(b="floating");var A=["cc-"+b,"cc-type-"+O.type,"cc-theme-"+O.theme];return O.static&&A.push("cc-static"),A.push.apply(A,k.call(this)),function(c){var P=f.hash(JSON.stringify(c)),B="cc-color-override-"+P,q=f.isPlainObject(c);return this.customStyleSelector=q?B:null,q&&function(o,y,_){if(i.customStyles[o])++i.customStyles[o].references;else{var R={},N=y.popup,W=y.button,G=y.highlight;N&&(N.text=N.text?N.text:f.getContrast(N.background),N.link=N.link?N.link:N.text,R[_+".cc-window"]=["color: "+N.text,"background-color: "+N.background],R[_+".cc-revoke"]=["color: "+N.text,"background-color: "+N.background],R[_+" .cc-link,"+_+" .cc-link:active,"+_+" .cc-link:visited"]=["color: "+N.link],W&&(W.text=W.text?W.text:f.getContrast(W.background),W.border=W.border?W.border:"transparent",R[_+" .cc-btn"]=["color: "+W.text,"border-color: "+W.border,"background-color: "+W.background],W.padding&&R[_+" .cc-btn"].push("padding: "+W.padding),"transparent"!=W.background&&(R[_+" .cc-btn:hover, "+_+" .cc-btn:focus"]=["background-color: "+(W.hover||m(W.background))]),G?(G.text=G.text?G.text:f.getContrast(G.background),G.border=G.border?G.border:"transparent",R[_+" .cc-highlight .cc-btn:first-child"]=["color: "+G.text,"border-color: "+G.border,"background-color: "+G.background]):R[_+" .cc-highlight .cc-btn:first-child"]=["color: "+N.text]));var ne=document.createElement("style");document.head.appendChild(ne),i.customStyles[o]={references:1,element:ne.sheet};var Z=-1;for(var te in R)R.hasOwnProperty(te)&&ne.sheet.insertRule(te+"{"+R[te].join(";")+"}",++Z)}}(P,c,"."+B),q}.call(this,this.options.palette),this.customStyleSelector&&A.push(this.customStyleSelector),A}.call(this).join(" ")).replace("{{children}}",function(){var O={},b=this.options;b.showLink||(b.elements.link="",b.elements.messagelink=b.elements.message),Object.keys(b.elements).forEach(function(P){O[P]=f.interpolateString(b.elements[P],function(B){var q=b.content[B];return B&&"string"==typeof q&&q.length?q:""})});var A=b.compliance[b.type];A||(A=b.compliance.info),O.compliance=f.interpolateString(A,function(P){return O[P]});var c=b.layouts[b.layout];return c||(c=b.layouts.basic),f.interpolateString(c,function(P){return O[P]})}.call(this)),T=this.options.overrideHTML;if("string"==typeof T&&T.length&&(C=T),this.options.static){var M=p.call(this,'<div class="cc-grower">'+C+"</div>");M.style.display="",this.element=M.firstChild,this.element.style.display="none",f.addClass(this.element,"cc-invisible")}else this.element=p.call(this,C);(function(){var O=this.setStatus.bind(this),b=this.close.bind(this),A=this.options.dismissOnTimeout;"number"==typeof A&&A>=0&&(this.dismissTimeout=window.setTimeout(function(){O(i.status.dismiss),b(!0)},Math.floor(A)));var c=this.options.dismissOnScroll;if("number"==typeof c&&c>=0){var P=function(y){window.pageYOffset>Math.floor(c)&&(O(i.status.dismiss),b(!0),window.removeEventListener("scroll",P),this.onWindowScroll=null)};this.options.enabled&&(this.onWindowScroll=P,window.addEventListener("scroll",P))}var q=this.options.ignoreClicksFrom;if(this.options.dismissOnWindowClick){var o=function(y){for(var _=!1,R=y.path.length,N=q.length,W=0;W<R;W++)if(!_)for(var G=0;G<N;G++)_||(_=f.hasClass(y.path[W],q[G]));_||(O(i.status.dismiss),b(!0),window.removeEventListener("click",o),window.removeEventListener("touchend",o),this.onWindowClick=null)}.bind(this);this.options.enabled&&(this.onWindowClick=o,window.addEventListener("click",o),window.addEventListener("touchend",o))}}).call(this),function(){if("info"!=this.options.type&&(this.options.revokable=!0),f.isMobile()&&(this.options.animateRevokable=!1),this.options.revokable){var O=k.call(this);this.options.animateRevokable&&O.push("cc-animate"),this.customStyleSelector&&O.push(this.customStyleSelector);var b=this.options.revokeBtn.replace("{{classes}}",O.join(" ")).replace("{{policy}}",this.options.content.policy);this.revokeBtn=p.call(this,b);var A=this.revokeBtn;if(this.options.animateRevokable){var c=f.throttle(function(P){var B=!1,q=window.innerHeight-20;f.hasClass(A,"cc-top")&&P.clientY<20&&(B=!0),f.hasClass(A,"cc-bottom")&&P.clientY>q&&(B=!0),B?f.hasClass(A,"cc-active")||f.addClass(A,"cc-active"):f.hasClass(A,"cc-active")&&f.removeClass(A,"cc-active")},200);this.onMouseMove=c,window.addEventListener("mousemove",c)}}}.call(this),this.options.autoOpen&&this.autoOpen()},l.prototype.destroy=function(){this.onButtonClick&&this.element&&(this.element.removeEventListener("click",this.onButtonClick),this.onButtonClick=null),this.dismissTimeout&&(clearTimeout(this.dismissTimeout),this.dismissTimeout=null),this.onWindowScroll&&(window.removeEventListener("scroll",this.onWindowScroll),this.onWindowScroll=null),this.onWindowClick&&(window.removeEventListener("click",this.onWindowClick),this.onWindowClick=null),this.onMouseMove&&(window.removeEventListener("mousemove",this.onMouseMove),this.onMouseMove=null),this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=null,this.revokeBtn&&this.revokeBtn.parentNode&&this.revokeBtn.parentNode.removeChild(this.revokeBtn),this.revokeBtn=null,function(u){if(f.isPlainObject(u)){var C=f.hash(JSON.stringify(u)),T=i.customStyles[C];if(T&&!--T.references){var M=T.element.ownerNode;M&&M.parentNode&&M.parentNode.removeChild(M),i.customStyles[C]=null}}}(this.options.palette),this.options=null},l.prototype.open=function(u){if(this.element)return this.isOpen()||(i.hasTransition?this.fadeIn():this.element.style.display="",this.options.revokable&&this.toggleRevokeButton(),this.options.onPopupOpen.call(this)),this},l.prototype.close=function(u){if(this.element)return this.isOpen()&&(i.hasTransition?this.fadeOut():this.element.style.display="none",u&&this.options.revokable&&this.toggleRevokeButton(!0),this.options.onPopupClose.call(this)),this},l.prototype.fadeIn=function(){var u=this.element;i.hasTransition&&u&&(this.afterTransition&&w.call(this,u),f.hasClass(u,"cc-invisible"))&&(u.style.display="",this.options.static&&(this.element.parentNode.style.maxHeight=this.element.clientHeight+"px"),this.openingTimeout=setTimeout(S.bind(this,u),20))},l.prototype.fadeOut=function(){var u=this.element;i.hasTransition&&u&&(this.openingTimeout&&(clearTimeout(this.openingTimeout),S.bind(this,u)),f.hasClass(u,"cc-invisible")||(this.options.static&&(this.element.parentNode.style.maxHeight=""),this.afterTransition=w.bind(this,u),u.addEventListener(i.transitionEnd,this.afterTransition),f.addClass(u,"cc-invisible")))},l.prototype.isOpen=function(){return this.element&&""==this.element.style.display&&(!i.hasTransition||!f.hasClass(this.element,"cc-invisible"))},l.prototype.toggleRevokeButton=function(u){this.revokeBtn&&(this.revokeBtn.style.display=u?"":"none")},l.prototype.revokeChoice=function(u){this.options.enabled=!0,this.clearStatus(),this.options.onRevokeChoice.call(this),u||this.autoOpen()},l.prototype.hasAnswered=function(u){return Object.keys(i.status).indexOf(this.getStatus())>=0},l.prototype.hasConsented=function(u){var C=this.getStatus();return C==i.status.allow||C==i.status.dismiss},l.prototype.autoOpen=function(u){!this.hasAnswered()&&this.options.enabled?this.open():this.hasAnswered()&&this.options.revokable&&this.toggleRevokeButton(!0)},l.prototype.setStatus=function(u){var C=this.options.cookie,T=f.getCookie(C.name),M=Object.keys(i.status).indexOf(T)>=0;Object.keys(i.status).indexOf(u)>=0?(f.setCookie(C.name,u,C.expiryDays,C.domain,C.path,C.secure),this.options.onStatusChange.call(this,u,M)):this.clearStatus()},l.prototype.getStatus=function(){return f.getCookie(this.options.cookie.name)},l.prototype.clearStatus=function(){var u=this.options.cookie;f.setCookie(u.name,"",-1,u.domain,u.path)},l}(),i.Location=function(){var j={timeout:5e3,services:["ipinfo"],serviceDefinitions:{ipinfo:function(){return{url:"//ipinfo.io",headers:["Accept: application/json"],callback:function(p,m){try{var v=JSON.parse(m);return v.error?k(v):{code:v.country}}catch(u){return k({error:"Invalid response ("+u+")"})}}}},ipinfodb:function(p){return{url:"//api.ipinfodb.com/v3/ip-country/?key={api_key}&format=json&callback={callback}",isScript:!0,callback:function(m,v){try{var u=JSON.parse(v);return"ERROR"==u.statusCode?k({error:u.statusMessage}):{code:u.countryCode}}catch(C){return k({error:"Invalid response ("+C+")"})}}}},maxmind:function(){return{url:"//js.maxmind.com/js/apis/geoip2/v2.1/geoip2.js",isScript:!0,callback:function(p){window.geoip2?geoip2.country(function(m){try{p({code:m.country.iso_code})}catch(v){p(k(v))}},function(m){p(k(m))}):p(new Error("Unexpected response format. The downloaded script should have exported `geoip2` to the global scope"))}}}}};function l(p){f.deepExtend(this.options={},j),f.isPlainObject(p)&&f.deepExtend(this.options,p),this.currentServiceIndex=-1}function S(p,m,v){var u,C=document.createElement("script");C.type="text/"+(p.type||"javascript"),C.src=p.src||p,C.async=!1,C.onreadystatechange=C.onload=function(){var T=C.readyState;clearTimeout(u),m.done||T&&!/loaded|complete/.test(T)||(m.done=!0,m(),C.onreadystatechange=C.onload=null)},document.body.appendChild(C),u=setTimeout(function(){m.done=!0,m(),C.onreadystatechange=C.onload=null},v)}function w(p,m,v,u,C){var T=new(window.XMLHttpRequest||window.ActiveXObject)("MSXML2.XMLHTTP.3.0");if(T.open(u?"POST":"GET",p,1),T.setRequestHeader("Content-type","application/x-www-form-urlencoded"),Array.isArray(C))for(var M=0,O=C.length;M<O;++M){var b=C[M].split(":",2);T.setRequestHeader(b[0].replace(/^\s+|\s+$/g,""),b[1].replace(/^\s+|\s+$/g,""))}"function"==typeof m&&(T.onreadystatechange=function(){T.readyState>3&&m(T)}),T.send(u)}function k(p){return new Error("Error ["+(p.code||"UNKNOWN")+"]: "+p.error)}return l.prototype.getNextService=function(){var p;do{p=this.getServiceByIdx(++this.currentServiceIndex)}while(this.currentServiceIndex<this.options.services.length&&!p);return p},l.prototype.getServiceByIdx=function(p){var m=this.options.services[p];if("function"==typeof m){var v=m();return v.name&&f.deepExtend(v,this.options.serviceDefinitions[v.name](v)),v}return"string"==typeof m?this.options.serviceDefinitions[m]():f.isPlainObject(m)?this.options.serviceDefinitions[m.name](m):null},l.prototype.locate=function(p,m){var v=this.getNextService();v?(this.callbackComplete=p,this.callbackError=m,this.runService(v,this.runNextServiceOnError.bind(this))):m(new Error("No services to run"))},l.prototype.setupUrl=function(p){var m=this.getCurrentServiceOpts();return p.url.replace(/\{(.*?)\}/g,function(v,u){if("callback"===u){var C="callback"+Date.now();return window[C]=function(T){p.__JSONP_DATA=JSON.stringify(T)},C}if(u in m.interpolateUrl)return m.interpolateUrl[u]})},l.prototype.runService=function(p,m){var v=this;p&&p.url&&p.callback&&(p.isScript?S:w)(this.setupUrl(p),function(u){var C=u?u.responseText:"";p.__JSONP_DATA&&(C=p.__JSONP_DATA,delete p.__JSONP_DATA),v.runServiceCallback.call(v,m,p,C)},this.options.timeout,p.data,p.headers)},l.prototype.runServiceCallback=function(p,m,v){var u=this,C=m.callback(function(T){C||u.onServiceResult.call(u,p,T)},v);C&&this.onServiceResult.call(this,p,C)},l.prototype.onServiceResult=function(p,m){m instanceof Error||m&&m.error?p.call(this,m,null):p.call(this,null,m)},l.prototype.runNextServiceOnError=function(p,m){if(p){this.logError(p);var v=this.getNextService();v?this.runService(v,this.runNextServiceOnError.bind(this)):this.completeService.call(this,this.callbackError,new Error("All services failed"))}else this.completeService.call(this,this.callbackComplete,m)},l.prototype.getCurrentServiceOpts=function(){var p=this.options.services[this.currentServiceIndex];return"string"==typeof p?{name:p}:"function"==typeof p?p():f.isPlainObject(p)?p:{}},l.prototype.completeService=function(p,m){this.currentServiceIndex=-1,p&&p(m)},l.prototype.logError=function(p){var m=this.currentServiceIndex,v=this.getServiceByIdx(m);console.warn("The service["+m+"] ("+v.url+") responded with the following error",p)},l}(),i.Law=function(){var j={regionalLaw:!0,hasLaw:["AT","BE","BG","HR","CZ","CY","DK","EE","FI","FR","DE","EL","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","SK","ES","SE","GB","UK","GR","EU"],revokable:["HR","CY","DK","EE","FR","DE","LV","LT","NL","PT","ES"],explicitAction:["HR","IT","ES"]};function l(S){this.initialise.apply(this,arguments)}return l.prototype.initialise=function(S){f.deepExtend(this.options={},j),f.isPlainObject(S)&&f.deepExtend(this.options,S)},l.prototype.get=function(S){var w=this.options;return{hasLaw:w.hasLaw.indexOf(S)>=0,revokable:w.revokable.indexOf(S)>=0,explicitAction:w.explicitAction.indexOf(S)>=0}},l.prototype.applyLaw=function(S,w){var k=this.get(w);return k.hasLaw||(S.enabled=!1,"function"==typeof S.onNoCookieLaw&&S.onNoCookieLaw(w,k)),this.options.regionalLaw&&(k.revokable&&(S.revokable=!0),k.explicitAction&&(S.dismissOnScroll=!1,S.dismissOnTimeout=!1)),S},l}(),i.initialise=function(j,l,S){var w=new i.Law(j.law);l||(l=function(){}),S||(S=function(){});var k=Object.keys(i.status),p=f.getCookie("cookieconsent_status");k.indexOf(p)>=0?l(new i.Popup(j)):i.getCountryCode(j,function(m){delete j.law,delete j.location,m.code&&(j=w.applyLaw(j,m.code)),l(new i.Popup(j))},function(m){delete j.law,delete j.location,S(m,new i.Popup(j))})},i.getCountryCode=function(j,l,S){j.law&&j.law.countryCode?l({code:j.law.countryCode}):j.location?new i.Location(j.location).locate(function(w){l(w||{})},S):l({})},i.utils=f,i.hasInitialised=!0,window.cookieconsent=i}}(window.cookieconsent||{});var abp=abp||{};!function(){abp.appPath=abp.appPath||"/",abp.pageLoadTime=new Date,abp.toAbsAppPath=function(f){return 0==f.indexOf("/")&&(f=f.substring(1)),abp.appPath+f},abp.multiTenancy=abp.multiTenancy||{},abp.multiTenancy.isEnabled=!1,abp.multiTenancy.sides={TENANT:1,HOST:2},abp.multiTenancy.tenantIdCookieName="Abp.TenantId",abp.multiTenancy.setTenantIdCookie=function(f){f?abp.utils.setCookieValue(abp.multiTenancy.tenantIdCookieName,f.toString(),new Date((new Date).getTime()+15768e7),abp.appPath,abp.domain):abp.utils.deleteCookie(abp.multiTenancy.tenantIdCookieName,abp.appPath)},abp.multiTenancy.getTenantIdCookie=function(){var f=abp.utils.getCookieValue(abp.multiTenancy.tenantIdCookieName);return f?parseInt(f):null},abp.session=abp.session||{multiTenancySide:abp.multiTenancy.sides.HOST},abp.localization=abp.localization||{},abp.localization.languages=[],abp.localization.currentLanguage={},abp.localization.sources=[],abp.localization.values={},abp.localization.localize=function(f,g){var j=abp.localization.values[g=g||abp.localization.defaultSourceName];if(!j)return abp.log.warn("Could not find localization source: "+g),f;var l=j[f];if(null==l)return f;var S=Array.prototype.slice.call(arguments,0);return S.splice(1,1),S[0]=l,abp.utils.formatString.apply(this,S)},abp.localization.getSource=function(f){return function(g){var j=Array.prototype.slice.call(arguments,0);return j.splice(1,0,f),abp.localization.localize.apply(this,j)}},abp.localization.isCurrentCulture=function(f){return abp.localization.currentCulture&&abp.localization.currentCulture.name&&0==abp.localization.currentCulture.name.indexOf(f)},abp.localization.defaultSourceName=void 0,abp.localization.abpWeb=abp.localization.getSource("AbpWeb"),abp.auth=abp.auth||{},abp.auth.allPermissions=abp.auth.allPermissions||{},abp.auth.grantedPermissions=abp.auth.grantedPermissions||{},abp.auth.hasPermission=function(f){return abp.auth.isGranted.apply(this,arguments)},abp.auth.hasAnyOfPermissions=function(){return abp.auth.isAnyGranted.apply(this,arguments)},abp.auth.hasAllOfPermissions=function(){return abp.auth.areAllGranted.apply(this,arguments)},abp.auth.isGranted=function(f){return null!=abp.auth.allPermissions[f]&&null!=abp.auth.grantedPermissions[f]},abp.auth.isAnyGranted=function(){if(!arguments||arguments.length<=0)return!0;for(var f=0;f<arguments.length;f++)if(abp.auth.isGranted(arguments[f]))return!0;return!1},abp.auth.areAllGranted=function(){if(!arguments||arguments.length<=0)return!0;for(var f=0;f<arguments.length;f++)if(!abp.auth.isGranted(arguments[f]))return!1;return!0},abp.auth.tokenCookieName="Abp.AuthToken",abp.auth.setToken=function(f,g){let j=new Date((new Date).getTime()+288e5);abp.utils.setCookieValue(abp.auth.tokenCookieName,f,j,abp.appPath,abp.domain)},abp.auth.getToken=function(){return abp.utils.getCookieValue(abp.auth.tokenCookieName)},abp.auth.clearToken=function(){abp.auth.setToken()},abp.auth.refreshTokenCookieName="Abp.AuthRefreshToken",abp.auth.setRefreshToken=function(f,g){let j=new Date((new Date).getTime()+288e5);abp.utils.setCookieValue(abp.auth.refreshTokenCookieName,f,j,abp.appPath,abp.domain)},abp.auth.getRefreshToken=function(){return abp.utils.getCookieValue(abp.auth.refreshTokenCookieName)},abp.auth.clearRefreshToken=function(){abp.auth.setRefreshToken()},abp.features=abp.features||{},abp.features.allFeatures=abp.features.allFeatures||{},abp.features.get=function(f){return abp.features.allFeatures[f]},abp.features.getValue=function(f){var g=abp.features.get(f);if(null!=g)return g.value},abp.features.isEnabled=function(f){var g=abp.features.getValue(f);return"true"==g||"True"==g},abp.setting=abp.setting||{},abp.setting.values=abp.setting.values||{},abp.setting.get=function(f){return abp.setting.values[f]},abp.setting.getBoolean=function(f){var g=abp.setting.get(f);return"true"==g||"True"==g},abp.setting.getInt=function(f){return parseInt(abp.setting.values[f])},abp.notifications=abp.notifications||{},abp.notifications.severity={INFO:0,SUCCESS:1,WARN:2,ERROR:3,FATAL:4},abp.notifications.userNotificationState={UNREAD:0,READ:1},abp.notifications.getUserNotificationStateAsString=function(f){switch(f){case abp.notifications.userNotificationState.READ:return"READ";case abp.notifications.userNotificationState.UNREAD:return"UNREAD";default:return abp.log.warn("Unknown user notification state value: "+f),"?"}},abp.notifications.getUiNotifyFuncBySeverity=function(f){switch(f){case abp.notifications.severity.SUCCESS:return abp.notify.success;case abp.notifications.severity.WARN:return abp.notify.warn;case abp.notifications.severity.ERROR:case abp.notifications.severity.FATAL:return abp.notify.error;default:return abp.notify.info}},abp.notifications.messageFormatters={},abp.notifications.messageFormatters["Abp.Notifications.MessageNotificationData"]=function(f){return f.notification.data.message||f.notification.data.properties.Message},abp.notifications.messageFormatters["Abp.Notifications.LocalizableMessageNotificationData"]=function(f){var g=f.notification.data.message||f.notification.data.properties.Message,j=abp.localization.localize(g.name,g.sourceName);if(f.notification.data.properties)for(var l=Object.keys(f.notification.data.properties),S=0;S<l.length;S++)j=j.replace("{"+l[S]+"}",f.notification.data.properties[l[S]]);return j},abp.notifications.getFormattedMessageFromUserNotification=function(f){var g=abp.notifications.messageFormatters[f.notification.data.type];return g?abp.utils.isFunction(g)?g(f):(abp.log.warn("Message formatter should be a function! It is invalid for data type: "+f.notification.data.type),"?"):(abp.log.warn("No message formatter defined for given data type: "+f.notification.data.type),"?")},abp.notifications.showUiNotifyForUserNotification=function(f,g){var j=abp.notifications.getFormattedMessageFromUserNotification(f);abp.notifications.getUiNotifyFuncBySeverity(f.notification.severity)(j,void 0,g)},abp.log=abp.log||{},abp.log.levels={DEBUG:1,INFO:2,WARN:3,ERROR:4,FATAL:5},abp.log.level=abp.log.levels.DEBUG,abp.log.log=function(f,g){!window.console||!window.console.log||null!=g&&g<abp.log.level||console.log(f)},abp.log.debug=function(f){abp.log.log("DEBUG: ",abp.log.levels.DEBUG),abp.log.log(f,abp.log.levels.DEBUG)},abp.log.info=function(f){abp.log.log("INFO: ",abp.log.levels.INFO),abp.log.log(f,abp.log.levels.INFO)},abp.log.warn=function(f){abp.log.log("WARN: ",abp.log.levels.WARN),abp.log.log(f,abp.log.levels.WARN)},abp.log.error=function(f){abp.log.log("ERROR: ",abp.log.levels.ERROR),abp.log.log(f,abp.log.levels.ERROR)},abp.log.fatal=function(f){abp.log.log("FATAL: ",abp.log.levels.FATAL),abp.log.log(f,abp.log.levels.FATAL)},abp.notify=abp.notify||{},abp.notify.success=function(f,g,j){abp.log.warn("abp.notify.success is not implemented!")},abp.notify.info=function(f,g,j){abp.log.warn("abp.notify.info is not implemented!")},abp.notify.warn=function(f,g,j){abp.log.warn("abp.notify.warn is not implemented!")},abp.notify.error=function(f,g,j){abp.log.warn("abp.notify.error is not implemented!")},abp.message=abp.message||{};var f,i=function(f,g,j){return alert((g||"")+" "+f),$?$.Deferred(function(l){l.resolve()}):(abp.log.warn("abp.message can not return promise since jQuery is not defined!"),null)};abp.message.info=function(f,g,j){return abp.log.warn("abp.message.info is not implemented!"),i(f,g)},abp.message.success=function(f,g,j){return abp.log.warn("abp.message.success is not implemented!"),i(f,g)},abp.message.warn=function(f,g,j){return abp.log.warn("abp.message.warn is not implemented!"),i(f,g)},abp.message.error=function(f,g,j){return abp.log.warn("abp.message.error is not implemented!"),i(f,g)},abp.message.confirm=function(f,g,j,l){abp.log.warn("abp.message.confirm is not implemented!");var S=confirm(f);return j&&j(S),$?$.Deferred(function(w){w.resolve()}):(abp.log.warn("abp.message can not return promise since jQuery is not defined!"),null)},abp.ui=abp.ui||{},abp.ui.block=function(f){abp.log.warn("abp.ui.block is not implemented!")},abp.ui.unblock=function(f){abp.log.warn("abp.ui.unblock is not implemented!")},abp.ui.setBusy=function(f,g){abp.log.warn("abp.ui.setBusy is not implemented!")},abp.ui.clearBusy=function(f){abp.log.warn("abp.ui.clearBusy is not implemented!")},abp.event=(f={},{on:function(S,w){f[S]||(f[S]=[]),f[S].push(w)},off:function(S,w){var k=f[S];if(k){for(var p=-1,m=0;m<k.length;m++)if(k[m]===w){p=m;break}p<0||f[S].splice(p,1)}},trigger:function(S){var w=f[S];if(w&&w.length)for(var k=Array.prototype.slice.call(arguments,1),p=0;p<w.length;p++)w[p].apply(this,k)}}),abp.utils=abp.utils||{},abp.utils.createNamespace=function(f,g){for(var j=g.split("."),l=0;l<j.length;l++)void 0===f[j[l]]&&(f[j[l]]={}),f=f[j[l]];return f},abp.utils.replaceAll=function(f,g,j){var l=g.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return f.replace(new RegExp(l,"g"),j)},abp.utils.formatString=function(){if(arguments.length<1)return null;for(var f=arguments[0],g=1;g<arguments.length;g++){var j="{"+(g-1)+"}";f=abp.utils.replaceAll(f,j,arguments[g])}return f},abp.utils.toPascalCase=function(f){return f&&f.length?1===f.length?f.charAt(0).toUpperCase():f.charAt(0).toUpperCase()+f.substr(1):f},abp.utils.toCamelCase=function(f){return f&&f.length?1===f.length?f.charAt(0).toLowerCase():f.charAt(0).toLowerCase()+f.substr(1):f},abp.utils.truncateString=function(f,g){return!f||!f.length||f.length<=g?f:f.substr(0,g)},abp.utils.truncateStringWithPostfix=function(f,g,j){return j=j||"...",!f||!f.length||f.length<=g?f:g<=j.length?j.substr(0,g):f.substr(0,g-j.length)+j},abp.utils.isFunction=function(f){return!!(f&&f.constructor&&f.call&&f.apply)},abp.utils.buildQueryString=function(f,g){void 0===g&&(g=!0);var j="";function l(){j.length?j+="&":g&&(j+="?")}for(var S=0;S<f.length;++S){var w=f[S];if(void 0!==w.value)if(null===w.value&&(w.value=""),l(),w.value.toJSON&&"function"==typeof w.value.toJSON)j=j+w.name+"="+encodeURIComponent(w.value.toJSON());else if(Array.isArray(w.value)&&w.value.length)for(var k=0;k<w.value.length;k++)k>0&&l(),j=j+w.name+"["+k+"]="+encodeURIComponent(w.value[k]);else j=j+w.name+"="+encodeURIComponent(w.value)}return j},abp.utils.setCookieValue=function(f,g,j,l,S){var w=encodeURIComponent(f)+"=";g&&(w+=encodeURIComponent(g)),j&&(w=w+"; expires="+j.toUTCString()),l&&(w=w+"; path="+l),S&&(w=w+"; domain="+S),w+="; secure",document.cookie=w},abp.utils.getCookieValue=function(f){for(var g=document.cookie.split("; "),j=0;j<g.length;j++)if(g[j]){var l=g[j].split("=");if(2==l.length&&decodeURIComponent(l[0])===f)return decodeURIComponent(l[1]||"")}return null},abp.utils.deleteCookie=function(f,g){var j=encodeURIComponent(f)+"=";j=j+"; expires="+new Date((new Date).getTime()-864e5).toUTCString(),g&&(j=j+"; path="+g),document.cookie=j},abp.utils.getDomain=function(f){var j=/(https?:){0,1}\/\/((?:[\w\d-]+\.)+[\w\d]{2,})/i.exec(f);return j&&j[2]?j[2]:""},abp.timing=abp.timing||{},abp.timing.utcClockProvider=function(){var f=function(l){return Date.UTC(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate(),l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds())};return{now:function(){return f(new Date)},normalize:function(l){return l&&new Date(f(l))},supportsMultipleTimezone:!0}}(),abp.timing.localClockProvider=function(){var f=function(l){return new Date(l.getFullYear(),l.getMonth(),l.getDate(),l.getHours(),l.getMinutes(),l.getSeconds(),l.getMilliseconds())};return{now:function(){return f(new Date)},normalize:function(l){return l&&f(l)},supportsMultipleTimezone:!1}}(),abp.timing.unspecifiedClockProvider={now:function(){return new Date},normalize:function(j){return j},supportsMultipleTimezone:!1},abp.timing.convertToUserTimezone=function(f){var j=f.getTime()+6e4*f.getTimezoneOffset(),l=parseInt(j)+parseInt(abp.timing.timeZoneInfo.windows.currentUtcOffsetInMilliseconds);return new Date(l)},abp.clock=abp.clock||{},abp.clock.now=function(){return abp.clock.provider?abp.clock.provider.now():new Date},abp.clock.normalize=function(f){return abp.clock.provider?abp.clock.provider.normalize(f):f},abp.clock.provider=abp.timing.unspecifiedClockProvider,abp.security=abp.security||{},abp.security.antiForgery=abp.security.antiForgery||{},abp.security.antiForgery.tokenCookieName="XSRF-TOKEN",abp.security.antiForgery.tokenHeaderName="X-XSRF-TOKEN",abp.security.antiForgery.getToken=function(){return abp.utils.getCookieValue(abp.security.antiForgery.tokenCookieName)},abp.security.antiForgery.shouldSendToken=function(f){return null==f.crossDomain?abp.utils.getDomain(location.href)===abp.utils.getDomain(f.url):!f.crossDomain}}(),abp=abp||{},function(){var i=function(f,g,j,l){return j||(j=g,g=void 0),(l=l||{}).title=j,l.icon=f,l.confirmButtonText=l.confirmButtonText||abp.localization.localize("Ok","OmniViewPortal"),l.isHtml?l.html=g:l.text=g,Swal.fire(l)};abp.message.info=function(f,g,j){return i("info",f,g,j)},abp.message.success=function(f,g,j){return i("success",f,g,j)},abp.message.warn=function(f,g,j){return i("warning",f,g,j)},abp.message.error=function(f,g,j){return i("error",f,g,j)},abp.message.confirm=function(f,g,j,l){return(l=l||{}).title=g||abp.localization.localize("AreYouSure","OmniViewPortal"),l.icon="warning",l.confirmButtonText=l.confirmButtonText||abp.localization.localize("Yes","OmniViewPortal"),l.cancelButtonText=l.cancelButtonText||abp.localization.localize("Cancel","OmniViewPortal"),l.showCancelButton=!0,l.isHtml?l.html=f:l.text=f,Swal.fire(l).then(function(S){j&&j(S.value)})}}(),abp=abp||{},function(){var i={position:"bottom-end",showConfirmButton:!1,timer:3e3,padding:0,toast:!0,animation:!1},f=function(g,j,l,S){var w=S.imageClass?'<i class="mr-2 text-white '+S.imageClass+'"></i>':"";l&&(S.title=w+'<span class="text-white">'+l+"</span>"),S.html=(l?"":w)+'<span class="text-white">'+j+"</span>";var k=Object.assign({},i,S);Swal.fire(k)};abp.notify.success=function(g,j,l){f(0,g,j,Object.assign({background:"#34bfa3",imageClass:"fa fa-check-circle"},l))},abp.notify.info=function(g,j,l){f(0,g,j,Object.assign({background:"#36a3f7",imageClass:"fa fa-info-circle"},l))},abp.notify.warn=function(g,j,l){f(0,g,j,Object.assign({background:"#ffb822",imageClass:"fa fa-exclamation-triangle"},l))},abp.notify.error=function(g,j,l){f(0,g,j,Object.assign({background:"#f4516c",imageClass:"fa fa-exclamation-circle"},l))}}(),function(i){"use strict";var w,f=i.Uint8Array,g=i.HTMLCanvasElement,j=g&&g.prototype,l=/\s*;\s*base64\s*(?:;|$)/i,S="toDataURL",k=function(p){for(var b,A,m=p.length,v=new f(m/4*3|0),u=0,C=0,T=[0,0],M=0,O=0;m--;)A=p.charCodeAt(u++),255!==(b=w[A-43])&&void 0!==b&&(T[1]=T[0],T[0]=A,O=O<<6|b,4==++M&&(v[C++]=O>>>16,61!==T[1]&&(v[C++]=O>>>8),61!==T[0]&&(v[C++]=O),M=0));return v};f&&(w=new f([62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51])),g&&(!j.toBlob||!j.toBlobHD)&&(j.toBlob||(j.toBlob=function(p,m){if(m||(m="image/png"),this.mozGetAsFile)p(this.mozGetAsFile("canvas",m));else if(this.msToBlob&&/^\s*image\/png\s*(?:$|;)/i.test(m))p(this.msToBlob());else{var O,v=Array.prototype.slice.call(arguments,1),u=this[S].apply(this,v),C=u.indexOf(","),T=u.substring(C+1),M=l.test(u.substring(0,C));Blob.fake?((O=new Blob).encoding=M?"base64":"URI",O.data=T,O.size=T.length):f&&(O=M?new Blob([k(T)],{type:m}):new Blob([decodeURIComponent(T)],{type:m})),p(O)}}),j.toBlobHD=!j.toBlobHD&&j.toDataURLHD?function(){S="toDataURLHD";var p=this.toBlob();return S="toDataURL",p}:j.toBlob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content||this),function(i,f){"object"==typeof exports&&"undefined"!=typeof module?module.exports=f():"function"==typeof define&&define.amd?define(f):i.Popper=f()}(this,function(){"use strict";for(var i="undefined"!=typeof window&&"undefined"!=typeof document,f=["Edge","Trident","Firefox"],g=0,j=0;j<f.length;j+=1)if(i&&navigator.userAgent.indexOf(f[j])>=0){g=1;break}var l=i&&window.Promise?function(ae){var oe=!1;return function(){oe||(oe=!0,window.Promise.resolve().then(function(){oe=!1,ae()}))}}:function(ae){var oe=!1;return function(){oe||(oe=!0,setTimeout(function(){oe=!1,ae()},g))}};function S(ae){return ae&&"[object Function]"==={}.toString.call(ae)}function w(ae,oe){if(1!==ae.nodeType)return[];var fe=ae.ownerDocument.defaultView.getComputedStyle(ae,null);return oe?fe[oe]:fe}function k(ae){return"HTML"===ae.nodeName?ae:ae.parentNode||ae.host}function p(ae){if(!ae)return document.body;switch(ae.nodeName){case"HTML":case"BODY":return ae.ownerDocument.body;case"#document":return ae.body}var oe=w(ae);return/(auto|scroll|overlay)/.test(oe.overflow+oe.overflowY+oe.overflowX)?ae:p(k(ae))}var m=i&&!(!window.MSInputMethodContext||!document.documentMode),v=i&&/MSIE 10/.test(navigator.userAgent);function u(ae){return 11===ae?m:10===ae?v:m||v}function C(ae){if(!ae)return document.documentElement;for(var oe=u(10)?document.body:null,fe=ae.offsetParent||null;fe===oe&&ae.nextElementSibling;)fe=(ae=ae.nextElementSibling).offsetParent;var a=fe&&fe.nodeName;return a&&"BODY"!==a&&"HTML"!==a?-1!==["TH","TD","TABLE"].indexOf(fe.nodeName)&&"static"===w(fe,"position")?C(fe):fe:ae?ae.ownerDocument.documentElement:document.documentElement}function T(ae){return null!==ae.parentNode?T(ae.parentNode):ae}function M(ae,oe){if(!(ae&&ae.nodeType&&oe&&oe.nodeType))return document.documentElement;var fe=ae.compareDocumentPosition(oe)&Node.DOCUMENT_POSITION_FOLLOWING,a=fe?ae:oe,h=fe?oe:ae,n=document.createRange();n.setStart(a,0),n.setEnd(h,0);var r,d,E=n.commonAncestorContainer;if(ae!==E&&oe!==E||a.contains(h))return"BODY"===(d=(r=E).nodeName)||"HTML"!==d&&C(r.firstElementChild)!==r?C(E):E;var F=T(ae);return F.host?M(F.host,oe):M(ae,T(oe).host)}function O(ae){var oe="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",fe=ae.nodeName;if("BODY"===fe||"HTML"===fe){var a=ae.ownerDocument.documentElement;return(ae.ownerDocument.scrollingElement||a)[oe]}return ae[oe]}function b(ae,oe){var fe="x"===oe?"Left":"Top",a="Left"===fe?"Right":"Bottom";return parseFloat(ae["border"+fe+"Width"],10)+parseFloat(ae["border"+a+"Width"],10)}function A(ae,oe,fe,a){return Math.max(oe["offset"+ae],oe["scroll"+ae],fe["client"+ae],fe["offset"+ae],fe["scroll"+ae],u(10)?parseInt(fe["offset"+ae])+parseInt(a["margin"+("Height"===ae?"Top":"Left")])+parseInt(a["margin"+("Height"===ae?"Bottom":"Right")]):0)}function c(ae){var oe=ae.body,fe=ae.documentElement,a=u(10)&&getComputedStyle(fe);return{height:A("Height",oe,fe,a),width:A("Width",oe,fe,a)}}var P=function(ae,oe){if(!(ae instanceof oe))throw new TypeError("Cannot call a class as a function")},B=function(){function ae(oe,fe){for(var a=0;a<fe.length;a++){var h=fe[a];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(oe,h.key,h)}}return function(oe,fe,a){return fe&&ae(oe.prototype,fe),a&&ae(oe,a),oe}}(),q=function(ae,oe,fe){return oe in ae?Object.defineProperty(ae,oe,{value:fe,enumerable:!0,configurable:!0,writable:!0}):ae[oe]=fe,ae},o=Object.assign||function(ae){for(var oe=1;oe<arguments.length;oe++){var fe=arguments[oe];for(var a in fe)Object.prototype.hasOwnProperty.call(fe,a)&&(ae[a]=fe[a])}return ae};function y(ae){return o({},ae,{right:ae.left+ae.width,bottom:ae.top+ae.height})}function _(ae){var oe={};try{if(u(10)){oe=ae.getBoundingClientRect();var fe=O(ae,"top"),a=O(ae,"left");oe.top+=fe,oe.left+=a,oe.bottom+=fe,oe.right+=a}else oe=ae.getBoundingClientRect()}catch(Y){}var h={left:oe.left,top:oe.top,width:oe.right-oe.left,height:oe.bottom-oe.top},n="HTML"===ae.nodeName?c(ae.ownerDocument):{},E=ae.offsetWidth-(n.width||ae.clientWidth||h.right-h.left),F=ae.offsetHeight-(n.height||ae.clientHeight||h.bottom-h.top);if(E||F){var I=w(ae);E-=b(I,"x"),F-=b(I,"y"),h.width-=E,h.height-=F}return y(h)}function R(ae,oe){var fe=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=u(10),h="HTML"===oe.nodeName,n=_(ae),r=_(oe),d=p(ae),E=w(oe),F=parseFloat(E.borderTopWidth,10),I=parseFloat(E.borderLeftWidth,10);fe&&h&&(r.top=Math.max(r.top,0),r.left=Math.max(r.left,0));var Y=y({top:n.top-r.top-F,left:n.left-r.left-I,width:n.width,height:n.height});if(Y.marginTop=0,Y.marginLeft=0,!a&&h){var V=parseFloat(E.marginTop,10),ie=parseFloat(E.marginLeft,10);Y.top-=F-V,Y.bottom-=F-V,Y.left-=I-ie,Y.right-=I-ie,Y.marginTop=V,Y.marginLeft=ie}return(a&&!fe?oe.contains(d):oe===d&&"BODY"!==d.nodeName)&&(Y=function(re,he){var be=arguments.length>2&&void 0!==arguments[2]&&arguments[2],qe=O(he,"top"),Ee=O(he,"left"),je=be?-1:1;return re.top+=qe*je,re.bottom+=qe*je,re.left+=Ee*je,re.right+=Ee*je,re}(Y,oe)),Y}function N(ae){if(!ae||!ae.parentElement||u())return document.documentElement;for(var oe=ae.parentElement;oe&&"none"===w(oe,"transform");)oe=oe.parentElement;return oe||document.documentElement}function W(ae,oe,fe,a){var h=arguments.length>4&&void 0!==arguments[4]&&arguments[4],n={top:0,left:0},r=h?N(ae):M(ae,oe);if("viewport"===a)n=function(ie){var re=arguments.length>1&&void 0!==arguments[1]&&arguments[1],he=ie.ownerDocument.documentElement,be=R(ie,he),qe=Math.max(he.clientWidth,window.innerWidth||0),Ee=Math.max(he.clientHeight,window.innerHeight||0),je=re?0:O(he),Ke=re?0:O(he,"left");return y({top:je-be.top+be.marginTop,left:Ke-be.left+be.marginLeft,width:qe,height:Ee})}(r,h);else{var d=void 0;"scrollParent"===a?"BODY"===(d=p(k(oe))).nodeName&&(d=ae.ownerDocument.documentElement):d="window"===a?ae.ownerDocument.documentElement:a;var E=R(d,r,h);if("HTML"!==d.nodeName||function ie(re){var he=re.nodeName;if("BODY"===he||"HTML"===he)return!1;if("fixed"===w(re,"position"))return!0;var be=k(re);return!!be&&ie(be)}(r))n=E;else{var F=c(ae.ownerDocument),I=F.height,Y=F.width;n.top+=E.top-E.marginTop,n.bottom=I+E.top,n.left+=E.left-E.marginLeft,n.right=Y+E.left}}var V="number"==typeof(fe=fe||0);return n.left+=V?fe:fe.left||0,n.top+=V?fe:fe.top||0,n.right-=V?fe:fe.right||0,n.bottom-=V?fe:fe.bottom||0,n}function G(ae,oe,fe,a,h){var n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===ae.indexOf("auto"))return ae;var r=W(fe,a,n,h),d={top:{width:r.width,height:oe.top-r.top},right:{width:r.right-oe.right,height:r.height},bottom:{width:r.width,height:r.bottom-oe.bottom},left:{width:oe.left-r.left,height:r.height}},E=Object.keys(d).map(function(V){return o({key:V},d[V],{area:(ie=d[V],ie.width*ie.height)});var ie}).sort(function(V,ie){return ie.area-V.area}),F=E.filter(function(V){return V.width>=fe.clientWidth&&V.height>=fe.clientHeight}),I=F.length>0?F[0].key:E[0].key,Y=ae.split("-")[1];return I+(Y?"-"+Y:"")}function ne(ae,oe,fe){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return R(fe,a?N(oe):M(oe,fe),a)}function Z(ae){var oe=ae.ownerDocument.defaultView.getComputedStyle(ae),fe=parseFloat(oe.marginTop||0)+parseFloat(oe.marginBottom||0),a=parseFloat(oe.marginLeft||0)+parseFloat(oe.marginRight||0);return{width:ae.offsetWidth+a,height:ae.offsetHeight+fe}}function te(ae){var oe={left:"right",right:"left",bottom:"top",top:"bottom"};return ae.replace(/left|right|bottom|top/g,function(fe){return oe[fe]})}function ge(ae,oe,fe){fe=fe.split("-")[0];var a=Z(ae),h={width:a.width,height:a.height},n=-1!==["right","left"].indexOf(fe),r=n?"top":"left",d=n?"left":"top",E=n?"height":"width",F=n?"width":"height";return h[r]=oe[r]+oe[E]/2-a[E]/2,h[d]=fe===d?oe[d]-a[F]:oe[te(d)],h}function Q(ae,oe){return Array.prototype.find?ae.find(oe):ae.filter(oe)[0]}function J(ae,oe,fe){return(void 0===fe?ae:ae.slice(0,function(a,h,n){if(Array.prototype.findIndex)return a.findIndex(function(d){return d[h]===n});var r=Q(a,function(d){return d[h]===n});return a.indexOf(r)}(ae,"name",fe))).forEach(function(a){a.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var h=a.function||a.fn;a.enabled&&S(h)&&(oe.offsets.popper=y(oe.offsets.popper),oe.offsets.reference=y(oe.offsets.reference),oe=h(oe,a))}),oe}function U(ae,oe){return ae.some(function(fe){return fe.enabled&&fe.name===oe})}function se(ae){for(var oe=[!1,"ms","Webkit","Moz","O"],fe=ae.charAt(0).toUpperCase()+ae.slice(1),a=0;a<oe.length;a++){var h=oe[a],n=h?""+h+fe:ae;if(void 0!==document.body.style[n])return n}return null}function de(ae){var oe=ae.ownerDocument;return oe?oe.defaultView:window}function Se(){var oe;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(oe=this.state,de(this.reference).removeEventListener("resize",oe.updateBound),oe.scrollParents.forEach(function(fe){fe.removeEventListener("scroll",oe.updateBound)}),oe.updateBound=null,oe.scrollParents=[],oe.scrollElement=null,oe.eventsEnabled=!1,oe))}function ce(ae){return""!==ae&&!isNaN(parseFloat(ae))&&isFinite(ae)}function xe(ae,oe){Object.keys(oe).forEach(function(fe){var a="";-1!==["width","height","top","right","bottom","left"].indexOf(fe)&&ce(oe[fe])&&(a="px"),ae.style[fe]=oe[fe]+a})}var Re=i&&/Firefox/i.test(navigator.userAgent);function Oe(ae,oe,fe){var a=Q(ae,function(d){return d.name===oe}),h=!!a&&ae.some(function(d){return d.name===fe&&d.enabled&&d.order<a.order});if(!h){var n="`"+oe+"`";console.warn("`"+fe+"` modifier is required by "+n+" modifier in order to work, be sure to include it before "+n+"!")}return h}var we=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Ue=we.slice(3);function tt(ae){var oe=arguments.length>1&&void 0!==arguments[1]&&arguments[1],fe=Ue.indexOf(ae),a=Ue.slice(fe+1).concat(Ue.slice(0,fe));return oe?a.reverse():a}var Ot={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(ae){var oe=ae.placement,fe=oe.split("-")[0],a=oe.split("-")[1];if(a){var h=ae.offsets,n=h.reference,r=h.popper,d=-1!==["bottom","top"].indexOf(fe),E=d?"left":"top",F=d?"width":"height",I={start:q({},E,n[E]),end:q({},E,n[E]+n[F]-r[F])};ae.offsets.popper=o({},r,I[a])}return ae}},offset:{order:200,enabled:!0,fn:function(ae,oe){var E,fe=oe.offset,h=ae.offsets,n=h.popper,r=h.reference,d=ae.placement.split("-")[0];return E=ce(+fe)?[+fe,0]:function ot(ae,oe,fe,a){var h=[0,0],n=-1!==["right","left"].indexOf(a),r=ae.split(/(\+|\-)/).map(function(I){return I.trim()}),d=r.indexOf(Q(r,function(I){return-1!==I.search(/,|\s/)}));r[d]&&-1===r[d].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var E=/\s*,\s*|\s+/,F=-1!==d?[r.slice(0,d).concat([r[d].split(E)[0]]),[r[d].split(E)[1]].concat(r.slice(d+1))]:[r];return(F=F.map(function(I,Y){var V=(1===Y?!n:n)?"height":"width",ie=!1;return I.reduce(function(re,he){return""===re[re.length-1]&&-1!==["+","-"].indexOf(he)?(re[re.length-1]=he,ie=!0,re):ie?(re[re.length-1]+=he,ie=!1,re):re.concat(he)},[]).map(function(re){return be=V,qe=oe,Ee=fe,je=(he=re).match(/((?:\-|\+)?\d*\.?\d*)(.*)/),Ie=je[2],(Ke=+je[1])?0===Ie.indexOf("%")?y("%p"===Ie?qe:Ee)[be]/100*Ke:"vh"===Ie||"vw"===Ie?("vh"===Ie?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*Ke:Ke:he;var he,be,qe,Ee,je,Ke,Ie})})).forEach(function(I,Y){I.forEach(function(V,ie){ce(V)&&(h[Y]+=V*("-"===I[ie-1]?-1:1))})}),h}(fe,n,r,d),"left"===d?(n.top+=E[0],n.left-=E[1]):"right"===d?(n.top+=E[0],n.left+=E[1]):"top"===d?(n.left+=E[0],n.top-=E[1]):"bottom"===d&&(n.left+=E[0],n.top+=E[1]),ae.popper=n,ae},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(ae,oe){var fe=oe.boundariesElement||C(ae.instance.popper);ae.instance.reference===fe&&(fe=C(fe));var a=se("transform"),h=ae.instance.popper.style,n=h.top,r=h.left,d=h[a];h.top="",h.left="",h[a]="";var E=W(ae.instance.popper,ae.instance.reference,oe.padding,fe,ae.positionFixed);h.top=n,h.left=r,h[a]=d,oe.boundaries=E;var I=ae.offsets.popper,Y={primary:function(V){var ie=I[V];return I[V]<E[V]&&!oe.escapeWithReference&&(ie=Math.max(I[V],E[V])),q({},V,ie)},secondary:function(V){var ie="right"===V?"left":"top",re=I[ie];return I[V]>E[V]&&!oe.escapeWithReference&&(re=Math.min(I[ie],E[V]-("right"===V?I.width:I.height))),q({},ie,re)}};return oe.priority.forEach(function(V){var ie=-1!==["left","top"].indexOf(V)?"primary":"secondary";I=o({},I,Y[ie](V))}),ae.offsets.popper=I,ae},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(ae){var oe=ae.offsets,fe=oe.popper,a=oe.reference,h=ae.placement.split("-")[0],n=Math.floor,r=-1!==["top","bottom"].indexOf(h),d=r?"right":"bottom",E=r?"left":"top",F=r?"width":"height";return fe[d]<n(a[E])&&(ae.offsets.popper[E]=n(a[E])-fe[F]),fe[E]>n(a[d])&&(ae.offsets.popper[E]=n(a[d])),ae}},arrow:{order:500,enabled:!0,fn:function(ae,oe){var fe;if(!Oe(ae.instance.modifiers,"arrow","keepTogether"))return ae;var a=oe.element;if("string"==typeof a){if(!(a=ae.instance.popper.querySelector(a)))return ae}else if(!ae.instance.popper.contains(a))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),ae;var h=ae.placement.split("-")[0],n=ae.offsets,r=n.popper,d=n.reference,E=-1!==["left","right"].indexOf(h),F=E?"height":"width",I=E?"Top":"Left",Y=I.toLowerCase(),V=E?"left":"top",ie=E?"bottom":"right",re=Z(a)[F];d[ie]-re<r[Y]&&(ae.offsets.popper[Y]-=r[Y]-(d[ie]-re)),d[Y]+re>r[ie]&&(ae.offsets.popper[Y]+=d[Y]+re-r[ie]),ae.offsets.popper=y(ae.offsets.popper);var he=d[Y]+d[F]/2-re/2,be=w(ae.instance.popper),qe=parseFloat(be["margin"+I],10),Ee=parseFloat(be["border"+I+"Width"],10),je=he-ae.offsets.popper[Y]-qe-Ee;return je=Math.max(Math.min(r[F]-re,je),0),ae.arrowElement=a,ae.offsets.arrow=(q(fe={},Y,Math.round(je)),q(fe,V,""),fe),ae},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(ae,oe){if(U(ae.instance.modifiers,"inner")||ae.flipped&&ae.placement===ae.originalPlacement)return ae;var fe=W(ae.instance.popper,ae.instance.reference,oe.padding,oe.boundariesElement,ae.positionFixed),a=ae.placement.split("-")[0],h=te(a),n=ae.placement.split("-")[1]||"",r=[];switch(oe.behavior){case"flip":r=[a,h];break;case"clockwise":r=tt(a);break;case"counterclockwise":r=tt(a,!0);break;default:r=oe.behavior}return r.forEach(function(d,E){if(a!==d||r.length===E+1)return ae;a=ae.placement.split("-")[0],h=te(a);var Ne,F=ae.offsets.popper,I=ae.offsets.reference,Y=Math.floor,V="left"===a&&Y(F.right)>Y(I.left)||"right"===a&&Y(F.left)<Y(I.right)||"top"===a&&Y(F.bottom)>Y(I.top)||"bottom"===a&&Y(F.top)<Y(I.bottom),ie=Y(F.left)<Y(fe.left),re=Y(F.right)>Y(fe.right),he=Y(F.top)<Y(fe.top),be=Y(F.bottom)>Y(fe.bottom),qe="left"===a&&ie||"right"===a&&re||"top"===a&&he||"bottom"===a&&be,Ee=-1!==["top","bottom"].indexOf(a),Ie=!!oe.flipVariations&&(Ee&&"start"===n&&ie||Ee&&"end"===n&&re||!Ee&&"start"===n&&he||!Ee&&"end"===n&&be)||!!oe.flipVariationsByContent&&(Ee&&"start"===n&&re||Ee&&"end"===n&&ie||!Ee&&"start"===n&&be||!Ee&&"end"===n&&he);(V||qe||Ie)&&(ae.flipped=!0,(V||qe)&&(a=r[E+1]),Ie&&(n="end"===(Ne=n)?"start":"start"===Ne?"end":Ne),ae.placement=a+(n?"-"+n:""),ae.offsets.popper=o({},ae.offsets.popper,ge(ae.instance.popper,ae.offsets.reference,ae.placement)),ae=J(ae.instance.modifiers,ae,"flip"))}),ae},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(ae){var oe=ae.placement,fe=oe.split("-")[0],a=ae.offsets,h=a.popper,n=a.reference,r=-1!==["left","right"].indexOf(fe),d=-1===["top","left"].indexOf(fe);return h[r?"left":"top"]=n[fe]-(d?h[r?"width":"height"]:0),ae.placement=te(oe),ae.offsets.popper=y(h),ae}},hide:{order:800,enabled:!0,fn:function(ae){if(!Oe(ae.instance.modifiers,"hide","preventOverflow"))return ae;var oe=ae.offsets.reference,fe=Q(ae.instance.modifiers,function(a){return"preventOverflow"===a.name}).boundaries;if(oe.bottom<fe.top||oe.left>fe.right||oe.top>fe.bottom||oe.right<fe.left){if(!0===ae.hide)return ae;ae.hide=!0,ae.attributes["x-out-of-boundaries"]=""}else{if(!1===ae.hide)return ae;ae.hide=!1,ae.attributes["x-out-of-boundaries"]=!1}return ae}},computeStyle:{order:850,enabled:!0,fn:function(ae,oe){var fe=oe.x,a=oe.y,h=ae.offsets.popper,n=Q(ae.instance.modifiers,function(je){return"applyStyle"===je.name}).gpuAcceleration;void 0!==n&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var re,he,je,Ke,Ie,Ne,$e,Qe,rt,dt,ut,ft,gt,vt,bt,r=void 0!==n?n:oe.gpuAcceleration,d=C(ae.instance.popper),E=_(d),F={position:h.position},I=(je=ae,Ke=window.devicePixelRatio<2||!Re,Ne=(Ie=je.offsets).popper,$e=Math.round,Qe=Math.floor,rt=function(Pt){return Pt},dt=$e(Ie.reference.width),ut=$e(Ne.width),ft=-1!==["left","right"].indexOf(je.placement),gt=-1!==je.placement.indexOf("-"),bt=Ke?$e:rt,{left:(vt=Ke?ft||gt||dt%2==ut%2?$e:Qe:rt)(dt%2==1&&ut%2==1&&!gt&&Ke?Ne.left-1:Ne.left),top:bt(Ne.top),bottom:bt(Ne.bottom),right:vt(Ne.right)}),Y="bottom"===fe?"top":"bottom",V="right"===a?"left":"right",ie=se("transform");if(he="bottom"===Y?"HTML"===d.nodeName?-d.clientHeight+I.bottom:-E.height+I.bottom:I.top,re="right"===V?"HTML"===d.nodeName?-d.clientWidth+I.right:-E.width+I.right:I.left,r&&ie)F[ie]="translate3d("+re+"px, "+he+"px, 0)",F[Y]=0,F[V]=0,F.willChange="transform";else{var qe="right"===V?-1:1;F[Y]=he*("bottom"===Y?-1:1),F[V]=re*qe,F.willChange=Y+", "+V}return ae.attributes=o({},{"x-placement":ae.placement},ae.attributes),ae.styles=o({},F,ae.styles),ae.arrowStyles=o({},ae.offsets.arrow,ae.arrowStyles),ae},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(ae){var oe,fe;return xe(ae.instance.popper,ae.styles),oe=ae.instance.popper,fe=ae.attributes,Object.keys(fe).forEach(function(a){!1!==fe[a]?oe.setAttribute(a,fe[a]):oe.removeAttribute(a)}),ae.arrowElement&&Object.keys(ae.arrowStyles).length&&xe(ae.arrowElement,ae.arrowStyles),ae},onLoad:function(ae,oe,fe,a,h){var n=ne(h,oe,ae,fe.positionFixed),r=G(fe.placement,n,oe,ae,fe.modifiers.flip.boundariesElement,fe.modifiers.flip.padding);return oe.setAttribute("x-placement",r),xe(oe,{position:fe.positionFixed?"fixed":"absolute"}),fe},gpuAcceleration:void 0}}},Et=function(){function ae(oe,fe){var a=this,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};P(this,ae),this.scheduleUpdate=function(){return requestAnimationFrame(a.update)},this.update=l(this.update.bind(this)),this.options=o({},ae.Defaults,h),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=oe&&oe.jquery?oe[0]:oe,this.popper=fe&&fe.jquery?fe[0]:fe,this.options.modifiers={},Object.keys(o({},ae.Defaults.modifiers,h.modifiers)).forEach(function(r){a.options.modifiers[r]=o({},ae.Defaults.modifiers[r]||{},h.modifiers?h.modifiers[r]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(r){return o({name:r},a.options.modifiers[r])}).sort(function(r,d){return r.order-d.order}),this.modifiers.forEach(function(r){r.enabled&&S(r.onLoad)&&r.onLoad(a.reference,a.popper,a.options,r,a.state)}),this.update();var n=this.options.eventsEnabled;n&&this.enableEventListeners(),this.state.eventsEnabled=n}return B(ae,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var oe={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};oe.offsets.reference=ne(this.state,this.popper,this.reference,this.options.positionFixed),oe.placement=G(this.options.placement,oe.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),oe.originalPlacement=oe.placement,oe.positionFixed=this.options.positionFixed,oe.offsets.popper=ge(this.popper,oe.offsets.reference,oe.placement),oe.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",oe=J(this.modifiers,oe),this.state.isCreated?this.options.onUpdate(oe):(this.state.isCreated=!0,this.options.onCreate(oe))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,U(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[se("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=function me(ae,oe,fe,a){fe.updateBound=a,de(ae).addEventListener("resize",fe.updateBound,{passive:!0});var h=p(ae);return function n(r,d,E,F){var I="BODY"===r.nodeName,Y=I?r.ownerDocument.defaultView:r;Y.addEventListener(d,E,{passive:!0}),I||n(p(Y.parentNode),d,E,F),F.push(Y)}(h,"scroll",fe.updateBound,fe.scrollParents),fe.scrollElement=h,fe.eventsEnabled=!0,fe}(this.reference,0,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return Se.call(this)}}]),ae}();return Et.Utils=("undefined"!=typeof window?window:global).PopperUtils,Et.placements=we,Et.Defaults=Ot,Et}),function(i,f){"object"==typeof exports&&"undefined"!=typeof module?module.exports=f(require("popper.js")):"function"==typeof define&&define.amd?define(["popper.js"],f):i.Tooltip=f(i.Popper)}(this,function(i){"use strict";i=i&&i.hasOwnProperty("default")?i.default:i;var g=function(){function k(p,m){for(var v,u=0;u<m.length;u++)(v=m[u]).enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(p,v.key,v)}return function(p,m,v){return m&&k(p.prototype,m),v&&k(p,v),p}}(),j=Object.assign||function(k){for(var p,m=1;m<arguments.length;m++)for(var v in p=arguments[m])Object.prototype.hasOwnProperty.call(p,v)&&(k[v]=p[v]);return k},l={container:!1,delay:0,html:!1,placement:"top",title:"",template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",offset:0,arrowSelector:".tooltip-arrow, .tooltip__arrow",innerSelector:".tooltip-inner, .tooltip__inner"},S=function(){function k(p,m){(function(k,p){if(!(k instanceof p))throw new TypeError("Cannot call a class as a function")})(this,k),w.call(this),m=j({},l,m),p.jquery&&(p=p[0]),this.reference=p,this.options=m;var v="string"==typeof m.trigger?m.trigger.split(" ").filter(function(u){return-1!==["click","hover","focus"].indexOf(u)}):[];this._isOpen=!1,this._popperOptions={},this._setEventListeners(p,v,m)}return g(k,[{key:"_create",value:function(p,m,v,u){var C=window.document.createElement("div");C.innerHTML=m.trim();var T=C.childNodes[0];T.id="tooltip_"+Math.random().toString(36).substr(2,10),T.setAttribute("aria-hidden","false");var M=C.querySelector(this.options.innerSelector);return this._addTitleContent(p,v,u,M),T}},{key:"_addTitleContent",value:function(p,m,v,u){if(1===m.nodeType||11===m.nodeType)v&&u.appendChild(m);else if((T=m)&&"[object Function]"==={}.toString.call(T)){var C=m.call(p);v?u.innerHTML=C:u.textContent=C}else v?u.innerHTML=m:u.textContent=m;var T}},{key:"_show",value:function(p,m){if(this._isOpen&&!this._isOpening)return this;if(this._isOpen=!0,this._tooltipNode)return this._tooltipNode.style.visibility="visible",this._tooltipNode.setAttribute("aria-hidden","false"),this.popperInstance.update(),this;var v=p.getAttribute("title")||m.title;if(!v)return this;var u=this._create(p,m.template,v,m.html);p.setAttribute("aria-describedby",u.id);var C=this._findContainer(m.container,p);return this._append(u,C),this._popperOptions=j({},m.popperOptions,{placement:m.placement}),this._popperOptions.modifiers=j({},this._popperOptions.modifiers,{arrow:j({},this._popperOptions.modifiers&&this._popperOptions.modifiers.arrow,{element:m.arrowSelector}),offset:j({},this._popperOptions.modifiers&&this._popperOptions.modifiers.offset,{offset:m.offset})}),m.boundariesElement&&(this._popperOptions.modifiers.preventOverflow={boundariesElement:m.boundariesElement}),this.popperInstance=new i(p,u,this._popperOptions),this._tooltipNode=u,this}},{key:"_hide",value:function(){return this._isOpen?(this._isOpen=!1,this._tooltipNode.style.visibility="hidden",this._tooltipNode.setAttribute("aria-hidden","true"),this):this}},{key:"_dispose",value:function(){var p=this;return this._events.forEach(function(m){p.reference.removeEventListener(m.event,m.func)}),this._events=[],this._tooltipNode&&(this._hide(),this.popperInstance.destroy(),!this.popperInstance.options.removeOnDestroy&&(this._tooltipNode.parentNode.removeChild(this._tooltipNode),this._tooltipNode=null)),this}},{key:"_findContainer",value:function(p,m){return"string"==typeof p?p=window.document.querySelector(p):!1===p&&(p=m.parentNode),p}},{key:"_append",value:function(p,m){m.appendChild(p)}},{key:"_setEventListeners",value:function(p,m,v){var u=this,C=[],T=[];m.forEach(function(M){"hover"===M?(C.push("mouseenter"),T.push("mouseleave")):"focus"===M?(C.push("focus"),T.push("blur")):"click"===M&&(C.push("click"),T.push("click"))}),C.forEach(function(M){var O=function(b){!0===u._isOpening||(b.usedByTooltip=!0,u._scheduleShow(p,v.delay,v,b))};u._events.push({event:M,func:O}),p.addEventListener(M,O)}),T.forEach(function(M){var O=function(b){!0===b.usedByTooltip||u._scheduleHide(p,v.delay,v,b)};u._events.push({event:M,func:O}),p.addEventListener(M,O),"click"===M&&v.closeOnClickOutside&&document.addEventListener("mousedown",function(b){if(u._isOpening){var A=u.popperInstance.popper;p.contains(b.target)||A.contains(b.target)||O(b)}},!0)})}},{key:"_scheduleShow",value:function(p,m,v){var u=this;this._isOpening=!0,this._showTimeout=window.setTimeout(function(){return u._show(p,v)},m&&m.show||m||0)}},{key:"_scheduleHide",value:function(p,m,v,u){var C=this;this._isOpening=!1;var T=m&&m.hide||m||0;window.clearTimeout(this._showTimeout),window.setTimeout(function(){if(!1!==C._isOpen&&document.body.contains(C._tooltipNode)){if("mouseleave"===u.type&&C._setTooltipNodeEvent(u,p,m,v))return;C._hide(p,v)}},T)}},{key:"_updateTitleContent",value:function(p){if(void 0!==this._tooltipNode){var m=this._tooltipNode.querySelector(this.options.innerSelector);this._clearTitleContent(m,this.options.html,this.reference.getAttribute("title")||this.options.title),this._addTitleContent(this.reference,p,this.options.html,m),this.options.title=p,this.popperInstance.update()}else void 0!==this.options.title&&(this.options.title=p)}},{key:"_clearTitleContent",value:function(p,m,v){1===v.nodeType||11===v.nodeType?m&&p.removeChild(v):m?p.innerHTML="":p.textContent=""}}]),k}(),w=function(){var k=this;this.show=function(){return k._show(k.reference,k.options)},this.hide=function(){return k._hide()},this.dispose=function(){return k._dispose()},this.toggle=function(){return k._isOpen?k.hide():k.show()},this.updateTitleContent=function(p){return k._updateTitleContent(p)},this._events=[],this._setTooltipNodeEvent=function(p,m,v,u){return!!k._tooltipNode.contains(p.relatedreference||p.toElement||p.relatedTarget)&&(k._tooltipNode.addEventListener(p.type,function T(M){var O=M.relatedreference||M.toElement||M.relatedTarget;k._tooltipNode.removeEventListener(p.type,T),m.contains(O)||k._scheduleHide(m,u.delay,u,M)}),!0)}};return S}),function(i,f){"object"==typeof exports&&"undefined"!=typeof module?module.exports=f():"function"==typeof define&&define.amd?define(f):i.PerfectScrollbar=f()}(this,function(){"use strict";function i(y){return getComputedStyle(y)}function f(y,_){for(var R in _){var N=_[R];"number"==typeof N&&(N+="px"),y.style[R]=N}return y}function g(y){var _=document.createElement("div");return _.className=y,_}var j="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function l(y,_){if(!j)throw new Error("No element matching method supported");return j.call(y,_)}function S(y){y.remove?y.remove():y.parentNode&&y.parentNode.removeChild(y)}function w(y,_){return Array.prototype.filter.call(y.children,function(R){return l(R,_)})}var k_element_thumb=function(y){return"ps__thumb-"+y},k_element_rail=function(y){return"ps__rail-"+y},k_element_consuming="ps__child--consume",k_state_focus="ps--focus",k_state_clicking="ps--clicking",k_state_active=function(y){return"ps--active-"+y},k_state_scrolling=function(y){return"ps--scrolling-"+y},p={x:null,y:null};function m(y,_){var R=y.element.classList,N=k_state_scrolling(_);R.contains(N)?clearTimeout(p[_]):R.add(N)}function v(y,_){p[_]=setTimeout(function(){return y.isAlive&&y.element.classList.remove(k_state_scrolling(_))},y.settings.scrollingThreshold)}var u=function(y){this.element=y,this.handlers={}},C={isEmpty:{configurable:!0}};u.prototype.bind=function(y,_){void 0===this.handlers[y]&&(this.handlers[y]=[]),this.handlers[y].push(_),this.element.addEventListener(y,_,!1)},u.prototype.unbind=function(y,_){var R=this;this.handlers[y]=this.handlers[y].filter(function(N){return!(!_||N===_)||(R.element.removeEventListener(y,N,!1),!1)})},u.prototype.unbindAll=function(){for(var y in this.handlers)this.unbind(y)},C.isEmpty.get=function(){var y=this;return Object.keys(this.handlers).every(function(_){return 0===y.handlers[_].length})},Object.defineProperties(u.prototype,C);var T=function(){this.eventElements=[]};function M(y){if("function"==typeof window.CustomEvent)return new CustomEvent(y);var _=document.createEvent("CustomEvent");return _.initCustomEvent(y,!1,!1,void 0),_}T.prototype.eventElement=function(y){var _=this.eventElements.filter(function(R){return R.element===y})[0];return _||(_=new u(y),this.eventElements.push(_)),_},T.prototype.bind=function(y,_,R){this.eventElement(y).bind(_,R)},T.prototype.unbind=function(y,_,R){var N=this.eventElement(y);N.unbind(_,R),N.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(N),1)},T.prototype.unbindAll=function(){this.eventElements.forEach(function(y){return y.unbindAll()}),this.eventElements=[]},T.prototype.once=function(y,_,R){var N=this.eventElement(y),W=function(G){N.unbind(_,W),R(G)};N.bind(_,W)};var O=function(y,_,R,N,W){var G;if(void 0===N&&(N=!0),void 0===W&&(W=!1),"top"===_)G=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==_)throw new Error("A proper axis should be provided");G=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(ne,Z,te,ge,Q){var J=te[0],U=te[1],se=te[2],de=te[3],me=te[4],Se=te[5];void 0===ge&&(ge=!0),void 0===Q&&(Q=!1);var xe,Re,ce=ne.element;ne.reach[de]=null,ce[se]<1&&(ne.reach[de]="start"),ce[se]>ne[J]-ne[U]-1&&(ne.reach[de]="end"),Z&&(ce.dispatchEvent(M("ps-scroll-"+de)),Z<0?ce.dispatchEvent(M("ps-scroll-"+me)):Z>0&&ce.dispatchEvent(M("ps-scroll-"+Se)),ge&&(m(xe=ne,Re=de),v(xe,Re))),ne.reach[de]&&(Z||Q)&&ce.dispatchEvent(M("ps-"+de+"-reach-"+ne.reach[de]))}(y,R,G,N,W)};function b(y){return parseInt(y,10)||0}var A={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)},c=function(y){var _=y.element,R=Math.floor(_.scrollTop);y.containerWidth=_.clientWidth,y.containerHeight=_.clientHeight,y.contentWidth=_.scrollWidth,y.contentHeight=_.scrollHeight,_.contains(y.scrollbarXRail)||(w(_,k_element_rail("x")).forEach(function(N){return S(N)}),_.appendChild(y.scrollbarXRail)),_.contains(y.scrollbarYRail)||(w(_,k_element_rail("y")).forEach(function(N){return S(N)}),_.appendChild(y.scrollbarYRail)),!y.settings.suppressScrollX&&y.containerWidth+y.settings.scrollXMarginOffset<y.contentWidth?(y.scrollbarXActive=!0,y.railXWidth=y.containerWidth-y.railXMarginWidth,y.railXRatio=y.containerWidth/y.railXWidth,y.scrollbarXWidth=P(y,b(y.railXWidth*y.containerWidth/y.contentWidth)),y.scrollbarXLeft=b((y.negativeScrollAdjustment+_.scrollLeft)*(y.railXWidth-y.scrollbarXWidth)/(y.contentWidth-y.containerWidth))):y.scrollbarXActive=!1,!y.settings.suppressScrollY&&y.containerHeight+y.settings.scrollYMarginOffset<y.contentHeight?(y.scrollbarYActive=!0,y.railYHeight=y.containerHeight-y.railYMarginHeight,y.railYRatio=y.containerHeight/y.railYHeight,y.scrollbarYHeight=P(y,b(y.railYHeight*y.containerHeight/y.contentHeight)),y.scrollbarYTop=b(R*(y.railYHeight-y.scrollbarYHeight)/(y.contentHeight-y.containerHeight))):y.scrollbarYActive=!1,y.scrollbarXLeft>=y.railXWidth-y.scrollbarXWidth&&(y.scrollbarXLeft=y.railXWidth-y.scrollbarXWidth),y.scrollbarYTop>=y.railYHeight-y.scrollbarYHeight&&(y.scrollbarYTop=y.railYHeight-y.scrollbarYHeight),function(N,W){var G={width:W.railXWidth},ne=Math.floor(N.scrollTop);G.left=W.isRtl?W.negativeScrollAdjustment+N.scrollLeft+W.containerWidth-W.contentWidth:N.scrollLeft,W.isScrollbarXUsingBottom?G.bottom=W.scrollbarXBottom-ne:G.top=W.scrollbarXTop+ne,f(W.scrollbarXRail,G);var Z={top:ne,height:W.railYHeight};W.isScrollbarYUsingRight?Z.right=W.isRtl?W.contentWidth-(W.negativeScrollAdjustment+N.scrollLeft)-W.scrollbarYRight-W.scrollbarYOuterWidth:W.scrollbarYRight-N.scrollLeft:Z.left=W.isRtl?W.negativeScrollAdjustment+N.scrollLeft+2*W.containerWidth-W.contentWidth-W.scrollbarYLeft-W.scrollbarYOuterWidth:W.scrollbarYLeft+N.scrollLeft,f(W.scrollbarYRail,Z),f(W.scrollbarX,{left:W.scrollbarXLeft,width:W.scrollbarXWidth-W.railBorderXWidth}),f(W.scrollbarY,{top:W.scrollbarYTop,height:W.scrollbarYHeight-W.railBorderYWidth})}(_,y),y.scrollbarXActive?_.classList.add(k_state_active("x")):(_.classList.remove(k_state_active("x")),y.scrollbarXWidth=0,y.scrollbarXLeft=0,_.scrollLeft=0),y.scrollbarYActive?_.classList.add(k_state_active("y")):(_.classList.remove(k_state_active("y")),y.scrollbarYHeight=0,y.scrollbarYTop=0,_.scrollTop=0)};function P(y,_){return y.settings.minScrollbarLength&&(_=Math.max(_,y.settings.minScrollbarLength)),y.settings.maxScrollbarLength&&(_=Math.min(_,y.settings.maxScrollbarLength)),_}function B(y,_){var R=_[0],N=_[1],W=_[2],G=_[3],Z=_[5],te=_[6],ge=_[7],Q=_[8],J=y.element,U=null,se=null,de=null;function me(ce){J[te]=U+de*(ce[W]-se),m(y,ge),c(y),ce.stopPropagation(),ce.preventDefault()}function Se(){v(y,ge),y[Q].classList.remove(k_state_clicking),y.event.unbind(y.ownerDocument,"mousemove",me)}y.event.bind(y[_[4]],"mousedown",function(ce){U=J[te],se=ce[W],de=(y[N]-y[R])/(y[G]-y[Z]),y.event.bind(y.ownerDocument,"mousemove",me),y.event.once(y.ownerDocument,"mouseup",Se),y[Q].classList.add(k_state_clicking),ce.stopPropagation(),ce.preventDefault()})}var q={"click-rail":function(y){y.event.bind(y.scrollbarY,"mousedown",function(_){return _.stopPropagation()}),y.event.bind(y.scrollbarYRail,"mousedown",function(_){var R=_.pageY-window.pageYOffset-y.scrollbarYRail.getBoundingClientRect().top>y.scrollbarYTop?1:-1;y.element.scrollTop+=R*y.containerHeight,c(y),_.stopPropagation()}),y.event.bind(y.scrollbarX,"mousedown",function(_){return _.stopPropagation()}),y.event.bind(y.scrollbarXRail,"mousedown",function(_){var R=_.pageX-window.pageXOffset-y.scrollbarXRail.getBoundingClientRect().left>y.scrollbarXLeft?1:-1;y.element.scrollLeft+=R*y.containerWidth,c(y),_.stopPropagation()})},"drag-thumb":function(y){B(y,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),B(y,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(y){var _=y.element;y.event.bind(y.ownerDocument,"keydown",function(R){if(!(R.isDefaultPrevented&&R.isDefaultPrevented()||R.defaultPrevented)&&(l(_,":hover")||l(y.scrollbarX,":focus")||l(y.scrollbarY,":focus"))){var N,W=document.activeElement?document.activeElement:y.ownerDocument.activeElement;if(W){if("IFRAME"===W.tagName)W=W.contentDocument.activeElement;else for(;W.shadowRoot;)W=W.shadowRoot.activeElement;if(l(N=W,"input,[contenteditable]")||l(N,"select,[contenteditable]")||l(N,"textarea,[contenteditable]")||l(N,"button,[contenteditable]"))return}var G=0,ne=0;switch(R.which){case 37:G=R.metaKey?-y.contentWidth:R.altKey?-y.containerWidth:-30;break;case 38:ne=R.metaKey?y.contentHeight:R.altKey?y.containerHeight:30;break;case 39:G=R.metaKey?y.contentWidth:R.altKey?y.containerWidth:30;break;case 40:ne=R.metaKey?-y.contentHeight:R.altKey?-y.containerHeight:-30;break;case 32:ne=R.shiftKey?y.containerHeight:-y.containerHeight;break;case 33:ne=y.containerHeight;break;case 34:ne=-y.containerHeight;break;case 36:ne=y.contentHeight;break;case 35:ne=-y.contentHeight;break;default:return}y.settings.suppressScrollX&&0!==G||y.settings.suppressScrollY&&0!==ne||(_.scrollTop-=ne,_.scrollLeft+=G,c(y),function(Z,te){var ge=Math.floor(_.scrollTop);if(0===Z){if(!y.scrollbarYActive)return!1;if(0===ge&&te>0||ge>=y.contentHeight-y.containerHeight&&te<0)return!y.settings.wheelPropagation}var Q=_.scrollLeft;if(0===te){if(!y.scrollbarXActive)return!1;if(0===Q&&Z<0||Q>=y.contentWidth-y.containerWidth&&Z>0)return!y.settings.wheelPropagation}return!0}(G,ne)&&R.preventDefault())}})},wheel:function(y){var _=y.element;function R(N){var te,ge,Q,W=(Q=-1*(te=N).deltaY,void 0!==(ge=te.deltaX)&&void 0!==Q||(ge=-1*te.wheelDeltaX/6,Q=te.wheelDeltaY/6),te.deltaMode&&1===te.deltaMode&&(ge*=10,Q*=10),ge!=ge&&Q!=Q&&(ge=0,Q=te.wheelDelta),te.shiftKey?[-Q,-ge]:[ge,Q]),G=W[0],ne=W[1];if(!function(te,ge,Q){if(!A.isWebKit&&_.querySelector("select:focus"))return!0;if(!_.contains(te))return!1;for(var J=te;J&&J!==_;){if(J.classList.contains(k_element_consuming))return!0;var U=i(J);if([U.overflow,U.overflowX,U.overflowY].join("").match(/(scroll|auto)/)){var se=J.scrollHeight-J.clientHeight;if(se>0&&!(0===J.scrollTop&&Q>0||J.scrollTop===se&&Q<0))return!0;var de=J.scrollWidth-J.clientWidth;if(de>0&&!(0===J.scrollLeft&&ge<0||J.scrollLeft===de&&ge>0))return!0}J=J.parentNode}return!1}(N.target,G,ne)){var Z=!1;y.settings.useBothWheelAxes?y.scrollbarYActive&&!y.scrollbarXActive?(ne?_.scrollTop-=ne*y.settings.wheelSpeed:_.scrollTop+=G*y.settings.wheelSpeed,Z=!0):y.scrollbarXActive&&!y.scrollbarYActive&&(G?_.scrollLeft+=G*y.settings.wheelSpeed:_.scrollLeft-=ne*y.settings.wheelSpeed,Z=!0):(_.scrollTop-=ne*y.settings.wheelSpeed,_.scrollLeft+=G*y.settings.wheelSpeed),c(y),(Z=Z||function(te,ge){var Q=Math.floor(_.scrollTop),J=0===_.scrollTop,U=Q+_.offsetHeight===_.scrollHeight,se=0===_.scrollLeft,de=_.scrollLeft+_.offsetWidth===_.scrollWidth;return!(Math.abs(ge)>Math.abs(te)?J||U:se||de)||!y.settings.wheelPropagation}(G,ne))&&!N.ctrlKey&&(N.stopPropagation(),N.preventDefault())}}void 0!==window.onwheel?y.event.bind(_,"wheel",R):void 0!==window.onmousewheel&&y.event.bind(_,"mousewheel",R)},touch:function(y){if(A.supportsTouch||A.supportsIePointer){var _=y.element,R={},N=0,W={},G=null;A.supportsTouch?(y.event.bind(_,"touchstart",ge),y.event.bind(_,"touchmove",Q),y.event.bind(_,"touchend",J)):A.supportsIePointer&&(window.PointerEvent?(y.event.bind(_,"pointerdown",ge),y.event.bind(_,"pointermove",Q),y.event.bind(_,"pointerup",J)):window.MSPointerEvent&&(y.event.bind(_,"MSPointerDown",ge),y.event.bind(_,"MSPointerMove",Q),y.event.bind(_,"MSPointerUp",J)))}function ne(U,se){_.scrollTop-=se,_.scrollLeft-=U,c(y)}function Z(U){return U.targetTouches?U.targetTouches[0]:U}function te(U){return!(U.pointerType&&"pen"===U.pointerType&&0===U.buttons||(!U.targetTouches||1!==U.targetTouches.length)&&(!U.pointerType||"mouse"===U.pointerType||U.pointerType===U.MSPOINTER_TYPE_MOUSE))}function ge(U){if(te(U)){var se=Z(U);R.pageX=se.pageX,R.pageY=se.pageY,N=(new Date).getTime(),null!==G&&clearInterval(G)}}function Q(U){if(te(U)){var se=Z(U),de={pageX:se.pageX,pageY:se.pageY},me=de.pageX-R.pageX,Se=de.pageY-R.pageY;if(function(Re,Oe,we){if(!_.contains(Re))return!1;for(var Ue=Re;Ue&&Ue!==_;){if(Ue.classList.contains(k_element_consuming))return!0;var tt=i(Ue);if([tt.overflow,tt.overflowX,tt.overflowY].join("").match(/(scroll|auto)/)){var it=Ue.scrollHeight-Ue.clientHeight;if(it>0&&!(0===Ue.scrollTop&&we>0||Ue.scrollTop===it&&we<0))return!0;var ot=Ue.scrollLeft-Ue.clientWidth;if(ot>0&&!(0===Ue.scrollLeft&&Oe<0||Ue.scrollLeft===ot&&Oe>0))return!0}Ue=Ue.parentNode}return!1}(U.target,me,Se))return;ne(me,Se),R=de;var ce=(new Date).getTime(),xe=ce-N;xe>0&&(W.x=me/xe,W.y=Se/xe,N=ce),function(Re,Oe){var we=Math.floor(_.scrollTop),Ue=_.scrollLeft,tt=Math.abs(Re),it=Math.abs(Oe);if(it>tt){if(Oe<0&&we===y.contentHeight-y.containerHeight||Oe>0&&0===we)return 0===window.scrollY&&Oe>0&&A.isChrome}else if(tt>it&&(Re<0&&Ue===y.contentWidth-y.containerWidth||Re>0&&0===Ue))return!0;return!0}(me,Se)&&U.preventDefault()}}function J(){y.settings.swipeEasing&&(clearInterval(G),G=setInterval(function(){y.isInitialized?clearInterval(G):W.x||W.y?Math.abs(W.x)<.01&&Math.abs(W.y)<.01?clearInterval(G):(ne(30*W.x,30*W.y),W.x*=.8,W.y*=.8):clearInterval(G)},10))}}},o=function(y,_){var R=this;if(void 0===_&&(_={}),"string"==typeof y&&(y=document.querySelector(y)),!y||!y.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var N in this.element=y,y.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},_)R.settings[N]=_[N];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var W,G,ne=function(){return y.classList.add(k_state_focus)},Z=function(){return y.classList.remove(k_state_focus)};this.isRtl="rtl"===i(y).direction,this.isNegativeScroll=(G=y.scrollLeft,y.scrollLeft=-1,W=y.scrollLeft<0,y.scrollLeft=G,W),this.negativeScrollAdjustment=this.isNegativeScroll?y.scrollWidth-y.clientWidth:0,this.event=new T,this.ownerDocument=y.ownerDocument||document,this.scrollbarXRail=g(k_element_rail("x")),y.appendChild(this.scrollbarXRail),this.scrollbarX=g(k_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",ne),this.event.bind(this.scrollbarX,"blur",Z),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var te=i(this.scrollbarXRail);this.scrollbarXBottom=parseInt(te.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=b(te.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=b(te.borderLeftWidth)+b(te.borderRightWidth),f(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=b(te.marginLeft)+b(te.marginRight),f(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=g(k_element_rail("y")),y.appendChild(this.scrollbarYRail),this.scrollbarY=g(k_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",ne),this.event.bind(this.scrollbarY,"blur",Z),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var J,ge=i(this.scrollbarYRail);this.scrollbarYRight=parseInt(ge.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=b(ge.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?b((J=i(this.scrollbarY)).width)+b(J.paddingLeft)+b(J.paddingRight)+b(J.borderLeftWidth)+b(J.borderRightWidth):null,this.railBorderYWidth=b(ge.borderTopWidth)+b(ge.borderBottomWidth),f(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=b(ge.marginTop)+b(ge.marginBottom),f(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:y.scrollLeft<=0?"start":y.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:y.scrollTop<=0?"start":y.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(Q){return q[Q](R)}),this.lastScrollTop=Math.floor(y.scrollTop),this.lastScrollLeft=y.scrollLeft,this.event.bind(this.element,"scroll",function(Q){return R.onScroll(Q)}),c(this)};return o.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,f(this.scrollbarXRail,{display:"block"}),f(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=b(i(this.scrollbarXRail).marginLeft)+b(i(this.scrollbarXRail).marginRight),this.railYMarginHeight=b(i(this.scrollbarYRail).marginTop)+b(i(this.scrollbarYRail).marginBottom),f(this.scrollbarXRail,{display:"none"}),f(this.scrollbarYRail,{display:"none"}),c(this),O(this,"top",0,!1,!0),O(this,"left",0,!1,!0),f(this.scrollbarXRail,{display:""}),f(this.scrollbarYRail,{display:""}))},o.prototype.onScroll=function(y){this.isAlive&&(c(this),O(this,"top",this.element.scrollTop-this.lastScrollTop),O(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},o.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),S(this.scrollbarX),S(this.scrollbarY),S(this.scrollbarXRail),S(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},o.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(y){return!y.match(/^ps([-_].+|)$/)}).join(" ")},o});var KTMenu=function(i,f){var g=this,j=!1,l=KTUtil.getById(i),S=KTUtil.getBody();if(l){var w={scroll:{rememberPosition:!1},accordion:{slideSpeed:200,autoScroll:!1,autoScrollSpeed:1200,expandAll:!0},dropdown:{timeout:500}},k={construct:function(p){return KTUtil.data(l).has("menu")?g=KTUtil.data(l).get("menu"):(k.init(p),k.reset(),k.build(),KTUtil.data(l).set("menu",g)),g},init:function(p){g.events=[],g.eventHandlers={},g.options=KTUtil.deepExtend({},w,p),g.pauseDropdownHoverTime=0,g.uid=KTUtil.getUniqueID()},update:function(p){g.options=KTUtil.deepExtend({},w,p),g.pauseDropdownHoverTime=0,k.reset(),g.eventHandlers={},k.build(),KTUtil.data(l).set("menu",g)},reload:function(){k.reset(),k.build(),k.resetSubmenuProps()},build:function(){g.eventHandlers.event_1=KTUtil.on(l,".menu-toggle","click",k.handleSubmenuAccordion),("dropdown"===k.getSubmenuMode()||k.isConditionalSubmenuDropdown())&&(g.eventHandlers.event_2=KTUtil.on(l,'[data-menu-toggle="hover"]',"mouseover",k.handleSubmenuDrodownHoverEnter),g.eventHandlers.event_3=KTUtil.on(l,'[data-menu-toggle="hover"]',"mouseout",k.handleSubmenuDrodownHoverExit),g.eventHandlers.event_4=KTUtil.on(l,'[data-menu-toggle="click"] > .menu-toggle, [data-menu-toggle="click"] > .menu-link .menu-toggle',"click",k.handleSubmenuDropdownClick),g.eventHandlers.event_5=KTUtil.on(l,'[data-menu-toggle="tab"] > .menu-toggle, [data-menu-toggle="tab"] > .menu-link .menu-toggle',"click",k.handleSubmenuDropdownTabClick)),g.eventHandlers.event_6=KTUtil.on(l,".menu-item > .menu-link:not(.menu-toggle):not(.menu-link-toggle-skip)","click",k.handleLinkClick),g.options.scroll&&g.options.scroll.height&&k.scrollInit()},reset:function(){KTUtil.off(l,"click",g.eventHandlers.event_1),KTUtil.off(l,"mouseover",g.eventHandlers.event_2),KTUtil.off(l,"mouseout",g.eventHandlers.event_3),KTUtil.off(l,"click",g.eventHandlers.event_4),KTUtil.off(l,"click",g.eventHandlers.event_5),KTUtil.off(l,"click",g.eventHandlers.event_6)},scrollInit:function(){g.options.scroll&&g.options.scroll.height?(KTUtil.scrollDestroy(l,!0),KTUtil.scrollInit(l,{mobileNativeScroll:!0,windowScroll:!1,resetHeightOnDestroy:!0,handleWindowResize:!0,height:g.options.scroll.height,rememberPosition:g.options.scroll.rememberPosition})):KTUtil.scrollDestroy(l,!0)},scrollUpdate:function(){g.options.scroll&&g.options.scroll.height&&KTUtil.scrollUpdate(l)},scrollTop:function(){g.options.scroll&&g.options.scroll.height&&KTUtil.scrollTop(l)},getSubmenuMode:function(p){return KTUtil.isBreakpointUp("lg")?p&&KTUtil.hasAttr(p,"data-menu-toggle")&&"hover"==KTUtil.attr(p,"data-menu-toggle")?"dropdown":KTUtil.isset(g.options.submenu,"desktop.state.body")?KTUtil.hasClasses(S,g.options.submenu.desktop.state.body)?g.options.submenu.desktop.state.mode:g.options.submenu.desktop.default:KTUtil.isset(g.options.submenu,"desktop")?g.options.submenu.desktop:void 0:KTUtil.isBreakpointUp("md")&&KTUtil.isBreakpointDown("lg")&&KTUtil.isset(g.options.submenu,"tablet")?g.options.submenu.tablet:!(!KTUtil.isBreakpointDown("md")||!KTUtil.isset(g.options.submenu,"mobile"))&&g.options.submenu.mobile},isConditionalSubmenuDropdown:function(){return!(!KTUtil.isBreakpointUp("lg")||!KTUtil.isset(g.options.submenu,"desktop.state.body"))},resetSubmenuProps:function(p){var m=KTUtil.findAll(l,".menu-submenu");if(m)for(var v=0,u=m.length;v<u;v++){var C=m[0];KTUtil.css(C,"display",""),KTUtil.css(C,"overflow",""),C.hasAttribute("data-hor-direction")&&(KTUtil.removeClass(C,"menu-submenu-left"),KTUtil.removeClass(C,"menu-submenu-right"),KTUtil.addClass(C,C.getAttribute("data-hor-direction")))}},handleSubmenuDrodownHoverEnter:function(p){if("accordion"!==k.getSubmenuMode(this)&&!1!==g.resumeDropdownHover()){var m=this;"1"==m.getAttribute("data-hover")&&(m.removeAttribute("data-hover"),clearTimeout(m.getAttribute("data-timeout")),m.removeAttribute("data-timeout")),k.showSubmenuDropdown(m)}},handleSubmenuDrodownHoverExit:function(p){if(!1!==g.resumeDropdownHover()&&"accordion"!==k.getSubmenuMode(this)){var m=this,u=setTimeout(function(){"1"==m.getAttribute("data-hover")&&k.hideSubmenuDropdown(m,!0)},g.options.dropdown.timeout);m.setAttribute("data-hover","1"),m.setAttribute("data-timeout",u)}},handleSubmenuDropdownClick:function(p){if("accordion"!==k.getSubmenuMode(this)){var m=this.closest(".menu-item");!1!==k.eventTrigger("submenuToggle",this,p)&&"accordion"!=m.getAttribute("data-menu-submenu-mode")&&(!1===KTUtil.hasClass(m,"menu-item-hover")?(KTUtil.addClass(m,"menu-item-open-dropdown"),k.showSubmenuDropdown(m)):(KTUtil.removeClass(m,"menu-item-open-dropdown"),k.hideSubmenuDropdown(m,!0)),p.preventDefault())}},handleSubmenuDropdownTabClick:function(p){if("accordion"!==k.getSubmenuMode(this)){var m=this.closest(".menu-item");!1!==k.eventTrigger("submenuToggle",this,p)&&"accordion"!=m.getAttribute("data-menu-submenu-mode")&&(0==KTUtil.hasClass(m,"menu-item-hover")&&(KTUtil.addClass(m,"menu-item-open-dropdown"),k.showSubmenuDropdown(m)),p.preventDefault())}},handleLinkClick:function(p){var m=this.closest(".menu-item.menu-item-submenu");!1!==k.eventTrigger("linkClick",this,p)&&m&&"dropdown"===k.getSubmenuMode(m)&&k.hideSubmenuDropdowns()},handleSubmenuDropdownClose:function(p,m){if("accordion"!==k.getSubmenuMode(m)){var v=l.querySelectorAll(".menu-item.menu-item-submenu.menu-item-hover:not(.menu-item-tabs)");if(v.length>0&&!1===KTUtil.hasClass(m,"menu-toggle")&&0===m.querySelectorAll(".menu-toggle").length)for(var u=0,C=v.length;u<C;u++)k.hideSubmenuDropdown(v[0],!0)}},handleSubmenuAccordion:function(p,m){var v,u=m||this;if(!1!==k.eventTrigger("submenuToggle",this,p)){if("dropdown"===k.getSubmenuMode(m)&&(v=u.closest(".menu-item"))&&"accordion"!=v.getAttribute("data-menu-submenu-mode"))return void p.preventDefault();var T=u.closest(".menu-item"),M=KTUtil.child(T,".menu-submenu, .menu-inner");if(!KTUtil.hasClass(u.closest(".menu-item"),"menu-item-open-always")&&T&&M){p.preventDefault();var O=g.options.accordion.slideSpeed;if(!1===KTUtil.hasClass(T,"menu-item-open")){if(!1===g.options.accordion.expandAll){var A=u.closest(".menu-nav, .menu-subnav"),c=KTUtil.children(A,".menu-item.menu-item-open.menu-item-submenu:not(.menu-item-here):not(.menu-item-open-always)");if(A&&c)for(var P=0,B=c.length;P<B;P++){var q=c[0],o=KTUtil.child(q,".menu-submenu");o&&KTUtil.slideUp(o,O,function(){k.scrollUpdate(),KTUtil.removeClass(q,"menu-item-open")})}}KTUtil.slideDown(M,O,function(){k.scrollToItem(u),k.scrollUpdate(),k.eventTrigger("submenuToggle",M,p)}),KTUtil.addClass(T,"menu-item-open")}else KTUtil.slideUp(M,O,function(){k.scrollToItem(u),k.eventTrigger("submenuToggle",M,p)}),KTUtil.removeClass(T,"menu-item-open")}}},scrollToItem:function(p){KTUtil.isBreakpointUp("lg")&&g.options.accordion.autoScroll&&"1"!==l.getAttribute("data-menu-scroll")&&KTUtil.scrollTo(p,g.options.accordion.autoScrollSpeed)},hideSubmenuDropdown:function(p,m){m&&(KTUtil.removeClass(p,"menu-item-hover"),KTUtil.removeClass(p,"menu-item-active-tab")),p.removeAttribute("data-hover"),p.getAttribute("data-menu-toggle-class")&&KTUtil.removeClass(S,p.getAttribute("data-menu-toggle-class"));var v=p.getAttribute("data-timeout");p.removeAttribute("data-timeout"),clearTimeout(v)},hideSubmenuDropdowns:function(){var p;if(p=l.querySelectorAll('.menu-item-submenu.menu-item-hover:not(.menu-item-tabs):not([data-menu-toggle="tab"])'))for(var m=0,v=p.length;m<v;m++)k.hideSubmenuDropdown(p[m],!0)},showSubmenuDropdown:function(p){var m=l.querySelectorAll(".menu-item-submenu.menu-item-hover, .menu-item-submenu.menu-item-active-tab");if(m)for(var v=0,u=m.length;v<u;v++){var C=m[v];p!==C&&!1===C.contains(p)&&!1===p.contains(C)&&k.hideSubmenuDropdown(C,!0)}KTUtil.addClass(p,"menu-item-hover");var T=KTUtil.find(p,".menu-submenu");T&&!1===T.hasAttribute("data-hor-direction")&&(KTUtil.hasClass(T,"menu-submenu-left")?T.setAttribute("data-hor-direction","menu-submenu-left"):KTUtil.hasClass(T,"menu-submenu-right")&&T.setAttribute("data-hor-direction","menu-submenu-right")),T&&!0===KTUtil.isOffscreen(T,"left",15)?(KTUtil.removeClass(T,"menu-submenu-left"),KTUtil.addClass(T,"menu-submenu-right")):T&&!0===KTUtil.isOffscreen(T,"right",15)&&(KTUtil.removeClass(T,"menu-submenu-right"),KTUtil.addClass(T,"menu-submenu-left")),p.getAttribute("data-menu-toggle-class")&&KTUtil.addClass(S,p.getAttribute("data-menu-toggle-class"))},createSubmenuDropdownClickDropoff:function(p){var m,v=(m=KTUtil.child(p,".menu-submenu")?KTUtil.css(m,"z-index"):0)-1,u=document.createElement('<div class="menu-dropoff" style="background: transparent; position: fixed; top: 0; bottom: 0; left: 0; right: 0; z-index: '+v+'"></div>');S.appendChild(u),KTUtil.addEvent(u,"click",function(C){C.stopPropagation(),C.preventDefault(),KTUtil.remove(this),k.hideSubmenuDropdown(p,!0)})},pauseDropdownHover:function(p){var m=new Date;g.pauseDropdownHoverTime=m.getTime()+p},resumeDropdownHover:function(){return(new Date).getTime()>g.pauseDropdownHoverTime},resetActiveItem:function(p){for(var m,v,u=0,C=(m=l.querySelectorAll(".menu-item-active")).length;u<C;u++){var T=m[0];KTUtil.removeClass(T,"menu-item-active"),KTUtil.hide(KTUtil.child(T,".menu-submenu"));for(var M=0,O=(v=KTUtil.parents(T,".menu-item-submenu")||[]).length;M<O;M++){var b=v[u];KTUtil.removeClass(b,"menu-item-open"),KTUtil.hide(KTUtil.child(b,".menu-submenu"))}}if(!1===g.options.accordion.expandAll&&(m=l.querySelectorAll(".menu-item-open")))for(u=0,C=m.length;u<C;u++)KTUtil.removeClass(v[0],"menu-item-open")},setActiveItem:function(p){k.resetActiveItem();for(var m=KTUtil.parents(p,".menu-item-submenu")||[],v=0,u=m.length;v<u;v++)KTUtil.addClass(m[v],"menu-item-open");KTUtil.addClass(p,"menu-item-active")},getBreadcrumbs:function(p){var m,v=[],u=KTUtil.child(p,".menu-link");v.push({text:m=KTUtil.child(u,".menu-text")?m.innerHTML:"",title:u.getAttribute("title"),href:u.getAttribute("href")});for(var C=KTUtil.parents(p,".menu-item-submenu"),T=0,M=C.length;T<M;T++){var O=KTUtil.child(C[T],".menu-link");v.push({text:m=KTUtil.child(O,".menu-text")?m.innerHTML:"",title:O.getAttribute("title"),href:O.getAttribute("href")})}return v.reverse()},getPageTitle:function(p){return KTUtil.child(p,".menu-text")?undefined.innerHTML:""},eventTrigger:function(p,m,v){for(var u=0;u<g.events.length;u++){var C=g.events[u];if(C.name==p){if(1!=C.one)return C.handler.call(this,m,v);if(0==C.fired)return g.events[u].fired=!0,C.handler.call(this,m,v)}}},addEvent:function(p,m,v){g.events.push({name:p,handler:m,one:v,fired:!1})},removeEvent:function(p){g.events[p]&&delete g.events[p]}};return g.setDefaults=function(p){w=p},g.scrollUpdate=function(){return k.scrollUpdate()},g.scrollReInit=function(){return k.scrollInit()},g.scrollTop=function(){return k.scrollTop()},g.setActiveItem=function(p){return k.setActiveItem(p)},g.reload=function(){return k.reload()},g.update=function(p){return k.update(p)},g.getBreadcrumbs=function(p){return k.getBreadcrumbs(p)},g.getPageTitle=function(p){return k.getPageTitle(p)},g.getSubmenuMode=function(p){return k.getSubmenuMode(p)},g.hideDropdown=function(p){k.hideSubmenuDropdown(p,!0)},g.hideDropdowns=function(){k.hideSubmenuDropdowns()},g.pauseDropdownHover=function(p){k.pauseDropdownHover(p)},g.resumeDropdownHover=function(){return k.resumeDropdownHover()},g.on=function(p,m){return k.addEvent(p,m)},g.off=function(p){return k.removeEvent(p)},g.one=function(p,m){return k.addEvent(p,m,!0)},k.construct.apply(g,[f]),KTUtil.addResizeHandler(function(){j&&g.reload()}),j=!0,g}};"undefined"!=typeof module&&void 0!==module.exports&&(module.exports=KTMenu),document.addEventListener("click",function(i){var g;if(g=KTUtil.getByTagName("body")[0].querySelectorAll('.menu-nav .menu-item.menu-item-submenu.menu-item-hover:not(.menu-item-tabs)[data-menu-toggle="click"]'))for(var j=0,l=g.length;j<l;j++){var S=g[j].closest(".menu-nav").parentNode;if(S){var w=KTUtil.data(S).get("menu");if(!w||!w||"dropdown"!==w.getSubmenuMode())break;i.target!==S&&!1===S.contains(i.target)&&w.hideDropdowns()}}});var KTOffcanvas=function(i,f){var g=this,l=KTUtil.getById(i),S=KTUtil.getBody();if(l){var w={attrCustom:""},k={construct:function(p){return KTUtil.data(l).has("offcanvas")?g=KTUtil.data(l).get("offcanvas"):(k.init(p),k.build(),KTUtil.data(l).set("offcanvas",g)),g},init:function(p){g.events=[],g.options=KTUtil.deepExtend({},w,p),g.classBase=g.options.baseClass,g.attrCustom=g.options.attrCustom,g.classShown=g.classBase+"-on",g.classOverlay=g.classBase+"-overlay",g.state=KTUtil.hasClass(l,g.classShown)?"shown":"hidden"},build:function(){if(g.options.toggleBy)if("string"==typeof g.options.toggleBy)KTUtil.addEvent(KTUtil.getById(g.options.toggleBy),"click",function(v){v.preventDefault(),g.target=this,k.toggle()});else if(g.options.toggleBy&&g.options.toggleBy[0])if(g.options.toggleBy[0].target)for(var p in g.options.toggleBy)KTUtil.addEvent(KTUtil.getById(g.options.toggleBy[p].target),"click",function(v){v.preventDefault(),g.target=this,k.toggle()});else for(var p in g.options.toggleBy)KTUtil.addEvent(KTUtil.getById(g.options.toggleBy[p]),"click",function(u){u.preventDefault(),g.target=this,k.toggle()});else g.options.toggleBy&&g.options.toggleBy.target&&KTUtil.addEvent(KTUtil.getById(g.options.toggleBy.target),"click",function(v){v.preventDefault(),g.target=this,k.toggle()});var m=KTUtil.getById(g.options.closeBy);m&&KTUtil.addEvent(m,"click",function(v){v.preventDefault(),g.target=this,k.hide()})},isShown:function(){return"shown"==g.state},toggle:function(){k.eventTrigger("toggle"),"shown"==g.state?k.hide():k.show()},show:function(){"shown"!=g.state&&(k.eventTrigger("beforeShow"),k.toggleClass("show"),KTUtil.attr(S,"data-offcanvas-"+g.classBase,"on"),KTUtil.addClass(l,g.classShown),g.attrCustom.length>0&&KTUtil.attr(S,"data-offcanvas-"+g.classCustom,"on"),g.state="shown",g.options.overlay&&(g.overlay=KTUtil.insertAfter(document.createElement("DIV"),l),KTUtil.addClass(g.overlay,g.classOverlay),KTUtil.addEvent(g.overlay,"click",function(p){p.preventDefault(),k.hide(g.target)})),k.eventTrigger("afterShow"))},hide:function(){"hidden"!=g.state&&(k.eventTrigger("beforeHide"),k.toggleClass("hide"),KTUtil.removeAttr(S,"data-offcanvas-"+g.classBase),KTUtil.removeClass(l,g.classShown),g.attrCustom.length>0&&KTUtil.removeAttr(S,"data-offcanvas-"+g.attrCustom),g.state="hidden",g.options.overlay&&g.overlay&&KTUtil.remove(g.overlay),k.eventTrigger("afterHide"))},toggleClass:function(p){var v,m=KTUtil.attr(g.target,"id");if(g.options.toggleBy&&g.options.toggleBy[0]&&g.options.toggleBy[0].target)for(var u in g.options.toggleBy)g.options.toggleBy[u].target===m&&(v=g.options.toggleBy[u]);else g.options.toggleBy&&g.options.toggleBy.target&&(v=g.options.toggleBy);if(v){var C=KTUtil.getById(v.target);"show"===p&&KTUtil.addClass(C,v.state),"hide"===p&&KTUtil.removeClass(C,v.state)}},eventTrigger:function(p,m){for(var v=0;v<g.events.length;v++){var u=g.events[v];if(u.name==p){if(1!=u.one)return u.handler.call(this,g,m);if(0==u.fired)return g.events[v].fired=!0,u.handler.call(this,g,m)}}},addEvent:function(p,m,v){g.events.push({name:p,handler:m,one:v,fired:!1})}};return g.setDefaults=function(p){w=p},g.isShown=function(){return k.isShown()},g.hide=function(){return k.hide()},g.show=function(){return k.show()},g.on=function(p,m){return k.addEvent(p,m)},g.one=function(p,m){return k.addEvent(p,m,!0)},k.construct.apply(g,[f]),g}};"undefined"!=typeof module&&void 0!==module.exports&&(module.exports=KTOffcanvas);var KTHeader=function(i,f){var g=this,l=KTUtil.getById(i),S=KTUtil.getBody();if(void 0!==l){var w={offset:{desktop:!0,tabletAndMobile:!0},releseOnReverse:{desktop:!1,tabletAndMobile:!1}},k={construct:function(p){return KTUtil.data(l).has("header")?g=KTUtil.data(l).get("header"):(k.init(p),k.build(),KTUtil.data(l).set("header",g)),g},init:function(p){g.events=[],g.options=KTUtil.deepExtend({},w,p)},build:function(){var p=!0,m=0;window.addEventListener("scroll",function(){var u,v=0;KTUtil.isBreakpointDown("lg")&&!1===g.options.offset.tabletAndMobile||KTUtil.isBreakpointUp("lg")&&!1===g.options.offset.desktop||(KTUtil.isBreakpointUp("lg")?v=g.options.offset.desktop:KTUtil.isBreakpointDown("lg")&&(v=g.options.offset.tabletAndMobile),u=KTUtil.getScrollTop(),KTUtil.isBreakpointDown("lg")&&g.options.releseOnReverse.tabletAndMobile||KTUtil.isBreakpointUp("lg")&&g.options.releseOnReverse.desktop?(u>v&&m<u?(!1===S.hasAttribute("data-header-scroll")&&S.setAttribute("data-header-scroll","on"),p&&(k.eventTrigger("scrollOn",g),p=!1)):(!0===S.hasAttribute("data-header-scroll")&&S.removeAttribute("data-header-scroll"),0==p&&(k.eventTrigger("scrollOff",g),p=!0)),m=u):u>v?(!1===S.hasAttribute("data-header-scroll")&&S.setAttribute("data-header-scroll","on"),p&&(k.eventTrigger("scrollOn",g),p=!1)):(!0===S.hasAttribute("data-header-scroll")&&S.removeAttribute("data-header-scroll"),0==p&&(k.eventTrigger("scrollOff",g),p=!0)))})},eventTrigger:function(p,m){for(var v=0;v<g.events.length;v++){var u=g.events[v];if(u.name==p){if(1!=u.one)return u.handler.call(this,g,m);if(0==u.fired)return g.events[v].fired=!0,u.handler.call(this,g,m)}}},addEvent:function(p,m,v){g.events.push({name:p,handler:m,one:v,fired:!1})}};return g.setDefaults=function(p){w=p},g.on=function(p,m){return k.addEvent(p,m)},k.construct.apply(g,[f]),g}};"undefined"!=typeof module&&void 0!==module.exports&&(module.exports=KTHeader);var KTScrolltop=function(i,f){var g=this,l=KTUtil.getById(i),S=KTUtil.getBody();if(l){var w={offset:300,speed:6e3},k={construct:function(p){return KTUtil.data(l).has("scrolltop")?g=KTUtil.data(l).get("scrolltop"):(k.init(p),k.build(),KTUtil.data(l).set("scrolltop",g)),g},init:function(p){g.events=[],g.options=KTUtil.deepExtend({},w,p)},build:function(){window.addEventListener("scroll",function(){KTUtil.throttle(void 0,function(){k.handle()},200)}),KTUtil.addEvent(l,"click",k.scroll)},handle:function(){KTUtil.getScrollTop()>g.options.offset?!1===S.hasAttribute("data-scrolltop")&&S.setAttribute("data-scrolltop","on"):!0===S.hasAttribute("data-scrolltop")&&S.removeAttribute("data-scrolltop")},scroll:function(p){p.preventDefault(),KTUtil.scrollTop(0,g.options.speed)},eventTrigger:function(p,m){for(var v=0;v<g.events.length;v++){var u=g.events[v];if(u.name==p){if(1!=u.one)return u.handler.call(this,g,m);if(0==u.fired)return g.events[v].fired=!0,u.handler.call(this,g,m)}}},addEvent:function(p,m,v){g.events.push({name:p,handler:m,one:v,fired:!1})}};return g.setDefaults=function(p){w=p},g.on=function(p,m){return k.addEvent(p,m)},g.one=function(p,m){return k.addEvent(p,m,!0)},k.construct.apply(g,[f]),g}};"undefined"!=typeof module&&void 0!==module.exports&&(module.exports=KTScrolltop);var KTToggle=function(i,f){var g=this,l=KTUtil.getById(i);if(l){var S={targetToggleMode:"class"},w={construct:function(k){return KTUtil.data(l).has("toggle")?g=KTUtil.data(l).get("toggle"):(w.init(k),w.build(),KTUtil.data(l).set("toggle",g)),g},init:function(k){g.element=l,g.events=[],k.target={},g.options=KTUtil.deepExtend({},S,k),g.target=KTUtil.getById(k.target),g.targetState=g.options.targetState,g.toggleState=g.options.toggleState,g.state="class"==g.options.targetToggleMode?KTUtil.hasClasses(g.target,g.targetState)?"on":"off":KTUtil.hasAttr(g.target,"data-"+g.targetState)?KTUtil.attr(g.target,"data-"+g.targetState):"off"},build:function(){KTUtil.addEvent(l,"mouseup",w.toggle)},toggle:function(k){return w.eventTrigger("beforeToggle"),"off"==g.state?w.toggleOn():w.toggleOff(),w.eventTrigger("afterToggle"),k.preventDefault(),g},toggleOn:function(){return w.eventTrigger("beforeOn"),"class"==g.options.targetToggleMode?KTUtil.addClass(g.target,g.targetState):KTUtil.attr(g.target,"data-"+g.targetState,"on"),g.toggleState&&KTUtil.addClass(l,g.toggleState),g.state="on",w.eventTrigger("afterOn"),w.eventTrigger("toggle"),g},toggleOff:function(){return w.eventTrigger("beforeOff"),"class"==g.options.targetToggleMode?KTUtil.removeClass(g.target,g.targetState):KTUtil.removeAttr(g.target,"data-"+g.targetState),g.toggleState&&KTUtil.removeClass(l,g.toggleState),g.state="off",w.eventTrigger("afterOff"),w.eventTrigger("toggle"),g},eventTrigger:function(k){for(var p=0;p<g.events.length;p++){var m=g.events[p];if(m.name==k){if(1!=m.one)return m.handler.call(this,g);if(0==m.fired)return g.events[p].fired=!0,m.handler.call(this,g)}}},addEvent:function(k,p,m){return g.events.push({name:k,handler:p,one:m,fired:!1}),g}};return g.setDefaults=function(k){S=k},g.getState=function(){return g.state},g.toggle=function(){return w.toggle()},g.toggleOn=function(){return w.toggleOn()},g.toggleOff=function(){return w.toggleOff()},g.on=function(k,p){return w.addEvent(k,p)},g.one=function(k,p){return w.addEvent(k,p,!0)},w.construct.apply(g,[f]),g}};function _typeof(i){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"==typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g})(i)}function _instanceof(i,f){return null!=f&&"undefined"!=typeof Symbol&&f[Symbol.hasInstance]?!!f[Symbol.hasInstance](i):i instanceof f}"undefined"!=typeof module&&void 0!==module.exports&&(module.exports=KTToggle),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(i){var g=this;if(!document.documentElement.contains(this))return null;do{if(g.matches(i))return g;g=g.parentElement}while(null!==g);return null}),function(i){for(var f=0;f<i.length;f++)!window[i[f]]||"remove"in window[i[f]].prototype||(window[i[f]].prototype.remove=function(){this.parentNode.removeChild(this)})}(["Element","CharacterData","DocumentType"]),function(){for(var i=0,f=["webkit","moz"],g=0;g<f.length&&!window.requestAnimationFrame;++g)window.requestAnimationFrame=window[f[g]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[f[g]+"CancelAnimationFrame"]||window[f[g]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(j){var l=(new Date).getTime(),S=Math.max(0,16-(l-i)),w=window.setTimeout(function(){j(l+S)},S);return i=l+S,w}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(j){clearTimeout(j)})}(),[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach(function(f){f.hasOwnProperty("prepend")||Object.defineProperty(f,"prepend",{configurable:!0,enumerable:!0,writable:!0,value:function(){var j=Array.prototype.slice.call(arguments),l=document.createDocumentFragment();j.forEach(function(S){var w=_instanceof(S,Node);l.appendChild(w?S:document.createTextNode(String(S)))}),this.insertBefore(l,this.firstChild)}})}),window.KTUtilElementDataStore={},window.KTUtilElementDataStoreID=0,window.KTUtilDelegatedEventHandlers={};var KTUtil=function(){var i=[],f={sm:544,md:768,lg:992,xl:1200};return{init:function(l){l&&l.breakpoints&&(f=l.breakpoints),window.addEventListener("resize",function(){KTUtil.throttle(void 0,function(){!function(){for(var k=0;k<i.length;k++)i[k].call()}()},200)})},addResizeHandler:function(l){i.push(l)},removeResizeHandler:function(l){for(var S=0;S<i.length;S++)l===i[S]&&delete i[S]},runResizeHandlers:function(){_runResizeHandlers()},resize:function(){if("function"==typeof Event)window.dispatchEvent(new Event("resize"));else{var l=window.document.createEvent("UIEvents");l.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(l)}},getURLParam:function(l){var w,k,p=window.location.search.substring(1).split("&");for(w=0;w<p.length;w++)if((k=p[w].split("="))[0]==l)return unescape(k[1]);return null},isMobileDevice:function(){return this.getViewPort().width<this.getBreakpoint("lg")},isDesktopDevice:function(){return!KTUtil.isMobileDevice()},getViewPort:function(){var l=window,S="inner";return"innerWidth"in window||(S="client",l=document.documentElement||document.body),{width:l[S+"Width"],height:l[S+"Height"]}},isInResponsiveRange:function(l){var S=this.getViewPort().width;return"general"==l||"desktop"==l&&S>=this.getBreakpoint("lg")+1||"tablet"==l&&S>=this.getBreakpoint("md")+1&&S<this.getBreakpoint("lg")||"mobile"==l&&S<=this.getBreakpoint("md")||"desktop-and-tablet"==l&&S>=this.getBreakpoint("md")+1||"tablet-and-mobile"==l&&S<=this.getBreakpoint("lg")||"minimal-desktop-and-below"==l&&S<=this.getBreakpoint("xl")},isBreakpointUp:function(l){return this.getViewPort().width>=this.getBreakpoint(l)},isBreakpointDown:function(l){return this.getViewPort().width<this.getBreakpoint(l)},getUniqueID:function(l){return l+Math.floor(Math.random()*(new Date).getTime())},getBreakpoint:function(l){return f[l]},isset:function(l,S){var w;if(-1!==(S=S||"").indexOf("["))throw new Error("Unsupported object path notation.");S=S.split(".");do{if(void 0===l||(w=S.shift(),!l.hasOwnProperty(w)))return!1;l=l[w]}while(S.length);return!0},getHighestZindex:function(l){for(var S,w;l&&l!==document;){if(("absolute"===(S=KTUtil.css(l,"position"))||"relative"===S||"fixed"===S)&&(w=parseInt(KTUtil.css(l,"z-index")),!isNaN(w)&&0!==w))return w;l=l.parentNode}return null},hasFixedPositionedParent:function(l){for(;l&&l!==document;){if("fixed"===KTUtil.css(l,"position"))return!0;l=l.parentNode}return!1},sleep:function(l){for(var S=(new Date).getTime(),w=0;w<1e7&&!((new Date).getTime()-S>l);w++);},getRandomInt:function(l,S){return Math.floor(Math.random()*(S-l+1))+l},isAngularVersion:function(){return void 0!==window.Zone},deepExtend:function(l){l=l||{};for(var S=1;S<arguments.length;S++){var w=arguments[S];if(w)for(var k in w)w.hasOwnProperty(k)&&(l[k]="object"===_typeof(w[k])?KTUtil.deepExtend(l[k],w[k]):w[k])}return l},extend:function(l){l=l||{};for(var S=1;S<arguments.length;S++)if(arguments[S])for(var w in arguments[S])arguments[S].hasOwnProperty(w)&&(l[w]=arguments[S][w]);return l},getById:function(l){return"string"==typeof l?document.getElementById(l):l},getByTag:function(l){return document.getElementsByTagName(l)},getByTagName:function(l){return document.getElementsByTagName(l)},getByClass:function(l){return document.getElementsByClassName(l)},getBody:function(){return document.getElementsByTagName("body")[0]},hasClasses:function(l,S){if(l){for(var w=S.split(" "),k=0;k<w.length;k++)if(0==KTUtil.hasClass(l,KTUtil.trim(w[k])))return!1;return!0}},hasClass:function(l,S){if(l)return l.classList?l.classList.contains(S):new RegExp("\\b"+S+"\\b").test(l.className)},addClass:function(l,S){if(l&&void 0!==S){var w=S.split(" ");if(l.classList)for(var k=0;k<w.length;k++)w[k]&&w[k].length>0&&l.classList.add(KTUtil.trim(w[k]));else if(!KTUtil.hasClass(l,S))for(var p=0;p<w.length;p++)l.className+=" "+KTUtil.trim(w[p])}},removeClass:function(l,S){if(l&&void 0!==S){var w=S.split(" ");if(l.classList)for(var k=0;k<w.length;k++)l.classList.remove(KTUtil.trim(w[k]));else if(KTUtil.hasClass(l,S))for(var p=0;p<w.length;p++)l.className=l.className.replace(new RegExp("\\b"+KTUtil.trim(w[p])+"\\b","g"),"")}},triggerCustomEvent:function(l,S,w){var k;window.CustomEvent?k=new CustomEvent(S,{detail:w}):(k=document.createEvent("CustomEvent")).initCustomEvent(S,!0,!0,w),l.dispatchEvent(k)},triggerEvent:function(l,S){var w;if(l.ownerDocument)w=l.ownerDocument;else{if(9!=l.nodeType)throw new Error("Invalid node passed to fireEvent: "+l.id);w=l}if(l.dispatchEvent){var k="";switch(S){case"click":case"mouseenter":case"mouseleave":case"mousedown":case"mouseup":k="MouseEvents";break;case"focus":case"change":case"blur":case"select":k="HTMLEvents";break;default:throw"fireEvent: Couldn't find an event class for event '"+S+"'."}(p=w.createEvent(k)).initEvent(S,"change"!=S,!0),p.synthetic=!0,l.dispatchEvent(p,!0)}else if(l.fireEvent){var p;(p=w.createEventObject()).synthetic=!0,l.fireEvent("on"+S,p)}},index:function(l){for(var S=l.parentNode.children,w=0;w<S.length;w++)if(S[w]==l)return w},trim:function(l){return l.trim()},eventTriggered:function(l){return!!l.currentTarget.dataset.triggered||(l.currentTarget.dataset.triggered=!0,!1)},remove:function(l){l&&l.parentNode&&l.parentNode.removeChild(l)},find:function(l,S){if(l=KTUtil.getById(l))return l.querySelector(S)},findAll:function(l,S){if(l=KTUtil.getById(l))return l.querySelectorAll(S)},insertAfter:function(l,S){return S.parentNode.insertBefore(l,S.nextSibling)},parents:function(l,S){Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(k){for(var p=(this.document||this.ownerDocument).querySelectorAll(k),m=p.length;--m>=0&&p.item(m)!==this;);return m>-1});for(var w=[];l&&l!==document;l=l.parentNode)S?l.matches(S)&&w.push(l):w.push(l);return w},children:function(l,S,w){if(l&&l.childNodes){for(var k=[],p=0,m=l.childNodes.length;p<m;++p)1==l.childNodes[p].nodeType&&KTUtil.matches(l.childNodes[p],S,w)&&k.push(l.childNodes[p]);return k}},child:function(l,S,w){var k=KTUtil.children(l,S,w);return k?k[0]:null},matches:function(l,S,w){var k=Element.prototype;return!(!l||!l.tagName)&&(k.matches||k.webkitMatchesSelector||k.mozMatchesSelector||k.msMatchesSelector||function(m){return-1!==[].indexOf.call(document.querySelectorAll(m),this)}).call(l,S)},data:function(l){return{set:function(w,k){!l||(void 0===l.customDataTag&&(window.KTUtilElementDataStoreID++,l.customDataTag=window.KTUtilElementDataStoreID),void 0===window.KTUtilElementDataStore[l.customDataTag]&&(window.KTUtilElementDataStore[l.customDataTag]={}),window.KTUtilElementDataStore[l.customDataTag][w]=k)},get:function(w){if(l)return void 0===l.customDataTag?null:this.has(w)?window.KTUtilElementDataStore[l.customDataTag][w]:null},has:function(w){return!(!l||void 0===l.customDataTag||!window.KTUtilElementDataStore[l.customDataTag]||!window.KTUtilElementDataStore[l.customDataTag][w])},remove:function(w){l&&this.has(w)&&delete window.KTUtilElementDataStore[l.customDataTag][w]}}},outerWidth:function(l,S){var w;return!0===S?(w=parseFloat(l.offsetWidth),w+=parseFloat(KTUtil.css(l,"margin-left"))+parseFloat(KTUtil.css(l,"margin-right")),parseFloat(w)):w=parseFloat(l.offsetWidth)},offset:function(l){var S,w;if(l)return l.getClientRects().length?{top:(S=l.getBoundingClientRect()).top+(w=l.ownerDocument.defaultView).pageYOffset,left:S.left+w.pageXOffset}:{top:0,left:0}},height:function(l){return KTUtil.css(l,"height")},outerHeight:function(l){var k,S=arguments.length>1&&void 0!==arguments[1]&&arguments[1],w=l.offsetHeight;return S&&(k=getComputedStyle(l),w+=parseInt(k.marginTop)+parseInt(k.marginBottom)),w},visible:function(l){return!(0===l.offsetWidth&&0===l.offsetHeight)},attr:function(l,S,w){if(null!=l){if(void 0===w)return l.getAttribute(S);l.setAttribute(S,w)}},hasAttr:function(l,S){if(null!=l)return!!l.getAttribute(S)},removeAttr:function(l,S){null!=l&&l.removeAttribute(S)},animate:function(l,S,w,k,u,m){var v={linear:function(A,c,P,B){return P*A/B+c}};if(u=v.linear,"number"==typeof l&&"number"==typeof S&&"number"==typeof w&&"function"==typeof k){"function"!=typeof m&&(m=function(){});var C=window.requestAnimationFrame||function(A){window.setTimeout(A,20)},M=S-l;k(l);var b=window.performance&&window.performance.now?window.performance.now():+new Date;C(function O(A){var c=(A||+new Date)-b;c>=0&&k(u(c,l,M,w)),c>=0&&c>=w?(k(S),m()):C(O)})}},actualCss:function(l,S,w){var p,k="";if(!1!==_instanceof(l,HTMLElement))return l.getAttribute("kt-hidden-"+S)&&!1!==w?parseFloat(l.getAttribute("kt-hidden-"+S)):(k=l.style.cssText,l.style.cssText="position: absolute; visibility: hidden; display: block;","width"==S?p=l.offsetWidth:"height"==S&&(p=l.offsetHeight),l.style.cssText=k,l.setAttribute("kt-hidden-"+S,p),parseFloat(p))},actualHeight:function(l,S){return KTUtil.actualCss(l,"height",S)},actualWidth:function(l,S){return KTUtil.actualCss(l,"width",S)},getScroll:function(l,S){return S="scroll"+S,l==window||l==document?self["scrollTop"==S?"pageYOffset":"pageXOffset"]||browserSupportsBoxModel&&document.documentElement[S]||document.body[S]:l[S]},css:function(l,S,w){if(l)if(void 0!==w)l.style[S]=w;else{var k=(l.ownerDocument||document).defaultView;if(k&&k.getComputedStyle)return S=S.replace(/([A-Z])/g,"-$1").toLowerCase(),k.getComputedStyle(l,null).getPropertyValue(S);if(l.currentStyle)return S=S.replace(/\-(\w)/g,function(p,m){return m.toUpperCase()}),/^\d+(em|pt|%|ex)?$/i.test(w=l.currentStyle[S])?(p=w,m=l.style.left,v=l.runtimeStyle.left,l.runtimeStyle.left=l.currentStyle.left,l.style.left=p||0,p=l.style.pixelLeft+"px",l.style.left=m,l.runtimeStyle.left=v,p):w}var p,m,v},slide:function(l,S,w,k,p){if(!(!l||"up"==S&&!1===KTUtil.visible(l)||"down"==S&&!0===KTUtil.visible(l))){w=w||600;var m=KTUtil.actualHeight(l),v=!1,u=!1;KTUtil.css(l,"padding-top")&&!0!==KTUtil.data(l).has("slide-padding-top")&&KTUtil.data(l).set("slide-padding-top",KTUtil.css(l,"padding-top")),KTUtil.css(l,"padding-bottom")&&!0!==KTUtil.data(l).has("slide-padding-bottom")&&KTUtil.data(l).set("slide-padding-bottom",KTUtil.css(l,"padding-bottom")),KTUtil.data(l).has("slide-padding-top")&&(v=parseInt(KTUtil.data(l).get("slide-padding-top"))),KTUtil.data(l).has("slide-padding-bottom")&&(u=parseInt(KTUtil.data(l).get("slide-padding-bottom"))),"up"==S?(l.style.cssText="display: block; overflow: hidden;",v&&KTUtil.animate(0,v,w,function(C){l.style.paddingTop=v-C+"px"},"linear"),u&&KTUtil.animate(0,u,w,function(C){l.style.paddingBottom=u-C+"px"},"linear"),KTUtil.animate(0,m,w,function(C){l.style.height=m-C+"px"},"linear",function(){l.style.height="",l.style.display="none","function"==typeof k&&k()})):"down"==S&&(l.style.cssText="display: block; overflow: hidden;",v&&KTUtil.animate(0,v,w,function(C){l.style.paddingTop=C+"px"},"linear",function(){l.style.paddingTop=""}),u&&KTUtil.animate(0,u,w,function(C){l.style.paddingBottom=C+"px"},"linear",function(){l.style.paddingBottom=""}),KTUtil.animate(0,m,w,function(C){l.style.height=C+"px"},"linear",function(){l.style.height="",l.style.display="",l.style.overflow="","function"==typeof k&&k()}))}},slideUp:function(l,S,w){KTUtil.slide(l,"up",S,w)},slideDown:function(l,S,w){KTUtil.slide(l,"down",S,w)},show:function(l,S){void 0!==l&&(l.style.display=S||"block")},hide:function(l){void 0!==l&&(l.style.display="none")},addEvent:function(l,S,w,k){null!=l&&l.addEventListener(S,w)},removeEvent:function(l,S,w){null!==l&&l.removeEventListener(S,w)},on:function(l,S,w,k){if(S){var p=KTUtil.getUniqueID("event");return window.KTUtilDelegatedEventHandlers[p]=function(m){for(var v=l.querySelectorAll(S),u=m.target;u&&u!==l;){for(var C=0,T=v.length;C<T;C++)u===v[C]&&k.call(u,m);u=u.parentNode}},KTUtil.addEvent(l,w,window.KTUtilDelegatedEventHandlers[p]),p}},off:function(l,S,w){!l||!window.KTUtilDelegatedEventHandlers[w]||(KTUtil.removeEvent(l,S,window.KTUtilDelegatedEventHandlers[w]),delete window.KTUtilDelegatedEventHandlers[w])},one:function(l,S,w){l.addEventListener(S,function k(p){return p.target&&p.target.removeEventListener&&p.target.removeEventListener(p.type,k),l&&l.removeEventListener&&p.currentTarget.removeEventListener(p.type,k),w(p)})},hash:function(l){var w,S=0;if(0===l.length)return S;for(w=0;w<l.length;w++)S=(S<<5)-S+l.charCodeAt(w),S|=0;return S},animateClass:function(l,S,w){var k,p={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd",msAnimation:"msAnimationEnd"};for(var m in p)void 0!==l.style[m]&&(k=p[m]);KTUtil.addClass(l,"animated "+S),KTUtil.one(l,k,function(){KTUtil.removeClass(l,"animated "+S)}),w&&KTUtil.one(l,k,w)},transitionEnd:function(l,S){var w,k={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"mozTransitionEnd",WebkitTransition:"webkitTransitionEnd",msTransition:"msTransitionEnd"};for(var p in k)void 0!==l.style[p]&&(w=k[p]);KTUtil.one(l,w,S)},animationEnd:function(l,S){var w,k={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd",msAnimation:"msAnimationEnd"};for(var p in k)void 0!==l.style[p]&&(w=k[p]);KTUtil.one(l,w,S)},animateDelay:function(l,S){for(var w=["webkit-","moz-","ms-","o-",""],k=0;k<w.length;k++)KTUtil.css(l,w[k]+"animation-delay",S)},animateDuration:function(l,S){for(var w=["webkit-","moz-","ms-","o-",""],k=0;k<w.length;k++)KTUtil.css(l,w[k]+"animation-duration",S)},scrollTo:function(l,S,k){k=k||500;var p=l?KTUtil.offset(l).top:0,m=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;S&&(m+=S),KTUtil.animate(m,p,k,function(C){document.documentElement.scrollTop=C,document.body.parentNode.scrollTop=C,document.body.scrollTop=C})},scrollTop:function(l,S){KTUtil.scrollTo(null,l,S)},isArray:function(l){return l&&Array.isArray(l)},ready:function(l){(document.attachEvent?"complete"===document.readyState:"loading"!==document.readyState)?l():document.addEventListener("DOMContentLoaded",l)},isEmpty:function(l){for(var S in l)if(l.hasOwnProperty(S))return!1;return!0},numberString:function(l){for(var S=(l+="").split("."),w=S[0],k=S.length>1?"."+S[1]:"",p=/(\d+)(\d{3})/;p.test(w);)w=w.replace(p,"$1,$2");return w+k},detectIE:function(){var l=window.navigator.userAgent,S=l.indexOf("MSIE ");if(S>0)return parseInt(l.substring(S+5,l.indexOf(".",S)),10);if(l.indexOf("Trident/")>0){var k=l.indexOf("rv:");return parseInt(l.substring(k+3,l.indexOf(".",k)),10)}var p=l.indexOf("Edge/");return p>0&&parseInt(l.substring(p+5,l.indexOf(".",p)),10)},isRTL:function(){var l=KTUtil.getByTagName("html")[0];if(l)return"rtl"==KTUtil.attr(l,"direction")},scrollInit:function(l,S){function k(){var p,m,v=l.getAttributeNames();v.length>0&&v.forEach(function(C){if(/^data-.*/g.test(C)&&0==["scroll","height","mobile-height"].includes(T)){var T=C.replace("data-","").toLowerCase().replace(/(?:[\s-])\w/g,function(M){return M.replace("-","").toUpperCase()});S[T]=KTUtil.filterBoolean(l.getAttribute(C))}}),!1!==(m=_instanceof(S.height,Function)?S.height.call():S.mobileHeight?parseInt(S.mobileHeight):parseInt(S.height))?(m=parseInt(m),(S.mobileNativeScroll||S.disableForMobile)&&KTUtil.isBreakpointDown("lg")?(p=KTUtil.data(l).get("ps"))?(S.resetHeightOnDestroy?KTUtil.css(l,"height","auto"):(KTUtil.css(l,"overflow","auto"),m>0&&KTUtil.css(l,"height",m+"px")),p.destroy(),p=KTUtil.data(l).remove("ps")):m>0&&(KTUtil.css(l,"overflow","auto"),KTUtil.css(l,"height",m+"px")):(m>0&&KTUtil.css(l,"height",m+"px"),S.desktopNativeScroll?KTUtil.css(l,"overflow","auto"):("true"==KTUtil.attr(l,"data-window-scroll")&&(S.windowScroll=!0),(p=KTUtil.data(l).get("ps"))?p.update():(KTUtil.css(l,"overflow","hidden"),KTUtil.addClass(l,"scroll"),p=new PerfectScrollbar(l,S),KTUtil.data(l).set("ps",p)),KTUtil.attr(l,"id")))):KTUtil.scrollDestroy(l,!0)}l&&(S=KTUtil.deepExtend({},{wheelSpeed:.5,swipeEasing:!0,wheelPropagation:!1,minScrollbarLength:40,maxScrollbarLength:300,suppressScrollX:!0},S),k(),S.handleWindowResize&&KTUtil.addResizeHandler(function(){k()}))},scrollUpdate:function(l){var S=KTUtil.data(l).get("ps");S&&S.update()},scrollUpdateAll:function(l){for(var S=KTUtil.findAll(l,".ps"),w=0,k=S.length;w<k;w++)KTUtil.scrollUpdate(S[w])},scrollDestroy:function(l,S){var w=KTUtil.data(l).get("ps");w&&(w.destroy(),w=KTUtil.data(l).remove("ps")),l&&S&&(l.style.setProperty("overflow",""),l.style.setProperty("height",""))},filterBoolean:function(l){return!0===l||"true"===l||!1!==l&&"false"!==l&&l},setHTML:function(l,S){l.innerHTML=S},getHTML:function(l){if(l)return l.innerHTML},getDocumentHeight:function(){var l=document.body,S=document.documentElement;return Math.max(l.scrollHeight,l.offsetHeight,S.clientHeight,S.scrollHeight,S.offsetHeight)},getScrollTop:function(){return(document.scrollingElement||document.documentElement).scrollTop},colorDarken:function(l,S){var w=function(p,m){var v=parseInt(p,16)-m,u=v<0?0:v;return u.toString(16).length>1?u.toString(16):"0".concat(u.toString(16))};return l=l.indexOf("#")>=0?l.substring(1,l.length):l,S=parseInt(255*S/100),"#".concat(w(l.substring(0,2),S)).concat(w(l.substring(2,4),S)).concat(w(l.substring(4,6),S))},colorLighten:function(l,S){var w=function(p,m){var v=parseInt(p,16)+m,u=v>255?255:v;return u.toString(16).length>1?u.toString(16):"0".concat(u.toString(16))};return l=l.indexOf("#")>=0?l.substring(1,l.length):l,S=parseInt(255*S/100),"#".concat(w(l.substring(0,2),S)).concat(w(l.substring(2,4),S)).concat(w(l.substring(4,6),S))},throttle:function(l,S,w){l||(l=setTimeout(function(){S(),l=void 0},w))},debounce:function(l,S,w){clearTimeout(l),l=setTimeout(S,w)},btnWait:function(l,S,w){var k=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(l&&(k&&KTUtil.attr(l,"disabled",!0),S&&(KTUtil.addClass(l,S),KTUtil.attr(l,"wait-class",S)),w)){var p=KTUtil.find(l,".btn-caption");p?(KTUtil.data(p).set("caption",KTUtil.getHTML(p)),KTUtil.setHTML(p,w)):(KTUtil.data(l).set("caption",KTUtil.getHTML(l)),KTUtil.setHTML(l,w))}},btnRelease:function(l){if(l){KTUtil.removeAttr(l,"disabled"),KTUtil.hasAttr(l,"wait-class")&&KTUtil.removeClass(l,KTUtil.attr(l,"wait-class"));var S=KTUtil.find(l,".btn-caption");S&&KTUtil.data(S).has("caption")?KTUtil.setHTML(S,KTUtil.data(S).get("caption")):KTUtil.data(l).has("caption")&&KTUtil.setHTML(l,KTUtil.data(l).get("caption"))}},isOffscreen:function(l,S){var w=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,k=KTUtil.getViewPort().width,p=KTUtil.getViewPort().height,m=KTUtil.offset(l).top,v=KTUtil.outerHeight(l)+w,u=KTUtil.offset(l).left,C=KTUtil.outerWidth(l)+w;if("bottom"==S){if(p<m+v)return!0;if(p>m+1.5*v)return!0}if("top"==S){if(m<0)return!0;if(m>v)return!0}return"left"==S&&u<0||"right"==S&&k<u+C}}}();"undefined"!=typeof module&&void 0!==module.exports&&(module.exports=KTUtil),KTUtil.ready(function(){"undefined"!=typeof KTAppSettings?KTUtil.init(KTAppSettings):KTUtil.init()}),window.onload=function(){var i=KTUtil.getByTagName("body");i&&i[0]&&KTUtil.removeClass(i[0],"page-loading")},function(i,f){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=i.document?f(i,!0):function(g){if(!g.document)throw new Error("jQuery requires a window with a document");return f(g)}:f(i)}("undefined"!=typeof window?window:this,function(i,f){"use strict";var g=[],j=Object.getPrototypeOf,l=g.slice,S=g.flat?function(s){return g.flat.call(s)}:function(s){return g.concat.apply([],s)},w=g.push,k=g.indexOf,p={},m=p.toString,v=p.hasOwnProperty,u=v.toString,C=u.call(Object),T={},M=function(s){return"function"==typeof s&&"number"!=typeof s.nodeType&&"function"!=typeof s.item},O=function(s){return null!=s&&s===s.window},b=i.document,A={type:!0,src:!0,nonce:!0,noModule:!0};function c(s,x,H){var z,K,ee=(H=H||b).createElement("script");if(ee.text=s,x)for(z in A)(K=x[z]||x.getAttribute&&x.getAttribute(z))&&ee.setAttribute(z,K);H.head.appendChild(ee).parentNode.removeChild(ee)}function P(s){return null==s?s+"":"object"==typeof s||"function"==typeof s?p[m.call(s)]||"object":typeof s}var B="3.7.1",q=/HTML$/i,o=function(s,x){return new o.fn.init(s,x)};function y(s){var x=!!s&&"length"in s&&s.length,H=P(s);return!M(s)&&!O(s)&&("array"===H||0===x||"number"==typeof x&&0<x&&x-1 in s)}function _(s,x){return s.nodeName&&s.nodeName.toLowerCase()===x.toLowerCase()}o.fn=o.prototype={jquery:B,constructor:o,length:0,toArray:function(){return l.call(this)},get:function(s){return null==s?l.call(this):s<0?this[s+this.length]:this[s]},pushStack:function(s){var x=o.merge(this.constructor(),s);return x.prevObject=this,x},each:function(s){return o.each(this,s)},map:function(s){return this.pushStack(o.map(this,function(x,H){return s.call(x,H,x)}))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(o.grep(this,function(s,x){return(x+1)%2}))},odd:function(){return this.pushStack(o.grep(this,function(s,x){return x%2}))},eq:function(s){var x=this.length,H=+s+(s<0?x:0);return this.pushStack(0<=H&&H<x?[this[H]]:[])},end:function(){return this.prevObject||this.constructor()},push:w,sort:g.sort,splice:g.splice},o.extend=o.fn.extend=function(){var s,x,H,z,K,ee,ue=arguments[0]||{},ke=1,_e=arguments.length,Pe=!1;for("boolean"==typeof ue&&(Pe=ue,ue=arguments[ke]||{},ke++),"object"==typeof ue||M(ue)||(ue={}),ke===_e&&(ue=this,ke--);ke<_e;ke++)if(null!=(s=arguments[ke]))for(x in s)z=s[x],"__proto__"!==x&&ue!==z&&(Pe&&z&&(o.isPlainObject(z)||(K=Array.isArray(z)))?(H=ue[x],ee=K&&!Array.isArray(H)?[]:K||o.isPlainObject(H)?H:{},K=!1,ue[x]=o.extend(Pe,ee,z)):void 0!==z&&(ue[x]=z));return ue},o.extend({expando:"jQuery"+(B+Math.random()).replace(/\D/g,""),isReady:!0,error:function(s){throw new Error(s)},noop:function(){},isPlainObject:function(s){var x,H;return!(!s||"[object Object]"!==m.call(s)||(x=j(s))&&("function"!=typeof(H=v.call(x,"constructor")&&x.constructor)||u.call(H)!==C))},isEmptyObject:function(s){var x;for(x in s)return!1;return!0},globalEval:function(s,x,H){c(s,{nonce:x&&x.nonce},H)},each:function(s,x){var H,z=0;if(y(s))for(H=s.length;z<H&&!1!==x.call(s[z],z,s[z]);z++);else for(z in s)if(!1===x.call(s[z],z,s[z]))break;return s},text:function(s){var x,H="",z=0,K=s.nodeType;if(!K)for(;x=s[z++];)H+=o.text(x);return 1===K||11===K?s.textContent:9===K?s.documentElement.textContent:3===K||4===K?s.nodeValue:H},makeArray:function(s,x){var H=x||[];return null!=s&&(y(Object(s))?o.merge(H,"string"==typeof s?[s]:s):w.call(H,s)),H},inArray:function(s,x,H){return null==x?-1:k.call(x,s,H)},isXMLDoc:function(s){var H=s&&(s.ownerDocument||s).documentElement;return!q.test(s&&s.namespaceURI||H&&H.nodeName||"HTML")},merge:function(s,x){for(var H=+x.length,z=0,K=s.length;z<H;z++)s[K++]=x[z];return s.length=K,s},grep:function(s,x,H){for(var z=[],K=0,ee=s.length,ue=!H;K<ee;K++)!x(s[K],K)!==ue&&z.push(s[K]);return z},map:function(s,x,H){var z,K,ee=0,ue=[];if(y(s))for(z=s.length;ee<z;ee++)null!=(K=x(s[ee],ee,H))&&ue.push(K);else for(ee in s)null!=(K=x(s[ee],ee,H))&&ue.push(K);return S(ue)},guid:1,support:T}),"function"==typeof Symbol&&(o.fn[Symbol.iterator]=g[Symbol.iterator]),o.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(s,x){p["[object "+x+"]"]=x.toLowerCase()});var R=g.pop,N=g.sort,W=g.splice,G="[\\x20\\t\\r\\n\\f]",ne=new RegExp("^"+G+"+|((?:^|[^\\\\])(?:\\\\.)*)"+G+"+$","g");o.contains=function(s,x){var H=x&&x.parentNode;return s===H||!(!H||1!==H.nodeType||!(s.contains?s.contains(H):s.compareDocumentPosition&&16&s.compareDocumentPosition(H)))};var Z=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function te(s,x){return x?"\0"===s?"\ufffd":s.slice(0,-1)+"\\"+s.charCodeAt(s.length-1).toString(16)+" ":"\\"+s}o.escapeSelector=function(s){return(s+"").replace(Z,te)};var ge=b,Q=w;!function(){var s,x,H,z,K,ee,ue,ke,_e,Pe,Be=Q,Ge=o.expando,Le=0,Xe=0,mt=nn(),xt=nn(),kt=nn(),Jt=nn(),sn=function(ye,Ae){return ye===Ae&&(K=!0),0},En="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",qn="(?:\\\\[\\da-fA-F]{1,6}"+G+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Mt="\\["+G+"*("+qn+")(?:"+G+"*([*^$|!~]?=)"+G+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+qn+"))|)"+G+"*\\]",$n=":("+qn+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Mt+")*)|.*)\\)|)",It=new RegExp(G+"+","g"),Zt=new RegExp("^"+G+"*,"+G+"*"),oi=new RegExp("^"+G+"*([>+~]|"+G+")"+G+"*"),xi=new RegExp(G+"|>"),Dn=new RegExp($n),si=new RegExp("^"+qn+"$"),Ln={ID:new RegExp("^#("+qn+")"),CLASS:new RegExp("^\\.("+qn+")"),TAG:new RegExp("^("+qn+"|[*])"),ATTR:new RegExp("^"+Mt),PSEUDO:new RegExp("^"+$n),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+G+"*(even|odd|(([+-]|)(\\d*)n|)"+G+"*(?:([+-]|)"+G+"*(\\d+)|))"+G+"*\\)|)","i"),bool:new RegExp("^(?:"+En+")$","i"),needsContext:new RegExp("^"+G+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+G+"*((?:-\\d)?\\d*)"+G+"*\\)|)(?=[^-]|$)","i")},Cn=/^(?:input|select|textarea|button)$/i,ai=/^h\d$/i,On=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ln=/[+~]/,tn=new RegExp("\\\\[\\da-fA-F]{1,6}"+G+"?|\\\\([^\\r\\n\\f])","g"),pn=function(ye,Ae){var He="0x"+ye.slice(1)-65536;return Ae||(He<0?String.fromCharCode(He+65536):String.fromCharCode(He>>10|55296,1023&He|56320))},Fn=function(){Xn()},vn=Qn(function(ye){return!0===ye.disabled&&_(ye,"fieldset")},{dir:"parentNode",next:"legend"});try{Be.apply(g=l.call(ge.childNodes),ge.childNodes)}catch(ye){Be={apply:function(Ae,He){Q.apply(Ae,l.call(He))},call:function(Ae){Q.apply(Ae,l.call(arguments,1))}}}function _t(ye,Ae,He,ze){var Ve,ct,ht,pt,at,Nt,Ct,Dt=Ae&&Ae.ownerDocument,Ht=Ae?Ae.nodeType:9;if(He=He||[],"string"!=typeof ye||!ye||1!==Ht&&9!==Ht&&11!==Ht)return He;if(!ze&&(Xn(Ae),Ae=Ae||ee,ke)){if(11!==Ht&&(at=On.exec(ye)))if(Ve=at[1]){if(9===Ht){if(!(ht=Ae.getElementById(Ve)))return He;if(ht.id===Ve)return Be.call(He,ht),He}else if(Dt&&(ht=Dt.getElementById(Ve))&&_t.contains(Ae,ht)&&ht.id===Ve)return Be.call(He,ht),He}else{if(at[2])return Be.apply(He,Ae.getElementsByTagName(ye)),He;if((Ve=at[3])&&Ae.getElementsByClassName)return Be.apply(He,Ae.getElementsByClassName(Ve)),He}if(!(Jt[ye+" "]||_e&&_e.test(ye))){if(Ct=ye,Dt=Ae,1===Ht&&(xi.test(ye)||oi.test(ye))){for((Dt=ln.test(ye)&&hi(Ae.parentNode)||Ae)==Ae&&T.scope||((pt=Ae.getAttribute("id"))?pt=o.escapeSelector(pt):Ae.setAttribute("id",pt=Ge)),ct=(Nt=fi(ye)).length;ct--;)Nt[ct]=(pt?"#"+pt:":scope")+" "+Si(Nt[ct]);Ct=Nt.join(",")}try{return Be.apply(He,Dt.querySelectorAll(Ct)),He}catch(Tt){Jt(ye,!0)}finally{pt===Ge&&Ae.removeAttribute("id")}}}return Ui(ye.replace(ne,"$1"),Ae,He,ze)}function nn(){var ye=[];return function Ae(He,ze){return ye.push(He+" ")>x.cacheLength&&delete Ae[ye.shift()],Ae[He+" "]=ze}}function rn(ye){return ye[Ge]=!0,ye}function Vt(ye){var Ae=ee.createElement("fieldset");try{return!!ye(Ae)}catch(He){return!1}finally{Ae.parentNode&&Ae.parentNode.removeChild(Ae),Ae=null}}function In(ye){return function(Ae){return _(Ae,"input")&&Ae.type===ye}}function Jn(ye){return function(Ae){return(_(Ae,"input")||_(Ae,"button"))&&Ae.type===ye}}function ki(ye){return function(Ae){return"form"in Ae?Ae.parentNode&&!1===Ae.disabled?"label"in Ae?"label"in Ae.parentNode?Ae.parentNode.disabled===ye:Ae.disabled===ye:Ae.isDisabled===ye||Ae.isDisabled!==!ye&&vn(Ae)===ye:Ae.disabled===ye:"label"in Ae&&Ae.disabled===ye}}function Vn(ye){return rn(function(Ae){return Ae=+Ae,rn(function(He,ze){for(var Ve,ct=ye([],He.length,Ae),ht=ct.length;ht--;)He[Ve=ct[ht]]&&(He[Ve]=!(ze[Ve]=He[Ve]))})})}function hi(ye){return ye&&void 0!==ye.getElementsByTagName&&ye}function Xn(ye){var Ae,He=ye?ye.ownerDocument||ye:ge;return He!=ee&&9===He.nodeType&&He.documentElement&&(ue=(ee=He).documentElement,ke=!o.isXMLDoc(ee),Pe=ue.matches||ue.webkitMatchesSelector||ue.msMatchesSelector,ue.msMatchesSelector&&ge!=ee&&(Ae=ee.defaultView)&&Ae.top!==Ae&&Ae.addEventListener("unload",Fn),T.getById=Vt(function(ze){return ue.appendChild(ze).id=o.expando,!ee.getElementsByName||!ee.getElementsByName(o.expando).length}),T.disconnectedMatch=Vt(function(ze){return Pe.call(ze,"*")}),T.scope=Vt(function(){return ee.querySelectorAll(":scope")}),T.cssHas=Vt(function(){try{return ee.querySelector(":has(*,:jqfake)"),!1}catch(ze){return!0}}),T.getById?(x.filter.ID=function(ze){var Ve=ze.replace(tn,pn);return function(ct){return ct.getAttribute("id")===Ve}},x.find.ID=function(ze,Ve){if(void 0!==Ve.getElementById&&ke){var ct=Ve.getElementById(ze);return ct?[ct]:[]}}):(x.filter.ID=function(ze){var Ve=ze.replace(tn,pn);return function(ct){var ht=void 0!==ct.getAttributeNode&&ct.getAttributeNode("id");return ht&&ht.value===Ve}},x.find.ID=function(ze,Ve){if(void 0!==Ve.getElementById&&ke){var ct,ht,pt,at=Ve.getElementById(ze);if(at){if((ct=at.getAttributeNode("id"))&&ct.value===ze)return[at];for(pt=Ve.getElementsByName(ze),ht=0;at=pt[ht++];)if((ct=at.getAttributeNode("id"))&&ct.value===ze)return[at]}return[]}}),x.find.TAG=function(ze,Ve){return void 0!==Ve.getElementsByTagName?Ve.getElementsByTagName(ze):Ve.querySelectorAll(ze)},x.find.CLASS=function(ze,Ve){if(void 0!==Ve.getElementsByClassName&&ke)return Ve.getElementsByClassName(ze)},_e=[],Vt(function(ze){var Ve;ue.appendChild(ze).innerHTML="<a id='"+Ge+"' href='' disabled='disabled'></a><select id='"+Ge+"-\r\\' disabled='disabled'><option selected=''></option></select>",ze.querySelectorAll("[selected]").length||_e.push("\\["+G+"*(?:value|"+En+")"),ze.querySelectorAll("[id~="+Ge+"-]").length||_e.push("~="),ze.querySelectorAll("a#"+Ge+"+*").length||_e.push(".#.+[+~]"),ze.querySelectorAll(":checked").length||_e.push(":checked"),(Ve=ee.createElement("input")).setAttribute("type","hidden"),ze.appendChild(Ve).setAttribute("name","D"),ue.appendChild(ze).disabled=!0,2!==ze.querySelectorAll(":disabled").length&&_e.push(":enabled",":disabled"),(Ve=ee.createElement("input")).setAttribute("name",""),ze.appendChild(Ve),ze.querySelectorAll("[name='']").length||_e.push("\\["+G+"*name"+G+"*="+G+"*(?:''|\"\")")}),T.cssHas||_e.push(":has"),_e=_e.length&&new RegExp(_e.join("|")),sn=function(ze,Ve){if(ze===Ve)return K=!0,0;var ct=!ze.compareDocumentPosition-!Ve.compareDocumentPosition;return ct||(1&(ct=(ze.ownerDocument||ze)==(Ve.ownerDocument||Ve)?ze.compareDocumentPosition(Ve):1)||!T.sortDetached&&Ve.compareDocumentPosition(ze)===ct?ze===ee||ze.ownerDocument==ge&&_t.contains(ge,ze)?-1:Ve===ee||Ve.ownerDocument==ge&&_t.contains(ge,Ve)?1:z?k.call(z,ze)-k.call(z,Ve):0:4&ct?-1:1)}),ee}for(s in _t.matches=function(ye,Ae){return _t(ye,null,null,Ae)},_t.matchesSelector=function(ye,Ae){if(Xn(ye),ke&&!Jt[Ae+" "]&&(!_e||!_e.test(Ae)))try{var He=Pe.call(ye,Ae);if(He||T.disconnectedMatch||ye.document&&11!==ye.document.nodeType)return He}catch(ze){Jt(Ae,!0)}return 0<_t(Ae,ee,null,[ye]).length},_t.contains=function(ye,Ae){return(ye.ownerDocument||ye)!=ee&&Xn(ye),o.contains(ye,Ae)},_t.attr=function(ye,Ae){(ye.ownerDocument||ye)!=ee&&Xn(ye);var He=x.attrHandle[Ae.toLowerCase()],ze=He&&v.call(x.attrHandle,Ae.toLowerCase())?He(ye,Ae,!ke):void 0;return void 0!==ze?ze:ye.getAttribute(Ae)},_t.error=function(ye){throw new Error("Syntax error, unrecognized expression: "+ye)},o.uniqueSort=function(ye){var Ae,He=[],ze=0,Ve=0;if(K=!T.sortStable,z=!T.sortStable&&l.call(ye,0),N.call(ye,sn),K){for(;Ae=ye[Ve++];)Ae===ye[Ve]&&(ze=He.push(Ve));for(;ze--;)W.call(ye,He[ze],1)}return z=null,ye},o.fn.uniqueSort=function(){return this.pushStack(o.uniqueSort(l.apply(this)))},(x=o.expr={cacheLength:50,createPseudo:rn,match:Ln,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(ye){return ye[1]=ye[1].replace(tn,pn),ye[3]=(ye[3]||ye[4]||ye[5]||"").replace(tn,pn),"~="===ye[2]&&(ye[3]=" "+ye[3]+" "),ye.slice(0,4)},CHILD:function(ye){return ye[1]=ye[1].toLowerCase(),"nth"===ye[1].slice(0,3)?(ye[3]||_t.error(ye[0]),ye[4]=+(ye[4]?ye[5]+(ye[6]||1):2*("even"===ye[3]||"odd"===ye[3])),ye[5]=+(ye[7]+ye[8]||"odd"===ye[3])):ye[3]&&_t.error(ye[0]),ye},PSEUDO:function(ye){var Ae,He=!ye[6]&&ye[2];return Ln.CHILD.test(ye[0])?null:(ye[3]?ye[2]=ye[4]||ye[5]||"":He&&Dn.test(He)&&(Ae=fi(He,!0))&&(Ae=He.indexOf(")",He.length-Ae)-He.length)&&(ye[0]=ye[0].slice(0,Ae),ye[2]=He.slice(0,Ae)),ye.slice(0,3))}},filter:{TAG:function(ye){var Ae=ye.replace(tn,pn).toLowerCase();return"*"===ye?function(){return!0}:function(He){return _(He,Ae)}},CLASS:function(ye){var Ae=mt[ye+" "];return Ae||(Ae=new RegExp("(^|"+G+")"+ye+"("+G+"|$)"))&&mt(ye,function(He){return Ae.test("string"==typeof He.className&&He.className||void 0!==He.getAttribute&&He.getAttribute("class")||"")})},ATTR:function(ye,Ae,He){return function(ze){var Ve=_t.attr(ze,ye);return null==Ve?"!="===Ae:!Ae||(Ve+="","="===Ae?Ve===He:"!="===Ae?Ve!==He:"^="===Ae?He&&0===Ve.indexOf(He):"*="===Ae?He&&-1<Ve.indexOf(He):"$="===Ae?He&&Ve.slice(-He.length)===He:"~="===Ae?-1<(" "+Ve.replace(It," ")+" ").indexOf(He):"|="===Ae&&(Ve===He||Ve.slice(0,He.length+1)===He+"-"))}},CHILD:function(ye,Ae,He,ze,Ve){var ct="nth"!==ye.slice(0,3),ht="last"!==ye.slice(-4),pt="of-type"===Ae;return 1===ze&&0===Ve?function(at){return!!at.parentNode}:function(at,Nt,Ct){var Dt,Ht,Tt,un,yn,cn=ct!==ht?"nextSibling":"previousSibling",kn=at.parentNode,Sn=pt&&at.nodeName.toLowerCase(),Pn=!Ct&&!pt,Xt=!1;if(kn){if(ct){for(;cn;){for(Tt=at;Tt=Tt[cn];)if(pt?_(Tt,Sn):1===Tt.nodeType)return!1;yn=cn="only"===ye&&!yn&&"nextSibling"}return!0}if(yn=[ht?kn.firstChild:kn.lastChild],ht&&Pn){for(Xt=(un=(Dt=(Ht=kn[Ge]||(kn[Ge]={}))[ye]||[])[0]===Le&&Dt[1])&&Dt[2],Tt=un&&kn.childNodes[un];Tt=++un&&Tt&&Tt[cn]||(Xt=un=0)||yn.pop();)if(1===Tt.nodeType&&++Xt&&Tt===at){Ht[ye]=[Le,un,Xt];break}}else if(Pn&&(Xt=un=(Dt=(Ht=at[Ge]||(at[Ge]={}))[ye]||[])[0]===Le&&Dt[1]),!1===Xt)for(;(Tt=++un&&Tt&&Tt[cn]||(Xt=un=0)||yn.pop())&&(!(pt?_(Tt,Sn):1===Tt.nodeType)||!++Xt||(Pn&&((Ht=Tt[Ge]||(Tt[Ge]={}))[ye]=[Le,Xt]),Tt!==at)););return(Xt-=Ve)===ze||Xt%ze==0&&0<=Xt/ze}}},PSEUDO:function(ye,Ae){var He,ze=x.pseudos[ye]||x.setFilters[ye.toLowerCase()]||_t.error("unsupported pseudo: "+ye);return ze[Ge]?ze(Ae):1<ze.length?(He=[ye,ye,"",Ae],x.setFilters.hasOwnProperty(ye.toLowerCase())?rn(function(Ve,ct){for(var ht,pt=ze(Ve,Ae),at=pt.length;at--;)Ve[ht=k.call(Ve,pt[at])]=!(ct[ht]=pt[at])}):function(Ve){return ze(Ve,0,He)}):ze}},pseudos:{not:rn(function(ye){var Ae=[],He=[],ze=Ei(ye.replace(ne,"$1"));return ze[Ge]?rn(function(Ve,ct,ht,pt){for(var at,Nt=ze(Ve,null,pt,[]),Ct=Ve.length;Ct--;)(at=Nt[Ct])&&(Ve[Ct]=!(ct[Ct]=at))}):function(Ve,ct,ht){return Ae[0]=Ve,ze(Ae,null,ht,He),Ae[0]=null,!He.pop()}}),has:rn(function(ye){return function(Ae){return 0<_t(ye,Ae).length}}),contains:rn(function(ye){return ye=ye.replace(tn,pn),function(Ae){return-1<(Ae.textContent||o.text(Ae)).indexOf(ye)}}),lang:rn(function(ye){return si.test(ye||"")||_t.error("unsupported lang: "+ye),ye=ye.replace(tn,pn).toLowerCase(),function(Ae){var He;do{if(He=ke?Ae.lang:Ae.getAttribute("xml:lang")||Ae.getAttribute("lang"))return(He=He.toLowerCase())===ye||0===He.indexOf(ye+"-")}while((Ae=Ae.parentNode)&&1===Ae.nodeType);return!1}}),target:function(ye){var Ae=i.location&&i.location.hash;return Ae&&Ae.slice(1)===ye.id},root:function(ye){return ye===ue},focus:function(ye){return ye===function(){try{return ee.activeElement}catch(Ae){}}()&&ee.hasFocus()&&!!(ye.type||ye.href||~ye.tabIndex)},enabled:ki(!1),disabled:ki(!0),checked:function(ye){return _(ye,"input")&&!!ye.checked||_(ye,"option")&&!!ye.selected},selected:function(ye){return!0===ye.selected},empty:function(ye){for(ye=ye.firstChild;ye;ye=ye.nextSibling)if(ye.nodeType<6)return!1;return!0},parent:function(ye){return!x.pseudos.empty(ye)},header:function(ye){return ai.test(ye.nodeName)},input:function(ye){return Cn.test(ye.nodeName)},button:function(ye){return _(ye,"input")&&"button"===ye.type||_(ye,"button")},text:function(ye){var Ae;return _(ye,"input")&&"text"===ye.type&&(null==(Ae=ye.getAttribute("type"))||"text"===Ae.toLowerCase())},first:Vn(function(){return[0]}),last:Vn(function(ye,Ae){return[Ae-1]}),eq:Vn(function(ye,Ae,He){return[He<0?He+Ae:He]}),even:Vn(function(ye,Ae){for(var He=0;He<Ae;He+=2)ye.push(He);return ye}),odd:Vn(function(ye,Ae){for(var He=1;He<Ae;He+=2)ye.push(He);return ye}),lt:Vn(function(ye,Ae,He){var ze;for(ze=He<0?He+Ae:Ae<He?Ae:He;0<=--ze;)ye.push(ze);return ye}),gt:Vn(function(ye,Ae,He){for(var ze=He<0?He+Ae:He;++ze<Ae;)ye.push(ze);return ye})}}).pseudos.nth=x.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[s]=In(s);for(s in{submit:!0,reset:!0})x.pseudos[s]=Jn(s);function zi(){}function fi(ye,Ae){var He,ze,Ve,ct,ht,pt,at,Nt=xt[ye+" "];if(Nt)return Ae?0:Nt.slice(0);for(ht=ye,pt=[],at=x.preFilter;ht;){for(ct in He&&!(ze=Zt.exec(ht))||(ze&&(ht=ht.slice(ze[0].length)||ht),pt.push(Ve=[])),He=!1,(ze=oi.exec(ht))&&(He=ze.shift(),Ve.push({value:He,type:ze[0].replace(ne," ")}),ht=ht.slice(He.length)),x.filter)!(ze=Ln[ct].exec(ht))||at[ct]&&!(ze=at[ct](ze))||(He=ze.shift(),Ve.push({value:He,type:ct,matches:ze}),ht=ht.slice(He.length));if(!He)break}return Ae?ht.length:ht?_t.error(ye):xt(ye,pt).slice(0)}function Si(ye){for(var Ae=0,He=ye.length,ze="";Ae<He;Ae++)ze+=ye[Ae].value;return ze}function Qn(ye,Ae,He){var ze=Ae.dir,Ve=Ae.next,ct=Ve||ze,ht=He&&"parentNode"===ct,pt=Xe++;return Ae.first?function(at,Nt,Ct){for(;at=at[ze];)if(1===at.nodeType||ht)return ye(at,Nt,Ct);return!1}:function(at,Nt,Ct){var Dt,Ht,Tt=[Le,pt];if(Ct){for(;at=at[ze];)if((1===at.nodeType||ht)&&ye(at,Nt,Ct))return!0}else for(;at=at[ze];)if(1===at.nodeType||ht)if(Ht=at[Ge]||(at[Ge]={}),Ve&&_(at,Ve))at=at[ze]||at;else{if((Dt=Ht[ct])&&Dt[0]===Le&&Dt[1]===pt)return Tt[2]=Dt[2];if((Ht[ct]=Tt)[2]=ye(at,Nt,Ct))return!0}return!1}}function qi(ye){return 1<ye.length?function(Ae,He,ze){for(var Ve=ye.length;Ve--;)if(!ye[Ve](Ae,He,ze))return!1;return!0}:ye[0]}function Ti(ye,Ae,He,ze,Ve){for(var ct,ht=[],pt=0,at=ye.length,Nt=null!=Ae;pt<at;pt++)(ct=ye[pt])&&(He&&!He(ct,ze,Ve)||(ht.push(ct),Nt&&Ae.push(pt)));return ht}function Li(ye,Ae,He,ze,Ve,ct){return ze&&!ze[Ge]&&(ze=Li(ze)),Ve&&!Ve[Ge]&&(Ve=Li(Ve,ct)),rn(function(ht,pt,at,Nt){var Ct,Dt,Ht,Tt,un=[],yn=[],cn=pt.length,kn=ht||function(Pn,Xt,ei){for(var jn=0,Ci=Xt.length;jn<Ci;jn++)_t(Pn,Xt[jn],ei);return ei}(Ae||"*",at.nodeType?[at]:at,[]),Sn=!ye||!ht&&Ae?kn:Ti(kn,un,ye,at,Nt);if(He?He(Sn,Tt=Ve||(ht?ye:cn||ze)?[]:pt,at,Nt):Tt=Sn,ze)for(Ct=Ti(Tt,yn),ze(Ct,[],at,Nt),Dt=Ct.length;Dt--;)(Ht=Ct[Dt])&&(Tt[yn[Dt]]=!(Sn[yn[Dt]]=Ht));if(ht){if(Ve||ye){if(Ve){for(Ct=[],Dt=Tt.length;Dt--;)(Ht=Tt[Dt])&&Ct.push(Sn[Dt]=Ht);Ve(null,Tt=[],Ct,Nt)}for(Dt=Tt.length;Dt--;)(Ht=Tt[Dt])&&-1<(Ct=Ve?k.call(ht,Ht):un[Dt])&&(ht[Ct]=!(pt[Ct]=Ht))}}else Tt=Ti(Tt===pt?Tt.splice(cn,Tt.length):Tt),Ve?Ve(null,pt,Tt,Nt):Be.apply(pt,Tt)})}function Ii(ye){for(var Ae,He,ze,Ve=ye.length,ct=x.relative[ye[0].type],ht=ct||x.relative[" "],pt=ct?1:0,at=Qn(function(Dt){return Dt===Ae},ht,!0),Nt=Qn(function(Dt){return-1<k.call(Ae,Dt)},ht,!0),Ct=[function(Dt,Ht,Tt){var un=!ct&&(Tt||Ht!=H)||((Ae=Ht).nodeType?at(Dt,Ht,Tt):Nt(Dt,Ht,Tt));return Ae=null,un}];pt<Ve;pt++)if(He=x.relative[ye[pt].type])Ct=[Qn(qi(Ct),He)];else{if((He=x.filter[ye[pt].type].apply(null,ye[pt].matches))[Ge]){for(ze=++pt;ze<Ve&&!x.relative[ye[ze].type];ze++);return Li(1<pt&&qi(Ct),1<pt&&Si(ye.slice(0,pt-1).concat({value:" "===ye[pt-2].type?"*":""})).replace(ne,"$1"),He,pt<ze&&Ii(ye.slice(pt,ze)),ze<Ve&&Ii(ye=ye.slice(ze)),ze<Ve&&Si(ye))}Ct.push(He)}return qi(Ct)}function Ei(ye,Ae){var He,ze,Ve,ct,ht,pt,at=[],Nt=[],Ct=kt[ye+" "];if(!Ct){for(Ae||(Ae=fi(ye)),He=Ae.length;He--;)(Ct=Ii(Ae[He]))[Ge]?at.push(Ct):Nt.push(Ct);(Ct=kt(ye,(ze=Nt,ct=0<(Ve=at).length,ht=0<ze.length,pt=function(Dt,Ht,Tt,un,yn){var cn,kn,Sn,Pn=0,Xt="0",ei=Dt&&[],jn=[],Ci=H,Yi=Dt||ht&&x.find.TAG("*",yn),Gi=Le+=null==Ci?1:Math.random()||.1,nr=Yi.length;for(yn&&(H=Ht==ee||Ht||yn);Xt!==nr&&null!=(cn=Yi[Xt]);Xt++){if(ht&&cn){for(kn=0,Ht||cn.ownerDocument==ee||(Xn(cn),Tt=!ke);Sn=ze[kn++];)if(Sn(cn,Ht||ee,Tt)){Be.call(un,cn);break}yn&&(Le=Gi)}ct&&((cn=!Sn&&cn)&&Pn--,Dt&&ei.push(cn))}if(Pn+=Xt,ct&&Xt!==Pn){for(kn=0;Sn=Ve[kn++];)Sn(ei,jn,Ht,Tt);if(Dt){if(0<Pn)for(;Xt--;)ei[Xt]||jn[Xt]||(jn[Xt]=R.call(un));jn=Ti(jn)}Be.apply(un,jn),yn&&!Dt&&0<jn.length&&1<Pn+Ve.length&&o.uniqueSort(un)}return yn&&(Le=Gi,H=Ci),ei},ct?rn(pt):pt))).selector=ye}return Ct}function Ui(ye,Ae,He,ze){var Ve,ct,ht,pt,at,Nt="function"==typeof ye&&ye,Ct=!ze&&fi(ye=Nt.selector||ye);if(He=He||[],1===Ct.length){if(2<(ct=Ct[0]=Ct[0].slice(0)).length&&"ID"===(ht=ct[0]).type&&9===Ae.nodeType&&ke&&x.relative[ct[1].type]){if(!(Ae=(x.find.ID(ht.matches[0].replace(tn,pn),Ae)||[])[0]))return He;Nt&&(Ae=Ae.parentNode),ye=ye.slice(ct.shift().value.length)}for(Ve=Ln.needsContext.test(ye)?0:ct.length;Ve--&&!x.relative[pt=(ht=ct[Ve]).type];)if((at=x.find[pt])&&(ze=at(ht.matches[0].replace(tn,pn),ln.test(ct[0].type)&&hi(Ae.parentNode)||Ae))){if(ct.splice(Ve,1),!(ye=ze.length&&Si(ct)))return Be.apply(He,ze),He;break}}return(Nt||Ei(ye,Ct))(ze,Ae,!ke,He,!Ae||ln.test(ye)&&hi(Ae.parentNode)||Ae),He}zi.prototype=x.filters=x.pseudos,x.setFilters=new zi,T.sortStable=Ge.split("").sort(sn).join("")===Ge,Xn(),T.sortDetached=Vt(function(ye){return 1&ye.compareDocumentPosition(ee.createElement("fieldset"))}),o.find=_t,o.expr[":"]=o.expr.pseudos,o.unique=o.uniqueSort,_t.compile=Ei,_t.select=Ui,_t.setDocument=Xn,_t.tokenize=fi,_t.escape=o.escapeSelector,_t.getText=o.text,_t.isXML=o.isXMLDoc,_t.selectors=o.expr,_t.support=o.support,_t.uniqueSort=o.uniqueSort}();var J=function(s,x,H){for(var z=[],K=void 0!==H;(s=s[x])&&9!==s.nodeType;)if(1===s.nodeType){if(K&&o(s).is(H))break;z.push(s)}return z},U=function(s,x){for(var H=[];s;s=s.nextSibling)1===s.nodeType&&s!==x&&H.push(s);return H},se=o.expr.match.needsContext,de=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function me(s,x,H){return M(x)?o.grep(s,function(z,K){return!!x.call(z,K,z)!==H}):x.nodeType?o.grep(s,function(z){return z===x!==H}):"string"!=typeof x?o.grep(s,function(z){return-1<k.call(x,z)!==H}):o.filter(x,s,H)}o.filter=function(s,x,H){var z=x[0];return H&&(s=":not("+s+")"),1===x.length&&1===z.nodeType?o.find.matchesSelector(z,s)?[z]:[]:o.find.matches(s,o.grep(x,function(K){return 1===K.nodeType}))},o.fn.extend({find:function(s){var x,H,z=this.length,K=this;if("string"!=typeof s)return this.pushStack(o(s).filter(function(){for(x=0;x<z;x++)if(o.contains(K[x],this))return!0}));for(H=this.pushStack([]),x=0;x<z;x++)o.find(s,K[x],H);return 1<z?o.uniqueSort(H):H},filter:function(s){return this.pushStack(me(this,s||[],!1))},not:function(s){return this.pushStack(me(this,s||[],!0))},is:function(s){return!!me(this,"string"==typeof s&&se.test(s)?o(s):s||[],!1).length}});var Se,ce=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(o.fn.init=function(s,x,H){var z,K;if(!s)return this;if(H=H||Se,"string"==typeof s){if(!(z="<"===s[0]&&">"===s[s.length-1]&&3<=s.length?[null,s,null]:ce.exec(s))||!z[1]&&x)return!x||x.jquery?(x||H).find(s):this.constructor(x).find(s);if(z[1]){if(o.merge(this,o.parseHTML(z[1],(x=x instanceof o?x[0]:x)&&x.nodeType?x.ownerDocument||x:b,!0)),de.test(z[1])&&o.isPlainObject(x))for(z in x)M(this[z])?this[z](x[z]):this.attr(z,x[z]);return this}return(K=b.getElementById(z[2]))&&(this[0]=K,this.length=1),this}return s.nodeType?(this[0]=s,this.length=1,this):M(s)?void 0!==H.ready?H.ready(s):s(o):o.makeArray(s,this)}).prototype=o.fn,Se=o(b);var xe=/^(?:parents|prev(?:Until|All))/,Re={children:!0,contents:!0,next:!0,prev:!0};function Oe(s,x){for(;(s=s[x])&&1!==s.nodeType;);return s}o.fn.extend({has:function(s){var x=o(s,this),H=x.length;return this.filter(function(){for(var z=0;z<H;z++)if(o.contains(this,x[z]))return!0})},closest:function(s,x){var H,z=0,K=this.length,ee=[],ue="string"!=typeof s&&o(s);if(!se.test(s))for(;z<K;z++)for(H=this[z];H&&H!==x;H=H.parentNode)if(H.nodeType<11&&(ue?-1<ue.index(H):1===H.nodeType&&o.find.matchesSelector(H,s))){ee.push(H);break}return this.pushStack(1<ee.length?o.uniqueSort(ee):ee)},index:function(s){return s?"string"==typeof s?k.call(o(s),this[0]):k.call(this,s.jquery?s[0]:s):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(s,x){return this.pushStack(o.uniqueSort(o.merge(this.get(),o(s,x))))},addBack:function(s){return this.add(null==s?this.prevObject:this.prevObject.filter(s))}}),o.each({parent:function(s){var x=s.parentNode;return x&&11!==x.nodeType?x:null},parents:function(s){return J(s,"parentNode")},parentsUntil:function(s,x,H){return J(s,"parentNode",H)},next:function(s){return Oe(s,"nextSibling")},prev:function(s){return Oe(s,"previousSibling")},nextAll:function(s){return J(s,"nextSibling")},prevAll:function(s){return J(s,"previousSibling")},nextUntil:function(s,x,H){return J(s,"nextSibling",H)},prevUntil:function(s,x,H){return J(s,"previousSibling",H)},siblings:function(s){return U((s.parentNode||{}).firstChild,s)},children:function(s){return U(s.firstChild)},contents:function(s){return null!=s.contentDocument&&j(s.contentDocument)?s.contentDocument:(_(s,"template")&&(s=s.content||s),o.merge([],s.childNodes))}},function(s,x){o.fn[s]=function(H,z){var K=o.map(this,x,H);return"Until"!==s.slice(-5)&&(z=H),z&&"string"==typeof z&&(K=o.filter(z,K)),1<this.length&&(Re[s]||o.uniqueSort(K),xe.test(s)&&K.reverse()),this.pushStack(K)}});var we=/[^\x20\t\r\n\f]+/g;function Ue(s){return s}function tt(s){throw s}function it(s,x,H,z){var K;try{s&&M(K=s.promise)?K.call(s).done(x).fail(H):s&&M(K=s.then)?K.call(s,x,H):x.apply(void 0,[s].slice(z))}catch(ee){H.apply(void 0,[ee])}}o.Callbacks=function(s){var H;s="string"==typeof s?(H={},o.each(s.match(we)||[],function(Le,Xe){H[Xe]=!0}),H):o.extend({},s);var z,K,ee,ue,ke=[],_e=[],Pe=-1,Be=function(){for(ue=ue||s.once,ee=z=!0;_e.length;Pe=-1)for(K=_e.shift();++Pe<ke.length;)!1===ke[Pe].apply(K[0],K[1])&&s.stopOnFalse&&(Pe=ke.length,K=!1);s.memory||(K=!1),z=!1,ue&&(ke=K?[]:"")},Ge={add:function(){return ke&&(K&&!z&&(Pe=ke.length-1,_e.push(K)),function Le(Xe){o.each(Xe,function(mt,xt){M(xt)?s.unique&&Ge.has(xt)||ke.push(xt):xt&&xt.length&&"string"!==P(xt)&&Le(xt)})}(arguments),K&&!z&&Be()),this},remove:function(){return o.each(arguments,function(Le,Xe){for(var mt;-1<(mt=o.inArray(Xe,ke,mt));)ke.splice(mt,1),mt<=Pe&&Pe--}),this},has:function(Le){return Le?-1<o.inArray(Le,ke):0<ke.length},empty:function(){return ke&&(ke=[]),this},disable:function(){return ue=_e=[],ke=K="",this},disabled:function(){return!ke},lock:function(){return ue=_e=[],K||z||(ke=K=""),this},locked:function(){return!!ue},fireWith:function(Le,Xe){return ue||(Xe=[Le,(Xe=Xe||[]).slice?Xe.slice():Xe],_e.push(Xe),z||Be()),this},fire:function(){return Ge.fireWith(this,arguments),this},fired:function(){return!!ee}};return Ge},o.extend({Deferred:function(s){var x=[["notify","progress",o.Callbacks("memory"),o.Callbacks("memory"),2],["resolve","done",o.Callbacks("once memory"),o.Callbacks("once memory"),0,"resolved"],["reject","fail",o.Callbacks("once memory"),o.Callbacks("once memory"),1,"rejected"]],H="pending",z={state:function(){return H},always:function(){return K.done(arguments).fail(arguments),this},catch:function(ee){return z.then(null,ee)},pipe:function(){var ee=arguments;return o.Deferred(function(ue){o.each(x,function(ke,_e){var Pe=M(ee[_e[4]])&&ee[_e[4]];K[_e[1]](function(){var Be=Pe&&Pe.apply(this,arguments);Be&&M(Be.promise)?Be.promise().progress(ue.notify).done(ue.resolve).fail(ue.reject):ue[_e[0]+"With"](this,Pe?[Be]:arguments)})}),ee=null}).promise()},then:function(ee,ue,ke){var _e=0;function Pe(Be,Ge,Le,Xe){return function(){var mt=this,xt=arguments,kt=function(){var sn,En;if(!(Be<_e)){if((sn=Le.apply(mt,xt))===Ge.promise())throw new TypeError("Thenable self-resolution");M(En=sn&&("object"==typeof sn||"function"==typeof sn)&&sn.then)?Xe?En.call(sn,Pe(_e,Ge,Ue,Xe),Pe(_e,Ge,tt,Xe)):(_e++,En.call(sn,Pe(_e,Ge,Ue,Xe),Pe(_e,Ge,tt,Xe),Pe(_e,Ge,Ue,Ge.notifyWith))):(Le!==Ue&&(mt=void 0,xt=[sn]),(Xe||Ge.resolveWith)(mt,xt))}},Jt=Xe?kt:function(){try{kt()}catch(sn){o.Deferred.exceptionHook&&o.Deferred.exceptionHook(sn,Jt.error),_e<=Be+1&&(Le!==tt&&(mt=void 0,xt=[sn]),Ge.rejectWith(mt,xt))}};Be?Jt():(o.Deferred.getErrorHook?Jt.error=o.Deferred.getErrorHook():o.Deferred.getStackHook&&(Jt.error=o.Deferred.getStackHook()),i.setTimeout(Jt))}}return o.Deferred(function(Be){x[0][3].add(Pe(0,Be,M(ke)?ke:Ue,Be.notifyWith)),x[1][3].add(Pe(0,Be,M(ee)?ee:Ue)),x[2][3].add(Pe(0,Be,M(ue)?ue:tt))}).promise()},promise:function(ee){return null!=ee?o.extend(ee,z):z}},K={};return o.each(x,function(ee,ue){var ke=ue[2],_e=ue[5];z[ue[1]]=ke.add,_e&&ke.add(function(){H=_e},x[3-ee][2].disable,x[3-ee][3].disable,x[0][2].lock,x[0][3].lock),ke.add(ue[3].fire),K[ue[0]]=function(){return K[ue[0]+"With"](this===K?void 0:this,arguments),this},K[ue[0]+"With"]=ke.fireWith}),z.promise(K),s&&s.call(K,K),K},when:function(s){var x=arguments.length,H=x,z=Array(H),K=l.call(arguments),ee=o.Deferred(),ue=function(ke){return function(_e){z[ke]=this,K[ke]=1<arguments.length?l.call(arguments):_e,--x||ee.resolveWith(z,K)}};if(x<=1&&(it(s,ee.done(ue(H)).resolve,ee.reject,!x),"pending"===ee.state()||M(K[H]&&K[H].then)))return ee.then();for(;H--;)it(K[H],ue(H),ee.reject);return ee.promise()}});var ot=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;o.Deferred.exceptionHook=function(s,x){i.console&&i.console.warn&&s&&ot.test(s.name)&&i.console.warn("jQuery.Deferred exception: "+s.message,s.stack,x)},o.readyException=function(s){i.setTimeout(function(){throw s})};var Ot=o.Deferred();function Et(){b.removeEventListener("DOMContentLoaded",Et),i.removeEventListener("load",Et),o.ready()}o.fn.ready=function(s){return Ot.then(s).catch(function(x){o.readyException(x)}),this},o.extend({isReady:!1,readyWait:1,ready:function(s){(!0===s?--o.readyWait:o.isReady)||(o.isReady=!0)!==s&&0<--o.readyWait||Ot.resolveWith(b,[o])}}),o.ready.then=Ot.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?i.setTimeout(o.ready):(b.addEventListener("DOMContentLoaded",Et),i.addEventListener("load",Et));var ae=function(s,x,H,z,K,ee,ue){var ke=0,_e=s.length,Pe=null==H;if("object"===P(H))for(ke in K=!0,H)ae(s,x,ke,H[ke],!0,ee,ue);else if(void 0!==z&&(K=!0,M(z)||(ue=!0),Pe&&(ue?(x.call(s,z),x=null):(Pe=x,x=function(Be,Ge,Le){return Pe.call(o(Be),Le)})),x))for(;ke<_e;ke++)x(s[ke],H,ue?z:z.call(s[ke],ke,x(s[ke],H)));return K?s:Pe?x.call(s):_e?x(s[0],H):ee},oe=/^-ms-/,fe=/-([a-z])/g;function a(s,x){return x.toUpperCase()}function h(s){return s.replace(oe,"ms-").replace(fe,a)}var n=function(s){return 1===s.nodeType||9===s.nodeType||!+s.nodeType};function r(){this.expando=o.expando+r.uid++}r.uid=1,r.prototype={cache:function(s){var x=s[this.expando];return x||(x={},n(s)&&(s.nodeType?s[this.expando]=x:Object.defineProperty(s,this.expando,{value:x,configurable:!0}))),x},set:function(s,x,H){var z,K=this.cache(s);if("string"==typeof x)K[h(x)]=H;else for(z in x)K[h(z)]=x[z];return K},get:function(s,x){return void 0===x?this.cache(s):s[this.expando]&&s[this.expando][h(x)]},access:function(s,x,H){return void 0===x||x&&"string"==typeof x&&void 0===H?this.get(s,x):(this.set(s,x,H),void 0!==H?H:x)},remove:function(s,x){var H,z=s[this.expando];if(void 0!==z){if(void 0!==x)for((H=(x=Array.isArray(x)?x.map(h):(x=h(x))in z?[x]:x.match(we)||[]).length);H--;)delete z[x[H]];(void 0===x||o.isEmptyObject(z))&&(s.nodeType?s[this.expando]=void 0:delete s[this.expando])}},hasData:function(s){var x=s[this.expando];return void 0!==x&&!o.isEmptyObject(x)}};var d=new r,E=new r,F=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,I=/[A-Z]/g;function Y(s,x,H){var z,K;if(void 0===H&&1===s.nodeType)if(z="data-"+x.replace(I,"-$&").toLowerCase(),"string"==typeof(H=s.getAttribute(z))){try{H="true"===(K=H)||"false"!==K&&("null"===K?null:K===+K+""?+K:F.test(K)?JSON.parse(K):K)}catch(ee){}E.set(s,x,H)}else H=void 0;return H}o.extend({hasData:function(s){return E.hasData(s)||d.hasData(s)},data:function(s,x,H){return E.access(s,x,H)},removeData:function(s,x){E.remove(s,x)},_data:function(s,x,H){return d.access(s,x,H)},_removeData:function(s,x){d.remove(s,x)}}),o.fn.extend({data:function(s,x){var H,z,K,ee=this[0],ue=ee&&ee.attributes;if(void 0===s){if(this.length&&(K=E.get(ee),1===ee.nodeType&&!d.get(ee,"hasDataAttrs"))){for(H=ue.length;H--;)ue[H]&&0===(z=ue[H].name).indexOf("data-")&&(z=h(z.slice(5)),Y(ee,z,K[z]));d.set(ee,"hasDataAttrs",!0)}return K}return"object"==typeof s?this.each(function(){E.set(this,s)}):ae(this,function(ke){var _e;if(ee&&void 0===ke)return void 0!==(_e=E.get(ee,s))||void 0!==(_e=Y(ee,s))?_e:void 0;this.each(function(){E.set(this,s,ke)})},null,x,1<arguments.length,null,!0)},removeData:function(s){return this.each(function(){E.remove(this,s)})}}),o.extend({queue:function(s,x,H){var z;if(s)return z=d.get(s,x=(x||"fx")+"queue"),H&&(!z||Array.isArray(H)?z=d.access(s,x,o.makeArray(H)):z.push(H)),z||[]},dequeue:function(s,x){var H=o.queue(s,x=x||"fx"),z=H.length,K=H.shift(),ee=o._queueHooks(s,x);"inprogress"===K&&(K=H.shift(),z--),K&&("fx"===x&&H.unshift("inprogress"),delete ee.stop,K.call(s,function(){o.dequeue(s,x)},ee)),!z&&ee&&ee.empty.fire()},_queueHooks:function(s,x){var H=x+"queueHooks";return d.get(s,H)||d.access(s,H,{empty:o.Callbacks("once memory").add(function(){d.remove(s,[x+"queue",H])})})}}),o.fn.extend({queue:function(s,x){var H=2;return"string"!=typeof s&&(x=s,s="fx",H--),arguments.length<H?o.queue(this[0],s):void 0===x?this:this.each(function(){var z=o.queue(this,s,x);o._queueHooks(this,s),"fx"===s&&"inprogress"!==z[0]&&o.dequeue(this,s)})},dequeue:function(s){return this.each(function(){o.dequeue(this,s)})},clearQueue:function(s){return this.queue(s||"fx",[])},promise:function(s,x){var H,z=1,K=o.Deferred(),ee=this,ue=this.length,ke=function(){--z||K.resolveWith(ee,[ee])};for("string"!=typeof s&&(x=s,s=void 0),s=s||"fx";ue--;)(H=d.get(ee[ue],s+"queueHooks"))&&H.empty&&(z++,H.empty.add(ke));return ke(),K.promise(x)}});var V=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ie=new RegExp("^(?:([+-])=|)("+V+")([a-z%]*)$","i"),re=["Top","Right","Bottom","Left"],he=b.documentElement,be=function(s){return o.contains(s.ownerDocument,s)},qe={composed:!0};he.getRootNode&&(be=function(s){return o.contains(s.ownerDocument,s)||s.getRootNode(qe)===s.ownerDocument});var Ee=function(s,x){return"none"===(s=x||s).style.display||""===s.style.display&&be(s)&&"none"===o.css(s,"display")};function je(s,x,H,z){var K,ee,ue=20,ke=z?function(){return z.cur()}:function(){return o.css(s,x,"")},_e=ke(),Pe=H&&H[3]||(o.cssNumber[x]?"":"px"),Be=s.nodeType&&(o.cssNumber[x]||"px"!==Pe&&+_e)&&ie.exec(o.css(s,x));if(Be&&Be[3]!==Pe){for(Pe=Pe||Be[3],Be=+(_e/=2)||1;ue--;)o.style(s,x,Be+Pe),(1-ee)*(1-(ee=ke()/_e||.5))<=0&&(ue=0),Be/=ee;o.style(s,x,(Be*=2)+Pe),H=H||[]}return H&&(Be=+Be||+_e||0,K=H[1]?Be+(H[1]+1)*H[2]:+H[2],z&&(z.unit=Pe,z.start=Be,z.end=K)),K}var Ke={};function Ie(s,x){for(var H,z,K,ee,ue,ke,_e,Pe=[],Be=0,Ge=s.length;Be<Ge;Be++)(z=s[Be]).style&&(H=z.style.display,x?("none"===H&&(Pe[Be]=d.get(z,"display")||null,Pe[Be]||(z.style.display="")),""===z.style.display&&Ee(z)&&(Pe[Be]=(_e=ue=ee=void 0,ue=(K=z).ownerDocument,(_e=Ke[ke=K.nodeName])||(ee=ue.body.appendChild(ue.createElement(ke)),_e=o.css(ee,"display"),ee.parentNode.removeChild(ee),"none"===_e&&(_e="block"),Ke[ke]=_e)))):"none"!==H&&(Pe[Be]="none",d.set(z,"display",H)));for(Be=0;Be<Ge;Be++)null!=Pe[Be]&&(s[Be].style.display=Pe[Be]);return s}o.fn.extend({show:function(){return Ie(this,!0)},hide:function(){return Ie(this)},toggle:function(s){return"boolean"==typeof s?s?this.show():this.hide():this.each(function(){Ee(this)?o(this).show():o(this).hide()})}});var Ne,We,$e=/^(?:checkbox|radio)$/i,Qe=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,rt=/^$|^module$|\/(?:java|ecma)script/i;Ne=b.createDocumentFragment().appendChild(b.createElement("div")),(We=b.createElement("input")).setAttribute("type","radio"),We.setAttribute("checked","checked"),We.setAttribute("name","t"),Ne.appendChild(We),T.checkClone=Ne.cloneNode(!0).cloneNode(!0).lastChild.checked,Ne.innerHTML="<textarea>x</textarea>",T.noCloneChecked=!!Ne.cloneNode(!0).lastChild.defaultValue,Ne.innerHTML="<option></option>",T.option=!!Ne.lastChild;var dt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ut(s,x){var H;return H=void 0!==s.getElementsByTagName?s.getElementsByTagName(x||"*"):void 0!==s.querySelectorAll?s.querySelectorAll(x||"*"):[],void 0===x||x&&_(s,x)?o.merge([s],H):H}function ft(s,x){for(var H=0,z=s.length;H<z;H++)d.set(s[H],"globalEval",!x||d.get(x[H],"globalEval"))}dt.tbody=dt.tfoot=dt.colgroup=dt.caption=dt.thead,dt.th=dt.td,T.option||(dt.optgroup=dt.option=[1,"<select multiple='multiple'>","</select>"]);var gt=/<|&#?\w+;/;function vt(s,x,H,z,K){for(var ee,ue,ke,_e,Pe,Be,Ge=x.createDocumentFragment(),Le=[],Xe=0,mt=s.length;Xe<mt;Xe++)if((ee=s[Xe])||0===ee)if("object"===P(ee))o.merge(Le,ee.nodeType?[ee]:ee);else if(gt.test(ee)){for(ue=ue||Ge.appendChild(x.createElement("div")),ke=(Qe.exec(ee)||["",""])[1].toLowerCase(),ue.innerHTML=(_e=dt[ke]||dt._default)[1]+o.htmlPrefilter(ee)+_e[2],Be=_e[0];Be--;)ue=ue.lastChild;o.merge(Le,ue.childNodes),(ue=Ge.firstChild).textContent=""}else Le.push(x.createTextNode(ee));for(Ge.textContent="",Xe=0;ee=Le[Xe++];)if(z&&-1<o.inArray(ee,z))K&&K.push(ee);else if(Pe=be(ee),ue=ut(Ge.appendChild(ee),"script"),Pe&&ft(ue),H)for(Be=0;ee=ue[Be++];)rt.test(ee.type||"")&&H.push(ee);return Ge}var bt=/^([^.]*)(?:\.(.+)|)/;function Pt(){return!0}function Bt(){return!1}function yt(s,x,H,z,K,ee){var ue,ke;if("object"==typeof x){for(ke in"string"!=typeof H&&(z=z||H,H=void 0),x)yt(s,ke,H,z,x[ke],ee);return s}if(null==z&&null==K?(K=H,z=H=void 0):null==K&&("string"==typeof H?(K=z,z=void 0):(K=z,z=H,H=void 0)),!1===K)K=Bt;else if(!K)return s;return 1===ee&&(ue=K,(K=function(_e){return o().off(_e),ue.apply(this,arguments)}).guid=ue.guid||(ue.guid=o.guid++)),s.each(function(){o.event.add(this,x,K,z,H)})}function At(s,x,H){H?(d.set(s,x,!1),o.event.add(s,x,{namespace:!1,handler:function(z){var K,ee=d.get(this,x);if(1&z.isTrigger&&this[x]){if(ee)(o.event.special[x]||{}).delegateType&&z.stopPropagation();else if(ee=l.call(arguments),d.set(this,x,ee),this[x](),K=d.get(this,x),d.set(this,x,!1),ee!==K)return z.stopImmediatePropagation(),z.preventDefault(),K}else ee&&(d.set(this,x,o.event.trigger(ee[0],ee.slice(1),this)),z.stopPropagation(),z.isImmediatePropagationStopped=Pt)}})):void 0===d.get(s,x)&&o.event.add(s,x,Pt)}o.event={global:{},add:function(s,x,H,z,K){var ee,ue,ke,_e,Pe,Be,Ge,Le,Xe,mt,xt,kt=d.get(s);if(n(s))for(H.handler&&(H=(ee=H).handler,K=ee.selector),K&&o.find.matchesSelector(he,K),H.guid||(H.guid=o.guid++),(_e=kt.events)||(_e=kt.events=Object.create(null)),(ue=kt.handle)||(ue=kt.handle=function(Jt){return void 0!==o&&o.event.triggered!==Jt.type?o.event.dispatch.apply(s,arguments):void 0}),Pe=(x=(x||"").match(we)||[""]).length;Pe--;)Xe=xt=(ke=bt.exec(x[Pe])||[])[1],mt=(ke[2]||"").split(".").sort(),Xe&&(Ge=o.event.special[Xe]||{},Ge=o.event.special[Xe=(K?Ge.delegateType:Ge.bindType)||Xe]||{},Be=o.extend({type:Xe,origType:xt,data:z,handler:H,guid:H.guid,selector:K,needsContext:K&&o.expr.match.needsContext.test(K),namespace:mt.join(".")},ee),(Le=_e[Xe])||((Le=_e[Xe]=[]).delegateCount=0,Ge.setup&&!1!==Ge.setup.call(s,z,mt,ue)||s.addEventListener&&s.addEventListener(Xe,ue)),Ge.add&&(Ge.add.call(s,Be),Be.handler.guid||(Be.handler.guid=H.guid)),K?Le.splice(Le.delegateCount++,0,Be):Le.push(Be),o.event.global[Xe]=!0)},remove:function(s,x,H,z,K){var ee,ue,ke,_e,Pe,Be,Ge,Le,Xe,mt,xt,kt=d.hasData(s)&&d.get(s);if(kt&&(_e=kt.events)){for(Pe=(x=(x||"").match(we)||[""]).length;Pe--;)if(Xe=xt=(ke=bt.exec(x[Pe])||[])[1],mt=(ke[2]||"").split(".").sort(),Xe){for(Ge=o.event.special[Xe]||{},Le=_e[Xe=(z?Ge.delegateType:Ge.bindType)||Xe]||[],ke=ke[2]&&new RegExp("(^|\\.)"+mt.join("\\.(?:.*\\.|)")+"(\\.|$)"),ue=ee=Le.length;ee--;)Be=Le[ee],!K&&xt!==Be.origType||H&&H.guid!==Be.guid||ke&&!ke.test(Be.namespace)||z&&z!==Be.selector&&("**"!==z||!Be.selector)||(Le.splice(ee,1),Be.selector&&Le.delegateCount--,Ge.remove&&Ge.remove.call(s,Be));ue&&!Le.length&&(Ge.teardown&&!1!==Ge.teardown.call(s,mt,kt.handle)||o.removeEvent(s,Xe,kt.handle),delete _e[Xe])}else for(Xe in _e)o.event.remove(s,Xe+x[Pe],H,z,!0);o.isEmptyObject(_e)&&d.remove(s,"handle events")}},dispatch:function(s){var x,H,z,K,ee,ue,ke=new Array(arguments.length),_e=o.event.fix(s),Pe=(d.get(this,"events")||Object.create(null))[_e.type]||[],Be=o.event.special[_e.type]||{};for(ke[0]=_e,x=1;x<arguments.length;x++)ke[x]=arguments[x];if(_e.delegateTarget=this,!Be.preDispatch||!1!==Be.preDispatch.call(this,_e)){for(ue=o.event.handlers.call(this,_e,Pe),x=0;(K=ue[x++])&&!_e.isPropagationStopped();)for(_e.currentTarget=K.elem,H=0;(ee=K.handlers[H++])&&!_e.isImmediatePropagationStopped();)_e.rnamespace&&!1!==ee.namespace&&!_e.rnamespace.test(ee.namespace)||(_e.handleObj=ee,_e.data=ee.data,void 0!==(z=((o.event.special[ee.origType]||{}).handle||ee.handler).apply(K.elem,ke))&&!1===(_e.result=z)&&(_e.preventDefault(),_e.stopPropagation()));return Be.postDispatch&&Be.postDispatch.call(this,_e),_e.result}},handlers:function(s,x){var H,z,K,ee,ue,ke=[],_e=x.delegateCount,Pe=s.target;if(_e&&Pe.nodeType&&!("click"===s.type&&1<=s.button))for(;Pe!==this;Pe=Pe.parentNode||this)if(1===Pe.nodeType&&("click"!==s.type||!0!==Pe.disabled)){for(ee=[],ue={},H=0;H<_e;H++)void 0===ue[K=(z=x[H]).selector+" "]&&(ue[K]=z.needsContext?-1<o(K,this).index(Pe):o.find(K,this,null,[Pe]).length),ue[K]&&ee.push(z);ee.length&&ke.push({elem:Pe,handlers:ee})}return Pe=this,_e<x.length&&ke.push({elem:Pe,handlers:x.slice(_e)}),ke},addProp:function(s,x){Object.defineProperty(o.Event.prototype,s,{enumerable:!0,configurable:!0,get:M(x)?function(){if(this.originalEvent)return x(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[s]},set:function(H){Object.defineProperty(this,s,{enumerable:!0,configurable:!0,writable:!0,value:H})}})},fix:function(s){return s[o.expando]?s:new o.Event(s)},special:{load:{noBubble:!0},click:{setup:function(s){var x=this||s;return $e.test(x.type)&&x.click&&_(x,"input")&&At(x,"click",!0),!1},trigger:function(s){var x=this||s;return $e.test(x.type)&&x.click&&_(x,"input")&&At(x,"click"),!0},_default:function(s){var x=s.target;return $e.test(x.type)&&x.click&&_(x,"input")&&d.get(x,"click")||_(x,"a")}},beforeunload:{postDispatch:function(s){void 0!==s.result&&s.originalEvent&&(s.originalEvent.returnValue=s.result)}}}},o.removeEvent=function(s,x,H){s.removeEventListener&&s.removeEventListener(x,H)},o.Event=function(s,x){if(!(this instanceof o.Event))return new o.Event(s,x);s&&s.type?(this.originalEvent=s,this.type=s.type,this.isDefaultPrevented=s.defaultPrevented||void 0===s.defaultPrevented&&!1===s.returnValue?Pt:Bt,this.target=s.target&&3===s.target.nodeType?s.target.parentNode:s.target,this.currentTarget=s.currentTarget,this.relatedTarget=s.relatedTarget):this.type=s,x&&o.extend(this,x),this.timeStamp=s&&s.timeStamp||Date.now(),this[o.expando]=!0},o.Event.prototype={constructor:o.Event,isDefaultPrevented:Bt,isPropagationStopped:Bt,isImmediatePropagationStopped:Bt,isSimulated:!1,preventDefault:function(){var s=this.originalEvent;this.isDefaultPrevented=Pt,s&&!this.isSimulated&&s.preventDefault()},stopPropagation:function(){var s=this.originalEvent;this.isPropagationStopped=Pt,s&&!this.isSimulated&&s.stopPropagation()},stopImmediatePropagation:function(){var s=this.originalEvent;this.isImmediatePropagationStopped=Pt,s&&!this.isSimulated&&s.stopImmediatePropagation(),this.stopPropagation()}},o.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},o.event.addProp),o.each({focus:"focusin",blur:"focusout"},function(s,x){function H(z){if(b.documentMode){var K=d.get(this,"handle"),ee=o.event.fix(z);ee.type="focusin"===z.type?"focus":"blur",ee.isSimulated=!0,K(z),ee.target===ee.currentTarget&&K(ee)}else o.event.simulate(x,z.target,o.event.fix(z))}o.event.special[s]={setup:function(){var z;if(At(this,s,!0),!b.documentMode)return!1;(z=d.get(this,x))||this.addEventListener(x,H),d.set(this,x,(z||0)+1)},trigger:function(){return At(this,s),!0},teardown:function(){var z;if(!b.documentMode)return!1;(z=d.get(this,x)-1)?d.set(this,x,z):(this.removeEventListener(x,H),d.remove(this,x))},_default:function(z){return d.get(z.target,s)},delegateType:x},o.event.special[x]={setup:function(){var z=this.ownerDocument||this.document||this,K=b.documentMode?this:z,ee=d.get(K,x);ee||(b.documentMode?this.addEventListener(x,H):z.addEventListener(s,H,!0)),d.set(K,x,(ee||0)+1)},teardown:function(){var z=this.ownerDocument||this.document||this,K=b.documentMode?this:z,ee=d.get(K,x)-1;ee?d.set(K,x,ee):(b.documentMode?this.removeEventListener(x,H):z.removeEventListener(s,H,!0),d.remove(K,x))}}}),o.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(s,x){o.event.special[s]={delegateType:x,bindType:x,handle:function(H){var z,K=H.relatedTarget,ee=H.handleObj;return K&&(K===this||o.contains(this,K))||(H.type=ee.origType,z=ee.handler.apply(this,arguments),H.type=x),z}}}),o.fn.extend({on:function(s,x,H,z){return yt(this,s,x,H,z)},one:function(s,x,H,z){return yt(this,s,x,H,z,1)},off:function(s,x,H){var z,K;if(s&&s.preventDefault&&s.handleObj)return z=s.handleObj,o(s.delegateTarget).off(z.namespace?z.origType+"."+z.namespace:z.origType,z.selector,z.handler),this;if("object"==typeof s){for(K in s)this.off(K,x,s[K]);return this}return!1!==x&&"function"!=typeof x||(H=x,x=void 0),!1===H&&(H=Bt),this.each(function(){o.event.remove(this,s,H,x)})}});var wt=/<script|<style|<link/i,Rt=/checked\s*(?:[^=]|=\s*.checked.)/i,qt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Qt(s,x){return _(s,"table")&&_(11!==x.nodeType?x:x.firstChild,"tr")&&o(s).children("tbody")[0]||s}function Wt(s){return s.type=(null!==s.getAttribute("type"))+"/"+s.type,s}function Ft(s){return"true/"===(s.type||"").slice(0,5)?s.type=s.type.slice(5):s.removeAttribute("type"),s}function bn(s,x){var H,z,K,ee,ue,ke;if(1===x.nodeType){if(d.hasData(s)&&(ke=d.get(s).events))for(K in d.remove(x,"handle events"),ke)for(H=0,z=ke[K].length;H<z;H++)o.event.add(x,K,ke[K][H]);E.hasData(s)&&(ee=E.access(s),ue=o.extend({},ee),E.set(x,ue))}}function wn(s,x,H,z){x=S(x);var K,ee,ue,ke,_e,Pe,Be=0,Ge=s.length,Le=Ge-1,Xe=x[0],mt=M(Xe);if(mt||1<Ge&&"string"==typeof Xe&&!T.checkClone&&Rt.test(Xe))return s.each(function(xt){var kt=s.eq(xt);mt&&(x[0]=Xe.call(this,xt,kt.html())),wn(kt,x,H,z)});if(Ge&&(ee=(K=vt(x,s[0].ownerDocument,!1,s,z)).firstChild,1===K.childNodes.length&&(K=ee),ee||z)){for(ke=(ue=o.map(ut(K,"script"),Wt)).length;Be<Ge;Be++)_e=K,Be!==Le&&(_e=o.clone(_e,!0,!0),ke&&o.merge(ue,ut(_e,"script"))),H.call(s[Be],_e,Be);if(ke)for(Pe=ue[ue.length-1].ownerDocument,o.map(ue,Ft),Be=0;Be<ke;Be++)rt.test((_e=ue[Be]).type||"")&&!d.access(_e,"globalEval")&&o.contains(Pe,_e)&&(_e.src&&"module"!==(_e.type||"").toLowerCase()?o._evalUrl&&!_e.noModule&&o._evalUrl(_e.src,{nonce:_e.nonce||_e.getAttribute("nonce")},Pe):c(_e.textContent.replace(qt,""),_e,Pe))}return s}function gn(s,x,H){for(var z,K=x?o.filter(x,s):s,ee=0;null!=(z=K[ee]);ee++)H||1!==z.nodeType||o.cleanData(ut(z)),z.parentNode&&(H&&be(z)&&ft(ut(z,"script")),z.parentNode.removeChild(z));return s}o.extend({htmlPrefilter:function(s){return s},clone:function(s,x,H){var z,K,ee,ue,ke,_e,Pe,Be=s.cloneNode(!0),Ge=be(s);if(!(T.noCloneChecked||1!==s.nodeType&&11!==s.nodeType||o.isXMLDoc(s)))for(ue=ut(Be),z=0,K=(ee=ut(s)).length;z<K;z++)ke=ee[z],"input"===(Pe=(_e=ue[z]).nodeName.toLowerCase())&&$e.test(ke.type)?_e.checked=ke.checked:"input"!==Pe&&"textarea"!==Pe||(_e.defaultValue=ke.defaultValue);if(x)if(H)for(ee=ee||ut(s),ue=ue||ut(Be),z=0,K=ee.length;z<K;z++)bn(ee[z],ue[z]);else bn(s,Be);return 0<(ue=ut(Be,"script")).length&&ft(ue,!Ge&&ut(s,"script")),Be},cleanData:function(s){for(var x,H,z,K=o.event.special,ee=0;void 0!==(H=s[ee]);ee++)if(n(H)){if(x=H[d.expando]){if(x.events)for(z in x.events)K[z]?o.event.remove(H,z):o.removeEvent(H,z,x.handle);H[d.expando]=void 0}H[E.expando]&&(H[E.expando]=void 0)}}}),o.fn.extend({detach:function(s){return gn(this,s,!0)},remove:function(s){return gn(this,s)},text:function(s){return ae(this,function(x){return void 0===x?o.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=x)})},null,s,arguments.length)},append:function(){return wn(this,arguments,function(s){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Qt(this,s).appendChild(s)})},prepend:function(){return wn(this,arguments,function(s){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var x=Qt(this,s);x.insertBefore(s,x.firstChild)}})},before:function(){return wn(this,arguments,function(s){this.parentNode&&this.parentNode.insertBefore(s,this)})},after:function(){return wn(this,arguments,function(s){this.parentNode&&this.parentNode.insertBefore(s,this.nextSibling)})},empty:function(){for(var s,x=0;null!=(s=this[x]);x++)1===s.nodeType&&(o.cleanData(ut(s,!1)),s.textContent="");return this},clone:function(s,x){return s=null!=s&&s,x=null==x?s:x,this.map(function(){return o.clone(this,s,x)})},html:function(s){return ae(this,function(x){var H=this[0]||{},z=0,K=this.length;if(void 0===x&&1===H.nodeType)return H.innerHTML;if("string"==typeof x&&!wt.test(x)&&!dt[(Qe.exec(x)||["",""])[1].toLowerCase()]){x=o.htmlPrefilter(x);try{for(;z<K;z++)1===(H=this[z]||{}).nodeType&&(o.cleanData(ut(H,!1)),H.innerHTML=x);H=0}catch(ee){}}H&&this.empty().append(x)},null,s,arguments.length)},replaceWith:function(){var s=[];return wn(this,arguments,function(x){var H=this.parentNode;o.inArray(this,s)<0&&(o.cleanData(ut(this)),H&&H.replaceChild(x,this))},s)}}),o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(s,x){o.fn[s]=function(H){for(var z,K=[],ee=o(H),ue=ee.length-1,ke=0;ke<=ue;ke++)z=ke===ue?this:this.clone(!0),o(ee[ke])[x](z),w.apply(K,z.get());return this.pushStack(K)}});var hn=new RegExp("^("+V+")(?!px)[a-z%]+$","i"),Mn=/^--/,Tn=function(s){var x=s.ownerDocument.defaultView;return x&&x.opener||(x=i),x.getComputedStyle(s)},_n=function(s,x,H){var z,K,ee={};for(K in x)ee[K]=s.style[K],s.style[K]=x[K];for(K in z=H.call(s),x)s.style[K]=ee[K];return z},Rn=new RegExp(re.join("|"),"i");function mn(s,x,H){var z,K,ee,ue,ke=Mn.test(x),_e=s.style;return(H=H||Tn(s))&&(ue=H.getPropertyValue(x)||H[x],ke&&ue&&(ue=ue.replace(ne,"$1")||void 0),""!==ue||be(s)||(ue=o.style(s,x)),!T.pixelBoxStyles()&&hn.test(ue)&&Rn.test(x)&&(z=_e.width,K=_e.minWidth,ee=_e.maxWidth,_e.minWidth=_e.maxWidth=_e.width=ue,ue=H.width,_e.width=z,_e.minWidth=K,_e.maxWidth=ee)),void 0!==ue?ue+"":ue}function en(s,x){return{get:function(){if(!s())return(this.get=x).apply(this,arguments);delete this.get}}}!function(){function s(){if(Pe){_e.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Pe.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",he.appendChild(_e).appendChild(Pe);var Be=i.getComputedStyle(Pe);H="1%"!==Be.top,ke=12===x(Be.marginLeft),Pe.style.right="60%",ee=36===x(Be.right),z=36===x(Be.width),Pe.style.position="absolute",K=12===x(Pe.offsetWidth/3),he.removeChild(_e),Pe=null}}function x(Be){return Math.round(parseFloat(Be))}var H,z,K,ee,ue,ke,_e=b.createElement("div"),Pe=b.createElement("div");Pe.style&&(Pe.style.backgroundClip="content-box",Pe.cloneNode(!0).style.backgroundClip="",T.clearCloneStyle="content-box"===Pe.style.backgroundClip,o.extend(T,{boxSizingReliable:function(){return s(),z},pixelBoxStyles:function(){return s(),ee},pixelPosition:function(){return s(),H},reliableMarginLeft:function(){return s(),ke},scrollboxSize:function(){return s(),K},reliableTrDimensions:function(){var Be,Ge,Le,Xe;return null==ue&&(Be=b.createElement("table"),Ge=b.createElement("tr"),Le=b.createElement("div"),Be.style.cssText="position:absolute;left:-11111px;border-collapse:separate",Ge.style.cssText="box-sizing:content-box;border:1px solid",Ge.style.height="1px",Le.style.height="9px",Le.style.display="block",he.appendChild(Be).appendChild(Ge).appendChild(Le),Xe=i.getComputedStyle(Ge),ue=parseInt(Xe.height,10)+parseInt(Xe.borderTopWidth,10)+parseInt(Xe.borderBottomWidth,10)===Ge.offsetHeight,he.removeChild(Be)),ue}}))}();var Yt=["Webkit","Moz","ms"],pi=b.createElement("div").style,gi={};function ti(s){return o.cssProps[s]||gi[s]||(s in pi?s:gi[s]=function(H){for(var z=H[0].toUpperCase()+H.slice(1),K=Yt.length;K--;)if((H=Yt[K]+z)in pi)return H}(s)||s)}var Wn=/^(none|table(?!-c[ea]).+)/,mi={position:"absolute",visibility:"hidden",display:"block"},Nn={letterSpacing:"0",fontWeight:"400"};function vi(s,x,H){var z=ie.exec(x);return z?Math.max(0,z[2]-(H||0))+(z[3]||"px"):x}function Hn(s,x,H,z,K,ee){var ue="width"===x?1:0,ke=0,_e=0,Pe=0;if(H===(z?"border":"content"))return 0;for(;ue<4;ue+=2)"margin"===H&&(Pe+=o.css(s,H+re[ue],!0,K)),z?("content"===H&&(_e-=o.css(s,"padding"+re[ue],!0,K)),"margin"!==H&&(_e-=o.css(s,"border"+re[ue]+"Width",!0,K))):(_e+=o.css(s,"padding"+re[ue],!0,K),"padding"!==H?_e+=o.css(s,"border"+re[ue]+"Width",!0,K):ke+=o.css(s,"border"+re[ue]+"Width",!0,K));return!z&&0<=ee&&(_e+=Math.max(0,Math.ceil(s["offset"+x[0].toUpperCase()+x.slice(1)]-ee-_e-ke-.5))||0),_e+Pe}function ni(s,x,H){var z=Tn(s),K=(!T.boxSizingReliable()||H)&&"border-box"===o.css(s,"boxSizing",!1,z),ee=K,ue=mn(s,x,z),ke="offset"+x[0].toUpperCase()+x.slice(1);if(hn.test(ue)){if(!H)return ue;ue="auto"}return(!T.boxSizingReliable()&&K||!T.reliableTrDimensions()&&_(s,"tr")||"auto"===ue||!parseFloat(ue)&&"inline"===o.css(s,"display",!1,z))&&s.getClientRects().length&&(K="border-box"===o.css(s,"boxSizing",!1,z),(ee=ke in s)&&(ue=s[ke])),(ue=parseFloat(ue)||0)+Hn(s,x,H||(K?"border":"content"),ee,z,ue)+"px"}function xn(s,x,H,z,K){return new xn.prototype.init(s,x,H,z,K)}o.extend({cssHooks:{opacity:{get:function(s,x){if(x){var H=mn(s,"opacity");return""===H?"1":H}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(s,x,H,z){if(s&&3!==s.nodeType&&8!==s.nodeType&&s.style){var K,ee,ue,ke=h(x),_e=Mn.test(x),Pe=s.style;if(_e||(x=ti(ke)),ue=o.cssHooks[x]||o.cssHooks[ke],void 0===H)return ue&&"get"in ue&&void 0!==(K=ue.get(s,!1,z))?K:Pe[x];"string"==(ee=typeof H)&&(K=ie.exec(H))&&K[1]&&(H=je(s,x,K),ee="number"),null!=H&&H==H&&("number"!==ee||_e||(H+=K&&K[3]||(o.cssNumber[ke]?"":"px")),T.clearCloneStyle||""!==H||0!==x.indexOf("background")||(Pe[x]="inherit"),ue&&"set"in ue&&void 0===(H=ue.set(s,H,z))||(_e?Pe.setProperty(x,H):Pe[x]=H))}},css:function(s,x,H,z){var K,ee,ue,ke=h(x);return Mn.test(x)||(x=ti(ke)),(ue=o.cssHooks[x]||o.cssHooks[ke])&&"get"in ue&&(K=ue.get(s,!0,H)),void 0===K&&(K=mn(s,x,z)),"normal"===K&&x in Nn&&(K=Nn[x]),""===H||H?(ee=parseFloat(K),!0===H||isFinite(ee)?ee||0:K):K}}),o.each(["height","width"],function(s,x){o.cssHooks[x]={get:function(H,z,K){if(z)return!Wn.test(o.css(H,"display"))||H.getClientRects().length&&H.getBoundingClientRect().width?ni(H,x,K):_n(H,mi,function(){return ni(H,x,K)})},set:function(H,z,K){var ee,ue=Tn(H),ke=!T.scrollboxSize()&&"absolute"===ue.position,_e=(ke||K)&&"border-box"===o.css(H,"boxSizing",!1,ue),Pe=K?Hn(H,x,K,_e,ue):0;return _e&&ke&&(Pe-=Math.ceil(H["offset"+x[0].toUpperCase()+x.slice(1)]-parseFloat(ue[x])-Hn(H,x,"border",!1,ue)-.5)),Pe&&(ee=ie.exec(z))&&"px"!==(ee[3]||"px")&&(H.style[x]=z,z=o.css(H,x)),vi(0,z,Pe)}}}),o.cssHooks.marginLeft=en(T.reliableMarginLeft,function(s,x){if(x)return(parseFloat(mn(s,"marginLeft"))||s.getBoundingClientRect().left-_n(s,{marginLeft:0},function(){return s.getBoundingClientRect().left}))+"px"}),o.each({margin:"",padding:"",border:"Width"},function(s,x){o.cssHooks[s+x]={expand:function(H){for(var z=0,K={},ee="string"==typeof H?H.split(" "):[H];z<4;z++)K[s+re[z]+x]=ee[z]||ee[z-2]||ee[0];return K}},"margin"!==s&&(o.cssHooks[s+x].set=vi)}),o.fn.extend({css:function(s,x){return ae(this,function(H,z,K){var ee,ue,ke={},_e=0;if(Array.isArray(z)){for(ee=Tn(H),ue=z.length;_e<ue;_e++)ke[z[_e]]=o.css(H,z[_e],!1,ee);return ke}return void 0!==K?o.style(H,z,K):o.css(H,z)},s,x,1<arguments.length)}}),((o.Tween=xn).prototype={constructor:xn,init:function(s,x,H,z,K,ee){this.elem=s,this.prop=H,this.easing=K||o.easing._default,this.options=x,this.start=this.now=this.cur(),this.end=z,this.unit=ee||(o.cssNumber[H]?"":"px")},cur:function(){var s=xn.propHooks[this.prop];return s&&s.get?s.get(this):xn.propHooks._default.get(this)},run:function(s){var x,H=xn.propHooks[this.prop];return this.pos=x=this.options.duration?o.easing[this.easing](s,this.options.duration*s,0,1,this.options.duration):s,this.now=(this.end-this.start)*x+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),H&&H.set?H.set(this):xn.propHooks._default.set(this),this}}).init.prototype=xn.prototype,(xn.propHooks={_default:{get:function(s){var x;return 1!==s.elem.nodeType||null!=s.elem[s.prop]&&null==s.elem.style[s.prop]?s.elem[s.prop]:(x=o.css(s.elem,s.prop,""))&&"auto"!==x?x:0},set:function(s){o.fx.step[s.prop]?o.fx.step[s.prop](s):1!==s.elem.nodeType||!o.cssHooks[s.prop]&&null==s.elem.style[ti(s.prop)]?s.elem[s.prop]=s.now:o.style(s.elem,s.prop,s.now+s.unit)}}}).scrollTop=xn.propHooks.scrollLeft={set:function(s){s.elem.nodeType&&s.elem.parentNode&&(s.elem[s.prop]=s.now)}},o.easing={linear:function(s){return s},swing:function(s){return.5-Math.cos(s*Math.PI)/2},_default:"swing"},o.fx=xn.prototype.init,o.fx.step={};var zn,Un,Yn,yi,le=/^(?:toggle|show|hide)$/,Te=/queueHooks$/;function pe(){Un&&(!1===b.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(pe):i.setTimeout(pe,o.fx.interval),o.fx.tick())}function De(){return i.setTimeout(function(){zn=void 0}),zn=Date.now()}function Me(s,x){var H,z=0,K={height:s};for(x=x?1:0;z<4;z+=2-x)K["margin"+(H=re[z])]=K["padding"+H]=s;return x&&(K.opacity=K.width=s),K}function Ce(s,x,H){for(var z,K=(Ye.tweeners[x]||[]).concat(Ye.tweeners["*"]),ee=0,ue=K.length;ee<ue;ee++)if(z=K[ee].call(H,x,s))return z}function Ye(s,x,H){var z,K,ee=0,ue=Ye.prefilters.length,ke=o.Deferred().always(function(){delete _e.elem}),_e=function(){if(K)return!1;for(var Ge=zn||De(),Le=Math.max(0,Pe.startTime+Pe.duration-Ge),Xe=1-(Le/Pe.duration||0),mt=0,xt=Pe.tweens.length;mt<xt;mt++)Pe.tweens[mt].run(Xe);return ke.notifyWith(s,[Pe,Xe,Le]),Xe<1&&xt?Le:(xt||ke.notifyWith(s,[Pe,1,0]),ke.resolveWith(s,[Pe]),!1)},Pe=ke.promise({elem:s,props:o.extend({},x),opts:o.extend(!0,{specialEasing:{},easing:o.easing._default},H),originalProperties:x,originalOptions:H,startTime:zn||De(),duration:H.duration,tweens:[],createTween:function(Ge,Le){var Xe=o.Tween(s,Pe.opts,Ge,Le,Pe.opts.specialEasing[Ge]||Pe.opts.easing);return Pe.tweens.push(Xe),Xe},stop:function(Ge){var Le=0,Xe=Ge?Pe.tweens.length:0;if(K)return this;for(K=!0;Le<Xe;Le++)Pe.tweens[Le].run(1);return Ge?(ke.notifyWith(s,[Pe,1,0]),ke.resolveWith(s,[Pe,Ge])):ke.rejectWith(s,[Pe,Ge]),this}}),Be=Pe.props;for(function(Ge,Le){var Xe,mt,xt,kt,Jt;for(Xe in Ge)if(xt=Le[mt=h(Xe)],kt=Ge[Xe],Array.isArray(kt)&&(xt=kt[1],kt=Ge[Xe]=kt[0]),Xe!==mt&&(Ge[mt]=kt,delete Ge[Xe]),(Jt=o.cssHooks[mt])&&"expand"in Jt)for(Xe in kt=Jt.expand(kt),delete Ge[mt],kt)Xe in Ge||(Ge[Xe]=kt[Xe],Le[Xe]=xt);else Le[mt]=xt}(Be,Pe.opts.specialEasing);ee<ue;ee++)if(z=Ye.prefilters[ee].call(Pe,s,Be,Pe.opts))return M(z.stop)&&(o._queueHooks(Pe.elem,Pe.opts.queue).stop=z.stop.bind(z)),z;return o.map(Be,Ce,Pe),M(Pe.opts.start)&&Pe.opts.start.call(s,Pe),Pe.progress(Pe.opts.progress).done(Pe.opts.done,Pe.opts.complete).fail(Pe.opts.fail).always(Pe.opts.always),o.fx.timer(o.extend(_e,{elem:s,anim:Pe,queue:Pe.opts.queue})),Pe}o.Animation=o.extend(Ye,{tweeners:{"*":[function(s,x){var H=this.createTween(s,x);return je(H.elem,s,ie.exec(x),H),H}]},tweener:function(s,x){M(s)?(x=s,s=["*"]):s=s.match(we);for(var H,z=0,K=s.length;z<K;z++)(Ye.tweeners[H=s[z]]=Ye.tweeners[H]||[]).unshift(x)},prefilters:[function(s,x,H){var z,K,ee,ue,ke,_e,Pe,Be,Ge="width"in x||"height"in x,Le=this,Xe={},mt=s.style,xt=s.nodeType&&Ee(s),kt=d.get(s,"fxshow");for(z in H.queue||(null==(ue=o._queueHooks(s,"fx")).unqueued&&(ue.unqueued=0,ke=ue.empty.fire,ue.empty.fire=function(){ue.unqueued||ke()}),ue.unqueued++,Le.always(function(){Le.always(function(){ue.unqueued--,o.queue(s,"fx").length||ue.empty.fire()})})),x)if(le.test(K=x[z])){if(delete x[z],ee=ee||"toggle"===K,K===(xt?"hide":"show")){if("show"!==K||!kt||void 0===kt[z])continue;xt=!0}Xe[z]=kt&&kt[z]||o.style(s,z)}if((_e=!o.isEmptyObject(x))||!o.isEmptyObject(Xe))for(z in Ge&&1===s.nodeType&&(H.overflow=[mt.overflow,mt.overflowX,mt.overflowY],null==(Pe=kt&&kt.display)&&(Pe=d.get(s,"display")),"none"===(Be=o.css(s,"display"))&&(Pe?Be=Pe:(Ie([s],!0),Pe=s.style.display||Pe,Be=o.css(s,"display"),Ie([s]))),("inline"===Be||"inline-block"===Be&&null!=Pe)&&"none"===o.css(s,"float")&&(_e||(Le.done(function(){mt.display=Pe}),null==Pe&&(Pe="none"===(Be=mt.display)?"":Be)),mt.display="inline-block")),H.overflow&&(mt.overflow="hidden",Le.always(function(){mt.overflow=H.overflow[0],mt.overflowX=H.overflow[1],mt.overflowY=H.overflow[2]})),_e=!1,Xe)_e||(kt?"hidden"in kt&&(xt=kt.hidden):kt=d.access(s,"fxshow",{display:Pe}),ee&&(kt.hidden=!xt),xt&&Ie([s],!0),Le.done(function(){for(z in xt||Ie([s]),d.remove(s,"fxshow"),Xe)o.style(s,z,Xe[z])})),_e=Ce(xt?kt[z]:0,z,Le),z in kt||(kt[z]=_e.start,xt&&(_e.end=_e.start,_e.start=0))}],prefilter:function(s,x){x?Ye.prefilters.unshift(s):Ye.prefilters.push(s)}}),o.speed=function(s,x,H){var z=s&&"object"==typeof s?o.extend({},s):{complete:H||!H&&x||M(s)&&s,duration:s,easing:H&&x||x&&!M(x)&&x};return o.fx.off?z.duration=0:"number"!=typeof z.duration&&(z.duration=z.duration in o.fx.speeds?o.fx.speeds[z.duration]:o.fx.speeds._default),null!=z.queue&&!0!==z.queue||(z.queue="fx"),z.old=z.complete,z.complete=function(){M(z.old)&&z.old.call(this),z.queue&&o.dequeue(this,z.queue)},z},o.fn.extend({fadeTo:function(s,x,H,z){return this.filter(Ee).css("opacity",0).show().end().animate({opacity:x},s,H,z)},animate:function(s,x,H,z){var K=o.isEmptyObject(s),ee=o.speed(x,H,z),ue=function(){var ke=Ye(this,o.extend({},s),ee);(K||d.get(this,"finish"))&&ke.stop(!0)};return ue.finish=ue,K||!1===ee.queue?this.each(ue):this.queue(ee.queue,ue)},stop:function(s,x,H){var z=function(K){var ee=K.stop;delete K.stop,ee(H)};return"string"!=typeof s&&(H=x,x=s,s=void 0),x&&this.queue(s||"fx",[]),this.each(function(){var K=!0,ee=null!=s&&s+"queueHooks",ue=o.timers,ke=d.get(this);if(ee)ke[ee]&&ke[ee].stop&&z(ke[ee]);else for(ee in ke)ke[ee]&&ke[ee].stop&&Te.test(ee)&&z(ke[ee]);for(ee=ue.length;ee--;)ue[ee].elem!==this||null!=s&&ue[ee].queue!==s||(ue[ee].anim.stop(H),K=!1,ue.splice(ee,1));!K&&H||o.dequeue(this,s)})},finish:function(s){return!1!==s&&(s=s||"fx"),this.each(function(){var x,H=d.get(this),z=H[s+"queue"],K=H[s+"queueHooks"],ee=o.timers,ue=z?z.length:0;for(H.finish=!0,o.queue(this,s,[]),K&&K.stop&&K.stop.call(this,!0),x=ee.length;x--;)ee[x].elem===this&&ee[x].queue===s&&(ee[x].anim.stop(!0),ee.splice(x,1));for(x=0;x<ue;x++)z[x]&&z[x].finish&&z[x].finish.call(this);delete H.finish})}}),o.each(["toggle","show","hide"],function(s,x){var H=o.fn[x];o.fn[x]=function(z,K,ee){return null==z||"boolean"==typeof z?H.apply(this,arguments):this.animate(Me(x,!0),z,K,ee)}}),o.each({slideDown:Me("show"),slideUp:Me("hide"),slideToggle:Me("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(s,x){o.fn[s]=function(H,z,K){return this.animate(x,H,z,K)}}),o.timers=[],o.fx.tick=function(){var s,x=0,H=o.timers;for(zn=Date.now();x<H.length;x++)(s=H[x])()||H[x]!==s||H.splice(x--,1);H.length||o.fx.stop(),zn=void 0},o.fx.timer=function(s){o.timers.push(s),o.fx.start()},o.fx.interval=13,o.fx.start=function(){Un||(Un=!0,pe())},o.fx.stop=function(){Un=null},o.fx.speeds={slow:600,fast:200,_default:400},o.fn.delay=function(s,x){return s=o.fx&&o.fx.speeds[s]||s,this.queue(x=x||"fx",function(H,z){var K=i.setTimeout(H,s);z.stop=function(){i.clearTimeout(K)}})},Yn=b.createElement("input"),yi=b.createElement("select").appendChild(b.createElement("option")),Yn.type="checkbox",T.checkOn=""!==Yn.value,T.optSelected=yi.selected,(Yn=b.createElement("input")).value="t",Yn.type="radio",T.radioValue="t"===Yn.value;var Ze,Je=o.expr.attrHandle;o.fn.extend({attr:function(s,x){return ae(this,o.attr,s,x,1<arguments.length)},removeAttr:function(s){return this.each(function(){o.removeAttr(this,s)})}}),o.extend({attr:function(s,x,H){var z,K,ee=s.nodeType;if(3!==ee&&8!==ee&&2!==ee)return void 0===s.getAttribute?o.prop(s,x,H):(1===ee&&o.isXMLDoc(s)||(K=o.attrHooks[x.toLowerCase()]||(o.expr.match.bool.test(x)?Ze:void 0)),void 0!==H?null===H?void o.removeAttr(s,x):K&&"set"in K&&void 0!==(z=K.set(s,H,x))?z:(s.setAttribute(x,H+""),H):K&&"get"in K&&null!==(z=K.get(s,x))?z:null==(z=o.find.attr(s,x))?void 0:z)},attrHooks:{type:{set:function(s,x){if(!T.radioValue&&"radio"===x&&_(s,"input")){var H=s.value;return s.setAttribute("type",x),H&&(s.value=H),x}}}},removeAttr:function(s,x){var H,z=0,K=x&&x.match(we);if(K&&1===s.nodeType)for(;H=K[z++];)s.removeAttribute(H)}}),Ze={set:function(s,x,H){return!1===x?o.removeAttr(s,H):s.setAttribute(H,H),H}},o.each(o.expr.match.bool.source.match(/\w+/g),function(s,x){var H=Je[x]||o.find.attr;Je[x]=function(z,K,ee){var ue,ke,_e=K.toLowerCase();return ee||(ke=Je[_e],Je[_e]=ue,ue=null!=H(z,K,ee)?_e:null,Je[_e]=ke),ue}});var et=/^(?:input|select|textarea|button)$/i,nt=/^(?:a|area)$/i;function st(s){return(s.match(we)||[]).join(" ")}function St(s){return s.getAttribute&&s.getAttribute("class")||""}function Lt(s){return Array.isArray(s)?s:"string"==typeof s&&s.match(we)||[]}o.fn.extend({prop:function(s,x){return ae(this,o.prop,s,x,1<arguments.length)},removeProp:function(s){return this.each(function(){delete this[o.propFix[s]||s]})}}),o.extend({prop:function(s,x,H){var z,K,ee=s.nodeType;if(3!==ee&&8!==ee&&2!==ee)return 1===ee&&o.isXMLDoc(s)||(K=o.propHooks[x=o.propFix[x]||x]),void 0!==H?K&&"set"in K&&void 0!==(z=K.set(s,H,x))?z:s[x]=H:K&&"get"in K&&null!==(z=K.get(s,x))?z:s[x]},propHooks:{tabIndex:{get:function(s){var x=o.find.attr(s,"tabindex");return x?parseInt(x,10):et.test(s.nodeName)||nt.test(s.nodeName)&&s.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),T.optSelected||(o.propHooks.selected={get:function(s){return null},set:function(s){}}),o.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){o.propFix[this.toLowerCase()]=this}),o.fn.extend({addClass:function(s){var x,H,z,K,ee,ue;return M(s)?this.each(function(ke){o(this).addClass(s.call(this,ke,St(this)))}):(x=Lt(s)).length?this.each(function(){if(z=St(this),H=1===this.nodeType&&" "+st(z)+" "){for(ee=0;ee<x.length;ee++)H.indexOf(" "+(K=x[ee])+" ")<0&&(H+=K+" ");ue=st(H),z!==ue&&this.setAttribute("class",ue)}}):this},removeClass:function(s){var x,H,z,K,ee,ue;return M(s)?this.each(function(ke){o(this).removeClass(s.call(this,ke,St(this)))}):arguments.length?(x=Lt(s)).length?this.each(function(){if(z=St(this),H=1===this.nodeType&&" "+st(z)+" "){for(ee=0;ee<x.length;ee++)for(K=x[ee];-1<H.indexOf(" "+K+" ");)H=H.replace(" "+K+" "," ");ue=st(H),z!==ue&&this.setAttribute("class",ue)}}):this:this.attr("class","")},toggleClass:function(s,x){var H,z,K,ee,ue=typeof s,ke="string"===ue||Array.isArray(s);return M(s)?this.each(function(_e){o(this).toggleClass(s.call(this,_e,St(this),x),x)}):"boolean"==typeof x&&ke?x?this.addClass(s):this.removeClass(s):(H=Lt(s),this.each(function(){if(ke)for(ee=o(this),K=0;K<H.length;K++)ee.hasClass(z=H[K])?ee.removeClass(z):ee.addClass(z);else void 0!==s&&"boolean"!==ue||((z=St(this))&&d.set(this,"__className__",z),this.setAttribute&&this.setAttribute("class",z||!1===s?"":d.get(this,"__className__")||""))}))},hasClass:function(s){var x,H,z=0;for(x=" "+s+" ";H=this[z++];)if(1===H.nodeType&&-1<(" "+st(St(H))+" ").indexOf(x))return!0;return!1}});var zt=/\r/g;o.fn.extend({val:function(s){var x,H,z,K=this[0];return arguments.length?(z=M(s),this.each(function(ee){var ue;1===this.nodeType&&(null==(ue=z?s.call(this,ee,o(this).val()):s)?ue="":"number"==typeof ue?ue+="":Array.isArray(ue)&&(ue=o.map(ue,function(ke){return null==ke?"":ke+""})),(x=o.valHooks[this.type]||o.valHooks[this.nodeName.toLowerCase()])&&"set"in x&&void 0!==x.set(this,ue,"value")||(this.value=ue))})):K?(x=o.valHooks[K.type]||o.valHooks[K.nodeName.toLowerCase()])&&"get"in x&&void 0!==(H=x.get(K,"value"))?H:"string"==typeof(H=K.value)?H.replace(zt,""):null==H?"":H:void 0}}),o.extend({valHooks:{option:{get:function(s){var x=o.find.attr(s,"value");return null!=x?x:st(o.text(s))}},select:{get:function(s){var x,H,z,K=s.options,ee=s.selectedIndex,ue="select-one"===s.type,ke=ue?null:[],_e=ue?ee+1:K.length;for(z=ee<0?_e:ue?ee:0;z<_e;z++)if(((H=K[z]).selected||z===ee)&&!H.disabled&&(!H.parentNode.disabled||!_(H.parentNode,"optgroup"))){if(x=o(H).val(),ue)return x;ke.push(x)}return ke},set:function(s,x){for(var H,z,K=s.options,ee=o.makeArray(x),ue=K.length;ue--;)((z=K[ue]).selected=-1<o.inArray(o.valHooks.option.get(z),ee))&&(H=!0);return H||(s.selectedIndex=-1),ee}}}}),o.each(["radio","checkbox"],function(){o.valHooks[this]={set:function(s,x){if(Array.isArray(x))return s.checked=-1<o.inArray(o(s).val(),x)}},T.checkOn||(o.valHooks[this].get=function(s){return null===s.getAttribute("value")?"on":s.value})});var $t=i.location,Kt={guid:Date.now()},dn=/\?/;o.parseXML=function(s){var x,H;if(!s||"string"!=typeof s)return null;try{x=(new i.DOMParser).parseFromString(s,"text/xml")}catch(z){}return H=x&&x.getElementsByTagName("parsererror")[0],x&&!H||o.error("Invalid XML: "+(H?o.map(H.childNodes,function(z){return z.textContent}).join("\n"):s)),x};var Gn=/^(?:focusinfocus|focusoutblur)$/,An=function(s){s.stopPropagation()};o.extend(o.event,{trigger:function(s,x,H,z){var K,ee,ue,ke,_e,Pe,Be,Ge,Le=[H||b],Xe=v.call(s,"type")?s.type:s,mt=v.call(s,"namespace")?s.namespace.split("."):[];if(ee=Ge=ue=H=H||b,3!==H.nodeType&&8!==H.nodeType&&!Gn.test(Xe+o.event.triggered)&&(-1<Xe.indexOf(".")&&(Xe=(mt=Xe.split(".")).shift(),mt.sort()),_e=Xe.indexOf(":")<0&&"on"+Xe,(s=s[o.expando]?s:new o.Event(Xe,"object"==typeof s&&s)).isTrigger=z?2:3,s.namespace=mt.join("."),s.rnamespace=s.namespace?new RegExp("(^|\\.)"+mt.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,s.result=void 0,s.target||(s.target=H),x=null==x?[s]:o.makeArray(x,[s]),Be=o.event.special[Xe]||{},z||!Be.trigger||!1!==Be.trigger.apply(H,x))){if(!z&&!Be.noBubble&&!O(H)){for(Gn.test((ke=Be.delegateType||Xe)+Xe)||(ee=ee.parentNode);ee;ee=ee.parentNode)Le.push(ee),ue=ee;ue===(H.ownerDocument||b)&&Le.push(ue.defaultView||ue.parentWindow||i)}for(K=0;(ee=Le[K++])&&!s.isPropagationStopped();)Ge=ee,s.type=1<K?ke:Be.bindType||Xe,(Pe=(d.get(ee,"events")||Object.create(null))[s.type]&&d.get(ee,"handle"))&&Pe.apply(ee,x),(Pe=_e&&ee[_e])&&Pe.apply&&n(ee)&&(s.result=Pe.apply(ee,x),!1===s.result&&s.preventDefault());return s.type=Xe,z||s.isDefaultPrevented()||Be._default&&!1!==Be._default.apply(Le.pop(),x)||!n(H)||_e&&M(H[Xe])&&!O(H)&&((ue=H[_e])&&(H[_e]=null),o.event.triggered=Xe,s.isPropagationStopped()&&Ge.addEventListener(Xe,An),H[Xe](),s.isPropagationStopped()&&Ge.removeEventListener(Xe,An),o.event.triggered=void 0,ue&&(H[_e]=ue)),s.result}},simulate:function(s,x,H){var z=o.extend(new o.Event,H,{type:s,isSimulated:!0});o.event.trigger(z,null,x)}}),o.fn.extend({trigger:function(s,x){return this.each(function(){o.event.trigger(s,x,this)})},triggerHandler:function(s,x){var H=this[0];if(H)return o.event.trigger(s,x,H,!0)}});var Ai=/\[\]$/,Zn=/\r?\n/g,Di=/^(?:submit|button|image|reset|file)$/i,Pi=/^(?:input|select|textarea|keygen)/i;function li(s,x,H,z){var K;if(Array.isArray(x))o.each(x,function(ee,ue){H||Ai.test(s)?z(s,ue):li(s+"["+("object"==typeof ue&&null!=ue?ee:"")+"]",ue,H,z)});else if(H||"object"!==P(x))z(s,x);else for(K in x)li(s+"["+K+"]",x[K],H,z)}o.param=function(s,x){var H,z=[],K=function(ee,ue){var ke=M(ue)?ue():ue;z[z.length]=encodeURIComponent(ee)+"="+encodeURIComponent(null==ke?"":ke)};if(null==s)return"";if(Array.isArray(s)||s.jquery&&!o.isPlainObject(s))o.each(s,function(){K(this.name,this.value)});else for(H in s)li(H,s[H],x,K);return z.join("&")},o.fn.extend({serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var s=o.prop(this,"elements");return s?o.makeArray(s):this}).filter(function(){var s=this.type;return this.name&&!o(this).is(":disabled")&&Pi.test(this.nodeName)&&!Di.test(s)&&(this.checked||!$e.test(s))}).map(function(s,x){var H=o(this).val();return null==H?null:Array.isArray(H)?o.map(H,function(z){return{name:x.name,value:z.replace(Zn,"\r\n")}}):{name:x.name,value:H.replace(Zn,"\r\n")}}).get()}});var bi=/%20/g,Ki=/#.*$/,Zi=/([?&])_=[^&]*/,Ji=/^(.*?):[ \t]*([^\r\n]*)$/gm,Qi=/^(?:GET|HEAD)$/,ii=/^\/\//,Hi={},ji={},Mi="*/".concat("*"),Ri=b.createElement("a");function Bn(s){return function(x,H){"string"!=typeof x&&(H=x,x="*");var z,K=0,ee=x.toLowerCase().match(we)||[];if(M(H))for(;z=ee[K++];)"+"===z[0]?(z=z.slice(1)||"*",(s[z]=s[z]||[]).unshift(H)):(s[z]=s[z]||[]).push(H)}}function Bi(s,x,H,z){var K={},ee=s===ji;function ue(ke){var _e;return K[ke]=!0,o.each(s[ke]||[],function(Pe,Be){var Ge=Be(x,H,z);return"string"!=typeof Ge||ee||K[Ge]?ee?!(_e=Ge):void 0:(x.dataTypes.unshift(Ge),ue(Ge),!1)}),_e}return ue(x.dataTypes[0])||!K["*"]&&ue("*")}function wi(s,x){var H,z,K=o.ajaxSettings.flatOptions||{};for(H in x)void 0!==x[H]&&((K[H]?s:z||(z={}))[H]=x[H]);return z&&o.extend(!0,s,z),s}Ri.href=$t.href,o.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:$t.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test($t.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Mi,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":o.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(s,x){return x?wi(wi(s,o.ajaxSettings),x):wi(o.ajaxSettings,s)},ajaxPrefilter:Bn(Hi),ajaxTransport:Bn(ji),ajax:function(s,x){"object"==typeof s&&(x=s,s=void 0);var H,z,K,ee,ue,ke,_e,Pe,Be,Ge,Le=o.ajaxSetup({},x=x||{}),Xe=Le.context||Le,mt=Le.context&&(Xe.nodeType||Xe.jquery)?o(Xe):o.event,xt=o.Deferred(),kt=o.Callbacks("once memory"),Jt=Le.statusCode||{},sn={},En={},qn="canceled",Mt={readyState:0,getResponseHeader:function(It){var Zt;if(_e){if(!ee)for(ee={};Zt=Ji.exec(K);)ee[Zt[1].toLowerCase()+" "]=(ee[Zt[1].toLowerCase()+" "]||[]).concat(Zt[2]);Zt=ee[It.toLowerCase()+" "]}return null==Zt?null:Zt.join(", ")},getAllResponseHeaders:function(){return _e?K:null},setRequestHeader:function(It,Zt){return null==_e&&(It=En[It.toLowerCase()]=En[It.toLowerCase()]||It,sn[It]=Zt),this},overrideMimeType:function(It){return null==_e&&(Le.mimeType=It),this},statusCode:function(It){var Zt;if(It)if(_e)Mt.always(It[Mt.status]);else for(Zt in It)Jt[Zt]=[Jt[Zt],It[Zt]];return this},abort:function(It){var Zt=It||qn;return H&&H.abort(Zt),$n(0,Zt),this}};if(xt.promise(Mt),Le.url=((s||Le.url||$t.href)+"").replace(ii,$t.protocol+"//"),Le.type=x.method||x.type||Le.method||Le.type,Le.dataTypes=(Le.dataType||"*").toLowerCase().match(we)||[""],null==Le.crossDomain){ke=b.createElement("a");try{ke.href=Le.url,ke.href=ke.href,Le.crossDomain=Ri.protocol+"//"+Ri.host!=ke.protocol+"//"+ke.host}catch(It){Le.crossDomain=!0}}if(Le.data&&Le.processData&&"string"!=typeof Le.data&&(Le.data=o.param(Le.data,Le.traditional)),Bi(Hi,Le,x,Mt),_e)return Mt;for(Be in(Pe=o.event&&Le.global)&&0==o.active++&&o.event.trigger("ajaxStart"),Le.type=Le.type.toUpperCase(),Le.hasContent=!Qi.test(Le.type),z=Le.url.replace(Ki,""),Le.hasContent?Le.data&&Le.processData&&0===(Le.contentType||"").indexOf("application/x-www-form-urlencoded")&&(Le.data=Le.data.replace(bi,"+")):(Ge=Le.url.slice(z.length),Le.data&&(Le.processData||"string"==typeof Le.data)&&(z+=(dn.test(z)?"&":"?")+Le.data,delete Le.data),!1===Le.cache&&(z=z.replace(Zi,"$1"),Ge=(dn.test(z)?"&":"?")+"_="+Kt.guid+++Ge),Le.url=z+Ge),Le.ifModified&&(o.lastModified[z]&&Mt.setRequestHeader("If-Modified-Since",o.lastModified[z]),o.etag[z]&&Mt.setRequestHeader("If-None-Match",o.etag[z])),(Le.data&&Le.hasContent&&!1!==Le.contentType||x.contentType)&&Mt.setRequestHeader("Content-Type",Le.contentType),Mt.setRequestHeader("Accept",Le.dataTypes[0]&&Le.accepts[Le.dataTypes[0]]?Le.accepts[Le.dataTypes[0]]+("*"!==Le.dataTypes[0]?", "+Mi+"; q=0.01":""):Le.accepts["*"]),Le.headers)Mt.setRequestHeader(Be,Le.headers[Be]);if(Le.beforeSend&&(!1===Le.beforeSend.call(Xe,Mt,Le)||_e))return Mt.abort();if(qn="abort",kt.add(Le.complete),Mt.done(Le.success),Mt.fail(Le.error),H=Bi(ji,Le,x,Mt)){if(Mt.readyState=1,Pe&&mt.trigger("ajaxSend",[Mt,Le]),_e)return Mt;Le.async&&0<Le.timeout&&(ue=i.setTimeout(function(){Mt.abort("timeout")},Le.timeout));try{_e=!1,H.send(sn,$n)}catch(It){if(_e)throw It;$n(-1,It)}}else $n(-1,"No Transport");function $n(It,Zt,oi,xi){var Dn,si,Ln,Cn,ai,On=Zt;_e||(_e=!0,ue&&i.clearTimeout(ue),H=void 0,K=xi||"",Mt.readyState=0<It?4:0,Dn=200<=It&&It<300||304===It,oi&&(Cn=function(ln,tn,pn){for(var Fn,vn,_t,nn,rn=ln.contents,Vt=ln.dataTypes;"*"===Vt[0];)Vt.shift(),void 0===Fn&&(Fn=ln.mimeType||tn.getResponseHeader("Content-Type"));if(Fn)for(vn in rn)if(rn[vn]&&rn[vn].test(Fn)){Vt.unshift(vn);break}if(Vt[0]in pn)_t=Vt[0];else{for(vn in pn){if(!Vt[0]||ln.converters[vn+" "+Vt[0]]){_t=vn;break}nn||(nn=vn)}_t=_t||nn}if(_t)return _t!==Vt[0]&&Vt.unshift(_t),pn[_t]}(Le,Mt,oi)),!Dn&&-1<o.inArray("script",Le.dataTypes)&&o.inArray("json",Le.dataTypes)<0&&(Le.converters["text script"]=function(){}),Cn=function(ln,tn,pn,Fn){var vn,_t,nn,rn,Vt,In={},Jn=ln.dataTypes.slice();if(Jn[1])for(nn in ln.converters)In[nn.toLowerCase()]=ln.converters[nn];for(_t=Jn.shift();_t;)if(ln.responseFields[_t]&&(pn[ln.responseFields[_t]]=tn),!Vt&&Fn&&ln.dataFilter&&(tn=ln.dataFilter(tn,ln.dataType)),Vt=_t,_t=Jn.shift())if("*"===_t)_t=Vt;else if("*"!==Vt&&Vt!==_t){if(!(nn=In[Vt+" "+_t]||In["* "+_t]))for(vn in In)if((rn=vn.split(" "))[1]===_t&&(nn=In[Vt+" "+rn[0]]||In["* "+rn[0]])){!0===nn?nn=In[vn]:!0!==In[vn]&&(_t=rn[0],Jn.unshift(rn[1]));break}if(!0!==nn)if(nn&&ln.throws)tn=nn(tn);else try{tn=nn(tn)}catch(ki){return{state:"parsererror",error:nn?ki:"No conversion from "+Vt+" to "+_t}}}return{state:"success",data:tn}}(Le,Cn,Mt,Dn),Dn?(Le.ifModified&&((ai=Mt.getResponseHeader("Last-Modified"))&&(o.lastModified[z]=ai),(ai=Mt.getResponseHeader("etag"))&&(o.etag[z]=ai)),204===It||"HEAD"===Le.type?On="nocontent":304===It?On="notmodified":(On=Cn.state,si=Cn.data,Dn=!(Ln=Cn.error))):(Ln=On,!It&&On||(On="error",It<0&&(It=0))),Mt.status=It,Mt.statusText=(Zt||On)+"",Dn?xt.resolveWith(Xe,[si,On,Mt]):xt.rejectWith(Xe,[Mt,On,Ln]),Mt.statusCode(Jt),Jt=void 0,Pe&&mt.trigger(Dn?"ajaxSuccess":"ajaxError",[Mt,Le,Dn?si:Ln]),kt.fireWith(Xe,[Mt,On]),Pe&&(mt.trigger("ajaxComplete",[Mt,Le]),--o.active||o.event.trigger("ajaxStop")))}return Mt},getJSON:function(s,x,H){return o.get(s,x,H,"json")},getScript:function(s,x){return o.get(s,void 0,x,"script")}}),o.each(["get","post"],function(s,x){o[x]=function(H,z,K,ee){return M(z)&&(ee=ee||K,K=z,z=void 0),o.ajax(o.extend({url:H,type:x,dataType:ee,data:z,success:K},o.isPlainObject(H)&&H))}}),o.ajaxPrefilter(function(s){var x;for(x in s.headers)"content-type"===x.toLowerCase()&&(s.contentType=s.headers[x]||"")}),o._evalUrl=function(s,x,H){return o.ajax({url:s,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(z){o.globalEval(z,x,H)}})},o.fn.extend({wrapAll:function(s){var x;return this[0]&&(M(s)&&(s=s.call(this[0])),x=o(s,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&x.insertBefore(this[0]),x.map(function(){for(var H=this;H.firstElementChild;)H=H.firstElementChild;return H}).append(this)),this},wrapInner:function(s){return M(s)?this.each(function(x){o(this).wrapInner(s.call(this,x))}):this.each(function(){var x=o(this),H=x.contents();H.length?H.wrapAll(s):x.append(s)})},wrap:function(s){var x=M(s);return this.each(function(H){o(this).wrapAll(x?s.call(this,H):s)})},unwrap:function(s){return this.parent(s).not("body").each(function(){o(this).replaceWith(this.childNodes)}),this}}),o.expr.pseudos.hidden=function(s){return!o.expr.pseudos.visible(s)},o.expr.pseudos.visible=function(s){return!!(s.offsetWidth||s.offsetHeight||s.getClientRects().length)},o.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(s){}};var ui={0:200,1223:204},ci=o.ajaxSettings.xhr();T.cors=!!ci&&"withCredentials"in ci,T.ajax=ci=!!ci,o.ajaxTransport(function(s){var x,H;if(T.cors||ci&&!s.crossDomain)return{send:function(z,K){var ee,ue=s.xhr();if(ue.open(s.type,s.url,s.async,s.username,s.password),s.xhrFields)for(ee in s.xhrFields)ue[ee]=s.xhrFields[ee];for(ee in s.mimeType&&ue.overrideMimeType&&ue.overrideMimeType(s.mimeType),s.crossDomain||z["X-Requested-With"]||(z["X-Requested-With"]="XMLHttpRequest"),z)ue.setRequestHeader(ee,z[ee]);x=function(ke){return function(){x&&(x=H=ue.onload=ue.onerror=ue.onabort=ue.ontimeout=ue.onreadystatechange=null,"abort"===ke?ue.abort():"error"===ke?"number"!=typeof ue.status?K(0,"error"):K(ue.status,ue.statusText):K(ui[ue.status]||ue.status,ue.statusText,"text"!==(ue.responseType||"text")||"string"!=typeof ue.responseText?{binary:ue.response}:{text:ue.responseText},ue.getAllResponseHeaders()))}},ue.onload=x(),H=ue.onerror=ue.ontimeout=x("error"),void 0!==ue.onabort?ue.onabort=H:ue.onreadystatechange=function(){4===ue.readyState&&i.setTimeout(function(){x&&H()})},x=x("abort");try{ue.send(s.hasContent&&s.data||null)}catch(ke){if(x)throw ke}},abort:function(){x&&x()}}}),o.ajaxPrefilter(function(s){s.crossDomain&&(s.contents.script=!1)}),o.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(s){return o.globalEval(s),s}}}),o.ajaxPrefilter("script",function(s){void 0===s.cache&&(s.cache=!1),s.crossDomain&&(s.type="GET")}),o.ajaxTransport("script",function(s){var x,H;if(s.crossDomain||s.scriptAttrs)return{send:function(z,K){x=o("<script>").attr(s.scriptAttrs||{}).prop({charset:s.scriptCharset,src:s.url}).on("load error",H=function(ee){x.remove(),H=null,ee&&K("error"===ee.type?404:200,ee.type)}),b.head.appendChild(x[0])},abort:function(){H&&H()}}});var Fi,Wi=[],_i=/(=)\?(?=&|$)|\?\?/;o.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var s=Wi.pop()||o.expando+"_"+Kt.guid++;return this[s]=!0,s}}),o.ajaxPrefilter("json jsonp",function(s,x,H){var z,K,ee,ue=!1!==s.jsonp&&(_i.test(s.url)?"url":"string"==typeof s.data&&0===(s.contentType||"").indexOf("application/x-www-form-urlencoded")&&_i.test(s.data)&&"data");if(ue||"jsonp"===s.dataTypes[0])return z=s.jsonpCallback=M(s.jsonpCallback)?s.jsonpCallback():s.jsonpCallback,ue?s[ue]=s[ue].replace(_i,"$1"+z):!1!==s.jsonp&&(s.url+=(dn.test(s.url)?"&":"?")+s.jsonp+"="+z),s.converters["script json"]=function(){return ee||o.error(z+" was not called"),ee[0]},s.dataTypes[0]="json",K=i[z],i[z]=function(){ee=arguments},H.always(function(){void 0===K?o(i).removeProp(z):i[z]=K,s[z]&&(s.jsonpCallback=x.jsonpCallback,Wi.push(z)),ee&&M(K)&&K(ee[0]),ee=K=void 0}),"script"}),T.createHTMLDocument=((Fi=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Fi.childNodes.length),o.parseHTML=function(s,x,H){return"string"!=typeof s?[]:("boolean"==typeof x&&(H=x,x=!1),x||(T.createHTMLDocument?((z=(x=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,x.head.appendChild(z)):x=b),ee=!H&&[],(K=de.exec(s))?[x.createElement(K[1])]:(K=vt([s],x,ee),ee&&ee.length&&o(ee).remove(),o.merge([],K.childNodes)));var z,K,ee},o.fn.load=function(s,x,H){var z,K,ee,ue=this,ke=s.indexOf(" ");return-1<ke&&(z=st(s.slice(ke)),s=s.slice(0,ke)),M(x)?(H=x,x=void 0):x&&"object"==typeof x&&(K="POST"),0<ue.length&&o.ajax({url:s,type:K||"GET",dataType:"html",data:x}).done(function(_e){ee=arguments,ue.html(z?o("<div>").append(o.parseHTML(_e)).find(z):_e)}).always(H&&function(_e,Pe){ue.each(function(){H.apply(this,ee||[_e.responseText,Pe,_e])})}),this},o.expr.pseudos.animated=function(s){return o.grep(o.timers,function(x){return s===x.elem}).length},o.offset={setOffset:function(s,x,H){var z,K,ee,ue,ke,_e,Pe=o.css(s,"position"),Be=o(s),Ge={};"static"===Pe&&(s.style.position="relative"),ke=Be.offset(),ee=o.css(s,"top"),_e=o.css(s,"left"),("absolute"===Pe||"fixed"===Pe)&&-1<(ee+_e).indexOf("auto")?(ue=(z=Be.position()).top,K=z.left):(ue=parseFloat(ee)||0,K=parseFloat(_e)||0),M(x)&&(x=x.call(s,H,o.extend({},ke))),null!=x.top&&(Ge.top=x.top-ke.top+ue),null!=x.left&&(Ge.left=x.left-ke.left+K),"using"in x?x.using.call(s,Ge):Be.css(Ge)}},o.fn.extend({offset:function(s){if(arguments.length)return void 0===s?this:this.each(function(K){o.offset.setOffset(this,s,K)});var x,H,z=this[0];return z?z.getClientRects().length?{top:(x=z.getBoundingClientRect()).top+(H=z.ownerDocument.defaultView).pageYOffset,left:x.left+H.pageXOffset}:{top:0,left:0}:void 0},position:function(){if(this[0]){var s,x,H,z=this[0],K={top:0,left:0};if("fixed"===o.css(z,"position"))x=z.getBoundingClientRect();else{for(x=this.offset(),H=z.ownerDocument,s=z.offsetParent||H.documentElement;s&&(s===H.body||s===H.documentElement)&&"static"===o.css(s,"position");)s=s.parentNode;s&&s!==z&&1===s.nodeType&&((K=o(s).offset()).top+=o.css(s,"borderTopWidth",!0),K.left+=o.css(s,"borderLeftWidth",!0))}return{top:x.top-K.top-o.css(z,"marginTop",!0),left:x.left-K.left-o.css(z,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var s=this.offsetParent;s&&"static"===o.css(s,"position");)s=s.offsetParent;return s||he})}}),o.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(s,x){var H="pageYOffset"===x;o.fn[s]=function(z){return ae(this,function(K,ee,ue){var ke;if(O(K)?ke=K:9===K.nodeType&&(ke=K.defaultView),void 0===ue)return ke?ke[x]:K[ee];ke?ke.scrollTo(H?ke.pageXOffset:ue,H?ue:ke.pageYOffset):K[ee]=ue},s,z,arguments.length)}}),o.each(["top","left"],function(s,x){o.cssHooks[x]=en(T.pixelPosition,function(H,z){if(z)return z=mn(H,x),hn.test(z)?o(H).position()[x]+"px":z})}),o.each({Height:"height",Width:"width"},function(s,x){o.each({padding:"inner"+s,content:x,"":"outer"+s},function(H,z){o.fn[z]=function(K,ee){var ue=arguments.length&&(H||"boolean"!=typeof K),ke=H||(!0===K||!0===ee?"margin":"border");return ae(this,function(_e,Pe,Be){var Ge;return O(_e)?0===z.indexOf("outer")?_e["inner"+s]:_e.document.documentElement["client"+s]:9===_e.nodeType?(Ge=_e.documentElement,Math.max(_e.body["scroll"+s],Ge["scroll"+s],_e.body["offset"+s],Ge["offset"+s],Ge["client"+s])):void 0===Be?o.css(_e,Pe,ke):o.style(_e,Pe,Be,ke)},x,ue?K:void 0,ue)}})}),o.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(s,x){o.fn[x]=function(H){return this.on(x,H)}}),o.fn.extend({bind:function(s,x,H){return this.on(s,null,x,H)},unbind:function(s,x){return this.off(s,null,x)},delegate:function(s,x,H,z){return this.on(x,s,H,z)},undelegate:function(s,x,H){return 1===arguments.length?this.off(s,"**"):this.off(x,s||"**",H)},hover:function(s,x){return this.on("mouseenter",s).on("mouseleave",x||s)}}),o.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(s,x){o.fn[x]=function(H,z){return 0<arguments.length?this.on(x,null,H,z):this.trigger(x)}});var ri=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;o.proxy=function(s,x){var H,z,K;if("string"==typeof x&&(H=s[x],x=s,s=H),M(s))return z=l.call(arguments,2),(K=function(){return s.apply(x||this,z.concat(l.call(arguments)))}).guid=s.guid=s.guid||o.guid++,K},o.holdReady=function(s){s?o.readyWait++:o.ready(!0)},o.isArray=Array.isArray,o.parseJSON=JSON.parse,o.nodeName=_,o.isFunction=M,o.isWindow=O,o.camelCase=h,o.type=P,o.now=Date.now,o.isNumeric=function(s){var x=o.type(s);return("number"===x||"string"===x)&&!isNaN(s-parseFloat(s))},o.trim=function(s){return null==s?"":(s+"").replace(ri,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return o});var er=i.jQuery,tr=i.$;return o.noConflict=function(s){return i.$===o&&(i.$=tr),s&&i.jQuery===o&&(i.jQuery=er),o},void 0===f&&(i.jQuery=i.$=o),o}),function(i){function f(a){i.jqplot.ElemContainer.call(this),this.name=a,this._series=[],this.show=!1,this.tickRenderer=i.jqplot.AxisTickRenderer,this.tickOptions={},this.labelRenderer=i.jqplot.AxisLabelRenderer,this.labelOptions={},this.label=null,this.showLabel=!0,this.min=null,this.max=null,this.autoscale=!1,this.pad=1.2,this.padMax=null,this.padMin=null,this.ticks=[],this.renderer=i.jqplot.LinearAxisRenderer,this.rendererOptions={},this.showTicks=!0,this.showTickMarks=!0,this.showMinorTicks=!0,this.drawMajorGridlines=!0,this.drawMinorGridlines=!1,this.drawMajorTickMarks=!0,this.drawMinorTickMarks=!0,this.useSeriesColor=!1,this.borderWidth=null,this.borderColor=null,this.scaleToHiddenSeries=!1,this._dataBounds={min:null,max:null},this._intervalStats=[],this._offsets={min:null,max:null},this._ticks=[],this._label=null,this.syncTicks=null,this.tickSpacing=75,this._min=null,this._max=null,this._tickInterval=null,this._numberTicks=null,this.__ticks=null,this._options={}}function g(a){i.jqplot.ElemContainer.call(this),this.show=!1,this.location="ne",this.labels=[],this.showLabels=!0,this.showSwatches=!0,this.placement="insideGrid",this.xoffset=0,this.yoffset=0,this.rowSpacing="0.5em",this.renderer=i.jqplot.TableLegendRenderer,this.rendererOptions={},this.preDraw=!1,this.marginTop=null,this.marginRight=null,this.marginBottom=null,this.marginLeft=null,this.escapeHtml=!1,this._series=[],i.extend(!0,this,a)}function j(a){i.jqplot.ElemContainer.call(this),this.text=a,this.show=!0,this.renderer=i.jqplot.DivTitleRenderer,this.rendererOptions={},this.escapeHtml=!1}function l(a){a=a||{},i.jqplot.ElemContainer.call(this),this.show=!0,this.xaxis="xaxis",this.yaxis="yaxis",this.gridBorderWidth=2,this.renderer=i.jqplot.LineRenderer,this.rendererOptions={},this.data=[],this.gridData=[],this.label="",this.showLabel=!0,this.lineWidth=2.5,this.lineJoin="round",this.lineCap="round",this.linePattern="solid",this.shadow=!0,this.shadowAngle=45,this.shadowOffset=1.25,this.shadowDepth=3,this.shadowAlpha="0.1",this.breakOnNull=!1,this.markerRenderer=i.jqplot.MarkerRenderer,this.markerOptions={},this.showLine=!0,this.showMarker=!0,this.fill=!1,this.fillAndStroke=!1,this.disableStack=!1,this._stack=!1,this.neighborThreshold=4,this.fillToZero=!1,this.fillToValue=0,this.fillAxis="y",this.useNegativeColors=!0,this._stackData=[],this._plotData=[],this._plotValues={x:[],y:[]},this._intervals={x:{},y:{}},this._prevPlotData=[],this._prevGridData=[],this._stackAxis="y",this._primaryAxis="_xaxis",this.canvas=new i.jqplot.GenericCanvas,this.shadowCanvas=new i.jqplot.GenericCanvas,this.plugins={},this._sumy=0,this._sumx=0,this._type="",this.step=!1}function S(){i.jqplot.ElemContainer.call(this),this.drawGridlines=!0,this.gridLineColor="#cccccc",this.gridLineWidth=1,this.background="#fffdf6",this.borderColor="#999999",this.borderWidth=2,this.drawBorder=!0,this.shadow=!0,this.shadowAngle=45,this.shadowOffset=1.5,this.shadowWidth=3,this.shadowDepth=3,this.shadowColor=null,this.shadowAlpha="0.07",this._axes=[],this.renderer=i.jqplot.CanvasGridRenderer,this.rendererOptions={},this._offsets={top:null,bottom:null,left:null,right:null}}function w(){function a(r){for(var d,E=0;E<r.length;E++)for(var F,I=[r[E].data,r[E]._stackData,r[E]._plotData,r[E]._prevPlotData],Y=0;4>Y;Y++)if(F=!0,d=I[Y],"x"==r[E]._stackAxis){for(var V=0;V<d.length;V++)if("number"!=typeof d[V][1]){F=!1;break}F&&d.sort(function(ie,re){return ie[1]-re[1]})}else{for(V=0;V<d.length;V++)if("number"!=typeof d[V][0]){F=!1;break}F&&d.sort(function(ie,re){return ie[0]-re[0]})}}function h(r){var d,E,F=r.data.plot,I=F.eventCanvas._elem.offset(),Y={x:r.pageX-I.left,y:r.pageY-I.top},V={xaxis:null,yaxis:null,x2axis:null,y2axis:null,y3axis:null,y4axis:null,y5axis:null,y6axis:null,y7axis:null,y8axis:null,y9axis:null,yMidAxis:null},ie=["xaxis","yaxis","x2axis","y2axis","y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis","yMidAxis"],re=F.axes;for(d=11;d>0;d--)re[E=ie[d-1]].show&&(V[E]=re[E].series_p2u(Y[E.charAt(0)]));return{offsets:I,gridPos:Y,dataPos:V}}function n(r,d){function E(Ft,bn,wn){var gn=(bn[1]-wn[1])/(bn[0]-wn[0]),Mn=Ft+bn[1];return[(Mn-(bn[1]-gn*bn[0]))/gn,Mn]}var F,Y,V,ie,re,he,be,qe,Ee,Ke,Ie,Ne,We,$e,Qe,rt,dt,ut=d.series;for(Y=d.seriesStack.length-1;Y>=0;Y--)switch(F=d.seriesStack[Y],V=ut[F],Qe=V._highlightThreshold,V.renderer.constructor){case i.jqplot.BarRenderer:for(re=r.x,he=r.y,I=0;I<V._barPoints.length;I++)if(We=V.gridData[I],re>($e=V._barPoints[I])[0][0]&&re<$e[2][0]&&(he>$e[2][1]&&he<$e[0][1]||he<$e[2][1]&&he>$e[0][1]))return{seriesIndex:V.index,pointIndex:I,gridData:We,data:V.data[I],points:V._barPoints[I]};break;case i.jqplot.PyramidRenderer:for(re=r.x,he=r.y,I=0;I<V._barPoints.length;I++)if(We=V.gridData[I],re>($e=V._barPoints[I])[0][0]+Qe[0][0]&&re<$e[2][0]+Qe[2][0]&&he>$e[2][1]&&he<$e[0][1])return{seriesIndex:V.index,pointIndex:I,gridData:We,data:V.data[I],points:V._barPoints[I]};break;case i.jqplot.DonutRenderer:if(Ee=V.startAngle/180*Math.PI,re=r.x-V._center[0],he=r.y-V._center[1],ie=Math.sqrt(Math.pow(re,2)+Math.pow(he,2)),re>0&&-he>=0?be=2*Math.PI-Math.atan(-he/re):re>0&&0>-he?be=-Math.atan(-he/re):0>re?be=Math.PI-Math.atan(-he/re):0==re&&-he>0?be=3*Math.PI/2:0==re&&0>-he?be=Math.PI/2:0==re&&0==he&&(be=0),Ee&&(0>(be-=Ee)?be+=2*Math.PI:be>2*Math.PI&&(be-=2*Math.PI)),qe=V.sliceMargin/180*Math.PI,ie<V._radius&&ie>V._innerRadius)for(I=0;I<V.gridData.length;I++)if(Ke=V.gridData[I][1],be>(I>0?V.gridData[I-1][1]+qe:qe)&&Ke>be)return{seriesIndex:V.index,pointIndex:I,gridData:[r.x,r.y],data:V.data[I]};break;case i.jqplot.PieRenderer:if(Ee=V.startAngle/180*Math.PI,re=r.x-V._center[0],he=r.y-V._center[1],ie=Math.sqrt(Math.pow(re,2)+Math.pow(he,2)),re>0&&-he>=0?be=2*Math.PI-Math.atan(-he/re):re>0&&0>-he?be=-Math.atan(-he/re):0>re?be=Math.PI-Math.atan(-he/re):0==re&&-he>0?be=3*Math.PI/2:0==re&&0>-he?be=Math.PI/2:0==re&&0==he&&(be=0),Ee&&(0>(be-=Ee)?be+=2*Math.PI:be>2*Math.PI&&(be-=2*Math.PI)),qe=V.sliceMargin/180*Math.PI,ie<V._radius)for(I=0;I<V.gridData.length;I++)if(Ke=V.gridData[I][1],be>(I>0?V.gridData[I-1][1]+qe:qe)&&Ke>be)return{seriesIndex:V.index,pointIndex:I,gridData:[r.x,r.y],data:V.data[I]};break;case i.jqplot.BubbleRenderer:re=r.x,he=r.y;var ft=null;if(V.show){for(var I=0;I<V.gridData.length;I++)We=V.gridData[I],(Ne=Math.sqrt((re-We[0])*(re-We[0])+(he-We[1])*(he-We[1])))<=We[2]&&(Ie>=Ne||null==Ie)&&(Ie=Ne,ft={seriesIndex:F,pointIndex:I,gridData:We,data:V.data[I]});if(null!=ft)return ft}break;case i.jqplot.FunnelRenderer:re=r.x;var gt,vt,bt,Pt=V._vertices,Bt=Pt[0],yt=Pt[Pt.length-1];for(gt=E(he=r.y,Bt[0],yt[3]),vt=E(he,Bt[1],yt[2]),I=0;I<Pt.length;I++)if(he>=(bt=Pt[I])[0][1]&&he<=bt[3][1]&&re>=gt[0]&&re<=vt[0])return{seriesIndex:V.index,pointIndex:I,gridData:null,data:V.data[I]};break;case i.jqplot.LineRenderer:if(re=r.x,he=r.y,ie=V.renderer,V.show){if(!(!(V.fill||V.renderer.bands.show&&V.renderer.bands.fill)||d.plugins.highlighter&&d.plugins.highlighter.show)){var At=!1;if(re>V._boundingBox[0][0]&&re<V._boundingBox[1][0]&&he>V._boundingBox[1][1]&&he<V._boundingBox[0][1])for(var wt=V._areaPoints.length,Rt=(I=wt-1,0);wt>Rt;Rt++){var qt=[V._areaPoints[Rt][0],V._areaPoints[Rt][1]],Qt=[V._areaPoints[I][0],V._areaPoints[I][1]];(qt[1]<he&&Qt[1]>=he||Qt[1]<he&&qt[1]>=he)&&qt[0]+(he-qt[1])/(Qt[1]-qt[1])*(Qt[0]-qt[0])<re&&(At=!At),I=Rt}if(At)return{seriesIndex:F,pointIndex:null,gridData:V.gridData,data:V.data,points:V._areaPoints};break}for(rt=(dt=V.markerRenderer.size/2+V.neighborThreshold)>0?dt:0,I=0;I<V.gridData.length;I++)if(We=V.gridData[I],ie.constructor==i.jqplot.OHLCRenderer){if(ie.candleStick){var Wt=V._yaxis.series_u2p;if(re>=We[0]-ie._bodyWidth/2&&re<=We[0]+ie._bodyWidth/2&&he>=Wt(V.data[I][2])&&he<=Wt(V.data[I][3]))return{seriesIndex:F,pointIndex:I,gridData:We,data:V.data[I]}}else if(ie.hlc){if(Wt=V._yaxis.series_u2p,re>=We[0]-ie._tickLength&&re<=We[0]+ie._tickLength&&he>=Wt(V.data[I][1])&&he<=Wt(V.data[I][2]))return{seriesIndex:F,pointIndex:I,gridData:We,data:V.data[I]}}else if(Wt=V._yaxis.series_u2p,re>=We[0]-ie._tickLength&&re<=We[0]+ie._tickLength&&he>=Wt(V.data[I][2])&&he<=Wt(V.data[I][3]))return{seriesIndex:F,pointIndex:I,gridData:We,data:V.data[I]}}else if(null!=We[0]&&null!=We[1]&&rt>=(Ne=Math.sqrt((re-We[0])*(re-We[0])+(he-We[1])*(he-We[1])))&&(Ie>=Ne||null==Ie))return Ie=Ne,{seriesIndex:F,pointIndex:I,gridData:We,data:V.data[I]}}break;default:if(re=r.x,he=r.y,ie=V.renderer,V.show)for(rt=(dt=V.markerRenderer.size/2+V.neighborThreshold)>0?dt:0,I=0;I<V.gridData.length;I++)if(We=V.gridData[I],ie.constructor==i.jqplot.OHLCRenderer){if(ie.candleStick){if(Wt=V._yaxis.series_u2p,re>=We[0]-ie._bodyWidth/2&&re<=We[0]+ie._bodyWidth/2&&he>=Wt(V.data[I][2])&&he<=Wt(V.data[I][3]))return{seriesIndex:F,pointIndex:I,gridData:We,data:V.data[I]}}else if(ie.hlc){if(Wt=V._yaxis.series_u2p,re>=We[0]-ie._tickLength&&re<=We[0]+ie._tickLength&&he>=Wt(V.data[I][1])&&he<=Wt(V.data[I][2]))return{seriesIndex:F,pointIndex:I,gridData:We,data:V.data[I]}}else if(Wt=V._yaxis.series_u2p,re>=We[0]-ie._tickLength&&re<=We[0]+ie._tickLength&&he>=Wt(V.data[I][2])&&he<=Wt(V.data[I][3]))return{seriesIndex:F,pointIndex:I,gridData:We,data:V.data[I]}}else if(rt>=(Ne=Math.sqrt((re-We[0])*(re-We[0])+(he-We[1])*(he-We[1])))&&(Ie>=Ne||null==Ie))return Ie=Ne,{seriesIndex:F,pointIndex:I,gridData:We,data:V.data[I]}}return null}var d,E;this.animate=!1,this.animateReplot=!1,this.axes={xaxis:new f("xaxis"),yaxis:new f("yaxis"),x2axis:new f("x2axis"),y2axis:new f("y2axis"),y3axis:new f("y3axis"),y4axis:new f("y4axis"),y5axis:new f("y5axis"),y6axis:new f("y6axis"),y7axis:new f("y7axis"),y8axis:new f("y8axis"),y9axis:new f("y9axis"),yMidAxis:new f("yMidAxis")},this.baseCanvas=new i.jqplot.GenericCanvas,this.captureRightClick=!1,this.data=[],this.defaults={axesDefaults:{},axes:{xaxis:{},yaxis:{},x2axis:{},y2axis:{},y3axis:{},y4axis:{},y5axis:{},y6axis:{},y7axis:{},y8axis:{},y9axis:{},yMidAxis:{}},seriesDefaults:{},series:[]},this.defaultAxisStart=1,this.drawIfHidden=!1,this.eventCanvas=new i.jqplot.GenericCanvas,this.fillBetween={series1:null,series2:null,color:null,baseSeries:0,fill:!0},this.grid=new S,this.legend=new g,this.noDataIndicator={show:!1,indicator:"Loading Data...",axes:{xaxis:{min:0,max:10,tickInterval:2,show:!0},yaxis:{min:0,max:12,tickInterval:3,show:!0}}},this.negativeSeriesColors=i.jqplot.config.defaultNegativeColors,this.options={},this.previousSeriesStack=[],this.plugins={},this.series=[],this.seriesStack=[],this.seriesColors=i.jqplot.config.defaultColors,this.sortData=!0,this.stackSeries=!1,this.syncXTicks=!0,this.syncYTicks=!0,this.target=null,this.targetId=null,this.title=new j,this._drawCount=0,this._sumy=0,this._sumx=0,this._stackData=[],this._plotData=[],this._width=null,this._height=null,this._plotDimensions={height:null,width:null},this._gridPadding={top:null,right:null,bottom:null,left:null},this._defaultGridPadding={top:10,right:10,bottom:23,left:10},this._addDomReference=i.jqplot.config.addDomReference,this.preInitHooks=new i.jqplot.HooksManager,this.postInitHooks=new i.jqplot.HooksManager,this.preParseOptionsHooks=new i.jqplot.HooksManager,this.postParseOptionsHooks=new i.jqplot.HooksManager,this.preDrawHooks=new i.jqplot.HooksManager,this.postDrawHooks=new i.jqplot.HooksManager,this.preDrawSeriesHooks=new i.jqplot.HooksManager,this.postDrawSeriesHooks=new i.jqplot.HooksManager,this.preDrawLegendHooks=new i.jqplot.HooksManager,this.addLegendRowHooks=new i.jqplot.HooksManager,this.preSeriesInitHooks=new i.jqplot.HooksManager,this.postSeriesInitHooks=new i.jqplot.HooksManager,this.preParseSeriesOptionsHooks=new i.jqplot.HooksManager,this.postParseSeriesOptionsHooks=new i.jqplot.HooksManager,this.eventListenerHooks=new i.jqplot.EventListenerManager,this.preDrawSeriesShadowHooks=new i.jqplot.HooksManager,this.postDrawSeriesShadowHooks=new i.jqplot.HooksManager,this.colorGenerator=new i.jqplot.ColorGenerator,this.negativeColorGenerator=new i.jqplot.ColorGenerator,this.canvasManager=new i.jqplot.CanvasManager,this.themeEngine=new i.jqplot.ThemeEngine,this.init=function(r,d,E){E=E||{};for(var F=0;F<i.jqplot.preInitHooks.length;F++)i.jqplot.preInitHooks[F].call(this,r,d,E);for(F=0;F<this.preInitHooks.hooks.length;F++)this.preInitHooks.hooks[F].call(this,r,d,E);if(this.targetId="#"+r,this.target=i("#"+r),this._addDomReference&&this.target.data("jqplot",this),this.target.removeClass("jqplot-error"),!this.target.get(0))throw new Error("No plot target specified");var I,Y,be,qe;"static"==this.target.css("position")&&this.target.css("position","relative"),this.target.hasClass("jqplot-target")||this.target.addClass("jqplot-target"),this.target.height()?this._height=I=this.target.height():(I=E&&E.height?parseInt(E.height,10):this.target.attr("data-height")?parseInt(this.target.attr("data-height"),10):parseInt(i.jqplot.config.defaultHeight,10),this._height=I,this.target.css("height",I+"px")),this.target.width()?this._width=Y=this.target.width():(Y=E&&E.width?parseInt(E.width,10):this.target.attr("data-width")?parseInt(this.target.attr("data-width"),10):parseInt(i.jqplot.config.defaultWidth,10),this._width=Y,this.target.css("width",Y+"px")),F=0;for(var V=ge.length;V>F;F++)this.axes[ge[F]]=new f(ge[F]);if(this._plotDimensions.height=this._height,this._plotDimensions.width=this._width,this.grid._plotDimensions=this._plotDimensions,this.title._plotDimensions=this._plotDimensions,this.baseCanvas._plotDimensions=this._plotDimensions,this.eventCanvas._plotDimensions=this._plotDimensions,this.legend._plotDimensions=this._plotDimensions,this._height<=0||this._width<=0||!this._height||!this._width)throw new Error("Canvas dimension not set");if(E.dataRenderer&&i.isFunction(E.dataRenderer)&&(E.dataRendererOptions&&(this.dataRendererOptions=E.dataRendererOptions),this.dataRenderer=E.dataRenderer,d=this.dataRenderer(d,this,this.dataRendererOptions)),E.noDataIndicator&&i.isPlainObject(E.noDataIndicator)&&i.extend(!0,this.noDataIndicator,E.noDataIndicator),null==d||0==i.isArray(d)||0==d.length||0==i.isArray(d[0])||0==d[0].length){if(0==this.noDataIndicator.show)throw new Error("No data specified");for(var ie in this.noDataIndicator.axes)for(var re in this.noDataIndicator.axes[ie])this.axes[ie][re]=this.noDataIndicator.axes[ie][re];this.postDrawHooks.add(function(){var Ee=this.eventCanvas.getHeight(),je=this.eventCanvas.getWidth(),Ke=i('<div class="jqplot-noData-container" style="position:absolute;"></div>');this.target.append(Ke),Ke.height(Ee),Ke.width(je),Ke.css("top",this.eventCanvas._offsets.top),Ke.css("left",this.eventCanvas._offsets.left);var Ie=i('<div class="jqplot-noData-contents" style="text-align:center; position:relative; margin-left:auto; margin-right:auto;"></div>');Ke.append(Ie),Ie.html(this.noDataIndicator.indicator);var Ne=Ie.height(),We=Ie.width();Ie.height(Ne),Ie.width(We),Ie.css("top",(Ee-Ne)/2+"px")})}for(this.data=i.extend(!0,[],d),this.parseOptions(E),this.textColor&&this.target.css("color",this.textColor),this.fontFamily&&this.target.css("font-family",this.fontFamily),this.fontSize&&this.target.css("font-size",this.fontSize),this.title.init(),this.legend.init(),this._sumy=0,this._sumx=0,this.computePlotData(),F=0;F<this.series.length;F++){this.seriesStack.push(F),this.previousSeriesStack.push(F),this.series[F].shadowCanvas._plotDimensions=this._plotDimensions,this.series[F].canvas._plotDimensions=this._plotDimensions;for(var he=0;he<i.jqplot.preSeriesInitHooks.length;he++)i.jqplot.preSeriesInitHooks[he].call(this.series[F],r,this.data,this.options.seriesDefaults,this.options.series[F],this);for(he=0;he<this.preSeriesInitHooks.hooks.length;he++)this.preSeriesInitHooks.hooks[he].call(this.series[F],r,this.data,this.options.seriesDefaults,this.options.series[F],this);for(this.series[F]._plotDimensions=this._plotDimensions,this.series[F].init(F,this.grid.borderWidth,this),he=0;he<i.jqplot.postSeriesInitHooks.length;he++)i.jqplot.postSeriesInitHooks[he].call(this.series[F],r,this.data,this.options.seriesDefaults,this.options.series[F],this);for(he=0;he<this.postSeriesInitHooks.hooks.length;he++)this.postSeriesInitHooks.hooks[he].call(this.series[F],r,this.data,this.options.seriesDefaults,this.options.series[F],this);this._sumy+=this.series[F]._sumy,this._sumx+=this.series[F]._sumx}for(F=0,V=ge.length;V>F;F++)(qe=this.axes[be=ge[F]])._plotDimensions=this._plotDimensions,qe.init(),null==this.axes[be].borderColor&&(qe.borderColor="x"!==be.charAt(0)&&!0===qe.useSeriesColor&&qe.show?qe._series[0].color:this.grid.borderColor);for(this.sortData&&a(this.series),this.grid.init(),this.grid._axes=this.axes,this.legend._series=this.series,F=0;F<i.jqplot.postInitHooks.length;F++)i.jqplot.postInitHooks[F].call(this,r,this.data,E);for(F=0;F<this.postInitHooks.hooks.length;F++)this.postInitHooks.hooks[F].call(this,r,this.data,E)},this.resetAxesScale=function(r,d){var E=d||{},F=r||this.axes;if(!0===F&&(F=this.axes),i.isArray(F))for(var I=0;I<F.length;I++)this.axes[F[I]].resetScale(E[F[I]]);else if("object"==typeof F)for(var Y in F)this.axes[Y].resetScale(E[Y])},this.reInitialize=function(r,d){for(var E=i.extend(!0,{},this.options,d),F=this.targetId.substr(1),I=null==r?this.data:r,Y=0;Y<i.jqplot.preInitHooks.length;Y++)i.jqplot.preInitHooks[Y].call(this,F,I,E);for(Y=0;Y<this.preInitHooks.hooks.length;Y++)this.preInitHooks.hooks[Y].call(this,F,I,E);if(this._height=this.target.height(),this._width=this.target.width(),this._height<=0||this._width<=0||!this._height||!this._width)throw new Error("Target dimension not set");this._plotDimensions.height=this._height,this._plotDimensions.width=this._width,this.grid._plotDimensions=this._plotDimensions,this.title._plotDimensions=this._plotDimensions,this.baseCanvas._plotDimensions=this._plotDimensions,this.eventCanvas._plotDimensions=this._plotDimensions,this.legend._plotDimensions=this._plotDimensions,Y=0;for(var V,ie,he,be=ge.length;be>Y;Y++){for(var re=0,qe=(ie=(he=this.axes[V=ge[Y]])._ticks).length;qe>re;re++){var Ee=ie[re]._elem;Ee&&(i.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==te&&window.G_vmlCanvasManager.uninitElement(Ee.get(0)),Ee.emptyForce(),Ee=null,ie._elem=null)}ie=null,delete he.ticks,delete he._ticks,this.axes[V]=new f(V),this.axes[V]._plotWidth=this._width,this.axes[V]._plotHeight=this._height}for(r&&(E.dataRenderer&&i.isFunction(E.dataRenderer)&&(E.dataRendererOptions&&(this.dataRendererOptions=E.dataRendererOptions),this.dataRenderer=E.dataRenderer,r=this.dataRenderer(r,this,this.dataRendererOptions)),this.data=i.extend(!0,[],r)),d&&this.parseOptions(E),this.title._plotWidth=this._width,this.textColor&&this.target.css("color",this.textColor),this.fontFamily&&this.target.css("font-family",this.fontFamily),this.fontSize&&this.target.css("font-size",this.fontSize),this.title.init(),this.legend.init(),this._sumy=0,this._sumx=0,this.seriesStack=[],this.previousSeriesStack=[],this.computePlotData(),Y=0,be=this.series.length;be>Y;Y++){for(this.seriesStack.push(Y),this.previousSeriesStack.push(Y),this.series[Y].shadowCanvas._plotDimensions=this._plotDimensions,this.series[Y].canvas._plotDimensions=this._plotDimensions,re=0;re<i.jqplot.preSeriesInitHooks.length;re++)i.jqplot.preSeriesInitHooks[re].call(this.series[Y],F,this.data,this.options.seriesDefaults,this.options.series[Y],this);for(re=0;re<this.preSeriesInitHooks.hooks.length;re++)this.preSeriesInitHooks.hooks[re].call(this.series[Y],F,this.data,this.options.seriesDefaults,this.options.series[Y],this);for(this.series[Y]._plotDimensions=this._plotDimensions,this.series[Y].init(Y,this.grid.borderWidth,this),re=0;re<i.jqplot.postSeriesInitHooks.length;re++)i.jqplot.postSeriesInitHooks[re].call(this.series[Y],F,this.data,this.options.seriesDefaults,this.options.series[Y],this);for(re=0;re<this.postSeriesInitHooks.hooks.length;re++)this.postSeriesInitHooks.hooks[re].call(this.series[Y],F,this.data,this.options.seriesDefaults,this.options.series[Y],this);this._sumy+=this.series[Y]._sumy,this._sumx+=this.series[Y]._sumx}for(Y=0,be=ge.length;be>Y;Y++)(he=this.axes[V=ge[Y]])._plotDimensions=this._plotDimensions,he.init(),null==he.borderColor&&(he.borderColor="x"!==V.charAt(0)&&!0===he.useSeriesColor&&he.show?he._series[0].color:this.grid.borderColor);for(this.sortData&&a(this.series),this.grid.init(),this.grid._axes=this.axes,this.legend._series=this.series,Y=0,be=i.jqplot.postInitHooks.length;be>Y;Y++)i.jqplot.postInitHooks[Y].call(this,F,this.data,E);for(Y=0,be=this.postInitHooks.hooks.length;be>Y;Y++)this.postInitHooks.hooks[Y].call(this,F,this.data,E)},this.quickInit=function(){if(this._height=this.target.height(),this._width=this.target.width(),this._height<=0||this._width<=0||!this._height||!this._width)throw new Error("Target dimension not set");for(var r in this._plotDimensions.height=this._height,this._plotDimensions.width=this._width,this.grid._plotDimensions=this._plotDimensions,this.title._plotDimensions=this._plotDimensions,this.baseCanvas._plotDimensions=this._plotDimensions,this.eventCanvas._plotDimensions=this._plotDimensions,this.legend._plotDimensions=this._plotDimensions,this.axes)this.axes[r]._plotWidth=this._width,this.axes[r]._plotHeight=this._height;this.title._plotWidth=this._width,this.textColor&&this.target.css("color",this.textColor),this.fontFamily&&this.target.css("font-family",this.fontFamily),this.fontSize&&this.target.css("font-size",this.fontSize),this._sumy=0,this._sumx=0,this.computePlotData();for(var d=0;d<this.series.length;d++)"line"===this.series[d]._type&&this.series[d].renderer.bands.show&&this.series[d].renderer.initBands.call(this.series[d],this.series[d].renderer.options,this),this.series[d]._plotDimensions=this._plotDimensions,this.series[d].canvas._plotDimensions=this._plotDimensions,this._sumy+=this.series[d]._sumy,this._sumx+=this.series[d]._sumx;for(var E,F=0;12>F;F++){var I=this.axes[E=ge[F]]._ticks;for(d=0;d<I.length;d++){var Y=I[d]._elem;Y&&(i.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==te&&window.G_vmlCanvasManager.uninitElement(Y.get(0)),Y.emptyForce(),Y=null,I._elem=null)}I=null,this.axes[E]._plotDimensions=this._plotDimensions,this.axes[E]._ticks=[]}this.sortData&&a(this.series),this.grid._axes=this.axes,this.legend._series=this.series},this.computePlotData=function(){var r,d,E;for(this._plotData=[],this._stackData=[],d=0,E=this.series.length;E>d;d++){r=this.series[d],this._plotData.push([]),this._stackData.push([]);var F=r.data;this._plotData[d]=i.extend(!0,[],F),this._stackData[d]=i.extend(!0,[],F),r._plotData=this._plotData[d],r._stackData=this._stackData[d];var I={x:[],y:[]};if(this.stackSeries&&!r.disableStack){r._stack=!0;for(var Y="x"===r._stackAxis?0:1,V=0,ie=F.length;ie>V;V++){var re=F[V][Y];if(null==re&&(re=0),this._plotData[d][V][Y]=re,this._stackData[d][V][Y]=re,d>0)for(var he=d;he--;){var be=this._plotData[he][V][Y];if(re*be>=0){this._plotData[d][V][Y]+=be,this._stackData[d][V][Y]+=be;break}}}}else{for(var qe=0;qe<r.data.length;qe++)I.x.push(r.data[qe][0]),I.y.push(r.data[qe][1]);this._stackData.push(r.data),this.series[d]._stackData=r.data,this._plotData.push(r.data),r._plotData=r.data,r._plotValues=I}for(d>0&&(r._prevPlotData=this.series[d-1]._plotData),r._sumy=0,r._sumx=0,qe=r.data.length-1;qe>-1;qe--)r._sumy+=r.data[qe][1],r._sumx+=r.data[qe][0]}},this.populatePlotData=function(r,d){this._plotData=[],this._stackData=[],r._stackData=[],r._plotData=[];var E={x:[],y:[]};if(this.stackSeries&&!r.disableStack){r._stack=!0;for(var F,I,Y,V,ie="x"===r._stackAxis?0:1,re=i.extend(!0,[],r.data),he=i.extend(!0,[],r.data),be=0;d>be;be++)for(var qe=this.series[be].data,Ee=0;Ee<qe.length;Ee++)I=null!=(Y=qe[Ee])[1]?Y[1]:0,re[Ee][0]+=F=null!=Y[0]?Y[0]:0,re[Ee][1]+=I,r.data[Ee][ie]*(V=ie?I:F)>=0&&(he[Ee][ie]+=V);for(var je=0;je<he.length;je++)E.x.push(he[je][0]),E.y.push(he[je][1]);this._plotData.push(he),this._stackData.push(re),r._stackData=re,r._plotData=he,r._plotValues=E}else{for(je=0;je<r.data.length;je++)E.x.push(r.data[je][0]),E.y.push(r.data[je][1]);this._stackData.push(r.data),this.series[d]._stackData=r.data,this._plotData.push(r.data),r._plotData=r.data,r._plotValues=E}for(d>0&&(r._prevPlotData=this.series[d-1]._plotData),r._sumy=0,r._sumx=0,je=r.data.length-1;je>-1;je--)r._sumy+=r.data[je][1],r._sumx+=r.data[je][0]},this.getNextSeriesColor=(d=0,E=this.seriesColors,function(){return d<E.length||(d=0),E[d++]}),this.parseOptions=function(r){for(var d=0;d<this.preParseOptionsHooks.hooks.length;d++)this.preParseOptionsHooks.hooks[d].call(this,r);for(d=0;d<i.jqplot.preParseOptionsHooks.length;d++)i.jqplot.preParseOptionsHooks[d].call(this,r);this.options=i.extend(!0,{},this.defaults,r);var E=this.options;if(this.animate=E.animate,this.animateReplot=E.animateReplot,this.stackSeries=E.stackSeries,i.isPlainObject(E.fillBetween)){d=0;for(var F,Y=(I=["series1","series2","color","baseSeries","fill"]).length;Y>d;d++)null!=E.fillBetween[F=I[d]]&&(this.fillBetween[F]=E.fillBetween[F])}for(E.seriesColors&&(this.seriesColors=E.seriesColors),E.negativeSeriesColors&&(this.negativeSeriesColors=E.negativeSeriesColors),E.captureRightClick&&(this.captureRightClick=E.captureRightClick),this.defaultAxisStart=r&&null!=r.defaultAxisStart?r.defaultAxisStart:this.defaultAxisStart,this.colorGenerator.setColors(this.seriesColors),this.negativeColorGenerator.setColors(this.negativeSeriesColors),i.extend(!0,this._gridPadding,E.gridPadding),this.sortData=null!=E.sortData?E.sortData:this.sortData,d=0;12>d;d++)(ie=this.axes[V=ge[d]])._options=i.extend(!0,{},E.axesDefaults,E.axes[V]),i.extend(!0,ie,E.axesDefaults,E.axes[V]),ie._plotWidth=this._width,ie._plotHeight=this._height;var re=function(Ee,je,Ke){var Ie,Ne,We=[];if(je=je||"vertical",i.isArray(Ee[0]))i.extend(!0,We,Ee);else for(Ie=0,Ne=Ee.length;Ne>Ie;Ie++)We.push("vertical"==je?[Ke+Ie,Ee[Ie]]:[Ee[Ie],Ke+Ie]);return We};for(this.series=[],d=0;d<this.data.length;d++){for(var he=i.extend(!0,{index:d},{seriesColors:this.seriesColors,negativeSeriesColors:this.negativeSeriesColors},this.options.seriesDefaults,this.options.series[d],{rendererOptions:{animation:{show:this.animate}}}),I=new l(he),be=0;be<i.jqplot.preParseSeriesOptionsHooks.length;be++)i.jqplot.preParseSeriesOptionsHooks[be].call(I,this.options.seriesDefaults,this.options.series[d]);for(be=0;be<this.preParseSeriesOptionsHooks.hooks.length;be++)this.preParseSeriesOptionsHooks.hooks[be].call(I,this.options.seriesDefaults,this.options.series[d]);i.extend(!0,I,he);var qe="vertical";switch(I.renderer===i.jqplot.BarRenderer&&I.rendererOptions&&"horizontal"==I.rendererOptions.barDirection&&(qe="horizontal",I._stackAxis="x",I._primaryAxis="_yaxis"),I.data=re(this.data[d],qe,this.defaultAxisStart),I.xaxis){case"xaxis":I._xaxis=this.axes.xaxis;break;case"x2axis":I._xaxis=this.axes.x2axis}for(I._yaxis=this.axes[I.yaxis],I._xaxis._series.push(I),I._yaxis._series.push(I),I.show?(I._xaxis.show=!0,I._yaxis.show=!0):(I._xaxis.scaleToHiddenSeries&&(I._xaxis.show=!0),I._yaxis.scaleToHiddenSeries&&(I._yaxis.show=!0)),I.label||(I.label="Series "+(d+1).toString()),this.series.push(I),be=0;be<i.jqplot.postParseSeriesOptionsHooks.length;be++)i.jqplot.postParseSeriesOptionsHooks[be].call(this.series[d],this.options.seriesDefaults,this.options.series[d]);for(be=0;be<this.postParseSeriesOptionsHooks.hooks.length;be++)this.postParseSeriesOptionsHooks.hooks[be].call(this.series[d],this.options.seriesDefaults,this.options.series[d])}for(i.extend(!0,this.grid,this.options.grid),d=0,Y=ge.length;Y>d;d++){var V,ie;null==(ie=this.axes[V=ge[d]]).borderWidth&&(ie.borderWidth=this.grid.borderWidth)}for("string"==typeof this.options.title?this.title.text=this.options.title:"object"==typeof this.options.title&&i.extend(!0,this.title,this.options.title),this.title._plotWidth=this._width,this.legend.setOptions(this.options.legend),d=0;d<i.jqplot.postParseOptionsHooks.length;d++)i.jqplot.postParseOptionsHooks[d].call(this,r);for(d=0;d<this.postParseOptionsHooks.hooks.length;d++)this.postParseOptionsHooks.hooks[d].call(this,r)},this.destroy=function(){this.canvasManager.freeAllCanvases(),this.eventCanvas&&this.eventCanvas._elem&&this.eventCanvas._elem.unbind(),this.target.empty(),this.target[0].innerHTML=""},this.replot=function(r){var d=r||{},E=d.data||null,F=!1!==d.clear,I=d.resetAxes||!1;delete d.data,delete d.clear,delete d.resetAxes,this.target.trigger("jqplotPreReplot"),F&&this.destroy(),E||!i.isEmptyObject(d)?this.reInitialize(E,d):this.quickInit(),I&&this.resetAxesScale(I,d.axes),this.draw(),this.target.trigger("jqplotPostReplot")},this.redraw=function(r){for(var d in r=null==r||r,this.target.trigger("jqplotPreRedraw"),r&&(this.canvasManager.freeAllCanvases(),this.eventCanvas._elem.unbind(),this.target.empty()),this.axes)this.axes[d]._ticks=[];this.computePlotData(),this._sumy=0,this._sumx=0;for(var E=0,F=this.series.length;F>E;E++)this._sumy+=this.series[E]._sumy,this._sumx+=this.series[E]._sumx;this.draw(),this.target.trigger("jqplotPostRedraw")},this.draw=function(){if(this.drawIfHidden||this.target.is(":visible")){var d;for(this.target.trigger("jqplotPreDraw"),r=0,E=i.jqplot.preDrawHooks.length;E>r;r++)i.jqplot.preDrawHooks[r].call(this);for(r=0,E=this.preDrawHooks.hooks.length;E>r;r++)this.preDrawHooks.hooks[r].apply(this,this.preDrawSeriesHooks.args[r]);this.target.append(this.baseCanvas.createElement({left:0,right:0,top:0,bottom:0},"jqplot-base-canvas",null,this)),this.baseCanvas.setContext(),this.target.append(this.title.draw()),this.title.pack({top:0,left:0});var F=this.legend.draw({},this),I={top:0,left:0,bottom:0,right:0};if("outsideGrid"==this.legend.placement){switch(this.target.append(F),this.legend.location){case"n":I.top+=this.legend.getHeight();break;case"s":I.bottom+=this.legend.getHeight();break;case"ne":case"e":case"se":default:I.right+=this.legend.getWidth();break;case"nw":case"w":case"sw":I.left+=this.legend.getWidth()}F=F.detach()}var Y,V=this.axes;for(r=0;12>r;r++)this.target.append(V[Y=ge[r]].draw(this.baseCanvas._ctx,this)),V[Y].set();V.yaxis.show&&(I.left+=V.yaxis.getWidth());var re=["y2axis","y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis"],he=[0,0,0,0,0,0,0,0],be=0;for(ie=0;8>ie;ie++)V[re[ie]].show&&(be+=V[re[ie]].getWidth(),he[ie]=be);if(I.right+=be,V.x2axis.show&&(I.top+=V.x2axis.getHeight()),this.title.show&&(I.top+=this.title.getHeight()),V.xaxis.show&&(I.bottom+=V.xaxis.getHeight()),this.options.gridDimensions&&i.isPlainObject(this.options.gridDimensions)){var qe=parseInt(this.options.gridDimensions.width,10)||0,Ee=parseInt(this.options.gridDimensions.height,10)||0,je=(this._width-I.left-I.right-qe)/2,Ke=(this._height-I.top-I.bottom-Ee)/2;Ke>=0&&je>=0&&(I.top+=Ke,I.bottom+=Ke,I.left+=je,I.right+=je)}var Ie=["top","bottom","left","right"];for(var ie in Ie)null==this._gridPadding[Ie[ie]]&&I[Ie[ie]]>0?this._gridPadding[Ie[ie]]=I[Ie[ie]]:null==this._gridPadding[Ie[ie]]&&(this._gridPadding[Ie[ie]]=this._defaultGridPadding[Ie[ie]]);var Ne=this._gridPadding;for("outsideGrid"===this.legend.placement&&(Ne={top:this.title.getHeight(),left:0,right:0,bottom:0},"s"===this.legend.location&&(Ne.left=this._gridPadding.left,Ne.right=this._gridPadding.right)),V.xaxis.pack({position:"absolute",bottom:this._gridPadding.bottom-V.xaxis.getHeight(),left:0,width:this._width},{min:this._gridPadding.left,max:this._width-this._gridPadding.right}),V.yaxis.pack({position:"absolute",top:0,left:this._gridPadding.left-V.yaxis.getWidth(),height:this._height},{min:this._height-this._gridPadding.bottom,max:this._gridPadding.top}),V.x2axis.pack({position:"absolute",top:this._gridPadding.top-V.x2axis.getHeight(),left:0,width:this._width},{min:this._gridPadding.left,max:this._width-this._gridPadding.right}),r=8;r>0;r--)V[re[r-1]].pack({position:"absolute",top:0,right:this._gridPadding.right-he[r-1]},{min:this._height-this._gridPadding.bottom,max:this._gridPadding.top});var We=(this._width-this._gridPadding.left-this._gridPadding.right)/2+this._gridPadding.left-V.yMidAxis.getWidth()/2;V.yMidAxis.pack({position:"absolute",top:0,left:We,zIndex:9,textAlign:"center"},{min:this._height-this._gridPadding.bottom,max:this._gridPadding.top}),this.target.append(this.grid.createElement(this._gridPadding,this)),this.grid.draw();var $e=this.series,Qe=$e.length;for(r=0,E=Qe;E>r;r++)this.target.append($e[d=this.seriesStack[r]].shadowCanvas.createElement(this._gridPadding,"jqplot-series-shadowCanvas",null,this)),$e[d].shadowCanvas.setContext(),$e[d].shadowCanvas._elem.data("seriesIndex",d);for(r=0,E=Qe;E>r;r++)this.target.append($e[d=this.seriesStack[r]].canvas.createElement(this._gridPadding,"jqplot-series-canvas",null,this)),$e[d].canvas.setContext(),$e[d].canvas._elem.data("seriesIndex",d);this.target.append(this.eventCanvas.createElement(this._gridPadding,"jqplot-event-canvas",null,this)),this.eventCanvas.setContext(),this.eventCanvas._ctx.fillStyle="rgba(0,0,0,0)",this.eventCanvas._ctx.fillRect(0,0,this.eventCanvas._ctx.canvas.width,this.eventCanvas._ctx.canvas.height),this.bindCustomEvents(),this.legend.preDraw?(this.eventCanvas._elem.before(F),this.legend.pack(Ne),this.legend._elem?this.drawSeries({legendInfo:{location:this.legend.location,placement:this.legend.placement,width:this.legend.getWidth(),height:this.legend.getHeight(),xoffset:this.legend.xoffset,yoffset:this.legend.yoffset}}):this.drawSeries()):(this.drawSeries(),Qe&&i($e[Qe-1].canvas._elem).after(F),this.legend.pack(Ne));for(var r=0,E=i.jqplot.eventListenerHooks.length;E>r;r++)this.eventCanvas._elem.bind(i.jqplot.eventListenerHooks[r][0],{plot:this},i.jqplot.eventListenerHooks[r][1]);for(r=0,E=this.eventListenerHooks.hooks.length;E>r;r++)this.eventCanvas._elem.bind(this.eventListenerHooks.hooks[r][0],{plot:this},this.eventListenerHooks.hooks[r][1]);var vt,bt,Bt,rt=this.fillBetween;if("number"==typeof rt.series1)rt.fill&&rt.series1!==rt.series2&&rt.series1<Qe&&rt.series2<Qe&&"line"===$e[rt.series1]._type&&"line"===$e[rt.series2]._type&&this.doFillBetweenLines();else if(null!=rt.series1&&null!=rt.series2){var dt=!1;if(rt.series1.length===rt.series2.length)for(var ut=0,ft=0,gt=0;gt<rt.series1.length;gt++){if(!((ut=rt.series1[gt])!==(ft=rt.series2[gt])&&Qe>ut&&Qe>ft&&"line"===$e[ut]._type&&"line"===$e[ft]._type)){dt=!1;break}dt=!0}rt.fill&&dt&&this.doFillBetweenLines()}for(r=0,E=i.jqplot.postDrawHooks.length;E>r;r++)i.jqplot.postDrawHooks[r].call(this);for(r=0,E=this.postDrawHooks.hooks.length;E>r;r++)this.postDrawHooks.hooks[r].apply(this,this.postDrawHooks.args[r]);for(this.target.is(":visible")&&(this._drawCount+=1),r=0,E=Qe;E>r;r++)(bt=(vt=$e[r]).renderer).animation&&bt.animation._supported&&bt.animation.show&&(this._drawCount<2||this.animateReplot)&&((Bt=this.target.find(".jqplot-point-label.jqplot-series-"+r)).stop(!0,!0).hide(),vt.canvas._elem.stop(!0,!0).hide(),vt.shadowCanvas._elem.stop(!0,!0).hide(),vt.canvas._elem.jqplotEffect("blind",{mode:"show",direction:bt.animation.direction},bt.animation.speed),vt.shadowCanvas._elem.jqplotEffect("blind",{mode:"show",direction:bt.animation.direction},bt.animation.speed),Bt.fadeIn(.8*bt.animation.speed));Bt=null,this.target.trigger("jqplotPostDraw",[this])}},w.prototype.doFillBetweenLines=function(){function r(re,he){var be=E[re],qe=E[he];if(qe.renderer.smooth)var Ee=qe.renderer._smoothedData.slice(0).reverse();else Ee=qe.gridData.slice(0).reverse();if(be.renderer.smooth)var je=be.renderer._smoothedData.concat(Ee);else je=be.gridData.concat(Ee);E[null!==d.baseSeries?d.baseSeries:re].renderer.shapeRenderer.draw(be.shadowCanvas._ctx,je,{fillStyle:null!==d.color?d.color:E[F].fillColor,fill:!0,closePath:!0})}var d=this.fillBetween,E=this.series,F=d.series1,I=d.series2;if("number"==typeof F&&"number"==typeof I)r(I>F?F:I,I>F?I:F);else for(var ie=0;ie<F.length;ie++)r(F[ie]<I[ie]?F[ie]:I[ie],I[ie]>F[ie]?I[ie]:F[ie])},this.bindCustomEvents=function(){this.eventCanvas._elem.bind("click",{plot:this},this.onClick),this.eventCanvas._elem.bind("dblclick",{plot:this},this.onDblClick),this.eventCanvas._elem.bind("mousedown",{plot:this},this.onMouseDown),this.eventCanvas._elem.bind("mousemove",{plot:this},this.onMouseMove),this.eventCanvas._elem.bind("mouseenter",{plot:this},this.onMouseEnter),this.eventCanvas._elem.bind("mouseleave",{plot:this},this.onMouseLeave),this.captureRightClick?(this.eventCanvas._elem.bind("mouseup",{plot:this},this.onRightClick),this.eventCanvas._elem.get(0).oncontextmenu=function(){return!1}):this.eventCanvas._elem.bind("mouseup",{plot:this},this.onMouseUp)},this.onClick=function(r){var d=h(r),E=r.data.plot,F=n(d.gridPos,E),I=i.Event("jqplotClick");I.pageX=r.pageX,I.pageY=r.pageY,i(this).trigger(I,[d.gridPos,d.dataPos,F,E])},this.onDblClick=function(r){var d=h(r),E=r.data.plot,F=n(d.gridPos,E),I=i.Event("jqplotDblClick");I.pageX=r.pageX,I.pageY=r.pageY,i(this).trigger(I,[d.gridPos,d.dataPos,F,E])},this.onMouseDown=function(r){var d=h(r),E=r.data.plot,F=n(d.gridPos,E),I=i.Event("jqplotMouseDown");I.pageX=r.pageX,I.pageY=r.pageY,i(this).trigger(I,[d.gridPos,d.dataPos,F,E])},this.onMouseUp=function(r){var d=h(r),E=i.Event("jqplotMouseUp");E.pageX=r.pageX,E.pageY=r.pageY,i(this).trigger(E,[d.gridPos,d.dataPos,null,r.data.plot])},this.onRightClick=function(r){var d=h(r),E=r.data.plot,F=n(d.gridPos,E);if(E.captureRightClick)if(3==r.which)(I=i.Event("jqplotRightClick")).pageX=r.pageX,I.pageY=r.pageY,i(this).trigger(I,[d.gridPos,d.dataPos,F,E]);else{var I;(I=i.Event("jqplotMouseUp")).pageX=r.pageX,I.pageY=r.pageY,i(this).trigger(I,[d.gridPos,d.dataPos,F,E])}},this.onMouseMove=function(r){var d=h(r),E=r.data.plot,F=n(d.gridPos,E),I=i.Event("jqplotMouseMove");I.pageX=r.pageX,I.pageY=r.pageY,i(this).trigger(I,[d.gridPos,d.dataPos,F,E])},this.onMouseEnter=function(r){var d=h(r),E=r.data.plot,F=i.Event("jqplotMouseEnter");F.pageX=r.pageX,F.pageY=r.pageY,F.relatedTarget=r.relatedTarget,i(this).trigger(F,[d.gridPos,d.dataPos,null,E])},this.onMouseLeave=function(r){var d=h(r),E=r.data.plot,F=i.Event("jqplotMouseLeave");F.pageX=r.pageX,F.pageY=r.pageY,F.relatedTarget=r.relatedTarget,i(this).trigger(F,[d.gridPos,d.dataPos,null,E])},this.drawSeries=function(r,d){var E,F,I;if(d="number"==typeof r&&null==d?r:d,r="object"==typeof r?r:{},d!=te)(I=(F=this.series[d]).shadowCanvas._ctx).clearRect(0,0,I.canvas.width,I.canvas.height),F.drawShadow(I,r,this),(I=F.canvas._ctx).clearRect(0,0,I.canvas.width,I.canvas.height),F.draw(I,r,this),F.renderer.constructor==i.jqplot.BezierCurveRenderer&&d<this.series.length-1&&this.drawSeries(d+1);else for(E=0;E<this.series.length;E++)(I=(F=this.series[E]).shadowCanvas._ctx).clearRect(0,0,I.canvas.width,I.canvas.height),F.drawShadow(I,r,this),(I=F.canvas._ctx).clearRect(0,0,I.canvas.width,I.canvas.height),F.draw(I,r,this);r=d=E=F=I=null},this.moveSeriesToFront=function(r){r=parseInt(r,10);var d=i.inArray(r,this.seriesStack);if(-1!=d){if(d==this.seriesStack.length-1)return void(this.previousSeriesStack=this.seriesStack.slice(0));var E=this.seriesStack[this.seriesStack.length-1],F=this.series[r].canvas._elem.detach(),I=this.series[r].shadowCanvas._elem.detach();this.series[E].shadowCanvas._elem.after(I),this.series[E].canvas._elem.after(F),this.previousSeriesStack=this.seriesStack.slice(0),this.seriesStack.splice(d,1),this.seriesStack.push(r)}},this.moveSeriesToBack=function(r){r=parseInt(r,10);var d=i.inArray(r,this.seriesStack);if(0!=d&&-1!=d){var E=this.seriesStack[0],F=this.series[r].canvas._elem.detach(),I=this.series[r].shadowCanvas._elem.detach();this.series[E].shadowCanvas._elem.before(I),this.series[E].canvas._elem.before(F),this.previousSeriesStack=this.seriesStack.slice(0),this.seriesStack.splice(d,1),this.seriesStack.unshift(r)}},this.restorePreviousSeriesOrder=function(){var r,d,E,F,I,Y;if(this.seriesStack!=this.previousSeriesStack){for(r=1;r<this.previousSeriesStack.length;r++)Y=this.previousSeriesStack[r-1],d=this.series[I=this.previousSeriesStack[r]].canvas._elem.detach(),E=this.series[I].shadowCanvas._elem.detach(),this.series[Y].shadowCanvas._elem.after(E),this.series[Y].canvas._elem.after(d);F=this.seriesStack.slice(0),this.seriesStack=this.previousSeriesStack.slice(0),this.previousSeriesStack=F}},this.restoreOriginalSeriesOrder=function(){var r,d,E,F=[];for(r=0;r<this.series.length;r++)F.push(r);if(this.seriesStack!=F)for(this.previousSeriesStack=this.seriesStack.slice(0),this.seriesStack=F,r=1;r<this.seriesStack.length;r++)d=this.series[r].canvas._elem.detach(),E=this.series[r].shadowCanvas._elem.detach(),this.series[r-1].shadowCanvas._elem.after(E),this.series[r-1].canvas._elem.after(d)},this.activateTheme=function(r){this.themeEngine.activate(this,r)}}function k(a,h){return(3.4182054+h)*Math.pow(a,-.3534992)}function p(a){return(Math.exp(2*a)-1)/(Math.exp(2*a)+1)}function m(a){function h(gt,vt){return gt-vt==0?Math.pow(10,10):gt-vt}var F,n=this.renderer.smooth,r=this.canvas.getWidth(),d=this._xaxis.series_p2u,E=this._yaxis.series_p2u,I=a.length/r,Y=[],V=[];F=isNaN(parseFloat(n))?k(I,.5):parseFloat(n);for(var ie=[],re=[],he=0,be=a.length;be>he;he++)ie.push(a[he][1]),re.push(a[he][0]);for(var qe,Ee,je,Ke,Ie=a.length-1,Ne=1,We=a.length;We>Ne;Ne++){for(var $e=[],Qe=[],rt=0;2>rt;rt++)$e[rt]=0==(he=Ne-1+rt)||he==Ie?Math.pow(10,10):ie[he+1]-ie[he]==0||ie[he]-ie[he-1]==0||(re[he+1]-re[he])/(ie[he+1]-ie[he])+(re[he]-re[he-1])/(ie[he]-ie[he-1])==0||(ie[he+1]-ie[he])*(ie[he]-ie[he-1])<0?0:2/(h(re[he+1],re[he])/(ie[he+1]-ie[he])+h(re[he],re[he-1])/(ie[he]-ie[he-1]));1==Ne?$e[0]=1.5*(ie[1]-ie[0])/h(re[1],re[0])-$e[1]/2:Ne==Ie&&($e[1]=1.5*(ie[Ie]-ie[Ie-1])/h(re[Ie],re[Ie-1])-$e[0]/2),Qe[0]=-2*($e[1]+2*$e[0])/h(re[Ne],re[Ne-1])+6*(ie[Ne]-ie[Ne-1])/Math.pow(h(re[Ne],re[Ne-1]),2),Qe[1]=2*(2*$e[1]+$e[0])/h(re[Ne],re[Ne-1])-6*(ie[Ne]-ie[Ne-1])/Math.pow(h(re[Ne],re[Ne-1]),2),Ke=1/6*(Qe[1]-Qe[0])/h(re[Ne],re[Ne-1]),je=.5*(re[Ne]*Qe[0]-re[Ne-1]*Qe[1])/h(re[Ne],re[Ne-1]),Ee=(ie[Ne]-ie[Ne-1]-je*(Math.pow(re[Ne],2)-Math.pow(re[Ne-1],2))-Ke*(Math.pow(re[Ne],3)-Math.pow(re[Ne-1],3)))/h(re[Ne],re[Ne-1]),qe=ie[Ne-1]-Ee*re[Ne-1]-je*Math.pow(re[Ne-1],2)-Ke*Math.pow(re[Ne-1],3);var dt,ut,ft=(re[Ne]-re[Ne-1])/F;for(rt=0,be=F;be>rt;rt++)(dt=[]).push(ut=re[Ne-1]+rt*ft),dt.push(qe+Ee*ut+je*Math.pow(ut,2)+Ke*Math.pow(ut,3)),Y.push(dt),V.push([d(dt[0]),E(dt[1])])}return Y.push(a[he]),V.push([d(a[he][0]),E(a[he][1])]),[Y,V]}function v(a){var h,n,r,d,E,F,I,Y,V,ie,re,he,dt,Ne=this.renderer.smooth,We=this.renderer.tension,$e=this.canvas.getWidth(),Qe=this._xaxis.series_p2u,rt=this._yaxis.series_p2u,ut=null,ft=null,bt=null,Bt=a.length/$e,yt=[],At=[];dt=isNaN(parseFloat(Ne))?k(Bt,.5):parseFloat(Ne),isNaN(parseFloat(We))||(We=parseFloat(We));for(var wt=0,Rt=a.length-1;Rt>wt;wt++)for(null===We?(ft=.15*p(Math.abs((a[wt+1][1]-a[wt][1])/(a[wt+1][0]-a[wt][0]))/2.5-1.4)-.15*p(-1.4)+.3,wt>0&&(bt=Math.abs((a[wt][1]-a[wt-1][1])/(a[wt][0]-a[wt-1][0]))),ut=(ft+(.15*p(bt/2.5-1.4)-.15*p(-1.4)+.3))/2):ut=We,h=0;dt>h;h++)r=(1+2*(n=h/dt))*Math.pow(1-n,2),d=n*Math.pow(1-n,2),E=Math.pow(n,2)*(3-2*n),F=Math.pow(n,2)*(n-1),a[wt-1]?(I=ut*(a[wt+1][0]-a[wt-1][0]),Y=ut*(a[wt+1][1]-a[wt-1][1])):(I=ut*(a[wt+1][0]-a[wt][0]),Y=ut*(a[wt+1][1]-a[wt][1])),a[wt+2]?(V=ut*(a[wt+2][0]-a[wt][0]),ie=ut*(a[wt+2][1]-a[wt][1])):(V=ut*(a[wt+1][0]-a[wt][0]),ie=ut*(a[wt+1][1]-a[wt][1])),yt.push([re=r*a[wt][0]+E*a[wt+1][0]+d*I+F*V,he=r*a[wt][1]+E*a[wt+1][1]+d*Y+F*ie]),At.push([Qe(re),rt(he)]);return yt.push(a[Rt]),At.push([Qe(a[Rt][0]),rt(a[Rt][1])]),[yt,At]}function u(a,h,n){for(var r=0;r<this.series.length;r++)this.series[r].renderer.constructor==i.jqplot.LineRenderer&&this.series[r].highlightMouseOver&&(this.series[r].highlightMouseDown=!1)}function C(){this.plugins.lineRenderer&&this.plugins.lineRenderer.highlightCanvas&&(this.plugins.lineRenderer.highlightCanvas.resetCanvas(),this.plugins.lineRenderer.highlightCanvas=null),this.plugins.lineRenderer.highlightedSeriesIndex=null,this.plugins.lineRenderer.highlightCanvas=new i.jqplot.GenericCanvas,this.eventCanvas._elem.before(this.plugins.lineRenderer.highlightCanvas.createElement(this._gridPadding,"jqplot-lineRenderer-highlight-canvas",this._plotDimensions,this)),this.plugins.lineRenderer.highlightCanvas.setContext(),this.eventCanvas._elem.bind("mouseleave",{plot:this},function(a){M(a.data.plot)})}function T(a,h,n,r){var d=a.series[h],E=a.plugins.lineRenderer.highlightCanvas;E._ctx.clearRect(0,0,E._ctx.canvas.width,E._ctx.canvas.height),d._highlightedPoint=n,a.plugins.lineRenderer.highlightedSeriesIndex=h;var F={fillStyle:d.highlightColor};"line"===d.type&&d.renderer.bands.show&&(F.fill=!0,F.closePath=!0),d.renderer.shapeRenderer.draw(E._ctx,r,F),E=null}function M(a){var h=a.plugins.lineRenderer.highlightCanvas;h._ctx.clearRect(0,0,h._ctx.canvas.width,h._ctx.canvas.height);for(var n=0;n<a.series.length;n++)a.series[n]._highlightedPoint=null;a.plugins.lineRenderer.highlightedSeriesIndex=null,a.target.trigger("jqplotDataUnhighlight"),h=null}function O(a,h,n,r,d){if(r){var E=[r.seriesIndex,r.pointIndex,r.data],F=jQuery.Event("jqplotDataMouseOver");if(F.pageX=a.pageX,F.pageY=a.pageY,d.target.trigger(F,E),d.series[E[0]].highlightMouseOver&&E[0]!=d.plugins.lineRenderer.highlightedSeriesIndex){var I=jQuery.Event("jqplotDataHighlight");I.which=a.which,I.pageX=a.pageX,I.pageY=a.pageY,d.target.trigger(I,E),T(d,r.seriesIndex,r.pointIndex,r.points)}}else null==r&&M(d)}function b(a,h,n,r,d){if(r){var E=[r.seriesIndex,r.pointIndex,r.data];if(d.series[E[0]].highlightMouseDown&&E[0]!=d.plugins.lineRenderer.highlightedSeriesIndex){var F=jQuery.Event("jqplotDataHighlight");F.which=a.which,F.pageX=a.pageX,F.pageY=a.pageY,d.target.trigger(F,E),T(d,r.seriesIndex,r.pointIndex,r.points)}}else null==r&&M(d)}function A(a,h,n,r,d){var E=d.plugins.lineRenderer.highlightedSeriesIndex;null!=E&&d.series[E].highlightMouseDown&&M(d)}function c(a,h,n,r,d){if(r){var E=[r.seriesIndex,r.pointIndex,r.data],F=jQuery.Event("jqplotDataClick");F.which=a.which,F.pageX=a.pageX,F.pageY=a.pageY,d.target.trigger(F,E)}}function P(a,h,n,r,d){if(r){var E=[r.seriesIndex,r.pointIndex,r.data],F=d.plugins.lineRenderer.highlightedSeriesIndex;null!=F&&d.series[F].highlightMouseDown&&M(d);var I=jQuery.Event("jqplotDataRightClick");I.which=a.which,I.pageX=a.pageX,I.pageY=a.pageY,d.target.trigger(I,E)}}function B(a){return(a=Math.abs(a))>=10?"%d":a>1?a===parseInt(a,10)?"%d":"%.1f":"%."+-Math.floor(Math.log(a)/Math.LN10)+"f"}function o(a,h){var r=a/((h=h||7)-1),d=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),E=r/d;return 1>d?E>5?10*d:E>2?5*d:E>1?2*d:d:E>5?10*d:E>4?5*d:E>3?4*d:E>2?3*d:E>1?2*d:d}function y(a,h){h=h||1;var r=Math.floor(Math.log(a)/Math.LN10),d=Math.pow(10,r),E=a/d;return(.38>=(E/=h)?.1:1.6>=E?.2:4>=E?.5:8>=E?1:16>=E?2:5)*d}function R(a,h){return a-h}function N(a){if(null==a||"object"!=typeof a)return a;var h=new a.constructor;for(var n in a)h[n]=N(a[n]);return h}function W(a,h){if(null!=h&&"object"==typeof h)for(var n in h)"highlightColors"==n&&(a[n]=N(h[n])),null!=h[n]&&"object"==typeof h[n]?(a.hasOwnProperty(n)||(a[n]={}),W(a[n],h[n])):a[n]=h[n]}function G(a,h){if(h.indexOf)return h.indexOf(a);for(var n=0,r=h.length;r>n;n++)if(h[n]===a)return n;return-1}function ne(a){return null===a?"[object Null]":Object.prototype.toString.call(a)}function Z(a,h,n,r){return i.isPlainObject(a)||(a={effect:a},h===te&&(h={}),i.isFunction(h)&&(r=h,n=null,h={}),("number"===i.type(h)||i.fx.speeds[h])&&(r=n,n=h,h={}),i.isFunction(n)&&(r=n,n=null),h&&i.extend(a,h),n=n||h.duration,a.duration=i.fx.off?0:"number"==typeof n?n:n in i.fx.speeds?i.fx.speeds[n]:i.fx.speeds._default,a.complete=r||h.complete),a}var te;i.fn.emptyForce=function(){for(var a,h=0;null!=(a=i(this)[h]);h++){if(1===a.nodeType&&i.cleanData(a.getElementsByTagName("*")),i.jqplot.use_excanvas)a.outerHTML="";else for(;a.firstChild;)a.removeChild(a.firstChild);a=null}return i(this)},i.fn.removeChildForce=function(a){for(;a.firstChild;)this.removeChildForce(a.firstChild),a.removeChild(a.firstChild)},i.fn.jqplot=function(){for(var a=[],h=[],n=0,r=arguments.length;r>n;n++)i.isArray(arguments[n])?a.push(arguments[n]):i.isPlainObject(arguments[n])&&h.push(arguments[n]);return this.each(function(d){var E,F,I,Y,V=i(this),ie=a.length,re=h.length;I=ie>d?a[d]:ie?a[ie-1]:null,Y=re>d?h[d]:re?h[re-1]:null,(E=V.attr("id"))===te&&(E="jqplot_target_"+i.jqplot.targetCounter++,V.attr("id",E)),F=i.jqplot(E,I,Y),V.data("jqplot",F)})},i.jqplot=function(a,h,n){var r=null,d=null;3===arguments.length?(r=h,d=n):2===arguments.length&&(i.isArray(h)?r=h:i.isPlainObject(h)&&(d=h)),null===r&&null!==d&&d.data&&(r=d.data);var E=new w;if(i("#"+a).removeClass("jqplot-error"),!i.jqplot.config.catchErrors)return E.init(a,r,d),E.draw(),E.themeEngine.init.call(E),E;try{return E.init(a,r,d),E.draw(),E.themeEngine.init.call(E),E}catch(I){var F=i.jqplot.config.errorMessage||I.message;i("#"+a).append('<div class="jqplot-error-message">'+F+"</div>"),i("#"+a).addClass("jqplot-error"),document.getElementById(a).style.background=i.jqplot.config.errorBackground,document.getElementById(a).style.border=i.jqplot.config.errorBorder,document.getElementById(a).style.fontFamily=i.jqplot.config.errorFontFamily,document.getElementById(a).style.fontSize=i.jqplot.config.errorFontSize,document.getElementById(a).style.fontStyle=i.jqplot.config.errorFontStyle,document.getElementById(a).style.fontWeight=i.jqplot.config.errorFontWeight}},i.jqplot.version="1.0.9",i.jqplot.revision="d96a669",i.jqplot.targetCounter=1,i.jqplot.CanvasManager=function(){void 0===i.jqplot.CanvasManager.canvases&&(i.jqplot.CanvasManager.canvases=[],i.jqplot.CanvasManager.free=[]);var a=[];this.getCanvas=function(){var h,n=!0;if(!i.jqplot.use_excanvas)for(var r=0,d=i.jqplot.CanvasManager.canvases.length;d>r;r++)if(!0===i.jqplot.CanvasManager.free[r]){n=!1,h=i.jqplot.CanvasManager.canvases[r],i.jqplot.CanvasManager.free[r]=!1,a.push(r);break}return n&&(h=document.createElement("canvas"),a.push(i.jqplot.CanvasManager.canvases.length),i.jqplot.CanvasManager.canvases.push(h),i.jqplot.CanvasManager.free.push(!1)),h},this.initCanvas=function(h){if(i.jqplot.use_excanvas)return window.G_vmlCanvasManager.initElement(h);var n=h.getContext("2d"),r=1;window.devicePixelRatio>1&&(n.webkitBackingStorePixelRatio===te||n.webkitBackingStorePixelRatio<2)&&(r=window.devicePixelRatio);var d=h.width,E=h.height;return h.width=r*h.width,h.height=r*h.height,h.style.width=d+"px",h.style.height=E+"px",n.save(),n.scale(r,r),h},this.freeAllCanvases=function(){for(var h=0,n=a.length;n>h;h++)this.freeCanvas(a[h]);a=[]},this.freeCanvas=function(h){if(i.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==te)window.G_vmlCanvasManager.uninitElement(i.jqplot.CanvasManager.canvases[h]),i.jqplot.CanvasManager.canvases[h]=null;else{var n=i.jqplot.CanvasManager.canvases[h];n.getContext("2d").clearRect(0,0,n.width,n.height),i(n).unbind().removeAttr("class").removeAttr("style"),i(n).css({left:"",top:"",position:""}),n.width=0,n.height=0,i.jqplot.CanvasManager.free[h]=!0}}},i.jqplot.log=function(){window.console&&window.console.log.apply(window.console,arguments)},i.jqplot.config={addDomReference:!1,enablePlugins:!1,defaultHeight:300,defaultWidth:400,UTCAdjust:!1,timezoneOffset:new Date(6e4*(new Date).getTimezoneOffset()),errorMessage:"",errorBackground:"",errorBorder:"",errorFontFamily:"",errorFontSize:"",errorFontStyle:"",errorFontWeight:"",catchErrors:!1,defaultTickFormatString:"%.1f",defaultColors:["#4bb2c5","#EAA228","#c5b47f","#579575","#839557","#958c12","#953579","#4b5de4","#d8b83f","#ff5800","#0085cc","#c747a3","#cddf54","#FBD178","#26B4E3","#bd70c7"],defaultNegativeColors:["#498991","#C08840","#9F9274","#546D61","#646C4A","#6F6621","#6E3F5F","#4F64B0","#A89050","#C45923","#187399","#945381","#959E5C","#C7AF7B","#478396","#907294"],dashLength:4,gapLength:4,dotGapLength:2.5,srcLocation:"jqplot/src/",pluginLocation:"jqplot/src/plugins/"},i.jqplot.arrayMax=function(a){return Math.max.apply(Math,a)},i.jqplot.arrayMin=function(a){return Math.min.apply(Math,a)},i.jqplot.enablePlugins=i.jqplot.config.enablePlugins,i.jqplot.support_canvas=function(){return void 0===i.jqplot.support_canvas.result&&(i.jqplot.support_canvas.result=!!document.createElement("canvas").getContext),i.jqplot.support_canvas.result},i.jqplot.support_canvas_text=function(){return void 0===i.jqplot.support_canvas_text.result&&(i.jqplot.support_canvas_text.result=window.G_vmlCanvasManager!==te&&window.G_vmlCanvasManager._version>887||!(!document.createElement("canvas").getContext||"function"!=typeof document.createElement("canvas").getContext("2d").fillText)),i.jqplot.support_canvas_text.result},i.jqplot.use_excanvas=!(i.support.boxModel&&i.support.objectAll&&$support.leadingWhitespace||i.jqplot.support_canvas()),i.jqplot.preInitHooks=[],i.jqplot.postInitHooks=[],i.jqplot.preParseOptionsHooks=[],i.jqplot.postParseOptionsHooks=[],i.jqplot.preDrawHooks=[],i.jqplot.postDrawHooks=[],i.jqplot.preDrawSeriesHooks=[],i.jqplot.postDrawSeriesHooks=[],i.jqplot.preDrawLegendHooks=[],i.jqplot.addLegendRowHooks=[],i.jqplot.preSeriesInitHooks=[],i.jqplot.postSeriesInitHooks=[],i.jqplot.preParseSeriesOptionsHooks=[],i.jqplot.postParseSeriesOptionsHooks=[],i.jqplot.eventListenerHooks=[],i.jqplot.preDrawSeriesShadowHooks=[],i.jqplot.postDrawSeriesShadowHooks=[],i.jqplot.ElemContainer=function(){this._plotDimensions={height:null,width:null}},i.jqplot.ElemContainer.prototype.createElement=function(a,h,n,r,d){this._offsets=h;var E=n||"jqplot",F=document.createElement(a);return this._elem=i(F),this._elem.addClass(E),this._elem.css(r),this._elem.attr(d),F=null,this._elem},i.jqplot.ElemContainer.prototype.getWidth=function(){return this._elem?this._elem.outerWidth(!0):null},i.jqplot.ElemContainer.prototype.getHeight=function(){return this._elem?this._elem.outerHeight(!0):null},i.jqplot.ElemContainer.prototype.getPosition=function(){return this._elem?this._elem.position():{top:null,left:null,bottom:null,right:null}},i.jqplot.ElemContainer.prototype.getTop=function(){return this.getPosition().top},i.jqplot.ElemContainer.prototype.getLeft=function(){return this.getPosition().left},i.jqplot.ElemContainer.prototype.getBottom=function(){return this._elem.css("bottom")},i.jqplot.ElemContainer.prototype.getRight=function(){return this._elem.css("right")},(f.prototype=new i.jqplot.ElemContainer).constructor=f,f.prototype.init=function(){i.isFunction(this.renderer)&&(this.renderer=new this.renderer),this.tickOptions.axis=this.name,null==this.tickOptions.showMark&&(this.tickOptions.showMark=this.showTicks),null==this.tickOptions.showMark&&(this.tickOptions.showMark=this.showTickMarks),null==this.tickOptions.showLabel&&(this.tickOptions.showLabel=this.showTicks),null==this.label||""==this.label?this.showLabel=!1:this.labelOptions.label=this.label,0==this.showLabel&&(this.labelOptions.show=!1),0==this.pad&&(this.pad=1),0==this.padMax&&(this.padMax=1),0==this.padMin&&(this.padMin=1),null==this.padMax&&(this.padMax=(this.pad-1)/2+1),null==this.padMin&&(this.padMin=(this.pad-1)/2+1),this.pad=this.padMax+this.padMin-1,(null!=this.min||null!=this.max)&&(this.autoscale=!1),null==this.syncTicks&&this.name.indexOf("y")>-1?this.syncTicks=!0:null==this.syncTicks&&(this.syncTicks=!1),this.renderer.init.call(this,this.rendererOptions)},f.prototype.draw=function(a,h){return this.__ticks&&(this.__ticks=null),this.renderer.draw.call(this,a,h)},f.prototype.set=function(){this.renderer.set.call(this)},f.prototype.pack=function(a,h){this.show&&this.renderer.pack.call(this,a,h),null==this._min&&(this._min=this.min,this._max=this.max,this._tickInterval=this.tickInterval,this._numberTicks=this.numberTicks,this.__ticks=this._ticks)},f.prototype.reset=function(){this.renderer.reset.call(this)},f.prototype.resetScale=function(a){i.extend(!0,this,{min:null,max:null,numberTicks:null,tickInterval:null,_ticks:[],ticks:[]},a),this.resetDataBounds()},f.prototype.resetDataBounds=function(){var a=this._dataBounds;a.min=null,a.max=null;for(var n,r,d=!!this.show,E=0;E<this._series.length;E++)if((n=this._series[E]).show||this.scaleToHiddenSeries){r=n._plotData,"line"===n._type&&n.renderer.bands.show&&"x"!==this.name.charAt(0)&&(r=[[0,n.renderer.bands._min],[1,n.renderer.bands._max]]);var F=1,I=1;null!=n._type&&"ohlc"==n._type&&(F=3,I=2);for(var Y=0,h=r.length;h>Y;Y++)"xaxis"==this.name||"x2axis"==this.name?((null!=r[Y][0]&&r[Y][0]<a.min||null==a.min)&&(a.min=r[Y][0]),(null!=r[Y][0]&&r[Y][0]>a.max||null==a.max)&&(a.max=r[Y][0])):((null!=r[Y][F]&&r[Y][F]<a.min||null==a.min)&&(a.min=r[Y][F]),(null!=r[Y][I]&&r[Y][I]>a.max||null==a.max)&&(a.max=r[Y][I]));d&&n.renderer.constructor!==i.jqplot.BarRenderer||d&&this._options.hasOwnProperty("forceTickAt0")&&0==this._options.forceTickAt0?d=!1:d&&n.renderer.constructor===i.jqplot.BarRenderer&&("vertical"==n.barDirection&&"xaxis"!=this.name&&"x2axis"!=this.name?(null!=this._options.pad||null!=this._options.padMin)&&(d=!1):"horizontal"!=n.barDirection||"xaxis"!=this.name&&"x2axis"!=this.name||(null!=this._options.pad||null!=this._options.padMin)&&(d=!1))}d&&this.renderer.constructor===i.jqplot.LinearAxisRenderer&&a.min>=0&&(this.padMin=1,this.forceTickAt0=!0)},(g.prototype=new i.jqplot.ElemContainer).constructor=g,g.prototype.setOptions=function(a){if(i.extend(!0,this,a),"inside"==this.placement&&(this.placement="insideGrid"),this.xoffset>0){if("insideGrid"==this.placement)switch(this.location){case"nw":case"w":case"sw":null==this.marginLeft&&(this.marginLeft=this.xoffset+"px"),this.marginRight="0px";break;default:null==this.marginRight&&(this.marginRight=this.xoffset+"px"),this.marginLeft="0px"}else if("outside"==this.placement)switch(this.location){case"nw":case"w":case"sw":null==this.marginRight&&(this.marginRight=this.xoffset+"px"),this.marginLeft="0px";break;default:null==this.marginLeft&&(this.marginLeft=this.xoffset+"px"),this.marginRight="0px"}this.xoffset=0}if(this.yoffset>0){if("outside"==this.placement)switch(this.location){case"sw":case"s":case"se":null==this.marginTop&&(this.marginTop=this.yoffset+"px"),this.marginBottom="0px";break;default:null==this.marginBottom&&(this.marginBottom=this.yoffset+"px"),this.marginTop="0px"}else if("insideGrid"==this.placement)switch(this.location){case"sw":case"s":case"se":null==this.marginBottom&&(this.marginBottom=this.yoffset+"px"),this.marginTop="0px";break;default:null==this.marginTop&&(this.marginTop=this.yoffset+"px"),this.marginBottom="0px"}this.yoffset=0}},g.prototype.init=function(){i.isFunction(this.renderer)&&(this.renderer=new this.renderer),this.renderer.init.call(this,this.rendererOptions)},g.prototype.draw=function(a,h){for(var n=0;n<i.jqplot.preDrawLegendHooks.length;n++)i.jqplot.preDrawLegendHooks[n].call(this,a);return this.renderer.draw.call(this,a,h)},g.prototype.pack=function(a){this.renderer.pack.call(this,a)},(j.prototype=new i.jqplot.ElemContainer).constructor=j,j.prototype.init=function(){i.isFunction(this.renderer)&&(this.renderer=new this.renderer),this.renderer.init.call(this,this.rendererOptions)},j.prototype.draw=function(a){return this.renderer.draw.call(this,a)},j.prototype.pack=function(){this.renderer.pack.call(this)},(l.prototype=new i.jqplot.ElemContainer).constructor=l,l.prototype.init=function(a,h,n){this.index=a,this.gridBorderWidth=h;var r,d,E=this.data,F=[];for(r=0,d=E.length;d>r;r++)if(this.breakOnNull)F.push(E[r]);else{if(null==E[r]||null==E[r][0]||null==E[r][1])continue;F.push(E[r])}if(this.data=F,this.color||(this.color=n.colorGenerator.get(this.index)),this.negativeColor||(this.negativeColor=n.negativeColorGenerator.get(this.index)),this.fillColor||(this.fillColor=this.color),this.fillAlpha){var I=i.jqplot.normalize2rgb(this.fillColor);I=i.jqplot.getColorComponents(I),this.fillColor="rgba("+I[0]+","+I[1]+","+I[2]+","+this.fillAlpha+")"}i.isFunction(this.renderer)&&(this.renderer=new this.renderer),this.renderer.init.call(this,this.rendererOptions,n),this.markerRenderer=new this.markerRenderer,this.markerOptions.color||(this.markerOptions.color=this.color),null==this.markerOptions.show&&(this.markerOptions.show=this.showMarker),this.showMarker=this.markerOptions.show,this.markerRenderer.init(this.markerOptions)},l.prototype.draw=function(a,h,n){var d,E,F,r=h==te?{}:h;for(a=a==te?this.canvas._ctx:a,d=0;d<i.jqplot.preDrawSeriesHooks.length;d++)i.jqplot.preDrawSeriesHooks[d].call(this,a,r);for(this.show&&(this.renderer.setGridData.call(this,n),r.preventJqPlotSeriesDrawTrigger||i(a.canvas).trigger("jqplotSeriesDraw",[this.data,this.gridData]),E=[],E=r.data?r.data:this._stack?this._plotData:this.data,F=r.gridData||this.renderer.makeGridData.call(this,E,n),"line"===this._type&&this.renderer.smooth&&this.renderer._smoothedData.length&&(F=this.renderer._smoothedData),this.renderer.draw.call(this,a,F,r,n)),d=0;d<i.jqplot.postDrawSeriesHooks.length;d++)i.jqplot.postDrawSeriesHooks[d].call(this,a,r,n);a=h=n=d=E=F=null},l.prototype.drawShadow=function(a,h,n){var d,E,F,r=h==te?{}:h;for(a=a==te?this.shadowCanvas._ctx:a,d=0;d<i.jqplot.preDrawSeriesShadowHooks.length;d++)i.jqplot.preDrawSeriesShadowHooks[d].call(this,a,r);for(this.shadow&&(this.renderer.setGridData.call(this,n),E=[],E=r.data?r.data:this._stack?this._plotData:this.data,F=r.gridData||this.renderer.makeGridData.call(this,E,n),this.renderer.drawShadow.call(this,a,F,r,n)),d=0;d<i.jqplot.postDrawSeriesShadowHooks.length;d++)i.jqplot.postDrawSeriesShadowHooks[d].call(this,a,r);a=h=n=d=E=F=null},l.prototype.toggleDisplay=function(a,h){var n,r;n=a.data.series?a.data.series:this,a.data.speed&&(r=a.data.speed),r?n.canvas._elem.is(":hidden")||!n.show?(n.show=!0,n.canvas._elem.removeClass("jqplot-series-hidden"),n.shadowCanvas._elem&&n.shadowCanvas._elem.fadeIn(r),n.canvas._elem.fadeIn(r,h),n.canvas._elem.nextAll(".jqplot-point-label.jqplot-series-"+n.index).fadeIn(r)):(n.show=!1,n.canvas._elem.addClass("jqplot-series-hidden"),n.shadowCanvas._elem&&n.shadowCanvas._elem.fadeOut(r),n.canvas._elem.fadeOut(r,h),n.canvas._elem.nextAll(".jqplot-point-label.jqplot-series-"+n.index).fadeOut(r)):n.canvas._elem.is(":hidden")||!n.show?(n.show=!0,n.canvas._elem.removeClass("jqplot-series-hidden"),n.shadowCanvas._elem&&n.shadowCanvas._elem.show(),n.canvas._elem.show(0,h),n.canvas._elem.nextAll(".jqplot-point-label.jqplot-series-"+n.index).show()):(n.show=!1,n.canvas._elem.addClass("jqplot-series-hidden"),n.shadowCanvas._elem&&n.shadowCanvas._elem.hide(),n.canvas._elem.hide(0,h),n.canvas._elem.nextAll(".jqplot-point-label.jqplot-series-"+n.index).hide())},(S.prototype=new i.jqplot.ElemContainer).constructor=S,S.prototype.init=function(){i.isFunction(this.renderer)&&(this.renderer=new this.renderer),this.renderer.init.call(this,this.rendererOptions)},S.prototype.createElement=function(a,h){return this._offsets=a,this.renderer.createElement.call(this,h)},S.prototype.draw=function(){this.renderer.draw.call(this)},i.jqplot.GenericCanvas=function(){i.jqplot.ElemContainer.call(this)},i.jqplot.GenericCanvas.prototype=new i.jqplot.ElemContainer,i.jqplot.GenericCanvas.prototype.constructor=i.jqplot.GenericCanvas,i.jqplot.GenericCanvas.prototype.createElement=function(a,h,n,r){this._offsets=a;var E,d="jqplot";return h!=te&&(d=h),E=r.canvasManager.getCanvas(),null!=n&&(this._plotDimensions=n),E.width=this._plotDimensions.width-this._offsets.left-this._offsets.right,E.height=this._plotDimensions.height-this._offsets.top-this._offsets.bottom,this._elem=i(E),this._elem.css({position:"absolute",left:this._offsets.left,top:this._offsets.top}),this._elem.addClass(d),E=r.canvasManager.initCanvas(E),E=null,this._elem},i.jqplot.GenericCanvas.prototype.setContext=function(){return this._ctx=this._elem.get(0).getContext("2d"),this._ctx},i.jqplot.GenericCanvas.prototype.resetCanvas=function(){this._elem&&(i.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==te&&window.G_vmlCanvasManager.uninitElement(this._elem.get(0)),this._elem.emptyForce()),this._ctx=null},i.jqplot.HooksManager=function(){this.hooks=[],this.args=[]},i.jqplot.HooksManager.prototype.addOnce=function(a,h){h=h||[];for(var n=!1,r=0,d=this.hooks.length;d>r;r++)this.hooks[r]==a&&(n=!0);n||(this.hooks.push(a),this.args.push(h))},i.jqplot.HooksManager.prototype.add=function(a,h){h=h||[],this.hooks.push(a),this.args.push(h)},i.jqplot.EventListenerManager=function(){this.hooks=[]},i.jqplot.EventListenerManager.prototype.addOnce=function(a,h){for(var n,r=!1,d=0,E=this.hooks.length;E>d;d++)(n=this.hooks[d])[0]==a&&n[1]==h&&(r=!0);r||this.hooks.push([a,h])},i.jqplot.EventListenerManager.prototype.add=function(a,h){this.hooks.push([a,h])};var ge=["yMidAxis","xaxis","yaxis","x2axis","y2axis","y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis"];i.jqplot.computeHighlightColors=function(a){var h;if(i.isArray(a)){h=[];for(var n=0;n<a.length;n++){for(var E=(d=[(r=i.jqplot.getColorComponents(a[n]))[0],r[1],r[2]])[0]+d[1]+d[2],F=0;3>F;F++)d[F]=E>660?.85*d[F]:.73*d[F]+90,d[F]=parseInt(d[F],10);d[3]=.3+.35*r[3],h.push("rgba("+d[0]+","+d[1]+","+d[2]+","+d[3]+")")}}else{var r,d;for(E=(d=[(r=i.jqplot.getColorComponents(a))[0],r[1],r[2]])[0]+d[1]+d[2],F=0;3>F;F++)d[F]=E>660?.85*d[F]:.73*d[F]+90,d[F]=parseInt(d[F],10);d[3]=.3+.35*r[3],h="rgba("+d[0]+","+d[1]+","+d[2]+","+d[3]+")"}return h},i.jqplot.ColorGenerator=function(a){a=a||i.jqplot.config.defaultColors;var h=0;this.next=function(){return h<a.length||(h=0),a[h++]},this.previous=function(){return h>0?a[h--]:a[h=a.length-1]},this.get=function(n){var r=n-a.length*Math.floor(n/a.length);return a[r]},this.setColors=function(n){a=n},this.reset=function(){h=0},this.getIndex=function(){return h},this.setIndex=function(n){h=n}},i.jqplot.hex2rgb=function(a,h){var n;return 3==(a=a.replace("#","")).length&&(a=a.charAt(0)+a.charAt(0)+a.charAt(1)+a.charAt(1)+a.charAt(2)+a.charAt(2)),n="rgba("+parseInt(a.slice(0,2),16)+", "+parseInt(a.slice(2,4),16)+", "+parseInt(a.slice(4,6),16),h&&(n+=", "+h),n+")"},i.jqplot.rgb2hex=function(a){for(var n=a.match(/rgba?\( *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *(?:, *[0-9.]*)?\)/),r="#",d=1;4>d;d++){var E;-1!=n[d].search(/%/)?1==(E=parseInt(255*n[d]/100,10).toString(16)).length&&(E="0"+E):1==(E=parseInt(n[d],10).toString(16)).length&&(E="0"+E),r+=E}return r},i.jqplot.normalize2rgb=function(a,h){if(-1!=a.search(/^ *rgba?\(/))return a;if(-1!=a.search(/^ *#?[0-9a-fA-F]?[0-9a-fA-F]/))return i.jqplot.hex2rgb(a,h);throw new Error("Invalid color spec")},i.jqplot.getColorComponents=function(a){for(var r=i.jqplot.normalize2rgb(a=i.jqplot.colorKeywordMap[a]||a).match(/rgba?\( *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *,? *([0-9.]* *)?\)/),d=[],E=1;4>E;E++)d[E-1]=-1!=r[E].search(/%/)?parseInt(255*r[E]/100,10):parseInt(r[E],10);return d[3]=parseFloat(r[4])?parseFloat(r[4]):1,d},i.jqplot.colorKeywordMap={aliceblue:"rgb(240, 248, 255)",antiquewhite:"rgb(250, 235, 215)",aqua:"rgb( 0, 255, 255)",aquamarine:"rgb(127, 255, 212)",azure:"rgb(240, 255, 255)",beige:"rgb(245, 245, 220)",bisque:"rgb(255, 228, 196)",black:"rgb( 0, 0, 0)",blanchedalmond:"rgb(255, 235, 205)",blue:"rgb( 0, 0, 255)",blueviolet:"rgb(138, 43, 226)",brown:"rgb(165, 42, 42)",burlywood:"rgb(222, 184, 135)",cadetblue:"rgb( 95, 158, 160)",chartreuse:"rgb(127, 255, 0)",chocolate:"rgb(210, 105, 30)",coral:"rgb(255, 127, 80)",cornflowerblue:"rgb(100, 149, 237)",cornsilk:"rgb(255, 248, 220)",crimson:"rgb(220, 20, 60)",cyan:"rgb( 0, 255, 255)",darkblue:"rgb( 0, 0, 139)",darkcyan:"rgb( 0, 139, 139)",darkgoldenrod:"rgb(184, 134, 11)",darkgray:"rgb(169, 169, 169)",darkgreen:"rgb( 0, 100, 0)",darkgrey:"rgb(169, 169, 169)",darkkhaki:"rgb(189, 183, 107)",darkmagenta:"rgb(139, 0, 139)",darkolivegreen:"rgb( 85, 107, 47)",darkorange:"rgb(255, 140, 0)",darkorchid:"rgb(153, 50, 204)",darkred:"rgb(139, 0, 0)",darksalmon:"rgb(233, 150, 122)",darkseagreen:"rgb(143, 188, 143)",darkslateblue:"rgb( 72, 61, 139)",darkslategray:"rgb( 47, 79, 79)",darkslategrey:"rgb( 47, 79, 79)",darkturquoise:"rgb( 0, 206, 209)",darkviolet:"rgb(148, 0, 211)",deeppink:"rgb(255, 20, 147)",deepskyblue:"rgb( 0, 191, 255)",dimgray:"rgb(105, 105, 105)",dimgrey:"rgb(105, 105, 105)",dodgerblue:"rgb( 30, 144, 255)",firebrick:"rgb(178, 34, 34)",floralwhite:"rgb(255, 250, 240)",forestgreen:"rgb( 34, 139, 34)",fuchsia:"rgb(255, 0, 255)",gainsboro:"rgb(220, 220, 220)",ghostwhite:"rgb(248, 248, 255)",gold:"rgb(255, 215, 0)",goldenrod:"rgb(218, 165, 32)",gray:"rgb(128, 128, 128)",grey:"rgb(128, 128, 128)",green:"rgb( 0, 128, 0)",greenyellow:"rgb(173, 255, 47)",honeydew:"rgb(240, 255, 240)",hotpink:"rgb(255, 105, 180)",indianred:"rgb(205, 92, 92)",indigo:"rgb( 75, 0, 130)",ivory:"rgb(255, 255, 240)",khaki:"rgb(240, 230, 140)",lavender:"rgb(230, 230, 250)",lavenderblush:"rgb(255, 240, 245)",lawngreen:"rgb(124, 252, 0)",lemonchiffon:"rgb(255, 250, 205)",lightblue:"rgb(173, 216, 230)",lightcoral:"rgb(240, 128, 128)",lightcyan:"rgb(224, 255, 255)",lightgoldenrodyellow:"rgb(250, 250, 210)",lightgray:"rgb(211, 211, 211)",lightgreen:"rgb(144, 238, 144)",lightgrey:"rgb(211, 211, 211)",lightpink:"rgb(255, 182, 193)",lightsalmon:"rgb(255, 160, 122)",lightseagreen:"rgb( 32, 178, 170)",lightskyblue:"rgb(135, 206, 250)",lightslategray:"rgb(119, 136, 153)",lightslategrey:"rgb(119, 136, 153)",lightsteelblue:"rgb(176, 196, 222)",lightyellow:"rgb(255, 255, 224)",lime:"rgb( 0, 255, 0)",limegreen:"rgb( 50, 205, 50)",linen:"rgb(250, 240, 230)",magenta:"rgb(255, 0, 255)",maroon:"rgb(128, 0, 0)",mediumaquamarine:"rgb(102, 205, 170)",mediumblue:"rgb( 0, 0, 205)",mediumorchid:"rgb(186, 85, 211)",mediumpurple:"rgb(147, 112, 219)",mediumseagreen:"rgb( 60, 179, 113)",mediumslateblue:"rgb(123, 104, 238)",mediumspringgreen:"rgb( 0, 250, 154)",mediumturquoise:"rgb( 72, 209, 204)",mediumvioletred:"rgb(199, 21, 133)",midnightblue:"rgb( 25, 25, 112)",mintcream:"rgb(245, 255, 250)",mistyrose:"rgb(255, 228, 225)",moccasin:"rgb(255, 228, 181)",navajowhite:"rgb(255, 222, 173)",navy:"rgb( 0, 0, 128)",oldlace:"rgb(253, 245, 230)",olive:"rgb(128, 128, 0)",olivedrab:"rgb(107, 142, 35)",orange:"rgb(255, 165, 0)",orangered:"rgb(255, 69, 0)",orchid:"rgb(218, 112, 214)",palegoldenrod:"rgb(238, 232, 170)",palegreen:"rgb(152, 251, 152)",paleturquoise:"rgb(175, 238, 238)",palevioletred:"rgb(219, 112, 147)",papayawhip:"rgb(255, 239, 213)",peachpuff:"rgb(255, 218, 185)",peru:"rgb(205, 133, 63)",pink:"rgb(255, 192, 203)",plum:"rgb(221, 160, 221)",powderblue:"rgb(176, 224, 230)",purple:"rgb(128, 0, 128)",red:"rgb(255, 0, 0)",rosybrown:"rgb(188, 143, 143)",royalblue:"rgb( 65, 105, 225)",saddlebrown:"rgb(139, 69, 19)",salmon:"rgb(250, 128, 114)",sandybrown:"rgb(244, 164, 96)",seagreen:"rgb( 46, 139, 87)",seashell:"rgb(255, 245, 238)",sienna:"rgb(160, 82, 45)",silver:"rgb(192, 192, 192)",skyblue:"rgb(135, 206, 235)",slateblue:"rgb(106, 90, 205)",slategray:"rgb(112, 128, 144)",slategrey:"rgb(112, 128, 144)",snow:"rgb(255, 250, 250)",springgreen:"rgb( 0, 255, 127)",steelblue:"rgb( 70, 130, 180)",tan:"rgb(210, 180, 140)",teal:"rgb( 0, 128, 128)",thistle:"rgb(216, 191, 216)",tomato:"rgb(255, 99, 71)",turquoise:"rgb( 64, 224, 208)",violet:"rgb(238, 130, 238)",wheat:"rgb(245, 222, 179)",white:"rgb(255, 255, 255)",whitesmoke:"rgb(245, 245, 245)",yellow:"rgb(255, 255, 0)",yellowgreen:"rgb(154, 205, 50)"},i.jqplot.AxisLabelRenderer=function(a){i.jqplot.ElemContainer.call(this),this.show=!0,this.label="",this.fontFamily=null,this.fontSize=null,this.textColor=null,this.escapeHTML=!1,i.extend(!0,this,a)},i.jqplot.AxisLabelRenderer.prototype=new i.jqplot.ElemContainer,i.jqplot.AxisLabelRenderer.prototype.constructor=i.jqplot.AxisLabelRenderer,i.jqplot.AxisLabelRenderer.prototype.init=function(a){i.extend(!0,this,a)},i.jqplot.AxisLabelRenderer.prototype.draw=function(a,h){return this._elem&&(this._elem.emptyForce(),this._elem=null),this._elem=i('<div style="position:absolute;" class="jqplot-'+this.axis+'-label"></div>'),Number(this.label)&&this._elem.css("white-space","nowrap"),this.escapeHTML?this._elem.text(this.label):this._elem.html(this.label),this.fontFamily&&this._elem.css("font-family",this.fontFamily),this.fontSize&&this._elem.css("font-size",this.fontSize),this.textColor&&this._elem.css("color",this.textColor),this._elem},i.jqplot.AxisLabelRenderer.prototype.pack=function(){},i.jqplot.AxisTickRenderer=function(a){i.jqplot.ElemContainer.call(this),this.mark="outside",this.showMark=!0,this.showGridline=!0,this.isMinorTick=!1,this.size=4,this.markSize=6,this.show=!0,this.showLabel=!0,this.label=null,this.value=null,this._styles={},this.formatter=i.jqplot.DefaultTickFormatter,this.prefix="",this.suffix="",this.formatString="",this.escapeHTML=!1,this._breakTick=!1,i.extend(!0,this,a)},i.jqplot.AxisTickRenderer.prototype.init=function(a){i.extend(!0,this,a)},i.jqplot.AxisTickRenderer.prototype=new i.jqplot.ElemContainer,i.jqplot.AxisTickRenderer.prototype.constructor=i.jqplot.AxisTickRenderer,i.jqplot.AxisTickRenderer.prototype.setTick=function(a,h,n){return this.value=a,this.axis=h,n&&(this.isMinorTick=!0),this},i.jqplot.AxisTickRenderer.prototype.draw=function(){null===this.label&&(this.label=this.prefix+this.formatter(this.formatString,this.value)+this.suffix);var a={position:"absolute"};for(var h in Number(this.label)&&(a.whitSpace="nowrap"),this._elem&&(this._elem.emptyForce(),this._elem=null),this._elem=i(document.createElement("div")),this._elem.addClass("jqplot-"+this.axis+"-tick"),this.escapeHTML?this._elem.text(this.label):this._elem.html(this.label),this._elem.css(a),this._styles)this._elem.css(h,this._styles[h]);return this.fontFamily&&this._elem.css("font-family",this.fontFamily),this.fontSize&&this._elem.css("font-size",this.fontSize),this.textColor&&this._elem.css("color",this.textColor),this._breakTick&&this._elem.addClass("jqplot-breakTick"),this._elem},i.jqplot.DefaultTickFormatter=function(a,h){return"number"==typeof h?(a||(a=i.jqplot.config.defaultTickFormatString),i.jqplot.sprintf(a,h)):String(h)},i.jqplot.PercentTickFormatter=function(a,h){return"number"==typeof h?(a||(a=i.jqplot.config.defaultTickFormatString),i.jqplot.sprintf(a,h*=100)):String(h)},i.jqplot.AxisTickRenderer.prototype.pack=function(){},i.jqplot.CanvasGridRenderer=function(){this.shadowRenderer=new i.jqplot.ShadowRenderer},i.jqplot.CanvasGridRenderer.prototype.init=function(a){i.extend(!0,this,a),this.renderer.shadowRenderer.init({lineJoin:"miter",lineCap:"round",fill:!1,isarc:!1,angle:this.shadowAngle,offset:this.shadowOffset,alpha:this.shadowAlpha,depth:this.shadowDepth,lineWidth:this.shadowWidth,closePath:!1,strokeStyle:this.shadowColor})},i.jqplot.CanvasGridRenderer.prototype.createElement=function(a){var h;this._elem&&(i.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==te&&(h=this._elem.get(0),window.G_vmlCanvasManager.uninitElement(h),h=null),this._elem.emptyForce(),this._elem=null),h=a.canvasManager.getCanvas();var n=this._plotDimensions.width,r=this._plotDimensions.height;return h.width=n,h.height=r,this._elem=i(h),this._elem.addClass("jqplot-grid-canvas"),this._elem.css({position:"absolute",left:0,top:0}),h=a.canvasManager.initCanvas(h),this._top=this._offsets.top,this._bottom=r-this._offsets.bottom,this._left=this._offsets.left,this._right=n-this._offsets.right,this._width=this._right-this._left,this._height=this._bottom-this._top,h=null,this._elem},i.jqplot.CanvasGridRenderer.prototype.draw=function(){function a($e,Qe,rt,dt,ut){h.save(),(null==(ut=ut||{}).lineWidth||0!=ut.lineWidth)&&(i.extend(!0,h,ut),h.beginPath(),h.moveTo($e,Qe),h.lineTo(rt,dt),h.stroke(),h.restore())}this._ctx=this._elem.get(0).getContext("2d");var h=this._ctx,n=this._axes;h.save(),h.clearRect(0,0,this._plotDimensions.width,this._plotDimensions.height),h.fillStyle=this.backgroundColor||this.background,h.fillRect(this._left,this._top,this._width,this._height),h.save(),h.lineJoin="miter",h.lineCap="butt",h.lineWidth=this.gridLineWidth,h.strokeStyle=this.gridLineColor;for(var r,d,E,F,I=["xaxis","yaxis","x2axis","y2axis"],Y=4;Y>0;Y--){var V=I[Y-1],he=(re=(ie=n[V])._ticks).length;if(ie.show){if(ie.drawBaseline){var be={};switch(null!==ie.baselineWidth&&(be.lineWidth=ie.baselineWidth),null!==ie.baselineColor&&(be.strokeStyle=ie.baselineColor),V){case"xaxis":case"x2axis":a(this._left,this._bottom,this._right,this._bottom,be);break;case"yaxis":a(this._left,this._bottom,this._left,this._top,be);break;case"y2axis":a(this._right,this._bottom,this._right,this._top,be)}}for(var qe=he;qe>0;qe--)if((Ee=re[qe-1]).show){var je=Math.round(ie.u2p(Ee.value))+.5;switch(V){case"xaxis":if(Ee.showGridline&&this.drawGridlines&&(!Ee.isMinorTick&&ie.drawMajorGridlines||Ee.isMinorTick&&ie.drawMinorGridlines)&&a(je,this._top,je,this._bottom),Ee.showMark&&Ee.mark&&(!Ee.isMinorTick&&ie.drawMajorTickMarks||Ee.isMinorTick&&ie.drawMinorTickMarks)){switch(E=Ee.markSize,F=Ee.mark,je=Math.round(ie.u2p(Ee.value))+.5,F){case"outside":default:r=this._bottom,d=this._bottom+E;break;case"inside":r=this._bottom-E,d=this._bottom;break;case"cross":r=this._bottom-E,d=this._bottom+E}this.shadow&&this.renderer.shadowRenderer.draw(h,[[je,r],[je,d]],{lineCap:"butt",lineWidth:this.gridLineWidth,offset:.75*this.gridLineWidth,depth:2,fill:!1,closePath:!1}),a(je,r,je,d)}break;case"yaxis":if(Ee.showGridline&&this.drawGridlines&&(!Ee.isMinorTick&&ie.drawMajorGridlines||Ee.isMinorTick&&ie.drawMinorGridlines)&&a(this._right,je,this._left,je),Ee.showMark&&Ee.mark&&(!Ee.isMinorTick&&ie.drawMajorTickMarks||Ee.isMinorTick&&ie.drawMinorTickMarks)){switch(E=Ee.markSize,F=Ee.mark,je=Math.round(ie.u2p(Ee.value))+.5,F){case"outside":default:r=this._left-E,d=this._left;break;case"inside":r=this._left,d=this._left+E;break;case"cross":r=this._left-E,d=this._left+E}this.shadow&&this.renderer.shadowRenderer.draw(h,[[r,je],[d,je]],{lineCap:"butt",lineWidth:1.5*this.gridLineWidth,offset:.75*this.gridLineWidth,fill:!1,closePath:!1}),a(r,je,d,je,{strokeStyle:ie.borderColor})}break;case"x2axis":if(Ee.showGridline&&this.drawGridlines&&(!Ee.isMinorTick&&ie.drawMajorGridlines||Ee.isMinorTick&&ie.drawMinorGridlines)&&a(je,this._bottom,je,this._top),Ee.showMark&&Ee.mark&&(!Ee.isMinorTick&&ie.drawMajorTickMarks||Ee.isMinorTick&&ie.drawMinorTickMarks)){switch(E=Ee.markSize,F=Ee.mark,je=Math.round(ie.u2p(Ee.value))+.5,F){case"outside":default:r=this._top-E,d=this._top;break;case"inside":r=this._top,d=this._top+E;break;case"cross":r=this._top-E,d=this._top+E}this.shadow&&this.renderer.shadowRenderer.draw(h,[[je,r],[je,d]],{lineCap:"butt",lineWidth:this.gridLineWidth,offset:.75*this.gridLineWidth,depth:2,fill:!1,closePath:!1}),a(je,r,je,d)}break;case"y2axis":if(Ee.showGridline&&this.drawGridlines&&(!Ee.isMinorTick&&ie.drawMajorGridlines||Ee.isMinorTick&&ie.drawMinorGridlines)&&a(this._left,je,this._right,je),Ee.showMark&&Ee.mark&&(!Ee.isMinorTick&&ie.drawMajorTickMarks||Ee.isMinorTick&&ie.drawMinorTickMarks)){switch(E=Ee.markSize,F=Ee.mark,je=Math.round(ie.u2p(Ee.value))+.5,F){case"outside":default:r=this._right,d=this._right+E;break;case"inside":r=this._right-E,d=this._right;break;case"cross":r=this._right-E,d=this._right+E}this.shadow&&this.renderer.shadowRenderer.draw(h,[[r,je],[d,je]],{lineCap:"butt",lineWidth:1.5*this.gridLineWidth,offset:.75*this.gridLineWidth,fill:!1,closePath:!1}),a(r,je,d,je,{strokeStyle:ie.borderColor})}}}Ee=null}ie=null,re=null}for(I=["y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis","yMidAxis"],Y=7;Y>0;Y--){var ie,re=(ie=n[I[Y-1]])._ticks;if(ie.show){var Ke=re[ie.numberTicks-1],Ie=re[0],Ne=ie.getLeft(),We=[[Ne,Ke.getTop()+Ke.getHeight()/2],[Ne,Ie.getTop()+Ie.getHeight()/2+1]];for(this.shadow&&this.renderer.shadowRenderer.draw(h,We,{lineCap:"butt",fill:!1,closePath:!1}),a(We[0][0],We[0][1],We[1][0],We[1][1],{lineCap:"butt",strokeStyle:ie.borderColor,lineWidth:ie.borderWidth}),qe=re.length;qe>0;qe--){var Ee;if(E=(Ee=re[qe-1]).markSize,F=Ee.mark,je=Math.round(ie.u2p(Ee.value))+.5,Ee.showMark&&Ee.mark){switch(F){case"outside":default:r=Ne,d=Ne+E;break;case"inside":r=Ne-E,d=Ne;break;case"cross":r=Ne-E,d=Ne+E}We=[[r,je],[d,je]],this.shadow&&this.renderer.shadowRenderer.draw(h,We,{lineCap:"butt",lineWidth:1.5*this.gridLineWidth,offset:.75*this.gridLineWidth,fill:!1,closePath:!1}),a(r,je,d,je,{strokeStyle:ie.borderColor})}Ee=null}Ie=null}ie=null,re=null}h.restore(),this.shadow&&this.renderer.shadowRenderer.draw(h,We=[[this._left,this._bottom],[this._right,this._bottom],[this._right,this._top]]),0!=this.borderWidth&&this.drawBorder&&(a(this._left,this._top,this._right,this._top,{lineCap:"round",strokeStyle:n.x2axis.borderColor,lineWidth:n.x2axis.borderWidth}),a(this._right,this._top,this._right,this._bottom,{lineCap:"round",strokeStyle:n.y2axis.borderColor,lineWidth:n.y2axis.borderWidth}),a(this._right,this._bottom,this._left,this._bottom,{lineCap:"round",strokeStyle:n.xaxis.borderColor,lineWidth:n.xaxis.borderWidth}),a(this._left,this._bottom,this._left,this._top,{lineCap:"round",strokeStyle:n.yaxis.borderColor,lineWidth:n.yaxis.borderWidth})),h.restore(),h=null,n=null},i.jqplot.DivTitleRenderer=function(){},i.jqplot.DivTitleRenderer.prototype.init=function(a){i.extend(!0,this,a)},i.jqplot.DivTitleRenderer.prototype.draw=function(){this._elem&&(this._elem.emptyForce(),this._elem=null);var a=document.createElement("div");if(this._elem=i(a),this._elem.addClass("jqplot-title"),this.text){if(this.text){var h;this.color?h=this.color:this.textColor&&(h=this.textColor);var n={position:"absolute",top:"0px",left:"0px"};this._plotWidth&&(n.width=this._plotWidth+"px"),this.fontSize&&(n.fontSize=this.fontSize),n.textAlign="string"==typeof this.textAlign?this.textAlign:"center",h&&(n.color=h),this.paddingBottom&&(n.paddingBottom=this.paddingBottom),this.fontFamily&&(n.fontFamily=this.fontFamily),this._elem.css(n),this.escapeHtml?this._elem.text(this.text):this._elem.html(this.text)}}else this.show=!1,this._elem.height(0),this._elem.width(0);return a=null,this._elem},i.jqplot.DivTitleRenderer.prototype.pack=function(){},i.jqplot.LinePattern=function(a,h){var n={dotted:[.1,i.jqplot.config.dotGapLength],dashed:[i.jqplot.config.dashLength,i.jqplot.config.gapLength],solid:null};if("string"==typeof h)if("."===h[0]||"-"===h[0]){var r=h;h=[];for(var d=0,E=r.length;E>d;d++){if("."===r[d])h.push(.1);else{if("-"!==r[d])continue;h.push(i.jqplot.config.dashLength)}h.push(i.jqplot.config.gapLength)}}else h=n[h];if(!h||!h.length)return a;var F=0,I=h[0],Y=0,V=0,ie=0,re=0,be=function(je,Ke){var Ie=a.lineWidth,Ne=je-Y,We=Ke-V,$e=Math.sqrt(Ne*Ne+We*We);if($e>0&&Ie>0)for(Ne/=$e,We/=$e;;){var Qe=Ie*I;if(!($e>Qe)){Y=je,V=Ke,0==(1&F)?a.lineTo(Y,V):a.moveTo(Y,V),I-=$e/Ie;break}Y+=Qe*Ne,V+=Qe*We,0==(1&F)?a.lineTo(Y,V):a.moveTo(Y,V),$e-=Qe,++F>=h.length&&(F=0),I=h[F]}};return{moveTo:function(je,Ke){a.moveTo(je,Ke),Y=je,V=Ke,ie=je,re=Ke},lineTo:be,beginPath:function(){a.beginPath()},closePath:function(){be(ie,re)}}},i.jqplot.LineRenderer=function(){this.shapeRenderer=new i.jqplot.ShapeRenderer,this.shadowRenderer=new i.jqplot.ShadowRenderer},i.jqplot.LineRenderer.prototype.init=function(a,h){a=a||{},this._type="line",this.renderer.animation={show:!1,direction:"left",speed:2500,_supported:!0},this.renderer.smooth=!1,this.renderer.tension=null,this.renderer.constrainSmoothing=!0,this.renderer._smoothedData=[],this.renderer._smoothedPlotData=[],this.renderer._hiBandGridData=[],this.renderer._lowBandGridData=[],this.renderer._hiBandSmoothedData=[],this.renderer._lowBandSmoothedData=[],this.renderer.bandData=[],this.renderer.bands={show:!1,hiData:[],lowData:[],color:this.color,showLines:!1,fill:!0,fillColor:null,_min:null,_max:null,interval:"3%"};var n={highlightMouseOver:a.highlightMouseOver,highlightMouseDown:a.highlightMouseDown,highlightColor:a.highlightColor};delete a.highlightMouseOver,delete a.highlightMouseDown,delete a.highlightColor,i.extend(!0,this.renderer,a),this.renderer.options=a,(this.renderer.bandData.length>1&&(!a.bands||null==a.bands.show)||a.bands&&null==a.bands.show&&null!=a.bands.interval)&&(this.renderer.bands.show=!0),this.fill&&(this.renderer.bands.show=!1),this.renderer.bands.show&&this.renderer.initBands.call(this,this.renderer.options,h),this._stack&&(this.renderer.smooth=!1),this.renderer.shapeRenderer.init({lineJoin:this.lineJoin,lineCap:this.lineCap,fill:this.fill,isarc:!1,strokeStyle:this.color,fillStyle:this.fillColor,lineWidth:this.lineWidth,linePattern:this.linePattern,closePath:this.fill});var d=a.shadowOffset;null==d&&(d=this.lineWidth>2.5?1.25*(1+.6*(Math.atan(this.lineWidth/2.5)/.785398163-1)):1.25*Math.atan(this.lineWidth/2.5)/.785398163),this.renderer.shadowRenderer.init({lineJoin:this.lineJoin,lineCap:this.lineCap,fill:this.fill,isarc:!1,angle:this.shadowAngle,offset:d,alpha:this.shadowAlpha,depth:this.shadowDepth,lineWidth:this.lineWidth,linePattern:this.linePattern,closePath:this.fill}),this._areaPoints=[],this._boundingBox=[[],[]],(!this.isTrendline&&this.fill||this.renderer.bands.show)&&(this.highlightMouseOver=!0,this.highlightMouseDown=!1,this.highlightColor=null,n.highlightMouseDown&&null==n.highlightMouseOver&&(n.highlightMouseOver=!1),i.extend(!0,this,{highlightMouseOver:n.highlightMouseOver,highlightMouseDown:n.highlightMouseDown,highlightColor:n.highlightColor}),this.highlightColor||(this.highlightColor=i.jqplot.computeHighlightColors(this.renderer.bands.show?this.renderer.bands.fillColor:this.fillColor)),this.highlighter&&(this.highlighter.show=!1)),!this.isTrendline&&h&&(h.plugins.lineRenderer={},h.postInitHooks.addOnce(u),h.postDrawHooks.addOnce(C),h.eventListenerHooks.addOnce("jqplotMouseMove",O),h.eventListenerHooks.addOnce("jqplotMouseDown",b),h.eventListenerHooks.addOnce("jqplotMouseUp",A),h.eventListenerHooks.addOnce("jqplotClick",c),h.eventListenerHooks.addOnce("jqplotRightClick",P))},i.jqplot.LineRenderer.prototype.initBands=function(a,h){var n=a.bandData||[],r=this.renderer.bands;r.hiData=[],r.lowData=[];var d=this.data;if(r._max=null,r._min=null,2==n.length)if(i.isArray(n[0][0])){for(var E,F=0,I=0,Y=0,V=n[0].length;V>Y;Y++)(null!=(E=n[0][Y])[1]&&E[1]>r._max||null==r._max)&&(r._max=E[1]),(null!=E[1]&&E[1]<r._min||null==r._min)&&(r._min=E[1]);for(Y=0,V=n[1].length;V>Y;Y++)(null!=(E=n[1][Y])[1]&&E[1]>r._max||null==r._max)&&(r._max=E[1],I=1),(null!=E[1]&&E[1]<r._min||null==r._min)&&(r._min=E[1],F=1);I===F&&(r.show=!1),r.hiData=n[I],r.lowData=n[F]}else if(n[0].length===d.length&&n[1].length===d.length){var re=(ie=n[0][0]>n[1][0]?0:1)?0:1;for(Y=0,V=d.length;V>Y;Y++)r.hiData.push([d[Y][0],n[ie][Y]]),r.lowData.push([d[Y][0],n[re][Y]])}else r.show=!1;else if(n.length>2&&!i.isArray(n[0][0])){var ie;for(re=(ie=n[0][0]>n[0][1]?0:1)?0:1,Y=0,V=n.length;V>Y;Y++)r.hiData.push([d[Y][0],n[Y][ie]]),r.lowData.push([d[Y][0],n[Y][re]])}else{var he=r.interval,be=null,qe=null,Ee=null,je=null;if(i.isArray(he)?(be=he[0],qe=he[1]):be=he,isNaN(be)?"%"===be.charAt(be.length-1)&&(Ee="multiply",be=parseFloat(be)/100+1):(be=parseFloat(be),Ee="add"),null!==qe&&isNaN(qe)?"%"===qe.charAt(qe.length-1)&&(je="multiply",qe=parseFloat(qe)/100+1):null!==qe&&(qe=parseFloat(qe),je="add"),null!==be){if(null===qe&&(qe=-be,"multiply"===(je=Ee)&&(qe+=2)),qe>be){var Ke=be;be=qe,qe=Ke,Ke=Ee,Ee=je,je=Ke}for(Y=0,V=d.length;V>Y;Y++){switch(Ee){case"add":r.hiData.push([d[Y][0],d[Y][1]+be]);break;case"multiply":r.hiData.push([d[Y][0],d[Y][1]*be])}switch(je){case"add":r.lowData.push([d[Y][0],d[Y][1]+qe]);break;case"multiply":r.lowData.push([d[Y][0],d[Y][1]*qe])}}}else r.show=!1}var Ie=r.hiData,Ne=r.lowData;for(Y=0,V=Ie.length;V>Y;Y++)(null!=Ie[Y][1]&&Ie[Y][1]>r._max||null==r._max)&&(r._max=Ie[Y][1]);for(Y=0,V=Ne.length;V>Y;Y++)(null!=Ne[Y][1]&&Ne[Y][1]<r._min||null==r._min)&&(r._min=Ne[Y][1]);if(null===r.fillColor){var We=i.jqplot.getColorComponents(r.color);We[3]=.5*We[3],r.fillColor="rgba("+We[0]+", "+We[1]+", "+We[2]+", "+We[3]+")"}},i.jqplot.LineRenderer.prototype.setGridData=function(a){var V,h=this._xaxis.series_u2p,n=this._yaxis.series_u2p,r=this._plotData,d=this._prevPlotData;this.gridData=[],this._prevGridData=[],this.renderer._smoothedData=[],this.renderer._smoothedPlotData=[],this.renderer._hiBandGridData=[],this.renderer._lowBandGridData=[],this.renderer._hiBandSmoothedData=[],this.renderer._lowBandSmoothedData=[];for(var E=this.renderer.bands,F=!1,I=0,Y=r.length;Y>I;I++)null!=r[I][0]&&null!=r[I][1]?this.gridData.push([h.call(this._xaxis,r[I][0]),n.call(this._yaxis,r[I][1])]):null==r[I][0]?(F=!0,this.gridData.push([null,n.call(this._yaxis,r[I][1])])):null==r[I][1]&&(F=!0,this.gridData.push([h.call(this._xaxis,r[I][0]),null])),null!=d[I]&&null!=d[I][0]&&null!=d[I][1]?this._prevGridData.push([h.call(this._xaxis,d[I][0]),n.call(this._yaxis,d[I][1])]):null!=d[I]&&null==d[I][0]?this._prevGridData.push([null,n.call(this._yaxis,d[I][1])]):null!=d[I]&&null!=d[I][0]&&null==d[I][1]&&this._prevGridData.push([h.call(this._xaxis,d[I][0]),null]);if(F&&(this.renderer.smooth=!1,"line"===this._type&&(E.show=!1)),"line"===this._type&&E.show){for(I=0,Y=E.hiData.length;Y>I;I++)this.renderer._hiBandGridData.push([h.call(this._xaxis,E.hiData[I][0]),n.call(this._yaxis,E.hiData[I][1])]);for(I=0,Y=E.lowData.length;Y>I;I++)this.renderer._lowBandGridData.push([h.call(this._xaxis,E.lowData[I][0]),n.call(this._yaxis,E.lowData[I][1])])}"line"===this._type&&this.renderer.smooth&&this.gridData.length>2&&(this.renderer.constrainSmoothing?(V=m.call(this,this.gridData),this.renderer._smoothedData=V[0],this.renderer._smoothedPlotData=V[1],E.show&&(V=m.call(this,this.renderer._hiBandGridData),this.renderer._hiBandSmoothedData=V[0],V=m.call(this,this.renderer._lowBandGridData),this.renderer._lowBandSmoothedData=V[0]),V=null):(V=v.call(this,this.gridData),this.renderer._smoothedData=V[0],this.renderer._smoothedPlotData=V[1],E.show&&(V=v.call(this,this.renderer._hiBandGridData),this.renderer._hiBandSmoothedData=V[0],V=v.call(this,this.renderer._lowBandGridData),this.renderer._lowBandSmoothedData=V[0]),V=null))},i.jqplot.LineRenderer.prototype.makeGridData=function(a,h){var V,n=this._xaxis.series_u2p,r=this._yaxis.series_u2p,d=[];this.renderer._smoothedData=[],this.renderer._smoothedPlotData=[],this.renderer._hiBandGridData=[],this.renderer._lowBandGridData=[],this.renderer._hiBandSmoothedData=[],this.renderer._lowBandSmoothedData=[];for(var E=this.renderer.bands,F=!1,I=0;I<a.length;I++)null!=a[I][0]&&null!=a[I][1]?(this.step&&I>0&&d.push([n.call(this._xaxis,a[I][0]),r.call(this._yaxis,a[I-1][1])]),d.push([n.call(this._xaxis,a[I][0]),r.call(this._yaxis,a[I][1])])):null==a[I][0]?(F=!0,d.push([null,r.call(this._yaxis,a[I][1])])):null==a[I][1]&&(F=!0,d.push([n.call(this._xaxis,a[I][0]),null]));if(F&&(this.renderer.smooth=!1,"line"===this._type&&(E.show=!1)),"line"===this._type&&E.show){I=0;for(var Y=E.hiData.length;Y>I;I++)this.renderer._hiBandGridData.push([n.call(this._xaxis,E.hiData[I][0]),r.call(this._yaxis,E.hiData[I][1])]);for(I=0,Y=E.lowData.length;Y>I;I++)this.renderer._lowBandGridData.push([n.call(this._xaxis,E.lowData[I][0]),r.call(this._yaxis,E.lowData[I][1])])}return"line"===this._type&&this.renderer.smooth&&d.length>2&&(this.renderer.constrainSmoothing?(V=m.call(this,d),this.renderer._smoothedData=V[0],this.renderer._smoothedPlotData=V[1],E.show&&(V=m.call(this,this.renderer._hiBandGridData),this.renderer._hiBandSmoothedData=V[0],V=m.call(this,this.renderer._lowBandGridData),this.renderer._lowBandSmoothedData=V[0]),V=null):(V=v.call(this,d),this.renderer._smoothedData=V[0],this.renderer._smoothedPlotData=V[1],E.show&&(V=v.call(this,this.renderer._hiBandGridData),this.renderer._hiBandSmoothedData=V[0],V=v.call(this,this.renderer._lowBandGridData),this.renderer._lowBandSmoothedData=V[0]),V=null)),d},i.jqplot.LineRenderer.prototype.draw=function(a,h,n,r){var F,I,Y,V=i.extend(!0,{},n),ie=V.shadow!=te?V.shadow:this.shadow,re=V.showLine!=te?V.showLine:this.showLine,he=V.fill!=te?V.fill:this.fill,be=V.fillAndStroke!=te?V.fillAndStroke:this.fillAndStroke;if(a.save(),h.length){if(re)if(he){if(this.fillToZero){var qe=this.negativeColor;this.useNegativeColors||(qe=V.fillStyle);var je=V.fillStyle;if(be)var Ke=h.slice(0);if(0!=this.index&&this._stack){for(var d=(Ie=this._prevGridData).length;d>0;d--)h.push(Ie[d-1]);ie&&this.renderer.shadowRenderer.draw(a,h,V),this._areaPoints=h,this.renderer.shapeRenderer.draw(a,h,V)}else{var Ne=[],We=this.renderer.smooth?this.renderer._smoothedPlotData:this._plotData;this._areaPoints=[];var $e=this._yaxis.series_u2p(this.fillToValue);if(this._xaxis.series_u2p(this.fillToValue),V.closePath=!0,"y"==this.fillAxis){for(Ne.push([h[0][0],$e]),this._areaPoints.push([h[0][0],$e]),d=0;d<h.length-1;d++)if(Ne.push(h[d]),this._areaPoints.push(h[d]),We[d][1]*We[d+1][1]<=0){V.fillStyle=We[d][1]<0?qe:je;var Qe=h[d][0]+(h[d+1][0]-h[d][0])*($e-h[d][1])/(h[d+1][1]-h[d][1]);Ne.push([Qe,$e]),this._areaPoints.push([Qe,$e]),ie&&this.renderer.shadowRenderer.draw(a,Ne,V),this.renderer.shapeRenderer.draw(a,Ne,V),Ne=[[Qe,$e]]}V.fillStyle=We[h.length-1][1]<0?qe:je,Ne.push(h[h.length-1]),this._areaPoints.push(h[h.length-1]),Ne.push([h[h.length-1][0],$e]),this._areaPoints.push([h[h.length-1][0],$e])}ie&&this.renderer.shadowRenderer.draw(a,Ne,V),this.renderer.shapeRenderer.draw(a,Ne,V)}}else{if(be&&(Ke=h.slice(0)),0!=this.index&&this._stack){var Ie;for(d=(Ie=this._prevGridData).length;d>0;d--)h.push(Ie[d-1])}else{var rt=a.canvas.height;h.unshift([h[0][0],rt]),h.push([h[h.length-1][0],rt])}this._areaPoints=h,ie&&this.renderer.shadowRenderer.draw(a,h,V),this.renderer.shapeRenderer.draw(a,h,V)}if(be){var ut=i.extend(!0,{},V,{fill:!1,closePath:!1});if(this.renderer.shapeRenderer.draw(a,Ke,ut),this.markerRenderer.show)for(this.renderer.smooth&&(Ke=this.gridData),d=0;d<Ke.length;d++)this.markerRenderer.draw(Ke[d][0],Ke[d][1],a,V.markerOptions)}}else{if(this.renderer.bands.show){var ft,gt=i.extend(!0,{},V);this.renderer.bands.showLines&&(this.renderer.shapeRenderer.draw(a,ft=this.renderer.smooth?this.renderer._hiBandSmoothedData:this.renderer._hiBandGridData,V),this.renderer.shapeRenderer.draw(a,ft=this.renderer.smooth?this.renderer._lowBandSmoothedData:this.renderer._lowBandGridData,gt)),this.renderer.bands.fill&&(ft=this.renderer.smooth?this.renderer._hiBandSmoothedData.concat(this.renderer._lowBandSmoothedData.reverse()):this.renderer._hiBandGridData.concat(this.renderer._lowBandGridData.reverse()),this._areaPoints=ft,gt.closePath=!0,gt.fill=!0,gt.fillStyle=this.renderer.bands.fillColor,this.renderer.shapeRenderer.draw(a,ft,gt))}ie&&this.renderer.shadowRenderer.draw(a,h,V),this.renderer.shapeRenderer.draw(a,h,V)}var E=I=F=Y=null;for(d=0;d<this._areaPoints.length;d++){var vt=this._areaPoints[d];(E>vt[0]||null==E)&&(E=vt[0]),(Y<vt[1]||null==Y)&&(Y=vt[1]),(I<vt[0]||null==I)&&(I=vt[0]),(F>vt[1]||null==F)&&(F=vt[1])}if("line"===this.type&&this.renderer.bands.show&&(Y=this._yaxis.series_u2p(this.renderer.bands._min),F=this._yaxis.series_u2p(this.renderer.bands._max)),this._boundingBox=[[E,Y],[I,F]],this.markerRenderer.show&&!he)for(this.renderer.smooth&&(h=this.gridData),d=0;d<h.length;d++)null!=h[d][0]&&null!=h[d][1]&&this.markerRenderer.draw(h[d][0],h[d][1],a,V.markerOptions)}a.restore()},i.jqplot.LineRenderer.prototype.drawShadow=function(a,h,n){},i.jqplot.LinearAxisRenderer=function(){},i.jqplot.LinearAxisRenderer.prototype.init=function(a){this.breakPoints=null,this.breakTickLabel="≈",this.drawBaseline=!0,this.baselineWidth=null,this.baselineColor=null,this.forceTickAt0=!1,this.forceTickAt100=!1,this.tickInset=0,this.minorTicks=0,this.alignTicks=!1,this._autoFormatString="",this._overrideFormatString=!1,this._scalefact=1,i.extend(!0,this,a),this.breakPoints&&(i.isArray(this.breakPoints)?(this.breakPoints.length<2||this.breakPoints[1]<=this.breakPoints[0])&&(this.breakPoints=null):this.breakPoints=null),null!=this.numberTicks&&this.numberTicks<2&&(this.numberTicks=2),this.resetDataBounds()},i.jqplot.LinearAxisRenderer.prototype.draw=function(a,h){if(this.show){if(this.renderer.createTicks.call(this,h),this._elem&&(this._elem.emptyForce(),this._elem=null),this._elem=i(document.createElement("div")),this._elem.addClass("jqplot-axis jqplot-"+this.name),this._elem.css("position","absolute"),"xaxis"==this.name||"x2axis"==this.name?this._elem.width(this._plotDimensions.width):this._elem.height(this._plotDimensions.height),this.labelOptions.axis=this.name,this._label=new this.labelRenderer(this.labelOptions),this._label.show){var n=this._label.draw(a,h);n.appendTo(this._elem),n=null}for(var r,d=this._ticks,E=0;E<d.length;E++)(r=d[E]).show&&r.showLabel&&(!r.isMinorTick||this.showMinorTicks)&&this._elem.append(r.draw(a,h));r=null,d=null}return this._elem},i.jqplot.LinearAxisRenderer.prototype.reset=function(){this.min=this._options.min,this.max=this._options.max,this.tickInterval=this._options.tickInterval,this.numberTicks=this._options.numberTicks,this._autoFormatString="",this._overrideFormatString&&this.tickOptions&&this.tickOptions.formatString&&(this.tickOptions.formatString="")},i.jqplot.LinearAxisRenderer.prototype.set=function(){var a,h=0,n=0,r=0,d=null!=this._label&&this._label.show;if(this.show){for(var E,F=this._ticks,I=0;I<F.length;I++)(E=F[I])._breakTick||!E.show||!E.showLabel||E.isMinorTick&&!this.showMinorTicks||(a="xaxis"==this.name||"x2axis"==this.name?E._elem.outerHeight(!0):E._elem.outerWidth(!0))>h&&(h=a);E=null,F=null,d&&(n=this._label._elem.outerWidth(!0),r=this._label._elem.outerHeight(!0)),"xaxis"==this.name?this._elem.css({height:(h+=r)+"px",left:"0px",bottom:"0px"}):"x2axis"==this.name?this._elem.css({height:(h+=r)+"px",left:"0px",top:"0px"}):"yaxis"==this.name?(this._elem.css({width:(h+=n)+"px",left:"0px",top:"0px"}),d&&this._label.constructor==i.jqplot.AxisLabelRenderer&&this._label._elem.css("width",n+"px")):(this._elem.css({width:(h+=n)+"px",right:"0px",top:"0px"}),d&&this._label.constructor==i.jqplot.AxisLabelRenderer&&this._label._elem.css("width",n+"px"))}},i.jqplot.LinearAxisRenderer.prototype.createTicks=function(a){var h,n,r,F=this.ticks,I=this.name,Y=this._dataBounds,V="x"===this.name.charAt(0)?this._plotDimensions.width:this._plotDimensions.height,ie=this.min,re=this.max,he=this.numberTicks,be=this.tickInterval;if(this._scalefact=(Math.max(V,31)-30)/300,F.length){for(d=0;d<F.length;d++){var Ee=F[d],je=new this.tickRenderer(this.tickOptions);i.isArray(Ee)?(je.value=Ee[0],this.breakPoints?Ee[0]==this.breakPoints[0]?(je.label=this.breakTickLabel,je._breakTick=!0,je.showGridline=!1,je.showMark=!1):(Ee[0]>this.breakPoints[0]&&Ee[0]<=this.breakPoints[1]&&(je.show=!1,je.showGridline=!1),je.label=Ee[1]):je.label=Ee[1],je.setTick(Ee[0],this.name),this._ticks.push(je)):i.isPlainObject(Ee)?(i.extend(!0,je,Ee),je.axis=this.name,this._ticks.push(je)):(je.value=Ee,this.breakPoints&&(Ee==this.breakPoints[0]?(je.label=this.breakTickLabel,je._breakTick=!0,je.showGridline=!1,je.showMark=!1):Ee>this.breakPoints[0]&&Ee<=this.breakPoints[1]&&(je.show=!1,je.showGridline=!1)),je.setTick(Ee,this.name),this._ticks.push(je))}this.numberTicks=F.length,this.min=this._ticks[0].value,this.max=this._ticks[this.numberTicks-1].value,this.tickInterval=(this.max-this.min)/(this.numberTicks-1)}else{V="xaxis"==I||"x2axis"==I?this._plotDimensions.width:this._plotDimensions.height;var Ke=this.numberTicks;this.alignTicks&&("x2axis"===this.name&&a.axes.xaxis.show?Ke=a.axes.xaxis.numberTicks:"y"===this.name.charAt(0)&&"yaxis"!==this.name&&"yMidAxis"!==this.name&&a.axes.yaxis.show&&(Ke=a.axes.yaxis.numberTicks));var Ie,Ne,Yt,$e=(n=null!=this.max?this.max:Y.max)-(h=null!=this.min?this.min:Y.min);if(null!=this.tickOptions&&this.tickOptions.formatString||(this._overrideFormatString=!0),null==this.min||null==this.max&&null==this.tickInterval&&!this.autoscale){this.forceTickAt0&&(h>0&&(h=0),0>n&&(n=0)),this.forceTickAt100&&(h>100&&(h=100),100>n&&(n=100));var Qe=!1,rt=!1;null!=this.min?Qe=!0:null!=this.max&&(rt=!0);var dt=i.jqplot.LinearTickGenerator(h,n,this._scalefact,Ke,Qe,rt),ut=null!=this.min?h:h+$e*(this.padMin-1),ft=null!=this.max?n:n-$e*(this.padMax-1);(ut>h||n>ft)&&(dt=i.jqplot.LinearTickGenerator(ut=null!=this.min?h:h-$e*(this.padMin-1),ft=null!=this.max?n:n+$e*(this.padMax-1),this._scalefact,Ke,Qe,rt)),this.min=dt[0],this.max=dt[1],this.numberTicks=dt[2],this._autoFormatString=dt[3],this.tickInterval=dt[4]}else{if(h==n){var gt=.05;h>0&&(gt=Math.max(Math.log(h)/Math.LN10,.05)),h-=gt,n+=gt}if(this.autoscale&&null==this.min&&null==this.max){for(var vt,bt,Bt=!1,yt=!1,d=0;d<this._series.length;d++){var At=this._series[d];if(this.name==("x"==At.fillAxis?At._xaxis.name:At._yaxis.name)){for(var Rt=At._plotValues[At.fillAxis],qt=Rt[0],Qt=Rt[0],Wt=1;Wt<Rt.length;Wt++)Rt[Wt]<qt?qt=Rt[Wt]:Rt[Wt]>Qt&&(Qt=Rt[Wt]);var Ft=(Qt-qt)/Qt;At.renderer.constructor==i.jqplot.BarRenderer?qt>=0&&(At.fillToZero||Ft>.1)?Bt=!0:(Bt=!1,yt=!!(At.fill&&At.fillToZero&&0>qt&&Qt>0)):At.fill?qt>=0&&(At.fillToZero||Ft>.1)?Bt=!0:0>qt&&Qt>0&&At.fillToZero?(Bt=!1,yt=!0):(Bt=!1,yt=!1):0>qt&&(Bt=!1)}}if(Bt)this.numberTicks=2+Math.ceil((V-(this.tickSpacing-1))/this.tickSpacing),this.min=0,ie=0,(bt=n/(this.numberTicks-1))/(We=Math.pow(10,Math.abs(Math.floor(Math.log(bt)/Math.LN10))))==parseInt(bt/We,10)&&(bt+=We),this.tickInterval=Math.ceil(bt/We)*We,this.max=this.tickInterval*(this.numberTicks-1);else if(yt){this.numberTicks=2+Math.ceil((V-(this.tickSpacing-1))/this.tickSpacing);var bn=Math.ceil(Math.abs(h)/$e*(this.numberTicks-1)),wn=this.numberTicks-1-bn;bt=Math.max(Math.abs(h/bn),Math.abs(n/wn)),We=Math.pow(10,Math.abs(Math.floor(Math.log(bt)/Math.LN10))),this.tickInterval=Math.ceil(bt/We)*We,this.max=this.tickInterval*wn,this.min=-this.tickInterval*bn}else null==this.numberTicks&&(this.numberTicks=this.tickInterval?3+Math.ceil($e/this.tickInterval):2+Math.ceil((V-(this.tickSpacing-1))/this.tickSpacing)),null==this.tickInterval?(We=1>(bt=$e/(this.numberTicks-1))?Math.pow(10,Math.abs(Math.floor(Math.log(bt)/Math.LN10))):1,this.tickInterval=Math.ceil(bt*We*this.pad)/We):We=1/this.tickInterval,vt=this.tickInterval*(this.numberTicks-1),null==this.min&&(this.min=Math.floor(We*(h-(vt-$e)/2))/We),null==this.max&&(this.max=this.min+vt);if((hn=i.jqplot.getSignificantFigures(this.tickInterval)).digitsLeft>=hn.significantDigits)gn="%d";else{var We=Math.max(0,5-hn.digitsLeft);gn="%."+(We=Math.min(We,hn.digitsRight))+"f"}this._autoFormatString=gn}else{var gn,hn;$e=(Ne=null!=this.max?this.max:n+$e*(this.padMax-1))-(Ie=null!=this.min?this.min:h-$e*(this.padMin-1)),null==this.numberTicks&&(this.numberTicks=null!=this.tickInterval?Math.ceil((Ne-Ie)/this.tickInterval)+1:V>100?parseInt(3+(V-100)/75,10):2),null==this.tickInterval&&(this.tickInterval=$e/(this.numberTicks-1)),null==this.max&&(Ne=Ie+this.tickInterval*(this.numberTicks-1)),null==this.min&&(Ie=Ne-this.tickInterval*(this.numberTicks-1)),(hn=i.jqplot.getSignificantFigures(this.tickInterval)).digitsLeft>=hn.significantDigits?gn="%d":(We=Math.max(0,5-hn.digitsLeft),gn="%."+(We=Math.min(We,hn.digitsRight))+"f"),this._autoFormatString=gn,this.min=Ie,this.max=Ne}if(this.renderer.constructor==i.jqplot.LinearAxisRenderer&&""==this._autoFormatString){$e=this.max-this.min;var Tn,_n=0;if(Tn=(Tn=new this.tickRenderer(this.tickOptions).formatString||i.jqplot.config.defaultTickFormatString).match(i.jqplot.sprintf.regex)[0]){if(Tn.search(/[fFeEgGpP]/)>-1){var Rn=Tn.match(/\%\.(\d{0,})?[eEfFgGpP]/);_n=Rn?parseInt(Rn[1],10):6}else Tn.search(/[di]/)>-1&&(_n=0);var mn=Math.pow(10,-_n);if(this.tickInterval<mn&&null==he&&null==be)if(this.tickInterval=mn,null==re&&null==ie)this.min=Math.floor(this._dataBounds.min/mn)*mn,this.min==this._dataBounds.min&&(this.min=this._dataBounds.min-this.tickInterval),this.max=Math.ceil(this._dataBounds.max/mn)*mn,this.max==this._dataBounds.max&&(this.max=this._dataBounds.max+this.tickInterval),en=(en=(this.max-this.min)/this.tickInterval).toFixed(11),en=Math.ceil(en),this.numberTicks=en+1;else if(null==re)en=(en=(this._dataBounds.max-this.min)/this.tickInterval).toFixed(11),this.numberTicks=Math.ceil(en)+2,this.max=this.min+this.tickInterval*(this.numberTicks-1);else if(null==ie){var en;en=(en=(this.max-this._dataBounds.min)/this.tickInterval).toFixed(11),this.numberTicks=Math.ceil(en)+2,this.min=this.max-this.tickInterval*(this.numberTicks-1)}else this.numberTicks=Math.ceil((re-ie)/this.tickInterval)+1,this.min=Math.floor(ie*Math.pow(10,_n))/Math.pow(10,_n),this.max=Math.ceil(re*Math.pow(10,_n))/Math.pow(10,_n),this.numberTicks=Math.ceil((this.max-this.min)/this.tickInterval)+1}}}for(this._overrideFormatString&&""!=this._autoFormatString&&(this.tickOptions=this.tickOptions||{},this.tickOptions.formatString=this._autoFormatString),d=0;d<this.numberTicks;d++){if(r=this.min+d*this.tickInterval,(je=new this.tickRenderer(this.tickOptions)).setTick(r,this.name),this._ticks.push(je),d<this.numberTicks-1)for(Wt=0;Wt<this.minorTicks;Wt++)Yt=i.extend(!0,{},this.tickOptions,{name:this.name,value:r+=this.tickInterval/(this.minorTicks+1),label:"",isMinorTick:!0}),je=new this.tickRenderer(Yt),this._ticks.push(je);je=null}}this.tickInset&&(this.min=this.min-this.tickInset*this.tickInterval,this.max=this.max+this.tickInset*this.tickInterval)},i.jqplot.LinearAxisRenderer.prototype.resetTickValues=function(a){if(i.isArray(a)&&a.length==this._ticks.length){for(var h,n=0;n<a.length;n++)(h=this._ticks[n]).value=a[n],h.label=h.formatter(h.formatString,a[n]),h.label=h.prefix+h.label,h._elem.html(h.label);h=null,this.min=i.jqplot.arrayMin(a),this.max=i.jqplot.arrayMax(a),this.pack()}},i.jqplot.LinearAxisRenderer.prototype.pack=function(a,h){a=a||{};var n=this._ticks,r=this.max,d=this.min,E=(h=h||this._offsets).max,F=h.min,I=null!=this._label&&this._label.show;for(var Y in a)this._elem.css(Y,a[Y]);this._offsets=h;var V=E-F,ie=r-d;if(this.breakPoints?(ie=ie-this.breakPoints[1]+this.breakPoints[0],this.p2u=function(Ie){return(Ie-F)*ie/V+d},this.u2p=function(Ie){return Ie>this.breakPoints[0]&&Ie<this.breakPoints[1]&&(Ie=this.breakPoints[0]),Ie<=this.breakPoints[0]?(Ie-d)*V/ie+F:(Ie-this.breakPoints[1]+this.breakPoints[0]-d)*V/ie+F},"x"==this.name.charAt(0)?(this.series_u2p=function(Ie){return Ie>this.breakPoints[0]&&Ie<this.breakPoints[1]&&(Ie=this.breakPoints[0]),Ie<=this.breakPoints[0]?(Ie-d)*V/ie:(Ie-this.breakPoints[1]+this.breakPoints[0]-d)*V/ie},this.series_p2u=function(Ie){return Ie*ie/V+d}):(this.series_u2p=function(Ie){return Ie>this.breakPoints[0]&&Ie<this.breakPoints[1]&&(Ie=this.breakPoints[0]),Ie>=this.breakPoints[1]?(Ie-r)*V/ie:(Ie+this.breakPoints[1]-this.breakPoints[0]-r)*V/ie},this.series_p2u=function(Ie){return Ie*ie/V+r})):(this.p2u=function(Ie){return(Ie-F)*ie/V+d},this.u2p=function(Ie){return(Ie-d)*V/ie+F},"xaxis"==this.name||"x2axis"==this.name?(this.series_u2p=function(Ie){return(Ie-d)*V/ie},this.series_p2u=function(Ie){return Ie*ie/V+d}):(this.series_u2p=function(Ie){return(Ie-r)*V/ie},this.series_p2u=function(Ie){return Ie*ie/V+r})),this.show)if("xaxis"==this.name||"x2axis"==this.name){for(var re=0;re<n.length;re++)if((he=n[re]).show&&he.showLabel){if(he.constructor==i.jqplot.CanvasAxisTickRenderer&&he.angle){var qe="xaxis"==this.name?1:-1;switch(he.labelPosition){case"auto":be=qe*he.angle<0?-he.getWidth()+he._textRenderer.height*Math.sin(-he._textRenderer.angle)/2:-he._textRenderer.height*Math.sin(he._textRenderer.angle)/2;break;case"end":be=-he.getWidth()+he._textRenderer.height*Math.sin(-he._textRenderer.angle)/2;break;case"start":be=-he._textRenderer.height*Math.sin(he._textRenderer.angle)/2;break;default:be=-he.getWidth()/2+he._textRenderer.height*Math.sin(-he._textRenderer.angle)/2}}else be=-he.getWidth()/2;var Ee=this.u2p(he.value)+be+"px";he._elem.css("left",Ee),he.pack()}if(I){var je=this._label._elem.outerWidth(!0);this._label._elem.css("left",F+V/2-je/2+"px"),this._label._elem.css("xaxis"==this.name?"bottom":"top","0px"),this._label.pack()}}else{for(re=0;re<n.length;re++){var he;if((he=n[re]).show&&he.showLabel){var be;if(he.constructor==i.jqplot.CanvasAxisTickRenderer&&he.angle)switch(qe="yaxis"==this.name?1:-1,he.labelPosition){case"auto":case"end":be=qe*he.angle<0?-he._textRenderer.height*Math.cos(-he._textRenderer.angle)/2:-he.getHeight()+he._textRenderer.height*Math.cos(he._textRenderer.angle)/2;break;case"start":be=he.angle>0?-he._textRenderer.height*Math.cos(-he._textRenderer.angle)/2:-he.getHeight()+he._textRenderer.height*Math.cos(he._textRenderer.angle)/2;break;default:be=-he.getHeight()/2}else be=-he.getHeight()/2;Ee=this.u2p(he.value)+be+"px",he._elem.css("top",Ee),he.pack()}}if(I){var Ke=this._label._elem.outerHeight(!0);this._label._elem.css("top",E-V/2-Ke/2+"px"),this._label._elem.css("yaxis"==this.name?"left":"right","0px"),this._label.pack()}}n=null},i.jqplot.LinearTickGenerator=function(a,h,n,r,d,E){if(d=null!==d&&d,E=null!==E&&!d&&E,a===h&&(h=h?0:1),a>h){var F=h;h=a,a=F}var I=[],Y=y(h-a,n=n||1),V=i.jqplot.getSignificantFigures;if(null==r)if(d||E){if(d){I[0]=a,I[2]=Math.ceil((h-a)/Y+1),I[1]=a+(I[2]-1)*Y;var ie=V(a).digitsRight,re=V(Y).digitsRight;I[3]=re>ie?B(Y):"%."+ie+"f",I[4]=Y}else if(E){I[1]=h,I[2]=Math.ceil((h-a)/Y+1),I[0]=h-(I[2]-1)*Y;var he=V(h).digitsRight;re=V(Y).digitsRight,I[3]=re>he?B(Y):"%."+he+"f",I[4]=Y}}else I[0]=Math.floor(a/Y)*Y,I[1]=Math.ceil(h/Y)*Y,I[2]=Math.round((I[1]-I[0])/Y+1),I[3]=B(Y),I[4]=Y;else{var be=[];if(be[0]=Math.floor(a/Y)*Y,be[1]=Math.ceil(h/Y)*Y,be[2]=Math.round((be[1]-be[0])/Y+1),be[3]=B(Y),be[4]=Y,be[2]===r)I=be;else{var qe=o(be[1]-be[0],r);I[0]=be[0],I[2]=r,I[4]=qe,I[3]=B(qe),I[1]=I[0]+(I[2]-1)*I[4]}}return I},i.jqplot.LinearTickGenerator.bestLinearInterval=y,i.jqplot.LinearTickGenerator.bestInterval=o,i.jqplot.LinearTickGenerator.bestLinearComponents=function _(a,h){var r,d=Math.floor(Math.log(a)/Math.LN10),E=Math.pow(10,d),F=a/E;return[(r=.38>=(F/=h)?.1:1.6>=F?.2:4>=F?.5:8>=F?1:16>=F?2:5)*E,r,E]},i.jqplot.LinearTickGenerator.bestConstrainedInterval=function q(a,h,n){for(var r,d,E,F,Y,V,ie=Math.floor(n/2),re=Math.ceil(1.5*n),he=Number.MAX_VALUE,be=h-a,qe=i.jqplot.getSignificantFigures,Ee=0,je=re-ie+1;je>Ee;Ee++)d=qe(r=be/((Y=ie+Ee)-1)),he>(r=Math.abs(n-Y)+d.digitsRight)?(he=r,E=Y,V=d.digitsRight):r===he&&d.digitsRight<V&&(E=Y,V=d.digitsRight);return[a,h,E,0===(F=Math.max(V,Math.max(qe(a).digitsRight,qe(h).digitsRight)))?"%d":"%."+F+"f",r=be/(E-1)]},i.jqplot.MarkerRenderer=function(a){this.show=!0,this.style="filledCircle",this.lineWidth=2,this.size=9,this.color="#666666",this.shadow=!0,this.shadowAngle=45,this.shadowOffset=1,this.shadowDepth=3,this.shadowAlpha="0.07",this.shadowRenderer=new i.jqplot.ShadowRenderer,this.shapeRenderer=new i.jqplot.ShapeRenderer,i.extend(!0,this,a)},i.jqplot.MarkerRenderer.prototype.init=function(a){i.extend(!0,this,a);var h={angle:this.shadowAngle,offset:this.shadowOffset,alpha:this.shadowAlpha,lineWidth:this.lineWidth,depth:this.shadowDepth,closePath:!0};-1!=this.style.indexOf("filled")&&(h.fill=!0),-1!=this.style.indexOf("ircle")&&(h.isarc=!0,h.closePath=!1),this.shadowRenderer.init(h);var n={fill:!1,isarc:!1,strokeStyle:this.color,fillStyle:this.color,lineWidth:this.lineWidth,closePath:!0};-1!=this.style.indexOf("filled")&&(n.fill=!0),-1!=this.style.indexOf("ircle")&&(n.isarc=!0,n.closePath=!1),this.shapeRenderer.init(n)},i.jqplot.MarkerRenderer.prototype.drawDiamond=function(a,h,n,r,d){var F=this.size/2/1.2,I=this.size/2*1.2,Y=[[a-F,h],[a,h+I],[a+F,h],[a,h-I]];this.shadow&&this.shadowRenderer.draw(n,Y),this.shapeRenderer.draw(n,Y,d)},i.jqplot.MarkerRenderer.prototype.drawPlus=function(a,h,n,r,d){var F=this.size/2*1,I=this.size/2*1,Y=[[a,h-I],[a,h+I]],V=[[a+F,h],[a-F,h]],ie=i.extend(!0,{},this.options,{closePath:!1});this.shadow&&(this.shadowRenderer.draw(n,Y,{closePath:!1}),this.shadowRenderer.draw(n,V,{closePath:!1})),this.shapeRenderer.draw(n,Y,ie),this.shapeRenderer.draw(n,V,ie)},i.jqplot.MarkerRenderer.prototype.drawX=function(a,h,n,r,d){var F=this.size/2*1,I=this.size/2*1,Y=i.extend(!0,{},this.options,{closePath:!1}),V=[[a-F,h-I],[a+F,h+I]],ie=[[a-F,h+I],[a+F,h-I]];this.shadow&&(this.shadowRenderer.draw(n,V,{closePath:!1}),this.shadowRenderer.draw(n,ie,{closePath:!1})),this.shapeRenderer.draw(n,V,Y),this.shapeRenderer.draw(n,ie,Y)},i.jqplot.MarkerRenderer.prototype.drawDash=function(a,h,n,r,d){var F=this.size/2*1,I=[[a-F,h],[a+F,h]];this.shadow&&this.shadowRenderer.draw(n,I),this.shapeRenderer.draw(n,I,d)},i.jqplot.MarkerRenderer.prototype.drawLine=function(a,h,n,r,d){var E=[a,h];this.shadow&&this.shadowRenderer.draw(n,E),this.shapeRenderer.draw(n,E,d)},i.jqplot.MarkerRenderer.prototype.drawSquare=function(a,h,n,r,d){var F=this.size/2/1,I=this.size/2*1,Y=[[a-F,h-I],[a-F,h+I],[a+F,h+I],[a+F,h-I]];this.shadow&&this.shadowRenderer.draw(n,Y),this.shapeRenderer.draw(n,Y,d)},i.jqplot.MarkerRenderer.prototype.drawCircle=function(a,h,n,r,d){var I=[a,h,this.size/2,0,2*Math.PI,!0];this.shadow&&this.shadowRenderer.draw(n,I),this.shapeRenderer.draw(n,I,d)},i.jqplot.MarkerRenderer.prototype.draw=function(a,h,n,r){if(null==(r=r||{}).show||0!=r.show)switch(r.color&&!r.fillStyle&&(r.fillStyle=r.color),r.color&&!r.strokeStyle&&(r.strokeStyle=r.color),this.style){case"diamond":default:this.drawDiamond(a,h,n,!1,r);break;case"filledDiamond":this.drawDiamond(a,h,n,!0,r);break;case"circle":this.drawCircle(a,h,n,!1,r);break;case"filledCircle":this.drawCircle(a,h,n,!0,r);break;case"square":this.drawSquare(a,h,n,!1,r);break;case"filledSquare":this.drawSquare(a,h,n,!0,r);break;case"x":this.drawX(a,h,n,!0,r);break;case"plus":this.drawPlus(a,h,n,!0,r);break;case"dash":this.drawDash(a,h,n,!0,r);break;case"line":this.drawLine(a,h,n,!1,r)}},i.jqplot.ShadowRenderer=function(a){this.angle=45,this.offset=1,this.alpha=.07,this.lineWidth=1.5,this.lineJoin="miter",this.lineCap="round",this.closePath=!1,this.fill=!1,this.depth=3,this.strokeStyle="rgba(0,0,0,0.1)",this.isarc=!1,i.extend(!0,this,a)},i.jqplot.ShadowRenderer.prototype.init=function(a){i.extend(!0,this,a)},i.jqplot.ShadowRenderer.prototype.draw=function(a,h,n){a.save();var r=null!=n?n:{},d=null!=r.fill?r.fill:this.fill,E=null!=r.fillRect?r.fillRect:this.fillRect,F=null!=r.closePath?r.closePath:this.closePath,I=null!=r.offset?r.offset:this.offset,Y=null!=r.alpha?r.alpha:this.alpha,V=null!=r.depth?r.depth:this.depth,ie=null!=r.isarc?r.isarc:this.isarc,re=null!=r.linePattern?r.linePattern:this.linePattern;a.lineWidth=null!=r.lineWidth?r.lineWidth:this.lineWidth,a.lineJoin=null!=r.lineJoin?r.lineJoin:this.lineJoin,a.lineCap=null!=r.lineCap?r.lineCap:this.lineCap,a.strokeStyle=r.strokeStyle||this.strokeStyle||"rgba(0,0,0,"+Y+")",a.fillStyle=r.fillStyle||this.fillStyle||"rgba(0,0,0,"+Y+")";for(var he=0;V>he;he++){var be=i.jqplot.LinePattern(a,re);if(a.translate(Math.cos(this.angle*Math.PI/180)*I,Math.sin(this.angle*Math.PI/180)*I),be.beginPath(),ie)a.arc(h[0],h[1],h[2],h[3],h[4],!0);else if(E)E&&a.fillRect(h[0],h[1],h[2],h[3]);else if(h&&h.length)for(var qe=!0,Ee=0;Ee<h.length;Ee++)null!=h[Ee][0]&&null!=h[Ee][1]?qe?(be.moveTo(h[Ee][0],h[Ee][1]),qe=!1):be.lineTo(h[Ee][0],h[Ee][1]):qe=!0;F&&be.closePath(),d?a.fill():a.stroke()}a.restore()},i.jqplot.ShapeRenderer=function(a){this.lineWidth=1.5,this.linePattern="solid",this.lineJoin="miter",this.lineCap="round",this.closePath=!1,this.fill=!1,this.isarc=!1,this.fillRect=!1,this.strokeRect=!1,this.clearRect=!1,this.strokeStyle="#999999",this.fillStyle="#999999",i.extend(!0,this,a)},i.jqplot.ShapeRenderer.prototype.init=function(a){i.extend(!0,this,a)},i.jqplot.ShapeRenderer.prototype.draw=function(a,h,n){a.save();var r=null!=n?n:{},d=null!=r.fill?r.fill:this.fill,E=null!=r.closePath?r.closePath:this.closePath,F=null!=r.fillRect?r.fillRect:this.fillRect,I=null!=r.strokeRect?r.strokeRect:this.strokeRect,Y=null!=r.clearRect?r.clearRect:this.clearRect,V=null!=r.isarc?r.isarc:this.isarc,re=i.jqplot.LinePattern(a,null!=r.linePattern?r.linePattern:this.linePattern);if(a.lineWidth=r.lineWidth||this.lineWidth,a.lineJoin=r.lineJoin||this.lineJoin,a.lineCap=r.lineCap||this.lineCap,a.strokeStyle=r.strokeStyle||r.color||this.strokeStyle,a.fillStyle=r.fillStyle||this.fillStyle,a.beginPath(),V)return a.arc(h[0],h[1],h[2],h[3],h[4],!0),E&&a.closePath(),d?a.fill():a.stroke(),void a.restore();if(Y)return a.clearRect(h[0],h[1],h[2],h[3]),void a.restore();if(F||I){if(F&&a.fillRect(h[0],h[1],h[2],h[3]),I)return a.strokeRect(h[0],h[1],h[2],h[3]),void a.restore()}else if(h&&h.length){for(var he=!0,be=0;be<h.length;be++)null!=h[be][0]&&null!=h[be][1]?he?(re.moveTo(h[be][0],h[be][1]),he=!1):re.lineTo(h[be][0],h[be][1]):he=!0;E&&re.closePath(),d?a.fill():a.stroke()}a.restore()},i.jqplot.TableLegendRenderer=function(){},i.jqplot.TableLegendRenderer.prototype.init=function(a){i.extend(!0,this,a)},i.jqplot.TableLegendRenderer.prototype.addrow=function(a,h,n,r){var d,E,F,I,Y,V=n?this.rowSpacing+"px":"0px";F=document.createElement("tr"),(d=i(F)).addClass("jqplot-table-legend"),F=null,r?d.prependTo(this._elem):d.appendTo(this._elem),this.showSwatches&&((E=i(document.createElement("td"))).addClass("jqplot-table-legend jqplot-table-legend-swatch"),E.css({textAlign:"center",paddingTop:V}),(I=i(document.createElement("div"))).addClass("jqplot-table-legend-swatch-outline"),(Y=i(document.createElement("div"))).addClass("jqplot-table-legend-swatch"),Y.css({backgroundColor:h,borderColor:h}),d.append(E.append(I.append(Y)))),this.showLabels&&((E=i(document.createElement("td"))).addClass("jqplot-table-legend jqplot-table-legend-label"),E.css("paddingTop",V),d.append(E),this.escapeHtml?E.text(a):E.html(a)),E=null,I=null,Y=null,d=null,F=null},i.jqplot.TableLegendRenderer.prototype.draw=function(){if(this._elem&&(this._elem.emptyForce(),this._elem=null),this.show){var a=this._series,h=document.createElement("table");this._elem=i(h),this._elem.addClass("jqplot-table-legend");var n={position:"absolute"};this.background&&(n.background=this.background),this.border&&(n.border=this.border),this.fontSize&&(n.fontSize=this.fontSize),this.fontFamily&&(n.fontFamily=this.fontFamily),this.textColor&&(n.textColor=this.textColor),null!=this.marginTop&&(n.marginTop=this.marginTop),null!=this.marginBottom&&(n.marginBottom=this.marginBottom),null!=this.marginLeft&&(n.marginLeft=this.marginLeft),null!=this.marginRight&&(n.marginRight=this.marginRight);for(var r,d=!1,E=!1,F=0;F<a.length;F++)if(((r=a[F])._stack||r.renderer.constructor==i.jqplot.BezierCurveRenderer)&&(E=!0),r.show&&r.showLabel){var I=this.labels[F]||r.label.toString();I&&(E&&F<a.length-1?d=!0:E&&F==a.length-1&&(d=!1),this.renderer.addrow.call(this,I,r.color,d,E),d=!0);for(var V=0;V<i.jqplot.addLegendRowHooks.length;V++){var ie=i.jqplot.addLegendRowHooks[V].call(this,r);ie&&(this.renderer.addrow.call(this,ie.label,ie.color,d),d=!0)}I=null}}return this._elem},i.jqplot.TableLegendRenderer.prototype.pack=function(a){if(this.show)if("insideGrid"==this.placement)switch(this.location){case"nw":var n=a.top;this._elem.css("left",h=a.left),this._elem.css("top",n);break;case"n":var h=(a.left+(this._plotDimensions.width-a.right))/2-this.getWidth()/2;n=a.top,this._elem.css("left",h),this._elem.css("top",n);break;case"ne":this._elem.css({right:h=a.right,top:n=a.top});break;case"e":h=a.right,n=(a.top+(this._plotDimensions.height-a.bottom))/2-this.getHeight()/2,this._elem.css({right:h,top:n});break;case"se":default:this._elem.css({right:h=a.right,bottom:n=a.bottom});break;case"s":h=(a.left+(this._plotDimensions.width-a.right))/2-this.getWidth()/2,this._elem.css({left:h,bottom:n=a.bottom});break;case"sw":this._elem.css({left:h=a.left,bottom:n=a.bottom});break;case"w":h=a.left,n=(a.top+(this._plotDimensions.height-a.bottom))/2-this.getHeight()/2,this._elem.css({left:h,top:n})}else if("outside"==this.placement)switch(this.location){case"nw":n=a.top,this._elem.css("right",h=this._plotDimensions.width-a.left),this._elem.css("top",n);break;case"n":h=(a.left+(this._plotDimensions.width-a.right))/2-this.getWidth()/2,n=this._plotDimensions.height-a.top,this._elem.css("left",h),this._elem.css("bottom",n);break;case"ne":this._elem.css({left:h=this._plotDimensions.width-a.right,top:n=a.top});break;case"e":h=this._plotDimensions.width-a.right,n=(a.top+(this._plotDimensions.height-a.bottom))/2-this.getHeight()/2,this._elem.css({left:h,top:n});break;case"se":this._elem.css({left:h=this._plotDimensions.width-a.right,bottom:n=a.bottom});break;case"s":h=(a.left+(this._plotDimensions.width-a.right))/2-this.getWidth()/2,this._elem.css({left:h,top:n=this._plotDimensions.height-a.bottom});break;case"sw":this._elem.css({right:h=this._plotDimensions.width-a.left,bottom:n=a.bottom});break;case"w":h=this._plotDimensions.width-a.left,n=(a.top+(this._plotDimensions.height-a.bottom))/2-this.getHeight()/2,this._elem.css({right:h,top:n});break;default:this._elem.css({right:h=a.right,bottom:n=a.bottom})}else switch(this.location){case"nw":this._elem.css({left:0,top:a.top});break;case"n":h=(a.left+(this._plotDimensions.width-a.right))/2-this.getWidth()/2,this._elem.css({left:h,top:a.top});break;case"ne":this._elem.css({right:0,top:a.top});break;case"e":n=(a.top+(this._plotDimensions.height-a.bottom))/2-this.getHeight()/2,this._elem.css({right:a.right,top:n});break;case"se":default:this._elem.css({right:a.right,bottom:a.bottom});break;case"s":h=(a.left+(this._plotDimensions.width-a.right))/2-this.getWidth()/2,this._elem.css({left:h,bottom:a.bottom});break;case"sw":this._elem.css({left:a.left,bottom:a.bottom});break;case"w":n=(a.top+(this._plotDimensions.height-a.bottom))/2-this.getHeight()/2,this._elem.css({left:a.left,top:n})}},i.jqplot.ThemeEngine=function(){this.themes={},this.activeTheme=null},i.jqplot.ThemeEngine.prototype.init=function(){var a,h,n,d,E,F,r=new i.jqplot.Theme({_name:"Default"});for(a in r.target)r.target[a]=this.target.css("textColor"==a?"color":a);if(this.title.show&&this.title._elem)for(a in r.title)r.title[a]=this.title._elem.css("textColor"==a?"color":a);for(a in r.grid)r.grid[a]=this.grid[a];if(null==r.grid.backgroundColor&&null!=this.grid.background&&(r.grid.backgroundColor=this.grid.background),this.legend.show&&this.legend._elem)for(a in r.legend)r.legend[a]=this.legend._elem.css("textColor"==a?"color":a);for(h=0;h<this.series.length;h++)for(a in r.series.push((d=this.series[h]).renderer.constructor==i.jqplot.LineRenderer?new de:d.renderer.constructor==i.jqplot.BarRenderer?new Se:d.renderer.constructor==i.jqplot.PieRenderer?new ce:d.renderer.constructor==i.jqplot.DonutRenderer?new xe:d.renderer.constructor==i.jqplot.FunnelRenderer?new Re:d.renderer.constructor==i.jqplot.MeterGaugeRenderer?new Oe:{}),r.series[h])r.series[h][a]=d[a];for(a in this.axes){if(F=this.axes[a],(E=r.axes[a]=new J).borderColor=F.borderColor,E.borderWidth=F.borderWidth,F._ticks&&F._ticks[0])for(n in E.ticks)F._ticks[0].hasOwnProperty(n)?E.ticks[n]=F._ticks[0][n]:F._ticks[0]._elem&&(E.ticks[n]=F._ticks[0]._elem.css(n));if(F._label&&F._label.show)for(n in E.label)F._label[n]?E.label[n]=F._label[n]:F._label._elem&&(E.label[n]=F._label._elem.css("textColor"==n?"color":n))}this.themeEngine._add(r),this.themeEngine.activeTheme=this.themeEngine.themes[r._name]},i.jqplot.ThemeEngine.prototype.get=function(a){return a?this.themes[a]:this.activeTheme},i.jqplot.ThemeEngine.prototype.getThemeNames=function(){var a=[];for(var h in this.themes)a.push(h);return a.sort(R)},i.jqplot.ThemeEngine.prototype.getThemes=function(){var a=[],h=[];for(var n in this.themes)a.push(n);a.sort(R);for(var r=0;r<a.length;r++)h.push(this.themes[a[r]]);return h},i.jqplot.ThemeEngine.prototype.activate=function(a,h){var n=!1;if(!h&&this.activeTheme&&this.activeTheme._name&&(h=this.activeTheme._name),!this.themes.hasOwnProperty(h))throw new Error("No theme of that name");var r=this.themes[h];this.activeTheme=r;var d,qe,E=["xaxis","x2axis","yaxis","y2axis"];for(qe=0;qe<E.length;qe++){var F=E[qe];null!=r.axesStyles.borderColor&&(a.axes[F].borderColor=r.axesStyles.borderColor),null!=r.axesStyles.borderWidth&&(a.axes[F].borderWidth=r.axesStyles.borderWidth)}for(var I in a.axes){var Y=a.axes[I];if(Y.show){var re=i.jqplot.extend(!0,{},r.axes[I]||{},r.axesStyles);if(d=null!=r.axesStyles.borderColor?r.axesStyles.borderColor:re.borderColor,null!=re.borderColor&&(Y.borderColor=re.borderColor,n=!0),d=null!=r.axesStyles.borderWidth?r.axesStyles.borderWidth:re.borderWidth,null!=re.borderWidth&&(Y.borderWidth=re.borderWidth,n=!0),Y._ticks&&Y._ticks[0])for(var he in re.ticks)null!=(d=re.ticks[he])&&(Y.tickOptions[he]=d,Y._ticks=[],n=!0);if(Y._label&&Y._label.show)for(var he in re.label)null!=(d=re.label[he])&&(Y.labelOptions[he]=d,n=!0)}}for(var be in r.grid)null!=r.grid[be]&&(a.grid[be]=r.grid[be]);if(n||a.grid.draw(),a.legend.show)for(be in r.legend)null!=r.legend[be]&&(a.legend[be]=r.legend[be]);if(a.title.show)for(be in r.title)null!=r.title[be]&&(a.title[be]=r.title[be]);for(qe=0;qe<r.series.length;qe++){var Ee={};for(be in r.series[qe])null!=(d=null!=r.seriesStyles[be]?r.seriesStyles[be]:r.series[qe][be])&&(Ee[be]=d,"color"==be?(a.series[qe].renderer.shapeRenderer.fillStyle=d,a.series[qe].renderer.shapeRenderer.strokeStyle=d,a.series[qe][be]=d):"lineWidth"==be||"linePattern"==be?(a.series[qe].renderer.shapeRenderer[be]=d,a.series[qe][be]=d):"markerOptions"==be?(W(a.series[qe].markerOptions,d),W(a.series[qe].markerRenderer,d)):a.series[qe][be]=d,n=!0)}for(be in n&&(a.target.empty(),a.draw()),r.target)null!=r.target[be]&&a.target.css(be,r.target[be])},i.jqplot.ThemeEngine.prototype._add=function(a,h){if(h&&(a._name=h),a._name||(a._name=Date.parse(new Date)),this.themes.hasOwnProperty(a._name))throw new Error("jqplot.ThemeEngine Error: Theme already in use");this.themes[a._name]=a},i.jqplot.ThemeEngine.prototype.remove=function(a){return"Default"!=a&&delete this.themes[a]},i.jqplot.ThemeEngine.prototype.newTheme=function(a,h){"object"==typeof a&&(h=h||a,a=null),a=h&&h._name?h._name:a||Date.parse(new Date);var n=this.copy(this.themes.Default._name,a);return i.jqplot.extend(n,h),n},i.jqplot.clone=N,i.jqplot.merge=W,i.jqplot.extend=function(){var a,h=arguments[0]||{},n=1,r=arguments.length,d=!1;for("boolean"==typeof h&&(d=h,h=arguments[1]||{},n=2),"object"!=typeof h&&"[object Function]"===!toString.call(h)&&(h={});r>n;n++)if(null!=(a=arguments[n]))for(var E in a){var F=h[E],I=a[E];h!==I&&(d&&I&&"object"==typeof I&&!I.nodeType?h[E]=i.jqplot.extend(d,F||(null!=I.length?[]:{}),I):I!==te&&(h[E]=I))}return h},i.jqplot.ThemeEngine.prototype.rename=function(a,h){if("Default"==a||"Default"==h)throw new Error("jqplot.ThemeEngine Error: Cannot rename from/to Default");if(this.themes.hasOwnProperty(h))throw new Error("jqplot.ThemeEngine Error: New name already in use.");if(this.themes.hasOwnProperty(a)){var n=this.copy(a,h);return this.remove(a),n}throw new Error("jqplot.ThemeEngine Error: Old name or new name invalid")},i.jqplot.ThemeEngine.prototype.copy=function(a,h,n){if("Default"==h)throw new Error("jqplot.ThemeEngine Error: Cannot copy over Default theme");if(!this.themes.hasOwnProperty(a)){var r="jqplot.ThemeEngine Error: Source name invalid";throw new Error(r)}if(this.themes.hasOwnProperty(h))throw r="jqplot.ThemeEngine Error: Target name invalid",new Error(r);var d=N(this.themes[a]);return d._name=h,i.jqplot.extend(!0,d,n),this._add(d),d},i.jqplot.Theme=function(a,h){"object"==typeof a&&(h=h||a,a=null),a=a||Date.parse(new Date),this._name=a,this.target={backgroundColor:null},this.legend={textColor:null,fontFamily:null,fontSize:null,border:null,background:null},this.title={textColor:null,fontFamily:null,fontSize:null,textAlign:null},this.seriesStyles={},this.series=[],this.grid={drawGridlines:null,gridLineColor:null,gridLineWidth:null,backgroundColor:null,borderColor:null,borderWidth:null,shadow:null},this.axesStyles={label:{},ticks:{}},this.axes={},"string"==typeof h?this._name=h:"object"==typeof h&&i.jqplot.extend(!0,this,h)};var J=function(){this.borderColor=null,this.borderWidth=null,this.ticks=new U,this.label=new se},U=function(){this.show=null,this.showGridline=null,this.showLabel=null,this.showMark=null,this.size=null,this.textColor=null,this.whiteSpace=null,this.fontSize=null,this.fontFamily=null},se=function(){this.textColor=null,this.whiteSpace=null,this.fontSize=null,this.fontFamily=null,this.fontWeight=null},de=function(){this.color=null,this.lineWidth=null,this.linePattern=null,this.shadow=null,this.fillColor=null,this.showMarker=null,this.markerOptions=new me},me=function(){this.show=null,this.style=null,this.lineWidth=null,this.size=null,this.color=null,this.shadow=null},Se=function(){this.color=null,this.seriesColors=null,this.lineWidth=null,this.shadow=null,this.barPadding=null,this.barMargin=null,this.barWidth=null,this.highlightColors=null},ce=function(){this.seriesColors=null,this.padding=null,this.sliceMargin=null,this.fill=null,this.shadow=null,this.startAngle=null,this.lineWidth=null,this.highlightColors=null},xe=function(){this.seriesColors=null,this.padding=null,this.sliceMargin=null,this.fill=null,this.shadow=null,this.startAngle=null,this.lineWidth=null,this.innerDiameter=null,this.thickness=null,this.ringMargin=null,this.highlightColors=null},Re=function(){this.color=null,this.lineWidth=null,this.shadow=null,this.padding=null,this.sectionMargin=null,this.seriesColors=null,this.highlightColors=null},Oe=function(){this.padding=null,this.backgroundColor=null,this.ringColor=null,this.tickColor=null,this.ringWidth=null,this.intervalColors=null,this.intervalInnerRadius=null,this.intervalOuterRadius=null,this.hubRadius=null,this.needleThickness=null,this.needlePad=null};i.fn.jqplotChildText=function(){return i(this).contents().filter(function(){return 3==this.nodeType}).text()},i.fn.jqplotGetComputedFontStyle=function(){for(var a=window.getComputedStyle?window.getComputedStyle(this[0],""):this[0].currentStyle,h=a["font-style"]?["font-style","font-weight","font-size","font-family"]:["fontStyle","fontWeight","fontSize","fontFamily"],n=[],r=0;r<h.length;++r){var d=String(a[h[r]]);d&&"normal"!=d&&n.push(d)}return n.join(" ")},i.fn.jqplotToImageCanvas=function(a){function n(Qe,rt,dt,ut,ft,gt){for(var vt=function h(Qe){var rt=parseInt(i(Qe).css("line-height"),10);return isNaN(rt)&&(rt=1.2*parseInt(i(Qe).css("font-size"),10)),rt}(Qe),bt=i(Qe).innerWidth(),Pt=(i(Qe).innerHeight(),dt.split(/\s+/)),Bt=Pt.length,yt="",At=[],wt=ft,Rt=ut,qt=0;Bt>qt;qt++)rt.measureText(yt+=Pt[qt]).width>bt&&yt.length>Pt[qt].length&&(At.push(qt),yt="",qt--);if(0===At.length)"center"===i(Qe).css("textAlign")&&(Rt=ut+(gt-rt.measureText(yt).width)/2-Ke),rt.fillText(dt,Rt,ft);else{yt=Pt.slice(0,At[0]).join(" "),"center"===i(Qe).css("textAlign")&&(Rt=ut+(gt-rt.measureText(yt).width)/2-Ke),rt.fillText(yt,Rt,wt),wt+=vt,qt=1;for(var Qt=At.length;Qt>qt;qt++)yt=Pt.slice(At[qt-1],At[qt]).join(" "),"center"===i(Qe).css("textAlign")&&(Rt=ut+(gt-rt.measureText(yt).width)/2-Ke),rt.fillText(yt,Rt,wt),wt+=vt;yt=Pt.slice(At[qt-1],Pt.length).join(" "),"center"===i(Qe).css("textAlign")&&(Rt=ut+(gt-rt.measureText(yt).width)/2-Ke),rt.fillText(yt,Rt,wt)}}function r(Qe,rt,dt){var ut=Qe.tagName.toLowerCase(),ft=i(Qe).position(),gt=window.getComputedStyle?window.getComputedStyle(Qe,""):Qe.currentStyle,vt=rt+ft.left+parseInt(gt.marginLeft,10)+parseInt(gt.borderLeftWidth,10)+parseInt(gt.paddingLeft,10),bt=dt+ft.top+parseInt(gt.marginTop,10)+parseInt(gt.borderTopWidth,10)+parseInt(gt.paddingTop,10),Pt=re.width;if("div"!=ut&&"span"!=ut||i(Qe).hasClass("jqplot-highlighter-tooltip"))"table"===ut&&i(Qe).hasClass("jqplot-table-legend")?($e.strokeStyle=i(Qe).css("border-top-color"),$e.fillStyle=i(Qe).css("background-color"),$e.fillRect(vt,bt,i(Qe).innerWidth(),i(Qe).innerHeight()),parseInt(i(Qe).css("border-top-width"),10)>0&&$e.strokeRect(vt,bt,i(Qe).innerWidth(),i(Qe).innerHeight()),i(Qe).find("div.jqplot-table-legend-swatch-outline").each(function(){var yt=i(this);$e.strokeStyle=yt.css("border-top-color");var At=vt+yt.position().left,wt=bt+yt.position().top;$e.strokeRect(At,wt,yt.innerWidth(),yt.innerHeight()),At+=parseInt(yt.css("padding-left"),10),wt+=parseInt(yt.css("padding-top"),10);var Rt=yt.innerHeight()-2*parseInt(yt.css("padding-top"),10),qt=yt.innerWidth()-2*parseInt(yt.css("padding-left"),10),Qt=yt.children("div.jqplot-table-legend-swatch");$e.fillStyle=Qt.css("background-color"),$e.fillRect(At,wt,qt,Rt)}),i(Qe).find("td.jqplot-table-legend-label").each(function(){var yt=i(this),At=vt+yt.position().left,wt=bt+yt.position().top+parseInt(yt.css("padding-top"),10);$e.font=yt.jqplotGetComputedFontStyle(),$e.fillStyle=yt.css("color"),n(yt,$e,yt.text(),At,wt,Pt)})):"canvas"==ut&&$e.drawImage(Qe,vt,bt);else{i(Qe).children().each(function(){r(this,vt,bt)});var Bt=i(Qe).jqplotChildText();Bt&&($e.font=i(Qe).jqplotGetComputedFontStyle(),$e.fillStyle=i(Qe).css("color"),n(Qe,$e,Bt,vt,bt,Pt))}}var d=null==(a=a||{}).x_offset?0:a.x_offset,E=null==a.y_offset?0:a.y_offset,F=null==a.backgroundColor?"rgb(255,255,255)":a.backgroundColor;if(0==i(this).width()||0==i(this).height()||i.jqplot.use_excanvas)return null;for(var I,Y,V,ie,re=document.createElement("canvas"),he=i(this).outerHeight(!0),be=i(this).outerWidth(!0),qe=i(this).offset(),Ee=qe.left,je=qe.top,Ke=0,Ie=0,Ne=["jqplot-table-legend","jqplot-xaxis-tick","jqplot-x2axis-tick","jqplot-yaxis-tick","jqplot-y2axis-tick","jqplot-y3axis-tick","jqplot-y4axis-tick","jqplot-y5axis-tick","jqplot-y6axis-tick","jqplot-y7axis-tick","jqplot-y8axis-tick","jqplot-y9axis-tick","jqplot-xaxis-label","jqplot-x2axis-label","jqplot-yaxis-label","jqplot-y2axis-label","jqplot-y3axis-label","jqplot-y4axis-label","jqplot-y5axis-label","jqplot-y6axis-label","jqplot-y7axis-label","jqplot-y8axis-label","jqplot-y9axis-label"],We=0;We<Ne.length;We++)i(this).find("."+Ne[We]).each(function(){I=i(this).offset().top-je,Y=i(this).offset().left-Ee,ie=Y+i(this).outerWidth(!0)+Ke,V=I+i(this).outerHeight(!0)+Ie,-Ke>Y&&(be=be-Ke-Y,Ke=-Y),-Ie>I&&(he=he-Ie-I,Ie=-I),ie>be&&(be=ie),V>he&&(he=V)});re.width=be+Number(d),re.height=he+Number(E);var $e=re.getContext("2d");return $e.save(),$e.fillStyle=F,$e.fillRect(0,0,re.width,re.height),$e.restore(),$e.translate(Ke,Ie),$e.textAlign="left",$e.textBaseline="top",i(this).children().each(function(){r(this,d,E)}),re},i.fn.jqplotToImageStr=function(a){var h=i(this).jqplotToImageCanvas(a);return h?h.toDataURL("image/png"):null},i.fn.jqplotToImageElem=function(a){var h=document.createElement("img"),n=i(this).jqplotToImageStr(a);return h.src=n,h},i.fn.jqplotToImageElemStr=function(a){return"<img src="+i(this).jqplotToImageStr(a)+" />"},i.fn.jqplotSaveImage=function(){var a=i(this).jqplotToImageStr({});a&&(window.location.href=a.replace("image/png","image/octet-stream"))},i.fn.jqplotViewImage=function(){var a=i(this).jqplotToImageElemStr({});if(i(this).jqplotToImageStr({}),a){var h=window.open("");h.document.open("image/png"),h.document.write(a),h.document.close(),h=null}};var we=function(){switch(this.syntax=we.config.syntax,this._type="jsDate",this.proxy=new Date,this.options={},this.locale=we.regional.getLocale(),this.formatString="",this.defaultCentury=we.config.defaultCentury,arguments.length){case 0:break;case 1:if("[object Object]"==ne(arguments[0])&&"jsDate"!=arguments[0]._type){var a=this.options=arguments[0];this.syntax=a.syntax||this.syntax,this.defaultCentury=a.defaultCentury||this.defaultCentury,this.proxy=we.createDate(a.date)}else this.proxy=we.createDate(arguments[0]);break;default:for(var h=[],n=0;n<arguments.length;n++)h.push(arguments[n]);this.proxy=new Date,this.proxy.setFullYear.apply(this.proxy,h.slice(0,3)),h.slice(3).length&&this.proxy.setHours.apply(this.proxy,h.slice(3))}};we.config={defaultLocale:"en",syntax:"perl",defaultCentury:1900},we.prototype.add=function(a,h){var n=it[h]||it.day;return"number"==typeof n?this.proxy.setTime(this.proxy.getTime()+n*a):n.add(this,a),this},we.prototype.clone=function(){return new we(this.proxy.getTime())},we.prototype.getUtcOffset=function(){return 6e4*this.proxy.getTimezoneOffset()},we.prototype.diff=function(a,h,n){if(null===(a=new we(a)))return null;var r=it[h]||it.day;if("number"==typeof r)var d=(this.proxy.getTime()-a.proxy.getTime())/r;else d=r.diff(this.proxy,a.proxy);return n?d:Math[d>0?"floor":"ceil"](d)},we.prototype.getAbbrDayName=function(){return we.regional[this.locale].dayNamesShort[this.proxy.getDay()]},we.prototype.getAbbrMonthName=function(){return we.regional[this.locale].monthNamesShort[this.proxy.getMonth()]},we.prototype.getAMPM=function(){return this.proxy.getHours()>=12?"PM":"AM"},we.prototype.getAmPm=function(){return this.proxy.getHours()>=12?"pm":"am"},we.prototype.getCentury=function(){return parseInt(this.proxy.getFullYear()/100,10)},we.prototype.getDate=function(){return this.proxy.getDate()},we.prototype.getDay=function(){return this.proxy.getDay()},we.prototype.getDayOfWeek=function(){var a=this.proxy.getDay();return 0===a?7:a},we.prototype.getDayOfYear=function(){var a=this.proxy,h=a-new Date(a.getFullYear()+"/1/1 GMT");return h+=6e4*a.getTimezoneOffset(),a=null,parseInt(h/6e4/60/24,10)+1},we.prototype.getDayName=function(){return we.regional[this.locale].dayNames[this.proxy.getDay()]},we.prototype.getFullWeekOfYear=function(){var a=this.proxy,h=this.getDayOfYear(),n=6-a.getDay();return parseInt((h+n)/7,10)},we.prototype.getFullYear=function(){return this.proxy.getFullYear()},we.prototype.getGmtOffset=function(){var a=this.proxy.getTimezoneOffset()/60,h=0>a?"+":"-";return a=Math.abs(a),h+tt(Math.floor(a),2)+":"+tt(a%1*60,2)},we.prototype.getHours=function(){return this.proxy.getHours()},we.prototype.getHours12=function(){var a=this.proxy.getHours();return a>12?a-12:0==a?12:a},we.prototype.getIsoWeek=function(){var a=this.proxy,h=this.getWeekOfYear(),n=new Date(a.getFullYear()+"/1/1").getDay(),r=h+(n>4||1>=n?0:1);return 53==r&&new Date(a.getFullYear()+"/12/31").getDay()<4?r=1:0===r&&(r=(a=new we(new Date(a.getFullYear()-1+"/12/31"))).getIsoWeek()),a=null,r},we.prototype.getMilliseconds=function(){return this.proxy.getMilliseconds()},we.prototype.getMinutes=function(){return this.proxy.getMinutes()},we.prototype.getMonth=function(){return this.proxy.getMonth()},we.prototype.getMonthName=function(){return we.regional[this.locale].monthNames[this.proxy.getMonth()]},we.prototype.getMonthNumber=function(){return this.proxy.getMonth()+1},we.prototype.getSeconds=function(){return this.proxy.getSeconds()},we.prototype.getShortYear=function(){return this.proxy.getYear()%100},we.prototype.getTime=function(){return this.proxy.getTime()},we.prototype.getTimezoneAbbr=function(){return this.proxy.toString().replace(/^.*\(([^)]+)\)$/,"$1")},we.prototype.getTimezoneName=function(){var a=/(?:\((.+)\)$| ([A-Z]{3}) )/.exec(this.toString());return a[1]||a[2]||"GMT"+this.getGmtOffset()},we.prototype.getTimezoneOffset=function(){return this.proxy.getTimezoneOffset()},we.prototype.getWeekOfYear=function(){var a=this.getDayOfYear(),h=7-this.getDayOfWeek();return parseInt((a+h)/7,10)},we.prototype.getUnix=function(){return Math.round(this.proxy.getTime()/1e3,0)},we.prototype.getYear=function(){return this.proxy.getYear()},we.prototype.next=function(a){return a=a||"day",this.clone().add(1,a)},we.prototype.set=function(){switch(arguments.length){case 0:this.proxy=new Date;break;case 1:if("[object Object]"==ne(arguments[0])&&"jsDate"!=arguments[0]._type){var a=this.options=arguments[0];this.syntax=a.syntax||this.syntax,this.defaultCentury=a.defaultCentury||this.defaultCentury,this.proxy=we.createDate(a.date)}else this.proxy=we.createDate(arguments[0]);break;default:for(var h=[],n=0;n<arguments.length;n++)h.push(arguments[n]);this.proxy=new Date,this.proxy.setFullYear.apply(this.proxy,h.slice(0,3)),h.slice(3).length&&this.proxy.setHours.apply(this.proxy,h.slice(3))}return this},we.prototype.setDate=function(a){return this.proxy.setDate(a),this},we.prototype.setFullYear=function(){return this.proxy.setFullYear.apply(this.proxy,arguments),this},we.prototype.setHours=function(){return this.proxy.setHours.apply(this.proxy,arguments),this},we.prototype.setMilliseconds=function(a){return this.proxy.setMilliseconds(a),this},we.prototype.setMinutes=function(){return this.proxy.setMinutes.apply(this.proxy,arguments),this},we.prototype.setMonth=function(){return this.proxy.setMonth.apply(this.proxy,arguments),this},we.prototype.setSeconds=function(){return this.proxy.setSeconds.apply(this.proxy,arguments),this},we.prototype.setTime=function(a){return this.proxy.setTime(a),this},we.prototype.setYear=function(){return this.proxy.setYear.apply(this.proxy,arguments),this},we.prototype.strftime=function(a){return we.strftime(this,a=a||this.formatString||we.regional[this.locale].formatString,this.syntax)},we.prototype.toString=function(){return this.proxy.toString()},we.prototype.toYmdInt=function(){return 1e4*this.proxy.getFullYear()+100*this.getMonthNumber()+this.proxy.getDate()},we.regional={en:{monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],formatString:"%Y-%m-%d %H:%M:%S"},fr:{monthNames:["Janvier","F\xe9vrier","Mars","Avril","Mai","Juin","Juillet","Ao\xfbt","Septembre","Octobre","Novembre","D\xe9cembre"],monthNamesShort:["Jan","F\xe9v","Mar","Avr","Mai","Jun","Jul","Ao\xfb","Sep","Oct","Nov","D\xe9c"],dayNames:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],dayNamesShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],formatString:"%Y-%m-%d %H:%M:%S"},de:{monthNames:["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","M\xe4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],formatString:"%Y-%m-%d %H:%M:%S"},es:{monthNames:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],monthNamesShort:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],dayNames:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],dayNamesShort:["Dom","Lun","Mar","Mié","Juv","Vie","Sáb"],formatString:"%Y-%m-%d %H:%M:%S"},ru:{monthNames:["\u042f\u043d\u0432\u0430\u0440\u044c","\u0424\u0435\u0432\u0440\u0430\u043b\u044c","\u041c\u0430\u0440\u0442","\u0410\u043f\u0440\u0435\u043b\u044c","\u041c\u0430\u0439","\u0418\u044e\u043d\u044c","\u0418\u044e\u043b\u044c","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043d\u0442\u044f\u0431\u0440\u044c","\u041e\u043a\u0442\u044f\u0431\u0440\u044c","\u041d\u043e\u044f\u0431\u0440\u044c","\u0414\u0435\u043a\u0430\u0431\u0440\u044c"],monthNamesShort:["\u042f\u043d\u0432","\u0424\u0435\u0432","\u041c\u0430\u0440","\u0410\u043f\u0440","\u041c\u0430\u0439","\u0418\u044e\u043d","\u0418\u044e\u043b","\u0410\u0432\u0433","\u0421\u0435\u043d","\u041e\u043a\u0442","\u041d\u043e\u044f","\u0414\u0435\u043a"],dayNames:["\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435","\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a","\u0432\u0442\u043e\u0440\u043d\u0438\u043a","\u0441\u0440\u0435\u0434\u0430","\u0447\u0435\u0442\u0432\u0435\u0440\u0433","\u043f\u044f\u0442\u043d\u0438\u0446\u0430","\u0441\u0443\u0431\u0431\u043e\u0442\u0430"],dayNamesShort:["\u0432\u0441\u043a","\u043f\u043d\u0434","\u0432\u0442\u0440","\u0441\u0440\u0434","\u0447\u0442\u0432","\u043f\u0442\u043d","\u0441\u0431\u0442"],formatString:"%Y-%m-%d %H:%M:%S"},ar:{monthNames:["\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u062b\u0627\u0646\u064a","\u0634\u0628\u0627\u0637","\u0622\u0630\u0627\u0631","\u0646\u064a\u0633\u0627\u0646","\u0622\u0630\u0627\u0631","\u062d\u0632\u064a\u0631\u0627\u0646","\u062a\u0645\u0648\u0632","\u0622\u0628","\u0623\u064a\u0644\u0648\u0644","\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u0623\u0648\u0644","\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u062b\u0627\u0646\u064a","\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u0623\u0648\u0644"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["\u0627\u0644\u0633\u0628\u062a","\u0627\u0644\u0623\u062d\u062f","\u0627\u0644\u0627\u062b\u0646\u064a\u0646","\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621","\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621","\u0627\u0644\u062e\u0645\u064a\u0633","\u0627\u0644\u062c\u0645\u0639\u0629"],dayNamesShort:["\u0633\u0628\u062a","\u0623\u062d\u062f","\u0627\u062b\u0646\u064a\u0646","\u062b\u0644\u0627\u062b\u0627\u0621","\u0623\u0631\u0628\u0639\u0627\u0621","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639\u0629"],formatString:"%Y-%m-%d %H:%M:%S"},pt:{monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],dayNames:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],formatString:"%Y-%m-%d %H:%M:%S"},"pt-BR":{monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],dayNames:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],formatString:"%Y-%m-%d %H:%M:%S"},pl:{monthNames:["Stycze\u0144","Luty","Marzec","Kwiecie\u0144","Maj","Czerwiec","Lipiec","Sierpie\u0144","Wrzesie\u0144","Pa\u017adziernik","Listopad","Grudzie\u0144"],monthNamesShort:["Sty","Lut","Mar","Kwi","Maj","Cze","Lip","Sie","Wrz","Pa\u017a","Lis","Gru"],dayNames:["Niedziela","Poniedzia\u0142ek","Wtorek","\u015aroda","Czwartek","Pi\u0105tek","Sobota"],dayNamesShort:["Ni","Pn","Wt","\u015ar","Cz","Pt","Sb"],formatString:"%Y-%m-%d %H:%M:%S"},nl:{monthNames:["Januari","Februari","Maart","April","Mei","Juni","July","Augustus","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],dayNames:",".Zaterdag,dayNamesShort:["Zo","Ma","Di","Wo","Do","Vr","Za"],formatString:"%Y-%m-%d %H:%M:%S"},sv:{monthNames:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"],monthNamesShort:["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec"],dayNames:["s\xf6ndag","m\xe5ndag","tisdag","onsdag","torsdag","fredag","l\xf6rdag"],dayNamesShort:["s\xf6n","m\xe5n","tis","ons","tor","fre","l\xf6r"],formatString:"%Y-%m-%d %H:%M:%S"},it:{monthNames:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],monthNamesShort:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],dayNames:["Domenica","Lunedi","Martedi","Mercoledi","Giovedi","Venerdi","Sabato"],dayNamesShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],formatString:"%d-%m-%Y %H:%M:%S"}},we.regional["en-US"]=we.regional["en-GB"]=we.regional.en,we.regional.getLocale=function(){var a=we.config.defaultLocale;return document&&document.getElementsByTagName("html")&&document.getElementsByTagName("html")[0].lang&&(a=document.getElementsByTagName("html")[0].lang,we.regional.hasOwnProperty(a)||(a=we.config.defaultLocale)),a};var tt=function(a,h){return a=String(a),String(Math.pow(10,h-a.length)).slice(1).concat(a)},it={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:{add:function(a,h){it.year.add(a,Math[h>0?"floor":"ceil"](h/12));var n=a.getMonth()+h%12;12==n?(n=0,a.setYear(a.getFullYear()+1)):-1==n&&(n=11,a.setYear(a.getFullYear()-1)),a.setMonth(n)},diff:function(a,h){var n=a.getFullYear()-h.getFullYear();return a.getMonth()-h.getMonth()+12*n+(a.getDate()-h.getDate())/30}},year:{add:function(a,h){a.setYear(a.getFullYear()+Math[h>0?"floor":"ceil"](h))},diff:function(a,h){return it.month.diff(a,h)/12}}};for(var ot in it)"s"!=ot.substring(ot.length-1)&&(it[ot+"s"]=it[ot]);var Ot=function(a,h,n){if(we.formats[n].shortcuts[h])return we.strftime(a,we.formats[n].shortcuts[h],n);var r=(we.formats[n].codes[h]||"").split("."),d=a["get"+r[0]]?a["get"+r[0]]():"";return r[1]&&(d=tt(d,r[1])),d};we.strftime=function(a,h,n,r){var d="perl",E=we.regional.getLocale();n&&we.formats.hasOwnProperty(n)?d=n:n&&we.regional.hasOwnProperty(n)&&(E=n),r&&we.formats.hasOwnProperty(r)?d=r:r&&we.regional.hasOwnProperty(r)&&(E=r),("[object Object]"!=ne(a)||"jsDate"!=a._type)&&((a=new we(a)).locale=E),h||(h=a.formatString||we.regional[E].formatString);for(var F,I=h||"%Y-%m-%d",Y="";I.length>0;)(F=I.match(we.formats[d].codes.matcher))?(Y+=I.slice(0,F.index),Y+=(F[1]||"")+Ot(a,F[2],d),I=I.slice(F.index+F[0].length)):(Y+=I,I="");return Y},we.formats={ISO:"%Y-%m-%dT%H:%M:%S.%N%G",SQL:"%Y-%m-%d %H:%M:%S"},we.formats.perl={codes:{matcher:/()%(#?(%|[a-z]))/i,Y:"FullYear",y:"ShortYear.2",m:"MonthNumber.2","#m":"MonthNumber",B:"MonthName",b:"AbbrMonthName",d:"Date.2","#d":"Date",e:"Date",A:"DayName",a:"AbbrDayName",w:"Day",H:"Hours.2","#H":"Hours",I:"Hours12.2","#I":"Hours12",p:"AMPM",M:"Minutes.2","#M":"Minutes",S:"Seconds.2","#S":"Seconds",s:"Unix",N:"Milliseconds.3","#N":"Milliseconds",O:"TimezoneOffset",Z:"TimezoneName",G:"GmtOffset"},shortcuts:{F:"%Y-%m-%d",T:"%H:%M:%S",X:"%H:%M:%S",x:"%m/%d/%y",D:"%m/%d/%y","#c":"%a %b %e %H:%M:%S %Y",v:"%e-%b-%Y",R:"%H:%M",r:"%I:%M:%S %p",t:"\t",n:"\n","%":"%"}},we.formats.php={codes:{matcher:/()%((%|[a-z]))/i,a:"AbbrDayName",A:"DayName",d:"Date.2",e:"Date",j:"DayOfYear.3",u:"DayOfWeek",w:"Day",U:"FullWeekOfYear.2",V:"IsoWeek.2",W:"WeekOfYear.2",b:"AbbrMonthName",B:"MonthName",m:"MonthNumber.2",h:"AbbrMonthName",C:"Century.2",y:"ShortYear.2",Y:"FullYear",H:"Hours.2",I:"Hours12.2",l:"Hours12",p:"AMPM",P:"AmPm",M:"Minutes.2",S:"Seconds.2",s:"Unix",O:"TimezoneOffset",z:"GmtOffset",Z:"TimezoneAbbr"},shortcuts:{D:"%m/%d/%y",F:"%Y-%m-%d",T:"%H:%M:%S",X:"%H:%M:%S",x:"%m/%d/%y",R:"%H:%M",r:"%I:%M:%S %p",t:"\t",n:"\n","%":"%"}},we.createDate=function(a){function h(he,be){var qe,Ee,je,Ie=parseFloat(be[1]),Ne=parseFloat(be[2]),We=parseFloat(be[3]),$e=we.config.defaultCentury;return Ie>31?(Ee=We,je=Ne,qe=$e+Ie):(Ee=Ne,je=Ie,qe=$e+We),he.replace(/^([0-9]{1,2})[-\/]([0-9]{1,2})[-\/]([0-9]{1,2})/,je+"/"+Ee+"/"+qe)}if(null==a)return new Date;if(a instanceof Date)return a;if("number"==typeof a)return new Date(a);var E,n=String(a).replace(/^\s*(.+)\s*$/g,"$1");if((E=(n=(n=n.replace(/^([0-9]{1,4})-([0-9]{1,2})-([0-9]{1,4})/,"$1/$2/$3")).replace(/^(3[01]|[0-2]?\d)[-\/]([a-z]{3,})[-\/](\d{4})/i,"$1 $2 $3")).match(/^(3[01]|[0-2]?\d)[-\/]([a-z]{3,})[-\/](\d{2})\D*/i))&&E.length>3){var r=parseFloat(E[3]),d=we.config.defaultCentury+r;d=String(d),n=n.replace(/^(3[01]|[0-2]?\d)[-\/]([a-z]{3,})[-\/](\d{2})\D*/i,E[1]+" "+E[2]+" "+d)}(E=n.match(/^([0-9]{1,2})[-\/]([0-9]{1,2})[-\/]([0-9]{1,2})[^0-9]/))&&E.length>3&&(n=h(n,E)),(E=n.match(/^([0-9]{1,2})[-\/]([0-9]{1,2})[-\/]([0-9]{1,2})$/))&&E.length>3&&(n=h(n,E));for(var F,I,Y,V=0,ie=we.matchers.length,re=n;ie>V;){if(I=Date.parse(re),!isNaN(I))return new Date(I);if("function"==typeof(F=we.matchers[V])){if((Y=F.call(we,re))instanceof Date)return Y}else re=n.replace(F[0],F[1]);V++}return NaN},we.daysInMonth=function(a,h){return 2==h?29==new Date(a,1,29).getDate()?29:28:[te,31,te,31,30,31,30,31,31,30,31,30,31][h]},we.matchers=[[/(3[01]|[0-2]\d)\s*\.\s*(1[0-2]|0\d)\s*\.\s*([1-9]\d{3})/,"$2/$1/$3"],[/([1-9]\d{3})\s*-\s*(1[0-2]|0\d)\s*-\s*(3[01]|[0-2]\d)/,"$2/$3/$1"],function(a){var h=a.match(/^(?:(.+)\s+)?([012]?\d)(?:\s*\:\s*(\d\d))?(?:\s*\:\s*(\d\d(\.\d*)?))?\s*(am|pm)?\s*$/i);if(h){if(h[1]){var n=this.createDate(h[1]);if(isNaN(n))return}else(n=new Date).setMilliseconds(0);var r=parseFloat(h[2]);return h[6]&&(r="am"==h[6].toLowerCase()?12==r?0:r:12==r?12:r+12),n.setHours(r,parseInt(h[3]||0,10),parseInt(h[4]||0,10),1e3*(parseFloat(h[5]||0)||0)),n}return a},function(a){var h=a.match(/^(?:(.+))[T|\s+]([012]\d)(?:\:(\d\d))(?:\:(\d\d))(?:\.\d+)([\+\-]\d\d\:\d\d)$/i);if(h){if(h[1]){var n=this.createDate(h[1]);if(isNaN(n))return}else(n=new Date).setMilliseconds(0);var r=parseFloat(h[2]);return n.setHours(r,parseInt(h[3],10),parseInt(h[4],10),1e3*parseFloat(h[5])),n}return a},function(a){var h=a.match(/^([0-3]?\d)\s*[-\/.\s]{1}\s*([a-zA-Z]{3,9})\s*[-\/.\s]{1}\s*([0-3]?\d)$/);if(h){var n,r,Y,d=new Date,E=we.config.defaultCentury,F=parseFloat(h[1]),I=parseFloat(h[3]);return F>31?(r=I,n=E+F):(r=F,n=E+I),-1==(Y=G(h[2],we.regional[we.regional.getLocale()].monthNamesShort))&&(Y=G(h[2],we.regional[we.regional.getLocale()].monthNames)),d.setFullYear(n,Y,r),d.setHours(0,0,0,0),d}return a}],i.jsDate=we,i.jqplot.sprintf=function(){function a(Y,V,ie,re){var he=Y.length>=V?"":Array(1+V-Y.length>>>0).join(ie);return re?Y+he:he+Y}function h(Y){for(var V=new String(Y),ie=10;ie>0&&V!=(V=V.replace(/^(\d+)(\d{3})/,"$1"+i.jqplot.sprintf.thousandsSeparator+"$2"));ie--);return V}function n(Y,V,ie,re,he,be){var qe=re-Y.length;if(qe>0){var Ee=" ";be&&(Ee=" "),Y=ie||!he?a(Y,re,Ee,ie):Y.slice(0,V.length)+a("",qe,"0",!0)+Y.slice(V.length)}return Y}function r(Y,V,ie,re,he,be,qe,Ee){var je=Y>>>0;return n(Y=(ie=ie&&je&&{2:"0b",8:"0",16:"0x"}[V]||"")+a(je.toString(V),be||0,"0",!1),ie,re,he,qe,Ee)}function d(Y,V,ie,re,he,be){return null!=re&&(Y=Y.slice(0,re)),n(Y,"",V,ie,he,be)}var E=arguments,F=0,I=E[F++];return I.replace(i.jqplot.sprintf.regex,function(Y,V,ie,re,he,be,qe){if("%%"==Y)return"%";for(var Ee=!1,je="",Ke=!1,Ie=!1,Ne=!1,We=!1,$e=0;ie&&$e<ie.length;$e++)switch(ie.charAt($e)){case" ":je=" ";break;case"+":je="+";break;case"-":Ee=!0;break;case"0":Ke=!0;break;case"#":Ie=!0;break;case"&":Ne=!0;break;case"'":We=!0}if(0>(re=re?"*"==re?+E[F++]:"*"==re.charAt(0)?+E[re.slice(1,-1)]:+re:0)&&(re=-re,Ee=!0),!isFinite(re))throw new Error("$.jqplot.sprintf: (minimum-)width must be finite");be=be?"*"==be?+E[F++]:"*"==be.charAt(0)?+E[be.slice(1,-1)]:+be:"fFeE".indexOf(qe)>-1?6:"d"==qe?0:void 0;var Qe=V?E[V.slice(0,-1)]:E[F++];switch(qe){case"s":return null==Qe?"":d(String(Qe),Ee,re,be,Ke,Ne);case"c":return d(String.fromCharCode(+Qe),Ee,re,be,Ke,Ne);case"b":return r(Qe,2,Ie,Ee,re,be,Ke,Ne);case"o":return r(Qe,8,Ie,Ee,re,be,Ke,Ne);case"x":return r(Qe,16,Ie,Ee,re,be,Ke,Ne);case"X":return r(Qe,16,Ie,Ee,re,be,Ke,Ne).toUpperCase();case"u":return r(Qe,10,Ie,Ee,re,be,Ke,Ne);case"i":var ft=parseInt(+Qe,10);return isNaN(ft)?"":n(Qe=(gt=0>ft?"-":je)+a(We?h(String(Math.abs(ft))):String(Math.abs(ft)),be,"0",!1),gt,Ee,re,Ke,Ne);case"d":return ft=Math.round(+Qe),isNaN(ft)?"":n(Qe=(gt=0>ft?"-":je)+a(We?h(String(Math.abs(ft))):String(Math.abs(ft)),be,"0",!1),gt,Ee,re,Ke,Ne);case"e":case"E":case"f":case"F":case"g":case"G":if(ft=+Qe,isNaN(ft))return"";var gt=0>ft?"-":je,rt=["toExponential","toFixed","toPrecision"]["efg".indexOf(qe.toLowerCase())],yt=["toString","toUpperCase"]["eEfFgG".indexOf(qe)%2];return(vt=Math.abs(ft)[rt](be).toString().split("."))[0]=We?h(vt[0]):vt[0],n(Qe=gt+vt.join(i.jqplot.sprintf.decimalMark),gt,Ee,re,Ke,Ne)[yt]();case"p":case"P":if(ft=+Qe,isNaN(ft))return"";gt=0>ft?"-":je;var vt,bt=-1!=(vt=String(Number(Math.abs(ft)).toExponential()).split(/e|E/))[0].indexOf(".")?vt[0].length-1:String(ft).length,Pt=vt[1]<0?-vt[1]-1:0;if(Math.abs(ft)<1)Qe=be>=bt+Pt?gt+Math.abs(ft).toPrecision(bt):be-1>=bt?gt+Math.abs(ft).toExponential(bt-1):gt+Math.abs(ft).toExponential(be-1);else{var Bt=be>=bt?bt:be;Qe=gt+Math.abs(ft).toPrecision(Bt)}return yt=["toString","toUpperCase"]["pP".indexOf(qe)%2],n(Qe,gt,Ee,re,Ke,Ne)[yt]();case"n":return"";default:return Y}})},i.jqplot.sprintf.thousandsSeparator=",",i.jqplot.sprintf.decimalMark=".",i.jqplot.sprintf.regex=/%%|%(\d+\$)?([-+#0&\' ]*)(\*\d+\$|\*|\d+)?(\.(\*\d+\$|\*|\d+))?([nAscboxXuidfegpEGP])/g,i.jqplot.getSignificantFigures=function(a){var h=String(Number(Math.abs(a)).toExponential()).split(/e|E/),n=-1!=h[0].indexOf(".")?h[0].length-1:h[0].length,r=h[1]<0?-h[1]-1:0,d=parseInt(h[1],10),E=d+1>0?d+1:0;return{significantDigits:n,digitsLeft:E,digitsRight:E>=n?0:n-d-1,zeros:r,exponent:d}},i.jqplot.getPrecision=function(a){return i.jqplot.getSignificantFigures(a).digitsRight};var Et=!1!==i.uiBackCompat;i.jqplot.effects={effect:{}};var ae="jqplot.storage.";i.extend(i.jqplot.effects,{version:"1.9pre",save:function(a,h){for(var n=0;n<h.length;n++)null!==h[n]&&a.data(ae+h[n],a[0].style[h[n]])},restore:function(a,h){for(var n=0;n<h.length;n++)null!==h[n]&&a.css(h[n],a.data(ae+h[n]))},setMode:function(a,h){return"toggle"===h&&(h=a.is(":hidden")?"show":"hide"),h},createWrapper:function(a){if(a.parent().is(".ui-effects-wrapper"))return a.parent();var h={width:a.outerWidth(!0),height:a.outerHeight(!0),float:a.css("float")},n=i("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),r={width:a.width(),height:a.height()},d=document.activeElement;return a.wrap(n),(a[0]===d||i.contains(a[0],d))&&i(d).focus(),n=a.parent(),"static"===a.css("position")?(n.css({position:"relative"}),a.css({position:"relative"})):(i.extend(h,{position:a.css("position"),zIndex:a.css("z-index")}),i.each(["top","left","bottom","right"],function(E,F){h[F]=a.css(F),isNaN(parseInt(h[F],10))&&(h[F]="auto")}),a.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),a.css(r),n.css(h).show()},removeWrapper:function(a){var h=document.activeElement;return a.parent().is(".ui-effects-wrapper")&&(a.parent().replaceWith(a),(a[0]===h||i.contains(a[0],h))&&i(h).focus()),a}}),i.fn.extend({jqplotEffect:function(a,h,n,r){function d(ie){function re(){i.isFunction(be)&&be.call(he[0]),i.isFunction(ie)&&ie()}var he=i(this),be=E.complete,qe=E.mode;(he.is(":hidden")?"hide"===qe:"show"===qe)?re():Y.call(he[0],E,re)}var E=Z.apply(this,arguments),F=E.mode,I=E.queue,Y=i.jqplot.effects.effect[E.effect],V=!Y&&Et&&i.jqplot.effects[E.effect];return i.fx.off||!Y&&!V?F?this[F](E.duration,E.complete):this.each(function(){E.complete&&E.complete.call(this)}):Y?!1===I?this.each(d):this.queue(I||"fx",d):V.call(this,{options:E,duration:E.duration,callback:E.complete,mode:E.mode})}});var oe=/up|down|vertical/,fe=/up|left|vertical|horizontal/;i.jqplot.effects.effect.blind=function(a,h){var n,r,d,E=i(this),F=["position","top","bottom","left","right","height","width"],I=i.jqplot.effects.setMode(E,a.mode||"hide"),Y=a.direction||"up",V=oe.test(Y),ie=V?"height":"width",re=V?"top":"left",he=fe.test(Y),be={},qe="show"===I;E.parent().is(".ui-effects-wrapper")?i.jqplot.effects.save(E.parent(),F):i.jqplot.effects.save(E,F),E.show(),d=parseInt(E.css("top"),10),n=i.jqplot.effects.createWrapper(E).css({overflow:"hidden"}),r=V?n[ie]()+d:n[ie](),be[ie]=qe?String(r):"0",he||(E.css(V?"bottom":"right",0).css(V?"top":"left","").css({position:"absolute"}),be[re]=qe?"0":String(r)),qe&&(n.css(ie,0),he||n.css(re,r)),n.animate(be,{duration:a.duration,easing:a.easing,queue:!1,complete:function(){"hide"===I&&E.hide(),i.jqplot.effects.restore(E,F),i.jqplot.effects.removeWrapper(E),h()}})}}(jQuery),function(i){i.jqplot.DateAxisRenderer=function(){i.jqplot.LinearAxisRenderer.call(this),this.date=new i.jsDate};var f=1e3,g=60*f,j=60*g,l=24*j,S=7*l,w=30.4368499*l,k=365.242199*l,m=["%M:%S.%#N","%M:%S.%#N","%M:%S.%#N","%M:%S","%M:%S","%M:%S","%M:%S","%H:%M:%S","%H:%M:%S","%H:%M","%H:%M","%H:%M","%H:%M","%H:%M","%H:%M","%a %H:%M","%a %H:%M","%b %e %H:%M","%b %e %H:%M","%b %e %H:%M","%b %e %H:%M","%v","%v","%v","%v","%v","%v","%v"],v=[100,200,500,f,2*f,5*f,10*f,15*f,30*f,g,2*g,5*g,10*g,15*g,30*g,j,2*j,4*j,6*j,8*j,12*j,l,2*l,3*l,4*l,5*l,S,2*S];i.jqplot.DateAxisRenderer.prototype=new i.jqplot.LinearAxisRenderer,i.jqplot.DateAxisRenderer.prototype.constructor=i.jqplot.DateAxisRenderer,i.jqplot.DateTickFormatter=function(T,M){return T||(T="%Y/%m/%d"),i.jsDate.strftime(M,T)},i.jqplot.DateAxisRenderer.prototype.init=function(T){this.tickOptions.formatter=i.jqplot.DateTickFormatter,this.tickInset=0,this.drawBaseline=!0,this.baselineWidth=null,this.baselineColor=null,this.daTickInterval=null,this._daTickInterval=null,i.extend(!0,this,T);for(var O,b,A,c,P,B,q,M=this._dataBounds,o=0;o<this._series.length;o++){O={intervals:[],frequencies:{},sortedIntervals:[],min:null,max:null,mean:null},b=0,c=(A=this._series[o]).data,P=A._plotData,B=A._stackData,q=0;for(var y=0;y<c.length;y++)"xaxis"==this.name||"x2axis"==this.name?(c[y][0]=new i.jsDate(c[y][0]).getTime(),P[y][0]=new i.jsDate(c[y][0]).getTime(),B[y][0]=new i.jsDate(c[y][0]).getTime(),(null!=c[y][0]&&c[y][0]<M.min||null==M.min)&&(M.min=c[y][0]),(null!=c[y][0]&&c[y][0]>M.max||null==M.max)&&(M.max=c[y][0]),y>0&&(q=Math.abs(c[y][0]-c[y-1][0]),O.intervals.push(q),O.frequencies.hasOwnProperty(q)?O.frequencies[q]+=1:O.frequencies[q]=1),b+=q):(c[y][1]=new i.jsDate(c[y][1]).getTime(),P[y][1]=new i.jsDate(c[y][1]).getTime(),B[y][1]=new i.jsDate(c[y][1]).getTime(),(null!=c[y][1]&&c[y][1]<M.min||null==M.min)&&(M.min=c[y][1]),(null!=c[y][1]&&c[y][1]>M.max||null==M.max)&&(M.max=c[y][1]),y>0&&(q=Math.abs(c[y][1]-c[y-1][1]),O.intervals.push(q),O.frequencies.hasOwnProperty(q)?O.frequencies[q]+=1:O.frequencies[q]=1)),b+=q;if(A.renderer.bands){if(A.renderer.bands.hiData.length){y=0;for(var R=(_=A.renderer.bands.hiData).length;y<R;y++)"xaxis"===this.name||"x2axis"===this.name?(_[y][0]=new i.jsDate(_[y][0]).getTime(),(null!=_[y][0]&&_[y][0]>M.max||null==M.max)&&(M.max=_[y][0])):(_[y][1]=new i.jsDate(_[y][1]).getTime(),(null!=_[y][1]&&_[y][1]>M.max||null==M.max)&&(M.max=_[y][1]))}var _;if(A.renderer.bands.lowData.length)for(y=0,R=(_=A.renderer.bands.lowData).length;y<R;y++)"xaxis"===this.name||"x2axis"===this.name?(_[y][0]=new i.jsDate(_[y][0]).getTime(),(null!=_[y][0]&&_[y][0]<M.min||null==M.min)&&(M.min=_[y][0])):(_[y][1]=new i.jsDate(_[y][1]).getTime(),(null!=_[y][1]&&_[y][1]<M.min||null==M.min)&&(M.min=_[y][1]))}for(var G in O.frequencies)O.sortedIntervals.push({interval:G,frequency:O.frequencies[G]});O.sortedIntervals.sort(function(ne,Z){return Z.frequency-ne.frequency}),O.min=i.jqplot.arrayMin(O.intervals),O.max=i.jqplot.arrayMax(O.intervals),O.mean=b/c.length,this._intervalStats.push(O),O=b=A=c=P=B=null}M=null},i.jqplot.DateAxisRenderer.prototype.reset=function(){this.min=this._options.min,this.max=this._options.max,this.tickInterval=this._options.tickInterval,this.numberTicks=this._options.numberTicks,this._autoFormatString="",this._overrideFormatString&&this.tickOptions&&this.tickOptions.formatString&&(this.tickOptions.formatString=""),this.daTickInterval=this._daTickInterval},i.jqplot.DateAxisRenderer.prototype.createTicks=function(T){var o,R,O=this.ticks,b=this.name,A=this._dataBounds,P="x"===this.name.charAt(0)?this._plotDimensions.width:this._plotDimensions.height,G=1,ne=null;if(null!=this.tickInterval)if(Number(this.tickInterval))ne=[Number(this.tickInterval),"seconds"];else if("string"==typeof this.tickInterval){var Z=this.tickInterval.split(" ");1==Z.length?ne=[1,Z[0]]:2==Z.length&&(ne=[Z[0],Z[1]])}q=new i.jsDate(null!=this.min?this.min:A.min).getTime(),o=new i.jsDate(null!=this.max?this.max:A.max).getTime();var ge=T.plugins.cursor;ge&&ge._zoom&&ge._zoom.zooming&&(this.min=null,this.max=null);var Q=o-q;if((null==this.tickOptions||!this.tickOptions.formatString)&&(this._overrideFormatString=!0),O.length){for(N=0;N<O.length;N++){var J=O[N],U=new this.tickRenderer(this.tickOptions);J.constructor==Array?(U.value=new i.jsDate(J[0]).getTime(),U.label=J[1],this.showTicks?this.showTickMarks||(U.showMark=!1):(U.showLabel=!1,U.showMark=!1),U.setTick(U.value,this.name),this._ticks.push(U)):(U.value=new i.jsDate(J).getTime(),this.showTicks?this.showTickMarks||(U.showMark=!1):(U.showLabel=!1,U.showMark=!1),U.setTick(U.value,this.name),this._ticks.push(U))}this.numberTicks=O.length,this.min=this._ticks[0].value,this.max=this._ticks[this.numberTicks-1].value,this.daTickInterval=[(this.max-this.min)/(this.numberTicks-1)/1e3,"seconds"]}else if(null==this.min&&null==this.max&&A.min==A.max){var se=i.extend(!0,{},this.tickOptions,{name:this.name,value:null}),de=3e5;this.min=A.min-de,this.max=A.max+de,this.numberTicks=3;for(var N=this.min;N<=this.max;N+=de)se.value=N,U=new this.tickRenderer(se),this._overrideFormatString&&""!=this._autoFormatString&&(U.formatString=this._autoFormatString),U.showLabel=!1,U.showMark=!1,this._ticks.push(U);this.showTicks&&(this._ticks[1].showLabel=!0),this.showTickMarks&&(this._ticks[1].showTickMarks=!0)}else if(null==this.min&&null==this.max){var Se,ce,me=i.extend(!0,{},this.tickOptions,{name:this.name,value:null});if(this.tickInterval||this.numberTicks)this.tickInterval?ce=new i.jsDate(0).add(ne[0],ne[1]).getTime():this.numberTicks&&(ce=(o-q)/((Se=this.numberTicks)-1));else{var xe=Math.max(P,31),Re=115;this.tickRenderer===i.jqplot.CanvasAxisTickRenderer&&this.tickOptions.angle&&(Re=115-40*Math.abs(Math.sin(this.tickOptions.angle/180*Math.PI))),ce=(o-q)/((Se=Math.ceil((xe-30)/Re+1))-1)}if(ce<=19*l){var Oe=function C(T,M,O){for(var A,c,P,b=Number.MAX_VALUE,B=0,q=v.length;B<q;B++)(A=Math.abs(O-v[B]))<b&&(b=A,c=v[B],P=m[B]);return[c,P]}(0,0,ce),we=Oe[0];for(this._autoFormatString=Oe[1],q=new i.jsDate(q),q=Math.floor((q.getTime()-q.getUtcOffset())/we)*we+q.getUtcOffset(),Se=Math.ceil((o-q)/we)+1,this.min=q,this.max=q+(Se-1)*we,this.max<o&&(this.max+=we,Se+=1),this.tickInterval=we,this.numberTicks=Se,N=0;N<Se;N++)me.value=this.min+N*we,U=new this.tickRenderer(me),this._overrideFormatString&&""!=this._autoFormatString&&(U.formatString=this._autoFormatString),this.showTicks?this.showTickMarks||(U.showMark=!1):(U.showLabel=!1,U.showMark=!1),this._ticks.push(U);G=this.tickInterval}else if(ce<=9*w){this._autoFormatString="%v",(Ue=Math.round(ce/w))<1?Ue=1:Ue>6&&(Ue=6);var tt=new i.jsDate(q).setDate(1).setHours(0,0,0,0),it=new i.jsDate(o),ot=new i.jsDate(o).setDate(1).setHours(0,0,0,0);it.getTime()!==ot.getTime()&&(ot=ot.add(1,"month"));var Ot=ot.diff(tt,"month");for(Se=Math.ceil(Ot/Ue)+1,this.min=tt.getTime(),this.max=tt.clone().add((Se-1)*Ue,"month").getTime(),this.numberTicks=Se,N=0;N<Se;N++)me.value=0===N?tt.getTime():tt.add(Ue,"month").getTime(),U=new this.tickRenderer(me),this._overrideFormatString&&""!=this._autoFormatString&&(U.formatString=this._autoFormatString),this.showTicks?this.showTickMarks||(U.showMark=!1):(U.showLabel=!1,U.showMark=!1),this._ticks.push(U);G=Ue*w}else{var Ue;this._autoFormatString="%v",(Ue=Math.round(ce/k))<1&&(Ue=1),tt=new i.jsDate(q).setMonth(0,1).setHours(0,0,0,0);var Et=(ot=new i.jsDate(o).add(1,"year").setMonth(0,1).setHours(0,0,0,0)).diff(tt,"year");for(Se=Math.ceil(Et/Ue)+1,this.min=tt.getTime(),this.max=tt.clone().add((Se-1)*Ue,"year").getTime(),this.numberTicks=Se,N=0;N<Se;N++)me.value=0===N?tt.getTime():tt.add(Ue,"year").getTime(),U=new this.tickRenderer(me),this._overrideFormatString&&""!=this._autoFormatString&&(U.formatString=this._autoFormatString),this.showTicks?this.showTickMarks||(U.showMark=!1):(U.showLabel=!1,U.showMark=!1),this._ticks.push(U);G=Ue*k}}else{var fe,a;if(P="xaxis"==b||"x2axis"==b?this._plotDimensions.width:this._plotDimensions.height,null!=this.min&&null!=this.max&&null!=this.numberTicks&&(this.tickInterval=null),null!=this.tickInterval&&null!=ne&&(this.daTickInterval=ne),q==o&&(q-=432e5,o+=432e5),Q=o-q,parseInt(Math.max(0,P-100)/100,10),fe=null!=this.min?new i.jsDate(this.min).getTime():q-Q/2*(this.padMin-1),a=null!=this.max?new i.jsDate(this.max).getTime():o+Q/2*(this.padMax-1),this.min=fe,this.max=a,Q=this.max-this.min,null==this.numberTicks)if(null!=this.daTickInterval){var h=new i.jsDate(this.max).diff(this.min,this.daTickInterval[1],!0);this.numberTicks=Math.ceil(h/this.daTickInterval[0])+1,this.max=new i.jsDate(this.min).add((this.numberTicks-1)*this.daTickInterval[0],this.daTickInterval[1]).getTime()}else this.numberTicks=P>200?parseInt(3+(P-200)/100,10):2;for(G=Q/(this.numberTicks-1)/1e3,null==this.daTickInterval&&(this.daTickInterval=[G,"seconds"]),N=0;N<this.numberTicks;N++){var q;R=(q=new i.jsDate(this.min)).add(N*this.daTickInterval[0],this.daTickInterval[1]).getTime(),U=new this.tickRenderer(this.tickOptions),this.showTicks?this.showTickMarks||(U.showMark=!1):(U.showLabel=!1,U.showMark=!1),U.setTick(R,this.name),this._ticks.push(U)}}this.tickInset&&(this.min=this.min-this.tickInset*G,this.max=this.max+this.tickInset*G),null==this._daTickInterval&&(this._daTickInterval=this.daTickInterval)}}(jQuery),function(i){i.jqplot.EnhancedLegendRenderer=function(){i.jqplot.TableLegendRenderer.call(this)},i.jqplot.EnhancedLegendRenderer.prototype=new i.jqplot.TableLegendRenderer,i.jqplot.EnhancedLegendRenderer.prototype.constructor=i.jqplot.EnhancedLegendRenderer,i.jqplot.EnhancedLegendRenderer.prototype.init=function(j){this.numberRows=null,this.numberColumns=null,this.seriesToggle="normal",this.seriesToggleReplot=!1,this.disableIEFading=!0,i.extend(!0,this,j),this.seriesToggle&&i.jqplot.postDrawHooks.push(g)},i.jqplot.EnhancedLegendRenderer.prototype.draw=function(j,l){if(this.show){var k,w=this._series,p="position:absolute;";p+=this.background?"background:"+this.background+";":"",p+=this.border?"border:"+this.border+";":"",p+=this.fontSize?"font-size:"+this.fontSize+";":"",p+=this.fontFamily?"font-family:"+this.fontFamily+";":"",p+=this.textColor?"color:"+this.textColor+";":"",p+=null!=this.marginTop?"margin-top:"+this.marginTop+";":"",p+=null!=this.marginBottom?"margin-bottom:"+this.marginBottom+";":"",p+=null!=this.marginLeft?"margin-left:"+this.marginLeft+";":"",this._elem=i('<table class="jqplot-table-legend" style="'+(p+=null!=this.marginRight?"margin-right:"+this.marginRight+";":"")+'"></table>'),this.seriesToggle&&this._elem.css("z-index","3");var u,C,v=!1;this.numberRows?(u=this.numberRows,C=this.numberColumns?this.numberColumns:Math.ceil(w.length/u)):this.numberColumns?(C=this.numberColumns,u=Math.ceil(w.length/this.numberColumns)):(u=w.length,C=1);var T,M,O,b,A,c,P,q,o,y=0;for(T=w.length-1;T>=0;T--)(1==C&&w[T]._stack||w[T].renderer.constructor==i.jqplot.BezierCurveRenderer)&&(v=!0);for(T=0;T<u;T++){for((O=i(document.createElement("tr"))).addClass("jqplot-table-legend"),v?O.prependTo(this._elem):O.appendTo(this._elem),M=0;M<C;M++){if(y<w.length&&(w[y].show||w[y].showLabel)&&(k=w[y],c=this.labels[y]||k.label.toString())){var R,_=k.color;P=(v?T!=u-1:T>0)?this.rowSpacing:"0",(b=i(document.createElement("td"))).addClass("jqplot-table-legend jqplot-table-legend-swatch"),b.css({textAlign:"center",paddingTop:P}),(q=i(document.createElement("div"))).addClass("jqplot-table-legend-swatch-outline"),(o=i(document.createElement("div"))).addClass("jqplot-table-legend-swatch"),o.css({backgroundColor:_,borderColor:_}),b.append(q.append(o)),(A=i(document.createElement("td"))).addClass("jqplot-table-legend jqplot-table-legend-label"),A.css("paddingTop",P),this.escapeHtml?A.text(c):A.html(c),v?(this.showLabels&&A.prependTo(O),this.showSwatches&&b.prependTo(O)):(this.showSwatches&&b.appendTo(O),this.showLabels&&A.appendTo(O)),this.seriesToggle&&(("string"==typeof this.seriesToggle||"number"==typeof this.seriesToggle)&&(!i.jqplot.use_excanvas||!this.disableIEFading)&&(R=this.seriesToggle),this.showSwatches&&(b.bind("click",{series:k,speed:R,plot:l,replot:this.seriesToggleReplot},f),b.addClass("jqplot-seriesToggle")),this.showLabels&&(A.bind("click",{series:k,speed:R,plot:l,replot:this.seriesToggleReplot},f),A.addClass("jqplot-seriesToggle")),!k.show&&k.showLabel&&(b.addClass("jqplot-series-hidden"),A.addClass("jqplot-series-hidden")))}y++}b=A=q=o=null}}return this._elem};var f=function(j){var l=j.data,S=l.series,w=l.replot,k=l.plot,p=l.speed,m=S.index,v=!1;(S.canvas._elem.is(":hidden")||!S.show)&&(v=!0),S.toggleDisplay(j,function(){if(w){var C={};i.isPlainObject(w)&&i.extend(!0,C,w),k.replot(C),v&&p&&((T=k.series[m]).shadowCanvas._elem&&T.shadowCanvas._elem.hide().fadeIn(p),T.canvas._elem.hide().fadeIn(p),T.canvas._elem.nextAll(".jqplot-point-label.jqplot-series-"+T.index).hide().fadeIn(p))}else{var T;(T=k.series[m]).canvas._elem.is(":hidden")||!T.show?((void 0===k.options.legend.showSwatches||!0===k.options.legend.showSwatches)&&k.legend._elem.find("td").eq(2*m).addClass("jqplot-series-hidden"),(void 0===k.options.legend.showLabels||!0===k.options.legend.showLabels)&&k.legend._elem.find("td").eq(2*m+1).addClass("jqplot-series-hidden")):((void 0===k.options.legend.showSwatches||!0===k.options.legend.showSwatches)&&k.legend._elem.find("td").eq(2*m).removeClass("jqplot-series-hidden"),(void 0===k.options.legend.showLabels||!0===k.options.legend.showLabels)&&k.legend._elem.find("td").eq(2*m+1).removeClass("jqplot-series-hidden"))}})},g=function(){if(this.legend.renderer.constructor==i.jqplot.EnhancedLegendRenderer&&this.legend.seriesToggle){var j=this.legend._elem.detach();this.eventCanvas._elem.after(j)}}}(jQuery),function(i){i.jqplot.CanvasAxisLabelRenderer=function(f){this.angle=0,this.show=!0,this.showLabel=!0,this.label="",this.fontFamily='"Trebuchet MS", Arial, Helvetica, sans-serif',this.fontSize="11pt",this.fontWeight="normal",this.fontStretch=1,this.textColor="#666666",this.enableFontSupport=!0,this.pt2px=null,this._plotDimensions={height:null,width:null},i.extend(!0,this,f),null==f.angle&&"xaxis"!=this.axis&&"x2axis"!=this.axis&&(this.angle=-90);var g={fontSize:this.fontSize,fontWeight:this.fontWeight,fontStretch:this.fontStretch,fillStyle:this.textColor,angle:this.getAngleRad(),fontFamily:this.fontFamily};this.pt2px&&(g.pt2px=this.pt2px),this._textRenderer=this.enableFontSupport&&i.jqplot.support_canvas_text()?new i.jqplot.CanvasFontRenderer(g):new i.jqplot.CanvasTextRenderer(g)},i.jqplot.CanvasAxisLabelRenderer.prototype.init=function(f){i.extend(!0,this,f),this._textRenderer.init({fontSize:this.fontSize,fontWeight:this.fontWeight,fontStretch:this.fontStretch,fillStyle:this.textColor,angle:this.getAngleRad(),fontFamily:this.fontFamily})},i.jqplot.CanvasAxisLabelRenderer.prototype.getWidth=function(f){if(this._elem)return this._elem.outerWidth(!0);var g=this._textRenderer,j=g.getWidth(f),l=g.getHeight(f);return Math.abs(Math.sin(g.angle)*l)+Math.abs(Math.cos(g.angle)*j)},i.jqplot.CanvasAxisLabelRenderer.prototype.getHeight=function(f){if(this._elem)return this._elem.outerHeight(!0);var g=this._textRenderer,j=g.getWidth(f),l=g.getHeight(f);return Math.abs(Math.cos(g.angle)*l)+Math.abs(Math.sin(g.angle)*j)},i.jqplot.CanvasAxisLabelRenderer.prototype.getAngleRad=function(){return this.angle*Math.PI/180},i.jqplot.CanvasAxisLabelRenderer.prototype.draw=function(f,g){this._elem&&(i.jqplot.use_excanvas&&void 0!==window.G_vmlCanvasManager.uninitElement&&window.G_vmlCanvasManager.uninitElement(this._elem.get(0)),this._elem.emptyForce(),this._elem=null);var j=g.canvasManager.getCanvas();this._textRenderer.setText(this.label,f);var l=this.getWidth(f),S=this.getHeight(f);return j.width=l,j.height=S,j.style.width=l,j.style.height=S,j=g.canvasManager.initCanvas(j),this._elem=i(j),this._elem.css({position:"absolute"}),this._elem.addClass("jqplot-"+this.axis+"-label"),j=null,this._elem},i.jqplot.CanvasAxisLabelRenderer.prototype.pack=function(){this._textRenderer.draw(this._elem.get(0).getContext("2d"),this.label)}}(jQuery),function(i){i.jqplot.CanvasAxisTickRenderer=function(f){this.mark="outside",this.showMark=!0,this.showGridline=!0,this.isMinorTick=!1,this.angle=0,this.markSize=4,this.show=!0,this.showLabel=!0,this.labelPosition="auto",this.label="",this.value=null,this._styles={},this.formatter=i.jqplot.DefaultTickFormatter,this.formatString="",this.prefix="",this.fontFamily='"Trebuchet MS", Arial, Helvetica, sans-serif',this.fontSize="10pt",this.fontWeight="normal",this.fontStretch=1,this.textColor="#666666",this.enableFontSupport=!0,this.pt2px=null,this._plotDimensions={height:null,width:null},i.extend(!0,this,f);var g={fontSize:this.fontSize,fontWeight:this.fontWeight,fontStretch:this.fontStretch,fillStyle:this.textColor,angle:this.getAngleRad(),fontFamily:this.fontFamily};this.pt2px&&(g.pt2px=this.pt2px),this._textRenderer=this.enableFontSupport&&i.jqplot.support_canvas_text()?new i.jqplot.CanvasFontRenderer(g):new i.jqplot.CanvasTextRenderer(g)},i.jqplot.CanvasAxisTickRenderer.prototype.init=function(f){i.extend(!0,this,f),this._textRenderer.init({fontSize:this.fontSize,fontWeight:this.fontWeight,fontStretch:this.fontStretch,fillStyle:this.textColor,angle:this.getAngleRad(),fontFamily:this.fontFamily})},i.jqplot.CanvasAxisTickRenderer.prototype.getWidth=function(f){if(this._elem)return this._elem.outerWidth(!0);var g=this._textRenderer,j=g.getWidth(f),l=g.getHeight(f);return Math.abs(Math.sin(g.angle)*l)+Math.abs(Math.cos(g.angle)*j)},i.jqplot.CanvasAxisTickRenderer.prototype.getHeight=function(f){if(this._elem)return this._elem.outerHeight(!0);var g=this._textRenderer,j=g.getWidth(f),l=g.getHeight(f);return Math.abs(Math.cos(g.angle)*l)+Math.abs(Math.sin(g.angle)*j)},i.jqplot.CanvasAxisTickRenderer.prototype.getTop=function(f){return this._elem?this._elem.position().top:null},i.jqplot.CanvasAxisTickRenderer.prototype.getAngleRad=function(){return this.angle*Math.PI/180},i.jqplot.CanvasAxisTickRenderer.prototype.setTick=function(f,g,j){return this.value=f,j&&(this.isMinorTick=!0),this},i.jqplot.CanvasAxisTickRenderer.prototype.draw=function(f,g){this.label||(this.label=this.prefix+this.formatter(this.formatString,this.value)),this._elem&&(i.jqplot.use_excanvas&&void 0!==window.G_vmlCanvasManager.uninitElement&&window.G_vmlCanvasManager.uninitElement(this._elem.get(0)),this._elem.emptyForce(),this._elem=null);var j=g.canvasManager.getCanvas();this._textRenderer.setText(this.label,f);var l=this.getWidth(f),S=this.getHeight(f);return j.width=l,j.height=S,j.style.width=l,j.style.height=S,j.style.textAlign="left",j.style.position="absolute",j=g.canvasManager.initCanvas(j),this._elem=i(j),this._elem.css(this._styles),this._elem.addClass("jqplot-"+this.axis+"-tick"),j=null,this._elem},i.jqplot.CanvasAxisTickRenderer.prototype.pack=function(){this._textRenderer.draw(this._elem.get(0).getContext("2d"),this.label)}}(jQuery),function(i){i.jqplot.CanvasTextRenderer=function(f){this.fontStyle="normal",this.fontVariant="normal",this.fontWeight="normal",this.fontSize="10px",this.fontFamily="sans-serif",this.fontStretch=1,this.fillStyle="#666666",this.angle=0,this.textAlign="start",this.textBaseline="alphabetic",this.pt2px=1.28,i.extend(!0,this,f),this.normalizedFontSize=this.normalizeFontSize(this.fontSize),this.setHeight()},i.jqplot.CanvasTextRenderer.prototype.init=function(f){i.extend(!0,this,f),this.normalizedFontSize=this.normalizeFontSize(this.fontSize),this.setHeight()},i.jqplot.CanvasTextRenderer.prototype.normalizeFontSize=function(f){f=String(f);var g=parseFloat(f);return f.indexOf("px")>-1?g/this.pt2px:f.indexOf("pt")>-1?g:f.indexOf("em")>-1?12*g:f.indexOf("%")>-1?12*g/100:g/this.pt2px},i.jqplot.CanvasTextRenderer.prototype.fontWeight2Float=function(f){if(Number(f))return f/400;switch(f){case"normal":default:return 1;case"bold":return 1.75;case"bolder":return 2.25;case"lighter":return.75}},i.jqplot.CanvasTextRenderer.prototype.getText=function(){return this.text},i.jqplot.CanvasTextRenderer.prototype.setText=function(f,g){return this.text=f,this.setWidth(g),this},i.jqplot.CanvasTextRenderer.prototype.getWidth=function(f){return this.width},i.jqplot.CanvasTextRenderer.prototype.setWidth=function(f,g){return this.width=g||this.measure(f,this.text),this},i.jqplot.CanvasTextRenderer.prototype.getHeight=function(f){return this.height},i.jqplot.CanvasTextRenderer.prototype.setHeight=function(f){return this.height=f||this.normalizedFontSize*this.pt2px,this},i.jqplot.CanvasTextRenderer.prototype.letter=function(f){return this.letters[f]},i.jqplot.CanvasTextRenderer.prototype.ascent=function(){return this.normalizedFontSize},i.jqplot.CanvasTextRenderer.prototype.descent=function(){return 7*this.normalizedFontSize/25},i.jqplot.CanvasTextRenderer.prototype.measure=function(f,g){for(var j=0,l=g.length,S=0;S<l;S++){var w=this.letter(g.charAt(S));w&&(j+=w.width*this.normalizedFontSize/25*this.fontStretch)}return j},i.jqplot.CanvasTextRenderer.prototype.draw=function(f,g){var p,m,j=0,l=.72*this.height,w=g.length,k=this.normalizedFontSize/25;f.save(),-Math.PI/2<=this.angle&&this.angle<=0||3*Math.PI/2<=this.angle&&this.angle<=2*Math.PI?(p=0,m=-Math.sin(this.angle)*this.width):0<this.angle&&this.angle<=Math.PI/2||2*-Math.PI<=this.angle&&this.angle<=3*-Math.PI/2?(p=Math.sin(this.angle)*this.height,m=0):-Math.PI<this.angle&&this.angle<-Math.PI/2||Math.PI<=this.angle&&this.angle<=3*Math.PI/2?(p=-Math.cos(this.angle)*this.width,m=-Math.sin(this.angle)*this.width-Math.cos(this.angle)*this.height):(3*-Math.PI/2<this.angle&&this.angle<Math.PI||Math.PI/2<this.angle&&this.angle<Math.PI)&&(p=Math.sin(this.angle)*this.height-Math.cos(this.angle)*this.width,m=-Math.cos(this.angle)*this.height),f.strokeStyle=this.fillStyle,f.fillStyle=this.fillStyle,f.translate(p,m),f.rotate(this.angle),f.lineCap="round",f.lineWidth=(this.normalizedFontSize>30?2:2+(30-this.normalizedFontSize)/20)*k*this.fontWeight2Float(this.fontWeight);for(var u=0;u<w;u++){var C=this.letter(g.charAt(u));if(C){f.beginPath();for(var T=1,O=0;O<C.points.length;O++){var b=C.points[O];-1!=b[0]||-1!=b[1]?T?(f.moveTo(j+b[0]*k*this.fontStretch,l-b[1]*k),T=!1):f.lineTo(j+b[0]*k*this.fontStretch,l-b[1]*k):T=1}f.stroke(),j+=C.width*k*this.fontStretch}}return f.restore(),0},i.jqplot.CanvasTextRenderer.prototype.letters={" ":{width:16,points:[]},"!":{width:10,points:[[5,21],[5,7],[-1,-1],[5,2],[4,1],[5,0],[6,1],[5,2]]},'"':{width:16,points:[[4,21],[4,14],[-1,-1],[12,21],[12,14]]},"#":{width:21,points:[[11,25],[4,-7],[-1,-1],[17,25],[10,-7],[-1,-1],[4,12],[18,12],[-1,-1],[3,6],[17,6]]},$:{width:20,points:[[8,25],[8,-4],[-1,-1],[12,25],[12,-4],[-1,-1],[17,18],[15,20],[12,21],[8,21],[5,20],[3,18],[3,16],[4,14],[5,13],[7,12],[13,10],[15,9],[16,8],[17,6],[17,3],[15,1],[12,0],[8,0],[5,1],[3,3]]},"%":{width:24,points:[[21,21],[3,0],[-1,-1],[8,21],[10,19],[10,17],[9,15],[7,14],[5,14],[3,16],[3,18],[4,20],[6,21],[8,21],[10,20],[13,19],[16,19],[19,20],[21,21],[-1,-1],[17,7],[15,6],[14,4],[14,2],[16,0],[18,0],[20,1],[21,3],[21,5],[19,7],[17,7]]},"&":{width:26,points:[[23,12],[23,13],[22,14],[21,14],[20,13],[19,11],[17,6],[15,3],[13,1],[11,0],[7,0],[5,1],[4,2],[3,4],[3,6],[4,8],[5,9],[12,13],[13,14],[14,16],[14,18],[13,20],[11,21],[9,20],[8,18],[8,16],[9,13],[11,10],[16,3],[18,1],[20,0],[22,0],[23,1],[23,2]]},"'":{width:10,points:[[5,19],[4,20],[5,21],[6,20],[6,18],[5,16],[4,15]]},"(":{width:14,points:[[11,25],[9,23],[7,20],[5,16],[4,11],[4,7],[5,2],[7,-2],[9,-5],[11,-7]]},")":{width:14,points:[[3,25],[5,23],[7,20],[9,16],[10,11],[10,7],[9,2],[7,-2],[5,-5],[3,-7]]},"*":{width:16,points:[[8,21],[8,9],[-1,-1],[3,18],[13,12],[-1,-1],[13,18],[3,12]]},"+":{width:26,points:[[13,18],[13,0],[-1,-1],[4,9],[22,9]]},",":{width:10,points:[[6,1],[5,0],[4,1],[5,2],[6,1],[6,-1],[5,-3],[4,-4]]},"-":{width:18,points:[[6,9],[12,9]]},".":{width:10,points:[[5,2],[4,1],[5,0],[6,1],[5,2]]},"/":{width:22,points:[[20,25],[2,-7]]},0:{width:20,points:[[9,21],[6,20],[4,17],[3,12],[3,9],[4,4],[6,1],[9,0],[11,0],[14,1],[16,4],[17,9],[17,12],[16,17],[14,20],[11,21],[9,21]]},1:{width:20,points:[[6,17],[8,18],[11,21],[11,0]]},2:{width:20,points:[[4,16],[4,17],[5,19],[6,20],[8,21],[12,21],[14,20],[15,19],[16,17],[16,15],[15,13],[13,10],[3,0],[17,0]]},3:{width:20,points:[[5,21],[16,21],[10,13],[13,13],[15,12],[16,11],[17,8],[17,6],[16,3],[14,1],[11,0],[8,0],[5,1],[4,2],[3,4]]},4:{width:20,points:[[13,21],[3,7],[18,7],[-1,-1],[13,21],[13,0]]},5:{width:20,points:[[15,21],[5,21],[4,12],[5,13],[8,14],[11,14],[14,13],[16,11],[17,8],[17,6],[16,3],[14,1],[11,0],[8,0],[5,1],[4,2],[3,4]]},6:{width:20,points:[[16,18],[15,20],[12,21],[10,21],[7,20],[5,17],[4,12],[4,7],[5,3],[7,1],[10,0],[11,0],[14,1],[16,3],[17,6],[17,7],[16,10],[14,12],[11,13],[10,13],[7,12],[5,10],[4,7]]},7:{width:20,points:[[17,21],[7,0],[-1,-1],[3,21],[17,21]]},8:{width:20,points:[[8,21],[5,20],[4,18],[4,16],[5,14],[7,13],[11,12],[14,11],[16,9],[17,7],[17,4],[16,2],[15,1],[12,0],[8,0],[5,1],[4,2],[3,4],[3,7],[4,9],[6,11],[9,12],[13,13],[15,14],[16,16],[16,18],[15,20],[12,21],[8,21]]},9:{width:20,points:[[16,14],[15,11],[13,9],[10,8],[9,8],[6,9],[4,11],[3,14],[3,15],[4,18],[6,20],[9,21],[10,21],[13,20],[15,18],[16,14],[16,9],[15,4],[13,1],[10,0],[8,0],[5,1],[4,3]]},":":{width:10,points:[[5,14],[4,13],[5,12],[6,13],[5,14],[-1,-1],[5,2],[4,1],[5,0],[6,1],[5,2]]},";":{width:10,points:[[5,14],[4,13],[5,12],[6,13],[5,14],[-1,-1],[6,1],[5,0],[4,1],[5,2],[6,1],[6,-1],[5,-3],[4,-4]]},"<":{width:24,points:[[20,18],[4,9],[20,0]]},"=":{width:26,points:[[4,12],[22,12],[-1,-1],[4,6],[22,6]]},">":{width:24,points:[[4,18],[20,9],[4,0]]},"?":{width:18,points:[[3,16],[3,17],[4,19],[5,20],[7,21],[11,21],[13,20],[14,19],[15,17],[15,15],[14,13],[13,12],[9,10],[9,7],[-1,-1],[9,2],[8,1],[9,0],[10,1],[9,2]]},"@":{width:27,points:[[18,13],[17,15],[15,16],[12,16],[10,15],[9,14],[8,11],[8,8],[9,6],[11,5],[14,5],[16,6],[17,8],[-1,-1],[12,16],[10,14],[9,11],[9,8],[10,6],[11,5],[-1,-1],[18,16],[17,8],[17,6],[19,5],[21,5],[23,7],[24,10],[24,12],[23,15],[22,17],[20,19],[18,20],[15,21],[12,21],[9,20],[7,19],[5,17],[4,15],[3,12],[3,9],[4,6],[5,4],[7,2],[9,1],[12,0],[15,0],[18,1],[20,2],[21,3],[-1,-1],[19,16],[18,8],[18,6],[19,5]]},A:{width:18,points:[[9,21],[1,0],[-1,-1],[9,21],[17,0],[-1,-1],[4,7],[14,7]]},B:{width:21,points:[[4,21],[4,0],[-1,-1],[4,21],[13,21],[16,20],[17,19],[18,17],[18,15],[17,13],[16,12],[13,11],[-1,-1],[4,11],[13,11],[16,10],[17,9],[18,7],[18,4],[17,2],[16,1],[13,0],[4,0]]},C:{width:21,points:[[18,16],[17,18],[15,20],[13,21],[9,21],[7,20],[5,18],[4,16],[3,13],[3,8],[4,5],[5,3],[7,1],[9,0],[13,0],[15,1],[17,3],[18,5]]},D:{width:21,points:[[4,21],[4,0],[-1,-1],[4,21],[11,21],[14,20],[16,18],[17,16],[18,13],[18,8],[17,5],[16,3],[14,1],[11,0],[4,0]]},E:{width:19,points:[[4,21],[4,0],[-1,-1],[4,21],[17,21],[-1,-1],[4,11],[12,11],[-1,-1],[4,0],[17,0]]},F:{width:18,points:[[4,21],[4,0],[-1,-1],[4,21],[17,21],[-1,-1],[4,11],[12,11]]},G:{width:21,points:[[18,16],[17,18],[15,20],[13,21],[9,21],[7,20],[5,18],[4,16],[3,13],[3,8],[4,5],[5,3],[7,1],[9,0],[13,0],[15,1],[17,3],[18,5],[18,8],[-1,-1],[13,8],[18,8]]},H:{width:22,points:[[4,21],[4,0],[-1,-1],[18,21],[18,0],[-1,-1],[4,11],[18,11]]},I:{width:8,points:[[4,21],[4,0]]},J:{width:16,points:[[12,21],[12,5],[11,2],[10,1],[8,0],[6,0],[4,1],[3,2],[2,5],[2,7]]},K:{width:21,points:[[4,21],[4,0],[-1,-1],[18,21],[4,7],[-1,-1],[9,12],[18,0]]},L:{width:17,points:[[4,21],[4,0],[-1,-1],[4,0],[16,0]]},M:{width:24,points:[[4,21],[4,0],[-1,-1],[4,21],[12,0],[-1,-1],[20,21],[12,0],[-1,-1],[20,21],[20,0]]},N:{width:22,points:[[4,21],[4,0],[-1,-1],[4,21],[18,0],[-1,-1],[18,21],[18,0]]},O:{width:22,points:[[9,21],[7,20],[5,18],[4,16],[3,13],[3,8],[4,5],[5,3],[7,1],[9,0],[13,0],[15,1],[17,3],[18,5],[19,8],[19,13],[18,16],[17,18],[15,20],[13,21],[9,21]]},P:{width:21,points:[[4,21],[4,0],[-1,-1],[4,21],[13,21],[16,20],[17,19],[18,17],[18,14],[17,12],[16,11],[13,10],[4,10]]},Q:{width:22,points:[[9,21],[7,20],[5,18],[4,16],[3,13],[3,8],[4,5],[5,3],[7,1],[9,0],[13,0],[15,1],[17,3],[18,5],[19,8],[19,13],[18,16],[17,18],[15,20],[13,21],[9,21],[-1,-1],[12,4],[18,-2]]},R:{width:21,points:[[4,21],[4,0],[-1,-1],[4,21],[13,21],[16,20],[17,19],[18,17],[18,15],[17,13],[16,12],[13,11],[4,11],[-1,-1],[11,11],[18,0]]},S:{width:20,points:[[17,18],[15,20],[12,21],[8,21],[5,20],[3,18],[3,16],[4,14],[5,13],[7,12],[13,10],[15,9],[16,8],[17,6],[17,3],[15,1],[12,0],[8,0],[5,1],[3,3]]},T:{width:16,points:[[8,21],[8,0],[-1,-1],[1,21],[15,21]]},U:{width:22,points:[[4,21],[4,6],[5,3],[7,1],[10,0],[12,0],[15,1],[17,3],[18,6],[18,21]]},V:{width:18,points:[[1,21],[9,0],[-1,-1],[17,21],[9,0]]},W:{width:24,points:[[2,21],[7,0],[-1,-1],[12,21],[7,0],[-1,-1],[12,21],[17,0],[-1,-1],[22,21],[17,0]]},X:{width:20,points:[[3,21],[17,0],[-1,-1],[17,21],[3,0]]},Y:{width:18,points:[[1,21],[9,11],[9,0],[-1,-1],[17,21],[9,11]]},Z:{width:20,points:[[17,21],[3,0],[-1,-1],[3,21],[17,21],[-1,-1],[3,0],[17,0]]},"[":{width:14,points:[[4,25],[4,-7],[-1,-1],[5,25],[5,-7],[-1,-1],[4,25],[11,25],[-1,-1],[4,-7],[11,-7]]},"\\":{width:14,points:[[0,21],[14,-3]]},"]":{width:14,points:[[9,25],[9,-7],[-1,-1],[10,25],[10,-7],[-1,-1],[3,25],[10,25],[-1,-1],[3,-7],[10,-7]]},"^":{width:16,points:[[6,15],[8,18],[10,15],[-1,-1],[3,12],[8,17],[13,12],[-1,-1],[8,17],[8,0]]},_:{width:16,points:[[0,-2],[16,-2]]},"`":{width:10,points:[[6,21],[5,20],[4,18],[4,16],[5,15],[6,16],[5,17]]},a:{width:19,points:[[15,14],[15,0],[-1,-1],[15,11],[13,13],[11,14],[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3]]},b:{width:19,points:[[4,21],[4,0],[-1,-1],[4,11],[6,13],[8,14],[11,14],[13,13],[15,11],[16,8],[16,6],[15,3],[13,1],[11,0],[8,0],[6,1],[4,3]]},c:{width:18,points:[[15,11],[13,13],[11,14],[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3]]},d:{width:19,points:[[15,21],[15,0],[-1,-1],[15,11],[13,13],[11,14],[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3]]},e:{width:18,points:[[3,8],[15,8],[15,10],[14,12],[13,13],[11,14],[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3]]},f:{width:12,points:[[10,21],[8,21],[6,20],[5,17],[5,0],[-1,-1],[2,14],[9,14]]},g:{width:19,points:[[15,14],[15,-2],[14,-5],[13,-6],[11,-7],[8,-7],[6,-6],[-1,-1],[15,11],[13,13],[11,14],[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3]]},h:{width:19,points:[[4,21],[4,0],[-1,-1],[4,10],[7,13],[9,14],[12,14],[14,13],[15,10],[15,0]]},i:{width:8,points:[[3,21],[4,20],[5,21],[4,22],[3,21],[-1,-1],[4,14],[4,0]]},j:{width:10,points:[[5,21],[6,20],[7,21],[6,22],[5,21],[-1,-1],[6,14],[6,-3],[5,-6],[3,-7],[1,-7]]},k:{width:17,points:[[4,21],[4,0],[-1,-1],[14,14],[4,4],[-1,-1],[8,8],[15,0]]},l:{width:8,points:[[4,21],[4,0]]},m:{width:30,points:[[4,14],[4,0],[-1,-1],[4,10],[7,13],[9,14],[12,14],[14,13],[15,10],[15,0],[-1,-1],[15,10],[18,13],[20,14],[23,14],[25,13],[26,10],[26,0]]},n:{width:19,points:[[4,14],[4,0],[-1,-1],[4,10],[7,13],[9,14],[12,14],[14,13],[15,10],[15,0]]},o:{width:19,points:[[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3],[16,6],[16,8],[15,11],[13,13],[11,14],[8,14]]},p:{width:19,points:[[4,14],[4,-7],[-1,-1],[4,11],[6,13],[8,14],[11,14],[13,13],[15,11],[16,8],[16,6],[15,3],[13,1],[11,0],[8,0],[6,1],[4,3]]},q:{width:19,points:[[15,14],[15,-7],[-1,-1],[15,11],[13,13],[11,14],[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3]]},r:{width:13,points:[[4,14],[4,0],[-1,-1],[4,8],[5,11],[7,13],[9,14],[12,14]]},s:{width:17,points:[[14,11],[13,13],[10,14],[7,14],[4,13],[3,11],[4,9],[6,8],[11,7],[13,6],[14,4],[14,3],[13,1],[10,0],[7,0],[4,1],[3,3]]},t:{width:12,points:[[5,21],[5,4],[6,1],[8,0],[10,0],[-1,-1],[2,14],[9,14]]},u:{width:19,points:[[4,14],[4,4],[5,1],[7,0],[10,0],[12,1],[15,4],[-1,-1],[15,14],[15,0]]},v:{width:16,points:[[2,14],[8,0],[-1,-1],[14,14],[8,0]]},w:{width:22,points:[[3,14],[7,0],[-1,-1],[11,14],[7,0],[-1,-1],[11,14],[15,0],[-1,-1],[19,14],[15,0]]},x:{width:17,points:[[3,14],[14,0],[-1,-1],[14,14],[3,0]]},y:{width:16,points:[[2,14],[8,0],[-1,-1],[14,14],[8,0],[6,-4],[4,-6],[2,-7],[1,-7]]},z:{width:17,points:[[14,14],[3,0],[-1,-1],[3,14],[14,14],[-1,-1],[3,0],[14,0]]},"{":{width:14,points:[[9,25],[7,24],[6,23],[5,21],[5,19],[6,17],[7,16],[8,14],[8,12],[6,10],[-1,-1],[7,24],[6,22],[6,20],[7,18],[8,17],[9,15],[9,13],[8,11],[4,9],[8,7],[9,5],[9,3],[8,1],[7,0],[6,-2],[6,-4],[7,-6],[-1,-1],[6,8],[8,6],[8,4],[7,2],[6,1],[5,-1],[5,-3],[6,-5],[7,-6],[9,-7]]},"|":{width:8,points:[[4,25],[4,-7]]},"}":{width:14,points:[[5,25],[7,24],[8,23],[9,21],[9,19],[8,17],[7,16],[6,14],[6,12],[8,10],[-1,-1],[7,24],[8,22],[8,20],[7,18],[6,17],[5,15],[5,13],[6,11],[10,9],[6,7],[5,5],[5,3],[6,1],[7,0],[8,-2],[8,-4],[7,-6],[-1,-1],[8,8],[6,6],[6,4],[7,2],[8,1],[9,-1],[9,-3],[8,-5],[7,-6],[5,-7]]},"~":{width:24,points:[[3,6],[3,8],[4,11],[6,12],[8,12],[10,11],[14,8],[16,7],[18,7],[20,8],[21,10],[-1,-1],[3,8],[4,10],[6,11],[8,11],[10,10],[14,7],[16,6],[18,6],[20,7],[21,10],[21,12]]}},i.jqplot.CanvasFontRenderer=function(f){(f=f||{}).pt2px||(f.pt2px=1.5),i.jqplot.CanvasTextRenderer.call(this,f)},i.jqplot.CanvasFontRenderer.prototype=new i.jqplot.CanvasTextRenderer({}),i.jqplot.CanvasFontRenderer.prototype.constructor=i.jqplot.CanvasFontRenderer,i.jqplot.CanvasFontRenderer.prototype.measure=function(f,g){var j=this.fontSize+" "+this.fontFamily;f.save(),f.font=j;var l=f.measureText(g).width;return f.restore(),l},i.jqplot.CanvasFontRenderer.prototype.draw=function(f,g){var S,w,l=.72*this.height;f.save(),-Math.PI/2<=this.angle&&this.angle<=0||3*Math.PI/2<=this.angle&&this.angle<=2*Math.PI?(S=0,w=-Math.sin(this.angle)*this.width):0<this.angle&&this.angle<=Math.PI/2||2*-Math.PI<=this.angle&&this.angle<=3*-Math.PI/2?(S=Math.sin(this.angle)*this.height,w=0):-Math.PI<this.angle&&this.angle<-Math.PI/2||Math.PI<=this.angle&&this.angle<=3*Math.PI/2?(S=-Math.cos(this.angle)*this.width,w=-Math.sin(this.angle)*this.width-Math.cos(this.angle)*this.height):(3*-Math.PI/2<this.angle&&this.angle<Math.PI||Math.PI/2<this.angle&&this.angle<Math.PI)&&(S=Math.sin(this.angle)*this.height-Math.cos(this.angle)*this.width,w=-Math.cos(this.angle)*this.height),f.strokeStyle=this.fillStyle,f.fillStyle=this.fillStyle,f.font=this.fontSize+" "+this.fontFamily,f.translate(S,w),f.rotate(this.angle),f.fillText(g,0,l),f.restore()}}(jQuery),function(i){i.jqplot.eventListenerHooks.push(["jqplotMouseMove",function w(k,p,m,v,u){var C=u.plugins.highlighter,T=u.plugins.cursor;if(C.show)if(null==v&&C.isHighlighting){var M=jQuery.Event("jqplotHighlighterUnhighlight");u.target.trigger(M),(O=C.highlightCanvas._ctx).clearRect(0,0,O.canvas.width,O.canvas.height),C.fadeTooltip?C._tooltipElem.fadeOut(C.tooltipFadeSpeed):C._tooltipElem.hide(),C.bringSeriesToFront&&u.restorePreviousSeriesOrder(),C.isHighlighting=!1,C.currentNeighbor=null,O=null}else if(null!=v&&u.series[v.seriesIndex].showHighlight&&!C.isHighlighting)(M=jQuery.Event("jqplotHighlighterHighlight")).which=k.which,M.pageX=k.pageX,M.pageY=k.pageY,u.target.trigger(M,[v.seriesIndex,v.pointIndex,v.data,u]),C.isHighlighting=!0,C.currentNeighbor=v,C.showMarker&&l(u,v),u.series[v.seriesIndex].show&&C.showTooltip&&(!T||!T._zoom.started)&&S(u,u.series[v.seriesIndex],v),C.bringSeriesToFront&&u.moveSeriesToFront(v.seriesIndex);else if(null!=v&&C.isHighlighting&&C.currentNeighbor!=v&&u.series[v.seriesIndex].showHighlight){var O;(O=C.highlightCanvas._ctx).clearRect(0,0,O.canvas.width,O.canvas.height),C.isHighlighting=!0,C.currentNeighbor=v,C.showMarker&&l(u,v),u.series[v.seriesIndex].show&&C.showTooltip&&(!T||!T._zoom.started)&&S(u,u.series[v.seriesIndex],v),C.bringSeriesToFront&&u.moveSeriesToFront(v.seriesIndex)}}]),i.jqplot.Highlighter=function(k){this.show=i.jqplot.config.enablePlugins,this.markerRenderer=new i.jqplot.MarkerRenderer({shadow:!1}),this.showMarker=!0,this.lineWidthAdjust=2.5,this.sizeAdjust=5,this.showTooltip=!0,this.tooltipLocation="nw",this.fadeTooltip=!0,this.tooltipFadeSpeed="fast",this.tooltipOffset=2,this.tooltipAxes="both",this.tooltipSeparator=", ",this.tooltipContentEditor=null,this.useAxesFormatters=!0,this.tooltipFormatString="%.5P",this.formatString=null,this.yvalues=1,this.bringSeriesToFront=!1,this.isHighlighting=!1,this.currentNeighbor=null,i.extend(!0,this,k)};var f=["nw","n","ne","e","se","s","sw","w"],g={nw:0,n:1,ne:2,e:3,se:4,s:5,sw:6,w:7},j=["se","s","sw","w","nw","n","ne","e"];function l(k,p){var m=k.plugins.highlighter,v=k.series[p.seriesIndex],u=v.markerRenderer,C=m.markerRenderer;C.style=u.style,C.lineWidth=u.lineWidth+m.lineWidthAdjust,C.size=u.size+m.sizeAdjust;var T=i.jqplot.getColorComponents(u.color),M=[T[0],T[1],T[2]];C.color="rgba("+M[0]+","+M[1]+","+M[2]+","+(T[3]>=.6?.6*T[3]:T[3]*(2-T[3]))+")",C.init(),C.draw(v.gridData[p.pointIndex][0],v.gridData[p.pointIndex][1],m.highlightCanvas._ctx)}function S(k,p,m){var v=k.plugins.highlighter,u=v._tooltipElem,T=i.extend(!0,{},v,p.highlighter||{});if(T.useAxesFormatters){for(var O=p._yaxis._ticks[0].formatter,A=p._yaxis._ticks[0].formatString,P=(0,p._xaxis._ticks[0].formatter)(p._xaxis._ticks[0].formatString,m.data[0]),B=[],q=1;q<T.yvalues+1;q++)B.push(O(A,m.data[q]));if("string"==typeof T.formatString)switch(T.tooltipAxes){case"both":case"xy":default:B.unshift(P),B.unshift(T.formatString),c=i.jqplot.sprintf.apply(i.jqplot.sprintf,B);break;case"yx":B.push(P),B.unshift(T.formatString),c=i.jqplot.sprintf.apply(i.jqplot.sprintf,B);break;case"x":c=i.jqplot.sprintf.apply(i.jqplot.sprintf,[T.formatString,P]);break;case"y":B.unshift(T.formatString),c=i.jqplot.sprintf.apply(i.jqplot.sprintf,B)}else switch(T.tooltipAxes){case"both":case"xy":for(c=P,q=0;q<B.length;q++)c+=T.tooltipSeparator+B[q];break;case"yx":for(c="",q=0;q<B.length;q++)c+=B[q]+T.tooltipSeparator;c+=P;break;case"x":c=P;break;case"y":c=B.join(T.tooltipSeparator);break;default:for(c=P,q=0;q<B.length;q++)c+=T.tooltipSeparator+B[q]}}else{var c;"string"==typeof T.formatString?c=i.jqplot.sprintf.apply(i.jqplot.sprintf,[T.formatString].concat(m.data)):"both"==T.tooltipAxes||"xy"==T.tooltipAxes?c=i.jqplot.sprintf(T.tooltipFormatString,m.data[0])+T.tooltipSeparator+i.jqplot.sprintf(T.tooltipFormatString,m.data[1]):"yx"==T.tooltipAxes?c=i.jqplot.sprintf(T.tooltipFormatString,m.data[1])+T.tooltipSeparator+i.jqplot.sprintf(T.tooltipFormatString,m.data[0]):"x"==T.tooltipAxes?c=i.jqplot.sprintf(T.tooltipFormatString,m.data[0]):"y"==T.tooltipAxes&&(c=i.jqplot.sprintf(T.tooltipFormatString,m.data[1]))}i.isFunction(T.tooltipContentEditor)&&(c=T.tooltipContentEditor(c,m.seriesIndex,m.pointIndex,k)),u.html(c);var o_x=m.gridData[0],o_y=m.gridData[1],y=0,_=.707;1==p.markerRenderer.show&&(y=(p.markerRenderer.size+T.sizeAdjust)/2);var R=f;switch(p.fillToZero&&p.fill&&m.data[1]<0&&(R=j),R[g[T.tooltipLocation]]){case"nw":var N=o_x+k._gridPadding.left-u.outerWidth(!0)-T.tooltipOffset-_*y,W=o_y+k._gridPadding.top-T.tooltipOffset-u.outerHeight(!0)-_*y;break;case"n":N=o_x+k._gridPadding.left-u.outerWidth(!0)/2,W=o_y+k._gridPadding.top-T.tooltipOffset-u.outerHeight(!0)-y;break;case"ne":N=o_x+k._gridPadding.left+T.tooltipOffset+_*y,W=o_y+k._gridPadding.top-T.tooltipOffset-u.outerHeight(!0)-_*y;break;case"e":N=o_x+k._gridPadding.left+T.tooltipOffset+y,W=o_y+k._gridPadding.top-u.outerHeight(!0)/2;break;case"se":N=o_x+k._gridPadding.left+T.tooltipOffset+_*y,W=o_y+k._gridPadding.top+T.tooltipOffset+_*y;break;case"s":N=o_x+k._gridPadding.left-u.outerWidth(!0)/2,W=o_y+k._gridPadding.top+T.tooltipOffset+y;break;case"sw":N=o_x+k._gridPadding.left-u.outerWidth(!0)-T.tooltipOffset-_*y,W=o_y+k._gridPadding.top+T.tooltipOffset+_*y;break;case"w":N=o_x+k._gridPadding.left-u.outerWidth(!0)-T.tooltipOffset-y,W=o_y+k._gridPadding.top-u.outerHeight(!0)/2;break;default:N=o_x+k._gridPadding.left-u.outerWidth(!0)-T.tooltipOffset-_*y,W=o_y+k._gridPadding.top-T.tooltipOffset-u.outerHeight(!0)-_*y}u.css("left",N),u.css("top",W),T.fadeTooltip?u.stop(!0,!0).fadeIn(T.tooltipFadeSpeed):u.show(),u=null}i.jqplot.Highlighter.init=function(k,p,m){this.plugins.highlighter=new i.jqplot.Highlighter((m||{}).highlighter)},i.jqplot.Highlighter.parseOptions=function(k,p){this.showHighlight=!0},i.jqplot.Highlighter.postPlotDraw=function(){this.plugins.highlighter&&this.plugins.highlighter.highlightCanvas&&(this.plugins.highlighter.highlightCanvas.resetCanvas(),this.plugins.highlighter.highlightCanvas=null),this.plugins.highlighter&&this.plugins.highlighter._tooltipElem&&(this.plugins.highlighter._tooltipElem.emptyForce(),this.plugins.highlighter._tooltipElem=null),this.plugins.highlighter.highlightCanvas=new i.jqplot.GenericCanvas,this.eventCanvas._elem.before(this.plugins.highlighter.highlightCanvas.createElement(this._gridPadding,"jqplot-highlight-canvas",this._plotDimensions,this)),this.plugins.highlighter.highlightCanvas.setContext();var k=document.createElement("div");this.plugins.highlighter._tooltipElem=i(k),k=null,this.plugins.highlighter._tooltipElem.addClass("jqplot-highlighter-tooltip"),this.plugins.highlighter._tooltipElem.css({position:"absolute",display:"none"}),this.eventCanvas._elem.before(this.plugins.highlighter._tooltipElem)},i.jqplot.preInitHooks.push(i.jqplot.Highlighter.init),i.jqplot.preParseSeriesOptionsHooks.push(i.jqplot.Highlighter.parseOptions),i.jqplot.postDrawHooks.push(i.jqplot.Highlighter.postPlotDraw)}(jQuery),function(i){function f(b,A,c){var P=c.plugins.cursor,B="",q=!1;if(P.showTooltipGridPosition&&(B=b.x+", "+b.y,q=!0),P.showTooltipUnitPosition)for(var o,y=0;y<P.tooltipAxisGroups.length;y++){if(o=P.tooltipAxisGroups[y],q&&(B+="<br />"),P.useAxesFormatters)for(var _=0;_<o.length;_++)_&&(B+=", "),B+=(0,c.axes[o[_]]._ticks[0].formatter)(c.axes[o[_]]._ticks[0].formatString,A[o[_]]);else B+=i.jqplot.sprintf(P.tooltipFormatString,A[o[0]],A[o[1]]);q=!0}if(P.showTooltipDataPosition){var W=c.series,G=j(c,b.x);for(q=!1,y=0;y<W.length;y++)if(W[y].show){var ne=W[y].index,Z=W[y].label.toString(),te=i.inArray(ne,G.indices),ge=void 0,Q=void 0;if(-1!=te){var J=G.data[te].data;if(P.useAxesFormatters){var se=W[y]._yaxis._ticks[0].formatter,me=W[y]._yaxis._ticks[0].formatString;ge=(0,W[y]._xaxis._ticks[0].formatter)(W[y]._xaxis._ticks[0].formatString,J[0]),Q=se(me,J[1])}else ge=J[0],Q=J[1];q&&(B+="<br />"),B+=i.jqplot.sprintf(P.tooltipFormatString,Z,ge,Q),q=!0}}}P._tooltipElem.html(B)}function g(b,A){var c=A.plugins.cursor,P=c.cursorCanvas._ctx;P.clearRect(0,0,P.canvas.width,P.canvas.height),c.showVerticalLine&&c.shapeRenderer.draw(P,[[b.x,0],[b.x,P.canvas.height]]),c.showHorizontalLine&&c.shapeRenderer.draw(P,[[0,b.y],[P.canvas.width,b.y]]);var B=j(A,b.x);if(c.showCursorLegend)for(var q=i(A.targetId+" td.jqplot-cursor-legend-label"),o=0;o<q.length;o++){var y=i(q[o]).data("seriesIndex"),_=A.series[y],R=_.label.toString(),N=i.inArray(y,B.indices),W=void 0,G=void 0;if(-1!=N){var ne=B.data[N].data;if(c.useAxesFormatters){var te=_._yaxis._ticks[0].formatter,Q=_._yaxis._ticks[0].formatString;W=(0,_._xaxis._ticks[0].formatter)(_._xaxis._ticks[0].formatString,ne[0]),G=te(Q,ne[1])}else W=ne[0],G=ne[1]}A.legend.escapeHtml?i(q[o]).text(i.jqplot.sprintf(c.cursorLegendFormatString,R,W,G)):i(q[o]).html(i.jqplot.sprintf(c.cursorLegendFormatString,R,W,G))}P=null}function j(b,A,c){for(var B,N,W,P={indices:[],data:[]},G=b.plugins.cursor,q=0;q<b.series.length;q++)if((B=b.series[q]).show){W=G.intersectionThreshold,B.showMarker&&(W+=B.markerRenderer.size/2);for(var _=0;_<B.gridData.length;_++)N=B.gridData[_],G.showVerticalLine&&Math.abs(A-N[0])<=W&&(P.indices.push(q),P.data.push({seriesIndex:q,pointIndex:_,gridData:N,data:B.data[_]}))}return P}function l(b,A){var c=A.plugins.cursor,P=c._tooltipElem;switch(c.tooltipLocation){case"nw":var B=b.x+A._gridPadding.left-P.outerWidth(!0)-c.tooltipOffset,q=b.y+A._gridPadding.top-c.tooltipOffset-P.outerHeight(!0);break;case"n":B=b.x+A._gridPadding.left-P.outerWidth(!0)/2,q=b.y+A._gridPadding.top-c.tooltipOffset-P.outerHeight(!0);break;case"ne":B=b.x+A._gridPadding.left+c.tooltipOffset,q=b.y+A._gridPadding.top-c.tooltipOffset-P.outerHeight(!0);break;case"e":B=b.x+A._gridPadding.left+c.tooltipOffset,q=b.y+A._gridPadding.top-P.outerHeight(!0)/2;break;case"se":default:B=b.x+A._gridPadding.left+c.tooltipOffset,q=b.y+A._gridPadding.top+c.tooltipOffset;break;case"s":B=b.x+A._gridPadding.left-P.outerWidth(!0)/2,q=b.y+A._gridPadding.top+c.tooltipOffset;break;case"sw":B=b.x+A._gridPadding.left-P.outerWidth(!0)-c.tooltipOffset,q=b.y+A._gridPadding.top+c.tooltipOffset;break;case"w":B=b.x+A._gridPadding.left-P.outerWidth(!0)-c.tooltipOffset,q=b.y+A._gridPadding.top-P.outerHeight(!0)/2}P.css("left",B),P.css("top",q),P=null}function w(b,A,c,P,B){b.preventDefault(),b.stopImmediatePropagation();var q=B.plugins.cursor;q.clickReset&&q.resetZoom(B,q);var o=window.getSelection;return document.selection&&document.selection.empty?document.selection.empty():o&&!o().isCollapsed&&o().collapse(),!1}function k(b,A,c,P,B){b.preventDefault(),b.stopImmediatePropagation();var q=B.plugins.cursor;q.dblClickReset&&q.resetZoom(B,q);var o=window.getSelection;return document.selection&&document.selection.empty?document.selection.empty():o&&!o().isCollapsed&&o().collapse(),!1}function p(b,A,c,P,B){var q=B.plugins.cursor;if(q.onGrid=!1,q.show){if(i(b.target).css("cursor",q.previousCursor),q.showTooltip&&!(q._zoom.zooming&&q.showTooltipOutsideZoom&&!q.constrainOutsideZoom)&&(q._tooltipElem.empty(),q._tooltipElem.hide()),q.zoom&&(q._zoom.gridpos=A,q._zoom.datapos=c),q.showVerticalLine||q.showHorizontalLine){var o=q.cursorCanvas._ctx;o.clearRect(0,0,o.canvas.width,o.canvas.height),o=null}if(q.showCursorLegend)for(var y=i(B.targetId+" td.jqplot-cursor-legend-label"),_=0;_<y.length;_++){var R=i(y[_]).data("seriesIndex"),W=B.series[R].label.toString();B.legend.escapeHtml?i(y[_]).text(i.jqplot.sprintf(q.cursorLegendFormatString,W,void 0,void 0)):i(y[_]).html(i.jqplot.sprintf(q.cursorLegendFormatString,W,void 0,void 0))}}}function m(b,A,c,P,B){var q=B.plugins.cursor;q.onGrid=!0,q.show&&(q.previousCursor=b.target.style.cursor,b.target.style.cursor=q.style,q.showTooltip&&(f(A,c,B),q.followMouse?l(A,B):function S(b){var A=b._gridPadding,c=b.plugins.cursor,P=c._tooltipElem;switch(c.tooltipLocation){case"nw":var q=A.top+c.tooltipOffset;P.css("left",B=A.left+c.tooltipOffset),P.css("top",q);break;case"n":var B=(A.left+(b._plotDimensions.width-A.right))/2-P.outerWidth(!0)/2;q=A.top+c.tooltipOffset,P.css("left",B),P.css("top",q);break;case"ne":P.css({right:B=A.right+c.tooltipOffset,top:q=A.top+c.tooltipOffset});break;case"e":B=A.right+c.tooltipOffset,q=(A.top+(b._plotDimensions.height-A.bottom))/2-P.outerHeight(!0)/2,P.css({right:B,top:q});break;case"se":P.css({right:B=A.right+c.tooltipOffset,bottom:q=A.bottom+c.tooltipOffset});break;case"s":B=(A.left+(b._plotDimensions.width-A.right))/2-P.outerWidth(!0)/2,P.css({left:B,bottom:q=A.bottom+c.tooltipOffset});break;case"sw":P.css({left:B=A.left+c.tooltipOffset,bottom:q=A.bottom+c.tooltipOffset});break;case"w":B=A.left+c.tooltipOffset,q=(A.top+(b._plotDimensions.height-A.bottom))/2-P.outerHeight(!0)/2,P.css({left:B,top:q});break;default:P.css({right:B=A.right-c.tooltipOffset,bottom:q=A.bottom+c.tooltipOffset})}P=null}(B),q._tooltipElem.show()),(q.showVerticalLine||q.showHorizontalLine)&&g(A,B))}function v(b,A,c,P,B){var q=B.plugins.cursor;q.show&&(q.showTooltip&&(f(A,c,B),q.followMouse&&l(A,B)),(q.showVerticalLine||q.showHorizontalLine)&&g(A,B))}function C(b){var A=b.data.plot,c=A.plugins.cursor;if(c.show&&c.zoom&&c._zoom.started&&!c.zoomTarget){b.preventDefault();var P=c.zoomCanvas._ctx,B=function u(b){var y,_,A=b.data.plot,c=A.eventCanvas._elem.offset(),P={x:b.pageX-c.left,y:b.pageY-c.top},B={xaxis:null,yaxis:null,x2axis:null,y2axis:null,y3axis:null,y4axis:null,y5axis:null,y6axis:null,y7axis:null,y8axis:null,y9axis:null,yMidAxis:null},q=["xaxis","yaxis","x2axis","y2axis","y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis","yMidAxis"],o=A.axes;for(y=11;y>0;y--)o[_=q[y-1]].show&&(B[_]=o[_].series_p2u(P[_.charAt(0)]));return{offsets:c,gridPos:P,dataPos:B}}(b),q=B.gridPos,o=B.dataPos;c._zoom.gridpos=q,c._zoom.datapos=o,c._zoom.zooming=!0;var y=q.x,_=q.y,R=P.canvas.height,N=P.canvas.width;c.showTooltip&&!c.onGrid&&c.showTooltipOutsideZoom&&(f(q,o,A),c.followMouse&&l(q,A)),c._zoom.end="x"==c.constrainZoomTo?[y,R]:"y"==c.constrainZoomTo?[N,_]:[y,_];var W=window.getSelection;document.selection&&document.selection.empty?document.selection.empty():W&&!W().isCollapsed&&W().collapse(),O.call(c),P=null}}function T(b,A,c,P,B){var q=B.plugins.cursor;if(B.plugins.mobile?i(document).one("vmouseup.jqplot_cursor",{plot:B},M):i(document).one("mouseup.jqplot_cursor",{plot:B},M),null!=document.onselectstart&&(q._oldHandlers.onselectstart=document.onselectstart,document.onselectstart=function(){return!1}),null!=document.ondrag&&(q._oldHandlers.ondrag=document.ondrag,document.ondrag=function(){return!1}),null!=document.onmousedown&&(q._oldHandlers.onmousedown=document.onmousedown,document.onmousedown=function(){return!1}),q.zoom){if(!q.zoomProxy){var y=q.zoomCanvas._ctx;y.clearRect(0,0,y.canvas.width,y.canvas.height),y=null}for(var _ in q._zoom.start="x"==q.constrainZoomTo?[A.x,0]:"y"==q.constrainZoomTo?[0,A.y]:[A.x,A.y],q._zoom.started=!0,c)q._zoom.axes.start[_]=c[_];B.plugins.mobile?i(document).bind("vmousemove.jqplotCursor",{plot:B},C):i(document).bind("mousemove.jqplotCursor",{plot:B},C)}}function M(b){var A=b.data.plot,c=A.plugins.cursor;if(c.zoom&&c._zoom.zooming&&!c.zoomTarget){var P=c._zoom.gridpos.x,B=c._zoom.gridpos.y,q=c._zoom.datapos,o=c.zoomCanvas._ctx.canvas.height,y=c.zoomCanvas._ctx.canvas.width,_=A.axes;if(c.constrainOutsideZoom&&!c.onGrid)for(var R in P<0?P=0:P>y&&(P=y),B<0?B=0:B>o&&(B=o),q)q[R]&&(q[R]="x"==R.charAt(0)?_[R].series_p2u(P):_[R].series_p2u(B));"x"==c.constrainZoomTo?B=o:"y"==c.constrainZoomTo&&(P=y),c._zoom.end=[P,B],c._zoom.gridpos={x:P,y:B},c.doZoom(c._zoom.gridpos,q,A,c)}c._zoom.started=!1,c._zoom.zooming=!1,i(document).unbind("mousemove.jqplotCursor",C),null!=document.onselectstart&&null!=c._oldHandlers.onselectstart&&(document.onselectstart=c._oldHandlers.onselectstart,c._oldHandlers.onselectstart=null),null!=document.ondrag&&null!=c._oldHandlers.ondrag&&(document.ondrag=c._oldHandlers.ondrag,c._oldHandlers.ondrag=null),null!=document.onmousedown&&null!=c._oldHandlers.onmousedown&&(document.onmousedown=c._oldHandlers.onmousedown,c._oldHandlers.onmousedown=null)}function O(){var P,B,q,o,b=this._zoom.start,A=this._zoom.end,c=this.zoomCanvas._ctx;A[0]>b[0]?(P=b[0],o=A[0]-b[0]):(P=A[0],o=b[0]-A[0]),A[1]>b[1]?(B=b[1],q=A[1]-b[1]):(B=A[1],q=b[1]-A[1]),c.fillStyle="rgba(0,0,0,0.2)",c.strokeStyle="#999999",c.lineWidth=1,c.clearRect(0,0,c.canvas.width,c.canvas.height),c.fillRect(0,0,c.canvas.width,c.canvas.height),c.clearRect(P,B,o,q),c.strokeRect(P,B,o,q),c=null}i.jqplot.Cursor=function(b){this.style="crosshair",this.previousCursor="auto",this.show=i.jqplot.config.enablePlugins,this.showTooltip=!0,this.followMouse=!1,this.tooltipLocation="se",this.tooltipOffset=6,this.showTooltipGridPosition=!1,this.showTooltipUnitPosition=!0,this.showTooltipDataPosition=!1,this.tooltipFormatString="%.4P, %.4P",this.useAxesFormatters=!0,this.tooltipAxisGroups=[],this.zoom=!1,this.zoomProxy=!1,this.zoomTarget=!1,this.looseZoom=!0,this.clickReset=!1,this.dblClickReset=!0,this.showVerticalLine=!1,this.showHorizontalLine=!1,this.constrainZoomTo="none",this.shapeRenderer=new i.jqplot.ShapeRenderer,this._zoom={start:[],end:[],started:!1,zooming:!1,isZoomed:!1,axes:{start:{},end:{}},gridpos:{},datapos:{}},this.intersectionThreshold=2,this.showCursorLegend=!1,this.cursorLegendFormatString=i.jqplot.Cursor.cursorLegendFormatString,this._oldHandlers={onselectstart:null,ondrag:null,onmousedown:null},this.constrainOutsideZoom=!0,this.showTooltipOutsideZoom=!1,this.onGrid=!1,i.extend(!0,this,b)},i.jqplot.Cursor.cursorLegendFormatString="%s x:%s, y:%s",i.jqplot.Cursor.init=function(b,A,c){var P=c||{};this.plugins.cursor=new i.jqplot.Cursor(P.cursor);var B=this.plugins.cursor;B.show&&(i.jqplot.eventListenerHooks.push(["jqplotMouseEnter",m]),i.jqplot.eventListenerHooks.push(["jqplotMouseLeave",p]),i.jqplot.eventListenerHooks.push(["jqplotMouseMove",v]),B.showCursorLegend&&(c.legend=c.legend||{},c.legend.renderer=i.jqplot.CursorLegendRenderer,c.legend.formatString=this.plugins.cursor.cursorLegendFormatString,c.legend.show=!0),B.zoom&&(i.jqplot.eventListenerHooks.push(["jqplotMouseDown",T]),B.clickReset&&i.jqplot.eventListenerHooks.push(["jqplotClick",w]),B.dblClickReset&&i.jqplot.eventListenerHooks.push(["jqplotDblClick",k])),this.resetZoom=function(){var q=this.axes;if(B.zoomProxy){var y=this.plugins.cursor.zoomCanvas._ctx;y.clearRect(0,0,y.canvas.width,y.canvas.height),y=null}else{for(var o in q)q[o].reset(),q[o]._ticks=[],void 0!==B._zoom.axes[o]&&(q[o]._autoFormatString=B._zoom.axes[o].tickFormatString);this.redraw()}this.plugins.cursor._zoom.isZoomed=!1,this.target.trigger("jqplotResetZoom",[this,this.plugins.cursor])},B.showTooltipDataPosition&&(B.showTooltipUnitPosition=!1,B.showTooltipGridPosition=!1,null==P.cursor.tooltipFormatString&&(B.tooltipFormatString=i.jqplot.Cursor.cursorLegendFormatString)))},i.jqplot.Cursor.postDraw=function(){var b=this.plugins.cursor;b.zoomCanvas&&(b.zoomCanvas.resetCanvas(),b.zoomCanvas=null),b.cursorCanvas&&(b.cursorCanvas.resetCanvas(),b.cursorCanvas=null),b._tooltipElem&&(b._tooltipElem.emptyForce(),b._tooltipElem=null),b.zoom&&(b.zoomCanvas=new i.jqplot.GenericCanvas,this.eventCanvas._elem.before(b.zoomCanvas.createElement(this._gridPadding,"jqplot-zoom-canvas",this._plotDimensions,this)),b.zoomCanvas.setContext());var A=document.createElement("div");if(b._tooltipElem=i(A),A=null,b._tooltipElem.addClass("jqplot-cursor-tooltip"),b._tooltipElem.css({position:"absolute",display:"none"}),b.zoomCanvas?b.zoomCanvas._elem.before(b._tooltipElem):this.eventCanvas._elem.before(b._tooltipElem),(b.showVerticalLine||b.showHorizontalLine)&&(b.cursorCanvas=new i.jqplot.GenericCanvas,this.eventCanvas._elem.before(b.cursorCanvas.createElement(this._gridPadding,"jqplot-cursor-canvas",this._plotDimensions,this)),b.cursorCanvas.setContext()),b.showTooltipUnitPosition&&0===b.tooltipAxisGroups.length){for(var P,c=this.series,B=[],q=0;q<c.length;q++){var o=(P=c[q]).xaxis+","+P.yaxis;-1==i.inArray(o,B)&&B.push(o)}for(q=0;q<B.length;q++)b.tooltipAxisGroups.push(B[q].split(","))}},i.jqplot.Cursor.zoomProxy=function(b,A){var c=b.plugins.cursor,P=A.plugins.cursor;c.zoomTarget=!0,c.zoom=!0,c.style="auto",c.dblClickReset=!1,P.zoom=!0,P.zoomProxy=!0,A.target.bind("jqplotZoom",function B(o,y,_,R,N){c.doZoom(y,_,b,N)}),A.target.bind("jqplotResetZoom",function q(o,y,_){b.resetZoom()})},i.jqplot.Cursor.prototype.resetZoom=function(b,A){var c=b.axes,P=A._zoom.axes;if(!b.plugins.cursor.zoomProxy&&A._zoom.isZoomed){for(var B in c)c[B].reset(),c[B]._ticks=[],c[B]._autoFormatString=P[B].tickFormatString;b.redraw(),A._zoom.isZoomed=!1}else{var q=A.zoomCanvas._ctx;q.clearRect(0,0,q.canvas.width,q.canvas.height),q=null}b.target.trigger("jqplotResetZoom",[b,A])},i.jqplot.Cursor.resetZoom=function(b){b.resetZoom()},i.jqplot.Cursor.prototype.doZoom=function(b,A,c,P){var W,ne,Z,te,ge,Q,B=P,q=c.axes,y=B._zoom.axes.start,J=c.plugins.cursor.zoomCanvas._ctx;if("none"==B.constrainZoomTo&&Math.abs(b.x-B._zoom.start[0])>6&&Math.abs(b.y-B._zoom.start[1])>6||"x"==B.constrainZoomTo&&Math.abs(b.x-B._zoom.start[0])>6||"y"==B.constrainZoomTo&&Math.abs(b.y-B._zoom.start[1])>6){if(!c.plugins.cursor.zoomProxy){for(var U in A)null==B._zoom.axes[U]&&(B._zoom.axes[U]={},B._zoom.axes[U].numberTicks=q[U].numberTicks,B._zoom.axes[U].tickInterval=q[U].tickInterval,B._zoom.axes[U].daTickInterval=q[U].daTickInterval,B._zoom.axes[U].min=q[U].min,B._zoom.axes[U].max=q[U].max,B._zoom.axes[U].tickFormatString=null!=q[U].tickOptions?q[U].tickOptions.formatString:""),("none"==B.constrainZoomTo||"x"==B.constrainZoomTo&&"x"==U.charAt(0)||"y"==B.constrainZoomTo&&"y"==U.charAt(0))&&null!=(W=A[U])&&(W>y[U]?(ne=y[U],Z=W):(ne=W,Z=y[U]),ge=null,(te=q[U]).alignTicks&&("x2axis"===te.name&&c.axes.xaxis.show?ge=c.axes.xaxis.numberTicks:"y"===te.name.charAt(0)&&"yaxis"!==te.name&&"yMidAxis"!==te.name&&c.axes.yaxis.show&&(ge=c.axes.yaxis.numberTicks)),!this.looseZoom||q[U].renderer.constructor!==i.jqplot.LinearAxisRenderer&&q[U].renderer.constructor!==i.jqplot.LogAxisRenderer?(q[U].min=ne,q[U].max=Z,q[U].tickInterval=null,q[U].numberTicks=null,q[U].daTickInterval=null):(Q=i.jqplot.LinearTickGenerator(ne,Z,te._scalefact,ge),q[U].tickInset&&Q[0]<q[U].min+q[U].tickInset*q[U].tickInterval&&(Q[0]+=Q[4],Q[2]-=1),q[U].tickInset&&Q[1]>q[U].max-q[U].tickInset*q[U].tickInterval&&(Q[1]-=Q[4],Q[2]-=1),q[U].renderer.constructor===i.jqplot.LogAxisRenderer&&Q[0]<q[U].min&&(Q[0]+=Q[4],Q[2]-=1),q[U].min=Q[0],q[U].max=Q[1],q[U]._autoFormatString=Q[3],q[U].numberTicks=Q[2],q[U].tickInterval=Q[4],q[U].daTickInterval=[Q[4]/1e3,"seconds"]),q[U]._ticks=[]);J.clearRect(0,0,J.canvas.width,J.canvas.height),c.redraw(),B._zoom.isZoomed=!0,J=null}c.target.trigger("jqplotZoom",[b,A,c,P])}},i.jqplot.preInitHooks.push(i.jqplot.Cursor.init),i.jqplot.postDrawHooks.push(i.jqplot.Cursor.postDraw),i.jqplot.CursorLegendRenderer=function(b){i.jqplot.TableLegendRenderer.call(this,b),this.formatString="%s"},i.jqplot.CursorLegendRenderer.prototype=new i.jqplot.TableLegendRenderer,i.jqplot.CursorLegendRenderer.prototype.constructor=i.jqplot.CursorLegendRenderer,i.jqplot.CursorLegendRenderer.prototype.draw=function(){if(this._elem&&(this._elem.emptyForce(),this._elem=null),this.show){var A,b=this._series,c=document.createElement("table");this._elem=i(c),c=null,this._elem.addClass("jqplot-legend jqplot-cursor-legend"),this._elem.css("position","absolute");for(var P=!1,B=0;B<b.length;B++)if((A=b[B]).show&&A.showLabel){var q=i.jqplot.sprintf(this.formatString,A.label.toString());if(q){var o=A.color;A._stack&&!A.fill&&(o=""),R.call(this,q,o,P,B),P=!0}for(var y=0;y<i.jqplot.addLegendRowHooks.length;y++){var _=i.jqplot.addLegendRowHooks[y].call(this,A);_&&(R.call(this,_.label,_.color,P),P=!0)}}b=A=null,delete b,delete A}function R(N,W,G,ne){var Z=G?this.rowSpacing:"0",te=i('<tr class="jqplot-legend jqplot-cursor-legend"></tr>').appendTo(this._elem);te.data("seriesIndex",ne),i('<td class="jqplot-legend jqplot-cursor-legend-swatch" style="padding-top:'+Z+';"><div style="border:1px solid #cccccc;padding:0.2em;"><div class="jqplot-cursor-legend-swatch" style="background-color:'+W+';"></div></div></td>').appendTo(te);var ge=i('<td class="jqplot-legend jqplot-cursor-legend-label" style="vertical-align:middle;padding-top:'+Z+';"></td>');ge.appendTo(te),ge.data("seriesIndex",ne),this.escapeHtml?ge.text(N):ge.html(N),te=null,ge=null}return this._elem}}(jQuery),void 0!==YUI&&(YUI._YUI=YUI);var YUI=function(){var i=0,f=this,g=arguments,j=g.length,l=function(w,k){return w&&w.hasOwnProperty&&w instanceof k},S="undefined"!=typeof YUI_config&&YUI_config;if(l(f,YUI)?(f._init(),YUI.GlobalConfig&&f.applyConfig(YUI.GlobalConfig),S&&f.applyConfig(S),j||f._setup()):f=new YUI,j){for(;i<j;i++)f.applyConfig(g[i]);f._setup()}return f.instanceOf=l,f};(function(){var i,f,g="3.3.0",j=".",l="http://yui.yahooapis.com/",S="yui3-js-enabled",w=function(){},k=Array.prototype.slice,p={"io.xdrReady":1,"io.xdrResponse":1,"SWF.eventHandler":1},m="undefined"!=typeof window,v=m?window:null,u=m?v.document:null,C=u&&u.documentElement,T=C&&C.className,M={},O=(new Date).getTime(),b=function(o,y,_,R){o&&o.addEventListener?o.addEventListener(y,_,R):o&&o.attachEvent&&o.attachEvent("on"+y,_)},A=function(o,y,_,R){if(o&&o.removeEventListener)try{o.removeEventListener(y,_,R)}catch(N){}else o&&o.detachEvent&&o.detachEvent("on"+y,_)},c=function(){YUI.Env.windowLoaded=!0,YUI.Env.DOMReady=!0,m&&A(window,"load",c)},P=function(o,y){var _=o.Env._loader;return _?(_.ignoreRegistered=!1,_.onEnd=null,_.data=null,_.required=[],_.loadType=null):(_=new o.Loader(o.config),o.Env._loader=_),_},B=function(o,y){for(var _ in y)y.hasOwnProperty(_)&&(o[_]=y[_])},q={success:!0};for(f in C&&-1==T.indexOf(S)&&(T&&(T+=" "),C.className=T+=S),g.indexOf("@")>-1&&(g="3.2.0"),i={applyConfig:function(o){o=o||w;var y,_,R=this.config,N=R.modules,W=R.groups,G=R.rls,ne=this.Env._loader;for(_ in o)o.hasOwnProperty(_)&&(y=o[_],N&&"modules"==_?B(N,y):W&&"groups"==_?B(W,y):G&&"rls"==_?B(G,y):"win"==_?(R[_]=y.contentWindow||y,R.doc=R[_].document):"_yuid"==_||(R[_]=y));ne&&ne._config(o)},_config:function(o){this.applyConfig(o)},_init:function(){var o,N,y=this,_=YUI.Env,R=y.Env;if(y.version=g,!R){if(y.Env={mods:{},versions:{},base:l,cdn:l+g+"/build/",_idx:0,_used:{},_attached:{},_yidx:0,_uidx:0,_guidp:"y",_loaded:{},serviced:{},getBase:_&&_.getBase||function(W,G){var ne,Z,te,ge,Q;for(Z=u&&u.getElementsByTagName("script")||[],te=0;te<Z.length;te+=1)if((ge=Z[te].src)&&(ne=(Q=ge.match(W))&&Q[1])){(o=Q[2])&&(Q=o.indexOf("js"))>-1&&(o=o.substr(0,Q)),(Q=ge.match(G))&&Q[3]&&(ne=Q[1]+Q[3]);break}return ne||R.cdn}},(R=y.Env)._loaded[g]={},_&&y!==YUI)R._yidx=++_._yidx,R._guidp=("yui_"+g+"_"+R._yidx+"_"+O).replace(/\./g,"_");else if(YUI._YUI){for(N in R._yidx+=(_=YUI._YUI.Env)._yidx,R._uidx+=_._uidx,_)N in R||(R[N]=_[N]);delete YUI._YUI}y.id=y.stamp(y),M[y.id]=y}y.constructor=YUI,y.config=y.config||{win:v,doc:u,debug:!0,useBrowserConsole:!0,throwFail:!0,bootstrap:!0,cacheUse:!0,fetchCSS:!0},y.config.base=YUI.config.base||y.Env.getBase(/^(.*)yui\/yui([\.\-].*)js(\?.*)?$/,/^(.*\?)(.*\&)(.*)yui\/yui[\.\-].*js(\?.*)?$/),(!o||!"-min.-debug.".indexOf(o))&&(o="-min."),y.config.loaderPath=YUI.config.loaderPath||"loader/loader"+(o||"-min.")+"js"},_setup:function(o){var y,_=this,R=[],N=YUI.Env.mods,W=_.config.core||["get","rls","intl-base","loader","yui-log","yui-later","yui-throttle"];for(y=0;y<W.length;y++)N[W[y]]&&R.push(W[y]);_._attach(["yui-base"]),_._attach(R)},applyTo:function(o,y,_){if(!(y in p))return this.log(y+": applyTo not allowed","warn","yui"),null;var N,W,G,R=M[o];if(R){for(N=y.split("."),W=R,G=0;G<N.length;G+=1)(W=W[N[G]])||this.log("applyTo not found: "+y,"warn","yui");return W.apply(R,_)}return null},add:function(o,y,_,R){var G,ne,N=YUI.Env,W={name:o,fn:y,version:_,details:R=R||{}},Z=N.versions;for(ne in N.mods[o]=W,Z[_]=Z[_]||{},Z[_][o]=W,M)M.hasOwnProperty(ne)&&(G=M[ne].Env._loader)&&(G.moduleInfo[o]||G.addModule(R,o));return this},_attach:function(o,y){var _,R,N,W,G,ne,Z,Q,se,te=YUI.Env.mods,ge=this,J=ge.Env._attached,U=o.length;for(_=0;_<U;_++)if(!J[o[_]])if(N=te[R=o[_]]){if(J[R]=!0,ne=(W=N.details).use,Z=W.after,G=W.requires)for(Q=0;Q<G.length;Q++)if(!J[G[Q]]){if(!ge._attach(G))return!1;break}if(Z)for(Q=0;Q<Z.length;Q++)if(!J[Z[Q]]){if(!ge._attach(Z))return!1;break}if(ne)for(Q=0;Q<ne.length;Q++)if(!J[ne[Q]]){if(!ge._attach(ne))return!1;break}if(N.fn)try{N.fn(ge,R)}catch(de){return ge.error("Attach error: "+R,de,R),!1}}else(!(se=ge.Env._loader)||!se.moduleInfo[R])&&ge.message("NOT loaded: "+R,"warn","yui");return!0},use:function(){var R,o=k.call(arguments,0),y=o[o.length-1],_=this;return _.Lang.isFunction(y)?o.pop():y=null,_._loading?(_._useQueue=_._useQueue||new _.Queue,_._useQueue.add([o,y])):(R=o.join(),_.config.cacheUse&&_.Env.serviced[R]?_._notify(y,q,o):_._use(o,function(N,W){N.config.cacheUse&&(N.Env.serviced[R]=!0),N._notify(y,W,o)})),_},_notify:function(o,y,_){if(!y.success&&this.config.loadErrorFn)this.config.loadErrorFn.call(this,this,o,y,_);else if(o)try{o(this,y)}catch(R){this.error("use callback error",R,_)}},_use:function(o,y){this.Array||this._attach(["yui-base"]);var _,R,N,W=this,G=YUI.Env,ne=G.mods,Z=W.Env,te=Z._used,ge=G._loaderQueue,J=W.Array,U=W.config,se=U.bootstrap,de=[],me=[],ce=U.fetchCSS,xe=function(Oe,we){!Oe.length||J.each(Oe,function(Ue){if(we||me.push(Ue),!te[Ue]){var it,ot,tt=ne[Ue];tt?(te[Ue]=!0,it=tt.details.requires,ot=tt.details.use):G._loaded[g][Ue]?te[Ue]=!0:de.push(Ue),it&&it.length&&xe(it),ot&&ot.length&&xe(ot,1)}})},Re=function(Oe){var Ue,tt,we=Oe||{success:!0,msg:"not dynamic"},it=!0,ot=we.data;W._loading=!1,ot&&(tt=de,de=[],me=[],xe(ot),(Ue=de.length)&&de.sort().join()==tt.sort().join()&&(Ue=!1)),Ue&&ot?(W._loading=!1,W._use(o,function(){W._attach(ot)&&W._notify(y,we,ot)})):(ot&&(it=W._attach(ot)),it&&W._notify(y,we,o)),W._useQueue&&W._useQueue.size()&&!W._loading&&W._use.apply(W,W._useQueue.next())};return"*"===o[0]?(W._attach(W.Object.keys(ne))&&Re(),W):(se&&W.Loader&&o.length&&((R=P(W)).require(o),R.ignoreRegistered=!0,R.calculate(null,ce?null:"js"),o=R.sorted),xe(o),(_=de.length)&&(_=(de=W.Object.keys(J.hash(de))).length),se&&_&&W.Loader?(W._loading=!0,(R=P(W)).onEnd=Re,R.context=W,R.data=o,R.ignoreRegistered=!1,R.require(o),R.insert(null,ce?null:"js")):_&&W.config.use_rls?W.Get.script(W._rls(o),{onEnd:function(Oe){Re(Oe)},data:o}):se&&_&&W.Get&&!Z.bootstrapped?(W._loading=!0,N=function(){W._loading=!1,ge.running=!1,Z.bootstrapped=!0,W._attach(["loader"])&&W._use(o,y)},G._bootstrapping?ge.add(N):(G._bootstrapping=!0,W.Get.script(U.base+U.loaderPath,{onEnd:N}))):W._attach(o)&&Re(),W)},namespace:function(){for(var R,N,W,o=arguments,y=this,_=0;_<o.length;_++)if((W=o[_]).indexOf(j))for(R="YAHOO"==(N=W.split(j))[0]?1:0;R<N.length;R++)y[N[R]]=y[N[R]]||{},y=y[N[R]];else y[W]=y[W]||{};return y},log:w,message:w,error:function(o,y,_){var N,R=this;if(R.config.errorFn&&(N=R.config.errorFn.apply(R,arguments)),R.config.throwFail&&!N)throw y||new Error(o);return R.message(o,"error"),R},guid:function(o){var y=this.Env._guidp+ ++this.Env._uidx;return o?o+y:y},stamp:function(o,y){var _;if(!o)return o;if(!(_=o.uniqueID&&o.nodeType&&9!==o.nodeType?o.uniqueID:"string"==typeof o?o:o._yuid)&&(_=this.guid(),!y))try{o._yuid=_}catch(R){_=null}return _},destroy:function(){var o=this;o.Event&&o.Event._unload(),delete M[o.id],delete o.Env,delete o.config}},YUI.prototype=i,i)i.hasOwnProperty(f)&&(YUI[f]=i[f]);YUI._init(),m?b(window,"load",c):c(),YUI.Env.add=b,YUI.Env.remove=A,"object"==typeof exports&&(exports.YUI=YUI)})(),YUI.add("yui-base",function(i){i.Lang=i.Lang||{};var f=i.Lang,g="array",j="boolean",l="date",w="function",k="number",p="null",m="object",u="string",C=String.prototype,T=Object.prototype.toString,M="undefined",O={undefined:M,number:k,boolean:j,string:u,"[object Function]":w,"[object RegExp]":"regexp","[object Array]":g,"[object Date]":l,"[object Error]":"error"},b=/^\s+|\s+$/g,c=/\{\s*([^\|\}]+?)\s*(?:\|([^\}]*))?\s*\}/g;f.isArray=function(Z){return f.type(Z)===g},f.isBoolean=function(Z){return typeof Z===j},f.isFunction=function(Z){return f.type(Z)===w},f.isDate=function(Z){return f.type(Z)===l&&"Invalid Date"!==Z.toString()&&!isNaN(Z)},f.isNull=function(Z){return null===Z},f.isNumber=function(Z){return typeof Z===k&&isFinite(Z)},f.isObject=function(Z,te){var ge=typeof Z;return Z&&(ge===m||!te&&(ge===w||f.isFunction(Z)))||!1},f.isString=function(Z){return typeof Z===u},f.isUndefined=function(Z){return typeof Z===M},f.trim=C.trim?function(Z){return Z&&Z.trim?Z.trim():Z}:function(Z){try{return Z.replace(b,"")}catch(te){return Z}},f.trimLeft=C.trimLeft?function(Z){return Z.trimLeft()}:function(Z){return Z.replace(/^\s+/,"")},f.trimRight=C.trimRight?function(Z){return Z.trimRight()}:function(Z){return Z.replace(/\s+$/,"")},f.isValue=function(Z){var te=f.type(Z);switch(te){case k:return isFinite(Z);case p:case M:return!1;default:return!!te}},f.type=function(Z){return O[typeof Z]||O[T.call(Z)]||(Z?m:p)},f.sub=function(Z,te){return Z.replace?Z.replace(c,function(ge,Q){return f.isUndefined(te[Q])?ge:te[Q]}):Z},f.now=Date.now||function(){return(new Date).getTime()};var P=Array.prototype,q=function(Z,te,ge){var J,U,se=te||0;if(!ge&&!q.test(Z))return[Z];try{return P.slice.call(Z,se)}catch(de){for(U=[],J=Z.length;se<J;se++)U.push(Z[se]);return U}};function o(){this._init(),this.add.apply(this,arguments)}i.Array=q,q.test=function(Z){var te=0;if(i.Lang.isObject(Z))if(i.Lang.isArray(Z))te=1;else try{"length"in Z&&!Z.tagName&&!Z.alert&&!Z.apply&&(te=2)}catch(ge){}return te},q.each=P.forEach?function(Z,te,ge){return P.forEach.call(Z||[],te,ge||i),i}:function(Z,te,ge){var J,Q=Z&&Z.length||0;for(J=0;J<Q;J+=1)te.call(ge||i,Z[J],J,Z);return i},q.hash=function(Z,te){var U,ge={},Q=Z.length,J=te&&te.length;for(U=0;U<Q;U+=1)ge[Z[U]]=!(J&&J>U)||te[U];return ge},q.indexOf=P.indexOf?function(Z,te){return P.indexOf.call(Z,te)}:function(Z,te){for(var ge=0;ge<Z.length;ge+=1)if(Z[ge]===te)return ge;return-1},q.numericSort=function(Z,te){return Z-te},q.some=P.some?function(Z,te,ge){return P.some.call(Z,te,ge)}:function(Z,te,ge){var J,Q=Z.length;for(J=0;J<Q;J+=1)if(te.call(ge,Z[J],J,Z))return!0;return!1},o.prototype={_init:function(){this._q=[]},next:function(){return this._q.shift()},last:function(){return this._q.pop()},add:function(){return this._q.push.apply(this._q,arguments),this},size:function(){return this._q.length}},i.Queue=o,YUI.Env._loaderQueue=YUI.Env._loaderQueue||new o,i.merge=function(){var ge,Z=arguments,te={},Q=Z.length;for(ge=0;ge<Q;ge+=1)i.mix(te,Z[ge],!0);return te},i.mix=function(Z,te,ge,Q,J,U){if(!te||!Z)return Z||i;if(J)switch(J){case 1:return i.mix(Z.prototype,te.prototype,ge,Q,0,U);case 2:i.mix(Z.prototype,te.prototype,ge,Q,0,U);break;case 3:return i.mix(Z,te.prototype,ge,Q,0,U);case 4:return i.mix(Z.prototype,te,ge,Q,0,U)}var se,de,me,Se;if(Q&&Q.length)for(se=0,de=Q.length;se<de;++se)Se=i.Lang.type(Z[me=Q[se]]),te.hasOwnProperty(me)&&(U&&"object"==Se?i.mix(Z[me],te[me]):(ge||!(me in Z))&&(Z[me]=te[me]));else{for(se in te)te.hasOwnProperty(se)&&(U&&i.Lang.isObject(Z[se],!0)?i.mix(Z[se],te[se],ge,Q,0,!0):(ge||!(se in Z))&&(Z[se]=te[se]));i.UA.ie&&function(Z,te){var ge=te.toString;i.Lang.isFunction(ge)&&ge!=Object.prototype.toString&&(Z.toString=ge)}(Z,te)}return Z},i.cached=function(Z,te,ge){return te=te||{},function(Q){var J=arguments.length>1?Array.prototype.join.call(arguments,"__"):Q;return(!(J in te)||ge&&te[J]==ge)&&(te[J]=Z.apply(Z,arguments)),te[J]}};var G,R=function(){},N=function(Z){return R.prototype=Z,new R},W=function(Z,te){return Z&&Z.hasOwnProperty&&Z.hasOwnProperty(te)},ne=function(Z,te){var J,ge=2===te,Q=ge?0:[];for(J in Z)W(Z,J)&&(ge?Q++:Q.push(te?Z[J]:J));return Q};i.Object=N,N.keys=function(Z){return ne(Z)},N.values=function(Z){return ne(Z,1)},N.size=Object.size||function(Z){return ne(Z,2)},N.hasKey=W,N.hasValue=function(Z,te){return i.Array.indexOf(N.values(Z),te)>-1},N.owns=W,N.each=function(Z,te,ge,Q){var U,J=ge||i;for(U in Z)(Q||W(Z,U))&&te.call(J,Z[U],U,Z);return i},N.some=function(Z,te,ge,Q){var U,J=ge||i;for(U in Z)if((Q||W(Z,U))&&te.call(J,Z[U],U,Z))return!0;return!1},N.getValue=function(Z,te){if(!i.Lang.isObject(Z))return G;var ge,Q=i.Array(te),J=Q.length;for(ge=0;Z!==G&&ge<J;ge++)Z=Z[Q[ge]];return Z},N.setValue=function(Z,te,ge){var Q,J=i.Array(te),U=J.length-1,se=Z;if(U>=0){for(Q=0;se!==G&&Q<U;Q++)se=se[J[Q]];if(se===G)return G;se[J[Q]]=ge}return Z},N.isEmpty=function(Z){for(var te in Z)if(W(Z,te))return!1;return!0},YUI.Env.parseUA=function(Z){var me,te=function(Se){var ce=0;return parseFloat(Se.replace(/\./g,function(){return 1==ce++?"":"."}))},ge=i.config.win,Q=ge&&ge.navigator,J={ie:0,opera:0,gecko:0,webkit:0,chrome:0,mobile:null,air:0,ipad:0,iphone:0,ipod:0,ios:null,android:0,webos:0,caja:Q&&Q.cajaVersion,secure:!1,os:null},U=Z||Q&&Q.userAgent,se=ge&&ge.location,de=se&&se.href;return J.secure=de&&0===de.toLowerCase().indexOf("https"),U&&(/windows|win32/i.test(U)?J.os="windows":/macintosh/i.test(U)?J.os="macintosh":/rhino/i.test(U)&&(J.os="rhino"),/KHTML/.test(U)&&(J.webkit=1),(me=U.match(/AppleWebKit\/([^\s]*)/))&&me[1]&&(J.webkit=te(me[1]),/ Mobile\//.test(U)?(J.mobile="Apple",(me=U.match(/OS ([^\s]*)/))&&me[1]&&(me=te(me[1].replace("_","."))),J.ios=me,J.ipad=J.ipod=J.iphone=0,(me=U.match(/iPad|iPod|iPhone/))&&me[0]&&(J[me[0].toLowerCase()]=J.ios)):((me=U.match(/NokiaN[^\/]*|Android \d\.\d|webOS\/\d\.\d/))&&(J.mobile=me[0]),/webOS/.test(U)&&(J.mobile="WebOS",(me=U.match(/webOS\/([^\s]*);/))&&me[1]&&(J.webos=te(me[1]))),/ Android/.test(U)&&(J.mobile="Android",(me=U.match(/Android ([^\s]*);/))&&me[1]&&(J.android=te(me[1])))),(me=U.match(/Chrome\/([^\s]*)/))&&me[1]?J.chrome=te(me[1]):(me=U.match(/AdobeAIR\/([^\s]*)/))&&(J.air=me[0])),J.webkit||((me=U.match(/Opera[\s\/]([^\s]*)/))&&me[1]?(J.opera=te(me[1]),(me=U.match(/Opera Mini[^;]*/))&&(J.mobile=me[0])):(me=U.match(/MSIE\s([^;]*)/))&&me[1]?J.ie=te(me[1]):(me=U.match(/Gecko\/([^\s]*)/))&&(J.gecko=1,(me=U.match(/rv:([^\s\)]*)/))&&me[1]&&(J.gecko=te(me[1]))))),YUI.Env.UA=J,J},i.UA=YUI.Env.UA||YUI.Env.parseUA()},"3.3.0"),YUI.add("get",function(i){var w,k,p,u,m,v,C,O,b,A,c,B,o,f=i.UA,g=i.Lang;i.Get=(m={},v=0,C=function(y,_,R){var ne,G=(R||i.config.win).document.createElement(y);for(ne in _)_[ne]&&_.hasOwnProperty(ne)&&G.setAttribute(ne,_[ne]);return G},O=function(y,_,R){return{tId:y.tId,win:y.win,data:y.data,nodes:y.nodes,msg:_,statusText:R,purge:function(){k(this.tId)}}},b=function(y,_,R){var N=m[y];N&&N.onEnd&&N.onEnd.call(N.context||N,O(N,_,R))},A=function(y,_){var R=m[y];R.timer&&clearTimeout(R.timer),R.onFailure&&R.onFailure.call(R.context||R,O(R,_)),b(y,_,"failure")},c=function(y){var R,_=m[y];_.timer&&clearTimeout(_.timer),_.finished=!0,_.aborted?A(y,R="transaction "+y+" was aborted"):(_.onSuccess&&_.onSuccess.call(_.context||_,O(_)),b(y,R,"OK"))},B=function(y,_){var W,G,ne,Z,te,ge,Q,R=m[y];if(R.timer&&clearTimeout(R.timer),R.aborted)A(y,"transaction "+y+" was aborted");else{if(_?(R.url.shift(),R.varName&&R.varName.shift()):(R.url=g.isString(R.url)?[R.url]:R.url,R.varName&&(R.varName=g.isString(R.varName)?[R.varName]:R.varName)),ne=(G=(W=R.win).document).getElementsByTagName("head")[0],0!==R.url.length)return(te=R.url[0])?(R.timeout&&(R.timer=setTimeout(function(){!function(y){var _=m[y];_.onTimeout&&_.onTimeout.call(_.context||_,O(_)),b(y,"timeout","timeout")}(y)},R.timeout)),Z="script"===R.type?function(y,_,R){var N={id:i.guid(),type:"text/javascript"};return R&&i.mix(N,R),N.src=y,C("script",N,_)}(te,W,R.attributes):function(y,_,R){var N={id:i.guid(),type:"text/css",rel:"stylesheet",href:y};return R&&i.mix(N,R),C("link",N,_)}(te,W,R.attributes),p(R.type,Z,y,te,W,R.url.length),R.nodes.push(Z),(Q=R.insertBefore||G.getElementsByTagName("base")[0])?(ge=w(Q,y))&&ge.parentNode.insertBefore(Z,ge):ne.appendChild(Z),void((f.webkit||f.gecko)&&"css"===R.type&&B(y,te))):(R.url.shift(),B(y));c(y)}},o=function(y,_,R){var W,N="q"+v++;return v%((R=R||{}).purgethreshold||i.Get.PURGE_THRESH)==0&&function(){if(!u){var y,_;for(y in u=!0,m)m.hasOwnProperty(y)&&(_=m[y]).autopurge&&_.finished&&(k(_.tId),delete m[y]);u=!1}}(),m[N]=i.merge(R,{tId:N,type:y,url:_,finished:!1,nodes:[]}),(W=m[N]).win=W.win||i.config.win,W.context=W.context||W,W.autopurge="autopurge"in W?W.autopurge:"script"===y,W.attributes=W.attributes||{},W.attributes.charset=R.charset||W.attributes.charset||"utf-8",B(N),{tId:N}},p=function(y,_,R,N,W,G,ne){var Z=ne||B;f.ie?_.onreadystatechange=function(){var te=this.readyState;("loaded"===te||"complete"===te)&&(_.onreadystatechange=null,Z(R,N))}:f.webkit?"script"===y&&_.addEventListener("load",function(){Z(R,N)}):(_.onload=function(){Z(R,N)},_.onerror=function(te){A(R,te+": "+N)})},w=function(y,_){var R=m[_],N=g.isString(y)?R.win.document.getElementById(y):y;return N||A(_,"target node not found: "+y),N},k=function(y){var _,R,N,W,G,ne,Z,te,ge,Q=m[y];if(Q)for(R=(_=Q.nodes).length,W=(N=Q.win.document).getElementsByTagName("head")[0],(ge=Q.insertBefore||N.getElementsByTagName("base")[0])&&(G=w(ge,y))&&(W=G.parentNode),ne=0;ne<R;ne+=1){if((Z=_[ne]).clearAttributes)Z.clearAttributes();else for(te in Z)Z.hasOwnProperty(te)&&delete Z[te];W.removeChild(Z)}Q.nodes=[]},{PURGE_THRESH:20,_finalize:function(y){setTimeout(function(){c(y)},0)},abort:function(y){var _=g.isString(y)?y:y.tId,R=m[_];R&&(R.aborted=!0)},script:function(y,_){return o("script",y,_)},css:function(y,_){return o("css",y,_)}})},"3.3.0",{requires:["yui-base"]}),YUI.add("features",function(i){var f={};i.mix(i.namespace("Features"),{tests:f,add:function(j,l,S){f[j]=f[j]||{},f[j][l]=S},all:function(j,l){var S=f[j],w="";return S&&i.Object.each(S,function(k,p){w+=p+":"+(i.Features.test(j,p,l)?1:0)+";"}),w},test:function(j,l,S){S=S||[];var w,k,p,m=f[j],v=m&&m[l];return v&&i.Lang.isUndefined(w=v.result)&&((k=v.ua)&&(w=i.UA[k]),(p=v.test)&&(!k||w)&&(w=p.apply(i,S)),v.result=w),w}});var g=i.Features.add;g("load","0",{test:function(j){return!(j.UA.ios||j.UA.android)},trigger:"autocomplete-list"}),g("load","1",{test:function(j){var l=j.Features.test,S=j.Features.add,w=j.config.win,k=j.config.doc;return S("style","computedStyle",{test:function(){return w&&"getComputedStyle"in w}}),S("style","opacity",{test:function(){return k&&"opacity"in k.documentElement.style}}),!l("style","opacity")&&!l("style","computedStyle")},trigger:"dom-style"}),g("load","2",{trigger:"widget-base",ua:"ie"}),g("load","3",{test:function(j){var l=j.config.doc&&j.config.doc.implementation;return l&&!l.hasFeature("Events","2.0")},trigger:"node-base"}),g("load","4",{test:function(j){return j.config.win&&"ontouchstart"in j.config.win&&!j.UA.chrome},trigger:"dd-drag"}),g("load","5",{test:function(j){var l=j.config.doc.documentMode;return j.UA.ie&&(!("onhashchange"in j.config.win)||!l||l<8)},trigger:"history-hash"})},"3.3.0",{requires:["yui-base"]}),YUI.add("rls",function(i){i._rls=function(f){var w,g=i.config,j=g.rls||{m:1,v:i.version,gv:g.gallery,env:1,lang:g.lang,"2in3v":g["2in3"],"2v":g.yui2,filt:g.filter,filts:g.filters,tests:1},l=g.rls_base||"load?",S=g.rls_tmpl||function(){var p,k="";for(p in j)p in j&&j[p]&&(k+=p+"={"+p+"}&");return k}();return j.m=f,j.env=i.Object.keys(YUI.Env.mods),j.tests=i.Features.all("load",[i]),w=i.Lang.sub(l+S,j),g.rls=j,g.rls_tmpl=S,w}},"3.3.0",{requires:["get","features"]}),YUI.add("intl-base",function(i){var f=/[, ]/;i.mix(i.namespace("Intl"),{lookupBestLang:function(g,j){var l,S,w,k;function p(m){var v;for(v=0;v<j.length;v+=1)if(m.toLowerCase()===j[v].toLowerCase())return j[v]}for(i.Lang.isString(g)&&(g=g.split(f)),l=0;l<g.length;l+=1)if((S=g[l])&&"*"!==S)for(;S.length>0;){if(w=p(S))return w;if(!((k=S.lastIndexOf("-"))>=0))break;S=S.substring(0,k),k>=2&&"-"===S.charAt(k-2)&&(S=S.substring(0,k-2))}return""}})},"3.3.0",{requires:["yui-base"]}),YUI.add("yui-log",function(i){var f=i,g="yui:log",j="undefined",l={debug:1,info:1,warn:1,error:1};f.log=function(S,w,k,p){var m,v,u,C,T,M=f,O=M.config,b=M.fire?M:YUI.Env.globalEvents;return O.debug&&(k&&(v=O.logExclude,((u=O.logInclude)&&!(k in u)||v&&k in v)&&(m=1)),m||(O.useBrowserConsole&&(C=k?k+": "+S:S,M.Lang.isFunction(O.logFn)?O.logFn.call(M,S,w,k):typeof console!=j&&console.log?(T=w&&console[w]&&w in l?w:"log",console[T](C)):typeof opera!=j&&opera.postError(C)),b&&!p&&(b==M&&!b.getEvent(g)&&b.publish(g,{broadcast:2}),b.fire(g,{msg:S,cat:w,src:k})))),M},f.message=function(){return f.log.apply(f,arguments)}},"3.3.0",{requires:["yui-base"]}),YUI.add("yui-later",function(i){i.later=function(f,g,j,l,S){f=f||0;var k,p,w=j;return g&&i.Lang.isString(j)&&(w=g[j]),k=i.Lang.isUndefined(l)?function(){w.call(g)}:function(){w.apply(g,i.Array(l))},{id:p=S?setInterval(k,f):setTimeout(k,f),interval:S,cancel:function(){this.interval?clearInterval(p):clearTimeout(p)}}},i.Lang.later=i.later},"3.3.0",{requires:["yui-base"]}),YUI.add("yui-throttle",function(i){i.throttle=function(f,g){if(-1===(g=g||i.config.throttleTime||150))return function(){f.apply(null,arguments)};var j=i.Lang.now();return function(){var l=i.Lang.now();l-j>g&&(j=l,f.apply(null,arguments))}}},"3.3.0",{requires:["yui-base"]}),YUI.add("yui",function(i){},"3.3.0",{use:["yui-base","get","features","rls","intl-base","yui-log","yui-later","yui-throttle"]});