Files
KintoneAppBuilder/backend/Temp/alc_runtime.js

15 lines
98 KiB
JavaScript
Raw Blame History

var _r=Object.defineProperty;var $r=(H,l,v)=>l in H?_r(H,l,{enumerable:!0,configurable:!0,writable:!0,value:v}):H[l]=v;var P=(H,l,v)=>($r(H,typeof l!="symbol"?l+"":l,v),v);var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(H){return H&&H.__esModule&&Object.prototype.hasOwnProperty.call(H,"default")?H.default:H}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(H){(function(l,v){H.exports=l.document?v(l,!0):function(x){if(!x.document)throw new Error("jQuery requires a window with a document");return v(x)}})(typeof window<"u"?window:commonjsGlobal,function(l,v){var x=[],S=Object.getPrototypeOf,E=x.slice,z=x.flat?function(e){return x.flat.call(e)}:function(e){return x.concat.apply([],e)},K=x.push,te=x.indexOf,ue={},Ae=ue.toString,je=ue.hasOwnProperty,Ge=je.toString,On=Ge.call(Object),L={},R=function(t){return typeof t=="function"&&typeof t.nodeType!="number"&&typeof t.item!="function"},Ie=function(t){return t!=null&&t===t.window},I=l.document,qn={type:!0,src:!0,nonce:!0,noModule:!0};function Bt(e,t,n){n=n||I;var r,o,s=n.createElement("script");if(s.text=e,t)for(r in qn)o=t[r]||t.getAttribute&&t.getAttribute(r),o&&s.setAttribute(r,o);n.head.appendChild(s).parentNode.removeChild(s)}function Le(e){return e==null?e+"":typeof e=="object"||typeof e=="function"?ue[Ae.call(e)]||"object":typeof e}var zt="3.7.1",Hn=/HTML$/i,i=function(e,t){return new i.fn.init(e,t)};i.fn=i.prototype={jquery:zt,constructor:i,length:0,toArray:function(){return E.call(this)},get:function(e){return e==null?E.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,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(E.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,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:K,sort:x.sort,splice:x.splice},i.extend=i.fn.extend=function(){var e,t,n,r,o,s,a=arguments[0]||{},c=1,f=arguments.length,p=!1;for(typeof a=="boolean"&&(p=a,a=arguments[c]||{},c++),typeof a!="object"&&!R(a)&&(a={}),c===f&&(a=this,c--);c<f;c++)if((e=arguments[c])!=null)for(t in e)r=e[t],!(t==="__proto__"||a===r)&&(p&&r&&(i.isPlainObject(r)||(o=Array.isArray(r)))?(n=a[t],o&&!Array.isArray(n)?s=[]:!o&&!i.isPlainObject(n)?s={}:s=n,o=!1,a[t]=i.extend(p,s,r)):r!==void 0&&(a[t]=r));return a},i.extend({expando:"jQuery"+(zt+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!e||Ae.call(e)!=="[object Object]"?!1:(t=S(e),t?(n=je.call(t,"constructor")&&t.constructor,typeof n=="function"&&Ge.call(n)===On):!0)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){Bt(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(mt(e))for(n=e.length;r<n&&t.call(e[r],r,e[r])!==!1;r++);else for(r in e)if(t.call(e[r],r,e[r])===!1)break;return e},text:function(e){var t,n="",r=0,o=e.nodeType;if(!o)for(;t=e[r++];)n+=i.text(t);return o===1||o===11?e.textContent:o===9?e.documentElement.textContent:o===3||o===4?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return e!=null&&(mt(Object(e))?i.merge(n,typeof e=="string"?[e]:e):K.call(n,e)),n},inArray:function(e,t,n){return t==null?-1:te.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Hn.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;r<n;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r,o=[],s=0,a=e.length,c=!n;s<a;s++)r=!t(e[s],s),r!==c&&o.push(e[s]);return o},map:function(e,t,n){var r,o,s=0,a=[];if(mt(e))for(r=e.length;s<r;s++)o=t(e[s],s,n),o!=null&&a.push(o);else for(s in e)o=t(e[s],s,n),o!=null&&a.push(o);return z(a)},guid:1,support:L}),typeof Symbol=="function"&&(i.fn[Symbol.iterator]=x[Symbol.iterator]),i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){ue["[object "+t+"]"]=t.toLowerCase()});function mt(e){var t=!!e&&"length"in e&&e.length,n=Le(e);return R(e)||Ie(e)?!1:n==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Q(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var Mn=x.pop,In=x.sort,Ln=x.splice,G="[\\x20\\t\\r\\n\\f]",Je=new RegExp("^"+G+"+|((?:^|[^\\\\])(?:\\\\.)*)"+G+"+$","g");i.contains=function(e,t){var n=t&&t.parentNode;return e===n||!!(n&&n.nodeType===1&&(e.contains?e.contains(n):e.compareDocumentPosition&&e.compareDocumentPosition(n)&16))};var Rn=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function Fn(e,t){return t?e==="\0"?"<22>":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}i.escapeSelector=function(e){return(e+"").replace(Rn,Fn)};var we=I,xt=K;(function(){var e,t,n,r,o,s=xt,a,c,f,p,m,w=i.expando,g=0,T=0,q=ht(),V=ht(),F=ht(),ee=ht(),Z=function(u,d){return u===d&&(o=!0),0},ye="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ve="(?:\\\\[\\da-fA-F]{1,6}"+G+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",B="\\["+G+"*("+ve+")(?:"+G+"*([*^$|!~]?=)"+G+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+ve+"))|)"+G+"*\\]",He=":("+ve+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+B+")*)|.*)\\)|)",U=new RegExp(G+"+","g"),Y=new RegExp("^"+G+"*,"+G+"*"),it=new RegExp("^"+G+"*([>+~]|"+G+")"+G+"*"),It=new RegExp(G+"|>"),me=new RegExp(He),ot=new RegExp("^"+ve+"$"),xe={ID:new RegExp("^#("+ve+")"),CLASS:new RegExp("^\\.("+ve+")"),TAG:new RegExp("^("+ve+"|[*])"),ATTR:new RegExp("^"+B),PSEUDO:new RegExp("^"+He),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+G+"*(even|odd|(([+-]|)(\\d*)n|)"+G+"*(?:([+-]|)"+G+"*(\\d+)|))"+G+"*\\)|)","i"),bool:new RegExp("^(?:"+ye+")$","i"),needsContext:new RegExp("^"+G+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+G+"*((?:-\\d)?\\d*)"+G+"*\\)|)(?=[^-]|$)","i")},Ee=/^(?:input|select|textarea|button)$/i,De=/^h\d$/i,ce=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Lt=/[+~]/,Se=new RegExp("\\\\[\\da-fA-F]{1,6}"+G+"?|\\\\([^\\r\\n\\f])","g"),Ne=function(u,d){var h="0x"+u.slice(1)-65536;return d||(h<0?String.fromCharCode(h+65536):String.fromCharCode(h>>10|55296,h&1023|56320))},Hr=function(){ke()},Mr=yt(function(u){return u.disabled===!0&&Q(u,"fieldset")},{dir:"parentNode",next:"legend"});function Ir(){try{return a.activeElement}catch{}}try{s.apply(x=E.call(we.childNodes),we.childNodes),x[we.childNodes.length].nodeType}catch{s={apply:function(d,h){xt.apply(d,E.call(h))},call:function(d){xt.apply(d,E.call(arguments,1))}}}function X(u,d,h,y){var b,C,N,D,A,W,O,M=d&&d.ownerDocument,_=d?d.nodeType:9;if(h=h||[],typeof u!="string"||!u||_!==1&&_!==9&&_!==11)return h;if(!y&&(ke(d),d=d||a,f)){if(_!==11&&(A=ce.exec(u)))if(b=A[1]){if(_===9)if(N=d.getElementById(b)){if(N.id===b)return s.call(h,N),h}else return h;else if(M&&(N=M.getElementById(b))&&X.contains(d,N)&&N.id===b)return s.call(h,N),h}else{if(A[2])return s.apply(h,d.getElementsByTagName(u)),h;if((b=A[3])&&d.getElementsByClassName)return s.apply(h,d.getElementsByClassName(b)),h}if(!ee[u+" "]&&(!p||!p.test(u))){if(O=u,M=d,_===1&&(It.test(u)||it.test(u))){for(M=Lt.test(u)&&Rt(d.parentNode)||d,(M!=d||!L.scope)&&((D=d.getAttribute("id"))?D=i.escapeSelector(D):d.setAttribute("id",D=w)),W=st(u),C=W.length;C--;)W[C]=(D?"#"+D:":scope")+" "+gt(W[C]);O=W.join(",")}try{return s.apply(h,M.querySelectorAll(O)),h}catch{ee(u,!0)}finally{D===w&&d.removeAttribute("id")}}}return Pn(u.replace(Je,"$1"),d,h,y)}function ht(){var u=[];function d(h,y){return u.push(h+" ")>t.cacheLength&&delete d[u.shift()],d[h+" "]=y}return d}function pe(u){return u[w]=!0,u}function Ue(u){var d=a.createElement("fieldset");try{return!!u(d)}catch{return!1}finally{d.parentNode&&d.parentNode.removeChild(d),d=null}}function Lr(u){return function(d){return Q(d,"input")&&d.type===u}}function Rr(u){return function(d){return(Q(d,"input")||Q(d,"button"))&&d.type===u}}function kn(u){return function(d){return"form"in d?d.parentNode&&d.disabled===!1?"label"in d?"label"in d.parentNode?d.parentNode.disabled===u:d.disabled===u:d.isDisabled===u||d.isDisabled!==!u&&Mr(d)===u:d.disabled===u:"label"in d?d.disabled===u:!1}}function Me(u){return pe(function(d){return d=+d,pe(function(h,y){for(var b,C=u([],h.length,d),N=C.length;N--;)h[b=C[N]]&&(h[b]=!(y[b]=h[b]))})})}function Rt(u){return u&&typeof u.getElementsByTagName<"u"&&u}function ke(u){var d,h=u?u.ownerDocument||u:we;return h==a||h.nodeType!==9||!h.documentElement||(a=h,c=a.documentElement,f=!i.isXMLDoc(a),m=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&we!=a&&(d=a.defaultView)&&d.top!==d&&d.addEventListener("unload",Hr),L.getById=Ue(function(y){return c.appendChild(y).id=i.expando,!a.getElementsByName||!a.getElementsByName(i.expando).length}),L.disconnectedMatch=Ue(function(y){return m.call(y,"*")}),L.scope=Ue(function(){return a.querySelectorAll(":scope")}),L.cssHas=Ue(function(){try{return a.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),L.getById?(t.filter.ID=function(y){var b=y.replace(Se,Ne);return function(C){return C.getAttribute("id")===b}},t.find.ID=function(y,b){if(typeof b.getElementById<"u"&&f){var C=b.getElementById(y);return C?[C]:[]}}):(t.filter.ID=function(y){var b=y.replace(Se,Ne);return function(C){var N=typeof C.getAttributeNode<"u"&&C.getAttributeNode("id");return N&&N.value===b}},t.find.ID=function(y,b){if(typeof b.getElementById<"u"&&f){var C,N,D,A=b.getElementById(y);if(A){if(C=A.getAttributeNode("id"),C&&C.value===y)return[A];for(D=b.getElementsByName(y),N=0;A=D[N++];)if(C=A.getAttributeNode("id"),C&&C.value===y)return[A]}return[]}}),t.find.TAG=function(y,b){return typeof b.getElementsByTagName<"u"?b.getElementsByTagName(y):b.querySelectorAll(y)},t.find.CLASS=function(y,b){if(typeof b.getElementsByClassName<"u"&&f)return b.getElementsByClassName(y)},p=[],Ue(function(y){var b;c.appendChild(y).innerHTML="<a id='"+w+"' href='' disabled='disabled'></a><select id='"+w+"-\r\\' disabled='disabled'><option selected=''></option></select>",y.querySelectorAll("[selected]").length||p.push("\\["+G+"*(?:value|"+ye+")"),y.querySelectorAll("[id~="+w+"-]").length||p.push("~="),y.querySelectorAll("a#"+w+"+*").length||p.push(".#.+[+~]"),y.querySelectorAll(":checked").length||p.push(":checked"),b=a.createElement("input"),b.setAttribute("type","hidden"),y.appendChild(b).setAttribute("name","D"),c.appendChild(y).disabled=!0,y.querySelectorAll(":disabled").length!==2&&p.push(":enabled",":disabled"),b=a.createElement("input"),b.setAttribute("name",""),y.appendChild(b),y.querySelectorAll("[name='']").length||p.push("\\["+G+"*name"+G+"*="+G+`*(?:''|"")`)}),L.cssHas||p.push(":has"),p=p.length&&new RegExp(p.join("|")),Z=function(y,b){if(y===b)return o=!0,0;var C=!y.compareDocumentPosition-!b.compareDocumentPosition;return C||(C=(y.ownerDocument||y)==(b.ownerDocument||b)?y.compareDocumentPosition(b):1,C&1||!L.sortDetached&&b.compareDocumentPosition(y)===C?y===a||y.ownerDocument==we&&X.contains(we,y)?-1:b===a||b.ownerDocument==we&&X.contains(we,b)?1:r?te.call(r,y)-te.call(r,b):0:C&4?-1:1)}),a}X.matches=function(u,d){return X(u,null,null,d)},X.matchesSelector=function(u,d){if(ke(u),f&&!ee[d+" "]&&(!p||!p.test(d)))try{var h=m.call(u,d);if(h||L.disconnectedMatch||u.document&&u.document.nodeType!==11)return h}catch{ee(d,!0)}return X(d,a,null,[u]).length>0},X.contains=function(u,d){return(u.ownerDocument||u)!=a&&ke(u),i.contains(u,d)},X.attr=function(u,d){(u.ownerDocument||u)!=a&&ke(u);var h=t.attrHandle[d.toLowerCase()],y=h&&je.call(t.attrHandle,d.toLowerCase())?h(u,d,!f):void 0;return y!==void 0?y:u.getAttribute(d)},X.error=function(u){throw new Error("Syntax error, unrecognized expression: "+u)},i.uniqueSort=function(u){var d,h=[],y=0,b=0;if(o=!L.sortStable,r=!L.sortStable&&E.call(u,0),In.call(u,Z),o){for(;d=u[b++];)d===u[b]&&(y=h.push(b));for(;y--;)Ln.call(u,h[y],1)}return r=null,u},i.fn.uniqueSort=function(){return this.pushStack(i.uniqueSort(E.apply(this)))},t=i.expr={cacheLength:50,createPseudo:pe,match:xe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(u){return u[1]=u[1].replace(Se,Ne),u[3]=(u[3]||u[4]||u[5]||"").replace(Se,Ne),u[2]==="~="&&(u[3]=" "+u[3]+" "),u.slice(0,4)},CHILD:function(u){return u[1]=u[1].toLowerCase(),u[1].slice(0,3)==="nth"?(u[3]||X.error(u[0]),u[4]=+(u[4]?u[5]+(u[6]||1):2*(u[3]==="even"||u[3]==="odd")),u[5]=+(u[7]+u[8]||u[3]==="odd")):u[3]&&X.error(u[0]),u},PSEUDO:function(u){var d,h=!u[6]&&u[2];return xe.CHILD.test(u[0])?null:(u[3]?u[2]=u[4]||u[5]||"":h&&me.test(h)&&(d=st(h,!0))&&(d=h.indexOf(")",h.length-d)-h.length)&&(u[0]=u[0].slice(0,d),u[2]=h.slice(0,d)),u.slice(0,3))}},filter:{TAG:function(u){var d=u.replace(Se,Ne).toLowerCase();return u==="*"?function(){return!0}:function(h){return Q(h,d)}},CLASS:function(u){var d=q[u+" "];return d||(d=new RegExp("(^|"+G+")"+u+"("+G+"|$)"))&&q(u,function(h){return d.test(typeof h.className=="string"&&h.className||typeof h.getAttribute<"u"&&h.getAttribute("class")||"")})},ATTR:function(u,d,h){return function(y){var b=X.attr(y,u);return b==null?d==="!=":d?(b+="",d==="="?b===h:d==="!="?b!==h:d==="^="?h&&b.indexOf(h)===0:d==="*="?h&&b.indexOf(h)>-1:d==="$="?h&&b.slice(-h.length)===h:d==="~="?(" "+b.replace(U," ")+" ").indexOf(h)>-1:d==="|="?b===h||b.slice(0,h.length+1)===h+"-":!1):!0}},CHILD:function(u,d,h,y,b){var C=u.slice(0,3)!=="nth",N=u.slice(-4)!=="last",D=d==="of-type";return y===1&&b===0?function(A){return!!A.parentNode}:function(A,W,O){var M,_,j,J,ae,ne=C!==N?"nextSibling":"previousSibling",le=A.parentNode,be=D&&A.nodeName.toLowerCase(),Xe=!O&&!D,re=!1;if(le){if(C){for(;ne;){for(j=A;j=j[ne];)if(D?Q(j,be):j.nodeType===1)return!1;ae=ne=u==="only"&&!ae&&"nextSibling"}return!0}if(ae=[N?le.firstChild:le.lastChild],N&&Xe){for(_=le[w]||(le[w]={}),M=_[u]||[],J=M[0]===g&&M[1],re=J&&M[2],j=J&&le.childNodes[J];j=++J&&j&&j[ne]||(re=J=0)||ae.pop();)if(j.nodeType===1&&++re&&j===A){_[u]=[g,J,re];break}}else if(Xe&&(_=A[w]||(A[w]={}),M=_[u]||[],J=M[0]===g&&M[1],re=J),re===!1)for(;(j=++J&&j&&j[ne]||(re=J=0)||ae.pop())&&!((D?Q(j,be):j.nodeType===1)&&++re&&(Xe&&(_=j[w]||(j[w]={}),_[u]=[g,re]),j===A)););return re-=b,re===y||re%y===0&&re/y>=0}}},PSEUDO:function(u,d){var h,y=t.pseudos[u]||t.setFilters[u.toLowerCase()]||X.error("unsupported pseudo: "+u);return y[w]?y(d):y.length>1?(h=[u,u,"",d],t.setFilters.hasOwnProperty(u.toLowerCase())?pe(function(b,C){for(var N,D=y(b,d),A=D.length;A--;)N=te.call(b,D[A]),b[N]=!(C[N]=D[A])}):function(b){return y(b,0,h)}):y}},pseudos:{not:pe(function(u){var d=[],h=[],y=$t(u.replace(Je,"$1"));return y[w]?pe(function(b,C,N,D){for(var A,W=y(b,null,D,[]),O=b.length;O--;)(A=W[O])&&(b[O]=!(C[O]=A))}):function(b,C,N){return d[0]=b,y(d,null,N,h),d[0]=null,!h.pop()}}),has:pe(function(u){return function(d){return X(u,d).length>0}}),contains:pe(function(u){return u=u.replace(Se,Ne),function(d){return(d.textContent||i.text(d)).indexOf(u)>-1}}),lang:pe(function(u){return ot.test(u||"")||X.error("unsupported lang: "+u),u=u.replace(Se,Ne).toLowerCase(),function(d){var h;do if(h=f?d.lang:d.getAttribute("xml:lang")||d.getAttribute("lang"))return h=h.toLowerCase(),h===u||h.indexOf(u+"-")===0;while((d=d.parentNode)&&d.nodeType===1);return!1}}),target:function(u){var d=l.location&&l.location.hash;return d&&d.slice(1)===u.id},root:function(u){return u===c},focus:function(u){return u===Ir()&&a.hasFocus()&&!!(u.type||u.href||~u.tabIndex)},enabled:kn(!1),disabled:kn(!0),checked:function(u){return Q(u,"input")&&!!u.checked||Q(u,"option")&&!!u.selected},selected:function(u){return u.parentNode&&u.parentNode.selectedIndex,u.selected===!0},empty:function(u){for(u=u.firstChild;u;u=u.nextSibling)if(u.nodeType<6)return!1;return!0},parent:function(u){return!t.pseudos.empty(u)},header:function(u){return De.test(u.nodeName)},input:function(u){return Ee.test(u.nodeName)},button:function(u){return Q(u,"input")&&u.type==="button"||Q(u,"button")},text:function(u){var d;return Q(u,"input")&&u.type==="text"&&((d=u.getAttribute("type"))==null||d.toLowerCase()==="text")},first:Me(function(){return[0]}),last:Me(function(u,d){return[d-1]}),eq:Me(function(u,d,h){return[h<0?h+d:h]}),even:Me(function(u,d){for(var h=0;h<d;h+=2)u.push(h);return u}),odd:Me(function(u,d){for(var h=1;h<d;h+=2)u.push(h);return u}),lt:Me(function(u,d,h){var y;for(h<0?y=h+d:h>d?y=d:y=h;--y>=0;)u.push(y);return u}),gt:Me(function(u,d,h){for(var y=h<0?h+d:h;++y<d;)u.push(y);return u})}},t.pseudos.nth=t.pseudos.eq;for(e in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=Lr(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=Rr(e);function jn(){}jn.prototype=t.filters=t.pseudos,t.setFilters=new jn;function st(u,d){var h,y,b,C,N,D,A,W=V[u+" "];if(W)return d?0:W.slice(0);for(N=u,D=[],A=t.preFilter;N;){(!h||(y=Y.exec(N)))&&(y&&(N=N.slice(y[0].length)||N),D.push(b=[])),h=!1,(y=it.exec(N))&&(h=y.shift(),b.push({value:h,type:y[0].replace(Je," ")}),N=N.slice(h.length));for(C in t.filter)(y=xe[C].exec(N))&&(!A[C]||(y=A[C](y)))&&(h=y.shift(),b.push({value:h,type:C,matches:y}),N=N.slice(h.length));if(!h)break}return d?N.length:N?X.error(u):V(u,D).slice(0)}function gt(u){for(var d=0,h=u.length,y="";d<h;d++)y+=u[d].value;return y}function yt(u,d,h){var y=d.dir,b=d.next,C=b||y,N=h&&C==="parentNode",D=T++;return d.first?function(A,W,O){for(;A=A[y];)if(A.nodeType===1||N)return u(A,W,O);return!1}:function(A,W,O){var M,_,j=[g,D];if(O){for(;A=A[y];)if((A.nodeType===1||N)&&u(A,W,O))return!0}else for(;A=A[y];)if(A.nodeType===1||N)if(_=A[w]||(A[w]={}),b&&Q(A,b))A=A[y]||A;else{if((M=_[C])&&M[0]===g&&M[1]===D)return j[2]=M[2];if(_[C]=j,j[2]=u(A,W,O))return!0}return!1}}function Ft(u){return u.length>1?function(d,h,y){for(var b=u.length;b--;)if(!u[b](d,h,y))return!1;return!0}:u[0]}function Fr(u,d,h){for(var y=0,b=d.length;y<b;y++)X(u,d[y],h);return h}function vt(u,d,h,y,b){for(var C,N=[],D=0,A=u.length,W=d!=null;D<A;D++)(C=u[D])&&(!h||h(C,y,b))&&(N.push(C),W&&d.push(D));return N}function Wt(u,d,h,y,b,C){return y&&!y[w]&&(y=Wt(y)),b&&!b[w]&&(b=Wt(b,C)),pe(function(N,D,A,W){var O,M,_,j,J=[],ae=[],ne=D.length,le=N||Fr(d||"*",A.nodeType?[A]:A,[]),be=u&&(N||!d)?vt(le,J,u,A,W):le;if(h?(j=b||(N?u:ne||y)?[]:D,h(be,j,A,W)):j=be,y)for(O=vt(j,ae),y(O,[],A,W),M=O.length;M--;)(_=O[M])&&(j[ae[M]]=!(be[ae[M]]=_));if(N){if(b||u){if(b){for(O=[],M=j.length;M--;)(_=j[M])&&O.push(be[M]=_);b(null,j=[],O,W)}for(M=j.length;M--;)(_=j[M])&&(O=b?te.call(N,_):J[M])>-1&&(N[O]=!(D[O]=_))}}else j=vt(j===D?j.splice(ne,j.length):j),b?b(null,D,j,W):s.apply(D,j)})}function _t(u){for(var d,h,y,b=u.length,C=t.relative[u[0].type],N=C||t.relative[" "],D=C?1:0,A=yt(function(M){return M===d},N,!0),W=yt(function(M){return te.call(d,M)>-1},N,!0),O=[function(M,_,j){var J=!C&&(j||_!=n)||((d=_).nodeType?A(M,_,j):W(M,_,j));return d=null,J}];D<b;D++)if(h=t.relative[u[D].type])O=[yt(Ft(O),h)];else{if(h=t.filter[u[D].type].apply(null,u[D].matches),h[w]){for(y=++D;y<b&&!t.relative[u[y].type];y++);return Wt(D>1&&Ft(O),D>1&&gt(u.slice(0,D-1).concat({value:u[D-2].type===" "?"*":""})).replace(Je,"$1"),h,D<y&&_t(u.slice(D,y)),y<b&&_t(u=u.slice(y)),y<b&&gt(u))}O.push(h)}return Ft(O)}function Wr(u,d){var h=d.length>0,y=u.length>0,b=function(C,N,D,A,W){var O,M,_,j=0,J="0",ae=C&&[],ne=[],le=n,be=C||y&&t.find.TAG("*",W),Xe=g+=le==null?1:Math.random()||.1,re=be.length;for(W&&(n=N==a||N||W);J!==re&&(O=be[J])!=null;J++){if(y&&O){for(M=0,!N&&O.ownerDocument!=a&&(ke(O),D=!f);_=u[M++];)if(_(O,N||a,D)){s.call(A,O);break}W&&(g=Xe)}h&&((O=!_&&O)&&j--,C&&ae.push(O))}if(j+=J,h&&J!==j){for(M=0;_=d[M++];)_(ae,ne,N,D);if(C){if(j>0)for(;J--;)ae[J]||ne[J]||(ne[J]=Mn.call(A));ne=vt(ne)}s.apply(A,ne),W&&!C&&ne.length>0&&j+d.length>1&&i.uniqueSort(A)}return W&&(g=Xe,n=le),ae};return h?pe(b):b}function $t(u,d){var h,y=[],b=[],C=F[u+" "];if(!C){for(d||(d=st(u)),h=d.length;h--;)C=_t(d[h]),C[w]?y.push(C):b.push(C);C=F(u,Wr(b,y)),C.selector=u}return C}function Pn(u,d,h,y){var b,C,N,D,A,W=typeof u=="function"&&u,O=!y&&st(u=W.selector||u);if(h=h||[],O.length===1){if(C=O[0]=O[0].slice(0),C.length>2&&(N=C[0]).type==="ID"&&d.nodeType===9&&f&&t.relative[C[1].type]){if(d=(t.find.ID(N.matches[0].replace(Se,Ne),d)||[])[0],d)W&&(d=d.parentNode);else return h;u=u.slice(C.shift().value.length)}for(b=xe.needsContext.test(u)?0:C.length;b--&&(N=C[b],!t.relative[D=N.type]);)if((A=t.find[D])&&(y=A(N.matches[0].replace(Se,Ne),Lt.test(C[0].type)&&Rt(d.parentNode)||d))){if(C.splice(b,1),u=y.length&&gt(C),!u)return s.apply(h,y),h;break}}return(W||$t(u,O))(y,d,!f,h,!d||Lt.test(u)&&Rt(d.parentNode)||d),h}L.sortStable=w.split("").sort(Z).join("")===w,ke(),L.sortDetached=Ue(function(u){return u.compareDocumentPosition(a.createElement("fieldset"))&1}),i.find=X,i.expr[":"]=i.expr.pseudos,i.unique=i.uniqueSort,X.compile=$t,X.select=Pn,X.setDocument=ke,X.tokenize=st,X.escape=i.escapeSelector,X.getText=i.text,X.isXML=i.isXMLDoc,X.selectors=i.expr,X.support=i.support,X.uniqueSort=i.uniqueSort})();var Re=function(e,t,n){for(var r=[],o=n!==void 0;(e=e[t])&&e.nodeType!==9;)if(e.nodeType===1){if(o&&i(e).is(n))break;r.push(e)}return r},Vt=function(e,t){for(var n=[];e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n},Ut=i.expr.match.needsContext,Xt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function bt(e,t,n){return R(t)?i.grep(e,function(r,o){return!!t.call(r,o,r)!==n}):t.nodeType?i.grep(e,function(r){return r===t!==n}):typeof t!="string"?i.grep(e,function(r){return te.call(t,r)>-1!==n}):i.filter(t,e,n)}i.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),t.length===1&&r.nodeType===1?i.find.matchesSelector(r,e)?[r]:[]:i.find.matches(e,i.grep(t,function(o){return o.nodeType===1}))},i.fn.extend({find:function(e){var t,n,r=this.length,o=this;if(typeof e!="string")return this.pushStack(i(e).filter(function(){for(t=0;t<r;t++)if(i.contains(o[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)i.find(e,o[t],n);return r>1?i.uniqueSort(n):n},filter:function(e){return this.pushStack(bt(this,e||[],!1))},not:function(e){return this.pushStack(bt(this,e||[],!0))},is:function(e){return!!bt(this,typeof e=="string"&&Ut.test(e)?i(e):e||[],!1).length}});var Gt,Wn=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,_n=i.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||Gt,typeof e=="string")if(e[0]==="<"&&e[e.length-1]===">"&&e.length>=3?r=[null,e,null]:r=Wn.exec(e),r&&(r[1]||!t))if(r[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:I,!0)),Xt.test(r[1])&&i.isPlainObject(t))for(r in t)R(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}else return o=I.getElementById(r[2]),o&&(this[0]=o,this.length=1),this;else return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);else{if(e.nodeType)return this[0]=e,this.length=1,this;if(R(e))return n.ready!==void 0?n.ready(e):e(i)}return i.makeArray(e,this)};_n.prototype=i.fn,Gt=i(I);var $n=/^(?:parents|prev(?:Until|All))/,Bn={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({has:function(e){var t=i(e,this),n=t.length;return this.filter(function(){for(var r=0;r<n;r++)if(i.contains(this,t[r]))return!0})},closest:function(e,t){var n,r=0,o=this.length,s=[],a=typeof e!="string"&&i(e);if(!Ut.test(e)){for(;r<o;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:n.nodeType===1&&i.find.matchesSelector(n,e))){s.push(n);break}}return this.pushStack(s.length>1?i.uniqueSort(s):s)},index:function(e){return e?typeof e=="string"?te.call(i(e),this[0]):te.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 Jt(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 Re(e,"parentNode")},parentsUntil:function(e,t,n){return Re(e,"parentNode",n)},next:function(e){return Jt(e,"nextSibling")},prev:function(e){return Jt(e,"previousSibling")},nextAll:function(e){return Re(e,"nextSibling")},prevAll:function(e){return Re(e,"previousSibling")},nextUntil:function(e,t,n){return Re(e,"nextSibling",n)},prevUntil:function(e,t,n){return Re(e,"previousSibling",n)},siblings:function(e){return Vt((e.parentNode||{}).firstChild,e)},children:function(e){return Vt(e.firstChild)},contents:function(e){return e.contentDocument!=null&&S(e.contentDocument)?e.contentDocument:(Q(e,"template")&&(e=e.content||e),i.merge([],e.childNodes))}},function(e,t){i.fn[e]=function(n,r){var o=i.map(this,t,n);return e.slice(-5)!=="Until"&&(r=n),r&&typeof r=="string"&&(o=i.filter(r,o)),this.length>1&&(Bn[e]||i.uniqueSort(o),$n.test(e)&&o.reverse()),this.pushStack(o)}});var he=/[^\x20\t\r\n\f]+/g;function zn(e){var t={};return i.each(e.match(he)||[],function(n,r){t[r]=!0}),t}i.Callbacks=function(e){e=typeof e=="string"?zn(e):i.extend({},e);var t,n,r,o,s=[],a=[],c=-1,f=function(){for(o=o||e.once,r=t=!0;a.length;c=-1)for(n=a.shift();++c<s.length;)s[c].apply(n[0],n[1])===!1&&e.stopOnFalse&&(c=s.length,n=!1);e.memory||(n=!1),t=!1,o&&(n?s=[]:s="")},p={add:function(){return s&&(n&&!t&&(c=s.length-1,a.push(n)),function m(w){i.each(w,function(g,T){R(T)?(!e.unique||!p.has(T))&&s.push(T):T&&T.length&&Le(T)!=="string"&&m(T)})}(arguments),n&&!t&&f()),this},remove:function(){return i.each(arguments,function(m,w){for(var g;(g=i.inArray(w,s,g))>-1;)s.splice(g,1),g<=c&&c--}),this},has:function(m){return m?i.inArray(m,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return o=a=[],s=n="",this},disabled:function(){return!s},lock:function(){return o=a=[],!n&&!t&&(s=n=""),this},locked:function(){return!!o},fireWith:function(m,w){return o||(w=w||[],w=[m,w.slice?w.slice():w],a.push(w),t||f()),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!r}};return p};function Fe(e){return e}function at(e){throw e}function Qt(e,t,n,r){var o;try{e&&R(o=e.promise)?o.call(e).done(t).fail(n):e&&R(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(s){n.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"]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(s){return r.then(null,s)},pipe:function(){var s=arguments;return i.Deferred(function(a){i.each(t,function(c,f){var p=R(s[f[4]])&&s[f[4]];o[f[1]](function(){var m=p&&p.apply(this,arguments);m&&R(m.promise)?m.promise().progress(a.notify).done(a.resolve).fail(a.reject):a[f[0]+"With"](this,p?[m]:arguments)})}),s=null}).promise()},then:function(s,a,c){var f=0;function p(m,w,g,T){return function(){var q=this,V=arguments,F=function(){var Z,ye;if(!(m<f)){if(Z=g.apply(q,V),Z===w.promise())throw new TypeError("Thenable self-resolution");ye=Z&&(typeof Z=="object"||typeof Z=="function")&&Z.then,R(ye)?T?ye.call(Z,p(f,w,Fe,T),p(f,w,at,T)):(f++,ye.call(Z,p(f,w,Fe,T),p(f,w,at,T),p(f,w,Fe,w.notifyWith))):(g!==Fe&&(q=void 0,V=[Z]),(T||w.resolveWith)(q,V))}},ee=T?F:function(){try{F()}catch(Z){i.Deferred.exceptionHook&&i.Deferred.exceptionHook(Z,ee.error),m+1>=f&&(g!==at&&(q=void 0,V=[Z]),w.rejectWith(q,V))}};m?ee():(i.Deferred.getErrorHook?ee.error=i.Deferred.getErrorHook():i.Deferred.getStackHook&&(ee.error=i.Deferred.getStackHook()),l.setTimeout(ee))}}return i.Deferred(function(m){t[0][3].add(p(0,m,R(c)?c:Fe,m.notifyWith)),t[1][3].add(p(0,m,R(s)?s:Fe)),t[2][3].add(p(0,m,R(a)?a:at))}).promise()},promise:function(s){return s!=null?i.extend(s,r):r}},o={};return i.each(t,function(s,a){var c=a[2],f=a[5];r[a[1]]=c.add,f&&c.add(function(){n=f},t[3-s][2].disable,t[3-s][3].disable,t[0][2].lock,t[0][3].lock),c.add(a[3].fire),o[a[0]]=function(){return o[a[0]+"With"](this===o?void 0:this,arguments),this},o[a[0]+"With"]=c.fireWith}),r.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),o=E.call(arguments),s=i.Deferred(),a=function(c){return function(f){r[c]=this,o[c]=arguments.length>1?E.call(arguments):f,--t||s.resolveWith(r,o)}};if(t<=1&&(Qt(e,s.done(a(n)).resolve,s.reject,!t),s.state()==="pending"||R(o[n]&&o[n].then)))return s.then();for(;n--;)Qt(o[n],a(n),s.reject);return s.promise()}});var Vn=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;i.Deferred.exceptionHook=function(e,t){l.console&&l.console.warn&&e&&Vn.test(e.name)&&l.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},i.readyException=function(e){l.setTimeout(function(){throw e})};var wt=i.Deferred();i.fn.ready=function(e){return wt.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)&&wt.resolveWith(I,[i]))}}),i.ready.then=wt.then;function ut(){I.removeEventListener("DOMContentLoaded",ut),l.removeEventListener("load",ut),i.ready()}I.readyState==="complete"||I.readyState!=="loading"&&!I.documentElement.doScroll?l.setTimeout(i.ready):(I.addEventListener("DOMContentLoaded",ut),l.addEventListener("load",ut));var Te=function(e,t,n,r,o,s,a){var c=0,f=e.length,p=n==null;if(Le(n)==="object"){o=!0;for(c in n)Te(e,t,c,n[c],!0,s,a)}else if(r!==void 0&&(o=!0,R(r)||(a=!0),p&&(a?(t.call(e,r),t=null):(p=t,t=function(m,w,g){return p.call(i(m),g)})),t))for(;c<f;c++)t(e[c],n,a?r:r.call(e[c],c,t(e[c],n)));return o?e:p?t.call(e):f?t(e[0],n):s},Un=/^-ms-/,Xn=/-([a-z])/g;function Gn(e,t){return t.toUpperCase()}function ge(e){return e.replace(Un,"ms-").replace(Xn,Gn)}var Qe=function(e){return e.nodeType===1||e.nodeType===9||!+e.nodeType};function Ye(){this.expando=i.expando+Ye.uid++}Ye.uid=1,Ye.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Qe(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,o=this.cache(e);if(typeof t=="string")o[ge(t)]=n;else for(r in t)o[ge(r)]=t[r];return o},get:function(e,t){return t===void 0?this.cache(e):e[this.expando]&&e[this.expando][ge(t)]},access:function(e,t,n){return t===void 0||t&&typeof t=="string"&&n===void 0?this.get(e,t):(this.set(e,t,n),n!==void 0?n:t)},remove:function(e,t){var n,r=e[this.expando];if(r!==void 0){if(t!==void 0)for(Array.isArray(t)?t=t.map(ge):(t=ge(t),t=t in r?[t]:t.match(he)||[]),n=t.length;n--;)delete r[t[n]];(t===void 0||i.isEmptyObject(r))&&(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 k=new Ye,ie=new Ye,Jn=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Qn=/[A-Z]/g;function Yn(e){return e==="true"?!0:e==="false"?!1:e==="null"?null:e===+e+""?+e:Jn.test(e)?JSON.parse(e):e}function Yt(e,t,n){var r;if(n===void 0&&e.nodeType===1)if(r="data-"+t.replace(Qn,"-$&").toLowerCase(),n=e.getAttribute(r),typeof n=="string"){try{n=Yn(n)}catch{}ie.set(e,t,n)}else n=void 0;return n}i.extend({hasData:function(e){return ie.hasData(e)||k.hasData(e)},data:function(e,t,n){return ie.access(e,t,n)},removeData:function(e,t){ie.remove(e,t)},_data:function(e,t,n){return k.access(e,t,n)},_removeData:function(e,t){k.remove(e,t)}}),i.fn.extend({data:function(e,t){var n,r,o,s=this[0],a=s&&s.attributes;if(e===void 0){if(this.length&&(o=ie.get(s),s.nodeType===1&&!k.get(s,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,r.indexOf("data-")===0&&(r=ge(r.slice(5)),Yt(s,r,o[r])));k.set(s,"hasDataAttrs",!0)}return o}return typeof e=="object"?this.each(function(){ie.set(this,e)}):Te(this,function(c){var f;if(s&&c===void 0)return f=ie.get(s,e),f!==void 0||(f=Yt(s,e),f!==void 0)?f:void 0;this.each(function(){ie.set(this,e,c)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){ie.remove(this,e)})}}),i.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=k.get(e,t),n&&(!r||Array.isArray(n)?r=k.access(e,t,i.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=i.queue(e,t),r=n.length,o=n.shift(),s=i._queueHooks(e,t),a=function(){i.dequeue(e,t)};o==="inprogress"&&(o=n.shift(),r--),o&&(t==="fx"&&n.unshift("inprogress"),delete s.stop,o.call(e,a,s)),!r&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return k.get(e,n)||k.access(e,n,{empty:i.Callbacks("once memory").add(function(){k.remove(e,[t+"queue",n])})})}}),i.fn.extend({queue:function(e,t){var n=2;return typeof e!="string"&&(t=e,e="fx",n--),arguments.length<n?i.queue(this[0],e):t===void 0?this:this.each(function(){var r=i.queue(this,e,t);i._queueHooks(this,e),e==="fx"&&r[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 n,r=1,o=i.Deferred(),s=this,a=this.length,c=function(){--r||o.resolveWith(s,[s])};for(typeof e!="string"&&(t=e,e=void 0),e=e||"fx";a--;)n=k.get(s[a],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(c));return c(),o.promise(t)}});var Kt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ke=new RegExp("^(?:([+-])=|)("+Kt+")([a-z%]*)$","i"),Ce=["Top","Right","Bottom","Left"],Pe=I.documentElement,We=function(e){return i.contains(e.ownerDocument,e)},Kn={composed:!0};Pe.getRootNode&&(We=function(e){return i.contains(e.ownerDocument,e)||e.getRootNode(Kn)===e.ownerDocument});var ft=function(e,t){return e=t||e,e.style.display==="none"||e.style.display===""&&We(e)&&i.css(e,"display")==="none"};function Zt(e,t,n,r){var o,s,a=20,c=r?function(){return r.cur()}:function(){return i.css(e,t,"")},f=c(),p=n&&n[3]||(i.cssNumber[t]?"":"px"),m=e.nodeType&&(i.cssNumber[t]||p!=="px"&&+f)&&Ke.exec(i.css(e,t));if(m&&m[3]!==p){for(f=f/2,p=p||m[3],m=+f||1;a--;)i.style(e,t,m+p),(1-s)*(1-(s=c()/f||.5))<=0&&(a=0),m=m/s;m=m*2,i.style(e,t,m+p),n=n||[]}return n&&(m=+m||+f||0,o=n[1]?m+(n[1]+1)*n[2]:+n[2],r&&(r.unit=p,r.start=m,r.end=o)),o}var en={};function Zn(e){var t,n=e.ownerDocument,r=e.nodeName,o=en[r];return o||(t=n.body.appendChild(n.createElement(r)),o=i.css(t,"display"),t.parentNode.removeChild(t),o==="none"&&(o="block"),en[r]=o,o)}function _e(e,t){for(var n,r,o=[],s=0,a=e.length;s<a;s++)r=e[s],r.style&&(n=r.style.display,t?(n==="none"&&(o[s]=k.get(r,"display")||null,o[s]||(r.style.display="")),r.style.display===""&&ft(r)&&(o[s]=Zn(r))):n!=="none"&&(o[s]="none",k.set(r,"display",n)));for(s=0;s<a;s++)o[s]!=null&&(e[s].style.display=o[s]);return e}i.fn.extend({show:function(){return _e(this,!0)},hide:function(){return _e(this)},toggle:function(e){return typeof e=="boolean"?e?this.show():this.hide():this.each(function(){ft(this)?i(this).show():i(this).hide()})}});var Ze=/^(?:checkbox|radio)$/i,tn=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,nn=/^$|^module$|\/(?:java|ecma)script/i;(function(){var e=I.createDocumentFragment(),t=e.appendChild(I.createElement("div")),n=I.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),L.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",L.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,t.innerHTML="<option></option>",L.option=!!t.lastChild})();var fe={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,"",""]};fe.tbody=fe.tfoot=fe.colgroup=fe.caption=fe.thead,fe.th=fe.td,L.option||(fe.optgroup=fe.option=[1,"<select multiple='multiple'>","</select>"]);function oe(e,t){var n;return typeof e.getElementsByTagName<"u"?n=e.getElementsByTagName(t||"*"):typeof e.querySelectorAll<"u"?n=e.querySelectorAll(t||"*"):n=[],t===void 0||t&&Q(e,t)?i.merge([e],n):n}function Tt(e,t){for(var n=0,r=e.length;n<r;n++)k.set(e[n],"globalEval",!t||k.get(t[n],"globalEval"))}var er=/<|&#?\w+;/;function rn(e,t,n,r,o){for(var s,a,c,f,p,m,w=t.createDocumentFragment(),g=[],T=0,q=e.length;T<q;T++)if(s=e[T],s||s===0)if(Le(s)==="object")i.merge(g,s.nodeType?[s]:s);else if(!er.test(s))g.push(t.createTextNode(s));else{for(a=a||w.appendChild(t.createElement("div")),c=(tn.exec(s)||["",""])[1].toLowerCase(),f=fe[c]||fe._default,a.innerHTML=f[1]+i.htmlPrefilter(s)+f[2],m=f[0];m--;)a=a.lastChild;i.merge(g,a.childNodes),a=w.firstChild,a.textContent=""}for(w.textContent="",T=0;s=g[T++];){if(r&&i.inArray(s,r)>-1){o&&o.push(s);continue}if(p=We(s),a=oe(w.appendChild(s),"script"),p&&Tt(a),n)for(m=0;s=a[m++];)nn.test(s.type||"")&&n.push(s)}return w}var on=/^([^.]*)(?:\.(.+)|)/;function $e(){return!0}function Be(){return!1}function Ct(e,t,n,r,o,s){var a,c;if(typeof t=="object"){typeof n!="string"&&(r=r||n,n=void 0);for(c in t)Ct(e,c,n,r,t[c],s);return e}if(r==null&&o==null?(o=n,r=n=void 0):o==null&&(typeof n=="string"?(o=r,r=void 0):(o=r,r=n,n=void 0)),o===!1)o=Be;else if(!o)return e;return s===1&&(a=o,o=function(f){return i().off(f),a.apply(this,arguments)},o.guid=a.guid||(a.guid=i.guid++)),e.each(function(){i.event.add(this,t,o,r,n)})}i.event={global:{},add:function(e,t,n,r,o){var s,a,c,f,p,m,w,g,T,q,V,F=k.get(e);if(Qe(e))for(n.handler&&(s=n,n=s.handler,o=s.selector),o&&i.find.matchesSelector(Pe,o),n.guid||(n.guid=i.guid++),(f=F.events)||(f=F.events=Object.create(null)),(a=F.handle)||(a=F.handle=function(ee){return typeof i<"u"&&i.event.triggered!==ee.type?i.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(he)||[""],p=t.length;p--;)c=on.exec(t[p])||[],T=V=c[1],q=(c[2]||"").split(".").sort(),T&&(w=i.event.special[T]||{},T=(o?w.delegateType:w.bindType)||T,w=i.event.special[T]||{},m=i.extend({type:T,origType:V,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&i.expr.match.needsContext.test(o),namespace:q.join(".")},s),(g=f[T])||(g=f[T]=[],g.delegateCount=0,(!w.setup||w.setup.call(e,r,q,a)===!1)&&e.addEventListener&&e.addEventListener(T,a)),w.add&&(w.add.call(e,m),m.handler.guid||(m.handler.guid=n.guid)),o?g.splice(g.delegateCount++,0,m):g.push(m),i.event.global[T]=!0)},remove:function(e,t,n,r,o){var s,a,c,f,p,m,w,g,T,q,V,F=k.hasData(e)&&k.get(e);if(!(!F||!(f=F.events))){for(t=(t||"").match(he)||[""],p=t.length;p--;){if(c=on.exec(t[p])||[],T=V=c[1],q=(c[2]||"").split(".").sort(),!T){for(T in f)i.event.remove(e,T+t[p],n,r,!0);continue}for(w=i.event.special[T]||{},T=(r?w.delegateType:w.bindType)||T,g=f[T]||[],c=c[2]&&new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=s=g.length;s--;)m=g[s],(o||V===m.origType)&&(!n||n.guid===m.guid)&&(!c||c.test(m.namespace))&&(!r||r===m.selector||r==="**"&&m.selector)&&(g.splice(s,1),m.selector&&g.delegateCount--,w.remove&&w.remove.call(e,m));a&&!g.length&&((!w.teardown||w.teardown.call(e,q,F.handle)===!1)&&i.removeEvent(e,T,F.handle),delete f[T])}i.isEmptyObject(f)&&k.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,s,a,c=new Array(arguments.length),f=i.event.fix(e),p=(k.get(this,"events")||Object.create(null))[f.type]||[],m=i.event.special[f.type]||{};for(c[0]=f,t=1;t<arguments.length;t++)c[t]=arguments[t];if(f.delegateTarget=this,!(m.preDispatch&&m.preDispatch.call(this,f)===!1)){for(a=i.event.handlers.call(this,f,p),t=0;(o=a[t++])&&!f.isPropagationStopped();)for(f.currentTarget=o.elem,n=0;(s=o.handlers[n++])&&!f.isImmediatePropagationStopped();)(!f.rnamespace||s.namespace===!1||f.rnamespace.test(s.namespace))&&(f.handleObj=s,f.data=s.data,r=((i.event.special[s.origType]||{}).handle||s.handler).apply(o.elem,c),r!==void 0&&(f.result=r)===!1&&(f.preventDefault(),f.stopPropagation()));return m.postDispatch&&m.postDispatch.call(this,f),f.result}},handlers:function(e,t){var n,r,o,s,a,c=[],f=t.delegateCount,p=e.target;if(f&&p.nodeType&&!(e.type==="click"&&e.button>=1)){for(;p!==this;p=p.parentNode||this)if(p.nodeType===1&&!(e.type==="click"&&p.disabled===!0)){for(s=[],a={},n=0;n<f;n++)r=t[n],o=r.selector+" ",a[o]===void 0&&(a[o]=r.needsContext?i(o,this).index(p)>-1:i.find(o,this,null,[p]).length),a[o]&&s.push(r);s.length&&c.push({elem:p,handlers:s})}}return p=this,f<t.length&&c.push({elem:p,handlers:t.slice(f)}),c},addProp:function(e,t){Object.defineProperty(i.Event.prototype,e,{enumerable:!0,configurable:!0,get:R(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(n){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:n})}})},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 Ze.test(t.type)&&t.click&&Q(t,"input")&&ct(t,"click",!0),!1},trigger:function(e){var t=this||e;return Ze.test(t.type)&&t.click&&Q(t,"input")&&ct(t,"click"),!0},_default:function(e){var t=e.target;return Ze.test(t.type)&&t.click&&Q(t,"input")&&k.get(t,"click")||Q(t,"a")}},beforeunload:{postDispatch:function(e){e.result!==void 0&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}};function ct(e,t,n){if(!n){k.get(e,t)===void 0&&i.event.add(e,t,$e);return}k.set(e,t,!1),i.event.add(e,t,{namespace:!1,handler:function(r){var o,s=k.get(this,t);if(r.isTrigger&1&&this[t]){if(s)(i.event.special[t]||{}).delegateType&&r.stopPropagation();else if(s=E.call(arguments),k.set(this,t,s),this[t](),o=k.get(this,t),k.set(this,t,!1),s!==o)return r.stopImmediatePropagation(),r.preventDefault(),o}else s&&(k.set(this,t,i.event.trigger(s[0],s.slice(1),this)),r.stopPropagation(),r.isImmediatePropagationStopped=$e)}})}i.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},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?$e:Be,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:Be,isPropagationStopped:Be,isImmediatePropagationStopped:Be,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=$e,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=$e,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=$e,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 n(r){if(I.documentMode){var o=k.get(this,"handle"),s=i.event.fix(r);s.type=r.type==="focusin"?"focus":"blur",s.isSimulated=!0,o(r),s.target===s.currentTarget&&o(s)}else i.event.simulate(t,r.target,i.event.fix(r))}i.event.special[e]={setup:function(){var r;if(ct(this,e,!0),I.documentMode)r=k.get(this,t),r||this.addEventListener(t,n),k.set(this,t,(r||0)+1);else return!1},trigger:function(){return ct(this,e),!0},teardown:function(){var r;if(I.documentMode)r=k.get(this,t)-1,r?k.set(this,t,r):(this.removeEventListener(t,n),k.remove(this,t));else return!1},_default:function(r){return k.get(r.target,e)},delegateType:t},i.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,o=I.documentMode?this:r,s=k.get(o,t);s||(I.documentMode?this.addEventListener(t,n):r.addEventListener(e,n,!0)),k.set(o,t,(s||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,o=I.documentMode?this:r,s=k.get(o,t)-1;s?k.set(o,t,s):(I.documentMode?this.removeEventListener(t,n):r.removeEventListener(e,n,!0),k.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(n){var r,o=this,s=n.relatedTarget,a=n.handleObj;return(!s||s!==o&&!i.contains(o,s))&&(n.type=a.origType,r=a.handler.apply(this,arguments),n.type=t),r}}}),i.fn.extend({on:function(e,t,n,r){return Ct(this,e,t,n,r)},one:function(e,t,n,r){return Ct(this,e,t,n,r,1)},off:function(e,t,n){var r,o;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,i(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if(typeof e=="object"){for(o in e)this.off(o,t,e[o]);return this}return(t===!1||typeof t=="function")&&(n=t,t=void 0),n===!1&&(n=Be),this.each(function(){i.event.remove(this,e,n,t)})}});var tr=/<script|<style|<link/i,nr=/checked\s*(?:[^=]|=\s*.checked.)/i,rr=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function sn(e,t){return Q(e,"table")&&Q(t.nodeType!==11?t:t.firstChild,"tr")&&i(e).children("tbody")[0]||e}function ir(e){return e.type=(e.getAttribute("type")!==null)+"/"+e.type,e}function or(e){return(e.type||"").slice(0,5)==="true/"?e.type=e.type.slice(5):e.removeAttribute("type"),e}function an(e,t){var n,r,o,s,a,c,f;if(t.nodeType===1){if(k.hasData(e)&&(s=k.get(e),f=s.events,f)){k.remove(t,"handle events");for(o in f)for(n=0,r=f[o].length;n<r;n++)i.event.add(t,o,f[o][n])}ie.hasData(e)&&(a=ie.access(e),c=i.extend({},a),ie.set(t,c))}}function sr(e,t){var n=t.nodeName.toLowerCase();n==="input"&&Ze.test(e.type)?t.checked=e.checked:(n==="input"||n==="textarea")&&(t.defaultValue=e.defaultValue)}function ze(e,t,n,r){t=z(t);var o,s,a,c,f,p,m=0,w=e.length,g=w-1,T=t[0],q=R(T);if(q||w>1&&typeof T=="string"&&!L.checkClone&&nr.test(T))return e.each(function(V){var F=e.eq(V);q&&(t[0]=T.call(this,V,F.html())),ze(F,t,n,r)});if(w&&(o=rn(t,e[0].ownerDocument,!1,e,r),s=o.firstChild,o.childNodes.length===1&&(o=s),s||r)){for(a=i.map(oe(o,"script"),ir),c=a.length;m<w;m++)f=o,m!==g&&(f=i.clone(f,!0,!0),c&&i.merge(a,oe(f,"script"))),n.call(e[m],f,m);if(c)for(p=a[a.length-1].ownerDocument,i.map(a,or),m=0;m<c;m++)f=a[m],nn.test(f.type||"")&&!k.access(f,"globalEval")&&i.contains(p,f)&&(f.src&&(f.type||"").toLowerCase()!=="module"?i._evalUrl&&!f.noModule&&i._evalUrl(f.src,{nonce:f.nonce||f.getAttribute("nonce")},p):Bt(f.textContent.replace(rr,""),f,p))}return e}function un(e,t,n){for(var r,o=t?i.filter(t,e):e,s=0;(r=o[s])!=null;s++)!n&&r.nodeType===1&&i.cleanData(oe(r)),r.parentNode&&(n&&We(r)&&Tt(oe(r,"script")),r.parentNode.removeChild(r));return e}i.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,o,s,a,c=e.cloneNode(!0),f=We(e);if(!L.noCloneChecked&&(e.nodeType===1||e.nodeType===11)&&!i.isXMLDoc(e))for(a=oe(c),s=oe(e),r=0,o=s.length;r<o;r++)sr(s[r],a[r]);if(t)if(n)for(s=s||oe(e),a=a||oe(c),r=0,o=s.length;r<o;r++)an(s[r],a[r]);else an(e,c);return a=oe(c,"script"),a.length>0&&Tt(a,!f&&oe(e,"script")),c},cleanData:function(e){for(var t,n,r,o=i.event.special,s=0;(n=e[s])!==void 0;s++)if(Qe(n)){if(t=n[k.expando]){if(t.events)for(r in t.events)o[r]?i.event.remove(n,r):i.removeEvent(n,r,t.handle);n[k.expando]=void 0}n[ie.expando]&&(n[ie.expando]=void 0)}}}),i.fn.extend({detach:function(e){return un(this,e,!0)},remove:function(e){return un(this,e)},text:function(e){return Te(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 ze(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=sn(this,e);t.appendChild(e)}})},prepend:function(){return ze(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=sn(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return ze(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return ze(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(oe(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 Te(this,function(t){var n=this[0]||{},r=0,o=this.length;if(t===void 0&&n.nodeType===1)return n.innerHTML;if(typeof t=="string"&&!tr.test(t)&&!fe[(tn.exec(t)||["",""])[1].toLowerCase()]){t=i.htmlPrefilter(t);try{for(;r<o;r++)n=this[r]||{},n.nodeType===1&&(i.cleanData(oe(n,!1)),n.innerHTML=t);n=0}catch{}}n&&this.empty().append(t)},null,e,arguments.length)},replaceWith:function(){var e=[];return ze(this,arguments,function(t){var n=this.parentNode;i.inArray(this,e)<0&&(i.cleanData(oe(this)),n&&n.replaceChild(t,this))},e)}}),i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){i.fn[e]=function(n){for(var r,o=[],s=i(n),a=s.length-1,c=0;c<=a;c++)r=c===a?this:this.clone(!0),i(s[c])[t](r),K.apply(o,r.get());return this.pushStack(o)}});var St=new RegExp("^("+Kt+")(?!px)[a-z%]+$","i"),Nt=/^--/,lt=function(e){var t=e.ownerDocument.defaultView;return(!t||!t.opener)&&(t=l),t.getComputedStyle(e)},fn=function(e,t,n){var r,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];r=n.call(e);for(o in t)e.style[o]=s[o];return r},ar=new RegExp(Ce.join("|"),"i");(function(){function e(){if(p){f.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",p.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Pe.appendChild(f).appendChild(p);var m=l.getComputedStyle(p);n=m.top!=="1%",c=t(m.marginLeft)===12,p.style.right="60%",s=t(m.right)===36,r=t(m.width)===36,p.style.position="absolute",o=t(p.offsetWidth/3)===12,Pe.removeChild(f),p=null}}function t(m){return Math.round(parseFloat(m))}var n,r,o,s,a,c,f=I.createElement("div"),p=I.createElement("div");p.style&&(p.style.backgroundClip="content-box",p.cloneNode(!0).style.backgroundClip="",L.clearCloneStyle=p.style.backgroundClip==="content-box",i.extend(L,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),s},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),c},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var m,w,g,T;return a==null&&(m=I.createElement("table"),w=I.createElement("tr"),g=I.createElement("div"),m.style.cssText="position:absolute;left:-11111px;border-collapse:separate",w.style.cssText="box-sizing:content-box;border:1px solid",w.style.height="1px",g.style.height="9px",g.style.display="block",Pe.appendChild(m).appendChild(w).appendChild(g),T=l.getComputedStyle(w),a=parseInt(T.height,10)+parseInt(T.borderTopWidth,10)+parseInt(T.borderBottomWidth,10)===w.offsetHeight,Pe.removeChild(m)),a}}))})();function et(e,t,n){var r,o,s,a,c=Nt.test(t),f=e.style;return n=n||lt(e),n&&(a=n.getPropertyValue(t)||n[t],c&&a&&(a=a.replace(Je,"$1")||void 0),a===""&&!We(e)&&(a=i.style(e,t)),!L.pixelBoxStyles()&&St.test(a)&&ar.test(t)&&(r=f.width,o=f.minWidth,s=f.maxWidth,f.minWidth=f.maxWidth=f.width=a,a=n.width,f.width=r,f.minWidth=o,f.maxWidth=s)),a!==void 0?a+"":a}function cn(e,t){return{get:function(){if(e()){delete this.get;return}return(this.get=t).apply(this,arguments)}}}var ln=["Webkit","Moz","ms"],dn=I.createElement("div").style,pn={};function ur(e){for(var t=e[0].toUpperCase()+e.slice(1),n=ln.length;n--;)if(e=ln[n]+t,e in dn)return e}function At(e){var t=i.cssProps[e]||pn[e];return t||(e in dn?e:pn[e]=ur(e)||e)}var fr=/^(none|table(?!-c[ea]).+)/,cr={position:"absolute",visibility:"hidden",display:"block"},hn={letterSpacing:"0",fontWeight:"400"};function gn(e,t,n){var r=Ke.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Et(e,t,n,r,o,s){var a=t==="width"?1:0,c=0,f=0,p=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)n==="margin"&&(p+=i.css(e,n+Ce[a],!0,o)),r?(n==="content"&&(f-=i.css(e,"padding"+Ce[a],!0,o)),n!=="margin"&&(f-=i.css(e,"border"+Ce[a]+"Width",!0,o))):(f+=i.css(e,"padding"+Ce[a],!0,o),n!=="padding"?f+=i.css(e,"border"+Ce[a]+"Width",!0,o):c+=i.css(e,"border"+Ce[a]+"Width",!0,o));return!r&&s>=0&&(f+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-s-f-c-.5))||0),f+p}function yn(e,t,n){var r=lt(e),o=!L.boxSizingReliable()||n,s=o&&i.css(e,"boxSizing",!1,r)==="border-box",a=s,c=et(e,t,r),f="offset"+t[0].toUpperCase()+t.slice(1);if(St.test(c)){if(!n)return c;c="auto"}return(!L.boxSizingReliable()&&s||!L.reliableTrDimensions()&&Q(e,"tr")||c==="auto"||!parseFloat(c)&&i.css(e,"display",!1,r)==="inline")&&e.getClientRects().length&&(s=i.css(e,"boxSizing",!1,r)==="border-box",a=f in e,a&&(c=e[f])),c=parseFloat(c)||0,c+Et(e,t,n||(s?"border":"content"),a,r,c)+"px"}i.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=et(e,"opacity");return n===""?"1":n}}}},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,n,r){if(!(!e||e.nodeType===3||e.nodeType===8||!e.style)){var o,s,a,c=ge(t),f=Nt.test(t),p=e.style;if(f||(t=At(c)),a=i.cssHooks[t]||i.cssHooks[c],n!==void 0){if(s=typeof n,s==="string"&&(o=Ke.exec(n))&&o[1]&&(n=Zt(e,t,o),s="number"),n==null||n!==n)return;s==="number"&&!f&&(n+=o&&o[3]||(i.cssNumber[c]?"":"px")),!L.clearCloneStyle&&n===""&&t.indexOf("background")===0&&(p[t]="inherit"),(!a||!("set"in a)||(n=a.set(e,n,r))!==void 0)&&(f?p.setProperty(t,n):p[t]=n)}else return a&&"get"in a&&(o=a.get(e,!1,r))!==void 0?o:p[t]}},css:function(e,t,n,r){var o,s,a,c=ge(t),f=Nt.test(t);return f||(t=At(c)),a=i.cssHooks[t]||i.cssHooks[c],a&&"get"in a&&(o=a.get(e,!0,n)),o===void 0&&(o=et(e,t,r)),o==="normal"&&t in hn&&(o=hn[t]),n===""||n?(s=parseFloat(o),n===!0||isFinite(s)?s||0:o):o}}),i.each(["height","width"],function(e,t){i.cssHooks[t]={get:function(n,r,o){if(r)return fr.test(i.css(n,"display"))&&(!n.getClientRects().length||!n.getBoundingClientRect().width)?fn(n,cr,function(){return yn(n,t,o)}):yn(n,t,o)},set:function(n,r,o){var s,a=lt(n),c=!L.scrollboxSize()&&a.position==="absolute",f=c||o,p=f&&i.css(n,"boxSizing",!1,a)==="border-box",m=o?Et(n,t,o,p,a):0;return p&&c&&(m-=Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-Et(n,t,"border",!1,a)-.5)),m&&(s=Ke.exec(r))&&(s[3]||"px")!=="px"&&(n.style[t]=r,r=i.css(n,t)),gn(n,r,m)}}}),i.cssHooks.marginLeft=cn(L.reliableMarginLeft,function(e,t){if(t)return(parseFloat(et(e,"marginLeft"))||e.getBoundingClientRect().left-fn(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),i.each({margin:"",padding:"",border:"Width"},function(e,t){i.cssHooks[e+t]={expand:function(n){for(var r=0,o={},s=typeof n=="string"?n.split(" "):[n];r<4;r++)o[e+Ce[r]+t]=s[r]||s[r-2]||s[0];return o}},e!=="margin"&&(i.cssHooks[e+t].set=gn)}),i.fn.extend({css:function(e,t){return Te(this,function(n,r,o){var s,a,c={},f=0;if(Array.isArray(r)){for(s=lt(n),a=r.length;f<a;f++)c[r[f]]=i.css(n,r[f],!1,s);return c}return o!==void 0?i.style(n,r,o):i.css(n,r)},e,t,arguments.length>1)}});function se(e,t,n,r,o){return new se.prototype.init(e,t,n,r,o)}i.Tween=se,se.prototype={constructor:se,init:function(e,t,n,r,o,s){this.elem=e,this.prop=n,this.easing=o||i.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=s||(i.cssNumber[n]?"":"px")},cur:function(){var e=se.propHooks[this.prop];return e&&e.get?e.get(this):se.propHooks._default.get(this)},run:function(e){var t,n=se.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),n&&n.set?n.set(this):se.propHooks._default.set(this),this}},se.prototype.init.prototype=se.prototype,se.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[At(e.prop)]!=null)?i.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},se.propHooks.scrollTop=se.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=se.prototype.init,i.fx.step={};var Ve,dt,lr=/^(?:toggle|show|hide)$/,dr=/queueHooks$/;function Dt(){dt&&(I.hidden===!1&&l.requestAnimationFrame?l.requestAnimationFrame(Dt):l.setTimeout(Dt,i.fx.interval),i.fx.tick())}function vn(){return l.setTimeout(function(){Ve=void 0}),Ve=Date.now()}function pt(e,t){var n,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)n=Ce[r],o["margin"+n]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function mn(e,t,n){for(var r,o=(de.tweeners[t]||[]).concat(de.tweeners["*"]),s=0,a=o.length;s<a;s++)if(r=o[s].call(n,t,e))return r}function pr(e,t,n){var r,o,s,a,c,f,p,m,w="width"in t||"height"in t,g=this,T={},q=e.style,V=e.nodeType&&ft(e),F=k.get(e,"fxshow");n.queue||(a=i._queueHooks(e,"fx"),a.unqueued==null&&(a.unqueued=0,c=a.empty.fire,a.empty.fire=function(){a.unqueued||c()}),a.unqueued++,g.always(function(){g.always(function(){a.unqueued--,i.queue(e,"fx").length||a.empty.fire()})}));for(r in t)if(o=t[r],lr.test(o)){if(delete t[r],s=s||o==="toggle",o===(V?"hide":"show"))if(o==="show"&&F&&F[r]!==void 0)V=!0;else continue;T[r]=F&&F[r]||i.style(e,r)}if(f=!i.isEmptyObject(t),!(!f&&i.isEmptyObject(T))){w&&e.nodeType===1&&(n.overflow=[q.overflow,q.overflowX,q.overflowY],p=F&&F.display,p==null&&(p=k.get(e,"display")),m=i.css(e,"display"),m==="none"&&(p?m=p:(_e([e],!0),p=e.style.display||p,m=i.css(e,"display"),_e([e]))),(m==="inline"||m==="inline-block"&&p!=null)&&i.css(e,"float")==="none"&&(f||(g.done(function(){q.display=p}),p==null&&(m=q.display,p=m==="none"?"":m)),q.display="inline-block")),n.overflow&&(q.overflow="hidden",g.always(function(){q.overflow=n.overflow[0],q.overflowX=n.overflow[1],q.overflowY=n.overflow[2]})),f=!1;for(r in T)f||(F?"hidden"in F&&(V=F.hidden):F=k.access(e,"fxshow",{display:p}),s&&(F.hidden=!V),V&&_e([e],!0),g.done(function(){V||_e([e]),k.remove(e,"fxshow");for(r in T)i.style(e,r,T[r])})),f=mn(V?F[r]:0,r,g),r in F||(F[r]=f.start,V&&(f.end=f.start,f.start=0))}}function hr(e,t){var n,r,o,s,a;for(n in e)if(r=ge(n),o=t[r],s=e[n],Array.isArray(s)&&(o=s[1],s=e[n]=s[0]),n!==r&&(e[r]=s,delete e[n]),a=i.cssHooks[r],a&&"expand"in a){s=a.expand(s),delete e[r];for(n in s)n in e||(e[n]=s[n],t[n]=o)}else t[r]=o}function de(e,t,n){var r,o,s=0,a=de.prefilters.length,c=i.Deferred().always(function(){delete f.elem}),f=function(){if(o)return!1;for(var w=Ve||vn(),g=Math.max(0,p.startTime+p.duration-w),T=g/p.duration||0,q=1-T,V=0,F=p.tweens.length;V<F;V++)p.tweens[V].run(q);return c.notifyWith(e,[p,q,g]),q<1&&F?g:(F||c.notifyWith(e,[p,1,0]),c.resolveWith(e,[p]),!1)},p=c.promise({elem:e,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},n),originalProperties:t,originalOptions:n,startTime:Ve||vn(),duration:n.duration,tweens:[],createTween:function(w,g){var T=i.Tween(e,p.opts,w,g,p.opts.specialEasing[w]||p.opts.easing);return p.tweens.push(T),T},stop:function(w){var g=0,T=w?p.tweens.length:0;if(o)return this;for(o=!0;g<T;g++)p.tweens[g].run(1);return w?(c.notifyWith(e,[p,1,0]),c.resolveWith(e,[p,w])):c.rejectWith(e,[p,w]),this}}),m=p.props;for(hr(m,p.opts.specialEasing);s<a;s++)if(r=de.prefilters[s].call(p,e,m,p.opts),r)return R(r.stop)&&(i._queueHooks(p.elem,p.opts.queue).stop=r.stop.bind(r)),r;return i.map(m,mn,p),R(p.opts.start)&&p.opts.start.call(e,p),p.progress(p.opts.progress).done(p.opts.done,p.opts.complete).fail(p.opts.fail).always(p.opts.always),i.fx.timer(i.extend(f,{elem:e,anim:p,queue:p.opts.queue})),p}i.Animation=i.extend(de,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return Zt(n.elem,e,Ke.exec(t),n),n}]},tweener:function(e,t){R(e)?(t=e,e=["*"]):e=e.match(he);for(var n,r=0,o=e.length;r<o;r++)n=e[r],de.tweeners[n]=de.tweeners[n]||[],de.tweeners[n].unshift(t)},prefilters:[pr],prefilter:function(e,t){t?de.prefilters.unshift(e):de.prefilters.push(e)}}),i.speed=function(e,t,n){var r=e&&typeof e=="object"?i.extend({},e):{complete:n||!n&&t||R(e)&&e,duration:e,easing:n&&t||t&&!R(t)&&t};return i.fx.off?r.duration=0:typeof r.duration!="number"&&(r.duration in i.fx.speeds?r.duration=i.fx.speeds[r.duration]:r.duration=i.fx.speeds._default),(r.queue==null||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){R(r.old)&&r.old.call(this),r.queue&&i.dequeue(this,r.queue)},r},i.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ft).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var o=i.isEmptyObject(e),s=i.speed(t,n,r),a=function(){var c=de(this,i.extend({},e),s);(o||k.get(this,"finish"))&&c.stop(!0)};return a.finish=a,o||s.queue===!1?this.each(a):this.queue(s.queue,a)},stop:function(e,t,n){var r=function(o){var s=o.stop;delete o.stop,s(n)};return typeof e!="string"&&(n=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,c=k.get(this);if(s)c[s]&&c[s].stop&&r(c[s]);else for(s in c)c[s]&&c[s].stop&&dr.test(s)&&r(c[s]);for(s=a.length;s--;)a[s].elem===this&&(e==null||a[s].queue===e)&&(a[s].anim.stop(n),o=!1,a.splice(s,1));(o||!n)&&i.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=k.get(this),r=n[e+"queue"],o=n[e+"queueHooks"],s=i.timers,a=r?r.length:0;for(n.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++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),i.each(["toggle","show","hide"],function(e,t){var n=i.fn[t];i.fn[t]=function(r,o,s){return r==null||typeof r=="boolean"?n.apply(this,arguments):this.animate(pt(t,!0),r,o,s)}}),i.each({slideDown:pt("show"),slideUp:pt("hide"),slideToggle:pt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){i.fn[e]=function(n,r,o){return this.animate(t,n,r,o)}}),i.timers=[],i.fx.tick=function(){var e,t=0,n=i.timers;for(Ve=Date.now();t<n.length;t++)e=n[t],!e()&&n[t]===e&&n.splice(t--,1);n.length||i.fx.stop(),Ve=void 0},i.fx.timer=function(e){i.timers.push(e),i.fx.start()},i.fx.interval=13,i.fx.start=function(){dt||(dt=!0,Dt())},i.fx.stop=function(){dt=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(n,r){var o=l.setTimeout(n,e);r.stop=function(){l.clearTimeout(o)}})},function(){var e=I.createElement("input"),t=I.createElement("select"),n=t.appendChild(I.createElement("option"));e.type="checkbox",L.checkOn=e.value!=="",L.optSelected=n.selected,e=I.createElement("input"),e.value="t",e.type="radio",L.radioValue=e.value==="t"}();var xn,tt=i.expr.attrHandle;i.fn.extend({attr:function(e,t){return Te(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,n){var r,o,s=e.nodeType;if(!(s===3||s===8||s===2)){if(typeof e.getAttribute>"u")return i.prop(e,t,n);if((s!==1||!i.isXMLDoc(e))&&(o=i.attrHooks[t.toLowerCase()]||(i.expr.match.bool.test(t)?xn:void 0)),n!==void 0){if(n===null){i.removeAttr(e,t);return}return o&&"set"in o&&(r=o.set(e,n,t))!==void 0?r:(e.setAttribute(t,n+""),n)}return o&&"get"in o&&(r=o.get(e,t))!==null?r:(r=i.find.attr(e,t),r??void 0)}},attrHooks:{type:{set:function(e,t){if(!L.radioValue&&t==="radio"&&Q(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,o=t&&t.match(he);if(o&&e.nodeType===1)for(;n=o[r++];)e.removeAttribute(n)}}),xn={set:function(e,t,n){return t===!1?i.removeAttr(e,n):e.setAttribute(n,n),n}},i.each(i.expr.match.bool.source.match(/\w+/g),function(e,t){var n=tt[t]||i.find.attr;tt[t]=function(r,o,s){var a,c,f=o.toLowerCase();return s||(c=tt[f],tt[f]=a,a=n(r,o,s)!=null?f:null,tt[f]=c),a}});var gr=/^(?:input|select|textarea|button)$/i,yr=/^(?:a|area)$/i;i.fn.extend({prop:function(e,t){return Te(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,n){var r,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]),n!==void 0?o&&"set"in o&&(r=o.set(e,n,t))!==void 0?r:e[t]=n:o&&"get"in o&&(r=o.get(e,t))!==null?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=i.find.attr(e,"tabindex");return t?parseInt(t,10):gr.test(e.nodeName)||yr.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),L.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 Oe(e){var t=e.match(he)||[];return t.join(" ")}function qe(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:typeof e=="string"?e.match(he)||[]:[]}i.fn.extend({addClass:function(e){var t,n,r,o,s,a;return R(e)?this.each(function(c){i(this).addClass(e.call(this,c,qe(this)))}):(t=kt(e),t.length?this.each(function(){if(r=qe(this),n=this.nodeType===1&&" "+Oe(r)+" ",n){for(s=0;s<t.length;s++)o=t[s],n.indexOf(" "+o+" ")<0&&(n+=o+" ");a=Oe(n),r!==a&&this.setAttribute("class",a)}}):this)},removeClass:function(e){var t,n,r,o,s,a;return R(e)?this.each(function(c){i(this).removeClass(e.call(this,c,qe(this)))}):arguments.length?(t=kt(e),t.length?this.each(function(){if(r=qe(this),n=this.nodeType===1&&" "+Oe(r)+" ",n){for(s=0;s<t.length;s++)for(o=t[s];n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");a=Oe(n),r!==a&&this.setAttribute("class",a)}}):this):this.attr("class","")},toggleClass:function(e,t){var n,r,o,s,a=typeof e,c=a==="string"||Array.isArray(e);return R(e)?this.each(function(f){i(this).toggleClass(e.call(this,f,qe(this),t),t)}):typeof t=="boolean"&&c?t?this.addClass(e):this.removeClass(e):(n=kt(e),this.each(function(){if(c)for(s=i(this),o=0;o<n.length;o++)r=n[o],s.hasClass(r)?s.removeClass(r):s.addClass(r);else(e===void 0||a==="boolean")&&(r=qe(this),r&&k.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||e===!1?"":k.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(n.nodeType===1&&(" "+Oe(qe(n))+" ").indexOf(t)>-1)return!0;return!1}});var vr=/\r/g;i.fn.extend({val:function(e){var t,n,r,o=this[0];return arguments.length?(r=R(e),this.each(function(s){var a;this.nodeType===1&&(r?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(c){return c==null?"":c+""})),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&&(n=t.get(o,"value"))!==void 0?n:(n=o.value,typeof n=="string"?n.replace(vr,""):n??"")):void 0}}),i.extend({valHooks:{option:{get:function(e){var t=i.find.attr(e,"value");return t??Oe(i.text(e))}},select:{get:function(e){var t,n,r,o=e.options,s=e.selectedIndex,a=e.type==="select-one",c=a?null:[],f=a?s+1:o.length;for(s<0?r=f:r=a?s:0;r<f;r++)if(n=o[r],(n.selected||r===s)&&!n.disabled&&(!n.parentNode.disabled||!Q(n.parentNode,"optgroup"))){if(t=i(n).val(),a)return t;c.push(t)}return c},set:function(e,t){for(var n,r,o=e.options,s=i.makeArray(t),a=o.length;a--;)r=o[a],(r.selected=i.inArray(i.valHooks.option.get(r),s)>-1)&&(n=!0);return n||(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}},L.checkOn||(i.valHooks[this].get=function(e){return e.getAttribute("value")===null?"on":e.value})});var nt=l.location,bn={guid:Date.now()},jt=/\?/;i.parseXML=function(e){var t,n;if(!e||typeof e!="string")return null;try{t=new l.DOMParser().parseFromString(e,"text/xml")}catch{}return n=t&&t.getElementsByTagName("parsererror")[0],(!t||n)&&i.error("Invalid XML: "+(n?i.map(n.childNodes,function(r){return r.textContent}).join(`
`):e)),t};var wn=/^(?:focusinfocus|focusoutblur)$/,Tn=function(e){e.stopPropagation()};i.extend(i.event,{trigger:function(e,t,n,r){var o,s,a,c,f,p,m,w,g=[n||I],T=je.call(e,"type")?e.type:e,q=je.call(e,"namespace")?e.namespace.split("."):[];if(s=w=a=n=n||I,!(n.nodeType===3||n.nodeType===8)&&!wn.test(T+i.event.triggered)&&(T.indexOf(".")>-1&&(q=T.split("."),T=q.shift(),q.sort()),f=T.indexOf(":")<0&&"on"+T,e=e[i.expando]?e:new i.Event(T,typeof e=="object"&&e),e.isTrigger=r?2:3,e.namespace=q.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=t==null?[e]:i.makeArray(t,[e]),m=i.event.special[T]||{},!(!r&&m.trigger&&m.trigger.apply(n,t)===!1))){if(!r&&!m.noBubble&&!Ie(n)){for(c=m.delegateType||T,wn.test(c+T)||(s=s.parentNode);s;s=s.parentNode)g.push(s),a=s;a===(n.ownerDocument||I)&&g.push(a.defaultView||a.parentWindow||l)}for(o=0;(s=g[o++])&&!e.isPropagationStopped();)w=s,e.type=o>1?c:m.bindType||T,p=(k.get(s,"events")||Object.create(null))[e.type]&&k.get(s,"handle"),p&&p.apply(s,t),p=f&&s[f],p&&p.apply&&Qe(s)&&(e.result=p.apply(s,t),e.result===!1&&e.preventDefault());return e.type=T,!r&&!e.isDefaultPrevented()&&(!m._default||m._default.apply(g.pop(),t)===!1)&&Qe(n)&&f&&R(n[T])&&!Ie(n)&&(a=n[f],a&&(n[f]=null),i.event.triggered=T,e.isPropagationStopped()&&w.addEventListener(T,Tn),n[T](),e.isPropagationStopped()&&w.removeEventListener(T,Tn),i.event.triggered=void 0,a&&(n[f]=a)),e.result}},simulate:function(e,t,n){var r=i.extend(new i.Event,n,{type:e,isSimulated:!0});i.event.trigger(r,null,t)}}),i.fn.extend({trigger:function(e,t){return this.each(function(){i.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return i.event.trigger(e,t,n,!0)}});var mr=/\[\]$/,Cn=/\r?\n/g,xr=/^(?:submit|button|image|reset|file)$/i,br=/^(?:input|select|textarea|keygen)/i;function Pt(e,t,n,r){var o;if(Array.isArray(t))i.each(t,function(s,a){n||mr.test(e)?r(e,a):Pt(e+"["+(typeof a=="object"&&a!=null?s:"")+"]",a,n,r)});else if(!n&&Le(t)==="object")for(o in t)Pt(e+"["+o+"]",t[o],n,r);else r(e,t)}i.param=function(e,t){var n,r=[],o=function(s,a){var c=R(a)?a():a;r[r.length]=encodeURIComponent(s)+"="+encodeURIComponent(c??"")};if(e==null)return"";if(Array.isArray(e)||e.jquery&&!i.isPlainObject(e))i.each(e,function(){o(this.name,this.value)});else for(n in e)Pt(n,e[n],t,o);return r.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")&&br.test(this.nodeName)&&!xr.test(e)&&(this.checked||!Ze.test(e))}).map(function(e,t){var n=i(this).val();return n==null?null:Array.isArray(n)?i.map(n,function(r){return{name:t.name,value:r.replace(Cn,`\r
`)}}):{name:t.name,value:n.replace(Cn,`\r
`)}}).get()}});var wr=/%20/g,Tr=/#.*$/,Cr=/([?&])_=[^&]*/,Sr=/^(.*?):[ \t]*([^\r\n]*)$/mg,Nr=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ar=/^(?:GET|HEAD)$/,Er=/^\/\//,Sn={},Ot={},Nn="*/".concat("*"),qt=I.createElement("a");qt.href=nt.href;function An(e){return function(t,n){typeof t!="string"&&(n=t,t="*");var r,o=0,s=t.toLowerCase().match(he)||[];if(R(n))for(;r=s[o++];)r[0]==="+"?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function En(e,t,n,r){var o={},s=e===Ot;function a(c){var f;return o[c]=!0,i.each(e[c]||[],function(p,m){var w=m(t,n,r);if(typeof w=="string"&&!s&&!o[w])return t.dataTypes.unshift(w),a(w),!1;if(s)return!(f=w)}),f}return a(t.dataTypes[0])||!o["*"]&&a("*")}function Ht(e,t){var n,r,o=i.ajaxSettings.flatOptions||{};for(n in t)t[n]!==void 0&&((o[n]?e:r||(r={}))[n]=t[n]);return r&&i.extend(!0,e,r),e}function Dr(e,t,n){for(var r,o,s,a,c=e.contents,f=e.dataTypes;f[0]==="*";)f.shift(),r===void 0&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r){for(o in c)if(c[o]&&c[o].test(r)){f.unshift(o);break}}if(f[0]in n)s=f[0];else{for(o in n){if(!f[0]||e.converters[o+" "+f[0]]){s=o;break}a||(a=o)}s=s||a}if(s)return s!==f[0]&&f.unshift(s),n[s]}function kr(e,t,n,r){var o,s,a,c,f,p={},m=e.dataTypes.slice();if(m[1])for(a in e.converters)p[a.toLowerCase()]=e.converters[a];for(s=m.shift();s;)if(e.responseFields[s]&&(n[e.responseFields[s]]=t),!f&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),f=s,s=m.shift(),s){if(s==="*")s=f;else if(f!=="*"&&f!==s){if(a=p[f+" "+s]||p["* "+s],!a){for(o in p)if(c=o.split(" "),c[1]===s&&(a=p[f+" "+c[0]]||p["* "+c[0]],a)){a===!0?a=p[o]:p[o]!==!0&&(s=c[0],m.unshift(c[1]));break}}if(a!==!0)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(w){return{state:"parsererror",error:a?w:"No conversion from "+f+" to "+s}}}}return{state:"success",data:t}}i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:nt.href,type:"GET",isLocal:Nr.test(nt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Nn,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?Ht(Ht(e,i.ajaxSettings),t):Ht(i.ajaxSettings,e)},ajaxPrefilter:An(Sn),ajaxTransport:An(Ot),ajax:function(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};var n,r,o,s,a,c,f,p,m,w,g=i.ajaxSetup({},t),T=g.context||g,q=g.context&&(T.nodeType||T.jquery)?i(T):i.event,V=i.Deferred(),F=i.Callbacks("once memory"),ee=g.statusCode||{},Z={},ye={},ve="canceled",B={readyState:0,getResponseHeader:function(U){var Y;if(f){if(!s)for(s={};Y=Sr.exec(o);)s[Y[1].toLowerCase()+" "]=(s[Y[1].toLowerCase()+" "]||[]).concat(Y[2]);Y=s[U.toLowerCase()+" "]}return Y==null?null:Y.join(", ")},getAllResponseHeaders:function(){return f?o:null},setRequestHeader:function(U,Y){return f==null&&(U=ye[U.toLowerCase()]=ye[U.toLowerCase()]||U,Z[U]=Y),this},overrideMimeType:function(U){return f==null&&(g.mimeType=U),this},statusCode:function(U){var Y;if(U)if(f)B.always(U[B.status]);else for(Y in U)ee[Y]=[ee[Y],U[Y]];return this},abort:function(U){var Y=U||ve;return n&&n.abort(Y),He(0,Y),this}};if(V.promise(B),g.url=((e||g.url||nt.href)+"").replace(Er,nt.protocol+"//"),g.type=t.method||t.type||g.method||g.type,g.dataTypes=(g.dataType||"*").toLowerCase().match(he)||[""],g.crossDomain==null){c=I.createElement("a");try{c.href=g.url,c.href=c.href,g.crossDomain=qt.protocol+"//"+qt.host!=c.protocol+"//"+c.host}catch{g.crossDomain=!0}}if(g.data&&g.processData&&typeof g.data!="string"&&(g.data=i.param(g.data,g.traditional)),En(Sn,g,t,B),f)return B;p=i.event&&g.global,p&&i.active++===0&&i.event.trigger("ajaxStart"),g.type=g.type.toUpperCase(),g.hasContent=!Ar.test(g.type),r=g.url.replace(Tr,""),g.hasContent?g.data&&g.processData&&(g.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(g.data=g.data.replace(wr,"+")):(w=g.url.slice(r.length),g.data&&(g.processData||typeof g.data=="string")&&(r+=(jt.test(r)?"&":"?")+g.data,delete g.data),g.cache===!1&&(r=r.replace(Cr,"$1"),w=(jt.test(r)?"&":"?")+"_="+bn.guid+++w),g.url=r+w),g.ifModified&&(i.lastModified[r]&&B.setRequestHeader("If-Modified-Since",i.lastModified[r]),i.etag[r]&&B.setRequestHeader("If-None-Match",i.etag[r])),(g.data&&g.hasContent&&g.contentType!==!1||t.contentType)&&B.setRequestHeader("Content-Type",g.contentType),B.setRequestHeader("Accept",g.dataTypes[0]&&g.accepts[g.dataTypes[0]]?g.accepts[g.dataTypes[0]]+(g.dataTypes[0]!=="*"?", "+Nn+"; q=0.01":""):g.accepts["*"]);for(m in g.headers)B.setRequestHeader(m,g.headers[m]);if(g.beforeSend&&(g.beforeSend.call(T,B,g)===!1||f))return B.abort();if(ve="abort",F.add(g.complete),B.done(g.success),B.fail(g.error),n=En(Ot,g,t,B),!n)He(-1,"No Transport");else{if(B.readyState=1,p&&q.trigger("ajaxSend",[B,g]),f)return B;g.async&&g.timeout>0&&(a=l.setTimeout(function(){B.abort("timeout")},g.timeout));try{f=!1,n.send(Z,He)}catch(U){if(f)throw U;He(-1,U)}}function He(U,Y,it,It){var me,ot,xe,Ee,De,ce=Y;f||(f=!0,a&&l.clearTimeout(a),n=void 0,o=It||"",B.readyState=U>0?4:0,me=U>=200&&U<300||U===304,it&&(Ee=Dr(g,B,it)),!me&&i.inArray("script",g.dataTypes)>-1&&i.inArray("json",g.dataTypes)<0&&(g.converters["text script"]=function(){}),Ee=kr(g,Ee,B,me),me?(g.ifModified&&(De=B.getResponseHeader("Last-Modified"),De&&(i.lastModified[r]=De),De=B.getResponseHeader("etag"),De&&(i.etag[r]=De)),U===204||g.type==="HEAD"?ce="nocontent":U===304?ce="notmodified":(ce=Ee.state,ot=Ee.data,xe=Ee.error,me=!xe)):(xe=ce,(U||!ce)&&(ce="error",U<0&&(U=0))),B.status=U,B.statusText=(Y||ce)+"",me?V.resolveWith(T,[ot,ce,B]):V.rejectWith(T,[B,ce,xe]),B.statusCode(ee),ee=void 0,p&&q.trigger(me?"ajaxSuccess":"ajaxError",[B,g,me?ot:xe]),F.fireWith(T,[B,ce]),p&&(q.trigger("ajaxComplete",[B,g]),--i.active||i.event.trigger("ajaxStop")))}return B},getJSON:function(e,t,n){return i.get(e,t,n,"json")},getScript:function(e,t){return i.get(e,void 0,t,"script")}}),i.each(["get","post"],function(e,t){i[t]=function(n,r,o,s){return R(r)&&(s=s||o,o=r,r=void 0),i.ajax(i.extend({url:n,type:t,dataType:s,data:r,success:o},i.isPlainObject(n)&&n))}}),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,n){return i.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(r){i.globalEval(r,t,n)}})},i.fn.extend({wrapAll:function(e){var t;return this[0]&&(R(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 n=this;n.firstElementChild;)n=n.firstElementChild;return n}).append(this)),this},wrapInner:function(e){return R(e)?this.each(function(t){i(this).wrapInner(e.call(this,t))}):this.each(function(){var t=i(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=R(e);return this.each(function(n){i(this).wrapAll(t?e.call(this,n):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 l.XMLHttpRequest}catch{}};var jr={0:200,1223:204},rt=i.ajaxSettings.xhr();L.cors=!!rt&&"withCredentials"in rt,L.ajax=rt=!!rt,i.ajaxTransport(function(e){var t,n;if(L.cors||rt&&!e.crossDomain)return{send:function(r,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&&!r["X-Requested-With"]&&(r["X-Requested-With"]="XMLHttpRequest");for(s in r)a.setRequestHeader(s,r[s]);t=function(c){return function(){t&&(t=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,c==="abort"?a.abort():c==="error"?typeof a.status!="number"?o(0,"error"):o(a.status,a.statusText):o(jr[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(),n=a.onerror=a.ontimeout=t("error"),a.onabort!==void 0?a.onabort=n:a.onreadystatechange=function(){a.readyState===4&&l.setTimeout(function(){t&&n()})},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(c){if(t)throw c}},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,n;return{send:function(r,o){t=i("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(s){t.remove(),n=null,s&&o(s.type==="error"?404:200,s.type)}),I.head.appendChild(t[0])},abort:function(){n&&n()}}}});var Dn=[],Mt=/(=)\?(?=&|$)|\?\?/;i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Dn.pop()||i.expando+"_"+bn.guid++;return this[e]=!0,e}}),i.ajaxPrefilter("json jsonp",function(e,t,n){var r,o,s,a=e.jsonp!==!1&&(Mt.test(e.url)?"url":typeof e.data=="string"&&(e.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&Mt.test(e.data)&&"data");if(a||e.dataTypes[0]==="jsonp")return r=e.jsonpCallback=R(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Mt,"$1"+r):e.jsonp!==!1&&(e.url+=(jt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return s||i.error(r+" was not called"),s[0]},e.dataTypes[0]="json",o=l[r],l[r]=function(){s=arguments},n.always(function(){o===void 0?i(l).removeProp(r):l[r]=o,e[r]&&(e.jsonpCallback=t.jsonpCallback,Dn.push(r)),s&&R(o)&&o(s[0]),s=o=void 0}),"script"}),L.createHTMLDocument=function(){var e=I.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",e.childNodes.length===2}(),i.parseHTML=function(e,t,n){if(typeof e!="string")return[];typeof t=="boolean"&&(n=t,t=!1);var r,o,s;return t||(L.createHTMLDocument?(t=I.implementation.createHTMLDocument(""),r=t.createElement("base"),r.href=I.location.href,t.head.appendChild(r)):t=I),o=Xt.exec(e),s=!n&&[],o?[t.createElement(o[1])]:(o=rn([e],t,s),s&&s.length&&i(s).remove(),i.merge([],o.childNodes))},i.fn.load=function(e,t,n){var r,o,s,a=this,c=e.indexOf(" ");return c>-1&&(r=Oe(e.slice(c)),e=e.slice(0,c)),R(t)?(n=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(f){s=arguments,a.html(r?i("<div>").append(i.parseHTML(f)).find(r):f)}).always(n&&function(f,p){a.each(function(){n.apply(this,s||[f.responseText,p,f])})}),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,n){var r,o,s,a,c,f,p,m=i.css(e,"position"),w=i(e),g={};m==="static"&&(e.style.position="relative"),c=w.offset(),s=i.css(e,"top"),f=i.css(e,"left"),p=(m==="absolute"||m==="fixed")&&(s+f).indexOf("auto")>-1,p?(r=w.position(),a=r.top,o=r.left):(a=parseFloat(s)||0,o=parseFloat(f)||0),R(t)&&(t=t.call(e,n,i.extend({},c))),t.top!=null&&(g.top=t.top-c.top+a),t.left!=null&&(g.left=t.left-c.left+o),"using"in t?t.using.call(e,g):w.css(g)}},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,n,r=this[0];if(r)return r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var e,t,n,r=this[0],o={top:0,left:0};if(i.css(r,"position")==="fixed")t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&i.css(e,"position")==="static";)e=e.parentNode;e&&e!==r&&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(r,"marginTop",!0),left:t.left-o.left-i.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&i.css(e,"position")==="static";)e=e.offsetParent;return e||Pe})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=t==="pageYOffset";i.fn[e]=function(r){return Te(this,function(o,s,a){var c;if(Ie(o)?c=o:o.nodeType===9&&(c=o.defaultView),a===void 0)return c?c[t]:o[s];c?c.scrollTo(n?c.pageXOffset:a,n?a:c.pageYOffset):o[s]=a},e,r,arguments.length)}}),i.each(["top","left"],function(e,t){i.cssHooks[t]=cn(L.pixelPosition,function(n,r){if(r)return r=et(n,t),St.test(r)?i(n).position()[t]+"px":r})}),i.each({Height:"height",Width:"width"},function(e,t){i.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){i.fn[r]=function(o,s){var a=arguments.length&&(n||typeof o!="boolean"),c=n||(o===!0||s===!0?"margin":"border");return Te(this,function(f,p,m){var w;return Ie(f)?r.indexOf("outer")===0?f["inner"+e]:f.document.documentElement["client"+e]:f.nodeType===9?(w=f.documentElement,Math.max(f.body["scroll"+e],w["scroll"+e],f.body["offset"+e],w["offset"+e],w["client"+e])):m===void 0?i.css(f,p,c):i.style(f,p,m,c)},t,a?o:void 0,a)}})}),i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){i.fn[t]=function(n){return this.on(t,n)}}),i.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return arguments.length===1?this.off(e,"**"):this.off(t,e||"**",n)},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(n,r){return arguments.length>0?this.on(t,null,n,r):this.trigger(t)}});var Pr=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;i.proxy=function(e,t){var n,r,o;if(typeof t=="string"&&(n=e[t],t=e,e=n),!!R(e))return r=E.call(arguments,2),o=function(){return e.apply(t||this,r.concat(E.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=Q,i.isFunction=R,i.isWindow=Ie,i.camelCase=ge,i.type=Le,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(Pr,"$1")};var Or=l.jQuery,qr=l.$;return i.noConflict=function(e){return l.$===i&&(l.$=qr),e&&l.jQuery===i&&(l.jQuery=Or),i},typeof v>"u"&&(l.jQuery=l.$=i),i})})(jquery);var jqueryExports=jquery.exports;const $=getDefaultExportFromCjs(jqueryExports),actionAddins={};class MustInputAction{constructor(){P(this,"name");P(this,"actionProps");P(this,"props");this.name="必須チェック",this.actionProps=[],this.register(),this.props={field:{code:""},message:""},this.register()}async process(l,v){var z;let x={canNext:!0,result:!1};if(this.actionProps=l.actionProps,!("field"in l.ActionValue)&&!("message"in l.ActionValue))return x;this.props=l.ActionValue;const S=v.record,E=(z=S[this.props.field.code])==null?void 0:z.value;return E===void 0||E===""?(S[this.props.field.code].error=this.props.message,x):(x={canNext:!0,result:!0},x)}register(){actionAddins[this.name]=this}}new MustInputAction;class Formatter{static numberFormat(l,v){let x=Math.floor(Math.abs(l)).toString(),S=Math.abs(l).toString().split(".")[1]||"",E=l<0,z=v.includes("%");z&&(l*=100,x=Math.floor(Math.abs(l)).toString(),S=Math.abs(l).toString().split(".")[1]||"");let[K,te]=v.split(".");if(x=K?x.padStart(K.replace(/[^0]/g,"").length,"0"):x,S=S.padEnd(te?te.length:0,"0"),/,/.test(K)){const Ae=[];for(;x.length;)Ae.unshift(x.slice(-3)),x=x.slice(0,-3);x=Ae.join(",")}let ue=te?`${x}.${S}`:x;return ue=E?`-${ue}`:ue,z?`${ue}%`:ue}static dateFormat(l,v){const x=l.getFullYear(),S=l.getMonth()+1,E=l.getDate(),z=l.getHours(),K=l.getMinutes(),te=l.getSeconds(),ue=l.getMilliseconds(),Ae=-l.getTimezoneOffset()/60,je={yyyy:x.toString(),yy:x.toString().slice(-2),MM:S.toString().padStart(2,"0"),M:S.toString(),dd:E.toString().padStart(2,"0"),d:E.toString(),HH:z.toString().padStart(2,"0"),H:z.toString(),hh:(z>12?z-12:z).toString().padStart(2,"0"),h:(z>12?z-12:z).toString(),mm:K.toString().padStart(2,"0"),m:K.toString(),ss:te.toString().padStart(2,"0"),s:te.toString(),fff:ue.toString().padStart(3,"0"),zzz:(Ae>=0?"+":"-")+Math.abs(Ae).toString().padStart(2,"0")+":00"};return v.replace(/yyyy|yy|MM|M|dd|d|HH|H|hh|h|mm|m|ss|s|fff|zzz/g,Ge=>je[Ge]||Ge)}}class AutoNumbering{constructor(){P(this,"name");P(this,"actionProps");P(this,"props");this.name="自動採番する",this.actionProps=[],this.register(),this.props={field:{code:""},format:"",prefix:"",suffix:"",verName:""},globalThis.window.$format=this.format,this.register()}async process(H,l,v){let x={canNext:!1,result:!1};try{if(this.actionProps=H.actionProps,!("field"in H.ActionValue)&&!("format"in H.ActionValue))return x;this.props=H.ActionValue;const S=l.record,E=await this.createNumber(this.props);return S[this.props.field.code].value=E,this.props.verName&&(v.variables[this.props.verName]=E),x={canNext:!0,result:!0},x}catch(S){return console.error(S),l.error="処理中異常が発生しました。",{canNext:!1,result:!1}}}execTemplate(H){if(H===void 0)return"";const l=/\$\{([^}]+)\}/g;return H.replace(l,(v,x)=>this.execEval(v,x))}execEval(match,expr){return console.log(match),eval(expr)}format(H){const l=new Date;return Formatter.dateFormat(l,H)}async createNumber(H){let l="",v="",x="",S=1;try{S=await this.fetchNo()}catch(E){console.log(E)}return H.format!==void 0&&H.format!==""?l=Formatter.numberFormat(S,H.format):l=S.toString(10),H.prefix!==void 0&&H.prefix!==""&&(v=this.execTemplate(H.prefix)),H.suffix!==void 0&&H.suffix!==""&&(x=this.execTemplate(H.suffix)),`${v}${l}${x}`}async fetchNo(){let H=1;return await new kintone.Promise((l,v)=>{const x=kintone.api.url("/k/v1/records",!0),S={app:kintone.app.getId(),fields:["$id"],query:"limit 1"};return kintone.api(x,"GET",S).then(E=>{E.records[0]!==null&&(H=parseInt(E.records[0].$id.value,10)+1),l(H)}).catch(E=>{v(E)})})}register(){actionAddins[this.name]=this}}new AutoNumbering;class GroupNode{constructor(l,v){P(this,"index");P(this,"type");P(this,"children");P(this,"parent");P(this,"logicalOperator");this.index=0,this.type=v==null?"root":"logicgroup",this.logicalOperator=l,this.parent=v,this.children=[]}get label(){return this.logicalOperator}get header(){return this.type==="root"?"root":"generic"}get expanded(){return this.children.length>0}static fromJSON(l,v=null){const x=new GroupNode(l.logicalOperator,v);return x.index=l.index,x.children=l.children.map(S=>S.type==="logicgroup"?GroupNode.fromJSON(S,x):ConditionNode.fromJSON(S,x)),x}}class ConditionNode{constructor(l,v,x,S){P(this,"index");P(this,"type");P(this,"parent");P(this,"object");P(this,"operator");P(this,"value");this.index=0,this.type="condition",this.object=l,this.operator=v,this.value=x,this.parent=S}get logicalOperator(){return this.parent.logicalOperator}get header(){return"generic"}static fromJSON(l,v){const x=new ConditionNode(l.object,l.operator,l.value,v);return x.index=l.index,x}}class ConditionTree{constructor(){P(this,"root");P(this,"maxIndex");this.maxIndex=0,this.root=new GroupNode("AND",null)}addNode(l,v){this.maxIndex++,v.index=this.maxIndex,l.children.push(v)}removeNode(l){if(l.parent===null)throw new Error("ルートノード削除できません");{const v=l.parent,x=v.children.indexOf(l);x>-1&&v.children.splice(x,1)}}findByIndex(l){return this.findChildren(this.root,l)}findChildren(l,v){if(l.index===v)return l;for(const x of l.children){if(x.index===v)return x;if(x.type!=="condition"){const S=this.findChildren(x,v);if(S)return S}}}getMaxIndex(l){let v=l.index;return l.type!=="condition"&&l.children.forEach(S=>{const E=this.getMaxIndex(S);E>v&&(v=E)}),v}buildConditionString(l){if(l.type!=="condition"){let v="(";const x=l;for(let S=0;S<x.children.length;S++){const E=this.buildConditionString(x.children[S]);E!==""&&(v+=E,S<x.children.length-1&&(v+=` ${x.logicalOperator} `))}return v+=")",v}else{const v=l;if(v.object&&v.operator){let x=v.value;return x&&typeof x=="object"&&"label"in x&&(x=v.value.label),`${v.object.name} ${v.operator} '${x}'`}else return""}}getConditions(l){const v=[];return l.children.forEach(x=>{x.type==="condition"?v.push(x):v.push(...this.getConditions(x))}),v}getGroups(l){const v=[];return v.push(l.index),l.children.forEach(x=>{x.type!=="condition"&&v.push(...this.getGroups(x))}),v}fromJson(l){const v=JSON.parse(l);return this.root=GroupNode.fromJSON(v),this.maxIndex=this.getMaxIndex(this.root),this.root}toJson(){return JSON.stringify(this.root,(l,v)=>l==="parent"?v?v.type:null:v)}evaluate(l,v){if(l.type==="condition")return this.evaluateCondition(l,v);if(l.type==="logicgroup"||l.type==="root"){const x=l,S=x.children.map(E=>this.evaluate(E,v));if(x.logicalOperator==="AND")return S.every(E=>E);if(x.logicalOperator==="OR")return S.some(E=>E);throw new Error("Unsupported logical operator")}else throw new Error("Unsupported node type")}getObjectValue(l,v){if(!l||typeof l!="object"||!("objectType"in l))return l;if(l.objectType==="field")return v.record[l.code].value;if(l.objectType==="var")return v.variables[l.varName].value}getConditionValue(l){if(!l||typeof l!="object")return l;if("label"in l)return l.label;if("value"in l)return l.value;if("name"in l)return l.name}evaluateCondition(l,v){const{object:x,operator:S,value:E}=l,z=this.getObjectValue(x,v),K=this.getConditionValue(E);switch(S){case"=":case"!=":case">":case">=":case"<":case"<=":return this.compare(S,z,K);case"contains":return this.contains(z,K);case"not contains":return!this.contains(z,K);case"start With":return this.startWith(z,K);case"not start with":return!this.startWith(z,K);case"end with":return this.endsWith(z,K);case"not end with":return this.endsWith(z,K);default:throw new Error("Unsupported operator")}}compare(l,v,x){if(v instanceof Date){const S=new Date(x);isNaN(S.getTime())||(x=S)}else if(typeof v=="number"){const S=Number(x);isNaN(S)||(x=S)}else typeof v=="string"&&(x=String(x));switch(l){case"=":return v===x;case"!=":return v!==x;case">":return v>x;case">=":return v>=x;case"<":return v<x;case"<=":return v<=x;default:throw new Error("Unsupported operator for comparison")}}contains(l,v){return typeof l=="string"&&typeof v=="string"?l.includes(v):!1}startWith(l,v){return typeof l=="string"&&typeof v=="string"?l.startsWith(v):!1}endsWith(l,v){return typeof l=="string"&&typeof v=="string"?l.endsWith(v):!1}}class FieldShownAction{constructor(){P(this,"name");P(this,"actionProps");P(this,"props");this.name="表示/非表示",this.actionProps=[],this.props={field:{code:""},show:"",condition:""},this.register()}async process(l,v,x){let S={canNext:!0,result:!1};try{return this.actionProps=l.actionProps,!("field"in l.ActionValue)&&!("show"in l.ActionValue)||(this.props=l.ActionValue,this.getConditionResult(x)&&(this.props.show==="表示"?kintone.app.record.setFieldShown(this.props.field.code,!0):this.props.show==="非表示"&&kintone.app.record.setFieldShown(this.props.field.code,!1)),S={canNext:!0,result:!0}),S}catch(E){return v.error=E,console.error(E),S.canNext=!1,S}}getConditionResult(l){const v=this.getCondition(this.props.condition);return v?v.evaluate(v.root,l):!0}getCondition(l){try{const v=new ConditionTree;return v.fromJson(l),v.getConditions(v.root).length>0?v:null}catch{return null}}register(){actionAddins[this.name]=this}}new FieldShownAction;class ActionProcess{constructor(l,v,x){P(this,"eventId");P(this,"flow");P(this,"event");P(this,"context");this.eventId=l,this.flow=v,this.event=x,this.context={record:this.event.record,variables:{}}}async exec(){const l=this.flow.getRoot();if(l===void 0||l.nextNodeIds.size===0)return;let v=l.nextNodeIds.get("");if(v===void 0)return;let x=this.flow.findNodeById(v),S={canNext:!0};for(;x!==void 0&&S.canNext;){const E=actionAddins[x.name];E!==void 0&&(S=await E.process(x,this.event,this.context));const z=x.outputPoints!==void 0&&S.result||"";if(v=x.nextNodeIds.get(z),v===void 0)return;x=this.flow.findNodeById(v)}}}class ActionProperty{constructor(l,v,x,S,E){P(this,"component");P(this,"props");this.component=l,this.props={name:v,displayName:x,placeholder:S,modelValue:E}}static defaultProperty(){return new ActionProperty("InputText","displayName","表示名","表示を入力してください","")}}class ActionNode{constructor({id:l,name:v,title:x,inputPoint:S,outputPoint:E,actionProps:z}){P(this,"id");P(this,"name");P(this,"inputPoint");P(this,"outputPoints");P(this,"actionProps");P(this,"prevNodeId");P(this,"nextNodeIds");this.id=l,this.name=v,this.inputPoint=S,this.outputPoints=E;const K=ActionProperty.defaultProperty();K.props.modelValue=x,this.actionProps=z,this.nextNodeIds=new Map}get title(){const l=this.actionProps.find(v=>v.props.name==="displayName");return l==null?void 0:l.props.modelValue}get subTitle(){return this.name}get isRoot(){return!1}get ActionValue(){const l={};return this.actionProps.forEach(v=>{l[v.props.name]=v.props.modelValue}),l}}class RootAction{constructor({id:l,name:v,title:x,subTitle:S}){P(this,"id");P(this,"name");P(this,"title");P(this,"subTitle");P(this,"inputPoint");P(this,"outputPoints");P(this,"isRoot");P(this,"actionProps");P(this,"ActionValue");P(this,"prevNodeId");P(this,"nextNodeIds");this.id=l,this.name=v,this.title=x,this.subTitle=S,this.inputPoint="",this.outputPoints=[],this.isRoot=!0,this.actionProps=[],this.ActionValue={},this.nextNodeIds=new Map}}class ActionFlow{constructor(l){P(this,"id");P(this,"actionNodes");l instanceof Array?this.actionNodes=l:this.actionNodes=[l],this.id=""}findNodeById(l){return this.actionNodes.find(v=>v.id===l)}toJSON(){return{id:this.id,actionNodes:this.actionNodes.map(l=>{const{nextNodeIds:v,...x}=l;return{...x,nextNodeIds:Array.from(v.entries())}})}}getRoot(){return this.actionNodes.find(l=>l.isRoot)}static fromJSON(l){const v=JSON.parse(l),x=v.actionNodes.map(E=>{const z=E.isRoot?new RootAction(E):new ActionNode(E);return z.nextNodeIds=new Map(E.nextNodeIds),z.prevNodeId=E.prevNodeId,z.id=E.id,z}),S=new ActionFlow(x);return S.id=v.id,S}}$(function(){const H=Object.keys(alcflow);kintone.events.on(H,async l=>{const v=alcflow[l.type],x=ActionFlow.fromJSON(v.content);return x!==void 0&&await new ActionProcess(l.type,x,l).exec(),l})});
//# sourceMappingURL=alc_runtime.js.map