function f1e(){import("data:text/javascript,")}function c9(e,t){return t.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in e)){var i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return r[n]}})}})}),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const f9=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerpolicy&&(a.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?a.credentials="include":i.crossorigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}};f9();var Yt=typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},Ki=[],Gn=[],d9=typeof Uint8Array!="undefined"?Uint8Array:Array,W0=!1;function M4(){W0=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t<r;++t)Ki[t]=e[t],Gn[e.charCodeAt(t)]=t;Gn["-".charCodeAt(0)]=62,Gn["_".charCodeAt(0)]=63}function p9(e){W0||M4();var t,r,n,i,a,o,s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a=e[s-2]==="="?2:e[s-1]==="="?1:0,o=new d9(s*3/4-a),n=a>0?s-4:s;var u=0;for(t=0,r=0;t<n;t+=4,r+=3)i=Gn[e.charCodeAt(t)]<<18|Gn[e.charCodeAt(t+1)]<<12|Gn[e.charCodeAt(t+2)]<<6|Gn[e.charCodeAt(t+3)],o[u++]=i>>16&255,o[u++]=i>>8&255,o[u++]=i&255;return a===2?(i=Gn[e.charCodeAt(t)]<<2|Gn[e.charCodeAt(t+1)]>>4,o[u++]=i&255):a===1&&(i=Gn[e.charCodeAt(t)]<<10|Gn[e.charCodeAt(t+1)]<<4|Gn[e.charCodeAt(t+2)]>>2,o[u++]=i>>8&255,o[u++]=i&255),o}function h9(e){return Ki[e>>18&63]+Ki[e>>12&63]+Ki[e>>6&63]+Ki[e&63]}function m9(e,t,r){for(var n,i=[],a=t;a<r;a+=3)n=(e[a]<<16)+(e[a+1]<<8)+e[a+2],i.push(h9(n));return i.join("")}function ly(e){W0||M4();for(var t,r=e.length,n=r%3,i="",a=[],o=16383,s=0,u=r-n;s<u;s+=o)a.push(m9(e,s,s+o>u?u:s+o));return n===1?(t=e[r-1],i+=Ki[t>>2],i+=Ki[t<<4&63],i+="=="):n===2&&(t=(e[r-2]<<8)+e[r-1],i+=Ki[t>>10],i+=Ki[t>>4&63],i+=Ki[t<<2&63],i+="="),a.push(i),a.join("")}function Ip(e,t,r,n,i){var a,o,s=i*8-n-1,u=(1<<s)-1,l=u>>1,c=-7,f=r?i-1:0,d=r?-1:1,p=e[t+f];for(f+=d,a=p&(1<<-c)-1,p>>=-c,c+=s;c>0;a=a*256+e[t+f],f+=d,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=n;c>0;o=o*256+e[t+f],f+=d,c-=8);if(a===0)a=1-l;else{if(a===u)return o?NaN:(p?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-l}return(p?-1:1)*o*Math.pow(2,a-n)}function R4(e,t,r,n,i,a){var o,s,u,l=a*8-i-1,c=(1<<l)-1,f=c>>1,d=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,h=n?1:-1,b=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+f>=1?t+=d/u:t+=d*Math.pow(2,1-f),t*u>=2&&(o++,u/=2),o+f>=c?(s=0,o=c):o+f>=1?(s=(t*u-1)*Math.pow(2,i),o=o+f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[r+p]=s&255,p+=h,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[r+p]=o&255,p+=h,o/=256,l-=8);e[r+p-h]|=b*128}var v9={}.toString,L4=Array.isArray||function(e){return v9.call(e)=="[object Array]"};/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
 * @license  MIT
 */var j4=50;Re.TYPED_ARRAY_SUPPORT=Yt.TYPED_ARRAY_SUPPORT!==void 0?Yt.TYPED_ARRAY_SUPPORT:!0;var g9=Od();function Od(){return Re.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function La(e,t){if(Od()<t)throw new RangeError("Invalid typed array length");return Re.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=Re.prototype):(e===null&&(e=new Re(t)),e.length=t),e}function Re(e,t,r){if(!Re.TYPED_ARRAY_SUPPORT&&!(this instanceof Re))return new Re(e,t,r);if(typeof e=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return Y0(this,e)}return U4(this,e,t,r)}Re.poolSize=8192;Re._augment=function(e){return e.__proto__=Re.prototype,e};function U4(e,t,r,n){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&t instanceof ArrayBuffer?w9(e,t,r,n):typeof t=="string"?b9(e,t,r):_9(e,t)}Re.from=function(e,t,r){return U4(null,e,t,r)};Re.TYPED_ARRAY_SUPPORT&&(Re.prototype.__proto__=Uint8Array.prototype,Re.__proto__=Uint8Array);function z4(e){if(typeof e!="number")throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function y9(e,t,r,n){return z4(t),t<=0?La(e,t):r!==void 0?typeof n=="string"?La(e,t).fill(r,n):La(e,t).fill(r):La(e,t)}Re.alloc=function(e,t,r){return y9(null,e,t,r)};function Y0(e,t){if(z4(t),e=La(e,t<0?0:Z0(t)|0),!Re.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}Re.allocUnsafe=function(e){return Y0(null,e)};Re.allocUnsafeSlow=function(e){return Y0(null,e)};function b9(e,t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!Re.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=q4(t,r)|0;e=La(e,n);var i=e.write(t,r);return i!==n&&(e=e.slice(0,i)),e}function Zm(e,t){var r=t.length<0?0:Z0(t.length)|0;e=La(e,r);for(var n=0;n<r;n+=1)e[n]=t[n]&255;return e}function w9(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return r===void 0&&n===void 0?t=new Uint8Array(t):n===void 0?t=new Uint8Array(t,r):t=new Uint8Array(t,r,n),Re.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=Re.prototype):e=Zm(e,t),e}function _9(e,t){if(ea(t)){var r=Z0(t.length)|0;return e=La(e,r),e.length===0||t.copy(e,0,0,r),e}if(t){if(typeof ArrayBuffer!="undefined"&&t.buffer instanceof ArrayBuffer||"length"in t)return typeof t.length!="number"||U9(t.length)?La(e,0):Zm(e,t);if(t.type==="Buffer"&&L4(t.data))return Zm(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Z0(e){if(e>=Od())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Od().toString(16)+" bytes");return e|0}function x9(e){return+e!=e&&(e=0),Re.alloc(+e)}Re.isBuffer=J4;function ea(e){return!!(e!=null&&e._isBuffer)}Re.compare=function(t,r){if(!ea(t)||!ea(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var n=t.length,i=r.length,a=0,o=Math.min(n,i);a<o;++a)if(t[a]!==r[a]){n=t[a],i=r[a];break}return n<i?-1:i<n?1:0};Re.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};Re.concat=function(t,r){if(!L4(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return Re.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;var i=Re.allocUnsafe(r),a=0;for(n=0;n<t.length;++n){var o=t[n];if(!ea(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,a),a+=o.length}return i};function q4(e,t){if(ea(e))return e.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var r=e.length;if(r===0)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Fd(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Z4(e).length;default:if(n)return Fd(e).length;t=(""+t).toLowerCase(),n=!0}}Re.byteLength=q4;function E9(e,t,r){var n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return $9(this,t,r);case"utf8":case"utf-8":return K4(this,t,r);case"ascii":return O9(this,t,r);case"latin1":case"binary":return F9(this,t,r);case"base64":return T9(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B9(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}Re.prototype._isBuffer=!0;function Ss(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}Re.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)Ss(this,r,r+1);return this};Re.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)Ss(this,r,r+3),Ss(this,r+1,r+2);return this};Re.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)Ss(this,r,r+7),Ss(this,r+1,r+6),Ss(this,r+2,r+5),Ss(this,r+3,r+4);return this};Re.prototype.toString=function(){var t=this.length|0;return t===0?"":arguments.length===0?K4(this,0,t):E9.apply(this,arguments)};Re.prototype.equals=function(t){if(!ea(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:Re.compare(this,t)===0};Re.prototype.inspect=function(){var t="",r=j4;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"};Re.prototype.compare=function(t,r,n,i,a){if(!ea(t))throw new TypeError("Argument must be a Buffer");if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>t.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===t)return 0;for(var o=a-i,s=n-r,u=Math.min(o,s),l=this.slice(i,a),c=t.slice(r,n),f=0;f<u;++f)if(l[f]!==c[f]){o=l[f],s=c[f];break}return o<s?-1:s<o?1:0};function H4(e,t,r,n,i){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=Re.from(t,n)),ea(t))return t.length===0?-1:cy(e,t,r,n,i);if(typeof t=="number")return t=t&255,Re.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):cy(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function cy(e,t,r,n,i){var a=1,o=e.length,s=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,r/=2}function u(p,h){return a===1?p[h]:p.readUInt16BE(h*a)}var l;if(i){var c=-1;for(l=r;l<o;l++)if(u(e,l)===u(t,c===-1?0:l-c)){if(c===-1&&(c=l),l-c+1===s)return c*a}else c!==-1&&(l-=l-c),c=-1}else for(r+s>o&&(r=o-s),l=r;l>=0;l--){for(var f=!0,d=0;d<s;d++)if(u(e,l+d)!==u(t,d)){f=!1;break}if(f)return l}return-1}Re.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};Re.prototype.indexOf=function(t,r,n){return H4(this,t,r,n,!0)};Re.prototype.lastIndexOf=function(t,r,n){return H4(this,t,r,n,!1)};function D9(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var a=t.length;if(a%2!==0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(t.substr(o*2,2),16);if(isNaN(s))return o;e[r+o]=s}return o}function S9(e,t,r,n){return Lp(Fd(t,e.length-r),e,r,n)}function V4(e,t,r,n){return Lp(L9(t),e,r,n)}function C9(e,t,r,n){return V4(e,t,r,n)}function A9(e,t,r,n){return Lp(Z4(t),e,r,n)}function N9(e,t,r,n){return Lp(j9(t,e.length-r),e,r,n)}Re.prototype.write=function(t,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r|0,isFinite(n)?(n=n|0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-r;if((n===void 0||n>a)&&(n=a),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return D9(this,t,r,n);case"utf8":case"utf-8":return S9(this,t,r,n);case"ascii":return V4(this,t,r,n);case"latin1":case"binary":return C9(this,t,r,n);case"base64":return A9(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N9(this,t,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};Re.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function T9(e,t,r){return t===0&&r===e.length?ly(e):ly(e.slice(t,r))}function K4(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var a=e[i],o=null,s=a>239?4:a>223?3:a>191?2:1;if(i+s<=r){var u,l,c,f;switch(s){case 1:a<128&&(o=a);break;case 2:u=e[i+1],(u&192)===128&&(f=(a&31)<<6|u&63,f>127&&(o=f));break;case 3:u=e[i+1],l=e[i+2],(u&192)===128&&(l&192)===128&&(f=(a&15)<<12|(u&63)<<6|l&63,f>2047&&(f<55296||f>57343)&&(o=f));break;case 4:u=e[i+1],l=e[i+2],c=e[i+3],(u&192)===128&&(l&192)===128&&(c&192)===128&&(f=(a&15)<<18|(u&63)<<12|(l&63)<<6|c&63,f>65535&&f<1114112&&(o=f))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=s}return k9(n)}var fy=4096;function k9(e){var t=e.length;if(t<=fy)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=fy));return r}function O9(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]&127);return n}function F9(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function $9(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=t;a<r;++a)i+=R9(e[a]);return i}function B9(e,t,r){for(var n=e.slice(t,r),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}Re.prototype.slice=function(t,r){var n=this.length;t=~~t,r=r===void 0?n:~~r,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<t&&(r=t);var i;if(Re.TYPED_ARRAY_SUPPORT)i=this.subarray(t,r),i.__proto__=Re.prototype;else{var a=r-t;i=new Re(a,void 0);for(var o=0;o<a;++o)i[o]=this[o+t]}return i};function Br(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}Re.prototype.readUIntLE=function(t,r,n){t=t|0,r=r|0,n||Br(t,r,this.length);for(var i=this[t],a=1,o=0;++o<r&&(a*=256);)i+=this[t+o]*a;return i};Re.prototype.readUIntBE=function(t,r,n){t=t|0,r=r|0,n||Br(t,r,this.length);for(var i=this[t+--r],a=1;r>0&&(a*=256);)i+=this[t+--r]*a;return i};Re.prototype.readUInt8=function(t,r){return r||Br(t,1,this.length),this[t]};Re.prototype.readUInt16LE=function(t,r){return r||Br(t,2,this.length),this[t]|this[t+1]<<8};Re.prototype.readUInt16BE=function(t,r){return r||Br(t,2,this.length),this[t]<<8|this[t+1]};Re.prototype.readUInt32LE=function(t,r){return r||Br(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};Re.prototype.readUInt32BE=function(t,r){return r||Br(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};Re.prototype.readIntLE=function(t,r,n){t=t|0,r=r|0,n||Br(t,r,this.length);for(var i=this[t],a=1,o=0;++o<r&&(a*=256);)i+=this[t+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*r)),i};Re.prototype.readIntBE=function(t,r,n){t=t|0,r=r|0,n||Br(t,r,this.length);for(var i=r,a=1,o=this[t+--i];i>0&&(a*=256);)o+=this[t+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};Re.prototype.readInt8=function(t,r){return r||Br(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};Re.prototype.readInt16LE=function(t,r){r||Br(t,2,this.length);var n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};Re.prototype.readInt16BE=function(t,r){r||Br(t,2,this.length);var n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};Re.prototype.readInt32LE=function(t,r){return r||Br(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};Re.prototype.readInt32BE=function(t,r){return r||Br(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};Re.prototype.readFloatLE=function(t,r){return r||Br(t,4,this.length),Ip(this,t,!0,23,4)};Re.prototype.readFloatBE=function(t,r){return r||Br(t,4,this.length),Ip(this,t,!1,23,4)};Re.prototype.readDoubleLE=function(t,r){return r||Br(t,8,this.length),Ip(this,t,!0,52,8)};Re.prototype.readDoubleBE=function(t,r){return r||Br(t,8,this.length),Ip(this,t,!1,52,8)};function Dn(e,t,r,n,i,a){if(!ea(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}Re.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r|0,n=n|0,!i){var a=Math.pow(2,8*n)-1;Dn(this,t,r,n,a,0)}var o=1,s=0;for(this[r]=t&255;++s<n&&(o*=256);)this[r+s]=t/o&255;return r+n};Re.prototype.writeUIntBE=function(t,r,n,i){if(t=+t,r=r|0,n=n|0,!i){var a=Math.pow(2,8*n)-1;Dn(this,t,r,n,a,0)}var o=n-1,s=1;for(this[r+o]=t&255;--o>=0&&(s*=256);)this[r+o]=t/s&255;return r+n};Re.prototype.writeUInt8=function(t,r,n){return t=+t,r=r|0,n||Dn(this,t,r,1,255,0),Re.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=t&255,r+1};function Mp(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-r,2);i<a;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>(n?i:1-i)*8}Re.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r|0,n||Dn(this,t,r,2,65535,0),Re.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8):Mp(this,t,r,!0),r+2};Re.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r|0,n||Dn(this,t,r,2,65535,0),Re.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t&255):Mp(this,t,r,!1),r+2};function Rp(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-r,4);i<a;++i)e[r+i]=t>>>(n?i:3-i)*8&255}Re.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r|0,n||Dn(this,t,r,4,4294967295,0),Re.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255):Rp(this,t,r,!0),r+4};Re.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r|0,n||Dn(this,t,r,4,4294967295,0),Re.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255):Rp(this,t,r,!1),r+4};Re.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r|0,!i){var a=Math.pow(2,8*n-1);Dn(this,t,r,n,a-1,-a)}var o=0,s=1,u=0;for(this[r]=t&255;++o<n&&(s*=256);)t<0&&u===0&&this[r+o-1]!==0&&(u=1),this[r+o]=(t/s>>0)-u&255;return r+n};Re.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r|0,!i){var a=Math.pow(2,8*n-1);Dn(this,t,r,n,a-1,-a)}var o=n-1,s=1,u=0;for(this[r+o]=t&255;--o>=0&&(s*=256);)t<0&&u===0&&this[r+o+1]!==0&&(u=1),this[r+o]=(t/s>>0)-u&255;return r+n};Re.prototype.writeInt8=function(t,r,n){return t=+t,r=r|0,n||Dn(this,t,r,1,127,-128),Re.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=t&255,r+1};Re.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r|0,n||Dn(this,t,r,2,32767,-32768),Re.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8):Mp(this,t,r,!0),r+2};Re.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r|0,n||Dn(this,t,r,2,32767,-32768),Re.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t&255):Mp(this,t,r,!1),r+2};Re.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r|0,n||Dn(this,t,r,4,2147483647,-2147483648),Re.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):Rp(this,t,r,!0),r+4};Re.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r|0,n||Dn(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),Re.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255):Rp(this,t,r,!1),r+4};function G4(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function W4(e,t,r,n,i){return i||G4(e,t,r,4),R4(e,t,r,n,23,4),r+4}Re.prototype.writeFloatLE=function(t,r,n){return W4(this,t,r,!0,n)};Re.prototype.writeFloatBE=function(t,r,n){return W4(this,t,r,!1,n)};function Y4(e,t,r,n,i){return i||G4(e,t,r,8),R4(e,t,r,n,52,8),r+8}Re.prototype.writeDoubleLE=function(t,r,n){return Y4(this,t,r,!0,n)};Re.prototype.writeDoubleBE=function(t,r,n){return Y4(this,t,r,!1,n)};Re.prototype.copy=function(t,r,n,i){if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<n&&(i=n),i===n||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-n&&(i=t.length-r+n);var a=i-n,o;if(this===t&&n<r&&r<i)for(o=a-1;o>=0;--o)t[o+r]=this[o+n];else if(a<1e3||!Re.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)t[o+r]=this[o+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),r);return a};Re.prototype.fill=function(t,r,n,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),t.length===1){var a=t.charCodeAt(0);a<256&&(t=a)}if(i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!Re.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else typeof t=="number"&&(t=t&255);if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,t||(t=0);var o;if(typeof t=="number")for(o=r;o<n;++o)this[o]=t;else{var s=ea(t)?t:Fd(new Re(t,i).toString()),u=s.length;for(o=0;o<n-r;++o)this[o+r]=s[o%u]}return this};var P9=/[^+\/0-9A-Za-z-_]/g;function I9(e){if(e=M9(e).replace(P9,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function M9(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function R9(e){return e<16?"0"+e.toString(16):e.toString(16)}function Fd(e,t){t=t||1/0;for(var r,n=e.length,i=null,a=[],o=0;o<n;++o){if(r=e.charCodeAt(o),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function L9(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function j9(e,t){for(var r,n,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)r=e.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}function Z4(e){return p9(I9(e))}function Lp(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function U9(e){return e!==e}function J4(e){return e!=null&&(!!e._isBuffer||X4(e)||z9(e))}function X4(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function z9(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&X4(e.slice(0,0))}var d1e=Object.freeze(Object.defineProperty({__proto__:null,Buffer:Re,INSPECT_MAX_BYTES:j4,SlowBuffer:x9,isBuffer:J4,kMaxLength:g9},Symbol.toStringTag,{value:"Module"})),lt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function q9(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function H9(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}),t}function V9(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Q4={exports:{}},pr=Q4.exports={},Ui,zi;function Jm(){throw new Error("setTimeout has not been defined")}function Xm(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Ui=setTimeout:Ui=Jm}catch{Ui=Jm}try{typeof clearTimeout=="function"?zi=clearTimeout:zi=Xm}catch{zi=Xm}})();function e_(e){if(Ui===setTimeout)return setTimeout(e,0);if((Ui===Jm||!Ui)&&setTimeout)return Ui=setTimeout,setTimeout(e,0);try{return Ui(e,0)}catch{try{return Ui.call(null,e,0)}catch{return Ui.call(this,e,0)}}}function K9(e){if(zi===clearTimeout)return clearTimeout(e);if((zi===Xm||!zi)&&clearTimeout)return zi=clearTimeout,clearTimeout(e);try{return zi(e)}catch{try{return zi.call(null,e)}catch{return zi.call(this,e)}}}var ja=[],ku=!1,Cs,ld=-1;function G9(){!ku||!Cs||(ku=!1,Cs.length?ja=Cs.concat(ja):ld=-1,ja.length&&t_())}function t_(){if(!ku){var e=e_(G9);ku=!0;for(var t=ja.length;t;){for(Cs=ja,ja=[];++ld<t;)Cs&&Cs[ld].run();ld=-1,t=ja.length}Cs=null,ku=!1,K9(e)}}pr.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];ja.push(new r_(e,t)),ja.length===1&&!ku&&e_(t_)};function r_(e,t){this.fun=e,this.array=t}r_.prototype.run=function(){this.fun.apply(null,this.array)};pr.title="browser";pr.browser=!0;pr.env={};pr.argv=[];pr.version="";pr.versions={};function oo(){}pr.on=oo;pr.addListener=oo;pr.once=oo;pr.off=oo;pr.removeListener=oo;pr.removeAllListeners=oo;pr.emit=oo;pr.prependListener=oo;pr.prependOnceListener=oo;pr.listeners=function(e){return[]};pr.binding=function(e){throw new Error("process.binding is not supported")};pr.cwd=function(){return"/"};pr.chdir=function(e){throw new Error("process.chdir is not supported")};pr.umask=function(){return 0};var W9=Q4.exports;window.global=window;window.Buffer=Re;window.process=W9;function J0(e,t){const r=Object.create(null),n=e.split(",");for(let i=0;i<n.length;i++)r[n[i]]=!0;return t?i=>!!r[i.toLowerCase()]:i=>!!r[i]}const Y9="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Z9=J0(Y9);function n_(e){return!!e||e===""}function ln(e){if(it(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],i=br(n)?Q9(n):ln(n);if(i)for(const a in i)t[a]=i[a]}return t}else{if(br(e))return e;if(cr(e))return e}}const J9=/;(?![^(]*\))/g,X9=/:(.+)/;function Q9(e){const t={};return e.split(J9).forEach(r=>{if(r){const n=r.split(X9);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Ye(e){let t="";if(br(e))t=e;else if(it(e))for(let r=0;r<e.length;r++){const n=Ye(e[r]);n&&(t+=n+" ")}else if(cr(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function eD(e,t){if(e.length!==t.length)return!1;let r=!0;for(let n=0;r&&n<e.length;n++)r=Rs(e[n],t[n]);return r}function Rs(e,t){if(e===t)return!0;let r=dy(e),n=dy(t);if(r||n)return r&&n?e.getTime()===t.getTime():!1;if(r=bc(e),n=bc(t),r||n)return e===t;if(r=it(e),n=it(t),r||n)return r&&n?eD(e,t):!1;if(r=cr(e),n=cr(t),r||n){if(!r||!n)return!1;const i=Object.keys(e).length,a=Object.keys(t).length;if(i!==a)return!1;for(const o in e){const s=e.hasOwnProperty(o),u=t.hasOwnProperty(o);if(s&&!u||!s&&u||!Rs(e[o],t[o]))return!1}}return String(e)===String(t)}function X0(e,t){return e.findIndex(r=>Rs(r,t))}const We=e=>br(e)?e:e==null?"":it(e)||cr(e)&&(e.toString===o_||!mt(e.toString))?JSON.stringify(e,i_,2):String(e),i_=(e,t)=>t&&t.__v_isRef?i_(e,t.value):Fu(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,i])=>(r[`${n} =>`]=i,r),{})}:ul(t)?{[`Set(${t.size})`]:[...t.values()]}:cr(t)&&!it(t)&&!s_(t)?String(t):t,Ht={},Ou=[],xi=()=>{},tD=()=>!1,rD=/^on[^a-z]/,jp=e=>rD.test(e),Q0=e=>e.startsWith("onUpdate:"),Or=Object.assign,ev=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},nD=Object.prototype.hasOwnProperty,Nt=(e,t)=>nD.call(e,t),it=Array.isArray,Fu=e=>zc(e)==="[object Map]",ul=e=>zc(e)==="[object Set]",dy=e=>zc(e)==="[object Date]",mt=e=>typeof e=="function",br=e=>typeof e=="string",bc=e=>typeof e=="symbol",cr=e=>e!==null&&typeof e=="object",a_=e=>cr(e)&&mt(e.then)&&mt(e.catch),o_=Object.prototype.toString,zc=e=>o_.call(e),iD=e=>zc(e).slice(8,-1),s_=e=>zc(e)==="[object Object]",tv=e=>br(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,cd=J0(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Up=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},aD=/-(\w)/g,ta=Up(e=>e.replace(aD,(t,r)=>r?r.toUpperCase():"")),oD=/\B([A-Z])/g,Hs=Up(e=>e.replace(oD,"-$1").toLowerCase()),zp=Up(e=>e.charAt(0).toUpperCase()+e.slice(1)),fd=Up(e=>e?`on${zp(e)}`:""),wc=(e,t)=>!Object.is(e,t),dd=(e,t)=>{for(let r=0;r<e.length;r++)e[r](t)},$d=(e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},_c=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let py;const sD=()=>py||(py=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof Yt!="undefined"?Yt:{});let ji;class uD{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&ji&&(this.parent=ji,this.index=(ji.scopes||(ji.scopes=[])).push(this)-1)}run(t){if(this.active){const r=ji;try{return ji=this,t()}finally{ji=r}}}on(){ji=this}off(){ji=this.parent}stop(t){if(this.active){let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.scopes)for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);if(this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.active=!1}}}function lD(e,t=ji){t&&t.active&&t.effects.push(e)}const rv=e=>{const t=new Set(e);return t.w=0,t.n=0,t},u_=e=>(e.w&Go)>0,l_=e=>(e.n&Go)>0,cD=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Go},fD=e=>{const{deps:t}=e;if(t.length){let r=0;for(let n=0;n<t.length;n++){const i=t[n];u_(i)&&!l_(i)?i.delete(e):t[r++]=i,i.w&=~Go,i.n&=~Go}t.length=r}},Qm=new WeakMap;let Gl=0,Go=1;const e1=30;let yi;const Os=Symbol(""),t1=Symbol("");class nv{constructor(t,r=null,n){this.fn=t,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,lD(this,n)}run(){if(!this.active)return this.fn();let t=yi,r=Uo;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=yi,yi=this,Uo=!0,Go=1<<++Gl,Gl<=e1?cD(this):hy(this),this.fn()}finally{Gl<=e1&&fD(this),Go=1<<--Gl,yi=this.parent,Uo=r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){yi===this?this.deferStop=!0:this.active&&(hy(this),this.onStop&&this.onStop(),this.active=!1)}}function hy(e){const{deps:t}=e;if(t.length){for(let r=0;r<t.length;r++)t[r].delete(e);t.length=0}}let Uo=!0;const c_=[];function ll(){c_.push(Uo),Uo=!1}function cl(){const e=c_.pop();Uo=e===void 0?!0:e}function In(e,t,r){if(Uo&&yi){let n=Qm.get(e);n||Qm.set(e,n=new Map);let i=n.get(r);i||n.set(r,i=rv()),f_(i)}}function f_(e,t){let r=!1;Gl<=e1?l_(e)||(e.n|=Go,r=!u_(e)):r=!e.has(yi),r&&(e.add(yi),yi.deps.push(e))}function Xa(e,t,r,n,i,a){const o=Qm.get(e);if(!o)return;let s=[];if(t==="clear")s=[...o.values()];else if(r==="length"&&it(e))o.forEach((u,l)=>{(l==="length"||l>=n)&&s.push(u)});else switch(r!==void 0&&s.push(o.get(r)),t){case"add":it(e)?tv(r)&&s.push(o.get("length")):(s.push(o.get(Os)),Fu(e)&&s.push(o.get(t1)));break;case"delete":it(e)||(s.push(o.get(Os)),Fu(e)&&s.push(o.get(t1)));break;case"set":Fu(e)&&s.push(o.get(Os));break}if(s.length===1)s[0]&&r1(s[0]);else{const u=[];for(const l of s)l&&u.push(...l);r1(rv(u))}}function r1(e,t){const r=it(e)?e:[...e];for(const n of r)n.computed&&my(n);for(const n of r)n.computed||my(n)}function my(e,t){(e!==yi||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const dD=J0("__proto__,__v_isRef,__isVue"),d_=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(bc)),pD=iv(),hD=iv(!1,!0),mD=iv(!0),vy=vD();function vD(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=At(this);for(let a=0,o=this.length;a<o;a++)In(n,"get",a+"");const i=n[t](...r);return i===-1||i===!1?n[t](...r.map(At)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){ll();const n=At(this)[t].apply(this,r);return cl(),n}}),e}function iv(e=!1,t=!1){return function(n,i,a){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&a===(e?t?FD:g_:t?v_:m_).get(n))return n;const o=it(n);if(!e&&o&&Nt(vy,i))return Reflect.get(vy,i,a);const s=Reflect.get(n,i,a);return(bc(i)?d_.has(i):dD(i))||(e||In(n,"get",i),t)?s:Lr(s)?o&&tv(i)?s:s.value:cr(s)?e?y_(s):Vs(s):s}}const gD=p_(),yD=p_(!0);function p_(e=!1){return function(r,n,i,a){let o=r[n];if(xc(o)&&Lr(o)&&!Lr(i))return!1;if(!e&&!xc(i)&&(i1(i)||(i=At(i),o=At(o)),!it(r)&&Lr(o)&&!Lr(i)))return o.value=i,!0;const s=it(r)&&tv(n)?Number(n)<r.length:Nt(r,n),u=Reflect.set(r,n,i,a);return r===At(a)&&(s?wc(i,o)&&Xa(r,"set",n,i):Xa(r,"add",n,i)),u}}function bD(e,t){const r=Nt(e,t);e[t];const n=Reflect.deleteProperty(e,t);return n&&r&&Xa(e,"delete",t,void 0),n}function wD(e,t){const r=Reflect.has(e,t);return(!bc(t)||!d_.has(t))&&In(e,"has",t),r}function _D(e){return In(e,"iterate",it(e)?"length":Os),Reflect.ownKeys(e)}const h_={get:pD,set:gD,deleteProperty:bD,has:wD,ownKeys:_D},xD={get:mD,set(e,t){return!0},deleteProperty(e,t){return!0}},ED=Or({},h_,{get:hD,set:yD}),av=e=>e,qp=e=>Reflect.getPrototypeOf(e);function ff(e,t,r=!1,n=!1){e=e.__v_raw;const i=At(e),a=At(t);r||(t!==a&&In(i,"get",t),In(i,"get",a));const{has:o}=qp(i),s=n?av:r?uv:Ec;if(o.call(i,t))return s(e.get(t));if(o.call(i,a))return s(e.get(a));e!==i&&e.get(t)}function df(e,t=!1){const r=this.__v_raw,n=At(r),i=At(e);return t||(e!==i&&In(n,"has",e),In(n,"has",i)),e===i?r.has(e):r.has(e)||r.has(i)}function pf(e,t=!1){return e=e.__v_raw,!t&&In(At(e),"iterate",Os),Reflect.get(e,"size",e)}function gy(e){e=At(e);const t=At(this);return qp(t).has.call(t,e)||(t.add(e),Xa(t,"add",e,e)),this}function yy(e,t){t=At(t);const r=At(this),{has:n,get:i}=qp(r);let a=n.call(r,e);a||(e=At(e),a=n.call(r,e));const o=i.call(r,e);return r.set(e,t),a?wc(t,o)&&Xa(r,"set",e,t):Xa(r,"add",e,t),this}function by(e){const t=At(this),{has:r,get:n}=qp(t);let i=r.call(t,e);i||(e=At(e),i=r.call(t,e)),n&&n.call(t,e);const a=t.delete(e);return i&&Xa(t,"delete",e,void 0),a}function wy(){const e=At(this),t=e.size!==0,r=e.clear();return t&&Xa(e,"clear",void 0,void 0),r}function hf(e,t){return function(n,i){const a=this,o=a.__v_raw,s=At(o),u=t?av:e?uv:Ec;return!e&&In(s,"iterate",Os),o.forEach((l,c)=>n.call(i,u(l),u(c),a))}}function mf(e,t,r){return function(...n){const i=this.__v_raw,a=At(i),o=Fu(a),s=e==="entries"||e===Symbol.iterator&&o,u=e==="keys"&&o,l=i[e](...n),c=r?av:t?uv:Ec;return!t&&In(a,"iterate",u?t1:Os),{next(){const{value:f,done:d}=l.next();return d?{value:f,done:d}:{value:s?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function go(e){return function(...t){return e==="delete"?!1:this}}function DD(){const e={get(a){return ff(this,a)},get size(){return pf(this)},has:df,add:gy,set:yy,delete:by,clear:wy,forEach:hf(!1,!1)},t={get(a){return ff(this,a,!1,!0)},get size(){return pf(this)},has:df,add:gy,set:yy,delete:by,clear:wy,forEach:hf(!1,!0)},r={get(a){return ff(this,a,!0)},get size(){return pf(this,!0)},has(a){return df.call(this,a,!0)},add:go("add"),set:go("set"),delete:go("delete"),clear:go("clear"),forEach:hf(!0,!1)},n={get(a){return ff(this,a,!0,!0)},get size(){return pf(this,!0)},has(a){return df.call(this,a,!0)},add:go("add"),set:go("set"),delete:go("delete"),clear:go("clear"),forEach:hf(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=mf(a,!1,!1),r[a]=mf(a,!0,!1),t[a]=mf(a,!1,!0),n[a]=mf(a,!0,!0)}),[e,r,t,n]}const[SD,CD,AD,ND]=DD();function ov(e,t){const r=t?e?ND:AD:e?CD:SD;return(n,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(Nt(r,i)&&i in n?r:n,i,a)}const TD={get:ov(!1,!1)},kD={get:ov(!1,!0)},OD={get:ov(!0,!1)},m_=new WeakMap,v_=new WeakMap,g_=new WeakMap,FD=new WeakMap;function $D(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function BD(e){return e.__v_skip||!Object.isExtensible(e)?0:$D(iD(e))}function Vs(e){return xc(e)?e:sv(e,!1,h_,TD,m_)}function n1(e){return sv(e,!1,ED,kD,v_)}function y_(e){return sv(e,!0,xD,OD,g_)}function sv(e,t,r,n,i){if(!cr(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const o=BD(e);if(o===0)return e;const s=new Proxy(e,o===2?n:r);return i.set(e,s),s}function $u(e){return xc(e)?$u(e.__v_raw):!!(e&&e.__v_isReactive)}function xc(e){return!!(e&&e.__v_isReadonly)}function i1(e){return!!(e&&e.__v_isShallow)}function b_(e){return $u(e)||xc(e)}function At(e){const t=e&&e.__v_raw;return t?At(t):e}function w_(e){return $d(e,"__v_skip",!0),e}const Ec=e=>cr(e)?Vs(e):e,uv=e=>cr(e)?y_(e):e;function __(e){Uo&&yi&&(e=At(e),f_(e.dep||(e.dep=rv())))}function lv(e,t){e=At(e),e.dep&&r1(e.dep)}function Lr(e){return!!(e&&e.__v_isRef===!0)}function ht(e){return E_(e,!1)}function x_(e){return E_(e,!0)}function E_(e,t){return Lr(e)?e:new PD(e,t)}class PD{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:At(t),this._value=r?t:Ec(t)}get value(){return __(this),this._value}set value(t){t=this.__v_isShallow?t:At(t),wc(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:Ec(t),lv(this))}}function Lh(e){lv(e)}function Bu(e){return Lr(e)?e.value:e}const ID={get:(e,t,r)=>Bu(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return Lr(i)&&!Lr(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function D_(e){return $u(e)?e:new Proxy(e,ID)}function yt(e){const t=it(e)?new Array(e.length):{};for(const r in e)t[r]=Dr(e,r);return t}class MD{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function Dr(e,t,r){const n=e[t];return Lr(n)?n:new MD(e,t,r)}class RD{constructor(t,r,n,i){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new nv(t,()=>{this._dirty||(this._dirty=!0,lv(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const t=At(this);return __(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function LD(e,t,r=!1){let n,i;const a=mt(e);return a?(n=e,i=xi):(n=e.get,i=e.set),new RD(n,i,a||!i,r)}function zo(e,t,r,n){let i;try{i=n?e(...n):e()}catch(a){qc(a,t,r)}return i}function Jn(e,t,r,n){if(mt(e)){const a=zo(e,t,r,n);return a&&a_(a)&&a.catch(o=>{qc(o,t,r)}),a}const i=[];for(let a=0;a<e.length;a++)i.push(Jn(e[a],t,r,n));return i}function qc(e,t,r,n=!0){const i=t?t.vnode:null;if(t){let a=t.parent;const o=t.proxy,s=r;for(;a;){const l=a.ec;if(l){for(let c=0;c<l.length;c++)if(l[c](e,o,s)===!1)return}a=a.parent}const u=t.appContext.config.errorHandler;if(u){zo(u,null,10,[e,o,s]);return}}jD(e,r,i,n)}function jD(e,t,r,n=!0){console.error(e)}let Bd=!1,a1=!1;const Pn=[];let Ia=0;const tc=[];let Wl=null,_u=0;const rc=[];let Eo=null,xu=0;const S_=Promise.resolve();let cv=null,o1=null;function Ua(e){const t=cv||S_;return e?t.then(this?e.bind(this):e):t}function UD(e){let t=Ia+1,r=Pn.length;for(;t<r;){const n=t+r>>>1;Dc(Pn[n])<e?t=n+1:r=n}return t}function fv(e){(!Pn.length||!Pn.includes(e,Bd&&e.allowRecurse?Ia+1:Ia))&&e!==o1&&(e.id==null?Pn.push(e):Pn.splice(UD(e.id),0,e),C_())}function C_(){!Bd&&!a1&&(a1=!0,cv=S_.then(T_))}function zD(e){const t=Pn.indexOf(e);t>Ia&&Pn.splice(t,1)}function A_(e,t,r,n){it(e)?r.push(...e):(!t||!t.includes(e,e.allowRecurse?n+1:n))&&r.push(e),C_()}function qD(e){A_(e,Wl,tc,_u)}function HD(e){A_(e,Eo,rc,xu)}function Hp(e,t=null){if(tc.length){for(o1=t,Wl=[...new Set(tc)],tc.length=0,_u=0;_u<Wl.length;_u++)Wl[_u]();Wl=null,_u=0,o1=null,Hp(e,t)}}function N_(e){if(Hp(),rc.length){const t=[...new Set(rc)];if(rc.length=0,Eo){Eo.push(...t);return}for(Eo=t,Eo.sort((r,n)=>Dc(r)-Dc(n)),xu=0;xu<Eo.length;xu++)Eo[xu]();Eo=null,xu=0}}const Dc=e=>e.id==null?1/0:e.id;function T_(e){a1=!1,Bd=!0,Hp(e),Pn.sort((r,n)=>Dc(r)-Dc(n));const t=xi;try{for(Ia=0;Ia<Pn.length;Ia++){const r=Pn[Ia];r&&r.active!==!1&&zo(r,null,14)}}finally{Ia=0,Pn.length=0,N_(),Bd=!1,cv=null,(Pn.length||tc.length||rc.length)&&T_(e)}}function VD(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||Ht;let i=r;const a=t.startsWith("update:"),o=a&&t.slice(7);if(o&&o in n){const c=`${o==="modelValue"?"model":o}Modifiers`,{number:f,trim:d}=n[c]||Ht;d&&(i=r.map(p=>p.trim())),f&&(i=r.map(_c))}let s,u=n[s=fd(t)]||n[s=fd(ta(t))];!u&&a&&(u=n[s=fd(Hs(t))]),u&&Jn(u,e,6,i);const l=n[s+"Once"];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Jn(l,e,6,i)}}function k_(e,t,r=!1){const n=t.emitsCache,i=n.get(e);if(i!==void 0)return i;const a=e.emits;let o={},s=!1;if(!mt(e)){const u=l=>{const c=k_(l,t,!0);c&&(s=!0,Or(o,c))};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!a&&!s?(n.set(e,null),null):(it(a)?a.forEach(u=>o[u]=null):Or(o,a),n.set(e,o),o)}function Vp(e,t){return!e||!jp(t)?!1:(t=t.slice(2).replace(/Once$/,""),Nt(e,t[0].toLowerCase()+t.slice(1))||Nt(e,Hs(t))||Nt(e,t))}let Gr=null,Kp=null;function Pd(e){const t=Gr;return Gr=e,Kp=e&&e.type.__scopeId||null,t}function ua(e){Kp=e}function la(){Kp=null}const KD=e=>Qe;function Qe(e,t=Gr,r){if(!t||e._n)return e;const n=(...i)=>{n._d&&Fy(-1);const a=Pd(t),o=e(...i);return Pd(a),n._d&&Fy(1),o};return n._n=!0,n._c=!0,n._d=!0,n}function jh(e){const{type:t,vnode:r,proxy:n,withProxy:i,props:a,propsOptions:[o],slots:s,attrs:u,emit:l,render:c,renderCache:f,data:d,setupState:p,ctx:h,inheritAttrs:b}=e;let g,v;const S=Pd(e);try{if(r.shapeFlag&4){const D=i||n;g=Hi(c.call(D,D,f,a,p,d,h)),v=u}else{const D=t;g=Hi(D.length>1?D(a,{attrs:u,slots:s,emit:l}):D(a,null)),v=t.props?u:GD(u)}}catch(D){ac.length=0,qc(D,e,1),g=Ee(Xn)}let w=g;if(v&&b!==!1){const D=Object.keys(v),{shapeFlag:_}=w;D.length&&_&7&&(o&&D.some(Q0)&&(v=WD(v,o)),w=Wo(w,v))}return r.dirs&&(w=Wo(w),w.dirs=w.dirs?w.dirs.concat(r.dirs):r.dirs),r.transition&&(w.transition=r.transition),g=w,Pd(S),g}const GD=e=>{let t;for(const r in e)(r==="class"||r==="style"||jp(r))&&((t||(t={}))[r]=e[r]);return t},WD=(e,t)=>{const r={};for(const n in e)(!Q0(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function YD(e,t,r){const{props:n,children:i,component:a}=e,{props:o,children:s,patchFlag:u}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&u>=0){if(u&1024)return!0;if(u&16)return n?_y(n,o,l):!!o;if(u&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(o[d]!==n[d]&&!Vp(l,d))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:n===o?!1:n?o?_y(n,o,l):!0:!!o;return!1}function _y(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let i=0;i<n.length;i++){const a=n[i];if(t[a]!==e[a]&&!Vp(r,a))return!0}return!1}function ZD({vnode:e,parent:t},r){for(;t&&t.subTree===e;)(e=t.vnode).el=r,t=t.parent}const JD=e=>e.__isSuspense;function XD(e,t){t&&t.pendingBranch?it(e)?t.effects.push(...e):t.effects.push(e):HD(e)}function pd(e,t){if(Er){let r=Er.provides;const n=Er.parent&&Er.parent.provides;n===r&&(r=Er.provides=Object.create(n)),r[e]=t}}function Xi(e,t,r=!1){const n=Er||Gr;if(n){const i=n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return r&&mt(t)?t.call(n.proxy):t}}const xy={};function Vr(e,t,r){return O_(e,t,r)}function O_(e,t,{immediate:r,deep:n,flush:i,onTrack:a,onTrigger:o}=Ht){const s=Er;let u,l=!1,c=!1;if(Lr(e)?(u=()=>e.value,l=i1(e)):$u(e)?(u=()=>e,n=!0):it(e)?(c=!0,l=e.some(v=>$u(v)||i1(v)),u=()=>e.map(v=>{if(Lr(v))return v.value;if($u(v))return As(v);if(mt(v))return zo(v,s,2)})):mt(e)?t?u=()=>zo(e,s,2):u=()=>{if(!(s&&s.isUnmounted))return f&&f(),Jn(e,s,3,[d])}:u=xi,t&&n){const v=u;u=()=>As(v())}let f,d=v=>{f=g.onStop=()=>{zo(v,s,4)}};if(Vu)return d=xi,t?r&&Jn(t,s,3,[u(),c?[]:void 0,d]):u(),xi;let p=c?[]:xy;const h=()=>{if(!!g.active)if(t){const v=g.run();(n||l||(c?v.some((S,w)=>wc(S,p[w])):wc(v,p)))&&(f&&f(),Jn(t,s,3,[v,p===xy?void 0:p,d]),p=v)}else g.run()};h.allowRecurse=!!t;let b;i==="sync"?b=h:i==="post"?b=()=>gn(h,s&&s.suspense):b=()=>qD(h);const g=new nv(u,b);return t?r?h():p=g.run():i==="post"?gn(g.run.bind(g),s&&s.suspense):g.run(),()=>{g.stop(),s&&s.scope&&ev(s.scope.effects,g)}}function QD(e,t,r){const n=this.proxy,i=br(e)?e.includes(".")?F_(n,e):()=>n[e]:e.bind(n,n);let a;mt(t)?a=t:(a=t.handler,r=t);const o=Er;Hu(this);const s=O_(i,a.bind(n),r);return o?Hu(o):Fs(),s}function F_(e,t){const r=t.split(".");return()=>{let n=e;for(let i=0;i<r.length&&n;i++)n=n[r[i]];return n}}function As(e,t){if(!cr(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Lr(e))As(e.value,t);else if(it(e))for(let r=0;r<e.length;r++)As(e[r],t);else if(ul(e)||Fu(e))e.forEach(r=>{As(r,t)});else if(s_(e))for(const r in e)As(e[r],t);return e}function $_(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ks(()=>{e.isMounted=!0}),zu(()=>{e.isUnmounting=!0}),e}const qn=[Function,Array],eS={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:qn,onEnter:qn,onAfterEnter:qn,onEnterCancelled:qn,onBeforeLeave:qn,onLeave:qn,onAfterLeave:qn,onLeaveCancelled:qn,onBeforeAppear:qn,onAppear:qn,onAfterAppear:qn,onAppearCancelled:qn},setup(e,{slots:t}){const r=X_(),n=$_();let i;return()=>{const a=t.default&&dv(t.default(),!0);if(!a||!a.length)return;let o=a[0];if(a.length>1){for(const b of a)if(b.type!==Xn){o=b;break}}const s=At(e),{mode:u}=s;if(n.isLeaving)return Uh(o);const l=Ey(o);if(!l)return Uh(o);const c=Sc(l,s,n,r);Cc(l,c);const f=r.subTree,d=f&&Ey(f);let p=!1;const{getTransitionKey:h}=l.type;if(h){const b=h();i===void 0?i=b:b!==i&&(i=b,p=!0)}if(d&&d.type!==Xn&&(!xs(l,d)||p)){const b=Sc(d,s,n,r);if(Cc(d,b),u==="out-in")return n.isLeaving=!0,b.afterLeave=()=>{n.isLeaving=!1,r.update()},Uh(o);u==="in-out"&&l.type!==Xn&&(b.delayLeave=(g,v,S)=>{const w=P_(n,d);w[String(d.key)]=d,g._leaveCb=()=>{v(),g._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=S})}return o}}},B_=eS;function P_(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function Sc(e,t,r,n){const{appear:i,mode:a,persisted:o=!1,onBeforeEnter:s,onEnter:u,onAfterEnter:l,onEnterCancelled:c,onBeforeLeave:f,onLeave:d,onAfterLeave:p,onLeaveCancelled:h,onBeforeAppear:b,onAppear:g,onAfterAppear:v,onAppearCancelled:S}=t,w=String(e.key),D=P_(r,e),_=(k,K)=>{k&&Jn(k,n,9,K)},N=(k,K)=>{const G=K[1];_(k,K),it(k)?k.every(j=>j.length<=1)&&G():k.length<=1&&G()},$={mode:a,persisted:o,beforeEnter(k){let K=s;if(!r.isMounted)if(i)K=b||s;else return;k._leaveCb&&k._leaveCb(!0);const G=D[w];G&&xs(e,G)&&G.el._leaveCb&&G.el._leaveCb(),_(K,[k])},enter(k){let K=u,G=l,j=c;if(!r.isMounted)if(i)K=g||u,G=v||l,j=S||c;else return;let q=!1;const re=k._enterCb=M=>{q||(q=!0,M?_(j,[k]):_(G,[k]),$.delayedLeave&&$.delayedLeave(),k._enterCb=void 0)};K?N(K,[k,re]):re()},leave(k,K){const G=String(e.key);if(k._enterCb&&k._enterCb(!0),r.isUnmounting)return K();_(f,[k]);let j=!1;const q=k._leaveCb=re=>{j||(j=!0,K(),re?_(h,[k]):_(p,[k]),k._leaveCb=void 0,D[G]===e&&delete D[G])};D[G]=e,d?N(d,[k,q]):q()},clone(k){return Sc(k,t,r,n)}};return $}function Uh(e){if(Vc(e))return e=Wo(e),e.children=null,e}function Ey(e){return Vc(e)?e.children?e.children[0]:void 0:e}function Cc(e,t){e.shapeFlag&6&&e.component?Cc(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function dv(e,t=!1,r){let n=[],i=0;for(let a=0;a<e.length;a++){let o=e[a];const s=r==null?o.key:String(r)+String(o.key!=null?o.key:a);o.type===vt?(o.patchFlag&128&&i++,n=n.concat(dv(o.children,t,s))):(t||o.type!==Xn)&&n.push(s!=null?Wo(o,{key:s}):o)}if(i>1)for(let a=0;a<n.length;a++)n[a].patchFlag=-2;return n}function Hc(e){return mt(e)?{setup:e,name:e.name}:e}const nc=e=>!!e.type.__asyncLoader;function vf(e){mt(e)&&(e={loader:e});const{loader:t,loadingComponent:r,errorComponent:n,delay:i=200,timeout:a,suspensible:o=!0,onError:s}=e;let u=null,l,c=0;const f=()=>(c++,u=null,d()),d=()=>{let p;return u||(p=u=t().catch(h=>{if(h=h instanceof Error?h:new Error(String(h)),s)return new Promise((b,g)=>{s(h,()=>b(f()),()=>g(h),c+1)});throw h}).then(h=>p!==u&&u?u:(h&&(h.__esModule||h[Symbol.toStringTag]==="Module")&&(h=h.default),l=h,h)))};return Hc({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return l},setup(){const p=Er;if(l)return()=>zh(l,p);const h=S=>{u=null,qc(S,p,13,!n)};if(o&&p.suspense||Vu)return d().then(S=>()=>zh(S,p)).catch(S=>(h(S),()=>n?Ee(n,{error:S}):null));const b=ht(!1),g=ht(),v=ht(!!i);return i&&setTimeout(()=>{v.value=!1},i),a!=null&&setTimeout(()=>{if(!b.value&&!g.value){const S=new Error(`Async component timed out after ${a}ms.`);h(S),g.value=S}},a),d().then(()=>{b.value=!0,p.parent&&Vc(p.parent.vnode)&&fv(p.parent.update)}).catch(S=>{h(S),g.value=S}),()=>{if(b.value&&l)return zh(l,p);if(g.value&&n)return Ee(n,{error:g.value});if(r&&!v.value)return Ee(r)}}})}function zh(e,{vnode:{ref:t,props:r,children:n,shapeFlag:i},parent:a}){const o=Ee(e,r,n);return o.ref=t,o}const Vc=e=>e.type.__isKeepAlive;function tS(e,t){I_(e,"a",t)}function rS(e,t){I_(e,"da",t)}function I_(e,t,r=Er){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Gp(t,n,r),r){let i=r.parent;for(;i&&i.parent;)Vc(i.parent.vnode)&&nS(n,t,r,i),i=i.parent}}function nS(e,t,r,n){const i=Gp(t,e,n,!0);R_(()=>{ev(n[t],i)},r)}function Gp(e,t,r=Er,n=!1){if(r){const i=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...o)=>{if(r.isUnmounted)return;ll(),Hu(r);const s=Jn(t,r,e,o);return Fs(),cl(),s});return n?i.unshift(a):i.push(a),a}}const so=e=>(t,r=Er)=>(!Vu||e==="sp")&&Gp(e,t,r),iS=so("bm"),Ks=so("m"),aS=so("bu"),M_=so("u"),zu=so("bum"),R_=so("um"),oS=so("sp"),sS=so("rtg"),uS=so("rtc");function lS(e,t=Er){Gp("ec",e,t)}function Fr(e,t){const r=Gr;if(r===null)return e;const n=Yp(r)||r.proxy,i=e.dirs||(e.dirs=[]);for(let a=0;a<t.length;a++){let[o,s,u,l=Ht]=t[a];mt(o)&&(o={mounted:o,updated:o}),o.deep&&As(s),i.push({dir:o,instance:n,value:s,oldValue:void 0,arg:u,modifiers:l})}return e}function ms(e,t,r,n){const i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){const s=i[o];a&&(s.oldValue=a[o].value);let u=s.dir[n];u&&(ll(),Jn(u,r,8,[e.el,s,e,t]),cl())}}const pv="components";function ge(e,t){return j_(pv,e,!0,t)||e}const L_=Symbol();function Cr(e){return br(e)?j_(pv,e,!1)||e:e||L_}function j_(e,t,r=!0,n=!1){const i=Gr||Er;if(i){const a=i.type;if(e===pv){const s=zS(a,!1);if(s&&(s===t||s===ta(t)||s===zp(ta(t))))return a}const o=Dy(i[e]||a[e],t)||Dy(i.appContext[e],t);return!o&&n?a:o}}function Dy(e,t){return e&&(e[t]||e[ta(t)]||e[zp(ta(t))])}function Gt(e,t,r,n){let i;const a=r&&r[n];if(it(e)||br(e)){i=new Array(e.length);for(let o=0,s=e.length;o<s;o++)i[o]=t(e[o],o,void 0,a&&a[o])}else if(typeof e=="number"){i=new Array(e);for(let o=0;o<e;o++)i[o]=t(o+1,o,void 0,a&&a[o])}else if(cr(e))if(e[Symbol.iterator])i=Array.from(e,(o,s)=>t(o,s,void 0,a&&a[s]));else{const o=Object.keys(e);i=new Array(o.length);for(let s=0,u=o.length;s<u;s++){const l=o[s];i[s]=t(e[l],l,s,a&&a[s])}}else i=[];return r&&(r[n]=i),i}function cS(e,t){for(let r=0;r<t.length;r++){const n=t[r];if(it(n))for(let i=0;i<n.length;i++)e[n[i].name]=n[i].fn;else n&&(e[n.name]=n.fn)}return e}function dr(e,t,r={},n,i){if(Gr.isCE||Gr.parent&&nc(Gr.parent)&&Gr.parent.isCE)return Ee("slot",t==="default"?null:{name:t},n&&n());let a=e[t];a&&a._c&&(a._d=!1),V();const o=a&&U_(a(r)),s=Ge(vt,{key:r.key||`_${t}`},o||(n?n():[]),o&&e._===1?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),a&&a._c&&(a._d=!0),s}function U_(e){return e.some(t=>Rd(t)?!(t.type===Xn||t.type===vt&&!U_(t.children)):!0)?e:null}function qu(e){const t={};for(const r in e)t[fd(r)]=e[r];return t}const s1=e=>e?Q_(e)?Yp(e)||e.proxy:s1(e.parent):null,Id=Or(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>s1(e.parent),$root:e=>s1(e.root),$emit:e=>e.emit,$options:e=>q_(e),$forceUpdate:e=>e.f||(e.f=()=>fv(e.update)),$nextTick:e=>e.n||(e.n=Ua.bind(e.proxy)),$watch:e=>QD.bind(e)}),fS={get({_:e},t){const{ctx:r,setupState:n,data:i,props:a,accessCache:o,type:s,appContext:u}=e;let l;if(t[0]!=="$"){const p=o[t];if(p!==void 0)switch(p){case 1:return n[t];case 2:return i[t];case 4:return r[t];case 3:return a[t]}else{if(n!==Ht&&Nt(n,t))return o[t]=1,n[t];if(i!==Ht&&Nt(i,t))return o[t]=2,i[t];if((l=e.propsOptions[0])&&Nt(l,t))return o[t]=3,a[t];if(r!==Ht&&Nt(r,t))return o[t]=4,r[t];u1&&(o[t]=0)}}const c=Id[t];let f,d;if(c)return t==="$attrs"&&In(e,"get",t),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(r!==Ht&&Nt(r,t))return o[t]=4,r[t];if(d=u.config.globalProperties,Nt(d,t))return d[t]},set({_:e},t,r){const{data:n,setupState:i,ctx:a}=e;return i!==Ht&&Nt(i,t)?(i[t]=r,!0):n!==Ht&&Nt(n,t)?(n[t]=r,!0):Nt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:i,propsOptions:a}},o){let s;return!!r[o]||e!==Ht&&Nt(e,o)||t!==Ht&&Nt(t,o)||(s=a[0])&&Nt(s,o)||Nt(n,o)||Nt(Id,o)||Nt(i.config.globalProperties,o)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:Nt(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};let u1=!0;function dS(e){const t=q_(e),r=e.proxy,n=e.ctx;u1=!1,t.beforeCreate&&Sy(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:o,watch:s,provide:u,inject:l,created:c,beforeMount:f,mounted:d,beforeUpdate:p,updated:h,activated:b,deactivated:g,beforeDestroy:v,beforeUnmount:S,destroyed:w,unmounted:D,render:_,renderTracked:N,renderTriggered:$,errorCaptured:k,serverPrefetch:K,expose:G,inheritAttrs:j,components:q,directives:re,filters:M}=t;if(l&&pS(l,n,null,e.appContext.config.unwrapInjectedRef),o)for(const I in o){const ee=o[I];mt(ee)&&(n[I]=ee.bind(r))}if(i){const I=i.call(r,r);cr(I)&&(e.data=Vs(I))}if(u1=!0,a)for(const I in a){const ee=a[I],oe=mt(ee)?ee.bind(r,r):mt(ee.get)?ee.get.bind(r,r):xi,ce=!mt(ee)&&mt(ee.set)?ee.set.bind(r):xi,$e=tt({get:oe,set:ce});Object.defineProperty(n,I,{enumerable:!0,configurable:!0,get:()=>$e.value,set:me=>$e.value=me})}if(s)for(const I in s)z_(s[I],n,r,I);if(u){const I=mt(u)?u.call(r):u;Reflect.ownKeys(I).forEach(ee=>{pd(ee,I[ee])})}c&&Sy(c,e,"c");function x(I,ee){it(ee)?ee.forEach(oe=>I(oe.bind(r))):ee&&I(ee.bind(r))}if(x(iS,f),x(Ks,d),x(aS,p),x(M_,h),x(tS,b),x(rS,g),x(lS,k),x(uS,N),x(sS,$),x(zu,S),x(R_,D),x(oS,K),it(G))if(G.length){const I=e.exposed||(e.exposed={});G.forEach(ee=>{Object.defineProperty(I,ee,{get:()=>r[ee],set:oe=>r[ee]=oe})})}else e.exposed||(e.exposed={});_&&e.render===xi&&(e.render=_),j!=null&&(e.inheritAttrs=j),q&&(e.components=q),re&&(e.directives=re)}function pS(e,t,r=xi,n=!1){it(e)&&(e=l1(e));for(const i in e){const a=e[i];let o;cr(a)?"default"in a?o=Xi(a.from||i,a.default,!0):o=Xi(a.from||i):o=Xi(a),Lr(o)&&n?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):t[i]=o}}function Sy(e,t,r){Jn(it(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function z_(e,t,r,n){const i=n.includes(".")?F_(r,n):()=>r[n];if(br(e)){const a=t[e];mt(a)&&Vr(i,a)}else if(mt(e))Vr(i,e.bind(r));else if(cr(e))if(it(e))e.forEach(a=>z_(a,t,r,n));else{const a=mt(e.handler)?e.handler.bind(r):t[e.handler];mt(a)&&Vr(i,a,e)}}function q_(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t);let u;return s?u=s:!i.length&&!r&&!n?u=t:(u={},i.length&&i.forEach(l=>Md(u,l,o,!0)),Md(u,t,o)),a.set(t,u),u}function Md(e,t,r,n=!1){const{mixins:i,extends:a}=t;a&&Md(e,a,r,!0),i&&i.forEach(o=>Md(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const s=hS[o]||r&&r[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const hS={data:Cy,props:ws,emits:ws,methods:ws,computed:ws,beforeCreate:rn,created:rn,beforeMount:rn,mounted:rn,beforeUpdate:rn,updated:rn,beforeDestroy:rn,beforeUnmount:rn,destroyed:rn,unmounted:rn,activated:rn,deactivated:rn,errorCaptured:rn,serverPrefetch:rn,components:ws,directives:ws,watch:vS,provide:Cy,inject:mS};function Cy(e,t){return t?e?function(){return Or(mt(e)?e.call(this,this):e,mt(t)?t.call(this,this):t)}:t:e}function mS(e,t){return ws(l1(e),l1(t))}function l1(e){if(it(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function rn(e,t){return e?[...new Set([].concat(e,t))]:t}function ws(e,t){return e?Or(Or(Object.create(null),e),t):t}function vS(e,t){if(!e)return t;if(!t)return e;const r=Or(Object.create(null),e);for(const n in t)r[n]=rn(e[n],t[n]);return r}function gS(e,t,r,n=!1){const i={},a={};$d(a,Wp,1),e.propsDefaults=Object.create(null),H_(e,t,i,a);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);r?e.props=n?i:n1(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function yS(e,t,r,n){const{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=At(i),[u]=e.propsOptions;let l=!1;if((n||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(Vp(e.emitsOptions,d))continue;const p=t[d];if(u)if(Nt(a,d))p!==a[d]&&(a[d]=p,l=!0);else{const h=ta(d);i[h]=c1(u,s,h,p,e,!1)}else p!==a[d]&&(a[d]=p,l=!0)}}}else{H_(e,t,i,a)&&(l=!0);let c;for(const f in s)(!t||!Nt(t,f)&&((c=Hs(f))===f||!Nt(t,c)))&&(u?r&&(r[f]!==void 0||r[c]!==void 0)&&(i[f]=c1(u,s,f,void 0,e,!0)):delete i[f]);if(a!==s)for(const f in a)(!t||!Nt(t,f)&&!0)&&(delete a[f],l=!0)}l&&Xa(e,"set","$attrs")}function H_(e,t,r,n){const[i,a]=e.propsOptions;let o=!1,s;if(t)for(let u in t){if(cd(u))continue;const l=t[u];let c;i&&Nt(i,c=ta(u))?!a||!a.includes(c)?r[c]=l:(s||(s={}))[c]=l:Vp(e.emitsOptions,u)||(!(u in n)||l!==n[u])&&(n[u]=l,o=!0)}if(a){const u=At(r),l=s||Ht;for(let c=0;c<a.length;c++){const f=a[c];r[f]=c1(i,u,f,l[f],e,!Nt(l,f))}}return o}function c1(e,t,r,n,i,a){const o=e[r];if(o!=null){const s=Nt(o,"default");if(s&&n===void 0){const u=o.default;if(o.type!==Function&&mt(u)){const{propsDefaults:l}=i;r in l?n=l[r]:(Hu(i),n=l[r]=u.call(null,t),Fs())}else n=u}o[0]&&(a&&!s?n=!1:o[1]&&(n===""||n===Hs(r))&&(n=!0))}return n}function V_(e,t,r=!1){const n=t.propsCache,i=n.get(e);if(i)return i;const a=e.props,o={},s=[];let u=!1;if(!mt(e)){const c=f=>{u=!0;const[d,p]=V_(f,t,!0);Or(o,d),p&&s.push(...p)};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!a&&!u)return n.set(e,Ou),Ou;if(it(a))for(let c=0;c<a.length;c++){const f=ta(a[c]);Ay(f)&&(o[f]=Ht)}else if(a)for(const c in a){const f=ta(c);if(Ay(f)){const d=a[c],p=o[f]=it(d)||mt(d)?{type:d}:d;if(p){const h=ky(Boolean,p.type),b=ky(String,p.type);p[0]=h>-1,p[1]=b<0||h<b,(h>-1||Nt(p,"default"))&&s.push(f)}}}const l=[o,s];return n.set(e,l),l}function Ay(e){return e[0]!=="$"}function Ny(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function Ty(e,t){return Ny(e)===Ny(t)}function ky(e,t){return it(t)?t.findIndex(r=>Ty(r,e)):mt(t)&&Ty(t,e)?0:-1}const K_=e=>e[0]==="_"||e==="$stable",hv=e=>it(e)?e.map(Hi):[Hi(e)],bS=(e,t,r)=>{if(t._n)return t;const n=Qe((...i)=>hv(t(...i)),r);return n._c=!1,n},G_=(e,t,r)=>{const n=e._ctx;for(const i in e){if(K_(i))continue;const a=e[i];if(mt(a))t[i]=bS(i,a,n);else if(a!=null){const o=hv(a);t[i]=()=>o}}},W_=(e,t)=>{const r=hv(t);e.slots.default=()=>r},wS=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=At(t),$d(t,"_",r)):G_(t,e.slots={})}else e.slots={},t&&W_(e,t);$d(e.slots,Wp,1)},_S=(e,t,r)=>{const{vnode:n,slots:i}=e;let a=!0,o=Ht;if(n.shapeFlag&32){const s=t._;s?r&&s===1?a=!1:(Or(i,t),!r&&s===1&&delete i._):(a=!t.$stable,G_(t,i)),o=t}else t&&(W_(e,t),o={default:1});if(a)for(const s in i)!K_(s)&&!(s in o)&&delete i[s]};function Y_(){return{app:null,config:{isNativeTag:tD,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let xS=0;function ES(e,t){return function(n,i=null){mt(n)||(n=Object.assign({},n)),i!=null&&!cr(i)&&(i=null);const a=Y_(),o=new Set;let s=!1;const u=a.app={_uid:xS++,_component:n,_props:i,_container:null,_context:a,_instance:null,version:HS,get config(){return a.config},set config(l){},use(l,...c){return o.has(l)||(l&&mt(l.install)?(o.add(l),l.install(u,...c)):mt(l)&&(o.add(l),l(u,...c))),u},mixin(l){return a.mixins.includes(l)||a.mixins.push(l),u},component(l,c){return c?(a.components[l]=c,u):a.components[l]},directive(l,c){return c?(a.directives[l]=c,u):a.directives[l]},mount(l,c,f){if(!s){const d=Ee(n,i);return d.appContext=a,c&&t?t(d,l):e(d,l,f),s=!0,u._container=l,l.__vue_app__=u,Yp(d.component)||d.component.proxy}},unmount(){s&&(e(null,u._container),delete u._container.__vue_app__)},provide(l,c){return a.provides[l]=c,u}};return u}}function f1(e,t,r,n,i=!1){if(it(e)){e.forEach((d,p)=>f1(d,t&&(it(t)?t[p]:t),r,n,i));return}if(nc(n)&&!i)return;const a=n.shapeFlag&4?Yp(n.component)||n.component.proxy:n.el,o=i?null:a,{i:s,r:u}=e,l=t&&t.r,c=s.refs===Ht?s.refs={}:s.refs,f=s.setupState;if(l!=null&&l!==u&&(br(l)?(c[l]=null,Nt(f,l)&&(f[l]=null)):Lr(l)&&(l.value=null)),mt(u))zo(u,s,12,[o,c]);else{const d=br(u),p=Lr(u);if(d||p){const h=()=>{if(e.f){const b=d?c[u]:u.value;i?it(b)&&ev(b,a):it(b)?b.includes(a)||b.push(a):d?(c[u]=[a],Nt(f,u)&&(f[u]=c[u])):(u.value=[a],e.k&&(c[e.k]=u.value))}else d?(c[u]=o,Nt(f,u)&&(f[u]=o)):p&&(u.value=o,e.k&&(c[e.k]=o))};o?(h.id=-1,gn(h,r)):h()}}}const gn=XD;function DS(e){return SS(e)}function SS(e,t){const r=sD();r.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:u,setText:l,setElementText:c,parentNode:f,nextSibling:d,setScopeId:p=xi,cloneNode:h,insertStaticContent:b}=e,g=(R,J,he,Se=null,Ce=null,X=null,ie=!1,fe=null,xe=!!J.dynamicChildren)=>{if(R===J)return;R&&!xs(R,J)&&(Se=De(R),_e(R,Ce,X,!0),R=null),J.patchFlag===-2&&(xe=!1,J.dynamicChildren=null);const{type:pe,ref:Be,shapeFlag:ve}=J;switch(pe){case vv:v(R,J,he,Se);break;case Xn:S(R,J,he,Se);break;case hd:R==null&&w(J,he,Se,ie);break;case vt:re(R,J,he,Se,Ce,X,ie,fe,xe);break;default:ve&1?N(R,J,he,Se,Ce,X,ie,fe,xe):ve&6?M(R,J,he,Se,Ce,X,ie,fe,xe):(ve&64||ve&128)&&pe.process(R,J,he,Se,Ce,X,ie,fe,xe,je)}Be!=null&&Ce&&f1(Be,R&&R.ref,X,J||R,!J)},v=(R,J,he,Se)=>{if(R==null)n(J.el=s(J.children),he,Se);else{const Ce=J.el=R.el;J.children!==R.children&&l(Ce,J.children)}},S=(R,J,he,Se)=>{R==null?n(J.el=u(J.children||""),he,Se):J.el=R.el},w=(R,J,he,Se)=>{[R.el,R.anchor]=b(R.children,J,he,Se,R.el,R.anchor)},D=({el:R,anchor:J},he,Se)=>{let Ce;for(;R&&R!==J;)Ce=d(R),n(R,he,Se),R=Ce;n(J,he,Se)},_=({el:R,anchor:J})=>{let he;for(;R&&R!==J;)he=d(R),i(R),R=he;i(J)},N=(R,J,he,Se,Ce,X,ie,fe,xe)=>{ie=ie||J.type==="svg",R==null?$(J,he,Se,Ce,X,ie,fe,xe):G(R,J,Ce,X,ie,fe,xe)},$=(R,J,he,Se,Ce,X,ie,fe)=>{let xe,pe;const{type:Be,props:ve,shapeFlag:Le,transition:Ve,patchFlag:P,dirs:C}=R;if(R.el&&h!==void 0&&P===-1)xe=R.el=h(R.el);else{if(xe=R.el=o(R.type,X,ve&&ve.is,ve),Le&8?c(xe,R.children):Le&16&&K(R.children,xe,null,Se,Ce,X&&Be!=="foreignObject",ie,fe),C&&ms(R,null,Se,"created"),ve){for(const T in ve)T!=="value"&&!cd(T)&&a(xe,T,null,ve[T],X,R.children,Se,Ce,de);"value"in ve&&a(xe,"value",null,ve.value),(pe=ve.onVnodeBeforeMount)&&Mi(pe,Se,R)}k(xe,R,R.scopeId,ie,Se)}C&&ms(R,null,Se,"beforeMount");const be=(!Ce||Ce&&!Ce.pendingBranch)&&Ve&&!Ve.persisted;be&&Ve.beforeEnter(xe),n(xe,J,he),((pe=ve&&ve.onVnodeMounted)||be||C)&&gn(()=>{pe&&Mi(pe,Se,R),be&&Ve.enter(xe),C&&ms(R,null,Se,"mounted")},Ce)},k=(R,J,he,Se,Ce)=>{if(he&&p(R,he),Se)for(let X=0;X<Se.length;X++)p(R,Se[X]);if(Ce){let X=Ce.subTree;if(J===X){const ie=Ce.vnode;k(R,ie,ie.scopeId,ie.slotScopeIds,Ce.parent)}}},K=(R,J,he,Se,Ce,X,ie,fe,xe=0)=>{for(let pe=xe;pe<R.length;pe++){const Be=R[pe]=fe?No(R[pe]):Hi(R[pe]);g(null,Be,J,he,Se,Ce,X,ie,fe)}},G=(R,J,he,Se,Ce,X,ie)=>{const fe=J.el=R.el;let{patchFlag:xe,dynamicChildren:pe,dirs:Be}=J;xe|=R.patchFlag&16;const ve=R.props||Ht,Le=J.props||Ht;let Ve;he&&vs(he,!1),(Ve=Le.onVnodeBeforeUpdate)&&Mi(Ve,he,J,R),Be&&ms(J,R,he,"beforeUpdate"),he&&vs(he,!0);const P=Ce&&J.type!=="foreignObject";if(pe?j(R.dynamicChildren,pe,fe,he,Se,P,X):ie||oe(R,J,fe,null,he,Se,P,X,!1),xe>0){if(xe&16)q(fe,J,ve,Le,he,Se,Ce);else if(xe&2&&ve.class!==Le.class&&a(fe,"class",null,Le.class,Ce),xe&4&&a(fe,"style",ve.style,Le.style,Ce),xe&8){const C=J.dynamicProps;for(let be=0;be<C.length;be++){const T=C[be],z=ve[T],E=Le[T];(E!==z||T==="value")&&a(fe,T,z,E,Ce,R.children,he,Se,de)}}xe&1&&R.children!==J.children&&c(fe,J.children)}else!ie&&pe==null&&q(fe,J,ve,Le,he,Se,Ce);((Ve=Le.onVnodeUpdated)||Be)&&gn(()=>{Ve&&Mi(Ve,he,J,R),Be&&ms(J,R,he,"updated")},Se)},j=(R,J,he,Se,Ce,X,ie)=>{for(let fe=0;fe<J.length;fe++){const xe=R[fe],pe=J[fe],Be=xe.el&&(xe.type===vt||!xs(xe,pe)||xe.shapeFlag&70)?f(xe.el):he;g(xe,pe,Be,null,Se,Ce,X,ie,!0)}},q=(R,J,he,Se,Ce,X,ie)=>{if(he!==Se){for(const fe in Se){if(cd(fe))continue;const xe=Se[fe],pe=he[fe];xe!==pe&&fe!=="value"&&a(R,fe,pe,xe,ie,J.children,Ce,X,de)}if(he!==Ht)for(const fe in he)!cd(fe)&&!(fe in Se)&&a(R,fe,he[fe],null,ie,J.children,Ce,X,de);"value"in Se&&a(R,"value",he.value,Se.value)}},re=(R,J,he,Se,Ce,X,ie,fe,xe)=>{const pe=J.el=R?R.el:s(""),Be=J.anchor=R?R.anchor:s("");let{patchFlag:ve,dynamicChildren:Le,slotScopeIds:Ve}=J;Ve&&(fe=fe?fe.concat(Ve):Ve),R==null?(n(pe,he,Se),n(Be,he,Se),K(J.children,he,Be,Ce,X,ie,fe,xe)):ve>0&&ve&64&&Le&&R.dynamicChildren?(j(R.dynamicChildren,Le,he,Ce,X,ie,fe),(J.key!=null||Ce&&J===Ce.subTree)&&mv(R,J,!0)):oe(R,J,he,Be,Ce,X,ie,fe,xe)},M=(R,J,he,Se,Ce,X,ie,fe,xe)=>{J.slotScopeIds=fe,R==null?J.shapeFlag&512?Ce.ctx.activate(J,he,Se,ie,xe):U(J,he,Se,Ce,X,ie,xe):x(R,J,xe)},U=(R,J,he,Se,Ce,X,ie)=>{const fe=R.component=MS(R,Se,Ce);if(Vc(R)&&(fe.ctx.renderer=je),RS(fe),fe.asyncDep){if(Ce&&Ce.registerDep(fe,I),!R.el){const xe=fe.subTree=Ee(Xn);S(null,xe,J,he)}return}I(fe,R,J,he,Ce,X,ie)},x=(R,J,he)=>{const Se=J.component=R.component;if(YD(R,J,he))if(Se.asyncDep&&!Se.asyncResolved){ee(Se,J,he);return}else Se.next=J,zD(Se.update),Se.update();else J.el=R.el,Se.vnode=J},I=(R,J,he,Se,Ce,X,ie)=>{const fe=()=>{if(R.isMounted){let{next:Be,bu:ve,u:Le,parent:Ve,vnode:P}=R,C=Be,be;vs(R,!1),Be?(Be.el=P.el,ee(R,Be,ie)):Be=P,ve&&dd(ve),(be=Be.props&&Be.props.onVnodeBeforeUpdate)&&Mi(be,Ve,Be,P),vs(R,!0);const T=jh(R),z=R.subTree;R.subTree=T,g(z,T,f(z.el),De(z),R,Ce,X),Be.el=T.el,C===null&&ZD(R,T.el),Le&&gn(Le,Ce),(be=Be.props&&Be.props.onVnodeUpdated)&&gn(()=>Mi(be,Ve,Be,P),Ce)}else{let Be;const{el:ve,props:Le}=J,{bm:Ve,m:P,parent:C}=R,be=nc(J);if(vs(R,!1),Ve&&dd(Ve),!be&&(Be=Le&&Le.onVnodeBeforeMount)&&Mi(Be,C,J),vs(R,!0),ve&&ze){const T=()=>{R.subTree=jh(R),ze(ve,R.subTree,R,Ce,null)};be?J.type.__asyncLoader().then(()=>!R.isUnmounted&&T()):T()}else{const T=R.subTree=jh(R);g(null,T,he,Se,R,Ce,X),J.el=T.el}if(P&&gn(P,Ce),!be&&(Be=Le&&Le.onVnodeMounted)){const T=J;gn(()=>Mi(Be,C,T),Ce)}(J.shapeFlag&256||C&&nc(C.vnode)&&C.vnode.shapeFlag&256)&&R.a&&gn(R.a,Ce),R.isMounted=!0,J=he=Se=null}},xe=R.effect=new nv(fe,()=>fv(pe),R.scope),pe=R.update=()=>xe.run();pe.id=R.uid,vs(R,!0),pe()},ee=(R,J,he)=>{J.component=R;const Se=R.vnode.props;R.vnode=J,R.next=null,yS(R,J.props,Se,he),_S(R,J.children,he),ll(),Hp(void 0,R.update),cl()},oe=(R,J,he,Se,Ce,X,ie,fe,xe=!1)=>{const pe=R&&R.children,Be=R?R.shapeFlag:0,ve=J.children,{patchFlag:Le,shapeFlag:Ve}=J;if(Le>0){if(Le&128){$e(pe,ve,he,Se,Ce,X,ie,fe,xe);return}else if(Le&256){ce(pe,ve,he,Se,Ce,X,ie,fe,xe);return}}Ve&8?(Be&16&&de(pe,Ce,X),ve!==pe&&c(he,ve)):Be&16?Ve&16?$e(pe,ve,he,Se,Ce,X,ie,fe,xe):de(pe,Ce,X,!0):(Be&8&&c(he,""),Ve&16&&K(ve,he,Se,Ce,X,ie,fe,xe))},ce=(R,J,he,Se,Ce,X,ie,fe,xe)=>{R=R||Ou,J=J||Ou;const pe=R.length,Be=J.length,ve=Math.min(pe,Be);let Le;for(Le=0;Le<ve;Le++){const Ve=J[Le]=xe?No(J[Le]):Hi(J[Le]);g(R[Le],Ve,he,null,Ce,X,ie,fe,xe)}pe>Be?de(R,Ce,X,!0,!1,ve):K(J,he,Se,Ce,X,ie,fe,xe,ve)},$e=(R,J,he,Se,Ce,X,ie,fe,xe)=>{let pe=0;const Be=J.length;let ve=R.length-1,Le=Be-1;for(;pe<=ve&&pe<=Le;){const Ve=R[pe],P=J[pe]=xe?No(J[pe]):Hi(J[pe]);if(xs(Ve,P))g(Ve,P,he,null,Ce,X,ie,fe,xe);else break;pe++}for(;pe<=ve&&pe<=Le;){const Ve=R[ve],P=J[Le]=xe?No(J[Le]):Hi(J[Le]);if(xs(Ve,P))g(Ve,P,he,null,Ce,X,ie,fe,xe);else break;ve--,Le--}if(pe>ve){if(pe<=Le){const Ve=Le+1,P=Ve<Be?J[Ve].el:Se;for(;pe<=Le;)g(null,J[pe]=xe?No(J[pe]):Hi(J[pe]),he,P,Ce,X,ie,fe,xe),pe++}}else if(pe>Le)for(;pe<=ve;)_e(R[pe],Ce,X,!0),pe++;else{const Ve=pe,P=pe,C=new Map;for(pe=P;pe<=Le;pe++){const Q=J[pe]=xe?No(J[pe]):Hi(J[pe]);Q.key!=null&&C.set(Q.key,pe)}let be,T=0;const z=Le-P+1;let E=!1,O=0;const H=new Array(z);for(pe=0;pe<z;pe++)H[pe]=0;for(pe=Ve;pe<=ve;pe++){const Q=R[pe];if(T>=z){_e(Q,Ce,X,!0);continue}let se;if(Q.key!=null)se=C.get(Q.key);else for(be=P;be<=Le;be++)if(H[be-P]===0&&xs(Q,J[be])){se=be;break}se===void 0?_e(Q,Ce,X,!0):(H[se-P]=pe+1,se>=O?O=se:E=!0,g(Q,J[se],he,null,Ce,X,ie,fe,xe),T++)}const L=E?CS(H):Ou;for(be=L.length-1,pe=z-1;pe>=0;pe--){const Q=P+pe,se=J[Q],m=Q+1<Be?J[Q+1].el:Se;H[pe]===0?g(null,se,he,m,Ce,X,ie,fe,xe):E&&(be<0||pe!==L[be]?me(se,he,m,2):be--)}}},me=(R,J,he,Se,Ce=null)=>{const{el:X,type:ie,transition:fe,children:xe,shapeFlag:pe}=R;if(pe&6){me(R.component.subTree,J,he,Se);return}if(pe&128){R.suspense.move(J,he,Se);return}if(pe&64){ie.move(R,J,he,je);return}if(ie===vt){n(X,J,he);for(let ve=0;ve<xe.length;ve++)me(xe[ve],J,he,Se);n(R.anchor,J,he);return}if(ie===hd){D(R,J,he);return}if(Se!==2&&pe&1&&fe)if(Se===0)fe.beforeEnter(X),n(X,J,he),gn(()=>fe.enter(X),Ce);else{const{leave:ve,delayLeave:Le,afterLeave:Ve}=fe,P=()=>n(X,J,he),C=()=>{ve(X,()=>{P(),Ve&&Ve()})};Le?Le(X,P,C):C()}else n(X,J,he)},_e=(R,J,he,Se=!1,Ce=!1)=>{const{type:X,props:ie,ref:fe,children:xe,dynamicChildren:pe,shapeFlag:Be,patchFlag:ve,dirs:Le}=R;if(fe!=null&&f1(fe,null,he,R,!0),Be&256){J.ctx.deactivate(R);return}const Ve=Be&1&&Le,P=!nc(R);let C;if(P&&(C=ie&&ie.onVnodeBeforeUnmount)&&Mi(C,J,R),Be&6)Te(R.component,he,Se);else{if(Be&128){R.suspense.unmount(he,Se);return}Ve&&ms(R,null,J,"beforeUnmount"),Be&64?R.type.remove(R,J,he,Ce,je,Se):pe&&(X!==vt||ve>0&&ve&64)?de(pe,J,he,!1,!0):(X===vt&&ve&384||!Ce&&Be&16)&&de(xe,J,he),Se&&Ue(R)}(P&&(C=ie&&ie.onVnodeUnmounted)||Ve)&&gn(()=>{C&&Mi(C,J,R),Ve&&ms(R,null,J,"unmounted")},he)},Ue=R=>{const{type:J,el:he,anchor:Se,transition:Ce}=R;if(J===vt){te(he,Se);return}if(J===hd){_(R);return}const X=()=>{i(he),Ce&&!Ce.persisted&&Ce.afterLeave&&Ce.afterLeave()};if(R.shapeFlag&1&&Ce&&!Ce.persisted){const{leave:ie,delayLeave:fe}=Ce,xe=()=>ie(he,X);fe?fe(R.el,X,xe):xe()}else X()},te=(R,J)=>{let he;for(;R!==J;)he=d(R),i(R),R=he;i(J)},Te=(R,J,he)=>{const{bum:Se,scope:Ce,update:X,subTree:ie,um:fe}=R;Se&&dd(Se),Ce.stop(),X&&(X.active=!1,_e(ie,R,J,he)),fe&&gn(fe,J),gn(()=>{R.isUnmounted=!0},J),J&&J.pendingBranch&&!J.isUnmounted&&R.asyncDep&&!R.asyncResolved&&R.suspenseId===J.pendingId&&(J.deps--,J.deps===0&&J.resolve())},de=(R,J,he,Se=!1,Ce=!1,X=0)=>{for(let ie=X;ie<R.length;ie++)_e(R[ie],J,he,Se,Ce)},De=R=>R.shapeFlag&6?De(R.component.subTree):R.shapeFlag&128?R.suspense.next():d(R.anchor||R.el),Ne=(R,J,he)=>{R==null?J._vnode&&_e(J._vnode,null,null,!0):g(J._vnode||null,R,J,null,null,null,he),N_(),J._vnode=R},je={p:g,um:_e,m:me,r:Ue,mt:U,mc:K,pc:oe,pbc:j,n:De,o:e};let Pe,ze;return t&&([Pe,ze]=t(je)),{render:Ne,hydrate:Pe,createApp:ES(Ne,Pe)}}function vs({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function mv(e,t,r=!1){const n=e.children,i=t.children;if(it(n)&&it(i))for(let a=0;a<n.length;a++){const o=n[a];let s=i[a];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=i[a]=No(i[a]),s.el=o.el),r||mv(o,s))}}function CS(e){const t=e.slice(),r=[0];let n,i,a,o,s;const u=e.length;for(n=0;n<u;n++){const l=e[n];if(l!==0){if(i=r[r.length-1],e[i]<l){t[n]=i,r.push(n);continue}for(a=0,o=r.length-1;a<o;)s=a+o>>1,e[r[s]]<l?a=s+1:o=s;l<e[r[a]]&&(a>0&&(t[n]=r[a-1]),r[a]=n)}}for(a=r.length,o=r[a-1];a-- >0;)r[a]=o,o=t[o];return r}const AS=e=>e.__isTeleport,ic=e=>e&&(e.disabled||e.disabled===""),Oy=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,d1=(e,t)=>{const r=e&&e.to;return br(r)?t?t(r):null:r},NS={__isTeleport:!0,process(e,t,r,n,i,a,o,s,u,l){const{mc:c,pc:f,pbc:d,o:{insert:p,querySelector:h,createText:b,createComment:g}}=l,v=ic(t.props);let{shapeFlag:S,children:w,dynamicChildren:D}=t;if(e==null){const _=t.el=b(""),N=t.anchor=b("");p(_,r,n),p(N,r,n);const $=t.target=d1(t.props,h),k=t.targetAnchor=b("");$&&(p(k,$),o=o||Oy($));const K=(G,j)=>{S&16&&c(w,G,j,i,a,o,s,u)};v?K(r,N):$&&K($,k)}else{t.el=e.el;const _=t.anchor=e.anchor,N=t.target=e.target,$=t.targetAnchor=e.targetAnchor,k=ic(e.props),K=k?r:N,G=k?_:$;if(o=o||Oy(N),D?(d(e.dynamicChildren,D,K,i,a,o,s),mv(e,t,!0)):u||f(e,t,K,G,i,a,o,s,!1),v)k||gf(t,r,_,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const j=t.target=d1(t.props,h);j&&gf(t,j,null,l,0)}else k&&gf(t,N,$,l,1)}},remove(e,t,r,n,{um:i,o:{remove:a}},o){const{shapeFlag:s,children:u,anchor:l,targetAnchor:c,target:f,props:d}=e;if(f&&a(c),(o||!ic(d))&&(a(l),s&16))for(let p=0;p<u.length;p++){const h=u[p];i(h,t,r,!0,!!h.dynamicChildren)}},move:gf,hydrate:TS};function gf(e,t,r,{o:{insert:n},m:i},a=2){a===0&&n(e.targetAnchor,t,r);const{el:o,anchor:s,shapeFlag:u,children:l,props:c}=e,f=a===2;if(f&&n(o,t,r),(!f||ic(c))&&u&16)for(let d=0;d<l.length;d++)i(l[d],t,r,2);f&&n(s,t,r)}function TS(e,t,r,n,i,a,{o:{nextSibling:o,parentNode:s,querySelector:u}},l){const c=t.target=d1(t.props,u);if(c){const f=c._lpa||c.firstChild;if(t.shapeFlag&16)if(ic(t.props))t.anchor=l(o(e),t,s(e),r,n,i,a),t.targetAnchor=f;else{t.anchor=o(e);let d=f;for(;d;)if(d=o(d),d&&d.nodeType===8&&d.data==="teleport anchor"){t.targetAnchor=d,c._lpa=t.targetAnchor&&o(t.targetAnchor);break}l(f,t,c,r,n,i,a)}}return t.anchor&&o(t.anchor)}const kS=NS,vt=Symbol(void 0),vv=Symbol(void 0),Xn=Symbol(void 0),hd=Symbol(void 0),ac=[];let bi=null;function V(e=!1){ac.push(bi=e?null:[])}function OS(){ac.pop(),bi=ac[ac.length-1]||null}let Ac=1;function Fy(e){Ac+=e}function Z_(e){return e.dynamicChildren=Ac>0?bi||Ou:null,OS(),Ac>0&&bi&&bi.push(e),e}function ae(e,t,r,n,i,a){return Z_(ne(e,t,r,n,i,a,!0))}function Ge(e,t,r,n,i){return Z_(Ee(e,t,r,n,i,!0))}function Rd(e){return e?e.__v_isVNode===!0:!1}function xs(e,t){return e.type===t.type&&e.key===t.key}const Wp="__vInternal",J_=({key:e})=>e!=null?e:null,md=({ref:e,ref_key:t,ref_for:r})=>e!=null?br(e)||Lr(e)||mt(e)?{i:Gr,r:e,k:t,f:!!r}:e:null;function ne(e,t=null,r=null,n=0,i=null,a=e===vt?0:1,o=!1,s=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&J_(t),ref:t&&md(t),scopeId:Kp,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null};return s?(gv(u,r),a&128&&e.normalize(u)):r&&(u.shapeFlag|=br(r)?8:16),Ac>0&&!o&&bi&&(u.patchFlag>0||a&6)&&u.patchFlag!==32&&bi.push(u),u}const Ee=FS;function FS(e,t=null,r=null,n=0,i=null,a=!1){if((!e||e===L_)&&(e=Xn),Rd(e)){const s=Wo(e,t,!0);return r&&gv(s,r),Ac>0&&!a&&bi&&(s.shapeFlag&6?bi[bi.indexOf(e)]=s:bi.push(s)),s.patchFlag|=-2,s}if(qS(e)&&(e=e.__vccOpts),t){t=$S(t);let{class:s,style:u}=t;s&&!br(s)&&(t.class=Ye(s)),cr(u)&&(b_(u)&&!it(u)&&(u=Or({},u)),t.style=ln(u))}const o=br(e)?1:JD(e)?128:AS(e)?64:cr(e)?4:mt(e)?2:0;return ne(e,t,r,n,i,o,a,!0)}function $S(e){return e?b_(e)||Wp in e?Or({},e):e:null}function Wo(e,t,r=!1){const{props:n,ref:i,patchFlag:a,children:o}=e,s=t?ei(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&J_(s),ref:t&&t.ref?r&&i?it(i)?i.concat(md(t)):[i,md(t)]:md(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==vt?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Wo(e.ssContent),ssFallback:e.ssFallback&&Wo(e.ssFallback),el:e.el,anchor:e.anchor}}function Qn(e=" ",t=0){return Ee(vv,null,e,t)}function BS(e,t){const r=Ee(hd,null,e);return r.staticCount=t,r}function ct(e="",t=!1){return t?(V(),Ge(Xn,null,e)):Ee(Xn,null,e)}function Hi(e){return e==null||typeof e=="boolean"?Ee(Xn):it(e)?Ee(vt,null,e.slice()):typeof e=="object"?No(e):Ee(vv,null,String(e))}function No(e){return e.el===null||e.memo?e:Wo(e)}function gv(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(it(t))r=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),gv(e,i()),i._c&&(i._d=!0));return}else{r=32;const i=t._;!i&&!(Wp in t)?t._ctx=Gr:i===3&&Gr&&(Gr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else mt(t)?(t={default:t,_ctx:Gr},r=32):(t=String(t),n&64?(r=16,t=[Qn(t)]):r=8);e.children=t,e.shapeFlag|=r}function ei(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const i in n)if(i==="class")t.class!==n.class&&(t.class=Ye([t.class,n.class]));else if(i==="style")t.style=ln([t.style,n.style]);else if(jp(i)){const a=t[i],o=n[i];o&&a!==o&&!(it(a)&&a.includes(o))&&(t[i]=a?[].concat(a,o):o)}else i!==""&&(t[i]=n[i])}return t}function Mi(e,t,r,n=null){Jn(e,t,7,[r,n])}const PS=Y_();let IS=0;function MS(e,t,r){const n=e.type,i=(t?t.appContext:e.appContext)||PS,a={uid:IS++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new uD(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:V_(n,i),emitsOptions:k_(n,i),emit:null,emitted:null,propsDefaults:Ht,inheritAttrs:n.inheritAttrs,ctx:Ht,data:Ht,props:Ht,attrs:Ht,slots:Ht,refs:Ht,setupState:Ht,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=VD.bind(null,a),e.ce&&e.ce(a),a}let Er=null;const X_=()=>Er||Gr,Hu=e=>{Er=e,e.scope.on()},Fs=()=>{Er&&Er.scope.off(),Er=null};function Q_(e){return e.vnode.shapeFlag&4}let Vu=!1;function RS(e,t=!1){Vu=t;const{props:r,children:n}=e.vnode,i=Q_(e);gS(e,r,i,t),wS(e,n);const a=i?LS(e,t):void 0;return Vu=!1,a}function LS(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=w_(new Proxy(e.ctx,fS));const{setup:n}=r;if(n){const i=e.setupContext=n.length>1?US(e):null;Hu(e),ll();const a=zo(n,e,0,[e.props,i]);if(cl(),Fs(),a_(a)){if(a.then(Fs,Fs),t)return a.then(o=>{$y(e,o,t)}).catch(o=>{qc(o,e,0)});e.asyncDep=a}else $y(e,a,t)}else e5(e,t)}function $y(e,t,r){mt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:cr(t)&&(e.setupState=D_(t)),e5(e,r)}let By;function e5(e,t,r){const n=e.type;if(!e.render){if(!t&&By&&!n.render){const i=n.template;if(i){const{isCustomElement:a,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:u}=n,l=Or(Or({isCustomElement:a,delimiters:s},o),u);n.render=By(i,l)}}e.render=n.render||xi}Hu(e),ll(),dS(e),cl(),Fs()}function jS(e){return new Proxy(e.attrs,{get(t,r){return In(e,"get","$attrs"),t[r]}})}function US(e){const t=n=>{e.exposed=n||{}};let r;return{get attrs(){return r||(r=jS(e))},slots:e.slots,emit:e.emit,expose:t}}function Yp(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(D_(w_(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Id)return Id[r](e)}}))}function zS(e,t=!0){return mt(e)?e.displayName||e.name:e.name||t&&e.__name}function qS(e){return mt(e)&&"__vccOpts"in e}const tt=(e,t)=>LD(e,t,Vu);function Qa(e,t,r){const n=arguments.length;return n===2?cr(t)&&!it(t)?Rd(t)?Ee(e,null,[t]):Ee(e,t):Ee(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Rd(r)&&(r=[r]),Ee(e,t,r))}const HS="3.2.37",VS="http://www.w3.org/2000/svg",Es=typeof document!="undefined"?document:null,Py=Es&&Es.createElement("template"),KS={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const i=t?Es.createElementNS(VS,e):Es.createElement(e,r?{is:r}:void 0);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>Es.createTextNode(e),createComment:e=>Es.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Es.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,r,n,i,a){const o=r?r.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),r),!(i===a||!(i=i.nextSibling)););else{Py.innerHTML=n?`<svg>${e}</svg>`:e;const s=Py.content;if(n){const u=s.firstChild;for(;u.firstChild;)s.appendChild(u.firstChild);s.removeChild(u)}t.insertBefore(s,r)}return[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};function GS(e,t,r){const n=e._vtc;n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}function WS(e,t,r){const n=e.style,i=br(r);if(r&&!i){for(const a in r)p1(n,a,r[a]);if(t&&!br(t))for(const a in t)r[a]==null&&p1(n,a,"")}else{const a=n.display;i?t!==r&&(n.cssText=r):t&&e.removeAttribute("style"),"_vod"in e&&(n.display=a)}}const Iy=/\s*!important$/;function p1(e,t,r){if(it(r))r.forEach(n=>p1(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=YS(e,t);Iy.test(r)?e.setProperty(Hs(n),r.replace(Iy,""),"important"):e[n]=r}}const My=["Webkit","Moz","ms"],qh={};function YS(e,t){const r=qh[t];if(r)return r;let n=ta(t);if(n!=="filter"&&n in e)return qh[t]=n;n=zp(n);for(let i=0;i<My.length;i++){const a=My[i]+n;if(a in e)return qh[t]=a}return t}const Ry="http://www.w3.org/1999/xlink";function ZS(e,t,r,n,i){if(n&&t.startsWith("xlink:"))r==null?e.removeAttributeNS(Ry,t.slice(6,t.length)):e.setAttributeNS(Ry,t,r);else{const a=Z9(t);r==null||a&&!n_(r)?e.removeAttribute(t):e.setAttribute(t,a?"":r)}}function JS(e,t,r,n,i,a,o){if(t==="innerHTML"||t==="textContent"){n&&o(n,i,a),e[t]=r==null?"":r;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=r;const u=r==null?"":r;(e.value!==u||e.tagName==="OPTION")&&(e.value=u),r==null&&e.removeAttribute(t);return}let s=!1;if(r===""||r==null){const u=typeof e[t];u==="boolean"?r=n_(r):r==null&&u==="string"?(r="",s=!0):u==="number"&&(r=0,s=!0)}try{e[t]=r}catch{}s&&e.removeAttribute(t)}const[t5,XS]=(()=>{let e=Date.now,t=!1;if(typeof window!="undefined"){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const r=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(r&&Number(r[1])<=53)}return[e,t]})();let h1=0;const QS=Promise.resolve(),eC=()=>{h1=0},tC=()=>h1||(QS.then(eC),h1=t5());function Ma(e,t,r,n){e.addEventListener(t,r,n)}function rC(e,t,r,n){e.removeEventListener(t,r,n)}function nC(e,t,r,n,i=null){const a=e._vei||(e._vei={}),o=a[t];if(n&&o)o.value=n;else{const[s,u]=iC(t);if(n){const l=a[t]=aC(n,i);Ma(e,s,l,u)}else o&&(rC(e,s,o,u),a[t]=void 0)}}const Ly=/(?:Once|Passive|Capture)$/;function iC(e){let t;if(Ly.test(e)){t={};let r;for(;r=e.match(Ly);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[Hs(e.slice(2)),t]}function aC(e,t){const r=n=>{const i=n.timeStamp||t5();(XS||i>=r.attached-1)&&Jn(oC(n,r.value),t,5,[n])};return r.value=e,r.attached=tC(),r}function oC(e,t){if(it(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const jy=/^on[a-z]/,sC=(e,t,r,n,i=!1,a,o,s,u)=>{t==="class"?GS(e,n,i):t==="style"?WS(e,r,n):jp(t)?Q0(t)||nC(e,t,r,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):uC(e,t,n,i))?JS(e,t,n,a,o,s,u):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),ZS(e,t,n,i))};function uC(e,t,r,n){return n?!!(t==="innerHTML"||t==="textContent"||t in e&&jy.test(t)&&mt(r)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||jy.test(t)&&br(r)?!1:t in e}const yo="transition",$l="animation",Ku=(e,{slots:t})=>Qa(B_,n5(e),t);Ku.displayName="Transition";const r5={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},lC=Ku.props=Or({},B_.props,r5),gs=(e,t=[])=>{it(e)?e.forEach(r=>r(...t)):e&&e(...t)},Uy=e=>e?it(e)?e.some(t=>t.length>1):e.length>1:!1;function n5(e){const t={};for(const q in e)q in r5||(t[q]=e[q]);if(e.css===!1)return t;const{name:r="v",type:n,duration:i,enterFromClass:a=`${r}-enter-from`,enterActiveClass:o=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:u=a,appearActiveClass:l=o,appearToClass:c=s,leaveFromClass:f=`${r}-leave-from`,leaveActiveClass:d=`${r}-leave-active`,leaveToClass:p=`${r}-leave-to`}=e,h=cC(i),b=h&&h[0],g=h&&h[1],{onBeforeEnter:v,onEnter:S,onEnterCancelled:w,onLeave:D,onLeaveCancelled:_,onBeforeAppear:N=v,onAppear:$=S,onAppearCancelled:k=w}=t,K=(q,re,M)=>{Do(q,re?c:s),Do(q,re?l:o),M&&M()},G=(q,re)=>{q._isLeaving=!1,Do(q,f),Do(q,p),Do(q,d),re&&re()},j=q=>(re,M)=>{const U=q?$:S,x=()=>K(re,q,M);gs(U,[re,x]),zy(()=>{Do(re,q?u:a),Fa(re,q?c:s),Uy(U)||qy(re,n,b,x)})};return Or(t,{onBeforeEnter(q){gs(v,[q]),Fa(q,a),Fa(q,o)},onBeforeAppear(q){gs(N,[q]),Fa(q,u),Fa(q,l)},onEnter:j(!1),onAppear:j(!0),onLeave(q,re){q._isLeaving=!0;const M=()=>G(q,re);Fa(q,f),a5(),Fa(q,d),zy(()=>{!q._isLeaving||(Do(q,f),Fa(q,p),Uy(D)||qy(q,n,g,M))}),gs(D,[q,M])},onEnterCancelled(q){K(q,!1),gs(w,[q])},onAppearCancelled(q){K(q,!0),gs(k,[q])},onLeaveCancelled(q){G(q),gs(_,[q])}})}function cC(e){if(e==null)return null;if(cr(e))return[Hh(e.enter),Hh(e.leave)];{const t=Hh(e);return[t,t]}}function Hh(e){return _c(e)}function Fa(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e._vtc||(e._vtc=new Set)).add(t)}function Do(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const{_vtc:r}=e;r&&(r.delete(t),r.size||(e._vtc=void 0))}function zy(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let fC=0;function qy(e,t,r,n){const i=e._endId=++fC,a=()=>{i===e._endId&&n()};if(r)return setTimeout(a,r);const{type:o,timeout:s,propCount:u}=i5(e,t);if(!o)return n();const l=o+"end";let c=0;const f=()=>{e.removeEventListener(l,d),a()},d=p=>{p.target===e&&++c>=u&&f()};setTimeout(()=>{c<u&&f()},s+1),e.addEventListener(l,d)}function i5(e,t){const r=window.getComputedStyle(e),n=h=>(r[h]||"").split(", "),i=n(yo+"Delay"),a=n(yo+"Duration"),o=Hy(i,a),s=n($l+"Delay"),u=n($l+"Duration"),l=Hy(s,u);let c=null,f=0,d=0;t===yo?o>0&&(c=yo,f=o,d=a.length):t===$l?l>0&&(c=$l,f=l,d=u.length):(f=Math.max(o,l),c=f>0?o>l?yo:$l:null,d=c?c===yo?a.length:u.length:0);const p=c===yo&&/\b(transform|all)(,|$)/.test(r[yo+"Property"]);return{type:c,timeout:f,propCount:d,hasTransform:p}}function Hy(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,n)=>Vy(r)+Vy(e[n])))}function Vy(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function a5(){return document.body.offsetHeight}const o5=new WeakMap,s5=new WeakMap,dC={name:"TransitionGroup",props:Or({},lC,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=X_(),n=$_();let i,a;return M_(()=>{if(!i.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!gC(i[0].el,r.vnode.el,o))return;i.forEach(hC),i.forEach(mC);const s=i.filter(vC);a5(),s.forEach(u=>{const l=u.el,c=l.style;Fa(l,o),c.transform=c.webkitTransform=c.transitionDuration="";const f=l._moveCb=d=>{d&&d.target!==l||(!d||/transform$/.test(d.propertyName))&&(l.removeEventListener("transitionend",f),l._moveCb=null,Do(l,o))};l.addEventListener("transitionend",f)})}),()=>{const o=At(e),s=n5(o);let u=o.tag||vt;i=a,a=t.default?dv(t.default()):[];for(let l=0;l<a.length;l++){const c=a[l];c.key!=null&&Cc(c,Sc(c,s,n,r))}if(i)for(let l=0;l<i.length;l++){const c=i[l];Cc(c,Sc(c,s,n,r)),o5.set(c,c.el.getBoundingClientRect())}return Ee(u,null,a)}}},pC=dC;function hC(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function mC(e){s5.set(e,e.el.getBoundingClientRect())}function vC(e){const t=o5.get(e),r=s5.get(e),n=t.left-r.left,i=t.top-r.top;if(n||i){const a=e.el.style;return a.transform=a.webkitTransform=`translate(${n}px,${i}px)`,a.transitionDuration="0s",e}}function gC(e,t,r){const n=e.cloneNode();e._vtc&&e._vtc.forEach(o=>{o.split(/\s+/).forEach(s=>s&&n.classList.remove(s))}),r.split(/\s+/).forEach(o=>o&&n.classList.add(o)),n.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(n);const{hasTransform:a}=i5(n);return i.removeChild(n),a}const Yo=e=>{const t=e.props["onUpdate:modelValue"]||!1;return it(t)?r=>dd(t,r):t};function yC(e){e.target.composing=!0}function Ky(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Gy={created(e,{modifiers:{lazy:t,trim:r,number:n}},i){e._assign=Yo(i);const a=n||i.props&&i.props.type==="number";Ma(e,t?"change":"input",o=>{if(o.target.composing)return;let s=e.value;r&&(s=s.trim()),a&&(s=_c(s)),e._assign(s)}),r&&Ma(e,"change",()=>{e.value=e.value.trim()}),t||(Ma(e,"compositionstart",yC),Ma(e,"compositionend",Ky),Ma(e,"change",Ky))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:r,trim:n,number:i}},a){if(e._assign=Yo(a),e.composing||document.activeElement===e&&e.type!=="range"&&(r||n&&e.value.trim()===t||(i||e.type==="number")&&_c(e.value)===t))return;const o=t==null?"":t;e.value!==o&&(e.value=o)}},bC={deep:!0,created(e,t,r){e._assign=Yo(r),Ma(e,"change",()=>{const n=e._modelValue,i=Gu(e),a=e.checked,o=e._assign;if(it(n)){const s=X0(n,i),u=s!==-1;if(a&&!u)o(n.concat(i));else if(!a&&u){const l=[...n];l.splice(s,1),o(l)}}else if(ul(n)){const s=new Set(n);a?s.add(i):s.delete(i),o(s)}else o(u5(e,a))})},mounted:Wy,beforeUpdate(e,t,r){e._assign=Yo(r),Wy(e,t,r)}};function Wy(e,{value:t,oldValue:r},n){e._modelValue=t,it(t)?e.checked=X0(t,n.props.value)>-1:ul(t)?e.checked=t.has(n.props.value):t!==r&&(e.checked=Rs(t,u5(e,!0)))}const wC={created(e,{value:t},r){e.checked=Rs(t,r.props.value),e._assign=Yo(r),Ma(e,"change",()=>{e._assign(Gu(e))})},beforeUpdate(e,{value:t,oldValue:r},n){e._assign=Yo(n),t!==r&&(e.checked=Rs(t,n.props.value))}},_C={deep:!0,created(e,{value:t,modifiers:{number:r}},n){const i=ul(t);Ma(e,"change",()=>{const a=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>r?_c(Gu(o)):Gu(o));e._assign(e.multiple?i?new Set(a):a:a[0])}),e._assign=Yo(n)},mounted(e,{value:t}){Yy(e,t)},beforeUpdate(e,t,r){e._assign=Yo(r)},updated(e,{value:t}){Yy(e,t)}};function Yy(e,t){const r=e.multiple;if(!(r&&!it(t)&&!ul(t))){for(let n=0,i=e.options.length;n<i;n++){const a=e.options[n],o=Gu(a);if(r)it(t)?a.selected=X0(t,o)>-1:a.selected=t.has(o);else if(Rs(Gu(a),t)){e.selectedIndex!==n&&(e.selectedIndex=n);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Gu(e){return"_value"in e?e._value:e.value}function u5(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const p1e={created(e,t,r){yf(e,t,r,null,"created")},mounted(e,t,r){yf(e,t,r,null,"mounted")},beforeUpdate(e,t,r,n){yf(e,t,r,n,"beforeUpdate")},updated(e,t,r,n){yf(e,t,r,n,"updated")}};function xC(e,t){switch(e){case"SELECT":return _C;case"TEXTAREA":return Gy;default:switch(t){case"checkbox":return bC;case"radio":return wC;default:return Gy}}}function yf(e,t,r,n,i){const o=xC(e.tagName,r.props&&r.props.type)[i];o&&o(e,t,r,n)}const EC=["ctrl","shift","alt","meta"],DC={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>EC.some(r=>e[`${r}Key`]&&!t.includes(r))},ur=(e,t)=>(r,...n)=>{for(let i=0;i<t.length;i++){const a=DC[t[i]];if(a&&a(r,t))return}return e(r,...n)},SC={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Yn=(e,t)=>r=>{if(!("key"in r))return;const n=Hs(r.key);if(t.some(i=>i===n||SC[i]===n))return e(r)},$r={beforeMount(e,{value:t},{transition:r}){e._vod=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Bl(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),Bl(e,!0),n.enter(e)):n.leave(e,()=>{Bl(e,!1)}):Bl(e,t))},beforeUnmount(e,{value:t}){Bl(e,t)}};function Bl(e,t){e.style.display=t?e._vod:"none"}const CC=Or({patchProp:sC},KS);let Zy;function AC(){return Zy||(Zy=DS(CC))}const NC=(...e)=>{const t=AC().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=TC(n);if(!i)return;const a=t._component;!mt(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.innerHTML="";const o=r(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function TC(e){return br(e)?document.querySelector(e):e}var kC="Expected a function",l5="__lodash_hash_undefined__",c5=1/0,OC="[object Function]",FC="[object GeneratorFunction]",$C="[object Symbol]",BC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,PC=/^\w*$/,IC=/^\./,MC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,RC=/[\\^$.*+?()[\]{}|]/g,LC=/\\(\\)?/g,jC=/^\[object .+?Constructor\]$/,UC=typeof lt=="object"&&lt&&lt.Object===Object&&lt,zC=typeof self=="object"&&self&&self.Object===Object&&self,yv=UC||zC||Function("return this")();function qC(e,t){return e==null?void 0:e[t]}function HC(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var VC=Array.prototype,KC=Function.prototype,f5=Object.prototype,Vh=yv["__core-js_shared__"],Jy=function(){var e=/[^.]+$/.exec(Vh&&Vh.keys&&Vh.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),d5=KC.toString,bv=f5.hasOwnProperty,p5=f5.toString,GC=RegExp("^"+d5.call(bv).replace(RC,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Xy=yv.Symbol,WC=VC.splice,YC=h5(yv,"Map"),Nc=h5(Object,"create"),Qy=Xy?Xy.prototype:void 0,e2=Qy?Qy.toString:void 0;function Ls(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ZC(){this.__data__=Nc?Nc(null):{}}function JC(e){return this.has(e)&&delete this.__data__[e]}function XC(e){var t=this.__data__;if(Nc){var r=t[e];return r===l5?void 0:r}return bv.call(t,e)?t[e]:void 0}function QC(e){var t=this.__data__;return Nc?t[e]!==void 0:bv.call(t,e)}function eA(e,t){var r=this.__data__;return r[e]=Nc&&t===void 0?l5:t,this}Ls.prototype.clear=ZC;Ls.prototype.delete=JC;Ls.prototype.get=XC;Ls.prototype.has=QC;Ls.prototype.set=eA;function fl(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function tA(){this.__data__=[]}function rA(e){var t=this.__data__,r=Zp(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():WC.call(t,r,1),!0}function nA(e){var t=this.__data__,r=Zp(t,e);return r<0?void 0:t[r][1]}function iA(e){return Zp(this.__data__,e)>-1}function aA(e,t){var r=this.__data__,n=Zp(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}fl.prototype.clear=tA;fl.prototype.delete=rA;fl.prototype.get=nA;fl.prototype.has=iA;fl.prototype.set=aA;function Gs(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function oA(){this.__data__={hash:new Ls,map:new(YC||fl),string:new Ls}}function sA(e){return Jp(this,e).delete(e)}function uA(e){return Jp(this,e).get(e)}function lA(e){return Jp(this,e).has(e)}function cA(e,t){return Jp(this,e).set(e,t),this}Gs.prototype.clear=oA;Gs.prototype.delete=sA;Gs.prototype.get=uA;Gs.prototype.has=lA;Gs.prototype.set=cA;function Zp(e,t){for(var r=e.length;r--;)if(_A(e[r][0],t))return r;return-1}function fA(e,t){t=mA(t,e)?[t]:hA(t);for(var r=0,n=t.length;e!=null&&r<n;)e=e[bA(t[r++])];return r&&r==n?e:void 0}function dA(e){if(!v5(e)||gA(e))return!1;var t=xA(e)||HC(e)?GC:jC;return t.test(wA(e))}function pA(e){if(typeof e=="string")return e;if(_v(e))return e2?e2.call(e):"";var t=e+"";return t=="0"&&1/e==-c5?"-0":t}function hA(e){return m5(e)?e:yA(e)}function Jp(e,t){var r=e.__data__;return vA(t)?r[typeof t=="string"?"string":"hash"]:r.map}function h5(e,t){var r=qC(e,t);return dA(r)?r:void 0}function mA(e,t){if(m5(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||_v(e)?!0:PC.test(e)||!BC.test(e)||t!=null&&e in Object(t)}function vA(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function gA(e){return!!Jy&&Jy in e}var yA=wv(function(e){e=DA(e);var t=[];return IC.test(e)&&t.push(""),e.replace(MC,function(r,n,i,a){t.push(i?a.replace(LC,"$1"):n||r)}),t});function bA(e){if(typeof e=="string"||_v(e))return e;var t=e+"";return t=="0"&&1/e==-c5?"-0":t}function wA(e){if(e!=null){try{return d5.call(e)}catch{}try{return e+""}catch{}}return""}function wv(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(kC);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o),o};return r.cache=new(wv.Cache||Gs),r}wv.Cache=Gs;function _A(e,t){return e===t||e!==e&&t!==t}var m5=Array.isArray;function xA(e){var t=v5(e)?p5.call(e):"";return t==OC||t==FC}function v5(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function EA(e){return!!e&&typeof e=="object"}function _v(e){return typeof e=="symbol"||EA(e)&&p5.call(e)==$C}function DA(e){return e==null?"":pA(e)}function SA(e,t,r){var n=e==null?void 0:fA(e,t);return n===void 0?r:n}var B=SA;function CA(){return g5().__VUE_DEVTOOLS_GLOBAL_HOOK__}function g5(){return typeof navigator!="undefined"&&typeof window!="undefined"?window:typeof Yt!="undefined"?Yt:{}}const AA=typeof Proxy=="function",NA="devtools-plugin:setup",TA="plugin:settings:set";let lu,m1;function kA(){var e;return lu!==void 0||(typeof window!="undefined"&&window.performance?(lu=!0,m1=window.performance):typeof Yt!="undefined"&&((e=Yt.perf_hooks)===null||e===void 0?void 0:e.performance)?(lu=!0,m1=Yt.perf_hooks.performance):lu=!1),lu}function OA(){return kA()?m1.now():Date.now()}class FA{constructor(t,r){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=r;const n={};if(t.settings)for(const o in t.settings){const s=t.settings[o];n[o]=s.defaultValue}const i=`__vue-devtools-plugin-settings__${t.id}`;let a=Object.assign({},n);try{const o=localStorage.getItem(i),s=JSON.parse(o);Object.assign(a,s)}catch{}this.fallbacks={getSettings(){return a},setSettings(o){try{localStorage.setItem(i,JSON.stringify(o))}catch{}a=o},now(){return OA()}},r&&r.on(TA,(o,s)=>{o===this.plugin.id&&this.fallbacks.setSettings(s)}),this.proxiedOn=new Proxy({},{get:(o,s)=>this.target?this.target.on[s]:(...u)=>{this.onQueue.push({method:s,args:u})}}),this.proxiedTarget=new Proxy({},{get:(o,s)=>this.target?this.target[s]:s==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(s)?(...u)=>(this.targetQueue.push({method:s,args:u,resolve:()=>{}}),this.fallbacks[s](...u)):(...u)=>new Promise(l=>{this.targetQueue.push({method:s,args:u,resolve:l})})})}async setRealTarget(t){this.target=t;for(const r of this.onQueue)this.target.on[r.method](...r.args);for(const r of this.targetQueue)r.resolve(await this.target[r.method](...r.args))}}function $A(e,t){const r=e,n=g5(),i=CA(),a=AA&&r.enableEarlyProxy;if(i&&(n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))i.emit(NA,e,t);else{const o=a?new FA(r,i):null;(n.__VUE_DEVTOOLS_PLUGINS__=n.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:r,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}/*!
 * vuex v4.0.2
 * (c) 2021 Evan You
 * @license MIT
 */var BA="store";function dl(e,t){Object.keys(e).forEach(function(r){return t(e[r],r)})}function y5(e){return e!==null&&typeof e=="object"}function PA(e){return e&&typeof e.then=="function"}function IA(e,t){return function(){return e(t)}}function b5(e,t,r){return t.indexOf(e)<0&&(r&&r.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function w5(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var r=e.state;Xp(e,r,[],e._modules.root,!0),xv(e,r,t)}function xv(e,t,r){var n=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,a={};dl(i,function(o,s){a[s]=IA(o,e),Object.defineProperty(e.getters,s,{get:function(){return a[s]()},enumerable:!0})}),e._state=Vs({data:t}),e.strict&&UA(e),n&&r&&e._withCommit(function(){n.data=null})}function Xp(e,t,r,n,i){var a=!r.length,o=e._modules.getNamespace(r);if(n.namespaced&&(e._modulesNamespaceMap[o],e._modulesNamespaceMap[o]=n),!a&&!i){var s=Ev(t,r.slice(0,-1)),u=r[r.length-1];e._withCommit(function(){s[u]=n.state})}var l=n.context=MA(e,o,r);n.forEachMutation(function(c,f){var d=o+f;RA(e,d,c,l)}),n.forEachAction(function(c,f){var d=c.root?f:o+f,p=c.handler||c;LA(e,d,p,l)}),n.forEachGetter(function(c,f){var d=o+f;jA(e,d,c,l)}),n.forEachChild(function(c,f){Xp(e,t,r.concat(f),c,i)})}function MA(e,t,r){var n=t==="",i={dispatch:n?e.dispatch:function(a,o,s){var u=Ld(a,o,s),l=u.payload,c=u.options,f=u.type;return(!c||!c.root)&&(f=t+f),e.dispatch(f,l)},commit:n?e.commit:function(a,o,s){var u=Ld(a,o,s),l=u.payload,c=u.options,f=u.type;(!c||!c.root)&&(f=t+f),e.commit(f,l,c)}};return Object.defineProperties(i,{getters:{get:n?function(){return e.getters}:function(){return _5(e,t)}},state:{get:function(){return Ev(e.state,r)}}}),i}function _5(e,t){if(!e._makeLocalGettersCache[t]){var r={},n=t.length;Object.keys(e.getters).forEach(function(i){if(i.slice(0,n)===t){var a=i.slice(n);Object.defineProperty(r,a,{get:function(){return e.getters[i]},enumerable:!0})}}),e._makeLocalGettersCache[t]=r}return e._makeLocalGettersCache[t]}function RA(e,t,r,n){var i=e._mutations[t]||(e._mutations[t]=[]);i.push(function(o){r.call(e,n.state,o)})}function LA(e,t,r,n){var i=e._actions[t]||(e._actions[t]=[]);i.push(function(o){var s=r.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:e.getters,rootState:e.state},o);return PA(s)||(s=Promise.resolve(s)),e._devtoolHook?s.catch(function(u){throw e._devtoolHook.emit("vuex:error",u),u}):s})}function jA(e,t,r,n){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(a){return r(n.state,n.getters,a.state,a.getters)})}function UA(e){Vr(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}function Ev(e,t){return t.reduce(function(r,n){return r[n]},e)}function Ld(e,t,r){return y5(e)&&e.type&&(r=t,t=e,e=e.type),{type:e,payload:t,options:r}}var zA="vuex bindings",t2="vuex:mutations",Kh="vuex:actions",cu="vuex",qA=0;function HA(e,t){$A({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[zA]},function(r){r.addTimelineLayer({id:t2,label:"Vuex Mutations",color:r2}),r.addTimelineLayer({id:Kh,label:"Vuex Actions",color:r2}),r.addInspector({id:cu,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),r.on.getInspectorTree(function(n){if(n.app===e&&n.inspectorId===cu)if(n.filter){var i=[];S5(i,t._modules.root,n.filter,""),n.rootNodes=i}else n.rootNodes=[D5(t._modules.root,"")]}),r.on.getInspectorState(function(n){if(n.app===e&&n.inspectorId===cu){var i=n.nodeId;_5(t,i),n.state=GA(YA(t._modules,i),i==="root"?t.getters:t._makeLocalGettersCache,i)}}),r.on.editInspectorState(function(n){if(n.app===e&&n.inspectorId===cu){var i=n.nodeId,a=n.path;i!=="root"&&(a=i.split("/").filter(Boolean).concat(a)),t._withCommit(function(){n.set(t._state.data,a,n.state.value)})}}),t.subscribe(function(n,i){var a={};n.payload&&(a.payload=n.payload),a.state=i,r.notifyComponentUpdate(),r.sendInspectorTree(cu),r.sendInspectorState(cu),r.addTimelineEvent({layerId:t2,event:{time:Date.now(),title:n.type,data:a}})}),t.subscribeAction({before:function(n,i){var a={};n.payload&&(a.payload=n.payload),n._id=qA++,n._time=Date.now(),a.state=i,r.addTimelineEvent({layerId:Kh,event:{time:n._time,title:n.type,groupId:n._id,subtitle:"start",data:a}})},after:function(n,i){var a={},o=Date.now()-n._time;a.duration={_custom:{type:"duration",display:o+"ms",tooltip:"Action duration",value:o}},n.payload&&(a.payload=n.payload),a.state=i,r.addTimelineEvent({layerId:Kh,event:{time:Date.now(),title:n.type,groupId:n._id,subtitle:"end",data:a}})}})})}var r2=8702998,VA=6710886,KA=16777215,x5={label:"namespaced",textColor:KA,backgroundColor:VA};function E5(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function D5(e,t){return{id:t||"root",label:E5(t),tags:e.namespaced?[x5]:[],children:Object.keys(e._children).map(function(r){return D5(e._children[r],t+r+"/")})}}function S5(e,t,r,n){n.includes(r)&&e.push({id:n||"root",label:n.endsWith("/")?n.slice(0,n.length-1):n||"Root",tags:t.namespaced?[x5]:[]}),Object.keys(t._children).forEach(function(i){S5(e,t._children[i],r,n+i+"/")})}function GA(e,t,r){t=r==="root"?t:t[r];var n=Object.keys(t),i={state:Object.keys(e.state).map(function(o){return{key:o,editable:!0,value:e.state[o]}})};if(n.length){var a=WA(t);i.getters=Object.keys(a).map(function(o){return{key:o.endsWith("/")?E5(o):o,editable:!1,value:v1(function(){return a[o]})}})}return i}function WA(e){var t={};return Object.keys(e).forEach(function(r){var n=r.split("/");if(n.length>1){var i=t,a=n.pop();n.forEach(function(o){i[o]||(i[o]={_custom:{value:{},display:o,tooltip:"Module",abstract:!0}}),i=i[o]._custom.value}),i[a]=v1(function(){return e[r]})}else t[r]=v1(function(){return e[r]})}),t}function YA(e,t){var r=t.split("/").filter(function(n){return n});return r.reduce(function(n,i,a){var o=n[i];if(!o)throw new Error('Missing module "'+i+'" for path "'+t+'".');return a===r.length-1?o:o._children},t==="root"?e:e.root._children)}function v1(e){try{return e()}catch(t){return t}}var Ni=function(t,r){this.runtime=r,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=(typeof n=="function"?n():n)||{}},C5={namespaced:{configurable:!0}};C5.namespaced.get=function(){return!!this._rawModule.namespaced};Ni.prototype.addChild=function(t,r){this._children[t]=r};Ni.prototype.removeChild=function(t){delete this._children[t]};Ni.prototype.getChild=function(t){return this._children[t]};Ni.prototype.hasChild=function(t){return t in this._children};Ni.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)};Ni.prototype.forEachChild=function(t){dl(this._children,t)};Ni.prototype.forEachGetter=function(t){this._rawModule.getters&&dl(this._rawModule.getters,t)};Ni.prototype.forEachAction=function(t){this._rawModule.actions&&dl(this._rawModule.actions,t)};Ni.prototype.forEachMutation=function(t){this._rawModule.mutations&&dl(this._rawModule.mutations,t)};Object.defineProperties(Ni.prototype,C5);var Ws=function(t){this.register([],t,!1)};Ws.prototype.get=function(t){return t.reduce(function(r,n){return r.getChild(n)},this.root)};Ws.prototype.getNamespace=function(t){var r=this.root;return t.reduce(function(n,i){return r=r.getChild(i),n+(r.namespaced?i+"/":"")},"")};Ws.prototype.update=function(t){A5([],this.root,t)};Ws.prototype.register=function(t,r,n){var i=this;n===void 0&&(n=!0);var a=new Ni(r,n);if(t.length===0)this.root=a;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],a)}r.modules&&dl(r.modules,function(s,u){i.register(t.concat(u),s,n)})};Ws.prototype.unregister=function(t){var r=this.get(t.slice(0,-1)),n=t[t.length-1],i=r.getChild(n);!i||!i.runtime||r.removeChild(n)};Ws.prototype.isRegistered=function(t){var r=this.get(t.slice(0,-1)),n=t[t.length-1];return r?r.hasChild(n):!1};function A5(e,t,r){if(t.update(r),r.modules)for(var n in r.modules){if(!t.getChild(n))return;A5(e.concat(n),t.getChild(n),r.modules[n])}}function ZA(e){return new Sn(e)}var Sn=function(t){var r=this;t===void 0&&(t={});var n=t.plugins;n===void 0&&(n=[]);var i=t.strict;i===void 0&&(i=!1);var a=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Ws(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=a;var o=this,s=this,u=s.dispatch,l=s.commit;this.dispatch=function(d,p){return u.call(o,d,p)},this.commit=function(d,p,h){return l.call(o,d,p,h)},this.strict=i;var c=this._modules.root.state;Xp(this,c,[],this._modules.root),xv(this,c),n.forEach(function(f){return f(r)})},Dv={state:{configurable:!0}};Sn.prototype.install=function(t,r){t.provide(r||BA,this),t.config.globalProperties.$store=this;var n=this._devtools!==void 0?this._devtools:!1;n&&HA(t,this)};Dv.state.get=function(){return this._state.data};Dv.state.set=function(e){};Sn.prototype.commit=function(t,r,n){var i=this,a=Ld(t,r,n),o=a.type,s=a.payload,u={type:o,payload:s},l=this._mutations[o];!l||(this._withCommit(function(){l.forEach(function(f){f(s)})}),this._subscribers.slice().forEach(function(c){return c(u,i.state)}))};Sn.prototype.dispatch=function(t,r){var n=this,i=Ld(t,r),a=i.type,o=i.payload,s={type:a,payload:o},u=this._actions[a];if(!!u){try{this._actionSubscribers.slice().filter(function(c){return c.before}).forEach(function(c){return c.before(s,n.state)})}catch{}var l=u.length>1?Promise.all(u.map(function(c){return c(o)})):u[0](o);return new Promise(function(c,f){l.then(function(d){try{n._actionSubscribers.filter(function(p){return p.after}).forEach(function(p){return p.after(s,n.state)})}catch{}c(d)},function(d){try{n._actionSubscribers.filter(function(p){return p.error}).forEach(function(p){return p.error(s,n.state,d)})}catch{}f(d)})})}};Sn.prototype.subscribe=function(t,r){return b5(t,this._subscribers,r)};Sn.prototype.subscribeAction=function(t,r){var n=typeof t=="function"?{before:t}:t;return b5(n,this._actionSubscribers,r)};Sn.prototype.watch=function(t,r,n){var i=this;return Vr(function(){return t(i.state,i.getters)},r,Object.assign({},n))};Sn.prototype.replaceState=function(t){var r=this;this._withCommit(function(){r._state.data=t})};Sn.prototype.registerModule=function(t,r,n){n===void 0&&(n={}),typeof t=="string"&&(t=[t]),this._modules.register(t,r),Xp(this,this.state,t,this._modules.get(t),n.preserveState),xv(this,this.state)};Sn.prototype.unregisterModule=function(t){var r=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var n=Ev(r.state,t.slice(0,-1));delete n[t[t.length-1]]}),w5(this)};Sn.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};Sn.prototype.hotUpdate=function(t){this._modules.update(t),w5(this,!0)};Sn.prototype._withCommit=function(t){var r=this._committing;this._committing=!0,t(),this._committing=r};Object.defineProperties(Sn.prototype,Dv);var JA=T5(function(e,t){var r={};return N5(t).forEach(function(n){var i=n.key,a=n.val;r[i]=function(){var s=this.$store.state,u=this.$store.getters;if(e){var l=k5(this.$store,"mapState",e);if(!l)return;s=l.context.state,u=l.context.getters}return typeof a=="function"?a.call(this,s,u):s[a]},r[i].vuex=!0}),r}),bt=T5(function(e,t){var r={};return N5(t).forEach(function(n){var i=n.key,a=n.val;a=e+a,r[i]=function(){if(!(e&&!k5(this.$store,"mapGetters",e)))return this.$store.getters[a]},r[i].vuex=!0}),r});function N5(e){return XA(e)?Array.isArray(e)?e.map(function(t){return{key:t,val:t}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function XA(e){return Array.isArray(e)||y5(e)}function T5(e){return function(t,r){return typeof t!="string"?(r=t,t=""):t.charAt(t.length-1)!=="/"&&(t+="/"),e(t,r)}}function k5(e,t,r){var n=e._modulesNamespaceMap[r];return n}function qo(e){return qo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qo(e)}function ca(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function fa(e,t,r){return t&&n2(e.prototype,t),r&&n2(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ho(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g1(e,t){return g1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},g1(e,t)}function Qp(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g1(e,t)}function Kc(e,t){if(t&&(qo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ho(e)}function ra(e){return ra=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ra(e)}function er(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QA(e){if(Array.isArray(e))return e}function eN(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function i2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function tN(e,t){if(!!e){if(typeof e=="string")return i2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i2(e,t)}}function rN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nN(e){return QA(e)||eN(e)||tN(e)||rN()}function a2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function o2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?a2(Object(r),!0).forEach(function(n){er(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var iN={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,r){console&&console[t]&&console[t].apply(console,r)}},aN=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ca(this,e),this.init(t,r)}return fa(e,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=r||iN,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(r){this.debug=r}},{key:"log",value:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(r,n,i,a){return a&&!this.debug?null:(typeof r[0]=="string"&&(r[0]="".concat(i).concat(this.prefix," ").concat(r[0])),this.logger[n](r))}},{key:"create",value:function(r){return new e(this.logger,o2(o2({},{prefix:"".concat(this.prefix,":").concat(r,":")}),this.options))}}]),e}(),Ji=new aN,Zo=function(){function e(){ca(this,e),this.observers={}}return fa(e,[{key:"on",value:function(r,n){var i=this;return r.split(" ").forEach(function(a){i.observers[a]=i.observers[a]||[],i.observers[a].push(n)}),this}},{key:"off",value:function(r,n){if(!!this.observers[r]){if(!n){delete this.observers[r];return}this.observers[r]=this.observers[r].filter(function(i){return i!==n})}}},{key:"emit",value:function(r){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];if(this.observers[r]){var o=[].concat(this.observers[r]);o.forEach(function(u){u.apply(void 0,i)})}if(this.observers["*"]){var s=[].concat(this.observers["*"]);s.forEach(function(u){u.apply(u,[r].concat(i))})}}}]),e}();function Pl(){var e,t,r=new Promise(function(n,i){e=n,t=i});return r.resolve=e,r.reject=t,r}function s2(e){return e==null?"":""+e}function oN(e,t,r){e.forEach(function(n){t[n]&&(r[n]=t[n])})}function Sv(e,t,r){function n(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function i(){return!e||typeof e=="string"}for(var a=typeof t!="string"?[].concat(t):t.split(".");a.length>1;){if(i())return{};var o=n(a.shift());!e[o]&&r&&(e[o]=new r),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={}}return i()?{}:{obj:e,k:n(a.shift())}}function u2(e,t,r){var n=Sv(e,t,Object),i=n.obj,a=n.k;i[a]=r}function sN(e,t,r,n){var i=Sv(e,t,Object),a=i.obj,o=i.k;a[o]=a[o]||[],n&&(a[o]=a[o].concat(r)),n||a[o].push(r)}function jd(e,t){var r=Sv(e,t),n=r.obj,i=r.k;if(!!n)return n[i]}function l2(e,t,r){var n=jd(e,r);return n!==void 0?n:jd(t,r)}function O5(e,t,r){for(var n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?typeof e[n]=="string"||e[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?r&&(e[n]=t[n]):O5(e[n],t[n],r):e[n]=t[n]);return e}function fu(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var uN={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function lN(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return uN[t]}):e}var eh=typeof window!="undefined"&&window.navigator&&typeof window.navigator.userAgentData=="undefined"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,cN=[" ",",","?","!",";"];function fN(e,t,r){t=t||"",r=r||"";var n=cN.filter(function(s){return t.indexOf(s)<0&&r.indexOf(s)<0});if(n.length===0)return!0;var i=new RegExp("(".concat(n.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),a=!i.test(e);if(!a){var o=e.indexOf(r);o>0&&!i.test(e.substring(0,o))&&(a=!0)}return a}function c2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?c2(Object(r),!0).forEach(function(n){er(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dN(e){var t=pN();return function(){var n=ra(e),i;if(t){var a=ra(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Kc(this,i)}}function pN(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function F5(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!!e){if(e[t])return e[t];for(var n=t.split(r),i=e,a=0;a<n.length;++a){if(!i||typeof i[n[a]]=="string"&&a+1<n.length)return;if(i[n[a]]===void 0){for(var o=2,s=n.slice(a,a+o).join(r),u=i[s];u===void 0&&n.length>a+o;)o++,s=n.slice(a,a+o).join(r),u=i[s];if(u===void 0)return;if(u===null)return null;if(t.endsWith(s)){if(typeof u=="string")return u;if(s&&typeof u[s]=="string")return u[s]}var l=n.slice(a+o).join(r);return l?F5(u,l,r):void 0}i=i[n[a]]}return i}}var hN=function(e){Qp(r,e);var t=dN(r);function r(n){var i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return ca(this,r),i=t.call(this),eh&&Zo.call(Ho(i)),i.data=n||{},i.options=a,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return fa(r,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var a=this.options.ns.indexOf(i);a>-1&&this.options.ns.splice(a,1)}},{key:"getResource",value:function(i,a,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,l=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,c=[i,a];o&&typeof o!="string"&&(c=c.concat(o)),o&&typeof o=="string"&&(c=c.concat(u?o.split(u):o)),i.indexOf(".")>-1&&(c=i.split("."));var f=jd(this.data,c);return f||!l||typeof o!="string"?f:F5(this.data&&this.data[i]&&this.data[i][a],o,u)}},{key:"addResource",value:function(i,a,o,s){var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},l=this.options.keySeparator;l===void 0&&(l=".");var c=[i,a];o&&(c=c.concat(l?o.split(l):o)),i.indexOf(".")>-1&&(c=i.split("."),s=a,a=c[1]),this.addNamespaces(a),u2(this.data,c,s),u.silent||this.emit("added",i,a,o,s)}},{key:"addResources",value:function(i,a,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var u in o)(typeof o[u]=="string"||Object.prototype.toString.apply(o[u])==="[object Array]")&&this.addResource(i,a,u,o[u],{silent:!0});s.silent||this.emit("added",i,a,o)}},{key:"addResourceBundle",value:function(i,a,o,s,u){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},c=[i,a];i.indexOf(".")>-1&&(c=i.split("."),s=o,o=a,a=c[1]),this.addNamespaces(a);var f=jd(this.data,c)||{};s?O5(f,o,u):f=bf(bf({},f),o),u2(this.data,c,f),l.silent||this.emit("added",i,a,o)}},{key:"removeResourceBundle",value:function(i,a){this.hasResourceBundle(i,a)&&delete this.data[i][a],this.removeNamespaces(a),this.emit("removed",i,a)}},{key:"hasResourceBundle",value:function(i,a){return this.getResource(i,a)!==void 0}},{key:"getResourceBundle",value:function(i,a){return a||(a=this.options.defaultNS),this.options.compatibilityAPI==="v1"?bf(bf({},{}),this.getResource(i,a)):this.getResource(i,a)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var a=this.getDataByLanguage(i),o=a&&Object.keys(a)||[];return!!o.find(function(s){return a[s]&&Object.keys(a[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),r}(Zo),$5={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,r,n,i,a){var o=this;return t.forEach(function(s){o.processors[s]&&(r=o.processors[s].process(r,n,i,a))}),r}};function f2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?f2(Object(r),!0).forEach(function(n){er(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mN(e){var t=vN();return function(){var n=ra(e),i;if(t){var a=ra(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Kc(this,i)}}function vN(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var d2={},p2=function(e){Qp(r,e);var t=mN(r);function r(n){var i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ca(this,r),i=t.call(this),eh&&Zo.call(Ho(i)),oN(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,Ho(i)),i.options=a,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=Ji.create("translator"),i}return fa(r,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var o=this.resolve(i,a);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(i,a){var o=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,u=a.ns||this.options.defaultNS||[],l=o&&i.indexOf(o)>-1,c=!this.options.userDefinedKeySeparator&&!a.keySeparator&&!this.options.userDefinedNsSeparator&&!a.nsSeparator&&!fN(i,o,s);if(l&&!c){var f=i.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:i,namespaces:u};var d=i.split(o);(o!==s||o===s&&this.options.ns.indexOf(d[0])>-1)&&(u=d.shift()),i=d.join(s)}return typeof u=="string"&&(u=[u]),{key:i,namespaces:u}}},{key:"translate",value:function(i,a,o){var s=this;if(qo(a)!=="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),a||(a={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var u=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,l=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,c=this.extractFromKey(i[i.length-1],a),f=c.key,d=c.namespaces,p=d[d.length-1],h=a.lng||this.language,b=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(h&&h.toLowerCase()==="cimode"){if(b){var g=a.nsSeparator||this.options.nsSeparator;return u?(v.res="".concat(p).concat(g).concat(f),v):"".concat(p).concat(g).concat(f)}return u?(v.res=f,v):f}var v=this.resolve(i,a),S=v&&v.res,w=v&&v.usedKey||f,D=v&&v.exactUsedKey||f,_=Object.prototype.toString.apply(S),N=["[object Number]","[object Function]","[object RegExp]"],$=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject,K=typeof S!="string"&&typeof S!="boolean"&&typeof S!="number";if(k&&S&&K&&N.indexOf(_)<0&&!(typeof $=="string"&&_==="[object Array]")){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var G=this.options.returnedObjectHandler?this.options.returnedObjectHandler(w,S,tn(tn({},a),{},{ns:d})):"key '".concat(f," (").concat(this.language,")' returned an object instead of string.");return u?(v.res=G,v):G}if(l){var j=_==="[object Array]",q=j?[]:{},re=j?D:w;for(var M in S)if(Object.prototype.hasOwnProperty.call(S,M)){var U="".concat(re).concat(l).concat(M);q[M]=this.translate(U,tn(tn({},a),{joinArrays:!1,ns:d})),q[M]===U&&(q[M]=S[M])}S=q}}else if(k&&typeof $=="string"&&_==="[object Array]")S=S.join($),S&&(S=this.extendTranslation(S,i,a,o));else{var x=!1,I=!1,ee=a.count!==void 0&&typeof a.count!="string",oe=r.hasDefaultValue(a),ce=ee?this.pluralResolver.getSuffix(h,a.count,a):"",$e=a["defaultValue".concat(ce)]||a.defaultValue;!this.isValidLookup(S)&&oe&&(x=!0,S=$e),this.isValidLookup(S)||(I=!0,S=f);var me=a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,_e=me&&I?void 0:S,Ue=oe&&$e!==S&&this.options.updateMissing;if(I||x||Ue){if(this.logger.log(Ue?"updateKey":"missingKey",h,p,f,Ue?$e:S),l){var te=this.resolve(f,tn(tn({},a),{},{keySeparator:!1}));te&&te.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var Te=[],de=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&de&&de[0])for(var De=0;De<de.length;De++)Te.push(de[De]);else this.options.saveMissingTo==="all"?Te=this.languageUtils.toResolveHierarchy(a.lng||this.language):Te.push(a.lng||this.language);var Ne=function(Pe,ze,R){var J=oe&&R!==S?R:_e;s.options.missingKeyHandler?s.options.missingKeyHandler(Pe,p,ze,J,Ue,a):s.backendConnector&&s.backendConnector.saveMissing&&s.backendConnector.saveMissing(Pe,p,ze,J,Ue,a),s.emit("missingKey",Pe,p,ze,S)};this.options.saveMissing&&(this.options.saveMissingPlurals&&ee?Te.forEach(function(je){s.pluralResolver.getSuffixes(je,a).forEach(function(Pe){Ne([je],f+Pe,a["defaultValue".concat(Pe)]||$e)})}):Ne(Te,f,$e))}S=this.extendTranslation(S,i,a,v,o),I&&S===f&&this.options.appendNamespaceToMissingKey&&(S="".concat(p,":").concat(f)),(I||x)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?S=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(p,":").concat(f):f,x?S:void 0):S=this.options.parseMissingKeyHandler(S))}return u?(v.res=S,v):S}},{key:"extendTranslation",value:function(i,a,o,s,u){var l=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,tn(tn({},this.options.interpolation.defaultVariables),o),s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(tn(tn({},o),{interpolation:tn(tn({},this.options.interpolation),o.interpolation)}));var c=typeof i=="string"&&(o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),f;if(c){var d=i.match(this.interpolator.nestingRegexp);f=d&&d.length}var p=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(p=tn(tn({},this.options.interpolation.defaultVariables),p)),i=this.interpolator.interpolate(i,p,o.lng||this.language,o),c){var h=i.match(this.interpolator.nestingRegexp),b=h&&h.length;f<b&&(o.nest=!1)}o.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var S=arguments.length,w=new Array(S),D=0;D<S;D++)w[D]=arguments[D];return u&&u[0]===w[0]&&!o.context?(l.logger.warn("It seems you are nesting recursively key: ".concat(w[0]," in key: ").concat(a[0])),null):l.translate.apply(l,w.concat([a]))},o)),o.interpolation&&this.interpolator.reset()}var g=o.postProcess||this.options.postProcess,v=typeof g=="string"?[g]:g;return i!=null&&v&&v.length&&o.applyPostProcessor!==!1&&(i=$5.handle(v,i,a,this.options&&this.options.postProcessPassResolved?tn({i18nResolved:s},o):o,this)),i}},{key:"resolve",value:function(i){var a=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,u,l,c,f;return typeof i=="string"&&(i=[i]),i.forEach(function(d){if(!a.isValidLookup(s)){var p=a.extractFromKey(d,o),h=p.key;u=h;var b=p.namespaces;a.options.fallbackNS&&(b=b.concat(a.options.fallbackNS));var g=o.count!==void 0&&typeof o.count!="string",v=g&&!o.ordinal&&o.count===0&&a.pluralResolver.shouldUseIntlApi(),S=o.context!==void 0&&(typeof o.context=="string"||typeof o.context=="number")&&o.context!=="",w=o.lngs?o.lngs:a.languageUtils.toResolveHierarchy(o.lng||a.language,o.fallbackLng);b.forEach(function(D){a.isValidLookup(s)||(f=D,!d2["".concat(w[0],"-").concat(D)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(f)&&(d2["".concat(w[0],"-").concat(D)]=!0,a.logger.warn('key "'.concat(u,'" for languages "').concat(w.join(", "),`" won't get resolved as namespace "`).concat(f,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),w.forEach(function(_){if(!a.isValidLookup(s)){c=_;var N=[h];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(N,h,_,D,o);else{var $;g&&($=a.pluralResolver.getSuffix(_,o.count,o));var k="".concat(a.options.pluralSeparator,"zero");if(g&&(N.push(h+$),v&&N.push(h+k)),S){var K="".concat(h).concat(a.options.contextSeparator).concat(o.context);N.push(K),g&&(N.push(K+$),v&&N.push(K+k))}}for(var G;G=N.pop();)a.isValidLookup(s)||(l=G,s=a.getResource(_,D,G,o))}}))})}}),{res:s,usedKey:u,exactUsedKey:l,usedLng:c,usedNS:f}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,a,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,a,o,s):this.resourceStore.getResource(i,a,o,s)}}],[{key:"hasDefaultValue",value:function(i){var a="defaultValue";for(var o in i)if(Object.prototype.hasOwnProperty.call(i,o)&&a===o.substring(0,a.length)&&i[o]!==void 0)return!0;return!1}}]),r}(Zo);function Gh(e){return e.charAt(0).toUpperCase()+e.slice(1)}var gN=function(){function e(t){ca(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ji.create("languageUtils")}return fa(e,[{key:"getScriptPartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return null;var n=r.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}},{key:"getLanguagePartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return r;var n=r.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(r){if(typeof r=="string"&&r.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],i=r.split("-");return this.options.lowerCaseLng?i=i.map(function(a){return a.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=Gh(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=Gh(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=Gh(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}},{key:"isSupportedCode",value:function(r){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(r)>-1}},{key:"getBestMatchFromCodes",value:function(r){var n=this;if(!r)return null;var i;return r.forEach(function(a){if(!i){var o=n.formatLanguageCode(a);(!n.options.supportedLngs||n.isSupportedCode(o))&&(i=o)}}),!i&&this.options.supportedLngs&&r.forEach(function(a){if(!i){var o=n.getLanguagePartFromCode(a);if(n.isSupportedCode(o))return i=o;i=n.options.supportedLngs.find(function(s){if(s.indexOf(o)===0)return s})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(r,n){if(!r)return[];if(typeof r=="function"&&(r=r(n)),typeof r=="string"&&(r=[r]),Object.prototype.toString.apply(r)==="[object Array]")return r;if(!n)return r.default||[];var i=r[n];return i||(i=r[this.getScriptPartFromCode(n)]),i||(i=r[this.formatLanguageCode(n)]),i||(i=r[this.getLanguagePartFromCode(n)]),i||(i=r.default),i||[]}},{key:"toResolveHierarchy",value:function(r,n){var i=this,a=this.getFallbackCodes(n||this.options.fallbackLng||[],r),o=[],s=function(l){!l||(i.isSupportedCode(l)?o.push(l):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(l)))};return typeof r=="string"&&r.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(r)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(r)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(r))):typeof r=="string"&&s(this.formatLanguageCode(r)),a.forEach(function(u){o.indexOf(u)<0&&s(i.formatLanguageCode(u))}),o}}]),e}(),yN=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],bN={1:function(t){return Number(t>1)},2:function(t){return Number(t!=1)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(t==1?0:t>=2&&t<=4?1:2)},7:function(t){return Number(t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(t==1?0:t==2?1:t!=8&&t!=11?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(t==1?0:t==2?1:t<7?2:t<11?3:4)},11:function(t){return Number(t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(t!==0)},14:function(t){return Number(t==1?0:t==2?1:t==3?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:t!==0?1:2)},17:function(t){return Number(t==1||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(t==0?0:t==1?1:2)},19:function(t){return Number(t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(t==1?0:t==0||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3)}},wN=["v1","v2","v3"],h2={zero:0,one:1,two:2,few:3,many:4,other:5};function _N(){var e={};return yN.forEach(function(t){t.lngs.forEach(function(r){e[r]={numbers:t.nr,plurals:bN[t.fc]}})}),e}var xN=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ca(this,e),this.languageUtils=t,this.options=r,this.logger=Ji.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl=="undefined"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=_N()}return fa(e,[{key:"addRule",value:function(r,n){this.rules[r]=n}},{key:"getRule",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(r,{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[r]||this.rules[this.languageUtils.getLanguagePartFromCode(r)]}},{key:"needsPlural",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(r,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(r,i).map(function(a){return"".concat(n).concat(a)})}},{key:"getSuffixes",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=this.getRule(r,i);return a?this.shouldUseIntlApi()?a.resolvedOptions().pluralCategories.sort(function(o,s){return h2[o]-h2[s]}).map(function(o){return"".concat(n.options.prepend).concat(o)}):a.numbers.map(function(o){return n.getSuffix(r,o,i)}):[]}},{key:"getSuffix",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=this.getRule(r,i);return a?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(a.select(n)):this.getSuffixRetroCompatible(a,n):(this.logger.warn("no plural rule found for: ".concat(r)),"")}},{key:"getSuffixRetroCompatible",value:function(r,n){var i=this,a=r.noAbs?r.plurals(n):r.plurals(Math.abs(n)),o=r.numbers[a];this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));var s=function(){return i.options.prepend&&o.toString()?i.options.prepend+o.toString():o.toString()};return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?"_plural_".concat(o.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1?s():this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()}},{key:"shouldUseIntlApi",value:function(){return!wN.includes(this.options.compatibilityJSON)}}]),e}();function m2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function di(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?m2(Object(r),!0).forEach(function(n){er(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var EN=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ca(this,e),this.logger=Ji.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(r){return r},this.init(t)}return fa(e,[{key:"init",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r.interpolation||(r.interpolation={escapeValue:!0});var n=r.interpolation;this.escape=n.escape!==void 0?n.escape:lN,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?fu(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?fu(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?fu(n.nestingPrefix):n.nestingPrefixEscaped||fu("$t("),this.nestingSuffix=n.nestingSuffix?fu(n.nestingSuffix):n.nestingSuffixEscaped||fu(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var r="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(r,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(r,n,i,a){var o=this,s,u,l,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function f(g){return g.replace(/\$/g,"$$$$")}var d=function(v){if(v.indexOf(o.formatSeparator)<0){var S=l2(n,c,v);return o.alwaysFormat?o.format(S,void 0,i,di(di(di({},a),n),{},{interpolationkey:v})):S}var w=v.split(o.formatSeparator),D=w.shift().trim(),_=w.join(o.formatSeparator).trim();return o.format(l2(n,c,D),_,i,di(di(di({},a),n),{},{interpolationkey:D}))};this.resetRegExp();var p=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,h=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,b=[{regex:this.regexpUnescape,safeValue:function(v){return f(v)}},{regex:this.regexp,safeValue:function(v){return o.escapeValue?f(o.escape(v)):f(v)}}];return b.forEach(function(g){for(l=0;s=g.regex.exec(r);){var v=s[1].trim();if(u=d(v),u===void 0)if(typeof p=="function"){var S=p(r,s,a);u=typeof S=="string"?S:""}else if(a&&a.hasOwnProperty(v))u="";else if(h){u=s[0];continue}else o.logger.warn("missed to pass in variable ".concat(v," for interpolating ").concat(r)),u="";else typeof u!="string"&&!o.useRawValueToEscape&&(u=s2(u));var w=g.safeValue(u);if(r=r.replace(s[0],w),h?(g.regex.lastIndex+=u.length,g.regex.lastIndex-=s[0].length):g.regex.lastIndex=0,l++,l>=o.maxReplaces)break}}),r}},{key:"nest",value:function(r,n){var i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,u=di({},a);u.applyPostProcessor=!1,delete u.defaultValue;function l(p,h){var b=this.nestingOptionsSeparator;if(p.indexOf(b)<0)return p;var g=p.split(new RegExp("".concat(b,"[ ]*{"))),v="{".concat(g[1]);p=g[0],v=this.interpolate(v,u),v=v.replace(/'/g,'"');try{u=JSON.parse(v),h&&(u=di(di({},h),u))}catch(S){return this.logger.warn("failed parsing options string in nesting for key ".concat(p),S),"".concat(p).concat(b).concat(v)}return delete u.defaultValue,p}for(;o=this.nestingRegexp.exec(r);){var c=[],f=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){var d=o[1].split(this.formatSeparator).map(function(p){return p.trim()});o[1]=d.shift(),c=d,f=!0}if(s=n(l.call(this,o[1].trim(),u),u),s&&o[0]===r&&typeof s!="string")return s;typeof s!="string"&&(s=s2(s)),s||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(r)),s=""),f&&(s=c.reduce(function(p,h){return i.format(p,h,a.lng,di(di({},a),{},{interpolationkey:o[1].trim()}))},s.trim())),r=r.replace(o[0],s),this.regexp.lastIndex=0}return r}}]),e}();function v2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?v2(Object(r),!0).forEach(function(n){er(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function DN(e){var t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){var n=e.split("(");t=n[0].toLowerCase().trim();var i=n[1].substring(0,n[1].length-1);if(t==="currency"&&i.indexOf(":")<0)r.currency||(r.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)r.range||(r.range=i.trim());else{var a=i.split(";");a.forEach(function(o){if(!!o){var s=o.split(":"),u=nN(s),l=u[0],c=u.slice(1),f=c.join(":").trim().replace(/^'+|'+$/g,"");r[l.trim()]||(r[l.trim()]=f),f==="false"&&(r[l.trim()]=!1),f==="true"&&(r[l.trim()]=!0),isNaN(f)||(r[l.trim()]=parseInt(f,10))}})}}return{formatName:t,formatOptions:r}}var SN=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ca(this,e),this.logger=Ji.create("formatter"),this.options=t,this.formats={number:function(n,i,a){return new Intl.NumberFormat(i,a).format(n)},currency:function(n,i,a){return new Intl.NumberFormat(i,bo(bo({},a),{},{style:"currency"})).format(n)},datetime:function(n,i,a){return new Intl.DateTimeFormat(i,bo({},a)).format(n)},relativetime:function(n,i,a){return new Intl.RelativeTimeFormat(i,bo({},a)).format(n,a.range||"day")},list:function(n,i,a){return new Intl.ListFormat(i,bo({},a)).format(n)}},this.init(t)}return fa(e,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=n.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(r,n){this.formats[r.toLowerCase().trim()]=n}},{key:"format",value:function(r,n,i,a){var o=this,s=n.split(this.formatSeparator),u=s.reduce(function(l,c){var f=DN(c),d=f.formatName,p=f.formatOptions;if(o.formats[d]){var h=l;try{var b=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},g=b.locale||b.lng||a.locale||a.lng||i;h=o.formats[d](l,g,bo(bo(bo({},p),a),b))}catch(v){o.logger.warn(v)}return h}else o.logger.warn("there was no format function for ".concat(d));return l},r);return u}}]),e}();function g2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function y2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?g2(Object(r),!0).forEach(function(n){er(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function CN(e){var t=AN();return function(){var n=ra(e),i;if(t){var a=ra(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Kc(this,i)}}function AN(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function NN(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var TN=function(e){Qp(r,e);var t=CN(r);function r(n,i,a){var o,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return ca(this,r),o=t.call(this),eh&&Zo.call(Ho(o)),o.backend=n,o.store=i,o.services=a,o.languageUtils=a.languageUtils,o.options=s,o.logger=Ji.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=s.maxParallelReads||10,o.readingCalls=0,o.maxRetries=s.maxRetries>=0?s.maxRetries:5,o.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(a,s.backend,s),o}return fa(r,[{key:"queueLoad",value:function(i,a,o,s){var u=this,l={},c={},f={},d={};return i.forEach(function(p){var h=!0;a.forEach(function(b){var g="".concat(p,"|").concat(b);!o.reload&&u.store.hasResourceBundle(p,b)?u.state[g]=2:u.state[g]<0||(u.state[g]===1?c[g]===void 0&&(c[g]=!0):(u.state[g]=1,h=!1,c[g]===void 0&&(c[g]=!0),l[g]===void 0&&(l[g]=!0),d[b]===void 0&&(d[b]=!0)))}),h||(f[p]=!0)}),(Object.keys(l).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(l),pending:Object.keys(c),toLoadLanguages:Object.keys(f),toLoadNamespaces:Object.keys(d)}}},{key:"loaded",value:function(i,a,o){var s=i.split("|"),u=s[0],l=s[1];a&&this.emit("failedLoading",u,l,a),o&&this.store.addResourceBundle(u,l,o),this.state[i]=a?-1:2;var c={};this.queue.forEach(function(f){sN(f.loaded,[u],l),NN(f,i),a&&f.errors.push(a),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(function(d){c[d]||(c[d]={});var p=f.loaded[d];p.length&&p.forEach(function(h){c[d][h]===void 0&&(c[d][h]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(function(f){return!f.done})}},{key:"read",value:function(i,a,o){var s=this,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,c=arguments.length>5?arguments[5]:void 0;if(!i.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:a,fcName:o,tried:u,wait:l,callback:c});return}return this.readingCalls++,this.backend[o](i,a,function(f,d){if(s.readingCalls--,s.waitingReads.length>0){var p=s.waitingReads.shift();s.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(f&&d&&u<s.maxRetries){setTimeout(function(){s.read.call(s,i,a,o,u+1,l*2,c)},l);return}c(f,d)})}},{key:"prepareLoading",value:function(i,a){var o=this,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof a=="string"&&(a=[a]);var l=this.queueLoad(i,a,s,u);if(!l.toLoad.length)return l.pending.length||u(),null;l.toLoad.forEach(function(c){o.loadOne(c)})}},{key:"load",value:function(i,a,o){this.prepareLoading(i,a,{},o)}},{key:"reload",value:function(i,a,o){this.prepareLoading(i,a,{reload:!0},o)}},{key:"loadOne",value:function(i){var a=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=i.split("|"),u=s[0],l=s[1];this.read(u,l,"read",void 0,void 0,function(c,f){c&&a.logger.warn("".concat(o,"loading namespace ").concat(l," for language ").concat(u," failed"),c),!c&&f&&a.logger.log("".concat(o,"loaded namespace ").concat(l," for language ").concat(u),f),a.loaded(i,c,f)})}},{key:"saveMissing",value:function(i,a,o,s,u){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(a)){this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(a,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}o==null||o===""||(this.backend&&this.backend.create&&this.backend.create(i,a,o,s,null,y2(y2({},l),{},{isUpdate:u})),!(!i||!i[0])&&this.store.addResource(i[0],a,o,s))}}]),r}(Zo);function kN(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var r={};if(qo(t[1])==="object"&&(r=t[1]),typeof t[1]=="string"&&(r.defaultValue=t[1]),typeof t[2]=="string"&&(r.tDescription=t[2]),qo(t[2])==="object"||qo(t[3])==="object"){var n=t[3]||t[2];Object.keys(n).forEach(function(i){r[i]=n[i]})}return r},interpolation:{escapeValue:!0,format:function(t,r,n,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function b2(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function w2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ri(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?w2(Object(r),!0).forEach(function(n){er(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ON(e){var t=FN();return function(){var n=ra(e),i;if(t){var a=ra(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Kc(this,i)}}function FN(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function wf(){}function $N(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(r){typeof e[r]=="function"&&(e[r]=e[r].bind(e))})}var Ud=function(e){Qp(r,e);var t=ON(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(ca(this,r),n=t.call(this),eh&&Zo.call(Ho(n)),n.options=b2(i),n.services={},n.logger=Ji,n.modules={external:[]},$N(Ho(n)),a&&!n.isInitialized&&!i.isClone){if(!n.options.initImmediate)return n.init(i,a),Kc(n,Ho(n));setTimeout(function(){n.init(i,a)},0)}return n}return fa(r,[{key:"init",value:function(){var i=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;typeof a=="function"&&(o=a,a={}),!a.defaultNS&&a.ns&&(typeof a.ns=="string"?a.defaultNS=a.ns:a.ns.indexOf("translation")<0&&(a.defaultNS=a.ns[0]));var s=kN();this.options=Ri(Ri(Ri({},s),this.options),b2(a)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Ri(Ri({},s.interpolation),this.options.interpolation)),a.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=a.keySeparator),a.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=a.nsSeparator);function u(v){return v?typeof v=="function"?new v:v:null}if(!this.options.isClone){this.modules.logger?Ji.init(u(this.modules.logger),this.options):Ji.init(null,this.options);var l;this.modules.formatter?l=this.modules.formatter:typeof Intl!="undefined"&&(l=SN);var c=new gN(this.options);this.store=new hN(this.options.resources,this.options);var f=this.services;f.logger=Ji,f.resourceStore=this.store,f.languageUtils=c,f.pluralResolver=new xN(c,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),l&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(f.formatter=u(l),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new EN(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new TN(u(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(v){for(var S=arguments.length,w=new Array(S>1?S-1:0),D=1;D<S;D++)w[D-1]=arguments[D];i.emit.apply(i,[v].concat(w))}),this.modules.languageDetector&&(f.languageDetector=u(this.modules.languageDetector),f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=u(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new p2(this.services,this.options),this.translator.on("*",function(v){for(var S=arguments.length,w=new Array(S>1?S-1:0),D=1;D<S;D++)w[D-1]=arguments[D];i.emit.apply(i,[v].concat(w))}),this.modules.external.forEach(function(v){v.init&&v.init(i)})}if(this.format=this.options.interpolation.format,o||(o=wf),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var p=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];p.forEach(function(v){i[v]=function(){var S;return(S=i.store)[v].apply(S,arguments)}});var h=["addResource","addResources","addResourceBundle","removeResourceBundle"];h.forEach(function(v){i[v]=function(){var S;return(S=i.store)[v].apply(S,arguments),i}});var b=Pl(),g=function(){var S=function(D,_){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),b.resolve(_),o(D,_)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return S(null,i.t.bind(i));i.changeLanguage(i.options.lng,S)};return this.options.resources||!this.options.initImmediate?g():setTimeout(g,0),b}},{key:"loadResources",value:function(i){var a=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:wf,s=o,u=typeof i=="string"?i:this.language;if(typeof i=="function"&&(s=i),!this.options.resources||this.options.partialBundledLanguages){if(u&&u.toLowerCase()==="cimode")return s();var l=[],c=function(p){if(!!p){var h=a.services.languageUtils.toResolveHierarchy(p);h.forEach(function(b){l.indexOf(b)<0&&l.push(b)})}};if(u)c(u);else{var f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.forEach(function(d){return c(d)})}this.options.preload&&this.options.preload.forEach(function(d){return c(d)}),this.services.backendConnector.load(l,this.options.ns,function(d){!d&&!a.resolvedLanguage&&a.language&&a.setResolvedLanguage(a.language),s(d)})}else s(null)}},{key:"reloadResources",value:function(i,a,o){var s=Pl();return i||(i=this.languages),a||(a=this.options.ns),o||(o=wf),this.services.backendConnector.reload(i,a,function(u){s.resolve(),o(u)}),s}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&$5.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var a=0;a<this.languages.length;a++){var o=this.languages[a];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}},{key:"changeLanguage",value:function(i,a){var o=this;this.isLanguageChangingTo=i;var s=Pl();this.emit("languageChanging",i);var u=function(d){o.language=d,o.languages=o.services.languageUtils.toResolveHierarchy(d),o.resolvedLanguage=void 0,o.setResolvedLanguage(d)},l=function(d,p){p?(u(p),o.translator.changeLanguage(p),o.isLanguageChangingTo=void 0,o.emit("languageChanged",p),o.logger.log("languageChanged",p)):o.isLanguageChangingTo=void 0,s.resolve(function(){return o.t.apply(o,arguments)}),a&&a(d,function(){return o.t.apply(o,arguments)})},c=function(d){!i&&!d&&o.services.languageDetector&&(d=[]);var p=typeof d=="string"?d:o.services.languageUtils.getBestMatchFromCodes(d);p&&(o.language||u(p),o.translator.language||o.translator.changeLanguage(p),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(p)),o.loadResources(p,function(h){l(h,p)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(c):c(i),s}},{key:"getFixedT",value:function(i,a,o){var s=this,u=function l(c,f){var d;if(qo(f)!=="object"){for(var p=arguments.length,h=new Array(p>2?p-2:0),b=2;b<p;b++)h[b-2]=arguments[b];d=s.options.overloadTranslationOptionHandler([c,f].concat(h))}else d=Ri({},f);d.lng=d.lng||l.lng,d.lngs=d.lngs||l.lngs,d.ns=d.ns||l.ns,d.keyPrefix=d.keyPrefix||o||l.keyPrefix;var g=s.options.keySeparator||".",v=d.keyPrefix?"".concat(d.keyPrefix).concat(g).concat(c):c;return s.t(v,d)};return typeof i=="string"?u.lng=i:u.lngs=i,u.ns=a,u.keyPrefix=o,u}},{key:"t",value:function(){var i;return this.translator&&(i=this.translator).translate.apply(i,arguments)}},{key:"exists",value:function(){var i;return this.translator&&(i=this.translator).exists.apply(i,arguments)}},{key:"setDefaultNamespace",value:function(i){this.options.defaultNS=i}},{key:"hasLoadedNamespace",value:function(i){var a=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,l=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var c=function(p,h){var b=a.services.backendConnector.state["".concat(p,"|").concat(h)];return b===-1||b===2};if(o.precheck){var f=o.precheck(this,c);if(f!==void 0)return f}return!!(this.hasResourceBundle(s,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(s,i)&&(!u||c(l,i)))}},{key:"loadNamespaces",value:function(i,a){var o=this,s=Pl();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(u){o.options.ns.indexOf(u)<0&&o.options.ns.push(u)}),this.loadResources(function(u){s.resolve(),a&&a(u)}),s):(a&&a(),Promise.resolve())}},{key:"loadLanguages",value:function(i,a){var o=Pl();typeof i=="string"&&(i=[i]);var s=this.options.preload||[],u=i.filter(function(l){return s.indexOf(l)<0});return u.length?(this.options.preload=s.concat(u),this.loadResources(function(l){o.resolve(),a&&a(l)}),o):(a&&a(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var a=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"];return a.indexOf(this.services.languageUtils.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:wf,s=Ri(Ri(Ri({},this.options),a),{isClone:!0}),u=new r(s),l=["store","services","language"];return l.forEach(function(c){u[c]=i[c]}),u.services=Ri({},this.services),u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u.translator=new p2(u.services,u.options),u.translator.on("*",function(c){for(var f=arguments.length,d=new Array(f>1?f-1:0),p=1;p<f;p++)d[p-1]=arguments[p];u.emit.apply(u,[c].concat(d))}),u.init(s,o),u.translator.options=u.options,u.translator.backendConnector.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),r}(Zo);er(Ud,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Ud(e,t)});var lr=Ud.createInstance();lr.createInstance=Ud.createInstance;lr.createInstance;lr.init;lr.loadResources;lr.reloadResources;lr.use;lr.changeLanguage;lr.getFixedT;lr.t;lr.exists;lr.setDefaultNamespace;lr.hasLoadedNamespace;lr.loadNamespaces;lr.loadLanguages;function B5(){throw new Error("setTimeout has not been defined")}function P5(){throw new Error("clearTimeout has not been defined")}var So=B5,Co=P5;typeof Yt.setTimeout=="function"&&(So=setTimeout);typeof Yt.clearTimeout=="function"&&(Co=clearTimeout);function I5(e){if(So===setTimeout)return setTimeout(e,0);if((So===B5||!So)&&setTimeout)return So=setTimeout,setTimeout(e,0);try{return So(e,0)}catch{try{return So.call(null,e,0)}catch{return So.call(this,e,0)}}}function BN(e){if(Co===clearTimeout)return clearTimeout(e);if((Co===P5||!Co)&&clearTimeout)return Co=clearTimeout,clearTimeout(e);try{return Co(e)}catch{try{return Co.call(null,e)}catch{return Co.call(this,e)}}}var za=[],Pu=!1,Ns,vd=-1;function PN(){!Pu||!Ns||(Pu=!1,Ns.length?za=Ns.concat(za):vd=-1,za.length&&M5())}function M5(){if(!Pu){var e=I5(PN);Pu=!0;for(var t=za.length;t;){for(Ns=za,za=[];++vd<t;)Ns&&Ns[vd].run();vd=-1,t=za.length}Ns=null,Pu=!1,BN(e)}}function IN(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];za.push(new R5(e,t)),za.length===1&&!Pu&&I5(M5)}function R5(e,t){this.fun=e,this.array=t}R5.prototype.run=function(){this.fun.apply(null,this.array)};var MN="browser",RN="browser",LN=!0,jN={},UN=[],zN="",qN={},HN={},VN={};function Ys(){}var KN=Ys,GN=Ys,WN=Ys,YN=Ys,ZN=Ys,JN=Ys,XN=Ys;function QN(e){throw new Error("process.binding is not supported")}function eT(){return"/"}function tT(e){throw new Error("process.chdir is not supported")}function rT(){return 0}var Eu=Yt.performance||{},nT=Eu.now||Eu.mozNow||Eu.msNow||Eu.oNow||Eu.webkitNow||function(){return new Date().getTime()};function iT(e){var t=nT.call(Eu)*.001,r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r=r-e[0],n=n-e[1],n<0&&(r--,n+=1e9)),[r,n]}var aT=new Date;function oT(){var e=new Date,t=e-aT;return t/1e3}var Vo={nextTick:IN,title:MN,browser:LN,env:jN,argv:UN,version:zN,versions:qN,on:KN,addListener:GN,once:WN,off:YN,removeListener:ZN,removeAllListeners:JN,emit:XN,binding:QN,cwd:eT,chdir:tT,umask:rT,hrtime:iT,platform:RN,release:HN,config:VN,uptime:oT};function sT(){return typeof __SENTRY_BROWSER_BUNDLE__!="undefined"&&!!__SENTRY_BROWSER_BUNDLE__}function Cv(){return!sT()&&Object.prototype.toString.call(typeof Vo!="undefined"?Vo:0)==="[object process]"}function uT(e,t){return e.require(t)}var lT={};function cn(){return Cv()?Yt:typeof window!="undefined"?window:typeof self!="undefined"?self:lT}function Av(e,t,r){var n=r||cn(),i=n.__SENTRY__=n.__SENTRY__||{},a=i[e]||(i[e]=t());return a}var L5=Object.prototype.toString;function j5(e){switch(L5.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return pl(e,Error)}}function Gc(e,t){return L5.call(e)===`[object ${t}]`}function cT(e){return Gc(e,"ErrorEvent")}function _2(e){return Gc(e,"DOMError")}function fT(e){return Gc(e,"DOMException")}function y1(e){return Gc(e,"String")}function dT(e){return e===null||typeof e!="object"&&typeof e!="function"}function Wu(e){return Gc(e,"Object")}function Nv(e){return typeof Event!="undefined"&&pl(e,Event)}function pT(e){return typeof Element!="undefined"&&pl(e,Element)}function Tv(e){return Boolean(e&&e.then&&typeof e.then=="function")}function hT(e){return Wu(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function mT(e){return typeof e=="number"&&e!==e}function pl(e,t){try{return e instanceof t}catch{return!1}}function b1(e,t){try{let s=e;var r=5,n=80,i=[];let u=0,l=0;var a=" > ",o=a.length;let c;for(;s&&u++<r&&(c=vT(s,t),!(c==="html"||u>1&&l+i.length*o+c.length>=n));)i.push(c),l+=c.length,s=s.parentNode;return i.reverse().join(a)}catch{return"<unknown>"}}function vT(e,t){var r=e,n=[];let i,a,o,s,u;if(!r||!r.tagName)return"";n.push(r.tagName.toLowerCase());var l=t&&t.length?t.filter(f=>r.getAttribute(f)).map(f=>[f,r.getAttribute(f)]):null;if(l&&l.length)l.forEach(f=>{n.push(`[${f[0]}="${f[1]}"]`)});else if(r.id&&n.push(`#${r.id}`),i=r.className,i&&y1(i))for(a=i.split(/\s+/),u=0;u<a.length;u++)n.push(`.${a[u]}`);var c=["type","name","title","alt"];for(u=0;u<c.length;u++)o=c[u],s=r.getAttribute(o),s&&n.push(`[${o}="${s}"]`);return n.join("")}class wn extends Error{constructor(t){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype)}}var gT=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function yT(e){return e==="http"||e==="https"}function kv(e,t=!1){const{host:r,path:n,pass:i,port:a,projectId:o,protocol:s,publicKey:u}=e;return`${s}://${u}${t&&i?`:${i}`:""}@${r}${a?`:${a}`:""}/${n&&`${n}/`}${o}`}function bT(e){var t=gT.exec(e);if(!t)throw new wn(`Invalid Sentry Dsn: ${e}`);const[r,n,i="",a,o="",s]=t.slice(1);let u="",l=s;var c=l.split("/");if(c.length>1&&(u=c.slice(0,-1).join("/"),l=c.pop()),l){var f=l.match(/^\d+/);f&&(l=f[0])}return U5({host:a,pass:i,path:u,projectId:l,port:o,protocol:r,publicKey:n})}function U5(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function wT(e){if(!(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__))return;const{port:t,projectId:r,protocol:n}=e;var i=["protocol","publicKey","host","projectId"];if(i.forEach(a=>{if(!e[a])throw new wn(`Invalid Sentry Dsn: ${a} missing`)}),!r.match(/^\d+$/))throw new wn(`Invalid Sentry Dsn: Invalid projectId ${r}`);if(!yT(n))throw new wn(`Invalid Sentry Dsn: Invalid protocol ${n}`);if(t&&isNaN(parseInt(t,10)))throw new wn(`Invalid Sentry Dsn: Invalid port ${t}`);return!0}function _T(e){var t=typeof e=="string"?bT(e):U5(e);return wT(t),t}var xT=cn(),ET="Sentry Logger ",zd=["debug","info","warn","error","log","assert","trace"];function z5(e){var t=cn();if(!("console"in t))return e();var r=t.console,n={};zd.forEach(i=>{var a=r[i]&&r[i].__sentry_original__;i in t.console&&a&&(n[i]=r[i],r[i]=a)});try{return e()}finally{Object.keys(n).forEach(i=>{r[i]=n[i]})}}function x2(){let e=!1;var t={enable:()=>{e=!0},disable:()=>{e=!1}};return typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__?zd.forEach(r=>{t[r]=(...n)=>{e&&z5(()=>{xT.console[r](`${ET}[${r}]:`,...n)})}}):zd.forEach(r=>{t[r]=()=>{}}),t}let Xt;typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__?Xt=Av("logger",x2):Xt=x2();function oc(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.substr(0,t)}...`}function E2(e,t){if(!Array.isArray(e))return"";var r=[];for(let i=0;i<e.length;i++){var n=e[i];try{r.push(String(n))}catch{r.push("[value cannot be serialized]")}}return r.join(t)}function Wa(e,t,r){if(t in e){var n=e[t],i=r(n);if(typeof i=="function")try{DT(i,n)}catch{}e[t]=i}}function q5(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}function DT(e,t){var r=t.prototype||{};e.prototype=t.prototype=r,q5(e,"__sentry_original__",t)}function ST(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function H5(e){if(j5(e))return{message:e.message,name:e.name,stack:e.stack,...S2(e)};if(Nv(e)){var t={type:e.type,target:D2(e.target),currentTarget:D2(e.currentTarget),...S2(e)};return typeof CustomEvent!="undefined"&&pl(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function D2(e){try{return pT(e)?b1(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function S2(e){if(typeof e=="object"&&e!==null){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}else return{}}function CT(e,t=40){var r=Object.keys(H5(e));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=t)return oc(r[0],t);for(let i=r.length;i>0;i--){var n=r.slice(0,i).join(", ");if(!(n.length>t))return i===r.length?n:oc(n,t)}return""}function Ov(e){var t=new Map;return w1(e,t)}function w1(e,t){if(Wu(e)){var r=t.get(e);if(r!==void 0)return r;var n={};t.set(e,n);for(var i of Object.keys(e))typeof e[i]!="undefined"&&(n[i]=w1(e[i],t));return n}if(Array.isArray(e)){var r=t.get(e);if(r!==void 0)return r;var n=[];return t.set(e,n),e.forEach(s=>{n.push(w1(s,t))}),n}return e}var Wh="<anonymous>";function V5(e){try{return!e||typeof e!="function"?Wh:e.name||Wh}catch{return Wh}}function K5(){if(!("fetch"in cn()))return!1;try{return new Headers,new Request(""),new Response,!0}catch{return!1}}function _1(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function AT(){if(!K5())return!1;var e=cn();if(_1(e.fetch))return!0;let t=!1;var r=e.document;if(r&&typeof r.createElement=="function")try{var n=r.createElement("iframe");n.hidden=!0,r.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=_1(n.contentWindow.fetch)),r.head.removeChild(n)}catch(i){(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&Xt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",i)}return t}function NT(){var e=cn(),t=e.chrome,r=t&&t.app&&t.app.runtime,n="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!r&&n}var rr=cn(),sc={},C2={};function TT(e){if(!C2[e])switch(C2[e]=!0,e){case"console":kT();break;case"dom":LT();break;case"xhr":BT();break;case"fetch":OT();break;case"history":PT();break;case"error":jT();break;case"unhandledrejection":UT();break;default:(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&Xt.warn("unknown instrumentation type:",e);return}}function Il(e,t){sc[e]=sc[e]||[],sc[e].push(t),TT(e)}function Ei(e,t){if(!(!e||!sc[e]))for(var r of sc[e]||[])try{r(t)}catch(n){(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&Xt.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${V5(r)}
Error:`,n)}}function kT(){"console"in rr&&zd.forEach(function(e){e in rr.console&&Wa(rr.console,e,function(t){return function(...r){Ei("console",{args:r,level:e}),t&&t.apply(rr.console,r)}})})}function OT(){!AT()||Wa(rr,"fetch",function(e){return function(...t){var r={args:t,fetchData:{method:FT(t),url:$T(t)},startTimestamp:Date.now()};return Ei("fetch",{...r}),e.apply(rr,t).then(n=>(Ei("fetch",{...r,endTimestamp:Date.now(),response:n}),n),n=>{throw Ei("fetch",{...r,endTimestamp:Date.now(),error:n}),n})}})}function FT(e=[]){return"Request"in rr&&pl(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function $T(e=[]){return typeof e[0]=="string"?e[0]:"Request"in rr&&pl(e[0],Request)?e[0].url:String(e[0])}function BT(){if("XMLHttpRequest"in rr){var e=XMLHttpRequest.prototype;Wa(e,"open",function(t){return function(...r){var n=this,i=r[1],a=n.__sentry_xhr__={method:y1(r[0])?r[0].toUpperCase():r[0],url:r[1]};y1(i)&&a.method==="POST"&&i.match(/sentry_key/)&&(n.__sentry_own_request__=!0);var o=function(){if(n.readyState===4){try{a.status_code=n.status}catch{}Ei("xhr",{args:r,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:n})}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?Wa(n,"onreadystatechange",function(s){return function(...u){return o(),s.apply(n,u)}}):n.addEventListener("readystatechange",o),t.apply(n,r)}}),Wa(e,"send",function(t){return function(...r){return this.__sentry_xhr__&&r[0]!==void 0&&(this.__sentry_xhr__.body=r[0]),Ei("xhr",{args:r,startTimestamp:Date.now(),xhr:this}),t.apply(this,r)}})}}let _f;function PT(){if(!NT())return;var e=rr.onpopstate;rr.onpopstate=function(...r){var n=rr.location.href,i=_f;if(_f=n,Ei("history",{from:i,to:n}),e)try{return e.apply(this,r)}catch{}};function t(r){return function(...n){var i=n.length>2?n[2]:void 0;if(i){var a=_f,o=String(i);_f=o,Ei("history",{from:a,to:o})}return r.apply(this,n)}}Wa(rr.history,"pushState",t),Wa(rr.history,"replaceState",t)}var IT=1e3;let xf,Ef;function MT(e,t){if(!e||e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch{}return!1}function RT(e){if(e.type!=="keypress")return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)return!1}catch{}return!0}function A2(e,t=!1){return r=>{if(!(!r||Ef===r)&&!RT(r)){var n=r.type==="keypress"?"input":r.type;xf===void 0?(e({event:r,name:n,global:t}),Ef=r):MT(Ef,r)&&(e({event:r,name:n,global:t}),Ef=r),clearTimeout(xf),xf=rr.setTimeout(()=>{xf=void 0},IT)}}}function LT(){if("document"in rr){var e=Ei.bind(null,"dom"),t=A2(e,!0);rr.document.addEventListener("click",t,!1),rr.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(r=>{var n=rr[r]&&rr[r].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Wa(n,"addEventListener",function(i){return function(a,o,s){if(a==="click"||a=="keypress")try{var u=this,l=u.__sentry_instrumentation_handlers__=u.__sentry_instrumentation_handlers__||{},c=l[a]=l[a]||{refCount:0};if(!c.handler){var f=A2(e);c.handler=f,i.call(this,a,f,s)}c.refCount+=1}catch{}return i.call(this,a,o,s)}}),Wa(n,"removeEventListener",function(i){return function(a,o,s){if(a==="click"||a=="keypress")try{var u=this,l=u.__sentry_instrumentation_handlers__||{},c=l[a];c&&(c.refCount-=1,c.refCount<=0&&(i.call(this,a,c.handler,s),c.handler=void 0,delete l[a]),Object.keys(l).length===0&&delete u.__sentry_instrumentation_handlers__)}catch{}return i.call(this,a,o,s)}}))})}}let Yh=null;function jT(){Yh=rr.onerror,rr.onerror=function(e,t,r,n,i){return Ei("error",{column:n,error:i,line:r,msg:e,url:t}),Yh?Yh.apply(this,arguments):!1}}let Zh=null;function UT(){Zh=rr.onunhandledrejection,rr.onunhandledrejection=function(e){return Ei("unhandledrejection",e),Zh?Zh.apply(this,arguments):!0}}function zT(){var e=typeof WeakSet=="function",t=e?new WeakSet:[];function r(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let o=0;o<t.length;o++){var a=t[o];if(a===i)return!0}return t.push(i),!1}function n(i){if(e)t.delete(i);else for(let a=0;a<t.length;a++)if(t[a]===i){t.splice(a,1);break}}return[r,n]}function Iu(){var e=cn(),t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");var r=t&&t.getRandomValues?()=>t.getRandomValues(new Uint8Array(1))[0]:()=>Math.random()*16;return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,n=>(n^(r()&15)>>n/4).toString(16))}function G5(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function qT(e){const{message:t,event_id:r}=e;if(t)return t;var n=G5(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function N2(e,t,r){var n=e.exception=e.exception||{},i=n.values=n.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type=r||"Error")}function x1(e,t){var r=G5(e);if(!!r){var n={type:"generic",handled:!0},i=r.mechanism;if(r.mechanism={...n,...i,...t},t&&"data"in t){var a={...i&&i.data,...t.data};r.mechanism.data=a}}}function T2(e){if(e&&e.__sentry_captured__)return!0;try{q5(e,"__sentry_captured__",!0)}catch{}return!1}function _s(e,t=1/0,r=1/0){try{return E1("",e,t,r)}catch(n){return{ERROR:`**non-serializable** (${n})`}}}function W5(e,t=3,r=100*1024){var n=_s(e,t);return KT(n)>r?W5(e,t-1,r):n}function E1(e,t,r=1/0,n=1/0,i=zT()){const[a,o]=i;if(t===null||["number","boolean","string"].includes(typeof t)&&!mT(t))return t;var s=HT(e,t);if(!s.startsWith("[object "))return s;if(t.__sentry_skip_normalization__)return t;if(r===0)return s.replace("object ","");if(a(t))return"[Circular ~]";var u=t;if(u&&typeof u.toJSON=="function")try{var l=u.toJSON();return E1("",l,r-1,n,i)}catch{}var c=Array.isArray(t)?[]:{};let f=0;var d=H5(t);for(var p in d)if(!!Object.prototype.hasOwnProperty.call(d,p)){if(f>=n){c[p]="[MaxProperties ~]";break}var h=d[p];c[p]=E1(p,h,r-1,n,i),f+=1}return o(t),c}function HT(e,t){try{return e==="domain"&&t&&typeof t=="object"&&t._events?"[Domain]":e==="domainEmitter"?"[DomainEmitter]":typeof Yt!="undefined"&&t===Yt?"[Global]":typeof window!="undefined"&&t===window?"[Window]":typeof document!="undefined"&&t===document?"[Document]":hT(t)?"[SyntheticEvent]":typeof t=="number"&&t!==t?"[NaN]":t===void 0?"[undefined]":typeof t=="function"?`[Function: ${V5(t)}]`:typeof t=="symbol"?`[${String(t)}]`:typeof t=="bigint"?`[BigInt: ${String(t)}]`:`[object ${Object.getPrototypeOf(t).constructor.name}]`}catch(r){return`**non-serializable** (${r})`}}function VT(e){return~-encodeURI(e).split(/%..|./).length}function KT(e){return VT(JSON.stringify(e))}var $a;(function(e){var t=0;e[e.PENDING=t]="PENDING";var r=1;e[e.RESOLVED=r]="RESOLVED";var n=2;e[e.REJECTED=n]="REJECTED"})($a||($a={}));function qd(e){return new $n(t=>{t(e)})}function k2(e){return new $n((t,r)=>{r(e)})}class $n{__init(){this._state=$a.PENDING}__init2(){this._handlers=[]}constructor(t){$n.prototype.__init.call(this),$n.prototype.__init2.call(this),$n.prototype.__init3.call(this),$n.prototype.__init4.call(this),$n.prototype.__init5.call(this),$n.prototype.__init6.call(this);try{t(this._resolve,this._reject)}catch(r){this._reject(r)}}then(t,r){return new $n((n,i)=>{this._handlers.push([!1,a=>{if(!t)n(a);else try{n(t(a))}catch(o){i(o)}},a=>{if(!r)i(a);else try{n(r(a))}catch(o){i(o)}}]),this._executeHandlers()})}catch(t){return this.then(r=>r,t)}finally(t){return new $n((r,n)=>{let i,a;return this.then(o=>{a=!1,i=o,t&&t()},o=>{a=!0,i=o,t&&t()}).then(()=>{if(a){n(i);return}r(i)})})}__init3(){this._resolve=t=>{this._setResult($a.RESOLVED,t)}}__init4(){this._reject=t=>{this._setResult($a.REJECTED,t)}}__init5(){this._setResult=(t,r)=>{if(this._state===$a.PENDING){if(Tv(r)){r.then(this._resolve,this._reject);return}this._state=t,this._value=r,this._executeHandlers()}}}__init6(){this._executeHandlers=()=>{if(this._state!==$a.PENDING){var t=this._handlers.slice();this._handlers=[],t.forEach(r=>{r[0]||(this._state===$a.RESOLVED&&r[1](this._value),this._state===$a.REJECTED&&r[2](this._value),r[0]=!0)})}}}}function Jh(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+r+n}}var GT=["fatal","error","warning","log","info","debug"];function WT(e){return e==="warn"?"warning":GT.includes(e)?e:"log"}var D1={nowSeconds:()=>Date.now()/1e3};function YT(){const{performance:e}=cn();if(!(!e||!e.now)){var t=Date.now()-e.now();return{now:()=>e.now(),timeOrigin:t}}}function ZT(){try{var e=uT(module,"perf_hooks");return e.performance}catch{return}}var Xh=Cv()?ZT():YT(),O2=Xh===void 0?D1:{nowSeconds:()=>(Xh.timeOrigin+Xh.now())/1e3},th=D1.nowSeconds.bind(D1),Y5=O2.nowSeconds.bind(O2);(()=>{const{performance:e}=cn();if(!(!e||!e.now)){var t=3600*1e3,r=e.now(),n=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+r-n):t,a=i<t,o=e.timing&&e.timing.navigationStart,s=typeof o=="number",u=s?Math.abs(o+r-n):t,l=u<t;return a||l?i<=u?e.timeOrigin:o:n}})();function Fv(e,t=[]){return[e,t]}function JT(e,t){const[r,n]=e;return[r,[...n,t]]}function S1(e,t){var r=t||new TextEncoder;return r.encode(e)}function XT(e,t){const[r,n]=e;let i=JSON.stringify(r);function a(s){typeof i=="string"?i=typeof s=="string"?i+s:[S1(i,t),s]:i.push(typeof s=="string"?S1(s,t):s)}for(var o of n){const[s,u]=o;a(`
${JSON.stringify(s)}
`),a(typeof u=="string"||u instanceof Uint8Array?u:JSON.stringify(u))}return typeof i=="string"?i:QT(i)}function QT(e){var t=e.reduce((a,o)=>a+o.length,0),r=new Uint8Array(t);let n=0;for(var i of e)r.set(i,n),n+=i.length;return r}function ek(e,t){var r=typeof e.data=="string"?S1(e.data,t):e.data;return[Ov({type:"attachment",length:r.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),r]}function tk(e,t,r){var n=[{type:"client_report"},{timestamp:r||th(),discarded_events:e}];return Fv(t?{dsn:t}:{},[n])}function rk(e){return e[0]}function nk(e){var t=Y5(),r={sid:Iu(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>ak(r)};return e&&Yu(r,e),r}function Yu(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Y5(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Iu()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{var r=e.timestamp-e.started;e.duration=r>=0?r:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function ik(e,t){let r={};t?r={status:t}:e.status==="ok"&&(r={status:"exited"}),Yu(e,r)}function ak(e){return Ov({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}var F2=100;class Ko{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(t){var r=new Ko;return t&&(r._breadcrumbs=[...t._breadcrumbs],r._tags={...t._tags},r._extra={...t._extra},r._contexts={...t._contexts},r._user=t._user,r._level=t._level,r._span=t._span,r._session=t._session,r._transactionName=t._transactionName,r._fingerprint=t._fingerprint,r._eventProcessors=[...t._eventProcessors],r._requestSession=t._requestSession,r._attachments=[...t._attachments]),r}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{},this._session&&Yu(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,r){return this._tags={...this._tags,[t]:r},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,r){return this._extra={...this._extra,[t]:r},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,r){return r===null?delete this._contexts[t]:this._contexts={...this._contexts,[t]:r},this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){var t=this.getSpan();return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if(typeof t=="function"){var r=t(this);return r instanceof Ko?r:this}return t instanceof Ko?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):Wu(t)&&(t=t,this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(t,r){var n=typeof r=="number"?Math.min(r,F2):F2;if(n<=0)return this;var i={timestamp:th(),...t};return this._breadcrumbs=[...this._breadcrumbs,i].slice(-n),this._notifyScopeListeners(),this}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(t,r={}){if(this._extra&&Object.keys(this._extra).length&&(t.extra={...this._extra,...t.extra}),this._tags&&Object.keys(this._tags).length&&(t.tags={...this._tags,...t.tags}),this._user&&Object.keys(this._user).length&&(t.user={...this._user,...t.user}),this._contexts&&Object.keys(this._contexts).length&&(t.contexts={...this._contexts,...t.contexts}),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts={trace:this._span.getTraceContext(),...t.contexts};var n=this._span.transaction&&this._span.transaction.name;n&&(t.tags={transaction:n,...t.tags})}return this._applyFingerprint(t),t.breadcrumbs=[...t.breadcrumbs||[],...this._breadcrumbs],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...Z5(),...this._eventProcessors],t,r)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}_notifyEventProcessors(t,r,n,i=0){return new $n((a,o)=>{var s=t[i];if(r===null||typeof s!="function")a(r);else{var u=s({...r},n);(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&s.id&&u===null&&Xt.log(`Event processor "${s.id}" dropped event`),Tv(u)?u.then(l=>this._notifyEventProcessors(t,l,n,i+1).then(a)).then(null,o):this._notifyEventProcessors(t,u,n,i+1).then(a).then(null,o)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}_applyFingerprint(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function Z5(){return Av("globalEventProcessors",()=>[])}function ok(e){Z5().push(e)}var $v=4,sk=100;class Wc{__init(){this._stack=[{}]}constructor(t,r=new Ko,n=$v){this._version=n,Wc.prototype.__init.call(this),this.getStackTop().scope=r,t&&this.bindClient(t)}isOlderThan(t){return this._version<t}bindClient(t){var r=this.getStackTop();r.client=t,t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){var t=Ko.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){var r=this.pushScope();try{t(r)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,r){var n=this._lastEventId=r&&r.event_id?r.event_id:Iu(),i=new Error("Sentry syntheticException");return this._withClient((a,o)=>{a.captureException(t,{originalException:t,syntheticException:i,...r,event_id:n},o)}),n}captureMessage(t,r,n){var i=this._lastEventId=n&&n.event_id?n.event_id:Iu(),a=new Error(t);return this._withClient((o,s)=>{o.captureMessage(t,r,{originalException:t,syntheticException:a,...n,event_id:i},s)}),i}captureEvent(t,r){var n=r&&r.event_id?r.event_id:Iu();return t.type!=="transaction"&&(this._lastEventId=n),this._withClient((i,a)=>{i.captureEvent(t,{...r,event_id:n},a)}),n}lastEventId(){return this._lastEventId}addBreadcrumb(t,r){const{scope:n,client:i}=this.getStackTop();if(!n||!i)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:o=sk}=i.getOptions&&i.getOptions()||{};if(!(o<=0)){var s=th(),u={timestamp:s,...t},l=a?z5(()=>a(u,r)):u;l!==null&&n.addBreadcrumb(l,o)}}setUser(t){var r=this.getScope();r&&r.setUser(t)}setTags(t){var r=this.getScope();r&&r.setTags(t)}setExtras(t){var r=this.getScope();r&&r.setExtras(t)}setTag(t,r){var n=this.getScope();n&&n.setTag(t,r)}setExtra(t,r){var n=this.getScope();n&&n.setExtra(t,r)}setContext(t,r){var n=this.getScope();n&&n.setContext(t,r)}configureScope(t){const{scope:r,client:n}=this.getStackTop();r&&n&&t(r)}run(t){var r=$2(this);try{t(this)}finally{$2(r)}}getIntegration(t){var r=this.getClient();if(!r)return null;try{return r.getIntegration(t)}catch{return(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&Xt.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,r){return this._callExtensionMethod("startTransaction",t,r)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){var t=this.getStackTop(),r=t&&t.scope,n=r&&r.getSession();n&&ik(n),this._sendSessionUpdate(),r&&r.setSession()}startSession(t){const{scope:r,client:n}=this.getStackTop(),{release:i,environment:a}=n&&n.getOptions()||{};var o=cn();const{userAgent:s}=o.navigator||{};var u=nk({release:i,environment:a,...r&&{user:r.getUser()},...s&&{userAgent:s},...t});if(r){var l=r.getSession&&r.getSession();l&&l.status==="ok"&&Yu(l,{status:"exited"}),this.endSession(),r.setSession(u)}return u}shouldSendDefaultPii(){var t=this.getClient(),r=t&&t.getOptions();return Boolean(r&&r.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:r}=this.getStackTop();if(!!t){var n=t.getSession();n&&r&&r.captureSession&&r.captureSession(n)}}_withClient(t){const{scope:r,client:n}=this.getStackTop();n&&t(n,r)}_callExtensionMethod(t,...r){var n=rh(),i=n.__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,r);(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&Xt.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function rh(){var e=cn();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function $2(e){var t=rh(),r=$o(t);return Bv(t,e),r}function Jo(){var e=rh();return(!J5(e)||$o(e).isOlderThan($v))&&Bv(e,new Wc),Cv()?uk(e):$o(e)}function uk(e){try{var t=rh().__SENTRY__,r=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!r)return $o(e);if(!J5(r)||$o(r).isOlderThan($v)){var n=$o(e).getStackTop();Bv(r,new Wc(n.client,Ko.clone(n.scope)))}return $o(r)}catch{return $o(e)}}function J5(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function $o(e){return Av("hub",()=>new Wc,e)}function Bv(e,t){if(!e)return!1;var r=e.__SENTRY__=e.__SENTRY__||{};return r.hub=t,!0}var lk="7";function ck(e){var t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}function fk(e){return`${ck(e)}${e.projectId}/envelope/`}function dk(e,t){return ST({sentry_key:e.publicKey,sentry_version:lk,...t&&{sentry_client:`${t.name}/${t.version}`}})}function X5(e,t={}){var r=typeof t=="string"?t:t.tunnel,n=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return r||`${fk(e)}?${dk(e,n)}`}function Q5(e){if(!e||!e.sdk)return;const{name:t,version:r}=e.sdk;return{name:t,version:r}}function pk(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function hk(e,t,r,n){var i=Q5(r),a={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!n&&{dsn:kv(t)}},o="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e];return Fv(a,[o])}function mk(e,t,r,n){var i=Q5(r),a=e.type||"event";const{transactionSampling:o}=e.sdkProcessingMetadata||{},{method:s,rate:u}=o||{};pk(e,r&&r.sdk);var l=vk(e,i,n,t);delete e.sdkProcessingMetadata;var c=[{type:a,sample_rates:[{id:s,rate:u}]},e];return Fv(l,[c])}function vk(e,t,r,n){var i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.baggage,a=i&&rk(i);return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!r&&{dsn:kv(n)},...e.type==="transaction"&&a&&{trace:Ov({...a})}}}var B2=[];function gk(e){var t={};return e.forEach(r=>{t[r.name]=r,B2.indexOf(r.name)===-1&&(r.setupOnce(ok,Jo),B2.push(r.name),(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&Xt.log(`Integration installed: ${r.name}`))}),t}var P2="Not capturing exception because it's already been captured.";class Cu{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}constructor(t){if(Cu.prototype.__init.call(this),Cu.prototype.__init2.call(this),Cu.prototype.__init3.call(this),Cu.prototype.__init4.call(this),this._options=t,t.dsn){this._dsn=_T(t.dsn);var r=X5(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:r})}else(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&Xt.warn("No DSN provided, client will not do anything.")}captureException(t,r,n){if(T2(t)){(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&Xt.log(P2);return}let i=r&&r.event_id;return this._process(this.eventFromException(t,r).then(a=>this._captureEvent(a,r,n)).then(a=>{i=a})),i}captureMessage(t,r,n,i){let a=n&&n.event_id;var o=dT(t)?this.eventFromMessage(String(t),r,n):this.eventFromException(t,n);return this._process(o.then(s=>this._captureEvent(s,n,i)).then(s=>{a=s})),a}captureEvent(t,r,n){if(r&&r.originalException&&T2(r.originalException)){(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&Xt.log(P2);return}let i=r&&r.event_id;return this._process(this._captureEvent(t,r,n).then(a=>{i=a})),i}captureSession(t){if(!this._isEnabled()){(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&Xt.warn("SDK not enabled, will not capture session.");return}typeof t.release!="string"?(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&Xt.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),Yu(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getTransport(){return this._transport}flush(t){var r=this._transport;return r?this._isClientDoneProcessing(t).then(n=>r.flush(t).then(i=>n&&i)):qd(!0)}close(t){return this.flush(t).then(r=>(this.getOptions().enabled=!1,r))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=gk(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&Xt.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}sendEvent(t,r={}){if(this._dsn){let i=mk(t,this._dsn,this._options._metadata,this._options.tunnel);for(var n of r.attachments||[])i=JT(i,ek(n,this._options.transportOptions&&this._options.transportOptions.textEncoder));this._sendEnvelope(i)}}sendSession(t){if(this._dsn){var r=hk(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(r)}}recordDroppedEvent(t,r){if(this._options.sendClientReports){var n=`${t}:${r}`;(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&Xt.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}_updateSessionFromEvent(t,r){let n=!1,i=!1;var a=r.exception&&r.exception.values;if(a){i=!0;for(var o of a){var s=o.mechanism;if(s&&s.handled===!1){n=!0;break}}}var u=t.status==="ok",l=u&&t.errors===0||u&&n;l&&(Yu(t,{...n&&{status:"crashed"},errors:t.errors||Number(i||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new $n(r=>{let n=0;var i=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),r(!0)):(n+=i,t&&n>=t&&(clearInterval(a),r(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._dsn!==void 0}_prepareEvent(t,r,n){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=this.getOptions();var o={...t,event_id:t.event_id||r.event_id||Iu(),timestamp:t.timestamp||th()};this._applyClientOptions(o),this._applyIntegrationsMetadata(o);let s=n;r.captureContext&&(s=Ko.clone(s).update(r.captureContext));let u=qd(o);if(s){var l=[...r.attachments||[],...s.getAttachments()];l.length&&(r.attachments=l),u=s.applyToEvent(o,r)}return u.then(c=>typeof i=="number"&&i>0?this._normalizeEvent(c,i,a):c)}_normalizeEvent(t,r,n){if(!t)return null;var i={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(a=>({...a,...a.data&&{data:_s(a.data,r,n)}}))},...t.user&&{user:_s(t.user,r,n)},...t.contexts&&{contexts:_s(t.contexts,r,n)},...t.extra&&{extra:_s(t.extra,r,n)}};return t.contexts&&t.contexts.trace&&i.contexts&&(i.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(i.contexts.trace.data=_s(t.contexts.trace.data,r,n))),t.spans&&(i.spans=t.spans.map(a=>(a.data&&(a.data=_s(a.data,r,n)),a))),i}_applyClientOptions(t){var r=this.getOptions();const{environment:n,release:i,dist:a,maxValueLength:o=250}=r;"environment"in t||(t.environment="environment"in r?n:"production"),t.release===void 0&&i!==void 0&&(t.release=i),t.dist===void 0&&a!==void 0&&(t.dist=a),t.message&&(t.message=oc(t.message,o));var s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=oc(s.value,o));var u=t.request;u&&u.url&&(u.url=oc(u.url,o))}_applyIntegrationsMetadata(t){var r=Object.keys(this._integrations);r.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...r])}_captureEvent(t,r={},n){return this._processEvent(t,r,n).then(i=>i.event_id,i=>{(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&Xt.warn(i)})}_processEvent(t,r,n){const{beforeSend:i,sampleRate:a}=this.getOptions();if(!this._isEnabled())return k2(new wn("SDK not enabled, will not capture event."));var o=t.type==="transaction";return!o&&typeof a=="number"&&Math.random()>a?(this.recordDroppedEvent("sample_rate","error"),k2(new wn(`Discarding event because it's not included in the random sample (sampling rate = ${a})`))):this._prepareEvent(t,r,n).then(s=>{if(s===null)throw this.recordDroppedEvent("event_processor",t.type||"error"),new wn("An event processor returned null, will not send event.");var u=r.data&&r.data.__sentry__===!0;if(u||o||!i)return s;var l=i(s,r);return yk(l)}).then(s=>{if(s===null)throw this.recordDroppedEvent("before_send",t.type||"error"),new wn("`beforeSend` returned `null`, will not send event.");var u=n&&n.getSession();return!o&&u&&this._updateSessionFromEvent(u,s),this.sendEvent(s,r),s}).then(null,s=>{throw s instanceof wn?s:(this.captureException(s,{data:{__sentry__:!0},originalException:s}),new wn(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${s}`))})}_process(t){this._numProcessing+=1,t.then(r=>(this._numProcessing-=1,r),r=>(this._numProcessing-=1,r))}_sendEnvelope(t){this._transport&&this._dsn?this._transport.send(t).then(null,r=>{(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&Xt.error("Error while sending event:",r)}):(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&Xt.error("Transport disabled")}_clearOutcomes(){var t=this._outcomes;return this._outcomes={},Object.keys(t).map(r=>{const[n,i]=r.split(":");return{reason:n,category:i,quantity:t[r]}})}}function yk(e){var t="`beforeSend` method has to return `null` or a valid event.";if(Tv(e))return e.then(r=>{if(!(Wu(r)||r===null))throw new wn(t);return r},r=>{throw new wn(`beforeSend rejected with ${r}`)});if(!(Wu(e)||e===null))throw new wn(t);return e}var I2="7.10.0";function bk(e,t){var r=Pv(e,t),n={type:t&&t.name,value:Ek(t)};return r.length&&(n.stacktrace={frames:r}),n.type===void 0&&n.value===""&&(n.value="Unrecoverable error caught"),n}function wk(e,t,r,n){var i={exception:{values:[{type:Nv(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:`Non-Error ${n?"promise rejection":"exception"} captured with keys: ${CT(t)}`}]},extra:{__serialized__:W5(t)}};if(r){var a=Pv(e,r);a.length&&(i.exception.values[0].stacktrace={frames:a})}return i}function Qh(e,t){return{exception:{values:[bk(e,t)]}}}function Pv(e,t){var r=t.stacktrace||t.stack||"",n=xk(t);try{return e(r,n)}catch{}return[]}var _k=/Minified React error #\d+;/i;function xk(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(_k.test(e.message))return 1}return 0}function Ek(e){var t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function Dk(e,t,r,n){var i=r&&r.syntheticException||void 0,a=Ck(e,t,i,n);return x1(a),a.level="error",r&&r.event_id&&(a.event_id=r.event_id),qd(a)}function Sk(e,t,r="info",n,i){var a=n&&n.syntheticException||void 0,o=C1(e,t,a,i);return o.level=r,n&&n.event_id&&(o.event_id=n.event_id),qd(o)}function Ck(e,t,r,n,i){let a;if(cT(t)&&t.error){var o=t;return Qh(e,o.error)}if(_2(t)||fT(t)){var s=t;if("stack"in t)a=Qh(e,t);else{var u=s.name||(_2(s)?"DOMError":"DOMException"),l=s.message?`${u}: ${s.message}`:u;a=C1(e,l,r,n),N2(a,l)}return"code"in s&&(a.tags={...a.tags,"DOMException.code":`${s.code}`}),a}if(j5(t))return Qh(e,t);if(Wu(t)||Nv(t)){var c=t;return a=wk(e,c,r,i),x1(a,{synthetic:!0}),a}return a=C1(e,t,r,n),N2(a,`${t}`,void 0),x1(a,{synthetic:!0}),a}function C1(e,t,r,n){var i={message:t};if(n&&r){var a=Pv(e,r);a.length&&(i.exception={values:[{value:t,stacktrace:{frames:a}}]})}return i}var e8="Breadcrumbs";class Hd{static __initStatic(){this.id=e8}__init(){this.name=Hd.id}constructor(t){Hd.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t}}setupOnce(){this.options.console&&Il("console",Nk),this.options.dom&&Il("dom",Ak(this.options.dom)),this.options.xhr&&Il("xhr",Tk),this.options.fetch&&Il("fetch",kk),this.options.history&&Il("history",Ok)}}Hd.__initStatic();function Ak(e){function t(r){let n,i=typeof e=="object"?e.serializeAttribute:void 0;typeof i=="string"&&(i=[i]);try{n=r.event.target?b1(r.event.target,i):b1(r.event,i)}catch{n="<unknown>"}n.length!==0&&Jo().addBreadcrumb({category:`ui.${r.name}`,message:n},{event:r.event,name:r.name,global:r.global})}return t}function Nk(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:WT(e.level),message:E2(e.args," ")};if(e.level==="assert")if(e.args[0]===!1)t.message=`Assertion failed: ${E2(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1);else return;Jo().addBreadcrumb(t,{input:e.args,level:e.level})}function Tk(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;const{method:t,url:r,status_code:n,body:i}=e.xhr.__sentry_xhr__||{};Jo().addBreadcrumb({category:"xhr",data:{method:t,url:r,status_code:n},type:"http"},{xhr:e.xhr,input:i});return}}function kk(e){!e.endTimestamp||e.fetchData.url.match(/sentry_key/)&&e.fetchData.method==="POST"||(e.error?Jo().addBreadcrumb({category:"fetch",data:e.fetchData,level:"error",type:"http"},{data:e.error,input:e.args}):Jo().addBreadcrumb({category:"fetch",data:{...e.fetchData,status_code:e.response.status},type:"http"},{input:e.args,response:e.response}))}function Ok(e){var t=cn();let r=e.from,n=e.to;var i=Jh(t.location.href);let a=Jh(r);var o=Jh(n);a.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),Jo().addBreadcrumb({category:"navigation",data:{from:r,to:n}})}var mi=cn();let Df;function Fk(){if(Df)return Df;if(_1(mi.fetch))return Df=mi.fetch.bind(mi);var e=mi.document;let t=mi.fetch;if(e&&typeof e.createElement=="function")try{var r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r);var n=r.contentWindow;n&&n.fetch&&(t=n.fetch),e.head.removeChild(r)}catch(i){(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&Xt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",i)}return Df=t.bind(mi)}function $k(e,t){var r=Object.prototype.toString.call(mi&&mi.navigator)==="[object Navigator]",n=r&&typeof mi.navigator.sendBeacon=="function";if(n){var i=mi.navigator.sendBeacon.bind(mi.navigator);i(e,t)}else if(K5()){var a=Fk();a(e,{body:t,method:"POST",credentials:"omit",keepalive:!0}).then(null,o=>{(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&Xt.error(o)})}}var em=cn();class Bk extends Cu{constructor(t){t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:I2}],version:I2},super(t),t.sendClientReports&&em.document&&em.document.addEventListener("visibilitychange",()=>{em.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,r){return Dk(this._options.stackParser,t,r,this._options.attachStacktrace)}eventFromMessage(t,r="info",n){return Sk(this._options.stackParser,t,r,n,this._options.attachStacktrace)}sendEvent(t,r){var n=this.getIntegrationById(e8);n&&n.options&&n.options.sentry&&Jo().addBreadcrumb({category:`sentry.${t.type==="transaction"?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:qT(t)},{event:t}),super.sendEvent(t,r)}_prepareEvent(t,r,n){return t.platform=t.platform||"javascript",super._prepareEvent(t,r,n)}_flushOutcomes(){var t=this._clearOutcomes();if(t.length===0){(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&Xt.log("No outcomes to send");return}if(!this._dsn){(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&Xt.log("No dsn provided, will not send outcomes");return}(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&Xt.log("Sending outcomes:",t);var r=X5(this._dsn,this._options),n=tk(t,this._options.tunnel&&kv(this._dsn));try{$k(r,XT(n))}catch(i){(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&Xt.error(i)}}}const Pk=function(e){let t={};return Object.getOwnPropertyNames(e).forEach(function(r){t[r]=e[r]}),JSON.stringify(t)},Ik=e=>e.includes("404")||e.includes("401")||e.includes("410")||e.includes("403"),t8=e=>e.includes("Network Error")||e.includes("Request aborted")||e.includes("timeout of 0ms exceeded"),r8=e=>e.includes("Access Denied"),nh=(e,t)=>{if(!Ik(e.message)&&!t8(e.message)&&!r8(e.message)){const r=new Error(t+" : "+Pk(e));new Bk({dsn:"https://433b095c9869481994713c3884a43d85@o123533.ingest.sentry.io/5205784"}).captureException(r)}};var we=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r};const Mk={name:"App",data(){return{key:Math.random().toString(36).substring(2,6),a:Math.floor(Math.random()*10)+1,b:Math.floor(Math.random()*1e3)+1}},computed:{...bt({language:"page/language",fontFamily:"form/fontFamily",hasHistory:"form/hasHistory",page:"pages/current"}),app_class(){const e=["v4.4.32"];if(this.fontFamily.includes(":")){const t=this.fontFamily.split(":");switch(t[0]){case"system":default:switch(t[1]){case"sans":e.push("font-sans");break;case"serif":e.push("font-serif");break;case"mono":e.push("font-mono");break}}}return e},route(){return this.$route},style(){return this.fontFamily.includes(":")?{}:{"font-family":"'"+this.fontFamily+"', sans-serif"}},hash(){return this.page===1?"":this.encrypt(this.page)}},watch:{route(){this.$store.dispatch("analytics/trackView")},language(e){lr.changeLanguage(e)},page(){this.hasHistory&&(window.location.hash=encodeURIComponent(this.hash))}},mounted(){this.$store.dispatch("analytics/trackView"),window.addEventListener("message",this.incoming),window.addEventListener("hashchange",this.hashchange)},unmounted(){window.removeEventListener("message",this.incoming),window.removeEventListener("hashchange",this.hashchange)},methods:{incoming(e){if(B(e,"data.name")==="aida")try{this.$store.dispatch(B(e,"data.action"),B(e,"data.params"))}catch(t){nh(t,"App")}},hashchange(){if(this.hasHistory){const e=window.location.hash?this.decrypt(decodeURIComponent(window.location.hash.substring(1))):1;e!==this.page&&this.$store.dispatch("pages/go",e)}},encrypt(e){return`${this.key}${Number(this.a*e+this.b).toString(36)}`},decrypt(e){return e.startsWith(this.key)?Math.max(1,Math.round((Number.parseInt(e.substring(this.key.length),36)-this.b)/this.a)):1}}};function Rk(e,t,r,n,i,a){const o=ge("router-view"),s=ge("modals-container");return V(),ae("div",{id:"app",class:Ye(a.app_class),style:ln(a.style)},[Ee(o),Ee(s)],6)}var Lk=we(Mk,[["render",Rk],["__scopeId","data-v-84522abe"]]),Iv={exports:{}},n8=function(t,r){return function(){for(var i=new Array(arguments.length),a=0;a<i.length;a++)i[a]=arguments[a];return t.apply(r,i)}},jk=n8,Mv=Object.prototype.toString,Rv=function(e){return function(t){var r=Mv.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())}}(Object.create(null));function Zs(e){return e=e.toLowerCase(),function(r){return Rv(r)===e}}function Lv(e){return Array.isArray(e)}function Vd(e){return typeof e=="undefined"}function Uk(e){return e!==null&&!Vd(e)&&e.constructor!==null&&!Vd(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var i8=Zs("ArrayBuffer");function zk(e){var t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&i8(e.buffer),t}function qk(e){return typeof e=="string"}function Hk(e){return typeof e=="number"}function a8(e){return e!==null&&typeof e=="object"}function gd(e){if(Rv(e)!=="object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var Vk=Zs("Date"),Kk=Zs("File"),Gk=Zs("Blob"),Wk=Zs("FileList");function jv(e){return Mv.call(e)==="[object Function]"}function Yk(e){return a8(e)&&jv(e.pipe)}function Zk(e){var t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||Mv.call(e)===t||jv(e.toString)&&e.toString()===t)}var Jk=Zs("URLSearchParams");function Xk(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Qk(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function Uv(e,t){if(!(e===null||typeof e=="undefined"))if(typeof e!="object"&&(e=[e]),Lv(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function A1(){var e={};function t(i,a){gd(e[a])&&gd(i)?e[a]=A1(e[a],i):gd(i)?e[a]=A1({},i):Lv(i)?e[a]=i.slice():e[a]=i}for(var r=0,n=arguments.length;r<n;r++)Uv(arguments[r],t);return e}function eO(e,t,r){return Uv(t,function(i,a){r&&typeof i=="function"?e[a]=jk(i,r):e[a]=i}),e}function tO(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function rO(e,t,r,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,r&&Object.assign(e.prototype,r)}function nO(e,t,r){var n,i,a,o={};t=t||{};do{for(n=Object.getOwnPropertyNames(e),i=n.length;i-- >0;)a=n[i],o[a]||(t[a]=e[a],o[a]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t}function iO(e,t,r){e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return n!==-1&&n===r}function aO(e){if(!e)return null;var t=e.length;if(Vd(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r}var oO=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array!="undefined"&&Object.getPrototypeOf(Uint8Array)),Ur={isArray:Lv,isArrayBuffer:i8,isBuffer:Uk,isFormData:Zk,isArrayBufferView:zk,isString:qk,isNumber:Hk,isObject:a8,isPlainObject:gd,isUndefined:Vd,isDate:Vk,isFile:Kk,isBlob:Gk,isFunction:jv,isStream:Yk,isURLSearchParams:Jk,isStandardBrowserEnv:Qk,forEach:Uv,merge:A1,extend:eO,trim:Xk,stripBOM:tO,inherits:rO,toFlatObject:nO,kindOf:Rv,kindOfTest:Zs,endsWith:iO,toArray:aO,isTypedArray:oO,isFileList:Wk},du=Ur;function M2(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o8=function(t,r,n){if(!r)return t;var i;if(n)i=n(r);else if(du.isURLSearchParams(r))i=r.toString();else{var a=[];du.forEach(r,function(u,l){u===null||typeof u=="undefined"||(du.isArray(u)?l=l+"[]":u=[u],du.forEach(u,function(f){du.isDate(f)?f=f.toISOString():du.isObject(f)&&(f=JSON.stringify(f)),a.push(M2(l)+"="+M2(f))}))}),i=a.join("&")}if(i){var o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},sO=Ur;function ih(){this.handlers=[]}ih.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};ih.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};ih.prototype.forEach=function(t){sO.forEach(this.handlers,function(n){n!==null&&t(n)})};var uO=ih,lO=Ur,cO=function(t,r){lO.forEach(t,function(i,a){a!==r&&a.toUpperCase()===r.toUpperCase()&&(t[r]=i,delete t[a])})},s8=Ur;function Zu(e,t,r,n,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}s8.inherits(Zu,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var u8=Zu.prototype,l8={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){l8[e]={value:e}});Object.defineProperties(Zu,l8);Object.defineProperty(u8,"isAxiosError",{value:!0});Zu.from=function(e,t,r,n,i,a){var o=Object.create(u8);return s8.toFlatObject(e,o,function(u){return u!==Error.prototype}),Zu.call(o,e.message,t,r,n,i),o.name=e.name,a&&Object.assign(o,a),o};var hl=Zu,c8={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Gi=[],Wn=[],fO=typeof Uint8Array!="undefined"?Uint8Array:Array,zv=!1;function f8(){zv=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t<r;++t)Gi[t]=e[t],Wn[e.charCodeAt(t)]=t;Wn["-".charCodeAt(0)]=62,Wn["_".charCodeAt(0)]=63}function dO(e){zv||f8();var t,r,n,i,a,o,s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a=e[s-2]==="="?2:e[s-1]==="="?1:0,o=new fO(s*3/4-a),n=a>0?s-4:s;var u=0;for(t=0,r=0;t<n;t+=4,r+=3)i=Wn[e.charCodeAt(t)]<<18|Wn[e.charCodeAt(t+1)]<<12|Wn[e.charCodeAt(t+2)]<<6|Wn[e.charCodeAt(t+3)],o[u++]=i>>16&255,o[u++]=i>>8&255,o[u++]=i&255;return a===2?(i=Wn[e.charCodeAt(t)]<<2|Wn[e.charCodeAt(t+1)]>>4,o[u++]=i&255):a===1&&(i=Wn[e.charCodeAt(t)]<<10|Wn[e.charCodeAt(t+1)]<<4|Wn[e.charCodeAt(t+2)]>>2,o[u++]=i>>8&255,o[u++]=i&255),o}function pO(e){return Gi[e>>18&63]+Gi[e>>12&63]+Gi[e>>6&63]+Gi[e&63]}function hO(e,t,r){for(var n,i=[],a=t;a<r;a+=3)n=(e[a]<<16)+(e[a+1]<<8)+e[a+2],i.push(pO(n));return i.join("")}function R2(e){zv||f8();for(var t,r=e.length,n=r%3,i="",a=[],o=16383,s=0,u=r-n;s<u;s+=o)a.push(hO(e,s,s+o>u?u:s+o));return n===1?(t=e[r-1],i+=Gi[t>>2],i+=Gi[t<<4&63],i+="=="):n===2&&(t=(e[r-2]<<8)+e[r-1],i+=Gi[t>>10],i+=Gi[t>>4&63],i+=Gi[t<<2&63],i+="="),a.push(i),a.join("")}function ah(e,t,r,n,i){var a,o,s=i*8-n-1,u=(1<<s)-1,l=u>>1,c=-7,f=r?i-1:0,d=r?-1:1,p=e[t+f];for(f+=d,a=p&(1<<-c)-1,p>>=-c,c+=s;c>0;a=a*256+e[t+f],f+=d,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=n;c>0;o=o*256+e[t+f],f+=d,c-=8);if(a===0)a=1-l;else{if(a===u)return o?NaN:(p?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-l}return(p?-1:1)*o*Math.pow(2,a-n)}function d8(e,t,r,n,i,a){var o,s,u,l=a*8-i-1,c=(1<<l)-1,f=c>>1,d=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,h=n?1:-1,b=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+f>=1?t+=d/u:t+=d*Math.pow(2,1-f),t*u>=2&&(o++,u/=2),o+f>=c?(s=0,o=c):o+f>=1?(s=(t*u-1)*Math.pow(2,i),o=o+f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[r+p]=s&255,p+=h,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[r+p]=o&255,p+=h,o/=256,l-=8);e[r+p-h]|=b*128}var mO={}.toString,p8=Array.isArray||function(e){return mO.call(e)=="[object Array]"};/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
 * @license  MIT
 */var vO=50;Oe.TYPED_ARRAY_SUPPORT=Yt.TYPED_ARRAY_SUPPORT!==void 0?Yt.TYPED_ARRAY_SUPPORT:!0;Kd();function Kd(){return Oe.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function qa(e,t){if(Kd()<t)throw new RangeError("Invalid typed array length");return Oe.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=Oe.prototype):(e===null&&(e=new Oe(t)),e.length=t),e}function Oe(e,t,r){if(!Oe.TYPED_ARRAY_SUPPORT&&!(this instanceof Oe))return new Oe(e,t,r);if(typeof e=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return qv(this,e)}return h8(this,e,t,r)}Oe.poolSize=8192;Oe._augment=function(e){return e.__proto__=Oe.prototype,e};function h8(e,t,r,n){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&t instanceof ArrayBuffer?bO(e,t,r,n):typeof t=="string"?yO(e,t,r):wO(e,t)}Oe.from=function(e,t,r){return h8(null,e,t,r)};Oe.TYPED_ARRAY_SUPPORT&&(Oe.prototype.__proto__=Uint8Array.prototype,Oe.__proto__=Uint8Array);function m8(e){if(typeof e!="number")throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function gO(e,t,r,n){return m8(t),t<=0?qa(e,t):r!==void 0?typeof n=="string"?qa(e,t).fill(r,n):qa(e,t).fill(r):qa(e,t)}Oe.alloc=function(e,t,r){return gO(null,e,t,r)};function qv(e,t){if(m8(t),e=qa(e,t<0?0:Hv(t)|0),!Oe.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}Oe.allocUnsafe=function(e){return qv(null,e)};Oe.allocUnsafeSlow=function(e){return qv(null,e)};function yO(e,t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!Oe.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=v8(t,r)|0;e=qa(e,n);var i=e.write(t,r);return i!==n&&(e=e.slice(0,i)),e}function N1(e,t){var r=t.length<0?0:Hv(t.length)|0;e=qa(e,r);for(var n=0;n<r;n+=1)e[n]=t[n]&255;return e}function bO(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return r===void 0&&n===void 0?t=new Uint8Array(t):n===void 0?t=new Uint8Array(t,r):t=new Uint8Array(t,r,n),Oe.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=Oe.prototype):e=N1(e,t),e}function wO(e,t){if(na(t)){var r=Hv(t.length)|0;return e=qa(e,r),e.length===0||t.copy(e,0,0,r),e}if(t){if(typeof ArrayBuffer!="undefined"&&t.buffer instanceof ArrayBuffer||"length"in t)return typeof t.length!="number"||LO(t.length)?qa(e,0):N1(e,t);if(t.type==="Buffer"&&p8(t.data))return N1(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Hv(e){if(e>=Kd())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Kd().toString(16)+" bytes");return e|0}Oe.isBuffer=jO;function na(e){return!!(e!=null&&e._isBuffer)}Oe.compare=function(t,r){if(!na(t)||!na(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var n=t.length,i=r.length,a=0,o=Math.min(n,i);a<o;++a)if(t[a]!==r[a]){n=t[a],i=r[a];break}return n<i?-1:i<n?1:0};Oe.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};Oe.concat=function(t,r){if(!p8(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return Oe.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;var i=Oe.allocUnsafe(r),a=0;for(n=0;n<t.length;++n){var o=t[n];if(!na(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,a),a+=o.length}return i};function v8(e,t){if(na(e))return e.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var r=e.length;if(r===0)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Gd(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return E8(e).length;default:if(n)return Gd(e).length;t=(""+t).toLowerCase(),n=!0}}Oe.byteLength=v8;function _O(e,t,r){var n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return OO(this,t,r);case"utf8":case"utf-8":return b8(this,t,r);case"ascii":return TO(this,t,r);case"latin1":case"binary":return kO(this,t,r);case"base64":return AO(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return FO(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}Oe.prototype._isBuffer=!0;function Ts(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}Oe.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)Ts(this,r,r+1);return this};Oe.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)Ts(this,r,r+3),Ts(this,r+1,r+2);return this};Oe.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)Ts(this,r,r+7),Ts(this,r+1,r+6),Ts(this,r+2,r+5),Ts(this,r+3,r+4);return this};Oe.prototype.toString=function(){var t=this.length|0;return t===0?"":arguments.length===0?b8(this,0,t):_O.apply(this,arguments)};Oe.prototype.equals=function(t){if(!na(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:Oe.compare(this,t)===0};Oe.prototype.inspect=function(){var t="",r=vO;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"};Oe.prototype.compare=function(t,r,n,i,a){if(!na(t))throw new TypeError("Argument must be a Buffer");if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>t.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===t)return 0;for(var o=a-i,s=n-r,u=Math.min(o,s),l=this.slice(i,a),c=t.slice(r,n),f=0;f<u;++f)if(l[f]!==c[f]){o=l[f],s=c[f];break}return o<s?-1:s<o?1:0};function g8(e,t,r,n,i){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=Oe.from(t,n)),na(t))return t.length===0?-1:L2(e,t,r,n,i);if(typeof t=="number")return t=t&255,Oe.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):L2(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function L2(e,t,r,n,i){var a=1,o=e.length,s=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,r/=2}function u(p,h){return a===1?p[h]:p.readUInt16BE(h*a)}var l;if(i){var c=-1;for(l=r;l<o;l++)if(u(e,l)===u(t,c===-1?0:l-c)){if(c===-1&&(c=l),l-c+1===s)return c*a}else c!==-1&&(l-=l-c),c=-1}else for(r+s>o&&(r=o-s),l=r;l>=0;l--){for(var f=!0,d=0;d<s;d++)if(u(e,l+d)!==u(t,d)){f=!1;break}if(f)return l}return-1}Oe.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};Oe.prototype.indexOf=function(t,r,n){return g8(this,t,r,n,!0)};Oe.prototype.lastIndexOf=function(t,r,n){return g8(this,t,r,n,!1)};function xO(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var a=t.length;if(a%2!==0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(t.substr(o*2,2),16);if(isNaN(s))return o;e[r+o]=s}return o}function EO(e,t,r,n){return uh(Gd(t,e.length-r),e,r,n)}function y8(e,t,r,n){return uh(MO(t),e,r,n)}function DO(e,t,r,n){return y8(e,t,r,n)}function SO(e,t,r,n){return uh(E8(t),e,r,n)}function CO(e,t,r,n){return uh(RO(t,e.length-r),e,r,n)}Oe.prototype.write=function(t,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r|0,isFinite(n)?(n=n|0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-r;if((n===void 0||n>a)&&(n=a),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return xO(this,t,r,n);case"utf8":case"utf-8":return EO(this,t,r,n);case"ascii":return y8(this,t,r,n);case"latin1":case"binary":return DO(this,t,r,n);case"base64":return SO(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return CO(this,t,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};Oe.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function AO(e,t,r){return t===0&&r===e.length?R2(e):R2(e.slice(t,r))}function b8(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var a=e[i],o=null,s=a>239?4:a>223?3:a>191?2:1;if(i+s<=r){var u,l,c,f;switch(s){case 1:a<128&&(o=a);break;case 2:u=e[i+1],(u&192)===128&&(f=(a&31)<<6|u&63,f>127&&(o=f));break;case 3:u=e[i+1],l=e[i+2],(u&192)===128&&(l&192)===128&&(f=(a&15)<<12|(u&63)<<6|l&63,f>2047&&(f<55296||f>57343)&&(o=f));break;case 4:u=e[i+1],l=e[i+2],c=e[i+3],(u&192)===128&&(l&192)===128&&(c&192)===128&&(f=(a&15)<<18|(u&63)<<12|(l&63)<<6|c&63,f>65535&&f<1114112&&(o=f))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=s}return NO(n)}var j2=4096;function NO(e){var t=e.length;if(t<=j2)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=j2));return r}function TO(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]&127);return n}function kO(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function OO(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=t;a<r;++a)i+=IO(e[a]);return i}function FO(e,t,r){for(var n=e.slice(t,r),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}Oe.prototype.slice=function(t,r){var n=this.length;t=~~t,r=r===void 0?n:~~r,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<t&&(r=t);var i;if(Oe.TYPED_ARRAY_SUPPORT)i=this.subarray(t,r),i.__proto__=Oe.prototype;else{var a=r-t;i=new Oe(a,void 0);for(var o=0;o<a;++o)i[o]=this[o+t]}return i};function Pr(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}Oe.prototype.readUIntLE=function(t,r,n){t=t|0,r=r|0,n||Pr(t,r,this.length);for(var i=this[t],a=1,o=0;++o<r&&(a*=256);)i+=this[t+o]*a;return i};Oe.prototype.readUIntBE=function(t,r,n){t=t|0,r=r|0,n||Pr(t,r,this.length);for(var i=this[t+--r],a=1;r>0&&(a*=256);)i+=this[t+--r]*a;return i};Oe.prototype.readUInt8=function(t,r){return r||Pr(t,1,this.length),this[t]};Oe.prototype.readUInt16LE=function(t,r){return r||Pr(t,2,this.length),this[t]|this[t+1]<<8};Oe.prototype.readUInt16BE=function(t,r){return r||Pr(t,2,this.length),this[t]<<8|this[t+1]};Oe.prototype.readUInt32LE=function(t,r){return r||Pr(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};Oe.prototype.readUInt32BE=function(t,r){return r||Pr(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};Oe.prototype.readIntLE=function(t,r,n){t=t|0,r=r|0,n||Pr(t,r,this.length);for(var i=this[t],a=1,o=0;++o<r&&(a*=256);)i+=this[t+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*r)),i};Oe.prototype.readIntBE=function(t,r,n){t=t|0,r=r|0,n||Pr(t,r,this.length);for(var i=r,a=1,o=this[t+--i];i>0&&(a*=256);)o+=this[t+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};Oe.prototype.readInt8=function(t,r){return r||Pr(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};Oe.prototype.readInt16LE=function(t,r){r||Pr(t,2,this.length);var n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};Oe.prototype.readInt16BE=function(t,r){r||Pr(t,2,this.length);var n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};Oe.prototype.readInt32LE=function(t,r){return r||Pr(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};Oe.prototype.readInt32BE=function(t,r){return r||Pr(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};Oe.prototype.readFloatLE=function(t,r){return r||Pr(t,4,this.length),ah(this,t,!0,23,4)};Oe.prototype.readFloatBE=function(t,r){return r||Pr(t,4,this.length),ah(this,t,!1,23,4)};Oe.prototype.readDoubleLE=function(t,r){return r||Pr(t,8,this.length),ah(this,t,!0,52,8)};Oe.prototype.readDoubleBE=function(t,r){return r||Pr(t,8,this.length),ah(this,t,!1,52,8)};function Cn(e,t,r,n,i,a){if(!na(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}Oe.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r|0,n=n|0,!i){var a=Math.pow(2,8*n)-1;Cn(this,t,r,n,a,0)}var o=1,s=0;for(this[r]=t&255;++s<n&&(o*=256);)this[r+s]=t/o&255;return r+n};Oe.prototype.writeUIntBE=function(t,r,n,i){if(t=+t,r=r|0,n=n|0,!i){var a=Math.pow(2,8*n)-1;Cn(this,t,r,n,a,0)}var o=n-1,s=1;for(this[r+o]=t&255;--o>=0&&(s*=256);)this[r+o]=t/s&255;return r+n};Oe.prototype.writeUInt8=function(t,r,n){return t=+t,r=r|0,n||Cn(this,t,r,1,255,0),Oe.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=t&255,r+1};function oh(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-r,2);i<a;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>(n?i:1-i)*8}Oe.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r|0,n||Cn(this,t,r,2,65535,0),Oe.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8):oh(this,t,r,!0),r+2};Oe.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r|0,n||Cn(this,t,r,2,65535,0),Oe.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t&255):oh(this,t,r,!1),r+2};function sh(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-r,4);i<a;++i)e[r+i]=t>>>(n?i:3-i)*8&255}Oe.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r|0,n||Cn(this,t,r,4,4294967295,0),Oe.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255):sh(this,t,r,!0),r+4};Oe.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r|0,n||Cn(this,t,r,4,4294967295,0),Oe.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255):sh(this,t,r,!1),r+4};Oe.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r|0,!i){var a=Math.pow(2,8*n-1);Cn(this,t,r,n,a-1,-a)}var o=0,s=1,u=0;for(this[r]=t&255;++o<n&&(s*=256);)t<0&&u===0&&this[r+o-1]!==0&&(u=1),this[r+o]=(t/s>>0)-u&255;return r+n};Oe.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r|0,!i){var a=Math.pow(2,8*n-1);Cn(this,t,r,n,a-1,-a)}var o=n-1,s=1,u=0;for(this[r+o]=t&255;--o>=0&&(s*=256);)t<0&&u===0&&this[r+o+1]!==0&&(u=1),this[r+o]=(t/s>>0)-u&255;return r+n};Oe.prototype.writeInt8=function(t,r,n){return t=+t,r=r|0,n||Cn(this,t,r,1,127,-128),Oe.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=t&255,r+1};Oe.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r|0,n||Cn(this,t,r,2,32767,-32768),Oe.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8):oh(this,t,r,!0),r+2};Oe.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r|0,n||Cn(this,t,r,2,32767,-32768),Oe.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t&255):oh(this,t,r,!1),r+2};Oe.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r|0,n||Cn(this,t,r,4,2147483647,-2147483648),Oe.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):sh(this,t,r,!0),r+4};Oe.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r|0,n||Cn(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),Oe.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255):sh(this,t,r,!1),r+4};function w8(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function _8(e,t,r,n,i){return i||w8(e,t,r,4),d8(e,t,r,n,23,4),r+4}Oe.prototype.writeFloatLE=function(t,r,n){return _8(this,t,r,!0,n)};Oe.prototype.writeFloatBE=function(t,r,n){return _8(this,t,r,!1,n)};function x8(e,t,r,n,i){return i||w8(e,t,r,8),d8(e,t,r,n,52,8),r+8}Oe.prototype.writeDoubleLE=function(t,r,n){return x8(this,t,r,!0,n)};Oe.prototype.writeDoubleBE=function(t,r,n){return x8(this,t,r,!1,n)};Oe.prototype.copy=function(t,r,n,i){if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<n&&(i=n),i===n||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-n&&(i=t.length-r+n);var a=i-n,o;if(this===t&&n<r&&r<i)for(o=a-1;o>=0;--o)t[o+r]=this[o+n];else if(a<1e3||!Oe.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)t[o+r]=this[o+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),r);return a};Oe.prototype.fill=function(t,r,n,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),t.length===1){var a=t.charCodeAt(0);a<256&&(t=a)}if(i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!Oe.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else typeof t=="number"&&(t=t&255);if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,t||(t=0);var o;if(typeof t=="number")for(o=r;o<n;++o)this[o]=t;else{var s=na(t)?t:Gd(new Oe(t,i).toString()),u=s.length;for(o=0;o<n-r;++o)this[o+r]=s[o%u]}return this};var $O=/[^+\/0-9A-Za-z-_]/g;function BO(e){if(e=PO(e).replace($O,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function PO(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function IO(e){return e<16?"0"+e.toString(16):e.toString(16)}function Gd(e,t){t=t||1/0;for(var r,n=e.length,i=null,a=[],o=0;o<n;++o){if(r=e.charCodeAt(o),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function MO(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function RO(e,t){for(var r,n,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)r=e.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}function E8(e){return dO(BO(e))}function uh(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function LO(e){return e!==e}function jO(e){return e!=null&&(!!e._isBuffer||D8(e)||UO(e))}function D8(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function UO(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&D8(e.slice(0,0))}var pi=Ur;function zO(e,t){t=t||new FormData;var r=[];function n(a){return a===null?"":pi.isDate(a)?a.toISOString():pi.isArrayBuffer(a)||pi.isTypedArray(a)?typeof Blob=="function"?new Blob([a]):Oe.from(a):a}function i(a,o){if(pi.isPlainObject(a)||pi.isArray(a)){if(r.indexOf(a)!==-1)throw Error("Circular reference detected in "+o);r.push(a),pi.forEach(a,function(u,l){if(!pi.isUndefined(u)){var c=o?o+"."+l:l,f;if(u&&!o&&typeof u=="object"){if(pi.endsWith(l,"{}"))u=JSON.stringify(u);else if(pi.endsWith(l,"[]")&&(f=pi.toArray(u))){f.forEach(function(d){!pi.isUndefined(d)&&t.append(c,n(d))});return}}i(u,c)}}),r.pop()}else t.append(o,n(a))}return i(e),t}var S8=zO,tm=hl,qO=function(t,r,n){var i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):r(new tm("Request failed with status code "+n.status,[tm.ERR_BAD_REQUEST,tm.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))},Sf=Ur,HO=Sf.isStandardBrowserEnv()?function(){return{write:function(r,n,i,a,o,s){var u=[];u.push(r+"="+encodeURIComponent(n)),Sf.isNumber(i)&&u.push("expires="+new Date(i).toGMTString()),Sf.isString(a)&&u.push("path="+a),Sf.isString(o)&&u.push("domain="+o),s===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(r){var n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),VO=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},KO=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t},GO=VO,WO=KO,C8=function(t,r){return t&&!GO(r)?WO(t,r):r},rm=Ur,YO=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],ZO=function(t){var r={},n,i,a;return t&&rm.forEach(t.split(`
`),function(s){if(a=s.indexOf(":"),n=rm.trim(s.substr(0,a)).toLowerCase(),i=rm.trim(s.substr(a+1)),n){if(r[n]&&YO.indexOf(n)>=0)return;n==="set-cookie"?r[n]=(r[n]?r[n]:[]).concat([i]):r[n]=r[n]?r[n]+", "+i:i}}),r},U2=Ur,JO=U2.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function i(a){var o=a;return t&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=i(window.location.href),function(o){var s=U2.isString(o)?i(o):o;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}(),T1=hl,XO=Ur;function A8(e){T1.call(this,e==null?"canceled":e,T1.ERR_CANCELED),this.name="CanceledError"}XO.inherits(A8,T1,{__CANCEL__:!0});var lh=A8,QO=function(t){var r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return r&&r[1]||""},Ml=Ur,eF=qO,tF=HO,rF=o8,nF=C8,iF=ZO,aF=JO,oF=c8,Na=hl,sF=lh,uF=QO,z2=function(t){return new Promise(function(n,i){var a=t.data,o=t.headers,s=t.responseType,u;function l(){t.cancelToken&&t.cancelToken.unsubscribe(u),t.signal&&t.signal.removeEventListener("abort",u)}Ml.isFormData(a)&&Ml.isStandardBrowserEnv()&&delete o["Content-Type"];var c=new XMLHttpRequest;if(t.auth){var f=t.auth.username||"",d=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.Authorization="Basic "+btoa(f+":"+d)}var p=nF(t.baseURL,t.url);c.open(t.method.toUpperCase(),rF(p,t.params,t.paramsSerializer),!0),c.timeout=t.timeout;function h(){if(!!c){var v="getAllResponseHeaders"in c?iF(c.getAllResponseHeaders()):null,S=!s||s==="text"||s==="json"?c.responseText:c.response,w={data:S,status:c.status,statusText:c.statusText,headers:v,config:t,request:c};eF(function(_){n(_),l()},function(_){i(_),l()},w),c=null}}if("onloadend"in c?c.onloadend=h:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(h)},c.onabort=function(){!c||(i(new Na("Request aborted",Na.ECONNABORTED,t,c)),c=null)},c.onerror=function(){i(new Na("Network Error",Na.ERR_NETWORK,t,c,c)),c=null},c.ontimeout=function(){var S=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",w=t.transitional||oF;t.timeoutErrorMessage&&(S=t.timeoutErrorMessage),i(new Na(S,w.clarifyTimeoutError?Na.ETIMEDOUT:Na.ECONNABORTED,t,c)),c=null},Ml.isStandardBrowserEnv()){var b=(t.withCredentials||aF(p))&&t.xsrfCookieName?tF.read(t.xsrfCookieName):void 0;b&&(o[t.xsrfHeaderName]=b)}"setRequestHeader"in c&&Ml.forEach(o,function(S,w){typeof a=="undefined"&&w.toLowerCase()==="content-type"?delete o[w]:c.setRequestHeader(w,S)}),Ml.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),s&&s!=="json"&&(c.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&c.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(u=function(v){!c||(i(!v||v&&v.type?new sF:v),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(u),t.signal&&(t.signal.aborted?u():t.signal.addEventListener("abort",u))),a||(a=null);var g=uF(p);if(g&&["http","https","file"].indexOf(g)===-1){i(new Na("Unsupported protocol "+g+":",Na.ERR_BAD_REQUEST,t));return}c.send(a)})},lF=null,Tr=Ur,q2=cO,H2=hl,cF=c8,fF=S8,dF={"Content-Type":"application/x-www-form-urlencoded"};function V2(e,t){!Tr.isUndefined(e)&&Tr.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function pF(){var e;return(typeof XMLHttpRequest!="undefined"||typeof Vo!="undefined"&&Object.prototype.toString.call(Vo)==="[object process]")&&(e=z2),e}function hF(e,t,r){if(Tr.isString(e))try{return(t||JSON.parse)(e),Tr.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var ch={transitional:cF,adapter:pF(),transformRequest:[function(t,r){if(q2(r,"Accept"),q2(r,"Content-Type"),Tr.isFormData(t)||Tr.isArrayBuffer(t)||Tr.isBuffer(t)||Tr.isStream(t)||Tr.isFile(t)||Tr.isBlob(t))return t;if(Tr.isArrayBufferView(t))return t.buffer;if(Tr.isURLSearchParams(t))return V2(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var n=Tr.isObject(t),i=r&&r["Content-Type"],a;if((a=Tr.isFileList(t))||n&&i==="multipart/form-data"){var o=this.env&&this.env.FormData;return fF(a?{"files[]":t}:t,o&&new o)}else if(n||i==="application/json")return V2(r,"application/json"),hF(t);return t}],transformResponse:[function(t){var r=this.transitional||ch.transitional,n=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,a=!n&&this.responseType==="json";if(a||i&&Tr.isString(t)&&t.length)try{return JSON.parse(t)}catch(o){if(a)throw o.name==="SyntaxError"?H2.from(o,H2.ERR_BAD_RESPONSE,this,null,this.response):o}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:lF},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Tr.forEach(["delete","get","head"],function(t){ch.headers[t]={}});Tr.forEach(["post","put","patch"],function(t){ch.headers[t]=Tr.merge(dF)});var Vv=ch,mF=Ur,vF=Vv,gF=function(t,r,n){var i=this||vF;return mF.forEach(n,function(o){t=o.call(i,t,r)}),t},N8=function(t){return!!(t&&t.__CANCEL__)},K2=Ur,nm=gF,yF=N8,bF=Vv,wF=lh;function im(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new wF}var _F=function(t){im(t),t.headers=t.headers||{},t.data=nm.call(t,t.data,t.headers,t.transformRequest),t.headers=K2.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),K2.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||bF.adapter;return r(t).then(function(i){return im(t),i.data=nm.call(t,i.data,i.headers,t.transformResponse),i},function(i){return yF(i)||(im(t),i&&i.response&&(i.response.data=nm.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},Nn=Ur,T8=function(t,r){r=r||{};var n={};function i(c,f){return Nn.isPlainObject(c)&&Nn.isPlainObject(f)?Nn.merge(c,f):Nn.isPlainObject(f)?Nn.merge({},f):Nn.isArray(f)?f.slice():f}function a(c){if(Nn.isUndefined(r[c])){if(!Nn.isUndefined(t[c]))return i(void 0,t[c])}else return i(t[c],r[c])}function o(c){if(!Nn.isUndefined(r[c]))return i(void 0,r[c])}function s(c){if(Nn.isUndefined(r[c])){if(!Nn.isUndefined(t[c]))return i(void 0,t[c])}else return i(void 0,r[c])}function u(c){if(c in r)return i(t[c],r[c]);if(c in t)return i(void 0,t[c])}var l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return Nn.forEach(Object.keys(t).concat(Object.keys(r)),function(f){var d=l[f]||a,p=d(f);Nn.isUndefined(p)&&d!==u||(n[f]=p)}),n},k8={version:"0.27.2"},xF=k8.version,To=hl,Kv={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Kv[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var G2={};Kv.transitional=function(t,r,n){function i(a,o){return"[Axios v"+xF+"] Transitional option '"+a+"'"+o+(n?". "+n:"")}return function(a,o,s){if(t===!1)throw new To(i(o," has been removed"+(r?" in "+r:"")),To.ERR_DEPRECATED);return r&&!G2[o]&&(G2[o]=!0,console.warn(i(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,o,s):!0}};function EF(e,t,r){if(typeof e!="object")throw new To("options must be an object",To.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),i=n.length;i-- >0;){var a=n[i],o=t[a];if(o){var s=e[a],u=s===void 0||o(s,a,e);if(u!==!0)throw new To("option "+a+" must be "+u,To.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new To("Unknown option "+a,To.ERR_BAD_OPTION)}}var DF={assertOptions:EF,validators:Kv},O8=Ur,SF=o8,W2=uO,Y2=_F,fh=T8,CF=C8,F8=DF,pu=F8.validators;function Ju(e){this.defaults=e,this.interceptors={request:new W2,response:new W2}}Ju.prototype.request=function(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=fh(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var n=r.transitional;n!==void 0&&F8.assertOptions(n,{silentJSONParsing:pu.transitional(pu.boolean),forcedJSONParsing:pu.transitional(pu.boolean),clarifyTimeoutError:pu.transitional(pu.boolean)},!1);var i=[],a=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(a=a&&p.synchronous,i.unshift(p.fulfilled,p.rejected))});var o=[];this.interceptors.response.forEach(function(p){o.push(p.fulfilled,p.rejected)});var s;if(!a){var u=[Y2,void 0];for(Array.prototype.unshift.apply(u,i),u=u.concat(o),s=Promise.resolve(r);u.length;)s=s.then(u.shift(),u.shift());return s}for(var l=r;i.length;){var c=i.shift(),f=i.shift();try{l=c(l)}catch(d){f(d);break}}try{s=Y2(l)}catch(d){return Promise.reject(d)}for(;o.length;)s=s.then(o.shift(),o.shift());return s};Ju.prototype.getUri=function(t){t=fh(this.defaults,t);var r=CF(t.baseURL,t.url);return SF(r,t.params,t.paramsSerializer)};O8.forEach(["delete","get","head","options"],function(t){Ju.prototype[t]=function(r,n){return this.request(fh(n||{},{method:t,url:r,data:(n||{}).data}))}});O8.forEach(["post","put","patch"],function(t){function r(n){return function(a,o,s){return this.request(fh(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Ju.prototype[t]=r(),Ju.prototype[t+"Form"]=r(!0)});var AF=Ju,NF=lh;function Xu(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(i){t=i});var r=this;this.promise.then(function(n){if(!!r._listeners){var i,a=r._listeners.length;for(i=0;i<a;i++)r._listeners[i](n);r._listeners=null}}),this.promise.then=function(n){var i,a=new Promise(function(o){r.subscribe(o),i=o}).then(n);return a.cancel=function(){r.unsubscribe(i)},a},e(function(i){r.reason||(r.reason=new NF(i),t(r.reason))})}Xu.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};Xu.prototype.subscribe=function(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]};Xu.prototype.unsubscribe=function(t){if(!!this._listeners){var r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}};Xu.source=function(){var t,r=new Xu(function(i){t=i});return{token:r,cancel:t}};var TF=Xu,kF=function(t){return function(n){return t.apply(null,n)}},OF=Ur,FF=function(t){return OF.isObject(t)&&t.isAxiosError===!0},Z2=Ur,$F=n8,yd=AF,BF=T8,PF=Vv;function $8(e){var t=new yd(e),r=$F(yd.prototype.request,t);return Z2.extend(r,yd.prototype,t),Z2.extend(r,t),r.create=function(i){return $8(BF(e,i))},r}var _n=$8(PF);_n.Axios=yd;_n.CanceledError=lh;_n.CancelToken=TF;_n.isCancel=N8;_n.VERSION=k8.version;_n.toFormData=S8;_n.AxiosError=hl;_n.Cancel=_n.CanceledError;_n.all=function(t){return Promise.all(t)};_n.spread=kF;_n.isAxiosError=FF;Iv.exports=_n;Iv.exports.default=_n;var Qi=Iv.exports;if(typeof window!="undefined"){let e=function(){var t=document.body,r=document.getElementById("__svg__icons__");r||(r=document.createElementNS("http://www.w3.org/2000/svg","svg"),r.style.position="absolute",r.style.width="0",r.style.height="0",r.id="__svg__icons__",r.setAttribute("xmlns","http://www.w3.org/2000/svg"),r.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),r.innerHTML='<symbol  viewBox="0 0 34 22" id="i-field-captcha"><path  fill-rule="evenodd" clip-rule="evenodd" d="M3 3.979v15h28v-15H3zm-1-3a2 2 0 0 0-2 2v17a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2v-17a2 2 0 0 0-2-2H2z" /><path  fill-rule="evenodd" clip-rule="evenodd" d="M9.228 15.422a1.25 1.25 0 0 0 .884.356 1.268 1.268 0 0 0 .882-.362l.013-.013 5.131-5.645a1.223 1.223 0 0 0 .352-.853 1.207 1.207 0 0 0-.37-.871l-6.892 7.388zm6.892-7.388-.51-.496a1.255 1.255 0 0 0-.881-.357 1.268 1.268 0 0 0-.881.357l-.018.017-3.758 4.235-1.643-1.596h-.001a1.25 1.25 0 0 0-.88-.357 1.268 1.268 0 0 0-.88.357l-.51.495a1.229 1.229 0 0 0-.37.873 1.207 1.207 0 0 0 .37.871l3.07 2.989 6.892-7.388z" /></symbol><symbol  viewBox="0 0 35 34" id="i-field-chat"><path  fill-rule="evenodd" clip-rule="evenodd" d="M23.46 6.19c.4.04.8-.08 1.1-.33A3.65 3.65 0 0 1 26.9 5a3.65 3.65 0 0 1 3.64 3.65 3.62 3.62 0 0 1-1.05 2.56 1.47 1.47 0 0 0 .15 2.19 6.02 6.02 0 0 1 2.38 4.81 6.07 6.07 0 0 1-6.06 6.07 6.02 6.02 0 0 1-3.43-1.07 1.47 1.47 0 0 0-1.68.01 4.16 4.16 0 0 1-2.42.78 4.21 4.21 0 0 1-3.4-1.73 1.47 1.47 0 0 0-1.9-.41 4.2 4.2 0 0 1-6.27-3.65 4.2 4.2 0 0 1 2.83-3.96 1.47 1.47 0 0 0 .89-1.92 6.87 6.87 0 0 1-.47-2.48 6.9 6.9 0 0 1 6.9-6.9c2.15 0 4.13.97 5.45 2.67.25.31.6.52 1 .56zm9.06 5.88a8.92 8.92 0 0 1 2.43 6.15 9 9 0 0 1-13.25 7.92 7.08 7.08 0 0 1-3.27.8 7.15 7.15 0 0 1-4.96-2.01 7.13 7.13 0 0 1-2.41.42 7.13 7.13 0 0 1-7.13-7.13 7.13 7.13 0 0 1 3.5-6.14 9.8 9.8 0 0 1-.25-2.22A9.84 9.84 0 0 1 17.01.03a9.76 9.76 0 0 1 6.86 2.78 6.58 6.58 0 0 1 3.02-.73 6.58 6.58 0 0 1 6.58 6.57 6.54 6.54 0 0 1-.95 3.42zM3.92 32.53a1.47 1.47 0 1 1-2.94 0 1.47 1.47 0 0 1 2.93 0zm6.72-2.59a1.47 1.47 0 1 1-2.93 0 1.47 1.47 0 0 1 2.93 0z" /></symbol><symbol  viewBox="0 0 34 30" id="i-field-check"><rect  x="14.34" y="3.2" width="19.66" height="3.88" rx=".5" /><rect  x="14.34" y="13.82" width="19.66" height="3.88" rx=".5" /><path  d="M3.82 8.23.81 5.43a.46.46 0 0 1 0-.7l.5-.47a.53.53 0 0 1 .38-.14.56.56 0 0 1 .37.14l2.13 1.98 4.16-4.47a.53.53 0 0 1 .37-.14.56.56 0 0 1 .38.14l.5.47a.46.46 0 0 1 0 .7L4.57 8.21a.53.53 0 0 1-.37.15.56.56 0 0 1-.38-.14z" /><path  fill-rule="evenodd" clip-rule="evenodd" d="m4.2 7.84.07-.08-.08.08zm-.01-.16L9.03 2.6l-.3-.27-4.5 4.84L1.69 4.8l-.3.28 2.8 2.6zM3.37 8.7a1.23 1.23 0 0 0 1.66-.01v-.01l5.04-5.3a1.1 1.1 0 0 0-.02-1.61L3.37 8.7zm6.68-6.93-.5-.47a1.2 1.2 0 0 0-.83-.32 1.23 1.23 0 0 0-.82.32l-.02.02-3.72 4L2.51 3.8a1.2 1.2 0 0 0-.82-.32 1.23 1.23 0 0 0-.83.32l-.5.47a1.1 1.1 0 0 0 0 1.63l3.01 2.8 6.68-6.92z" /><path  d="m3.82 18.85-3.01-2.8a.46.46 0 0 1 0-.7l.5-.47a.53.53 0 0 1 .38-.14.56.56 0 0 1 .37.14l2.13 1.99 4.16-4.48a.53.53 0 0 1 .37-.14.56.56 0 0 1 .38.14l.5.47a.46.46 0 0 1 0 .7l-5.03 5.29a.53.53 0 0 1-.38.14.56.56 0 0 1-.37-.14z" /><path  fill-rule="evenodd" clip-rule="evenodd" d="m4.2 18.46.07-.08-.08.08zm-.01-.16 4.84-5.09-.3-.27-4.5 4.85-2.54-2.37-.3.28 2.8 2.6zm-.82 1.02a1.23 1.23 0 0 0 1.66 0v-.02l5.04-5.29a1.1 1.1 0 0 0-.02-1.62l-6.68 6.93zm6.68-6.93-.5-.47a1.2 1.2 0 0 0-.83-.32 1.23 1.23 0 0 0-.82.32l-.02.02-3.72 4-1.65-1.53a1.2 1.2 0 0 0-.82-.32 1.23 1.23 0 0 0-.83.32l-.5.47a1.1 1.1 0 0 0 0 1.64l3.01 2.8 6.68-6.93z" /><path  d="m3.82 29.19-3.01-2.8a.46.46 0 0 1 0-.7l.5-.47a.56.56 0 0 1 .75 0l2.13 1.99 4.16-4.48a.53.53 0 0 1 .37-.14.56.56 0 0 1 .38.14l.5.47a.46.46 0 0 1 0 .7l-5.03 5.29a.53.53 0 0 1-.38.14.56.56 0 0 1-.37-.14z" /><path  fill-rule="evenodd" clip-rule="evenodd" d="m4.2 28.8.07-.08-.08.08zm-.01-.16 4.84-5.09-.3-.27-4.5 4.85-2.54-2.37-.3.28 2.8 2.6zm-.82 1.02a1.23 1.23 0 0 0 1.66 0v-.02l5.04-5.29c.1-.1.18-.22.24-.35a1.1 1.1 0 0 0-.26-1.27l-6.68 6.93zm6.68-6.93-.5-.47a1.2 1.2 0 0 0-.83-.32 1.23 1.23 0 0 0-.82.32l-.02.02-3.72 4-1.65-1.53a1.2 1.2 0 0 0-.82-.32 1.23 1.23 0 0 0-.83.32l-.5.47a1.1 1.1 0 0 0 0 1.64l3.01 2.8 6.68-6.93z" /><rect  x="14.34" y="24.16" width="19.66" height="3.88" rx=".5" /></symbol><symbol  viewBox="0 0 34 35" id="i-field-checkbox"><path  fill-rule="evenodd" clip-rule="evenodd" d="M4.52 3.94c-1.02 0-1.71.8-1.71 1.62V30.4c0 .82.69 1.62 1.71 1.62h24.96c1.02 0 1.71-.8 1.71-1.62V5.56c0-.82-.69-1.62-1.71-1.62H4.52zM0 5.56C0 2.96 2.1.98 4.52.98h24.96A4.55 4.55 0 0 1 34 5.56V30.4c0 2.6-2.1 4.58-4.52 4.58H4.52A4.55 4.55 0 0 1 0 30.4V5.56z" /><path  d="m15.18 25.6-5.8-5.46a.96.96 0 0 1-.22-.32.92.92 0 0 1 .22-1.05l.97-.91c.09-.09.2-.16.33-.21a1.07 1.07 0 0 1 1.11.21l4.11 3.88 8-8.74c.1-.1.2-.16.33-.21a1.07 1.07 0 0 1 1.11.2l.97.92a.96.96 0 0 1 .22.31.92.92 0 0 1 0 .74.96.96 0 0 1-.22.31l-9.68 10.34a.94.94 0 0 1-.33.2 1.07 1.07 0 0 1-.79 0 1.02 1.02 0 0 1-.33-.2z" /><path  fill-rule="evenodd" clip-rule="evenodd" d="M15.78 25.13a.33.33 0 0 0 .32-.05l9.69-10.33.01-.02a.22.22 0 0 0 .06-.07.18.18 0 0 0 0-.14.22.22 0 0 0-.06-.07l-.97-.92a.29.29 0 0 0-.09-.05.33.33 0 0 0-.32.04l-8.48 9.27-4.66-4.4a.29.29 0 0 0-.1-.05.33.33 0 0 0-.23 0 .29.29 0 0 0-.1.06l-.96.9a.22.22 0 0 0-.05.08.18.18 0 0 0 0 .15.2.2 0 0 0 .05.07l5.8 5.47-.51.54.5-.54a.29.29 0 0 0 .1.06zm-1.11 1.02c.17.15.36.28.57.36a1.81 1.81 0 0 0 1.9-.37l.01-.02 9.68-10.33c.16-.15.29-.33.38-.53a1.66 1.66 0 0 0-.4-1.89L14.68 26.15zm12.15-12.78-.97-.91a1.76 1.76 0 0 0-.57-.36 1.81 1.81 0 0 0-1.89.36l-.02.02-7.5 8.2-3.57-3.36a1.77 1.77 0 0 0-.57-.36 1.81 1.81 0 0 0-1.9.36l-.95.91a1.7 1.7 0 0 0-.4.56 1.66 1.66 0 0 0 .4 1.88l5.79 5.48 12.15-12.78z" /></symbol><symbol  viewBox="0 0 34 33" id="i-field-date"><path  d="M9 2.979a2 2 0 1 1 4 0v5a2 2 0 1 1-4 0v-5zm11.044 0a2 2 0 1 1 4 0v5a2 2 0 0 1-4 0v-5z" /><path  fill-rule="evenodd" clip-rule="evenodd" d="M2.833 7.444v22.735h28.334V7.444H2.833zm-2.125-2.8a.704.704 0 0 0-.708.7v26.935c0 .386.317.7.708.7h32.584a.704.704 0 0 0 .708-.7V5.344c0-.387-.317-.7-.708-.7H.708z" /><path  d="M7.556 23.126a.5.5 0 0 1 .5-.5h3.722a.5.5 0 0 1 .5.5v2.765a.5.5 0 0 1-.5.5H8.056a.5.5 0 0 1-.5-.5v-2.765zm7.555 0a.5.5 0 0 1 .5-.5h3.722a.5.5 0 0 1 .5.5v2.765a.5.5 0 0 1-.5.5h-3.722a.5.5 0 0 1-.5-.5v-2.765zm7.556 0a.5.5 0 0 1 .5-.5h3.722a.5.5 0 0 1 .5.5v2.765a.5.5 0 0 1-.5.5h-3.722a.5.5 0 0 1-.5-.5v-2.765zM7.556 14.655a.5.5 0 0 1 .5-.5h3.722a.5.5 0 0 1 .5.5v2.765a.5.5 0 0 1-.5.5H8.056a.5.5 0 0 1-.5-.5v-2.765zm7.555 0a.5.5 0 0 1 .5-.5h3.722a.5.5 0 0 1 .5.5v2.765a.5.5 0 0 1-.5.5h-3.722a.5.5 0 0 1-.5-.5v-2.765zm7.556 0a.5.5 0 0 1 .5-.5h3.722a.5.5 0 0 1 .5.5v2.765a.5.5 0 0 1-.5.5h-3.722a.5.5 0 0 1-.5-.5v-2.765z" /></symbol><symbol  viewBox="0 0 34 35" id="i-field-edit"><path  d="M33.21 31.98H.8c-.44 0-.79.67-.79 1.5s.35 1.5.79 1.5h32.4c.44 0 .79-.67.79-1.5s-.35-1.5-.79-1.5z" /><path  fill-rule="evenodd" clip-rule="evenodd" d="M28.74 10.7a5.41 5.41 0 0 0-1.01-7.6l-1.37-1.04a5.37 5.37 0 0 0-7.47 1L6.96 18.55a1.5 1.5 0 0 0-.3.82l-.52 9.05a1.46 1.46 0 0 0 2.01 1.45l8.12-3.33c.23-.1.44-.26.6-.46L28.74 10.7zM9.19 26.26l.23-3.93 3.3 2.49-3.53 1.44zm6.23-3.1-5.26-3.95 8.79-11.4 5.24 3.99-8.78 11.37zm11-14.26a2.44 2.44 0 0 0-.45-3.43l-1.36-1.04a2.45 2.45 0 0 0-3.41.46l-.46.59L26 9.46l.44-.57z" /></symbol><symbol  viewBox="0 0 34 34" id="i-field-email"><path  d="M26.389 22.365c0 1.185.38 1.777 1.14 1.777.536 0 1.028-.302 1.475-.905.47-.626.838-1.476 1.106-2.549.269-1.095.403-2.324.403-3.688 0-2.615-.581-4.94-1.744-6.974a12.068 12.068 0 0 0-4.795-4.795C21.94 4.068 19.615 3.487 17 3.487s-4.951.581-7.008 1.744C7.958 6.37 6.36 7.969 5.197 10.026c-1.14 2.034-1.71 4.359-1.71 6.974s.57 4.951 1.71 7.008a12.422 12.422 0 0 0 4.795 4.761c2.057 1.163 4.393 1.744 7.008 1.744a13.6 13.6 0 0 0 2.884-.336c1.05-.2 1.944-.469 2.682-.804.447-.201.827-.302 1.14-.302.447 0 .794.156 1.04.47.268.335.402.793.402 1.374 0 .604-.347 1.14-1.04 1.61-.692.47-1.665.827-2.917 1.073-1.23.268-2.626.402-4.191.402-3.286 0-6.226-.727-8.819-2.18-2.57-1.43-4.582-3.43-6.035-6.002C.716 23.226 0 20.287 0 17c0-3.286.715-6.214 2.146-8.785C3.599 5.622 5.611 3.61 8.181 2.179 10.775.726 13.714 0 17 0c3.286 0 6.214.726 8.785 2.18a15.081 15.081 0 0 1 6.035 6.035C33.273 10.785 34 13.714 34 17c0 2.056-.29 3.9-.872 5.532-.581 1.61-1.386 2.862-2.414 3.756-1.028.916-2.202 1.375-3.52 1.375-1.252 0-2.27-.336-3.052-1.006-.782-.67-1.174-1.576-1.174-2.716v-1.509c-.648 1.162-1.564 2.112-2.75 2.85-1.162.738-2.346 1.107-3.553 1.107-1.744 0-3.297-.392-4.661-1.174-1.364-.805-2.437-1.922-3.219-3.353-.76-1.43-1.14-3.051-1.14-4.862 0-1.81.391-3.42 1.174-4.828a8.7 8.7 0 0 1 3.32-3.353c1.43-.805 3.05-1.208 4.861-1.208 1.81 0 3.431.403 4.862 1.208a8.185 8.185 0 0 1 3.32 3.32c.804 1.43 1.207 3.05 1.207 4.861v5.365zM17 11.132c-1.14 0-2.157.246-3.051.738a5.17 5.17 0 0 0-2.08 2.079c-.491.894-.737 1.911-.737 3.051 0 1.14.246 2.157.738 3.051a5.17 5.17 0 0 0 2.079 2.08c.894.491 1.911.737 3.051.737 1.14 0 2.157-.246 3.051-.738a5.17 5.17 0 0 0 2.08-2.079c.491-.894.737-1.911.737-3.051 0-1.14-.246-2.157-.738-3.051a5.17 5.17 0 0 0-2.079-2.08c-.894-.491-1.911-.737-3.051-.737z" /></symbol><symbol viewBox="0 0 6.35 6.35"  id="i-field-expression"><path d="M5.578 290.8H.772a.64.64 0 0 0-.64.64v4.806a.64.64 0 0 0 .64.64h4.806a.64.64 0 0 0 .64-.64v-4.806a.64.64 0 0 0-.64-.64zm-2.611 5.67H.772a.225.225 0 0 1-.224-.225v-2.194h2.42zm0-2.835H.547v-2.195a.225.225 0 0 1 .225-.224h2.195zm2.835 2.611a.225.225 0 0 1-.225.225H3.382v-2.42h2.42zm0-2.611h-2.42v-2.42h2.195a.225.225 0 0 1 .225.225zm-4.91-1.21a.208.208 0 0 1 .208-.208h.45v-.45a.208.208 0 0 1 .415 0v.45h.45a.208.208 0 1 1 0 .416h-.45v.45a.208.208 0 0 1-.416 0v-.45H1.1a.208.208 0 0 1-.207-.208zm0 2.835a.208.208 0 0 1 .208-.208h1.315a.208.208 0 0 1 0 .416H1.1a.208.208 0 0 1-.208-.208zm2.835 0a.208.208 0 0 1 .208-.208H5.25a.208.208 0 0 1 0 .416H3.935a.208.208 0 0 1-.208-.208zm1.477-3.153-.318.318.318.318a.208.208 0 0 1-.294.294l-.318-.318-.318.318a.208.208 0 0 1-.294-.294l.319-.318-.319-.318a.208.208 0 0 1 .294-.294l.318.319.318-.319a.208.208 0 0 1 .294.294zm-.82 2.494a.208.208 0 1 1 .208.208.208.208 0 0 1-.207-.208zm.416 1.317a.208.208 0 1 1-.208-.208.208.208 0 0 1 .208.208z" style="stroke-width:.2646" transform="translate(0 -290.6)" /></symbol><symbol  viewBox="0 0 30 34" id="i-field-file"><path  fill-rule="evenodd" clip-rule="evenodd" d="M0 4.87v-.11C.07 2.15 2.4.1 5.13 0h14.44c.38 0 .75.15 1.01.4L0 4.87zM20.58.4l.23.22 8.78 8.3c.21.22.41.55.41.94v19.27c0 2.73-2.47 4.87-5.34 4.87H5.34C2.47 34 0 31.86 0 29.13V4.87L20.58.4zm-.66 1.68 7.94 7.52h-5.29c-1.4 0-2.65-1.02-2.65-2.44V2.08zM5.34 2.7c-1.41 0-2.48 1.05-2.48 2.18v24.26c0 1.14 1.07 2.18 2.48 2.18h19.32c1.41 0 2.48-1.04 2.48-2.18V11.2h-4.57c-2.38 0-4.42-1.74-4.42-4.03V2.7H5.35z" /></symbol><symbol viewBox="0 0 6.35 6.35"  id="i-field-formula"><path d="M6.097.239v.267H2.832l-1.06 5.497a.135.135 0 0 1-.133.108.135.135 0 0 1-.124-.082L.927 4.635l-.398.492-.211-.167.54-.667a.134.134 0 0 1 .125-.049.135.135 0 0 1 .105.08l.503 1.192.996-5.169A.135.135 0 0 1 2.72.24zM3.76 2.869l.715-.706.715.706.19-.189-.714-.706.715-.706-.191-.19-.715.707-.715-.706-.191.189.715.706-.715.706zm.709 2.249-.69-1.08-.229.142.758 1.185-.352.54.227.145L5.4 4.18l-.227-.144zM3.125 3.575h2.702v-.267H3.125z" stroke="currentColor" stroke-width=".113" /></symbol><symbol  viewBox="0 0 34 31" id="i-field-heart"><mask  id="i-field-heart_a" maskUnits="userSpaceOnUse" x="-.13" y=".65" width="35" height="31"><path d="M-.13.65h35v31h-35z" /><path d="M30.88 4.46a8.2 8.2 0 0 0-6.24-2.81c-3.4 0-5.57 2.03-6.78 3.74a12.39 12.39 0 0 0-.8 1.3 12.39 12.39 0 0 0-.81-1.3c-1.21-1.7-3.37-3.74-6.78-3.74a8.2 8.2 0 0 0-6.24 2.8 9.8 9.8 0 0 0-2.36 6.51c0 2.7 1.05 5.2 3.3 7.88 2.03 2.4 4.93 4.87 8.3 7.73 1.24 1.06 2.54 2.17 3.92 3.37l.04.04a.95.95 0 0 0 1.25 0l.04-.04a387.42 387.42 0 0 1 3.93-3.37c3.36-2.86 6.26-5.33 8.28-7.73 2.26-2.68 3.31-5.19 3.31-7.88a9.8 9.8 0 0 0-2.36-6.5zM20.42 25.13c-1.08.92-2.2 1.86-3.37 2.88a382.1 382.1 0 0 0-3.36-2.89c-6.58-5.6-10.92-9.3-10.92-14.16a7.9 7.9 0 0 1 1.88-5.25 6.33 6.33 0 0 1 4.82-2.17c2.6 0 4.28 1.6 5.23 2.95a11.22 11.22 0 0 1 1.45 2.88.95.95 0 0 0 1.8 0c.16-.47.6-1.68 1.46-2.88.95-1.35 2.63-2.95 5.23-2.95 1.88 0 3.58.77 4.82 2.17a7.9 7.9 0 0 1 1.88 5.25c0 4.87-4.34 8.57-10.92 14.16z" /></mask><path  d="M30.88 4.46a8.2 8.2 0 0 0-6.24-2.81c-3.4 0-5.57 2.03-6.78 3.74a12.39 12.39 0 0 0-.8 1.3 12.39 12.39 0 0 0-.81-1.3c-1.21-1.7-3.37-3.74-6.78-3.74a8.2 8.2 0 0 0-6.24 2.8 9.8 9.8 0 0 0-2.36 6.51c0 2.7 1.05 5.2 3.3 7.88 2.03 2.4 4.93 4.87 8.3 7.73 1.24 1.06 2.54 2.17 3.92 3.37l.04.04a.95.95 0 0 0 1.25 0l.04-.04a387.42 387.42 0 0 1 3.93-3.37c3.36-2.86 6.26-5.33 8.28-7.73 2.26-2.68 3.31-5.19 3.31-7.88a9.8 9.8 0 0 0-2.36-6.5zM20.42 25.13c-1.08.92-2.2 1.86-3.37 2.88a382.1 382.1 0 0 0-3.36-2.89c-6.58-5.6-10.92-9.3-10.92-14.16a7.9 7.9 0 0 1 1.88-5.25 6.33 6.33 0 0 1 4.82-2.17c2.6 0 4.28 1.6 5.23 2.95a11.22 11.22 0 0 1 1.45 2.88.95.95 0 0 0 1.8 0c.16-.47.6-1.68 1.46-2.88.95-1.35 2.63-2.95 5.23-2.95 1.88 0 3.58.77 4.82 2.17a7.9 7.9 0 0 1 1.88 5.25c0 4.87-4.34 8.57-10.92 14.16z" /><path  d="m30.88 4.46.56-.5-.56.5zm-13.02.93-.61-.43.61.43zm-.8 1.3-.67.36.66 1.23.66-1.23-.66-.36zm-.81-1.3-.61.43.6-.43zM3.23 4.46l-.56-.5.56.5zm.95 14.38.57-.48-.57.48zm8.28 7.73.49-.57-.49.57zm3.93 3.37.5-.56-.5.56zm.04.04-.5.56.5-.56zm1.25 0 .5.56-.5-.56zm.04-.04-.5-.56.5.56zm3.93-3.37-.49-.57.49.57zm8.28-7.73-.57-.48.57.48zm-9.51 6.29.48.57-.48-.57zM17.05 28l-.49.56.5.43.49-.43-.5-.56zm-3.36-2.88-.49.57.5-.57zM4.65 5.7l-.56-.5.56.5zm10.05.78-.61.43.61-.43zm1.45 2.88.72-.23-.72.23zm1.8 0-.7-.23.7.23zm1.46-2.88.61.43-.61-.43zm10.05-.78.56-.5-.56.5zm1.98-1.75A8.96 8.96 0 0 0 24.64.9v1.5c2.21 0 4.22.9 5.67 2.55l1.13-.99zM24.64.9c-3.75 0-6.11 2.25-7.4 4.06l1.23.87c1.14-1.61 3.1-3.43 6.17-3.43V.9zm-7.39 4.06a13.15 13.15 0 0 0-.85 1.38l1.32.71c.2-.4.46-.81.75-1.23l-1.22-.86zm.47 1.38a13.25 13.25 0 0 0-.86-1.38l-1.22.86c.3.42.54.83.75 1.23l1.33-.71zm-.86-1.38C15.58 3.15 13.22.9 9.46.9v1.5c3.08 0 5.04 1.82 6.18 3.43l1.22-.87zM9.46.9a8.96 8.96 0 0 0-6.8 3.06l1.13 1A7.46 7.46 0 0 1 9.47 2.4V.9zm-6.8 3.06a10.54 10.54 0 0 0-2.54 7h1.5c0-2.3.78-4.43 2.17-6l-1.12-1zm-2.54 7c0 2.92 1.15 5.59 3.49 8.36l1.14-.97c-2.18-2.58-3.13-4.92-3.13-7.39H.12zm3.49 8.36c2.06 2.46 5.02 4.97 8.37 7.82l.97-1.14c-3.38-2.88-6.23-5.3-8.2-7.64l-1.14.96zm8.37 7.82c1.25 1.06 2.54 2.16 3.92 3.37l.98-1.13A387.91 387.91 0 0 0 12.95 26l-.97 1.14zm3.92 3.36.04.04.98-1.13-.04-.03-.98 1.13zm.04.04c.32.28.72.42 1.12.42v-1.5a.2.2 0 0 1-.13-.05l-1 1.13zm1.12.42c.4 0 .8-.14 1.11-.42l-.98-1.13a.2.2 0 0 1-.13.05v1.5zm1.11-.42.05-.04-1-1.12-.03.03.98 1.13zm.04-.03c1.38-1.2 2.67-2.3 3.92-3.37L21.16 26a388.33 388.33 0 0 0-3.93 3.38l.98 1.13zm3.92-3.37c3.35-2.85 6.3-5.36 8.37-7.82l-1.14-.97c-1.97 2.34-4.82 4.77-8.2 7.65l.97 1.14zm8.37-7.82c2.34-2.77 3.5-5.44 3.5-8.36h-1.5c0 2.47-.96 4.8-3.14 7.4l1.15.96zm3.5-8.36c0-2.64-.9-5.13-2.56-7l-1.12 1a9.04 9.04 0 0 1 2.17 6H34zm-14.07 13.6c-1.08.91-2.2 1.86-3.37 2.88l.99 1.13a438.8 438.8 0 0 1 3.35-2.87l-.97-1.15zm-2.38 2.88a441.22 441.22 0 0 0-3.37-2.89l-.97 1.15c1.08.92 2.19 1.86 3.35 2.87l.99-1.13zm-3.37-2.89c-3.3-2.8-5.99-5.1-7.85-7.27-1.85-2.16-2.81-4.13-2.81-6.32h-1.5c0 2.69 1.2 5 3.17 7.3 1.96 2.28 4.74 4.65 8.02 7.44l.97-1.15zM3.52 10.96c0-1.84.61-3.53 1.7-4.76l-1.13-.99a8.65 8.65 0 0 0-2.07 5.75h1.5zm1.7-4.76a5.58 5.58 0 0 1 4.25-1.9V2.8c-2.09 0-4 .85-5.38 2.41l1.13 1zm4.25-1.9c2.25 0 3.73 1.37 4.62 2.62l1.22-.87A7.14 7.14 0 0 0 9.47 2.8v1.5zm4.62 2.62a10.48 10.48 0 0 1 1.35 2.68l1.43-.47a11.97 11.97 0 0 0-1.56-3.08l-1.22.87zm1.35 2.68c.23.7.88 1.17 1.61 1.17v-1.5a.2.2 0 0 1-.18-.13l-1.43.46zm1.61 1.17a1.7 1.7 0 0 0 1.62-1.17l-1.43-.47a.2.2 0 0 1-.18.14v1.5zm1.62-1.17a10.48 10.48 0 0 1 1.35-2.68l-1.22-.87a11.98 11.98 0 0 0-1.56 3.09l1.43.46zm1.35-2.68c.89-1.25 2.37-2.63 4.62-2.63V2.8c-2.95 0-4.83 1.83-5.84 3.26l1.22.87zm4.62-2.63a5.6 5.6 0 0 1 4.25 1.91l1.13-.99a7.08 7.08 0 0 0-5.38-2.42v1.5zM28.9 6.2a7.16 7.16 0 0 1 1.7 4.77h1.5c0-2.18-.72-4.23-2.07-5.76l-1.13 1zm1.7 4.77c0 2.18-.96 4.15-2.81 6.31-1.86 2.18-4.54 4.46-7.85 7.27l.97 1.15c3.28-2.79 6.06-5.15 8.02-7.44 1.97-2.3 3.17-4.61 3.17-7.3h-1.5z" mask="url(#i-field-heart_a)" /></symbol><symbol  viewBox="0 0 35 35" id="i-field-heart2"><path  d="M1.97 30.6a1.92 1.92 0 0 0-1.05 2v.01a1.9 1.9 0 0 0 1.6 1.6c.39.07.8.1 1.23.1 2.04 0 4.16-.67 5.95-1.86a16.9 16.9 0 0 0 7.8 1.9c4.5 0 8.75-1.75 11.93-4.94a16.77 16.77 0 0 0 4.95-11.93c0-4.5-1.76-8.74-4.95-11.93A16.77 16.77 0 0 0 17.5.6 16.89 16.89 0 0 0 4.3 27.98c-.7 1.36-1.5 2.22-2.33 2.63zm25.61-3.04a14.17 14.17 0 0 1-10.08 4.18c-2.55 0-5.05-.68-7.22-1.96a1.34 1.34 0 0 0-.66-.18 1.35 1.35 0 0 0-.8.26 8.69 8.69 0 0 1-3.84 1.72 11.2 11.2 0 0 0 2.06-3.27 1.31 1.31 0 0 0-.22-1.4 14.27 14.27 0 0 1 .6-19.52A14.17 14.17 0 0 1 17.5 3.2a14.28 14.28 0 0 1 10.08 24.35z" /><path  d="m9.2 19.62 7.46 7.46a1.18 1.18 0 0 0 1.67 0l7.47-7.44a5.8 5.8 0 0 0 1.72-4.13 5.82 5.82 0 0 0-1.7-4.13 5.8 5.8 0 0 0-4.13-1.7 5.8 5.8 0 0 0-4.13 1.7l-.06.06-.06-.06a5.8 5.8 0 0 0-4.13-1.7 5.8 5.8 0 0 0-4.12 1.7 5.76 5.76 0 0 0-1.7 4.12c0 1.56.61 3.02 1.7 4.12zm15.95-4.12c0 .93-.36 1.8-1.02 2.46l-6.64 6.61-6.62-6.62a3.44 3.44 0 0 1-1.02-2.46 3.44 3.44 0 0 1 1.01-2.45 3.44 3.44 0 0 1 2.45-1c.93 0 1.8.35 2.46 1.01l.9.9a1.18 1.18 0 0 0 1.67 0l.9-.9a3.45 3.45 0 0 1 2.45-1.01 3.44 3.44 0 0 1 2.45 1.02 3.4 3.4 0 0 1 1.01 2.44z" /></symbol><symbol viewBox="0 0 20 20"  id="i-field-hidden"><switch transform="matrix(-.2101 0 0 .2101 -178.9 -200.36)"><g><path d="M-852.1 1000c-2.5-3.3-8.6-10.2-17.8-15.8l-6.5 6.5c6.4 3.5 11.2 7.9 14.3 11.2-4.7 5-13.3 12.5-25.5 15.6 4.8-3.5 7.9-9.2 7.9-15.6 0-2.4-.4-4.7-1.2-6.8l-31.1 31.1c4 1 8.4 1.5 13 1.5 26.2 0 42.2-18 46.9-24 .8-1 .8-2.6 0-3.7zm-9.4-38.7c-1.7-1.7-4.5-1.7-6.3 0l-16.9 16.9c-4.4-1.2-9.2-1.9-14.4-1.9-26.2 0-42.2 18-46.9 24-.9 1.1-.9 2.7 0 3.8 2.6 3.4 9 10.8 18.9 16.4l-14 14c-1.7 1.7-1.7 4.5 0 6.3.9.9 2 1.3 3.1 1.3s2.3-.4 3.1-1.3l73.2-73.2c2-1.8 2-4.6.2-6.3zm-74.3 40.8c4.7-5 13.3-12.5 25.5-15.6-4.8 3.5-7.9 9.2-7.9 15.6 0 2.8.6 5.5 1.7 8l-3.8 3.8c-7.1-3.6-12.3-8.3-15.5-11.8z" /></g></switch></symbol><symbol  viewBox="0 0 33 33" id="i-field-idea"><g  clip-path="url(#i-field-idea_a)"><path d="M16.5 7.46a8.55 8.55 0 0 0-8.54 8.53 8.43 8.43 0 0 0 1.83 5.27l.75.89v.02c.81.92 1.64 1.89 1.95 3.02.07.26.08.76.08 1.14V27c0 .6.48 1.08 1.08 1.08h5.66A1.08 1.08 0 0 0 20.39 27v-.66c0-.5.02-.87.07-1.06.31-1.13 1.23-2.2 2.05-3.17l.04-.04c.23-.28.46-.54.66-.8A8.43 8.43 0 0 0 25.04 16c0-4.7-3.83-8.53-8.54-8.53zm5.01 12.46-.61.74-.04.05c-.96 1.12-2.04 2.4-2.48 3.99-.06.22-.13.56-.15 1.2h-3.5a5.08 5.08 0 0 0-.15-1.27c-.44-1.61-1.52-2.87-2.4-3.88v-.01a23.96 23.96 0 0 1-.7-.82 6.29 6.29 0 0 1-1.36-3.93 6.38 6.38 0 0 1 6.38-6.37 6.38 6.38 0 0 1 6.38 6.37 6.29 6.29 0 0 1-1.37 3.93zm-2.2 8.45h-5.66a1.08 1.08 0 1 0 0 2.17h5.66a1.08 1.08 0 1 0 0-2.17zm-1.42 2.47h-2.83a1.08 1.08 0 0 0 0 2.16h2.83a1.08 1.08 0 0 0 0-2.16zM31.41 14.9h-3.73a1.08 1.08 0 0 0 0 2.16h3.73a1.08 1.08 0 0 0 0-2.16zM6.4 16a1.08 1.08 0 0 0-1.08-1.08H1.59a1.08 1.08 0 0 0 0 2.16h3.73A1.08 1.08 0 0 0 6.4 16zM16.5 5.9a1.08 1.08 0 0 0 1.08-1.08V1.08a1.08 1.08 0 1 0-2.16 0v3.73c0 .6.48 1.08 1.08 1.08zm8.67 17.25a1.08 1.08 0 0 0-1.53 1.52l2.64 2.64a1.08 1.08 0 0 0 1.53 0 1.08 1.08 0 0 0 0-1.53l-2.64-2.63zM7.83 8.84a1.08 1.08 0 0 0 1.53 0 1.08 1.08 0 0 0 0-1.52L6.72 4.68a1.08 1.08 0 1 0-1.53 1.53l2.64 2.64zm0 14.3-2.64 2.63a1.08 1.08 0 1 0 1.53 1.53l2.64-2.64a1.08 1.08 0 1 0-1.53-1.52zM24.4 9.17c.28 0 .55-.11.76-.32l2.64-2.64a1.08 1.08 0 1 0-1.53-1.53l-2.64 2.64a1.08 1.08 0 0 0 .77 1.84z" /></g><defs ><clipPath id="i-field-idea_a"><path d="M0 0h33v33H0z" /></clipPath></defs></symbol><symbol  viewBox="0 0 34 31" id="i-field-img"><path  fill-rule="evenodd" clip-rule="evenodd" d="M8.5 12.979a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm0 2a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7zm18.295.15c1.257-.923 2.882-1.777 4.205-2.079v3.038c-.733.24-1.56.69-2.496 1.377-1.896 1.392-3.866 3.477-5.841 5.66l-.858.953c-1.24 1.38-2.453 2.717-3.653 3.901H13.57c.447-.158.813-.515 1.595-1.184.19-.163.383-.337.58-.52l-.003-.003a37.89 37.89 0 0 0-2.946-2.231c-2.458-1.673-5.309-3.12-7.607-3.12-.683 0-1.526-.089-2.189.079v-2.724c.657-.137 1.43-.252 2.189-.252 3.247 0 6.737 1.923 9.233 3.62a40.795 40.795 0 0 1 3.359 2.56c.59-.637 1.206-1.322 1.847-2.034l.891-.989c1.957-2.163 4.109-4.463 6.276-6.053z" /><path  fill-rule="evenodd" clip-rule="evenodd" d="M3 3.979v24h28v-24H3zm-1-3a2 2 0 0 0-2 2v26a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2v-26a2 2 0 0 0-2-2H2z" /></symbol><symbol  viewBox="0 0 34 34" id="i-field-link"><path  fill-rule="evenodd" clip-rule="evenodd" d="M20.91 3.156c2.991-2.902 7.858-2.903 10.85 0A7.288 7.288 0 0 1 34 8.422a7.286 7.286 0 0 1-2.24 5.265l-6.646 6.45a7.77 7.77 0 0 1-5.425 2.177 7.77 7.77 0 0 1-5.425-2.178 1.512 1.512 0 0 1 0-2.184 1.626 1.626 0 0 1 2.25 0c1.75 1.698 4.6 1.698 6.35 0l6.645-6.45a4.258 4.258 0 0 0 1.308-3.08 4.258 4.258 0 0 0-1.308-3.081 4.524 4.524 0 0 0-3.175-1.27A4.525 4.525 0 0 0 23.16 5.34l-5.082 4.932a1.626 1.626 0 0 1-2.25 0 1.512 1.512 0 0 1 0-2.184l5.082-4.932z" /><path  fill-rule="evenodd" clip-rule="evenodd" d="M8.886 14.362c3.124-3.03 8.205-3.03 11.327 0a1.562 1.562 0 0 1 0 2.255 1.679 1.679 0 0 1-2.323 0 4.76 4.76 0 0 0-3.34-1.335 4.761 4.761 0 0 0-3.34 1.335l-6.548 6.355a4.494 4.494 0 0 0 0 6.482 4.76 4.76 0 0 0 3.34 1.335 4.76 4.76 0 0 0 3.34-1.335l4.502-4.369a1.678 1.678 0 0 1 2.323 0 1.561 1.561 0 0 1 0 2.256l-4.502 4.368c-1.507 1.464-3.52 2.27-5.663 2.27-2.143 0-4.156-.806-5.663-2.27A7.606 7.606 0 0 1 0 26.214c0-2.08.83-4.034 2.338-5.497l6.548-6.355z" /></symbol><symbol  viewBox="0 0 34 35" id="i-field-list"><path  fill-rule="evenodd" clip-rule="evenodd" d="M4 6.98a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0 2a4 4 0 1 0 0-8 4 4 0 0 0 0 8z" /><path  d="M12.67 4.98c0-.83.67-1.5 1.5-1.5H32.5a1.5 1.5 0 1 1 0 3H14.16a1.5 1.5 0 0 1-1.5-1.5z" /><path  fill-rule="evenodd" clip-rule="evenodd" d="M4 19.97a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0 2a4 4 0 1 0 0-8 4 4 0 0 0 0 8z" /><path  d="M12.67 17.97c0-.82.67-1.49 1.5-1.49H32.5a1.5 1.5 0 1 1 0 2.98H14.16a1.5 1.5 0 0 1-1.5-1.49z" /><path  fill-rule="evenodd" clip-rule="evenodd" d="M4 32.97a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0 2a4 4 0 1 0 0-8 4 4 0 0 0 0 8z" /><path  d="M12.67 30.97c0-.83.67-1.5 1.5-1.5H32.5a1.5 1.5 0 1 1 0 2.99H14.16a1.5 1.5 0 0 1-1.5-1.5z" /></symbol><symbol  viewBox="0 0 26 36" id="i-field-location"><path  d="m2.579 19.35 9.526 15.29c.228.367.63.589 1.062.589h.01a1.25 1.25 0 0 0 1.062-.605l9.283-15.44a12.154 12.154 0 0 0 1.728-6.252C25.25 6.202 19.754.73 13 .73S.75 6.202.75 12.932c0 2.274.632 4.492 1.829 6.418zm18.798-1.445-8.23 13.686-8.444-13.555a9.67 9.67 0 0 1-1.466-5.104c0-5.353 4.386-9.724 9.763-9.724s9.757 4.37 9.757 9.724a9.673 9.673 0 0 1-1.38 4.973z" /><path  d="M13 7.729a5.256 5.256 0 0 0-5.25 5.25 5.244 5.244 0 0 0 5.25 5.25c2.97 0 5.25-2.406 5.25-5.25A5.256 5.256 0 0 0 13 7.729zm0 8.344a3.097 3.097 0 0 1-3.094-3.094c0-1.7 1.394-3.094 3.094-3.094s3.089 1.393 3.089 3.094A3.09 3.09 0 0 1 13 16.073z" /></symbol><symbol  viewBox="0 0 32 34" id="i-field-mail"><path  d="M15.63.81 11.67 5.3H6.93A2.63 2.63 0 0 0 4.3 7.9v2.91l-3.47 3-.09.08v16.7a2.63 2.63 0 0 0 2.62 2.63h24.89a2.63 2.63 0 0 0 2.62-2.62V13.9l-.09-.08-3.47-3.01V7.9a2.63 2.63 0 0 0-2.62-2.62h-4.74L16 .82l-.19-.2-.18.2zm10 15.58-7.66 6.86h-4.43L5.99 16.5V7.9c0-.3.1-.53.25-.69a.94.94 0 0 1 .69-.25H24.7c.22 0 .45.11.64.3.19.18.3.42.3.64v8.48zm1.7-1.38v-1.99l1.14 1-1.15.99zM15.8 2.93l1.76 2.36h-3.61l1.85-2.36zM3.15 14.03l1.16-1v2.07l-1.16-1.08zm8.14 9.47-8.72 7.58a.78.78 0 0 1-.14-.47V15.75l8.86 7.75zm7.99 1.43 7.71 6.61H4.64l7.71-6.6h6.93zm9.91-2.02v7.7a.77.77 0 0 1-.13.47l-8.72-7.58 8.85-7.75v7.16z" /></symbol><symbol  viewBox="0 0 34 35" id="i-field-name"><path  d="M28.747 22.816a16.561 16.561 0 0 0-6.313-3.936c2.517-1.723 4.17-4.607 4.17-7.868 0-5.264-4.308-9.547-9.604-9.547-5.295 0-9.604 4.283-9.604 9.547 0 3.26 1.654 6.145 4.17 7.868a16.561 16.561 0 0 0-6.312 3.936C2.58 25.473.93 28.877.5 32.555c-.125 1.065.762 1.938 1.842 1.938h.64c0-.659.047-1.308.137-1.943.953-6.766 6.815-11.99 13.88-11.99 7.066 0 12.927 5.224 13.88 11.99.09.636.136 1.284.136 1.943h.642c1.079 0 1.966-.873 1.841-1.938-.43-3.678-2.08-7.082-4.753-9.74zM17 17.979c-3.864 0-7.008-3.125-7.008-6.967 0-3.842 3.144-6.967 7.008-6.967s7.008 3.125 7.008 6.967c0 3.842-3.144 6.967-7.008 6.967z" /><path  d="M3.12 32.55c-.09.636-.136 1.284-.136 1.943h28.032c0-.659-.046-1.308-.135-1.943H3.12z" /><path  fill-rule="evenodd" clip-rule="evenodd" d="M3.12 32.55h27.76a13.64 13.64 0 0 0-.077-.485C29.644 25.535 23.896 20.559 17 20.559c-6.895 0-12.644 4.976-13.803 11.506a13.726 13.726 0 0 0-.077.485zm.573-.485h26.614c-1.153-6.26-6.683-11.02-13.307-11.02-6.624 0-12.154 4.76-13.307 11.02zm-1.35 2.428c-1.08 0-1.967-.873-1.842-1.938.43-3.678 2.08-7.082 4.753-9.74a16.576 16.576 0 0 1 6.312-3.935 9.607 9.607 0 0 1-.475-.348c-2.248-1.748-3.695-4.47-3.695-7.52 0-5.264 4.309-9.547 9.604-9.547 5.296 0 9.604 4.283 9.604 9.547 0 3.05-1.447 5.771-3.695 7.52-.154.12-.313.237-.475.348a16.576 16.576 0 0 1 6.313 3.936c2.673 2.657 4.323 6.061 4.752 9.739.125 1.065-.762 1.938-1.841 1.938H2.343zm21.092-15.758a17.074 17.074 0 0 1 5.657 3.737c2.75 2.735 4.45 6.24 4.893 10.026.162 1.393-.996 2.481-2.328 2.481H2.342c-1.331 0-2.49-1.088-2.327-2.48.443-3.787 2.142-7.292 4.893-10.027a17.075 17.075 0 0 1 5.657-3.737c-2.232-1.841-3.657-4.619-3.657-7.723C6.908 5.479 11.435.979 17 .979s10.092 4.5 10.092 10.033c0 3.104-1.425 5.882-3.657 7.723zM10.48 11.012c0 3.573 2.926 6.481 6.52 6.481 3.594 0 6.52-2.908 6.52-6.481S20.594 4.531 17 4.531c-3.594 0-6.52 2.908-6.52 6.481zm-.488 0c0 3.842 3.144 6.967 7.008 6.967s7.008-3.125 7.008-6.967c0-3.842-3.144-6.967-7.008-6.967S9.992 7.17 9.992 11.012z" /></symbol><symbol  viewBox="0 0 34 23" id="i-field-number"><path  d="M28 3.048h2.749V21H28V3.048zM32.878.979c.62 0 1.122.463 1.122 1.034 0 .572-.502 1.035-1.122 1.035h-6.594c-.62 0-1.122-.463-1.122-1.035 0-.57.503-1.034 1.122-1.034h6.594z" /><path  d="M32.716 20.91c.62 0 1.122.463 1.122 1.035 0 .57-.503 1.034-1.122 1.034h-6.594c-.62 0-1.122-.463-1.122-1.034 0-.572.502-1.035 1.122-1.035h6.594z" /><path  fill-rule="evenodd" clip-rule="evenodd" d="M2.582 8.207a2.41 2.41 0 0 1-.883.18c-.44 0-.851-.139-1.188-.441L.5 7.938l-.008-.009A1.617 1.617 0 0 1 0 6.733c0-.332.082-.66.277-.946.208-.318.512-.52.846-.633l3.089-1.067c.18-.058.385-.108.583-.108.45 0 .868.153 1.195.486.335.327.485.753.485 1.206v12.86c0 .469-.183.88-.513 1.196a1.699 1.699 0 0 1-1.206.478c-.447 0-.846-.168-1.167-.478a1.625 1.625 0 0 1-.513-1.195V8.005l-.494.202zm9.375 11.512-.009-.009a1.657 1.657 0 0 1-.476-1.178c0-.445.152-.856.471-1.174l5.59-6.286c.799-.88 1.057-1.5 1.057-1.892 0-.686-.183-1.159-.486-1.494l-.008-.008c-.279-.317-.674-.504-1.277-.504a1.81 1.81 0 0 0-.979.276l-.013.008c-.3.177-.534.414-.71.72a2.105 2.105 0 0 0-.246 1.002c0 .462-.188.86-.504 1.169a1.632 1.632 0 0 1-1.195.486c-.45 0-.859-.162-1.187-.478a1.604 1.604 0 0 1-.513-1.177c0-.968.235-1.861.712-2.661a5.118 5.118 0 0 1 1.914-1.864l.004-.002c.821-.454 1.732-.674 2.717-.674.976 0 1.863.204 2.639.636a4.399 4.399 0 0 1 1.816 1.857c.433.792.636 1.703.636 2.708 0 .707-.217 1.408-.603 2.094a9.588 9.588 0 0 1-1.338 1.84l-3.428 3.744h3.926c.454 0 .871.156 1.206.478.33.317.513.728.513 1.196 0 .468-.183.878-.513 1.195a1.699 1.699 0 0 1-1.206.478h-7.295c-.454 0-.872-.155-1.207-.478l-.008-.008z" /></symbol><symbol  viewBox="0 0 33 29" id="i-field-paypal"><path  fill-rule="evenodd" clip-rule="evenodd" d="M28.199 9.49H14.886a1.645 1.645 0 0 1-1.641-1.642c0-.904.737-1.641 1.64-1.641h15.827c.545 0 1.067.272 1.37.741.3.462.354 1.035.137 1.55l-.002.006L27 20.494c-.268.59-.84.979-1.501.979H11.177a1.641 1.641 0 0 1-1.586-1.205v-.002L5.033 3.783H2.14A1.645 1.645 0 0 1 .5 2.14C.5 1.237 1.237.5 2.141.5H6.27c.734 0 1.392.488 1.586 1.205v.002l4.558 16.483h11.998l3.788-8.7Z" /><path  d="M13.092 29a2.59 2.59 0 0 0 2.587-2.587 2.59 2.59 0 0 0-2.587-2.587 2.59 2.59 0 0 0-2.587 2.587A2.59 2.59 0 0 0 13.092 29Zm10.168 0h.191a2.582 2.582 0 0 0 1.77-.894c.456-.514.665-1.18.627-1.883a2.593 2.593 0 0 0-2.758-2.397c-1.427.095-2.492 1.35-2.397 2.758C20.788 27.934 21.91 29 23.26 29Z" /></symbol><symbol  viewBox="0 0 35 35" id="i-field-quest"><mask  id="i-field-quest_a" maskUnits="userSpaceOnUse" x="0" y="-.021" width="35" height="35"><path d="M0-.021h35v35H0z" /><path d="M16.995 23.1c-.944 0-1.708.787-1.708 1.73 0 .922.742 1.73 1.708 1.73s1.73-.808 1.73-1.73c0-.943-.787-1.73-1.73-1.73zm.292-13.098c-3.033 0-4.426 1.798-4.426 3.01 0 .877.741 1.281 1.348 1.281 1.213 0 .719-1.73 3.01-1.73 1.124 0 2.022.495 2.022 1.528 0 1.214-1.258 1.91-2 2.54-.65.56-1.505 1.482-1.505 3.414 0 1.168.315 1.505 1.236 1.505 1.101 0 1.326-.494 1.326-.92 0-1.17.022-1.843 1.258-2.81.606-.47 2.516-1.999 2.516-4.11 0-2.112-1.91-3.708-4.785-3.708z" /><path d="M17.5.979C8.38.979 1 8.359 1 17.479v15.21c0 .713.577 1.29 1.29 1.29H17.5c9.119 0 16.5-7.38 16.5-16.5 0-9.12-7.38-16.5-16.5-16.5zm0 30.422H3.578V17.479c0-7.694 6.227-13.922 13.922-13.922 7.694 0 13.922 6.227 13.922 13.922 0 7.694-6.227 13.922-13.922 13.922z" /></mask><path  d="M16.995 23.1c-.944 0-1.708.787-1.708 1.73 0 .922.742 1.73 1.708 1.73s1.73-.808 1.73-1.73c0-.943-.787-1.73-1.73-1.73zm.292-13.098c-3.033 0-4.426 1.798-4.426 3.01 0 .877.741 1.281 1.348 1.281 1.213 0 .719-1.73 3.01-1.73 1.124 0 2.022.495 2.022 1.528 0 1.214-1.258 1.91-2 2.54-.65.56-1.505 1.482-1.505 3.414 0 1.168.315 1.505 1.236 1.505 1.101 0 1.326-.494 1.326-.92 0-1.17.022-1.843 1.258-2.81.606-.47 2.516-1.999 2.516-4.11 0-2.112-1.91-3.708-4.785-3.708z" /><path  d="M17.5.979C8.38.979 1 8.359 1 17.479v15.21c0 .713.577 1.29 1.29 1.29H17.5c9.119 0 16.5-7.38 16.5-16.5 0-9.12-7.38-16.5-16.5-16.5zm0 30.422H3.578V17.479c0-7.694 6.227-13.922 13.922-13.922 7.694 0 13.922 6.227 13.922 13.922 0 7.694-6.227 13.922-13.922 13.922z" /><path  d="m17.242 16.63-.162-.19h-.002l.164.19zm2.314 1.19-.154-.197.154.198zM3.578 31.4h-.25v.25h.25v-.25zm13.417-8.55c-1.086 0-1.958.903-1.958 1.98h.5c0-.81.656-1.48 1.458-1.48v-.5zm-1.958 1.98c0 1.051.845 1.98 1.958 1.98v-.5c-.82 0-1.458-.688-1.458-1.48h-.5zm1.958 1.98c1.108 0 1.98-.924 1.98-1.98h-.5c0 .788-.657 1.48-1.48 1.48v.5zm1.98-1.98c0-1.081-.899-1.98-1.98-1.98v.5c.805 0 1.48.675 1.48 1.48h.5zM17.287 9.753c-3.125 0-4.676 1.867-4.676 3.26h.5c0-1.032 1.234-2.76 4.176-2.76v-.5zm-4.676 3.26c0 .518.222.909.54 1.164.31.25.704.367 1.058.367v-.5c-.253 0-.533-.085-.745-.256a.95.95 0 0 1-.353-.774h-.5zm1.598 1.531c.377 0 .636-.14.838-.344.095-.097.176-.206.248-.31.078-.112.14-.207.217-.313.146-.202.311-.386.561-.523.25-.138.605-.24 1.146-.24v-.5c-.605 0-1.047.115-1.387.302-.34.187-.557.436-.725.666-.08.11-.159.231-.222.322-.068.099-.13.18-.194.245a.615.615 0 0 1-.482.195v.5zm3.01-1.73c.53 0 .98.118 1.29.332.3.208.482.514.482.946h.5c0-.6-.266-1.058-.697-1.357-.42-.29-.981-.42-1.575-.42v.5zm1.772 1.278c0 .511-.262.928-.648 1.311-.192.192-.41.368-.63.54-.215.167-.442.336-.633.497l.324.382c.18-.153.388-.307.616-.485.224-.174.461-.366.676-.579.428-.426.795-.963.795-1.666h-.5zm-1.913 2.35c-.336.29-.738.684-1.053 1.263-.316.581-.538 1.336-.538 2.341h.5c0-.927.204-1.599.477-2.102.275-.504.626-.852.941-1.124l-.327-.378zm-1.591 3.604c0 .59.075 1.047.33 1.352.269.318.676.403 1.155.403v-.5c-.442 0-.652-.083-.772-.225-.131-.157-.213-.45-.213-1.03h-.5zm1.485 1.755c.583 0 .986-.13 1.244-.366.263-.24.332-.549.332-.805h-.5c0 .17-.044.322-.169.436-.13.118-.389.235-.907.235v.5zm1.576-1.17c0-.593.008-1.008.15-1.395.139-.376.416-.751 1.012-1.217l-.308-.394c-.64.5-.992.945-1.173 1.439-.178.484-.181.99-.181 1.566h.5zm1.161-2.612c.307-.238.956-.754 1.53-1.483.571-.73 1.083-1.693 1.083-2.825h-.5c0 .978-.443 1.835-.977 2.516-.534.68-1.143 1.164-1.443 1.398l.307.394zm2.613-4.309c0-2.3-2.08-3.957-5.035-3.957v.5c2.795 0 4.535 1.535 4.535 3.457h.5zM17.5.73C8.243.729.75 8.221.75 17.479h.5c0-8.982 7.269-16.25 16.25-16.25v-.5zM.75 17.479v15.21h.5V17.48h-.5zm0 15.21c0 .851.689 1.54 1.54 1.54v-.5a1.04 1.04 0 0 1-1.04-1.04h-.5zm1.54 1.54H17.5v-.5H2.29v.5zm15.21 0c9.257 0 16.75-7.492 16.75-16.75h-.5c0 8.982-7.269 16.25-16.25 16.25v.5zm16.75-16.75c0-9.257-7.492-16.75-16.75-16.75v.5c8.982 0 16.25 7.269 16.25 16.25h.5zM17.5 31.151H3.578v.5H17.5v-.5zm-13.672.25V17.479h-.5v13.922h.5zm0-13.922c0-7.556 6.115-13.672 13.672-13.672v-.5c-7.833 0-14.172 6.34-14.172 14.172h.5zM17.5 3.807c7.556 0 13.672 6.115 13.672 13.672h.5c0-7.833-6.34-14.172-14.172-14.172v.5zM31.172 17.48c0 7.556-6.115 13.672-13.672 13.672v.5c7.833 0 14.172-6.34 14.172-14.172h-.5z" mask="url(#i-field-quest_a)" /></symbol><symbol  viewBox="0 0 36 36" id="i-field-quest2"><path  fill-rule="evenodd" clip-rule="evenodd" d="M19.648 13.059c-.163-.636-.628-1.221-1.358-1.367l-.011-.002-.012-.003c-.603-.151-1.042-.015-1.542.319-.375.25-.554.811-.554 1.33 0 .406-.137.782-.413 1.058-.277.276-.653.413-1.058.413s-.78-.137-1.057-.413c-.276-.276-.413-.652-.413-1.057 0-1.51.65-2.818 1.74-3.69 1.062-.85 2.585-1.312 3.946-.867 1.7.432 3.212 1.719 3.647 3.666.44 1.765-.24 3.5-1.714 4.765l-.006.005-.007.005c-.884.708-1.528 1.711-1.558 2.647.107.398.041.795-.219 1.098-.265.31-.665.442-1.059.442-.405 0-.78-.138-1.057-.414-.276-.276-.413-.652-.413-1.057a6.29 6.29 0 0 1 2.53-5.059c.313-.235.487-.491.574-.768.088-.282.097-.626.014-1.051ZM16.56 25.29c.03-.18.102-.452.31-.66a1.438 1.438 0 0 1 2.078.012c.2.2.522.522.522 1.118a1.298 1.298 0 0 1-.418.897.846.846 0 0 1-.088.067.849.849 0 0 1-.068.089 1.14 1.14 0 0 1-.275.225 1.29 1.29 0 0 1-.621.193c-.219 0-.451-.094-.612-.174a2.054 2.054 0 0 1-.518-.36c-.341-.342-.34-.717-.34-.922v-.022c0-.096 0-.276.03-.463Z" /><path  fill-rule="evenodd" clip-rule="evenodd" d="M.9 17.995C.9 8.541 8.545.895 18 .895c9.455 0 17.1 7.646 17.1 17.1 0 9.456-7.645 17.1-17.1 17.1-9.455 0-17.1-7.644-17.1-17.1Zm3.141 0c0 7.628 6.332 13.96 13.959 13.96 7.628 0 13.959-6.332 13.959-13.96 0-7.627-6.331-13.958-13.959-13.958-7.627 0-13.959 6.331-13.959 13.959Z" /></symbol><symbol viewBox="0 0 34 32"  id="i-field-rating"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.004 9.95a.99.99 0 0 1-.819.588l-10.284.94c-.866.08-1.216 1.143-.562 1.71l7.759 6.725a.97.97 0 0 1 .312.95l-2.27 9.94c-.192.838.725 1.495 1.473 1.057l8.88-5.203a1.008 1.008 0 0 1 1.013 0l8.88 5.203c.749.438 1.666-.219 1.474-1.056l-2.27-9.94a.97.97 0 0 1 .313-.951l7.758-6.725c.654-.567.304-1.63-.562-1.71l-10.284-.94a.99.99 0 0 1-.82-.588L17.912.591c-.344-.788-1.478-.788-1.822 0l-4.085 9.36ZM17 6.004l-2.246 5.146a3.99 3.99 0 0 1-3.296 2.375l-5.563.51 4.167 3.611a3.97 3.97 0 0 1 1.273 3.885l-1.232 5.393 4.874-2.855a4.003 4.003 0 0 1 4.046 0l4.874 2.855-1.232-5.393a3.97 3.97 0 0 1 1.273-3.885l4.167-3.612-5.563-.509a3.99 3.99 0 0 1-3.296-2.375L17 6.004Z" /></symbol><symbol  viewBox="0 0 34 32" id="i-field-signature"><path  d="M29.97 29H5.7a2.92 2.92 0 0 1-2.86-2.98 2.92 2.92 0 0 1 2.86-2.97h2.85c.79 0 1.43-.67 1.43-1.5 0-.81-.64-1.48-1.43-1.48H5.71A5.84 5.84 0 0 0 0 26.02a5.84 5.84 0 0 0 5.7 5.96h24.27c.79 0 1.43-.67 1.43-1.49S30.76 29 29.97 29Z" /><path  fill-rule="evenodd" clip-rule="evenodd" d="M22.5 4.92a.23.23 0 0 1-.04.03.2.2 0 0 0-.05.03l-.03.05-.03.04-7.32 7.64a7.93 7.93 0 0 0-2.19 5.51v3.34c0 .82.64 1.49 1.43 1.49h3.2c2 0 3.87-.81 5.29-2.28L32.4 10.7a5.89 5.89 0 0 0 0-8.06 5.32 5.32 0 0 0-7.72 0l-2.19 2.28Zm-1.76 13.74a4.52 4.52 0 0 1-3.27 1.41H15.7v-2.19a4.9 4.9 0 0 1 1.35-3.07l6.38-6.66 3.7 3.85-6.39 6.66ZM30.4 8.6l-1.25 1.3-3.69-3.85 1.24-1.3.26-.24a2.54 2.54 0 0 1 3.43.24 2.82 2.82 0 0 1 0 3.85Z" /></symbol><symbol  viewBox="0 0 26 34" id="i-field-tag"><path  d="M24.15 10.73a2 2 0 0 1 1.41.46c.36.31.5.76.42 1.35-.03.54-.28.96-.75 1.27-.44.3-.98.46-1.62.46h-2.78l-1 6h2.66c.64 0 1.1.15 1.41.46.33.28.5.69.5 1.22 0 .48-.24.92-.7 1.31-.45.37-1.03.55-1.75.55h-2.99l-1.37 8.06a2.84 2.84 0 0 1-.74 1.56 2 2 0 0 1-1.5.55c-.5 0-.9-.17-1.2-.5-.3-.34-.46-.78-.46-1.32 0-.2.02-.35.04-.46l1.3-7.9h-6.4L7.3 31.88a2.68 2.68 0 0 1-.79 1.52c-.38.4-.87.59-1.45.59-.52 0-.94-.14-1.24-.42-.3-.31-.46-.76-.46-1.35 0-.23.01-.4.04-.51l1.33-7.89H1.87c-.56 0-1.01-.13-1.37-.38a1.37 1.37 0 0 1-.5-1.1c0-.67.2-1.18.62-1.52a2.72 2.72 0 0 1 1.79-.55h3.2l.95-5.99H3.49a2.4 2.4 0 0 1-1.42-.38c-.33-.28-.5-.67-.5-1.18 0-.65.21-1.14.63-1.48a3 3 0 0 1 1.83-.5h3.36L8.76 3.1C9.03 1.69 9.78.98 11 .98c.52 0 .94.17 1.24.5.3.32.46.74.46 1.27 0 .23-.02.4-.04.5l-1.33 7.48h6.39l1.37-7.64c.1-.62.36-1.13.75-1.52a2 2 0 0 1 1.49-.6c.53 0 .93.16 1.2.47.3.31.46.72.46 1.23 0 .25-.01.45-.04.59l-1.29 7.47h2.5zm-7.26 3.54h-6.4l-.95 6h6.35l1-6z" /></symbol><symbol  viewBox="0 0 31 35" id="i-field-telephone"><path  fill-rule="evenodd" clip-rule="evenodd" d="M4.002 10.285c.052-2.116 1.624-5.556 3.942-6.103.836-.213 1.827-.29 2.68-.155 2.077.327 3.28 5.116 3.001 6.798-.138.833-1.352 1.423-2.334 1.9-.391.19-.745.362-.98.524-.41.284-.633.535-.669.753-.018.109-.01.25.025.423.431 2.144 1.692 4.303 2.974 6.04 1.293 1.75 3.003 3.593 4.93 4.66.158.086.292.138.404.156.223.035.538-.092.943-.383.273-.197.577-.497.901-.817.767-.758 1.646-1.626 2.498-1.492 1.732.274 6.027 2.736 5.66 4.925-.354 2.136-1.603 3.307-3.585 4.005-1.487.509-3.072.611-4.583.163-8.646-2.59-16.027-12.413-15.807-21.397zm26.934 17.723c.27-1.622-.37-2.982-.983-3.863-.629-.902-1.458-1.647-2.231-2.22-1.471-1.092-3.427-2.06-4.937-2.299-1.144-.18-2.109.152-2.75.481-.634.325-1.154.75-1.52 1.074-.21.187-.42.388-.602.566-1.005-.799-1.99-1.889-2.86-3.066-.837-1.133-1.56-2.332-2.02-3.47.201-.1.417-.211.628-.328.432-.24 1.007-.59 1.523-1.07.504-.47 1.201-1.291 1.4-2.498.146-.876.073-1.852-.053-2.67a14.794 14.794 0 0 0-.703-2.75c-.325-.896-.789-1.884-1.44-2.732-.62-.807-1.692-1.847-3.295-2.1-1.314-.207-2.71-.086-3.866.205-2.322.56-3.845 2.394-4.701 3.876-.897 1.55-1.483 3.425-1.523 5.067-.13 5.308 1.968 10.65 5.17 14.959 3.202 4.311 7.713 7.87 12.775 9.386l.008.002c2.195.651 4.422.478 6.406-.2l.013-.005.013-.004c1.29-.454 2.567-1.14 3.6-2.245 1.058-1.133 1.687-2.525 1.948-4.096zm-18.963-12.26zm5.144 6.748.004-.003-.004.003z" /></symbol><symbol  viewBox="0 0 27 34" id="i-field-text"><path  fill-rule="evenodd" clip-rule="evenodd" d="M25.718 12.047a6.158 6.158 0 0 0-1.149-8.66l-1.553-1.178-.002-.002A6.106 6.106 0 0 0 14.51 3.35L.937 20.97v.001a1.693 1.693 0 0 0-.347.933L.003 32.203c-.033.58.233 1.133.699 1.466a1.653 1.653 0 0 0 1.59.186l9.235-3.792c.27-.11.507-.29.686-.523l13.505-17.493zM3.479 29.74l.255-4.472 3.07 2.31.685.515-2.04.838-1.97.809zm15.106-13.92L10.56 26.213 9.197 25.19 4.58 21.716l10-12.98 5.966 4.543-1.962 2.541zm4.508-5.839a2.776 2.776 0 0 0-.522-3.91l-1.55-1.175h-.002a2.79 2.79 0 0 0-3.88.518l-.002.002-.512.665 5.969 4.546.499-.646z" /></symbol><symbol  viewBox="0 0 30 34" id="i-field-upload"><path  fill-rule="evenodd" clip-rule="evenodd" d="m0 4.866.001-.11C.065 2.145 2.393.103 5.133.004 5.203 0 5.272 0 5.341 0h14.233c.38 0 .743.151 1.01.404L0 4.866zM20.583.404l.228.215 8.774 8.3c.218.22.415.55.415.945v19.27C30 31.864 27.527 34 24.659 34H5.34C2.473 34 0 31.864 0 29.134V4.866L20.583.404zm-.666 1.678 7.947 7.523H22.57c-1.402 0-2.653-1.03-2.653-2.443v-5.08zm-14.576.61c-1.413 0-2.484 1.048-2.484 2.174v24.268c0 1.132 1.078 2.175 2.484 2.175H24.66c1.414 0 2.484-1.042 2.484-2.175v-17.94H22.57c-2.382 0-4.416-1.739-4.416-4.032v-4.47H5.341z" /><path  d="M7.163 26.988c0-.783.635-1.418 1.419-1.418h12.863a1.419 1.419 0 0 1 0 2.837H8.582a1.419 1.419 0 0 1-1.419-1.419zm7.85-2.556c-.745 0-1.35-.635-1.35-1.419v-9.93c0-.784.604-1.419 1.35-1.419.746 0 1.35.635 1.35 1.419v9.93c0 .784-.604 1.42-1.35 1.42z" /><path  d="M10.413 17.669a1.47 1.47 0 0 1 0-2.007l3.645-3.83a1.305 1.305 0 0 1 1.91 0 1.47 1.47 0 0 1 0 2.007l-3.645 3.83a1.305 1.305 0 0 1-1.91 0z" /><path  d="M19.613 17.67a1.305 1.305 0 0 1-1.91 0l-3.644-3.83a1.47 1.47 0 0 1 0-2.008 1.305 1.305 0 0 1 1.909 0l3.645 3.83a1.47 1.47 0 0 1 0 2.007z" /></symbol><symbol  viewBox="0 0 22 22" id="i-icons-dot"><path d="M11 0a11 11 0 1 0 0 22 11 11 0 0 0 0-22z" /></symbol><symbol viewBox="0 0 61 79" id="i-icons-like"><path d="M.7 45.76v28.53a2.76 2.76 0 0 0 2.75 2.75h10.1c1 0 1.9-.56 2.37-1.37a8.26 8.26 0 0 0 5.71 2.3H47.1c5.63 0 9.21-2.95 9.84-8.1l3.42-21.75c.02-.09.02-.15.02-.23a8.3 8.3 0 0 0-8.29-8.29H39.21v-9.27c0-3.91-1.14-6.74-3.4-8.39-3.57-2.62-8.48-1.12-8.7-1.05-.61.2-1.02.76-1.02 1.4v10.4c0 8.2-9.52 11-9.91 11.11-.2.05-.36.15-.5.26a2.75 2.75 0 0 0-2.15-1.04H3.43A2.73 2.73 0 0 0 .7 45.76Zm16.3.87c.48-.13 12.07-3.5 12.07-13.94v-9.22c1.27-.2 3.45-.3 5.03.85 1.45 1.07 2.2 3.1 2.2 6v10.76c0 .82.66 1.49 1.48 1.49h14.34a5.34 5.34 0 0 1 5.34 5.24l-3.4 21.66v.05c-.45 3.66-2.79 5.52-6.94 5.52H21.65a5.34 5.34 0 0 1-5.34-5.34V46.65c.21.05.46.05.68-.02Zm-13.35-.68h9.7v28.14h-9.7V45.95Z" /><path fill-rule="evenodd" clip-rule="evenodd" d="M27.12 20.89c.2-.07 5.12-1.57 8.69 1.05 2.26 1.65 3.4 4.48 3.4 8.39v9.27h12.87a8.3 8.3 0 0 1 8.29 8.29c0 .08 0 .14-.02.23l-3.42 21.76c-.63 5.14-4.21 8.08-9.84 8.08H21.63a8.25 8.25 0 0 1-5.71-2.29c-.08.14-.18.27-.28.4-.5.59-1.26.97-2.1.97H3.45A2.76 2.76 0 0 1 .7 74.29V45.76a2.73 2.73 0 0 1 2.74-2.74h10.09c.86 0 1.64.4 2.15 1.04.14-.11.3-.2.5-.26.4-.11 9.91-2.91 9.91-11.11v-10.4c0-.64.4-1.2 1.03-1.4ZM16.05 43.34l-.29.1a3.22 3.22 0 0 0-2.23-.9H3.43a3.21 3.21 0 0 0-3.2 3.22v28.53a3.24 3.24 0 0 0 3.22 3.23h10.1c.97 0 1.86-.44 2.45-1.14a8.73 8.73 0 0 0 5.63 2.06H47.1c2.9 0 5.31-.75 7.1-2.22a9.33 9.33 0 0 0 3.22-6.28l3.41-21.74c.03-.13.03-.23.03-.3v-.01a8.78 8.78 0 0 0-8.77-8.77H39.7v-8.8c0-3.99-1.17-7-3.6-8.76a9.38 9.38 0 0 0-5.9-1.63c-1.76.06-3.09.46-3.21.5a1.94 1.94 0 0 0-1.37 1.86v10.4c0 3.88-2.25 6.5-4.6 8.2a17.82 17.82 0 0 1-4.96 2.45Zm38 26.13 3.4-21.66a5.34 5.34 0 0 0-5.33-5.24H37.78c-.82 0-1.48-.67-1.48-1.49V30.33c0-2.92-.75-4.94-2.2-6.01-1.58-1.16-3.76-1.04-5.03-.85v9.22c0 10.44-11.59 13.81-12.08 13.94a1.33 1.33 0 0 1-.68.02V69.7c0 2.94 2.4 5.34 5.34 5.34h25.47c4.15 0 6.5-1.86 6.93-5.52v-.05Zm-.48.02v-.06l3.4-21.66a4.86 4.86 0 0 0-4.85-4.73H37.78a1.97 1.97 0 0 1-1.96-1.96V30.33c0-2.86-.74-4.68-2-5.62-1.27-.93-3.02-.96-4.27-.82v8.8c0 5.43-3.02 9-6.05 11.23a21.62 21.62 0 0 1-6.38 3.18c-.1.03-.22.05-.33.06V69.7a4.86 4.86 0 0 0 4.86 4.86h25.47c2 0 3.51-.45 4.56-1.29a5.43 5.43 0 0 0 1.9-3.78Zm-40.7-23.06H4.13v27.18h8.74V46.43Zm-9.22-.48v28.14h9.7V45.95h-9.7Z" /><circle cx="30.97" cy="2.11" r="2.11" /><path d="M21.5 10.53a2.1 2.1 0 1 1-4.22 0 2.1 2.1 0 0 1 4.22 0Z" /><circle cx="42.55" cy="10.53" r="2.11" /></symbol><symbol viewBox="0 0 20 20"  id="i-icons-lock"><path d="M16.88 8.75h-.938V5.938A5.946 5.946 0 0 0 10.005 0a5.946 5.946 0 0 0-5.937 5.938V8.75h-.938c-1.035 0-1.875.84-1.875 1.875v7.5c0 1.035.84 1.875 1.875 1.875h13.75c1.035 0 1.875-.84 1.875-1.875v-7.5c0-1.035-.84-1.875-1.875-1.875zm-4.062 0H7.193V5.938a2.815 2.815 0 0 1 2.812-2.812 2.815 2.815 0 0 1 2.812 2.812z" /></symbol>',t.insertBefore(r,t.firstChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}function k1(e){return k1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},k1(e)}var B8=[],IF=B8.forEach,MF=B8.slice;function O1(e){return IF.call(MF.call(arguments,1),function(t){if(t)for(var r in t)e[r]===void 0&&(e[r]=t[r])}),e}function P8(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest=="undefined"?"undefined":k1(XMLHttpRequest))==="object"}function RF(e){return!!e&&typeof e.then=="function"}function LF(e){return RF(e)?e:Promise.resolve(e)}var Wd={exports:{}},F1={exports:{}};(function(e,t){var r=typeof self!="undefined"?self:lt,n=function(){function a(){this.fetch=!1,this.DOMException=r.DOMException}return a.prototype=r,new a}();(function(a){(function(o){var s={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};function u(M){return M&&DataView.prototype.isPrototypeOf(M)}if(s.arrayBuffer)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(M){return M&&l.indexOf(Object.prototype.toString.call(M))>-1};function f(M){if(typeof M!="string"&&(M=String(M)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(M))throw new TypeError("Invalid character in header field name");return M.toLowerCase()}function d(M){return typeof M!="string"&&(M=String(M)),M}function p(M){var U={next:function(){var x=M.shift();return{done:x===void 0,value:x}}};return s.iterable&&(U[Symbol.iterator]=function(){return U}),U}function h(M){this.map={},M instanceof h?M.forEach(function(U,x){this.append(x,U)},this):Array.isArray(M)?M.forEach(function(U){this.append(U[0],U[1])},this):M&&Object.getOwnPropertyNames(M).forEach(function(U){this.append(U,M[U])},this)}h.prototype.append=function(M,U){M=f(M),U=d(U);var x=this.map[M];this.map[M]=x?x+", "+U:U},h.prototype.delete=function(M){delete this.map[f(M)]},h.prototype.get=function(M){return M=f(M),this.has(M)?this.map[M]:null},h.prototype.has=function(M){return this.map.hasOwnProperty(f(M))},h.prototype.set=function(M,U){this.map[f(M)]=d(U)},h.prototype.forEach=function(M,U){for(var x in this.map)this.map.hasOwnProperty(x)&&M.call(U,this.map[x],x,this)},h.prototype.keys=function(){var M=[];return this.forEach(function(U,x){M.push(x)}),p(M)},h.prototype.values=function(){var M=[];return this.forEach(function(U){M.push(U)}),p(M)},h.prototype.entries=function(){var M=[];return this.forEach(function(U,x){M.push([x,U])}),p(M)},s.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);function b(M){if(M.bodyUsed)return Promise.reject(new TypeError("Already read"));M.bodyUsed=!0}function g(M){return new Promise(function(U,x){M.onload=function(){U(M.result)},M.onerror=function(){x(M.error)}})}function v(M){var U=new FileReader,x=g(U);return U.readAsArrayBuffer(M),x}function S(M){var U=new FileReader,x=g(U);return U.readAsText(M),x}function w(M){for(var U=new Uint8Array(M),x=new Array(U.length),I=0;I<U.length;I++)x[I]=String.fromCharCode(U[I]);return x.join("")}function D(M){if(M.slice)return M.slice(0);var U=new Uint8Array(M.byteLength);return U.set(new Uint8Array(M)),U.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(M){this._bodyInit=M,M?typeof M=="string"?this._bodyText=M:s.blob&&Blob.prototype.isPrototypeOf(M)?this._bodyBlob=M:s.formData&&FormData.prototype.isPrototypeOf(M)?this._bodyFormData=M:s.searchParams&&URLSearchParams.prototype.isPrototypeOf(M)?this._bodyText=M.toString():s.arrayBuffer&&s.blob&&u(M)?(this._bodyArrayBuffer=D(M.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(M)||c(M))?this._bodyArrayBuffer=D(M):this._bodyText=M=Object.prototype.toString.call(M):this._bodyText="",this.headers.get("content-type")||(typeof M=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):s.searchParams&&URLSearchParams.prototype.isPrototypeOf(M)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s.blob&&(this.blob=function(){var M=b(this);if(M)return M;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?b(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var M=b(this);if(M)return M;if(this._bodyBlob)return S(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(w(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s.formData&&(this.formData=function(){return this.text().then(K)}),this.json=function(){return this.text().then(JSON.parse)},this}var N=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function $(M){var U=M.toUpperCase();return N.indexOf(U)>-1?U:M}function k(M,U){U=U||{};var x=U.body;if(M instanceof k){if(M.bodyUsed)throw new TypeError("Already read");this.url=M.url,this.credentials=M.credentials,U.headers||(this.headers=new h(M.headers)),this.method=M.method,this.mode=M.mode,this.signal=M.signal,!x&&M._bodyInit!=null&&(x=M._bodyInit,M.bodyUsed=!0)}else this.url=String(M);if(this.credentials=U.credentials||this.credentials||"same-origin",(U.headers||!this.headers)&&(this.headers=new h(U.headers)),this.method=$(U.method||this.method||"GET"),this.mode=U.mode||this.mode||null,this.signal=U.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&x)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(x)}k.prototype.clone=function(){return new k(this,{body:this._bodyInit})};function K(M){var U=new FormData;return M.trim().split("&").forEach(function(x){if(x){var I=x.split("="),ee=I.shift().replace(/\+/g," "),oe=I.join("=").replace(/\+/g," ");U.append(decodeURIComponent(ee),decodeURIComponent(oe))}}),U}function G(M){var U=new h,x=M.replace(/\r?\n[\t ]+/g," ");return x.split(/\r?\n/).forEach(function(I){var ee=I.split(":"),oe=ee.shift().trim();if(oe){var ce=ee.join(":").trim();U.append(oe,ce)}}),U}_.call(k.prototype);function j(M,U){U||(U={}),this.type="default",this.status=U.status===void 0?200:U.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in U?U.statusText:"OK",this.headers=new h(U.headers),this.url=U.url||"",this._initBody(M)}_.call(j.prototype),j.prototype.clone=function(){return new j(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},j.error=function(){var M=new j(null,{status:0,statusText:""});return M.type="error",M};var q=[301,302,303,307,308];j.redirect=function(M,U){if(q.indexOf(U)===-1)throw new RangeError("Invalid status code");return new j(null,{status:U,headers:{location:M}})},o.DOMException=a.DOMException;try{new o.DOMException}catch{o.DOMException=function(U,x){this.message=U,this.name=x;var I=Error(U);this.stack=I.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function re(M,U){return new Promise(function(x,I){var ee=new k(M,U);if(ee.signal&&ee.signal.aborted)return I(new o.DOMException("Aborted","AbortError"));var oe=new XMLHttpRequest;function ce(){oe.abort()}oe.onload=function(){var $e={status:oe.status,statusText:oe.statusText,headers:G(oe.getAllResponseHeaders()||"")};$e.url="responseURL"in oe?oe.responseURL:$e.headers.get("X-Request-URL");var me="response"in oe?oe.response:oe.responseText;x(new j(me,$e))},oe.onerror=function(){I(new TypeError("Network request failed"))},oe.ontimeout=function(){I(new TypeError("Network request failed"))},oe.onabort=function(){I(new o.DOMException("Aborted","AbortError"))},oe.open(ee.method,ee.url,!0),ee.credentials==="include"?oe.withCredentials=!0:ee.credentials==="omit"&&(oe.withCredentials=!1),"responseType"in oe&&s.blob&&(oe.responseType="blob"),ee.headers.forEach(function($e,me){oe.setRequestHeader(me,$e)}),ee.signal&&(ee.signal.addEventListener("abort",ce),oe.onreadystatechange=function(){oe.readyState===4&&ee.signal.removeEventListener("abort",ce)}),oe.send(typeof ee._bodyInit=="undefined"?null:ee._bodyInit)})}return re.polyfill=!0,a.fetch||(a.fetch=re,a.Headers=h,a.Request=k,a.Response=j),o.Headers=h,o.Request=k,o.Response=j,o.fetch=re,Object.defineProperty(o,"__esModule",{value:!0}),o})({})})(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var i=n;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t})(F1,F1.exports);(function(e,t){var r;if(typeof fetch=="function"&&(typeof lt!="undefined"&&lt.fetch?r=lt.fetch:typeof window!="undefined"&&window.fetch&&(r=window.fetch)),typeof V9!="undefined"&&(typeof window=="undefined"||typeof window.document=="undefined")){var n=r||F1.exports;n.default&&(n=n.default),t.default=n,e.exports=t.default}})(Wd,Wd.exports);var I8=Wd.exports,J2=c9({__proto__:null,default:I8},[Wd.exports]);function Yd(e){return Yd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yd(e)}var Xo;typeof fetch=="function"&&(typeof Yt!="undefined"&&Yt.fetch?Xo=Yt.fetch:typeof window!="undefined"&&window.fetch&&(Xo=window.fetch));var Tc;P8()&&(typeof Yt!="undefined"&&Yt.XMLHttpRequest?Tc=Yt.XMLHttpRequest:typeof window!="undefined"&&window.XMLHttpRequest&&(Tc=window.XMLHttpRequest));var Zd;typeof ActiveXObject=="function"&&(typeof Yt!="undefined"&&Yt.ActiveXObject?Zd=Yt.ActiveXObject:typeof window!="undefined"&&window.ActiveXObject&&(Zd=window.ActiveXObject));!Xo&&J2&&!Tc&&!Zd&&(Xo=I8||J2);typeof Xo!="function"&&(Xo=void 0);var $1=function(t,r){if(r&&Yd(r)==="object"){var n="";for(var i in r)n+="&"+encodeURIComponent(i)+"="+encodeURIComponent(r[i]);if(!n)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+n.slice(1)}return t},jF=function(t,r,n,i){t.queryStringParams&&(r=$1(r,t.queryStringParams));var a=O1({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);n&&(a["Content-Type"]="application/json"),Xo(r,O1({method:n?"POST":"GET",body:n?t.stringify(n):void 0,headers:a},typeof t.requestOptions=="function"?t.requestOptions(n):t.requestOptions)).then(function(o){if(!o.ok)return i(o.statusText||"Error",{status:o.status});o.text().then(function(s){i(null,{status:o.status,data:s})}).catch(i)}).catch(i)},UF=function(t,r,n,i){n&&Yd(n)==="object"&&(n=$1("",n).slice(1)),t.queryStringParams&&(r=$1(r,t.queryStringParams));try{var a;Tc?a=new Tc:a=new Zd("MSXML2.XMLHTTP.3.0"),a.open(n?"POST":"GET",r,1),t.crossDomain||a.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.withCredentials=!!t.withCredentials,n&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.overrideMimeType&&a.overrideMimeType("application/json");var o=t.customHeaders;if(o=typeof o=="function"?o():o,o)for(var s in o)a.setRequestHeader(s,o[s]);a.onreadystatechange=function(){a.readyState>3&&i(a.status>=400?a.statusText:null,{status:a.status,data:a.responseText})},a.send(n)}catch(u){console&&console.log(u)}},zF=function(t,r,n,i){if(typeof n=="function"&&(i=n,n=void 0),i=i||function(){},Xo)return jF(t,r,n,i);if(P8()||typeof ActiveXObject=="function")return UF(t,r,n,i)};function qF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function HF(e,t,r){return t&&X2(e.prototype,t),r&&X2(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function VF(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var KF=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:function(r){return JSON.parse(r)},stringify:JSON.stringify,parsePayload:function(r,n,i){return VF({},n,i||"")},request:zF,reloadInterval:typeof window!="undefined"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},M8=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};qF(this,e),this.services=t,this.options=r,this.allOptions=n,this.type="backend",this.init(t,r,n)}return HF(e,[{key:"init",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=r,this.options=O1(i,this.options||{},KF()),this.allOptions=a,this.services&&this.options.reloadInterval&&setInterval(function(){return n.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(r,n,i){this._readAny(r,r,n,n,i)}},{key:"read",value:function(r,n,i){this._readAny([r],r,[n],n,i)}},{key:"_readAny",value:function(r,n,i,a,o){var s=this,u=this.options.loadPath;typeof this.options.loadPath=="function"&&(u=this.options.loadPath(r,i)),u=LF(u),u.then(function(l){if(!l)return o(null,{});var c=s.services.interpolator.interpolate(l,{lng:r.join("+"),ns:i.join("+")});s.loadUrl(c,o,n,a)})}},{key:"loadUrl",value:function(r,n,i,a){var o=this;this.options.request(this.options,r,void 0,function(s,u){if(u&&(u.status>=500&&u.status<600||!u.status))return n("failed loading "+r+"; status code: "+u.status,!0);if(u&&u.status>=400&&u.status<500)return n("failed loading "+r+"; status code: "+u.status,!1);if(!u&&s&&s.message&&s.message.indexOf("Failed to fetch")>-1)return n("failed loading "+r+": "+s.message,!0);if(s)return n(s,!1);var l,c;try{typeof u.data=="string"?l=o.options.parse(u.data,i,a):l=u.data}catch{c="failed parsing "+r+" to json"}if(c)return n(c,!1);n(null,l)})}},{key:"create",value:function(r,n,i,a,o){var s=this;if(!!this.options.addPath){typeof r=="string"&&(r=[r]);var u=this.options.parsePayload(n,i,a),l=0,c=[],f=[];r.forEach(function(d){var p=s.options.addPath;typeof s.options.addPath=="function"&&(p=s.options.addPath(d,n));var h=s.services.interpolator.interpolate(p,{lng:d,ns:n});s.options.request(s.options,h,u,function(b,g){l+=1,c.push(b),f.push(g),l===r.length&&o&&o(c,f)})})}}},{key:"reload",value:function(){var r=this,n=this.services,i=n.backendConnector,a=n.languageUtils,o=n.logger,s=i.language;if(!(s&&s.toLowerCase()==="cimode")){var u=[],l=function(f){var d=a.toResolveHierarchy(f);d.forEach(function(p){u.indexOf(p)<0&&u.push(p)})};l(s),this.allOptions.preload&&this.allOptions.preload.forEach(function(c){return l(c)}),u.forEach(function(c){r.allOptions.ns.forEach(function(f){i.read(c,f,"read",null,null,function(d,p){d&&o.warn("loading namespace ".concat(f," for language ").concat(c," failed"),d),!d&&p&&o.log("loaded namespace ".concat(f," for language ").concat(c),p),i.loaded("".concat(c,"|").concat(f),d,p)})})})}}}]),e}();M8.type="backend";lr.use(M8).init({fallbackLng:"en",ns:["common"],defaultNS:"common",preload:["en"],backend:{loadPath:"/static/i18n/{{lng}}.json",queryStringParams:{v:"4.4.32"}}});function GF(e,t,{slots:r}){var i;const n=e(t.path).split(/(\{\{.*?\}\})/).map(a=>{if(a.startsWith("{{")&&a.endsWith("}}")){const o=a.slice(2,-2).trim();return o in r?r[o]():""}return a});return Qa((i=t.tag)!=null?i:"div",{},n)}var WF={install:e=>{const t=x_({o:lr,x:lr.getFixedT,f:lr.t,i:!1,l:!1});lr.on("initialized",()=>{t.value.i=!0,Lh(t)}),lr.on("languageChanged",()=>{Lh(t)}),lr.on("loaded",()=>{t.value.l=!0,Lh(t)}),e.component("I18next",(r,n)=>GF(t.value.f,r,n)),e.config.globalProperties.$fixedT=r=>t.value.x(r),e.config.globalProperties.$t=(r,n)=>t.value.f(r,n),Object.defineProperty(e.config.globalProperties,"$i18next",{enumerable:!0,get:()=>t.value.o})}};const YF={animated:null,animating:null,current:null},ZF={async reset(e){e.commit("reset")}},JF={animated(e,t){e.animated=t,e.animated<e.current-1?e.animating++:e.animating=null},current(e,t){e.current=Math.max(e.current,t),e.current===0?e.animated=-1:e.animated==null?e.animating=0:e.animated<e.current-1&&(e.animating=e.animated+1)},reset(e){e.animated=null,e.animating=null,e.current=null}},XF={animated:e=>e.animated,animating:e=>e.animating,current:e=>e.current};var QF={namespaced:!0,state:YF,actions:ZF,mutations:JF,getters:XF};const Jd={FLUSH:"1",INIT:"2"},e$={label:"Submit",prevLabel:"Go Back",align:"center"},t$={async reset(e){e.commit(Jd.FLUSH);const t=e.rootGetters["loader/data"];e.commit(Jd.INIT,{align:B(t,"submit.align","center"),label:B(t,"submit.label","Submit"),prevLabel:B(t,"submit.prevLabel","Go Back")})}},r$={[Jd.FLUSH](e){e.align="center",e.label="Submit",e.prevLabel="Go Back"},[Jd.INIT](e,t){e.align=t.align,e.label=t.label,e.prevLabel=t.prevLabel}},n$={align:e=>e.align,label:e=>e.label,prevLabel:e=>e.prevLabel};var i$={namespaced:!0,state:e$,actions:t$,mutations:r$,getters:n$};/*! js-cookie v3.0.1 | MIT */function Cf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var a$={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function B1(e,t){function r(i,a,o){if(typeof document!="undefined"){o=Cf({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var u in o)!o[u]||(s+="; "+u,o[u]!==!0&&(s+="="+o[u].split(";")[0]));return document.cookie=i+"="+e.write(a,i)+s}}function n(i){if(!(typeof document=="undefined"||arguments.length&&!i)){for(var a=document.cookie?document.cookie.split("; "):[],o={},s=0;s<a.length;s++){var u=a[s].split("="),l=u.slice(1).join("=");try{var c=decodeURIComponent(u[0]);if(o[c]=e.read(l,c),i===c)break}catch{}}return i?o[i]:o}}return Object.create({set:r,get:n,remove:function(i,a){r(i,"",Cf({},a,{expires:-1}))},withAttributes:function(i){return B1(this.converter,Cf({},this.attributes,i))},withConverter:function(i){return B1(Cf({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Q2=B1(a$,{path:"/"});const St=e=>(typeof e=="string"||e instanceof String)&&e.length>0,$s=e=>typeof e=="number",o$=e=>St(e)&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),s$=e=>St(e)&&e.length>1,vi=e=>Array.isArray(e)&&e.length>0,Xd=(e,t)=>St(e)&&St(t)&&e.localeCompare(t,void 0,{sensitivity:"accent"})===0,u$=e=>e===null?"":e===!0?"yes":e===!1?"no":e,l$=e=>isNaN(parseFloat(e))?"0.00":e,Gv=e=>["full-name","email","address","phone","short-text","long-text","dropdown","date","number","website"].includes(e),R8=e=>Gv(e)||["picture-choice","multiple-choice","file","captcha","signature","order-cart","paypal","stripe","rating","scale","slider","matrix","terms-of-use","newsletter-signup","score-choice","media-answer"].includes(e),c$=e=>(R8(e)||["score-calculation","timer"].includes(e))&&!["captcha","paypal","stripe"].includes(e),eb=(e,t)=>{const r=Q2.get(e);return r===void 0?(Q2.set(e,t,{expires:7,path:window.location.pathname}),t):r},tb=e=>{let t=0,r=0,n=null;for(t=e.length-1;t>0;t-=1)r=Math.floor(Math.random()*(t+1)),n=e[t],e[t]=e[r],e[r]=n},f$=e=>(typeof e=="string"||e instanceof String)&&e.trim()?e.trim().replace(/[<>&'"]/g,function(t){switch(t){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";case"'":return"&apos;";case'"':return"&quot;"}}):"",Wv=e=>St(e)?(e=e.replace("#",""),e.length===3?[parseInt(e.slice(0,1).repeat(2),16),parseInt(e.slice(1,2).repeat(2),16),parseInt(e.slice(2,3).repeat(2),16)]:[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)]):[],rb=e=>new Promise((t,r)=>{const n=new FileReader;n.addEventListener("loadend",()=>{t(n.result)}),n.addEventListener("error",r),n.readAsArrayBuffer(e)}),h1e=e=>{let t=null;return[/paypal\.me\/([^/]+)/i,/paypalme\/([^/]+)/i].forEach(n=>{let i=n.exec(e);i&&(t=`https://paypal.me/${i[1]}`)}),t},P1=e=>String(e).toLowerCase(),nb=(e,t)=>{switch(P1(t)){case"jpy":return Math.round(e);default:return Math.round(100*e)}},hu=e=>typeof e=="string"||e instanceof String,wo=e=>!isNaN(e);class Ir{populate(t,r){return{...t,index:r}}state(){return null}validate(){return{state:!0,valid:!0}}append(){}mention(t){return t.value===null?null:hu(t.value)?{id:t.id,value:t.value}:wo(t.value)?{id:t.id,value:String(t.value)}:null}mentionExpression(t){return this.mention(t)}test(){return!1}testString(t,r,n){switch(r){case"eq":return Xd(t,n);case"neq":return!Xd(t,n);case"contain":return hu(t)&&t.includes(n);case"ncontain":return!hu(t)||!t.includes(n);case"exist":return hu(t)&&t.length>0;case"nexist":return t===null||hu(t)&&t.length===0}return!1}testNumber(t,r,n){switch(r){case"eq":return wo(n)&&Math.abs(Number(t)-Number(n))<=Number.EPSILON;case"neq":return wo(n)&&Math.abs(Number(t)-Number(n))>Number.EPSILON;case"gt":return wo(n)&&Number(t)>Number(n);case"lt":return wo(n)&&Number(t)<Number(n);case"exist":return t!==null&&t!=="";case"nexist":return t===null||t==="";case"between":{const i=hu(n)&&n.includes("#")?n.split("#"):[0,100];return wo(i[0])&&wo(i[1])&&wo(t)&&Number(i[0])<=Number(t)&&Number(t)<=Number(i[1])}}return!1}queryString(t,r=null,n=null){const i=B(t,"id");return i?Ms.getters["world/query"](r?i+"."+r:i,n):n}queryNumber(t,r=null){let n=this.queryString(t,r,null);return n&&(n=Number(n)),isNaN(n)?null:n}}var d$=new Ir;class p$ extends Ir{populate(t,r){return{...t,index:r,value:this.state(),state:this.state(),valid:null}}state(){return{"line-1":null,"line-2":null,city:null,state:null,zip:null,country:null}}validate(t){if(!B(t,"properties.required",!1))return{valid:!0,state:{"line-1":!0,"line-2":!0,city:!0,state:!0,zip:!0,country:!0}};const r={"line-1":!t.properties.visibleAddressLine1||St(t.value["line-1"]),"line-2":!0,city:!t.properties.visibleCity||St(t.value.city),state:!t.properties.visibleState||St(t.value.state),zip:!t.properties.visibleZIP||St(t.value.zip),country:!t.properties.visibleCountry||St(t.value.country)};return{state:r,valid:Object.values(r).reduce((n,i)=>n&&i,!0)}}append(t,r,n){const i=n.value;i["dsc-line-1"]=B(n,"properties.addressLine1",""),i["dsc-line-2"]=B(n,"properties.addressLine2",""),i["dsc-city"]=B(n,"properties.city",""),i["dsc-state"]=B(n,"properties.state",""),i["dsc-zip"]=B(n,"properties.zip",""),i["dsc-country"]=B(n,"properties.country",""),t.append(r,JSON.stringify(i))}mention(t){return{id:t.id,value:Object.values(t.value).filter(r=>!!r).join(", ")}}}var h$=new p$;class m$ extends Ir{populate(t,r){return{...t,index:r,value:[],state:null,valid:null}}validate(t){if(!B(t,"properties.required",!1))return{valid:!0,state:!0};let r=vi(t.value);if(r){const n=B(t,"properties.limit",null);n&&(r=t.value.every(i=>i.size>0&&i.size<=n))}return{state:r,valid:r}}async append(t,r,n){n.value.forEach(i=>t.append(r,i.slice(0,i.size,i.type),i.name))}}var v$=new m$;class L8 extends Ir{populate(t,r){return B(t,"properties.shuffle",!1)&&(B(t,"properties.items")&&tb(t.properties.items),B(t,"properties.options")&&tb(t.properties.options)),{...t,index:r,value:[],state:null,valid:null}}validate(t){if(!B(t,"properties.required",!1))return{valid:!0,state:!0};let r=vi(t.value);if(r&&B(t,"properties.hasLimits",!1)){const n=B(t,"properties.min",1),i=B(t,"properties.max",10);$s(n)&&$s(i)&&(r=n<=t.value.length&&t.value.length<=i)}return{state:r,valid:r}}append(t,r,n){t.append(r,JSON.stringify(n.value.map(i=>String(i))))}test(t,r,n){switch(r){case"contain":return t.value.find(i=>String(i).includes(n))!==void 0;case"ncontain":return t.value.find(i=>String(i).includes(n))===void 0;case"exist":return t.value.length>0;case"nexist":return t.value.length===0}return!1}mention(t){return{id:t.id,value:t.value.map(r=>String(r)).filter(r=>!!r).join(", ")}}}var ib=new L8;class g$ extends Ir{populate(t,r){return{...t,index:r,value:null,state:null,valid:null}}validate(t){const r=t.value===!0;return{state:r,valid:r}}append(t,r,n){n.value!==null?t.append(r,JSON.stringify(n.value)):t.append(r,JSON.stringify(!1))}}var y$=new g$;class b$ extends Ir{populate(t,r){return{...t,index:r,value:B(t,"properties.checked",null),state:null,valid:null}}validate(){return{state:!0,valid:!0}}append(t,r,n){n.value!==null?t.append(r,JSON.stringify(n.value)):t.append(r,JSON.stringify(!1))}}var w$=new b$,j8={exports:{}};j8.exports=function(e){if(typeof e!="string")throw new Error("Invalid input. Input must be a string");var t=e.match(/(\/?)(.+)\1([a-z]*)/i);return t[3]&&!/^(?!.*?(.).*?\1)[gmixXsuUAJ]+$/.test(t[3])?RegExp(e):new RegExp(t[2],t[3])};var _$=j8.exports;class Yv extends Ir{populate(t,r){return{...t,index:r,value:null,state:null,valid:null}}validate(t){if(!B(t,"properties.required",!1))return{state:!0,valid:!0};let r=!0;if(B(t,"properties.hasValidation",!1))try{r=_$(B(t,"properties.regexp","")).test(t.value)}catch{}return r=r&&St(t.value),{state:r,valid:r}}append(t,r,n){n.value===null?t.append(r,'""'):t.append(r,JSON.stringify(String(n.value)))}test(t,r,n){switch(r){case"eq":return Xd(t.value,n);case"neq":return!Xd(t.value,n);case"exist":return St(t.value);case"nexist":return!St(t.value);case"contain":return St(t.value)&&St(n)&&t.value.includes(n);case"ncontain":return!St(t.value)||!St(n)||!t.value.includes(n);case"start":return St(t.value)&&St(n)&&t.value.startsWith(n);case"nstart":return!St(t.value)||!St(n)||!t.value.startsWith(n);case"end":return St(t.value)&&St(n)&&t.value.endsWith(n);case"nend":return!St(t.value)||!St(n)||!t.value.endsWith(n);case"in":return St(t.value)&&St(n)&&String(n).split(`
`).map(i=>i.trim()).includes(t.value)}return!1}}var ab=new Yv;class Zv extends Yv{populate(t,r,n=!1){const i=n?this.queryString(t):null;return{...t,index:r,value:i,state:null,valid:null}}}var ob=new Zv;class x$ extends Zv{validate(t){if(!B(t,"properties.required",!1))return{state:!0,valid:!0};const r=o$(t.value);return{state:r,valid:r}}}var E$=new x$;class D$ extends Ir{populate(t,r,n=!1){return{...t,index:r,value:this.value(t,n),state:this.state(),valid:null}}value(t,r=!1){const n=r?this.queryString(t,"1"):null,i=r?this.queryString(t,"2"):null;return{"first-name":n,"last-name":i}}state(){return{"first-name":null,"last-name":null}}validate(t){if(!B(t,"properties.required",!1))return{valid:!0,state:{"first-name":!0,"last-name":!0}};const r={"first-name":St(t.value["first-name"]),"last-name":St(t.value["last-name"])};return{state:r,valid:r["first-name"]&&r["last-name"]}}append(t,r,n){const i=n.value;i["fn-desc"]=B(n,"properties.firstName",""),i["ln-desc"]=B(n,"properties.lastName",""),t.append(r,JSON.stringify(i))}mention(t){const r=t.value["first-name"],n=t.value["last-name"];return r||n?{id:t.id,value:[r!==null?r:"",n!==null?n:""].join(" ")}:null}}var S$=new D$;class U8 extends Ir{populate(t,r){return{...t,index:r,value:[],state:null,valid:null}}validate(t){if(!B(t,"properties.required",!1))return{valid:!0,state:!0};const r=vi(t.value);return{state:r,valid:r}}total(t){return Number(t.value.reduce((r,n)=>r+Number(n.price)*Number(n.quantity),0))}appendPrepare(t,r){const n={currency:B(r,"properties.currency","USD"),positions:B(r,"properties.products",[]).map(i=>Object.assign({},{price:"0.00"},i,{quantity:"0"}))};return r.value.forEach(i=>{const a=n.positions.findIndex(o=>i.name===o.name&&i.price===o.price);a!==-1&&(n.positions[a].quantity=i.quantity)}),n}append(t,r,n){t.append(r,JSON.stringify(this.appendPrepare(r,n)))}mention(t){return{id:t.id,value:this.total(t).toFixed(2)}}test(t,r,n){const i=a=>!isNaN(a);switch(r){case"exist":return vi(t.value);case"nexist":return!vi(t.value);case"totalgt":return vi(t.value)&&this.total(t)>=Number(n);case"totallt":return vi(t.value)&&this.total(t)<=Number(n);case"totalbetween":{const a=n.split("#"),o=this.total(t);return vi(t.value)&&i(a[0])&&i(a[1])&&Number(a[0])<=o&&o<=Number(a[1])}}return!1}}var C$=new U8;class A$ extends U8{paymentType(t){return B(t,"properties.paymentType","custom")}populate(t,r){switch(this.paymentType(t)){case"cart":return super.populate(t,r);default:return{...t,index:r,value:B(t,"properties.amount","0"),state:null,valid:null}}}validate(t){switch(this.paymentType(t)){case"cart":return super.validate(t);default:return{valid:!0,state:!0}}}append(t,r,n){const i={type:B(n,"properties.paymentType")};switch(this.paymentType(n)){case"cart":Object.assign(i,this.appendPrepare(r,n));break;default:Object.assign(i,{currency:B(n,"properties.currency","USD"),positions:[{quantity:"1",price:String(l$(n.value))}]})}t.append(r,JSON.stringify(i))}mention(){return null}}var sb=new A$;class N$ extends Ir{populate(t,r,n=!1){const i=n?this.queryString(t):null;return{...t,index:r,value:i,state:null,valid:null}}validate(t){if(!B(t,"properties.required",!1))return{state:!0,valid:!0};const r=s$(t.value);return{state:r,valid:r}}append(t,r,n){t.append(r,JSON.stringify(n.value))}}var T$=new N$;class ml extends Ir{populate(t,r){return{...t,index:r,value:null,state:null,valid:null}}validate(t){if(!B(t,"properties.required",!1))return{state:!0,valid:!0};const r=$s(t.value);return{state:r,valid:r}}append(t,r,n){n.value!==null?isNaN(n.value)?St(n.value)?t.append(r,JSON.stringify(String(n.value))):t.append(r,"null"):t.append(r,Number(n.value).toString()):t.append(r,"null")}test(t,r,n){return this.testNumber(t.value,r,n)}}var k$=new ml;class O$ extends ml{populate(t,r,n=!1){let i=n?this.queryNumber(t):null;return i!==null?i=i.toString():B(t,"properties.hasInitial",!1)&&(i=String(B(t,"properties.initial",0))),{...t,index:r,value:i,state:null,valid:null}}validate(t){if(!B(t,"properties.required",!1))return{state:!0,valid:!0};let r=St(t.value);if(r&&B(t,"properties.hasLimits",!1)){const n=Number(B(t,"properties.min",0)),i=Number(B(t,"properties.max",100));r=n<=Number(t.value)&&Number(t.value)<=i}return{state:r,valid:r}}}var F$=new O$;class $$ extends ml{populate(t,r,n=!1){const i=n?this.queryNumber(t):null;return{...t,index:r,value:i,state:null,valid:null}}append(t,r,n){const i=n.value===null?null:Number(n.value),a=B(n,"properties.items."+(i-1)+".value","");t.append(r,JSON.stringify({label:a,value:i}))}}var B$=new $$;class P$ extends Ir{populate(t,r){return{...t,index:r,value:{},state:[],valid:null}}state(){return[]}validate(t){if(!B(t,"properties.required",!1))return{state:[],valid:!0};const r=B(t,"properties.matrix.rows",[]);if(B(t,"properties.oneChoicePerColumn",!1)){const n=r.map((i,a)=>B(t,"value."+a,[])).reduce((i,a)=>i.concat(a),[]);return{state:[],valid:n.length===B(t,"properties.matrix.columns",[]).length}}else{const n=r.map((i,a)=>vi(B(t,"value."+a)));return{state:n,valid:n.reduce((i,a)=>i&&a,!0)}}}append(t,r,n){const i={},a=B(n,"properties.matrix.rows",[]),o=B(n,"properties.matrix.columns",[]);let s=null;a.forEach((u,l)=>{s=B(n,"value."+l,[]).sort().map(f=>{const d=B(o,f+".value",""),p=Number(f+1);return d?{pos:p,label:d}:{pos:p}});const c=u.value?l+1+". "+u.value:l+1;i[c]=s}),t.append(r,JSON.stringify(i))}}var I$=new P$;class M$ extends ml{populate(t,r,n=!1){const i=n?this.queryNumber(t):null;return{...t,index:r,value:i,state:null,valid:null}}append(t,r,n){n.value!==null?t.append(r,n.value):t.append(r,"null")}}var R$=new M$;class L$ extends Ir{populate(t,r){return{...t,index:r,value:null,state:null,valid:null}}validate(t){if(!B(t,"properties.required",!1))return{state:!0,valid:!0};const r=St(t.value);return{state:r,valid:r}}append(t,r,n){t.append(r,u$(n.value))}}var j$=new L$,Af,U$=new Uint8Array(16);function z$(){if(!Af&&(Af=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Af))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Af(U$)}var q$=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function H$(e){return typeof e=="string"&&q$.test(e)}var Rr=[];for(var am=0;am<256;++am)Rr.push((am+256).toString(16).substr(1));function V$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(Rr[e[t+0]]+Rr[e[t+1]]+Rr[e[t+2]]+Rr[e[t+3]]+"-"+Rr[e[t+4]]+Rr[e[t+5]]+"-"+Rr[e[t+6]]+Rr[e[t+7]]+"-"+Rr[e[t+8]]+Rr[e[t+9]]+"-"+Rr[e[t+10]]+Rr[e[t+11]]+Rr[e[t+12]]+Rr[e[t+13]]+Rr[e[t+14]]+Rr[e[t+15]]).toLowerCase();if(!H$(r))throw TypeError("Stringified UUID is invalid");return r}function dh(e,t,r){e=e||{};var n=e.random||(e.rng||z$)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return V$(n)}const ub=()=>Math.random().toString(36).substring(2).toUpperCase().replaceAll("O","0").replaceAll("I","1");class K$ extends Ir{populate(t,r){let n=null;const i=B(t,"label","hidden-"+r),a=B(t,"properties.type");switch(a){case"randomcookie":n=eb(i,Math.floor(Math.random()*100));break;case"query":n=Ms.getters["world/query"](i,"");break;case"number":{const o=Number(B(t,"properties.default",0));n=isNaN(o)?0:o;break}case"randomstring":{n=(ub()+ub()).substring(6);break}case"fingerprint":n=eb(i,dh());break;case"country":case"ip":case"referrer":case"device":case"location":n=Ms.getters["world/"+a];break}return{...t,index:r,value:n,state:null,valid:null}}validate(){return{state:!0,valid:!0}}append(t,r,n){if(n.value===null)t.append(r,'""');else switch(B(n,"properties.type")){case"randomcookie":case"number":t.append(r,Number(n.value).toString());break;default:t.append(r,JSON.stringify(String(n.value)));break}}test(t,r,n){switch(B(t,"properties.type")){case"randomcookie":case"number":return this.testNumber(t.value,r,n);default:return this.testString(t.value,r,n)}}}var lb=new K$;class G$ extends L8{append(t,r,n){t.append(r,JSON.stringify(n.value.map(i=>Object.assign({score:0},i))))}test(t,r,n){const i=a=>typeof a=="string"||a instanceof String;switch(r){case"contain":return t.value.find(a=>i(a.name)&&a.name.includes(n))!==void 0;case"ncontain":return t.value.find(a=>i(a.name)&&a.name.includes(n))===void 0;case"exist":return t.value.length>0;case"nexist":return t.value.length===0}return!1}}var W$=new G$;const cb={"audio/mp3":"mp3","audio/mp4":"m4a","audio/mpeg":"mpga","audio/ogg":"ogg","audio/webm":"weba","audio/x-wav":"wav"},fb={"video/mp4":"mp4","video/mpeg":"mpg","video/quicktime":"mov","video/webm":"webm"},Y$=e=>e.startsWith("text/")?".txt":e.startsWith("audio/")?e in cb?"."+cb[e]:".mp3":e.startsWith("video/")?e in fb?"."+fb[e]:".mpeg":"";class Z$ extends Ir{populate(t,r){return{...t,index:r,value:null,state:null,valid:null}}validate(t){return B(t,"properties.required",!1)?{state:t.value!==null,valid:t.value!==null}:{valid:!0,state:!0}}async append(t,r,n){n.value!==null&&t.append(r,n.value.slice(0,n.value.size,n.value.type),dh()+Y$(n.value.type))}}var J$=new Z$;const X$=(e,t,r)=>{const n=B(r,"properties.size"),i=B(r,"properties.align"),a=B(r,"properties.type");let o=null;switch(a){case"image":o=B(r,"properties.location");break;case"youtube":o=B(r,"properties.youtubeVideoId");break;case"video":o=B(r,"properties.videoSources");break;case"audio":o=B(r,"properties.audioSources");break;case"qr":o=B(r,"properties.url");break}o?e.append(t,JSON.stringify({type:a,value:o,size:n,align:i})):e.append(t,JSON.stringify({type:a,size:n,align:i}))};class Q$ extends Ir{append(t,r,n){switch(n.type){case"h1":case"h2":case"text":{const i={},a=B(n,"properties.delta"),o=B(n,"properties.align");if(a)try{i.delta=JSON.parse(a)}catch{i.text=B(n,"properties.text")}else i.text=B(n,"properties.text");o&&(i.align=o),i?t.append(r,JSON.stringify(i)):t.append(r,"{}");break}case"image":X$(t,r,n);break}}}var Nf=new Q$;class eB extends Yv{validate(t){return St(t.value)&&!/^[^:/?#]+:\/\//i.test(t.value)&&(t.value="https://"+t.value),super.validate(t)}}var tB=new eB;class rB extends Ir{populate(t,r){return{...t,index:r,value:{},state:null,valid:null}}validate(){return{valid:!0,state:!0}}append(t,r,n){const i={};B(n,"properties.options",[]).forEach((a,o)=>{i[o]={index:o,label:a.label,text:a.text,flipped:0,msec:0}}),t.append(r,JSON.stringify(Object.assign(i,n.value)))}test(){return!1}}var nB=new rB;class iB extends ml{populate(t,r,n=!1){const i=n?this.queryNumber(t):null;return{...t,index:r,value:i,state:null,valid:null}}}var aB=new iB,z8={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(lt,function(){var r=1e3,n=6e4,i=36e5,a="millisecond",o="second",s="minute",u="hour",l="day",c="week",f="month",d="quarter",p="year",h="date",b="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(M){var U=["th","st","nd","rd"],x=M%100;return"["+M+(U[(x-20)%10]||U[x]||U[0])+"]"}},w=function(M,U,x){var I=String(M);return!I||I.length>=U?M:""+Array(U+1-I.length).join(x)+M},D={s:w,z:function(M){var U=-M.utcOffset(),x=Math.abs(U),I=Math.floor(x/60),ee=x%60;return(U<=0?"+":"-")+w(I,2,"0")+":"+w(ee,2,"0")},m:function M(U,x){if(U.date()<x.date())return-M(x,U);var I=12*(x.year()-U.year())+(x.month()-U.month()),ee=U.clone().add(I,f),oe=x-ee<0,ce=U.clone().add(I+(oe?-1:1),f);return+(-(I+(x-ee)/(oe?ee-ce:ce-ee))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:f,y:p,w:c,d:l,D:h,h:u,m:s,s:o,ms:a,Q:d}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},_="en",N={};N[_]=S;var $="$isDayjsObject",k=function(M){return M instanceof q||!(!M||!M[$])},K=function M(U,x,I){var ee;if(!U)return _;if(typeof U=="string"){var oe=U.toLowerCase();N[oe]&&(ee=oe),x&&(N[oe]=x,ee=oe);var ce=U.split("-");if(!ee&&ce.length>1)return M(ce[0])}else{var $e=U.name;N[$e]=U,ee=$e}return!I&&ee&&(_=ee),ee||!I&&_},G=function(M,U){if(k(M))return M.clone();var x=typeof U=="object"?U:{};return x.date=M,x.args=arguments,new q(x)},j=D;j.l=K,j.i=k,j.w=function(M,U){return G(M,{locale:U.$L,utc:U.$u,x:U.$x,$offset:U.$offset})};var q=function(){function M(x){this.$L=K(x.locale,null,!0),this.parse(x),this.$x=this.$x||x.x||{},this[$]=!0}var U=M.prototype;return U.parse=function(x){this.$d=function(I){var ee=I.date,oe=I.utc;if(ee===null)return new Date(NaN);if(j.u(ee))return new Date;if(ee instanceof Date)return new Date(ee);if(typeof ee=="string"&&!/Z$/i.test(ee)){var ce=ee.match(g);if(ce){var $e=ce[2]-1||0,me=(ce[7]||"0").substring(0,3);return oe?new Date(Date.UTC(ce[1],$e,ce[3]||1,ce[4]||0,ce[5]||0,ce[6]||0,me)):new Date(ce[1],$e,ce[3]||1,ce[4]||0,ce[5]||0,ce[6]||0,me)}}return new Date(ee)}(x),this.init()},U.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},U.$utils=function(){return j},U.isValid=function(){return this.$d.toString()!==b},U.isSame=function(x,I){var ee=G(x);return this.startOf(I)<=ee&&ee<=this.endOf(I)},U.isAfter=function(x,I){return G(x)<this.startOf(I)},U.isBefore=function(x,I){return this.endOf(I)<G(x)},U.$g=function(x,I,ee){return j.u(x)?this[I]:this.set(ee,x)},U.unix=function(){return Math.floor(this.valueOf()/1e3)},U.valueOf=function(){return this.$d.getTime()},U.startOf=function(x,I){var ee=this,oe=!!j.u(I)||I,ce=j.p(x),$e=function(Ne,je){var Pe=j.w(ee.$u?Date.UTC(ee.$y,je,Ne):new Date(ee.$y,je,Ne),ee);return oe?Pe:Pe.endOf(l)},me=function(Ne,je){return j.w(ee.toDate()[Ne].apply(ee.toDate("s"),(oe?[0,0,0,0]:[23,59,59,999]).slice(je)),ee)},_e=this.$W,Ue=this.$M,te=this.$D,Te="set"+(this.$u?"UTC":"");switch(ce){case p:return oe?$e(1,0):$e(31,11);case f:return oe?$e(1,Ue):$e(0,Ue+1);case c:var de=this.$locale().weekStart||0,De=(_e<de?_e+7:_e)-de;return $e(oe?te-De:te+(6-De),Ue);case l:case h:return me(Te+"Hours",0);case u:return me(Te+"Minutes",1);case s:return me(Te+"Seconds",2);case o:return me(Te+"Milliseconds",3);default:return this.clone()}},U.endOf=function(x){return this.startOf(x,!1)},U.$set=function(x,I){var ee,oe=j.p(x),ce="set"+(this.$u?"UTC":""),$e=(ee={},ee[l]=ce+"Date",ee[h]=ce+"Date",ee[f]=ce+"Month",ee[p]=ce+"FullYear",ee[u]=ce+"Hours",ee[s]=ce+"Minutes",ee[o]=ce+"Seconds",ee[a]=ce+"Milliseconds",ee)[oe],me=oe===l?this.$D+(I-this.$W):I;if(oe===f||oe===p){var _e=this.clone().set(h,1);_e.$d[$e](me),_e.init(),this.$d=_e.set(h,Math.min(this.$D,_e.daysInMonth())).$d}else $e&&this.$d[$e](me);return this.init(),this},U.set=function(x,I){return this.clone().$set(x,I)},U.get=function(x){return this[j.p(x)]()},U.add=function(x,I){var ee,oe=this;x=Number(x);var ce=j.p(I),$e=function(Ue){var te=G(oe);return j.w(te.date(te.date()+Math.round(Ue*x)),oe)};if(ce===f)return this.set(f,this.$M+x);if(ce===p)return this.set(p,this.$y+x);if(ce===l)return $e(1);if(ce===c)return $e(7);var me=(ee={},ee[s]=n,ee[u]=i,ee[o]=r,ee)[ce]||1,_e=this.$d.getTime()+x*me;return j.w(_e,this)},U.subtract=function(x,I){return this.add(-1*x,I)},U.format=function(x){var I=this,ee=this.$locale();if(!this.isValid())return ee.invalidDate||b;var oe=x||"YYYY-MM-DDTHH:mm:ssZ",ce=j.z(this),$e=this.$H,me=this.$m,_e=this.$M,Ue=ee.weekdays,te=ee.months,Te=ee.meridiem,de=function(je,Pe,ze,R){return je&&(je[Pe]||je(I,oe))||ze[Pe].slice(0,R)},De=function(je){return j.s($e%12||12,je,"0")},Ne=Te||function(je,Pe,ze){var R=je<12?"AM":"PM";return ze?R.toLowerCase():R};return oe.replace(v,function(je,Pe){return Pe||function(ze){switch(ze){case"YY":return String(I.$y).slice(-2);case"YYYY":return j.s(I.$y,4,"0");case"M":return _e+1;case"MM":return j.s(_e+1,2,"0");case"MMM":return de(ee.monthsShort,_e,te,3);case"MMMM":return de(te,_e);case"D":return I.$D;case"DD":return j.s(I.$D,2,"0");case"d":return String(I.$W);case"dd":return de(ee.weekdaysMin,I.$W,Ue,2);case"ddd":return de(ee.weekdaysShort,I.$W,Ue,3);case"dddd":return Ue[I.$W];case"H":return String($e);case"HH":return j.s($e,2,"0");case"h":return De(1);case"hh":return De(2);case"a":return Ne($e,me,!0);case"A":return Ne($e,me,!1);case"m":return String(me);case"mm":return j.s(me,2,"0");case"s":return String(I.$s);case"ss":return j.s(I.$s,2,"0");case"SSS":return j.s(I.$ms,3,"0");case"Z":return ce}return null}(je)||ce.replace(":","")})},U.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},U.diff=function(x,I,ee){var oe,ce=this,$e=j.p(I),me=G(x),_e=(me.utcOffset()-this.utcOffset())*n,Ue=this-me,te=function(){return j.m(ce,me)};switch($e){case p:oe=te()/12;break;case f:oe=te();break;case d:oe=te()/3;break;case c:oe=(Ue-_e)/6048e5;break;case l:oe=(Ue-_e)/864e5;break;case u:oe=Ue/i;break;case s:oe=Ue/n;break;case o:oe=Ue/r;break;default:oe=Ue}return ee?oe:j.a(oe)},U.daysInMonth=function(){return this.endOf(f).$D},U.$locale=function(){return N[this.$L]},U.locale=function(x,I){if(!x)return this.$L;var ee=this.clone(),oe=K(x,I,!0);return oe&&(ee.$L=oe),ee},U.clone=function(){return j.w(this.$d,this)},U.toDate=function(){return new Date(this.valueOf())},U.toJSON=function(){return this.isValid()?this.toISOString():null},U.toISOString=function(){return this.$d.toISOString()},U.toString=function(){return this.$d.toUTCString()},M}(),re=q.prototype;return G.prototype=re,[["$ms",a],["$s",o],["$m",s],["$H",u],["$W",l],["$M",f],["$y",p],["$D",h]].forEach(function(M){re[M[1]]=function(U){return this.$g(U,M[0],M[1])}}),G.extend=function(M,U){return M.$i||(M(U,q,G),M.$i=!0),G},G.locale=K,G.isDayjs=k,G.unix=function(M){return G(1e3*M)},G.en=N[_],G.Ls=N,G.p={},G})})(z8);var Qd=z8.exports;const om=e=>{if(e!==null&&e.includes("#")){const t=e.split("#");return Qd().add(Number(t[0]),t[1]).format("YYYY-MM-DD")}return e!==null?e:Qd().format("YYYY-MM-DD")};class oB extends Zv{populate(t,r,n=!1){let i=n?this.queryString(t):null;return i===null&&(i=B(t,"properties.visibleCountry",!1)?om(B(t,"properties.country",null)):null),{...t,index:r,value:i,state:null,valid:null}}validate(t){const r=super.validate(t);if(r.state&&r.valid){let n=!0,i=!0;B(t,"properties.visibleAddressLine1",!1)&&(n=om(B(t,"properties.addressLine1",null))<=t.value),B(t,"properties.visibleAddressLine2",!1)&&(i=om(B(t,"properties.addressLine2",null))>=t.value),r.state=r.valid=n&&i}return r}mentionExpression(t){const r=super.mentionExpression(t),n=function(i){const a=i.split(/[: T-]/).map(parseFloat);return new Date(a[0],a[1]-1,a[2],a[3]||0,a[4]||0,a[5]||0,0).getTime()/1e3};return r!==null?{id:t.id,value:n(String(t.value))}:r}}var sB=new oB;class uB extends Ir{populate(t,r){let n=0;if(B(t,"properties.type")==="countdown"){const a=Number(B(t,"properties.seconds"));isNaN(a)||(n=a)}return{...t,index:r,value:n,state:null,valid:null}}validate(){return{state:!0,valid:!0}}append(t,r,n){isNaN(n.value)?t.append(r,"0"):t.append(r,Number(n.value).toString())}test(t,r,n){return this.testNumber(Number(t.value),r,n)}}var lB=new uB;class cB extends ml{append(t,r,n){n.value!==null?t.append(r,JSON.stringify(String(n.value))):t.append(r,"null")}}var fB=new cB;const ys=e=>{const t={address:h$,captcha:ab,date:sB,dropdown:ob,email:E$,file:v$,hidden:lb,"score-calculation":lb,"score-choice":W$,"full-name":S$,"long-text":ab,matrix:I$,"picture-choice":ib,"multiple-choice":ib,"newsletter-signup":w$,"cassudy-flashcards":nB,number:F$,"order-cart":C$,paypal:sb,stripe:sb,phone:T$,rating:aB,expression:fB,calculation:k$,timer:lB,scale:B$,"short-text":ob,signature:j$,slider:R$,"terms-of-use":y$,"media-answer":J$,website:tB,h1:Nf,h2:Nf,image:Nf,text:Nf};return Object.prototype.hasOwnProperty.call(t,e)?t[e]:d$};var Ya={populate(e,t=0,r=!1){return ys(e.type).populate(e,t,r)},state(e){return ys(e.type).state()},validate(e){return ys(e.type).validate(e)},async append(e,t,r){return ys(r.type).append(e,t,r)},test(e,t,r){return ys(e.type).test(e,t,r)},mention(e){return ys(e.type).mention(e)},mentionExpression(e){return ys(e.type).mentionExpression(e)}},I1={exports:{}};(function(e,t){var r=200,n="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",o="[object Array]",s="[object Boolean]",u="[object Date]",l="[object Error]",c="[object Function]",f="[object GeneratorFunction]",d="[object Map]",p="[object Number]",h="[object Object]",b="[object Promise]",g="[object RegExp]",v="[object Set]",S="[object String]",w="[object Symbol]",D="[object WeakMap]",_="[object ArrayBuffer]",N="[object DataView]",$="[object Float32Array]",k="[object Float64Array]",K="[object Int8Array]",G="[object Int16Array]",j="[object Int32Array]",q="[object Uint8Array]",re="[object Uint8ClampedArray]",M="[object Uint16Array]",U="[object Uint32Array]",x=/[\\^$.*+?()[\]{}|]/g,I=/\w*$/,ee=/^\[object .+?Constructor\]$/,oe=/^(?:0|[1-9]\d*)$/,ce={};ce[a]=ce[o]=ce[_]=ce[N]=ce[s]=ce[u]=ce[$]=ce[k]=ce[K]=ce[G]=ce[j]=ce[d]=ce[p]=ce[h]=ce[g]=ce[v]=ce[S]=ce[w]=ce[q]=ce[re]=ce[M]=ce[U]=!0,ce[l]=ce[c]=ce[D]=!1;var $e=typeof lt=="object"&&lt&&lt.Object===Object&&lt,me=typeof self=="object"&&self&&self.Object===Object&&self,_e=$e||me||Function("return this")(),Ue=t&&!t.nodeType&&t,te=Ue&&!0&&e&&!e.nodeType&&e,Te=te&&te.exports===Ue;function de(y,F){return y.set(F[0],F[1]),y}function De(y,F){return y.add(F),y}function Ne(y,F){for(var Z=-1,Ae=y?y.length:0;++Z<Ae&&F(y[Z],Z,y)!==!1;);return y}function je(y,F){for(var Z=-1,Ae=F.length,pt=y.length;++Z<Ae;)y[pt+Z]=F[Z];return y}function Pe(y,F,Z,Ae){var pt=-1,rt=y?y.length:0;for(Ae&&rt&&(Z=y[++pt]);++pt<rt;)Z=F(Z,y[pt],pt,y);return Z}function ze(y,F){for(var Z=-1,Ae=Array(y);++Z<y;)Ae[Z]=F(Z);return Ae}function R(y,F){return y==null?void 0:y[F]}function J(y){var F=!1;if(y!=null&&typeof y.toString!="function")try{F=!!(y+"")}catch{}return F}function he(y){var F=-1,Z=Array(y.size);return y.forEach(function(Ae,pt){Z[++F]=[pt,Ae]}),Z}function Se(y,F){return function(Z){return y(F(Z))}}function Ce(y){var F=-1,Z=Array(y.size);return y.forEach(function(Ae){Z[++F]=Ae}),Z}var X=Array.prototype,ie=Function.prototype,fe=Object.prototype,xe=_e["__core-js_shared__"],pe=function(){var y=/[^.]+$/.exec(xe&&xe.keys&&xe.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}(),Be=ie.toString,ve=fe.hasOwnProperty,Le=fe.toString,Ve=RegExp("^"+Be.call(ve).replace(x,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),P=Te?_e.Buffer:void 0,C=_e.Symbol,be=_e.Uint8Array,T=Se(Object.getPrototypeOf,Object),z=Object.create,E=fe.propertyIsEnumerable,O=X.splice,H=Object.getOwnPropertySymbols,L=P?P.isBuffer:void 0,Q=Se(Object.keys,Object),se=hn(_e,"DataView"),m=hn(_e,"Map"),A=hn(_e,"Promise"),Y=hn(_e,"Set"),le=hn(_e,"WeakMap"),Fe=hn(Object,"create"),He=qe(se),et=qe(m),gt=qe(A),Lt=qe(Y),ir=qe(le),Pt=C?C.prototype:void 0,mr=Pt?Pt.valueOf:void 0;function Nr(y){var F=-1,Z=y?y.length:0;for(this.clear();++F<Z;){var Ae=y[F];this.set(Ae[0],Ae[1])}}function ki(){this.__data__=Fe?Fe(null):{}}function ga(y){return this.has(y)&&delete this.__data__[y]}function ya(y){var F=this.__data__;if(Fe){var Z=F[y];return Z===n?void 0:Z}return ve.call(F,y)?F[y]:void 0}function Oi(y){var F=this.__data__;return Fe?F[y]!==void 0:ve.call(F,y)}function Ln(y,F){var Z=this.__data__;return Z[y]=Fe&&F===void 0?n:F,this}Nr.prototype.clear=ki,Nr.prototype.delete=ga,Nr.prototype.get=ya,Nr.prototype.has=Oi,Nr.prototype.set=Ln;function Zt(y){var F=-1,Z=y?y.length:0;for(this.clear();++F<Z;){var Ae=y[F];this.set(Ae[0],Ae[1])}}function ii(){this.__data__=[]}function Fi(y){var F=this.__data__,Z=Un(F,y);if(Z<0)return!1;var Ae=F.length-1;return Z==Ae?F.pop():O.call(F,Z,1),!0}function ba(y){var F=this.__data__,Z=Un(F,y);return Z<0?void 0:F[Z][1]}function wa(y){return Un(this.__data__,y)>-1}function $i(y,F){var Z=this.__data__,Ae=Un(Z,y);return Ae<0?Z.push([y,F]):Z[Ae][1]=F,this}Zt.prototype.clear=ii,Zt.prototype.delete=Fi,Zt.prototype.get=ba,Zt.prototype.has=wa,Zt.prototype.set=$i;function ar(y){var F=-1,Z=y?y.length:0;for(this.clear();++F<Z;){var Ae=y[F];this.set(Ae[0],Ae[1])}}function _a(){this.__data__={hash:new Nr,map:new(m||Zt),string:new Nr}}function ai(y){return Sa(this,y).delete(y)}function oi(y){return Sa(this,y).get(y)}function Bi(y){return Sa(this,y).has(y)}function Jr(y,F){return Sa(this,y).set(y,F),this}ar.prototype.clear=_a,ar.prototype.delete=ai,ar.prototype.get=oi,ar.prototype.has=Bi,ar.prototype.set=Jr;function vr(y){this.__data__=new Zt(y)}function Pi(){this.__data__=new Zt}function xa(y){return this.__data__.delete(y)}function Ea(y){return this.__data__.get(y)}function Da(y){return this.__data__.has(y)}function jn(y,F){var Z=this.__data__;if(Z instanceof Zt){var Ae=Z.__data__;if(!m||Ae.length<r-1)return Ae.push([y,F]),this;Z=this.__data__=new ar(Ae)}return Z.set(y,F),this}vr.prototype.clear=Pi,vr.prototype.delete=xa,vr.prototype.get=Ea,vr.prototype.has=Da,vr.prototype.set=jn;function Xr(y,F){var Z=Tt(y)||$t(y)?ze(y.length,String):[],Ae=Z.length,pt=!!Ae;for(var rt in y)(F||ve.call(y,rt))&&!(pt&&(rt=="length"||ue(rt,Ae)))&&Z.push(rt);return Z}function si(y,F,Z){var Ae=y[F];(!(ve.call(y,F)&&Je(Ae,Z))||Z===void 0&&!(F in y))&&(y[F]=Z)}function Un(y,F){for(var Z=y.length;Z--;)if(Je(y[Z][0],F))return Z;return-1}function zr(y,F){return y&&fs(F,Ca(F),y)}function Qr(y,F,Z,Ae,pt,rt,Et){var kt;if(Ae&&(kt=rt?Ae(y,pt,rt,Et):Ae(y)),kt!==void 0)return kt;if(!jt(y))return y;var gr=Tt(y);if(gr){if(kt=Fl(y),!F)return mo(y,kt)}else{var Rt=fi(y),qr=Rt==c||Rt==f;if(xt(y))return zn(y,F);if(Rt==h||Rt==a||qr&&!rt){if(J(y))return rt?y:{};if(kt=en(qr?{}:y),!F)return Ol(y,zr(kt,y))}else{if(!ce[Rt])return rt?y:{};kt=W(y,Rt,Qr,F)}}Et||(Et=new vr);var mn=Et.get(y);if(mn)return mn;if(Et.set(y,kt),!gr)var wr=Z?uu(y):Ca(y);return Ne(wr||y,function(Hr,Mr){wr&&(Mr=Hr,Hr=y[Mr]),si(kt,Mr,Qr(Hr,F,Z,Ae,Mr,y,Et))}),kt}function Ft(y){return jt(y)?z(y):{}}function or(y,F,Z){var Ae=F(y);return Tt(y)?Ae:je(Ae,Z(y))}function ui(y){return Le.call(y)}function It(y){if(!jt(y)||Ie(y))return!1;var F=Wt(y)||J(y)?Ve:ee;return F.test(qe(y))}function pn(y){if(!Ke(y))return Q(y);var F=[];for(var Z in Object(y))ve.call(y,Z)&&Z!="constructor"&&F.push(Z);return F}function zn(y,F){if(F)return y.slice();var Z=new y.constructor(y.length);return y.copy(Z),Z}function po(y){var F=new y.constructor(y.byteLength);return new be(F).set(new be(y)),F}function Ii(y,F){var Z=F?po(y.buffer):y.buffer;return new y.constructor(Z,y.byteOffset,y.byteLength)}function au(y,F,Z){var Ae=F?Z(he(y),!0):he(y);return Pe(Ae,de,new y.constructor)}function ho(y){var F=new y.constructor(y.source,I.exec(y));return F.lastIndex=y.lastIndex,F}function li(y,F,Z){var Ae=F?Z(Ce(y),!0):Ce(y);return Pe(Ae,De,new y.constructor)}function ou(y){return mr?Object(mr.call(y)):{}}function su(y,F){var Z=F?po(y.buffer):y.buffer;return new y.constructor(Z,y.byteOffset,y.length)}function mo(y,F){var Z=-1,Ae=y.length;for(F||(F=Array(Ae));++Z<Ae;)F[Z]=y[Z];return F}function fs(y,F,Z,Ae){Z||(Z={});for(var pt=-1,rt=F.length;++pt<rt;){var Et=F[pt],kt=Ae?Ae(Z[Et],y[Et],Et,Z,y):void 0;si(Z,Et,kt===void 0?y[Et]:kt)}return Z}function Ol(y,F){return fs(y,ci(y),F)}function uu(y){return or(y,Ca,ci)}function Sa(y,F){var Z=y.__data__;return ye(F)?Z[typeof F=="string"?"string":"hash"]:Z.map}function hn(y,F){var Z=R(y,F);return It(Z)?Z:void 0}var ci=H?Se(H,Object):ds,fi=ui;(se&&fi(new se(new ArrayBuffer(1)))!=N||m&&fi(new m)!=d||A&&fi(A.resolve())!=b||Y&&fi(new Y)!=v||le&&fi(new le)!=D)&&(fi=function(y){var F=Le.call(y),Z=F==h?y.constructor:void 0,Ae=Z?qe(Z):void 0;if(Ae)switch(Ae){case He:return N;case et:return d;case gt:return b;case Lt:return v;case ir:return D}return F});function Fl(y){var F=y.length,Z=y.constructor(F);return F&&typeof y[0]=="string"&&ve.call(y,"index")&&(Z.index=y.index,Z.input=y.input),Z}function en(y){return typeof y.constructor=="function"&&!Ke(y)?Ft(T(y)):{}}function W(y,F,Z,Ae){var pt=y.constructor;switch(F){case _:return po(y);case s:case u:return new pt(+y);case N:return Ii(y,Ae);case $:case k:case K:case G:case j:case q:case re:case M:case U:return su(y,Ae);case d:return au(y,Ae,Z);case p:case S:return new pt(y);case g:return ho(y);case v:return li(y,Ae,Z);case w:return ou(y)}}function ue(y,F){return F=F==null?i:F,!!F&&(typeof y=="number"||oe.test(y))&&y>-1&&y%1==0&&y<F}function ye(y){var F=typeof y;return F=="string"||F=="number"||F=="symbol"||F=="boolean"?y!=="__proto__":y===null}function Ie(y){return!!pe&&pe in y}function Ke(y){var F=y&&y.constructor,Z=typeof F=="function"&&F.prototype||fe;return y===Z}function qe(y){if(y!=null){try{return Be.call(y)}catch{}try{return y+""}catch{}}return""}function ot(y){return Qr(y,!0,!0)}function Je(y,F){return y===F||y!==y&&F!==F}function $t(y){return zt(y)&&ve.call(y,"callee")&&(!E.call(y,"callee")||Le.call(y)==a)}var Tt=Array.isArray;function Mt(y){return y!=null&&fr(y.length)&&!Wt(y)}function zt(y){return sr(y)&&Mt(y)}var xt=L||ps;function Wt(y){var F=jt(y)?Le.call(y):"";return F==c||F==f}function fr(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=i}function jt(y){var F=typeof y;return!!y&&(F=="object"||F=="function")}function sr(y){return!!y&&typeof y=="object"}function Ca(y){return Mt(y)?Xr(y):pn(y)}function ds(){return[]}function ps(){return!1}e.exports=ot})(I1,I1.exports);var M1=I1.exports;const db=["hidden","expression","calculation","score-calculation","timer"],dB=["checkout"],Vi={FLUSH:"1",INIT:"2",VALIDATE:"3",UPDATE:"4"},pB={fields:{}},hB={async reset(e){e.commit(Vi.FLUSH);const t=B(e.rootGetters["loader/data"],"data.populate",!1);B(e.rootGetters["loader/data"],"fields",[]).forEach((r,n)=>{e.commit(Vi.INIT,{field:r,index:n,populate:t})})},async validate(e,t){Object.prototype.hasOwnProperty.call(t.field,"value")&&(e.getters.is_visible(t.field)?e.commit(Vi.VALIDATE,{field:t.field,result:await Ya.validate(t.field)}):e.commit(Vi.VALIDATE,{field:t.field,result:{valid:!0}}))},async update(e,t){e.dispatch("persistence/field",t,{root:!0}),e.commit(Vi.UPDATE,t)},async _update(e,t){e.commit(Vi.UPDATE,t)}},mB={[Vi.FLUSH](e){e.fields={}},[Vi.INIT](e,t){e.fields[t.index]=Ya.populate(t.field,t.index,t.populate)},[Vi.VALIDATE](e,t){e.fields[t.field.index].state=t.result.state,e.fields[t.field.index].valid=t.result.valid},[Vi.UPDATE](e,t){Object.prototype.hasOwnProperty.call(B(e,"fields."+t.field.index,{}),"value")&&(e.fields[t.field.index].value=t.value,e.fields[t.field.index].state=Ya.state(t.field),e.fields[t.field.index].valid=null)}},vB={conversationalFields:(e,t,r,n)=>{const i=[],a=()=>({id:dh(),type:"pagebreak",properties:{prev:n["form/conversationalPrev"],next:n["form/conversationalNext"]}}),o=[0];let s=0,u=!1;t.visible.forEach(f=>{const d=M1(f),p=R8(d.type);!u&&!p?(d.type==="pagebreak"&&o.push(s),i.push(d)):!u&&p?(i.push(d),u=!0):u&&p?(i.push(a()),s++,i.push(d),u=!0):u&&!p&&(d.type==="pagebreak"?(i.push(d),o.push(s),u=!1):(i.push(a()),s++,i.push(d),u=!1))});const l=f=>{f.action==="page"&&f.value&&(f.value=Number(f.value)+o[Number(f.value)-1])},c=f=>{f.action==="page"&&f.param&&(f.param=Number(f.param)+o[Number(f.param)-1])};return i.forEach(f=>{f.type==="pagebreak"?(B(f,"properties.logic.fallback")&&l(f.properties.logic.fallback),B(f,"properties.logic.jumps")&&f.properties.logic.jumps.forEach(l)):f.type==="action-list"&&B(f,"properties.items")&&f.properties.items.forEach(c)}),{fields:i,offset:o}},is_visible:(e,t)=>r=>{const n=B(r,"properties.visibility");if(n&&"jumps"in n&&"fallback"in n&&n.jumps.length>0){const a=B(n,"jumps.0"),o=[{field:B(a,"field",null),operator:B(a,"operator",null),operand:B(a,"operand",null)}].concat(B(a,"additional",[])),s=l=>{const c=t.field_by_id(l.field);return c?Ya.test(c,l.operator,l.operand):!1};return(B(a,"join","all")==="all"?o.every(s):o.some(s))?B(a,"action")!=="hide":B(n,"fallback.action")!=="hide"}return!0},all:e=>Object.values(e.fields),visible:(e,t)=>t.all.filter(r=>!dB.includes(r.type)&&!db.includes(r.type)),hidden:(e,t)=>t.all.filter(r=>db.includes(r.type)),offset:(e,t,r,n)=>n["form/conversational"]?t.conversationalFields.offset:[],fields:(e,t,r,n)=>n["form/conversational"]?t.conversationalFields.fields:t.visible,field_by_id:(e,t)=>r=>t.all.find(n=>r===B(n,"id")),value:e=>(t,r=null)=>B(e,"fields."+t+".value",r),state:e=>(t,r=null)=>B(e,"fields."+t+".state",r),valid:e=>(t,r=null)=>B(e,"fields."+t+".valid",r),mentions:(e,t)=>t.all.map(r=>Ya.mention(r)).filter(r=>r!==null),mentionsExpression:(e,t)=>t.all.map(r=>Ya.mentionExpression(r)).filter(r=>r!==null),mentionsSafeHtml:(e,t)=>t.mentions.map(r=>({id:r.id,value:f$(r.value)}))};var gB={namespaced:!0,state:pB,actions:hB,mutations:mB,getters:vB},q8={exports:{}};(function(e){(function(){function t(E,O,H){return E.call.apply(E.bind,arguments)}function r(E,O,H){if(!E)throw Error();if(2<arguments.length){var L=Array.prototype.slice.call(arguments,2);return function(){var Q=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(Q,L),E.apply(O,Q)}}return function(){return E.apply(O,arguments)}}function n(E,O,H){return n=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?t:r,n.apply(null,arguments)}var i=Date.now||function(){return+new Date};function a(E,O){this.a=E,this.o=O||E,this.c=this.o.document}var o=!!window.FontFace;function s(E,O,H,L){if(O=E.c.createElement(O),H)for(var Q in H)H.hasOwnProperty(Q)&&(Q=="style"?O.style.cssText=H[Q]:O.setAttribute(Q,H[Q]));return L&&O.appendChild(E.c.createTextNode(L)),O}function u(E,O,H){E=E.c.getElementsByTagName(O)[0],E||(E=document.documentElement),E.insertBefore(H,E.lastChild)}function l(E){E.parentNode&&E.parentNode.removeChild(E)}function c(E,O,H){O=O||[],H=H||[];for(var L=E.className.split(/\s+/),Q=0;Q<O.length;Q+=1){for(var se=!1,m=0;m<L.length;m+=1)if(O[Q]===L[m]){se=!0;break}se||L.push(O[Q])}for(O=[],Q=0;Q<L.length;Q+=1){for(se=!1,m=0;m<H.length;m+=1)if(L[Q]===H[m]){se=!0;break}se||O.push(L[Q])}E.className=O.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function f(E,O){for(var H=E.className.split(/\s+/),L=0,Q=H.length;L<Q;L++)if(H[L]==O)return!0;return!1}function d(E){return E.o.location.hostname||E.a.location.hostname}function p(E,O,H){function L(){A&&Q&&se&&(A(m),A=null)}O=s(E,"link",{rel:"stylesheet",href:O,media:"all"});var Q=!1,se=!0,m=null,A=H||null;o?(O.onload=function(){Q=!0,L()},O.onerror=function(){Q=!0,m=Error("Stylesheet failed to load"),L()}):setTimeout(function(){Q=!0,L()},0),u(E,"head",O)}function h(E,O,H,L){var Q=E.c.getElementsByTagName("head")[0];if(Q){var se=s(E,"script",{src:O}),m=!1;return se.onload=se.onreadystatechange=function(){m||this.readyState&&this.readyState!="loaded"&&this.readyState!="complete"||(m=!0,H&&H(null),se.onload=se.onreadystatechange=null,se.parentNode.tagName=="HEAD"&&Q.removeChild(se))},Q.appendChild(se),setTimeout(function(){m||(m=!0,H&&H(Error("Script load timeout")))},L||5e3),se}return null}function b(){this.a=0,this.c=null}function g(E){return E.a++,function(){E.a--,S(E)}}function v(E,O){E.c=O,S(E)}function S(E){E.a==0&&E.c&&(E.c(),E.c=null)}function w(E){this.a=E||"-"}w.prototype.c=function(E){for(var O=[],H=0;H<arguments.length;H++)O.push(arguments[H].replace(/[\W_]+/g,"").toLowerCase());return O.join(this.a)};function D(E,O){this.c=E,this.f=4,this.a="n";var H=(O||"n4").match(/^([nio])([1-9])$/i);H&&(this.a=H[1],this.f=parseInt(H[2],10))}function _(E){return k(E)+" "+(E.f+"00")+" 300px "+N(E.c)}function N(E){var O=[];E=E.split(/,\s*/);for(var H=0;H<E.length;H++){var L=E[H].replace(/['"]/g,"");L.indexOf(" ")!=-1||/^\d/.test(L)?O.push("'"+L+"'"):O.push(L)}return O.join(",")}function $(E){return E.a+E.f}function k(E){var O="normal";return E.a==="o"?O="oblique":E.a==="i"&&(O="italic"),O}function K(E){var O=4,H="n",L=null;return E&&((L=E.match(/(normal|oblique|italic)/i))&&L[1]&&(H=L[1].substr(0,1).toLowerCase()),(L=E.match(/([1-9]00|normal|bold)/i))&&L[1]&&(/bold/i.test(L[1])?O=7:/[1-9]00/.test(L[1])&&(O=parseInt(L[1].substr(0,1),10)))),H+O}function G(E,O){this.c=E,this.f=E.o.document.documentElement,this.h=O,this.a=new w("-"),this.j=O.events!==!1,this.g=O.classes!==!1}function j(E){E.g&&c(E.f,[E.a.c("wf","loading")]),re(E,"loading")}function q(E){if(E.g){var O=f(E.f,E.a.c("wf","active")),H=[],L=[E.a.c("wf","loading")];O||H.push(E.a.c("wf","inactive")),c(E.f,H,L)}re(E,"inactive")}function re(E,O,H){E.j&&E.h[O]&&(H?E.h[O](H.c,$(H)):E.h[O]())}function M(){this.c={}}function U(E,O,H){var L=[],Q;for(Q in O)if(O.hasOwnProperty(Q)){var se=E.c[Q];se&&L.push(se(O[Q],H))}return L}function x(E,O){this.c=E,this.f=O,this.a=s(this.c,"span",{"aria-hidden":"true"},this.f)}function I(E){u(E.c,"body",E.a)}function ee(E){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+N(E.c)+";"+("font-style:"+k(E)+";font-weight:"+(E.f+"00")+";")}function oe(E,O,H,L,Q,se){this.g=E,this.j=O,this.a=L,this.c=H,this.f=Q||3e3,this.h=se||void 0}oe.prototype.start=function(){var E=this.c.o.document,O=this,H=i(),L=new Promise(function(m,A){function Y(){i()-H>=O.f?A():E.fonts.load(_(O.a),O.h).then(function(le){1<=le.length?m():setTimeout(Y,25)},function(){A()})}Y()}),Q=null,se=new Promise(function(m,A){Q=setTimeout(A,O.f)});Promise.race([se,L]).then(function(){Q&&(clearTimeout(Q),Q=null),O.g(O.a)},function(){O.j(O.a)})};function ce(E,O,H,L,Q,se,m){this.v=E,this.B=O,this.c=H,this.a=L,this.s=m||"BESbswy",this.f={},this.w=Q||3e3,this.u=se||null,this.m=this.j=this.h=this.g=null,this.g=new x(this.c,this.s),this.h=new x(this.c,this.s),this.j=new x(this.c,this.s),this.m=new x(this.c,this.s),E=new D(this.a.c+",serif",$(this.a)),E=ee(E),this.g.a.style.cssText=E,E=new D(this.a.c+",sans-serif",$(this.a)),E=ee(E),this.h.a.style.cssText=E,E=new D("serif",$(this.a)),E=ee(E),this.j.a.style.cssText=E,E=new D("sans-serif",$(this.a)),E=ee(E),this.m.a.style.cssText=E,I(this.g),I(this.h),I(this.j),I(this.m)}var $e={D:"serif",C:"sans-serif"},me=null;function _e(){if(me===null){var E=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);me=!!E&&(536>parseInt(E[1],10)||parseInt(E[1],10)===536&&11>=parseInt(E[2],10))}return me}ce.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=i(),te(this)};function Ue(E,O,H){for(var L in $e)if($e.hasOwnProperty(L)&&O===E.f[$e[L]]&&H===E.f[$e[L]])return!0;return!1}function te(E){var O=E.g.a.offsetWidth,H=E.h.a.offsetWidth,L;(L=O===E.f.serif&&H===E.f["sans-serif"])||(L=_e()&&Ue(E,O,H)),L?i()-E.A>=E.w?_e()&&Ue(E,O,H)&&(E.u===null||E.u.hasOwnProperty(E.a.c))?de(E,E.v):de(E,E.B):Te(E):de(E,E.v)}function Te(E){setTimeout(n(function(){te(this)},E),50)}function de(E,O){setTimeout(n(function(){l(this.g.a),l(this.h.a),l(this.j.a),l(this.m.a),O(this.a)},E),0)}function De(E,O,H){this.c=E,this.a=O,this.f=0,this.m=this.j=!1,this.s=H}var Ne=null;De.prototype.g=function(E){var O=this.a;O.g&&c(O.f,[O.a.c("wf",E.c,$(E).toString(),"active")],[O.a.c("wf",E.c,$(E).toString(),"loading"),O.a.c("wf",E.c,$(E).toString(),"inactive")]),re(O,"fontactive",E),this.m=!0,je(this)},De.prototype.h=function(E){var O=this.a;if(O.g){var H=f(O.f,O.a.c("wf",E.c,$(E).toString(),"active")),L=[],Q=[O.a.c("wf",E.c,$(E).toString(),"loading")];H||L.push(O.a.c("wf",E.c,$(E).toString(),"inactive")),c(O.f,L,Q)}re(O,"fontinactive",E),je(this)};function je(E){--E.f==0&&E.j&&(E.m?(E=E.a,E.g&&c(E.f,[E.a.c("wf","active")],[E.a.c("wf","loading"),E.a.c("wf","inactive")]),re(E,"active")):q(E.a))}function Pe(E){this.j=E,this.a=new M,this.h=0,this.f=this.g=!0}Pe.prototype.load=function(E){this.c=new a(this.j,E.context||this.j),this.g=E.events!==!1,this.f=E.classes!==!1,R(this,new G(this.c,E),E)};function ze(E,O,H,L,Q){var se=--E.h==0;(E.f||E.g)&&setTimeout(function(){var m=Q||null,A=L||null||{};if(H.length===0&&se)q(O.a);else{O.f+=H.length,se&&(O.j=se);var Y,le=[];for(Y=0;Y<H.length;Y++){var Fe=H[Y],He=A[Fe.c],et=O.a,gt=Fe;if(et.g&&c(et.f,[et.a.c("wf",gt.c,$(gt).toString(),"loading")]),re(et,"fontloading",gt),et=null,Ne===null)if(window.FontFace){var gt=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent),Lt=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);Ne=gt?42<parseInt(gt[1],10):!Lt}else Ne=!1;Ne?et=new oe(n(O.g,O),n(O.h,O),O.c,Fe,O.s,He):et=new ce(n(O.g,O),n(O.h,O),O.c,Fe,O.s,m,He),le.push(et)}for(Y=0;Y<le.length;Y++)le[Y].start()}},0)}function R(E,O,H){var Q=[],L=H.timeout;j(O);var Q=U(E.a,H,E.c),se=new De(E.c,O,L);for(E.h=Q.length,O=0,H=Q.length;O<H;O++)Q[O].load(function(m,A,Y){ze(E,se,m,A,Y)})}function J(E,O){this.c=E,this.a=O}J.prototype.load=function(E){function O(){if(se["__mti_fntLst"+L]){var m=se["__mti_fntLst"+L](),A=[],Y;if(m)for(var le=0;le<m.length;le++){var Fe=m[le].fontfamily;m[le].fontStyle!=null&&m[le].fontWeight!=null?(Y=m[le].fontStyle+m[le].fontWeight,A.push(new D(Fe,Y))):A.push(new D(Fe))}E(A)}else setTimeout(function(){O()},50)}var H=this,L=H.a.projectId,Q=H.a.version;if(L){var se=H.c.o;h(this.c,(H.a.api||"https://fast.fonts.net/jsapi")+"/"+L+".js"+(Q?"?v="+Q:""),function(m){m?E([]):(se["__MonotypeConfiguration__"+L]=function(){return H.a},O())}).id="__MonotypeAPIScript__"+L}else E([])};function he(E,O){this.c=E,this.a=O}he.prototype.load=function(E){var O,H,L=this.a.urls||[],Q=this.a.families||[],se=this.a.testStrings||{},m=new b;for(O=0,H=L.length;O<H;O++)p(this.c,L[O],g(m));var A=[];for(O=0,H=Q.length;O<H;O++)if(L=Q[O].split(":"),L[1])for(var Y=L[1].split(","),le=0;le<Y.length;le+=1)A.push(new D(L[0],Y[le]));else A.push(new D(L[0]));v(m,function(){E(A,se)})};function Se(E,O){E?this.c=E:this.c=Ce,this.a=[],this.f=[],this.g=O||""}var Ce="https://fonts.googleapis.com/css";function X(E,O){for(var H=O.length,L=0;L<H;L++){var Q=O[L].split(":");Q.length==3&&E.f.push(Q.pop());var se="";Q.length==2&&Q[1]!=""&&(se=":"),E.a.push(Q.join(se))}}function ie(E){if(E.a.length==0)throw Error("No fonts to load!");if(E.c.indexOf("kit=")!=-1)return E.c;for(var O=E.a.length,H=[],L=0;L<O;L++)H.push(E.a[L].replace(/ /g,"+"));return O=E.c+"?family="+H.join("%7C"),0<E.f.length&&(O+="&subset="+E.f.join(",")),0<E.g.length&&(O+="&text="+encodeURIComponent(E.g)),O}function fe(E){this.f=E,this.a=[],this.c={}}var xe={latin:"BESbswy","latin-ext":"\xE7\xF6\xFC\u011F\u015F",cyrillic:"\u0439\u044F\u0416",greek:"\u03B1\u03B2\u03A3",khmer:"\u1780\u1781\u1782",Hanuman:"\u1780\u1781\u1782"},pe={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},Be={i:"i",italic:"i",n:"n",normal:"n"},ve=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function Le(E){for(var O=E.f.length,H=0;H<O;H++){var L=E.f[H].split(":"),Q=L[0].replace(/\+/g," "),se=["n4"];if(2<=L.length){var m,A=L[1];if(m=[],A)for(var A=A.split(","),Y=A.length,le=0;le<Y;le++){var Fe;if(Fe=A[le],Fe.match(/^[\w-]+$/)){var He=ve.exec(Fe.toLowerCase());if(He==null)Fe="";else{if(Fe=He[2],Fe=Fe==null||Fe==""?"n":Be[Fe],He=He[1],He==null||He=="")He="4";else var et=pe[He],He=et||(isNaN(He)?"4":He.substr(0,1));Fe=[Fe,He].join("")}}else Fe="";Fe&&m.push(Fe)}0<m.length&&(se=m),L.length==3&&(L=L[2],m=[],L=L?L.split(","):m,0<L.length&&(L=xe[L[0]])&&(E.c[Q]=L))}for(E.c[Q]||(L=xe[Q])&&(E.c[Q]=L),L=0;L<se.length;L+=1)E.a.push(new D(Q,se[L]))}}function Ve(E,O){this.c=E,this.a=O}var P={Arimo:!0,Cousine:!0,Tinos:!0};Ve.prototype.load=function(E){var O=new b,H=this.c,L=new Se(this.a.api,this.a.text),Q=this.a.families;X(L,Q);var se=new fe(Q);Le(se),p(H,ie(L),g(O)),v(O,function(){E(se.a,se.c,P)})};function C(E,O){this.c=E,this.a=O}C.prototype.load=function(E){var O=this.a.id,H=this.c.o;O?h(this.c,(this.a.api||"https://use.typekit.net")+"/"+O+".js",function(L){if(L)E([]);else if(H.Typekit&&H.Typekit.config&&H.Typekit.config.fn){L=H.Typekit.config.fn;for(var Q=[],se=0;se<L.length;se+=2)for(var m=L[se],A=L[se+1],Y=0;Y<A.length;Y++)Q.push(new D(m,A[Y]));try{H.Typekit.load({events:!1,classes:!1,async:!0})}catch{}E(Q)}},2e3):E([])};function be(E,O){this.c=E,this.f=O,this.a=[]}be.prototype.load=function(E){var O=this.f.id,H=this.c.o,L=this;O?(H.__webfontfontdeckmodule__||(H.__webfontfontdeckmodule__={}),H.__webfontfontdeckmodule__[O]=function(Q,se){for(var m=0,A=se.fonts.length;m<A;++m){var Y=se.fonts[m];L.a.push(new D(Y.name,K("font-weight:"+Y.weight+";font-style:"+Y.style)))}E(L.a)},h(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+d(this.c)+"/"+O+".js",function(Q){Q&&E([])})):E([])};var T=new Pe(window);T.a.c.custom=function(E,O){return new he(O,E)},T.a.c.fontdeck=function(E,O){return new be(O,E)},T.a.c.monotype=function(E,O){return new J(O,E)},T.a.c.typekit=function(E,O){return new C(O,E)},T.a.c.google=function(E,O){return new Ve(O,E)};var z={load:n(T.load,T)};e.exports?e.exports=z:(window.WebFont=z,window.WebFontConfig&&T.load(window.WebFontConfig))})()})(q8);var pb=q8.exports;const yB="modulepreload",hb={},bB="/",Yl=function(t,r){return!r||r.length===0?t():Promise.all(r.map(n=>{if(n=`${bB}${n}`,n in hb)return;hb[n]=!0;const i=n.endsWith(".css"),a=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${n}"]${a}`))return;const o=document.createElement("link");if(o.rel=i?"stylesheet":yB,i||(o.as="script",o.crossOrigin=""),o.href=n,document.head.appendChild(o),i)return new Promise((s,u)=>{o.addEventListener("load",s),o.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${n}`)))})})).then(()=>t())};/*!
  * vue-router v4.1.3
  * (c) 2022 Eduardo San Martin Morote
  * @license MIT
  */const Du=typeof window!="undefined";function wB(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const qt=Object.assign;function sm(e,t){const r={};for(const n in t){const i=t[n];r[n]=Ci(i)?i.map(e):e(i)}return r}const uc=()=>{},Ci=Array.isArray,_B=/\/$/,xB=e=>e.replace(_B,"");function um(e,t,r="/"){let n,i={},a="",o="";const s=t.indexOf("#");let u=t.indexOf("?");return s<u&&s>=0&&(u=-1),u>-1&&(n=t.slice(0,u),a=t.slice(u+1,s>-1?s:t.length),i=e(a)),s>-1&&(n=n||t.slice(0,s),o=t.slice(s,t.length)),n=CB(n!=null?n:t,r),{fullPath:n+(a&&"?")+a+o,path:n,query:i,hash:o}}function EB(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function mb(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function DB(e,t,r){const n=t.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&Qu(t.matched[n],r.matched[i])&&H8(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Qu(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function H8(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!SB(e[r],t[r]))return!1;return!0}function SB(e,t){return Ci(e)?vb(e,t):Ci(t)?vb(t,e):e===t}function vb(e,t){return Ci(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function CB(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/");let i=r.length-1,a,o;for(a=0;a<n.length;a++)if(o=n[a],o!==".")if(o==="..")i>1&&i--;else break;return r.slice(0,i).join("/")+"/"+n.slice(a-(a===n.length?1:0)).join("/")}var kc;(function(e){e.pop="pop",e.push="push"})(kc||(kc={}));var lc;(function(e){e.back="back",e.forward="forward",e.unknown=""})(lc||(lc={}));function AB(e){if(!e)if(Du){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),xB(e)}const NB=/^[^#]+#/;function TB(e,t){return e.replace(NB,"#")+t}function kB(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const ph=()=>({left:window.pageXOffset,top:window.pageYOffset});function OB(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),i=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!i)return;t=kB(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function gb(e,t){return(history.state?history.state.position-t:-1)+e}const R1=new Map;function FB(e,t){R1.set(e,t)}function $B(e){const t=R1.get(e);return R1.delete(e),t}let BB=()=>location.protocol+"//"+location.host;function V8(e,t){const{pathname:r,search:n,hash:i}=t,a=e.indexOf("#");if(a>-1){let s=i.includes(e.slice(a))?e.slice(a).length:1,u=i.slice(s);return u[0]!=="/"&&(u="/"+u),mb(u,"")}return mb(r,e)+n+i}function PB(e,t,r,n){let i=[],a=[],o=null;const s=({state:d})=>{const p=V8(e,location),h=r.value,b=t.value;let g=0;if(d){if(r.value=p,t.value=d,o&&o===h){o=null;return}g=b?d.position-b.position:0}else n(p);i.forEach(v=>{v(r.value,h,{delta:g,type:kc.pop,direction:g?g>0?lc.forward:lc.back:lc.unknown})})};function u(){o=r.value}function l(d){i.push(d);const p=()=>{const h=i.indexOf(d);h>-1&&i.splice(h,1)};return a.push(p),p}function c(){const{history:d}=window;!d.state||d.replaceState(qt({},d.state,{scroll:ph()}),"")}function f(){for(const d of a)d();a=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c),{pauseListeners:u,listen:l,destroy:f}}function yb(e,t,r,n=!1,i=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:i?ph():null}}function IB(e){const{history:t,location:r}=window,n={value:V8(e,r)},i={value:t.state};i.value||a(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(u,l,c){const f=e.indexOf("#"),d=f>-1?(r.host&&document.querySelector("base")?e:e.slice(f))+u:BB()+e+u;try{t[c?"replaceState":"pushState"](l,"",d),i.value=l}catch(p){console.error(p),r[c?"replace":"assign"](d)}}function o(u,l){const c=qt({},t.state,yb(i.value.back,u,i.value.forward,!0),l,{position:i.value.position});a(u,c,!0),n.value=u}function s(u,l){const c=qt({},i.value,t.state,{forward:u,scroll:ph()});a(c.current,c,!0);const f=qt({},yb(n.value,u,null),{position:c.position+1},l);a(u,f,!1),n.value=u}return{location:n,state:i,push:s,replace:o}}function MB(e){e=AB(e);const t=IB(e),r=PB(e,t.state,t.location,t.replace);function n(a,o=!0){o||r.pauseListeners(),history.go(a)}const i=qt({location:"",base:e,go:n,createHref:TB.bind(null,e)},t,r);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function RB(e){return typeof e=="string"||e&&typeof e=="object"}function K8(e){return typeof e=="string"||typeof e=="symbol"}const _o={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},G8=Symbol("");var bb;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(bb||(bb={}));function el(e,t){return qt(new Error,{type:e,[G8]:!0},t)}function Ta(e,t){return e instanceof Error&&G8 in e&&(t==null||!!(e.type&t))}const wb="[^/]+?",LB={sensitive:!1,strict:!1,start:!0,end:!0},jB=/[.+*?^${}()[\]/\\]/g;function UB(e,t){const r=qt({},LB,t),n=[];let i=r.start?"^":"";const a=[];for(const l of e){const c=l.length?[]:[90];r.strict&&!l.length&&(i+="/");for(let f=0;f<l.length;f++){const d=l[f];let p=40+(r.sensitive?.25:0);if(d.type===0)f||(i+="/"),i+=d.value.replace(jB,"\\$&"),p+=40;else if(d.type===1){const{value:h,repeatable:b,optional:g,regexp:v}=d;a.push({name:h,repeatable:b,optional:g});const S=v||wb;if(S!==wb){p+=10;try{new RegExp(`(${S})`)}catch(D){throw new Error(`Invalid custom RegExp for param "${h}" (${S}): `+D.message)}}let w=b?`((?:${S})(?:/(?:${S}))*)`:`(${S})`;f||(w=g&&l.length<2?`(?:/${w})`:"/"+w),g&&(w+="?"),i+=w,p+=20,g&&(p+=-8),b&&(p+=-20),S===".*"&&(p+=-50)}c.push(p)}n.push(c)}if(r.strict&&r.end){const l=n.length-1;n[l][n[l].length-1]+=.7000000000000001}r.strict||(i+="/?"),r.end?i+="$":r.strict&&(i+="(?:/|$)");const o=new RegExp(i,r.sensitive?"":"i");function s(l){const c=l.match(o),f={};if(!c)return null;for(let d=1;d<c.length;d++){const p=c[d]||"",h=a[d-1];f[h.name]=p&&h.repeatable?p.split("/"):p}return f}function u(l){let c="",f=!1;for(const d of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const p of d)if(p.type===0)c+=p.value;else if(p.type===1){const{value:h,repeatable:b,optional:g}=p,v=h in l?l[h]:"";if(Ci(v)&&!b)throw new Error(`Provided param "${h}" is an array but it is not repeatable (* or + modifiers)`);const S=Ci(v)?v.join("/"):v;if(!S)if(g)d.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${h}"`);c+=S}}return c||"/"}return{re:o,score:n,keys:a,parse:s,stringify:u}}function zB(e,t){let r=0;for(;r<e.length&&r<t.length;){const n=t[r]-e[r];if(n)return n;r++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function qB(e,t){let r=0;const n=e.score,i=t.score;for(;r<n.length&&r<i.length;){const a=zB(n[r],i[r]);if(a)return a;r++}if(Math.abs(i.length-n.length)===1){if(_b(n))return 1;if(_b(i))return-1}return i.length-n.length}function _b(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const HB={type:0,value:""},VB=/[a-zA-Z0-9_]/;function KB(e){if(!e)return[[]];if(e==="/")return[[HB]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${r})/"${l}": ${p}`)}let r=0,n=r;const i=[];let a;function o(){a&&i.push(a),a=[]}let s=0,u,l="",c="";function f(){!l||(r===0?a.push({type:0,value:l}):r===1||r===2||r===3?(a.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:c,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),l="")}function d(){l+=u}for(;s<e.length;){if(u=e[s++],u==="\\"&&r!==2){n=r,r=4;continue}switch(r){case 0:u==="/"?(l&&f(),o()):u===":"?(f(),r=1):d();break;case 4:d(),r=n;break;case 1:u==="("?r=2:VB.test(u)?d():(f(),r=0,u!=="*"&&u!=="?"&&u!=="+"&&s--);break;case 2:u===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+u:r=3:c+=u;break;case 3:f(),r=0,u!=="*"&&u!=="?"&&u!=="+"&&s--,c="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${l}"`),f(),o(),i}function GB(e,t,r){const n=UB(KB(e.path),r),i=qt(n,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function WB(e,t){const r=[],n=new Map;t=Eb({strict:!1,end:!0,sensitive:!1},t);function i(c){return n.get(c)}function a(c,f,d){const p=!d,h=ZB(c);h.aliasOf=d&&d.record;const b=Eb(t,c),g=[h];if("alias"in c){const w=typeof c.alias=="string"?[c.alias]:c.alias;for(const D of w)g.push(qt({},h,{components:d?d.record.components:h.components,path:D,aliasOf:d?d.record:h}))}let v,S;for(const w of g){const{path:D}=w;if(f&&D[0]!=="/"){const _=f.record.path,N=_[_.length-1]==="/"?"":"/";w.path=f.record.path+(D&&N+D)}if(v=GB(w,f,b),d?d.alias.push(v):(S=S||v,S!==v&&S.alias.push(v),p&&c.name&&!xb(v)&&o(c.name)),h.children){const _=h.children;for(let N=0;N<_.length;N++)a(_[N],v,d&&d.children[N])}d=d||v,u(v)}return S?()=>{o(S)}:uc}function o(c){if(K8(c)){const f=n.get(c);f&&(n.delete(c),r.splice(r.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=r.indexOf(c);f>-1&&(r.splice(f,1),c.record.name&&n.delete(c.record.name),c.children.forEach(o),c.alias.forEach(o))}}function s(){return r}function u(c){let f=0;for(;f<r.length&&qB(c,r[f])>=0&&(c.record.path!==r[f].record.path||!W8(c,r[f]));)f++;r.splice(f,0,c),c.record.name&&!xb(c)&&n.set(c.record.name,c)}function l(c,f){let d,p={},h,b;if("name"in c&&c.name){if(d=n.get(c.name),!d)throw el(1,{location:c});b=d.record.name,p=qt(YB(f.params,d.keys.filter(S=>!S.optional).map(S=>S.name)),c.params),h=d.stringify(p)}else if("path"in c)h=c.path,d=r.find(S=>S.re.test(h)),d&&(p=d.parse(h),b=d.record.name);else{if(d=f.name?n.get(f.name):r.find(S=>S.re.test(f.path)),!d)throw el(1,{location:c,currentLocation:f});b=d.record.name,p=qt({},f.params,c.params),h=d.stringify(p)}const g=[];let v=d;for(;v;)g.unshift(v.record),v=v.parent;return{name:b,path:h,params:p,matched:g,meta:XB(g)}}return e.forEach(c=>a(c)),{addRoute:a,resolve:l,removeRoute:o,getRoutes:s,getRecordMatcher:i}}function YB(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function ZB(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:JB(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function JB(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="boolean"?r:r[n];return t}function xb(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function XB(e){return e.reduce((t,r)=>qt(t,r.meta),{})}function Eb(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function W8(e,t){return t.children.some(r=>r===e||W8(e,r))}const Y8=/#/g,QB=/&/g,eP=/\//g,tP=/=/g,rP=/\?/g,Z8=/\+/g,nP=/%5B/g,iP=/%5D/g,J8=/%5E/g,aP=/%60/g,X8=/%7B/g,oP=/%7C/g,Q8=/%7D/g,sP=/%20/g;function Jv(e){return encodeURI(""+e).replace(oP,"|").replace(nP,"[").replace(iP,"]")}function uP(e){return Jv(e).replace(X8,"{").replace(Q8,"}").replace(J8,"^")}function L1(e){return Jv(e).replace(Z8,"%2B").replace(sP,"+").replace(Y8,"%23").replace(QB,"%26").replace(aP,"`").replace(X8,"{").replace(Q8,"}").replace(J8,"^")}function lP(e){return L1(e).replace(tP,"%3D")}function cP(e){return Jv(e).replace(Y8,"%23").replace(rP,"%3F")}function fP(e){return e==null?"":cP(e).replace(eP,"%2F")}function ep(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function dP(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<n.length;++i){const a=n[i].replace(Z8," "),o=a.indexOf("="),s=ep(o<0?a:a.slice(0,o)),u=o<0?null:ep(a.slice(o+1));if(s in t){let l=t[s];Ci(l)||(l=t[s]=[l]),l.push(u)}else t[s]=u}return t}function Db(e){let t="";for(let r in e){const n=e[r];if(r=lP(r),n==null){n!==void 0&&(t+=(t.length?"&":"")+r);continue}(Ci(n)?n.map(a=>a&&L1(a)):[n&&L1(n)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+r,a!=null&&(t+="="+a))})}return t}function pP(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=Ci(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}const hP=Symbol(""),Sb=Symbol(""),Xv=Symbol(""),e6=Symbol(""),j1=Symbol("");function Rl(){let e=[];function t(n){return e.push(n),()=>{const i=e.indexOf(n);i>-1&&e.splice(i,1)}}function r(){e=[]}return{add:t,list:()=>e,reset:r}}function ko(e,t,r,n,i){const a=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((o,s)=>{const u=f=>{f===!1?s(el(4,{from:r,to:t})):f instanceof Error?s(f):RB(f)?s(el(2,{from:t,to:f})):(a&&n.enterCallbacks[i]===a&&typeof f=="function"&&a.push(f),o())},l=e.call(n&&n.instances[i],t,r,u);let c=Promise.resolve(l);e.length<3&&(c=c.then(u)),c.catch(f=>s(f))})}function lm(e,t,r,n){const i=[];for(const a of e)for(const o in a.components){let s=a.components[o];if(!(t!=="beforeRouteEnter"&&!a.instances[o]))if(mP(s)){const l=(s.__vccOpts||s)[t];l&&i.push(ko(l,r,n,a,o))}else{let u=s();i.push(()=>u.then(l=>{if(!l)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${a.path}"`));const c=wB(l)?l.default:l;a.components[o]=c;const d=(c.__vccOpts||c)[t];return d&&ko(d,r,n,a,o)()}))}}return i}function mP(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Cb(e){const t=Xi(Xv),r=Xi(e6),n=tt(()=>t.resolve(Bu(e.to))),i=tt(()=>{const{matched:u}=n.value,{length:l}=u,c=u[l-1],f=r.matched;if(!c||!f.length)return-1;const d=f.findIndex(Qu.bind(null,c));if(d>-1)return d;const p=Ab(u[l-2]);return l>1&&Ab(c)===p&&f[f.length-1].path!==p?f.findIndex(Qu.bind(null,u[l-2])):d}),a=tt(()=>i.value>-1&&bP(r.params,n.value.params)),o=tt(()=>i.value>-1&&i.value===r.matched.length-1&&H8(r.params,n.value.params));function s(u={}){return yP(u)?t[Bu(e.replace)?"replace":"push"](Bu(e.to)).catch(uc):Promise.resolve()}return{route:n,href:tt(()=>n.value.href),isActive:a,isExactActive:o,navigate:s}}const vP=Hc({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Cb,setup(e,{slots:t}){const r=Vs(Cb(e)),{options:n}=Xi(Xv),i=tt(()=>({[Nb(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[Nb(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const a=t.default&&t.default(r);return e.custom?a:Qa("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},a)}}}),gP=vP;function yP(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function bP(e,t){for(const r in t){const n=t[r],i=e[r];if(typeof n=="string"){if(n!==i)return!1}else if(!Ci(i)||i.length!==n.length||n.some((a,o)=>a!==i[o]))return!1}return!0}function Ab(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Nb=(e,t,r)=>e!=null?e:t!=null?t:r,wP=Hc({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=Xi(j1),i=tt(()=>e.route||n.value),a=Xi(Sb,0),o=tt(()=>{let l=Bu(a);const{matched:c}=i.value;let f;for(;(f=c[l])&&!f.components;)l++;return l}),s=tt(()=>i.value.matched[o.value]);pd(Sb,tt(()=>o.value+1)),pd(hP,s),pd(j1,i);const u=ht();return Vr(()=>[u.value,s.value,e.name],([l,c,f],[d,p,h])=>{c&&(c.instances[f]=l,p&&p!==c&&l&&l===d&&(c.leaveGuards.size||(c.leaveGuards=p.leaveGuards),c.updateGuards.size||(c.updateGuards=p.updateGuards))),l&&c&&(!p||!Qu(c,p)||!d)&&(c.enterCallbacks[f]||[]).forEach(b=>b(l))},{flush:"post"}),()=>{const l=i.value,c=e.name,f=s.value,d=f&&f.components[c];if(!d)return Tb(r.default,{Component:d,route:l});const p=f.props[c],h=p?p===!0?l.params:typeof p=="function"?p(l):p:null,g=Qa(d,qt({},h,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(f.instances[c]=null)},ref:u}));return Tb(r.default,{Component:g,route:l})||g}}});function Tb(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const _P=wP;function xP(e){const t=WB(e.routes,e),r=e.parseQuery||dP,n=e.stringifyQuery||Db,i=e.history,a=Rl(),o=Rl(),s=Rl(),u=x_(_o);let l=_o;Du&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=sm.bind(null,te=>""+te),f=sm.bind(null,fP),d=sm.bind(null,ep);function p(te,Te){let de,De;return K8(te)?(de=t.getRecordMatcher(te),De=Te):De=te,t.addRoute(De,de)}function h(te){const Te=t.getRecordMatcher(te);Te&&t.removeRoute(Te)}function b(){return t.getRoutes().map(te=>te.record)}function g(te){return!!t.getRecordMatcher(te)}function v(te,Te){if(Te=qt({},Te||u.value),typeof te=="string"){const ze=um(r,te,Te.path),R=t.resolve({path:ze.path},Te),J=i.createHref(ze.fullPath);return qt(ze,R,{params:d(R.params),hash:ep(ze.hash),redirectedFrom:void 0,href:J})}let de;if("path"in te)de=qt({},te,{path:um(r,te.path,Te.path).path});else{const ze=qt({},te.params);for(const R in ze)ze[R]==null&&delete ze[R];de=qt({},te,{params:f(te.params)}),Te.params=f(Te.params)}const De=t.resolve(de,Te),Ne=te.hash||"";De.params=c(d(De.params));const je=EB(n,qt({},te,{hash:uP(Ne),path:De.path})),Pe=i.createHref(je);return qt({fullPath:je,hash:Ne,query:n===Db?pP(te.query):te.query||{}},De,{redirectedFrom:void 0,href:Pe})}function S(te){return typeof te=="string"?um(r,te,u.value.path):qt({},te)}function w(te,Te){if(l!==te)return el(8,{from:Te,to:te})}function D(te){return $(te)}function _(te){return D(qt(S(te),{replace:!0}))}function N(te){const Te=te.matched[te.matched.length-1];if(Te&&Te.redirect){const{redirect:de}=Te;let De=typeof de=="function"?de(te):de;return typeof De=="string"&&(De=De.includes("?")||De.includes("#")?De=S(De):{path:De},De.params={}),qt({query:te.query,hash:te.hash,params:"path"in De?{}:te.params},De)}}function $(te,Te){const de=l=v(te),De=u.value,Ne=te.state,je=te.force,Pe=te.replace===!0,ze=N(de);if(ze)return $(qt(S(ze),{state:Ne,force:je,replace:Pe}),Te||de);const R=de;R.redirectedFrom=Te;let J;return!je&&DB(n,De,de)&&(J=el(16,{to:R,from:De}),ce(De,De,!0,!1)),(J?Promise.resolve(J):K(R,De)).catch(he=>Ta(he)?Ta(he,2)?he:oe(he):I(he,R,De)).then(he=>{if(he){if(Ta(he,2))return $(qt({replace:Pe},S(he.to),{state:Ne,force:je}),Te||R)}else he=j(R,De,!0,Pe,Ne);return G(R,De,he),he})}function k(te,Te){const de=w(te,Te);return de?Promise.reject(de):Promise.resolve()}function K(te,Te){let de;const[De,Ne,je]=EP(te,Te);de=lm(De.reverse(),"beforeRouteLeave",te,Te);for(const ze of De)ze.leaveGuards.forEach(R=>{de.push(ko(R,te,Te))});const Pe=k.bind(null,te,Te);return de.push(Pe),mu(de).then(()=>{de=[];for(const ze of a.list())de.push(ko(ze,te,Te));return de.push(Pe),mu(de)}).then(()=>{de=lm(Ne,"beforeRouteUpdate",te,Te);for(const ze of Ne)ze.updateGuards.forEach(R=>{de.push(ko(R,te,Te))});return de.push(Pe),mu(de)}).then(()=>{de=[];for(const ze of te.matched)if(ze.beforeEnter&&!Te.matched.includes(ze))if(Ci(ze.beforeEnter))for(const R of ze.beforeEnter)de.push(ko(R,te,Te));else de.push(ko(ze.beforeEnter,te,Te));return de.push(Pe),mu(de)}).then(()=>(te.matched.forEach(ze=>ze.enterCallbacks={}),de=lm(je,"beforeRouteEnter",te,Te),de.push(Pe),mu(de))).then(()=>{de=[];for(const ze of o.list())de.push(ko(ze,te,Te));return de.push(Pe),mu(de)}).catch(ze=>Ta(ze,8)?ze:Promise.reject(ze))}function G(te,Te,de){for(const De of s.list())De(te,Te,de)}function j(te,Te,de,De,Ne){const je=w(te,Te);if(je)return je;const Pe=Te===_o,ze=Du?history.state:{};de&&(De||Pe?i.replace(te.fullPath,qt({scroll:Pe&&ze&&ze.scroll},Ne)):i.push(te.fullPath,Ne)),u.value=te,ce(te,Te,de,Pe),oe()}let q;function re(){q||(q=i.listen((te,Te,de)=>{if(!Ue.listening)return;const De=v(te),Ne=N(De);if(Ne){$(qt(Ne,{replace:!0}),De).catch(uc);return}l=De;const je=u.value;Du&&FB(gb(je.fullPath,de.delta),ph()),K(De,je).catch(Pe=>Ta(Pe,12)?Pe:Ta(Pe,2)?($(Pe.to,De).then(ze=>{Ta(ze,20)&&!de.delta&&de.type===kc.pop&&i.go(-1,!1)}).catch(uc),Promise.reject()):(de.delta&&i.go(-de.delta,!1),I(Pe,De,je))).then(Pe=>{Pe=Pe||j(De,je,!1),Pe&&(de.delta&&!Ta(Pe,8)?i.go(-de.delta,!1):de.type===kc.pop&&Ta(Pe,20)&&i.go(-1,!1)),G(De,je,Pe)}).catch(uc)}))}let M=Rl(),U=Rl(),x;function I(te,Te,de){oe(te);const De=U.list();return De.length?De.forEach(Ne=>Ne(te,Te,de)):console.error(te),Promise.reject(te)}function ee(){return x&&u.value!==_o?Promise.resolve():new Promise((te,Te)=>{M.add([te,Te])})}function oe(te){return x||(x=!te,re(),M.list().forEach(([Te,de])=>te?de(te):Te()),M.reset()),te}function ce(te,Te,de,De){const{scrollBehavior:Ne}=e;if(!Du||!Ne)return Promise.resolve();const je=!de&&$B(gb(te.fullPath,0))||(De||!de)&&history.state&&history.state.scroll||null;return Ua().then(()=>Ne(te,Te,je)).then(Pe=>Pe&&OB(Pe)).catch(Pe=>I(Pe,te,Te))}const $e=te=>i.go(te);let me;const _e=new Set,Ue={currentRoute:u,listening:!0,addRoute:p,removeRoute:h,hasRoute:g,getRoutes:b,resolve:v,options:e,push:D,replace:_,go:$e,back:()=>$e(-1),forward:()=>$e(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:U.add,isReady:ee,install(te){const Te=this;te.component("RouterLink",gP),te.component("RouterView",_P),te.config.globalProperties.$router=Te,Object.defineProperty(te.config.globalProperties,"$route",{enumerable:!0,get:()=>Bu(u)}),Du&&!me&&u.value===_o&&(me=!0,D(i.location).catch(Ne=>{}));const de={};for(const Ne in _o)de[Ne]=tt(()=>u.value[Ne]);te.provide(Xv,Te),te.provide(e6,Vs(de)),te.provide(j1,u);const De=te.unmount;_e.add(te),te.unmount=function(){_e.delete(te),_e.size<1&&(l=_o,q&&q(),q=null,u.value=_o,me=!1,x=!1),De()}}};return Ue}function mu(e){return e.reduce((t,r)=>t.then(()=>r()),Promise.resolve())}function EP(e,t){const r=[],n=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){const s=t.matched[o];s&&(e.matched.find(l=>Qu(l,s))?n.push(s):r.push(s));const u=e.matched[o];u&&(t.matched.find(l=>Qu(l,u))||i.push(u))}return[r,n,i]}var DP=(e,t,r)=>{Object.keys(t.query).length&&Object.keys(e.query).length===0?r({name:e.name,params:e.params,query:t.query}):r()};const SP={props:{height:{type:[Number,String],default:35},enabled:{type:Boolean,default:!1}},emits:["click"],computed:{klass(){return["background absolute w-full ",{on:this.enabled}]},styles(){return{height:this.height*parseFloat(getComputedStyle(document.documentElement).fontSize)+"px"}}}},CP=e=>(ua("data-v-4e464674"),e=e(),la(),e),AP=CP(()=>ne("div",{class:"internal"},null,-1)),NP=[AP];function TP(e,t,r,n,i,a){return V(),ae("div",{class:Ye(a.klass),style:ln(a.styles),onClick:t[0]||(t[0]=o=>e.$emit("click"))},NP,6)}var kP=we(SP,[["render",TP],["__scopeId","data-v-4e464674"]]);const OP={props:{message:String,backdropOnly:Boolean,noFullScreen:Boolean},computed:{position(){return this.noFullScreen?"absolute":"fixed"}}},FP={class:"absolute inset-0 text-center"},$P={key:0};function BP(e,t,r,n,i,a){return V(),ae("div",FP,[ne("div",{class:Ye([a.position,"top-0 left-0 h-full w-full opacity-50 z-50 bg-neutral-300"])},null,2),r.backdropOnly?ct("",!0):(V(),ae("div",{key:0,class:Ye([a.position,"z-50 inline-block bg-white p-4 md:py-5 md:px-12 rounded-xl shadow-md left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2"])},[ne("div",null,[dr(e.$slots,"default")]),r.message?(V(),ae("div",$P,We(r.message),1)):ct("",!0)],2))])}var PP=we(OP,[["render",BP]]);const IP={components:{BlockUi:PP},props:{msg:{type:String,default:null},show:{type:Boolean,default:null}},computed:{...bt({loading:"loader/loading",fontLoading:"form/loading",checkoutLoading:"checkout/loading",checkoutProcessing:"checkout/processing",posting:"world/posting",processing:"process/processing",progress:"process/progress"}),label(){return this.loading||this.fontLoading||this.checkoutLoading||this.checkoutProcessing||this.show||this.posting?"Loading":this.$t("labels.submitting",{percent:this.progress})},message(){return this.msg===null?this.label:this.msg},visible(){return this.show===null?this.loading||this.processing||this.fontLoading||this.checkoutLoading||this.checkoutProcessing||this.posting:this.show}}},MP=e=>(ua("data-v-7041d658"),e=e(),la(),e),RP=MP(()=>ne("div",{class:"text-center my-10 mx-28"},[ne("div",{class:"spinner relative inline-block w-14 h-14 bg-slate-300"})],-1));function LP(e,t,r,n,i,a){const o=ge("block-ui");return Fr((V(),Ge(o,{class:"text-sm text-neutral-900",message:a.message},{default:Qe(()=>[RP]),_:1},8,["message"])),[[$r,a.visible]])}var jP=we(IP,[["render",LP],["__scopeId","data-v-7041d658"]]);const cm={nl:"Misbruik melden",es:"Denunciar el abuso",fr:"D\xE9noncer les abus",it:"Segnala abuso",ru:"C\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043D\u0430\u0440\u0443\u0448\u0435\u043D\u0438\u044F\u0445",de:"Missbrauch melden",ja:"\u4E0D\u6B63\u884C\u70BA\u3092\u5831\u544A",da:"Anmeld misbrug",ms:"Laporkan salah guna",id:"Laporkan Penyalahgunaan",tr:"K\xF6t\xFC kullan\u0131m bildirin",pt:"Reportar Abuso",lt:"Prane\u0161ti apie u\u017Egauliojim\u0105 ar suk\u010Diavim\u0105",ro:"Raportez\u0103 abuz",sl:"Prijavi zlorabo",ar:"\u0625\u0628\u0644\u0627\u063A \u0639\u0646 \u0633\u0648\u0621 \u0627\u0633\u062A\u062E\u062F\u0627\u0645",af:"Meld misbruik aan",cs:"Nahl\xE1sit zneu\u017Eit\xED",hu:"Vissza\xE9l\xE9s jelent\xE9se",th:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E01\u0E32\u0E23\u0E43\u0E0A\u0E49\u0E07\u0E32\u0E19\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E40\u0E2B\u0E21\u0E32\u0E30\u0E2A\u0E21",he:"\u05D3\u05D5\u05D5\u05D7 \u05E2\u05DC \u05E9\u05D9\u05DE\u05D5\u05E9 \u05DC\u05E8\u05E2\u05D4",en:"Report abuse"},UP=e=>e in cm?cm[e]:cm.en,zP={props:{off:{type:Boolean,default:!1},styleClass:String,styleVariant:Number,maxSize:String,lang:{type:String,default:"en"}},computed:{label(){return UP(this.lang)},link(){switch(this.lang){case"de":return"https://de.aidaform.com/help/how-to-report-abuse.html#report-abuse";default:return"https://aidaform.com/help/how-to-report-abuse.html#report-abuse"}}}},qP=e=>(ua("data-v-067c25f6"),e=e(),la(),e),HP=qP(()=>ne("hr",{class:"line mx-auto my-4 w-14 hidden xl:block"},null,-1)),VP=["href"];function KP(e,t,r,n,i,a){return V(),ae("div",{class:Ye(["abuse my-0 mx-8 text-center inline-flex xl:block",r.maxSize,{off:r.off}])},[HP,ne("a",{target:"_blank",rel:"nofollow",href:a.link,class:"report-abuse hover:underline text-xs focus:outline-none"},We(a.label),9,VP)],2)}var GP=we(zP,[["render",KP],["__scopeId","data-v-067c25f6"]]);const fm={nl:"Maak je eigen online formulier - het is gratis!",es:"Crea tu formulario en l\xEDnea - \xA1es gratis!",fr:"Cr\xE9ez votre formulaire en ligne - c'est gratuit!",it:"Crea il tuo modulo online: \xE8 gratis!",ru:"\u0421\u043E\u0437\u0434\u0430\u0439\u0442\u0435 \u0432\u0430\u0448\u0443 \u043E\u043D\u043B\u0430\u0439\u043D-\u0444\u043E\u0440\u043C\u0443 \u043F\u0440\u044F\u043C\u043E \u0441\u0435\u0439\u0447\u0430\u0441. \u042D\u0442\u043E \u0431\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u043E!",de:"Erstellen Sie Ihr Online-Formular - es ist kostenlos!",ja:"\u30AA\u30F3\u30E9\u30A4\u30F3\u30D5\u30A9\u30FC\u30E0\u3092\u4F5C\u6210\u3057\u307E\u3059\u3002\u7121\u6599\u3067\u3059\uFF01",da:"Opret din onlineformular - det er gratis!",ms:"Cipta borang atas talian anda - ianya percuma!",id:"Buat formulir online milik Anda - Gratis!",tr:"Kendi online formunuzu yarat\u0131n - \xFCcretsizdir!",pt:"Crie seu pr\xF3prio formul\xE1rio - \xE9 gr\xE1tis!",lt:"Sukurkite internetin\u0119 anket\u0105. Nemokamai!",ro:"Creaz\u0103-\u021Bi propriul formular online - este gratuit!",sl:"Ustvarite spletni obrazec - brezpla\u010Dno je!",ar:"\u0623\u0646\u0634\u064A\u0621 \u0627\u0633\u062A\u0628\u064A\u0627\u0646\u0643 \u0627\u0644\u062E\u0627\u0635 \u0627\u0644\u0622\u0646 - \u0625\u0646\u0647 \u0645\u062C\u0627\u0646\u064A",af:"Skep u eie aanlynvorm - dit is gratis!",cs:"Vytvo\u0159te si vlastn\xED online fomul\xE1\u0159 - je to zdarma!",hu:"Hozd l\xE9tre saj\xE1t online \u0171rlapodat - d\xEDjmentes!",th:"\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E41\u0E1A\u0E1A\u0E1F\u0E2D\u0E23\u0E4C\u0E21\u0E2D\u0E2D\u0E19\u0E44\u0E25\u0E19\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13 \u2013 \u0E1F\u0E23\u0E35!",he:"\u05EA\u05D9\u05E6\u05D5\u05E8 \u05D8\u05D5\u05E4\u05E1 \u05DE\u05E9\u05DC\u05DA - \u05D6\u05D4 \u05D7\u05D9\u05E0\u05DD!",en:"Create your online form \u2013 it's free!"},WP=e=>e in fm?fm[e]:fm.en,YP={props:{off:{type:Boolean,default:!1},maxSize:String,styleClass:String,styleVariant:Number,lang:{type:String,default:"en"}},computed:{label(){return WP(this.lang)},link(){switch(this.lang){case"de":return"https://my.aidaform.com/signup?lng=de";default:return"https://my.aidaform.com/signup"}}}},ZP=["href"];function JP(e,t,r,n,i,a){return V(),ae("div",{class:Ye(["create-form text-center pb-8 pt-16 hidden xl:block",r.maxSize,{off:r.off}])},[ne("a",{target:"_blank",href:a.link,class:"button py-4 px-8 border-none rounded-lg no-underline text-sm"},We(a.label),9,ZP)],2)}var XP=we(YP,[["render",JP],["__scopeId","data-v-bccabd90"]]);const QP={},eI={viewBox:"0 0 56 57"},tI=ne("path",{class:"p-1",d:"M53.091 56.727H2.91A2.909 2.909 0 0 1 0 53.818V2.908A2.909 2.909 0 0 1 2.909 0H53.09A2.909 2.909 0 0 1 56 2.909v50.91a2.909 2.909 0 0 1-2.909 2.908ZM5.818 50.909h44.364V5.819H5.818v45.09Z"},null,-1),rI=ne("path",{class:"p-2",d:"M35.403 18.328a9.324 9.324 0 0 0-3.36-3.454 9.228 9.228 0 0 0-4.756-1.266 9.372 9.372 0 0 0-4.778 1.265 9.061 9.061 0 0 0-3.397 3.455 9.86 9.86 0 0 0-1.222 4.88 10.4 10.4 0 0 0 1.135 4.866 8.728 8.728 0 0 0 3.142 3.446 8.618 8.618 0 0 0 8.16.422 8.466 8.466 0 0 0 2.262-1.607v.284a1.993 1.993 0 0 0 .581 1.455 2.073 2.073 0 0 0 2.909 0 1.992 1.992 0 0 0 .581-1.455v-7.41a9.796 9.796 0 0 0-1.257-4.88Zm-2.7 4.88a6.4 6.4 0 0 1-.727 3.004 5.44 5.44 0 0 1-1.947 2.082 5.469 5.469 0 0 1-5.549 0 5.557 5.557 0 0 1-1.963-2.095 6.189 6.189 0 0 1-.727-2.996 6.321 6.321 0 0 1 .727-3.019 5.527 5.527 0 0 1 1.985-2.108A5.31 5.31 0 0 1 32 20.18a6.48 6.48 0 0 1 .703 3.028Z"},null,-1),nI=ne("path",{class:"p-3",d:"M36.945 38.66a1.944 1.944 0 0 0-1.455-.596H20.945a1.973 1.973 0 0 0-1.454.596 2.182 2.182 0 0 0 0 2.96 1.992 1.992 0 0 0 1.455.572h14.546a2 2 0 0 0 1.454-.572 2.225 2.225 0 0 0 0-2.96Z"},null,-1),iI=[tI,rI,nI];function aI(e,t){return V(),ae("svg",eI,iI)}var oI=we(QP,[["render",aI]]);const dm={es:"Desarrollado por ",fr:"R\xE9alis\xE9 par ",it:"Realizzato da ",ru:"C\u043E\u0437\u0434\u0430\u043D\u043E \u043A\u043E\u043C\u043F\u0430\u043D\u0438\u0435\u0439 ",ja:"\u3092\u642D\u8F09 ",ms:"Dikuaskan oleh ",id:"Didukung oleh ",lt:"\u012Egyvendinta su ",sl:"Narejeno v ",ar:" \u0628\u0648\u0627\u0633\u0637\u0629 ",af:"Aangedryf deur ",cs:"Vytvo\u0159eno pomoc\xED ",hu:"M\u0171k\xF6dteti az ",th:"\u0E2A\u0E19\u0E31\u0E1A\u0E2A\u0E19\u0E38\u0E19\u0E42\u0E14\u0E22 ",he:"\u05DE\u05D5\u05E4\u05E2\u05DC \u05E2\u05DC \u05D9\u05D3\u05D9 ",en:"Powered by "},sI=e=>e in dm?dm[e]:dm.en,uI={props:{off:{type:Boolean,default:!1},styleClass:{type:String,default:"a"},styleVariant:Number,maxSize:String,lang:{type:String,default:"en"}},components:{AidaFormLogo:oI},computed:{full(){return this.styleClass==="a"},label(){return sI(this.lang)},variant(){switch(this.styleVariant){case 1:return{link:this.lang==="de"?"https://de.aidaform.com/forms/online-order-form.html":"https://aidaform.com/forms/online-order-form.html",label:this.lang==="de"?"Bestellformular":"Order Form"};case 2:return{link:this.lang==="de"?"https://de.aidaform.com/forms/online-survey-maker.html":"https://aidaform.com/forms/online-survey-maker.html",label:this.lang==="de"?"Umfrage erstellen":"Survey Maker"};case 3:return{link:this.lang==="de"?"https://de.aidaform.com/":"https://aidaform.com/",label:this.lang==="de"?"Formular erstellen":"Form Builder"};default:return{link:this.link,label:this.lang==="de"?"Formular erstellen":"Form Creator"}}},link(){switch(this.lang){case"de":return"https://de.aidaform.com";default:return"https://aidaform.com"}}}},lI=e=>(ua("data-v-1ac2c06f"),e=e(),la(),e),cI={key:0,class:"brand-full hidden xl:inline-flex xl:pt-8 items-center"},fI=["href"],dI=Qn(" Aidaform "),pI={key:1,class:"brand-small xl:hidden pt-1"},hI=["href"],mI={class:"text-xs"},vI={key:2,class:"link text-xs"},gI=lI(()=>ne("hr",{class:"line mx-auto my-4 w-14 hidden xl:block"},null,-1)),yI=["href"];function bI(e,t,r,n,i,a){const o=ge("aida-form-logo");return V(),ae("div",{class:Ye(["powered-by text-center",r.maxSize,{off:r.off}])},[a.full?(V(),ae("span",cI,[Qn(We(a.label)+" ",1),ne("a",{class:"logo focus:outline-none",target:"_blank",href:a.link},[Ee(o,{class:"icon w-14 h-14 my-0 mx-4"})],8,fI),dI])):ct("",!0),a.full?(V(),ae("div",pI,[ne("a",{class:"bs-link block text-xs px-2 py-1 md:px-4 md:py-2 border-none no-underline focus:outline-none rounded-lg md:text-sm",target:"_blank",href:a.variant.link},We(a.variant.label),9,hI),ne("span",mI,We(a.label)+" Aidaform",1)])):(V(),ae("span",vI,[gI,Qn(" "+We(a.label)+" ",1),ne("a",{target:"_blank",class:"a-link text-xs hover:underline focus:outline-none",href:a.link},"Aidaform",8,yI)]))],2)}var wI=we(uI,[["render",bI],["__scopeId","data-v-1ac2c06f"]]);const _I={components:{Abuse:GP,CreateForm:XP,PoweredBy:wI},props:{off:{type:Boolean,default:!1},maxSize:{type:String,default:"lg"},styleCode:{type:String,default:"a"},lang:{type:String,default:"en"}},computed:{styleClass(){return this.styleCode.charAt(0)},styleVariant(){return this.styleCode.length>1?Number(this.styleCode.substring(1)):0},rows(){switch(this.styleClass){case"a":return["powered-by","create-form","abuse"];case"b":return["abuse"];case"c":return[];case"d":return["powered-by"];default:return["powered-by","create-form","abuse"]}},cls(){return["form-footer","text-sm w-full flex flex-row-reverse justify-around items-center mt-auto relative","bg-top bg-no-repeat bg-cover",this.maxSize==="lg"?"xl:pt-4 xl:block xl:mt-0":""]}}};function xI(e,t,r,n,i,a){return V(),ae("footer",{class:Ye([a.cls,r.maxSize,"style-"+a.styleClass,{off:r.off}])},[(V(!0),ae(vt,null,Gt(a.rows,(o,s)=>(V(),Ge(Cr(o),{key:s,"max-size":r.maxSize,"style-class":a.styleClass,"style-variant":a.styleVariant,lang:r.lang,off:r.off},null,8,["max-size","style-class","style-variant","lang","off"]))),128)),dr(e.$slots,"default",{},void 0,!0)],2)}var EI=we(_I,[["render",xI],["__scopeId","data-v-2942270c"]]);const DI={components:{FormFooter:EI},computed:{...bt({footer:"page/footer",lang:"page/language",loaded:"loader/loaded",inlined:"iframe/resizeable",hideFooter:"form/hideFooter",conversational:"form/conversational",hasCustomBackground:"form/hasCustomBackground"})}};function SI(e,t,r,n,i,a){const o=ge("form-footer");return Fr((V(),Ge(o,{class:Ye({"relative mt-0 print:hidden":e.inlined}),"style-code":e.footer,lang:e.lang,off:e.hideFooter,"max-size":e.hasCustomBackground||e.inlined||e.conversational?"md":"lg"},null,8,["class","style-code","lang","off","max-size"])),[[$r,e.loaded]])}var CI=we(DI,[["render",SI]]),t6={};Object.defineProperty(t6,"__esModule",{value:!0});var AI=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var s=t[Symbol.iterator](),u;!(i=(u=s.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(l){a=!0,o=l}finally{try{!i&&s.return&&s.return()}finally{if(a)throw o}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),NI=t6.default=n6,r6={debug:!1},Oc={html:function(t){t&&Object.keys(t).forEach(function(r){return kb(r,t[r])})},head:function(t){t&&Object.keys(t).forEach(function(r){return U1(r,t[r])})},title:function(t){document.title=Qv(t)?"":t,vn('itemprop="name"',t),vn('property="og:title"',t),vn('name="twitter:title"',t)},description:function(t){vn('name="description"',t),vn('itemprop="description"',t),vn('property="og:description"',t),vn('name="twitter:description"',t)},keywords:function(t){vn('name="keywords"',Array.isArray(t)?t.join(", "):t)},image:function(t){vn('itemprop="image"',t),vn('property="og:image"',t),vn('name="twitter:image"',t)},lang:function(t,r){kb("html",{lang:t}),TI(r,this.ogLocale)&&kI(t)},ogLocale:function(t){vn('property="og:locale"',t)},url:function(t){U1('link[rel="canonical"]',{href:t}),vn('property="og:url"',t),vn('name="twitter:url"',t)}};function n6(e,t){Object.assign(r6,t),Object.keys(e).forEach(function(r){if(!Oc.hasOwnProperty(r))throw new Error("Headful: Property '"+r+"' is unknown.");Oc[r](e[r],e)})}n6.props=Oc;function TI(e,t){if(!e)throw new Error("Headful: You must pass all declared props when you use headful.props.x() calls.");var r=typeof t=="function"?t.name:t;return!e.hasOwnProperty(r)}function vn(e,t){U1("meta["+e+"]",{content:t})}function kb(e,t){i6(a6(document,e),t)}function U1(e,t){i6(a6(document.head,e),t)}function i6(e,t){e&&Object.keys(t).forEach(function(r){Qv(t[r])?e.removeAttribute(r):e.setAttribute(r,t[r])})}function a6(e,t){var r=e.querySelector(t);return!r&&r6.debug&&console.error("Headful: Element '"+t+"' was not found."),r}function kI(e){if(Qv(e))Oc.ogLocale(e);else if(e.match(/^[a-z]{2}-[a-z]{2}$/i)){var t=e.split("-"),r=AI(t,2),n=r[0],i=r[1],a=n+"_"+i.toUpperCase();Oc.ogLocale(a)}}function Qv(e){return e==null}const OI=e=>NI(FI(e));function FI(e){return Object.keys(e).reduce((t,r)=>(e[r]!==void 0&&(t[r]=e[r]),t),{})}var o6={props:{title:String,description:String,keywords:String,language:String},computed:{...bt({pageTitle:"page/title",pageDescription:"page/description",pageKeywords:"page/keywords",pageLanguage:"page/language",noIndex:"form/noIndex",domain:"form/domain",uri:"form/uri"}),head(){const e="https://"+this.domain+".aidaform.com/"+this.uri;return{'link[rel="alternate"][type="application/json+oembed"]':{rel:"alternate",type:"application/json+oembed",href:"https://api.aidaform.com/v1/oembed?url="+encodeURIComponent(e),title:this.pageTitle},'link[rel="alternate"][type="text/xml+oembed"]':{rel:"alternate",type:"text/xml+oembed",href:"https://api.aidaform.com/v1/oembed?url="+encodeURIComponent(e)+"&format=xml",title:this.pageTitle},'meta[name="robots"]':{name:"robots",content:this.noIndex?"noindex,nofollow":"index,follow"},'meta[name="googlebot"]':{name:"googlebot",content:this.noIndex?"noindex,nofollow":"index,follow"}}},headfulProps(){const e={title:this.title||this.pageTitle,description:this.description||this.pageDescription,keywords:this.keywords||this.pageKeywords,head:this.head};return this.pageLanguage&&(e.lang=this.pageLanguage),e}},watch:{headfulProps:{handler:OI,deep:!0,immediate:!0}},render(){return Qa("i",{class:"hidden"})}},$I="Expected a function",Ob=0/0,BI="[object Symbol]",PI=/^\s+|\s+$/g,II=/^[-+]0x[0-9a-f]+$/i,MI=/^0b[01]+$/i,RI=/^0o[0-7]+$/i,LI=parseInt,jI=typeof lt=="object"&&lt&&lt.Object===Object&&lt,UI=typeof self=="object"&&self&&self.Object===Object&&self,zI=jI||UI||Function("return this")(),qI=Object.prototype,HI=qI.toString,VI=Math.max,KI=Math.min,pm=function(){return zI.Date.now()};function GI(e,t,r){var n,i,a,o,s,u,l=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError($I);t=Fb(t)||0,z1(r)&&(c=!!r.leading,f="maxWait"in r,a=f?VI(Fb(r.maxWait)||0,t):a,d="trailing"in r?!!r.trailing:d);function p(N){var $=n,k=i;return n=i=void 0,l=N,o=e.apply(k,$),o}function h(N){return l=N,s=setTimeout(v,t),c?p(N):o}function b(N){var $=N-u,k=N-l,K=t-$;return f?KI(K,a-k):K}function g(N){var $=N-u,k=N-l;return u===void 0||$>=t||$<0||f&&k>=a}function v(){var N=pm();if(g(N))return S(N);s=setTimeout(v,b(N))}function S(N){return s=void 0,d&&n?p(N):(n=i=void 0,o)}function w(){s!==void 0&&clearTimeout(s),l=0,n=u=i=s=void 0}function D(){return s===void 0?o:S(pm())}function _(){var N=pm(),$=g(N);if(n=arguments,i=this,u=N,$){if(s===void 0)return h(u);if(f)return s=setTimeout(v,t),p(u)}return s===void 0&&(s=setTimeout(v,t)),o}return _.cancel=w,_.flush=D,_}function z1(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function WI(e){return!!e&&typeof e=="object"}function YI(e){return typeof e=="symbol"||WI(e)&&HI.call(e)==BI}function Fb(e){if(typeof e=="number")return e;if(YI(e))return Ob;if(z1(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=z1(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(PI,"");var r=MI.test(e);return r||RI.test(e)?LI(e.slice(2),r?2:8):II.test(e)?Ob:+e}var da=GI;const ZI={},JI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},XI=ne("path",{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"},null,-1),QI=[XI];function eM(e,t){return V(),ae("svg",JI,QI)}var s6=we(ZI,[["render",eM]]);const tM={components:{ChevronDown:s6},data(){return{show:!1,onScroll:da(this.scroll,100)}},mounted(){window.addEventListener("scroll",this.onScroll)},beforeUnmount(){window.removeEventListener("scroll",this.onScroll)},methods:{scroll(){const e=document.documentElement,t=(window.pageYOffset||e.scrollTop)-(e.clientTop||0);this.show=t>300},click(){window.scroll({top:0,left:0,behavior:"smooth"})}}};function rM(e,t,r,n,i,a){const o=ge("chevron-down");return V(),ae("button",{class:Ye(["hidden items-center justify-center fixed rounded-full focus-visible:outline-none z-50 w-16 h-16 bottom-8 right-8 bg-neutral-300",{"xl:flex":i.show}]),onClick:t[0]||(t[0]=(...s)=>a.click&&a.click(...s))},[Ee(o,{class:"icon w-5 h-5 rotate-180"})],2)}var nM=we(tM,[["render",rM],["__scopeId","data-v-624ecf45"]]);const iM={components:{UiBlocker:jP,MetaTags:o6,ScrollToTop:nM,TheFooter:CI},props:{noScroll:{type:Boolean,default:!1},noFooter:{type:Boolean,default:!1},noImage:{type:Boolean,default:!1}},emits:["loaded"],computed:{...bt({inlined:"iframe/resizeable",colors:"form/colors",backgroundEnabled:"form/backgroundEnabled",backgroundImage:"form/backgroundImage"}),stl(){const e={background1:"color-background-1",font1:"color-font-1",font5:"color-font-5",submitButton1:"submit-background-color-1",submitButton2:"submit-background-color-2",submitFontColor:"submit-font-color",svgIcon1:"svg-icon-color-1",svgIcon2:"svg-icon-color-2"},t=this.colors||{},r={};if(Object.keys(t).forEach(n=>{r["--"+B(e,n,n)]=t[n]}),"--color-font-1"in r){const n=Wv(r["--color-font-1"]);n&&(r["--input-border-color-1"]="rgba("+n.join(", ")+", 0.4)")}return!this.noImage&&this.backgroundEnabled&&(r["background-image"]="url("+this.backgroundImage+")"),r}},mounted(){this.$store.dispatch("loader/ensure").then(()=>{this.$emit("loaded")}).catch(()=>{this.$router.push({name:"404"}).catch(()=>{})})}};function aM(e,t,r,n,i,a){const o=ge("ui-blocker"),s=ge("meta-tags"),u=ge("the-footer"),l=ge("scroll-to-top");return V(),ae("div",{id:"aidaform",class:Ye(["flex flex-col relative overflow-hidden bg-fixed bg-cover",{inlined:e.inlined}]),style:ln(a.stl)},[dr(e.$slots,"default",{},void 0,!0),Ee(o),Ee(s),r.noFooter?ct("",!0):(V(),Ge(u,{key:0})),r.noScroll?ct("",!0):(V(),Ge(l,{key:1}))],6)}var u6=we(iM,[["render",aM],["__scopeId","data-v-1e5363e7"]]);const oM={props:{noImage:{type:Boolean,default:!1}},computed:{...bt({conversational:"form/conversational",hideFooter:"form/hideFooter",inlined:"iframe/resizeable",backgroundEnabled:"form/backgroundEnabled",backgroundOpacity:"form/backgroundOpacity",backgroundColor:"form/backgroundColor"}),klass(){return["i-main flex w-full justify-center z-10 mb-16 grow items-center",{conversational:this.conversational,inlined:this.inlined,"no-footer":this.hideFooter,"has-bg":!this.noImage&&this.backgroundEnabled}]},stl(){if(!this.noImage&&this.backgroundEnabled){const e=Wv(this.backgroundColor);if(e)return{"background-color":"rgba("+e.join(", ")+", "+Number(this.backgroundOpacity/100).toFixed(2)+")"}}return{}}}};function sM(e,t,r,n,i,a){return V(),ae("main",{style:ln(a.stl),class:Ye(a.klass)},[dr(e.$slots,"default",{},void 0,!0)],6)}var l6=we(oM,[["render",sM],["__scopeId","data-v-11c533ca"]]),uM=Object.defineProperty,$b=Object.getOwnPropertySymbols,lM=Object.prototype.hasOwnProperty,cM=Object.prototype.propertyIsEnumerable,Bb=(e,t,r)=>t in e?uM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tp=(e,t)=>{for(var r in t||(t={}))lM.call(t,r)&&Bb(e,r,t[r]);if($b)for(var r of $b(t))cM.call(t,r)&&Bb(e,r,t[r]);return e},vl=e=>Object.prototype.toString.call(e)==="[object String]",fM=(e,t,r)=>Math.max(t,Math.min(e,r)),rp=e=>Array.isArray(e),c6=e=>Object.prototype.toString.call(e).includes("Object"),np=e=>typeof e=="number"&&!isNaN(e),eg=e=>np(e)&&e%1===0,dM=/[\p{Lu}]/u,pM=/[\p{Ll}]/u,Pb=/^[\p{Lu}](?![\p{Lu}])/gu,f6=/([\p{Alpha}\p{N}_]|$)/u,d6=/[ ._-]+/,hM=new RegExp(`^${d6.source}`),Ib=new RegExp(d6.source+f6.source,"gu"),Mb=new RegExp(`\\d+${f6.source}`,"gu"),mM={preserveConsecutiveUppercase:!1},vM=e=>{let t=!1,r=!1,n=!1;for(let i=0;i<e.length;i++){const a=e[i];t&&dM.test(a)?(e=`${e.slice(0,i)}-${e.slice(i)}`,t=!1,n=r,r=!0,i++):r&&n&&pM.test(a)?(e=`${e.slice(0,i-1)}-${e.slice(i-1)}`,n=r,r=!1,t=!0):(t=a.toLowerCase()===a&&a.toUpperCase()!==a,n=r,r=a.toUpperCase()===a&&a.toLowerCase()!==a)}return e},gM=e=>(Pb.lastIndex=0,e.replace(Pb,t=>t.toLowerCase())),yM=e=>(Ib.lastIndex=0,Mb.lastIndex=0,e.replace(Ib,(t,r)=>r.toUpperCase()).replace(Mb,t=>t.toUpperCase())),bM=(e,t)=>{if(!rp(!e)&&!vl(e))throw new TypeError("Expected the input to be `string | string[]`");return t=tp(tp({},mM),t),e=rp(e)?e.map(r=>r.trim()).filter(Boolean).join("-"):e.trim(),e.length?e.length===1?e.toLowerCase():(e!==e.toLowerCase()&&(e=vM(e)),e=e.replace(hM,""),e=t.preserveConsecutiveUppercase?gM(e):e.toLowerCase(),yM(e)):""},wM=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s._]+/g,"-").toLowerCase(),_M={preserveConsecutiveUppercase:!1},xM=(e,t)=>{const r=bM(e,tp(tp({},_M),t));return r.length?r[0].toUpperCase()+r.slice(1):""};const ss=(e,t)=>t(e)?!0:!c6(e)||Object.keys(e).length!==2?!1:!Object.entries(e).some(([r,n])=>{const i=!["enter","leave"].includes(r),a=!t(n);return i||a}),EM=e=>ss(e,t=>eg(t)&&t>=0),DM=e=>ss(e,t=>vl(t)&&t.trim()!==""),SM=e=>ss(e,t=>eg(t)&&t>=0),p6=300,CM="cubic-bezier(.25, .8, .5, 1)",AM=0,NM="y",TM=[0,-16],kM="both",OM="50% 50%",FM=0,$M=p6,hh={inheritAttrs:!1,props:{duration:{validator:EM,default:p6},easing:{validator:DM,default:()=>CM},delay:{validator:SM,default:AM},noOpacity:{type:Boolean,default:!1},appear:{type:Boolean,default:!1},mode:{type:String,default:void 0},group:{type:Boolean,default:!1},tag:{type:String,default:"span"},noMove:{type:Boolean,default:!1},moveDuration:{type:Number,default:$M}},computed:{cComponent(){return this.group?pC:Ku},cAttrs(){const{appear:e,mode:t,tag:r,duration:n}=this;return{appear:e,mode:t,tag:r,duration:n}},cHooks(){return{beforeEnter:(...e)=>{this.reduceTransition(...e),this.$emit("before-enter",...e)},beforeLeave:(...e)=>{var t;this.reduceTransition(...e),(t=this.initLeaving)==null||t.call(this,...e),this.$emit("before-leave",...e)},enter:(...e)=>{var t;(t=this.onEnter)==null||t.call(this,...e),this.$emit("enter",...e)},leave:(...e)=>{var t;(t=this.onLeave)==null||t.call(this,...e),this.$emit("leave",...e)},afterEnter:(...e)=>{var t;this.resetTransition(...e),(t=this.resetElement)==null||t.call(this,...e),this.$emit("after-enter",...e)},afterLeave:(...e)=>{var t;this.resetTransition(...e),(t=this.resetElement)==null||t.call(this,...e),this.$emit("after-leave",...e)}}}},methods:{setupTransition(e,t="enter"){var r,n,i,a,o,s;const u=(n=(r=this.duration)==null?void 0:r[t])!=null?n:this.duration,l=(a=(i=this.easing)==null?void 0:i[t])!=null?a:this.easing,c=(s=(o=this.delay)==null?void 0:o[t])!=null?s:this.delay;e.style.setProperty("transition-duration",`${u}ms`,"important"),e.style.setProperty("transition-timing-function",`${l}`,"important"),e.style.setProperty("transition-delay",`${c}ms`,"important")},reduceTransition(e){e.style.setProperty("transition-duration","0ms","important"),e.style.setProperty("transition-delay","0ms","important")},resetTransition(e){e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-timing-function"),e.style.removeProperty("transition-delay")},initLeaving(e){if(!this.group||this.noMove)return e;const t=getComputedStyle(e),{width:r,height:n}=t,{marginLeft:i,marginTop:a}=t;return e.style.setProperty("left",`${e.offsetLeft-parseFloat(i)}px`,"important"),e.style.setProperty("top",`${e.offsetTop-parseFloat(a)}px`,"important"),e.style.setProperty("width",`${parseFloat(r)}px`,"important"),e.style.setProperty("height",`${parseFloat(n)}px`,"important"),e.style.setProperty("position","absolute","important"),e},setMoveDuration(){var e;this.group&&this.$el&&((e=this.$el.style)==null||e.setProperty("--move-duration",`${this.moveDuration}ms`))}},watch:{moveDuration(){this.setMoveDuration()},group(){this.setMoveDuration()}},mounted(){this.setMoveDuration()}},BM=e=>ss(e,t=>vl(t)&&["x","y"].includes(t));var mh=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r};const PM={name:"transition-expand",mixins:[hh],props:{axis:{validator:BM,default:NM}},data:()=>({}),computed:{},methods:{onEnter(e){this.getSizes(e),this.collapseElement(e,"enter"),e.offsetTop,this.setupTransition(e,"enter"),this.$nextTick(()=>this.expandElement(e,"enter"))},onLeave(e){this.getSizes(e),this.expandElement(e,"leave"),e.offsetTop,this.setupTransition(e,"leave"),this.collapseElement(e,"leave")},expandElement(e,t="enter"){var r,n;const i=(n=(r=this.axis)==null?void 0:r[t])!=null?n:this.axis,a=i==="x"?"left":"top",o=i==="x"?"right":"bottom",s=e.visual.size[i],u=e.visual.margin[i],l=e.visual.padding[i];this.noOpacity||e.style.setProperty("opacity",e.visual.opacity),delete e.visual,e.style.setProperty(i==="x"?"width":"height",`${parseFloat(s)}px`),e.style.setProperty(`padding-${a}`,`${parseFloat(l[0])}px`),e.style.setProperty(`padding-${o}`,`${parseFloat(l[1])}px`),e.style.setProperty(`margin-${a}`,`${parseFloat(u[0])}px`),e.style.setProperty(`margin-${o}`,`${parseFloat(u[1])}px`)},collapseElement(e,t="enter"){var r,n;const i=(n=(r=this.axis)==null?void 0:r[t])!=null?n:this.axis,a=i==="x"?"width":"height",o=i==="x"?"left":"top",s=i==="x"?"right":"bottom";this.noOpacity||e.style.setProperty("opacity",0),e.style.setProperty(a,"0px"),e.style.setProperty(`padding-${o}`,"0px"),e.style.setProperty(`padding-${s}`,"0px"),e.style.setProperty(`margin-${o}`,"0px"),e.style.setProperty(`margin-${s}`,"0px")},resetElement(e){e.style.removeProperty("opacity"),e.style.removeProperty("width"),e.style.removeProperty("height"),e.style.removeProperty("padding-top"),e.style.removeProperty("padding-right"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("padding-left"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-right"),e.style.removeProperty("margin-bottom"),e.style.removeProperty("margin-left")},getSizes(e){const t=getComputedStyle(e),{opacity:r}=t,{width:n,height:i}=t,{paddingTop:a,paddingRight:o,paddingBottom:s,paddingLeft:u}=t,{marginTop:l,marginRight:c,marginBottom:f,marginLeft:d}=t;e.visual={opacity:r,size:{x:n,y:i},padding:{x:[u,o],y:[a,s]},margin:{x:[d,c],y:[l,f]}}}}};function IM(e,t,r,n,i,a){return V(),Ge(Cr(e.cComponent),ei({name:"expand"},e.cAttrs,qu(e.cHooks)),{default:Qe(()=>[dr(e.$slots,"default")]),_:3},16)}var Rb=mh(PM,[["render",IM]]);const MM={name:"transition-fade",mixins:[hh],props:{},data:()=>({}),computed:{},methods:{onEnter(e){this.fadeElement(e,"enter"),e.offsetTop,this.setupTransition(e,"enter"),this.$nextTick(()=>e.style.removeProperty("opacity"))},onLeave(e){this.setupTransition(e,"leave"),this.fadeElement(e,"leave")},fadeElement(e,t="enter"){e.style.setProperty("opacity",0)},resetElement(e){e.style.removeProperty("opacity")}}};function RM(e,t,r,n,i,a){return V(),Ge(Cr(e.cComponent),ei({name:"fade"},e.cAttrs,qu(e.cHooks)),{default:Qe(()=>[dr(e.$slots,"default")]),_:3},16)}var q1=mh(MM,[["render",RM]]);const LM=e=>ss(e,t=>vl(t)&&["x","y","both"].includes(t)),jM=e=>ss(e,t=>vl(t)&&t.trim()!==""),UM=e=>ss(e,t=>np(t)&&t>=0&&t<=1),h6=e=>{const t=e.startsWith("matrix3d")?"matrix3d":"matrix",r=t==="matrix3d"?e.slice(9,-1).split(",").map(Number):e.startsWith("matrix")?e.slice(7,-1).split(",").map(Number):[1,0,0,1,0,0];return[t,r]},zM={name:"transition-scale",mixins:[hh],props:{axis:{validator:LM,default:kM},origin:{validator:jM,default:OM},scale:{validator:UM,default:FM}},data:()=>({}),computed:{},methods:{onEnter(e){this.scaleElement(e,"enter"),e.offsetTop,this.setupTransition(e,"enter"),this.$nextTick(()=>{e.style.removeProperty("opacity"),e.style.removeProperty("transform")})},onLeave(e){this.setupTransition(e,"leave"),this.scaleElement(e,"leave")},scaleElement(e,t="enter"){var r,n,i,a,o,s;const{transform:u}=getComputedStyle(e),l=(n=(r=this.axis)==null?void 0:r[t])!=null?n:this.axis,c=(a=(i=this.origin)==null?void 0:i[t])!=null?a:this.origin,f=fM(1e-4,(s=(o=this.scale)==null?void 0:o[t])!=null?s:this.scale,.9999),[d,p]=h6(u);u.startsWith("matrix3d")?(l!=="y"&&(p[0]=f),l!=="x"&&(p[5]=f)):u.startsWith("matrix")?(l!=="y"&&(p[0]=f),l!=="x"&&(p[3]=f)):(p[0]=l==="y"?1:f,p[3]=l==="x"?1:f),this.noOpacity||e.style.setProperty("opacity",0),e.style.setProperty("transform",`${d}(${p})`),e.style.setProperty("transform-origin",`${c}`)},resetElement(e){e.style.removeProperty("opacity"),e.style.removeProperty("transform"),e.style.removeProperty("transform-origin")}}};function qM(e,t,r,n,i,a){return V(),Ge(Cr(e.cComponent),ei({name:"scale"},e.cAttrs,qu(e.cHooks)),{default:Qe(()=>[dr(e.$slots,"default")]),_:3},16)}var Lb=mh(zM,[["render",qM]]);const HM=e=>ss(e,t=>!rp(t)||t.length!==2?!1:!t.some(r=>eg(r)?!1:vl(r)?isNaN(Number(r.endsWith("%")?r.slice(0,-1):r)):!0)),VM={name:"transition-slide",mixins:[hh],props:{offset:{validator:HM,default:()=>TM}},data:()=>({}),computed:{},methods:{onEnter(e){this.slideElement(e,"enter"),e.offsetTop,this.setupTransition(e,"enter"),e.style.removeProperty("opacity"),e.style.removeProperty("transform")},onLeave(e){this.setupTransition(e,"leave"),this.slideElement(e,"leave")},slideElement(e,t="enter"){var r,n;const{width:i,height:a,transform:o}=getComputedStyle(e),s=(n=(r=this.offset)==null?void 0:r[t])!=null?n:this.offset;let[u,l]=s;np(u)||(u=u.endsWith("%")?parseFloat(i)*(parseFloat(u.slice(0,-1))||0)/100:parseFloat(u)),np(l)||(l=l.endsWith("%")?parseFloat(a)*(parseFloat(l.slice(0,-1))||0)/100:parseFloat(l));const[c,f]=h6(o);o.startsWith("matrix3d")?(f[12]+=u,f[13]+=l):o.startsWith("matrix")?(f[4]+=u,f[5]+=l):(f[4]=u,f[5]=l),this.noOpacity||e.style.setProperty("opacity",0),e.style.setProperty("transform",`${c}(${f})`)},resetElement(e){e.style.removeProperty("opacity"),e.style.removeProperty("transform")}}};function KM(e,t,r,n,i,a){return V(),Ge(Cr(e.cComponent),ei({name:"slide"},e.cAttrs,qu(e.cHooks)),{default:Qe(()=>[dr(e.$slots,"default")]),_:3},16)}var jb=mh(VM,[["render",KM]]);const bd={[Rb.name]:Rb,[q1.name]:q1,[Lb.name]:Lb,[jb.name]:jb},Ub=(e,t,r)=>{var n;(n=e.props)!=null||(e.props={}),e.props[t]={default:rp(r)||c6(r)?()=>r:r}},zb=(e,t)=>{var r,n,i;const a=wM(e),o=xM(e),s=(r=t==null?void 0:t.defaultProps)!=null?r:{},u=(i=(n=t==null?void 0:t.componentDefaultProps)==null?void 0:n[o])!=null?i:{};return Object.entries(s).forEach(([l,c])=>{Ub(bd[a],l,c)}),Object.entries(u).forEach(([l,c])=>{Ub(bd[a],l,c)}),bd[a]},GM=function(e,t={}){t!=null&&t.components?Object.entries(t.components).forEach(([r,n])=>{e.component(n,zb(r,t))}):Object.keys(bd).forEach(r=>{e.component(r,zb(r,t))})};typeof window!="undefined"&&window.Vue&&window.Vue.use({install:GM});function wt(e={}){const t=(Ft,or=void 0)=>tt(()=>B(e.value,"properties."+Ft,or)),r=tt(()=>e.value.index),n=tt(()=>Ms.getters["fields/value"](r.value)),i=tt(()=>Ms.getters["fields/state"](r.value)),a=tt(()=>Ms.getters["fields/valid"](r.value)),o=tt(()=>e.value.id),s=tt(()=>"field-"+r.value),u=tt(()=>B(e.value,"label","").trim()),l=tt(()=>{if(["paypal","stripe"].includes(e.value.type))switch(d.value){case"fixed":return!1;case"custom":return!0}return!f.value}),c=t("align","left"),f=t("required",!1),d=t("paymentType"),p=tt(()=>{switch(c.value){case"center":return"text-center";case"right":return"text-right";default:case"left":return"text-left"}}),h=t("icon",e.value.type),b=t("min",0),g=t("hasInitial",!1),v=t("initial",2),S=t("logic",null),w=tt(()=>B(S.value,"jumps",[])),D=t("text",""),_=t("delta",null),N=t("type"),$=t("size",[300,200]),k=t("location",null),K=t("url",""),G=t("youtubeVideoId",null),j=t("videoSources",[]),q=t("audioSources",[]),re=t("autoplay",!1),M=t("loop",!1),U=t("muted",!1),x=t("items",[]),I=t("styled",!1),ee=t("columns",2),oe=t("shuffle",!1),ce=t("allowAddOption",!1),$e=t("hasLimits",!1),me=tt(()=>$e.value?B(e.value,"properties.min",0):""),_e=tt(()=>$e.value?B(e.value,"properties.max",100):""),Ue=t("mask",""),te=t("visibleDescription",!1),Te=t("description",""),de=t("placeholder",""),De=t("placeholderEnabled",!1),Ne=t("min",1),je=t("max",10),Pe=t("placeholderFirstName",""),ze=t("placeholderLastName",""),R=t("firstName",""),J=t("lastName",""),he=t("shape",null),Se=t("steps",5),Ce=t("visibleLabels",!1),X=t("options",[]),ie=t("multiple",!1),fe=t("format",""),xe=t("limit",1024*1024*10),pe=t("voiceInputEnabled",!1),Be=t("language","en"),ve=t("oneChoicePerRow",!1),Le=t("oneChoicePerColumn",!1),Ve=t("matrix",{columns:[],rows:[]}),P=tt(()=>B(Ve.value,"rows",[]).map(Ft=>Ft.value)),C=tt(()=>B(Ve.value,"columns",[]).map(Ft=>Ft.value)),be=t("max",60),T=t("products",[]),z=t("localized",!1),E=t("currencyLocale","en-US"),O=t("noQuantity",!1),H=t("noPrice",!1),L=t("noTotal",!1),Q=t("currency","USD"),se=t("currencyDisplay","code"),m=t("behavior","link"),A=t("link",""),Y=t("termsUrl",""),le=t("calculationField",null),Fe=t("visibleAddressLine1",!1),He=t("visibleAddressLine2",!1),et=t("visibleCity",!1),gt=t("visibleState",!1),Lt=t("visibleZIP",!1),ir=t("visibleCountry",!1),Pt=t("placeholderAddressLine1",""),mr=t("placeholderAddressLine2",""),Nr=t("placeholderCity",""),ki=t("placeholderState",""),ga=t("placeholderZIP",""),ya=t("placeholderCountry",""),Oi=t("addressLine1",""),Ln=t("addressLine2",""),Zt=t("city",""),ii=t("state",""),Fi=t("zip",""),ba=t("country",""),wa=t("behavior",null),$i=t("shadow",!1),ar=t("hasValidation",!1),_a=t("validationError",""),ai=t("connectedToInventory",!1),oi=t("startOn","immediate"),Bi=t("startOnPage",null),Jr=t("stopOn","submit"),vr=t("stopOnPage",null),Pi=t("seconds",null),xa=t("display",!1),Ea=t("position","tr"),Da=t("visibleLabel",!1),jn=t("visibleCountry",!1),Xr=t("visibleAddressLine1",!1),si=t("visibleAddressLine2",!1),Un=tt(()=>jn.value?B(e.value,"properties.country",null):null),zr=tt(()=>Xr.value?B(e.value,"properties.addressLine1",null):null),Qr=tt(()=>si.value?B(e.value,"properties.addressLine2",null):null);return{index:r,value:n,state:i,valid:a,fieldId:o,fieldElementId:s,label:u,align:c,alignCss:p,required:f,icon:h,optional:l,paymentType:d,calculationInitial:b,hasPrecision:g,precision:v,logic:S,logicJumps:w,text:D,delta:_,type:N,size:$,location:k,url:K,youtubeVideoId:G,videoSources:j,audioSources:q,autoplay:re,loop:M,muted:U,items:x,styled:I,columns:ee,shuffle:oe,allowAddOption:ce,hasLimits:$e,min:me,max:_e,mask:Ue,visibleDescription:te,description:Te,placeholder:de,placeholderEnabled:De,choiceMin:Ne,choiceMax:je,placeholderFirstName:Pe,placeholderLastName:ze,firstName:R,lastName:J,shape:he,steps:Se,visibleLabels:Ce,options:X,multiple:ie,format:fe,limit:xe,voiceInputEnabled:pe,language:Be,oneChoicePerRow:ve,oneChoicePerColumn:Le,matrix:Ve,matrixRows:P,matrixColumns:C,maxLength:be,products:T,localized:z,currencyLocale:E,noQuantity:O,noPrice:H,noTotal:L,currency:Q,currencyDisplay:se,termsOfUseBehaviour:m,termsOfUseLink:A,termsOfUseUrl:Y,calculationField:le,visibleAddressLine1:Fe,visibleAddressLine2:He,visibleCity:et,visibleState:gt,visibleZIP:Lt,visibleCountry:ir,placeholderAddressLine1:Pt,placeholderAddressLine2:mr,placeholderCity:Nr,placeholderState:ki,placeholderZIP:ga,placeholderCountry:ya,descriptionAddressLine1:Oi,descriptionAddressLine2:Ln,descriptionCity:Zt,descriptionState:ii,descriptionZip:Fi,descriptionCountry:ba,behavior:wa,shadow:$i,hasValidation:ar,validationError:_a,connectedToInventory:ai,startOn:oi,startOnPage:Bi,stopOn:Jr,stopOnPage:vr,seconds:Pi,display:xa,position:Ea,visibleLabel:Da,hasDefaultDate:jn,hasMinDate:Xr,hasMaxDate:si,defaultDate:Un,minDate:zr,maxDate:Qr}}const WM=e=>{const t={"full-name":"name","long-text":"text","multiple-choice":"quest2","cassudy-flashcards":"quest2","score-choice":"quest2","score-calculation":"expression","media-answer":"img","picture-choice":"quest2",phone:"telephone","short-text":"text",address:"location",recaptcha:"captcha",chat:"chat",check:"check",checkbox:"checkbox",date:"date",dot:"dot",dragndrop:"dragndrop",dropdown:"quest",edit:"edit",email:"email",expression:"formula",calculation:"expression",file2:"file",file:"upload",heart2:"heart2",heart:"heart",hidden:"hidden",checkout:"hidden",idea:"idea",img:"img",list:"list",mail:"mail",number:"number",paypal:"paypal",stripe:"paypal","order-cart":"paypal",rating:"rating",scale:"rating",slider:"rating",matrix:"rating",signature:"signature",tag:"tag",web:"web",website:"link"};return e in t?t[e]:e},YM={props:{fieldType:String,iconName:String},computed:{id(){return this.fieldType?"i-field-"+WM(this.fieldType):this.iconName?"i-icons-"+this.iconName:""}}},ZM=["href"];function JM(e,t,r,n,i,a){return V(),ae("svg",ei(e.$attrs,{"aria-hidden":"true"}),[ne("use",{href:"#"+a.id},null,8,ZM)],16)}var m6=we(YM,[["render",JM]]);const qb=e=>!["captcha","h1","h2","image","text","terms-of-use","newsletter-signup","action-list","hidden","score-calculation","score-display","expression","calculation","access-id"].includes(e.type),XM={components:{SvgIcon:m6},props:{field:Object,pos:Number,height:Number},setup(e){const{field:t}=yt(e),{icon:r,fieldElementId:n}=wt(t);return{icon:r,fieldElementId:n}},data(){return{activeDot:-1,timeout:null}},computed:{...bt({animated:"animation/animated",animating:"animation/animating",current:"animation/current",fields:"page/fields"}),hasDecoration(){return qb(this.field)},isAnimating(){return this.animating===this.pos},previousFieldAnimated(){return this.animated!==null&&this.animated>=this.pos-1},hasBeenAnimated(){return this.animated!==null&&this.animated>=this.pos},nextFieldHasDecoration(){const e=this.fields[this.pos+1];return e?qb(e):!1},count(){return this.nextFieldHasDecoration?Math.max(0,Math.round((this.height-35)/20)):0},klassDecoration(){return["field-decoration flex flex-col justify-between items-center pb-2 z-10",{current:this.current===this.pos,active:this.isAnimating||this.previousFieldAnimated}]},klassIcon(){return["icon-wrapper relative","before:inline-block before:absolute before:w-10.5 before:h-10.5 sm:before:w-15 sm:before:h-15","before:opacity-0 before:rounded-full"]}},watch:{animated(e){e===null&&(this.activeDot=-1,clearTimeout(this.timeout))},animating(){this.animating===this.pos&&(this.hasDecoration?this.activateDot():this.$store.commit("animation/animated",this.pos))}},methods:{activateDot(){this.activeDot<this.count-1?(this.activeDot++,this.timeout=setTimeout(this.activateDot,100)):this.$store.commit("animation/animated",this.pos)},klassDot(e){return["dot","h-1 w-1 print:hidden",{active:this.hasBeenAnimated||e<=this.activeDot}]}}},QM=["for"];function eR(e,t,r,n,i,a){const o=ge("svg-icon");return a.hasDecoration?(V(),ae("div",{key:0,class:Ye(a.klassDecoration)},[ne("label",{class:Ye(a.klassIcon),for:n.fieldElementId},[Ee(o,{"field-type":n.icon,class:"icon w-6 h-6 sm:w-8.5 sm:h-8.5"},null,8,["field-type"])],10,QM),(V(!0),ae(vt,null,Gt(a.count,s=>(V(),Ge(o,{key:s,class:Ye(a.klassDot(s)),"icon-name":"dot"},null,8,["class"]))),128))],2)):ct("",!0)}var tR=we(XM,[["render",eR],["__scopeId","data-v-10dbbc1a"]]);const rR={provide(){return{grColumns:tt(()=>this.columns),grAppearance:tt(()=>this.appearance)}},props:{columns:[String,Number],gap:{type:[String,Number],default:0},gapH:{type:[String,Number],default:null},gapV:{type:[String,Number],default:null},appearance:{type:String,default:"a"}},computed:{gapX(){return this.gapH?this.gapH:this.gap},gapY(){return this.gapV?this.gapV:this.gap}}};function nR(e,t,r,n,i,a){return V(),ae("div",null,[ne("div",{style:ln({"--i-gap-x":a.gapX+"rem","--i-gap-y":a.gapY+"rem"}),class:"i-grid flex flex-row flex-wrap items-stretch"},[dr(e.$slots,"default",{},void 0,!0)],4)])}var Yc=we(rR,[["render",nR],["__scopeId","data-v-1b33fd90"]]);const iR={inject:{columns:{from:"grColumns",default:3},grAppearance:"grAppearance"},props:{cols:{type:[String,Number],default:null},appearance:String},computed:{_cols(){return this.cols?Math.max(1,Math.min(12,Number(this.cols))):Math.round(12/Math.max(1,Number(this.columns)))},_appearance(){return this.appearance||this.grAppearance},width(){return this._cols===12?"":"i-col-"+this._cols}}};function aR(e,t,r,n,i,a){return V(),ae("div",{class:Ye(["i-cell w-full",a._appearance,a.width])},[dr(e.$slots,"default",{},void 0,!0)],2)}var pa=we(iR,[["render",aR],["__scopeId","data-v-02e0bd52"]]);const oR={props:{source:String},emits:["load"]},sR={class:"image-wrapper relative w-full flex overflow-hidden flex-grow"},uR=["src"];function lR(e,t,r,n,i,a){return V(),ae("div",sR,[ne("img",{class:"img",src:r.source,onLoad:t[0]||(t[0]=o=>e.$emit("load"))},null,40,uR),dr(e.$slots,"default",{},void 0,!0)])}var v6=we(oR,[["render",lR],["__scopeId","data-v-67916966"]]);const cR={components:{Grid:Yc,Cell:pa,ImageWrapper:v6},props:{options:{type:Array,default:()=>[]},align:{type:String,default:"left"},noImages:Boolean,columns:{type:[String,Number],default:2}},emits:["action","loaded"],computed:{_align(){switch(this.align){case"right":return"text-right";case"center":return"text-center";default:return"text-left"}}}},fR=["onClick"];function dR(e,t,r,n,i,a){const o=ge("image-wrapper"),s=ge("cell"),u=ge("grid");return V(),Ge(u,{columns:r.columns,gap:"0.8",appearance:r.noImages?"f":"g"},{default:Qe(()=>[(V(!0),ae(vt,null,Gt(r.options,(l,c)=>(V(),Ge(s,{key:c},{default:Qe(()=>[ne("div",{class:Ye(["cursor-pointer w-full h-full flex flex-col-reverse justify-between",r.noImages?"p-1.5":"p-1"]),onClick:f=>e.$emit("action",{action:l.action,value:l.param})},[ne("div",{class:Ye(["text-wrapper text-lg",a._align])},We(l.name||""),3),!r.noImages&&l.value?(V(),Ge(o,{key:0,class:"mb-2.5 items-start",source:l.value,onLoad:t[0]||(t[0]=f=>e.$emit("loaded"))},null,8,["source"])):ct("",!0)],10,fR)]),_:2},1024))),128))]),_:1},8,["columns","appearance"])}var pR=we(cR,[["render",dR],["__scopeId","data-v-4f103856"]]);const hR={components:{ActionListViewer:pR},props:{field:Object,pos:Number},emits:["action","redraw"],setup(e){const{field:t}=yt(e),{align:r,items:n,styled:i,columns:a}=wt(t);return{align:r,items:n,styled:i,columns:a}}};function mR(e,t,r,n,i,a){const o=ge("action-list-viewer");return V(),Ge(o,{class:"px-4 pb-8",options:n.items,columns:n.columns,"no-images":!n.styled,align:n.align,onLoaded:t[0]||(t[0]=s=>e.$emit("redraw")),onAction:t[1]||(t[1]=s=>e.$emit("action",s))},null,8,["options","columns","no-images","align"])}var vR=we(hR,[["render",mR]]);function gR(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(i){i(r)}),(n=e.get("*"))&&n.slice().map(function(i){i(t,r)})}}}const hm=gR(),Au={$on:(...e)=>hm.on(...e),$off:(...e)=>hm.off(...e),$emit:(...e)=>hm.emit(...e)};var yR={install:e=>{e.config.globalProperties.$hub=Au}};function Ti(e,t,r=[]){const n=(a=0)=>{const o=B(r,a);o.value&&o.value.focus?o.value.focus():Array.isArray(o.value)&&o.value.length&&o.value[0].focus&&o.value[0].focus()};return Ks(()=>{Au.$on("focus:field:"+t.value,n)}),zu(()=>{Au.$off("focus:field:"+t.value,n)}),{focus:n,focusNext:(a=-1)=>{a!==-1&&a<r.length-1?n(a+1):(Au.$emit("focus:field:"+(t.value+1)),e("focus:next"))}}}const bR={props:{field:Object,noOptional:Boolean},setup(e){const{field:t}=yt(e),{label:r,fieldElementId:n,optional:i}=wt(t);return{label:r,fieldElementId:n,optional:i}},computed:{...bt({optionalStyle:"form/optionalStyle"}),klass(){return["label inline-block relative mb-3 font-bold text-xl leading-[1.6875rem] break-words",{'after:inline-block after:content-["*"] after:-translate-y-1.5 after:-translate-x-1':!this.noOptional&&!this.optional&&this.optionalStyle==="asterisk"}]}}},wR={key:0},_R=["for"],xR={key:0,class:"relative mb-3 text-xl leading-[1.6875rem] break-words opacity-50 font-normal"};function ER(e,t,r,n,i,a){return n.label?(V(),ae("div",wR,[ne("label",{class:Ye(a.klass),for:n.fieldElementId},[Qn(We(n.label)+" ",1),!r.noOptional&&n.optional&&e.optionalStyle==="optional"?(V(),ae("span",xR,We(e.$t("form.labels.optional")),1)):ct("",!0)],10,_R)])):ct("",!0)}var hr=we(bR,[["render",ER],["__scopeId","data-v-2436557c"]]);const DR={},SR={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},CR=ne("path",{d:"M400 64h-48V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H160V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V160h352v298c0 3.3-2.7 6-6 6z"},null,-1),AR=[CR];function NR(e,t){return V(),ae("svg",SR,AR)}var TR=we(DR,[["render",NR]]);const kR={},OR={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},FR=ne("path",{d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm61.8-104.4-84.9-61.7c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v141.7l66.8 48.6c5.4 3.9 6.5 11.4 2.6 16.8L334.6 349c-3.9 5.3-11.4 6.5-16.8 2.6z"},null,-1),$R=[FR];function BR(e,t){return V(),ae("svg",OR,$R)}var PR=we(kR,[["render",BR]]);const IR={"#":{pattern:/\d/}};function Hb(e){let t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function Vb(e,t,r=!0,n){e=e||"",t=t||"";let i=0,a=0,o="";for(;i<t.length&&a<e.length;){let u=t[i],l=n[u],c=e[a];l&&!l.escape?(l.pattern.test(c)&&(o+=l.transform?l.transform(c):c,i++),a++):(l&&l.escape&&(i++,u=t[i]),r&&(o+=u),c===u&&a++,i++)}let s="";for(;i<t.length&&r;){let u=t[i];if(n[u]){s="";break}s+=u,i++}return o+s}function MR(e,t,r){return t=t.sort((n,i)=>n.length-i.length),function(n,i,a=!0){for(var o=0;o<t.length;){var s=t[o];o++;var u=t[o];if(!(u&&e(n,u,!0,r).length>s.length))return e(n,s,a,r)}return""}}function Kb(e,t,r=!0,n){return Array.isArray(t)?MR(Vb,t,n)(e,t,r,n):Vb(e,t,r,n)}function RR(e,t){let r=t.value;if((Array.isArray(r)||typeof r=="string")&&(r={mask:r,tokens:IR}),e.tagName.toLocaleUpperCase()!=="INPUT"){let i=e.getElementsByTagName("input");if(i.length!==1)throw new Error("v-mask directive requires 1 input, found "+i.length);e=i[0]}e.oninput=function(i){if(!i.isTrusted)return;let a=e.selectionEnd,o=e.value[a-1];for(e.value=Kb(e.value,r.mask,!0,r.tokens);a<e.value.length&&e.value.charAt(a-1)!==o;)a++;e===document.activeElement&&(e.setSelectionRange(a,a),setTimeout(function(){e.setSelectionRange(a,a)},0)),e.dispatchEvent(Hb("input"))};let n=Kb(e.value,r.mask,!0,r.tokens);n!==e.value&&(e.value=n,e.dispatchEvent(Hb("input")))}const Gb=(e,t,r)=>{t==="tel"&&e&&RR(e,{value:r||"+############################"})},LR={components:{Calendar:TR,Clock:PR},props:{modelValue:String,id:String,name:{type:String,default:"short-text"},mask:String,ariaDescribedBy:String,ariaActiveDescendant:String,inputClass:{type:[String,Array,Object],default:""},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},type:String,step:[String,Number],min:[String,Number],max:[String,Number],placeholder:String,autocomplete:String,state:{type:Boolean,default:null}},emits:["key:enter","key:backspace","key:escape","key:arrow-down","key:arrow-up","focus","blur","update:modelValue","input:click"],expose:["blur","select","focus"],computed:{hasIcon(){return["date","month","week","datetime-local","time"].includes(this.type)},icon(){return this.hasIcon?this.type==="time"?"clock":"calendar":"span"}},watch:{modelValue:{handler:function(e){this.$nextTick(()=>{this.$refs.input.value=e})},immediate:!0},mask(){Gb(this.$refs.input,this.type,this.mask)}},mounted(){Gb(this.$refs.input,this.type,this.mask)},methods:{select(){this.$refs.input.focus(),this.$refs.input.select()},focus(){this.$refs.input.focus()},blur(){this.$refs.input.blur()}}},jR=e=>(ua("data-v-718cca89"),e=e(),la(),e),UR=["id","type","name","placeholder","disabled","readonly","autocomplete","step","min","max","aria-activedescendant","aria-describedby"],zR=jR(()=>ne("span",{class:"short-text-border block absolute left-1/2 top-full w-0 border-b-2 border-solid transition-all duration-300"},null,-1));function qR(e,t,r,n,i,a){return V(),ae("div",{class:Ye(["short-text relative text-lg",{invalid:r.state===!1}])},[dr(e.$slots,"prepend",{},void 0,!0),ne("input",{id:r.id,ref:"input",class:Ye(["short-text-input relative resize-none block w-full overflow-auto m-0 p-0 border-b border-solid rounded-none outline-none shadow-none","placeholder:opacity-40 focus:placeholder:opacity-0 print:placeholder:opacity-0",{"no-value":!r.modelValue,"has-icon":a.hasIcon},r.inputClass]),type:r.type,name:r.name,placeholder:r.placeholder,disabled:r.disabled,readonly:r.readonly,autocomplete:r.autocomplete,step:r.step,min:r.min,max:r.max,"aria-activedescendant":r.ariaActiveDescendant,"aria-describedby":r.ariaDescribedBy,onInput:t[0]||(t[0]=o=>e.$emit("update:modelValue",o.target.value)),onFocus:t[1]||(t[1]=o=>e.$emit("focus")),onBlur:t[2]||(t[2]=o=>e.$emit("blur")),onKeydown:[t[3]||(t[3]=Yn(ur(o=>e.$emit("key:enter"),["prevent"]),["enter"])),t[4]||(t[4]=Yn(o=>e.$emit("key:backspace"),["backspace"])),t[5]||(t[5]=Yn(o=>e.$emit("key:escape"),["escape"])),t[6]||(t[6]=Yn(o=>e.$emit("key:arrow-up"),["arrow-up"])),t[7]||(t[7]=Yn(o=>e.$emit("key:arrow-down"),["arrow-down"]))],onClick:t[8]||(t[8]=o=>e.$emit("input:click"))},null,42,UR),dr(e.$slots,"append",{},void 0,!0),a.hasIcon?(V(),Ge(Cr(a.icon),{key:0,class:"short-text-icon opacity-60 hidden absolute right-0 top-1/2 h-5 w-5 -translate-y-1/2 p-px pointer-events-none"})):ct("",!0),zR],2)}var vh=we(LR,[["render",qR],["__scopeId","data-v-718cca89"]]);const HR={props:{feedback:String,feedbackId:String,inputId:String,label:String,state:Boolean},emits:["redraw"],watch:{state(){this.$emit("redraw")}}},VR={class:"relative mb-4"},KR=["for"],GR=["id"];function WR(e,t,r,n,i,a){return V(),ae("div",VR,[r.label?(V(),ae("label",{key:0,for:r.inputId,class:"block mb-2 break-words"},We(r.label),9,KR)):ct("",!0),dr(e.$slots,"default",{},void 0,!0),r.feedback?Fr((V(),ae("div",{key:1,id:r.feedbackId,class:"error-feedback w-full mt-1 text-[80%]"},We(r.feedback),9,GR)),[[$r,r.state===!1]]):ct("",!0)])}var Rn=we(HR,[["render",WR],["__scopeId","data-v-73eb49b7"]]);const YR={components:{ShortText:vh,ElementWrapper:Rn},props:{inputClass:String,feedback:String,inputId:String,label:String,name:String,min:[String,Number],max:[String,Number],placeholder:String,mask:String,state:Boolean,type:String,value:String,disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},emits:["redraw","focus","blur","update","key:enter"],computed:{feedbackId(){return"feedback-"+this.inputId}},watch:{state(){this.$emit("redraw")}},methods:{focus(){this.$refs.input.focus()}}};function ZR(e,t,r,n,i,a){const o=ge("short-text"),s=ge("element-wrapper");return V(),Ge(s,{label:r.label,"input-id":r.inputId,"feedback-id":a.feedbackId,feedback:r.feedback,state:r.state},{default:Qe(()=>[Ee(o,{id:r.inputId,ref:"input",name:r.name,type:r.type,"model-value":r.value,min:r.min,max:r.max,class:Ye(r.inputClass),"input-class":"mt-2 overflow-hidden h-6 leading-[1.3rem]",state:r.state,disabled:r.disabled,readonly:r.readonly,placeholder:r.placeholder,"aria-described-by":a.feedbackId,mask:r.mask,"onKey:enter":t[0]||(t[0]=u=>e.$emit("key:enter")),onFocus:t[1]||(t[1]=u=>e.$emit("focus")),onBlur:t[2]||(t[2]=u=>e.$emit("blur")),"onUpdate:modelValue":t[3]||(t[3]=u=>e.$emit("update",u))},null,8,["id","name","type","model-value","min","max","class","state","disabled","readonly","placeholder","aria-described-by","mask"])]),_:1},8,["label","input-id","feedback-id","feedback","state"])}var uo=we(YR,[["render",ZR]]);const JR={components:{Cell:pa,ElementInput:uo},props:{field:Object},emits:["focus","redraw","update","key:enter"],setup(e){const{field:t}=yt(e),{fieldElementId:r,value:n,state:i,visibleAddressLine1:a,placeholderAddressLine1:o,descriptionAddressLine1:s}=wt(t);return{fieldElementId:r,value:n,state:i,visibleAddressLine1:a,placeholderAddressLine1:o,descriptionAddressLine1:s}},computed:{valueAddressLine1(){return B(this.value,"line-1")},stateAddressLine1(){return B(this.state,"line-1")}},methods:{focus(){this.$refs.input.focus()}}};function XR(e,t,r,n,i,a){const o=ge("element-input"),s=ge("cell");return n.visibleAddressLine1?(V(),Ge(s,{key:0,cols:"12"},{default:Qe(()=>[Ee(o,{ref:"input","input-id":n.fieldElementId+"address-line-1",name:"address-line-1",type:"text",label:n.descriptionAddressLine1,value:a.valueAddressLine1,state:a.stateAddressLine1,placeholder:n.placeholderAddressLine1,feedback:e.$t("form.feedback.short-text"),onFocus:t[0]||(t[0]=u=>e.$emit("focus")),"onKey:enter":t[1]||(t[1]=u=>e.$emit("key:enter")),onRedraw:t[2]||(t[2]=u=>e.$emit("redraw")),onUpdate:t[3]||(t[3]=u=>e.$emit("update",u))},null,8,["input-id","label","value","state","placeholder","feedback"])]),_:1})):ct("",!0)}var QR=we(JR,[["render",XR]]);const eL={components:{Cell:pa,ElementInput:uo},props:{field:Object},emits:["focus","redraw","update","key:enter"],setup(e){const{field:t}=yt(e),{fieldElementId:r,value:n,state:i,visibleAddressLine2:a,placeholderAddressLine2:o,descriptionAddressLine2:s}=wt(t);return{fieldElementId:r,value:n,state:i,visibleAddressLine2:a,placeholderAddressLine2:o,descriptionAddressLine2:s}},computed:{valueAddressLine2(){return B(this.value,"line-2")}},methods:{focus(){this.$refs.input.focus()}}};function tL(e,t,r,n,i,a){const o=ge("element-input"),s=ge("cell");return n.visibleAddressLine2?(V(),Ge(s,{key:0,cols:"12"},{default:Qe(()=>[Ee(o,{ref:"input","input-id":n.fieldElementId+"address-line-2",name:"address-line-2",type:"text",label:n.descriptionAddressLine2,value:a.valueAddressLine2,state:!0,placeholder:n.placeholderAddressLine2,feedback:e.$t("form.feedback.short-text"),onFocus:t[0]||(t[0]=u=>e.$emit("focus")),"onKey:enter":t[1]||(t[1]=u=>e.$emit("key:enter")),onRedraw:t[2]||(t[2]=u=>e.$emit("redraw")),onUpdate:t[3]||(t[3]=u=>e.$emit("update",u))},null,8,["input-id","label","value","placeholder","feedback"])]),_:1})):ct("",!0)}var rL=we(eL,[["render",tL]]);const nL={components:{Cell:pa,ElementInput:uo},props:{field:Object},emits:["focus","redraw","update","key:enter"],setup(e){const{field:t}=yt(e),{fieldElementId:r,value:n,state:i,visibleCity:a,placeholderCity:o,descriptionCity:s}=wt(t);return{fieldElementId:r,value:n,state:i,visibleCity:a,placeholderCity:o,descriptionCity:s}},computed:{valueCity(){return B(this.value,"city")},stateCity(){return B(this.state,"city")}},methods:{focus(){this.$refs.input.focus()}}};function iL(e,t,r,n,i,a){const o=ge("element-input"),s=ge("cell");return n.visibleCity?(V(),Ge(s,{key:0,cols:"6"},{default:Qe(()=>[Ee(o,{ref:"input","input-id":n.fieldElementId+"city",name:"city",type:"text",label:n.descriptionCity,value:a.valueCity,state:a.stateCity,placeholder:n.placeholderCity,feedback:e.$t("form.feedback.short-text"),onFocus:t[0]||(t[0]=u=>e.$emit("focus")),"onKey:enter":t[1]||(t[1]=u=>e.$emit("key:enter")),onRedraw:t[2]||(t[2]=u=>e.$emit("redraw")),onUpdate:t[3]||(t[3]=u=>e.$emit("update",u))},null,8,["input-id","label","value","state","placeholder","feedback"])]),_:1})):ct("",!0)}var aL=we(nL,[["render",iL]]);const oL={components:{Cell:pa,ElementInput:uo},props:{field:Object},emits:["focus","redraw","update","key:enter"],setup(e){const{field:t}=yt(e),{fieldElementId:r,value:n,state:i,visibleState:a,placeholderState:o,descriptionState:s}=wt(t);return{fieldElementId:r,value:n,state:i,visibleState:a,placeholderState:o,descriptionState:s}},computed:{valueState(){return B(this.value,"state")},stateState(){return B(this.state,"state")}},methods:{focus(){this.$refs.input.focus()}}};function sL(e,t,r,n,i,a){const o=ge("element-input"),s=ge("cell");return n.visibleState?(V(),Ge(s,{key:0,cols:"6"},{default:Qe(()=>[Ee(o,{ref:"input","input-id":n.fieldElementId+"state",name:"state",type:"text",label:n.descriptionState,value:a.valueState,state:a.stateState,placeholder:n.placeholderState,feedback:e.$t("form.feedback.short-text"),onFocus:t[0]||(t[0]=u=>e.$emit("focus")),"onKey:enter":t[1]||(t[1]=u=>e.$emit("key:enter")),onRedraw:t[2]||(t[2]=u=>e.$emit("redraw")),onUpdate:t[3]||(t[3]=u=>e.$emit("update",u))},null,8,["input-id","label","value","state","placeholder","feedback"])]),_:1})):ct("",!0)}var uL=we(oL,[["render",sL]]);const lL={components:{Cell:pa,ElementInput:uo},props:{field:Object},emits:["focus","redraw","update","key:enter"],setup(e){const{field:t}=yt(e),{fieldElementId:r,value:n,state:i,visibleZIP:a,placeholderZIP:o,descriptionZip:s}=wt(t);return{fieldElementId:r,value:n,state:i,visibleZIP:a,placeholderZIP:o,descriptionZip:s}},computed:{valueZIP(){return B(this.value,"zip")},stateZIP(){return B(this.state,"zip")}},methods:{focus(){this.$refs.input.focus()}}};function cL(e,t,r,n,i,a){const o=ge("element-input"),s=ge("cell");return n.visibleZIP?(V(),Ge(s,{key:0,cols:"6"},{default:Qe(()=>[Ee(o,{ref:"input","input-id":n.fieldElementId+"zip",name:"zip",type:"text",label:n.descriptionZip,value:a.valueZIP,state:a.stateZIP,placeholder:n.placeholderZIP,feedback:e.$t("form.feedback.short-text"),onFocus:t[0]||(t[0]=u=>e.$emit("focus")),"onKey:enter":t[1]||(t[1]=u=>e.$emit("key:enter")),onRedraw:t[2]||(t[2]=u=>e.$emit("redraw")),onUpdate:t[3]||(t[3]=u=>e.$emit("update",u))},null,8,["input-id","label","value","state","placeholder","feedback"])]),_:1})):ct("",!0)}var fL=we(lL,[["render",cL]]);const dL={components:{Cell:pa,ElementInput:uo},props:{field:Object},emits:["focus","redraw","update","key:enter"],setup(e){const{field:t}=yt(e),{fieldElementId:r,value:n,state:i,visibleCountry:a,placeholderCountry:o,descriptionCountry:s}=wt(t);return{fieldElementId:r,value:n,state:i,visibleCountry:a,placeholderCountry:o,descriptionCountry:s}},computed:{valueCountry(){return B(this.value,"country")},stateCountry(){return B(this.state,"country")}},methods:{focus(){this.$refs.input.focus()}}};function pL(e,t,r,n,i,a){const o=ge("element-input"),s=ge("cell");return n.visibleCountry?(V(),Ge(s,{key:0,cols:"6"},{default:Qe(()=>[Ee(o,{ref:"input","input-id":n.fieldElementId+"country",name:"country",type:"text",label:n.descriptionCountry,value:a.valueCountry,state:a.stateCountry,placeholder:n.placeholderCountry,feedback:e.$t("form.feedback.short-text"),onFocus:t[0]||(t[0]=u=>e.$emit("focus")),"onKey:enter":t[1]||(t[1]=u=>e.$emit("key:enter")),onRedraw:t[2]||(t[2]=u=>e.$emit("redraw")),onUpdate:t[3]||(t[3]=u=>e.$emit("update",u))},null,8,["input-id","label","value","state","placeholder","feedback"])]),_:1})):ct("",!0)}var hL=we(dL,[["render",pL]]);const mL={components:{Grid:Yc,FieldLabel:hr,BlockAddressLine1:QR,BlockAddressLine2:rL,BlockAddressCity:aL,BlockAddressState:uL,BlockAddressZip:fL,BlockAddressCountry:hL},props:{field:Object,pos:Number},emits:["focus","focus:next","redraw","update"],setup(e,{emit:t}){const{field:r}=yt(e),n=ht(null),i=ht(null),a=ht(null),o=ht(null),s=ht(null),u=ht(null),{focus:l,focusNext:c}=Ti(t,Dr(e,"pos"),[n,i,a,o,s,u]),{value:f,shape:d}=wt(r);return{value:f,shape:d,ref0:n,ref1:i,ref2:a,ref3:o,ref4:s,ref5:u,focus:l,focusNext:c}},computed:{valueAddressLine1(){return B(this.value,"line-1")},valueAddressLine2(){return B(this.value,"line-2")},valueCity(){return B(this.value,"city")},valueState(){return B(this.value,"state")},valueZIP(){return B(this.value,"zip")},valueCountry(){return B(this.value,"country")},blocks(){switch(this.shape){case"b":return["line-1","line-2","zip","city","state","country"];case"c":return["country","state","city","zip","line-1","line-2"];case"d":return["country","state","zip","city","line-1","line-2"];case"a":default:return["line-1","line-2","city","state","zip","country"]}},components(){return this.blocks.map(e=>`block-address-${e}`)}},methods:{updateValue(e,t){const r={"line-1":this.valueAddressLine1,"line-2":this.valueAddressLine2,city:this.valueCity,state:this.valueState,zip:this.valueZIP,country:this.valueCountry};return r[e]=t,r},updateAddressLine1(e){this.$emit("update",this.updateValue("line-1",e))},updateAddressLine2(e){this.$emit("update",this.updateValue("line-2",e))},updateCity(e){this.$emit("update",this.updateValue("city",e))},updateState(e){this.$emit("update",this.updateValue("state",e))},updateZIP(e){this.$emit("update",this.updateValue("zip",e))},updateCountry(e){this.$emit("update",this.updateValue("country",e))}}},vL={class:"px-4 pb-8"};function gL(e,t,r,n,i,a){const o=ge("field-label"),s=ge("grid");return V(),ae("div",vL,[Ee(o,{field:r.field},null,8,["field"]),Ee(s,{"gap-v":"0","gap-h":"2"},{default:Qe(()=>[(V(!0),ae(vt,null,Gt(a.blocks,(u,l)=>(V(),Ge(Cr("block-address-"+u),{key:l,ref_for:!0,ref:"ref"+l,field:r.field,onFocus:t[0]||(t[0]=c=>e.$emit("focus")),"onKey:enter":c=>n.focusNext(l),onRedraw:t[1]||(t[1]=c=>e.$emit("redraw")),onUpdate:c=>e.$emit("update",a.updateValue(u,c))},null,40,["field","onKey:enter","onUpdate"]))),128))]),_:1})])}var yL=we(mL,[["render",gL]]);function H1(){return H1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},H1.apply(this,arguments)}var bL=function(){var t=!1,r=[],n=function(){if(!t){t=!0;for(var s=0,u=r.length;s<u;s++)r[s]()}},i=function(s){if(!t){r.push(s);return}s()},a={resolved:function(){return t},resolve:n,promise:{then:i}};return a},Wb=Object.prototype.hasOwnProperty;function wL(){var e=bL();return{notify:function(){e.resolve()},wait:function(){return e.promise},render:function(r,n,i){this.wait().then(function(){i(window.grecaptcha.render(r,n))})},reset:function(r){typeof r!="undefined"&&(this.assertLoaded(),this.wait().then(function(){return window.grecaptcha.reset(r)}))},execute:function(r){typeof r!="undefined"&&(this.assertLoaded(),this.wait().then(function(){return window.grecaptcha.execute(r)}))},checkRecaptchaLoad:function(){Wb.call(window,"grecaptcha")&&Wb.call(window.grecaptcha,"render")&&this.notify()},assertLoaded:function(){if(!e.resolved())throw new Error("ReCAPTCHA has not been loaded")}}}var Zl=wL();typeof window!="undefined"&&(window.vueRecaptchaApiLoaded=Zl.notify);var _L=Hc({name:"VueRecaptcha",props:{sitekey:{type:String,required:!0},theme:{type:String},badge:{type:String},type:{type:String},size:{type:String},tabindex:{type:String},loadRecaptchaScript:{type:Boolean,default:!0},recaptchaScriptId:{type:String,default:"__RECAPTCHA_SCRIPT"},recaptchaHost:{type:String,default:"www.google.com"},language:{type:String,default:""}},emits:["render","verify","expired","error"],setup:function(t,r){var n=r.slots,i=r.emit,a=ht(null),o=ht(null),s=function(f){i("verify",f)},u=function(){i("expired")},l=function(){i("error")};return Ks(function(){if(Zl.checkRecaptchaLoad(),t.loadRecaptchaScript&&!document.getElementById(t.recaptchaScriptId)){var c=document.createElement("script");c.id=t.recaptchaScriptId,c.src="https://"+t.recaptchaHost+"/recaptcha/api.js?onload=vueRecaptchaApiLoaded&render=explicit&hl="+t.language,c.async=!0,c.defer=!0,document.head.appendChild(c)}var f=H1({},t,{callback:s,"expired-callback":u,"error-callback":l}),d=a.value,p=n.default?d.children[0]:d;Zl.render(p,f,function(h){o.value=h,i("render",h)})}),{root:a,widgetId:o,reset:function(){Zl.reset(o.value)},execute:function(){Zl.execute(o.value)}}},render:function(){var t=this.$slots.default,r;return typeof t=="function"?r=t():r=t,Qa("div",{ref:"root"},r)}});const xL={components:{ElementWrapper:Rn,VueRecaptcha:_L},props:{field:Object,pos:Number},emits:["redraw","update"],setup(e){const{field:t}=yt(e),{state:r,align:n,alignCss:i}=wt(t);return{state:r,align:n,alignCss:i}},computed:{klass(){return["flex",{"justify-center":!this.align||this.align==="center","justify-start":this.align==="left","justify-end":this.align==="right"}]},key(){return"6LeueXcUAAAAAL-7JKR9BUD7CFJAki77Q0yIS4Eg"}},watch:{state(){this.$emit("redraw")}},mounted(){const e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("script");t.setAttribute("src","https://www.google.com/recaptcha/api.js?onload=vueRecaptchaApiLoaded&render=explicit"),t.async=!0,t.defer=!0,e.appendChild(t)},methods:{verify(e){this.$emit("redraw"),this.$emit("update",e)},render(){this.$emit("redraw")},expired(){this.$emit("redraw"),this.$emit("update","")}}},EL={class:"w-full relative"};function DL(e,t,r,n,i,a){const o=ge("vue-recaptcha"),s=ge("element-wrapper");return V(),ae("div",{class:Ye(["px-4 pb-8",n.alignCss])},[ne("div",EL,[Ee(s,{feedback:e.$t("form.feedback.captcha"),state:n.state},{default:Qe(()=>[ne("div",{class:Ye(a.klass)},[Ee(o,{sitekey:a.key,"load-recaptcha-script":!1,onVerify:a.verify,onExpired:a.expired,onRender:a.render},null,8,["sitekey","onVerify","onExpired","onRender"])],2)]),_:1},8,["feedback","state"])])],2)}var SL=we(xL,[["render",DL]]);const CL={components:{FieldLabel:hr,ElementInput:uo},props:{field:Object,pos:Number},emits:["focus","focus:next","redraw","update"],setup(e,{emit:t}){const r=ht(null),{focus:n,focusNext:i}=Ti(t,Dr(e,"pos"),[r]),a=Dr(e,"field"),{value:o,fieldElementId:s,state:u,description:l,visibleDescription:c,placeholder:f,hasMinDate:d,hasMaxDate:p,minDate:h,maxDate:b}=wt(a),g=tt(()=>c.value?l.value:null);return{date:r,focus:n,focusNext:i,value:o,fieldElementId:s,state:u,description:g,visibleDescription:c,placeholder:f,hasMinDate:d,hasMaxDate:p,minDate:h,maxDate:b}},methods:{transformDate(e){if(e!==null&&e.includes("#")){const t=e.split("#");return Qd().add(Number(t[0]),t[1]).format("YYYY-MM-DD")}return e!==null?e:Qd().format("YYYY-MM-DD")}}},AL={class:"px-4 pb-8"},NL={class:"w-full relative"};function TL(e,t,r,n,i,a){const o=ge("field-label"),s=ge("element-input");return V(),ae("div",AL,[Ee(o,{field:r.field},null,8,["field"]),ne("div",NL,[Ee(s,{ref:"date","input-id":n.fieldElementId,name:"date",type:"date",label:n.description,value:n.value,state:n.state,min:n.hasMinDate?a.transformDate(n.minDate):null,max:n.hasMaxDate?a.transformDate(n.maxDate):null,placeholder:n.placeholder,feedback:e.$t("form.feedback.date"),onFocus:t[0]||(t[0]=u=>e.$emit("focus")),"onKey:enter":t[1]||(t[1]=u=>n.focusNext()),onRedraw:t[2]||(t[2]=u=>e.$emit("redraw")),onUpdate:t[3]||(t[3]=u=>e.$emit("update",u))},null,8,["input-id","label","value","state","min","max","placeholder","feedback"])])])}var kL=we(CL,[["render",TL]]);const OL={components:{ElementInput:uo},props:{field:Object,pos:Number,name:String,type:String,disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},emits:["focus","redraw","key:enter","update"],setup(e){const{field:t}=yt(e),{value:r,fieldElementId:n,state:i,description:a,visibleDescription:o,placeholder:s,hasLimits:u,mask:l,min:c,max:f,hasValidation:d,validationError:p}=wt(t),h=tt(()=>o.value?a.value:null);return{value:r,fieldElementId:n,state:i,description:h,visibleDescription:o,placeholder:s,hasLimits:u,mask:l,min:c,max:f,hasValidation:d,validationError:p}},computed:{feedback(){return this.hasValidation&&this.validationError?this.validationError:this.$t("form.feedback."+this.field.type,{context:this.hasLimits?"limits":"",min:this.min,max:this.max})}},methods:{focus(){this.$refs.input.focus()}}};function FL(e,t,r,n,i,a){const o=ge("element-input");return V(),Ge(o,{ref:"input","input-id":n.fieldElementId,name:r.name,type:r.type,label:n.description,value:n.value,state:n.state,min:n.min,max:n.max,placeholder:n.placeholder,disabled:r.disabled,readonly:r.readonly,mask:n.mask,feedback:a.feedback,onFocus:t[0]||(t[0]=s=>e.$emit("focus")),"onKey:enter":t[1]||(t[1]=s=>e.$emit("key:enter")),onRedraw:t[2]||(t[2]=s=>e.$emit("redraw")),onUpdate:t[3]||(t[3]=s=>e.$emit("update",s))},null,8,["input-id","name","type","label","value","state","min","max","placeholder","disabled","readonly","mask","feedback"])}var gl=we(OL,[["render",FL]]);const $L={components:{FieldLabel:hr,FieldInput:gl},props:{field:Object,pos:Number},emits:["focus","focus:next","redraw","update"],setup(e,{emit:t}){const r=ht(null),{focus:n,focusNext:i}=Ti(t,Dr(e,"pos"),[r]);return{email:r,focus:n,focusNext:i}}},BL={class:"px-4 pb-8"},PL={class:"w-full relative"};function IL(e,t,r,n,i,a){const o=ge("field-label"),s=ge("field-input");return V(),ae("div",BL,[Ee(o,{field:r.field},null,8,["field"]),ne("div",PL,[Ee(s,{ref:"email",name:"email",type:"email",field:r.field,onFocus:t[0]||(t[0]=u=>e.$emit("focus")),"onKey:enter":t[1]||(t[1]=u=>n.focusNext()),onRedraw:t[2]||(t[2]=u=>e.$emit("redraw")),onUpdate:t[3]||(t[3]=u=>e.$emit("update",u))},null,8,["field"])])])}var ML=we($L,[["render",IL]]);const RL={},LL={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 59 54"},jL=ne("path",{xmlns:"http://www.w3.org/2000/svg",d:"M47.46 14.104a16.87 16.87 0 0 0-5.269-9.671A16.846 16.846 0 0 0 30.791 0c-3.263 0-6.443.937-9.167 2.703a16.838 16.838 0 0 0-5.484 5.778 9.672 9.672 0 0 0-1.776-.168c-5.1 0-9.252 4.157-9.252 9.263 0 .66.072 1.297.192 1.922A12.89 12.89 0 0 0 0 29.889c0 3.328 1.236 6.56 3.492 9.119 2.316 2.618 5.376 4.168 8.64 4.348h10.416c.9 0 1.62-.72 1.62-1.621s-.72-1.622-1.62-1.622H12.276c-4.908-.3-9.036-4.974-9.036-10.236a9.63 9.63 0 0 1 4.764-8.289 1.636 1.636 0 0 0 .708-1.97 5.89 5.89 0 0 1-.36-2.066c0-3.316 2.7-6.02 6.012-6.02a5.91 5.91 0 0 1 2.052.361 1.627 1.627 0 0 0 2.028-.829 13.709 13.709 0 0 1 12.36-7.844c7.08 0 12.923 5.31 13.595 12.35a1.62 1.62 0 0 0 1.344 1.441c5.34.913 9.372 5.85 9.372 11.485 0 5.97-4.692 11.16-10.476 11.605h-8.844c-.9 0-1.62.72-1.62 1.622 0 .9.72 1.621 1.62 1.621h9.024c3.66-.264 7.08-1.946 9.624-4.757a14.97 14.97 0 0 0 3.912-10.091c-.012-6.74-4.608-12.734-10.896-14.392Z"},null,-1),UL=ne("path",{xmlns:"http://www.w3.org/2000/svg",d:"M38.903 31.427a1.618 1.618 0 0 0 0-2.294l-8.58-8.59c-.3-.3-.72-.48-1.14-.48-.42 0-.84.168-1.14.48l-8.58 8.59a1.618 1.618 0 0 0 0 2.294c.313.313.733.48 1.14.48a1.58 1.58 0 0 0 1.14-.48l5.82-5.826v26.778c0 .9.72 1.621 1.62 1.621.9 0 1.62-.72 1.62-1.621V25.6l5.82 5.826a1.6 1.6 0 0 0 2.28 0Z"},null,-1),zL=[jL,UL];function qL(e,t){return V(),ae("svg",LL,zL)}var HL=we(RL,[["render",qL]]),g6={},tg={};Object.defineProperty(tg,"__esModule",{value:!0});var VL={radix:1e3,unit:["b","kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"]},KL={radix:1024,unit:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"]},GL={radix:1024,unit:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"]};tg.SPECS={si:VL,iec:KL,jedec:GL};Object.defineProperty(g6,"__esModule",{value:!0});var Yb=tg;function WL(e,t,r){t===void 0&&(t=1),e=Math.abs(e);for(var n=Yb.SPECS[r]||Yb.SPECS.jedec,i=n.radix,a=n.unit,o=0;e>=i;)e/=i,++o;return e.toFixed(t)+" "+a[o]}var y6=g6.default=WL;const Hn={nl:{dnd:"Sleep je files naar deze plek",or:"of",browse:"Zoeken naar bestanden...",sl:"Bestandsgrootte limiet:"},es:{dnd:"Arrastre y suelte sus archivos aqu\xED",or:"o",browse:"Busca archivos",sl:"L\xEDmite de tama\xF1o:"},fr:{dnd:"Glissez et posez vos fichiers ici",or:"ou",browse:"Naviguer pour trouver des fichiers",sl:"Limite de taille:"},it:{dnd:"Trascina e rilascia i tuoi file qui",or:"o",browse:"Sfoglia i file",sl:"Limite di dimensione:"},ru:{dnd:"\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0441\u044E\u0434\u0430 \u0432\u0430\u0448\u0438 \u0444\u0430\u0439\u043B\u044B",or:"\u0438\u043B\u0438",browse:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0441 \u043A\u043E\u043C\u043F\u044C\u044E\u0442\u0435\u0440\u0430",sl:"\u041C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u044B\u0439 \u0440\u0430\u0437\u043C\u0435\u0440 \u0444\u0430\u0439\u043B\u0430:"},de:{dnd:"Ziehen Sie Ihre Dateien per Drag & Drop hierher",or:"oder",browse:"Nach Dateien suchen",sl:"Gr\xF6\xDFenlimit:"},ja:{dnd:"\u3053\u3053\u306B\u30D5\u30A1\u30A4\u30EB\u3092\u30C9\u30E9\u30C3\u30B0\u30A2\u30F3\u30C9\u30C9\u30ED\u30C3\u30D7\u3057\u307E\u3059",or:"\u307E\u305F\u306F",browse:"\u30D5\u30A1\u30A4\u30EB\u3092\u95B2\u89A7\u3059\u308B",sl:"\u30B5\u30A4\u30BA\u5236\u9650\uFF1A"},da:{dnd:"Tr\xE6k og slip dine filer her",or:"eller",browse:"Find en fil p\xE5 din computer",sl:"Maks filst\xF8rrelse:"},ms:{dnd:"Seret dan lepaskan fail anda di sini",or:"atau",browse:"Semak fail",sl:"Saiz limitasi:"},id:{dnd:"Tarik dan unggah file Anda di sini",or:"atau",browse:"Jelajahi dokumen",sl:"Batas Ukuran:"},tr:{dnd:"Dosyalar\u0131n\u0131z\u0131 buraya \xE7ekip, b\u0131rak\u0131n",or:"veya",browse:"Dosyalar\u0131n\u0131z\u0131 taray\u0131n",sl:"B\xFCy\xFCkl\xFCk limiti:"},pt:{dnd:"Arraste e solte seus arquivos aqui",or:"ou",browse:"Pesquisar arquivos",sl:"Limite de tamanho:"},lt:{dnd:"Nutempkite rinkmen\u0105 \u010Dia",or:"arba",browse:"Pasirinkite j\u0105",sl:"Galimas dydis iki:"},ro:{dnd:"Trage \u0219i plaseaz\u0103 fi\u0219ierele tale aici",or:"sau",browse:"Caut\u0103 fi\u0219iere",sl:"Limit\u0103 de dimensiune:"},sl:{dnd:"Povlecite in spustite datoteke tukaj",or:"ali",browse:"Poi\u0161\u010Dite datoteke",sl:"Omejitev velikosti:"},ar:{dnd:"\u0628\u0625\u0645\u0643\u0627\u0646\u0643 \u0633\u062D\u0628 \u0648\u0625\u0641\u0644\u0627\u062A \u0627\u0644\u0645\u0644\u0641\u0627\u062A \u0647\u0646\u0627",or:"\u0623\u0648",browse:"\u062A\u0635\u0641\u062D \u0627\u0644\u0645\u0644\u0641\u0627\u062A",sl:"\u0627\u0644\u062D\u062C\u0645 \u0627\u0644\u0645\u0633\u0645\u0648\u062D:"},af:{dnd:"Sleep jou l\xEAers hierheen",or:"of",browse:"Soek vir l\xEAers",sl:"Grootte limiet:"},cs:{dnd:"Sem p\u0159et\xE1hn\u011Bte soubory",or:"nebo",browse:"Vyhledat soubory",sl:"Maxim\xE1ln\xED velikost:"},hu:{dnd:"H\xFAzd ide a csatolni k\xEDv\xE1nt \xE1llom\xE1nyt",or:"vagy",browse:"Tall\xF3z \xE1llom\xE1ny ut\xE1n",sl:"M\xE9retkorl\xE1toz\xE1s:"},th:{dnd:"\u0E27\u0E32\u0E07\u0E44\u0E1F\u0E25\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E17\u0E35\u0E48\u0E19\u0E35\u0E48",or:"\u0E2B\u0E23\u0E37\u0E2D",browse:"\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E1F\u0E25\u0E4C",sl:"\u0E02\u0E19\u0E32\u0E14\u0E44\u0E1F\u0E25\u0E4C\u0E2A\u0E39\u0E07\u0E2A\u0E38\u0E14:"},he:{dnd:"\u05E0\u05D9\u05EA\u05DF \u05DC\u05D2\u05E8\u05D5\u05E8 \u05E7\u05D1\u05E6\u05D9\u05DD \u05DB\u05D0\u05DF",or:"\u05D0\u05D5",browse:"\u05DC\u05D7\u05E4\u05E9 \u05E7\u05D1\u05E6\u05D9\u05DD",sl:"\u05D2\u05D5\u05D3\u05DC \u05DE\u05E7\u05E1\u05D9\u05DE\u05DC\u05D9:"},en:{dnd:"Drag and drop your files here",or:"or",browse:"Browse for files",sl:"Size limit:"}},YL={props:{name:String,multiple:{type:Boolean,default:!0},limit:{type:Number,default:10},accept:String,lang:{type:String,default:"en"}},emits:["add:file"],computed:{lblDnd(){return this.lang in Hn?Hn[this.lang].dnd:Hn.en.dnd},lblOr(){return this.lang in Hn?Hn[this.lang].or:Hn.en.or},lblBrowseFiles(){return this.lang in Hn?Hn[this.lang].browse:Hn.en.browse},lblSizeLimit(){return this.lang in Hn?Hn[this.lang].sl:Hn.en.sl}},methods:{add(e){this.$emit("add:file",e),this.$refs.input&&(this.$refs.input.value=null)},filesize(e){const t=+e;if(!Number.isNaN(t))return y6(t)}}},b6=e=>(ua("data-v-1b4a740f"),e=e(),la(),e),ZL={class:"opacity-80 mb-1.5"},JL={class:"opacity-60 mt-0 mb-1"},XL=b6(()=>ne("span",{class:"opacity-80"},"\u2014\u2014",-1)),QL=b6(()=>ne("span",{class:"opacity-80"},"\u2014\u2014",-1)),ej=["id","name","accept","multiple"],tj=["for"],rj={class:"text-xs opacity-50 mb-1"};function nj(e,t,r,n,i,a){return V(),ae("form",null,[ne("p",ZL,We(a.lblDnd),1),ne("p",JL,[XL,Qn(" "+We(a.lblOr)+" ",1),QL]),ne("input",{id:r.name,ref:"input",class:"w-full h-full opacity-0 overflow-hidden absolute top-0 left-0 z-0",type:"file",name:r.name,accept:r.accept,multiple:r.multiple,onChange:t[0]||(t[0]=(...o)=>a.add&&a.add(...o))},null,40,ej),ne("label",{class:"label-browse cursor-pointer relative opacity-80 hover:underline",for:r.name},We(a.lblBrowseFiles),9,tj),ne("p",rj,[Qn(We(a.lblSizeLimit)+" ",1),ne("span",null,We(a.filesize(r.limit)),1)])])}var ij=we(YL,[["render",nj],["__scopeId","data-v-1b4a740f"]]);const aj={},oj={width:"13",height:"11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},sj=ne("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.001 9.613a1.454 1.454 0 0 0 1.029.414 1.474 1.474 0 0 0 1.026-.421l.015-.015 5.968-6.565a1.423 1.423 0 0 0 .41-.993 1.402 1.402 0 0 0-.432-1.014L4.001 9.613Zm8.016-8.594-.593-.576a1.463 1.463 0 0 0-1.025-.416 1.475 1.475 0 0 0-1.024.416l-.02.02-4.372 4.926-1.91-1.857-.002-.001a1.454 1.454 0 0 0-1.023-.414 1.475 1.475 0 0 0-1.024.415l-.592.576a1.403 1.403 0 0 0 0 2.028l3.57 3.477 8.015-8.594Z",fill:"#3EE0CD"},null,-1),uj=[sj];function lj(e,t){return V(),ae("svg",oj,uj)}var cj=we(aj,[["render",lj]]);const fj={},dj={width:"10",height:"11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pj=ne("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.56 1.266a1.5 1.5 0 0 1 0 2.12l-2.439 2.44 2.44 2.44a1.5 1.5 0 0 1-2.122 2.12L5 7.948l-2.44 2.44A1.5 1.5 0 1 1 .44 8.265l2.439-2.439-2.44-2.44a1.5 1.5 0 1 1 2.122-2.12L5 3.705l2.44-2.44a1.5 1.5 0 0 1 2.12 0Z",fill:"#FFA3A8"},null,-1),hj=[pj];function mj(e,t){return V(),ae("svg",dj,hj)}var vj=we(fj,[["render",mj]]);const vu={nl:{fd:"File verwijderen",fb:"Oeps, deze file is te groot!"},es:{fd:"Remover el archivo",fb:"Uh-oh, este archivo es demasiado grande"},fr:{fd:"Supprimer le fichier",fb:"Uh-oh, ce dossier est trop lourd"},it:{fd:"Rimuovi il file",fb:"Oh oh, questo file \xE8 troppo grande"},ru:{fd:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B",fb:"\u0412\u0430\u0448 \u0444\u0430\u0439\u043B \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0439!"},de:{fd:"Datei entfernen",fb:"Uh-oh, diese Datei ist zu gro\xDF"},ja:{fd:"\u30D5\u30A1\u30A4\u30EB\u3092\u524A\u9664",fb:"\u3053\u306E\u30D5\u30A1\u30A4\u30EB\u306F\u5927\u304D\u3059\u304E\u307E\u3059"},da:{fd:"Fjern fil",fb:"Hov, filen ser ud til at v\xE6re for stor"},ms:{fd:"Buang fail",fb:"Uh-oh, fail ini terlalu besar"},id:{fd:"Hapus dokumen",fb:"Uh-oh, dokumen ini terlalu besar"},tr:{fd:"Dosyay\u0131 kald\u0131r",fb:"Oh-oh, bu dosya \xE7ok b\xFCy\xFCk"},pt:{fd:"Remover arquivo",fb:"Ah n\xE3o, esse arquivo \xE9 muito grande"},lt:{fd:"Pa\u0161alinti rinkmen\u0105",fb:"Ai! Oi! Ui! \u0160i rinkmena per didel\u0117"},ro:{fd:"\u0218terge fi\u0219ierul",fb:"Uh-oh, acest fi\u0219ier e prea mare"},sl:{fd:"Odstranite datoteko",fb:"Ups, ta datoteka je prevelika"},ar:{fd:"\u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u0645\u0644\u0641",fb:"\u0647\u0646\u0627\u0643 \u062E\u0637\u0623, \u0647\u0630\u0627 \u0627\u0644\u0645\u0644\u0641 \u0643\u0628\u064A\u0631 \u062C\u062F\u064B\u0627"},af:{fd:"Verwyder l\xEAer",fb:"Uh-oh, hierdie l\xEAer is te groot"},cs:{fd:"Odstranit soubor",fb:"Ups, tento soubor je p\u0159\xEDli\u0161 velk\xFD"},hu:{fd:"T\xE1vol\xEDtsd el az \xE1llom\xE1nyt",fb:"Juj, ez az \xE1llom\xE1ny t\xFAl nagy"},th:{fd:"\u0E25\u0E1A\u0E44\u0E1F\u0E25\u0E4C",fb:"\u0E02\u0E2D\u0E2D\u0E20\u0E31\u0E22 \u0E44\u0E1F\u0E25\u0E4C\u0E19\u0E35\u0E49\u0E21\u0E35\u0E02\u0E19\u0E32\u0E14\u0E43\u0E2B\u0E0D\u0E48\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B"},he:{fd:"\u05DC\u05DE\u05D7\u05D5\u05E7 \u05E7\u05D5\u05D1\u05E5",fb:"\u05D4\u05E7\u05D5\u05D1\u05E5 \u05D2\u05D3\u05D5\u05DC \u05DE\u05D9\u05D3\u05D9"},en:{fd:"Remove file",fb:"Uh-oh, this file is too big"}},gj={components:{ShapeYes:cj,ShapeNo:vj},props:{value:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},limit:{type:Number,default:10},lang:{type:String,default:"en"}},emits:["remove:file"],computed:{files(){return this.multiple?this.value:this.value.slice(-1)},lblFileDelete(){return this.lang in vu?vu[this.lang].fd:vu.en.fd},lblFeedback(){return this.lang in vu?vu[this.lang].fb:vu.en.fb}},methods:{filesize(e){const t=+e;if(!Number.isNaN(t))return y6(t)}}},yj={class:"file-list mx-auto mb-0 mt-8 overflow-x-hidden overflow-y-auto"},bj={class:"p-0"},wj={class:"flex justify-between items-center"},_j={class:"text-sm pl-3 pr-1 opacity-80 break-words"},xj={class:"text-xs px-1 opacity-40"},Ej=["onClick"],Dj={key:0,class:"invalid-feedback absolute block text-xs left-6 bottom-2"};function Sj(e,t,r,n,i,a){const o=ge("shape-no"),s=ge("shape-yes");return Fr((V(),ae("div",yj,[ne("ul",bj,[(V(!0),ae(vt,null,Gt(a.files,(u,l)=>(V(),ae("li",{key:l,class:"pb-5 relative flex justify-between"},[ne("span",wj,[u.size>r.limit?(V(),Ge(o,{key:0})):(V(),Ge(s,{key:1})),ne("span",_j,We(u.name),1),ne("span",xj,We(a.filesize(u.size)),1)]),ne("a",{class:"action select-none cursor-pointer text-sm px-1 opacity-50 hover:opacity-100 hover:no-underline",onClick:c=>e.$emit("remove:file",l)},We(a.lblFileDelete),9,Ej),u.size>r.limit?(V(),ae("span",Dj,We(a.lblFeedback),1)):ct("",!0)]))),128))])],512)),[[$r,r.value.length>0]])}var Cj=we(gj,[["render",Sj],["__scopeId","data-v-22f08060"]]);const Aj={components:{Cloud:HL,FileForm:ij,FileList:Cj},props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:"field-file"},state:{type:Boolean,default:null},multiple:{type:Boolean,default:!0},limit:{type:Number,default:10},accept:String,lang:{type:String,default:"en"}},emits:["update:modelValue","redraw"],data(){return{dragging:!1}},methods:{drop(e){this.dragging=!1,this.add(e.dataTransfer.files)},add(e){const t=i=>`${i.name}${i.size}${i.lastModified}`,r=this.multiple?this.modelValue:[],n=r.map(t);for(let i=0,a=e.length;i<a;i++)n.includes(t(e[i]))||r.push(e[i]);this.$emit("update:modelValue",r),this.$emit("redraw")},input(e){this.add(e.target.files)},remove(e){let t=this.modelValue;t.splice(e,1),this.$emit("update:modelValue",t),this.$emit("redraw")}}};function Nj(e,t,r,n,i,a){const o=ge("cloud"),s=ge("file-form"),u=ge("file-list");return V(),ae("div",null,[ne("div",{class:Ye(["wrapper border border-dashed rounded-lg text-lg mx-auto mb-0 mt-6 pb-6 relative text-center",{dragging:i.dragging,invalid:r.state===!1}]),onDrag:t[0]||(t[0]=ur(()=>{},["prevent","stop"])),onDragstart:t[1]||(t[1]=ur(()=>{},["prevent","stop"])),onDrop:t[2]||(t[2]=ur((...l)=>a.drop&&a.drop(...l),["prevent","stop"])),onDragend:t[3]||(t[3]=ur(l=>i.dragging=!1,["prevent","stop"])),onDragenter:t[4]||(t[4]=ur(l=>i.dragging=!0,["prevent","stop"])),onDragleave:t[5]||(t[5]=ur(l=>i.dragging=!1,["prevent","stop"])),onDragover:t[6]||(t[6]=ur(l=>i.dragging=!0,["prevent","stop"]))},[Ee(o,{class:"icon w-14 h-14 mt-6 mx-auto mb-2 transition-colors"}),Ee(s,{ref:"form",lang:r.lang,accept:r.accept,limit:r.limit,multiple:r.multiple,name:r.name,"onAdd:file":a.input},null,8,["lang","accept","limit","multiple","name","onAdd:file"])],34),Ee(u,{lang:r.lang,limit:r.limit,multiple:r.multiple,value:r.modelValue,"onRemove:file":a.remove},null,8,["lang","limit","multiple","value","onRemove:file"])])}var Tj=we(Aj,[["render",Nj],["__scopeId","data-v-00684cab"]]);const kj={components:{FieldLabel:hr,FieldFile:Tj},props:{field:Object,pos:Number},emits:["redraw","update"],setup(e){const{field:t}=yt(e),{value:r,state:n,fieldElementId:i,description:a,visibleDescription:o,multiple:s,format:u,limit:l}=wt(t),c=tt(()=>o.value?a.value:null);return{value:r,state:n,fieldElementId:i,description:c,multiple:s,format:u,limit:l}},computed:{...bt({lang:"page/language"})}},Oj={class:"px-4 pb-8"},Fj={class:"w-full relative"},$j={class:"relative mb-4"},Bj=["for"];function Pj(e,t,r,n,i,a){const o=ge("field-label"),s=ge("field-file");return V(),ae("div",Oj,[Ee(o,{field:r.field},null,8,["field"]),ne("div",Fj,[ne("div",$j,[n.description?(V(),ae("label",{key:0,for:n.fieldElementId,class:"block mb-2 break-words"},We(n.description),9,Bj)):ct("",!0),Fr(ne("div",{class:"error-feedback w-full mt-1 text-[80%]"},We(e.$t("form.feedback.file")),513),[[$r,n.state===!1]]),Ee(s,{name:n.fieldElementId,"model-value":n.value,state:n.state,limit:n.limit,multiple:n.multiple,accept:n.format,lang:e.lang,"onUpdate:modelValue":t[0]||(t[0]=u=>e.$emit("update",u)),onRedraw:t[1]||(t[1]=u=>e.$emit("redraw"))},null,8,["name","model-value","state","limit","multiple","accept","lang"])])])])}var Ij=we(kj,[["render",Pj],["__scopeId","data-v-269c43f2"]]);const Mj={components:{Grid:Yc,Cell:pa,FieldLabel:hr,ElementInput:uo},props:{field:Object,pos:Number},emits:["focus","focus:next","redraw","update"],setup(e,{emit:t}){const{field:r}=yt(e),n=ht(null),i=ht(null),{focus:a,focusNext:o}=Ti(t,Dr(e,"pos"),[n,i]),{fieldElementId:s,value:u,state:l,placeholderFirstName:c,placeholderLastName:f,firstName:d,lastName:p}=wt(r);return{fieldElementId:s,value:u,state:l,placeholderFirstName:c,placeholderLastName:f,firstName:d,lastName:p,refFirstName:n,refLastName:i,focus:a,focusNext:o}},computed:{stateFirstName(){return B(this.state,"first-name")},stateLastName(){return B(this.state,"last-name")},valueFirstName(){return B(this.value,"first-name")},valueLastName(){return B(this.value,"last-name")}},methods:{updateFirstName(e){this.$emit("update",{"first-name":e,"last-name":this.valueLastName})},updateLastName(e){this.$emit("update",{"first-name":this.valueFirstName,"last-name":e})}}},Rj={class:"px-4 pb-8"};function Lj(e,t,r,n,i,a){const o=ge("field-label"),s=ge("element-input"),u=ge("cell"),l=ge("grid");return V(),ae("div",Rj,[Ee(o,{field:r.field},null,8,["field"]),Ee(l,{"gap-v":"0","gap-h":"2"},{default:Qe(()=>[Ee(u,{cols:"6"},{default:Qe(()=>[Ee(s,{ref:"refFirstName","input-id":n.fieldElementId+"first-name",name:"first-name",type:"text",label:n.firstName,value:a.valueFirstName,state:a.stateFirstName,placeholder:n.placeholderFirstName,feedback:e.$t("form.feedback.short-text"),"onKey:enter":t[0]||(t[0]=c=>n.focusNext(0)),onFocus:t[1]||(t[1]=c=>e.$emit("focus")),onRedraw:t[2]||(t[2]=c=>e.$emit("redraw")),onUpdate:a.updateFirstName},null,8,["input-id","label","value","state","placeholder","feedback","onUpdate"])]),_:1}),Ee(u,{cols:"6"},{default:Qe(()=>[Ee(s,{ref:"refLastName","input-id":n.fieldElementId+"last-name",name:"last-name",type:"text",label:n.lastName,value:a.valueLastName,state:a.stateLastName,placeholder:n.placeholderLastName,feedback:e.$t("form.feedback.short-text"),"onKey:enter":t[3]||(t[3]=c=>n.focusNext(1)),onFocus:t[4]||(t[4]=c=>e.$emit("focus")),onRedraw:t[5]||(t[5]=c=>e.$emit("redraw")),onUpdate:a.updateLastName},null,8,["input-id","label","value","state","placeholder","feedback","onUpdate"])]),_:1})]),_:1})])}var jj=we(Mj,[["render",Lj]]),Ar={},rg={},ng={},Zc={},fn={};Object.defineProperty(fn,"__esModule",{value:!0});var Uj=`
`;fn.NewLine=Uj;var V1;(function(e){e.Ordered="ordered",e.Bullet="bullet",e.Checked="checked",e.Unchecked="unchecked"})(V1||(V1={}));fn.ListType=V1;var K1;(function(e){e.Sub="sub",e.Super="super"})(K1||(K1={}));fn.ScriptType=K1;var G1;(function(e){e.Rtl="rtl"})(G1||(G1={}));fn.DirectionType=G1;var W1;(function(e){e.Left="left",e.Center="center",e.Right="right",e.Justify="justify"})(W1||(W1={}));fn.AlignType=W1;var Y1;(function(e){e.Image="image",e.Video="video",e.Formula="formula",e.Text="text"})(Y1||(Y1={}));fn.DataType=Y1;var Z1;(function(e){e.Block="block",e.InlineGroup="inline-group",e.List="list",e.Video="video",e.Table="table"})(Z1||(Z1={}));fn.GroupType=Z1;var yl={};Object.defineProperty(yl,"__esModule",{value:!0});var zj=function(){function e(t,r){this.type=t,this.value=r}return e}();yl.InsertDataQuill=zj;var qj=function(){function e(t,r){this.type=t,this.value=r}return e}();yl.InsertDataCustom=qj;var J1={exports:{}};(function(e,t){var r=200,n="__lodash_hash_undefined__",i=1,a=2,o=9007199254740991,s="[object Arguments]",u="[object Array]",l="[object AsyncFunction]",c="[object Boolean]",f="[object Date]",d="[object Error]",p="[object Function]",h="[object GeneratorFunction]",b="[object Map]",g="[object Number]",v="[object Null]",S="[object Object]",w="[object Promise]",D="[object Proxy]",_="[object RegExp]",N="[object Set]",$="[object String]",k="[object Symbol]",K="[object Undefined]",G="[object WeakMap]",j="[object ArrayBuffer]",q="[object DataView]",re="[object Float32Array]",M="[object Float64Array]",U="[object Int8Array]",x="[object Int16Array]",I="[object Int32Array]",ee="[object Uint8Array]",oe="[object Uint8ClampedArray]",ce="[object Uint16Array]",$e="[object Uint32Array]",me=/[\\^$.*+?()[\]{}|]/g,_e=/^\[object .+?Constructor\]$/,Ue=/^(?:0|[1-9]\d*)$/,te={};te[re]=te[M]=te[U]=te[x]=te[I]=te[ee]=te[oe]=te[ce]=te[$e]=!0,te[s]=te[u]=te[j]=te[c]=te[q]=te[f]=te[d]=te[p]=te[b]=te[g]=te[S]=te[_]=te[N]=te[$]=te[G]=!1;var Te=typeof lt=="object"&&lt&&lt.Object===Object&&lt,de=typeof self=="object"&&self&&self.Object===Object&&self,De=Te||de||Function("return this")(),Ne=t&&!t.nodeType&&t,je=Ne&&!0&&e&&!e.nodeType&&e,Pe=je&&je.exports===Ne,ze=Pe&&Te.process,R=function(){try{return ze&&ze.binding&&ze.binding("util")}catch{}}(),J=R&&R.isTypedArray;function he(y,F){for(var Z=-1,Ae=y==null?0:y.length,pt=0,rt=[];++Z<Ae;){var Et=y[Z];F(Et,Z,y)&&(rt[pt++]=Et)}return rt}function Se(y,F){for(var Z=-1,Ae=F.length,pt=y.length;++Z<Ae;)y[pt+Z]=F[Z];return y}function Ce(y,F){for(var Z=-1,Ae=y==null?0:y.length;++Z<Ae;)if(F(y[Z],Z,y))return!0;return!1}function X(y,F){for(var Z=-1,Ae=Array(y);++Z<y;)Ae[Z]=F(Z);return Ae}function ie(y){return function(F){return y(F)}}function fe(y,F){return y.has(F)}function xe(y,F){return y==null?void 0:y[F]}function pe(y){var F=-1,Z=Array(y.size);return y.forEach(function(Ae,pt){Z[++F]=[pt,Ae]}),Z}function Be(y,F){return function(Z){return y(F(Z))}}function ve(y){var F=-1,Z=Array(y.size);return y.forEach(function(Ae){Z[++F]=Ae}),Z}var Le=Array.prototype,Ve=Function.prototype,P=Object.prototype,C=De["__core-js_shared__"],be=Ve.toString,T=P.hasOwnProperty,z=function(){var y=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}(),E=P.toString,O=RegExp("^"+be.call(T).replace(me,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),H=Pe?De.Buffer:void 0,L=De.Symbol,Q=De.Uint8Array,se=P.propertyIsEnumerable,m=Le.splice,A=L?L.toStringTag:void 0,Y=Object.getOwnPropertySymbols,le=H?H.isBuffer:void 0,Fe=Be(Object.keys,Object),He=ci(De,"DataView"),et=ci(De,"Map"),gt=ci(De,"Promise"),Lt=ci(De,"Set"),ir=ci(De,"WeakMap"),Pt=ci(Object,"create"),mr=qe(He),Nr=qe(et),ki=qe(gt),ga=qe(Lt),ya=qe(ir),Oi=L?L.prototype:void 0,Ln=Oi?Oi.valueOf:void 0;function Zt(y){var F=-1,Z=y==null?0:y.length;for(this.clear();++F<Z;){var Ae=y[F];this.set(Ae[0],Ae[1])}}function ii(){this.__data__=Pt?Pt(null):{},this.size=0}function Fi(y){var F=this.has(y)&&delete this.__data__[y];return this.size-=F?1:0,F}function ba(y){var F=this.__data__;if(Pt){var Z=F[y];return Z===n?void 0:Z}return T.call(F,y)?F[y]:void 0}function wa(y){var F=this.__data__;return Pt?F[y]!==void 0:T.call(F,y)}function $i(y,F){var Z=this.__data__;return this.size+=this.has(y)?0:1,Z[y]=Pt&&F===void 0?n:F,this}Zt.prototype.clear=ii,Zt.prototype.delete=Fi,Zt.prototype.get=ba,Zt.prototype.has=wa,Zt.prototype.set=$i;function ar(y){var F=-1,Z=y==null?0:y.length;for(this.clear();++F<Z;){var Ae=y[F];this.set(Ae[0],Ae[1])}}function _a(){this.__data__=[],this.size=0}function ai(y){var F=this.__data__,Z=zn(F,y);if(Z<0)return!1;var Ae=F.length-1;return Z==Ae?F.pop():m.call(F,Z,1),--this.size,!0}function oi(y){var F=this.__data__,Z=zn(F,y);return Z<0?void 0:F[Z][1]}function Bi(y){return zn(this.__data__,y)>-1}function Jr(y,F){var Z=this.__data__,Ae=zn(Z,y);return Ae<0?(++this.size,Z.push([y,F])):Z[Ae][1]=F,this}ar.prototype.clear=_a,ar.prototype.delete=ai,ar.prototype.get=oi,ar.prototype.has=Bi,ar.prototype.set=Jr;function vr(y){var F=-1,Z=y==null?0:y.length;for(this.clear();++F<Z;){var Ae=y[F];this.set(Ae[0],Ae[1])}}function Pi(){this.size=0,this.__data__={hash:new Zt,map:new(et||ar),string:new Zt}}function xa(y){var F=hn(this,y).delete(y);return this.size-=F?1:0,F}function Ea(y){return hn(this,y).get(y)}function Da(y){return hn(this,y).has(y)}function jn(y,F){var Z=hn(this,y),Ae=Z.size;return Z.set(y,F),this.size+=Z.size==Ae?0:1,this}vr.prototype.clear=Pi,vr.prototype.delete=xa,vr.prototype.get=Ea,vr.prototype.has=Da,vr.prototype.set=jn;function Xr(y){var F=-1,Z=y==null?0:y.length;for(this.__data__=new vr;++F<Z;)this.add(y[F])}function si(y){return this.__data__.set(y,n),this}function Un(y){return this.__data__.has(y)}Xr.prototype.add=Xr.prototype.push=si,Xr.prototype.has=Un;function zr(y){var F=this.__data__=new ar(y);this.size=F.size}function Qr(){this.__data__=new ar,this.size=0}function Ft(y){var F=this.__data__,Z=F.delete(y);return this.size=F.size,Z}function or(y){return this.__data__.get(y)}function ui(y){return this.__data__.has(y)}function It(y,F){var Z=this.__data__;if(Z instanceof ar){var Ae=Z.__data__;if(!et||Ae.length<r-1)return Ae.push([y,F]),this.size=++Z.size,this;Z=this.__data__=new vr(Ae)}return Z.set(y,F),this.size=Z.size,this}zr.prototype.clear=Qr,zr.prototype.delete=Ft,zr.prototype.get=or,zr.prototype.has=ui,zr.prototype.set=It;function pn(y,F){var Z=$t(y),Ae=!Z&&Je(y),pt=!Z&&!Ae&&Mt(y),rt=!Z&&!Ae&&!pt&&sr(y),Et=Z||Ae||pt||rt,kt=Et?X(y.length,String):[],gr=kt.length;for(var Rt in y)(F||T.call(y,Rt))&&!(Et&&(Rt=="length"||pt&&(Rt=="offset"||Rt=="parent")||rt&&(Rt=="buffer"||Rt=="byteLength"||Rt=="byteOffset")||W(Rt,gr)))&&kt.push(Rt);return kt}function zn(y,F){for(var Z=y.length;Z--;)if(ot(y[Z][0],F))return Z;return-1}function po(y,F,Z){var Ae=F(y);return $t(y)?Ae:Se(Ae,Z(y))}function Ii(y){return y==null?y===void 0?K:v:A&&A in Object(y)?fi(y):Ke(y)}function au(y){return jt(y)&&Ii(y)==s}function ho(y,F,Z,Ae,pt){return y===F?!0:y==null||F==null||!jt(y)&&!jt(F)?y!==y&&F!==F:li(y,F,Z,Ae,ho,pt)}function li(y,F,Z,Ae,pt,rt){var Et=$t(y),kt=$t(F),gr=Et?u:en(y),Rt=kt?u:en(F);gr=gr==s?S:gr,Rt=Rt==s?S:Rt;var qr=gr==S,mn=Rt==S,wr=gr==Rt;if(wr&&Mt(y)){if(!Mt(F))return!1;Et=!0,qr=!1}if(wr&&!qr)return rt||(rt=new zr),Et||sr(y)?fs(y,F,Z,Ae,pt,rt):Ol(y,F,gr,Z,Ae,pt,rt);if(!(Z&i)){var Hr=qr&&T.call(y,"__wrapped__"),Mr=mn&&T.call(F,"__wrapped__");if(Hr||Mr){var vo=Hr?y.value():y,Aa=Mr?F.value():F;return rt||(rt=new zr),pt(vo,Aa,Z,Ae,rt)}}return wr?(rt||(rt=new zr),uu(y,F,Z,Ae,pt,rt)):!1}function ou(y){if(!fr(y)||ye(y))return!1;var F=xt(y)?O:_e;return F.test(qe(y))}function su(y){return jt(y)&&Wt(y.length)&&!!te[Ii(y)]}function mo(y){if(!Ie(y))return Fe(y);var F=[];for(var Z in Object(y))T.call(y,Z)&&Z!="constructor"&&F.push(Z);return F}function fs(y,F,Z,Ae,pt,rt){var Et=Z&i,kt=y.length,gr=F.length;if(kt!=gr&&!(Et&&gr>kt))return!1;var Rt=rt.get(y);if(Rt&&rt.get(F))return Rt==F;var qr=-1,mn=!0,wr=Z&a?new Xr:void 0;for(rt.set(y,F),rt.set(F,y);++qr<kt;){var Hr=y[qr],Mr=F[qr];if(Ae)var vo=Et?Ae(Mr,Hr,qr,F,y,rt):Ae(Hr,Mr,qr,y,F,rt);if(vo!==void 0){if(vo)continue;mn=!1;break}if(wr){if(!Ce(F,function(Aa,hs){if(!fe(wr,hs)&&(Hr===Aa||pt(Hr,Aa,Z,Ae,rt)))return wr.push(hs)})){mn=!1;break}}else if(!(Hr===Mr||pt(Hr,Mr,Z,Ae,rt))){mn=!1;break}}return rt.delete(y),rt.delete(F),mn}function Ol(y,F,Z,Ae,pt,rt,Et){switch(Z){case q:if(y.byteLength!=F.byteLength||y.byteOffset!=F.byteOffset)return!1;y=y.buffer,F=F.buffer;case j:return!(y.byteLength!=F.byteLength||!rt(new Q(y),new Q(F)));case c:case f:case g:return ot(+y,+F);case d:return y.name==F.name&&y.message==F.message;case _:case $:return y==F+"";case b:var kt=pe;case N:var gr=Ae&i;if(kt||(kt=ve),y.size!=F.size&&!gr)return!1;var Rt=Et.get(y);if(Rt)return Rt==F;Ae|=a,Et.set(y,F);var qr=fs(kt(y),kt(F),Ae,pt,rt,Et);return Et.delete(y),qr;case k:if(Ln)return Ln.call(y)==Ln.call(F)}return!1}function uu(y,F,Z,Ae,pt,rt){var Et=Z&i,kt=Sa(y),gr=kt.length,Rt=Sa(F),qr=Rt.length;if(gr!=qr&&!Et)return!1;for(var mn=gr;mn--;){var wr=kt[mn];if(!(Et?wr in F:T.call(F,wr)))return!1}var Hr=rt.get(y);if(Hr&&rt.get(F))return Hr==F;var Mr=!0;rt.set(y,F),rt.set(F,y);for(var vo=Et;++mn<gr;){wr=kt[mn];var Aa=y[wr],hs=F[wr];if(Ae)var uy=Et?Ae(hs,Aa,wr,F,y,rt):Ae(Aa,hs,wr,y,F,rt);if(!(uy===void 0?Aa===hs||pt(Aa,hs,Z,Ae,rt):uy)){Mr=!1;break}vo||(vo=wr=="constructor")}if(Mr&&!vo){var lf=y.constructor,cf=F.constructor;lf!=cf&&"constructor"in y&&"constructor"in F&&!(typeof lf=="function"&&lf instanceof lf&&typeof cf=="function"&&cf instanceof cf)&&(Mr=!1)}return rt.delete(y),rt.delete(F),Mr}function Sa(y){return po(y,Ca,Fl)}function hn(y,F){var Z=y.__data__;return ue(F)?Z[typeof F=="string"?"string":"hash"]:Z.map}function ci(y,F){var Z=xe(y,F);return ou(Z)?Z:void 0}function fi(y){var F=T.call(y,A),Z=y[A];try{y[A]=void 0;var Ae=!0}catch{}var pt=E.call(y);return Ae&&(F?y[A]=Z:delete y[A]),pt}var Fl=Y?function(y){return y==null?[]:(y=Object(y),he(Y(y),function(F){return se.call(y,F)}))}:ds,en=Ii;(He&&en(new He(new ArrayBuffer(1)))!=q||et&&en(new et)!=b||gt&&en(gt.resolve())!=w||Lt&&en(new Lt)!=N||ir&&en(new ir)!=G)&&(en=function(y){var F=Ii(y),Z=F==S?y.constructor:void 0,Ae=Z?qe(Z):"";if(Ae)switch(Ae){case mr:return q;case Nr:return b;case ki:return w;case ga:return N;case ya:return G}return F});function W(y,F){return F=F==null?o:F,!!F&&(typeof y=="number"||Ue.test(y))&&y>-1&&y%1==0&&y<F}function ue(y){var F=typeof y;return F=="string"||F=="number"||F=="symbol"||F=="boolean"?y!=="__proto__":y===null}function ye(y){return!!z&&z in y}function Ie(y){var F=y&&y.constructor,Z=typeof F=="function"&&F.prototype||P;return y===Z}function Ke(y){return E.call(y)}function qe(y){if(y!=null){try{return be.call(y)}catch{}try{return y+""}catch{}}return""}function ot(y,F){return y===F||y!==y&&F!==F}var Je=au(function(){return arguments}())?au:function(y){return jt(y)&&T.call(y,"callee")&&!se.call(y,"callee")},$t=Array.isArray;function Tt(y){return y!=null&&Wt(y.length)&&!xt(y)}var Mt=le||ps;function zt(y,F){return ho(y,F)}function xt(y){if(!fr(y))return!1;var F=Ii(y);return F==p||F==h||F==l||F==D}function Wt(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=o}function fr(y){var F=typeof y;return y!=null&&(F=="object"||F=="function")}function jt(y){return y!=null&&typeof y=="object"}var sr=J?ie(J):su;function Ca(y){return Tt(y)?pn(y):mo(y)}function ds(){return[]}function ps(){return!1}e.exports=zt})(J1,J1.exports);var Hj=lt&&lt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zc,"__esModule",{value:!0});var Tn=fn,Zb=yl,Vj=Hj(J1.exports),Kj=function(){function e(t,r){typeof t=="string"&&(t=new Zb.InsertDataQuill(Tn.DataType.Text,t+"")),this.insert=t,this.attributes=r||{}}return e.createNewLineOp=function(){return new e(Tn.NewLine)},e.prototype.isContainerBlock=function(){return this.isBlockquote()||this.isList()||this.isTable()||this.isCodeBlock()||this.isHeader()||this.isBlockAttribute()||this.isCustomTextBlock()},e.prototype.isBlockAttribute=function(){var t=this.attributes;return!!(t.align||t.direction||t.indent)},e.prototype.isBlockquote=function(){return!!this.attributes.blockquote},e.prototype.isHeader=function(){return!!this.attributes.header},e.prototype.isTable=function(){return!!this.attributes.table},e.prototype.isSameHeaderAs=function(t){return t.attributes.header===this.attributes.header&&this.isHeader()},e.prototype.hasSameAdiAs=function(t){return this.attributes.align===t.attributes.align&&this.attributes.direction===t.attributes.direction&&this.attributes.indent===t.attributes.indent},e.prototype.hasSameIndentationAs=function(t){return this.attributes.indent===t.attributes.indent},e.prototype.hasSameAttr=function(t){return Vj.default(this.attributes,t.attributes)},e.prototype.hasHigherIndentThan=function(t){return(Number(this.attributes.indent)||0)>(Number(t.attributes.indent)||0)},e.prototype.isInline=function(){return!(this.isContainerBlock()||this.isVideo()||this.isCustomEmbedBlock())},e.prototype.isCodeBlock=function(){return!!this.attributes["code-block"]},e.prototype.hasSameLangAs=function(t){return this.attributes["code-block"]===t.attributes["code-block"]},e.prototype.isJustNewline=function(){return this.insert.value===Tn.NewLine},e.prototype.isList=function(){return this.isOrderedList()||this.isBulletList()||this.isCheckedList()||this.isUncheckedList()},e.prototype.isOrderedList=function(){return this.attributes.list===Tn.ListType.Ordered},e.prototype.isBulletList=function(){return this.attributes.list===Tn.ListType.Bullet},e.prototype.isCheckedList=function(){return this.attributes.list===Tn.ListType.Checked},e.prototype.isUncheckedList=function(){return this.attributes.list===Tn.ListType.Unchecked},e.prototype.isACheckList=function(){return this.attributes.list==Tn.ListType.Unchecked||this.attributes.list===Tn.ListType.Checked},e.prototype.isSameListAs=function(t){return!!t.attributes.list&&(this.attributes.list===t.attributes.list||t.isACheckList()&&this.isACheckList())},e.prototype.isSameTableRowAs=function(t){return!!t.isTable()&&this.isTable()&&this.attributes.table===t.attributes.table},e.prototype.isText=function(){return this.insert.type===Tn.DataType.Text},e.prototype.isImage=function(){return this.insert.type===Tn.DataType.Image},e.prototype.isFormula=function(){return this.insert.type===Tn.DataType.Formula},e.prototype.isVideo=function(){return this.insert.type===Tn.DataType.Video},e.prototype.isLink=function(){return this.isText()&&!!this.attributes.link},e.prototype.isCustomEmbed=function(){return this.insert instanceof Zb.InsertDataCustom},e.prototype.isCustomEmbedBlock=function(){return this.isCustomEmbed()&&!!this.attributes.renderAsBlock},e.prototype.isCustomTextBlock=function(){return this.isText()&&!!this.attributes.renderAsBlock},e.prototype.isMentions=function(){return this.isText()&&!!this.attributes.mentions},e}();Zc.DeltaInsertOp=Kj;var gh={},ig={},Jc={},ag={};Object.defineProperty(ag,"__esModule",{value:!0});function Gj(e){var t=e;t=t.replace(/^\s*/gm,"");var r=/^((https?|s?ftp|file|blob|mailto|tel):|#|\/|data:image\/)/;return r.test(t)?t:"unsafe:"+t}ag.sanitize=Gj;var lo={};Object.defineProperty(lo,"__esModule",{value:!0});var tl;(function(e){e[e.Html=0]="Html",e[e.Url=1]="Url"})(tl||(tl={}));function Wj(e,t){if(t===void 0&&(t=void 0),!e)return"";var r="";if(t){var n=[].concat(t);r=n.map(function(a){return a.key+(a.value?'="'+a.value+'"':"")}).join(" ")}var i=">";return(e==="img"||e==="br")&&(i="/>"),r?"<"+e+" "+r+i:"<"+e+i}lo.makeStartTag=Wj;function Yj(e){return e===void 0&&(e=""),e&&"</"+e+">"||""}lo.makeEndTag=Yj;function w6(e){return og(tl.Html).reduce(x6,e)}lo.decodeHtml=w6;function Zj(e,t){return t===void 0&&(t=!0),t&&(e=w6(e)),og(tl.Html).reduce(_6,e)}lo.encodeHtml=Zj;function Jj(e){var t=og(tl.Url),r=t.reduce(x6,e);return t.reduce(_6,r)}lo.encodeLink=Jj;function og(e){var t=[["&","&amp;"],["<","&lt;"],[">","&gt;"],['"',"&quot;"],["'","&#x27;"],["\\/","&#x2F;"],["\\(","&#40;"],["\\)","&#41;"]];return e===tl.Html?t.filter(function(r){var n=r[0];return r[1],n.indexOf("(")===-1&&n.indexOf(")")===-1}):t.filter(function(r){var n=r[0];return r[1],n.indexOf("/")===-1})}function _6(e,t){return e.replace(new RegExp(t[0],"g"),t[1])}function x6(e,t){return e.replace(new RegExp(t[1],"g"),t[0].replace("\\",""))}var Xj=lt&&lt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(Jc,"__esModule",{value:!0});var Qj=Xj(ag),eU=lo,tU=function(){function e(){}return e.sanitize=function(t,r){var n=function(){};r&&typeof r.urlSanitizer=="function"&&(n=r.urlSanitizer);var i=n(t);return typeof i=="string"?i:eU.encodeLink(Qj.sanitize(t))},e}();Jc.OpLinkSanitizer=tU;Object.defineProperty(ig,"__esModule",{value:!0});var Jb=Jc,rU=function(){function e(){}return e.sanitize=function(t,r){var n={};return!t||typeof t!="object"||(t.class&&e.IsValidClass(t.class)&&(n.class=t.class),t.id&&e.IsValidId(t.id)&&(n.id=t.id),e.IsValidTarget(t.target+"")&&(n.target=t.target),t.avatar&&(n.avatar=Jb.OpLinkSanitizer.sanitize(t.avatar+"",r)),t["end-point"]&&(n["end-point"]=Jb.OpLinkSanitizer.sanitize(t["end-point"]+"",r)),t.slug&&(n.slug=t.slug+"")),n},e.IsValidClass=function(t){return!!t.match(/^[a-zA-Z0-9_\-]{1,500}$/i)},e.IsValidId=function(t){return!!t.match(/^[a-zA-Z0-9_\-\:\.]{1,500}$/i)},e.IsValidTarget=function(t){return["_self","_blank","_parent","_top"].indexOf(t)>-1},e}();ig.MentionSanitizer=rU;var ri={};Object.defineProperty(ri,"__esModule",{value:!0});function nU(e){return e.length===0?null:e.length>=2?e[1]:e[0]}ri.preferSecond=nU;function E6(e){return e.reduce(function(t,r){return t.concat(Array.isArray(r)?E6(r):r)},[])}ri.flatten=E6;function iU(e,t){if(Array.prototype.find)return Array.prototype.find.call(e,t);for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}ri.find=iU;function aU(e,t){for(var r=[],n,i,a=0;a<e.length;a++)n=e[a],a>0&&t(n,e[a-1])?(i=r[r.length-1],i.push(n)):r.push([n]);return r.map(function(o){return o.length===1?o[0]:o})}ri.groupConsecutiveElementsWhile=aU;function oU(e,t,r){for(var n={elements:[],sliceStartsAt:-1},i=t;i>=0&&r(e[i]);i--)n.sliceStartsAt=i,n.elements.unshift(e[i]);return n}ri.sliceFromReverseWhile=oU;function sU(e,t){return e.reduce(function(r,n,i){return r.push(n),i<e.length-1&&r.push(t),r},[])}ri.intersperse=sU;Object.defineProperty(gh,"__esModule",{value:!0});var hi=fn,uU=ig,lU=ri,cU=Jc,fU=function(){function e(){}return e.sanitize=function(t,r){var n={};if(!t||typeof t!="object")return n;var i=["bold","italic","underline","strike","code","blockquote","code-block","renderAsBlock"],a=["background","color"],o=t.font,s=t.size,u=t.link,l=t.script,c=t.list,f=t.header,d=t.align,p=t.direction,h=t.indent,b=t.mentions,g=t.mention,v=t.width,S=t.target,w=t.rel,D=t["code-block"],_=i.concat(a,["font","size","link","script","list","header","align","direction","indent","mentions","mention","width","target","rel","code-block"]);if(i.forEach(function($){var k=t[$];k&&(n[$]=!!k)}),a.forEach(function($){var k=t[$];k&&(e.IsValidHexColor(k+"")||e.IsValidColorLiteral(k+"")||e.IsValidRGBColor(k+""))&&(n[$]=k)}),o&&e.IsValidFontName(o+"")&&(n.font=o),s&&e.IsValidSize(s+"")&&(n.size=s),v&&e.IsValidWidth(v+"")&&(n.width=v),u&&(n.link=cU.OpLinkSanitizer.sanitize(u+"",r)),S&&e.isValidTarget(S)&&(n.target=S),w&&e.IsValidRel(w)&&(n.rel=w),D&&(e.IsValidLang(D)?n["code-block"]=D:n["code-block"]=!!D),(l===hi.ScriptType.Sub||hi.ScriptType.Super===l)&&(n.script=l),(c===hi.ListType.Bullet||c===hi.ListType.Ordered||c===hi.ListType.Checked||c===hi.ListType.Unchecked)&&(n.list=c),Number(f)&&(n.header=Math.min(Number(f),6)),lU.find([hi.AlignType.Center,hi.AlignType.Right,hi.AlignType.Justify,hi.AlignType.Left],function($){return $===d})&&(n.align=d),p===hi.DirectionType.Rtl&&(n.direction=p),h&&Number(h)&&(n.indent=Math.min(Number(h),30)),b&&g){var N=uU.MentionSanitizer.sanitize(g,r);Object.keys(N).length>0&&(n.mentions=!!b,n.mention=g)}return Object.keys(t).reduce(function($,k){return _.indexOf(k)===-1&&($[k]=t[k]),$},n)},e.IsValidHexColor=function(t){return!!t.match(/^#([0-9A-F]{6}|[0-9A-F]{3})$/i)},e.IsValidColorLiteral=function(t){return!!t.match(/^[a-z]{1,50}$/i)},e.IsValidRGBColor=function(t){var r=/^rgb\(((0|25[0-5]|2[0-4]\d|1\d\d|0?\d?\d),\s*){2}(0|25[0-5]|2[0-4]\d|1\d\d|0?\d?\d)\)$/i;return!!t.match(r)},e.IsValidFontName=function(t){return!!t.match(/^[a-z\s0-9\- ]{1,30}$/i)},e.IsValidSize=function(t){return!!t.match(/^[a-z0-9\-]{1,20}$/i)},e.IsValidWidth=function(t){return!!t.match(/^[0-9]*(px|em|%)?$/)},e.isValidTarget=function(t){return!!t.match(/^[_a-zA-Z0-9\-]{1,50}$/)},e.IsValidRel=function(t){return!!t.match(/^[a-zA-Z\s\-]{1,250}$/i)},e.IsValidLang=function(t){return typeof t=="boolean"?!0:!!t.match(/^[a-zA-Z\s\-\\\/\+]{1,50}$/i)},e}();gh.OpAttributeSanitizer=fU;var sg={},ug={};Object.defineProperty(ug,"__esModule",{value:!0});function dU(e){var t=`
`;if(e===t)return[e];var r=e.split(t);if(r.length===1)return r;var n=r.length-1;return r.reduce(function(i,a,o){return o!==n?a!==""?i=i.concat(a,t):i.push(t):a!==""&&i.push(a),i},[])}ug.tokenizeWithNewLines=dU;var Xc={};Object.defineProperty(Xc,"__esModule",{value:!0});function pU(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(e==null)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),i=0;i<t.length;i++){var a=t[i];if(a!=null)for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n}Xc.assign=pU;var D6=lt&&lt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(sg,"__esModule",{value:!0});var mm=fn,hU=D6(ug),Xb=D6(Xc),mU=function(){function e(){}return e.denormalize=function(t){if(!t||typeof t!="object")return[];if(typeof t.insert=="object"||t.insert===mm.NewLine)return[t];var r=hU.tokenizeWithNewLines(t.insert+"");if(r.length===1)return[t];var n=Xb.assign({},t,{insert:mm.NewLine});return r.map(function(i){return i===mm.NewLine?n:Xb.assign({},t,{insert:i})})},e}();sg.InsertOpDenormalizer=mU;Object.defineProperty(ng,"__esModule",{value:!0});var vU=Zc,Li=fn,Ll=yl,gU=gh,yU=sg,Qb=Jc,bU=function(){function e(){}return e.convert=function(t,r){if(!Array.isArray(t))return[];for(var n=[].concat.apply([],t.map(yU.InsertOpDenormalizer.denormalize)),i=[],a,o,s=0,u=n;s<u.length;s++){var l=u[s];!l.insert||(a=e.convertInsertVal(l.insert,r),a&&(o=gU.OpAttributeSanitizer.sanitize(l.attributes,r),i.push(new vU.DeltaInsertOp(a,o))))}return i},e.convertInsertVal=function(t,r){if(typeof t=="string")return new Ll.InsertDataQuill(Li.DataType.Text,t);if(!t||typeof t!="object")return null;var n=Object.keys(t);return n.length?Li.DataType.Image in t?new Ll.InsertDataQuill(Li.DataType.Image,Qb.OpLinkSanitizer.sanitize(t[Li.DataType.Image]+"",r)):Li.DataType.Video in t?new Ll.InsertDataQuill(Li.DataType.Video,Qb.OpLinkSanitizer.sanitize(t[Li.DataType.Video]+"",r)):Li.DataType.Formula in t?new Ll.InsertDataQuill(Li.DataType.Formula,t[Li.DataType.Formula]):new Ll.InsertDataCustom(n[0],t[n[0]]):null},e}();ng.InsertOpsConverter=bU;var lg={};(function(e){var t=lt&&lt.__importStar||function(l){if(l&&l.__esModule)return l;var c={};if(l!=null)for(var f in l)Object.hasOwnProperty.call(l,f)&&(c[f]=l[f]);return c.default=l,c};Object.defineProperty(e,"__esModule",{value:!0});var r=lo,n=fn,i=t(Xc),a=t(ri),o=gh,s={serif:"font-family: Georgia, Times New Roman, serif",monospace:"font-family: Monaco, Courier New, monospace"};e.DEFAULT_INLINE_STYLES={font:function(l){return s[l]||"font-family:"+l},size:{small:"font-size: 0.75em",large:"font-size: 1.5em",huge:"font-size: 2.5em"},indent:function(l,c){var f=parseInt(l,10)*3,d=c.attributes.direction==="rtl"?"right":"left";return"padding-"+d+":"+f+"em"},direction:function(l,c){if(l==="rtl")return"direction:rtl"+(c.attributes.align?"":"; text-align:inherit")}};var u=function(){function l(c,f){this.op=c,this.options=i.assign({},{classPrefix:"ql",inlineStyles:void 0,encodeHtml:!0,listItemTag:"li",paragraphTag:"p"},f)}return l.prototype.prefixClass=function(c){return this.options.classPrefix?this.options.classPrefix+"-"+c:c+""},l.prototype.getHtml=function(){var c=this.getHtmlParts();return c.openingTag+c.content+c.closingTag},l.prototype.getHtmlParts=function(){var c=this;if(this.op.isJustNewline()&&!this.op.isContainerBlock())return{openingTag:"",closingTag:"",content:n.NewLine};var f=this.getTags(),d=this.getTagAttributes();!f.length&&d.length&&f.push("span");for(var p=[],h=[],b="img",g=function(D){return D===b&&!!c.op.attributes.link},v=0,S=f;v<S.length;v++){var w=S[v];g(w)&&p.push(r.makeStartTag("a",this.getLinkAttrs())),p.push(r.makeStartTag(w,d)),h.push(w==="img"?"":r.makeEndTag(w)),g(w)&&h.push(r.makeEndTag("a")),d=[]}return h.reverse(),{openingTag:p.join(""),content:this.getContent(),closingTag:h.join("")}},l.prototype.getContent=function(){if(this.op.isContainerBlock())return"";if(this.op.isMentions())return this.op.insert.value;var c=this.op.isFormula()||this.op.isText()?this.op.insert.value:"";return this.options.encodeHtml&&r.encodeHtml(c)||c},l.prototype.getCssClasses=function(){var c=this.op.attributes;if(this.options.inlineStyles)return[];var f=["indent","align","direction","font","size"];return this.options.allowBackgroundClasses&&f.push("background"),(this.getCustomCssClasses()||[]).concat(f.filter(function(d){return!!c[d]}).filter(function(d){return d==="background"?o.OpAttributeSanitizer.IsValidColorLiteral(c[d]):!0}).map(function(d){return d+"-"+c[d]}).concat(this.op.isFormula()?"formula":[]).concat(this.op.isVideo()?"video":[]).concat(this.op.isImage()?"image":[]).map(this.prefixClass.bind(this)))},l.prototype.getCssStyles=function(){var c=this,f=this.op.attributes,d=[["color"]];return(!!this.options.inlineStyles||!this.options.allowBackgroundClasses)&&d.push(["background","background-color"]),this.options.inlineStyles&&(d=d.concat([["indent"],["align","text-align"],["direction"],["font","font-family"],["size"]])),(this.getCustomCssStyles()||[]).concat(d.filter(function(p){return!!f[p[0]]}).map(function(p){var h=p[0],b=f[h],g=c.options.inlineStyles&&c.options.inlineStyles[h]||e.DEFAULT_INLINE_STYLES[h];if(typeof g=="object")return g[b];if(typeof g=="function"){var v=g;return v(b,c.op)}else return a.preferSecond(p)+":"+b})).filter(function(p){return p!==void 0})},l.prototype.getTagAttributes=function(){if(this.op.attributes.code&&!this.op.isLink())return[];var c=this.makeAttr.bind(this),f=this.getCustomTagAttributes(),d=f?Object.keys(this.getCustomTagAttributes()).map(function(v){return c(v,f[v])}):[],p=this.getCssClasses(),h=p.length?d.concat([c("class",p.join(" "))]):d;if(this.op.isImage())return this.op.attributes.width&&(h=h.concat(c("width",this.op.attributes.width))),h.concat(c("src",this.op.insert.value));if(this.op.isACheckList())return h.concat(c("data-checked",this.op.isCheckedList()?"true":"false"));if(this.op.isFormula())return h;if(this.op.isVideo())return h.concat(c("frameborder","0"),c("allowfullscreen","true"),c("src",this.op.insert.value));if(this.op.isMentions()){var b=this.op.attributes.mention;return b.class&&(h=h.concat(c("class",b.class))),b["end-point"]&&b.slug?h=h.concat(c("href",b["end-point"]+"/"+b.slug)):h=h.concat(c("href","about:blank")),b.target&&(h=h.concat(c("target",b.target))),h}var g=this.getCssStyles();return g.length&&h.push(c("style",g.join(";"))),this.op.isCodeBlock()&&typeof this.op.attributes["code-block"]=="string"?h.concat(c("data-language",this.op.attributes["code-block"])):(this.op.isContainerBlock()||this.op.isLink()&&(h=h.concat(this.getLinkAttrs())),h)},l.prototype.makeAttr=function(c,f){return{key:c,value:f}},l.prototype.getLinkAttrs=function(){var c=[],f=o.OpAttributeSanitizer.isValidTarget(this.options.linkTarget||"")?this.options.linkTarget:void 0,d=o.OpAttributeSanitizer.IsValidRel(this.options.linkRel||"")?this.options.linkRel:void 0,p=this.op.attributes.target||f,h=this.op.attributes.rel||d;return c.concat(this.makeAttr("href",this.op.attributes.link)).concat(p?this.makeAttr("target",p):[]).concat(h?this.makeAttr("rel",h):[])},l.prototype.getCustomTag=function(c){if(this.options.customTag&&typeof this.options.customTag=="function")return this.options.customTag.apply(null,[c,this.op])},l.prototype.getCustomTagAttributes=function(){if(this.options.customTagAttributes&&typeof this.options.customTagAttributes=="function")return this.options.customTagAttributes.apply(null,[this.op])},l.prototype.getCustomCssClasses=function(){if(this.options.customCssClasses&&typeof this.options.customCssClasses=="function"){var c=this.options.customCssClasses.apply(null,[this.op]);if(c)return Array.isArray(c)?c:[c]}},l.prototype.getCustomCssStyles=function(){if(this.options.customCssStyles&&typeof this.options.customCssStyles=="function"){var c=this.options.customCssStyles.apply(null,[this.op]);if(c)return Array.isArray(c)?c:[c]}},l.prototype.getTags=function(){var c=this,f=this.op.attributes;if(!this.op.isText())return[this.op.isVideo()?"iframe":this.op.isImage()?"img":"span"];for(var d=this.options.paragraphTag||"p",p=[["blockquote"],["code-block","pre"],["list",this.options.listItemTag],["header"],["align",d],["direction",d],["indent",d]],h=0,b=p;h<b.length;h++){var g=b[h],v=g[0];if(f[v]){var S=this.getCustomTag(v);return S?[S]:v==="header"?["h"+f[v]]:[a.preferSecond(g)]}}if(this.op.isCustomTextBlock()){var S=this.getCustomTag("renderAsBlock");return S?[S]:[d]}var w=Object.keys(f).reduce(function(_,N){var $=c.getCustomTag(N);return $&&(_[N]=$),_},{}),D=[["link","a"],["mentions","a"],["script"],["bold","strong"],["italic","em"],["strike","s"],["underline","u"],["code"]];return D.filter(function(_){return!!f[_[0]]}).concat(Object.keys(w).filter(function(_){return!D.some(function(N){return N[0]==_})}).map(function(_){return[_,w[_]]})).map(function(_){return w[_[0]]?w[_[0]]:_[0]==="script"?f[_[0]]===n.ScriptType.Sub?"sub":"sup":a.preferSecond(_)})},l}();e.OpToHtmlConverter=u})(lg);var cg={},dn={},S6=lt&&lt.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n])};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(dn,"__esModule",{value:!0});var wU=function(){function e(t){this.ops=t}return e}();dn.InlineGroup=wU;var C6=function(){function e(t){this.op=t}return e}(),_U=function(e){S6(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(C6);dn.VideoItem=_U;var xU=function(e){S6(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(C6);dn.BlotBlock=xU;var EU=function(){function e(t,r){this.op=t,this.ops=r}return e}();dn.BlockGroup=EU;var DU=function(){function e(t){this.items=t}return e}();dn.ListGroup=DU;var SU=function(){function e(t,r){r===void 0&&(r=null),this.item=t,this.innerList=r}return e}();dn.ListItem=SU;var CU=function(){function e(t){this.rows=t}return e}();dn.TableGroup=CU;var AU=function(){function e(t){this.cells=t}return e}();dn.TableRow=AU;var NU=function(){function e(t){this.item=t}return e}();dn.TableCell=NU;Object.defineProperty(cg,"__esModule",{value:!0});var TU=Zc,Tf=ri,bs=dn,kU=function(){function e(){}return e.pairOpsWithTheirBlock=function(t){for(var r=[],n=function(l){return!(l.isJustNewline()||l.isCustomEmbedBlock()||l.isVideo()||l.isContainerBlock())},i=function(l){return l.isInline()},a=t.length-1,o,s=a;s>=0;s--){var u=t[s];u.isVideo()?r.push(new bs.VideoItem(u)):u.isCustomEmbedBlock()?r.push(new bs.BlotBlock(u)):u.isContainerBlock()?(o=Tf.sliceFromReverseWhile(t,s-1,n),r.push(new bs.BlockGroup(u,o.elements)),s=o.sliceStartsAt>-1?o.sliceStartsAt:s):(o=Tf.sliceFromReverseWhile(t,s-1,i),r.push(new bs.InlineGroup(o.elements.concat(u))),s=o.sliceStartsAt>-1?o.sliceStartsAt:s)}return r.reverse(),r},e.groupConsecutiveSameStyleBlocks=function(t,r){return r===void 0&&(r={header:!0,codeBlocks:!0,blockquotes:!0,customBlocks:!0}),Tf.groupConsecutiveElementsWhile(t,function(n,i){return!(n instanceof bs.BlockGroup)||!(i instanceof bs.BlockGroup)?!1:r.codeBlocks&&e.areBothCodeblocksWithSameLang(n,i)||r.blockquotes&&e.areBothBlockquotesWithSameAdi(n,i)||r.header&&e.areBothSameHeadersWithSameAdi(n,i)||r.customBlocks&&e.areBothCustomBlockWithSameAttr(n,i)})},e.reduceConsecutiveSameStyleBlocksToOne=function(t){var r=TU.DeltaInsertOp.createNewLineOp();return t.map(function(n){if(!Array.isArray(n))return n instanceof bs.BlockGroup&&!n.ops.length&&n.ops.push(r),n;var i=n.length-1;return n[0].ops=Tf.flatten(n.map(function(a,o){return a.ops.length?a.ops.concat(o<i?[r]:[]):[r]})),n[0]})},e.areBothCodeblocksWithSameLang=function(t,r){return t.op.isCodeBlock()&&r.op.isCodeBlock()&&t.op.hasSameLangAs(r.op)},e.areBothSameHeadersWithSameAdi=function(t,r){return t.op.isSameHeaderAs(r.op)&&t.op.hasSameAdiAs(r.op)},e.areBothBlockquotesWithSameAdi=function(t,r){return t.op.isBlockquote()&&r.op.isBlockquote()&&t.op.hasSameAdiAs(r.op)},e.areBothCustomBlockWithSameAttr=function(t,r){return t.op.isCustomTextBlock()&&r.op.isCustomTextBlock()&&t.op.hasSameAttr(r.op)},e}();cg.Grouper=kU;var fg={};Object.defineProperty(fg,"__esModule",{value:!0});var Vn=dn,jl=ri,OU=function(){function e(){}return e.prototype.nest=function(t){var r=this,n=this.convertListBlocksToListGroups(t),i=this.groupConsecutiveListGroups(n),a=jl.flatten(i.map(function(s){return Array.isArray(s)?r.nestListSection(s):s})),o=jl.groupConsecutiveElementsWhile(a,function(s,u){return s instanceof Vn.ListGroup&&u instanceof Vn.ListGroup?s.items[0].item.op.isSameListAs(u.items[0].item.op):!1});return o.map(function(s){if(!Array.isArray(s))return s;var u=s.map(function(l){return l.items});return new Vn.ListGroup(jl.flatten(u))})},e.prototype.convertListBlocksToListGroups=function(t){var r=jl.groupConsecutiveElementsWhile(t,function(n,i){return n instanceof Vn.BlockGroup&&i instanceof Vn.BlockGroup&&n.op.isList()&&i.op.isList()&&n.op.isSameListAs(i.op)&&n.op.hasSameIndentationAs(i.op)});return r.map(function(n){return Array.isArray(n)?new Vn.ListGroup(n.map(function(i){return new Vn.ListItem(i)})):n instanceof Vn.BlockGroup&&n.op.isList()?new Vn.ListGroup([new Vn.ListItem(n)]):n})},e.prototype.groupConsecutiveListGroups=function(t){return jl.groupConsecutiveElementsWhile(t,function(r,n){return r instanceof Vn.ListGroup&&n instanceof Vn.ListGroup})},e.prototype.nestListSection=function(t){var r=this,n=this.groupByIndent(t);return Object.keys(n).map(Number).sort().reverse().forEach(function(i){n[i].forEach(function(a){var o=t.indexOf(a);r.placeUnderParent(a,t.slice(0,o))&&t.splice(o,1)})}),t},e.prototype.groupByIndent=function(t){return t.reduce(function(r,n){var i=n.items[0].item.op.attributes.indent;return i&&(r[i]=r[i]||[],r[i].push(n)),r},{})},e.prototype.placeUnderParent=function(t,r){for(var n=r.length-1;n>=0;n--){var i=r[n];if(t.items[0].item.op.hasHigherIndentThan(i.items[0].item.op)){var a=i.items[i.items.length-1];return a.innerList?a.innerList.items=a.innerList.items.concat(t.items):a.innerList=t,!0}}return!1},e}();fg.ListNester=OU;var dg={};Object.defineProperty(dg,"__esModule",{value:!0});var Kn=dn,e3=ri,FU=function(){function e(){}return e.prototype.group=function(t){var r=this.convertTableBlocksToTableGroups(t);return r},e.prototype.convertTableBlocksToTableGroups=function(t){var r=this,n=e3.groupConsecutiveElementsWhile(t,function(i,a){return i instanceof Kn.BlockGroup&&a instanceof Kn.BlockGroup&&i.op.isTable()&&a.op.isTable()});return n.map(function(i){return Array.isArray(i)?new Kn.TableGroup(r.convertTableBlocksToTableRows(i)):i instanceof Kn.BlockGroup&&i.op.isTable()?new Kn.TableGroup([new Kn.TableRow([new Kn.TableCell(i)])]):i})},e.prototype.convertTableBlocksToTableRows=function(t){var r=e3.groupConsecutiveElementsWhile(t,function(n,i){return n instanceof Kn.BlockGroup&&i instanceof Kn.BlockGroup&&n.op.isTable()&&i.op.isTable()&&n.op.isSameTableRowAs(i.op)});return r.map(function(n){return new Kn.TableRow(Array.isArray(n)?n.map(function(i){return new Kn.TableCell(i)}):[new Kn.TableCell(n)])})},e}();dg.TableGrouper=FU;var $U=lt&&lt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(rg,"__esModule",{value:!0});var BU=ng,Ul=lg,vm=cg,zl=dn,PU=fg,kn=lo,IU=$U(Xc),ql=fn,MU=dg,Hl="<br/>",RU=function(){function e(t,r){this.rawDeltaOps=[],this.callbacks={},this.options=IU.assign({paragraphTag:"p",encodeHtml:!0,classPrefix:"ql",inlineStyles:!1,multiLineBlockquote:!0,multiLineHeader:!0,multiLineCodeblock:!0,multiLineParagraph:!0,multiLineCustomBlock:!0,allowBackgroundClasses:!1,linkTarget:"_blank"},r,{orderedListTag:"ol",bulletListTag:"ul",listItemTag:"li"});var n;this.options.inlineStyles?typeof this.options.inlineStyles=="object"?n=this.options.inlineStyles:n={}:n=void 0,this.converterOptions={encodeHtml:this.options.encodeHtml,classPrefix:this.options.classPrefix,inlineStyles:n,listItemTag:this.options.listItemTag,paragraphTag:this.options.paragraphTag,linkRel:this.options.linkRel,linkTarget:this.options.linkTarget,allowBackgroundClasses:this.options.allowBackgroundClasses,customTag:this.options.customTag,customTagAttributes:this.options.customTagAttributes,customCssClasses:this.options.customCssClasses,customCssStyles:this.options.customCssStyles},this.rawDeltaOps=t}return e.prototype._getListTag=function(t){return t.isOrderedList()?this.options.orderedListTag+"":t.isBulletList()?this.options.bulletListTag+"":t.isCheckedList()?this.options.bulletListTag+"":t.isUncheckedList()?this.options.bulletListTag+"":""},e.prototype.getGroupedOps=function(){var t=BU.InsertOpsConverter.convert(this.rawDeltaOps,this.options),r=vm.Grouper.pairOpsWithTheirBlock(t),n=vm.Grouper.groupConsecutiveSameStyleBlocks(r,{blockquotes:!!this.options.multiLineBlockquote,header:!!this.options.multiLineHeader,codeBlocks:!!this.options.multiLineCodeblock,customBlocks:!!this.options.multiLineCustomBlock}),i=vm.Grouper.reduceConsecutiveSameStyleBlocksToOne(n),a=new MU.TableGrouper;i=a.group(i);var o=new PU.ListNester;return o.nest(i)},e.prototype.convert=function(){var t=this,r=this.getGroupedOps();return r.map(function(n){if(n instanceof zl.ListGroup)return t._renderWithCallbacks(ql.GroupType.List,n,function(){return t._renderList(n)});if(n instanceof zl.TableGroup)return t._renderWithCallbacks(ql.GroupType.Table,n,function(){return t._renderTable(n)});if(n instanceof zl.BlockGroup){var i=n;return t._renderWithCallbacks(ql.GroupType.Block,n,function(){return t._renderBlock(i.op,i.ops)})}else return n instanceof zl.BlotBlock?t._renderCustom(n.op,null):n instanceof zl.VideoItem?t._renderWithCallbacks(ql.GroupType.Video,n,function(){var a=n,o=new Ul.OpToHtmlConverter(a.op,t.converterOptions);return o.getHtml()}):t._renderWithCallbacks(ql.GroupType.InlineGroup,n,function(){return t._renderInlines(n.ops,!0)})}).join("")},e.prototype._renderWithCallbacks=function(t,r,n){var i="",a=this.callbacks.beforeRender_cb;i=typeof a=="function"?a.apply(null,[t,r]):"",i||(i=n());var o=this.callbacks.afterRender_cb;return i=typeof o=="function"?o.apply(null,[t,i]):i,i},e.prototype._renderList=function(t){var r=this,n=t.items[0];return kn.makeStartTag(this._getListTag(n.item.op))+t.items.map(function(i){return r._renderListItem(i)}).join("")+kn.makeEndTag(this._getListTag(n.item.op))},e.prototype._renderListItem=function(t){t.item.op.attributes.indent=0;var r=new Ul.OpToHtmlConverter(t.item.op,this.converterOptions),n=r.getHtmlParts(),i=this._renderInlines(t.item.ops,!1);return n.openingTag+i+(t.innerList?this._renderList(t.innerList):"")+n.closingTag},e.prototype._renderTable=function(t){var r=this;return kn.makeStartTag("table")+kn.makeStartTag("tbody")+t.rows.map(function(n){return r._renderTableRow(n)}).join("")+kn.makeEndTag("tbody")+kn.makeEndTag("table")},e.prototype._renderTableRow=function(t){var r=this;return kn.makeStartTag("tr")+t.cells.map(function(n){return r._renderTableCell(n)}).join("")+kn.makeEndTag("tr")},e.prototype._renderTableCell=function(t){var r=new Ul.OpToHtmlConverter(t.item.op,this.converterOptions),n=r.getHtmlParts(),i=this._renderInlines(t.item.ops,!1);return kn.makeStartTag("td",{key:"data-row",value:t.item.op.attributes.table})+n.openingTag+i+n.closingTag+kn.makeEndTag("td")},e.prototype._renderBlock=function(t,r){var n=this,i=new Ul.OpToHtmlConverter(t,this.converterOptions),a=i.getHtmlParts();if(t.isCodeBlock())return a.openingTag+kn.encodeHtml(r.map(function(s){return s.isCustomEmbed()?n._renderCustom(s,t):s.insert.value}).join(""))+a.closingTag;var o=r.map(function(s){return n._renderInline(s,t)}).join("");return a.openingTag+(o||Hl)+a.closingTag},e.prototype._renderInlines=function(t,r){var n=this;r===void 0&&(r=!0);var i=t.length-1,a=t.map(function(u,l){return l>0&&l===i&&u.isJustNewline()?"":n._renderInline(u,null)}).join("");if(!r)return a;var o=kn.makeStartTag(this.options.paragraphTag),s=kn.makeEndTag(this.options.paragraphTag);return a===Hl||this.options.multiLineParagraph?o+a+s:o+a.split(Hl).map(function(u){return u===""?Hl:u}).join(s+o)+s},e.prototype._renderInline=function(t,r){if(t.isCustomEmbed())return this._renderCustom(t,r);var n=new Ul.OpToHtmlConverter(t,this.converterOptions);return n.getHtml().replace(/\n/g,Hl)},e.prototype._renderCustom=function(t,r){var n=this.callbacks.renderCustomOp_cb;return typeof n=="function"?n.apply(null,[t,r]):""},e.prototype.beforeRender=function(t){typeof t=="function"&&(this.callbacks.beforeRender_cb=t)},e.prototype.afterRender=function(t){typeof t=="function"&&(this.callbacks.afterRender_cb=t)},e.prototype.renderCustomWith=function(t){this.callbacks.renderCustomOp_cb=t},e}();rg.QuillDeltaToHtmlConverter=RU;Object.defineProperty(Ar,"__esModule",{value:!0});var LU=rg,pg=Ar.QuillDeltaToHtmlConverter=LU.QuillDeltaToHtmlConverter,jU=lg;Ar.OpToHtmlConverter=jU.OpToHtmlConverter;var bl=dn;Ar.InlineGroup=bl.InlineGroup;Ar.VideoItem=bl.VideoItem;Ar.BlockGroup=bl.BlockGroup;Ar.ListGroup=bl.ListGroup;Ar.ListItem=bl.ListItem;Ar.BlotBlock=bl.BlotBlock;var UU=Zc;Ar.DeltaInsertOp=UU.DeltaInsertOp;var A6=yl;Ar.InsertDataQuill=A6.InsertDataQuill;Ar.InsertDataCustom=A6.InsertDataCustom;var Js=fn;Ar.NewLine=Js.NewLine;Ar.ListType=Js.ListType;Ar.ScriptType=Js.ScriptType;Ar.DirectionType=Js.DirectionType;Ar.AlignType=Js.AlignType;Ar.DataType=Js.DataType;Ar.GroupType=Js.GroupType;const t3=(e,t=!0)=>{if(typeof e=="string"||e instanceof String){const r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};return e.replace(/[&<>"'`=/]/g,i=>r[i]).replace(/\n/g,t?"<br />":"")}return""},zU=(e,t,r)=>{if(r)switch(t){case"bold":return`<strong>${e}</strong>`;case"italic":return`<em>${e}</em>`;case"strike":return`<s>${e}</s>`;case"underline":return`<u>${e}</u>`;case"code":return`<code>${e}</code>`;case"link":return`<a rel="noopener noreferrer nofollow" target="_blank" href="${r}">${e}</a>`}return e},qU=(e,t)=>{let r=e;return Object.keys(t).forEach(n=>{r=zU(r,n,t[n])}),r},HU={props:{text:String,delta:{type:String,default:null},multiline:{type:Boolean,default:!1},tag:{type:String,default:"div"},paragraphTag:{type:String,default:"p"},mentions:{type:Array,default:()=>[]}},computed:{delta2html(){const e=new pg(JSON.parse(this.delta).ops,{paragraphTag:this.paragraphTag?this.paragraphTag:"",linkRel:"noopener noreferrer nofollow"});return this.mentions.length&&e.renderCustomWith(t=>{if(t.insert.type==="mention"){const r=this.mentions.find(n=>n.id===t.insert.value.id);if(r)return qU(r.value,t.attributes)}return""}),e.convert()},html(){if(this.delta!==null)try{return this.delta2html}catch{return t3(this.text)}else return t3(this.text)}}};function VU(e,t,r,n,i,a){return V(),Ge(Cr(r.tag),{class:"aida__view",innerHTML:a.html},null,8,["innerHTML"])}var hg=we(HU,[["render",VU],["__scopeId","data-v-cb1d3208"]]);const KU={components:{TextViewer:hg},props:{field:Object,pos:Number},setup(e){const{field:t}=yt(e),{text:r,delta:n,alignCss:i}=wt(t);return{text:r,delta:n,alignCss:i}}};function GU(e,t,r,n,i,a){const o=ge("text-viewer");return V(),ae("div",{class:Ye(n.alignCss)},[Ee(o,{class:"font-bold mt-0 mb-2 py-8 text-[2.5rem] leading-[3rem] whitespace-pre-wrap break-words",tag:"h1",text:n.text,delta:n.delta,"paragraph-tag":""},null,8,["text","delta"])],2)}var WU=we(KU,[["render",GU]]);const YU={components:{TextViewer:hg},props:{field:Object,pos:Number},setup(e){const{field:t}=yt(e),{text:r,delta:n,alignCss:i}=wt(t);return{text:r,delta:n,alignCss:i}}};function ZU(e,t,r,n,i,a){const o=ge("text-viewer");return V(),ae("div",{class:Ye(n.alignCss)},[Ee(o,{class:"font-bold mt-0 mb-2 py-8 text-[1.625rem] leading-8 whitespace-pre-wrap break-words",tag:"h2",text:n.text,delta:n.delta,"paragraph-tag":""},null,8,["text","delta"])],2)}var JU=we(YU,[["render",ZU]]),XU={},QU=Object.freeze(Object.defineProperty({__proto__:null,default:XU},Symbol.toStringTag,{value:"Module"})),N6=H9(QU);function wi(e,t,r){for(var n=1<<t-1;n;n=n>>>1)e.push(n&r?1:0)}function ez(e){for(var t=e.length,r=[],n=0;n<t;n++)wi(r,8,e[n]);var i={},a=[0,1,0,0];if(wi(a,16,t),i.data10=i.data27=a.concat(r),t<256){var a=[0,1,0,0];wi(a,8,t),i.data1=a.concat(r)}return i}var r3=function(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=r;return t}("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:");function tz(e){for(var t=e.length,r=[],n=0;n<t;n+=2){var i=6,a=r3[e[n]];e[n+1]&&(i=11,a=a*45+r3[e[n+1]]),wi(r,i,a)}var o={},s=[0,0,1,0];if(wi(s,13,t),o.data27=s.concat(r),t<2048){var s=[0,0,1,0];wi(s,11,t),o.data10=s.concat(r)}if(t<512){var s=[0,0,1,0];wi(s,9,t),o.data1=s.concat(r)}return o}function rz(e){for(var t=e.length,r=[],n=0;n<t;n+=3){var i=e.substr(n,3),a=Math.ceil(i.length*10/3);wi(r,a,parseInt(i,10))}var o={},s=[0,0,0,1];if(wi(s,14,t),o.data27=s.concat(r),t<4096){var s=[0,0,0,1];wi(s,12,t),o.data10=s.concat(r)}if(t<1024){var s=[0,0,0,1];wi(s,10,t),o.data1=s.concat(r)}return o}function nz(e){var t=e.indexOf("/",8)+1||e.length,r=X1(e.slice(0,t).toUpperCase(),!1);if(t>=e.length)return r;var n=X1(e.slice(t),!1);return r.data27=r.data27.concat(n.data27),r.data10&&n.data10&&(r.data10=r.data10.concat(n.data10)),r.data1&&n.data1&&(r.data1=r.data1.concat(n.data1)),r}function X1(e,t){var r,n=typeof e;if(n=="string"||n=="number")r=""+e,e=new Oe(r);else if(Oe.isBuffer(e))r=e.toString();else if(Array.isArray(e))e=new Oe(e),r=e.toString();else throw new Error("Bad data");if(/^[0-9]+$/.test(r)){if(e.length>7089)throw new Error("Too much data");return rz(r)}if(/^[0-9A-Z \$%\*\+\.\/\:\-]+$/.test(r)){if(e.length>4296)throw new Error("Too much data");return tz(r)}if(t&&/^https?:/i.test(r))return nz(r);if(e.length>2953)throw new Error("Too much data");return ez(e)}var iz=X1,az=285,ip=[1],T6=[];for(var Ha=1;Ha<256;Ha++){var kf=ip[Ha-1]<<1;kf>255&&(kf=kf^az),ip[Ha]=kf}for(var Ha=0;Ha<255;Ha++)T6[ip[Ha]]=Ha;function Q1(e){for(;e<0;)e+=255;for(;e>255;)e-=255;return ip[e]}function k6(e){if(e<1||e>255)throw Error("Bad log("+e+")");return T6[e]}var gm=[[0],[0,0],[0,25,1]];function O6(e){if(gm[e])return gm[e];var t=O6(e-1),r=[];r[0]=t[0];for(var n=1;n<=e;n++)r[n]=k6(Q1(t[n])^Q1(t[n-1]+e-1));return gm[e]=r,r}var oz=function(t,r){t=[].slice.call(t);for(var n=O6(r),i=0;i<r;i++)t.push(0);for(;t.length>r;){if(!t[0]){t.shift();continue}for(var a=k6(t[0]),i=0;i<=r;i++)t[i]=t[i]^Q1(n[i]+a);t.shift()}return new Oe(t)};function F6(e){var t=e*4+17,r=[],n=new Oe(t);n.fill(0),n=[].slice.call(n);for(var i=0;i<t;i++)r[i]=n.slice();return r}function $6(e){for(var t=e.length,r=-3;r<=3;r++)for(var n=-3;n<=3;n++){var i=Math.max(r,n),a=Math.min(r,n),o=i==2&&a>=-2||a==-2&&i<=2?128:129;e[3+r][3+n]=o,e[3+r][t-4+n]=o,e[t-4+r][3+n]=o}for(var r=0;r<8;r++)e[7][r]=e[r][7]=e[7][t-r-1]=e[r][t-8]=e[t-8][r]=e[t-1-r][7]=128}function B6(e){var t=e.length;if(t>21){var r=t-13,n=Math.round(r/Math.ceil(r/28));n%2&&n++;for(var i=[],a=r+6;a>10;a-=n)i.unshift(a);i.unshift(6);for(var o=0;o<i.length;o++)for(var s=0;s<i.length;s++){var u=i[o],l=i[s];if(!e[u][l])for(var c=-2;c<=2;c++)for(var f=-2;f<=2;f++){var d=Math.max(c,f),p=Math.min(c,f),h=d==1&&p>=-1||p==-1&&d<=1?128:129;e[u+c][l+f]=h}}}for(var o=8;o<t-8;o++)e[6][o]=e[o][6]=o%2?128:129}function P6(e){for(var t=e.length,r=0;r<8;r++)r!=6&&(e[8][r]=e[r][8]=128),e[8][t-1-r]=128,e[t-1-r][8]=128;if(e[8][8]=128,e[t-8][8]=129,!(t<45))for(var r=t-11;r<t-8;r++)for(var n=0;n<6;n++)e[r][n]=e[n][r]=128}var e0=function(){for(var e=Array(32),t=Array(40),r=1335,n=7973,i=21522,a=0;a<32;a++){for(var o=a<<10,s=5;s>0;s--)o>>>9+s&&(o=o^r<<s-1);e[a]=(o|a<<10)^i}for(var u=7;u<=40;u++){for(var o=u<<12,s=6;s>0;s--)o>>>11+s&&(o=o^n<<s-1);t[u]=o|u<<12}var l={L:1,M:0,Q:3,H:2};return function(f,d,p){var h=f.length,b=e[l[d]<<3|p];function g(_){return b>>_&1?129:128}for(var v=0;v<8;v++)f[8][h-1-v]=g(v),v<6&&(f[v][8]=g(v));for(var v=8;v<15;v++)f[h-15+v][8]=g(v),v>8&&(f[8][14-v]=g(v));f[7][8]=g(6),f[8][8]=g(7),f[8][7]=g(8);var S=t[(h-17)/4];if(!S)return;function w(_){return S>>_&1?129:128}for(var v=0;v<6;v++)for(var D=0;D<3;D++)f[h-11+D][v]=f[v][h-11+D]=w(v*3+D)}}(),t0=function(){var e=[function(t,r){return(t+r)%2==0},function(t,r){return t%2==0},function(t,r){return r%3==0},function(t,r){return(t+r)%3==0},function(t,r){return(Math.floor(t/2)+Math.floor(r/3))%2==0},function(t,r){return t*r%2+t*r%3==0},function(t,r){return(t*r%2+t*r%3)%2==0},function(t,r){return(t*r%3+(t+r)%2)%2==0}];return function(r,n,i){var a=r.length,o,s,u=-1;o=s=a-1;for(var l=e[i],c=n.blocks[n.blocks.length-1].length,f=0;f<c;f++)for(var d=0;d<n.blocks.length;d++)n.blocks[d].length<=f||p(n.blocks[d][f]);c=n.ec_len;for(var f=0;f<c;f++)for(var d=0;d<n.ec.length;d++)p(n.ec[d][f]);if(s>-1)do r[o][s]=l(o,s)?1:0;while(h());function p(b){for(var g=128;g;g=g>>1){var v=!!(g&b);l(o,s)&&(v=!v),r[o][s]=v?1:0,h()}}function h(){do if(s%2^s<6?u<0&&o==0||u>0&&o==a-1?(s--,u=-u):(s++,o+=u):s--,s==6&&s--,s<0)return!1;while(r[o][s]&240);return!0}}}();function I6(e){for(var t=e.length,r=0,n=0;n<t;n++){for(var i=e[n][0]&1,a=1,o=1;o<t;o++){var s=e[n][o]&1;if(s==i){a++;continue}a>=5&&(r+=a-2),i=s,a=1}a>=5&&(r+=a-2)}for(var o=0;o<t;o++){for(var i=e[0][o]&1,a=1,n=1;n<t;n++){var s=e[n][o]&1;if(s==i){a++;continue}a>=5&&(r+=a-2),i=s,a=1}a>=5&&(r+=a-2)}for(var n=0;n<t-1;n++)for(var o=0;o<t-1;o++){var u=e[n][o]+e[n][o+1]+e[n+1][o]+e[n+1][o+1]&7;(u==0||u==4)&&(r+=3)}function l(d){return e[n][o+d]&1}function c(d){return e[n+d][o]&1}for(var n=0;n<t;n++)for(var o=0;o<t;o++)o<t-6&&l(0)&&!l(1)&&l(2)&&l(3)&&l(4)&&!l(5)&&l(6)&&(o>=4&&!(l(-4)||l(-3)||l(-2)||l(-1))&&(r+=40),o<t-10&&!(l(7)||l(8)||l(9)||l(10))&&(r+=40)),n<t-6&&c(0)&&!c(1)&&c(2)&&c(3)&&c(4)&&!c(5)&&c(6)&&(n>=4&&!(c(-4)||c(-3)||c(-2)||c(-1))&&(r+=40),n<t-10&&!(c(7)||c(8)||c(9)||c(10))&&(r+=40));for(var f=0,n=0;n<t;n++)for(var o=0;o<t;o++)e[n][o]&1&&f++;return r+=10*Math.floor(Math.abs(10-20*f/(t*t))),r}function sz(e){var t=F6(e.version);$6(t),B6(t),P6(t);for(var r=1/0,n=0,i=0;i<8;i++){t0(t,e,i),e0(t,e.ec_level,i);var a=I6(t);a<r&&(r=a,n=i)}return t0(t,e,n),e0(t,e.ec_level,n),t.map(function(o){return o.map(function(s){return s&1})})}var uz={getMatrix:sz,init:F6,fillFinders:$6,fillAlignAndTiming:B6,fillStub:P6,fillReserved:e0,fillData:t0,calculatePenalty:I6},lz=iz,cz=oz,fz=uz;function ym(e){return JSON.parse(JSON.stringify(e))}var M6=["L","M","Q","H"],cc=[[],[26,7,1,10,1,13,1,17,1],[44,10,1,16,1,22,1,28,1],[70,15,1,26,1,36,2,44,2],[100,20,1,36,2,52,2,64,4],[134,26,1,48,2,72,4,88,4],[172,36,2,64,4,96,4,112,4],[196,40,2,72,4,108,6,130,5],[242,48,2,88,4,132,6,156,6],[292,60,2,110,5,160,8,192,8],[346,72,4,130,5,192,8,224,8],[404,80,4,150,5,224,8,264,11],[466,96,4,176,8,260,10,308,11],[532,104,4,198,9,288,12,352,16],[581,120,4,216,9,320,16,384,16],[655,132,6,240,10,360,12,432,18],[733,144,6,280,10,408,17,480,16],[815,168,6,308,11,448,16,532,19],[901,180,6,338,13,504,18,588,21],[991,196,7,364,14,546,21,650,25],[1085,224,8,416,16,600,20,700,25],[1156,224,8,442,17,644,23,750,25],[1258,252,9,476,17,690,23,816,34],[1364,270,9,504,18,750,25,900,30],[1474,300,10,560,20,810,27,960,32],[1588,312,12,588,21,870,29,1050,35],[1706,336,12,644,23,952,34,1110,37],[1828,360,12,700,25,1020,34,1200,40],[1921,390,13,728,26,1050,35,1260,42],[2051,420,14,784,28,1140,38,1350,45],[2185,450,15,812,29,1200,40,1440,48],[2323,480,16,868,31,1290,43,1530,51],[2465,510,17,924,33,1350,45,1620,54],[2611,540,18,980,35,1440,48,1710,57],[2761,570,19,1036,37,1530,51,1800,60],[2876,570,19,1064,38,1590,53,1890,63],[3034,600,20,1120,40,1680,56,1980,66],[3196,630,21,1204,43,1770,59,2100,70],[3362,660,22,1260,45,1860,62,2220,74],[3532,720,24,1316,47,1950,65,2310,77],[3706,750,25,1372,49,2040,68,2430,81]];cc=cc.map(function(e,t){if(!t)return{};for(var r={},n=1;n<8;n+=2){for(var i=e[0]-e[n],a=e[n+1],o=M6[n/2|0],s={version:t,ec_level:o,data_len:i,ec_len:e[n]/a,blocks:[],ec:[]},u=a,l=i;u>0;u--){var c=l/u|0;s.blocks.push(c),l-=c}r[o]=s}return r});function R6(e,t){var r=1,n;for(e.data1?n=Math.ceil(e.data1.length/8):r=10;r<10;r++){var i=cc[r][t];if(i.data_len>=n)return ym(i)}for(e.data10?n=Math.ceil(e.data10.length/8):r=27;r<27;r++){var i=cc[r][t];if(i.data_len>=n)return ym(i)}for(n=Math.ceil(e.data27.length/8);r<41;r++){var i=cc[r][t];if(i.data_len>=n)return ym(i)}throw new Error("Too much data")}function L6(e,t){var r=new Oe(t.data_len);r.fill(0),t.version<10?e=e.data1:t.version<27?e=e.data10:e=e.data27;for(var n=e.length,i=0;i<n;i+=8){for(var a=0,o=0;o<8;o++)a=a<<1|(e[i+o]?1:0);r[i/8]=a}for(var s=236,i=Math.ceil((n+4)/8);i<r.length;i++)r[i]=s,s=s==236?17:236;var u=0;return t.blocks=t.blocks.map(function(l){var c=r.slice(u,u+l);return u+=l,t.ec.push(cz(c,t.ec_len)),c}),t}function dz(e,t,r){t=M6.indexOf(t)>-1?t:"M";var n=lz(e,r),i=L6(n,R6(n,t));return fz.getMatrix(i)}var pz={QR:dz,getTemplate:R6,fillTemplate:L6},r0={exports:{}},j6=[];for(var Of=0;Of<256;Of++){var On=j6[Of]=new Oe(4);On.writeUInt32BE(Of,0);for(var n3=0;n3<8;n3++){var hz=On[0]&1,mz=On[1]&1,vz=On[2]&1,Ff=On[3]&1;On[0]=On[0]>>1^(Ff?237:0),On[1]=On[1]>>1^(Ff?184:0)^(hz?128:0),On[2]=On[2]>>1^(Ff?131:0)^(mz?128:0),On[3]=On[3]>>1^(Ff?32:0)^(vz?128:0)}}function gz(e,t){for(var r=t.length,n=0;n<r;n++){var i=j6[e[3]^t[n]];e[3]=i[3]^e[2],e[2]=i[2]^e[1],e[1]=i[1]^e[0],e[0]=i[0]}}function yz(){var e=arguments.length,t=new Oe(4);t.fill(255);for(var r=0;r<e;r++)gz(t,new Oe(arguments[r]));return t[0]=t[0]^255,t[1]=t[1]^255,t[2]=t[2]^255,t[3]=t[3]^255,t.readUInt32BE(0)}var bz=yz;(function(){if(Vo.arch==="arm"){r0.exports=bz;return}var e=[];(function(){for(var n=0;n<256;n++){for(var i=n,a=0;a<8;a++)i&1?i=3988292384^i>>>1:i=i>>>1;e[n]=i>>>0}})();function t(n,i){for(var a=i.length,o=0;o<a;o++)n=e[(n^i[o])&255]^n>>>8;return n}function r(){for(var n=arguments.length,i=-1,a=0;a<n;a++)i=t(i,new Oe(arguments[a]));return i=(i^-1)>>>0,i}r0.exports=r})();var wz=N6,i3=r0.exports,_z=new Oe([137,80,78,71,13,10,26,10]),xz=new Oe([0,0,0,13,73,72,68,82,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0]),Ez=new Oe([0,0,0,0,73,68,65,84]),Dz=new Oe([0,0,0,0,73,69,78,68,174,66,96,130]);function Sz(e,t){t.push(_z);var r=Oe.concat([xz]);r.writeUInt32BE(e.size,8),r.writeUInt32BE(e.size,12),r.writeUInt32BE(i3(r.slice(4,-4)),21),t.push(r);var n=Oe.concat([Ez,wz.deflateSync(e.data,{level:9}),new Oe(4)]);n.writeUInt32BE(n.length-12,0),n.writeUInt32BE(i3(n.slice(4,-4)),n.length-4),t.push(n),t.push(Dz),t.push(null)}function Cz(e,t,r){var n=e.length,i=(n+2*r)*t,a=new Oe((i+1)*i);a.fill(255);for(var o=0;o<i;o++)a[o*(i+1)]=0;for(var o=0;o<n;o++)for(var s=0;s<n;s++)if(e[o][s]){var u=((r+o)*(i+1)+(r+s))*t+1;a.fill(0,u,u+t);for(var l=1;l<t;l++)a.copy(a,u+l*(i+1),u,u+t)}return{data:a,size:i}}var Az={bitmap:Cz,png:Sz};function mg(e){for(var t=e.length,r=[],n=-1;n<=t;n++)r[n]=[];for(var i=[],n=0;n<t;n++)for(var a=0;a<t;a++)r[n][a]||(r[n][a]=1,o(n,a)?o(n-1,a)||i.push(s(n,a,"right")):o(n,a-1)&&i.push(s(n,a,"down")));return i;function o(u,l){return u<0||l<0||u>=t||l>=t?!1:!!e[u][l]}function s(u,l,c){r[u][l]=1;var f=[];f.push(["M",l,u]);var d=u,p=l,h=0;do switch(c){case"right":r[d][p]=1,o(d,p)?(r[d-1][p]=1,o(d-1,p)?(f.push(["h",h]),h=0,c="up"):(h++,p++)):(f.push(["h",h]),h=0,c="down");break;case"left":r[d-1][p-1]=1,o(d-1,p-1)?(r[d][p-1]=1,o(d,p-1)?(f.push(["h",-h]),h=0,c="down"):(h++,p--)):(f.push(["h",-h]),h=0,c="up");break;case"down":r[d][p-1]=1,o(d,p-1)?(r[d][p]=1,o(d,p)?(f.push(["v",h]),h=0,c="right"):(h++,d++)):(f.push(["v",h]),h=0,c="left");break;case"up":r[d-1][p]=1,o(d-1,p)?(r[d-1][p-1]=1,o(d-1,p-1)?(f.push(["v",-h]),h=0,c="left"):(h++,d--)):(f.push(["v",-h]),h=0,c="right");break}while(d!=u||p!=l);return f}}function U6(e,t,r){mg(e).forEach(function(n){for(var i="",a=0;a<n.length;a++){var o=n[a];switch(o[0]){case"M":i+="M"+(o[1]+r)+" "+(o[2]+r);break;default:i+=o.join("")}}i+="z",t.push(i)})}function Nz(e,t){var r=[];U6(e,r,t);var n={size:e.length+2*t,path:r.filter(Boolean).join("")};return n}function Tz(e,t,r,n){var i=e.length+2*r;if(t.push('<svg xmlns="http://www.w3.org/2000/svg" '),n>0){var a=i*n;t.push('width="'+a+'" height="'+a+'" ')}t.push('viewBox="0 0 '+i+" "+i+'">'),t.push('<path d="'),U6(e,t,r),t.push('"/></svg>'),t.push(null)}function kz(e,t,r){var n=e.length,i=9,a=(n+2*r)*i;t.push(["%!PS-Adobe-3.0 EPSF-3.0","%%BoundingBox: 0 0 "+a+" "+a,"/h { 0 rlineto } bind def","/v { 0 exch neg rlineto } bind def","/M { neg "+(n+r)+" add moveto } bind def","/z { closepath } bind def",i+" "+i+" scale",""].join(`
`)),mg(e).forEach(function(o){for(var s="",u=0;u<o.length;u++){var l=o[u];switch(l[0]){case"M":s+=l[1]+r+" "+l[2]+" M ";break;default:s+=l[1]+" "+l[0]+" "}}s+=`z
`,t.push(s)}),t.push(`fill
%%EOF
`),t.push(null)}function Oz(e,t,r){var n=e.length,i=9,a=(n+2*r)*i,o=[`%PDF-1.0

`,`1 0 obj << /Type /Catalog /Pages 2 0 R >> endobj
`,`2 0 obj << /Type /Pages /Count 1 /Kids [ 3 0 R ] >> endobj
`];o.push("3 0 obj << /Type /Page /Parent 2 0 R /Resources <<>> /Contents 4 0 R /MediaBox [ 0 0 "+a+" "+a+` ] >> endobj
`);var s=i+" 0 0 "+i+` 0 0 cm
`;s+=mg(e).map(function(f){for(var d="",p,h,b=0;b<f.length;b++){var g=f[b];switch(g[0]){case"M":p=g[1]+r,h=n-g[2]+r,d+=p+" "+h+" m ";break;case"h":p+=g[1],d+=p+" "+h+" l ";break;case"v":h-=g[1],d+=p+" "+h+" l ";break}}return d+="h",d}).join(`
`),s+=`
f
`,o.push("4 0 obj << /Length "+s.length+` >> stream
`+s+`endstream
endobj
`);for(var u=`xref
0 5
0000000000 65535 f 
`,l=1,c=o[0].length;l<5;l++)u+=("0000000000"+c).substr(-10)+` 00000 n 
`,c+=o[l].length;o.push(u,`trailer << /Root 1 0 R /Size 5 >>
`,`startxref
`+c+`
%%EOF
`),t.push(o.join("")),t.push(null)}var Fz={svg:Tz,eps:kz,pdf:Oz,svg_object:Nz},$z=N6.Readable,yh=pz.QR,ap=Az,op=Fz,Bz=function(){},Pz={parse_url:!1,ec_level:"M",size:5,margin:4,customize:null},Iz={parse_url:!1,ec_level:"M",margin:1,size:0};function vg(e,t){typeof e=="string"?e={ec_level:e}:e=e||{};var r={type:String(t||e.type||"png").toLowerCase()},n=r.type=="png"?Pz:Iz;for(var i in n)r[i]=i in e?e[i]:n[i];return r}function Mz(e,t){t=vg(t);var r=yh(e,t.ec_level,t.parse_url),n=new $z;switch(n._read=Bz,t.type){case"svg":case"pdf":case"eps":Vo.nextTick(function(){op[t.type](r,n,t.margin,t.size)});break;case"svgpath":Vo.nextTick(function(){var i=op.svg_object(r,t.margin,t.size);n.push(i.path),n.push(null)});break;case"png":default:Vo.nextTick(function(){var i=ap.bitmap(r,t.size,t.margin);t.customize&&t.customize(i),ap.png(i,n)})}return n}function Rz(e,t){t=vg(t);var r=yh(e,t.ec_level,t.parse_url),n=[],i;switch(t.type){case"svg":case"pdf":case"eps":op[t.type](r,n,t.margin,t.size),i=n.filter(Boolean).join("");break;case"png":default:var a=ap.bitmap(r,t.size,t.margin);t.customize&&t.customize(a),ap.png(a,n),i=Oe.concat(n.filter(Boolean))}return i}function Lz(e,t){t=vg(t,"svg");var r=yh(e,t.ec_level);return op.svg_object(r,t.margin)}var jz={matrix:yh,image:Mz,imageSync:Rz,svgObject:Lz};const Uz={props:{youtubeVideoId:String},emits:["load"]},zz=e=>(ua("data-v-58a763ef"),e=e(),la(),e),qz={class:"y-picture"},Hz=["src"],Vz=zz(()=>ne("button",{type:"button",class:"y-button absolute top-1/2 left-1/2 p-0 border-0 bg-transparent h-12 cursor-pointer focus:outline-none"},[ne("svg",{viewBox:"0 0 68 48",class:"w-full h-full"},[ne("path",{class:"y-shape",d:"M66.5 7.7c-.8-2.9-2.5-5.4-5.4-6.2C55.8.1 34 0 34 0S12.2.1 6.9 1.6c-3 .7-4.6 3.2-5.4 6.1a89.6 89.6 0 0 0 0 32.5c.8 3 2.5 5.5 5.4 6.3C12.2 47.9 34 48 34 48s21.8-.1 27.1-1.6c3-.7 4.6-3.2 5.4-6.1C68 35 68 24 68 24s0-11-1.5-16.3z"}),ne("path",{class:"fill-current text-white",d:"M45 24L27 14v20"})])],-1));function Kz(e,t,r,n,i,a){return V(),ae("picture",qz,[ne("img",{class:"absolute top-0 left-0 w-full h-full border-0 object-cover",src:"https://i.ytimg.com/vi/"+r.youtubeVideoId+"/hqdefault.jpg",onLoad:t[0]||(t[0]=o=>e.$emit("load"))},null,40,Hz),Vz])}var Gz=we(Uz,[["render",Kz],["__scopeId","data-v-58a763ef"]]);const Wz={props:{youtubeVideoId:String},emits:["load"]},Yz=["src"];function Zz(e,t,r,n,i,a){return V(),ae("iframe",{class:"absolute w-full h-full top-0 left-0 border-0",allowfullscreen:"",frameborder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture;",src:"https://www.youtube.com/embed/"+r.youtubeVideoId+"?autoplay=1",onLoad:t[0]||(t[0]=o=>e.$emit("load"))},null,40,Yz)}var Jz=we(Wz,[["render",Zz]]);const Xz={components:{YoutubePicture:Gz,YoutubeIframe:Jz},props:{width:{type:[String,Number],default:"100%"},youtubeVideoId:{type:String,default:"TLpx-Z_F_xY"},autoplay:{type:Boolean,default:!1}},emits:["load"],data(){return{activated:!1}},computed:{component(){return this.autoplay||this.activated?"youtube-iframe":"youtube-picture"},maxWidth(){return isNaN(this.width)?(typeof this.width=="string"||this.width instanceof String)&&this.width.length?this.width:"100%":this.width+"px"}}},Qz={class:"relative",style:{"padding-bottom":"56.25%"}};function eq(e,t,r,n,i,a){return V(),ae("div",{class:"w-full cursor-pointer bg-black",style:ln({"max-width":a.maxWidth}),onClick:t[1]||(t[1]=o=>i.activated=!0)},[ne("div",Qz,[(V(),Ge(Cr(a.component),{"youtube-video-id":r.youtubeVideoId,onLoad:t[0]||(t[0]=o=>e.$emit("load"))},null,40,["youtube-video-id"]))])],4)}var tq=we(Xz,[["render",eq]]);const rq={props:{sources:{type:Array,default:()=>[]},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},muted:{type:Boolean,default:!1}},emits:["load"],computed:{src(){return this.sources.length?this.sources:[{source:"https://media.aidaform.com/i/audio.mp3",type:"audio/mp3"},{source:"https://media.aidaform.com/i/audio.weba",type:"audio/webm"}]}}},nq=["loop","autoplay","muted"],iq=["src","type"];function aq(e,t,r,n,i,a){return V(),ae("audio",{class:"focus:outline-none",preload:"metadata",controls:"",loop:r.loop,autoplay:r.autoplay,muted:r.muted,onLoadeddata:t[0]||(t[0]=o=>e.$emit("load")),onLoadedmetadata:t[1]||(t[1]=o=>e.$emit("load"))},[(V(!0),ae(vt,null,Gt(a.src,(o,s)=>(V(),ae("source",{key:s,src:o.source,type:o.type},null,8,iq))),128))],40,nq)}var oq=we(rq,[["render",aq]]);const sq={props:{sources:{type:Array,default:()=>[]},autoplay:{type:Boolean,default:!1},width:[String,Number],playsinline:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},muted:{type:Boolean,default:!1}},emits:["load","size"],computed:{stl(){return{"max-width":isNaN(this.width)?(typeof this.width=="string"||this.width instanceof String)&&this.width.length?this.width:"100%":this.width+"px"}},src(){return this.sources.length?this.sources:[{source:"https://media.aidaform.com/i/video.mp4",type:"video/mp4"},{source:"https://media.aidaform.com/i/video.webm",type:"video/webm"}]}},methods:{loaded(e){this.$emit("load"),this.$emit("size",{width:e.target.videoWidth,height:e.target.videoHeight})}}},uq=["playsinline","loop","autoplay","muted"],lq=["src","type"];function cq(e,t,r,n,i,a){return V(),ae("div",{class:"w-full",style:ln(a.stl)},[ne("video",{class:"w-full focus:outline-non",preload:"metadata",controls:"",playsinline:r.playsinline,loop:r.loop,autoplay:r.autoplay,muted:r.muted,onLoadeddata:t[0]||(t[0]=o=>e.$emit("load")),onLoadedmetadata:t[1]||(t[1]=(...o)=>a.loaded&&a.loaded(...o))},[(V(!0),ae(vt,null,Gt(a.src,(o,s)=>(V(),ae("source",{key:s,src:o.source,type:o.type},null,8,lq))),128))],40,uq)],4)}var fq=we(sq,[["render",cq]]);const dq="https://media.aidaform.com/i/placeholder.svg",pq="TLpx-Z_F_xY",hq={components:{YoutubePlayer:tq,VideoPlayer:fq,AudioPlayer:oq},props:{type:{type:String,default:"image"},location:String,url:{type:String,default:""},videoSources:{type:Array,default:()=>[]},audioSources:{type:Array,default:()=>[]},youtubeVideoId:String,size:{type:Array,default:()=>[300,200]},align:{type:String,default:"left"},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},muted:{type:Boolean,default:!1},playsinline:{type:Boolean,default:!1},caption:String,showCaption:{type:Boolean,default:!1},captionOnTop:{type:Boolean,default:!1}},emits:["load","size"],data(){return{qrcode:""}},computed:{klass(){let e="";switch(this.align){case"right":e+="items-end";break;case"center":e+="items-center";break;default:e+="items-start"}return e},component(){switch(this.type){case"youtube":return"youtube-player";case"video":return"video-player";case"audio":return"audio-player";case"qr":default:return"img"}},componentOptions(){switch(this.type){case"youtube":return{width:this.size[0],youtubeVideoId:this.youtubeVideoId?this.youtubeVideoId:pq,autoplay:this.autoplay};case"video":return{sources:this.videoSources,width:this.size[0],height:this.size[1],autoplay:this.autoplay,playsinline:this.playsinline,loop:this.loop,muted:this.muted};case"audio":return{class:"md:w-1/2",sources:this.audioSources,autoplay:this.autoplay,loop:this.loop,muted:this.muted};case"qr":return{alt:this.url,src:this.qrcode,style:{width:"100%","max-width":this.size[0]+"px","max-height":this.size[0]+"px"}};default:return{alt:"",src:this.location?this.location:dq,style:{width:"100%","max-width":this.size[0]+"px","max-height":this.size[1]+"px"}}}}},watch:{url:{handler:function(){this.qrcode="data:image/svg+xml,"+encodeURIComponent(jz.imageSync(this.url?this.url:"https://aidaform.com",{type:"svg",margin:0}))},immediate:!0}}},mq={key:0};function vq(e,t,r,n,i,a){return V(),ae("figure",{class:Ye(["flex m-0 p-0 relative flex",a.klass,r.captionOnTop?"flex-col-reverse":"flex-col"])},[(V(),Ge(Cr(a.component),ei(a.componentOptions,{onLoad:t[0]||(t[0]=o=>e.$emit("load")),onSize:t[1]||(t[1]=o=>e.$emit("size",o))}),null,16)),r.showCaption?(V(),ae("figcaption",mq,We(r.caption),1)):ct("",!0),dr(e.$slots,"default")],2)}var gq=we(hq,[["render",vq]]);const yq={components:{FigureViewer:gq},props:{field:Object,pos:Number},emits:["redraw"],setup(e){const{field:t}=yt(e),{align:r,type:n,size:i,location:a,url:o,youtubeVideoId:s,videoSources:u,audioSources:l,autoplay:c,loop:f,muted:d}=wt(t);return{align:r,type:n,size:i,location:a,url:o,youtubeVideoId:s,videoSources:u,audioSources:l,autoplay:c,loop:f,muted:d}}},bq={class:"pb-11.5"};function wq(e,t,r,n,i,a){const o=ge("figure-viewer");return V(),ae("div",bq,[Ee(o,{type:n.type||"image",align:n.align,size:n.size,location:n.location||"https://media.aidaform.com/i/placeholder.svg",url:n.url,"video-sources":n.videoSources,"audio-sources":n.audioSources,"youtube-video-id":n.youtubeVideoId,playsinline:"",autoplay:n.autoplay,loop:n.loop,muted:n.muted,onLoad:t[0]||(t[0]=s=>e.$emit("redraw"))},null,8,["type","align","size","location","url","video-sources","audio-sources","youtube-video-id","autoplay","loop","muted"])])}var _q=we(yq,[["render",wq]]);const xq={provide(){return{cbGroup:this}},props:{name:String,state:{type:Boolean,default:null},readonly:{type:Boolean,default:!1},multiple:{type:Boolean,default:!0},enableKeyBindings:{type:Boolean,default:!0},shape:{type:String,default:"auto"},size:{type:String,default:"md"}},expose:["name","state","readonly","multiple","enableKeyBindings","shape","size"],computed:{role(){return this.multiple?"group":"radiogroup"}}},Eq=["role","aria-invalid"];function Dq(e,t,r,n,i,a){return V(),ae("div",{class:"focus:outline-none focus-visible:outline-none",role:a.role,tabindex:"-1","aria-invalid":r.state===!1||void 0},[dr(e.$slots,"default")],8,Eq)}var bh=we(xq,[["render",Dq]]);const Sq={},Cq={xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 12 12"},Aq=ne("path",{d:"M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z"},null,-1),Nq=[Aq];function Tq(e,t){return V(),ae("svg",Cq,Nq)}var kq=we(Sq,[["render",Tq]]);const Oq={},Fq={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},$q=ne("circle",{cx:"8",cy:"8",r:"4"},null,-1),Bq=[$q];function Pq(e,t){return V(),ae("svg",Fq,Bq)}var Iq=we(Oq,[["render",Pq]]);const Mq={components:{ShapeCheck:kq,ShapeDot:Iq},inject:{group:{from:"cbGroup",default:null}},props:{modelValue:Boolean,name:String,id:{type:String,default:()=>"cb_"+Math.random().toString(36).substring(2)},value:{type:[String,Number,Boolean],default:!0},state:{type:Boolean,default:null},labelClass:{type:[String,Array,Object],default:""},readonly:{type:Boolean,default:!1},multiple:{type:Boolean,default:!0},keyCode:{type:String,default:null},enableKeyBindings:{type:Boolean,default:!0},doNotHandleKeyBinding:{type:Boolean,default:!1},shape:{type:String,default:"auto"},size:{type:String,default:"md"}},emits:["update:modelValue","key:binding"],computed:{isGroup(){return!!this.group},_name(){return this.isGroup?this.group.name:this.name},_readonly(){return this.isGroup?this.group.readonly||this.readonly:this.readonly},_state(){return this.isGroup?this.group.state:this.state},_size(){return this.isGroup?this.group.size:this.size},_multiple(){return this.isGroup?this.group.multiple:this.multiple},_shape(){const e=this.isGroup?this.group.shape:this.shape;return e==="auto"?this._multiple?"check":"dot":e},_enableKeyBindings(){return this.isGroup?this.group.enableKeyBindings:this.enableKeyBindings},shapeSize(){switch(this._size){case"lg":return"h-6 w-6 min-w-[1.5rem] min-h-[1.5rem]";case"sm":return"h-4 w-4 min-w-[1rem] min-h-[1rem]";case"md":default:return"h-5 w-5 min-w-[1.25rem] min-h-[1.25rem]"}},type(){return this._multiple?"checkbox":"radio"},key(){if(this.keyCode){if(this.keyCode.startsWith("Key"))return this.keyCode.charAt(3);if(this.keyCode.startsWith("Digit"))return this.keyCode.charAt(5);if(this.keyCode==="Minus")return"-"}return""}},watch:{keyCode(e,t){this._enableKeyBindings&&(e||!t?this.addListener():e||this.removeListener())},_enableKeyBindings(e){e&&this.keyCode?this.addListener():!e&&this.keyCode&&this.removeListener()}},mounted(){this.keyCode&&this._enableKeyBindings&&this.addListener()},beforeUnmount(){this.keyCode&&this._enableKeyBindings&&this.removeListener()},methods:{addListener(){window.addEventListener("keydown",this.handleKeyEvent)},removeListener(){window.removeEventListener("keydown",this.handleKeyEvent)},handleKeyEvent(e){!this._readonly&&!e.repeat&&e.code===this.keyCode&&(this.doNotHandleKeyBinding||this.emit(!this.modelValue),this.$emit("key:binding"))},emit(e){this.$emit("update:modelValue",e)}}},Rq=["id","type","value","checked","disabled","name"],Lq=["for"];function jq(e,t,r,n,i,a){return V(),ae("div",{class:Ye(["checkbox relative p-0 m-0",a._shape,{readonly:a._readonly}])},[ne("input",{id:r.id,class:Ye(["input p-0 m-0 absolute opacity-0",{invalid:a._state===!1}]),autocomplete:"off",type:a.type,value:r.value,checked:r.modelValue,disabled:a._readonly,name:a._name,onInput:t[0]||(t[0]=o=>a.emit(!!o.target.checked))},null,42,Rq),ne("label",{class:Ye(["label flex h-full w-full justify-start items-start",r.labelClass]),for:r.id},[r.keyCode?(V(),ae("span",{key:0,class:Ye(["binding text-base border-2 mr-1.5 border-solid flex shrink-0 justify-center items-center text-center opacity-50 uppercase font-bold",a.shapeSize])},We(a.key),3)):ct("",!0),(V(),Ge(Cr("shape-"+a._shape),{class:Ye(["shape opacity-50 mr-1.5 fill-current text-transparent border-2 border-solid rounded",a.shapeSize])},null,8,["class"])),dr(e.$slots,"default",{},void 0,!0)],10,Lq)],2)}var Xs=we(Mq,[["render",jq],["__scopeId","data-v-13c695d9"]]);const Uq={components:{Checkbox:Xs,CheckboxGroup:bh},props:{modelValue:{type:Object,default:()=>({})},name:{type:String,default:"matrix"},rows:{type:Array,default:()=>[]},states:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},multiple:Boolean,rowOnly:Boolean},emits:["update:modelValue"],computed:{max(){return this.columns.length}},methods:{update(e,t){const r=Object.assign({},this.modelValue);e in r||(r[e]=[]),this.multiple&&this.rowOnly&&Object.keys(r).forEach(i=>{const a=r[i].indexOf(t);a!==-1&&r[i].splice(a,1)}),this.multiple||r[e].splice(0);const n=r[e].indexOf(t);n===-1?r[e].push(t):r[e].splice(n,1),Object.keys(r).forEach(i=>{r[i].length||delete r[i]}),this.$emit("update:modelValue",r)}}},zq={class:"w-full"},qq={class:"hidden md:flex justify-around pl-52"},Hq={class:"matrix__body"},Vq={class:"matrix__row_label flex md:w-52 items-center p-2"},Kq={class:"matrix__row_item_label inline-flex absolute items-center top-0 left-4 text-sm md:hidden"};function Gq(e,t,r,n,i,a){const o=ge("checkbox"),s=ge("checkbox-group");return V(),ae("div",zq,[ne("div",qq,[(V(!0),ae(vt,null,Gt(r.columns,(u,l)=>(V(),ae("div",{key:l,class:Ye(["matrix__header_item flex justify-center text-center grow break-words pb-4","opt-"+a.max])},We(u),3))),128))]),ne("div",Hq,[(V(!0),ae(vt,null,Gt(r.rows,(u,l)=>(V(),ae("div",{key:l,class:"matrix__row flex"},[ne("div",Vq,We(u),1),Ee(s,{class:"matrix__row_items flex justify-around focus:outline-none",name:r.name+l,state:r.states[l],multiple:r.multiple,shape:r.multiple&&r.rowOnly?"dot":"auto"},{default:Qe(()=>[(V(!0),ae(vt,null,Gt(r.columns,(c,f)=>(V(),Ge(o,{key:f,class:"matrix__row_item inline-flex grow focus:outline-none","label-class":"items-center justify-end md:justify-center",value:f,"model-value":r.modelValue[l]&&r.modelValue[l].indexOf(f)!==-1,"onUpdate:modelValue":d=>a.update(l,f)},{default:Qe(()=>[ne("span",Kq,We(c),1)]),_:2},1032,["value","model-value","onUpdate:modelValue"]))),128))]),_:2},1032,["name","state","multiple","shape"])]))),128))])])}var Wq=we(Uq,[["render",Gq],["__scopeId","data-v-fcad9902"]]);const Yq={components:{FieldLabel:hr,ElementWrapper:Rn,Matrix:Wq},props:{field:Object,pos:Number},emits:["redraw","update"],setup(e){const{field:t}=yt(e),{value:r,state:n,valid:i,fieldElementId:a,description:o,visibleDescription:s,oneChoicePerRow:u,oneChoicePerColumn:l,matrix:c,matrixRows:f,matrixColumns:d}=wt(t),p=tt(()=>s.value?o.value:null);return{value:r,state:n,valid:i,fieldElementId:a,description:p,oneChoicePerRow:u,oneChoicePerColumn:l,matrix:c,matrixRows:f,matrixColumns:d}},computed:{feedback(){return this.oneChoicePerColumn?this.$t("form.feedback.matrix",{context:"column"}):this.$t("form.feedback.matrix")}},watch:{state(){this.$emit("redraw")}},methods:{update(e){this.$emit("update",e)}}},Zq={class:"px-4 pb-8"},Jq={class:"w-full relative"};function Xq(e,t,r,n,i,a){const o=ge("field-label"),s=ge("matrix",!0),u=ge("element-wrapper");return V(),ae("div",Zq,[Ee(o,{field:r.field},null,8,["field"]),ne("div",Jq,[Ee(u,{label:n.description,"input-id":n.fieldElementId,feedback:a.feedback,state:n.valid},{default:Qe(()=>[Ee(s,{"model-value":n.value,name:n.fieldElementId,columns:n.matrixColumns,rows:n.matrixRows,states:n.state,multiple:!n.oneChoicePerRow,"row-only":n.oneChoicePerColumn,"onUpdate:modelValue":a.update},null,8,["model-value","name","columns","rows","states","multiple","row-only","onUpdate:modelValue"])]),_:1},8,["label","input-id","feedback","state"])])])}var Qq=we(Yq,[["render",Xq]]);function z6(e,t,r,n,i,a){const o=ht([]),s=ht("");Ks(()=>{const h=[];let b="";e.value.forEach(g=>{let v;Number.isInteger(g)?v=g-1:v=t.value.indexOf(g),v===-1&&h.indexOf(!0)===-1?(b=g,h.push(!0)):v!==-1&&(h.indexOf(v)===-1?h.push(v):h.indexOf(!0)===-1&&(b=g,h.push(!0)))}),(h.length||b)&&Ua(()=>{o.value=h,s.value=String(b)})});const u=()=>{o.value.splice(0),s.value="",a.emit("update:modelValue",[]),a.emit("update:indexes",[])},l=(h,b)=>{const g=o.value.indexOf(b);h&&g===-1?(r.value||o.value.splice(0),o.value.push(b)):!h&&g!==-1&&o.value.splice(g,1)},c=h=>{o.value.indexOf(h)===-1?(l(!0,h),d()):r.value&&(l(!1,h),d())},f=h=>{s.value=h,l(h,!0),d()},d=()=>{a.emit("update:indexes",o.value),a.emit("update:modelValue",o.value.filter(h=>h!==null).map(h=>h!==!0?t.value[h]!==void 0?t.value[h]:h+1:s.value)),!r.value&&!n.value&&a.emit("done")},p=h=>i.value?"Key"+String.fromCharCode(65+h).toUpperCase():null;return Vr(r,u),{selected:o,custom:s,flush:u,select:c,emitCustom:f,key:p}}const bm={nl:"Wissen",es:"Eliminar",fr:"Effacer",it:"Svuota",ru:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",de:"L\xF6schen",ja:"\u30AF\u30EA\u30A2",da:"Ryd",ms:"Bersihkan",id:"Jelas",tr:"Temizle",pt:"Limpar",lt:"I\u0161valyti",ro:"\u0218terge",sl:"Po\u010Disti",ar:"\u0645\u0633\u062D",af:"Duidelik",cs:"Smazat",hu:"T\xF6rl\xE9s",th:"\u0E25\u0E49\u0E32\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",he:"\u05DE\u05D7\u05D9\u05E7\u05D4",en:"Clear"},eH={components:{Grid:Yc,Cell:pa,CheckboxGroup:bh,Checkbox:Xs,ShortText:vh},props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:"multiple-choice"},state:{type:Boolean,default:null},multiple:{type:Boolean,default:!1},columns:{type:Number,default:2},options:{type:Array,default:()=>[]},customizable:{type:Boolean,default:!1},placeholder:String,boxes:{type:Boolean,default:!1},enableKeyBindings:{type:Boolean,default:!1},allowReset:Boolean,lang:{type:String,default:"en"}},emits:["update:modelValue","update:indexes","focus","blur","done","key:enter"],setup(e,t){const{modelValue:r,options:n}=yt(e),i=Dr(e,"multiple"),a=Dr(e,"customizable"),o=Dr(e,"enableKeyBindings"),{selected:s,custom:u,flush:l,select:c,emitCustom:f,key:d}=z6(r,n,i,a,o,t);return{selected:s,custom:u,flush:l,select:c,emitCustom:f,key:d}},data(){return{editing:!1,focusInterval:null}},expose:["focus","flush"],computed:{lblClear(){return this.lang in bm?bm[this.lang]:bm.en}},methods:{focus(){this.customizable&&this.$refs.customInput.focus()},focusCustom(){this.$emit("focus"),this.editing=!0},blurCustom(){this.$emit("blur"),this.editing=!1},keyEnterCustom(){this.$emit("key:enter"),this.$refs.customInput.blur()},handleKey(e){this.enableKeyBindings&&!this.editing&&(this.select(e),e===!0&&(this.focusInterval=setTimeout(()=>{this.focus(),clearInterval(this.focusInterval)},100)))}}},tH={class:"-mt-1"},rH={key:0,class:"print:hidden text-right"};function nH(e,t,r,n,i,a){const o=ge("checkbox"),s=ge("cell"),u=ge("short-text"),l=ge("grid"),c=ge("checkbox-group");return V(),Ge(c,{size:"md",name:r.name,state:r.state,multiple:r.multiple},{default:Qe(()=>[Ee(l,{columns:r.columns,gap:r.boxes?.8:0,appearance:r.boxes?"b":"a"},{default:Qe(()=>[(V(!0),ae(vt,null,Gt(r.options,(f,d)=>(V(),Ge(s,{key:d,class:"p-1.5",appearance:n.selected.indexOf(d)!==-1&&r.boxes?"c":void 0},{default:Qe(()=>[Ee(o,{class:Ye(["text-lg mt-1",r.boxes?"h-full w-full":"inline-flex"]),"key-code":n.key(d),value:d,"do-not-handle-key-binding":"","model-value":n.selected.indexOf(d)!==-1,"onUpdate:modelValue":p=>n.select(d),"onKey:binding":p=>a.handleKey(d)},{default:Qe(()=>[ne("div",tH,[dr(e.$slots,"label",{option:f},()=>[Qn(We(f),1)],!0)])]),_:2},1032,["class","key-code","value","model-value","onUpdate:modelValue","onKey:binding"])]),_:2},1032,["appearance"]))),128)),r.customizable?(V(),Ge(s,{key:0,class:"p-1.5",appearance:n.selected.indexOf(!0)!==-1&&r.boxes?"c":void 0},{default:Qe(()=>[Ee(o,{class:Ye(["mt-1",r.boxes?"h-full w-full":"inline-flex"]),"key-code":n.key(r.options.length),value:!0,"do-not-handle-key-binding":"","model-value":n.selected.indexOf(!0)!==-1,"onUpdate:modelValue":t[1]||(t[1]=f=>n.select(!0)),"onKey:binding":t[2]||(t[2]=f=>a.handleKey(!0))},{default:Qe(()=>[Ee(u,{ref:"customInput",modelValue:n.custom,"onUpdate:modelValue":[t[0]||(t[0]=f=>n.custom=f),n.emitCustom],class:"w-full -mt-1",type:"text",name:r.name+"-custom",placeholder:r.placeholder,state:r.state,onFocus:a.focusCustom,onBlur:a.blurCustom,"onKey:enter":a.keyEnterCustom},null,8,["modelValue","name","placeholder","state","onUpdate:modelValue","onFocus","onBlur","onKey:enter"])]),_:1},8,["class","key-code","model-value"])]),_:1},8,["appearance"])):ct("",!0)]),_:3},8,["columns","gap","appearance"]),r.allowReset?(V(),ae("div",rH,[ne("button",{class:"clear cursor-pointer p-2 text-sm opacity-50 hover:opacity-100 focus:outline-none focus-visible:outline-none",onClick:t[3]||(t[3]=(...f)=>n.flush&&n.flush(...f))},We(a.lblClear),1)])):ct("",!0)]),_:3},8,["name","state","multiple"])}var q6=we(eH,[["render",nH],["__scopeId","data-v-78ed13ac"]]);const iH={components:{FieldLabel:hr,ElementWrapper:Rn,MultipleChoiceViewer:q6},props:{field:Object,pos:Number},emits:["focus","update","done"],setup(e,{emit:t}){const{field:r}=yt(e),{value:n,state:i,fieldElementId:a,description:o,visibleDescription:s,required:u,options:l,multiple:c,styled:f,shuffle:d,hasLimits:p,choiceMin:h,choiceMax:b,allowAddOption:g,placeholder:v,columns:S}=wt(r),w=ht(null),{focus:D}=Ti(t,Dr(e,"pos"),[w]),_=tt(()=>s.value?o.value:null);return{value:n,state:i,fieldElementId:a,required:u,description:_,options:l,multiple:c,styled:f,shuffle:d,hasLimits:p,min:h,max:b,allowAddOption:g,placeholder:v,columns:S,focus:D}},computed:{...bt({keyBindings:"page/keyBindings",lang:"page/language"}),enableKeyBindings(){return this.keyBindings(this.field.type)},feedback(){return this.$t("form.feedback.multiple-choice",{context:this.min===this.max?"exact":"",min:this.min,max:this.max})}}},aH={class:"px-4 pb-8"},oH={class:"w-full relative"};function sH(e,t,r,n,i,a){const o=ge("field-label"),s=ge("multiple-choice-viewer"),u=ge("element-wrapper");return V(),ae("div",aH,[Ee(o,{field:r.field},null,8,["field"]),ne("div",oH,[Ee(u,{label:n.description,"input-id":n.fieldElementId},{default:Qe(()=>[Ee(s,{ref:"viewer",name:n.fieldElementId,"model-value":n.value,state:n.state,options:n.options,columns:n.columns,multiple:n.multiple,customizable:n.allowAddOption,placeholder:n.placeholder,boxes:n.styled,"show-key-bindings":a.enableKeyBindings,"enable-key-bindings":a.enableKeyBindings,lang:e.lang,"allow-reset":!n.multiple&&!n.required&&!n.allowAddOption,"onUpdate:modelValue":t[0]||(t[0]=l=>e.$emit("update",l)),onFocus:t[1]||(t[1]=l=>e.$emit("focus")),onDone:t[2]||(t[2]=l=>e.$emit("done"))},null,8,["name","model-value","state","options","columns","multiple","customizable","placeholder","boxes","show-key-bindings","enable-key-bindings","lang","allow-reset"]),Fr(ne("div",{class:"error-feedback w-full mt-1 text-[80%]"},We(a.feedback),513),[[$r,n.hasLimits&&n.state===!1]])]),_:1},8,["label","input-id"])])])}var uH=we(iH,[["render",sH],["__scopeId","data-v-6af16664"]]);const lH={components:{Checkbox:Xs},props:{modelValue:Boolean,name:String,label:String,description:String,showDescription:Boolean,enableKeyBindings:Boolean},emits:["update:modelValue"],computed:{keyCode(){return this.enableKeyBindings?this.modelValue?"KeyN":"KeyY":null}}},cH={class:"flex"},fH={class:"text-lg ml-0.5"},dH={key:0,class:"text-base opacity-40 ml-8"};function pH(e,t,r,n,i,a){const o=ge("checkbox");return V(),ae("div",null,[ne("div",cH,[Ee(o,{name:r.name,size:"lg",multiple:"","enable-key-bindings":r.enableKeyBindings,"key-code":a.keyCode,"model-value":r.modelValue,"onUpdate:modelValue":t[0]||(t[0]=s=>e.$emit("update:modelValue",s))},{default:Qe(()=>[ne("span",fH,We(r.label),1)]),_:1},8,["name","enable-key-bindings","key-code","model-value"])]),r.showDescription?(V(),ae("div",dH,We(r.description),1)):ct("",!0)])}var hH=we(lH,[["render",pH]]);const mH={components:{NewsletterSignupViewer:hH},props:{field:Object,pos:Number},emits:["update"],setup(e){const{field:t}=yt(e),{label:r,value:n,fieldElementId:i,description:a,visibleDescription:o}=wt(t);return{label:r,value:n,fieldElementId:i,description:a,visibleDescription:o}},computed:{...bt({keyBindings:"page/keyBindings"}),enableKeyBindings(){return this.keyBindings(this.field.type)}}},vH={class:"pr-4 pl-12.5 pb-8"};function gH(e,t,r,n,i,a){const o=ge("newsletter-signup-viewer");return V(),ae("div",vH,[Ee(o,{name:n.fieldElementId,"model-value":n.value,label:n.label,description:n.description,"show-description":n.visibleDescription,"enable-key-bindings":a.enableKeyBindings,"onUpdate:modelValue":t[0]||(t[0]=s=>e.$emit("update",s))},null,8,["name","model-value","label","description","show-description","enable-key-bindings"])])}var yH=we(mH,[["render",gH]]);const bH={components:{FieldLabel:hr,FieldInput:gl},props:{field:Object,pos:Number},emits:["focus","focus:next","redraw","update"],setup(e,{emit:t}){const r=ht(null),{focus:n,focusNext:i}=Ti(t,Dr(e,"pos"),[r]);return{number:r,focus:n,focusNext:i}}},wH={class:"px-4 pb-8"},_H={class:"w-full relative"};function xH(e,t,r,n,i,a){const o=ge("field-label"),s=ge("field-input");return V(),ae("div",wH,[Ee(o,{field:r.field},null,8,["field"]),ne("div",_H,[Ee(s,{ref:"number",name:"number",type:"number",field:r.field,onFocus:t[0]||(t[0]=u=>e.$emit("focus")),"onKey:enter":t[1]||(t[1]=u=>n.focusNext()),onRedraw:t[2]||(t[2]=u=>e.$emit("redraw")),onUpdate:t[3]||(t[3]=u=>e.$emit("update",u))},null,8,["field"])])])}var EH=we(bH,[["render",xH]]);const wm={nl:"Gelieve een product te kiezen",es:"Por favor, seleccione un producto",fr:"Veuillez choisir un produit",it:"Seleziona un prodotto",ru:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043F\u0440\u043E\u0434\u0443\u043A\u0442",de:"Bitte w\xE4hlen Sie ein Produkt aus",ja:"\u88FD\u54C1\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",da:"V\xE6lg venligst et produkt",ms:"Sila pilih produk",id:"Silakan pilih produk",tr:"L\xFCtfen bir \xFCr\xFCn se\xE7in",pt:"Por favor selecione um produto",lt:"Pra\u0161ome pasirinkti produkt\u0105",ro:"Te rug\u0103m s\u0103 selectezi un produs",sl:"Izberite izdelek",ar:"\u0641\u0636\u0644\u0627 \u0627\u062E\u062A\u0631 \u0627\u0644\u0645\u0646\u062A\u062C",af:"Kies 'n produk",cs:"Zvolte produkt, pros\xEDm",hu:"V\xE1lasszon egy term\xE9ket",th:"\u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32",he:"\u05E0\u05D0 \u05DC\u05D1\u05D7\u05D5\u05E8 \u05DE\u05D5\u05E6\u05E8",en:"Please select a product"},DH={props:{lang:{type:String,default:"en"}},computed:{label(){return this.lang in wm?wm[this.lang]:wm.en}}},SH={class:"feedback mb-4 text-xs"};function CH(e,t,r,n,i,a){return V(),ae("div",SH,We(a.label),1)}var AH=we(DH,[["render",CH],["__scopeId","data-v-2d6a488b"]]);function H6(e,t,r,n,i){if(isNaN(e)&&(e="0.00"),r)try{return Number(e).toLocaleString(t,{style:"currency",currency:n,currencyDisplay:i})}catch{return e+" "+n}else return e+" "+n}const _m={af:"Totaal",nl:"Totaal",it:"Totale",ru:"\u0418\u0442\u043E\u0433\u043E",de:"Summe",ja:"\u5408\u8A08",da:"I alt",ms:"Jumlah keseluruhan",id:"Jumlah",tr:"Toplam",lt:"Viso",sl:"Skupaj",ar:"\u0627\u0644\u0625\u062C\u0645\u0627\u0644\u064A",cs:"Celkem",hu:"\xD6sszesen",th:"\u0E22\u0E2D\u0E14\u0E23\u0E27\u0E21",he:"\u05E1\u05DA \u05D4\u05DB\u05DC",en:"Total"},NH={props:{total:Number,localized:Boolean,locale:String,currencyDisplay:String,currency:String,lang:String,summaryProducts:Array},computed:{label(){return this.lang in _m?_m[this.lang]:_m.en},_total(){return this.format(this.summaryProducts.reduce((e,t)=>Number(e)+Number(t.price),this.total))}},methods:{format(e){return H6(Number(e).toFixed(2),this.locale,this.localized,this.currency,this.currencyDisplay)}}},TH={class:"total border-t pt-3 pb-4"},kH={class:"pl-7 text-base"},OH={class:"font-bold text-right text-base"},FH={class:"flex justify-between"},$H={class:"pl-7 text-lg"},BH={class:"font-bold text-right text-lg"};function PH(e,t,r,n,i,a){return V(),ae("div",TH,[(V(!0),ae(vt,null,Gt(r.summaryProducts,(o,s)=>(V(),ae("div",{key:s,class:"flex justify-between"},[ne("div",kH,We(o.name),1),ne("div",OH,We(a.format(o.price)),1)]))),128)),ne("div",FH,[ne("div",$H,We(a.label),1),ne("div",BH,We(a._total),1)])])}var IH=we(NH,[["render",PH],["__scopeId","data-v-7ae39f8a"]]);const MH={props:{modelValue:{type:Number,default:0},step:{type:Number,default:1},min:{type:Number,default:0},max:{type:Number,default:1e4},name:String,readonly:{type:Boolean,default:!1},noButtons:{type:Boolean,default:!1}},emits:["update:modelValue"],data(){return{localValue:null,hasFocus:!1,interval:null,timerDelay:null,timerRepeat:null}},computed:{id(){return"sb_"+Math.random().toString(36).substring(2)},btnCls(){const e=["spin-btn relative h-8 w-8","before:absolute before:transition-all before:h-0.5 before:top-1/2 before:left-1/2 before:-translate-y-1/2 before:-translate-x-1/2",this.hasFocus?"before:w-3.5 hover:before:w-4":this.readonly?"before:w-2.5 before:opacity-10":"before:w-2.5 hover:before:w-3.5"];return{min:e,plus:e.concat(["after:absolute after:transition-all after:w-0.5 after:top-1/2 after:left-1/2 after:-translate-y-1/2 after:-translate-x-1/2",this.hasFocus?"after:h-3.5 hover:after:h-4":this.readonly?"after:h-2.5 after:opacity-10":"after:h-2.5 hover:after:h-3.5"])}}},watch:{modelValue:{handler(e){this.localValue=e},immediate:!0}},methods:{onFocusBlur(e){this.hasFocus=this.readonly?!1:e.type==="focus"},flushTimers(){clearTimeout(this.timerDelay),clearInterval(this.timerRepeat),this.timerDelay=null,this.timerRepeat=null},makeSafe(e){return e=Number(e),e=isNaN(e)?this.min:e,Math.min(this.max,Math.max(this.min,e))},makeStep(e){this.localValue=this.makeSafe(this.localValue+e)},start(e,t){const{type:r,button:n}=event||{};if(!this.readonly){if(r==="mousedown"&&n)return;e.preventDefault(),document.documentElement.addEventListener("mouseup",this.stop),document.documentElement.addEventListener("touchend",this.stop),this.flushTimers(),this.makeStep(t);try{this.$refs.value.focus()}catch{}this.timerDelay=setTimeout(()=>{let i=0;this.timerRepeat=setInterval(()=>{this.makeStep(i<10?t:t*5*Math.floor(i/7)),i++},100)},500)}},stop(e){const{type:t,button:r}=e||{};t==="mouseup"&&r||(e.preventDefault(),this.flushTimers(),document.documentElement.removeEventListener("mouseup",this.stop),document.documentElement.removeEventListener("touchend",this.stop),this.$emit("update:modelValue",this.makeSafe(this.localValue)))}}},RH=["name","value"],LH=["aria-controls","disabled","aria-disabled"],jH=["id","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext"],UH={class:"block focus:outline-none focus-visible:outline-none min-w-fit h-6 text-center"},zH=["aria-controls","disabled","aria-disabled"];function qH(e,t,r,n,i,a){return V(),ae("div",{role:"group",tabindex:"-1",class:Ye(["spin-grp flex items-center rounded border b-svg-color bg-transparent text-sm transition-shadow",{shadow:i.hasFocus}]),onFocus:t[13]||(t[13]=(...o)=>a.onFocusBlur&&a.onFocusBlur(...o)),onBlur:t[14]||(t[14]=(...o)=>a.onFocusBlur&&a.onFocusBlur(...o))},[ne("input",{type:"hidden",name:r.name,value:i.localValue},null,8,RH),r.noButtons?ct("",!0):(V(),ae("button",{key:0,tabindex:"-1",type:"button","aria-label":"Decrement",class:Ye(a.btnCls.min),"aria-controls":a.id,disabled:r.readonly?"disabled":null,"aria-disabled":r.readonly,onMousedown:t[0]||(t[0]=o=>a.start(o,-1*r.step)),onTouchstart:t[1]||(t[1]=o=>a.start(o,-1*r.step))},null,42,LH)),ne("output",{id:a.id,ref:"value",class:Ye(["grow px-1 py-1 b-svg-color inline-block focus:outline-none focus-visible:outline-none",{"border-x":!r.noButtons}]),dir:"ltr",role:"spinbutton",tabindex:"0","aria-valuemin":r.min,"aria-valuemax":r.max,"aria-valuenow":i.localValue,"aria-valuetext":i.localValue,onFocus:t[2]||(t[2]=(...o)=>a.onFocusBlur&&a.onFocusBlur(...o)),onBlur:t[3]||(t[3]=(...o)=>a.onFocusBlur&&a.onFocusBlur(...o)),onKeydown:[t[4]||(t[4]=Yn(o=>a.start(o,r.step),["arrow-up"])),t[5]||(t[5]=Yn(o=>a.start(o,-1*r.step),["arrow-down"])),t[6]||(t[6]=Yn(ur(o=>a.makeStep(-10*r.step),["prevent"]),["page-down"])),t[7]||(t[7]=Yn(ur(o=>a.makeStep(10*r.step),["prevent"]),["page-up"])),t[8]||(t[8]=Yn(ur(o=>e.$emit("update:modelValue",r.max),["prevent"]),["end"])),t[9]||(t[9]=Yn(ur(o=>e.$emit("update:modelValue",r.min),["prevent"]),["home"]))],onKeyup:t[10]||(t[10]=(...o)=>a.stop&&a.stop(...o))},[ne("bdi",UH,We(i.localValue),1)],42,jH),r.noButtons?ct("",!0):(V(),ae("button",{key:1,tabindex:"-1",type:"button","aria-label":"Increment",class:Ye(a.btnCls.plus),"aria-controls":a.id,disabled:r.readonly?"disabled":null,"aria-disabled":r.readonly,onMousedown:t[11]||(t[11]=o=>a.start(o,r.step)),onTouchstart:t[12]||(t[12]=o=>a.start(o,r.step))},null,42,zH))],34)}var HH=we(MH,[["render",qH],["__scopeId","data-v-984dc70a"]]);const xm={nl:"Niet beschikbaar",es:"No disponible",fr:"Pas disponible",it:"Non disponibile",ru:"\u041D\u0435\u0442 \u0432 \u043D\u0430\u043B\u0438\u0447\u0438\u0438",de:"Nicht verf\xFCgbar",ja:"\u5229\u7528\u4E0D\u53EF",da:"Ikke tilg\xE6ngelig",ms:"Tidak tersedia",id:"Tidak tersedia",tr:"M\xFCsait de\u011Fil",pt:"N\xE3o dispon\xEDvel",lt:"Nepasiekiamas",ro:"Nu este disponibil",sl:"Ni na voljo",ar:"\u063A\u064A\u0631 \u0645\u062A\u0627\u062D",af:"Nie beskikbaar nie",cs:"Nen\xED dostupn\xFD",hu:"Nem el\xE9rhet\u0151",en:"Not available"},VH={props:{lang:{type:String,default:"en"}},computed:{label(){return this.lang in xm?xm[this.lang]:xm.en}}},KH={class:"out-of-stock text-xs italic"};function GH(e,t,r,n,i,a){return V(),ae("div",KH,We(a.label),1)}var WH=we(VH,[["render",GH],["__scopeId","data-v-3d5282f2"]]);const YH=10,Em={nl:"Nog maar <strong>{{count}}</strong> op voorraad",es:"S\xF3lo quedan <strong>{{count}}</strong>",fr:"Seulement <strong>{{count}}</strong> restants dans le stock",it:"Solo <strong>{{count}}</strong> ancora disponibili",ru:"\u0412 \u043D\u0430\u043B\u0438\u0447\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C \u0432\u0441\u0435\u0433\u043E <strong>{{count}}</strong>",de:"Nur noch <strong>{{count}}</strong> \xFCbrig",ja:"\u5728\u5EAB\u6B8B\u308A<strong>{{count}}</strong>\u500B",da:"Kun <strong>{{count}}</strong> tilbage p\xE5 lager",ms:"Tinggal <strong>{{count}}</strong> lagi",id:"Hanya <strong>{{count}}</strong> yang tersisa",tr:"Sadece <strong>{{count}}</strong> tane kald\u0131",pt:"Apenas <strong>{{count}}</strong> restantes no estoque",lt:"Sand\u0117lyje liko tik <strong>{{count}}</strong> vnt",ro:"Au mai ramas doar <strong>{{count}}</strong>",sl:"Samo \u0161e <strong>{{count}}</strong> na zalogi",ar:"\u0641\u0642\u0637 <strong>{{count}}</strong> \u0627\u0644\u0645\u062A\u0628\u0642\u064A\u0629 \u0641\u064A \u0627\u0644\u0645\u062E\u0632\u0646",af:"Slegs <strong>{{count}}</strong> oor in voorraad",cs:"Zb\xFDv\xE1 jen <strong>{{count}}</strong>",hu:"M\xE1r csak <strong>{{count}}</strong> darab maradt rakt\xE1ron",en:"Only <strong>{{count}}</strong> left"},a3=(e,t)=>{var r,n;return e.name===t.name&&((r=e.price)!=null?r:"0.00")===((n=t.price)!=null?n:"0.00")},ZH={components:{CheckboxGroup:bh,Checkbox:Xs,SpinButton:HH,OutOfStock:WH},props:{modelValue:{type:Array,default:()=>[]},name:String,state:Boolean,readonly:Boolean,allChecked:Boolean,multiple:Boolean,localized:Boolean,locale:String,currencyDisplay:String,currency:String,step:Number,showQuantity:Boolean,showPrice:Boolean,products:Array,inventory:Array,lang:String},emits:["update:modelValue","focus"],data(){return{quantities:[],selected:[],productsInStock:[]}},watch:{products:{handler:function(){this.init()},immediate:!0,deep:!0},modelValue:{handler:function(){this.init()},immediate:!0,deep:!0}},methods:{init(){this.quantities=this.products.map(e=>this.modelValue.find(t=>a3(e,t))).map(e=>e!==void 0?e.quantity:0),this.selected=this.modelValue.map(e=>this.products.findIndex(t=>a3(t,e))).filter(e=>e!==-1),this.productsInStock=this.products.map(e=>Object.assign({},e,{stock:this.stock(e)}))},price(e,t){return H6((Number(e)*Math.max(this.step,this.quantities[t])).toFixed(2),this.locale,this.localized,this.currency,this.currencyDisplay)},quantity(e,t){this.quantities[e]<t&&this.selected.indexOf(e)===-1&&(this.multiple?this.selected.push(e):this.selected.splice(0,this.selected.length,e)),this.quantities[e]!==t&&(this.quantities[e]=t,this.emit())},stock(e){const t=this.inventory.find(r=>r.name===e.name);return t&&"stock"in t?Number(t.stock):99999},is_low_on_stock(e){return e.stock&&this.showQuantity&&Number(e.stock)<YH},i18n_low_on_stock(e){return(this.lang in Em?Em[this.lang]:Em.en).replace("{{count}}",Number(e.stock))},select(e,t){const r=this.selected.indexOf(e);t?(this.multiple||this.selected.splice(0),this.selected.push(e)):!t&&r!==-1&&this.selected.splice(r,1),this.selected.forEach(n=>{this.quantities.splice(n,1,Math.max(this.step,this.quantities[n]))}),this.quantities.forEach((n,i)=>{n&&this.selected.indexOf(i)===-1&&this.quantities.splice(i,1,0)}),this.emit()},emit(){this.$emit("update:modelValue",this.selected.map(e=>e in this.products&&this.quantities[e]>0?{...this.products[e],name:this.products[e].name,price:this.products[e].price!==void 0?this.products[e].price:"0.00",quantity:this.quantities[e]}:null).filter(e=>e!==null))}}},JH={class:"text-lg -mt-1"},XH=["innerHTML"],QH={key:2,class:"grow text-right font-bold text-lg sm:w-36"};function eV(e,t,r,n,i,a){const o=ge("checkbox"),s=ge("spin-button"),u=ge("out-of-stock"),l=ge("checkbox-group");return V(),Ge(l,{name:r.name,state:r.state,multiple:r.multiple,readonly:r.readonly},{default:Qe(()=>[(V(!0),ae(vt,null,Gt(i.productsInStock,(c,f)=>(V(),ae("div",{key:f,class:"flex flex-wrap sm:flex-nowrap justify-between items-center mt-3 mb-4"},[ne("div",{class:Ye(["basis-full sm:basis-2/3",{"opacity-40 line-through":!c.stock}])},[Ee(o,{multiple:r.multiple,value:f,"model-value":r.allChecked||i.selected.indexOf(f)!==-1,readonly:!c.stock,"onUpdate:modelValue":d=>a.select(f,d)},{default:Qe(()=>[ne("span",JH,We(c.name),1)]),_:2},1032,["multiple","value","model-value","readonly","onUpdate:modelValue"]),a.is_low_on_stock(c)?(V(),ae("div",{key:0,class:"low-on-stock text-xs italic ml-7",innerHTML:a.i18n_low_on_stock(c)},null,8,XH)):ct("",!0)],2),ne("div",{class:Ye(["flex flex-wrap sm:flex-nowrap grow items-center",r.showPrice?"justify-between":"justify-end"])},[c.stock&&r.showQuantity?(V(),Ge(s,{key:0,"model-value":i.quantities[f],max:c.stock,class:"w-36 ml-7",readonly:r.readonly,name:r.name+"-quantity-"+f,step:r.step,"onUpdate:modelValue":d=>a.quantity(f,d)},null,8,["model-value","max","readonly","name","step","onUpdate:modelValue"])):c.stock?ct("",!0):(V(),Ge(u,{key:1,class:Ye(["w-36",!r.showPrice&&!r.showQuantity?"text-right":"text-center"]),lang:r.lang},null,8,["class","lang"])),r.showPrice?(V(),ae("div",QH,We(c.noPrice?"":a.price(c.price,f)),1)):ct("",!0)],2)]))),128))]),_:1},8,["name","state","multiple","readonly"])}var tV=we(ZH,[["render",eV],["__scopeId","data-v-b1bad45a"]]);const rV={components:{Feedback:AH,Total:IH,Positions:tV},props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:"order-cart"},state:{type:Boolean,default:null},allChecked:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},localized:{type:Boolean,default:!1},locale:{type:String,default:"en-US"},currencyDisplay:{type:String,default:"symbol"},currency:{type:String,default:"USD"},step:{type:Number,default:1},showQuantity:{type:Boolean,default:!0},showPrice:{type:Boolean,default:!0},showTotal:{type:Boolean,default:!0},products:{type:Array,default:()=>[]},inventory:{type:Array,default:()=>[]},summaryProducts:{type:Array,default:()=>[]},lang:{type:String,default:"en"}},emits:["update:modelValue","focus"],computed:{total(){return this.modelValue.reduce((e,t)=>e+Number(t.price)*Number(t.quantity),0)}},expose:["flush"],watch:{multiple(){this.flush()}},methods:{flush(){this.$emit("update:modelValue",[])},emit(e){this.$emit("focus"),this.$emit("update:modelValue",e)}}};function nV(e,t,r,n,i,a){const o=ge("positions"),s=ge("feedback"),u=ge("total");return V(),ae("div",null,[Ee(o,{ref:"positions","model-value":r.modelValue,currency:r.currency,"currency-display":r.currencyDisplay,locale:r.locale,localized:r.localized,multiple:r.multiple,name:r.name,products:r.products,inventory:r.inventory,"all-checked":r.allChecked,readonly:r.readonly,"show-price":r.showPrice,"show-quantity":r.showQuantity,state:r.state,step:r.step,lang:r.lang,"onUpdate:modelValue":a.emit},null,8,["model-value","currency","currency-display","locale","localized","multiple","name","products","inventory","all-checked","readonly","show-price","show-quantity","state","step","lang","onUpdate:modelValue"]),Fr(Ee(s,{lang:r.lang},null,8,["lang"]),[[$r,r.state===!1]]),r.showTotal&&(r.showPrice||r.summaryProducts.length>0)?(V(),Ge(u,{key:0,total:a.total,currency:r.currency,"currency-display":r.currencyDisplay,lang:r.lang,locale:r.locale,localized:r.localized,"summary-products":r.summaryProducts},null,8,["total","currency","currency-display","lang","locale","localized","summary-products"])):ct("",!0)])}var iV=we(rV,[["render",nV]]);const aV={components:{ElementWrapper:Rn,OrderCart:iV},inject:["inventory"],props:{field:Object,pos:Number},emits:["focus","update"],setup(e){const{field:t}=yt(e),{value:r,state:n,fieldElementId:i,description:a,visibleDescription:o,multiple:s,products:u,localized:l,currencyLocale:c,noQuantity:f,noPrice:d,noTotal:p,currency:h,currencyDisplay:b,connectedToInventory:g}=wt(t),v=tt(()=>o.value?a.value:null),S=tt(()=>g.value?Xi("inventory").value.map(w=>Object.assign({},"stock"in w?{name:w.name,stock:w.stock}:{name:w.name})):[]);return{value:r,state:n,fieldElementId:i,description:v,multiple:s,products:u,localized:l,currencyLocale:c,noQuantity:f,noPrice:d,noTotal:p,currency:h,currencyDisplay:b,inventory:S}},computed:{...bt({lang:"page/language"})},methods:{input(e){this.$emit("focus"),this.$emit("update",e)}}};function oV(e,t,r,n,i,a){const o=ge("order-cart"),s=ge("element-wrapper");return V(),Ge(s,{label:n.description,state:n.state},{default:Qe(()=>[Ee(o,{"model-value":n.value,name:n.fieldElementId,multiple:n.multiple,localized:n.localized,locale:n.currencyLocale,"currency-display":n.currencyDisplay,"show-quantity":!n.noQuantity,"show-price":!n.noPrice,"show-total":!n.noTotal,currency:n.currency,products:n.products,inventory:n.inventory,lang:e.lang,state:n.state,"onUpdate:modelValue":a.input,onFocus:t[0]||(t[0]=u=>e.$emit("focus"))},null,8,["model-value","name","multiple","localized","locale","currency-display","show-quantity","show-price","show-total","currency","products","inventory","lang","state","onUpdate:modelValue"])]),_:1},8,["label","state"])}var V6=we(aV,[["render",oV]]);const sV={components:{FieldLabel:hr,PaymentCart:V6},props:{field:Object,pos:Number},emits:["focus","update"]},uV={class:"px-4 pb-8"},lV={class:"w-full relative"};function cV(e,t,r,n,i,a){const o=ge("field-label"),s=ge("payment-cart");return V(),ae("div",uV,[Ee(o,{field:r.field},null,8,["field"]),ne("div",lV,[Ee(s,{field:r.field,onFocus:t[0]||(t[0]=u=>e.$emit("focus")),onUpdate:t[1]||(t[1]=u=>e.$emit("update",u))},null,8,["field"])])])}var fV=we(sV,[["render",cV]]);const dV={components:{FieldInput:gl},props:{field:Object,pos:Number,readonly:{type:Boolean,default:!1}},emits:["focus","redraw","update"],setup(e){const{field:t}=yt(e),{currency:r}=wt(t);return{currency:r}}},pV={class:"absolute bottom-0 right-6"};function hV(e,t,r,n,i,a){const o=ge("field-input");return V(),ae(vt,null,[Ee(o,{name:"amount",type:"number",readonly:r.readonly,field:r.field,onFocus:t[0]||(t[0]=s=>e.$emit("focus")),onRedraw:t[1]||(t[1]=s=>e.$emit("redraw")),onUpdate:t[2]||(t[2]=s=>e.$emit("update",s))},null,8,["readonly","field"]),ne("span",pV,We(n.currency),1)],64)}var mV=we(dV,[["render",hV]]);const vV={components:{FieldLabel:hr,PaymentCart:V6,PaymentSingle:mV},props:{field:Object,pos:Number},emits:["focus","update"],setup(e){const{field:t}=yt(e),{paymentType:r}=wt(t);return{paymentType:r}},computed:{component(){switch(this.paymentType){case"cart":return"payment-cart";case"fixed":case"custom":default:return"payment-single"}},properties(){switch(this.paymentType){case"cart":return{field:this.field,pos:this.pos};case"fixed":return{field:this.field,pos:this.pos,readonly:!0};case"custom":default:return{field:this.field,pos:this.pos}}}}},gV={class:"px-4 pb-8"},yV={class:"w-full relative"};function bV(e,t,r,n,i,a){const o=ge("field-label");return V(),ae("div",gV,[Ee(o,{field:r.field},null,8,["field"]),ne("div",yV,[(V(),Ge(Cr(a.component),ei(a.properties,{onFocus:t[0]||(t[0]=s=>e.$emit("focus")),onUpdate:t[1]||(t[1]=s=>e.$emit("update",s))}),null,16))])])}var wV=we(vV,[["render",bV]]);const _V={components:{FieldLabel:hr,FieldInput:gl},props:{field:Object,pos:Number},emits:["focus","focus:next","redraw","update"],setup(e,{emit:t}){const r=ht(null),{focus:n,focusNext:i}=Ti(t,Dr(e,"pos"),[r]);return{phone:r,focus:n,focusNext:i}}},xV={class:"px-4 pb-8"},EV={class:"w-full relative"};function DV(e,t,r,n,i,a){const o=ge("field-label"),s=ge("field-input");return V(),ae("div",xV,[Ee(o,{field:r.field},null,8,["field"]),ne("div",EV,[Ee(s,{ref:"phone",name:"phone",type:"tel",field:r.field,onFocus:t[0]||(t[0]=u=>e.$emit("focus")),"onKey:enter":t[1]||(t[1]=u=>n.focusNext()),onRedraw:t[2]||(t[2]=u=>e.$emit("redraw")),onUpdate:t[3]||(t[3]=u=>e.$emit("update",u))},null,8,["field"])])])}var SV=we(_V,[["render",DV]]);const CV={components:{Grid:Yc,Cell:pa,CheckboxGroup:bh,Checkbox:Xs,ImageWrapper:v6},props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:"picture-choice"},state:{type:Boolean,default:null},multiple:Boolean,showLabels:Boolean,columns:{type:Number,default:2},options:{type:Array,default:()=>[]},enableKeyBindings:{type:Boolean,default:!1}},emits:["update:modelValue","update:indexes","done","loaded"],expose:["flush"],setup(e,t){const{modelValue:r,options:n}=yt(e),i=Dr(e,"showLabels"),a=Dr(e,"multiple"),o=Dr(e,"enableKeyBindings"),s=tt(()=>i.value?n.value.map(d=>d.name):n.value.map((d,p)=>p+1)),{selected:u,flush:l,select:c,key:f}=z6(r,s,a,ht(!1),o,t);return{selected:u,flush:l,select:c,key:f}}},AV={class:"min-h-[1.75rem]"};function NV(e,t,r,n,i,a){const o=ge("image-wrapper"),s=ge("checkbox"),u=ge("cell"),l=ge("grid"),c=ge("checkbox-group");return V(),Ge(c,{size:"md",name:r.name,state:r.state,multiple:r.multiple},{default:Qe(()=>[Ee(l,{columns:r.columns,gap:"0.8",appearance:"d"},{default:Qe(()=>[(V(!0),ae(vt,null,Gt(r.options,(f,d)=>(V(),Ge(u,{key:d,class:"p-1.5 flex flex-col",appearance:n.selected.indexOf(d)!==-1?"e":void 0},{default:Qe(()=>[Ee(o,{class:"hover:cursor-pointer pb-3",source:f.value,onClick:p=>n.select(d),onLoad:t[0]||(t[0]=p=>e.$emit("loaded"))},null,8,["source","onClick"]),ne("div",AV,[Ee(s,{class:"h-full w-full","label-class":{"justify-center":!r.showLabels},"key-code":n.key(d),value:d,"model-value":n.selected.indexOf(d)!==-1,"onUpdate:modelValue":p=>n.select(d)},{default:Qe(()=>[Fr(ne("span",{class:"text-lg break-words -mt-1"},We(f.name),513),[[$r,r.showLabels]])]),_:2},1032,["label-class","key-code","value","model-value","onUpdate:modelValue"])])]),_:2},1032,["appearance"]))),128))]),_:1},8,["columns"])]),_:1},8,["name","state","multiple"])}var TV=we(CV,[["render",NV]]);const kV={components:{FieldLabel:hr,ElementWrapper:Rn,PictureChoiceViewer:TV},props:{field:Object,pos:Number},emits:["focus","redraw","update","done"],setup(e,{emit:t}){const{field:r}=yt(e),{value:n,state:i,fieldElementId:a,description:o,visibleDescription:s,items:u,multiple:l,styled:c,visibleLabels:f,shuffle:d,hasLimits:p,choiceMin:h,choiceMax:b,allowAddOption:g,placeholder:v,columns:S}=wt(r),w=ht(null),{focus:D}=Ti(t,Dr(e,"pos"),[w]),_=tt(()=>s.value?o.value:null);return{value:n,state:i,fieldElementId:a,description:_,items:u,multiple:l,styled:c,visibleLabels:f,shuffle:d,hasLimits:p,min:h,max:b,allowAddOption:g,placeholder:v,columns:S,focus:D}},computed:{...bt({keyBindings:"page/keyBindings"}),enableKeyBindings(){return this.keyBindings(this.field.type)},feedback(){return this.$t("form.feedback.multiple-choice",{context:this.min===this.max?"exact":"",min:this.min,max:this.max})}}},OV={class:"px-4 pb-8"},FV={class:"w-full relative"};function $V(e,t,r,n,i,a){const o=ge("field-label"),s=ge("picture-choice-viewer"),u=ge("element-wrapper");return V(),ae("div",OV,[Ee(o,{field:r.field},null,8,["field"]),ne("div",FV,[Ee(u,{label:n.description,"input-id":n.fieldElementId},{default:Qe(()=>[Ee(s,{ref:"viewer",name:n.fieldElementId,"model-value":n.value,state:n.state,options:n.items,columns:n.columns,multiple:n.multiple,"show-labels":n.visibleLabels,"enable-key-bindings":a.enableKeyBindings,"onUpdate:modelValue":t[0]||(t[0]=l=>e.$emit("update",l)),onFocus:t[1]||(t[1]=l=>e.$emit("focus")),onLoaded:t[2]||(t[2]=l=>e.$emit("redraw")),onDone:t[3]||(t[3]=l=>e.$emit("done"))},null,8,["name","model-value","state","options","columns","multiple","show-labels","enable-key-bindings"]),Fr(ne("div",{class:"error-feedback w-full mt-1 text-[80%]"},We(a.feedback),513),[[$r,n.hasLimits&&n.state===!1]])]),_:1},8,["label","input-id"])])])}var BV=we(kV,[["render",$V],["__scopeId","data-v-73ba9430"]]);const PV={props:{modelValue:Number,name:{type:String,default:"scale"},state:{type:Boolean,default:null},shape:{type:String,default:"dot"},options:{type:Array,default:()=>[]},enableKeyBindings:{type:Boolean,default:!1}},emits:["update:modelValue","done"],computed:{max(){return this.options.length}},watch:{enableKeyBindings(e){e?this.addListener():this.removeListener()}},mounted(){this.enableKeyBindings&&this.addListener()},beforeUnmount(){this.enableKeyBindings&&this.removeListener()},methods:{addListener(){window.addEventListener("keydown",this.handleKeyEvent)},removeListener(){window.removeEventListener("keydown",this.handleKeyEvent)},handleKeyEvent(e){if(!e.repeat&&(e.code.startsWith("Digit")||e.code==="Minus")){const t=e.code==="Digit0"?10:e.code==="Minus"?11:e.keyCode-48;t<=this.max&&(this.emit(t),e.preventDefault(),e.stopPropagation())}},emit(e){this.modelValue!==e&&(this.$emit("update:modelValue",e),this.$emit("done"))}}},IV=["onClick"],MV=["max","name","value"];function RV(e,t,r,n,i,a){return V(),ae("div",{class:Ye(["scale__scale flex w-full",r.shape])},[(V(!0),ae(vt,null,Gt(r.options,(o,s)=>(V(),ae("div",{key:s,class:Ye(["scale__block relative text-center cursor-pointer","opt-"+a.max,{selected:r.modelValue>0&&s===r.modelValue-1}]),onClick:u=>a.emit(s+1)},[ne("div",{class:Ye(["scale__label pt-10 px-2 text-xs md:text-base",{"is-invalid":r.state===!1}])},We(o),3)],10,IV))),128)),ne("input",{class:"hidden",min:"0",max:a.max,type:"number",name:r.name,value:r.modelValue,"onUpdate:modelValue":t[0]||(t[0]=o=>a.emit(o.target.value))},null,8,MV)],2)}var LV=we(PV,[["render",RV],["__scopeId","data-v-11038ed8"]]);const jV={components:{FieldLabel:hr,ElementWrapper:Rn,Scale:LV},props:{field:Object,pos:Number},emits:["focus","redraw","update","done"],setup(e){const{field:t}=yt(e),{value:r,state:n,fieldElementId:i,description:a,visibleDescription:o,shape:s,items:u}=wt(t),l=tt(()=>u.value.map(f=>f.value)),c=tt(()=>o.value?a.value:null);return{value:r,state:n,fieldElementId:i,description:c,shape:s,options:l}},computed:{...bt({keyBindings:"page/keyBindings"}),enableKeyBindings(){return this.keyBindings(this.field.type)}},watch:{state(){this.$emit("redraw")}},methods:{update(e){this.$emit("focus"),this.$emit("update",e)}}},UV={class:"px-4 pb-8"},zV={class:"w-full relative"};function qV(e,t,r,n,i,a){const o=ge("field-label"),s=ge("scale",!0),u=ge("element-wrapper");return V(),ae("div",UV,[Ee(o,{field:r.field},null,8,["field"]),ne("div",zV,[Ee(u,{label:n.description,"input-id":n.fieldElementId,feedback:e.$t("form.feedback.scale"),state:n.state},{default:Qe(()=>[Ee(s,{"model-value":n.value,name:n.fieldElementId,shape:n.shape||"dot",options:n.options,state:n.state,"enable-key-bindings":a.enableKeyBindings,onDone:t[0]||(t[0]=l=>e.$emit("done")),"onUpdate:modelValue":a.update},null,8,["model-value","name","shape","options","state","enable-key-bindings","onUpdate:modelValue"])]),_:1},8,["label","input-id","feedback","state"])])])}var HV=we(jV,[["render",qV]]);const VV={components:{MultipleChoiceViewer:q6},props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:"score-choice"},state:{type:Boolean,default:null},columns:{type:Number,default:2},multiple:Boolean,showLabels:Boolean,options:{type:Array,default:()=>[]},enableKeyBindings:{type:Boolean,default:!1}},emits:["update:modelValue","done"],expose:["flush"],computed:{selected(){return this.modelValue.map((e,t)=>"name"in e?e.name:t+1)},names(){return this.options.map(e=>"name"in e?e.name:void 0)}},methods:{flush(){this.$refs.viewer.flush()},emit(e){this.$emit("update:modelValue",e.map(t=>t in this.options?this.options[t]:null).filter(t=>t!==null))}}};function KV(e,t,r,n,i,a){const o=ge("multiple-choice-viewer");return V(),Ge(o,{ref:"viewer","model-value":a.selected,name:r.name,options:a.names,columns:r.columns,multiple:r.multiple,customizable:!1,state:r.state,boxes:"","enable-key-bindings":r.enableKeyBindings,"onUpdate:indexes":a.emit,onDone:t[0]||(t[0]=s=>e.$emit("done"))},null,8,["model-value","name","options","columns","multiple","state","enable-key-bindings","onUpdate:indexes"])}var GV=we(VV,[["render",KV]]);const WV={components:{FieldLabel:hr,ElementWrapper:Rn,ScoreChoiceViewer:GV},props:{field:Object,pos:Number},emits:["focus","update","done"],setup(e){const{field:t}=yt(e),{value:r,state:n,fieldElementId:i,description:a,visibleDescription:o,items:s,multiple:u,columns:l,calculationField:c}=wt(t),f=tt(()=>o.value?a.value:null);return{value:r,state:n,fieldElementId:i,description:f,items:s,multiple:u,columns:l,calculationFieldId:c}},computed:{...bt({keyBindings:"page/keyBindings",field_by_id:"fields/field_by_id"}),enableKeyBindings(){return this.keyBindings(this.field.type)},calculationField(){return this.calculationFieldId!==null?this.field_by_id(this.calculationFieldId):null}},watch:{value(e,t){if(this.calculationField&&Array.isArray(e)&&Array.isArray(t)){const r=(a,o)=>"score"in o&&!isNaN(o.score)?a+o.score:a,n=e.reduce(r,0),i=t.reduce(r,0);if(n!==i){const a=isNaN(this.calculationField.value)?0:this.calculationField.value;this.$store.dispatch("fields/update",{field:this.calculationField,value:a+n-i})}}}},methods:{emit(e){this.$emit("update",e)}}},YV={class:"px-4 pb-8"},ZV={class:"w-full relative"};function JV(e,t,r,n,i,a){const o=ge("field-label"),s=ge("score-choice-viewer"),u=ge("element-wrapper");return V(),ae("div",YV,[Ee(o,{field:r.field},null,8,["field"]),ne("div",ZV,[Ee(u,{label:n.description,"input-id":n.fieldElementId},{default:Qe(()=>[Ee(s,{name:n.fieldElementId,"model-value":n.value,state:n.state,options:n.items,columns:n.columns,multiple:n.multiple,"enable-key-bindings":a.enableKeyBindings,"onUpdate:modelValue":a.emit,onFocus:t[0]||(t[0]=l=>e.$emit("focus")),onDone:t[1]||(t[1]=l=>e.$emit("done"))},null,8,["name","model-value","state","options","columns","multiple","enable-key-bindings","onUpdate:modelValue"])]),_:1},8,["label","input-id"])])])}var XV=we(WV,[["render",JV]]);const QV={props:{type:{type:String,default:"simple"},value:{type:Number,default:0},max:{type:Number,default:10},showMax:{type:Boolean,default:!0}}},eK={class:"flex font-bold text-2xl"},tK={key:0,class:"max"};function rK(e,t,r,n,i,a){return V(),ae("div",eK,[ne("span",null,We(r.value),1),r.showMax?(V(),ae("span",tK,We(r.max),1)):ct("",!0)])}var nK=we(QV,[["render",rK],["__scopeId","data-v-c47ed6c6"]]);const iK={components:{FieldLabel:hr,ElementWrapper:Rn,ScoreDisplay:nK},props:{field:Object,pos:Number},emits:["focus","redraw","update","done"],setup(e){const{field:t}=yt(e),{description:r,visibleDescription:n,calculationField:i}=wt(t);return{description:tt(()=>n.value?r.value:null),calculationFieldId:i}},computed:{...bt({field_by_id:"fields/field_by_id",fields:"fields/all"}),calculationField(){return this.calculationFieldId!==null?this.field_by_id(this.calculationFieldId):null},value(){return this.calculationField?this.calculationField.value:0},scores(){return this.fields.filter(e=>e.type==="score-choice"&&this.calculationFieldId===B(e,"properties.calculationField")).map(e=>{switch(e.type){case"score-choice":return{multiple:B(e,"properties.multiple",!1),scores:B(e,"properties.items",[]).map(t=>B(t,"score",0))};default:return null}}).filter(e=>e!==null)},max(){return this.scores.map(e=>e.multiple?e.scores.filter(t=>t>0).reduce((t,r)=>t+r,0):Math.max(...e.scores)).reduce((e,t)=>e+t,0)}}},aK={class:"pb-4"},oK={class:"w-full relative"};function sK(e,t,r,n,i,a){const o=ge("field-label"),s=ge("score-display",!0),u=ge("element-wrapper");return V(),ae("div",aK,[Ee(o,{field:r.field,"no-optional":""},null,8,["field"]),ne("div",oK,[Ee(u,{label:n.description},{default:Qe(()=>[Ee(s,{value:a.value,max:a.max},null,8,["value","max"])]),_:1},8,["label"])])])}var uK=we(iK,[["render",sK]]);const lK={components:{FieldLabel:hr,FieldInput:gl},props:{field:Object,pos:Number},emits:["focus","focus:next","redraw","update"],setup(e,{emit:t}){const r=ht(null),{focus:n,focusNext:i}=Ti(t,Dr(e,"pos"),[r]);return{text:r,focus:n,focusNext:i}}},cK={class:"px-4 pb-8"},fK={class:"w-full relative"};function dK(e,t,r,n,i,a){const o=ge("field-label"),s=ge("field-input");return V(),ae("div",cK,[Ee(o,{field:r.field},null,8,["field"]),ne("div",fK,[Ee(s,{ref:"text",name:"text",type:"text",field:r.field,onFocus:t[0]||(t[0]=u=>e.$emit("focus")),"onKey:enter":t[1]||(t[1]=u=>n.focusNext()),onRedraw:t[2]||(t[2]=u=>e.$emit("redraw")),onUpdate:t[3]||(t[3]=u=>e.$emit("update",u))},null,8,["field"])])])}var pK=we(lK,[["render",dK]]);const hK={},mK={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},vK=ne("path",{d:"M256 64c0-17.67 14.3-32 32-32h127.1c5.2 0 9.4.86 13.1 2.43 2.9 1.55 7.3 3.84 10.4 6.87 0 .05 0 .1.1.14 6.2 6.22 8.4 14.34 9.3 22.46V192c0 17.7-14.3 32-32 32s-32-14.3-32-32v-50.7L214.6 310.6c-12.5 12.5-32.7 12.5-45.2 0s-12.5-32.7 0-45.2L338.7 96H288c-17.7 0-32-14.33-32-32zM0 128c0-35.35 28.65-64 64-64h96c17.7 0 32 14.33 32 32 0 17.7-14.3 32-32 32H64v288h288v-96c0-17.7 14.3-32 32-32s32 14.3 32 32v96c0 35.3-28.7 64-64 64H64c-35.35 0-64-28.7-64-64V128z"},null,-1),gK=[vK];function yK(e,t){return V(),ae("svg",mK,gK)}var bK=we(hK,[["render",yK]]);const wK={components:{Checkbox:Xs,IconArrow:bK},props:{modelValue:Boolean,name:String,label:String,state:{type:Boolean,default:null},enableKeyBindings:{type:Boolean,default:!1}},emits:["update:modelValue","do:click"],computed:{keyCode(){return this.enableKeyBindings?this.modelValue?"KeyN":"KeyY":null}}},_K={class:"flex items-center w-full text-lg"};function xK(e,t,r,n,i,a){const o=ge("icon-arrow"),s=ge("checkbox");return V(),ae("div",_K,[Ee(s,{name:r.name,multiple:"",state:r.state,size:"lg","key-code":a.keyCode,"enable-key-bindings":r.enableKeyBindings,"model-value":r.modelValue,"onUpdate:modelValue":t[3]||(t[3]=u=>e.$emit("update:modelValue",u))},{default:Qe(()=>[ne("span",{class:"hidden md:inline label border-dashed border-transparent border-b ml-1",onClick:t[0]||(t[0]=ur(u=>e.$emit("do:click"),["prevent"]))},We(r.label),1),ne("span",{class:"inline md:hidden border-transparent border-b ml-1",onClick:t[2]||(t[2]=ur(u=>e.$emit("update:modelValue",!r.modelValue),["prevent"]))},[Qn(We(r.label)+" ",1),ne("button",{class:Ye(["inline-block w-4 h-4 align-[-0.15em]",{hidden:!r.modelValue}]),onClick:t[1]||(t[1]=ur(u=>e.$emit("do:click"),["stop"]))},[Ee(o,{class:"label-icon"})],2)])]),_:1},8,["name","state","key-code","enable-key-bindings","model-value"])])}var EK=we(wK,[["render",xK],["__scopeId","data-v-58c9aa96"]]);const DK={},SK={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12"},CK=ne("path",{d:"M6 7.494 10.506 12 12 10.506 7.494 6 12 1.494 10.506 0 6 4.506 1.494 0 0 1.494 4.506 6 0 10.506 1.494 12 6 7.494Z"},null,-1),AK=[CK];function NK(e,t){return V(),ae("svg",SK,AK)}var TK=we(DK,[["render",NK]]);const kK={components:{ShapeClose:TK},props:{noCloseOnBackdrop:{type:Boolean,default:!1},noPadding:{type:Boolean,default:!1},noCloseButton:{type:Boolean,default:!1},size:{type:String,default:"md"}},emits:["confirm","cancel","before-close","before-open"],computed:{contentClass(){return["relative w-full bg-white rounded overflow-hidden border-slate-300",{"max-w-3xl":this.size==="md"},{"max-w-lg":this.size==="sm"},{"px-4":!this.noPadding},this.noPadding?"":"py-12"]}},expose:["hide","confirm","cancel"],methods:{confirm(e=null){this.hide(),this.$emit("confirm",e)},cancel(e=null){this.hide(),this.$emit("cancel",e)},hide(){this.$refs.close.click()}}},OK=["onClick"];function FK(e,t,r,n,i,a){const o=ge("shape-close"),s=ge("vue-final-modal");return V(),Ge(s,{"click-to-close":!r.noCloseOnBackdrop,"esc-to-close":!r.noCloseOnBackdrop,classes:"flex justify-center items-center p-4",class:"out-of-the-blue","content-class":a.contentClass,transition:{"enter-active-class":"transition duration-300 ease-in-out transform","enter-from-class":"-translate-y-10 opacity-0","enter-to-class":"translate-y-0 opacity-100","leave-active-class":"transition duration-300 ease-in-out transform","leave-to-class":"-translate-y-10 opacity-0","leave-from-class":"translate-y-0 opacity-100"},onBeforeOpen:t[0]||(t[0]=u=>e.$emit("before-open",u)),onBeforeClose:t[1]||(t[1]=u=>e.$emit("before-close",u))},{default:Qe(({close:u})=>[Fr(ne("button",{ref:"close",class:"absolute z-10 top-4 right-4",onClick:u},[Ee(o,{class:"pb-2 px-2 w-8 h-8 opacity-30 hover:opacity-60"})],8,OK),[[$r,!r.noCloseButton]]),dr(e.$slots,"default",{close:u,confirm:a.confirm,cancel:a.cancel})]),_:3},8,["click-to-close","esc-to-close","content-class"])}var gg=we(kK,[["render",FK]]);const $K={components:{BaseModal:gg},props:{url:String},computed:{documentUrl(){return St(this.url)&&this.url.endsWith(".html")?this.url+"?v="+new Date().getTime():this.url}}},BK=["src"];function PK(e,t,r,n,i,a){const o=ge("base-modal");return V(),Ge(o,{ref:"modal"},{default:Qe(()=>[ne("iframe",{class:"outline-none focus:outline-none focus-visible:outline-none border-2 border-black rounded w-full h-[35rem]",sandbox:"allow-popups allow-downloads",src:a.documentUrl},null,8,BK)]),_:1},512)}var IK=we($K,[["render",PK]]);const MK={components:{TermsOfUseViewer:EK},props:{field:Object,pos:Number},emits:["update","redraw"],setup(e){const{field:t}=yt(e),{label:r,state:n,value:i,fieldElementId:a,termsOfUseBehaviour:o,termsOfUseLink:s,termsOfUseUrl:u}=wt(t);return{label:r,state:n,value:i,fieldElementId:a,termsOfUseBehaviour:o,termsOfUseLink:s,termsOfUseUrl:u}},computed:{...bt({keyBindings:"page/keyBindings"}),enableKeyBindings(){return this.keyBindings(this.field.type)}},methods:{click(){switch(this.termsOfUseBehaviour){case"link":{let e=this.termsOfUseLink;St(e)&&(/^[^:/?#]+:\/\//i.test(e)||(e="https://"+e),window.open(e,"_blank"));break}case"popup":this.termsOfUseUrl&&this.$modal(IK).bind({url:this.termsOfUseUrl}).show();break}},update(e){this.$emit("update",e),this.$emit("redraw")}}},RK={class:"pr-4 pl-12.5 pb-8"};function LK(e,t,r,n,i,a){const o=ge("terms-of-use-viewer");return V(),ae("div",RK,[Ee(o,{name:n.fieldElementId,"model-value":n.value,state:n.state,label:n.label,"enable-key-bindings":a.enableKeyBindings,"onUpdate:modelValue":a.update,"onDo:click":a.click},null,8,["name","model-value","state","label","enable-key-bindings","onUpdate:modelValue","onDo:click"])])}var jK=we(MK,[["render",LK]]);const UK={components:{TextViewer:hg},props:{field:Object,pos:Number},setup(e){const{field:t}=yt(e),{text:r,delta:n,alignCss:i}=wt(t);return{text:r,delta:n,alignCss:i}},computed:{...bt({mentions:"fields/mentionsSafeHtml"})}};function zK(e,t,r,n,i,a){const o=ge("text-viewer");return V(),Ge(o,{tag:"div",class:Ye(["py-8 text-lg leading-[1.7rem]",n.alignCss]),text:n.text,mentions:e.mentions,delta:n.delta},null,8,["class","text","mentions","delta"])}var qK=we(UK,[["render",zK]]);const HK={components:{FieldLabel:hr,FieldInput:gl},props:{field:Object,pos:Number},emits:["focus","focus:next","redraw","update"],setup(e,{emit:t}){const r=ht(null),{focus:n,focusNext:i}=Ti(t,Dr(e,"pos"),[r]);return{website:r,focus:n,focusNext:i}}},VK={class:"px-4 pb-8"},KK={class:"w-full relative"};function GK(e,t,r,n,i,a){const o=ge("field-label"),s=ge("field-input");return V(),ae("div",VK,[Ee(o,{field:r.field},null,8,["field"]),ne("div",KK,[Ee(s,{ref:"website",name:"website",type:"url",field:r.field,onFocus:t[0]||(t[0]=u=>e.$emit("focus")),"onKey:enter":t[1]||(t[1]=u=>n.focusNext()),onRedraw:t[2]||(t[2]=u=>e.$emit("redraw")),onUpdate:t[3]||(t[3]=u=>e.$emit("update",u))},null,8,["field"])])])}var WK=we(HK,[["render",GK]]);function wh(e){return e.split("-")[0]}function yg(e){return e.split("-")[1]}function bg(e){return["top","bottom"].includes(wh(e))?"x":"y"}function K6(e){return e==="y"?"height":"width"}function o3(e,t,r){let{reference:n,floating:i}=e;const a=n.x+n.width/2-i.width/2,o=n.y+n.height/2-i.height/2,s=bg(t),u=K6(s),l=n[u]/2-i[u]/2,c=wh(t),f=s==="x";let d;switch(c){case"top":d={x:a,y:n.y-i.height};break;case"bottom":d={x:a,y:n.y+n.height};break;case"right":d={x:n.x+n.width,y:o};break;case"left":d={x:n.x-i.width,y:o};break;default:d={x:n.x,y:n.y}}switch(yg(t)){case"start":d[s]-=l*(r&&f?-1:1);break;case"end":d[s]+=l*(r&&f?-1:1);break}return d}const YK=async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:o}=r,s=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:l,y:c}=o3(u,n,s),f=n,d={},p=0;for(let h=0;h<a.length;h++){const{name:b,fn:g}=a[h],{x:v,y:S,data:w,reset:D}=await g({x:l,y:c,initialPlacement:n,placement:f,strategy:i,middlewareData:d,rects:u,platform:o,elements:{reference:e,floating:t}});if(l=v!=null?v:l,c=S!=null?S:c,d={...d,[b]:{...d[b],...w}},D&&p<=50){p++,typeof D=="object"&&(D.placement&&(f=D.placement),D.rects&&(u=D.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):D.rects),{x:l,y:c}=o3(u,f,s)),h=-1;continue}}return{x:l,y:c,placement:f,strategy:i,middlewareData:d}};function ZK(e){return{top:0,right:0,bottom:0,left:0,...e}}function JK(e){return typeof e!="number"?ZK(e):{top:e,right:e,bottom:e,left:e}}function sp(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function XK(e,t){var r;t===void 0&&(t={});const{x:n,y:i,platform:a,rects:o,elements:s,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=t,h=JK(p),g=s[d?f==="floating"?"reference":"floating":f],v=sp(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(g)))==null||r?g:g.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:c,strategy:u})),S=sp(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:f==="floating"?{...o.floating,x:n,y:i}:o.reference,offsetParent:await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),strategy:u}):o[f]);return{top:v.top-S.top+h.top,bottom:S.bottom-v.bottom+h.bottom,left:v.left-S.left+h.left,right:S.right-v.right+h.right}}const QK={left:"right",right:"left",bottom:"top",top:"bottom"};function up(e){return e.replace(/left|right|bottom|top/g,t=>QK[t])}function eG(e,t,r){r===void 0&&(r=!1);const n=yg(e),i=bg(e),a=K6(i);let o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=up(o)),{main:o,cross:up(o)}}const tG={start:"end",end:"start"};function s3(e){return e.replace(/start|end/g,t=>tG[t])}function rG(e){const t=up(e);return[s3(e),t,s3(t)]}const nG=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r;const{placement:n,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:u}=t,{mainAxis:l=!0,crossAxis:c=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",flipAlignment:p=!0,...h}=e,b=wh(n),v=f||(b===o||!p?[up(o)]:rG(o)),S=[o,...v],w=await XK(t,h),D=[];let _=((r=i.flip)==null?void 0:r.overflows)||[];if(l&&D.push(w[b]),c){const{main:K,cross:G}=eG(n,a,await(s.isRTL==null?void 0:s.isRTL(u.floating)));D.push(w[K],w[G])}if(_=[..._,{placement:n,overflows:D}],!D.every(K=>K<=0)){var N,$;const K=((N=($=i.flip)==null?void 0:$.index)!=null?N:0)+1,G=S[K];if(G)return{data:{index:K,overflows:_},reset:{placement:G}};let j="bottom";switch(d){case"bestFit":{var k;const q=(k=_.map(re=>[re,re.overflows.filter(M=>M>0).reduce((M,U)=>M+U,0)]).sort((re,M)=>re[1]-M[1])[0])==null?void 0:k[0].placement;q&&(j=q);break}case"initialPlacement":j=o;break}if(n!==j)return{reset:{placement:j}}}return{}}}};async function iG(e,t){const{placement:r,platform:n,elements:i}=e,a=await(n.isRTL==null?void 0:n.isRTL(i.floating)),o=wh(r),s=yg(r),u=bg(r)==="x",l=["left","top"].includes(o)?-1:1,c=a&&u?-1:1,f=typeof t=="function"?t(e):t;let{mainAxis:d,crossAxis:p,alignmentAxis:h}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&typeof h=="number"&&(p=s==="end"?h*-1:h),u?{x:p*c,y:d*l}:{x:d*l,y:p*c}}const aG=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:r,y:n}=t,i=await iG(t,e);return{x:r+i.x,y:n+i.y,data:i}}}};function G6(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function co(e){if(e==null)return window;if(!G6(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function ia(e){return co(e).getComputedStyle(e)}function eo(e){return G6(e)?"":e?(e.nodeName||"").toLowerCase():""}function W6(){const e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function aa(e){return e instanceof co(e).HTMLElement}function rl(e){return e instanceof co(e).Element}function oG(e){return e instanceof co(e).Node}function nl(e){if(typeof ShadowRoot=="undefined")return!1;const t=co(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function _h(e){const{overflow:t,overflowX:r,overflowY:n}=ia(e);return/auto|scroll|overlay|hidden/.test(t+n+r)}function sG(e){return["table","td","th"].includes(eo(e))}function Y6(e){const t=/firefox/i.test(W6()),r=ia(e);return r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].includes(r.willChange)||t&&r.willChange==="filter"||t&&(r.filter?r.filter!=="none":!1)}function Z6(){return!/^((?!chrome|android).)*safari/i.test(W6())}const u3=Math.min,fc=Math.max,lp=Math.round;function js(e,t,r){var n,i,a,o;t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect();let u=1,l=1;t&&aa(e)&&(u=e.offsetWidth>0&&lp(s.width)/e.offsetWidth||1,l=e.offsetHeight>0&&lp(s.height)/e.offsetHeight||1);const c=rl(e)?co(e):window,f=!Z6()&&r,d=(s.left+(f&&(n=(i=c.visualViewport)==null?void 0:i.offsetLeft)!=null?n:0))/u,p=(s.top+(f&&(a=(o=c.visualViewport)==null?void 0:o.offsetTop)!=null?a:0))/l,h=s.width/u,b=s.height/l;return{width:h,height:b,top:p,right:d+h,bottom:p+b,left:d,x:d,y:p}}function us(e){return((oG(e)?e.ownerDocument:e.document)||window.document).documentElement}function xh(e){return rl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function J6(e){return js(us(e)).left+xh(e).scrollLeft}function uG(e){const t=js(e);return lp(t.width)!==e.offsetWidth||lp(t.height)!==e.offsetHeight}function lG(e,t,r){const n=aa(t),i=us(t),a=js(e,n&&uG(t),r==="fixed");let o={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(n||!n&&r!=="fixed")if((eo(t)!=="body"||_h(i))&&(o=xh(t)),aa(t)){const u=js(t,!0);s.x=u.x+t.clientLeft,s.y=u.y+t.clientTop}else i&&(s.x=J6(i));return{x:a.left+o.scrollLeft-s.x,y:a.top+o.scrollTop-s.y,width:a.width,height:a.height}}function X6(e){return eo(e)==="html"?e:e.assignedSlot||e.parentNode||(nl(e)?e.host:null)||us(e)}function l3(e){return!aa(e)||ia(e).position==="fixed"?null:cG(e)}function cG(e){let{offsetParent:t}=e,r=e,n=!1;for(;r&&r!==t;){const{assignedSlot:i}=r;if(i){let a=i.offsetParent;if(ia(i).display==="contents"){const o=i.hasAttribute("style"),s=i.style.display;i.style.display=ia(r).display,a=i.offsetParent,i.style.display=s,o||i.removeAttribute("style")}r=i,t!==a&&(t=a,n=!0)}else if(nl(r)&&r.host&&n)break;r=nl(r)&&r.host||r.parentNode}return t}function fG(e){let t=X6(e);for(nl(t)&&(t=t.host);aa(t)&&!["html","body"].includes(eo(t));){if(Y6(t))return t;{const r=t.parentNode;t=nl(r)?r.host:r}}return null}function n0(e){const t=co(e);let r=l3(e);for(;r&&sG(r)&&ia(r).position==="static";)r=l3(r);return r&&(eo(r)==="html"||eo(r)==="body"&&ia(r).position==="static"&&!Y6(r))?t:r||fG(e)||t}function c3(e){if(aa(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=js(e);return{width:t.width,height:t.height}}function dG(e){let{rect:t,offsetParent:r,strategy:n}=e;const i=aa(r),a=us(r);if(r===a)return t;let o={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((i||!i&&n!=="fixed")&&((eo(r)!=="body"||_h(a))&&(o=xh(r)),aa(r))){const u=js(r,!0);s.x=u.x+r.clientLeft,s.y=u.y+r.clientTop}return{...t,x:t.x-o.scrollLeft+s.x,y:t.y-o.scrollTop+s.y}}function pG(e,t){const r=co(e),n=us(e),i=r.visualViewport;let a=n.clientWidth,o=n.clientHeight,s=0,u=0;if(i){a=i.width,o=i.height;const l=Z6();(l||!l&&t==="fixed")&&(s=i.offsetLeft,u=i.offsetTop)}return{width:a,height:o,x:s,y:u}}function hG(e){var t;const r=us(e),n=xh(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=fc(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=fc(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let s=-n.scrollLeft+J6(e);const u=-n.scrollTop;return ia(i||r).direction==="rtl"&&(s+=fc(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:u}}function Q6(e){const t=X6(e);return["html","body","#document"].includes(eo(t))?e.ownerDocument.body:aa(t)&&_h(t)?t:Q6(t)}function ex(e,t){var r;t===void 0&&(t=[]);const n=Q6(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=co(n),o=i?[a].concat(a.visualViewport||[],_h(n)?n:[]):n,s=t.concat(o);return i?s:s.concat(ex(o))}function mG(e,t){const r=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&nl(r)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}function vG(e,t){const r=js(e,!1,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft;return{top:n,left:i,x:i,y:n,right:i+e.clientWidth,bottom:n+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function f3(e,t,r){return t==="viewport"?sp(pG(e,r)):rl(t)?vG(t,r):sp(hG(us(e)))}function gG(e){const t=ex(e),n=["absolute","fixed"].includes(ia(e).position)&&aa(e)?n0(e):e;return rl(n)?t.filter(i=>rl(i)&&mG(i,n)&&eo(i)!=="body"):[]}function yG(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const o=[...r==="clippingAncestors"?gG(t):[].concat(r),n],s=o[0],u=o.reduce((l,c)=>{const f=f3(t,c,i);return l.top=fc(f.top,l.top),l.right=u3(f.right,l.right),l.bottom=u3(f.bottom,l.bottom),l.left=fc(f.left,l.left),l},f3(t,s,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}const bG={getClippingRect:yG,convertOffsetParentRelativeRectToViewportRelativeRect:dG,isElement:rl,getDimensions:c3,getOffsetParent:n0,getDocumentElement:us,getElementRects:e=>{let{reference:t,floating:r,strategy:n}=e;return{reference:lG(t,n0(r),n),floating:{...c3(r),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>ia(e).direction==="rtl"},wG=(e,t,r)=>YK(e,t,{platform:bG,...r});var tx="Expected a function",d3=0/0,_G="[object Symbol]",xG=/^\s+|\s+$/g,EG=/^[-+]0x[0-9a-f]+$/i,DG=/^0b[01]+$/i,SG=/^0o[0-7]+$/i,CG=parseInt,AG=typeof lt=="object"&&lt&&lt.Object===Object&&lt,NG=typeof self=="object"&&self&&self.Object===Object&&self,TG=AG||NG||Function("return this")(),kG=Object.prototype,OG=kG.toString,FG=Math.max,$G=Math.min,Dm=function(){return TG.Date.now()};function BG(e,t,r){var n,i,a,o,s,u,l=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(tx);t=p3(t)||0,cp(r)&&(c=!!r.leading,f="maxWait"in r,a=f?FG(p3(r.maxWait)||0,t):a,d="trailing"in r?!!r.trailing:d);function p(N){var $=n,k=i;return n=i=void 0,l=N,o=e.apply(k,$),o}function h(N){return l=N,s=setTimeout(v,t),c?p(N):o}function b(N){var $=N-u,k=N-l,K=t-$;return f?$G(K,a-k):K}function g(N){var $=N-u,k=N-l;return u===void 0||$>=t||$<0||f&&k>=a}function v(){var N=Dm();if(g(N))return S(N);s=setTimeout(v,b(N))}function S(N){return s=void 0,d&&n?p(N):(n=i=void 0,o)}function w(){s!==void 0&&clearTimeout(s),l=0,n=u=i=s=void 0}function D(){return s===void 0?o:S(Dm())}function _(){var N=Dm(),$=g(N);if(n=arguments,i=this,u=N,$){if(s===void 0)return h(u);if(f)return s=setTimeout(v,t),p(u)}return s===void 0&&(s=setTimeout(v,t)),o}return _.cancel=w,_.flush=D,_}function PG(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(tx);return cp(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),BG(e,t,{leading:n,maxWait:t,trailing:i})}function cp(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function IG(e){return!!e&&typeof e=="object"}function MG(e){return typeof e=="symbol"||IG(e)&&OG.call(e)==_G}function p3(e){if(typeof e=="number")return e;if(MG(e))return d3;if(cp(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=cp(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(xG,"");var r=DG.test(e);return r||SG.test(e)?CG(e.slice(2),r?2:8):EG.test(e)?d3:+e}var RG=PG;const h3=(e,t)=>e&&typeof e.contains=="function"?e.contains(t):!1,wd=e=>e===window.document?window.document.body.scrollTop?window.document.body:window.document.documentElement:["scroll","auto"].indexOf(Sm(e,"overflow"))!==-1||["scroll","auto"].indexOf(Sm(e,"overflow-x"))!==-1||["scroll","auto"].indexOf(Sm(e,"overflow-y"))!==-1?e:e.parentNode?wd(e.parentNode):e,Sm=(e,t)=>window.getComputedStyle(e,null)[t];function LG(e,t,r={}){const n=r.placement||"bottom-start",i=r.attachHandlers||!0,a=r.offset||4,o=r.repositionOnScroll||!1,s=ht(!1),u=d=>{const{target:p}=d;s.value&&!h3(t.value,p)&&!h3(e.value,p)&&Ua(()=>{s.value=!1})},l=d=>{d.keyCode===27&&(s.value=!1)};i&&(Ks(()=>{e.value.addEventListener("keydown",l),t.value.addEventListener("keydown",l)}),zu(()=>{e.value.removeEventListener("keydown",l),t.value.removeEventListener("keydown",l)}));const c=async()=>{const{x:d,y:p}=await wG(e.value,t.value,{placement:n,middleware:[aG(a),nG()]});Object.assign(t.value.style,{transform:`translate3d(${Math.round(d)}px,${Math.round(p)}px,0)`})},f=RG(c);return zu(()=>{wd(e.value).removeEventListener("scroll",f)}),Vr(s,d=>{d?(Ua(c),i&&(document.documentElement.addEventListener("click",u),document.documentElement.addEventListener("focusin",u)),o&&wd(e.value).addEventListener("scroll",f,{passive:!0})):(i&&(document.documentElement.removeEventListener("click",u),document.documentElement.removeEventListener("focusin",u)),o&&wd(e.value).removeEventListener("scroll",f))}),{show:s,reposition:c}}const Cm={nl:"Sorry, geen overeenkomende opties.",es:"Lo sentimos, no hay opciones de coincidencia.",fr:"D\xE9sol\xE9, aucune option correspondante.",it:"Spiacenti, nessuna opzione di corrispondenza.",ru:"\u0418\u0437\u0432\u0438\u043D\u0438\u0442\u0435, \u043D\u0435\u0442 \u043F\u043E\u0434\u0445\u043E\u0434\u044F\u0449\u0438\u0445 \u0432\u0430\u0440\u0438\u0430\u043D\u0442\u043E\u0432.",de:"Leider keine passenden Optionen.",ja:"\u7533\u3057\u8A33\u3042\u308A\u307E\u305B\u3093\u304C\u3001\u4E00\u81F4\u3059\u308B\u30AA\u30D7\u30B7\u30E7\u30F3\u306F\u3042\u308A\u307E\u305B\u3093\u3002",da:"Beklager, ingen matchende muligheder.",ms:"Maaf, tiada pilihan yang sepadan.",id:"Maaf, tidak ada opsi yang cocok.",tr:"\xDCzg\xFCn\xFCz, e\u015Fle\u015Fen se\xE7enek yok.",pt:"Desculpe, n\xE3o h\xE1 op\xE7\xF5es correspondentes.",lt:"Atsipra\u0161ome, n\u0117ra atitikimo parink\u010Di\u0173.",ro:"Ne pare r\u0103u, nu exist\u0103 op\u021Biuni care se potrivesc.",sl:"\u017Dal ni mo\u017Enosti ujemanja.",ar:"\u0622\u0633\u0641 \u060C \u0644\u0627 \u062A\u0648\u062C\u062F \u062E\u064A\u0627\u0631\u0627\u062A \u0645\u0637\u0627\u0628\u0642\u0629.",af:"Jammer, geen ooreenstemmende opsies nie.",cs:"Litujeme, \u017E\xE1dn\xE9 odpov\xEDdaj\xEDc\xED mo\u017Enosti.",hu:"Sajn\xE1ljuk, nincs megfelel\u0151 lehet\u0151s\xE9g.",th:"\u0E02\u0E2D\u0E2D\u0E20\u0E31\u0E22\u0E44\u0E21\u0E48\u0E21\u0E35\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E17\u0E35\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E19",he:"\u05DE\u05E6\u05D8\u05E2\u05E8\u05D9\u05DD, \u05D0\u05D9\u05DF \u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05EA\u05D0\u05DE\u05D4.",en:"Sorry, no matching options."},jG={components:{ChevronDown:s6,ShortText:vh},props:{modelValue:String,placeholder:String,id:String,options:{type:Array,default:()=>[]},disabledOptions:{type:Array,default:()=>[]},state:{type:Boolean,default:null},lang:{type:String,default:"en"}},emits:["update:modelValue","focus","blur"],expose:["flush","focus"],setup(){const e=ht(null),t=ht(null),{show:r,reposition:n}=LG(e,t,{attachHandlers:!1});return{show:r,combobox:e,listbox:t,reposition:n}},data(){return{search:"",highlighted:0,focused:!1}},computed:{_componentId(){return Math.random().toString(36).substring(2)},_comboboxId(){return"cb"+this._componentId},_listboxId(){return"lb"+this._componentId},filteredOptions(){return this.options.filter(e=>e.toLowerCase().includes(this.search.toLowerCase()))},labelNoOptions(){return this.lang in Cm?Cm[this.lang]:Cm.en}},watch:{search(){this.highlighted=0,this.$nextTick(()=>{this.reposition()})},highlighted(){this.$nextTick(()=>{var t;const e=((t=this.$refs.listbox)==null?void 0:t.children[this.highlighted])||null;if(e){const r=this.$refs.listbox.getBoundingClientRect()||{height:0,top:0,bottom:0},{top:n,bottom:i,height:a}=e.getBoundingClientRect();n<r.top?this.$refs.listbox.scrollTop=e.offsetTop:i>r.bottom&&(this.$refs.listbox.scrollTop=e.offsetTop-(r.height-a))}})}},methods:{optionId(e){return"op"+this._componentId+"-"+e},toggle(){!this.show&&!this.focused?this.$refs.search.focus():!this.show&&this.focused?this.show=!0:this.$refs.search.blur()},select(e){this.disabledOptions.includes(e)||(e!==this.value&&this.$emit("update:modelValue",e),this.search="",this.$refs.search.blur())},onSearchEnter(){this.highlighted<this.filteredOptions.length&&this.select(this.filteredOptions[this.highlighted])},onSearchBackspace(){this.search||this.$emit("update:modelValue","")},onSearchFocus(){this.show=!0,this.focused=!0,this.$emit("focus")},onSearchBlur(){this.show=!1,this.focused=!1,this.$emit("blur")},onSearchClick(){this.show=!0},onMouseOver(e,t){this.disabledOptions.includes(e)||(this.highlighted=t)},flush(){this.select("")},focus(){this.$refs.search.focus()}}},UG={class:"relative",dir:"auto"},zG=["id","aria-label","aria-owns","aria-expanded"],qG=["id"],HG=["id","aria-selected","aria-disabled","onMousedown","onMouseover"];function VG(e,t,r,n,i,a){const o=ge("chevron-down"),s=ge("short-text");return V(),ae("div",UG,[ne("div",{id:a._comboboxId,ref:"combobox",class:"flex w-full",role:"combobox","aria-label":r.placeholder,"aria-owns":a._listboxId,"aria-expanded":n.show},[Ee(s,{id:r.id,ref:"search",modelValue:i.search,"onUpdate:modelValue":t[2]||(t[2]=u=>i.search=u),class:"flex grow items-start","input-class":"appearance-none basis-0 grow",state:r.state,type:"search",placeholder:r.modelValue?"":r.placeholder,autocomplete:"off","aria-active-descendant":n.show?a.optionId(i.highlighted):"","aria-labelledby":a._comboboxId,"aria-controls":a._listboxId,"onKey:escape":t[3]||(t[3]=u=>e.$refs.search.blur()),"onKey:enter":a.onSearchEnter,"onKey:backspace":a.onSearchBackspace,"onKey:arrowUp":t[4]||(t[4]=u=>i.highlighted=Math.max(0,i.highlighted-1)),"onKey:arrowDown":t[5]||(t[5]=u=>i.highlighted=Math.min(a.filteredOptions.length-1,i.highlighted+1)),onFocus:a.onSearchFocus,onBlur:a.onSearchBlur,"onInput:click":a.onSearchClick},{prepend:Qe(()=>[ne("div",{class:Ye(["dropdown-value grow max-w-fit select-none border-b text-lg cursor-text",{"absolute border-transparent":n.show,"ibc-1":!n.show,"opacity-40":n.show&&!i.search,"opacity-0":n.show&&!!i.search,invalid:r.state===!1&&!n.show}]),onMousedown:t[0]||(t[0]=ur(u=>e.$refs.search.focus(),["prevent","stop"]))},We(r.modelValue),35)]),append:Qe(()=>[ne("button",{tabindex:"-1",class:"flex items-center justify-end focus-visible:outline-none h-7 print:hidden",onMousedown:t[1]||(t[1]=ur((...u)=>a.toggle&&a.toggle(...u),["prevent","stop"]))},[Ee(o,{class:Ye(["icon h-4 w-4 transition-transform",{"-rotate-180":n.show}])},null,8,["class"])],32)]),_:1},8,["id","modelValue","state","placeholder","aria-active-descendant","aria-labelledby","aria-controls","onKey:enter","onKey:backspace","onFocus","onBlur","onInput:click"])],8,zG),Ee(Ku,null,{default:Qe(()=>[Fr(ne("ul",{id:a._listboxId,ref:"listbox",class:"dropdown-list absolute overflow-auto bg-white text-neutral-900 rounded-md border border-neutral-300 z-50 w-full top-0 left-0 will-change-transform transition-opacity duration-150 ease-out",role:"listbox",tabindex:"-1",onMousedown:t[6]||(t[6]=ur(()=>{},["prevent","stop"]))},[(V(!0),ae(vt,null,Gt(a.filteredOptions,(u,l)=>(V(),ae("li",{id:a.optionId(l),key:l,class:Ye(["text-base px-4 py-1 whitespace-nowrap leading-8",[r.disabledOptions.includes(u)?"opacity-40 line-through cursor-default":"cursor-pointer"],{"bg-blue-400 text-white":!r.disabledOptions.includes(u)&&i.highlighted===l}]),role:"option","aria-selected":i.highlighted===l,"aria-disabled":r.disabledOptions.includes(u),onMousedown:ur(c=>a.select(u),["prevent","stop"]),onMouseover:c=>a.onMouseOver(u,l)},We(u),43,HG))),128)),Fr(ne("li",{class:"text-base text-center px-4 py-1 whitespace-nowrap leading-8"},We(a.labelNoOptions),513),[[$r,a.filteredOptions.length<=0]])],40,qG),[[$r,n.show]])]),_:1})])}var KG=we(jG,[["render",VG],["__scopeId","data-v-38117826"]]);const GG={components:{FieldLabel:hr,ElementWrapper:Rn,Dropdown:KG},inject:["inventory"],props:{field:Object,pos:Number},emits:["focus","redraw","update","done"],setup(e,{emit:t}){const{field:r}=yt(e),{value:n,state:i,fieldElementId:a,description:o,visibleDescription:s,placeholder:u,placeholderEnabled:l,options:c,connectedToInventory:f}=wt(r),d=ht(null),{focus:p}=Ti(t,Dr(e,"pos"),[d]),h=tt(()=>s.value?o.value:null),b=tt(()=>l.value?u.value:null),g=tt(()=>f.value?Xi("inventory").value.map(v=>"stock"in v&&v.stock<=0?v.name:null).filter(v=>!!v):[]);return{value:n,state:i,fieldElementId:a,description:h,placeholder:b,placeholderEnabled:l,options:c,disabledOptions:g,dropdown:d,focus:p}},computed:{...bt({lang:"page/language"})},watch:{state(){this.$emit("redraw")}},methods:{change(e){e!==this.value&&this.$emit("update",e)}}},WG={class:"px-4 pb-8"},YG={class:"w-full relative"};function ZG(e,t,r,n,i,a){const o=ge("field-label"),s=ge("dropdown",!0),u=ge("element-wrapper");return V(),ae("div",WG,[Ee(o,{field:r.field},null,8,["field"]),ne("div",YG,[Ee(u,{label:n.description,"input-id":n.fieldElementId,feedback:e.$t("form.feedback.dropdown"),state:n.state},{default:Qe(()=>[Ee(s,{id:n.fieldElementId,ref:"dropdown","model-value":n.value,lang:e.lang,state:n.state,options:n.options,"disabled-options":n.disabledOptions,placeholder:n.placeholder,"onUpdate:modelValue":a.change,onFocus:t[0]||(t[0]=l=>e.$emit("focus"))},null,8,["id","model-value","lang","state","options","disabled-options","placeholder","onUpdate:modelValue"])]),_:1},8,["label","input-id","feedback","state"])])])}var JG=we(GG,[["render",ZG]]);const XG={},QG={viewBox:"0 0 48 61",xmlns:"http://www.w3.org/2000/svg"},eW=ne("path",{d:"M24 22.178h-1l1.995.1-.995-.1Zm-7 37-.19.982.19-.982Zm7-2 .507-.862-.507-.298-.507.298.507.862Zm7 2 .19.982-.19-.982Zm-7-51-.999-.047-.001.023v.024h1Zm17.302-3.705.775.631-.775-.631ZM24 22.178c1 0 1 0 1-.002v-.04a2.845 2.845 0 0 0-.024-.293 4.75 4.75 0 0 0-.147-.719 5.59 5.59 0 0 0-1.13-2.093c-1.305-1.536-3.748-2.853-8.199-2.853v2c4.05 0 5.856 1.184 6.676 2.148.422.497.628.987.73 1.343a2.766 2.766 0 0 1 .094.522v-.011c0-.001 0-.002 1-.002Zm-8.5-6c-8.98 0-15.5 6.378-15.5 14h2c0-6.377 5.48-12 13.5-12v-2Zm1.31 43.982c1.666.322 3.658-.287 5.079-.857a22.133 22.133 0 0 0 2.559-1.229l.042-.024.012-.007a.132.132 0 0 1 .003-.002h.001c.001 0 .001-.001-.506-.863l-.507-.862-.008.005-.03.018-.13.072a20.16 20.16 0 0 1-2.18 1.035c-1.401.562-2.91.953-3.955.75l-.38 1.964ZM0 30.178c0 4.31 1.425 11.194 4.167 17.263C6.88 53.448 11.065 59.05 16.81 60.16l.38-1.964c-4.713-.911-8.529-5.664-11.2-11.578C3.345 40.768 2 34.163 2 30.178H0Zm24-8a66.026 66.026 0 0 1 .995.103v.006l-.001.002.002-.015.019-.101c.02-.096.059-.246.127-.432.136-.37.389-.88.851-1.394.9-1 2.732-2.169 6.507-2.169v-2c-4.225 0-6.643 1.33-7.993 2.831a6.316 6.316 0 0 0-1.243 2.044 5.25 5.25 0 0 0-.245.918 2.67 2.67 0 0 0-.01.068l-.002.024-.001.009v.005c-.001 0-.001.002.994.101Zm8.5-4c7.544 0 13.5 5.644 13.5 12h2c0-7.644-7.044-14-15.5-14v2Zm-1.69 40.018c-1.045.203-2.554-.188-3.955-.75a20.13 20.13 0 0 1-2.31-1.107l-.03-.018-.007-.004h-.001l-.507.861-.507.862.002.001.003.002.012.007.042.024.152.086a22.101 22.101 0 0 0 2.407 1.143c1.422.57 3.413 1.18 5.079.857l-.38-1.964ZM46 30.178c0 3.985-1.346 10.59-3.99 16.44-2.671 5.914-6.487 10.667-11.2 11.578l.38 1.964c5.745-1.111 9.93-6.712 12.643-12.718C46.575 41.371 48 34.486 48 30.177h-2Zm-21-8v-14h-2v14h2Zm-.001-13.952c.063-1.316.815-3.21 2.99-4.547 2.185-1.343 5.92-2.188 12.038-1.107l.348-1.97c-6.4-1.131-10.687-.315-13.434 1.373-2.757 1.695-3.847 4.203-3.94 6.156L25 8.226ZM40.526 3.84c-2.095 2.573-4.895 5.163-7.748 6.253-1.407.538-2.778.693-4.077.354-1.292-.338-2.623-1.192-3.906-2.876l-1.59 1.212c1.497 1.965 3.185 3.127 4.991 3.599 1.8.47 3.606.225 5.296-.42 3.34-1.276 6.41-4.188 8.585-6.859l-1.55-1.263Zm-.499-1.269c.643.114.877.806.5 1.27l1.55 1.262c1.376-1.69.39-4.132-1.702-4.501l-.348 1.97Z"},null,-1),tW=[eW];function rW(e,t){return V(),ae("svg",QG,tW)}var nW=we(XG,[["render",rW]]);const iW={},aW={viewBox:"0 0 62 63",xmlns:"http://www.w3.org/2000/svg"},oW=ne("mask",{id:"a",fill:"#fff"},[ne("path",{d:"M62 31c0 17.12-13.88 31-31 31C13.88 62 0 48.12 0 31 0 13.88 13.88 0 31 0c17.12 0 31 13.88 31 31Z"})],-1),sW=ne("circle",{class:"bg",cx:"30",cy:"30.895",r:"30"},null,-1),uW=ne("path",{class:"fg",d:"m9.726 23.665.052.998.03-.001.031-.004-.113-.993Zm14.522 14.8-.997.075.997-.075ZM46.48 23.396l.204-.979-.204.98ZM8.232 49.95c0-5.964 3.198-15.406 9.78-23.75l-1.57-1.238c-6.79 8.606-10.21 18.471-10.21 24.988h2Zm9.78-23.75a49.065 49.065 0 0 1 5.265-5.695l-1.355-1.471a51.06 51.06 0 0 0-5.48 5.928l1.57 1.238Zm5.265-5.695a45.076 45.076 0 0 1 6.59-5.048l-1.062-1.694a47.073 47.073 0 0 0-6.883 5.27l1.355 1.472Zm6.59-5.048c5.579-3.498 12.247-5.906 20.03-6.382l-.122-1.997c-8.137.498-15.126 3.02-20.97 6.685l1.062 1.694ZM9.926 9.701a903.99 903.99 0 0 1 11.998 10.805l1.351-1.474A906.432 906.432 0 0 0 11.25 8.202l-1.324 1.5Zm11.998 10.805c6.857 6.286 14.279 13.28 20.069 19.148 2.897 2.935 5.373 5.576 7.163 7.7.896 1.063 1.608 1.98 2.111 2.731.528.786.75 1.278.797 1.516l1.963-.383c-.13-.666-.562-1.447-1.099-2.247-.56-.836-1.324-1.816-2.243-2.906-1.84-2.182-4.358-4.866-7.268-7.816-5.825-5.903-13.275-12.923-20.142-19.217l-1.351 1.474ZM1.79 29.23c1.851-1.9 3.887-4.355 7.987-4.566l-.103-1.997C4.67 22.923 2.107 26.04.36 27.834l1.43 1.396Zm8.048-4.57c2.32-.264 4.713.362 6.84 1.758l1.097-1.672c-2.472-1.622-5.327-2.395-8.162-2.074l.225 1.987Zm6.84 1.758c3.433 2.254 6.15 6.51 6.572 12.123l1.994-.15c-.465-6.181-3.476-11.024-7.47-13.645l-1.097 1.672ZM23.25 38.54c.032.425-.001 1.107-.066 2.058-.063.919-.151 2.043-.206 3.26-.11 2.434-.092 5.34.541 8.067.635 2.732 1.909 5.378 4.38 7.157 2.478 1.783 5.993 2.578 10.863 1.95l-.256-1.984c-4.546.587-7.5-.194-9.438-1.59-1.943-1.398-3.03-3.532-3.6-5.986-.571-2.459-.6-5.147-.492-7.523.053-1.187.139-2.271.203-3.215.063-.912.11-1.747.066-2.344l-1.995.15Zm37.518 1.129c1.44-7.687-4.34-15.217-14.085-17.252l-.408 1.958c9 1.88 13.712 8.605 12.527 14.925l1.966.369ZM46.684 22.417c-1.384-.289-4.424-.815-7.702-2.078-3.286-1.266-6.682-3.227-8.826-6.3l-1.64 1.143c2.47 3.543 6.292 5.692 9.747 7.023 3.464 1.335 6.689 1.894 8.013 2.17l.408-1.958Zm-16.528-8.379c-2.037-2.92-3.03-6.971-1.51-12.702L26.711.823c-1.65 6.221-.613 10.893 1.804 14.36l1.64-1.145ZM60 31c0 16.016-12.984 29-29 29v4c18.225 0 33-14.775 33-33h-4ZM31 60C14.984 60 2 47.016 2 31h-4c0 18.225 14.775 33 33 33v-4ZM2 31C2 14.984 14.984 2 31 2v-4C12.775-2-2 12.775-2 31h4ZM31 2c16.016 0 29 12.984 29 29h4C64 12.775 49.225-2 31-2v4Z",mask:"url(#a)"},null,-1),lW=[oW,sW,uW];function cW(e,t){return V(),ae("svg",aW,lW)}var fW=we(iW,[["render",cW]]);const dW={},pW={viewBox:"0 0 53 58",xmlns:"http://www.w3.org/2000/svg"},hW=ne("path",{d:"M33.368 8.611c-.106 3.823-3.248 6.42-7.096 6.42a7.09 7.09 0 0 1-7.058-6.412m14.154-.008c3.666.624 11.954 5.918 12.314 14.888M33.368 8.611C33.233 3.021 30.136 1 26.258 1s-7.044 2.085-7.044 7.619m0 0c-7.16 2.459-11.743 8.457-12.271 14.867m0 0c-5.293.058-6.352 6.92-5.82 7.811L10.223 57h32.114l9.098-25.703c.522-.872-.755-7.456-5.753-7.798m-38.74-.013h.069c4.343 0 6.22 3.152 6.772 4.34.079.169.338.191.438.036.749-1.161 3.1-4.377 6.17-4.377 3.058 0 5.037 1.714 6.075 2.967.88-1.253 2.644-2.967 5.701-2.967 3.07 0 5.422 3.216 6.17 4.377.101.155.36.133.438-.035.554-1.19 2.155-4.342 6.498-4.342.139 0 .275.005.409.014m-38.74-.013a14.373 14.373 0 0 0-.054 1.064m38.794-1.05c.027.671.003 1.05.003 1.05"},null,-1),mW=[hW];function vW(e,t){return V(),ae("svg",pW,mW)}var gW=we(dW,[["render",vW]]);const yW={},bW={viewBox:"0 0 62 60",xmlns:"http://www.w3.org/2000/svg"},wW=ne("path",{d:"M31.81 52.4c-.32.185-.587.335-.792.45-.212-.127-.49-.295-.826-.502a104.69 104.69 0 0 1-3.478-2.244c-2.883-1.94-6.723-4.711-10.558-8.047-3.84-3.34-7.646-7.22-10.487-11.373C2.823 26.524.999 22.17 1 17.861c0-4.784 1.51-9.004 4.152-12.014C7.782 2.85 11.578 1 16.285 1c4.145 0 7.604 1.953 10.069 3.976a23.531 23.531 0 0 1 2.84 2.77 19.312 19.312 0 0 1 .922 1.15l.043.061.01.013v.002h.001l.77 1.12.84-1.069.002-.003.011-.014.05-.062a24.495 24.495 0 0 1 1.034-1.165 28.86 28.86 0 0 1 3.05-2.791C38.521 2.94 41.98 1 45.702 1c5.08 0 8.927 1.384 11.477 4.072 2.554 2.693 3.964 6.86 3.808 12.763-.25 9.516-7.68 18.3-15.34 24.82-3.796 3.232-7.58 5.851-10.418 7.663a90.17 90.17 0 0 1-3.42 2.082Z"},null,-1),_W=[wW];function xW(e,t){return V(),ae("svg",bW,_W)}var EW=we(yW,[["render",xW]]);const DW={},SW={viewBox:"0 0 61 56",xmlns:"http://www.w3.org/2000/svg"},CW=ne("path",{d:"m59.945 4.486 1-.041-.001-.007-.999.048Zm-3.439-3.43.048-1h-.006l-.042 1ZM39.37 2l-.143-.99.143.99ZM25.365 5.42l-.349-.937h-.001l.35.937Zm-12.398 7.504-.705-.709.705.71Zm-.011 34.865-.705.709.705-.71Zm.011.01.705-.708-.705.709ZM48 47.79l-.705-.71.705.71Zm7.545-12.33.935.353-.935-.354Zm3.438-13.929-.989-.145v.001l.99.145Zm-14.45-2.123a1 1 0 0 0-1.772-.928l1.771.928Zm16.41-14.969a4.594 4.594 0 0 0-1.327-3.028l-1.423 1.405c.444.45.72 1.04.753 1.72l1.998-.097ZM59.617 1.41A4.605 4.605 0 0 0 56.554.056l-.096 1.998c.688.033 1.3.32 1.735.761l1.423-1.405ZM56.548.056c-.839-.035-8.341-.341-17.322.954l.286 1.98c8.801-1.27 16.162-.969 16.953-.936l.083-1.998Zm-17.322.954c-5.27.762-10.047 1.925-14.21 3.473l.698 1.874c4.004-1.489 8.64-2.621 13.798-3.367l-.286-1.98ZM25.015 4.484c-5.245 1.96-9.551 4.547-12.753 7.731l1.41 1.418c2.953-2.936 6.994-5.389 12.043-7.276l-.7-1.873Zm-12.753 7.731a25.44 25.44 0 0 0-7.545 18.147h2a23.44 23.44 0 0 1 6.955-16.729l-1.41-1.418ZM4.717 30.362c0 6.858 2.673 13.301 7.534 18.136l1.41-1.418C9.18 42.62 6.717 36.69 6.717 30.362h-2Zm7.534 18.136.011.01 1.41-1.417-.01-.011-1.411 1.418Zm.011.01C17.122 53.344 23.598 56 30.478 56v-2c-6.355 0-12.323-2.45-16.806-6.91l-1.41 1.419ZM30.478 56c6.892 0 13.367-2.669 18.227-7.502l-1.41-1.418C42.81 51.539 36.843 54 30.478 54v2Zm18.227-7.502c3.202-3.184 5.804-7.469 7.775-12.686l-1.87-.707c-1.898 5.02-4.363 9.039-7.315 11.975l1.41 1.418Zm7.776-12.687c1.557-4.13 2.726-8.894 3.492-14.136l-1.979-.289c-.75 5.13-1.888 9.75-3.385 13.72l1.871.705Zm3.492-14.135c1.314-8.967 1.006-16.397.971-17.231l-1.998.083c.033.786.336 8.072-.952 16.857l1.979.29ZM1 55c.165.986.166.986.167.986h.002l.005-.001.019-.004a8.575 8.575 0 0 0 .303-.058c.207-.042.507-.107.891-.2a41 41 0 0 0 3.257-.951c2.757-.923 6.595-2.486 10.955-5.053 8.727-5.135 19.528-14.28 27.933-30.312l-1.77-.928c-8.214 15.664-18.735 24.548-27.177 29.517-4.225 2.486-7.933 3.994-10.576 4.88a38.582 38.582 0 0 1-3.095.903 22.254 22.254 0 0 1-1.021.224l-.048.009-.01.002H.834L1 55Z"},null,-1),AW=[CW];function NW(e,t){return V(),ae("svg",SW,AW)}var TW=we(DW,[["render",NW]]);const kW={},OW={viewBox:"0 0 48 58",xmlns:"http://www.w3.org/2000/svg"},FW=ne("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.514 40.526c3.621-1.318 7.444-.526 9.877 1.735V9.149S33.388 3.444 45.478.959C47.17.61 48 1.93 48 4.494v34.26l-.03.871c-.295 3.411-2.75 6.626-6.484 7.984-4.961 1.806-10.301-.35-11.927-4.815-1.625-4.466 1.08-9.55 6.041-11.356 3.622-1.318 7.445-.526 9.878 1.735V3.696l-26.565 7.26V45.7c-.057 4.86-1.44 9.15-6.514 10.997-4.961 1.806-10.301-.35-11.927-4.816-1.625-4.465 1.08-9.55 6.042-11.355Zm34.11 4.715c3.894-1.418 5.6-5.196 4.534-8.124-1.066-2.928-4.8-4.726-8.695-3.309-3.894 1.418-5.6 5.196-4.534 8.124 1.066 2.928 4.8 4.726 8.695 3.309Zm-29.087 9.087c3.894-1.418 5.6-5.196 4.534-8.124-1.066-2.928-4.8-4.726-8.695-3.309-3.894 1.418-5.6 5.196-4.534 8.124 1.066 2.928 4.8 4.726 8.695 3.309Z"},null,-1),$W=[FW];function BW(e,t){return V(),ae("svg",OW,$W)}var PW=we(kW,[["render",BW]]);const IW={},MW={viewBox:"0 0 62 62",xmlns:"http://www.w3.org/2000/svg"},RW=ne("path",{class:"bg",d:"m12.517 57.412-.004-.003C3.992 51.973.263 41.625 1.119 31.1 1.974 20.587 7.392 10.121 16.87 4.554a29.912 29.912 0 0 1 14.733-3.548 29.725 29.725 0 0 1 14.56 4.13c7.309 4.382 12.206 10.62 14.034 17.64 1.825 7.009.62 14.902-4.47 22.672-5.03 7.532-12.927 12.417-21.061 14.46-8.153 2.05-16.402 1.213-22.149-2.496Z"},null,-1),LW=ne("path",{class:"fg",d:"M27.975 23.764a1.51 1.51 0 0 1-.68.17c-.385 0-.703-.113-.952-.34-.25-.25-.374-.567-.374-.952 0-.657.284-1.077.85-1.258l5.236-1.802c.34-.113.567-.17.68-.17.363 0 .669.125.918.374.25.25.374.567.374.952v23.936c0 .363-.124.68-.374.952-.25.25-.566.374-.952.374-.362 0-.68-.125-.952-.374a1.365 1.365 0 0 1-.374-.952v-22.1l-3.4 1.19Z"},null,-1),jW=[RW,LW];function UW(e,t){return V(),ae("svg",MW,jW)}var zW=we(IW,[["render",UW]]);const qW={},HW={viewBox:"0 0 62 62",xmlns:"http://www.w3.org/2000/svg"},VW=ne("path",{class:"bg",d:"m12.517 57.412-.004-.003C3.992 51.973.263 41.625 1.119 31.1 1.974 20.587 7.392 10.121 16.87 4.554a29.912 29.912 0 0 1 14.733-3.548 29.725 29.725 0 0 1 14.56 4.13c7.309 4.382 12.206 10.62 14.034 17.64 1.825 7.009.62 14.902-4.47 22.672-5.03 7.532-12.927 12.417-21.061 14.46-8.153 2.05-16.402 1.213-22.149-2.496Z"},null,-1),KW=ne("path",{class:"fg",d:"M22.14 46a1.37 1.37 0 0 1-.953-.374c-.25-.25-.374-.567-.374-.952v-22.1l-3.4 1.19c-.25.113-.476.17-.68.17-.385 0-.702-.125-.952-.374a1.248 1.248 0 0 1-.374-.918c0-.272.057-.521.17-.748.136-.227.363-.397.68-.51l5.236-1.802c.114-.045.227-.08.34-.102a1.12 1.12 0 0 1 .34-.068c.386 0 .692.136.918.408.25.25.374.555.374.918v23.936c0 .385-.124.703-.374.952-.25.25-.566.374-.952.374Zm16.113 0c-1.677 0-3.117-.533-4.318-1.598-1.201-1.065-2.12-2.584-2.754-4.556-.612-1.995-.918-4.386-.918-7.174 0-2.743.306-5.111.918-7.106.635-1.995 1.553-3.525 2.754-4.59s2.64-1.598 4.318-1.598c1.723 0 3.173.544 4.352 1.632 1.201 1.065 2.108 2.595 2.72 4.59.635 1.995.952 4.352.952 7.072 0 2.765-.317 5.145-.952 7.14-.612 1.972-1.519 3.502-2.72 4.59C41.426 45.467 39.975 46 38.253 46Zm0-2.652c1.224 0 2.233-.453 3.026-1.36.793-.93 1.383-2.199 1.768-3.808.385-1.61.578-3.445.578-5.508 0-2.04-.204-3.853-.612-5.44-.385-1.61-.975-2.879-1.768-3.808-.793-.93-1.79-1.394-2.992-1.394-1.201 0-2.199.465-2.992 1.394-.77.907-1.36 2.165-1.768 3.774-.385 1.61-.578 3.434-.578 5.474 0 2.085.193 3.933.578 5.542.408 1.587.997 2.845 1.768 3.774.793.907 1.79 1.36 2.992 1.36Z"},null,-1),GW=[VW,KW];function WW(e,t){return V(),ae("svg",HW,GW)}var YW=we(qW,[["render",WW]]);const ZW={},JW={viewBox:"0 0 62 62",xmlns:"http://www.w3.org/2000/svg"},XW=ne("path",{class:"bg",d:"m12.517 57.412-.004-.003C3.992 51.973.263 41.625 1.119 31.1 1.974 20.587 7.392 10.121 16.87 4.554a29.912 29.912 0 0 1 14.733-3.548 29.725 29.725 0 0 1 14.56 4.13c7.309 4.382 12.206 10.62 14.034 17.64 1.825 7.009.62 14.902-4.47 22.672-5.03 7.532-12.927 12.417-21.061 14.46-8.153 2.05-16.402 1.213-22.149-2.496Z"},null,-1),QW=ne("path",{class:"fg",d:"M24.862 46c-.363 0-.68-.125-.952-.374-.25-.25-.374-.567-.374-.952 0-.34.125-.646.374-.918l10.302-12.172a7.64 7.64 0 0 0 1.36-2.04c.34-.77.51-1.485.51-2.142 0-1.065-.215-2.006-.646-2.822a4.487 4.487 0 0 0-1.768-1.904c-.748-.476-1.61-.714-2.584-.714-.952 0-1.825.25-2.618.748a5.204 5.204 0 0 0-1.836 1.938c-.43.816-.646 1.734-.646 2.754 0 .363-.125.669-.374.918-.25.25-.567.374-.952.374-.363 0-.68-.125-.952-.374a1.248 1.248 0 0 1-.374-.918c0-1.519.34-2.879 1.02-4.08a7.747 7.747 0 0 1 2.754-2.856c1.179-.703 2.505-1.054 3.978-1.054 1.473 0 2.777.34 3.91 1.02a7.003 7.003 0 0 1 2.686 2.822c.657 1.201.986 2.584.986 4.148a6.18 6.18 0 0 1-.374 2.142 8.769 8.769 0 0 1-.952 1.972 16.68 16.68 0 0 1-1.326 1.734L27.31 43.348h10.642c.363 0 .669.136.918.408.272.272.408.578.408.918 0 .385-.136.703-.408.952-.25.25-.555.374-.918.374h-13.09Z"},null,-1),eY=[XW,QW];function tY(e,t){return V(),ae("svg",JW,eY)}var rY=we(ZW,[["render",tY]]);const nY={},iY={viewBox:"0 0 62 62",xmlns:"http://www.w3.org/2000/svg"},aY=ne("path",{class:"bg",d:"m12.517 57.412-.004-.003C3.992 51.973.263 41.625 1.119 31.1 1.974 20.587 7.392 10.121 16.87 4.554a29.912 29.912 0 0 1 14.733-3.548 29.725 29.725 0 0 1 14.56 4.13c7.309 4.382 12.206 10.62 14.034 17.64 1.825 7.009.62 14.902-4.47 22.672-5.03 7.532-12.927 12.417-21.061 14.46-8.153 2.05-16.402 1.213-22.149-2.496Z"},null,-1),oY=ne("path",{class:"fg",d:"M31.256 46.17c-1.587 0-3.015-.34-4.284-1.02a7.953 7.953 0 0 1-2.958-2.856c-.726-1.201-1.088-2.561-1.088-4.08 0-.385.113-.714.34-.986.226-.272.532-.408.918-.408.385 0 .691.136.918.408.226.272.34.6.34.986 0 1.043.249 1.983.748 2.822a5.677 5.677 0 0 0 2.04 1.972c.884.476 1.858.714 2.924.714 1.768 0 3.15-.487 4.148-1.462.997-.997 1.496-2.278 1.496-3.842 0-1.11-.238-2.074-.714-2.89a4.977 4.977 0 0 0-1.938-1.938c-.816-.476-1.734-.714-2.754-.714-.363 0-.669-.125-.918-.374-.25-.25-.374-.567-.374-.952 0-.363.124-.669.374-.918.249-.25.555-.374.918-.374a4.23 4.23 0 0 0 2.176-.578 4.789 4.789 0 0 0 1.632-1.598 4.045 4.045 0 0 0 .612-2.176c0-1.201-.408-2.199-1.224-2.992-.816-.816-1.904-1.224-3.264-1.224-.952 0-1.802.193-2.55.578-.748.363-1.338.861-1.768 1.496-.408.612-.612 1.315-.612 2.108 0 .385-.125.714-.374.986-.227.25-.522.374-.884.374-.386 0-.692-.125-.918-.374a1.442 1.442 0 0 1-.34-.952c0-1.247.317-2.369.952-3.366a6.731 6.731 0 0 1 2.652-2.38c1.11-.59 2.391-.884 3.842-.884 1.314 0 2.493.295 3.536.884a6.36 6.36 0 0 1 2.516 2.38c.634.997.952 2.12.952 3.366 0 .77-.193 1.519-.578 2.244a7.194 7.194 0 0 1-1.462 1.972 7.174 7.174 0 0 1-2.006 1.326c1.156.34 2.119.861 2.89 1.564a6.408 6.408 0 0 1 1.7 2.482c.362.93.544 1.904.544 2.924 0 1.496-.363 2.833-1.088 4.012-.703 1.156-1.678 2.074-2.924 2.754-1.247.657-2.63.986-4.148.986Z"},null,-1),sY=[aY,oY];function uY(e,t){return V(),ae("svg",iY,sY)}var lY=we(nY,[["render",uY]]);const cY={},fY={viewBox:"0 0 62 62",xmlns:"http://www.w3.org/2000/svg"},dY=ne("path",{class:"bg",d:"m12.517 57.412-.004-.003C3.992 51.973.263 41.625 1.119 31.1 1.974 20.587 7.392 10.121 16.87 4.554a29.912 29.912 0 0 1 14.733-3.548 29.725 29.725 0 0 1 14.56 4.13c7.309 4.382 12.206 10.62 14.034 17.64 1.825 7.009.62 14.902-4.47 22.672-5.03 7.532-12.927 12.417-21.061 14.46-8.153 2.05-16.402 1.213-22.149-2.496Z"},null,-1),pY=ne("path",{class:"fg",d:"M35.225 46a1.21 1.21 0 0 1-.884-.374c-.25-.25-.374-.567-.374-.952v-5.032H21.795c-.363 0-.669-.113-.918-.34a1.572 1.572 0 0 1-.408-.85 1.282 1.282 0 0 1 .272-.884l13.464-17.612c.114-.159.25-.283.408-.374.181-.113.408-.17.68-.17.363 0 .657.136.884.408.25.25.374.567.374.952v16.49h2.686c.363 0 .669.09.918.272.25.181.374.499.374.952 0 .295-.125.567-.374.816-.25.227-.555.34-.918.34h-2.686v5.032c0 .385-.125.703-.374.952-.25.25-.566.374-.952.374Zm-12.002-7.718-.476-1.02h11.22V22.676l.68.714-11.424 14.892Z"},null,-1),hY=[dY,pY];function mY(e,t){return V(),ae("svg",fY,hY)}var vY=we(cY,[["render",mY]]);const gY={},yY={viewBox:"0 0 62 62",xmlns:"http://www.w3.org/2000/svg"},bY=ne("path",{class:"bg",d:"m12.517 57.412-.004-.003C3.992 51.973.263 41.625 1.119 31.1 1.974 20.587 7.392 10.121 16.87 4.554a29.912 29.912 0 0 1 14.733-3.548 29.725 29.725 0 0 1 14.56 4.13c7.309 4.382 12.206 10.62 14.034 17.64 1.825 7.009.62 14.902-4.47 22.672-5.03 7.532-12.927 12.417-21.061 14.46-8.153 2.05-16.402 1.213-22.149-2.496Z"},null,-1),wY=ne("path",{class:"fg",d:"M31.154 46c-1.632 0-3.094-.374-4.386-1.122a8.795 8.795 0 0 1-3.094-3.094c-.748-1.315-1.122-2.788-1.122-4.42 0-.385.125-.703.374-.952.25-.25.555-.374.918-.374.385 0 .703.125.952.374.272.25.408.567.408.952 0 1.133.26 2.153.782 3.06a5.792 5.792 0 0 0 2.108 2.142c.906.521 1.926.782 3.06.782 1.133 0 2.153-.26 3.06-.782a5.714 5.714 0 0 0 2.142-2.142c.521-.907.782-1.927.782-3.06s-.26-2.153-.782-3.06a5.714 5.714 0 0 0-2.142-2.142c-.907-.521-1.927-.782-3.06-.782h-5.95c-.386 0-.703-.125-.952-.374a1.365 1.365 0 0 1-.374-.952v-9.316c0-.363.125-.669.374-.918.25-.272.567-.408.952-.408h11.934c.363 0 .669.136.918.408.272.25.408.555.408.918s-.125.68-.374.952c-.25.25-.567.374-.952.374H26.496v6.664h4.658c1.655 0 3.128.385 4.42 1.156a8.185 8.185 0 0 1 3.06 3.094c.77 1.292 1.156 2.754 1.156 4.386 0 1.632-.386 3.105-1.156 4.42a8.52 8.52 0 0 1-3.06 3.094c-1.292.748-2.765 1.122-4.42 1.122Z"},null,-1),_Y=[bY,wY];function xY(e,t){return V(),ae("svg",yY,_Y)}var EY=we(gY,[["render",xY]]);const DY={},SY={viewBox:"0 0 62 62",xmlns:"http://www.w3.org/2000/svg"},CY=ne("path",{class:"bg",d:"m12.517 57.412-.004-.003C3.992 51.973.263 41.625 1.119 31.1 1.974 20.587 7.392 10.121 16.87 4.554a29.912 29.912 0 0 1 14.733-3.548 29.725 29.725 0 0 1 14.56 4.13c7.309 4.382 12.206 10.62 14.034 17.64 1.825 7.009.62 14.902-4.47 22.672-5.03 7.532-12.927 12.417-21.061 14.46-8.153 2.05-16.402 1.213-22.149-2.496Z"},null,-1),AY=ne("path",{class:"fg",d:"M31.355 46c-1.541 0-2.912-.34-4.114-1.02a7.843 7.843 0 0 1-2.856-2.856c-.68-1.201-1.02-2.573-1.02-4.114 0-1.519.34-2.879 1.02-4.08a7.513 7.513 0 0 1 2.856-2.856c1.202-.703 2.573-1.054 4.114-1.054 1.519 0 2.879.351 4.08 1.054a7.276 7.276 0 0 1 2.822 2.856c.703 1.201 1.054 2.561 1.054 4.08 0 1.541-.351 2.913-1.054 4.114a7.585 7.585 0 0 1-2.822 2.856c-1.201.68-2.561 1.02-4.08 1.02Zm-.034-2.448c1.043 0 1.972-.238 2.788-.714a5.151 5.151 0 0 0 1.972-1.972c.476-.839.714-1.79.714-2.856 0-1.065-.238-2.017-.714-2.856a5.151 5.151 0 0 0-1.972-1.972c-.816-.499-1.745-.748-2.788-.748-1.042 0-1.972.25-2.788.748a5.223 5.223 0 0 0-1.938 1.972c-.476.839-.714 1.79-.714 2.856 0 1.065.238 2.017.714 2.856a5.223 5.223 0 0 0 1.938 1.972c.816.476 1.746.714 2.788.714Zm-6.97-9.588L32.75 20.16c.295-.476.692-.714 1.19-.714.34 0 .635.102.884.306.25.204.397.465.442.782a1.21 1.21 0 0 1-.17.918l-5.61 9.146-5.134 3.366Z"},null,-1),NY=[CY,AY];function TY(e,t){return V(),ae("svg",SY,NY)}var kY=we(DY,[["render",TY]]);const OY={},FY={viewBox:"0 0 62 62",xmlns:"http://www.w3.org/2000/svg"},$Y=ne("path",{class:"bg",d:"m12.517 57.412-.004-.003C3.992 51.973.263 41.625 1.119 31.1 1.974 20.587 7.392 10.121 16.87 4.554a29.912 29.912 0 0 1 14.733-3.548 29.725 29.725 0 0 1 14.56 4.13c7.309 4.382 12.206 10.62 14.034 17.64 1.825 7.009.62 14.902-4.47 22.672-5.03 7.532-12.927 12.417-21.061 14.46-8.153 2.05-16.402 1.213-22.149-2.496Z"},null,-1),BY=ne("path",{class:"fg",d:"M26.88 46c-.363 0-.68-.125-.952-.374-.25-.25-.374-.567-.374-.952 0-.113.023-.238.068-.374a3.72 3.72 0 0 1 .204-.476l10.132-21.76H24.262a1.41 1.41 0 0 1-.986-.374 1.365 1.365 0 0 1-.374-.952c0-.363.125-.669.374-.918.272-.272.6-.408.986-.408H38.1c.363 0 .669.136.918.408a1.248 1.248 0 0 1 .306 1.292l-.136.34-11.118 23.8c-.25.499-.646.748-1.19.748Z"},null,-1),PY=[$Y,BY];function IY(e,t){return V(),ae("svg",FY,PY)}var MY=we(OY,[["render",IY]]);const RY={},LY={viewBox:"0 0 62 62",xmlns:"http://www.w3.org/2000/svg"},jY=ne("path",{class:"bg",d:"m12.517 57.412-.004-.003C3.992 51.973.263 41.625 1.119 31.1 1.974 20.587 7.392 10.121 16.87 4.554a29.912 29.912 0 0 1 14.733-3.548 29.725 29.725 0 0 1 14.56 4.13c7.309 4.382 12.206 10.62 14.034 17.64 1.825 7.009.62 14.902-4.47 22.672-5.03 7.532-12.927 12.417-21.061 14.46-8.153 2.05-16.402 1.213-22.149-2.496Z"},null,-1),UY=ne("path",{class:"fg",d:"M30.52 46.136c-1.518 0-2.878-.351-4.08-1.054a8.028 8.028 0 0 1-2.855-2.924c-.68-1.224-1.02-2.607-1.02-4.148 0-1.496.34-2.833 1.02-4.012a7.66 7.66 0 0 1 2.856-2.788c1.201-.68 2.561-1.02 4.08-1.02 1.518 0 2.879.34 4.08 1.02a7.41 7.41 0 0 1 2.822 2.788c.68 1.179 1.02 2.516 1.02 4.012-.023 1.541-.386 2.924-1.088 4.148a7.765 7.765 0 0 1-2.822 2.924c-1.179.703-2.516 1.054-4.012 1.054Zm0-2.38c.998 0 1.893-.25 2.687-.748a5.504 5.504 0 0 0 1.87-2.074c.476-.861.714-1.836.714-2.924 0-1.043-.227-1.972-.68-2.788a5.054 5.054 0 0 0-1.87-1.972c-.794-.476-1.7-.714-2.72-.714-1.02 0-1.927.238-2.72.714a5.305 5.305 0 0 0-1.904 1.972c-.453.816-.68 1.745-.68 2.788 0 1.088.227 2.063.68 2.924a5.502 5.502 0 0 0 1.87 2.074c.816.499 1.734.748 2.754.748Zm0-11.458c-1.246 0-2.368-.283-3.365-.85a6.21 6.21 0 0 1-2.346-2.312c-.567-.975-.85-2.085-.85-3.332 0-1.201.283-2.29.85-3.264a6.21 6.21 0 0 1 2.346-2.312c.997-.567 2.12-.85 3.366-.85 1.246-.023 2.368.25 3.366.816a5.902 5.902 0 0 1 2.346 2.312c.567.975.839 2.074.816 3.298 0 1.247-.295 2.357-.884 3.332a6.211 6.211 0 0 1-2.346 2.312c-.975.567-2.074.85-3.298.85Zm0-2.278c.749 0 1.418-.181 2.007-.544a4.3 4.3 0 0 0 1.462-1.53 4.43 4.43 0 0 0 .544-2.176c.023-.77-.148-1.45-.51-2.04a3.606 3.606 0 0 0-1.428-1.428c-.612-.34-1.303-.51-2.074-.51-1.156 0-2.12.385-2.89 1.156-.748.748-1.134 1.689-1.156 2.822-.023 1.201.351 2.21 1.122 3.026.77.816 1.745 1.224 2.924 1.224Z"},null,-1),zY=[jY,UY];function qY(e,t){return V(),ae("svg",LY,zY)}var HY=we(RY,[["render",qY]]);const VY={},KY={viewBox:"0 0 62 62",xmlns:"http://www.w3.org/2000/svg"},GY=ne("path",{class:"bg",d:"m12.517 57.412-.004-.003C3.992 51.973.263 41.625 1.119 31.1 1.974 20.587 7.392 10.121 16.87 4.554a29.912 29.912 0 0 1 14.733-3.548 29.725 29.725 0 0 1 14.56 4.13c7.309 4.382 12.206 10.62 14.034 17.64 1.825 7.009.62 14.902-4.47 22.672-5.03 7.532-12.927 12.417-21.061 14.46-8.153 2.05-16.402 1.213-22.149-2.496Z"},null,-1),WY=ne("path",{class:"fg",d:"M30.641 19.412c1.542 0 2.913.351 4.114 1.054a7.34 7.34 0 0 1 2.822 2.822c.703 1.201 1.054 2.573 1.054 4.114 0 1.519-.351 2.89-1.054 4.114a7.585 7.585 0 0 1-2.822 2.856c-1.201.68-2.572 1.02-4.114 1.02-1.518 0-2.878-.34-4.08-1.02a7.843 7.843 0 0 1-2.856-2.856c-.68-1.224-1.02-2.595-1.02-4.114 0-1.541.34-2.913 1.02-4.114a7.584 7.584 0 0 1 2.856-2.822c1.202-.703 2.562-1.054 4.08-1.054Zm.034 2.448c-1.042 0-1.983.238-2.822.714a5.223 5.223 0 0 0-1.938 1.972c-.476.839-.714 1.79-.714 2.856 0 1.065.238 2.017.714 2.856a5.484 5.484 0 0 0 1.938 2.006c.839.476 1.78.714 2.822.714 1.043 0 1.972-.238 2.788-.714a5.484 5.484 0 0 0 1.938-2.006c.476-.839.714-1.79.714-2.856 0-1.065-.238-2.017-.714-2.856a5.223 5.223 0 0 0-1.938-1.972c-.816-.476-1.745-.714-2.788-.714Zm6.97 9.588-8.398 13.804c-.294.476-.691.714-1.19.714-.34 0-.634-.102-.884-.306a1.346 1.346 0 0 1-.476-.782 1.344 1.344 0 0 1 .204-.918l5.61-9.146 5.134-3.366Z"},null,-1),YY=[GY,WY];function ZY(e,t){return V(),ae("svg",KY,YY)}var JY=we(VY,[["render",ZY]]);const XY={},QY={viewBox:"0 0 62 62",xmlns:"http://www.w3.org/2000/svg"},eZ=BS('<circle class="bg" cx="31" cy="31.895" r="31"></circle><path class="fg" fill-rule="evenodd" clip-rule="evenodd" d="m30.98 21.375-9.634 7.065 3.687 11.454h11.892l3.688-11.454-9.634-7.065Zm11.978 6.305L30.98 18.895 19 27.68l4.576 14.215h14.807l4.575-14.215Z"></path><path class="fg" d="M41.621 4.813a28.782 28.782 0 0 0-2.69-.909l1.159 2.318-9.076 2.329-9.483-2.307 1.446-2.313a28.63 28.63 0 0 0-3.015 1.05L18.469 7.37l12.56 3.285L42.91 7.391l-1.288-2.578ZM2.044 33.42l1.986 2.553L11.5 25.63V12.174l-2.08.26a29.148 29.148 0 0 0-1.823 2.243L9.5 14.44v10.544L3.97 32.64l-1.924-2.474a29.474 29.474 0 0 0-.002 3.256ZM6 46.513a29.063 29.063 0 0 0 2 2.96v-2.914l9.213 3.126 6.272 7.7-3.124 1.48 2.62.916 3.534-1.554-8.106-10.321L6 44.054v2.459Z"></path><path class="fg" fill-rule="evenodd" clip-rule="evenodd" d="m55.247 47.722-.364-3.631-11.94 3.815-7.935 10.997 3.273.982 3.245-1.048-3.534-1.127 6.246-8.04 8.879-3.148.408 3.551 1.722-2.351Z"></path><path class="fg" d="m54.616 15.014-1.96-.066-.19 9.654 5.652 6.889 1.801-1.866a29.39 29.39 0 0 1 .05 3.53l-1.672 1.674-7.832-9.503.19-12.378h2.36l.837 1.09.764.976ZM22.846 43.63a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-1.804 2.678a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm18.63-3.862a1 1 0 1 1-.518 1.932 1 1 0 0 1 .518-1.932Zm2.12 2.436a1 1 0 1 1-.518 1.931 1 1 0 0 1 .518-1.931ZM16.617 27.005a1 1 0 1 1-.517-1.932 1 1 0 0 1 .517 1.932Zm-3.053-1.05a1 1 0 1 1-.518-1.932 1 1 0 0 1 .518 1.932Zm32.986.257a1 1 0 1 1-1.986-.231 1 1 0 0 1 1.986.23Zm2.937-.666a1 1 0 1 1-1.986-.23 1 1 0 0 1 1.986.23ZM31.28 14.469a1 1 0 1 1-.518 1.931 1 1 0 0 1 .518-1.931Zm.094-2.779a1 1 0 1 1-.517 1.932 1 1 0 0 1 .517-1.932Z"></path><path class="fg" fill-rule="evenodd" clip-rule="evenodd" d="M31 60.895c16.016 0 29-12.984 29-29 0-16.017-12.984-29-29-29s-29 12.983-29 29c0 16.016 12.984 29 29 29Zm0 2c17.12 0 31-13.88 31-31 0-17.121-13.88-31-31-31-17.12 0-31 13.879-31 31 0 17.12 13.88 31 31 31Z"></path>',6),tZ=[eZ];function rZ(e,t){return V(),ae("svg",QY,tZ)}var nZ=we(XY,[["render",rZ]]);const iZ={},aZ={viewBox:"0 0 62 60",xmlns:"http://www.w3.org/2000/svg"},oZ=ne("path",{d:"M30.98 1.018a.064.064 0 0 1 .01-.016A.027.027 0 0 1 31 1c.006 0 .01.001.01.002 0 0 .005.005.01.016L39.805 19.1c.292.6.86 1.024 1.526 1.122l19.644 2.9.01.002a.057.057 0 0 1 .011.022.067.067 0 0 1 .003.032.023.023 0 0 1-.002.006.059.059 0 0 1-.011.014L46.77 37.273a2.052 2.052 0 0 0-.578 1.8l3.356 19.874c.002.012.002.02.001.022l-.001.007a.047.047 0 0 1-.024.023.14.14 0 0 1-.006-.003l-17.57-9.384-.472.883.471-.883a2.011 2.011 0 0 0-1.896 0l.47.883-.47-.883-17.57 9.384a.147.147 0 0 1-.007.003.047.047 0 0 1-.024-.023.024.024 0 0 1-.002-.007l.002-.022 3.355-19.875a2.052 2.052 0 0 0-.577-1.799L1.014 23.198a.062.062 0 0 1-.01-.014.022.022 0 0 1-.003-.006.066.066 0 0 1 .003-.032.058.058 0 0 1 .012-.022c.001 0 .004-.002.009-.002l19.644-2.9a2.026 2.026 0 0 0 1.526-1.122L30.98 1.018Zm30.005 22.106Z"},null,-1),sZ=[oZ];function uZ(e,t){return V(),ae("svg",aZ,sZ)}var lZ=we(iZ,[["render",uZ]]);const cZ={components:{Apple:nW,Basketball:fW,Cupcake:gW,Heart:EW,Leaf:TW,Note:PW,Number1:zW,Number10:YW,Number2:rY,Number3:lY,Number4:vY,Number5:EY,Number6:kY,Number7:MY,Number8:HY,Number9:JY,Soccer:nZ,Star:lZ},props:{modelValue:Number,name:{type:String,default:"rating"},shape:{type:String,default:"star"},align:{type:String,default:"left"},max:{type:Number,default:5},state:{type:Boolean,default:null},showLabels:{type:Boolean,default:!0},enableKeyBindings:{type:Boolean,default:!1}},emits:["update:modelValue","done"],watch:{enableKeyBindings(e){e?this.addListener():this.removeListener()}},mounted(){this.enableKeyBindings&&this.addListener()},beforeUnmount(){this.enableKeyBindings&&this.removeListener()},methods:{addListener(){window.addEventListener("keydown",this.handleKeyEvent)},removeListener(){window.removeEventListener("keydown",this.handleKeyEvent)},handleKeyEvent(e){if(!e.repeat&&e.code.startsWith("Digit")){const t=e.code==="Digit0"?10:e.keyCode-48;t<=this.max&&(this.emit(t),e.preventDefault(),e.stopPropagation())}},shapeComponent(e){return this.shape==="number"?"number-"+this.position(e):this.shape},position(e){return this.max-e+1},css(e){return{rating__item:!0,selected:Number.isInteger(this.modelValue)&&this.position(e)===this.modelValue}},emit(e){this.modelValue!==e&&(this.$emit("update:modelValue",e),this.$emit("done"))}}},fZ=["onClick"],dZ=["max","name","value"];function pZ(e,t,r,n,i,a){return V(),ae("div",{class:Ye(["rating__wrapper flex flex-row-reverse justify-end","align-"+r.align])},[(V(!0),ae(vt,null,Gt(r.max,o=>(V(),ae("div",{key:o,class:Ye(["rating__item cursor-pointer px-1 w-full",{selected:a.position(o)===r.modelValue}]),onClick:s=>a.emit(a.position(o))},[(V(),Ge(Cr(a.shapeComponent(o)),{class:Ye(["rating__shape",r.shape])},null,8,["class"])),Fr(ne("div",{class:Ye(["rating__label text-center text-xs sm:text-base",{"is-invalid":r.state===!1}])},We(a.position(o)),3),[[$r,r.showLabels]])],10,fZ))),128)),ne("input",{class:"hidden",type:"number",min:"0",max:r.max,name:r.name,value:r.modelValue,onInput:t[0]||(t[0]=o=>a.emit(o.target.value))},null,40,dZ)],2)}var hZ=we(cZ,[["render",pZ],["__scopeId","data-v-1056eb24"]]);const mZ={components:{FieldLabel:hr,ElementWrapper:Rn,Rating:hZ},props:{field:Object,pos:Number},emits:["focus","redraw","update","done"],setup(e){const{field:t}=yt(e),{value:r,state:n,fieldElementId:i,description:a,visibleDescription:o,align:s,shape:u,steps:l,visibleLabels:c}=wt(t),f=tt(()=>o.value?a.value:null);return{value:r,state:n,fieldElementId:i,description:f,align:s,shape:u,steps:l,visibleLabels:c}},computed:{...bt({keyBindings:"page/keyBindings"}),enableKeyBindings(){return this.keyBindings(this.field.type)}},watch:{state(){this.$emit("redraw")}},methods:{update(e){this.$emit("focus"),this.$emit("update",e)}}},vZ={class:"px-4 pb-8"},gZ={class:"w-full relative"};function yZ(e,t,r,n,i,a){const o=ge("field-label"),s=ge("rating",!0),u=ge("element-wrapper");return V(),ae("div",vZ,[Ee(o,{field:r.field},null,8,["field"]),ne("div",gZ,[Ee(u,{label:n.description,"input-id":n.fieldElementId,feedback:e.$t("form.feedback.rating"),state:n.state},{default:Qe(()=>[Ee(s,{class:"mb-4","model-value":n.value,name:n.fieldElementId,shape:n.shape||"star",align:n.align,max:n.steps,"show-labels":n.visibleLabels,state:n.state,"enable-key-bindings":a.enableKeyBindings,"onUpdate:modelValue":a.update,onDone:t[0]||(t[0]=l=>e.$emit("done"))},null,8,["model-value","name","shape","align","max","show-labels","state","enable-key-bindings","onUpdate:modelValue"])]),_:1},8,["label","input-id","feedback","state"])])])}var bZ=we(mZ,[["render",yZ]]);/*!
 * Signature Pad v3.0.0-beta.4 | https://github.com/szimek/signature_pad
 * (c) 2020 Szymon Nowak | Released under the MIT license
 */class fp{constructor(t,r,n){this.x=t,this.y=r,this.time=n||Date.now()}distanceTo(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))}equals(t){return this.x===t.x&&this.y===t.y&&this.time===t.time}velocityFrom(t){return this.time!==t.time?this.distanceTo(t)/(this.time-t.time):0}}class wg{constructor(t,r,n,i,a,o){this.startPoint=t,this.control2=r,this.control1=n,this.endPoint=i,this.startWidth=a,this.endWidth=o}static fromPoints(t,r){const n=this.calculateControlPoints(t[0],t[1],t[2]).c2,i=this.calculateControlPoints(t[1],t[2],t[3]).c1;return new wg(t[1],n,i,t[2],r.start,r.end)}static calculateControlPoints(t,r,n){const i=t.x-r.x,a=t.y-r.y,o=r.x-n.x,s=r.y-n.y,u={x:(t.x+r.x)/2,y:(t.y+r.y)/2},l={x:(r.x+n.x)/2,y:(r.y+n.y)/2},c=Math.sqrt(i*i+a*a),f=Math.sqrt(o*o+s*s),d=u.x-l.x,p=u.y-l.y,h=f/(c+f),b={x:l.x+d*h,y:l.y+p*h},g=r.x-b.x,v=r.y-b.y;return{c1:new fp(u.x+g,u.y+v),c2:new fp(l.x+g,l.y+v)}}length(){let r=0,n,i;for(let a=0;a<=10;a+=1){const o=a/10,s=this.point(o,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),u=this.point(o,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(a>0){const l=s-n,c=u-i;r+=Math.sqrt(l*l+c*c)}n=s,i=u}return r}point(t,r,n,i,a){return r*(1-t)*(1-t)*(1-t)+3*n*(1-t)*(1-t)*t+3*i*(1-t)*t*t+a*t*t*t}}function wZ(e,t=250){let r=0,n=null,i,a,o;const s=()=>{r=Date.now(),n=null,i=e.apply(a,o),n||(a=null,o=[])};return function(...l){const c=Date.now(),f=t-(c-r);return a=this,o=l,f<=0||f>t?(n&&(clearTimeout(n),n=null),r=c,i=e.apply(a,o),n||(a=null,o=[])):n||(n=window.setTimeout(s,f)),i}}class dp{constructor(t,r={}){this.canvas=t,this.options=r,this._handleMouseDown=n=>{n.which===1&&(this._mouseButtonDown=!0,this._strokeBegin(n))},this._handleMouseMove=n=>{this._mouseButtonDown&&this._strokeMoveUpdate(n)},this._handleMouseUp=n=>{n.which===1&&this._mouseButtonDown&&(this._mouseButtonDown=!1,this._strokeEnd(n))},this._handleTouchStart=n=>{if(n.preventDefault(),n.targetTouches.length===1){const i=n.changedTouches[0];this._strokeBegin(i)}},this._handleTouchMove=n=>{n.preventDefault();const i=n.targetTouches[0];this._strokeMoveUpdate(i)},this._handleTouchEnd=n=>{if(n.target===this.canvas){n.preventDefault();const a=n.changedTouches[0];this._strokeEnd(a)}},this.velocityFilterWeight=r.velocityFilterWeight||.7,this.minWidth=r.minWidth||.5,this.maxWidth=r.maxWidth||2.5,this.throttle="throttle"in r?r.throttle:16,this.minDistance="minDistance"in r?r.minDistance:5,this.dotSize=r.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=r.penColor||"black",this.backgroundColor=r.backgroundColor||"rgba(0,0,0,0)",this.onBegin=r.onBegin,this.onEnd=r.onEnd,this._strokeMoveUpdate=this.throttle?wZ(dp.prototype._strokeUpdate,this.throttle):dp.prototype._strokeUpdate,this._ctx=t.getContext("2d"),this.clear(),this.on()}clear(){const{_ctx:t,canvas:r}=this;t.fillStyle=this.backgroundColor,t.clearRect(0,0,r.width,r.height),t.fillRect(0,0,r.width,r.height),this._data=[],this._reset(),this._isEmpty=!0}fromDataURL(t,r={},n){const i=new Image,a=r.ratio||window.devicePixelRatio||1,o=r.width||this.canvas.width/a,s=r.height||this.canvas.height/a;this._reset(),i.onload=()=>{this._ctx.drawImage(i,0,0,o,s),n&&n()},i.onerror=u=>{n&&n(u)},i.src=t,this._isEmpty=!1}toDataURL(t="image/png",r){switch(t){case"image/svg+xml":return this._toSVG();default:return this.canvas.toDataURL(t,r)}}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",window.PointerEvent?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.removeEventListener("pointerdown",this._handleMouseDown),this.canvas.removeEventListener("pointermove",this._handleMouseMove),document.removeEventListener("pointerup",this._handleMouseUp),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this.canvas.removeEventListener("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(t){this.clear(),this._fromData(t,({color:r,curve:n})=>this._drawCurve({color:r,curve:n}),({color:r,point:n})=>this._drawDot({color:r,point:n})),this._data=t}toData(){return this._data}_strokeBegin(t){const r={color:this.penColor,points:[]};typeof this.onBegin=="function"&&this.onBegin(t),this._data.push(r),this._reset(),this._strokeUpdate(t)}_strokeUpdate(t){if(this._data.length===0){this._strokeBegin(t);return}const r=t.clientX,n=t.clientY,i=this._createPoint(r,n),a=this._data[this._data.length-1],o=a.points,s=o.length>0&&o[o.length-1],u=s?i.distanceTo(s)<=this.minDistance:!1,l=a.color;if(!s||!(s&&u)){const c=this._addPoint(i);s?c&&this._drawCurve({color:l,curve:c}):this._drawDot({color:l,point:i}),o.push({time:i.time,x:i.x,y:i.y})}}_strokeEnd(t){this._strokeUpdate(t),typeof this.onEnd=="function"&&this.onEnd(t)}_handlePointerEvents(){this._mouseButtonDown=!1,this.canvas.addEventListener("pointerdown",this._handleMouseDown),this.canvas.addEventListener("pointermove",this._handleMouseMove),document.addEventListener("pointerup",this._handleMouseUp)}_handleMouseEvents(){this._mouseButtonDown=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown),this.canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart),this.canvas.addEventListener("touchmove",this._handleTouchMove),this.canvas.addEventListener("touchend",this._handleTouchEnd)}_reset(){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor}_createPoint(t,r){const n=this.canvas.getBoundingClientRect();return new fp(t-n.left,r-n.top,new Date().getTime())}_addPoint(t){const{_lastPoints:r}=this;if(r.push(t),r.length>2){r.length===3&&r.unshift(r[0]);const n=this._calculateCurveWidths(r[1],r[2]),i=wg.fromPoints(r,n);return r.shift(),i}return null}_calculateCurveWidths(t,r){const n=this.velocityFilterWeight*r.velocityFrom(t)+(1-this.velocityFilterWeight)*this._lastVelocity,i=this._strokeWidth(n),a={end:i,start:this._lastWidth};return this._lastVelocity=n,this._lastWidth=i,a}_strokeWidth(t){return Math.max(this.maxWidth/(t+1),this.minWidth)}_drawCurveSegment(t,r,n){const i=this._ctx;i.moveTo(t,r),i.arc(t,r,n,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve({color:t,curve:r}){const n=this._ctx,i=r.endWidth-r.startWidth,a=Math.floor(r.length())*2;n.beginPath(),n.fillStyle=t;for(let o=0;o<a;o+=1){const s=o/a,u=s*s,l=u*s,c=1-s,f=c*c,d=f*c;let p=d*r.startPoint.x;p+=3*f*s*r.control1.x,p+=3*c*u*r.control2.x,p+=l*r.endPoint.x;let h=d*r.startPoint.y;h+=3*f*s*r.control1.y,h+=3*c*u*r.control2.y,h+=l*r.endPoint.y;const b=Math.min(r.startWidth+l*i,this.maxWidth);this._drawCurveSegment(p,h,b)}n.closePath(),n.fill()}_drawDot({color:t,point:r}){const n=this._ctx,i=typeof this.dotSize=="function"?this.dotSize():this.dotSize;n.beginPath(),this._drawCurveSegment(r.x,r.y,i),n.closePath(),n.fillStyle=t,n.fill()}_fromData(t,r,n){for(const i of t){const{color:a,points:o}=i;if(o.length>1)for(let s=0;s<o.length;s+=1){const u=o[s],l=new fp(u.x,u.y,u.time);this.penColor=a,s===0&&this._reset();const c=this._addPoint(l);c&&r({color:a,curve:c})}else this._reset(),n({color:a,point:o[0]})}}_toSVG(){const t=this._data,r=Math.max(window.devicePixelRatio||1,1),n=0,i=0,a=this.canvas.width/r,o=this.canvas.height/r,s=document.createElementNS("http://www.w3.org/2000/svg","svg");s.setAttribute("width",this.canvas.width.toString()),s.setAttribute("height",this.canvas.height.toString()),this._fromData(t,({color:p,curve:h})=>{const b=document.createElement("path");if(!isNaN(h.control1.x)&&!isNaN(h.control1.y)&&!isNaN(h.control2.x)&&!isNaN(h.control2.y)){const g=`M ${h.startPoint.x.toFixed(3)},${h.startPoint.y.toFixed(3)} C ${h.control1.x.toFixed(3)},${h.control1.y.toFixed(3)} ${h.control2.x.toFixed(3)},${h.control2.y.toFixed(3)} ${h.endPoint.x.toFixed(3)},${h.endPoint.y.toFixed(3)}`;b.setAttribute("d",g),b.setAttribute("stroke-width",(h.endWidth*2.25).toFixed(3)),b.setAttribute("stroke",p),b.setAttribute("fill","none"),b.setAttribute("stroke-linecap","round"),s.appendChild(b)}},({color:p,point:h})=>{const b=document.createElement("circle"),g=typeof this.dotSize=="function"?this.dotSize():this.dotSize;b.setAttribute("r",g.toString()),b.setAttribute("cx",h.x.toString()),b.setAttribute("cy",h.y.toString()),b.setAttribute("fill",p),s.appendChild(b)});const u="data:image/svg+xml;base64,",l=`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="${n} ${i} ${a} ${o}" width="${a}" height="${o}">`;let c=s.innerHTML;if(c===void 0){const p=document.createElement("dummy"),h=s.childNodes;p.innerHTML="";for(let b=0;b<h.length;b+=1)p.appendChild(h[b].cloneNode(!0));c=p.innerHTML}const f="</svg>",d=l+c+f;return u+btoa(d)}}const i0=["image/png","image/jpeg","image/svg+xml"],_Z=e=>i0.includes(e),xZ={dotSize:(.5+2.5)/2,minWidth:.5,maxWidth:2.5,throttle:16,minDistance:5,backgroundColor:"rgba(0,0,0,0)",penColor:"black",velocityFilterWeight:.7,onBegin:()=>{},onEnd:()=>{}},m3=e=>JSON.parse(JSON.stringify(e)),v3={src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=",x:0,y:0},EZ=Hc({props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"},customStyle:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})},images:{type:Array,default:()=>[]}},data:()=>({signaturePad:{},cacheImages:[],signatureData:v3,onResizeHandler:null}),computed:{propsImagesAndCustomImages(){const e=m3(this.images),t=m3(this.cacheImages);return[...e,...t]}},mounted(){const{options:e}=this,t=this.$refs.signaturePadCanvas,r=new dp(t,{...xZ,...e});this.signaturePad=r,e.resizeHandler&&(this.resizeCanvas=e.resizeHandler.bind(this)),this.onResizeHandler=this.resizeCanvas.bind(this),window.addEventListener("resize",this.onResizeHandler,!1),this.resizeCanvas()},beforeUnmount(){this.onResizeHandler&&window.removeEventListener("resize",this.onResizeHandler,!1)},methods:{resizeCanvas(){const e=this.$refs.signaturePadCanvas,t=this.signaturePad.toData(),r=Math.max(window.devicePixelRatio||1,1);e.width=e.offsetWidth*r,e.height=e.offsetHeight*r,e.getContext("2d").scale(r,r),this.signaturePad.clear(),this.signatureData=v3,this.signaturePad.fromData(t)},saveSignature(e=i0[0],t){const{signaturePad:r}=this,n={isEmpty:!1,data:void 0};if(!_Z(e)){const i=i0.join(", ");throw new Error(`The Image type is incorrect! We are support ${i} types.`)}return r.isEmpty()?{...n,isEmpty:!0}:(this.signatureData=r.toDataURL(e,t),{...n,data:this.signatureData})},undoSignature(){const{signaturePad:e}=this,t=e.toData();if(t)return e.fromData(t.slice(0,-1))},fromDataURL(e,t={},r){return this.signaturePad.fromDataURL(e,t,r)},fromData(e){return this.signaturePad.fromData(e)},toData(){return this.signaturePad.toData()},lockSignaturePad(){return this.signaturePad.off()},openSignaturePad(){return this.signaturePad.on()},isEmpty(){return this.signaturePad.isEmpty()},getPropImagesAndCacheImages(){return this.propsImagesAndCustomImages},clearCacheImages(){return this.cacheImages=[],this.cacheImages},clearSignature(){return this.signaturePad.clear()}},render(){const{width:e,height:t,customStyle:r}=this;return Qa("div",{style:{width:e,height:t,...r}},[Qa("canvas",{style:{width:e,height:t},ref:"signaturePadCanvas"})])}});const Am={nl:"Wissen",es:"Eliminar",fr:"Effacer",it:"Svuota",ru:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",de:"L\xF6schen",ja:"\u30AF\u30EA\u30A2",da:"Ryd",ms:"Bersihkan",id:"Jelas",tr:"Temizle",pt:"Limpar",lt:"I\u0161valyti",ro:"\u0218terge",sl:"Po\u010Disti",ar:"\u0645\u0633\u062D",af:"Duidelik",cs:"Smazat",hu:"T\xF6rl\xE9s",th:"\u0E25\u0E49\u0E32\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",he:"\u05DE\u05D7\u05D9\u05E7\u05D4",en:"Clear"},DZ=e=>e in Am?Am[e]:Am.en,SZ={components:{Pad:EZ},props:{modelValue:String,state:{type:Boolean,default:null},lang:{type:String,default:"en"}},emits:["update:modelValue","focus","redraw"],expose:["flush"],data(){return{options:{onBegin:this.onBegin,onEnd:this.onEnd}}},computed:{lblClear(){return DZ(this.lang)}},watch:{modelValue(e){this.updateSignature(e)}},mounted(){this.updateSignature(this.modelValue)},methods:{onBegin(){this.$emit("focus")},onEnd(){const{isEmpty:e,data:t}=this.$refs.signature.saveSignature();e||this.$emit("update:modelValue",t),this.$emit("redraw")},updateSignature(e){(typeof e=="string"||e instanceof String)&&e.startsWith("data:")?this.$refs.signature.fromDataURL(e):this.$refs.signature.clearSignature()},flush(){this.$refs.signature.clearSignature(),this.$emit("update:modelValue",""),this.$emit("redraw")}}},CZ={class:"absolute top-4 bottom-8 left-6 right-6"};function AZ(e,t,r,n,i,a){const o=ge("pad");return V(),ae("div",{class:Ye(["signature-pad rounded-lg flex flex-col h-48 mt-4 relative text-right",{invalid:r.state===!1}])},[ne("div",CZ,[Ee(o,{ref:"signature",options:i.options},null,8,["options"])]),ne("a",{class:"clear print:hidden absolute cursor-pointer right-6 bottom-2 text-sm opacity-50 hover:opacity-100 hover:no-underline",onClick:t[0]||(t[0]=(...s)=>a.flush&&a.flush(...s))},We(a.lblClear),1)],2)}var NZ=we(SZ,[["render",AZ],["__scopeId","data-v-1cb0cd60"]]);const TZ={components:{FieldLabel:hr,ElementWrapper:Rn,Signature:NZ},props:{field:Object,pos:Number},emits:["redraw","update"],setup(e){const{field:t}=yt(e),{value:r,state:n,fieldElementId:i,description:a}=wt(t);return{value:r,state:n,fieldElementId:i,description:a}},computed:{...bt({lang:"page/language"})},watch:{state(){this.$emit("redraw")}},methods:{update(e){this.$emit("update",e)}}},kZ={class:"px-4 pb-8"},OZ={class:"w-full relative"};function FZ(e,t,r,n,i,a){const o=ge("field-label"),s=ge("signature",!0),u=ge("element-wrapper");return V(),ae("div",kZ,[Ee(o,{field:r.field},null,8,["field"]),ne("div",OZ,[Ee(u,{label:n.description,"input-id":n.fieldElementId,feedback:e.$t("form.feedback.signature"),state:n.state},{default:Qe(()=>[Ee(s,{ref:"signature","model-value":n.value,lang:e.lang,state:n.state,"onUpdate:modelValue":t[0]||(t[0]=l=>e.$emit("update",l)),onRedraw:t[1]||(t[1]=l=>e.$emit("redraw"))},null,8,["model-value","lang","state"])]),_:1},8,["label","input-id","feedback","state"])])])}var $Z=we(TZ,[["render",FZ]]),a0={exports:{}};(function(e,t){(function(r,n){n(t)})(lt,function(r){r.PipsMode=void 0,function(P){P.Range="range",P.Steps="steps",P.Positions="positions",P.Count="count",P.Values="values"}(r.PipsMode||(r.PipsMode={})),r.PipsType=void 0,function(P){P[P.None=-1]="None",P[P.NoValue=0]="NoValue",P[P.LargeValue=1]="LargeValue",P[P.SmallValue=2]="SmallValue"}(r.PipsType||(r.PipsType={}));function n(P){return i(P)&&typeof P.from=="function"}function i(P){return typeof P=="object"&&typeof P.to=="function"}function a(P){P.parentElement.removeChild(P)}function o(P){return P!=null}function s(P){P.preventDefault()}function u(P){return P.filter(function(C){return this[C]?!1:this[C]=!0},{})}function l(P,C){return Math.round(P/C)*C}function c(P,C){var be=P.getBoundingClientRect(),T=P.ownerDocument,z=T.documentElement,E=w(T);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(E.x=0),C?be.top+E.y-z.clientTop:be.left+E.x-z.clientLeft}function f(P){return typeof P=="number"&&!isNaN(P)&&isFinite(P)}function d(P,C,be){be>0&&(g(P,C),setTimeout(function(){v(P,C)},be))}function p(P){return Math.max(Math.min(P,100),0)}function h(P){return Array.isArray(P)?P:[P]}function b(P){P=String(P);var C=P.split(".");return C.length>1?C[1].length:0}function g(P,C){P.classList&&!/\s/.test(C)?P.classList.add(C):P.className+=" "+C}function v(P,C){P.classList&&!/\s/.test(C)?P.classList.remove(C):P.className=P.className.replace(new RegExp("(^|\\b)"+C.split(" ").join("|")+"(\\b|$)","gi")," ")}function S(P,C){return P.classList?P.classList.contains(C):new RegExp("\\b"+C+"\\b").test(P.className)}function w(P){var C=window.pageXOffset!==void 0,be=(P.compatMode||"")==="CSS1Compat",T=C?window.pageXOffset:be?P.documentElement.scrollLeft:P.body.scrollLeft,z=C?window.pageYOffset:be?P.documentElement.scrollTop:P.body.scrollTop;return{x:T,y:z}}function D(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function _(){var P=!1;try{var C=Object.defineProperty({},"passive",{get:function(){P=!0}});window.addEventListener("test",null,C)}catch{}return P}function N(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function $(P,C){return 100/(C-P)}function k(P,C,be){return C*100/(P[be+1]-P[be])}function K(P,C){return k(P,P[0]<0?C+Math.abs(P[0]):C-P[0],0)}function G(P,C){return C*(P[1]-P[0])/100+P[0]}function j(P,C){for(var be=1;P>=C[be];)be+=1;return be}function q(P,C,be){if(be>=P.slice(-1)[0])return 100;var T=j(be,P),z=P[T-1],E=P[T],O=C[T-1],H=C[T];return O+K([z,E],be)/$(O,H)}function re(P,C,be){if(be>=100)return P.slice(-1)[0];var T=j(be,C),z=P[T-1],E=P[T],O=C[T-1],H=C[T];return G([z,E],(be-O)*$(O,H))}function M(P,C,be,T){if(T===100)return T;var z=j(T,P),E=P[z-1],O=P[z];return be?T-E>(O-E)/2?O:E:C[z-1]?P[z-1]+l(T-P[z-1],C[z-1]):T}var U=function(){function P(C,be,T){this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[T||!1],this.xNumSteps=[!1],this.snap=be;var z,E=[];for(Object.keys(C).forEach(function(O){E.push([h(C[O]),O])}),E.sort(function(O,H){return O[0][0]-H[0][0]}),z=0;z<E.length;z++)this.handleEntryPoint(E[z][1],E[z][0]);for(this.xNumSteps=this.xSteps.slice(0),z=0;z<this.xNumSteps.length;z++)this.handleStepPoint(z,this.xNumSteps[z])}return P.prototype.getDistance=function(C){for(var be=[],T=0;T<this.xNumSteps.length-1;T++)be[T]=k(this.xVal,C,T);return be},P.prototype.getAbsoluteDistance=function(C,be,T){var z=0;if(C<this.xPct[this.xPct.length-1])for(;C>this.xPct[z+1];)z++;else C===this.xPct[this.xPct.length-1]&&(z=this.xPct.length-2);!T&&C===this.xPct[z+1]&&z++,be===null&&(be=[]);var E,O=1,H=be[z],L=0,Q=0,se=0,m=0;for(T?E=(C-this.xPct[z])/(this.xPct[z+1]-this.xPct[z]):E=(this.xPct[z+1]-C)/(this.xPct[z+1]-this.xPct[z]);H>0;)L=this.xPct[z+1+m]-this.xPct[z+m],be[z+m]*O+100-E*100>100?(Q=L*E,O=(H-100*E)/be[z+m],E=1):(Q=be[z+m]*L/100*O,O=0),T?(se=se-Q,this.xPct.length+m>=1&&m--):(se=se+Q,this.xPct.length-m>=1&&m++),H=be[z+m]*O;return C+se},P.prototype.toStepping=function(C){return C=q(this.xVal,this.xPct,C),C},P.prototype.fromStepping=function(C){return re(this.xVal,this.xPct,C)},P.prototype.getStep=function(C){return C=M(this.xPct,this.xSteps,this.snap,C),C},P.prototype.getDefaultStep=function(C,be,T){var z=j(C,this.xPct);return(C===100||be&&C===this.xPct[z-1])&&(z=Math.max(z-1,1)),(this.xVal[z]-this.xVal[z-1])/T},P.prototype.getNearbySteps=function(C){var be=j(C,this.xPct);return{stepBefore:{startValue:this.xVal[be-2],step:this.xNumSteps[be-2],highestStep:this.xHighestCompleteStep[be-2]},thisStep:{startValue:this.xVal[be-1],step:this.xNumSteps[be-1],highestStep:this.xHighestCompleteStep[be-1]},stepAfter:{startValue:this.xVal[be],step:this.xNumSteps[be],highestStep:this.xHighestCompleteStep[be]}}},P.prototype.countStepDecimals=function(){var C=this.xNumSteps.map(b);return Math.max.apply(null,C)},P.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},P.prototype.convert=function(C){return this.getStep(this.toStepping(C))},P.prototype.handleEntryPoint=function(C,be){var T;if(C==="min"?T=0:C==="max"?T=100:T=parseFloat(C),!f(T)||!f(be[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(T),this.xVal.push(be[0]);var z=Number(be[1]);T?this.xSteps.push(isNaN(z)?!1:z):isNaN(z)||(this.xSteps[0]=z),this.xHighestCompleteStep.push(0)},P.prototype.handleStepPoint=function(C,be){if(!!be){if(this.xVal[C]===this.xVal[C+1]){this.xSteps[C]=this.xHighestCompleteStep[C]=this.xVal[C];return}this.xSteps[C]=k([this.xVal[C],this.xVal[C+1]],be,0)/$(this.xPct[C],this.xPct[C+1]);var T=(this.xVal[C+1]-this.xVal[C])/this.xNumSteps[C],z=Math.ceil(Number(T.toFixed(3))-1),E=this.xVal[C]+this.xNumSteps[C]*z;this.xHighestCompleteStep[C]=E}},P}(),x={to:function(P){return P===void 0?"":P.toFixed(2)},from:Number},I={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},ee={tooltips:".__tooltips",aria:".__aria"};function oe(P,C){if(!f(C))throw new Error("noUiSlider: 'step' is not numeric.");P.singleStep=C}function ce(P,C){if(!f(C))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");P.keyboardPageMultiplier=C}function $e(P,C){if(!f(C))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");P.keyboardMultiplier=C}function me(P,C){if(!f(C))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");P.keyboardDefaultStep=C}function _e(P,C){if(typeof C!="object"||Array.isArray(C))throw new Error("noUiSlider: 'range' is not an object.");if(C.min===void 0||C.max===void 0)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");P.spectrum=new U(C,P.snap||!1,P.singleStep)}function Ue(P,C){if(C=h(C),!Array.isArray(C)||!C.length)throw new Error("noUiSlider: 'start' option is incorrect.");P.handles=C.length,P.start=C}function te(P,C){if(typeof C!="boolean")throw new Error("noUiSlider: 'snap' option must be a boolean.");P.snap=C}function Te(P,C){if(typeof C!="boolean")throw new Error("noUiSlider: 'animate' option must be a boolean.");P.animate=C}function de(P,C){if(typeof C!="number")throw new Error("noUiSlider: 'animationDuration' option must be a number.");P.animationDuration=C}function De(P,C){var be=[!1],T;if(C==="lower"?C=[!0,!1]:C==="upper"&&(C=[!1,!0]),C===!0||C===!1){for(T=1;T<P.handles;T++)be.push(C);be.push(!1)}else{if(!Array.isArray(C)||!C.length||C.length!==P.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");be=C}P.connect=be}function Ne(P,C){switch(C){case"horizontal":P.ort=0;break;case"vertical":P.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function je(P,C){if(!f(C))throw new Error("noUiSlider: 'margin' option must be numeric.");C!==0&&(P.margin=P.spectrum.getDistance(C))}function Pe(P,C){if(!f(C))throw new Error("noUiSlider: 'limit' option must be numeric.");if(P.limit=P.spectrum.getDistance(C),!P.limit||P.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function ze(P,C){var be;if(!f(C)&&!Array.isArray(C))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(C)&&!(C.length===2||f(C[0])||f(C[1])))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(C!==0){for(Array.isArray(C)||(C=[C,C]),P.padding=[P.spectrum.getDistance(C[0]),P.spectrum.getDistance(C[1])],be=0;be<P.spectrum.xNumSteps.length-1;be++)if(P.padding[0][be]<0||P.padding[1][be]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var T=C[0]+C[1],z=P.spectrum.xVal[0],E=P.spectrum.xVal[P.spectrum.xVal.length-1];if(T/(E-z)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function R(P,C){switch(C){case"ltr":P.dir=0;break;case"rtl":P.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function J(P,C){if(typeof C!="string")throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var be=C.indexOf("tap")>=0,T=C.indexOf("drag")>=0,z=C.indexOf("fixed")>=0,E=C.indexOf("snap")>=0,O=C.indexOf("hover")>=0,H=C.indexOf("unconstrained")>=0,L=C.indexOf("drag-all")>=0,Q=C.indexOf("smooth-steps")>=0;if(z){if(P.handles!==2)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");je(P,P.start[1]-P.start[0])}if(H&&(P.margin||P.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");P.events={tap:be||E,drag:T,dragAll:L,smoothSteps:Q,fixed:z,snap:E,hover:O,unconstrained:H}}function he(P,C){if(C!==!1)if(C===!0||i(C)){P.tooltips=[];for(var be=0;be<P.handles;be++)P.tooltips.push(C)}else{if(C=h(C),C.length!==P.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");C.forEach(function(T){if(typeof T!="boolean"&&!i(T))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),P.tooltips=C}}function Se(P,C){if(C.length!==P.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");P.handleAttributes=C}function Ce(P,C){if(!i(C))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");P.ariaFormat=C}function X(P,C){if(!n(C))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");P.format=C}function ie(P,C){if(typeof C!="boolean")throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");P.keyboardSupport=C}function fe(P,C){P.documentElement=C}function xe(P,C){if(typeof C!="string"&&C!==!1)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");P.cssPrefix=C}function pe(P,C){if(typeof C!="object")throw new Error("noUiSlider: 'cssClasses' must be an object.");typeof P.cssPrefix=="string"?(P.cssClasses={},Object.keys(C).forEach(function(be){P.cssClasses[be]=P.cssPrefix+C[be]})):P.cssClasses=C}function Be(P){var C={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:x,format:x},be={step:{r:!1,t:oe},keyboardPageMultiplier:{r:!1,t:ce},keyboardMultiplier:{r:!1,t:$e},keyboardDefaultStep:{r:!1,t:me},start:{r:!0,t:Ue},connect:{r:!0,t:De},direction:{r:!0,t:R},snap:{r:!1,t:te},animate:{r:!1,t:Te},animationDuration:{r:!1,t:de},range:{r:!0,t:_e},orientation:{r:!1,t:Ne},margin:{r:!1,t:je},limit:{r:!1,t:Pe},padding:{r:!1,t:ze},behaviour:{r:!0,t:J},ariaFormat:{r:!1,t:Ce},format:{r:!1,t:X},tooltips:{r:!1,t:he},keyboardSupport:{r:!0,t:ie},documentElement:{r:!1,t:fe},cssPrefix:{r:!0,t:xe},cssClasses:{r:!0,t:pe},handleAttributes:{r:!1,t:Se}},T={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:I,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};P.format&&!P.ariaFormat&&(P.ariaFormat=P.format),Object.keys(be).forEach(function(L){if(!o(P[L])&&T[L]===void 0){if(be[L].r)throw new Error("noUiSlider: '"+L+"' is required.");return}be[L].t(C,o(P[L])?P[L]:T[L])}),C.pips=P.pips;var z=document.createElement("div"),E=z.style.msTransform!==void 0,O=z.style.transform!==void 0;C.transformRule=O?"transform":E?"msTransform":"webkitTransform";var H=[["left","top"],["right","bottom"]];return C.style=H[C.dir][C.ort],C}function ve(P,C,be){var T=D(),z=N(),E=z&&_(),O=P,H,L,Q,se,m,A=C.spectrum,Y=[],le=[],Fe=[],He=0,et={},gt=P.ownerDocument,Lt=C.documentElement||gt.documentElement,ir=gt.body,Pt=gt.dir==="rtl"||C.ort===1?0:100;function mr(W,ue){var ye=gt.createElement("div");return ue&&g(ye,ue),W.appendChild(ye),ye}function Nr(W,ue){var ye=mr(W,C.cssClasses.origin),Ie=mr(ye,C.cssClasses.handle);if(mr(Ie,C.cssClasses.touchArea),Ie.setAttribute("data-handle",String(ue)),C.keyboardSupport&&(Ie.setAttribute("tabindex","0"),Ie.addEventListener("keydown",function(qe){return zr(qe,ue)})),C.handleAttributes!==void 0){var Ke=C.handleAttributes[ue];Object.keys(Ke).forEach(function(qe){Ie.setAttribute(qe,Ke[qe])})}return Ie.setAttribute("role","slider"),Ie.setAttribute("aria-orientation",C.ort?"vertical":"horizontal"),ue===0?g(Ie,C.cssClasses.handleLower):ue===C.handles-1&&g(Ie,C.cssClasses.handleUpper),ye}function ki(W,ue){return ue?mr(W,C.cssClasses.connect):!1}function ga(W,ue){var ye=mr(ue,C.cssClasses.connects);L=[],Q=[],Q.push(ki(ye,W[0]));for(var Ie=0;Ie<C.handles;Ie++)L.push(Nr(ue,Ie)),Fe[Ie]=Ie,Q.push(ki(ye,W[Ie+1]))}function ya(W){g(W,C.cssClasses.target),C.dir===0?g(W,C.cssClasses.ltr):g(W,C.cssClasses.rtl),C.ort===0?g(W,C.cssClasses.horizontal):g(W,C.cssClasses.vertical);var ue=getComputedStyle(W).direction;return ue==="rtl"?g(W,C.cssClasses.textDirectionRtl):g(W,C.cssClasses.textDirectionLtr),mr(W,C.cssClasses.base)}function Oi(W,ue){return!C.tooltips||!C.tooltips[ue]?!1:mr(W.firstChild,C.cssClasses.tooltip)}function Ln(){return O.hasAttribute("disabled")}function Zt(W){var ue=L[W];return ue.hasAttribute("disabled")}function ii(){m&&(ui("update"+ee.tooltips),m.forEach(function(W){W&&a(W)}),m=null)}function Fi(){ii(),m=L.map(Oi),Ft("update"+ee.tooltips,function(W,ue,ye){if(!(!m||!C.tooltips)&&m[ue]!==!1){var Ie=W[ue];C.tooltips[ue]!==!0&&(Ie=C.tooltips[ue].to(ye[ue])),m[ue].innerHTML=Ie}})}function ba(){ui("update"+ee.aria),Ft("update"+ee.aria,function(W,ue,ye,Ie,Ke){Fe.forEach(function(qe){var ot=L[qe],Je=pn(le,qe,0,!0,!0,!0),$t=pn(le,qe,100,!0,!0,!0),Tt=Ke[qe],Mt=String(C.ariaFormat.to(ye[qe]));Je=A.fromStepping(Je).toFixed(1),$t=A.fromStepping($t).toFixed(1),Tt=A.fromStepping(Tt).toFixed(1),ot.children[0].setAttribute("aria-valuemin",Je),ot.children[0].setAttribute("aria-valuemax",$t),ot.children[0].setAttribute("aria-valuenow",Tt),ot.children[0].setAttribute("aria-valuetext",Mt)})})}function wa(W){if(W.mode===r.PipsMode.Range||W.mode===r.PipsMode.Steps)return A.xVal;if(W.mode===r.PipsMode.Count){if(W.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var ue=W.values-1,ye=100/ue,Ie=[];ue--;)Ie[ue]=ue*ye;return Ie.push(100),$i(Ie,W.stepped)}return W.mode===r.PipsMode.Positions?$i(W.values,W.stepped):W.mode===r.PipsMode.Values?W.stepped?W.values.map(function(Ke){return A.fromStepping(A.getStep(A.toStepping(Ke)))}):W.values:[]}function $i(W,ue){return W.map(function(ye){return A.fromStepping(ue?A.getStep(ye):ye)})}function ar(W){function ue(Tt,Mt){return Number((Tt+Mt).toFixed(7))}var ye=wa(W),Ie={},Ke=A.xVal[0],qe=A.xVal[A.xVal.length-1],ot=!1,Je=!1,$t=0;return ye=u(ye.slice().sort(function(Tt,Mt){return Tt-Mt})),ye[0]!==Ke&&(ye.unshift(Ke),ot=!0),ye[ye.length-1]!==qe&&(ye.push(qe),Je=!0),ye.forEach(function(Tt,Mt){var zt,xt,Wt,fr=Tt,jt=ye[Mt+1],sr,Ca,ds,ps,y,F,Z,Ae=W.mode===r.PipsMode.Steps;for(Ae&&(zt=A.xNumSteps[Mt]),zt||(zt=jt-fr),jt===void 0&&(jt=fr),zt=Math.max(zt,1e-7),xt=fr;xt<=jt;xt=ue(xt,zt)){for(sr=A.toStepping(xt),Ca=sr-$t,y=Ca/(W.density||1),F=Math.round(y),Z=Ca/F,Wt=1;Wt<=F;Wt+=1)ds=$t+Wt*Z,Ie[ds.toFixed(5)]=[A.fromStepping(ds),0];ps=ye.indexOf(xt)>-1?r.PipsType.LargeValue:Ae?r.PipsType.SmallValue:r.PipsType.NoValue,!Mt&&ot&&xt!==jt&&(ps=0),xt===jt&&Je||(Ie[sr.toFixed(5)]=[xt,ps]),$t=sr}}),Ie}function _a(W,ue,ye){var Ie,Ke,qe=gt.createElement("div"),ot=(Ie={},Ie[r.PipsType.None]="",Ie[r.PipsType.NoValue]=C.cssClasses.valueNormal,Ie[r.PipsType.LargeValue]=C.cssClasses.valueLarge,Ie[r.PipsType.SmallValue]=C.cssClasses.valueSub,Ie),Je=(Ke={},Ke[r.PipsType.None]="",Ke[r.PipsType.NoValue]=C.cssClasses.markerNormal,Ke[r.PipsType.LargeValue]=C.cssClasses.markerLarge,Ke[r.PipsType.SmallValue]=C.cssClasses.markerSub,Ke),$t=[C.cssClasses.valueHorizontal,C.cssClasses.valueVertical],Tt=[C.cssClasses.markerHorizontal,C.cssClasses.markerVertical];g(qe,C.cssClasses.pips),g(qe,C.ort===0?C.cssClasses.pipsHorizontal:C.cssClasses.pipsVertical);function Mt(xt,Wt){var fr=Wt===C.cssClasses.value,jt=fr?$t:Tt,sr=fr?ot:Je;return Wt+" "+jt[C.ort]+" "+sr[xt]}function zt(xt,Wt,fr){if(fr=ue?ue(Wt,fr):fr,fr!==r.PipsType.None){var jt=mr(qe,!1);jt.className=Mt(fr,C.cssClasses.marker),jt.style[C.style]=xt+"%",fr>r.PipsType.NoValue&&(jt=mr(qe,!1),jt.className=Mt(fr,C.cssClasses.value),jt.setAttribute("data-value",String(Wt)),jt.style[C.style]=xt+"%",jt.innerHTML=String(ye.to(Wt)))}}return Object.keys(W).forEach(function(xt){zt(xt,W[xt][0],W[xt][1])}),qe}function ai(){se&&(a(se),se=null)}function oi(W){ai();var ue=ar(W),ye=W.filter,Ie=W.format||{to:function(Ke){return String(Math.round(Ke))}};return se=O.appendChild(_a(ue,ye,Ie)),se}function Bi(){var W=H.getBoundingClientRect(),ue="offset"+["Width","Height"][C.ort];return C.ort===0?W.width||H[ue]:W.height||H[ue]}function Jr(W,ue,ye,Ie){var Ke=function(ot){var Je=vr(ot,Ie.pageOffset,Ie.target||ue);if(!Je||Ln()&&!Ie.doNotReject||S(O,C.cssClasses.tap)&&!Ie.doNotReject||W===T.start&&Je.buttons!==void 0&&Je.buttons>1||Ie.hover&&Je.buttons)return!1;E||Je.preventDefault(),Je.calcPoint=Je.points[C.ort],ye(Je,Ie)},qe=[];return W.split(" ").forEach(function(ot){ue.addEventListener(ot,Ke,E?{passive:!0}:!1),qe.push([ot,Ke])}),qe}function vr(W,ue,ye){var Ie=W.type.indexOf("touch")===0,Ke=W.type.indexOf("mouse")===0,qe=W.type.indexOf("pointer")===0,ot=0,Je=0;if(W.type.indexOf("MSPointer")===0&&(qe=!0),W.type==="mousedown"&&!W.buttons&&!W.touches)return!1;if(Ie){var $t=function(zt){var xt=zt.target;return xt===ye||ye.contains(xt)||W.composed&&W.composedPath().shift()===ye};if(W.type==="touchstart"){var Tt=Array.prototype.filter.call(W.touches,$t);if(Tt.length>1)return!1;ot=Tt[0].pageX,Je=Tt[0].pageY}else{var Mt=Array.prototype.find.call(W.changedTouches,$t);if(!Mt)return!1;ot=Mt.pageX,Je=Mt.pageY}}return ue=ue||w(gt),(Ke||qe)&&(ot=W.clientX+ue.x,Je=W.clientY+ue.y),W.pageOffset=ue,W.points=[ot,Je],W.cursor=Ke||qe,W}function Pi(W){var ue=W-c(H,C.ort),ye=ue*100/Bi();return ye=p(ye),C.dir?100-ye:ye}function xa(W){var ue=100,ye=!1;return L.forEach(function(Ie,Ke){if(!Zt(Ke)){var qe=le[Ke],ot=Math.abs(qe-W),Je=ot===100&&ue===100,$t=ot<ue,Tt=ot<=ue&&W>qe;($t||Tt||Je)&&(ye=Ke,ue=ot)}}),ye}function Ea(W,ue){W.type==="mouseout"&&W.target.nodeName==="HTML"&&W.relatedTarget===null&&jn(W,ue)}function Da(W,ue){if(navigator.appVersion.indexOf("MSIE 9")===-1&&W.buttons===0&&ue.buttonsProperty!==0)return jn(W,ue);var ye=(C.dir?-1:1)*(W.calcPoint-ue.startCalcPoint),Ie=ye*100/ue.baseSize;po(ye>0,Ie,ue.locations,ue.handleNumbers,ue.connect)}function jn(W,ue){ue.handle&&(v(ue.handle,C.cssClasses.active),He-=1),ue.listeners.forEach(function(ye){Lt.removeEventListener(ye[0],ye[1])}),He===0&&(v(O,C.cssClasses.drag),ho(),W.cursor&&(ir.style.cursor="",ir.removeEventListener("selectstart",s))),C.events.smoothSteps&&(ue.handleNumbers.forEach(function(ye){li(ye,le[ye],!0,!0,!1,!1)}),ue.handleNumbers.forEach(function(ye){It("update",ye)})),ue.handleNumbers.forEach(function(ye){It("change",ye),It("set",ye),It("end",ye)})}function Xr(W,ue){if(!ue.handleNumbers.some(Zt)){var ye;if(ue.handleNumbers.length===1){var Ie=L[ue.handleNumbers[0]];ye=Ie.children[0],He+=1,g(ye,C.cssClasses.active)}W.stopPropagation();var Ke=[],qe=Jr(T.move,Lt,Da,{target:W.target,handle:ye,connect:ue.connect,listeners:Ke,startCalcPoint:W.calcPoint,baseSize:Bi(),pageOffset:W.pageOffset,handleNumbers:ue.handleNumbers,buttonsProperty:W.buttons,locations:le.slice()}),ot=Jr(T.end,Lt,jn,{target:W.target,handle:ye,listeners:Ke,doNotReject:!0,handleNumbers:ue.handleNumbers}),Je=Jr("mouseout",Lt,Ea,{target:W.target,handle:ye,listeners:Ke,doNotReject:!0,handleNumbers:ue.handleNumbers});Ke.push.apply(Ke,qe.concat(ot,Je)),W.cursor&&(ir.style.cursor=getComputedStyle(W.target).cursor,L.length>1&&g(O,C.cssClasses.drag),ir.addEventListener("selectstart",s,!1)),ue.handleNumbers.forEach(function($t){It("start",$t)})}}function si(W){W.stopPropagation();var ue=Pi(W.calcPoint),ye=xa(ue);ye!==!1&&(C.events.snap||d(O,C.cssClasses.tap,C.animationDuration),li(ye,ue,!0,!0),ho(),It("slide",ye,!0),It("update",ye,!0),C.events.snap?Xr(W,{handleNumbers:[ye]}):(It("change",ye,!0),It("set",ye,!0)))}function Un(W){var ue=Pi(W.calcPoint),ye=A.getStep(ue),Ie=A.fromStepping(ye);Object.keys(et).forEach(function(Ke){Ke.split(".")[0]==="hover"&&et[Ke].forEach(function(qe){qe.call(en,Ie)})})}function zr(W,ue){if(Ln()||Zt(ue))return!1;var ye=["Left","Right"],Ie=["Down","Up"],Ke=["PageDown","PageUp"],qe=["Home","End"];C.dir&&!C.ort?ye.reverse():C.ort&&!C.dir&&(Ie.reverse(),Ke.reverse());var ot=W.key.replace("Arrow",""),Je=ot===Ke[0],$t=ot===Ke[1],Tt=ot===Ie[0]||ot===ye[0]||Je,Mt=ot===Ie[1]||ot===ye[1]||$t,zt=ot===qe[0],xt=ot===qe[1];if(!Tt&&!Mt&&!zt&&!xt)return!0;W.preventDefault();var Wt;if(Mt||Tt){var fr=Tt?0:1,jt=hn(ue),sr=jt[fr];if(sr===null)return!1;sr===!1&&(sr=A.getDefaultStep(le[ue],Tt,C.keyboardDefaultStep)),$t||Je?sr*=C.keyboardPageMultiplier:sr*=C.keyboardMultiplier,sr=Math.max(sr,1e-7),sr=(Tt?-1:1)*sr,Wt=Y[ue]+sr}else xt?Wt=C.spectrum.xVal[C.spectrum.xVal.length-1]:Wt=C.spectrum.xVal[0];return li(ue,A.toStepping(Wt),!0,!0),It("slide",ue),It("update",ue),It("change",ue),It("set",ue),!1}function Qr(W){W.fixed||L.forEach(function(ue,ye){Jr(T.start,ue.children[0],Xr,{handleNumbers:[ye]})}),W.tap&&Jr(T.start,H,si,{}),W.hover&&Jr(T.move,H,Un,{hover:!0}),W.drag&&Q.forEach(function(ue,ye){if(!(ue===!1||ye===0||ye===Q.length-1)){var Ie=L[ye-1],Ke=L[ye],qe=[ue],ot=[Ie,Ke],Je=[ye-1,ye];g(ue,C.cssClasses.draggable),W.fixed&&(qe.push(Ie.children[0]),qe.push(Ke.children[0])),W.dragAll&&(ot=L,Je=Fe),qe.forEach(function($t){Jr(T.start,$t,Xr,{handles:ot,handleNumbers:Je,connect:ue})})}})}function Ft(W,ue){et[W]=et[W]||[],et[W].push(ue),W.split(".")[0]==="update"&&L.forEach(function(ye,Ie){It("update",Ie)})}function or(W){return W===ee.aria||W===ee.tooltips}function ui(W){var ue=W&&W.split(".")[0],ye=ue?W.substring(ue.length):W;Object.keys(et).forEach(function(Ie){var Ke=Ie.split(".")[0],qe=Ie.substring(Ke.length);(!ue||ue===Ke)&&(!ye||ye===qe)&&(!or(qe)||ye===qe)&&delete et[Ie]})}function It(W,ue,ye){Object.keys(et).forEach(function(Ie){var Ke=Ie.split(".")[0];W===Ke&&et[Ie].forEach(function(qe){qe.call(en,Y.map(C.format.to),ue,Y.slice(),ye||!1,le.slice(),en)})})}function pn(W,ue,ye,Ie,Ke,qe,ot){var Je;return L.length>1&&!C.events.unconstrained&&(Ie&&ue>0&&(Je=A.getAbsoluteDistance(W[ue-1],C.margin,!1),ye=Math.max(ye,Je)),Ke&&ue<L.length-1&&(Je=A.getAbsoluteDistance(W[ue+1],C.margin,!0),ye=Math.min(ye,Je))),L.length>1&&C.limit&&(Ie&&ue>0&&(Je=A.getAbsoluteDistance(W[ue-1],C.limit,!1),ye=Math.min(ye,Je)),Ke&&ue<L.length-1&&(Je=A.getAbsoluteDistance(W[ue+1],C.limit,!0),ye=Math.max(ye,Je))),C.padding&&(ue===0&&(Je=A.getAbsoluteDistance(0,C.padding[0],!1),ye=Math.max(ye,Je)),ue===L.length-1&&(Je=A.getAbsoluteDistance(100,C.padding[1],!0),ye=Math.min(ye,Je))),ot||(ye=A.getStep(ye)),ye=p(ye),ye===W[ue]&&!qe?!1:ye}function zn(W,ue){var ye=C.ort;return(ye?ue:W)+", "+(ye?W:ue)}function po(W,ue,ye,Ie,Ke){var qe=ye.slice(),ot=Ie[0],Je=C.events.smoothSteps,$t=[!W,W],Tt=[W,!W];Ie=Ie.slice(),W&&Ie.reverse(),Ie.length>1?Ie.forEach(function(zt,xt){var Wt=pn(qe,zt,qe[zt]+ue,$t[xt],Tt[xt],!1,Je);Wt===!1?ue=0:(ue=Wt-qe[zt],qe[zt]=Wt)}):$t=Tt=[!0];var Mt=!1;Ie.forEach(function(zt,xt){Mt=li(zt,ye[zt]+ue,$t[xt],Tt[xt],!1,Je)||Mt}),Mt&&(Ie.forEach(function(zt){It("update",zt),It("slide",zt)}),Ke!=null&&It("drag",ot))}function Ii(W,ue){return C.dir?100-W-ue:W}function au(W,ue){le[W]=ue,Y[W]=A.fromStepping(ue);var ye=Ii(ue,0)-Pt,Ie="translate("+zn(ye+"%","0")+")";L[W].style[C.transformRule]=Ie,ou(W),ou(W+1)}function ho(){Fe.forEach(function(W){var ue=le[W]>50?-1:1,ye=3+(L.length+ue*W);L[W].style.zIndex=String(ye)})}function li(W,ue,ye,Ie,Ke,qe){return Ke||(ue=pn(le,W,ue,ye,Ie,!1,qe)),ue===!1?!1:(au(W,ue),!0)}function ou(W){if(!!Q[W]){var ue=0,ye=100;W!==0&&(ue=le[W-1]),W!==Q.length-1&&(ye=le[W]);var Ie=ye-ue,Ke="translate("+zn(Ii(ue,Ie)+"%","0")+")",qe="scale("+zn(Ie/100,"1")+")";Q[W].style[C.transformRule]=Ke+" "+qe}}function su(W,ue){return W===null||W===!1||W===void 0||(typeof W=="number"&&(W=String(W)),W=C.format.from(W),W!==!1&&(W=A.toStepping(W)),W===!1||isNaN(W))?le[ue]:W}function mo(W,ue,ye){var Ie=h(W),Ke=le[0]===void 0;ue=ue===void 0?!0:ue,C.animate&&!Ke&&d(O,C.cssClasses.tap,C.animationDuration),Fe.forEach(function(Je){li(Je,su(Ie[Je],Je),!0,!1,ye)});var qe=Fe.length===1?0:1;if(Ke&&A.hasNoSize()&&(ye=!0,le[0]=0,Fe.length>1)){var ot=100/(Fe.length-1);Fe.forEach(function(Je){le[Je]=Je*ot})}for(;qe<Fe.length;++qe)Fe.forEach(function(Je){li(Je,le[Je],!0,!0,ye)});ho(),Fe.forEach(function(Je){It("update",Je),Ie[Je]!==null&&ue&&It("set",Je)})}function fs(W){mo(C.start,W)}function Ol(W,ue,ye,Ie){if(W=Number(W),!(W>=0&&W<Fe.length))throw new Error("noUiSlider: invalid handle number, got: "+W);li(W,su(ue,W),!0,!0,Ie),It("update",W),ye&&It("set",W)}function uu(W){if(W===void 0&&(W=!1),W)return Y.length===1?Y[0]:Y.slice(0);var ue=Y.map(C.format.to);return ue.length===1?ue[0]:ue}function Sa(){for(ui(ee.aria),ui(ee.tooltips),Object.keys(C.cssClasses).forEach(function(W){v(O,C.cssClasses[W])});O.firstChild;)O.removeChild(O.firstChild);delete O.noUiSlider}function hn(W){var ue=le[W],ye=A.getNearbySteps(ue),Ie=Y[W],Ke=ye.thisStep.step,qe=null;if(C.snap)return[Ie-ye.stepBefore.startValue||null,ye.stepAfter.startValue-Ie||null];Ke!==!1&&Ie+Ke>ye.stepAfter.startValue&&(Ke=ye.stepAfter.startValue-Ie),Ie>ye.thisStep.startValue?qe=ye.thisStep.step:ye.stepBefore.step===!1?qe=!1:qe=Ie-ye.stepBefore.highestStep,ue===100?Ke=null:ue===0&&(qe=null);var ot=A.countStepDecimals();return Ke!==null&&Ke!==!1&&(Ke=Number(Ke.toFixed(ot))),qe!==null&&qe!==!1&&(qe=Number(qe.toFixed(ot))),[qe,Ke]}function ci(){return Fe.map(hn)}function fi(W,ue){var ye=uu(),Ie=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips"];Ie.forEach(function(qe){W[qe]!==void 0&&(be[qe]=W[qe])});var Ke=Be(be);Ie.forEach(function(qe){W[qe]!==void 0&&(C[qe]=Ke[qe])}),A=Ke.spectrum,C.margin=Ke.margin,C.limit=Ke.limit,C.padding=Ke.padding,C.pips?oi(C.pips):ai(),C.tooltips?Fi():ii(),le=[],mo(o(W.start)?W.start:ye,ue)}function Fl(){H=ya(O),ga(C.connect,H),Qr(C.events),mo(C.start),C.pips&&oi(C.pips),C.tooltips&&Fi(),ba()}Fl();var en={destroy:Sa,steps:ci,on:Ft,off:ui,get:uu,set:mo,setHandle:Ol,reset:fs,__moveHandles:function(W,ue,ye){po(W,ue,le,ye)},options:be,updateOptions:fi,target:O,removePips:ai,removeTooltips:ii,getPositions:function(){return le.slice()},getTooltips:function(){return m},getOrigins:function(){return L},pips:oi};return en}function Le(P,C){if(!P||!P.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+P);if(P.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var be=Be(C),T=ve(P,be,C);return P.noUiSlider=T,T}var Ve={__spectrum:U,cssClasses:I,create:Le};r.create=Le,r.cssClasses=I,r.default=Ve,Object.defineProperty(r,"__esModule",{value:!0})})})(a0,a0.exports);var g3=q9(a0.exports),BZ=`
<svg class="shape" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg"><g filter="url(#a)"><circle cx="17.5" cy="15.5" r="11.5"/><circle cx="17.5" cy="15.5" r="11.5"/></g><defs><filter id="a" x="0" y="0" width="35" height="35" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="2"/><feGaussianBlur stdDeviation="3"/><feColorMatrix values="0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0.22 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow"/><feBlend in="SourceGraphic" in2="effect1_dropShadow" result="shape"/></filter></defs></svg>
`,PZ=`
<svg class="shape" viewBox="0 0 47 47" fill="none" xmlns="http://www.w3.org/2000/svg"><g filter="url(#a)"><circle class="bg" cx="23.5" cy="21.5" r="17.5"/></g><path class="bg stg stg1" stroke-width="2" stroke-linecap="round" d="M16 28.75S19.116 25 23.578 25 31 28.75 31 28.75"/><path class="bg stg stg2" stroke-width="2" stroke-linecap="round" d="M16 25h15"/><path class="bg stg stg3" stroke-width="2" stroke-linecap="round" d="M16 25s3.116 2 7.578 2S31 25 31 25"/><path class="bg stg stg4" stroke-width="2" stroke-linecap="round" d="M16 25s3.038 4 7.5 4 7.5-4 7.5-4"/><path class="bg stg stg5" d="M23.5 30c-4.462 0-7.5-5-7.5-5h15s-3.038 5-7.5 5Z"/><circle cx="17" cy="17" r="2"/><circle cx="30" cy="17" r="2"/><defs><filter id="a" x="0" y="0" width="47" height="47" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="2"/><feGaussianBlur stdDeviation="3"/><feColorMatrix values="0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0.22 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow"/><feBlend in="SourceGraphic" in2="effect1_dropShadow" result="shape"/></filter></defs></svg>
`,IZ=`
<svg class="shape" viewBox="0 0 53 53"><path d="M16.651 38.585a17.344 17.344 0 0 0 8.498 2.412c3 .059 5.965-.657 8.604-2.076C44.84 32.42 46.311 14.541 36.24 8.116c-6.82-4.403-19.314-1.856-25.17 6.917-5.904 9.01-2.886 18.477 5.581 23.552Z"/><path class="star" d="m27.669 19.658.9-.437-.9.437a1.34 1.34 0 0 0 1.01.742l5.255.776-3.813 3.775a1.35 1.35 0 0 0-.38 1.184l.896 5.31-4.674-2.496a1.337 1.337 0 0 0-1.26 0l-4.673 2.496.896-5.31a1.35 1.35 0 0 0-.38-1.184l-3.813-3.775 5.254-.776a1.342 1.342 0 0 0 1.01-.742l2.336-4.807 2.336 4.807Z"/></svg>
`,MZ=`
<svg class="shape" viewBox="0 0 47 47" xmlns="http://www.w3.org/2000/svg"><g filter="url(#a)"><circle cx="23.5" cy="21.5" r="17.5"/><mask id="b"><path d="M41 21.5C41 31.165 33.165 39 23.5 39S6 31.165 6 21.5 13.835 4 23.5 4 41 11.835 41 21.5Z"/></mask><path d="m11.49 17.36.052.998.03-.002.031-.003-.112-.994Zm8.199 8.354-.998.075.998-.075Zm12.55-8.506.204-.98-.204.98Zm-21.156 14.99c0-3.247 1.756-8.485 5.427-13.138l-1.57-1.238c-3.878 4.915-5.857 10.576-5.857 14.376h2ZM16.51 19.06a27.265 27.265 0 0 1 2.925-3.164l-1.355-1.471a29.25 29.25 0 0 0-3.14 3.396l1.57 1.24Zm2.925-3.164a25.02 25.02 0 0 1 3.657-2.801L22.029 11.4a27.01 27.01 0 0 0-3.949 3.025l1.355 1.47Zm3.657-2.801c3.091-1.939 6.786-3.273 11.102-3.538l-.122-1.996c-4.67.286-8.686 1.735-12.043 3.84l1.063 1.694ZM11.315 9.803a510.2 510.2 0 0 1 6.767 6.094l1.351-1.474a511.582 511.582 0 0 0-6.794-6.119l-1.324 1.499Zm6.767 6.094c3.87 3.547 8.052 7.489 11.314 10.794 1.632 1.654 3.02 3.136 4.02 4.322a18.2 18.2 0 0 1 1.164 1.504c.136.202.234.367.3.497.032.065.054.115.068.151.014.038.017.053.016.048l1.963-.383c-.092-.469-.381-.973-.687-1.428a20.08 20.08 0 0 0-1.294-1.678c-1.05-1.245-2.48-2.77-4.127-4.438-3.295-3.34-7.507-7.308-11.386-10.863l-1.35 1.474ZM7.323 20.804c1.067-1.096 2.102-2.338 4.219-2.446l-.102-1.998c-3.023.155-4.585 2.058-5.55 3.05l1.433 1.394Zm4.28-2.451c1.197-.136 2.448.185 3.573.924l1.098-1.672c-1.47-.965-3.183-1.434-4.896-1.24l.225 1.988Zm3.573.924c1.816 1.192 3.286 3.468 3.515 6.512l1.995-.15c-.272-3.613-2.036-6.474-4.412-8.034l-1.098 1.672Zm3.515 6.512c.016.203 0 .554-.037 1.1-.035.513-.086 1.156-.117 1.85-.063 1.386-.054 3.074.317 4.672.372 1.603 1.131 3.208 2.642 4.295 1.516 1.09 3.623 1.543 6.442 1.18l-.256-1.984c-2.496.322-4.04-.116-5.017-.82-.982-.706-1.556-1.8-1.863-3.123-.309-1.33-.327-2.8-.267-4.13.03-.663.077-1.266.114-1.804.035-.507.065-1.012.037-1.386l-1.995.15Zm22.042.685c.87-4.637-2.627-9.063-8.29-10.245l-.409 1.957c4.919 1.028 7.346 4.649 6.733 7.92l1.966.368Zm-8.29-10.245c-.795-.166-2.47-.456-4.28-1.154-1.819-.7-3.643-1.767-4.782-3.4l-1.64 1.145c1.466 2.102 3.716 3.356 5.703 4.122 1.995.769 3.856 1.091 4.59 1.244l.41-1.957Zm-9.062-4.553c-1.067-1.53-1.619-3.682-.79-6.81l-1.933-.513c-.959 3.619-.365 6.392 1.082 8.467l1.64-1.144ZM39 21.5C39 30.06 32.06 37 23.5 37v4C34.27 41 43 32.27 43 21.5h-4ZM23.5 37C14.94 37 8 30.06 8 21.5H4C4 32.27 12.73 41 23.5 41v-4ZM8 21.5C8 12.94 14.94 6 23.5 6V2C12.73 2 4 10.73 4 21.5h4ZM23.5 6C32.06 6 39 12.94 39 21.5h4C43 10.73 34.27 2 23.5 2v4Z" mask="url(#b)"/></g><defs><filter id="a" x="0" y="0" width="47" height="47" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="2"/><feGaussianBlur stdDeviation="3"/><feColorMatrix values="0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0.22 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow"/><feBlend in="SourceGraphic" in2="effect1_dropShadow" result="shape"/></filter></defs></svg>
`,RZ=`
<svg class="shape" viewBox="0 0 47 47" fill="none" xmlns="http://www.w3.org/2000/svg"><g filter="url(#a)"><circle cx="23.5" cy="21.5" r="16.5"/></g><path fill-rule="evenodd" clip-rule="evenodd" d="M30 6.333V8.7l-5.5 2v2.808l5.74 4.415 3.26-.725V11h2.731a16.611 16.611 0 0 1 1.558 2.25 16.423 16.423 0 0 1 2.213 8.348l-2.013 2.517-3.89-5.002-3.33.74-2.154 6.466 2.277 3.038 5.913-1.613.473 2.84a16.431 16.431 0 0 1-5.528 5.205 16.552 16.552 0 0 1-3.507 1.518L26.18 35.76l3.118-5.197L27 27.5h-6.946l-1.881 3.01 3.2 5.333-2.495 1.496A16.442 16.442 0 0 1 10 30.99v-3.27l6.537 1.635 1.866-2.985-2.178-6.532-2.845-.711-4.453 5.567L7 21.803A16.557 16.557 0 0 1 10.766 11H14v6.22l2.774.693 5.726-4.405V10.7l-5.649-2.054.491-2.456A16.49 16.49 0 0 1 30 6.333ZM28 7.3l-4.5 1.636-4.35-1.582.17-.854H28v.8Zm-9.826 12.059 5.326-4.097 5.326 4.097L26.78 25.5h-6.558l-2.047-6.141ZM12 13v4.65l-2.926 3.657-.958-1.435L10.693 13H12Zm4.356 18.37 2.272 3.787-1.121.673L12 32.44v-2.16l4.356 1.089Zm12.466 3.871 2.329-3.882 4.045-1.103.215 1.293-5.896 4.212-.693-.52Zm9.19-14.356L35.5 17.657V13h.807l2.557 6.82-.853 1.065Z"/><defs><filter id="a" x="0" y="0" width="47" height="47" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="2"/><feGaussianBlur stdDeviation="3"/><feColorMatrix values="0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0.2 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow"/><feBlend in="SourceGraphic" in2="effect1_dropShadow" result="shape"/></filter></defs></svg>
`,LZ=`
<svg class="shape" viewBox="0 0 54 47"><defs><clipPath id="$$$id$$$" style="transform:translate(var(--heart-trans-1),var(--heart-trans-2))"><path d="M37.225 4C31.685 4 26.99 9.448 26.99 9.448S23.228 4 17.126 4C10.308 4 6 9.107 6 15.577 6 27.47 26.996 39 26.996 39S47.632 28.515 47.99 15.577C48.21 7.719 44.404 4 37.225 4Z"/></clipPath></defs><path class="bg" d="M37.225 4C31.685 4 26.99 9.448 26.99 9.448S23.228 4 17.126 4C10.308 4 6 9.107 6 15.577 6 27.47 26.996 39 26.996 39S47.632 28.515 47.99 15.577C48.21 7.719 44.404 4 37.225 4Z"/><path class="animation heart-transform-2" clip-path="url(#$$$id$$$)" d="M0 50C4 1 6 1 10 5s6 4 10 0 6-4 10 0 6 4 10 0 6-4 10 0 6 4 10 0 6-4 10 0 6 4 10 0 6-4 10 0 6 4 10 0 6-4 10 0v35H0Z" style="transform:translate(calc(-1*var(--heart-trans-1)),calc(-1*var(--heart-trans-2)))"/></svg>
`;const jZ={props:{modelValue:Number,showLabel:{type:Boolean,default:!0},state:{type:Boolean,default:null},shape:{type:String,default:"face"},initial:Number},emits:["update:modelValue","done"],data(){const e="heart_"+Math.random().toString(36).substring(2);return{localValue:this.initial,dragging:!1,emitter:da(t=>this.$emit("update:modelValue",t),100),shapes:{dot:BZ,face:PZ,star:IZ,basketball:MZ,soccer:RZ,heart:LZ.replace("$$$id$$$",e).replace("$$$id$$$",e)}}},computed:{classes(){const e=["slider flex items-center",this.shape,{invalid:this.state===!1}];return this.shape==="face"&&(this.localValue<=10?e.push("stage1"):this.localValue<37?e.push("stage2"):this.localValue<63?e.push("stage3"):this.localValue<89?e.push("stage4"):e.push("stage5")),e},styles(){const e={};return this.shape==="star"&&(e["--star-s"]=(50+33*this.localValue/100)/16+"rem"),this.shape==="heart"&&(e["--heart-trans-1"]=26-Math.sin(this.localValue/10)*10+"px",e["--heart-trans-2"]=-32+this.localValue/3+"px"),e}},watch:{modelValue(e){this.dragging||(this.localValue=e,this.slider.set(e,!1))},shape(){this.setShape()}},created(){this.slider=null},mounted(){this.initSlider()},unmounted(){this.slider.off(),this.slider.destroy(),this.slider=null},methods:{cssClasses:()=>({...g3.cssClasses,target:"target relative",base:"base relative w-full h-full cursor-pointer",origin:"origin absolute",handle:"handle absolute",touchArea:"touch-area w-full h-full",connects:"connects relative w-full overflow-hidden z-0"}),initSlider(){this.slider=g3.create(this.$refs.container,{start:[this.modelValue||this.initial],range:{min:0,max:100},behaviour:"tap",connect:"lower",keyboardSupport:!1,cssPrefix:"sli-",cssClasses:this.cssClasses()}),this.slider.on("start",()=>this.dragging=!0),this.slider.on("end",()=>this.dragging=!1),this.slider.on("slide",e=>{this.localValue=Math.round(Number(e[0])),this.emitter(this.localValue)}),this.slider.on("change",e=>{this.$emit("update:modelValue",Math.round(Number(e[0]))),this.$emit("done")}),this.setShape(),this.localValue=this.modelValue||this.initial},setShape(){this.$nextTick(()=>{Array.from(this.$refs.container.getElementsByClassName("sli-touch-area"),e=>{e.innerHTML=this.shapes[this.shape]})})}}},UZ={class:"flex-grow"},zZ={ref:"container"};function qZ(e,t,r,n,i,a){return V(),ae("div",{class:Ye(a.classes),style:ln(a.styles)},[ne("div",UZ,[ne("div",zZ,null,512)]),Fr(ne("div",{class:"slider-label w-20 text-right text-xs md:text-base"},We(i.localValue)+"%",513),[[$r,r.showLabel]])],6)}var HZ=we(jZ,[["render",qZ],["__scopeId","data-v-7988836d"]]);const VZ={components:{FieldLabel:hr,ElementWrapper:Rn,Slider:HZ},props:{field:Object,pos:Number},emits:["focus","redraw","update","done"],setup(e){const{field:t}=yt(e),{value:r,state:n,fieldElementId:i,description:a,visibleDescription:o,shape:s,visibleLabels:u}=wt(t),l=tt(()=>o.value?a.value:null);return{value:r,state:n,fieldElementId:i,description:l,shape:s,visibleLabels:u}},watch:{state(){this.$emit("redraw")}},methods:{update(e){this.$emit("focus"),this.$emit("update",e)}}},KZ={class:"px-4 pb-8"},GZ={class:"w-full relative"};function WZ(e,t,r,n,i,a){const o=ge("field-label"),s=ge("slider",!0),u=ge("element-wrapper");return V(),ae("div",KZ,[Ee(o,{field:r.field},null,8,["field"]),ne("div",GZ,[Ee(u,{label:n.description,"input-id":n.fieldElementId,feedback:e.$t("form.feedback.slider"),state:n.state},{default:Qe(()=>[Ee(s,{"model-value":n.value,initial:50,name:n.fieldElementId,shape:n.shape||"face","show-label":n.visibleLabels,state:n.state,"onUpdate:modelValue":a.update,onDone:t[0]||(t[0]=l=>e.$emit("done"))},null,8,["model-value","name","shape","show-label","state","onUpdate:modelValue"])]),_:1},8,["label","input-id","feedback","state"])])])}var YZ=we(VZ,[["render",WZ]]);const ZZ={},JZ={class:"h-20"};function XZ(e,t,r,n,i,a){return V(),ae("div",JZ)}var $f=we(ZZ,[["render",XZ]]);const QZ={components:{FieldAccessId:vf({loader:()=>Yl(()=>import("./access-id.3d8c81a9.js"),["assets/access-id.3d8c81a9.js","assets/access-id.1e985dc0.css"]),loadingComponent:$f}),FieldActionList:vR,FieldAddress:yL,FieldCaptcha:SL,FieldCassudyFlashcards:vf({loader:()=>Yl(()=>import("./cassudy-flashcards.d1ab1cd1.js"),["assets/cassudy-flashcards.d1ab1cd1.js","assets/cassudy-flashcards.862a0b7d.css"]),loadingComponent:$f}),FieldDate:kL,FieldDecoration:tR,FieldDropdown:JG,FieldEmail:ML,FieldFile:Ij,FieldFullName:jj,FieldH1:WU,FieldH2:JU,FieldImage:_q,FieldLongText:vf({loader:()=>Yl(()=>import("./long-text.875f7e14.js"),["assets/long-text.875f7e14.js","assets/buffer-es6.2a5734b0.js","assets/buffer-es6.f4498f46.css"]),loadingComponent:$f}),FieldMatrix:Qq,FieldMediaAnswer:vf({loader:()=>Yl(()=>import("./media-answer.657a4918.js"),["assets/media-answer.657a4918.js","assets/media-answer.d90ba318.css","assets/buffer-es6.2a5734b0.js","assets/buffer-es6.f4498f46.css"]),loadingComponent:$f}),FieldMultipleChoice:uH,FieldNewsletterSignup:yH,FieldNumber:EH,FieldOrderCart:fV,FieldPayment:wV,FieldPhone:SV,FieldPictureChoice:BV,FieldRating:bZ,FieldScale:HV,FieldScoreChoice:XV,FieldScoreDisplay:uK,FieldShortText:pK,FieldSignature:$Z,FieldSlider:YZ,FieldTermsOfUse:jK,FieldText:qK,FieldWebsite:WK},provide(){return{inventory:tt(()=>this.inventory)}},props:{field:Object,pos:Number},emits:["redraw","focus","focus:next","done","action","update"],data(){return{height:0}},computed:{...JA("animation",["animating"]),...bt({noIcons:"form/noIcons",inventory:"form/inventory",field_by_id:"fields/field_by_id",is_visible:"fields/is_visible"}),fieldComponent(){switch(this.field.type){case"paypal":case"stripe":return"field-payment";default:return"field-"+this.field.type}},visible(){return this.is_visible(this.field)}},watch:{visible(){this.redraw()}},mounted(){this.redraw()},updated(){this.redraw()},methods:{redraw(){this.$nextTick(()=>{this.height=B(this.$refs,"field.clientHeight",0),this.$emit("redraw")})},getScrollable(){return this.$refs.field}}},eJ={class:"flex flex-nowrap"},tJ={class:"relative w-full grow basis-0"};function rJ(e,t,r,n,i,a){const o=ge("field-decoration");return Fr((V(),ae("div",{ref:"field",class:Ye(["i-container",{"break-inside-avoid":r.field.type!=="text"}])},[ne("div",eJ,[e.noIcons?ct("",!0):(V(),Ge(o,{key:0,height:i.height,field:r.field,pos:r.pos},null,8,["height","field","pos"])),ne("div",tJ,[(V(),Ge(Cr(a.fieldComponent),{class:Ye({"px-0":e.noIcons}),field:r.field,pos:r.pos,onFocus:t[0]||(t[0]=s=>e.$emit("focus")),"onFocus:next":t[1]||(t[1]=s=>e.$emit("focus:next")),onRedraw:a.redraw,onDone:t[2]||(t[2]=s=>e.$emit("done")),onAction:t[3]||(t[3]=s=>e.$emit("action",s)),onUpdate:t[4]||(t[4]=s=>e.$emit("update",s))},null,40,["class","field","pos","onRedraw"]))])])],2)),[[$r,a.visible]])}var nJ=we(QZ,[["render",rJ]]);const iJ={components:{Field:nJ},props:{fields:Array},emits:["focus:next","action","redraw","done"],data(){return{focused:null}},computed:{...bt({page:"pages/current",autoScroll:"form/autoScroll"})},watch:{page(){this.focused=null}},methods:{focus(e,t){this.$store.commit("animation/current",t),this.autoScroll&&this.focused!==t&&(this.scrollToField(e),this.focused=t)},update(e,t,r){this.$store.commit("animation/current",t),this.focused!==t&&(this.focused=t),this.$store.dispatch("fields/update",{field:e,value:r}),this.$store.dispatch("analytics/trackInput",e)},scrollToField(e){const t=B(this.$refs,e.id+".0",null);if(t&&t.getScrollable){const r=t.getScrollable();r&&r.scrollIntoView({behavior:"smooth",block:"center"})}},scrollToInvalid(){const e=this.fields.filter(t=>Object.prototype.hasOwnProperty.call(t,"valid")).find(t=>t.valid===!1);e&&this.scrollToField(e)}}};function aJ(e,t,r,n,i,a){const o=ge("field");return V(),ae("div",null,[(V(!0),ae(vt,null,Gt(r.fields,(s,u)=>(V(),Ge(o,{key:s.id,ref_for:!0,ref:s.id,field:s,pos:u,onFocus:l=>a.focus(s,u),"onFocus:next":t[0]||(t[0]=l=>e.$emit("focus:next")),onAction:t[1]||(t[1]=l=>e.$emit("action",l)),onRedraw:t[2]||(t[2]=l=>e.$emit("redraw")),onDone:t[3]||(t[3]=l=>e.$emit("done")),onUpdate:l=>a.update(s,u,l)},null,8,["field","pos","onFocus","onUpdate"]))),128))])}var oJ=we(iJ,[["render",aJ]]);const sJ={props:{label:String,tag:{type:String,default:"button"},tagType:{type:String,default:"button"},disabled:{type:Boolean,default:!1},variant:{type:String,default:"primary"},size:{type:String,default:"medium"},appearance:{type:String,default:"pill"},effect:{type:String,default:"basic-a"},hint:String,showHint:{type:Boolean,default:!1}},emits:["click"]},uJ={class:"relative block break-words border-none outline-none"},lJ=["innerHTML"];function cJ(e,t,r,n,i,a){return V(),ae("div",{class:Ye(["form-button-wrapper flex flex-col text-center items-center","ab-"+r.appearance])},[(V(),Ge(Cr(r.tag),{type:r.tagType,class:Ye(["form-button cursor-pointer font-bold text-xl justify-center overflow-hidden relative text-center no-underline flex items-center transition-colors duration-300 mb-0.5 focus:outline-none",r.variant,"ab-"+r.size,"ab-"+r.appearance,"ab-"+r.effect]),disabled:r.disabled,onClick:t[0]||(t[0]=o=>e.$emit("click"))},{default:Qe(()=>[ne("span",uJ,[dr(e.$slots,"default",{},()=>[Qn(We(r.label),1)],!0)])]),_:3},8,["type","class","disabled"])),r.showHint&&r.hint?(V(),ae("span",{key:0,class:"text-xs",innerHTML:r.hint},null,8,lJ)):ct("",!0)],2)}var fJ=we(sJ,[["render",cJ],["__scopeId","data-v-fa7a35e0"]]);const dJ={props:{progress:{type:[Number,String],default:0},label:{type:String,default:""},noLabel:{type:Boolean,default:!1}}},pJ=e=>(ua("data-v-31da05ee"),e=e(),la(),e),hJ={class:"apb-bar"},mJ=pJ(()=>ne("div",{class:"apb-space flex items-center flex-grow"},null,-1)),vJ=["innerHTML"];function gJ(e,t,r,n,i,a){return V(),ae("div",hJ,[ne("div",{class:"apb-progress flex items-center",style:ln({width:r.progress+"%"})},[mJ,r.noLabel?ct("",!0):(V(),ae("div",{key:0,class:"apb-label flex items-center",innerHTML:r.label},null,8,vJ))],4)])}var yJ=we(dJ,[["render",gJ],["__scopeId","data-v-31da05ee"]]);const bJ={props:{progress:{type:[Number,String],default:0},label:{type:String,default:""},noLabel:{type:Boolean,default:!1}}},wJ={class:"apb-bar-border flex p-1 rounded-2xl items-center flex-wrap"},_J={class:"apb-bar flex-grow rounded-2xl overflow-hidden"},xJ=["innerHTML"];function EJ(e,t,r,n,i,a){return V(),ae("div",wJ,[ne("div",_J,[ne("div",{class:"apb-progress h-4",style:ln({width:r.progress+"%"})},null,4)]),r.noLabel?ct("",!0):(V(),ae("div",{key:0,class:"apb-label font-bold ml-2",innerHTML:r.label},null,8,xJ))])}var DJ=we(bJ,[["render",EJ],["__scopeId","data-v-542e2457"]]);const SJ={props:{progress:{type:[Number,String],default:0},label:{type:String,default:""},noLabel:{type:Boolean,default:!1}},expose:["redraw"],data(){return{count:0}},computed:{active(){return Math.round(Number(this.progress)*this.count/100)},inactive(){return this.count-this.active}},watch:{label(){this.recalc()},noLabel(){this.recalc()}},mounted(){this.recalc(),window.addEventListener("resize",this.recalc)},beforeUnmount(){window.removeEventListener("resize",this.recalc)},methods:{recalc(){this.count=3,this.$nextTick(()=>{this.count=Math.max(3,Math.round(B(this.$refs,"progress.clientWidth",0)/(3.25*parseFloat(getComputedStyle(document.documentElement).fontSize))))})},redraw(){this.recalc()}}},CJ={class:"apb-bar flex items-center"},AJ=["innerHTML"],NJ={ref:"progress",class:"apb-progress flex flex-grow justify-between"};function TJ(e,t,r,n,i,a){return V(),ae("div",CJ,[r.noLabel?ct("",!0):(V(),ae("div",{key:0,class:"apb-label text-base mr-2 items-center",innerHTML:r.label},null,8,AJ)),ne("div",NJ,[(V(!0),ae(vt,null,Gt(a.active,o=>(V(),ae("div",{key:"a"+o,class:"apb-progress-active"}))),128)),(V(!0),ae(vt,null,Gt(a.inactive,o=>(V(),ae("div",{key:"b"+o,class:"apb-progress-inactive"}))),128))],512)])}var kJ=we(SJ,[["render",TJ],["__scopeId","data-v-29daa143"]]);const OJ={props:{progress:{type:[Number,String],default:0},label:{type:String,default:""},noLabel:{type:Boolean,default:!1}},expose:["redraw"],data(){return{count:0}},computed:{active(){return Math.round(Number(this.progress)*this.count/100)},inactive(){return this.count-this.active}},mounted(){this.recalc(),window.addEventListener("resize",this.recalc)},beforeUnmount(){window.removeEventListener("resize",this.recalc)},methods:{recalc(){this.count=3,this.$nextTick(()=>{this.count=Math.max(3,Math.round(B(this.$refs,"progress.clientWidth",0)/(2.5*parseFloat(getComputedStyle(document.documentElement).fontSize))))})},redraw(){this.recalc()}}},FJ={class:"apb-bar"},$J={ref:"progress",class:"apb-progress flex justify-between"};function BJ(e,t,r,n,i,a){return V(),ae("div",FJ,[ne("div",$J,[(V(!0),ae(vt,null,Gt(a.active,o=>(V(),ae("div",{key:"a"+o,class:"apb-progress-active"}))),128)),(V(!0),ae(vt,null,Gt(a.inactive,o=>(V(),ae("div",{key:"b"+o,class:"apb-progress-inactive"}))),128))],512)])}var PJ=we(OJ,[["render",BJ],["__scopeId","data-v-39db91e7"]]);const Nm={nl:"Pagina {{cur}} van {{max}}",es:"P\xE1gina {{cur}} de {{max}}",fr:"Page {{cur}} de {{max}}",it:"Pagina {{cur}} di {{max}}",ru:"\u0421\u0442\u0440\u0430\u043D\u0438\u0446\u0430 {{cur}} \u0438\u0437 {{max}}",de:"Seite {{cur}} von {{max}}",ja:"{{cur}}/{{max}}\u30DA\u30FC\u30B8",da:"Side {{cur}} af {{max}}",ms:"Halaman {{cur}} daripada {{max}}",id:"Halaman {{cur}} dari {{max}}",tr:"Sayfa {{cur}}/{{max}}",pt:"P\xE1gina {{cur}} de {{max}}",lt:"{{cur}} puslapis i\u0161 {{max}}",ro:"Pagina {{cur}} din {{max}}",sl:"Stran {{cur}} od {{max}}",ar:"\u0627\u0644\u0635\u0641\u062D\u0629 {{cur}} \u0645\u0646 {{max}}",af:"Bladsy {{cur}} van {{max}}",cs:"Strana {{cur}} z {{max}}",hu:"Oldal {{cur}} a {{max}}",th:"\u0E2B\u0E19\u0E49\u0E32\u0E17\u0E35\u0E48 {{cur}} \u0E08\u0E32\u0E01 {{max}}",he:"\u05E2\u05DE\u05D5\u05D3 {{cur}} \u05DE\u05EA\u05D5\u05DA {{max}}",en:"Page {{cur}} of {{max}}"},IJ=(e,t,r)=>(e in Nm?Nm[e]:Nm.en).replace("{{cur}}",t).replace("{{max}}",r),MJ={components:{BarSimple:yJ,BarRounded:DJ,BarSquares:kJ,BarDashes:PJ},props:{current:{type:[Number,String],default:0},maximum:{type:[Number,String],default:0},appearance:{type:String,default:"a"},colors:{type:String,default:"a"},noLabel:{type:Boolean,default:!1},labelAppearance:{type:String,default:"percent"},lang:{type:String,default:"en"}},expose:["redraw"],computed:{progress(){return Math.round(Number(this.current)/Number(this.maximum)*100)},label(){switch(this.labelAppearance){case"percent":return this.progress+"%";case"fraction":return this.current+"&nbsp;/&nbsp;"+this.maximum;case"page":return IJ(this.lang,this.current,this.maximum).replace(/ /g,"&nbsp;");default:return""}},bar(){switch(this.appearance){case"a":case"b":case"c":return"bar-simple";case"d":return"bar-rounded";case"e":return"bar-squares";case"f":return"bar-dashes";default:return"span"}}},methods:{redraw(){this.$refs.bar&&typeof this.$refs.bar.redraw=="function"&&this.$refs.bar.redraw()}}};function RJ(e,t,r,n,i,a){return V(),ae("div",{class:Ye(["apb-wrapper","style-"+r.appearance,"colors-"+r.colors])},[(V(),Ge(Cr(a.bar),{ref:"bar",progress:a.progress,label:a.label,"no-label":r.noLabel},null,8,["progress","label","no-label"]))],2)}var LJ=we(MJ,[["render",RJ]]);const jJ={components:{FormButton:fJ,ProgressBar:LJ},props:{showPrev:{type:Boolean,default:!0},showNext:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},labelPrev:String,labelNext:String,labelSubmit:String,totalPages:{type:Number,default:1},currentPage:{type:Number,default:1},align:{type:String,default:"center"},size:{type:String,default:"medium"},appearance:{type:String,default:"pill"},effect:{type:String,default:"basic-a"},enableKeyBindings:{type:Boolean,default:!1},attention:{type:Boolean,default:!1},pbSize:{type:String,default:"medium"},pbShow:{type:Boolean,default:!1},pbAppearance:{type:String,default:"a"},pbColors:{type:String,default:"a"},pbNoLabel:{type:Boolean,default:!1},pbLabelAppearance:{type:String,default:"percent"},lang:{type:String,default:"en"}},emits:["prev","submit","next"],computed:{total(){return Math.max(1,this.totalPages)},current(){return Math.max(1,Math.min(this.currentPage,this.total))},label(){return this.current===this.total?this.labelSubmit:this.labelNext},metaKey(){return window.navigator.userAgent.indexOf("Mac")!==-1?"&#8984;":"CTRL"}},watch:{enableKeyBindings(e){e?this.addListener():this.removeListener()}},mounted(){this.enableKeyBindings&&this.addListener()},beforeUnmount(){this.enableKeyBindings&&this.removeListener()},methods:{emitLeftButton(){this.total>1&&this.current>1&&this.$emit("prev")},emitRightButton(){this.current===this.total?this.$emit("submit"):this.$emit("next")},addListener(){window.addEventListener("keydown",this.handleKeyEvent)},removeListener(){window.removeEventListener("keydown",this.handleKeyEvent)},handleKeyEvent(e){!e.repeat&&e.ctrlKey&&(e.keyCode===13||e.keyCode===8)&&(e.keyCode===13?this.emitRightButton():this.emitLeftButton(),e.preventDefault(),e.stopPropagation())}}},UJ={key:1,class:"attention text-center"};function zJ(e,t,r,n,i,a){const o=ge("progress-bar"),s=ge("form-button");return V(),ae("div",null,[r.pbShow&&a.total>1&&a.current>1?(V(),ae("div",{key:0,class:Ye(["progress-bar-holder mx-auto my-2","size-"+r.pbSize])},[Ee(o,{current:a.current,maximum:a.total,appearance:r.pbAppearance,colors:r.pbColors,lang:r.lang,"no-label":r.pbNoLabel,"label-appearance":r.pbLabelAppearance},null,8,["current","maximum","appearance","colors","lang","no-label","label-appearance"])],2)):ct("",!0),r.attention?(V(),ae("div",UJ," Never submit passwords! ")):ct("",!0),ne("div",{class:Ye(["navigation flex flex-wrap-reverse flex-row","align-"+r.align])},[r.showPrev&&a.total>1&&a.current>1?(V(),Ge(s,{key:0,class:"m-2",variant:"secondary",label:r.labelPrev,size:r.size,appearance:r.appearance,effect:r.effect,"show-hint":r.enableKeyBindings,disabled:r.disabled,hint:a.metaKey+"+ BACKSPACE",onClick:a.emitLeftButton},null,8,["label","size","appearance","effect","show-hint","disabled","hint","onClick"])):ct("",!0),r.showNext?(V(),Ge(s,{key:1,class:"m-2",variant:"primary",label:a.label,size:r.size,appearance:r.appearance,effect:r.effect,"show-hint":r.enableKeyBindings,disabled:r.disabled,hint:a.metaKey+"+ ENTER",onClick:a.emitRightButton},null,8,["label","size","appearance","effect","show-hint","disabled","hint","onClick"])):ct("",!0)],2)])}var rx=we(jJ,[["render",zJ],["__scopeId","data-v-5250d101"]]);const qJ={components:{FormNavigation:rx},emits:["prev","next","submit"],data(){const e=t=>da(t,400,{leading:!0,trailing:!1});return{emitPrev:e(()=>this.$emit("prev")),emitNext:e(()=>this.$emit("next")),emitSubmit:e(()=>this.$emit("submit"))}},computed:{...bt({total:"pages/total",current:"pages/current",pagebreak:"pages/break",branded:"page/branded",buttonAlign:"button/align",label:"button/label",prevLabel:"button/prevLabel",hideBackButtonForm:"form/hideBackButton",btnSize:"form/btnSize",btnStyle:"form/btnStyle",keyBindings:"form/keyBindings",lang:"page/language",pbEnabled:"form/progress_enabled",pbSize:"form/progress_size",pbAppearance:"form/progress_appearance",pbColors:"form/progress_colors",pbLabel:"form/progress_label",hideSubmit:"form/hideSubmit"}),attention(){return this.branded&&this.current===this.total},align(){return this.current===this.total?this.buttonAlign:B(this.pagebreak,"properties.align","center")},labelPrev(){return this.current===this.total?this.prevLabel:B(this.pagebreak,"properties.prev","Go Back")},labelNext(){return B(this.pagebreak,"properties.next","Next Page")},hidden(){return B(this.pagebreak,"properties.hidden",!1)},hideBackButton(){return B(this.pagebreak,"properties.hideBackButton",!1)||this.hideBackButtonForm},pbShowLabel(){return this.pbLabel!=="none"},pbLabelAppearance(){return this.pbLabel}}},HJ={class:"i-container max-w-[50rem] print:hidden"};function VJ(e,t,r,n,i,a){const o=ge("form-navigation");return V(),ae("div",HJ,[Ee(o,{"show-prev":!a.hideBackButton&&!a.hidden&&(e.total!==e.current||!e.hideSubmit),"show-next":!a.hidden&&(e.total!==e.current||!e.hideSubmit),"label-prev":a.labelPrev,"label-next":a.labelNext,"label-submit":e.label,"total-pages":e.total,"current-page":e.current,align:a.align,size:e.btnSize,appearance:e.btnStyle,"enable-key-bindings":e.keyBindings,attention:a.attention,"pb-show":e.pbEnabled,"pb-size":e.pbSize,"pb-appearance":e.pbAppearance,"pb-colors":e.pbColors,"pb-no-label":!a.pbShowLabel,"pb-label-appearance":a.pbLabelAppearance,lang:e.lang,onPrev:i.emitPrev,onNext:i.emitNext,onSubmit:i.emitSubmit},null,8,["show-prev","show-next","label-prev","label-next","label-submit","total-pages","current-page","align","size","appearance","enable-key-bindings","attention","pb-show","pb-size","pb-appearance","pb-colors","pb-no-label","pb-label-appearance","lang","onPrev","onNext","onSubmit"])])}var KJ=we(qJ,[["render",VJ]]);const GJ={components:{Navigation:KJ,Fields:oJ},props:{fields:Array},emits:["submit","action","prev","next","focus:next","redraw"],data(){return{emitter:da(()=>this.$emit("next"),150)}},computed:{...bt({total:"pages/total",current:"pages/current",conversational:"form/conversational",autoAdvance:"form/autoAdvance",backgroundEnabled:"form/backgroundEnabled",backgroundOpacity:"form/backgroundOpacity",backgroundColor:"form/backgroundColor"}),klass(){return["contents-container i-container rounded-2xl px-0",this.backgroundEnabled?"has-bg my-8 py-8":"pt-8"]},stl(){if(this.backgroundEnabled){const e=Wv(this.backgroundColor);if(e)return{"background-color":"rgba("+e.join(", ")+", "+Number(this.backgroundOpacity/100).toFixed(2)+")"}}return{}}},methods:{scrollToInvalid(){this.$refs.fields.scrollToInvalid()},next(){this.emitter(),this.emitter.flush()},done(){this.autoAdvance&&this.conversational&&this.current<this.total&&this.emitter()}}};function WJ(e,t,r,n,i,a){const o=ge("fields"),s=ge("navigation");return V(),ae("div",{class:Ye(a.klass),style:ln(a.stl)},[Ee(o,{ref:"fields",fields:r.fields,onAction:t[0]||(t[0]=u=>e.$emit("action",u)),onRedraw:t[1]||(t[1]=u=>e.$emit("redraw")),onDone:a.done,"onFocus:next":t[2]||(t[2]=u=>e.$emit("focus:next"))},null,8,["fields","onDone"]),Ee(s,{onSubmit:t[3]||(t[3]=u=>e.$emit("submit")),onPrev:t[4]||(t[4]=u=>e.$emit("prev")),onNext:a.next},null,8,["onNext"])],6)}var YJ=we(GJ,[["render",WJ],["__scopeId","data-v-67fd9680"]]);const ZJ={components:{PageContents:YJ,TransitionFade:q1},emits:["done"],data(){return{show:!0,debouncedNext:null,updating:!1}},computed:{...bt({fields:"page/fields",valid:"page/valid",passwordRequired:"loader/passwordRequired",conversational:"form/conversational",autoFocus:"form/autoFocus"})},mounted(){this.autofocus(),this.debouncedNext=da(this.doNext,50)},methods:{fade(){if(this.conversational)return this.show=!1,new Promise(e=>setTimeout(()=>{this.show=!0,e()},200))},autofocus(){if(this.autoFocus){const e=this.fields.findIndex(t=>Gv(t.type));e!==-1&&this.$nextTick(()=>{Au.$emit("focus:field:"+e)})}},async action(e){await this.$store.dispatch("animation/reset"),B(e,"action")==="page"&&await this.fade();try{await this.$store.dispatch("pages/act",e)==="submit"?this.$emit("done"):B(e,"action")==="page"&&(this.$store.dispatch("world/scrollToTop"),this.autofocus())}catch{}},async prev(){await this.$store.dispatch("animation/reset"),await this.fade(),await this.$store.dispatch("pages/prev"),this.$store.dispatch("world/scrollToTop"),this.autofocus()},async next(){typeof this.debouncedNext=="function"?this.debouncedNext():this.doNext()},async doNext(){this.updating||(this.updating=!0,await this.$store.dispatch("page/validate"),this.valid?(await this.$store.dispatch("animation/reset"),await this.fade(),await this.$store.dispatch("pages/next")==="submit"?this.$emit("done"):(this.$store.dispatch("world/scrollToTop"),this.autofocus())):this.$refs.fields.scrollToInvalid(),this.$nextTick(()=>{this.updating=!1}))},async submit(){await this.$store.dispatch("page/validate"),this.valid?this.$emit("done"):this.$refs.fields.scrollToInvalid()},focusNext(){this.conversational&&this.next()},redraw(){this.$store.dispatch("iframe/redraw")}}};function JJ(e,t,r,n,i,a){const o=ge("page-contents"),s=ge("transition-fade");return V(),Ge(s,{duration:300},{default:Qe(()=>[Fr(Ee(o,{ref:"fields",fields:e.fields,onAction:a.action,onRedraw:a.redraw,"onFocus:next":a.focusNext,onSubmit:a.submit,onPrev:a.prev,onNext:a.next},null,8,["fields","onAction","onRedraw","onFocus:next","onSubmit","onPrev","onNext"]),[[$r,i.show&&!e.passwordRequired]])]),_:1})}var XJ=we(ZJ,[["render",JJ]]);const QJ={props:{field:Object,pos:Number},setup(e){const{field:t}=yt(e),{label:r,value:n}=wt(t);return{label:r,value:n}}},eX=["name","value"];function tX(e,t,r,n,i,a){return V(),ae("input",{type:"hidden",name:n.label,value:n.value},null,8,eX)}var rX=we(QJ,[["render",tX]]),o0=1/0,nX=17976931348623157e292,y3=0/0,iX="[object Symbol]",aX=/^\s+|\s+$/g,oX=/^[-+]0x[0-9a-f]+$/i,sX=/^0b[01]+$/i,uX=/^0o[0-7]+$/i,lX=parseInt,cX=typeof lt=="object"&&lt&&lt.Object===Object&&lt,fX=typeof self=="object"&&self&&self.Object===Object&&self,dX=cX||fX||Function("return this")(),pX=Object.prototype,hX=pX.toString,b3=dX.Symbol,mX=Math.min,w3=b3?b3.prototype:void 0,_3=w3?w3.toString:void 0;function vX(e){if(typeof e=="string")return e;if(nx(e))return _3?_3.call(e):"";var t=e+"";return t=="0"&&1/e==-o0?"-0":t}function gX(e){var t=Math[e];return function(r,n){if(r=ix(r),n=mX(wX(n),292),n){var i=(E3(r)+"e").split("e"),a=t(i[0]+"e"+(+i[1]+n));return i=(E3(a)+"e").split("e"),+(i[0]+"e"+(+i[1]-n))}return t(r)}}function x3(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function yX(e){return!!e&&typeof e=="object"}function nx(e){return typeof e=="symbol"||yX(e)&&hX.call(e)==iX}function bX(e){if(!e)return e===0?e:0;if(e=ix(e),e===o0||e===-o0){var t=e<0?-1:1;return t*nX}return e===e?e:0}function wX(e){var t=bX(e),r=t%1;return t===t?r?t-r:t:0}function ix(e){if(typeof e=="number")return e;if(nx(e))return y3;if(x3(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=x3(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(aX,"");var r=sX.test(e);return r||uX.test(e)?lX(e.slice(2),r?2:8):oX.test(e)?y3:+e}function E3(e){return e==null?"":vX(e)}var _X=gX("round"),xX=_X;const EX={props:{field:Object,pos:Number},emits:["update"],setup(e){const{field:t}=yt(e),{label:r,value:n,calculationInitial:i,hasPrecision:a,precision:o,logicJumps:s}=wt(t);return{label:r,value:n,calculationInitial:i,hasPrecision:a,precision:o,logicJumps:s}},data(){return{emitter:da(this.emit,100)}},computed:{...bt({mentions:"fields/mentions",mentionsExpression:"fields/mentionsExpression",field_by_id:"fields/field_by_id"})},watch:{mentions:{handler(){this.emitter()},immediate:!0}},methods:{emit(){new Promise(e=>{e(this.logicJumps.reduce((t,r)=>{const n=[{field:B(r,"field",null),operator:B(r,"operator",null),operand:B(r,"operand",null)}].concat(B(r,"additional",[])),i=o=>{const s=this.field_by_id(o.field);return s?Ya.test(s,o.operator,o.operand):!1};if(B(r,"join","all")==="all"?n.every(i):n.some(i)){const o=r.action?B(String(r.action).split("#"),0,null):null,s=o?B(String(r.action).split("#"),1,null):null;let u=null;if(s==="field"&&r.value?u=Number(B(this.mentionsExpression.find(l=>l.id===r.value),"value",null)):u=Number(r.value),$s(u))switch(o){case"+":return t+u;case"-":return t-u;case"*":return t*u;case"/":return u?t/u:t}}return t},this.calculationInitial))}).then(e=>this.$emit("update",this.hasPrecision?xX(e,this.precision):e))}}},DX=["name","value"];function SX(e,t,r,n,i,a){return V(),ae("input",{type:"hidden",name:n.label,value:n.value},null,8,DX)}var CX=we(EX,[["render",SX]]);function Ba(){return Ba=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ba.apply(this,arguments)}var ax={epsilon:1e-12,matrix:"Matrix",number:"number",precision:64,predictable:!1,randomSeed:null};function an(e){return typeof e=="number"}function Yr(e){return!e||typeof e!="object"||typeof e.constructor!="function"?!1:e.isBigNumber===!0&&typeof e.constructor.prototype=="object"&&e.constructor.prototype.isBigNumber===!0||typeof e.constructor.isDecimal=="function"&&e.constructor.isDecimal(e)===!0}function wl(e){return e&&typeof e=="object"&&Object.getPrototypeOf(e).isComplex===!0||!1}function Qc(e){return e&&typeof e=="object"&&Object.getPrototypeOf(e).isFraction===!0||!1}function Eh(e){return e&&e.constructor.prototype.isUnit===!0||!1}function Qo(e){return typeof e=="string"}var _g=Array.isArray;function on(e){return e&&e.constructor.prototype.isMatrix===!0||!1}function es(e){return Array.isArray(e)||on(e)}function pp(e){return e&&e.isDenseMatrix&&e.constructor.prototype.isMatrix===!0||!1}function Nu(e){return e&&e.isSparseMatrix&&e.constructor.prototype.isMatrix===!0||!1}function ox(e){return e&&e.constructor.prototype.isRange===!0||!1}function sx(e){return e&&e.constructor.prototype.isIndex===!0||!1}function ux(e){return typeof e=="boolean"}function lx(e){return e&&e.constructor.prototype.isResultSet===!0||!1}function xg(e){return e&&e.constructor.prototype.isHelp===!0||!1}function cx(e){return typeof e=="function"}function fx(e){return e instanceof Date}function dx(e){return e instanceof RegExp}function Dh(e){return!!(e&&typeof e=="object"&&e.constructor===Object&&!wl(e)&&!Qc(e))}function px(e){return e===null}function hx(e){return e===void 0}function ts(e){return e&&e.isAccessorNode===!0&&e.constructor.prototype.isNode===!0||!1}function Bn(e){return e&&e.isArrayNode===!0&&e.constructor.prototype.isNode===!0||!1}function mx(e){return e&&e.isAssignmentNode===!0&&e.constructor.prototype.isNode===!0||!1}function vx(e){return e&&e.isBlockNode===!0&&e.constructor.prototype.isNode===!0||!1}function gx(e){return e&&e.isConditionalNode===!0&&e.constructor.prototype.isNode===!0||!1}function Bt(e){return e&&e.isConstantNode===!0&&e.constructor.prototype.isNode===!0||!1}function s0(e){return Bt(e)||_r(e)&&e.args.length===1&&Bt(e.args[0])&&"-+~".includes(e.op)}function _l(e){return e&&e.isFunctionAssignmentNode===!0&&e.constructor.prototype.isNode===!0||!1}function rs(e){return e&&e.isFunctionNode===!0&&e.constructor.prototype.isNode===!0||!1}function Qs(e){return e&&e.isIndexNode===!0&&e.constructor.prototype.isNode===!0||!1}function Ot(e){return e&&e.isNode===!0&&e.constructor.prototype.isNode===!0||!1}function ef(e){return e&&e.isObjectNode===!0&&e.constructor.prototype.isNode===!0||!1}function _r(e){return e&&e.isOperatorNode===!0&&e.constructor.prototype.isNode===!0||!1}function to(e){return e&&e.isParenthesisNode===!0&&e.constructor.prototype.isNode===!0||!1}function yx(e){return e&&e.isRangeNode===!0&&e.constructor.prototype.isNode===!0||!1}function kr(e){return e&&e.isSymbolNode===!0&&e.constructor.prototype.isNode===!0||!1}function Eg(e){return e&&e.constructor.prototype.isChain===!0||!1}function xn(e){var t=typeof e;return t==="object"?e===null?"null":Yr(e)?"BigNumber":e.constructor&&e.constructor.name?e.constructor.name:"Object":t}function Bo(e){var t=typeof e;if(t==="number"||t==="string"||t==="boolean"||e===null||e===void 0)return e;if(typeof e.clone=="function")return e.clone();if(Array.isArray(e))return e.map(function(r){return Bo(r)});if(e instanceof Date)return new Date(e.valueOf());if(Yr(e))return e;if(e instanceof RegExp)throw new TypeError("Cannot clone "+e);return Jl(e,Bo)}function Jl(e,t){var r={};for(var n in e)st(e,n)&&(r[n]=t(e[n]));return r}function bx(e,t){if(Array.isArray(t))throw new TypeError("Arrays are not supported by deepExtend");for(var r in t)if(st(t,r)&&!(r in Object.prototype)&&!(r in Function.prototype))if(t[r]&&t[r].constructor===Object)e[r]===void 0&&(e[r]={}),e[r]&&e[r].constructor===Object?bx(e[r],t[r]):e[r]=t[r];else{if(Array.isArray(t[r]))throw new TypeError("Arrays are not supported by deepExtend");e[r]=t[r]}return e}function u0(e,t){var r,n,i;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;n++)if(!u0(e[n],t[n]))return!1;return!0}else{if(typeof e=="function")return e===t;if(e instanceof Object){if(Array.isArray(t)||!(t instanceof Object))return!1;for(r in e)if(!(r in t)||!u0(e[r],t[r]))return!1;for(r in t)if(!(r in e))return!1;return!0}else return e===t}}function AX(e){var t={};return wx(e,t),t}function wx(e,t){for(var r in e)if(st(e,r)){var n=e[r];typeof n=="object"&&n!==null?wx(n,t):t[r]=n}}function _d(e,t,r){var n=!0,i;Object.defineProperty(e,t,{get:function(){return n&&(i=r(),n=!1),i},set:function(o){i=o,n=!1},configurable:!0,enumerable:!0})}function st(e,t){return e&&Object.hasOwnProperty.call(e,t)}function NX(e){return e&&typeof e.factory=="function"}function TX(e,t){for(var r={},n=0;n<t.length;n++){var i=t[n],a=e[i];a!==void 0&&(r[i]=a)}return r}function D3(e){return Object.keys(e).map(t=>e[t])}var S3=["Matrix","Array"],C3=["number","BigNumber","Fraction"];function kX(e,t){function r(n){if(n){var i=Jl(e,Bo);A3(n,"matrix",S3),A3(n,"number",C3),bx(e,n);var a=Jl(e,Bo),o=Jl(n,Bo);return t("config",a,i,o),a}else return Jl(e,Bo)}return r.MATRIX_OPTIONS=S3,r.NUMBER_OPTIONS=C3,Object.keys(ax).forEach(n=>{Object.defineProperty(r,n,{get:()=>e[n],enumerable:!0,configurable:!0})}),r}function OX(e,t){return e.indexOf(t)!==-1}function A3(e,t,r){e[t]!==void 0&&!OX(r,e[t])&&console.warn('Warning: Unknown value "'+e[t]+'" for configuration option "'+t+'". Available options: '+r.map(n=>JSON.stringify(n)).join(", ")+".")}function _t(e){return typeof e=="boolean"?!0:isFinite(e)?e===Math.round(e):!1}var Po=Math.sign||function(e){return e>0?1:e<0?-1:0},FX=Math.log2||function(t){return Math.log(t)/Math.LN2},$X=Math.log10||function(t){return Math.log(t)/Math.LN10},BX=Math.log1p||function(e){return Math.log(e+1)},PX=Math.cbrt||function(t){if(t===0)return t;var r=t<0,n;return r&&(t=-t),isFinite(t)?(n=Math.exp(Math.log(t)/3),n=(t/(n*n)+2*n)/3):n=t,r?-n:n},IX=Math.expm1||function(t){return t>=2e-4||t<=-2e-4?Math.exp(t)-1:t+t*t/2+t*t*t/6};function Tm(e,t,r){var n={2:"0b",8:"0o",16:"0x"},i=n[t],a="";if(r){if(r<1)throw new Error("size must be in greater than 0");if(!_t(r))throw new Error("size must be an integer");if(e>2**(r-1)-1||e<-(2**(r-1)))throw new Error("Value must be in range [-2^".concat(r-1,", 2^").concat(r-1,"-1]"));if(!_t(e))throw new Error("Value must be an integer");e<0&&(e=e+2**r),a="i".concat(r)}var o="";return e<0&&(e=-e,o="-"),"".concat(o).concat(i).concat(e.toString(t)).concat(a)}function dc(e,t){if(typeof t=="function")return t(e);if(e===1/0)return"Infinity";if(e===-1/0)return"-Infinity";if(isNaN(e))return"NaN";var r="auto",n,i;if(t&&(t.notation&&(r=t.notation),an(t)?n=t:an(t.precision)&&(n=t.precision),t.wordSize&&(i=t.wordSize,typeof i!="number")))throw new Error('Option "wordSize" must be a number');switch(r){case"fixed":return _x(e,n);case"exponential":return xx(e,n);case"engineering":return MX(e,n);case"bin":return Tm(e,2,i);case"oct":return Tm(e,8,i);case"hex":return Tm(e,16,i);case"auto":return RX(e,n,t&&t).replace(/((\.\d*?)(0+))($|e)/,function(){var a=arguments[2],o=arguments[4];return a!=="."?a+o:o});default:throw new Error('Unknown notation "'+r+'". Choose "auto", "exponential", "fixed", "bin", "oct", or "hex.')}}function Sh(e){var t=String(e).toLowerCase().match(/^(-?)(\d+\.?\d*)(e([+-]?\d+))?$/);if(!t)throw new SyntaxError("Invalid number "+e);var r=t[1],n=t[2],i=parseFloat(t[4]||"0"),a=n.indexOf(".");i+=a!==-1?a-1:n.length-1;var o=n.replace(".","").replace(/^0*/,function(s){return i-=s.length,""}).replace(/0*$/,"").split("").map(function(s){return parseInt(s)});return o.length===0&&(o.push(0),i++),{sign:r,coefficients:o,exponent:i}}function MX(e,t){if(isNaN(e)||!isFinite(e))return String(e);var r=Sh(e),n=Ch(r,t),i=n.exponent,a=n.coefficients,o=i%3===0?i:i<0?i-3-i%3:i-i%3;if(an(t))for(;t>a.length||i-o+1>a.length;)a.push(0);else for(var s=Math.abs(i-o)-(a.length-1),u=0;u<s;u++)a.push(0);for(var l=Math.abs(i-o),c=1;l>0;)c++,l--;var f=a.slice(c).join(""),d=an(t)&&f.length||f.match(/[1-9]/)?"."+f:"",p=a.slice(0,c).join("")+d+"e"+(i>=0?"+":"")+o.toString();return n.sign+p}function _x(e,t){if(isNaN(e)||!isFinite(e))return String(e);var r=Sh(e),n=typeof t=="number"?Ch(r,r.exponent+1+t):r,i=n.coefficients,a=n.exponent+1,o=a+(t||0);return i.length<o&&(i=i.concat(Mu(o-i.length))),a<0&&(i=Mu(-a+1).concat(i),a=1),a<i.length&&i.splice(a,0,a===0?"0.":"."),n.sign+i.join("")}function xx(e,t){if(isNaN(e)||!isFinite(e))return String(e);var r=Sh(e),n=t?Ch(r,t):r,i=n.coefficients,a=n.exponent;i.length<t&&(i=i.concat(Mu(t-i.length)));var o=i.shift();return n.sign+o+(i.length>0?"."+i.join(""):"")+"e"+(a>=0?"+":"")+a}function RX(e,t,r){if(isNaN(e)||!isFinite(e))return String(e);var n=r&&r.lowerExp!==void 0?r.lowerExp:-3,i=r&&r.upperExp!==void 0?r.upperExp:5,a=Sh(e),o=t?Ch(a,t):a;if(o.exponent<n||o.exponent>=i)return xx(e,t);var s=o.coefficients,u=o.exponent;s.length<t&&(s=s.concat(Mu(t-s.length))),s=s.concat(Mu(u-s.length+1+(s.length<t?t-s.length:0))),s=Mu(-u).concat(s);var l=u>0?u:0;return l<s.length-1&&s.splice(l+1,0,"."),o.sign+s.join("")}function Ch(e,t){for(var r={sign:e.sign,coefficients:e.coefficients,exponent:e.exponent},n=r.coefficients;t<=0;)n.unshift(0),r.exponent++,t++;if(n.length>t){var i=n.splice(t,n.length-t);if(i[0]>=5){var a=t-1;for(n[a]++;n[a]===10;)n.pop(),a===0&&(n.unshift(0),r.exponent++,a++),a--,n[a]++}}return r}function Mu(e){for(var t=[],r=0;r<e;r++)t.push(0);return t}function LX(e){return e.toExponential().replace(/e.*$/,"").replace(/^0\.?0*|\./,"").length}var jX=Number.EPSILON||2220446049250313e-31;function oa(e,t,r){if(r==null)return e===t;if(e===t)return!0;if(isNaN(e)||isNaN(t))return!1;if(isFinite(e)&&isFinite(t)){var n=Math.abs(e-t);return n<jX?!0:n<=Math.max(Math.abs(e),Math.abs(t))*r}return!1}var UX=Math.acosh||function(e){return Math.log(Math.sqrt(e*e-1)+e)},zX=Math.asinh||function(e){return Math.log(Math.sqrt(e*e+1)+e)},qX=Math.atanh||function(e){return Math.log((1+e)/(1-e))/2},HX=Math.cosh||function(e){return(Math.exp(e)+Math.exp(-e))/2},VX=Math.sinh||function(e){return(Math.exp(e)-Math.exp(-e))/2},KX=Math.tanh||function(e){var t=Math.exp(2*e);return(t-1)/(t+1)},An="number",fo="number, number";function Ex(e){return Math.abs(e)}Ex.signature=An;function Dg(e,t){return e+t}Dg.signature=fo;function Dx(e,t){return e-t}Dx.signature=fo;function Sg(e,t){return e*t}Sg.signature=fo;function Cg(e,t){return e/t}Cg.signature=fo;function Sx(e){return-e}Sx.signature=An;function Cx(e){return e}Cx.signature=An;function Ax(e){return PX(e)}Ax.signature=An;function Nx(e){return e*e*e}Nx.signature=An;function Tx(e){return Math.exp(e)}Tx.signature=An;function kx(e){return IX(e)}kx.signature=An;function Ox(e,t){if(!_t(e)||!_t(t))throw new Error("Parameters in function gcd must be integer numbers");for(var r;t!==0;)r=e%t,e=t,t=r;return e<0?-e:e}Ox.signature=fo;function Fx(e,t){if(!_t(e)||!_t(t))throw new Error("Parameters in function lcm must be integer numbers");if(e===0||t===0)return 0;for(var r,n=e*t;t!==0;)r=t,t=e%r,e=r;return Math.abs(n/e)}Fx.signature=fo;function GX(e,t){return t?Math.log(e)/Math.log(t):Math.log(e)}function $x(e){return $X(e)}$x.signature=An;function Bx(e){return FX(e)}Bx.signature=An;function Px(e){return BX(e)}Px.signature=An;function Ix(e,t){if(t>0)return e-t*Math.floor(e/t);if(t===0)return e;throw new Error("Cannot calculate mod for a negative divisor")}Ix.signature=fo;function WX(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,r=t<0;if(r&&(t=-t),t===0)throw new Error("Root must be non-zero");if(e<0&&Math.abs(t)%2!==1)throw new Error("Root must be odd when a is negative.");if(e===0)return r?1/0:0;if(!isFinite(e))return r?0:e;var n=Math.pow(Math.abs(e),1/t);return n=e<0?-n:n,r?1/n:n}function Mx(e){return Po(e)}Mx.signature=An;function Rx(e){return Math.sqrt(e)}Rx.signature=An;function Lx(e){return e*e}Lx.signature=An;function jx(e,t){var r,n,i,a=0,o=1,s=1,u=0;if(!_t(e)||!_t(t))throw new Error("Parameters in function xgcd must be integer numbers");for(;t;)n=Math.floor(e/t),i=e-n*t,r=a,a=o-n*a,o=r,r=s,s=u-n*s,u=r,e=t,t=i;var l;return e<0?l=[-e,-o,-u]:l=[e,e?o:0,u],l}jx.signature=fo;function Ux(e,t){return e*e<1&&t===1/0||e*e>1&&t===-1/0?0:Math.pow(e,t)}Ux.signature=fo;function YX(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!_t(t)||t<0||t>15)throw new Error("Number of decimals in function round must be an integer from 0 to 15 inclusive");return parseFloat(_x(e,t))}function zx(e){return Math.abs(e)}zx.signature=An;var ZX="number",xl="number, number";function qx(e,t){if(!_t(e)||!_t(t))throw new Error("Integers expected in function bitAnd");return e&t}qx.signature=xl;function Hx(e){if(!_t(e))throw new Error("Integer expected in function bitNot");return~e}Hx.signature=ZX;function Vx(e,t){if(!_t(e)||!_t(t))throw new Error("Integers expected in function bitOr");return e|t}Vx.signature=xl;function Kx(e,t){if(!_t(e)||!_t(t))throw new Error("Integers expected in function bitXor");return e^t}Kx.signature=xl;function Gx(e,t){if(!_t(e)||!_t(t))throw new Error("Integers expected in function leftShift");return e<<t}Gx.signature=xl;function Wx(e,t){if(!_t(e)||!_t(t))throw new Error("Integers expected in function rightArithShift");return e>>t}Wx.signature=xl;function Yx(e,t){if(!_t(e)||!_t(t))throw new Error("Integers expected in function rightLogShift");return e>>>t}Yx.signature=xl;function Va(e,t){if(t<e)return 1;if(t===e)return t;var r=t+e>>1;return Va(e,r)*Va(r+1,t)}function Zx(e,t){if(!_t(e)||e<0)throw new TypeError("Positive integer value expected in function combinations");if(!_t(t)||t<0)throw new TypeError("Positive integer value expected in function combinations");if(t>e)throw new TypeError("k must be less than or equal to n");for(var r=e-t,n=1,i=t<r?r+1:t+1,a=2,o=t<r?t:r,s=i;s<=e;++s)for(n*=s;a<=o&&n%a===0;)n/=a,++a;return a<=o&&(n/=Va(a,o)),n}Zx.signature="number, number";var JX=Math.PI,XX=2*Math.PI,QX=Math.E,eQ=1.618033988749895,tQ="number",Ag="number, number";function Jx(e){return!e}Jx.signature=tQ;function Xx(e,t){return!!(e||t)}Xx.signature=Ag;function Qx(e,t){return!!e!=!!t}Qx.signature=Ag;function e7(e,t){return!!(e&&t)}e7.signature=Ag;function Ng(e){var t;if(_t(e))return e<=0?isFinite(e)?1/0:NaN:e>171?1/0:Va(1,e-1);if(e<.5)return Math.PI/(Math.sin(Math.PI*e)*Ng(1-e));if(e>=171.35)return 1/0;if(e>85){var r=e*e,n=r*e,i=n*e,a=i*e;return Math.sqrt(2*Math.PI/e)*Math.pow(e/Math.E,e)*(1+1/(12*e)+1/(288*r)-139/(51840*n)-571/(2488320*i)+163879/(209018880*a)+5246819/(75246796800*a*e))}--e,t=km[0];for(var o=1;o<km.length;++o)t+=km[o]/(e+o);var s=e+rQ+.5;return Math.sqrt(2*Math.PI)*Math.pow(s,e+.5)*Math.exp(-s)*t}Ng.signature="number";var rQ=4.7421875,km=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22],nQ=.9189385332046728,iQ=5,aQ=7,N3=[1.000000000190015,76.18009172947146,-86.50532032941678,24.01409824083091,-1.231739572450155,.001208650973866179,-5395239384953e-18];function Tg(e){if(e<0)return NaN;if(e===0)return 1/0;if(!isFinite(e))return e;if(e<.5)return Math.log(Math.PI/Math.sin(Math.PI*e))-Tg(1-e);e=e-1;for(var t=e+iQ+.5,r=N3[0],n=aQ-1;n>=1;n--)r+=N3[n]/(e+n);return nQ+(e+.5)*Math.log(t)-t+Math.log(r)}Tg.signature="number";var nr="number",oQ="number, number";function t7(e){return Math.acos(e)}t7.signature=nr;function r7(e){return UX(e)}r7.signature=nr;function n7(e){return Math.atan(1/e)}n7.signature=nr;function i7(e){return isFinite(e)?(Math.log((e+1)/e)+Math.log(e/(e-1)))/2:0}i7.signature=nr;function a7(e){return Math.asin(1/e)}a7.signature=nr;function o7(e){var t=1/e;return Math.log(t+Math.sqrt(t*t+1))}o7.signature=nr;function s7(e){return Math.acos(1/e)}s7.signature=nr;function u7(e){var t=1/e,r=Math.sqrt(t*t-1);return Math.log(r+t)}u7.signature=nr;function l7(e){return Math.asin(e)}l7.signature=nr;function c7(e){return zX(e)}c7.signature=nr;function f7(e){return Math.atan(e)}f7.signature=nr;function d7(e,t){return Math.atan2(e,t)}d7.signature=oQ;function p7(e){return qX(e)}p7.signature=nr;function h7(e){return Math.cos(e)}h7.signature=nr;function m7(e){return HX(e)}m7.signature=nr;function v7(e){return 1/Math.tan(e)}v7.signature=nr;function g7(e){var t=Math.exp(2*e);return(t+1)/(t-1)}g7.signature=nr;function y7(e){return 1/Math.sin(e)}y7.signature=nr;function b7(e){return e===0?Number.POSITIVE_INFINITY:Math.abs(2/(Math.exp(e)-Math.exp(-e)))*Po(e)}b7.signature=nr;function w7(e){return 1/Math.cos(e)}w7.signature=nr;function _7(e){return 2/(Math.exp(e)+Math.exp(-e))}_7.signature=nr;function x7(e){return Math.sin(e)}x7.signature=nr;function E7(e){return VX(e)}E7.signature=nr;function D7(e){return Math.tan(e)}D7.signature=nr;function S7(e){return KX(e)}S7.signature=nr;var tf="number";function C7(e){return _t(e)}C7.signature=tf;function A7(e){return e<0}A7.signature=tf;function N7(e){return e>0}N7.signature=tf;function T7(e){return e===0}T7.signature=tf;function k7(e){return Number.isNaN(e)}k7.signature=tf;function Om(e,t,r){var n=e.constructor,i=new n(2),a="";if(r){if(r<1)throw new Error("size must be in greater than 0");if(!_t(r))throw new Error("size must be an integer");if(e.greaterThan(i.pow(r-1).sub(1))||e.lessThan(i.pow(r-1).mul(-1)))throw new Error("Value must be in range [-2^".concat(r-1,", 2^").concat(r-1,"-1]"));if(!e.isInteger())throw new Error("Value must be an integer");e.lessThan(0)&&(e=e.add(i.pow(r))),a="i".concat(r)}switch(t){case 2:return"".concat(e.toBinary()).concat(a);case 8:return"".concat(e.toOctal()).concat(a);case 16:return"".concat(e.toHexadecimal()).concat(a);default:throw new Error("Base ".concat(t," not supported "))}}function sQ(e,t){if(typeof t=="function")return t(e);if(!e.isFinite())return e.isNaN()?"NaN":e.gt(0)?"Infinity":"-Infinity";var r="auto",n,i;if(t!==void 0&&(t.notation&&(r=t.notation),typeof t=="number"?n=t:t.precision&&(n=t.precision),t.wordSize&&(i=t.wordSize,typeof i!="number")))throw new Error('Option "wordSize" must be a number');switch(r){case"fixed":return lQ(e,n);case"exponential":return T3(e,n);case"engineering":return uQ(e,n);case"bin":return Om(e,2,i);case"oct":return Om(e,8,i);case"hex":return Om(e,16,i);case"auto":{var a=t&&t.lowerExp!==void 0?t.lowerExp:-3,o=t&&t.upperExp!==void 0?t.upperExp:5;if(e.isZero())return"0";var s,u=e.toSignificantDigits(n),l=u.e;return l>=a&&l<o?s=u.toFixed():s=T3(e,n),s.replace(/((\.\d*?)(0+))($|e)/,function(){var c=arguments[2],f=arguments[4];return c!=="."?c+f:f})}default:throw new Error('Unknown notation "'+r+'". Choose "auto", "exponential", "fixed", "bin", "oct", or "hex.')}}function uQ(e,t){var r=e.e,n=r%3===0?r:r<0?r-3-r%3:r-r%3,i=e.mul(Math.pow(10,-n)),a=i.toPrecision(t);return a.indexOf("e")!==-1&&(a=i.toString()),a+"e"+(r>=0?"+":"")+n.toString()}function T3(e,t){return t!==void 0?e.toExponential(t-1):e.toExponential()}function lQ(e,t){return e.toFixed(t)}function ro(e,t){var r=cQ(e,t);return t&&typeof t=="object"&&"truncate"in t&&r.length>t.truncate?r.substring(0,t.truncate-3)+"...":r}function cQ(e,t){if(typeof e=="number")return dc(e,t);if(Yr(e))return sQ(e,t);if(fQ(e))return!t||t.fraction!=="decimal"?e.s*e.n+"/"+e.d:e.toString();if(Array.isArray(e))return O7(e,t);if(Qo(e))return'"'+e+'"';if(typeof e=="function")return e.syntax?String(e.syntax):"function";if(e&&typeof e=="object"){if(typeof e.format=="function")return e.format(t);if(e&&e.toString(t)!=={}.toString())return e.toString(t);var r=Object.keys(e).map(n=>'"'+n+'": '+ro(e[n],t));return"{"+r.join(", ")+"}"}return String(e)}function Bf(e){for(var t=String(e),r="",n=0;n<t.length;){var i=t.charAt(n);i==="\\"?(r+=i,n++,i=t.charAt(n),(i===""||'"\\/bfnrtu'.indexOf(i)===-1)&&(r+="\\"),r+=i):i==='"'?r+='\\"':r+=i,n++}return'"'+r+'"'}function Zn(e){var t=String(e);return t=t.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),t}function O7(e,t){if(Array.isArray(e)){for(var r="[",n=e.length,i=0;i<n;i++)i!==0&&(r+=", "),r+=O7(e[i],t);return r+="]",r}else return ro(e,t)}function fQ(e){return e&&typeof e=="object"&&typeof e.s=="number"&&typeof e.n=="number"&&typeof e.d=="number"||!1}function F7(e,t){if(!Qo(e))throw new TypeError("Unexpected type of argument in function compareText (expected: string or Array or Matrix, actual: "+xn(e)+", index: 0)");if(!Qo(t))throw new TypeError("Unexpected type of argument in function compareText (expected: string or Array or Matrix, actual: "+xn(t)+", index: 1)");return e===t?0:e>t?1:-1}function El(e,t,r){if(!(this instanceof El))throw new SyntaxError("Constructor must be called with the new operator");this.actual=e,this.expected=t,this.relation=r,this.message="Dimension mismatch ("+(Array.isArray(e)?"["+e.join(", ")+"]":e)+" "+(this.relation||"!=")+" "+(Array.isArray(t)?"["+t.join(", ")+"]":t)+")",this.stack=new Error().stack}El.prototype=new RangeError;El.prototype.constructor=RangeError;El.prototype.name="DimensionError";El.prototype.isDimensionError=!0;function ha(e,t,r){if(!(this instanceof ha))throw new SyntaxError("Constructor must be called with the new operator");this.index=e,arguments.length<3?(this.min=0,this.max=t):(this.min=t,this.max=r),this.min!==void 0&&this.index<this.min?this.message="Index out of range ("+this.index+" < "+this.min+")":this.max!==void 0&&this.index>=this.max?this.message="Index out of range ("+this.index+" > "+(this.max-1)+")":this.message="Index out of range ("+this.index+")",this.stack=new Error().stack}ha.prototype=new RangeError;ha.prototype.constructor=RangeError;ha.prototype.name="IndexError";ha.prototype.isIndexError=!0;function eu(e){for(var t=[];Array.isArray(e);)t.push(e.length),e=e[0];return t}function Us(e){if(!Array.isArray(e))return e;var t=[];return e.forEach(function r(n){Array.isArray(n)?n.forEach(r):t.push(n)}),t}function Za(e,t){return Array.prototype.map.call(e,t)}function Ah(e,t){Array.prototype.forEach.call(e,t)}function $7(e,t){if(eu(e).length!==1)throw new Error("Only one dimensional matrices supported");return Array.prototype.filter.call(e,t)}function hp(e,t){if(eu(e).length!==1)throw new Error("Only one dimensional matrices supported");return Array.prototype.filter.call(e,r=>t.test(r))}function k3(e,t){return Array.prototype.join.call(e,t)}function O3(e,t){return e.indexOf(t)!==-1}function ke(e,t,r,n){function i(a){var o=TX(a,t.map(B7));return dQ(e,t,a),r(o)}return i.isFactory=!0,i.fn=e,i.dependencies=t.slice().sort(),n&&(i.meta=n),i}function pc(e){return typeof e=="function"&&typeof e.fn=="string"&&Array.isArray(e.dependencies)}function dQ(e,t,r){var n=t.filter(a=>!pQ(a)).every(a=>r[a]!==void 0);if(!n){var i=t.filter(a=>r[a]===void 0);throw new Error('Cannot create function "'.concat(e,'", ')+"some dependencies are missing: ".concat(i.map(a=>'"'.concat(a,'"')).join(", "),"."))}}function pQ(e){return e&&e[0]==="?"}function B7(e){return e&&e[0]==="?"?e.slice(1):e}function kg(){throw new Error('No "bignumber" implementation available')}function P7(){throw new Error('No "fraction" implementation available')}function Og(){throw new Error('No "matrix" implementation available')}function hQ(){throw new Error('No "index" implementation available')}function I7(){throw new Error('No "matrix" implementation available')}var M7={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(lt,function(){function r(){return!0}function n(){return!1}function i(){}const a="Argument is not a typed-function.";function o(){function s(T){return typeof T=="object"&&T!==null&&T.constructor===Object}const u=[{name:"number",test:function(T){return typeof T=="number"}},{name:"string",test:function(T){return typeof T=="string"}},{name:"boolean",test:function(T){return typeof T=="boolean"}},{name:"Function",test:function(T){return typeof T=="function"}},{name:"Array",test:Array.isArray},{name:"Date",test:function(T){return T instanceof Date}},{name:"RegExp",test:function(T){return T instanceof RegExp}},{name:"Object",test:s},{name:"null",test:function(T){return T===null}},{name:"undefined",test:function(T){return T===void 0}}],l={name:"any",test:r,isAny:!0};let c,f,d=0,p={createCount:0};function h(T){const z=c.get(T);if(z)return z;let E='Unknown type "'+T+'"';const O=T.toLowerCase();let H;for(H of f)if(H.toLowerCase()===O){E+='. Did you mean "'+H+'" ?';break}throw new TypeError(E)}function b(T,z="any"){const E=z?h(z).index:f.length,O=[];for(var H=0;H<T.length;++H){if(!T[H]||typeof T[H].name!="string"||typeof T[H].test!="function")throw new TypeError("Object with properties {name: string, test: function} expected");const Q=T[H].name;if(c.has(Q))throw new TypeError('Duplicate type name "'+Q+'"');O.push(Q),c.set(Q,{name:Q,test:T[H].test,isAny:T[H].isAny,index:E+H,conversionsTo:[]})}const L=f.slice(E);f=f.slice(0,E).concat(O).concat(L);for(var H=E+O.length;H<f.length;++H)c.get(f[H]).index=H}function g(){c=new Map,f=[],d=0,b([l],!1)}g(),b(u);function v(){let T;for(T of f)c.get(T).conversionsTo=[];d=0}function S(T){const z=f.filter(E=>{const O=c.get(E);return!O.isAny&&O.test(T)});return z.length?z:["any"]}function w(T){return T&&typeof T=="function"&&"_typedFunctionData"in T}function D(T,z,E){if(!w(T))throw new TypeError(a);const O=E&&E.exact,H=Array.isArray(z)?z.join(","):z,L=j(H),Q=$(L);if(!O||Q in T.signatures){const le=T._typedFunctionData.signatureMap.get(Q);if(le)return le}const se=L.length;let m;if(O){m=[];let le;for(le in T.signatures)m.push(T._typedFunctionData.signatureMap.get(le))}else m=T._typedFunctionData.signatures;for(var A=0;A<se;++A){const le=L[A],Fe=[];let He;for(He of m){const et=U(He.params,A);if(!(!et||le.restParam&&!et.restParam)){if(!et.hasAny){const gt=G(et);if(le.types.some(Lt=>!gt.has(Lt.name)))continue}Fe.push(He)}}if(m=Fe,m.length===0)break}let Y;for(Y of m)if(Y.params.length<=se)return Y;throw new TypeError("Signature not found (signature: "+(T.name||"unnamed")+"("+$(L,", ")+"))")}function _(T,z,E){return D(T,z,E).implementation}function N(T,z){const E=h(z);if(E.test(T))return T;const O=E.conversionsTo;if(O.length===0)throw new Error("There are no conversions to "+z+" defined.");for(var H=0;H<O.length;H++)if(h(O[H].from).test(T))return O[H].convert(T);throw new Error("Cannot convert "+T+" to "+z)}function $(T,z=","){return T.map(E=>E.name).join(z)}function k(T){const z=T.indexOf("...")===0,O=(z?T.length>3?T.slice(3):"any":T).split("|").map(se=>h(se.trim()));let H=!1,L=z?"...":"";return{types:O.map(function(se){return H=se.isAny||H,L+=se.name+"|",{name:se.name,typeIndex:se.index,test:se.test,isAny:se.isAny,conversion:null,conversionIndex:-1}}),name:L.slice(0,-1),hasAny:H,hasConversion:!1,restParam:z}}function K(T){const z=T.types.map(Q=>Q.name),E=Ue(z);let O=T.hasAny,H=T.name;const L=E.map(function(Q){const se=h(Q.from);return O=se.isAny||O,H+="|"+Q.from,{name:Q.from,typeIndex:se.index,test:se.test,isAny:se.isAny,conversion:Q,conversionIndex:Q.index}});return{types:T.types.concat(L),name:H,hasAny:O,hasConversion:L.length>0,restParam:T.restParam}}function G(T){return T.typeSet||(T.typeSet=new Set,T.types.forEach(z=>T.typeSet.add(z.name))),T.typeSet}function j(T){const z=[];if(typeof T!="string")throw new TypeError("Signatures must be strings");const E=T.trim();if(E==="")return z;const O=E.split(",");for(var H=0;H<O.length;++H){const L=k(O[H].trim());if(L.restParam&&H!==O.length-1)throw new SyntaxError('Unexpected rest parameter "'+O[H]+'": only allowed for the last parameter');if(L.types.length==0)return null;z.push(L)}return z}function q(T){const z=Se(T);return z?z.restParam:!1}function re(T){if(!T||T.types.length===0)return r;if(T.types.length===1)return h(T.types[0].name).test;if(T.types.length===2){const z=h(T.types[0].name).test,E=h(T.types[1].name).test;return function(H){return z(H)||E(H)}}else{const z=T.types.map(function(E){return h(E.name).test});return function(O){for(var H=0;H<z.length;H++)if(z[H](O))return!0;return!1}}}function M(T){let z,E,O;if(q(T)){z=he(T).map(re);const H=z.length,L=re(Se(T)),Q=function(se){for(var m=H;m<se.length;m++)if(!L(se[m]))return!1;return!0};return function(m){for(var A=0;A<z.length;A++)if(!z[A](m[A]))return!1;return Q(m)&&m.length>=H+1}}else return T.length===0?function(L){return L.length===0}:T.length===1?(E=re(T[0]),function(L){return E(L[0])&&L.length===1}):T.length===2?(E=re(T[0]),O=re(T[1]),function(L){return E(L[0])&&O(L[1])&&L.length===2}):(z=T.map(re),function(L){for(var Q=0;Q<z.length;Q++)if(!z[Q](L[Q]))return!1;return L.length===z.length})}function U(T,z){return z<T.length?T[z]:q(T)?Se(T):null}function x(T,z){const E=U(T,z);return E?G(E):new Set}function I(T){return T.conversion===null||T.conversion===void 0}function ee(T,z){const E=new Set;return T.forEach(O=>{const H=x(O.params,z);let L;for(L of H)E.add(L)}),E.has("any")?["any"]:Array.from(E)}function oe(T,z,E){let O,H;const L=T||"unnamed";let Q=E;for(var se=0;se<z.length;se++){const Fe=[];if(Q.forEach(He=>{const et=U(He.params,se),gt=re(et);(se<He.params.length||q(He.params))&&gt(z[se])&&Fe.push(He)}),Fe.length===0){if(H=ee(Q,se),H.length>0){const He=S(z[se]);return O=new TypeError("Unexpected type of argument in function "+L+" (expected: "+H.join(" or ")+", actual: "+He.join(" | ")+", index: "+se+")"),O.data={category:"wrongType",fn:L,index:se,actual:He,expected:H},O}}else Q=Fe}const m=Q.map(function(Fe){return q(Fe.params)?1/0:Fe.params.length});if(z.length<Math.min.apply(null,m))return H=ee(Q,se),O=new TypeError("Too few arguments in function "+L+" (expected: "+H.join(" or ")+", index: "+z.length+")"),O.data={category:"tooFewArgs",fn:L,index:z.length,expected:H},O;const A=Math.max.apply(null,m);if(z.length>A)return O=new TypeError("Too many arguments in function "+L+" (expected: "+A+", actual: "+z.length+")"),O.data={category:"tooManyArgs",fn:L,index:z.length,expectedLength:A},O;const Y=[];for(var le=0;le<z.length;++le)Y.push(S(z[le]).join("|"));return O=new TypeError('Arguments of type "'+Y.join(", ")+'" do not match any of the defined signatures of function '+L+"."),O.data={category:"mismatch",actual:Y},O}function ce(T){let z=f.length+1;for(var E=0;E<T.types.length;E++)I(T.types[E])&&(z=Math.min(z,T.types[E].typeIndex));return z}function $e(T){let z=d+1;for(var E=0;E<T.types.length;E++)I(T.types[E])||(z=Math.min(z,T.types[E].conversionIndex));return z}function me(T,z){if(T.hasAny){if(!z.hasAny)return 1}else if(z.hasAny)return-1;if(T.restParam){if(!z.restParam)return 1}else if(z.restParam)return-1;if(T.hasConversion){if(!z.hasConversion)return 1}else if(z.hasConversion)return-1;const E=ce(T)-ce(z);if(E<0)return-1;if(E>0)return 1;const O=$e(T)-$e(z);return O<0?-1:O>0?1:0}function _e(T,z){const E=T.params,O=z.params,H=Se(E),L=Se(O),Q=q(E),se=q(O);if(Q&&H.hasAny){if(!se||!L.hasAny)return 1}else if(se&&L.hasAny)return-1;let m=0,A=0,Y;for(Y of E)Y.hasAny&&++m,Y.hasConversion&&++A;let le=0,Fe=0;for(Y of O)Y.hasAny&&++le,Y.hasConversion&&++Fe;if(m!==le)return m-le;if(Q&&H.hasConversion){if(!se||!L.hasConversion)return 1}else if(se&&L.hasConversion)return-1;if(A!==Fe)return A-Fe;if(Q){if(!se)return 1}else if(se)return-1;const He=(E.length-O.length)*(Q?-1:1);if(He!==0)return He;const et=[];let gt=0;for(let ir=0;ir<E.length;++ir){const Pt=me(E[ir],O[ir]);et.push(Pt),gt+=Pt}if(gt!==0)return gt;let Lt;for(Lt of et)if(Lt!==0)return Lt;return 0}function Ue(T){if(T.length===0)return[];const z=T.map(h);T.length>1&&z.sort((L,Q)=>L.index-Q.index);let E=z[0].conversionsTo;if(T.length===1)return E;E=E.concat([]);const O=new Set(T);for(var H=1;H<z.length;++H){let L;for(L of z[H].conversionsTo)O.has(L.from)||(E.push(L),O.add(L.from))}return E}function te(T,z){let E=z;if(T.some(H=>H.hasConversion)){const H=q(T),L=T.map(Te);E=function(){const se=[],m=H?arguments.length-1:arguments.length;for(var A=0;A<m;A++)se[A]=L[A](arguments[A]);return H&&(se[m]=arguments[m].map(L[m])),z.apply(this,se)}}let O=E;if(q(T)){const H=T.length-1;O=function(){return E.apply(this,Ce(arguments,0,H).concat([Ce(arguments,H)]))}}return O}function Te(T){let z,E,O,H;const L=[],Q=[];switch(T.types.forEach(function(se){se.conversion&&(L.push(h(se.conversion.from).test),Q.push(se.conversion.convert))}),Q.length){case 0:return function(m){return m};case 1:return z=L[0],O=Q[0],function(m){return z(m)?O(m):m};case 2:return z=L[0],E=L[1],O=Q[0],H=Q[1],function(m){return z(m)?O(m):E(m)?H(m):m};default:return function(m){for(var A=0;A<Q.length;A++)if(L[A](m))return Q[A](m);return m}}}function de(T){function z(E,O,H){if(O<E.length){const L=E[O];let Q=[];if(L.restParam){const se=L.types.filter(I);se.length<L.types.length&&Q.push({types:se,name:"..."+se.map(m=>m.name).join("|"),hasAny:se.some(m=>m.isAny),hasConversion:!1,restParam:!0}),Q.push(L)}else Q=L.types.map(function(se){return{types:[se],name:se.name,hasAny:se.isAny,hasConversion:se.conversion,restParam:!1}});return ie(Q,function(se){return z(E,O+1,H.concat([se]))})}else return[H]}return z(T,0,[])}function De(T,z){const E=Math.max(T.length,z.length);for(var O=0;O<E;O++){const m=x(T,O),A=x(z,O);let Y=!1,le;for(le of A)if(m.has(le)){Y=!0;break}if(!Y)return!1}const H=T.length,L=z.length,Q=q(T),se=q(z);return Q?se?H===L:L>=H:se?H>=L:H===L}function Ne(T){return T.map(z=>ve(z)?pe(z.referToSelf.callback):Be(z)?xe(z.referTo.references,z.referTo.callback):z)}function je(T,z,E){const O=[];let H;for(H of T){let L=E[H];if(typeof L!="number")throw new TypeError('No definition for referenced signature "'+H+'"');if(L=z[L],typeof L!="function")return!1;O.push(L)}return O}function Pe(T,z,E){let O=Ne(T),H=!0;for(;H;){H=!1;let Q=!0;for(var L=0;L<O.length;++L){const se=O[L];if(ve(se))O[L]=se.referToSelf.callback(E),O[L].referToSelf=se.referToSelf,Q=!1;else if(Be(se)){const m=je(se.referTo.references,O,z);m?(O[L]=se.referTo.callback.apply(this,m),O[L].referTo=se.referTo,Q=!1):H=!0}}if(Q&&H)throw new SyntaxError("Circular reference detected in resolving typed.referTo")}return O}function ze(T){var z=/\bthis(\(|\.signatures\b)/;Object.keys(T).forEach(E=>{var O=T[E];if(z.test(O.toString()))throw new SyntaxError("Using `this` to self-reference a function is deprecated since typed-function@3. Use typed.referTo and typed.referToSelf instead.")})}function R(T,z){if(p.createCount++,Object.keys(z).length===0)throw new SyntaxError("No signatures provided");p.warnAgainstDeprecatedThis&&ze(z);const E=[],O=[],H={},L=[];let Q;for(Q in z){if(!Object.prototype.hasOwnProperty.call(z,Q))continue;const Ft=j(Q);if(!Ft)continue;E.forEach(function(pn){if(De(pn,Ft))throw new TypeError('Conflicting signatures "'+$(pn)+'" and "'+$(Ft)+'".')}),E.push(Ft);const or=O.length;O.push(z[Q]);const ui=Ft.map(K);let It;for(It of de(ui)){const pn=$(It);L.push({params:It,name:pn,fn:or}),It.every(zn=>!zn.hasConversion)&&(H[pn]=or)}}L.sort(_e);const se=Pe(O,H,Qr);let m;for(m in H)Object.prototype.hasOwnProperty.call(H,m)&&(H[m]=se[H[m]]);const A=[],Y=new Map;for(m of L)Y.has(m.name)||(m.fn=se[m.fn],A.push(m),Y.set(m.name,m));const le=A[0]&&A[0].params.length<=2&&!q(A[0].params),Fe=A[1]&&A[1].params.length<=2&&!q(A[1].params),He=A[2]&&A[2].params.length<=2&&!q(A[2].params),et=A[3]&&A[3].params.length<=2&&!q(A[3].params),gt=A[4]&&A[4].params.length<=2&&!q(A[4].params),Lt=A[5]&&A[5].params.length<=2&&!q(A[5].params),ir=le&&Fe&&He&&et&&gt&&Lt;for(var Pt=0;Pt<A.length;++Pt)A[Pt].test=M(A[Pt].params);const mr=le?re(A[0].params[0]):n,Nr=Fe?re(A[1].params[0]):n,ki=He?re(A[2].params[0]):n,ga=et?re(A[3].params[0]):n,ya=gt?re(A[4].params[0]):n,Oi=Lt?re(A[5].params[0]):n,Ln=le?re(A[0].params[1]):n,Zt=Fe?re(A[1].params[1]):n,ii=He?re(A[2].params[1]):n,Fi=et?re(A[3].params[1]):n,ba=gt?re(A[4].params[1]):n,wa=Lt?re(A[5].params[1]):n;for(var Pt=0;Pt<A.length;++Pt)A[Pt].implementation=te(A[Pt].params,A[Pt].fn);const $i=le?A[0].implementation:i,ar=Fe?A[1].implementation:i,_a=He?A[2].implementation:i,ai=et?A[3].implementation:i,oi=gt?A[4].implementation:i,Bi=Lt?A[5].implementation:i,Jr=le?A[0].params.length:-1,vr=Fe?A[1].params.length:-1,Pi=He?A[2].params.length:-1,xa=et?A[3].params.length:-1,Ea=gt?A[4].params.length:-1,Da=Lt?A[5].params.length:-1,jn=ir?6:0,Xr=A.length,si=A.map(Ft=>Ft.test),Un=A.map(Ft=>Ft.implementation),zr=function(){for(var or=jn;or<Xr;or++)if(si[or](arguments))return Un[or].apply(this,arguments);return p.onMismatch(T,arguments,A)};function Qr(Ft,or){return arguments.length===Jr&&mr(Ft)&&Ln(or)?$i.apply(this,arguments):arguments.length===vr&&Nr(Ft)&&Zt(or)?ar.apply(this,arguments):arguments.length===Pi&&ki(Ft)&&ii(or)?_a.apply(this,arguments):arguments.length===xa&&ga(Ft)&&Fi(or)?ai.apply(this,arguments):arguments.length===Ea&&ya(Ft)&&ba(or)?oi.apply(this,arguments):arguments.length===Da&&Oi(Ft)&&wa(or)?Bi.apply(this,arguments):zr.apply(this,arguments)}try{Object.defineProperty(Qr,"name",{value:T})}catch{}return Qr.signatures=H,Qr._typedFunctionData={signatures:A,signatureMap:Y},Qr}function J(T,z,E){throw oe(T,z,E)}function he(T){return Ce(T,0,T.length-1)}function Se(T){return T[T.length-1]}function Ce(T,z,E){return Array.prototype.slice.call(T,z,E)}function X(T,z){for(var E=0;E<T.length;E++)if(z(T[E]))return T[E]}function ie(T,z){return Array.prototype.concat.apply([],T.map(z))}function fe(){let T=he(arguments).map(E=>$(j(E)));const z=Se(arguments);if(typeof z!="function")throw new TypeError("Callback function expected as last argument");return xe(T,z)}function xe(T,z){return{referTo:{references:T,callback:z}}}function pe(T){if(typeof T!="function")throw new TypeError("Callback function expected as first argument");return{referToSelf:{callback:T}}}function Be(T){return T&&typeof T.referTo=="object"&&Array.isArray(T.referTo.references)&&typeof T.referTo.callback=="function"}function ve(T){return T&&typeof T.referToSelf=="object"&&typeof T.referToSelf.callback=="function"}function Le(T,z){if(!T)return z;if(z&&z!=T){const E=new Error("Function names do not match (expected: "+T+", actual: "+z+")");throw E.data={actual:z,expected:T},E}return T}function Ve(T){let z;for(let E in T)T.hasOwnProperty(E)&&(w(T[E])||typeof T[E].signature=="string")&&(z=Le(z,T[E].name));return z}function P(T,z){let E;for(E in z)if(z.hasOwnProperty(E)){if(E in T&&z[E]!==T[E]){const O=new Error('Signature "'+E+'" is defined twice');throw O.data={signature:E,sourceFunction:z[E],destFunction:T[E]},O}T[E]=z[E]}}const C=p;p=function(T){const z=typeof T=="string",E=z?1:0;let O=z?T:"";const H={};for(let L=E;L<arguments.length;++L){const Q=arguments[L];let se={},m;if(typeof Q=="function"?(m=Q.name,typeof Q.signature=="string"?se[Q.signature]=Q:w(Q)&&(se=Q.signatures)):s(Q)&&(se=Q,z||(m=Ve(Q))),Object.keys(se).length===0){const A=new TypeError("Argument to 'typed' at index "+L+" is not a (typed) function, nor an object with signatures as keys and functions as values.");throw A.data={index:L,argument:Q},A}z||(O=Le(O,m)),P(H,se)}return R(O||"",H)},p.create=o,p.createCount=C.createCount,p.onMismatch=J,p.throwMismatchError=J,p.createError=oe,p.clear=g,p.clearConversions=v,p.addTypes=b,p._findType=h,p.referTo=fe,p.referToSelf=pe,p.convert=N,p.findSignature=D,p.find=_,p.isTypedFunction=w,p.warnAgainstDeprecatedThis=!0,p.addType=function(T,z){let E="any";z!==!1&&(E="Object"),p.addTypes([T],E)};function be(T){if(!T||typeof T.from!="string"||typeof T.to!="string"||typeof T.convert!="function")throw new TypeError("Object with properties {from: string, to: string, convert: function} expected");if(T.to===T.from)throw new SyntaxError('Illegal to define conversion from "'+T.from+'" to itself.')}return p.addConversion=function(T){be(T);const z=h(T.to);if(z.conversionsTo.every(function(E){return E.from!==T.from}))z.conversionsTo.push({from:T.from,convert:T.convert,index:d++});else throw new Error('There is already a conversion from "'+T.from+'" to "'+z.name+'"')},p.addConversions=function(T){T.forEach(p.addConversion)},p.removeConversion=function(T){be(T);const z=h(T.to),E=X(z.conversionsTo,H=>H.from===T.from);if(!E)throw new Error("Attempt to remove nonexistent conversion from "+T.from+" to "+T.to);if(E.convert!==T.convert)throw new Error("Conversion to remove does not match existing conversion");const O=z.conversionsTo.indexOf(E);z.conversionsTo.splice(O,1)},p.resolve=function(T,z){if(!w(T))throw new TypeError(a);const E=T._typedFunctionData.signatures;for(var O=0;O<E.length;++O)if(E[O].test(z))return E[O];return null},p}return o()})})(M7);var l0=M7.exports;function Ai(e,t){if(R7(e)&&Fg(e,t))return e[t];throw typeof e[t]=="function"&&$g(e,t)?new Error('Cannot access method "'+t+'" as a property'):new Error('No access to property "'+t+'"')}function Fc(e,t,r){if(R7(e)&&Fg(e,t))return e[t]=r,r;throw new Error('No access to property "'+t+'"')}function mQ(e,t){return t in e}function Fg(e,t){return!e||typeof e!="object"?!1:st(gQ,t)?!0:!(t in Object.prototype||t in Function.prototype)}function vQ(e,t){if(!$g(e,t))throw new Error('No access to method "'+t+'"')}function $g(e,t){return e==null||typeof e[t]!="function"||st(e,t)&&Object.getPrototypeOf&&t in Object.getPrototypeOf(e)?!1:st(yQ,t)?!0:!(t in Object.prototype||t in Function.prototype)}function R7(e){return typeof e=="object"&&e&&e.constructor===Object}var gQ={length:!0,name:!0},yQ={toString:!0,valueOf:!0,toLocaleString:!0};class Bg{constructor(t){this.wrappedObject=t}keys(){return Object.keys(this.wrappedObject)}get(t){return Ai(this.wrappedObject,t)}set(t,r){return Fc(this.wrappedObject,t,r),this}has(t){return mQ(this.wrappedObject,t)}}function il(){return new Map}function Ru(e){if(!e)return il();if(Pg(e))return e;if(Dh(e))return new Bg(e);throw new Error("createMap can create maps from objects or Maps")}function bQ(e){if(e instanceof Bg)return e.wrappedObject;var t={};for(var r of e.keys()){var n=e.get(r);Fc(t,r,n)}return t}function Pg(e){return e?e instanceof Map||e instanceof Bg||typeof e.set=="function"&&typeof e.get=="function"&&typeof e.keys=="function"&&typeof e.has=="function":!1}function F3(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var i of r)if(!!i){if(Pg(i))for(var a of i.keys())e.set(a,i.get(a));else if(Dh(i))for(var o of Object.keys(i))e.set(o,i[o])}return e}var L7=function(){return L7=l0.create,l0},wQ=["?BigNumber","?Complex","?DenseMatrix","?Fraction"],_Q=ke("typed",wQ,function(t){var{BigNumber:r,Complex:n,DenseMatrix:i,Fraction:a}=t,o=L7();return o.clear(),o.addTypes([{name:"number",test:an},{name:"Complex",test:wl},{name:"BigNumber",test:Yr},{name:"Fraction",test:Qc},{name:"Unit",test:Eh},{name:"identifier",test:s=>Qo&&/^(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])*$/.test(s)},{name:"string",test:Qo},{name:"Chain",test:Eg},{name:"Array",test:_g},{name:"Matrix",test:on},{name:"DenseMatrix",test:pp},{name:"SparseMatrix",test:Nu},{name:"Range",test:ox},{name:"Index",test:sx},{name:"boolean",test:ux},{name:"ResultSet",test:lx},{name:"Help",test:xg},{name:"function",test:cx},{name:"Date",test:fx},{name:"RegExp",test:dx},{name:"null",test:px},{name:"undefined",test:hx},{name:"AccessorNode",test:ts},{name:"ArrayNode",test:Bn},{name:"AssignmentNode",test:mx},{name:"BlockNode",test:vx},{name:"ConditionalNode",test:gx},{name:"ConstantNode",test:Bt},{name:"FunctionNode",test:rs},{name:"FunctionAssignmentNode",test:_l},{name:"IndexNode",test:Qs},{name:"Node",test:Ot},{name:"ObjectNode",test:ef},{name:"OperatorNode",test:_r},{name:"ParenthesisNode",test:to},{name:"RangeNode",test:yx},{name:"SymbolNode",test:kr},{name:"Map",test:Pg},{name:"Object",test:Dh}]),o.addConversions([{from:"number",to:"BigNumber",convert:function(u){if(r||Fm(u),LX(u)>15)throw new TypeError("Cannot implicitly convert a number with >15 significant digits to BigNumber (value: "+u+"). Use function bignumber(x) to convert to BigNumber.");return new r(u)}},{from:"number",to:"Complex",convert:function(u){return n||Pf(u),new n(u,0)}},{from:"BigNumber",to:"Complex",convert:function(u){return n||Pf(u),new n(u.toNumber(),0)}},{from:"Fraction",to:"BigNumber",convert:function(u){throw new TypeError("Cannot implicitly convert a Fraction to BigNumber or vice versa. Use function bignumber(x) to convert to BigNumber or fraction(x) to convert to Fraction.")}},{from:"Fraction",to:"Complex",convert:function(u){return n||Pf(u),new n(u.valueOf(),0)}},{from:"number",to:"Fraction",convert:function(u){a||$m(u);var l=new a(u);if(l.valueOf()!==u)throw new TypeError("Cannot implicitly convert a number to a Fraction when there will be a loss of precision (value: "+u+"). Use function fraction(x) to convert to Fraction.");return l}},{from:"string",to:"number",convert:function(u){var l=Number(u);if(isNaN(l))throw new Error('Cannot convert "'+u+'" to a number');return l}},{from:"string",to:"BigNumber",convert:function(u){r||Fm(u);try{return new r(u)}catch{throw new Error('Cannot convert "'+u+'" to BigNumber')}}},{from:"string",to:"Fraction",convert:function(u){a||$m(u);try{return new a(u)}catch{throw new Error('Cannot convert "'+u+'" to Fraction')}}},{from:"string",to:"Complex",convert:function(u){n||Pf(u);try{return new n(u)}catch{throw new Error('Cannot convert "'+u+'" to Complex')}}},{from:"boolean",to:"number",convert:function(u){return+u}},{from:"boolean",to:"BigNumber",convert:function(u){return r||Fm(u),new r(+u)}},{from:"boolean",to:"Fraction",convert:function(u){return a||$m(u),new a(+u)}},{from:"boolean",to:"string",convert:function(u){return String(u)}},{from:"Array",to:"Matrix",convert:function(u){return i||xQ(),new i(u)}},{from:"Matrix",to:"Array",convert:function(u){return u.valueOf()}}]),o.onMismatch=(s,u,l)=>{var c=o.createError(s,u,l);if(["wrongType","mismatch"].includes(c.data.category)&&u.length===1&&es(u[0])&&l.some(d=>!d.params.includes(","))){var f=new TypeError("Function '".concat(s,"' doesn't apply to matrices. To call it ")+"elementwise on a matrix 'M', try 'map(M, ".concat(s,")'."));throw f.data=c.data,f}throw c},o.onMismatch=(s,u,l)=>{var c=o.createError(s,u,l);if(["wrongType","mismatch"].includes(c.data.category)&&u.length===1&&es(u[0])&&l.some(d=>!d.params.includes(","))){var f=new TypeError("Function '".concat(s,"' doesn't apply to matrices. To call it ")+"elementwise on a matrix 'M', try 'map(M, ".concat(s,")'."));throw f.data=c.data,f}throw c},o});function Fm(e){throw new Error("Cannot convert value ".concat(e," into a BigNumber: no class 'BigNumber' provided"))}function Pf(e){throw new Error("Cannot convert value ".concat(e," into a Complex number: no class 'Complex' provided"))}function xQ(){throw new Error("Cannot convert array into a Matrix: no class 'DenseMatrix' provided")}function $m(e){throw new Error("Cannot convert value ".concat(e," into a Fraction, no class 'Fraction' provided."))}var EQ="ResultSet",DQ=[],SQ=ke(EQ,DQ,()=>{function e(t){if(!(this instanceof e))throw new SyntaxError("Constructor must be called with the new operator");this.entries=t||[]}return e.prototype.type="ResultSet",e.prototype.isResultSet=!0,e.prototype.valueOf=function(){return this.entries},e.prototype.toString=function(){return"["+this.entries.join(", ")+"]"},e.prototype.toJSON=function(){return{mathjs:"ResultSet",entries:this.entries}},e.fromJSON=function(t){return new e(t.entries)},e},{isClass:!0}),CQ="Range",AQ=[],NQ=ke(CQ,AQ,()=>{function e(t,r,n){if(!(this instanceof e))throw new SyntaxError("Constructor must be called with the new operator");var i=t!=null,a=r!=null,o=n!=null;if(i){if(Yr(t))t=t.toNumber();else if(typeof t!="number")throw new TypeError("Parameter start must be a number")}if(a){if(Yr(r))r=r.toNumber();else if(typeof r!="number")throw new TypeError("Parameter end must be a number")}if(o){if(Yr(n))n=n.toNumber();else if(typeof n!="number")throw new TypeError("Parameter step must be a number")}this.start=i?parseFloat(t):0,this.end=a?parseFloat(r):0,this.step=o?parseFloat(n):1}return e.prototype.type="Range",e.prototype.isRange=!0,e.parse=function(t){if(typeof t!="string")return null;var r=t.split(":"),n=r.map(function(a){return parseFloat(a)}),i=n.some(function(a){return isNaN(a)});if(i)return null;switch(n.length){case 2:return new e(n[0],n[1]);case 3:return new e(n[0],n[2],n[1]);default:return null}},e.prototype.clone=function(){return new e(this.start,this.end,this.step)},e.prototype.size=function(){var t=0,r=this.start,n=this.step,i=this.end,a=i-r;return Po(n)===Po(a)?t=Math.ceil(a/n):a===0&&(t=0),isNaN(t)&&(t=0),[t]},e.prototype.min=function(){var t=this.size()[0];if(t>0)return this.step>0?this.start:this.start+(t-1)*this.step},e.prototype.max=function(){var t=this.size()[0];if(t>0)return this.step>0?this.start+(t-1)*this.step:this.start},e.prototype.forEach=function(t){var r=this.start,n=this.step,i=this.end,a=0;if(n>0)for(;r<i;)t(r,[a],this),r+=n,a++;else if(n<0)for(;r>i;)t(r,[a],this),r+=n,a++},e.prototype.map=function(t){var r=[];return this.forEach(function(n,i,a){r[i[0]]=t(n,i,a)}),r},e.prototype.toArray=function(){var t=[];return this.forEach(function(r,n){t[n[0]]=r}),t},e.prototype.valueOf=function(){return this.toArray()},e.prototype.format=function(t){var r=dc(this.start,t);return this.step!==1&&(r+=":"+dc(this.step,t)),r+=":"+dc(this.end,t),r},e.prototype.toString=function(){return this.format()},e.prototype.toJSON=function(){return{mathjs:"Range",start:this.start,end:this.end,step:this.step}},e.fromJSON=function(t){return new e(t.start,t.end,t.step)},e},{isClass:!0}),TQ="Help",kQ=["parse"],OQ=ke(TQ,kQ,e=>{var{parse:t}=e;function r(n){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator");if(!n)throw new Error('Argument "doc" missing');this.doc=n}return r.prototype.type="Help",r.prototype.isHelp=!0,r.prototype.toString=function(){var n=this.doc||{},i=`
`;if(n.name&&(i+="Name: "+n.name+`

`),n.category&&(i+="Category: "+n.category+`

`),n.description&&(i+=`Description:
    `+n.description+`

`),n.syntax&&(i+=`Syntax:
    `+n.syntax.join(`
    `)+`

`),n.examples){i+=`Examples:
`;for(var a={},o=0;o<n.examples.length;o++){var s=n.examples[o];i+="    "+s+`
`;var u=void 0;try{u=t(s).compile().evaluate(a)}catch(l){u=l}u!==void 0&&!xg(u)&&(i+="        "+ro(u,{precision:14})+`
`)}i+=`
`}return n.mayThrow&&n.mayThrow.length&&(i+="Throws: "+n.mayThrow.join(", ")+`

`),n.seealso&&n.seealso.length&&(i+="See also: "+n.seealso.join(", ")+`
`),i},r.prototype.toJSON=function(){var n=Bo(this.doc);return n.mathjs="Help",n},r.fromJSON=function(n){var i={};return Object.keys(n).filter(a=>a!=="mathjs").forEach(a=>{i[a]=n[a]}),new r(i)},r.prototype.valueOf=r.prototype.toString,r},{isClass:!0}),FQ="Chain",$Q=["?on","math","typed"],BQ=ke(FQ,$Q,e=>{var{on:t,math:r,typed:n}=e;function i(l){if(!(this instanceof i))throw new SyntaxError("Constructor must be called with the new operator");Eg(l)?this.value=l.value:this.value=l}i.prototype.type="Chain",i.prototype.isChain=!0,i.prototype.done=function(){return this.value},i.prototype.valueOf=function(){return this.value},i.prototype.toString=function(){return ro(this.value)},i.prototype.toJSON=function(){return{mathjs:"Chain",value:this.value}},i.fromJSON=function(l){return new i(l.value)};function a(l,c){typeof c=="function"&&(i.prototype[l]=s(c))}function o(l,c){_d(i.prototype,l,function(){var d=c();if(typeof d=="function")return s(d)})}function s(l){return function(){if(arguments.length===0)return new i(l(this.value));for(var c=[this.value],f=0;f<arguments.length;f++)c[f+1]=arguments[f];if(n.isTypedFunction(l)){var d=n.resolve(l,c);if(d.params.length===1)throw new Error("chain function "+l.name+" cannot match rest parameter between chain value and additional arguments.");return new i(d.implementation.apply(l,c))}return new i(l.apply(l,c))}}i.createProxy=function(l,c){if(typeof l=="string")a(l,c);else{var f=function(h){st(l,h)&&u[h]===void 0&&o(h,()=>l[h])};for(var d in l)f(d)}};var u={expression:!0,docs:!0,type:!0,classes:!0,json:!0,error:!0,isChain:!0};return i.createProxy(r),t&&t("import",function(l,c,f){f||o(l,c)}),i},{isClass:!0}),$3={name:"e",category:"Constants",syntax:["e"],description:"Euler's number, the base of the natural logarithm. Approximately equal to 2.71828",examples:["e","e ^ 2","exp(2)","log(e)"],seealso:["exp"]},PQ={name:"false",category:"Constants",syntax:["false"],description:"Boolean value false",examples:["false"],seealso:["true"]},IQ={name:"i",category:"Constants",syntax:["i"],description:"Imaginary unit, defined as i*i=-1. A complex number is described as a + b*i, where a is the real part, and b is the imaginary part.",examples:["i","i * i","sqrt(-1)"],seealso:[]},MQ={name:"Infinity",category:"Constants",syntax:["Infinity"],description:"Infinity, a number which is larger than the maximum number that can be handled by a floating point number.",examples:["Infinity","1 / 0"],seealso:[]},RQ={name:"LN10",category:"Constants",syntax:["LN10"],description:"Returns the natural logarithm of 10, approximately equal to 2.302",examples:["LN10","log(10)"],seealso:[]},LQ={name:"LN2",category:"Constants",syntax:["LN2"],description:"Returns the natural logarithm of 2, approximately equal to 0.693",examples:["LN2","log(2)"],seealso:[]},jQ={name:"LOG10E",category:"Constants",syntax:["LOG10E"],description:"Returns the base-10 logarithm of E, approximately equal to 0.434",examples:["LOG10E","log(e, 10)"],seealso:[]},UQ={name:"LOG2E",category:"Constants",syntax:["LOG2E"],description:"Returns the base-2 logarithm of E, approximately equal to 1.442",examples:["LOG2E","log(e, 2)"],seealso:[]},zQ={name:"NaN",category:"Constants",syntax:["NaN"],description:"Not a number",examples:["NaN","0 / 0"],seealso:[]},qQ={name:"null",category:"Constants",syntax:["null"],description:"Value null",examples:["null"],seealso:["true","false"]},HQ={name:"phi",category:"Constants",syntax:["phi"],description:"Phi is the golden ratio. Two quantities are in the golden ratio if their ratio is the same as the ratio of their sum to the larger of the two quantities. Phi is defined as `(1 + sqrt(5)) / 2` and is approximately 1.618034...",examples:["phi"],seealso:[]},B3={name:"pi",category:"Constants",syntax:["pi"],description:"The number pi is a mathematical constant that is the ratio of a circle's circumference to its diameter, and is approximately equal to 3.14159",examples:["pi","sin(pi/2)"],seealso:["tau"]},VQ={name:"SQRT1_2",category:"Constants",syntax:["SQRT1_2"],description:"Returns the square root of 1/2, approximately equal to 0.707",examples:["SQRT1_2","sqrt(1/2)"],seealso:[]},KQ={name:"SQRT2",category:"Constants",syntax:["SQRT2"],description:"Returns the square root of 2, approximately equal to 1.414",examples:["SQRT2","sqrt(2)"],seealso:[]},GQ={name:"tau",category:"Constants",syntax:["tau"],description:"Tau is the ratio constant of a circle's circumference to radius, equal to 2 * pi, approximately 6.2832.",examples:["tau","2 * pi"],seealso:["pi"]},WQ={name:"true",category:"Constants",syntax:["true"],description:"Boolean value true",examples:["true"],seealso:["false"]},YQ={name:"version",category:"Constants",syntax:["version"],description:"A string with the version number of math.js",examples:["version"],seealso:[]},ZQ={name:"bignumber",category:"Construction",syntax:["bignumber(x)"],description:"Create a big number from a number or string.",examples:["0.1 + 0.2","bignumber(0.1) + bignumber(0.2)",'bignumber("7.2")','bignumber("7.2e500")',"bignumber([0.1, 0.2, 0.3])"],seealso:["boolean","complex","fraction","index","matrix","string","unit"]},JQ={name:"boolean",category:"Construction",syntax:["x","boolean(x)"],description:"Convert a string or number into a boolean.",examples:["boolean(0)","boolean(1)","boolean(3)",'boolean("true")','boolean("false")',"boolean([1, 0, 1, 1])"],seealso:["bignumber","complex","index","matrix","number","string","unit"]},XQ={name:"complex",category:"Construction",syntax:["complex()","complex(re, im)","complex(string)"],description:"Create a complex number.",examples:["complex()","complex(2, 3)",'complex("7 - 2i")'],seealso:["bignumber","boolean","index","matrix","number","string","unit"]},QQ={name:"createUnit",category:"Construction",syntax:["createUnit(definitions)","createUnit(name, definition)"],description:"Create a user-defined unit and register it with the Unit type.",examples:['createUnit("foo")','createUnit("knot", {definition: "0.514444444 m/s", aliases: ["knots", "kt", "kts"]})','createUnit("mph", "1 mile/hour")'],seealso:["unit","splitUnit"]},eee={name:"fraction",category:"Construction",syntax:["fraction(num)","fraction(matrix)","fraction(num,den)","fraction({n: num, d: den})"],description:"Create a fraction from a number or from integer numerator and denominator.",examples:["fraction(0.125)","fraction(1, 3) + fraction(2, 5)","fraction({n: 333, d: 53})","fraction([sqrt(9), sqrt(10), sqrt(11)])"],seealso:["bignumber","boolean","complex","index","matrix","string","unit"]},tee={name:"index",category:"Construction",syntax:["[start]","[start:end]","[start:step:end]","[start1, start 2, ...]","[start1:end1, start2:end2, ...]","[start1:step1:end1, start2:step2:end2, ...]"],description:"Create an index to get or replace a subset of a matrix",examples:["[]","[1, 2, 3]","A = [1, 2, 3; 4, 5, 6]","A[1, :]","A[1, 2] = 50","A[0:2, 0:2] = ones(2, 2)"],seealso:["bignumber","boolean","complex","matrix,","number","range","string","unit"]},ree={name:"matrix",category:"Construction",syntax:["[]","[a1, b1, ...; a2, b2, ...]","matrix()",'matrix("dense")',"matrix([...])"],description:"Create a matrix.",examples:["[]","[1, 2, 3]","[1, 2, 3; 4, 5, 6]","matrix()","matrix([3, 4])",'matrix([3, 4; 5, 6], "sparse")','matrix([3, 4; 5, 6], "sparse", "number")'],seealso:["bignumber","boolean","complex","index","number","string","unit","sparse"]},nee={name:"number",category:"Construction",syntax:["x","number(x)","number(unit, valuelessUnit)"],description:"Create a number or convert a string or boolean into a number.",examples:["2","2e3","4.05","number(2)",'number("7.2")',"number(true)","number([true, false, true, true])",'number(unit("52cm"), "m")'],seealso:["bignumber","boolean","complex","fraction","index","matrix","string","unit"]},iee={name:"sparse",category:"Construction",syntax:["sparse()","sparse([a1, b1, ...; a1, b2, ...])",'sparse([a1, b1, ...; a1, b2, ...], "number")'],description:"Create a sparse matrix.",examples:["sparse()","sparse([3, 4; 5, 6])",'sparse([3, 0; 5, 0], "number")'],seealso:["bignumber","boolean","complex","index","number","string","unit","matrix"]},aee={name:"splitUnit",category:"Construction",syntax:["splitUnit(unit: Unit, parts: Unit[])"],description:"Split a unit in an array of units whose sum is equal to the original unit.",examples:['splitUnit(1 m, ["feet", "inch"])'],seealso:["unit","createUnit"]},oee={name:"string",category:"Construction",syntax:['"text"',"string(x)"],description:"Create a string or convert a value to a string",examples:['"Hello World!"',"string(4.2)","string(3 + 2i)"],seealso:["bignumber","boolean","complex","index","matrix","number","unit"]},see={name:"unit",category:"Construction",syntax:["value unit","unit(value, unit)","unit(string)"],description:"Create a unit.",examples:["5.5 mm","3 inch",'unit(7.1, "kilogram")','unit("23 deg")'],seealso:["bignumber","boolean","complex","index","matrix","number","string"]},uee={name:"config",category:"Core",syntax:["config()","config(options)"],description:"Get configuration or change configuration.",examples:["config()","1/3 + 1/4",'config({number: "Fraction"})',"1/3 + 1/4"],seealso:[]},lee={name:"import",category:"Core",syntax:["import(functions)","import(functions, options)"],description:"Import functions or constants from an object.",examples:["import({myFn: f(x)=x^2, myConstant: 32 })","myFn(2)","myConstant"],seealso:[]},cee={name:"typed",category:"Core",syntax:["typed(signatures)","typed(name, signatures)"],description:"Create a typed function.",examples:['double = typed({ "number": f(x)=x+x })',"double(2)",'double("hello")'],seealso:[]},fee={name:"derivative",category:"Algebra",syntax:["derivative(expr, variable)","derivative(expr, variable, {simplify: boolean})"],description:"Takes the derivative of an expression expressed in parser Nodes. The derivative will be taken over the supplied variable in the second parameter. If there are multiple variables in the expression, it will return a partial derivative.",examples:['derivative("2x^3", "x")','derivative("2x^3", "x", {simplify: false})','derivative("2x^2 + 3x + 4", "x")','derivative("sin(2x)", "x")','f = parse("x^2 + x")','x = parse("x")',"df = derivative(f, x)","df.evaluate({x: 3})"],seealso:["simplify","parse","evaluate"]},dee={name:"leafCount",category:"Algebra",syntax:["leafCount(expr)"],description:"Computes the number of leaves in the parse tree of the given expression",examples:['leafCount("e^(i*pi)-1")','leafCount(parse("{a: 22/7, b: 10^(1/2)}"))'],seealso:["simplify"]},pee={name:"lsolve",category:"Algebra",syntax:["x=lsolve(L, b)"],description:"Finds one solution of the linear system L * x = b where L is an [n x n] lower triangular matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lsolve(a, b)"],seealso:["lsolveAll","lup","lusolve","usolve","matrix","sparse"]},hee={name:"lsolveAll",category:"Algebra",syntax:["x=lsolveAll(L, b)"],description:"Finds all solutions of the linear system L * x = b where L is an [n x n] lower triangular matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lsolve(a, b)"],seealso:["lsolve","lup","lusolve","usolve","matrix","sparse"]},mee={name:"lup",category:"Algebra",syntax:["lup(m)"],description:"Calculate the Matrix LU decomposition with partial pivoting. Matrix A is decomposed in three matrices (L, U, P) where P * A = L * U",examples:["lup([[2, 1], [1, 4]])","lup(matrix([[2, 1], [1, 4]]))","lup(sparse([[2, 1], [1, 4]]))"],seealso:["lusolve","lsolve","usolve","matrix","sparse","slu","qr"]},vee={name:"lusolve",category:"Algebra",syntax:["x=lusolve(A, b)","x=lusolve(lu, b)"],description:"Solves the linear system A * x = b where A is an [n x n] matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lusolve(a, b)"],seealso:["lup","slu","lsolve","usolve","matrix","sparse"]},gee={name:"qr",category:"Algebra",syntax:["qr(A)"],description:"Calculates the Matrix QR decomposition. Matrix `A` is decomposed in two matrices (`Q`, `R`) where `Q` is an orthogonal matrix and `R` is an upper triangular matrix.",examples:["qr([[1, -1,  4], [1,  4, -2], [1,  4,  2], [1,  -1, 0]])"],seealso:["lup","slu","matrix"]},yee={name:"rationalize",category:"Algebra",syntax:["rationalize(expr)","rationalize(expr, scope)","rationalize(expr, scope, detailed)"],description:"Transform a rationalizable expression in a rational fraction. If rational fraction is one variable polynomial then converts the numerator and denominator in canonical form, with decreasing exponents, returning the coefficients of numerator.",examples:['rationalize("2x/y - y/(x+1)")','rationalize("2x/y - y/(x+1)", true)'],seealso:["simplify"]},bee={name:"resolve",category:"Algebra",syntax:["resolve(node, scope)"],description:"Recursively substitute variables in an expression tree.",examples:['resolve(parse("1 + x"), { x: 7 })','resolve(parse("size(text)"), { text: "Hello World" })','resolve(parse("x + y"), { x: parse("3z") })','resolve(parse("3x"), { x: parse("y+z"), z: parse("w^y") })'],seealso:["simplify","evaluate"],mayThrow:["ReferenceError"]},wee={name:"simplify",category:"Algebra",syntax:["simplify(expr)","simplify(expr, rules)"],description:"Simplify an expression tree.",examples:['simplify("3 + 2 / 4")','simplify("2x + x")','f = parse("x * (x + 2 + x)")',"simplified = simplify(f)","simplified.evaluate({x: 2})"],seealso:["simplifyCore","derivative","evaluate","parse","rationalize","resolve"]},_ee={name:"simplifyConstant",category:"Algebra",syntax:["simplifyConstant(expr)","simplifyConstant(expr, options)"],description:"Replace constant subexpressions of node with their values.",examples:['simplifyConatant("(3-3)*x")','simplifyConstant(parse("z-cos(tau/8)"))'],seealso:["simplify","simplifyCore","evaluate"]},xee={name:"simplifyCore",category:"Algebra",syntax:["simplifyCore(node)"],description:"Perform simple one-pass simplifications on an expression tree.",examples:['simplifyCore(parse("0*x"))','simplifyCore(parse("(x+0)*2"))'],seealso:["simplify","simplifyConstant","evaluate"]},Eee={name:"slu",category:"Algebra",syntax:["slu(A, order, threshold)"],description:"Calculate the Matrix LU decomposition with full pivoting. Matrix A is decomposed in two matrices (L, U) and two permutation vectors (pinv, q) where P * A * Q = L * U",examples:["slu(sparse([4.5, 0, 3.2, 0; 3.1, 2.9, 0, 0.9; 0, 1.7, 3, 0; 3.5, 0.4, 0, 1]), 1, 0.001)"],seealso:["lusolve","lsolve","usolve","matrix","sparse","lup","qr"]},Dee={name:"symbolicEqual",category:"Algebra",syntax:["symbolicEqual(expr1, expr2)","symbolicEqual(expr1, expr2, options)"],description:"Returns true if the difference of the expressions simplifies to 0",examples:['symbolicEqual("x*y","y*x")','symbolicEqual("abs(x^2)", "x^2")','symbolicEqual("abs(x)", "x", {context: {abs: {trivial: true}}})'],seealso:["simplify","evaluate"]},See={name:"usolve",category:"Algebra",syntax:["x=usolve(U, b)"],description:"Finds one solution of the linear system U * x = b where U is an [n x n] upper triangular matrix and b is a [n] column vector.",examples:["x=usolve(sparse([1, 1, 1, 1; 0, 1, 1, 1; 0, 0, 1, 1; 0, 0, 0, 1]), [1; 2; 3; 4])"],seealso:["usolveAll","lup","lusolve","lsolve","matrix","sparse"]},Cee={name:"usolveAll",category:"Algebra",syntax:["x=usolve(U, b)"],description:"Finds all solutions of the linear system U * x = b where U is an [n x n] upper triangular matrix and b is a [n] column vector.",examples:["x=usolve(sparse([1, 1, 1, 1; 0, 1, 1, 1; 0, 0, 1, 1; 0, 0, 0, 1]), [1; 2; 3; 4])"],seealso:["usolve","lup","lusolve","lsolve","matrix","sparse"]},Aee={name:"abs",category:"Arithmetic",syntax:["abs(x)"],description:"Compute the absolute value.",examples:["abs(3.5)","abs(-4.2)"],seealso:["sign"]},Nee={name:"add",category:"Operators",syntax:["x + y","add(x, y)"],description:"Add two values.",examples:["a = 2.1 + 3.6","a - 3.6","3 + 2i","3 cm + 2 inch",'"2.3" + "4"'],seealso:["subtract"]},Tee={name:"cbrt",category:"Arithmetic",syntax:["cbrt(x)","cbrt(x, allRoots)"],description:"Compute the cubic root value. If x = y * y * y, then y is the cubic root of x. When `x` is a number or complex number, an optional second argument `allRoots` can be provided to return all three cubic roots. If not provided, the principal root is returned",examples:["cbrt(64)","cube(4)","cbrt(-8)","cbrt(2 + 3i)","cbrt(8i)","cbrt(8i, true)","cbrt(27 m^3)"],seealso:["square","sqrt","cube","multiply"]},kee={name:"ceil",category:"Arithmetic",syntax:["ceil(x)"],description:"Round a value towards plus infinity. If x is complex, both real and imaginary part are rounded towards plus infinity.",examples:["ceil(3.2)","ceil(3.8)","ceil(-4.2)"],seealso:["floor","fix","round"]},Oee={name:"cube",category:"Arithmetic",syntax:["cube(x)"],description:"Compute the cube of a value. The cube of x is x * x * x.",examples:["cube(2)","2^3","2 * 2 * 2"],seealso:["multiply","square","pow"]},Fee={name:"divide",category:"Operators",syntax:["x / y","divide(x, y)"],description:"Divide two values.",examples:["a = 2 / 3","a * 3","4.5 / 2","3 + 4 / 2","(3 + 4) / 2","18 km / 4.5"],seealso:["multiply"]},$ee={name:"dotDivide",category:"Operators",syntax:["x ./ y","dotDivide(x, y)"],description:"Divide two values element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","b = [2, 1, 1; 3, 2, 5]","a ./ b"],seealso:["multiply","dotMultiply","divide"]},Bee={name:"dotMultiply",category:"Operators",syntax:["x .* y","dotMultiply(x, y)"],description:"Multiply two values element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","b = [2, 1, 1; 3, 2, 5]","a .* b"],seealso:["multiply","divide","dotDivide"]},Pee={name:"dotPow",category:"Operators",syntax:["x .^ y","dotPow(x, y)"],description:"Calculates the power of x to y element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","a .^ 2"],seealso:["pow"]},Iee={name:"exp",category:"Arithmetic",syntax:["exp(x)"],description:"Calculate the exponent of a value.",examples:["exp(1.3)","e ^ 1.3","log(exp(1.3))","x = 2.4","(exp(i*x) == cos(x) + i*sin(x))   # Euler's formula"],seealso:["expm","expm1","pow","log"]},Mee={name:"expm",category:"Arithmetic",syntax:["exp(x)"],description:"Compute the matrix exponential, expm(A) = e^A. The matrix must be square. Not to be confused with exp(a), which performs element-wise exponentiation.",examples:["expm([[0,2],[0,0]])"],seealso:["exp"]},Ree={name:"expm1",category:"Arithmetic",syntax:["expm1(x)"],description:"Calculate the value of subtracting 1 from the exponential value.",examples:["expm1(2)","pow(e, 2) - 1","log(expm1(2) + 1)"],seealso:["exp","pow","log"]},Lee={name:"fix",category:"Arithmetic",syntax:["fix(x)"],description:"Round a value towards zero. If x is complex, both real and imaginary part are rounded towards zero.",examples:["fix(3.2)","fix(3.8)","fix(-4.2)","fix(-4.8)"],seealso:["ceil","floor","round"]},jee={name:"floor",category:"Arithmetic",syntax:["floor(x)"],description:"Round a value towards minus infinity.If x is complex, both real and imaginary part are rounded towards minus infinity.",examples:["floor(3.2)","floor(3.8)","floor(-4.2)"],seealso:["ceil","fix","round"]},Uee={name:"gcd",category:"Arithmetic",syntax:["gcd(a, b)","gcd(a, b, c, ...)"],description:"Compute the greatest common divisor.",examples:["gcd(8, 12)","gcd(-4, 6)","gcd(25, 15, -10)"],seealso:["lcm","xgcd"]},zee={name:"hypot",category:"Arithmetic",syntax:["hypot(a, b, c, ...)","hypot([a, b, c, ...])"],description:"Calculate the hypotenusa of a list with values. ",examples:["hypot(3, 4)","sqrt(3^2 + 4^2)","hypot(-2)","hypot([3, 4, 5])"],seealso:["abs","norm"]},qee={name:"invmod",category:"Arithmetic",syntax:["invmod(a, b)"],description:"Calculate the (modular) multiplicative inverse of a modulo b. Solution to the equation ax \u2263 1 (mod b)",examples:["invmod(8, 12)=NaN","invmod(7, 13)=2","math.invmod(15151, 15122)=10429"],seealso:["gcd","xgcd"]},Hee={name:"lcm",category:"Arithmetic",syntax:["lcm(x, y)"],description:"Compute the least common multiple.",examples:["lcm(4, 6)","lcm(6, 21)","lcm(6, 21, 5)"],seealso:["gcd"]},Vee={name:"log",category:"Arithmetic",syntax:["log(x)","log(x, base)"],description:"Compute the logarithm of a value. If no base is provided, the natural logarithm of x is calculated. If base if provided, the logarithm is calculated for the specified base. log(x, base) is defined as log(x) / log(base).",examples:["log(3.5)","a = log(2.4)","exp(a)","10 ^ 4","log(10000, 10)","log(10000) / log(10)","b = log(1024, 2)","2 ^ b"],seealso:["exp","log1p","log2","log10"]},Kee={name:"log10",category:"Arithmetic",syntax:["log10(x)"],description:"Compute the 10-base logarithm of a value.",examples:["log10(0.00001)","log10(10000)","10 ^ 4","log(10000) / log(10)","log(10000, 10)"],seealso:["exp","log"]},Gee={name:"log1p",category:"Arithmetic",syntax:["log1p(x)","log1p(x, base)"],description:"Calculate the logarithm of a `value+1`",examples:["log1p(2.5)","exp(log1p(1.4))","pow(10, 4)","log1p(9999, 10)","log1p(9999) / log(10)"],seealso:["exp","log","log2","log10"]},Wee={name:"log2",category:"Arithmetic",syntax:["log2(x)"],description:"Calculate the 2-base of a value. This is the same as calculating `log(x, 2)`.",examples:["log2(0.03125)","log2(16)","log2(16) / log2(2)","pow(2, 4)"],seealso:["exp","log1p","log","log10"]},Yee={name:"mod",category:"Operators",syntax:["x % y","x mod y","mod(x, y)"],description:"Calculates the modulus, the remainder of an integer division.",examples:["7 % 3","11 % 2","10 mod 4","isOdd(x) = x % 2","isOdd(2)","isOdd(3)"],seealso:["divide"]},Zee={name:"multiply",category:"Operators",syntax:["x * y","multiply(x, y)"],description:"multiply two values.",examples:["a = 2.1 * 3.4","a / 3.4","2 * 3 + 4","2 * (3 + 4)","3 * 2.1 km"],seealso:["divide"]},Jee={name:"norm",category:"Arithmetic",syntax:["norm(x)","norm(x, p)"],description:"Calculate the norm of a number, vector or matrix.",examples:["abs(-3.5)","norm(-3.5)","norm(3 - 4i)","norm([1, 2, -3], Infinity)","norm([1, 2, -3], -Infinity)","norm([3, 4], 2)","norm([[1, 2], [3, 4]], 1)",'norm([[1, 2], [3, 4]], "inf")','norm([[1, 2], [3, 4]], "fro")']},Xee={name:"nthRoot",category:"Arithmetic",syntax:["nthRoot(a)","nthRoot(a, root)"],description:'Calculate the nth root of a value. The principal nth root of a positive real number A, is the positive real solution of the equation "x^root = A".',examples:["4 ^ 3","nthRoot(64, 3)","nthRoot(9, 2)","sqrt(9)"],seealso:["nthRoots","pow","sqrt"]},Qee={name:"nthRoots",category:"Arithmetic",syntax:["nthRoots(A)","nthRoots(A, root)"],description:'Calculate the nth roots of a value. An nth root of a positive real number A, is a positive real solution of the equation "x^root = A". This function returns an array of complex values.',examples:["nthRoots(1)","nthRoots(1, 3)"],seealso:["sqrt","pow","nthRoot"]},ete={name:"pow",category:"Operators",syntax:["x ^ y","pow(x, y)"],description:"Calculates the power of x to y, x^y.",examples:["2^3","2*2*2","1 + e ^ (pi * i)","math.pow([[1, 2], [4, 3]], 2)","math.pow([[1, 2], [4, 3]], -1)"],seealso:["multiply","nthRoot","nthRoots","sqrt"]},tte={name:"round",category:"Arithmetic",syntax:["round(x)","round(x, n)"],description:"round a value towards the nearest integer.If x is complex, both real and imaginary part are rounded towards the nearest integer. When n is specified, the value is rounded to n decimals.",examples:["round(3.2)","round(3.8)","round(-4.2)","round(-4.8)","round(pi, 3)","round(123.45678, 2)"],seealso:["ceil","floor","fix"]},rte={name:"sign",category:"Arithmetic",syntax:["sign(x)"],description:"Compute the sign of a value. The sign of a value x is 1 when x>1, -1 when x<0, and 0 when x=0.",examples:["sign(3.5)","sign(-4.2)","sign(0)"],seealso:["abs"]},nte={name:"sqrt",category:"Arithmetic",syntax:["sqrt(x)"],description:"Compute the square root value. If x = y * y, then y is the square root of x.",examples:["sqrt(25)","5 * 5","sqrt(-1)"],seealso:["square","sqrtm","multiply","nthRoot","nthRoots","pow"]},ite={name:"sqrtm",category:"Arithmetic",syntax:["sqrtm(x)"],description:"Calculate the principal square root of a square matrix. The principal square root matrix `X` of another matrix `A` is such that `X * X = A`.",examples:["sqrtm([[1, 2], [3, 4]])"],seealso:["sqrt","abs","square","multiply"]},ate={name:"square",category:"Arithmetic",syntax:["square(x)"],description:"Compute the square of a value. The square of x is x * x.",examples:["square(3)","sqrt(9)","3^2","3 * 3"],seealso:["multiply","pow","sqrt","cube"]},ote={name:"subtract",category:"Operators",syntax:["x - y","subtract(x, y)"],description:"subtract two values.",examples:["a = 5.3 - 2","a + 2","2/3 - 1/6","2 * 3 - 3","2.1 km - 500m"],seealso:["add"]},ste={name:"unaryMinus",category:"Operators",syntax:["-x","unaryMinus(x)"],description:"Inverse the sign of a value. Converts booleans and strings to numbers.",examples:["-4.5","-(-5.6)",'-"22"'],seealso:["add","subtract","unaryPlus"]},ute={name:"unaryPlus",category:"Operators",syntax:["+x","unaryPlus(x)"],description:"Converts booleans and strings to numbers.",examples:["+true",'+"2"'],seealso:["add","subtract","unaryMinus"]},lte={name:"xgcd",category:"Arithmetic",syntax:["xgcd(a, b)"],description:"Calculate the extended greatest common divisor for two values. The result is an array [d, x, y] with 3 entries, where d is the greatest common divisor, and d = x * a + y * b.",examples:["xgcd(8, 12)","gcd(8, 12)","xgcd(36163, 21199)"],seealso:["gcd","lcm"]},cte={name:"bitAnd",category:"Bitwise",syntax:["x & y","bitAnd(x, y)"],description:"Bitwise AND operation. Performs the logical AND operation on each pair of the corresponding bits of the two given values by multiplying them. If both bits in the compared position are 1, the bit in the resulting binary representation is 1, otherwise, the result is 0",examples:["5 & 3","bitAnd(53, 131)","[1, 12, 31] & 42"],seealso:["bitNot","bitOr","bitXor","leftShift","rightArithShift","rightLogShift"]},fte={name:"bitNot",category:"Bitwise",syntax:["~x","bitNot(x)"],description:"Bitwise NOT operation. Performs a logical negation on each bit of the given value. Bits that are 0 become 1, and those that are 1 become 0.",examples:["~1","~2","bitNot([2, -3, 4])"],seealso:["bitAnd","bitOr","bitXor","leftShift","rightArithShift","rightLogShift"]},dte={name:"bitOr",category:"Bitwise",syntax:["x | y","bitOr(x, y)"],description:"Bitwise OR operation. Performs the logical inclusive OR operation on each pair of corresponding bits of the two given values. The result in each position is 1 if the first bit is 1 or the second bit is 1 or both bits are 1, otherwise, the result is 0.",examples:["5 | 3","bitOr([1, 2, 3], 4)"],seealso:["bitAnd","bitNot","bitXor","leftShift","rightArithShift","rightLogShift"]},pte={name:"bitXor",category:"Bitwise",syntax:["bitXor(x, y)"],description:"Bitwise XOR operation, exclusive OR. Performs the logical exclusive OR operation on each pair of corresponding bits of the two given values. The result in each position is 1 if only the first bit is 1 or only the second bit is 1, but will be 0 if both are 0 or both are 1.",examples:["bitOr(1, 2)","bitXor([2, 3, 4], 4)"],seealso:["bitAnd","bitNot","bitOr","leftShift","rightArithShift","rightLogShift"]},hte={name:"leftShift",category:"Bitwise",syntax:["x << y","leftShift(x, y)"],description:"Bitwise left logical shift of a value x by y number of bits.",examples:["4 << 1","8 >> 1"],seealso:["bitAnd","bitNot","bitOr","bitXor","rightArithShift","rightLogShift"]},mte={name:"rightArithShift",category:"Bitwise",syntax:["x >> y","rightArithShift(x, y)"],description:"Bitwise right arithmetic shift of a value x by y number of bits.",examples:["8 >> 1","4 << 1","-12 >> 2"],seealso:["bitAnd","bitNot","bitOr","bitXor","leftShift","rightLogShift"]},vte={name:"rightLogShift",category:"Bitwise",syntax:["x >>> y","rightLogShift(x, y)"],description:"Bitwise right logical shift of a value x by y number of bits.",examples:["8 >>> 1","4 << 1","-12 >>> 2"],seealso:["bitAnd","bitNot","bitOr","bitXor","leftShift","rightArithShift"]},gte={name:"bellNumbers",category:"Combinatorics",syntax:["bellNumbers(n)"],description:"The Bell Numbers count the number of partitions of a set. A partition is a pairwise disjoint subset of S whose union is S. `bellNumbers` only takes integer arguments. The following condition must be enforced: n >= 0.",examples:["bellNumbers(3)","bellNumbers(8)"],seealso:["stirlingS2"]},yte={name:"catalan",category:"Combinatorics",syntax:["catalan(n)"],description:"The Catalan Numbers enumerate combinatorial structures of many different types. catalan only takes integer arguments. The following condition must be enforced: n >= 0.",examples:["catalan(3)","catalan(8)"],seealso:["bellNumbers"]},bte={name:"composition",category:"Combinatorics",syntax:["composition(n, k)"],description:"The composition counts of n into k parts. composition only takes integer arguments. The following condition must be enforced: k <= n.",examples:["composition(5, 3)"],seealso:["combinations"]},wte={name:"stirlingS2",category:"Combinatorics",syntax:["stirlingS2(n, k)"],description:"he Stirling numbers of the second kind, counts the number of ways to partition a set of n labelled objects into k nonempty unlabelled subsets. `stirlingS2` only takes integer arguments. The following condition must be enforced: k <= n. If n = k or k = 1, then s(n,k) = 1.",examples:["stirlingS2(5, 3)"],seealso:["bellNumbers"]},_te={name:"arg",category:"Complex",syntax:["arg(x)"],description:"Compute the argument of a complex value. If x = a+bi, the argument is computed as atan2(b, a).",examples:["arg(2 + 2i)","atan2(3, 2)","arg(2 + 3i)"],seealso:["re","im","conj","abs"]},xte={name:"conj",category:"Complex",syntax:["conj(x)"],description:"Compute the complex conjugate of a complex value. If x = a+bi, the complex conjugate is a-bi.",examples:["conj(2 + 3i)","conj(2 - 3i)","conj(-5.2i)"],seealso:["re","im","abs","arg"]},Ete={name:"im",category:"Complex",syntax:["im(x)"],description:"Get the imaginary part of a complex number.",examples:["im(2 + 3i)","re(2 + 3i)","im(-5.2i)","im(2.4)"],seealso:["re","conj","abs","arg"]},Dte={name:"re",category:"Complex",syntax:["re(x)"],description:"Get the real part of a complex number.",examples:["re(2 + 3i)","im(2 + 3i)","re(-5.2i)","re(2.4)"],seealso:["im","conj","abs","arg"]},Ste={name:"evaluate",category:"Expression",syntax:["evaluate(expression)","evaluate([expr1, expr2, expr3, ...])"],description:"Evaluate an expression or an array with expressions.",examples:['evaluate("2 + 3")','evaluate("sqrt(" + 4 + ")")'],seealso:[]},Cte={name:"help",category:"Expression",syntax:["help(object)","help(string)"],description:"Display documentation on a function or data type.",examples:["help(sqrt)",'help("complex")'],seealso:[]},Ate={name:"distance",category:"Geometry",syntax:["distance([x1, y1], [x2, y2])","distance([[x1, y1], [x2, y2]])"],description:"Calculates the Euclidean distance between two points.",examples:["distance([0,0], [4,4])","distance([[0,0], [4,4]])"],seealso:[]},Nte={name:"intersect",category:"Geometry",syntax:["intersect(expr1, expr2, expr3, expr4)","intersect(expr1, expr2, expr3)"],description:"Computes the intersection point of lines and/or planes.",examples:["intersect([0, 0], [10, 10], [10, 0], [0, 10])","intersect([1, 0, 1],  [4, -2, 2], [1, 1, 1, 6])"],seealso:[]},Tte={name:"and",category:"Logical",syntax:["x and y","and(x, y)"],description:"Logical and. Test whether two values are both defined with a nonzero/nonempty value.",examples:["true and false","true and true","2 and 4"],seealso:["not","or","xor"]},kte={name:"not",category:"Logical",syntax:["not x","not(x)"],description:"Logical not. Flips the boolean value of given argument.",examples:["not true","not false","not 2","not 0"],seealso:["and","or","xor"]},Ote={name:"or",category:"Logical",syntax:["x or y","or(x, y)"],description:"Logical or. Test if at least one value is defined with a nonzero/nonempty value.",examples:["true or false","false or false","0 or 4"],seealso:["not","and","xor"]},Fte={name:"xor",category:"Logical",syntax:["x xor y","xor(x, y)"],description:"Logical exclusive or, xor. Test whether one and only one value is defined with a nonzero/nonempty value.",examples:["true xor false","false xor false","true xor true","0 xor 4"],seealso:["not","and","or"]},$te={name:"column",category:"Matrix",syntax:["column(x, index)"],description:"Return a column from a matrix or array.",examples:["A = [[1, 2], [3, 4]]","column(A, 1)","column(A, 2)"],seealso:["row","matrixFromColumns"]},Bte={name:"concat",category:"Matrix",syntax:["concat(A, B, C, ...)","concat(A, B, C, ..., dim)"],description:"Concatenate matrices. By default, the matrices are concatenated by the last dimension. The dimension on which to concatenate can be provided as last argument.",examples:["A = [1, 2; 5, 6]","B = [3, 4; 7, 8]","concat(A, B)","concat(A, B, 1)","concat(A, B, 2)"],seealso:["det","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},Pte={name:"count",category:"Matrix",syntax:["count(x)"],description:"Count the number of elements of a matrix, array or string.",examples:["a = [1, 2; 3, 4; 5, 6]","count(a)","size(a)",'count("hello world")'],seealso:["size"]},Ite={name:"cross",category:"Matrix",syntax:["cross(A, B)"],description:"Calculate the cross product for two vectors in three dimensional space.",examples:["cross([1, 1, 0],  [0, 1, 1])","cross([3, -3, 1], [4, 9, 2])","cross([2, 3, 4],  [5, 6, 7])"],seealso:["multiply","dot"]},Mte={name:"ctranspose",category:"Matrix",syntax:["x'","ctranspose(x)"],description:"Complex Conjugate and Transpose a matrix",examples:["a = [1, 2, 3; 4, 5, 6]","a'","ctranspose(a)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","zeros"]},Rte={name:"det",category:"Matrix",syntax:["det(x)"],description:"Calculate the determinant of a matrix",examples:["det([1, 2; 3, 4])","det([-2, 2, 3; -1, 1, 3; 2, 0, -1])"],seealso:["concat","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},Lte={name:"diag",category:"Matrix",syntax:["diag(x)","diag(x, k)"],description:"Create a diagonal matrix or retrieve the diagonal of a matrix. When x is a vector, a matrix with the vector values on the diagonal will be returned. When x is a matrix, a vector with the diagonal values of the matrix is returned. When k is provided, the k-th diagonal will be filled in or retrieved, if k is positive, the values are placed on the super diagonal. When k is negative, the values are placed on the sub diagonal.",examples:["diag(1:3)","diag(1:3, 1)","a = [1, 2, 3; 4, 5, 6; 7, 8, 9]","diag(a)"],seealso:["concat","det","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},jte={name:"diff",category:"Matrix",syntax:["diff(arr)","diff(arr, dim)"],description:["Create a new matrix or array with the difference of the passed matrix or array.","Dim parameter is optional and used to indicant the dimension of the array/matrix to apply the difference","If no dimension parameter is passed it is assumed as dimension 0","Dimension is zero-based in javascript and one-based in the parser","Arrays must be 'rectangular' meaning arrays like [1, 2]","If something is passed as a matrix it will be returned as a matrix but other than that all matrices are converted to arrays"],examples:["diff([1, 2, 4, 7, 0])","diff([1, 2, 4, 7, 0], 0)","diff(matrix([1, 2, 4, 7, 0]))","diff([[1, 2], [3, 4]])","diff([[1, 2], [3, 4]], 0)","diff([[1, 2], [3, 4]], 1)","diff([[1, 2], [3, 4]], bignumber(1))","diff(matrix([[1, 2], [3, 4]]), 1)","diff([[1, 2], matrix([3, 4])], 1)"],seealso:["subtract","partitionSelect"]},Ute={name:"dot",category:"Matrix",syntax:["dot(A, B)","A * B"],description:"Calculate the dot product of two vectors. The dot product of A = [a1, a2, a3, ..., an] and B = [b1, b2, b3, ..., bn] is defined as dot(A, B) = a1 * b1 + a2 * b2 + a3 * b3 + ... + an * bn",examples:["dot([2, 4, 1], [2, 2, 3])","[2, 4, 1] * [2, 2, 3]"],seealso:["multiply","cross"]},zte={name:"eigs",category:"Matrix",syntax:["eigs(x)"],description:"Calculate the eigenvalues and eigenvectors of a real symmetric matrix",examples:["eigs([[5, 2.3], [2.3, 1]])"],seealso:["inv"]},qte={name:"filter",category:"Matrix",syntax:["filter(x, test)"],description:"Filter items in a matrix.",examples:["isPositive(x) = x > 0","filter([6, -2, -1, 4, 3], isPositive)","filter([6, -2, 0, 1, 0], x != 0)"],seealso:["sort","map","forEach"]},Hte={name:"flatten",category:"Matrix",syntax:["flatten(x)"],description:"Flatten a multi dimensional matrix into a single dimensional matrix.",examples:["a = [1, 2, 3; 4, 5, 6]","size(a)","b = flatten(a)","size(b)"],seealso:["concat","resize","size","squeeze"]},Vte={name:"forEach",category:"Matrix",syntax:["forEach(x, callback)"],description:"Iterates over all elements of a matrix/array, and executes the given callback function.",examples:["numberOfPets = {}","addPet(n) = numberOfPets[n] = (numberOfPets[n] ? numberOfPets[n]:0 ) + 1;",'forEach(["Dog","Cat","Cat"], addPet)',"numberOfPets"],seealso:["map","sort","filter"]},Kte={name:"getMatrixDataType",category:"Matrix",syntax:["getMatrixDataType(x)"],description:'Find the data type of all elements in a matrix or array, for example "number" if all items are a number and "Complex" if all values are complex numbers. If a matrix contains more than one data type, it will return "mixed".',examples:["getMatrixDataType([1, 2, 3])","getMatrixDataType([[5 cm], [2 inch]])",'getMatrixDataType([1, "text"])',"getMatrixDataType([1, bignumber(4)])"],seealso:["matrix","sparse","typeOf"]},Gte={name:"identity",category:"Matrix",syntax:["identity(n)","identity(m, n)","identity([m, n])"],description:"Returns the identity matrix with size m-by-n. The matrix has ones on the diagonal and zeros elsewhere.",examples:["identity(3)","identity(3, 5)","a = [1, 2, 3; 4, 5, 6]","identity(size(a))"],seealso:["concat","det","diag","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},Wte={name:"inv",category:"Matrix",syntax:["inv(x)"],description:"Calculate the inverse of a matrix",examples:["inv([1, 2; 3, 4])","inv(4)","1 / 4"],seealso:["concat","det","diag","identity","ones","range","size","squeeze","subset","trace","transpose","zeros"]},Yte={name:"pinv",category:"Matrix",syntax:["pinv(x)"],description:"Calculate the Moore\u2013Penrose inverse of a matrix",examples:["pinv([1, 2; 3, 4])","pinv([[1, 0], [0, 1], [0, 1]])","pinv(4)"],seealso:["inv"]},Zte={name:"kron",category:"Matrix",syntax:["kron(x, y)"],description:"Calculates the kronecker product of 2 matrices or vectors.",examples:["kron([[1, 0], [0, 1]], [[1, 2], [3, 4]])","kron([1,1], [2,3,4])"],seealso:["multiply","dot","cross"]},Jte={name:"map",category:"Matrix",syntax:["map(x, callback)"],description:"Create a new matrix or array with the results of the callback function executed on each entry of the matrix/array.",examples:["map([1, 2, 3], square)"],seealso:["filter","forEach"]},Xte={name:"matrixFromColumns",category:"Matrix",syntax:["math.matrixFromColumns(...arr)","math.matrixFromColumns(row1, row2)","math.matrixFromColumns(row1, row2, row3)"],description:"Create a dense matrix from vectors as individual columns.",examples:["matrixFromColumns([1, 2, 3], [[4],[5],[6]])"],seealso:["matrix","matrixFromRows","matrixFromFunction","zeros"]},Qte={name:"matrixFromFunction",category:"Matrix",syntax:["math.matrixFromFunction(size, fn)","math.matrixFromFunction(size, fn, format)","math.matrixFromFunction(size, fn, format, datatype)","math.matrixFromFunction(size, format, fn)","math.matrixFromFunction(size, format, datatype, fn)"],description:"Create a matrix by evaluating a generating function at each index.",examples:["f(I) = I[1] - I[2]","matrixFromFunction([3,3], f)","g(I) = I[1] - I[2] == 1 ? 4 : 0",'matrixFromFunction([100, 100], "sparse", g)',"matrixFromFunction([5], random)"],seealso:["matrix","matrixFromRows","matrixFromColumns","zeros"]},ere={name:"matrixFromRows",category:"Matrix",syntax:["math.matrixFromRows(...arr)","math.matrixFromRows(row1, row2)","math.matrixFromRows(row1, row2, row3)"],description:"Create a dense matrix from vectors as individual rows.",examples:["matrixFromRows([1, 2, 3], [[4],[5],[6]])"],seealso:["matrix","matrixFromColumns","matrixFromFunction","zeros"]},tre={name:"ones",category:"Matrix",syntax:["ones(m)","ones(m, n)","ones(m, n, p, ...)","ones([m])","ones([m, n])","ones([m, n, p, ...])"],description:"Create a matrix containing ones.",examples:["ones(3)","ones(3, 5)","ones([2,3]) * 4.5","a = [1, 2, 3; 4, 5, 6]","ones(size(a))"],seealso:["concat","det","diag","identity","inv","range","size","squeeze","subset","trace","transpose","zeros"]},rre={name:"partitionSelect",category:"Matrix",syntax:["partitionSelect(x, k)","partitionSelect(x, k, compare)"],description:"Partition-based selection of an array or 1D matrix. Will find the kth smallest value, and mutates the input array. Uses Quickselect.",examples:["partitionSelect([5, 10, 1], 2)",'partitionSelect(["C", "B", "A", "D"], 1)'],seealso:["sort"]},nre={name:"range",category:"Type",syntax:["start:end","start:step:end","range(start, end)","range(start, end, step)","range(string)"],description:"Create a range. Lower bound of the range is included, upper bound is excluded.",examples:["1:5","3:-1:-3","range(3, 7)","range(0, 12, 2)",'range("4:10")',"a = [1, 2, 3, 4; 5, 6, 7, 8]","a[1:2, 1:2]"],seealso:["concat","det","diag","identity","inv","ones","size","squeeze","subset","trace","transpose","zeros"]},ire={name:"reshape",category:"Matrix",syntax:["reshape(x, sizes)"],description:"Reshape a multi dimensional array to fit the specified dimensions.",examples:["reshape([1, 2, 3, 4, 5, 6], [2, 3])","reshape([[1, 2], [3, 4]], [1, 4])","reshape([[1, 2], [3, 4]], [4])"],seealso:["size","squeeze","resize"]},are={name:"resize",category:"Matrix",syntax:["resize(x, size)","resize(x, size, defaultValue)"],description:"Resize a matrix.",examples:["resize([1,2,3,4,5], [3])","resize([1,2,3], [5])","resize([1,2,3], [5], -1)","resize(2, [2, 3])",'resize("hello", [8], "!")'],seealso:["size","subset","squeeze","reshape"]},ore={name:"rotate",category:"Matrix",syntax:["rotate(w, theta)","rotate(w, theta, v)"],description:"Returns a 2-D rotation matrix (2x2) for a given angle (in radians). Returns a 2-D rotation matrix (3x3) of a given angle (in radians) around given axis.",examples:["rotate([1, 0], math.pi / 2)",'rotate(matrix([1, 0]), unit("35deg"))','rotate([1, 0, 0], unit("90deg"), [0, 0, 1])','rotate(matrix([1, 0, 0]), unit("90deg"), matrix([0, 0, 1]))'],seealso:["matrix","rotationMatrix"]},sre={name:"rotationMatrix",category:"Matrix",syntax:["rotationMatrix(theta)","rotationMatrix(theta, v)","rotationMatrix(theta, v, format)"],description:"Returns a 2-D rotation matrix (2x2) for a given angle (in radians). Returns a 2-D rotation matrix (3x3) of a given angle (in radians) around given axis.",examples:["rotationMatrix(pi / 2)",'rotationMatrix(unit("45deg"), [0, 0, 1])','rotationMatrix(1, matrix([0, 0, 1]), "sparse")'],seealso:["cos","sin"]},ure={name:"row",category:"Matrix",syntax:["row(x, index)"],description:"Return a row from a matrix or array.",examples:["A = [[1, 2], [3, 4]]","row(A, 1)","row(A, 2)"],seealso:["column","matrixFromRows"]},lre={name:"size",category:"Matrix",syntax:["size(x)"],description:"Calculate the size of a matrix.",examples:["size(2.3)",'size("hello world")',"a = [1, 2; 3, 4; 5, 6]","size(a)","size(1:6)"],seealso:["concat","count","det","diag","identity","inv","ones","range","squeeze","subset","trace","transpose","zeros"]},cre={name:"sort",category:"Matrix",syntax:["sort(x)","sort(x, compare)"],description:'Sort the items in a matrix. Compare can be a string "asc", "desc", "natural", or a custom sort function.',examples:["sort([5, 10, 1])",'sort(["C", "B", "A", "D"])',"sortByLength(a, b) = size(a)[1] - size(b)[1]",'sort(["Langdon", "Tom", "Sara"], sortByLength)','sort(["10", "1", "2"], "natural")'],seealso:["map","filter","forEach"]},fre={name:"squeeze",category:"Matrix",syntax:["squeeze(x)"],description:"Remove inner and outer singleton dimensions from a matrix.",examples:["a = zeros(3,2,1)","size(squeeze(a))","b = zeros(1,1,3)","size(squeeze(b))"],seealso:["concat","det","diag","identity","inv","ones","range","size","subset","trace","transpose","zeros"]},dre={name:"subset",category:"Matrix",syntax:["value(index)","value(index) = replacement","subset(value, [index])","subset(value, [index], replacement)"],description:"Get or set a subset of the entries of a matrix or characters of a string. Indexes are one-based. There should be one index specification for each dimension of the target. Each specification can be a single index, a list of indices, or a range in colon notation `l:u`. In a range, both the lower bound l and upper bound u are included; and if a bound is omitted it defaults to the most extreme valid value. The cartesian product of the indices specified in each dimension determines the target of the operation.",examples:["d = [1, 2; 3, 4]","e = []","e[1, 1:2] = [5, 6]","e[2, :] = [7, 8]","f = d * e","f[2, 1]","f[:, 1]","f[[1,2], [1,3]] = [9, 10; 11, 12]","f"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","trace","transpose","zeros"]},pre={name:"trace",category:"Matrix",syntax:["trace(A)"],description:"Calculate the trace of a matrix: the sum of the elements on the main diagonal of a square matrix.",examples:["A = [1, 2, 3; -1, 2, 3; 2, 0, 3]","trace(A)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","transpose","zeros"]},hre={name:"transpose",category:"Matrix",syntax:["x'","transpose(x)"],description:"Transpose a matrix",examples:["a = [1, 2, 3; 4, 5, 6]","a'","transpose(a)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","zeros"]},mre={name:"zeros",category:"Matrix",syntax:["zeros(m)","zeros(m, n)","zeros(m, n, p, ...)","zeros([m])","zeros([m, n])","zeros([m, n, p, ...])"],description:"Create a matrix containing zeros.",examples:["zeros(3)","zeros(3, 5)","a = [1, 2, 3; 4, 5, 6]","zeros(size(a))"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose"]},vre={name:"fft",category:"Matrix",syntax:["fft(x)"],description:"Calculate N-dimensional fourier transform",examples:["fft([[1, 0], [1, 0]])"],seealso:["ifft"]},gre={name:"ifft",category:"Matrix",syntax:["ifft(x)"],description:"Calculate N-dimensional inverse fourier transform",examples:["ifft([[2, 2], [0, 0]])"],seealso:["fft"]},yre={name:"combinations",category:"Probability",syntax:["combinations(n, k)"],description:"Compute the number of combinations of n items taken k at a time",examples:["combinations(7, 5)"],seealso:["combinationsWithRep","permutations","factorial"]},bre={name:"combinationsWithRep",category:"Probability",syntax:["combinationsWithRep(n, k)"],description:"Compute the number of combinations of n items taken k at a time with replacements.",examples:["combinationsWithRep(7, 5)"],seealso:["combinations","permutations","factorial"]},wre={name:"factorial",category:"Probability",syntax:["n!","factorial(n)"],description:"Compute the factorial of a value",examples:["5!","5 * 4 * 3 * 2 * 1","3!"],seealso:["combinations","combinationsWithRep","permutations","gamma"]},_re={name:"gamma",category:"Probability",syntax:["gamma(n)"],description:"Compute the gamma function. For small values, the Lanczos approximation is used, and for large values the extended Stirling approximation.",examples:["gamma(4)","3!","gamma(1/2)","sqrt(pi)"],seealso:["factorial"]},xre={name:"lgamma",category:"Probability",syntax:["lgamma(n)"],description:"Logarithm of the gamma function for real, positive numbers and complex numbers, using Lanczos approximation for numbers and Stirling series for complex numbers.",examples:["lgamma(4)","lgamma(1/2)","lgamma(math.i)","lgamma(complex(1.1, 2))"],seealso:["gamma"]},Ere={name:"kldivergence",category:"Probability",syntax:["kldivergence(x, y)"],description:"Calculate the Kullback-Leibler (KL) divergence  between two distributions.",examples:["kldivergence([0.7,0.5,0.4], [0.2,0.9,0.5])"],seealso:[]},Dre={name:"multinomial",category:"Probability",syntax:["multinomial(A)"],description:"Multinomial Coefficients compute the number of ways of picking a1, a2, ..., ai unordered outcomes from `n` possibilities. multinomial takes one array of integers as an argument. The following condition must be enforced: every ai > 0.",examples:["multinomial([1, 2, 1])"],seealso:["combinations","factorial"]},Sre={name:"permutations",category:"Probability",syntax:["permutations(n)","permutations(n, k)"],description:"Compute the number of permutations of n items taken k at a time",examples:["permutations(5)","permutations(5, 3)"],seealso:["combinations","combinationsWithRep","factorial"]},Cre={name:"pickRandom",category:"Probability",syntax:["pickRandom(array)","pickRandom(array, number)","pickRandom(array, weights)","pickRandom(array, number, weights)","pickRandom(array, weights, number)"],description:"Pick a random entry from a given array.",examples:["pickRandom(0:10)","pickRandom([1, 3, 1, 6])","pickRandom([1, 3, 1, 6], 2)","pickRandom([1, 3, 1, 6], [2, 3, 2, 1])","pickRandom([1, 3, 1, 6], 2, [2, 3, 2, 1])","pickRandom([1, 3, 1, 6], [2, 3, 2, 1], 2)"],seealso:["random","randomInt"]},Are={name:"random",category:"Probability",syntax:["random()","random(max)","random(min, max)","random(size)","random(size, max)","random(size, min, max)"],description:"Return a random number.",examples:["random()","random(10, 20)","random([2, 3])"],seealso:["pickRandom","randomInt"]},Nre={name:"randomInt",category:"Probability",syntax:["randomInt(max)","randomInt(min, max)","randomInt(size)","randomInt(size, max)","randomInt(size, min, max)"],description:"Return a random integer number",examples:["randomInt(10, 20)","randomInt([2, 3], 10)"],seealso:["pickRandom","random"]},Tre={name:"compare",category:"Relational",syntax:["compare(x, y)"],description:"Compare two values. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:["compare(2, 3)","compare(3, 2)","compare(2, 2)","compare(5cm, 40mm)","compare(2, [1, 2, 3])"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compareNatural","compareText"]},kre={name:"compareNatural",category:"Relational",syntax:["compareNatural(x, y)"],description:"Compare two values of any type in a deterministic, natural way. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:["compareNatural(2, 3)","compareNatural(3, 2)","compareNatural(2, 2)","compareNatural(5cm, 40mm)",'compareNatural("2", "10")',"compareNatural(2 + 3i, 2 + 4i)","compareNatural([1, 2, 4], [1, 2, 3])","compareNatural([1, 5], [1, 2, 3])","compareNatural([1, 2], [1, 2])","compareNatural({a: 2}, {a: 4})"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compare","compareText"]},Ore={name:"compareText",category:"Relational",syntax:["compareText(x, y)"],description:"Compare two strings lexically. Comparison is case sensitive. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:['compareText("B", "A")','compareText("A", "B")','compareText("A", "A")','compareText("2", "10")','compare("2", "10")',"compare(2, 10)",'compareNatural("2", "10")','compareText("B", ["A", "B", "C"])'],seealso:["compare","compareNatural"]},Fre={name:"deepEqual",category:"Relational",syntax:["deepEqual(x, y)"],description:"Check equality of two matrices element wise. Returns true if the size of both matrices is equal and when and each of the elements are equal.",examples:["deepEqual([1,3,4], [1,3,4])","deepEqual([1,3,4], [1,3])"],seealso:["equal","unequal","smaller","larger","smallerEq","largerEq","compare"]},$re={name:"equal",category:"Relational",syntax:["x == y","equal(x, y)"],description:"Check equality of two values. Returns true if the values are equal, and false if not.",examples:["2+2 == 3","2+2 == 4","a = 3.2","b = 6-2.8","a == b","50cm == 0.5m"],seealso:["unequal","smaller","larger","smallerEq","largerEq","compare","deepEqual","equalText"]},Bre={name:"equalText",category:"Relational",syntax:["equalText(x, y)"],description:"Check equality of two strings. Comparison is case sensitive. Returns true if the values are equal, and false if not.",examples:['equalText("Hello", "Hello")','equalText("a", "A")','equal("2e3", "2000")','equalText("2e3", "2000")','equalText("B", ["A", "B", "C"])'],seealso:["compare","compareNatural","compareText","equal"]},Pre={name:"larger",category:"Relational",syntax:["x > y","larger(x, y)"],description:"Check if value x is larger than y. Returns true if x is larger than y, and false if not.",examples:["2 > 3","5 > 2*2","a = 3.3","b = 6-2.8","(a > b)","(b < a)","5 cm > 2 inch"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compare"]},Ire={name:"largerEq",category:"Relational",syntax:["x >= y","largerEq(x, y)"],description:"Check if value x is larger or equal to y. Returns true if x is larger or equal to y, and false if not.",examples:["2 >= 1+1","2 > 1+1","a = 3.2","b = 6-2.8","(a >= b)"],seealso:["equal","unequal","smallerEq","smaller","compare"]},Mre={name:"smaller",category:"Relational",syntax:["x < y","smaller(x, y)"],description:"Check if value x is smaller than value y. Returns true if x is smaller than y, and false if not.",examples:["2 < 3","5 < 2*2","a = 3.3","b = 6-2.8","(a < b)","5 cm < 2 inch"],seealso:["equal","unequal","larger","smallerEq","largerEq","compare"]},Rre={name:"smallerEq",category:"Relational",syntax:["x <= y","smallerEq(x, y)"],description:"Check if value x is smaller or equal to value y. Returns true if x is smaller than y, and false if not.",examples:["2 <= 1+1","2 < 1+1","a = 3.2","b = 6-2.8","(a <= b)"],seealso:["equal","unequal","larger","smaller","largerEq","compare"]},Lre={name:"unequal",category:"Relational",syntax:["x != y","unequal(x, y)"],description:"Check unequality of two values. Returns true if the values are unequal, and false if they are equal.",examples:["2+2 != 3","2+2 != 4","a = 3.2","b = 6-2.8","a != b","50cm != 0.5m","5 cm != 2 inch"],seealso:["equal","smaller","larger","smallerEq","largerEq","compare","deepEqual"]},jre={name:"setCartesian",category:"Set",syntax:["setCartesian(set1, set2)"],description:"Create the cartesian product of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays and the values will be sorted in ascending order before the operation.",examples:["setCartesian([1, 2], [3, 4])"],seealso:["setUnion","setIntersect","setDifference","setPowerset"]},Ure={name:"setDifference",category:"Set",syntax:["setDifference(set1, set2)"],description:"Create the difference of two (multi)sets: every element of set1, that is not the element of set2. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setDifference([1, 2, 3, 4], [3, 4, 5, 6])","setDifference([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setIntersect","setSymDifference"]},zre={name:"setDistinct",category:"Set",syntax:["setDistinct(set)"],description:"Collect the distinct elements of a multiset. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setDistinct([1, 1, 1, 2, 2, 3])"],seealso:["setMultiplicity"]},qre={name:"setIntersect",category:"Set",syntax:["setIntersect(set1, set2)"],description:"Create the intersection of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setIntersect([1, 2, 3, 4], [3, 4, 5, 6])","setIntersect([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setDifference"]},Hre={name:"setIsSubset",category:"Set",syntax:["setIsSubset(set1, set2)"],description:"Check whether a (multi)set is a subset of another (multi)set: every element of set1 is the element of set2. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setIsSubset([1, 2], [3, 4, 5, 6])","setIsSubset([3, 4], [3, 4, 5, 6])"],seealso:["setUnion","setIntersect","setDifference"]},Vre={name:"setMultiplicity",category:"Set",syntax:["setMultiplicity(element, set)"],description:"Count the multiplicity of an element in a multiset. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setMultiplicity(1, [1, 2, 2, 4])","setMultiplicity(2, [1, 2, 2, 4])"],seealso:["setDistinct","setSize"]},Kre={name:"setPowerset",category:"Set",syntax:["setPowerset(set)"],description:"Create the powerset of a (multi)set: the powerset contains very possible subsets of a (multi)set. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setPowerset([1, 2, 3])"],seealso:["setCartesian"]},Gre={name:"setSize",category:"Set",syntax:["setSize(set)","setSize(set, unique)"],description:'Count the number of elements of a (multi)set. When the second parameter "unique" is true, count only the unique values. A multi-dimension array will be converted to a single-dimension array before the operation.',examples:["setSize([1, 2, 2, 4])","setSize([1, 2, 2, 4], true)"],seealso:["setUnion","setIntersect","setDifference"]},Wre={name:"setSymDifference",category:"Set",syntax:["setSymDifference(set1, set2)"],description:"Create the symmetric difference of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setSymDifference([1, 2, 3, 4], [3, 4, 5, 6])","setSymDifference([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setIntersect","setDifference"]},Yre={name:"setUnion",category:"Set",syntax:["setUnion(set1, set2)"],description:"Create the union of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setUnion([1, 2, 3, 4], [3, 4, 5, 6])","setUnion([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setIntersect","setDifference"]},Zre={name:"erf",category:"Special",syntax:["erf(x)"],description:"Compute the erf function of a value using a rational Chebyshev approximations for different intervals of x",examples:["erf(0.2)","erf(-0.5)","erf(4)"],seealso:[]},Jre={name:"mad",category:"Statistics",syntax:["mad(a, b, c, ...)","mad(A)"],description:"Compute the median absolute deviation of a matrix or a list with values. The median absolute deviation is defined as the median of the absolute deviations from the median.",examples:["mad(10, 20, 30)","mad([1, 2, 3])"],seealso:["mean","median","std","abs"]},Xre={name:"max",category:"Statistics",syntax:["max(a, b, c, ...)","max(A)","max(A, dim)"],description:"Compute the maximum value of a list of values.",examples:["max(2, 3, 4, 1)","max([2, 3, 4, 1])","max([2, 5; 4, 3])","max([2, 5; 4, 3], 1)","max([2, 5; 4, 3], 2)","max(2.7, 7.1, -4.5, 2.0, 4.1)","min(2.7, 7.1, -4.5, 2.0, 4.1)"],seealso:["mean","median","min","prod","std","sum","variance"]},Qre={name:"mean",category:"Statistics",syntax:["mean(a, b, c, ...)","mean(A)","mean(A, dim)"],description:"Compute the arithmetic mean of a list of values.",examples:["mean(2, 3, 4, 1)","mean([2, 3, 4, 1])","mean([2, 5; 4, 3])","mean([2, 5; 4, 3], 1)","mean([2, 5; 4, 3], 2)","mean([1.0, 2.7, 3.2, 4.0])"],seealso:["max","median","min","prod","std","sum","variance"]},ene={name:"median",category:"Statistics",syntax:["median(a, b, c, ...)","median(A)"],description:"Compute the median of all values. The values are sorted and the middle value is returned. In case of an even number of values, the average of the two middle values is returned.",examples:["median(5, 2, 7)","median([3, -1, 5, 7])"],seealso:["max","mean","min","prod","std","sum","variance","quantileSeq"]},tne={name:"min",category:"Statistics",syntax:["min(a, b, c, ...)","min(A)","min(A, dim)"],description:"Compute the minimum value of a list of values.",examples:["min(2, 3, 4, 1)","min([2, 3, 4, 1])","min([2, 5; 4, 3])","min([2, 5; 4, 3], 1)","min([2, 5; 4, 3], 2)","min(2.7, 7.1, -4.5, 2.0, 4.1)","max(2.7, 7.1, -4.5, 2.0, 4.1)"],seealso:["max","mean","median","prod","std","sum","variance"]},rne={name:"mode",category:"Statistics",syntax:["mode(a, b, c, ...)","mode(A)","mode(A, a, b, B, c, ...)"],description:"Computes the mode of all values as an array. In case mode being more than one, multiple values are returned in an array.",examples:["mode(2, 1, 4, 3, 1)","mode([1, 2.7, 3.2, 4, 2.7])","mode(1, 4, 6, 1, 6)"],seealso:["max","mean","min","median","prod","std","sum","variance"]},nne={name:"prod",category:"Statistics",syntax:["prod(a, b, c, ...)","prod(A)"],description:"Compute the product of all values.",examples:["prod(2, 3, 4)","prod([2, 3, 4])","prod([2, 5; 4, 3])"],seealso:["max","mean","min","median","min","std","sum","variance"]},ine={name:"quantileSeq",category:"Statistics",syntax:["quantileSeq(A, prob[, sorted])","quantileSeq(A, [prob1, prob2, ...][, sorted])","quantileSeq(A, N[, sorted])"],description:`Compute the prob order quantile of a matrix or a list with values. The sequence is sorted and the middle value is returned. Supported types of sequence values are: Number, BigNumber, Unit Supported types of probablity are: Number, BigNumber. 

In case of a (multi dimensional) array or matrix, the prob order quantile of all elements will be calculated.`,examples:["quantileSeq([3, -1, 5, 7], 0.5)","quantileSeq([3, -1, 5, 7], [1/3, 2/3])","quantileSeq([3, -1, 5, 7], 2)","quantileSeq([-1, 3, 5, 7], 0.5, true)"],seealso:["mean","median","min","max","prod","std","sum","variance"]},ane={name:"std",category:"Statistics",syntax:["std(a, b, c, ...)","std(A)","std(A, normalization)"],description:'Compute the standard deviation of all values, defined as std(A) = sqrt(variance(A)). Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased".',examples:["std(2, 4, 6)","std([2, 4, 6, 8])",'std([2, 4, 6, 8], "uncorrected")','std([2, 4, 6, 8], "biased")',"std([1, 2, 3; 4, 5, 6])"],seealso:["max","mean","min","median","prod","sum","variance"]},one={name:"cumsum",category:"Statistics",syntax:["cumsum(a, b, c, ...)","cumsum(A)"],description:"Compute the cumulative sum of all values.",examples:["cumsum(2, 3, 4, 1)","cumsum([2, 3, 4, 1])","cumsum([1, 2; 3, 4])","cumsum([1, 2; 3, 4], 1)","cumsum([1, 2; 3, 4], 2)"],seealso:["max","mean","median","min","prod","std","sum","variance"]},sne={name:"sum",category:"Statistics",syntax:["sum(a, b, c, ...)","sum(A)"],description:"Compute the sum of all values.",examples:["sum(2, 3, 4, 1)","sum([2, 3, 4, 1])","sum([2, 5; 4, 3])"],seealso:["max","mean","median","min","prod","std","sum","variance"]},une={name:"variance",category:"Statistics",syntax:["variance(a, b, c, ...)","variance(A)","variance(A, normalization)"],description:'Compute the variance of all values. Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased".',examples:["variance(2, 4, 6)","variance([2, 4, 6, 8])",'variance([2, 4, 6, 8], "uncorrected")','variance([2, 4, 6, 8], "biased")',"variance([1, 2, 3; 4, 5, 6])"],seealso:["max","mean","min","median","min","prod","std","sum"]},lne={name:"acos",category:"Trigonometry",syntax:["acos(x)"],description:"Compute the inverse cosine of a value in radians.",examples:["acos(0.5)","acos(cos(2.3))"],seealso:["cos","atan","asin"]},cne={name:"acosh",category:"Trigonometry",syntax:["acosh(x)"],description:"Calculate the hyperbolic arccos of a value, defined as `acosh(x) = ln(sqrt(x^2 - 1) + x)`.",examples:["acosh(1.5)"],seealso:["cosh","asinh","atanh"]},fne={name:"acot",category:"Trigonometry",syntax:["acot(x)"],description:"Calculate the inverse cotangent of a value.",examples:["acot(0.5)","acot(cot(0.5))","acot(2)"],seealso:["cot","atan"]},dne={name:"acoth",category:"Trigonometry",syntax:["acoth(x)"],description:"Calculate the hyperbolic arccotangent of a value, defined as `acoth(x) = (ln((x+1)/x) + ln(x/(x-1))) / 2`.",examples:["acoth(2)","acoth(0.5)"],seealso:["acsch","asech"]},pne={name:"acsc",category:"Trigonometry",syntax:["acsc(x)"],description:"Calculate the inverse cotangent of a value.",examples:["acsc(2)","acsc(csc(0.5))","acsc(0.5)"],seealso:["csc","asin","asec"]},hne={name:"acsch",category:"Trigonometry",syntax:["acsch(x)"],description:"Calculate the hyperbolic arccosecant of a value, defined as `acsch(x) = ln(1/x + sqrt(1/x^2 + 1))`.",examples:["acsch(0.5)"],seealso:["asech","acoth"]},mne={name:"asec",category:"Trigonometry",syntax:["asec(x)"],description:"Calculate the inverse secant of a value.",examples:["asec(0.5)","asec(sec(0.5))","asec(2)"],seealso:["acos","acot","acsc"]},vne={name:"asech",category:"Trigonometry",syntax:["asech(x)"],description:"Calculate the inverse secant of a value.",examples:["asech(0.5)"],seealso:["acsch","acoth"]},gne={name:"asin",category:"Trigonometry",syntax:["asin(x)"],description:"Compute the inverse sine of a value in radians.",examples:["asin(0.5)","asin(sin(0.5))"],seealso:["sin","acos","atan"]},yne={name:"asinh",category:"Trigonometry",syntax:["asinh(x)"],description:"Calculate the hyperbolic arcsine of a value, defined as `asinh(x) = ln(x + sqrt(x^2 + 1))`.",examples:["asinh(0.5)"],seealso:["acosh","atanh"]},bne={name:"atan",category:"Trigonometry",syntax:["atan(x)"],description:"Compute the inverse tangent of a value in radians.",examples:["atan(0.5)","atan(tan(0.5))"],seealso:["tan","acos","asin"]},wne={name:"atan2",category:"Trigonometry",syntax:["atan2(y, x)"],description:"Computes the principal value of the arc tangent of y/x in radians.",examples:["atan2(2, 2) / pi","angle = 60 deg in rad","x = cos(angle)","y = sin(angle)","atan2(y, x)"],seealso:["sin","cos","tan"]},_ne={name:"atanh",category:"Trigonometry",syntax:["atanh(x)"],description:"Calculate the hyperbolic arctangent of a value, defined as `atanh(x) = ln((1 + x)/(1 - x)) / 2`.",examples:["atanh(0.5)"],seealso:["acosh","asinh"]},xne={name:"cos",category:"Trigonometry",syntax:["cos(x)"],description:"Compute the cosine of x in radians.",examples:["cos(2)","cos(pi / 4) ^ 2","cos(180 deg)","cos(60 deg)","sin(0.2)^2 + cos(0.2)^2"],seealso:["acos","sin","tan"]},Ene={name:"cosh",category:"Trigonometry",syntax:["cosh(x)"],description:"Compute the hyperbolic cosine of x in radians.",examples:["cosh(0.5)"],seealso:["sinh","tanh","coth"]},Dne={name:"cot",category:"Trigonometry",syntax:["cot(x)"],description:"Compute the cotangent of x in radians. Defined as 1/tan(x)",examples:["cot(2)","1 / tan(2)"],seealso:["sec","csc","tan"]},Sne={name:"coth",category:"Trigonometry",syntax:["coth(x)"],description:"Compute the hyperbolic cotangent of x in radians.",examples:["coth(2)","1 / tanh(2)"],seealso:["sech","csch","tanh"]},Cne={name:"csc",category:"Trigonometry",syntax:["csc(x)"],description:"Compute the cosecant of x in radians. Defined as 1/sin(x)",examples:["csc(2)","1 / sin(2)"],seealso:["sec","cot","sin"]},Ane={name:"csch",category:"Trigonometry",syntax:["csch(x)"],description:"Compute the hyperbolic cosecant of x in radians. Defined as 1/sinh(x)",examples:["csch(2)","1 / sinh(2)"],seealso:["sech","coth","sinh"]},Nne={name:"sec",category:"Trigonometry",syntax:["sec(x)"],description:"Compute the secant of x in radians. Defined as 1/cos(x)",examples:["sec(2)","1 / cos(2)"],seealso:["cot","csc","cos"]},Tne={name:"sech",category:"Trigonometry",syntax:["sech(x)"],description:"Compute the hyperbolic secant of x in radians. Defined as 1/cosh(x)",examples:["sech(2)","1 / cosh(2)"],seealso:["coth","csch","cosh"]},kne={name:"sin",category:"Trigonometry",syntax:["sin(x)"],description:"Compute the sine of x in radians.",examples:["sin(2)","sin(pi / 4) ^ 2","sin(90 deg)","sin(30 deg)","sin(0.2)^2 + cos(0.2)^2"],seealso:["asin","cos","tan"]},One={name:"sinh",category:"Trigonometry",syntax:["sinh(x)"],description:"Compute the hyperbolic sine of x in radians.",examples:["sinh(0.5)"],seealso:["cosh","tanh"]},Fne={name:"tan",category:"Trigonometry",syntax:["tan(x)"],description:"Compute the tangent of x in radians.",examples:["tan(0.5)","sin(0.5) / cos(0.5)","tan(pi / 4)","tan(45 deg)"],seealso:["atan","sin","cos"]},$ne={name:"tanh",category:"Trigonometry",syntax:["tanh(x)"],description:"Compute the hyperbolic tangent of x in radians.",examples:["tanh(0.5)","sinh(0.5) / cosh(0.5)"],seealso:["sinh","cosh"]},Bne={name:"to",category:"Units",syntax:["x to unit","to(x, unit)"],description:"Change the unit of a value.",examples:["5 inch to cm","3.2kg to g","16 bytes in bits"],seealso:[]},Pne={name:"bin",category:"Utils",syntax:["bin(value)"],description:"Format a number as binary",examples:["bin(2)"],seealso:["oct","hex"]},Ine={name:"clone",category:"Utils",syntax:["clone(x)"],description:"Clone a variable. Creates a copy of primitive variables,and a deep copy of matrices",examples:["clone(3.5)","clone(2 - 4i)","clone(45 deg)","clone([1, 2; 3, 4])",'clone("hello world")'],seealso:[]},Mne={name:"format",category:"Utils",syntax:["format(value)","format(value, precision)"],description:"Format a value of any type as string.",examples:["format(2.3)","format(3 - 4i)","format([])","format(pi, 3)"],seealso:["print"]},Rne={name:"hasNumericValue",category:"Utils",syntax:["hasNumericValue(x)"],description:"Test whether a value is an numeric value. In case of a string, true is returned if the string contains a numeric value.",examples:["hasNumericValue(2)",'hasNumericValue("2")','isNumeric("2")',"hasNumericValue(0)","hasNumericValue(bignumber(500))","hasNumericValue(fraction(0.125))","hasNumericValue(2 + 3i)",'hasNumericValue([2.3, "foo", false])'],seealso:["isInteger","isZero","isNegative","isPositive","isNaN","isNumeric"]},Lne={name:"hex",category:"Utils",syntax:["hex(value)"],description:"Format a number as hexadecimal",examples:["hex(240)"],seealso:["bin","oct"]},jne={name:"isInteger",category:"Utils",syntax:["isInteger(x)"],description:"Test whether a value is an integer number.",examples:["isInteger(2)","isInteger(3.5)","isInteger([3, 0.5, -2])"],seealso:["isNegative","isNumeric","isPositive","isZero"]},Une={name:"isNaN",category:"Utils",syntax:["isNaN(x)"],description:"Test whether a value is NaN (not a number)",examples:["isNaN(2)","isNaN(0 / 0)","isNaN(NaN)","isNaN(Infinity)"],seealso:["isNegative","isNumeric","isPositive","isZero"]},zne={name:"isNegative",category:"Utils",syntax:["isNegative(x)"],description:"Test whether a value is negative: smaller than zero.",examples:["isNegative(2)","isNegative(0)","isNegative(-4)","isNegative([3, 0.5, -2])"],seealso:["isInteger","isNumeric","isPositive","isZero"]},qne={name:"isNumeric",category:"Utils",syntax:["isNumeric(x)"],description:"Test whether a value is a numeric value. Returns true when the input is a number, BigNumber, Fraction, or boolean.",examples:["isNumeric(2)",'isNumeric("2")','hasNumericValue("2")',"isNumeric(0)","isNumeric(bignumber(500))","isNumeric(fraction(0.125))","isNumeric(2 + 3i)",'isNumeric([2.3, "foo", false])'],seealso:["isInteger","isZero","isNegative","isPositive","isNaN","hasNumericValue"]},Hne={name:"isPositive",category:"Utils",syntax:["isPositive(x)"],description:"Test whether a value is positive: larger than zero.",examples:["isPositive(2)","isPositive(0)","isPositive(-4)","isPositive([3, 0.5, -2])"],seealso:["isInteger","isNumeric","isNegative","isZero"]},Vne={name:"isPrime",category:"Utils",syntax:["isPrime(x)"],description:"Test whether a value is prime: has no divisors other than itself and one.",examples:["isPrime(3)","isPrime(-2)","isPrime([2, 17, 100])"],seealso:["isInteger","isNumeric","isNegative","isZero"]},Kne={name:"isZero",category:"Utils",syntax:["isZero(x)"],description:"Test whether a value is zero.",examples:["isZero(2)","isZero(0)","isZero(-4)","isZero([3, 0, -2, 0])"],seealso:["isInteger","isNumeric","isNegative","isPositive"]},Gne={name:"numeric",category:"Utils",syntax:["numeric(x)"],description:"Convert a numeric input to a specific numeric type: number, BigNumber, or Fraction.",examples:['numeric("4")','numeric("4", "number")','numeric("4", "BigNumber")','numeric("4", "Fraction)','numeric(4, "Fraction")','numeric(fraction(2, 5), "number)'],seealso:["number","fraction","bignumber","string","format"]},Wne={name:"oct",category:"Utils",syntax:["oct(value)"],description:"Format a number as octal",examples:["oct(56)"],seealso:["bin","hex"]},Yne={name:"print",category:"Utils",syntax:["print(template, values)","print(template, values, precision)"],description:"Interpolate values into a string template.",examples:['print("Lucy is $age years old", {age: 5})','print("The value of pi is $pi", {pi: pi}, 3)','print("Hello, $user.name!", {user: {name: "John"}})','print("Values: $0, $1, $2", [6, 9, 4])'],seealso:["format"]},Zne={name:"typeOf",category:"Utils",syntax:["typeOf(x)"],description:"Get the type of a variable.",examples:["typeOf(3.5)","typeOf(2 - 4i)","typeOf(45 deg)",'typeOf("hello world")'],seealso:["getMatrixDataType"]},Jne={bignumber:ZQ,boolean:JQ,complex:XQ,createUnit:QQ,fraction:eee,index:tee,matrix:ree,number:nee,sparse:iee,splitUnit:aee,string:oee,unit:see,e:$3,E:$3,false:PQ,i:IQ,Infinity:MQ,LN2:LQ,LN10:RQ,LOG2E:UQ,LOG10E:jQ,NaN:zQ,null:qQ,pi:B3,PI:B3,phi:HQ,SQRT1_2:VQ,SQRT2:KQ,tau:GQ,true:WQ,version:YQ,speedOfLight:{description:"Speed of light in vacuum",examples:["speedOfLight"]},gravitationConstant:{description:"Newtonian constant of gravitation",examples:["gravitationConstant"]},planckConstant:{description:"Planck constant",examples:["planckConstant"]},reducedPlanckConstant:{description:"Reduced Planck constant",examples:["reducedPlanckConstant"]},magneticConstant:{description:"Magnetic constant (vacuum permeability)",examples:["magneticConstant"]},electricConstant:{description:"Electric constant (vacuum permeability)",examples:["electricConstant"]},vacuumImpedance:{description:"Characteristic impedance of vacuum",examples:["vacuumImpedance"]},coulomb:{description:"Coulomb's constant",examples:["coulomb"]},elementaryCharge:{description:"Elementary charge",examples:["elementaryCharge"]},bohrMagneton:{description:"Borh magneton",examples:["bohrMagneton"]},conductanceQuantum:{description:"Conductance quantum",examples:["conductanceQuantum"]},inverseConductanceQuantum:{description:"Inverse conductance quantum",examples:["inverseConductanceQuantum"]},magneticFluxQuantum:{description:"Magnetic flux quantum",examples:["magneticFluxQuantum"]},nuclearMagneton:{description:"Nuclear magneton",examples:["nuclearMagneton"]},klitzing:{description:"Von Klitzing constant",examples:["klitzing"]},bohrRadius:{description:"Borh radius",examples:["bohrRadius"]},classicalElectronRadius:{description:"Classical electron radius",examples:["classicalElectronRadius"]},electronMass:{description:"Electron mass",examples:["electronMass"]},fermiCoupling:{description:"Fermi coupling constant",examples:["fermiCoupling"]},fineStructure:{description:"Fine-structure constant",examples:["fineStructure"]},hartreeEnergy:{description:"Hartree energy",examples:["hartreeEnergy"]},protonMass:{description:"Proton mass",examples:["protonMass"]},deuteronMass:{description:"Deuteron Mass",examples:["deuteronMass"]},neutronMass:{description:"Neutron mass",examples:["neutronMass"]},quantumOfCirculation:{description:"Quantum of circulation",examples:["quantumOfCirculation"]},rydberg:{description:"Rydberg constant",examples:["rydberg"]},thomsonCrossSection:{description:"Thomson cross section",examples:["thomsonCrossSection"]},weakMixingAngle:{description:"Weak mixing angle",examples:["weakMixingAngle"]},efimovFactor:{description:"Efimov factor",examples:["efimovFactor"]},atomicMass:{description:"Atomic mass constant",examples:["atomicMass"]},avogadro:{description:"Avogadro's number",examples:["avogadro"]},boltzmann:{description:"Boltzmann constant",examples:["boltzmann"]},faraday:{description:"Faraday constant",examples:["faraday"]},firstRadiation:{description:"First radiation constant",examples:["firstRadiation"]},loschmidt:{description:"Loschmidt constant at T=273.15 K and p=101.325 kPa",examples:["loschmidt"]},gasConstant:{description:"Gas constant",examples:["gasConstant"]},molarPlanckConstant:{description:"Molar Planck constant",examples:["molarPlanckConstant"]},molarVolume:{description:"Molar volume of an ideal gas at T=273.15 K and p=101.325 kPa",examples:["molarVolume"]},sackurTetrode:{description:"Sackur-Tetrode constant at T=1 K and p=101.325 kPa",examples:["sackurTetrode"]},secondRadiation:{description:"Second radiation constant",examples:["secondRadiation"]},stefanBoltzmann:{description:"Stefan-Boltzmann constant",examples:["stefanBoltzmann"]},wienDisplacement:{description:"Wien displacement law constant",examples:["wienDisplacement"]},molarMass:{description:"Molar mass constant",examples:["molarMass"]},molarMassC12:{description:"Molar mass constant of carbon-12",examples:["molarMassC12"]},gravity:{description:"Standard acceleration of gravity (standard acceleration of free-fall on Earth)",examples:["gravity"]},planckLength:{description:"Planck length",examples:["planckLength"]},planckMass:{description:"Planck mass",examples:["planckMass"]},planckTime:{description:"Planck time",examples:["planckTime"]},planckCharge:{description:"Planck charge",examples:["planckCharge"]},planckTemperature:{description:"Planck temperature",examples:["planckTemperature"]},derivative:fee,lsolve:pee,lsolveAll:hee,lup:mee,lusolve:vee,leafCount:dee,resolve:bee,simplify:wee,simplifyConstant:_ee,simplifyCore:xee,symbolicEqual:Dee,rationalize:yee,slu:Eee,usolve:See,usolveAll:Cee,qr:gee,abs:Aee,add:Nee,cbrt:Tee,ceil:kee,cube:Oee,divide:Fee,dotDivide:$ee,dotMultiply:Bee,dotPow:Pee,exp:Iee,expm:Mee,expm1:Ree,fix:Lee,floor:jee,gcd:Uee,hypot:zee,lcm:Hee,log:Vee,log2:Wee,log1p:Gee,log10:Kee,mod:Yee,multiply:Zee,norm:Jee,nthRoot:Xee,nthRoots:Qee,pow:ete,round:tte,sign:rte,sqrt:nte,sqrtm:ite,square:ate,subtract:ote,unaryMinus:ste,unaryPlus:ute,xgcd:lte,invmod:qee,bitAnd:cte,bitNot:fte,bitOr:dte,bitXor:pte,leftShift:hte,rightArithShift:mte,rightLogShift:vte,bellNumbers:gte,catalan:yte,composition:bte,stirlingS2:wte,config:uee,import:lee,typed:cee,arg:_te,conj:xte,re:Dte,im:Ete,evaluate:Ste,help:Cte,distance:Ate,intersect:Nte,and:Tte,not:kte,or:Ote,xor:Fte,concat:Bte,count:Pte,cross:Ite,column:$te,ctranspose:Mte,det:Rte,diag:Lte,diff:jte,dot:Ute,getMatrixDataType:Kte,identity:Gte,filter:qte,flatten:Hte,forEach:Vte,inv:Wte,pinv:Yte,eigs:zte,kron:Zte,matrixFromFunction:Qte,matrixFromRows:ere,matrixFromColumns:Xte,map:Jte,ones:tre,partitionSelect:rre,range:nre,resize:are,reshape:ire,rotate:ore,rotationMatrix:sre,row:ure,size:lre,sort:cre,squeeze:fre,subset:dre,trace:pre,transpose:hre,zeros:mre,fft:vre,ifft:gre,combinations:yre,combinationsWithRep:bre,factorial:wre,gamma:_re,kldivergence:Ere,lgamma:xre,multinomial:Dre,permutations:Sre,pickRandom:Cre,random:Are,randomInt:Nre,compare:Tre,compareNatural:kre,compareText:Ore,deepEqual:Fre,equal:$re,equalText:Bre,larger:Pre,largerEq:Ire,smaller:Mre,smallerEq:Rre,unequal:Lre,setCartesian:jre,setDifference:Ure,setDistinct:zre,setIntersect:qre,setIsSubset:Hre,setMultiplicity:Vre,setPowerset:Kre,setSize:Gre,setSymDifference:Wre,setUnion:Yre,erf:Zre,cumsum:one,mad:Jre,max:Xre,mean:Qre,median:ene,min:tne,mode:rne,prod:nne,quantileSeq:ine,std:ane,sum:sne,variance:une,acos:lne,acosh:cne,acot:fne,acoth:dne,acsc:pne,acsch:hne,asec:mne,asech:vne,asin:gne,asinh:yne,atan:bne,atanh:_ne,atan2:wne,cos:xne,cosh:Ene,cot:Dne,coth:Sne,csc:Cne,csch:Ane,sec:Nne,sech:Tne,sin:kne,sinh:One,tan:Fne,tanh:$ne,to:Bne,clone:Ine,format:Mne,bin:Pne,oct:Wne,hex:Lne,isNaN:Une,isInteger:jne,isNegative:zne,isNumeric:qne,hasNumericValue:Rne,isPositive:Hne,isPrime:Vne,isZero:Kne,print:Yne,typeOf:Zne,numeric:Gne},P3="help",Xne=["typed","mathWithTransform","Help"],Qne=ke(P3,Xne,e=>{var{typed:t,mathWithTransform:r,Help:n}=e;return t(P3,{any:function(a){var o,s=a;if(typeof a!="string"){for(o in r)if(st(r,o)&&a===r[o]){s=o;break}}var u=Ai(Jne,s);if(!u){var l=typeof s=="function"?s.name:s;throw new Error('No documentation found on "'+l+'"')}return new n(u)}})}),I3="chain",eie=["typed","Chain"],tie=ke(I3,eie,e=>{var{typed:t,Chain:r}=e;return t(I3,{"":function(){return new r},any:function(i){return new r(i)}})}),rie="resolve",nie=["typed","parse","ConstantNode","FunctionNode","OperatorNode","ParenthesisNode"],iie=ke(rie,nie,e=>{var{typed:t,parse:r,ConstantNode:n,FunctionNode:i,OperatorNode:a,ParenthesisNode:o}=e;function s(u,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new Set;if(!l)return u;if(kr(u)){if(c.has(u.name)){var f=Array.from(c).join(", ");throw new ReferenceError("recursive loop of variable definitions among {".concat(f,"}"))}var d=l.get(u.name);if(Ot(d)){var p=new Set(c);return p.add(u.name),s(d,l,p)}else return typeof d=="number"?r(String(d)):d!==void 0?new n(d):u}else if(_r(u)){var h=u.args.map(function(g){return s(g,l,c)});return new a(u.op,u.fn,h,u.implicit)}else{if(to(u))return new o(s(u.content,l,c));if(rs(u)){var b=u.args.map(function(g){return s(g,l,c)});return new i(u.name,b)}}return u.map(g=>s(g,l,c))}return t("resolve",{Node:s,"Node, Map | null | undefined":s,"Node, Object":(u,l)=>s(u,Ru(l)),"Array | Matrix":t.referToSelf(u=>l=>l.map(c=>u(c))),"Array | Matrix, null | undefined":t.referToSelf(u=>l=>l.map(c=>u(c))),"Array, Object":t.referTo("Array,Map",u=>(l,c)=>u(l,Ru(c))),"Matrix, Object":t.referTo("Matrix,Map",u=>(l,c)=>u(l,Ru(c))),"Array | Matrix, Map":t.referToSelf(u=>(l,c)=>l.map(f=>u(f,c)))})});function M3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Bm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?M3(Object(r),!0).forEach(function(n){er(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var aie="simplifyUtil",oie=["FunctionNode","OperatorNode","SymbolNode"],Ig=ke(aie,oie,e=>{var{FunctionNode:t,OperatorNode:r,SymbolNode:n}=e,i=!0,a=!1,o="defaultF",s={add:{trivial:i,total:i,commutative:i,associative:i},unaryPlus:{trivial:i,total:i,commutative:i,associative:i},subtract:{trivial:a,total:i,commutative:a,associative:a},multiply:{trivial:i,total:i,commutative:i,associative:i},divide:{trivial:a,total:i,commutative:a,associative:a},paren:{trivial:i,total:i,commutative:i,associative:a},defaultF:{trivial:a,total:i,commutative:a,associative:a}},u={divide:{total:a},log:{total:a}},l={subtract:{total:a},abs:{trivial:i},log:{total:i}};function c(w,D){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:s,N=o;if(typeof w=="string"?N=w:_r(w)?N=w.fn.toString():rs(w)?N=w.name:to(w)&&(N="paren"),st(_,N)){var $=_[N];if(st($,D))return $[D];if(st(s,N))return s[N][D]}if(st(_,o)){var k=_[o];return st(k,D)?k[D]:s[o][D]}if(st(s,N)){var K=s[N];if(st(K,D))return K[D]}return s[o][D]}function f(w){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s;return c(w,"commutative",D)}function d(w){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s;return c(w,"associative",D)}function p(w,D){var _=Bm({},w);for(var N in D)st(w,N)?_[N]=Bm(Bm({},D[N]),w[N]):_[N]=D[N];return _}function h(w,D){if(!w.args||w.args.length===0)return w;w.args=b(w,D);for(var _=0;_<w.args.length;_++)h(w.args[_],D)}function b(w,D){var _,N=[],$=function k(K){for(var G=0;G<K.args.length;G++){var j=K.args[G];_r(j)&&_===j.op?k(j):N.push(j)}};return d(w,D)?(_=w.op,$(w),N):w.args}function g(w,D){if(!(!w.args||w.args.length===0)){for(var _=S(w),N=w.args.length,$=0;$<N;$++)g(w.args[$],D);if(N>2&&d(w,D)){for(var k=w.args.pop();w.args.length>0;)k=_([w.args.pop(),k]);w.args=k.args}}}function v(w,D){if(!(!w.args||w.args.length===0)){for(var _=S(w),N=w.args.length,$=0;$<N;$++)v(w.args[$],D);if(N>2&&d(w,D)){for(var k=w.args.shift();w.args.length>0;)k=_([k,w.args.shift()]);w.args=k.args}}}function S(w){return _r(w)?function(D){try{return new r(w.op,w.fn,D,w.implicit)}catch(_){return console.error(_),[]}}:function(D){return new t(new n(w.name),D)}}return{createMakeNodeFunction:S,hasProperty:c,isCommutative:f,isAssociative:d,mergeContext:p,flatten:h,allChildren:b,unflattenr:g,unflattenl:v,defaultContext:s,realContext:u,positiveContext:l}}),sie="simplify",uie=["config","typed","parse","add","subtract","multiply","divide","pow","isZero","equal","resolve","simplifyConstant","simplifyCore","?fraction","?bignumber","mathWithTransform","matrix","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","ParenthesisNode","SymbolNode"],lie=ke(sie,uie,e=>{var{config:t,typed:r,parse:n,add:i,subtract:a,multiply:o,divide:s,pow:u,isZero:l,equal:c,resolve:f,simplifyConstant:d,simplifyCore:p,fraction:h,bignumber:b,mathWithTransform:g,matrix:v,AccessorNode:S,ArrayNode:w,ConstantNode:D,FunctionNode:_,IndexNode:N,ObjectNode:$,OperatorNode:k,ParenthesisNode:K,SymbolNode:G}=e,{hasProperty:j,isCommutative:q,isAssociative:re,mergeContext:M,flatten:U,unflattenr:x,unflattenl:I,createMakeNodeFunction:ee,defaultContext:oe,realContext:ce,positiveContext:$e}=Ig({FunctionNode:_,OperatorNode:k,SymbolNode:G});r.addConversion({from:"Object",to:"Map",convert:Ru});var me=r("simplify",{Node:Ne,"Node, Map":(X,ie)=>Ne(X,!1,ie),"Node, Map, Object":(X,ie,fe)=>Ne(X,!1,ie,fe),"Node, Array":Ne,"Node, Array, Map":Ne,"Node, Array, Map, Object":Ne});r.removeConversion({from:"Object",to:"Map",convert:Ru}),me.defaultContext=oe,me.realContext=ce,me.positiveContext=$e;function _e(X){return X.transform(function(ie,fe,xe){return to(ie)?_e(ie.content):ie})}var Ue={true:!0,false:!0,e:!0,i:!0,Infinity:!0,LN2:!0,LN10:!0,LOG2E:!0,LOG10E:!0,NaN:!0,phi:!0,pi:!0,SQRT1_2:!0,SQRT2:!0,tau:!0};me.rules=[p,{l:"log(e)",r:"1"},{s:"n-n1 -> n+-n1",assuming:{subtract:{total:!0}}},{s:"n-n -> 0",assuming:{subtract:{total:!1}}},{s:"-(c*v) -> v * (-c)",assuming:{multiply:{commutative:!0},subtract:{total:!0}}},{s:"-(c*v) -> (-c) * v",assuming:{multiply:{commutative:!1},subtract:{total:!0}}},{s:"-(v*c) -> v * (-c)",assuming:{multiply:{commutative:!1},subtract:{total:!0}}},{l:"-(n1/n2)",r:"-n1/n2"},{l:"-v",r:"v * (-1)"},{l:"(n1 + n2)*(-1)",r:"n1*(-1) + n2*(-1)",repeat:!0},{l:"n/n1^n2",r:"n*n1^-n2"},{l:"n/n1",r:"n*n1^-1"},{s:"(n1*n2)^n3 -> n1^n3 * n2^n3",assuming:{multiply:{commutative:!0}}},{s:"(n1*n2)^(-1) -> n2^(-1) * n1^(-1)",assuming:{multiply:{commutative:!1}}},{s:"(n ^ n1) ^ n2 -> n ^ (n1 * n2)",assuming:{divide:{total:!0}}},{l:" v   * ( v   * n1 + n2)",r:"v^2       * n1 +  v   * n2"},{s:" v   * (v^n4 * n1 + n2)   ->  v^(1+n4)  * n1 +  v   * n2",assuming:{divide:{total:!0}}},{s:"v^n3 * ( v   * n1 + n2)   ->  v^(n3+1)  * n1 + v^n3 * n2",assuming:{divide:{total:!0}}},{s:"v^n3 * (v^n4 * n1 + n2)   ->  v^(n3+n4) * n1 + v^n3 * n2",assuming:{divide:{total:!0}}},{l:"n*n",r:"n^2"},{s:"n * n^n1 -> n^(n1+1)",assuming:{divide:{total:!0}}},{s:"n^n1 * n^n2 -> n^(n1+n2)",assuming:{divide:{total:!0}}},d,{s:"n+n -> 2*n",assuming:{add:{total:!0}}},{l:"n+-n",r:"0"},{l:"v*n + v",r:"v*(n+1)"},{l:"n3*n1 + n3*n2",r:"n3*(n1+n2)"},{l:"n3^(-n4)*n1 +   n3  * n2",r:"n3^(-n4)*(n1 + n3^(n4+1) *n2)"},{l:"n3^(-n4)*n1 + n3^n5 * n2",r:"n3^(-n4)*(n1 + n3^(n4+n5)*n2)"},{s:"n*v + v -> (n+1)*v",assuming:{multiply:{commutative:!1}}},{s:"n1*n3 + n2*n3 -> (n1+n2)*n3",assuming:{multiply:{commutative:!1}}},{s:"n1*n3^(-n4) + n2 * n3    -> (n1 + n2*n3^(n4 +  1))*n3^(-n4)",assuming:{multiply:{commutative:!1}}},{s:"n1*n3^(-n4) + n2 * n3^n5 -> (n1 + n2*n3^(n4 + n5))*n3^(-n4)",assuming:{multiply:{commutative:!1}}},{l:"n*c + c",r:"(n+1)*c"},{s:"c*n + c -> c*(n+1)",assuming:{multiply:{commutative:!1}}},d,{s:"(-n)*n1 -> -(n*n1)",assuming:{subtract:{total:!0}}},{s:"n1*(-n) -> -(n1*n)",assuming:{subtract:{total:!0},multiply:{commutative:!1}}},{s:"c+v -> v+c",assuming:{add:{commutative:!0}},imposeContext:{add:{commutative:!1}}},{s:"v*c -> c*v",assuming:{multiply:{commutative:!0}},imposeContext:{multiply:{commutative:!1}}},{l:"n+-n1",r:"n-n1"},{s:"n*(n1^-1) -> n/n1",assuming:{multiply:{commutative:!0}}},{s:"n*n1^-n2 -> n/n1^n2",assuming:{multiply:{commutative:!0}}},{s:"n^-1 -> 1/n",assuming:{multiply:{commutative:!0}}},{l:"n^1",r:"n"},{s:"n*(n1/n2) -> (n*n1)/n2",assuming:{multiply:{associative:!0}}},{s:"n-(n1+n2) -> n-n1-n2",assuming:{addition:{associative:!0,commutative:!0}}},{l:"1*n",r:"n",imposeContext:{multiply:{commutative:!0}}},{s:"n1/(n2/n3) -> (n1*n3)/n2",assuming:{multiply:{associative:!0}}},{l:"n1/(-n2)",r:"-n1/n2"}];function te(X,ie){var fe={};if(X.s){var xe=X.s.split("->");if(xe.length===2)fe.l=xe[0],fe.r=xe[1];else throw SyntaxError("Could not parse rule: "+X.s)}else fe.l=X.l,fe.r=X.r;fe.l=_e(n(fe.l)),fe.r=_e(n(fe.r));for(var pe of["imposeContext","repeat","assuming"])pe in X&&(fe[pe]=X[pe]);if(X.evaluate&&(fe.evaluate=n(X.evaluate)),re(fe.l,ie)){var Be=ee(fe.l),ve=De();fe.expanded={},fe.expanded.l=Be([fe.l.clone(),ve]),U(fe.expanded.l,ie),x(fe.expanded.l,ie),fe.expanded.r=Be([fe.r,ve])}return fe}function Te(X,ie){for(var fe=[],xe=0;xe<X.length;xe++){var pe=X[xe],Be=void 0,ve=typeof pe;switch(ve){case"string":pe={s:pe};case"object":Be=te(pe,ie);break;case"function":Be=pe;break;default:throw TypeError("Unsupported type of rule: "+ve)}fe.push(Be)}return fe}var de=0;function De(){return new G("_p"+de++)}function Ne(X,ie){var fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:il(),xe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},pe=xe.consoleDebug;ie=Te(ie||me.rules,xe.context);var Be=f(X,fe);Be=_e(Be);for(var ve={},Le=Be.toString({parenthesis:"all"});!ve[Le];){ve[Le]=!0,de=0;var Ve=Le;pe&&console.log("Working on: ",Le);for(var P=0;P<ie.length;P++){var C="";if(typeof ie[P]=="function"?(Be=ie[P](Be,xe),pe&&(C=ie[P].name)):(U(Be,xe.context),Be=Pe(Be,ie[P],xe.context),pe&&(C="".concat(ie[P].l.toString()," -> ").concat(ie[P].r.toString()))),pe){var be=Be.toString({parenthesis:"all"});be!==Ve&&(console.log("Applying",C,"produced",be),Ve=be)}I(Be,xe.context)}Le=Be.toString({parenthesis:"all"})}return Be}function je(X,ie,fe){var xe=X;if(X)for(var pe=0;pe<X.length;++pe){var Be=Pe(X[pe],ie,fe);Be!==X[pe]&&(xe===X&&(xe=X.slice()),xe[pe]=Be)}return xe}function Pe(X,ie,fe){if(ie.assuming){for(var xe in ie.assuming)for(var pe in ie.assuming[xe])if(j(xe,pe,fe)!==ie.assuming[xe][pe])return X}var Be=M(ie.imposeContext,fe),ve=X;if(ve instanceof k||ve instanceof _){var Le=je(ve.args,ie,fe);Le!==ve.args&&(ve=ve.clone(),ve.args=Le)}else if(ve instanceof K){if(ve.content){var Ve=Pe(ve.content,ie,fe);Ve!==ve.content&&(ve=new K(Ve))}}else if(ve instanceof w){var P=je(ve.items,ie,fe);P!==ve.items&&(ve=new w(P))}else if(ve instanceof S){var C=ve.object;ve.object&&(C=Pe(ve.object,ie,fe));var be=ve.index;ve.index&&(be=Pe(ve.index,ie,fe)),(C!==ve.object||be!==ve.index)&&(ve=new S(C,be))}else if(ve instanceof N){var T=je(ve.dimensions,ie,fe);T!==ve.dimensions&&(ve=new N(T))}else if(ve instanceof $){var z=!1,E={};for(var O in ve.properties)E[O]=Pe(ve.properties[O],ie,fe),E[O]!==ve.properties[O]&&(z=!0);z&&(ve=new $(E))}var H=ie.r,L=Se(ie.l,ve,Be)[0];if(!L&&ie.expanded&&(H=ie.expanded.r,L=Se(ie.expanded.l,ve,Be)[0]),L){var Q=ve.implicit;ve=H.clone(),Q&&"implicit"in H&&(ve.implicit=!0),ve=ve.transform(function(se){return se.isSymbolNode&&st(L.placeholders,se.name)?L.placeholders[se.name].clone():se})}return ie.repeat&&ve!==X&&(ve=Pe(ve,ie,fe)),ve}function ze(X,ie){var fe=[],xe,pe,Be=ee(X);if(q(X,ie))for(var ve=0;ve<X.args.length;ve++)pe=X.args.slice(0),pe.splice(ve,1),xe=pe.length===1?pe[0]:Be(pe),fe.push(Be([X.args[ve],xe]));else for(var Le=1;Le<X.args.length;Le++){var Ve=X.args[0];Le>1&&(Ve=Be(X.args.slice(0,Le))),pe=X.args.slice(Le),xe=pe.length===1?pe[0]:Be(pe),fe.push(Be([Ve,xe]))}return fe}function R(X,ie){var fe={placeholders:{}};if(!X.placeholders&&!ie.placeholders)return fe;if(X.placeholders){if(!ie.placeholders)return X}else return ie;for(var xe in X.placeholders)if(st(X.placeholders,xe)&&(fe.placeholders[xe]=X.placeholders[xe],st(ie.placeholders,xe)&&!Ce(X.placeholders[xe],ie.placeholders[xe])))return null;for(var pe in ie.placeholders)st(ie.placeholders,pe)&&(fe.placeholders[pe]=ie.placeholders[pe]);return fe}function J(X,ie){var fe=[];if(X.length===0||ie.length===0)return fe;for(var xe,pe=0;pe<X.length;pe++)for(var Be=0;Be<ie.length;Be++)xe=R(X[pe],ie[Be]),xe&&fe.push(xe);return fe}function he(X){if(X.length===0)return X;for(var ie=X.reduce(J),fe=[],xe={},pe=0;pe<ie.length;pe++){var Be=JSON.stringify(ie[pe]);xe[Be]||(xe[Be]=!0,fe.push(ie[pe]))}return fe}function Se(X,ie,fe,xe){var pe=[{placeholders:{}}];if(X instanceof k&&ie instanceof k||X instanceof _&&ie instanceof _){if(X instanceof k){if(X.op!==ie.op||X.fn!==ie.fn)return[]}else if(X instanceof _&&X.name!==ie.name)return[];if(ie.args.length===1&&X.args.length===1||!re(ie,fe)&&ie.args.length===X.args.length||xe){for(var Be=[],ve=0;ve<X.args.length;ve++){var Le=Se(X.args[ve],ie.args[ve],fe);if(Le.length===0)break;Be.push(Le)}if(Be.length!==X.args.length){if(!q(ie,fe)||X.args.length===1)return[];if(X.args.length>2)throw new Error("permuting >2 commutative non-associative rule arguments not yet implemented");var Ve=Se(X.args[0],ie.args[1],fe);if(Ve.length===0)return[];var P=Se(X.args[1],ie.args[0],fe);if(P.length===0)return[];Be=[Ve,P]}pe=he(Be)}else if(ie.args.length>=2&&X.args.length===2){for(var C=ze(ie,fe),be=[],T=0;T<C.length;T++){var z=Se(X,C[T],fe,!0);be=be.concat(z)}return be}else{if(X.args.length>2)throw Error("Unexpected non-binary associative function: "+X.toString());return[]}}else if(X instanceof G){if(X.name.length===0)throw new Error("Symbol in rule has 0 length...!?");if(Ue[X.name]){if(X.name!==ie.name)return[]}else if(X.name[0]==="n"||X.name.substring(0,2)==="_p")pe[0].placeholders[X.name]=ie;else if(X.name[0]==="v")if(!Bt(ie))pe[0].placeholders[X.name]=ie;else return[];else if(X.name[0]==="c")if(ie instanceof D)pe[0].placeholders[X.name]=ie;else return[];else throw new Error("Invalid symbol in rule: "+X.name)}else if(X instanceof D){if(!c(X.value,ie.value))return[]}else return[];return pe}function Ce(X,ie){if(X instanceof D&&ie instanceof D){if(!c(X.value,ie.value))return!1}else if(X instanceof G&&ie instanceof G){if(X.name!==ie.name)return!1}else if(X instanceof k&&ie instanceof k||X instanceof _&&ie instanceof _){if(X instanceof k){if(X.op!==ie.op||X.fn!==ie.fn)return!1}else if(X instanceof _&&X.name!==ie.name)return!1;if(X.args.length!==ie.args.length)return!1;for(var fe=0;fe<X.args.length;fe++)if(!Ce(X.args[fe],ie.args[fe]))return!1}else return!1;return!0}return me}),cie="simplifyConstant",fie=["typed","parse","config","mathWithTransform","matrix","?fraction","?bignumber","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","SymbolNode"],die=ke(cie,fie,e=>{var{typed:t,parse:r,config:n,mathWithTransform:i,matrix:a,fraction:o,bignumber:s,AccessorNode:u,ArrayNode:l,ConstantNode:c,FunctionNode:f,IndexNode:d,ObjectNode:p,OperatorNode:h,SymbolNode:b}=e,{isCommutative:g,isAssociative:v,allChildren:S,createMakeNodeFunction:w}=Ig({FunctionNode:f,OperatorNode:h,SymbolNode:b}),D=t("simplifyConstant",{Node:x=>k(U(x,{})),"Node, Object":function(I,ee){return k(U(I,ee))}});function _(x){return Qc(x)?x.valueOf():x instanceof Array?x.map(_):on(x)?a(_(x.valueOf())):x}function N(x,I,ee){try{return i[x].apply(null,I)}catch{return I=I.map(_),G(i[x].apply(null,I),ee)}}var $=t({Fraction:q,number:function(I){return I<0?j(new c(-I)):new c(I)},BigNumber:function(I){return I<0?j(new c(-I)):new c(I)},Complex:function(I){throw new Error("Cannot convert Complex number to Node")},string:function(I){return new c(I)},Matrix:function(I){return new l(I.valueOf().map(ee=>$(ee)))}});function k(x){return Ot(x)?x:$(x)}function K(x,I){var ee=I&&I.exactFractions!==!1;if(ee&&isFinite(x)&&o){var oe=o(x),ce=I&&typeof I.fractionsLimit=="number"?I.fractionsLimit:1/0;if(oe.valueOf()===x&&oe.n<ce&&oe.d<ce)return oe}return x}var G=t({"string, Object":function(I,ee){if(n.number==="BigNumber")return s===void 0&&kg(),s(I);if(n.number==="Fraction")return o===void 0&&P7(),o(I);var oe=parseFloat(I);return K(oe,ee)},"Fraction, Object":function(I,ee){return I},"BigNumber, Object":function(I,ee){return I},"number, Object":function(I,ee){return K(I,ee)},"Complex, Object":function(I,ee){return I.im!==0?I:K(I.re,ee)},"Matrix, Object":function(I,ee){return a(K(I.valueOf()))},"Array, Object":function(I,ee){return I.map(K)}});function j(x){return new h("-","unaryMinus",[x])}function q(x){var I,ee=x.s*x.n;return ee<0?I=new h("-","unaryMinus",[new c(-ee)]):I=new c(ee),x.d===1?I:new h("/","divide",[I,new c(x.d)])}function re(x,I,ee){if(!Qs(I))return new u(k(x),k(I));if(Bn(x)||on(x)){for(var oe=Array.from(I.dimensions);oe.length>0;)if(Bt(oe[0])&&typeof oe[0].value!="string"){var ce=G(oe.shift().value,ee);Bn(x)?x=x.items[ce-1]:(x=x.valueOf()[ce-1],x instanceof Array&&(x=a(x)))}else if(oe.length>1&&Bt(oe[1])&&typeof oe[1].value!="string"){var $e=G(oe[1].value,ee),me=[],_e=Bn(x)?x.items:x.valueOf();for(var Ue of _e)if(Bn(Ue))me.push(Ue.items[$e-1]);else if(on(x))me.push(Ue[$e-1]);else break;if(me.length===_e.length)Bn(x)?x=new l(me):x=a(me),oe.splice(1,1);else break}else break;return oe.length===I.dimensions.length?new u(k(x),I):oe.length>0?(I=new d(oe),new u(k(x),I)):x}if(ef(x)&&I.dimensions.length===1&&Bt(I.dimensions[0])){var te=I.dimensions[0].value;return te in x.properties?x.properties[te]:new c}return new u(k(x),I)}function M(x,I,ee,oe){return I.reduce(function(ce,$e){if(!Ot(ce)&&!Ot($e)){try{return N(x,[ce,$e],oe)}catch{}ce=$(ce),$e=$($e)}else Ot(ce)?Ot($e)||($e=$($e)):ce=$(ce);return ee([ce,$e])})}function U(x,I){switch(x.type){case"SymbolNode":return x;case"ConstantNode":switch(typeof x.value){case"number":return G(x.value,I);case"string":return x.value;default:if(!isNaN(x.value))return G(x.value,I)}return x;case"FunctionNode":if(i[x.name]&&i[x.name].rawArgs)return x;{var ee=["add","multiply"];if(ee.indexOf(x.name)===-1){var oe=x.args.map(ze=>U(ze,I));if(!oe.some(Ot))try{return N(x.name,oe,I)}catch{}if(x.name==="size"&&oe.length===1&&Bn(oe[0])){for(var ce=[],$e=oe[0];Bn($e);)ce.push($e.items.length),$e=$e.items[0];return a(ce)}return new f(x.name,oe.map(k))}}case"OperatorNode":{var me=x.fn.toString(),_e,Ue,te=w(x);if(_r(x)&&x.isUnary())_e=[U(x.args[0],I)],Ot(_e[0])?Ue=te(_e):Ue=N(me,_e,I);else if(v(x,I.context))if(_e=S(x,I.context),_e=_e.map(ze=>U(ze,I)),g(me,I.context)){for(var Te=[],de=[],De=0;De<_e.length;De++)Ot(_e[De])?de.push(_e[De]):Te.push(_e[De]);Te.length>1?(Ue=M(me,Te,te,I),de.unshift(Ue),Ue=M(me,de,te,I)):Ue=M(me,_e,te,I)}else Ue=M(me,_e,te,I);else _e=x.args.map(ze=>U(ze,I)),Ue=M(me,_e,te,I);return Ue}case"ParenthesisNode":return U(x.content,I);case"AccessorNode":return re(U(x.object,I),U(x.index,I),I);case"ArrayNode":{var Ne=x.items.map(ze=>U(ze,I));return Ne.some(Ot)?new l(Ne.map(k)):a(Ne)}case"IndexNode":return new d(x.dimensions.map(ze=>D(ze,I)));case"ObjectNode":{var je={};for(var Pe in x.properties)je[Pe]=D(x.properties[Pe],I);return new p(je)}case"AssignmentNode":case"BlockNode":case"FunctionAssignmentNode":case"RangeNode":case"ConditionalNode":default:throw new Error("Unimplemented node type in simplifyConstant: ".concat(x.type))}}return D}),gi=[{AssignmentNode:{},FunctionAssignmentNode:{}},{ConditionalNode:{latexLeftParens:!1,latexRightParens:!1,latexParens:!1}},{"OperatorNode:or":{op:"or",associativity:"left",associativeWith:[]}},{"OperatorNode:xor":{op:"xor",associativity:"left",associativeWith:[]}},{"OperatorNode:and":{op:"and",associativity:"left",associativeWith:[]}},{"OperatorNode:bitOr":{op:"|",associativity:"left",associativeWith:[]}},{"OperatorNode:bitXor":{op:"^|",associativity:"left",associativeWith:[]}},{"OperatorNode:bitAnd":{op:"&",associativity:"left",associativeWith:[]}},{"OperatorNode:equal":{op:"==",associativity:"left",associativeWith:[]},"OperatorNode:unequal":{op:"!=",associativity:"left",associativeWith:[]},"OperatorNode:smaller":{op:"<",associativity:"left",associativeWith:[]},"OperatorNode:larger":{op:">",associativity:"left",associativeWith:[]},"OperatorNode:smallerEq":{op:"<=",associativity:"left",associativeWith:[]},"OperatorNode:largerEq":{op:">=",associativity:"left",associativeWith:[]},RelationalNode:{associativity:"left",associativeWith:[]}},{"OperatorNode:leftShift":{op:"<<",associativity:"left",associativeWith:[]},"OperatorNode:rightArithShift":{op:">>",associativity:"left",associativeWith:[]},"OperatorNode:rightLogShift":{op:">>>",associativity:"left",associativeWith:[]}},{"OperatorNode:to":{op:"to",associativity:"left",associativeWith:[]}},{RangeNode:{}},{"OperatorNode:add":{op:"+",associativity:"left",associativeWith:["OperatorNode:add","OperatorNode:subtract"]},"OperatorNode:subtract":{op:"-",associativity:"left",associativeWith:[]}},{"OperatorNode:multiply":{op:"*",associativity:"left",associativeWith:["OperatorNode:multiply","OperatorNode:divide","Operator:dotMultiply","Operator:dotDivide"]},"OperatorNode:divide":{op:"/",associativity:"left",associativeWith:[],latexLeftParens:!1,latexRightParens:!1,latexParens:!1},"OperatorNode:dotMultiply":{op:".*",associativity:"left",associativeWith:["OperatorNode:multiply","OperatorNode:divide","OperatorNode:dotMultiply","OperatorNode:doDivide"]},"OperatorNode:dotDivide":{op:"./",associativity:"left",associativeWith:[]},"OperatorNode:mod":{op:"mod",associativity:"left",associativeWith:[]}},{"OperatorNode:multiply":{associativity:"left",associativeWith:["OperatorNode:multiply","OperatorNode:divide","Operator:dotMultiply","Operator:dotDivide"]}},{"OperatorNode:unaryPlus":{op:"+",associativity:"right"},"OperatorNode:unaryMinus":{op:"-",associativity:"right"},"OperatorNode:bitNot":{op:"~",associativity:"right"},"OperatorNode:not":{op:"not",associativity:"right"}},{"OperatorNode:pow":{op:"^",associativity:"right",associativeWith:[],latexRightParens:!1},"OperatorNode:dotPow":{op:".^",associativity:"right",associativeWith:[]}},{"OperatorNode:factorial":{op:"!",associativity:"left"}},{"OperatorNode:ctranspose":{op:"'",associativity:"left"}}];function If(e,t){if(!t||t!=="auto")return e;for(var r=e;to(r);)r=r.content;return r}function Ut(e,t,r,n){var i=e;t!=="keep"&&(i=e.getContent());for(var a=i.getIdentifier(),o=null,s=0;s<gi.length;s++)if(a in gi[s]){o=s;break}if(a==="OperatorNode:multiply"&&i.implicit&&r!=="show"){var u=If(i.args[0],t);!(Bt(u)&&n&&n.getIdentifier()==="OperatorNode:divide"&&s0(If(n.args[0],t)))&&!(u.getIdentifier()==="OperatorNode:divide"&&s0(If(u.args[0],t))&&Bt(If(u.args[1])))&&(o+=1)}return o}function Vl(e,t){var r=e;t!=="keep"&&(r=e.getContent());var n=r.getIdentifier(),i=Ut(r,t);if(i===null)return null;var a=gi[i][n];if(st(a,"associativity")){if(a.associativity==="left")return"left";if(a.associativity==="right")return"right";throw Error("'"+n+"' has the invalid associativity '"+a.associativity+"'.")}return null}function Pm(e,t,r){var n=r!=="keep"?e.getContent():e,i=r!=="keep"?e.getContent():t,a=n.getIdentifier(),o=i.getIdentifier(),s=Ut(n,r);if(s===null)return null;var u=gi[s][a];if(st(u,"associativeWith")&&u.associativeWith instanceof Array){for(var l=0;l<u.associativeWith.length;l++)if(u.associativeWith[l]===o)return!0;return!1}return null}function pie(e){var t="OperatorNode:"+e;for(var r of gi)if(t in r)return r[t].op;return null}var R3="simplifyCore",hie=["typed","parse","equal","isZero","add","subtract","multiply","divide","pow","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","ParenthesisNode","SymbolNode"],mie=ke(R3,hie,e=>{var{typed:t,parse:r,equal:n,isZero:i,add:a,subtract:o,multiply:s,divide:u,pow:l,AccessorNode:c,ArrayNode:f,ConstantNode:d,FunctionNode:p,IndexNode:h,ObjectNode:b,OperatorNode:g,ParenthesisNode:v,SymbolNode:S}=e,w=new d(0),D=new d(1),_=new d(!0),N=new d(!1);function $(j){return _r(j)&&["and","not","or"].includes(j.op)}var{hasProperty:k,isCommutative:K}=Ig({FunctionNode:p,OperatorNode:g,SymbolNode:S});function G(j){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},re=q?q.context:void 0;if(k(j,"trivial",re)){if(rs(j)&&j.args.length===1)return G(j.args[0],q);var M=!1,U=0;if(j.forEach(Te=>{++U,U===1&&(M=G(Te,q))}),U===1)return M}var x=j;if(rs(x)){var I=pie(x.name);if(I){if(x.args.length>2&&k(x,"associative",re))for(;x.args.length>2;){var ee=x.args.pop(),oe=x.args.pop();x.args.push(new g(I,x.name,[ee,oe]))}x=new g(I,x.name,x.args)}else return new p(G(x.fn),x.args.map(Te=>G(Te,q)))}if(_r(x)&&x.isUnary()){var ce=G(x.args[0],q);if(x.op==="~"&&_r(ce)&&ce.isUnary()&&ce.op==="~"||x.op==="not"&&_r(ce)&&ce.isUnary()&&ce.op==="not"&&$(ce.args[0]))return ce.args[0];var $e=!0;if(x.op==="-"&&_r(ce)&&(ce.isBinary()&&ce.fn==="subtract"&&(x=new g("-","subtract",[ce.args[1],ce.args[0]]),$e=!1),ce.isUnary()&&ce.op==="-"))return ce.args[0];if($e)return new g(x.op,x.fn,[ce])}if(_r(x)&&x.isBinary()){var me=G(x.args[0],q),_e=G(x.args[1],q);if(x.op==="+"){if(Bt(me)&&i(me.value))return _e;if(Bt(_e)&&i(_e.value))return me;_r(_e)&&_e.isUnary()&&_e.op==="-"&&(_e=_e.args[0],x=new g("-","subtract",[me,_e]))}if(x.op==="-")return _r(_e)&&_e.isUnary()&&_e.op==="-"?G(new g("+","add",[me,_e.args[0]]),q):Bt(me)&&i(me.value)?G(new g("-","unaryMinus",[_e])):Bt(_e)&&i(_e.value)?me:new g(x.op,x.fn,[me,_e]);if(x.op==="*"){if(Bt(me)){if(i(me.value))return w;if(n(me.value,1))return _e}if(Bt(_e)){if(i(_e.value))return w;if(n(_e.value,1))return me;if(K(x,re))return new g(x.op,x.fn,[_e,me],x.implicit)}return new g(x.op,x.fn,[me,_e],x.implicit)}if(x.op==="/")return Bt(me)&&i(me.value)?w:Bt(_e)&&n(_e.value,1)?me:new g(x.op,x.fn,[me,_e]);if(x.op==="^"&&Bt(_e)){if(i(_e.value))return D;if(n(_e.value,1))return me}if(x.op==="and"){if(Bt(me))if(me.value){if($(_e))return _e}else return N;if(Bt(_e))if(_e.value){if($(me))return me}else return N}if(x.op==="or"){if(Bt(me)){if(me.value)return _;if($(_e))return _e}if(Bt(_e)){if(_e.value)return _;if($(me))return me}}return new g(x.op,x.fn,[me,_e])}if(_r(x))return new g(x.op,x.fn,x.args.map(Te=>G(Te,q)));if(Bn(x))return new f(x.items.map(Te=>G(Te,q)));if(ts(x))return new c(G(x.object,q),G(x.index,q));if(Qs(x))return new h(x.dimensions.map(Te=>G(Te,q)));if(ef(x)){var Ue={};for(var te in x.properties)Ue[te]=G(x.properties[te],q);return new b(Ue)}return x}return t(R3,{Node:G,"Node,Object":G})}),L3="derivative",vie=["typed","config","parse","simplify","equal","isZero","numeric","ConstantNode","FunctionNode","OperatorNode","ParenthesisNode","SymbolNode"],gie=ke(L3,vie,e=>{var{typed:t,config:r,parse:n,simplify:i,equal:a,isZero:o,numeric:s,ConstantNode:u,FunctionNode:l,OperatorNode:c,ParenthesisNode:f,SymbolNode:d}=e;function p(D,_){var N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{simplify:!0},$={};g($,D,_.name);var k=v(D,$);return N.simplify?i(k):k}t.addConversion({from:"identifier",to:"SymbolNode",convert:n});var h=t(L3,{"Node, SymbolNode":p,"Node, SymbolNode, Object":p});t.removeConversion({from:"identifier",to:"SymbolNode",convert:n}),h._simplify=!0,h.toTex=function(D){return b.apply(null,D.args)};var b=t("_derivTex",{"Node, SymbolNode":function(_,N){return Bt(_)&&xn(_.value)==="string"?b(n(_.value).toString(),N.toString(),1):b(_.toTex(),N.toString(),1)},"Node, ConstantNode":function(_,N){if(xn(N.value)==="string")return b(_,n(N.value));throw new Error("The second parameter to 'derivative' is a non-string constant")},"Node, SymbolNode, ConstantNode":function(_,N,$){return b(_.toString(),N.name,$.value)},"string, string, number":function(_,N,$){var k;return $===1?k="{d\\over d"+N+"}":k="{d^{"+$+"}\\over d"+N+"^{"+$+"}}",k+"\\left[".concat(_,"\\right]")}}),g=t("constTag",{"Object, ConstantNode, string":function(_,N){return _[N]=!0,!0},"Object, SymbolNode, string":function(_,N,$){return N.name!==$?(_[N]=!0,!0):!1},"Object, ParenthesisNode, string":function(_,N,$){return g(_,N.content,$)},"Object, FunctionAssignmentNode, string":function(_,N,$){return N.params.indexOf($)===-1?(_[N]=!0,!0):g(_,N.expr,$)},"Object, FunctionNode | OperatorNode, string":function(_,N,$){if(N.args.length>0){for(var k=g(_,N.args[0],$),K=1;K<N.args.length;++K)k=g(_,N.args[K],$)&&k;if(k)return _[N]=!0,!0}return!1}}),v=t("_derivative",{"ConstantNode, Object":function(_){return w(0)},"SymbolNode, Object":function(_,N){return N[_]!==void 0?w(0):w(1)},"ParenthesisNode, Object":function(_,N){return new f(v(_.content,N))},"FunctionAssignmentNode, Object":function(_,N){return N[_]!==void 0?w(0):v(_.expr,N)},"FunctionNode, Object":function(_,N){if(_.args.length!==1&&S(_),N[_]!==void 0)return w(0);var $=_.args[0],k,K=!1,G=!1,j;switch(_.name){case"cbrt":K=!0,j=new c("*","multiply",[w(3),new c("^","pow",[$,new c("/","divide",[w(2),w(3)])])]);break;case"sqrt":case"nthRoot":if(_.args.length===1)K=!0,j=new c("*","multiply",[w(2),new l("sqrt",[$])]);else if(_.args.length===2)return k=new c("/","divide",[w(1),_.args[1]]),N[k]=N[_.args[1]],v(new c("^","pow",[$,k]),N);break;case"log10":k=w(10);case"log":if(!k&&_.args.length===1)j=$.clone(),K=!0;else if(_.args.length===1&&k||_.args.length===2&&N[_.args[1]]!==void 0)j=new c("*","multiply",[$.clone(),new l("log",[k||_.args[1]])]),K=!0;else if(_.args.length===2)return v(new c("/","divide",[new l("log",[$]),new l("log",[_.args[1]])]),N);break;case"pow":return N[k]=N[_.args[1]],v(new c("^","pow",[$,_.args[1]]),N);case"exp":j=new l("exp",[$.clone()]);break;case"sin":j=new l("cos",[$.clone()]);break;case"cos":j=new c("-","unaryMinus",[new l("sin",[$.clone()])]);break;case"tan":j=new c("^","pow",[new l("sec",[$.clone()]),w(2)]);break;case"sec":j=new c("*","multiply",[_,new l("tan",[$.clone()])]);break;case"csc":G=!0,j=new c("*","multiply",[_,new l("cot",[$.clone()])]);break;case"cot":G=!0,j=new c("^","pow",[new l("csc",[$.clone()]),w(2)]);break;case"asin":K=!0,j=new l("sqrt",[new c("-","subtract",[w(1),new c("^","pow",[$.clone(),w(2)])])]);break;case"acos":K=!0,G=!0,j=new l("sqrt",[new c("-","subtract",[w(1),new c("^","pow",[$.clone(),w(2)])])]);break;case"atan":K=!0,j=new c("+","add",[new c("^","pow",[$.clone(),w(2)]),w(1)]);break;case"asec":K=!0,j=new c("*","multiply",[new l("abs",[$.clone()]),new l("sqrt",[new c("-","subtract",[new c("^","pow",[$.clone(),w(2)]),w(1)])])]);break;case"acsc":K=!0,G=!0,j=new c("*","multiply",[new l("abs",[$.clone()]),new l("sqrt",[new c("-","subtract",[new c("^","pow",[$.clone(),w(2)]),w(1)])])]);break;case"acot":K=!0,G=!0,j=new c("+","add",[new c("^","pow",[$.clone(),w(2)]),w(1)]);break;case"sinh":j=new l("cosh",[$.clone()]);break;case"cosh":j=new l("sinh",[$.clone()]);break;case"tanh":j=new c("^","pow",[new l("sech",[$.clone()]),w(2)]);break;case"sech":G=!0,j=new c("*","multiply",[_,new l("tanh",[$.clone()])]);break;case"csch":G=!0,j=new c("*","multiply",[_,new l("coth",[$.clone()])]);break;case"coth":G=!0,j=new c("^","pow",[new l("csch",[$.clone()]),w(2)]);break;case"asinh":K=!0,j=new l("sqrt",[new c("+","add",[new c("^","pow",[$.clone(),w(2)]),w(1)])]);break;case"acosh":K=!0,j=new l("sqrt",[new c("-","subtract",[new c("^","pow",[$.clone(),w(2)]),w(1)])]);break;case"atanh":K=!0,j=new c("-","subtract",[w(1),new c("^","pow",[$.clone(),w(2)])]);break;case"asech":K=!0,G=!0,j=new c("*","multiply",[$.clone(),new l("sqrt",[new c("-","subtract",[w(1),new c("^","pow",[$.clone(),w(2)])])])]);break;case"acsch":K=!0,G=!0,j=new c("*","multiply",[new l("abs",[$.clone()]),new l("sqrt",[new c("+","add",[new c("^","pow",[$.clone(),w(2)]),w(1)])])]);break;case"acoth":K=!0,G=!0,j=new c("-","subtract",[w(1),new c("^","pow",[$.clone(),w(2)])]);break;case"abs":j=new c("/","divide",[new l(new d("abs"),[$.clone()]),$.clone()]);break;case"gamma":default:throw new Error('Function "'+_.name+'" is not supported by derivative, or a wrong number of arguments is passed')}var q,re;K?(q="/",re="divide"):(q="*",re="multiply");var M=v($,N);return G&&(M=new c("-","unaryMinus",[M])),new c(q,re,[M,j])},"OperatorNode, Object":function(_,N){if(N[_]!==void 0)return w(0);if(_.op==="+")return new c(_.op,_.fn,_.args.map(function(x){return v(x,N)}));if(_.op==="-"){if(_.isUnary())return new c(_.op,_.fn,[v(_.args[0],N)]);if(_.isBinary())return new c(_.op,_.fn,[v(_.args[0],N),v(_.args[1],N)])}if(_.op==="*"){var $=_.args.filter(function(x){return N[x]!==void 0});if($.length>0){var k=_.args.filter(function(x){return N[x]===void 0}),K=k.length===1?k[0]:new c("*","multiply",k),G=$.concat(v(K,N));return new c("*","multiply",G)}return new c("+","add",_.args.map(function(x){return new c("*","multiply",_.args.map(function(I){return I===x?v(I,N):I.clone()}))}))}if(_.op==="/"&&_.isBinary()){var j=_.args[0],q=_.args[1];return N[q]!==void 0?new c("/","divide",[v(j,N),q]):N[j]!==void 0?new c("*","multiply",[new c("-","unaryMinus",[j]),new c("/","divide",[v(q,N),new c("^","pow",[q.clone(),w(2)])])]):new c("/","divide",[new c("-","subtract",[new c("*","multiply",[v(j,N),q.clone()]),new c("*","multiply",[j.clone(),v(q,N)])]),new c("^","pow",[q.clone(),w(2)])])}if(_.op==="^"&&_.isBinary()){var re=_.args[0],M=_.args[1];if(N[re]!==void 0)return Bt(re)&&(o(re.value)||a(re.value,1))?w(0):new c("*","multiply",[_,new c("*","multiply",[new l("log",[re.clone()]),v(M.clone(),N)])]);if(N[M]!==void 0){if(Bt(M)){if(o(M.value))return w(0);if(a(M.value,1))return v(re,N)}var U=new c("^","pow",[re.clone(),new c("-","subtract",[M,w(1)])]);return new c("*","multiply",[M.clone(),new c("*","multiply",[v(re,N),U])])}return new c("*","multiply",[new c("^","pow",[re.clone(),M.clone()]),new c("+","add",[new c("*","multiply",[v(re,N),new c("/","divide",[M.clone(),re.clone()])]),new c("*","multiply",[v(M,N),new l("log",[re.clone()])])])])}throw new Error('Operator "'+_.op+'" is not supported by derivative, or a wrong number of arguments is passed')}});function S(D){if(!((D.name==="log"||D.name==="nthRoot"||D.name==="pow")&&D.args.length===2)){for(var _=0;_<D.args.length;++_)D.args[_]=w(0);throw D.compile().evaluate(),new Error("Expected TypeError, but none found")}}function w(D,_){return new u(s(D,_||r.number))}return h}),j3="rationalize",yie=["config","typed","equal","isZero","add","subtract","multiply","divide","pow","parse","simplifyConstant","simplifyCore","simplify","?bignumber","?fraction","mathWithTransform","matrix","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","SymbolNode","ParenthesisNode"],bie=ke(j3,yie,e=>{var{config:t,typed:r,equal:n,isZero:i,add:a,subtract:o,multiply:s,divide:u,pow:l,parse:c,simplifyConstant:f,simplifyCore:d,simplify:p,fraction:h,bignumber:b,mathWithTransform:g,matrix:v,AccessorNode:S,ArrayNode:w,ConstantNode:D,FunctionNode:_,IndexNode:N,ObjectNode:$,OperatorNode:k,SymbolNode:K,ParenthesisNode:G}=e;function j(x){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,oe=re(),ce=q(x,I,!0,oe.firstRules),$e=ce.variables.length,me={exactFractions:!1},_e={exactFractions:!0};if(x=ce.expression,$e>=1){x=M(x);var Ue,te,Te=!0,de=!1;x=p(x,oe.firstRules,{},me);for(var De;te=Te?oe.distrDivRules:oe.sucDivRules,x=p(x,te,{},_e),Te=!Te,De=x.toString(),De!==Ue;)de=!0,Ue=De;de&&(x=p(x,oe.firstRulesAgain,{},me)),x=p(x,oe.finalRules,{},me)}var Ne=[],je={};return x.type==="OperatorNode"&&x.isBinary()&&x.op==="/"?($e===1&&(x.args[0]=U(x.args[0],Ne),x.args[1]=U(x.args[1])),ee&&(je.numerator=x.args[0],je.denominator=x.args[1])):($e===1&&(x=U(x,Ne)),ee&&(je.numerator=x,je.denominator=null)),ee?(je.coefficients=Ne,je.variables=ce.variables,je.expression=x,je):x}return r(j3,{Node:j,"Node, boolean":(x,I)=>j(x,{},I),"Node, Object":j,"Node, Object, boolean":j});function q(x,I,ee,oe){var ce=[],$e=p(x,oe,I,{exactFractions:!1});ee=!!ee;var me="+-*"+(ee?"/":"");Ue($e);var _e={};return _e.expression=$e,_e.variables=ce,_e;function Ue(te){var Te=te.type;if(Te==="FunctionNode")throw new Error("There is an unsolved function call");if(Te==="OperatorNode")if(te.op==="^"){if(te.args[1].type!=="ConstantNode"||!_t(parseFloat(te.args[1].value)))throw new Error("There is a non-integer exponent");Ue(te.args[0])}else{if(me.indexOf(te.op)===-1)throw new Error("Operator "+te.op+" invalid in polynomial expression");for(var de=0;de<te.args.length;de++)Ue(te.args[de])}else if(Te==="SymbolNode"){var De=te.name,Ne=ce.indexOf(De);Ne===-1&&ce.push(De)}else if(Te==="ParenthesisNode")Ue(te.content);else if(Te!=="ConstantNode")throw new Error("type "+Te+" is not allowed in polynomial expression")}}function re(){var x=[d,{l:"n+n",r:"2*n"},{l:"n+-n",r:"0"},f,{l:"n*(n1^-1)",r:"n/n1"},{l:"n*n1^-n2",r:"n/n1^n2"},{l:"n1^-1",r:"1/n1"},{l:"n*(n1/n2)",r:"(n*n1)/n2"},{l:"1*n",r:"n"}],I=[{l:"(-n1)/(-n2)",r:"n1/n2"},{l:"(-n1)*(-n2)",r:"n1*n2"},{l:"n1--n2",r:"n1+n2"},{l:"n1-n2",r:"n1+(-n2)"},{l:"(n1+n2)*n3",r:"(n1*n3 + n2*n3)"},{l:"n1*(n2+n3)",r:"(n1*n2+n1*n3)"},{l:"c1*n + c2*n",r:"(c1+c2)*n"},{l:"c1*n + n",r:"(c1+1)*n"},{l:"c1*n - c2*n",r:"(c1-c2)*n"},{l:"c1*n - n",r:"(c1-1)*n"},{l:"v/c",r:"(1/c)*v"},{l:"v/-c",r:"-(1/c)*v"},{l:"-v*-c",r:"c*v"},{l:"-v*c",r:"-c*v"},{l:"v*-c",r:"-c*v"},{l:"v*c",r:"c*v"},{l:"-(-n1*n2)",r:"(n1*n2)"},{l:"-(n1*n2)",r:"(-n1*n2)"},{l:"-(-n1+n2)",r:"(n1-n2)"},{l:"-(n1+n2)",r:"(-n1-n2)"},{l:"(n1^n2)^n3",r:"(n1^(n2*n3))"},{l:"-(-n1/n2)",r:"(n1/n2)"},{l:"-(n1/n2)",r:"(-n1/n2)"}],ee=[{l:"(n1/n2 + n3/n4)",r:"((n1*n4 + n3*n2)/(n2*n4))"},{l:"(n1/n2 + n3)",r:"((n1 + n3*n2)/n2)"},{l:"(n1 + n2/n3)",r:"((n1*n3 + n2)/n3)"}],oe=[{l:"(n1/(n2/n3))",r:"((n1*n3)/n2)"},{l:"(n1/n2/n3)",r:"(n1/(n2*n3))"}],ce={};return ce.firstRules=x.concat(I,oe),ce.distrDivRules=ee,ce.sucDivRules=oe,ce.firstRulesAgain=x.concat(I),ce.finalRules=[d,{l:"n*-n",r:"-n^2"},{l:"n*n",r:"n^2"},f,{l:"n*-n^n1",r:"-n^(n1+1)"},{l:"n*n^n1",r:"n^(n1+1)"},{l:"n^n1*-n^n2",r:"-n^(n1+n2)"},{l:"n^n1*n^n2",r:"n^(n1+n2)"},{l:"n^n1*-n",r:"-n^(n1+1)"},{l:"n^n1*n",r:"n^(n1+1)"},{l:"n^n1/-n",r:"-n^(n1-1)"},{l:"n^n1/n",r:"n^(n1-1)"},{l:"n/-n^n1",r:"-n^(1-n1)"},{l:"n/n^n1",r:"n^(1-n1)"},{l:"n^n1/-n^n2",r:"n^(n1-n2)"},{l:"n^n1/n^n2",r:"n^(n1-n2)"},{l:"n1+(-n2*n3)",r:"n1-n2*n3"},{l:"v*(-c)",r:"-c*v"},{l:"n1+-n2",r:"n1-n2"},{l:"v*c",r:"c*v"},{l:"(n1^n2)^n3",r:"(n1^(n2*n3))"}],ce}function M(x,I,ee){var oe=x.type,ce=arguments.length>1;if(oe==="OperatorNode"&&x.isBinary()){var $e=!1,me;if(x.op==="^"&&(x.args[0].type==="ParenthesisNode"||x.args[0].type==="OperatorNode")&&x.args[1].type==="ConstantNode"&&(me=parseFloat(x.args[1].value),$e=me>=2&&_t(me)),$e){if(me>2){var _e=x.args[0],Ue=new k("^","pow",[x.args[0].cloneDeep(),new D(me-1)]);x=new k("*","multiply",[_e,Ue])}else x=new k("*","multiply",[x.args[0],x.args[0].cloneDeep()]);ce&&(ee==="content"?I.content=x:I.args[ee]=x)}}if(oe==="ParenthesisNode")M(x.content,x,"content");else if(oe!=="ConstantNode"&&oe!=="SymbolNode")for(var te=0;te<x.args.length;te++)M(x.args[te],x,te);if(!ce)return x}function U(x,I){I===void 0&&(I=[]),I[0]=0;var ee={};ee.cte=1,ee.oper="+",ee.fire="";var oe=0,ce="";De(x,null,ee),oe=I.length-1;for(var $e=!0,me,_e=oe;_e>=0;_e--)if(I[_e]!==0){var Ue=new D($e?I[_e]:Math.abs(I[_e])),te=I[_e]<0?"-":"+";if(_e>0){var Te=new K(ce);if(_e>1){var de=new D(_e);Te=new k("^","pow",[Te,de])}I[_e]===-1&&$e?Ue=new k("-","unaryMinus",[Te]):Math.abs(I[_e])===1?Ue=Te:Ue=new k("*","multiply",[Ue,Te])}$e?me=Ue:te==="+"?me=new k("+","add",[me,Ue]):me=new k("-","subtract",[me,Ue]),$e=!1}if($e)return new D(0);return me;function De(Ne,je,Pe){var ze=Ne.type;if(ze==="FunctionNode")throw new Error("There is an unsolved function call");if(ze==="OperatorNode"){if("+-*^".indexOf(Ne.op)===-1)throw new Error("Operator "+Ne.op+" invalid");if(je!==null){if((Ne.fn==="unaryMinus"||Ne.fn==="pow")&&je.fn!=="add"&&je.fn!=="subtract"&&je.fn!=="multiply")throw new Error("Invalid "+Ne.op+" placing");if((Ne.fn==="subtract"||Ne.fn==="add"||Ne.fn==="multiply")&&je.fn!=="add"&&je.fn!=="subtract")throw new Error("Invalid "+Ne.op+" placing");if((Ne.fn==="subtract"||Ne.fn==="add"||Ne.fn==="unaryMinus")&&Pe.noFil!==0)throw new Error("Invalid "+Ne.op+" placing")}(Ne.op==="^"||Ne.op==="*")&&(Pe.fire=Ne.op);for(var R=0;R<Ne.args.length;R++)Ne.fn==="unaryMinus"&&(Pe.oper="-"),(Ne.op==="+"||Ne.fn==="subtract")&&(Pe.fire="",Pe.cte=1,Pe.oper=R===0?"+":Ne.op),Pe.noFil=R,De(Ne.args[R],Ne,Pe)}else if(ze==="SymbolNode"){if(Ne.name!==ce&&ce!=="")throw new Error("There is more than one variable");if(ce=Ne.name,je===null){I[1]=1;return}if(je.op==="^"&&Pe.noFil!==0)throw new Error("In power the variable should be the first parameter");if(je.op==="*"&&Pe.noFil!==1)throw new Error("In multiply the variable should be the second parameter");(Pe.fire===""||Pe.fire==="*")&&(oe<1&&(I[1]=0),I[1]+=Pe.cte*(Pe.oper==="+"?1:-1),oe=Math.max(1,oe))}else if(ze==="ConstantNode"){var J=parseFloat(Ne.value);if(je===null){I[0]=J;return}if(je.op==="^"){if(Pe.noFil!==1)throw new Error("Constant cannot be powered");if(!_t(J)||J<=0)throw new Error("Non-integer exponent is not allowed");for(var he=oe+1;he<J;he++)I[he]=0;J>oe&&(I[J]=0),I[J]+=Pe.cte*(Pe.oper==="+"?1:-1),oe=Math.max(J,oe);return}Pe.cte=J,Pe.fire===""&&(I[0]+=Pe.cte*(Pe.oper==="+"?1:-1))}else throw new Error("Type "+ze+" is not allowed")}}}),Tu=9e15,ls=1e9,c0="0123456789abcdef",mp="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",vp="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",f0={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-Tu,maxE:Tu,crypto:!1},j7,Ka,dt=!0,Nh="[DecimalError] ",ns=Nh+"Invalid argument: ",U7=Nh+"Precision limit exceeded",z7=Nh+"crypto unavailable",q7="[object Decimal]",Zr=Math.floor,xr=Math.pow,wie=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,_ie=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,xie=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,H7=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Di=1e7,ut=7,Eie=9007199254740991,Die=mp.length-1,d0=vp.length-1,Me={toStringTag:q7};Me.absoluteValue=Me.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),nt(e)};Me.ceil=function(){return nt(new this.constructor(this),this.e+1,2)};Me.clampedTo=Me.clamp=function(e,t){var r,n=this,i=n.constructor;if(e=new i(e),t=new i(t),!e.s||!t.s)return new i(NaN);if(e.gt(t))throw Error(ns+t);return r=n.cmp(e),r<0?e:n.cmp(t)>0?t:new i(n)};Me.comparedTo=Me.cmp=function(e){var t,r,n,i,a=this,o=a.d,s=(e=new a.constructor(e)).d,u=a.s,l=e.s;if(!o||!s)return!u||!l?NaN:u!==l?u:o===s?0:!o^u<0?1:-1;if(!o[0]||!s[0])return o[0]?u:s[0]?-l:0;if(u!==l)return u;if(a.e!==e.e)return a.e>e.e^u<0?1:-1;for(n=o.length,i=s.length,t=0,r=n<i?n:i;t<r;++t)if(o[t]!==s[t])return o[t]>s[t]^u<0?1:-1;return n===i?0:n>i^u<0?1:-1};Me.cosine=Me.cos=function(){var e,t,r=this,n=r.constructor;return r.d?r.d[0]?(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+ut,n.rounding=1,r=Sie(n,Y7(n,r)),n.precision=e,n.rounding=t,nt(Ka==2||Ka==3?r.neg():r,e,t,!0)):new n(1):new n(NaN)};Me.cubeRoot=Me.cbrt=function(){var e,t,r,n,i,a,o,s,u,l,c=this,f=c.constructor;if(!c.isFinite()||c.isZero())return new f(c);for(dt=!1,a=c.s*xr(c.s*c,1/3),!a||Math.abs(a)==1/0?(r=jr(c.d),e=c.e,(a=(e-r.length+1)%3)&&(r+=a==1||a==-2?"0":"00"),a=xr(r,1/3),e=Zr((e+1)/3)-(e%3==(e<0?-1:2)),a==1/0?r="5e"+e:(r=a.toExponential(),r=r.slice(0,r.indexOf("e")+1)+e),n=new f(r),n.s=c.s):n=new f(a.toString()),o=(e=f.precision)+3;;)if(s=n,u=s.times(s).times(s),l=u.plus(c),n=Kt(l.plus(c).times(s),l.plus(u),o+2,1),jr(s.d).slice(0,o)===(r=jr(n.d)).slice(0,o))if(r=r.slice(o-3,o+1),r=="9999"||!i&&r=="4999"){if(!i&&(nt(s,e+1,0),s.times(s).times(s).eq(c))){n=s;break}o+=4,i=1}else{(!+r||!+r.slice(1)&&r.charAt(0)=="5")&&(nt(n,e+1,1),t=!n.times(n).times(n).eq(c));break}return dt=!0,nt(n,e,f.rounding,t)};Me.decimalPlaces=Me.dp=function(){var e,t=this.d,r=NaN;if(t){if(e=t.length-1,r=(e-Zr(this.e/ut))*ut,e=t[e],e)for(;e%10==0;e/=10)r--;r<0&&(r=0)}return r};Me.dividedBy=Me.div=function(e){return Kt(this,new this.constructor(e))};Me.dividedToIntegerBy=Me.divToInt=function(e){var t=this,r=t.constructor;return nt(Kt(t,new r(e),0,1,1),r.precision,r.rounding)};Me.equals=Me.eq=function(e){return this.cmp(e)===0};Me.floor=function(){return nt(new this.constructor(this),this.e+1,3)};Me.greaterThan=Me.gt=function(e){return this.cmp(e)>0};Me.greaterThanOrEqualTo=Me.gte=function(e){var t=this.cmp(e);return t==1||t===0};Me.hyperbolicCosine=Me.cosh=function(){var e,t,r,n,i,a=this,o=a.constructor,s=new o(1);if(!a.isFinite())return new o(a.s?1/0:NaN);if(a.isZero())return s;r=o.precision,n=o.rounding,o.precision=r+Math.max(a.e,a.sd())+4,o.rounding=1,i=a.d.length,i<32?(e=Math.ceil(i/3),t=(1/kh(4,e)).toString()):(e=16,t="2.3283064365386962890625e-10"),a=al(o,1,a.times(t),new o(1),!0);for(var u,l=e,c=new o(8);l--;)u=a.times(a),a=s.minus(u.times(c.minus(u.times(c))));return nt(a,o.precision=r,o.rounding=n,!0)};Me.hyperbolicSine=Me.sinh=function(){var e,t,r,n,i=this,a=i.constructor;if(!i.isFinite()||i.isZero())return new a(i);if(t=a.precision,r=a.rounding,a.precision=t+Math.max(i.e,i.sd())+4,a.rounding=1,n=i.d.length,n<3)i=al(a,2,i,i,!0);else{e=1.4*Math.sqrt(n),e=e>16?16:e|0,i=i.times(1/kh(5,e)),i=al(a,2,i,i,!0);for(var o,s=new a(5),u=new a(16),l=new a(20);e--;)o=i.times(i),i=i.times(s.plus(o.times(u.times(o).plus(l))))}return a.precision=t,a.rounding=r,nt(i,t,r,!0)};Me.hyperbolicTangent=Me.tanh=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+7,n.rounding=1,Kt(r.sinh(),r.cosh(),n.precision=e,n.rounding=t)):new n(r.s)};Me.inverseCosine=Me.acos=function(){var e,t=this,r=t.constructor,n=t.abs().cmp(1),i=r.precision,a=r.rounding;return n!==-1?n===0?t.isNeg()?_i(r,i,a):new r(0):new r(NaN):t.isZero()?_i(r,i+4,a).times(.5):(r.precision=i+6,r.rounding=1,t=t.asin(),e=_i(r,i+4,a).times(.5),r.precision=i,r.rounding=a,e.minus(t))};Me.inverseHyperbolicCosine=Me.acosh=function(){var e,t,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(e=n.precision,t=n.rounding,n.precision=e+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,dt=!1,r=r.times(r).minus(1).sqrt().plus(r),dt=!0,n.precision=e,n.rounding=t,r.ln()):new n(r)};Me.inverseHyperbolicSine=Me.asinh=function(){var e,t,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,dt=!1,r=r.times(r).plus(1).sqrt().plus(r),dt=!0,n.precision=e,n.rounding=t,r.ln())};Me.inverseHyperbolicTangent=Me.atanh=function(){var e,t,r,n,i=this,a=i.constructor;return i.isFinite()?i.e>=0?new a(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=a.precision,t=a.rounding,n=i.sd(),Math.max(n,e)<2*-i.e-1?nt(new a(i),e,t,!0):(a.precision=r=n-i.e,i=Kt(i.plus(1),new a(1).minus(i),r+e,1),a.precision=e+4,a.rounding=1,i=i.ln(),a.precision=e,a.rounding=t,i.times(.5))):new a(NaN)};Me.inverseSine=Me.asin=function(){var e,t,r,n,i=this,a=i.constructor;return i.isZero()?new a(i):(t=i.abs().cmp(1),r=a.precision,n=a.rounding,t!==-1?t===0?(e=_i(a,r+4,n).times(.5),e.s=i.s,e):new a(NaN):(a.precision=r+6,a.rounding=1,i=i.div(new a(1).minus(i.times(i)).sqrt().plus(1)).atan(),a.precision=r,a.rounding=n,i.times(2)))};Me.inverseTangent=Me.atan=function(){var e,t,r,n,i,a,o,s,u,l=this,c=l.constructor,f=c.precision,d=c.rounding;if(l.isFinite()){if(l.isZero())return new c(l);if(l.abs().eq(1)&&f+4<=d0)return o=_i(c,f+4,d).times(.25),o.s=l.s,o}else{if(!l.s)return new c(NaN);if(f+4<=d0)return o=_i(c,f+4,d).times(.5),o.s=l.s,o}for(c.precision=s=f+10,c.rounding=1,r=Math.min(28,s/ut+2|0),e=r;e;--e)l=l.div(l.times(l).plus(1).sqrt().plus(1));for(dt=!1,t=Math.ceil(s/ut),n=1,u=l.times(l),o=new c(l),i=l;e!==-1;)if(i=i.times(u),a=o.minus(i.div(n+=2)),i=i.times(u),o=a.plus(i.div(n+=2)),o.d[t]!==void 0)for(e=t;o.d[e]===a.d[e]&&e--;);return r&&(o=o.times(2<<r-1)),dt=!0,nt(o,c.precision=f,c.rounding=d,!0)};Me.isFinite=function(){return!!this.d};Me.isInteger=Me.isInt=function(){return!!this.d&&Zr(this.e/ut)>this.d.length-2};Me.isNaN=function(){return!this.s};Me.isNegative=Me.isNeg=function(){return this.s<0};Me.isPositive=Me.isPos=function(){return this.s>0};Me.isZero=function(){return!!this.d&&this.d[0]===0};Me.lessThan=Me.lt=function(e){return this.cmp(e)<0};Me.lessThanOrEqualTo=Me.lte=function(e){return this.cmp(e)<1};Me.logarithm=Me.log=function(e){var t,r,n,i,a,o,s,u,l=this,c=l.constructor,f=c.precision,d=c.rounding,p=5;if(e==null)e=new c(10),t=!0;else{if(e=new c(e),r=e.d,e.s<0||!r||!r[0]||e.eq(1))return new c(NaN);t=e.eq(10)}if(r=l.d,l.s<0||!r||!r[0]||l.eq(1))return new c(r&&!r[0]?-1/0:l.s!=1?NaN:r?0:1/0);if(t)if(r.length>1)a=!0;else{for(i=r[0];i%10===0;)i/=10;a=i!==1}if(dt=!1,s=f+p,o=Io(l,s),n=t?gp(c,s+10):Io(e,s),u=Kt(o,n,s,1),$c(u.d,i=f,d))do if(s+=10,o=Io(l,s),n=t?gp(c,s+10):Io(e,s),u=Kt(o,n,s,1),!a){+jr(u.d).slice(i+1,i+15)+1==1e14&&(u=nt(u,f+1,0));break}while($c(u.d,i+=10,d));return dt=!0,nt(u,f,d)};Me.minus=Me.sub=function(e){var t,r,n,i,a,o,s,u,l,c,f,d,p=this,h=p.constructor;if(e=new h(e),!p.d||!e.d)return!p.s||!e.s?e=new h(NaN):p.d?e.s=-e.s:e=new h(e.d||p.s!==e.s?p:NaN),e;if(p.s!=e.s)return e.s=-e.s,p.plus(e);if(l=p.d,d=e.d,s=h.precision,u=h.rounding,!l[0]||!d[0]){if(d[0])e.s=-e.s;else if(l[0])e=new h(p);else return new h(u===3?-0:0);return dt?nt(e,s,u):e}if(r=Zr(e.e/ut),c=Zr(p.e/ut),l=l.slice(),a=c-r,a){for(f=a<0,f?(t=l,a=-a,o=d.length):(t=d,r=c,o=l.length),n=Math.max(Math.ceil(s/ut),o)+2,a>n&&(a=n,t.length=1),t.reverse(),n=a;n--;)t.push(0);t.reverse()}else{for(n=l.length,o=d.length,f=n<o,f&&(o=n),n=0;n<o;n++)if(l[n]!=d[n]){f=l[n]<d[n];break}a=0}for(f&&(t=l,l=d,d=t,e.s=-e.s),o=l.length,n=d.length-o;n>0;--n)l[o++]=0;for(n=d.length;n>a;){if(l[--n]<d[n]){for(i=n;i&&l[--i]===0;)l[i]=Di-1;--l[i],l[n]+=Di}l[n]-=d[n]}for(;l[--o]===0;)l.pop();for(;l[0]===0;l.shift())--r;return l[0]?(e.d=l,e.e=Th(l,r),dt?nt(e,s,u):e):new h(u===3?-0:0)};Me.modulo=Me.mod=function(e){var t,r=this,n=r.constructor;return e=new n(e),!r.d||!e.s||e.d&&!e.d[0]?new n(NaN):!e.d||r.d&&!r.d[0]?nt(new n(r),n.precision,n.rounding):(dt=!1,n.modulo==9?(t=Kt(r,e.abs(),0,3,1),t.s*=e.s):t=Kt(r,e,0,n.modulo,1),t=t.times(e),dt=!0,r.minus(t))};Me.naturalExponential=Me.exp=function(){return p0(this)};Me.naturalLogarithm=Me.ln=function(){return Io(this)};Me.negated=Me.neg=function(){var e=new this.constructor(this);return e.s=-e.s,nt(e)};Me.plus=Me.add=function(e){var t,r,n,i,a,o,s,u,l,c,f=this,d=f.constructor;if(e=new d(e),!f.d||!e.d)return!f.s||!e.s?e=new d(NaN):f.d||(e=new d(e.d||f.s===e.s?f:NaN)),e;if(f.s!=e.s)return e.s=-e.s,f.minus(e);if(l=f.d,c=e.d,s=d.precision,u=d.rounding,!l[0]||!c[0])return c[0]||(e=new d(f)),dt?nt(e,s,u):e;if(a=Zr(f.e/ut),n=Zr(e.e/ut),l=l.slice(),i=a-n,i){for(i<0?(r=l,i=-i,o=c.length):(r=c,n=a,o=l.length),a=Math.ceil(s/ut),o=a>o?a+1:o+1,i>o&&(i=o,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(o=l.length,i=c.length,o-i<0&&(i=o,r=c,c=l,l=r),t=0;i;)t=(l[--i]=l[i]+c[i]+t)/Di|0,l[i]%=Di;for(t&&(l.unshift(t),++n),o=l.length;l[--o]==0;)l.pop();return e.d=l,e.e=Th(l,n),dt?nt(e,s,u):e};Me.precision=Me.sd=function(e){var t,r=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ns+e);return r.d?(t=V7(r.d),e&&r.e+1>t&&(t=r.e+1)):t=NaN,t};Me.round=function(){var e=this,t=e.constructor;return nt(new t(e),e.e+1,t.rounding)};Me.sine=Me.sin=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+ut,n.rounding=1,r=Aie(n,Y7(n,r)),n.precision=e,n.rounding=t,nt(Ka>2?r.neg():r,e,t,!0)):new n(NaN)};Me.squareRoot=Me.sqrt=function(){var e,t,r,n,i,a,o=this,s=o.d,u=o.e,l=o.s,c=o.constructor;if(l!==1||!s||!s[0])return new c(!l||l<0&&(!s||s[0])?NaN:s?o:1/0);for(dt=!1,l=Math.sqrt(+o),l==0||l==1/0?(t=jr(s),(t.length+u)%2==0&&(t+="0"),l=Math.sqrt(t),u=Zr((u+1)/2)-(u<0||u%2),l==1/0?t="5e"+u:(t=l.toExponential(),t=t.slice(0,t.indexOf("e")+1)+u),n=new c(t)):n=new c(l.toString()),r=(u=c.precision)+3;;)if(a=n,n=a.plus(Kt(o,a,r+2,1)).times(.5),jr(a.d).slice(0,r)===(t=jr(n.d)).slice(0,r))if(t=t.slice(r-3,r+1),t=="9999"||!i&&t=="4999"){if(!i&&(nt(a,u+1,0),a.times(a).eq(o))){n=a;break}r+=4,i=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(nt(n,u+1,1),e=!n.times(n).eq(o));break}return dt=!0,nt(n,u,c.rounding,e)};Me.tangent=Me.tan=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+10,n.rounding=1,r=r.sin(),r.s=1,r=Kt(r,new n(1).minus(r.times(r)).sqrt(),e+10,0),n.precision=e,n.rounding=t,nt(Ka==2||Ka==4?r.neg():r,e,t,!0)):new n(NaN)};Me.times=Me.mul=function(e){var t,r,n,i,a,o,s,u,l,c=this,f=c.constructor,d=c.d,p=(e=new f(e)).d;if(e.s*=c.s,!d||!d[0]||!p||!p[0])return new f(!e.s||d&&!d[0]&&!p||p&&!p[0]&&!d?NaN:!d||!p?e.s/0:e.s*0);for(r=Zr(c.e/ut)+Zr(e.e/ut),u=d.length,l=p.length,u<l&&(a=d,d=p,p=a,o=u,u=l,l=o),a=[],o=u+l,n=o;n--;)a.push(0);for(n=l;--n>=0;){for(t=0,i=u+n;i>n;)s=a[i]+p[n]*d[i-n-1]+t,a[i--]=s%Di|0,t=s/Di|0;a[i]=(a[i]+t)%Di|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=Th(a,r),dt?nt(e,f.precision,f.rounding):e};Me.toBinary=function(e,t){return Mg(this,2,e,t)};Me.toDecimalPlaces=Me.toDP=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(En(e,0,ls),t===void 0?t=n.rounding:En(t,0,8),nt(r,e+r.e+1,t))};Me.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=sa(n,!0):(En(e,0,ls),t===void 0?t=i.rounding:En(t,0,8),n=nt(new i(n),e+1,t),r=sa(n,!0,e+1)),n.isNeg()&&!n.isZero()?"-"+r:r};Me.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?r=sa(i):(En(e,0,ls),t===void 0?t=a.rounding:En(t,0,8),n=nt(new a(i),e+i.e+1,t),r=sa(n,!1,e+n.e+1)),i.isNeg()&&!i.isZero()?"-"+r:r};Me.toFraction=function(e){var t,r,n,i,a,o,s,u,l,c,f,d,p=this,h=p.d,b=p.constructor;if(!h)return new b(p);if(l=r=new b(1),n=u=new b(0),t=new b(n),a=t.e=V7(h)-p.e-1,o=a%ut,t.d[0]=xr(10,o<0?ut+o:o),e==null)e=a>0?t:l;else{if(s=new b(e),!s.isInt()||s.lt(l))throw Error(ns+s);e=s.gt(t)?a>0?t:l:s}for(dt=!1,s=new b(jr(h)),c=b.precision,b.precision=a=h.length*ut*2;f=Kt(s,t,0,1,1),i=r.plus(f.times(n)),i.cmp(e)!=1;)r=n,n=i,i=l,l=u.plus(f.times(i)),u=i,i=t,t=s.minus(f.times(i)),s=i;return i=Kt(e.minus(r),n,0,1,1),u=u.plus(i.times(l)),r=r.plus(i.times(n)),u.s=l.s=p.s,d=Kt(l,n,a,1).minus(p).abs().cmp(Kt(u,r,a,1).minus(p).abs())<1?[l,n]:[u,r],b.precision=c,dt=!0,d};Me.toHexadecimal=Me.toHex=function(e,t){return Mg(this,16,e,t)};Me.toNearest=function(e,t){var r=this,n=r.constructor;if(r=new n(r),e==null){if(!r.d)return r;e=new n(1),t=n.rounding}else{if(e=new n(e),t===void 0?t=n.rounding:En(t,0,8),!r.d)return e.s?r:e;if(!e.d)return e.s&&(e.s=r.s),e}return e.d[0]?(dt=!1,r=Kt(r,e,0,t,1).times(e),dt=!0,nt(r)):(e.s=r.s,r=e),r};Me.toNumber=function(){return+this};Me.toOctal=function(e,t){return Mg(this,8,e,t)};Me.toPower=Me.pow=function(e){var t,r,n,i,a,o,s=this,u=s.constructor,l=+(e=new u(e));if(!s.d||!e.d||!s.d[0]||!e.d[0])return new u(xr(+s,l));if(s=new u(s),s.eq(1))return s;if(n=u.precision,a=u.rounding,e.eq(1))return nt(s,n,a);if(t=Zr(e.e/ut),t>=e.d.length-1&&(r=l<0?-l:l)<=Eie)return i=K7(u,s,r,n),e.s<0?new u(1).div(i):nt(i,n,a);if(o=s.s,o<0){if(t<e.d.length-1)return new u(NaN);if((e.d[t]&1)==0&&(o=1),s.e==0&&s.d[0]==1&&s.d.length==1)return s.s=o,s}return r=xr(+s,l),t=r==0||!isFinite(r)?Zr(l*(Math.log("0."+jr(s.d))/Math.LN10+s.e+1)):new u(r+"").e,t>u.maxE+1||t<u.minE-1?new u(t>0?o/0:0):(dt=!1,u.rounding=s.s=1,r=Math.min(12,(t+"").length),i=p0(e.times(Io(s,n+r)),n),i.d&&(i=nt(i,n+5,1),$c(i.d,n,a)&&(t=n+10,i=nt(p0(e.times(Io(s,t+r)),t),t+5,1),+jr(i.d).slice(n+1,n+15)+1==1e14&&(i=nt(i,n+1,0)))),i.s=o,dt=!0,u.rounding=a,nt(i,n,a))};Me.toPrecision=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=sa(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(En(e,1,ls),t===void 0?t=i.rounding:En(t,0,8),n=nt(new i(n),e,t),r=sa(n,e<=n.e||n.e<=i.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+r:r};Me.toSignificantDigits=Me.toSD=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(En(e,1,ls),t===void 0?t=n.rounding:En(t,0,8)),nt(new n(r),e,t)};Me.toString=function(){var e=this,t=e.constructor,r=sa(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+r:r};Me.truncated=Me.trunc=function(){return nt(new this.constructor(this),this.e+1,1)};Me.valueOf=Me.toJSON=function(){var e=this,t=e.constructor,r=sa(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+r:r};function jr(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=ut-n.length,r&&(a+=Oo(r)),a+=n;o=e[t],n=o+"",r=ut-n.length,r&&(a+=Oo(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}function En(e,t,r){if(e!==~~e||e<t||e>r)throw Error(ns+e)}function $c(e,t,r,n){var i,a,o,s;for(a=e[0];a>=10;a/=10)--t;return--t<0?(t+=ut,i=0):(i=Math.ceil((t+1)/ut),t%=ut),a=xr(10,ut-t),s=e[i]%a|0,n==null?t<3?(t==0?s=s/100|0:t==1&&(s=s/10|0),o=r<4&&s==99999||r>3&&s==49999||s==5e4||s==0):o=(r<4&&s+1==a||r>3&&s+1==a/2)&&(e[i+1]/a/100|0)==xr(10,t-2)-1||(s==a/2||s==0)&&(e[i+1]/a/100|0)==0:t<4?(t==0?s=s/1e3|0:t==1?s=s/100|0:t==2&&(s=s/10|0),o=(n||r<4)&&s==9999||!n&&r>3&&s==4999):o=((n||r<4)&&s+1==a||!n&&r>3&&s+1==a/2)&&(e[i+1]/a/1e3|0)==xr(10,t-3)-1,o}function xd(e,t,r){for(var n,i=[0],a,o=0,s=e.length;o<s;){for(a=i.length;a--;)i[a]*=t;for(i[0]+=c0.indexOf(e.charAt(o++)),n=0;n<i.length;n++)i[n]>r-1&&(i[n+1]===void 0&&(i[n+1]=0),i[n+1]+=i[n]/r|0,i[n]%=r)}return i.reverse()}function Sie(e,t){var r,n,i;if(t.isZero())return t;n=t.d.length,n<32?(r=Math.ceil(n/3),i=(1/kh(4,r)).toString()):(r=16,i="2.3283064365386962890625e-10"),e.precision+=r,t=al(e,1,t.times(i),new e(1));for(var a=r;a--;){var o=t.times(t);t=o.times(o).minus(o).times(8).plus(1)}return e.precision-=r,t}var Kt=function(){function e(n,i,a){var o,s=0,u=n.length;for(n=n.slice();u--;)o=n[u]*i+s,n[u]=o%a|0,s=o/a|0;return s&&n.unshift(s),n}function t(n,i,a,o){var s,u;if(a!=o)u=a>o?1:-1;else for(s=u=0;s<a;s++)if(n[s]!=i[s]){u=n[s]>i[s]?1:-1;break}return u}function r(n,i,a,o){for(var s=0;a--;)n[a]-=s,s=n[a]<i[a]?1:0,n[a]=s*o+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o,s,u){var l,c,f,d,p,h,b,g,v,S,w,D,_,N,$,k,K,G,j,q,re=n.constructor,M=n.s==i.s?1:-1,U=n.d,x=i.d;if(!U||!U[0]||!x||!x[0])return new re(!n.s||!i.s||(U?x&&U[0]==x[0]:!x)?NaN:U&&U[0]==0||!x?M*0:M/0);for(u?(p=1,c=n.e-i.e):(u=Di,p=ut,c=Zr(n.e/p)-Zr(i.e/p)),j=x.length,K=U.length,v=new re(M),S=v.d=[],f=0;x[f]==(U[f]||0);f++);if(x[f]>(U[f]||0)&&c--,a==null?(N=a=re.precision,o=re.rounding):s?N=a+(n.e-i.e)+1:N=a,N<0)S.push(1),h=!0;else{if(N=N/p+2|0,f=0,j==1){for(d=0,x=x[0],N++;(f<K||d)&&N--;f++)$=d*u+(U[f]||0),S[f]=$/x|0,d=$%x|0;h=d||f<K}else{for(d=u/(x[0]+1)|0,d>1&&(x=e(x,d,u),U=e(U,d,u),j=x.length,K=U.length),k=j,w=U.slice(0,j),D=w.length;D<j;)w[D++]=0;q=x.slice(),q.unshift(0),G=x[0],x[1]>=u/2&&++G;do d=0,l=t(x,w,j,D),l<0?(_=w[0],j!=D&&(_=_*u+(w[1]||0)),d=_/G|0,d>1?(d>=u&&(d=u-1),b=e(x,d,u),g=b.length,D=w.length,l=t(b,w,g,D),l==1&&(d--,r(b,j<g?q:x,g,u))):(d==0&&(l=d=1),b=x.slice()),g=b.length,g<D&&b.unshift(0),r(w,b,D,u),l==-1&&(D=w.length,l=t(x,w,j,D),l<1&&(d++,r(w,j<D?q:x,D,u))),D=w.length):l===0&&(d++,w=[0]),S[f++]=d,l&&w[0]?w[D++]=U[k]||0:(w=[U[k]],D=1);while((k++<K||w[0]!==void 0)&&N--);h=w[0]!==void 0}S[0]||S.shift()}if(p==1)v.e=c,j7=h;else{for(f=1,d=S[0];d>=10;d/=10)f++;v.e=f+c*p-1,nt(v,s?a+v.e+1:a,o,h)}return v}}();function nt(e,t,r,n){var i,a,o,s,u,l,c,f,d,p=e.constructor;e:if(t!=null){if(f=e.d,!f)return e;for(i=1,s=f[0];s>=10;s/=10)i++;if(a=t-i,a<0)a+=ut,o=t,c=f[d=0],u=c/xr(10,i-o-1)%10|0;else if(d=Math.ceil((a+1)/ut),s=f.length,d>=s)if(n){for(;s++<=d;)f.push(0);c=u=0,i=1,a%=ut,o=a-ut+1}else break e;else{for(c=s=f[d],i=1;s>=10;s/=10)i++;a%=ut,o=a-ut+i,u=o<0?0:c/xr(10,i-o-1)%10|0}if(n=n||t<0||f[d+1]!==void 0||(o<0?c:c%xr(10,i-o-1)),l=r<4?(u||n)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||n||r==6&&(a>0?o>0?c/xr(10,i-o):0:f[d-1])%10&1||r==(e.s<0?8:7)),t<1||!f[0])return f.length=0,l?(t-=e.e+1,f[0]=xr(10,(ut-t%ut)%ut),e.e=-t||0):f[0]=e.e=0,e;if(a==0?(f.length=d,s=1,d--):(f.length=d+1,s=xr(10,ut-a),f[d]=o>0?(c/xr(10,i-o)%xr(10,o)|0)*s:0),l)for(;;)if(d==0){for(a=1,o=f[0];o>=10;o/=10)a++;for(o=f[0]+=s,s=1;o>=10;o/=10)s++;a!=s&&(e.e++,f[0]==Di&&(f[0]=1));break}else{if(f[d]+=s,f[d]!=Di)break;f[d--]=0,s=1}for(a=f.length;f[--a]===0;)f.pop()}return dt&&(e.e>p.maxE?(e.d=null,e.e=NaN):e.e<p.minE&&(e.e=0,e.d=[0])),e}function sa(e,t,r){if(!e.isFinite())return W7(e);var n,i=e.e,a=jr(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Oo(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(e.e<0?"e":"e+")+e.e):i<0?(a="0."+Oo(-i-1)+a,r&&(n=r-o)>0&&(a+=Oo(n))):i>=o?(a+=Oo(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Oo(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Oo(n))),a}function Th(e,t){var r=e[0];for(t*=ut;r>=10;r/=10)t++;return t}function gp(e,t,r){if(t>Die)throw dt=!0,r&&(e.precision=r),Error(U7);return nt(new e(mp),t,1,!0)}function _i(e,t,r){if(t>d0)throw Error(U7);return nt(new e(vp),t,r,!0)}function V7(e){var t=e.length-1,r=t*ut+1;if(t=e[t],t){for(;t%10==0;t/=10)r--;for(t=e[0];t>=10;t/=10)r++}return r}function Oo(e){for(var t="";e--;)t+="0";return t}function K7(e,t,r,n){var i,a=new e(1),o=Math.ceil(n/ut+4);for(dt=!1;;){if(r%2&&(a=a.times(t),z3(a.d,o)&&(i=!0)),r=Zr(r/2),r===0){r=a.d.length-1,i&&a.d[r]===0&&++a.d[r];break}t=t.times(t),z3(t.d,o)}return dt=!0,a}function U3(e){return e.d[e.d.length-1]&1}function G7(e,t,r){for(var n,i=new e(t[0]),a=0;++a<t.length;)if(n=new e(t[a]),n.s)i[r](n)&&(i=n);else{i=n;break}return i}function p0(e,t){var r,n,i,a,o,s,u,l=0,c=0,f=0,d=e.constructor,p=d.rounding,h=d.precision;if(!e.d||!e.d[0]||e.e>17)return new d(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:0/0);for(t==null?(dt=!1,u=h):u=t,s=new d(.03125);e.e>-2;)e=e.times(s),f+=5;for(n=Math.log(xr(2,f))/Math.LN10*2+5|0,u+=n,r=a=o=new d(1),d.precision=u;;){if(a=nt(a.times(e),u,1),r=r.times(++c),s=o.plus(Kt(a,r,u,1)),jr(s.d).slice(0,u)===jr(o.d).slice(0,u)){for(i=f;i--;)o=nt(o.times(o),u,1);if(t==null)if(l<3&&$c(o.d,u-n,p,l))d.precision=u+=10,r=a=s=new d(1),c=0,l++;else return nt(o,d.precision=h,p,dt=!0);else return d.precision=h,o}o=s}}function Io(e,t){var r,n,i,a,o,s,u,l,c,f,d,p=1,h=10,b=e,g=b.d,v=b.constructor,S=v.rounding,w=v.precision;if(b.s<0||!g||!g[0]||!b.e&&g[0]==1&&g.length==1)return new v(g&&!g[0]?-1/0:b.s!=1?NaN:g?0:b);if(t==null?(dt=!1,c=w):c=t,v.precision=c+=h,r=jr(g),n=r.charAt(0),Math.abs(a=b.e)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)b=b.times(e),r=jr(b.d),n=r.charAt(0),p++;a=b.e,n>1?(b=new v("0."+r),a++):b=new v(n+"."+r.slice(1))}else return l=gp(v,c+2,w).times(a+""),b=Io(new v(n+"."+r.slice(1)),c-h).plus(l),v.precision=w,t==null?nt(b,w,S,dt=!0):b;for(f=b,u=o=b=Kt(b.minus(1),b.plus(1),c,1),d=nt(b.times(b),c,1),i=3;;){if(o=nt(o.times(d),c,1),l=u.plus(Kt(o,new v(i),c,1)),jr(l.d).slice(0,c)===jr(u.d).slice(0,c))if(u=u.times(2),a!==0&&(u=u.plus(gp(v,c+2,w).times(a+""))),u=Kt(u,new v(p),c,1),t==null)if($c(u.d,c-h,S,s))v.precision=c+=h,l=o=b=Kt(f.minus(1),f.plus(1),c,1),d=nt(b.times(b),c,1),i=s=1;else return nt(u,v.precision=w,S,dt=!0);else return v.precision=w,u;u=l,i+=2}}function W7(e){return String(e.s*e.s/0)}function h0(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;n++);for(i=t.length;t.charCodeAt(i-1)===48;--i);if(t=t.slice(n,i),t){if(i-=n,e.e=r=r-n-1,e.d=[],n=(r+1)%ut,r<0&&(n+=ut),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=ut;n<i;)e.d.push(+t.slice(n,n+=ut));t=t.slice(n),n=ut-t.length}else n-=i;for(;n--;)t+="0";e.d.push(+t),dt&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function Cie(e,t){var r,n,i,a,o,s,u,l,c;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),H7.test(t))return h0(e,t)}else if(t==="Infinity"||t==="NaN")return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(_ie.test(t))r=16,t=t.toLowerCase();else if(wie.test(t))r=2;else if(xie.test(t))r=8;else throw Error(ns+t);for(a=t.search(/p/i),a>0?(u=+t.slice(a+1),t=t.substring(2,a)):t=t.slice(2),a=t.indexOf("."),o=a>=0,n=e.constructor,o&&(t=t.replace(".",""),s=t.length,a=s-a,i=K7(n,new n(r),a,a*2)),l=xd(t,r,Di),c=l.length-1,a=c;l[a]===0;--a)l.pop();return a<0?new n(e.s*0):(e.e=Th(l,c),e.d=l,dt=!1,o&&(e=Kt(e,i,s*4)),u&&(e=e.times(Math.abs(u)<54?xr(2,u):Oh.pow(2,u))),dt=!0,e)}function Aie(e,t){var r,n=t.d.length;if(n<3)return t.isZero()?t:al(e,2,t,t);r=1.4*Math.sqrt(n),r=r>16?16:r|0,t=t.times(1/kh(5,r)),t=al(e,2,t,t);for(var i,a=new e(5),o=new e(16),s=new e(20);r--;)i=t.times(t),t=t.times(a.plus(i.times(o.times(i).minus(s))));return t}function al(e,t,r,n,i){var a,o,s,u,l=e.precision,c=Math.ceil(l/ut);for(dt=!1,u=r.times(r),s=new e(n);;){if(o=Kt(s.times(u),new e(t++*t++),l,1),s=i?n.plus(o):n.minus(o),n=Kt(o.times(u),new e(t++*t++),l,1),o=s.plus(n),o.d[c]!==void 0){for(a=c;o.d[a]===s.d[a]&&a--;);if(a==-1)break}a=s,s=n,n=o,o=a}return dt=!0,o.d.length=c+1,o}function kh(e,t){for(var r=e;--t;)r*=e;return r}function Y7(e,t){var r,n=t.s<0,i=_i(e,e.precision,1),a=i.times(.5);if(t=t.abs(),t.lte(a))return Ka=n?4:1,t;if(r=t.divToInt(i),r.isZero())Ka=n?3:2;else{if(t=t.minus(r.times(i)),t.lte(a))return Ka=U3(r)?n?2:3:n?4:1,t;Ka=U3(r)?n?1:4:n?3:2}return t.minus(i).abs()}function Mg(e,t,r,n){var i,a,o,s,u,l,c,f,d,p=e.constructor,h=r!==void 0;if(h?(En(r,1,ls),n===void 0?n=p.rounding:En(n,0,8)):(r=p.precision,n=p.rounding),!e.isFinite())c=W7(e);else{for(c=sa(e),o=c.indexOf("."),h?(i=2,t==16?r=r*4-3:t==8&&(r=r*3-2)):i=t,o>=0&&(c=c.replace(".",""),d=new p(1),d.e=c.length-o,d.d=xd(sa(d),10,i),d.e=d.d.length),f=xd(c,10,i),a=u=f.length;f[--u]==0;)f.pop();if(!f[0])c=h?"0p+0":"0";else{if(o<0?a--:(e=new p(e),e.d=f,e.e=a,e=Kt(e,d,r,n,0,i),f=e.d,a=e.e,l=j7),o=f[r],s=i/2,l=l||f[r+1]!==void 0,l=n<4?(o!==void 0||l)&&(n===0||n===(e.s<0?3:2)):o>s||o===s&&(n===4||l||n===6&&f[r-1]&1||n===(e.s<0?8:7)),f.length=r,l)for(;++f[--r]>i-1;)f[r]=0,r||(++a,f.unshift(1));for(u=f.length;!f[u-1];--u);for(o=0,c="";o<u;o++)c+=c0.charAt(f[o]);if(h){if(u>1)if(t==16||t==8){for(o=t==16?4:3,--u;u%o;u++)c+="0";for(f=xd(c,i,t),u=f.length;!f[u-1];--u);for(o=1,c="1.";o<u;o++)c+=c0.charAt(f[o])}else c=c.charAt(0)+"."+c.slice(1);c=c+(a<0?"p":"p+")+a}else if(a<0){for(;++a;)c="0"+c;c="0."+c}else if(++a>u)for(a-=u;a--;)c+="0";else a<u&&(c=c.slice(0,a)+"."+c.slice(a))}c=(t==16?"0x":t==2?"0b":t==8?"0o":"")+c}return e.s<0?"-"+c:c}function z3(e,t){if(e.length>t)return e.length=t,!0}function Nie(e){return new this(e).abs()}function Tie(e){return new this(e).acos()}function kie(e){return new this(e).acosh()}function Oie(e,t){return new this(e).plus(t)}function Fie(e){return new this(e).asin()}function $ie(e){return new this(e).asinh()}function Bie(e){return new this(e).atan()}function Pie(e){return new this(e).atanh()}function Iie(e,t){e=new this(e),t=new this(t);var r,n=this.precision,i=this.rounding,a=n+4;return!e.s||!t.s?r=new this(NaN):!e.d&&!t.d?(r=_i(this,a,1).times(t.s>0?.25:.75),r.s=e.s):!t.d||e.isZero()?(r=t.s<0?_i(this,n,i):new this(0),r.s=e.s):!e.d||t.isZero()?(r=_i(this,a,1).times(.5),r.s=e.s):t.s<0?(this.precision=a,this.rounding=1,r=this.atan(Kt(e,t,a,1)),t=_i(this,a,1),this.precision=n,this.rounding=i,r=e.s<0?r.minus(t):r.plus(t)):r=this.atan(Kt(e,t,a,1)),r}function Mie(e){return new this(e).cbrt()}function Rie(e){return nt(e=new this(e),e.e+1,2)}function Lie(e,t,r){return new this(e).clamp(t,r)}function jie(e){if(!e||typeof e!="object")throw Error(Nh+"Object expected");var t,r,n,i=e.defaults===!0,a=["precision",1,ls,"rounding",0,8,"toExpNeg",-Tu,0,"toExpPos",0,Tu,"maxE",0,Tu,"minE",-Tu,0,"modulo",0,9];for(t=0;t<a.length;t+=3)if(r=a[t],i&&(this[r]=f0[r]),(n=e[r])!==void 0)if(Zr(n)===n&&n>=a[t+1]&&n<=a[t+2])this[r]=n;else throw Error(ns+r+": "+n);if(r="crypto",i&&(this[r]=f0[r]),(n=e[r])!==void 0)if(n===!0||n===!1||n===0||n===1)if(n)if(typeof crypto!="undefined"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[r]=!0;else throw Error(z7);else this[r]=!1;else throw Error(ns+r+": "+n);return this}function Uie(e){return new this(e).cos()}function zie(e){return new this(e).cosh()}function Z7(e){var t,r,n;function i(a){var o,s,u,l=this;if(!(l instanceof i))return new i(a);if(l.constructor=i,q3(a)){l.s=a.s,dt?!a.d||a.e>i.maxE?(l.e=NaN,l.d=null):a.e<i.minE?(l.e=0,l.d=[0]):(l.e=a.e,l.d=a.d.slice()):(l.e=a.e,l.d=a.d?a.d.slice():a.d);return}if(u=typeof a,u==="number"){if(a===0){l.s=1/a<0?-1:1,l.e=0,l.d=[0];return}if(a<0?(a=-a,l.s=-1):l.s=1,a===~~a&&a<1e7){for(o=0,s=a;s>=10;s/=10)o++;dt?o>i.maxE?(l.e=NaN,l.d=null):o<i.minE?(l.e=0,l.d=[0]):(l.e=o,l.d=[a]):(l.e=o,l.d=[a]);return}else if(a*0!==0){a||(l.s=NaN),l.e=NaN,l.d=null;return}return h0(l,a.toString())}else if(u!=="string")throw Error(ns+a);return(s=a.charCodeAt(0))===45?(a=a.slice(1),l.s=-1):(s===43&&(a=a.slice(1)),l.s=1),H7.test(a)?h0(l,a):Cie(l,a)}if(i.prototype=Me,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.EUCLID=9,i.config=i.set=jie,i.clone=Z7,i.isDecimal=q3,i.abs=Nie,i.acos=Tie,i.acosh=kie,i.add=Oie,i.asin=Fie,i.asinh=$ie,i.atan=Bie,i.atanh=Pie,i.atan2=Iie,i.cbrt=Mie,i.ceil=Rie,i.clamp=Lie,i.cos=Uie,i.cosh=zie,i.div=qie,i.exp=Hie,i.floor=Vie,i.hypot=Kie,i.ln=Gie,i.log=Wie,i.log10=Zie,i.log2=Yie,i.max=Jie,i.min=Xie,i.mod=Qie,i.mul=eae,i.pow=tae,i.random=rae,i.round=nae,i.sign=iae,i.sin=aae,i.sinh=oae,i.sqrt=sae,i.sub=uae,i.sum=lae,i.tan=cae,i.tanh=fae,i.trunc=dae,e===void 0&&(e={}),e&&e.defaults!==!0)for(n=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function qie(e,t){return new this(e).div(t)}function Hie(e){return new this(e).exp()}function Vie(e){return nt(e=new this(e),e.e+1,3)}function Kie(){var e,t,r=new this(0);for(dt=!1,e=0;e<arguments.length;)if(t=new this(arguments[e++]),t.d)r.d&&(r=r.plus(t.times(t)));else{if(t.s)return dt=!0,new this(1/0);r=t}return dt=!0,r.sqrt()}function q3(e){return e instanceof Oh||e&&e.toStringTag===q7||!1}function Gie(e){return new this(e).ln()}function Wie(e,t){return new this(e).log(t)}function Yie(e){return new this(e).log(2)}function Zie(e){return new this(e).log(10)}function Jie(){return G7(this,arguments,"lt")}function Xie(){return G7(this,arguments,"gt")}function Qie(e,t){return new this(e).mod(t)}function eae(e,t){return new this(e).mul(t)}function tae(e,t){return new this(e).pow(t)}function rae(e){var t,r,n,i,a=0,o=new this(1),s=[];if(e===void 0?e=this.precision:En(e,1,ls),n=Math.ceil(e/ut),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(n));a<n;)i=t[a],i>=429e7?t[a]=crypto.getRandomValues(new Uint32Array(1))[0]:s[a++]=i%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(n*=4);a<n;)i=t[a]+(t[a+1]<<8)+(t[a+2]<<16)+((t[a+3]&127)<<24),i>=214e7?crypto.randomBytes(4).copy(t,a):(s.push(i%1e7),a+=4);a=n/4}else throw Error(z7);else for(;a<n;)s[a++]=Math.random()*1e7|0;for(n=s[--a],e%=ut,n&&e&&(i=xr(10,ut-e),s[a]=(n/i|0)*i);s[a]===0;a--)s.pop();if(a<0)r=0,s=[0];else{for(r=-1;s[0]===0;r-=ut)s.shift();for(n=1,i=s[0];i>=10;i/=10)n++;n<ut&&(r-=ut-n)}return o.e=r,o.d=s,o}function nae(e){return nt(e=new this(e),e.e+1,this.rounding)}function iae(e){return e=new this(e),e.d?e.d[0]?e.s:0*e.s:e.s||NaN}function aae(e){return new this(e).sin()}function oae(e){return new this(e).sinh()}function sae(e){return new this(e).sqrt()}function uae(e,t){return new this(e).sub(t)}function lae(){var e=0,t=arguments,r=new this(t[e]);for(dt=!1;r.s&&++e<t.length;)r=r.plus(t[e]);return dt=!0,nt(r,this.precision,this.rounding)}function cae(e){return new this(e).tan()}function fae(e){return new this(e).tanh()}function dae(e){return nt(e=new this(e),e.e+1,1)}Me[Symbol.for("nodejs.util.inspect.custom")]=Me.toString;Me[Symbol.toStringTag]="Decimal";var Oh=Me.constructor=Z7(f0);mp=new Oh(mp);vp=new Oh(vp);function J7(e){var t=e.length,r=e[0].length,n,i,a=[];for(i=0;i<r;i++){var o=[];for(n=0;n<t;n++)o.push(e[n][i]);a.push(o)}return a}function Dl(e){for(var t=0;t<e.length;t++)if(es(e[t]))return!0;return!1}function no(e,t){on(e)&&(e=e.valueOf());for(var r=0,n=e.length;r<n;r++){var i=e[r];Array.isArray(i)?no(i,t):t(i)}}function ti(e,t,r){return e&&typeof e.map=="function"?e.map(function(n){return ti(n,t)}):t(e)}function Fh(e,t,r){var n=Array.isArray(e)?eu(e):e.size();if(t<0||t>=n.length)throw new ha(t,n.length);return on(e)?e.create(yp(e.valueOf(),t,r)):yp(e,t,r)}function yp(e,t,r){var n,i,a,o;if(t<=0)if(Array.isArray(e[0])){for(o=J7(e),i=[],n=0;n<o.length;n++)i[n]=yp(o[n],t-1,r);return i}else{for(a=e[0],n=1;n<e.length;n++)a=r(a,e[n]);return a}else{for(i=[],n=0;n<e.length;n++)i[n]=yp(e[n],t-1,r);return i}}var H3="ceil",pae=ke(H3,["typed","config","round"],e=>{var{typed:t,config:r,round:n}=e;return t(H3,{number:function(a){return oa(a,n(a),r.epsilon)?n(a):Math.ceil(a)},"number, number":function(a,o){if(oa(a,n(a,o),r.epsilon))return n(a,o);var[s,u]="".concat(a,"e").split("e"),l=Math.ceil(Number("".concat(s,"e").concat(Number(u)+o)));return[s,u]="".concat(l,"e").split("e"),Number("".concat(s,"e").concat(Number(u)-o))}})}),V3="fix",hae=ke(V3,["typed","ceil","floor"],e=>{var{typed:t,ceil:r,floor:n}=e;return t(V3,{number:function(a){return a>0?n(a):r(a)},"number, number":function(a,o){return a>0?n(a,o):r(a,o)}})}),K3="floor",mae=ke(K3,["typed","config","round"],e=>{var{typed:t,config:r,round:n}=e;return t(K3,{number:function(a){return oa(a,n(a),r.epsilon)?n(a):Math.floor(a)},"number, number":function(a,o){if(oa(a,n(a,o),r.epsilon))return n(a,o);var[s,u]="".concat(a,"e").split("e"),l=Math.floor(Number("".concat(s,"e").concat(Number(u)+o)));return[s,u]="".concat(l,"e").split("e"),Number("".concat(s,"e").concat(Number(u)-o))}})}),G3="hypot",vae=["typed","abs","addScalar","divideScalar","multiplyScalar","sqrt","smaller","isPositive"],gae=ke(G3,vae,e=>{var{typed:t,abs:r,addScalar:n,divideScalar:i,multiplyScalar:a,sqrt:o,smaller:s,isPositive:u}=e;return t(G3,{"... number | BigNumber":l,Array:l,Matrix:c=>l(Us(c.toArray()))});function l(c){for(var f=0,d=0,p=0;p<c.length;p++){if(wl(c[p]))throw new TypeError("Unexpected type of argument to hypot");var h=r(c[p]);s(d,h)?(f=a(f,a(i(d,h),i(d,h))),f=n(f,1),d=h):f=n(f,u(h)?a(i(h,d),i(h,d)):h)}return a(d,o(f))}}),W3="stirlingS2",yae=["typed","addScalar","subtract","multiplyScalar","divideScalar","pow","factorial","combinations","isNegative","isInteger","number","?bignumber","larger"],bae=ke(W3,yae,e=>{var{typed:t,addScalar:r,subtract:n,multiplyScalar:i,divideScalar:a,pow:o,factorial:s,combinations:u,isNegative:l,isInteger:c,number:f,bignumber:d,larger:p}=e,h=[],b=[];return t(W3,{"number | BigNumber, number | BigNumber":function(v,S){if(!c(v)||l(v)||!c(S)||l(S))throw new TypeError("Non-negative integer value expected in function stirlingS2");if(p(S,v))throw new TypeError("k must be less than or equal to n in function stirlingS2");var w=!(an(v)&&an(S)),D=w?b:h,_=w?d:f,N=f(v),$=f(S);if(D[N]&&D[N].length>$)return D[N][$];for(var k=0;k<=N;++k)if(D[k]||(D[k]=[_(k===0?1:0)]),k!==0)for(var K=D[k],G=D[k-1],j=K.length;j<=k&&j<=$;++j)j===k?K[j]=1:K[j]=r(i(_(j),G[j]),G[j-1]);return D[N][$]}})}),Y3="bellNumbers",wae=["typed","addScalar","isNegative","isInteger","stirlingS2"],_ae=ke(Y3,wae,e=>{var{typed:t,addScalar:r,isNegative:n,isInteger:i,stirlingS2:a}=e;return t(Y3,{"number | BigNumber":function(s){if(!i(s)||n(s))throw new TypeError("Non-negative integer value expected in function bellNumbers");for(var u=0,l=0;l<=s;l++)u=r(u,a(s,l));return u}})}),Z3="catalan",xae=["typed","addScalar","divideScalar","multiplyScalar","combinations","isNegative","isInteger"],Eae=ke(Z3,xae,e=>{var{typed:t,addScalar:r,divideScalar:n,multiplyScalar:i,combinations:a,isNegative:o,isInteger:s}=e;return t(Z3,{"number | BigNumber":function(l){if(!s(l)||o(l))throw new TypeError("Non-negative integer value expected in function catalan");return n(a(i(l,2),l),r(l,1))}})}),J3="composition",Dae=["typed","addScalar","combinations","isNegative","isPositive","isInteger","larger"],Sae=ke(J3,Dae,e=>{var{typed:t,addScalar:r,combinations:n,isPositive:i,isNegative:a,isInteger:o,larger:s}=e;return t(J3,{"number | BigNumber, number | BigNumber":function(l,c){if(!o(l)||!i(l)||!o(c)||!i(c))throw new TypeError("Positive integer value expected in function composition");if(s(c,l))throw new TypeError("k must be less than or equal to n in function composition");return n(r(l,-1),r(c,-1))}})}),Cae="11.0.1";function Aae(e){var t=0,r=1,n=Object.create(null),i=Object.create(null),a=0,o=function(u){var l=i[u];if(!!l&&(delete n[l],delete i[u],--t,r===l)){if(!t){a=0,r=1;return}for(;!hasOwnProperty.call(n,++r););}};return e=Math.abs(e),{hit:function(u){var l=i[u],c=++a;if(n[c]=u,i[u]=c,!l)return++t,t<=e?void 0:(u=n[r],o(u),u);if(delete n[l],r===l)for(;!hasOwnProperty.call(n,++r););},delete:o,clear:function(){t=a=0,r=1,n=Object.create(null),i=Object.create(null)}}}function $h(e){var{hasher:t,limit:r}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return r=r==null?Number.POSITIVE_INFINITY:r,t=t==null?JSON.stringify:t,function n(){typeof n.cache!="object"&&(n.cache={values:new Map,lru:Aae(r||Number.POSITIVE_INFINITY)});for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var o=t(i);if(n.cache.values.has(o))return n.cache.lru.hit(o),n.cache.values.get(o);var s=e.apply(e,i);return n.cache.values.set(o,s),n.cache.values.delete(n.cache.lru.hit(o)),s}}function Sl(e){return Object.keys(e.signatures||{}).reduce(function(t,r){var n=(r.match(/,/g)||[]).length+1;return Math.max(t,n)},-1)}var Nae=$h(function(e){return new e(1).exp()},{hasher:Bh}),Tae=$h(function(e){return new e(1).plus(new e(5).sqrt()).div(2)},{hasher:Bh}),X7=$h(function(e){return e.acos(-1)},{hasher:Bh}),kae=$h(function(e){return X7(e).times(2)},{hasher:Bh});function Bh(e){return e[0].precision}var Oae=ke("true",[],()=>!0),Fae=ke("false",[],()=>!1),$ae=ke("null",[],()=>null),Bae=ni("Infinity",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return t.number==="BigNumber"?new r(1/0):1/0}),Pae=ni("NaN",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return t.number==="BigNumber"?new r(NaN):NaN}),Iae=ni("pi",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return t.number==="BigNumber"?X7(r):JX}),Mae=ni("tau",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return t.number==="BigNumber"?kae(r):XX}),Rae=ni("e",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return t.number==="BigNumber"?Nae(r):QX}),Lae=ni("phi",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return t.number==="BigNumber"?Tae(r):eQ}),jae=ni("LN2",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return t.number==="BigNumber"?new r(2).ln():Math.LN2}),Uae=ni("LN10",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return t.number==="BigNumber"?new r(10).ln():Math.LN10}),zae=ni("LOG2E",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return t.number==="BigNumber"?new r(1).div(new r(2).ln()):Math.LOG2E}),qae=ni("LOG10E",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return t.number==="BigNumber"?new r(1).div(new r(10).ln()):Math.LOG10E}),Hae=ni("SQRT1_2",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return t.number==="BigNumber"?new r("0.5").sqrt():Math.SQRT1_2}),Vae=ni("SQRT2",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return t.number==="BigNumber"?new r(2).sqrt():Math.SQRT2}),Kae=ke("PI",["pi"],e=>{var{pi:t}=e;return t}),Gae=ke("E",["e"],e=>{var{e:t}=e;return t}),Wae=ke("version",[],()=>Cae);function ni(e,t,r){return ke(e,t,r,{recreateOnConfigChange:!0})}var Yae="number",Zae=["typed"];function Jae(e){var t=e.match(/(0[box])([0-9a-fA-F]*)\.([0-9a-fA-F]*)/);if(t){var r={"0b":2,"0o":8,"0x":16}[t[1]],n=t[2],i=t[3];return{input:e,radix:r,integerPart:n,fractionalPart:i}}else return null}function Xae(e){for(var t=parseInt(e.integerPart,e.radix),r=0,n=0;n<e.fractionalPart.length;n++){var i=parseInt(e.fractionalPart[n],e.radix);r+=i/Math.pow(e.radix,n+1)}var a=t+r;if(isNaN(a))throw new SyntaxError('String "'+e.input+'" is no valid number');return a}var Qae=ke(Yae,Zae,e=>{var{typed:t}=e,r=t("number",{"":function(){return 0},number:function(i){return i},string:function(i){if(i==="NaN")return NaN;var a=Jae(i);if(a)return Xae(a);var o=0,s=i.match(/(0[box][0-9a-fA-F]*)i([0-9]*)/);s&&(o=Number(s[2]),i=s[1]);var u=Number(i);if(isNaN(u))throw new SyntaxError('String "'+i+'" is no valid number');if(s){if(u>2**o-1)throw new SyntaxError('String "'.concat(i,'" is out of range'));u>=2**(o-1)&&(u=u-2**o)}return u},BigNumber:function(i){return i.toNumber()},Fraction:function(i){return i.valueOf()},Unit:function(i){throw new Error("Second argument with valueless unit expected")},null:function(i){return 0},"Unit, string | Unit":function(i,a){return i.toNumber(a)},"Array | Matrix":t.referToSelf(n=>i=>ti(i,n))});return r.fromJSON=function(n){return parseFloat(n.value)},r}),X3="string",eoe=["typed"],toe=ke(X3,eoe,e=>{var{typed:t}=e;return t(X3,{"":function(){return""},number:dc,null:function(n){return"null"},boolean:function(n){return n+""},string:function(n){return n},"Array | Matrix":t.referToSelf(r=>n=>ti(n,r)),any:function(n){return String(n)}})}),Q3="boolean",roe=["typed"],noe=ke(Q3,roe,e=>{var{typed:t}=e;return t(Q3,{"":function(){return!1},boolean:function(n){return n},number:function(n){return!!n},null:function(n){return!1},BigNumber:function(n){return!n.isZero()},string:function(n){var i=n.toLowerCase();if(i==="true")return!0;if(i==="false")return!1;var a=Number(n);if(n!==""&&!isNaN(a))return!!a;throw new Error('Cannot convert "'+n+'" to a boolean')},"Array | Matrix":t.referToSelf(r=>n=>ti(n,r))})}),ew="parser",ioe=["typed","Parser"],aoe=ke(ew,ioe,e=>{var{typed:t,Parser:r}=e;return t(ew,{"":function(){return new r}})}),Q7=new Set(["end"]),ooe="Node",soe=["mathWithTransform"],uoe=ke(ooe,soe,e=>{var{mathWithTransform:t}=e;function r(i){for(var a of[...Q7])if(i.has(a))throw new Error('Scope contains an illegal symbol, "'+a+'" is a reserved keyword')}class n{get type(){return"Node"}get isNode(){return!0}evaluate(a){return this.compile().evaluate(a)}compile(){var a=this._compile(t,{}),o={},s=null;function u(l){var c=Ru(l);return r(c),a(c,o,s)}return{evaluate:u}}_compile(a,o){throw new Error("Method _compile must be implemented by type "+this.type)}forEach(a){throw new Error("Cannot run forEach on a Node interface")}map(a){throw new Error("Cannot run map on a Node interface")}_ifNode(a){if(!Ot(a))throw new TypeError("Callback function must return a Node");return a}traverse(a){a(this,null,null);function o(s,u){s.forEach(function(l,c,f){u(l,c,f),o(l,u)})}o(this,a)}transform(a){function o(s,u,l){var c=a(s,u,l);return c!==s?c:s.map(o)}return o(this,null,null)}filter(a){var o=[];return this.traverse(function(s,u,l){a(s,u,l)&&o.push(s)}),o}clone(){throw new Error("Cannot clone a Node interface")}cloneDeep(){return this.map(function(a){return a.cloneDeep()})}equals(a){return a?this.type===a.type&&u0(this,a):!1}toString(a){var o=this._getCustomString(a);return typeof o!="undefined"?o:this._toString(a)}toJSON(){throw new Error("Cannot serialize object: toJSON not implemented by "+this.type)}toHTML(a){var o=this._getCustomString(a);return typeof o!="undefined"?o:this.toHTML(a)}_toString(){throw new Error("_toString not implemented for "+this.type)}toTex(a){var o=this._getCustomString(a);return typeof o!="undefined"?o:this._toTex(a)}_toTex(a){throw new Error("_toTex not implemented for "+this.type)}_getCustomString(a){if(a&&typeof a=="object")switch(typeof a.handler){case"object":case"undefined":return;case"function":return a.handler(this,a);default:throw new TypeError("Object or function expected as callback")}}getIdentifier(){return this.type}getContent(){return this}}return n},{isClass:!0,isNode:!0});function ma(e){return e&&e.isIndexError?new ha(e.index+1,e.min+1,e.max!==void 0?e.max+1:void 0):e}function eE(e){var{subset:t}=e;return function(n,i){try{if(Array.isArray(n))return t(n,i);if(n&&typeof n.subset=="function")return n.subset(i);if(typeof n=="string")return t(n,i);if(typeof n=="object"){if(!i.isObjectProperty())throw new TypeError("Cannot apply a numeric index as object property");return Ai(n,i.getObjectProperty())}else throw new TypeError("Cannot apply index: unsupported type of object")}catch(a){throw ma(a)}}}var Mf="AccessorNode",loe=["subset","Node"],coe=ke(Mf,loe,e=>{var{subset:t,Node:r}=e,n=eE({subset:t});function i(o){return!(ts(o)||Bn(o)||Bt(o)||rs(o)||ef(o)||to(o)||kr(o))}class a extends r{constructor(s,u){if(super(),!Ot(s))throw new TypeError('Node expected for parameter "object"');if(!Qs(u))throw new TypeError('IndexNode expected for parameter "index"');this.object=s,this.index=u}get name(){return this.index?this.index.isObjectProperty()?this.index.getObjectProperty():"":this.object.name||""}get type(){return Mf}get isAccessorNode(){return!0}_compile(s,u){var l=this.object._compile(s,u),c=this.index._compile(s,u);if(this.index.isObjectProperty()){var f=this.index.getObjectProperty();return function(p,h,b){return Ai(l(p,h,b),f)}}else return function(p,h,b){var g=l(p,h,b),v=c(p,h,g);return n(g,v)}}forEach(s){s(this.object,"object",this),s(this.index,"index",this)}map(s){return new a(this._ifNode(s(this.object,"object",this)),this._ifNode(s(this.index,"index",this)))}clone(){return new a(this.object,this.index)}_toString(s){var u=this.object.toString(s);return i(this.object)&&(u="("+u+")"),u+this.index.toString(s)}toHTML(s){var u=this.object.toHTML(s);return i(this.object)&&(u='<span class="math-parenthesis math-round-parenthesis">(</span>'+u+'<span class="math-parenthesis math-round-parenthesis">)</span>'),u+this.index.toHTML(s)}_toTex(s){var u=this.object.toTex(s);return i(this.object)&&(u="\\left(' + object + '\\right)"),u+this.index.toTex(s)}toJSON(){return{mathjs:Mf,object:this.object,index:this.index}}static fromJSON(s){return new a(s.object,s.index)}}return er(a,"name",Mf),a},{isClass:!0,isNode:!0}),Rf="ArrayNode",foe=["Node"],doe=ke(Rf,foe,e=>{var{Node:t}=e;class r extends t{constructor(i){if(super(),this.items=i||[],!Array.isArray(this.items)||!this.items.every(Ot))throw new TypeError("Array containing Nodes expected")}get type(){return Rf}get isArrayNode(){return!0}_compile(i,a){var o=Za(this.items,function(l){return l._compile(i,a)}),s=i.config.matrix!=="Array";if(s){var u=i.matrix;return function(c,f,d){return u(Za(o,function(p){return p(c,f,d)}))}}else return function(c,f,d){return Za(o,function(p){return p(c,f,d)})}}forEach(i){for(var a=0;a<this.items.length;a++){var o=this.items[a];i(o,"items["+a+"]",this)}}map(i){for(var a=[],o=0;o<this.items.length;o++)a[o]=this._ifNode(i(this.items[o],"items["+o+"]",this));return new r(a)}clone(){return new r(this.items.slice(0))}_toString(i){var a=this.items.map(function(o){return o.toString(i)});return"["+a.join(", ")+"]"}toJSON(){return{mathjs:Rf,items:this.items}}static fromJSON(i){return new r(i.items)}toHTML(i){var a=this.items.map(function(o){return o.toHTML(i)});return'<span class="math-parenthesis math-square-parenthesis">[</span>'+a.join('<span class="math-separator">,</span>')+'<span class="math-parenthesis math-square-parenthesis">]</span>'}_toTex(i){function a(o,s){var u=o.some(Bn)&&!o.every(Bn),l=s||u,c=l?"&":"\\\\",f=o.map(function(d){return d.items?a(d.items,!s):d.toTex(i)}).join(c);return u||!l||l&&!s?"\\begin{bmatrix}"+f+"\\end{bmatrix}":f}return a(this.items,!1)}}return er(r,"name",Rf),r},{isClass:!0,isNode:!0});function poe(e){var{subset:t,matrix:r}=e;return function(i,a,o){try{if(Array.isArray(i))return r(i).subset(a,o).valueOf();if(i&&typeof i.subset=="function")return i.subset(a,o);if(typeof i=="string")return t(i,a,o);if(typeof i=="object"){if(!a.isObjectProperty())throw TypeError("Cannot apply a numeric index as object property");return Fc(i,a.getObjectProperty(),o),i}else throw new TypeError("Cannot apply index: unsupported type of object")}catch(s){throw ma(s)}}}var Lf="AssignmentNode",hoe=["subset","?matrix","Node"],moe=ke(Lf,hoe,e=>{var{subset:t,matrix:r,Node:n}=e,i=eE({subset:t}),a=poe({subset:t,matrix:r});function o(u,l,c){l||(l="keep");var f=Ut(u,l,c),d=Ut(u.value,l,c);return l==="all"||d!==null&&d<=f}class s extends n{constructor(l,c,f){if(super(),this.object=l,this.index=f?c:null,this.value=f||c,!kr(l)&&!ts(l))throw new TypeError('SymbolNode or AccessorNode expected as "object"');if(kr(l)&&l.name==="end")throw new Error('Cannot assign to symbol "end"');if(this.index&&!Qs(this.index))throw new TypeError('IndexNode expected as "index"');if(!Ot(this.value))throw new TypeError('Node expected as "value"')}get name(){return this.index?this.index.isObjectProperty()?this.index.getObjectProperty():"":this.object.name||""}get type(){return Lf}get isAssignmentNode(){return!0}_compile(l,c){var f=this.object._compile(l,c),d=this.index?this.index._compile(l,c):null,p=this.value._compile(l,c),h=this.object.name;if(this.index)if(this.index.isObjectProperty()){var b=this.index.getObjectProperty();return function(D,_,N){var $=f(D,_,N),k=p(D,_,N);return Fc($,b,k),k}}else{if(kr(this.object))return function(D,_,N){var $=f(D,_,N),k=p(D,_,N),K=d(D,_,$);return D.set(h,a($,K,k)),k};var g=this.object.object._compile(l,c);if(this.object.index.isObjectProperty()){var v=this.object.index.getObjectProperty();return function(D,_,N){var $=g(D,_,N),k=Ai($,v),K=d(D,_,k),G=p(D,_,N);return Fc($,v,a(k,K,G)),G}}else{var S=this.object.index._compile(l,c);return function(D,_,N){var $=g(D,_,N),k=S(D,_,$),K=i($,k),G=d(D,_,K),j=p(D,_,N);return a($,k,a(K,G,j)),j}}}else{if(!kr(this.object))throw new TypeError("SymbolNode expected as object");return function(D,_,N){var $=p(D,_,N);return D.set(h,$),$}}}forEach(l){l(this.object,"object",this),this.index&&l(this.index,"index",this),l(this.value,"value",this)}map(l){var c=this._ifNode(l(this.object,"object",this)),f=this.index?this._ifNode(l(this.index,"index",this)):null,d=this._ifNode(l(this.value,"value",this));return new s(c,f,d)}clone(){return new s(this.object,this.index,this.value)}_toString(l){var c=this.object.toString(l),f=this.index?this.index.toString(l):"",d=this.value.toString(l);return o(this,l&&l.parenthesis,l&&l.implicit)&&(d="("+d+")"),c+f+" = "+d}toJSON(){return{mathjs:Lf,object:this.object,index:this.index,value:this.value}}static fromJSON(l){return new s(l.object,l.index,l.value)}toHTML(l){var c=this.object.toHTML(l),f=this.index?this.index.toHTML(l):"",d=this.value.toHTML(l);return o(this,l&&l.parenthesis,l&&l.implicit)&&(d='<span class="math-paranthesis math-round-parenthesis">(</span>'+d+'<span class="math-paranthesis math-round-parenthesis">)</span>'),c+f+'<span class="math-operator math-assignment-operator math-variable-assignment-operator math-binary-operator">=</span>'+d}_toTex(l){var c=this.object.toTex(l),f=this.index?this.index.toTex(l):"",d=this.value.toTex(l);return o(this,l&&l.parenthesis,l&&l.implicit)&&(d="\\left(".concat(d,"\\right)")),c+f+":="+d}}return er(s,"name",Lf),s},{isClass:!0,isNode:!0}),jf="BlockNode",voe=["ResultSet","Node"],goe=ke(jf,voe,e=>{var{ResultSet:t,Node:r}=e;class n extends r{constructor(a){if(super(),!Array.isArray(a))throw new Error("Array expected");this.blocks=a.map(function(o){var s=o&&o.node,u=o&&o.visible!==void 0?o.visible:!0;if(!Ot(s))throw new TypeError('Property "node" must be a Node');if(typeof u!="boolean")throw new TypeError('Property "visible" must be a boolean');return{node:s,visible:u}})}get type(){return jf}get isBlockNode(){return!0}_compile(a,o){var s=Za(this.blocks,function(u){return{evaluate:u.node._compile(a,o),visible:u.visible}});return function(l,c,f){var d=[];return Ah(s,function(h){var b=h.evaluate(l,c,f);h.visible&&d.push(b)}),new t(d)}}forEach(a){for(var o=0;o<this.blocks.length;o++)a(this.blocks[o].node,"blocks["+o+"].node",this)}map(a){for(var o=[],s=0;s<this.blocks.length;s++){var u=this.blocks[s],l=this._ifNode(a(u.node,"blocks["+s+"].node",this));o[s]={node:l,visible:u.visible}}return new n(o)}clone(){var a=this.blocks.map(function(o){return{node:o.node,visible:o.visible}});return new n(a)}_toString(a){return this.blocks.map(function(o){return o.node.toString(a)+(o.visible?"":";")}).join(`
`)}toJSON(){return{mathjs:jf,blocks:this.blocks}}static fromJSON(a){return new n(a.blocks)}toHTML(a){return this.blocks.map(function(o){return o.node.toHTML(a)+(o.visible?"":'<span class="math-separator">;</span>')}).join('<span class="math-separator"><br /></span>')}_toTex(a){return this.blocks.map(function(o){return o.node.toTex(a)+(o.visible?"":";")}).join(`\\;\\;
`)}}return er(n,"name",jf),n},{isClass:!0,isNode:!0}),Uf="ConditionalNode",yoe=["Node"],boe=ke(Uf,yoe,e=>{var{Node:t}=e;function r(i){if(typeof i=="number"||typeof i=="boolean"||typeof i=="string")return!!i;if(i){if(Yr(i))return!i.isZero();if(wl(i))return!!(i.re||i.im);if(Eh(i))return!!i.value}if(i==null)return!1;throw new TypeError('Unsupported type of condition "'+xn(i)+'"')}class n extends t{constructor(a,o,s){if(super(),!Ot(a))throw new TypeError("Parameter condition must be a Node");if(!Ot(o))throw new TypeError("Parameter trueExpr must be a Node");if(!Ot(s))throw new TypeError("Parameter falseExpr must be a Node");this.condition=a,this.trueExpr=o,this.falseExpr=s}get type(){return Uf}get isConditionalNode(){return!0}_compile(a,o){var s=this.condition._compile(a,o),u=this.trueExpr._compile(a,o),l=this.falseExpr._compile(a,o);return function(f,d,p){return r(s(f,d,p))?u(f,d,p):l(f,d,p)}}forEach(a){a(this.condition,"condition",this),a(this.trueExpr,"trueExpr",this),a(this.falseExpr,"falseExpr",this)}map(a){return new n(this._ifNode(a(this.condition,"condition",this)),this._ifNode(a(this.trueExpr,"trueExpr",this)),this._ifNode(a(this.falseExpr,"falseExpr",this)))}clone(){return new n(this.condition,this.trueExpr,this.falseExpr)}_toString(a){var o=a&&a.parenthesis?a.parenthesis:"keep",s=Ut(this,o,a&&a.implicit),u=this.condition.toString(a),l=Ut(this.condition,o,a&&a.implicit);(o==="all"||this.condition.type==="OperatorNode"||l!==null&&l<=s)&&(u="("+u+")");var c=this.trueExpr.toString(a),f=Ut(this.trueExpr,o,a&&a.implicit);(o==="all"||this.trueExpr.type==="OperatorNode"||f!==null&&f<=s)&&(c="("+c+")");var d=this.falseExpr.toString(a),p=Ut(this.falseExpr,o,a&&a.implicit);return(o==="all"||this.falseExpr.type==="OperatorNode"||p!==null&&p<=s)&&(d="("+d+")"),u+" ? "+c+" : "+d}toJSON(){return{mathjs:Uf,condition:this.condition,trueExpr:this.trueExpr,falseExpr:this.falseExpr}}static fromJSON(a){return new n(a.condition,a.trueExpr,a.falseExpr)}toHTML(a){var o=a&&a.parenthesis?a.parenthesis:"keep",s=Ut(this,o,a&&a.implicit),u=this.condition.toHTML(a),l=Ut(this.condition,o,a&&a.implicit);(o==="all"||this.condition.type==="OperatorNode"||l!==null&&l<=s)&&(u='<span class="math-parenthesis math-round-parenthesis">(</span>'+u+'<span class="math-parenthesis math-round-parenthesis">)</span>');var c=this.trueExpr.toHTML(a),f=Ut(this.trueExpr,o,a&&a.implicit);(o==="all"||this.trueExpr.type==="OperatorNode"||f!==null&&f<=s)&&(c='<span class="math-parenthesis math-round-parenthesis">(</span>'+c+'<span class="math-parenthesis math-round-parenthesis">)</span>');var d=this.falseExpr.toHTML(a),p=Ut(this.falseExpr,o,a&&a.implicit);return(o==="all"||this.falseExpr.type==="OperatorNode"||p!==null&&p<=s)&&(d='<span class="math-parenthesis math-round-parenthesis">(</span>'+d+'<span class="math-parenthesis math-round-parenthesis">)</span>'),u+'<span class="math-operator math-conditional-operator">?</span>'+c+'<span class="math-operator math-conditional-operator">:</span>'+d}_toTex(a){return"\\begin{cases} {"+this.trueExpr.toTex(a)+"}, &\\quad{\\text{if }\\;"+this.condition.toTex(a)+"}\\\\{"+this.falseExpr.toTex(a)+"}, &\\quad{\\text{otherwise}}\\end{cases}"}}return er(n,"name",Uf),n},{isClass:!0,isNode:!0}),m0=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},woe={"{":"\\{","}":"\\}","\\":"\\textbackslash{}","#":"\\#",$:"\\$","%":"\\%","&":"\\&","^":"\\textasciicircum{}",_:"\\_","~":"\\textasciitilde{}"},_oe={"\u2013":"\\--","\u2014":"\\---"," ":"~","	":"\\qquad{}","\r\n":"\\newline{}","\n":"\\newline{}"},xoe=function(t,r){return m0({},t,r)},Eoe=function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.preserveFormatting,n=r===void 0?!1:r,i=t.escapeMapFn,a=i===void 0?xoe:i,o=String(e),s="",u=a(m0({},woe),n?m0({},_oe):{}),l=Object.keys(u),c=function(){var d=!1;l.forEach(function(p,h){d||o.length>=p.length&&o.slice(0,p.length)===p&&(s+=u[l[h]],o=o.slice(p.length,o.length),d=!0)}),d||(s+=o.slice(0,1),o=o.slice(1,o.length))};o;)c();return s},Doe=Eoe,v0={Alpha:"A",alpha:"\\alpha",Beta:"B",beta:"\\beta",Gamma:"\\Gamma",gamma:"\\gamma",Delta:"\\Delta",delta:"\\delta",Epsilon:"E",epsilon:"\\epsilon",varepsilon:"\\varepsilon",Zeta:"Z",zeta:"\\zeta",Eta:"H",eta:"\\eta",Theta:"\\Theta",theta:"\\theta",vartheta:"\\vartheta",Iota:"I",iota:"\\iota",Kappa:"K",kappa:"\\kappa",varkappa:"\\varkappa",Lambda:"\\Lambda",lambda:"\\lambda",Mu:"M",mu:"\\mu",Nu:"N",nu:"\\nu",Xi:"\\Xi",xi:"\\xi",Omicron:"O",omicron:"o",Pi:"\\Pi",pi:"\\pi",varpi:"\\varpi",Rho:"P",rho:"\\rho",varrho:"\\varrho",Sigma:"\\Sigma",sigma:"\\sigma",varsigma:"\\varsigma",Tau:"T",tau:"\\tau",Upsilon:"\\Upsilon",upsilon:"\\upsilon",Phi:"\\Phi",phi:"\\phi",varphi:"\\varphi",Chi:"X",chi:"\\chi",Psi:"\\Psi",psi:"\\psi",Omega:"\\Omega",omega:"\\omega",true:"\\mathrm{True}",false:"\\mathrm{False}",i:"i",inf:"\\infty",Inf:"\\infty",infinity:"\\infty",Infinity:"\\infty",oo:"\\infty",lim:"\\lim",undefined:"\\mathbf{?}"},Dt={transpose:"^\\top",ctranspose:"^H",factorial:"!",pow:"^",dotPow:".^\\wedge",unaryPlus:"+",unaryMinus:"-",bitNot:"\\~",not:"\\neg",multiply:"\\cdot",divide:"\\frac",dotMultiply:".\\cdot",dotDivide:".:",mod:"\\mod",add:"+",subtract:"-",to:"\\rightarrow",leftShift:"<<",rightArithShift:">>",rightLogShift:">>>",equal:"=",unequal:"\\neq",smaller:"<",larger:">",smallerEq:"\\leq",largerEq:"\\geq",bitAnd:"\\&",bitXor:"\\underline{|}",bitOr:"|",and:"\\wedge",xor:"\\veebar",or:"\\vee"},tw={abs:{1:"\\left|${args[0]}\\right|"},add:{2:"\\left(${args[0]}".concat(Dt.add,"${args[1]}\\right)")},cbrt:{1:"\\sqrt[3]{${args[0]}}"},ceil:{1:"\\left\\lceil${args[0]}\\right\\rceil"},cube:{1:"\\left(${args[0]}\\right)^3"},divide:{2:"\\frac{${args[0]}}{${args[1]}}"},dotDivide:{2:"\\left(${args[0]}".concat(Dt.dotDivide,"${args[1]}\\right)")},dotMultiply:{2:"\\left(${args[0]}".concat(Dt.dotMultiply,"${args[1]}\\right)")},dotPow:{2:"\\left(${args[0]}".concat(Dt.dotPow,"${args[1]}\\right)")},exp:{1:"\\exp\\left(${args[0]}\\right)"},expm1:"\\left(e".concat(Dt.pow,"{${args[0]}}-1\\right)"),fix:{1:"\\mathrm{${name}}\\left(${args[0]}\\right)"},floor:{1:"\\left\\lfloor${args[0]}\\right\\rfloor"},gcd:"\\gcd\\left(${args}\\right)",hypot:"\\hypot\\left(${args}\\right)",log:{1:"\\ln\\left(${args[0]}\\right)",2:"\\log_{${args[1]}}\\left(${args[0]}\\right)"},log10:{1:"\\log_{10}\\left(${args[0]}\\right)"},log1p:{1:"\\ln\\left(${args[0]}+1\\right)",2:"\\log_{${args[1]}}\\left(${args[0]}+1\\right)"},log2:"\\log_{2}\\left(${args[0]}\\right)",mod:{2:"\\left(${args[0]}".concat(Dt.mod,"${args[1]}\\right)")},multiply:{2:"\\left(${args[0]}".concat(Dt.multiply,"${args[1]}\\right)")},norm:{1:"\\left\\|${args[0]}\\right\\|",2:void 0},nthRoot:{2:"\\sqrt[${args[1]}]{${args[0]}}"},nthRoots:{2:"\\{y : $y^{args[1]} = {${args[0]}}\\}"},pow:{2:"\\left(${args[0]}\\right)".concat(Dt.pow,"{${args[1]}}")},round:{1:"\\left\\lfloor${args[0]}\\right\\rceil",2:void 0},sign:{1:"\\mathrm{${name}}\\left(${args[0]}\\right)"},sqrt:{1:"\\sqrt{${args[0]}}"},square:{1:"\\left(${args[0]}\\right)^2"},subtract:{2:"\\left(${args[0]}".concat(Dt.subtract,"${args[1]}\\right)")},unaryMinus:{1:"".concat(Dt.unaryMinus,"\\left(${args[0]}\\right)")},unaryPlus:{1:"".concat(Dt.unaryPlus,"\\left(${args[0]}\\right)")},bitAnd:{2:"\\left(${args[0]}".concat(Dt.bitAnd,"${args[1]}\\right)")},bitNot:{1:Dt.bitNot+"\\left(${args[0]}\\right)"},bitOr:{2:"\\left(${args[0]}".concat(Dt.bitOr,"${args[1]}\\right)")},bitXor:{2:"\\left(${args[0]}".concat(Dt.bitXor,"${args[1]}\\right)")},leftShift:{2:"\\left(${args[0]}".concat(Dt.leftShift,"${args[1]}\\right)")},rightArithShift:{2:"\\left(${args[0]}".concat(Dt.rightArithShift,"${args[1]}\\right)")},rightLogShift:{2:"\\left(${args[0]}".concat(Dt.rightLogShift,"${args[1]}\\right)")},bellNumbers:{1:"\\mathrm{B}_{${args[0]}}"},catalan:{1:"\\mathrm{C}_{${args[0]}}"},stirlingS2:{2:"\\mathrm{S}\\left(${args}\\right)"},arg:{1:"\\arg\\left(${args[0]}\\right)"},conj:{1:"\\left(${args[0]}\\right)^*"},im:{1:"\\Im\\left\\lbrace${args[0]}\\right\\rbrace"},re:{1:"\\Re\\left\\lbrace${args[0]}\\right\\rbrace"},and:{2:"\\left(${args[0]}".concat(Dt.and,"${args[1]}\\right)")},not:{1:Dt.not+"\\left(${args[0]}\\right)"},or:{2:"\\left(${args[0]}".concat(Dt.or,"${args[1]}\\right)")},xor:{2:"\\left(${args[0]}".concat(Dt.xor,"${args[1]}\\right)")},cross:{2:"\\left(${args[0]}\\right)\\times\\left(${args[1]}\\right)"},ctranspose:{1:"\\left(${args[0]}\\right)".concat(Dt.ctranspose)},det:{1:"\\det\\left(${args[0]}\\right)"},dot:{2:"\\left(${args[0]}\\cdot${args[1]}\\right)"},expm:{1:"\\exp\\left(${args[0]}\\right)"},inv:{1:"\\left(${args[0]}\\right)^{-1}"},pinv:{1:"\\left(${args[0]}\\right)^{+}"},sqrtm:{1:"{${args[0]}}".concat(Dt.pow,"{\\frac{1}{2}}")},trace:{1:"\\mathrm{tr}\\left(${args[0]}\\right)"},transpose:{1:"\\left(${args[0]}\\right)".concat(Dt.transpose)},combinations:{2:"\\binom{${args[0]}}{${args[1]}}"},combinationsWithRep:{2:"\\left(\\!\\!{\\binom{${args[0]}}{${args[1]}}}\\!\\!\\right)"},factorial:{1:"\\left(${args[0]}\\right)".concat(Dt.factorial)},gamma:{1:"\\Gamma\\left(${args[0]}\\right)"},lgamma:{1:"\\ln\\Gamma\\left(${args[0]}\\right)"},equal:{2:"\\left(${args[0]}".concat(Dt.equal,"${args[1]}\\right)")},larger:{2:"\\left(${args[0]}".concat(Dt.larger,"${args[1]}\\right)")},largerEq:{2:"\\left(${args[0]}".concat(Dt.largerEq,"${args[1]}\\right)")},smaller:{2:"\\left(${args[0]}".concat(Dt.smaller,"${args[1]}\\right)")},smallerEq:{2:"\\left(${args[0]}".concat(Dt.smallerEq,"${args[1]}\\right)")},unequal:{2:"\\left(${args[0]}".concat(Dt.unequal,"${args[1]}\\right)")},erf:{1:"erf\\left(${args[0]}\\right)"},max:"\\max\\left(${args}\\right)",min:"\\min\\left(${args}\\right)",variance:"\\mathrm{Var}\\left(${args}\\right)",acos:{1:"\\cos^{-1}\\left(${args[0]}\\right)"},acosh:{1:"\\cosh^{-1}\\left(${args[0]}\\right)"},acot:{1:"\\cot^{-1}\\left(${args[0]}\\right)"},acoth:{1:"\\coth^{-1}\\left(${args[0]}\\right)"},acsc:{1:"\\csc^{-1}\\left(${args[0]}\\right)"},acsch:{1:"\\mathrm{csch}^{-1}\\left(${args[0]}\\right)"},asec:{1:"\\sec^{-1}\\left(${args[0]}\\right)"},asech:{1:"\\mathrm{sech}^{-1}\\left(${args[0]}\\right)"},asin:{1:"\\sin^{-1}\\left(${args[0]}\\right)"},asinh:{1:"\\sinh^{-1}\\left(${args[0]}\\right)"},atan:{1:"\\tan^{-1}\\left(${args[0]}\\right)"},atan2:{2:"\\mathrm{atan2}\\left(${args}\\right)"},atanh:{1:"\\tanh^{-1}\\left(${args[0]}\\right)"},cos:{1:"\\cos\\left(${args[0]}\\right)"},cosh:{1:"\\cosh\\left(${args[0]}\\right)"},cot:{1:"\\cot\\left(${args[0]}\\right)"},coth:{1:"\\coth\\left(${args[0]}\\right)"},csc:{1:"\\csc\\left(${args[0]}\\right)"},csch:{1:"\\mathrm{csch}\\left(${args[0]}\\right)"},sec:{1:"\\sec\\left(${args[0]}\\right)"},sech:{1:"\\mathrm{sech}\\left(${args[0]}\\right)"},sin:{1:"\\sin\\left(${args[0]}\\right)"},sinh:{1:"\\sinh\\left(${args[0]}\\right)"},tan:{1:"\\tan\\left(${args[0]}\\right)"},tanh:{1:"\\tanh\\left(${args[0]}\\right)"},to:{2:"\\left(${args[0]}".concat(Dt.to,"${args[1]}\\right)")},numeric:function(t,r){return t.args[0].toTex()},number:{0:"0",1:"\\left(${args[0]}\\right)",2:"\\left(\\left(${args[0]}\\right)${args[1]}\\right)"},string:{0:'\\mathtt{""}',1:"\\mathrm{string}\\left(${args[0]}\\right)"},bignumber:{0:"0",1:"\\left(${args[0]}\\right)"},complex:{0:"0",1:"\\left(${args[0]}\\right)",2:"\\left(\\left(${args[0]}\\right)+".concat(v0.i,"\\cdot\\left(${args[1]}\\right)\\right)")},matrix:{0:"\\begin{bmatrix}\\end{bmatrix}",1:"\\left(${args[0]}\\right)",2:"\\left(${args[0]}\\right)"},sparse:{0:"\\begin{bsparse}\\end{bsparse}",1:"\\left(${args[0]}\\right)"},unit:{1:"\\left(${args[0]}\\right)",2:"\\left(\\left(${args[0]}\\right)${args[1]}\\right)"}},Soe="\\mathrm{${name}}\\left(${args}\\right)",rw={deg:"^\\circ"};function g0(e){return Doe(e,{preserveFormatting:!0})}function tE(e,t){return t=typeof t=="undefined"?!1:t,t?st(rw,e)?rw[e]:"\\mathrm{"+g0(e)+"}":st(v0,e)?v0[e]:g0(e)}var zf="ConstantNode",Coe=["Node"],Aoe=ke(zf,Coe,e=>{var{Node:t}=e;class r extends t{constructor(i){super(),this.value=i}get type(){return zf}get isConstantNode(){return!0}_compile(i,a){var o=this.value;return function(){return o}}forEach(i){}map(i){return this.clone()}clone(){return new r(this.value)}_toString(i){return ro(this.value,i)}toHTML(i){var a=this._toString(i);switch(xn(this.value)){case"number":case"BigNumber":case"Fraction":return'<span class="math-number">'+a+"</span>";case"string":return'<span class="math-string">'+a+"</span>";case"boolean":return'<span class="math-boolean">'+a+"</span>";case"null":return'<span class="math-null-symbol">'+a+"</span>";case"undefined":return'<span class="math-undefined">'+a+"</span>";default:return'<span class="math-symbol">'+a+"</span>"}}toJSON(){return{mathjs:zf,value:this.value}}static fromJSON(i){return new r(i.value)}_toTex(i){var a=this._toString(i);switch(xn(this.value)){case"string":return"\\mathtt{"+g0(a)+"}";case"number":case"BigNumber":{if(!isFinite(this.value))return this.value.valueOf()<0?"-\\infty":"\\infty";var o=a.toLowerCase().indexOf("e");if(o!==-1)return a.substring(0,o)+"\\cdot10^{"+a.substring(o+1)+"}"}return a;case"Fraction":return this.value.toLatex();default:return a}}}return er(r,"name",zf),r},{isClass:!0,isNode:!0}),qf="FunctionAssignmentNode",Noe=["typed","Node"],Toe=ke(qf,Noe,e=>{var{typed:t,Node:r}=e;function n(a,o,s){var u=Ut(a,o,s),l=Ut(a.expr,o,s);return o==="all"||l!==null&&l<=u}class i extends r{constructor(o,s,u){if(super(),typeof o!="string")throw new TypeError('String expected for parameter "name"');if(!Array.isArray(s))throw new TypeError('Array containing strings or objects expected for parameter "params"');if(!Ot(u))throw new TypeError('Node expected for parameter "expr"');if(Q7.has(o))throw new Error('Illegal function name, "'+o+'" is a reserved keyword');this.name=o,this.params=s.map(function(l){return l&&l.name||l}),this.types=s.map(function(l){return l&&l.type||"any"}),this.expr=u}get type(){return qf}get isFunctionAssignmentNode(){return!0}_compile(o,s){var u=Object.create(s);Ah(this.params,function(h){u[h]=!0});var l=this.expr._compile(o,u),c=this.name,f=this.params,d=k3(this.types,","),p=c+"("+k3(this.params,", ")+")";return function(b,g,v){var S={};S[d]=function(){for(var D=Object.create(g),_=0;_<f.length;_++)D[f[_]]=arguments[_];return l(b,D,v)};var w=t(c,S);return w.syntax=p,b.set(c,w),w}}forEach(o){o(this.expr,"expr",this)}map(o){var s=this._ifNode(o(this.expr,"expr",this));return new i(this.name,this.params.slice(0),s)}clone(){return new i(this.name,this.params.slice(0),this.expr)}_toString(o){var s=o&&o.parenthesis?o.parenthesis:"keep",u=this.expr.toString(o);return n(this,s,o&&o.implicit)&&(u="("+u+")"),this.name+"("+this.params.join(", ")+") = "+u}toJSON(){var o=this.types;return{mathjs:qf,name:this.name,params:this.params.map(function(s,u){return{name:s,type:o[u]}}),expr:this.expr}}static fromJSON(o){return new i(o.name,o.params,o.expr)}toHTML(o){for(var s=o&&o.parenthesis?o.parenthesis:"keep",u=[],l=0;l<this.params.length;l++)u.push('<span class="math-symbol math-parameter">'+Zn(this.params[l])+"</span>");var c=this.expr.toHTML(o);return n(this,s,o&&o.implicit)&&(c='<span class="math-parenthesis math-round-parenthesis">(</span>'+c+'<span class="math-parenthesis math-round-parenthesis">)</span>'),'<span class="math-function">'+Zn(this.name)+'</span><span class="math-parenthesis math-round-parenthesis">(</span>'+u.join('<span class="math-separator">,</span>')+'<span class="math-parenthesis math-round-parenthesis">)</span><span class="math-operator math-assignment-operator math-variable-assignment-operator math-binary-operator">=</span>'+c}_toTex(o){var s=o&&o.parenthesis?o.parenthesis:"keep",u=this.expr.toTex(o);return n(this,s,o&&o.implicit)&&(u="\\left(".concat(u,"\\right)")),"\\mathrm{"+this.name+"}\\left("+this.params.map(tE).join(",")+"\\right):="+u}}return er(i,"name",qf),i},{isClass:!0,isNode:!0}),Hf="IndexNode",koe=["Node","size"],Ooe=ke(Hf,koe,e=>{var{Node:t,size:r}=e;class n extends t{constructor(a,o){if(super(),this.dimensions=a,this.dotNotation=o||!1,!Array.isArray(a)||!a.every(Ot))throw new TypeError('Array containing Nodes expected for parameter "dimensions"');if(this.dotNotation&&!this.isObjectProperty())throw new Error("dotNotation only applicable for object properties")}get type(){return Hf}get isIndexNode(){return!0}_compile(a,o){var s=Za(this.dimensions,function(l,c){var f=l.filter(h=>h.isSymbolNode&&h.name==="end").length>0;if(f){var d=Object.create(o);d.end=!0;var p=l._compile(a,d);return function(b,g,v){if(!on(v)&&!_g(v)&&!Qo(v))throw new TypeError('Cannot resolve "end": context must be a Matrix, Array, or string but is '+xn(v));var S=r(v).valueOf(),w=Object.create(g);return w.end=S[c],p(b,w,v)}}else return l._compile(a,o)}),u=Ai(a,"index");return function(c,f,d){var p=Za(s,function(h){return h(c,f,d)});return u(...p)}}forEach(a){for(var o=0;o<this.dimensions.length;o++)a(this.dimensions[o],"dimensions["+o+"]",this)}map(a){for(var o=[],s=0;s<this.dimensions.length;s++)o[s]=this._ifNode(a(this.dimensions[s],"dimensions["+s+"]",this));return new n(o,this.dotNotation)}clone(){return new n(this.dimensions.slice(0),this.dotNotation)}isObjectProperty(){return this.dimensions.length===1&&Bt(this.dimensions[0])&&typeof this.dimensions[0].value=="string"}getObjectProperty(){return this.isObjectProperty()?this.dimensions[0].value:null}_toString(a){return this.dotNotation?"."+this.getObjectProperty():"["+this.dimensions.join(", ")+"]"}toJSON(){return{mathjs:Hf,dimensions:this.dimensions,dotNotation:this.dotNotation}}static fromJSON(a){return new n(a.dimensions,a.dotNotation)}toHTML(a){for(var o=[],s=0;s<this.dimensions.length;s++)o[s]=this.dimensions[s].toHTML();return this.dotNotation?'<span class="math-operator math-accessor-operator">.</span><span class="math-symbol math-property">'+Zn(this.getObjectProperty())+"</span>":'<span class="math-parenthesis math-square-parenthesis">[</span>'+o.join('<span class="math-separator">,</span>')+'<span class="math-parenthesis math-square-parenthesis">]</span>'}_toTex(a){var o=this.dimensions.map(function(s){return s.toTex(a)});return this.dotNotation?"."+this.getObjectProperty():"_{"+o.join(",")+"}"}}return er(n,"name",Hf),n},{isClass:!0,isNode:!0}),Vf="ObjectNode",Foe=["Node"],$oe=ke(Vf,Foe,e=>{var{Node:t}=e;class r extends t{constructor(i){if(super(),this.properties=i||{},i&&(typeof i!="object"||!Object.keys(i).every(function(a){return Ot(i[a])})))throw new TypeError("Object containing Nodes expected")}get type(){return Vf}get isObjectNode(){return!0}_compile(i,a){var o={};for(var s in this.properties)if(st(this.properties,s)){var u=Bf(s),l=JSON.parse(u);if(!Fg(this.properties,l))throw new Error('No access to property "'+l+'"');o[l]=this.properties[s]._compile(i,a)}return function(f,d,p){var h={};for(var b in o)st(o,b)&&(h[b]=o[b](f,d,p));return h}}forEach(i){for(var a in this.properties)st(this.properties,a)&&i(this.properties[a],"properties["+Bf(a)+"]",this)}map(i){var a={};for(var o in this.properties)st(this.properties,o)&&(a[o]=this._ifNode(i(this.properties[o],"properties["+Bf(o)+"]",this)));return new r(a)}clone(){var i={};for(var a in this.properties)st(this.properties,a)&&(i[a]=this.properties[a]);return new r(i)}_toString(i){var a=[];for(var o in this.properties)st(this.properties,o)&&a.push(Bf(o)+": "+this.properties[o].toString(i));return"{"+a.join(", ")+"}"}toJSON(){return{mathjs:Vf,properties:this.properties}}static fromJSON(i){return new r(i.properties)}toHTML(i){var a=[];for(var o in this.properties)st(this.properties,o)&&a.push('<span class="math-symbol math-property">'+Zn(o)+'</span><span class="math-operator math-assignment-operator math-property-assignment-operator math-binary-operator">:</span>'+this.properties[o].toHTML(i));return'<span class="math-parenthesis math-curly-parenthesis">{</span>'+a.join('<span class="math-separator">,</span>')+'<span class="math-parenthesis math-curly-parenthesis">}</span>'}_toTex(i){var a=[];for(var o in this.properties)st(this.properties,o)&&a.push("\\mathbf{"+o+":} & "+this.properties[o].toTex(i)+"\\\\");var s="\\left\\{\\begin{array}{ll}"+a.join(`
`)+"\\end{array}\\right\\}";return s}}return er(r,"name",Vf),r},{isClass:!0,isNode:!0}),Kf="OperatorNode",Boe=["Node"],Poe=ke(Kf,Boe,e=>{var{Node:t}=e;function r(a,o){var s=a;if(o==="auto")for(;to(s);)s=s.content;return Bt(s)?!0:_r(s)?r(s.args[0],o):!1}function n(a,o,s,u,l){var c=Ut(a,o,s),f=Vl(a,o);if(o==="all"||u.length>2&&a.getIdentifier()!=="OperatorNode:add"&&a.getIdentifier()!=="OperatorNode:multiply")return u.map(function(G){switch(G.getContent().type){case"ArrayNode":case"ConstantNode":case"SymbolNode":case"ParenthesisNode":return!1;default:return!0}});var d;switch(u.length){case 0:d=[];break;case 1:{var p=Ut(u[0],o,s,a);if(l&&p!==null){var h,b;if(o==="keep"?(h=u[0].getIdentifier(),b=a.getIdentifier()):(h=u[0].getContent().getIdentifier(),b=a.getContent().getIdentifier()),gi[c][b].latexLeftParens===!1){d=[!1];break}if(gi[p][h].latexParens===!1){d=[!1];break}}if(p===null){d=[!1];break}if(p<=c){d=[!0];break}d=[!1]}break;case 2:{var g,v=Ut(u[0],o,s,a),S=Pm(a,u[0],o);v===null?g=!1:v===c&&f==="right"&&!S||v<c?g=!0:g=!1;var w,D=Ut(u[1],o,s,a),_=Pm(a,u[1],o);if(D===null?w=!1:D===c&&f==="left"&&!_||D<c?w=!0:w=!1,l){var N,$,k;o==="keep"?(N=a.getIdentifier(),$=a.args[0].getIdentifier(),k=a.args[1].getIdentifier()):(N=a.getContent().getIdentifier(),$=a.args[0].getContent().getIdentifier(),k=a.args[1].getContent().getIdentifier()),v!==null&&(gi[c][N].latexLeftParens===!1&&(g=!1),gi[v][$].latexParens===!1&&(g=!1)),D!==null&&(gi[c][N].latexRightParens===!1&&(w=!1),gi[D][k].latexParens===!1&&(w=!1))}d=[g,w]}break;default:(a.getIdentifier()==="OperatorNode:add"||a.getIdentifier()==="OperatorNode:multiply")&&(d=u.map(function(G){var j=Ut(G,o,s,a),q=Pm(a,G,o),re=Vl(G,o);return j===null?!1:c===j&&f===re&&!q?!0:j<c}));break}if(u.length>=2&&a.getIdentifier()==="OperatorNode:multiply"&&a.implicit&&o!=="all"&&s==="hide")for(var K=1;K<d.length;++K)r(u[K],o)&&!d[K-1]&&(o!=="keep"||!to(u[K-1]))&&(d[K]=!0);return d}class i extends t{constructor(o,s,u,l,c){if(super(),typeof o!="string")throw new TypeError('string expected for parameter "op"');if(typeof s!="string")throw new TypeError('string expected for parameter "fn"');if(!Array.isArray(u)||!u.every(Ot))throw new TypeError('Array containing Nodes expected for parameter "args"');this.implicit=l===!0,this.isPercentage=c===!0,this.op=o,this.fn=s,this.args=u||[]}get type(){return Kf}get isOperatorNode(){return!0}_compile(o,s){if(typeof this.fn!="string"||!$g(o,this.fn))throw o[this.fn]?new Error('No access to function "'+this.fn+'"'):new Error("Function "+this.fn+' missing in provided namespace "math"');var u=Ai(o,this.fn),l=Za(this.args,function(p){return p._compile(o,s)});if(l.length===1){var c=l[0];return function(h,b,g){return u(c(h,b,g))}}else if(l.length===2){var f=l[0],d=l[1];return function(h,b,g){return u(f(h,b,g),d(h,b,g))}}else return function(h,b,g){return u.apply(null,Za(l,function(v){return v(h,b,g)}))}}forEach(o){for(var s=0;s<this.args.length;s++)o(this.args[s],"args["+s+"]",this)}map(o){for(var s=[],u=0;u<this.args.length;u++)s[u]=this._ifNode(o(this.args[u],"args["+u+"]",this));return new i(this.op,this.fn,s,this.implicit,this.isPercentage)}clone(){return new i(this.op,this.fn,this.args.slice(0),this.implicit,this.isPercentage)}isUnary(){return this.args.length===1}isBinary(){return this.args.length===2}_toString(o){var s=o&&o.parenthesis?o.parenthesis:"keep",u=o&&o.implicit?o.implicit:"hide",l=this.args,c=n(this,s,u,l,!1);if(l.length===1){var f=Vl(this,s),d=l[0].toString(o);c[0]&&(d="("+d+")");var p=/[a-zA-Z]+/.test(this.op);return f==="right"?this.op+(p?" ":"")+d:f==="left"?d+(p?" ":"")+this.op:d+this.op}else if(l.length===2){var h=l[0].toString(o),b=l[1].toString(o);return c[0]&&(h="("+h+")"),c[1]&&(b="("+b+")"),this.implicit&&this.getIdentifier()==="OperatorNode:multiply"&&u==="hide"?h+" "+b:h+" "+this.op+" "+b}else if(l.length>2&&(this.getIdentifier()==="OperatorNode:add"||this.getIdentifier()==="OperatorNode:multiply")){var g=l.map(function(v,S){return v=v.toString(o),c[S]&&(v="("+v+")"),v});return this.implicit&&this.getIdentifier()==="OperatorNode:multiply"&&u==="hide"?g.join(" "):g.join(" "+this.op+" ")}else return this.fn+"("+this.args.join(", ")+")"}toJSON(){return{mathjs:Kf,op:this.op,fn:this.fn,args:this.args,implicit:this.implicit,isPercentage:this.isPercentage}}static fromJSON(o){return new i(o.op,o.fn,o.args,o.implicit,o.isPercentage)}toHTML(o){var s=o&&o.parenthesis?o.parenthesis:"keep",u=o&&o.implicit?o.implicit:"hide",l=this.args,c=n(this,s,u,l,!1);if(l.length===1){var f=Vl(this,s),d=l[0].toHTML(o);return c[0]&&(d='<span class="math-parenthesis math-round-parenthesis">(</span>'+d+'<span class="math-parenthesis math-round-parenthesis">)</span>'),f==="right"?'<span class="math-operator math-unary-operator math-lefthand-unary-operator">'+Zn(this.op)+"</span>"+d:d+'<span class="math-operator math-unary-operator math-righthand-unary-operator">'+Zn(this.op)+"</span>"}else if(l.length===2){var p=l[0].toHTML(o),h=l[1].toHTML(o);return c[0]&&(p='<span class="math-parenthesis math-round-parenthesis">(</span>'+p+'<span class="math-parenthesis math-round-parenthesis">)</span>'),c[1]&&(h='<span class="math-parenthesis math-round-parenthesis">(</span>'+h+'<span class="math-parenthesis math-round-parenthesis">)</span>'),this.implicit&&this.getIdentifier()==="OperatorNode:multiply"&&u==="hide"?p+'<span class="math-operator math-binary-operator math-implicit-binary-operator"></span>'+h:p+'<span class="math-operator math-binary-operator math-explicit-binary-operator">'+Zn(this.op)+"</span>"+h}else{var b=l.map(function(g,v){return g=g.toHTML(o),c[v]&&(g='<span class="math-parenthesis math-round-parenthesis">(</span>'+g+'<span class="math-parenthesis math-round-parenthesis">)</span>'),g});return l.length>2&&(this.getIdentifier()==="OperatorNode:add"||this.getIdentifier()==="OperatorNode:multiply")?this.implicit&&this.getIdentifier()==="OperatorNode:multiply"&&u==="hide"?b.join('<span class="math-operator math-binary-operator math-implicit-binary-operator"></span>'):b.join('<span class="math-operator math-binary-operator math-explicit-binary-operator">'+Zn(this.op)+"</span>"):'<span class="math-function">'+Zn(this.fn)+'</span><span class="math-paranthesis math-round-parenthesis">(</span>'+b.join('<span class="math-separator">,</span>')+'<span class="math-paranthesis math-round-parenthesis">)</span>'}}_toTex(o){var s=o&&o.parenthesis?o.parenthesis:"keep",u=o&&o.implicit?o.implicit:"hide",l=this.args,c=n(this,s,u,l,!0),f=Dt[this.fn];if(f=typeof f=="undefined"?this.op:f,l.length===1){var d=Vl(this,s),p=l[0].toTex(o);return c[0]&&(p="\\left(".concat(p,"\\right)")),d==="right"?f+p:p+f}else if(l.length===2){var h=l[0],b=h.toTex(o);c[0]&&(b="\\left(".concat(b,"\\right)"));var g=l[1],v=g.toTex(o);c[1]&&(v="\\left(".concat(v,"\\right)"));var S;switch(s==="keep"?S=h.getIdentifier():S=h.getContent().getIdentifier(),this.getIdentifier()){case"OperatorNode:divide":return f+"{"+b+"}{"+v+"}";case"OperatorNode:pow":switch(b="{"+b+"}",v="{"+v+"}",S){case"ConditionalNode":case"OperatorNode:divide":b="\\left(".concat(b,"\\right)")}break;case"OperatorNode:multiply":if(this.implicit&&u==="hide")return b+"~"+v}return b+f+v}else if(l.length>2&&(this.getIdentifier()==="OperatorNode:add"||this.getIdentifier()==="OperatorNode:multiply")){var w=l.map(function(D,_){return D=D.toTex(o),c[_]&&(D="\\left(".concat(D,"\\right)")),D});return this.getIdentifier()==="OperatorNode:multiply"&&this.implicit&&u==="hide"?w.join("~"):w.join(f)}else return"\\mathrm{"+this.fn+"}\\left("+l.map(function(D){return D.toTex(o)}).join(",")+"\\right)"}getIdentifier(){return this.type+":"+this.fn}}return er(i,"name",Kf),i},{isClass:!0,isNode:!0}),Gf="ParenthesisNode",Ioe=["Node"],Moe=ke(Gf,Ioe,e=>{var{Node:t}=e;class r extends t{constructor(i){if(super(),!Ot(i))throw new TypeError('Node expected for parameter "content"');this.content=i}get type(){return Gf}get isParenthesisNode(){return!0}_compile(i,a){return this.content._compile(i,a)}getContent(){return this.content.getContent()}forEach(i){i(this.content,"content",this)}map(i){var a=i(this.content,"content",this);return new r(a)}clone(){return new r(this.content)}_toString(i){return!i||i&&!i.parenthesis||i&&i.parenthesis==="keep"?"("+this.content.toString(i)+")":this.content.toString(i)}toJSON(){return{mathjs:Gf,content:this.content}}static fromJSON(i){return new r(i.content)}toHTML(i){return!i||i&&!i.parenthesis||i&&i.parenthesis==="keep"?'<span class="math-parenthesis math-round-parenthesis">(</span>'+this.content.toHTML(i)+'<span class="math-parenthesis math-round-parenthesis">)</span>':this.content.toHTML(i)}_toTex(i){return!i||i&&!i.parenthesis||i&&i.parenthesis==="keep"?"\\left(".concat(this.content.toTex(i),"\\right)"):this.content.toTex(i)}}return er(r,"name",Gf),r},{isClass:!0,isNode:!0}),Wf="RangeNode",Roe=["Node"],Loe=ke(Wf,Roe,e=>{var{Node:t}=e;function r(i,a,o){var s=Ut(i,a,o),u={},l=Ut(i.start,a,o);if(u.start=l!==null&&l<=s||a==="all",i.step){var c=Ut(i.step,a,o);u.step=c!==null&&c<=s||a==="all"}var f=Ut(i.end,a,o);return u.end=f!==null&&f<=s||a==="all",u}class n extends t{constructor(a,o,s){if(super(),!Ot(a))throw new TypeError("Node expected");if(!Ot(o))throw new TypeError("Node expected");if(s&&!Ot(s))throw new TypeError("Node expected");if(arguments.length>3)throw new Error("Too many arguments");this.start=a,this.end=o,this.step=s||null}get type(){return Wf}get isRangeNode(){return!0}needsEnd(){var a=this.filter(function(o){return kr(o)&&o.name==="end"});return a.length>0}_compile(a,o){var s=a.range,u=this.start._compile(a,o),l=this.end._compile(a,o);if(this.step){var c=this.step._compile(a,o);return function(d,p,h){return s(u(d,p,h),l(d,p,h),c(d,p,h))}}else return function(d,p,h){return s(u(d,p,h),l(d,p,h))}}forEach(a){a(this.start,"start",this),a(this.end,"end",this),this.step&&a(this.step,"step",this)}map(a){return new n(this._ifNode(a(this.start,"start",this)),this._ifNode(a(this.end,"end",this)),this.step&&this._ifNode(a(this.step,"step",this)))}clone(){return new n(this.start,this.end,this.step&&this.step)}_toString(a){var o=a&&a.parenthesis?a.parenthesis:"keep",s=r(this,o,a&&a.implicit),u,l=this.start.toString(a);if(s.start&&(l="("+l+")"),u=l,this.step){var c=this.step.toString(a);s.step&&(c="("+c+")"),u+=":"+c}var f=this.end.toString(a);return s.end&&(f="("+f+")"),u+=":"+f,u}toJSON(){return{mathjs:Wf,start:this.start,end:this.end,step:this.step}}static fromJSON(a){return new n(a.start,a.end,a.step)}toHTML(a){var o=a&&a.parenthesis?a.parenthesis:"keep",s=r(this,o,a&&a.implicit),u,l=this.start.toHTML(a);if(s.start&&(l='<span class="math-parenthesis math-round-parenthesis">(</span>'+l+'<span class="math-parenthesis math-round-parenthesis">)</span>'),u=l,this.step){var c=this.step.toHTML(a);s.step&&(c='<span class="math-parenthesis math-round-parenthesis">(</span>'+c+'<span class="math-parenthesis math-round-parenthesis">)</span>'),u+='<span class="math-operator math-range-operator">:</span>'+c}var f=this.end.toHTML(a);return s.end&&(f='<span class="math-parenthesis math-round-parenthesis">(</span>'+f+'<span class="math-parenthesis math-round-parenthesis">)</span>'),u+='<span class="math-operator math-range-operator">:</span>'+f,u}_toTex(a){var o=a&&a.parenthesis?a.parenthesis:"keep",s=r(this,o,a&&a.implicit),u=this.start.toTex(a);if(s.start&&(u="\\left(".concat(u,"\\right)")),this.step){var l=this.step.toTex(a);s.step&&(l="\\left(".concat(l,"\\right)")),u+=":"+l}var c=this.end.toTex(a);return s.end&&(c="\\left(".concat(c,"\\right)")),u+=":"+c,u}}return er(n,"name",Wf),n},{isClass:!0,isNode:!0}),Yf="RelationalNode",joe=["Node"],Uoe=ke(Yf,joe,e=>{var{Node:t}=e,r={equal:"==",unequal:"!=",smaller:"<",larger:">",smallerEq:"<=",largerEq:">="};class n extends t{constructor(a,o){if(super(),!Array.isArray(a))throw new TypeError("Parameter conditionals must be an array");if(!Array.isArray(o))throw new TypeError("Parameter params must be an array");if(a.length!==o.length-1)throw new TypeError("Parameter params must contain exactly one more element than parameter conditionals");this.conditionals=a,this.params=o}get type(){return Yf}get isRelationalNode(){return!0}_compile(a,o){var s=this,u=this.params.map(l=>l._compile(a,o));return function(c,f,d){for(var p,h=u[0](c,f,d),b=0;b<s.conditionals.length;b++){p=h,h=u[b+1](c,f,d);var g=Ai(a,s.conditionals[b]);if(!g(p,h))return!1}return!0}}forEach(a){this.params.forEach((o,s)=>a(o,"params["+s+"]",this),this)}map(a){return new n(this.conditionals.slice(),this.params.map((o,s)=>this._ifNode(a(o,"params["+s+"]",this)),this))}clone(){return new n(this.conditionals,this.params)}_toString(a){for(var o=a&&a.parenthesis?a.parenthesis:"keep",s=Ut(this,o,a&&a.implicit),u=this.params.map(function(f,d){var p=Ut(f,o,a&&a.implicit);return o==="all"||p!==null&&p<=s?"("+f.toString(a)+")":f.toString(a)}),l=u[0],c=0;c<this.conditionals.length;c++)l+=" "+r[this.conditionals[c]],l+=" "+u[c+1];return l}toJSON(){return{mathjs:Yf,conditionals:this.conditionals,params:this.params}}static fromJSON(a){return new n(a.conditionals,a.params)}toHTML(a){for(var o=a&&a.parenthesis?a.parenthesis:"keep",s=Ut(this,o,a&&a.implicit),u=this.params.map(function(f,d){var p=Ut(f,o,a&&a.implicit);return o==="all"||p!==null&&p<=s?'<span class="math-parenthesis math-round-parenthesis">(</span>'+f.toHTML(a)+'<span class="math-parenthesis math-round-parenthesis">)</span>':f.toHTML(a)}),l=u[0],c=0;c<this.conditionals.length;c++)l+='<span class="math-operator math-binary-operator math-explicit-binary-operator">'+Zn(r[this.conditionals[c]])+"</span>"+u[c+1];return l}_toTex(a){for(var o=a&&a.parenthesis?a.parenthesis:"keep",s=Ut(this,o,a&&a.implicit),u=this.params.map(function(f,d){var p=Ut(f,o,a&&a.implicit);return o==="all"||p!==null&&p<=s?"\\left("+f.toTex(a)+"\right)":f.toTex(a)}),l=u[0],c=0;c<this.conditionals.length;c++)l+=Dt[this.conditionals[c]]+u[c+1];return l}}return er(n,"name",Yf),n},{isClass:!0,isNode:!0}),zoe="SymbolNode",qoe=["math","?Unit","Node"],Hoe=ke(zoe,qoe,e=>{var{math:t,Unit:r,Node:n}=e;function i(o){return r?r.isValuelessUnit(o):!1}class a extends n{constructor(s){if(super(),typeof s!="string")throw new TypeError('String expected for parameter "name"');this.name=s}get type(){return"SymbolNode"}get isSymbolNode(){return!0}_compile(s,u){var l=this.name;if(u[l]===!0)return function(f,d,p){return d[l]};if(l in s)return function(f,d,p){return f.has(l)?f.get(l):Ai(s,l)};var c=i(l);return function(f,d,p){return f.has(l)?f.get(l):c?new r(null,l):a.onUndefinedSymbol(l)}}forEach(s){}map(s){return this.clone()}static onUndefinedSymbol(s){throw new Error("Undefined symbol "+s)}clone(){return new a(this.name)}_toString(s){return this.name}toHTML(s){var u=Zn(this.name);return u==="true"||u==="false"?'<span class="math-symbol math-boolean">'+u+"</span>":u==="i"?'<span class="math-symbol math-imaginary-symbol">'+u+"</span>":u==="Infinity"?'<span class="math-symbol math-infinity-symbol">'+u+"</span>":u==="NaN"?'<span class="math-symbol math-nan-symbol">'+u+"</span>":u==="null"?'<span class="math-symbol math-null-symbol">'+u+"</span>":u==="undefined"?'<span class="math-symbol math-undefined-symbol">'+u+"</span>":'<span class="math-symbol">'+u+"</span>"}toJSON(){return{mathjs:"SymbolNode",name:this.name}}static fromJSON(s){return new a(s.name)}_toTex(s){var u=!1;typeof t[this.name]=="undefined"&&i(this.name)&&(u=!0);var l=tE(this.name,u);return l[0]==="\\"?l:" "+l}}return a},{isClass:!0,isNode:!0});function Xl(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return typeof e.createSubScope=="function"?F3(e.createSubScope(),...r):F3(il(),e,...r)}var Zf="FunctionNode",Voe=["math","Node","SymbolNode"],Koe=ke(Zf,Voe,e=>{var{math:t,Node:r,SymbolNode:n}=e,i=s=>ro(s,{truncate:78});function a(s,u,l){for(var c="",f=/\$(?:\{([a-z_][a-z_0-9]*)(?:\[([0-9]+)\])?\}|\$)/gi,d=0,p;(p=f.exec(s))!==null;)if(c+=s.substring(d,p.index),d=p.index,p[0]==="$$")c+="$",d++;else{d+=p[0].length;var h=u[p[1]];if(!h)throw new ReferenceError("Template: Property "+p[1]+" does not exist.");if(p[2]===void 0)switch(typeof h){case"string":c+=h;break;case"object":if(Ot(h))c+=h.toTex(l);else if(Array.isArray(h))c+=h.map(function(b,g){if(Ot(b))return b.toTex(l);throw new TypeError("Template: "+p[1]+"["+g+"] is not a Node.")}).join(",");else throw new TypeError("Template: "+p[1]+" has to be a Node, String or array of Nodes");break;default:throw new TypeError("Template: "+p[1]+" has to be a Node, String or array of Nodes")}else if(Ot(h[p[2]]&&h[p[2]]))c+=h[p[2]].toTex(l);else throw new TypeError("Template: "+p[1]+"["+p[2]+"] is not a Node.")}return c+=s.slice(d),c}class o extends r{constructor(u,l){if(super(),typeof u=="string"&&(u=new n(u)),!Ot(u))throw new TypeError('Node expected as parameter "fn"');if(!Array.isArray(l)||!l.every(Ot))throw new TypeError('Array containing Nodes expected for parameter "args"');this.fn=u,this.args=l||[]}get name(){return this.fn.name||""}get type(){return Zf}get isFunctionNode(){return!0}_compile(u,l){var c=this.args.map($=>$._compile(u,l));if(kr(this.fn)){var f=this.fn.name;if(l[f]){var g=this.args;return function(k,K,G){var j=K[f];if(typeof j!="function")throw new TypeError("Argument '".concat(f,"' was not a function; received: ").concat(i(j)));if(j.rawArgs)return j(g,u,Xl(k,K),k);var q=c.map(re=>re(k,K,G));return j.apply(j,q)}}else{var d=f in u?Ai(u,f):void 0,p=typeof d=="function"&&d.rawArgs===!0,h=$=>{var k;if($.has(f))k=$.get(f);else if(f in u)k=Ai(u,f);else return o.onUndefinedFunction(f);if(typeof k=="function")return k;throw new TypeError("'".concat(f,`' is not a function; its value is:
  `).concat(i(k)))};if(p){var b=this.args;return function(k,K,G){var j=h(k);return j(b,u,Xl(k,K),k)}}else switch(c.length){case 0:return function(k,K,G){var j=h(k);return j()};case 1:return function(k,K,G){var j=h(k),q=c[0];return j(q(k,K,G))};case 2:return function(k,K,G){var j=h(k),q=c[0],re=c[1];return j(q(k,K,G),re(k,K,G))};default:return function(k,K,G){var j=h(k),q=c.map(re=>re(k,K,G));return j(...q)}}}}else if(ts(this.fn)&&Qs(this.fn.index)&&this.fn.index.isObjectProperty()){var v=this.fn.object._compile(u,l),S=this.fn.index.getObjectProperty(),w=this.args;return function(k,K,G){var j=v(k,K,G);vQ(j,S);var q=j[S]&&j[S].rawArgs;if(q)return j[S](w,u,Xl(k,K),k);var re=c.map(M=>M(k,K,G));return j[S].apply(j,re)}}else{var D=this.fn.toString(),_=this.fn._compile(u,l),N=this.args;return function(k,K,G){var j=_(k,K,G);if(typeof j!="function")throw new TypeError("Expression '".concat(D,"' did not evaluate to a function; value is:")+`
  `.concat(i(j)));if(j.rawArgs)return j(N,u,Xl(k,K),k);var q=c.map(re=>re(k,K,G));return j.apply(j,q)}}}forEach(u){u(this.fn,"fn",this);for(var l=0;l<this.args.length;l++)u(this.args[l],"args["+l+"]",this)}map(u){for(var l=this._ifNode(u(this.fn,"fn",this)),c=[],f=0;f<this.args.length;f++)c[f]=this._ifNode(u(this.args[f],"args["+f+"]",this));return new o(l,c)}clone(){return new o(this.fn,this.args.slice(0))}toString(u){var l,c=this.fn.toString(u);return u&&typeof u.handler=="object"&&st(u.handler,c)&&(l=u.handler[c](this,u)),typeof l!="undefined"?l:super.toString(u)}_toString(u){var l=this.args.map(function(f){return f.toString(u)}),c=_l(this.fn)?"("+this.fn.toString(u)+")":this.fn.toString(u);return c+"("+l.join(", ")+")"}toJSON(){return{mathjs:Zf,fn:this.fn,args:this.args}}toHTML(u){var l=this.args.map(function(c){return c.toHTML(u)});return'<span class="math-function">'+Zn(this.fn)+'</span><span class="math-paranthesis math-round-parenthesis">(</span>'+l.join('<span class="math-separator">,</span>')+'<span class="math-paranthesis math-round-parenthesis">)</span>'}toTex(u){var l;return u&&typeof u.handler=="object"&&st(u.handler,this.name)&&(l=u.handler[this.name](this,u)),typeof l!="undefined"?l:super.toTex(u)}_toTex(u){var l=this.args.map(function(d){return d.toTex(u)}),c;tw[this.name]&&(c=tw[this.name]),t[this.name]&&(typeof t[this.name].toTex=="function"||typeof t[this.name].toTex=="object"||typeof t[this.name].toTex=="string")&&(c=t[this.name].toTex);var f;switch(typeof c){case"function":f=c(this,u);break;case"string":f=a(c,this,u);break;case"object":switch(typeof c[l.length]){case"function":f=c[l.length](this,u);break;case"string":f=a(c[l.length],this,u);break}}return typeof f!="undefined"?f:a(Soe,this,u)}getIdentifier(){return this.type+":"+this.name}}return er(o,"name",Zf),er(o,"onUndefinedFunction",function(s){throw new Error("Undefined function "+s)}),er(o,"fromJSON",function(s){return new o(s.fn,s.args)}),o},{isClass:!0,isNode:!0}),nw="parse",Goe=["typed","numeric","config","AccessorNode","ArrayNode","AssignmentNode","BlockNode","ConditionalNode","ConstantNode","FunctionAssignmentNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","ParenthesisNode","RangeNode","RelationalNode","SymbolNode"],Woe=ke(nw,Goe,e=>{var{typed:t,numeric:r,config:n,AccessorNode:i,ArrayNode:a,AssignmentNode:o,BlockNode:s,ConditionalNode:u,ConstantNode:l,FunctionAssignmentNode:c,FunctionNode:f,IndexNode:d,ObjectNode:p,OperatorNode:h,ParenthesisNode:b,RangeNode:g,RelationalNode:v,SymbolNode:S}=e,w=t(nw,{string:function(A){return ce(A,{})},"Array | Matrix":function(A){return D(A,{})},"string, Object":function(A,Y){var le=Y.nodes!==void 0?Y.nodes:{};return ce(A,le)},"Array | Matrix, Object":D});function D(m){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=A.nodes!==void 0?A.nodes:{};return ti(m,function(le){if(typeof le!="string")throw new TypeError("String expected");return ce(le,Y)})}var _={NULL:0,DELIMITER:1,NUMBER:2,SYMBOL:3,UNKNOWN:4},N={",":!0,"(":!0,")":!0,"[":!0,"]":!0,"{":!0,"}":!0,'"':!0,"'":!0,";":!0,"+":!0,"-":!0,"*":!0,".*":!0,"/":!0,"./":!0,"%":!0,"^":!0,".^":!0,"~":!0,"!":!0,"&":!0,"|":!0,"^|":!0,"=":!0,":":!0,"?":!0,"==":!0,"!=":!0,"<":!0,">":!0,"<=":!0,">=":!0,"<<":!0,">>":!0,">>>":!0},$={mod:!0,to:!0,in:!0,and:!0,xor:!0,or:!0,not:!0},k={true:!0,false:!1,null:null,undefined:void 0},K=["NaN","Infinity"];function G(){return{extraNodes:{},expression:"",comment:"",index:0,token:"",tokenType:_.NULL,nestingLevel:0,conditionalLevel:null}}function j(m,A){return m.expression.substr(m.index,A)}function q(m){return j(m,1)}function re(m){m.index++}function M(m){return m.expression.charAt(m.index-1)}function U(m){return m.expression.charAt(m.index+1)}function x(m){for(m.tokenType=_.NULL,m.token="",m.comment="";;){if(q(m)==="#")for(;q(m)!==`
`&&q(m)!=="";)m.comment+=q(m),re(m);if(w.isWhitespace(q(m),m.nestingLevel))re(m);else break}if(q(m)===""){m.tokenType=_.DELIMITER;return}if(q(m)===`
`&&!m.nestingLevel){m.tokenType=_.DELIMITER,m.token=q(m),re(m);return}var A=q(m),Y=j(m,2),le=j(m,3);if(le.length===3&&N[le]){m.tokenType=_.DELIMITER,m.token=le,re(m),re(m),re(m);return}if(Y.length===2&&N[Y]){m.tokenType=_.DELIMITER,m.token=Y,re(m),re(m);return}if(N[A]){m.tokenType=_.DELIMITER,m.token=A,re(m);return}if(w.isDigitDot(A)){m.tokenType=_.NUMBER;var Fe=j(m,2);if(Fe==="0b"||Fe==="0o"||Fe==="0x"){for(m.token+=q(m),re(m),m.token+=q(m),re(m);w.isHexDigit(q(m));)m.token+=q(m),re(m);if(q(m)===".")for(m.token+=".",re(m);w.isHexDigit(q(m));)m.token+=q(m),re(m);else if(q(m)==="i")for(m.token+="i",re(m);w.isDigit(q(m));)m.token+=q(m),re(m);return}if(q(m)==="."){if(m.token+=q(m),re(m),!w.isDigit(q(m))){m.tokenType=_.DELIMITER;return}}else{for(;w.isDigit(q(m));)m.token+=q(m),re(m);w.isDecimalMark(q(m),U(m))&&(m.token+=q(m),re(m))}for(;w.isDigit(q(m));)m.token+=q(m),re(m);if(q(m)==="E"||q(m)==="e"){if(w.isDigit(U(m))||U(m)==="-"||U(m)==="+"){if(m.token+=q(m),re(m),(q(m)==="+"||q(m)==="-")&&(m.token+=q(m),re(m)),!w.isDigit(q(m)))throw Q(m,'Digit expected, got "'+q(m)+'"');for(;w.isDigit(q(m));)m.token+=q(m),re(m);if(w.isDecimalMark(q(m),U(m)))throw Q(m,'Digit expected, got "'+q(m)+'"')}else if(U(m)===".")throw re(m),Q(m,'Digit expected, got "'+q(m)+'"')}return}if(w.isAlpha(q(m),M(m),U(m))){for(;w.isAlpha(q(m),M(m),U(m))||w.isDigit(q(m));)m.token+=q(m),re(m);st($,m.token)?m.tokenType=_.DELIMITER:m.tokenType=_.SYMBOL;return}for(m.tokenType=_.UNKNOWN;q(m)!=="";)m.token+=q(m),re(m);throw Q(m,'Syntax error in part "'+m.token+'"')}function I(m){do x(m);while(m.token===`
`)}function ee(m){m.nestingLevel++}function oe(m){m.nestingLevel--}w.isAlpha=function(A,Y,le){return w.isValidLatinOrGreek(A)||w.isValidMathSymbol(A,le)||w.isValidMathSymbol(Y,A)},w.isValidLatinOrGreek=function(A){return/^[a-zA-Z_$\u00C0-\u02AF\u0370-\u03FF\u2100-\u214F]$/.test(A)},w.isValidMathSymbol=function(A,Y){return/^[\uD835]$/.test(A)&&/^[\uDC00-\uDFFF]$/.test(Y)&&/^[^\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDFCC\uDFCD]$/.test(Y)},w.isWhitespace=function(A,Y){return A===" "||A==="	"||A===`
`&&Y>0},w.isDecimalMark=function(A,Y){return A==="."&&Y!=="/"&&Y!=="*"&&Y!=="^"},w.isDigitDot=function(A){return A>="0"&&A<="9"||A==="."},w.isDigit=function(A){return A>="0"&&A<="9"},w.isHexDigit=function(A){return A>="0"&&A<="9"||A>="a"&&A<="f"||A>="A"&&A<="F"};function ce(m,A){var Y=G();Ba(Y,{expression:m,extraNodes:A}),x(Y);var le=$e(Y);if(Y.token!=="")throw Y.tokenType===_.DELIMITER?se(Y,"Unexpected operator "+Y.token):Q(Y,'Unexpected part "'+Y.token+'"');return le}function $e(m){var A,Y=[],le;for(m.token!==""&&m.token!==`
`&&m.token!==";"&&(A=me(m),m.comment&&(A.comment=m.comment));m.token===`
`||m.token===";";)Y.length===0&&A&&(le=m.token!==";",Y.push({node:A,visible:le})),x(m),m.token!==`
`&&m.token!==";"&&m.token!==""&&(A=me(m),m.comment&&(A.comment=m.comment),le=m.token!==";",Y.push({node:A,visible:le}));return Y.length>0?new s(Y):(A||(A=new l(void 0),m.comment&&(A.comment=m.comment)),A)}function me(m){var A,Y,le,Fe,He=_e(m);if(m.token==="="){if(kr(He))return A=He.name,I(m),le=me(m),new o(new S(A),le);if(ts(He))return I(m),le=me(m),new o(He.object,He.index,le);if(rs(He)&&kr(He.fn)&&(Fe=!0,Y=[],A=He.name,He.args.forEach(function(et,gt){kr(et)?Y[gt]=et.name:Fe=!1}),Fe))return I(m),le=me(m),new c(A,Y,le);throw Q(m,"Invalid left hand side of assignment operator =")}return He}function _e(m){for(var A=Ue(m);m.token==="?";){var Y=m.conditionalLevel;m.conditionalLevel=m.nestingLevel,I(m);var le=A,Fe=me(m);if(m.token!==":")throw Q(m,"False part of conditional expression expected");m.conditionalLevel=null,I(m);var He=me(m);A=new u(le,Fe,He),m.conditionalLevel=Y}return A}function Ue(m){for(var A=te(m);m.token==="or";)I(m),A=new h("or","or",[A,te(m)]);return A}function te(m){for(var A=Te(m);m.token==="xor";)I(m),A=new h("xor","xor",[A,Te(m)]);return A}function Te(m){for(var A=de(m);m.token==="and";)I(m),A=new h("and","and",[A,de(m)]);return A}function de(m){for(var A=De(m);m.token==="|";)I(m),A=new h("|","bitOr",[A,De(m)]);return A}function De(m){for(var A=Ne(m);m.token==="^|";)I(m),A=new h("^|","bitXor",[A,Ne(m)]);return A}function Ne(m){for(var A=je(m);m.token==="&";)I(m),A=new h("&","bitAnd",[A,je(m)]);return A}function je(m){for(var A=[Pe(m)],Y=[],le={"==":"equal","!=":"unequal","<":"smaller",">":"larger","<=":"smallerEq",">=":"largerEq"};st(le,m.token);){var Fe={name:m.token,fn:le[m.token]};Y.push(Fe),I(m),A.push(Pe(m))}return A.length===1?A[0]:A.length===2?new h(Y[0].name,Y[0].fn,A):new v(Y.map(He=>He.fn),A)}function Pe(m){var A,Y,le,Fe;A=ze(m);for(var He={"<<":"leftShift",">>":"rightArithShift",">>>":"rightLogShift"};st(He,m.token);)Y=m.token,le=He[Y],I(m),Fe=[A,ze(m)],A=new h(Y,le,Fe);return A}function ze(m){var A,Y,le,Fe;A=R(m);for(var He={to:"to",in:"to"};st(He,m.token);)Y=m.token,le=He[Y],I(m),Y==="in"&&m.token===""?A=new h("*","multiply",[A,new S("in")],!0):(Fe=[A,R(m)],A=new h(Y,le,Fe));return A}function R(m){var A,Y=[];if(m.token===":"?A=new l(1):A=J(m),m.token===":"&&m.conditionalLevel!==m.nestingLevel){for(Y.push(A);m.token===":"&&Y.length<3;)I(m),m.token===")"||m.token==="]"||m.token===","||m.token===""?Y.push(new S("end")):Y.push(J(m));Y.length===3?A=new g(Y[0],Y[2],Y[1]):A=new g(Y[0],Y[1])}return A}function J(m){var A,Y,le,Fe;A=he(m);for(var He={"+":"add","-":"subtract"};st(He,m.token);){Y=m.token,le=He[Y],I(m);var et=he(m);et.isPercentage?Fe=[A,new h("*","multiply",[A,et])]:Fe=[A,et],A=new h(Y,le,Fe)}return A}function he(m){var A,Y,le,Fe;A=Se(m),Y=A;for(var He={"*":"multiply",".*":"dotMultiply","/":"divide","./":"dotDivide"};st(He,m.token);)le=m.token,Fe=He[le],I(m),Y=Se(m),A=new h(le,Fe,[A,Y]);return A}function Se(m){var A,Y;for(A=Ce(m),Y=A;m.tokenType===_.SYMBOL||m.token==="in"&&Bt(A)||m.tokenType===_.NUMBER&&!Bt(Y)&&(!_r(Y)||Y.op==="!")||m.token==="(";)Y=Ce(m),A=new h("*","multiply",[A,Y],!0);return A}function Ce(m){for(var A=X(m),Y=A,le=[];m.token==="/"&&s0(Y);)if(le.push(Ba({},m)),I(m),m.tokenType===_.NUMBER)if(le.push(Ba({},m)),I(m),m.tokenType===_.SYMBOL||m.token==="(")Ba(m,le.pop()),le.pop(),Y=X(m),A=new h("/","divide",[A,Y]);else{le.pop(),Ba(m,le.pop());break}else{Ba(m,le.pop());break}return A}function X(m){var A,Y,le,Fe;A=ie(m);for(var He={"%":"mod",mod:"mod"};st(He,m.token);)Y=m.token,le=He[Y],I(m),Y==="%"&&m.tokenType===_.DELIMITER&&m.token!=="("?A=new h("/","divide",[A,new l(100)],!1,!0):(Fe=[A,ie(m)],A=new h(Y,le,Fe));return A}function ie(m){var A,Y,le,Fe={"-":"unaryMinus","+":"unaryPlus","~":"bitNot",not:"not"};return st(Fe,m.token)?(le=Fe[m.token],A=m.token,I(m),Y=[ie(m)],new h(A,le,Y)):fe(m)}function fe(m){var A,Y,le,Fe;return A=xe(m),(m.token==="^"||m.token===".^")&&(Y=m.token,le=Y==="^"?"pow":"dotPow",I(m),Fe=[A,ie(m)],A=new h(Y,le,Fe)),A}function xe(m){var A,Y,le,Fe;A=pe(m);for(var He={"!":"factorial","'":"ctranspose"};st(He,m.token);)Y=m.token,le=He[Y],x(m),Fe=[A],A=new h(Y,le,Fe),A=ve(m,A);return A}function pe(m){var A=[];if(m.tokenType===_.SYMBOL&&st(m.extraNodes,m.token)){var Y=m.extraNodes[m.token];if(x(m),m.token==="("){if(A=[],ee(m),x(m),m.token!==")")for(A.push(me(m));m.token===",";)x(m),A.push(me(m));if(m.token!==")")throw Q(m,"Parenthesis ) expected");oe(m),x(m)}return new Y(A)}return Be(m)}function Be(m){var A,Y;return m.tokenType===_.SYMBOL||m.tokenType===_.DELIMITER&&m.token in $?(Y=m.token,x(m),st(k,Y)?A=new l(k[Y]):K.indexOf(Y)!==-1?A=new l(r(Y,"number")):A=new S(Y),A=ve(m,A),A):Le(m)}function ve(m,A,Y){for(var le;(m.token==="("||m.token==="["||m.token===".")&&(!Y||Y.indexOf(m.token)!==-1);)if(le=[],m.token==="(")if(kr(A)||ts(A)){if(ee(m),x(m),m.token!==")")for(le.push(me(m));m.token===",";)x(m),le.push(me(m));if(m.token!==")")throw Q(m,"Parenthesis ) expected");oe(m),x(m),A=new f(A,le)}else return A;else if(m.token==="["){if(ee(m),x(m),m.token!=="]")for(le.push(me(m));m.token===",";)x(m),le.push(me(m));if(m.token!=="]")throw Q(m,"Parenthesis ] expected");oe(m),x(m),A=new i(A,new d(le))}else{if(x(m),m.tokenType!==_.SYMBOL)throw Q(m,"Property name expected after dot");le.push(new l(m.token)),x(m);var Fe=!0;A=new i(A,new d(le,Fe))}return A}function Le(m){var A,Y;return m.token==='"'?(Y=Ve(m),A=new l(Y),A=ve(m,A),A):P(m)}function Ve(m){for(var A="";q(m)!==""&&q(m)!=='"';)q(m)==="\\"&&(A+=q(m),re(m)),A+=q(m),re(m);if(x(m),m.token!=='"')throw Q(m,'End of string " expected');return x(m),JSON.parse('"'+A+'"')}function P(m){var A,Y;return m.token==="'"?(Y=C(m),A=new l(Y),A=ve(m,A),A):be(m)}function C(m){for(var A="";q(m)!==""&&q(m)!=="'";)q(m)==="\\"&&(A+=q(m),re(m)),A+=q(m),re(m);if(x(m),m.token!=="'")throw Q(m,"End of string ' expected");return x(m),JSON.parse('"'+A+'"')}function be(m){var A,Y,le,Fe;if(m.token==="["){if(ee(m),x(m),m.token!=="]"){var He=T(m);if(m.token===";"){for(le=1,Y=[He];m.token===";";)x(m),Y[le]=T(m),le++;if(m.token!=="]")throw Q(m,"End of matrix ] expected");oe(m),x(m),Fe=Y[0].items.length;for(var et=1;et<le;et++)if(Y[et].items.length!==Fe)throw se(m,"Column dimensions mismatch ("+Y[et].items.length+" !== "+Fe+")");A=new a(Y)}else{if(m.token!=="]")throw Q(m,"End of matrix ] expected");oe(m),x(m),A=He}}else oe(m),x(m),A=new a([]);return ve(m,A)}return z(m)}function T(m){for(var A=[me(m)],Y=1;m.token===",";)x(m),A[Y]=me(m),Y++;return new a(A)}function z(m){if(m.token==="{"){ee(m);var A,Y={};do if(x(m),m.token!=="}"){if(m.token==='"')A=Ve(m);else if(m.token==="'")A=C(m);else if(m.tokenType===_.SYMBOL||m.tokenType===_.DELIMITER&&m.token in $)A=m.token,x(m);else throw Q(m,"Symbol or string expected as object key");if(m.token!==":")throw Q(m,"Colon : expected after object key");x(m),Y[A]=me(m)}while(m.token===",");if(m.token!=="}")throw Q(m,"Comma , or bracket } expected after object value");oe(m),x(m);var le=new p(Y);return le=ve(m,le),le}return E(m)}function E(m){var A;return m.tokenType===_.NUMBER?(A=m.token,x(m),new l(r(A,n.number))):O(m)}function O(m){var A;if(m.token==="("){if(ee(m),x(m),A=me(m),m.token!==")")throw Q(m,"Parenthesis ) expected");return oe(m),x(m),A=new b(A),A=ve(m,A),A}return H(m)}function H(m){throw m.token===""?Q(m,"Unexpected end of expression"):Q(m,"Value expected")}function L(m){return m.index-m.token.length+1}function Q(m,A){var Y=L(m),le=new SyntaxError(A+" (char "+Y+")");return le.char=Y,le}function se(m,A){var Y=L(m),le=new SyntaxError(A+" (char "+Y+")");return le.char=Y,le}return t.addConversion({from:"string",to:"Node",convert:w}),w}),iw="compile",Yoe=["typed","parse"],Zoe=ke(iw,Yoe,e=>{var{typed:t,parse:r}=e;return t(iw,{string:function(i){return r(i).compile()},"Array | Matrix":function(i){return ti(i,function(a){return r(a).compile()})}})}),aw="evaluate",Joe=["typed","parse"],Xoe=ke(aw,Joe,e=>{var{typed:t,parse:r}=e;return t(aw,{string:function(i){var a=il();return r(i).compile().evaluate(a)},"string, Map | Object":function(i,a){return r(i).compile().evaluate(a)},"Array | Matrix":function(i){var a=il();return ti(i,function(o){return r(o).compile().evaluate(a)})},"Array | Matrix, Map | Object":function(i,a){return ti(i,function(o){return r(o).compile().evaluate(a)})}})}),Qoe="Parser",ese=["evaluate"],tse=ke(Qoe,ese,e=>{var{evaluate:t}=e;function r(){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator");Object.defineProperty(this,"scope",{value:il(),writable:!1})}return r.prototype.type="Parser",r.prototype.isParser=!0,r.prototype.evaluate=function(n){return t(n,this.scope)},r.prototype.get=function(n){if(this.scope.has(n))return this.scope.get(n)},r.prototype.getAll=function(){return bQ(this.scope)},r.prototype.getAllAsMap=function(){return this.scope},r.prototype.set=function(n,i){return this.scope.set(n,i),i},r.prototype.remove=function(n){this.scope.delete(n)},r.prototype.clear=function(){this.scope.clear()},r},{isClass:!0}),ow="apply",rse=["typed","isInteger"],rE=ke(ow,rse,e=>{var{typed:t,isInteger:r}=e;return t(ow,{"Array | Matrix, number | BigNumber, function":function(i,a,o){if(!r(a))throw new TypeError("Integer number expected for dimension");var s=Array.isArray(i)?eu(i):i.size();if(a<0||a>=s.length)throw new ha(a,s.length);return on(i)?i.create(bp(i.valueOf(),a,o)):bp(i,a,o)}})});function bp(e,t,r){var n,i,a;if(t<=0)if(Array.isArray(e[0])){for(a=nse(e),i=[],n=0;n<a.length;n++)i[n]=bp(a[n],t-1,r);return i}else return r(e);else{for(i=[],n=0;n<e.length;n++)i[n]=bp(e[n],t-1,r);return i}}function nse(e){var t=e.length,r=e[0].length,n,i,a=[];for(i=0;i<r;i++){var o=[];for(n=0;n<t;n++)o.push(e[n][i]);a.push(o)}return a}var ise="filter",ase=["typed"],ose=ke(ise,ase,e=>{var{typed:t}=e;return t("filter",{"Array, function":sw,"Matrix, function":function(n,i){return n.create(sw(n.toArray(),i))},"Array, RegExp":hp,"Matrix, RegExp":function(n,i){return n.create(hp(n.toArray(),i))}})});function sw(e,t){var r=Sl(t);return $7(e,function(n,i,a){return r===1?t(n):r===2?t(n,[i]):t(n,[i],a)})}var uw="forEach",sse=["typed"],use=ke(uw,sse,e=>{var{typed:t}=e;return t(uw,{"Array, function":lse,"Matrix, function":function(n,i){return n.forEach(i)}})});function lse(e,t){var r=Sl(t),n=function i(a,o){Array.isArray(a)?Ah(a,function(s,u){i(s,o.concat(u))}):r===1?t(a):r===2?t(a,o):t(a,o,e)};n(e,[])}var lw="map",cse=["typed"],fse=ke(lw,cse,e=>{var{typed:t}=e;return t(lw,{"Array, function":dse,"Matrix, function":function(n,i){return n.map(i)}})});function dse(e,t){var r=Sl(t),n=function i(a,o){if(Array.isArray(a))return a.map(function(l,c){return i(l,o.concat(c))});try{return r===1?t(a):r===2?t(a,o):t(a,o,e)}catch(l){if(l instanceof TypeError&&"data"in l&&l.data.category==="wrongType"){var s="map attempted to call '".concat(l.data.fn,"(").concat(a),u=JSON.stringify(o);throw r===2?s+=","+u:r!==1&&(s+=",".concat(u,",").concat(e)),s+=")' but argument ".concat(l.data.index+1," of type "),s+="".concat(l.data.actual," does not match expected type "),s+=l.data.expected.join(" or "),new TypeError(s)}throw l}};return n(e,[])}var cw="range",pse=["typed","config","?matrix","?bignumber","smaller","smallerEq","larger","largerEq"],nE=ke(cw,pse,e=>{var{typed:t,config:r,matrix:n,bignumber:i,smaller:a,smallerEq:o,larger:s,largerEq:u}=e;return t(cw,{string:c,"string, boolean":c,"number, number":function(v,S){return l(f(v,S,1))},"number, number, number":function(v,S,w){return l(f(v,S,w))},"number, number, boolean":function(v,S,w){return l(w?d(v,S,1):f(v,S,1))},"number, number, number, boolean":function(v,S,w,D){return l(D?d(v,S,w):f(v,S,w))},"BigNumber, BigNumber":function(v,S){var w=v.constructor;return l(p(v,S,new w(1)))},"BigNumber, BigNumber, BigNumber":function(v,S,w){return l(p(v,S,w))},"BigNumber, BigNumber, boolean":function(v,S,w){var D=v.constructor;return l(w?h(v,S,new D(1)):p(v,S,new D(1)))},"BigNumber, BigNumber, BigNumber, boolean":function(v,S,w,D){return l(D?h(v,S,w):p(v,S,w))}});function l(g){return r.matrix==="Matrix"?n?n(g):Og():g}function c(g,v){var S=b(g);if(!S)throw new SyntaxError('String "'+g+'" is no valid range');var w;return r.number==="BigNumber"?(i===void 0&&kg(),w=v?h:p,l(w(i(S.start),i(S.end),i(S.step)))):(w=v?d:f,l(w(S.start,S.end,S.step)))}function f(g,v,S){var w=[],D=g;if(S>0)for(;a(D,v);)w.push(D),D+=S;else if(S<0)for(;s(D,v);)w.push(D),D+=S;return w}function d(g,v,S){var w=[],D=g;if(S>0)for(;o(D,v);)w.push(D),D+=S;else if(S<0)for(;u(D,v);)w.push(D),D+=S;return w}function p(g,v,S){var w=i(0),D=[],_=g;if(S.gt(w))for(;a(_,v);)D.push(_),_=_.plus(S);else if(S.lt(w))for(;s(_,v);)D.push(_),_=_.plus(S);return D}function h(g,v,S){var w=i(0),D=[],_=g;if(S.gt(w))for(;o(_,v);)D.push(_),_=_.plus(S);else if(S.lt(w))for(;u(_,v);)D.push(_),_=_.plus(S);return D}function b(g){var v=g.split(":"),S=v.map(function(D){return Number(D)}),w=S.some(function(D){return isNaN(D)});if(w)return null;switch(S.length){case 2:return{start:S[0],end:S[1],step:1};case 3:return{start:S[0],end:S[2],step:S[1]};default:return null}}}),fw="size",hse=["typed","config","?matrix"],mse=ke(fw,hse,e=>{var{typed:t,config:r,matrix:n}=e;return t(fw,{Matrix:function(a){return a.create(a.size())},Array:eu,string:function(a){return r.matrix==="Array"?[a.length]:n([a.length])},"number | Complex | BigNumber | Unit | boolean | null":function(a){return r.matrix==="Array"?[]:n?n([]):Og()}})}),dw="partitionSelect",vse=["typed","isNumeric","isNaN","compare"],gse=ke(dw,vse,e=>{var{typed:t,isNumeric:r,isNaN:n,compare:i}=e,a=i,o=(l,c)=>-i(l,c);return t(dw,{"Array | Matrix, number":function(c,f){return s(c,f,a)},"Array | Matrix, number, string":function(c,f,d){if(d==="asc")return s(c,f,a);if(d==="desc")return s(c,f,o);throw new Error('Compare string must be "asc" or "desc"')},"Array | Matrix, number, function":s});function s(l,c,f){if(!_t(c)||c<0)throw new Error("k must be a non-negative integer");if(on(l)){var d=l.size();if(d.length>1)throw new Error("Only one dimensional matrices supported");return u(l.valueOf(),c,f)}if(Array.isArray(l))return u(l,c,f)}function u(l,c,f){if(c>=l.length)throw new Error("k out of bounds");for(var d=0;d<l.length;d++)if(r(l[d])&&n(l[d]))return l[d];for(var p=0,h=l.length-1;p<h;){for(var b=p,g=h,v=l[Math.floor(Math.random()*(h-p+1))+p];b<g;)if(f(l[b],v)>=0){var S=l[g];l[g]=l[b],l[b]=S,--g}else++b;f(l[b],v)>0&&--b,c<=b?h=b:p=b+1}return l[c]}}),pw="combinationsWithRep",yse=["typed"],bse=ke(pw,yse,e=>{var{typed:t}=e;return t(pw,{"number, number":function(n,i){if(!_t(n)||n<0)throw new TypeError("Positive integer value expected in function combinationsWithRep");if(!_t(i)||i<0)throw new TypeError("Positive integer value expected in function combinationsWithRep");if(n<1)throw new TypeError("k must be less than or equal to n + k - 1");if(i<n-1){var a=Va(n,n+i-1);return a/Va(1,i)}var o=Va(i+1,n+i-1);return o/Va(1,n-1)},"BigNumber, BigNumber":function(n,i){var a=n.constructor,o,s,u=new a(1),l=n.minus(u);if(!hw(n)||!hw(i))throw new TypeError("Positive integer value expected in function combinationsWithRep");if(n.lt(u))throw new TypeError("k must be less than or equal to n + k - 1 in function combinationsWithRep");if(o=u,i.lt(l))for(s=u;s.lte(l);s=s.plus(u))o=o.times(i.plus(s)).dividedBy(s);else for(s=u;s.lte(i);s=s.plus(u))o=o.times(l.plus(s)).dividedBy(s);return o}})});function hw(e){return e.isInteger()&&e.gte(0)}var mw="factorial",wse=["typed","gamma"],_se=ke(mw,wse,e=>{var{typed:t,gamma:r}=e;return t(mw,{number:function(i){if(i<0)throw new Error("Value must be non-negative");return r(i+1)},BigNumber:function(i){if(i.isNegative())throw new Error("Value must be non-negative");return r(i.plus(1))},"Array | Matrix":t.referToSelf(n=>i=>ti(i,n))})}),vw="multinomial",xse=["typed","add","divide","multiply","factorial","isInteger","isPositive"],Ese=ke(vw,xse,e=>{var{typed:t,add:r,divide:n,multiply:i,factorial:a,isInteger:o,isPositive:s}=e;return t(vw,{"Array | Matrix":function(l){var c=0,f=1;return no(l,function(d){if(!o(d)||!s(d))throw new TypeError("Positive integer value expected in function multinomial");c=r(c,d),f=i(f,a(d))}),n(a(c),f)}})}),gw="permutations",Dse=["typed","factorial"],Sse=ke(gw,Dse,e=>{var{typed:t,factorial:r}=e;return t(gw,{"number | BigNumber":r,"number, number":function(i,a){if(!_t(i)||i<0)throw new TypeError("Positive integer value expected in function permutations");if(!_t(a)||a<0)throw new TypeError("Positive integer value expected in function permutations");if(a>i)throw new TypeError("second argument k must be less than or equal to first argument n");return Va(i-a+1,i)},"BigNumber, BigNumber":function(i,a){var o,s;if(!yw(i)||!yw(a))throw new TypeError("Positive integer value expected in function permutations");if(a.gt(i))throw new TypeError("second argument k must be less than or equal to first argument n");var u=i.mul(0).add(1);for(o=u,s=i.minus(a).plus(1);s.lte(i);s=s.plus(1))o=o.times(s);return o}})});function yw(e){return e.isInteger()&&e.gte(0)}var iE={exports:{}};(function(e){(function(t,r,n){function i(u){var l=this,c=s();l.next=function(){var f=2091639*l.s0+l.c*23283064365386963e-26;return l.s0=l.s1,l.s1=l.s2,l.s2=f-(l.c=f|0)},l.c=1,l.s0=c(" "),l.s1=c(" "),l.s2=c(" "),l.s0-=c(u),l.s0<0&&(l.s0+=1),l.s1-=c(u),l.s1<0&&(l.s1+=1),l.s2-=c(u),l.s2<0&&(l.s2+=1),c=null}function a(u,l){return l.c=u.c,l.s0=u.s0,l.s1=u.s1,l.s2=u.s2,l}function o(u,l){var c=new i(u),f=l&&l.state,d=c.next;return d.int32=function(){return c.next()*4294967296|0},d.double=function(){return d()+(d()*2097152|0)*11102230246251565e-32},d.quick=d,f&&(typeof f=="object"&&a(f,c),d.state=function(){return a(c,{})}),d}function s(){var u=4022871197,l=function(c){c=String(c);for(var f=0;f<c.length;f++){u+=c.charCodeAt(f);var d=.02519603282416938*u;u=d>>>0,d-=u,d*=u,u=d>>>0,d-=u,u+=d*4294967296}return(u>>>0)*23283064365386963e-26};return l}r&&r.exports?r.exports=o:n&&n.amd?n(function(){return o}):this.alea=o})(lt,e,!1)})(iE);var aE={exports:{}};(function(e){(function(t,r,n){function i(s){var u=this,l="";u.x=0,u.y=0,u.z=0,u.w=0,u.next=function(){var f=u.x^u.x<<11;return u.x=u.y,u.y=u.z,u.z=u.w,u.w^=u.w>>>19^f^f>>>8},s===(s|0)?u.x=s:l+=s;for(var c=0;c<l.length+64;c++)u.x^=l.charCodeAt(c)|0,u.next()}function a(s,u){return u.x=s.x,u.y=s.y,u.z=s.z,u.w=s.w,u}function o(s,u){var l=new i(s),c=u&&u.state,f=function(){return(l.next()>>>0)/4294967296};return f.double=function(){do var d=l.next()>>>11,p=(l.next()>>>0)/4294967296,h=(d+p)/(1<<21);while(h===0);return h},f.int32=l.next,f.quick=f,c&&(typeof c=="object"&&a(c,l),f.state=function(){return a(l,{})}),f}r&&r.exports?r.exports=o:n&&n.amd?n(function(){return o}):this.xor128=o})(lt,e,!1)})(aE);var oE={exports:{}};(function(e){(function(t,r,n){function i(s){var u=this,l="";u.next=function(){var f=u.x^u.x>>>2;return u.x=u.y,u.y=u.z,u.z=u.w,u.w=u.v,(u.d=u.d+362437|0)+(u.v=u.v^u.v<<4^(f^f<<1))|0},u.x=0,u.y=0,u.z=0,u.w=0,u.v=0,s===(s|0)?u.x=s:l+=s;for(var c=0;c<l.length+64;c++)u.x^=l.charCodeAt(c)|0,c==l.length&&(u.d=u.x<<10^u.x>>>4),u.next()}function a(s,u){return u.x=s.x,u.y=s.y,u.z=s.z,u.w=s.w,u.v=s.v,u.d=s.d,u}function o(s,u){var l=new i(s),c=u&&u.state,f=function(){return(l.next()>>>0)/4294967296};return f.double=function(){do var d=l.next()>>>11,p=(l.next()>>>0)/4294967296,h=(d+p)/(1<<21);while(h===0);return h},f.int32=l.next,f.quick=f,c&&(typeof c=="object"&&a(c,l),f.state=function(){return a(l,{})}),f}r&&r.exports?r.exports=o:n&&n.amd?n(function(){return o}):this.xorwow=o})(lt,e,!1)})(oE);var sE={exports:{}};(function(e){(function(t,r,n){function i(s){var u=this;u.next=function(){var c=u.x,f=u.i,d,p;return d=c[f],d^=d>>>7,p=d^d<<24,d=c[f+1&7],p^=d^d>>>10,d=c[f+3&7],p^=d^d>>>3,d=c[f+4&7],p^=d^d<<7,d=c[f+7&7],d=d^d<<13,p^=d^d<<9,c[f]=p,u.i=f+1&7,p};function l(c,f){var d,p=[];if(f===(f|0))p[0]=f;else for(f=""+f,d=0;d<f.length;++d)p[d&7]=p[d&7]<<15^f.charCodeAt(d)+p[d+1&7]<<13;for(;p.length<8;)p.push(0);for(d=0;d<8&&p[d]===0;++d);for(d==8?p[7]=-1:p[d],c.x=p,c.i=0,d=256;d>0;--d)c.next()}l(u,s)}function a(s,u){return u.x=s.x.slice(),u.i=s.i,u}function o(s,u){s==null&&(s=+new Date);var l=new i(s),c=u&&u.state,f=function(){return(l.next()>>>0)/4294967296};return f.double=function(){do var d=l.next()>>>11,p=(l.next()>>>0)/4294967296,h=(d+p)/(1<<21);while(h===0);return h},f.int32=l.next,f.quick=f,c&&(c.x&&a(c,l),f.state=function(){return a(l,{})}),f}r&&r.exports?r.exports=o:n&&n.amd?n(function(){return o}):this.xorshift7=o})(lt,e,!1)})(sE);var uE={exports:{}};(function(e){(function(t,r,n){function i(s){var u=this;u.next=function(){var c=u.w,f=u.X,d=u.i,p,h;return u.w=c=c+1640531527|0,h=f[d+34&127],p=f[d=d+1&127],h^=h<<13,p^=p<<17,h^=h>>>15,p^=p>>>12,h=f[d]=h^p,u.i=d,h+(c^c>>>16)|0};function l(c,f){var d,p,h,b,g,v=[],S=128;for(f===(f|0)?(p=f,f=null):(f=f+"\0",p=0,S=Math.max(S,f.length)),h=0,b=-32;b<S;++b)f&&(p^=f.charCodeAt((b+32)%f.length)),b===0&&(g=p),p^=p<<10,p^=p>>>15,p^=p<<4,p^=p>>>13,b>=0&&(g=g+1640531527|0,d=v[b&127]^=p+g,h=d==0?h+1:0);for(h>=128&&(v[(f&&f.length||0)&127]=-1),h=127,b=4*128;b>0;--b)p=v[h+34&127],d=v[h=h+1&127],p^=p<<13,d^=d<<17,p^=p>>>15,d^=d>>>12,v[h]=p^d;c.w=g,c.X=v,c.i=h}l(u,s)}function a(s,u){return u.i=s.i,u.w=s.w,u.X=s.X.slice(),u}function o(s,u){s==null&&(s=+new Date);var l=new i(s),c=u&&u.state,f=function(){return(l.next()>>>0)/4294967296};return f.double=function(){do var d=l.next()>>>11,p=(l.next()>>>0)/4294967296,h=(d+p)/(1<<21);while(h===0);return h},f.int32=l.next,f.quick=f,c&&(c.X&&a(c,l),f.state=function(){return a(l,{})}),f}r&&r.exports?r.exports=o:n&&n.amd?n(function(){return o}):this.xor4096=o})(lt,e,!1)})(uE);var lE={exports:{}};(function(e){(function(t,r,n){function i(s){var u=this,l="";u.next=function(){var f=u.b,d=u.c,p=u.d,h=u.a;return f=f<<25^f>>>7^d,d=d-p|0,p=p<<24^p>>>8^h,h=h-f|0,u.b=f=f<<20^f>>>12^d,u.c=d=d-p|0,u.d=p<<16^d>>>16^h,u.a=h-f|0},u.a=0,u.b=0,u.c=-1640531527,u.d=1367130551,s===Math.floor(s)?(u.a=s/4294967296|0,u.b=s|0):l+=s;for(var c=0;c<l.length+20;c++)u.b^=l.charCodeAt(c)|0,u.next()}function a(s,u){return u.a=s.a,u.b=s.b,u.c=s.c,u.d=s.d,u}function o(s,u){var l=new i(s),c=u&&u.state,f=function(){return(l.next()>>>0)/4294967296};return f.double=function(){do var d=l.next()>>>11,p=(l.next()>>>0)/4294967296,h=(d+p)/(1<<21);while(h===0);return h},f.int32=l.next,f.quick=f,c&&(typeof c=="object"&&a(c,l),f.state=function(){return a(l,{})}),f}r&&r.exports?r.exports=o:n&&n.amd?n(function(){return o}):this.tychei=o})(lt,e,!1)})(lE);var cE={exports:{}};(function(e){(function(t,r,n){var i=256,a=6,o=52,s="random",u=n.pow(i,a),l=n.pow(2,o),c=l*2,f=i-1,d;function p(D,_,N){var $=[];_=_==!0?{entropy:!0}:_||{};var k=v(g(_.entropy?[D,w(r)]:D==null?S():D,3),$),K=new h($),G=function(){for(var j=K.g(a),q=u,re=0;j<l;)j=(j+re)*i,q*=i,re=K.g(1);for(;j>=c;)j/=2,q/=2,re>>>=1;return(j+re)/q};return G.int32=function(){return K.g(4)|0},G.quick=function(){return K.g(4)/4294967296},G.double=G,v(w(K.S),r),(_.pass||N||function(j,q,re,M){return M&&(M.S&&b(M,K),j.state=function(){return b(K,{})}),re?(n[s]=j,q):j})(G,k,"global"in _?_.global:this==n,_.state)}function h(D){var _,N=D.length,$=this,k=0,K=$.i=$.j=0,G=$.S=[];for(N||(D=[N++]);k<i;)G[k]=k++;for(k=0;k<i;k++)G[k]=G[K=f&K+D[k%N]+(_=G[k])],G[K]=_;($.g=function(j){for(var q,re=0,M=$.i,U=$.j,x=$.S;j--;)q=x[M=f&M+1],re=re*i+x[f&(x[M]=x[U=f&U+q])+(x[U]=q)];return $.i=M,$.j=U,re})(i)}function b(D,_){return _.i=D.i,_.j=D.j,_.S=D.S.slice(),_}function g(D,_){var N=[],$=typeof D,k;if(_&&$=="object")for(k in D)try{N.push(g(D[k],_-1))}catch{}return N.length?N:$=="string"?D:D+"\0"}function v(D,_){for(var N=D+"",$,k=0;k<N.length;)_[f&k]=f&($^=_[f&k]*19)+N.charCodeAt(k++);return w(_)}function S(){try{var D;return d&&(D=d.randomBytes)?D=D(i):(D=new Uint8Array(i),(t.crypto||t.msCrypto).getRandomValues(D)),w(D)}catch{var _=t.navigator,N=_&&_.plugins;return[+new Date,t,N,t.screen,w(r)]}}function w(D){return String.fromCharCode.apply(0,D)}if(v(n.random(),r),e.exports){e.exports=p;try{d=require("crypto")}catch{}}else n["seed"+s]=p})(typeof self!="undefined"?self:lt,[],Math)})(cE);var Cse=iE.exports,Ase=aE.exports,Nse=oE.exports,Tse=sE.exports,kse=uE.exports,Ose=lE.exports,tu=cE.exports;tu.alea=Cse;tu.xor128=Ase;tu.xorwow=Nse;tu.xorshift7=Tse;tu.xor4096=kse;tu.tychei=Ose;var fE=tu,Fse=fE(Date.now());function ol(e){var t;function r(i){t=i===null?Fse:fE(String(i))}r(e);function n(){return t()}return n}var bw="pickRandom",$se=["typed","config","?on"],Bse=ke(bw,$se,e=>{var{typed:t,config:r,on:n}=e,i=ol(r.randomSeed);return n&&n("config",function(o,s){o.randomSeed!==s.randomSeed&&(i=ol(o.randomSeed))}),t(bw,{"Array | Matrix":function(s){return a(s,{})},"Array | Matrix, Object":function(s,u){return a(s,u)},"Array | Matrix, number":function(s,u){return a(s,{number:u})},"Array | Matrix, Array | Matrix":function(s,u){return a(s,{weights:u})},"Array | Matrix, Array | Matrix, number":function(s,u,l){return a(s,{number:l,weights:u})},"Array | Matrix, number, Array | Matrix":function(s,u,l){return a(s,{number:u,weights:l})}});function a(o,s){var{number:u,weights:l,elementWise:c=!0}=s,f=typeof u=="undefined";f&&(u=1);var d=on(o)?o.create:on(l)?l.create:null;o=o.valueOf(),l&&(l=l.valueOf()),c===!0&&(o=Us(o),l=Us(l));var p=0;if(typeof l!="undefined"){if(l.length!==o.length)throw new Error("Weights must have the same length as possibles");for(var h=0,b=l.length;h<b;h++){if(!an(l[h])||l[h]<0)throw new Error("Weights must be an array of positive numbers");p+=l[h]}}for(var g=o.length,v=[],S;v.length<u;){if(typeof l=="undefined")S=o[Math.floor(i()*g)];else for(var w=i()*p,D=0,_=o.length;D<_;D++)if(w-=l[D],w<0){S=o[D];break}v.push(S)}return f?v[0]:d?d(v):v}});function dE(e,t){var r=[];if(e=e.slice(0),e.length>1)for(var n=0,i=e.shift();n<i;n++)r.push(dE(e,t));else for(var a=0,o=e.shift();a<o;a++)r.push(t());return r}var ww="random",Pse=ke(ww,["typed","config","?on"],e=>{var{typed:t,config:r,on:n,matrix:i}=e,a=ol(r.randomSeed);return n&&n("config",function(s,u){s.randomSeed!==u.randomSeed&&(a=ol(s.randomSeed))}),t(ww,{"":()=>o(0,1),number:s=>o(0,s),"number, number":(s,u)=>o(s,u)});function o(s,u){return s+a()*(u-s)}}),_w="randomInt",Ise=["typed","config","?on"],Mse=ke(_w,Ise,e=>{var{typed:t,config:r,on:n}=e,i=ol(r.randomSeed);return n&&n("config",function(s,u){s.randomSeed!==u.randomSeed&&(i=ol(s.randomSeed))}),t(_w,{"":()=>o(0,1),number:s=>o(0,s),"number, number":(s,u)=>o(s,u),"Array | Matrix":s=>a(s,0,1),"Array | Matrix, number":(s,u)=>a(s,0,u),"Array | Matrix, number, number":(s,u,l)=>a(s,u,l)});function a(s,u,l){var c=dE(s.valueOf(),()=>o(u,l));return on(s)?s.create(c):c}function o(s,u){return Math.floor(s+i()*(u-s))}}),xw="equalScalar",Rse=ke(xw,["typed","config"],e=>{var{typed:t,config:r}=e;return t(xw,{"number, number":function(i,a){return oa(i,a,r.epsilon)}})}),Ew="compare",Lse=ke(Ew,["typed","config"],e=>{var{typed:t,config:r}=e;return t(Ew,{"number, number":function(i,a){return oa(i,a,r.epsilon)?0:i>a?1:-1}})}),gu=function e(t,r){var n=/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,i=/(^[ ]*|[ ]*$)/g,a=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,o=/^0x[0-9a-f]+$/i,s=/^0/,u=function(w){return e.insensitive&&(""+w).toLowerCase()||""+w},l=u(t).replace(i,"")||"",c=u(r).replace(i,"")||"",f=l.replace(n,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),d=c.replace(n,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),p=parseInt(l.match(o),16)||f.length!==1&&l.match(a)&&Date.parse(l),h=parseInt(c.match(o),16)||p&&c.match(a)&&Date.parse(c)||null,b,g;if(h){if(p<h)return-1;if(p>h)return 1}for(var v=0,S=Math.max(f.length,d.length);v<S;v++){if(b=!(f[v]||"").match(s)&&parseFloat(f[v])||f[v]||0,g=!(d[v]||"").match(s)&&parseFloat(d[v])||d[v]||0,isNaN(b)!==isNaN(g))return isNaN(b)?1:-1;if(typeof b!=typeof g&&(b+="",g+=""),b<g)return-1;if(b>g)return 1}return 0},Dw="compareNatural",jse=["typed","compare"],Use=ke(Dw,jse,e=>{var{typed:t,compare:r}=e,n=r.signatures["boolean,boolean"];return t(Dw,{"any, any":i});function i(u,l){var c=xn(u),f=xn(l),d;if((c==="number"||c==="BigNumber"||c==="Fraction")&&(f==="number"||f==="BigNumber"||f==="Fraction"))return d=r(u,l),d.toString()!=="0"?d>0?1:-1:gu(c,f);var p=["Array","DenseMatrix","SparseMatrix"];if(p.includes(c)||p.includes(f))return d=a(i,u,l),d!==0?d:gu(c,f);if(c!==f)return gu(c,f);if(c==="Complex")return zse(u,l);if(c==="Unit")return u.equalBase(l)?i(u.value,l.value):o(i,u.formatUnits(),l.formatUnits());if(c==="boolean")return n(u,l);if(c==="string")return gu(u,l);if(c==="Object")return s(i,u,l);if(c==="null"||c==="undefined")return 0;throw new TypeError('Unsupported type of value "'+c+'"')}function a(u,l,c){return Nu(l)&&Nu(c)?o(u,l.toJSON().values,c.toJSON().values):Nu(l)?a(u,l.toArray(),c):Nu(c)?a(u,l,c.toArray()):pp(l)?a(u,l.toJSON().data,c):pp(c)?a(u,l,c.toJSON().data):Array.isArray(l)?Array.isArray(c)?o(u,l,c):a(u,l,[c]):a(u,[l],c)}function o(u,l,c){for(var f=0,d=Math.min(l.length,c.length);f<d;f++){var p=u(l[f],c[f]);if(p!==0)return p}return l.length>c.length?1:l.length<c.length?-1:0}function s(u,l,c){var f=Object.keys(l),d=Object.keys(c);f.sort(gu),d.sort(gu);var p=o(u,f,d);if(p!==0)return p;for(var h=0;h<f.length;h++){var b=u(l[f[h]],c[d[h]]);if(b!==0)return b}return 0}});function zse(e,t){return e.re>t.re?1:e.re<t.re?-1:e.im>t.im?1:e.im<t.im?-1:0}var Sw="compareText";F7.signature="any, any";var qse=ke(Sw,["typed"],e=>{var{typed:t}=e;return t(Sw,F7)}),Cw="equal",Hse=ke(Cw,["typed","equalScalar"],e=>{var{typed:t,equalScalar:r}=e;return t(Cw,{"any, any":function(i,a){return i===null?a===null:a===null?i===null:i===void 0?a===void 0:a===void 0?i===void 0:r(i,a)}})}),Aw="equalText",Vse=["typed","compareText","isZero"],Kse=ke(Aw,Vse,e=>{var{typed:t,compareText:r,isZero:n}=e;return t(Aw,{"any, any":function(a,o){return n(r(a,o))}})}),Nw="smaller",Gse=ke(Nw,["typed","config"],e=>{var{typed:t,config:r}=e;return t(Nw,{"number, number":function(i,a){return i<a&&!oa(i,a,r.epsilon)}})}),Tw="smallerEq",Wse=ke(Tw,["typed","config"],e=>{var{typed:t,config:r}=e;return t(Tw,{"number, number":function(i,a){return i<=a||oa(i,a,r.epsilon)}})}),kw="larger",Yse=ke(kw,["typed","config"],e=>{var{typed:t,config:r}=e;return t(kw,{"number, number":function(i,a){return i>a&&!oa(i,a,r.epsilon)}})}),Ow="largerEq",Zse=ke(Ow,["typed","config"],e=>{var{typed:t,config:r}=e;return t(Ow,{"number, number":function(i,a){return i>=a||oa(i,a,r.epsilon)}})}),Fw="deepEqual",Jse=["typed","equal"],Xse=ke(Fw,Jse,e=>{var{typed:t,equal:r}=e;return t(Fw,{"any, any":function(a,o){return n(a.valueOf(),o.valueOf())}});function n(i,a){if(Array.isArray(i))if(Array.isArray(a)){var o=i.length;if(o!==a.length)return!1;for(var s=0;s<o;s++)if(!n(i[s],a[s]))return!1;return!0}else return!1;else return Array.isArray(a)?!1:r(i,a)}}),$w="unequal",Qse=ke($w,["typed","equalScalar"],e=>{var{typed:t,equalScalar:r}=e;return t($w,{"any, any":function(i,a){return i===null?a!==null:a===null?i!==null:i===void 0?a!==void 0:a===void 0?i!==void 0:!r(i,a)}})}),eue="erf",tue=["typed"],rue=ke(eue,tue,e=>{var{typed:t}=e;return t("name",{number:function(o){var s=Math.abs(o);return s>=aue?Po(o):s<=nue?Po(o)*r(s):s<=4?Po(o)*(1-n(s)):Po(o)*(1-i(s))},"Array | Matrix":t.referToSelf(a=>o=>ti(o,a))});function r(a){var o=a*a,s=ka[0][4]*o,u=o,l;for(l=0;l<3;l+=1)s=(s+ka[0][l])*o,u=(u+yu[0][l])*o;return a*(s+ka[0][3])/(u+yu[0][3])}function n(a){var o=ka[1][8]*a,s=a,u;for(u=0;u<7;u+=1)o=(o+ka[1][u])*a,s=(s+yu[1][u])*a;var l=(o+ka[1][7])/(s+yu[1][7]),c=parseInt(a*16)/16,f=(a-c)*(a+c);return Math.exp(-c*c)*Math.exp(-f)*l}function i(a){var o=1/(a*a),s=ka[2][5]*o,u=o,l;for(l=0;l<4;l+=1)s=(s+ka[2][l])*o,u=(u+yu[2][l])*o;var c=o*(s+ka[2][4])/(u+yu[2][4]);c=(iue-c)/a,o=parseInt(a*16)/16;var f=(a-o)*(a+o);return Math.exp(-o*o)*Math.exp(-f)*c}}),nue=.46875,iue=.5641895835477563,ka=[[3.1611237438705655,113.86415415105016,377.485237685302,3209.3775891384694,.18577770618460315],[.5641884969886701,8.883149794388377,66.11919063714163,298.6351381974001,881.952221241769,1712.0476126340707,2051.0783778260716,1230.3393547979972,21531153547440383e-24],[.30532663496123236,.36034489994980445,.12578172611122926,.016083785148742275,.0006587491615298378,.016315387137302097]],yu=[[23.601290952344122,244.02463793444417,1282.6165260773723,2844.236833439171],[15.744926110709835,117.6939508913125,537.1811018620099,1621.3895745666903,3290.7992357334597,4362.619090143247,3439.3676741437216,1230.3393548037495],[2.568520192289822,1.8729528499234604,.5279051029514285,.06051834131244132,.0023352049762686918]],aue=Math.pow(2,53),Bw="mode",oue=["typed","isNaN","isNumeric"],sue=ke(Bw,oue,e=>{var{typed:t,isNaN:r,isNumeric:n}=e;return t(Bw,{"Array | Matrix":i,"...":function(o){return i(o)}});function i(a){a=Us(a.valueOf());var o=a.length;if(o===0)throw new Error("Cannot calculate mode of an empty array");for(var s={},u=[],l=0,c=0;c<a.length;c++){var f=a[c];if(n(f)&&r(f))throw new Error("Cannot calculate mode of an array containing NaN values");f in s||(s[f]=0),s[f]++,s[f]===l?u.push(f):s[f]>l&&(l=s[f],u=[f])}return u}});function sn(e,t,r){var n;return String(e).indexOf("Unexpected type")!==-1?(n=arguments.length>2?" (type: "+xn(r)+", value: "+JSON.stringify(r)+")":" (type: "+e.data.actual+")",new TypeError("Cannot calculate "+t+", unexpected type of argument"+n)):String(e).indexOf("complex numbers")!==-1?(n=arguments.length>2?" (type: "+xn(r)+", value: "+JSON.stringify(r)+")":"",new TypeError("Cannot calculate "+t+", no ordering relation is defined for complex numbers"+n)):e}var Pw="prod",uue=["typed","config","multiplyScalar","numeric"],lue=ke(Pw,uue,e=>{var{typed:t,config:r,multiplyScalar:n,numeric:i}=e;return t(Pw,{"Array | Matrix":a,"Array | Matrix, number | BigNumber":function(s,u){throw new Error("prod(A, dim) is not yet supported")},"...":function(s){return a(s)}});function a(o){var s;if(no(o,function(u){try{s=s===void 0?u:n(s,u)}catch(l){throw sn(l,"prod",u)}}),typeof s=="string"&&(s=i(s,r.number)),s===void 0)throw new Error("Cannot calculate prod of an empty array");return s}}),Iw="max",cue=["typed","config","numeric","larger"],pE=ke(Iw,cue,e=>{var{typed:t,config:r,numeric:n,larger:i}=e;return t(Iw,{"Array | Matrix":o,"Array | Matrix, number | BigNumber":function(u,l){return Fh(u,l.valueOf(),a)},"...":function(u){if(Dl(u))throw new TypeError("Scalar values expected in function max");return o(u)}});function a(s,u){try{return i(s,u)?s:u}catch(l){throw sn(l,"max",u)}}function o(s){var u;if(no(s,function(l){try{isNaN(l)&&typeof l=="number"?u=NaN:(u===void 0||i(l,u))&&(u=l)}catch(c){throw sn(c,"max",l)}}),u===void 0)throw new Error("Cannot calculate max of an empty array");return typeof u=="string"&&(u=n(u,r.number)),u}}),Mw="min",fue=["typed","config","numeric","smaller"],hE=ke(Mw,fue,e=>{var{typed:t,config:r,numeric:n,smaller:i}=e;return t(Mw,{"Array | Matrix":o,"Array | Matrix, number | BigNumber":function(u,l){return Fh(u,l.valueOf(),a)},"...":function(u){if(Dl(u))throw new TypeError("Scalar values expected in function min");return o(u)}});function a(s,u){try{return i(s,u)?s:u}catch(l){throw sn(l,"min",u)}}function o(s){var u;if(no(s,function(l){try{isNaN(l)&&typeof l=="number"?u=NaN:(u===void 0||i(l,u))&&(u=l)}catch(c){throw sn(c,"min",l)}}),u===void 0)throw new Error("Cannot calculate min of an empty array");return typeof u=="string"&&(u=n(u,r.number)),u}}),Rw="sum",due=["typed","config","add","numeric"],mE=ke(Rw,due,e=>{var{typed:t,config:r,add:n,numeric:i}=e;return t(Rw,{"Array | Matrix":a,"Array | Matrix, number | BigNumber":o,"...":function(u){if(Dl(u))throw new TypeError("Scalar values expected in function sum");return a(u)}});function a(s){var u;return no(s,function(l){try{u=u===void 0?l:n(u,l)}catch(c){throw sn(c,"sum",l)}}),u===void 0&&(u=i(0,r.number)),typeof u=="string"&&(u=i(u,r.number)),u}function o(s,u){try{var l=Fh(s,u,n);return l}catch(c){throw sn(c,"sum")}}}),Jf="cumsum",pue=["typed","add","unaryPlus"],vE=ke(Jf,pue,e=>{var{typed:t,add:r,unaryPlus:n}=e;return t(Jf,{Array:i,Matrix:function(l){return l.create(i(l.valueOf()))},"Array, number | BigNumber":o,"Matrix, number | BigNumber":function(l,c){return l.create(o(l.valueOf(),c))},"...":function(l){if(Dl(l))throw new TypeError("All values expected to be scalar in function cumsum");return i(l)}});function i(u){try{return a(u)}catch(l){throw sn(l,Jf)}}function a(u){if(u.length===0)return[];for(var l=[n(u[0])],c=1;c<u.length;++c)l.push(r(l[c-1],u[c]));return l}function o(u,l){var c=eu(u);if(l<0||l>=c.length)throw new ha(l,c.length);try{return s(u,l)}catch(f){throw sn(f,Jf)}}function s(u,l){var c,f,d;if(l<=0){var p=u[0][0];if(Array.isArray(p)){for(d=J7(u),f=[],c=0;c<d.length;c++)f[c]=s(d[c],l-1);return f}else return a(u)}else{for(f=[],c=0;c<u.length;c++)f[c]=s(u[c],l-1);return f}}}),Lw="mean",hue=["typed","add","divide"],gE=ke(Lw,hue,e=>{var{typed:t,add:r,divide:n}=e;return t(Lw,{"Array | Matrix":a,"Array | Matrix, number | BigNumber":i,"...":function(s){if(Dl(s))throw new TypeError("Scalar values expected in function mean");return a(s)}});function i(o,s){try{var u=Fh(o,s,r),l=Array.isArray(o)?eu(o):o.size();return n(u,l[s])}catch(c){throw sn(c,"mean")}}function a(o){var s,u=0;if(no(o,function(l){try{s=s===void 0?l:r(s,l),u++}catch(c){throw sn(c,"mean",l)}}),u===0)throw new Error("Cannot calculate the mean of an empty array");return n(s,u)}}),jw="median",mue=["typed","add","divide","compare","partitionSelect"],vue=ke(jw,mue,e=>{var{typed:t,add:r,divide:n,compare:i,partitionSelect:a}=e;function o(l){try{l=Us(l.valueOf());var c=l.length;if(c===0)throw new Error("Cannot calculate median of an empty array");if(c%2===0){for(var f=c/2-1,d=a(l,f+1),p=l[f],h=0;h<f;++h)i(l[h],p)>0&&(p=l[h]);return u(p,d)}else{var b=a(l,(c-1)/2);return s(b)}}catch(g){throw sn(g,"median")}}var s=t({"number | BigNumber | Complex | Unit":function(c){return c}}),u=t({"number | BigNumber | Complex | Unit, number | BigNumber | Complex | Unit":function(c,f){return n(r(c,f),2)}});return t(jw,{"Array | Matrix":o,"Array | Matrix, number | BigNumber":function(c,f){throw new Error("median(A, dim) is not yet supported")},"...":function(c){if(Dl(c))throw new TypeError("Scalar values expected in function median");return o(c)}})}),Uw="mad",gue=["typed","abs","map","median","subtract"],yue=ke(Uw,gue,e=>{var{typed:t,abs:r,map:n,median:i,subtract:a}=e;return t(Uw,{"Array | Matrix":o,"...":function(u){return o(u)}});function o(s){if(s=Us(s.valueOf()),s.length===0)throw new Error("Cannot calculate median absolute deviation (mad) of an empty array");try{var u=i(s);return i(n(s,function(l){return r(a(l,u))}))}catch(l){throw l instanceof TypeError&&l.message.indexOf("median")!==-1?new TypeError(l.message.replace("median","mad")):sn(l,"mad")}}}),Im="unbiased",zw="variance",bue=["typed","add","subtract","multiply","divide","apply","isNaN"],yE=ke(zw,bue,e=>{var{typed:t,add:r,subtract:n,multiply:i,divide:a,apply:o,isNaN:s}=e;return t(zw,{"Array | Matrix":function(f){return u(f,Im)},"Array | Matrix, string":u,"Array | Matrix, number | BigNumber":function(f,d){return l(f,d,Im)},"Array | Matrix, number | BigNumber, string":l,"...":function(f){return u(f,Im)}});function u(c,f){var d,p=0;if(c.length===0)throw new SyntaxError("Function variance requires one or more parameters (0 provided)");if(no(c,function(g){try{d=d===void 0?g:r(d,g),p++}catch(v){throw sn(v,"variance",g)}}),p===0)throw new Error("Cannot calculate variance of an empty array");var h=a(d,p);if(d=void 0,no(c,function(g){var v=n(g,h);d=d===void 0?i(v,v):r(d,i(v,v))}),s(d))return d;switch(f){case"uncorrected":return a(d,p);case"biased":return a(d,p+1);case"unbiased":{var b=Yr(d)?d.mul(0):0;return p===1?b:a(d,p-1)}default:throw new Error('Unknown normalization "'+f+'". Choose "unbiased" (default), "uncorrected", or "biased".')}}function l(c,f,d){try{if(c.length===0)throw new SyntaxError("Function variance requires one or more parameters (0 provided)");return o(c,f,p=>u(p,d))}catch(p){throw sn(p,"variance")}}}),wue="quantileSeq",_ue=["typed","add","multiply","partitionSelect","compare"],xue=ke(wue,_ue,e=>{var{typed:t,add:r,multiply:n,partitionSelect:i,compare:a}=e;function o(l,c,f){var d,p,h;if(arguments.length<2||arguments.length>3)throw new SyntaxError("Function quantileSeq requires two or three parameters");if(es(l)){if(f=f||!1,typeof f=="boolean"){if(p=l.valueOf(),an(c)){if(c<0)throw new Error("N/prob must be non-negative");if(c<=1)return s(p,c,f);if(c>1){if(!_t(c))throw new Error("N must be a positive integer");var b=c+1;d=new Array(c);for(var g=0;g<c;)d[g]=s(p,++g/b,f);return d}}if(Yr(c)){var v=c.constructor;if(c.isNegative())throw new Error("N/prob must be non-negative");if(h=new v(1),c.lte(h))return new v(s(p,c,f));if(c.gt(h)){if(!c.isInteger())throw new Error("N must be a positive integer");var S=c.toNumber();if(S>4294967295)throw new Error("N must be less than or equal to 2^32-1, as that is the maximum length of an Array");var w=new v(S+1);d=new Array(S);for(var D=0;D<S;)d[D]=new v(s(p,new v(++D).div(w),f));return d}}if(Array.isArray(c)){d=new Array(c.length);for(var _=0;_<d.length;++_){var N=c[_];if(an(N)){if(N<0||N>1)throw new Error("Probability must be between 0 and 1, inclusive")}else if(Yr(N)){if(h=new N.constructor(1),N.isNegative()||N.gt(h))throw new Error("Probability must be between 0 and 1, inclusive")}else throw new TypeError("Unexpected type of argument in function quantileSeq");d[_]=s(p,N,f)}return d}throw new TypeError("Unexpected type of argument in function quantileSeq")}throw new TypeError("Unexpected type of argument in function quantileSeq")}throw new TypeError("Unexpected type of argument in function quantileSeq")}function s(l,c,f){var d=Us(l),p=d.length;if(p===0)throw new Error("Cannot calculate quantile of an empty sequence");if(an(c)){var h=c*(p-1),b=h%1;if(b===0){var g=f?d[h]:i(d,h);return u(g),g}var v=Math.floor(h),S,w;if(f)S=d[v],w=d[v+1];else{w=i(d,v+1),S=d[v];for(var D=0;D<v;++D)a(d[D],S)>0&&(S=d[D])}return u(S),u(w),r(n(S,1-b),n(w,b))}var _=c.times(p-1);if(_.isInteger()){_=_.toNumber();var N=f?d[_]:i(d,_);return u(N),N}var $=_.floor(),k=_.minus($),K=$.toNumber(),G,j;if(f)G=d[K],j=d[K+1];else{j=i(d,K+1),G=d[K];for(var q=0;q<K;++q)a(d[q],G)>0&&(G=d[q])}u(G),u(j);var re=new k.constructor(1);return r(n(G,re.minus(k)),n(j,k))}var u=t({"number | BigNumber | Unit":function(c){return c}});return o}),qw="std",Eue=["typed","map","sqrt","variance"],bE=ke(qw,Eue,e=>{var{typed:t,map:r,sqrt:n,variance:i}=e;return t(qw,{"Array | Matrix":a,"Array | Matrix, string":a,"Array | Matrix, number | BigNumber":a,"Array | Matrix, number | BigNumber, string":a,"...":function(s){return a(s)}});function a(o,s){if(o.length===0)throw new SyntaxError("Function std requires one or more parameters (0 provided)");try{var u=i.apply(null,arguments);return es(u)?r(u,n):n(u)}catch(l){throw l instanceof TypeError&&l.message.indexOf(" variance")!==-1?new TypeError(l.message.replace(" variance"," std")):l}}}),Hw="format",Due=["typed"],Sue=ke(Hw,Due,e=>{var{typed:t}=e;return t(Hw,{any:ro,"any, Object | function | number":ro})}),Vw="print",Cue=["typed"],Aue=ke(Vw,Cue,e=>{var{typed:t}=e;return t(Vw,{"string, Object | Array":Kw,"string, Object | Array, number | Object":Kw})});function Kw(e,t,r){return e.replace(/\$([\w.]+)/g,function(n,i){for(var a=i.split("."),o=t[a.shift()];a.length&&o!==void 0;){var s=a.shift();o=s?o[s]:o+"."}return o!==void 0?Qo(o)?o:ro(o,r):n})}var Nue="apply",Tue=["typed","isInteger"],kue=ke(Nue,Tue,e=>{var{typed:t,isInteger:r}=e,n=rE({typed:t,isInteger:r});return t("apply",{"...any":function(a){var o=a[1];an(o)?a[1]=o-1:Yr(o)&&(a[1]=o.minus(1));try{return n.apply(null,a)}catch(s){throw ma(s)}}})},{isTransformFunction:!0});function Rg(e,t,r){var n=e.filter(function(s){return kr(s)&&!(s.name in t)&&!r.has(s.name)})[0];if(!n)throw new Error('No undefined variable found in inline expression "'+e+'"');var i=n.name,a=Xl(r),o=e.compile();return function(u){return a.set(i,u),o.evaluate(a)}}var Oue="filter",Fue=["typed"],$ue=ke(Oue,Fue,e=>{var{typed:t}=e;function r(i,a,o){var s,u;return i[0]&&(s=i[0].compile().evaluate(o)),i[1]&&(kr(i[1])||_l(i[1])?u=i[1].compile().evaluate(o):u=Rg(i[1],a,o)),n(s,u)}r.rawArgs=!0;var n=t("filter",{"Array, function":Gw,"Matrix, function":function(a,o){return a.create(Gw(a.toArray(),o))},"Array, RegExp":hp,"Matrix, RegExp":function(a,o){return a.create(hp(a.toArray(),o))}});return r},{isTransformFunction:!0});function Gw(e,t){var r=Sl(t);return $7(e,function(n,i,a){return r===1?t(n):r===2?t(n,[i+1]):t(n,[i+1],a)})}var Bue="forEach",Pue=["typed"],Iue=ke(Bue,Pue,e=>{var{typed:t}=e;function r(i,a,o){var s,u;return i[0]&&(s=i[0].compile().evaluate(o)),i[1]&&(kr(i[1])||_l(i[1])?u=i[1].compile().evaluate(o):u=Rg(i[1],a,o)),n(s,u)}r.rawArgs=!0;var n=t("forEach",{"Array | Matrix, function":function(a,o){var s=Sl(o),u=function l(c,f){Array.isArray(c)?Ah(c,function(d,p){l(d,f.concat(p+1))}):s===1?o(c):s===2?o(c,f):o(c,f,a)};u(a.valueOf(),[])}});return r},{isTransformFunction:!0}),Mue="map",Rue=["typed"],Lue=ke(Mue,Rue,e=>{var{typed:t}=e;function r(i,a,o){var s,u;return i[0]&&(s=i[0].compile().evaluate(o)),i[1]&&(kr(i[1])||_l(i[1])?u=i[1].compile().evaluate(o):u=Rg(i[1],a,o)),n(s,u)}r.rawArgs=!0;var n=t("map",{"Array, function":function(a,o){return Ww(a,o,a)},"Matrix, function":function(a,o){return a.create(Ww(a.valueOf(),o,a))}});return r},{isTransformFunction:!0});function Ww(e,t,r){var n=Sl(t);function i(a,o){return Array.isArray(a)?Za(a,function(s,u){return i(s,o.concat(u+1))}):n===1?t(a):n===2?t(a,o):t(a,o,r)}return i(e,[])}function Cl(e){if(e.length===2&&es(e[0])){e=e.slice();var t=e[1];an(t)?e[1]=t-1:Yr(t)&&(e[1]=t.minus(1))}return e}var jue="max",Uue=["typed","config","numeric","larger"],zue=ke(jue,Uue,e=>{var{typed:t,config:r,numeric:n,larger:i}=e,a=pE({typed:t,config:r,numeric:n,larger:i});return t("max",{"...any":function(s){s=Cl(s);try{return a.apply(null,s)}catch(u){throw ma(u)}}})},{isTransformFunction:!0}),que="mean",Hue=["typed","add","divide"],Vue=ke(que,Hue,e=>{var{typed:t,add:r,divide:n}=e,i=gE({typed:t,add:r,divide:n});return t("mean",{"...any":function(o){o=Cl(o);try{return i.apply(null,o)}catch(s){throw ma(s)}}})},{isTransformFunction:!0}),Kue="min",Gue=["typed","config","numeric","smaller"],Wue=ke(Kue,Gue,e=>{var{typed:t,config:r,numeric:n,smaller:i}=e,a=hE({typed:t,config:r,numeric:n,smaller:i});return t("min",{"...any":function(s){s=Cl(s);try{return a.apply(null,s)}catch(u){throw ma(u)}}})},{isTransformFunction:!0}),Yue="range",Zue=["typed","config","?matrix","?bignumber","smaller","smallerEq","larger","largerEq"],Jue=ke(Yue,Zue,e=>{var{typed:t,config:r,matrix:n,bignumber:i,smaller:a,smallerEq:o,larger:s,largerEq:u}=e,l=nE({typed:t,config:r,matrix:n,bignumber:i,smaller:a,smallerEq:o,larger:s,largerEq:u});return t("range",{"...any":function(f){var d=f.length-1,p=f[d];return typeof p!="boolean"&&f.push(!0),l.apply(null,f)}})},{isTransformFunction:!0}),Xue="std",Que=["typed","map","sqrt","variance"],ele=ke(Xue,Que,e=>{var{typed:t,map:r,sqrt:n,variance:i}=e,a=bE({typed:t,map:r,sqrt:n,variance:i});return t("std",{"...any":function(s){s=Cl(s);try{return a.apply(null,s)}catch(u){throw ma(u)}}})},{isTransformFunction:!0}),Yw="sum",tle=["typed","config","add","numeric"],rle=ke(Yw,tle,e=>{var{typed:t,config:r,add:n,numeric:i}=e,a=mE({typed:t,config:r,add:n,numeric:i});return t(Yw,{"...any":function(s){s=Cl(s);try{return a.apply(null,s)}catch(u){throw ma(u)}}})},{isTransformFunction:!0}),Zw="cumsum",nle=["typed","add","unaryPlus"],ile=ke(Zw,nle,e=>{var{typed:t,add:r,unaryPlus:n}=e,i=vE({typed:t,add:r,unaryPlus:n});return t(Zw,{"...any":function(o){if(o.length===2&&es(o[0])){var s=o[1];an(s)?o[1]=s-1:Yr(s)&&(o[1]=s.minus(1))}try{return i.apply(null,o)}catch(u){throw ma(u)}}})},{isTransformFunction:!0}),Jw="variance",ale=["typed","add","subtract","multiply","divide","apply","isNaN"],ole=ke(Jw,ale,e=>{var{typed:t,add:r,subtract:n,multiply:i,divide:a,apply:o,isNaN:s}=e,u=yE({typed:t,add:r,subtract:n,multiply:i,divide:a,apply:o,isNaN:s});return t(Jw,{"...any":function(c){c=Cl(c);try{return u.apply(null,c)}catch(f){throw ma(f)}}})},{isTransformFunction:!0}),Xw="clone",sle=["typed"],ule=ke(Xw,sle,e=>{var{typed:t}=e;return t(Xw,{any:Bo})}),Qw="isNumeric",lle=["typed"],cle=ke(Qw,lle,e=>{var{typed:t}=e;return t(Qw,{"number | BigNumber | Fraction | boolean":()=>!0,"Complex | Unit | string | null | undefined | Node":()=>!1,"Array | Matrix":t.referToSelf(r=>n=>ti(n,r))})}),e4="hasNumericValue",fle=["typed","isNumeric"],dle=ke(e4,fle,e=>{var{typed:t,isNumeric:r}=e;return t(e4,{boolean:()=>!0,string:function(i){return i.trim().length>0&&!isNaN(Number(i))},any:function(i){return r(i)}})}),t4="typeOf",ple=["typed"],hle=ke(t4,ple,e=>{var{typed:t}=e;return t(t4,{any:xn})}),r4="isPrime",mle=["typed"],vle=ke(r4,mle,e=>{var{typed:t}=e;return t(r4,{number:function(n){if(n*0!==0)return!1;if(n<=3)return n>1;if(n%2===0||n%3===0)return!1;for(var i=5;i*i<=n;i+=6)if(n%i===0||n%(i+2)===0)return!1;return!0},BigNumber:function(n){if(n.toNumber()*0!==0)return!1;if(n.lte(3))return n.gt(1);if(n.mod(2).eq(0)||n.mod(3).eq(0))return!1;if(n.lt(Math.pow(2,32))){for(var i=n.toNumber(),a=5;a*a<=i;a+=6)if(i%a===0||i%(a+2)===0)return!1;return!0}function o(S,w,D){for(var _=1;!w.eq(0);)w.mod(2).eq(0)?(w=w.div(2),S=S.mul(S).mod(D)):(w=w.sub(1),_=S.mul(_).mod(D));return _}var s=n.constructor.clone({precision:n.toFixed(0).length*2});n=new s(n);for(var u=0,l=n.sub(1);l.mod(2).eq(0);)l=l.div(2),u+=1;var c=null;if(n.lt("3317044064679887385961981"))c=[2,3,5,7,11,13,17,19,23,29,31,37,41].filter(S=>S<n);else{var f=Math.min(n.toNumber()-2,Math.floor(2*Math.pow(n.toFixed(0).length*Math.log(10),2)));c=[];for(var d=2;d<=f;d+=1)c.push(f)}for(var p=0;p<c.length;p+=1){var h=c[p],b=o(n.sub(n).add(h),l,n);if(!b.eq(1)){for(var g=0,v=b;!v.eq(n.sub(1));g+=1,v=v.mul(v).mod(n))if(g===u-1)return!1}}return!0},"Array | Matrix":t.referToSelf(r=>n=>ti(n,r))})}),gle="numeric",yle=["number","?bignumber","?fraction"],ble=ke(gle,yle,e=>{var{number:t,bignumber:r,fraction:n}=e,i={string:!0,number:!0,BigNumber:!0,Fraction:!0},a={number:o=>t(o),BigNumber:r?o=>r(o):kg,Fraction:n?o=>n(o):P7};return function(s){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"number",l=arguments.length>2?arguments[2]:void 0;if(l!==void 0)throw new SyntaxError("numeric() takes one or two arguments");var c=xn(s);if(!(c in i))throw new TypeError("Cannot convert "+s+' of type "'+c+'"; valid input types are '+Object.keys(i).join(", "));if(!(u in a))throw new TypeError("Cannot convert "+s+' to type "'+u+'"; valid output types are '+Object.keys(a).join(", "));return u===c?s:a[u](s)}}),wle="reviver",_le=["classes"],xle=ke(wle,_le,e=>{var{classes:t}=e;return function(n,i){var a=t[i&&i.mathjs];return a&&typeof a.fromJSON=="function"?a.fromJSON(i):i}}),Ele="replacer",Dle=[],Sle=ke(Ele,Dle,()=>function(t,r){return typeof r=="number"&&(!isFinite(r)||isNaN(r))?{mathjs:"number",value:String(r)}:r}),Cle=Ze("unaryMinus",Sx),Ale=Ze("unaryPlus",Cx),Nle=Ze("abs",Ex),Tle=Ze("addScalar",Dg),kle=Ze("cbrt",Ax),Ole=Ze("cube",Nx),Fle=Ze("exp",Tx),$le=Ze("expm1",kx),Ble=Ze("gcd",Ox),Ple=Ze("lcm",Fx),Ile=Ze("log10",$x),Mle=Ze("log2",Bx),Rle=Ze("mod",Ix),Lle=Ze("multiplyScalar",Sg),jle=Ze("multiply",Sg),Ule=Lg("nthRoot",WX),zle=Ze("sign",Mx),qle=Ze("sqrt",Rx),Hle=Ze("square",Lx),Vle=Ze("subtract",Dx),Kle=Ze("xgcd",jx),Gle=Ze("divideScalar",Cg),Wle=Ze("pow",Ux),Yle=Lg("round",YX),Zle=Lg("log",GX),Jle=Ze("log1p",Px),Xle=Ze("add",Dg),Qle=Ze("norm",zx),ece=Ze("divide",Cg),tce=Ze("bitAnd",qx),rce=Ze("bitNot",Hx),nce=Ze("bitOr",Vx),ice=Ze("bitXor",Kx),ace=Ze("leftShift",Gx),oce=Ze("rightArithShift",Wx),sce=Ze("rightLogShift",Yx),uce=Ze("and",e7),lce=Ze("not",Jx),cce=Ze("or",Xx),fce=Ze("xor",Qx),dce=ke("index",[],()=>hQ),pce=ke("matrix",[],()=>Og),hce=ke("subset",[],()=>I7),mce=Ze("combinations",Zx),vce=Ze("gamma",Ng),gce=Ze("lgamma",Tg),yce=Ze("acos",t7),bce=Ze("acosh",r7),wce=Ze("acot",n7),_ce=Ze("acoth",i7),xce=Ze("acsc",a7),Ece=Ze("acsch",o7),Dce=Ze("asec",s7),Sce=Ze("asech",u7),Cce=Ze("asin",l7),Ace=Ze("asinh",c7),Nce=Ze("atan",f7),Tce=Ze("atan2",d7),kce=Ze("atanh",p7),Oce=Ze("cos",h7),Fce=Ze("cosh",m7),$ce=Ze("cot",v7),Bce=Ze("coth",g7),Pce=Ze("csc",y7),Ice=Ze("csch",b7),Mce=Ze("sec",w7),Rce=Ze("sech",_7),Lce=Ze("sin",x7),jce=Ze("sinh",E7),Uce=Ze("tan",D7),zce=Ze("tanh",S7),qce=ke("subset",[],()=>I7,{isTransformFunction:!0}),Hce=Ze("isInteger",C7),Vce=Ze("isNegative",A7),Kce=Ze("isPositive",N7),Gce=Ze("isZero",T7),Wce=Ze("isNaN",k7);function Ze(e,t){return ke(e,["typed"],r=>{var{typed:n}=r;return n(t)})}function Lg(e,t){return ke(e,["typed"],r=>{var{typed:n}=r;return n({number:t,"number,number":t})})}var Yce=Object.freeze(Object.defineProperty({__proto__:null,createUnaryMinus:Cle,createUnaryPlus:Ale,createAbs:Nle,createAddScalar:Tle,createCbrt:kle,createCube:Ole,createExp:Fle,createExpm1:$le,createGcd:Ble,createLcm:Ple,createLog10:Ile,createLog2:Mle,createMod:Rle,createMultiplyScalar:Lle,createMultiply:jle,createNthRoot:Ule,createSign:zle,createSqrt:qle,createSquare:Hle,createSubtract:Vle,createXgcd:Kle,createDivideScalar:Gle,createPow:Wle,createRound:Yle,createLog:Zle,createLog1p:Jle,createAdd:Xle,createNorm:Qle,createDivide:ece,createBitAnd:tce,createBitNot:rce,createBitOr:nce,createBitXor:ice,createLeftShift:ace,createRightArithShift:oce,createRightLogShift:sce,createAnd:uce,createNot:lce,createOr:cce,createXor:fce,createIndex:dce,createMatrix:pce,createSubset:hce,createCombinations:mce,createGamma:vce,createLgamma:gce,createAcos:yce,createAcosh:bce,createAcot:wce,createAcoth:_ce,createAcsc:xce,createAcsch:Ece,createAsec:Dce,createAsech:Sce,createAsin:Cce,createAsinh:Ace,createAtan:Nce,createAtan2:Tce,createAtanh:kce,createCos:Oce,createCosh:Fce,createCot:$ce,createCoth:Bce,createCsc:Pce,createCsch:Ice,createSec:Mce,createSech:Rce,createSin:Lce,createSinh:jce,createTan:Uce,createTanh:zce,createSubsetTransform:qce,createIsInteger:Hce,createIsNegative:Vce,createIsPositive:Kce,createIsZero:Gce,createIsNaN:Wce,createTyped:_Q,createResultSet:SQ,createRangeClass:NQ,createHelpClass:OQ,createChainClass:BQ,createHelp:Qne,createChain:tie,createResolve:iie,createSimplify:lie,createSimplifyConstant:die,createSimplifyCore:mie,createDerivative:gie,createRationalize:bie,createCeil:pae,createFix:hae,createFloor:mae,createHypot:gae,createStirlingS2:bae,createBellNumbers:_ae,createCatalan:Eae,createComposition:Sae,createE:Rae,createUppercaseE:Gae,createFalse:Fae,createInfinity:Bae,createLN10:Uae,createLN2:jae,createLOG10E:qae,createLOG2E:zae,createNaN:Pae,createNull:$ae,createPhi:Lae,createPi:Iae,createUppercasePi:Kae,createSQRT1_2:Hae,createSQRT2:Vae,createTau:Mae,createTrue:Oae,createVersion:Wae,createNumber:Qae,createString:toe,createBoolean:noe,createParser:aoe,createNode:uoe,createAccessorNode:coe,createArrayNode:doe,createAssignmentNode:moe,createBlockNode:goe,createConditionalNode:boe,createConstantNode:Aoe,createFunctionAssignmentNode:Toe,createIndexNode:Ooe,createObjectNode:$oe,createOperatorNode:Poe,createParenthesisNode:Moe,createRangeNode:Loe,createRelationalNode:Uoe,createSymbolNode:Hoe,createFunctionNode:Koe,createParse:Woe,createCompile:Zoe,createEvaluate:Xoe,createParserClass:tse,createApply:rE,createFilter:ose,createForEach:use,createMap:fse,createRange:nE,createSize:mse,createPartitionSelect:gse,createCombinationsWithRep:bse,createFactorial:_se,createMultinomial:Ese,createPermutations:Sse,createPickRandom:Bse,createRandom:Pse,createRandomInt:Mse,createEqualScalar:Rse,createCompare:Lse,createCompareNatural:Use,createCompareText:qse,createEqual:Hse,createEqualText:Kse,createSmaller:Gse,createSmallerEq:Wse,createLarger:Yse,createLargerEq:Zse,createDeepEqual:Xse,createUnequal:Qse,createErf:rue,createMode:sue,createProd:lue,createMax:pE,createMin:hE,createSum:mE,createCumSum:vE,createMean:gE,createMedian:vue,createMad:yue,createVariance:yE,createQuantileSeq:xue,createStd:bE,createFormat:Sue,createPrint:Aue,createApplyTransform:kue,createFilterTransform:$ue,createForEachTransform:Iue,createMapTransform:Lue,createMaxTransform:zue,createMeanTransform:Vue,createMinTransform:Wue,createRangeTransform:Jue,createStdTransform:ele,createSumTransform:rle,createCumSumTransform:ile,createVarianceTransform:ole,createClone:ule,createIsNumeric:cle,createHasNumericValue:dle,createTypeOf:hle,createIsPrime:vle,createNumeric:ble,createReviver:xle,createReplacer:Sle},Symbol.toStringTag,{value:"Module"}));function ru(e,t,r,n){if(!(this instanceof ru))throw new SyntaxError("Constructor must be called with the new operator");this.fn=e,this.count=t,this.min=r,this.max=n,this.message="Wrong number of arguments in function "+e+" ("+t+" provided, "+r+(n!=null?"-"+n:"")+" expected)",this.stack=new Error().stack}ru.prototype=new Error;ru.prototype.constructor=Error;ru.prototype.name="ArgumentsError";ru.prototype.isArgumentsError=!0;var Zce=Yce,jg={exports:{}};function Ug(){}Ug.prototype={on:function(e,t,r){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var n=this;function i(){n.off(e,i),t.apply(r,arguments)}return i._=t,this.on(e,i,r)},emit:function(e){var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),n=0,i=r.length;for(n;n<i;n++)r[n].fn.apply(r[n].ctx,t);return this},off:function(e,t){var r=this.e||(this.e={}),n=r[e],i=[];if(n&&t)for(var a=0,o=n.length;a<o;a++)n[a].fn!==t&&n[a].fn._!==t&&i.push(n[a]);return i.length?r[e]=i:delete r[e],this}};jg.exports=Ug;jg.exports.TinyEmitter=Ug;var Jce=jg.exports;function Xce(e){var t=new Jce;return e.on=t.on.bind(t),e.off=t.off.bind(t),e.once=t.once.bind(t),e.emit=t.emit.bind(t),e}function Qce(e,t,r,n){function i(g,v){var S=arguments.length;if(S!==1&&S!==2)throw new ru("import",S,1,2);v||(v={});function w($,k,K){if(Array.isArray(k))k.forEach(q=>w($,q));else if(typeof k=="object")for(var G in k)st(k,G)&&w($,k[G],G);else if(pc(k)||K!==void 0){var j=pc(k)?h(k)?k.fn+".transform":k.fn:K;if(st($,j)&&$[j]!==k&&!v.silent)throw new Error('Cannot import "'+j+'" twice');$[j]=k}else if(!v.silent)throw new TypeError("Factory, Object, or Array expected")}var D={};w(D,g);for(var _ in D)if(st(D,_)){var N=D[_];if(pc(N))l(N,v);else if(c(N))a(_,N,v);else if(!v.silent)throw new TypeError("Factory, Object, or Array expected")}}function a(g,v,S){if(S.wrap&&typeof v=="function"&&(v=u(v)),f(v)&&(v=e(g,{[v.signature]:v})),e.isTypedFunction(r[g])&&e.isTypedFunction(v)){S.override?v=e(g,v.signatures):v=e(r[g],v),r[g]=v,delete n[g],o(g,v),r.emit("import",g,function(){return v});return}if(r[g]===void 0||S.override){r[g]=v,delete n[g],o(g,v),r.emit("import",g,function(){return v});return}if(!S.silent)throw new Error('Cannot import "'+g+'": already exists')}function o(g,v){v&&typeof v.transform=="function"?(r.expression.transform[g]=v.transform,d(g)&&(r.expression.mathWithTransform[g]=v.transform)):(delete r.expression.transform[g],d(g)&&(r.expression.mathWithTransform[g]=v))}function s(g){delete r.expression.transform[g],d(g)?r.expression.mathWithTransform[g]=r[g]:delete r.expression.mathWithTransform[g]}function u(g){var v=function(){for(var w=[],D=0,_=arguments.length;D<_;D++){var N=arguments[D];w[D]=N&&N.valueOf()}return g.apply(r,w)};return g.transform&&(v.transform=g.transform),v}function l(g,v){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g.fn;if(O3(S,"."))throw new Error("Factory name should not contain a nested path. Name: "+JSON.stringify(S));var w=h(g)?r.expression.transform:r,D=S in r.expression.transform,_=st(w,S)?w[S]:void 0,N=function(){var k={};g.dependencies.map(B7).forEach(G=>{if(O3(G,"."))throw new Error("Factory dependency should not contain a nested path. Name: "+JSON.stringify(G));G==="math"?k.math=r:G==="mathWithTransform"?k.mathWithTransform=r.expression.mathWithTransform:G==="classes"?k.classes=r:k[G]=r[G]});var K=g(k);if(K&&typeof K.transform=="function")throw new Error('Transforms cannot be attached to factory functions. Please create a separate function for it with exports.path="expression.transform"');if(_===void 0||v.override)return K;if(e.isTypedFunction(_)&&e.isTypedFunction(K))return e(_,K);if(v.silent)return _;throw new Error('Cannot import "'+S+'": already exists')};!g.meta||g.meta.lazy!==!1?(_d(w,S,N),_&&D?s(S):(h(g)||p(g))&&_d(r.expression.mathWithTransform,S,()=>w[S])):(w[S]=N(),_&&D?s(S):(h(g)||p(g))&&_d(r.expression.mathWithTransform,S,()=>w[S])),n[S]=g,r.emit("import",S,N)}function c(g){return typeof g=="function"||typeof g=="number"||typeof g=="string"||typeof g=="boolean"||g===null||Eh(g)||wl(g)||Yr(g)||Qc(g)||on(g)||Array.isArray(g)}function f(g){return typeof g=="function"&&typeof g.signature=="string"}function d(g){return!st(b,g)}function p(g){return g.fn.indexOf(".")===-1&&!st(b,g.fn)&&(!g.meta||!g.meta.isClass)}function h(g){return g!==void 0&&g.meta!==void 0&&g.meta.isTransformFunction===!0||!1}var b={expression:!0,type:!0,docs:!0,error:!0,json:!0,chain:!0};return i}function wE(e,t){var r=Ba({},ax,t);if(typeof Object.create!="function")throw new Error("ES5 not supported by this JavaScript engine. Please load the es5-shim and es5-sham library for compatibility.");var n=Xce({isNumber:an,isComplex:wl,isBigNumber:Yr,isFraction:Qc,isUnit:Eh,isString:Qo,isArray:_g,isMatrix:on,isCollection:es,isDenseMatrix:pp,isSparseMatrix:Nu,isRange:ox,isIndex:sx,isBoolean:ux,isResultSet:lx,isHelp:xg,isFunction:cx,isDate:fx,isRegExp:dx,isObject:Dh,isNull:px,isUndefined:hx,isAccessorNode:ts,isArrayNode:Bn,isAssignmentNode:mx,isBlockNode:vx,isConditionalNode:gx,isConstantNode:Bt,isFunctionAssignmentNode:_l,isFunctionNode:rs,isIndexNode:Qs,isNode:Ot,isObjectNode:ef,isOperatorNode:_r,isParenthesisNode:to,isRangeNode:yx,isSymbolNode:kr,isChain:Eg});n.config=kX(r,n.emit),n.expression={transform:{},mathWithTransform:{config:n.config}};var i=[],a=[];function o(c){if(pc(c))return c(n);var f=c[Object.keys(c)[0]];if(pc(f))return f(n);if(!NX(c))throw console.warn("Factory object with properties `type`, `name`, and `factory` expected",c),new Error("Factory object with properties `type`, `name`, and `factory` expected");var d=i.indexOf(c),p;return d===-1?(c.math===!0?p=c.factory(n.type,r,o,n.typed,n):p=c.factory(n.type,r,o,n.typed),i.push(c),a.push(p)):p=a[d],p}var s={};function u(){for(var c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];return n.typed.apply(n.typed,f)}u.isTypedFunction=l0.isTypedFunction;var l=Qce(u,o,n,s);return n.import=l,n.on("config",()=>{D3(s).forEach(c=>{c&&c.meta&&c.meta.recreateOnConfigChange&&l(c,{override:!0})})}),n.create=wE.bind(null,e),n.factory=ke,n.import(D3(AX(e))),n.ArgumentsError=ru,n.DimensionError=El,n.IndexError=ha,n}const _E="_vx";class efe{constructor(t){this.scope=t}get(t){const r=String(t);return this.scope.has(r)?this.scope.get(r):""}set(t,r){return this.scope.set(String(t),r)}has(t){return this.scope.has(t)||t.startsWith(_E)&&t!=="end"}keys(){return this.scope.keys()}}const tfe={props:{modelValue:{type:[String,Number],default:""},name:{type:String,default:"expression"},delta:{type:String,default:""},mentions:{type:Array,default:()=>[]}},emits:["update:modelValue"],data(){return{emitter:da(this.emit,50)}},computed:{mentionIds(){return this.mentions.map(e=>e.id)},expression(){const e=new pg(JSON.parse(this.delta).ops,{paragraphTag:"",encodeHtml:!1});return e.renderCustomWith(t=>t.insert.type==="mention"&&this.mentionIds.indexOf(t.insert.value.id)!==-1?this.varName(t.insert.value.id):""),e.convert().replace(/<br\/>/gi,`
`)},compiled(){return this.math.parse(this.expression).compile()},context(){return new efe(new Map(this.mentions.map(e=>[this.varName(e.id),e.value])))}},watch:{delta:{handler(){this.emitter()},immediate:!0},mentions:{handler(){this.emitter()},immediate:!0,deep:!0}},created(){const e=wE(Zce);e.import({locale:function(t,r,n={}){return Number(t).toLocaleString(r,n)},now:function(){return Math.floor(Date.now()/1e3)},yearnum:function(t){return new Date(t*1e3).getFullYear()},monthnum:function(t){return new Date(t*1e3).getMonth()+1},daynum:function(t){const r=new Date(t*1e3),n=Date.UTC(r.getFullYear(),r.getMonth(),r.getDate()),i=Date.UTC(r.getFullYear(),0,1);return Math.floor(Math.abs((n-i)/864e5))+1},monthday:function(t){return new Date(t*1e3).getDate()},weekday:function(t){return new Date(t*1e3).getDay()},weeknum:function(t){const r=new Date(t*1e3);r.setHours(0,0,0,0),r.setDate(r.getDate()+3-(r.getDay()+6)%7);const n=new Date(r.getFullYear(),0,4);return 1+Math.round(((r.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},date_format:function(t){return new Date(t*1e3).toLocaleDateString()},days_between:function(t,r=null){const n=new Date(t*1e3),i=r===null?new Date:new Date(r*1e3),a=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate()),o=Date.UTC(i.getFullYear(),i.getMonth(),i.getDate());return Math.floor(Math.abs((a-o)/864e5))},years_between:function(t,r=null){r=r===null?Date.now()/1e3:r;const n=new Date(Math.abs(t-r)*1e3);return Math.abs(n.getUTCFullYear()-1970)},index_of_max:function(){const t=Array.from(arguments).map(n=>Number(n)).filter(n=>!isNaN(n)),r=t.indexOf(Math.max(...t));return r!==-1?r+1:""}}),this.math=e},methods:{varName(e){return _E+e.replaceAll(/[^0-9a-z]/ig,"")},emit(){new Promise(e=>{try{const t=this.compiled.evaluate(this.context);typeof t=="object"&&t!==null?e(t.valueOf()[0]):Array.isArray(t)?e(""):e(t)}catch{e("")}}).then(e=>this.$emit("update:modelValue",e))}}},rfe=["name","value"];function nfe(e,t,r,n,i,a){return V(),ae("input",{type:"hidden",name:r.name,value:r.modelValue},null,8,rfe)}var ife=we(tfe,[["render",nfe]]);const afe={components:{ExpressionViewer:ife},props:{field:Object,pos:Number},emits:["update"],setup(e){const{field:t}=yt(e),{label:r,value:n,fieldId:i,delta:a}=wt(t);return{label:r,value:n,fieldId:i,delta:a}},data(){return{mentionsToUse:[]}},computed:{...bt({mentions:"fields/mentionsExpression"}),mentionsFiltered(){return this.mentions.filter(e=>e.id!==this.fieldId)},mentionsHash(){return this.mentionsFiltered.map(e=>e.value).join("")}},watch:{mentionsHash:{handler(){this.mentionsToUse=this.mentionsFiltered},immediate:!0}}};function ofe(e,t,r,n,i,a){const o=ge("expression-viewer");return V(),Ge(o,{name:n.label,"model-value":n.value,delta:n.delta,mentions:i.mentionsToUse,"onUpdate:modelValue":t[0]||(t[0]=s=>e.$emit("update",s))},null,8,["name","model-value","delta","mentions"])}var sfe=we(afe,[["render",ofe]]);const ufe={props:{seconds:{type:Number,default:900},displayLabel:Boolean,label:String,labelClass:String,timeClass:String},computed:{displaySeconds(){return this.seconds%60},displayMinutes(){return Math.floor(this.seconds/60)%60},displayHours(){return Math.floor(this.seconds/3600)},display(){return this.displayHours>0?`${this.pad(this.displayHours)}:${this.pad(this.displayMinutes)}:${this.pad(this.displaySeconds)}`:`${this.pad(this.displayMinutes)}:${this.pad(this.displaySeconds)}`}},methods:{pad(e){return String(e).padStart(2,"0")}}},lfe={class:"i-timer inline-flex flex-col items-center justify-center"};function cfe(e,t,r,n,i,a){return V(),ae("div",lfe,[ne("div",{class:Ye([r.timeClass])},We(a.display),3),r.displayLabel?(V(),ae("div",{key:0,class:Ye(["break-words text-center",r.labelClass])},We(r.label),3)):ct("",!0)])}var ffe=we(ufe,[["render",cfe],["__scopeId","data-v-aa394a1e"]]);const xo=(e,t=null)=>{switch(e){case"immediate":case"submit":return e;default:return`${e}-${t}`}},dfe={components:{Timer:ffe},props:{field:Object,pos:Number},emits:["update"],setup(e){const{field:t}=yt(e),{label:r,value:n,type:i,text:a,logic:o,startOn:s,startOnPage:u,stopOn:l,stopOnPage:c,seconds:f,display:d,position:p,visibleLabel:h}=wt(t),b=tt(()=>`#i-widget-container-${p.value}`),g=tt(()=>d.value&&i.value==="countdown");return{label:r,value:n,type:i,text:a,logic:o,startOn:s,startOnPage:u,stopOn:l,stopOnPage:c,teleportId:b,position:p,seconds:f,display:g,visibleLabel:h}},data(){return{running:!1,handleInterval:null}},computed:{...bt({current:"pages/current",offset:"fields/offset"}),startEventCode(){return this.startOn.startsWith("page")&&this.startOnPage?this.offset[Number(this.startOnPage)-1]!==void 0?xo(this.startOn,Number(this.startOnPage)+this.offset[Number(this.startOnPage)-1]):xo(this.startOn,Number(this.startOnPage)):xo(this.startOn)},stopEventCode(){return this.stopOn.startsWith("page")&&this.stopOnPage?this.offset[Number(this.stopOnPage)-1]!==void 0?xo(this.stopOn,Number(this.stopOnPage)+this.offset[Number(this.stopOnPage)-1]):xo(this.stopOn,Number(this.stopOnPage)):xo(this.stopOn)},action(){if(B(this.logic,"fallback.action")==="page"){const e=B(this.logic,"fallback.value");return e&&this.offset[Number(e)-1]!==void 0?{action:"page",value:Number(e)+this.offset[Number(e)-1]}:{action:"page",value:Number(e)}}return null}},watch:{current:{handler(e,t){this.handleEvent(xo("page_enter",e)),this.handleEvent(xo("page_leave",t))},immediate:!0}},mounted(){this.handleEvent("immediate")},beforeUnmount(){this.handleEvent("submit")},methods:{handleEvent(e){e===this.startEventCode&&this.start(),e===this.stopEventCode&&this.stop()},start(){this.type==="countdown"?!this.running&&(isNaN(this.value)||this.value>0)&&(this.running=!0,clearInterval(this.handleInterval),this.handleInterval=setInterval(this.tickCountdown,1e3)):this.running||(this.running=!0,clearInterval(this.handleInterval),this.handleInterval=setInterval(this.tickTimer,1e3))},stop(){this.running&&(this.running=!1,clearInterval(this.handleInterval),this.handleInterval=null)},async doAction(){this.action&&await this.$store.dispatch("pages/act",this.action)},tickTimer(){isNaN(this.value)?this.$emit("update",1):this.$emit("update",this.value+1)},tickCountdown(){isNaN(this.value)?this.$emit("update",Math.max(this.seconds-1,0)):this.$emit("update",Math.max(this.value-1,0)),this.value<=0&&(this.stop(),this.doAction())}}},pfe=["name","value"];function hfe(e,t,r,n,i,a){const o=ge("timer",!0);return V(),ae(vt,null,[ne("input",{type:"hidden",name:n.label,value:n.value},null,8,pfe),(V(),Ge(kS,{to:n.teleportId},[n.display&&i.running?(V(),Ge(o,{key:0,class:Ye(["i-font-timer px-2 py-0 border-4 rounded-xl max-w-xs",["bc","bl"].includes(n.position)?"mt-1 md:mt-2 lg:mt-4":"mb-1 md:mb-2 lg:mb-4"]),"time-class":"text-xl lg:text-2xl","label-class":"i-font-1 text-xs lg:text-sm",seconds:n.value,label:n.text,"display-label":n.visibleLabel},null,8,["class","seconds","label","display-label"])):ct("",!0)],8,["to"]))],64)}var mfe=we(dfe,[["render",hfe]]);const vfe={components:{FieldHidden:rX,FieldExpression:sfe,FieldCalculation:CX,FieldTimer:mfe},computed:{...bt({fields:"fields/hidden"})},methods:{fieldComponent(e){switch(e.type){case"score-calculation":return"field-hidden";default:return"field-"+e.type}},update(e,t){this.$store.dispatch("fields/update",{field:e,value:t})}}};function gfe(e,t,r,n,i,a){return V(),ae("div",null,[(V(!0),ae(vt,null,Gt(e.fields,(o,s)=>(V(),Ge(Cr(a.fieldComponent(o)),{key:o.id,field:o,pos:s,onUpdate:u=>a.update(o,u)},null,40,["field","pos","onUpdate"]))),128))])}var yfe=we(vfe,[["render",gfe]]);const bfe={components:{BaseModal:gg},computed:{...bt({error:"error/error"}),title(){return this.error?this.$t("error."+this.error.message):"Error"}}},wfe={class:"font-sans text-center px-10 py-6"},_fe={class:"text-lg mb-4"},xfe=["onClick"];function Efe(e,t,r,n,i,a){const o=ge("base-modal");return V(),Ge(o,{ref:"modal","no-close-on-backdrop":"","no-close-button":"","no-padding":"",size:"sm"},{default:Qe(({confirm:s})=>[ne("div",wfe,[ne("div",_fe,We(a.title),1),ne("button",{class:"i-btn-s rounded",onClick:s},We(e.$t("error.button")),9,xfe)])]),_:1},512)}var Dfe=we(bfe,[["render",Efe]]);const Sfe={components:{HiddenFields:yfe,Page:XJ},computed:{...bt({checkoutRequired:"checkout/required",flushData:"form/flushData"})},methods:{process(){this.checkoutRequired?this.$route.params.uri?this.$router.push({name:"checkout",params:{uri:this.$route.params.uri}}).catch(()=>{}):this.$router.push({name:"checkout-index"}).catch(()=>{}):this.$store.dispatch("process/submit").then(async()=>{this.flushData&&await this.$store.dispatch("loader/reset"),this.$route.params.uri?this.$router.push({name:"thank-you",params:{uri:this.$route.params.uri}}).catch(()=>{}):this.$router.push({name:"thank-you-index"}).catch(()=>{})}).catch(e=>{this.$store.dispatch("error/error",e).then(()=>{this.$modal(Dfe).on("confirm",this.process).show()})})}}};function Cfe(e,t,r,n,i,a){const o=ge("page"),s=ge("hidden-fields");return V(),ae("form",{onSubmit:t[0]||(t[0]=ur(()=>{},["stop","prevent"]))},[Ee(o,{onDone:a.process},null,8,["onDone"]),Ee(s)],32)}var Afe=we(Sfe,[["render",Cfe]]);const Nfe=["action-list","image","picture-choice"],Tfe=e=>{switch(e.type){case"picture-choice":case"action-list":return B(e,"properties.items",[]).map(t=>t.value);case"image":{const t=B(e,"properties.type","image");return t==="image"?[B(e,"properties.location")]:t==="youtube"?["https://i.ytimg.com/vi/"+B(e,"properties.youtubeVideoId","TLpx-Z_F_xY")+"/hqdefault.jpg"]:[]}default:return[]}},kfe={computed:{...bt({fields:"fields/all"}),preload(){return this.fields.filter(e=>Nfe.includes(e.type)).reduce((e,t)=>e.concat(Tfe(t)),[]).filter(e=>!!e)}}},Ofe={class:"hidden"},Ffe=["src"];function $fe(e,t,r,n,i,a){return V(),ae("div",Ofe,[(V(!0),ae(vt,null,Gt(a.preload,(o,s)=>(V(),ae("img",{key:s,src:o},null,8,Ffe))),128))])}var Bfe=we(kfe,[["render",$fe]]);const Pfe={components:{CheckItem:Xs},data(){return{dont_show:!1,show:!1,close:!1}},computed:{...bt({loaded:"loader/loaded",published:"form/published"}),klass(){return["ambergris","print:hidden fixed bottom-0 left-0 right-0 z-50 py-8 text-white text-xs","transition-all duration-700","before:absolute before:opacity-90 before:bg-slate-800 before:top-0 before:bottom-0 before:right-0 before:left-0",this.show&&!this.close?"opacity-100 translate-y-0":"opacity-0 translate-y-full"]}},watch:{dont_show(){this.saveState()},loaded(){setTimeout(()=>{this.show=!this.dont_show&&!this.published},2e3)}},mounted(){this.loadState()},methods:{loadState(){try{const e=this.$localStorage.get("aida-show-warning");this.dont_show=B(e?JSON.parse(e):{},"dont_show",!1)}catch{}},saveState(){this.$localStorage.set("aida-show-warning",JSON.stringify({dont_show:this.dont_show}))},got_it(){this.close=!0}}},Ife={class:"i-container relative opacity-90 flex"},Mfe={class:"text-left mr-8"},Rfe={class:"max-w-fit ml-auto mt-2"};function Lfe(e,t,r,n,i,a){const o=ge("check-item");return V(),ae("div",{class:Ye(a.klass)},[ne("div",Ife,[ne("div",Mfe,[Qn(We(e.$t("labels.popup-warning"))+" ",1),ne("div",Rfe,[Ee(o,{modelValue:i.dont_show,"onUpdate:modelValue":t[0]||(t[0]=s=>i.dont_show=s),size:"sm","label-class":"items-center"},{default:Qe(()=>[Qn(We(e.$t("labels.dont-show-again")),1)]),_:1},8,["modelValue"])])]),ne("button",{class:"i-btn-p h-fit text-base whitespace-nowrap",onClick:t[1]||(t[1]=(...s)=>a.got_it&&a.got_it(...s))},We(e.$t("labels.got-it")),1)])],2)}var jfe=we(Pfe,[["render",Lfe]]);const Ufe={computed:{...bt({current:"pages/current"})},watch:{current:{handler:function(){this.$store.dispatch("tracking/evt",{timestamp:Date.now(),type:"page",page:this.current})},immediate:!0}},render(){return Qa("i",{class:"hidden"})}},zfe={components:{Ribbon:kP,Aidaform:u6,TheMain:l6,TheForm:Afe,Preload:Bfe,PopupWarning:jfe,Tracker:Ufe},computed:{...bt({height:"ribbon/height",enabled:"ribbon/enabled",loaded:"loader/loaded",hasCustomBackground:"form/hasCustomBackground",trackingRequired:"loader/trackingRequired"})}};function qfe(e,t,r,n,i,a){const o=ge("ribbon"),s=ge("the-form"),u=ge("the-main"),l=ge("popup-warning"),c=ge("preload"),f=ge("tracker"),d=ge("aidaform");return V(),Ge(d,null,{default:Qe(()=>[Ee(o,{class:"z-0 max-h-screen",height:e.height,enabled:!e.hasCustomBackground&&e.enabled},null,8,["height","enabled"]),Ee(u,null,{default:Qe(()=>[e.loaded?(V(),Ge(s,{key:0,class:"w-full"})):ct("",!0)]),_:1}),Ee(l),Ee(c),e.trackingRequired?(V(),Ge(f,{key:0})):ct("",!0)]),_:1})}var Mm=we(zfe,[["render",qfe]]),Hfe="/assets/logo_black.95bfa01c.svg",Vfe="/assets/page-not-published.527ccede.svg";const Kfe={components:{MetaTags:o6},data(){return{title:"AidaForm - the Best Landing Page and Form Builder",description:"Try AidaForm online form creator for FREE - no coding skills required! Create engaging online forms: surveys, quizzes, contact and application forms.",keywords:"",language:"en"}},computed:{...bt({lang:"page/language"}),loginLink(){switch(this.lang){case"de":return"https://my.aidaform.com/login?lng=de";default:return"https://my.aidaform.com/login"}},signupLink(){switch(this.lang){case"de":return"https://my.aidaform.com/signup?lng=de";default:return"https://my.aidaform.com/signup"}}},mounted(){this.$route.name==="not-found"&&this.$router.push({name:"404"}).catch(()=>{})}},xE=e=>(ua("data-v-05828607"),e=e(),la(),e),Gfe={class:"head bg-sky-50"},Wfe={class:"i-container pt-6"},Yfe=xE(()=>ne("a",{href:"https://aidaform.com"},[ne("img",{class:"inline-block w-40 h-16",src:Hfe})],-1)),Zfe={class:"flex py-8 sm:py-16 flex-wrap sm:flex-nowrap"},Jfe={class:"px-4"},Xfe={class:"font-bold text-2xl sm:text-4xl leading-tight mb-2 mt-12"},Qfe={class:"text-xl sm:text-2xl leading-tight"},ede=xE(()=>ne("div",{class:"text-center w-full mt-8"},[ne("img",{class:"inline-block w-full h-auto max-w-fit",src:Vfe})],-1)),tde={class:"i-container flex flex-wrap sm:flex-nowrap mt-8"},rde={class:"px-8"},nde={class:"text-xl"},ide=["href"],ade={class:"px-8"},ode={class:"text-xl"},sde=["href"];function ude(e,t,r,n,i,a){const o=ge("meta-tags");return V(),ae("div",null,[ne("div",Gfe,[ne("div",Wfe,[Yfe,ne("div",Zfe,[ne("div",Jfe,[ne("h1",Xfe,We(e.$t("not-found.h1")),1),ne("h2",Qfe,We(e.$t("not-found.h2")),1)]),ede])])]),ne("div",tde,[ne("div",rde,[ne("div",nde,We(e.$t("not-found.desc-login")),1),ne("a",{href:a.loginLink,class:"i-btn-p my-8 px-8 h-fit text-base whitespace-nowrap"},We(e.$t("not-found.login")),9,ide)]),ne("div",ade,[ne("div",ode,We(e.$t("not-found.desc-signup")),1),ne("a",{href:a.signupLink,class:"i-btn-p my-8 px-8 h-fit text-base whitespace-nowrap"},We(e.$t("not-found.signup")),9,sde)])]),Ee(o,{title:i.title,description:i.description,keywords:i.keywords,language:i.language},null,8,["title","description","keywords","language"])])}var n4=we(Kfe,[["render",ude],["__scopeId","data-v-05828607"]]);const lde={components:{Aidaform:u6,TheMain:l6,SvgIcon:m6},data(){return{show:!1}},computed:{...bt({loaded:"loader/loaded",submitAction:"form/submitAction"})},mounted(){this.$store.dispatch("iframe/redraw"),this.$store.dispatch("world/scrollToTop")},methods:{async process(){const e=this.submitAction;if(B(e,"action","thank-you")!=="thank-you")try{await this.$store.dispatch("pages/act",e)==="page"&&(this.$route.params.uri?this.$router.push({name:"view-form",hash:window.location.hash}).catch(()=>{}):this.$router.push({name:"view-form-index",hash:window.location.hash}).catch(()=>{}))}catch{await this.$store.dispatch("loader/reset"),this.show=!0}else await this.$store.dispatch("loader/reset"),this.show=!0}}},cde={key:0,class:"text-center px-4"},fde={class:"icon-wrapper thank-you-gradient mx-auto relative mt-8 flex items-center justify-center"},dde={class:"font-bold text-[2.5rem] leading-tight mb-2 mt-6"},pde={class:"text-xl leading-6 mb-2 mt-14"};function hde(e,t,r,n,i,a){const o=ge("svg-icon"),s=ge("the-main"),u=ge("aidaform");return V(),Ge(u,{"no-scroll":"","no-image":"","no-footer":!i.show,onLoaded:a.process},{default:Qe(()=>[Ee(s,{"no-image":""},{default:Qe(()=>[e.loaded&&i.show?(V(),ae("div",cde,[ne("div",fde,[Ee(o,{class:"icon w-16 h-20","icon-name":"like"})]),ne("h1",dde,We(e.$t("thank-you.h1")),1),ne("h2",pde,We(e.$t("thank-you.h2")),1)])):ct("",!0)]),_:1})]),_:1},8,["no-footer","onLoaded"])}var i4=we(lde,[["render",hde],["__scopeId","data-v-076acece"]]);const a4=()=>Yl(()=>import("./checkout.059fc0de.js"),["assets/checkout.059fc0de.js","assets/checkout.8feeeddb.css"]),Bc=xP({history:MB(),routes:[{path:"/form/not-found",name:"404",component:n4},{path:"/form/thank-you",name:"thank-you-index",component:i4},{path:"/form/checkout",name:"checkout-index",component:a4},{path:"/",name:"view-form-index",component:Mm},{path:"/:uri",name:"view-form",component:Mm},{path:"/:uri/thank-you",name:"thank-you",component:i4},{path:"/:uri/checkout",name:"checkout",component:a4},{path:"/:uri/:page",name:"view-form-page",component:Mm},{path:"/:pathMatch(.*)*",name:"not-found",component:n4}]});Bc.beforeEach(DP);const wp={FLUSH:"1",INIT:"2"},mde={status:null,accessKeyId:null,secretAccessKey:null,sessionToken:null,fontFamily:null,loading:!1},vde={reset(e){e.commit(wp.FLUSH),e.commit(wp.INIT,{status:B(e.rootGetters["loader/data"],"status"),accessKeyId:B(e.rootGetters["loader/data"],"credentials.accessKeyId"),secretAccessKey:B(e.rootGetters["loader/data"],"credentials.secretAccessKey"),sessionToken:B(e.rootGetters["loader/data"],"credentials.sessionToken"),fontFamily:B(e.rootGetters["loader/data"],"data.fontFamily"),fontSize:B(e.rootGetters["loader/data"],"data.fontSize"),theme:B(e.rootGetters["loader/data"],"data.theme","out-of-the-blue")||"out-of-the-blue",customBackground:B(e.rootGetters["loader/data"],"data.colors.background1",!1),customFont:B(e.rootGetters["loader/data"],"data.colors.font1",!1),customLink:B(e.rootGetters["loader/data"],"data.colors.font5",!1),customSvgIcon:B(e.rootGetters["loader/data"],"data.colors.svgIcon2",!1)})}},gde={[wp.FLUSH](e){e.status=null},[wp.INIT](e,t){e.status=t.status,e.accessKeyId=t.accessKeyId,e.secretAccessKey=t.secretAccessKey,e.sessionToken=t.sessionToken,t.fontFamily?t.fontFamily.includes(":")?e.fontFamily=t.fontFamily:(e.loading=!0,pb.load({google:{families:[t.fontFamily+":400,700"]},classes:!1,active:()=>{e.loading=!1,e.fontFamily=t.fontFamily},inactive:()=>{e.loading=!1,e.fontFamily=null}})):(e.loading=!0,pb.load({google:{families:["Ubuntu:400,700"]},classes:!1,active:()=>{e.loading=!1,e.fontFamily="Ubuntu"},inactive:()=>{e.loading=!1,e.fontFamily=null}})),t.fontSize&&!isNaN(Number(t.fontSize))&&(document.documentElement.style.fontSize=Number(t.fontSize)+"px"),document.documentElement.classList.add(t.theme),document.documentElement.style.backgroundColor="var(--color-background-1)",t.customBackground&&document.documentElement.style.setProperty("--color-background-1",t.customBackground),t.customFont&&document.documentElement.style.setProperty("--color-font-1",t.customFont),t.customLink&&document.documentElement.style.setProperty("--color-font-5",t.customLink),t.customSvgIcon&&document.documentElement.style.setProperty("--svg-icon-color-2",t.customSvgIcon)}},yde={domain:()=>window.location.hostname.endsWith(".aidaform.com")?window.location.hostname.substring(0,window.location.hostname.length-13):window.location.hostname,uri:()=>B(Bc.currentRoute.value,"params.uri","/"),token:()=>B(Bc.currentRoute.value,"query.token",null),published:e=>e.status==="PUBLISHED",autoFocus:(e,t,r,n)=>B(n["loader/data"],"data.autoFocus",!1),autoScroll:(e,t,r,n)=>B(n["loader/data"],"data.autoScroll",!1),autoAdvance:(e,t,r,n)=>B(n["loader/data"],"data.autoAdvance",!1),submitAction:(e,t,r,n)=>{const i=Object.assign({},B(n["loader/data"],"data.submitAction",{})),a=n["fields/offset"],o=s=>{s.action==="page"&&s.value&&a[Number(s.value)-1]!==void 0&&(s.value=Number(s.value)+a[Number(s.value)-1])};return i.action==="page"&&i.value?a[Number(i.value)-1]!==void 0&&(i.value=Number(i.value)+a[Number(i.value)-1]):i.action==="logic"&&(B(i,"logic.fallback")&&o(i.logic.fallback),B(i,"logic.jumps")&&i.logic.jumps.forEach(o)),i},hideSubmit:(e,t,r,n)=>B(n["loader/data"],"data.hideSubmit",!1),hideFooter:(e,t,r,n)=>t.backgroundEnabled?!1:B(n["loader/data"],"data.hideFooter",!1),hideBackButton:(e,t,r,n)=>B(n["loader/data"],"data.hideBackButton",!1),flushData:(e,t,r,n)=>B(n["loader/data"],"data.flushData",!1),noIcons:(e,t,r,n)=>B(n["loader/data"],"data.noIcons",!1),noIndex:(e,t,r,n)=>B(n["loader/data"],"data.noIndex",!1),hasHistory:(e,t,r,n)=>B(n["loader/data"],"data.hasHistory",!1),colors:(e,t,r,n)=>B(n["loader/data"],"data.colors",{}),hasCustomBackground:(e,t)=>!!t.backgroundColorCustom||t.backgroundEnabled,backgroundColorCustom:(e,t,r,n)=>B(n["loader/data"],"data.colors.background1"),backgroundColorTheme:(e,t,r,n)=>B({ambergris:"#2F3034",dracula:"#282a36","ayu-light":"#fafafa","ayu-mirage":"#101521","neon-night":"#282a36","solarized-light":"#fdf6e3","solarized-dark":"#073642"},B(n["loader/data"],"data.theme","out-of-the-blue"),"#ffffff"),backgroundColor:(e,t)=>t.backgroundColorCustom||t.backgroundColorTheme,backgroundEnabled:(e,t,r,n)=>B(n["loader/data"],"data.bgEnabled",!1),backgroundImage:(e,t,r,n)=>B(n["loader/data"],"data.bgImage"),backgroundOpacity:(e,t,r,n)=>Number(B(n["loader/data"],"data.bgOpacity"))-1,btnStyle:(e,t,r,n)=>{const i=B(n["loader/data"],"data.btnStyle",null);return i!==null?i:"pill"},btnSize:(e,t,r,n)=>{const i=B(n["loader/data"],"data.btnSize",null);return i!==null?i:"medium"},keyBindings:(e,t,r,n)=>B(n["loader/data"],"data.keyBindings",!1),conversational:(e,t,r,n)=>B(n["loader/data"],"data.conversational",!1),conversationalPrev:(e,t,r,n)=>B(n["loader/data"],"data.conversationalPrev")||"Go Back",conversationalNext:(e,t,r,n)=>B(n["loader/data"],"data.conversationalNext")||"Continue",optionalStyle:(e,t,r,n)=>B(n["loader/data"],"data.optionalStyle")||"optional",accessKeyId:e=>e.accessKeyId,secretAccessKey:e=>e.secretAccessKey,sessionToken:e=>e.sessionToken,loading:e=>e.loading,fontFamily:e=>e.fontFamily!==null?e.fontFamily:"Ubuntu",progress_enabled:(e,t,r,n)=>B(n["loader/data"],"data.pbEnabled",!1),progress_size:(e,t,r,n)=>B(n["loader/data"],"data.pbSize","medium"),progress_appearance:(e,t,r,n)=>B(n["loader/data"],"data.pbAppearance","b"),progress_colors:(e,t,r,n)=>B(n["loader/data"],"data.pbColors","c"),progress_label:(e,t,r,n)=>B(n["loader/data"],"data.pbLabel","percent"),inventory:(e,t,r,n)=>B(n["loader/data"],"data.inventory",[])};var bde={namespaced:!0,state:mde,actions:vde,mutations:gde,getters:yde};const wde=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);var _de=e=>!wde.has(e&&e.code);function o4(e,t,r,n,i,a,o){try{var s=e[a](o),u=s.value}catch(l){r(l);return}s.done?t(u):Promise.resolve(u).then(n,i)}function EE(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function o(u){o4(a,n,i,o,s,"next",u)}function s(u){o4(a,n,i,o,s,"throw",u)}o(void 0)})}}function s4(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function u4(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?s4(Object(r),!0).forEach(function(n){xde(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s4(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xde(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var y0="axios-retry";function DE(e){return!e.response&&Boolean(e.code)&&e.code!=="ECONNABORTED"&&_de(e)}var SE=["get","head","options"],Ede=SE.concat(["put","delete"]);function zg(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status>=500&&e.response.status<=599)}function Dde(e){return e.config?zg(e)&&SE.indexOf(e.config.method)!==-1:!1}function CE(e){return e.config?zg(e)&&Ede.indexOf(e.config.method)!==-1:!1}function AE(e){return DE(e)||CE(e)}function Sde(){return 0}function Cde(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=Math.pow(2,e)*100,r=t*.2*Math.random();return t+r}function l4(e){var t=e[y0]||{};return t.retryCount=t.retryCount||0,e[y0]=t,t}function Ade(e,t){return u4(u4({},t),e[y0])}function Nde(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}function Tde(e,t,r,n){return b0.apply(this,arguments)}function b0(){return b0=EE(function*(e,t,r,n){var i=r.retryCount<e&&t(n);if(typeof i=="object")try{var a=yield i;return a!==!1}catch{return!1}return i}),b0.apply(this,arguments)}function nu(e,t){e.interceptors.request.use(r=>{var n=l4(r);return n.lastRequestTime=Date.now(),r}),e.interceptors.response.use(null,function(){var r=EE(function*(n){var{config:i}=n;if(!i)return Promise.reject(n);var{retries:a=3,retryCondition:o=AE,retryDelay:s=Sde,shouldResetTimeout:u=!1,onRetry:l=()=>{}}=Ade(i,t),c=l4(i);if(yield Tde(a,o,c,n)){c.retryCount+=1;var f=s(c.retryCount,n);if(Nde(e,i),!u&&i.timeout&&c.lastRequestTime){var d=Date.now()-c.lastRequestTime;i.timeout=Math.max(i.timeout-d-f,1)}return i.transformRequest=[p=>p],l(c.retryCount,n,i),new Promise(p=>setTimeout(()=>p(e(i)),f))}return Promise.reject(n)});return function(n){return r.apply(this,arguments)}}())}nu.isNetworkError=DE;nu.isSafeRequestError=Dde;nu.isIdempotentRequestError=CE;nu.isNetworkOrIdempotentRequestError=AE;nu.exponentialDelay=Cde;nu.isRetryableError=zg;function qg(e){return(qg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function c4(e,t,r,n,i,a,o){try{var s=e[a](o),u=s.value}catch(l){return void r(l)}s.done?t(u):Promise.resolve(u).then(n,i)}function kde(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Lu(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f4(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?f4(Object(r),!0).forEach(function(n){Lu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f4(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bs(e){return function(t){if(Array.isArray(t))return Rm(t)}(e)||function(t){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(t))return Array.from(t)}(e)||function(t,r){if(!!t){if(typeof t=="string")return Rm(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rm(t,r)}}(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Rm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Ode=function(e){return function(t,r){return Bs(t.querySelectorAll(r)||[])}(e,'button:not([disabled]), select:not([disabled]), a[href]:not([disabled]), area[href]:not([disabled]), [contentEditable=""]:not([disabled]), [contentEditable="true"]:not([disabled]), [contentEditable="TRUE"]:not([disabled]), textarea:not([disabled]), iframe:not([disabled]), input:not([disabled]), summary:not([disabled]), [tabindex]:not([tabindex="-1"])')},d4=function(e){return e==document.activeElement},Fde=function(){function e(){(function(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")})(this,e),this.root=null,this.elements=[],this.onKeyDown=this.onKeyDown.bind(this),this.enable=this.enable.bind(this),this.disable=this.disable.bind(this),this.firstElement=this.firstElement.bind(this),this.lastElement=this.lastElement.bind(this)}var t,r;return t=e,(r=[{key:"lastElement",value:function(){return this.elements[this.elements.length-1]||null}},{key:"firstElement",value:function(){return this.elements[0]||null}},{key:"onKeyDown",value:function(n){if(function(i){return i.key==="Tab"||i.keyCode===9}(n)){if(!n.shiftKey)return!document.activeElement||d4(this.lastElement())?(this.firstElement().focus(),void n.preventDefault()):void 0;d4(this.firstElement())&&(this.lastElement().focus(),n.preventDefault())}}},{key:"enabled",value:function(){return!!this.root}},{key:"enable",value:function(n){n&&(this.root=n,this.elements=Ode(this.root),this.root.addEventListener("keydown",this.onKeyDown))}},{key:"disable",value:function(){this.root.removeEventListener("keydown",this.onKeyDown),this.root=null}}])&&kde(t.prototype,r),e}(),p4=function(e){var t=e.targetTouches?e.targetTouches[0]:e;return{x:t.clientX,y:t.clientY}},Xf=function(e,t,r){return typeof e!="number"&&(e=Math.min(t,r)||t),typeof r!="number"&&(r=Math.max(t,e)),Math.min(Math.max(t,e),r)},h4=function(e){return e&&Number(e.replace(/px$/,""))||0},_p={down:{pc:"mousedown",m:"touchstart"},move:{pc:"mousemove",m:"touchmove"},up:{pc:"mouseup",m:"touchend"}},Qf=function(e,t,r){t&&t.addEventListener(_p[e].pc,r),t&&t.addEventListener(_p[e].m,r,{passive:!1})},ed=function(e,t,r){t&&t.removeEventListener(_p[e].pc,r),t&&t.removeEventListener(_p[e].m,r)},Hg=!1;if(typeof window!="undefined"){var m4={get passive(){Hg=!0}};window.addEventListener("testPassive",null,m4),window.removeEventListener("testPassive",null,m4)}var hc,mc,NE=typeof window!="undefined"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1),Mo=[],xp=!1,Ed=0,v4=-1,$de=function(e,t){var r=!1;return function(n){for(var i=[];n;){if(i.push(n),n.classList.contains("vfm"))return i;n=n.parentElement}return i}(e).forEach(function(n){(function(i){if(!i||i.nodeType!==Node.ELEMENT_NODE)return!1;var a=window.getComputedStyle(i);return["auto","scroll"].includes(a.overflowY)&&i.scrollHeight>i.clientHeight})(n)&&function(i,a){return!(i.scrollTop===0&&a<0||i.scrollTop+i.clientHeight+a>=i.scrollHeight&&a>0)}(n,t)&&(r=!0)}),r},TE=function(e){return Mo.some(function(){return $de(e,-Ed)})},w0=function(e){var t=e||window.event;return!!TE(t.target)||t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1)},Bde=function(e,t){if(e){if(!Mo.some(function(n){return n.targetElement===e})){var r={targetElement:e,options:t||{}};Mo=[].concat(Bs(Mo),[r]),NE?(e.ontouchstart=function(n){n.targetTouches.length===1&&(v4=n.targetTouches[0].clientY)},e.ontouchmove=function(n){n.targetTouches.length===1&&function(i,a){Ed=i.targetTouches[0].clientY-v4,!TE(i.target)&&(a&&a.scrollTop===0&&Ed>0||function(o){return!!o&&o.scrollHeight-o.scrollTop<=o.clientHeight}(a)&&Ed<0?w0(i):i.stopPropagation())}(n,e)},xp||(document.addEventListener("touchmove",w0,Hg?{passive:!1}:void 0),xp=!0)):function(n){if(mc===void 0){var i=!!n&&n.reserveScrollBarGap===!0,a=window.innerWidth-document.documentElement.clientWidth;if(i&&a>0){var o=parseInt(getComputedStyle(document.body).getPropertyValue("padding-right"),10);mc=document.body.style.paddingRight,document.body.style.paddingRight="".concat(o+a,"px")}}hc===void 0&&(hc=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},Lm=function(e){e?(Mo=Mo.filter(function(t){return t.targetElement!==e}),NE?(e.ontouchstart=null,e.ontouchmove=null,xp&&Mo.length===0&&(document.removeEventListener("touchmove",w0,Hg?{passive:!1}:void 0),xp=!1)):Mo.length||(mc!==void 0&&(document.body.style.paddingRight=mc,mc=void 0),hc!==void 0&&(document.body.style.overflow=hc,hc=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")},td=function(){},g4="enter",y4="entering",rd="leave",b4="leavng",Pde={t:"ns-resize",tr:"nesw-resize",r:"ew-resize",br:"nwse-resize",b:"ns-resize",bl:"nesw-resize",l:"ew-resize",tl:"nwse-resize"},Dd={props:{name:{type:String,default:null},modelValue:{type:Boolean,default:!1},ssr:{type:Boolean,default:!0},classes:{type:[String,Object,Array],default:""},overlayClass:{type:[String,Object,Array],default:""},contentClass:{type:[String,Object,Array],default:""},styles:{type:[Object,Array],default:function(){return{}}},overlayStyle:{type:[Object,Array],default:function(){return{}}},contentStyle:{type:[Object,Array],default:function(){return{}}},lockScroll:{type:Boolean,default:!0},hideOverlay:{type:Boolean,default:!1},clickToClose:{type:Boolean,default:!0},escToClose:{type:Boolean,default:!1},preventClick:{type:Boolean,default:!1},attach:{type:null,default:!1,validator:function(e){var t=qg(e);return t==="boolean"||t==="string"||e.nodeType===Node.ELEMENT_NODE}},transition:{type:[String,Object],default:"vfm"},overlayTransition:{type:[String,Object],default:"vfm"},keepOverlay:{type:Boolean,default:!1},zIndexAuto:{type:Boolean,default:!0},zIndexBase:{type:[String,Number],default:1e3},zIndex:{type:[Boolean,String,Number],default:!1},focusRetain:{type:Boolean,default:!0},focusTrap:{type:Boolean,default:!1},fitParent:{type:Boolean,default:!0},drag:{type:Boolean,default:!1},dragSelector:{type:String,default:""},keepChangedStyle:{type:Boolean,default:!1},resize:{type:Boolean,default:!1},resizeDirections:{type:Array,default:function(){return["t","tr","r","br","b","bl","l","tl"]},validator:function(e){return["t","tr","r","br","b","bl","l","tl"].filter(function(t){return e.indexOf(t)!==-1}).length===e.length}},minWidth:{type:Number,default:0},minHeight:{type:Number,default:0},maxWidth:{type:Number,default:1/0},maxHeight:{type:Number,default:1/0}},emits:["update:modelValue","click-outside","before-open","opened","before-close","closed","_before-open","_opened","_closed","drag:start","drag:move","drag:end","resize:start","resize:move","resize:end"],setup:function(e,t){var r=t.emit,n=Symbol("vfm"),i=ht(null),a=ht(null),o=ht(null),s=ht(null),u=ht(null),l=ht(null),c=ht(null),f=new Fde,d=ht(!1),p=Vs({modal:!1,overlay:!1,resize:!1}),h=ht(null),b=ht(null),g=ht(!1),v=ht({}),S=ht({}),w=ht(null),D=ht(null),_=td,N=td,$=tt(function(){return typeof e.overlayTransition=="string"?{name:e.overlayTransition}:yn({},e.overlayTransition)}),k=tt(function(){return typeof e.transition=="string"?{name:e.transition}:yn({},e.transition)}),K=tt(function(){return(e.hideOverlay||h.value===rd)&&b.value===rd}),G=tt(function(){return e.zIndex===!1?!!e.zIndexAuto&&+e.zIndexBase+2*(c.value||0):e.zIndex}),j=tt(function(){return yn({},G.value!==!1&&{zIndex:G.value})}),q=tt(function(){var de=[S.value];return Array.isArray(e.contentStyle)?de.push.apply(de,Bs(e.contentStyle)):de.push(e.contentStyle),de});function re(){return{uid:n,props:e,emit:r,vfmContainer:a,vfmContent:o,vfmResize:s,vfmOverlayTransition:u,vfmTransition:l,getAttachElement:I,modalStackIndex:c,visibility:p,handleLockScroll:x,$focusTrap:f,toggle:$e,params:v}}function M(){if(e.modelValue){if(r("_before-open",ee({type:"_before-open"})),oe("before-open",!1))return void N("show");var de=I();if(de||e.attach===!1){if(e.attach!==!1){if(!i.value)return d.value=!0,void Ua(function(){M()});de.appendChild(i.value)}var De=e.api.openedModals.findIndex(function(Ne){return Ne.uid===n});De!==-1&&e.api.openedModals.splice(De,1),e.api.openedModals.push(re()),c.value=e.api.openedModals.length-1,x(),e.api.openedModals.filter(function(Ne){return Ne.uid!==n}).forEach(function(Ne,je){Ne.getAttachElement()===de&&(Ne.modalStackIndex.value=je,!Ne.props.keepOverlay&&(Ne.visibility.overlay=!1))}),d.value=!0,p.overlay=!0,p.modal=!0}else de!==!1&&console.warn("Unable to locate target ".concat(e.attach))}}function U(){var de=e.api.openedModals.findIndex(function(Ne){return Ne.uid===n});if(de!==-1&&e.api.openedModals.splice(de,1),e.api.openedModals.length>0){var De=e.api.openedModals[e.api.openedModals.length-1];De.props.focusTrap&&De.$focusTrap.firstElement().focus(),(De.props.focusRetain||De.props.focusTrap)&&De.vfmContainer.value.focus(),!De.props.hideOverlay&&(De.visibility.overlay=!0)}e.drag&&Ue(),e.resize&&Te(),w.value=null,p.overlay=!1,p.modal=!1}function x(){e.modelValue&&Ua(function(){e.lockScroll?Bde(a.value,{reserveScrollBarGap:!0}):Lm(a.value)})}function I(){return e.attach!==!1&&(typeof e.attach=="string"?!!window&&window.document.querySelector(e.attach):e.attach)}function ee(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return yn({ref:re()},de)}function oe(de,De){var Ne=!1,je=ee({type:de,stop:function(){Ne=!0}});return r(de,je),!!Ne&&(g.value=!0,Ua(function(){r("update:modelValue",De)}),!0)}function ce(de,De,Ne){w.value="".concat(De,":").concat(Ne),r(w.value,de)}function $e(de,De){var Ne=arguments;return new Promise(function(je,Pe){_=function(R){je(R),_=td},N=function(R){Pe(R),N=td};var ze=typeof de=="boolean"?de:!e.modelValue;ze&&Ne.length===2&&(v.value=De),r("update:modelValue",ze)})}function me(de){de.stopPropagation();var De,Ne="resize",je="drag",Pe=de.target.getAttribute("direction");if(Pe)De=Ne;else{if(!function(Le,Ve,P){return P===""||Bs(Ve.querySelectorAll(P)).includes(Le.target)}(de,o.value,e.dragSelector))return;De=je}ce(de,De,"start");var ze,R,J,he,Se=p4(de),Ce=a.value.getBoundingClientRect(),X=o.value.getBoundingClientRect(),ie=window.getComputedStyle(o.value).position==="absolute",fe=h4(S.value.top),xe=h4(S.value.left),pe=function(){if(e.fitParent){var Le={absolute:function(){return{minTop:0,minLeft:0,maxTop:Ce.height-X.height,maxLeft:Ce.width-X.width}},relative:function(){return{minTop:fe+Ce.top-X.top,minLeft:xe+Ce.left-X.left,maxTop:fe+Ce.bottom-X.bottom,maxLeft:xe+Ce.right-X.right}}};return ie?Le.absolute():Le.relative()}return{}}(),Be=De===Ne&&(ze=document.body,R="cursor",J=Pde[Pe],he=ze.style[R],ze.style[R]=J,function(){ze.style[R]=he}),ve=function(Le){Le.stopPropagation(),ce(Le,De,"move");var Ve,P,C=p4(Le),be={x:C.x-Se.x,y:C.y-Se.y};De===Ne&&(be=function(z,E,O,H,L){var Q=function(Y){var le,Fe=E[Y.axis];Fe=e.fitParent?Xf(Y.min,Fe,Y.max):Fe;var He=Xf(Y.minEdge,Y.getEdge(Fe),Y.maxEdge);return Fe=Y.getOffsetAxis(He,L),Lu(le={},Y.edgeName,He),Lu(le,Y.axis,Fe),le},se=function(Y,le,Fe,He){var et,gt=H[le],Lt=O[Y]-H[Y],ir=(et=le).charAt(0).toUpperCase()+et.slice(1);return{axis:Fe,edgeName:le,min:He?Lt:-gt,max:He?gt:Lt,minEdge:e["min".concat(ir)],maxEdge:e["max".concat(ir)],getEdge:function(Pt){return H[le]-Pt*(He?1:-1)},getOffsetAxis:function(Pt,mr){var Nr=H[le]-Pt;return mr?He?Nr:0:(He?1:-1)*Nr/2}}},m={t:["top","height","y",!0],b:["bottom","height","y",!1],l:["left","width","x",!0],r:["right","width","x",!1]},A={x:0,y:0};return z.split("").forEach(function(Y){var le=se.apply(void 0,Bs(m[Y]));A=yn(yn({},A),Q(le))}),A}(Pe,be,Ce,X,ie)),ie?(Ve=X.top-Ce.top+be.y,P=X.left-Ce.left+be.x):(Ve=fe+be.y,P=xe+be.x),De===je&&e.fitParent&&(Ve=Xf(pe.minTop,Ve,pe.maxTop),P=Xf(pe.minLeft,P,pe.maxLeft));var T=yn(yn(yn({position:"relative",top:Ve+"px",left:P+"px",margin:"unset",touchAction:"none"},ie&&{position:"absolute",transform:"unset",width:X.width+"px",height:X.height+"px"}),be.width&&{width:be.width+"px"}),be.height&&{height:be.height+"px"});S.value=yn(yn({},S.value),T)};Qf("move",document,ve),Qf("up",document,function Le(Ve){Ve.stopPropagation(),De===Ne&&Be&&Be(),setTimeout(function(){ce(Ve,De,"end")}),ed("move",document,ve),ed("up",document,Le)})}function _e(){Qf("down",o.value,me),S.value.touchAction="none"}function Ue(){ed("down",o.value,me)}function te(){p.resize=!0,Ua(function(){Qf("down",s.value,me)})}function Te(){ed("down",s.value,me),p.resize=!1}return Vr(function(){return e.modelValue},function(de){if(g.value)g.value=!1;else if(M(),!de){if(oe("before-close",!0))return void N("hide");U()}}),Vr(function(){return e.lockScroll},x),Vr(function(){return e.hideOverlay},function(de){e.modelValue&&!de&&(p.overlay=!0)}),Vr(function(){return e.attach},M),Vr(K,function(de){de&&(d.value=!1,a.value.style.display="none")},{flush:"post"}),Vr(function(){return e.drag},function(de){d.value&&(de?_e():Ue())}),Vr(function(){return e.resize},function(de){d.value&&(de?te():Te())}),Vr(function(){return e.keepChangedStyle},function(de){de||(S.value={})}),e.api.modals.push(re()),Ks(function(){M()}),zu(function(){var de;U(),e.lockScroll&&a.value&&Lm(a.value),i==null||(de=i.value)===null||de===void 0||de.remove();var De=e.api.modals.findIndex(function(Ne){return Ne.uid===n});e.api.modals.splice(De,1)}),{root:i,vfmContainer:a,vfmContent:o,vfmResize:s,vfmOverlayTransition:u,vfmTransition:l,computedOverlayTransition:$,computedTransition:k,visible:d,visibility:p,params:v,calculateZIndex:G,bindStyle:j,bindContentStyle:q,beforeOverlayEnter:function(){h.value=y4},afterOverlayEnter:function(){h.value=g4},beforeOverlayLeave:function(){h.value=b4},afterOverlayLeave:function(){h.value=rd},beforeModalEnter:function(){b.value=y4},afterModalEnter:function(){b.value=g4,(e.focusRetain||e.focusTrap)&&a.value.focus(),e.focusTrap&&f.enable(a.value),e.drag&&_e(),e.resize&&te(),r("_opened"),r("opened",ee({type:"opened"})),_("show")},beforeModalLeave:function(){b.value=b4,f.enabled()&&f.disable()},afterModalLeave:function(){b.value=rd,c.value=null,e.lockScroll&&Lm(a.value),e.keepChangedStyle||(S.value={});var de=!1,De=ee({type:"closed",stop:function(){de=!0}});r("_closed"),r("closed",De),_("hide"),de||(v.value={})},onMousedown:function(de){D.value=de==null?void 0:de.target},onMouseupContainer:function(){D.value===a.value&&w.value!=="resize:move"&&(r("click-outside",ee({type:"click-outside"})),e.clickToClose&&r("update:modelValue",!1))},onEsc:function(){d.value&&e.escToClose&&r("update:modelValue",!1)}}}},jm=KD();ua("data-v-2836fdb5");var Ide={key:0,ref:"vfmResize",class:"vfm__resize vfm--absolute vfm--inset vfm--prevent-none vfm--select-none vfm--touch-none"};la();var Mde=jm(function(e,t,r,n,i,a){return r.ssr||n.visible?Fr((V(),Ge("div",{key:0,ref:"root",style:n.bindStyle,class:["vfm vfm--inset",[r.attach===!1?"vfm--fixed":"vfm--absolute",{"vfm--prevent-none":r.preventClick}]],onKeydown:t[4]||(t[4]=Yn(function(){return n.onEsc&&n.onEsc.apply(n,arguments)},["esc"]))},[Ee(Ku,ei(n.computedOverlayTransition,{onBeforeEnter:n.beforeOverlayEnter,onAfterEnter:n.afterOverlayEnter,onBeforeLeave:n.beforeOverlayLeave,onAfterLeave:n.afterOverlayLeave}),{default:jm(function(){return[!r.hideOverlay&&n.visibility.overlay?(V(),Ge("div",{key:0,class:["vfm__overlay vfm--overlay vfm--absolute vfm--inset",r.overlayClass],style:r.overlayStyle},null,6)):ct("v-if",!0)]}),_:1},16,["onBeforeEnter","onAfterEnter","onBeforeLeave","onAfterLeave"]),Ee(Ku,ei(n.computedTransition,{onBeforeEnter:n.beforeModalEnter,onAfterEnter:n.afterModalEnter,onBeforeLeave:n.beforeModalLeave,onAfterLeave:n.afterModalLeave}),{default:jm(function(){return[Fr(Ee("div",{ref:"vfmContainer",class:["vfm__container vfm--absolute vfm--inset vfm--outline-none",r.classes],style:r.styles,"aria-expanded":n.visibility.modal.toString(),role:"dialog","aria-modal":"true",tabindex:"-1",onMouseup:t[2]||(t[2]=ur(function(){return n.onMouseupContainer&&n.onMouseupContainer.apply(n,arguments)},["self"])),onMousedown:t[3]||(t[3]=ur(function(){return n.onMousedown&&n.onMousedown.apply(n,arguments)},["self"]))},[Ee("div",{ref:"vfmContent",class:["vfm__content",[r.contentClass,{"vfm--prevent-auto":r.preventClick}]],style:n.bindContentStyle,onMousedown:t[1]||(t[1]=function(o){return n.onMousedown(null)})},[dr(e.$slots,"default",{params:n.params,close:function(){return e.$emit("update:modelValue",!1)}}),n.visibility.resize&&n.visibility.modal?(V(),Ge("div",Ide,[(V(!0),Ge(vt,null,Gt(r.resizeDirections,function(o){return V(),Ge("div",{key:o,direction:o,class:["vfm--resize-".concat(o),"vfm--absolute vfm--prevent-auto"]},null,10,["direction"])}),128))],512)):ct("v-if",!0)],38)],46,["aria-expanded"]),[[$r,n.visibility.modal]])]}),_:3},16,["onBeforeEnter","onAfterEnter","onBeforeLeave","onAfterLeave"])],38)),[[$r,!r.ssr||n.visible]]):ct("v-if",!0)});(function(e,t){t===void 0&&(t={});var r=t.insertAt;if(e&&typeof document!="undefined"){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",r==="top"&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}})(`
.vfm--fixed[data-v-2836fdb5] {
  position: fixed;
}
.vfm--absolute[data-v-2836fdb5] {
  position: absolute;
}
.vfm--inset[data-v-2836fdb5] {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.vfm--overlay[data-v-2836fdb5] {
  background-color: rgba(0, 0, 0, 0.5);
}
.vfm--prevent-none[data-v-2836fdb5] {
  pointer-events: none;
}
.vfm--prevent-auto[data-v-2836fdb5] {
  pointer-events: auto;
}
.vfm--outline-none[data-v-2836fdb5]:focus {
  outline: none;
}
.vfm-enter-active[data-v-2836fdb5],
.vfm-leave-active[data-v-2836fdb5] {
  transition: opacity 0.2s;
}
.vfm-enter-from[data-v-2836fdb5],
.vfm-leave-to[data-v-2836fdb5] {
  opacity: 0;
}
.vfm--touch-none[data-v-2836fdb5] {
  touch-action: none;
}
.vfm--select-none[data-v-2836fdb5] {
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.vfm--resize-tr[data-v-2836fdb5],
.vfm--resize-br[data-v-2836fdb5],
.vfm--resize-bl[data-v-2836fdb5],
.vfm--resize-tl[data-v-2836fdb5] {
  width: 12px;
  height: 12px;
  z-index: 10;
}
.vfm--resize-t[data-v-2836fdb5] {
  top: -6px;
  left: 0;
  width: 100%;
  height: 12px;
  cursor: ns-resize;
}
.vfm--resize-tr[data-v-2836fdb5] {
  top: -6px;
  right: -6px;
  cursor: nesw-resize;
}
.vfm--resize-r[data-v-2836fdb5] {
  top: 0;
  right: -6px;
  width: 12px;
  height: 100%;
  cursor: ew-resize;
}
.vfm--resize-br[data-v-2836fdb5] {
  bottom: -6px;
  right: -6px;
  cursor: nwse-resize;
}
.vfm--resize-b[data-v-2836fdb5] {
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 12px;
  cursor: ns-resize;
}
.vfm--resize-bl[data-v-2836fdb5] {
  bottom: -6px;
  left: -6px;
  cursor: nesw-resize;
}
.vfm--resize-l[data-v-2836fdb5] {
  top: 0;
  left: -6px;
  width: 12px;
  height: 100%;
  cursor: ew-resize;
}
.vfm--resize-tl[data-v-2836fdb5] {
  top: -6px;
  left: -6px;
  cursor: nwse-resize;
}
`),Dd.render=Mde,Dd.__scopeId="data-v-2836fdb5",Dd.__file="lib/VueFinalModal.vue";var _0={props:{},methods:{slice:function(e){this.api.dynamicModals.splice(e,1)},beforeOpen:function(e,t,r){var n,i=this;return(n=function*(){e.ref.params.value=t.params,yield i.$nextTick(),yield i.$nextTick(),t.value||(i.slice(r),t.reject("show"))},function(){var a=this,o=arguments;return new Promise(function(s,u){var l=n.apply(a,o);function c(d){c4(l,s,u,c,f,"next",d)}function f(d){c4(l,s,u,c,f,"throw",d)}c(void 0)})})()},isString:function(e){return typeof e=="string"}}},Rde={class:"modals-container"};function w4(e,t){var r=yn(yn({},e),{},{props:yn({},e.props)});return Object.assign(r.props,{api:{type:Object,default:function(){return t}}}),r}_0.render=function(e,t,r,n,i,a){return V(),Ge("div",Rde,[(V(!0),Ge(vt,null,Gt(e.api.dynamicModals,function(o,s){return V(),Ge(Cr(o.component),ei({key:o.id},o.bind,{modelValue:o.value,"onUpdate:modelValue":function(u){return o.value=u}},qu(o.on),{on_closed:function(u){return a.slice(s)},on_beforeOpen:function(u){return a.beforeOpen(u,o)},on_opened:o.opened}),cS({_:2},[Gt(o.slots,function(u,l){return{name:l,fn:Qe(function(){return[ct(" eslint-disable vue/no-v-html "),a.isString(u)?(V(),Ge("div",{key:0,innerHTML:u},null,8,["innerHTML"])):(V(),Ge(Cr(u.component),ei({key:1},u.bind,qu(u.on||{})),null,16))]})}})]),1040,["modelValue","onUpdate:modelValue","on_closed","on_beforeOpen","on_opened"])}),128))])},_0.__file="lib/ModalsContainer.vue";var Lde=function(){var e,t,r=(t=null,{show:function(n){for(var i=this,a=arguments.length,o=new Array(a>1?a-1:0),s=1;s<a;s++)o[s-1]=arguments[s];switch(qg(n)){case"string":return this.toggle.apply(this,[n,!0].concat(o));case"object":return Promise.allSettled([new Promise(function(u,l){var c={value:!0,id:Symbol("dynamicModal"),component:t,bind:{},slots:{},on:{},params:o[0],reject:l,opened:function(){u("show")}};i.dynamicModals.push(n1(Object.assign(c,n)))})])}},hide:function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return this.toggle(i,!1)},hideAll:function(){return this.hide.apply(this,Bs(this.openedModals.map(function(n){return n.props.name})))},toggle:function(n){for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];var s=Array.isArray(n)?this.get.apply(this,Bs(n)):this.get(n);return Promise.allSettled(s.map(function(u){return u.toggle.apply(u,a)}))},get:function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return this.modals.filter(function(o){return i.includes(o.props.name)})},dynamicModals:n1([]),openedModals:[],modals:[],_setDefaultModal:function(n){t=n}});return Lu(e={},"$vfm",r),Lu(e,"VueFinalModal",function(n){var i=w4(Dd,n);return n._setDefaultModal(i),i}(r)),Lu(e,"ModalsContainer",function(n){return w4(_0,n)}(r)),e},Vg=Lde(),jde=Vg.$vfm,Ude=Vg.VueFinalModal,zde=Vg.ModalsContainer;class qde{constructor(t){this.options={component:t,bind:{},on:{}}}bind(t){return this.options.bind={...this.options.bind,...t},this}on(t,r){return this.options.on[t]=r,this}show(t={}){return jde.show(this.options,t)}}const kE=e=>new qde(e);var Hde={install:e=>{e.component("VueFinalModal",Ude),e.component("ModalsContainer",zde),e.config.globalProperties.$modal=kE}};const Vde={components:{BaseModal:gg,ShortText:vh,FormNavigation:rx},computed:{...bt({btnStyle:"form/btnStyle",passwordRequired:"loader/passwordRequired",password:"loader/password",fontFamily:"form/fontFamily"}),style(){return{"font-family":this.fontFamily+", sans-serif"}}},methods:{click(){this.$refs.modal.hide(),this.$store.dispatch("loader/load")}}},Kde={class:"text-lg text-center"};function Gde(e,t,r,n,i,a){const o=ge("short-text"),s=ge("form-navigation"),u=ge("base-modal");return V(),Ge(u,{ref:"modal","no-close-on-backdrop":"","no-close-button":"","no-padding":"",size:"sm"},{default:Qe(()=>[ne("div",{class:"px-10 py-6",style:ln(a.style)},[ne("div",Kde,We(e.$t("error.password")),1),Ee(o,{class:"mb-8",name:"password",type:"password","model-value":e.password,"onUpdate:modelValue":t[0]||(t[0]=l=>e.$store.dispatch("loader/password",l))},null,8,["model-value"]),Ee(s,{"show-prev":!1,"total-pages":1,"current-page":1,appearance:e.btnStyle,size:"small","label-submit":"OK",onSubmit:a.click},null,8,["appearance","onSubmit"])],4)]),_:1},512)}var Wde=we(Vde,[["render",Gde]]);const Wi={SUCCESS:"1",FAILURE:"2",PENDING:"3",LOADED:"4",PASSWORD:"5"},Yde={loading:!1,updated:null,data:null,password:null},Zde={async load(e){e.commit(Wi.PENDING);try{const t=await e.dispatch("fetch");e.commit(Wi.LOADED,t),await e.dispatch("reset"),await e.dispatch("persistence/restore",null,{root:!0}),e.commit(Wi.SUCCESS)}catch(t){if(t.response.status===410)try{e.dispatch("world/redirect",new URL(B(t.response.data,"fallback")).toString(),{root:!0}),await new Promise(r=>setTimeout(()=>{r()},3e3))}catch{}throw nh(t,"loader"),e.commit(Wi.FAILURE),t}},async ensure(e){e.getters.loaded||await e.dispatch("load")},async reset(e){e.dispatch("analytics/reset",null,{root:!0}),e.dispatch("world/reset",null,{root:!0}),await e.dispatch("animation/reset",null,{root:!0}),await e.dispatch("button/reset",null,{root:!0}),await e.dispatch("fields/reset",null,{root:!0}),await e.dispatch("form/reset",null,{root:!0}),await e.dispatch("page/reset",null,{root:!0}),await e.dispatch("pages/reset",null,{root:!0}),await e.dispatch("process/reset",null,{root:!0}),await e.dispatch("ribbon/reset",null,{root:!0}),await e.dispatch("checkout/reset",null,{root:!0}),await e.dispatch("stripe/reset",null,{root:!0}),await e.dispatch("iframe/reset",null,{root:!0}),await e.dispatch("persistence/init",null,{root:!0})},async fetch(e){nu(Qi,{retries:3});const t={ref:Bc.currentRoute.value.name,token:e.rootGetters["form/token"],password:e.state.password,t:Math.round(Date.now()/1e3)};try{t.code=btoa(JSON.stringify({domain:e.rootGetters["form/domain"],uri:e.rootGetters["form/uri"]}))}catch{t.domain=e.rootGetters["form/domain"],t.uri=e.rootGetters["form/uri"]}return Qi.get("/form",{params:t})},password(e,t){e.commit(Wi.PASSWORD,t)}},Jde={[Wi.SUCCESS]:e=>{e.loading=!1,e.updated=new Date().getTime(),B(e.data,"data.passwordRequired",!1)&&kE(Wde).show()},[Wi.LOADED]:(e,t)=>{e.data=t.data},[Wi.PENDING]:e=>{e.loading=!0},[Wi.FAILURE]:e=>{e.loading=!1},[Wi.PASSWORD]:(e,t)=>{e.password=t}},Xde={loading:e=>e.loading,loaded:e=>e.updated!==null,updated:e=>e.updated,data:e=>e.data,password:e=>e.password,passwordRequired:e=>B(e.data,"data.passwordRequired",!1),trackingRequired:e=>B(e.data,"data.tracking",!1)};var Qde={namespaced:!0,state:Yde,actions:Zde,mutations:Jde,getters:Xde};const epe={footer:"a",title:"",description:"",keywords:"",language:""},Ep={FLUSH:"1",INIT:"2"},tpe={reset(e){const t=e.rootGetters["loader/data"];e.commit(Ep.FLUSH),e.commit(Ep.INIT,[{name:"footer",value:B(t,"footer","a")},{name:"title",value:B(t,"data.title","")},{name:"description",value:B(t,"data.description","")},{name:"keywords",value:B(t,"data.keywords","")},{name:"language",value:B(t,"data.language","")}])},async validate(e){await Promise.all(e.getters.fields.map(t=>e.dispatch("fields/validate",{field:t},{root:!0})))}},rpe={[Ep.FLUSH](e){e.footer="a",e.title="",e.description="",e.keywords="",e.language=""},[Ep.INIT](e,t){t.forEach(r=>{e[r.name]=r.value})}},npe={branded:e=>e.footer.charAt(0)==="a",footer:e=>e.footer,description:e=>e.description,fields:(e,t,r,n)=>B(n["pages/pages"],n["pages/current"]-1,[]),keyBindings:(e,t,r,n)=>i=>{if(n["form/keyBindings"]&&!t.fields.find(a=>Gv(a.type))){const o=[["multiple-choice","picture-choice","score-choice"],["terms-of-use","newsletter-signup"],["scale","rating"]].find(s=>s.includes(i));return t.fields.reduce((s,u)=>o.includes(u.type)?s+1:s,0)<=1}return!1},keywords:e=>e.keywords,language:e=>e.language,title:e=>e.title,valid:(e,t)=>t.fields.filter(r=>Object.prototype.hasOwnProperty.call(r,"valid")).reduce((r,n)=>r&&n.valid,!0)};var ipe={namespaced:!0,state:epe,actions:tpe,mutations:rpe,getters:npe};const Ro={PAGE_NEXT:"1",PAGE_PREV:"2",FLUSH:"3",RESTORE:"4"},ape={page:1,history:[]},_4=async(e,t)=>{try{const r=B(e,"jumps",[]).find(n=>{const i=[{field:B(n,"field",null),operator:B(n,"operator",null),operand:B(n,"operand",null)}].concat(B(n,"additional",[])),a=o=>{const s=t.rootGetters["fields/field_by_id"](o.field);return s?Ya.test(s,o.operator,o.operand):!1};return B(n,"join","all")==="all"?i.every(a):i.some(a)});return await t.dispatch("act",r)}catch{return t.dispatch("act",e.fallback)}},ope={async act(e,t){switch(t.action){case"page":if(isNaN(t.value))throw new Error;e.dispatch("go",Math.min(Math.max(1,Number(t.value)),e.getters.total));break;case"tabn":case"link":{let r="";const n=t.delta;if(n){const i=new pg(JSON.parse(n).ops,{paragraphTag:"",encodeHtml:!1}),a=e.rootGetters["fields/mentions"];a.length&&i.renderCustomWith(o=>{if(o.insert.type==="mention"){const s=a.find(u=>u.id===o.insert.value.id);if(s)return encodeURIComponent(s.value)}return""}),r=i.convert().replace(/<br\/>/gi,`
`).trim()}else r=t.value||"";if(r.length<=0||!r.startsWith("http"))throw new Error;e.dispatch(t.action==="tabn"?"world/tabn":"world/redirect",r,{root:!0});break}case"submit":break;case"logic":return _4(t.logic,e);default:throw new Error}return t.action},async reset(e){e.commit(Ro.FLUSH)},async next(e){const t=B(e.getters.break,"properties.logic",null);if(t)try{return await _4(t,e)}catch{e.dispatch("go",Math.min(e.state.page+1,e.getters.total))}else e.dispatch("go",Math.min(e.state.page+1,e.getters.total));return!0},go(e,t){e.commit(Ro.PAGE_NEXT,t),e.dispatch("persistence/history",[...e.state.history,e.state.page],{root:!0})},restore(e,t){e.commit(Ro.RESTORE,t)},async prev(e){e.commit(Ro.PAGE_PREV),e.dispatch("persistence/history",[...e.state.history,e.state.page],{root:!0})}},spe={[Ro.FLUSH](e){e.page=1,e.history=[]},[Ro.PAGE_NEXT](e,t){e.history.push(e.page),e.page=t},[Ro.PAGE_PREV](e){const t=e.history.pop();e.page=t!==void 0?t:Math.max(1,e.page-1)},[Ro.RESTORE](e,t){t.length&&(e.history.splice(0,e.history.length,...t),e.page=e.history.pop())}},upe={current:(e,t)=>Math.max(1,Math.min(e.page,t.total)),break:(e,t)=>B(t.pagebreaks,t.current-1,null),total:(e,t)=>t.pages.length,pages:(e,t,r,n)=>{const i=[];let a=[];return n["fields/fields"].forEach(o=>{o.type==="pagebreak"?(i.push(a),a=[]):a.push(o)}),i.push(a),i},pagebreaks:(e,t,r,n)=>{const i=[];return n["fields/fields"].forEach(a=>{a.type==="pagebreak"&&i.push(a)}),i}};var lpe={namespaced:!0,state:ape,actions:ope,mutations:spe,getters:upe};const Um=e=>"field-"+e,cpe=["h1","h2","image","text"],fpe=async(e,t,r,n,i,a)=>{let o=new FormData;const s=[],u=[],l=[],c=[];let f=t.filter(p=>Object.prototype.hasOwnProperty.call(p,"value")||cpe.includes(p.type)&&!["audio","video","qr"].includes(B(p,"properties.type"))),d=f.length;return await Promise.all(f.map(async(p,h)=>{s.push(p.label),u.push(p.type),l.push(p.id),B(p,"properties.visibleDescription",!1)?c.push(B(p,"properties.description","")):c.push(""),await Ya.append(o,Um(h),p)})),s.push("reference"),u.push("reference"),o.append(Um(d),e),d++,s.push("version"),u.push("version"),o.append(Um(d),"2"),d++,o.append("labels",JSON.stringify(s)),o.append("types",JSON.stringify(u)),o.append("ids",JSON.stringify(l)),o.append("descriptions",JSON.stringify(c)),r&&o.append("reference_status",r),n&&o.append("checkout_discount",JSON.stringify(i)),a&&(a.push({timestamp:Date.now(),type:"submit"}),o.append("tracking_data",JSON.stringify({events:a}))),o},dpe=(e,t,r)=>new Promise((n,i)=>{let a=new XMLHttpRequest;a.open("PUT",e,!0),a.setRequestHeader("Content-Type","application/octet-stream"),a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&!a.responseURL.includes("file:"))||(a.status===403?i(new Error("Access Denied")):(a.status!==200||a.response!=="")&&nh({status:a.status,message:a.response,xhr:a},"submitForm"),n(a.response),a=null)},a.onabort=function(){!a||(i(new Error("Request aborted")),a=null)},a.onerror=function(){i(new Error("Network Error")),a=null},a.upload&&a.upload.addEventListener("progress",r),a.send(t)});var ppe=async(e,t)=>{let r=await Promise.all([fpe(e.rootGetters["process/reference"],e.rootGetters["fields/all"],e.rootGetters["checkout/status"],e.rootGetters["checkout/discountPossible"],e.rootGetters["checkout/discount"],e.rootGetters["tracking/events"]),e.dispatch("submit/init",null,{root:!0})]);await dpe(e.rootGetters["submit/url"],r[0],t),await e.dispatch("submit/complete",null,{root:!0})};const Yi={SUCCESS:"1",FAILURE:"2",PENDING:"3",FLUSH:"4",PROGRESS:"5"},hpe={processing:!1,progress:0,reference:null},mpe={reset(e){e.commit(Yi.FLUSH)},async submit(e){e.commit(Yi.PENDING),e.dispatch("analytics/trackSubmit",null,{root:!0});try{await ppe(e,t=>{e.commit(Yi.PROGRESS,Math.round(100*t.loaded/t.total))}),e.dispatch("persistence/flush",null,{root:!0}),e.commit(Yi.SUCCESS)}catch(t){if(e.commit(Yi.FAILURE),t8(t.message)||r8(t.message))throw t;nh(t,"submit")}}},vpe={[Yi.FLUSH](e){e.processing=!1,e.progress=0,e.reference=dh()},[Yi.PENDING](e){e.processing=!0},[Yi.PROGRESS](e,t){e.progress=t},[Yi.SUCCESS](e){e.processing=!1},[Yi.FAILURE](e){e.processing=!1}},gpe={processing:e=>e.processing,progress:e=>e.progress,reference:e=>e.reference};var ype={namespaced:!0,state:hpe,actions:mpe,mutations:vpe,getters:gpe};const Dp={FLUSH:"1",INIT:"2"},bpe={height:35,enabled:!1},wpe={async reset(e){e.commit(Dp.FLUSH);const t=e.rootGetters["loader/data"];e.commit(Dp.INIT,{height:B(t,"data.backgroundWidth",35),enabled:B(t,"data.themeBackground",!1)})}},_pe={[Dp.FLUSH](e){e.height=35,e.enabled=!1},[Dp.INIT](e,t){e.height=Number(t.height),e.enabled=t.enabled}},xpe={height:e=>e.height>0?e.height:35,enabled:e=>e.enabled};var Epe={namespaced:!0,state:bpe,actions:wpe,mutations:_pe,getters:xpe};const x0={FLUSH:"1",INIT:"2"},Dpe={url:null,job:null},Spe={async init(e){const t=await Qi.post("/submit/init",{domain:e.rootGetters["form/domain"],uri:e.rootGetters["form/uri"],token:e.rootGetters["form/token"],password:e.rootGetters["loader/password"],content_type:"application/octet-stream"});e.commit(x0.INIT,t)},async complete(e){return Qi.post("/submit/complete",{domain:e.rootGetters["form/domain"],uri:e.rootGetters["form/uri"],token:e.rootGetters["form/token"],password:e.rootGetters["loader/password"],job_id:e.getters.job})}},Cpe={[x0.FLUSH]:e=>{e.url=null,e.job=null},[x0.INIT]:(e,t)=>{e.url=t.data.url,e.job=t.data.job_id}},Ape={url:e=>e.url,job:e=>e.job};var Npe={namespaced:!0,state:Dpe,actions:Spe,mutations:Cpe,getters:Ape};const OE={INITIALIZE:"1"},Tpe={id:null,resizeable:!1},x4=da(e=>window.parent.postMessage(e,"*"),5),kpe={initialize(e,t){e.commit(OE.INITIALIZE,t)},redraw(e){e.state.resizeable&&e.rootGetters["loader/loaded"]&&x4({id:e.state.id,name:"height",value:window.document.body.clientHeight})},reset(e){window.parent.postMessage({id:e.state.id,name:"title",value:e.rootGetters["page/title"]},"*"),e.state.resizeable&&(window.addEventListener("resize",()=>{x4({id:e.state.id,name:"height",value:window.document.body.clientHeight})}),document.documentElement.style.overflow="hidden")},redirect(e,t){window.parent.postMessage({id:e.state.id,name:"location",value:t},"*")},tabn(e,t){window.parent.postMessage({id:e.state.id,name:"tabn",value:t},"*")},scroll(e){window.parent.postMessage({id:e.state.id,name:"scroll"},"*")},post(e,t){window.parent.postMessage({id:e.state.id,name:"post",value:t},"*")}},Ope={[OE.INITIALIZE](e,t){e.id=B(t,"id",null),e.resizeable=B(t,"resizeable",!1)}},Fpe={present:e=>e.id!==null,resizeable:e=>e.resizeable};var $pe={namespaced:!0,state:Tpe,actions:kpe,mutations:Ope,getters:Fpe};const bn={FLUSH:"1",METHOD:"2",DISCOUNT:"3",LOADING:"4"},Bpe={method:null,loading:!1,discount:{state:null,type:null,coupon:"",percentage:10}},Ppe={method(e,t){e.commit(bn.METHOD,t)},reset(e){e.commit(bn.FLUSH)},async applyCoupon(e,t){e.commit(bn.LOADING,!0);try{const r=await Qi.post("/discount/apply",{domain:e.rootGetters["form/domain"],uri:e.rootGetters["form/uri"],token:e.rootGetters["form/token"],coupon:t});e.commit(bn.DISCOUNT,{state:B(r,"data.valid",!1),type:B(r,"data.type",null),coupon:B(r,"data.coupon",""),percentage:B(r,"data.percentage",10)}),e.commit(bn.LOADING,!1),e.commit(bn.METHOD,null)}catch{e.commit(bn.DISCOUNT,{state:!1,type:null,coupon:t,percentage:10}),e.commit(bn.LOADING,!1)}},cancelCoupon(e){e.commit(bn.DISCOUNT,{state:null,type:null,coupon:"",percentage:10}),e.commit(bn.METHOD,null)}},Ipe={[bn.FLUSH](e){e.method=null,e.discount.state=null,e.discount.type=null,e.discount.coupon="",e.discount.percentage=10},[bn.METHOD](e,t){e.method=t},[bn.LOADING](e,t){e.loading=t},[bn.DISCOUNT](e,t){e.discount.state=t.state,e.discount.type=t.type,e.discount.coupon=t.coupon,e.discount.percentage=t.percentage}},Mpe={module:(e,t,r,n)=>n["stripe/present"]?"stripe":n["paypal/present"]?"paypal":"carts",loading:(e,t,r,n)=>e.loading||n["stripe/loading"],processing:(e,t,r,n)=>n["stripe/processing"],status:(e,t,r,n)=>n["carts/present"]?n["carts/status"]:t.required?n[t.module+"/status"]:"",methods:(e,t,r,n)=>t.module==="carts"?n["carts/methods"]:[t.module],method:(e,t)=>t.methods.length>1?e.method:t.methods[0],paypalAccount:(e,t,r,n)=>n[t.module+"/paypalAccount"],phoneOrderName:(e,t,r,n)=>n[t.module+"/phoneOrderName"],receiptEmail:(e,t,r,n)=>n[t.module+"/receiptEmail"],currency:(e,t,r,n)=>n[t.module+"/currency"],localized:(e,t,r,n)=>n[t.module+"/localized"],currencyLocale:(e,t,r,n)=>n[t.module+"/currencyLocale"],currencyDisplay:(e,t,r,n)=>n[t.module+"/currencyDisplay"],recurring:(e,t,r,n)=>n[t.module+"/recurring"],requireBillingInfo:(e,t,r,n)=>n[t.module+"/requireBillingInfo"],noPrices:(e,t,r,n)=>n[t.module+"/noPrices"],positions:(e,t,r,n)=>n[t.module+"/positions"],positionsExtra:(e,t,r,n)=>n[t.module+"/positionsExtra"],total:(e,t,r,n)=>{const i=n[t.module+"/total"];return t.discountPossible&&t.discount.state===!0?Number(i)-Number(t.discountAmount):i},required:(e,t,r,n)=>n[t.module+"/required"],error:(e,t,r,n)=>n[t.module+"/error"],discountPossible:(e,t,r,n)=>n[t.module+"/discountPossible"],discount:e=>e.discount,discountAmount:(e,t,r,n)=>{const i=n[t.module+"/total"],a=t.discount;switch(a.type){case"percentage":return Math.round(Number(i)*Number(a.percentage))/100}return 0}};var Rpe={namespaced:!0,state:Bpe,actions:Ppe,mutations:Ipe,getters:Mpe};const ju={LOADED:"1",RESET:"2",INPUT:"3"},Lpe={loaded:!1,fields:[]},jpe=async e=>{if(!!e)return window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"gtm.js","gtm.start":new Date().getTime()}),new Promise(t=>{const r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src=`https://www.googletagmanager.com/gtm.js?id=${e}`,r.onload=r.onreadystatechange=t,document.body.appendChild(r)})},Upe=async e=>{if(!!e)return new Promise(t=>{const r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src="/static/js/fb.js",r.onload=r.onreadystatechange=()=>{typeof window.fbq=="function"&&window.fbq("init",e),window.fbq("track","PageView"),t()},document.body.appendChild(r)})},zpe={async reset(e){e.commit(ju.RESET),e.state.loaded||(await Promise.all([jpe(e.getters.gtmId),Upe(e.getters.facebookPixelId)]),e.commit(ju.LOADED))},trackView(e){e.dispatch("trackGtm",{event:"view"})},trackInput(e,t){e.state.fields.includes(t.id)||(e.dispatch("trackGtm",{event:"input",category:B(t,"label",t.type).trim()}),e.commit(ju.INPUT,t.id))},trackSubmit(e){e.dispatch("trackGtm",{event:"submit"}),e.dispatch("trackFacebook",["Lead"])},trackPurchase(e,t){e.dispatch("trackFacebook",["Purchase",{value:t.total,currency:t.currency}])},trackGtm(e,t){if(e.getters.gtmId!==null){const r=window.dataLayer||[];try{r.push({event:t.event||"interaction",target:t.category||null,action:t.action||null,"target-properties":t.label||null,value:t.value||null,"interaction-type":t.noninteraction||!1,...t.params||{}})}catch{}}},trackFacebook(e,t){if(e.getters.facebookPixelId!==null&&typeof window.fbq=="function")try{window.fbq("track",...t)}catch{}}},qpe={[ju.LOADED](e){e.loaded=!0},[ju.RESET](e){e.fields.splice(0)},[ju.INPUT](e,t){e.fields.push(t)}},Hpe={gtmId:(e,t,r,n)=>B(B(n["loader/data"],"data.integrations",[]).find(i=>i.type==="gtm"),"options.key",null),facebookPixelId:(e,t,r,n)=>B(B(n["loader/data"],"data.integrations",[]).find(i=>i.type==="facebook"),"options.key",null)};var Vpe={namespaced:!0,state:Lpe,actions:zpe,mutations:qpe,getters:Hpe};const Kpe=async(e=3e4)=>new Promise(t=>setTimeout(t,e)),Gpe=(e,t)=>{const r=window.document,n=r.createElement("form");n.setAttribute("method","post"),n.setAttribute("action",e);for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)){const a=r.createElement("input");a.setAttribute("type","hidden"),a.setAttribute("name",i),a.setAttribute("value",t[i]),n.appendChild(a)}r.body.appendChild(n),n.submit()},Lo={POST:"1",PARAMS:"2",LOCATION:"3",REFERRER:"4"},Wpe={posting:!1,params:new URLSearchParams(window.location.search),location:window.location.href.split(/[?#]/)[0],referrer:document.referrer},Ype={reset(){},redirect(e,t){e.rootGetters["iframe/present"]?e.dispatch("iframe/redirect",t,{root:!0}):window.location=t},tabn(e,t){e.rootGetters["iframe/present"]?e.dispatch("iframe/tabn",t,{root:!0}):window.open(t,"_blank")},scrollToTop(e){e.rootGetters["iframe/present"]?e.dispatch("iframe/scroll",null,{root:!0}):window.scrollTo(0,0)},async post(e,t){return e.commit(Lo.POST),e.rootGetters["iframe/present"]?e.dispatch("iframe/post",t,{root:!0}):Gpe(t.action,t.fields),Kpe()},params(e,t){e.commit(Lo.PARAMS,t)},location(e,t){e.commit(Lo.LOCATION,t)},referrer(e,t){e.commit(Lo.REFERRER,t)}},Zpe={[Lo.POST](e){e.posting=!0},[Lo.PARAMS](e,t){new URLSearchParams(t).forEach((r,n)=>{e.params.has(n)||e.params.append(n,r)})},[Lo.LOCATION](e,t){e.location=t},[Lo.REFERRER](e,t){e.referrer=t}},Jpe={posting:e=>e.posting,device:(e,t)=>t.isMobile?"MOBILE":t.isDesktop?"DESKTOP":t.isTablet?"TABLET":t.isSmartTV?"SMART_TV":"UNKNOWN",isMobile:(e,t,r,n)=>B(n["loader/data"],"is_mobile",!1),isDesktop:(e,t,r,n)=>B(n["loader/data"],"is_desktop",!1),isTablet:(e,t,r,n)=>B(n["loader/data"],"is_tablet",!1),isSmartTV:(e,t,r,n)=>B(n["loader/data"],"is_smart_tv",!1),country:(e,t,r,n)=>B(n["loader/data"],"country","00"),ip:(e,t,r,n)=>B(n["loader/data"],"ip",""),referrer:e=>e.referrer,location:e=>e.location,query:e=>(t,r)=>e.params&&e.params.has(t)?e.params.get(t):r};var Xpe={namespaced:!0,state:Wpe,actions:Ype,mutations:Zpe,getters:Jpe};const Jt={FLUSH:"1",INIT:"2",LOADING:"3",PROCESSING:"4",STATUS:"5"},Qpe={account:null,secret:null,status:null,loading:!1,processing:!1},zm=e=>{const t={address:{postal_code:e.zip}};return e.name&&(t.name=e.name),e.address&&(t.address.line1=e.address),e.city&&(t.address.city=e.city),e.state&&(t.address.state=e.state),e.country&&(t.address.country=e.country),t},ehe={async createIntent(e){e.commit(Jt.LOADING,!0);try{const t=await Qi.post("/stripe/intent",{domain:e.rootGetters["form/domain"],uri:e.rootGetters["form/uri"],token:e.rootGetters["form/token"],description:e.rootGetters["page/title"],reference:e.rootGetters["process/reference"],amount:nb(e.rootGetters["checkout/total"],e.rootGetters["checkout/currency"]),receipt_email:e.rootGetters["checkout/receiptEmail"],currency:P1(e.rootGetters["checkout/currency"]),rs:B(e.rootGetters["loader/data"],"rs","")});return e.commit(Jt.FLUSH),e.commit(Jt.INIT,{account:B(t,"data.stripe_account"),secret:B(t,"data.client_secret")}),e.commit(Jt.LOADING,!1),t}catch{e.commit(Jt.FLUSH),e.commit(Jt.LOADING,!1)}},async confirmPayment(e,t){e.commit(Jt.PROCESSING,!0);const r={elements:t.elements,clientSecret:this.secret,redirect:"if_required",confirmParams:{payment_method_data:{billing_details:zm(t.billingInfo)}}};e.rootGetters["checkout/receiptEmail"]&&(r.receipt_email=e.rootGetters["checkout/receiptEmail"],r.confirmParams.payment_method_data.billing_details.email=e.rootGetters["checkout/receiptEmail"]);const n=await t.stripe.confirmPayment(r);return n.error||e.commit(Jt.STATUS,B(n,"paymentIntent.status")),e.commit(Jt.PROCESSING,!1),n},async initAccount(e){e.commit(Jt.LOADING,!0);try{const t=await Qi.post("/stripe/account",{domain:e.rootGetters["form/domain"],uri:e.rootGetters["form/uri"],token:e.rootGetters["form/token"]});return e.commit(Jt.FLUSH),e.commit(Jt.INIT,{account:B(t,"data.stripe_account")}),e.commit(Jt.LOADING,!1),t}catch{e.commit(Jt.FLUSH),e.commit(Jt.LOADING,!1)}},async confirmSubscription(e,t){e.commit(Jt.PROCESSING,!0);let r={};const n=await t.stripe.createPaymentMethod({type:"card",card:t.card,billing_details:zm(t.billingInfo)});if(n.error)r=n;else{const i=await Qi.post("/stripe/subscription",{domain:e.rootGetters["form/domain"],uri:e.rootGetters["form/uri"],token:e.rootGetters["form/token"],email:t.email,billing_info:zm(t.billingInfo),reference:e.rootGetters["process/reference"],positions:e.rootGetters["checkout/positions"].map(a=>({amount:nb(Number(a.price),e.rootGetters["checkout/currency"]),quantity:a.quantity,name:a.name,interval:B(a,"interval","1-month")})),payment_method_id:n.paymentMethod.id,currency:P1(e.rootGetters["checkout/currency"])});if(i.data.error)r=i.data;else for(let a=0;a<i.data.length;a++){let o=i.data[a];if(B(o,"status")!=="active"){let s=B(o,"latest_invoice.payment_intent",{});["requires_source_action","requires_action"].includes(s.status)&&(r=await t.stripe.confirmCardPayment(s.client_secret,{payment_method:n.paymentMethod.id}),r.error||e.commit(Jt.STATUS,B(r,"paymentIntent.status")))}else e.commit(Jt.STATUS,B(o,"latest_invoice.payment_intent.status"))}}return e.commit(Jt.PROCESSING,!1),r},reset(e){e.commit(Jt.FLUSH)}},the={[Jt.LOADING](e,t){e.loading=t},[Jt.PROCESSING](e,t){e.processing=t},[Jt.STATUS](e,t){e.status=t},[Jt.FLUSH](e){e.account=null,e.secret=null,e.status=null},[Jt.INIT](e,t){e.account=t.account||null,e.secret=t.secret||null}},rhe={account:e=>e.account,secret:e=>e.secret,loading:e=>e.loading,processing:e=>e.processing,status:e=>e.status,field:(e,t,r,n)=>n["fields/all"].find(i=>i.type==="stripe"),receiptEmail:(e,t,r,n)=>{const i=B(t.field,"properties.receiptEmailField");return i?B(n["fields/field_by_id"](i),"value",null):null},interval:(e,t)=>B(t.field,"properties.interval","1-month"),currency:(e,t)=>B(t.field,"properties.currency","USD"),localized:(e,t)=>B(t.field,"properties.localized",!1),currencyLocale:(e,t)=>B(t.field,"properties.currencyLocale","en-US"),currencyDisplay:(e,t)=>B(t.field,"properties.currencyDisplay","en-US"),recurring:(e,t)=>B(t.field,"properties.recurring",!1),requireBillingInfo:(e,t)=>B(t.field,"properties.requireBillingInfo",!1),noPrices:()=>!1,value:(e,t)=>B(t.field,"value",null),positions:(e,t)=>{switch(B(t.field,"properties.paymentType")){case"fixed":case"custom":return[{price:t.value,quantity:1,name:B(t.field,"label",""),interval:t.interval}];case"cart":{let r=[];return t.value.forEach(n=>{r.push({price:n.price,quantity:n.quantity,name:n.name,interval:n.interval})}),r}default:return[]}},positionsExtra:()=>[],total:(e,t)=>{switch(B(t.field,"properties.paymentType")){case"fixed":case"custom":return t.value?t.value:0;case"cart":return t.value.reduce((r,n)=>r+Number(n.price)*n.quantity,0)}return 0},required:(e,t)=>t.present&&t.total>0,error:()=>!1,discountPossible:()=>!1,paypalAccount:()=>"",phoneOrderName:()=>"",present:(e,t)=>t.field!==void 0};var nhe={namespaced:!0,state:Qpe,actions:ehe,mutations:the,getters:rhe};const ihe={},ahe={},ohe={},she={field:(e,t,r,n)=>n["fields/all"].find(i=>i.type==="checkout"),methods:(e,t)=>B(t.field,"properties.items",[]).map(r=>r.value),present:(e,t)=>t.field!==void 0&&t.methods.length>0,sourcesProducts:(e,t,r,n)=>B(t.field,"properties.options",[]).map(i=>n["fields/field_by_id"](i)).filter(i=>!!i).filter(i=>n["fields/is_visible"](i)),sourcesProductsExtra:(e,t,r,n)=>B(t.field,"properties.optionsExtra",[]).map(i=>n["fields/field_by_id"](i)).filter(i=>!!i),sources:(e,t)=>t.sourcesProducts.concat(t.sourcesProductsExtra),currencies:(e,t)=>Array.from(t.sources.reduce((r,n)=>vi(n.value)&&n.value.length||$s(n.value)&&n.value?r.add(B(n,"properties.currency")):r,new Set)),loading:()=>!1,processing:()=>!1,status:(e,t,r,n)=>{if(t.total&&!n["checkout/total"])return"100% discount";switch(n["checkout/method"]){case"paypal":return n["paypal/status"];case"stripe":return n["stripe/status"];case"phone-order":return t.phoneOrderName;default:return"n/a"}},paypalAccount:(e,t)=>B(t.field,"properties.paypalAccount",""),phoneOrderName:(e,t)=>B(t.field,"properties.phoneOrderName",""),receiptEmail:(e,t,r,n)=>{const i=B(t.field,"properties.receiptEmailField");return i?B(n["fields/field_by_id"](i),"value",null):null},currency:(e,t)=>t.currencies.length?t.currencies[0]:"USD",localized:(e,t)=>B(t.sources,"0.properties.localized",!1),currencyLocale:(e,t)=>B(t.sources,"0.properties.currencyLocale","en-US"),currencyDisplay:(e,t)=>B(t.sources,"0.properties.currencyDisplay","en-US"),recurring:()=>!1,requireBillingInfo:(e,t)=>B(t.field,"properties.requireBillingInfo",!1),noPrices:(e,t)=>t.sourcesProducts.reduce((r,n)=>r&&B(n,"properties.noPrice",!1),!0),positions:(e,t)=>t.sourcesProducts.reduce((r,n)=>vi(n.value)?r.concat(n.value.map(i=>({...i,noPrice:B(n,"properties.noPrice",!1)}))):$s(n.value)?r.concat([{name:n.label.trim(),price:Number(n.value).toFixed(2),quantity:1}]):r,[]),positionsExtra:(e,t)=>t.sourcesProductsExtra.reduce((r,n)=>$s(n.value)&&n.value?r.concat([{name:n.label.trim(),price:Number(n.value).toFixed(2),quantity:1}]):r,[]),total:(e,t)=>t.positions.reduce((r,n)=>r+Number(n.price)*n.quantity,0)+t.positionsExtra.reduce((r,n)=>r+Number(n.price)*n.quantity,0),required:(e,t)=>t.present&&(t.total>0||t.hasPhoneOrderOnly&&t.positions.length>0),error:(e,t)=>t.currencies.length>1,discountPossible:(e,t)=>B(t.field,"properties.discount",!1),hasPhoneOrderOnly:(e,t)=>t.methods.length===1&&t.methods.includes("phone-order")};var uhe={namespaced:!0,state:ihe,actions:ahe,mutations:ohe,getters:she};const lhe={},che={},fhe={},dhe={field:(e,t,r,n)=>n["fields/all"].find(i=>i.type==="paypal"),status:()=>"n/a",paypalAccount:(e,t)=>B(t.field,"properties.paypalAccount"),phoneOrderName:()=>"",currency:(e,t)=>B(t.field,"properties.currency","USD"),localized:(e,t)=>B(t.field,"properties.localized",!1),currencyLocale:(e,t)=>B(t.field,"properties.currencyLocale","en-US"),currencyDisplay:(e,t)=>B(t.field,"properties.currencyDisplay","en-US"),recurring:()=>!1,requireBillingInfo:()=>!1,receiptEmail:()=>null,noPrices:()=>!1,value:(e,t)=>B(t.field,"value",null),positions:(e,t)=>{switch(B(t.field,"properties.paymentType")){case"fixed":case"custom":return[{price:t.value,quantity:1,name:B(t.field,"properties.productName",B(t.field,"label",""))}];case"cart":{let r=[];return t.value.forEach(n=>{r.push({price:n.price,quantity:n.quantity,name:n.name})}),r}default:return[]}},positionsExtra:()=>[],total:(e,t)=>{switch(B(t.field,"properties.paymentType")){case"fixed":case"custom":return t.value?t.value:0;case"cart":return t.value.reduce((r,n)=>r+Number(n.price)*n.quantity,0)}return 0},present:(e,t)=>t.field!==void 0,required:(e,t)=>t.present&&t.total>0,error:()=>!1,discountPossible:()=>!1};var phe={namespaced:!0,state:lhe,actions:che,mutations:fhe,getters:dhe};const Sp={FLUSH:"1",ERROR:"2"},hhe={error:null},mhe={async reset(e){e.commit(Sp.FLUSH)},async error(e,t){e.commit(Sp.ERROR,t)}},vhe={[Sp.FLUSH](e){e.error=null},[Sp.ERROR](e,t){e.error=t}},ghe={error:e=>e.error};var yhe={namespaced:!0,state:hhe,actions:mhe,mutations:vhe,getters:ghe};const E0={FLUSH:"1",EVT:"2"},bhe={events:[]},whe={async evt(e,t){e.commit(E0.EVT,t)}},_he={[E0.FLUSH](e){e.events=[]},[E0.EVT](e,t){e.events.push(t)}},xhe={events:e=>e.events};var Ehe={namespaced:!0,state:bhe,actions:whe,mutations:_he,getters:xhe};/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Ct=function(){return Ct=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Ct.apply(this,arguments)};function D0(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Qt=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,yr=Object.keys,Wr=Array.isArray;typeof Promise!="undefined"&&!Qt.Promise&&(Qt.Promise=Promise);function un(e,t){return typeof t!="object"||yr(t).forEach(function(r){e[r]=t[r]}),e}var Pc=Object.getPrototypeOf,Dhe={}.hasOwnProperty;function Mn(e,t){return Dhe.call(e,t)}function sl(e,t){typeof t=="function"&&(t=t(Pc(e))),(typeof Reflect=="undefined"?yr:Reflect.ownKeys)(t).forEach(function(r){io(e,r,t[r])})}var FE=Object.defineProperty;function io(e,t,r,n){FE(e,t,un(r&&Mn(r,"get")&&typeof r.get=="function"?{get:r.get,set:r.set,configurable:!0}:{value:r,configurable:!0,writable:!0},n))}function Al(e){return{from:function(t){return e.prototype=Object.create(t.prototype),io(e.prototype,"constructor",e),{extend:sl.bind(null,e.prototype)}}}}var She=Object.getOwnPropertyDescriptor;function Kg(e,t){var r=She(e,t),n;return r||(n=Pc(e))&&Kg(n,t)}var Che=[].slice;function Ph(e,t,r){return Che.call(e,t,r)}function $E(e,t){return t(e)}function Ql(e){if(!e)throw new Error("Assertion Failed")}function BE(e){Qt.setImmediate?setImmediate(e):setTimeout(e,0)}function PE(e,t){return e.reduce(function(r,n,i){var a=t(n,i);return a&&(r[a[0]]=a[1]),r},{})}function Ahe(e,t,r){try{e.apply(null,r)}catch(n){t&&t(n)}}function Ja(e,t){if(Mn(e,t))return e[t];if(!t)return e;if(typeof t!="string"){for(var r=[],n=0,i=t.length;n<i;++n){var a=Ja(e,t[n]);r.push(a)}return r}var o=t.indexOf(".");if(o!==-1){var s=e[t.substr(0,o)];return s===void 0?void 0:Ja(s,t.substr(o+1))}}function Si(e,t,r){if(!(!e||t===void 0)&&!("isFrozen"in Object&&Object.isFrozen(e)))if(typeof t!="string"&&"length"in t){Ql(typeof r!="string"&&"length"in r);for(var n=0,i=t.length;n<i;++n)Si(e,t[n],r[n])}else{var a=t.indexOf(".");if(a!==-1){var o=t.substr(0,a),s=t.substr(a+1);if(s==="")r===void 0?Wr(e)&&!isNaN(parseInt(o))?e.splice(o,1):delete e[o]:e[o]=r;else{var u=e[o];(!u||!Mn(e,o))&&(u=e[o]={}),Si(u,s,r)}}else r===void 0?Wr(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=r}}function Nhe(e,t){typeof t=="string"?Si(e,t,void 0):"length"in t&&[].map.call(t,function(r){Si(e,r,void 0)})}function IE(e){var t={};for(var r in e)Mn(e,r)&&(t[r]=e[r]);return t}var The=[].concat;function ME(e){return The.apply([],e)}var RE="Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(ME([8,16,32,64].map(function(e){return["Int","Uint","Float"].map(function(t){return t+e+"Array"})}))).filter(function(e){return Qt[e]}),khe=RE.map(function(e){return Qt[e]});PE(RE,function(e){return[e,!0]});var Fo=null;function rf(e){Fo=typeof WeakMap!="undefined"&&new WeakMap;var t=S0(e);return Fo=null,t}function S0(e){if(!e||typeof e!="object")return e;var t=Fo&&Fo.get(e);if(t)return t;if(Wr(e)){t=[],Fo&&Fo.set(e,t);for(var r=0,n=e.length;r<n;++r)t.push(S0(e[r]))}else if(khe.indexOf(e.constructor)>=0)t=e;else{var i=Pc(e);t=i===Object.prototype?{}:Object.create(i),Fo&&Fo.set(e,t);for(var a in e)Mn(e,a)&&(t[a]=S0(e[a]))}return t}var Ohe={}.toString;function C0(e){return Ohe.call(e).slice(8,-1)}var A0=typeof Symbol!="undefined"?Symbol.iterator:"@@iterator",Fhe=typeof A0=="symbol"?function(e){var t;return e!=null&&(t=e[A0])&&t.apply(e)}:function(){return null},Su={};function Ra(e){var t,r,n,i;if(arguments.length===1){if(Wr(e))return e.slice();if(this===Su&&typeof e=="string")return[e];if(i=Fhe(e)){for(r=[];n=i.next(),!n.done;)r.push(n.value);return r}if(e==null)return[e];if(t=e.length,typeof t=="number"){for(r=new Array(t);t--;)r[t]=e[t];return r}return[e]}for(t=arguments.length,r=new Array(t);t--;)r[t]=arguments[t];return r}var Gg=typeof Symbol!="undefined"?function(e){return e[Symbol.toStringTag]==="AsyncFunction"}:function(){return!1},va=typeof location!="undefined"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function LE(e,t){va=e,jE=t}var jE=function(){return!0},$he=!new Error("").stack;function iu(){if($he)try{throw iu.arguments,new Error}catch(e){return e}return new Error}function N0(e,t){var r=e.stack;return r?(t=t||0,r.indexOf(e.name)===0&&(t+=(e.name+e.message).split(`
`).length),r.split(`
`).slice(t).filter(jE).map(function(n){return`
`+n}).join("")):""}var Bhe=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"],UE=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],Wg=Bhe.concat(UE),Phe={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function Nl(e,t){this._e=iu(),this.name=e,this.message=t}Al(Nl).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+N0(this._e,2))}},toString:function(){return this.name+": "+this.message}});function zE(e,t){return e+". Errors: "+Object.keys(t).map(function(r){return t[r].toString()}).filter(function(r,n,i){return i.indexOf(r)===n}).join(`
`)}function Cp(e,t,r,n){this._e=iu(),this.failures=t,this.failedKeys=n,this.successCount=r,this.message=zE(e,t)}Al(Cp).from(Nl);function vc(e,t){this._e=iu(),this.name="BulkError",this.failures=Object.keys(t).map(function(r){return t[r]}),this.failuresByPos=t,this.message=zE(e,t)}Al(vc).from(Nl);var Yg=Wg.reduce(function(e,t){return e[t]=t+"Error",e},{}),Ihe=Nl,ft=Wg.reduce(function(e,t){var r=t+"Error";function n(i,a){this._e=iu(),this.name=r,i?typeof i=="string"?(this.message=""+i+(a?`
 `+a:""),this.inner=a||null):typeof i=="object"&&(this.message=i.name+" "+i.message,this.inner=i):(this.message=Phe[t]||r,this.inner=null)}return Al(n).from(Ihe),e[t]=n,e},{});ft.Syntax=SyntaxError;ft.Type=TypeError;ft.Range=RangeError;var E4=UE.reduce(function(e,t){return e[t+"Error"]=ft[t],e},{});function Mhe(e,t){if(!e||e instanceof Nl||e instanceof TypeError||e instanceof SyntaxError||!e.name||!E4[e.name])return e;var r=new E4[e.name](t||e.message,e);return"stack"in e&&io(r,"stack",{get:function(){return this.inner.stack}}),r}var Ih=Wg.reduce(function(e,t){return["Syntax","Type","Range"].indexOf(t)===-1&&(e[t+"Error"]=ft[t]),e},{});Ih.ModifyError=Cp;Ih.DexieError=Nl;Ih.BulkError=vc;function Vt(){}function nf(e){return e}function Rhe(e,t){return e==null||e===nf?t:function(r){return t(e(r))}}function zs(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function Lhe(e,t){return e===Vt?t:function(){var r=e.apply(this,arguments);r!==void 0&&(arguments[0]=r);var n=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var a=t.apply(this,arguments);return n&&(this.onsuccess=this.onsuccess?zs(n,this.onsuccess):n),i&&(this.onerror=this.onerror?zs(i,this.onerror):i),a!==void 0?a:r}}function jhe(e,t){return e===Vt?t:function(){e.apply(this,arguments);var r=this.onsuccess,n=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),r&&(this.onsuccess=this.onsuccess?zs(r,this.onsuccess):r),n&&(this.onerror=this.onerror?zs(n,this.onerror):n)}}function Uhe(e,t){return e===Vt?t:function(r){var n=e.apply(this,arguments);un(r,n);var i=this.onsuccess,a=this.onerror;this.onsuccess=null,this.onerror=null;var o=t.apply(this,arguments);return i&&(this.onsuccess=this.onsuccess?zs(i,this.onsuccess):i),a&&(this.onerror=this.onerror?zs(a,this.onerror):a),n===void 0?o===void 0?void 0:o:un(n,o)}}function zhe(e,t){return e===Vt?t:function(){return t.apply(this,arguments)===!1?!1:e.apply(this,arguments)}}function Zg(e,t){return e===Vt?t:function(){var r=e.apply(this,arguments);if(r&&typeof r.then=="function"){for(var n=this,i=arguments.length,a=new Array(i);i--;)a[i]=arguments[i];return r.then(function(){return t.apply(n,a)})}return t.apply(this,arguments)}}var Ic={},qhe=100,Hhe=20,qE=100,Jg=typeof Promise=="undefined"?[]:function(){var e=Promise.resolve();if(typeof crypto=="undefined"||!crypto.subtle)return[e,Pc(e),e];var t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,Pc(t),e]}(),T0=Jg[0],Ap=Jg[1],k0=Jg[2],HE=Ap&&Ap.then,Sd=T0&&T0.constructor,Xg=!!k0,O0=!1,Vhe=k0?function(){k0.then(nd)}:Qt.setImmediate?setImmediate.bind(null,nd):Qt.MutationObserver?function(){var e=document.createElement("div");new MutationObserver(function(){nd(),e=null}).observe(e,{attributes:!0}),e.setAttribute("i","1")}:function(){setTimeout(nd,0)},Mc=function(e,t){ec.push([e,t]),Np&&(Vhe(),Np=!1)},F0=!0,Np=!0,Ps=[],Cd=[],$0=null,B0=nf,Uu={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:C4,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(function(e){try{C4(e[0],e[1])}catch{}})}},at=Uu,ec=[],Is=0,Ad=[];function Xe(e){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=Vt,this._lib=!1;var t=this._PSD=at;if(va&&(this._stackHolder=iu(),this._prev=null,this._numPrev=0),typeof e!="function"){if(e!==Ic)throw new TypeError("Not a function");this._state=arguments[1],this._value=arguments[2],this._state===!1&&I0(this,this._value);return}this._state=null,this._value=null,++t.ref,KE(this,e)}var P0={get:function(){var e=at,t=Tp;function r(n,i){var a=this,o=!e.global&&(e!==at||t!==Tp),s=o&&!ao(),u=new Xe(function(l,c){Qg(a,new VE(Op(n,e,o,s),Op(i,e,o,s),l,c,e))});return va&&YE(u,this),u}return r.prototype=Ic,r},set:function(e){io(this,"then",e&&e.prototype===Ic?P0:{get:function(){return e},set:P0.set})}};sl(Xe.prototype,{then:P0,_then:function(e,t){Qg(this,new VE(null,null,e,t,at))},catch:function(e){if(arguments.length===1)return this.then(null,e);var t=arguments[0],r=arguments[1];return typeof t=="function"?this.then(null,function(n){return n instanceof t?r(n):Nd(n)}):this.then(null,function(n){return n&&n.name===t?r(n):Nd(n)})},finally:function(e){return this.then(function(t){return e(),t},function(t){return e(),Nd(t)})},stack:{get:function(){if(this._stack)return this._stack;try{O0=!0;var e=WE(this,[],Hhe),t=e.join(`
From previous: `);return this._state!==null&&(this._stack=t),t}finally{O0=!1}}},timeout:function(e,t){var r=this;return e<1/0?new Xe(function(n,i){var a=setTimeout(function(){return i(new ft.Timeout(t))},e);r.then(n,i).finally(clearTimeout.bind(null,a))}):this}});typeof Symbol!="undefined"&&Symbol.toStringTag&&io(Xe.prototype,Symbol.toStringTag,"Dexie.Promise");Uu.env=ZE();function VE(e,t,r,n,i){this.onFulfilled=typeof e=="function"?e:null,this.onRejected=typeof t=="function"?t:null,this.resolve=r,this.reject=n,this.psd=i}sl(Xe,{all:function(){var e=Ra.apply(null,arguments).map(kp);return new Xe(function(t,r){e.length===0&&t([]);var n=e.length;e.forEach(function(i,a){return Xe.resolve(i).then(function(o){e[a]=o,--n||t(e)},r)})})},resolve:function(e){if(e instanceof Xe)return e;if(e&&typeof e.then=="function")return new Xe(function(r,n){e.then(r,n)});var t=new Xe(Ic,!0,e);return YE(t,$0),t},reject:Nd,race:function(){var e=Ra.apply(null,arguments).map(kp);return new Xe(function(t,r){e.map(function(n){return Xe.resolve(n).then(t,r)})})},PSD:{get:function(){return at},set:function(e){return at=e}},totalEchoes:{get:function(){return Tp}},newPSD:is,usePSD:kl,scheduler:{get:function(){return Mc},set:function(e){Mc=e}},rejectionMapper:{get:function(){return B0},set:function(e){B0=e}},follow:function(e,t){return new Xe(function(r,n){return is(function(i,a){var o=at;o.unhandleds=[],o.onunhandled=a,o.finalize=zs(function(){var s=this;Ghe(function(){s.unhandleds.length===0?i():a(s.unhandleds[0])})},o.finalize),e()},t,r,n)})}});Sd&&(Sd.allSettled&&io(Xe,"allSettled",function(){var e=Ra.apply(null,arguments).map(kp);return new Xe(function(t){e.length===0&&t([]);var r=e.length,n=new Array(r);e.forEach(function(i,a){return Xe.resolve(i).then(function(o){return n[a]={status:"fulfilled",value:o}},function(o){return n[a]={status:"rejected",reason:o}}).then(function(){return--r||t(n)})})})}),Sd.any&&typeof AggregateError!="undefined"&&io(Xe,"any",function(){var e=Ra.apply(null,arguments).map(kp);return new Xe(function(t,r){e.length===0&&r(new AggregateError([]));var n=e.length,i=new Array(n);e.forEach(function(a,o){return Xe.resolve(a).then(function(s){return t(s)},function(s){i[o]=s,--n||r(new AggregateError(i))})})})}));function KE(e,t){try{t(function(r){if(e._state===null){if(r===e)throw new TypeError("A promise cannot be resolved with itself.");var n=e._lib&&af();r&&typeof r.then=="function"?KE(e,function(i,a){r instanceof Xe?r._then(i,a):r.then(i,a)}):(e._state=!0,e._value=r,GE(e)),n&&of()}},I0.bind(null,e))}catch(r){I0(e,r)}}function I0(e,t){if(Cd.push(t),e._state===null){var r=e._lib&&af();t=B0(t),e._state=!1,e._value=t,va&&t!==null&&typeof t=="object"&&!t._promise&&Ahe(function(){var n=Kg(t,"stack");t._promise=e,io(t,"stack",{get:function(){return O0?n&&(n.get?n.get.apply(t):n.value):e.stack}})}),Whe(e),GE(e),r&&of()}}function GE(e){var t=e._listeners;e._listeners=[];for(var r=0,n=t.length;r<n;++r)Qg(e,t[r]);var i=e._PSD;--i.ref||i.finalize(),Is===0&&(++Is,Mc(function(){--Is===0&&ey()},[]))}function Qg(e,t){if(e._state===null){e._listeners.push(t);return}var r=e._state?t.onFulfilled:t.onRejected;if(r===null)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++Is,Mc(Khe,[r,e,t])}function Khe(e,t,r){try{$0=t;var n,i=t._value;t._state?n=e(i):(Cd.length&&(Cd=[]),n=e(i),Cd.indexOf(i)===-1&&Yhe(t)),r.resolve(n)}catch(a){r.reject(a)}finally{$0=null,--Is===0&&ey(),--r.psd.ref||r.psd.finalize()}}function WE(e,t,r){if(t.length===r)return t;var n="";if(e._state===!1){var i=e._value,a,o;i!=null?(a=i.name||"Error",o=i.message||i,n=N0(i,0)):(a=i,o=""),t.push(a+(o?": "+o:"")+n)}return va&&(n=N0(e._stackHolder,2),n&&t.indexOf(n)===-1&&t.push(n),e._prev&&WE(e._prev,t,r)),t}function YE(e,t){var r=t?t._numPrev+1:0;r<qhe&&(e._prev=t,e._numPrev=r)}function nd(){af()&&of()}function af(){var e=F0;return F0=!1,Np=!1,e}function of(){var e,t,r;do for(;ec.length>0;)for(e=ec,ec=[],r=e.length,t=0;t<r;++t){var n=e[t];n[0].apply(null,n[1])}while(ec.length>0);F0=!0,Np=!0}function ey(){var e=Ps;Ps=[],e.forEach(function(n){n._PSD.onunhandled.call(null,n._value,n)});for(var t=Ad.slice(0),r=t.length;r;)t[--r]()}function Ghe(e){function t(){e(),Ad.splice(Ad.indexOf(t),1)}Ad.push(t),++Is,Mc(function(){--Is===0&&ey()},[])}function Whe(e){Ps.some(function(t){return t._value===e._value})||Ps.push(e)}function Yhe(e){for(var t=Ps.length;t;)if(Ps[--t]._value===e._value){Ps.splice(t,1);return}}function Nd(e){return new Xe(Ic,!1,e)}function tr(e,t){var r=at;return function(){var n=af(),i=at;try{return as(r,!0),e.apply(this,arguments)}catch(a){t&&t(a)}finally{as(i,!1),n&&of()}}}var Kr={awaits:0,echoes:0,id:0},Zhe=0,Td=[],qm=0,Tp=0,Jhe=0;function is(e,t,r,n){var i=at,a=Object.create(i);a.parent=i,a.ref=0,a.global=!1,a.id=++Jhe;var o=Uu.env;a.env=Xg?{Promise:Xe,PromiseProp:{value:Xe,configurable:!0,writable:!0},all:Xe.all,race:Xe.race,allSettled:Xe.allSettled,any:Xe.any,resolve:Xe.resolve,reject:Xe.reject,nthen:D4(o.nthen,a),gthen:D4(o.gthen,a)}:{},t&&un(a,t),++i.ref,a.finalize=function(){--this.parent.ref||this.parent.finalize()};var s=kl(a,e,r,n);return a.ref===0&&a.finalize(),s}function Tl(){return Kr.id||(Kr.id=++Zhe),++Kr.awaits,Kr.echoes+=qE,Kr.id}function ao(){return Kr.awaits?(--Kr.awaits===0&&(Kr.id=0),Kr.echoes=Kr.awaits*qE,!0):!1}(""+HE).indexOf("[native code]")===-1&&(Tl=ao=Vt);function kp(e){return Kr.echoes&&e&&e.constructor===Sd?(Tl(),e.then(function(t){return ao(),t},function(t){return ao(),Sr(t)})):e}function Xhe(e){++Tp,(!Kr.echoes||--Kr.echoes===0)&&(Kr.echoes=Kr.id=0),Td.push(at),as(e,!0)}function Qhe(){var e=Td[Td.length-1];Td.pop(),as(e,!1)}function as(e,t){var r=at;if((t?Kr.echoes&&(!qm++||e!==at):qm&&(!--qm||e!==at))&&JE(t?Xhe.bind(null,e):Qhe),e!==at&&(at=e,r===Uu&&(Uu.env=ZE()),Xg)){var n=Uu.env.Promise,i=e.env;Ap.then=i.nthen,n.prototype.then=i.gthen,(r.global||e.global)&&(Object.defineProperty(Qt,"Promise",i.PromiseProp),n.all=i.all,n.race=i.race,n.resolve=i.resolve,n.reject=i.reject,i.allSettled&&(n.allSettled=i.allSettled),i.any&&(n.any=i.any))}}function ZE(){var e=Qt.Promise;return Xg?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(Qt,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:Ap.then,gthen:e.prototype.then}:{}}function kl(e,t,r,n,i){var a=at;try{return as(e,!0),t(r,n,i)}finally{as(a,!1)}}function JE(e){HE.call(T0,e)}function Op(e,t,r,n){return typeof e!="function"?e:function(){var i=at;r&&Tl(),as(t,!0);try{return e.apply(this,arguments)}finally{as(i,!1),n&&JE(ao)}}}function D4(e,t){return function(r,n){return e.call(this,Op(r,t),Op(n,t))}}var S4="unhandledrejection";function C4(e,t){var r;try{r=t.onuncatched(e)}catch{}if(r!==!1)try{var n,i={promise:t,reason:e};if(Qt.document&&document.createEvent?(n=document.createEvent("Event"),n.initEvent(S4,!0,!0),un(n,i)):Qt.CustomEvent&&(n=new CustomEvent(S4,{detail:i}),un(n,i)),n&&Qt.dispatchEvent&&(dispatchEvent(n),!Qt.PromiseRejectionEvent&&Qt.onunhandledrejection))try{Qt.onunhandledrejection(n)}catch{}va&&n&&!n.defaultPrevented&&console.warn("Unhandled rejection: "+(e.stack||e))}catch{}}var Sr=Xe.reject;function M0(e,t,r,n){if(!e.idbdb||!e._state.openComplete&&!at.letThrough&&!e._vip){if(e._state.openComplete)return Sr(new ft.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._options.autoOpen)return Sr(new ft.DatabaseClosed);e.open().catch(Vt)}return e._state.dbReadyPromise.then(function(){return M0(e,t,r,n)})}else{var i=e._createTransaction(t,r,e._dbSchema);try{i.create(),e._state.PR1398_maxLoop=3}catch(a){return a.name===Yg.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then(function(){return M0(e,t,r,n)})):Sr(a)}return i._promise(t,function(a,o){return is(function(){return at.trans=i,n(a,o,i)})}).then(function(a){return i._completion.then(function(){return a})})}}var A4="3.2.2",ks=String.fromCharCode(65535),R0=-1/0,Oa="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",XE="String expected.",gc=[],Mh=typeof navigator!="undefined"&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),eme=Mh,tme=Mh,QE=function(e){return!/(dexie\.js|dexie\.min\.js)/.test(e)},Rh="__dbnames",Hm="readonly",Vm="readwrite";function qs(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}var e9={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function id(e){return typeof e=="string"&&!/\./.test(e)?function(t){return t[e]===void 0&&e in t&&(t=rf(t),delete t[e]),t}:function(t){return t}}var rme=function(){function e(){}return e.prototype._trans=function(t,r,n){var i=this._tx||at.trans,a=this.name;function o(u,l,c){if(!c.schema[a])throw new ft.NotFound("Table "+a+" not part of transaction");return r(c.idbtrans,c)}var s=af();try{return i&&i.db===this.db?i===at.trans?i._promise(t,o,n):is(function(){return i._promise(t,o,n)},{trans:i,transless:at.transless||at}):M0(this.db,t,[this.name],o)}finally{s&&of()}},e.prototype.get=function(t,r){var n=this;return t&&t.constructor===Object?this.where(t).first(r):this._trans("readonly",function(i){return n.core.get({trans:i,key:t}).then(function(a){return n.hook.reading.fire(a)})}).then(r)},e.prototype.where=function(t){if(typeof t=="string")return new this.db.WhereClause(this,t);if(Wr(t))return new this.db.WhereClause(this,"["+t.join("+")+"]");var r=yr(t);if(r.length===1)return this.where(r[0]).equals(t[r[0]]);var n=this.schema.indexes.concat(this.schema.primKey).filter(function(c){return c.compound&&r.every(function(f){return c.keyPath.indexOf(f)>=0})&&c.keyPath.every(function(f){return r.indexOf(f)>=0})})[0];if(n&&this.db._maxKey!==ks)return this.where(n.name).equals(n.keyPath.map(function(c){return t[c]}));!n&&va&&console.warn("The query "+JSON.stringify(t)+" on "+this.name+" would benefit of a "+("compound index ["+r.join("+")+"]"));var i=this.schema.idxByName,a=this.db._deps.indexedDB;function o(c,f){try{return a.cmp(c,f)===0}catch{return!1}}var s=r.reduce(function(c,f){var d=c[0],p=c[1],h=i[f],b=t[f];return[d||h,d||!h?qs(p,h&&h.multi?function(g){var v=Ja(g,f);return Wr(v)&&v.some(function(S){return o(b,S)})}:function(g){return o(b,Ja(g,f))}):p]},[null,null]),u=s[0],l=s[1];return u?this.where(u.name).equals(t[u.keyPath]).filter(l):n?this.filter(l):this.where(r).equals("")},e.prototype.filter=function(t){return this.toCollection().and(t)},e.prototype.count=function(t){return this.toCollection().count(t)},e.prototype.offset=function(t){return this.toCollection().offset(t)},e.prototype.limit=function(t){return this.toCollection().limit(t)},e.prototype.each=function(t){return this.toCollection().each(t)},e.prototype.toArray=function(t){return this.toCollection().toArray(t)},e.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},e.prototype.orderBy=function(t){return new this.db.Collection(new this.db.WhereClause(this,Wr(t)?"["+t.join("+")+"]":t))},e.prototype.reverse=function(){return this.toCollection().reverse()},e.prototype.mapToClass=function(t){this.schema.mappedClass=t;var r=function(n){if(!n)return n;var i=Object.create(t.prototype);for(var a in n)if(Mn(n,a))try{i[a]=n[a]}catch{}return i};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=r,this.hook("reading",r),t},e.prototype.defineClass=function(){function t(r){un(this,r)}return this.mapToClass(t)},e.prototype.add=function(t,r){var n=this,i=this.schema.primKey,a=i.auto,o=i.keyPath,s=t;return o&&a&&(s=id(o)(t)),this._trans("readwrite",function(u){return n.core.mutate({trans:u,type:"add",keys:r!=null?[r]:null,values:[s]})}).then(function(u){return u.numFailures?Xe.reject(u.failures[0]):u.lastResult}).then(function(u){if(o)try{Si(t,o,u)}catch{}return u})},e.prototype.update=function(t,r){if(typeof t=="object"&&!Wr(t)){var n=Ja(t,this.schema.primKey.keyPath);if(n===void 0)return Sr(new ft.InvalidArgument("Given object does not contain its primary key"));try{typeof r!="function"?yr(r).forEach(function(i){Si(t,i,r[i])}):r(t,{value:t,primKey:n})}catch{}return this.where(":id").equals(n).modify(r)}else return this.where(":id").equals(t).modify(r)},e.prototype.put=function(t,r){var n=this,i=this.schema.primKey,a=i.auto,o=i.keyPath,s=t;return o&&a&&(s=id(o)(t)),this._trans("readwrite",function(u){return n.core.mutate({trans:u,type:"put",values:[s],keys:r!=null?[r]:null})}).then(function(u){return u.numFailures?Xe.reject(u.failures[0]):u.lastResult}).then(function(u){if(o)try{Si(t,o,u)}catch{}return u})},e.prototype.delete=function(t){var r=this;return this._trans("readwrite",function(n){return r.core.mutate({trans:n,type:"delete",keys:[t]})}).then(function(n){return n.numFailures?Xe.reject(n.failures[0]):void 0})},e.prototype.clear=function(){var t=this;return this._trans("readwrite",function(r){return t.core.mutate({trans:r,type:"deleteRange",range:e9})}).then(function(r){return r.numFailures?Xe.reject(r.failures[0]):void 0})},e.prototype.bulkGet=function(t){var r=this;return this._trans("readonly",function(n){return r.core.getMany({keys:t,trans:n}).then(function(i){return i.map(function(a){return r.hook.reading.fire(a)})})})},e.prototype.bulkAdd=function(t,r,n){var i=this,a=Array.isArray(r)?r:void 0;n=n||(a?void 0:r);var o=n?n.allKeys:void 0;return this._trans("readwrite",function(s){var u=i.schema.primKey,l=u.auto,c=u.keyPath;if(c&&a)throw new ft.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(a&&a.length!==t.length)throw new ft.InvalidArgument("Arguments objects and keys must have the same length");var f=t.length,d=c&&l?t.map(id(c)):t;return i.core.mutate({trans:s,type:"add",keys:a,values:d,wantResults:o}).then(function(p){var h=p.numFailures,b=p.results,g=p.lastResult,v=p.failures,S=o?b:g;if(h===0)return S;throw new vc(i.name+".bulkAdd(): "+h+" of "+f+" operations failed",v)})})},e.prototype.bulkPut=function(t,r,n){var i=this,a=Array.isArray(r)?r:void 0;n=n||(a?void 0:r);var o=n?n.allKeys:void 0;return this._trans("readwrite",function(s){var u=i.schema.primKey,l=u.auto,c=u.keyPath;if(c&&a)throw new ft.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(a&&a.length!==t.length)throw new ft.InvalidArgument("Arguments objects and keys must have the same length");var f=t.length,d=c&&l?t.map(id(c)):t;return i.core.mutate({trans:s,type:"put",keys:a,values:d,wantResults:o}).then(function(p){var h=p.numFailures,b=p.results,g=p.lastResult,v=p.failures,S=o?b:g;if(h===0)return S;throw new vc(i.name+".bulkPut(): "+h+" of "+f+" operations failed",v)})})},e.prototype.bulkDelete=function(t){var r=this,n=t.length;return this._trans("readwrite",function(i){return r.core.mutate({trans:i,type:"delete",keys:t})}).then(function(i){var a=i.numFailures,o=i.lastResult,s=i.failures;if(a===0)return o;throw new vc(r.name+".bulkDelete(): "+a+" of "+n+" operations failed",s)})},e}();function sf(e){var t={},r=function(s,u){if(u){for(var l=arguments.length,c=new Array(l-1);--l;)c[l-1]=arguments[l];return t[s].subscribe.apply(null,c),e}else if(typeof s=="string")return t[s]};r.addEventType=a;for(var n=1,i=arguments.length;n<i;++n)a(arguments[n]);return r;function a(s,u,l){if(typeof s=="object")return o(s);u||(u=zhe),l||(l=Vt);var c={subscribers:[],fire:l,subscribe:function(f){c.subscribers.indexOf(f)===-1&&(c.subscribers.push(f),c.fire=u(c.fire,f))},unsubscribe:function(f){c.subscribers=c.subscribers.filter(function(d){return d!==f}),c.fire=c.subscribers.reduce(u,l)}};return t[s]=r[s]=c,c}function o(s){yr(s).forEach(function(u){var l=s[u];if(Wr(l))a(u,s[u][0],s[u][1]);else if(l==="asap")var c=a(u,nf,function(){for(var d=arguments.length,p=new Array(d);d--;)p[d]=arguments[d];c.subscribers.forEach(function(h){BE(function(){h.apply(null,p)})})});else throw new ft.InvalidArgument("Invalid event config")})}}function uf(e,t){return Al(t).from({prototype:e}),t}function nme(e){return uf(rme.prototype,function(r,n,i){this.db=e,this._tx=i,this.name=r,this.schema=n,this.hook=e._allTables[r]?e._allTables[r].hook:sf(null,{creating:[Lhe,Vt],reading:[Rhe,nf],updating:[Uhe,Vt],deleting:[jhe,Vt]})})}function bu(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function Km(e,t){e.filter=qs(e.filter,t)}function Gm(e,t,r){var n=e.replayFilter;e.replayFilter=n?function(){return qs(n(),t())}:t,e.justLimit=r&&!n}function ime(e,t){e.isMatch=qs(e.isMatch,t)}function kd(e,t){if(e.isPrimKey)return t.primaryKey;var r=t.getIndexByKeyPath(e.index);if(!r)throw new ft.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return r}function N4(e,t,r){var n=kd(e,t.schema);return t.openCursor({trans:r,values:!e.keysOnly,reverse:e.dir==="prev",unique:!!e.unique,query:{index:n,range:e.range}})}function ad(e,t,r,n){var i=e.replayFilter?qs(e.filter,e.replayFilter()):e.filter;if(e.or){var a={},o=function(s,u,l){if(!i||i(u,l,function(d){return u.stop(d)},function(d){return u.fail(d)})){var c=u.primaryKey,f=""+c;f==="[object ArrayBuffer]"&&(f=""+new Uint8Array(c)),Mn(a,f)||(a[f]=!0,t(s,u,l))}};return Promise.all([e.or._iterate(o,r),T4(N4(e,n,r),e.algorithm,o,!e.keysOnly&&e.valueMapper)])}else return T4(N4(e,n,r),qs(e.algorithm,i),t,!e.keysOnly&&e.valueMapper)}function T4(e,t,r,n){var i=n?function(o,s,u){return r(n(o),s,u)}:r,a=tr(i);return e.then(function(o){if(o)return o.start(function(){var s=function(){return o.continue()};(!t||t(o,function(u){return s=u},function(u){o.stop(u),s=Vt},function(u){o.fail(u),s=Vt}))&&a(o.value,o,function(u){return s=u}),s()})})}function nn(e,t){try{var r=k4(e),n=k4(t);if(r!==n)return r==="Array"?1:n==="Array"?-1:r==="binary"?1:n==="binary"?-1:r==="string"?1:n==="string"?-1:r==="Date"?1:n!=="Date"?NaN:-1;switch(r){case"number":case"Date":case"string":return e>t?1:e<t?-1:0;case"binary":return ome(O4(e),O4(t));case"Array":return ame(e,t)}}catch{}return NaN}function ame(e,t){for(var r=e.length,n=t.length,i=r<n?r:n,a=0;a<i;++a){var o=nn(e[a],t[a]);if(o!==0)return o}return r===n?0:r<n?-1:1}function ome(e,t){for(var r=e.length,n=t.length,i=r<n?r:n,a=0;a<i;++a)if(e[a]!==t[a])return e[a]<t[a]?-1:1;return r===n?0:r<n?-1:1}function k4(e){var t=typeof e;if(t!=="object")return t;if(ArrayBuffer.isView(e))return"binary";var r=C0(e);return r==="ArrayBuffer"?"binary":r}function O4(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}var sme=function(){function e(){}return e.prototype._read=function(t,r){var n=this._ctx;return n.error?n.table._trans(null,Sr.bind(null,n.error)):n.table._trans("readonly",t).then(r)},e.prototype._write=function(t){var r=this._ctx;return r.error?r.table._trans(null,Sr.bind(null,r.error)):r.table._trans("readwrite",t,"locked")},e.prototype._addAlgorithm=function(t){var r=this._ctx;r.algorithm=qs(r.algorithm,t)},e.prototype._iterate=function(t,r){return ad(this._ctx,t,r,this._ctx.table.core)},e.prototype.clone=function(t){var r=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return t&&un(n,t),r._ctx=n,r},e.prototype.raw=function(){return this._ctx.valueMapper=null,this},e.prototype.each=function(t){var r=this._ctx;return this._read(function(n){return ad(r,t,n,r.table.core)})},e.prototype.count=function(t){var r=this;return this._read(function(n){var i=r._ctx,a=i.table.core;if(bu(i,!0))return a.count({trans:n,query:{index:kd(i,a.schema),range:i.range}}).then(function(s){return Math.min(s,i.limit)});var o=0;return ad(i,function(){return++o,!1},n,a).then(function(){return o})}).then(t)},e.prototype.sortBy=function(t,r){var n=t.split(".").reverse(),i=n[0],a=n.length-1;function o(l,c){return c?o(l[n[c]],c-1):l[i]}var s=this._ctx.dir==="next"?1:-1;function u(l,c){var f=o(l,a),d=o(c,a);return f<d?-s:f>d?s:0}return this.toArray(function(l){return l.sort(u)}).then(r)},e.prototype.toArray=function(t){var r=this;return this._read(function(n){var i=r._ctx;if(i.dir==="next"&&bu(i,!0)&&i.limit>0){var a=i.valueMapper,o=kd(i,i.table.core.schema);return i.table.core.query({trans:n,limit:i.limit,values:!0,query:{index:o,range:i.range}}).then(function(u){var l=u.result;return a?l.map(a):l})}else{var s=[];return ad(i,function(u){return s.push(u)},n,i.table.core).then(function(){return s})}},t)},e.prototype.offset=function(t){var r=this._ctx;return t<=0?this:(r.offset+=t,bu(r)?Gm(r,function(){var n=t;return function(i,a){return n===0?!0:n===1?(--n,!1):(a(function(){i.advance(n),n=0}),!1)}}):Gm(r,function(){var n=t;return function(){return--n<0}}),this)},e.prototype.limit=function(t){return this._ctx.limit=Math.min(this._ctx.limit,t),Gm(this._ctx,function(){var r=t;return function(n,i,a){return--r<=0&&i(a),r>=0}},!0),this},e.prototype.until=function(t,r){return Km(this._ctx,function(n,i,a){return t(n.value)?(i(a),r):!0}),this},e.prototype.first=function(t){return this.limit(1).toArray(function(r){return r[0]}).then(t)},e.prototype.last=function(t){return this.reverse().first(t)},e.prototype.filter=function(t){return Km(this._ctx,function(r){return t(r.value)}),ime(this._ctx,t),this},e.prototype.and=function(t){return this.filter(t)},e.prototype.or=function(t){return new this.db.WhereClause(this._ctx.table,t,this)},e.prototype.reverse=function(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},e.prototype.desc=function(){return this.reverse()},e.prototype.eachKey=function(t){var r=this._ctx;return r.keysOnly=!r.isMatch,this.each(function(n,i){t(i.key,i)})},e.prototype.eachUniqueKey=function(t){return this._ctx.unique="unique",this.eachKey(t)},e.prototype.eachPrimaryKey=function(t){var r=this._ctx;return r.keysOnly=!r.isMatch,this.each(function(n,i){t(i.primaryKey,i)})},e.prototype.keys=function(t){var r=this._ctx;r.keysOnly=!r.isMatch;var n=[];return this.each(function(i,a){n.push(a.key)}).then(function(){return n}).then(t)},e.prototype.primaryKeys=function(t){var r=this._ctx;if(r.dir==="next"&&bu(r,!0)&&r.limit>0)return this._read(function(i){var a=kd(r,r.table.core.schema);return r.table.core.query({trans:i,values:!1,limit:r.limit,query:{index:a,range:r.range}})}).then(function(i){var a=i.result;return a}).then(t);r.keysOnly=!r.isMatch;var n=[];return this.each(function(i,a){n.push(a.primaryKey)}).then(function(){return n}).then(t)},e.prototype.uniqueKeys=function(t){return this._ctx.unique="unique",this.keys(t)},e.prototype.firstKey=function(t){return this.limit(1).keys(function(r){return r[0]}).then(t)},e.prototype.lastKey=function(t){return this.reverse().firstKey(t)},e.prototype.distinct=function(){var t=this._ctx,r=t.index&&t.table.schema.idxByName[t.index];if(!r||!r.multi)return this;var n={};return Km(this._ctx,function(i){var a=i.primaryKey.toString(),o=Mn(n,a);return n[a]=!0,!o}),this},e.prototype.modify=function(t){var r=this,n=this._ctx;return this._write(function(i){var a;if(typeof t=="function")a=t;else{var o=yr(t),s=o.length;a=function(v){for(var S=!1,w=0;w<s;++w){var D=o[w],_=t[D];Ja(v,D)!==_&&(Si(v,D,_),S=!0)}return S}}var u=n.table.core,l=u.schema.primaryKey,c=l.outbound,f=l.extractKey,d=r.db._options.modifyChunkSize||200,p=[],h=0,b=[],g=function(v,S){var w=S.failures,D=S.numFailures;h+=v-D;for(var _=0,N=yr(w);_<N.length;_++){var $=N[_];p.push(w[$])}};return r.clone().primaryKeys().then(function(v){var S=function(w){var D=Math.min(d,v.length-w);return u.getMany({trans:i,keys:v.slice(w,w+D),cache:"immutable"}).then(function(_){for(var N=[],$=[],k=c?[]:null,K=[],G=0;G<D;++G){var j=_[G],q={value:rf(j),primKey:v[w+G]};a.call(q,q.value,q)!==!1&&(q.value==null?K.push(v[w+G]):!c&&nn(f(j),f(q.value))!==0?(K.push(v[w+G]),N.push(q.value)):($.push(q.value),c&&k.push(v[w+G])))}var re=bu(n)&&n.limit===1/0&&(typeof t!="function"||t===Wm)&&{index:n.index,range:n.range};return Promise.resolve(N.length>0&&u.mutate({trans:i,type:"add",values:N}).then(function(M){for(var U in M.failures)K.splice(parseInt(U),1);g(N.length,M)})).then(function(){return($.length>0||re&&typeof t=="object")&&u.mutate({trans:i,type:"put",keys:k,values:$,criteria:re,changeSpec:typeof t!="function"&&t}).then(function(M){return g($.length,M)})}).then(function(){return(K.length>0||re&&t===Wm)&&u.mutate({trans:i,type:"delete",keys:K,criteria:re}).then(function(M){return g(K.length,M)})}).then(function(){return v.length>w+D&&S(w+d)})})};return S(0).then(function(){if(p.length>0)throw new Cp("Error modifying one or more objects",p,h,b);return v.length})})})},e.prototype.delete=function(){var t=this._ctx,r=t.range;return bu(t)&&(t.isPrimKey&&!tme||r.type===3)?this._write(function(n){var i=t.table.core.schema.primaryKey,a=r;return t.table.core.count({trans:n,query:{index:i,range:a}}).then(function(o){return t.table.core.mutate({trans:n,type:"deleteRange",range:a}).then(function(s){var u=s.failures;s.lastResult,s.results;var l=s.numFailures;if(l)throw new Cp("Could not delete some values",Object.keys(u).map(function(c){return u[c]}),o-l);return o-l})})}):this.modify(Wm)},e}(),Wm=function(e,t){return t.value=null};function ume(e){return uf(sme.prototype,function(r,n){this.db=e;var i=e9,a=null;if(n)try{i=n()}catch(l){a=l}var o=r._ctx,s=o.table,u=s.hook.reading.fire;this._ctx={table:s,index:o.index,isPrimKey:!o.index||s.schema.primKey.keyPath&&o.index===s.schema.primKey.name,range:i,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:a,or:o.or,valueMapper:u!==nf?u:null}})}function lme(e,t){return e<t?-1:e===t?0:1}function cme(e,t){return e>t?-1:e===t?0:1}function Fn(e,t,r){var n=e instanceof r9?new e.Collection(e):e;return n._ctx.error=r?new r(t):new TypeError(t),n}function wu(e){return new e.Collection(e,function(){return t9("")}).limit(0)}function fme(e){return e==="next"?function(t){return t.toUpperCase()}:function(t){return t.toLowerCase()}}function dme(e){return e==="next"?function(t){return t.toLowerCase()}:function(t){return t.toUpperCase()}}function pme(e,t,r,n,i,a){for(var o=Math.min(e.length,n.length),s=-1,u=0;u<o;++u){var l=t[u];if(l!==n[u])return i(e[u],r[u])<0?e.substr(0,u)+r[u]+r.substr(u+1):i(e[u],n[u])<0?e.substr(0,u)+n[u]+r.substr(u+1):s>=0?e.substr(0,s)+t[s]+r.substr(s+1):null;i(e[u],l)<0&&(s=u)}return o<n.length&&a==="next"?e+r.substr(e.length):o<e.length&&a==="prev"?e.substr(0,r.length):s<0?null:e.substr(0,s)+n[s]+r.substr(s+1)}function od(e,t,r,n){var i,a,o,s,u,l,c,f=r.length;if(!r.every(function(b){return typeof b=="string"}))return Fn(e,XE);function d(b){i=fme(b),a=dme(b),o=b==="next"?lme:cme;var g=r.map(function(v){return{lower:a(v),upper:i(v)}}).sort(function(v,S){return o(v.lower,S.lower)});s=g.map(function(v){return v.upper}),u=g.map(function(v){return v.lower}),l=b,c=b==="next"?"":n}d("next");var p=new e.Collection(e,function(){return Ao(s[0],u[f-1]+n)});p._ondirectionchange=function(b){d(b)};var h=0;return p._addAlgorithm(function(b,g,v){var S=b.key;if(typeof S!="string")return!1;var w=a(S);if(t(w,u,h))return!0;for(var D=null,_=h;_<f;++_){var N=pme(S,w,s[_],u[_],o,l);N===null&&D===null?h=_+1:(D===null||o(D,N)>0)&&(D=N)}return g(D!==null?function(){b.continue(D+c)}:v),!1}),p}function Ao(e,t,r,n){return{type:2,lower:e,upper:t,lowerOpen:r,upperOpen:n}}function t9(e){return{type:1,lower:e,upper:e}}var r9=function(){function e(){}return Object.defineProperty(e.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),e.prototype.between=function(t,r,n,i){n=n!==!1,i=i===!0;try{return this._cmp(t,r)>0||this._cmp(t,r)===0&&(n||i)&&!(n&&i)?wu(this):new this.Collection(this,function(){return Ao(t,r,!n,!i)})}catch{return Fn(this,Oa)}},e.prototype.equals=function(t){return t==null?Fn(this,Oa):new this.Collection(this,function(){return t9(t)})},e.prototype.above=function(t){return t==null?Fn(this,Oa):new this.Collection(this,function(){return Ao(t,void 0,!0)})},e.prototype.aboveOrEqual=function(t){return t==null?Fn(this,Oa):new this.Collection(this,function(){return Ao(t,void 0,!1)})},e.prototype.below=function(t){return t==null?Fn(this,Oa):new this.Collection(this,function(){return Ao(void 0,t,!1,!0)})},e.prototype.belowOrEqual=function(t){return t==null?Fn(this,Oa):new this.Collection(this,function(){return Ao(void 0,t)})},e.prototype.startsWith=function(t){return typeof t!="string"?Fn(this,XE):this.between(t,t+ks,!0,!0)},e.prototype.startsWithIgnoreCase=function(t){return t===""?this.startsWith(t):od(this,function(r,n){return r.indexOf(n[0])===0},[t],ks)},e.prototype.equalsIgnoreCase=function(t){return od(this,function(r,n){return r===n[0]},[t],"")},e.prototype.anyOfIgnoreCase=function(){var t=Ra.apply(Su,arguments);return t.length===0?wu(this):od(this,function(r,n){return n.indexOf(r)!==-1},t,"")},e.prototype.startsWithAnyOfIgnoreCase=function(){var t=Ra.apply(Su,arguments);return t.length===0?wu(this):od(this,function(r,n){return n.some(function(i){return r.indexOf(i)===0})},t,ks)},e.prototype.anyOf=function(){var t=this,r=Ra.apply(Su,arguments),n=this._cmp;try{r.sort(n)}catch{return Fn(this,Oa)}if(r.length===0)return wu(this);var i=new this.Collection(this,function(){return Ao(r[0],r[r.length-1])});i._ondirectionchange=function(o){n=o==="next"?t._ascending:t._descending,r.sort(n)};var a=0;return i._addAlgorithm(function(o,s,u){for(var l=o.key;n(l,r[a])>0;)if(++a,a===r.length)return s(u),!1;return n(l,r[a])===0?!0:(s(function(){o.continue(r[a])}),!1)}),i},e.prototype.notEqual=function(t){return this.inAnyRange([[R0,t],[t,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},e.prototype.noneOf=function(){var t=Ra.apply(Su,arguments);if(t.length===0)return new this.Collection(this);try{t.sort(this._ascending)}catch{return Fn(this,Oa)}var r=t.reduce(function(n,i){return n?n.concat([[n[n.length-1][1],i]]):[[R0,i]]},null);return r.push([t[t.length-1],this.db._maxKey]),this.inAnyRange(r,{includeLowers:!1,includeUppers:!1})},e.prototype.inAnyRange=function(t,r){var n=this,i=this._cmp,a=this._ascending,o=this._descending,s=this._min,u=this._max;if(t.length===0)return wu(this);if(!t.every(function(_){return _[0]!==void 0&&_[1]!==void 0&&a(_[0],_[1])<=0}))return Fn(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",ft.InvalidArgument);var l=!r||r.includeLowers!==!1,c=r&&r.includeUppers===!0;function f(_,N){for(var $=0,k=_.length;$<k;++$){var K=_[$];if(i(N[0],K[1])<0&&i(N[1],K[0])>0){K[0]=s(K[0],N[0]),K[1]=u(K[1],N[1]);break}}return $===k&&_.push(N),_}var d=a;function p(_,N){return d(_[0],N[0])}var h;try{h=t.reduce(f,[]),h.sort(p)}catch{return Fn(this,Oa)}var b=0,g=c?function(_){return a(_,h[b][1])>0}:function(_){return a(_,h[b][1])>=0},v=l?function(_){return o(_,h[b][0])>0}:function(_){return o(_,h[b][0])>=0};function S(_){return!g(_)&&!v(_)}var w=g,D=new this.Collection(this,function(){return Ao(h[0][0],h[h.length-1][1],!l,!c)});return D._ondirectionchange=function(_){_==="next"?(w=g,d=a):(w=v,d=o),h.sort(p)},D._addAlgorithm(function(_,N,$){for(var k=_.key;w(k);)if(++b,b===h.length)return N($),!1;return S(k)?!0:(n._cmp(k,h[b][1])===0||n._cmp(k,h[b][0])===0||N(function(){d===a?_.continue(h[b][0]):_.continue(h[b][1])}),!1)}),D},e.prototype.startsWithAnyOf=function(){var t=Ra.apply(Su,arguments);return t.every(function(r){return typeof r=="string"})?t.length===0?wu(this):this.inAnyRange(t.map(function(r){return[r,r+ks]})):Fn(this,"startsWithAnyOf() only works with strings")},e}();function hme(e){return uf(r9.prototype,function(r,n,i){this.db=e,this._ctx={table:r,index:n===":id"?null:n,or:i};var a=e._deps.indexedDB;if(!a)throw new ft.MissingAPI;this._cmp=this._ascending=a.cmp.bind(a),this._descending=function(o,s){return a.cmp(s,o)},this._max=function(o,s){return a.cmp(o,s)>0?o:s},this._min=function(o,s){return a.cmp(o,s)<0?o:s},this._IDBKeyRange=e._deps.IDBKeyRange})}function qi(e){return tr(function(t){return Rc(t),e(t.target.error),!1})}function Rc(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}var Lc="storagemutated",jo="x-storagemutated-1",os=sf(null,Lc),mme=function(){function e(){}return e.prototype._lock=function(){return Ql(!at.global),++this._reculock,this._reculock===1&&!at.global&&(at.lockOwnerFor=this),this},e.prototype._unlock=function(){if(Ql(!at.global),--this._reculock===0)for(at.global||(at.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var t=this._blockedFuncs.shift();try{kl(t[1],t[0])}catch{}}return this},e.prototype._locked=function(){return this._reculock&&at.lockOwnerFor!==this},e.prototype.create=function(t){var r=this;if(!this.mode)return this;var n=this.db.idbdb,i=this.db._state.dbOpenError;if(Ql(!this.idbtrans),!t&&!n)switch(i&&i.name){case"DatabaseClosedError":throw new ft.DatabaseClosed(i);case"MissingAPIError":throw new ft.MissingAPI(i.message,i);default:throw new ft.OpenFailed(i)}if(!this.active)throw new ft.TransactionInactive;return Ql(this._completion._state===null),t=this.idbtrans=t||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):n.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})),t.onerror=tr(function(a){Rc(a),r._reject(t.error)}),t.onabort=tr(function(a){Rc(a),r.active&&r._reject(new ft.Abort(t.error)),r.active=!1,r.on("abort").fire(a)}),t.oncomplete=tr(function(){r.active=!1,r._resolve(),"mutatedParts"in t&&os.storagemutated.fire(t.mutatedParts)}),this},e.prototype._promise=function(t,r,n){var i=this;if(t==="readwrite"&&this.mode!=="readwrite")return Sr(new ft.ReadOnly("Transaction is readonly"));if(!this.active)return Sr(new ft.TransactionInactive);if(this._locked())return new Xe(function(o,s){i._blockedFuncs.push([function(){i._promise(t,r,n).then(o,s)},at])});if(n)return is(function(){var o=new Xe(function(s,u){i._lock();var l=r(s,u,i);l&&l.then&&l.then(s,u)});return o.finally(function(){return i._unlock()}),o._lib=!0,o});var a=new Xe(function(o,s){var u=r(o,s,i);u&&u.then&&u.then(o,s)});return a._lib=!0,a},e.prototype._root=function(){return this.parent?this.parent._root():this},e.prototype.waitFor=function(t){var r=this._root(),n=Xe.resolve(t);if(r._waitingFor)r._waitingFor=r._waitingFor.then(function(){return n});else{r._waitingFor=n,r._waitingQueue=[];var i=r.idbtrans.objectStore(r.storeNames[0]);(function o(){for(++r._spinCount;r._waitingQueue.length;)r._waitingQueue.shift()();r._waitingFor&&(i.get(-1/0).onsuccess=o)})()}var a=r._waitingFor;return new Xe(function(o,s){n.then(function(u){return r._waitingQueue.push(tr(o.bind(null,u)))},function(u){return r._waitingQueue.push(tr(s.bind(null,u)))}).finally(function(){r._waitingFor===a&&(r._waitingFor=null)})})},e.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new ft.Abort))},e.prototype.table=function(t){var r=this._memoizedTables||(this._memoizedTables={});if(Mn(r,t))return r[t];var n=this.schema[t];if(!n)throw new ft.NotFound("Table "+t+" not part of transaction");var i=new this.db.Table(t,n,this);return i.core=this.db.core.table(t),r[t]=i,i},e}();function vme(e){return uf(mme.prototype,function(r,n,i,a,o){var s=this;this.db=e,this.mode=r,this.storeNames=n,this.schema=i,this.chromeTransactionDurability=a,this.idbtrans=null,this.on=sf(this,"complete","error","abort"),this.parent=o||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new Xe(function(u,l){s._resolve=u,s._reject=l}),this._completion.then(function(){s.active=!1,s.on.complete.fire()},function(u){var l=s.active;return s.active=!1,s.on.error.fire(u),s.parent?s.parent._reject(u):l&&s.idbtrans&&s.idbtrans.abort(),Sr(u)})})}function L0(e,t,r,n,i,a,o){return{name:e,keyPath:t,unique:r,multi:n,auto:i,compound:a,src:(r&&!o?"&":"")+(n?"*":"")+(i?"++":"")+n9(t)}}function n9(e){return typeof e=="string"?e:e?"["+[].join.call(e,"+")+"]":""}function i9(e,t,r){return{name:e,primKey:t,indexes:r,mappedClass:null,idxByName:PE(r,function(n){return[n.name,n]})}}function gme(e){return e.length===1?e[0]:e}var jc=function(e){try{return e.only([[]]),jc=function(){return[[]]},[[]]}catch{return jc=function(){return ks},ks}};function j0(e){return e==null?function(){}:typeof e=="string"?yme(e):function(t){return Ja(t,e)}}function yme(e){var t=e.split(".");return t.length===1?function(r){return r[e]}:function(r){return Ja(r,e)}}function F4(e){return[].slice.call(e)}var bme=0;function yc(e){return e==null?":id":typeof e=="string"?e:"["+e.join("+")+"]"}function wme(e,t,r){function n(f,d){var p=F4(f.objectStoreNames);return{schema:{name:f.name,tables:p.map(function(h){return d.objectStore(h)}).map(function(h){var b=h.keyPath,g=h.autoIncrement,v=Wr(b),S=b==null,w={},D={name:h.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:S,compound:v,keyPath:b,autoIncrement:g,unique:!0,extractKey:j0(b)},indexes:F4(h.indexNames).map(function(_){return h.index(_)}).map(function(_){var N=_.name,$=_.unique,k=_.multiEntry,K=_.keyPath,G=Wr(K),j={name:N,compound:G,keyPath:K,unique:$,multiEntry:k,extractKey:j0(K)};return w[yc(K)]=j,j}),getIndexByKeyPath:function(_){return w[yc(_)]}};return w[":id"]=D.primaryKey,b!=null&&(w[yc(b)]=D.primaryKey),D})},hasGetAll:p.length>0&&"getAll"in d.objectStore(p[0])&&!(typeof navigator!="undefined"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}function i(f){if(f.type===3)return null;if(f.type===4)throw new Error("Cannot convert never type to IDBKeyRange");var d=f.lower,p=f.upper,h=f.lowerOpen,b=f.upperOpen,g=d===void 0?p===void 0?null:t.upperBound(p,!!b):p===void 0?t.lowerBound(d,!!h):t.bound(d,p,!!h,!!b);return g}function a(f){var d=f.name;function p(g){var v=g.trans,S=g.type,w=g.keys,D=g.values,_=g.range;return new Promise(function(N,$){N=tr(N);var k=v.objectStore(d),K=k.keyPath==null,G=S==="put"||S==="add";if(!G&&S!=="delete"&&S!=="deleteRange")throw new Error("Invalid operation type: "+S);var j=(w||D||{length:1}).length;if(w&&D&&w.length!==D.length)throw new Error("Given keys array must have same length as given values array.");if(j===0)return N({numFailures:0,failures:{},results:[],lastResult:void 0});var q,re=[],M=[],U=0,x=function(me){++U,Rc(me)};if(S==="deleteRange"){if(_.type===4)return N({numFailures:U,failures:M,results:[],lastResult:void 0});_.type===3?re.push(q=k.clear()):re.push(q=k.delete(i(_)))}else{var I=G?K?[D,w]:[D,null]:[w,null],ee=I[0],oe=I[1];if(G)for(var ce=0;ce<j;++ce)re.push(q=oe&&oe[ce]!==void 0?k[S](ee[ce],oe[ce]):k[S](ee[ce])),q.onerror=x;else for(var ce=0;ce<j;++ce)re.push(q=k[S](ee[ce])),q.onerror=x}var $e=function(me){var _e=me.target.result;re.forEach(function(Ue,te){return Ue.error!=null&&(M[te]=Ue.error)}),N({numFailures:U,failures:M,results:S==="delete"?w:re.map(function(Ue){return Ue.result}),lastResult:_e})};q.onerror=function(me){x(me),$e(me)},q.onsuccess=$e})}function h(g){var v=g.trans,S=g.values,w=g.query,D=g.reverse,_=g.unique;return new Promise(function(N,$){N=tr(N);var k=w.index,K=w.range,G=v.objectStore(d),j=k.isPrimaryKey?G:G.index(k.name),q=D?_?"prevunique":"prev":_?"nextunique":"next",re=S||!("openKeyCursor"in j)?j.openCursor(i(K),q):j.openKeyCursor(i(K),q);re.onerror=qi($),re.onsuccess=tr(function(M){var U=re.result;if(!U){N(null);return}U.___id=++bme,U.done=!1;var x=U.continue.bind(U),I=U.continuePrimaryKey;I&&(I=I.bind(U));var ee=U.advance.bind(U),oe=function(){throw new Error("Cursor not started")},ce=function(){throw new Error("Cursor not stopped")};U.trans=v,U.stop=U.continue=U.continuePrimaryKey=U.advance=oe,U.fail=tr($),U.next=function(){var $e=this,me=1;return this.start(function(){return me--?$e.continue():$e.stop()}).then(function(){return $e})},U.start=function($e){var me=new Promise(function(Ue,te){Ue=tr(Ue),re.onerror=qi(te),U.fail=te,U.stop=function(Te){U.stop=U.continue=U.continuePrimaryKey=U.advance=ce,Ue(Te)}}),_e=function(){if(re.result)try{$e()}catch(Ue){U.fail(Ue)}else U.done=!0,U.start=function(){throw new Error("Cursor behind last entry")},U.stop()};return re.onsuccess=tr(function(Ue){re.onsuccess=_e,_e()}),U.continue=x,U.continuePrimaryKey=I,U.advance=ee,_e(),me},N(U)},$)})}function b(g){return function(v){return new Promise(function(S,w){S=tr(S);var D=v.trans,_=v.values,N=v.limit,$=v.query,k=N===1/0?void 0:N,K=$.index,G=$.range,j=D.objectStore(d),q=K.isPrimaryKey?j:j.index(K.name),re=i(G);if(N===0)return S({result:[]});if(g){var M=_?q.getAll(re,k):q.getAllKeys(re,k);M.onsuccess=function(ee){return S({result:ee.target.result})},M.onerror=qi(w)}else{var U=0,x=_||!("openKeyCursor"in q)?q.openCursor(re):q.openKeyCursor(re),I=[];x.onsuccess=function(ee){var oe=x.result;if(!oe)return S({result:I});if(I.push(_?oe.value:oe.primaryKey),++U===N)return S({result:I});oe.continue()},x.onerror=qi(w)}})}}return{name:d,schema:f,mutate:p,getMany:function(g){var v=g.trans,S=g.keys;return new Promise(function(w,D){w=tr(w);for(var _=v.objectStore(d),N=S.length,$=new Array(N),k=0,K=0,G,j=function(U){var x=U.target;($[x._pos]=x.result)!=null,++K===k&&w($)},q=qi(D),re=0;re<N;++re){var M=S[re];M!=null&&(G=_.get(S[re]),G._pos=re,G.onsuccess=j,G.onerror=q,++k)}k===0&&w($)})},get:function(g){var v=g.trans,S=g.key;return new Promise(function(w,D){w=tr(w);var _=v.objectStore(d),N=_.get(S);N.onsuccess=function($){return w($.target.result)},N.onerror=qi(D)})},query:b(u),openCursor:h,count:function(g){var v=g.query,S=g.trans,w=v.index,D=v.range;return new Promise(function(_,N){var $=S.objectStore(d),k=w.isPrimaryKey?$:$.index(w.name),K=i(D),G=K?k.count(K):k.count();G.onsuccess=tr(function(j){return _(j.target.result)}),G.onerror=qi(N)})}}}var o=n(e,r),s=o.schema,u=o.hasGetAll,l=s.tables.map(function(f){return a(f)}),c={};return l.forEach(function(f){return c[f.name]=f}),{stack:"dbcore",transaction:e.transaction.bind(e),table:function(f){var d=c[f];if(!d)throw new Error("Table '"+f+"' not found");return c[f]},MIN_KEY:-1/0,MAX_KEY:jc(t),schema:s}}function _me(e,t){return t.reduce(function(r,n){var i=n.create;return Ct(Ct({},r),i(r))},e)}function xme(e,t,r,n){var i=r.IDBKeyRange;r.indexedDB;var a=_me(wme(t,i,n),e.dbcore);return{dbcore:a}}function ty(e,t){var r=e._novip,n=t.db,i=xme(r._middlewares,n,r._deps,t);r.core=i.dbcore,r.tables.forEach(function(a){var o=a.name;r.core.schema.tables.some(function(s){return s.name===o})&&(a.core=r.core.table(o),r[o]instanceof r.Table&&(r[o].core=a.core))})}function Fp(e,t,r,n){var i=e._novip;r.forEach(function(a){var o=n[a];t.forEach(function(s){var u=Kg(s,a);(!u||"value"in u&&u.value===void 0)&&(s===i.Transaction.prototype||s instanceof i.Transaction?io(s,a,{get:function(){return this.table(a)},set:function(l){FE(this,a,{value:l,writable:!0,configurable:!0,enumerable:!0})}}):s[a]=new i.Table(a,o))})})}function U0(e,t){var r=e._novip;t.forEach(function(n){for(var i in n)n[i]instanceof r.Table&&delete n[i]})}function Eme(e,t){return e._cfg.version-t._cfg.version}function Dme(e,t,r,n){var i=e._dbSchema,a=e._createTransaction("readwrite",e._storeNames,i);a.create(r),a._completion.catch(n);var o=a._reject.bind(a),s=at.transless||at;is(function(){at.trans=a,at.transless=s,t===0?(yr(i).forEach(function(u){ry(r,u,i[u].primKey,i[u].indexes)}),ty(e,r),Xe.follow(function(){return e.on.populate.fire(a)}).catch(o)):Sme(e,t,a,r).catch(o)})}function Sme(e,t,r,n){var i=e._novip,a=[],o=i._versions,s=i._dbSchema=ny(i,i.idbdb,n),u=!1,l=o.filter(function(f){return f._cfg.version>=t});l.forEach(function(f){a.push(function(){var d=s,p=f._cfg.dbschema;q0(i,d,n),q0(i,p,n),s=i._dbSchema=p;var h=a9(d,p);h.add.forEach(function(D){ry(n,D[0],D[1].primKey,D[1].indexes)}),h.change.forEach(function(D){if(D.recreate)throw new ft.Upgrade("Not yet support for changing primary key");var _=n.objectStore(D.name);D.add.forEach(function(N){return z0(_,N)}),D.change.forEach(function(N){_.deleteIndex(N.name),z0(_,N)}),D.del.forEach(function(N){return _.deleteIndex(N)})});var b=f._cfg.contentUpgrade;if(b&&f._cfg.version>t){ty(i,n),r._memoizedTables={},u=!0;var g=IE(p);h.del.forEach(function(D){g[D]=d[D]}),U0(i,[i.Transaction.prototype]),Fp(i,[i.Transaction.prototype],yr(g),g),r.schema=g;var v=Gg(b);v&&Tl();var S,w=Xe.follow(function(){if(S=b(r),S&&v){var D=ao.bind(null,null);S.then(D,D)}});return S&&typeof S.then=="function"?Xe.resolve(S):w.then(function(){return S})}}),a.push(function(d){if(!u||!eme){var p=f._cfg.dbschema;Ame(p,d)}U0(i,[i.Transaction.prototype]),Fp(i,[i.Transaction.prototype],i._storeNames,i._dbSchema),r.schema=i._dbSchema})});function c(){return a.length?Xe.resolve(a.shift()(r.idbtrans)).then(c):Xe.resolve()}return c().then(function(){Cme(s,n)})}function a9(e,t){var r={del:[],add:[],change:[]},n;for(n in e)t[n]||r.del.push(n);for(n in t){var i=e[n],a=t[n];if(!i)r.add.push([n,a]);else{var o={name:n,def:a,recreate:!1,del:[],add:[],change:[]};if(""+(i.primKey.keyPath||"")!=""+(a.primKey.keyPath||"")||i.primKey.auto!==a.primKey.auto&&!Mh)o.recreate=!0,r.change.push(o);else{var s=i.idxByName,u=a.idxByName,l=void 0;for(l in s)u[l]||o.del.push(l);for(l in u){var c=s[l],f=u[l];c?c.src!==f.src&&o.change.push(f):o.add.push(f)}(o.del.length>0||o.add.length>0||o.change.length>0)&&r.change.push(o)}}}return r}function ry(e,t,r,n){var i=e.db.createObjectStore(t,r.keyPath?{keyPath:r.keyPath,autoIncrement:r.auto}:{autoIncrement:r.auto});return n.forEach(function(a){return z0(i,a)}),i}function Cme(e,t){yr(e).forEach(function(r){t.db.objectStoreNames.contains(r)||ry(t,r,e[r].primKey,e[r].indexes)})}function Ame(e,t){[].slice.call(t.db.objectStoreNames).forEach(function(r){return e[r]==null&&t.db.deleteObjectStore(r)})}function z0(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function ny(e,t,r){var n={},i=Ph(t.objectStoreNames,0);return i.forEach(function(a){for(var o=r.objectStore(a),s=o.keyPath,u=L0(n9(s),s||"",!1,!1,!!o.autoIncrement,s&&typeof s!="string",!0),l=[],c=0;c<o.indexNames.length;++c){var f=o.index(o.indexNames[c]);s=f.keyPath;var d=L0(f.name,s,!!f.unique,!!f.multiEntry,!1,s&&typeof s!="string",!1);l.push(d)}n[a]=i9(a,u,l)}),n}function Nme(e,t,r){var n=e._novip;n.verno=t.version/10;var i=n._dbSchema=ny(n,t,r);n._storeNames=Ph(t.objectStoreNames,0),Fp(n,[n._allTables],yr(i),i)}function Tme(e,t){var r=ny(e,e.idbdb,t),n=a9(r,e._dbSchema);return!(n.add.length||n.change.some(function(i){return i.add.length||i.change.length}))}function q0(e,t,r){for(var n=e._novip,i=r.db.objectStoreNames,a=0;a<i.length;++a){var o=i[a],s=r.objectStore(o);n._hasGetAll="getAll"in s;for(var u=0;u<s.indexNames.length;++u){var l=s.indexNames[u],c=s.index(l).keyPath,f=typeof c=="string"?c:"["+Ph(c).join("+")+"]";if(t[o]){var d=t[o].idxByName[f];d&&(d.name=l,delete t[o].idxByName[f],t[o].idxByName[l]=d)}}}typeof navigator!="undefined"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&Qt.WorkerGlobalScope&&Qt instanceof Qt.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(n._hasGetAll=!1)}function kme(e){return e.split(",").map(function(t,r){t=t.trim();var n=t.replace(/([&*]|\+\+)/g,""),i=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return L0(n,i||null,/\&/.test(t),/\*/.test(t),/\+\+/.test(t),Wr(i),r===0)})}var Ome=function(){function e(){}return e.prototype._parseStoresSpec=function(t,r){yr(t).forEach(function(n){if(t[n]!==null){var i=kme(t[n]),a=i.shift();if(a.multi)throw new ft.Schema("Primary key cannot be multi-valued");i.forEach(function(o){if(o.auto)throw new ft.Schema("Only primary key can be marked as autoIncrement (++)");if(!o.keyPath)throw new ft.Schema("Index must have a name and cannot be an empty string")}),r[n]=i9(n,a,i)}})},e.prototype.stores=function(t){var r=this.db;this._cfg.storesSource=this._cfg.storesSource?un(this._cfg.storesSource,t):t;var n=r._versions,i={},a={};return n.forEach(function(o){un(i,o._cfg.storesSource),a=o._cfg.dbschema={},o._parseStoresSpec(i,a)}),r._dbSchema=a,U0(r,[r._allTables,r,r.Transaction.prototype]),Fp(r,[r._allTables,r,r.Transaction.prototype,this._cfg.tables],yr(a),a),r._storeNames=yr(a),this},e.prototype.upgrade=function(t){return this._cfg.contentUpgrade=Zg(this._cfg.contentUpgrade||Vt,t),this},e}();function Fme(e){return uf(Ome.prototype,function(r){this.db=e,this._cfg={version:r,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})}function iy(e,t){var r=e._dbNamesDB;return r||(r=e._dbNamesDB=new Bp(Rh,{addons:[],indexedDB:e,IDBKeyRange:t}),r.version(1).stores({dbnames:"name"})),r.table("dbnames")}function ay(e){return e&&typeof e.databases=="function"}function $me(e){var t=e.indexedDB,r=e.IDBKeyRange;return ay(t)?Promise.resolve(t.databases()).then(function(n){return n.map(function(i){return i.name}).filter(function(i){return i!==Rh})}):iy(t,r).toCollection().primaryKeys()}function Bme(e,t){var r=e.indexedDB,n=e.IDBKeyRange;!ay(r)&&t!==Rh&&iy(r,n).put({name:t}).catch(Vt)}function Pme(e,t){var r=e.indexedDB,n=e.IDBKeyRange;!ay(r)&&t!==Rh&&iy(r,n).delete(t).catch(Vt)}function H0(e){return is(function(){return at.letThrough=!0,e()})}function Ime(){var e=!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent);if(!e||!indexedDB.databases)return Promise.resolve();var t;return new Promise(function(r){var n=function(){return indexedDB.databases().finally(r)};t=setInterval(n,100),n()}).finally(function(){return clearInterval(t)})}function Mme(e){var t=e._state,r=e._deps.indexedDB;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then(function(){return t.dbOpenError?Sr(t.dbOpenError):e});va&&(t.openCanceller._stackHolder=iu()),t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;var n=t.openCanceller;function i(){if(t.openCanceller!==n)throw new ft.DatabaseClosed("db.open() was cancelled")}var a=t.dbReadyResolve,o=null,s=!1;return Xe.race([n,(typeof navigator=="undefined"?Xe.resolve():Ime()).then(function(){return new Xe(function(u,l){if(i(),!r)throw new ft.MissingAPI;var c=e.name,f=t.autoSchema?r.open(c):r.open(c,Math.round(e.verno*10));if(!f)throw new ft.MissingAPI;f.onerror=qi(l),f.onblocked=tr(e._fireOnBlocked),f.onupgradeneeded=tr(function(d){if(o=f.transaction,t.autoSchema&&!e._options.allowEmptyDB){f.onerror=Rc,o.abort(),f.result.close();var p=r.deleteDatabase(c);p.onsuccess=p.onerror=tr(function(){l(new ft.NoSuchDatabase("Database "+c+" doesnt exist"))})}else{o.onerror=qi(l);var h=d.oldVersion>Math.pow(2,62)?0:d.oldVersion;s=h<1,e._novip.idbdb=f.result,Dme(e,h/10,o,l)}},l),f.onsuccess=tr(function(){o=null;var d=e._novip.idbdb=f.result,p=Ph(d.objectStoreNames);if(p.length>0)try{var h=d.transaction(gme(p),"readonly");t.autoSchema?Nme(e,d,h):(q0(e,e._dbSchema,h),Tme(e,h)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),ty(e,h)}catch{}gc.push(e),d.onversionchange=tr(function(b){t.vcFired=!0,e.on("versionchange").fire(b)}),d.onclose=tr(function(b){e.on("close").fire(b)}),s&&Bme(e._deps,c),u()},l)})})]).then(function(){return i(),t.onReadyBeingFired=[],Xe.resolve(H0(function(){return e.on.ready.fire(e.vip)})).then(function u(){if(t.onReadyBeingFired.length>0){var l=t.onReadyBeingFired.reduce(Zg,Vt);return t.onReadyBeingFired=[],Xe.resolve(H0(function(){return l(e.vip)})).then(u)}})}).finally(function(){t.onReadyBeingFired=null,t.isBeingOpened=!1}).then(function(){return e}).catch(function(u){t.dbOpenError=u;try{o&&o.abort()}catch{}return n===t.openCanceller&&e._close(),Sr(u)}).finally(function(){t.openComplete=!0,a()})}function V0(e){var t=function(o){return e.next(o)},r=function(o){return e.throw(o)},n=a(t),i=a(r);function a(o){return function(s){var u=o(s),l=u.value;return u.done?l:!l||typeof l.then!="function"?Wr(l)?Promise.all(l).then(n,i):n(l):l.then(n,i)}}return a(t)()}function Rme(e,t,r){var n=arguments.length;if(n<2)throw new ft.InvalidArgument("Too few arguments");for(var i=new Array(n-1);--n;)i[n-1]=arguments[n];r=i.pop();var a=ME(i);return[e,a,r]}function o9(e,t,r,n,i){return Xe.resolve().then(function(){var a=at.transless||at,o=e._createTransaction(t,r,e._dbSchema,n),s={trans:o,transless:a};if(n)o.idbtrans=n.idbtrans;else try{o.create(),e._state.PR1398_maxLoop=3}catch(f){return f.name===Yg.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then(function(){return o9(e,t,r,null,i)})):Sr(f)}var u=Gg(i);u&&Tl();var l,c=Xe.follow(function(){if(l=i.call(o,o),l)if(u){var f=ao.bind(null,null);l.then(f,f)}else typeof l.next=="function"&&typeof l.throw=="function"&&(l=V0(l))},s);return(l&&typeof l.then=="function"?Xe.resolve(l).then(function(f){return o.active?f:Sr(new ft.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):c.then(function(){return l})).then(function(f){return n&&o._resolve(),o._completion.then(function(){return f})}).catch(function(f){return o._reject(f),Sr(f)})})}function sd(e,t,r){for(var n=Wr(e)?e.slice():[e],i=0;i<r;++i)n.push(t);return n}function Lme(e){return Ct(Ct({},e),{table:function(t){var r=e.table(t),n=r.schema,i={},a=[];function o(b,g,v){var S=yc(b),w=i[S]=i[S]||[],D=b==null?0:typeof b=="string"?1:b.length,_=g>0,N=Ct(Ct({},v),{isVirtual:_,keyTail:g,keyLength:D,extractKey:j0(b),unique:!_&&v.unique});if(w.push(N),N.isPrimaryKey||a.push(N),D>1){var $=D===2?b[0]:b.slice(0,D-1);o($,g+1,v)}return w.sort(function(k,K){return k.keyTail-K.keyTail}),N}var s=o(n.primaryKey.keyPath,0,n.primaryKey);i[":id"]=[s];for(var u=0,l=n.indexes;u<l.length;u++){var c=l[u];o(c.keyPath,0,c)}function f(b){var g=i[yc(b)];return g&&g[0]}function d(b,g){return{type:b.type===1?2:b.type,lower:sd(b.lower,b.lowerOpen?e.MAX_KEY:e.MIN_KEY,g),lowerOpen:!0,upper:sd(b.upper,b.upperOpen?e.MIN_KEY:e.MAX_KEY,g),upperOpen:!0}}function p(b){var g=b.query.index;return g.isVirtual?Ct(Ct({},b),{query:{index:g,range:d(b.query.range,g.keyTail)}}):b}var h=Ct(Ct({},r),{schema:Ct(Ct({},n),{primaryKey:s,indexes:a,getIndexByKeyPath:f}),count:function(b){return r.count(p(b))},query:function(b){return r.query(p(b))},openCursor:function(b){var g=b.query.index,v=g.keyTail,S=g.isVirtual,w=g.keyLength;if(!S)return r.openCursor(b);function D(_){function N(k){k!=null?_.continue(sd(k,b.reverse?e.MAX_KEY:e.MIN_KEY,v)):b.unique?_.continue(_.key.slice(0,w).concat(b.reverse?e.MIN_KEY:e.MAX_KEY,v)):_.continue()}var $=Object.create(_,{continue:{value:N},continuePrimaryKey:{value:function(k,K){_.continuePrimaryKey(sd(k,e.MAX_KEY,v),K)}},primaryKey:{get:function(){return _.primaryKey}},key:{get:function(){var k=_.key;return w===1?k[0]:k.slice(0,w)}},value:{get:function(){return _.value}}});return $}return r.openCursor(p(b)).then(function(_){return _&&D(_)})}});return h}})}var jme={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:Lme};function oy(e,t,r,n){return r=r||{},n=n||"",yr(e).forEach(function(i){if(!Mn(t,i))r[n+i]=void 0;else{var a=e[i],o=t[i];if(typeof a=="object"&&typeof o=="object"&&a&&o){var s=C0(a),u=C0(o);s!==u?r[n+i]=t[i]:s==="Object"?oy(a,o,r,n+i+"."):a!==o&&(r[n+i]=t[i])}else a!==o&&(r[n+i]=t[i])}}),yr(t).forEach(function(i){Mn(e,i)||(r[n+i]=t[i])}),r}function Ume(e,t){return t.type==="delete"?t.keys:t.keys||t.values.map(e.extractKey)}var zme={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(e){return Ct(Ct({},e),{table:function(t){var r=e.table(t),n=r.schema.primaryKey,i=Ct(Ct({},r),{mutate:function(a){var o=at.trans,s=o.table(t).hook,u=s.deleting,l=s.creating,c=s.updating;switch(a.type){case"add":if(l.fire===Vt)break;return o._promise("readwrite",function(){return f(a)},!0);case"put":if(l.fire===Vt&&c.fire===Vt)break;return o._promise("readwrite",function(){return f(a)},!0);case"delete":if(u.fire===Vt)break;return o._promise("readwrite",function(){return f(a)},!0);case"deleteRange":if(u.fire===Vt)break;return o._promise("readwrite",function(){return d(a)},!0)}return r.mutate(a);function f(h){var b=at.trans,g=h.keys||Ume(n,h);if(!g)throw new Error("Keys missing");return h=h.type==="add"||h.type==="put"?Ct(Ct({},h),{keys:g}):Ct({},h),h.type!=="delete"&&(h.values=D0([],h.values,!0)),h.keys&&(h.keys=D0([],h.keys,!0)),qme(r,h,g).then(function(v){var S=g.map(function(w,D){var _=v[D],N={onerror:null,onsuccess:null};if(h.type==="delete")u.fire.call(N,w,_,b);else if(h.type==="add"||_===void 0){var $=l.fire.call(N,w,h.values[D],b);w==null&&$!=null&&(w=$,h.keys[D]=w,n.outbound||Si(h.values[D],n.keyPath,w))}else{var k=oy(_,h.values[D]),K=c.fire.call(N,k,w,_,b);if(K){var G=h.values[D];Object.keys(K).forEach(function(j){Mn(G,j)?G[j]=K[j]:Si(G,j,K[j])})}}return N});return r.mutate(h).then(function(w){for(var D=w.failures,_=w.results,N=w.numFailures,$=w.lastResult,k=0;k<g.length;++k){var K=_?_[k]:g[k],G=S[k];K==null?G.onerror&&G.onerror(D[k]):G.onsuccess&&G.onsuccess(h.type==="put"&&v[k]?h.values[k]:K)}return{failures:D,results:_,numFailures:N,lastResult:$}}).catch(function(w){return S.forEach(function(D){return D.onerror&&D.onerror(w)}),Promise.reject(w)})})}function d(h){return p(h.trans,h.range,1e4)}function p(h,b,g){return r.query({trans:h,values:!1,query:{index:n,range:b},limit:g}).then(function(v){var S=v.result;return f({type:"delete",keys:S,trans:h}).then(function(w){return w.numFailures>0?Promise.reject(w.failures[0]):S.length<g?{failures:[],numFailures:0,lastResult:void 0}:p(h,Ct(Ct({},b),{lower:S[S.length-1],lowerOpen:!0}),g)})})}}});return i}})}};function qme(e,t,r){return t.type==="add"?Promise.resolve([]):e.getMany({trans:t.trans,keys:r,cache:"immutable"})}function s9(e,t,r){try{if(!t||t.keys.length<e.length)return null;for(var n=[],i=0,a=0;i<t.keys.length&&a<e.length;++i)nn(t.keys[i],e[a])===0&&(n.push(r?rf(t.values[i]):t.values[i]),++a);return n.length===e.length?n:null}catch{return null}}var Hme={stack:"dbcore",level:-1,create:function(e){return{table:function(t){var r=e.table(t);return Ct(Ct({},r),{getMany:function(n){if(!n.cache)return r.getMany(n);var i=s9(n.keys,n.trans._cache,n.cache==="clone");return i?Xe.resolve(i):r.getMany(n).then(function(a){return n.trans._cache={keys:n.keys,values:n.cache==="clone"?rf(a):a},a})},mutate:function(n){return n.type!=="add"&&(n.trans._cache=null),r.mutate(n)}})}}}},Ym;function sy(e){return!("from"in e)}var Pa=function(e,t){if(this)un(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0});else{var r=new Pa;return e&&"d"in e&&un(r,e),r}};sl(Pa.prototype,(Ym={add:function(e){return $p(this,e),this},addKey:function(e){return Uc(this,e,e),this},addKeys:function(e){var t=this;return e.forEach(function(r){return Uc(t,r,r)}),this}},Ym[A0]=function(){return K0(this)},Ym));function Uc(e,t,r){var n=nn(t,r);if(!isNaN(n)){if(n>0)throw RangeError();if(sy(e))return un(e,{from:t,to:r,d:1});var i=e.l,a=e.r;if(nn(r,e.from)<0)return i?Uc(i,t,r):e.l={from:t,to:r,d:1,l:null,r:null},$4(e);if(nn(t,e.to)>0)return a?Uc(a,t,r):e.r={from:t,to:r,d:1,l:null,r:null},$4(e);nn(t,e.from)<0&&(e.from=t,e.l=null,e.d=a?a.d+1:1),nn(r,e.to)>0&&(e.to=r,e.r=null,e.d=e.l?e.l.d+1:1);var o=!e.r;i&&!e.l&&$p(e,i),a&&o&&$p(e,a)}}function $p(e,t){function r(n,i){var a=i.from,o=i.to,s=i.l,u=i.r;Uc(n,a,o),s&&r(n,s),u&&r(n,u)}sy(t)||r(e,t)}function Vme(e,t){var r=K0(t),n=r.next();if(n.done)return!1;for(var i=n.value,a=K0(e),o=a.next(i.from),s=o.value;!n.done&&!o.done;){if(nn(s.from,i.to)<=0&&nn(s.to,i.from)>=0)return!0;nn(i.from,s.from)<0?i=(n=r.next(s.from)).value:s=(o=a.next(i.from)).value}return!1}function K0(e){var t=sy(e)?null:{s:0,n:e};return{next:function(r){for(var n=arguments.length>0;t;)switch(t.s){case 0:if(t.s=1,n)for(;t.n.l&&nn(r,t.n.from)<0;)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!n||nn(r,t.n.to)<=0)return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function $4(e){var t,r,n=(((t=e.r)===null||t===void 0?void 0:t.d)||0)-(((r=e.l)===null||r===void 0?void 0:r.d)||0),i=n>1?"r":n<-1?"l":"";if(i){var a=i==="r"?"l":"r",o=Ct({},e),s=e[i];e.from=s.from,e.to=s.to,e[i]=s[i],o[i]=s[a],e[a]=o,o.d=B4(o)}e.d=B4(e)}function B4(e){var t=e.r,r=e.l;return(t?r?Math.max(t.d,r.d):t.d:r?r.d:0)+1}var Kme={stack:"dbcore",level:0,create:function(e){var t=e.schema.name,r=new Pa(e.MIN_KEY,e.MAX_KEY);return Ct(Ct({},e),{table:function(n){var i=e.table(n),a=i.schema,o=a.primaryKey,s=o.extractKey,u=o.outbound,l=Ct(Ct({},i),{mutate:function(d){var p=d.trans,h=p.mutatedParts||(p.mutatedParts={}),b=function($){var k="idb://"+t+"/"+n+"/"+$;return h[k]||(h[k]=new Pa)},g=b(""),v=b(":dels"),S=d.type,w=d.type==="deleteRange"?[d.range]:d.type==="delete"?[d.keys]:d.values.length<50?[[],d.values]:[],D=w[0],_=w[1],N=d.trans._cache;return i.mutate(d).then(function($){if(Wr(D)){S!=="delete"&&(D=$.results),g.addKeys(D);var k=s9(D,N);!k&&S!=="add"&&v.addKeys(D),(k||_)&&Gme(b,a,k,_)}else if(D){var K={from:D.lower,to:D.upper};v.add(K),g.add(K)}else g.add(r),v.add(r),a.indexes.forEach(function(G){return b(G.name).add(r)});return $})}}),c=function(d){var p,h,b=d.query,g=b.index,v=b.range;return[g,new Pa((p=v.lower)!==null&&p!==void 0?p:e.MIN_KEY,(h=v.upper)!==null&&h!==void 0?h:e.MAX_KEY)]},f={get:function(d){return[o,new Pa(d.key)]},getMany:function(d){return[o,new Pa().addKeys(d.keys)]},count:c,query:c,openCursor:c};return yr(f).forEach(function(d){l[d]=function(p){var h=at.subscr;if(h){var b=function(N){var $="idb://"+t+"/"+n+"/"+N;return h[$]||(h[$]=new Pa)},g=b(""),v=b(":dels"),S=f[d](p),w=S[0],D=S[1];if(b(w.name||"").add(D),!w.isPrimaryKey)if(d==="count")v.add(r);else{var _=d==="query"&&u&&p.values&&i.query(Ct(Ct({},p),{values:!1}));return i[d].apply(this,arguments).then(function(N){if(d==="query"){if(u&&p.values)return _.then(function(G){var j=G.result;return g.addKeys(j),N});var $=p.values?N.result.map(s):N.result;p.values?g.addKeys($):v.addKeys($)}else if(d==="openCursor"){var k=N,K=p.values;return k&&Object.create(k,{key:{get:function(){return v.addKey(k.primaryKey),k.key}},primaryKey:{get:function(){var G=k.primaryKey;return v.addKey(G),G}},value:{get:function(){return K&&g.addKey(k.primaryKey),k.value}}})}return N})}}return i[d].apply(this,arguments)}}),l}})}};function Gme(e,t,r,n){function i(a){var o=e(a.name||"");function s(l){return l!=null?a.extractKey(l):null}var u=function(l){return a.multiEntry&&Wr(l)?l.forEach(function(c){return o.addKey(c)}):o.addKey(l)};(r||n).forEach(function(l,c){var f=r&&s(r[c]),d=n&&s(n[c]);nn(f,d)!==0&&(f!=null&&u(f),d!=null&&u(d))})}t.indexes.forEach(i)}var Bp=function(){function e(t,r){var n=this;this._middlewares={},this.verno=0;var i=e.dependencies;this._options=r=Ct({addons:e.addons,autoOpen:!0,indexedDB:i.indexedDB,IDBKeyRange:i.IDBKeyRange},r),this._deps={indexedDB:r.indexedDB,IDBKeyRange:r.IDBKeyRange};var a=r.addons;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var o={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:Vt,dbReadyPromise:null,cancelOpen:Vt,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};o.dbReadyPromise=new Xe(function(s){o.dbReadyResolve=s}),o.openCanceller=new Xe(function(s,u){o.cancelOpen=u}),this._state=o,this.name=t,this.on=sf(this,"populate","blocked","versionchange","close",{ready:[Zg,Vt]}),this.on.ready.subscribe=$E(this.on.ready.subscribe,function(s){return function(u,l){e.vip(function(){var c=n._state;if(c.openComplete)c.dbOpenError||Xe.resolve().then(u),l&&s(u);else if(c.onReadyBeingFired)c.onReadyBeingFired.push(u),l&&s(u);else{s(u);var f=n;l||s(function d(){f.on.ready.unsubscribe(u),f.on.ready.unsubscribe(d)})}})}}),this.Collection=ume(this),this.Table=nme(this),this.Transaction=vme(this),this.Version=Fme(this),this.WhereClause=hme(this),this.on("versionchange",function(s){s.newVersion>0?console.warn("Another connection wants to upgrade database '"+n.name+"'. Closing db now to resume the upgrade."):console.warn("Another connection wants to delete database '"+n.name+"'. Closing db now to resume the delete request."),n.close()}),this.on("blocked",function(s){!s.newVersion||s.newVersion<s.oldVersion?console.warn("Dexie.delete('"+n.name+"') was blocked"):console.warn("Upgrade '"+n.name+"' blocked by other connection holding version "+s.oldVersion/10)}),this._maxKey=jc(r.IDBKeyRange),this._createTransaction=function(s,u,l,c){return new n.Transaction(s,u,l,n._options.chromeTransactionDurability,c)},this._fireOnBlocked=function(s){n.on("blocked").fire(s),gc.filter(function(u){return u.name===n.name&&u!==n&&!u._state.vcFired}).map(function(u){return u.on("versionchange").fire(s)})},this.use(jme),this.use(zme),this.use(Kme),this.use(Hme),this.vip=Object.create(this,{_vip:{value:!0}}),a.forEach(function(s){return s(n)})}return e.prototype.version=function(t){if(isNaN(t)||t<.1)throw new ft.Type("Given version is not a positive number");if(t=Math.round(t*10)/10,this.idbdb||this._state.isBeingOpened)throw new ft.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,t);var r=this._versions,n=r.filter(function(i){return i._cfg.version===t})[0];return n||(n=new this.Version(t),r.push(n),r.sort(Eme),n.stores({}),this._state.autoSchema=!1,n)},e.prototype._whenReady=function(t){var r=this;return this.idbdb&&(this._state.openComplete||at.letThrough||this._vip)?t():new Xe(function(n,i){if(r._state.openComplete)return i(new ft.DatabaseClosed(r._state.dbOpenError));if(!r._state.isBeingOpened){if(!r._options.autoOpen){i(new ft.DatabaseClosed);return}r.open().catch(Vt)}r._state.dbReadyPromise.then(n,i)}).then(t)},e.prototype.use=function(t){var r=t.stack,n=t.create,i=t.level,a=t.name;a&&this.unuse({stack:r,name:a});var o=this._middlewares[r]||(this._middlewares[r]=[]);return o.push({stack:r,create:n,level:i==null?10:i,name:a}),o.sort(function(s,u){return s.level-u.level}),this},e.prototype.unuse=function(t){var r=t.stack,n=t.name,i=t.create;return r&&this._middlewares[r]&&(this._middlewares[r]=this._middlewares[r].filter(function(a){return i?a.create!==i:n?a.name!==n:!1})),this},e.prototype.open=function(){return Mme(this)},e.prototype._close=function(){var t=this._state,r=gc.indexOf(this);if(r>=0&&gc.splice(r,1),this.idbdb){try{this.idbdb.close()}catch{}this._novip.idbdb=null}t.dbReadyPromise=new Xe(function(n){t.dbReadyResolve=n}),t.openCanceller=new Xe(function(n,i){t.cancelOpen=i})},e.prototype.close=function(){this._close();var t=this._state;this._options.autoOpen=!1,t.dbOpenError=new ft.DatabaseClosed,t.isBeingOpened&&t.cancelOpen(t.dbOpenError)},e.prototype.delete=function(){var t=this,r=arguments.length>0,n=this._state;return new Xe(function(i,a){var o=function(){t.close();var s=t._deps.indexedDB.deleteDatabase(t.name);s.onsuccess=tr(function(){Pme(t._deps,t.name),i()}),s.onerror=qi(a),s.onblocked=t._fireOnBlocked};if(r)throw new ft.InvalidArgument("Arguments not allowed in db.delete()");n.isBeingOpened?n.dbReadyPromise.then(o):o()})},e.prototype.backendDB=function(){return this.idbdb},e.prototype.isOpen=function(){return this.idbdb!==null},e.prototype.hasBeenClosed=function(){var t=this._state.dbOpenError;return t&&t.name==="DatabaseClosed"},e.prototype.hasFailed=function(){return this._state.dbOpenError!==null},e.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(e.prototype,"tables",{get:function(){var t=this;return yr(this._allTables).map(function(r){return t._allTables[r]})},enumerable:!1,configurable:!0}),e.prototype.transaction=function(){var t=Rme.apply(this,arguments);return this._transaction.apply(this,t)},e.prototype._transaction=function(t,r,n){var i=this,a=at.trans;(!a||a.db!==this||t.indexOf("!")!==-1)&&(a=null);var o=t.indexOf("?")!==-1;t=t.replace("!","").replace("?","");var s,u;try{if(u=r.map(function(c){var f=c instanceof i.Table?c.name:c;if(typeof f!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return f}),t=="r"||t===Hm)s=Hm;else if(t=="rw"||t==Vm)s=Vm;else throw new ft.InvalidArgument("Invalid transaction mode: "+t);if(a){if(a.mode===Hm&&s===Vm)if(o)a=null;else throw new ft.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");a&&u.forEach(function(c){if(a&&a.storeNames.indexOf(c)===-1)if(o)a=null;else throw new ft.SubTransaction("Table "+c+" not included in parent transaction.")}),o&&a&&!a.active&&(a=null)}}catch(c){return a?a._promise(null,function(f,d){d(c)}):Sr(c)}var l=o9.bind(null,this,s,u,a,n);return a?a._promise(s,l,"lock"):at.trans?kl(at.transless,function(){return i._whenReady(l)}):this._whenReady(l)},e.prototype.table=function(t){if(!Mn(this._allTables,t))throw new ft.InvalidTable("Table "+t+" does not exist");return this._allTables[t]},e}(),Wme=typeof Symbol!="undefined"&&"observable"in Symbol?Symbol.observable:"@@observable",Yme=function(){function e(t){this._subscribe=t}return e.prototype.subscribe=function(t,r,n){return this._subscribe(!t||typeof t=="function"?{next:t,error:r,complete:n}:t)},e.prototype[Wme]=function(){return this},e}();function u9(e,t){return yr(t).forEach(function(r){var n=e[r]||(e[r]=new Pa);$p(n,t[r])}),e}function Zme(e){return new Yme(function(t){var r=Gg(e);function n(p){r&&Tl();var h=function(){return is(e,{subscr:p,trans:null})},b=at.trans?kl(at.transless,h):h();return r&&b.then(ao,ao),b}var i=!1,a={},o={},s={get closed(){return i},unsubscribe:function(){i=!0,os.storagemutated.unsubscribe(f)}};t.start&&t.start(s);var u=!1,l=!1;function c(){return yr(o).some(function(p){return a[p]&&Vme(a[p],o[p])})}var f=function(p){u9(a,p),c()&&d()},d=function(){if(!(u||i)){a={};var p={},h=n(p);l||(os(Lc,f),l=!0),u=!0,Promise.resolve(h).then(function(b){u=!1,!i&&(c()?d():(a={},o=p,t.next&&t.next(b)))},function(b){u=!1,t.error&&t.error(b),s.unsubscribe()})}};return d(),s})}var G0;try{G0={indexedDB:Qt.indexedDB||Qt.mozIndexedDB||Qt.webkitIndexedDB||Qt.msIndexedDB,IDBKeyRange:Qt.IDBKeyRange||Qt.webkitIDBKeyRange}}catch{G0={indexedDB:null,IDBKeyRange:null}}var Ds=Bp;sl(Ds,Ct(Ct({},Ih),{delete:function(e){var t=new Ds(e,{addons:[]});return t.delete()},exists:function(e){return new Ds(e,{addons:[]}).open().then(function(t){return t.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(e){try{return $me(Ds.dependencies).then(e)}catch{return Sr(new ft.MissingAPI)}},defineClass:function(){function e(t){un(this,t)}return e},ignoreTransaction:function(e){return at.trans?kl(at.transless,e):e()},vip:H0,async:function(e){return function(){try{var t=V0(e.apply(this,arguments));return!t||typeof t.then!="function"?Xe.resolve(t):t}catch(r){return Sr(r)}}},spawn:function(e,t,r){try{var n=V0(e.apply(r,t||[]));return!n||typeof n.then!="function"?Xe.resolve(n):n}catch(i){return Sr(i)}},currentTransaction:{get:function(){return at.trans||null}},waitFor:function(e,t){var r=Xe.resolve(typeof e=="function"?Ds.ignoreTransaction(e):e).timeout(t||6e4);return at.trans?at.trans.waitFor(r):r},Promise:Xe,debug:{get:function(){return va},set:function(e){LE(e,e==="dexie"?function(){return!0}:QE)}},derive:Al,extend:un,props:sl,override:$E,Events:sf,on:os,liveQuery:Zme,extendObservabilitySet:u9,getByKeyPath:Ja,setByKeyPath:Si,delByKeyPath:Nhe,shallowClone:IE,deepClone:rf,getObjectDiff:oy,cmp:nn,asap:BE,minKey:R0,addons:[],connections:gc,errnames:Yg,dependencies:G0,semVer:A4,version:A4.split(".").map(function(e){return parseInt(e)}).reduce(function(e,t,r){return e+t/Math.pow(10,r*2)})}));Ds.maxKey=jc(Ds.dependencies.IDBKeyRange);typeof dispatchEvent!="undefined"&&typeof addEventListener!="undefined"&&(os(Lc,function(e){if(!Ga){var t;Mh?(t=document.createEvent("CustomEvent"),t.initCustomEvent(jo,!0,!0,e)):t=new CustomEvent(jo,{detail:e}),Ga=!0,dispatchEvent(t),Ga=!1}}),addEventListener(jo,function(e){var t=e.detail;Ga||Pp(t)}));function Pp(e){var t=Ga;try{Ga=!0,os.storagemutated.fire(e)}finally{Ga=t}}var Ga=!1;if(typeof BroadcastChannel!="undefined"){var P4=new BroadcastChannel(jo);os(Lc,function(e){Ga||P4.postMessage(e)}),P4.onmessage=function(e){e.data&&Pp(e.data)}}else if(typeof self!="undefined"&&typeof navigator!="undefined"){os(Lc,function(e){try{Ga||(typeof localStorage!="undefined"&&localStorage.setItem(jo,JSON.stringify({trig:Math.random(),changedParts:e})),typeof self.clients=="object"&&D0([],self.clients.matchAll({includeUncontrolled:!0}),!0).forEach(function(t){return t.postMessage({type:jo,changedParts:e})}))}catch{}}),typeof addEventListener!="undefined"&&addEventListener("storage",function(e){if(e.key===jo){var t=JSON.parse(e.newValue);t&&Pp(t.changedParts)}});var I4=self.document&&navigator.serviceWorker;I4&&I4.addEventListener("message",Jme)}function Jme(e){var t=e.data;t&&t.type===jo&&Pp(t.changedParts)}Xe.rejectionMapper=Mhe;LE(va,QE);const Zi={INIT:"1",FLUSH:"2",STORE_FIELD:"3",STORE_DATA:"4",DISABLE:"5"},Xme={enabled:!1,page:!1,name:null,db:null,threshold:14*86400*1e3},l9="_up",Qme="history",ud={},e1e=async(e,t)=>{const r=await e.rootGetters["fields/field_by_id"](t.id);e.commit(Zi.STORE_FIELD,{field:t,value:await r1e(r)})},t1e=da((e,t)=>{e.commit(Zi.STORE_DATA,t)},500),r1e=async e=>{const t=At(e);switch(t.type){case"file":return Promise.all(t.value.map(async r=>({buf:await rb(r),name:r.name,type:r.type})));case"media-answer":return t.value?{buf:await rb(t.value),type:t.value.type}:t.value;default:return t.value}},n1e=(e,t)=>{switch(e.type){case"file":return t.map(r=>new File([r.buf],r.name,{type:r.type}));case"media-answer":return new Blob([t.buf],{type:t.type});default:return t}},Kl=()=>{},i1e={async init(e){e.commit(Zi.INIT,{enabled:B(e.rootGetters["loader/data"],"data.persistence.enabled",!1),page:B(e.rootGetters["loader/data"],"data.persistence.page",!1),name:e.rootGetters["form/domain"]+e.rootGetters["form/uri"]})},async flush(e){e.commit(Zi.FLUSH)},async field(e,t){e.state.enabled&&c$(t.field.type)&&(t.field.id in ud||(ud[t.field.id]=da(e1e,500)),ud[t.field.id](e,t.field))},async history(e,t){e.state.enabled&&e.state.page&&t1e(e,{name:"history",value:t})},async restore(e){if(e.state.enabled&&e.state.db)try{const t=await e.state.db.data.get(l9);if(t&&Date.now()-t.value<e.state.threshold&&(await e.state.db.fields.each(r=>{const n=e.rootGetters["fields/field_by_id"](r.id);n&&e.dispatch("fields/_update",{field:n,value:n1e(n,r.value)},{root:!0})}),e.state.page)){const r=await e.state.db.data.get(Qme);r&&e.dispatch("pages/restore",r.value,{root:!0})}}catch{e.commit(Zi.DISABLE)}}},a1e={[Zi.INIT](e,t){if(e.enabled=t.enabled,e.name=t.name,t.enabled){e.page=t.page;try{e.db=new Bp(t.name),e.db.version(1).stores({fields:"id",data:"name"})}catch{e.enabled=!1}}},[Zi.FLUSH](e){e.enabled&&e.name&&(e.db?e.db.delete().catch(Kl):(Bp.delete(e.name).catch(Kl),e.db=null))},[Zi.STORE_FIELD](e,t){const r=M1(At(t.field)),n=M1(At(t.value));e.db.fields.put({id:r.id,value:n}).catch(Kl),e.db.data.put({name:l9,value:Date.now()}).catch(Kl)},[Zi.STORE_DATA](e,t){e.db.data.put(t).catch(Kl)},[Zi.DISABLE](e){e.enabled=!1}},o1e={};var s1e={namespaced:!0,state:Xme,actions:i1e,mutations:a1e,getters:o1e},Ms=ZA({modules:{animation:QF,button:i$,fields:gB,form:bde,loader:Qde,page:ipe,pages:lpe,process:ype,ribbon:Epe,submit:Npe,iframe:$pe,checkout:Rpe,analytics:Vpe,world:Xpe,stripe:nhe,carts:uhe,paypal:phe,error:yhe,tracking:Ehe,persistence:s1e},plugins:[]});class u1e{constructor(){try{const t="__vue-localstorage-test__";window.localStorage.setItem(t,t),window.localStorage.removeItem(t),this._isSupported=!0}catch{this.isSupported=!1}}get(t,r=null){if(!this._isSupported)return null;const n=window.localStorage[t];return n||r}set(t,r){return this._isSupported?(window.localStorage.setItem(t,r),r):null}remove(t){return this._isSupported?window.localStorage.removeItem(t):null}}const l1e=new u1e;var c1e={install:e=>{e.config.globalProperties.$localStorage=l1e}};const cs=NC(Lk);cs.use(WF);cs.use(Ms);cs.use(Bc);cs.use(Hde);cs.use(c1e);cs.use(yR);Qi.defaults.baseURL="https://api.aidaform.com/v1";Qi.defaults.timeout=0;cs.config.unwrapInjectedRef=!0;cs.mount("#app");export{y6 as $,u6 as A,RG as B,pa as C,hr as D,uo as E,rx as F,Yc as G,Rn as H,yt as I,wt as J,tt as K,B as L,q6 as M,N6 as N,iV as O,TV as P,Vo as Q,lt as R,vh as S,l6 as T,Oe as U,H9 as V,Re as W,V9 as X,Ku as Y,d1e as Z,we as _,f1e as __vite_legacy_guard,ne as a,q9 as a0,ei as a1,da as a2,Ge as b,ae as c,fJ as d,Qn as e,Ee as f,ct as g,Cr as h,p1e as i,Qi as j,_C as k,vt as l,bt as m,Ye as n,V as o,Gt as p,Qe as q,ge as r,ua as s,We as t,la as u,$r as v,Fr as w,h1e as x,dr as y,ln as z};
