(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode(".alc-button-normal{display:inline-block;box-sizing:border-box;padding:0 16px;margin-left:16px;margin-top:8px;min-width:100px;outline:none;border:1px solid #e3e7e8;background-color:#f7f9fa;box-shadow:1px 1px 1px #fff inset;color:#3498db;text-align:center;line-height:32px}.alc-button-normal:hover{background-color:#c8d6dd;box-shadow:none;cursor:pointer}.alc-button-normal:active{color:#f7f9fa;background-color:#54b8eb}")),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
var $n=Object.defineProperty;var Wn=(M,u,c)=>u in M?$n(M,u,{enumerable:!0,configurable:!0,writable:!0,value:c}):M[u]=c;var A=(M,u,c)=>(Wn(M,typeof u!="symbol"?u+"":u,c),c);var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(M){return M&&M.__esModule&&Object.prototype.hasOwnProperty.call(M,"default")?M.default:M}var jquery={exports:{}};/*!
 * jQuery JavaScript Library v3.7.1
 * https://jquery.com/
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2023-08-28T13:37Z
 */(function(M){(function(u,c){M.exports=u.document?c(u,!0):function(d){if(!d.document)throw new Error("jQuery requires a window with a document");return c(d)}})(typeof window<"u"?window:commonjsGlobal,function(u,c){var d=[],y=Object.getPrototypeOf,w=d.slice,k=d.flat?function(e){return d.flat.call(e)}:function(e){return d.concat.apply([],e)},N=d.push,B=d.indexOf,V={},q=V.toString,Z=V.hasOwnProperty,ue=Z.toString,Y=ue.call(Object),O={},P=function(t){return typeof t=="function"&&typeof t.nodeType!="number"&&typeof t.item!="function"},ee=function(t){return t!=null&&t===t.window},R=u.document,De={type:!0,src:!0,nonce:!0,noModule:!0};function Fe(e,t,r){r=r||R;var n,o,s=r.createElement("script");if(s.text=e,t)for(n in De)o=t[n]||t.getAttribute&&t.getAttribute(n),o&&s.setAttribute(n,o);r.head.appendChild(s).parentNode.removeChild(s)}function oe(e){return e==null?e+"":typeof e=="object"||typeof e=="function"?V[q.call(e)]||"object":typeof e}var tt="3.7.1",dt=/HTML$/i,i=function(e,t){return new i.fn.init(e,t)};i.fn=i.prototype={jquery:tt,constructor:i,length:0,toArray:function(){return w.call(this)},get:function(e){return e==null?w.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=i.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return i.each(this,e)},map:function(e){return this.pushStack(i.map(this,function(t,r){return e.call(t,r,t)}))},slice:function(){return this.pushStack(w.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(i.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(i.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,r=+e+(e<0?t:0);return this.pushStack(r>=0&&r<t?[this[r]]:[])},end:function(){return this.prevObject||this.constructor()},push:N,sort:d.sort,splice:d.splice},i.extend=i.fn.extend=function(){var e,t,r,n,o,s,a=arguments[0]||{},p=1,l=arguments.length,g=!1;for(typeof a=="boolean"&&(g=a,a=arguments[p]||{},p++),typeof a!="object"&&!P(a)&&(a={}),p===l&&(a=this,p--);p<l;p++)if((e=arguments[p])!=null)for(t in e)n=e[t],!(t==="__proto__"||a===n)&&(g&&n&&(i.isPlainObject(n)||(o=Array.isArray(n)))?(r=a[t],o&&!Array.isArray(r)?s=[]:!o&&!i.isPlainObject(r)?s={}:s=r,o=!1,a[t]=i.extend(g,s,n)):n!==void 0&&(a[t]=n));return a},i.extend({expando:"jQuery"+(tt+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,r;return!e||q.call(e)!=="[object Object]"?!1:(t=y(e),t?(r=Z.call(t,"constructor")&&t.constructor,typeof r=="function"&&ue.call(r)===Y):!0)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,r){Fe(e,{nonce:t&&t.nonce},r)},each:function(e,t){var r,n=0;if(Ue(e))for(r=e.length;n<r&&t.call(e[n],n,e[n])!==!1;n++);else for(n in e)if(t.call(e[n],n,e[n])===!1)break;return e},text:function(e){var t,r="",n=0,o=e.nodeType;if(!o)for(;t=e[n++];)r+=i.text(t);return o===1||o===11?e.textContent:o===9?e.documentElement.textContent:o===3||o===4?e.nodeValue:r},makeArray:function(e,t){var r=t||[];return e!=null&&(Ue(Object(e))?i.merge(r,typeof e=="string"?[e]:e):N.call(r,e)),r},inArray:function(e,t,r){return t==null?-1:B.call(t,e,r)},isXMLDoc:function(e){var t=e&&e.namespaceURI,r=e&&(e.ownerDocument||e).documentElement;return!dt.test(t||r&&r.nodeName||"HTML")},merge:function(e,t){for(var r=+t.length,n=0,o=e.length;n<r;n++)e[o++]=t[n];return e.length=o,e},grep:function(e,t,r){for(var n,o=[],s=0,a=e.length,p=!r;s<a;s++)n=!t(e[s],s),n!==p&&o.push(e[s]);return o},map:function(e,t,r){var n,o,s=0,a=[];if(Ue(e))for(n=e.length;s<n;s++)o=t(e[s],s,r),o!=null&&a.push(o);else for(s in e)o=t(e[s],s,r),o!=null&&a.push(o);return k(a)},guid:1,support:O}),typeof Symbol=="function"&&(i.fn[Symbol.iterator]=d[Symbol.iterator]),i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){V["[object "+t+"]"]=t.toLowerCase()});function Ue(e){var t=!!e&&"length"in e&&e.length,r=oe(e);return P(e)||ee(e)?!1:r==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function re(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var ht=d.pop,gt=d.sort,yt=d.splice,K="[\\x20\\t\\r\\n\\f]",Me=new RegExp("^"+K+"+|((?:^|[^\\\\])(?:\\\\.)*)"+K+"+$","g");i.contains=function(e,t){var r=t&&t.parentNode;return e===r||!!(r&&r.nodeType===1&&(e.contains?e.contains(r):e.compareDocumentPosition&&e.compareDocumentPosition(r)&16))};var mt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function vt(e,t){return t?e==="\0"?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}i.escapeSelector=function(e){return(e+"").replace(mt,vt)};var ce=R,Ie=N;(function(){var e,t,r,n,o,s=Ie,a,p,l,g,b,C=i.expando,v=0,S=0,_=Et(),J=Et(),U=Et(),ae=Et(),se=function(f,h){return f===h&&(o=!0),0},Se="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Ae="(?:\\\\[\\da-fA-F]{1,6}"+K+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",X="\\["+K+"*("+Ae+")(?:"+K+"*([*^$|!~]?=)"+K+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Ae+"))|)"+K+"*\\]",Ve=":("+Ae+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+X+")*)|.*)\\)|)",Q=new RegExp(K+"+","g"),ie=new RegExp("^"+K+"*,"+K+"*"),ct=new RegExp("^"+K+"*([>+~]|"+K+")"+K+"*"),zt=new RegExp(K+"|>"),Ee=new RegExp(Ve),lt=new RegExp("^"+Ae+"$"),Ne={ID:new RegExp("^#("+Ae+")"),CLASS:new RegExp("^\\.("+Ae+")"),TAG:new RegExp("^("+Ae+"|[*])"),ATTR:new RegExp("^"+X),PSEUDO:new RegExp("^"+Ve),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+Se+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},Le=/^(?:input|select|textarea|button)$/i,He=/^h\d$/i,ve=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Gt=/[+~]/,je=new RegExp("\\\\[\\da-fA-F]{1,6}"+K+"?|\\\\([^\\r\\n\\f])","g"),Re=function(f,h){var m="0x"+f.slice(1)-65536;return h||(m<0?String.fromCharCode(m+65536):String.fromCharCode(m>>10|55296,m&1023|56320))},Rn=function(){qe()},Mn=kt(function(f){return f.disabled===!0&&re(f,"fieldset")},{dir:"parentNode",next:"legend"});function Ln(){try{return a.activeElement}catch{}}try{s.apply(d=w.call(ce.childNodes),ce.childNodes),d[ce.childNodes.length].nodeType}catch{s={apply:function(h,m){Ie.apply(h,w.call(m))},call:function(h){Ie.apply(h,w.call(arguments,1))}}}function te(f,h,m,x){var T,E,D,j,I,z,F,W=h&&h.ownerDocument,G=h?h.nodeType:9;if(m=m||[],typeof f!="string"||!f||G!==1&&G!==9&&G!==11)return m;if(!x&&(qe(h),h=h||a,l)){if(G!==11&&(I=ve.exec(f)))if(T=I[1]){if(G===9)if(D=h.getElementById(T)){if(D.id===T)return s.call(m,D),m}else return m;else if(W&&(D=W.getElementById(T))&&te.contains(h,D)&&D.id===T)return s.call(m,D),m}else{if(I[2])return s.apply(m,h.getElementsByTagName(f)),m;if((T=I[3])&&h.getElementsByClassName)return s.apply(m,h.getElementsByClassName(T)),m}if(!ae[f+" "]&&(!g||!g.test(f))){if(F=f,W=h,G===1&&(zt.test(f)||ct.test(f))){for(W=Gt.test(f)&&Xt(h.parentNode)||h,(W!=h||!O.scope)&&((j=h.getAttribute("id"))?j=i.escapeSelector(j):h.setAttribute("id",j=C)),z=pt(f),E=z.length;E--;)z[E]=(j?"#"+j:":scope")+" "+Nt(z[E]);F=z.join(",")}try{return s.apply(m,W.querySelectorAll(F)),m}catch{ae(f,!0)}finally{j===C&&h.removeAttribute("id")}}}return qr(f.replace(Me,"$1"),h,m,x)}function Et(){var f=[];function h(m,x){return f.push(m+" ")>t.cacheLength&&delete h[f.shift()],h[m+" "]=x}return h}function we(f){return f[C]=!0,f}function Ze(f){var h=a.createElement("fieldset");try{return!!f(h)}catch{return!1}finally{h.parentNode&&h.parentNode.removeChild(h),h=null}}function Hn(f){return function(h){return re(h,"input")&&h.type===f}}function qn(f){return function(h){return(re(h,"input")||re(h,"button"))&&h.type===f}}function Lr(f){return function(h){return"form"in h?h.parentNode&&h.disabled===!1?"label"in h?"label"in h.parentNode?h.parentNode.disabled===f:h.disabled===f:h.isDisabled===f||h.isDisabled!==!f&&Mn(h)===f:h.disabled===f:"label"in h?h.disabled===f:!1}}function Be(f){return we(function(h){return h=+h,we(function(m,x){for(var T,E=f([],m.length,h),D=E.length;D--;)m[T=E[D]]&&(m[T]=!(x[T]=m[T]))})})}function Xt(f){return f&&typeof f.getElementsByTagName<"u"&&f}function qe(f){var h,m=f?f.ownerDocument||f:ce;return m==a||m.nodeType!==9||!m.documentElement||(a=m,p=a.documentElement,l=!i.isXMLDoc(a),b=p.matches||p.webkitMatchesSelector||p.msMatchesSelector,p.msMatchesSelector&&ce!=a&&(h=a.defaultView)&&h.top!==h&&h.addEventListener("unload",Rn),O.getById=Ze(function(x){return p.appendChild(x).id=i.expando,!a.getElementsByName||!a.getElementsByName(i.expando).length}),O.disconnectedMatch=Ze(function(x){return b.call(x,"*")}),O.scope=Ze(function(){return a.querySelectorAll(":scope")}),O.cssHas=Ze(function(){try{return a.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),O.getById?(t.filter.ID=function(x){var T=x.replace(je,Re);return function(E){return E.getAttribute("id")===T}},t.find.ID=function(x,T){if(typeof T.getElementById<"u"&&l){var E=T.getElementById(x);return E?[E]:[]}}):(t.filter.ID=function(x){var T=x.replace(je,Re);return function(E){var D=typeof E.getAttributeNode<"u"&&E.getAttributeNode("id");return D&&D.value===T}},t.find.ID=function(x,T){if(typeof T.getElementById<"u"&&l){var E,D,j,I=T.getElementById(x);if(I){if(E=I.getAttributeNode("id"),E&&E.value===x)return[I];for(j=T.getElementsByName(x),D=0;I=j[D++];)if(E=I.getAttributeNode("id"),E&&E.value===x)return[I]}return[]}}),t.find.TAG=function(x,T){return typeof T.getElementsByTagName<"u"?T.getElementsByTagName(x):T.querySelectorAll(x)},t.find.CLASS=function(x,T){if(typeof T.getElementsByClassName<"u"&&l)return T.getElementsByClassName(x)},g=[],Ze(function(x){var T;p.appendChild(x).innerHTML="<a id='"+C+"' href='' disabled='disabled'></a><select id='"+C+"-\r\\' disabled='disabled'><option selected=''></option></select>",x.querySelectorAll("[selected]").length||g.push("\\["+K+"*(?:value|"+Se+")"),x.querySelectorAll("[id~="+C+"-]").length||g.push("~="),x.querySelectorAll("a#"+C+"+*").length||g.push(".#.+[+~]"),x.querySelectorAll(":checked").length||g.push(":checked"),T=a.createElement("input"),T.setAttribute("type","hidden"),x.appendChild(T).setAttribute("name","D"),p.appendChild(x).disabled=!0,x.querySelectorAll(":disabled").length!==2&&g.push(":enabled",":disabled"),T=a.createElement("input"),T.setAttribute("name",""),x.appendChild(T),x.querySelectorAll("[name='']").length||g.push("\\["+K+"*name"+K+"*="+K+`*(?:''|"")`)}),O.cssHas||g.push(":has"),g=g.length&&new RegExp(g.join("|")),se=function(x,T){if(x===T)return o=!0,0;var E=!x.compareDocumentPosition-!T.compareDocumentPosition;return E||(E=(x.ownerDocument||x)==(T.ownerDocument||T)?x.compareDocumentPosition(T):1,E&1||!O.sortDetached&&T.compareDocumentPosition(x)===E?x===a||x.ownerDocument==ce&&te.contains(ce,x)?-1:T===a||T.ownerDocument==ce&&te.contains(ce,T)?1:n?B.call(n,x)-B.call(n,T):0:E&4?-1:1)}),a}te.matches=function(f,h){return te(f,null,null,h)},te.matchesSelector=function(f,h){if(qe(f),l&&!ae[h+" "]&&(!g||!g.test(h)))try{var m=b.call(f,h);if(m||O.disconnectedMatch||f.document&&f.document.nodeType!==11)return m}catch{ae(h,!0)}return te(h,a,null,[f]).length>0},te.contains=function(f,h){return(f.ownerDocument||f)!=a&&qe(f),i.contains(f,h)},te.attr=function(f,h){(f.ownerDocument||f)!=a&&qe(f);var m=t.attrHandle[h.toLowerCase()],x=m&&Z.call(t.attrHandle,h.toLowerCase())?m(f,h,!l):void 0;return x!==void 0?x:f.getAttribute(h)},te.error=function(f){throw new Error("Syntax error, unrecognized expression: "+f)},i.uniqueSort=function(f){var h,m=[],x=0,T=0;if(o=!O.sortStable,n=!O.sortStable&&w.call(f,0),gt.call(f,se),o){for(;h=f[T++];)h===f[T]&&(x=m.push(T));for(;x--;)yt.call(f,m[x],1)}return n=null,f},i.fn.uniqueSort=function(){return this.pushStack(i.uniqueSort(w.apply(this)))},t=i.expr={cacheLength:50,createPseudo:we,match:Ne,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(f){return f[1]=f[1].replace(je,Re),f[3]=(f[3]||f[4]||f[5]||"").replace(je,Re),f[2]==="~="&&(f[3]=" "+f[3]+" "),f.slice(0,4)},CHILD:function(f){return f[1]=f[1].toLowerCase(),f[1].slice(0,3)==="nth"?(f[3]||te.error(f[0]),f[4]=+(f[4]?f[5]+(f[6]||1):2*(f[3]==="even"||f[3]==="odd")),f[5]=+(f[7]+f[8]||f[3]==="odd")):f[3]&&te.error(f[0]),f},PSEUDO:function(f){var h,m=!f[6]&&f[2];return Ne.CHILD.test(f[0])?null:(f[3]?f[2]=f[4]||f[5]||"":m&&Ee.test(m)&&(h=pt(m,!0))&&(h=m.indexOf(")",m.length-h)-m.length)&&(f[0]=f[0].slice(0,h),f[2]=m.slice(0,h)),f.slice(0,3))}},filter:{TAG:function(f){var h=f.replace(je,Re).toLowerCase();return f==="*"?function(){return!0}:function(m){return re(m,h)}},CLASS:function(f){var h=_[f+" "];return h||(h=new RegExp("(^|"+K+")"+f+"("+K+"|$)"))&&_(f,function(m){return h.test(typeof m.className=="string"&&m.className||typeof m.getAttribute<"u"&&m.getAttribute("class")||"")})},ATTR:function(f,h,m){return function(x){var T=te.attr(x,f);return T==null?h==="!=":h?(T+="",h==="="?T===m:h==="!="?T!==m:h==="^="?m&&T.indexOf(m)===0:h==="*="?m&&T.indexOf(m)>-1:h==="$="?m&&T.slice(-m.length)===m:h==="~="?(" "+T.replace(Q," ")+" ").indexOf(m)>-1:h==="|="?T===m||T.slice(0,m.length+1)===m+"-":!1):!0}},CHILD:function(f,h,m,x,T){var E=f.slice(0,3)!=="nth",D=f.slice(-4)!=="last",j=h==="of-type";return x===1&&T===0?function(I){return!!I.parentNode}:function(I,z,F){var W,G,H,ne,ye,fe=E!==D?"nextSibling":"previousSibling",xe=I.parentNode,ke=j&&I.nodeName.toLowerCase(),et=!F&&!j,le=!1;if(xe){if(E){for(;fe;){for(H=I;H=H[fe];)if(j?re(H,ke):H.nodeType===1)return!1;ye=fe=f==="only"&&!ye&&"nextSibling"}return!0}if(ye=[D?xe.firstChild:xe.lastChild],D&&et){for(G=xe[C]||(xe[C]={}),W=G[f]||[],ne=W[0]===v&&W[1],le=ne&&W[2],H=ne&&xe.childNodes[ne];H=++ne&&H&&H[fe]||(le=ne=0)||ye.pop();)if(H.nodeType===1&&++le&&H===I){G[f]=[v,ne,le];break}}else if(et&&(G=I[C]||(I[C]={}),W=G[f]||[],ne=W[0]===v&&W[1],le=ne),le===!1)for(;(H=++ne&&H&&H[fe]||(le=ne=0)||ye.pop())&&!((j?re(H,ke):H.nodeType===1)&&++le&&(et&&(G=H[C]||(H[C]={}),G[f]=[v,le]),H===I)););return le-=T,le===x||le%x===0&&le/x>=0}}},PSEUDO:function(f,h){var m,x=t.pseudos[f]||t.setFilters[f.toLowerCase()]||te.error("unsupported pseudo: "+f);return x[C]?x(h):x.length>1?(m=[f,f,"",h],t.setFilters.hasOwnProperty(f.toLowerCase())?we(function(T,E){for(var D,j=x(T,h),I=j.length;I--;)D=B.call(T,j[I]),T[D]=!(E[D]=j[I])}):function(T){return x(T,0,m)}):x}},pseudos:{not:we(function(f){var h=[],m=[],x=Kt(f.replace(Me,"$1"));return x[C]?we(function(T,E,D,j){for(var I,z=x(T,null,j,[]),F=T.length;F--;)(I=z[F])&&(T[F]=!(E[F]=I))}):function(T,E,D){return h[0]=T,x(h,null,D,m),h[0]=null,!m.pop()}}),has:we(function(f){return function(h){return te(f,h).length>0}}),contains:we(function(f){return f=f.replace(je,Re),function(h){return(h.textContent||i.text(h)).indexOf(f)>-1}}),lang:we(function(f){return lt.test(f||"")||te.error("unsupported lang: "+f),f=f.replace(je,Re).toLowerCase(),function(h){var m;do if(m=l?h.lang:h.getAttribute("xml:lang")||h.getAttribute("lang"))return m=m.toLowerCase(),m===f||m.indexOf(f+"-")===0;while((h=h.parentNode)&&h.nodeType===1);return!1}}),target:function(f){var h=u.location&&u.location.hash;return h&&h.slice(1)===f.id},root:function(f){return f===p},focus:function(f){return f===Ln()&&a.hasFocus()&&!!(f.type||f.href||~f.tabIndex)},enabled:Lr(!1),disabled:Lr(!0),checked:function(f){return re(f,"input")&&!!f.checked||re(f,"option")&&!!f.selected},selected:function(f){return f.parentNode&&f.parentNode.selectedIndex,f.selected===!0},empty:function(f){for(f=f.firstChild;f;f=f.nextSibling)if(f.nodeType<6)return!1;return!0},parent:function(f){return!t.pseudos.empty(f)},header:function(f){return He.test(f.nodeName)},input:function(f){return Le.test(f.nodeName)},button:function(f){return re(f,"input")&&f.type==="button"||re(f,"button")},text:function(f){var h;return re(f,"input")&&f.type==="text"&&((h=f.getAttribute("type"))==null||h.toLowerCase()==="text")},first:Be(function(){return[0]}),last:Be(function(f,h){return[h-1]}),eq:Be(function(f,h,m){return[m<0?m+h:m]}),even:Be(function(f,h){for(var m=0;m<h;m+=2)f.push(m);return f}),odd:Be(function(f,h){for(var m=1;m<h;m+=2)f.push(m);return f}),lt:Be(function(f,h,m){var x;for(m<0?x=m+h:m>h?x=h:x=m;--x>=0;)f.push(x);return f}),gt:Be(function(f,h,m){for(var x=m<0?m+h:m;++x<h;)f.push(x);return f})}},t.pseudos.nth=t.pseudos.eq;for(e in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=Hn(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=qn(e);function Hr(){}Hr.prototype=t.filters=t.pseudos,t.setFilters=new Hr;function pt(f,h){var m,x,T,E,D,j,I,z=J[f+" "];if(z)return h?0:z.slice(0);for(D=f,j=[],I=t.preFilter;D;){(!m||(x=ie.exec(D)))&&(x&&(D=D.slice(x[0].length)||D),j.push(T=[])),m=!1,(x=ct.exec(D))&&(m=x.shift(),T.push({value:m,type:x[0].replace(Me," ")}),D=D.slice(m.length));for(E in t.filter)(x=Ne[E].exec(D))&&(!I[E]||(x=I[E](x)))&&(m=x.shift(),T.push({value:m,type:E,matches:x}),D=D.slice(m.length));if(!m)break}return h?D.length:D?te.error(f):J(f,j).slice(0)}function Nt(f){for(var h=0,m=f.length,x="";h<m;h++)x+=f[h].value;return x}function kt(f,h,m){var x=h.dir,T=h.next,E=T||x,D=m&&E==="parentNode",j=S++;return h.first?function(I,z,F){for(;I=I[x];)if(I.nodeType===1||D)return f(I,z,F);return!1}:function(I,z,F){var W,G,H=[v,j];if(F){for(;I=I[x];)if((I.nodeType===1||D)&&f(I,z,F))return!0}else for(;I=I[x];)if(I.nodeType===1||D)if(G=I[C]||(I[C]={}),T&&re(I,T))I=I[x]||I;else{if((W=G[E])&&W[0]===v&&W[1]===j)return H[2]=W[2];if(G[E]=H,H[2]=f(I,z,F))return!0}return!1}}function Jt(f){return f.length>1?function(h,m,x){for(var T=f.length;T--;)if(!f[T](h,m,x))return!1;return!0}:f[0]}function Fn(f,h,m){for(var x=0,T=h.length;x<T;x++)te(f,h[x],m);return m}function Dt(f,h,m,x,T){for(var E,D=[],j=0,I=f.length,z=h!=null;j<I;j++)(E=f[j])&&(!m||m(E,x,T))&&(D.push(E),z&&h.push(j));return D}function Qt(f,h,m,x,T,E){return x&&!x[C]&&(x=Qt(x)),T&&!T[C]&&(T=Qt(T,E)),we(function(D,j,I,z){var F,W,G,H,ne=[],ye=[],fe=j.length,xe=D||Fn(h||"*",I.nodeType?[I]:I,[]),ke=f&&(D||!h)?Dt(xe,ne,f,I,z):xe;if(m?(H=T||(D?f:fe||x)?[]:j,m(ke,H,I,z)):H=ke,x)for(F=Dt(H,ye),x(F,[],I,z),W=F.length;W--;)(G=F[W])&&(H[ye[W]]=!(ke[ye[W]]=G));if(D){if(T||f){if(T){for(F=[],W=H.length;W--;)(G=H[W])&&F.push(ke[W]=G);T(null,H=[],F,z)}for(W=H.length;W--;)(G=H[W])&&(F=T?B.call(D,G):ne[W])>-1&&(D[F]=!(j[F]=G))}}else H=Dt(H===j?H.splice(fe,H.length):H),T?T(null,j,H,z):s.apply(j,H)})}function Yt(f){for(var h,m,x,T=f.length,E=t.relative[f[0].type],D=E||t.relative[" "],j=E?1:0,I=kt(function(W){return W===h},D,!0),z=kt(function(W){return B.call(h,W)>-1},D,!0),F=[function(W,G,H){var ne=!E&&(H||G!=r)||((h=G).nodeType?I(W,G,H):z(W,G,H));return h=null,ne}];j<T;j++)if(m=t.relative[f[j].type])F=[kt(Jt(F),m)];else{if(m=t.filter[f[j].type].apply(null,f[j].matches),m[C]){for(x=++j;x<T&&!t.relative[f[x].type];x++);return Qt(j>1&&Jt(F),j>1&&Nt(f.slice(0,j-1).concat({value:f[j-2].type===" "?"*":""})).replace(Me,"$1"),m,j<x&&Yt(f.slice(j,x)),x<T&&Yt(f=f.slice(x)),x<T&&Nt(f))}F.push(m)}return Jt(F)}function _n(f,h){var m=h.length>0,x=f.length>0,T=function(E,D,j,I,z){var F,W,G,H=0,ne="0",ye=E&&[],fe=[],xe=r,ke=E||x&&t.find.TAG("*",z),et=v+=xe==null?1:Math.random()||.1,le=ke.length;for(z&&(r=D==a||D||z);ne!==le&&(F=ke[ne])!=null;ne++){if(x&&F){for(W=0,!D&&F.ownerDocument!=a&&(qe(F),j=!l);G=f[W++];)if(G(F,D||a,j)){s.call(I,F);break}z&&(v=et)}m&&((F=!G&&F)&&H--,E&&ye.push(F))}if(H+=ne,m&&ne!==H){for(W=0;G=h[W++];)G(ye,fe,D,j);if(E){if(H>0)for(;ne--;)ye[ne]||fe[ne]||(fe[ne]=ht.call(I));fe=Dt(fe)}s.apply(I,fe),z&&!E&&fe.length>0&&H+h.length>1&&i.uniqueSort(I)}return z&&(v=et,r=xe),ye};return m?we(T):T}function Kt(f,h){var m,x=[],T=[],E=U[f+" "];if(!E){for(h||(h=pt(f)),m=h.length;m--;)E=Yt(h[m]),E[C]?x.push(E):T.push(E);E=U(f,_n(T,x)),E.selector=f}return E}function qr(f,h,m,x){var T,E,D,j,I,z=typeof f=="function"&&f,F=!x&&pt(f=z.selector||f);if(m=m||[],F.length===1){if(E=F[0]=F[0].slice(0),E.length>2&&(D=E[0]).type==="ID"&&h.nodeType===9&&l&&t.relative[E[1].type]){if(h=(t.find.ID(D.matches[0].replace(je,Re),h)||[])[0],h)z&&(h=h.parentNode);else return m;f=f.slice(E.shift().value.length)}for(T=Ne.needsContext.test(f)?0:E.length;T--&&(D=E[T],!t.relative[j=D.type]);)if((I=t.find[j])&&(x=I(D.matches[0].replace(je,Re),Gt.test(E[0].type)&&Xt(h.parentNode)||h))){if(E.splice(T,1),f=x.length&&Nt(E),!f)return s.apply(m,x),m;break}}return(z||Kt(f,F))(x,h,!l,m,!h||Gt.test(f)&&Xt(h.parentNode)||h),m}O.sortStable=C.split("").sort(se).join("")===C,qe(),O.sortDetached=Ze(function(f){return f.compareDocumentPosition(a.createElement("fieldset"))&1}),i.find=te,i.expr[":"]=i.expr.pseudos,i.unique=i.uniqueSort,te.compile=Kt,te.select=qr,te.setDocument=qe,te.tokenize=pt,te.escape=i.escapeSelector,te.getText=i.text,te.isXML=i.isXMLDoc,te.selectors=i.expr,te.support=i.support,te.uniqueSort=i.uniqueSort})();var pe=function(e,t,r){for(var n=[],o=r!==void 0;(e=e[t])&&e.nodeType!==9;)if(e.nodeType===1){if(o&&i(e).is(r))break;n.push(e)}return n},Zt=function(e,t){for(var r=[];e;e=e.nextSibling)e.nodeType===1&&e!==t&&r.push(e);return r},er=i.expr.match.needsContext,tr=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function It(e,t,r){return P(t)?i.grep(e,function(n,o){return!!t.call(n,o,n)!==r}):t.nodeType?i.grep(e,function(n){return n===t!==r}):typeof t!="string"?i.grep(e,function(n){return B.call(t,n)>-1!==r}):i.filter(t,e,r)}i.filter=function(e,t,r){var n=t[0];return r&&(e=":not("+e+")"),t.length===1&&n.nodeType===1?i.find.matchesSelector(n,e)?[n]:[]:i.find.matches(e,i.grep(t,function(o){return o.nodeType===1}))},i.fn.extend({find:function(e){var t,r,n=this.length,o=this;if(typeof e!="string")return this.pushStack(i(e).filter(function(){for(t=0;t<n;t++)if(i.contains(o[t],this))return!0}));for(r=this.pushStack([]),t=0;t<n;t++)i.find(e,o[t],r);return n>1?i.uniqueSort(r):r},filter:function(e){return this.pushStack(It(this,e||[],!1))},not:function(e){return this.pushStack(It(this,e||[],!0))},is:function(e){return!!It(this,typeof e=="string"&&er.test(e)?i(e):e||[],!1).length}});var rr,Fr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,_r=i.fn.init=function(e,t,r){var n,o;if(!e)return this;if(r=r||rr,typeof e=="string")if(e[0]==="<"&&e[e.length-1]===">"&&e.length>=3?n=[null,e,null]:n=Fr.exec(e),n&&(n[1]||!t))if(n[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:R,!0)),tr.test(n[1])&&i.isPlainObject(t))for(n in t)P(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}else return o=R.getElementById(n[2]),o&&(this[0]=o,this.length=1),this;else return!t||t.jquery?(t||r).find(e):this.constructor(t).find(e);else{if(e.nodeType)return this[0]=e,this.length=1,this;if(P(e))return r.ready!==void 0?r.ready(e):e(i)}return i.makeArray(e,this)};_r.prototype=i.fn,rr=i(R);var $r=/^(?:parents|prev(?:Until|All))/,Wr={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({has:function(e){var t=i(e,this),r=t.length;return this.filter(function(){for(var n=0;n<r;n++)if(i.contains(this,t[n]))return!0})},closest:function(e,t){var r,n=0,o=this.length,s=[],a=typeof e!="string"&&i(e);if(!er.test(e)){for(;n<o;n++)for(r=this[n];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(a?a.index(r)>-1:r.nodeType===1&&i.find.matchesSelector(r,e))){s.push(r);break}}return this.pushStack(s.length>1?i.uniqueSort(s):s)},index:function(e){return e?typeof e=="string"?B.call(i(e),this[0]):B.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(i.uniqueSort(i.merge(this.get(),i(e,t))))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}});function nr(e,t){for(;(e=e[t])&&e.nodeType!==1;);return e}i.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return pe(e,"parentNode")},parentsUntil:function(e,t,r){return pe(e,"parentNode",r)},next:function(e){return nr(e,"nextSibling")},prev:function(e){return nr(e,"previousSibling")},nextAll:function(e){return pe(e,"nextSibling")},prevAll:function(e){return pe(e,"previousSibling")},nextUntil:function(e,t,r){return pe(e,"nextSibling",r)},prevUntil:function(e,t,r){return pe(e,"previousSibling",r)},siblings:function(e){return Zt((e.parentNode||{}).firstChild,e)},children:function(e){return Zt(e.firstChild)},contents:function(e){return e.contentDocument!=null&&y(e.contentDocument)?e.contentDocument:(re(e,"template")&&(e=e.content||e),i.merge([],e.childNodes))}},function(e,t){i.fn[e]=function(r,n){var o=i.map(this,t,r);return e.slice(-5)!=="Until"&&(n=r),n&&typeof n=="string"&&(o=i.filter(n,o)),this.length>1&&(Wr[e]||i.uniqueSort(o),$r.test(e)&&o.reverse()),this.pushStack(o)}});var Te=/[^\x20\t\r\n\f]+/g;function Vr(e){var t={};return i.each(e.match(Te)||[],function(r,n){t[n]=!0}),t}i.Callbacks=function(e){e=typeof e=="string"?Vr(e):i.extend({},e);var t,r,n,o,s=[],a=[],p=-1,l=function(){for(o=o||e.once,n=t=!0;a.length;p=-1)for(r=a.shift();++p<s.length;)s[p].apply(r[0],r[1])===!1&&e.stopOnFalse&&(p=s.length,r=!1);e.memory||(r=!1),t=!1,o&&(r?s=[]:s="")},g={add:function(){return s&&(r&&!t&&(p=s.length-1,a.push(r)),function b(C){i.each(C,function(v,S){P(S)?(!e.unique||!g.has(S))&&s.push(S):S&&S.length&&oe(S)!=="string"&&b(S)})}(arguments),r&&!t&&l()),this},remove:function(){return i.each(arguments,function(b,C){for(var v;(v=i.inArray(C,s,v))>-1;)s.splice(v,1),v<=p&&p--}),this},has:function(b){return b?i.inArray(b,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return o=a=[],s=r="",this},disabled:function(){return!s},lock:function(){return o=a=[],!r&&!t&&(s=r=""),this},locked:function(){return!!o},fireWith:function(b,C){return o||(C=C||[],C=[b,C.slice?C.slice():C],a.push(C),t||l()),this},fire:function(){return g.fireWith(this,arguments),this},fired:function(){return!!n}};return g};function ze(e){return e}function xt(e){throw e}function ir(e,t,r,n){var o;try{e&&P(o=e.promise)?o.call(e).done(t).fail(r):e&&P(o=e.then)?o.call(e,t,r):t.apply(void 0,[e].slice(n))}catch(s){r.apply(void 0,[s])}}i.extend({Deferred:function(e){var t=[["notify","progress",i.Callbacks("memory"),i.Callbacks("memory"),2],["resolve","done",i.Callbacks("once memory"),i.Callbacks("once memory"),0,"resolved"],["reject","fail",i.Callbacks("once memory"),i.Callbacks("once memory"),1,"rejected"]],r="pending",n={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(s){return n.then(null,s)},pipe:function(){var s=arguments;return i.Deferred(function(a){i.each(t,function(p,l){var g=P(s[l[4]])&&s[l[4]];o[l[1]](function(){var b=g&&g.apply(this,arguments);b&&P(b.promise)?b.promise().progress(a.notify).done(a.resolve).fail(a.reject):a[l[0]+"With"](this,g?[b]:arguments)})}),s=null}).promise()},then:function(s,a,p){var l=0;function g(b,C,v,S){return function(){var _=this,J=arguments,U=function(){var se,Se;if(!(b<l)){if(se=v.apply(_,J),se===C.promise())throw new TypeError("Thenable self-resolution");Se=se&&(typeof se=="object"||typeof se=="function")&&se.then,P(Se)?S?Se.call(se,g(l,C,ze,S),g(l,C,xt,S)):(l++,Se.call(se,g(l,C,ze,S),g(l,C,xt,S),g(l,C,ze,C.notifyWith))):(v!==ze&&(_=void 0,J=[se]),(S||C.resolveWith)(_,J))}},ae=S?U:function(){try{U()}catch(se){i.Deferred.exceptionHook&&i.Deferred.exceptionHook(se,ae.error),b+1>=l&&(v!==xt&&(_=void 0,J=[se]),C.rejectWith(_,J))}};b?ae():(i.Deferred.getErrorHook?ae.error=i.Deferred.getErrorHook():i.Deferred.getStackHook&&(ae.error=i.Deferred.getStackHook()),u.setTimeout(ae))}}return i.Deferred(function(b){t[0][3].add(g(0,b,P(p)?p:ze,b.notifyWith)),t[1][3].add(g(0,b,P(s)?s:ze)),t[2][3].add(g(0,b,P(a)?a:xt))}).promise()},promise:function(s){return s!=null?i.extend(s,n):n}},o={};return i.each(t,function(s,a){var p=a[2],l=a[5];n[a[1]]=p.add,l&&p.add(function(){r=l},t[3-s][2].disable,t[3-s][3].disable,t[0][2].lock,t[0][3].lock),p.add(a[3].fire),o[a[0]]=function(){return o[a[0]+"With"](this===o?void 0:this,arguments),this},o[a[0]+"With"]=p.fireWith}),n.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,r=t,n=Array(r),o=w.call(arguments),s=i.Deferred(),a=function(p){return function(l){n[p]=this,o[p]=arguments.length>1?w.call(arguments):l,--t||s.resolveWith(n,o)}};if(t<=1&&(ir(e,s.done(a(r)).resolve,s.reject,!t),s.state()==="pending"||P(o[r]&&o[r].then)))return s.then();for(;r--;)ir(o[r],a(r),s.reject);return s.promise()}});var Br=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;i.Deferred.exceptionHook=function(e,t){u.console&&u.console.warn&&e&&Br.test(e.name)&&u.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},i.readyException=function(e){u.setTimeout(function(){throw e})};var Pt=i.Deferred();i.fn.ready=function(e){return Pt.then(e).catch(function(t){i.readyException(t)}),this},i.extend({isReady:!1,readyWait:1,ready:function(e){(e===!0?--i.readyWait:i.isReady)||(i.isReady=!0,!(e!==!0&&--i.readyWait>0)&&Pt.resolveWith(R,[i]))}}),i.ready.then=Pt.then;function bt(){R.removeEventListener("DOMContentLoaded",bt),u.removeEventListener("load",bt),i.ready()}R.readyState==="complete"||R.readyState!=="loading"&&!R.documentElement.doScroll?u.setTimeout(i.ready):(R.addEventListener("DOMContentLoaded",bt),u.addEventListener("load",bt));var Pe=function(e,t,r,n,o,s,a){var p=0,l=e.length,g=r==null;if(oe(r)==="object"){o=!0;for(p in r)Pe(e,t,p,r[p],!0,s,a)}else if(n!==void 0&&(o=!0,P(n)||(a=!0),g&&(a?(t.call(e,n),t=null):(g=t,t=function(b,C,v){return g.call(i(b),v)})),t))for(;p<l;p++)t(e[p],r,a?n:n.call(e[p],p,t(e[p],r)));return o?e:g?t.call(e):l?t(e[0],r):s},Ur=/^-ms-/,zr=/-([a-z])/g;function Gr(e,t){return t.toUpperCase()}function Ce(e){return e.replace(Ur,"ms-").replace(zr,Gr)}var rt=function(e){return e.nodeType===1||e.nodeType===9||!+e.nodeType};function nt(){this.expando=i.expando+nt.uid++}nt.uid=1,nt.prototype={cache:function(e){var t=e[this.expando];return t||(t={},rt(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,r){var n,o=this.cache(e);if(typeof t=="string")o[Ce(t)]=r;else for(n in t)o[Ce(n)]=t[n];return o},get:function(e,t){return t===void 0?this.cache(e):e[this.expando]&&e[this.expando][Ce(t)]},access:function(e,t,r){return t===void 0||t&&typeof t=="string"&&r===void 0?this.get(e,t):(this.set(e,t,r),r!==void 0?r:t)},remove:function(e,t){var r,n=e[this.expando];if(n!==void 0){if(t!==void 0)for(Array.isArray(t)?t=t.map(Ce):(t=Ce(t),t=t in n?[t]:t.match(Te)||[]),r=t.length;r--;)delete n[t[r]];(t===void 0||i.isEmptyObject(n))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return t!==void 0&&!i.isEmptyObject(t)}};var L=new nt,de=new nt,Xr=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Jr=/[A-Z]/g;function Qr(e){return e==="true"?!0:e==="false"?!1:e==="null"?null:e===+e+""?+e:Xr.test(e)?JSON.parse(e):e}function or(e,t,r){var n;if(r===void 0&&e.nodeType===1)if(n="data-"+t.replace(Jr,"-$&").toLowerCase(),r=e.getAttribute(n),typeof r=="string"){try{r=Qr(r)}catch{}de.set(e,t,r)}else r=void 0;return r}i.extend({hasData:function(e){return de.hasData(e)||L.hasData(e)},data:function(e,t,r){return de.access(e,t,r)},removeData:function(e,t){de.remove(e,t)},_data:function(e,t,r){return L.access(e,t,r)},_removeData:function(e,t){L.remove(e,t)}}),i.fn.extend({data:function(e,t){var r,n,o,s=this[0],a=s&&s.attributes;if(e===void 0){if(this.length&&(o=de.get(s),s.nodeType===1&&!L.get(s,"hasDataAttrs"))){for(r=a.length;r--;)a[r]&&(n=a[r].name,n.indexOf("data-")===0&&(n=Ce(n.slice(5)),or(s,n,o[n])));L.set(s,"hasDataAttrs",!0)}return o}return typeof e=="object"?this.each(function(){de.set(this,e)}):Pe(this,function(p){var l;if(s&&p===void 0)return l=de.get(s,e),l!==void 0||(l=or(s,e),l!==void 0)?l:void 0;this.each(function(){de.set(this,e,p)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){de.remove(this,e)})}}),i.extend({queue:function(e,t,r){var n;if(e)return t=(t||"fx")+"queue",n=L.get(e,t),r&&(!n||Array.isArray(r)?n=L.access(e,t,i.makeArray(r)):n.push(r)),n||[]},dequeue:function(e,t){t=t||"fx";var r=i.queue(e,t),n=r.length,o=r.shift(),s=i._queueHooks(e,t),a=function(){i.dequeue(e,t)};o==="inprogress"&&(o=r.shift(),n--),o&&(t==="fx"&&r.unshift("inprogress"),delete s.stop,o.call(e,a,s)),!n&&s&&s.empty.fire()},_queueHooks:function(e,t){var r=t+"queueHooks";return L.get(e,r)||L.access(e,r,{empty:i.Callbacks("once memory").add(function(){L.remove(e,[t+"queue",r])})})}}),i.fn.extend({queue:function(e,t){var r=2;return typeof e!="string"&&(t=e,e="fx",r--),arguments.length<r?i.queue(this[0],e):t===void 0?this:this.each(function(){var n=i.queue(this,e,t);i._queueHooks(this,e),e==="fx"&&n[0]!=="inprogress"&&i.dequeue(this,e)})},dequeue:function(e){return this.each(function(){i.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var r,n=1,o=i.Deferred(),s=this,a=this.length,p=function(){--n||o.resolveWith(s,[s])};for(typeof e!="string"&&(t=e,e=void 0),e=e||"fx";a--;)r=L.get(s[a],e+"queueHooks"),r&&r.empty&&(n++,r.empty.add(p));return p(),o.promise(t)}});var sr=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,it=new RegExp("^(?:([+-])=|)("+sr+")([a-z%]*)$","i"),Oe=["Top","Right","Bottom","Left"],_e=R.documentElement,Ge=function(e){return i.contains(e.ownerDocument,e)},Yr={composed:!0};_e.getRootNode&&(Ge=function(e){return i.contains(e.ownerDocument,e)||e.getRootNode(Yr)===e.ownerDocument});var wt=function(e,t){return e=t||e,e.style.display==="none"||e.style.display===""&&Ge(e)&&i.css(e,"display")==="none"};function ar(e,t,r,n){var o,s,a=20,p=n?function(){return n.cur()}:function(){return i.css(e,t,"")},l=p(),g=r&&r[3]||(i.cssNumber[t]?"":"px"),b=e.nodeType&&(i.cssNumber[t]||g!=="px"&&+l)&&it.exec(i.css(e,t));if(b&&b[3]!==g){for(l=l/2,g=g||b[3],b=+l||1;a--;)i.style(e,t,b+g),(1-s)*(1-(s=p()/l||.5))<=0&&(a=0),b=b/s;b=b*2,i.style(e,t,b+g),r=r||[]}return r&&(b=+b||+l||0,o=r[1]?b+(r[1]+1)*r[2]:+r[2],n&&(n.unit=g,n.start=b,n.end=o)),o}var ur={};function Kr(e){var t,r=e.ownerDocument,n=e.nodeName,o=ur[n];return o||(t=r.body.appendChild(r.createElement(n)),o=i.css(t,"display"),t.parentNode.removeChild(t),o==="none"&&(o="block"),ur[n]=o,o)}function Xe(e,t){for(var r,n,o=[],s=0,a=e.length;s<a;s++)n=e[s],n.style&&(r=n.style.display,t?(r==="none"&&(o[s]=L.get(n,"display")||null,o[s]||(n.style.display="")),n.style.display===""&&wt(n)&&(o[s]=Kr(n))):r!=="none"&&(o[s]="none",L.set(n,"display",r)));for(s=0;s<a;s++)o[s]!=null&&(e[s].style.display=o[s]);return e}i.fn.extend({show:function(){return Xe(this,!0)},hide:function(){return Xe(this)},toggle:function(e){return typeof e=="boolean"?e?this.show():this.hide():this.each(function(){wt(this)?i(this).show():i(this).hide()})}});var ot=/^(?:checkbox|radio)$/i,fr=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,cr=/^$|^module$|\/(?:java|ecma)script/i;(function(){var e=R.createDocumentFragment(),t=e.appendChild(R.createElement("div")),r=R.createElement("input");r.setAttribute("type","radio"),r.setAttribute("checked","checked"),r.setAttribute("name","t"),t.appendChild(r),O.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",O.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,t.innerHTML="<option></option>",O.option=!!t.lastChild})();var me={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};me.tbody=me.tfoot=me.colgroup=me.caption=me.thead,me.th=me.td,O.option||(me.optgroup=me.option=[1,"<select multiple='multiple'>","</select>"]);function he(e,t){var r;return typeof e.getElementsByTagName<"u"?r=e.getElementsByTagName(t||"*"):typeof e.querySelectorAll<"u"?r=e.querySelectorAll(t||"*"):r=[],t===void 0||t&&re(e,t)?i.merge([e],r):r}function Ot(e,t){for(var r=0,n=e.length;r<n;r++)L.set(e[r],"globalEval",!t||L.get(t[r],"globalEval"))}var Zr=/<|&#?\w+;/;function lr(e,t,r,n,o){for(var s,a,p,l,g,b,C=t.createDocumentFragment(),v=[],S=0,_=e.length;S<_;S++)if(s=e[S],s||s===0)if(oe(s)==="object")i.merge(v,s.nodeType?[s]:s);else if(!Zr.test(s))v.push(t.createTextNode(s));else{for(a=a||C.appendChild(t.createElement("div")),p=(fr.exec(s)||["",""])[1].toLowerCase(),l=me[p]||me._default,a.innerHTML=l[1]+i.htmlPrefilter(s)+l[2],b=l[0];b--;)a=a.lastChild;i.merge(v,a.childNodes),a=C.firstChild,a.textContent=""}for(C.textContent="",S=0;s=v[S++];){if(n&&i.inArray(s,n)>-1){o&&o.push(s);continue}if(g=Ge(s),a=he(C.appendChild(s),"script"),g&&Ot(a),r)for(b=0;s=a[b++];)cr.test(s.type||"")&&r.push(s)}return C}var pr=/^([^.]*)(?:\.(.+)|)/;function Je(){return!0}function Qe(){return!1}function jt(e,t,r,n,o,s){var a,p;if(typeof t=="object"){typeof r!="string"&&(n=n||r,r=void 0);for(p in t)jt(e,p,r,n,t[p],s);return e}if(n==null&&o==null?(o=r,n=r=void 0):o==null&&(typeof r=="string"?(o=n,n=void 0):(o=n,n=r,r=void 0)),o===!1)o=Qe;else if(!o)return e;return s===1&&(a=o,o=function(l){return i().off(l),a.apply(this,arguments)},o.guid=a.guid||(a.guid=i.guid++)),e.each(function(){i.event.add(this,t,o,n,r)})}i.event={global:{},add:function(e,t,r,n,o){var s,a,p,l,g,b,C,v,S,_,J,U=L.get(e);if(rt(e))for(r.handler&&(s=r,r=s.handler,o=s.selector),o&&i.find.matchesSelector(_e,o),r.guid||(r.guid=i.guid++),(l=U.events)||(l=U.events=Object.create(null)),(a=U.handle)||(a=U.handle=function(ae){return typeof i<"u"&&i.event.triggered!==ae.type?i.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(Te)||[""],g=t.length;g--;)p=pr.exec(t[g])||[],S=J=p[1],_=(p[2]||"").split(".").sort(),S&&(C=i.event.special[S]||{},S=(o?C.delegateType:C.bindType)||S,C=i.event.special[S]||{},b=i.extend({type:S,origType:J,data:n,handler:r,guid:r.guid,selector:o,needsContext:o&&i.expr.match.needsContext.test(o),namespace:_.join(".")},s),(v=l[S])||(v=l[S]=[],v.delegateCount=0,(!C.setup||C.setup.call(e,n,_,a)===!1)&&e.addEventListener&&e.addEventListener(S,a)),C.add&&(C.add.call(e,b),b.handler.guid||(b.handler.guid=r.guid)),o?v.splice(v.delegateCount++,0,b):v.push(b),i.event.global[S]=!0)},remove:function(e,t,r,n,o){var s,a,p,l,g,b,C,v,S,_,J,U=L.hasData(e)&&L.get(e);if(!(!U||!(l=U.events))){for(t=(t||"").match(Te)||[""],g=t.length;g--;){if(p=pr.exec(t[g])||[],S=J=p[1],_=(p[2]||"").split(".").sort(),!S){for(S in l)i.event.remove(e,S+t[g],r,n,!0);continue}for(C=i.event.special[S]||{},S=(n?C.delegateType:C.bindType)||S,v=l[S]||[],p=p[2]&&new RegExp("(^|\\.)"+_.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=s=v.length;s--;)b=v[s],(o||J===b.origType)&&(!r||r.guid===b.guid)&&(!p||p.test(b.namespace))&&(!n||n===b.selector||n==="**"&&b.selector)&&(v.splice(s,1),b.selector&&v.delegateCount--,C.remove&&C.remove.call(e,b));a&&!v.length&&((!C.teardown||C.teardown.call(e,_,U.handle)===!1)&&i.removeEvent(e,S,U.handle),delete l[S])}i.isEmptyObject(l)&&L.remove(e,"handle events")}},dispatch:function(e){var t,r,n,o,s,a,p=new Array(arguments.length),l=i.event.fix(e),g=(L.get(this,"events")||Object.create(null))[l.type]||[],b=i.event.special[l.type]||{};for(p[0]=l,t=1;t<arguments.length;t++)p[t]=arguments[t];if(l.delegateTarget=this,!(b.preDispatch&&b.preDispatch.call(this,l)===!1)){for(a=i.event.handlers.call(this,l,g),t=0;(o=a[t++])&&!l.isPropagationStopped();)for(l.currentTarget=o.elem,r=0;(s=o.handlers[r++])&&!l.isImmediatePropagationStopped();)(!l.rnamespace||s.namespace===!1||l.rnamespace.test(s.namespace))&&(l.handleObj=s,l.data=s.data,n=((i.event.special[s.origType]||{}).handle||s.handler).apply(o.elem,p),n!==void 0&&(l.result=n)===!1&&(l.preventDefault(),l.stopPropagation()));return b.postDispatch&&b.postDispatch.call(this,l),l.result}},handlers:function(e,t){var r,n,o,s,a,p=[],l=t.delegateCount,g=e.target;if(l&&g.nodeType&&!(e.type==="click"&&e.button>=1)){for(;g!==this;g=g.parentNode||this)if(g.nodeType===1&&!(e.type==="click"&&g.disabled===!0)){for(s=[],a={},r=0;r<l;r++)n=t[r],o=n.selector+" ",a[o]===void 0&&(a[o]=n.needsContext?i(o,this).index(g)>-1:i.find(o,this,null,[g]).length),a[o]&&s.push(n);s.length&&p.push({elem:g,handlers:s})}}return g=this,l<t.length&&p.push({elem:g,handlers:t.slice(l)}),p},addProp:function(e,t){Object.defineProperty(i.Event.prototype,e,{enumerable:!0,configurable:!0,get:P(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(r){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:r})}})},fix:function(e){return e[i.expando]?e:new i.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return ot.test(t.type)&&t.click&&re(t,"input")&&Tt(t,"click",!0),!1},trigger:function(e){var t=this||e;return ot.test(t.type)&&t.click&&re(t,"input")&&Tt(t,"click"),!0},_default:function(e){var t=e.target;return ot.test(t.type)&&t.click&&re(t,"input")&&L.get(t,"click")||re(t,"a")}},beforeunload:{postDispatch:function(e){e.result!==void 0&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}};function Tt(e,t,r){if(!r){L.get(e,t)===void 0&&i.event.add(e,t,Je);return}L.set(e,t,!1),i.event.add(e,t,{namespace:!1,handler:function(n){var o,s=L.get(this,t);if(n.isTrigger&1&&this[t]){if(s)(i.event.special[t]||{}).delegateType&&n.stopPropagation();else if(s=w.call(arguments),L.set(this,t,s),this[t](),o=L.get(this,t),L.set(this,t,!1),s!==o)return n.stopImmediatePropagation(),n.preventDefault(),o}else s&&(L.set(this,t,i.event.trigger(s[0],s.slice(1),this)),n.stopPropagation(),n.isImmediatePropagationStopped=Je)}})}i.removeEvent=function(e,t,r){e.removeEventListener&&e.removeEventListener(t,r)},i.Event=function(e,t){if(!(this instanceof i.Event))return new i.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.defaultPrevented===void 0&&e.returnValue===!1?Je:Qe,this.target=e.target&&e.target.nodeType===3?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&i.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[i.expando]=!0},i.Event.prototype={constructor:i.Event,isDefaultPrevented:Qe,isPropagationStopped:Qe,isImmediatePropagationStopped:Qe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Je,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Je,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Je,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},i.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},i.event.addProp),i.each({focus:"focusin",blur:"focusout"},function(e,t){function r(n){if(R.documentMode){var o=L.get(this,"handle"),s=i.event.fix(n);s.type=n.type==="focusin"?"focus":"blur",s.isSimulated=!0,o(n),s.target===s.currentTarget&&o(s)}else i.event.simulate(t,n.target,i.event.fix(n))}i.event.special[e]={setup:function(){var n;if(Tt(this,e,!0),R.documentMode)n=L.get(this,t),n||this.addEventListener(t,r),L.set(this,t,(n||0)+1);else return!1},trigger:function(){return Tt(this,e),!0},teardown:function(){var n;if(R.documentMode)n=L.get(this,t)-1,n?L.set(this,t,n):(this.removeEventListener(t,r),L.remove(this,t));else return!1},_default:function(n){return L.get(n.target,e)},delegateType:t},i.event.special[t]={setup:function(){var n=this.ownerDocument||this.document||this,o=R.documentMode?this:n,s=L.get(o,t);s||(R.documentMode?this.addEventListener(t,r):n.addEventListener(e,r,!0)),L.set(o,t,(s||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,o=R.documentMode?this:n,s=L.get(o,t)-1;s?L.set(o,t,s):(R.documentMode?this.removeEventListener(t,r):n.removeEventListener(e,r,!0),L.remove(o,t))}}}),i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){i.event.special[e]={delegateType:t,bindType:t,handle:function(r){var n,o=this,s=r.relatedTarget,a=r.handleObj;return(!s||s!==o&&!i.contains(o,s))&&(r.type=a.origType,n=a.handler.apply(this,arguments),r.type=t),n}}}),i.fn.extend({on:function(e,t,r,n){return jt(this,e,t,r,n)},one:function(e,t,r,n){return jt(this,e,t,r,n,1)},off:function(e,t,r){var n,o;if(e&&e.preventDefault&&e.handleObj)return n=e.handleObj,i(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if(typeof e=="object"){for(o in e)this.off(o,t,e[o]);return this}return(t===!1||typeof t=="function")&&(r=t,t=void 0),r===!1&&(r=Qe),this.each(function(){i.event.remove(this,e,r,t)})}});var en=/<script|<style|<link/i,tn=/checked\s*(?:[^=]|=\s*.checked.)/i,rn=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function dr(e,t){return re(e,"table")&&re(t.nodeType!==11?t:t.firstChild,"tr")&&i(e).children("tbody")[0]||e}function nn(e){return e.type=(e.getAttribute("type")!==null)+"/"+e.type,e}function on(e){return(e.type||"").slice(0,5)==="true/"?e.type=e.type.slice(5):e.removeAttribute("type"),e}function hr(e,t){var r,n,o,s,a,p,l;if(t.nodeType===1){if(L.hasData(e)&&(s=L.get(e),l=s.events,l)){L.remove(t,"handle events");for(o in l)for(r=0,n=l[o].length;r<n;r++)i.event.add(t,o,l[o][r])}de.hasData(e)&&(a=de.access(e),p=i.extend({},a),de.set(t,p))}}function sn(e,t){var r=t.nodeName.toLowerCase();r==="input"&&ot.test(e.type)?t.checked=e.checked:(r==="input"||r==="textarea")&&(t.defaultValue=e.defaultValue)}function Ye(e,t,r,n){t=k(t);var o,s,a,p,l,g,b=0,C=e.length,v=C-1,S=t[0],_=P(S);if(_||C>1&&typeof S=="string"&&!O.checkClone&&tn.test(S))return e.each(function(J){var U=e.eq(J);_&&(t[0]=S.call(this,J,U.html())),Ye(U,t,r,n)});if(C&&(o=lr(t,e[0].ownerDocument,!1,e,n),s=o.firstChild,o.childNodes.length===1&&(o=s),s||n)){for(a=i.map(he(o,"script"),nn),p=a.length;b<C;b++)l=o,b!==v&&(l=i.clone(l,!0,!0),p&&i.merge(a,he(l,"script"))),r.call(e[b],l,b);if(p)for(g=a[a.length-1].ownerDocument,i.map(a,on),b=0;b<p;b++)l=a[b],cr.test(l.type||"")&&!L.access(l,"globalEval")&&i.contains(g,l)&&(l.src&&(l.type||"").toLowerCase()!=="module"?i._evalUrl&&!l.noModule&&i._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},g):Fe(l.textContent.replace(rn,""),l,g))}return e}function gr(e,t,r){for(var n,o=t?i.filter(t,e):e,s=0;(n=o[s])!=null;s++)!r&&n.nodeType===1&&i.cleanData(he(n)),n.parentNode&&(r&&Ge(n)&&Ot(he(n,"script")),n.parentNode.removeChild(n));return e}i.extend({htmlPrefilter:function(e){return e},clone:function(e,t,r){var n,o,s,a,p=e.cloneNode(!0),l=Ge(e);if(!O.noCloneChecked&&(e.nodeType===1||e.nodeType===11)&&!i.isXMLDoc(e))for(a=he(p),s=he(e),n=0,o=s.length;n<o;n++)sn(s[n],a[n]);if(t)if(r)for(s=s||he(e),a=a||he(p),n=0,o=s.length;n<o;n++)hr(s[n],a[n]);else hr(e,p);return a=he(p,"script"),a.length>0&&Ot(a,!l&&he(e,"script")),p},cleanData:function(e){for(var t,r,n,o=i.event.special,s=0;(r=e[s])!==void 0;s++)if(rt(r)){if(t=r[L.expando]){if(t.events)for(n in t.events)o[n]?i.event.remove(r,n):i.removeEvent(r,n,t.handle);r[L.expando]=void 0}r[de.expando]&&(r[de.expando]=void 0)}}}),i.fn.extend({detach:function(e){return gr(this,e,!0)},remove:function(e){return gr(this,e)},text:function(e){return Pe(this,function(t){return t===void 0?i.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=t)})},null,e,arguments.length)},append:function(){return Ye(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=dr(this,e);t.appendChild(e)}})},prepend:function(){return Ye(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=dr(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Ye(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Ye(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;(e=this[t])!=null;t++)e.nodeType===1&&(i.cleanData(he(e,!1)),e.textContent="");return this},clone:function(e,t){return e=e??!1,t=t??e,this.map(function(){return i.clone(this,e,t)})},html:function(e){return Pe(this,function(t){var r=this[0]||{},n=0,o=this.length;if(t===void 0&&r.nodeType===1)return r.innerHTML;if(typeof t=="string"&&!en.test(t)&&!me[(fr.exec(t)||["",""])[1].toLowerCase()]){t=i.htmlPrefilter(t);try{for(;n<o;n++)r=this[n]||{},r.nodeType===1&&(i.cleanData(he(r,!1)),r.innerHTML=t);r=0}catch{}}r&&this.empty().append(t)},null,e,arguments.length)},replaceWith:function(){var e=[];return Ye(this,arguments,function(t){var r=this.parentNode;i.inArray(this,e)<0&&(i.cleanData(he(this)),r&&r.replaceChild(t,this))},e)}}),i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){i.fn[e]=function(r){for(var n,o=[],s=i(r),a=s.length-1,p=0;p<=a;p++)n=p===a?this:this.clone(!0),i(s[p])[t](n),N.apply(o,n.get());return this.pushStack(o)}});var Rt=new RegExp("^("+sr+")(?!px)[a-z%]+$","i"),Mt=/^--/,Ct=function(e){var t=e.ownerDocument.defaultView;return(!t||!t.opener)&&(t=u),t.getComputedStyle(e)},yr=function(e,t,r){var n,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];n=r.call(e);for(o in t)e.style[o]=s[o];return n},an=new RegExp(Oe.join("|"),"i");(function(){function e(){if(g){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",g.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",_e.appendChild(l).appendChild(g);var b=u.getComputedStyle(g);r=b.top!=="1%",p=t(b.marginLeft)===12,g.style.right="60%",s=t(b.right)===36,n=t(b.width)===36,g.style.position="absolute",o=t(g.offsetWidth/3)===12,_e.removeChild(l),g=null}}function t(b){return Math.round(parseFloat(b))}var r,n,o,s,a,p,l=R.createElement("div"),g=R.createElement("div");g.style&&(g.style.backgroundClip="content-box",g.cloneNode(!0).style.backgroundClip="",O.clearCloneStyle=g.style.backgroundClip==="content-box",i.extend(O,{boxSizingReliable:function(){return e(),n},pixelBoxStyles:function(){return e(),s},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),p},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var b,C,v,S;return a==null&&(b=R.createElement("table"),C=R.createElement("tr"),v=R.createElement("div"),b.style.cssText="position:absolute;left:-11111px;border-collapse:separate",C.style.cssText="box-sizing:content-box;border:1px solid",C.style.height="1px",v.style.height="9px",v.style.display="block",_e.appendChild(b).appendChild(C).appendChild(v),S=u.getComputedStyle(C),a=parseInt(S.height,10)+parseInt(S.borderTopWidth,10)+parseInt(S.borderBottomWidth,10)===C.offsetHeight,_e.removeChild(b)),a}}))})();function st(e,t,r){var n,o,s,a,p=Mt.test(t),l=e.style;return r=r||Ct(e),r&&(a=r.getPropertyValue(t)||r[t],p&&a&&(a=a.replace(Me,"$1")||void 0),a===""&&!Ge(e)&&(a=i.style(e,t)),!O.pixelBoxStyles()&&Rt.test(a)&&an.test(t)&&(n=l.width,o=l.minWidth,s=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=r.width,l.width=n,l.minWidth=o,l.maxWidth=s)),a!==void 0?a+"":a}function mr(e,t){return{get:function(){if(e()){delete this.get;return}return(this.get=t).apply(this,arguments)}}}var vr=["Webkit","Moz","ms"],xr=R.createElement("div").style,br={};function un(e){for(var t=e[0].toUpperCase()+e.slice(1),r=vr.length;r--;)if(e=vr[r]+t,e in xr)return e}function Lt(e){var t=i.cssProps[e]||br[e];return t||(e in xr?e:br[e]=un(e)||e)}var fn=/^(none|table(?!-c[ea]).+)/,cn={position:"absolute",visibility:"hidden",display:"block"},wr={letterSpacing:"0",fontWeight:"400"};function Tr(e,t,r){var n=it.exec(t);return n?Math.max(0,n[2]-(r||0))+(n[3]||"px"):t}function Ht(e,t,r,n,o,s){var a=t==="width"?1:0,p=0,l=0,g=0;if(r===(n?"border":"content"))return 0;for(;a<4;a+=2)r==="margin"&&(g+=i.css(e,r+Oe[a],!0,o)),n?(r==="content"&&(l-=i.css(e,"padding"+Oe[a],!0,o)),r!=="margin"&&(l-=i.css(e,"border"+Oe[a]+"Width",!0,o))):(l+=i.css(e,"padding"+Oe[a],!0,o),r!=="padding"?l+=i.css(e,"border"+Oe[a]+"Width",!0,o):p+=i.css(e,"border"+Oe[a]+"Width",!0,o));return!n&&s>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-s-l-p-.5))||0),l+g}function Cr(e,t,r){var n=Ct(e),o=!O.boxSizingReliable()||r,s=o&&i.css(e,"boxSizing",!1,n)==="border-box",a=s,p=st(e,t,n),l="offset"+t[0].toUpperCase()+t.slice(1);if(Rt.test(p)){if(!r)return p;p="auto"}return(!O.boxSizingReliable()&&s||!O.reliableTrDimensions()&&re(e,"tr")||p==="auto"||!parseFloat(p)&&i.css(e,"display",!1,n)==="inline")&&e.getClientRects().length&&(s=i.css(e,"boxSizing",!1,n)==="border-box",a=l in e,a&&(p=e[l])),p=parseFloat(p)||0,p+Ht(e,t,r||(s?"border":"content"),a,n,p)+"px"}i.extend({cssHooks:{opacity:{get:function(e,t){if(t){var r=st(e,"opacity");return r===""?"1":r}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,r,n){if(!(!e||e.nodeType===3||e.nodeType===8||!e.style)){var o,s,a,p=Ce(t),l=Mt.test(t),g=e.style;if(l||(t=Lt(p)),a=i.cssHooks[t]||i.cssHooks[p],r!==void 0){if(s=typeof r,s==="string"&&(o=it.exec(r))&&o[1]&&(r=ar(e,t,o),s="number"),r==null||r!==r)return;s==="number"&&!l&&(r+=o&&o[3]||(i.cssNumber[p]?"":"px")),!O.clearCloneStyle&&r===""&&t.indexOf("background")===0&&(g[t]="inherit"),(!a||!("set"in a)||(r=a.set(e,r,n))!==void 0)&&(l?g.setProperty(t,r):g[t]=r)}else return a&&"get"in a&&(o=a.get(e,!1,n))!==void 0?o:g[t]}},css:function(e,t,r,n){var o,s,a,p=Ce(t),l=Mt.test(t);return l||(t=Lt(p)),a=i.cssHooks[t]||i.cssHooks[p],a&&"get"in a&&(o=a.get(e,!0,r)),o===void 0&&(o=st(e,t,n)),o==="normal"&&t in wr&&(o=wr[t]),r===""||r?(s=parseFloat(o),r===!0||isFinite(s)?s||0:o):o}}),i.each(["height","width"],function(e,t){i.cssHooks[t]={get:function(r,n,o){if(n)return fn.test(i.css(r,"display"))&&(!r.getClientRects().length||!r.getBoundingClientRect().width)?yr(r,cn,function(){return Cr(r,t,o)}):Cr(r,t,o)},set:function(r,n,o){var s,a=Ct(r),p=!O.scrollboxSize()&&a.position==="absolute",l=p||o,g=l&&i.css(r,"boxSizing",!1,a)==="border-box",b=o?Ht(r,t,o,g,a):0;return g&&p&&(b-=Math.ceil(r["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-Ht(r,t,"border",!1,a)-.5)),b&&(s=it.exec(n))&&(s[3]||"px")!=="px"&&(r.style[t]=n,n=i.css(r,t)),Tr(r,n,b)}}}),i.cssHooks.marginLeft=mr(O.reliableMarginLeft,function(e,t){if(t)return(parseFloat(st(e,"marginLeft"))||e.getBoundingClientRect().left-yr(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),i.each({margin:"",padding:"",border:"Width"},function(e,t){i.cssHooks[e+t]={expand:function(r){for(var n=0,o={},s=typeof r=="string"?r.split(" "):[r];n<4;n++)o[e+Oe[n]+t]=s[n]||s[n-2]||s[0];return o}},e!=="margin"&&(i.cssHooks[e+t].set=Tr)}),i.fn.extend({css:function(e,t){return Pe(this,function(r,n,o){var s,a,p={},l=0;if(Array.isArray(n)){for(s=Ct(r),a=n.length;l<a;l++)p[n[l]]=i.css(r,n[l],!1,s);return p}return o!==void 0?i.style(r,n,o):i.css(r,n)},e,t,arguments.length>1)}});function ge(e,t,r,n,o){return new ge.prototype.init(e,t,r,n,o)}i.Tween=ge,ge.prototype={constructor:ge,init:function(e,t,r,n,o,s){this.elem=e,this.prop=r,this.easing=o||i.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=s||(i.cssNumber[r]?"":"px")},cur:function(){var e=ge.propHooks[this.prop];return e&&e.get?e.get(this):ge.propHooks._default.get(this)},run:function(e){var t,r=ge.propHooks[this.prop];return this.options.duration?this.pos=t=i.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):ge.propHooks._default.set(this),this}},ge.prototype.init.prototype=ge.prototype,ge.propHooks={_default:{get:function(e){var t;return e.elem.nodeType!==1||e.elem[e.prop]!=null&&e.elem.style[e.prop]==null?e.elem[e.prop]:(t=i.css(e.elem,e.prop,""),!t||t==="auto"?0:t)},set:function(e){i.fx.step[e.prop]?i.fx.step[e.prop](e):e.elem.nodeType===1&&(i.cssHooks[e.prop]||e.elem.style[Lt(e.prop)]!=null)?i.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},ge.propHooks.scrollTop=ge.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},i.easing={linear:function(e){return e},swing:function(e){return .5-Math.cos(e*Math.PI)/2},_default:"swing"},i.fx=ge.prototype.init,i.fx.step={};var Ke,St,ln=/^(?:toggle|show|hide)$/,pn=/queueHooks$/;function qt(){St&&(R.hidden===!1&&u.requestAnimationFrame?u.requestAnimationFrame(qt):u.setTimeout(qt,i.fx.interval),i.fx.tick())}function Sr(){return u.setTimeout(function(){Ke=void 0}),Ke=Date.now()}function At(e,t){var r,n=0,o={height:e};for(t=t?1:0;n<4;n+=2-t)r=Oe[n],o["margin"+r]=o["padding"+r]=e;return t&&(o.opacity=o.width=e),o}function Ar(e,t,r){for(var n,o=(be.tweeners[t]||[]).concat(be.tweeners["*"]),s=0,a=o.length;s<a;s++)if(n=o[s].call(r,t,e))return n}function dn(e,t,r){var n,o,s,a,p,l,g,b,C="width"in t||"height"in t,v=this,S={},_=e.style,J=e.nodeType&&wt(e),U=L.get(e,"fxshow");r.queue||(a=i._queueHooks(e,"fx"),a.unqueued==null&&(a.unqueued=0,p=a.empty.fire,a.empty.fire=function(){a.unqueued||p()}),a.unqueued++,v.always(function(){v.always(function(){a.unqueued--,i.queue(e,"fx").length||a.empty.fire()})}));for(n in t)if(o=t[n],ln.test(o)){if(delete t[n],s=s||o==="toggle",o===(J?"hide":"show"))if(o==="show"&&U&&U[n]!==void 0)J=!0;else continue;S[n]=U&&U[n]||i.style(e,n)}if(l=!i.isEmptyObject(t),!(!l&&i.isEmptyObject(S))){C&&e.nodeType===1&&(r.overflow=[_.overflow,_.overflowX,_.overflowY],g=U&&U.display,g==null&&(g=L.get(e,"display")),b=i.css(e,"display"),b==="none"&&(g?b=g:(Xe([e],!0),g=e.style.display||g,b=i.css(e,"display"),Xe([e]))),(b==="inline"||b==="inline-block"&&g!=null)&&i.css(e,"float")==="none"&&(l||(v.done(function(){_.display=g}),g==null&&(b=_.display,g=b==="none"?"":b)),_.display="inline-block")),r.overflow&&(_.overflow="hidden",v.always(function(){_.overflow=r.overflow[0],_.overflowX=r.overflow[1],_.overflowY=r.overflow[2]})),l=!1;for(n in S)l||(U?"hidden"in U&&(J=U.hidden):U=L.access(e,"fxshow",{display:g}),s&&(U.hidden=!J),J&&Xe([e],!0),v.done(function(){J||Xe([e]),L.remove(e,"fxshow");for(n in S)i.style(e,n,S[n])})),l=Ar(J?U[n]:0,n,v),n in U||(U[n]=l.start,J&&(l.end=l.start,l.start=0))}}function hn(e,t){var r,n,o,s,a;for(r in e)if(n=Ce(r),o=t[n],s=e[r],Array.isArray(s)&&(o=s[1],s=e[r]=s[0]),r!==n&&(e[n]=s,delete e[r]),a=i.cssHooks[n],a&&"expand"in a){s=a.expand(s),delete e[n];for(r in s)r in e||(e[r]=s[r],t[r]=o)}else t[n]=o}function be(e,t,r){var n,o,s=0,a=be.prefilters.length,p=i.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var C=Ke||Sr(),v=Math.max(0,g.startTime+g.duration-C),S=v/g.duration||0,_=1-S,J=0,U=g.tweens.length;J<U;J++)g.tweens[J].run(_);return p.notifyWith(e,[g,_,v]),_<1&&U?v:(U||p.notifyWith(e,[g,1,0]),p.resolveWith(e,[g]),!1)},g=p.promise({elem:e,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},r),originalProperties:t,originalOptions:r,startTime:Ke||Sr(),duration:r.duration,tweens:[],createTween:function(C,v){var S=i.Tween(e,g.opts,C,v,g.opts.specialEasing[C]||g.opts.easing);return g.tweens.push(S),S},stop:function(C){var v=0,S=C?g.tweens.length:0;if(o)return this;for(o=!0;v<S;v++)g.tweens[v].run(1);return C?(p.notifyWith(e,[g,1,0]),p.resolveWith(e,[g,C])):p.rejectWith(e,[g,C]),this}}),b=g.props;for(hn(b,g.opts.specialEasing);s<a;s++)if(n=be.prefilters[s].call(g,e,b,g.opts),n)return P(n.stop)&&(i._queueHooks(g.elem,g.opts.queue).stop=n.stop.bind(n)),n;return i.map(b,Ar,g),P(g.opts.start)&&g.opts.start.call(e,g),g.progress(g.opts.progress).done(g.opts.done,g.opts.complete).fail(g.opts.fail).always(g.opts.always),i.fx.timer(i.extend(l,{elem:e,anim:g,queue:g.opts.queue})),g}i.Animation=i.extend(be,{tweeners:{"*":[function(e,t){var r=this.createTween(e,t);return ar(r.elem,e,it.exec(t),r),r}]},tweener:function(e,t){P(e)?(t=e,e=["*"]):e=e.match(Te);for(var r,n=0,o=e.length;n<o;n++)r=e[n],be.tweeners[r]=be.tweeners[r]||[],be.tweeners[r].unshift(t)},prefilters:[dn],prefilter:function(e,t){t?be.prefilters.unshift(e):be.prefilters.push(e)}}),i.speed=function(e,t,r){var n=e&&typeof e=="object"?i.extend({},e):{complete:r||!r&&t||P(e)&&e,duration:e,easing:r&&t||t&&!P(t)&&t};return i.fx.off?n.duration=0:typeof n.duration!="number"&&(n.duration in i.fx.speeds?n.duration=i.fx.speeds[n.duration]:n.duration=i.fx.speeds._default),(n.queue==null||n.queue===!0)&&(n.queue="fx"),n.old=n.complete,n.complete=function(){P(n.old)&&n.old.call(this),n.queue&&i.dequeue(this,n.queue)},n},i.fn.extend({fadeTo:function(e,t,r,n){return this.filter(wt).css("opacity",0).show().end().animate({opacity:t},e,r,n)},animate:function(e,t,r,n){var o=i.isEmptyObject(e),s=i.speed(t,r,n),a=function(){var p=be(this,i.extend({},e),s);(o||L.get(this,"finish"))&&p.stop(!0)};return a.finish=a,o||s.queue===!1?this.each(a):this.queue(s.queue,a)},stop:function(e,t,r){var n=function(o){var s=o.stop;delete o.stop,s(r)};return typeof e!="string"&&(r=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var o=!0,s=e!=null&&e+"queueHooks",a=i.timers,p=L.get(this);if(s)p[s]&&p[s].stop&&n(p[s]);else for(s in p)p[s]&&p[s].stop&&pn.test(s)&&n(p[s]);for(s=a.length;s--;)a[s].elem===this&&(e==null||a[s].queue===e)&&(a[s].anim.stop(r),o=!1,a.splice(s,1));(o||!r)&&i.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,r=L.get(this),n=r[e+"queue"],o=r[e+"queueHooks"],s=i.timers,a=n?n.length:0;for(r.finish=!0,i.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=s.length;t--;)s[t].elem===this&&s[t].queue===e&&(s[t].anim.stop(!0),s.splice(t,1));for(t=0;t<a;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete r.finish})}}),i.each(["toggle","show","hide"],function(e,t){var r=i.fn[t];i.fn[t]=function(n,o,s){return n==null||typeof n=="boolean"?r.apply(this,arguments):this.animate(At(t,!0),n,o,s)}}),i.each({slideDown:At("show"),slideUp:At("hide"),slideToggle:At("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){i.fn[e]=function(r,n,o){return this.animate(t,r,n,o)}}),i.timers=[],i.fx.tick=function(){var e,t=0,r=i.timers;for(Ke=Date.now();t<r.length;t++)e=r[t],!e()&&r[t]===e&&r.splice(t--,1);r.length||i.fx.stop(),Ke=void 0},i.fx.timer=function(e){i.timers.push(e),i.fx.start()},i.fx.interval=13,i.fx.start=function(){St||(St=!0,qt())},i.fx.stop=function(){St=null},i.fx.speeds={slow:600,fast:200,_default:400},i.fn.delay=function(e,t){return e=i.fx&&i.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(r,n){var o=u.setTimeout(r,e);n.stop=function(){u.clearTimeout(o)}})},function(){var e=R.createElement("input"),t=R.createElement("select"),r=t.appendChild(R.createElement("option"));e.type="checkbox",O.checkOn=e.value!=="",O.optSelected=r.selected,e=R.createElement("input"),e.value="t",e.type="radio",O.radioValue=e.value==="t"}();var Er,at=i.expr.attrHandle;i.fn.extend({attr:function(e,t){return Pe(this,i.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){i.removeAttr(this,e)})}}),i.extend({attr:function(e,t,r){var n,o,s=e.nodeType;if(!(s===3||s===8||s===2)){if(typeof e.getAttribute>"u")return i.prop(e,t,r);if((s!==1||!i.isXMLDoc(e))&&(o=i.attrHooks[t.toLowerCase()]||(i.expr.match.bool.test(t)?Er:void 0)),r!==void 0){if(r===null){i.removeAttr(e,t);return}return o&&"set"in o&&(n=o.set(e,r,t))!==void 0?n:(e.setAttribute(t,r+""),r)}return o&&"get"in o&&(n=o.get(e,t))!==null?n:(n=i.find.attr(e,t),n??void 0)}},attrHooks:{type:{set:function(e,t){if(!O.radioValue&&t==="radio"&&re(e,"input")){var r=e.value;return e.setAttribute("type",t),r&&(e.value=r),t}}}},removeAttr:function(e,t){var r,n=0,o=t&&t.match(Te);if(o&&e.nodeType===1)for(;r=o[n++];)e.removeAttribute(r)}}),Er={set:function(e,t,r){return t===!1?i.removeAttr(e,r):e.setAttribute(r,r),r}},i.each(i.expr.match.bool.source.match(/\w+/g),function(e,t){var r=at[t]||i.find.attr;at[t]=function(n,o,s){var a,p,l=o.toLowerCase();return s||(p=at[l],at[l]=a,a=r(n,o,s)!=null?l:null,at[l]=p),a}});var gn=/^(?:input|select|textarea|button)$/i,yn=/^(?:a|area)$/i;i.fn.extend({prop:function(e,t){return Pe(this,i.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[i.propFix[e]||e]})}}),i.extend({prop:function(e,t,r){var n,o,s=e.nodeType;if(!(s===3||s===8||s===2))return(s!==1||!i.isXMLDoc(e))&&(t=i.propFix[t]||t,o=i.propHooks[t]),r!==void 0?o&&"set"in o&&(n=o.set(e,r,t))!==void 0?n:e[t]=r:o&&"get"in o&&(n=o.get(e,t))!==null?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=i.find.attr(e,"tabindex");return t?parseInt(t,10):gn.test(e.nodeName)||yn.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),O.optSelected||(i.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});function $e(e){var t=e.match(Te)||[];return t.join(" ")}function We(e){return e.getAttribute&&e.getAttribute("class")||""}function Ft(e){return Array.isArray(e)?e:typeof e=="string"?e.match(Te)||[]:[]}i.fn.extend({addClass:function(e){var t,r,n,o,s,a;return P(e)?this.each(function(p){i(this).addClass(e.call(this,p,We(this)))}):(t=Ft(e),t.length?this.each(function(){if(n=We(this),r=this.nodeType===1&&" "+$e(n)+" ",r){for(s=0;s<t.length;s++)o=t[s],r.indexOf(" "+o+" ")<0&&(r+=o+" ");a=$e(r),n!==a&&this.setAttribute("class",a)}}):this)},removeClass:function(e){var t,r,n,o,s,a;return P(e)?this.each(function(p){i(this).removeClass(e.call(this,p,We(this)))}):arguments.length?(t=Ft(e),t.length?this.each(function(){if(n=We(this),r=this.nodeType===1&&" "+$e(n)+" ",r){for(s=0;s<t.length;s++)for(o=t[s];r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");a=$e(r),n!==a&&this.setAttribute("class",a)}}):this):this.attr("class","")},toggleClass:function(e,t){var r,n,o,s,a=typeof e,p=a==="string"||Array.isArray(e);return P(e)?this.each(function(l){i(this).toggleClass(e.call(this,l,We(this),t),t)}):typeof t=="boolean"&&p?t?this.addClass(e):this.removeClass(e):(r=Ft(e),this.each(function(){if(p)for(s=i(this),o=0;o<r.length;o++)n=r[o],s.hasClass(n)?s.removeClass(n):s.addClass(n);else(e===void 0||a==="boolean")&&(n=We(this),n&&L.set(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||e===!1?"":L.get(this,"__className__")||""))}))},hasClass:function(e){var t,r,n=0;for(t=" "+e+" ";r=this[n++];)if(r.nodeType===1&&(" "+$e(We(r))+" ").indexOf(t)>-1)return!0;return!1}});var mn=/\r/g;i.fn.extend({val:function(e){var t,r,n,o=this[0];return arguments.length?(n=P(e),this.each(function(s){var a;this.nodeType===1&&(n?a=e.call(this,s,i(this).val()):a=e,a==null?a="":typeof a=="number"?a+="":Array.isArray(a)&&(a=i.map(a,function(p){return p==null?"":p+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],(!t||!("set"in t)||t.set(this,a,"value")===void 0)&&(this.value=a))})):o?(t=i.valHooks[o.type]||i.valHooks[o.nodeName.toLowerCase()],t&&"get"in t&&(r=t.get(o,"value"))!==void 0?r:(r=o.value,typeof r=="string"?r.replace(mn,""):r??"")):void 0}}),i.extend({valHooks:{option:{get:function(e){var t=i.find.attr(e,"value");return t??$e(i.text(e))}},select:{get:function(e){var t,r,n,o=e.options,s=e.selectedIndex,a=e.type==="select-one",p=a?null:[],l=a?s+1:o.length;for(s<0?n=l:n=a?s:0;n<l;n++)if(r=o[n],(r.selected||n===s)&&!r.disabled&&(!r.parentNode.disabled||!re(r.parentNode,"optgroup"))){if(t=i(r).val(),a)return t;p.push(t)}return p},set:function(e,t){for(var r,n,o=e.options,s=i.makeArray(t),a=o.length;a--;)n=o[a],(n.selected=i.inArray(i.valHooks.option.get(n),s)>-1)&&(r=!0);return r||(e.selectedIndex=-1),s}}}}),i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=i.inArray(i(e).val(),t)>-1}},O.checkOn||(i.valHooks[this].get=function(e){return e.getAttribute("value")===null?"on":e.value})});var ut=u.location,Nr={guid:Date.now()},_t=/\?/;i.parseXML=function(e){var t,r;if(!e||typeof e!="string")return null;try{t=new u.DOMParser().parseFromString(e,"text/xml")}catch{}return r=t&&t.getElementsByTagName("parsererror")[0],(!t||r)&&i.error("Invalid XML: "+(r?i.map(r.childNodes,function(n){return n.textContent}).join(`
`):e)),t};var kr=/^(?:focusinfocus|focusoutblur)$/,Dr=function(e){e.stopPropagation()};i.extend(i.event,{trigger:function(e,t,r,n){var o,s,a,p,l,g,b,C,v=[r||R],S=Z.call(e,"type")?e.type:e,_=Z.call(e,"namespace")?e.namespace.split("."):[];if(s=C=a=r=r||R,!(r.nodeType===3||r.nodeType===8)&&!kr.test(S+i.event.triggered)&&(S.indexOf(".")>-1&&(_=S.split("."),S=_.shift(),_.sort()),l=S.indexOf(":")<0&&"on"+S,e=e[i.expando]?e:new i.Event(S,typeof e=="object"&&e),e.isTrigger=n?2:3,e.namespace=_.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+_.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=t==null?[e]:i.makeArray(t,[e]),b=i.event.special[S]||{},!(!n&&b.trigger&&b.trigger.apply(r,t)===!1))){if(!n&&!b.noBubble&&!ee(r)){for(p=b.delegateType||S,kr.test(p+S)||(s=s.parentNode);s;s=s.parentNode)v.push(s),a=s;a===(r.ownerDocument||R)&&v.push(a.defaultView||a.parentWindow||u)}for(o=0;(s=v[o++])&&!e.isPropagationStopped();)C=s,e.type=o>1?p:b.bindType||S,g=(L.get(s,"events")||Object.create(null))[e.type]&&L.get(s,"handle"),g&&g.apply(s,t),g=l&&s[l],g&&g.apply&&rt(s)&&(e.result=g.apply(s,t),e.result===!1&&e.preventDefault());return e.type=S,!n&&!e.isDefaultPrevented()&&(!b._default||b._default.apply(v.pop(),t)===!1)&&rt(r)&&l&&P(r[S])&&!ee(r)&&(a=r[l],a&&(r[l]=null),i.event.triggered=S,e.isPropagationStopped()&&C.addEventListener(S,Dr),r[S](),e.isPropagationStopped()&&C.removeEventListener(S,Dr),i.event.triggered=void 0,a&&(r[l]=a)),e.result}},simulate:function(e,t,r){var n=i.extend(new i.Event,r,{type:e,isSimulated:!0});i.event.trigger(n,null,t)}}),i.fn.extend({trigger:function(e,t){return this.each(function(){i.event.trigger(e,t,this)})},triggerHandler:function(e,t){var r=this[0];if(r)return i.event.trigger(e,t,r,!0)}});var vn=/\[\]$/,Ir=/\r?\n/g,xn=/^(?:submit|button|image|reset|file)$/i,bn=/^(?:input|select|textarea|keygen)/i;function $t(e,t,r,n){var o;if(Array.isArray(t))i.each(t,function(s,a){r||vn.test(e)?n(e,a):$t(e+"["+(typeof a=="object"&&a!=null?s:"")+"]",a,r,n)});else if(!r&&oe(t)==="object")for(o in t)$t(e+"["+o+"]",t[o],r,n);else n(e,t)}i.param=function(e,t){var r,n=[],o=function(s,a){var p=P(a)?a():a;n[n.length]=encodeURIComponent(s)+"="+encodeURIComponent(p??"")};if(e==null)return"";if(Array.isArray(e)||e.jquery&&!i.isPlainObject(e))i.each(e,function(){o(this.name,this.value)});else for(r in e)$t(r,e[r],t,o);return n.join("&")},i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=i.prop(this,"elements");return e?i.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!i(this).is(":disabled")&&bn.test(this.nodeName)&&!xn.test(e)&&(this.checked||!ot.test(e))}).map(function(e,t){var r=i(this).val();return r==null?null:Array.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(Ir,`\r
`)}}):{name:t.name,value:r.replace(Ir,`\r
`)}}).get()}});var wn=/%20/g,Tn=/#.*$/,Cn=/([?&])_=[^&]*/,Sn=/^(.*?):[ \t]*([^\r\n]*)$/mg,An=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,En=/^(?:GET|HEAD)$/,Nn=/^\/\//,Pr={},Wt={},Or="*/".concat("*"),Vt=R.createElement("a");Vt.href=ut.href;function jr(e){return function(t,r){typeof t!="string"&&(r=t,t="*");var n,o=0,s=t.toLowerCase().match(Te)||[];if(P(r))for(;n=s[o++];)n[0]==="+"?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(r)):(e[n]=e[n]||[]).push(r)}}function Rr(e,t,r,n){var o={},s=e===Wt;function a(p){var l;return o[p]=!0,i.each(e[p]||[],function(g,b){var C=b(t,r,n);if(typeof C=="string"&&!s&&!o[C])return t.dataTypes.unshift(C),a(C),!1;if(s)return!(l=C)}),l}return a(t.dataTypes[0])||!o["*"]&&a("*")}function Bt(e,t){var r,n,o=i.ajaxSettings.flatOptions||{};for(r in t)t[r]!==void 0&&((o[r]?e:n||(n={}))[r]=t[r]);return n&&i.extend(!0,e,n),e}function kn(e,t,r){for(var n,o,s,a,p=e.contents,l=e.dataTypes;l[0]==="*";)l.shift(),n===void 0&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n){for(o in p)if(p[o]&&p[o].test(n)){l.unshift(o);break}}if(l[0]in r)s=l[0];else{for(o in r){if(!l[0]||e.converters[o+" "+l[0]]){s=o;break}a||(a=o)}s=s||a}if(s)return s!==l[0]&&l.unshift(s),r[s]}function Dn(e,t,r,n){var o,s,a,p,l,g={},b=e.dataTypes.slice();if(b[1])for(a in e.converters)g[a.toLowerCase()]=e.converters[a];for(s=b.shift();s;)if(e.responseFields[s]&&(r[e.responseFields[s]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=s,s=b.shift(),s){if(s==="*")s=l;else if(l!=="*"&&l!==s){if(a=g[l+" "+s]||g["* "+s],!a){for(o in g)if(p=o.split(" "),p[1]===s&&(a=g[l+" "+p[0]]||g["* "+p[0]],a)){a===!0?a=g[o]:g[o]!==!0&&(s=p[0],b.unshift(p[1]));break}}if(a!==!0)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(C){return{state:"parsererror",error:a?C:"No conversion from "+l+" to "+s}}}}return{state:"success",data:t}}i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ut.href,type:"GET",isLocal:An.test(ut.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Or,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Bt(Bt(e,i.ajaxSettings),t):Bt(i.ajaxSettings,e)},ajaxPrefilter:jr(Pr),ajaxTransport:jr(Wt),ajax:function(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};var r,n,o,s,a,p,l,g,b,C,v=i.ajaxSetup({},t),S=v.context||v,_=v.context&&(S.nodeType||S.jquery)?i(S):i.event,J=i.Deferred(),U=i.Callbacks("once memory"),ae=v.statusCode||{},se={},Se={},Ae="canceled",X={readyState:0,getResponseHeader:function(Q){var ie;if(l){if(!s)for(s={};ie=Sn.exec(o);)s[ie[1].toLowerCase()+" "]=(s[ie[1].toLowerCase()+" "]||[]).concat(ie[2]);ie=s[Q.toLowerCase()+" "]}return ie==null?null:ie.join(", ")},getAllResponseHeaders:function(){return l?o:null},setRequestHeader:function(Q,ie){return l==null&&(Q=Se[Q.toLowerCase()]=Se[Q.toLowerCase()]||Q,se[Q]=ie),this},overrideMimeType:function(Q){return l==null&&(v.mimeType=Q),this},statusCode:function(Q){var ie;if(Q)if(l)X.always(Q[X.status]);else for(ie in Q)ae[ie]=[ae[ie],Q[ie]];return this},abort:function(Q){var ie=Q||Ae;return r&&r.abort(ie),Ve(0,ie),this}};if(J.promise(X),v.url=((e||v.url||ut.href)+"").replace(Nn,ut.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(Te)||[""],v.crossDomain==null){p=R.createElement("a");try{p.href=v.url,p.href=p.href,v.crossDomain=Vt.protocol+"//"+Vt.host!=p.protocol+"//"+p.host}catch{v.crossDomain=!0}}if(v.data&&v.processData&&typeof v.data!="string"&&(v.data=i.param(v.data,v.traditional)),Rr(Pr,v,t,X),l)return X;g=i.event&&v.global,g&&i.active++===0&&i.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!En.test(v.type),n=v.url.replace(Tn,""),v.hasContent?v.data&&v.processData&&(v.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(v.data=v.data.replace(wn,"+")):(C=v.url.slice(n.length),v.data&&(v.processData||typeof v.data=="string")&&(n+=(_t.test(n)?"&":"?")+v.data,delete v.data),v.cache===!1&&(n=n.replace(Cn,"$1"),C=(_t.test(n)?"&":"?")+"_="+Nr.guid+++C),v.url=n+C),v.ifModified&&(i.lastModified[n]&&X.setRequestHeader("If-Modified-Since",i.lastModified[n]),i.etag[n]&&X.setRequestHeader("If-None-Match",i.etag[n])),(v.data&&v.hasContent&&v.contentType!==!1||t.contentType)&&X.setRequestHeader("Content-Type",v.contentType),X.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+(v.dataTypes[0]!=="*"?", "+Or+"; q=0.01":""):v.accepts["*"]);for(b in v.headers)X.setRequestHeader(b,v.headers[b]);if(v.beforeSend&&(v.beforeSend.call(S,X,v)===!1||l))return X.abort();if(Ae="abort",U.add(v.complete),X.done(v.success),X.fail(v.error),r=Rr(Wt,v,t,X),!r)Ve(-1,"No Transport");else{if(X.readyState=1,g&&_.trigger("ajaxSend",[X,v]),l)return X;v.async&&v.timeout>0&&(a=u.setTimeout(function(){X.abort("timeout")},v.timeout));try{l=!1,r.send(se,Ve)}catch(Q){if(l)throw Q;Ve(-1,Q)}}function Ve(Q,ie,ct,zt){var Ee,lt,Ne,Le,He,ve=ie;l||(l=!0,a&&u.clearTimeout(a),r=void 0,o=zt||"",X.readyState=Q>0?4:0,Ee=Q>=200&&Q<300||Q===304,ct&&(Le=kn(v,X,ct)),!Ee&&i.inArray("script",v.dataTypes)>-1&&i.inArray("json",v.dataTypes)<0&&(v.converters["text script"]=function(){}),Le=Dn(v,Le,X,Ee),Ee?(v.ifModified&&(He=X.getResponseHeader("Last-Modified"),He&&(i.lastModified[n]=He),He=X.getResponseHeader("etag"),He&&(i.etag[n]=He)),Q===204||v.type==="HEAD"?ve="nocontent":Q===304?ve="notmodified":(ve=Le.state,lt=Le.data,Ne=Le.error,Ee=!Ne)):(Ne=ve,(Q||!ve)&&(ve="error",Q<0&&(Q=0))),X.status=Q,X.statusText=(ie||ve)+"",Ee?J.resolveWith(S,[lt,ve,X]):J.rejectWith(S,[X,ve,Ne]),X.statusCode(ae),ae=void 0,g&&_.trigger(Ee?"ajaxSuccess":"ajaxError",[X,v,Ee?lt:Ne]),U.fireWith(S,[X,ve]),g&&(_.trigger("ajaxComplete",[X,v]),--i.active||i.event.trigger("ajaxStop")))}return X},getJSON:function(e,t,r){return i.get(e,t,r,"json")},getScript:function(e,t){return i.get(e,void 0,t,"script")}}),i.each(["get","post"],function(e,t){i[t]=function(r,n,o,s){return P(n)&&(s=s||o,o=n,n=void 0),i.ajax(i.extend({url:r,type:t,dataType:s,data:n,success:o},i.isPlainObject(r)&&r))}}),i.ajaxPrefilter(function(e){var t;for(t in e.headers)t.toLowerCase()==="content-type"&&(e.contentType=e.headers[t]||"")}),i._evalUrl=function(e,t,r){return i.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(n){i.globalEval(n,t,r)}})},i.fn.extend({wrapAll:function(e){var t;return this[0]&&(P(e)&&(e=e.call(this[0])),t=i(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var r=this;r.firstElementChild;)r=r.firstElementChild;return r}).append(this)),this},wrapInner:function(e){return P(e)?this.each(function(t){i(this).wrapInner(e.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(e):t.append(e)})},wrap:function(e){var t=P(e);return this.each(function(r){i(this).wrapAll(t?e.call(this,r):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){i(this).replaceWith(this.childNodes)}),this}}),i.expr.pseudos.hidden=function(e){return!i.expr.pseudos.visible(e)},i.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},i.ajaxSettings.xhr=function(){try{return new u.XMLHttpRequest}catch{}};var In={0:200,1223:204},ft=i.ajaxSettings.xhr();O.cors=!!ft&&"withCredentials"in ft,O.ajax=ft=!!ft,i.ajaxTransport(function(e){var t,r;if(O.cors||ft&&!e.crossDomain)return{send:function(n,o){var s,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)a[s]=e.xhrFields[s];e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),!e.crossDomain&&!n["X-Requested-With"]&&(n["X-Requested-With"]="XMLHttpRequest");for(s in n)a.setRequestHeader(s,n[s]);t=function(p){return function(){t&&(t=r=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,p==="abort"?a.abort():p==="error"?typeof a.status!="number"?o(0,"error"):o(a.status,a.statusText):o(In[a.status]||a.status,a.statusText,(a.responseType||"text")!=="text"||typeof a.responseText!="string"?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),r=a.onerror=a.ontimeout=t("error"),a.onabort!==void 0?a.onabort=r:a.onreadystatechange=function(){a.readyState===4&&u.setTimeout(function(){t&&r()})},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(p){if(t)throw p}},abort:function(){t&&t()}}}),i.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return i.globalEval(e),e}}}),i.ajaxPrefilter("script",function(e){e.cache===void 0&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),i.ajaxTransport("script",function(e){if(e.crossDomain||e.scriptAttrs){var t,r;return{send:function(n,o){t=i("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",r=function(s){t.remove(),r=null,s&&o(s.type==="error"?404:200,s.type)}),R.head.appendChild(t[0])},abort:function(){r&&r()}}}});var Mr=[],Ut=/(=)\?(?=&|$)|\?\?/;i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Mr.pop()||i.expando+"_"+Nr.guid++;return this[e]=!0,e}}),i.ajaxPrefilter("json jsonp",function(e,t,r){var n,o,s,a=e.jsonp!==!1&&(Ut.test(e.url)?"url":typeof e.data=="string"&&(e.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&Ut.test(e.data)&&"data");if(a||e.dataTypes[0]==="jsonp")return n=e.jsonpCallback=P(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Ut,"$1"+n):e.jsonp!==!1&&(e.url+=(_t.test(e.url)?"&":"?")+e.jsonp+"="+n),e.converters["script json"]=function(){return s||i.error(n+" was not called"),s[0]},e.dataTypes[0]="json",o=u[n],u[n]=function(){s=arguments},r.always(function(){o===void 0?i(u).removeProp(n):u[n]=o,e[n]&&(e.jsonpCallback=t.jsonpCallback,Mr.push(n)),s&&P(o)&&o(s[0]),s=o=void 0}),"script"}),O.createHTMLDocument=function(){var e=R.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",e.childNodes.length===2}(),i.parseHTML=function(e,t,r){if(typeof e!="string")return[];typeof t=="boolean"&&(r=t,t=!1);var n,o,s;return t||(O.createHTMLDocument?(t=R.implementation.createHTMLDocument(""),n=t.createElement("base"),n.href=R.location.href,t.head.appendChild(n)):t=R),o=tr.exec(e),s=!r&&[],o?[t.createElement(o[1])]:(o=lr([e],t,s),s&&s.length&&i(s).remove(),i.merge([],o.childNodes))},i.fn.load=function(e,t,r){var n,o,s,a=this,p=e.indexOf(" ");return p>-1&&(n=$e(e.slice(p)),e=e.slice(0,p)),P(t)?(r=t,t=void 0):t&&typeof t=="object"&&(o="POST"),a.length>0&&i.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(l){s=arguments,a.html(n?i("<div>").append(i.parseHTML(l)).find(n):l)}).always(r&&function(l,g){a.each(function(){r.apply(this,s||[l.responseText,g,l])})}),this},i.expr.pseudos.animated=function(e){return i.grep(i.timers,function(t){return e===t.elem}).length},i.offset={setOffset:function(e,t,r){var n,o,s,a,p,l,g,b=i.css(e,"position"),C=i(e),v={};b==="static"&&(e.style.position="relative"),p=C.offset(),s=i.css(e,"top"),l=i.css(e,"left"),g=(b==="absolute"||b==="fixed")&&(s+l).indexOf("auto")>-1,g?(n=C.position(),a=n.top,o=n.left):(a=parseFloat(s)||0,o=parseFloat(l)||0),P(t)&&(t=t.call(e,r,i.extend({},p))),t.top!=null&&(v.top=t.top-p.top+a),t.left!=null&&(v.left=t.left-p.left+o),"using"in t?t.using.call(e,v):C.css(v)}},i.fn.extend({offset:function(e){if(arguments.length)return e===void 0?this:this.each(function(o){i.offset.setOffset(this,e,o)});var t,r,n=this[0];if(n)return n.getClientRects().length?(t=n.getBoundingClientRect(),r=n.ownerDocument.defaultView,{top:t.top+r.pageYOffset,left:t.left+r.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var e,t,r,n=this[0],o={top:0,left:0};if(i.css(n,"position")==="fixed")t=n.getBoundingClientRect();else{for(t=this.offset(),r=n.ownerDocument,e=n.offsetParent||r.documentElement;e&&(e===r.body||e===r.documentElement)&&i.css(e,"position")==="static";)e=e.parentNode;e&&e!==n&&e.nodeType===1&&(o=i(e).offset(),o.top+=i.css(e,"borderTopWidth",!0),o.left+=i.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-i.css(n,"marginTop",!0),left:t.left-o.left-i.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&i.css(e,"position")==="static";)e=e.offsetParent;return e||_e})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var r=t==="pageYOffset";i.fn[e]=function(n){return Pe(this,function(o,s,a){var p;if(ee(o)?p=o:o.nodeType===9&&(p=o.defaultView),a===void 0)return p?p[t]:o[s];p?p.scrollTo(r?p.pageXOffset:a,r?a:p.pageYOffset):o[s]=a},e,n,arguments.length)}}),i.each(["top","left"],function(e,t){i.cssHooks[t]=mr(O.pixelPosition,function(r,n){if(n)return n=st(r,t),Rt.test(n)?i(r).position()[t]+"px":n})}),i.each({Height:"height",Width:"width"},function(e,t){i.each({padding:"inner"+e,content:t,"":"outer"+e},function(r,n){i.fn[n]=function(o,s){var a=arguments.length&&(r||typeof o!="boolean"),p=r||(o===!0||s===!0?"margin":"border");return Pe(this,function(l,g,b){var C;return ee(l)?n.indexOf("outer")===0?l["inner"+e]:l.document.documentElement["client"+e]:l.nodeType===9?(C=l.documentElement,Math.max(l.body["scroll"+e],C["scroll"+e],l.body["offset"+e],C["offset"+e],C["client"+e])):b===void 0?i.css(l,g,p):i.style(l,g,b,p)},t,a?o:void 0,a)}})}),i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){i.fn[t]=function(r){return this.on(t,r)}}),i.fn.extend({bind:function(e,t,r){return this.on(e,null,t,r)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,r,n){return this.on(t,e,r,n)},undelegate:function(e,t,r){return arguments.length===1?this.off(e,"**"):this.off(t,e||"**",r)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),i.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){i.fn[t]=function(r,n){return arguments.length>0?this.on(t,null,r,n):this.trigger(t)}});var Pn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;i.proxy=function(e,t){var r,n,o;if(typeof t=="string"&&(r=e[t],t=e,e=r),!!P(e))return n=w.call(arguments,2),o=function(){return e.apply(t||this,n.concat(w.call(arguments)))},o.guid=e.guid=e.guid||i.guid++,o},i.holdReady=function(e){e?i.readyWait++:i.ready(!0)},i.isArray=Array.isArray,i.parseJSON=JSON.parse,i.nodeName=re,i.isFunction=P,i.isWindow=ee,i.camelCase=Ce,i.type=oe,i.now=Date.now,i.isNumeric=function(e){var t=i.type(e);return(t==="number"||t==="string")&&!isNaN(e-parseFloat(e))},i.trim=function(e){return e==null?"":(e+"").replace(Pn,"$1")};var On=u.jQuery,jn=u.$;return i.noConflict=function(e){return u.$===i&&(u.$=jn),e&&u.jQuery===i&&(u.jQuery=On),i},typeof c>"u"&&(u.jQuery=u.$=i),i})})(jquery);var jqueryExports=jquery.exports;const $=getDefaultExportFromCjs(jqueryExports),actionAddins={};class MustInputAction{constructor(){A(this,"name");A(this,"actionProps");A(this,"props");this.name="必須チェック",this.actionProps=[],this.register(),this.props={field:{code:""},message:""},this.register()}async process(u,c){var k;let d={canNext:!0,result:!1};if(this.actionProps=u.actionProps,!("field"in u.ActionValue)&&!("message"in u.ActionValue))return d;this.props=u.ActionValue;const y=c.record,w=(k=y[this.props.field.code])==null?void 0:k.value;return w===void 0||w===""?(y[this.props.field.code].error=this.props.message,d):(d={canNext:!0,result:!0},d)}register(){actionAddins[this.name]=this}}new MustInputAction;class Formatter{static numberFormat(u,c){let d=Math.floor(Math.abs(u)).toString(),y=Math.abs(u).toString().split(".")[1]||"",w=u<0,k=c.includes("%");k&&(u*=100,d=Math.floor(Math.abs(u)).toString(),y=Math.abs(u).toString().split(".")[1]||"");let[N,B]=c.split(".");if(d=N?d.padStart(N.replace(/[^0]/g,"").length,"0"):d,y=y.padEnd(B?B.length:0,"0"),/,/.test(N)){const q=[];for(;d.length;)q.unshift(d.slice(-3)),d=d.slice(0,-3);d=q.join(",")}let V=B?`${d}.${y}`:d;return V=w?`-${V}`:V,k?`${V}%`:V}static dateFormat(u,c){const d=u.getFullYear(),y=u.getMonth()+1,w=u.getDate(),k=u.getHours(),N=u.getMinutes(),B=u.getSeconds(),V=u.getMilliseconds(),q=-u.getTimezoneOffset()/60,Z={yyyy:d.toString(),yy:d.toString().slice(-2),MM:y.toString().padStart(2,"0"),M:y.toString(),dd:w.toString().padStart(2,"0"),d:w.toString(),HH:k.toString().padStart(2,"0"),H:k.toString(),hh:(k>12?k-12:k).toString().padStart(2,"0"),h:(k>12?k-12:k).toString(),mm:N.toString().padStart(2,"0"),m:N.toString(),ss:B.toString().padStart(2,"0"),s:B.toString(),fff:V.toString().padStart(3,"0"),zzz:(q>=0?"+":"-")+Math.abs(q).toString().padStart(2,"0")+":00"};return c.replace(/yyyy|yy|MM|M|dd|d|HH|H|hh|h|mm|m|ss|s|fff|zzz/g,ue=>Z[ue]||ue)}}class AutoNumbering{constructor(){A(this,"name");A(this,"actionProps");A(this,"props");this.name="自動採番する",this.actionProps=[],this.register(),this.props={field:{code:""},format:"",prefix:"",suffix:"",verName:{name:""}},globalThis.window.$format=this.format,this.register()}async process(M,u,c){let d={canNext:!1,result:!1};try{if(this.actionProps=M.actionProps,!("field"in M.ActionValue)&&!("format"in M.ActionValue))return d;this.props=M.ActionValue;const y=u.record,w=await this.createNumber(this.props);return y[this.props.field.code].value=w,this.props.verName&&this.props.verName.name!==""&&(c.variables[this.props.verName.name]=w),d={canNext:!0,result:!0},d}catch(y){return console.error(y),u.error="処理中異常が発生しました。",{canNext:!1,result:!1}}}execTemplate(M){if(M===void 0)return"";const u=/\$\{([^}]+)\}/g;return M.replace(u,(c,d)=>this.execEval(c,d))}execEval(match,expr){return console.log(match),eval(expr)}format(M){const u=new Date;return Formatter.dateFormat(u,M)}async createNumber(M){let u="",c="",d="",y=1;try{y=await this.fetchNo()}catch(w){console.log(w)}return M.format!==void 0&&M.format!==""?u=Formatter.numberFormat(y,M.format):u=y.toString(10),M.prefix!==void 0&&M.prefix!==""&&(c=this.execTemplate(M.prefix)),M.suffix!==void 0&&M.suffix!==""&&(d=this.execTemplate(M.suffix)),`${c}${u}${d}`}async fetchNo(){let M=1;return await new kintone.Promise((u,c)=>{const d=kintone.api.url("/k/v1/records",!0),y={app:kintone.app.getId(),fields:["$id"],query:"limit 1"};return kintone.api(d,"GET",y).then(w=>{w.records[0]!==null&&(M=parseInt(w.records[0].$id.value,10)+1),u(M)}).catch(w=>{c(w)})})}register(){actionAddins[this.name]=this}}new AutoNumbering;class GroupNode{constructor(u,c){A(this,"index");A(this,"type");A(this,"children");A(this,"parent");A(this,"logicalOperator");this.index=0,this.type=c==null?"root":"logicgroup",this.logicalOperator=u,this.parent=c,this.children=[]}get label(){return this.logicalOperator}get header(){return this.type==="root"?"root":"generic"}get expanded(){return this.children.length>0}static fromJSON(u,c=null){const d=new GroupNode(u.logicalOperator,c);return d.index=u.index,d.children=u.children.map(y=>y.type==="logicgroup"?GroupNode.fromJSON(y,d):ConditionNode.fromJSON(y,d)),d}}class ConditionNode{constructor(u,c,d,y){A(this,"index");A(this,"type");A(this,"parent");A(this,"object");A(this,"operator");A(this,"value");this.index=0,this.type="condition",this.object=u,this.operator=c,this.value=d,this.parent=y}get logicalOperator(){return this.parent.logicalOperator}get header(){return"generic"}static fromJSON(u,c){const d=new ConditionNode(u.object,u.operator,u.value,c);return d.index=u.index,d}}class ConditionTree{constructor(){A(this,"root");A(this,"maxIndex");this.maxIndex=0,this.root=new GroupNode("AND",null)}addNode(u,c){this.maxIndex++,c.index=this.maxIndex,u.children.push(c)}removeNode(u){if(u.parent===null)throw new Error("ルートノード削除できません");{const c=u.parent,d=c.children.indexOf(u);d>-1&&c.children.splice(d,1)}}findByIndex(u){return this.findChildren(this.root,u)}findChildren(u,c){if(u.index===c)return u;for(const d of u.children){if(d.index===c)return d;if(d.type!=="condition"){const y=this.findChildren(d,c);if(y)return y}}}getMaxIndex(u){let c=u.index;return u.type!=="condition"&&u.children.forEach(y=>{const w=this.getMaxIndex(y);w>c&&(c=w)}),c}buildConditionString(u){if(u.type!=="condition"){let c="(";const d=u;for(let y=0;y<d.children.length;y++){const w=this.buildConditionString(d.children[y]);w!==""&&(c+=w,y<d.children.length-1&&(c+=` ${d.logicalOperator} `))}return c+=")",c}else{const c=u;if(c.object&&c.operator){let d=c.value;return d&&typeof d=="object"&&"label"in d&&(d=c.value.label),`${c.object.name} ${c.operator} '${d}'`}else return""}}getConditions(u){const c=[];return u.children.forEach(d=>{d.type==="condition"?c.push(d):c.push(...this.getConditions(d))}),c}getGroups(u){const c=[];return c.push(u.index),u.children.forEach(d=>{d.type!=="condition"&&c.push(...this.getGroups(d))}),c}fromJson(u){const c=JSON.parse(u);return this.root=GroupNode.fromJSON(c),this.maxIndex=this.getMaxIndex(this.root),this.root}toJson(){return JSON.stringify(this.root,(u,c)=>u==="parent"?c?c.type:null:c)}evaluate(u,c){if(u.type==="condition")return this.evaluateCondition(u,c);if(u.type==="logicgroup"||u.type==="root"){const d=u,y=d.children.map(w=>this.evaluate(w,c));if(d.logicalOperator==="AND")return y.every(w=>w);if(d.logicalOperator==="OR")return y.some(w=>w);throw new Error("Unsupported logical operator")}else throw new Error("Unsupported node type")}getObjectValue(u,c){if(!(!u||typeof u!="object"||!("objectType"in u))){if(u.objectType==="field"){const d=c.record[u.code];return d.type==="NUMBER"&&d.value!==void 0?Number(d.value):d.value}else if(u.objectType==="variable")return c.variables[u.name].value}}getConditionValue(u){if(!u||typeof u!="object")return u;if("label"in u)return u.label;if("value"in u)return u.value;if("name"in u)return u.name}evaluateCondition(u,c){const{object:d,operator:y,value:w}=u,k=this.getObjectValue(d,c),N=this.getConditionValue(w);switch(y){case"=":case"!=":case">":case">=":case"<":case"<=":return this.compare(y,k,N);case"contains":return this.contains(k,N);case"not contains":return!this.contains(k,N);case"start With":return this.startWith(k,N);case"not start with":return!this.startWith(k,N);case"end with":return this.endsWith(k,N);case"not end with":return this.endsWith(k,N);default:throw new Error("Unsupported operator")}}compare(u,c,d){if((c==null||c==="")&&(d==null||d==="")&&(c="",d=""),c instanceof Date){const y=new Date(d);isNaN(y.getTime())||(d=y)}else if(typeof c=="number"){const y=Number(d);isNaN(y)||(d=y)}else typeof c=="string"&&(d=String(d));switch(u){case"=":return c===d;case"!=":return c!==d;case">":return c>d;case">=":return c>=d;case"<":return c<d;case"<=":return c<=d;default:throw new Error("Unsupported operator for comparison")}}contains(u,c){return typeof u=="string"&&typeof c=="string"?u.includes(c):!1}startWith(u,c){return typeof u=="string"&&typeof c=="string"?u.startsWith(c):!1}endsWith(u,c){return typeof u=="string"&&typeof c=="string"?u.endsWith(c):!1}}class FieldShownAction{constructor(){A(this,"name");A(this,"actionProps");A(this,"props");this.name="表示／非表示",this.actionProps=[],this.props={field:{code:""},show:"",condition:""},this.register()}async process(u,c,d){let y={canNext:!0,result:!1};try{return this.actionProps=u.actionProps,!("field"in u.ActionValue)&&!("show"in u.ActionValue)||(this.props=u.ActionValue,this.getConditionResult(d)&&(this.props.show==="表示"?kintone.app.record.setFieldShown(this.props.field.code,!0):this.props.show==="非表示"&&kintone.app.record.setFieldShown(this.props.field.code,!1)),y={canNext:!0,result:!0}),y}catch(w){return c.error=w,console.error(w),y.canNext=!1,y}}getConditionResult(u){const c=this.getCondition(this.props.condition);return c?c.evaluate(c.root,u):!0}getCondition(u){try{const c=new ConditionTree;return c.fromJson(u),c.getConditions(c.root).length>0?c:null}catch{return null}}register(){actionAddins[this.name]=this}}new FieldShownAction;class ErrorShowAction{constructor(){A(this,"name");A(this,"actionProps");A(this,"props");this.name="エラー表示",this.actionProps=[],this.props={message:"",condition:""},this.register()}async process(u,c,d){let y={canNext:!0,result:!1};try{return this.actionProps=u.actionProps,!("message"in u.ActionValue)&&!("condition"in u.ActionValue)||(this.props=u.ActionValue,this.getConditionResult(d)?c.error=this.props.message:y={canNext:!1,result:!0}),y}catch(w){return c.error=w,console.error(w),y.canNext=!1,y}}getConditionResult(u){const c=this.getCondition(this.props.condition);return c?c.evaluate(c.root,u):!0}getCondition(u){try{const c=new ConditionTree;return c.fromJson(u),c.getConditions(c.root).length>0?c:null}catch{return null}}register(){actionAddins[this.name]=this}}new ErrorShowAction;const buttonAdd="";class ButtonAddAction{constructor(){A(this,"name");A(this,"actionProps");A(this,"props");this.name="ボタンの配置",this.actionProps=[],this.props={buttonName:"",position:"",eventName:""},this.register()}async process(u,c){let d={canNext:!0,result:!1};try{if(this.actionProps=u.actionProps,!("buttonName"in u.ActionValue)&&!("position"in u.ActionValue))return d;this.props=u.ActionValue;let y;if(this.props.space&&this.props.space.elementId?y=kintone.app.record.getSpaceElement(this.props.space.elementId):y=kintone.app.record.getHeaderMenuSpaceElement(),!y)return d;const w=$(`<button id='${this.props.eventName}' class='alc-button-normal' >${this.props.buttonName}</button>`);this.props.position==="一番左に追加する"?$(y).prepend(w):$(y).append(w);const k=`${c.type}.customButtonClick.${this.props.eventName}`;return w.on("click",()=>{$(document).trigger(k,c)}),d}catch(y){return c.error=y,console.error(y),d.canNext=!1,d}}register(){actionAddins[this.name]=this}}new ButtonAddAction;class ConditionAction{constructor(){A(this,"name");A(this,"actionProps");A(this,"props");this.name="条件式",this.actionProps=[],this.props={condition:"",verName:{name:""}},this.register()}async process(u,c,d){let y={canNext:!0,result:""};try{if(this.actionProps=u.actionProps,!("condition"in u.ActionValue)&&!("verName"in u.ActionValue))return y;this.props=u.ActionValue;const w=this.getConditionResult(d);return console.log("条件計算結果:",w),w?y={canNext:!0,result:"はい"}:y={canNext:!0,result:"いいえ"},this.props.verName&&this.props.verName.name!==""&&(d.variables[this.props.verName.name]=y.result),y}catch(w){return c.error=w,console.error(w),y.canNext=!1,y}}getConditionResult(u){const c=this.getCondition(this.props.condition);return c?c.evaluate(c.root,u):!0}getCondition(u){try{const c=new ConditionTree;return c.fromJson(u),c.getConditions(c.root).length>0?c:null}catch{return null}}register(){actionAddins[this.name]=this}}new ConditionAction;class RegularCheckAction{constructor(){A(this,"name");A(this,"actionProps");A(this,"props");this.name="正規表現チェック",this.actionProps=[],this.props={field:{code:""},message:"",regExpression:""},this.register()}async process(u,c){let d={canNext:!0,result:!1};try{if(this.actionProps=u.actionProps,!("field"in u.ActionValue)&&!("message"in u.ActionValue)&&!("regExpression"in u.ActionValue))return d;this.props=u.ActionValue;const y=c.record,w=y[this.props.field.code].value;return new RegExp(this.props.regExpression).test(w)?d={canNext:!0,result:!0}:y[this.props.field.code].error=this.props.message,d}catch(y){return c.error=y,console.error(y),d.canNext=!1,d}}register(){actionAddins[this.name]=this}}new RegularCheckAction;class MailCheckAction{constructor(){A(this,"name");A(this,"actionProps");A(this,"props");this.name="メールアドレスチェック",this.actionProps=[],this.props={field:{code:""},message:"",emailCheck:""},this.register()}async process(u,c){let d={canNext:!0,result:!1};try{if(this.actionProps=u.actionProps,!("field"in u.ActionValue)&&!("message"in u.ActionValue)&&!("emailCheck"in u.ActionValue))return d;this.props=u.ActionValue;const y=c.record,w=y[this.props.field.code].value;return this.props.emailCheck==="厳格"?/^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(w)||(y[this.props.field.code].error=this.props.message):this.props.emailCheck==="ゆるめ"?/^[^@]+@[^@]+$/.test(w)||(y[this.props.field.code].error=this.props.message):d={canNext:!0,result:!0},d}catch(y){return c.error=y,console.error(y),d.canNext=!1,d}}register(){actionAddins[this.name]=this}}new MailCheckAction;class StrCountCheckAciton{constructor(){A(this,"name");A(this,"actionProps");A(this,"props");this.name="文字数チェック",this.actionProps=[],this.props={field:{code:""},message:"",maxLength:0},this.register()}async process(u,c){let d={canNext:!0,result:!1};try{if(this.actionProps=u.actionProps,!("field"in u.ActionValue)&&!("message"in u.ActionValue)&&!("strExpression"in u.ActionValue))return d;this.props=u.ActionValue;const y=c.record,w=y[this.props.field.code].value,k=this.props.maxLength;return w===void 0||w===""||(k<w.length?y[this.props.field.code].error=this.props.message:d={canNext:!0,result:!0}),d}catch(y){return c.error=y,console.error(y),d.canNext=!1,d}}register(){actionAddins[this.name]=this}}new StrCountCheckAciton;class DatetimeGetterAction{constructor(){A(this,"name");A(this,"actionProps");A(this,"props");this.name="現在日時",this.actionProps=[],this.props={verName:{name:""}},this.register()}async process(u,c,d){let y={canNext:!0,result:!1};try{if(this.actionProps=u.actionProps,!("verName"in u.ActionValue))return y;this.props=u.ActionValue;let w=new Date;return this.props.verName&&this.props.verName.name!==""&&(d.variables[this.props.verName.name]=w.toISOString()),y}catch(w){return c.error=w,console.error(w),y.canNext=!1,y}}register(){actionAddins[this.name]=this}}new DatetimeGetterAction;class InsertValueAction{constructor(){A(this,"name");A(this,"actionProps");A(this,"props");this.name="値を挿入する",this.actionProps=[],this.props={field:{code:""},condition:"",value:"",show:""},this.register()}checkInputBlank(u,c,d,y,w){if(c.match(/^(\s|　)+?$/)!==null){if(u==="NUMBER"||u==="DATE"||u==="DATETIME"||u==="TIME"||u==="USER_SELECT"||u==="ORGANIZATION_SELECT"||u==="GROUP_SELECT"||u==="RADIO_BUTTON"||u==="DROP_DOWN"||u==="CHECK_BOX"||u==="MULTI_SELECT")throw w.record[d].error="「"+d+"」フィールドには、空白文字は挿入できません。",new Error("「"+d+"」フィールドには、空白文字は挿入できません。「値を挿入する」コンポーネントの処理を中断しました。");if(y)throw w.record[d].error="「"+d+"」フィールドは必須項目のため、空白文字は挿入できません。",new Error("「"+d+"」フィールドは必須項目のため、空白文字は挿入できません。「値を挿入する」コンポーネントの処理を中断しました。")}return!0}checkInputNumber(u,c,d){let y=Number(u);if(!isFinite(y))throw d.record[c].error="「"+c+"」フィールドに入れようとした値は、無効な日付形式です。",new Error("「"+c+"」フィールドに入れようとした値は、有効な数値ではありません。「値を挿入する」コンポーネントの処理を中断しました。");return!0}checkInputDate(u,c,d){let y=u.match(/(\d{4})-(\d{2})-(\d{2})$/),w=u.match(/(\d{4})-(\d{1})-(\d{1})$/),k=u.match(/(\d{4})-(\d{1})-(\d{2})$/),N=u.match(/(\d{4})-(\d{2})-(\d{1})$/),B=u.match(/(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}).000Z/),V;if(V=new Date(u),V!==void 0&&!isNaN(V.getDate())&&y===null&&k===null&&N===null&&w===null&&B===null)throw d.record[c].error="「"+c+"」フィールドに入れようとした値は、無効な日付形式です。",new Error("「"+c+"」フィールドに入れようとした値は、無効な日付形式です。「値を挿入する」コンポーネントの処理を中断しました。");return!0}checkInputTime(u,c,d){if(u.match(/^([0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/)===null)throw d.record[c].error="「"+c+"」フィールドに入れようとした値は、無効な時刻形式です。",new Error("「"+c+"」フィールドに入れようとした値は、無効な時刻形式です。「値を挿入する」コンポーネントの処理を中断しました。");return!0}changeDateFormat(u,c,d,y){let w,k;if(k=new Date(u),k!==void 0&&!isNaN(k.getDate())){if(c==="DATETIME")return w=k.toISOString(),w;let N=u.match(/(\d{4})-(\d{1,2})-(\d{1,2})$/);if(N!==null){let B=1,V=2,q=3;return`${N[B]}-${N[V]}-${N[q]}`}}throw y.record[d].error="「"+d+"」フィールドに入れようとした値は、無効な日付形式です。",new Error("「"+d+"」フィールドに入れようとした値は、無効な日付形式です。「値を挿入する」コンポーネントの処理を中断しました。")}checkInputOption(u,c,d,y){if(c!==void 0){let k=Object.keys(c);for(var w in k)if(k[w]===u)return!0}throw y.record[d].error="「"+d+"」には、存在しない値を挿入しようとしたため、処理を中断しました。",new Error("「"+d+"」には、存在しない値を挿入しようとしたため、処理を中断しました。「値を挿入する」コンポーネントの処理を中断しました。")}async setInputUser(u){let c;try{const y=await kintone.api(kintone.api.url("/v1/users",!0),"GET",{codes:[u]});if(y.users[0].code===u&&(c=y.users[0].name),c===void 0)throw new Error}catch{return!1}return c}async setInputOrganization(u){let c;try{const y=await kintone.api(kintone.api.url("/v1/organizations.json",!0),"GET",{codes:[u]});if(y.organizations[0].code===u&&(c=y.organizations[0].name),c===void 0)throw new Error}catch{return!1}return c}async setInputGroup(u){let c;try{const y=await kintone.api(kintone.api.url("/v1/groups.json",!0),"GET",{codes:[u]});if(y.groups[0].code===u&&(c=y.groups[0].name),c===void 0)throw new Error}catch{return!1}return c}async process(u,c,d){let y={canNext:!0,result:!1};try{if(this.actionProps=u.actionProps,!("field"in u.ActionValue)&&!("value"in u.ActionValue))return y;const w=1,k=3,N=this.actionProps[w].props.modelValue.type,B=this.actionProps[k].props.modelValue,V=this.getConditionResult(d);if(!V)return y;if(N===null)throw new Error("「値を挿入する」コンポーネントで、値を挿入するフィールドが指定されていなかったため、処理が中断されました。");if(N==="FILE"||N==="SUBTABLE"||N==="CATEGORY"||N==="STATUS"||N==="STATUS_ASSIGNEE"||N==="CREATOR"||N==="MODIFIER"||N==="__REVISION__"||N==="RECORD_NUMBER"||N==="__ID__"||N==="CALC"||N==="CREATED_TIME"||N==="UPDATED_TIME")throw new Error("「値を挿入する」コンポーネントで、選択されたフィールドは、値を挿入するコンポーネントでは非対応のフィールドのため、処理を中断しました。");if(B==="")throw new Error("「値を挿入する」コンポーネントで、フィールドに挿入する値が指定されていなかったため、処理が中断されました。");this.props=u.ActionValue;let q=this.props.value;const Z=this.props.field.type,ue=this.props.field.required,Y=this.props.field.code,O=this.props.show;let P=this.props.field.options,ee;if(O==="変数"&&V){if(ee=d.variables[q],ee===void 0)throw new Error("「"+Y+"」フィールドに入れようとした変数は、無効な入力形式です。");q=ee}let R,De=[],Fe=this.checkInputBlank(Z,q,Y,ue,c);if(V&&Fe){if(Z==="SINGLE_LINE_TEXT"||Z==="MULTI_LINE_TEXT"||Z==="RICH_TEXT"||Z==="LINK")R=q;else if(Z==="NUMBER")this.checkInputNumber(q,Y,c)&&(R=Number(q));else if(Z==="DATE"||Z==="DATETIME"){if(this.checkInputDate(q,Y,c)){let oe=this.changeDateFormat(q,Z,Y,c);oe&&(R=oe)}}else if(Z==="TIME")this.checkInputTime(q,Y,c)&&(R=q);else if(Z==="RADIO_BUTTON"||Z==="DROP_DOWN")this.checkInputOption(q,P,Y,c)&&(R=q);else if(Z==="CHECK_BOX"||Z==="MULTI_SELECT")this.checkInputOption(q,P,Y,c)&&(De[0]=q);else if(Z==="USER_SELECT"){let oe=await this.setInputUser(q);if(oe)R=[{code:q,name:oe}];else throw c.record[Y].error="ユーザー選択に、挿入しようとしたユーザー情報は見つかりませんでした。「値を挿入する」コンポーネントの処理を中断しました。",new Error("ユーザー選択に、挿入しようとしたユーザー情報は見つかりませんでした。「値を挿入する」コンポーネントの処理を中断しました。")}else if(Z==="ORGANIZATION_SELECT"){let oe=await this.setInputOrganization(q);if(oe)R=[{code:q,name:oe}];else throw c.record[Y].error="組織選択フィールドに、挿入しようとした組織情報は見つかりませんでした。「値を挿入する」コンポーネントの処理を中断しました。",new Error("組織選択フィールドに、挿入しようとした組織情報は見つかりませんでした。「値を挿入する」コンポーネントの処理を中断しました。")}else if(Z==="GROUP_SELECT"){let oe=await this.setInputGroup(q);if(oe)R=[{code:q,name:oe}];else throw c.record[Y].error="グループ選択フィールドに、挿入しようとしたグループ情報は見つかりませんでした。「値を挿入する」コンポーネントの処理を中断しました。",new Error("グループ選択フィールドに、挿入しようとしたグループ情報は見つかりませんでした。「値を挿入する」コンポーネントの処理を中断しました。")}}return V&&(R||De)&&(R?c.record[Y].value=R:De.length>0&&(c.record[Y].value=De)),y={canNext:!0,result:!0},y}catch(w){return c.record,c.error=w.message,console.error(w),y.canNext=!0,y}}getConditionResult(u){const c=this.getCondition(this.props.condition);return c?c.evaluate(c.root,u):!0}getCondition(u){try{const c=new ConditionTree;return c.fromJson(u),c.getConditions(c.root).length>0?c:null}catch{return null}}register(){actionAddins[this.name]=this}}new InsertValueAction;class GetValueAciton{constructor(){A(this,"name");A(this,"actionProps");A(this,"props");this.name="値を取得する",this.actionProps=[],this.props={field:{code:""},verName:{name:""}},this.register()}async process(u,c,d){let y={canNext:!0,result:!1};try{if(this.actionProps=u.actionProps,!("field"in u.ActionValue)&&!("verName"in u.ActionValue))return y;this.props=u.ActionValue;const k=c.record[this.props.field.code].value;return this.props.verName&&this.props.verName.name!==""&&(d.variables[this.props.verName.name]=k),y={canNext:!0,result:!0},y}catch(w){return c.error=w,console.error(w),y.canNext=!1,y}}register(){actionAddins[this.name]=this}}new GetValueAciton;class StringJoinAction{constructor(){A(this,"name");A(this,"actionProps");A(this,"props");this.name="文字結合",this.actionProps=[],this.register(),this.props={saveField:{code:""},joinField1:{code:""},joinField2:{code:""},delimiter:""},this.register()}async process(u,c){let d={canNext:!1,result:!1};try{let y=function(Y,O,P,ee){var R,De,Fe,oe,tt,dt,i,Ue,re,ht,gt,yt,K,Me,mt,vt;if((((R=ee.record[P])==null?void 0:R.value)===void 0||((De=ee.record[P])==null?void 0:De.value)===null)&&(ee.record[P].value=""),O==="CREATOR"||O==="MODIFIER")Y=(Fe=ee.record[P])==null?void 0:Fe.value.name;else if(O==="DATETIME"||O==="CREATED_TIME"||O==="UPDATED_TIME")((oe=ee.record[P])==null?void 0:oe.value)!==void 0&&((tt=ee.record[P])==null?void 0:tt.value)!==""?Y=Formatter.dateFormat(new Date((dt=ee.record[P])==null?void 0:dt.value),"yyyy-MM-dd HH:mm"):Y=(i=ee.record[P])==null?void 0:i.value;else if(O==="USER_SELECT"||O==="ORGANIZATION_SELECT"||O==="GROUP_SELECT"||O==="FILE"||O==="STATUS_ASSIGNEE")if(((Ue=ee.record[P])==null?void 0:Ue.value)===void 0||((re=ee.record[P])==null?void 0:re.value)==="")Y=(ht=ee.record[P])==null?void 0:ht.value;else{const ce=(gt=ee.record[P])==null?void 0:gt.value;let Ie=[];for(let pe=0;pe<ce.length;pe++)Ie.push(ce[pe].name);Y=Ie.join()}else if(O==="CATEGORY"||O==="CHECK_BOX"||O==="MULTI_SELECT")if(((yt=ee.record[P])==null?void 0:yt.value)===void 0||((K=ee.record[P])==null?void 0:K.value)==="")Y=(Me=ee.record[P])==null?void 0:Me.value;else{const ce=(mt=ee.record[P])==null?void 0:mt.value;let Ie=[];for(let pe=0;pe<ce.length;pe++)Ie.push(ce[pe]);Y=Ie.join()}else O==="STATUS"&&ee.type.includes("process")?Y=ee.nextStatus.value:Y=(vt=ee.record[P])==null?void 0:vt.value;return Y==null&&(Y=""),Y};if(this.actionProps=u.actionProps,!("saveField"in u.ActionValue)&&!("joinField1"in u.ActionValue)&&!("joinField2"in u.ActionValue))return d;this.props=u.ActionValue;const w=c.record,k=this.props.joinField1.type,N=this.props.joinField2.type,B=this.props.saveField.type;if(!(B==="SINGLE_LINE_TEXT"||B==="MULTI_LINE_TEXT"||B==="RICH_TEXT"))return c.error="[エラーメッセージ]：結合保存先対応不可。結合しません",c.type.includes("success")&&window.alert("[windows alert]："+c.error),d={canNext:!1,result:!1},d;let V="";V=y(V,k,this.props.joinField1.code,c);let q="";q=y(q,N,this.props.joinField2.code,c);const Z=this.props.delimiter;let ue="";if(V===""&&q===""?ue="":V===""&&q!==""?ue=q:q===""&&V!==""?ue=V:V!==""&&q!==""&&(ue=`${V}${Z}${q}`),!c.type.includes("success"))w[this.props.saveField.code].value=ue,window.alert("文字結合行いました。"+this.props.joinField1.name+":"+V+","+this.props.joinField2.name+":"+q+"。");else{const Y={app:c.appId,id:c.recordId,record:{[this.props.saveField.code]:{value:ue}}};return await kintone.api(kintone.api.url("/k/v1/record",!0),"PUT",Y).then(O=>{w[this.props.saveField.code].value=ue,c.type.includes("index")?window.alert("文字結合行いました。"+this.props.joinField1.name+":"+V+","+this.props.joinField2.name+":"+q+"。一覧画面更新成功後自動リロードしません。必要に応じて手動リロードください。"):window.alert("文字結合行いました。"+this.props.joinField1.name+":"+V+","+this.props.joinField2.name+":"+q+"。")}).catch(O=>(c.error="エラーが発生しました。結合しません。システム管理者へお問合せください",window.alert(c.error+"error message："+O),c))}return d={canNext:!0,result:!0},d}catch(y){return c.type.includes("success")&&window.alert("[windows alert]：処理中異常が発生しました。結合しません。システム担当者へお問合せください。errorメッセージ："+y),c.error="[エラーメッセージ]：処理中異常が発生しました。結合しません。システム担当者へお問合せください。errorメッセージ："+y,{canNext:!1,result:!1}}}register(){actionAddins[this.name]=this}}new StringJoinAction;class FullWidthAction{constructor(){A(this,"name");A(this,"actionProps");A(this,"props");this.name="全角チェック",this.actionProps=[],this.props={field:{code:""}},this.register()}async process(u,c,d){var w;let y={canNext:!0,result:!1};try{if(this.actionProps=u.actionProps,!("field"in u.ActionValue))return y;this.props=u.ActionValue;const k=c.record,N=(w=k[this.props.field.code])==null?void 0:w.value;return N===void 0||N===""?y:this.containsFullWidthChars(N)?(y={canNext:!0,result:!0},y):(k[this.props.field.code].error="半角が含まれています",y.canNext=!1,y)}catch(k){return c.error=k,console.error(k),y.canNext=!1,y}}containsFullWidthChars(u){const c="^[^-~｡-ﾟ]+$";return new RegExp(c).test(u)}register(){actionAddins[this.name]=this}}new FullWidthAction;class HalfWidthAction{constructor(){A(this,"name");A(this,"actionProps");A(this,"props");this.name="半角チェック",this.actionProps=[],this.props={field:{code:""}},this.register()}async process(u,c,d){var w;let y={canNext:!0,result:!1};try{if(this.actionProps=u.actionProps,!("field"in u.ActionValue))return y;this.props=u.ActionValue;const k=c.record,N=(w=k[this.props.field.code])==null?void 0:w.value;return N===void 0||N===""?y:this.containsHalfWidthChars(N)?(y={canNext:!0,result:!0},y):(k[this.props.field.code].error="全角が含まれています",y.canNext=!1,y)}catch(k){return c.error=k,console.error(k),y.canNext=!1,y}}containsHalfWidthChars(u){const c="^[-~｡-ﾟ]+$";return new RegExp(c).test(u)}register(){actionAddins[this.name]=this}}new HalfWidthAction;class ActionProcess{constructor(u,c,d){A(this,"eventId");A(this,"flow");A(this,"event");A(this,"context");this.eventId=u,this.flow=c,this.event=d,this.context={record:this.event.record,variables:{}}}async exec(){const u=this.flow.getRoot();if(u===void 0||u.nextNodeIds.size===0)return;let c=u.nextNodeIds.get("");if(c===void 0)return;let d=this.flow.findNodeById(c),y={canNext:!0};for(;d!==void 0&&y.canNext;){const w=actionAddins[d.name];w!==void 0&&(y=await w.process(d,this.event,this.context));let k="";if(d.outputPoints&&d.outputPoints.length>1&&(k=y.result||""),c=d.nextNodeIds.get(k),c===void 0)return;d=this.flow.findNodeById(c)}}}class ActionProperty{constructor(u,c,d,y,w){A(this,"component");A(this,"props");this.component=u,this.props={name:c,displayName:d,placeholder:y,modelValue:w}}static defaultProperty(){return new ActionProperty("InputText","displayName","表示名","表示を入力してください","")}}class ActionNode{constructor({id:u,name:c,title:d,inputPoint:y,outputPoints:w,actionProps:k}){A(this,"id");A(this,"name");A(this,"inputPoint");A(this,"outputPoints");A(this,"actionProps");A(this,"prevNodeId");A(this,"nextNodeIds");this.id=u,this.name=c,this.inputPoint=y,this.outputPoints=w;const N=ActionProperty.defaultProperty();N.props.modelValue=d,this.actionProps=k,this.nextNodeIds=new Map}get title(){const u=this.actionProps.find(c=>c.props.name==="displayName");return u==null?void 0:u.props.modelValue}get subTitle(){return this.name}get isRoot(){return!1}get ActionValue(){const u={};return this.actionProps.forEach(c=>{u[c.props.name]=c.props.modelValue}),u}}class RootAction{constructor({id:u,name:c,title:d,subTitle:y}){A(this,"id");A(this,"name");A(this,"title");A(this,"subTitle");A(this,"inputPoint");A(this,"outputPoints");A(this,"isRoot");A(this,"actionProps");A(this,"ActionValue");A(this,"prevNodeId");A(this,"nextNodeIds");this.id=u,this.name=c,this.title=d,this.subTitle=y,this.inputPoint="",this.outputPoints=[],this.isRoot=!0,this.actionProps=[],this.ActionValue={},this.nextNodeIds=new Map}}class ActionFlow{constructor(u){A(this,"id");A(this,"actionNodes");u instanceof Array?this.actionNodes=u:this.actionNodes=[u],this.id=""}findNodeById(u){return this.actionNodes.find(c=>c.id===u)}toJSON(){return{id:this.id,actionNodes:this.actionNodes.map(u=>{const{nextNodeIds:c,...d}=u;return{...d,nextNodeIds:Array.from(c.entries())}})}}getRoot(){return this.actionNodes.find(u=>u.isRoot)}static fromJSON(u){const c=JSON.parse(u),d=c.actionNodes.map(w=>{const k=w.isRoot?new RootAction(w):new ActionNode(w);return k.nextNodeIds=new Map(Object.entries(w.nextNodeIds)),k.prevNodeId=w.prevNodeId,k.id=w.id,k}),y=new ActionFlow(d);return y.id=c.id,y}}$(function(){const M=N=>N.filter(B=>B.includes(".change.")),u=N=>N.filter(B=>B.includes(".customButtonClick.")),c=N=>N.filter(B=>!B.includes(".customButtonClick.")&&!B.includes(".change.")),d=Object.keys(alcflow),y=M(d),w=u(d),k=c(d);k.length>0&&kintone.events.on(k,async N=>{const B=alcflow[N.type],V=ActionFlow.fromJSON(B.content);return V!==void 0&&await new ActionProcess(N.type,V,N).exec(),N}),y.length>0&&kintone.events.on(y,N=>{const B=alcflow[N.type],V=ActionFlow.fromJSON(B.content);return V!==void 0&&new ActionProcess(N.type,V,N).exec(),N}),w.length>0&&w.forEach(N=>{$(document).on(N,async()=>{const B=kintone.app.record.get(),V=alcflow[N],q=ActionFlow.fromJSON(V.content);q!==void 0&&await new ActionProcess(N,q,B).exec();const Z=B.record;kintone.app.record.set({record:Z})})})});
