From 869ec3bfab06bbad0c4e11ca90795103b9a41bab Mon Sep 17 00:00:00 2001 From: Pau Oliva Date: Wed, 11 Sep 2024 16:25:21 +0200 Subject: [PATCH] show times when multiple times are checked, show failed and success counters, store last connected Mac, bugfixes and QoL improvements --- ...CVGQrVKW.js => chunk-Y3BVWVFU-Dnq3jO1H.js} | 2 +- .../{index-DKr3XGX6.js => index-BeSqQRzG.js} | 28 +-- .../{index-6Uh7mn8L.js => index-C0CFoZfZ.js} | 2 +- ...RDWr7MR.js => inside-Y2UVJZNJ-BIGq-Vc8.js} | 4 +- ...amic-sgs-side-events-RPVZU2YB-n9Usy7yi.js} | 8 +- ...namic-sgs-unofficial-2TYKOUM4-gGWtrktZ.js} | 2 +- ...-dynamic-solve-4x4x4-V5D7RQND-DyknnesA.js} | 2 +- ...ch-dynamic-solve-fto-UOKDYVD5-BsSdJpqT.js} | 2 +- ...namic-solve-kilominx-RAZM75GA-VO0X0iP7.js} | 2 +- ...lve-master_tetraminx-3D4MBF3V-BPBgOXQt.js} | 2 +- ...ch-dynamic-solve-sq1-YESVPPLF-Cy3eCfGj.js} | 2 +- ...TLP.js => search-worker-entry-DVehLO7T.js} | 4 +- ...=> twisty-dynamic-3d-HF7KVBOE-DIyL00u0.js} | 2 +- ...bAOM4.js => twsearch-MRZGOB6T-Ds6SRqnK.js} | 2 +- docs/index.html | 2 +- docs/sw.js | 2 +- index.html | 1 + src/functions.ts | 14 +- src/index.ts | 163 ++++++++++++------ src/style.css | 26 ++- src/tailwind.css | 2 +- 21 files changed, 174 insertions(+), 100 deletions(-) rename docs/assets/{chunk-Y3BVWVFU-CVGQrVKW.js => chunk-Y3BVWVFU-Dnq3jO1H.js} (95%) rename docs/assets/{index-DKr3XGX6.js => index-BeSqQRzG.js} (98%) rename docs/assets/{index-6Uh7mn8L.js => index-C0CFoZfZ.js} (99%) rename docs/assets/{inside-Y2UVJZNJ-BRDWr7MR.js => inside-Y2UVJZNJ-BIGq-Vc8.js} (86%) rename docs/assets/{search-dynamic-sgs-side-events-RPVZU2YB-BW0s4clI.js => search-dynamic-sgs-side-events-RPVZU2YB-n9Usy7yi.js} (98%) rename docs/assets/{search-dynamic-sgs-unofficial-2TYKOUM4-D1F7Kxvj.js => search-dynamic-sgs-unofficial-2TYKOUM4-gGWtrktZ.js} (99%) rename docs/assets/{search-dynamic-solve-4x4x4-V5D7RQND-C47eE0oE.js => search-dynamic-solve-4x4x4-V5D7RQND-DyknnesA.js} (99%) rename docs/assets/{search-dynamic-solve-fto-UOKDYVD5-B7CznAuN.js => search-dynamic-solve-fto-UOKDYVD5-BsSdJpqT.js} (99%) rename docs/assets/{search-dynamic-solve-kilominx-RAZM75GA-BMZTkWQx.js => search-dynamic-solve-kilominx-RAZM75GA-VO0X0iP7.js} (99%) rename docs/assets/{search-dynamic-solve-master_tetraminx-3D4MBF3V-CXpiJqbr.js => search-dynamic-solve-master_tetraminx-3D4MBF3V-BPBgOXQt.js} (99%) rename docs/assets/{search-dynamic-solve-sq1-YESVPPLF-xzVW2V01.js => search-dynamic-solve-sq1-YESVPPLF-Cy3eCfGj.js} (99%) rename docs/assets/{search-worker-entry-BH5NATLP.js => search-worker-entry-DVehLO7T.js} (76%) rename docs/assets/{twisty-dynamic-3d-HF7KVBOE-DHq-H7pV.js => twisty-dynamic-3d-HF7KVBOE-DIyL00u0.js} (99%) rename docs/assets/{twsearch-MRZGOB6T-C-KbAOM4.js => twsearch-MRZGOB6T-Ds6SRqnK.js} (99%) diff --git a/docs/assets/chunk-Y3BVWVFU-CVGQrVKW.js b/docs/assets/chunk-Y3BVWVFU-Dnq3jO1H.js similarity index 95% rename from docs/assets/chunk-Y3BVWVFU-CVGQrVKW.js rename to docs/assets/chunk-Y3BVWVFU-Dnq3jO1H.js index 291775a..89bd313 100644 --- a/docs/assets/chunk-Y3BVWVFU-CVGQrVKW.js +++ b/docs/assets/chunk-Y3BVWVFU-Dnq3jO1H.js @@ -1,2 +1,2 @@ -import{J as h}from"./index-DKr3XGX6.js";function S(g,b){const s=[],n=[];for(const t of b.split(` +import{J as h}from"./index-BeSqQRzG.js";function S(g,b){const s=[],n=[];for(const t of b.split(` `)){const a=t.split(" ");if(!t.startsWith("SetOrder ")){if(t.startsWith("Alg ")){const e=h.fromString(t.substring(4));n.push({alg:e,transformation:g.algToTransformation(e)})}else if(t.startsWith("SubgroupSizes "))for(let e=1;e=0;t--){const a=[];for(let o=f[t];o{throw TypeError(i)};var uS=(i,e,t)=>e in * https://jquery.org/license * * Date: 2023-08-28T13:37Z - */(function(i){(function(e,t){i.exports=e.document?t(e,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}})(typeof window<"u"?window:hS,function(e,t){var n=[],r=Object.getPrototypeOf,s=n.slice,a=n.flat?function(l){return n.flat.call(l)}:function(l){return n.concat.apply([],l)},o=n.push,c=n.indexOf,u={},h=u.toString,p=u.hasOwnProperty,f=p.toString,m=f.call(Object),g={},_=function(d){return typeof d=="function"&&typeof d.nodeType!="number"&&typeof d.item!="function"},b=function(d){return d!=null&&d===d.window},v=e.document,A={type:!0,src:!0,nonce:!0,noModule:!0};function S(l,d,y){y=y||v;var w,M,E=y.createElement("script");if(E.text=l,d)for(w in A)M=d[w]||d.getAttribute&&d.getAttribute(w),M&&E.setAttribute(w,M);y.head.appendChild(E).parentNode.removeChild(E)}function T(l){return l==null?l+"":typeof l=="object"||typeof l=="function"?u[h.call(l)]||"object":typeof l}var H="3.7.1",U=/HTML$/i,x=function(l,d){return new x.fn.init(l,d)};x.fn=x.prototype={jquery:H,constructor:x,length:0,toArray:function(){return s.call(this)},get:function(l){return l==null?s.call(this):l<0?this[l+this.length]:this[l]},pushStack:function(l){var d=x.merge(this.constructor(),l);return d.prevObject=this,d},each:function(l){return x.each(this,l)},map:function(l){return this.pushStack(x.map(this,function(d,y){return l.call(d,y,d)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(x.grep(this,function(l,d){return(d+1)%2}))},odd:function(){return this.pushStack(x.grep(this,function(l,d){return d%2}))},eq:function(l){var d=this.length,y=+l+(l<0?d:0);return this.pushStack(y>=0&&y0&&d-1 in l}function L(l,d){return l.nodeName&&l.nodeName.toLowerCase()===d.toLowerCase()}var C=n.pop,B=n.sort,ue=n.splice,K="[\\x20\\t\\r\\n\\f]",le=new RegExp("^"+K+"+|((?:^|[^\\\\])(?:\\\\.)*)"+K+"+$","g");x.contains=function(l,d){var y=d&&d.parentNode;return l===y||!!(y&&y.nodeType===1&&(l.contains?l.contains(y):l.compareDocumentPosition&&l.compareDocumentPosition(y)&16))};var ge=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function de(l,d){return d?l==="\0"?"�":l.slice(0,-1)+"\\"+l.charCodeAt(l.length-1).toString(16)+" ":"\\"+l}x.escapeSelector=function(l){return(l+"").replace(ge,de)};var Ae=v,pe=o;(function(){var l,d,y,w,M,E=pe,R,V,k,Z,fe,xe=x.expando,ae=0,Ie=0,yt=lu(),Ft=lu(),Tt=lu(),On=lu(),En=function(N,Y){return N===Y&&(M=!0),0},Qi="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",er="(?:\\\\[\\da-fA-F]{1,6}"+K+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Dt="\\["+K+"*("+er+")(?:"+K+"*([*^$|!~]?=)"+K+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+er+"))|)"+K+"*\\]",Us=":("+er+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Dt+")*)|.*)\\)|)",zt=new RegExp(K+"+","g"),hn=new RegExp("^"+K+"*,"+K+"*"),oc=new RegExp("^"+K+"*([>+~]|"+K+")"+K+"*"),wf=new RegExp(K+"|>"),tr=new RegExp(Us),cc=new RegExp("^"+er+"$"),nr={ID:new RegExp("^#("+er+")"),CLASS:new RegExp("^\\.("+er+")"),TAG:new RegExp("^("+er+"|[*])"),ATTR:new RegExp("^"+Dt),PSEUDO:new RegExp("^"+Us),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+Qi+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},ns=/^(?:input|select|textarea|button)$/i,is=/^h\d$/i,Ti=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Sf=/[+~]/,br=new RegExp("\\\\[\\da-fA-F]{1,6}"+K+"?|\\\\([^\\r\\n\\f])","g"),_r=function(N,Y){var ie="0x"+N.slice(1)-65536;return Y||(ie<0?String.fromCharCode(ie+65536):String.fromCharCode(ie>>10|55296,ie&1023|56320))},nS=function(){rs()},iS=hu(function(N){return N.disabled===!0&&L(N,"fieldset")},{dir:"parentNode",next:"legend"});function rS(){try{return R.activeElement}catch{}}try{E.apply(n=s.call(Ae.childNodes),Ae.childNodes),n[Ae.childNodes.length].nodeType}catch{E={apply:function(Y,ie){pe.apply(Y,s.call(ie))},call:function(Y){pe.apply(Y,s.call(arguments,1))}}}function jt(N,Y,ie,he){var me,Oe,$e,ot,Ze,Lt,gt,_t=Y&&Y.ownerDocument,It=Y?Y.nodeType:9;if(ie=ie||[],typeof N!="string"||!N||It!==1&&It!==9&&It!==11)return ie;if(!he&&(rs(Y),Y=Y||R,k)){if(It!==11&&(Ze=Ti.exec(N)))if(me=Ze[1]){if(It===9)if($e=Y.getElementById(me)){if($e.id===me)return E.call(ie,$e),ie}else return ie;else if(_t&&($e=_t.getElementById(me))&&jt.contains(Y,$e)&&$e.id===me)return E.call(ie,$e),ie}else{if(Ze[2])return E.apply(ie,Y.getElementsByTagName(N)),ie;if((me=Ze[3])&&Y.getElementsByClassName)return E.apply(ie,Y.getElementsByClassName(me)),ie}if(!On[N+" "]&&(!Z||!Z.test(N))){if(gt=N,_t=Y,It===1&&(wf.test(N)||oc.test(N))){for(_t=Sf.test(N)&&Mf(Y.parentNode)||Y,(_t!=Y||!g.scope)&&((ot=Y.getAttribute("id"))?ot=x.escapeSelector(ot):Y.setAttribute("id",ot=xe)),Lt=lc(N),Oe=Lt.length;Oe--;)Lt[Oe]=(ot?"#"+ot:":scope")+" "+uu(Lt[Oe]);gt=Lt.join(",")}try{return E.apply(ie,_t.querySelectorAll(gt)),ie}catch{On(N,!0)}finally{ot===xe&&Y.removeAttribute("id")}}}return cx(N.replace(le,"$1"),Y,ie,he)}function lu(){var N=[];function Y(ie,he){return N.push(ie+" ")>d.cacheLength&&delete Y[N.shift()],Y[ie+" "]=he}return Y}function Oi(N){return N[xe]=!0,N}function Ha(N){var Y=R.createElement("fieldset");try{return!!N(Y)}catch{return!1}finally{Y.parentNode&&Y.parentNode.removeChild(Y),Y=null}}function sS(N){return function(Y){return L(Y,"input")&&Y.type===N}}function aS(N){return function(Y){return(L(Y,"input")||L(Y,"button"))&&Y.type===N}}function ax(N){return function(Y){return"form"in Y?Y.parentNode&&Y.disabled===!1?"label"in Y?"label"in Y.parentNode?Y.parentNode.disabled===N:Y.disabled===N:Y.isDisabled===N||Y.isDisabled!==!N&&iS(Y)===N:Y.disabled===N:"label"in Y?Y.disabled===N:!1}}function Ns(N){return Oi(function(Y){return Y=+Y,Oi(function(ie,he){for(var me,Oe=N([],ie.length,Y),$e=Oe.length;$e--;)ie[me=Oe[$e]]&&(ie[me]=!(he[me]=ie[me]))})})}function Mf(N){return N&&typeof N.getElementsByTagName<"u"&&N}function rs(N){var Y,ie=N?N.ownerDocument||N:Ae;return ie==R||ie.nodeType!==9||!ie.documentElement||(R=ie,V=R.documentElement,k=!x.isXMLDoc(R),fe=V.matches||V.webkitMatchesSelector||V.msMatchesSelector,V.msMatchesSelector&&Ae!=R&&(Y=R.defaultView)&&Y.top!==Y&&Y.addEventListener("unload",nS),g.getById=Ha(function(he){return V.appendChild(he).id=x.expando,!R.getElementsByName||!R.getElementsByName(x.expando).length}),g.disconnectedMatch=Ha(function(he){return fe.call(he,"*")}),g.scope=Ha(function(){return R.querySelectorAll(":scope")}),g.cssHas=Ha(function(){try{return R.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),g.getById?(d.filter.ID=function(he){var me=he.replace(br,_r);return function(Oe){return Oe.getAttribute("id")===me}},d.find.ID=function(he,me){if(typeof me.getElementById<"u"&&k){var Oe=me.getElementById(he);return Oe?[Oe]:[]}}):(d.filter.ID=function(he){var me=he.replace(br,_r);return function(Oe){var $e=typeof Oe.getAttributeNode<"u"&&Oe.getAttributeNode("id");return $e&&$e.value===me}},d.find.ID=function(he,me){if(typeof me.getElementById<"u"&&k){var Oe,$e,ot,Ze=me.getElementById(he);if(Ze){if(Oe=Ze.getAttributeNode("id"),Oe&&Oe.value===he)return[Ze];for(ot=me.getElementsByName(he),$e=0;Ze=ot[$e++];)if(Oe=Ze.getAttributeNode("id"),Oe&&Oe.value===he)return[Ze]}return[]}}),d.find.TAG=function(he,me){return typeof me.getElementsByTagName<"u"?me.getElementsByTagName(he):me.querySelectorAll(he)},d.find.CLASS=function(he,me){if(typeof me.getElementsByClassName<"u"&&k)return me.getElementsByClassName(he)},Z=[],Ha(function(he){var me;V.appendChild(he).innerHTML="",he.querySelectorAll("[selected]").length||Z.push("\\["+K+"*(?:value|"+Qi+")"),he.querySelectorAll("[id~="+xe+"-]").length||Z.push("~="),he.querySelectorAll("a#"+xe+"+*").length||Z.push(".#.+[+~]"),he.querySelectorAll(":checked").length||Z.push(":checked"),me=R.createElement("input"),me.setAttribute("type","hidden"),he.appendChild(me).setAttribute("name","D"),V.appendChild(he).disabled=!0,he.querySelectorAll(":disabled").length!==2&&Z.push(":enabled",":disabled"),me=R.createElement("input"),me.setAttribute("name",""),he.appendChild(me),he.querySelectorAll("[name='']").length||Z.push("\\["+K+"*name"+K+"*="+K+`*(?:''|"")`)}),g.cssHas||Z.push(":has"),Z=Z.length&&new RegExp(Z.join("|")),En=function(he,me){if(he===me)return M=!0,0;var Oe=!he.compareDocumentPosition-!me.compareDocumentPosition;return Oe||(Oe=(he.ownerDocument||he)==(me.ownerDocument||me)?he.compareDocumentPosition(me):1,Oe&1||!g.sortDetached&&me.compareDocumentPosition(he)===Oe?he===R||he.ownerDocument==Ae&&jt.contains(Ae,he)?-1:me===R||me.ownerDocument==Ae&&jt.contains(Ae,me)?1:w?c.call(w,he)-c.call(w,me):0:Oe&4?-1:1)}),R}jt.matches=function(N,Y){return jt(N,null,null,Y)},jt.matchesSelector=function(N,Y){if(rs(N),k&&!On[Y+" "]&&(!Z||!Z.test(Y)))try{var ie=fe.call(N,Y);if(ie||g.disconnectedMatch||N.document&&N.document.nodeType!==11)return ie}catch{On(Y,!0)}return jt(Y,R,null,[N]).length>0},jt.contains=function(N,Y){return(N.ownerDocument||N)!=R&&rs(N),x.contains(N,Y)},jt.attr=function(N,Y){(N.ownerDocument||N)!=R&&rs(N);var ie=d.attrHandle[Y.toLowerCase()],he=ie&&p.call(d.attrHandle,Y.toLowerCase())?ie(N,Y,!k):void 0;return he!==void 0?he:N.getAttribute(Y)},jt.error=function(N){throw new Error("Syntax error, unrecognized expression: "+N)},x.uniqueSort=function(N){var Y,ie=[],he=0,me=0;if(M=!g.sortStable,w=!g.sortStable&&s.call(N,0),B.call(N,En),M){for(;Y=N[me++];)Y===N[me]&&(he=ie.push(me));for(;he--;)ue.call(N,ie[he],1)}return w=null,N},x.fn.uniqueSort=function(){return this.pushStack(x.uniqueSort(s.apply(this)))},d=x.expr={cacheLength:50,createPseudo:Oi,match:nr,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(N){return N[1]=N[1].replace(br,_r),N[3]=(N[3]||N[4]||N[5]||"").replace(br,_r),N[2]==="~="&&(N[3]=" "+N[3]+" "),N.slice(0,4)},CHILD:function(N){return N[1]=N[1].toLowerCase(),N[1].slice(0,3)==="nth"?(N[3]||jt.error(N[0]),N[4]=+(N[4]?N[5]+(N[6]||1):2*(N[3]==="even"||N[3]==="odd")),N[5]=+(N[7]+N[8]||N[3]==="odd")):N[3]&&jt.error(N[0]),N},PSEUDO:function(N){var Y,ie=!N[6]&&N[2];return nr.CHILD.test(N[0])?null:(N[3]?N[2]=N[4]||N[5]||"":ie&&tr.test(ie)&&(Y=lc(ie,!0))&&(Y=ie.indexOf(")",ie.length-Y)-ie.length)&&(N[0]=N[0].slice(0,Y),N[2]=ie.slice(0,Y)),N.slice(0,3))}},filter:{TAG:function(N){var Y=N.replace(br,_r).toLowerCase();return N==="*"?function(){return!0}:function(ie){return L(ie,Y)}},CLASS:function(N){var Y=yt[N+" "];return Y||(Y=new RegExp("(^|"+K+")"+N+"("+K+"|$)"))&&yt(N,function(ie){return Y.test(typeof ie.className=="string"&&ie.className||typeof ie.getAttribute<"u"&&ie.getAttribute("class")||"")})},ATTR:function(N,Y,ie){return function(he){var me=jt.attr(he,N);return me==null?Y==="!=":Y?(me+="",Y==="="?me===ie:Y==="!="?me!==ie:Y==="^="?ie&&me.indexOf(ie)===0:Y==="*="?ie&&me.indexOf(ie)>-1:Y==="$="?ie&&me.slice(-ie.length)===ie:Y==="~="?(" "+me.replace(zt," ")+" ").indexOf(ie)>-1:Y==="|="?me===ie||me.slice(0,ie.length+1)===ie+"-":!1):!0}},CHILD:function(N,Y,ie,he,me){var Oe=N.slice(0,3)!=="nth",$e=N.slice(-4)!=="last",ot=Y==="of-type";return he===1&&me===0?function(Ze){return!!Ze.parentNode}:function(Ze,Lt,gt){var _t,It,ht,en,oi,Hn=Oe!==$e?"nextSibling":"previousSibling",Ri=Ze.parentNode,ir=ot&&Ze.nodeName.toLowerCase(),Ga=!gt&&!ot,Jn=!1;if(Ri){if(Oe){for(;Hn;){for(ht=Ze;ht=ht[Hn];)if(ot?L(ht,ir):ht.nodeType===1)return!1;oi=Hn=N==="only"&&!oi&&"nextSibling"}return!0}if(oi=[$e?Ri.firstChild:Ri.lastChild],$e&&Ga){for(It=Ri[xe]||(Ri[xe]={}),_t=It[N]||[],en=_t[0]===ae&&_t[1],Jn=en&&_t[2],ht=en&&Ri.childNodes[en];ht=++en&&ht&&ht[Hn]||(Jn=en=0)||oi.pop();)if(ht.nodeType===1&&++Jn&&ht===Ze){It[N]=[ae,en,Jn];break}}else if(Ga&&(It=Ze[xe]||(Ze[xe]={}),_t=It[N]||[],en=_t[0]===ae&&_t[1],Jn=en),Jn===!1)for(;(ht=++en&&ht&&ht[Hn]||(Jn=en=0)||oi.pop())&&!((ot?L(ht,ir):ht.nodeType===1)&&++Jn&&(Ga&&(It=ht[xe]||(ht[xe]={}),It[N]=[ae,Jn]),ht===Ze)););return Jn-=me,Jn===he||Jn%he===0&&Jn/he>=0}}},PSEUDO:function(N,Y){var ie,he=d.pseudos[N]||d.setFilters[N.toLowerCase()]||jt.error("unsupported pseudo: "+N);return he[xe]?he(Y):he.length>1?(ie=[N,N,"",Y],d.setFilters.hasOwnProperty(N.toLowerCase())?Oi(function(me,Oe){for(var $e,ot=he(me,Y),Ze=ot.length;Ze--;)$e=c.call(me,ot[Ze]),me[$e]=!(Oe[$e]=ot[Ze])}):function(me){return he(me,0,ie)}):he}},pseudos:{not:Oi(function(N){var Y=[],ie=[],he=Rf(N.replace(le,"$1"));return he[xe]?Oi(function(me,Oe,$e,ot){for(var Ze,Lt=he(me,null,ot,[]),gt=me.length;gt--;)(Ze=Lt[gt])&&(me[gt]=!(Oe[gt]=Ze))}):function(me,Oe,$e){return Y[0]=me,he(Y,null,$e,ie),Y[0]=null,!ie.pop()}}),has:Oi(function(N){return function(Y){return jt(N,Y).length>0}}),contains:Oi(function(N){return N=N.replace(br,_r),function(Y){return(Y.textContent||x.text(Y)).indexOf(N)>-1}}),lang:Oi(function(N){return cc.test(N||"")||jt.error("unsupported lang: "+N),N=N.replace(br,_r).toLowerCase(),function(Y){var ie;do if(ie=k?Y.lang:Y.getAttribute("xml:lang")||Y.getAttribute("lang"))return ie=ie.toLowerCase(),ie===N||ie.indexOf(N+"-")===0;while((Y=Y.parentNode)&&Y.nodeType===1);return!1}}),target:function(N){var Y=e.location&&e.location.hash;return Y&&Y.slice(1)===N.id},root:function(N){return N===V},focus:function(N){return N===rS()&&R.hasFocus()&&!!(N.type||N.href||~N.tabIndex)},enabled:ax(!1),disabled:ax(!0),checked:function(N){return L(N,"input")&&!!N.checked||L(N,"option")&&!!N.selected},selected:function(N){return N.parentNode&&N.parentNode.selectedIndex,N.selected===!0},empty:function(N){for(N=N.firstChild;N;N=N.nextSibling)if(N.nodeType<6)return!1;return!0},parent:function(N){return!d.pseudos.empty(N)},header:function(N){return is.test(N.nodeName)},input:function(N){return ns.test(N.nodeName)},button:function(N){return L(N,"input")&&N.type==="button"||L(N,"button")},text:function(N){var Y;return L(N,"input")&&N.type==="text"&&((Y=N.getAttribute("type"))==null||Y.toLowerCase()==="text")},first:Ns(function(){return[0]}),last:Ns(function(N,Y){return[Y-1]}),eq:Ns(function(N,Y,ie){return[ie<0?ie+Y:ie]}),even:Ns(function(N,Y){for(var ie=0;ieY?he=Y:he=ie;--he>=0;)N.push(he);return N}),gt:Ns(function(N,Y,ie){for(var he=ie<0?ie+Y:ie;++he1?function(Y,ie,he){for(var me=N.length;me--;)if(!N[me](Y,ie,he))return!1;return!0}:N[0]}function oS(N,Y,ie){for(var he=0,me=Y.length;he-1&&($e[gt]=!(ot[gt]=It))}}else ht=du(ht===ot?ht.splice(Hn,ht.length):ht),me?me(null,ot,ht,Lt):E.apply(ot,ht)})}function Tf(N){for(var Y,ie,he,me=N.length,Oe=d.relative[N[0].type],$e=Oe||d.relative[" "],ot=Oe?1:0,Ze=hu(function(_t){return _t===Y},$e,!0),Lt=hu(function(_t){return c.call(Y,_t)>-1},$e,!0),gt=[function(_t,It,ht){var en=!Oe&&(ht||It!=y)||((Y=It).nodeType?Ze(_t,It,ht):Lt(_t,It,ht));return Y=null,en}];ot1&&Ef(gt),ot>1&&uu(N.slice(0,ot-1).concat({value:N[ot-2].type===" "?"*":""})).replace(le,"$1"),ie,ot0,he=N.length>0,me=function(Oe,$e,ot,Ze,Lt){var gt,_t,It,ht=0,en="0",oi=Oe&&[],Hn=[],Ri=y,ir=Oe||he&&d.find.TAG("*",Lt),Ga=ae+=Ri==null?1:Math.random()||.1,Jn=ir.length;for(Lt&&(y=$e==R||$e||Lt);en!==Jn&&(gt=ir[en])!=null;en++){if(he&>){for(_t=0,!$e&>.ownerDocument!=R&&(rs(gt),ot=!k);It=N[_t++];)if(It(gt,$e||R,ot)){E.call(Ze,gt);break}Lt&&(ae=Ga)}ie&&((gt=!It&>)&&ht--,Oe&&oi.push(gt))}if(ht+=en,ie&&en!==ht){for(_t=0;It=Y[_t++];)It(oi,Hn,$e,ot);if(Oe){if(ht>0)for(;en--;)oi[en]||Hn[en]||(Hn[en]=C.call(Ze));Hn=du(Hn)}E.apply(Ze,Hn),Lt&&!Oe&&Hn.length>0&&ht+Y.length>1&&x.uniqueSort(Ze)}return Lt&&(ae=Ga,y=Ri),oi};return ie?Oi(me):me}function Rf(N,Y){var ie,he=[],me=[],Oe=Tt[N+" "];if(!Oe){for(Y||(Y=lc(N)),ie=Y.length;ie--;)Oe=Tf(Y[ie]),Oe[xe]?he.push(Oe):me.push(Oe);Oe=Tt(N,cS(me,he)),Oe.selector=N}return Oe}function cx(N,Y,ie,he){var me,Oe,$e,ot,Ze,Lt=typeof N=="function"&&N,gt=!he&&lc(N=Lt.selector||N);if(ie=ie||[],gt.length===1){if(Oe=gt[0]=gt[0].slice(0),Oe.length>2&&($e=Oe[0]).type==="ID"&&Y.nodeType===9&&k&&d.relative[Oe[1].type]){if(Y=(d.find.ID($e.matches[0].replace(br,_r),Y)||[])[0],Y)Lt&&(Y=Y.parentNode);else return ie;N=N.slice(Oe.shift().value.length)}for(me=nr.needsContext.test(N)?0:Oe.length;me--&&($e=Oe[me],!d.relative[ot=$e.type]);)if((Ze=d.find[ot])&&(he=Ze($e.matches[0].replace(br,_r),Sf.test(Oe[0].type)&&Mf(Y.parentNode)||Y))){if(Oe.splice(me,1),N=he.length&&uu(Oe),!N)return E.apply(ie,he),ie;break}}return(Lt||Rf(N,gt))(he,Y,!k,ie,!Y||Sf.test(N)&&Mf(Y.parentNode)||Y),ie}g.sortStable=xe.split("").sort(En).join("")===xe,rs(),g.sortDetached=Ha(function(N){return N.compareDocumentPosition(R.createElement("fieldset"))&1}),x.find=jt,x.expr[":"]=x.expr.pseudos,x.unique=x.uniqueSort,jt.compile=Rf,jt.select=cx,jt.setDocument=rs,jt.tokenize=lc,jt.escape=x.escapeSelector,jt.getText=x.text,jt.isXML=x.isXMLDoc,jt.selectors=x.expr,jt.support=x.support,jt.uniqueSort=x.uniqueSort})();var He=function(l,d,y){for(var w=[],M=y!==void 0;(l=l[d])&&l.nodeType!==9;)if(l.nodeType===1){if(M&&x(l).is(y))break;w.push(l)}return w},Qe=function(l,d){for(var y=[];l;l=l.nextSibling)l.nodeType===1&&l!==d&&y.push(l);return y},G=x.expr.match.needsContext,ne=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function ye(l,d,y){return _(d)?x.grep(l,function(w,M){return!!d.call(w,M,w)!==y}):d.nodeType?x.grep(l,function(w){return w===d!==y}):typeof d!="string"?x.grep(l,function(w){return c.call(d,w)>-1!==y}):x.filter(d,l,y)}x.filter=function(l,d,y){var w=d[0];return y&&(l=":not("+l+")"),d.length===1&&w.nodeType===1?x.find.matchesSelector(w,l)?[w]:[]:x.find.matches(l,x.grep(d,function(M){return M.nodeType===1}))},x.fn.extend({find:function(l){var d,y,w=this.length,M=this;if(typeof l!="string")return this.pushStack(x(l).filter(function(){for(d=0;d1?x.uniqueSort(y):y},filter:function(l){return this.pushStack(ye(this,l||[],!1))},not:function(l){return this.pushStack(ye(this,l||[],!0))},is:function(l){return!!ye(this,typeof l=="string"&&G.test(l)?x(l):l||[],!1).length}});var W,X=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Ce=x.fn.init=function(l,d,y){var w,M;if(!l)return this;if(y=y||W,typeof l=="string")if(l[0]==="<"&&l[l.length-1]===">"&&l.length>=3?w=[null,l,null]:w=X.exec(l),w&&(w[1]||!d))if(w[1]){if(d=d instanceof x?d[0]:d,x.merge(this,x.parseHTML(w[1],d&&d.nodeType?d.ownerDocument||d:v,!0)),ne.test(w[1])&&x.isPlainObject(d))for(w in d)_(this[w])?this[w](d[w]):this.attr(w,d[w]);return this}else return M=v.getElementById(w[2]),M&&(this[0]=M,this.length=1),this;else return!d||d.jquery?(d||y).find(l):this.constructor(d).find(l);else{if(l.nodeType)return this[0]=l,this.length=1,this;if(_(l))return y.ready!==void 0?y.ready(l):l(x)}return x.makeArray(l,this)};Ce.prototype=x.fn,W=x(v);var Re=/^(?:parents|prev(?:Until|All))/,it={children:!0,contents:!0,next:!0,prev:!0};x.fn.extend({has:function(l){var d=x(l,this),y=d.length;return this.filter(function(){for(var w=0;w-1:y.nodeType===1&&x.find.matchesSelector(y,l))){E.push(y);break}}return this.pushStack(E.length>1?x.uniqueSort(E):E)},index:function(l){return l?typeof l=="string"?c.call(x(l),this[0]):c.call(this,l.jquery?l[0]:l):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(l,d){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(l,d))))},addBack:function(l){return this.add(l==null?this.prevObject:this.prevObject.filter(l))}});function at(l,d){for(;(l=l[d])&&l.nodeType!==1;);return l}x.each({parent:function(l){var d=l.parentNode;return d&&d.nodeType!==11?d:null},parents:function(l){return He(l,"parentNode")},parentsUntil:function(l,d,y){return He(l,"parentNode",y)},next:function(l){return at(l,"nextSibling")},prev:function(l){return at(l,"previousSibling")},nextAll:function(l){return He(l,"nextSibling")},prevAll:function(l){return He(l,"previousSibling")},nextUntil:function(l,d,y){return He(l,"nextSibling",y)},prevUntil:function(l,d,y){return He(l,"previousSibling",y)},siblings:function(l){return Qe((l.parentNode||{}).firstChild,l)},children:function(l){return Qe(l.firstChild)},contents:function(l){return l.contentDocument!=null&&r(l.contentDocument)?l.contentDocument:(L(l,"template")&&(l=l.content||l),x.merge([],l.childNodes))}},function(l,d){x.fn[l]=function(y,w){var M=x.map(this,d,y);return l.slice(-5)!=="Until"&&(w=y),w&&typeof w=="string"&&(M=x.filter(w,M)),this.length>1&&(it[l]||x.uniqueSort(M),Re.test(l)&&M.reverse()),this.pushStack(M)}});var nt=/[^\x20\t\r\n\f]+/g;function q(l){var d={};return x.each(l.match(nt)||[],function(y,w){d[w]=!0}),d}x.Callbacks=function(l){l=typeof l=="string"?q(l):x.extend({},l);var d,y,w,M,E=[],R=[],V=-1,k=function(){for(M=M||l.once,w=d=!0;R.length;V=-1)for(y=R.shift();++V-1;)E.splice(ae,1),ae<=V&&V--}),this},has:function(fe){return fe?x.inArray(fe,E)>-1:E.length>0},empty:function(){return E&&(E=[]),this},disable:function(){return M=R=[],E=y="",this},disabled:function(){return!E},lock:function(){return M=R=[],!y&&!d&&(E=y=""),this},locked:function(){return!!M},fireWith:function(fe,xe){return M||(xe=xe||[],xe=[fe,xe.slice?xe.slice():xe],R.push(xe),d||k()),this},fire:function(){return Z.fireWith(this,arguments),this},fired:function(){return!!w}};return Z};function be(l){return l}function Te(l){throw l}function Pe(l,d,y,w){var M;try{l&&_(M=l.promise)?M.call(l).done(d).fail(y):l&&_(M=l.then)?M.call(l,d,y):d.apply(void 0,[l].slice(w))}catch(E){y.apply(void 0,[E])}}x.extend({Deferred:function(l){var d=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],y="pending",w={state:function(){return y},always:function(){return M.done(arguments).fail(arguments),this},catch:function(E){return w.then(null,E)},pipe:function(){var E=arguments;return x.Deferred(function(R){x.each(d,function(V,k){var Z=_(E[k[4]])&&E[k[4]];M[k[1]](function(){var fe=Z&&Z.apply(this,arguments);fe&&_(fe.promise)?fe.promise().progress(R.notify).done(R.resolve).fail(R.reject):R[k[0]+"With"](this,Z?[fe]:arguments)})}),E=null}).promise()},then:function(E,R,V){var k=0;function Z(fe,xe,ae,Ie){return function(){var yt=this,Ft=arguments,Tt=function(){var En,Qi;if(!(fe=k&&(ae!==Te&&(yt=void 0,Ft=[En]),xe.rejectWith(yt,Ft))}};fe?On():(x.Deferred.getErrorHook?On.error=x.Deferred.getErrorHook():x.Deferred.getStackHook&&(On.error=x.Deferred.getStackHook()),e.setTimeout(On))}}return x.Deferred(function(fe){d[0][3].add(Z(0,fe,_(V)?V:be,fe.notifyWith)),d[1][3].add(Z(0,fe,_(E)?E:be)),d[2][3].add(Z(0,fe,_(R)?R:Te))}).promise()},promise:function(E){return E!=null?x.extend(E,w):w}},M={};return x.each(d,function(E,R){var V=R[2],k=R[5];w[R[1]]=V.add,k&&V.add(function(){y=k},d[3-E][2].disable,d[3-E][3].disable,d[0][2].lock,d[0][3].lock),V.add(R[3].fire),M[R[0]]=function(){return M[R[0]+"With"](this===M?void 0:this,arguments),this},M[R[0]+"With"]=V.fireWith}),w.promise(M),l&&l.call(M,M),M},when:function(l){var d=arguments.length,y=d,w=Array(y),M=s.call(arguments),E=x.Deferred(),R=function(V){return function(k){w[V]=this,M[V]=arguments.length>1?s.call(arguments):k,--d||E.resolveWith(w,M)}};if(d<=1&&(Pe(l,E.done(R(y)).resolve,E.reject,!d),E.state()==="pending"||_(M[y]&&M[y].then)))return E.then();for(;y--;)Pe(M[y],R(y),E.reject);return E.promise()}});var Le=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(l,d){e.console&&e.console.warn&&l&&Le.test(l.name)&&e.console.warn("jQuery.Deferred exception: "+l.message,l.stack,d)},x.readyException=function(l){e.setTimeout(function(){throw l})};var De=x.Deferred();x.fn.ready=function(l){return De.then(l).catch(function(d){x.readyException(d)}),this},x.extend({isReady:!1,readyWait:1,ready:function(l){(l===!0?--x.readyWait:x.isReady)||(x.isReady=!0,!(l!==!0&&--x.readyWait>0)&&De.resolveWith(v,[x]))}}),x.ready.then=De.then;function Xe(){v.removeEventListener("DOMContentLoaded",Xe),e.removeEventListener("load",Xe),x.ready()}v.readyState==="complete"||v.readyState!=="loading"&&!v.documentElement.doScroll?e.setTimeout(x.ready):(v.addEventListener("DOMContentLoaded",Xe),e.addEventListener("load",Xe));var ke=function(l,d,y,w,M,E,R){var V=0,k=l.length,Z=y==null;if(T(y)==="object"){M=!0;for(V in y)ke(l,d,V,y[V],!0,E,R)}else if(w!==void 0&&(M=!0,_(w)||(R=!0),Z&&(R?(d.call(l,w),d=null):(Z=d,d=function(fe,xe,ae){return Z.call(x(fe),ae)})),d))for(;V1,null,!0)},removeData:function(l){return this.each(function(){Je.remove(this,l)})}}),x.extend({queue:function(l,d,y){var w;if(l)return d=(d||"fx")+"queue",w=re.get(l,d),y&&(!w||Array.isArray(y)?w=re.access(l,d,x.makeArray(y)):w.push(y)),w||[]},dequeue:function(l,d){d=d||"fx";var y=x.queue(l,d),w=y.length,M=y.shift(),E=x._queueHooks(l,d),R=function(){x.dequeue(l,d)};M==="inprogress"&&(M=y.shift(),w--),M&&(d==="fx"&&y.unshift("inprogress"),delete E.stop,M.call(l,R,E)),!w&&E&&E.empty.fire()},_queueHooks:function(l,d){var y=d+"queueHooks";return re.get(l,y)||re.access(l,y,{empty:x.Callbacks("once memory").add(function(){re.remove(l,[d+"queue",y])})})}}),x.fn.extend({queue:function(l,d){var y=2;return typeof l!="string"&&(d=l,l="fx",y--),arguments.length\x20\t\r\n\f]*)/i,Ut=/^$|^module$|\/(?:java|ecma)script/i;(function(){var l=v.createDocumentFragment(),d=l.appendChild(v.createElement("div")),y=v.createElement("input");y.setAttribute("type","radio"),y.setAttribute("checked","checked"),y.setAttribute("name","t"),d.appendChild(y),g.checkClone=d.cloneNode(!0).cloneNode(!0).lastChild.checked,d.innerHTML="",g.noCloneChecked=!!d.cloneNode(!0).lastChild.defaultValue,d.innerHTML="",g.option=!!d.lastChild})();var Nt={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};Nt.tbody=Nt.tfoot=Nt.colgroup=Nt.caption=Nt.thead,Nt.th=Nt.td,g.option||(Nt.optgroup=Nt.option=[1,""]);function Ot(l,d){var y;return typeof l.getElementsByTagName<"u"?y=l.getElementsByTagName(d||"*"):typeof l.querySelectorAll<"u"?y=l.querySelectorAll(d||"*"):y=[],d===void 0||d&&L(l,d)?x.merge([l],y):y}function Vt(l,d){for(var y=0,w=l.length;y-1){M&&M.push(E);continue}if(Z=vt(E),R=Ot(xe.appendChild(E),"script"),Z&&Vt(R),y)for(fe=0;E=R[fe++];)Ut.test(E.type||"")&&y.push(E)}return xe}var Zi=/^([^.]*)(?:\.(.+)|)/;function Ji(){return!0}function vr(){return!1}function Ba(l,d,y,w,M,E){var R,V;if(typeof d=="object"){typeof y!="string"&&(w=w||y,y=void 0);for(V in d)Ba(l,V,y,w,d[V],E);return l}if(w==null&&M==null?(M=y,w=y=void 0):M==null&&(typeof y=="string"?(M=w,w=void 0):(M=w,w=y,y=void 0)),M===!1)M=vr;else if(!M)return l;return E===1&&(R=M,M=function(k){return x().off(k),R.apply(this,arguments)},M.guid=R.guid||(R.guid=x.guid++)),l.each(function(){x.event.add(this,d,M,w,y)})}x.event={global:{},add:function(l,d,y,w,M){var E,R,V,k,Z,fe,xe,ae,Ie,yt,Ft,Tt=re.get(l);if(Me(l))for(y.handler&&(E=y,y=E.handler,M=E.selector),M&&x.find.matchesSelector(Ve,M),y.guid||(y.guid=x.guid++),(k=Tt.events)||(k=Tt.events=Object.create(null)),(R=Tt.handle)||(R=Tt.handle=function(On){return typeof x<"u"&&x.event.triggered!==On.type?x.event.dispatch.apply(l,arguments):void 0}),d=(d||"").match(nt)||[""],Z=d.length;Z--;)V=Zi.exec(d[Z])||[],Ie=Ft=V[1],yt=(V[2]||"").split(".").sort(),Ie&&(xe=x.event.special[Ie]||{},Ie=(M?xe.delegateType:xe.bindType)||Ie,xe=x.event.special[Ie]||{},fe=x.extend({type:Ie,origType:Ft,data:w,handler:y,guid:y.guid,selector:M,needsContext:M&&x.expr.match.needsContext.test(M),namespace:yt.join(".")},E),(ae=k[Ie])||(ae=k[Ie]=[],ae.delegateCount=0,(!xe.setup||xe.setup.call(l,w,yt,R)===!1)&&l.addEventListener&&l.addEventListener(Ie,R)),xe.add&&(xe.add.call(l,fe),fe.handler.guid||(fe.handler.guid=y.guid)),M?ae.splice(ae.delegateCount++,0,fe):ae.push(fe),x.event.global[Ie]=!0)},remove:function(l,d,y,w,M){var E,R,V,k,Z,fe,xe,ae,Ie,yt,Ft,Tt=re.hasData(l)&&re.get(l);if(!(!Tt||!(k=Tt.events))){for(d=(d||"").match(nt)||[""],Z=d.length;Z--;){if(V=Zi.exec(d[Z])||[],Ie=Ft=V[1],yt=(V[2]||"").split(".").sort(),!Ie){for(Ie in k)x.event.remove(l,Ie+d[Z],y,w,!0);continue}for(xe=x.event.special[Ie]||{},Ie=(w?xe.delegateType:xe.bindType)||Ie,ae=k[Ie]||[],V=V[2]&&new RegExp("(^|\\.)"+yt.join("\\.(?:.*\\.|)")+"(\\.|$)"),R=E=ae.length;E--;)fe=ae[E],(M||Ft===fe.origType)&&(!y||y.guid===fe.guid)&&(!V||V.test(fe.namespace))&&(!w||w===fe.selector||w==="**"&&fe.selector)&&(ae.splice(E,1),fe.selector&&ae.delegateCount--,xe.remove&&xe.remove.call(l,fe));R&&!ae.length&&((!xe.teardown||xe.teardown.call(l,yt,Tt.handle)===!1)&&x.removeEvent(l,Ie,Tt.handle),delete k[Ie])}x.isEmptyObject(k)&&re.remove(l,"handle events")}},dispatch:function(l){var d,y,w,M,E,R,V=new Array(arguments.length),k=x.event.fix(l),Z=(re.get(this,"events")||Object.create(null))[k.type]||[],fe=x.event.special[k.type]||{};for(V[0]=k,d=1;d=1)){for(;Z!==this;Z=Z.parentNode||this)if(Z.nodeType===1&&!(l.type==="click"&&Z.disabled===!0)){for(E=[],R={},y=0;y-1:x.find(M,this,null,[Z]).length),R[M]&&E.push(w);E.length&&V.push({elem:Z,handlers:E})}}return Z=this,k\s*$/g;function ic(l,d){return L(l,"table")&&L(d.nodeType!==11?d:d.firstChild,"tr")&&x(l).children("tbody")[0]||l}function ff(l){return l.type=(l.getAttribute("type")!==null)+"/"+l.type,l}function pf(l){return(l.type||"").slice(0,5)==="true/"?l.type=l.type.slice(5):l.removeAttribute("type"),l}function au(l,d){var y,w,M,E,R,V,k;if(d.nodeType===1){if(re.hasData(l)&&(E=re.get(l),k=E.events,k)){re.remove(d,"handle events");for(M in k)for(y=0,w=k[M].length;y1&&typeof Ie=="string"&&!g.checkClone&&Va.test(Ie))return l.each(function(Ft){var Tt=l.eq(Ft);yt&&(d[0]=Ie.call(this,Ft,Tt.html())),J(Tt,d,y,w)});if(xe&&(M=mi(d,l[0].ownerDocument,!1,l,w),E=M.firstChild,M.childNodes.length===1&&(M=E),E||w)){for(R=x.map(Ot(M,"script"),ff),V=R.length;fe0&&Vt(R,!k&&Ot(l,"script")),V},cleanData:function(l){for(var d,y,w,M=x.event.special,E=0;(y=l[E])!==void 0;E++)if(Me(y)){if(d=y[re.expando]){if(d.events)for(w in d.events)M[w]?x.event.remove(y,w):x.removeEvent(y,w,d.handle);y[re.expando]=void 0}y[Je.expando]&&(y[Je.expando]=void 0)}}}),x.fn.extend({detach:function(l){return oe(this,l,!0)},remove:function(l){return oe(this,l)},text:function(l){return ke(this,function(d){return d===void 0?x.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=d)})},null,l,arguments.length)},append:function(){return J(this,arguments,function(l){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var d=ic(this,l);d.appendChild(l)}})},prepend:function(){return J(this,arguments,function(l){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var d=ic(this,l);d.insertBefore(l,d.firstChild)}})},before:function(){return J(this,arguments,function(l){this.parentNode&&this.parentNode.insertBefore(l,this)})},after:function(){return J(this,arguments,function(l){this.parentNode&&this.parentNode.insertBefore(l,this.nextSibling)})},empty:function(){for(var l,d=0;(l=this[d])!=null;d++)l.nodeType===1&&(x.cleanData(Ot(l,!1)),l.textContent="");return this},clone:function(l,d){return l=l??!1,d=d??l,this.map(function(){return x.clone(this,l,d)})},html:function(l){return ke(this,function(d){var y=this[0]||{},w=0,M=this.length;if(d===void 0&&y.nodeType===1)return y.innerHTML;if(typeof d=="string"&&!ru.test(d)&&!Nt[(xt.exec(d)||["",""])[1].toLowerCase()]){d=x.htmlPrefilter(d);try{for(;w=0&&(k+=Math.max(0,Math.ceil(l["offset"+d[0].toUpperCase()+d.slice(1)]-E-k-V-.5))||0),k+Z}function Ai(l,d,y){var w=Fe(l),M=!g.boxSizingReliable()||y,E=M&&x.css(l,"boxSizing",!1,w)==="border-box",R=E,V=tt(l,d,w),k="offset"+d[0].toUpperCase()+d.slice(1);if(ce.test(V)){if(!y)return V;V="auto"}return(!g.boxSizingReliable()&&E||!g.reliableTrDimensions()&&L(l,"tr")||V==="auto"||!parseFloat(V)&&x.css(l,"display",!1,w)==="inline")&&l.getClientRects().length&&(E=x.css(l,"boxSizing",!1,w)==="border-box",R=k in l,R&&(V=l[k])),V=parseFloat(V)||0,V+Ht(l,d,y||(E?"border":"content"),R,w,V)+"px"}x.extend({cssHooks:{opacity:{get:function(l,d){if(d){var y=tt(l,"opacity");return y===""?"1":y}}}},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(l,d,y,w){if(!(!l||l.nodeType===3||l.nodeType===8||!l.style)){var M,E,R,V=se(d),k=Q.test(d),Z=l.style;if(k||(d=Qt(V)),R=x.cssHooks[d]||x.cssHooks[V],y!==void 0){if(E=typeof y,E==="string"&&(M=St.exec(y))&&M[1]&&(y=j(l,d,M),E="number"),y==null||y!==y)return;E==="number"&&!k&&(y+=M&&M[3]||(x.cssNumber[V]?"":"px")),!g.clearCloneStyle&&y===""&&d.indexOf("background")===0&&(Z[d]="inherit"),(!R||!("set"in R)||(y=R.set(l,y,w))!==void 0)&&(k?Z.setProperty(d,y):Z[d]=y)}else return R&&"get"in R&&(M=R.get(l,!1,w))!==void 0?M:Z[d]}},css:function(l,d,y,w){var M,E,R,V=se(d),k=Q.test(d);return k||(d=Qt(V)),R=x.cssHooks[d]||x.cssHooks[V],R&&"get"in R&&(M=R.get(l,!0,y)),M===void 0&&(M=tt(l,d,w)),M==="normal"&&d in ct&&(M=ct[d]),y===""||y?(E=parseFloat(M),y===!0||isFinite(E)?E||0:M):M}}),x.each(["height","width"],function(l,d){x.cssHooks[d]={get:function(y,w,M){if(w)return $n.test(x.css(y,"display"))&&(!y.getClientRects().length||!y.getBoundingClientRect().width)?je(y,qt,function(){return Ai(y,d,M)}):Ai(y,d,M)},set:function(y,w,M){var E,R=Fe(y),V=!g.scrollboxSize()&&R.position==="absolute",k=V||M,Z=k&&x.css(y,"boxSizing",!1,R)==="border-box",fe=M?Ht(y,d,M,Z,R):0;return Z&&V&&(fe-=Math.ceil(y["offset"+d[0].toUpperCase()+d.slice(1)]-parseFloat(R[d])-Ht(y,d,"border",!1,R)-.5)),fe&&(E=St.exec(w))&&(E[3]||"px")!=="px"&&(y.style[d]=w,w=x.css(y,d)),Rn(y,w,fe)}}}),x.cssHooks.marginLeft=dt(g.reliableMarginLeft,function(l,d){if(d)return(parseFloat(tt(l,"marginLeft"))||l.getBoundingClientRect().left-je(l,{marginLeft:0},function(){return l.getBoundingClientRect().left}))+"px"}),x.each({margin:"",padding:"",border:"Width"},function(l,d){x.cssHooks[l+d]={expand:function(y){for(var w=0,M={},E=typeof y=="string"?y.split(" "):[y];w<4;w++)M[l+lt[w]+d]=E[w]||E[w-2]||E[0];return M}},l!=="margin"&&(x.cssHooks[l+d].set=Rn)}),x.fn.extend({css:function(l,d){return ke(this,function(y,w,M){var E,R,V={},k=0;if(Array.isArray(w)){for(E=Fe(y),R=w.length;k1)}});function Mn(l,d,y,w,M){return new Mn.prototype.init(l,d,y,w,M)}x.Tween=Mn,Mn.prototype={constructor:Mn,init:function(l,d,y,w,M,E){this.elem=l,this.prop=y,this.easing=M||x.easing._default,this.options=d,this.start=this.now=this.cur(),this.end=w,this.unit=E||(x.cssNumber[y]?"":"px")},cur:function(){var l=Mn.propHooks[this.prop];return l&&l.get?l.get(this):Mn.propHooks._default.get(this)},run:function(l){var d,y=Mn.propHooks[this.prop];return this.options.duration?this.pos=d=x.easing[this.easing](l,this.options.duration*l,0,1,this.options.duration):this.pos=d=l,this.now=(this.end-this.start)*d+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),y&&y.set?y.set(this):Mn.propHooks._default.set(this),this}},Mn.prototype.init.prototype=Mn.prototype,Mn.propHooks={_default:{get:function(l){var d;return l.elem.nodeType!==1||l.elem[l.prop]!=null&&l.elem.style[l.prop]==null?l.elem[l.prop]:(d=x.css(l.elem,l.prop,""),!d||d==="auto"?0:d)},set:function(l){x.fx.step[l.prop]?x.fx.step[l.prop](l):l.elem.nodeType===1&&(x.cssHooks[l.prop]||l.elem.style[Qt(l.prop)]!=null)?x.style(l.elem,l.prop,l.now+l.unit):l.elem[l.prop]=l.now}}},Mn.propHooks.scrollTop=Mn.propHooks.scrollLeft={set:function(l){l.elem.nodeType&&l.elem.parentNode&&(l.elem[l.prop]=l.now)}},x.easing={linear:function(l){return l},swing:function(l){return .5-Math.cos(l*Math.PI)/2},_default:"swing"},x.fx=Mn.prototype.init,x.fx.step={};var ai,es,bn=/^(?:toggle|show|hide)$/,Ki=/queueHooks$/;function Is(){es&&(v.hidden===!1&&e.requestAnimationFrame?e.requestAnimationFrame(Is):e.setTimeout(Is,x.fx.interval),x.fx.tick())}function Zn(){return e.setTimeout(function(){ai=void 0}),ai=Date.now()}function ts(l,d){var y,w=0,M={height:l};for(d=d?1:0;w<4;w+=2-d)y=lt[w],M["margin"+y]=M["padding"+y]=l;return d&&(M.opacity=M.width=l),M}function ou(l,d,y){for(var w,M=(Fi.tweeners[d]||[]).concat(Fi.tweeners["*"]),E=0,R=M.length;E1)},removeAttr:function(l){return this.each(function(){x.removeAttr(this,l)})}}),x.extend({attr:function(l,d,y){var w,M,E=l.nodeType;if(!(E===3||E===8||E===2)){if(typeof l.getAttribute>"u")return x.prop(l,d,y);if((E!==1||!x.isXMLDoc(l))&&(M=x.attrHooks[d.toLowerCase()]||(x.expr.match.bool.test(d)?Zm:void 0)),y!==void 0){if(y===null){x.removeAttr(l,d);return}return M&&"set"in M&&(w=M.set(l,y,d))!==void 0?w:(l.setAttribute(d,y+""),y)}return M&&"get"in M&&(w=M.get(l,d))!==null?w:(w=x.find.attr(l,d),w??void 0)}},attrHooks:{type:{set:function(l,d){if(!g.radioValue&&d==="radio"&&L(l,"input")){var y=l.value;return l.setAttribute("type",d),y&&(l.value=y),d}}}},removeAttr:function(l,d){var y,w=0,M=d&&d.match(nt);if(M&&l.nodeType===1)for(;y=M[w++];)l.removeAttribute(y)}}),Zm={set:function(l,d,y){return d===!1?x.removeAttr(l,y):l.setAttribute(y,y),y}},x.each(x.expr.match.bool.source.match(/\w+/g),function(l,d){var y=rc[d]||x.find.attr;rc[d]=function(w,M,E){var R,V,k=M.toLowerCase();return E||(V=rc[k],rc[k]=R,R=y(w,M,E)!=null?k:null,rc[k]=V),R}});var Ow=/^(?:input|select|textarea|button)$/i,kw=/^(?:a|area)$/i;x.fn.extend({prop:function(l,d){return ke(this,x.prop,l,d,arguments.length>1)},removeProp:function(l){return this.each(function(){delete this[x.propFix[l]||l]})}}),x.extend({prop:function(l,d,y){var w,M,E=l.nodeType;if(!(E===3||E===8||E===2))return(E!==1||!x.isXMLDoc(l))&&(d=x.propFix[d]||d,M=x.propHooks[d]),y!==void 0?M&&"set"in M&&(w=M.set(l,y,d))!==void 0?w:l[d]=y:M&&"get"in M&&(w=M.get(l,d))!==null?w:l[d]},propHooks:{tabIndex:{get:function(l){var d=x.find.attr(l,"tabindex");return d?parseInt(d,10):Ow.test(l.nodeName)||kw.test(l.nodeName)&&l.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(x.propHooks.selected={get:function(l){var d=l.parentNode;return d&&d.parentNode&&d.parentNode.selectedIndex,null},set:function(l){var d=l.parentNode;d&&(d.selectedIndex,d.parentNode&&d.parentNode.selectedIndex)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this});function Ds(l){var d=l.match(nt)||[];return d.join(" ")}function Ps(l){return l.getAttribute&&l.getAttribute("class")||""}function mf(l){return Array.isArray(l)?l:typeof l=="string"?l.match(nt)||[]:[]}x.fn.extend({addClass:function(l){var d,y,w,M,E,R;return _(l)?this.each(function(V){x(this).addClass(l.call(this,V,Ps(this)))}):(d=mf(l),d.length?this.each(function(){if(w=Ps(this),y=this.nodeType===1&&" "+Ds(w)+" ",y){for(E=0;E-1;)y=y.replace(" "+M+" "," ");R=Ds(y),w!==R&&this.setAttribute("class",R)}}):this):this.attr("class","")},toggleClass:function(l,d){var y,w,M,E,R=typeof l,V=R==="string"||Array.isArray(l);return _(l)?this.each(function(k){x(this).toggleClass(l.call(this,k,Ps(this),d),d)}):typeof d=="boolean"&&V?d?this.addClass(l):this.removeClass(l):(y=mf(l),this.each(function(){if(V)for(E=x(this),M=0;M-1)return!0;return!1}});var zw=/\r/g;x.fn.extend({val:function(l){var d,y,w,M=this[0];return arguments.length?(w=_(l),this.each(function(E){var R;this.nodeType===1&&(w?R=l.call(this,E,x(this).val()):R=l,R==null?R="":typeof R=="number"?R+="":Array.isArray(R)&&(R=x.map(R,function(V){return V==null?"":V+""})),d=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()],(!d||!("set"in d)||d.set(this,R,"value")===void 0)&&(this.value=R))})):M?(d=x.valHooks[M.type]||x.valHooks[M.nodeName.toLowerCase()],d&&"get"in d&&(y=d.get(M,"value"))!==void 0?y:(y=M.value,typeof y=="string"?y.replace(zw,""):y??"")):void 0}}),x.extend({valHooks:{option:{get:function(l){var d=x.find.attr(l,"value");return d??Ds(x.text(l))}},select:{get:function(l){var d,y,w,M=l.options,E=l.selectedIndex,R=l.type==="select-one",V=R?null:[],k=R?E+1:M.length;for(E<0?w=k:w=R?E:0;w-1)&&(y=!0);return y||(l.selectedIndex=-1),E}}}}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(l,d){if(Array.isArray(d))return l.checked=x.inArray(x(l).val(),d)>-1}},g.checkOn||(x.valHooks[this].get=function(l){return l.getAttribute("value")===null?"on":l.value})});var sc=e.location,Jm={guid:Date.now()},xf=/\?/;x.parseXML=function(l){var d,y;if(!l||typeof l!="string")return null;try{d=new e.DOMParser().parseFromString(l,"text/xml")}catch{}return y=d&&d.getElementsByTagName("parsererror")[0],(!d||y)&&x.error("Invalid XML: "+(y?x.map(y.childNodes,function(w){return w.textContent}).join(` + */(function(i){(function(e,t){i.exports=e.document?t(e,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}})(typeof window<"u"?window:hS,function(e,t){var n=[],r=Object.getPrototypeOf,s=n.slice,a=n.flat?function(l){return n.flat.call(l)}:function(l){return n.concat.apply([],l)},o=n.push,c=n.indexOf,u={},h=u.toString,p=u.hasOwnProperty,f=p.toString,m=f.call(Object),g={},_=function(d){return typeof d=="function"&&typeof d.nodeType!="number"&&typeof d.item!="function"},b=function(d){return d!=null&&d===d.window},v=e.document,A={type:!0,src:!0,nonce:!0,noModule:!0};function S(l,d,y){y=y||v;var w,M,E=y.createElement("script");if(E.text=l,d)for(w in A)M=d[w]||d.getAttribute&&d.getAttribute(w),M&&E.setAttribute(w,M);y.head.appendChild(E).parentNode.removeChild(E)}function T(l){return l==null?l+"":typeof l=="object"||typeof l=="function"?u[h.call(l)]||"object":typeof l}var H="3.7.1",U=/HTML$/i,x=function(l,d){return new x.fn.init(l,d)};x.fn=x.prototype={jquery:H,constructor:x,length:0,toArray:function(){return s.call(this)},get:function(l){return l==null?s.call(this):l<0?this[l+this.length]:this[l]},pushStack:function(l){var d=x.merge(this.constructor(),l);return d.prevObject=this,d},each:function(l){return x.each(this,l)},map:function(l){return this.pushStack(x.map(this,function(d,y){return l.call(d,y,d)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(x.grep(this,function(l,d){return(d+1)%2}))},odd:function(){return this.pushStack(x.grep(this,function(l,d){return d%2}))},eq:function(l){var d=this.length,y=+l+(l<0?d:0);return this.pushStack(y>=0&&y0&&d-1 in l}function L(l,d){return l.nodeName&&l.nodeName.toLowerCase()===d.toLowerCase()}var C=n.pop,B=n.sort,ue=n.splice,K="[\\x20\\t\\r\\n\\f]",le=new RegExp("^"+K+"+|((?:^|[^\\\\])(?:\\\\.)*)"+K+"+$","g");x.contains=function(l,d){var y=d&&d.parentNode;return l===y||!!(y&&y.nodeType===1&&(l.contains?l.contains(y):l.compareDocumentPosition&&l.compareDocumentPosition(y)&16))};var ge=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function de(l,d){return d?l==="\0"?"�":l.slice(0,-1)+"\\"+l.charCodeAt(l.length-1).toString(16)+" ":"\\"+l}x.escapeSelector=function(l){return(l+"").replace(ge,de)};var Ae=v,pe=o;(function(){var l,d,y,w,M,E=pe,R,V,k,Z,fe,xe=x.expando,ae=0,Ie=0,yt=lu(),Ft=lu(),Tt=lu(),On=lu(),En=function(N,Y){return N===Y&&(M=!0),0},Qi="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",er="(?:\\\\[\\da-fA-F]{1,6}"+K+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Dt="\\["+K+"*("+er+")(?:"+K+"*([*^$|!~]?=)"+K+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+er+"))|)"+K+"*\\]",Us=":("+er+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Dt+")*)|.*)\\)|)",zt=new RegExp(K+"+","g"),hn=new RegExp("^"+K+"*,"+K+"*"),oc=new RegExp("^"+K+"*([>+~]|"+K+")"+K+"*"),wf=new RegExp(K+"|>"),tr=new RegExp(Us),cc=new RegExp("^"+er+"$"),nr={ID:new RegExp("^#("+er+")"),CLASS:new RegExp("^\\.("+er+")"),TAG:new RegExp("^("+er+"|[*])"),ATTR:new RegExp("^"+Dt),PSEUDO:new RegExp("^"+Us),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+Qi+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},ns=/^(?:input|select|textarea|button)$/i,is=/^h\d$/i,Ti=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Sf=/[+~]/,br=new RegExp("\\\\[\\da-fA-F]{1,6}"+K+"?|\\\\([^\\r\\n\\f])","g"),_r=function(N,Y){var ie="0x"+N.slice(1)-65536;return Y||(ie<0?String.fromCharCode(ie+65536):String.fromCharCode(ie>>10|55296,ie&1023|56320))},nS=function(){rs()},iS=hu(function(N){return N.disabled===!0&&L(N,"fieldset")},{dir:"parentNode",next:"legend"});function rS(){try{return R.activeElement}catch{}}try{E.apply(n=s.call(Ae.childNodes),Ae.childNodes),n[Ae.childNodes.length].nodeType}catch{E={apply:function(Y,ie){pe.apply(Y,s.call(ie))},call:function(Y){pe.apply(Y,s.call(arguments,1))}}}function jt(N,Y,ie,he){var me,Oe,$e,ot,Ze,Lt,gt,_t=Y&&Y.ownerDocument,It=Y?Y.nodeType:9;if(ie=ie||[],typeof N!="string"||!N||It!==1&&It!==9&&It!==11)return ie;if(!he&&(rs(Y),Y=Y||R,k)){if(It!==11&&(Ze=Ti.exec(N)))if(me=Ze[1]){if(It===9)if($e=Y.getElementById(me)){if($e.id===me)return E.call(ie,$e),ie}else return ie;else if(_t&&($e=_t.getElementById(me))&&jt.contains(Y,$e)&&$e.id===me)return E.call(ie,$e),ie}else{if(Ze[2])return E.apply(ie,Y.getElementsByTagName(N)),ie;if((me=Ze[3])&&Y.getElementsByClassName)return E.apply(ie,Y.getElementsByClassName(me)),ie}if(!On[N+" "]&&(!Z||!Z.test(N))){if(gt=N,_t=Y,It===1&&(wf.test(N)||oc.test(N))){for(_t=Sf.test(N)&&Mf(Y.parentNode)||Y,(_t!=Y||!g.scope)&&((ot=Y.getAttribute("id"))?ot=x.escapeSelector(ot):Y.setAttribute("id",ot=xe)),Lt=lc(N),Oe=Lt.length;Oe--;)Lt[Oe]=(ot?"#"+ot:":scope")+" "+uu(Lt[Oe]);gt=Lt.join(",")}try{return E.apply(ie,_t.querySelectorAll(gt)),ie}catch{On(N,!0)}finally{ot===xe&&Y.removeAttribute("id")}}}return cx(N.replace(le,"$1"),Y,ie,he)}function lu(){var N=[];function Y(ie,he){return N.push(ie+" ")>d.cacheLength&&delete Y[N.shift()],Y[ie+" "]=he}return Y}function Oi(N){return N[xe]=!0,N}function Ha(N){var Y=R.createElement("fieldset");try{return!!N(Y)}catch{return!1}finally{Y.parentNode&&Y.parentNode.removeChild(Y),Y=null}}function sS(N){return function(Y){return L(Y,"input")&&Y.type===N}}function aS(N){return function(Y){return(L(Y,"input")||L(Y,"button"))&&Y.type===N}}function ax(N){return function(Y){return"form"in Y?Y.parentNode&&Y.disabled===!1?"label"in Y?"label"in Y.parentNode?Y.parentNode.disabled===N:Y.disabled===N:Y.isDisabled===N||Y.isDisabled!==!N&&iS(Y)===N:Y.disabled===N:"label"in Y?Y.disabled===N:!1}}function Ns(N){return Oi(function(Y){return Y=+Y,Oi(function(ie,he){for(var me,Oe=N([],ie.length,Y),$e=Oe.length;$e--;)ie[me=Oe[$e]]&&(ie[me]=!(he[me]=ie[me]))})})}function Mf(N){return N&&typeof N.getElementsByTagName<"u"&&N}function rs(N){var Y,ie=N?N.ownerDocument||N:Ae;return ie==R||ie.nodeType!==9||!ie.documentElement||(R=ie,V=R.documentElement,k=!x.isXMLDoc(R),fe=V.matches||V.webkitMatchesSelector||V.msMatchesSelector,V.msMatchesSelector&&Ae!=R&&(Y=R.defaultView)&&Y.top!==Y&&Y.addEventListener("unload",nS),g.getById=Ha(function(he){return V.appendChild(he).id=x.expando,!R.getElementsByName||!R.getElementsByName(x.expando).length}),g.disconnectedMatch=Ha(function(he){return fe.call(he,"*")}),g.scope=Ha(function(){return R.querySelectorAll(":scope")}),g.cssHas=Ha(function(){try{return R.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),g.getById?(d.filter.ID=function(he){var me=he.replace(br,_r);return function(Oe){return Oe.getAttribute("id")===me}},d.find.ID=function(he,me){if(typeof me.getElementById<"u"&&k){var Oe=me.getElementById(he);return Oe?[Oe]:[]}}):(d.filter.ID=function(he){var me=he.replace(br,_r);return function(Oe){var $e=typeof Oe.getAttributeNode<"u"&&Oe.getAttributeNode("id");return $e&&$e.value===me}},d.find.ID=function(he,me){if(typeof me.getElementById<"u"&&k){var Oe,$e,ot,Ze=me.getElementById(he);if(Ze){if(Oe=Ze.getAttributeNode("id"),Oe&&Oe.value===he)return[Ze];for(ot=me.getElementsByName(he),$e=0;Ze=ot[$e++];)if(Oe=Ze.getAttributeNode("id"),Oe&&Oe.value===he)return[Ze]}return[]}}),d.find.TAG=function(he,me){return typeof me.getElementsByTagName<"u"?me.getElementsByTagName(he):me.querySelectorAll(he)},d.find.CLASS=function(he,me){if(typeof me.getElementsByClassName<"u"&&k)return me.getElementsByClassName(he)},Z=[],Ha(function(he){var me;V.appendChild(he).innerHTML="",he.querySelectorAll("[selected]").length||Z.push("\\["+K+"*(?:value|"+Qi+")"),he.querySelectorAll("[id~="+xe+"-]").length||Z.push("~="),he.querySelectorAll("a#"+xe+"+*").length||Z.push(".#.+[+~]"),he.querySelectorAll(":checked").length||Z.push(":checked"),me=R.createElement("input"),me.setAttribute("type","hidden"),he.appendChild(me).setAttribute("name","D"),V.appendChild(he).disabled=!0,he.querySelectorAll(":disabled").length!==2&&Z.push(":enabled",":disabled"),me=R.createElement("input"),me.setAttribute("name",""),he.appendChild(me),he.querySelectorAll("[name='']").length||Z.push("\\["+K+"*name"+K+"*="+K+`*(?:''|"")`)}),g.cssHas||Z.push(":has"),Z=Z.length&&new RegExp(Z.join("|")),En=function(he,me){if(he===me)return M=!0,0;var Oe=!he.compareDocumentPosition-!me.compareDocumentPosition;return Oe||(Oe=(he.ownerDocument||he)==(me.ownerDocument||me)?he.compareDocumentPosition(me):1,Oe&1||!g.sortDetached&&me.compareDocumentPosition(he)===Oe?he===R||he.ownerDocument==Ae&&jt.contains(Ae,he)?-1:me===R||me.ownerDocument==Ae&&jt.contains(Ae,me)?1:w?c.call(w,he)-c.call(w,me):0:Oe&4?-1:1)}),R}jt.matches=function(N,Y){return jt(N,null,null,Y)},jt.matchesSelector=function(N,Y){if(rs(N),k&&!On[Y+" "]&&(!Z||!Z.test(Y)))try{var ie=fe.call(N,Y);if(ie||g.disconnectedMatch||N.document&&N.document.nodeType!==11)return ie}catch{On(Y,!0)}return jt(Y,R,null,[N]).length>0},jt.contains=function(N,Y){return(N.ownerDocument||N)!=R&&rs(N),x.contains(N,Y)},jt.attr=function(N,Y){(N.ownerDocument||N)!=R&&rs(N);var ie=d.attrHandle[Y.toLowerCase()],he=ie&&p.call(d.attrHandle,Y.toLowerCase())?ie(N,Y,!k):void 0;return he!==void 0?he:N.getAttribute(Y)},jt.error=function(N){throw new Error("Syntax error, unrecognized expression: "+N)},x.uniqueSort=function(N){var Y,ie=[],he=0,me=0;if(M=!g.sortStable,w=!g.sortStable&&s.call(N,0),B.call(N,En),M){for(;Y=N[me++];)Y===N[me]&&(he=ie.push(me));for(;he--;)ue.call(N,ie[he],1)}return w=null,N},x.fn.uniqueSort=function(){return this.pushStack(x.uniqueSort(s.apply(this)))},d=x.expr={cacheLength:50,createPseudo:Oi,match:nr,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(N){return N[1]=N[1].replace(br,_r),N[3]=(N[3]||N[4]||N[5]||"").replace(br,_r),N[2]==="~="&&(N[3]=" "+N[3]+" "),N.slice(0,4)},CHILD:function(N){return N[1]=N[1].toLowerCase(),N[1].slice(0,3)==="nth"?(N[3]||jt.error(N[0]),N[4]=+(N[4]?N[5]+(N[6]||1):2*(N[3]==="even"||N[3]==="odd")),N[5]=+(N[7]+N[8]||N[3]==="odd")):N[3]&&jt.error(N[0]),N},PSEUDO:function(N){var Y,ie=!N[6]&&N[2];return nr.CHILD.test(N[0])?null:(N[3]?N[2]=N[4]||N[5]||"":ie&&tr.test(ie)&&(Y=lc(ie,!0))&&(Y=ie.indexOf(")",ie.length-Y)-ie.length)&&(N[0]=N[0].slice(0,Y),N[2]=ie.slice(0,Y)),N.slice(0,3))}},filter:{TAG:function(N){var Y=N.replace(br,_r).toLowerCase();return N==="*"?function(){return!0}:function(ie){return L(ie,Y)}},CLASS:function(N){var Y=yt[N+" "];return Y||(Y=new RegExp("(^|"+K+")"+N+"("+K+"|$)"))&&yt(N,function(ie){return Y.test(typeof ie.className=="string"&&ie.className||typeof ie.getAttribute<"u"&&ie.getAttribute("class")||"")})},ATTR:function(N,Y,ie){return function(he){var me=jt.attr(he,N);return me==null?Y==="!=":Y?(me+="",Y==="="?me===ie:Y==="!="?me!==ie:Y==="^="?ie&&me.indexOf(ie)===0:Y==="*="?ie&&me.indexOf(ie)>-1:Y==="$="?ie&&me.slice(-ie.length)===ie:Y==="~="?(" "+me.replace(zt," ")+" ").indexOf(ie)>-1:Y==="|="?me===ie||me.slice(0,ie.length+1)===ie+"-":!1):!0}},CHILD:function(N,Y,ie,he,me){var Oe=N.slice(0,3)!=="nth",$e=N.slice(-4)!=="last",ot=Y==="of-type";return he===1&&me===0?function(Ze){return!!Ze.parentNode}:function(Ze,Lt,gt){var _t,It,ht,en,oi,Hn=Oe!==$e?"nextSibling":"previousSibling",Ri=Ze.parentNode,ir=ot&&Ze.nodeName.toLowerCase(),Ga=!gt&&!ot,Jn=!1;if(Ri){if(Oe){for(;Hn;){for(ht=Ze;ht=ht[Hn];)if(ot?L(ht,ir):ht.nodeType===1)return!1;oi=Hn=N==="only"&&!oi&&"nextSibling"}return!0}if(oi=[$e?Ri.firstChild:Ri.lastChild],$e&&Ga){for(It=Ri[xe]||(Ri[xe]={}),_t=It[N]||[],en=_t[0]===ae&&_t[1],Jn=en&&_t[2],ht=en&&Ri.childNodes[en];ht=++en&&ht&&ht[Hn]||(Jn=en=0)||oi.pop();)if(ht.nodeType===1&&++Jn&&ht===Ze){It[N]=[ae,en,Jn];break}}else if(Ga&&(It=Ze[xe]||(Ze[xe]={}),_t=It[N]||[],en=_t[0]===ae&&_t[1],Jn=en),Jn===!1)for(;(ht=++en&&ht&&ht[Hn]||(Jn=en=0)||oi.pop())&&!((ot?L(ht,ir):ht.nodeType===1)&&++Jn&&(Ga&&(It=ht[xe]||(ht[xe]={}),It[N]=[ae,Jn]),ht===Ze)););return Jn-=me,Jn===he||Jn%he===0&&Jn/he>=0}}},PSEUDO:function(N,Y){var ie,he=d.pseudos[N]||d.setFilters[N.toLowerCase()]||jt.error("unsupported pseudo: "+N);return he[xe]?he(Y):he.length>1?(ie=[N,N,"",Y],d.setFilters.hasOwnProperty(N.toLowerCase())?Oi(function(me,Oe){for(var $e,ot=he(me,Y),Ze=ot.length;Ze--;)$e=c.call(me,ot[Ze]),me[$e]=!(Oe[$e]=ot[Ze])}):function(me){return he(me,0,ie)}):he}},pseudos:{not:Oi(function(N){var Y=[],ie=[],he=Rf(N.replace(le,"$1"));return he[xe]?Oi(function(me,Oe,$e,ot){for(var Ze,Lt=he(me,null,ot,[]),gt=me.length;gt--;)(Ze=Lt[gt])&&(me[gt]=!(Oe[gt]=Ze))}):function(me,Oe,$e){return Y[0]=me,he(Y,null,$e,ie),Y[0]=null,!ie.pop()}}),has:Oi(function(N){return function(Y){return jt(N,Y).length>0}}),contains:Oi(function(N){return N=N.replace(br,_r),function(Y){return(Y.textContent||x.text(Y)).indexOf(N)>-1}}),lang:Oi(function(N){return cc.test(N||"")||jt.error("unsupported lang: "+N),N=N.replace(br,_r).toLowerCase(),function(Y){var ie;do if(ie=k?Y.lang:Y.getAttribute("xml:lang")||Y.getAttribute("lang"))return ie=ie.toLowerCase(),ie===N||ie.indexOf(N+"-")===0;while((Y=Y.parentNode)&&Y.nodeType===1);return!1}}),target:function(N){var Y=e.location&&e.location.hash;return Y&&Y.slice(1)===N.id},root:function(N){return N===V},focus:function(N){return N===rS()&&R.hasFocus()&&!!(N.type||N.href||~N.tabIndex)},enabled:ax(!1),disabled:ax(!0),checked:function(N){return L(N,"input")&&!!N.checked||L(N,"option")&&!!N.selected},selected:function(N){return N.parentNode&&N.parentNode.selectedIndex,N.selected===!0},empty:function(N){for(N=N.firstChild;N;N=N.nextSibling)if(N.nodeType<6)return!1;return!0},parent:function(N){return!d.pseudos.empty(N)},header:function(N){return is.test(N.nodeName)},input:function(N){return ns.test(N.nodeName)},button:function(N){return L(N,"input")&&N.type==="button"||L(N,"button")},text:function(N){var Y;return L(N,"input")&&N.type==="text"&&((Y=N.getAttribute("type"))==null||Y.toLowerCase()==="text")},first:Ns(function(){return[0]}),last:Ns(function(N,Y){return[Y-1]}),eq:Ns(function(N,Y,ie){return[ie<0?ie+Y:ie]}),even:Ns(function(N,Y){for(var ie=0;ieY?he=Y:he=ie;--he>=0;)N.push(he);return N}),gt:Ns(function(N,Y,ie){for(var he=ie<0?ie+Y:ie;++he1?function(Y,ie,he){for(var me=N.length;me--;)if(!N[me](Y,ie,he))return!1;return!0}:N[0]}function oS(N,Y,ie){for(var he=0,me=Y.length;he-1&&($e[gt]=!(ot[gt]=It))}}else ht=du(ht===ot?ht.splice(Hn,ht.length):ht),me?me(null,ot,ht,Lt):E.apply(ot,ht)})}function Tf(N){for(var Y,ie,he,me=N.length,Oe=d.relative[N[0].type],$e=Oe||d.relative[" "],ot=Oe?1:0,Ze=hu(function(_t){return _t===Y},$e,!0),Lt=hu(function(_t){return c.call(Y,_t)>-1},$e,!0),gt=[function(_t,It,ht){var en=!Oe&&(ht||It!=y)||((Y=It).nodeType?Ze(_t,It,ht):Lt(_t,It,ht));return Y=null,en}];ot1&&Ef(gt),ot>1&&uu(N.slice(0,ot-1).concat({value:N[ot-2].type===" "?"*":""})).replace(le,"$1"),ie,ot0,he=N.length>0,me=function(Oe,$e,ot,Ze,Lt){var gt,_t,It,ht=0,en="0",oi=Oe&&[],Hn=[],Ri=y,ir=Oe||he&&d.find.TAG("*",Lt),Ga=ae+=Ri==null?1:Math.random()||.1,Jn=ir.length;for(Lt&&(y=$e==R||$e||Lt);en!==Jn&&(gt=ir[en])!=null;en++){if(he&>){for(_t=0,!$e&>.ownerDocument!=R&&(rs(gt),ot=!k);It=N[_t++];)if(It(gt,$e||R,ot)){E.call(Ze,gt);break}Lt&&(ae=Ga)}ie&&((gt=!It&>)&&ht--,Oe&&oi.push(gt))}if(ht+=en,ie&&en!==ht){for(_t=0;It=Y[_t++];)It(oi,Hn,$e,ot);if(Oe){if(ht>0)for(;en--;)oi[en]||Hn[en]||(Hn[en]=C.call(Ze));Hn=du(Hn)}E.apply(Ze,Hn),Lt&&!Oe&&Hn.length>0&&ht+Y.length>1&&x.uniqueSort(Ze)}return Lt&&(ae=Ga,y=Ri),oi};return ie?Oi(me):me}function Rf(N,Y){var ie,he=[],me=[],Oe=Tt[N+" "];if(!Oe){for(Y||(Y=lc(N)),ie=Y.length;ie--;)Oe=Tf(Y[ie]),Oe[xe]?he.push(Oe):me.push(Oe);Oe=Tt(N,cS(me,he)),Oe.selector=N}return Oe}function cx(N,Y,ie,he){var me,Oe,$e,ot,Ze,Lt=typeof N=="function"&&N,gt=!he&&lc(N=Lt.selector||N);if(ie=ie||[],gt.length===1){if(Oe=gt[0]=gt[0].slice(0),Oe.length>2&&($e=Oe[0]).type==="ID"&&Y.nodeType===9&&k&&d.relative[Oe[1].type]){if(Y=(d.find.ID($e.matches[0].replace(br,_r),Y)||[])[0],Y)Lt&&(Y=Y.parentNode);else return ie;N=N.slice(Oe.shift().value.length)}for(me=nr.needsContext.test(N)?0:Oe.length;me--&&($e=Oe[me],!d.relative[ot=$e.type]);)if((Ze=d.find[ot])&&(he=Ze($e.matches[0].replace(br,_r),Sf.test(Oe[0].type)&&Mf(Y.parentNode)||Y))){if(Oe.splice(me,1),N=he.length&&uu(Oe),!N)return E.apply(ie,he),ie;break}}return(Lt||Rf(N,gt))(he,Y,!k,ie,!Y||Sf.test(N)&&Mf(Y.parentNode)||Y),ie}g.sortStable=xe.split("").sort(En).join("")===xe,rs(),g.sortDetached=Ha(function(N){return N.compareDocumentPosition(R.createElement("fieldset"))&1}),x.find=jt,x.expr[":"]=x.expr.pseudos,x.unique=x.uniqueSort,jt.compile=Rf,jt.select=cx,jt.setDocument=rs,jt.tokenize=lc,jt.escape=x.escapeSelector,jt.getText=x.text,jt.isXML=x.isXMLDoc,jt.selectors=x.expr,jt.support=x.support,jt.uniqueSort=x.uniqueSort})();var He=function(l,d,y){for(var w=[],M=y!==void 0;(l=l[d])&&l.nodeType!==9;)if(l.nodeType===1){if(M&&x(l).is(y))break;w.push(l)}return w},Qe=function(l,d){for(var y=[];l;l=l.nextSibling)l.nodeType===1&&l!==d&&y.push(l);return y},G=x.expr.match.needsContext,ne=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function ye(l,d,y){return _(d)?x.grep(l,function(w,M){return!!d.call(w,M,w)!==y}):d.nodeType?x.grep(l,function(w){return w===d!==y}):typeof d!="string"?x.grep(l,function(w){return c.call(d,w)>-1!==y}):x.filter(d,l,y)}x.filter=function(l,d,y){var w=d[0];return y&&(l=":not("+l+")"),d.length===1&&w.nodeType===1?x.find.matchesSelector(w,l)?[w]:[]:x.find.matches(l,x.grep(d,function(M){return M.nodeType===1}))},x.fn.extend({find:function(l){var d,y,w=this.length,M=this;if(typeof l!="string")return this.pushStack(x(l).filter(function(){for(d=0;d1?x.uniqueSort(y):y},filter:function(l){return this.pushStack(ye(this,l||[],!1))},not:function(l){return this.pushStack(ye(this,l||[],!0))},is:function(l){return!!ye(this,typeof l=="string"&&G.test(l)?x(l):l||[],!1).length}});var W,X=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Ce=x.fn.init=function(l,d,y){var w,M;if(!l)return this;if(y=y||W,typeof l=="string")if(l[0]==="<"&&l[l.length-1]===">"&&l.length>=3?w=[null,l,null]:w=X.exec(l),w&&(w[1]||!d))if(w[1]){if(d=d instanceof x?d[0]:d,x.merge(this,x.parseHTML(w[1],d&&d.nodeType?d.ownerDocument||d:v,!0)),ne.test(w[1])&&x.isPlainObject(d))for(w in d)_(this[w])?this[w](d[w]):this.attr(w,d[w]);return this}else return M=v.getElementById(w[2]),M&&(this[0]=M,this.length=1),this;else return!d||d.jquery?(d||y).find(l):this.constructor(d).find(l);else{if(l.nodeType)return this[0]=l,this.length=1,this;if(_(l))return y.ready!==void 0?y.ready(l):l(x)}return x.makeArray(l,this)};Ce.prototype=x.fn,W=x(v);var Re=/^(?:parents|prev(?:Until|All))/,it={children:!0,contents:!0,next:!0,prev:!0};x.fn.extend({has:function(l){var d=x(l,this),y=d.length;return this.filter(function(){for(var w=0;w-1:y.nodeType===1&&x.find.matchesSelector(y,l))){E.push(y);break}}return this.pushStack(E.length>1?x.uniqueSort(E):E)},index:function(l){return l?typeof l=="string"?c.call(x(l),this[0]):c.call(this,l.jquery?l[0]:l):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(l,d){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(l,d))))},addBack:function(l){return this.add(l==null?this.prevObject:this.prevObject.filter(l))}});function at(l,d){for(;(l=l[d])&&l.nodeType!==1;);return l}x.each({parent:function(l){var d=l.parentNode;return d&&d.nodeType!==11?d:null},parents:function(l){return He(l,"parentNode")},parentsUntil:function(l,d,y){return He(l,"parentNode",y)},next:function(l){return at(l,"nextSibling")},prev:function(l){return at(l,"previousSibling")},nextAll:function(l){return He(l,"nextSibling")},prevAll:function(l){return He(l,"previousSibling")},nextUntil:function(l,d,y){return He(l,"nextSibling",y)},prevUntil:function(l,d,y){return He(l,"previousSibling",y)},siblings:function(l){return Qe((l.parentNode||{}).firstChild,l)},children:function(l){return Qe(l.firstChild)},contents:function(l){return l.contentDocument!=null&&r(l.contentDocument)?l.contentDocument:(L(l,"template")&&(l=l.content||l),x.merge([],l.childNodes))}},function(l,d){x.fn[l]=function(y,w){var M=x.map(this,d,y);return l.slice(-5)!=="Until"&&(w=y),w&&typeof w=="string"&&(M=x.filter(w,M)),this.length>1&&(it[l]||x.uniqueSort(M),Re.test(l)&&M.reverse()),this.pushStack(M)}});var nt=/[^\x20\t\r\n\f]+/g;function q(l){var d={};return x.each(l.match(nt)||[],function(y,w){d[w]=!0}),d}x.Callbacks=function(l){l=typeof l=="string"?q(l):x.extend({},l);var d,y,w,M,E=[],R=[],V=-1,k=function(){for(M=M||l.once,w=d=!0;R.length;V=-1)for(y=R.shift();++V-1;)E.splice(ae,1),ae<=V&&V--}),this},has:function(fe){return fe?x.inArray(fe,E)>-1:E.length>0},empty:function(){return E&&(E=[]),this},disable:function(){return M=R=[],E=y="",this},disabled:function(){return!E},lock:function(){return M=R=[],!y&&!d&&(E=y=""),this},locked:function(){return!!M},fireWith:function(fe,xe){return M||(xe=xe||[],xe=[fe,xe.slice?xe.slice():xe],R.push(xe),d||k()),this},fire:function(){return Z.fireWith(this,arguments),this},fired:function(){return!!w}};return Z};function be(l){return l}function Te(l){throw l}function Pe(l,d,y,w){var M;try{l&&_(M=l.promise)?M.call(l).done(d).fail(y):l&&_(M=l.then)?M.call(l,d,y):d.apply(void 0,[l].slice(w))}catch(E){y.apply(void 0,[E])}}x.extend({Deferred:function(l){var d=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],y="pending",w={state:function(){return y},always:function(){return M.done(arguments).fail(arguments),this},catch:function(E){return w.then(null,E)},pipe:function(){var E=arguments;return x.Deferred(function(R){x.each(d,function(V,k){var Z=_(E[k[4]])&&E[k[4]];M[k[1]](function(){var fe=Z&&Z.apply(this,arguments);fe&&_(fe.promise)?fe.promise().progress(R.notify).done(R.resolve).fail(R.reject):R[k[0]+"With"](this,Z?[fe]:arguments)})}),E=null}).promise()},then:function(E,R,V){var k=0;function Z(fe,xe,ae,Ie){return function(){var yt=this,Ft=arguments,Tt=function(){var En,Qi;if(!(fe=k&&(ae!==Te&&(yt=void 0,Ft=[En]),xe.rejectWith(yt,Ft))}};fe?On():(x.Deferred.getErrorHook?On.error=x.Deferred.getErrorHook():x.Deferred.getStackHook&&(On.error=x.Deferred.getStackHook()),e.setTimeout(On))}}return x.Deferred(function(fe){d[0][3].add(Z(0,fe,_(V)?V:be,fe.notifyWith)),d[1][3].add(Z(0,fe,_(E)?E:be)),d[2][3].add(Z(0,fe,_(R)?R:Te))}).promise()},promise:function(E){return E!=null?x.extend(E,w):w}},M={};return x.each(d,function(E,R){var V=R[2],k=R[5];w[R[1]]=V.add,k&&V.add(function(){y=k},d[3-E][2].disable,d[3-E][3].disable,d[0][2].lock,d[0][3].lock),V.add(R[3].fire),M[R[0]]=function(){return M[R[0]+"With"](this===M?void 0:this,arguments),this},M[R[0]+"With"]=V.fireWith}),w.promise(M),l&&l.call(M,M),M},when:function(l){var d=arguments.length,y=d,w=Array(y),M=s.call(arguments),E=x.Deferred(),R=function(V){return function(k){w[V]=this,M[V]=arguments.length>1?s.call(arguments):k,--d||E.resolveWith(w,M)}};if(d<=1&&(Pe(l,E.done(R(y)).resolve,E.reject,!d),E.state()==="pending"||_(M[y]&&M[y].then)))return E.then();for(;y--;)Pe(M[y],R(y),E.reject);return E.promise()}});var Le=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(l,d){e.console&&e.console.warn&&l&&Le.test(l.name)&&e.console.warn("jQuery.Deferred exception: "+l.message,l.stack,d)},x.readyException=function(l){e.setTimeout(function(){throw l})};var De=x.Deferred();x.fn.ready=function(l){return De.then(l).catch(function(d){x.readyException(d)}),this},x.extend({isReady:!1,readyWait:1,ready:function(l){(l===!0?--x.readyWait:x.isReady)||(x.isReady=!0,!(l!==!0&&--x.readyWait>0)&&De.resolveWith(v,[x]))}}),x.ready.then=De.then;function Xe(){v.removeEventListener("DOMContentLoaded",Xe),e.removeEventListener("load",Xe),x.ready()}v.readyState==="complete"||v.readyState!=="loading"&&!v.documentElement.doScroll?e.setTimeout(x.ready):(v.addEventListener("DOMContentLoaded",Xe),e.addEventListener("load",Xe));var ke=function(l,d,y,w,M,E,R){var V=0,k=l.length,Z=y==null;if(T(y)==="object"){M=!0;for(V in y)ke(l,d,V,y[V],!0,E,R)}else if(w!==void 0&&(M=!0,_(w)||(R=!0),Z&&(R?(d.call(l,w),d=null):(Z=d,d=function(fe,xe,ae){return Z.call(x(fe),ae)})),d))for(;V1,null,!0)},removeData:function(l){return this.each(function(){Je.remove(this,l)})}}),x.extend({queue:function(l,d,y){var w;if(l)return d=(d||"fx")+"queue",w=re.get(l,d),y&&(!w||Array.isArray(y)?w=re.access(l,d,x.makeArray(y)):w.push(y)),w||[]},dequeue:function(l,d){d=d||"fx";var y=x.queue(l,d),w=y.length,M=y.shift(),E=x._queueHooks(l,d),R=function(){x.dequeue(l,d)};M==="inprogress"&&(M=y.shift(),w--),M&&(d==="fx"&&y.unshift("inprogress"),delete E.stop,M.call(l,R,E)),!w&&E&&E.empty.fire()},_queueHooks:function(l,d){var y=d+"queueHooks";return re.get(l,y)||re.access(l,y,{empty:x.Callbacks("once memory").add(function(){re.remove(l,[d+"queue",y])})})}}),x.fn.extend({queue:function(l,d){var y=2;return typeof l!="string"&&(d=l,l="fx",y--),arguments.length\x20\t\r\n\f]*)/i,Ut=/^$|^module$|\/(?:java|ecma)script/i;(function(){var l=v.createDocumentFragment(),d=l.appendChild(v.createElement("div")),y=v.createElement("input");y.setAttribute("type","radio"),y.setAttribute("checked","checked"),y.setAttribute("name","t"),d.appendChild(y),g.checkClone=d.cloneNode(!0).cloneNode(!0).lastChild.checked,d.innerHTML="",g.noCloneChecked=!!d.cloneNode(!0).lastChild.defaultValue,d.innerHTML="",g.option=!!d.lastChild})();var Nt={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};Nt.tbody=Nt.tfoot=Nt.colgroup=Nt.caption=Nt.thead,Nt.th=Nt.td,g.option||(Nt.optgroup=Nt.option=[1,""]);function Ot(l,d){var y;return typeof l.getElementsByTagName<"u"?y=l.getElementsByTagName(d||"*"):typeof l.querySelectorAll<"u"?y=l.querySelectorAll(d||"*"):y=[],d===void 0||d&&L(l,d)?x.merge([l],y):y}function Vt(l,d){for(var y=0,w=l.length;y-1){M&&M.push(E);continue}if(Z=vt(E),R=Ot(xe.appendChild(E),"script"),Z&&Vt(R),y)for(fe=0;E=R[fe++];)Ut.test(E.type||"")&&y.push(E)}return xe}var Zi=/^([^.]*)(?:\.(.+)|)/;function Ji(){return!0}function vr(){return!1}function Ba(l,d,y,w,M,E){var R,V;if(typeof d=="object"){typeof y!="string"&&(w=w||y,y=void 0);for(V in d)Ba(l,V,y,w,d[V],E);return l}if(w==null&&M==null?(M=y,w=y=void 0):M==null&&(typeof y=="string"?(M=w,w=void 0):(M=w,w=y,y=void 0)),M===!1)M=vr;else if(!M)return l;return E===1&&(R=M,M=function(k){return x().off(k),R.apply(this,arguments)},M.guid=R.guid||(R.guid=x.guid++)),l.each(function(){x.event.add(this,d,M,w,y)})}x.event={global:{},add:function(l,d,y,w,M){var E,R,V,k,Z,fe,xe,ae,Ie,yt,Ft,Tt=re.get(l);if(Me(l))for(y.handler&&(E=y,y=E.handler,M=E.selector),M&&x.find.matchesSelector(Ve,M),y.guid||(y.guid=x.guid++),(k=Tt.events)||(k=Tt.events=Object.create(null)),(R=Tt.handle)||(R=Tt.handle=function(On){return typeof x<"u"&&x.event.triggered!==On.type?x.event.dispatch.apply(l,arguments):void 0}),d=(d||"").match(nt)||[""],Z=d.length;Z--;)V=Zi.exec(d[Z])||[],Ie=Ft=V[1],yt=(V[2]||"").split(".").sort(),Ie&&(xe=x.event.special[Ie]||{},Ie=(M?xe.delegateType:xe.bindType)||Ie,xe=x.event.special[Ie]||{},fe=x.extend({type:Ie,origType:Ft,data:w,handler:y,guid:y.guid,selector:M,needsContext:M&&x.expr.match.needsContext.test(M),namespace:yt.join(".")},E),(ae=k[Ie])||(ae=k[Ie]=[],ae.delegateCount=0,(!xe.setup||xe.setup.call(l,w,yt,R)===!1)&&l.addEventListener&&l.addEventListener(Ie,R)),xe.add&&(xe.add.call(l,fe),fe.handler.guid||(fe.handler.guid=y.guid)),M?ae.splice(ae.delegateCount++,0,fe):ae.push(fe),x.event.global[Ie]=!0)},remove:function(l,d,y,w,M){var E,R,V,k,Z,fe,xe,ae,Ie,yt,Ft,Tt=re.hasData(l)&&re.get(l);if(!(!Tt||!(k=Tt.events))){for(d=(d||"").match(nt)||[""],Z=d.length;Z--;){if(V=Zi.exec(d[Z])||[],Ie=Ft=V[1],yt=(V[2]||"").split(".").sort(),!Ie){for(Ie in k)x.event.remove(l,Ie+d[Z],y,w,!0);continue}for(xe=x.event.special[Ie]||{},Ie=(w?xe.delegateType:xe.bindType)||Ie,ae=k[Ie]||[],V=V[2]&&new RegExp("(^|\\.)"+yt.join("\\.(?:.*\\.|)")+"(\\.|$)"),R=E=ae.length;E--;)fe=ae[E],(M||Ft===fe.origType)&&(!y||y.guid===fe.guid)&&(!V||V.test(fe.namespace))&&(!w||w===fe.selector||w==="**"&&fe.selector)&&(ae.splice(E,1),fe.selector&&ae.delegateCount--,xe.remove&&xe.remove.call(l,fe));R&&!ae.length&&((!xe.teardown||xe.teardown.call(l,yt,Tt.handle)===!1)&&x.removeEvent(l,Ie,Tt.handle),delete k[Ie])}x.isEmptyObject(k)&&re.remove(l,"handle events")}},dispatch:function(l){var d,y,w,M,E,R,V=new Array(arguments.length),k=x.event.fix(l),Z=(re.get(this,"events")||Object.create(null))[k.type]||[],fe=x.event.special[k.type]||{};for(V[0]=k,d=1;d=1)){for(;Z!==this;Z=Z.parentNode||this)if(Z.nodeType===1&&!(l.type==="click"&&Z.disabled===!0)){for(E=[],R={},y=0;y-1:x.find(M,this,null,[Z]).length),R[M]&&E.push(w);E.length&&V.push({elem:Z,handlers:E})}}return Z=this,k\s*$/g;function ic(l,d){return L(l,"table")&&L(d.nodeType!==11?d:d.firstChild,"tr")&&x(l).children("tbody")[0]||l}function ff(l){return l.type=(l.getAttribute("type")!==null)+"/"+l.type,l}function pf(l){return(l.type||"").slice(0,5)==="true/"?l.type=l.type.slice(5):l.removeAttribute("type"),l}function au(l,d){var y,w,M,E,R,V,k;if(d.nodeType===1){if(re.hasData(l)&&(E=re.get(l),k=E.events,k)){re.remove(d,"handle events");for(M in k)for(y=0,w=k[M].length;y1&&typeof Ie=="string"&&!g.checkClone&&Va.test(Ie))return l.each(function(Ft){var Tt=l.eq(Ft);yt&&(d[0]=Ie.call(this,Ft,Tt.html())),J(Tt,d,y,w)});if(xe&&(M=mi(d,l[0].ownerDocument,!1,l,w),E=M.firstChild,M.childNodes.length===1&&(M=E),E||w)){for(R=x.map(Ot(M,"script"),ff),V=R.length;fe0&&Vt(R,!k&&Ot(l,"script")),V},cleanData:function(l){for(var d,y,w,M=x.event.special,E=0;(y=l[E])!==void 0;E++)if(Me(y)){if(d=y[re.expando]){if(d.events)for(w in d.events)M[w]?x.event.remove(y,w):x.removeEvent(y,w,d.handle);y[re.expando]=void 0}y[Je.expando]&&(y[Je.expando]=void 0)}}}),x.fn.extend({detach:function(l){return oe(this,l,!0)},remove:function(l){return oe(this,l)},text:function(l){return ke(this,function(d){return d===void 0?x.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=d)})},null,l,arguments.length)},append:function(){return J(this,arguments,function(l){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var d=ic(this,l);d.appendChild(l)}})},prepend:function(){return J(this,arguments,function(l){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var d=ic(this,l);d.insertBefore(l,d.firstChild)}})},before:function(){return J(this,arguments,function(l){this.parentNode&&this.parentNode.insertBefore(l,this)})},after:function(){return J(this,arguments,function(l){this.parentNode&&this.parentNode.insertBefore(l,this.nextSibling)})},empty:function(){for(var l,d=0;(l=this[d])!=null;d++)l.nodeType===1&&(x.cleanData(Ot(l,!1)),l.textContent="");return this},clone:function(l,d){return l=l??!1,d=d??l,this.map(function(){return x.clone(this,l,d)})},html:function(l){return ke(this,function(d){var y=this[0]||{},w=0,M=this.length;if(d===void 0&&y.nodeType===1)return y.innerHTML;if(typeof d=="string"&&!ru.test(d)&&!Nt[(xt.exec(d)||["",""])[1].toLowerCase()]){d=x.htmlPrefilter(d);try{for(;w=0&&(k+=Math.max(0,Math.ceil(l["offset"+d[0].toUpperCase()+d.slice(1)]-E-k-V-.5))||0),k+Z}function Ai(l,d,y){var w=Fe(l),M=!g.boxSizingReliable()||y,E=M&&x.css(l,"boxSizing",!1,w)==="border-box",R=E,V=tt(l,d,w),k="offset"+d[0].toUpperCase()+d.slice(1);if(ce.test(V)){if(!y)return V;V="auto"}return(!g.boxSizingReliable()&&E||!g.reliableTrDimensions()&&L(l,"tr")||V==="auto"||!parseFloat(V)&&x.css(l,"display",!1,w)==="inline")&&l.getClientRects().length&&(E=x.css(l,"boxSizing",!1,w)==="border-box",R=k in l,R&&(V=l[k])),V=parseFloat(V)||0,V+Ht(l,d,y||(E?"border":"content"),R,w,V)+"px"}x.extend({cssHooks:{opacity:{get:function(l,d){if(d){var y=tt(l,"opacity");return y===""?"1":y}}}},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(l,d,y,w){if(!(!l||l.nodeType===3||l.nodeType===8||!l.style)){var M,E,R,V=se(d),k=Q.test(d),Z=l.style;if(k||(d=Qt(V)),R=x.cssHooks[d]||x.cssHooks[V],y!==void 0){if(E=typeof y,E==="string"&&(M=St.exec(y))&&M[1]&&(y=j(l,d,M),E="number"),y==null||y!==y)return;E==="number"&&!k&&(y+=M&&M[3]||(x.cssNumber[V]?"":"px")),!g.clearCloneStyle&&y===""&&d.indexOf("background")===0&&(Z[d]="inherit"),(!R||!("set"in R)||(y=R.set(l,y,w))!==void 0)&&(k?Z.setProperty(d,y):Z[d]=y)}else return R&&"get"in R&&(M=R.get(l,!1,w))!==void 0?M:Z[d]}},css:function(l,d,y,w){var M,E,R,V=se(d),k=Q.test(d);return k||(d=Qt(V)),R=x.cssHooks[d]||x.cssHooks[V],R&&"get"in R&&(M=R.get(l,!0,y)),M===void 0&&(M=tt(l,d,w)),M==="normal"&&d in ct&&(M=ct[d]),y===""||y?(E=parseFloat(M),y===!0||isFinite(E)?E||0:M):M}}),x.each(["height","width"],function(l,d){x.cssHooks[d]={get:function(y,w,M){if(w)return $n.test(x.css(y,"display"))&&(!y.getClientRects().length||!y.getBoundingClientRect().width)?je(y,qt,function(){return Ai(y,d,M)}):Ai(y,d,M)},set:function(y,w,M){var E,R=Fe(y),V=!g.scrollboxSize()&&R.position==="absolute",k=V||M,Z=k&&x.css(y,"boxSizing",!1,R)==="border-box",fe=M?Ht(y,d,M,Z,R):0;return Z&&V&&(fe-=Math.ceil(y["offset"+d[0].toUpperCase()+d.slice(1)]-parseFloat(R[d])-Ht(y,d,"border",!1,R)-.5)),fe&&(E=St.exec(w))&&(E[3]||"px")!=="px"&&(y.style[d]=w,w=x.css(y,d)),Cn(y,w,fe)}}}),x.cssHooks.marginLeft=dt(g.reliableMarginLeft,function(l,d){if(d)return(parseFloat(tt(l,"marginLeft"))||l.getBoundingClientRect().left-je(l,{marginLeft:0},function(){return l.getBoundingClientRect().left}))+"px"}),x.each({margin:"",padding:"",border:"Width"},function(l,d){x.cssHooks[l+d]={expand:function(y){for(var w=0,M={},E=typeof y=="string"?y.split(" "):[y];w<4;w++)M[l+lt[w]+d]=E[w]||E[w-2]||E[0];return M}},l!=="margin"&&(x.cssHooks[l+d].set=Cn)}),x.fn.extend({css:function(l,d){return ke(this,function(y,w,M){var E,R,V={},k=0;if(Array.isArray(w)){for(E=Fe(y),R=w.length;k1)}});function Mn(l,d,y,w,M){return new Mn.prototype.init(l,d,y,w,M)}x.Tween=Mn,Mn.prototype={constructor:Mn,init:function(l,d,y,w,M,E){this.elem=l,this.prop=y,this.easing=M||x.easing._default,this.options=d,this.start=this.now=this.cur(),this.end=w,this.unit=E||(x.cssNumber[y]?"":"px")},cur:function(){var l=Mn.propHooks[this.prop];return l&&l.get?l.get(this):Mn.propHooks._default.get(this)},run:function(l){var d,y=Mn.propHooks[this.prop];return this.options.duration?this.pos=d=x.easing[this.easing](l,this.options.duration*l,0,1,this.options.duration):this.pos=d=l,this.now=(this.end-this.start)*d+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),y&&y.set?y.set(this):Mn.propHooks._default.set(this),this}},Mn.prototype.init.prototype=Mn.prototype,Mn.propHooks={_default:{get:function(l){var d;return l.elem.nodeType!==1||l.elem[l.prop]!=null&&l.elem.style[l.prop]==null?l.elem[l.prop]:(d=x.css(l.elem,l.prop,""),!d||d==="auto"?0:d)},set:function(l){x.fx.step[l.prop]?x.fx.step[l.prop](l):l.elem.nodeType===1&&(x.cssHooks[l.prop]||l.elem.style[Qt(l.prop)]!=null)?x.style(l.elem,l.prop,l.now+l.unit):l.elem[l.prop]=l.now}}},Mn.propHooks.scrollTop=Mn.propHooks.scrollLeft={set:function(l){l.elem.nodeType&&l.elem.parentNode&&(l.elem[l.prop]=l.now)}},x.easing={linear:function(l){return l},swing:function(l){return .5-Math.cos(l*Math.PI)/2},_default:"swing"},x.fx=Mn.prototype.init,x.fx.step={};var ai,es,bn=/^(?:toggle|show|hide)$/,Ki=/queueHooks$/;function Is(){es&&(v.hidden===!1&&e.requestAnimationFrame?e.requestAnimationFrame(Is):e.setTimeout(Is,x.fx.interval),x.fx.tick())}function Zn(){return e.setTimeout(function(){ai=void 0}),ai=Date.now()}function ts(l,d){var y,w=0,M={height:l};for(d=d?1:0;w<4;w+=2-d)y=lt[w],M["margin"+y]=M["padding"+y]=l;return d&&(M.opacity=M.width=l),M}function ou(l,d,y){for(var w,M=(Fi.tweeners[d]||[]).concat(Fi.tweeners["*"]),E=0,R=M.length;E1)},removeAttr:function(l){return this.each(function(){x.removeAttr(this,l)})}}),x.extend({attr:function(l,d,y){var w,M,E=l.nodeType;if(!(E===3||E===8||E===2)){if(typeof l.getAttribute>"u")return x.prop(l,d,y);if((E!==1||!x.isXMLDoc(l))&&(M=x.attrHooks[d.toLowerCase()]||(x.expr.match.bool.test(d)?Zm:void 0)),y!==void 0){if(y===null){x.removeAttr(l,d);return}return M&&"set"in M&&(w=M.set(l,y,d))!==void 0?w:(l.setAttribute(d,y+""),y)}return M&&"get"in M&&(w=M.get(l,d))!==null?w:(w=x.find.attr(l,d),w??void 0)}},attrHooks:{type:{set:function(l,d){if(!g.radioValue&&d==="radio"&&L(l,"input")){var y=l.value;return l.setAttribute("type",d),y&&(l.value=y),d}}}},removeAttr:function(l,d){var y,w=0,M=d&&d.match(nt);if(M&&l.nodeType===1)for(;y=M[w++];)l.removeAttribute(y)}}),Zm={set:function(l,d,y){return d===!1?x.removeAttr(l,y):l.setAttribute(y,y),y}},x.each(x.expr.match.bool.source.match(/\w+/g),function(l,d){var y=rc[d]||x.find.attr;rc[d]=function(w,M,E){var R,V,k=M.toLowerCase();return E||(V=rc[k],rc[k]=R,R=y(w,M,E)!=null?k:null,rc[k]=V),R}});var Ow=/^(?:input|select|textarea|button)$/i,kw=/^(?:a|area)$/i;x.fn.extend({prop:function(l,d){return ke(this,x.prop,l,d,arguments.length>1)},removeProp:function(l){return this.each(function(){delete this[x.propFix[l]||l]})}}),x.extend({prop:function(l,d,y){var w,M,E=l.nodeType;if(!(E===3||E===8||E===2))return(E!==1||!x.isXMLDoc(l))&&(d=x.propFix[d]||d,M=x.propHooks[d]),y!==void 0?M&&"set"in M&&(w=M.set(l,y,d))!==void 0?w:l[d]=y:M&&"get"in M&&(w=M.get(l,d))!==null?w:l[d]},propHooks:{tabIndex:{get:function(l){var d=x.find.attr(l,"tabindex");return d?parseInt(d,10):Ow.test(l.nodeName)||kw.test(l.nodeName)&&l.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(x.propHooks.selected={get:function(l){var d=l.parentNode;return d&&d.parentNode&&d.parentNode.selectedIndex,null},set:function(l){var d=l.parentNode;d&&(d.selectedIndex,d.parentNode&&d.parentNode.selectedIndex)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this});function Ds(l){var d=l.match(nt)||[];return d.join(" ")}function Ps(l){return l.getAttribute&&l.getAttribute("class")||""}function mf(l){return Array.isArray(l)?l:typeof l=="string"?l.match(nt)||[]:[]}x.fn.extend({addClass:function(l){var d,y,w,M,E,R;return _(l)?this.each(function(V){x(this).addClass(l.call(this,V,Ps(this)))}):(d=mf(l),d.length?this.each(function(){if(w=Ps(this),y=this.nodeType===1&&" "+Ds(w)+" ",y){for(E=0;E-1;)y=y.replace(" "+M+" "," ");R=Ds(y),w!==R&&this.setAttribute("class",R)}}):this):this.attr("class","")},toggleClass:function(l,d){var y,w,M,E,R=typeof l,V=R==="string"||Array.isArray(l);return _(l)?this.each(function(k){x(this).toggleClass(l.call(this,k,Ps(this),d),d)}):typeof d=="boolean"&&V?d?this.addClass(l):this.removeClass(l):(y=mf(l),this.each(function(){if(V)for(E=x(this),M=0;M-1)return!0;return!1}});var zw=/\r/g;x.fn.extend({val:function(l){var d,y,w,M=this[0];return arguments.length?(w=_(l),this.each(function(E){var R;this.nodeType===1&&(w?R=l.call(this,E,x(this).val()):R=l,R==null?R="":typeof R=="number"?R+="":Array.isArray(R)&&(R=x.map(R,function(V){return V==null?"":V+""})),d=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()],(!d||!("set"in d)||d.set(this,R,"value")===void 0)&&(this.value=R))})):M?(d=x.valHooks[M.type]||x.valHooks[M.nodeName.toLowerCase()],d&&"get"in d&&(y=d.get(M,"value"))!==void 0?y:(y=M.value,typeof y=="string"?y.replace(zw,""):y??"")):void 0}}),x.extend({valHooks:{option:{get:function(l){var d=x.find.attr(l,"value");return d??Ds(x.text(l))}},select:{get:function(l){var d,y,w,M=l.options,E=l.selectedIndex,R=l.type==="select-one",V=R?null:[],k=R?E+1:M.length;for(E<0?w=k:w=R?E:0;w-1)&&(y=!0);return y||(l.selectedIndex=-1),E}}}}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(l,d){if(Array.isArray(d))return l.checked=x.inArray(x(l).val(),d)>-1}},g.checkOn||(x.valHooks[this].get=function(l){return l.getAttribute("value")===null?"on":l.value})});var sc=e.location,Jm={guid:Date.now()},xf=/\?/;x.parseXML=function(l){var d,y;if(!l||typeof l!="string")return null;try{d=new e.DOMParser().parseFromString(l,"text/xml")}catch{}return y=d&&d.getElementsByTagName("parsererror")[0],(!d||y)&&x.error("Invalid XML: "+(y?x.map(y.childNodes,function(w){return w.textContent}).join(` `):l)),d};var Km=/^(?:focusinfocus|focusoutblur)$/,Qm=function(l){l.stopPropagation()};x.extend(x.event,{trigger:function(l,d,y,w){var M,E,R,V,k,Z,fe,xe,ae=[y||v],Ie=p.call(l,"type")?l.type:l,yt=p.call(l,"namespace")?l.namespace.split("."):[];if(E=xe=R=y=y||v,!(y.nodeType===3||y.nodeType===8)&&!Km.test(Ie+x.event.triggered)&&(Ie.indexOf(".")>-1&&(yt=Ie.split("."),Ie=yt.shift(),yt.sort()),k=Ie.indexOf(":")<0&&"on"+Ie,l=l[x.expando]?l:new x.Event(Ie,typeof l=="object"&&l),l.isTrigger=w?2:3,l.namespace=yt.join("."),l.rnamespace=l.namespace?new RegExp("(^|\\.)"+yt.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,l.result=void 0,l.target||(l.target=y),d=d==null?[l]:x.makeArray(d,[l]),fe=x.event.special[Ie]||{},!(!w&&fe.trigger&&fe.trigger.apply(y,d)===!1))){if(!w&&!fe.noBubble&&!b(y)){for(V=fe.delegateType||Ie,Km.test(V+Ie)||(E=E.parentNode);E;E=E.parentNode)ae.push(E),R=E;R===(y.ownerDocument||v)&&ae.push(R.defaultView||R.parentWindow||e)}for(M=0;(E=ae[M++])&&!l.isPropagationStopped();)xe=E,l.type=M>1?V:fe.bindType||Ie,Z=(re.get(E,"events")||Object.create(null))[l.type]&&re.get(E,"handle"),Z&&Z.apply(E,d),Z=k&&E[k],Z&&Z.apply&&Me(E)&&(l.result=Z.apply(E,d),l.result===!1&&l.preventDefault());return l.type=Ie,!w&&!l.isDefaultPrevented()&&(!fe._default||fe._default.apply(ae.pop(),d)===!1)&&Me(y)&&k&&_(y[Ie])&&!b(y)&&(R=y[k],R&&(y[k]=null),x.event.triggered=Ie,l.isPropagationStopped()&&xe.addEventListener(Ie,Qm),y[Ie](),l.isPropagationStopped()&&xe.removeEventListener(Ie,Qm),x.event.triggered=void 0,R&&(y[k]=R)),l.result}},simulate:function(l,d,y){var w=x.extend(new x.Event,y,{type:l,isSimulated:!0});x.event.trigger(w,null,d)}}),x.fn.extend({trigger:function(l,d){return this.each(function(){x.event.trigger(l,d,this)})},triggerHandler:function(l,d){var y=this[0];if(y)return x.event.trigger(l,d,y,!0)}});var Bw=/\[\]$/,ex=/\r?\n/g,Vw=/^(?:submit|button|image|reset|file)$/i,Hw=/^(?:input|select|textarea|keygen)/i;function gf(l,d,y,w){var M;if(Array.isArray(d))x.each(d,function(E,R){y||Bw.test(l)?w(l,R):gf(l+"["+(typeof R=="object"&&R!=null?E:"")+"]",R,y,w)});else if(!y&&T(d)==="object")for(M in d)gf(l+"["+M+"]",d[M],y,w);else w(l,d)}x.param=function(l,d){var y,w=[],M=function(E,R){var V=_(R)?R():R;w[w.length]=encodeURIComponent(E)+"="+encodeURIComponent(V??"")};if(l==null)return"";if(Array.isArray(l)||l.jquery&&!x.isPlainObject(l))x.each(l,function(){M(this.name,this.value)});else for(y in l)gf(y,l[y],d,M);return w.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var l=x.prop(this,"elements");return l?x.makeArray(l):this}).filter(function(){var l=this.type;return this.name&&!x(this).is(":disabled")&&Hw.test(this.nodeName)&&!Vw.test(l)&&(this.checked||!Ne.test(l))}).map(function(l,d){var y=x(this).val();return y==null?null:Array.isArray(y)?x.map(y,function(w){return{name:d.name,value:w.replace(ex,`\r `)}}):{name:d.name,value:y.replace(ex,`\r `)}}).get()}});var Gw=/%20/g,Ww=/#.*$/,qw=/([?&])_=[^&]*/,Xw=/^(.*?):[ \t]*([^\r\n]*)$/mg,Yw=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,jw=/^(?:GET|HEAD)$/,$w=/^\/\//,tx={},vf={},nx="*/".concat("*"),yf=v.createElement("a");yf.href=sc.href;function ix(l){return function(d,y){typeof d!="string"&&(y=d,d="*");var w,M=0,E=d.toLowerCase().match(nt)||[];if(_(y))for(;w=E[M++];)w[0]==="+"?(w=w.slice(1)||"*",(l[w]=l[w]||[]).unshift(y)):(l[w]=l[w]||[]).push(y)}}function rx(l,d,y,w){var M={},E=l===vf;function R(V){var k;return M[V]=!0,x.each(l[V]||[],function(Z,fe){var xe=fe(d,y,w);if(typeof xe=="string"&&!E&&!M[xe])return d.dataTypes.unshift(xe),R(xe),!1;if(E)return!(k=xe)}),k}return R(d.dataTypes[0])||!M["*"]&&R("*")}function bf(l,d){var y,w,M=x.ajaxSettings.flatOptions||{};for(y in d)d[y]!==void 0&&((M[y]?l:w||(w={}))[y]=d[y]);return w&&x.extend(!0,l,w),l}function Zw(l,d,y){for(var w,M,E,R,V=l.contents,k=l.dataTypes;k[0]==="*";)k.shift(),w===void 0&&(w=l.mimeType||d.getResponseHeader("Content-Type"));if(w){for(M in V)if(V[M]&&V[M].test(w)){k.unshift(M);break}}if(k[0]in y)E=k[0];else{for(M in y){if(!k[0]||l.converters[M+" "+k[0]]){E=M;break}R||(R=M)}E=E||R}if(E)return E!==k[0]&&k.unshift(E),y[E]}function Jw(l,d,y,w){var M,E,R,V,k,Z={},fe=l.dataTypes.slice();if(fe[1])for(R in l.converters)Z[R.toLowerCase()]=l.converters[R];for(E=fe.shift();E;)if(l.responseFields[E]&&(y[l.responseFields[E]]=d),!k&&w&&l.dataFilter&&(d=l.dataFilter(d,l.dataType)),k=E,E=fe.shift(),E){if(E==="*")E=k;else if(k!=="*"&&k!==E){if(R=Z[k+" "+E]||Z["* "+E],!R){for(M in Z)if(V=M.split(" "),V[1]===E&&(R=Z[k+" "+V[0]]||Z["* "+V[0]],R)){R===!0?R=Z[M]:Z[M]!==!0&&(E=V[0],fe.unshift(V[1]));break}}if(R!==!0)if(R&&l.throws)d=R(d);else try{d=R(d)}catch(xe){return{state:"parsererror",error:R?xe:"No conversion from "+k+" to "+E}}}}return{state:"success",data:d}}x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:sc.href,type:"GET",isLocal:Yw.test(sc.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":nx,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":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(l,d){return d?bf(bf(l,x.ajaxSettings),d):bf(x.ajaxSettings,l)},ajaxPrefilter:ix(tx),ajaxTransport:ix(vf),ajax:function(l,d){typeof l=="object"&&(d=l,l=void 0),d=d||{};var y,w,M,E,R,V,k,Z,fe,xe,ae=x.ajaxSetup({},d),Ie=ae.context||ae,yt=ae.context&&(Ie.nodeType||Ie.jquery)?x(Ie):x.event,Ft=x.Deferred(),Tt=x.Callbacks("once memory"),On=ae.statusCode||{},En={},Qi={},er="canceled",Dt={readyState:0,getResponseHeader:function(zt){var hn;if(k){if(!E)for(E={};hn=Xw.exec(M);)E[hn[1].toLowerCase()+" "]=(E[hn[1].toLowerCase()+" "]||[]).concat(hn[2]);hn=E[zt.toLowerCase()+" "]}return hn==null?null:hn.join(", ")},getAllResponseHeaders:function(){return k?M:null},setRequestHeader:function(zt,hn){return k==null&&(zt=Qi[zt.toLowerCase()]=Qi[zt.toLowerCase()]||zt,En[zt]=hn),this},overrideMimeType:function(zt){return k==null&&(ae.mimeType=zt),this},statusCode:function(zt){var hn;if(zt)if(k)Dt.always(zt[Dt.status]);else for(hn in zt)On[hn]=[On[hn],zt[hn]];return this},abort:function(zt){var hn=zt||er;return y&&y.abort(hn),Us(0,hn),this}};if(Ft.promise(Dt),ae.url=((l||ae.url||sc.href)+"").replace($w,sc.protocol+"//"),ae.type=d.method||d.type||ae.method||ae.type,ae.dataTypes=(ae.dataType||"*").toLowerCase().match(nt)||[""],ae.crossDomain==null){V=v.createElement("a");try{V.href=ae.url,V.href=V.href,ae.crossDomain=yf.protocol+"//"+yf.host!=V.protocol+"//"+V.host}catch{ae.crossDomain=!0}}if(ae.data&&ae.processData&&typeof ae.data!="string"&&(ae.data=x.param(ae.data,ae.traditional)),rx(tx,ae,d,Dt),k)return Dt;Z=x.event&&ae.global,Z&&x.active++===0&&x.event.trigger("ajaxStart"),ae.type=ae.type.toUpperCase(),ae.hasContent=!jw.test(ae.type),w=ae.url.replace(Ww,""),ae.hasContent?ae.data&&ae.processData&&(ae.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(ae.data=ae.data.replace(Gw,"+")):(xe=ae.url.slice(w.length),ae.data&&(ae.processData||typeof ae.data=="string")&&(w+=(xf.test(w)?"&":"?")+ae.data,delete ae.data),ae.cache===!1&&(w=w.replace(qw,"$1"),xe=(xf.test(w)?"&":"?")+"_="+Jm.guid+++xe),ae.url=w+xe),ae.ifModified&&(x.lastModified[w]&&Dt.setRequestHeader("If-Modified-Since",x.lastModified[w]),x.etag[w]&&Dt.setRequestHeader("If-None-Match",x.etag[w])),(ae.data&&ae.hasContent&&ae.contentType!==!1||d.contentType)&&Dt.setRequestHeader("Content-Type",ae.contentType),Dt.setRequestHeader("Accept",ae.dataTypes[0]&&ae.accepts[ae.dataTypes[0]]?ae.accepts[ae.dataTypes[0]]+(ae.dataTypes[0]!=="*"?", "+nx+"; q=0.01":""):ae.accepts["*"]);for(fe in ae.headers)Dt.setRequestHeader(fe,ae.headers[fe]);if(ae.beforeSend&&(ae.beforeSend.call(Ie,Dt,ae)===!1||k))return Dt.abort();if(er="abort",Tt.add(ae.complete),Dt.done(ae.success),Dt.fail(ae.error),y=rx(vf,ae,d,Dt),!y)Us(-1,"No Transport");else{if(Dt.readyState=1,Z&&yt.trigger("ajaxSend",[Dt,ae]),k)return Dt;ae.async&&ae.timeout>0&&(R=e.setTimeout(function(){Dt.abort("timeout")},ae.timeout));try{k=!1,y.send(En,Us)}catch(zt){if(k)throw zt;Us(-1,zt)}}function Us(zt,hn,oc,wf){var tr,cc,nr,ns,is,Ti=hn;k||(k=!0,R&&e.clearTimeout(R),y=void 0,M=wf||"",Dt.readyState=zt>0?4:0,tr=zt>=200&&zt<300||zt===304,oc&&(ns=Zw(ae,Dt,oc)),!tr&&x.inArray("script",ae.dataTypes)>-1&&x.inArray("json",ae.dataTypes)<0&&(ae.converters["text script"]=function(){}),ns=Jw(ae,ns,Dt,tr),tr?(ae.ifModified&&(is=Dt.getResponseHeader("Last-Modified"),is&&(x.lastModified[w]=is),is=Dt.getResponseHeader("etag"),is&&(x.etag[w]=is)),zt===204||ae.type==="HEAD"?Ti="nocontent":zt===304?Ti="notmodified":(Ti=ns.state,cc=ns.data,nr=ns.error,tr=!nr)):(nr=Ti,(zt||!Ti)&&(Ti="error",zt<0&&(zt=0))),Dt.status=zt,Dt.statusText=(hn||Ti)+"",tr?Ft.resolveWith(Ie,[cc,Ti,Dt]):Ft.rejectWith(Ie,[Dt,Ti,nr]),Dt.statusCode(On),On=void 0,Z&&yt.trigger(tr?"ajaxSuccess":"ajaxError",[Dt,ae,tr?cc:nr]),Tt.fireWith(Ie,[Dt,Ti]),Z&&(yt.trigger("ajaxComplete",[Dt,ae]),--x.active||x.event.trigger("ajaxStop")))}return Dt},getJSON:function(l,d,y){return x.get(l,d,y,"json")},getScript:function(l,d){return x.get(l,void 0,d,"script")}}),x.each(["get","post"],function(l,d){x[d]=function(y,w,M,E){return _(w)&&(E=E||M,M=w,w=void 0),x.ajax(x.extend({url:y,type:d,dataType:E,data:w,success:M},x.isPlainObject(y)&&y))}}),x.ajaxPrefilter(function(l){var d;for(d in l.headers)d.toLowerCase()==="content-type"&&(l.contentType=l.headers[d]||"")}),x._evalUrl=function(l,d,y){return x.ajax({url:l,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(w){x.globalEval(w,d,y)}})},x.fn.extend({wrapAll:function(l){var d;return this[0]&&(_(l)&&(l=l.call(this[0])),d=x(l,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&d.insertBefore(this[0]),d.map(function(){for(var y=this;y.firstElementChild;)y=y.firstElementChild;return y}).append(this)),this},wrapInner:function(l){return _(l)?this.each(function(d){x(this).wrapInner(l.call(this,d))}):this.each(function(){var d=x(this),y=d.contents();y.length?y.wrapAll(l):d.append(l)})},wrap:function(l){var d=_(l);return this.each(function(y){x(this).wrapAll(d?l.call(this,y):l)})},unwrap:function(l){return this.parent(l).not("body").each(function(){x(this).replaceWith(this.childNodes)}),this}}),x.expr.pseudos.hidden=function(l){return!x.expr.pseudos.visible(l)},x.expr.pseudos.visible=function(l){return!!(l.offsetWidth||l.offsetHeight||l.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch{}};var Kw={0:200,1223:204},ac=x.ajaxSettings.xhr();g.cors=!!ac&&"withCredentials"in ac,g.ajax=ac=!!ac,x.ajaxTransport(function(l){var d,y;if(g.cors||ac&&!l.crossDomain)return{send:function(w,M){var E,R=l.xhr();if(R.open(l.type,l.url,l.async,l.username,l.password),l.xhrFields)for(E in l.xhrFields)R[E]=l.xhrFields[E];l.mimeType&&R.overrideMimeType&&R.overrideMimeType(l.mimeType),!l.crossDomain&&!w["X-Requested-With"]&&(w["X-Requested-With"]="XMLHttpRequest");for(E in w)R.setRequestHeader(E,w[E]);d=function(V){return function(){d&&(d=y=R.onload=R.onerror=R.onabort=R.ontimeout=R.onreadystatechange=null,V==="abort"?R.abort():V==="error"?typeof R.status!="number"?M(0,"error"):M(R.status,R.statusText):M(Kw[R.status]||R.status,R.statusText,(R.responseType||"text")!=="text"||typeof R.responseText!="string"?{binary:R.response}:{text:R.responseText},R.getAllResponseHeaders()))}},R.onload=d(),y=R.onerror=R.ontimeout=d("error"),R.onabort!==void 0?R.onabort=y:R.onreadystatechange=function(){R.readyState===4&&e.setTimeout(function(){d&&y()})},d=d("abort");try{R.send(l.hasContent&&l.data||null)}catch(V){if(d)throw V}},abort:function(){d&&d()}}}),x.ajaxPrefilter(function(l){l.crossDomain&&(l.contents.script=!1)}),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(l){return x.globalEval(l),l}}}),x.ajaxPrefilter("script",function(l){l.cache===void 0&&(l.cache=!1),l.crossDomain&&(l.type="GET")}),x.ajaxTransport("script",function(l){if(l.crossDomain||l.scriptAttrs){var d,y;return{send:function(w,M){d=x(" + diff --git a/docs/sw.js b/docs/sw.js index 30cb818..17c023b 100644 --- a/docs/sw.js +++ b/docs/sw.js @@ -1 +1 @@ -if(!self.define){let s,e={};const r=(r,i)=>(r=new URL(r+".js",i).href,e[r]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=r,s.onload=e,document.head.appendChild(s)}else s=r,importScripts(r),e()})).then((()=>{let s=e[r];if(!s)throw new Error(`Module ${r} didn’t register its module`);return s})));self.define=(i,n)=>{const l=s||("document"in self?document.currentScript.src:"")||location.href;if(e[l])return;let a={};const o=s=>r(s,l),u={module:{uri:l},exports:a,require:o};e[l]=Promise.all(i.map((s=>u[s]||o(s)))).then((s=>(n(...s),a)))}}define(["./workbox-b994f779"],(function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"apple-touch-icon.png",revision:"a77bcff80bf32b4d148439bbfc0f4116"},{url:"assets/chunk-Y3BVWVFU-CVGQrVKW.js",revision:null},{url:"assets/index-6Uh7mn8L.js",revision:null},{url:"assets/index-CCmS1yD8.css",revision:null},{url:"assets/index-DKr3XGX6.js",revision:null},{url:"assets/inside-Y2UVJZNJ-BRDWr7MR.js",revision:null},{url:"assets/puzzles-dynamic-3x3x3-JWIWLLZA-fR7zXD4k.js",revision:null},{url:"assets/puzzles-dynamic-4x4x4-REUXFQJ4-BNnOy5ao.js",revision:null},{url:"assets/puzzles-dynamic-megaminx-2LVHIDL4-Cm8jQJ-N.js",revision:null},{url:"assets/puzzles-dynamic-side-events-QIADTLKJ-Ce2s_gCL.js",revision:null},{url:"assets/puzzles-dynamic-unofficial-NCMLO2AJ-SUsTto0f.js",revision:null},{url:"assets/search-dynamic-sgs-side-events-RPVZU2YB-BW0s4clI.js",revision:null},{url:"assets/search-dynamic-sgs-unofficial-2TYKOUM4-D1F7Kxvj.js",revision:null},{url:"assets/search-dynamic-solve-3x3x3-QHRLSVAC-6iYVGW9D.js",revision:null},{url:"assets/search-dynamic-solve-4x4x4-V5D7RQND-C47eE0oE.js",revision:null},{url:"assets/search-dynamic-solve-fto-UOKDYVD5-B7CznAuN.js",revision:null},{url:"assets/search-dynamic-solve-kilominx-RAZM75GA-BMZTkWQx.js",revision:null},{url:"assets/search-dynamic-solve-master_tetraminx-3D4MBF3V-CXpiJqbr.js",revision:null},{url:"assets/search-dynamic-solve-sq1-YESVPPLF-xzVW2V01.js",revision:null},{url:"assets/search-worker-entry-BH5NATLP.js",revision:null},{url:"assets/search-worker-entry-DNPX3OpU.js",revision:null},{url:"assets/twisty-dynamic-3d-HF7KVBOE-DHq-H7pV.js",revision:null},{url:"assets/twsearch_wasm_bg-V4F3SIUO-QGKWKUFY-iE1VAZwZ.js",revision:null},{url:"assets/twsearch-MRZGOB6T-C-KbAOM4.js",revision:null},{url:"assets/worker/chunk-Y3BVWVFU-BDrNbgoW.js",revision:null},{url:"assets/worker/index-OaN7RAFO.js",revision:null},{url:"assets/worker/inside-Y2UVJZNJ-Cu-MpFSH.js",revision:null},{url:"assets/worker/puzzles-dynamic-3x3x3-JWIWLLZA-fR7zXD4k.js",revision:null},{url:"assets/worker/puzzles-dynamic-4x4x4-REUXFQJ4-BNnOy5ao.js",revision:null},{url:"assets/worker/puzzles-dynamic-megaminx-2LVHIDL4-Cm8jQJ-N.js",revision:null},{url:"assets/worker/puzzles-dynamic-side-events-QIADTLKJ-Ce2s_gCL.js",revision:null},{url:"assets/worker/puzzles-dynamic-unofficial-NCMLO2AJ-SUsTto0f.js",revision:null},{url:"assets/worker/search-dynamic-sgs-side-events-RPVZU2YB-Q9KJhA9l.js",revision:null},{url:"assets/worker/search-dynamic-sgs-unofficial-2TYKOUM4-BWCqth6N.js",revision:null},{url:"assets/worker/search-dynamic-solve-3x3x3-QHRLSVAC-6iYVGW9D.js",revision:null},{url:"assets/worker/search-dynamic-solve-4x4x4-V5D7RQND-COf66azC.js",revision:null},{url:"assets/worker/search-dynamic-solve-fto-UOKDYVD5-BtkD8cfr.js",revision:null},{url:"assets/worker/search-dynamic-solve-kilominx-RAZM75GA-CspQUh7h.js",revision:null},{url:"assets/worker/search-dynamic-solve-master_tetraminx-3D4MBF3V-ERSDM-8s.js",revision:null},{url:"assets/worker/search-dynamic-solve-sq1-YESVPPLF-3E-Bmagu.js",revision:null},{url:"assets/worker/search-worker-entry-DcOSGEhO.js",revision:null},{url:"assets/worker/twsearch_wasm_bg-V4F3SIUO-QGKWKUFY-iE1VAZwZ.js",revision:null},{url:"assets/worker/twsearch-MRZGOB6T-CwgnijHO.js",revision:null},{url:"favicon-16x16.png",revision:"8b7823854aa1482006cd6f00249e7cb3"},{url:"favicon-32x32.png",revision:"ea765888fc25d763db5a8d9166d5e829"},{url:"icons/cubedex_screenshot_narrow.png",revision:"954ed691aee441143ca62f259bc7d50d"},{url:"icons/cubedex_screenshot_wide.png",revision:"a98d425dc2adfdfa483469199a0c82f3"},{url:"icons/icon-1024x1024.png",revision:"55af0d8811e233740d5199205aa38d8d"},{url:"icons/icon-192x192.png",revision:"51896a13572959eceae08a3e3b4ae555"},{url:"icons/icon-512x512.png",revision:"934ed52e28426f50d7a88654bb045a4d"},{url:"index.html",revision:"fb645c36e0b0e504839aaf6f26afe7c9"},{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"icons/icon-192x192.png",revision:"51896a13572959eceae08a3e3b4ae555"},{url:"icons/icon-512x512.png",revision:"934ed52e28426f50d7a88654bb045a4d"},{url:"manifest.json",revision:"4a1549d8d4dc1a0f10f015c15d10e1e7"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html"))),s.registerRoute(/^https:\/\/cubedex\.app\/.*\.(png|jpg|svg)$/,new s.CacheFirst({cacheName:"images-cache",plugins:[new s.ExpirationPlugin({maxEntries:10,maxAgeSeconds:2592e3})]}),"GET")})); +if(!self.define){let s,e={};const n=(n,i)=>(n=new URL(n+".js",i).href,e[n]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=n,s.onload=e,document.head.appendChild(s)}else s=n,importScripts(n),e()})).then((()=>{let s=e[n];if(!s)throw new Error(`Module ${n} didn’t register its module`);return s})));self.define=(i,r)=>{const l=s||("document"in self?document.currentScript.src:"")||location.href;if(e[l])return;let a={};const o=s=>n(s,l),u={module:{uri:l},exports:a,require:o};e[l]=Promise.all(i.map((s=>u[s]||o(s)))).then((s=>(r(...s),a)))}}define(["./workbox-b994f779"],(function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"apple-touch-icon.png",revision:"a77bcff80bf32b4d148439bbfc0f4116"},{url:"assets/chunk-Y3BVWVFU-Dnq3jO1H.js",revision:null},{url:"assets/index-BeSqQRzG.js",revision:null},{url:"assets/index-C0CFoZfZ.js",revision:null},{url:"assets/index-CCmS1yD8.css",revision:null},{url:"assets/inside-Y2UVJZNJ-BIGq-Vc8.js",revision:null},{url:"assets/puzzles-dynamic-3x3x3-JWIWLLZA-fR7zXD4k.js",revision:null},{url:"assets/puzzles-dynamic-4x4x4-REUXFQJ4-BNnOy5ao.js",revision:null},{url:"assets/puzzles-dynamic-megaminx-2LVHIDL4-Cm8jQJ-N.js",revision:null},{url:"assets/puzzles-dynamic-side-events-QIADTLKJ-Ce2s_gCL.js",revision:null},{url:"assets/puzzles-dynamic-unofficial-NCMLO2AJ-SUsTto0f.js",revision:null},{url:"assets/search-dynamic-sgs-side-events-RPVZU2YB-n9Usy7yi.js",revision:null},{url:"assets/search-dynamic-sgs-unofficial-2TYKOUM4-gGWtrktZ.js",revision:null},{url:"assets/search-dynamic-solve-3x3x3-QHRLSVAC-6iYVGW9D.js",revision:null},{url:"assets/search-dynamic-solve-4x4x4-V5D7RQND-DyknnesA.js",revision:null},{url:"assets/search-dynamic-solve-fto-UOKDYVD5-BsSdJpqT.js",revision:null},{url:"assets/search-dynamic-solve-kilominx-RAZM75GA-VO0X0iP7.js",revision:null},{url:"assets/search-dynamic-solve-master_tetraminx-3D4MBF3V-BPBgOXQt.js",revision:null},{url:"assets/search-dynamic-solve-sq1-YESVPPLF-Cy3eCfGj.js",revision:null},{url:"assets/search-worker-entry-DNPX3OpU.js",revision:null},{url:"assets/search-worker-entry-DVehLO7T.js",revision:null},{url:"assets/twisty-dynamic-3d-HF7KVBOE-DIyL00u0.js",revision:null},{url:"assets/twsearch_wasm_bg-V4F3SIUO-QGKWKUFY-iE1VAZwZ.js",revision:null},{url:"assets/twsearch-MRZGOB6T-Ds6SRqnK.js",revision:null},{url:"assets/worker/chunk-Y3BVWVFU-BDrNbgoW.js",revision:null},{url:"assets/worker/index-OaN7RAFO.js",revision:null},{url:"assets/worker/inside-Y2UVJZNJ-Cu-MpFSH.js",revision:null},{url:"assets/worker/puzzles-dynamic-3x3x3-JWIWLLZA-fR7zXD4k.js",revision:null},{url:"assets/worker/puzzles-dynamic-4x4x4-REUXFQJ4-BNnOy5ao.js",revision:null},{url:"assets/worker/puzzles-dynamic-megaminx-2LVHIDL4-Cm8jQJ-N.js",revision:null},{url:"assets/worker/puzzles-dynamic-side-events-QIADTLKJ-Ce2s_gCL.js",revision:null},{url:"assets/worker/puzzles-dynamic-unofficial-NCMLO2AJ-SUsTto0f.js",revision:null},{url:"assets/worker/search-dynamic-sgs-side-events-RPVZU2YB-Q9KJhA9l.js",revision:null},{url:"assets/worker/search-dynamic-sgs-unofficial-2TYKOUM4-BWCqth6N.js",revision:null},{url:"assets/worker/search-dynamic-solve-3x3x3-QHRLSVAC-6iYVGW9D.js",revision:null},{url:"assets/worker/search-dynamic-solve-4x4x4-V5D7RQND-COf66azC.js",revision:null},{url:"assets/worker/search-dynamic-solve-fto-UOKDYVD5-BtkD8cfr.js",revision:null},{url:"assets/worker/search-dynamic-solve-kilominx-RAZM75GA-CspQUh7h.js",revision:null},{url:"assets/worker/search-dynamic-solve-master_tetraminx-3D4MBF3V-ERSDM-8s.js",revision:null},{url:"assets/worker/search-dynamic-solve-sq1-YESVPPLF-3E-Bmagu.js",revision:null},{url:"assets/worker/search-worker-entry-DcOSGEhO.js",revision:null},{url:"assets/worker/twsearch_wasm_bg-V4F3SIUO-QGKWKUFY-iE1VAZwZ.js",revision:null},{url:"assets/worker/twsearch-MRZGOB6T-CwgnijHO.js",revision:null},{url:"favicon-16x16.png",revision:"8b7823854aa1482006cd6f00249e7cb3"},{url:"favicon-32x32.png",revision:"ea765888fc25d763db5a8d9166d5e829"},{url:"icons/cubedex_screenshot_narrow.png",revision:"954ed691aee441143ca62f259bc7d50d"},{url:"icons/cubedex_screenshot_wide.png",revision:"a98d425dc2adfdfa483469199a0c82f3"},{url:"icons/icon-1024x1024.png",revision:"55af0d8811e233740d5199205aa38d8d"},{url:"icons/icon-192x192.png",revision:"51896a13572959eceae08a3e3b4ae555"},{url:"icons/icon-512x512.png",revision:"934ed52e28426f50d7a88654bb045a4d"},{url:"index.html",revision:"e3a2bc9ef928f50aaa121b5d77b6b278"},{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"icons/icon-192x192.png",revision:"51896a13572959eceae08a3e3b4ae555"},{url:"icons/icon-512x512.png",revision:"934ed52e28426f50d7a88654bb045a4d"},{url:"manifest.json",revision:"4a1549d8d4dc1a0f10f015c15d10e1e7"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html"))),s.registerRoute(/^https:\/\/cubedex\.app\/.*\.(png|jpg|svg)$/,new s.CacheFirst({cacheName:"images-cache",plugins:[new s.ExpirationPlugin({maxEntries:10,maxAgeSeconds:2592e3})]}),"GET")})); diff --git a/index.html b/index.html index 27ac7fb..01845c6 100644 --- a/index.html +++ b/index.html @@ -84,6 +84,7 @@ @@ -263,7 +267,11 @@ export function loadAlgorithms(category?: string) { } export function algToId(alg: string): string { - return alg.replace(/\s+/g, '-').replace(/[']/g, 'p').replace(/[(]/g, 'o').replace(/[)]/g, 'c').toLowerCase(); + let id = alg.trim().replace(/\s+/g, '-').replace(/[']/g, 'p').replace(/[(]/g, 'o').replace(/[)]/g, 'c'); + if (id.length == 0) { + id = "default-alg-id"; + } + return id; } function arraysEqual(arr1: number[], arr2: number[]): boolean { diff --git a/src/index.ts b/src/index.ts index e667f84..c2348e7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -107,6 +107,7 @@ async function handleGyroEvent(event: GanCubeEvent) { // Define the type of userAlg explicitly as an array of strings var userAlg: string[] = []; +var OriginalUserAlg: string[] = []; var badAlg: string[] = []; var patternStates: KPattern[] = []; var algPatternStates: KPattern[] = []; @@ -147,7 +148,6 @@ $('#input-alg').on('click', () => { } checkedAlgorithms = []; checkedAlgorithmsCopy = []; - lastFiveTimes = []; updateTimesDisplay(); $('#alg-display-container').hide(); $('#times-display').html(''); @@ -168,12 +168,11 @@ $('#train-alg').on('click', () => { $('#alg-input').hide(); hideMistakes(); requestWakeLock(); + hasFailedAlg = false; patternStates = []; algPatternStates = []; fetchNextPatterns(); - setTimerState("STOPPED"); setTimerState("READY"); - lastFiveTimes = []; updateTimesDisplay(); } else { $('#alg-input').show(); @@ -208,6 +207,7 @@ function fetchNextPatterns() { } function drawAlgInCube() { + OriginalUserAlg = [...userAlg]; if (randomizeAUF) { let AUF = ["U", "U'", "U2", ""]; let randomAUF = AUF[Math.floor(Math.random() * AUF.length)]; @@ -244,6 +244,7 @@ function drawAlgInCube() { var showMistakesTimeout: number; let hasShownFlashingIndicator = false; +let hasFailedAlg = false; function showMistakesWithDelay(fixHtml: string) { if (fixHtml.length > 0) { @@ -260,17 +261,25 @@ function showMistakesWithDelay(fixHtml: string) { flashingIndicator.classList.add('hidden'); }, 300); // Hide after 0.3 seconds hasShownFlashingIndicator = true; // Set the flag to true - // if the user fails the current alg, make the case appear more often - if (checkedAlgorithms.length > 0) { - if (prioritizeFailedAlgs && !checkedAlgorithmsCopy.includes(checkedAlgorithms[0])) { - checkedAlgorithmsCopy.push(checkedAlgorithms[0]); - } - // mark the failed alg in red - if (checkedAlgorithms[0].algorithm) { - let algId = algToId(checkedAlgorithms[0].algorithm); + } + // if the user fails the current alg, make the case appear more often + if (checkedAlgorithms.length > 0) { + if (prioritizeFailedAlgs && !checkedAlgorithmsCopy.includes(checkedAlgorithms[0])) { + checkedAlgorithmsCopy.push(checkedAlgorithms[0]); + //console.log("+++ Pushing failed alg " + checkedAlgorithms[0].name + " to checkedAlgorithmsCopy: " + JSON.stringify(checkedAlgorithmsCopy)); + } + // mark the failed alg in red + if (checkedAlgorithms[0].algorithm) { + let algId = algToId(checkedAlgorithms[0].algorithm); + if (algId && !hasFailedAlg) { // defined in loadAlgorithms() $('#' + algId).removeClass('bg-gray-50 bg-gray-400 dark:bg-gray-600 dark:bg-gray-800'); - $('#' + algId).addClass('bg-red-500 dark:bg-red-500'); + $('#' + algId).addClass('bg-red-400 dark:bg-red-400'); + // Increase the data-failed count + let failedCount = parseInt($('#' + algId).data('failed')) || 0; + //console.log("+++ failedCount for " + algId + " is " + failedCount + " at currentMoveIndex: " + currentMoveIndex); + $('#' + algId).data('failed', failedCount + 1); + hasFailedAlg = true; } } } @@ -289,7 +298,6 @@ function hideMistakes() { } function updateAlgDisplay() { - let displayHtml = ''; let color = ''; let previousColor = ''; @@ -389,7 +397,7 @@ function updateAlgDisplay() { hideMistakes(); } - // stay green in last move when alg is finished + // set the index to 0 when the alg is finished, displays the circle on the first move if (currentMoveIndex === userAlg.length - 1) currentMoveIndex = 0; } @@ -448,51 +456,65 @@ async function handleMoveEvent(event: GanCubeEvent) { flashingIndicator.classList.remove('hidden'); setTimeout(() => { flashingIndicator.classList.add('hidden'); - // Switch to next algorithm - if (checkedAlgorithms.length + checkedAlgorithmsCopy.length > 1) { - const currentAlg = checkedAlgorithms.shift(); // Remove the first algorithm - if (checkedAlgorithms.length === 0) { - checkedAlgorithms = [...checkedAlgorithmsCopy]; // Copy remaining algorithms - checkedAlgorithmsCopy = []; - } - // Randomize checkedAlgorithms if random is enabled - if (randomAlgorithms) { - checkedAlgorithms.sort(() => Math.random() - 0.5); - } - if (currentAlg) { - checkedAlgorithmsCopy.push(currentAlg); // Add current algorithm to the copy - } - - // this is the initial state for the new algorithm - initialstate = pattern; - keepInitialState = true; - $('#alg-input').val(checkedAlgorithms[0].algorithm); - $('#train-alg').trigger('click'); - } }, 200); // Hide after 0.2 seconds } + + // Switch to next algorithm + if (checkedAlgorithms.length + checkedAlgorithmsCopy.length > 1) { + const currentAlg = checkedAlgorithms.shift(); // Remove the first algorithm + if (checkedAlgorithms.length === 0) { + checkedAlgorithms = [...checkedAlgorithmsCopy]; // Copy remaining algorithms + checkedAlgorithmsCopy = []; + } + // Randomize checkedAlgorithms if random is enabled + if (randomAlgorithms) { + checkedAlgorithms.sort(() => Math.random() - 0.5); + } + if (currentAlg) { + checkedAlgorithmsCopy.push(currentAlg); // Add current algorithm to the copy + } + + // this is the initial state for the new algorithm + initialstate = pattern; + keepInitialState = true; + $('#alg-input').val(checkedAlgorithms[0].algorithm); + $('#train-alg').trigger('click'); + } } return; } }); if (!found) { badAlg.push(event.move); - console.log("Pushing 1 incorrect move. badAlg: " + badAlg) + //console.log("Pushing 1 incorrect move. badAlg: " + badAlg) if (currentMoveIndex === 0 && badAlg.length === 1 && lastMoves[lastMoves.length - 1].move === getInverseMove(userAlg[currentMoveIndex].replace(/[()]/g, ""))) { currentMoveIndex--; badAlg.pop(); - console.log("Cancelling first correct move"); + //console.log("Cancelling first correct move"); } else if (lastMoves[lastMoves.length - 1].move === getInverseMove(badAlg[badAlg.length -2])) { badAlg.pop(); badAlg.pop(); - console.log("Popping last incorrect move. badAlg=" + badAlg); + //console.log("Popping last incorrect move. badAlg=" + badAlg); } else if (badAlg.length > 3 && lastMoves.length > 3 && lastMoves[lastMoves.length - 1].move === lastMoves[lastMoves.length - 2].move && lastMoves[lastMoves.length - 2].move === lastMoves[lastMoves.length - 3].move && lastMoves[lastMoves.length - 3].move === lastMoves[lastMoves.length - 4].move ) { badAlg.pop(); badAlg.pop(); badAlg.pop(); badAlg.pop(); - console.log("Popping a turn (4 incorrect moves)"); + //console.log("Popping a turn (4 incorrect moves)"); + } + + // workaround to cycle to next alg, but before reaching here the failed count is already updated :/ + if (currentMoveIndex >= userAlg.length - 2 && badAlg.length > 0) { + //console.log("NOT FOUND @ currentMoveIndex: " + currentMoveIndex + " userAlg.length: " + userAlg.length + " badAlg: " + badAlg); + //console.log("myKpattern: " + JSON.stringify(myKpattern)); + //console.log("initialstate.applyAlg(userAlg)): " + JSON.stringify(initialstate.applyAlg(Alg.fromString(userAlg.join(' '))) )); + if (myKpattern.isIdentical(initialstate.applyAlg(Alg.fromString(userAlg.join(' '))))) { + console.log(" +++ ============================ +++ Resetting alg because we reached the final state! - badAlg: " + badAlg); + setTimerState("STOPPED"); + resetAlg(); + fetchNextPatterns(); + } } } updateAlgDisplay(); @@ -508,8 +530,10 @@ async function handleFaceletsEvent(event: GanCubeEvent) { var solution = await experimentalSolve3x3x3IgnoringCenters(kpattern); var scramble = solution.invert(); twistyTracker.alg = scramble; + twistyPlayer.alg = scramble; } else { twistyTracker.alg = ''; + twistyPlayer.alg = ''; } cubeStateInitialized = true; console.log("Initial cube state is applied successfully", event.facelets); @@ -541,11 +565,12 @@ function handleCubeEvent(event: GanCubeEvent) { } const customMacAddressProvider: MacAddressProvider = async (device, isFallbackCall): Promise => { + const lastConnectedMAC = localStorage.getItem('lastConnectedDeviceMAC') || ''; if (isFallbackCall) { - return prompt('Unable do determine cube MAC address!\nPlease enter MAC address manually:'); + return prompt(`Unable to determine cube MAC address!\nPlease enter MAC address manually:`, lastConnectedMAC); } else { return typeof device.watchAdvertisements == 'function' ? null : - prompt('Seems like your browser does not support Web Bluetooth watchAdvertisements() API. Enable following flag in Chrome:\n\nchrome://flags/#enable-experimental-web-platform-features\n\nor enter cube MAC address manually:'); + prompt(`Seems like your browser does not support Web Bluetooth watchAdvertisements() API. Enable following flag in Chrome:\n\nchrome://flags/#enable-experimental-web-platform-features\n\nor enter cube MAC address manually:`, lastConnectedMAC); } }; @@ -604,6 +629,8 @@ $('#connect').on('click', async () => { await conn.sendCubeCommand({ type: "REQUEST_HARDWARE" }); await conn.sendCubeCommand({ type: "REQUEST_FACELETS" }); await conn.sendCubeCommand({ type: "REQUEST_BATTERY" }); + // save conn.deviceMAC in localStorage + localStorage.setItem('lastConnectedDeviceMAC', conn.deviceMAC); $('#deviceName').val(conn.deviceName); $('#deviceMAC').val(conn.deviceMAC); $('#connect').html('Disconnect'); @@ -620,43 +647,48 @@ $('#connect').on('click', async () => { var timerState: "IDLE" | "READY" | "RUNNING" | "STOPPED" = "IDLE"; -var lastFiveTimes: number[] = []; -let practiceCount = 0; - function updateTimesDisplay() { const timesDisplay = $('#times-display'); + const algId = algToId(OriginalUserAlg.join(' ')); + const lastFiveTimes: number[] = $('#' + algId).data('lastFiveTimes') || []; if (lastFiveTimes.length === 0) { timesDisplay.html(showAlgNameEnabled ? `${currentAlgName}` : ''); - practiceCount = 0; return; } - const timesHtml = lastFiveTimes.map((time, index) => { + const practiceCount: number = $('#' + algId).data('count') || 0; + const timesHtml = lastFiveTimes.map((time: number, index: number) => { const t = makeTimeFromTimestamp(time); let number = practiceCount < 5 ? index + 1 : practiceCount - 5 + index + 1; return `
Time ${number}: ${t.minutes}:${t.seconds.toString(10).padStart(2, '0')}.${t.milliseconds.toString(10).padStart(3, '0')}
`; }).join(''); - const averageTime = lastFiveTimes.reduce((a, b) => a + b, 0) / lastFiveTimes.length; + const averageTime = lastFiveTimes.reduce((a: number, b: number) => a + b, 0) / lastFiveTimes.length; const avg = makeTimeFromTimestamp(averageTime); - const averageHtml = `
Average: ${avg.minutes}:${avg.seconds.toString(10).padStart(2, '0')}.${avg.milliseconds.toString(10).padStart(3, '0')}
`; + const averageHtml = `
Average: ${avg.minutes}:${avg.seconds.toString(10).padStart(2, '0')}.${avg.milliseconds.toString(10).padStart(3, '0')}
`; - if (showAlgNameEnabled) { - timesDisplay.html(`${currentAlgName}
${timesHtml}${averageHtml}`); - } else { - timesDisplay.html(`${timesHtml}${averageHtml}`); - } + const displayHtml = showAlgNameEnabled ? `

${currentAlgName}

${timesHtml}${averageHtml}` : `${timesHtml}${averageHtml}`; + timesDisplay.html(displayHtml); } function setTimerState(state: typeof timerState) { timerState = state; + const algId = algToId(OriginalUserAlg.join(' ')); + // check if the algId exists in the DOM, create it if it doesn't + if ($('#' + algId).length === 0) { + $('#default-alg-id').append(``); + } + let lastFiveTimes = $('#' + algId).data('lastFiveTimes') || []; + let practiceCount = $('#' + algId).data('count') || 0; + switch (state) { case "IDLE": stopLocalTimer(); $('#timer').hide(); break; case 'READY': + stopLocalTimer(); setTimerValue(0); $('#timer').show(); $('#timer').css('color', '#080'); @@ -682,7 +714,18 @@ function setTimerState(state: typeof timerState) { lastFiveTimes.shift(); // Keep only the last 5 times } practiceCount++; // Increment the practice count - updateTimesDisplay(); + $('#' + algId).data('lastFiveTimes', lastFiveTimes); + $('#' + algId).data('count', practiceCount); + //console.log("[setTimerState] Setting lastFiveTimes to " + lastFiveTimes + " for algId " + algId); + //console.log("[setTimerState] Setting practiceCount to " + practiceCount + " for algId " + algId); + + const failedCount: number = $('#' + algId).data('failed') || 0; + let successCount: number = practiceCount - failedCount; + $('#' + algId + '-success').html(`✅: ${successCount}`); + if (failedCount > 0) $('#' + algId + '-failed').html(`❌: ${failedCount}`); + + // for single alg (no category, entered manually using input alg) + if (checkedAlgorithms.length === 0) updateTimesDisplay(); } break; } @@ -866,10 +909,19 @@ $('#category-select').on('change', () => { checkedAlgorithmsCopy = []; $('#select-all-toggle').prop('checked', false); $('#random-order-toggle').prop('checked', false); + randomAlgorithms = false; $('#random-auf-toggle').prop('checked', false); + randomizeAUF = false; $('#prioritize-failed-toggle').prop('checked', false); + prioritizeFailedAlgs = false; // reset cube alg twistyPlayer.alg = ''; + // selecting a new category should reset the current practice drill + $('#times-display').html(''); + $('#alg-display-container').hide(); + $('#alg-display').html(''); + $('#alg-input').val(''); + $('#alg-input').show(); }); // Event listener for Export button @@ -1006,9 +1058,6 @@ showAlgNameToggle.addEventListener('change', () => { updateTimesDisplay(); // Update display immediately when toggled }); - -// Call updateTimesDisplay initially to set the correct state -updateTimesDisplay(); // Add event listeners for the selectors to update twistyPlayer settings var forceFix: boolean = false; $('#visualization-select').on('change', () => { diff --git a/src/style.css b/src/style.css index 90d3c31..36744c5 100644 --- a/src/style.css +++ b/src/style.css @@ -644,6 +644,14 @@ video { grid-column: span 1 / span 1; } +.col-start-1 { + grid-column-start: 1; +} + +.col-start-2 { + grid-column-start: 2; +} + .-mx-20 { margin-left: -5rem; margin-right: -5rem; @@ -790,6 +798,10 @@ video { grid-template-columns: repeat(1, minmax(0, 1fr)); } +.grid-cols-2 { + grid-template-columns: repeat(2, minmax(0, 1fr)); +} + .grid-cols-\[auto_1fr\] { grid-template-columns: auto 1fr; } @@ -818,6 +830,10 @@ video { justify-content: center; } +.gap-1 { + gap: 0.25rem; +} + .gap-2 { gap: 0.5rem; } @@ -888,9 +904,9 @@ video { background-color: rgb(249 115 22 / var(--tw-bg-opacity)); } -.bg-red-500 { +.bg-red-400 { --tw-bg-opacity: 1; - background-color: rgb(239 68 68 / var(--tw-bg-opacity)); + background-color: rgb(248 113 113 / var(--tw-bg-opacity)); } .bg-white { @@ -1132,7 +1148,7 @@ body { } .circle { - background-color: green; + background-color: orange; align-items: center; justify-content: center; border-radius: 25%; @@ -1242,9 +1258,9 @@ input:checked + div + .dot { background-color: rgb(17 24 39 / var(--tw-bg-opacity)); } -.dark\:bg-red-500:is(.dark *) { +.dark\:bg-red-400:is(.dark *) { --tw-bg-opacity: 1; - background-color: rgb(239 68 68 / var(--tw-bg-opacity)); + background-color: rgb(248 113 113 / var(--tw-bg-opacity)); } .dark\:text-gray-400:is(.dark *) { diff --git a/src/tailwind.css b/src/tailwind.css index 6c0e69a..7b44557 100644 --- a/src/tailwind.css +++ b/src/tailwind.css @@ -19,7 +19,7 @@ body { } .circle { - background-color: green; + background-color: orange; align-items: center; justify-content: center; border-radius: 25%;