(()=>{var e={31528:function(e,t){var n,o,r;!function(a,s){"use strict";"object"==typeof e.exports?e.exports=s():(o=[],void 0===(r="function"==typeof(n=s)?n.apply(t,o):n)||(e.exports=r))}(0,(function(){"use strict";var e=Object.prototype.toString;function t(e,t){return null!=e&&Object.prototype.hasOwnProperty.call(e,t)}function n(e){if(!e)return!0;if(r(e)&&0===e.length)return!0;if("string"!=typeof e){for(var n in e)if(t(e,n))return!1;return!0}return!1}function o(t){return e.call(t)}var r=Array.isArray||function(t){return"[object Array]"===e.call(t)};function a(e){var t=parseInt(e);return t.toString()===e?t:e}function s(e){var s,i,l=function(e){return Object.keys(l).reduce((function(t,n){return"create"===n||"function"==typeof l[n]&&(t[n]=l[n].bind(l,e)),t}),{})};function c(e,t){if(s(e,t))return e[t]}function u(e,t,n,o){if("number"==typeof t&&(t=[t]),!t||0===t.length)return e;if("string"==typeof t)return u(e,t.split(".").map(a),n,o);var r=t[0],s=i(e,r);return 1===t.length?(void 0!==s&&o||(e[r]=n),s):(void 0===s&&("number"==typeof t[1]?e[r]=[]:e[r]={}),u(e[r],t.slice(1),n,o))}return s=(e=e||{}).includeInheritedProps?function(){return!0}:function(e,n){return"number"==typeof n&&Array.isArray(e)||t(e,n)},i=e.includeInheritedProps?function(e,t){"string"!=typeof t&&"number"!=typeof t&&(t=String(t));var n=c(e,t);if("__proto__"===t||"prototype"===t||"constructor"===t&&"function"==typeof n)throw new Error("For security reasons, object's magic properties cannot be set");return n}:function(e,t){return c(e,t)},l.has=function(n,o){if("number"==typeof o?o=[o]:"string"==typeof o&&(o=o.split(".")),!o||0===o.length)return!!n;for(var s=0;s<o.length;s++){var i=a(o[s]);if(!("number"==typeof i&&r(n)&&i<n.length||(e.includeInheritedProps?i in Object(n):t(n,i))))return!1;n=n[i]}return!0},l.ensureExists=function(e,t,n){return u(e,t,n,!0)},l.set=function(e,t,n,o){return u(e,t,n,o)},l.insert=function(e,t,n,o){var a=l.get(e,t);o=~~o,r(a)||(a=[],l.set(e,t,a)),a.splice(o,0,n)},l.empty=function(e,t){var a,i;if(!n(t)&&(null!=e&&(a=l.get(e,t)))){if("string"==typeof a)return l.set(e,t,"");if(function(e){return"boolean"==typeof e||"[object Boolean]"===o(e)}(a))return l.set(e,t,!1);if("number"==typeof a)return l.set(e,t,0);if(r(a))a.length=0;else{if(!function(e){return"object"==typeof e&&"[object Object]"===o(e)}(a))return l.set(e,t,null);for(i in a)s(a,i)&&delete a[i]}}},l.push=function(e,t){var n=l.get(e,t);r(n)||(n=[],l.set(e,t,n)),n.push.apply(n,Array.prototype.slice.call(arguments,2))},l.coalesce=function(e,t,n){for(var o,r=0,a=t.length;r<a;r++)if(void 0!==(o=l.get(e,t[r])))return o;return n},l.get=function(e,t,n){if("number"==typeof t&&(t=[t]),!t||0===t.length)return e;if(null==e)return n;if("string"==typeof t)return l.get(e,t.split("."),n);var o=a(t[0]),r=i(e,o);return void 0===r?n:1===t.length?r:l.get(e[o],t.slice(1),n)},l.del=function(e,t){if("number"==typeof t&&(t=[t]),null==e)return e;if(n(t))return e;if("string"==typeof t)return l.del(e,t.split("."));var o=a(t[0]);return i(e,o),s(e,o)?1!==t.length?l.del(e[o],t.slice(1)):(r(e)?e.splice(o,1):delete e[o],e):e},l}var i=s();return i.create=s,i.withInheritedProps=s({includeInheritedProps:!0}),i}))},1271:(e,t,n)=>{var o;
/*!
 * Sizzle CSS Selector Engine v2.3.10
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://js.foundation/
 *
 * Date: 2023-02-14
 */!function(r){var a,s,i,l,c,u,d,p,m,f,h,g,y,v,b,k,w,C,_,E="sizzle"+1*new Date,x=r.document,A=0,S=0,T=pe(),L=pe(),N=pe(),I=pe(),D=function(e,t){return e===t&&(h=!0),0},O={}.hasOwnProperty,B=[],z=B.pop,F=B.push,P=B.push,M=B.slice,R=function(e,t){for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1},V="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",U="[\\x20\\t\\r\\n\\f]",j="(?:\\\\[\\da-fA-F]{1,6}"+U+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",K="\\["+U+"*("+j+")(?:"+U+"*([*^$|!~]?=)"+U+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+j+"))|)"+U+"*\\]",$=":("+j+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+K+")*)|.*)\\)|)",H=new RegExp(U+"+","g"),W=new RegExp("^"+U+"+|((?:^|[^\\\\])(?:\\\\.)*)"+U+"+$","g"),q=new RegExp("^"+U+"*,"+U+"*"),G=new RegExp("^"+U+"*([>+~]|"+U+")"+U+"*"),Y=new RegExp(U+"|>"),X=new RegExp($),Z=new RegExp("^"+j+"$"),J={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+K),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+U+"*(even|odd|(([+-]|)(\\d*)n|)"+U+"*(?:([+-]|)"+U+"*(\\d+)|))"+U+"*\\)|)","i"),bool:new RegExp("^(?:"+V+")$","i"),needsContext:new RegExp("^"+U+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+U+"*((?:-\\d)?\\d*)"+U+"*\\)|)(?=[^-]|$)","i")},Q=/HTML$/i,ee=/^(?:input|select|textarea|button)$/i,te=/^h\d$/i,ne=/^[^{]+\{\s*\[native \w/,oe=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,re=/[+~]/,ae=new RegExp("\\\\[\\da-fA-F]{1,6}"+U+"?|\\\\([^\\r\\n\\f])","g"),se=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,le=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ce=function(){g()},ue=Ee((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{P.apply(B=M.call(x.childNodes),x.childNodes),B[x.childNodes.length].nodeType}catch(e){P={apply:B.length?function(e,t){F.apply(e,M.call(t))}:function(e,t){for(var n=e.length,o=0;e[n++]=t[o++];);e.length=n-1}}}function de(e,t,n,o){var r,a,i,l,c,d,m,f=t&&t.ownerDocument,h=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return n;if(!o&&(g(t),t=t||y,b)){if(11!==h&&(c=oe.exec(e)))if(r=c[1]){if(9===h){if(!(i=t.getElementById(r)))return n;if(i.id===r)return n.push(i),n}else if(f&&(i=f.getElementById(r))&&_(t,i)&&i.id===r)return n.push(i),n}else{if(c[2])return P.apply(n,t.getElementsByTagName(e)),n;if((r=c[3])&&s.getElementsByClassName&&t.getElementsByClassName)return P.apply(n,t.getElementsByClassName(r)),n}if(s.qsa&&!I[e+" "]&&(!k||!k.test(e))&&(1!==h||"object"!==t.nodeName.toLowerCase())){if(m=e,f=t,1===h&&(Y.test(e)||G.test(e))){for((f=re.test(e)&&we(t.parentNode)||t)===t&&s.scope||((l=t.getAttribute("id"))?l=l.replace(ie,le):t.setAttribute("id",l=E)),a=(d=u(e)).length;a--;)d[a]=(l?"#"+l:":scope")+" "+_e(d[a]);m=d.join(",")}try{return P.apply(n,f.querySelectorAll(m)),n}catch(t){I(e,!0)}finally{l===E&&t.removeAttribute("id")}}}return p(e.replace(W,"$1"),t,n,o)}function pe(){var e=[];return function t(n,o){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function me(e){return e[E]=!0,e}function fe(e){var t=y.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function he(e,t){for(var n=e.split("|"),o=n.length;o--;)i.attrHandle[n[o]]=t}function ge(e,t){var n=t&&e,o=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(o)return o;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ye(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function ve(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function be(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ue(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ke(e){return me((function(t){return t=+t,me((function(n,o){for(var r,a=e([],n.length,t),s=a.length;s--;)n[r=a[s]]&&(n[r]=!(o[r]=n[r]))}))}))}function we(e){return e&&void 0!==e.getElementsByTagName&&e}for(a in s=de.support={},c=de.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Q.test(t||n&&n.nodeName||"HTML")},g=de.setDocument=function(e){var t,n,o=e?e.ownerDocument||e:x;return o!=y&&9===o.nodeType&&o.documentElement?(v=(y=o).documentElement,b=!c(y),x!=y&&(n=y.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",ce,!1):n.attachEvent&&n.attachEvent("onunload",ce)),s.scope=fe((function(e){return v.appendChild(e).appendChild(y.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),s.cssHas=fe((function(){try{return y.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),s.attributes=fe((function(e){return e.className="i",!e.getAttribute("className")})),s.getElementsByTagName=fe((function(e){return e.appendChild(y.createComment("")),!e.getElementsByTagName("*").length})),s.getElementsByClassName=ne.test(y.getElementsByClassName),s.getById=fe((function(e){return v.appendChild(e).id=E,!y.getElementsByName||!y.getElementsByName(E).length})),s.getById?(i.filter.ID=function(e){var t=e.replace(ae,se);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&b){var n=t.getElementById(e);return n?[n]:[]}}):(i.filter.ID=function(e){var t=e.replace(ae,se);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&b){var n,o,r,a=t.getElementById(e);if(a){if((n=a.getAttributeNode("id"))&&n.value===e)return[a];for(r=t.getElementsByName(e),o=0;a=r[o++];)if((n=a.getAttributeNode("id"))&&n.value===e)return[a]}return[]}}),i.find.TAG=s.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):s.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,o=[],r=0,a=t.getElementsByTagName(e);if("*"===e){for(;n=a[r++];)1===n.nodeType&&o.push(n);return o}return a},i.find.CLASS=s.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&b)return t.getElementsByClassName(e)},w=[],k=[],(s.qsa=ne.test(y.querySelectorAll))&&(fe((function(e){var t;v.appendChild(e).innerHTML="<a id='"+E+"'></a><select id='"+E+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&k.push("[*^$]="+U+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||k.push("\\["+U+"*(?:value|"+V+")"),e.querySelectorAll("[id~="+E+"-]").length||k.push("~="),(t=y.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||k.push("\\["+U+"*name"+U+"*="+U+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||k.push(":checked"),e.querySelectorAll("a#"+E+"+*").length||k.push(".#.+[+~]"),e.querySelectorAll("\\\f"),k.push("[\\r\\n\\f]")})),fe((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=y.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&k.push("name"+U+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&k.push(":enabled",":disabled"),v.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&k.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),k.push(",.*:")}))),(s.matchesSelector=ne.test(C=v.matches||v.webkitMatchesSelector||v.mozMatchesSelector||v.oMatchesSelector||v.msMatchesSelector))&&fe((function(e){s.disconnectedMatch=C.call(e,"*"),C.call(e,"[s!='']:x"),w.push("!=",$)})),s.cssHas||k.push(":has"),k=k.length&&new RegExp(k.join("|")),w=w.length&&new RegExp(w.join("|")),t=ne.test(v.compareDocumentPosition),_=t||ne.test(v.contains)?function(e,t){var n=9===e.nodeType&&e.documentElement||e,o=t&&t.parentNode;return e===o||!(!o||1!==o.nodeType||!(n.contains?n.contains(o):e.compareDocumentPosition&&16&e.compareDocumentPosition(o)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return h=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!s.sortDetached&&t.compareDocumentPosition(e)===n?e==y||e.ownerDocument==x&&_(x,e)?-1:t==y||t.ownerDocument==x&&_(x,t)?1:f?R(f,e)-R(f,t):0:4&n?-1:1)}:function(e,t){if(e===t)return h=!0,0;var n,o=0,r=e.parentNode,a=t.parentNode,s=[e],i=[t];if(!r||!a)return e==y?-1:t==y?1:r?-1:a?1:f?R(f,e)-R(f,t):0;if(r===a)return ge(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)i.unshift(n);for(;s[o]===i[o];)o++;return o?ge(s[o],i[o]):s[o]==x?-1:i[o]==x?1:0},y):y},de.matches=function(e,t){return de(e,null,null,t)},de.matchesSelector=function(e,t){if(g(e),s.matchesSelector&&b&&!I[t+" "]&&(!w||!w.test(t))&&(!k||!k.test(t)))try{var n=C.call(e,t);if(n||s.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){I(t,!0)}return de(t,y,null,[e]).length>0},de.contains=function(e,t){return(e.ownerDocument||e)!=y&&g(e),_(e,t)},de.attr=function(e,t){(e.ownerDocument||e)!=y&&g(e);var n=i.attrHandle[t.toLowerCase()],o=n&&O.call(i.attrHandle,t.toLowerCase())?n(e,t,!b):void 0;return void 0!==o?o:s.attributes||!b?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},de.escape=function(e){return(e+"").replace(ie,le)},de.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},de.uniqueSort=function(e){var t,n=[],o=0,r=0;if(h=!s.detectDuplicates,f=!s.sortStable&&e.slice(0),e.sort(D),h){for(;t=e[r++];)t===e[r]&&(o=n.push(r));for(;o--;)e.splice(n[o],1)}return f=null,e},l=de.getText=function(e){var t,n="",o=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=l(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[o++];)n+=l(t);return n},i=de.selectors={cacheLength:50,createPseudo:me,match:J,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ae,se),e[3]=(e[3]||e[4]||e[5]||"").replace(ae,se),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||de.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&de.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return J.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=u(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ae,se).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+U+")"+e+"("+U+"|$)"))&&T(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(o){var r=de.attr(o,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace(H," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,o,r){var a="nth"!==e.slice(0,3),s="last"!==e.slice(-4),i="of-type"===t;return 1===o&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,p,m,f,h=a!==s?"nextSibling":"previousSibling",g=t.parentNode,y=i&&t.nodeName.toLowerCase(),v=!l&&!i,b=!1;if(g){if(a){for(;h;){for(p=t;p=p[h];)if(i?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;f=h="only"===e&&!f&&"nextSibling"}return!0}if(f=[s?g.firstChild:g.lastChild],s&&v){for(b=(m=(c=(u=(d=(p=g)[E]||(p[E]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===A&&c[1])&&c[2],p=m&&g.childNodes[m];p=++m&&p&&p[h]||(b=m=0)||f.pop();)if(1===p.nodeType&&++b&&p===t){u[e]=[A,m,b];break}}else if(v&&(b=m=(c=(u=(d=(p=t)[E]||(p[E]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===A&&c[1]),!1===b)for(;(p=++m&&p&&p[h]||(b=m=0)||f.pop())&&((i?p.nodeName.toLowerCase()!==y:1!==p.nodeType)||!++b||(v&&((u=(d=p[E]||(p[E]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]=[A,b]),p!==t)););return(b-=r)===o||b%o==0&&b/o>=0}}},PSEUDO:function(e,t){var n,o=i.pseudos[e]||i.setFilters[e.toLowerCase()]||de.error("unsupported pseudo: "+e);return o[E]?o(t):o.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?me((function(e,n){for(var r,a=o(e,t),s=a.length;s--;)e[r=R(e,a[s])]=!(n[r]=a[s])})):function(e){return o(e,0,n)}):o}},pseudos:{not:me((function(e){var t=[],n=[],o=d(e.replace(W,"$1"));return o[E]?me((function(e,t,n,r){for(var a,s=o(e,null,r,[]),i=e.length;i--;)(a=s[i])&&(e[i]=!(t[i]=a))})):function(e,r,a){return t[0]=e,o(t,null,a,n),t[0]=null,!n.pop()}})),has:me((function(e){return function(t){return de(e,t).length>0}})),contains:me((function(e){return e=e.replace(ae,se),function(t){return(t.textContent||l(t)).indexOf(e)>-1}})),lang:me((function(e){return Z.test(e||"")||de.error("unsupported lang: "+e),e=e.replace(ae,se).toLowerCase(),function(t){var n;do{if(n=b?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=r.location&&r.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===v},focus:function(e){return e===y.activeElement&&(!y.hasFocus||y.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:be(!1),disabled:be(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return te.test(e.nodeName)},input:function(e){return ee.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ke((function(){return[0]})),last:ke((function(e,t){return[t-1]})),eq:ke((function(e,t,n){return[n<0?n+t:n]})),even:ke((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ke((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ke((function(e,t,n){for(var o=n<0?n+t:n>t?t:n;--o>=0;)e.push(o);return e})),gt:ke((function(e,t,n){for(var o=n<0?n+t:n;++o<t;)e.push(o);return e}))}},i.pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[a]=ye(a);for(a in{submit:!0,reset:!0})i.pseudos[a]=ve(a);function Ce(){}function _e(e){for(var t=0,n=e.length,o="";t<n;t++)o+=e[t].value;return o}function Ee(e,t,n){var o=t.dir,r=t.next,a=r||o,s=n&&"parentNode"===a,i=S++;return t.first?function(t,n,r){for(;t=t[o];)if(1===t.nodeType||s)return e(t,n,r);return!1}:function(t,n,l){var c,u,d,p=[A,i];if(l){for(;t=t[o];)if((1===t.nodeType||s)&&e(t,n,l))return!0}else for(;t=t[o];)if(1===t.nodeType||s)if(u=(d=t[E]||(t[E]={}))[t.uniqueID]||(d[t.uniqueID]={}),r&&r===t.nodeName.toLowerCase())t=t[o]||t;else{if((c=u[a])&&c[0]===A&&c[1]===i)return p[2]=c[2];if(u[a]=p,p[2]=e(t,n,l))return!0}return!1}}function xe(e){return e.length>1?function(t,n,o){for(var r=e.length;r--;)if(!e[r](t,n,o))return!1;return!0}:e[0]}function Ae(e,t,n,o,r){for(var a,s=[],i=0,l=e.length,c=null!=t;i<l;i++)(a=e[i])&&(n&&!n(a,o,r)||(s.push(a),c&&t.push(i)));return s}function Se(e,t,n,o,r,a){return o&&!o[E]&&(o=Se(o)),r&&!r[E]&&(r=Se(r,a)),me((function(a,s,i,l){var c,u,d,p=[],m=[],f=s.length,h=a||function(e,t,n){for(var o=0,r=t.length;o<r;o++)de(e,t[o],n);return n}(t||"*",i.nodeType?[i]:i,[]),g=!e||!a&&t?h:Ae(h,p,e,i,l),y=n?r||(a?e:f||o)?[]:s:g;if(n&&n(g,y,i,l),o)for(c=Ae(y,m),o(c,[],i,l),u=c.length;u--;)(d=c[u])&&(y[m[u]]=!(g[m[u]]=d));if(a){if(r||e){if(r){for(c=[],u=y.length;u--;)(d=y[u])&&c.push(g[u]=d);r(null,y=[],c,l)}for(u=y.length;u--;)(d=y[u])&&(c=r?R(a,d):p[u])>-1&&(a[c]=!(s[c]=d))}}else y=Ae(y===s?y.splice(f,y.length):y),r?r(null,s,y,l):P.apply(s,y)}))}function Te(e){for(var t,n,o,r=e.length,a=i.relative[e[0].type],s=a||i.relative[" "],l=a?1:0,c=Ee((function(e){return e===t}),s,!0),u=Ee((function(e){return R(t,e)>-1}),s,!0),d=[function(e,n,o){var r=!a&&(o||n!==m)||((t=n).nodeType?c(e,n,o):u(e,n,o));return t=null,r}];l<r;l++)if(n=i.relative[e[l].type])d=[Ee(xe(d),n)];else{if((n=i.filter[e[l].type].apply(null,e[l].matches))[E]){for(o=++l;o<r&&!i.relative[e[o].type];o++);return Se(l>1&&xe(d),l>1&&_e(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(W,"$1"),n,l<o&&Te(e.slice(l,o)),o<r&&Te(e=e.slice(o)),o<r&&_e(e))}d.push(n)}return xe(d)}Ce.prototype=i.filters=i.pseudos,i.setFilters=new Ce,u=de.tokenize=function(e,t){var n,o,r,a,s,l,c,u=L[e+" "];if(u)return t?0:u.slice(0);for(s=e,l=[],c=i.preFilter;s;){for(a in n&&!(o=q.exec(s))||(o&&(s=s.slice(o[0].length)||s),l.push(r=[])),n=!1,(o=G.exec(s))&&(n=o.shift(),r.push({value:n,type:o[0].replace(W," ")}),s=s.slice(n.length)),i.filter)!(o=J[a].exec(s))||c[a]&&!(o=c[a](o))||(n=o.shift(),r.push({value:n,type:a,matches:o}),s=s.slice(n.length));if(!n)break}return t?s.length:s?de.error(e):L(e,l).slice(0)},d=de.compile=function(e,t){var n,o=[],r=[],a=N[e+" "];if(!a){for(t||(t=u(e)),n=t.length;n--;)(a=Te(t[n]))[E]?o.push(a):r.push(a);a=N(e,function(e,t){var n=t.length>0,o=e.length>0,r=function(r,a,s,l,c){var u,d,p,f=0,h="0",v=r&&[],k=[],w=m,C=r||o&&i.find.TAG("*",c),_=A+=null==w?1:Math.random()||.1,E=C.length;for(c&&(m=a==y||a||c);h!==E&&null!=(u=C[h]);h++){if(o&&u){for(d=0,a||u.ownerDocument==y||(g(u),s=!b);p=e[d++];)if(p(u,a||y,s)){l.push(u);break}c&&(A=_)}n&&((u=!p&&u)&&f--,r&&v.push(u))}if(f+=h,n&&h!==f){for(d=0;p=t[d++];)p(v,k,a,s);if(r){if(f>0)for(;h--;)v[h]||k[h]||(k[h]=z.call(l));k=Ae(k)}P.apply(l,k),c&&!r&&k.length>0&&f+t.length>1&&de.uniqueSort(l)}return c&&(A=_,m=w),v};return n?me(r):r}(r,o)),a.selector=e}return a},p=de.select=function(e,t,n,o){var r,a,s,l,c,p="function"==typeof e&&e,m=!o&&u(e=p.selector||e);if(n=n||[],1===m.length){if((a=m[0]=m[0].slice(0)).length>2&&"ID"===(s=a[0]).type&&9===t.nodeType&&b&&i.relative[a[1].type]){if(!(t=(i.find.ID(s.matches[0].replace(ae,se),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(a.shift().value.length)}for(r=J.needsContext.test(e)?0:a.length;r--&&(s=a[r],!i.relative[l=s.type]);)if((c=i.find[l])&&(o=c(s.matches[0].replace(ae,se),re.test(a[0].type)&&we(t.parentNode)||t))){if(a.splice(r,1),!(e=o.length&&_e(a)))return P.apply(n,o),n;break}}return(p||d(e,m))(o,t,!b,n,!t||re.test(e)&&we(t.parentNode)||t),n},s.sortStable=E.split("").sort(D).join("")===E,s.detectDuplicates=!!h,g(),s.sortDetached=fe((function(e){return 1&e.compareDocumentPosition(y.createElement("fieldset"))})),fe((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||he("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),s.attributes&&fe((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||he("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),fe((function(e){return null==e.getAttribute("disabled")}))||he(V,(function(e,t,n){var o;if(!n)return!0===e[t]?t.toLowerCase():(o=e.getAttributeNode(t))&&o.specified?o.value:null}));var Le=r.Sizzle;de.noConflict=function(){return r.Sizzle===de&&(r.Sizzle=Le),de},void 0===(o=function(){return de}.call(t,n,t,e))||(e.exports=o)}(window)},83744:(e,t)=>{"use strict";t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[e,o]of t)n[e]=o;return n}},93150:function(e,t){var n,o,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e],n=function(e){"use strict";if(!(globalThis.chrome&&globalThis.chrome.runtime&&globalThis.chrome.runtime.id))throw new Error("This script should only be loaded in a browser extension.");if(globalThis.browser&&globalThis.browser.runtime&&globalThis.browser.runtime.id)e.exports=globalThis.browser;else{const t="The message port closed before a response was received.",n=e=>{const n={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(0===Object.keys(n).length)throw new Error("api-metadata.json has not been included in browser-polyfill");class o extends WeakMap{constructor(e,t=void 0){super(t),this.createItem=e}get(e){return this.has(e)||this.set(e,this.createItem(e)),super.get(e)}}const r=e=>e&&"object"==typeof e&&"function"==typeof e.then,a=(t,n)=>(...o)=>{e.runtime.lastError?t.reject(new Error(e.runtime.lastError.message)):n.singleCallbackArg||o.length<=1&&!1!==n.singleCallbackArg?t.resolve(o[0]):t.resolve(o)},s=e=>1==e?"argument":"arguments",i=(e,t)=>function(n,...o){if(o.length<t.minArgs)throw new Error(`Expected at least ${t.minArgs} ${s(t.minArgs)} for ${e}(), got ${o.length}`);if(o.length>t.maxArgs)throw new Error(`Expected at most ${t.maxArgs} ${s(t.maxArgs)} for ${e}(), got ${o.length}`);return new Promise(((r,s)=>{if(t.fallbackToNoCallback)try{n[e](...o,a({resolve:r,reject:s},t))}catch(a){console.warn(`${e} API method doesn't seem to support the callback parameter, falling back to call it without a callback: `,a),n[e](...o),t.fallbackToNoCallback=!1,t.noCallback=!0,r()}else t.noCallback?(n[e](...o),r()):n[e](...o,a({resolve:r,reject:s},t))}))},l=(e,t,n)=>new Proxy(t,{apply:(t,o,r)=>n.call(o,e,...r)});let c=Function.call.bind(Object.prototype.hasOwnProperty);const u=(e,t={},n={})=>{let o=Object.create(null),r={has:(t,n)=>n in e||n in o,get(r,a,s){if(a in o)return o[a];if(!(a in e))return;let d=e[a];if("function"==typeof d)if("function"==typeof t[a])d=l(e,e[a],t[a]);else if(c(n,a)){let t=i(a,n[a]);d=l(e,e[a],t)}else d=d.bind(e);else if("object"==typeof d&&null!==d&&(c(t,a)||c(n,a)))d=u(d,t[a],n[a]);else{if(!c(n,"*"))return Object.defineProperty(o,a,{configurable:!0,enumerable:!0,get:()=>e[a],set(t){e[a]=t}}),d;d=u(d,t[a],n["*"])}return o[a]=d,d},set:(t,n,r,a)=>(n in o?o[n]=r:e[n]=r,!0),defineProperty:(e,t,n)=>Reflect.defineProperty(o,t,n),deleteProperty:(e,t)=>Reflect.deleteProperty(o,t)},a=Object.create(e);return new Proxy(a,r)},d=e=>({addListener(t,n,...o){t.addListener(e.get(n),...o)},hasListener:(t,n)=>t.hasListener(e.get(n)),removeListener(t,n){t.removeListener(e.get(n))}}),p=new o((e=>"function"!=typeof e?e:function(t){const n=u(t,{},{getContent:{minArgs:0,maxArgs:0}});e(n)})),m=new o((e=>"function"!=typeof e?e:function(t,n,o){let a,s,i=!1,l=new Promise((e=>{a=function(t){i=!0,e(t)}}));try{s=e(t,n,a)}catch(e){s=Promise.reject(e)}const c=!0!==s&&r(s);if(!0!==s&&!c&&!i)return!1;const u=e=>{e.then((e=>{o(e)}),(e=>{let t;t=e&&(e instanceof Error||"string"==typeof e.message)?e.message:"An unexpected error occurred",o({__mozWebExtensionPolyfillReject__:!0,message:t})})).catch((e=>{console.error("Failed to send onMessage rejected reply",e)}))};return u(c?s:l),!0})),f=({reject:n,resolve:o},r)=>{e.runtime.lastError?e.runtime.lastError.message===t?o():n(new Error(e.runtime.lastError.message)):r&&r.__mozWebExtensionPolyfillReject__?n(new Error(r.message)):o(r)},h=(e,t,n,...o)=>{if(o.length<t.minArgs)throw new Error(`Expected at least ${t.minArgs} ${s(t.minArgs)} for ${e}(), got ${o.length}`);if(o.length>t.maxArgs)throw new Error(`Expected at most ${t.maxArgs} ${s(t.maxArgs)} for ${e}(), got ${o.length}`);return new Promise(((e,t)=>{const r=f.bind(null,{resolve:e,reject:t});o.push(r),n.sendMessage(...o)}))},g={devtools:{network:{onRequestFinished:d(p)}},runtime:{onMessage:d(m),onMessageExternal:d(m),sendMessage:h.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:h.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},y={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return n.privacy={network:{"*":y},services:{"*":y},websites:{"*":y}},u(e,g,n)};e.exports=n(chrome)}},void 0===(r="function"==typeof n?n.apply(t,o):n)||(e.exports=r)}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var a=t[o]={exports:{}};return e[o].call(a.exports,a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";function e(e,t){if(!e)return{};const{x:n,y:o,height:r,width:a}=e.getBoundingClientRect(),s={width:a+4,height:r+4,x:n-2,y:o-2};if(t){const t={};Array.from(e.attributes).forEach((({name:e,value:n})=>{"automa-el-list"!==e&&(t[e]=n)})),s.attributes=t,s.tagName=e.tagName}return s}function t(e,t=document.documentElement){const n=[e];for(;(e=e.parentNode)&&!e.isEqualNode(t);)n.push(e);return n}function o(e,t=document.body){if(!e)return null;if(""!==e.id)return`id("${e.id}")`;if(e===t)return`//${e.tagName}`;let n=0;const r=e.parentNode.childNodes;for(let t=0;t<r.length;t+=1){const a=r[t];if(a===e)return`${o(e.parentNode)}/${e.tagName}[${n+1}]`;1===a.nodeType&&a.tagName===e.tagName&&(n+=1)}return null}async function r(e){const t=e.ownerDocument.defaultView,n=t!==window.top,{width:o,height:r,x:a,y:s}=e.getBoundingClientRect(),i={x:a+o/2,y:s+r/2};if(!n)return i;try{const e=t.frameElement;let n=null;if(e)n=e.getBoundingClientRect();else if(n=await(l=t,new Promise((e=>{let t=null;const n=({data:o})=>{"automa:the-frame-rect"===o.type&&(clearTimeout(t),l.removeEventListener("message",n),e(o.frameRect))};t=setTimeout((()=>{l.removeEventListener("message",n),e(null)}),5e3),l.addEventListener("message",n),l.top.postMessage({type:"automa:get-frame"},"*")}))),!n)throw new Error("Iframe not found");return i.x+=n.x,i.y+=n.y,i}catch(e){return console.error(e),i}var l}
/**
* @vue/shared v3.4.34
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
/*! #__NO_SIDE_EFFECTS__ */
function a(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}const s={},i=[],l=()=>{},c=()=>!1,u=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),d=e=>e.startsWith("onUpdate:"),p=Object.assign,m=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},f=Object.prototype.hasOwnProperty,h=(e,t)=>f.call(e,t),g=Array.isArray,y=e=>"[object Map]"===x(e),v=e=>"[object Set]"===x(e),b=e=>"function"==typeof e,k=e=>"string"==typeof e,w=e=>"symbol"==typeof e,C=e=>null!==e&&"object"==typeof e,_=e=>(C(e)||b(e))&&b(e.then)&&b(e.catch),E=Object.prototype.toString,x=e=>E.call(e),A=e=>x(e).slice(8,-1),S=e=>"[object Object]"===x(e),T=e=>k(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,L=a(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),N=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},I=/-(\w)/g,D=N((e=>e.replace(I,((e,t)=>t?t.toUpperCase():"")))),O=/\B([A-Z])/g,B=N((e=>e.replace(O,"-$1").toLowerCase())),z=N((e=>e.charAt(0).toUpperCase()+e.slice(1))),F=N((e=>e?`on${z(e)}`:"")),P=(e,t)=>!Object.is(e,t),M=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},R=(e,t,n,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},V=e=>{const t=parseFloat(e);return isNaN(t)?e:t},U=e=>{const t=k(e)?Number(e):NaN;return isNaN(t)?e:t};let j;const K=()=>j||(j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{});function $(e){if(g(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=k(o)?G(o):$(o);if(r)for(const e in r)t[e]=r[e]}return t}if(k(e)||C(e))return e}const H=/;(?![^(]*\))/g,W=/:([^]+)/,q=/\/\*[^]*?\*\//g;function G(e){const t={};return e.replace(q,"").split(H).forEach((e=>{if(e){const n=e.split(W);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function Y(e){let t="";if(k(e))t=e;else if(g(e))for(let n=0;n<e.length;n++){const o=Y(e[n]);o&&(t+=o+" ")}else if(C(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function X(e){if(!e)return null;let{class:t,style:n}=e;return t&&!k(t)&&(e.class=Y(t)),n&&(e.style=$(n)),e}const Z="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",J=a(Z);function Q(e){return!!e||""===e}const ee=e=>!(!e||!0!==e.__v_isRef),te=e=>k(e)?e:null==e?"":g(e)||C(e)&&(e.toString===E||!b(e.toString))?ee(e)?te(e.value):JSON.stringify(e,ne,2):String(e),ne=(e,t)=>ee(t)?ne(e,t.value):y(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],o)=>(e[oe(t,o)+" =>"]=n,e)),{})}:v(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>oe(e)))}:w(t)?oe(t):!C(t)||g(t)||S(t)?t:String(t),oe=(e,t="")=>{var n;return w(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};let re,ae;class se{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=re,!e&&re&&(this.index=(re.scopes||(re.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=re;try{return re=this,e()}finally{re=t}}else 0}on(){re=this}off(){re=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}function ie(e,t=re){t&&t.active&&t.effects.push(e)}class le{constructor(e,t,n,o){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,ie(this,o)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,ge();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(ce(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),ye()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=me,t=ae;try{return me=!0,ae=this,this._runnings++,ue(this),this.fn()}finally{de(this),this._runnings--,ae=t,me=e}}stop(){this.active&&(ue(this),de(this),this.onStop&&this.onStop(),this.active=!1)}}function ce(e){return e.value}function ue(e){e._trackId++,e._depsLength=0}function de(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)pe(e.deps[t],e);e.deps.length=e._depsLength}}function pe(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}let me=!0,fe=0;const he=[];function ge(){he.push(me),me=!1}function ye(){const e=he.pop();me=void 0===e||e}function ve(){fe++}function be(){for(fe--;!fe&&we.length;)we.shift()()}function ke(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&pe(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const we=[];function Ce(e,t,n){ve();for(const n of e.keys()){let o;n._dirtyLevel<t&&(null!=o?o:o=e.get(n)===n._trackId)&&(n._shouldSchedule||(n._shouldSchedule=0===n._dirtyLevel),n._dirtyLevel=t),n._shouldSchedule&&(null!=o?o:o=e.get(n)===n._trackId)&&(n.trigger(),n._runnings&&!n.allowRecurse||2===n._dirtyLevel||(n._shouldSchedule=!1,n.scheduler&&we.push(n.scheduler)))}be()}const _e=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Ee=new WeakMap,xe=Symbol(""),Ae=Symbol("");function Se(e,t,n){if(me&&ae){let t=Ee.get(e);t||Ee.set(e,t=new Map);let o=t.get(n);o||t.set(n,o=_e((()=>t.delete(n)))),ke(ae,o)}}function Te(e,t,n,o,r,a){const s=Ee.get(e);if(!s)return;let i=[];if("clear"===t)i=[...s.values()];else if("length"===n&&g(e)){const e=Number(o);s.forEach(((t,n)=>{("length"===n||!w(n)&&n>=e)&&i.push(t)}))}else switch(void 0!==n&&i.push(s.get(n)),t){case"add":g(e)?T(n)&&i.push(s.get("length")):(i.push(s.get(xe)),y(e)&&i.push(s.get(Ae)));break;case"delete":g(e)||(i.push(s.get(xe)),y(e)&&i.push(s.get(Ae)));break;case"set":y(e)&&i.push(s.get(xe))}ve();for(const e of i)e&&Ce(e,4);be()}const Le=a("__proto__,__v_isRef,__isVue"),Ne=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(w)),Ie=De();function De(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=bt(this);for(let e=0,t=this.length;e<t;e++)Se(n,0,e+"");const o=n[t](...e);return-1===o||!1===o?n[t](...e.map(bt)):o}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){ge(),ve();const n=bt(this)[t].apply(this,e);return be(),ye(),n}})),e}function Oe(e){w(e)||(e=String(e));const t=bt(this);return Se(t,0,e),t.hasOwnProperty(e)}class Be{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const o=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(o?r?ut:ct:r?lt:it).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const a=g(e);if(!o){if(a&&h(Ie,t))return Reflect.get(Ie,t,n);if("hasOwnProperty"===t)return Oe}const s=Reflect.get(e,t,n);return(w(t)?Ne.has(t):Le(t))?s:(o||Se(e,0,t),r?s:At(s)?a&&T(t)?s:s.value:C(s)?o?mt(s):dt(s):s)}}class ze extends Be{constructor(e=!1){super(!1,e)}set(e,t,n,o){let r=e[t];if(!this._isShallow){const t=gt(r);if(yt(n)||gt(n)||(r=bt(r),n=bt(n)),!g(e)&&At(r)&&!At(n))return!t&&(r.value=n,!0)}const a=g(e)&&T(t)?Number(t)<e.length:h(e,t),s=Reflect.set(e,t,n,o);return e===bt(o)&&(a?P(n,r)&&Te(e,"set",t,n):Te(e,"add",t,n)),s}deleteProperty(e,t){const n=h(e,t),o=(e[t],Reflect.deleteProperty(e,t));return o&&n&&Te(e,"delete",t,void 0),o}has(e,t){const n=Reflect.has(e,t);return w(t)&&Ne.has(t)||Se(e,0,t),n}ownKeys(e){return Se(e,0,g(e)?"length":xe),Reflect.ownKeys(e)}}class Fe extends Be{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const Pe=new ze,Me=new Fe,Re=new ze(!0),Ve=e=>e,Ue=e=>Reflect.getPrototypeOf(e);function je(e,t,n=!1,o=!1){const r=bt(e=e.__v_raw),a=bt(t);n||(P(t,a)&&Se(r,0,t),Se(r,0,a));const{has:s}=Ue(r),i=o?Ve:n?wt:kt;return s.call(r,t)?i(e.get(t)):s.call(r,a)?i(e.get(a)):void(e!==r&&e.get(t))}function Ke(e,t=!1){const n=this.__v_raw,o=bt(n),r=bt(e);return t||(P(e,r)&&Se(o,0,e),Se(o,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function $e(e,t=!1){return e=e.__v_raw,!t&&Se(bt(e),0,xe),Reflect.get(e,"size",e)}function He(e,t=!1){t||yt(e)||gt(e)||(e=bt(e));const n=bt(this);return Ue(n).has.call(n,e)||(n.add(e),Te(n,"add",e,e)),this}function We(e,t,n=!1){n||yt(t)||gt(t)||(t=bt(t));const o=bt(this),{has:r,get:a}=Ue(o);let s=r.call(o,e);s||(e=bt(e),s=r.call(o,e));const i=a.call(o,e);return o.set(e,t),s?P(t,i)&&Te(o,"set",e,t):Te(o,"add",e,t),this}function qe(e){const t=bt(this),{has:n,get:o}=Ue(t);let r=n.call(t,e);r||(e=bt(e),r=n.call(t,e));o&&o.call(t,e);const a=t.delete(e);return r&&Te(t,"delete",e,void 0),a}function Ge(){const e=bt(this),t=0!==e.size,n=e.clear();return t&&Te(e,"clear",void 0,void 0),n}function Ye(e,t){return function(n,o){const r=this,a=r.__v_raw,s=bt(a),i=t?Ve:e?wt:kt;return!e&&Se(s,0,xe),a.forEach(((e,t)=>n.call(o,i(e),i(t),r)))}}function Xe(e,t,n){return function(...o){const r=this.__v_raw,a=bt(r),s=y(a),i="entries"===e||e===Symbol.iterator&&s,l="keys"===e&&s,c=r[e](...o),u=n?Ve:t?wt:kt;return!t&&Se(a,0,l?Ae:xe),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:i?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function Ze(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function Je(){const e={get(e){return je(this,e)},get size(){return $e(this)},has:Ke,add:He,set:We,delete:qe,clear:Ge,forEach:Ye(!1,!1)},t={get(e){return je(this,e,!1,!0)},get size(){return $e(this)},has:Ke,add(e){return He.call(this,e,!0)},set(e,t){return We.call(this,e,t,!0)},delete:qe,clear:Ge,forEach:Ye(!1,!0)},n={get(e){return je(this,e,!0)},get size(){return $e(this,!0)},has(e){return Ke.call(this,e,!0)},add:Ze("add"),set:Ze("set"),delete:Ze("delete"),clear:Ze("clear"),forEach:Ye(!0,!1)},o={get(e){return je(this,e,!0,!0)},get size(){return $e(this,!0)},has(e){return Ke.call(this,e,!0)},add:Ze("add"),set:Ze("set"),delete:Ze("delete"),clear:Ze("clear"),forEach:Ye(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=Xe(r,!1,!1),n[r]=Xe(r,!0,!1),t[r]=Xe(r,!1,!0),o[r]=Xe(r,!0,!0)})),[e,n,t,o]}const[Qe,et,tt,nt]=Je();function ot(e,t){const n=t?e?nt:tt:e?et:Qe;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(h(n,o)&&o in t?n:t,o,r)}const rt={get:ot(!1,!1)},at={get:ot(!1,!0)},st={get:ot(!0,!1)};const it=new WeakMap,lt=new WeakMap,ct=new WeakMap,ut=new WeakMap;function dt(e){return gt(e)?e:ft(e,!1,Pe,rt,it)}function pt(e){return ft(e,!1,Re,at,lt)}function mt(e){return ft(e,!0,Me,st,ct)}function ft(e,t,n,o,r){if(!C(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const a=r.get(e);if(a)return a;const s=(i=e).__v_skip||!Object.isExtensible(i)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(A(i));var i;if(0===s)return e;const l=new Proxy(e,2===s?o:n);return r.set(e,l),l}function ht(e){return gt(e)?ht(e.__v_raw):!(!e||!e.__v_isReactive)}function gt(e){return!(!e||!e.__v_isReadonly)}function yt(e){return!(!e||!e.__v_isShallow)}function vt(e){return!!e&&!!e.__v_raw}function bt(e){const t=e&&e.__v_raw;return t?bt(t):e}const kt=e=>C(e)?dt(e):e,wt=e=>C(e)?mt(e):e;class Ct{constructor(e,t,n,o){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new le((()=>e(this._value)),(()=>xt(this,2===this.effect._dirtyLevel?2:3))),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=bt(this);return e._cacheable&&!e.effect.dirty||!P(e._value,e._value=e.effect.run())||xt(e,4),Et(e),e.effect._dirtyLevel>=2&&xt(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function _t(e,t,n=!1){let o,r;const a=b(e);a?(o=e,r=l):(o=e.get,r=e.set);return new Ct(o,r,a||!r,n)}function Et(e){var t;me&&ae&&(e=bt(e),ke(ae,null!=(t=e.dep)?t:e.dep=_e((()=>e.dep=void 0),e instanceof Ct?e:void 0)))}function xt(e,t=4,n,o){const r=(e=bt(e)).dep;r&&Ce(r,t)}function At(e){return!(!e||!0!==e.__v_isRef)}function St(e){return Lt(e,!1)}function Tt(e){return Lt(e,!0)}function Lt(e,t){return At(e)?e:new Nt(e,t)}class Nt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:bt(e),this._value=t?e:kt(e)}get value(){return Et(this),this._value}set value(e){const t=this.__v_isShallow||yt(e)||gt(e);if(e=t?e:bt(e),P(e,this._rawValue)){this._rawValue;this._rawValue=e,this._value=t?e:kt(e),xt(this,4)}}}function It(e){return At(e)?e.value:e}const Dt={get:(e,t,n)=>It(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return At(r)&&!At(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Ot(e){return ht(e)?e:new Proxy(e,Dt)}function Bt(e){const t=g(e)?new Array(e.length):{};for(const n in e)t[n]=Mt(e,n);return t}class zt{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const n=Ee.get(e);return n&&n.get(t)}(bt(this._object),this._key)}}class Ft{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Pt(e,t,n){return At(e)?e:b(e)?new Ft(e):C(e)&&arguments.length>1?Mt(e,t,n):St(e)}function Mt(e,t,n){const o=e[t];return At(o)?o:new zt(e,t,n)}function Rt(e,t,n,o){try{return o?e(...o):e()}catch(e){Ut(e,t,n)}}function Vt(e,t,n,o){if(b(e)){const r=Rt(e,t,n,o);return r&&_(r)&&r.catch((e=>{Ut(e,t,n)})),r}if(g(e)){const r=[];for(let a=0;a<e.length;a++)r.push(Vt(e[a],t,n,o));return r}}function Ut(e,t,n,o=!0){t&&t.vnode;if(t){let o=t.parent;const r=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,a))return;o=o.parent}const s=t.appContext.config.errorHandler;if(s)return ge(),Rt(s,null,10,[e,r,a]),void ye()}!function(e){console.error(e)}(e,0,0,o)}let jt=!1,Kt=!1;const $t=[];let Ht=0;const Wt=[];let qt=null,Gt=0;const Yt=Promise.resolve();let Xt=null;function Zt(e){const t=Xt||Yt;return e?t.then(this?e.bind(this):e):t}function Jt(e){$t.length&&$t.includes(e,jt&&e.allowRecurse?Ht+1:Ht)||(null==e.id?$t.push(e):$t.splice(function(e){let t=Ht+1,n=$t.length;for(;t<n;){const o=t+n>>>1,r=$t[o],a=on(r);a<e||a===e&&r.pre?t=o+1:n=o}return t}(e.id),0,e),Qt())}function Qt(){jt||Kt||(Kt=!0,Xt=Yt.then(an))}function en(e){g(e)?Wt.push(...e):qt&&qt.includes(e,e.allowRecurse?Gt+1:Gt)||Wt.push(e),Qt()}function tn(e,t,n=(jt?Ht+1:0)){for(0;n<$t.length;n++){const t=$t[n];if(t&&t.pre){if(e&&t.id!==e.uid)continue;0,$t.splice(n,1),n--,t()}}}function nn(e){if(Wt.length){const e=[...new Set(Wt)].sort(((e,t)=>on(e)-on(t)));if(Wt.length=0,qt)return void qt.push(...e);for(qt=e,Gt=0;Gt<qt.length;Gt++){const e=qt[Gt];0,!1!==e.active&&e()}qt=null,Gt=0}}const on=e=>null==e.id?1/0:e.id,rn=(e,t)=>{const n=on(e)-on(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function an(e){Kt=!1,jt=!0,$t.sort(rn);try{for(Ht=0;Ht<$t.length;Ht++){const e=$t[Ht];e&&!1!==e.active&&Rt(e,e.i,e.i?15:14)}}finally{Ht=0,$t.length=0,nn(),jt=!1,Xt=null,($t.length||Wt.length)&&an(e)}}let sn=null,ln=null;function cn(e){const t=sn;return sn=e,ln=e&&e.type.__scopeId||null,t}function un(e,t=sn,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&jr(-1);const r=cn(t);let a;try{a=e(...n)}finally{cn(r),o._d&&jr(1)}return a};return o._n=!0,o._c=!0,o._d=!0,o}function dn(e,t){if(null===sn)return e;const n=Aa(sn),o=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[r,a,i,l=s]=t[e];r&&(b(r)&&(r={mounted:r,updated:r}),r.deep&&wr(a),o.push({dir:r,instance:n,value:a,oldValue:void 0,arg:i,modifiers:l}))}return e}function pn(e,t,n,o){const r=e.dirs,a=t&&t.dirs;for(let s=0;s<r.length;s++){const i=r[s];a&&(i.oldValue=a[s].value);let l=i.dir[o];l&&(ge(),Vt(l,n,8,[e.el,i,e,t]),ye())}}const mn=Symbol("_leaveCb"),fn=Symbol("_enterCb");function hn(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Vn((()=>{e.isMounted=!0})),Kn((()=>{e.isUnmounting=!0})),e}const gn=[Function,Array],yn={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:gn,onEnter:gn,onAfterEnter:gn,onEnterCancelled:gn,onBeforeLeave:gn,onLeave:gn,onAfterLeave:gn,onLeaveCancelled:gn,onBeforeAppear:gn,onAppear:gn,onAfterAppear:gn,onAppearCancelled:gn},vn=e=>{const t=e.subTree;return t.component?vn(t.component):t},bn={name:"BaseTransition",props:yn,setup(e,{slots:t}){const n=pa(),o=hn();return()=>{const r=t.default&&An(t.default(),!0);if(!r||!r.length)return;let a=r[0];if(r.length>1){let e=!1;for(const t of r)if(t.type!==zr){0,a=t,e=!0;break}}const s=bt(e),{mode:i}=s;if(o.isLeaving)return _n(a);const l=En(a);if(!l)return _n(a);let c=Cn(l,s,o,n,(e=>c=e));xn(l,c);const u=n.subTree,d=u&&En(u);if(d&&d.type!==zr&&!qr(l,d)&&vn(n).type!==zr){const e=Cn(d,s,o,n);if(xn(d,e),"out-in"===i&&l.type!==zr)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},_n(a);"in-out"===i&&l.type!==zr&&(e.delayLeave=(e,t,n)=>{wn(o,d)[String(d.key)]=d,e[mn]=()=>{t(),e[mn]=void 0,delete c.delayedLeave},c.delayedLeave=n})}return a}}},kn=bn;function wn(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Cn(e,t,n,o,r){const{appear:a,mode:s,persisted:i=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:m,onAfterLeave:f,onLeaveCancelled:h,onBeforeAppear:y,onAppear:v,onAfterAppear:b,onAppearCancelled:k}=t,w=String(e.key),C=wn(n,e),_=(e,t)=>{e&&Vt(e,o,9,t)},E=(e,t)=>{const n=t[1];_(e,t),g(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},x={mode:s,persisted:i,beforeEnter(t){let o=l;if(!n.isMounted){if(!a)return;o=y||l}t[mn]&&t[mn](!0);const r=C[w];r&&qr(e,r)&&r.el[mn]&&r.el[mn](),_(o,[t])},enter(e){let t=c,o=u,r=d;if(!n.isMounted){if(!a)return;t=v||c,o=b||u,r=k||d}let s=!1;const i=e[fn]=t=>{s||(s=!0,_(t?r:o,[e]),x.delayedLeave&&x.delayedLeave(),e[fn]=void 0)};t?E(t,[e,i]):i()},leave(t,o){const r=String(e.key);if(t[fn]&&t[fn](!0),n.isUnmounting)return o();_(p,[t]);let a=!1;const s=t[mn]=n=>{a||(a=!0,o(),_(n?h:f,[t]),t[mn]=void 0,C[r]===e&&delete C[r])};C[r]=e,m?E(m,[t,s]):s()},clone(e){const a=Cn(e,t,n,o,r);return r&&r(a),a}};return x}function _n(e){if(Ln(e))return(e=ea(e)).children=null,e}function En(e){if(!Ln(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&b(n.default))return n.default()}}function xn(e,t){6&e.shapeFlag&&e.component?xn(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function An(e,t=!1,n){let o=[],r=0;for(let a=0;a<e.length;a++){let s=e[a];const i=null==n?s.key:String(n)+String(null!=s.key?s.key:a);s.type===Or?(128&s.patchFlag&&r++,o=o.concat(An(s.children,t,i))):(t||s.type!==zr)&&o.push(null!=i?ea(s,{key:i}):s)}if(r>1)for(let e=0;e<o.length;e++)o[e].patchFlag=-2;return o}
/*! #__NO_SIDE_EFFECTS__ */function Sn(e,t){return b(e)?(()=>p({name:e.name},t,{setup:e}))():e}const Tn=e=>!!e.type.__asyncLoader
/*! #__NO_SIDE_EFFECTS__ */;const Ln=e=>e.type.__isKeepAlive;RegExp,RegExp;function Nn(e,t){return g(e)?e.some((e=>Nn(e,t))):k(e)?e.split(",").includes(t):"[object RegExp]"===x(e)&&e.test(t)}function In(e,t){On(e,"a",t)}function Dn(e,t){On(e,"da",t)}function On(e,t,n=da){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Pn(t,o,n),n){let e=n.parent;for(;e&&e.parent;)Ln(e.parent.vnode)&&Bn(o,t,n,e),e=e.parent}}function Bn(e,t,n,o){const r=Pn(t,e,o,!0);$n((()=>{m(o[t],r)}),n)}function zn(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Fn(e){return 128&e.shapeFlag?e.ssContent:e}function Pn(e,t,n=da,o=!1){if(n){const r=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...o)=>{ge();const r=ha(n),a=Vt(t,n,e,o);return r(),ye(),a});return o?r.unshift(a):r.push(a),a}}const Mn=e=>(t,n=da)=>{ka&&"sp"!==e||Pn(e,((...e)=>t(...e)),n)},Rn=Mn("bm"),Vn=Mn("m"),Un=Mn("bu"),jn=Mn("u"),Kn=Mn("bum"),$n=Mn("um"),Hn=Mn("sp"),Wn=Mn("rtg"),qn=Mn("rtc");function Gn(e,t=da){Pn("ec",e,t)}const Yn="components";function Xn(e,t){return eo(Yn,e,!0,t)||e}const Zn=Symbol.for("v-ndc");function Jn(e){return k(e)?eo(Yn,e,!1)||e:e||Zn}function Qn(e){return eo("directives",e)}function eo(e,t,n=!0,o=!1){const r=sn||da;if(r){const n=r.type;if(e===Yn){const e=Sa(n,!1);if(e&&(e===t||e===D(t)||e===z(D(t))))return n}const a=to(r[e]||n[e],t)||to(r.appContext[e],t);return!a&&o?n:a}}function to(e,t){return e&&(e[t]||e[D(t)]||e[z(D(t))])}function no(e,t,n,o){let r;const a=n&&n[o];if(g(e)||k(e)){r=new Array(e.length);for(let n=0,o=e.length;n<o;n++)r[n]=t(e[n],n,void 0,a&&a[n])}else if("number"==typeof e){0,r=new Array(e);for(let n=0;n<e;n++)r[n]=t(n+1,n,void 0,a&&a[n])}else if(C(e))if(e[Symbol.iterator])r=Array.from(e,((e,n)=>t(e,n,void 0,a&&a[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,s=n.length;o<s;o++){const s=n[o];r[o]=t(e[s],s,o,a&&a[o])}}else r=[];return n&&(n[o]=r),r}function oo(e,t,n={},o,r){if(sn.isCE||sn.parent&&Tn(sn.parent)&&sn.parent.isCE)return"default"!==t&&(n.name=t),Zr("slot",n,o&&o());let a=e[t];a&&a._c&&(a._d=!1),Rr();const s=a&&ro(a(n)),i=Hr(Or,{key:(n.key||s&&s.key||`_${t}`)+(!s&&o?"_fb":"")},s||(o?o():[]),s&&1===e._?64:-2);return!r&&i.scopeId&&(i.slotScopeIds=[i.scopeId+"-s"]),a&&a._c&&(a._d=!0),i}function ro(e){return e.some((e=>!Wr(e)||e.type!==zr&&!(e.type===Or&&!ro(e.children))))?e:null}function ao(e,t){const n={};for(const o in e)n[t&&/[A-Z]/.test(o)?`on:${o}`:F(o)]=e[o];return n}const so=e=>e?ya(e)?Aa(e):so(e.parent):null,io=p(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=>so(e.parent),$root:e=>so(e.root),$emit:e=>e.emit,$options:e=>yo(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Jt(e.update)}),$nextTick:e=>e.n||(e.n=Zt.bind(e.proxy)),$watch:e=>br.bind(e)}),lo=(e,t)=>e!==s&&!e.__isScriptSetup&&h(e,t),co={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:o,data:r,props:a,accessCache:i,type:l,appContext:c}=e;let u;if("$"!==t[0]){const l=i[t];if(void 0!==l)switch(l){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return a[t]}else{if(lo(o,t))return i[t]=1,o[t];if(r!==s&&h(r,t))return i[t]=2,r[t];if((u=e.propsOptions[0])&&h(u,t))return i[t]=3,a[t];if(n!==s&&h(n,t))return i[t]=4,n[t];mo&&(i[t]=0)}}const d=io[t];let p,m;return d?("$attrs"===t&&Se(e.attrs,0,""),d(e)):(p=l.__cssModules)&&(p=p[t])?p:n!==s&&h(n,t)?(i[t]=4,n[t]):(m=c.config.globalProperties,h(m,t)?m[t]:void 0)},set({_:e},t,n){const{data:o,setupState:r,ctx:a}=e;return lo(r,t)?(r[t]=n,!0):o!==s&&h(o,t)?(o[t]=n,!0):!h(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(a[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:a}},i){let l;return!!n[i]||e!==s&&h(e,i)||lo(t,i)||(l=a[0])&&h(l,i)||h(o,i)||h(io,i)||h(r.config.globalProperties,i)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:h(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function uo(){const e=pa();return e.setupContext||(e.setupContext=xa(e))}function po(e){return g(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}let mo=!0;function fo(e){const t=yo(e),n=e.proxy,o=e.ctx;mo=!1,t.beforeCreate&&ho(t.beforeCreate,e,"bc");const{data:r,computed:a,methods:s,watch:i,provide:c,inject:u,created:d,beforeMount:p,mounted:m,beforeUpdate:f,updated:h,activated:y,deactivated:v,beforeDestroy:k,beforeUnmount:w,destroyed:_,unmounted:E,render:x,renderTracked:A,renderTriggered:S,errorCaptured:T,serverPrefetch:L,expose:N,inheritAttrs:I,components:D,directives:O,filters:B}=t;if(u&&function(e,t){g(e)&&(e=wo(e));for(const n in e){const o=e[n];let r;r=C(o)?"default"in o?No(o.from||n,o.default,!0):No(o.from||n):No(o),At(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(u,o,null),s)for(const e in s){const t=s[e];b(t)&&(o[e]=t.bind(n))}if(r){0;const t=r.call(n,n);0,C(t)&&(e.data=dt(t))}if(mo=!0,a)for(const e in a){const t=a[e],r=b(t)?t.bind(n,n):b(t.get)?t.get.bind(n,n):l;0;const s=!b(t)&&b(t.set)?t.set.bind(n):l,i=La({get:r,set:s});Object.defineProperty(o,e,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(i)for(const e in i)go(i[e],o,n,e);if(c){const e=b(c)?c.call(n):c;Reflect.ownKeys(e).forEach((t=>{Lo(t,e[t])}))}function z(e,t){g(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&ho(d,e,"c"),z(Rn,p),z(Vn,m),z(Un,f),z(jn,h),z(In,y),z(Dn,v),z(Gn,T),z(qn,A),z(Wn,S),z(Kn,w),z($n,E),z(Hn,L),g(N))if(N.length){const t=e.exposed||(e.exposed={});N.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});x&&e.render===l&&(e.render=x),null!=I&&(e.inheritAttrs=I),D&&(e.components=D),O&&(e.directives=O)}function ho(e,t,n){Vt(g(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function go(e,t,n,o){const r=o.includes(".")?kr(n,o):()=>n[o];if(k(e)){const n=t[e];b(n)&&yr(r,n)}else if(b(e))yr(r,e.bind(n));else if(C(e))if(g(e))e.forEach((e=>go(e,t,n,o)));else{const o=b(e.handler)?e.handler.bind(n):t[e.handler];b(o)&&yr(r,o,e)}else 0}function yo(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:a,config:{optionMergeStrategies:s}}=e.appContext,i=a.get(t);let l;return i?l=i:r.length||n||o?(l={},r.length&&r.forEach((e=>vo(l,e,s,!0))),vo(l,t,s)):l=t,C(t)&&a.set(t,l),l}function vo(e,t,n,o=!1){const{mixins:r,extends:a}=t;a&&vo(e,a,n,!0),r&&r.forEach((t=>vo(e,t,n,!0)));for(const r in t)if(o&&"expose"===r);else{const o=bo[r]||n&&n[r];e[r]=o?o(e[r],t[r]):t[r]}return e}const bo={data:ko,props:Eo,emits:Eo,methods:_o,computed:_o,beforeCreate:Co,created:Co,beforeMount:Co,mounted:Co,beforeUpdate:Co,updated:Co,beforeDestroy:Co,beforeUnmount:Co,destroyed:Co,unmounted:Co,activated:Co,deactivated:Co,errorCaptured:Co,serverPrefetch:Co,components:_o,directives:_o,watch:function(e,t){if(!e)return t;if(!t)return e;const n=p(Object.create(null),e);for(const o in t)n[o]=Co(e[o],t[o]);return n},provide:ko,inject:function(e,t){return _o(wo(e),wo(t))}};function ko(e,t){return t?e?function(){return p(b(e)?e.call(this,this):e,b(t)?t.call(this,this):t)}:t:e}function wo(e){if(g(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Co(e,t){return e?[...new Set([].concat(e,t))]:t}function _o(e,t){return e?p(Object.create(null),e,t):t}function Eo(e,t){return e?g(e)&&g(t)?[...new Set([...e,...t])]:p(Object.create(null),po(e),po(null!=t?t:{})):t}function xo(){return{app:null,config:{isNativeTag:c,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 Ao=0;function So(e,t){return function(n,o=null){b(n)||(n=p({},n)),null==o||C(o)||(o=null);const r=xo(),a=new WeakSet;let s=!1;const i=r.app={_uid:Ao++,_component:n,_props:o,_container:null,_context:r,_instance:null,version:Ia,get config(){return r.config},set config(e){0},use:(e,...t)=>(a.has(e)||(e&&b(e.install)?(a.add(e),e.install(i,...t)):b(e)&&(a.add(e),e(i,...t))),i),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),i),component:(e,t)=>t?(r.components[e]=t,i):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,i):r.directives[e],mount(a,l,c){if(!s){0;const u=Zr(n,o);return u.appContext=r,!0===c?c="svg":!1===c&&(c=void 0),l&&t?t(u,a):e(u,a,c),s=!0,i._container=a,a.__vue_app__=i,Aa(u.component)}},unmount(){s&&(e(null,i._container),delete i._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,i),runWithContext(e){const t=To;To=i;try{return e()}finally{To=t}}};return i}}let To=null;function Lo(e,t){if(da){let n=da.provides;const o=da.parent&&da.parent.provides;o===n&&(n=da.provides=Object.create(o)),n[e]=t}else 0}function No(e,t,n=!1){const o=da||sn;if(o||To){const r=o?null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:To._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&b(t)?t.call(o&&o.proxy):t}else 0}const Io={},Do=()=>Object.create(Io),Oo=e=>Object.getPrototypeOf(e)===Io;function Bo(e,t,n,o){const[r,a]=e.propsOptions;let i,l=!1;if(t)for(let s in t){if(L(s))continue;const c=t[s];let u;r&&h(r,u=D(s))?a&&a.includes(u)?(i||(i={}))[u]=c:n[u]=c:xr(e.emitsOptions,s)||s in o&&c===o[s]||(o[s]=c,l=!0)}if(a){const t=bt(n),o=i||s;for(let s=0;s<a.length;s++){const i=a[s];n[i]=zo(r,t,i,o[i],e,!h(o,i))}}return l}function zo(e,t,n,o,r,a){const s=e[n];if(null!=s){const e=h(s,"default");if(e&&void 0===o){const e=s.default;if(s.type!==Function&&!s.skipFactory&&b(e)){const{propsDefaults:a}=r;if(n in a)o=a[n];else{const s=ha(r);o=a[n]=e.call(null,t),s()}}else o=e}s[0]&&(a&&!e?o=!1:!s[1]||""!==o&&o!==B(n)||(o=!0))}return o}const Fo=new WeakMap;function Po(e,t,n=!1){const o=n?Fo:t.propsCache,r=o.get(e);if(r)return r;const a=e.props,l={},c=[];let u=!1;if(!b(e)){const o=e=>{u=!0;const[n,o]=Po(e,t,!0);p(l,n),o&&c.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!a&&!u)return C(e)&&o.set(e,i),i;if(g(a))for(let e=0;e<a.length;e++){0;const t=D(a[e]);Mo(t)&&(l[t]=s)}else if(a){0;for(const e in a){const t=D(e);if(Mo(t)){const n=a[e],o=l[t]=g(n)||b(n)?{type:n}:p({},n);if(o){const e=Uo(Boolean,o.type),n=Uo(String,o.type);o[0]=e>-1,o[1]=n<0||e<n,(e>-1||h(o,"default"))&&c.push(t)}}}}const d=[l,c];return C(e)&&o.set(e,d),d}function Mo(e){return"$"!==e[0]&&!L(e)}function Ro(e){if(null===e)return"null";if("function"==typeof e)return e.name||"";if("object"==typeof e){return e.constructor&&e.constructor.name||""}return""}function Vo(e,t){return Ro(e)===Ro(t)}function Uo(e,t){return g(t)?t.findIndex((t=>Vo(t,e))):b(t)&&Vo(t,e)?0:-1}const jo=e=>"_"===e[0]||"$stable"===e,Ko=e=>g(e)?e.map(oa):[oa(e)],$o=(e,t,n)=>{if(t._n)return t;const o=un(((...e)=>Ko(t(...e))),n);return o._c=!1,o},Ho=(e,t,n)=>{const o=e._ctx;for(const n in e){if(jo(n))continue;const r=e[n];if(b(r))t[n]=$o(0,r,o);else if(null!=r){0;const e=Ko(r);t[n]=()=>e}}},Wo=(e,t)=>{const n=Ko(t);e.slots.default=()=>n},qo=(e,t,n)=>{for(const o in t)(n||"_"!==o)&&(e[o]=t[o])},Go=(e,t,n)=>{const o=e.slots=Do();if(32&e.vnode.shapeFlag){const e=t._;e?(qo(o,t,n),n&&R(o,"_",e,!0)):Ho(t,o)}else t&&Wo(e,t)},Yo=(e,t,n)=>{const{vnode:o,slots:r}=e;let a=!0,i=s;if(32&o.shapeFlag){const e=t._;e?n&&1===e?a=!1:qo(r,t,n):(a=!t.$stable,Ho(t,r)),i=t}else t&&(Wo(e,t),i={default:1});if(a)for(const e in r)jo(e)||null!=i[e]||delete r[e]};function Xo(e,t,n,o,r=!1){if(g(e))return void e.forEach(((e,a)=>Xo(e,t&&(g(t)?t[a]:t),n,o,r)));if(Tn(o)&&!r)return;const a=4&o.shapeFlag?Aa(o.component):o.el,i=r?null:a,{i:l,r:c}=e;const u=t&&t.r,d=l.refs===s?l.refs={}:l.refs,p=l.setupState;if(null!=u&&u!==c&&(k(u)?(d[u]=null,h(p,u)&&(p[u]=null)):At(u)&&(u.value=null)),b(c))Rt(c,l,12,[i,d]);else{const t=k(c),o=At(c);if(t||o){const s=()=>{if(e.f){const n=t?h(p,c)?p[c]:d[c]:c.value;r?g(n)&&m(n,a):g(n)?n.includes(a)||n.push(a):t?(d[c]=[a],h(p,c)&&(p[c]=d[c])):(c.value=[a],e.k&&(d[e.k]=c.value))}else t?(d[c]=i,h(p,c)&&(p[c]=i)):o&&(c.value=i,e.k&&(d[e.k]=i))};i?(s.id=-1,sr(s,n)):s()}else 0}}const Zo=Symbol("_vte"),Jo=e=>e&&(e.disabled||""===e.disabled),Qo=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,er=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,tr=(e,t)=>{const n=e&&e.to;if(k(n)){if(t){return t(n)}return null}return n},nr={name:"Teleport",__isTeleport:!0,process(e,t,n,o,r,a,s,i,l,c){const{mc:u,pc:d,pbc:p,o:{insert:m,querySelector:f,createText:h,createComment:g}}=c,y=Jo(t.props);let{shapeFlag:v,children:b,dynamicChildren:k}=t;if(null==e){const e=t.el=h(""),c=t.anchor=h(""),d=t.target=tr(t.props,f),p=t.targetStart=h(""),g=t.targetAnchor=h("");m(e,n,o),m(c,n,o),p[Zo]=g,d&&(m(p,d),m(g,d),"svg"===s||Qo(d)?s="svg":("mathml"===s||er(d))&&(s="mathml"));const k=(e,t)=>{16&v&&u(b,e,t,r,a,s,i,l)};y?k(n,c):d&&k(d,g)}else{t.el=e.el,t.targetStart=e.targetStart;const o=t.anchor=e.anchor,u=t.target=e.target,m=t.targetAnchor=e.targetAnchor,h=Jo(e.props),g=h?n:u,v=h?o:m;if("svg"===s||Qo(u)?s="svg":("mathml"===s||er(u))&&(s="mathml"),k?(p(e.dynamicChildren,k,g,r,a,s,i),dr(e,t,!0)):l||d(e,t,g,v,r,a,s,i,!1),y)h?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):or(t,n,o,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=tr(t.props,f);e&&or(t,e,null,c,0)}else h&&or(t,u,m,c,1)}ar(t)},remove(e,t,n,{um:o,o:{remove:r}},a){const{shapeFlag:s,children:i,anchor:l,targetStart:c,targetAnchor:u,target:d,props:p}=e;if(d&&(r(c),r(u)),a&&r(l),16&s){const e=a||!Jo(p);for(let r=0;r<i.length;r++){const a=i[r];o(a,t,n,e,!!a.dynamicChildren)}}},move:or,hydrate:function(e,t,n,o,r,a,{o:{nextSibling:s,parentNode:i,querySelector:l}},c){const u=t.target=tr(t.props,l);if(u){const l=u._lpa||u.firstChild;if(16&t.shapeFlag)if(Jo(t.props))t.anchor=c(s(e),t,i(e),n,o,r,a),t.targetAnchor=l;else{t.anchor=s(e);let i=l;for(;i;)if(i=s(i),i&&8===i.nodeType&&"teleport anchor"===i.data){t.targetAnchor=i,u._lpa=t.targetAnchor&&s(t.targetAnchor);break}c(l,t,u,n,o,r,a)}ar(t)}return t.anchor&&s(t.anchor)}};function or(e,t,n,{o:{insert:o},m:r},a=2){0===a&&o(e.targetAnchor,t,n);const{el:s,anchor:i,shapeFlag:l,children:c,props:u}=e,d=2===a;if(d&&o(s,t,n),(!d||Jo(u))&&16&l)for(let e=0;e<c.length;e++)r(c[e],t,n,2);d&&o(i,t,n)}const rr=nr;function ar(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)1===n.nodeType&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const sr=Dr;function ir(e,t){"boolean"!=typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&(K().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1);K().__VUE__=!0;const{insert:n,remove:o,patchProp:r,createElement:a,createText:c,createComment:u,setText:d,setElementText:p,parentNode:m,nextSibling:f,setScopeId:g=l,insertStaticContent:y}=e,v=(e,t,n,o=null,r=null,a=null,s=void 0,i=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!qr(e,t)&&(o=X(e),H(e,r,a,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case Br:b(e,t,n,o);break;case zr:k(e,t,n,o);break;case Fr:null==e&&w(t,n,o,s);break;case Or:I(e,t,n,o,r,a,s,i,l);break;default:1&d?_(e,t,n,o,r,a,s,i,l):6&d?O(e,t,n,o,r,a,s,i,l):(64&d||128&d)&&c.process(e,t,n,o,r,a,s,i,l,Q)}null!=u&&r&&Xo(u,e&&e.ref,a,t||e,!t)},b=(e,t,o,r)=>{if(null==e)n(t.el=c(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},k=(e,t,o,r)=>{null==e?n(t.el=u(t.children||""),o,r):t.el=e.el},w=(e,t,n,o)=>{[e.el,e.anchor]=y(e.children,t,n,o,e.el,e.anchor)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=f(e),o(e),e=n;o(t)},_=(e,t,n,o,r,a,s,i,l)=>{"svg"===t.type?s="svg":"math"===t.type&&(s="mathml"),null==e?E(t,n,o,r,a,s,i,l):S(e,t,r,a,s,i,l)},E=(e,t,o,s,i,l,c,u)=>{let d,m;const{props:f,shapeFlag:h,transition:g,dirs:y}=e;if(d=e.el=a(e.type,l,f&&f.is,f),8&h?p(d,e.children):16&h&&A(e.children,d,null,s,i,lr(e,l),c,u),y&&pn(e,null,s,"created"),x(d,e,e.scopeId,c,s),f){for(const e in f)"value"===e||L(e)||r(d,e,null,f[e],l,s);"value"in f&&r(d,"value",null,f.value,l),(m=f.onVnodeBeforeMount)&&ia(m,s,e)}y&&pn(e,null,s,"beforeMount");const v=ur(i,g);v&&g.beforeEnter(d),n(d,t,o),((m=f&&f.onVnodeMounted)||v||y)&&sr((()=>{m&&ia(m,s,e),v&&g.enter(d),y&&pn(e,null,s,"mounted")}),i)},x=(e,t,n,o,r)=>{if(n&&g(e,n),o)for(let t=0;t<o.length;t++)g(e,o[t]);if(r){if(t===r.subTree){const t=r.vnode;x(e,t,t.scopeId,t.slotScopeIds,r.parent)}}},A=(e,t,n,o,r,a,s,i,l=0)=>{for(let c=l;c<e.length;c++){const l=e[c]=i?ra(e[c]):oa(e[c]);v(null,l,t,n,o,r,a,s,i)}},S=(e,t,n,o,a,i,l)=>{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:m}=t;u|=16&e.patchFlag;const f=e.props||s,h=t.props||s;let g;if(n&&cr(n,!1),(g=h.onVnodeBeforeUpdate)&&ia(g,n,t,e),m&&pn(t,e,n,"beforeUpdate"),n&&cr(n,!0),(f.innerHTML&&null==h.innerHTML||f.textContent&&null==h.textContent)&&p(c,""),d?T(e.dynamicChildren,d,c,n,o,lr(t,a),i):l||V(e,t,c,null,n,o,lr(t,a),i,!1),u>0){if(16&u)N(c,f,h,n,a);else if(2&u&&f.class!==h.class&&r(c,"class",null,h.class,a),4&u&&r(c,"style",f.style,h.style,a),8&u){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const o=e[t],s=f[o],i=h[o];i===s&&"value"!==o||r(c,o,s,i,a,n)}}1&u&&e.children!==t.children&&p(c,t.children)}else l||null!=d||N(c,f,h,n,a);((g=h.onVnodeUpdated)||m)&&sr((()=>{g&&ia(g,n,t,e),m&&pn(t,e,n,"updated")}),o)},T=(e,t,n,o,r,a,s)=>{for(let i=0;i<t.length;i++){const l=e[i],c=t[i],u=l.el&&(l.type===Or||!qr(l,c)||70&l.shapeFlag)?m(l.el):n;v(l,c,u,null,o,r,a,s,!0)}},N=(e,t,n,o,a)=>{if(t!==n){if(t!==s)for(const s in t)L(s)||s in n||r(e,s,t[s],null,a,o);for(const s in n){if(L(s))continue;const i=n[s],l=t[s];i!==l&&"value"!==s&&r(e,s,l,i,a,o)}"value"in n&&r(e,"value",t.value,n.value,a)}},I=(e,t,o,r,a,s,i,l,u)=>{const d=t.el=e?e.el:c(""),p=t.anchor=e?e.anchor:c("");let{patchFlag:m,dynamicChildren:f,slotScopeIds:h}=t;h&&(l=l?l.concat(h):h),null==e?(n(d,o,r),n(p,o,r),A(t.children||[],o,p,a,s,i,l,u)):m>0&&64&m&&f&&e.dynamicChildren?(T(e.dynamicChildren,f,o,a,s,i,l),(null!=t.key||a&&t===a.subTree)&&dr(e,t,!0)):V(e,t,o,p,a,s,i,l,u)},O=(e,t,n,o,r,a,s,i,l)=>{t.slotScopeIds=i,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,s,l):z(t,n,o,r,a,s,l):F(e,t,l)},z=(e,t,n,o,r,a,s)=>{const i=e.component=ua(e,o,r);if(Ln(e)&&(i.ctx.renderer=Q),wa(i,!1,s),i.asyncDep){if(r&&r.registerDep(i,P,s),!e.el){const e=i.subTree=Zr(zr);k(null,e,t,n)}}else P(i,e,t,n,r,a,s)},F=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:a}=e,{props:s,children:i,patchFlag:l}=t,c=a.emitsOptions;0;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!r&&!i||i&&i.$stable)||o!==s&&(o?!s||Lr(o,s,c):!!s);if(1024&l)return!0;if(16&l)return o?Lr(o,s,c):!!s;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(s[n]!==o[n]&&!xr(c,n))return!0}}return!1}(e,t,n)){if(o.asyncDep&&!o.asyncResolved)return void R(o,t,n);o.next=t,function(e){const t=$t.indexOf(e);t>Ht&&$t.splice(t,1)}(o.update),o.effect.dirty=!0,o.update()}else t.el=e.el,o.vnode=t},P=(e,t,n,o,r,a,s)=>{const i=()=>{if(e.isMounted){let{next:t,bu:n,u:o,parent:l,vnode:c}=e;{const n=pr(e);if(n)return t&&(t.el=c.el,R(e,t,s)),void n.asyncDep.then((()=>{e.isUnmounted||i()}))}let u,d=t;0,cr(e,!1),t?(t.el=c.el,R(e,t,s)):t=c,n&&M(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&ia(u,l,t,c),cr(e,!0);const p=Ar(e);0;const f=e.subTree;e.subTree=p,v(f,p,m(f.el),X(f),e,r,a),t.el=p.el,null===d&&Nr(e,p.el),o&&sr(o,r),(u=t.props&&t.props.onVnodeUpdated)&&sr((()=>ia(u,l,t,c)),r)}else{let s;const{el:i,props:l}=t,{bm:c,m:u,parent:d}=e,p=Tn(t);if(cr(e,!1),c&&M(c),!p&&(s=l&&l.onVnodeBeforeMount)&&ia(s,d,t),cr(e,!0),i&&te){const n=()=>{e.subTree=Ar(e),te(i,e.subTree,e,r,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{0;const s=e.subTree=Ar(e);0,v(null,s,n,o,e,r,a),t.el=s.el}if(u&&sr(u,r),!p&&(s=l&&l.onVnodeMounted)){const e=t;sr((()=>ia(s,d,e)),r)}(256&t.shapeFlag||d&&Tn(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&sr(e.a,r),e.isMounted=!0,t=n=o=null}},c=e.effect=new le(i,l,(()=>Jt(u)),e.scope),u=e.update=()=>{c.dirty&&c.run()};u.i=e,u.id=e.uid,cr(e,!0),u()},R=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:a,vnode:{patchFlag:s}}=e,i=bt(r),[l]=e.propsOptions;let c=!1;if(!(o||s>0)||16&s){let o;Bo(e,t,r,a)&&(c=!0);for(const a in i)t&&(h(t,a)||(o=B(a))!==a&&h(t,o))||(l?!n||void 0===n[a]&&void 0===n[o]||(r[a]=zo(l,i,a,void 0,e,!0)):delete r[a]);if(a!==i)for(const e in a)t&&h(t,e)||(delete a[e],c=!0)}else if(8&s){const n=e.vnode.dynamicProps;for(let o=0;o<n.length;o++){let s=n[o];if(xr(e.emitsOptions,s))continue;const u=t[s];if(l)if(h(a,s))u!==a[s]&&(a[s]=u,c=!0);else{const t=D(s);r[t]=zo(l,i,t,u,e,!1)}else u!==a[s]&&(a[s]=u,c=!0)}}c&&Te(e.attrs,"set","")}(e,t.props,o,n),Yo(e,t.children,n),ge(),tn(e),ye()},V=(e,t,n,o,r,a,s,i,l=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:m,shapeFlag:f}=t;if(m>0){if(128&m)return void j(c,d,n,o,r,a,s,i,l);if(256&m)return void U(c,d,n,o,r,a,s,i,l)}8&f?(16&u&&Y(c,r,a),d!==c&&p(n,d)):16&u?16&f?j(c,d,n,o,r,a,s,i,l):Y(c,r,a,!0):(8&u&&p(n,""),16&f&&A(d,n,o,r,a,s,i,l))},U=(e,t,n,o,r,a,s,l,c)=>{t=t||i;const u=(e=e||i).length,d=t.length,p=Math.min(u,d);let m;for(m=0;m<p;m++){const o=t[m]=c?ra(t[m]):oa(t[m]);v(e[m],o,n,null,r,a,s,l,c)}u>d?Y(e,r,a,!0,!1,p):A(t,n,o,r,a,s,l,c,p)},j=(e,t,n,o,r,a,s,l,c)=>{let u=0;const d=t.length;let p=e.length-1,m=d-1;for(;u<=p&&u<=m;){const o=e[u],i=t[u]=c?ra(t[u]):oa(t[u]);if(!qr(o,i))break;v(o,i,n,null,r,a,s,l,c),u++}for(;u<=p&&u<=m;){const o=e[p],i=t[m]=c?ra(t[m]):oa(t[m]);if(!qr(o,i))break;v(o,i,n,null,r,a,s,l,c),p--,m--}if(u>p){if(u<=m){const e=m+1,i=e<d?t[e].el:o;for(;u<=m;)v(null,t[u]=c?ra(t[u]):oa(t[u]),n,i,r,a,s,l,c),u++}}else if(u>m)for(;u<=p;)H(e[u],r,a,!0),u++;else{const f=u,h=u,g=new Map;for(u=h;u<=m;u++){const e=t[u]=c?ra(t[u]):oa(t[u]);null!=e.key&&g.set(e.key,u)}let y,b=0;const k=m-h+1;let w=!1,C=0;const _=new Array(k);for(u=0;u<k;u++)_[u]=0;for(u=f;u<=p;u++){const o=e[u];if(b>=k){H(o,r,a,!0);continue}let i;if(null!=o.key)i=g.get(o.key);else for(y=h;y<=m;y++)if(0===_[y-h]&&qr(o,t[y])){i=y;break}void 0===i?H(o,r,a,!0):(_[i-h]=u+1,i>=C?C=i:w=!0,v(o,t[i],n,null,r,a,s,l,c),b++)}const E=w?function(e){const t=e.slice(),n=[0];let o,r,a,s,i;const l=e.length;for(o=0;o<l;o++){const l=e[o];if(0!==l){if(r=n[n.length-1],e[r]<l){t[o]=r,n.push(o);continue}for(a=0,s=n.length-1;a<s;)i=a+s>>1,e[n[i]]<l?a=i+1:s=i;l<e[n[a]]&&(a>0&&(t[o]=n[a-1]),n[a]=o)}}a=n.length,s=n[a-1];for(;a-- >0;)n[a]=s,s=t[s];return n}(_):i;for(y=E.length-1,u=k-1;u>=0;u--){const e=h+u,i=t[e],p=e+1<d?t[e+1].el:o;0===_[u]?v(null,i,n,p,r,a,s,l,c):w&&(y<0||u!==E[y]?$(i,n,p,2):y--)}}},$=(e,t,o,r,a=null)=>{const{el:s,type:i,transition:l,children:c,shapeFlag:u}=e;if(6&u)return void $(e.component.subTree,t,o,r);if(128&u)return void e.suspense.move(t,o,r);if(64&u)return void i.move(e,t,o,Q);if(i===Or){n(s,t,o);for(let e=0;e<c.length;e++)$(c[e],t,o,r);return void n(e.anchor,t,o)}if(i===Fr)return void(({el:e,anchor:t},o,r)=>{let a;for(;e&&e!==t;)a=f(e),n(e,o,r),e=a;n(t,o,r)})(e,t,o);if(2!==r&&1&u&&l)if(0===r)l.beforeEnter(s),n(s,t,o),sr((()=>l.enter(s)),a);else{const{leave:e,delayLeave:r,afterLeave:a}=l,i=()=>n(s,t,o),c=()=>{e(s,(()=>{i(),a&&a()}))};r?r(s,i,c):c()}else n(s,t,o)},H=(e,t,n,o=!1,r=!1)=>{const{type:a,props:s,ref:i,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:p,cacheIndex:m}=e;if(-2===d&&(r=!1),null!=i&&Xo(i,null,n,e,!0),null!=m&&(t.renderCache[m]=void 0),256&u)return void t.ctx.deactivate(e);const f=1&u&&p,h=!Tn(e);let g;if(h&&(g=s&&s.onVnodeBeforeUnmount)&&ia(g,t,e),6&u)G(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);f&&pn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,Q,o):c&&!c.hasOnce&&(a!==Or||d>0&&64&d)?Y(c,t,n,!1,!0):(a===Or&&384&d||!r&&16&u)&&Y(l,t,n),o&&W(e)}(h&&(g=s&&s.onVnodeUnmounted)||f)&&sr((()=>{g&&ia(g,t,e),f&&pn(e,null,t,"unmounted")}),n)},W=e=>{const{type:t,el:n,anchor:r,transition:a}=e;if(t===Or)return void q(n,r);if(t===Fr)return void C(e);const s=()=>{o(n),a&&!a.persisted&&a.afterLeave&&a.afterLeave()};if(1&e.shapeFlag&&a&&!a.persisted){const{leave:t,delayLeave:o}=a,r=()=>t(n,s);o?o(e.el,s,r):r()}else s()},q=(e,t)=>{let n;for(;e!==t;)n=f(e),o(e),e=n;o(t)},G=(e,t,n)=>{const{bum:o,scope:r,update:a,subTree:s,um:i,m:l,a:c}=e;mr(l),mr(c),o&&M(o),r.stop(),a&&(a.active=!1,H(s,e,t,n)),i&&sr(i,t),sr((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},Y=(e,t,n,o=!1,r=!1,a=0)=>{for(let s=a;s<e.length;s++)H(e[s],t,n,o,r)},X=e=>{if(6&e.shapeFlag)return X(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=f(e.anchor||e.el),n=t&&t[Zo];return n?f(n):t};let Z=!1;const J=(e,t,n)=>{null==e?t._vnode&&H(t._vnode,null,null,!0):v(t._vnode||null,e,t,null,null,null,n),Z||(Z=!0,tn(),nn(),Z=!1),t._vnode=e},Q={p:v,um:H,m:$,r:W,mt:z,mc:A,pc:V,pbc:T,n:X,o:e};let ee,te;return t&&([ee,te]=t(Q)),{render:J,hydrate:ee,createApp:So(J,ee)}}function lr({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function cr({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ur(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function dr(e,t,n=!1){const o=e.children,r=t.children;if(g(o)&&g(r))for(let e=0;e<o.length;e++){const t=o[e];let a=r[e];1&a.shapeFlag&&!a.dynamicChildren&&((a.patchFlag<=0||32===a.patchFlag)&&(a=r[e]=ra(r[e]),a.el=t.el),n||-2===a.patchFlag||dr(t,a)),a.type===Br&&(a.el=t.el)}}function pr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:pr(t)}function mr(e){if(e)for(let t=0;t<e.length;t++)e[t].active=!1}const fr=Symbol.for("v-scx"),hr=()=>{{const e=No(fr);return e}};const gr={};function yr(e,t,n){return vr(e,t,n)}function vr(e,t,{immediate:n,deep:o,flush:r,once:a,onTrack:i,onTrigger:c}=s){if(t&&a){const e=t;t=(...t)=>{e(...t),A()}}const u=da,d=e=>!0===o?e:wr(e,!1===o?1:void 0);let p,f,h=!1,y=!1;if(At(e)?(p=()=>e.value,h=yt(e)):ht(e)?(p=()=>d(e),h=!0):g(e)?(y=!0,h=e.some((e=>ht(e)||yt(e))),p=()=>e.map((e=>At(e)?e.value:ht(e)?d(e):b(e)?Rt(e,u,2):void 0))):p=b(e)?t?()=>Rt(e,u,2):()=>(f&&f(),Vt(e,u,3,[k])):l,t&&o){const e=p;p=()=>wr(e())}let v,k=e=>{f=E.onStop=()=>{Rt(e,u,4),f=E.onStop=void 0}};if(ka){if(k=l,t?n&&Vt(t,u,3,[p(),y?[]:void 0,k]):p(),"sync"!==r)return l;{const e=hr();v=e.__watcherHandles||(e.__watcherHandles=[])}}let w=y?new Array(e.length).fill(gr):gr;const C=()=>{if(E.active&&E.dirty)if(t){const e=E.run();(o||h||(y?e.some(((e,t)=>P(e,w[t]))):P(e,w)))&&(f&&f(),Vt(t,u,3,[e,w===gr?void 0:y&&w[0]===gr?[]:w,k]),w=e)}else E.run()};let _;C.allowRecurse=!!t,"sync"===r?_=C:"post"===r?_=()=>sr(C,u&&u.suspense):(C.pre=!0,u&&(C.id=u.uid),_=()=>Jt(C));const E=new le(p,l,_),x=re,A=()=>{E.stop(),x&&m(x.effects,E)};return t?n?C():w=E.run():"post"===r?sr(E.run.bind(E),u&&u.suspense):E.run(),v&&v.push(A),A}function br(e,t,n){const o=this.proxy,r=k(e)?e.includes(".")?kr(o,e):()=>o[e]:e.bind(o,o);let a;b(t)?a=t:(a=t.handler,n=t);const s=ha(this),i=vr(r,a.bind(o),n);return s(),i}function kr(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function wr(e,t=1/0,n){if(t<=0||!C(e)||e.__v_skip)return e;if((n=n||new Set).has(e))return e;if(n.add(e),t--,At(e))wr(e.value,t,n);else if(g(e))for(let o=0;o<e.length;o++)wr(e[o],t,n);else if(v(e)||y(e))e.forEach((e=>{wr(e,t,n)}));else if(S(e)){for(const o in e)wr(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&wr(e[o],t,n)}return e}const Cr=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${D(t)}Modifiers`]||e[`${B(t)}Modifiers`];function _r(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||s;let r=n;const a=t.startsWith("update:"),i=a&&Cr(o,t.slice(7));let l;i&&(i.trim&&(r=n.map((e=>k(e)?e.trim():e))),i.number&&(r=n.map(V)));let c=o[l=F(t)]||o[l=F(D(t))];!c&&a&&(c=o[l=F(B(t))]),c&&Vt(c,e,6,r);const u=o[l+"Once"];if(u){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,Vt(u,e,6,r)}}function Er(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const a=e.emits;let s={},i=!1;if(!b(e)){const o=e=>{const n=Er(e,t,!0);n&&(i=!0,p(s,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return a||i?(g(a)?a.forEach((e=>s[e]=null)):p(s,a),C(e)&&o.set(e,s),s):(C(e)&&o.set(e,null),null)}function xr(e,t){return!(!e||!u(t))&&(t=t.slice(2).replace(/Once$/,""),h(e,t[0].toLowerCase()+t.slice(1))||h(e,B(t))||h(e,t))}function Ar(e){const{type:t,vnode:n,proxy:o,withProxy:r,propsOptions:[a],slots:s,attrs:i,emit:l,render:c,renderCache:u,props:p,data:m,setupState:f,ctx:h,inheritAttrs:g}=e,y=cn(e);let v,b;try{if(4&n.shapeFlag){const e=r||o,t=e;v=oa(c.call(t,e,u,p,f,m,h)),b=i}else{const e=t;0,v=oa(e.length>1?e(p,{attrs:i,slots:s,emit:l}):e(p,null)),b=t.props?i:Sr(i)}}catch(t){Pr.length=0,Ut(t,e,1),v=Zr(zr)}let k=v;if(b&&!1!==g){const e=Object.keys(b),{shapeFlag:t}=k;e.length&&7&t&&(a&&e.some(d)&&(b=Tr(b,a)),k=ea(k,b,!1,!0))}return n.dirs&&(k=ea(k,null,!1,!0),k.dirs=k.dirs?k.dirs.concat(n.dirs):n.dirs),n.transition&&(k.transition=n.transition),v=k,cn(y),v}const Sr=e=>{let t;for(const n in e)("class"===n||"style"===n||u(n))&&((t||(t={}))[n]=e[n]);return t},Tr=(e,t)=>{const n={};for(const o in e)d(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function Lr(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const a=o[r];if(t[a]!==e[a]&&!xr(n,a))return!0}return!1}function Nr({vnode:e,parent:t},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o!==e)break;(e=t.vnode).el=n,t=t.parent}}const Ir=e=>e.__isSuspense;function Dr(e,t){t&&t.pendingBranch?g(e)?t.effects.push(...e):t.effects.push(e):en(e)}const Or=Symbol.for("v-fgt"),Br=Symbol.for("v-txt"),zr=Symbol.for("v-cmt"),Fr=Symbol.for("v-stc"),Pr=[];let Mr=null;function Rr(e=!1){Pr.push(Mr=e?null:[])}function Vr(){Pr.pop(),Mr=Pr[Pr.length-1]||null}let Ur=1;function jr(e){Ur+=e,e<0&&Mr&&(Mr.hasOnce=!0)}function Kr(e){return e.dynamicChildren=Ur>0?Mr||i:null,Vr(),Ur>0&&Mr&&Mr.push(e),e}function $r(e,t,n,o,r,a){return Kr(Xr(e,t,n,o,r,a,!0))}function Hr(e,t,n,o,r){return Kr(Zr(e,t,n,o,r,!0))}function Wr(e){return!!e&&!0===e.__v_isVNode}function qr(e,t){return e.type===t.type&&e.key===t.key}const Gr=({key:e})=>null!=e?e:null,Yr=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?k(e)||At(e)||b(e)?{i:sn,r:e,k:t,f:!!n}:e:null);function Xr(e,t=null,n=null,o=0,r=null,a=(e===Or?0:1),s=!1,i=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Gr(t),ref:t&&Yr(t),scopeId:ln,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:sn};return i?(aa(l,n),128&a&&e.normalize(l)):n&&(l.shapeFlag|=k(n)?8:16),Ur>0&&!s&&Mr&&(l.patchFlag>0||6&a)&&32!==l.patchFlag&&Mr.push(l),l}const Zr=Jr;function Jr(e,t=null,n=null,o=0,r=null,a=!1){if(e&&e!==Zn||(e=zr),Wr(e)){const o=ea(e,t,!0);return n&&aa(o,n),Ur>0&&!a&&Mr&&(6&o.shapeFlag?Mr[Mr.indexOf(e)]=o:Mr.push(o)),o.patchFlag=-2,o}if(Ta(e)&&(e=e.__vccOpts),t){t=Qr(t);let{class:e,style:n}=t;e&&!k(e)&&(t.class=Y(e)),C(n)&&(vt(n)&&!g(n)&&(n=p({},n)),t.style=$(n))}return Xr(e,t,n,o,r,k(e)?1:Ir(e)?128:(e=>e.__isTeleport)(e)?64:C(e)?4:b(e)?2:0,a,!0)}function Qr(e){return e?vt(e)||Oo(e)?p({},e):e:null}function ea(e,t,n=!1,o=!1){const{props:r,ref:a,patchFlag:s,children:i,transition:l}=e,c=t?sa(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Gr(c),ref:t&&t.ref?n&&a?g(a)?a.concat(Yr(t)):[a,Yr(t)]:Yr(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Or?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ea(e.ssContent),ssFallback:e.ssFallback&&ea(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&o&&xn(u,l.clone(u)),u}function ta(e=" ",t=0){return Zr(Br,null,e,t)}function na(e="",t=!1){return t?(Rr(),Hr(zr,null,e)):Zr(zr,null,e)}function oa(e){return null==e||"boolean"==typeof e?Zr(zr):g(e)?Zr(Or,null,e.slice()):"object"==typeof e?ra(e):Zr(Br,null,String(e))}function ra(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:ea(e)}function aa(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(g(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),aa(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||Oo(t)?3===o&&sn&&(1===sn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=sn}}else b(t)?(t={default:t,_ctx:sn},n=32):(t=String(t),64&o?(n=16,t=[ta(t)]):n=8);e.children=t,e.shapeFlag|=n}function sa(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const e in o)if("class"===e)t.class!==o.class&&(t.class=Y([t.class,o.class]));else if("style"===e)t.style=$([t.style,o.style]);else if(u(e)){const n=t[e],r=o[e];!r||n===r||g(n)&&n.includes(r)||(t[e]=n?[].concat(n,r):r)}else""!==e&&(t[e]=o[e])}return t}function ia(e,t,n,o=null){Vt(e,t,7,[n,o])}const la=xo();let ca=0;function ua(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||la,a={uid:ca++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new se(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Po(o,r),emitsOptions:Er(o,r),emit:null,emitted:null,propsDefaults:s,inheritAttrs:o.inheritAttrs,ctx:s,data:s,props:s,attrs:s,slots:s,refs:s,setupState:s,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=_r.bind(null,a),e.ce&&e.ce(a),a}let da=null;const pa=()=>da||sn;let ma,fa;{const e=K(),t=(t,n)=>{let o;return(o=e[t])||(o=e[t]=[]),o.push(n),e=>{o.length>1?o.forEach((t=>t(e))):o[0](e)}};ma=t("__VUE_INSTANCE_SETTERS__",(e=>da=e)),fa=t("__VUE_SSR_SETTERS__",(e=>ka=e))}const ha=e=>{const t=da;return ma(e),e.scope.on(),()=>{e.scope.off(),ma(t)}},ga=()=>{da&&da.scope.off(),ma(null)};function ya(e){return 4&e.vnode.shapeFlag}let va,ba,ka=!1;function wa(e,t=!1,n=!1){t&&fa(t);const{props:o,children:r}=e.vnode,a=ya(e);!function(e,t,n,o=!1){const r={},a=Do();e.propsDefaults=Object.create(null),Bo(e,t,r,a);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);n?e.props=o?r:pt(r):e.type.props?e.props=r:e.props=a,e.attrs=a}(e,o,a,t),Go(e,r,n);const s=a?function(e,t){const n=e.type;0;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,co),!1;const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?xa(e):null,r=ha(e);ge();const a=Rt(o,e,0,[e.props,n]);if(ye(),r(),_(a)){if(a.then(ga,ga),t)return a.then((n=>{Ca(e,n,t)})).catch((t=>{Ut(t,e,0)}));e.asyncDep=a}else Ca(e,a,t)}else _a(e,t)}(e,t):void 0;return t&&fa(!1),s}function Ca(e,t,n){b(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:C(t)&&(e.setupState=Ot(t)),_a(e,n)}function _a(e,t,n){const o=e.type;if(!e.render){if(!t&&va&&!o.render){const t=o.template||yo(e).template;if(t){0;const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:s}=o,i=p(p({isCustomElement:n,delimiters:a},r),s);o.render=va(t,i)}}e.render=o.render||l,ba&&ba(e)}{const t=ha(e);ge();try{fo(e)}finally{ye(),t()}}}const Ea={get:(e,t)=>(Se(e,0,""),e[t])};function xa(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,Ea),slots:e.slots,emit:e.emit,expose:t}}function Aa(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ot((t=e.exposed,Object.isExtensible(t)&&R(t,"__v_skip",!0),t)),{get:(t,n)=>n in t?t[n]:n in io?io[n](e):void 0,has:(e,t)=>t in e||t in io})):e.proxy;var t}function Sa(e,t=!0){return b(e)?e.displayName||e.name:e.name||t&&e.__name}function Ta(e){return b(e)&&"__vccOpts"in e}const La=(e,t)=>_t(e,0,ka);function Na(e,t,n){const o=arguments.length;return 2===o?C(t)&&!g(t)?Wr(t)?Zr(e,null,[t]):Zr(e,t):Zr(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&Wr(n)&&(n=[n]),Zr(e,t,n))}const Ia="3.4.34",Da="undefined"!=typeof document?document:null,Oa=Da&&Da.createElement("template"),Ba={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r="svg"===t?Da.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?Da.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?Da.createElement(e,{is:n}):Da.createElement(e);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>Da.createTextNode(e),createComment:e=>Da.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Da.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,a){const s=n?n.previousSibling:t.lastChild;if(r&&(r===a||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==a&&(r=r.nextSibling););else{Oa.innerHTML="svg"===o?`<svg>${e}</svg>`:"mathml"===o?`<math>${e}</math>`:e;const r=Oa.content;if("svg"===o||"mathml"===o){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},za="transition",Fa="animation",Pa=Symbol("_vtc"),Ma=(e,{slots:t})=>Na(kn,Ka(e),t);Ma.displayName="Transition";const Ra={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},Va=Ma.props=p({},yn,Ra),Ua=(e,t=[])=>{g(e)?e.forEach((e=>e(...t))):e&&e(...t)},ja=e=>!!e&&(g(e)?e.some((e=>e.length>1)):e.length>1);function Ka(e){const t={};for(const n in e)n in Ra||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:o,duration:r,enterFromClass:a=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:i=`${n}-enter-to`,appearFromClass:l=a,appearActiveClass:c=s,appearToClass:u=i,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,h=function(e){if(null==e)return null;if(C(e))return[$a(e.enter),$a(e.leave)];{const t=$a(e);return[t,t]}}(r),g=h&&h[0],y=h&&h[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:k,onLeave:w,onLeaveCancelled:_,onBeforeAppear:E=v,onAppear:x=b,onAppearCancelled:A=k}=t,S=(e,t,n)=>{Wa(e,t?u:i),Wa(e,t?c:s),n&&n()},T=(e,t)=>{e._isLeaving=!1,Wa(e,d),Wa(e,f),Wa(e,m),t&&t()},L=e=>(t,n)=>{const r=e?x:b,s=()=>S(t,e,n);Ua(r,[t,s]),qa((()=>{Wa(t,e?l:a),Ha(t,e?u:i),ja(r)||Ya(t,o,g,s)}))};return p(t,{onBeforeEnter(e){Ua(v,[e]),Ha(e,a),Ha(e,s)},onBeforeAppear(e){Ua(E,[e]),Ha(e,l),Ha(e,c)},onEnter:L(!1),onAppear:L(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>T(e,t);Ha(e,d),Ha(e,m),Qa(),qa((()=>{e._isLeaving&&(Wa(e,d),Ha(e,f),ja(w)||Ya(e,o,y,n))})),Ua(w,[e,n])},onEnterCancelled(e){S(e,!1),Ua(k,[e])},onAppearCancelled(e){S(e,!0),Ua(A,[e])},onLeaveCancelled(e){T(e),Ua(_,[e])}})}function $a(e){return U(e)}function Ha(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[Pa]||(e[Pa]=new Set)).add(t)}function Wa(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[Pa];n&&(n.delete(t),n.size||(e[Pa]=void 0))}function qa(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let Ga=0;function Ya(e,t,n,o){const r=e._endId=++Ga,a=()=>{r===e._endId&&o()};if(n)return setTimeout(a,n);const{type:s,timeout:i,propCount:l}=Xa(e,t);if(!s)return o();const c=s+"end";let u=0;const d=()=>{e.removeEventListener(c,p),a()},p=t=>{t.target===e&&++u>=l&&d()};setTimeout((()=>{u<l&&d()}),i+1),e.addEventListener(c,p)}function Xa(e,t){const n=window.getComputedStyle(e),o=e=>(n[e]||"").split(", "),r=o(`${za}Delay`),a=o(`${za}Duration`),s=Za(r,a),i=o(`${Fa}Delay`),l=o(`${Fa}Duration`),c=Za(i,l);let u=null,d=0,p=0;t===za?s>0&&(u=za,d=s,p=a.length):t===Fa?c>0&&(u=Fa,d=c,p=l.length):(d=Math.max(s,c),u=d>0?s>c?za:Fa:null,p=u?u===za?a.length:l.length:0);return{type:u,timeout:d,propCount:p,hasTransform:u===za&&/\b(transform|all)(,|$)/.test(o(`${za}Property`).toString())}}function Za(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,n)=>Ja(t)+Ja(e[n]))))}function Ja(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function Qa(){return document.body.offsetHeight}const es=Symbol("_vod"),ts=Symbol("_vsh"),ns={beforeMount(e,{value:t},{transition:n}){e[es]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):os(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),os(e,!0),o.enter(e)):o.leave(e,(()=>{os(e,!1)})):os(e,t))},beforeUnmount(e,{value:t}){os(e,t)}};function os(e,t){e.style.display=t?e[es]:"none",e[ts]=!t}const rs=Symbol("");const as=/(^|;)\s*display\s*:/;const ss=/\s*!important$/;function is(e,t,n){if(g(n))n.forEach((n=>is(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=cs[t];if(n)return n;let o=D(t);if("filter"!==o&&o in e)return cs[t]=o;o=z(o);for(let n=0;n<ls.length;n++){const r=ls[n]+o;if(r in e)return cs[t]=r}return t}(e,t);ss.test(n)?e.setProperty(B(o),n.replace(ss,""),"important"):e[o]=n}}const ls=["Webkit","Moz","ms"],cs={};const us="http://www.w3.org/1999/xlink";function ds(e,t,n,o,r,a=J(t)){o&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(us,t.slice(6,t.length)):e.setAttributeNS(us,t,n):null==n||a&&!Q(n)?e.removeAttribute(t):e.setAttribute(t,a?"":w(n)?String(n):n)}function ps(e,t,n,o){e.addEventListener(t,n,o)}const ms=Symbol("_vei");function fs(e,t,n,o,r=null){const a=e[ms]||(e[ms]={}),s=a[t];if(o&&s)s.value=o;else{const[n,i]=function(e){let t;if(hs.test(e)){let n;for(t={};n=e.match(hs);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):B(e.slice(2));return[n,t]}(t);if(o){const s=a[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();Vt(function(e,t){if(g(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=vs(),n}(o,r);ps(e,n,s,i)}else s&&(!function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,s,i),a[t]=void 0)}}const hs=/(?:Once|Passive|Capture)$/;let gs=0;const ys=Promise.resolve(),vs=()=>gs||(ys.then((()=>gs=0)),gs=Date.now());const bs=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;
/*! #__NO_SIDE_EFFECTS__ */
"undefined"!=typeof HTMLElement&&HTMLElement;const ks=new WeakMap,ws=new WeakMap,Cs=Symbol("_moveCb"),_s=Symbol("_enterCb"),Es={name:"TransitionGroup",props:p({},Va,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=pa(),o=hn();let r,a;return jn((()=>{if(!r.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const o=e.cloneNode(),r=e[Pa];r&&r.forEach((e=>{e.split(/\s+/).forEach((e=>e&&o.classList.remove(e)))}));n.split(/\s+/).forEach((e=>e&&o.classList.add(e))),o.style.display="none";const a=1===t.nodeType?t:t.parentNode;a.appendChild(o);const{hasTransform:s}=Xa(o);return a.removeChild(o),s}(r[0].el,n.vnode.el,t))return;r.forEach(As),r.forEach(Ss);const o=r.filter(Ts);Qa(),o.forEach((e=>{const n=e.el,o=n.style;Ha(n,t),o.transform=o.webkitTransform=o.transitionDuration="";const r=n[Cs]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",r),n[Cs]=null,Wa(n,t))};n.addEventListener("transitionend",r)}))})),()=>{const s=bt(e),i=Ka(s);let l=s.tag||Or;if(r=[],a)for(let e=0;e<a.length;e++){const t=a[e];t.el&&t.el instanceof Element&&(r.push(t),xn(t,Cn(t,i,o,n)),ks.set(t,t.el.getBoundingClientRect()))}a=t.default?An(t.default()):[];for(let e=0;e<a.length;e++){const t=a[e];null!=t.key&&xn(t,Cn(t,i,o,n))}return Zr(l,null,a)}}},xs=Es;function As(e){const t=e.el;t[Cs]&&t[Cs](),t[_s]&&t[_s]()}function Ss(e){ws.set(e,e.el.getBoundingClientRect())}function Ts(e){const t=ks.get(e),n=ws.get(e),o=t.left-n.left,r=t.top-n.top;if(o||r){const t=e.el.style;return t.transform=t.webkitTransform=`translate(${o}px,${r}px)`,t.transitionDuration="0s",e}}Symbol("_assign");const Ls=["ctrl","shift","alt","meta"],Ns={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&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Ls.some((n=>e[`${n}Key`]&&!t.includes(n)))},Is=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(n,...o)=>{for(let e=0;e<t.length;e++){const o=Ns[t[e]];if(o&&o(n,t))return}return e(n,...o)})},Ds=p({patchProp:(e,t,n,o,r,a)=>{const s="svg"===r;"class"===t?function(e,t,n){const o=e[Pa];o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,s):"style"===t?function(e,t,n){const o=e.style,r=k(n);let a=!1;if(n&&!r){if(t)if(k(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&is(o,t,"")}else for(const e in t)null==n[e]&&is(o,e,"");for(const e in n)"display"===e&&(a=!0),is(o,e,n[e])}else if(r){if(t!==n){const e=o[rs];e&&(n+=";"+e),o.cssText=n,a=as.test(n)}}else t&&e.removeAttribute("style");es in e&&(e[es]=a?o.display:"",e[ts]&&(o.display="none"))}(e,n,o):u(t)?d(t)||fs(e,t,0,o,a):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&bs(t)&&b(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if(bs(t)&&k(n))return!1;return t in e}
/*! #__NO_SIDE_EFFECTS__ */(e,t,o,s))?(!function(e,t,n){if("innerHTML"===t||"textContent"===t){if(null==n)return;return void(e[t]=n)}const o=e.tagName;if("value"===t&&"PROGRESS"!==o&&!o.includes("-")){const r="OPTION"===o?e.getAttribute("value")||"":e.value,a=null==n?"":String(n);return r===a&&"_value"in e||(e.value=a),null==n&&e.removeAttribute(t),void(e._value=n)}let r=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=Q(n):null==n&&"string"===o?(n="",r=!0):"number"===o&&(n=0,r=!0)}try{e[t]=n}catch(e){}r&&e.removeAttribute(t)}(e,t,o),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||ds(e,t,o,s,0,"value"!==t)):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),ds(e,t,o,s))}},Ba);let Os;function Bs(){return Os||(Os=ir(Ds))}const zs=(...e)=>{const t=Bs().createApp(...e);const{mount:n}=t;return t.mount=e=>{const o=Ps(e);if(!o)return;const r=t._component;b(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const a=n(o,!1,Fs(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t};function Fs(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function Ps(e){if(k(e)){return document.querySelector(e)}return e}var Ms={name:"v-remixicon",props:{name:String,title:String,viewBox:{type:String,default:"0 0 24 24"},size:{type:[String,Number],default:24},fill:{type:String,default:"currentColor"},rotate:{type:[Number,String],default:0},path:{type:String,default:""}},setup(e){const t=No("remixicons"),n=La((()=>{if(e.path)return path;const n=t[e.name];if(void 0!==n)return n;console.error(`[v-remixicon] ${e.name} name of the icon is incorrect`)}));return()=>Na("svg",{viewBox:e.viewBox,fill:e.fill,height:e.size,width:e.size,class:"v-remixicon",xmlns:"http://www.w3.org/2000/svg",style:{transform:e.rotate?`rotate(${e.rotate}deg)`:null}},[e.title?Na("title",{},e.title):null,Na("g",{},[Na("path",{fill:"none",d:"M0 0h24v24H0z"}),Na("path",{"fill-rule":"nonzero",d:n.value})])])}};var Rs={install(e,t){e.provide("remixicons",t),e.component(Ms.name,Ms)}};const Vs={trigger:{name:"Trigger",description:"Block where workflow will start executing",icon:"riFlashlightLine",component:"BlockBasic",editComponent:"EditTrigger",category:"general",inputs:0,outputs:1,allowedInputs:!0,maxConnection:1,refDataKeys:["url"],data:{disableBlock:!1,description:"",type:"manual",interval:60,delay:5,date:"",time:"00:00",url:"",shortcut:"",activeInInput:!1,isUrlRegex:!1,days:[],contextMenuName:"",contextTypes:[],parameters:[],preferParamsInTab:!1,observeElement:{selector:"",baseSelector:"",matchPattern:"",targetOptions:{subtree:!1,childList:!0,attributes:!1,attributeFilter:[],characterData:!1},baseElOptions:{subtree:!1,childList:!0,attributes:!1,attributeFilter:[],characterData:!1}}}},"execute-workflow":{name:"Execute workflow",description:"",icon:"riFlowChart",component:"BlockBasic",category:"general",editComponent:"EditExecuteWorkflow",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,refDataKeys:["globalData"],data:{disableBlock:!1,executeId:"",workflowId:"",globalData:"",description:"",insertAllVars:!1,insertAllGlobalData:!1}},"active-tab":{name:"Active tab",description:"Set current tab that you're in as an active tab",icon:"riWindowLine",component:"BlockBasic",category:"browser",disableEdit:!0,inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,data:{disableBlock:!1}},"new-tab":{name:"New tab",description:"Create a new tab",icon:"riGlobalLine",component:"BlockBasic",editComponent:"EditNewTab",category:"browser",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,refDataKeys:["url","userAgent"],data:{disableBlock:!1,description:"",url:"",userAgent:"",active:!0,tabZoom:1,inGroup:!1,waitTabLoaded:!1,updatePrevTab:!1,customUserAgent:!1}},"switch-tab":{name:"Switch tab",description:"Switch active tab",icon:"riArrowLeftRightLine",component:"BlockBasic",editComponent:"EditSwitchTab",category:"browser",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,refDataKeys:["url","matchPattern","tabTitle"],data:{disableBlock:!1,description:"",url:"",tabIndex:0,tabTitle:"",matchPattern:"",activeTab:!0,createIfNoMatch:!1,findTabBy:"match-patterns"}},"new-window":{name:"New window",description:"Create a new window",icon:"riWindow2Line",component:"BlockBasic",editComponent:"EditNewWindow",category:"browser",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,refDataKeys:["url"],data:{disableBlock:!1,description:"",top:0,left:0,width:0,url:"",height:0,type:"normal",incognito:!1,windowState:"normal"}},proxy:{name:"Proxy",description:"Set the proxy of the browser",icon:"riShieldKeyholeLine",component:"BlockBasic",category:"browser",editComponent:"EditProxy",inputs:1,outputs:1,maxConnection:1,allowedInputs:!0,refDataKeys:["host","port","scheme"],data:{description:"",disableBlock:!1,scheme:"https",host:"",port:443,bypassList:"",clearProxy:!1}},"go-back":{name:"Go back",description:"Go back to the previous page",icon:"riArrowGoBackLine",component:"BlockBasic",category:"browser",inputs:1,outputs:1,maxConnection:1,disableEdit:!0,allowedInputs:!0,data:{disableBlock:!1}},"forward-page":{name:"Go forward",description:"Go forward to the next page",icon:"riArrowGoForwardLine",component:"BlockBasic",category:"browser",inputs:1,outputs:1,maxConnection:1,disableEdit:!0,allowedInputs:!0,data:{disableBlock:!1}},"close-tab":{name:"Close tab/window",icon:"riCloseCircleLine",component:"BlockBasic",category:"browser",editComponent:"EditCloseTab",inputs:1,outputs:1,maxConnection:1,allowedInputs:!0,refDataKeys:["url"],data:{disableBlock:!1,url:"",description:"",activeTab:!0,closeType:"tab",allWindows:!1}},"take-screenshot":{name:"Take screenshot",description:"Take a screenshot of current active tab",icon:"riImageLine",component:"BlockBasic",category:"browser",editComponent:"EditTakeScreenshot",inputs:1,outputs:1,maxConnection:1,allowedInputs:!0,refDataKeys:["fileName","selector","variableName"],autocomplete:["variableName"],data:{description:"",disableBlock:!1,fileName:"",ext:"png",quality:100,dataColumn:"",variableName:"",selector:"",fullPage:!1,saveToColumn:!1,saveToComputer:!0,assignVariable:!1,captureActiveTab:!0}},"browser-event":{name:"Browser event",description:"Wait until the selected event is triggered",icon:"riLightbulbLine",component:"BlockBasic",category:"browser",editComponent:"EditBrowserEvent",inputs:1,outputs:1,maxConnection:1,allowedInputs:!0,data:{disableBlock:!1,description:"",timeout:1e4,eventName:"tab:loaded",setAsActiveTab:!0,activeTabLoaded:!0,tabLoadedUrl:"",tabUrl:"",fileQuery:""}},"event-click":{name:"Click element",icon:"riCursorLine",component:"BlockBasic",editComponent:"EditInteractionBase",category:"interaction",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,refDataKeys:["selector"],data:{disableBlock:!1,description:"",findBy:"cssSelector",waitForSelector:!1,waitSelectorTimeout:5e3,selector:"",markEl:!1,multiple:!1}},delay:{name:"Delay",description:"Add delay before executing the next block",icon:"riTimerLine",component:"BlockDelay",editComponent:"EditDelay",category:"general",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,refDataKeys:["time"],data:{disableBlock:!1,time:500}},"get-text":{name:"Get text",description:"Get text from an element",icon:"riParagraph",component:"BlockBasic",editComponent:"EditGetText",category:"interaction",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,refDataKeys:["selector","variableName","prefixText","suffixText","extraRowValue"],autocomplete:["variableName"],data:{disableBlock:!1,description:"",findBy:"cssSelector",waitForSelector:!1,waitSelectorTimeout:5e3,selector:"",markEl:!1,multiple:!1,regex:"",prefixText:"",suffixText:"",regexExp:[],dataColumn:"",saveData:!0,includeTags:!1,addExtraRow:!1,assignVariable:!1,useTextContent:!1,variableName:"",extraRowValue:"",extraRowDataColumn:""}},"export-data":{name:"Export data",icon:"riDownloadLine",component:"BlockBasic",editComponent:"EditExportData",category:"general",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,refDataKeys:["name","variableName"],data:{disableBlock:!1,name:"",refKey:"",type:"json",description:"",variableName:"",csvDelimiter:",",addBOMHeader:!0,onConflict:"uniquify",dataToExport:"data-columns"}},"element-scroll":{name:"Scroll element",icon:"riMouseLine",component:"BlockBasic",editComponent:"EditScrollElement",category:"interaction",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,refDataKeys:["selector"],data:{disableBlock:!1,description:"",findBy:"cssSelector",waitForSelector:!1,waitSelectorTimeout:5e3,selector:"html",markEl:!1,multiple:!1,scrollY:0,scrollX:0,incX:!1,incY:!1,smooth:!1,scrollIntoView:!1}},link:{name:"Link",description:"Open link element",icon:"riLink",component:"BlockBasic",editComponent:"EditLink",category:"interaction",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,refDataKeys:["selector"],data:{disableBlock:!1,description:"",findBy:"cssSelector",waitForSelector:!1,waitSelectorTimeout:5e3,selector:"",markEl:!1,disableMultiple:!0,openInNewTab:!1}},"attribute-value":{name:"Attribute value",description:"Get attribute value of an element",icon:"riBracketsLine",component:"BlockBasic",editComponent:"EditAttributeValue",category:"interaction",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,refDataKeys:["selector","variableName","attributeName","extraRowValue","attributeValue"],autocomplete:["variableName"],data:{disableBlock:!1,description:"",findBy:"cssSelector",waitForSelector:!1,waitSelectorTimeout:5e3,selector:"",markEl:!1,multiple:!1,attributeValue:"",attributeName:"",assignVariable:!1,variableName:"",dataColumn:"",saveData:!0,action:"get",addExtraRow:!1,extraRowValue:"",extraRowDataColumn:""}},forms:{name:"Forms",icon:"riInputCursorMove",description:"Manipulate form(input, select, checkbox, and radio) element",component:"BlockBasic",editComponent:"EditForms",category:"interaction",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,refDataKeys:["selector","variableName","value","optionPosition","delay"],autocomplete:["variableName"],data:{disableBlock:!1,description:"",findBy:"cssSelector",waitForSelector:!1,waitSelectorTimeout:5e3,selector:"",markEl:!1,multiple:!1,selected:!0,clearValue:!0,getValue:!1,saveData:!1,dataColumn:"",selectOptionBy:"value",optionPosition:"1",assignVariable:!1,variableName:"",type:"text-field",value:"",delay:0,events:[]}},"repeat-task":{name:"Repeat task",icon:"riRepeat2Line",component:"BlockRepeatTask",category:"conditions",inputs:1,outputs:2,allowedInputs:!0,maxConnection:1,refDataKeys:["repeatFor"],data:{disableBlock:!1,repeatFor:"1"}},"javascript-code":{name:"JavaScript code",description:"Execute your custom javascript code in a webpage",icon:"riCodeSSlashLine",component:"BlockBasic",editComponent:"EditJavascriptCode",category:"interaction",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,data:{disableBlock:!1,description:"",timeout:2e4,context:"website",code:'console.log("Hello world!");\nautomaNextBlock()',preloadScripts:[],everyNewTab:!1,runBeforeLoad:!1}},"trigger-event":{name:"Trigger event",description:"Trigger event",icon:"riLightbulbFlashLine",component:"BlockBasic",editComponent:"EditTriggerEvent",category:"interaction",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,refDataKeys:["selector","eventParams.clientX","eventParams.clientY"],data:{disableBlock:!1,description:"",findBy:"cssSelector",waitForSelector:!1,waitSelectorTimeout:5e3,selector:"html",markEl:!1,multiple:!1,eventName:"",eventType:"",eventParams:{bubbles:!0,cancelable:!1}}},conditions:{name:"Conditions",description:"Conditional block",icon:"riAB",component:"BlockConditions",editComponent:"EditConditions",category:"conditions",inputs:1,outputs:0,allowedInputs:!0,maxConnection:1,data:{description:"",disableBlock:!1,conditions:[],retryConditions:!1,retryCount:10,retryTimeout:1e3}},"element-exists":{name:"Element exists",description:"Check if an element is exists",icon:"riFocus3Line",component:"BlockElementExists",editComponent:"EditElementExists",category:"conditions",inputs:1,outputs:2,allowedInputs:!0,maxConnection:1,refDataKeys:["selector"],data:{disableBlock:!1,description:"",findBy:"cssSelector",selector:"",tryCount:1,timeout:500,markEl:!1,throwError:!1}},webhook:{name:"HTTP Request",description:"make an HTTP request",icon:"riEarthLine",component:"BlockBasicWithFallback",editComponent:"EditWebhook",category:"general",inputs:1,outputs:2,allowedInputs:!0,maxConnection:1,refDataKeys:["body","url","variableName"],autocomplete:["variableName"],data:{disableBlock:!1,description:"",url:"",body:"{}",headers:[],method:"POST",timeout:1e4,dataPath:"",contentType:"json",variableName:"",assignVariable:!1,saveData:!1,dataColumn:"",responseType:"json"}},"while-loop":{name:"While loop",description:"Execute blocks while the condition is met",icon:"riRefreshFill",component:"BlockBasicWithFallback",editComponent:"EditWhileLoop",category:"conditions",inputs:1,outputs:2,allowedInputs:!0,maxConnection:1,data:{disableBlock:!1,description:"",conditions:null}},"loop-data":{name:"Loop data",icon:"riRefreshLine",component:"BlockBasic",editComponent:"EditLoopData",category:"conditions",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,refDataKeys:["maxLoop","loopData","selector","startIndex","variableName","referenceKey","elementSelector"],autocomplete:["variableName","loopId"],data:{disableBlock:!1,loopId:"",maxLoop:0,toNumber:10,fromNumber:1,startIndex:0,loopData:"[]",description:"",variableName:"",referenceKey:"",reverseLoop:!1,elementSelector:"",waitForSelector:!1,waitSelectorTimeout:5e3,resumeLastWorkflow:!1,loopThrough:"data-columns"}},"loop-elements":{name:"Loop elements",icon:"riRestartLine",component:"BlockBasic",editComponent:"EditLoopElements",category:"conditions",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,refDataKeys:["maxLoop","selector","variableName","elementSelector","actionElSelector"],autocomplete:["loopId"],data:{disableBlock:!1,loopId:"",selector:"",maxLoop:"0",description:"",reverseLoop:!1,actionElSelector:"",findBy:"cssSelector",actionElMaxWaitTime:5,actionPageMaxWaitTime:10,loadMoreAction:"none",scrollToBottom:!0,waitForSelector:!1,waitSelectorTimeout:5e3}},"loop-breakpoint":{name:"Loop breakpoint",description:"To tell where loop data must stop",icon:"riStopLine",component:"BlockLoopBreakpoint",category:"conditions",disableEdit:!0,inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,data:{disableBlock:!1,loopId:"",clearLoop:!1}},"blocks-group":{name:"Blocks group",description:"Grouping blocks",icon:"riFolderZipLine",component:"BlockGroup",category:"general",disableEdit:!0,inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,data:{disableBlock:!1,name:"",blocks:[]}},clipboard:{name:"Clipboard",description:"Get the copied text from the clipboard",icon:"riClipboardLine",component:"BlockBasic",category:"general",editComponent:"EditClipboard",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,autocomplete:["variableName"],refDataKeys:["dataToCopy","variableName"],data:{disableBlock:!1,description:"",type:"get",assignVariable:!1,variableName:"",saveData:!0,dataColumn:"",dataToCopy:"",copySelectedText:!1}},"insert-data":{name:"Insert data",description:"Insert data into table or variable",icon:"riDatabase2Line",component:"BlockBasic",category:"data",editComponent:"EditInsertData",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,data:{disableBlock:!1,description:"",dataList:[]}},"switch-to":{name:"Switch frame",description:"Switch between main window and iframe",icon:"riArrowUpDownLine",component:"BlockBasic",editComponent:"EditSwitchTo",category:"interaction",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,refDataKeys:["selector"],data:{disableBlock:!1,findBy:"cssSelector",selector:"",windowType:"main-window"}},"upload-file":{name:"Upload file",description:'Upload file into <input type="file"> element',icon:"riFileUploadLine",component:"BlockBasic",editComponent:"EditUploadFile",category:"interaction",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,refDataKeys:["selector","filePaths"],data:{disableBlock:!1,findBy:"cssSelector",waitForSelector:!1,waitSelectorTimeout:5e3,selector:"",filePaths:[]}},"hover-element":{name:"Hover element",description:"Hover over an element",icon:"mdiCursorDefaultClickOutline",component:"BlockBasic",editComponent:"EditInteractionBase",category:"interaction",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,refDataKeys:["selector"],data:{disableBlock:!1,description:"",findBy:"cssSelector",waitForSelector:!1,waitSelectorTimeout:5e3,selector:"",markEl:!1,multiple:!1}},"save-assets":{name:"Save assets",description:"Save assets (image, video, audio, or file) from an element or URL",icon:"riImageLine",component:"BlockBasic",editComponent:"EditSaveAssets",category:"interaction",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,refDataKeys:["selector","url","filename","variableName"],data:{disableBlock:!1,description:"",findBy:"cssSelector",waitForSelector:!1,waitSelectorTimeout:5e3,selector:"",markEl:!1,multiple:!1,type:"element",url:"",filename:"",saveDownloadIds:!1,onConflict:"uniquify",dataColumn:"",saveData:!0,assignVariable:!1,variableName:"",saveToGDrive:!1}},"press-key":{name:"Press key",description:"Press a key or a combination",icon:"riKeyboardLine",component:"BlockBasic",editComponent:"EditPressKey",category:"interaction",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,refDataKeys:["selector","keys","keysToPress","pressTime"],data:{disableBlock:!1,keys:"",selector:"",pressTime:"0",description:"",keysToPress:"",action:"press-key"}},"handle-dialog":{name:"Handle dialog",description:"Accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).",icon:"riChat3Line",component:"BlockBasic",editComponent:"EditHandleDialog",category:"browser",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,refDataKeys:["promptText"],data:{disableBlock:!1,description:"",accept:!0,promptText:""}},"handle-download":{name:"Handle download",description:"Handle downloaded file",icon:"riFileDownloadLine",component:"BlockBasic",editComponent:"EditHandleDownload",category:"browser",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,refDataKeys:["filename","downloadId","variableName"],autocomplete:["variableName"],data:{disableBlock:!1,description:"",filename:"",timeout:2e4,onConflict:"uniquify",waitForDownload:!0,dataColumn:"",saveData:!0,assignVariable:!1,variableName:"",downloadId:""}},"reload-tab":{name:"Reload tab",description:"Reload the active tab",icon:"riRestartLine",component:"BlockBasic",category:"browser",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,disableEdit:!0,data:{disableBlock:!1}},"delete-data":{name:"Delete data",description:"Delete table or variable data",icon:"riDeleteBin7Line",editComponent:"EditDeleteData",component:"BlockBasic",category:"data",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,data:{disableBlock:!1,description:"",deleteList:[]}},"wait-connections":{name:"Wait connections",description:"Wait for all connections before continuing to the next block",icon:"riTimerFlashLine",editComponent:"EditWaitConnections",component:"BlockBasic",category:"general",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,data:{disableBlock:!1,description:"",timeout:1e4,specificFlow:!1,flowBlockId:""}},notification:{name:"Notification",description:"Display a notification",icon:"riNotification3Line",editComponent:"EditNotification",component:"BlockBasic",category:"general",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,refDataKeys:["message","title","iconUrl","imageUrl"],data:{disableBlock:!1,description:"",message:"",iconUrl:"",imageUrl:"",title:"Hello world!"}},"log-data":{name:"Get log data",description:"Get the latest log data of a workflow",icon:"riFileHistoryLine",editComponent:"EditLogData",component:"BlockBasic",category:"data",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,data:{disableBlock:!1,description:"",workflowId:"",dataColumn:"",saveData:!0,assignVariable:!1,variableName:""}},"tab-url":{name:"Get tab URL",description:"Get the tab URL",icon:"riLinksLine",editComponent:"EditTabURL",component:"BlockBasic",category:"browser",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,refDataKeys:["variableName"],data:{disableBlock:!1,description:"",type:"active-tab",dataColumn:"",saveData:!0,assignVariable:!1,variableName:"",qTitle:"",qMatchPatterns:""}},"slice-variable":{name:"Slice variable",description:"Extracts a section of a variable value",icon:"riSliceLine",editComponent:"EditSliceVariable",component:"BlockBasic",category:"data",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,data:{disableBlock:!1,description:"",endIdxEnabled:!1,startIdxEnabled:!0,endIndex:0,startIndex:0,variableName:""}},"increase-variable":{name:"Increase variable",description:"Increase the value of a variable by specific amount",icon:"riIncreaseDecreaseLine",editComponent:"EditIncreaseVariable",component:"BlockBasic",category:"data",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,data:{disableBlock:!1,description:"",increaseBy:1,variableName:""}},"regex-variable":{name:"RegEx variable",description:"Matching a variable value against a regular expression",icon:"mdiRegex",editComponent:"EditRegexVariable",component:"BlockBasic",category:"data",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,refDataKeys:["replaceVal"],data:{disableBlock:!1,method:"match",replaceVal:"",description:"",expression:"",flag:[]}},"data-mapping":{name:"Data mapping",description:"Map data of a variable or table",icon:"riMindMap",editComponent:"EditDataMapping",component:"BlockBasic",category:"data",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,data:{disableBlock:!1,description:"",dataSource:"table",sources:[],varSourceName:"",dataColumn:"",saveData:!1,assignVariable:!1,variableName:""}},"sort-data":{name:"Sort data",description:"Sort the items of data",icon:"riSortAsc",editComponent:"EditSortData",component:"BlockBasic",category:"data",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,data:{disableBlock:!1,description:"",sortByProperty:!1,itemProperties:[],dataSource:"table",varSourceName:"",dataColumn:"",saveData:!1,assignVariable:!1,variableName:""}},"create-element":{name:"Create element",description:"Create an element and insert it into the page",icon:"riHtml5Line",editComponent:"EditCreateElement",component:"BlockBasic",category:"interaction",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,refDataKeys:["html","css","selector"],data:{disableBlock:!1,description:"",javascript:"",html:"",css:"",preloadScripts:[],findBy:"cssSelector",insertAt:"after",runBeforeLoad:!1,waitForSelector:!1,waitSelectorTimeout:5e3,selector:"body"}},cookie:{name:"Cookie",description:"Get, set, or remove cookies",icon:"mdiCookieOutline",editComponent:"EditCookie",component:"BlockBasic",category:"browser",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,refDataKeys:["domain","expirationDate","path","sameSite","name","url","value","jsonCode","variableName"],data:{disableBlock:!1,description:"",type:"get",jsonCode:"{\n\n}",useJson:!1,getAll:!1,domain:"",expirationDate:"",path:"",sameSite:"",name:"",url:"",value:"",httpOnly:!1,secure:!1,session:!1,assignVariable:!1,variableName:"",saveData:!0,dataColumn:""}},"block-package":{name:"Block package",description:"Block package",icon:"riHtml5Line",editComponent:"EditPackage",component:"BlockPackage",category:"package",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,data:{}},note:{name:"Note",description:"",icon:"riFileEditLine",component:"BlockNote",category:"general",disableEdit:!0,inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,data:{disableBlock:!1,note:"",drawing:!1,width:280,height:168,color:"white",fontSize:"regular"}},"workflow-state":{name:"Workflow State",description:"Manage workflows states",icon:"riSettings3Line",component:"BlockBasic",editComponent:"EditWorkflowState",category:"general",inputs:1,outputs:1,allowedInputs:!0,maxConnection:1,data:{disableBlock:!1,description:"",type:"stop-current",exceptCurrent:!1,workflowsToStop:[]}},"parameter-prompt":{name:"Parameter prompt",description:"",icon:"riCommandLine",component:"BlockBasic",category:"general",editComponent:"EditParameterPrompt",inputs:1,outputs:1,maxConnection:1,allowedInputs:!0,data:{disableBlock:!1,description:"",timeout:6e4,parameters:[]}}},Us=[{id:"click",name:"Click",type:"mouse-event"},{id:"dblclick",name:"Double Click",type:"mouse-event"},{id:"mouseup",name:"Mouseup",type:"mouse-event"},{id:"mousedown",name:"Mousedown",type:"mouse-event"},{id:"mouseenter",name:"Mouseenter",type:"mouse-event"},{id:"mouseleave",name:"Mouseleave",type:"mouse-event"},{id:"mouseover",name:"Mouseover",type:"mouse-event"},{id:"mouseout",name:"Mouseout",type:"mouse-event"},{id:"mousemove",name:"Mousemove",type:"mouse-event"},{id:"focus",name:"Focus",type:"focus-event"},{id:"blur",name:"Blur",type:"focus-event"},{id:"input",name:"Input",type:"input-event"},{id:"change",name:"Change",type:"event"},{id:"touchstart",name:"Touch start",type:"touch-event"},{id:"touchend",name:"Touch end",type:"touch-event"},{id:"touchmove",name:"Touch move",type:"touch-event"},{id:"touchcancel",name:"Touch cancel",type:"touch-event"},{id:"keydown",name:"Keydown",type:"keyboard-event"},{id:"keyup",name:"Keyup",type:"keyboard-event"},{id:"submit",name:"Submit",type:"submit-event"},{id:"wheel",name:"Wheel",type:"wheel-event"}],js="undefined"!=typeof window;const Ks=(e,t=!1)=>t?Symbol.for(e):Symbol(e),$s=(e,t,n)=>Hs({l:e,k:t,s:n}),Hs=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ws=e=>"number"==typeof e&&isFinite(e),qs=e=>"[object Date]"===ci(e),Gs=e=>"[object RegExp]"===ci(e),Ys=e=>ui(e)&&0===Object.keys(e).length,Xs=Object.assign;let Zs;const Js=()=>Zs||(Zs="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function Qs(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const ei=Object.prototype.hasOwnProperty;function ti(e,t){return ei.call(e,t)}const ni=Array.isArray,oi=e=>"function"==typeof e,ri=e=>"string"==typeof e,ai=e=>"boolean"==typeof e,si=e=>null!==e&&"object"==typeof e,ii=e=>si(e)&&oi(e.then)&&oi(e.catch),li=Object.prototype.toString,ci=e=>li.call(e),ui=e=>{if(!si(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object};function di(e){let t=e;return()=>++t}function pi(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const mi=e=>!si(e)||ni(e);function fi(e,t){if(mi(e)||mi(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:e,des:t}=n.pop();Object.keys(e).forEach((o=>{mi(e[o])||mi(t[o])?t[o]=e[o]:n.push({src:e[o],des:t[o]})}))}}function hi(e,t,n){const o={start:e,end:t};return null!=n&&(o.source=n),o}const gi=/\{([0-9a-zA-Z]+)\}/g;function yi(e,...t){return 1===t.length&&ki(t[0])&&(t=t[0]),t&&t.hasOwnProperty||(t={}),e.replace(gi,((e,n)=>t.hasOwnProperty(n)?t[n]:""))}const vi=Object.assign,bi=e=>"string"==typeof e,ki=e=>null!==e&&"object"==typeof e;function wi(e,t=""){return e.reduce(((e,n,o)=>0===o?e+n:e+t+n),"")}const Ci={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},_i={[Ci.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};const Ei={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},xi={[Ei.EXPECTED_TOKEN]:"Expected token: '{0}'",[Ei.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[Ei.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[Ei.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[Ei.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[Ei.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[Ei.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[Ei.EMPTY_PLACEHOLDER]:"Empty placeholder",[Ei.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[Ei.INVALID_LINKED_FORMAT]:"Invalid linked format",[Ei.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[Ei.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[Ei.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[Ei.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[Ei.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[Ei.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Ai(e,t,n={}){const{domain:o,messages:r,args:a}=n,s=yi((r||xi)[e]||"",...a||[]),i=new SyntaxError(String(s));return i.code=e,t&&(i.location=t),i.domain=o,i}function Si(e){throw e}const Ti=" ",Li="\r",Ni="\n",Ii=String.fromCharCode(8232),Di=String.fromCharCode(8233);function Oi(e){const t=e;let n=0,o=1,r=1,a=0;const s=e=>t[e]===Li&&t[e+1]===Ni,i=e=>t[e]===Di,l=e=>t[e]===Ii,c=e=>s(e)||(e=>t[e]===Ni)(e)||i(e)||l(e),u=e=>s(e)||i(e)||l(e)?Ni:t[e];function d(){return a=0,c(n)&&(o++,r=0),s(n)&&n++,n++,r++,t[n]}return{index:()=>n,line:()=>o,column:()=>r,peekOffset:()=>a,charAt:u,currentChar:()=>u(n),currentPeek:()=>u(n+a),next:d,peek:function(){return s(n+a)&&a++,a++,t[n+a]},reset:function(){n=0,o=1,r=1,a=0},resetPeek:function(e=0){a=e},skipToPeek:function(){const e=n+a;for(;e!==n;)d();a=0}}}const Bi=void 0,zi="'",Fi="tokenizer";function Pi(e,t={}){const n=!1!==t.location,o=Oi(e),r=()=>o.index(),a=()=>function(e,t,n){return{line:e,column:t,offset:n}}(o.line(),o.column(),o.index()),s=a(),i=r(),l={currentType:14,offset:i,startLoc:s,endLoc:s,lastType:14,lastOffset:i,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function d(e,t,o,...r){const a=c();if(t.column+=o,t.offset+=o,u){const o=Ai(e,n?hi(a.startLoc,t):null,{domain:Fi,args:r});u(o)}}function p(e,t,o){e.endLoc=a(),e.currentType=t;const r={type:t};return n&&(r.loc=hi(e.startLoc,e.endLoc)),null!=o&&(r.value=o),r}const m=e=>p(e,14);function f(e,t){return e.currentChar()===t?(e.next(),t):(d(Ei.EXPECTED_TOKEN,a(),0,t),"")}function h(e){let t="";for(;e.currentPeek()===Ti||e.currentPeek()===Ni;)t+=e.currentPeek(),e.peek();return t}function g(e){const t=h(e);return e.skipToPeek(),t}function y(e){if(e===Bi)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function v(e,t){const{currentType:n}=t;if(2!==n)return!1;h(e);const o=function(e){if(e===Bi)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),o}function b(e){h(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function k(e,t=!0){const n=(t=!1,o="",r=!1)=>{const a=e.currentPeek();return"{"===a?"%"!==o&&t:"@"!==a&&a?"%"===a?(e.peek(),n(t,"%",!0)):"|"===a?!("%"!==o&&!r)||!(o===Ti||o===Ni):a===Ti?(e.peek(),n(!0,Ti,r)):a!==Ni||(e.peek(),n(!0,Ni,r)):"%"===o||t},o=n();return t&&e.resetPeek(),o}function w(e,t){const n=e.currentChar();return n===Bi?Bi:t(n)?(e.next(),n):null}function C(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}function _(e){return w(e,C)}function E(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t||45===t}function x(e){return w(e,E)}function A(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function S(e){return w(e,A)}function T(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function L(e){return w(e,T)}function N(e){let t="",n="";for(;t=S(e);)n+=t;return n}function I(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!k(e))break;t+=n,e.next()}else if(n===Ti||n===Ni)if(k(e))t+=n,e.next();else{if(b(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function D(e){return e!==zi&&e!==Ni}function O(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return B(e,t,4);case"U":return B(e,t,6);default:return d(Ei.UNKNOWN_ESCAPE_SEQUENCE,a(),0,t),""}}function B(e,t,n){f(e,t);let o="";for(let r=0;r<n;r++){const n=L(e);if(!n){d(Ei.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${t}${o}${e.currentChar()}`);break}o+=n}return`\\${t}${o}`}function z(e){return"{"!==e&&"}"!==e&&e!==Ti&&e!==Ni}function F(e){g(e);const t=f(e,"|");return g(e),t}function P(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&d(Ei.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),e.next(),n=p(t,2,"{"),g(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&d(Ei.EMPTY_PLACEHOLDER,a(),0),e.next(),n=p(t,3,"}"),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&d(Ei.UNTERMINATED_CLOSING_BRACE,a(),0),n=M(e,t)||m(t),t.braceNest=0,n;default:{let o=!0,r=!0,s=!0;if(b(e))return t.braceNest>0&&d(Ei.UNTERMINATED_CLOSING_BRACE,a(),0),n=p(t,1,F(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return d(Ei.UNTERMINATED_CLOSING_BRACE,a(),0),t.braceNest=0,R(e,t);if(o=function(e,t){const{currentType:n}=t;if(2!==n)return!1;h(e);const o=y(e.currentPeek());return e.resetPeek(),o}(e,t))return n=p(t,5,function(e){g(e);let t="",n="";for(;t=x(e);)n+=t;return e.currentChar()===Bi&&d(Ei.UNTERMINATED_CLOSING_BRACE,a(),0),n}(e)),g(e),n;if(r=v(e,t))return n=p(t,6,function(e){g(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${N(e)}`):t+=N(e),e.currentChar()===Bi&&d(Ei.UNTERMINATED_CLOSING_BRACE,a(),0),t}(e)),g(e),n;if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;h(e);const o=e.currentPeek()===zi;return e.resetPeek(),o}(e,t))return n=p(t,7,function(e){g(e),f(e,"'");let t="",n="";for(;t=w(e,D);)n+="\\"===t?O(e):t;const o=e.currentChar();return o===Ni||o===Bi?(d(Ei.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),o===Ni&&(e.next(),f(e,"'")),n):(f(e,"'"),n)}(e)),g(e),n;if(!o&&!r&&!s)return n=p(t,13,function(e){g(e);let t="",n="";for(;t=w(e,z);)n+=t;return n}(e)),d(Ei.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,n.value),g(e),n;break}}return n}function M(e,t){const{currentType:n}=t;let o=null;const r=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||r!==Ni&&r!==Ti||d(Ei.INVALID_LINKED_FORMAT,a(),0),r){case"@":return e.next(),o=p(t,8,"@"),t.inLinked=!0,o;case".":return g(e),e.next(),p(t,9,".");case":":return g(e),e.next(),p(t,10,":");default:return b(e)?(o=p(t,1,F(e)),t.braceNest=0,t.inLinked=!1,o):function(e,t){const{currentType:n}=t;if(8!==n)return!1;h(e);const o="."===e.currentPeek();return e.resetPeek(),o}(e,t)||function(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;h(e);const o=":"===e.currentPeek();return e.resetPeek(),o}(e,t)?(g(e),M(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;h(e);const o=y(e.currentPeek());return e.resetPeek(),o}(e,t)?(g(e),p(t,12,function(e){let t="",n="";for(;t=_(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(10!==n)return!1;const o=()=>{const t=e.currentPeek();return"{"===t?y(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===Ti||!t)&&(t===Ni?(e.peek(),o()):k(e,!1))},r=o();return e.resetPeek(),r}(e,t)?(g(e),"{"===r?P(e,t)||o:p(t,11,function(e){const t=n=>{const o=e.currentChar();return"{"!==o&&"%"!==o&&"@"!==o&&"|"!==o&&"("!==o&&")"!==o&&o?o===Ti?n:(n+=o,e.next(),t(n)):n};return t("")}(e))):(8===n&&d(Ei.INVALID_LINKED_FORMAT,a(),0),t.braceNest=0,t.inLinked=!1,R(e,t))}}function R(e,t){let n={type:14};if(t.braceNest>0)return P(e,t)||m(t);if(t.inLinked)return M(e,t)||m(t);switch(e.currentChar()){case"{":return P(e,t)||m(t);case"}":return d(Ei.UNBALANCED_CLOSING_BRACE,a(),0),e.next(),p(t,3,"}");case"@":return M(e,t)||m(t);default:{if(b(e))return n=p(t,1,F(e)),t.braceNest=0,t.inLinked=!1,n;const{isModulo:o,hasSpace:r}=function(e){const t=h(e),n="%"===e.currentPeek()&&"{"===e.peek();return e.resetPeek(),{isModulo:n,hasSpace:t.length>0}}(e);if(o)return r?p(t,0,I(e)):p(t,4,function(e){g(e);const t=e.currentChar();return"%"!==t&&d(Ei.EXPECTED_TOKEN,a(),0,t),e.next(),"%"}(e));if(k(e))return p(t,0,I(e));break}}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:s}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=n,l.lastEndLoc=s,l.offset=r(),l.startLoc=a(),o.currentChar()===Bi?p(l,14):R(o,l)},currentOffset:r,currentPosition:a,context:c}}const Mi="parser",Ri=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Vi(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function Ui(e={}){const t=!1!==e.location,{onError:n,onWarn:o}=e;function r(e,o,r,a,...s){const i=e.currentPosition();if(i.offset+=a,i.column+=a,n){const e=Ai(o,t?hi(r,i):null,{domain:Mi,args:s});n(e)}}function a(e,n,r,a,...s){const i=e.currentPosition();if(i.offset+=a,i.column+=a,o){const e=t?hi(r,i):null;o(function(e,t,...n){const o=yi(_i[e]||"",...n||[]),r={message:String(o),code:e};return t&&(r.location=t),r}(n,e,s))}}function s(e,n,o){const r={type:e};return t&&(r.start=n,r.end=n,r.loc={start:o,end:o}),r}function i(e,n,o,r){r&&(e.type=r),t&&(e.end=n,e.loc&&(e.loc.end=o))}function l(e,t){const n=e.context(),o=s(3,n.offset,n.startLoc);return o.value=t,i(o,e.currentOffset(),e.currentPosition()),o}function c(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:r}=n,a=s(5,o,r);return a.index=parseInt(t,10),e.nextToken(),i(a,e.currentOffset(),e.currentPosition()),a}function u(e,t,n){const o=e.context(),{lastOffset:r,lastStartLoc:a}=o,l=s(4,r,a);return l.key=t,!0===n&&(l.modulo=!0),e.nextToken(),i(l,e.currentOffset(),e.currentPosition()),l}function d(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:r}=n,a=s(9,o,r);return a.value=t.replace(Ri,Vi),e.nextToken(),i(a,e.currentOffset(),e.currentPosition()),a}function p(e){const t=e.context(),n=s(6,t.offset,t.startLoc);let o=e.nextToken();if(9===o.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:o,lastStartLoc:a}=n,l=s(8,o,a);return 12!==t.type?(r(e,Ei.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,0),l.value="",i(l,o,a),{nextConsumeToken:t,node:l}):(null==t.value&&r(e,Ei.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,0,ji(t)),l.value=t.value||"",i(l,e.currentOffset(),e.currentPosition()),{node:l})}(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(10!==o.type&&r(e,Ei.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ji(o)),o=e.nextToken(),2===o.type&&(o=e.nextToken()),o.type){case 11:null==o.value&&r(e,Ei.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ji(o)),n.key=function(e,t){const n=e.context(),o=s(7,n.offset,n.startLoc);return o.value=t,i(o,e.currentOffset(),e.currentPosition()),o}(e,o.value||"");break;case 5:null==o.value&&r(e,Ei.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ji(o)),n.key=u(e,o.value||"");break;case 6:null==o.value&&r(e,Ei.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ji(o)),n.key=c(e,o.value||"");break;case 7:null==o.value&&r(e,Ei.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ji(o)),n.key=d(e,o.value||"");break;default:{r(e,Ei.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc,0);const a=e.context(),l=s(7,a.offset,a.startLoc);return l.value="",i(l,a.offset,a.startLoc),n.key=l,i(n,a.offset,a.startLoc),{nextConsumeToken:o,node:n}}}return i(n,e.currentOffset(),e.currentPosition()),{node:n}}function m(e){const t=e.context(),n=s(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let o=null,m=null;do{const s=o||e.nextToken();switch(o=null,s.type){case 0:null==s.value&&r(e,Ei.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ji(s)),n.items.push(l(e,s.value||""));break;case 6:null==s.value&&r(e,Ei.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ji(s)),n.items.push(c(e,s.value||""));break;case 4:m=!0;break;case 5:null==s.value&&r(e,Ei.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ji(s)),n.items.push(u(e,s.value||"",!!m)),m&&(a(e,Ci.USE_MODULO_SYNTAX,t.lastStartLoc,0,ji(s)),m=null);break;case 7:null==s.value&&r(e,Ei.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ji(s)),n.items.push(d(e,s.value||""));break;case 8:{const t=p(e);n.items.push(t.node),o=t.nextConsumeToken||null;break}}}while(14!==t.currentType&&1!==t.currentType);return i(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function f(e){const t=e.context(),{offset:n,startLoc:o}=t,a=m(e);return 14===t.currentType?a:function(e,t,n,o){const a=e.context();let l=0===o.items.length;const c=s(1,t,n);c.cases=[],c.cases.push(o);do{const t=m(e);l||(l=0===t.items.length),c.cases.push(t)}while(14!==a.currentType);return l&&r(e,Ei.MUST_HAVE_MESSAGES_IN_PLURAL,n,0),i(c,e.currentOffset(),e.currentPosition()),c}(e,n,o,a)}return{parse:function(n){const o=Pi(n,vi({},e)),a=o.context(),l=s(0,a.offset,a.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=f(o),e.onCacheKey&&(l.cacheKey=e.onCacheKey(n)),14!==a.currentType&&r(o,Ei.UNEXPECTED_LEXICAL_ANALYSIS,a.lastStartLoc,0,n[a.offset]||""),i(l,o.currentOffset(),o.currentPosition()),l}}}function ji(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Ki(e,t){for(let n=0;n<e.length;n++)$i(e[n],t)}function $i(e,t){switch(e.type){case 1:Ki(e.cases,t),t.helper("plural");break;case 2:Ki(e.items,t);break;case 6:$i(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function Hi(e,t={}){const n=function(e){const t={ast:e,helpers:new Set};return{context:()=>t,helper:e=>(t.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&$i(e.body,n);const o=n.context();e.helpers=Array.from(o.helpers)}function Wi(e){if(1===e.items.length){const t=e.items[0];3!==t.type&&9!==t.type||(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const o=e.items[n];if(3!==o.type&&9!==o.type)break;if(null==o.value)break;t.push(o.value)}if(t.length===e.items.length){e.static=wi(t);for(let t=0;t<e.items.length;t++){const n=e.items[t];3!==n.type&&9!==n.type||delete n.value}}}}const qi="minifier";function Gi(e){switch(e.t=e.type,e.type){case 0:{const t=e;Gi(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let e=0;e<n.length;e++)Gi(n[e]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let e=0;e<n.length;e++)Gi(n[e]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Gi(t.key),t.k=t.key,delete t.key,t.modifier&&(Gi(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:throw Ai(Ei.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:qi,args:[e.type]})}delete e.type}const Yi="parser";function Xi(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?Xi(e,t.body):e.push("null")}(e,t);break;case 1:!function(e,t){const{helper:n,needIndent:o}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(o());const r=t.cases.length;for(let n=0;n<r&&(Xi(e,t.cases[n]),n!==r-1);n++)e.push(", ");e.deindent(o()),e.push("])")}}(e,t);break;case 2:!function(e,t){const{helper:n,needIndent:o}=e;e.push(`${n("normalize")}([`),e.indent(o());const r=t.items.length;for(let n=0;n<r&&(Xi(e,t.items[n]),n!==r-1);n++)e.push(", ");e.deindent(o()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Xi(e,t.key),t.modifier?(e.push(", "),Xi(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}(e,t);break;case 8:case 7:case 9:case 3:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;default:throw Ai(Ei.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Yi,args:[t.type]})}}const Zi=(e,t={})=>{const n=bi(t.mode)?t.mode:"normal",o=bi(t.filename)?t.filename:"message.intl",r=!!t.sourceMap,a=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",s=t.needIndent?t.needIndent:"arrow"!==n,i=e.helpers||[],l=function(e,t){const{sourceMap:n,filename:o,breakLineCode:r,needIndent:a}=t,s=!1!==t.location,i={filename:o,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:a,indentLevel:0};function l(e,t){i.code+=e}function c(e,t=!0){const n=t?r:"";l(a?n+"  ".repeat(e):n)}return s&&e.loc&&(i.source=e.loc.source),{context:()=>i,push:l,indent:function(e=!0){const t=++i.indentLevel;e&&c(t)},deindent:function(e=!0){const t=--i.indentLevel;e&&c(t)},newline:function(){c(i.indentLevel)},helper:e=>`_${e}`,needIndent:()=>i.needIndent}}(e,{mode:n,filename:o,sourceMap:r,breakLineCode:a,needIndent:s});l.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(s),i.length>0&&(l.push(`const { ${wi(i.map((e=>`${e}: _${e}`)),", ")} } = ctx`),l.newline()),l.push("return "),Xi(l,e),l.deindent(s),l.push("}"),delete e.helpers;const{code:c,map:u}=l.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function Ji(e,t={}){const n=vi({},t),o=!!n.jit,r=!!n.minify,a=null==n.optimize||n.optimize,s=Ui(n).parse(e);return o?(a&&function(e){const t=e.body;2===t.type?Wi(t):t.cases.forEach((e=>Wi(e)))}(s),r&&Gi(s),{ast:s,code:""}):(Hi(s,n),Zi(s,n))}const Qi=[];Qi[0]={w:[0],i:[3,0],"[":[4],o:[7]},Qi[1]={w:[1],".":[2],"[":[4],o:[7]},Qi[2]={w:[2],i:[3,0],0:[3,0]},Qi[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Qi[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Qi[5]={"'":[4,0],o:8,l:[5,0]},Qi[6]={'"':[4,0],o:8,l:[6,0]};const el=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function tl(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function nl(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,el.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}const ol=new Map;function rl(e,t){return si(e)?e[t]:null}const al=e=>e,sl=e=>"",il="text",ll=e=>0===e.length?"":function(e,t=""){return e.reduce(((e,n,o)=>0===o?e+n:e+t+n),"")}(e),cl=e=>null==e?"":ni(e)||ui(e)&&e.toString===li?JSON.stringify(e,null,2):String(e);function ul(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function dl(e={}){const t=e.locale,n=function(e){const t=Ws(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Ws(e.named.count)||Ws(e.named.n))?Ws(e.named.count)?e.named.count:Ws(e.named.n)?e.named.n:t:t}(e),o=si(e.pluralRules)&&ri(t)&&oi(e.pluralRules[t])?e.pluralRules[t]:ul,r=si(e.pluralRules)&&ri(t)&&oi(e.pluralRules[t])?ul:void 0,a=e.list||[],s=e.named||{};Ws(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,s);function i(t){const n=oi(e.messages)?e.messages(t):!!si(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):sl)}const l=ui(e.processor)&&oi(e.processor.normalize)?e.processor.normalize:ll,c=ui(e.processor)&&oi(e.processor.interpolate)?e.processor.interpolate:cl,u={list:e=>a[e],named:e=>s[e],plural:e=>e[o(n,e.length,r)],linked:(t,...n)=>{const[o,r]=n;let a="text",s="";1===n.length?si(o)?(s=o.modifier||s,a=o.type||a):ri(o)&&(s=o||s):2===n.length&&(ri(o)&&(s=o||s),ri(r)&&(a=r||a));const l=i(t)(u),c="vnode"===a&&ni(l)&&s?l[0]:l;return s?(d=s,e.modifiers?e.modifiers[d]:al)(c,a):c;var d},message:i,type:ui(e.processor)&&ri(e.processor.type)?e.processor.type:il,interpolate:c,normalize:l,values:Xs({},a,s)};return u}const pl=Ci.__EXTEND_POINT__,ml=di(pl),fl={NOT_FOUND_KEY:pl,FALLBACK_TO_TRANSLATE:ml(),CANNOT_FORMAT_NUMBER:ml(),FALLBACK_TO_NUMBER_FORMAT:ml(),CANNOT_FORMAT_DATE:ml(),FALLBACK_TO_DATE_FORMAT:ml(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:ml(),__EXTEND_POINT__:ml()};const hl=Ei.__EXTEND_POINT__,gl=di(hl),yl={INVALID_ARGUMENT:hl,INVALID_DATE_ARGUMENT:gl(),INVALID_ISO_DATE_ARGUMENT:gl(),NOT_SUPPORT_NON_STRING_MESSAGE:gl(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:gl(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:gl(),NOT_SUPPORT_LOCALE_TYPE:gl(),__EXTEND_POINT__:gl()};function vl(e){return Ai(e,null,void 0)}yl.INVALID_ARGUMENT,yl.INVALID_DATE_ARGUMENT,yl.INVALID_ISO_DATE_ARGUMENT,yl.NOT_SUPPORT_NON_STRING_MESSAGE,yl.NOT_SUPPORT_LOCALE_PROMISE_VALUE,yl.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION,yl.NOT_SUPPORT_LOCALE_TYPE;function bl(e,t){return null!=t.locale?wl(t.locale):wl(e.locale)}let kl;function wl(e){if(ri(e))return e;if(oi(e)){if(e.resolvedOnce&&null!=kl)return kl;if("Function"===e.constructor.name){const t=e();if(ii(t))throw vl(yl.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return kl=t}throw vl(yl.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw vl(yl.NOT_SUPPORT_LOCALE_TYPE)}function Cl(e,t,n){return[...new Set([n,...ni(t)?t:si(t)?Object.keys(t):ri(t)?[t]:[n]])]}function _l(e,t,n){const o=ri(n)?n:Ll,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let a=r.__localeChainCache.get(o);if(!a){a=[];let e=[n];for(;ni(e);)e=El(a,e,t);const s=ni(t)||!ui(t)?t:t.default?t.default:null;e=ri(s)?[s]:s,ni(e)&&El(a,e,!1),r.__localeChainCache.set(o,a)}return a}function El(e,t,n){let o=!0;for(let r=0;r<t.length&&ai(o);r++){const a=t[r];ri(a)&&(o=xl(e,t[r],n))}return o}function xl(e,t,n){let o;const r=t.split("-");do{o=Al(e,r.join("-"),n),r.splice(-1,1)}while(r.length&&!0===o);return o}function Al(e,t,n){let o=!1;if(!e.includes(t)&&(o=!0,t)){o="!"!==t[t.length-1];const r=t.replace(/!/g,"");e.push(r),(ni(n)||ui(n))&&n[r]&&(o=n[r])}return o}const Sl="9.13.1",Tl=-1,Ll="en-US",Nl="",Il=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let Dl,Ol,Bl;function zl(e){Dl=e}let Fl=null;const Pl=e=>{Fl=e},Ml=()=>Fl;let Rl=0;function Vl(e={}){const t=oi(e.onWarn)?e.onWarn:pi,n=ri(e.version)?e.version:Sl,o=ri(e.locale)||oi(e.locale)?e.locale:Ll,r=oi(o)?Ll:o,a=ni(e.fallbackLocale)||ui(e.fallbackLocale)||ri(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:r,s=ui(e.messages)?e.messages:{[r]:{}},i=ui(e.datetimeFormats)?e.datetimeFormats:{[r]:{}},l=ui(e.numberFormats)?e.numberFormats:{[r]:{}},c=Xs({},e.modifiers||{},{upper:(e,t)=>"text"===t&&ri(e)?e.toUpperCase():"vnode"===t&&si(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&ri(e)?e.toLowerCase():"vnode"===t&&si(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&ri(e)?Il(e):"vnode"===t&&si(e)&&"__v_isVNode"in e?Il(e.children):e}),u=e.pluralRules||{},d=oi(e.missing)?e.missing:null,p=!ai(e.missingWarn)&&!Gs(e.missingWarn)||e.missingWarn,m=!ai(e.fallbackWarn)&&!Gs(e.fallbackWarn)||e.fallbackWarn,f=!!e.fallbackFormat,h=!!e.unresolving,g=oi(e.postTranslation)?e.postTranslation:null,y=ui(e.processor)?e.processor:null,v=!ai(e.warnHtmlMessage)||e.warnHtmlMessage,b=!!e.escapeParameter,k=oi(e.messageCompiler)?e.messageCompiler:Dl;const w=oi(e.messageResolver)?e.messageResolver:Ol||rl,C=oi(e.localeFallbacker)?e.localeFallbacker:Bl||Cl,_=si(e.fallbackContext)?e.fallbackContext:void 0,E=e,x=si(E.__datetimeFormatters)?E.__datetimeFormatters:new Map,A=si(E.__numberFormatters)?E.__numberFormatters:new Map,S=si(E.__meta)?E.__meta:{};Rl++;const T={version:n,cid:Rl,locale:o,fallbackLocale:a,messages:s,modifiers:c,pluralRules:u,missing:d,missingWarn:p,fallbackWarn:m,fallbackFormat:f,unresolving:h,postTranslation:g,processor:y,warnHtmlMessage:v,escapeParameter:b,messageCompiler:k,messageResolver:w,localeFallbacker:C,fallbackContext:_,onWarn:t,__meta:S};return T.datetimeFormats=i,T.numberFormats=l,T.__datetimeFormatters=x,T.__numberFormatters=A,T}function Ul(e,t,n,o,r){const{missing:a,onWarn:s}=e;if(null!==a){const o=a(e,n,t,r);return ri(o)?o:t}return t}function jl(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Kl(e,t){const n=t.indexOf(e);if(-1===n)return!1;for(let a=n+1;a<t.length;a++)if(o=e,r=t[a],o!==r&&o.split("-")[0]===r.split("-")[0])return!0;var o,r;return!1}function $l(e){return t=>function(e,t){const n=t.b||t.body;if(1===(n.t||n.type)){const t=n,o=t.c||t.cases;return e.plural(o.reduce(((t,n)=>[...t,Hl(e,n)]),[]))}return Hl(e,n)}(t,e)}function Hl(e,t){const n=t.s||t.static;if(n)return"text"===e.type?n:e.normalize([n]);{const n=(t.i||t.items).reduce(((t,n)=>[...t,Wl(e,n)]),[]);return e.normalize(n)}}function Wl(e,t){const n=t.t||t.type;switch(n){case 3:{const e=t;return e.v||e.value}case 9:{const e=t;return e.v||e.value}case 4:{const n=t;return e.interpolate(e.named(n.k||n.key))}case 5:{const n=t;return e.interpolate(e.list(null!=n.i?n.i:n.index))}case 6:{const n=t,o=n.m||n.modifier;return e.linked(Wl(e,n.k||n.key),o?Wl(e,o):void 0,e.type)}case 7:{const e=t;return e.v||e.value}case 8:{const e=t;return e.v||e.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const ql=e=>e;let Gl=Object.create(null);const Yl=e=>si(e)&&(0===e.t||0===e.type)&&("b"in e||"body"in e);function Xl(e,t={}){let n=!1;const o=t.onError||Si;return t.onError=e=>{n=!0,o(e)},{...Ji(e,t),detectError:n}}const Zl=(e,t)=>{if(!ri(e))throw vl(yl.NOT_SUPPORT_NON_STRING_MESSAGE);{!ai(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||ql)(e),o=Gl[n];if(o)return o;const{code:r,detectError:a}=Xl(e,t),s=new Function(`return ${r}`)();return a?s:Gl[n]=s}};const Jl=()=>"",Ql=e=>oi(e);function ec(e,...t){const{fallbackFormat:n,postTranslation:o,unresolving:r,messageCompiler:a,fallbackLocale:s,messages:i}=e,[l,c]=oc(...t),u=ai(c.missingWarn)?c.missingWarn:e.missingWarn,d=ai(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,p=ai(c.escapeParameter)?c.escapeParameter:e.escapeParameter,m=!!c.resolvedMessage,f=ri(c.default)||ai(c.default)?ai(c.default)?a?l:()=>l:c.default:n?a?l:()=>l:"",h=n||""!==f,g=bl(e,c);p&&function(e){ni(e.list)?e.list=e.list.map((e=>ri(e)?Qs(e):e)):si(e.named)&&Object.keys(e.named).forEach((t=>{ri(e.named[t])&&(e.named[t]=Qs(e.named[t]))}))}(c);let[y,v,b]=m?[l,g,i[g]||{}]:tc(e,l,g,s,d,u),k=y,w=l;if(m||ri(k)||Yl(k)||Ql(k)||h&&(k=f,w=k),!(m||(ri(k)||Yl(k)||Ql(k))&&ri(v)))return r?Tl:l;let C=!1;const _=Ql(k)?k:nc(e,l,v,k,w,(()=>{C=!0}));if(C)return k;const E=function(e,t,n,o){const{modifiers:r,pluralRules:a,messageResolver:s,fallbackLocale:i,fallbackWarn:l,missingWarn:c,fallbackContext:u}=e,d=o=>{let r=s(n,o);if(null==r&&u){const[,,e]=tc(u,o,t,i,l,c);r=s(e,o)}if(ri(r)||Yl(r)){let n=!1;const a=nc(e,o,t,r,o,(()=>{n=!0}));return n?Jl:a}return Ql(r)?r:Jl},p={locale:t,modifiers:r,pluralRules:a,messages:d};e.processor&&(p.processor=e.processor);o.list&&(p.list=o.list);o.named&&(p.named=o.named);Ws(o.plural)&&(p.pluralIndex=o.plural);return p}(e,v,b,c),x=function(e,t,n){0;const o=t(n);0;return o}(0,_,dl(E));return o?o(x,l):x}function tc(e,t,n,o,r,a){const{messages:s,onWarn:i,messageResolver:l,localeFallbacker:c}=e,u=c(e,o,n);let d,p={},m=null,f=n,h=null;for(let n=0;n<u.length;n++){d=h=u[n],p=s[d]||{};if(null===(m=l(p,t))&&(m=p[t]),ri(m)||Yl(m)||Ql(m))break;if(!Kl(d,u)){const n=Ul(e,t,d,0,"translate");n!==t&&(m=n)}f=h}return[m,d,p]}function nc(e,t,n,o,r,a){const{messageCompiler:s,warnHtmlMessage:i}=e;if(Ql(o)){const e=o;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==s){const e=()=>o;return e.locale=n,e.key=t,e}const l=s(o,function(e,t,n,o,r,a){return{locale:t,key:n,warnHtmlMessage:r,onError:e=>{throw a&&a(e),e},onCacheKey:e=>$s(t,n,e)}}(0,n,r,0,i,a));return l.locale=n,l.key=t,l.source=o,l}function oc(...e){const[t,n,o]=e,r={};if(!(ri(t)||Ws(t)||Ql(t)||Yl(t)))throw vl(yl.INVALID_ARGUMENT);const a=Ws(t)?String(t):(Ql(t),t);return Ws(n)?r.plural=n:ri(n)?r.default=n:ui(n)&&!Ys(n)?r.named=n:ni(n)&&(r.list=n),Ws(o)?r.plural=o:ri(o)?r.default=o:ui(o)&&Xs(r,o),[a,r]}const rc="undefined"!=typeof Intl;rc&&Intl.DateTimeFormat,rc&&Intl.NumberFormat;function ac(e,...t){const{datetimeFormats:n,unresolving:o,fallbackLocale:r,onWarn:a,localeFallbacker:s}=e,{__datetimeFormatters:i}=e;const[l,c,u,d]=ic(...t),p=(ai(u.missingWarn)?u.missingWarn:e.missingWarn,ai(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,!!u.part),m=bl(e,u),f=s(e,r,m);if(!ri(l)||""===l)return new Intl.DateTimeFormat(m,d).format(c);let h,g={},y=null,v=m,b=null;for(let t=0;t<f.length&&(h=b=f[t],g=n[h]||{},y=g[l],!ui(y));t++)Ul(e,l,h,0,"datetime format"),v=b;if(!ui(y)||!ri(h))return o?Tl:l;let k=`${h}__${l}`;Ys(d)||(k=`${k}__${JSON.stringify(d)}`);let w=i.get(k);return w||(w=new Intl.DateTimeFormat(h,Xs({},y,d)),i.set(k,w)),p?w.formatToParts(c):w.format(c)}const sc=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ic(...e){const[t,n,o,r]=e,a={};let s,i={};if(ri(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw vl(yl.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();s=new Date(n);try{s.toISOString()}catch(e){throw vl(yl.INVALID_ISO_DATE_ARGUMENT)}}else if(qs(t)){if(isNaN(t.getTime()))throw vl(yl.INVALID_DATE_ARGUMENT);s=t}else{if(!Ws(t))throw vl(yl.INVALID_ARGUMENT);s=t}return ri(n)?a.key=n:ui(n)&&Object.keys(n).forEach((e=>{sc.includes(e)?i[e]=n[e]:a[e]=n[e]})),ri(o)?a.locale=o:ui(o)&&(i=o),ui(r)&&(i=r),[a.key||"",s,a,i]}function lc(e,t,n){const o=e;for(const e in n){const n=`${t}__${e}`;o.__datetimeFormatters.has(n)&&o.__datetimeFormatters.delete(n)}}function cc(e,...t){const{numberFormats:n,unresolving:o,fallbackLocale:r,onWarn:a,localeFallbacker:s}=e,{__numberFormatters:i}=e;const[l,c,u,d]=dc(...t),p=(ai(u.missingWarn)?u.missingWarn:e.missingWarn,ai(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,!!u.part),m=bl(e,u),f=s(e,r,m);if(!ri(l)||""===l)return new Intl.NumberFormat(m,d).format(c);let h,g={},y=null,v=m,b=null;for(let t=0;t<f.length&&(h=b=f[t],g=n[h]||{},y=g[l],!ui(y));t++)Ul(e,l,h,0,"number format"),v=b;if(!ui(y)||!ri(h))return o?Tl:l;let k=`${h}__${l}`;Ys(d)||(k=`${k}__${JSON.stringify(d)}`);let w=i.get(k);return w||(w=new Intl.NumberFormat(h,Xs({},y,d)),i.set(k,w)),p?w.formatToParts(c):w.format(c)}const uc=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function dc(...e){const[t,n,o,r]=e,a={};let s={};if(!Ws(t))throw vl(yl.INVALID_ARGUMENT);const i=t;return ri(n)?a.key=n:ui(n)&&Object.keys(n).forEach((e=>{uc.includes(e)?s[e]=n[e]:a[e]=n[e]})),ri(o)?a.locale=o:ui(o)&&(s=o),ui(r)&&(s=r),[a.key||"",i,a,s]}function pc(e,t,n){const o=e;for(const e in n){const n=`${t}__${e}`;o.__numberFormatters.has(n)&&o.__numberFormatters.delete(n)}}"boolean"!=typeof __INTLIFY_JIT_COMPILATION__&&(Js().__INTLIFY_JIT_COMPILATION__=!1),"boolean"!=typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(Js().__INTLIFY_DROP_MESSAGE_COMPILER__=!1);
/*!
  * vue-i18n v9.13.1
  * (c) 2024 kazuya kawaguchi
  * Released under the MIT License.
  */
const mc="9.13.1";const fc=fl.__EXTEND_POINT__,hc=di(fc);hc(),hc(),hc(),hc(),hc(),hc(),hc(),hc(),hc();const gc=yl.__EXTEND_POINT__,yc=di(gc),vc={UNEXPECTED_RETURN_TYPE:gc,INVALID_ARGUMENT:yc(),MUST_BE_CALL_SETUP_TOP:yc(),NOT_INSTALLED:yc(),NOT_AVAILABLE_IN_LEGACY_MODE:yc(),REQUIRED_VALUE:yc(),INVALID_VALUE:yc(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:yc(),NOT_INSTALLED_WITH_PROVIDE:yc(),UNEXPECTED_ERROR:yc(),NOT_COMPATIBLE_LEGACY_VUE_I18N:yc(),BRIDGE_SUPPORT_VUE_2_ONLY:yc(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:yc(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:yc(),__EXTEND_POINT__:yc()};function bc(e,...t){return Ai(e,null,void 0)}vc.UNEXPECTED_RETURN_TYPE,vc.INVALID_ARGUMENT,vc.MUST_BE_CALL_SETUP_TOP,vc.NOT_INSTALLED,vc.UNEXPECTED_ERROR,vc.NOT_AVAILABLE_IN_LEGACY_MODE,vc.REQUIRED_VALUE,vc.INVALID_VALUE,vc.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN,vc.NOT_INSTALLED_WITH_PROVIDE,vc.NOT_COMPATIBLE_LEGACY_VUE_I18N,vc.BRIDGE_SUPPORT_VUE_2_ONLY,vc.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION,vc.NOT_AVAILABLE_COMPOSITION_IN_LEGACY;const kc=Ks("__translateVNode"),wc=Ks("__datetimeParts"),Cc=Ks("__numberParts"),_c=Ks("__setPluralRules");Ks("__intlifyMeta");const Ec=Ks("__injectWithOption"),xc=Ks("__dispose");function Ac(e){if(!si(e))return e;for(const t in e)if(ti(e,t))if(t.includes(".")){const n=t.split("."),o=n.length-1;let r=e,a=!1;for(let e=0;e<o;e++){if(n[e]in r||(r[n[e]]={}),!si(r[n[e]])){a=!0;break}r=r[n[e]]}a||(r[n[o]]=e[t],delete e[t]),si(r[n[o]])&&Ac(r[n[o]])}else si(e[t])&&Ac(e[t]);return e}function Sc(e,t){const{messages:n,__i18n:o,messageResolver:r,flatJson:a}=t,s=ui(n)?n:ni(o)?{}:{[e]:{}};if(ni(o)&&o.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(s[t]=s[t]||{},fi(n,s[t])):fi(n,s)}else ri(e)&&fi(JSON.parse(e),s)})),null==r&&a)for(const e in s)ti(s,e)&&Ac(s[e]);return s}function Tc(e){return e.type}function Lc(e,t,n){let o=si(t.messages)?t.messages:{};"__i18nGlobal"in n&&(o=Sc(e.locale.value,{messages:o,__i18n:n.__i18nGlobal}));const r=Object.keys(o);if(r.length&&r.forEach((t=>{e.mergeLocaleMessage(t,o[t])})),si(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(si(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}function Nc(e){return Zr(Br,null,e,0)}const Ic=()=>[],Dc=()=>!1;let Oc=0;function Bc(e){return(t,n,o,r)=>e(n,o,pa()||void 0,r)}function zc(e={},t){const{__root:n,__injectWithOption:o}=e,r=void 0===n,a=e.flatJson,s=js?St:Tt,i=!!e.translateExistCompatible;let l=!ai(e.inheritLocale)||e.inheritLocale;const c=s(n&&l?n.locale.value:ri(e.locale)?e.locale:Ll),u=s(n&&l?n.fallbackLocale.value:ri(e.fallbackLocale)||ni(e.fallbackLocale)||ui(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:c.value),d=s(Sc(c.value,e)),p=s(ui(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),m=s(ui(e.numberFormats)?e.numberFormats:{[c.value]:{}});let f=n?n.missingWarn:!ai(e.missingWarn)&&!Gs(e.missingWarn)||e.missingWarn,h=n?n.fallbackWarn:!ai(e.fallbackWarn)&&!Gs(e.fallbackWarn)||e.fallbackWarn,g=n?n.fallbackRoot:!ai(e.fallbackRoot)||e.fallbackRoot,y=!!e.fallbackFormat,v=oi(e.missing)?e.missing:null,b=oi(e.missing)?Bc(e.missing):null,k=oi(e.postTranslation)?e.postTranslation:null,w=n?n.warnHtmlMessage:!ai(e.warnHtmlMessage)||e.warnHtmlMessage,C=!!e.escapeParameter;const _=n?n.modifiers:ui(e.modifiers)?e.modifiers:{};let E,x=e.pluralRules||n&&n.pluralRules;E=(()=>{r&&Pl(null);const t={version:mc,locale:c.value,fallbackLocale:u.value,messages:d.value,modifiers:_,pluralRules:x,missing:null===b?void 0:b,missingWarn:f,fallbackWarn:h,fallbackFormat:y,unresolving:!0,postTranslation:null===k?void 0:k,warnHtmlMessage:w,escapeParameter:C,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=p.value,t.numberFormats=m.value,t.__datetimeFormatters=ui(E)?E.__datetimeFormatters:void 0,t.__numberFormatters=ui(E)?E.__numberFormatters:void 0;const n=Vl(t);return r&&Pl(n),n})(),jl(E,c.value,u.value);const A=La({get:()=>c.value,set:e=>{c.value=e,E.locale=c.value}}),S=La({get:()=>u.value,set:e=>{u.value=e,E.fallbackLocale=u.value,jl(E,c.value,e)}}),T=La((()=>d.value)),L=La((()=>p.value)),N=La((()=>m.value));const I=(e,t,o,a,s,i)=>{let l;c.value,u.value,d.value,p.value,m.value;try{0,r||(E.fallbackContext=n?Ml():void 0),l=e(E)}finally{0,r||(E.fallbackContext=void 0)}if("translate exists"!==o&&Ws(l)&&l===Tl||"translate exists"===o&&!l){const[e,o]=t();return n&&g?a(n):s(e)}if(i(l))return l;throw bc(vc.UNEXPECTED_RETURN_TYPE)};function D(...e){return I((t=>Reflect.apply(ec,null,[t,...e])),(()=>oc(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>ri(e)))}const O={normalize:function(e){return e.map((e=>ri(e)||Ws(e)||ai(e)?Nc(String(e)):e))},interpolate:e=>e,type:"vnode"};function B(e){return d.value[e]||{}}Oc++,n&&js&&(yr(n.locale,(e=>{l&&(c.value=e,E.locale=e,jl(E,c.value,u.value))})),yr(n.fallbackLocale,(e=>{l&&(u.value=e,E.fallbackLocale=e,jl(E,c.value,u.value))})));const z={id:Oc,locale:A,fallbackLocale:S,get inheritLocale(){return l},set inheritLocale(e){l=e,e&&n&&(c.value=n.locale.value,u.value=n.fallbackLocale.value,jl(E,c.value,u.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:T,get modifiers(){return _},get pluralRules(){return x||{}},get isGlobal(){return r},get missingWarn(){return f},set missingWarn(e){f=e,E.missingWarn=f},get fallbackWarn(){return h},set fallbackWarn(e){h=e,E.fallbackWarn=h},get fallbackRoot(){return g},set fallbackRoot(e){g=e},get fallbackFormat(){return y},set fallbackFormat(e){y=e,E.fallbackFormat=y},get warnHtmlMessage(){return w},set warnHtmlMessage(e){w=e,E.warnHtmlMessage=e},get escapeParameter(){return C},set escapeParameter(e){C=e,E.escapeParameter=e},t:D,getLocaleMessage:B,setLocaleMessage:function(e,t){if(a){const n={[e]:t};for(const e in n)ti(n,e)&&Ac(n[e]);t=n[e]}d.value[e]=t,E.messages=d.value},mergeLocaleMessage:function(e,t){d.value[e]=d.value[e]||{};const n={[e]:t};if(a)for(const e in n)ti(n,e)&&Ac(n[e]);fi(t=n[e],d.value[e]),E.messages=d.value},getPostTranslationHandler:function(){return oi(k)?k:null},setPostTranslationHandler:function(e){k=e,E.postTranslation=e},getMissingHandler:function(){return v},setMissingHandler:function(e){null!==e&&(b=Bc(e)),v=e,E.missing=b},[_c]:function(e){x=e,E.pluralRules=x}};return z.datetimeFormats=L,z.numberFormats=N,z.rt=function(...e){const[t,n,o]=e;if(o&&!si(o))throw bc(vc.INVALID_ARGUMENT);return D(t,n,Xs({resolvedMessage:!0},o||{}))},z.te=function(e,t){return I((()=>{if(!e)return!1;const n=B(ri(t)?t:c.value),o=E.messageResolver(n,e);return i?null!=o:Yl(o)||Ql(o)||ri(o)}),(()=>[e]),"translate exists",(n=>Reflect.apply(n.te,n,[e,t])),Dc,(e=>ai(e)))},z.tm=function(e){const t=function(e){let t=null;const n=_l(E,u.value,c.value);for(let o=0;o<n.length;o++){const r=d.value[n[o]]||{},a=E.messageResolver(r,e);if(null!=a){t=a;break}}return t}(e);return null!=t?t:n&&n.tm(e)||{}},z.d=function(...e){return I((t=>Reflect.apply(ac,null,[t,...e])),(()=>ic(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>Nl),(e=>ri(e)))},z.n=function(...e){return I((t=>Reflect.apply(cc,null,[t,...e])),(()=>dc(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>Nl),(e=>ri(e)))},z.getDateTimeFormat=function(e){return p.value[e]||{}},z.setDateTimeFormat=function(e,t){p.value[e]=t,E.datetimeFormats=p.value,lc(E,e,t)},z.mergeDateTimeFormat=function(e,t){p.value[e]=Xs(p.value[e]||{},t),E.datetimeFormats=p.value,lc(E,e,t)},z.getNumberFormat=function(e){return m.value[e]||{}},z.setNumberFormat=function(e,t){m.value[e]=t,E.numberFormats=m.value,pc(E,e,t)},z.mergeNumberFormat=function(e,t){m.value[e]=Xs(m.value[e]||{},t),E.numberFormats=m.value,pc(E,e,t)},z[Ec]=o,z[kc]=function(...e){return I((t=>{let n;const o=t;try{o.processor=O,n=Reflect.apply(ec,null,[o,...e])}finally{o.processor=null}return n}),(()=>oc(...e)),"translate",(t=>t[kc](...e)),(e=>[Nc(e)]),(e=>ni(e)))},z[wc]=function(...e){return I((t=>Reflect.apply(ac,null,[t,...e])),(()=>ic(...e)),"datetime format",(t=>t[wc](...e)),Ic,(e=>ri(e)||ni(e)))},z[Cc]=function(...e){return I((t=>Reflect.apply(cc,null,[t,...e])),(()=>dc(...e)),"number format",(t=>t[Cc](...e)),Ic,(e=>ri(e)||ni(e)))},z}const Fc={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function Pc(e){return Or}const Mc=Sn({name:"i18n-t",props:Xs({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ws(e)||!isNaN(e)}},Fc),setup(e,t){const{slots:n,attrs:o}=t,r=e.i18n||Yc({useScope:e.scope,__useComponent:!0});return()=>{const a=Object.keys(n).filter((e=>"_"!==e)),s={};e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=ri(e.plural)?+e.plural:e.plural);const i=function({slots:e},t){if(1===t.length&&"default"===t[0])return(e.default?e.default():[]).reduce(((e,t)=>[...e,...t.type===Or?t.children:[t]]),[]);return t.reduce(((t,n)=>{const o=e[n];return o&&(t[n]=o()),t}),{})}(t,a),l=r[kc](e.keypath,i,s),c=Xs({},o);return Na(ri(e.tag)||si(e.tag)?e.tag:Pc(),c,l)}}}),Rc=Mc;function Vc(e,t,n,o){const{slots:r,attrs:a}=t;return()=>{const t={part:!0};let s={};e.locale&&(t.locale=e.locale),ri(e.format)?t.key=e.format:si(e.format)&&(ri(e.format.key)&&(t.key=e.format.key),s=Object.keys(e.format).reduce(((t,o)=>n.includes(o)?Xs({},t,{[o]:e.format[o]}):t),{}));const i=o(e.value,t,s);let l=[t.key];ni(i)?l=i.map(((e,t)=>{const n=r[e.type],o=n?n({[e.type]:e.value,index:t,parts:i}):[e.value];var a;return ni(a=o)&&!ri(a[0])&&(o[0].key=`${e.type}-${t}`),o})):ri(i)&&(l=[i]);const c=Xs({},a);return Na(ri(e.tag)||si(e.tag)?e.tag:Pc(),c,l)}}const Uc=Sn({name:"i18n-n",props:Xs({value:{type:Number,required:!0},format:{type:[String,Object]}},Fc),setup(e,t){const n=e.i18n||Yc({useScope:e.scope,__useComponent:!0});return Vc(e,t,uc,((...e)=>n[Cc](...e)))}}),jc=Uc,Kc=Sn({name:"i18n-d",props:Xs({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Fc),setup(e,t){const n=e.i18n||Yc({useScope:e.scope,__useComponent:!0});return Vc(e,t,sc,((...e)=>n[wc](...e)))}}),$c=Kc;function Hc(e){if(ri(e))return{path:e};if(ui(e)){if(!("path"in e))throw bc(vc.REQUIRED_VALUE);return e}throw bc(vc.INVALID_VALUE)}function Wc(e){const{path:t,locale:n,args:o,choice:r,plural:a}=e,s={},i=o||{};return ri(n)&&(s.locale=n),Ws(r)&&(s.plural=r),Ws(a)&&(s.plural=a),[t,i,s]}function qc(e,t,...n){const o=ui(n[0])?n[0]:{},r=!!o.useI18nComponentName;(!ai(o.globalInstall)||o.globalInstall)&&([r?"i18n":Rc.name,"I18nT"].forEach((t=>e.component(t,Rc))),[jc.name,"I18nN"].forEach((t=>e.component(t,jc))),[$c.name,"I18nD"].forEach((t=>e.component(t,$c)))),e.directive("t",function(e){const t=t=>{const{instance:n,modifiers:o,value:r}=t;if(!n||!n.$)throw bc(vc.UNEXPECTED_ERROR);const a=function(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const o=n.__getInstance(t);return null!=o?o.__composer:e.global.__composer}}(e,n.$),s=Hc(r);return[Reflect.apply(a.t,a,[...Wc(s)]),a]};return{created:(n,o)=>{const[r,a]=t(o);js&&e.global===a&&(n.__i18nWatcher=yr(a.locale,(()=>{o.instance&&o.instance.$forceUpdate()}))),n.__composer=a,n.textContent=r},unmounted:e=>{js&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){const n=e.__composer,o=Hc(t);e.textContent=Reflect.apply(n.t,n,[...Wc(o)])}},getSSRProps:e=>{const[n]=t(e);return{textContent:n}}}}(t))}const Gc=Ks("global-vue-i18n");function Yc(e={}){const t=pa();if(null==t)throw bc(vc.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&null!=t.appContext.app&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw bc(vc.NOT_INSTALLED);const n=function(e){{const t=No(e.isCE?Gc:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw bc(e.isCE?vc.NOT_INSTALLED_WITH_PROVIDE:vc.UNEXPECTED_ERROR);return t}}(t),o=function(e){return"composition"===e.mode?e.global:e.global.__composer}(n),r=Tc(t),a=function(e,t){return Ys(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,r);if("global"===a)return Lc(o,e,r),o;if("parent"===a){let r=function(e,t,n=!1){let o=null;const r=t.root;let a=function(e,t=!1){if(null==e)return null;return t&&e.vnode.ctx||e.parent}(t,n);for(;null!=a;){const t=e;if("composition"===e.mode&&(o=t.__getInstance(a)),null!=o)break;if(r===a)break;a=a.parent}return o}(n,t,e.__useComponent);return null==r&&(r=o),r}const s=n;let i=s.__getInstance(t);if(null==i){const n=Xs({},e);"__i18n"in r&&(n.__i18n=r.__i18n),o&&(n.__root=o),i=zc(n),s.__composerExtend&&(i[xc]=s.__composerExtend(i)),function(e,t,n){Vn((()=>{0}),t),$n((()=>{const o=n;e.__deleteInstance(t);const r=o[xc];r&&(r(),delete o[xc])}),t)}(s,t,i),s.__setInstance(t,i)}return i}const Xc=["locale","fallbackLocale","availableLocales"],Zc=["t","rt","d","n","tm","te"];var Jc;"boolean"!=typeof __INTLIFY_JIT_COMPILATION__&&(Js().__INTLIFY_JIT_COMPILATION__=!1),"boolean"!=typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(Js().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),__INTLIFY_JIT_COMPILATION__?zl((function(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&ri(e)){!ai(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||ql)(e),o=Gl[n];if(o)return o;const{ast:r,detectError:a}=Xl(e,{...t,location:!1,jit:!0}),s=$l(r);return a?s:Gl[n]=s}{const t=e.cacheKey;if(t){return Gl[t]||(Gl[t]=$l(e))}return $l(e)}})):zl(Zl),Jc=function(e,t){if(!si(e))return null;let n=ol.get(t);if(n||(n=function(e){const t=[];let n,o,r,a,s,i,l,c=-1,u=0,d=0;const p=[];function m(){const t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,r="\\"+t,p[0](),!0}for(p[0]=()=>{void 0===o?o=r:o+=r},p[1]=()=>{void 0!==o&&(t.push(o),o=void 0)},p[2]=()=>{p[0](),d++},p[3]=()=>{if(d>0)d--,u=4,p[0]();else{if(d=0,void 0===o)return!1;if(o=nl(o),!1===o)return!1;p[1]()}};null!==u;)if(c++,n=e[c],"\\"!==n||!m()){if(a=tl(n),l=Qi[u],s=l[a]||l.l||8,8===s)return;if(u=s[0],void 0!==s[1]&&(i=p[s[1]],i&&(r=n,!1===i())))return;if(7===u)return t}}(t),n&&ol.set(t,n)),!n)return null;const o=n.length;let r=e,a=0;for(;a<o;){const e=r[n[a]];if(void 0===e)return null;if(oi(r))return null;r=e,a++}return r},Ol=Jc,Bl=_l;const Qc=["value"],eu=["value"],tu={__name:"InsertWorkflowData",props:{data:{type:Object,default:()=>({})},table:{type:Boolean,default:!0},extraRow:Boolean,variables:Boolean,columns:{type:Array,default:()=>[]}},emits:["update"],setup(e,{emit:t}){const n=t,{t:o}=Yc(),r=No("workflow",{});function a(e){n("update",e)}return(t,n)=>{const s=Xn("ui-checkbox"),i=Xn("ui-input"),l=Xn("ui-select");return Rr(),$r(Or,null,[e.variables?(Rr(),$r(Or,{key:0},[Zr(s,{"model-value":e.data.assignVariable,block:"",class:"block-variable mt-4",onChange:n[0]||(n[0]=e=>a({assignVariable:e}))},{default:un((()=>[ta(te(It(o)("workflow.variables.assign")),1)])),_:1},8,["model-value"]),e.data.assignVariable?(Rr(),Hr(i,{key:0,"model-value":e.data.variableName,placeholder:It(o)("workflow.variables.name"),title:It(o)("workflow.variables.name"),class:"mt-2 w-full",onChange:n[1]||(n[1]=e=>a({variableName:e}))},null,8,["model-value","placeholder","title"])):na("",!0)],64)):na("",!0),e.table&&!It(r)?.isPackage&&It(r).columns?.value?(Rr(),$r(Or,{key:1},[Zr(s,{"model-value":e.data.saveData,block:"",class:"mt-4",onChange:n[2]||(n[2]=e=>a({saveData:e}))},{default:un((()=>[ta(te(It(o)("workflow.blocks.base.table.checkbox")),1)])),_:1},8,["model-value"]),e.data.saveData?(Rr(),Hr(l,{key:0,"model-value":e.data.dataColumn,placeholder:It(o)("workflow.blocks.base.table.select"),class:"mt-2 w-full",onChange:n[3]||(n[3]=e=>a({dataColumn:e}))},{default:un((()=>[(Rr(!0),$r(Or,null,no([...e.columns,...It(r).columns.value],(e=>(Rr(),$r("option",{key:e.id,value:e.id},te(e.name),9,Qc)))),128))])),_:1},8,["model-value","placeholder"])):na("",!0)],64)):na("",!0),e.extraRow?(Rr(),$r(Or,{key:2},[Zr(s,{"model-value":e.data.addExtraRow,class:"mt-4",block:"",onChange:n[4]||(n[4]=e=>a({addExtraRow:e}))},{default:un((()=>[ta(te(It(o)("workflow.blocks.base.table.extraRow.checkbox")),1)])),_:1},8,["model-value"]),e.data.addExtraRow?(Rr(),$r(Or,{key:0},[Zr(i,{"model-value":e.data.extraRowValue,title:It(o)("workflow.blocks.base.table.extraRow.title"),placeholder:It(o)("workflow.blocks.base.table.extraRow.placeholder"),class:"my-2 w-full",onChange:n[5]||(n[5]=e=>a({extraRowValue:e}))},null,8,["model-value","title","placeholder"]),Zr(l,{"model-value":e.data.extraRowDataColumn,placeholder:"Select column",class:"mt-1 w-full",onChange:n[6]||(n[6]=e=>a({extraRowDataColumn:e}))},{default:un((()=>[(Rr(!0),$r(Or,null,no([...e.columns,...It(r).columns.value],(e=>(Rr(),$r("option",{key:e.id,value:e.id},te(e.name),9,eu)))),128))])),_:1},8,["model-value"])],64)):na("",!0)],64)):na("",!0)],64)}}},nu=tu;var ou,ru=Object.defineProperty,au=Object.getOwnPropertySymbols,su=Object.prototype.hasOwnProperty,iu=Object.prototype.propertyIsEnumerable,lu=(e,t,n)=>t in e?ru(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cu=(e,t)=>{for(var n in t||(t={}))su.call(t,n)&&lu(e,n,t[n]);if(au)for(var n of au(t))iu.call(t,n)&&lu(e,n,t[n]);return e},uu=e=>"function"==typeof e,du=e=>"string"==typeof e,pu=e=>du(e)&&e.trim().length>0,mu=e=>void 0===e,fu=e=>"object"==typeof e&&null!==e,hu=e=>window.TouchEvent&&e instanceof TouchEvent,gu=e=>bu(e,"component")&&yu(e.component),yu=e=>{return!mu(e)&&(du(e)||(uu(t=e)||fu(t))||gu(e));var t},vu=e=>fu(e)&&["height","width","right","left","top","bottom"].every((t=>"number"==typeof e[t])),bu=(e,t)=>(fu(e)||uu(e))&&t in e,ku=(ou=0,()=>ou++);function wu(e){return hu(e)?e.targetTouches[0].clientX:e.clientX}function Cu(e){return hu(e)?e.targetTouches[0].clientY:e.clientY}var _u,Eu,xu,Au,Su,Tu,Lu=e=>gu(e)?Lu(e.component):(e=>bu(e,"tag")&&pu(e.tag))(e)?Sn({render:()=>e}):"string"==typeof e?e:bt(It(e)),Nu=class{constructor(){this.allHandlers={}}getHandlers(e){return this.allHandlers[e]||[]}on(e,t){const n=this.getHandlers(e);n.push(t),this.allHandlers[e]=n}off(e,t){const n=this.getHandlers(e);n.splice(n.indexOf(t)>>>0,1)}emit(e,t){this.getHandlers(e).forEach((e=>e(t)))}};(Eu=_u||(_u={})).SUCCESS="success",Eu.ERROR="error",Eu.WARNING="warning",Eu.INFO="info",Eu.DEFAULT="default",(Au=xu||(xu={})).TOP_LEFT="top-left",Au.TOP_CENTER="top-center",Au.TOP_RIGHT="top-right",Au.BOTTOM_LEFT="bottom-left",Au.BOTTOM_CENTER="bottom-center",Au.BOTTOM_RIGHT="bottom-right",(Tu=Su||(Su={})).ADD="add",Tu.DISMISS="dismiss",Tu.UPDATE="update",Tu.CLEAR="clear",Tu.UPDATE_DEFAULTS="update_defaults";var Iu="Vue-Toastification",Du={type:{type:String,default:_u.DEFAULT},classNames:{type:[String,Array],default:()=>[]},trueBoolean:{type:Boolean,default:!0}},Ou={type:Du.type,customIcon:{type:[String,Boolean,Object,Function],default:!0}},Bu={component:{type:[String,Object,Function,Boolean],default:"button"},classNames:Du.classNames,showOnHover:{type:Boolean,default:!1},ariaLabel:{type:String,default:"close"}},zu={timeout:{type:[Number,Boolean],default:5e3},hideProgressBar:{type:Boolean,default:!1},isRunning:{type:Boolean,default:!1}},Fu={transition:{type:[Object,String],default:`${Iu}__bounce`}},Pu={CORE_TOAST:{position:{type:String,default:xu.TOP_RIGHT},draggable:Du.trueBoolean,draggablePercent:{type:Number,default:.6},pauseOnFocusLoss:Du.trueBoolean,pauseOnHover:Du.trueBoolean,closeOnClick:Du.trueBoolean,timeout:zu.timeout,hideProgressBar:zu.hideProgressBar,toastClassName:Du.classNames,bodyClassName:Du.classNames,icon:Ou.customIcon,closeButton:Bu.component,closeButtonClassName:Bu.classNames,showCloseButtonOnHover:Bu.showOnHover,accessibility:{type:Object,default:()=>({toastRole:"alert",closeButtonLabel:"close"})},rtl:{type:Boolean,default:!1},eventBus:{type:Object,required:!1,default:()=>new Nu}},TOAST:{id:{type:[String,Number],required:!0,default:0},type:Du.type,content:{type:[String,Object,Function],required:!0,default:""},onClick:{type:Function,default:void 0},onClose:{type:Function,default:void 0}},CONTAINER:{container:{type:[Object,Function],default:()=>document.body},newestOnTop:Du.trueBoolean,maxToasts:{type:Number,default:20},transition:Fu.transition,toastDefaults:Object,filterBeforeCreate:{type:Function,default:e=>e},filterToasts:{type:Function,default:e=>e},containerClassName:Du.classNames,onMounted:Function,shareAppContext:[Boolean,Object]},PROGRESS_BAR:zu,ICON:Ou,TRANSITION:Fu,CLOSE_BUTTON:Bu},Mu=Sn({name:"VtProgressBar",props:Pu.PROGRESS_BAR,data:()=>({hasClass:!0}),computed:{style(){return{animationDuration:`${this.timeout}ms`,animationPlayState:this.isRunning?"running":"paused",opacity:this.hideProgressBar?0:1}},cpClass(){return this.hasClass?`${Iu}__progress-bar`:""}},watch:{timeout(){this.hasClass=!1,this.$nextTick((()=>this.hasClass=!0))}},mounted(){this.$el.addEventListener("animationend",this.animationEnded)},beforeUnmount(){this.$el.removeEventListener("animationend",this.animationEnded)},methods:{animationEnded(){this.$emit("close-toast")}}});Mu.render=function(e,t){return Rr(),$r("div",{style:$(e.style),class:Y(e.cpClass)},null,6)};var Ru=Mu,Vu=Sn({name:"VtCloseButton",props:Pu.CLOSE_BUTTON,computed:{buttonComponent(){return!1!==this.component?Lu(this.component):"button"},classes(){const e=[`${Iu}__close-button`];return this.showOnHover&&e.push("show-on-hover"),e.concat(this.classNames)}}}),Uu=ta(" × ");Vu.render=function(e,t){return Rr(),Hr(Jn(e.buttonComponent),sa({"aria-label":e.ariaLabel,class:e.classes},e.$attrs),{default:un((()=>[Uu])),_:1},16,["aria-label","class"])};var ju=Vu,Ku={},$u={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"check-circle",class:"svg-inline--fa fa-check-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Hu=[Xr("path",{fill:"currentColor",d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},null,-1)];Ku.render=function(e,t){return Rr(),$r("svg",$u,Hu)};var Wu=Ku,qu={},Gu={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"info-circle",class:"svg-inline--fa fa-info-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Yu=[Xr("path",{fill:"currentColor",d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},null,-1)];qu.render=function(e,t){return Rr(),$r("svg",Gu,Yu)};var Xu=qu,Zu={},Ju={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-circle",class:"svg-inline--fa fa-exclamation-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Qu=[Xr("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1)];Zu.render=function(e,t){return Rr(),$r("svg",Ju,Qu)};var ed=Zu,td={},nd={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-triangle",class:"svg-inline--fa fa-exclamation-triangle fa-w-18",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},od=[Xr("path",{fill:"currentColor",d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1)];td.render=function(e,t){return Rr(),$r("svg",nd,od)};var rd=td,ad=Sn({name:"VtIcon",props:Pu.ICON,computed:{customIconChildren(){return bu(this.customIcon,"iconChildren")?this.trimValue(this.customIcon.iconChildren):""},customIconClass(){return du(this.customIcon)?this.trimValue(this.customIcon):bu(this.customIcon,"iconClass")?this.trimValue(this.customIcon.iconClass):""},customIconTag(){return bu(this.customIcon,"iconTag")?this.trimValue(this.customIcon.iconTag,"i"):"i"},hasCustomIcon(){return this.customIconClass.length>0},component(){return this.hasCustomIcon?this.customIconTag:yu(this.customIcon)?Lu(this.customIcon):this.iconTypeComponent},iconTypeComponent(){return{[_u.DEFAULT]:Xu,[_u.INFO]:Xu,[_u.SUCCESS]:Wu,[_u.ERROR]:rd,[_u.WARNING]:ed}[this.type]},iconClasses(){const e=[`${Iu}__icon`];return this.hasCustomIcon?e.concat(this.customIconClass):e}},methods:{trimValue:(e,t="")=>pu(e)?e.trim():t}});ad.render=function(e,t){return Rr(),Hr(Jn(e.component),{class:Y(e.iconClasses)},{default:un((()=>[ta(te(e.customIconChildren),1)])),_:1},8,["class"])};var sd=Sn({name:"VtToast",components:{ProgressBar:Ru,CloseButton:ju,Icon:ad},inheritAttrs:!1,props:Object.assign({},Pu.CORE_TOAST,Pu.TOAST),data:()=>({isRunning:!0,disableTransitions:!1,beingDragged:!1,dragStart:0,dragPos:{x:0,y:0},dragRect:{}}),computed:{classes(){const e=[`${Iu}__toast`,`${Iu}__toast--${this.type}`,`${this.position}`].concat(this.toastClassName);return this.disableTransitions&&e.push("disable-transition"),this.rtl&&e.push(`${Iu}__toast--rtl`),e},bodyClasses(){return[`${Iu}__toast-${du(this.content)?"body":"component-body"}`].concat(this.bodyClassName)},draggableStyle(){return this.dragStart===this.dragPos.x?{}:this.beingDragged?{transform:`translateX(${this.dragDelta}px)`,opacity:1-Math.abs(this.dragDelta/this.removalDistance)}:{transition:"transform 0.2s, opacity 0.2s",transform:"translateX(0)",opacity:1}},dragDelta(){return this.beingDragged?this.dragPos.x-this.dragStart:0},removalDistance(){return vu(this.dragRect)?(this.dragRect.right-this.dragRect.left)*this.draggablePercent:0}},mounted(){this.draggable&&this.draggableSetup(),this.pauseOnFocusLoss&&this.focusSetup()},beforeUnmount(){this.draggable&&this.draggableCleanup(),this.pauseOnFocusLoss&&this.focusCleanup()},methods:{hasProp:bu,getVueComponentFromObj:Lu,closeToast(){this.eventBus.emit(Su.DISMISS,this.id)},clickHandler(){this.onClick&&this.onClick(this.closeToast),this.closeOnClick&&(this.beingDragged&&this.dragStart!==this.dragPos.x||this.closeToast())},timeoutHandler(){this.closeToast()},hoverPause(){this.pauseOnHover&&(this.isRunning=!1)},hoverPlay(){this.pauseOnHover&&(this.isRunning=!0)},focusPause(){this.isRunning=!1},focusPlay(){this.isRunning=!0},focusSetup(){addEventListener("blur",this.focusPause),addEventListener("focus",this.focusPlay)},focusCleanup(){removeEventListener("blur",this.focusPause),removeEventListener("focus",this.focusPlay)},draggableSetup(){const e=this.$el;e.addEventListener("touchstart",this.onDragStart,{passive:!0}),e.addEventListener("mousedown",this.onDragStart),addEventListener("touchmove",this.onDragMove,{passive:!1}),addEventListener("mousemove",this.onDragMove),addEventListener("touchend",this.onDragEnd),addEventListener("mouseup",this.onDragEnd)},draggableCleanup(){const e=this.$el;e.removeEventListener("touchstart",this.onDragStart),e.removeEventListener("mousedown",this.onDragStart),removeEventListener("touchmove",this.onDragMove),removeEventListener("mousemove",this.onDragMove),removeEventListener("touchend",this.onDragEnd),removeEventListener("mouseup",this.onDragEnd)},onDragStart(e){this.beingDragged=!0,this.dragPos={x:wu(e),y:Cu(e)},this.dragStart=wu(e),this.dragRect=this.$el.getBoundingClientRect()},onDragMove(e){this.beingDragged&&(e.preventDefault(),this.isRunning&&(this.isRunning=!1),this.dragPos={x:wu(e),y:Cu(e)})},onDragEnd(){this.beingDragged&&(Math.abs(this.dragDelta)>=this.removalDistance?(this.disableTransitions=!0,this.$nextTick((()=>this.closeToast()))):setTimeout((()=>{this.beingDragged=!1,vu(this.dragRect)&&this.pauseOnHover&&this.dragRect.bottom>=this.dragPos.y&&this.dragPos.y>=this.dragRect.top&&this.dragRect.left<=this.dragPos.x&&this.dragPos.x<=this.dragRect.right?this.isRunning=!1:this.isRunning=!0})))}}}),id=["role"];sd.render=function(e,t){const n=Xn("Icon"),o=Xn("CloseButton"),r=Xn("ProgressBar");return Rr(),$r("div",{class:Y(e.classes),style:$(e.draggableStyle),onClick:t[0]||(t[0]=(...t)=>e.clickHandler&&e.clickHandler(...t)),onMouseenter:t[1]||(t[1]=(...t)=>e.hoverPause&&e.hoverPause(...t)),onMouseleave:t[2]||(t[2]=(...t)=>e.hoverPlay&&e.hoverPlay(...t))},[e.icon?(Rr(),Hr(n,{key:0,"custom-icon":e.icon,type:e.type},null,8,["custom-icon","type"])):na("v-if",!0),Xr("div",{role:e.accessibility.toastRole||"alert",class:Y(e.bodyClasses)},["string"==typeof e.content?(Rr(),$r(Or,{key:0},[ta(te(e.content),1)],2112)):(Rr(),Hr(Jn(e.getVueComponentFromObj(e.content)),sa({key:1,"toast-id":e.id},e.hasProp(e.content,"props")?e.content.props:{},ao(e.hasProp(e.content,"listeners")?e.content.listeners:{}),{onCloseToast:e.closeToast}),null,16,["toast-id","onCloseToast"]))],10,id),e.closeButton?(Rr(),Hr(o,{key:1,component:e.closeButton,"class-names":e.closeButtonClassName,"show-on-hover":e.showCloseButtonOnHover,"aria-label":e.accessibility.closeButtonLabel,onClick:Is(e.closeToast,["stop"])},null,8,["component","class-names","show-on-hover","aria-label","onClick"])):na("v-if",!0),e.timeout?(Rr(),Hr(r,{key:2,"is-running":e.isRunning,"hide-progress-bar":e.hideProgressBar,timeout:e.timeout,onCloseToast:e.timeoutHandler},null,8,["is-running","hide-progress-bar","timeout","onCloseToast"])):na("v-if",!0)],38)};var ld=sd,cd=Sn({name:"VtTransition",props:Pu.TRANSITION,emits:["leave"],methods:{hasProp:bu,leave(e){e instanceof HTMLElement&&(e.style.left=e.offsetLeft+"px",e.style.top=e.offsetTop+"px",e.style.width=getComputedStyle(e).width,e.style.position="absolute")}}});cd.render=function(e,t){return Rr(),Hr(xs,{tag:"div","enter-active-class":e.transition.enter?e.transition.enter:`${e.transition}-enter-active`,"move-class":e.transition.move?e.transition.move:`${e.transition}-move`,"leave-active-class":e.transition.leave?e.transition.leave:`${e.transition}-leave-active`,onLeave:e.leave},{default:un((()=>[oo(e.$slots,"default")])),_:3},8,["enter-active-class","move-class","leave-active-class","onLeave"])};var ud=Sn({name:"VueToastification",devtools:{hide:!0},components:{Toast:ld,VtTransition:cd},props:Object.assign({},Pu.CORE_TOAST,Pu.CONTAINER,Pu.TRANSITION),data:()=>({count:0,positions:Object.values(xu),toasts:{},defaults:{}}),computed:{toastArray(){return Object.values(this.toasts)},filteredToasts(){return this.defaults.filterToasts(this.toastArray)}},beforeMount(){const e=this.eventBus;e.on(Su.ADD,this.addToast),e.on(Su.CLEAR,this.clearToasts),e.on(Su.DISMISS,this.dismissToast),e.on(Su.UPDATE,this.updateToast),e.on(Su.UPDATE_DEFAULTS,this.updateDefaults),this.defaults=this.$props},mounted(){this.setup(this.container)},methods:{async setup(e){var t;uu(e)&&(e=await e()),t=this.$el,mu(t.remove)?t.parentNode&&t.parentNode.removeChild(t):t.remove(),e.appendChild(this.$el)},setToast(e){mu(e.id)||(this.toasts[e.id]=e)},addToast(e){e.content=(e=>{if("string"==typeof e)return e;const t=bu(e,"props")&&fu(e.props)?e.props:{},n=bu(e,"listeners")&&fu(e.listeners)?e.listeners:{};return{component:Lu(e),props:t,listeners:n}})(e.content);const t=Object.assign({},this.defaults,e.type&&this.defaults.toastDefaults&&this.defaults.toastDefaults[e.type],e),n=this.defaults.filterBeforeCreate(t,this.toastArray);n&&this.setToast(n)},dismissToast(e){const t=this.toasts[e];mu(t)||mu(t.onClose)||t.onClose(),delete this.toasts[e]},clearToasts(){Object.keys(this.toasts).forEach((e=>{this.dismissToast(e)}))},getPositionToasts(e){const t=this.filteredToasts.filter((t=>t.position===e)).slice(0,this.defaults.maxToasts);return this.defaults.newestOnTop?t.reverse():t},updateDefaults(e){mu(e.container)||this.setup(e.container),this.defaults=Object.assign({},this.defaults,e)},updateToast({id:e,options:t,create:n}){this.toasts[e]?(t.timeout&&t.timeout===this.toasts[e].timeout&&t.timeout++,this.setToast(Object.assign({},this.toasts[e],t))):n&&this.addToast(Object.assign({},{id:e},t))},getClasses(e){return[`${Iu}__container`,e].concat(this.defaults.containerClassName)}}});ud.render=function(e,t){const n=Xn("Toast"),o=Xn("VtTransition");return Rr(),$r("div",null,[(Rr(!0),$r(Or,null,no(e.positions,(t=>(Rr(),$r("div",{key:t},[Zr(o,{transition:e.defaults.transition,class:Y(e.getClasses(t))},{default:un((()=>[(Rr(!0),$r(Or,null,no(e.getPositionToasts(t),(e=>(Rr(),Hr(n,sa({key:e.id},e),null,16)))),128))])),_:2},1032,["transition","class"])])))),128))])};var dd=ud,pd=(e={},t=!0)=>{const n=e.eventBus=e.eventBus||new Nu;t&&Zt((()=>{const t=zs(dd,cu({},e)),n=t.mount(document.createElement("div")),o=e.onMounted;if(mu(o)||o(n,t),e.shareAppContext){const n=e.shareAppContext;!0===n?console.warn(`[${Iu}] App to share context with was not provided.`):(t._context.components=n._context.components,t._context.directives=n._context.directives,t._context.mixins=n._context.mixins,t._context.provides=n._context.provides,t.config.globalProperties=n.config.globalProperties)}}));const o=(e,t)=>{const o=Object.assign({},{id:ku(),type:_u.DEFAULT},t,{content:e});return n.emit(Su.ADD,o),o.id};return o.clear=()=>n.emit(Su.CLEAR,void 0),o.updateDefaults=e=>{n.emit(Su.UPDATE_DEFAULTS,e)},o.dismiss=e=>{n.emit(Su.DISMISS,e)},o.update=function(e,{content:t,options:o},r=!1){const a=Object.assign({},o,{content:t});n.emit(Su.UPDATE,{id:e,options:a,create:r})},o.success=(e,t)=>o(e,Object.assign({},t,{type:_u.SUCCESS})),o.info=(e,t)=>o(e,Object.assign({},t,{type:_u.INFO})),o.error=(e,t)=>o(e,Object.assign({},t,{type:_u.ERROR})),o.warning=(e,t)=>o(e,Object.assign({},t,{type:_u.WARNING})),o};function md(e){return"undefined"==typeof window?(()=>{const e=()=>console.warn(`[${Iu}] This plugin does not support SSR!`);return new Proxy(e,{get:()=>e})})():(t=e,["on","off","emit"].every((e=>bu(t,e)&&uu(t[e])))?pd({eventBus:e},!1):pd(e,!0));var t}var fd=Symbol("VueToastification"),hd=new Nu;function gd(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function yd(e){return e instanceof gd(e).Element||e instanceof Element}function vd(e){return e instanceof gd(e).HTMLElement||e instanceof HTMLElement}function bd(e){return"undefined"!=typeof ShadowRoot&&(e instanceof gd(e).ShadowRoot||e instanceof ShadowRoot)}var kd=Math.max,wd=Math.min,Cd=Math.round;function _d(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Ed(){return!/^((?!chrome|android).)*safari/i.test(_d())}function xd(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),r=1,a=1;t&&vd(e)&&(r=e.offsetWidth>0&&Cd(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Cd(o.height)/e.offsetHeight||1);var s=(yd(e)?gd(e):window).visualViewport,i=!Ed()&&n,l=(o.left+(i&&s?s.offsetLeft:0))/r,c=(o.top+(i&&s?s.offsetTop:0))/a,u=o.width/r,d=o.height/a;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function Ad(e){var t=gd(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Sd(e){return e?(e.nodeName||"").toLowerCase():null}function Td(e){return((yd(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ld(e){return xd(Td(e)).left+Ad(e).scrollLeft}function Nd(e){return gd(e).getComputedStyle(e)}function Id(e){var t=Nd(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function Dd(e,t,n){void 0===n&&(n=!1);var o,r,a=vd(t),s=vd(t)&&function(e){var t=e.getBoundingClientRect(),n=Cd(t.width)/e.offsetWidth||1,o=Cd(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),i=Td(t),l=xd(e,s,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&(("body"!==Sd(t)||Id(i))&&(c=(o=t)!==gd(o)&&vd(o)?{scrollLeft:(r=o).scrollLeft,scrollTop:r.scrollTop}:Ad(o)),vd(t)?((u=xd(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=Ld(i))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Od(e){var t=xd(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Bd(e){return"html"===Sd(e)?e:e.assignedSlot||e.parentNode||(bd(e)?e.host:null)||Td(e)}function zd(e){return["html","body","#document"].indexOf(Sd(e))>=0?e.ownerDocument.body:vd(e)&&Id(e)?e:zd(Bd(e))}function Fd(e,t){var n;void 0===t&&(t=[]);var o=zd(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),a=gd(o),s=r?[a].concat(a.visualViewport||[],Id(o)?o:[]):o,i=t.concat(s);return r?i:i.concat(Fd(Bd(s)))}function Pd(e){return["table","td","th"].indexOf(Sd(e))>=0}function Md(e){return vd(e)&&"fixed"!==Nd(e).position?e.offsetParent:null}function Rd(e){for(var t=gd(e),n=Md(e);n&&Pd(n)&&"static"===Nd(n).position;)n=Md(n);return n&&("html"===Sd(n)||"body"===Sd(n)&&"static"===Nd(n).position)?t:n||function(e){var t=/firefox/i.test(_d());if(/Trident/i.test(_d())&&vd(e)&&"fixed"===Nd(e).position)return null;var n=Bd(e);for(bd(n)&&(n=n.host);vd(n)&&["html","body"].indexOf(Sd(n))<0;){var o=Nd(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}var Vd="top",Ud="bottom",jd="right",Kd="left",$d="auto",Hd=[Vd,Ud,jd,Kd],Wd="start",qd="end",Gd="clippingParents",Yd="viewport",Xd="popper",Zd="reference",Jd=Hd.reduce((function(e,t){return e.concat([t+"-"+Wd,t+"-"+qd])}),[]),Qd=[].concat(Hd,[$d]).reduce((function(e,t){return e.concat([t,t+"-"+Wd,t+"-"+qd])}),[]),ep=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function tp(e){var t=new Map,n=new Set,o=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var o=t.get(e);o&&r(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),o}var np={placement:"bottom",modifiers:[],strategy:"absolute"};function op(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function rp(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,o=void 0===n?[]:n,r=t.defaultOptions,a=void 0===r?np:r;return function(e,t,n){void 0===n&&(n=a);var r,s,i={placement:"bottom",orderedModifiers:[],options:Object.assign({},np,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:i,setOptions:function(n){var r="function"==typeof n?n(i.options):n;d(),i.options=Object.assign({},a,i.options,r),i.scrollParents={reference:yd(e)?Fd(e):e.contextElement?Fd(e.contextElement):[],popper:Fd(t)};var s=function(e){var t=tp(e);return ep.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(o,i.options.modifiers)));return i.orderedModifiers=s.filter((function(e){return e.enabled})),i.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,o=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var a=r({state:i,name:t,instance:u,options:o}),s=function(){};l.push(a||s)}})),u.update()},forceUpdate:function(){if(!c){var e=i.elements,t=e.reference,n=e.popper;if(op(t,n)){i.rects={reference:Dd(t,Rd(n),"fixed"===i.options.strategy),popper:Od(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var o=0;o<i.orderedModifiers.length;o++)if(!0!==i.reset){var r=i.orderedModifiers[o],a=r.fn,s=r.options,l=void 0===s?{}:s,d=r.name;"function"==typeof a&&(i=a({state:i,options:l,name:d,instance:u})||i)}else i.reset=!1,o=-1}}},update:(r=function(){return new Promise((function(e){u.forceUpdate(),e(i)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(r())}))}))),s}),destroy:function(){d(),c=!0}};if(!op(e,t))return u;function d(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var ap={passive:!0};function sp(e){return e.split("-")[0]}function ip(e){return e.split("-")[1]}function lp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function cp(e){var t,n=e.reference,o=e.element,r=e.placement,a=r?sp(r):null,s=r?ip(r):null,i=n.x+n.width/2-o.width/2,l=n.y+n.height/2-o.height/2;switch(a){case Vd:t={x:i,y:n.y-o.height};break;case Ud:t={x:i,y:n.y+n.height};break;case jd:t={x:n.x+n.width,y:l};break;case Kd:t={x:n.x-o.width,y:l};break;default:t={x:n.x,y:n.y}}var c=a?lp(a):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case Wd:t[c]=t[c]-(n[u]/2-o[u]/2);break;case qd:t[c]=t[c]+(n[u]/2-o[u]/2)}}return t}var up={top:"auto",right:"auto",bottom:"auto",left:"auto"};function dp(e){var t,n=e.popper,o=e.popperRect,r=e.placement,a=e.variation,s=e.offsets,i=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=s.x,m=void 0===p?0:p,f=s.y,h=void 0===f?0:f,g="function"==typeof u?u({x:m,y:h}):{x:m,y:h};m=g.x,h=g.y;var y=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),b=Kd,k=Vd,w=window;if(c){var C=Rd(n),_="clientHeight",E="clientWidth";if(C===gd(n)&&"static"!==Nd(C=Td(n)).position&&"absolute"===i&&(_="scrollHeight",E="scrollWidth"),r===Vd||(r===Kd||r===jd)&&a===qd)k=Ud,h-=(d&&C===w&&w.visualViewport?w.visualViewport.height:C[_])-o.height,h*=l?1:-1;if(r===Kd||(r===Vd||r===Ud)&&a===qd)b=jd,m-=(d&&C===w&&w.visualViewport?w.visualViewport.width:C[E])-o.width,m*=l?1:-1}var x,A=Object.assign({position:i},c&&up),S=!0===u?function(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:Cd(n*r)/r||0,y:Cd(o*r)/r||0}}({x:m,y:h},gd(n)):{x:m,y:h};return m=S.x,h=S.y,l?Object.assign({},A,((x={})[k]=v?"0":"",x[b]=y?"0":"",x.transform=(w.devicePixelRatio||1)<=1?"translate("+m+"px, "+h+"px)":"translate3d("+m+"px, "+h+"px, 0)",x)):Object.assign({},A,((t={})[k]=v?h+"px":"",t[b]=y?m+"px":"",t.transform="",t))}const pp={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},r=t.elements[e];vd(r)&&Sd(r)&&(Object.assign(r.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var o=t.elements[e],r=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});vd(o)&&Sd(o)&&(Object.assign(o.style,a),Object.keys(r).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]};const mp={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.offset,a=void 0===r?[0,0]:r,s=Qd.reduce((function(e,n){return e[n]=function(e,t,n){var o=sp(e),r=[Kd,Vd].indexOf(o)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=a[0],i=a[1];return s=s||0,i=(i||0)*r,[Kd,jd].indexOf(o)>=0?{x:i,y:s}:{x:s,y:i}}(n,t.rects,a),e}),{}),i=s[t.placement],l=i.x,c=i.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=s}};var fp={left:"right",right:"left",bottom:"top",top:"bottom"};function hp(e){return e.replace(/left|right|bottom|top/g,(function(e){return fp[e]}))}var gp={start:"end",end:"start"};function yp(e){return e.replace(/start|end/g,(function(e){return gp[e]}))}function vp(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&bd(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function bp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function kp(e,t,n){return t===Yd?bp(function(e,t){var n=gd(e),o=Td(e),r=n.visualViewport,a=o.clientWidth,s=o.clientHeight,i=0,l=0;if(r){a=r.width,s=r.height;var c=Ed();(c||!c&&"fixed"===t)&&(i=r.offsetLeft,l=r.offsetTop)}return{width:a,height:s,x:i+Ld(e),y:l}}(e,n)):yd(t)?function(e,t){var n=xd(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):bp(function(e){var t,n=Td(e),o=Ad(e),r=null==(t=e.ownerDocument)?void 0:t.body,a=kd(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=kd(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),i=-o.scrollLeft+Ld(e),l=-o.scrollTop;return"rtl"===Nd(r||n).direction&&(i+=kd(n.clientWidth,r?r.clientWidth:0)-a),{width:a,height:s,x:i,y:l}}(Td(e)))}function wp(e,t,n,o){var r="clippingParents"===t?function(e){var t=Fd(Bd(e)),n=["absolute","fixed"].indexOf(Nd(e).position)>=0&&vd(e)?Rd(e):e;return yd(n)?t.filter((function(e){return yd(e)&&vp(e,n)&&"body"!==Sd(e)})):[]}(e):[].concat(t),a=[].concat(r,[n]),s=a[0],i=a.reduce((function(t,n){var r=kp(e,n,o);return t.top=kd(r.top,t.top),t.right=wd(r.right,t.right),t.bottom=wd(r.bottom,t.bottom),t.left=kd(r.left,t.left),t}),kp(e,s,o));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Cp(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function _p(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Ep(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=void 0===o?e.placement:o,a=n.strategy,s=void 0===a?e.strategy:a,i=n.boundary,l=void 0===i?Gd:i,c=n.rootBoundary,u=void 0===c?Yd:c,d=n.elementContext,p=void 0===d?Xd:d,m=n.altBoundary,f=void 0!==m&&m,h=n.padding,g=void 0===h?0:h,y=Cp("number"!=typeof g?g:_p(g,Hd)),v=p===Xd?Zd:Xd,b=e.rects.popper,k=e.elements[f?v:p],w=wp(yd(k)?k:k.contextElement||Td(e.elements.popper),l,u,s),C=xd(e.elements.reference),_=cp({reference:C,element:b,strategy:"absolute",placement:r}),E=bp(Object.assign({},b,_)),x=p===Xd?E:C,A={top:w.top-x.top+y.top,bottom:x.bottom-w.bottom+y.bottom,left:w.left-x.left+y.left,right:x.right-w.right+y.right},S=e.modifiersData.offset;if(p===Xd&&S){var T=S[r];Object.keys(A).forEach((function(e){var t=[jd,Ud].indexOf(e)>=0?1:-1,n=[Vd,Ud].indexOf(e)>=0?"y":"x";A[e]+=T[n]*t}))}return A}const xp={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,a=void 0===r||r,s=n.altAxis,i=void 0===s||s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,f=void 0===m||m,h=n.allowedAutoPlacements,g=t.options.placement,y=sp(g),v=l||(y===g||!f?[hp(g)]:function(e){if(sp(e)===$d)return[];var t=hp(e);return[yp(e),t,yp(t)]}(g)),b=[g].concat(v).reduce((function(e,n){return e.concat(sp(n)===$d?function(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=n.boundary,a=n.rootBoundary,s=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Qd:l,u=ip(o),d=u?i?Jd:Jd.filter((function(e){return ip(e)===u})):Hd,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var m=p.reduce((function(t,n){return t[n]=Ep(e,{placement:n,boundary:r,rootBoundary:a,padding:s})[sp(n)],t}),{});return Object.keys(m).sort((function(e,t){return m[e]-m[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:h}):n)}),[]),k=t.rects.reference,w=t.rects.popper,C=new Map,_=!0,E=b[0],x=0;x<b.length;x++){var A=b[x],S=sp(A),T=ip(A)===Wd,L=[Vd,Ud].indexOf(S)>=0,N=L?"width":"height",I=Ep(t,{placement:A,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),D=L?T?jd:Kd:T?Ud:Vd;k[N]>w[N]&&(D=hp(D));var O=hp(D),B=[];if(a&&B.push(I[S]<=0),i&&B.push(I[D]<=0,I[O]<=0),B.every((function(e){return e}))){E=A,_=!1;break}C.set(A,B)}if(_)for(var z=function(e){var t=b.find((function(t){var n=C.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},F=f?3:1;F>0;F--){if("break"===z(F))break}t.placement!==E&&(t.modifiersData[o]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ap(e,t,n){return kd(e,wd(t,n))}const Sp={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,a=void 0===r||r,s=n.altAxis,i=void 0!==s&&s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,m=void 0===p||p,f=n.tetherOffset,h=void 0===f?0:f,g=Ep(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=sp(t.placement),v=ip(t.placement),b=!v,k=lp(y),w="x"===k?"y":"x",C=t.modifiersData.popperOffsets,_=t.rects.reference,E=t.rects.popper,x="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,A="number"==typeof x?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(C){if(a){var L,N="y"===k?Vd:Kd,I="y"===k?Ud:jd,D="y"===k?"height":"width",O=C[k],B=O+g[N],z=O-g[I],F=m?-E[D]/2:0,P=v===Wd?_[D]:E[D],M=v===Wd?-E[D]:-_[D],R=t.elements.arrow,V=m&&R?Od(R):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},j=U[N],K=U[I],$=Ap(0,_[D],V[D]),H=b?_[D]/2-F-$-j-A.mainAxis:P-$-j-A.mainAxis,W=b?-_[D]/2+F+$+K+A.mainAxis:M+$+K+A.mainAxis,q=t.elements.arrow&&Rd(t.elements.arrow),G=q?"y"===k?q.clientTop||0:q.clientLeft||0:0,Y=null!=(L=null==S?void 0:S[k])?L:0,X=O+W-Y,Z=Ap(m?wd(B,O+H-Y-G):B,O,m?kd(z,X):z);C[k]=Z,T[k]=Z-O}if(i){var J,Q="x"===k?Vd:Kd,ee="x"===k?Ud:jd,te=C[w],ne="y"===w?"height":"width",oe=te+g[Q],re=te-g[ee],ae=-1!==[Vd,Kd].indexOf(y),se=null!=(J=null==S?void 0:S[w])?J:0,ie=ae?oe:te-_[ne]-E[ne]-se+A.altAxis,le=ae?te+_[ne]+E[ne]-se-A.altAxis:re,ce=m&&ae?function(e,t,n){var o=Ap(e,t,n);return o>n?n:o}(ie,te,le):Ap(m?ie:oe,te,m?le:re);C[w]=ce,T[w]=ce-te}t.modifiersData[o]=T}},requiresIfExists:["offset"]};const Tp={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,r=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,i=sp(n.placement),l=lp(i),c=[Kd,jd].indexOf(i)>=0?"height":"width";if(a&&s){var u=function(e,t){return Cp("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:_p(e,Hd))}(r.padding,n),d=Od(a),p="y"===l?Vd:Kd,m="y"===l?Ud:jd,f=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],h=s[l]-n.rects.reference[l],g=Rd(a),y=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,v=f/2-h/2,b=u[p],k=y-d[c]-u[m],w=y/2-d[c]/2+v,C=Ap(b,w,k),_=l;n.modifiersData[o]=((t={})[_]=C,t.centerOffset=C-w,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&vp(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Lp(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Np(e){return[Vd,jd,Ud,Kd].some((function(t){return e[t]>=0}))}var Ip=rp({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,a=void 0===r||r,s=o.resize,i=void 0===s||s,l=gd(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,ap)})),i&&l.addEventListener("resize",n.update,ap),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,ap)})),i&&l.removeEventListener("resize",n.update,ap)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=cp({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=void 0===o||o,a=n.adaptive,s=void 0===a||a,i=n.roundOffsets,l=void 0===i||i,c={placement:sp(t.placement),variation:ip(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,dp(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,dp(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},pp,mp,xp,Sp,Tp,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,a=t.modifiersData.preventOverflow,s=Ep(t,{elementContext:"reference"}),i=Ep(t,{altBoundary:!0}),l=Lp(s,o),c=Lp(i,r,a),u=Np(l),d=Np(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),Dp="tippy-content",Op="tippy-backdrop",Bp="tippy-arrow",zp="tippy-svg-arrow",Fp={passive:!0,capture:!0},Pp=function(){return document.body};function Mp(e,t,n){if(Array.isArray(e)){var o=e[t];return null==o?Array.isArray(n)?n[t]:n:o}return e}function Rp(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function Vp(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Up(e,t){return 0===t?e:function(o){clearTimeout(n),n=setTimeout((function(){e(o)}),t)};var n}function jp(e,t){var n=Object.assign({},e);return t.forEach((function(e){delete n[e]})),n}function Kp(e){return[].concat(e)}function $p(e,t){-1===e.indexOf(t)&&e.push(t)}function Hp(e){return e.split("-")[0]}function Wp(e){return[].slice.call(e)}function qp(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function Gp(){return document.createElement("div")}function Yp(e){return["Element","Fragment"].some((function(t){return Rp(e,t)}))}function Xp(e){return Rp(e,"MouseEvent")}function Zp(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function Jp(e){return Yp(e)?[e]:function(e){return Rp(e,"NodeList")}(e)?Wp(e):Array.isArray(e)?e:Wp(document.querySelectorAll(e))}function Qp(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function em(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function tm(e){var t,n=Kp(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function nm(e,t,n){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[o](t,n)}))}function om(e,t){for(var n=t;n;){var o;if(e.contains(n))return!0;n=null==n.getRootNode||null==(o=n.getRootNode())?void 0:o.host}return!1}var rm={isTouch:!1},am=0;function sm(){rm.isTouch||(rm.isTouch=!0,window.performance&&document.addEventListener("mousemove",im))}function im(){var e=performance.now();e-am<20&&(rm.isTouch=!1,document.removeEventListener("mousemove",im)),am=e}function lm(){var e=document.activeElement;if(Zp(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var cm=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var um={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},dm=Object.assign({appendTo:Pp,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},um,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),pm=Object.keys(dm);function mm(e){var t=(e.plugins||[]).reduce((function(t,n){var o,r=n.name,a=n.defaultValue;r&&(t[r]=void 0!==e[r]?e[r]:null!=(o=dm[r])?o:a);return t}),{});return Object.assign({},e,t)}function fm(e,t){var n=Object.assign({},t,{content:Vp(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(mm(Object.assign({},dm,{plugins:t}))):pm).reduce((function(t,n){var o=(e.getAttribute("data-tippy-"+n)||"").trim();if(!o)return t;if("content"===n)t[n]=o;else try{t[n]=JSON.parse(o)}catch(e){t[n]=o}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},dm.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}var hm=function(){return"innerHTML"};function gm(e,t){e[hm()]=t}function ym(e){var t=Gp();return!0===e?t.className=Bp:(t.className=zp,Yp(e)?t.appendChild(e):gm(t,e)),t}function vm(e,t){Yp(t.content)?(gm(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?gm(e,t.content):e.textContent=t.content)}function bm(e){var t=e.firstElementChild,n=Wp(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(Dp)})),arrow:n.find((function(e){return e.classList.contains(Bp)||e.classList.contains(zp)})),backdrop:n.find((function(e){return e.classList.contains(Op)}))}}function km(e){var t=Gp(),n=Gp();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var o=Gp();function r(n,o){var r=bm(t),a=r.box,s=r.content,i=r.arrow;o.theme?a.setAttribute("data-theme",o.theme):a.removeAttribute("data-theme"),"string"==typeof o.animation?a.setAttribute("data-animation",o.animation):a.removeAttribute("data-animation"),o.inertia?a.setAttribute("data-inertia",""):a.removeAttribute("data-inertia"),a.style.maxWidth="number"==typeof o.maxWidth?o.maxWidth+"px":o.maxWidth,o.role?a.setAttribute("role",o.role):a.removeAttribute("role"),n.content===o.content&&n.allowHTML===o.allowHTML||vm(s,e.props),o.arrow?i?n.arrow!==o.arrow&&(a.removeChild(i),a.appendChild(ym(o.arrow))):a.appendChild(ym(o.arrow)):i&&a.removeChild(i)}return o.className=Dp,o.setAttribute("data-state","hidden"),vm(o,e.props),t.appendChild(n),n.appendChild(o),r(e.props,e.props),{popper:t,onUpdate:r}}km.$$tippy=!0;var wm=1,Cm=[],_m=[];function Em(e,t){var n,o,r,a,s,i,l,c,u=fm(e,Object.assign({},dm,mm(qp(t)))),d=!1,p=!1,m=!1,f=!1,h=[],g=Up(q,u.interactiveDebounce),y=wm++,v=(c=u.plugins).filter((function(e,t){return c.indexOf(e)===t})),b={id:y,reference:e,popper:Gp(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:v,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(o),cancelAnimationFrame(r)},setProps:function(t){0;if(b.state.isDestroyed)return;O("onBeforeUpdate",[b,t]),H();var n=b.props,o=fm(e,Object.assign({},n,qp(t),{ignoreAttributes:!0}));b.props=o,$(),n.interactiveDebounce!==o.interactiveDebounce&&(F(),g=Up(q,o.interactiveDebounce));n.triggerTarget&&!o.triggerTarget?Kp(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):o.triggerTarget&&e.removeAttribute("aria-expanded");z(),D(),C&&C(n,o);b.popperInstance&&(Z(),Q().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));O("onAfterUpdate",[b,t])},setContent:function(e){b.setProps({content:e})},show:function(){0;var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,o=rm.isTouch&&!b.props.touch,r=Mp(b.props.duration,0,dm.duration);if(e||t||n||o)return;if(T().hasAttribute("disabled"))return;if(O("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,S()&&(w.style.visibility="visible");D(),V(),b.state.isMounted||(w.style.transition="none");if(S()){var a=N();Qp([a.box,a.content],0)}i=function(){var e;if(b.state.isVisible&&!f){if(f=!0,w.offsetHeight,w.style.transition=b.props.moveTransition,S()&&b.props.animation){var t=N(),n=t.box,o=t.content;Qp([n,o],r),em([n,o],"visible")}B(),z(),$p(_m,b),null==(e=b.popperInstance)||e.forceUpdate(),O("onMount",[b]),b.props.animation&&S()&&function(e,t){j(e,t)}(r,(function(){b.state.isShown=!0,O("onShown",[b])}))}},function(){var e,t=b.props.appendTo,n=T();e=b.props.interactive&&t===Pp||"parent"===t?n.parentNode:Vp(t,[n]);e.contains(w)||e.appendChild(w);b.state.isMounted=!0,Z(),!1}()},hide:function(){0;var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,o=Mp(b.props.duration,1,dm.duration);if(e||t||n)return;if(O("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,f=!1,d=!1,S()&&(w.style.visibility="hidden");if(F(),U(),D(!0),S()){var r=N(),a=r.box,s=r.content;b.props.animation&&(Qp([a,s],o),em([a,s],"hidden"))}B(),z(),b.props.animation?S()&&function(e,t){j(e,(function(){!b.state.isVisible&&w.parentNode&&w.parentNode.contains(w)&&t()}))}(o,b.unmount):b.unmount()},hideWithInteractivity:function(e){0;L().addEventListener("mousemove",g),$p(Cm,g),g(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){0;b.state.isVisible&&b.hide();if(!b.state.isMounted)return;J(),Q().forEach((function(e){e._tippy.unmount()})),w.parentNode&&w.parentNode.removeChild(w);_m=_m.filter((function(e){return e!==b})),b.state.isMounted=!1,O("onHidden",[b])},destroy:function(){0;if(b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),H(),delete e._tippy,b.state.isDestroyed=!0,O("onDestroy",[b])}};if(!u.render)return b;var k=u.render(b),w=k.popper,C=k.onUpdate;w.setAttribute("data-tippy-root",""),w.id="tippy-"+b.id,b.popper=w,e._tippy=b,w._tippy=b;var _=v.map((function(e){return e.fn(b)})),E=e.hasAttribute("aria-expanded");return $(),z(),D(),O("onCreate",[b]),u.showOnCreate&&ee(),w.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),w.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&L().addEventListener("mousemove",g)})),b;function x(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function A(){return"hold"===x()[0]}function S(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function T(){return l||e}function L(){var e=T().parentNode;return e?tm(e):document}function N(){return bm(w)}function I(e){return b.state.isMounted&&!b.state.isVisible||rm.isTouch||a&&"focus"===a.type?0:Mp(b.props.delay,e?0:1,dm.delay)}function D(e){void 0===e&&(e=!1),w.style.pointerEvents=b.props.interactive&&!e?"":"none",w.style.zIndex=""+b.props.zIndex}function O(e,t,n){var o;(void 0===n&&(n=!0),_.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(o=b.props)[e].apply(o,t)}function B(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,o=w.id;Kp(b.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+o:o);else{var r=t&&t.replace(o,"").trim();r?e.setAttribute(n,r):e.removeAttribute(n)}}))}}function z(){!E&&b.props.aria.expanded&&Kp(b.props.triggerTarget||e).forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===T()?"true":"false"):e.removeAttribute("aria-expanded")}))}function F(){L().removeEventListener("mousemove",g),Cm=Cm.filter((function(e){return e!==g}))}function P(t){if(!rm.isTouch||!m&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!om(w,n)){if(Kp(b.props.triggerTarget||e).some((function(e){return om(e,n)}))){if(rm.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else O("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),p=!0,setTimeout((function(){p=!1})),b.state.isMounted||U())}}}function M(){m=!0}function R(){m=!1}function V(){var e=L();e.addEventListener("mousedown",P,!0),e.addEventListener("touchend",P,Fp),e.addEventListener("touchstart",R,Fp),e.addEventListener("touchmove",M,Fp)}function U(){var e=L();e.removeEventListener("mousedown",P,!0),e.removeEventListener("touchend",P,Fp),e.removeEventListener("touchstart",R,Fp),e.removeEventListener("touchmove",M,Fp)}function j(e,t){var n=N().box;function o(e){e.target===n&&(nm(n,"remove",o),t())}if(0===e)return t();nm(n,"remove",s),nm(n,"add",o),s=o}function K(t,n,o){void 0===o&&(o=!1),Kp(b.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,o),h.push({node:e,eventType:t,handler:n,options:o})}))}function $(){var e;A()&&(K("touchstart",W,{passive:!0}),K("touchend",G,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(K(e,W),e){case"mouseenter":K("mouseleave",G);break;case"focus":K(cm?"focusout":"blur",Y);break;case"focusin":K("focusout",Y)}}))}function H(){h.forEach((function(e){var t=e.node,n=e.eventType,o=e.handler,r=e.options;t.removeEventListener(n,o,r)})),h=[]}function W(e){var t,n=!1;if(b.state.isEnabled&&!X(e)&&!p){var o="focus"===(null==(t=a)?void 0:t.type);a=e,l=e.currentTarget,z(),!b.state.isVisible&&Xp(e)&&Cm.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||d)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:ee(e),"click"===e.type&&(d=!n),n&&!o&&te(e)}}function q(e){var t=e.target,n=T().contains(t)||w.contains(t);if("mousemove"!==e.type||!n){var o=Q().concat(w).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:u}:null})).filter(Boolean);(function(e,t){var n=t.clientX,o=t.clientY;return e.every((function(e){var t=e.popperRect,r=e.popperState,a=e.props.interactiveBorder,s=Hp(r.placement),i=r.modifiersData.offset;if(!i)return!0;var l="bottom"===s?i.top.y:0,c="top"===s?i.bottom.y:0,u="right"===s?i.left.x:0,d="left"===s?i.right.x:0,p=t.top-o+l>a,m=o-t.bottom-c>a,f=t.left-n+u>a,h=n-t.right-d>a;return p||m||f||h}))})(o,e)&&(F(),te(e))}}function G(e){X(e)||b.props.trigger.indexOf("click")>=0&&d||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function Y(e){b.props.trigger.indexOf("focusin")<0&&e.target!==T()||b.props.interactive&&e.relatedTarget&&w.contains(e.relatedTarget)||te(e)}function X(e){return!!rm.isTouch&&A()!==e.type.indexOf("touch")>=0}function Z(){J();var t=b.props,n=t.popperOptions,o=t.placement,r=t.offset,a=t.getReferenceClientRect,s=t.moveTransition,l=S()?bm(w).arrow:null,c=a?{getBoundingClientRect:a,contextElement:a.contextElement||T()}:e,u={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(S()){var n=N().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}},d=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},u];S()&&l&&d.push({name:"arrow",options:{element:l,padding:3}}),d.push.apply(d,(null==n?void 0:n.modifiers)||[]),b.popperInstance=Ip(c,w,Object.assign({},n,{placement:o,onFirstUpdate:i,modifiers:d}))}function J(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Q(){return Wp(w.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&O("onTrigger",[b,e]),V();var t=I(!0),o=x(),r=o[0],a=o[1];rm.isTouch&&"hold"===r&&a&&(t=a),t?n=setTimeout((function(){b.show()}),t):b.show()}function te(e){if(b.clearDelayTimeouts(),O("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&d)){var t=I(!1);t?o=setTimeout((function(){b.state.isVisible&&b.hide()}),t):r=requestAnimationFrame((function(){b.hide()}))}}else U()}}function xm(e,t){void 0===t&&(t={});var n=dm.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",sm,Fp),window.addEventListener("blur",lm);var o=Object.assign({},t,{plugins:n}),r=Jp(e).reduce((function(e,t){var n=t&&Em(t,o);return n&&e.push(n),e}),[]);return Yp(e)?r[0]:r}xm.defaultProps=dm,xm.setDefaultProps=function(e){Object.keys(e).forEach((function(t){dm[t]=e[t]}))},xm.currentInput=rm;var Am=Object.assign({},pp,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});xm.setDefaultProps({render:km});const Sm=xm,Tm={animation:"shift-toward-subtle",theme:"my-theme"};function Lm(e,t={}){const n=Tt(null),o=pa(),r=o&&o.ctx;return Zt((()=>{let o=[];o=Array.isArray(e)?e.map((e=>e._tippy||function(e,t={}){return e?.setAttribute("vtooltip",""),Sm(e,{...Tm,...t})}(e))):r._tooltipGroup||[],n.value=function(e,t){var n;void 0===t&&(t={});var o,r=e,a=[],s=[],i=t.overrides,l=[],c=!1;function u(){s=r.map((function(e){return Kp(e.props.triggerTarget||e.reference)})).reduce((function(e,t){return e.concat(t)}),[])}function d(){a=r.map((function(e){return e.reference}))}function p(e){r.forEach((function(t){e?t.enable():t.disable()}))}function m(e){return r.map((function(t){var n=t.setProps;return t.setProps=function(r){n(r),t.reference===o&&e.setProps(r)},function(){t.setProps=n}}))}function f(e,t){var n=s.indexOf(t);if(t!==o){o=t;var l=(i||[]).concat("content").reduce((function(e,t){return e[t]=r[n].props[t],e}),{});e.setProps(Object.assign({},l,{getReferenceClientRect:"function"==typeof l.getReferenceClientRect?l.getReferenceClientRect:function(){var e;return null==(e=a[n])?void 0:e.getBoundingClientRect()}}))}}p(!1),d(),u();var h={fn:function(){return{onDestroy:function(){p(!0)},onHidden:function(){o=null},onClickOutside:function(e){e.props.showOnCreate&&!c&&(c=!0,o=null)},onShow:function(e){e.props.showOnCreate&&!c&&(c=!0,f(e,a[0]))},onTrigger:function(e,t){f(e,t.currentTarget)}}}},g=xm(Gp(),Object.assign({},jp(t,["overrides"]),{plugins:[h].concat(t.plugins||[]),triggerTarget:s,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(n=t.popperOptions)?void 0:n.modifiers)||[],[Am])})})),y=g.show;g.show=function(e){if(y(),!o&&null==e)return f(g,a[0]);if(!o||null!=e){if("number"==typeof e)return a[e]&&f(g,a[e]);if(r.indexOf(e)>=0){var t=e.reference;return f(g,t)}return a.indexOf(e)>=0?f(g,e):void 0}},g.showNext=function(){var e=a[0];if(!o)return g.show(0);var t=a.indexOf(o);g.show(a[t+1]||e)},g.showPrevious=function(){var e=a[a.length-1];if(!o)return g.show(e);var t=a.indexOf(o),n=a[t-1]||e;g.show(n)};var v=g.setProps;return g.setProps=function(e){i=e.overrides||i,v(e)},g.setInstances=function(e){p(!0),l.forEach((function(e){return e()})),r=e,p(!1),d(),u(),l=m(g),g.setProps({triggerTarget:s})},l=m(g),g}(o,{...Tm,...t,theme:"tooltip-theme",placement:"right",moveTransition:"transform 0.2s ease-out",overrides:["placement","theme"]}),e||(r.__tpSingleton=n.value)})),$n((()=>{n.value?.destroy()})),n}var Nm=n(93150),Im=n.n(Nm);const Dm=(e,t)=>e?`${e}--${t}`:t,Om=!1;function Bm(e="",t={},n=""){let o={name:Dm(n,e),data:t};return Om&&(o=JSON.stringify(o)),Im().runtime.sendMessage(o)}class zm{static sendMessage=Bm;constructor(e=""){this.listeners={},this.prefix=e,this.listener=this.listener.bind(this)}on(e,t){return Object.hasOwn(this.listeners,e)?(console.error(`You already added ${e}`),this.on):(this.listeners[Dm(this.prefix,e)]=t,this.on)}listener(e,t){try{Om&&(e=JSON.parse(e));const n=this.listeners[e.name],o=n&&n.call({message:e,sender:t},e.data,t),r=e.name.split("--")[0];return r&&r!==e.name?r===this.prefix?o?o instanceof Promise?o:Promise.resolve(o):Promise.resolve():void 0:o?o instanceof Promise?o:Promise.resolve(o):Promise.resolve()}catch(e){return Promise.reject(new Error(`Unhandled Background Error: ${String(e)}`))}}sendMessage(e,t){return Bm(e,t,this.prefix)}}function Fm(e){if("function"==typeof e)return{__type:"function",__value:e.toString()};if(Array.isArray(e))return e.map((e=>Fm(e)));if(e&&"object"==typeof e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=Fm(e[n]));return t}return e}function Pm(e){if(e&&"object"==typeof e){if("function"===e.__type)return new Function("return "+e.__value)();if(Array.isArray(e))return e.map((e=>Pm(e)));const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=Pm(e[n]));return t}return e}var Mm=n(31528),Rm=n.n(Mm);const Vm=[{api:()=>Im().tabs.get,path:"tabs.get"},{api:()=>chrome.tabs.group,path:"tabs.group"},{api:()=>Im().tabs.query,path:"tabs.query"},{api:()=>Im().tabs.update,path:"tabs.update"},{api:()=>Im().tabs.create,path:"tabs.create"},{api:()=>Im().tabs.remove,path:"tabs.remove"},{api:()=>Im().tabs.reload,path:"tabs.reload"},{api:()=>Im().tabs.goBack,path:"tabs.goBack"},{api:()=>Im().tabs.setZoom,path:"tabs.setZoom"},{api:()=>Im().tabs.goForward,path:"tabs.goForward"},{api:()=>Im().tabs.captureTab,path:"tabs.captureTab"},{api:()=>Im().tabs.captureVisibleTab,path:"tabs.captureVisibleTab"},{api:()=>Im().tabs.sendMessage,path:"tabs.sendMessage"},{isEvent:!0,api:()=>Im().tabs.onRemoved,path:"tabs.onRemoved"},{isEvent:!0,path:"webNavigation.onCreatedNavigationTarget",api:()=>Im().webNavigation.onCreatedNavigationTarget},{isEvent:!0,path:"webNavigation.onErrorOccurred",api:()=>Im().webNavigation.onErrorOccurred},{path:"webNavigation.getAllFrames",api:()=>Im().webNavigation.getAllFrames},{api:()=>Im().windows.get,path:"windows.get"},{api:()=>Im().windows.update,path:"windows.update"},{api:()=>Im().windows.create,path:"windows.create"},{api:()=>Im().windows.getAll,path:"windows.getAll"},{api:()=>Im().windows.remove,path:"windows.remove"},{api:()=>Im().windows.getCurrent,path:"windows.getCurrent"},{isEvent:!0,path:"windows.onRemoved",api:()=>Im().windows.onRemoved},{isEvent:!0,path:"storage.onChanged",api:()=>Im().storage.onChanged},{api:()=>Im().storage.local.get,path:"storage.local.get"},{api:()=>Im().storage.local.set,path:"storage.local.set"},{api:()=>Im().storage.local.remove,path:"storage.local.remove"},{api:()=>Im().proxy.settings.clear,path:"proxy.settings.clear"},{api:()=>Im().proxy.settings.set,path:"proxy.settings.set"},{isEvent:!0,path:"debugger.onEvent",api:()=>chrome.debugger.onEvent},{path:"debugger.detach",api:()=>chrome.debugger.detach},{path:"debugger.attach",api:()=>chrome.debugger.attach},{path:"debugger.sendCommand",api:()=>chrome.debugger.sendCommand},{path:"permissions.contains",api:()=>Im().permissions.contains},{path:"cookies.get",api:()=>Im().cookies?.get},{path:"cookies.getAll",api:()=>Im().cookies?.getAll},{path:"cookies.remove",api:()=>Im().cookies?.remove},{path:"cookies.set",api:()=>Im().cookies?.set},{path:"downloads.search",api:()=>Im().downloads?.search},{path:"downloads.download",api:()=>Im().downloads?.download},{isEvent:!0,path:"downloads.onCreated",api:()=>Im().downloads?.onCreated},{isEvent:!0,path:"downloads.onDeterminingFilename",api:()=>chrome.downloads?.onDeterminingFilename},{isEvent:!0,path:"downloads.onChanged",api:()=>Im().downloads?.onChanged},{path:"browserAction.setBadgeText",api:()=>(Im().action||Im().browserAction).setBadgeText},{path:"notifications.create",api:()=>Im().notifications?.create},{path:"extension.isAllowedFileSchemeAccess",api:()=>Im().extension.isAllowedFileSchemeAccess}],Um={ON_EVENT:"browser-api:on-browser-event",TOGGLE:"browser-api:toggle-browser-event-listener"};function jm(e,...t){zm.sendMessage(Um.ON_EVENT,{name:e,args:t},"offscreen")}class Km{static#e;static get instance(){return this.#e||(this.#e=new Km),this.#e}static RuntimeEvents=Um;#t;#n;#o;#r;constructor(){this.#t={},this.#r={},this.#n={},this.#o=new Set}createEventListener(e){if(this.#n[e])return this.#n[e];this.#t[e]||(this.#t[e]=[]);return this.#n[e]={addListener:t=>{this.#t[e].push(t),this.#o.has(e)||zm.sendMessage(Um.TOGGLE,{name:e,type:"add"},"background").then((()=>{this.#o.add(e)}))},hasListener:t=>this.#t[e].includes(t),hasListeners:()=>this.#t[e].length>0,removeListener:t=>{const n=this.#t[e].indexOf(t);-1!==n&&(this.#t[e].splice(n,1),this.#t[e].length>0||(zm.sendMessage(Um.TOGGLE,{name:e,type:"remove"},"background"),delete this.#n[e]))}},this.#n[e]}onBrowserEventListener(e){e.name&&this.#t[e.name]&&this.#t[e.name].forEach((t=>t(...e.args)))}onToggleBrowserEventListener({name:e,type:t}){const n="add"===t;if(n&&this.#r[e])return;if(!n&&!this.#r[e])return;const o=Vm.find((t=>t.path===e&&t.isEvent))?.api();if(!Vm)return;const r=n?"addListener":"removeListener",a=n?jm.bind(null,e):this.#r[e];n&&(this.#r[e]=a),o[r](a)}}const $m=Km,Hm="tabs"in Im();function Wm(e,...t){const n=Fm(t);return zm.sendMessage("browser-api",{name:e,args:n},"background")}class qm{static async isContentScriptInjected(e,t){if(!Hm)return Wm("contentScript.isContentScriptInjected",...arguments);try{return await Im().tabs.sendMessage(e.tabId,{type:t||"content-script-exists"},{frameId:e.allFrames?void 0:e.frameId}),!0}catch(e){return!1}}static async inject({file:e,target:t,injectImmediately:n,waitUntilInjected:o}){if(!Hm)return Wm("contentScript.inject",...arguments);const r=Object.hasOwn(t,"frameId")&&!t.allFrames?t.frameId:void 0;if(Im().tabs.injectContentScript?await Im().tabs.executeScript(t.tabId,{file:e,frameId:r,allFrames:t.allFrames}):await Im().scripting.executeScript({target:{tabId:t.tabId,allFrames:t.allFrames,frameIds:"number"==typeof r?[r]:void 0},files:[e],injectImmediately:n}),!o)return!0;const a=o.maxTry??3,s=o.timeoutMs??1e3;let i=0;return new Promise((e=>{const n=async()=>{try{if(i>a)return void e(!1);i+=1;if(await qm.isContentScriptInjected(t,o.messageId))return void e(!0);setTimeout((()=>n()),s)}catch(e){console.error(e),setTimeout((()=>n()),s)}};n()}))}static async isInjected({tabId:e,allFrames:t,frameId:n},o){if(!Hm)return Wm("contentScript.isInjected",...arguments);try{return await Im().tabs.sendMessage(e,{type:o||"content-script-exists"},{frameId:t?void 0:n}),!0}catch(e){return!1}}}class Gm{static runtimeMessageHandler({args:e,name:t}){const n=Pm(e),o=Rm().get(this,t);if(!o)throw new Error(`"${t}" is invalid method`);return n?o(...n):o()}static runtime=Im().runtime;static tabs;static proxy;static storage;static windows;static debugger;static webNavigation;static permissions;static downloads;static notifications;static browserAction;static extension;static contentScript=qm}Vm.forEach((e=>{let t;t=Hm?e.api():e.isEvent?$m.instance.createEventListener(e.path):(...t)=>Wm(e.path,...t),Rm().set(Gm,e.path,t)}));async function Ym(){try{const e={active:!0,url:"*://*/*"},t=(await Im().windows.getLastFocused({populate:!0,windowTypes:["normal"]})).id;t?e.windowId=t:e.lastFocusedWindow=!0;const[n]=await Im().tabs.query(e);return n}catch(e){return console.error(e),null}}function Xm(e){return/^([(/@]|id\()/.test(e)}function Zm(e=500){return new Promise((t=>{setTimeout((()=>{t()}),e)}))}function Jm(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Qm(e,t=200){let n;return(...o)=>(clearTimeout(n),new Promise((r=>{n=setTimeout((()=>{n=null,e(...o),r()}),t)})))}const ef=2===Im().runtime.getManifest().manifest_version;async function tf(){const[e]=await Im().tabs.query({active:!0,currentWindow:!0});await Im().windows.update(e.windowId,{focused:!0})}const nf={selectElement:async function(e){const t=await Ym();await async function(e=null){let t=e;e||(t=await Ym()),await Im().tabs.sendMessage(t.id,{type:"automa-element-selector"})||(ef?await Im().tabs.executeScript(t.id,{allFrames:!0,runAt:"document_start",file:"./elementSelector.bundle.js"}):await Im().scripting.executeScript({target:{allFrames:!0,tabId:t.id},files:["./elementSelector.bundle.js"]})),await Im().tabs.update(t.id,{active:!0}),await Im().windows.update(t.windowId,{focused:!0})}(t);const n=await Im().tabs.connect(t.id,{name:e}),o=await new Promise(((e,t)=>{n.onDisconnect.addListener((()=>{t(new Error("Port closed"))})),n.onMessage.addListener((async t=>{try{tf()}catch(e){console.error(e)}finally{e(t)}}))}));return o},verifySelector:async function(e){try{const t=await Ym();e.findBy||(e.findBy=Xm(e.selector)?"xpath":"cssSelector"),await Im().tabs.update(t.id,{active:!0}),await Im().windows.update(t.windowId,{focused:!0});return await Im().tabs.sendMessage(t.id,{data:e,isBlock:!0,label:"verify-selector"},{frameId:0})}catch(e){return console.error(e),await Zm(1e3),{notFound:!0}}finally{await tf()}}},of={class:"inline-flex items-center"},rf={__name:"SharedElSelectorActions",props:{findBy:{type:String,default:null},multiple:{type:Boolean,default:!1},selector:{type:String,default:""}},emits:["update:selector"],setup(e,{emit:t}){const n=e,o=t;Lm();const r=(e=>{if(e)return md(e);const t=pa()?No(fd,void 0):void 0;return t||md(hd)})();function a(){nf.selectElement().then((e=>{o("update:selector",e)}))}function s(){nf.verifySelector({selector:n.selector,multiple:n.multiple,findBy:n.findBy}).then((e=>{e.notFound&&r.error("Element not found")}))}return(t,n)=>{const o=Xn("v-remixicon"),r=Xn("ui-button"),i=Qn("tooltip");return Rr(),$r("div",of,[dn((Rr(),Hr(r,{icon:"",class:"mr-2",onClick:a},{default:un((()=>[Zr(o,{name:"riFocus3Line"})])),_:1})),[[i,t.$t("workflow.blocks.base.element.select"),void 0,{group:!0}]]),dn((Rr(),Hr(r,{disabled:!e.selector,icon:"",onClick:s},{default:un((()=>[Zr(o,{name:"riCheckDoubleLine"})])),_:1},8,["disabled"])),[[i,t.$t("workflow.blocks.base.element.verify"),void 0,{group:!0}]])])}}},af=rf,sf={__name:"EditAutocomplete",props:{disabled:Boolean},setup(e){const t=No("autocompleteData",{}),n=pt({path:"",pathLen:-1});function o({text:e,item:t}){if(!e)return!0;const n=e.replace("@",".").split(".").pop();return t.toLocaleLowerCase().includes(n)}function r(e){const t=(e??"").replace("@",".").split(".");n.path=(t.length>1?t.slice(0,-1):t).join("."),n.pathLen=t.length}const a=La((()=>{const e=!n.path||n.pathLen<=1?t.value:Rm().get(t.value,n.path);return"string"==typeof e?[]:Object.keys(e||{})}));return(e,t)=>{const n=Xn("ui-autocomplete");return Rr(),Hr(n,{items:a.value,"trigger-char":["{{","}}"],"custom-filter":o,"replace-after":["@","."],block:"",onSearch:r},{default:un((()=>[oo(e.$slots,"default")])),_:3},8,["items"])}}},lf={key:1,class:"mb-2 flex items-center"},cf=["value"],uf={class:"mt-1"},df={__name:"EditInteractionBase",props:{data:{type:Object,default:()=>({})},hide:{type:Boolean,default:!1},hideMarkEl:{type:Boolean,default:!1},hideSelector:{type:Boolean,default:!1},hideMultiple:{type:Boolean,default:!1},hideDescription:Boolean},emits:["update:data","change"],setup(e,{emit:t}){const n=e,o=t,{t:r}=Yc(),a=["cssSelector","xpath"];function s(e){const t={...n.data,...e};o("update:data",t),o("change",t)}return Vn((()=>{n.data.findBy||s({findBy:"cssSelector"})})),(t,n)=>{const o=Xn("ui-textarea"),i=Xn("ui-select"),l=Xn("v-remixicon"),c=Xn("ui-checkbox"),u=Xn("ui-input"),d=Xn("ui-expand");return Rr(),$r("div",null,[oo(t.$slots,"prepend"),e.hide?na("",!0):(Rr(),$r(Or,{key:0},[e.hideDescription?na("",!0):(Rr(),Hr(o,{key:0,"model-value":e.data.description,placeholder:It(r)("common.description"),class:"mb-2 w-full",onChange:n[0]||(n[0]=e=>s({description:e}))},null,8,["model-value","placeholder"])),oo(t.$slots,"prepend:selector"),e.hideSelector?na("",!0):(Rr(),$r("div",lf,[Zr(i,{"model-value":e.data.findBy||"cssSelector",placeholder:It(r)("workflow.blocks.base.findElement.placeholder"),class:"mr-2 flex-1",onChange:n[1]||(n[1]=e=>s({findBy:e}))},{default:un((()=>[(Rr(),$r(Or,null,no(a,(e=>Xr("option",{key:e,value:e},te(It(r)(`workflow.blocks.base.findElement.options.${e}`)),9,cf))),64))])),_:1},8,["model-value","placeholder"]),Zr(af,{"find-by":e.data.findBy,selector:e.data.selector,multiple:e.data.multiple,"onUpdate:selector":n[2]||(n[2]=e=>s({selector:e}))},null,8,["find-by","selector","multiple"])])),e.hideSelector?na("",!0):(Rr(),Hr(sf,{key:2,class:"mb-1"},{default:un((()=>[e.hideSelector?na("",!0):(Rr(),Hr(o,{key:0,"model-value":e.data.selector,placeholder:It(r)("workflow.blocks.base.selector"),autoresize:"",class:"w-full",onChange:n[3]||(n[3]=e=>s({selector:e}))},null,8,["model-value","placeholder"]))])),_:1})),e.hideSelector?na("",!0):(Rr(),Hr(d,{key:3,"hide-header-icon":"","header-class":"flex items-center w-full focus:ring-0"},{header:un((({show:e})=>[Zr(l,{name:"riArrowLeftSLine",rotate:e?270:180,class:"mr-1 -ml-1 transition-transform"},null,8,["rotate"]),ta(" "+te(It(r)("workflow.blocks.base.selectorOptions")),1)])),default:un((()=>[Xr("div",uf,[e.data.disableMultiple||e.hideMultiple?na("",!0):(Rr(),Hr(c,{key:0,title:It(r)("workflow.blocks.base.multiple.title"),"model-value":e.data.multiple,class:"mr-6",onChange:n[4]||(n[4]=e=>s({multiple:e}))},{default:un((()=>[ta(te(It(r)("workflow.blocks.base.multiple.text")),1)])),_:1},8,["title","model-value"])),e.hideMarkEl||"cssSelector"!==(e.data.findBy||"cssSelector")?na("",!0):(Rr(),Hr(c,{key:1,"model-value":e.data.markEl,title:It(r)("workflow.blocks.base.markElement.title"),onChange:n[5]||(n[5]=e=>s({markEl:e}))},{default:un((()=>[ta(te(It(r)("workflow.blocks.base.markElement.text")),1)])),_:1},8,["model-value","title"]))]),Zr(c,{"model-value":e.data.waitForSelector,block:"",class:"mt-1",onChange:n[6]||(n[6]=e=>s({waitForSelector:e}))},{default:un((()=>[ta(te(It(r)("workflow.blocks.base.waitSelector.title")),1)])),_:1},8,["model-value"]),e.data.waitForSelector?(Rr(),Hr(u,{key:0,"model-value":e.data.waitSelectorTimeout,label:It(r)("workflow.blocks.base.waitSelector.timeout"),class:"mt-1 w-full",onChange:n[7]||(n[7]=e=>s({waitSelectorTimeout:+e}))},null,8,["model-value","label"])):na("",!0)])),_:1}))],64)),oo(t.$slots,"default")])}}},pf=df,mf=Xr("hr",null,null,-1),ff=["value"],hf=Xr("option",{value:"value"},"The value",-1),gf=Xr("optgroup",{label:"The position"},[Xr("option",{value:"first-option"},"First option"),Xr("option",{value:"last-option"},"Last option"),Xr("option",{value:"custom-position"},"Custom")],-1),yf={key:0,class:"mt-2"},vf={__name:"EditForms",props:{data:{type:Object,default:()=>({})},hideBase:{type:Boolean,default:!1}},emits:["update:data"],setup(e,{emit:t}){const n=e,o=t,{t:r}=Yc(),a=["text-field","select","checkbox","radio"];function s(e){o("update:data",{...n.data,...e})}return(t,n)=>{const o=Xn("ui-checkbox"),i=Xn("ui-select"),l=Xn("ui-textarea"),c=Xn("ui-input");return Rr(),Hr(pf,sa({data:e.data,hide:e.hideBase},{onChange:s}),{default:un((()=>[mf,Zr(o,{"model-value":e.data.getValue,onChange:n[0]||(n[0]=e=>s({getValue:e}))},{default:un((()=>[ta(te(It(r)("workflow.blocks.forms.getValue")),1)])),_:1},8,["model-value"]),e.data.getValue&&!e.hideBase?(Rr(),Hr(nu,{key:0,data:e.data,variables:"",onUpdate:s},null,8,["data"])):(Rr(),$r(Or,{key:1},[Zr(i,{"model-value":e.data.type,class:"mb-2 mt-4 block w-full",placeholder:It(r)("workflow.blocks.forms.type"),onChange:n[1]||(n[1]=e=>s({type:e}))},{default:un((()=>[(Rr(),$r(Or,null,no(a,(e=>Xr("option",{key:e,value:e},te(It(r)(`workflow.blocks.forms.${e}.name`)),9,ff))),64))])),_:1},8,["model-value","placeholder"]),"checkbox"===e.data.type||"radio"===e.data.type?(Rr(),Hr(o,{key:0,"model-value":e.data.selected,onChange:n[2]||(n[2]=e=>s({selected:e}))},{default:un((()=>[ta(te(It(r)("workflow.blocks.forms.selected")),1)])),_:1},8,["model-value"])):na("",!0),"text-field"===e.data.type?(Rr(),$r(Or,{key:1},[Zr(sf,{class:"mb-1 w-full"},{default:un((()=>[Zr(l,{"model-value":e.data.value,placeholder:It(r)("workflow.blocks.forms.text-field.value"),class:"w-full",onChange:n[3]||(n[3]=e=>s({value:e}))},null,8,["model-value","placeholder"])])),_:1}),Zr(o,{"model-value":e.data.clearValue,onChange:n[4]||(n[4]=e=>s({clearValue:e}))},{default:un((()=>[ta(te(It(r)("workflow.blocks.forms.text-field.clearValue")),1)])),_:1},8,["model-value"])],64)):na("",!0),"select"===e.data.type?(Rr(),$r(Or,{key:2},[Zr(i,{"model-value":e.data.selectOptionBy,label:"Select an option by",class:"w-full",onChange:n[5]||(n[5]=e=>s({selectOptionBy:e}))},{default:un((()=>[hf,gf])),_:1},8,["model-value"]),"value"===e.data.selectOptionBy?(Rr(),$r("div",yf,[Zr(sf,{class:"mb-1 w-full"},{default:un((()=>[Zr(l,{"model-value":e.data.value,placeholder:It(r)("workflow.blocks.forms.text-field.value"),class:"w-full",onChange:n[6]||(n[6]=e=>s({value:e}))},null,8,["model-value","placeholder"])])),_:1}),Zr(o,{"model-value":e.data.clearValue,onChange:n[7]||(n[7]=e=>s({clearValue:e}))},{default:un((()=>[ta(te(It(r)("workflow.blocks.forms.text-field.clearValue")),1)])),_:1},8,["model-value"])])):"custom-position"===e.data.selectOptionBy?(Rr(),Hr(c,{key:1,"model-value":e.data.optionPosition,label:"Option position",placeholder:"0",class:"mt-2 w-full",onChange:n[8]||(n[8]=e=>s({optionPosition:e}))},null,8,["model-value"])):na("",!0)],64)):na("",!0),"text-field"===e.data.type?(Rr(),Hr(c,{key:3,"model-value":e.data.delay,label:It(r)("workflow.blocks.forms.text-field.delay.label"),placeholder:It(r)("workflow.blocks.forms.text-field.delay.placeholder"),class:"mt-1 w-full",min:"0",onChange:n[9]||(n[9]=e=>s({delay:e}))},null,8,["model-value","label","placeholder"])):na("",!0)],64))])),_:1},16)}}},bf=vf,kf={class:"grid grid-cols-2 gap-2"},wf=["value"],Cf={__name:"TriggerEventMouse",props:{params:{type:Object,default:()=>({})}},emits:["update"],setup(e,{emit:t}){const n=e,o=t,r=[{id:0,name:"Left click"},{id:1,name:"Middle click"},{id:2,name:"Right click"}],a=[["clientX","clientY"],["movementX","movementY"],["offsetX","offsetY"],["pageX","pageY"],["screenX","screenY"]],s=pt({altKey:!1,button:0,clientX:0,clientY:0,ctrlKey:!1,metaKey:!1,shiftKey:!1,movementX:0,movementY:0,offsetX:0,offsetY:0,pageX:0,pageY:0,screenX:0,screenY:0});return yr(s,(e=>{o("update",e)}),{deep:!0}),Vn((()=>{Object.entries(n.params).forEach((([e,t])=>{Jm(s,e)&&(s[e]=t)}))})),(e,t)=>{const n=Xn("ui-checkbox"),o=Xn("ui-select"),i=Xn("ui-input");return Rr(),$r(Or,null,[Xr("div",kf,[(Rr(),$r(Or,null,no(["altKey","ctrlKey","metaKey","shiftKey"],(e=>Zr(n,{key:e,modelValue:It(s)[e],"onUpdate:modelValue":t=>It(s)[e]=t},{default:un((()=>[ta(te(e),1)])),_:2},1032,["modelValue","onUpdate:modelValue"]))),64))]),Zr(o,{modelValue:It(s).button,"onUpdate:modelValue":t[0]||(t[0]=e=>It(s).button=e),modelModifiers:{number:!0},class:"mt-2 w-full",label:"Button"},{default:un((()=>[(Rr(),$r(Or,null,no(r,(e=>Xr("option",{key:e.id,value:e.id},te(e.name),9,wf))),64))])),_:1},8,["modelValue"]),(Rr(),$r(Or,null,no(a,(e=>Xr("div",{key:e[0],class:"mt-2 flex items-center space-x-2"},[e[0].startsWith("client")?(Rr(!0),$r(Or,{key:0},no(e,(e=>(Rr(),Hr(i,{key:e,"model-value":It(s)[e],label:e,class:"flex-1",onChange:t=>It(s)[e]=+t||t},null,8,["model-value","label","onChange"])))),128)):(Rr(!0),$r(Or,{key:1},no(e,(e=>(Rr(),Hr(i,{key:e,modelValue:It(s)[e],"onUpdate:modelValue":t=>It(s)[e]=t,modelModifiers:{number:!0},type:"number",class:"flex-1",label:e},null,8,["modelValue","onUpdate:modelValue","label"])))),128))]))),64))],64)}}},_f=Cf,Ef={class:"grid grid-cols-2 gap-2"},xf={__name:"TriggerEventTouch",props:{params:{type:Object,default:()=>({})}},emits:["update"],setup(e,{emit:t}){const n=e,o=t,r=pt({altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1});return yr(r,(e=>{o("update",e)}),{deep:!0}),Vn((()=>{Object.entries(n.params).forEach((([e,t])=>{Jm(r,e)&&(r[e]=t)}))})),(e,t)=>{const n=Xn("ui-checkbox");return Rr(),$r("div",Ef,[(Rr(),$r(Or,null,no(["altKey","ctrlKey","metaKey","shiftKey"],(e=>Zr(n,{key:e,modelValue:It(r)[e],"onUpdate:modelValue":t=>It(r)[e]=t},{default:un((()=>[ta(te(e),1)])),_:2},1032,["modelValue","onUpdate:modelValue"]))),64))])}}},Af=xf,Sf={class:"grid grid-cols-2 gap-2"},Tf={__name:"TriggerEventWheel",props:{params:{type:Object,default:()=>({})}},emits:["update"],setup(e,{emit:t}){const n=e,o=t,r=pt({deltaX:0,deltaY:0,deltaZ:0});return yr(r,(e=>{o("update",e)}),{deep:!0}),Vn((()=>{Object.entries(n.params).forEach((([e,t])=>{Jm(r,e)&&(r[e]=t)}))})),(e,t)=>{const n=Xn("ui-input");return Rr(),$r("div",Sf,[Zr(n,{modelValue:It(r).deltaX,"onUpdate:modelValue":t[0]||(t[0]=e=>It(r).deltaX=e),modelModifiers:{number:!0},type:"number",label:"deltaX"},null,8,["modelValue"]),Zr(n,{modelValue:It(r).deltaY,"onUpdate:modelValue":t[1]||(t[1]=e=>It(r).deltaY=e),modelModifiers:{number:!0},type:"number",label:"deltaY"},null,8,["modelValue"]),Zr(n,{modelValue:It(r).deltaZ,"onUpdate:modelValue":t[2]||(t[2]=e=>It(r).deltaZ=e),modelModifiers:{number:!0},type:"number",class:"col-span-2",label:"deltaZ"},null,8,["modelValue"])])}}},Lf=Tf,Nf={class:"grid grid-cols-2 gap-2"},If={__name:"TriggerEventInput",props:{params:{type:Object,default:()=>({})}},emits:["update"],setup(e,{emit:t}){const n=e,o=t,r=pt({data:"",inputType:"insertText"});return yr(r,(e=>{o("update",e)}),{deep:!0}),Vn((()=>{Object.entries(n.params).forEach((([e,t])=>{Jm(r,e)&&(r[e]=t)}))})),(e,t)=>{const n=Xn("ui-input");return Rr(),$r("div",Nf,[Zr(n,{modelValue:It(r).data,"onUpdate:modelValue":t[0]||(t[0]=e=>It(r).data=e),label:"Data"},null,8,["modelValue"]),Zr(n,{modelValue:It(r).inputType,"onUpdate:modelValue":t[1]||(t[1]=e=>It(r).inputType=e),label:"Input type"},null,8,["modelValue"])])}}},Df=If,Of={0:{keyCode:48,key:"0",code:"Digit0"},1:{keyCode:49,key:"1",code:"Digit1"},2:{keyCode:50,key:"2",code:"Digit2"},3:{keyCode:51,key:"3",code:"Digit3"},4:{keyCode:52,key:"4",code:"Digit4"},5:{keyCode:53,key:"5",code:"Digit5"},6:{keyCode:54,key:"6",code:"Digit6"},7:{keyCode:55,key:"7",code:"Digit7"},8:{keyCode:56,key:"8",code:"Digit8"},9:{keyCode:57,key:"9",code:"Digit9"},Power:{key:"Power",code:"Power"},Eject:{key:"Eject",code:"Eject"},Abort:{keyCode:3,code:"Abort",key:"Cancel"},Help:{keyCode:6,code:"Help",key:"Help"},Backspace:{keyCode:8,code:"Backspace",key:"Backspace"},Tab:{keyCode:9,code:"Tab",key:"Tab"},Numpad5:{keyCode:12,shiftKeyCode:101,key:"Clear",code:"Numpad5",shiftKey:"5",location:3},NumpadEnter:{keyCode:13,code:"NumpadEnter",key:"Enter",text:"\r",location:3},Enter:{keyCode:13,code:"Enter",key:"Enter",text:"\r"},"\r":{keyCode:13,code:"Enter",key:"Enter",text:"\r"},"\n":{keyCode:13,code:"Enter",key:"Enter",text:"\r"},ShiftLeft:{keyCode:16,code:"ShiftLeft",key:"Shift",location:1},ShiftRight:{keyCode:16,code:"ShiftRight",key:"Shift",location:2},ControlLeft:{keyCode:17,code:"ControlLeft",key:"Control",location:1},ControlRight:{keyCode:17,code:"ControlRight",key:"Control",location:2},AltLeft:{keyCode:18,code:"AltLeft",key:"Alt",location:1},AltRight:{keyCode:18,code:"AltRight",key:"Alt",location:2},Pause:{keyCode:19,code:"Pause",key:"Pause"},CapsLock:{keyCode:20,code:"CapsLock",key:"CapsLock"},Escape:{keyCode:27,code:"Escape",key:"Escape"},Convert:{keyCode:28,code:"Convert",key:"Convert"},NonConvert:{keyCode:29,code:"NonConvert",key:"NonConvert"},Space:{keyCode:32,code:"Space",key:" "},Numpad9:{keyCode:33,shiftKeyCode:105,key:"PageUp",code:"Numpad9",shiftKey:"9",location:3},PageUp:{keyCode:33,code:"PageUp",key:"PageUp"},Numpad3:{keyCode:34,shiftKeyCode:99,key:"PageDown",code:"Numpad3",shiftKey:"3",location:3},PageDown:{keyCode:34,code:"PageDown",key:"PageDown"},End:{keyCode:35,code:"End",key:"End"},Numpad1:{keyCode:35,shiftKeyCode:97,key:"End",code:"Numpad1",shiftKey:"1",location:3},Home:{keyCode:36,code:"Home",key:"Home"},Numpad7:{keyCode:36,shiftKeyCode:103,key:"Home",code:"Numpad7",shiftKey:"7",location:3},ArrowLeft:{keyCode:37,code:"ArrowLeft",key:"ArrowLeft"},Numpad4:{keyCode:37,shiftKeyCode:100,key:"ArrowLeft",code:"Numpad4",shiftKey:"4",location:3},Numpad8:{keyCode:38,shiftKeyCode:104,key:"ArrowUp",code:"Numpad8",shiftKey:"8",location:3},ArrowUp:{keyCode:38,code:"ArrowUp",key:"ArrowUp"},ArrowRight:{keyCode:39,code:"ArrowRight",key:"ArrowRight"},Numpad6:{keyCode:39,shiftKeyCode:102,key:"ArrowRight",code:"Numpad6",shiftKey:"6",location:3},Numpad2:{keyCode:40,shiftKeyCode:98,key:"ArrowDown",code:"Numpad2",shiftKey:"2",location:3},ArrowDown:{keyCode:40,code:"ArrowDown",key:"ArrowDown"},Select:{keyCode:41,code:"Select",key:"Select"},Open:{keyCode:43,code:"Open",key:"Execute"},PrintScreen:{keyCode:44,code:"PrintScreen",key:"PrintScreen"},Insert:{keyCode:45,code:"Insert",key:"Insert"},Numpad0:{keyCode:45,shiftKeyCode:96,key:"Insert",code:"Numpad0",shiftKey:"0",location:3},Delete:{keyCode:46,code:"Delete",key:"Delete"},NumpadDecimal:{keyCode:46,shiftKeyCode:110,code:"NumpadDecimal",key:"\0",shiftKey:".",location:3},Digit0:{keyCode:48,code:"Digit0",shiftKey:")",key:"0"},Digit1:{keyCode:49,code:"Digit1",shiftKey:"!",key:"1"},Digit2:{keyCode:50,code:"Digit2",shiftKey:"@",key:"2"},Digit3:{keyCode:51,code:"Digit3",shiftKey:"#",key:"3"},Digit4:{keyCode:52,code:"Digit4",shiftKey:"$",key:"4"},Digit5:{keyCode:53,code:"Digit5",shiftKey:"%",key:"5"},Digit6:{keyCode:54,code:"Digit6",shiftKey:"^",key:"6"},Digit7:{keyCode:55,code:"Digit7",shiftKey:"&",key:"7"},Digit8:{keyCode:56,code:"Digit8",shiftKey:"*",key:"8"},Digit9:{keyCode:57,code:"Digit9",shiftKey:"(",key:"9"},KeyA:{keyCode:65,code:"KeyA",shiftKey:"A",key:"a"},KeyB:{keyCode:66,code:"KeyB",shiftKey:"B",key:"b"},KeyC:{keyCode:67,code:"KeyC",shiftKey:"C",key:"c"},KeyD:{keyCode:68,code:"KeyD",shiftKey:"D",key:"d"},KeyE:{keyCode:69,code:"KeyE",shiftKey:"E",key:"e"},KeyF:{keyCode:70,code:"KeyF",shiftKey:"F",key:"f"},KeyG:{keyCode:71,code:"KeyG",shiftKey:"G",key:"g"},KeyH:{keyCode:72,code:"KeyH",shiftKey:"H",key:"h"},KeyI:{keyCode:73,code:"KeyI",shiftKey:"I",key:"i"},KeyJ:{keyCode:74,code:"KeyJ",shiftKey:"J",key:"j"},KeyK:{keyCode:75,code:"KeyK",shiftKey:"K",key:"k"},KeyL:{keyCode:76,code:"KeyL",shiftKey:"L",key:"l"},KeyM:{keyCode:77,code:"KeyM",shiftKey:"M",key:"m"},KeyN:{keyCode:78,code:"KeyN",shiftKey:"N",key:"n"},KeyO:{keyCode:79,code:"KeyO",shiftKey:"O",key:"o"},KeyP:{keyCode:80,code:"KeyP",shiftKey:"P",key:"p"},KeyQ:{keyCode:81,code:"KeyQ",shiftKey:"Q",key:"q"},KeyR:{keyCode:82,code:"KeyR",shiftKey:"R",key:"r"},KeyS:{keyCode:83,code:"KeyS",shiftKey:"S",key:"s"},KeyT:{keyCode:84,code:"KeyT",shiftKey:"T",key:"t"},KeyU:{keyCode:85,code:"KeyU",shiftKey:"U",key:"u"},KeyV:{keyCode:86,code:"KeyV",shiftKey:"V",key:"v"},KeyW:{keyCode:87,code:"KeyW",shiftKey:"W",key:"w"},KeyX:{keyCode:88,code:"KeyX",shiftKey:"X",key:"x"},KeyY:{keyCode:89,code:"KeyY",shiftKey:"Y",key:"y"},KeyZ:{keyCode:90,code:"KeyZ",shiftKey:"Z",key:"z"},MetaLeft:{keyCode:91,code:"MetaLeft",key:"Meta",location:1},MetaRight:{keyCode:92,code:"MetaRight",key:"Meta",location:2},ContextMenu:{keyCode:93,code:"ContextMenu",key:"ContextMenu"},NumpadMultiply:{keyCode:106,code:"NumpadMultiply",key:"*",location:3},NumpadAdd:{keyCode:107,code:"NumpadAdd",key:"+",location:3},NumpadSubtract:{keyCode:109,code:"NumpadSubtract",key:"-",location:3},NumpadDivide:{keyCode:111,code:"NumpadDivide",key:"/",location:3},F1:{keyCode:112,code:"F1",key:"F1"},F2:{keyCode:113,code:"F2",key:"F2"},F3:{keyCode:114,code:"F3",key:"F3"},F4:{keyCode:115,code:"F4",key:"F4"},F5:{keyCode:116,code:"F5",key:"F5"},F6:{keyCode:117,code:"F6",key:"F6"},F7:{keyCode:118,code:"F7",key:"F7"},F8:{keyCode:119,code:"F8",key:"F8"},F9:{keyCode:120,code:"F9",key:"F9"},F10:{keyCode:121,code:"F10",key:"F10"},F11:{keyCode:122,code:"F11",key:"F11"},F12:{keyCode:123,code:"F12",key:"F12"},F13:{keyCode:124,code:"F13",key:"F13"},F14:{keyCode:125,code:"F14",key:"F14"},F15:{keyCode:126,code:"F15",key:"F15"},F16:{keyCode:127,code:"F16",key:"F16"},F17:{keyCode:128,code:"F17",key:"F17"},F18:{keyCode:129,code:"F18",key:"F18"},F19:{keyCode:130,code:"F19",key:"F19"},F20:{keyCode:131,code:"F20",key:"F20"},F21:{keyCode:132,code:"F21",key:"F21"},F22:{keyCode:133,code:"F22",key:"F22"},F23:{keyCode:134,code:"F23",key:"F23"},F24:{keyCode:135,code:"F24",key:"F24"},NumLock:{keyCode:144,code:"NumLock",key:"NumLock"},ScrollLock:{keyCode:145,code:"ScrollLock",key:"ScrollLock"},AudioVolumeMute:{keyCode:173,code:"AudioVolumeMute",key:"AudioVolumeMute"},AudioVolumeDown:{keyCode:174,code:"AudioVolumeDown",key:"AudioVolumeDown"},AudioVolumeUp:{keyCode:175,code:"AudioVolumeUp",key:"AudioVolumeUp"},MediaTrackNext:{keyCode:176,code:"MediaTrackNext",key:"MediaTrackNext"},MediaTrackPrevious:{keyCode:177,code:"MediaTrackPrevious",key:"MediaTrackPrevious"},MediaStop:{keyCode:178,code:"MediaStop",key:"MediaStop"},MediaPlayPause:{keyCode:179,code:"MediaPlayPause",key:"MediaPlayPause"},Semicolon:{keyCode:186,code:"Semicolon",shiftKey:":",key:";"},Equal:{keyCode:187,code:"Equal",shiftKey:"+",key:"="},NumpadEqual:{keyCode:187,code:"NumpadEqual",key:"=",location:3},Comma:{keyCode:188,code:"Comma",shiftKey:"<",key:","},Minus:{keyCode:189,code:"Minus",shiftKey:"_",key:"-"},Period:{keyCode:190,code:"Period",shiftKey:">",key:"."},Slash:{keyCode:191,code:"Slash",shiftKey:"?",key:"/"},Backquote:{keyCode:192,code:"Backquote",shiftKey:"~",key:"`"},BracketLeft:{keyCode:219,code:"BracketLeft",shiftKey:"{",key:"["},Backslash:{keyCode:220,code:"Backslash",shiftKey:"|",key:"\\"},BracketRight:{keyCode:221,code:"BracketRight",shiftKey:"}",key:"]"},Quote:{keyCode:222,code:"Quote",shiftKey:'"',key:"'"},AltGraph:{keyCode:225,code:"AltGraph",key:"AltGraph"},Props:{keyCode:247,code:"Props",key:"CrSel"},Cancel:{keyCode:3,key:"Cancel",code:"Abort"},Clear:{keyCode:12,key:"Clear",code:"Numpad5",location:3},Shift:{keyCode:16,key:"Shift",code:"ShiftLeft",location:1},Control:{keyCode:17,key:"Control",code:"ControlLeft",location:1},Alt:{keyCode:18,key:"Alt",code:"AltLeft",location:1},Accept:{keyCode:30,key:"Accept"},ModeChange:{keyCode:31,key:"ModeChange"}," ":{keyCode:32,key:" ",code:"Space"},Print:{keyCode:42,key:"Print"},Execute:{keyCode:43,key:"Execute",code:"Open"},"\0":{keyCode:46,key:"\0",code:"NumpadDecimal",location:3},a:{keyCode:65,key:"a",code:"KeyA"},b:{keyCode:66,key:"b",code:"KeyB"},c:{keyCode:67,key:"c",code:"KeyC"},d:{keyCode:68,key:"d",code:"KeyD"},e:{keyCode:69,key:"e",code:"KeyE"},f:{keyCode:70,key:"f",code:"KeyF"},g:{keyCode:71,key:"g",code:"KeyG"},h:{keyCode:72,key:"h",code:"KeyH"},i:{keyCode:73,key:"i",code:"KeyI"},j:{keyCode:74,key:"j",code:"KeyJ"},k:{keyCode:75,key:"k",code:"KeyK"},l:{keyCode:76,key:"l",code:"KeyL"},m:{keyCode:77,key:"m",code:"KeyM"},n:{keyCode:78,key:"n",code:"KeyN"},o:{keyCode:79,key:"o",code:"KeyO"},p:{keyCode:80,key:"p",code:"KeyP"},q:{keyCode:81,key:"q",code:"KeyQ"},r:{keyCode:82,key:"r",code:"KeyR"},s:{keyCode:83,key:"s",code:"KeyS"},t:{keyCode:84,key:"t",code:"KeyT"},u:{keyCode:85,key:"u",code:"KeyU"},v:{keyCode:86,key:"v",code:"KeyV"},w:{keyCode:87,key:"w",code:"KeyW"},x:{keyCode:88,key:"x",code:"KeyX"},y:{keyCode:89,key:"y",code:"KeyY"},z:{keyCode:90,key:"z",code:"KeyZ"},Meta:{keyCode:91,key:"Meta",code:"MetaLeft",location:1},"*":{keyCode:106,key:"*",code:"NumpadMultiply",location:3},"+":{keyCode:107,key:"+",code:"NumpadAdd",location:3},"-":{keyCode:109,key:"-",code:"NumpadSubtract",location:3},"/":{keyCode:111,key:"/",code:"NumpadDivide",location:3},";":{keyCode:186,key:";",code:"Semicolon"},"=":{keyCode:187,key:"=",code:"Equal"},",":{keyCode:188,key:",",code:"Comma"},".":{keyCode:190,key:".",code:"Period"},"`":{keyCode:192,key:"`",code:"Backquote"},"[":{keyCode:219,key:"[",code:"BracketLeft"},"\\":{keyCode:220,key:"\\",code:"Backslash"},"]":{keyCode:221,key:"]",code:"BracketRight"},"'":{keyCode:222,key:"'",code:"Quote"},Attn:{keyCode:246,key:"Attn"},CrSel:{keyCode:247,key:"CrSel",code:"Props"},ExSel:{keyCode:248,key:"ExSel"},EraseEof:{keyCode:249,key:"EraseEof"},Play:{keyCode:250,key:"Play"},ZoomOut:{keyCode:251,key:"ZoomOut"},")":{keyCode:48,key:")",code:"Digit0"},"!":{keyCode:49,key:"!",code:"Digit1"},"@":{keyCode:50,key:"@",code:"Digit2"},"#":{keyCode:51,key:"#",code:"Digit3"},$:{keyCode:52,key:"$",code:"Digit4"},"%":{keyCode:53,key:"%",code:"Digit5"},"^":{keyCode:54,key:"^",code:"Digit6"},"&":{keyCode:55,key:"&",code:"Digit7"},"(":{keyCode:57,key:"(",code:"Digit9"},A:{keyCode:65,key:"A",code:"KeyA"},B:{keyCode:66,key:"B",code:"KeyB"},C:{keyCode:67,key:"C",code:"KeyC"},D:{keyCode:68,key:"D",code:"KeyD"},E:{keyCode:69,key:"E",code:"KeyE"},F:{keyCode:70,key:"F",code:"KeyF"},G:{keyCode:71,key:"G",code:"KeyG"},H:{keyCode:72,key:"H",code:"KeyH"},I:{keyCode:73,key:"I",code:"KeyI"},J:{keyCode:74,key:"J",code:"KeyJ"},K:{keyCode:75,key:"K",code:"KeyK"},L:{keyCode:76,key:"L",code:"KeyL"},M:{keyCode:77,key:"M",code:"KeyM"},N:{keyCode:78,key:"N",code:"KeyN"},O:{keyCode:79,key:"O",code:"KeyO"},P:{keyCode:80,key:"P",code:"KeyP"},Q:{keyCode:81,key:"Q",code:"KeyQ"},R:{keyCode:82,key:"R",code:"KeyR"},S:{keyCode:83,key:"S",code:"KeyS"},T:{keyCode:84,key:"T",code:"KeyT"},U:{keyCode:85,key:"U",code:"KeyU"},V:{keyCode:86,key:"V",code:"KeyV"},W:{keyCode:87,key:"W",code:"KeyW"},X:{keyCode:88,key:"X",code:"KeyX"},Y:{keyCode:89,key:"Y",code:"KeyY"},Z:{keyCode:90,key:"Z",code:"KeyZ"},":":{keyCode:186,key:":",code:"Semicolon"},"<":{keyCode:188,key:"<",code:"Comma"},_:{keyCode:189,key:"_",code:"Minus"},">":{keyCode:190,key:">",code:"Period"},"?":{keyCode:191,key:"?",code:"Slash"},"~":{keyCode:192,key:"~",code:"Backquote"},"{":{keyCode:219,key:"{",code:"BracketLeft"},"|":{keyCode:220,key:"|",code:"Backslash"},"}":{keyCode:221,key:"}",code:"BracketRight"},'"':{keyCode:222,key:'"',code:"Quote"},SoftLeft:{key:"SoftLeft",code:"SoftLeft",location:4},SoftRight:{key:"SoftRight",code:"SoftRight",location:4},Camera:{keyCode:44,key:"Camera",code:"Camera",location:4},Call:{key:"Call",code:"Call",location:4},EndCall:{keyCode:95,key:"EndCall",code:"EndCall",location:4},VolumeDown:{keyCode:182,key:"VolumeDown",code:"VolumeDown",location:4},VolumeUp:{keyCode:183,key:"VolumeUp",code:"VolumeUp",location:4}},Bf={class:"grid grid-cols-2 gap-2"},zf={class:"mt-1 flex items-center space-x-2"},Ff={__name:"TriggerEventKeyboard",props:{params:{type:Object,default:()=>({})}},emits:["update"],setup(e,{emit:t}){const n=e,o=t,r=pt({altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,code:"",key:"",keyCode:0,repeat:!1});function a(e){Of[e]&&(r.code=Of[e].code,r.keyCode=Of[e].keyCode)}return yr(r,(e=>{o("update",e)}),{deep:!0}),Vn((()=>{Object.entries(n.params).forEach((([e,t])=>{Jm(r,e)&&(r[e]=t)}))})),(e,t)=>{const n=Xn("ui-checkbox"),o=Xn("ui-input");return Rr(),$r(Or,null,[Xr("div",Bf,[(Rr(),$r(Or,null,no(["altKey","ctrlKey","metaKey","shiftKey"],(e=>Zr(n,{key:e,modelValue:It(r)[e],"onUpdate:modelValue":t=>It(r)[e]=t},{default:un((()=>[ta(te(e),1)])),_:2},1032,["modelValue","onUpdate:modelValue"]))),64))]),Zr(o,{modelValue:It(r).key,"onUpdate:modelValue":t[0]||(t[0]=e=>It(r).key=e),class:"mt-2 w-full",label:"key",placeholder:"a",onChange:a},null,8,["modelValue"]),Xr("div",zf,[Zr(o,{modelValue:It(r).code,"onUpdate:modelValue":t[1]||(t[1]=e=>It(r).code=e),class:"flex-1",label:"code",placeholder:"KeyA"},null,8,["modelValue"]),Zr(o,{modelValue:It(r).keyCode,"onUpdate:modelValue":t[2]||(t[2]=e=>It(r).keyCode=e),modelModifiers:{number:!0},type:"number",class:"flex-1",label:"keyCode"},null,8,["modelValue"])]),Zr(n,{modelValue:It(r).repeat,"onUpdate:modelValue":t[3]||(t[3]=e=>It(r).repeat=e),class:"mt-4"},{default:un((()=>[ta(" Repeat ")])),_:1},8,["modelValue"])],64)}}},Pf=Ff,Mf=["value"],Rf={class:"flex-1"},Vf=["href"],Uf={key:0},jf={class:"mb-4 grid grid-cols-2 gap-2"},Kf={__name:"EditTriggerEvent",props:{data:{type:Object,default:()=>({})},hideBase:{type:Boolean,default:!1}},emits:["update:data"],setup(e,{emit:t}){const n=e,o=t,{t:r}=Yc(),a={"mouse-event":_f,"focus-event":"",event:"","touch-event":Af,"keyboard-event":Pf,"wheel-event":Lf,"input-event":Df},s=St(n.data.eventParams),i=St(!1);function l(){const e=function(e,t=!1){const n=e.replace(/(?:^\w|[A-Z]|\b\w)/g,((e,n)=>0!==n||t?e.toUpperCase():e.toLowerCase()));return n.replace(/\s+|[-]/g,"")}(n.data.eventType);return`https://developer.mozilla.org/en-US/docs/Web/API/${e}/${e}`}function c(e){o("update:data",{...n.data,...e})}function u(e){s.value=e,c({eventParams:e})}function d(e){const t=Us.find((({id:t})=>t===e)).type,o={eventName:e,eventType:t};if(t!==n.eventType){const e={bubbles:!0,cancelable:!0};o.eventParams=e,s.value=e}c(o)}return(t,n)=>{const o=Xn("ui-select"),p=Xn("v-remixicon"),m=Xn("ui-checkbox"),f=Xn("transition-expand");return Rr(),Hr(pf,sa({data:e.data,hide:e.hideBase},{onChange:c}),{default:un((()=>[Zr(o,{"model-value":e.data.eventName,placeholder:It(r)("workflow.blocks.trigger-event.selectEvent"),class:"mt-4 w-full",onChange:d},{default:un((()=>[(Rr(!0),$r(Or,null,no(It(Us),(e=>(Rr(),$r("option",{key:e.id,value:e.id},te(e.name),9,Mf)))),128))])),_:1},8,["model-value","placeholder"]),Xr("button",{class:"mb-2 mt-1 block flex w-full items-center text-left focus:ring-0",onClick:n[1]||(n[1]=e=>i.value=!i.value)},[Zr(p,{name:"riArrowLeftSLine",class:"mr-1 -ml-1 transition-transform",rotate:i.value?270:180},null,8,["rotate"]),Xr("span",Rf,te(It(r)("common.options")),1),e.data.eventName?(Rr(),$r("a",{key:0,href:l(),rel:"noopener",target:"_blank",onClick:n[0]||(n[0]=Is((()=>{}),["stop"]))},[Zr(p,{name:"riInformationLine",size:"20"})],8,Vf)):na("",!0)]),Zr(f,null,{default:un((()=>[i.value?(Rr(),$r("div",Uf,[Xr("div",jf,[Zr(m,{"model-value":s.value.bubbles,onChange:n[2]||(n[2]=e=>u({...s.value,bubbles:e}))},{default:un((()=>[ta(" Bubbles ")])),_:1},8,["model-value"]),Zr(m,{"model-value":s.value.cancelable,onChange:n[3]||(n[3]=e=>u({...s.value,cancelable:e}))},{default:un((()=>[ta(" Cancelable ")])),_:1},8,["model-value"])]),a[e.data.eventType]?(Rr(),Hr(Jn(a[e.data.eventType]),{key:e.data.eventName,params:s.value,onUpdate:n[4]||(n[4]=e=>u({...s.value,...e}))},null,40,["params"])):na("",!0)])):na("",!0)])),_:1})])),_:1},16)}}},$f=Kf,Hf={key:0,class:"mt-3 flex items-center space-x-2"},Wf={class:"mt-3 space-y-2"},qf={__name:"EditScrollElement",props:{data:{type:Object,default:()=>({})},hideBase:{type:Boolean,default:!1}},emits:["update:data"],setup(e,{emit:t}){const n=e,o=t,{t:r}=Yc();function a(e){o("update:data",{...n.data,...e})}return(t,n)=>{const o=Xn("ui-input"),s=Xn("ui-checkbox");return Rr(),Hr(pf,sa({data:e.data,hide:e.hideBase},{onChange:a}),{default:un((()=>[e.data.scrollIntoView?na("",!0):(Rr(),$r("div",Hf,[Zr(o,{"model-value":e.data.scrollX||0,label:It(r)("workflow.blocks.element-scroll.scrollX"),type:"number",onChange:n[0]||(n[0]=e=>a({scrollX:+e}))},null,8,["model-value","label"]),Zr(o,{"model-value":e.data.scrollY||0,label:It(r)("workflow.blocks.element-scroll.scrollY"),type:"number",onChange:n[1]||(n[1]=e=>a({scrollY:+e}))},null,8,["model-value","label"])])),Xr("div",Wf,[Zr(s,{class:"w-full","model-value":e.data.scrollIntoView,onChange:n[2]||(n[2]=e=>a({scrollIntoView:e}))},{default:un((()=>[ta(te(It(r)("workflow.blocks.element-scroll.intoView")),1)])),_:1},8,["model-value"]),Zr(s,{"model-value":e.data.smooth,onChange:n[3]||(n[3]=e=>a({smooth:e}))},{default:un((()=>[ta(te(It(r)("workflow.blocks.element-scroll.smooth")),1)])),_:1},8,["model-value"]),e.data.scrollIntoView?na("",!0):(Rr(),$r(Or,{key:0},[Zr(s,{"model-value":e.data.incX,onChange:n[4]||(n[4]=e=>a({incX:e}))},{default:un((()=>[ta(te(It(r)("workflow.blocks.element-scroll.incScrollX")),1)])),_:1},8,["model-value"]),Zr(s,{"model-value":e.data.incY,onChange:n[5]||(n[5]=e=>a({incY:e}))},{default:un((()=>[ta(te(It(r)("workflow.blocks.element-scroll.incScrollY")),1)])),_:1},8,["model-value"])],64))])])),_:1},16)}}},Gf=qf;function Yf(e,t,n){const o=function(e,t){const n=Us.find((({id:t})=>t===e))?.type??"";let o;switch(n){case"mouse-event":o=new MouseEvent(e,{...t,view:window});break;case"focus-event":o=new FocusEvent(e,t);break;case"touch-event":o=new TouchEvent(e,t);break;case"keyboard-event":o=new KeyboardEvent(e,t);break;case"wheel-event":o=new WheelEvent(e,t);break;case"input-event":o=new InputEvent(e,t);break;default:o=new Event(e,t)}return o}(t,n);["focus","submit","blur"].includes(t)&&e[t]?e[t]():e.dispatchEvent(o)}const Xf=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;function Zf(e,t){if(!e._valueTracker)return;const n=e.value;Xf.call(e,t),e._valueTracker.setValue(n)}function Jf(e,t){if("text-field"===t.type){const n=/\s/.test(t.value)?"Space":t.value,{key:o,keyCode:r,code:a}=Of[n]||{key:n,keyCode:0,code:`Key${n}`};Yf(e,"input",{inputType:"insertText",data:t.value,bubbles:!0,cancelable:!0}),Yf(e,"keydown",{key:o,code:a,keyCode:r,bubbles:!0,cancelable:!0}),Yf(e,"keyup",{key:o,code:a,keyCode:r,bubbles:!0,cancelable:!0})}Yf(e,"input",{inputType:"insertText",data:t.value,bubbles:!0,cancelable:!0}),"text-field"!==t.type&&e.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}))}async function Qf({data:e,element:t,isEditable:n}){t?.focus(),t?.click();const o=n?"textContent":"value";if(e.delay>0&&!document.hidden)for(let r=0;r<e.value.length;r+=1){"value"===o&&Zf(t,t.value);const a=e.value[r];t[o]+=a,Jf(t,{type:"text-field",value:a,isEditable:n}),await Zm(e.delay)}else"value"===o&&Zf(t,t.value),t[o]+=e.value,Jf(t,{isEditable:n,type:"text-field",value:e.value[0]??""});t.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0})),t?.blur()}var eh=n(1271),th=n.n(eh);function nh(e,t,n,o=null){e=function(e){function t(){r&&(n.length>0&&/^[~+>]$/.test(n[n.length-1])&&n.push(" "),n.push(r))}var n=[];let o,r,a;const s=[0];let i,l=0;const c=/(?:[^\\]|(?:^|[^\\])(?:\\\\)+)$/,u=/^\s+$/,d=[/\s+|\/\*|["'>~+[(]/g,/\s+|\/\*|["'[\]()]/g,/\s+|\/\*|["'[\]()]/g,null,/\*\//g];for(e=e.trim();;){if(r="",a=d[s[s.length-1]],a.lastIndex=l,o=a.exec(e),!o){r=e.substr(l),t();break}if(i=l,l=a.lastIndex,i<l-o[0].length&&(r=e.substring(i,l-o[0].length)),s[s.length-1]<3){if(t(),"["===o[0])s.push(1);else if("("===o[0])s.push(2);else if(/^["']$/.test(o[0]))s.push(3),d[3]=new RegExp(o[0],"g");else if("/*"===o[0])s.push(4);else if(/^[\])]$/.test(o[0])&&s.length>0)s.pop();else if(/^(?:\s+|[~+>])$/.test(o[0])&&(n.length>0&&!u.test(n[n.length-1])&&0===s[s.length-1]&&n.push(" "),1===s[s.length-1]&&5===n.length&&"="===n[2].charAt(n[2].length-1)&&(n[4]=` ${n[4]}`),u.test(o[0])))continue;n.push(o[0])}else n[n.length-1]+=r,c.test(n[n.length-1])&&(4===s[s.length-1]&&(n.length<2||u.test(n[n.length-2])?n.pop():n[n.length-1]=" ",o[0]=""),s.pop()),n[n.length-1]+=o[0]}return n.join("").trim()}(e);const r=n.querySelector(e);if(document.head.createShadowRoot||document.head.attachShadow){if(!t&&r)return r;return oh(e,",").reduce(((e,r)=>{if(!t&&e)return e;const a=oh(r.replace(/^\s+/g,"").replace(/\s*([>+~]+)\s*/g,"$1")," ").filter((e=>!!e)).map((e=>oh(e,">"))),s=a.length-1,i=function(e=null,t,n=null){let o=[];if(n)o=n;else{const e=function(t){for(let n=0;n<t.length;n++){const r=t[n];o.push(r);const a=sh(r);a&&e(a.querySelectorAll("*"))}},n=sh(t);n&&e(n.querySelectorAll("*")),e(t.querySelectorAll("*"))}return e?o.filter((t=>t.matches(e))):o}(a[s][a[s].length-1],n,o),l=function(e,t,n){return o=>{let r=t,a=o,s=!1;for(;a&&!rh(a);){let t=!0;if(1===e[r].length)t=a.matches(e[r]);else{const o=[].concat(e[r]).reverse();let s=a;for(const e of o){if(!s||!s.matches(e)){t=!1;break}s=ah(s,n)}}if(t&&0===r){s=!0;break}t&&r--,a=ah(a,n)}return s}}(a,s,n);return t?e=e.concat(i.filter(l)):(e=i.find(l))||null}),t?[]:null)}return t?n.querySelectorAll(e):r}function oh(e,t){return e.match(/\\?.|^$/g).reduce(((e,n)=>('"'!==n||e.sQuote?"'"!==n||e.quote?e.quote||e.sQuote||n!==t?e.a[e.a.length-1]+=n:e.a.push(""):(e.sQuote^=1,e.a[e.a.length-1]+=n):(e.quote^=1,e.a[e.a.length-1]+=n),e)),{a:[""]}).a}function rh(e){return e.nodeType===Node.DOCUMENT_FRAGMENT_NODE||e.nodeType===Node.DOCUMENT_NODE}function ah(e,t){const{parentNode:n}=e;return n&&n.host&&11===n.nodeType?n.host:n===t?null:n}const sh=e=>e===document?e:chrome.dom.openOrClosedShadowRoot(e);th().selectors.pseudos.equal=th().selectors.createPseudo((function(e){return function(t){return(t.textContent||t.innerText||"").trim()===e}}));const ih=new RegExp([":contains",":header",":parent",":equal"].join("|"));const lh=class{static cssSelector(e,t=document){const n=e.markEl?`${e.selector.trim()}:not([${e.blockIdAttr}])`:e.selector;if(ih.test(n)){const o=th()(n,t);return o?e.multiple?o:o[0]:null}if(n.includes(">>")){const t=n.replaceAll(">>","");return e.multiple?function(e,t=document,n=null){return nh(e,!0,t,n)}(t):function(e,t=document,n=null){return nh(e,!1,t,n)}(t)}if(e.multiple){const e=t.querySelectorAll(n);return 0===e.length?null:e}return t.querySelector(n)}static xpath(e,t=document){const n=e.multiple?XPathResult.ORDERED_NODE_ITERATOR_TYPE:XPathResult.FIRST_ORDERED_NODE_TYPE;let o=null;const r=t.evaluate(e.selector,t,null,n,null);if(e.multiple){o=[];let e=r.iterateNext();for(;e;)o.push(e),e=r.iterateNext()}else o=r.singleNodeValue;return o}};function ch(e,{id:t,data:n}){n.markEl&&e.setAttribute(`block--${t}`,"")}async function uh({data:e,id:t,frameSelector:n,debugMode:o},{onSelected:r,onError:a,onSuccess:s,withDocument:i}={}){if(!e||!e.selector)return a&&a(new Error("selector-empty")),null;const l=function(e){if(!e)return document;let t=document;const n=e.split("|>"),o=Xm(e)?"xpath":"cssSelector";return n.forEach((e=>{if(!t)return;const n=lh[o]({selector:e},t);t=n?.contentDocument})),t}(n);if(!l)return a&&a(new Error("iframe-not-found")),null;try{e.blockIdAttr=`block--${t}`;const n=await function(e,t=document){return new Promise((n=>{let o=null,r=!1;const a=()=>{if(r)return;const s=e.findBy||"cssSelector",i=lh[s](e,t);i&&0!==i.length||!e.waitForSelector?(o&&clearTimeout(o),n(i)):setTimeout(a,200)};a(),e.waitForSelector&&(o=setTimeout((()=>{r=!0,n(null)}),e.waitSelectorTimeout))}))}(e,l);if(!n||0===n.length)return a&&a(new Error("element-not-found")),null;const c=e.multiple?Array.from(n):[n];return await Promise.allSettled(c.map((async n=>{if(ch(n,{id:t,data:e}),o){const e=function(e){const{top:t,left:n,bottom:o,right:r,height:a,width:s}=e.getBoundingClientRect();return 0!==a&&0!==s&&t>=0&&n>=0&&o<=(window.innerHeight||document.documentElement.clientHeight)&&r<=(window.innerWidth||document.documentElement.clientWidth)}(n);e||n.scrollIntoView()}r&&await r(n)}))),s&&s(),i?{elements:n,document:l}:n}catch(e){throw a&&a(e),e}}const dh=new class{constructor(){this.lock=!1,this.queue=[]}async getLock(e=1e4){for(;this.lock;)await new Promise((t=>{this.queue.push(t),setTimeout((()=>{const e=this.queue.indexOf(t);-1!==e&&(this.queue.splice(e,1),console.warn("SynchronizedLock timeout"),t())}),e)}));this.lock=!0}releaseLock(){this.lock=!1;const e=this.queue.shift();e&&e()}},ph=dh;const mh=async function(e){const{data:t}=e,n=await uh(e,{returnElement:!0});if(!n)throw new Error("element-not-found");if(t.getValue){let e="";return e=t.multiple?n.map((e=>e.value||"")):n.value||"",e}async function o(n){if(e.debugMode&&"text-field"===t.type){await ph.getLock(),n.focus?.();try{if(t.clearValue){const t=new Array(n.value?.length??0).fill({type:"rawKeyDown",unmodifiedText:"Delete",text:"Delete",windowsVirtualKeyCode:46});await Bm("debugger:type",{commands:t,tabId:e.activeTabId,delay:0},"background")}const o=t.value.split("").map((e=>({type:"keyDown",text:"\n"===e?"\r":e}))),r=+e.data.delay;await Bm("debugger:type",{commands:o,tabId:e.activeTabId,delay:Number.isNaN(r)?0:r},"background")}finally{ph.releaseLock()}}else ch(n,e),await async function(e,t){const n=e.hasAttribute("contenteditable")&&e.isContentEditable;if(n)return t.clearValue&&(e.innerText=""),void await Qf({data:t,element:e,isEditable:n});if("text-field"===t.type&&["INPUT","TEXTAREA"].includes(e.tagName))return t.clearValue&&(e?.select(),Zf(e,""),e.value=""),void await Qf({data:t,element:e});if(e?.focus(),"checkbox"===t.type||"radio"===t.type)e.checked=t.selected,Jf(e,{type:t.type,value:t.selected});else if("select"===t.type){let n=t.value;const o=e.querySelectorAll("option"),r=t=>{if(!o)return e.value;let n=t;const r=o.length-1;return t<0?n=0:t>r&&(n=r),o[n]?.value||e.value};switch(t.selectOptionBy){case"first-option":n=r(0);break;case"last-option":n=r(o.length-1);break;case"custom-position":n=r(+t.optionPosition-1??0)}n&&(e.value=n,Jf(e,t))}e?.blur()}(n,t)}if(t.multiple){const e=Array.from(n).map((e=>o(e)));await Promise.allSettled(e)}else await o(n);return null};const fh=function(e){return new Promise(((t,n)=>{let o,r=[];const{regex:a,regexExp:s,prefixText:i,suffixText:l,multiple:c,includeTags:u,useTextContent:d}=e.data;a&&(o=new RegExp(a,[...new Set(s)].join(""))),uh(e,{onSelected(e){let t="";t=u?e.outerHTML:d?e.textContent:e.innerText,o&&(t=t.match(o)?.join(" ")??t),t=(i||"")+t+(l||""),c?r.push(t):r=t},onError(e){n(e)},onSuccess(){t(r)}})}))};const hh=function(e){return new Promise(((t,n)=>{uh(e,{async onSelected(t){if(e.debugMode){const{x:n,y:o}=await r(t),a={tabId:e.activeTabId,method:"Input.dispatchMouseEvent",params:{x:n,y:o,button:"left"}},s=e=>(a.params.type=e,"mousePressed"===e&&(a.params.clickCount=1),Bm("debugger:send-command",a,"background"));return await s("mouseMoved"),await Zm(100),await s("mousePressed"),await Zm(100),void await s("mouseReleased")}!function(e){const t={bubbles:!0,view:window};e.dispatchEvent(new MouseEvent("mousedown",t)),e.dispatchEvent(new MouseEvent("mouseup",t)),e.click?e.click():e.dispatchEvent(new PointerEvent("click",{bubbles:!0})),e.focus?.()}(t)},onError(e){n(e)},onSuccess(){t("")}})}))};const gh={altKey:1,ctrlKey:2,metKey:3,shiftKey:4},yh={"mouse-event":async({params:e,sendCommand:t,name:n})=>{const o={button:{0:{id:1,name:"left"},1:{id:4,name:"middle"},2:{id:2,name:"right"}}[e.button]?.name||"left"};e.clientX&&(o.x=+e.clientX),e.clientY&&(o.y=+e.clientY),Object.keys(gh).forEach((t=>{o.modifiers||e[t]&&(o.modifiers=gh[t])}));const r=function({sendCommand:e,commandParams:t}){async function n(){t.type="mousePressed",await e("Input.dispatchMouseEvent",t)}async function o(){t.type="mouseReleased",await e("Input.dispatchMouseEvent",t)}async function r(){t.clickCount||(t.clickCount=1),await n(),await o()}async function a(){t.type="mouseMoved",await e("Input.dispatchMouseEvent",t)}return{mousedown:n,mouseup:o,click:r,dblclick:async function(){t.clickCount=2,await r()},mousemove:a,mouseenter:async function(){await a()},mouseleave:async function(){await a(),t.x=-100,t.y=-100,await a()}}}({sendCommand:t,commandParams:o}),a={mouseover:"mouseenter",mouseout:"mouseleave"}[n]||n;await r[a]()},"keyboard-event":async({name:e,params:t,sendCommand:n})=>{const o=Of[t?.key],r={key:t.key??"",code:t.code??"",autoRepeat:t.repeat,windowsVirtualKeyCode:t.keyCode??0,type:"keyup"===e?"keyUp":"keyDown"};(o.text||1===t.key.length)&&(r.text=o.text||t.key),Object.keys(gh).forEach((e=>{r.modifiers||t[e]&&(r.modifiers=gh[e])})),await n("Input.dispatchKeyEvent",r)}};const vh=function({data:e,id:t,frameSelector:n,debugMode:o,activeTabId:a}){return new Promise(((s,i)=>{uh({data:e,id:t,frameSelector:n},{async onSelected(t){const n=yh[e.eventType];if(o&&n){let o={};if("mouse-event"===e.eventType){const{x:e,y:n}=await r(t);o={x:e,y:n}}const s=(e,t={})=>Bm("debugger:send-command",{method:e,params:{...o,...t},tabId:a},"background");await n({element:t,sendCommand:s,name:e.eventName,params:e.eventParams})}else Yf(t,e.eventName,e.eventParams)},onSuccess(){s(e.eventName)},onError(e){i(e)}}),s(e.eventName)}))};function bh(e=document.documentElement,t="down",n=5){if(0===n)return null;const o=function(e){const t=e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth,n=e.tagName.includes("-")||["SCRIPT","STYLE","SVG","HEAD"].includes(e.tagName);return t&&!n}(e);if(o)return e;if("up"===t){const o=e.parentElement;if(!o)return null;const r=bh(o,t,n-1);if(r)return r}else for(let o=0;o<e.childElementCount;o+=1){const r=bh(e.children.item(o),t,n-1);if(r)return r}return null}const kh=function(e){function t(e,t,n=!0){let o=n?e.scrollTop:e.scrollLeft;return t.incY?o+=t.scrollY:t.incX&&(o+=t.scrollX),o}return new Promise(((n,o)=>{const{data:r}=e,a=r.smooth?"smooth":"auto";uh(e,{onSelected(e){if(r.scrollIntoView)e.scrollIntoView({behavior:a,block:"center"});else{(bh(e,"up",3)||bh(e,"down",3)||e).scroll({behavior:a,top:r.incY?t(e,r):r.scrollY,left:r.incX?t(e,r,!1):r.scrollX})}},onError(e){o(e)},onSuccess(){window.dispatchEvent(new Event("scroll")),n("")}})}))},wh={class:"events mt-4"},Ch={class:"flex items-center"},_h=["value"],Eh={key:1,class:"mt-2 h-full overflow-auto rounded-lg bg-accent p-2 text-sm text-gray-100"},xh={__name:"SelectorBlocks",props:{selector:{type:String,default:""},elements:{type:Array,default:()=>[]}},emits:["update","execute"],setup(e,{emit:t}){const n=e,o=t,r={forms:{...Vs.forms,component:bf,handler:mh},"get-text":{...Vs["get-text"],component:"",handler:fh},"event-click":{...Vs["event-click"],component:"",handler:hh},"trigger-event":{...Vs["trigger-event"],component:$f,handler:vh},"element-scroll":{...Vs["element-scroll"],component:Gf,handler:kh}},a=pt({params:{},blockResult:"",selectedBlock:""});function s(e={}){a.params=e,o("update")}function i(e){a.params=Vs[e].data,a.blockResult="",o("update")}function l(){const e={...a.params,selector:n.selector,multiple:n.elements.length>1};o("execute",!0),r[a.selectedBlock].handler({data:e}).then((e=>{a.blockResult=JSON.stringify(e,null,2).trim(),o("update"),o("execute",!1)}))}return(e,t)=>{const n=Xn("ui-select"),o=Xn("ui-button");return Rr(),$r("div",wh,[Xr("div",Ch,[Zr(n,{modelValue:It(a).selectedBlock,"onUpdate:modelValue":t[0]||(t[0]=e=>It(a).selectedBlock=e),class:"mr-4 flex-1 p-0.5",placeholder:"Select block",onChange:i},{default:un((()=>[(Rr(),$r(Or,null,no(r,((e,t)=>Xr("option",{key:t,value:t},te(e.name),9,_h))),64))])),_:1},8,["modelValue"]),Zr(o,{disabled:!It(a).selectedBlock,variant:"accent",onClick:l},{default:un((()=>[ta(" Execute ")])),_:1},8,["disabled"])]),It(a).selectedBlock&&r[It(a).selectedBlock].component?(Rr(),Hr(Jn(r[It(a).selectedBlock].component),{key:0,data:It(a).params,"hide-base":!0,"onUpdate:data":s},null,40,["data"])):na("",!0),It(a).blockResult?(Rr(),$r("pre",Eh,te(It(a).blockResult),1)):na("",!0)])}}},Ah=xh,Sh={class:"mt-2 space-y-4"},Th=["onMouseenter","onMouseleave"],Lh={class:"mb-1"},Nh={__name:"SelectorElementList",props:{elements:{type:Array,default:()=>[]},elementName:{type:String,default:"Element"}},emits:["highlight"],setup:e=>(t,n)=>(Rr(),$r("ul",Sh,[(Rr(!0),$r(Or,null,no(e.elements,((n,o)=>(Rr(),$r("li",{key:o,onMouseenter:e=>t.$emit("highlight",{highlight:!0,index:o,element:n}),onMouseleave:e=>t.$emit("highlight",{highlight:!1,index:o,element:n})},[Xr("p",Lh,"#"+te(o+1)+" "+te(e.elementName),1),oo(t.$slots,"item",sa({ref_for:!0},{element:n}))],40,Th)))),128))]))},Ih=Nh,Dh={class:"text-overflow text-sm leading-tight text-gray-600",title:"Attribute name"},Oh=["onClick"],Bh={class:"text-overflow text-sm leading-tight text-gray-600",title:"Option name"},zh=["value"],Fh={__name:"SelectorElementsDetail",props:{activeTab:{type:String,default:""},selectElements:{type:Array,default:()=>[]},selectedElements:{type:Array,default:()=>[]},elSelector:{type:String,default:""},hideBlocks:Boolean},emits:["update:activeTab","execute","highlight","update"],setup(e){const t=e,n=No("rootElement");return(o,r)=>{const a=Xn("ui-tab"),s=Xn("ui-tabs"),i=Xn("v-remixicon"),l=Xn("ui-input"),c=Xn("ui-tab-panel"),u=Xn("ui-tab-panels");return Rr(),$r(Or,null,[!e.hideBlocks||e.selectElements.length>0?(Rr(),Hr(s,{key:0,"model-value":e.activeTab,class:"mt-2",fill:"",onChange:r[0]||(r[0]=e=>o.$emit("update:activeTab",e))},{default:un((()=>[Zr(a,{value:"attributes"},{default:un((()=>[ta(" Attributes ")])),_:1}),e.selectElements.length>0?(Rr(),Hr(a,{key:0,value:"options"},{default:un((()=>[ta(" Options ")])),_:1})):na("",!0),e.hideBlocks?na("",!0):(Rr(),Hr(a,{key:1,value:"blocks"},{default:un((()=>[ta(" Blocks ")])),_:1}))])),_:1},8,["model-value"])):na("",!0),Zr(u,{"model-value":e.activeTab,class:"scroll overflow-y-auto",style:{"max-height":"calc(100vh - 17rem)"}},{default:un((()=>[Zr(c,{value:"attributes"},{default:un((()=>[Zr(Ih,{elements:e.selectedElements,onHighlight:r[1]||(r[1]=e=>o.$emit("highlight",e))},{item:un((({element:e})=>[(Rr(!0),$r(Or,null,no(e.attributes,((e,o)=>(Rr(),$r("div",{key:o,class:"bg-box-transparent mb-1 rounded-lg py-2 px-3"},[Xr("p",Dh,te(o),1),Zr(l,{"model-value":e,placeholder:e?null:"EMPTY","data-testid":o,title:o,readonly:"",class:"w-full"},{prepend:un((()=>[Xr("button",{class:"absolute ml-2",onClick:r=>function(e,o){n.shadowRoot.querySelector(`[data-testid="${e}"] input`)?.select();const r=n.shadowRoot.querySelector("select#select--1")?.value;navigator.clipboard.writeText("css"===r?`${t.selectedElements[0].tagName.toLowerCase()}[${e}="${o}"]`:`//${t.selectedElements[0].tagName.toLowerCase()}[@${e}='${o}']`).catch((e=>{document.execCommand("copy"),console.error(e)}))}(o,e)},[Zr(i,{name:"riFileCopyLine"})],8,Oh)])),_:2},1032,["model-value","placeholder","data-testid","title"])])))),128))])),_:1},8,["elements"])])),_:1}),Zr(c,{value:"options"},{default:un((()=>[Zr(Ih,{elements:e.selectElements,"element-name":"Select element options",onHighlight:r[3]||(r[3]=e=>o.$emit("highlight",{index:e.element.elIndex,highlight:e.highlight}))},{item:un((({element:e})=>[(Rr(!0),$r(Or,null,no(e.options,(e=>(Rr(),$r("div",{key:e.name,class:"bg-box-transparent mb-1 rounded-lg py-2 px-3"},[Xr("p",Bh,te(e.name),1),Xr("input",{value:e.value,title:"Option value",class:"text-overflow w-full bg-transparent focus:ring-0",readonly:"",onClick:r[2]||(r[2]=e=>e.target.select())},null,8,zh)])))),128))])),_:1},8,["elements"])])),_:1}),Zr(c,{value:"blocks"},{default:un((()=>[Zr(Ah,{elements:e.selectedElements,selector:e.elSelector,onExecute:r[4]||(r[4]=e=>o.$emit("execute",e)),onUpdate:r[5]||(r[5]=e=>o.$emit("update"))},null,8,["elements","selector"])])),_:1})])),_:1},8,["model-value"])],64)}}},Ph=Fh;function Mh(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}function Rh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Rh.InputMask(e,t)}class Vh{constructor(e){Object.assign(this,{inserted:"",rawInserted:"",skip:!1,tailShift:0},e)}aggregate(e){return this.rawInserted+=e.rawInserted,this.skip=this.skip||e.skip,this.inserted+=e.inserted,this.tailShift+=e.tailShift,this}get offset(){return this.tailShift+this.inserted.length}}function Uh(e){return"string"==typeof e||e instanceof String}Rh.ChangeDetails=Vh;const jh="NONE",Kh="LEFT",$h="FORCE_LEFT",Hh="RIGHT",Wh="FORCE_RIGHT";function qh(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function Gh(e){return Array.isArray(e)?e:[e,new Vh]}function Yh(e,t){if(t===e)return!0;var n,o=Array.isArray(t),r=Array.isArray(e);if(o&&r){if(t.length!=e.length)return!1;for(n=0;n<t.length;n++)if(!Yh(t[n],e[n]))return!1;return!0}if(o!=r)return!1;if(t&&e&&"object"==typeof t&&"object"==typeof e){var a=t instanceof Date,s=e instanceof Date;if(a&&s)return t.getTime()==e.getTime();if(a!=s)return!1;var i=t instanceof RegExp,l=e instanceof RegExp;if(i&&l)return t.toString()==e.toString();if(i!=l)return!1;var c=Object.keys(t);for(n=0;n<c.length;n++)if(!Object.prototype.hasOwnProperty.call(e,c[n]))return!1;for(n=0;n<c.length;n++)if(!Yh(e[c[n]],t[c[n]]))return!1;return!0}return!(!t||!e||"function"!=typeof t||"function"!=typeof e)&&t.toString()===e.toString()}class Xh{constructor(e,t,n,o){for(this.value=e,this.cursorPos=t,this.oldValue=n,this.oldSelection=o;this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?jh:this.oldSelection.end!==this.cursorPos&&this.oldSelection.start!==this.cursorPos||this.oldSelection.end!==this.oldSelection.start?Kh:Hh}}class Zh{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;this.value=e,this.from=t,this.stop=n}toString(){return this.value}extend(e){this.value+=String(e)}appendTo(e){return e.append(this.toString(),{tail:!0}).aggregate(e._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(e){Object.assign(this,e)}unshift(e){if(!this.value.length||null!=e&&this.from>=e)return"";const t=this.value[0];return this.value=this.value.slice(1),t}shift(){if(!this.value.length)return"";const e=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),e}}class Jh{constructor(e){this._value="",this._update(Object.assign({},Jh.DEFAULTS,e)),this.isInitialized=!0}updateOptions(e){Object.keys(e).length&&this.withValueRefresh(this._update.bind(this,e))}_update(e){Object.assign(this,e)}get state(){return{_value:this.value}}set state(e){this._value=e._value}reset(){this._value=""}get value(){return this._value}set value(e){this.resolve(e)}resolve(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{input:!0};return this.reset(),this.append(e,t,""),this.doCommit(),this.value}get unmaskedValue(){return this.value}set unmaskedValue(e){this.reset(),this.append(e,{},""),this.doCommit()}get typedValue(){return this.doParse(this.value)}set typedValue(e){this.value=this.doFormat(e)}get rawInputValue(){return this.extractInput(0,this.value.length,{raw:!0})}set rawInputValue(e){this.reset(),this.append(e,{raw:!0},""),this.doCommit()}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(e,t){return e}totalInputPositions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return Math.min(this.value.length,t-e)}extractInput(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return this.value.slice(e,t)}extractTail(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return new Zh(this.extractInput(e,t),e)}appendTail(e){return Uh(e)&&(e=new Zh(String(e))),e.appendTo(this)}_appendCharRaw(e){return e?(this._value+=e,new Vh({inserted:e,rawInserted:e})):new Vh}_appendChar(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=this.state;let r;if([e,r]=Gh(this.doPrepare(e,t)),r=r.aggregate(this._appendCharRaw(e,t)),r.inserted){let e,a=!1!==this.doValidate(t);if(a&&null!=n){const t=this.state;!0===this.overwrite&&(e=n.state,n.unshift(this.value.length-r.tailShift));let o=this.appendTail(n);a=o.rawInserted===n.toString(),a&&o.inserted||"shift"!==this.overwrite||(this.state=t,e=n.state,n.shift(),o=this.appendTail(n),a=o.rawInserted===n.toString()),a&&o.inserted&&(this.state=t)}a||(r=new Vh,this.state=o,n&&e&&(n.state=e))}return r}_appendPlaceholder(){return new Vh}_appendEager(){return new Vh}append(e,t,n){if(!Uh(e))throw new Error("value should be string");const o=new Vh,r=Uh(n)?new Zh(String(n)):n;null!=t&&t.tail&&(t._beforeTailState=this.state);for(let n=0;n<e.length;++n){const a=this._appendChar(e[n],t,r);if(!a.rawInserted&&!this.doSkipInvalid(e[n],t,r))break;o.aggregate(a)}return(!0===this.eager||"append"===this.eager)&&null!=t&&t.input&&e&&o.aggregate(this._appendEager()),null!=r&&(o.tailShift+=this.appendTail(r).tailShift),o}remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return this._value=this.value.slice(0,e)+this.value.slice(t),new Vh}withValueRefresh(e){if(this._refreshing||!this.isInitialized)return e();this._refreshing=!0;const t=this.rawInputValue,n=this.value,o=e();return this.rawInputValue=t,this.value&&this.value!==n&&0===n.indexOf(this.value)&&this.append(n.slice(this.value.length),{},""),delete this._refreshing,o}runIsolated(e){if(this._isolated||!this.isInitialized)return e(this);this._isolated=!0;const t=this.state,n=e(this);return this.state=t,delete this._isolated,n}doSkipInvalid(e){return this.skipInvalid}doPrepare(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.prepare?this.prepare(e,this,t):e}doValidate(e){return(!this.validate||this.validate(this.value,this,e))&&(!this.parent||this.parent.doValidate(e))}doCommit(){this.commit&&this.commit(this.value,this)}doFormat(e){return this.format?this.format(e,this):e}doParse(e){return this.parse?this.parse(e,this):e}splice(e,t,n,o){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{input:!0};const a=e+t,s=this.extractTail(a),i=!0===this.eager||"remove"===this.eager;let l;i&&(o=function(e){switch(e){case Kh:return $h;case Hh:return Wh;default:return e}}(o),l=this.extractInput(0,a,{raw:!0}));let c=e;const u=new Vh;if(o!==jh&&(c=this.nearestInputPos(e,t>1&&0!==e&&!i?jh:o),u.tailShift=c-e),u.aggregate(this.remove(c)),i&&o!==jh&&l===this.rawInputValue)if(o===$h){let e;for(;l===this.rawInputValue&&(e=this.value.length);)u.aggregate(new Vh({tailShift:-1})).aggregate(this.remove(e-1))}else o===Wh&&s.unshift();return u.aggregate(this.append(n,r,s))}maskEquals(e){return this.mask===e}typedValueEquals(e){const t=this.typedValue;return e===t||Jh.EMPTY_VALUES.includes(e)&&Jh.EMPTY_VALUES.includes(t)||this.doFormat(e)===this.doFormat(this.typedValue)}}function Qh(e){if(null==e)throw new Error("mask property should be defined");return e instanceof RegExp?Rh.MaskedRegExp:Uh(e)?Rh.MaskedPattern:e instanceof Date||e===Date?Rh.MaskedDate:e instanceof Number||"number"==typeof e||e===Number?Rh.MaskedNumber:Array.isArray(e)||e===Array?Rh.MaskedDynamic:Rh.Masked&&e.prototype instanceof Rh.Masked?e:e instanceof Rh.Masked?e.constructor:e instanceof Function?Rh.MaskedFunction:(console.warn("Mask not found for mask",e),Rh.Masked)}function eg(e){if(Rh.Masked&&e instanceof Rh.Masked)return e;const t=(e=Object.assign({},e)).mask;if(Rh.Masked&&t instanceof Rh.Masked)return t;const n=Qh(t);if(!n)throw new Error("Masked class is not found for provided mask, appropriate module needs to be import manually before creating mask.");return new n(e)}Jh.DEFAULTS={format:String,parse:e=>e,skipInvalid:!0},Jh.EMPTY_VALUES=[void 0,null,""],Rh.Masked=Jh,Rh.createMask=eg;const tg=["parent","isOptional","placeholderChar","displayChar","lazy","eager"],ng={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\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\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-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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-\u2C2E\u2C30-\u2C5E\u2C60-\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-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\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]/,"*":/./};class og{constructor(e){const{parent:t,isOptional:n,placeholderChar:o,displayChar:r,lazy:a,eager:s}=e,i=Mh(e,tg);this.masked=eg(i),Object.assign(this,{parent:t,isOptional:n,placeholderChar:o,displayChar:r,lazy:a,eager:s})}reset(){this.isFilled=!1,this.masked.reset()}remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return 0===e&&t>=1?(this.isFilled=!1,this.masked.remove(e,t)):new Vh}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return Boolean(this.masked.value)||this.isOptional}_appendChar(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.isFilled)return new Vh;const n=this.masked.state,o=this.masked._appendChar(e,t);return o.inserted&&!1===this.doValidate(t)&&(o.inserted=o.rawInserted="",this.masked.state=n),o.inserted||this.isOptional||this.lazy||t.input||(o.inserted=this.placeholderChar),o.skip=!o.inserted&&!this.isOptional,this.isFilled=Boolean(o.inserted),o}append(){return this.masked.append(...arguments)}_appendPlaceholder(){const e=new Vh;return this.isFilled||this.isOptional||(this.isFilled=!0,e.inserted=this.placeholderChar),e}_appendEager(){return new Vh}extractTail(){return this.masked.extractTail(...arguments)}appendTail(){return this.masked.appendTail(...arguments)}extractInput(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=arguments.length>2?arguments[2]:void 0;return this.masked.extractInput(e,t,n)}nearestInputPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jh;const n=this.value.length,o=Math.min(Math.max(e,0),n);switch(t){case Kh:case $h:return this.isComplete?o:0;case Hh:case Wh:return this.isComplete?o:n;default:return o}}totalInputPositions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return this.value.slice(e,t).length}doValidate(){return this.masked.doValidate(...arguments)&&(!this.parent||this.parent.doValidate(...arguments))}doCommit(){this.masked.doCommit()}get state(){return{masked:this.masked.state,isFilled:this.isFilled}}set state(e){this.masked.state=e.masked,this.isFilled=e.isFilled}}class rg{constructor(e){Object.assign(this,e),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._value.length;return this._value=this._value.slice(0,e)+this._value.slice(t),this._value||(this._isRawInput=!1),new Vh}nearestInputPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jh;const n=this._value.length;switch(t){case Kh:case $h:return 0;default:return n}}totalInputPositions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._value.length;return this._isRawInput?t-e:0}extractInput(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._value.length;return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).raw&&this._isRawInput&&this._value.slice(e,t)||""}get isComplete(){return!0}get isFilled(){return Boolean(this._value)}_appendChar(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new Vh;if(this.isFilled)return n;const o=!0===this.eager||"append"===this.eager,r=this.char===e&&(this.isUnmasking||t.input||t.raw)&&(!t.raw||!o)&&!t.tail;return r&&(n.rawInserted=this.char),this._value=n.inserted=this.char,this._isRawInput=r&&(t.raw||t.input),n}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){const e=new Vh;return this.isFilled||(this._value=e.inserted=this.char),e}extractTail(){return arguments.length>1&&void 0!==arguments[1]||this.value.length,new Zh("")}appendTail(e){return Uh(e)&&(e=new Zh(String(e))),e.appendTo(this)}append(e,t,n){const o=this._appendChar(e[0],t);return null!=n&&(o.tailShift+=this.appendTail(n).tailShift),o}doCommit(){}get state(){return{_value:this._value,_isRawInput:this._isRawInput}}set state(e){Object.assign(this,e)}}const ag=["chunks"];class sg{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.chunks=e,this.from=t}toString(){return this.chunks.map(String).join("")}extend(e){if(!String(e))return;Uh(e)&&(e=new Zh(String(e)));const t=this.chunks[this.chunks.length-1],n=t&&(t.stop===e.stop||null==e.stop)&&e.from===t.from+t.toString().length;if(e instanceof Zh)n?t.extend(e.toString()):this.chunks.push(e);else if(e instanceof sg){if(null==e.stop){let t;for(;e.chunks.length&&null==e.chunks[0].stop;)t=e.chunks.shift(),t.from+=e.from,this.extend(t)}e.toString()&&(e.stop=e.blockIndex,this.chunks.push(e))}}appendTo(e){if(!(e instanceof Rh.MaskedPattern)){return new Zh(this.toString()).appendTo(e)}const t=new Vh;for(let n=0;n<this.chunks.length&&!t.skip;++n){const o=this.chunks[n],r=e._mapPosToBlock(e.value.length),a=o.stop;let s;if(null!=a&&(!r||r.index<=a)){if(o instanceof sg||e._stops.indexOf(a)>=0){const n=e._appendPlaceholder(a);t.aggregate(n)}s=o instanceof sg&&e._blocks[a]}if(s){const n=s.appendTail(o);n.skip=!1,t.aggregate(n),e._value+=n.inserted;const r=o.toString().slice(n.rawInserted.length);r&&t.aggregate(e.append(r,{tail:!0}))}else t.aggregate(e.append(o.toString(),{tail:!0}))}return t}get state(){return{chunks:this.chunks.map((e=>e.state)),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(e){const{chunks:t}=e,n=Mh(e,ag);Object.assign(this,n),this.chunks=t.map((e=>{const t="chunks"in e?new sg:new Zh;return t.state=e,t}))}unshift(e){if(!this.chunks.length||null!=e&&this.from>=e)return"";const t=null!=e?e-this.from:e;let n=0;for(;n<this.chunks.length;){const e=this.chunks[n],o=e.unshift(t);if(e.toString()){if(!o)break;++n}else this.chunks.splice(n,1);if(o)return o}return""}shift(){if(!this.chunks.length)return"";let e=this.chunks.length-1;for(;0<=e;){const t=this.chunks[e],n=t.shift();if(t.toString()){if(!n)break;--e}else this.chunks.splice(e,1);if(n)return n}return""}}class ig{constructor(e,t){this.masked=e,this._log=[];const{offset:n,index:o}=e._mapPosToBlock(t)||(t<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=n,this.index=o,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(e){Object.assign(this,e)}pushState(){this._log.push(this.state)}popState(){const e=this._log.pop();return this.state=e,e}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.value.length))}_pushLeft(e){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=(null===(t=this.block)||void 0===t?void 0:t.value.length)||0){var t;if(e())return this.ok=!0}return this.ok=!1}_pushRight(e){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(e())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft((()=>{if(!this.block.isFixed&&this.block.value)return this.offset=this.block.nearestInputPos(this.offset,$h),0!==this.offset||void 0}))}pushLeftBeforeInput(){return this._pushLeft((()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,Kh),!0}))}pushLeftBeforeRequired(){return this._pushLeft((()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,Kh),!0}))}pushRightBeforeFilled(){return this._pushRight((()=>{if(!this.block.isFixed&&this.block.value)return this.offset=this.block.nearestInputPos(this.offset,Wh),this.offset!==this.block.value.length||void 0}))}pushRightBeforeInput(){return this._pushRight((()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,jh),!0}))}pushRightBeforeRequired(){return this._pushRight((()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,jh),!0}))}}Rh.MaskedRegExp=class extends Jh{_update(e){e.mask&&(e.validate=t=>t.search(e.mask)>=0),super._update(e)}};const lg=["_blocks"];class cg extends Jh{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.definitions=Object.assign({},ng,e.definitions),super(Object.assign({},cg.DEFAULTS,e))}_update(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.definitions=Object.assign({},this.definitions,e.definitions),super._update(e),this._rebuildMask()}_rebuildMask(){const e=this.definitions;this._blocks=[],this._stops=[],this._maskedBlocks={};let t=this.mask;if(!t||!e)return;let n=!1,o=!1;for(let s=0;s<t.length;++s){var r,a;if(this.blocks){const e=t.slice(s),n=Object.keys(this.blocks).filter((t=>0===e.indexOf(t)));n.sort(((e,t)=>t.length-e.length));const o=n[0];if(o){const e=eg(Object.assign({parent:this,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite},this.blocks[o]));e&&(this._blocks.push(e),this._maskedBlocks[o]||(this._maskedBlocks[o]=[]),this._maskedBlocks[o].push(this._blocks.length-1)),s+=o.length-1;continue}}let i=t[s],l=i in e;if(i===cg.STOP_CHAR){this._stops.push(this._blocks.length);continue}if("{"===i||"}"===i){n=!n;continue}if("["===i||"]"===i){o=!o;continue}if(i===cg.ESCAPE_CHAR){if(++s,i=t[s],!i)break;l=!1}const c=null===(r=e[i])||void 0===r||!r.mask||(null===(a=e[i])||void 0===a?void 0:a.mask.prototype)instanceof Rh.Masked?{mask:e[i]}:e[i],u=l?new og(Object.assign({parent:this,isOptional:o,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar},c)):new rg({char:i,eager:this.eager,isUnmasking:n});this._blocks.push(u)}}get state(){return Object.assign({},super.state,{_blocks:this._blocks.map((e=>e.state))})}set state(e){const{_blocks:t}=e,n=Mh(e,lg);this._blocks.forEach(((e,n)=>e.state=t[n])),super.state=n}reset(){super.reset(),this._blocks.forEach((e=>e.reset()))}get isComplete(){return this._blocks.every((e=>e.isComplete))}get isFilled(){return this._blocks.every((e=>e.isFilled))}get isFixed(){return this._blocks.every((e=>e.isFixed))}get isOptional(){return this._blocks.every((e=>e.isOptional))}doCommit(){this._blocks.forEach((e=>e.doCommit())),super.doCommit()}get unmaskedValue(){return this._blocks.reduce(((e,t)=>e+t.unmaskedValue),"")}set unmaskedValue(e){super.unmaskedValue=e}get value(){return this._blocks.reduce(((e,t)=>e+t.value),"")}set value(e){super.value=e}get displayValue(){return this._blocks.reduce(((e,t)=>e+t.displayValue),"")}appendTail(e){return super.appendTail(e).aggregate(this._appendPlaceholder())}_appendEager(){var e;const t=new Vh;let n=null===(e=this._mapPosToBlock(this.value.length))||void 0===e?void 0:e.index;if(null==n)return t;this._blocks[n].isFilled&&++n;for(let e=n;e<this._blocks.length;++e){const n=this._blocks[e]._appendEager();if(!n.inserted)break;t.aggregate(n)}return t}_appendCharRaw(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this._mapPosToBlock(this.value.length),o=new Vh;if(!n)return o;for(let s=n.index;;++s){var r,a;const n=this._blocks[s];if(!n)break;const i=n._appendChar(e,Object.assign({},t,{_beforeTailState:null===(r=t._beforeTailState)||void 0===r||null===(a=r._blocks)||void 0===a?void 0:a[s]})),l=i.skip;if(o.aggregate(i),l||i.rawInserted)break}return o}extractTail(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;const n=new sg;return e===t||this._forEachBlocksInRange(e,t,((e,t,o,r)=>{const a=e.extractTail(o,r);a.stop=this._findStopBefore(t),a.from=this._blockStartPos(t),a instanceof sg&&(a.blockIndex=t),n.extend(a)})),n}extractInput(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e===t)return"";let o="";return this._forEachBlocksInRange(e,t,((e,t,r,a)=>{o+=e.extractInput(r,a,n)})),o}_findStopBefore(e){let t;for(let n=0;n<this._stops.length;++n){const o=this._stops[n];if(!(o<=e))break;t=o}return t}_appendPlaceholder(e){const t=new Vh;if(this.lazy&&null==e)return t;const n=this._mapPosToBlock(this.value.length);if(!n)return t;const o=n.index,r=null!=e?e:this._blocks.length;return this._blocks.slice(o,r).forEach((n=>{if(!n.lazy||null!=e){const e=null!=n._blocks?[n._blocks.length]:[],o=n._appendPlaceholder(...e);this._value+=o.inserted,t.aggregate(o)}})),t}_mapPosToBlock(e){let t="";for(let n=0;n<this._blocks.length;++n){const o=this._blocks[n],r=t.length;if(t+=o.value,e<=t.length)return{index:n,offset:e-r}}}_blockStartPos(e){return this._blocks.slice(0,e).reduce(((e,t)=>e+t.value.length),0)}_forEachBlocksInRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=arguments.length>2?arguments[2]:void 0;const o=this._mapPosToBlock(e);if(o){const e=this._mapPosToBlock(t),r=e&&o.index===e.index,a=o.offset,s=e&&r?e.offset:this._blocks[o.index].value.length;if(n(this._blocks[o.index],o.index,a,s),e&&!r){for(let t=o.index+1;t<e.index;++t)n(this._blocks[t],t,0,this._blocks[t].value.length);n(this._blocks[e.index],e.index,0,e.offset)}}}remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;const n=super.remove(e,t);return this._forEachBlocksInRange(e,t,((e,t,o,r)=>{n.aggregate(e.remove(o,r))})),n}nearestInputPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jh;if(!this._blocks.length)return 0;const n=new ig(this,e);if(t===jh)return n.pushRightBeforeInput()?n.pos:(n.popState(),n.pushLeftBeforeInput()?n.pos:this.value.length);if(t===Kh||t===$h){if(t===Kh){if(n.pushRightBeforeFilled(),n.ok&&n.pos===e)return e;n.popState()}if(n.pushLeftBeforeInput(),n.pushLeftBeforeRequired(),n.pushLeftBeforeFilled(),t===Kh){if(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.ok&&n.pos<=e)return n.pos;if(n.popState(),n.ok&&n.pos<=e)return n.pos;n.popState()}return n.ok?n.pos:t===$h?0:(n.popState(),n.ok?n.pos:(n.popState(),n.ok?n.pos:0))}return t===Hh||t===Wh?(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.pushRightBeforeFilled()?n.pos:t===Wh?this.value.length:(n.popState(),n.ok?n.pos:(n.popState(),n.ok?n.pos:this.nearestInputPos(e,Kh)))):e}totalInputPositions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=0;return this._forEachBlocksInRange(e,t,((e,t,o,r)=>{n+=e.totalInputPositions(o,r)})),n}maskedBlock(e){return this.maskedBlocks(e)[0]}maskedBlocks(e){const t=this._maskedBlocks[e];return t?t.map((e=>this._blocks[e])):[]}}cg.DEFAULTS={lazy:!0,placeholderChar:"_"},cg.STOP_CHAR="`",cg.ESCAPE_CHAR="\\",cg.InputDefinition=og,cg.FixedDefinition=rg,Rh.MaskedPattern=cg;class ug extends cg{get _matchFrom(){return this.maxLength-String(this.from).length}_update(e){e=Object.assign({to:this.to||0,from:this.from||0,maxLength:this.maxLength||0},e);let t=String(e.to).length;null!=e.maxLength&&(t=Math.max(t,e.maxLength)),e.maxLength=t;const n=String(e.from).padStart(t,"0"),o=String(e.to).padStart(t,"0");let r=0;for(;r<o.length&&o[r]===n[r];)++r;e.mask=o.slice(0,r).replace(/0/g,"\\0")+"0".repeat(t-r),super._update(e)}get isComplete(){return super.isComplete&&Boolean(this.value)}boundaries(e){let t="",n="";const[,o,r]=e.match(/^(\D*)(\d*)(\D*)/)||[];return r&&(t="0".repeat(o.length)+r,n="9".repeat(o.length)+r),t=t.padEnd(this.maxLength,"0"),n=n.padEnd(this.maxLength,"9"),[t,n]}doPrepare(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if([e,t]=Gh(super.doPrepare(e.replace(/\D/g,""),n)),!this.autofix||!e)return e;const o=String(this.from).padStart(this.maxLength,"0"),r=String(this.to).padStart(this.maxLength,"0");let a=this.value+e;if(a.length>this.maxLength)return"";const[s,i]=this.boundaries(a);return Number(i)<this.from?o[a.length-1]:Number(s)>this.to?"pad"===this.autofix&&a.length<this.maxLength?["",t.aggregate(this.append(o[a.length-1]+e,n))]:r[a.length-1]:e}doValidate(){const e=this.value;if(-1===e.search(/[^0]/)&&e.length<=this._matchFrom)return!0;const[t,n]=this.boundaries(e);return this.from<=Number(n)&&Number(t)<=this.to&&super.doValidate(...arguments)}}Rh.MaskedRange=ug;class dg extends cg{constructor(e){super(Object.assign({},dg.DEFAULTS,e))}_update(e){e.mask===Date&&delete e.mask,e.pattern&&(e.mask=e.pattern);const t=e.blocks;e.blocks=Object.assign({},dg.GET_DEFAULT_BLOCKS()),e.min&&(e.blocks.Y.from=e.min.getFullYear()),e.max&&(e.blocks.Y.to=e.max.getFullYear()),e.min&&e.max&&e.blocks.Y.from===e.blocks.Y.to&&(e.blocks.m.from=e.min.getMonth()+1,e.blocks.m.to=e.max.getMonth()+1,e.blocks.m.from===e.blocks.m.to&&(e.blocks.d.from=e.min.getDate(),e.blocks.d.to=e.max.getDate())),Object.assign(e.blocks,this.blocks,t),Object.keys(e.blocks).forEach((t=>{const n=e.blocks[t];!("autofix"in n)&&"autofix"in e&&(n.autofix=e.autofix)})),super._update(e)}doValidate(){const e=this.date;return super.doValidate(...arguments)&&(!this.isComplete||this.isDateExist(this.value)&&null!=e&&(null==this.min||this.min<=e)&&(null==this.max||e<=this.max))}isDateExist(e){return this.format(this.parse(e,this),this).indexOf(e)>=0}get date(){return this.typedValue}set date(e){this.typedValue=e}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(e){super.typedValue=e}maskEquals(e){return e===Date||super.maskEquals(e)}}dg.DEFAULTS={pattern:"d{.}`m{.}`Y",format:e=>{if(!e)return"";return[String(e.getDate()).padStart(2,"0"),String(e.getMonth()+1).padStart(2,"0"),e.getFullYear()].join(".")},parse:e=>{const[t,n,o]=e.split(".");return new Date(o,n-1,t)}},dg.GET_DEFAULT_BLOCKS=()=>({d:{mask:ug,from:1,to:31,maxLength:2},m:{mask:ug,from:1,to:12,maxLength:2},Y:{mask:ug,from:1900,to:9999}}),Rh.MaskedDate=dg;class pg{get selectionStart(){let e;try{e=this._unsafeSelectionStart}catch(e){}return null!=e?e:this.value.length}get selectionEnd(){let e;try{e=this._unsafeSelectionEnd}catch(e){}return null!=e?e:this.value.length}select(e,t){if(null!=e&&null!=t&&(e!==this.selectionStart||t!==this.selectionEnd))try{this._unsafeSelect(e,t)}catch(e){}}_unsafeSelect(e,t){}get isActive(){return!1}bindEvents(e){}unbindEvents(){}}Rh.MaskElement=pg;class mg extends pg{constructor(e){super(),this.input=e,this._handlers={}}get rootElement(){var e,t,n;return null!==(e=null===(t=(n=this.input).getRootNode)||void 0===t?void 0:t.call(n))&&void 0!==e?e:document}get isActive(){return this.input===this.rootElement.activeElement}get _unsafeSelectionStart(){return this.input.selectionStart}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(e,t){this.input.setSelectionRange(e,t)}get value(){return this.input.value}set value(e){this.input.value=e}bindEvents(e){Object.keys(e).forEach((t=>this._toggleEventHandler(mg.EVENTS_MAP[t],e[t])))}unbindEvents(){Object.keys(this._handlers).forEach((e=>this._toggleEventHandler(e)))}_toggleEventHandler(e,t){this._handlers[e]&&(this.input.removeEventListener(e,this._handlers[e]),delete this._handlers[e]),t&&(this.input.addEventListener(e,t),this._handlers[e]=t)}}mg.EVENTS_MAP={selectionChange:"keydown",input:"input",drop:"drop",click:"click",focus:"focus",commit:"blur"},Rh.HTMLMaskElement=mg;class fg extends mg{get _unsafeSelectionStart(){const e=this.rootElement,t=e.getSelection&&e.getSelection(),n=t&&t.anchorOffset,o=t&&t.focusOffset;return null==o||null==n||n<o?n:o}get _unsafeSelectionEnd(){const e=this.rootElement,t=e.getSelection&&e.getSelection(),n=t&&t.anchorOffset,o=t&&t.focusOffset;return null==o||null==n||n>o?n:o}_unsafeSelect(e,t){if(!this.rootElement.createRange)return;const n=this.rootElement.createRange();n.setStart(this.input.firstChild||this.input,e),n.setEnd(this.input.lastChild||this.input,t);const o=this.rootElement,r=o.getSelection&&o.getSelection();r&&(r.removeAllRanges(),r.addRange(n))}get value(){return this.input.textContent}set value(e){this.input.textContent=e}}Rh.HTMLContenteditableMaskElement=fg;const hg=["mask"];Rh.InputMask=class{constructor(e,t){this.el=e instanceof pg?e:e.isContentEditable&&"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName?new fg(e):new mg(e),this.masked=eg(t),this._listeners={},this._value="",this._unmaskedValue="",this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}get mask(){return this.masked.mask}maskEquals(e){var t;return null==e||(null===(t=this.masked)||void 0===t?void 0:t.maskEquals(e))}set mask(e){if(this.maskEquals(e))return;if(!(e instanceof Rh.Masked)&&this.masked.constructor===Qh(e))return void this.masked.updateOptions({mask:e});const t=eg({mask:e});t.unmaskedValue=this.masked.unmaskedValue,this.masked=t}get value(){return this._value}set value(e){this.value!==e&&(this.masked.value=e,this.updateControl(),this.alignCursor())}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(e){this.unmaskedValue!==e&&(this.masked.unmaskedValue=e,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(e){this.masked.typedValueEquals(e)||(this.masked.typedValue=e,this.updateControl(),this.alignCursor())}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];const r=this._listeners[e];r&&r.forEach((e=>e(...n)))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(e){this.el&&this.el.isActive&&(this.el.select(e,e),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value}updateControl(){const e=this.masked.unmaskedValue,t=this.masked.value,n=this.displayValue,o=this.unmaskedValue!==e||this.value!==t;this._unmaskedValue=e,this._value=t,this.el.value!==n&&(this.el.value=n),o&&this._fireChangeEvents()}updateOptions(e){const{mask:t}=e,n=Mh(e,hg),o=!this.maskEquals(t),r=!Yh(this.masked,n);o&&(this.mask=t),r&&this.masked.updateOptions(n),(o||r)&&this.updateControl()}updateCursor(e){null!=e&&(this.cursorPos=e,this._delayUpdateCursor(e))}_delayUpdateCursor(e){this._abortUpdateCursor(),this._changingCursorPos=e,this._cursorChanging=setTimeout((()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())}),10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,Kh))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(e,t){return this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t),this}off(e,t){if(!this._listeners[e])return this;if(!t)return delete this._listeners[e],this;const n=this._listeners[e].indexOf(t);return n>=0&&this._listeners[e].splice(n,1),this}_onInput(e){if(this._inputEvent=e,this._abortUpdateCursor(),!this._selection)return this.updateValue();const t=new Xh(this.el.value,this.cursorPos,this.displayValue,this._selection),n=this.masked.rawInputValue,o=this.masked.splice(t.startChangePos,t.removed.length,t.inserted,t.removeDirection,{input:!0,raw:!0}).offset,r=n===this.masked.rawInputValue?t.removeDirection:jh;let a=this.masked.nearestInputPos(t.startChangePos+o,r);r!==jh&&(a=this.masked.nearestInputPos(a,jh)),this.updateControl(),this.updateCursor(a),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(e){e.preventDefault(),e.stopPropagation()}_onFocus(e){this.alignCursorFriendly()}_onClick(e){this.alignCursorFriendly()}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}};Rh.MaskedEnum=class extends cg{_update(e){e.enum&&(e.mask="*".repeat(e.enum[0].length)),super._update(e)}doValidate(){return this.enum.some((e=>e.indexOf(this.unmaskedValue)>=0))&&super.doValidate(...arguments)}};class gg extends Jh{constructor(e){super(Object.assign({},gg.DEFAULTS,e))}_update(e){super._update(e),this._updateRegExps()}_updateRegExps(){let e="^"+(this.allowNegative?"[+|\\-]?":""),t=(this.scale?"(".concat(qh(this.radix),"\\d{0,").concat(this.scale,"})?"):"")+"$";this._numberRegExp=new RegExp(e+"\\d*"+t),this._mapToRadixRegExp=new RegExp("[".concat(this.mapToRadix.map(qh).join(""),"]"),"g"),this._thousandsSeparatorRegExp=new RegExp(qh(this.thousandsSeparator),"g")}_removeThousandsSeparators(e){return e.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(e){const t=e.split(this.radix);return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),t.join(this.radix)}doPrepare(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(t.input&&t.raw||!t.input&&!t.raw)?e.replace(this._mapToRadixRegExp,this.radix):e);const[n,o]=Gh(super.doPrepare(e,t));return e&&!n&&(o.skip=!0),[n,o]}_separatorsCount(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0;for(let o=0;o<e;++o)this._value.indexOf(this.thousandsSeparator,o)===o&&(++n,t&&(e+=this.thousandsSeparator.length));return n}_separatorsCountFromSlice(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._value;return this._separatorsCount(this._removeThousandsSeparators(e).length,!0)}extractInput(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=arguments.length>2?arguments[2]:void 0;return[e,t]=this._adjustRangeWithSeparators(e,t),this._removeThousandsSeparators(super.extractInput(e,t,n))}_appendCharRaw(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.thousandsSeparator)return super._appendCharRaw(e,t);const n=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,o=this._separatorsCountFromSlice(n);this._value=this._removeThousandsSeparators(this.value);const r=super._appendCharRaw(e,t);this._value=this._insertThousandsSeparators(this._value);const a=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,s=this._separatorsCountFromSlice(a);return r.tailShift+=(s-o)*this.thousandsSeparator.length,r.skip=!r.rawInserted&&e===this.thousandsSeparator,r}_findSeparatorAround(e){if(this.thousandsSeparator){const t=e-this.thousandsSeparator.length+1,n=this.value.indexOf(this.thousandsSeparator,t);if(n<=e)return n}return-1}_adjustRangeWithSeparators(e,t){const n=this._findSeparatorAround(e);n>=0&&(e=n);const o=this._findSeparatorAround(t);return o>=0&&(t=o+this.thousandsSeparator.length),[e,t]}remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;[e,t]=this._adjustRangeWithSeparators(e,t);const n=this.value.slice(0,e),o=this.value.slice(t),r=this._separatorsCount(n.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(n+o));const a=this._separatorsCountFromSlice(n);return new Vh({tailShift:(a-r)*this.thousandsSeparator.length})}nearestInputPos(e,t){if(!this.thousandsSeparator)return e;switch(t){case jh:case Kh:case $h:{const n=this._findSeparatorAround(e-1);if(n>=0){const o=n+this.thousandsSeparator.length;if(e<o||this.value.length<=o||t===$h)return n}break}case Hh:case Wh:{const t=this._findSeparatorAround(e);if(t>=0)return t+this.thousandsSeparator.length}}return e}doValidate(e){let t=Boolean(this._removeThousandsSeparators(this.value).match(this._numberRegExp));if(t){const e=this.number;t=t&&!isNaN(e)&&(null==this.min||this.min>=0||this.min<=this.number)&&(null==this.max||this.max<=0||this.number<=this.max)}return t&&super.doValidate(e)}doCommit(){if(this.value){const e=this.number;let t=e;null!=this.min&&(t=Math.max(t,this.min)),null!=this.max&&(t=Math.min(t,this.max)),t!==e&&(this.unmaskedValue=this.doFormat(t));let n=this.value;this.normalizeZeros&&(n=this._normalizeZeros(n)),this.padFractionalZeros&&this.scale>0&&(n=this._padFractionalZeros(n)),this._value=n}super.doCommit()}_normalizeZeros(e){const t=this._removeThousandsSeparators(e).split(this.radix);return t[0]=t[0].replace(/^(\D*)(0*)(\d*)/,((e,t,n,o)=>t+o)),e.length&&!/\d$/.test(t[0])&&(t[0]=t[0]+"0"),t.length>1&&(t[1]=t[1].replace(/0*$/,""),t[1].length||(t.length=1)),this._insertThousandsSeparators(t.join(this.radix))}_padFractionalZeros(e){if(!e)return e;const t=e.split(this.radix);return t.length<2&&t.push(""),t[1]=t[1].padEnd(this.scale,"0"),t.join(this.radix)}doSkipInvalid(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=0===this.scale&&e!==this.thousandsSeparator&&(e===this.radix||e===gg.UNMASKED_RADIX||this.mapToRadix.includes(e));return super.doSkipInvalid(e,t,n)&&!o}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,gg.UNMASKED_RADIX)}set unmaskedValue(e){super.unmaskedValue=e}get typedValue(){return this.doParse(this.unmaskedValue)}set typedValue(e){this.rawInputValue=this.doFormat(e).replace(gg.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(e){this.typedValue=e}get allowNegative(){return this.signed||null!=this.min&&this.min<0||null!=this.max&&this.max<0}typedValueEquals(e){return(super.typedValueEquals(e)||gg.EMPTY_VALUES.includes(e)&&gg.EMPTY_VALUES.includes(this.typedValue))&&!(0===e&&""===this.value)}}gg.UNMASKED_RADIX=".",gg.DEFAULTS={radix:",",thousandsSeparator:"",mapToRadix:[gg.UNMASKED_RADIX],scale:2,signed:!1,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:e=>e.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})},gg.EMPTY_VALUES=[...Jh.EMPTY_VALUES,0],Rh.MaskedNumber=gg;Rh.MaskedFunction=class extends Jh{_update(e){e.mask&&(e.validate=e.mask),super._update(e)}};const yg=["compiledMasks","currentMaskRef","currentMask"],vg=["mask"];class bg extends Jh{constructor(e){super(Object.assign({},bg.DEFAULTS,e)),this.currentMask=null}_update(e){super._update(e),"mask"in e&&(this.compiledMasks=Array.isArray(e.mask)?e.mask.map((e=>eg(e))):[])}_appendCharRaw(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this._applyDispatch(e,t);return this.currentMask&&n.aggregate(this.currentMask._appendChar(e,this.currentMaskFlags(t))),n}_applyDispatch(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const o=t.tail&&null!=t._beforeTailState?t._beforeTailState._value:this.value,r=this.rawInputValue,a=t.tail&&null!=t._beforeTailState?t._beforeTailState._rawInputValue:r,s=r.slice(a.length),i=this.currentMask,l=new Vh,c=null==i?void 0:i.state;if(this.currentMask=this.doDispatch(e,Object.assign({},t),n),this.currentMask)if(this.currentMask!==i){if(this.currentMask.reset(),a){const e=this.currentMask.append(a,{raw:!0});l.tailShift=e.inserted.length-o.length}s&&(l.tailShift+=this.currentMask.append(s,{raw:!0,tail:!0}).tailShift)}else this.currentMask.state=c;return l}_appendPlaceholder(){const e=this._applyDispatch(...arguments);return this.currentMask&&e.aggregate(this.currentMask._appendPlaceholder()),e}_appendEager(){const e=this._applyDispatch(...arguments);return this.currentMask&&e.aggregate(this.currentMask._appendEager()),e}appendTail(e){const t=new Vh;return e&&t.aggregate(this._applyDispatch("",{},e)),t.aggregate(this.currentMask?this.currentMask.appendTail(e):super.appendTail(e))}currentMaskFlags(e){var t,n;return Object.assign({},e,{_beforeTailState:(null===(t=e._beforeTailState)||void 0===t?void 0:t.currentMaskRef)===this.currentMask&&(null===(n=e._beforeTailState)||void 0===n?void 0:n.currentMask)||e._beforeTailState})}doDispatch(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return this.dispatch(e,this,t,n)}doValidate(e){return super.doValidate(e)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(e)))}doPrepare(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},[n,o]=Gh(super.doPrepare(e,t));if(this.currentMask){let e;[n,e]=Gh(super.doPrepare(n,this.currentMaskFlags(t))),o=o.aggregate(e)}return[n,o]}reset(){var e;null===(e=this.currentMask)||void 0===e||e.reset(),this.compiledMasks.forEach((e=>e.reset()))}get value(){return this.currentMask?this.currentMask.value:""}set value(e){super.value=e}get unmaskedValue(){return this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(e){super.unmaskedValue=e}get typedValue(){return this.currentMask?this.currentMask.typedValue:""}set typedValue(e){let t=String(e);this.currentMask&&(this.currentMask.typedValue=e,t=this.currentMask.unmaskedValue),this.unmaskedValue=t}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var e;return Boolean(null===(e=this.currentMask)||void 0===e?void 0:e.isComplete)}get isFilled(){var e;return Boolean(null===(e=this.currentMask)||void 0===e?void 0:e.isFilled)}remove(){const e=new Vh;return this.currentMask&&e.aggregate(this.currentMask.remove(...arguments)).aggregate(this._applyDispatch()),e}get state(){var e;return Object.assign({},super.state,{_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map((e=>e.state)),currentMaskRef:this.currentMask,currentMask:null===(e=this.currentMask)||void 0===e?void 0:e.state})}set state(e){const{compiledMasks:t,currentMaskRef:n,currentMask:o}=e,r=Mh(e,yg);this.compiledMasks.forEach(((e,n)=>e.state=t[n])),null!=n&&(this.currentMask=n,this.currentMask.state=o),super.state=r}extractInput(){return this.currentMask?this.currentMask.extractInput(...arguments):""}extractTail(){return this.currentMask?this.currentMask.extractTail(...arguments):super.extractTail(...arguments)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(){return this.currentMask?this.currentMask.nearestInputPos(...arguments):super.nearestInputPos(...arguments)}get overwrite(){return this.currentMask?this.currentMask.overwrite:super.overwrite}set overwrite(e){console.warn('"overwrite" option is not available in dynamic mask, use this option in siblings')}get eager(){return this.currentMask?this.currentMask.eager:super.eager}set eager(e){console.warn('"eager" option is not available in dynamic mask, use this option in siblings')}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:super.skipInvalid}set skipInvalid(e){(this.isInitialized||e!==Jh.DEFAULTS.skipInvalid)&&console.warn('"skipInvalid" option is not available in dynamic mask, use this option in siblings')}maskEquals(e){return Array.isArray(e)&&this.compiledMasks.every(((t,n)=>{if(!e[n])return;const o=e[n],{mask:r}=o;return Yh(t,Mh(o,vg))&&t.maskEquals(r)}))}typedValueEquals(e){var t;return Boolean(null===(t=this.currentMask)||void 0===t?void 0:t.typedValueEquals(e))}}bg.DEFAULTS={dispatch:(e,t,n,o)=>{if(!t.compiledMasks.length)return;const r=t.rawInputValue,a=t.compiledMasks.map(((a,s)=>{const i=t.currentMask===a,l=i?a.value.length:a.nearestInputPos(a.value.length,$h);return a.rawInputValue!==r?(a.reset(),a.append(r,{raw:!0})):i||a.remove(l),a.append(e,t.currentMaskFlags(n)),a.appendTail(o),{index:s,weight:a.rawInputValue.length,totalInputPositions:a.totalInputPositions(0,Math.max(l,a.nearestInputPos(a.value.length,$h)))}}));return a.sort(((e,t)=>t.weight-e.weight||t.totalInputPositions-e.totalInputPositions)),t.compiledMasks[a[0].index]}},Rh.MaskedDynamic=bg;const kg={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function wg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kg.MASKED,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:kg.MASKED;const o=eg(e);return e=>o.runIsolated((o=>(o[t]=e,o[n])))}Rh.PIPE_TYPE=kg,Rh.createPipe=wg,Rh.pipe=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return wg(...n)(e)};try{globalThis.IMask=Rh}catch(e){}var Cg={mask:{},prepare:Function,validate:Function,commit:Function,overwrite:{type:Boolean,required:!1,default:void 0},placeholderChar:String,lazy:{type:Boolean,required:!1,default:void 0},definitions:Object,blocks:Object,pattern:String,format:Function,parse:Function,autofix:{type:Boolean,required:!1,default:void 0},radix:String,thousandsSeparator:String,mapToRadix:Array,scale:Number,signed:{type:Boolean,required:!1,default:void 0},normalizeZeros:{type:Boolean,required:!1,default:void 0},padFractionalZeros:{type:Boolean,required:!1,default:void 0},min:[Number,Date],max:[Number,Date],dispatch:Function};const _g=["typed","unmasked","value","modelValue"];Object.assign({modelValue:String,value:String,unmasked:String,typed:{}},Cg),Object.assign({value:{},unmask:{validator:function(e){return"typed"===e||"boolean"==typeof e}}},Cg);var Eg={name:"imask",beforeMount:(e,t)=>{let{value:n}=t;n&&Ag(e,n)},updated:(e,t)=>{let{value:n}=t;n?e.maskRef?(e.maskRef.updateOptions(n),e.value!==e.maskRef.value&&e.maskRef._onChange()):Ag(e,n):Sg(e)},unmounted:e=>{Sg(e)}};function xg(e,t,n){var o=document.createEvent("CustomEvent");o.initCustomEvent(t,!0,!0,n),e.dispatchEvent(o)}function Ag(e,t){e.maskRef=Rh(e,t).on("accept",(()=>xg(e,"accept",e.maskRef))).on("complete",(()=>xg(e,"complete",e.maskRef)))}function Sg(e){e.maskRef&&(e.maskRef.destroy(),delete e.maskRef)}let Tg=0;function Lg(e){return Tg+=1,e?`${e}--${Tg}`:Tg}const Ng={class:"input-ui inline-block"},Ig=["for"],Dg={class:"relative flex w-full items-center"},Og=["id","value"],Bg={__name:"UiInput",props:{modelModifiers:{default:()=>({})},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},modelValue:{type:[String,Number,Object],default:""},inputClass:{type:String,default:""},prependIcon:{type:String,default:""},label:{type:String,default:""},list:{type:String,default:null},type:{type:String,default:"text"},placeholder:{type:String,default:""},max:{type:[String,Number],default:null},min:{type:[String,Number],default:null},autocomplete:{type:String,default:null},step:{type:String,default:null},mask:{type:[Array,Object],default:null},status:{type:String,default:""},unmaskValue:Boolean},emits:["update:modelValue","change","keydown","blur","keyup","focus"],setup(e,{emit:t}){const n=e,o=t,r=Lg("ui-input"),a={error:"ring-red-400 ring-2 focus:ring-red-400 focus:ring-2"};function s(e){let{value:t}=e.target;if(n.mask&&n.unmaskValue){const{maskRef:n}=e.target;n&&n.unmaskedValue&&(t=n.unmaskedValue)}n.modelModifiers.lowercase?t=t.toLocaleLowerCase():n.modelModifiers.number&&(t=+t),o("update:modelValue",t),o("change",t)}return(t,n)=>{const o=Xn("v-remixicon"),i=Qn("autofocus");return Rr(),$r("div",Ng,[e.label||t.$slots.label?(Rr(),$r("label",{key:0,for:It(r),class:"ml-1 inline-block text-sm leading-none text-gray-600 dark:text-gray-200"},[oo(t.$slots,"label",{},(()=>[ta(te(e.label),1)]))],8,Ig)):na("",!0),Xr("div",Dg,[oo(t.$slots,"prepend",{},(()=>[e.prependIcon?(Rr(),Hr(o,{key:0,class:"absolute left-0 ml-2 text-gray-600 dark:text-gray-200",name:e.prependIcon},null,8,["name"])):na("",!0)])),dn(Xr("input",sa({readonly:e.disabled||e.readonly||null,placeholder:e.placeholder,type:e.type,autocomplete:e.autocomplete,autofocus:e.autofocus,min:e.min,max:e.max,list:e.list,step:e.step},{id:It(r),class:[[a[e.status],e.inputClass,{"opacity-75 pointer-events-none":e.disabled,"pl-10":e.prependIcon||t.$slots.prepend,"appearance-none":e.list}],"bg-input w-full rounded-lg bg-transparent py-2 px-4 transition"],value:e.modelValue,onKeydown:n[0]||(n[0]=e=>t.$emit("keydown",e)),onKeyup:n[1]||(n[1]=e=>t.$emit("keyup",e)),onBlur:n[2]||(n[2]=e=>t.$emit("blur",e)),onFocus:n[3]||(n[3]=e=>t.$emit("focus",e)),onInput:s}),null,16,Og),[[i,e.autofocus],[It(Eg),e.mask]]),oo(t.$slots,"append")])])}}},zg=Bg,Fg={class:"flex items-center"},Pg=Xr("option",{value:"css"},"CSS Selector",-1),Mg=Xr("option",{value:"xpath"},"XPath",-1),Rg={class:"mt-2 flex items-center"},Vg={__name:"SelectorQuery",props:{selector:{type:String,default:""},selectedCount:{type:Number,default:0},selectorType:{type:String,default:""},selectList:{type:Boolean,default:!1},settingsActive:Boolean},emits:["change","list","parent","child","selector","settings","update:selectorType","update:selectList"],setup(e){const t=e,n=No("rootElement");function o(){n.shadowRoot.querySelector("input")?.select(),navigator.clipboard.writeText(t.selector).catch((e=>{document.execCommand("copy"),console.error(e)}))}return(t,n)=>{const r=Xn("ui-select"),a=Xn("v-remixicon"),s=Xn("ui-button");return Rr(),$r("div",null,[Xr("div",Fg,[Zr(r,{"model-value":e.selectorType,disabled:e.selectList,class:"w-full",onChange:n[0]||(n[0]=e=>t.$emit("update:selectorType",e))},{default:un((()=>[Pg,Mg])),_:1},8,["model-value","disabled"]),"css"===e.selectorType?(Rr(),$r(Or,{key:0},[Zr(s,{class:Y([{"text-primary":e.selectList},"ml-2"]),icon:"",title:"Select a list of elements",onClick:n[1]||(n[1]=Is((n=>t.$emit("update:selectList",!e.selectList)),["stop","prevent"]))},{default:un((()=>[Zr(a,{name:"riListUnordered"})])),_:1},8,["class"]),Zr(s,{icon:"",class:"ml-2",title:"Selector settings",onClick:n[2]||(n[2]=n=>t.$emit("settings",!e.settingsActive))},{default:un((()=>[Zr(a,{name:e.settingsActive?"riCloseLine":"riSettings3Line"},null,8,["name"])])),_:1})],64)):na("",!0)]),Xr("div",Rg,[Zr(zg,{"model-value":e.selector,placeholder:"Element selector",class:"element-selector h-full flex-1 leading-normal",onChange:n[3]||(n[3]=e=>t.$emit("selector",e))},{prepend:un((()=>[Xr("button",{class:"absolute left-0 ml-2",onClick:Is(o,["stop","prevent"])},[Zr(a,{name:"riFileCopyLine"})])])),_:1},8,["model-value"]),1!==e.selectedCount||e.selector.includes("|>")?na("",!0):(Rr(),$r(Or,{key:0},[Xr("button",{class:"mr-1 ml-2",title:"Parent element",onClick:n[4]||(n[4]=Is((e=>t.$emit("parent")),["stop","prevent"]))},[Zr(a,{rotate:"90",name:"riArrowLeftLine"})]),Xr("button",{title:"Child element",onClick:n[5]||(n[5]=Is((e=>t.$emit("child")),["stop","prevent"]))},[Zr(a,{rotate:"-90",name:"riArrowLeftLine"})])],64))])])}}},Ug=Vg;let jg,Kg,$g;function Hg(e,t){if($g=new Date,e.nodeType!==Node.ELEMENT_NODE)throw new Error("Can't generate CSS selector for non-element node type.");if("html"===e.tagName.toLowerCase())return"html";const n={root:document.body,idName:e=>!0,className:e=>!0,tagName:e=>!0,attr:(e,t)=>!1,seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4,timeoutMs:void 0};jg={...n,...t},Kg=function(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return e;if(e===t.root)return e.ownerDocument;return e}(jg.root,n);let o=Wg(e,"all",(()=>Wg(e,"two",(()=>Wg(e,"one",(()=>Wg(e,"none")))))));if(o){const t=iy(ly(o,e));return t.length>0&&(o=t[0]),Gg(o)}throw new Error("Selector was not found.")}function Wg(e,t,n){let o=null,r=[],a=e,s=0;for(;a;){const e=(new Date).getTime()-$g.getTime();if(void 0!==jg.timeoutMs&&e>jg.timeoutMs)throw new Error(`Timeout: Can't find a unique selector after ${e}ms`);let i=ry(Zg(a))||ry(...Jg(a))||ry(...Qg(a))||ry(ey(a))||[{name:"*",penalty:3}];const l=ty(a);if("all"==t)l&&(i=i.concat(i.filter(oy).map((e=>ny(e,l)))));else if("two"==t)i=i.slice(0,1),l&&(i=i.concat(i.filter(oy).map((e=>ny(e,l)))));else if("one"==t){const[e]=i=i.slice(0,1);l&&oy(e)&&(i=[ny(e,l)])}else"none"==t&&(i=[{name:"*",penalty:3}],l&&(i=[ny(i[0],l)]));for(let e of i)e.level=s;if(r.push(i),r.length>=jg.seedMinLength&&(o=qg(r,n),o))break;a=a.parentElement,s++}return o||(o=qg(r,n)),!o&&n?n():o}function qg(e,t){const n=iy(sy(e));if(n.length>jg.threshold)return t?t():null;for(let e of n)if(Xg(e))return e;return null}function Gg(e){let t=e[0],n=t.name;for(let o=1;o<e.length;o++){const r=e[o].level||0;n=t.level===r-1?`${e[o].name} > ${n}`:`${e[o].name} ${n}`,t=e[o]}return n}function Yg(e){return e.map((e=>e.penalty)).reduce(((e,t)=>e+t),0)}function Xg(e){const t=Gg(e);switch(Kg.querySelectorAll(t).length){case 0:throw new Error(`Can't select any node with this selector: ${t}`);case 1:return!0;default:return!1}}function Zg(e){const t=e.getAttribute("id");return t&&jg.idName(t)?{name:"#"+CSS.escape(t),penalty:0}:null}function Jg(e){const t=Array.from(e.attributes).filter((e=>jg.attr(e.name,e.value)));return t.map((e=>({name:`[${CSS.escape(e.name)}="${CSS.escape(e.value)}"]`,penalty:.5})))}function Qg(e){return Array.from(e.classList).filter(jg.className).map((e=>({name:"."+CSS.escape(e),penalty:1})))}function ey(e){const t=e.tagName.toLowerCase();return jg.tagName(t)?{name:t,penalty:2}:null}function ty(e){const t=e.parentNode;if(!t)return null;let n=t.firstChild;if(!n)return null;let o=0;for(;n&&(n.nodeType===Node.ELEMENT_NODE&&o++,n!==e);)n=n.nextSibling;return o}function ny(e,t){return{name:e.name+`:nth-child(${t})`,penalty:e.penalty+1}}function oy(e){return"html"!==e.name&&!e.name.startsWith("#")}function ry(...e){const t=e.filter(ay);return t.length>0?t:null}function ay(e){return null!=e}function*sy(e,t=[]){if(e.length>0)for(let n of e[0])yield*sy(e.slice(1,e.length),t.concat(n));else yield t}function iy(e){return[...e].sort(((e,t)=>Yg(e)-Yg(t)))}function*ly(e,t,n={counter:0,visited:new Map}){if(e.length>2&&e.length>jg.optimizedMinLength)for(let o=1;o<e.length-1;o++){if(n.counter>jg.maxNumberOfTries)return;n.counter+=1;const r=[...e];r.splice(o,1);const a=Gg(r);if(n.visited.has(a))return;Xg(r)&&cy(r,t)&&(yield r,n.visited.set(a,!0),yield*ly(r,t,n))}}function cy(e,t){return Kg.querySelector(Gg(e))===t}function uy({idName:e,tagName:t,className:n,attr:o,attrNames:r}){const a=o?r.split(",").map((e=>e.trim())):["data-testid"];return{idName:()=>e??!0,tagName:()=>t??!0,className:()=>n??!0,attr:e=>a.includes(e)}}const dy=["data-testid"],py=Hg;function my(e,t={}){let n=py(e,{tagName:()=>!0,attr:(e,t)=>"id"===e||dy.includes(e)&&t,...t});const o=e.tagName.toLowerCase();return n.startsWith(o)||n.includes(" ")||(n=`${o}${n}`),n}function fy(e,t=50,n=[]){if(0===t||!e||"BODY"===e.tagName)return null;let o=e.tagName.toLowerCase();const{elements:r,index:a}=function(e,t){const n=[e],o=n=>{const o=!t||n.querySelector(t),r=e.tagName===n.tagName;return o&&r};let r=e,a=e,s=1;for(;a=a?.previousElementSibling;)o(a)&&(s+=1,n.unshift(a));for(;r=r?.nextElementSibling;)o(r)&&n.push(r);return{elements:n,index:s}}(e,n.join(" > "));let s=r;return 1!==a&&(o+=`:nth-of-type(${a})`),n.unshift(o),1===s.length&&(s=fy(e.parentElement,t-1,n)),s}function hy(e,{frameElement:t,onlyInList:n,selectorSettings:o}={}){if(!e)return[];const r=e.closest("[automa-el-list]");let a=document;if(t&&(a=t.contentDocument),r){if(e.hasAttribute("automa-el-list"))return[];const t=my(e,{root:r,...o||{},idName:()=>!1}),n=a.querySelectorAll(`[automa-el-list] ${t}`);return Array.from(n)}return n?[]:fy(e)||[e]}function gy({list:e,target:t,selectorType:n,frameElement:r,hoveredElements:a,selectorSettings:s}){let i="";const l=s||{},[c]=a,u={...l};let d=document;if(r&&(d=r.contentDocument.body,u.root=d),e){const e=t.closest("[automa-el-list]");if(e){const n=my(t,{root:e,...l,idName:()=>!1}),o=e.getAttribute("automa-el-list");i=`${o} ${n}`}else{const e=my(c.parentElement,u);i=`${e} > ${c.tagName.toLowerCase()}`;d.querySelectorAll("[automa-el-list]").forEach((e=>{e.removeAttribute("automa-el-list")})),a.forEach((e=>{e.setAttribute("automa-el-list",i)}))}}else i="css"===n?my(c,u):o(c);return i}const yy={__name:"SharedElementHighlighter",props:{items:{type:Object,default:()=>({})},stroke:{type:String,default:null},activeStroke:{type:String,default:null},fill:{type:String,default:null},activeFill:{type:String,default:null}},setup(e){const t=e;function n(e){return Number.isNaN(e)||!e?0:e}function o(e){return e?e.outline?null:e.highlight?t.fill:t.activeFill||t.fill:null}function r(e){return e?e.highlight?t.stroke:t.activeStroke||t.stroke:null}return(t,a)=>(Rr(!0),$r(Or,null,no(e.items,((e,t)=>(Rr(),$r("rect",sa({ref_for:!0},{x:n(e?.x),y:n(e?.y),fill:o(e),stroke:r(e),width:n(e?.width),height:n(e?.height),"stroke-dasharray":e?.outline?"5,5":null},{key:t,"stroke-width":"2"}),null,16)))),128))}},vy=yy,by={key:0,class:"automa-element-highlighter",style:{height:"100%",width:"100%",top:"0",left:"0","pointer-events":"none",position:"fixed","z-index":"999999"}},ky={key:0,id:"automa-selector-overlay",style:{"z-index":"9999999",position:"fixed",left:"0",top:"0",width:"100%",height:"100%"}},wy={__name:"SharedElementSelector",props:{selectorType:{type:String,default:"css"},selectedEls:{type:Array,default:()=>[]},selectorSettings:{type:Object,default:()=>({})},list:Boolean,hide:Boolean,pause:Boolean,disabled:Boolean,onlyInList:Boolean,withAttributes:Boolean},emits:["selected"],setup(n,{emit:r}){const a=n,s=r;let i=null,l=null,c=window.scrollY,u=window.scrollX;const d={x:0,y:0};let p=[];const m=dt({hovered:[],selected:[]}),f=Qm((()=>{if(a.disabled)return;p=[],m.hovered=[];const e=window.scrollY-c,t=window.scrollX-u;m.selected.forEach(((n,o)=>{m.selected[o].x-=t,m.selected[o].y-=e})),u=window.scrollX,c=window.scrollY}),100);function h(t,{withAttribute:n,withElOptions:o}={}){const r=e(t,n);return l&&(r.y+=l.top,r.x+=l.left),o&&"SELECT"===t.tagName&&(r.options=Array.from(t.querySelectorAll("option")).map((e=>({value:e.value,name:e.innerText})))),r}function g(){document.querySelectorAll("[automa-el-list]").forEach((e=>{e.removeAttribute("automa-el-list")}))}function y(e={}){document.querySelectorAll("iframe, frame").forEach((t=>{t.contentWindow.postMessage({...e,type:"automa:reset-element-selector"},"*")}))}function v({clientX:e,clientY:n,target:o},r){const c=o.classList.contains("automa-element-selector");if(a.disabled||c)return;const u=a.list&&"css"===a.selectorType;let{1:d}=document.elementsFromPoint(e,n);if(!d)return;const f=a.onlyInList&&m.selected.length>0;if(["IFRAME","FRAME"].includes(d.tagName)){if("selected"===r&&g(),!d.contentDocument){const{top:t,left:o}=d.getBoundingClientRect(),s={top:t,left:o,clientX:e,clientY:n,onlyInList:f,list:u,type:"automa:get-element-rect",withAttributes:a.withAttributes};return"selected"===r&&Object.assign(s,{click:!0,selectorType:a.selectorType,selectorSettings:bt(a.selectorSettings)}),d.contentWindow.postMessage(s,"*"),i=d,void(l=d.getBoundingClientRect())}{i=d,l=d.getBoundingClientRect();const t=n-l.top,o=e-l.left;d=d.contentDocument.elementFromPoint(o,t)}}else i=null,l=null;let v=[];const b="selected"===r,k=a.withAttributes&&"selected"===r;if(u){const e=hy(d,{onlyInList:f,frameElement:i})||[];"hovered"===r&&(p=e),v=e.map((e=>h(e,{withAttribute:k,withElOptions:b})))}else"hovered"===r&&(p=[d]),v=[h(d,{withAttribute:k,withElOptions:b})];if(m[r]=v,"selected"===r){i||y();const e=uy(a.selectorSettings);let n=gy({target:d,frameElement:i,hoveredElements:p,list:u,selectorType:a.selectorType,selectorSettings:e});if(i){n=`${Hg(i,e)} |> ${n}`}const o=v.reduce(((e,t,n)=>("SELECT"!==t.tagName||e.push({...t,elIndex:n}),e)),[]);s("selected",{selector:n,selectElements:o,elements:v,path:t(d)})}}function b(e){a.pause||(d.x=e.clientX,d.y=e.clientY,v(e,"hovered"))}function k(e){if(a.pause||e.repeat||"Space"!==e.code)return;const{1:t}=document.elementsFromPoint(d.x,d.y);"automa-selector-overlay"!==t.id&&(e.preventDefault(),e.stopPropagation(),v({target:t,clientX:d.x,clientY:d.y},"selected"))}function w(e){"automa-selector-overlay"===e.target.id&&(e.preventDefault(),e.stopPropagation()),v(e,"selected")}function C({data:e}){if("automa:iframe-element-rect"!==e.type)return;if(e.click){const t="css"===a.selectorType?Hg(i,{tagName:()=>!0}):o(i);s("selected",{elements:e.elements,selector:`${t} |> ${e.selector}`})}const t=e.click?"selected":"hovered";m[t]=e.elements}function _(){window.removeEventListener("scroll",f),window.removeEventListener("message",C),document.removeEventListener("keydown",k),window.removeEventListener("mousemove",b),document.removeEventListener("mousedown",w)}return yr((()=>[a.list,a.disabled]),(()=>{g(),y({clearCache:!0})})),yr((()=>a.selectedEls),(()=>{m.selected=a.selectedEls})),yr((()=>a.hide),(()=>{a.hide?_():(window.addEventListener("scroll",f),window.addEventListener("message",C),document.addEventListener("keydown",k),window.addEventListener("mousemove",b),document.addEventListener("mousedown",w))}),{immediate:!0}),Kn(_),(e,t)=>(Rr(),$r(Or,null,[n.disabled?na("",!0):(Rr(),$r("svg",by,[Zr(vy,{items:m.hovered,stroke:"#fbbf24",fill:"rgba(251, 191, 36, 0.1)"},null,8,["items"]),Zr(vy,{items:m.selected,stroke:"#2563EB","active-stroke":"#f87171",fill:"rgba(37, 99, 235, 0.1)","active-fill":"rgba(248, 113, 113, 0.1)"},null,8,["items"])])),(Rr(),Hr(rr,{to:"html"},[n.disabled?na("",!0):(Rr(),$r("div",ky))]))],64))}},Cy=wy,_y={class:"drag-button absolute z-50 cursor-move rounded-lg bg-white p-2 p-1 shadow-xl",style:{top:"-15px",left:"-15px"}},Ey={class:"flex items-center px-4 pt-4"},xy=Xr("p",{class:"text-lg font-semibold"},"Ollana",-1),Ay=Xr("div",{class:"grow"},null,-1),Sy={class:"p-4"},Ty={key:2,class:"mt-4"},Ly=Xr("p",{class:"mb-4 font-semibold"},"Selector settings",-1),Ny={class:"space-y-4"},Iy={class:"flex items-center space-x-2"},Dy=Xr("p",null,"Include element id",-1),Oy={class:"flex items-center space-x-2"},By=Xr("p",null,"Include tag name",-1),zy={class:"flex items-center space-x-2"},Fy=Xr("p",null,"Include class name",-1),Py={class:"flex items-center space-x-2"},My=Xr("p",null,"Include attributes",-1),Ry=Xr("label",{class:"ml-1 mt-2 block text-sm text-gray-600",for:"automa-attribute-names"}," Attribute names ",-1),Vy=Xr("span",{class:"text-sm"}," Use commas to separate the attribute ",-1),Uy=Xr("p",{class:"mt-1 text-sm text-gray-600"},[ta(" Click or press "),Xr("kbd",{class:"bg-box-transparent rounded-md p-1"},"Space"),ta(" to select an element ")],-1),jy={__name:"App",setup(t){let n=null;const o=document.documentElement.style.fontSize,r={path:[],pathIndex:0,cache:new WeakMap},a=No("rootElement"),s=St("cardEl"),i=dt({hide:!1,elSelector:"",destroyed:!1,isDragging:!1,selectList:!1,isExecuting:!1,selectElements:[],showSettings:!1,selectorType:"css",selectedElements:[],activeTab:"attributes",isSelectBlockElement:!1}),l=dt({x:0,y:0,height:0,width:0}),c=dt({idName:!0,tagName:!0,attr:!0,className:!0,attrNames:"data-testid"}),u=new ResizeObserver((([e])=>{const{height:t,width:n}=e.contentRect;l.width=n,l.height=t})),d=Qm((t=>{let n,o=t;t.includes("|>")&&([n,o]=t.split(/\|>(.+)/));const r="css"===i.selectorType?"cssSelector":"xpath";try{if(n){const e=lh[r]({selector:n,multiple:!1});if(!["IFRAME","FRAME"].includes(e.tagName))return;const{top:t,left:a}=e.getBoundingClientRect();return void e.contentWindow.postMessage({selectorType:r,selector:o,type:"automa:find-element",frameRect:{top:t,left:a}},"*")}const t=lh[r]({selector:o,multiple:!0});i.selectedElements=Array.from(t||[]).map((t=>e(t,!0)))}catch(e){console.error(e),i.selectedElements=[]}}),200);function p({index:e,highlight:t}){i.selectedElements[e].highlight=t}function m({selector:e,elements:t,path:n,selectElements:o}){n&&(r.path=n,r.pathIndex=0),i.elSelector=e,i.selectedElements=t||[],i.selectElements=o||[]}function f({clientX:e,clientY:t}){if(!i.isDragging)return;const n=window.innerHeight,o=document.documentElement.clientWidth;t<10?t=10:l.height+t>n&&(t=n-l.height),e<10?e=10:l.width+e>o&&(e=o-l.width),l.x=e,l.y=t}function h(t){let n="up"===t?r.pathIndex+1:r.pathIndex-1,o=r.path[n];if(("up"!==t||o)&&"BODY"!==o?.tagName){if("down"===t&&!o){const e=r.path[r.pathIndex],t=Array.from(e.children).find((e=>!["STYLE","SCRIPT"].includes(e.tagName)));if(!t)return;o=t,r.path.unshift(t),n=0}r.pathIndex=n,i.selectedElements=[e(o,!0)],i.elSelector=r.cache.has(o)?r.cache.get(o):my(o,uy(c))}}function g(){i.isDragging&&(i.isDragging=!1)}function y({data:e}){"automa:selected-elements"===e.type&&(i.selectedElements=e.elements)}function v(){a.style.display="none",Object.assign(i,{hide:!0,activeTab:"",elSelector:"",isDragging:!1,isExecuting:!1,hoveredElements:[],selectedElements:[]});document.querySelectorAll("[automa-el-list]").forEach((e=>{e.removeAttribute("automa-el-list")})),document.documentElement.style.fontSize=o}function b(){n&&(n=null,i.isSelectBlockElement=!1)}function k(){n&&"hidden"===document.visibilityState&&b()}function w(){n&&(n.postMessage(i.elSelector),b(),v())}return yr((()=>i.isDragging),(e=>{document.body.toggleAttribute("automa-isDragging",e)})),yr(c,(e=>{Im().storage.local.set({selectorSettings:bt(e)})}),{deep:!0}),Im().runtime.onConnect.addListener((e=>{b(),n=e,i.isSelectBlockElement=!0,e.onDisconnect.addListener(b)})),Vn((()=>{Im().storage.local.get("selectorSettings").then((e=>{const t=e.selectorSettings||{};Object.assign(c,t)})),setTimeout((()=>{const{height:e,width:t}=s.value.getBoundingClientRect();l.x=window.innerWidth-(t+35),l.y=20,l.width=t,l.height=e}),500),u.observe(s.value),window.addEventListener("message",y),window.addEventListener("mouseup",g),window.addEventListener("mousemove",f),document.addEventListener("visibilitychange",k)})),Kn((()=>{u.disconnect(),window.removeEventListener("message",y),window.removeEventListener("mouseup",g),window.removeEventListener("mousemove",f),document.removeEventListener("visibilitychange",k)})),(e,t)=>{const n=Xn("v-remixicon"),o=Xn("ui-button"),r=Xn("ui-switch"),a=Xn("ui-textarea");return Rr(),$r(Or,null,[Xr("div",{class:Y([{"select-none":i.isDragging,"bg-black bg-opacity-30":!i.hide},"root pointer-events-none fixed top-0 left-0 h-full w-full text-black"]),style:{"z-index":"99999999"}},[Xr("div",{ref_key:"cardEl",ref:s,style:$([{transform:`translate(${l.x}px, ${l.y}px)`},{width:"320px"}]),class:"root-card pointer-events-auto relative z-50 rounded-lg bg-white shadow-xl"},[Xr("div",_y,[Zr(n,{name:"riDragMoveLine",onMousedown:t[0]||(t[0]=e=>i.isDragging=!0)})]),Xr("div",Ey,[xy,Ay,Xr("button",{class:"hoverable mr-2 rounded-md p-1 transition",onMousedown:t[1]||(t[1]=Is((()=>{}),["stop","prevent"])),onClick:t[2]||(t[2]=Is((e=>{i.hide=!i.hide,b()}),["stop","prevent"]))},[Zr(n,{name:i.hide?"riEyeOffLine":"riEyeLine"},null,8,["name"])],32),Xr("button",{class:"hoverable rounded-md p-1 transition",onMousedown:t[3]||(t[3]=Is((()=>{}),["stop","prevent"])),onClick:Is(v,["stop","prevent"])},[Zr(n,{name:"riCloseLine"})],32)]),Xr("div",Sy,[Zr(Ug,{"selector-type":i.selectorType,"onUpdate:selectorType":t[4]||(t[4]=e=>i.selectorType=e),"select-list":i.selectList,"onUpdate:selectList":t[5]||(t[5]=e=>i.selectList=e),selector:i.elSelector,"settings-active":i.showSettings,"selected-count":i.selectedElements.length,onSettings:t[6]||(t[6]=e=>i.showSettings=e),onSelector:It(d),onParent:t[7]||(t[7]=e=>h("up")),onChild:t[8]||(t[8]=e=>h("down"))},null,8,["selector-type","select-list","selector","settings-active","selected-count","onSelector"]),i.isSelectBlockElement?(Rr(),Hr(o,{key:0,disabled:!i.elSelector,variant:"accent",class:"mt-4 w-full",onClick:w},{default:un((()=>[ta(" Select Element ")])),_:1},8,["disabled"])):na("",!0),!i.showSettings&&!i.hide&&i.selectedElements.length>0?(Rr(),Hr(Ph,sa({key:1,"active-tab":i.activeTab,"onUpdate:activeTab":t[9]||(t[9]=e=>i.activeTab=e)},{elSelector:i.elSelector,selectElements:i.selectElements,hideBlocks:i.isSelectBlockElement,selectedElements:i.selectedElements},{onHighlight:p,onExecute:t[10]||(t[10]=e=>i.isExecuting=e)}),null,16,["active-tab"])):na("",!0),i.showSettings&&"css"===i.selectorType&&!i.hide?(Rr(),$r("div",Ty,[Ly,Xr("ul",Ny,[Xr("li",null,[Xr("label",Iy,[Zr(r,{modelValue:c.idName,"onUpdate:modelValue":t[11]||(t[11]=e=>c.idName=e)},null,8,["modelValue"]),Dy])]),Xr("li",null,[Xr("label",Oy,[Zr(r,{modelValue:c.tagName,"onUpdate:modelValue":t[12]||(t[12]=e=>c.tagName=e)},null,8,["modelValue"]),By])]),Xr("li",null,[Xr("label",zy,[Zr(r,{modelValue:c.className,"onUpdate:modelValue":t[13]||(t[13]=e=>c.className=e)},null,8,["modelValue"]),Fy])]),Xr("li",null,[Xr("label",Py,[Zr(r,{modelValue:c.attr,"onUpdate:modelValue":t[14]||(t[14]=e=>c.attr=e)},null,8,["modelValue"]),My]),c.attr?(Rr(),$r(Or,{key:0},[Ry,Zr(a,{id:"automa-attribute-names",modelValue:c.attrNames,"onUpdate:modelValue":t[15]||(t[15]=e=>c.attrNames=e),label:"Attribute name",placeholder:"data-testid, aria-label, type"},null,8,["modelValue"]),Vy],64)):na("",!0)])])])):na("",!0),Uy])],4)],2),Zr(Cy,{hide:i.hide,disabled:i.hide,list:i.selectList,"selector-type":i.selectorType,"selected-els":i.selectedElements,"selector-settings":c,"with-attributes":"",onSelected:m},null,8,["hide","disabled","list","selector-type","selected-els","selector-settings"])],64)}}},Ky=jy,$y={mounted(e,{value:t=!0}){t&&e.focus()}},Hy=["aria-selected","tabIndex"],Wy={__name:"UiTab",props:{disabled:{type:Boolean,default:!1},value:{type:[String,Number],default:""}},setup(e){const t=No("ui-tabs",{});return(n,o)=>(Rr(),$r("button",{"aria-selected":It(t).modelValue.value===e.value,class:Y([[It(t).type.value,{"pointer-events-none opacity-75":e.disabled,small:It(t).small.value,"flex-1":It(t).fill.value,"is-active":It(t).modelValue.value===e.value}],"ui-tab z-[1] transition-colors focus:ring-0"]),tabIndex:It(t).modelValue.value===e.value?0:-1,"aria-role":"tab",onMouseenter:o[0]||(o[0]=(...e)=>It(t).hoverHandler&&It(t).hoverHandler(...e)),onClick:o[1]||(o[1]=n=>It(t).updateActive(e.value))},[oo(n.$slots,"default")],42,Hy))}};var qy=n(83744);const Gy=(0,qy.Z)(Wy,[["__scopeId","data-v-681b5d14"]]),Yy={__name:"UiTabs",props:{modelValue:{type:[String,Number],default:""},type:{type:String,default:"default",validator:e=>["default","fill"].includes(e)},color:{type:String,default:"bg-box-transparent"},small:Boolean,fill:Boolean},emits:["update:modelValue","change"],setup(e,{emit:t}){const n=e,o=t,r={default:"border-b",fill:"p-2 rounded-lg"},a=St(null),s=St(!1);return Lo("ui-tabs",{updateActive:function(e){o("change",e),o("update:modelValue",e)},hoverHandler:function({target:e}){const t="fill"===n.type;if(e.classList.contains("is-active")&&t)return void(a.value.style.display="none");const{height:o,width:r}=e.getBoundingClientRect(),i=t?o+3:o-11;s.value=!0,a.value.style.width=`${r}px`,a.value.style.height=`${i}px`,a.value.style.display="inline-block",a.value.style.transform=`translate(${e.offsetLeft}px, -50%)`},...Bt(n)}),(t,n)=>(Rr(),$r("div",{class:Y([[r[e.type]||r.default,{[e.color]:"fill"===e.type}],"ui-tabs relative flex items-center space-x-1 text-gray-600 dark:text-gray-200"]),"aria-role":"tablist",onMouseleave:n[0]||(n[0]=e=>s.value=!1)},[dn(Xr("div",{ref_key:"hoverIndicator",ref:a,class:"ui-tabs__indicator bg-box-transparent absolute left-0 z-0 rounded-lg",style:{top:"50%",transform:"translate(0, -50%)"}},null,512),[[ns,s.value]]),oo(t.$slots,"default")],34))}},Xy=Yy,Zy={key:0,class:"button-loading"};const Jy=["width","height"],Qy=[Xr("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),Xr("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1)];const ev={props:{size:{type:[String,Number],default:"24"},color:{type:String,default:"text-primary"}}},tv={components:{UiSpinner:(0,qy.Z)(ev,[["render",function(e,t,n,o,r,a){return Rr(),$r("svg",{class:Y(["inline-block animate-spin",[n.color]]),xmlns:"http://www.w3.org/2000/svg",fill:"none",width:n.size,height:n.size,viewBox:"0 0 24 24"},Qy,10,Jy)}]])},props:{icon:Boolean,disabled:Boolean,loading:Boolean,circle:Boolean,color:{type:String,default:""},tag:{type:String,default:"button"},btnType:{type:String,default:"fill"},variant:{type:String,default:"default"}},setup:()=>({variants:{transparent:{default:"hoverable"},fill:{default:"bg-input",accent:"bg-accent hover:bg-gray-700 dark:bg-gray-100 dark:hover:bg-gray-200 dark:text-black text-white",primary:"bg-primary text-white dark:bg-secondary dark:hover:bg-primary hover:bg-secondary",danger:"bg-red-400 text-white dark:bg-red-500 dark:hover:bg-red-500 hover:bg-red-400"}}})},nv=(0,qy.Z)(tv,[["render",function(e,t,n,o,r,a){const s=Xn("ui-spinner");return Rr(),Hr(Jn(n.tag),sa({role:"button",class:["ui-button relative h-10 transition",[n.color?n.color:o.variants[n.btnType][n.variant],n.icon?"p-2":"py-2 px-4",n.circle?"rounded-full":"rounded-lg",{"opacity-70":n.disabled,"pointer-events-none":n.loading||n.disabled}]]},{disabled:n.loading||n.disabled,...e.$attrs}),{default:un((()=>[Xr("span",{class:Y(["flex h-full items-center justify-center",{"opacity-25":n.loading}])},[oo(e.$slots,"default")],2),n.loading?(Rr(),$r("div",Zy,[Zr(s,{color:"default"===n.variant?"text-primary":"text-white dark:text-gray-900"},null,8,["color"])])):na("",!0)])),_:3},16,["class"])}]]),ov=["for"],rv={class:"ui-select__content relative flex w-full items-center"},av=["id","disabled","value"],sv={key:0,value:"",disabled:"",selected:""};const iv={props:{modelValue:{type:[String,Number],default:""},label:{type:String,default:""},prependIcon:{type:String,default:""},placeholder:{type:String,default:""},modelModifiers:{type:Object,default:()=>({})},block:Boolean,disabled:Boolean,showDetail:Boolean},emits:["update:modelValue","change"],setup:(e,{emit:t})=>({selectId:Lg("select"),emitValue:function(n){let{value:o}=n.target;e.modelModifiers.number&&(o=+o),t("update:modelValue",o),t("change",o)}})},lv=(0,qy.Z)(iv,[["render",function(e,t,n,o,r,a){const s=Xn("v-remixicon");return Rr(),$r("div",{class:Y([{"inline-block":!n.block},"ui-select cursor-pointer"])},[n.label||e.$slots.label?(Rr(),$r("label",{key:0,for:o.selectId,class:"ml-1 text-sm text-gray-600 dark:text-gray-200"},[oo(e.$slots,"label",{},(()=>[ta(te(n.label),1)]))],8,ov)):na("",!0),Xr("div",rv,[n.prependIcon?(Rr(),Hr(s,{key:0,size:"20",name:n.prependIcon,class:"absolute left-0 ml-2 text-gray-600 dark:text-gray-200"},null,8,["name"])):na("",!0),Xr("select",{id:o.selectId,disabled:n.disabled,class:Y([{"pl-8":n.prependIcon,"opacity-75 pointer-events-none":n.disabled},"bg-input z-10 h-full w-full appearance-none rounded-lg bg-transparent px-4 py-2 pr-10 transition"]),value:n.modelValue,onChange:t[0]||(t[0]=(...e)=>o.emitValue&&o.emitValue(...e))},[n.placeholder?(Rr(),$r("option",sv,te(n.placeholder),1)):na("",!0),oo(e.$slots,"default")],42,av),Zr(s,{size:"28",name:"riArrowDropDownLine",class:"absolute right-0 mr-2 text-gray-600 dark:text-gray-200"})])],2)}]]),cv=["aria-expanded"],uv={__name:"UiExpand",props:{modelValue:{type:Boolean,default:!0},panelClass:{type:String,default:""},headerClass:{type:String,default:"px-4 py-2 w-full flex items-center h-full"},headerActiveClass:{type:String,default:""},activeClass:{type:String,default:""},hideHeaderIcon:{type:Boolean,default:!1},disabled:Boolean,appendIcon:Boolean},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t,r=St(!1);function a(){n.disabled||(r.value=!r.value,o("update:modelValue",r.value))}return yr((()=>n.modelValue),(e=>{e!==r.value&&(r.value=e)}),{immediate:!0}),yr((()=>n.disabled),(()=>{r.value=!1})),(t,n)=>{const o=Xn("v-remixicon"),s=Xn("transition-expand");return Rr(),$r("div",{"aria-expanded":r.value,class:Y([{[e.activeClass]:r.value},"ui-expand"])},[Xr("button",{class:Y([e.headerClass,{[e.headerActiveClass]:r.value}]),onClick:a},[e.hideHeaderIcon||e.appendIcon?na("",!0):(Rr(),Hr(o,{key:0,rotate:r.value?90:-90,name:"riArrowLeftSLine",class:"mr-2 -ml-1 transition-transform"},null,8,["rotate"])),oo(t.$slots,"header",X(Qr({show:r.value}))),e.appendIcon?(Rr(),Hr(o,{key:1,rotate:r.value?90:-90,name:"riArrowLeftSLine",class:"-mr-1 ml-2 transition-transform"},null,8,["rotate"])):na("",!0)],2),Zr(s,null,{default:un((()=>[r.value?(Rr(),$r("div",{key:0,class:Y([e.panelClass,"ui-expand__panel"])},[oo(t.$slots,"default")],2)):na("",!0)])),_:3})],10,cv)}}},dv=uv,pv=e=>(function(e){ln=e}("data-v-cc5de7b2"),e=e(),ln=null,e),mv=["checked"],fv={class:"ui-switch__ball absolute z-40 flex h-4 w-4 items-center justify-center rounded-full bg-white shadow-xl"},hv=pv((()=>Xr("div",{class:"ui-switch__background absolute left-0 top-0 h-full w-full rounded-md bg-accent"},null,-1)));const gv={props:{modelValue:{type:Boolean,default:!1},disabled:Boolean},emits:["update:modelValue","change"],setup:(e,{emit:t})=>({emitEvent:()=>{const n=!e.modelValue;t("change",n),t("update:modelValue",n)}})},yv=(0,qy.Z)(gv,[["render",function(e,t,n,o,r,a){return Rr(),$r("div",{class:Y(["ui-switch bg-input relative inline-flex h-6 w-12 items-center justify-center rounded-full p-1",{"pointer-events-none opacity-50":n.disabled}])},[Xr("input",sa({checked:n.modelValue,type:"checkbox",class:"absolute left-0 top-0 z-50 h-full w-full cursor-pointer opacity-0"},{disabled:n.disabled,readonly:n.disabled||null},{onInput:t[0]||(t[0]=(...e)=>o.emitEvent&&o.emitEvent(...e))}),null,16,mv),Xr("div",fv,[e.$slots.ball?oo(e.$slots,"ball",{key:0},void 0,!0):na("",!0)]),hv],2)}],["__scopeId","data-v-cc5de7b2"]]),vv=["id","value"];const bv={props:{modelValue:{type:String,default:""},label:{type:String,default:""},placeholder:{type:String,default:""},autoresize:{type:Boolean,default:!1},max:{type:[Number,String],default:null},block:Boolean},emits:["update:modelValue","change","focus","blur","keyup","keydown"],setup(e,{emit:t}){const n=Lg("textarea"),o=St(null);return Vn((function(){e.autoresize&&(o.value.style.height="auto",o.value.style.height=`${o.value.scrollHeight}px`)})),{textarea:o,emitValue:function(n){let{value:o}=n.target;const r=Math.abs(e.max)||1/0;o.length>r&&(o=o.slice(0,r)),t("update:modelValue",o),t("change",o)},textareaId:n}}},kv=(0,qy.Z)(bv,[["render",function(e,t,n,o,r,a){return Rr(),$r("textarea",sa({placeholder:n.placeholder,maxlength:n.max},{id:o.textareaId,ref:"textarea",value:n.modelValue,class:"ui-textarea ui-input bg-input w-full rounded-lg px-4 py-2 transition",onInput:t[0]||(t[0]=(...e)=>o.emitValue&&o.emitValue(...e)),onKeyup:t[1]||(t[1]=t=>e.$emit("keyup",t)),onKeydown:t[2]||(t[2]=t=>e.$emit("keydown",t)),onFocus:t[3]||(t[3]=t=>e.$emit("focus",t)),onBlur:t[4]||(t[4]=t=>e.$emit("blur",t))}),null,16,vv)}]]),wv=["value"],Cv={class:"bg-input checkbox-ui__mark absolute top-0 left-0 cursor-pointer rounded border dark:border-gray-700"},_v={key:0,class:"ml-2 inline-block"};const Ev={props:{modelValue:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},disabled:{type:Boolean,default:null},block:{type:Boolean,default:null}},emits:["update:modelValue","change"],setup:(e,{emit:t})=>({changeHandler:function({target:{checked:e}}){t("update:modelValue",e),t("change",e)}})},xv=(0,qy.Z)(Ev,[["render",function(e,t,n,o,r,a){const s=Xn("v-remixicon");return Rr(),$r("label",{class:Y(["checkbox-ui items-center",[n.block?"flex":"inline-flex"]])},[Xr("div",{class:Y([{"pointer-events-none opacity-75":n.disabled},"relative inline-block h-5 w-5 rounded focus-within:ring-2 focus-within:ring-accent"])},[Xr("input",sa({class:[{indeterminate:n.indeterminate},"checkbox-ui__input opacity-0"],type:"checkbox",value:n.modelValue},{checked:n.modelValue,disabled:n.disabled},{onChange:t[0]||(t[0]=(...e)=>o.changeHandler&&o.changeHandler(...e))}),null,16,wv),Xr("div",Cv,[Zr(s,{name:n.indeterminate?"riSubtractLine":"riCheckLine",size:"20",class:"text-white dark:text-black"},null,8,["name"])])],2),e.$slots.default?(Rr(),$r("span",_v,[oo(e.$slots,"default",{},void 0,!0)])):na("",!0)],2)}],["__scopeId","data-v-32d46196"]]),Av={__name:"UiTabPanel",props:{value:{type:[String,Number],default:""},activeClass:{type:String,default:"ui-tab-panel--active"},cache:Boolean},setup(e){const t=e,n=uo().slots,o=No("ui-tab-panels",{}),r=()=>{const e=t.value===o.modelValue.value,r=t.cache||o.cache.value,a=Na("div",{class:[t.activeClass,"ui-tab-panel"],style:{display:r&&!e?"none":null}},n);return t.cache||e?a:null};return(e,t)=>(Rr(),Hr(r))}},Sv=Av,Tv={class:"ui-tab-panels"},Lv={__name:"UiTabPanels",props:{modelValue:{type:[String,Number],default:""},cache:{type:Boolean,default:!1}},setup:e=>(Lo("ui-tab-panels",Bt(e)),(e,t)=>(Rr(),$r("div",Tv,[oo(e.$slots,"default")])))},Nv={props:{group:Boolean},setup(e,{slots:t,attrs:n}){function o(e){const{width:t}=getComputedStyle(e);e.style.width=t,e.style.position="absolute",e.style.visibility="hidden",e.style.height="auto";const{height:n}=getComputedStyle(e);e.style.width=null,e.style.position=null,e.style.visibility=null,e.style.height=0,getComputedStyle(e).height,requestAnimationFrame((()=>{e.style.height=n}))}function r(e){e.style.height="auto"}function a(e){const{height:t}=getComputedStyle(e);e.style.height=t,getComputedStyle(e).height,requestAnimationFrame((()=>{e.style.height=0}))}return()=>Na(e.group?xs:Ma,{...n,name:"expand",onEnter:o,onAfterEnter:r,onLeave:a},t.default)}},Iv=Nv;function Dv(e){e.component("UiTab",Gy),e.component("UiTabs",Xy),e.component("UiInput",zg),e.component("UiButton",nv),e.component("UiSelect",lv),e.component("UiSwitch",yv),e.component("UiExpand",dv),e.component("UiTextarea",kv),e.component("UiCheckbox",xv),e.component("UiTabPanel",Sv),e.component("UiTabPanels",Lv),e.component("TransitionExpand",Iv),e.directive("autofocus",$y)}const Ov={riEyeLine:"M12 3c5.392 0 9.878 3.88 10.819 9-.94 5.12-5.427 9-10.819 9-5.392 0-9.878-3.88-10.819-9C2.121 6.88 6.608 3 12 3zm0 16a9.005 9.005 0 0 0 8.777-7 9.005 9.005 0 0 0-17.554 0A9.005 9.005 0 0 0 12 19zm0-2.5a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9zm0-2a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5z",riCheckLine:"M10 15.172l9.192-9.193 1.415 1.414L10 18l-6.364-6.364 1.414-1.414z",riCloseLine:"M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z",riEyeOffLine:"M17.882 19.297A10.949 10.949 0 0 1 12 21c-5.392 0-9.878-3.88-10.819-9a10.982 10.982 0 0 1 3.34-6.066L1.392 2.808l1.415-1.415 19.799 19.8-1.415 1.414-3.31-3.31zM5.935 7.35A8.965 8.965 0 0 0 3.223 12a9.005 9.005 0 0 0 13.201 5.838l-2.028-2.028A4.5 4.5 0 0 1 8.19 9.604L5.935 7.35zm6.979 6.978l-3.242-3.242a2.5 2.5 0 0 0 3.241 3.241zm7.893 2.264l-1.431-1.43A8.935 8.935 0 0 0 20.777 12 9.005 9.005 0 0 0 9.552 5.338L7.974 3.76C9.221 3.27 10.58 3 12 3c5.392 0 9.878 3.88 10.819 9a10.947 10.947 0 0 1-2.012 4.592zm-9.084-9.084a4.5 4.5 0 0 1 4.769 4.769l-4.77-4.769z",riFileCopyLine:"M7 6V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-3v3c0 .552-.45 1-1.007 1H4.007A1.001 1.001 0 0 1 3 21l.003-14c0-.552.45-1 1.007-1H7zM5.003 8L5 20h10V8H5.003zM9 6h8v10h2V4H9v2z",riDragMoveLine:"M12 2l4.243 4.243-1.415 1.414L12 4.828 9.172 7.657 7.757 6.243 12 2zM2 12l4.243-4.243 1.414 1.415L4.828 12l2.829 2.828-1.414 1.415L2 12zm20 0l-4.243 4.243-1.414-1.415L19.172 12l-2.829-2.828 1.414-1.415L22 12zm-10 2a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm0 8l-4.243-4.243 1.415-1.414L12 19.172l2.828-2.829 1.415 1.414L12 22z",riSettings3Line:"M3.34 17a10.018 10.018 0 0 1-.978-2.326 3 3 0 0 0 .002-5.347A9.99 9.99 0 0 1 4.865 4.99a3 3 0 0 0 4.631-2.674 9.99 9.99 0 0 1 5.007.002 3 3 0 0 0 4.632 2.672c.579.59 1.093 1.261 1.525 2.01.433.749.757 1.53.978 2.326a3 3 0 0 0-.002 5.347 9.99 9.99 0 0 1-2.501 4.337 3 3 0 0 0-4.631 2.674 9.99 9.99 0 0 1-5.007-.002 3 3 0 0 0-4.632-2.672A10.018 10.018 0 0 1 3.34 17zm5.66.196a4.993 4.993 0 0 1 2.25 2.77c.499.047 1 .048 1.499.001A4.993 4.993 0 0 1 15 17.197a4.993 4.993 0 0 1 3.525-.565c.29-.408.54-.843.748-1.298A4.993 4.993 0 0 1 18 12c0-1.26.47-2.437 1.273-3.334a8.126 8.126 0 0 0-.75-1.298A4.993 4.993 0 0 1 15 6.804a4.993 4.993 0 0 1-2.25-2.77c-.499-.047-1-.048-1.499-.001A4.993 4.993 0 0 1 9 6.803a4.993 4.993 0 0 1-3.525.565 7.99 7.99 0 0 0-.748 1.298A4.993 4.993 0 0 1 6 12c0 1.26-.47 2.437-1.273 3.334a8.126 8.126 0 0 0 .75 1.298A4.993 4.993 0 0 1 9 17.196zM12 15a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0-2a1 1 0 1 0 0-2 1 1 0 0 0 0 2z",riListUnordered:"M8 4h13v2H8V4zM4.5 6.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm0 7a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm0 6.9a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zM8 11h13v2H8v-2zm0 7h13v2H8v-2z",riArrowLeftLine:"M7.828 11H20v2H7.828l5.364 5.364-1.414 1.414L4 12l7.778-7.778 1.414 1.414z",riArrowLeftSLine:"M10.828 12l4.95 4.95-1.414 1.414L8 12l6.364-6.364 1.414 1.414z",riInformationLine:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zM11 7h2v2h-2V7zm0 4h2v6h-2v-6z",riArrowDropDownLine:"M12 15l-4.243-4.243 1.415-1.414L12 12.172l2.828-2.829 1.415 1.414z"},Bv={collection:{blocks:{"export-result":{name:e=>{const{normalize:t}=e;return t(["Export result"])},description:e=>{const{normalize:t}=e;return t(["Export the collection result as JSON"])}}}},workflow:{category:{pinned:e=>{const{normalize:t}=e;return t(["Pinned blocks"])},general:e=>{const{normalize:t}=e;return t(["General"])},browser:e=>{const{normalize:t}=e;return t(["Browser"])},interaction:e=>{const{normalize:t}=e;return t(["Web interaction"])},conditions:e=>{const{normalize:t}=e;return t(["Control flow"])},package:e=>{const{normalize:t}=e;return t(["Packages"])},data:e=>{const{normalize:t}=e;return t(["Data"])},onlineServices:e=>{const{normalize:t}=e;return t(["Online services"])},custom:e=>{const{normalize:t}=e;return t(["Custom"])}},blocks:{base:{title:e=>{const{normalize:t}=e;return t(["Blocks"])},moveToGroup:e=>{const{normalize:t}=e;return t(["Move block to blocks group"])},selector:e=>{const{normalize:t}=e;return t(["Element selector"])},selectorOptions:e=>{const{normalize:t}=e;return t(["Selector options"])},timeout:e=>{const{normalize:t}=e;return t(["Timeout (milliseconds)"])},noPermission:e=>{const{normalize:t}=e;return t(["Automa doesn't have enough permissions to perform this action"])},grantPermission:e=>{const{normalize:t}=e;return t(["Grant permission"])},action:e=>{const{normalize:t}=e;return t(["Action"])},element:{select:e=>{const{normalize:t}=e;return t(["Select an element"])},verify:e=>{const{normalize:t}=e;return t(["Verify selector"])}},settings:{title:e=>{const{normalize:t}=e;return t(["Block settings"])},blockTimeout:{title:e=>{const{normalize:t}=e;return t(["Block execution timeout (millisecond)"])},description:e=>{const{normalize:t}=e;return t(["The maximum execution time of the block (0 to disable)"])}},line:{title:e=>{const{normalize:t}=e;return t(["Lines"])},label:e=>{const{normalize:t}=e;return t(["Label"])},animated:e=>{const{normalize:t}=e;return t(["Animated"])},select:e=>{const{normalize:t}=e;return t(["Select line"])},to:e=>{const{normalize:t,interpolate:n,named:o}=e;return t(["Line to ",n(o("name"))," block"])},lineColor:e=>{const{normalize:t}=e;return t(["Color"])}}},toggle:{enable:e=>{const{normalize:t}=e;return t(["Enable block"])},disable:e=>{const{normalize:t}=e;return t(["Disable block"])}},onError:{info:e=>{const{normalize:t}=e;return t(["These rules will apply when an error occurs on the block"])},button:e=>{const{normalize:t}=e;return t(["On error"])},title:e=>{const{normalize:t}=e;return t(["On error occurs"])},retry:e=>{const{normalize:t}=e;return t(["Retry action"])},fallbackTitle:e=>{const{normalize:t}=e;return t(["Will execute when an error occurs in the block"])},times:{name:e=>{const{normalize:t}=e;return t(["Times"])},description:e=>{const{normalize:t}=e;return t(["The number of times to retry the action"])}},interval:{name:e=>{const{normalize:t}=e;return t(["Interval"])},description:e=>{const{normalize:t}=e;return t(["The time interval to wait between each try"])},second:e=>{const{normalize:t}=e;return t(["second"])}},toDo:{error:e=>{const{normalize:t}=e;return t(["Throw error"])},continue:e=>{const{normalize:t}=e;return t(["Continue flow"])},fallback:e=>{const{normalize:t}=e;return t(["Execute fallback"])},restart:e=>{const{normalize:t}=e;return t(["Restart flow"])}},insertData:{name:e=>{const{normalize:t}=e;return t(["Insert data"])}}},table:{checkbox:e=>{const{normalize:t}=e;return t(["Insert to table"])},select:e=>{const{normalize:t}=e;return t(["Select column"])},extraRow:{checkbox:e=>{const{normalize:t}=e;return t(["Add extra row"])},placeholder:e=>{const{normalize:t}=e;return t(["Value"])},title:e=>{const{normalize:t}=e;return t(["Value of the extra row"])}}},findElement:{placeholder:e=>{const{normalize:t}=e;return t(["Find element by"])},options:{cssSelector:e=>{const{normalize:t}=e;return t(["CSS Selector"])},xpath:e=>{const{normalize:t}=e;return t(["XPath"])}}},markElement:{title:e=>{const{normalize:t}=e;return t(["An element will not be selected if have been selected before"])},text:e=>{const{normalize:t}=e;return t(["Mark element"])}},multiple:{title:e=>{const{normalize:t}=e;return t(["Select multiple element"])},text:e=>{const{normalize:t}=e;return t(["Multiple"])}},waitSelector:{title:e=>{const{normalize:t}=e;return t(["Wait for selector"])},timeout:e=>{const{normalize:t}=e;return t(["Selector timeout (ms)"])}},downloads:{onConflict:{uniquify:e=>{const{normalize:t}=e;return t(["Uniquify"])},overwrite:e=>{const{normalize:t}=e;return t(["Overwrite"])},prompt:e=>{const{normalize:t}=e;return t(["Prompt"])}}}},"wait-connections":{name:e=>{const{normalize:t}=e;return t(["Wait connections"])},description:e=>{const{normalize:t}=e;return t(["Wait for all connections before continuing to the next block"])},specificFlow:e=>{const{normalize:t}=e;return t(["Only continue a specific flow"])},selectFlow:e=>{const{normalize:t}=e;return t(["Select flow"])}},cookie:{name:e=>{const{normalize:t}=e;return t(["Cookie"])},description:e=>{const{normalize:t}=e;return t(["Get, set, or remove cookies"])},types:{get:e=>{const{normalize:t}=e;return t(["Get cookies"])},set:e=>{const{normalize:t}=e;return t(["Set cookie"])},remove:e=>{const{normalize:t}=e;return t(["Remove cookies"])},getAll:e=>{const{normalize:t}=e;return t(["Get all cookies"])}},useJson:e=>{const{normalize:t}=e;return t(["Use JSON format"])}},note:{name:e=>{const{normalize:t}=e;return t(["Note"])}},"slice-variable":{name:e=>{const{normalize:t}=e;return t(["Slice variable"])},description:e=>{const{normalize:t}=e;return t(["Extracts a section of a variable value"])},start:e=>{const{normalize:t}=e;return t(["Start index"])},end:e=>{const{normalize:t}=e;return t(["End index"])}},"workflow-state":{name:e=>{const{normalize:t}=e;return t(["Workflow state"])},description:e=>{const{normalize:t}=e;return t(["Manage workflows states"])},actions:{stop:e=>{const{normalize:t}=e;return t(["Stop workflows"])}}},"regex-variable":{name:e=>{const{normalize:t}=e;return t(["RegEx variable"])},description:e=>{const{normalize:t}=e;return t(["Matching a variable value against a regular expression"])}},"data-mapping":{source:e=>{const{normalize:t}=e;return t(["Source"])},destination:e=>{const{normalize:t}=e;return t(["Destination"])},name:e=>{const{normalize:t}=e;return t(["Data mapping"])},edit:e=>{const{normalize:t}=e;return t(["Edit data map"])},dataSource:e=>{const{normalize:t}=e;return t(["Data source"])},description:e=>{const{normalize:t}=e;return t(["Map data of a variable or table"])},addSource:e=>{const{normalize:t}=e;return t(["Add source"])},addDestination:e=>{const{normalize:t}=e;return t(["Add destination"])}},"sort-data":{name:e=>{const{normalize:t}=e;return t(["Sort data"])},description:e=>{const{normalize:t}=e;return t(["Sort the items of data"])},property:e=>{const{normalize:t}=e;return t(["Sort by the item's property"])},addProperty:e=>{const{normalize:t}=e;return t(["Add property"])}},"increase-variable":{name:e=>{const{normalize:t}=e;return t(["Increase variable"])},description:e=>{const{normalize:t}=e;return t(["Increase the value of a variable by a specific amount"])},increase:e=>{const{normalize:t}=e;return t(["Increase by"])}},notification:{name:e=>{const{normalize:t}=e;return t(["notification"])},description:e=>{const{normalize:t}=e;return t(["Display a notification"])},title:e=>{const{normalize:t}=e;return t(["Title"])},message:e=>{const{normalize:t}=e;return t(["Message"])},imageUrl:e=>{const{normalize:t}=e;return t(["Image URL (optional)"])},iconUrl:e=>{const{normalize:t}=e;return t(["Icon URL (optional)"])}},"delete-data":{name:e=>{const{normalize:t}=e;return t(["Delete data"])},description:e=>{const{normalize:t}=e;return t(["Delete table or variable data"])},from:e=>{const{normalize:t}=e;return t(["Data from"])},allColumns:e=>{const{normalize:t}=e;return t(["[All columns]"])}},"log-data":{name:e=>{const{normalize:t}=e;return t(["Get log data"])},description:e=>{const{normalize:t}=e;return t(["Get the latest log data of a workflow"])},data:e=>{const{normalize:t}=e;return t(["Log data"])}},"tab-url":{name:e=>{const{normalize:t}=e;return t(["Get tab URL"])},description:e=>{const{normalize:t}=e;return t(["Get the tab URL"])},select:e=>{const{normalize:t}=e;return t(["Select tab"])},types:{"active-tab":e=>{const{normalize:t}=e;return t(["Active tab"])},all:e=>{const{normalize:t}=e;return t(["All tabs"])}},query:{title:e=>{const{normalize:t}=e;return t(["Query"])},matchPatterns:e=>{const{normalize:t,linked:n,type:o}=e;return t([n("workflow.blocks.switch-tab.matchPattern",void 0,o)," (optional)"])},tabTitle:e=>{const{normalize:t}=e;return t(["Tab title (optional)"])}}},"reload-tab":{name:e=>{const{normalize:t}=e;return t(["Reload tab"])},description:e=>{const{normalize:t}=e;return t(["Reload the active tab"])}},"press-key":{name:e=>{const{normalize:t}=e;return t(["Press key"])},description:e=>{const{normalize:t}=e;return t(["Press a key or a combination"])},target:e=>{const{normalize:t}=e;return t(["Target element (optional)"])},key:e=>{const{normalize:t}=e;return t(["Key"])},detect:e=>{const{normalize:t}=e;return t(["Detect key"])},actions:{"press-key":e=>{const{normalize:t}=e;return t(["Press a key"])},"multiple-keys":e=>{const{normalize:t}=e;return t(["Press multiple keys"])}},"press-time":e=>{const{normalize:t}=e;return t(["Press time (milliseconds)"])}},"save-assets":{name:e=>{const{normalize:t}=e;return t(["Save assets"])},description:e=>{const{normalize:t}=e;return t(["Save assets (image, video, audio, or file) from an element or URL"])},filename:e=>{const{normalize:t}=e;return t(["Filename (optional)"])},saveDownloadIds:e=>{const{normalize:t}=e;return t(["Save items' download IDs"])},contentTypes:{title:e=>{const{normalize:t}=e;return t(["Type"])},element:e=>{const{normalize:t}=e;return t(["Media element (image, audio, or video)"])},url:e=>{const{normalize:t}=e;return t(["URL"])}}},"handle-dialog":{name:e=>{const{normalize:t}=e;return t(["Handle dialog"])},description:e=>{const{normalize:t}=e;return t(["Accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload)"])},accept:e=>{const{normalize:t}=e;return t(["Accept dialog"])},promptText:{label:e=>{const{normalize:t}=e;return t(["Prompt text (optional)"])},description:e=>{const{normalize:t}=e;return t(["The text to enter into the prompt dialog before accepting"])}}},"handle-download":{name:e=>{const{normalize:t}=e;return t(["Handle download"])},description:e=>{const{normalize:t}=e;return t(["Handle downloaded file"])},timeout:e=>{const{normalize:t}=e;return t(["Timeout (milliseconds)"])},noPermission:e=>{const{normalize:t}=e;return t(["Don't have permission to access the downloads"])},onConflict:e=>{const{normalize:t}=e;return t(["On conflict"])},waitFile:e=>{const{normalize:t}=e;return t(["Wait for the file to be downloaded"])},downloadId:e=>{const{normalize:t}=e;return t(["File download ID (optional)"])},filePath:e=>{const{normalize:t}=e;return t(["File path"])}},"insert-data":{name:e=>{const{normalize:t}=e;return t(["Insert data"])},description:e=>{const{normalize:t}=e;return t(["Insert data into table or variable"])}},clipboard:{name:e=>{const{normalize:t}=e;return t(["Clipboard"])},description:e=>{const{normalize:t}=e;return t(["Get the copied text from the clipboard"])},data:e=>{const{normalize:t}=e;return t(["Clipboard data"])},noPermission:e=>{const{normalize:t}=e;return t(["Don't have permission to access the clipboard"])},grantPermission:e=>{const{normalize:t}=e;return t(["Grant permission"])},copySelection:e=>{const{normalize:t}=e;return t(["Copy the selected text on page"])},types:{get:e=>{const{normalize:t}=e;return t(["Get clipboard data"])},insert:e=>{const{normalize:t}=e;return t(["Insert text to clipboard"])}}},"hover-element":{name:e=>{const{normalize:t}=e;return t(["Hover element"])},description:e=>{const{normalize:t}=e;return t(["Hover over an element"])}},"create-element":{name:e=>{const{normalize:t}=e;return t(["Create element"])},description:e=>{const{normalize:t}=e;return t(["Create an element and insert it into the page"])},edit:e=>{const{normalize:t}=e;return t(["Edit element"])},wrap:e=>{const{normalize:t}=e;return t(["Wrap the element inside"])},insertEl:{title:e=>{const{normalize:t}=e;return t(["Insert element"])},items:{before:e=>{const{normalize:t}=e;return t(["As first child"])},after:e=>{const{normalize:t}=e;return t(["As last child"])},"next-sibling":e=>{const{normalize:t}=e;return t(["As next sibling"])},"prev-sibling":e=>{const{normalize:t}=e;return t(["As previous sibling"])},replace:e=>{const{normalize:t}=e;return t(["Replace target element"])}}}},"upload-file":{name:e=>{const{normalize:t}=e;return t(["Upload file"])},description:e=>{const{normalize:t}=e;return t(['Upload file into <input type="file"> element'])},filePath:e=>{const{normalize:t}=e;return t(["URL or File path"])},addFile:e=>{const{normalize:t}=e;return t(["Add file"])},onlyURL:e=>{const{normalize:t}=e;return t(["Only uploading files from a URL is supported in the Firefox browser"])},requirement:e=>{const{normalize:t}=e;return t(["Read the requirements before using this block"])},noFileAccess:e=>{const{normalize:t}=e;return t(["Automa doesn't have access to files"])}},"browser-event":{name:e=>{const{normalize:t}=e;return t(["Browser event"])},description:e=>{const{normalize:t}=e;return t(["Executes the next block when the specified event is triggered"])},events:e=>{const{normalize:t}=e;return t(["Events"])},timeout:e=>{const{normalize:t}=e;return t(["Timeout (milliseconds)"])},activeTabLoaded:e=>{const{normalize:t}=e;return t(["Active tab"])},setAsActiveTab:e=>{const{normalize:t}=e;return t(["Set as active tab"])}},"blocks-group-2":{name:e=>{const{normalize:t,linked:n,type:o}=e;return t([n("workflow.blocks.blocks-group.name",void 0,o)," 2"])},description:e=>{const{normalize:t,linked:n,type:o}=e;return t([n("workflow.blocks.blocks-group.description",void 0,o)])}},"blocks-group":{name:e=>{const{normalize:t}=e;return t(["Blocks group"])},groupName:e=>{const{normalize:t}=e;return t(["Group name"])},description:e=>{const{normalize:t}=e;return t(["Grouping blocks"])},dropText:e=>{const{normalize:t}=e;return t(["Drag & drop a block here"])},cantAdd:e=>{const{normalize:t,interpolate:n,named:o}=e;return t(["Can't add \"",n(o("blockName")),'" block to the group'])}},trigger:{name:e=>{const{normalize:t}=e;return t(["Trigger"])},description:e=>{const{normalize:t}=e;return t(["Block where the workflow will start executing"])},addTime:e=>{const{normalize:t}=e;return t(["Add time"])},selectDay:e=>{const{normalize:t}=e;return t(["Select day"])},timeExist:e=>{const{normalize:t,interpolate:n,named:o}=e;return t(["You already added a trigger at ",n(o("time"))," on ",n(o("day"))])},fixedDelay:e=>{const{normalize:t}=e;return t(["Fixed delay"])},contextMenus:{noPermission:e=>{const{normalize:t}=e;return t(['This trigger requires "contextMenus" permission to be working'])},grantPermission:e=>{const{normalize:t}=e;return t(["Grant permission"])},appearIn:e=>{const{normalize:t}=e;return t(["Will appear in"])},contextName:e=>{const{normalize:t}=e;return t(["Workflow name in the context menu"])}},days:[e=>{const{normalize:t}=e;return t(["Sunday"])},e=>{const{normalize:t}=e;return t(["Monday"])},e=>{const{normalize:t}=e;return t(["Tuesday"])},e=>{const{normalize:t}=e;return t(["Wednesday"])},e=>{const{normalize:t}=e;return t(["Thursday"])},e=>{const{normalize:t}=e;return t(["Friday"])},e=>{const{normalize:t}=e;return t(["Saturday"])}],useRegex:e=>{const{normalize:t}=e;return t(["Use regex"])},shortcut:{tooltip:e=>{const{normalize:t}=e;return t(["Record shortcut"])},stopRecord:e=>{const{normalize:t}=e;return t(["Stop recording"])},checkboxTitle:e=>{const{normalize:t}=e;return t(["Execute shortcut even when you're in an input element"])},checkbox:e=>{const{normalize:t}=e;return t(["Active while in input"])},note:e=>{const{normalize:t}=e;return t(["Note: keyboard shortcut only works when you're on a webpage"])}},forms:{triggerWorkflow:e=>{const{normalize:t}=e;return t(["Trigger workflow"])},interval:e=>{const{normalize:t}=e;return t(["Interval (minutes)"])},delay:e=>{const{normalize:t}=e;return t(["Delay (minutes)"])},date:e=>{const{normalize:t}=e;return t(["Date"])},time:e=>{const{normalize:t}=e;return t(["Time"])},url:e=>{const{normalize:t}=e;return t(["URL or Regex"])},shortcut:e=>{const{normalize:t}=e;return t(["Shortcut"])},"cron-expression":e=>{const{normalize:t}=e;return t(["Cron expression"])}},"element-change":{target:e=>{const{normalize:t}=e;return t(["Target element to observe"])},optionsInfo:e=>{const{normalize:t}=e;return t(["Which element mutation will trigger the workflow"])},targetWebsite:e=>{const{normalize:t}=e;return t(["The Match Pattern of the website where the target element is (click to see more Match Pattern examples)"])},baseEl:{title:e=>{const{normalize:t}=e;return t(["Base element (optional)"])},description:e=>{const{normalize:t}=e;return t(["Automa will restart observing the target element when this element changes"])}},subtree:{title:e=>{const{normalize:t}=e;return t(["Include subtree"])},description:e=>{const{normalize:t}=e;return t(["Extend monitoring to the entire subtree of the target element"])}},childList:{title:e=>{const{normalize:t}=e;return t(["Child list"])},description:e=>{const{normalize:t}=e;return t(["Monitor the addition of new child elements or the removal of existing ones"])}},attributes:{title:e=>{const{normalize:t}=e;return t(["Attributes"])},description:e=>{const{normalize:t}=e;return t(["Watch for changes to the attribute values of the target element"])}},attributeFilter:{title:e=>{const{normalize:t}=e;return t(["Attribute filter"])},separate:e=>{const{normalize:t}=e;return t(["Use commas (,) to separate attribute names"])},description:e=>{const{normalize:t}=e;return t(["Only monitor specific attributes (leave blank to monitor all)"])}},characterData:{title:e=>{const{normalize:t}=e;return t(["Character data"])},description:e=>{const{normalize:t}=e;return t(["Monitor changes to the character data/text within the target element"])}}},items:{manual:e=>{const{normalize:t}=e;return t(["Manually"])},interval:e=>{const{normalize:t}=e;return t(["Interval"])},"cron-job":e=>{const{normalize:t}=e;return t(["Cron job"])},date:e=>{const{normalize:t}=e;return t(["On a specific date"])},"context-menu":e=>{const{normalize:t}=e;return t(["Context menu"])},"element-change":e=>{const{normalize:t}=e;return t(["On element change"])},"specific-day":e=>{const{normalize:t}=e;return t(["On a specific day"])},"visit-web":e=>{const{normalize:t}=e;return t(["When visiting a website"])},"on-startup":e=>{const{normalize:t}=e;return t(["On browser startup"])},"keyboard-shortcut":e=>{const{normalize:t}=e;return t(["Keyboard shortcut"])}}},"execute-workflow":{name:e=>{const{normalize:t}=e;return t(["Execute workflow"])},overwriteNote:e=>{const{normalize:t}=e;return t(["This will overwrite the global data of the selected workflow"])},select:e=>{const{normalize:t}=e;return t(["Select workflow"])},executeId:e=>{const{normalize:t}=e;return t(["Execute Id (optional)"])},description:e=>{const{normalize:t}=e;return t([])},insertAllVars:e=>{const{normalize:t}=e;return t(["Use all current workflow variables"])},insertVars:e=>{const{normalize:t}=e;return t(["Insert current workflow variables"])},useCommas:e=>{const{normalize:t}=e;return t(["Use commas to separate the variable name"])},insertAllGlobalData:e=>{const{normalize:t}=e;return t(["Use all current workflow globalData"])}},"google-sheets-drive":{name:e=>{const{normalize:t,linked:n,type:o}=e;return t([n("workflow.blocks.google-sheets.name",void 0,o)," (GDrive)"])},description:e=>{const{normalize:t,linked:n,type:o}=e;return t([n("workflow.blocks.google-sheets.description",void 0,o)])},connected:e=>{const{normalize:t}=e;return t(["Connected sheets"])},select:e=>{const{normalize:t}=e;return t(["Select sheet"])},connect:e=>{const{normalize:t}=e;return t(["Connect sheet"])}},"google-drive":{name:e=>{const{normalize:t}=e;return t(["Google Drive"])},description:e=>{const{normalize:t}=e;return t(["Upload files to Google Drive"])},actions:{upload:e=>{const{normalize:t}=e;return t(["Upload files"])}}},"google-sheets":{name:e=>{const{normalize:t}=e;return t(["Google Sheets"])},description:e=>{const{normalize:t}=e;return t(["Read or update Google Sheets data"])},previewData:e=>{const{normalize:t}=e;return t(["Preview data"])},firstRow:e=>{const{normalize:t}=e;return t(["Use the first row as keys"])},keysAsFirstRow:e=>{const{normalize:t}=e;return t(["Use keys as the first row"])},insertData:e=>{const{normalize:t}=e;return t(["Insert data"])},valueInputOption:e=>{const{normalize:t}=e;return t(["Value input option"])},insertDataOption:e=>{const{normalize:t}=e;return t(["Insert data option"])},rangeToSearch:e=>{const{normalize:t}=e;return t(["Range to start the search"])},dataFrom:{label:e=>{const{normalize:t}=e;return t(["Data from"])},options:{"data-columns":e=>{const{normalize:t}=e;return t(["Table"])},custom:e=>{const{normalize:t}=e;return t(["Custom"])}}},refKey:{label:e=>{const{normalize:t}=e;return t(["Reference key (optional)"])},placeholder:e=>{const{normalize:t}=e;return t(["Key name"])}},spreadsheetId:{label:e=>{const{normalize:t}=e;return t(["Spreadsheet Id"])},link:e=>{const{normalize:t}=e;return t(["See how to get spreadsheet Id"])}},range:{label:e=>{const{normalize:t}=e;return t(["Range"])},link:e=>{const{normalize:t}=e;return t(["Click to see more examples"])}},select:{get:e=>{const{normalize:t}=e;return t(["Get spreadsheet cell values"])},getRange:e=>{const{normalize:t}=e;return t(["Get spreadsheet range"])},update:e=>{const{normalize:t}=e;return t(["Update spreadsheet cell values"])},append:e=>{const{normalize:t}=e;return t(["Append spreadsheet cell values"])},clear:e=>{const{normalize:t}=e;return t(["Clear spreadsheet cell values"])},create:e=>{const{normalize:t}=e;return t(["Create a spreadsheet"])},"add-sheet":e=>{const{normalize:t}=e;return t(["Add sheet"])}}},"active-tab":{name:e=>{const{normalize:t}=e;return t(["Active tab"])},description:e=>{const{normalize:t}=e;return t(["Set the tab you're in as the active tab"])}},proxy:{name:e=>{const{normalize:t}=e;return t(["Proxy"])},description:e=>{const{normalize:t}=e;return t(["Set the proxy of the browser"])},clear:e=>{const{normalize:t}=e;return t(["Clear all proxies"])},bypass:{label:e=>{const{normalize:t}=e;return t(["Bypass list"])},note:e=>{const{normalize:t}=e;return t(["Use commas (,) to separate URL"])}}},"new-window":{name:e=>{const{normalize:t}=e;return t(["New window"])},description:e=>{const{normalize:t}=e;return t(["Create a new window"])},top:e=>{const{normalize:t}=e;return t(["Top"])},left:e=>{const{normalize:t}=e;return t(["Left"])},height:e=>{const{normalize:t}=e;return t(["Height"])},width:e=>{const{normalize:t}=e;return t(["Width"])},note:e=>{const{normalize:t}=e;return t(["Note: use 0 to disable"])},position:e=>{const{normalize:t}=e;return t(["Window position"])},size:e=>{const{normalize:t}=e;return t(["Window size"])},windowState:{placeholder:e=>{const{normalize:t}=e;return t(["Window state"])},options:{normal:e=>{const{normalize:t}=e;return t(["Normal"])},minimized:e=>{const{normalize:t}=e;return t(["Minimized"])},maximized:e=>{const{normalize:t}=e;return t(["Maximized"])},fullscreen:e=>{const{normalize:t}=e;return t(["Fullscreen"])}}},incognito:{text:e=>{const{normalize:t}=e;return t(["Set as an incognito window"])},note:e=>{const{normalize:t}=e;return t(["You must enable 'Allow in incognito' for this extension first"])}}},"go-back":{name:e=>{const{normalize:t}=e;return t(["Go back"])},description:e=>{const{normalize:t}=e;return t(["Go back to the previous page"])}},"forward-page":{name:e=>{const{normalize:t}=e;return t(["Go forward"])},description:e=>{const{normalize:t}=e;return t(["Go forward to the next page"])}},"close-tab":{name:e=>{const{normalize:t}=e;return t(["Close tab/window"])},description:e=>{const{normalize:t}=e;return t([])},url:e=>{const{normalize:t}=e;return t(["Match Patterns"])},activeTab:e=>{const{normalize:t}=e;return t(["Close active tab"])},allWindows:e=>{const{normalize:t}=e;return t(["Close all windows"])}},"event-click":{name:e=>{const{normalize:t}=e;return t(["Click element"])},description:e=>{const{normalize:t}=e;return t([])}},delay:{name:e=>{const{normalize:t}=e;return t(["Delay"])},description:e=>{const{normalize:t}=e;return t(["Add a delay before executing the next block"])},input:{title:e=>{const{normalize:t}=e;return t(["Delay in milliseconds"])},placeholder:e=>{const{normalize:t}=e;return t(["(milliseconds)"])}}},"parameter-prompt":{name:e=>{const{normalize:t}=e;return t(["Parameter Prompt"])}},"get-text":{name:e=>{const{normalize:t}=e;return t(["Get text"])},description:e=>{const{normalize:t}=e;return t(["Get text from an element"])},checkbox:e=>{const{normalize:t}=e;return t(["Insert to table"])},includeTags:e=>{const{normalize:t}=e;return t(["Include HTML tags"])},prefixText:{placeholder:e=>{const{normalize:t}=e;return t(["Text prefix"])},title:e=>{const{normalize:t}=e;return t(["Add prefix to the text"])}},suffixText:{placeholder:e=>{const{normalize:t}=e;return t(["Text suffix"])},title:e=>{const{normalize:t}=e;return t(["Add suffix to the text"])}}},"export-data":{name:e=>{const{normalize:t}=e;return t(["Export data"])},description:e=>{const{normalize:t}=e;return t(["Export workflow data"])},exportAs:e=>{const{normalize:t}=e;return t(["Export as"])},refKey:e=>{const{normalize:t}=e;return t(["Reference key"])},bomHeader:e=>{const{normalize:t}=e;return t(["Add UTF-8 BOM"])},dataToExport:{placeholder:e=>{const{normalize:t}=e;return t(["Data to export"])},options:{"data-columns":e=>{const{normalize:t}=e;return t(["Table"])},"google-sheets":e=>{const{normalize:t}=e;return t(["Google Sheets"])},variable:e=>{const{normalize:t}=e;return t(["Variable"])}}}},"element-scroll":{name:e=>{const{normalize:t}=e;return t(["Scroll element"])},description:e=>{const{normalize:t}=e;return t([])},scrollY:e=>{const{normalize:t}=e;return t(["Scroll vertical"])},scrollX:e=>{const{normalize:t}=e;return t(["Scroll horizontal"])},intoView:e=>{const{normalize:t}=e;return t(["Scroll into view"])},smooth:e=>{const{normalize:t}=e;return t(["Smooth scroll"])},incScrollX:e=>{const{normalize:t}=e;return t(["Increment horizontal scroll"])},incScrollY:e=>{const{normalize:t}=e;return t(["Increment vertical scroll"])}},"switch-tab":{name:e=>{const{normalize:t}=e;return t(["Switch tab"])},description:e=>{const{normalize:t}=e;return t(["Switch between tab"])},matchPattern:e=>{const{normalize:t}=e;return t(["Match Patterns"])},url:e=>{const{normalize:t}=e;return t(["New tab URL"])},createIfNoMatch:e=>{const{normalize:t}=e;return t(["Create if there's no match"])}},"new-tab":{name:e=>{const{normalize:t}=e;return t(["New tab"])},description:e=>{const{normalize:t}=e;return t([])},url:e=>{const{normalize:t}=e;return t(["New tab URL"])},"tab-zoom":e=>{const{normalize:t}=e;return t(["Tab zoom"])},customUserAgent:e=>{const{normalize:t}=e;return t(["Use custom User-Agent"])},activeTab:e=>{const{normalize:t}=e;return t(["Set as active tab"])},tabToGroup:e=>{const{normalize:t}=e;return t(["Add tab to a group"])},waitTabLoaded:e=>{const{normalize:t}=e;return t(["Wait until the tab is loaded"])},updatePrevTab:{title:e=>{const{normalize:t}=e;return t(["Use the previously opened new tab instead of creating a new one"])},text:e=>{const{normalize:t}=e;return t(["Update previously opened tab"])}}},link:{name:e=>{const{normalize:t}=e;return t(["Link"])},description:e=>{const{normalize:t}=e;return t(["Open link element"])},openInNewTab:e=>{const{normalize:t}=e;return t(["Open in new tab"])}},"attribute-value":{name:e=>{const{normalize:t}=e;return t(["Attribute value"])},description:e=>{const{normalize:t}=e;return t(["Get the value of an element attribute"])},forms:{name:e=>{const{normalize:t}=e;return t(["Attribute name"])},checkbox:e=>{const{normalize:t}=e;return t(["Insert to table"])},column:e=>{const{normalize:t}=e;return t(["Select column"])},value:e=>{const{normalize:t}=e;return t(["Attribute value"])},action:{get:e=>{const{normalize:t}=e;return t(["Get attribute value"])},set:e=>{const{normalize:t}=e;return t(["Set attribute value"])}},extraRow:{checkbox:e=>{const{normalize:t}=e;return t(["Add extra row"])},placeholder:e=>{const{normalize:t}=e;return t(["Value"])},title:e=>{const{normalize:t}=e;return t(["Value of the extra row"])}}}},forms:{name:e=>{const{normalize:t}=e;return t(["Forms"])},description:e=>{const{normalize:t}=e;return t([])},selected:e=>{const{normalize:t}=e;return t(["Selected"])},type:e=>{const{normalize:t}=e;return t(["Form type"])},getValue:e=>{const{normalize:t}=e;return t(["Get form value"])},"text-field":{name:e=>{const{normalize:t}=e;return t(["Text field"])},value:e=>{const{normalize:t}=e;return t(["Value"])},clearValue:e=>{const{normalize:t}=e;return t(["Clear form value"])},delay:{placeholder:e=>{const{normalize:t}=e;return t(["Delay"])},label:e=>{const{normalize:t}=e;return t(["Typing delay (millisecond)(0 to disable)"])}}},select:{name:e=>{const{normalize:t}=e;return t(["Select"])}},radio:{name:e=>{const{normalize:t}=e;return t(["Radio"])}},checkbox:{name:e=>{const{normalize:t}=e;return t(["Checkbox"])}}},"repeat-task":{name:e=>{const{normalize:t}=e;return t(["Repeat task"])},description:e=>{const{normalize:t}=e;return t([])},times:e=>{const{normalize:t}=e;return t(["times"])},repeatFrom:e=>{const{normalize:t}=e;return t(["Repeat from"])}},"javascript-code":{name:e=>{const{normalize:t}=e;return t(["JavaScript code"])},description:e=>{const{normalize:t}=e;return t(["Execute your JavaScript code in the web page"])},availabeFuncs:e=>{const{normalize:t}=e;return t(["Available functions:"])},removeAfterExec:e=>{const{normalize:t}=e;return t(["Remove after block execution"])},everyNewTab:e=>{const{normalize:t}=e;return t(["Execute in every new tab"])},context:{name:e=>{const{normalize:t}=e;return t(["Execution context"])},items:{website:e=>{const{normalize:t}=e;return t(["Active tab"])},background:e=>{const{normalize:t}=e;return t(["Background"])}}},modal:{tabs:{code:e=>{const{normalize:t}=e;return t(["JavaScript code"])},preloadScript:e=>{const{normalize:t}=e;return t(["Preload script"])}}},timeout:{placeholder:e=>{const{normalize:t}=e;return t(["Timeout (milliseconds)"])},title:e=>{const{normalize:t}=e;return t(["JavaScript code execution timeout"])}}},"trigger-event":{name:e=>{const{normalize:t}=e;return t(["Trigger event"])},description:e=>{const{normalize:t}=e;return t([])},selectEvent:e=>{const{normalize:t}=e;return t(["Select event"])}},conditions:{name:e=>{const{normalize:t}=e;return t(["Conditions"])},add:e=>{const{normalize:t}=e;return t(["Add path"])},retryConditions:e=>{const{normalize:t}=e;return t(["Retry if no conditions are met"])},description:e=>{const{normalize:t}=e;return t(["Conditional block"])},refresh:e=>{const{normalize:t}=e;return t(["Refresh condition connections"])},fallbackTitle:e=>{const{normalize:t}=e;return t(["Executes when all comparisons don't meet the requirement"])},equals:e=>{const{normalize:t}=e;return t(["Equals"])},gt:e=>{const{normalize:t}=e;return t(["Greater than"])},gte:e=>{const{normalize:t}=e;return t(["Greater than or equal"])},lt:e=>{const{normalize:t}=e;return t(["Less than"])},lte:e=>{const{normalize:t}=e;return t(["Less than or equal"])},ne:e=>{const{normalize:t}=e;return t(["Not equals"])},contains:e=>{const{normalize:t}=e;return t(["Contains"])}},"element-exists":{name:e=>{const{normalize:t}=e;return t(["Element exists"])},description:e=>{const{normalize:t}=e;return t(["Check if an element exists"])},selector:e=>{const{normalize:t}=e;return t(["Element selector"])},fallbackTitle:e=>{const{normalize:t}=e;return t(["Executes when the element doesn't exist"])},throwError:e=>{const{normalize:t}=e;return t(["Throw an error if doesn't exist"])},tryFor:{title:e=>{const{normalize:t}=e;return t(["How many times to try to check if the element exists"])},label:e=>{const{normalize:t}=e;return t(["Try for"])}},timeout:{label:e=>{const{normalize:t}=e;return t(["Timeout (milliseconds)"])},title:e=>{const{normalize:t}=e;return t(["Timeout for each try"])}}},webhook:{name:e=>{const{normalize:t}=e;return t(["HTTP request"])},description:e=>{const{normalize:t}=e;return t(["Make an HTTP Request"])},contentType:e=>{const{normalize:t}=e;return t(["Content type"])},method:e=>{const{normalize:t}=e;return t(["Request method"])},url:e=>{const{normalize:t}=e;return t(["Request URL"])},fallback:e=>{const{normalize:t}=e;return t(["Executes when the HTTP request fails"])},buttons:{header:e=>{const{normalize:t}=e;return t(["Add header"])}},timeout:{placeholder:e=>{const{normalize:t}=e;return t(["Timeout"])},title:e=>{const{normalize:t}=e;return t(["HTTP request execution timeout (ms)"])}},tabs:{headers:e=>{const{normalize:t}=e;return t(["Headers"])},body:e=>{const{normalize:t}=e;return t(["Body"])},response:e=>{const{normalize:t}=e;return t(["Response"])}}},"while-loop":{name:e=>{const{normalize:t}=e;return t(["While loop"])},description:e=>{const{normalize:t}=e;return t(["Executes blocks while the condition is met"])},editCondition:e=>{const{normalize:t}=e;return t(["Edit condition"])},fallback:e=>{const{normalize:t}=e;return t(["Executes when the condition is false"])}},"loop-elements":{name:e=>{const{normalize:t}=e;return t(["Loop elements"])},description:e=>{const{normalize:t}=e;return t(["Iterate through elements"])},loadMore:e=>{const{normalize:t}=e;return t(["Load more elements"])},scrollToBottom:e=>{const{normalize:t}=e;return t(["Scroll to bottom"])},scrollToTop:e=>{const{normalize:t}=e;return t(["Scroll to top"])},actions:{none:e=>{const{normalize:t}=e;return t(["None"])},"click-element":e=>{const{normalize:t}=e;return t(["Click an element"])},scroll:e=>{const{normalize:t}=e;return t(["Scroll down"])},"click-link":e=>{const{normalize:t}=e;return t(["Click a link"])},"scroll-up":e=>{const{normalize:t}=e;return t(["Scroll up"])}}},"loop-data":{name:e=>{const{normalize:t}=e;return t(["Loop data"])},description:e=>{const{normalize:t}=e;return t(["Iterate through a table or your custom data"])},loopId:e=>{const{normalize:t}=e;return t(["Loop ID"])},refKey:e=>{const{normalize:t}=e;return t(["Reference key"])},startIndex:e=>{const{normalize:t}=e;return t(["Start from index"])},resumeLastWorkflow:e=>{const{normalize:t}=e;return t(["Resume last workflow"])},reverse:e=>{const{normalize:t}=e;return t(["Reverse loop order"])},modal:{fileTooLarge:e=>{const{normalize:t}=e;return t(["File too large to edit"])},maxFile:e=>{const{normalize:t}=e;return t(["Max file size is 1MB"])},options:{firstRow:e=>{const{normalize:t}=e;return t(["Use the first row as keys"])}}},buttons:{clear:e=>{const{normalize:t}=e;return t(["Clear data"])},insert:e=>{const{normalize:t}=e;return t(["Insert data"])},import:e=>{const{normalize:t}=e;return t(["Import file"])}},maxLoop:{title:e=>{const{normalize:t}=e;return t(["Max number of data to loop"])},label:e=>{const{normalize:t}=e;return t(["Max data to loop (0 to disable)"])}},loopThrough:{placeholder:e=>{const{normalize:t}=e;return t(["Loop through"])},fromNumber:e=>{const{normalize:t}=e;return t(["From number"])},toNumber:e=>{const{normalize:t}=e;return t(["To number"])},options:{numbers:e=>{const{normalize:t}=e;return t(["Numbers"])},variable:e=>{const{normalize:t}=e;return t(["Variable"])},"data-columns":e=>{const{normalize:t}=e;return t(["Table"])},table:e=>{const{normalize:t}=e;return t(["Table"])},"custom-data":e=>{const{normalize:t}=e;return t(["Custom data"])},"google-sheets":e=>{const{normalize:t}=e;return t(["Google Sheets"])},elements:e=>{const{normalize:t}=e;return t(["Elements"])}}}},"loop-breakpoint":{name:e=>{const{normalize:t}=e;return t(["Loop breakpoint"])},description:e=>{const{normalize:t}=e;return t(["To indicate where the Loop Data block must stop"])}},"take-screenshot":{name:e=>{const{normalize:t}=e;return t(["Take screenshot"])},fullPage:e=>{const{normalize:t}=e;return t(["Take full page screenshot"])},description:e=>{const{normalize:t}=e;return t(["Take a screenshot of current active tab"])},imageQuality:e=>{const{normalize:t}=e;return t(["Image quality"])},saveToColumn:e=>{const{normalize:t}=e;return t(["Insert screenshot to table"])},saveToComputer:e=>{const{normalize:t}=e;return t(["Save screenshot to computer"])},types:{title:e=>{const{normalize:t}=e;return t(["Take a screenshot of"])},page:e=>{const{normalize:t}=e;return t(["A page"])},fullpage:e=>{const{normalize:t}=e;return t(["A full page"])},element:e=>{const{normalize:t}=e;return t(["An element"])}}},"switch-to":{name:e=>{const{normalize:t}=e;return t(["Switch frame"])},description:e=>{const{normalize:t}=e;return t(["Switch between the main window and an iframe"])},iframeSelector:e=>{const{normalize:t}=e;return t(["Element selector"])},windowTypes:{main:e=>{const{normalize:t}=e;return t(["Main window"])},iframe:e=>{const{normalize:t}=e;return t(["Iframe"])}}},debugMode:{title:e=>{const{normalize:t}=e;return t(["Debug mode"])},description:e=>{const{normalize:t}=e;return t(["Execute block using the Chrome DevTools Protocol"])}}}}},zv=function(e={}){const t=!ai(e.globalInjection)||e.globalInjection,n=new Map,[o,r]=function(e){const t=new se(n);var n;{const n=t.run((()=>zc(e)));if(null==n)throw bc(vc.UNEXPECTED_ERROR);return[t,n]}}(e),a=Ks("");{const e={get mode(){return"composition"},get allowComposition(){return true},async install(n,...o){if(n.__VUE_I18N_SYMBOL__=a,n.provide(n.__VUE_I18N_SYMBOL__,e),ui(o[0])){const t=o[0];e.__composerExtend=t.__composerExtend,e.__vueI18nExtend=t.__vueI18nExtend}let r=null;t&&(r=function(e,t){const n=Object.create(null);Xc.forEach((e=>{const o=Object.getOwnPropertyDescriptor(t,e);if(!o)throw bc(vc.UNEXPECTED_ERROR);const r=At(o.value)?{get:()=>o.value.value,set(e){o.value.value=e}}:{get:()=>o.get&&o.get()};Object.defineProperty(n,e,r)})),e.config.globalProperties.$i18n=n,Zc.forEach((n=>{const o=Object.getOwnPropertyDescriptor(t,n);if(!o||!o.value)throw bc(vc.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,o)}));const o=()=>{delete e.config.globalProperties.$i18n,Zc.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))};return o}(n,e.global)),qc(n,e,...o);const s=n.unmount;n.unmount=()=>{r&&r(),e.dispose(),s()}},get global(){return r},dispose(){o.stop()},__instances:n,__getInstance:function(e){return n.get(e)||null},__setInstance:function(e,t){n.set(e,t)},__deleteInstance:function(e){n.delete(e)}};return e}}({locale:"en",legacy:!1});zv.global.mergeLocaleMessage("en",{app:{name:e=>{const{normalize:t}=e;return t(["Ollana Web Scraper"])},desc:e=>{const{normalize:t}=e;return t(["Web Scraper"])},accountStr:e=>{const{normalize:t}=e;return t(["Account"])},versionString:e=>{const{normalize:t}=e;return t(["Version"])},free:e=>{const{normalize:t}=e;return t(["免费版"])},common:e=>{const{normalize:t}=e;return t(["普通版"])},pro:e=>{const{normalize:t}=e;return t(["专业版"])},about:e=>{const{normalize:t}=e;return t(["Ollana Web Scraper is a tool for extracting information from websites. It works differently from other tools because it extracts structured data from websites and saves the data in a format of your choice. With Web Scraper, you can scrape any website, and the data is yours to download and keep forever."])}},common:{"p-register":e=>{const{normalize:t}=e;return t(["Sign up"])},"p-hasaccount":e=>{const{normalize:t}=e;return t(["Don’t you have an account?"])},"p-login":e=>{const{normalize:t}=e;return t(["Sign in"])},dashboard:e=>{const{normalize:t}=e;return t(["Dashboard"])},workflow:e=>{const{normalize:t,plural:n}=e;return n([t(["Workflow"]),t(["Workflows"])])},collection:e=>{const{normalize:t,plural:n}=e;return n([t(["Collection"]),t(["Collections"])])},log:e=>{const{normalize:t,plural:n}=e;return n([t(["Log"]),t(["Logs"])])},block:e=>{const{normalize:t,plural:n}=e;return n([t(["Block"]),t(["Blocks"])])},schedule:e=>{const{normalize:t}=e;return t(["Schedule"])},folder:e=>{const{normalize:t,plural:n}=e;return n([t(["Folder"]),t(["Folders"])])},new:e=>{const{normalize:t}=e;return t(["New"])},docs:e=>{const{normalize:t}=e;return t(["Documentation"])},search:e=>{const{normalize:t}=e;return t(["Search"])},example:e=>{const{normalize:t,plural:n}=e;return n([t(["Example"]),t(["Examples"])])},import:e=>{const{normalize:t}=e;return t(["Import"])},export:e=>{const{normalize:t}=e;return t(["Export"])},rename:e=>{const{normalize:t}=e;return t(["Rename"])},execute:e=>{const{normalize:t}=e;return t(["Execute"])},delete:e=>{const{normalize:t}=e;return t(["Delete"])},share:e=>{const{normalize:t}=e;return t(["Share Setting"])},cancel:e=>{const{normalize:t}=e;return t(["Cancel"])},settings:e=>{const{normalize:t}=e;return t(["Settings"])},options:e=>{const{normalize:t}=e;return t(["Options"])},confirm:e=>{const{normalize:t}=e;return t(["Confirm"])},name:e=>{const{normalize:t}=e;return t(["Name"])},all:e=>{const{normalize:t}=e;return t(["All"])},add:e=>{const{normalize:t}=e;return t(["Add"])},save:e=>{const{normalize:t}=e;return t(["Save"])},data:e=>{const{normalize:t}=e;return t(["data"])},stop:e=>{const{normalize:t}=e;return t(["Stop"])},sheet:e=>{const{normalize:t}=e;return t(["Sheet"])},pause:e=>{const{normalize:t}=e;return t(["Pause"])},resume:e=>{const{normalize:t}=e;return t(["Resume"])},action:e=>{const{normalize:t,plural:n}=e;return n([t(["Action"]),t(["Actions"])])},packages:e=>{const{normalize:t}=e;return t(["Packages"])},storage:e=>{const{normalize:t}=e;return t(["Storage"])},editor:e=>{const{normalize:t}=e;return t(["Editor"])},running:e=>{const{normalize:t}=e;return t(["Running"])},globalData:e=>{const{normalize:t}=e;return t(["Global data"])},fileName:e=>{const{normalize:t}=e;return t(["File name"])},description:e=>{const{normalize:t}=e;return t(["Description"])},disable:e=>{const{normalize:t}=e;return t(["Disable"])},disabled:e=>{const{normalize:t}=e;return t(["Disabled"])},enable:e=>{const{normalize:t}=e;return t(["Enable"])},fallback:e=>{const{normalize:t}=e;return t(["Fallback"])},update:e=>{const{normalize:t}=e;return t(["Update"])},feature:e=>{const{normalize:t}=e;return t(["Feature"])},duplicate:e=>{const{normalize:t}=e;return t(["Duplicate"])},password:e=>{const{normalize:t}=e;return t(["Password"])},category:e=>{const{normalize:t}=e;return t(["Category"])},optional:e=>{const{normalize:t}=e;return t(["Optional"])},"0disable":e=>{const{normalize:t}=e;return t(["0 to disable"])},millisecond:e=>{const{normalize:t,plural:n}=e;return n([t(["millisecond"]),t(["milliseconds"])])}},message:{noBlock:e=>{const{normalize:t}=e;return t(["No block"])},noData:e=>{const{normalize:t}=e;return t(["No data to show"])},noTriggerBlock:e=>{const{normalize:t}=e;return t(["Can't find a trigger block"])},useDynamicData:e=>{const{normalize:t}=e;return t(["Learn how to add dynamic data"])},delete:e=>{const{normalize:t,interpolate:n,named:o}=e;return t(['Are you sure you want to delete "',n(o("name")),'"?'])},share:e=>{const{normalize:t,interpolate:n,named:o}=e;return t(['Are you sure you want to share "',n(o("name")),'"?'])},cancelShare:e=>{const{normalize:t,interpolate:n,named:o}=e;return t(['Are you sure you want to cancel share "',n(o("name")),'"?'])},empty:e=>{const{normalize:t}=e;return t(["Oops... It looks like you don't have any items"])},maxSizeExceeded:e=>{const{normalize:t}=e;return t(["The file size has exceeded the maximum allowed"])},notSaved:e=>{const{normalize:t}=e;return t(["Do you really want to leave? You have unsaved changes!"])},somethingWrong:e=>{const{normalize:t}=e;return t(["Something went wrong"])},limitExceeded:e=>{const{normalize:t}=e;return t(["You have exceeded the limit"])}},sort:{sortBy:e=>{const{normalize:t}=e;return t(["Sort by"])},name:e=>{const{normalize:t}=e;return t(["Name"])},createdAt:e=>{const{normalize:t}=e;return t(["Created date"])},updatedAt:e=>{const{normalize:t}=e;return t(["Last update"])},mostUsed:e=>{const{normalize:t}=e;return t(["Most used"])}},version:{free:e=>{const{normalize:t}=e;return t(["此功能免费版不开放，请升级版本!"])}},logStatus:{stopped:e=>{const{normalize:t}=e;return t(["stopped"])},error:e=>{const{normalize:t}=e;return t(["error"])},success:e=>{const{normalize:t}=e;return t(["success"])}}}),zv.global.mergeLocaleMessage("en",Bv);const Fv=zv;function Pv(e,t=!0){const n=document.createElement("style");return n.textContent=e,t&&n.classList.add("automa-element-selector"),n}let Mv=[],Rv=null;function Vv(t,n){const o=e(t,n.withAttributes&&n.click);return o.y+=n.top,o.x+=n.left,o}function Uv({data:e}){switch(e.type){case"automa:get-element-rect":!function(e){const[t]=document.elementsFromPoint(e.clientX-e.left,e.clientY-e.top);if(!(t&&t!==Rv||e.click))return;const n={elements:[],type:"automa:iframe-element-rect"};if(e.click){if(0===Mv.length)return;n.click=!0;const[t]=Mv,o=gy({hoveredElements:Mv,list:e.list,target:t,selectorType:e.selectorType,selectorSettings:uy(e.selectorSettings||{})});n.selector=o,n.elements=Mv.map((t=>Vv(t,e)))}else{Rv=t;let o=[];if(e.list){const n=hy(t,{onlyInList:e.onlyInList})||[];Mv=n,o=n.map((t=>Vv(t,e)))}else Mv=[t],o=[Vv(t,e)];n.elements=o}window.top.postMessage(n,"*")}(e);break;case"automa:reset-element-selector":!function(e){document.querySelectorAll("[automa-el-list]").forEach((e=>{e.removeAttribute("automa-el-list")})),e.clearCache&&(Mv=[],Rv=null)}(e);break;case"automa:find-element":!function({selector:e,selectorType:t,frameRect:n}){const o={elements:[],type:"automa:selected-elements"};try{const r=lh[t]({multiple:!0,selector:e});o.elements=Array.from(r||[]).map((e=>Vv(e,{withAttributes:!0,click:!0,...n})))}catch(e){console.error(e),o.elements=[]}window.top.postMessage(o,"*")}(e)}}!async function(){try{if(window.self===window.top){if(function(){const e=document.querySelector("#app-container.automa-element-selector");return!!e&&(e.style.display="block",!0)}())return;const e=document.createElement("div");e.setAttribute("id","app-container"),e.classList.add("automa-element-selector"),e.attachShadow({mode:"open"}),function(e){const t=document.createElement("div");t.setAttribute("id","app"),e.shadowRoot.appendChild(t),zs(Ky).provide("rootElement",e).use(Fv).use(Rs,Ov).use(Dv).mount(t)}(e),await async function(e,t=""){try{const n=await fetch(Im().runtime.getURL("/elementSelector.css")),o=Pv(await n.text()+t,!1);if(e.appendChild(o),!document.head.querySelector(".automa-element-selector")){const e="\n.automa-element-selector { direction: ltr } \n [automa-isDragging] { user-select: none } \n [automa-el-list] {outline: 2px dashed #6366f1;}",t=Pv(`@font-face { font-family: "Inter var"; font-weight: 100 900; font-display: swap; font-style: normal; font-named-instance: "Regular"; src: url("${Im().runtime.getURL("/Inter-roman-latin.var.woff2")}") format("woff2") }`+e);document.head.appendChild(t)}}catch(e){console.error(e)}}(e.shadowRoot),document.documentElement.appendChild(e)}else{const e=document.createElement("style");e.textContent="[automa-el-list] {outline: 2px dashed #6366f1;}",document.body.appendChild(e),window.addEventListener("message",Uv)}}catch(e){console.error(e)}}()})()})();