// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3.0 (()=>{var Ja=Object.defineProperty,Qa=Object.defineProperties;var Za=Object.getOwnPropertyDescriptors;var Sn=Object.getOwnPropertySymbols;var Fr=Object.prototype.hasOwnProperty,qr=Object.prototype.propertyIsEnumerable;var Hr=(n,r,a)=>r in n?Ja(n,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[r]=a,et=(n,r)=>{for(var a in r||(r={}))Fr.call(r,a)&&Hr(n,a,r[a]);if(Sn)for(var a of Sn(r))qr.call(r,a)&&Hr(n,a,r[a]);return n},$t=(n,r)=>Qa(n,Za(r));var Wr=(n,r)=>{var a={};for(var h in n)Fr.call(n,h)&&r.indexOf(h)<0&&(a[h]=n[h]);if(n!=null&&Sn)for(var h of Sn(n))r.indexOf(h)<0&&qr.call(n,h)&&(a[h]=n[h]);return a};var go=(n,r,a)=>new Promise((h,f)=>{var y=A=>{try{O(a.next(A))}catch(P){f(P)}},_=A=>{try{O(a.throw(A))}catch(P){f(P)}},O=A=>A.done?h(A.value):Promise.resolve(A.value).then(y,_);O((a=a.apply(n,r)).next())});function Cn(n){for(var r=1;r"u")){_=Cn({},r,_),typeof _.expires=="number"&&(_.expires=new Date(Date.now()+_.expires*864e5)),_.expires&&(_.expires=_.expires.toUTCString()),f=encodeURIComponent(f).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var O="";for(var A in _)_[A]&&(O+="; "+A,_[A]!==!0&&(O+="="+_[A].split(";")[0]));return document.cookie=f+"="+n.write(y,f)+O}}function h(f){if(!(typeof document>"u"||arguments.length&&!f)){for(var y=document.cookie?document.cookie.split("; "):[],_={},O=0;O-1?"":"webkit");function dt(n,r){Object.keys(r).forEach(a=>{let h=a;yo&&a.search("animation")>-1&&(h=yo+a[0].toUpperCase()+a.substr(1)),n.style[h]=r[a]})}function Xr(n){dt(n,{display:"block"})}function Gr(n){dt(n,{display:"none"})}function ts(){let n=document.body,r=document.documentElement,a;return window.innerHeight?a=window.innerHeight:r&&r.clientHeight?a=r.clientHeight:n&&(a=n.clientHeight),a||0}function ns(){let n=document.body,r=document.documentElement,a;return window.innerWidth?a=window.innerWidth:r&&r.clientWidth?a=r.clientWidth:n&&(a=n.clientWidth),a||0}function os(n,r){return r||(r=document.createElement("style"),document.body.appendChild(r)),r.textContent=n,r}function kn(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function rs(n){return n===document.body}function Ce(n,r){n.classList.add(r)}function Vr(n,r){n.classList.remove(r)}var is=typeof document<"u"&&"onanimationend"in document;function Ur(n,r){return n+Math.floor(Math.random()*(r-n))}function bo(n,r,a,h,f){return h+(f-h)*(n-r)/(a-r)}var wo=20;function Yr(n,r,a){return Math.floor(bo(n,0,wo,r,a))}var as=class{constructor(n){this.size=0,this.sizeInner=0;let r=this.elem=document.createElement("div"),a=this.elemInner=document.createElement("div");this.update(n),Ce(r,"snowflake"),Ce(a,"snowflake__inner"),Ce(r,"snowflake_animation"),is?(Ce(r,"snowflake_animation-end"),r.onanimationend=h=>{h.target===r&&(this.updateLeft(),this.reflow())}):Ce(r,"snowflake_animation-infinity"),n.types&&Ce(a,"snowflake__inner_type_"+Ur(0,n.types)),n.wind&&Ce(a,"snowflake__inner_wind"),n.rotation&&Ce(a,"snowflake__inner_rotation"+(Math.random()>.5?"":"_reverse")),r.appendChild(a)}getLeft(){return Math.random()*99+"%"}updateLeft(){this.elem&&dt(this.elem,{left:this.getLeft()})}update(n){if(!this.elem||!this.elemInner)return;let r=n.minSize===n.maxSize;this.sizeInner=r?0:Ur(0,wo),this.size=Yr(this.sizeInner,n.minSize,n.maxSize);let a=this.getAnimationProps(n),h={animationName:`snowflake_gid_${n.gid}_y`,animationDelay:a.animationDelay,animationDuration:a.animationDuration,left:this.getLeft(),top:-Math.sqrt(2)*this.size+"px",width:this.size+"px",height:this.size+"px"};r||(h.opacity=String(bo(this.size,n.minSize,n.maxSize,n.minOpacity,n.maxOpacity))),dt(this.elem,h);let f=`snowflake_gid_${n.gid}_x_${this.sizeInner}`;dt(this.elemInner,{animationName:f,animationDelay:Math.random()*4+"s"})}reflow(){this.elem&&(Gr(this.elem),this.elem.offsetHeight,Xr(this.elem))}resize(n){if(!this.elem)return;let r=this.getAnimationProps(n);dt(this.elem,{animationDuration:r.animationDuration})}appendTo(n){this.elem&&n.appendChild(this.elem)}destroy(){this.elem&&(this.elem.onanimationend=null,delete this.elem,delete this.elemInner)}getAnimationProps(n){let r=n.containerHeight/50/n.speed,a=r/3;return{animationDelay:Math.random()*r+"s",animationDuration:bo(this.size,n.minSize,n.maxSize,r,a)+"s"}}},ss='.snowflake{pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;will-change:transform}.snowflake_animation{-webkit-animation:snowflake_unknown 10s linear;animation:snowflake_unknown 10s linear}.snowflake_animation-infinity{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.snowflake__inner,.snowflake__inner:before{bottom:0;left:0;position:absolute;right:0;top:0}.snowflake__inner:before{background-size:100% 100%;content:""}.snowflake__inner_wind{-webkit-animation:snowflake_unknown 2s ease-in-out infinite alternate;animation:snowflake_unknown 2s ease-in-out infinite alternate}.snowflake__inner_rotation:before{-webkit-animation:snowflake_rotation 10s linear infinite;animation:snowflake_rotation 10s linear infinite}.snowflake__inner_rotation_reverse:before{-webkit-animation:snowflake_rotation_reverse 10s linear infinite;animation:snowflake_rotation_reverse 10s linear infinite}@-webkit-keyframes snowflake_rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes snowflake_rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes snowflake_rotation_reverse{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(-1turn);transform:rotate(-1turn)}}@keyframes snowflake_rotation_reverse{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(-1turn);transform:rotate(-1turn)}}.snowflakes{pointer-events:none}.snowflakes_paused .snowflake,.snowflakes_paused .snowflake__inner,.snowflakes_paused .snowflake__inner:before{-webkit-animation-play-state:paused;animation-play-state:paused}.snowflakes_hidden{visibility:hidden}.snowflakes_body{height:1px;left:0;position:fixed;top:0;width:100%}',ls=`.snowflakes_gid_value .snowflake__inner_type_0:before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36.283' height='36.283'%3E%3Cpath d='M35.531 17.391h-3.09l.845-1.464a.748.748 0 1 0-1.297-.75l-1.276 2.214H28.61l2.515-4.354a.751.751 0 0 0-.272-1.024.75.75 0 0 0-1.024.274l-2.948 5.104h-2.023a6.751 6.751 0 0 0-2.713-4.684l1.019-1.76 5.896-.002a.75.75 0 0 0 0-1.5l-5.029.002 1.051-1.82 2.557.002a.75.75 0 0 0 0-1.5l-1.689-.002 1.545-2.676a.75.75 0 1 0-1.302-.75l-1.547 2.676-.844-1.463a.749.749 0 1 0-1.297.75l1.278 2.213-1.051 1.818-2.514-4.354a.75.75 0 0 0-1.298.75l2.946 5.104-1.016 1.758a6.692 6.692 0 0 0-2.706-.57 6.74 6.74 0 0 0-2.707.568l-1.013-1.754 2.946-5.105a.75.75 0 0 0-1.298-.75L13.56 8.697l-1.05-1.818 1.278-2.217a.749.749 0 0 0-1.298-.75l-.845 1.465-1.551-2.678a.75.75 0 0 0-1.024-.273.748.748 0 0 0-.274 1.023l1.545 2.678H8.652a.75.75 0 0 0 0 1.5h2.556l1.05 1.818H7.231a.75.75 0 0 0 0 1.5h5.894l1.017 1.762a6.755 6.755 0 0 0-2.712 4.684H9.406l-2.95-5.104a.75.75 0 1 0-1.299.75l2.516 4.354H5.569l-1.277-2.213a.75.75 0 0 0-1.298.75l.845 1.463H.75a.75.75 0 0 0 0 1.5h3.09l-.845 1.465a.747.747 0 0 0 .275 1.022.75.75 0 0 0 .374.103.75.75 0 0 0 .65-.375l1.277-2.215h2.103l-2.516 4.354a.75.75 0 0 0 1.299.75l2.949-5.104h2.024a6.761 6.761 0 0 0 2.712 4.685l-1.017 1.762H7.232a.75.75 0 0 0 0 1.5h5.026l-1.05 1.818H8.651a.75.75 0 0 0 0 1.5h1.69l-1.545 2.676a.75.75 0 0 0 1.299.75l1.546-2.676.846 1.465a.755.755 0 0 0 .65.375.737.737 0 0 0 .375-.103.747.747 0 0 0 .274-1.022l-1.279-2.215 1.05-1.82 2.515 4.354a.75.75 0 0 0 1.299-.75l-2.947-5.104 1.013-1.756a6.72 6.72 0 0 0 5.415 0l1.014 1.756-2.947 5.104a.75.75 0 0 0 1.298.75l2.515-4.354 1.053 1.82-1.277 2.213a.75.75 0 0 0 1.298.75l.844-1.463 1.545 2.678c.141.24.393.375.65.375a.75.75 0 0 0 .649-1.125l-1.548-2.678h1.689a.75.75 0 0 0 0-1.5h-2.557l-1.051-1.82 5.029.002a.75.75 0 0 0 0-1.5l-5.896-.002-1.019-1.76a6.75 6.75 0 0 0 2.711-4.685h2.023l2.947 5.104a.753.753 0 0 0 1.025.273.749.749 0 0 0 .272-1.023l-2.515-4.354h2.104l1.279 2.215a.75.75 0 0 0 .649.375c.127 0 .256-.03.375-.103a.748.748 0 0 0 .273-1.022l-.848-1.465h3.092a.75.75 0 0 0 .003-1.5zm-12.136.75c0 .257-.041.502-.076.75a5.223 5.223 0 0 1-1.943 3.358 5.242 5.242 0 0 1-1.291.766 5.224 5.224 0 0 1-1.949.384 5.157 5.157 0 0 1-3.239-1.15 5.22 5.22 0 0 1-1.943-3.358c-.036-.247-.076-.493-.076-.75s.04-.503.076-.75a5.22 5.22 0 0 1 1.944-3.359c.393-.312.82-.576 1.291-.765a5.219 5.219 0 0 1 1.948-.384c.69 0 1.344.142 1.948.384.471.188.898.454 1.291.765a5.222 5.222 0 0 1 1.943 3.359c.035.247.076.493.076.75z' fill=':color:'/%3E%3C/svg%3E")}.snowflakes_gid_value .snowflake__inner_type_1:before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32.813' height='32.813'%3E%3Cpath d='M29.106 24.424a.781.781 0 0 1-.781.781h-3.119v3.119a.782.782 0 0 1-1.562 0v-4.682h4.682c.43.001.78.351.78.782zM4.673 9.352h4.682V4.671a.781.781 0 0 0-1.563 0V7.79H4.673a.781.781 0 0 0 0 1.562zM3.708 24.24c0 .431.35.781.781.781H7.61v3.12a.78.78 0 1 0 1.562 0v-4.683H4.489a.782.782 0 0 0-.781.782zM28.923 8.39a.78.78 0 0 0-.781-.781h-3.121V4.488a.781.781 0 0 0-1.562 0v4.684h4.684a.783.783 0 0 0 .78-.782zm3.889 8.017c0 .431-.35.781-.781.781h-3.426l1.876 1.873a.784.784 0 0 1 0 1.107.791.791 0 0 1-.554.228.773.773 0 0 1-.55-.228l-2.979-2.98h-2.995a6.995 6.995 0 0 1-1.728 3.875h5.609a.781.781 0 0 1 0 1.562h-4.666v4.667a.782.782 0 0 1-1.562 0v-5.61a7 7 0 0 1-3.866 1.719v2.995l2.978 2.98c.306.305.306.8 0 1.104a.78.78 0 0 1-1.104 0l-1.874-1.876v3.427a.781.781 0 0 1-1.562 0v-3.427l-1.875 1.876a.78.78 0 1 1-1.105-1.104l2.979-2.98v-2.995a7.016 7.016 0 0 1-3.865-1.717v5.608a.781.781 0 0 1-1.562 0v-4.667H5.535a.781.781 0 0 1 0-1.562h5.607a7.022 7.022 0 0 1-1.728-3.875H6.417l-2.979 2.979a.784.784 0 0 1-1.104 0 .781.781 0 0 1 0-1.106l1.874-1.873H.782a.78.78 0 1 1-.001-1.563h3.426L2.333 13.75a.783.783 0 0 1 1.105-1.106l2.979 2.979h2.995a6.996 6.996 0 0 1 1.72-3.866H5.533a.781.781 0 0 1 0-1.562h4.666V5.528a.781.781 0 0 1 1.562 0v5.599a6.995 6.995 0 0 1 3.865-1.717V6.415l-2.978-2.979a.782.782 0 0 1 1.105-1.105l1.874 1.875V.781a.78.78 0 1 1 1.562 0v3.426l1.875-1.875a.777.777 0 0 1 1.104 0 .78.78 0 0 1 0 1.105l-2.978 2.98v2.996a7.021 7.021 0 0 1 3.866 1.718V5.532a.78.78 0 1 1 1.562 0v4.666h4.666a.78.78 0 1 1 0 1.562h-5.599a7 7 0 0 1 1.718 3.866h2.995l2.979-2.979a.783.783 0 0 1 1.106 1.106l-1.876 1.874h3.427a.777.777 0 0 1 .778.78zm-11.006-.782a5.457 5.457 0 0 0-4.618-4.617c-.257-.037-.514-.079-.781-.079-.268 0-.524.042-.781.079a5.458 5.458 0 0 0-4.618 4.617c-.038.257-.079.514-.079.781s.041.522.079.781a5.455 5.455 0 0 0 4.618 4.616c.257.036.514.079.781.079s.524-.043.781-.079a5.457 5.457 0 0 0 4.618-4.616c.037-.259.079-.515.079-.781s-.043-.524-.079-.781z' fill=':color:'/%3E%3C/svg%3E")}.snowflakes_gid_value .snowflake__inner_type_2:before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='35.79' height='35.79'%3E%3Cpath d='M7.161 22.223l.026-.047.865.5-.026.047a.503.503 0 0 1-.434.25c-.019 0-.034-.013-.053-.016l-.355-.205a.493.493 0 0 1-.023-.529zM9.969 8.988l2.785.001 1.393-2.414a.502.502 0 0 0-.869-.499l-1.103 1.913-2.208-.001a.5.5 0 1 0 .002 1zm15.854 17.813h-2.785l-1.393 2.411a.499.499 0 0 0 .436.75c.172 0 .34-.09.434-.25l1.104-1.911h2.207c.274 0 .5-.224.5-.5a.505.505 0 0 0-.503-.5zM23.038 8.99h2.785a.5.5 0 0 0 0-1h-2.207l-1.105-1.913a.5.5 0 0 0-.868.5l1.395 2.413zM12.754 26.801H9.967a.5.5 0 0 0 0 1h2.209l1.105 1.912a.496.496 0 0 0 .682.184.5.5 0 0 0 .184-.684l-1.393-2.412zm-7.218-6.309a.502.502 0 0 0 .685-.184l1.391-2.413-1.394-2.413a.5.5 0 0 0-.867.5l1.104 1.913-1.104 1.913a.5.5 0 0 0 .185.684zM30.254 15.3a.505.505 0 0 0-.685.183l-1.392 2.412 1.395 2.414a.501.501 0 0 0 .867-.5l-1.104-1.914 1.104-1.912a.5.5 0 0 0-.185-.683zm3.138 11.542a.501.501 0 0 1-.683.184l-.98-.565-2.137 1.231a.516.516 0 0 1-.5 0l-2.385-1.377a.502.502 0 0 1-.25-.433v-.854h-4.441l-2.225 3.852.736.428c.154.088.25.254.25.432l.001 2.755a.5.5 0 0 1-.25.433l-2.133 1.229v1.136c0 .274-.225.5-.5.5s-.5-.226-.5-.5v-1.136l-2.136-1.23a.5.5 0 0 1-.25-.433l.001-2.755c0-.178.096-.344.25-.432l.738-.427-2.224-3.849H9.332l.002.851a.505.505 0 0 1-.25.435l-2.387 1.377a.5.5 0 0 1-.5 0L4.06 26.46l-.982.567a.5.5 0 0 1-.5-.867l.982-.567.001-2.465c0-.179.097-.344.25-.434l2.388-1.377a.497.497 0 0 1 .5 0l.736.426 2.221-3.848-2.222-3.849-.737.426a.51.51 0 0 1-.5 0l-2.386-1.377a.5.5 0 0 1-.25-.434l.002-2.464-.983-.567a.501.501 0 0 1-.184-.683.502.502 0 0 1 .684-.183l.983.568 2.134-1.233a.5.5 0 0 1 .5 0l2.385 1.379c.156.089.25.255.25.433v.85h4.443l2.223-3.846-.74-.427a.501.501 0 0 1-.25-.434l.002-2.755c0-.178.096-.343.25-.433l2.135-1.233V.5a.5.5 0 0 1 1 0v1.135l2.134 1.231c.154.089.25.254.25.434l-.002 2.755a.503.503 0 0 1-.25.433l-.733.425 2.224 3.849h4.44l-.002-.851c0-.179.096-.344.25-.434l2.388-1.378a.502.502 0 0 1 .5 0l2.136 1.233.982-.568a.5.5 0 1 1 .5.866l-.983.568v2.464a.503.503 0 0 1-.25.433l-2.388 1.378a.5.5 0 0 1-.5 0l-.735-.426-2.222 3.849 2.223 3.849.734-.425a.506.506 0 0 1 .5 0l2.389 1.375c.154.09.25.255.25.435l-.002 2.462.982.568c.24.137.321.444.182.682zm-2.165-1.828l.001-1.597-1.888-1.087-.734.424-.348.201-.301.173-.5.289v2.179l1.885 1.088 1.386-.802.498-.286.001-.582zm-3.736-11.467l-.531-.307-2.283 1.318-2.443 3.337 2.442 3.337 2.283 1.316.531-.306-2.514-4.348 2.515-4.347zm-7.712 16.478l-.762-.438-.339-.194-.283-.166-.5-.289-.5.289-.279.162-.349.2-.757.437-.001 2.177 1.386.797.501.289.499-.287 1.386-.798-.002-2.179zM16.008 5.767l.736.425.371.214.279.16.5.288.5-.289.281-.163.367-.212.732-.424.002-2.178-1.381-.797-.502-.289-.498.287-1.385.8-.002 2.178zm6.52 14.227l-1.535-2.099 1.535-2.098.732-1-1.232.134-2.585.281-1.048-2.379-.5-1.133-.5 1.134-1.049 2.379-2.585-.281-1.232-.134.732 1 1.536 2.097-1.536 2.098-.732 1 1.232-.134 2.585-.281 1.049 2.379.5 1.134.5-1.134 1.048-2.379 2.585.281 1.232.134-.732-.999zm8.2-10.084l-1.386-.8-1.887 1.089v1.279l.002.32v.577l.5.289.28.163.367.213.732.424 1.888-1.089v-2.178l-.496-.287zM18.927 7.413l-.532.307v2.637l1.667 3.784 4.111-.447 2.283-1.317-.002-.613h-5.02l-2.507-4.351zm-9.594 4.348v.614l2.283 1.318 4.111.447 1.668-3.785V7.719l-.531-.306-2.509 4.347-5.022.001zm-2.15 1.279l.37-.213.279-.162.5-.289V10.2L6.446 9.11l-1.384.8-.499.289v.578l-.002 1.599 1.885 1.088.737-.424zm1.119 9.205l.53.306 2.281-1.316 2.443-3.339-2.442-3.337-2.281-1.317-.531.307 2.511 4.348-2.511 4.348zm-1.115-.069l-.026.047a.493.493 0 0 0 .023.529l-.734-.424-1.887 1.089-.001 1.599v.578l.5.288 1.386.8 1.887-1.088v-1.278l-.002-.321v-.577l-.5-.289-.293-.169c.02.002.035.017.055.017a.5.5 0 0 0 .433-.25l.026-.047-.867-.504zm9.679 6.202l.529-.306v-2.637l-1.668-3.785-4.111.447-2.283 1.316.002.611 5.021.002 2.51 4.352zm9.591-4.349v-.612L24.174 22.1l-4.111-.447-1.667 3.783v2.639l.531.307 2.512-4.352h5.018v-.001z' fill=':color:'/%3E%3C/svg%3E")}.snowflakes_gid_value .snowflake__inner_type_3:before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32.815' height='32.815'%3E%3Cpath d='M4.581 23.55h4.681v4.681a.78.78 0 1 1-1.562 0v-3.118H4.581a.781.781 0 0 1 0-1.563zM29.016 8.481a.781.781 0 0 0-.781-.781h-3.119V4.582a.781.781 0 0 0-1.562 0v4.681h4.682c.429 0 .78-.35.78-.782zm-24.252.598l4.683-.001V4.395a.781.781 0 0 0-1.562 0v3.121l-3.121.001a.781.781 0 0 0 0 1.562zm23.655 14.287h-4.685l.002 4.684a.78.78 0 1 0 1.562 0l-.002-3.121h3.122a.781.781 0 0 0 .001-1.563zm4.394-6.96a.78.78 0 0 1-.781.781h-3.426l1.876 1.875a.782.782 0 0 1-1.104 1.105l-2.979-2.979h-1.986L17.19 24.41v1.987l2.977 2.979a.781.781 0 0 1-1.103 1.106l-1.874-1.875v3.426a.78.78 0 1 1-1.562 0v-3.426l-1.875 1.875a.782.782 0 0 1-1.105-1.105l2.978-2.979V24.41l-7.219-7.22H6.418l-2.98 2.98a.777.777 0 0 1-1.103 0 .781.781 0 0 1 0-1.106L4.21 17.19H.783a.78.78 0 1 1 0-1.562h3.426l-1.876-1.875a.782.782 0 1 1 1.106-1.105l2.979 2.979h1.989l7.219-7.218v-1.99L12.648 3.44a.782.782 0 1 1 1.106-1.105l1.874 1.874V.781a.782.782 0 0 1 1.563 0v3.426l1.875-1.875a.783.783 0 0 1 1.106 1.105l-2.979 2.979v1.99l7.216 7.218h1.992l2.979-2.979a.782.782 0 0 1 1.105 1.105l-1.876 1.874h3.427a.781.781 0 0 1 .777.782zm-10.613.782l.778-.78-.781-.782-5.009-5.008-.781-.781-.781.781-5.01 5.008-.781.781.781.781 5.01 5.011.782.781.78-.779 5.012-5.013zm5.863 4.646a.782.782 0 0 0-.781-.781h-6.229v6.228a.78.78 0 1 0 1.562 0v-4.665h4.666a.782.782 0 0 0 .782-.782zm-.001-10.855a.782.782 0 0 0-.781-.781h-4.664V5.532a.782.782 0 0 0-1.562 0v6.228h6.227a.78.78 0 0 0 .78-.781zm-23.318 0c0 .432.35.781.781.781h6.228V5.532a.781.781 0 0 0-1.562 0v4.666H5.525a.781.781 0 0 0-.781.781zm.002 10.855c0 .432.35.781.781.781h4.664v4.665a.78.78 0 1 0 1.562 0v-6.228H5.527a.783.783 0 0 0-.781.782z' fill=':color:'/%3E%3C/svg%3E")}.snowflakes_gid_value .snowflake__inner_type_4:before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='37.794' height='37.794'%3E%3Cpath d='M30.638 17.313l-.914 1.584.915 1.585a.78.78 0 1 1-1.352.78l-1.366-2.366 1.366-2.365a.782.782 0 0 1 1.067-.286c.372.215.5.692.284 1.068zM11.65 11.08l2.733.002 1.367-2.367a.78.78 0 0 0-1.352-.781l-.915 1.585-1.831-.002h-.001a.78.78 0 0 0-.001 1.563zm14.491 15.633h-2.733l-1.365 2.365a.78.78 0 1 0 1.352.78l.914-1.584h1.831a.781.781 0 0 0 .001-1.561zm-4.1-17.998l1.367 2.367h2.733a.78.78 0 1 0 0-1.562h-1.833l-.915-1.585a.78.78 0 0 0-1.352.78zM15.75 29.08l-1.368-2.366h-2.733a.781.781 0 0 0 0 1.562h1.832l.917 1.585c.146.25.409.391.677.391a.779.779 0 0 0 .675-1.172zm-8.313-7.531a.78.78 0 0 0 1.067-.284L9.87 18.9l-1.367-2.368a.781.781 0 0 0-1.351.781l.916 1.587-.914 1.584a.776.776 0 0 0 .283 1.065zm27.827 6.798a.784.784 0 0 1-1.067.285l-.89-.515-2.096 1.209a.793.793 0 0 1-.391.105.762.762 0 0 1-.391-.105l-2.484-1.435a.78.78 0 0 1-.391-.676l-.002-2.417-2.408-1.392a7.714 7.714 0 0 1-5.467 3.168v2.773l2.093 1.208a.78.78 0 0 1 .391.676l.001 2.868c0 .28-.149.537-.392.676l-2.093 1.205v1.032a.781.781 0 0 1-1.562 0V35.98l-2.095-1.207a.78.78 0 0 1-.391-.676l.001-2.868c0-.28.15-.537.391-.676l2.094-1.206v-2.773a7.718 7.718 0 0 1-5.468-3.168l-2.408 1.392.002 2.415c0 .281-.15.539-.391.676l-2.487 1.437a.785.785 0 0 1-.782 0l-2.095-1.209-.893.518a.782.782 0 0 1-.782-1.354l.893-.517.001-2.414a.78.78 0 0 1 .391-.677l2.487-1.434a.774.774 0 0 1 .781 0l2.093 1.208 2.407-1.39a7.655 7.655 0 0 1 0-6.317l-2.406-1.39-2.096 1.209a.772.772 0 0 1-.782 0l-2.485-1.434a.786.786 0 0 1-.391-.676l.002-2.416-.894-.517a.78.78 0 0 1-.285-1.066.788.788 0 0 1 1.07-.283l.893.514 2.093-1.208a.774.774 0 0 1 .781 0L9.851 9.91c.24.14.391.398.391.675L10.24 13l2.408 1.392a7.712 7.712 0 0 1 5.468-3.167V8.45L16.02 7.242a.78.78 0 0 1-.391-.676l.002-2.87c0-.279.15-.538.391-.675l2.094-1.208V.781a.781.781 0 0 1 1.562 0v1.032l2.093 1.206a.785.785 0 0 1 .391.677l-.002 2.87c0 .28-.149.536-.391.674l-2.091 1.208v2.772a7.708 7.708 0 0 1 5.467 3.167l2.409-1.392-.002-2.416c0-.28.149-.539.391-.676l2.487-1.436c.24-.14.539-.14.781 0l2.095 1.208.894-.514a.78.78 0 1 1 .781 1.352l-.894.516v2.417c0 .279-.15.538-.391.675l-2.487 1.436a.785.785 0 0 1-.782 0l-2.092-1.209-2.408 1.39c.436.967.684 2.032.684 3.158a7.65 7.65 0 0 1-.684 3.158l2.408 1.391 2.091-1.206a.782.782 0 0 1 .78 0l2.488 1.432c.24.141.392.398.392.677l-.002 2.414.893.517a.783.783 0 0 1 .287 1.068zm-6.147-16.251l.001.9.78.453.921.531 1.706-.982v-1.965l-.78-.451-.923-.533-1.707.983.002 1.064zm-20.443-.002l.002-1.063-1.706-.985-.922.535-.778.451-.001.902-.001 1.063 1.703.982.924-.533.779-.451v-.901zm0 13.604l-.001-.899-.781-.451-.919-.533-1.706.982-.001 1.064v.901l.781.451.923.533 1.707-.982-.003-1.066zm15.109-3.076c.315-.413.586-.864.789-1.351a6.121 6.121 0 0 0 0-4.748 6.175 6.175 0 0 0-.789-1.35 6.158 6.158 0 0 0-4.106-2.375 6.48 6.48 0 0 0-.781-.056c-.266 0-.525.022-.781.056a6.149 6.149 0 0 0-4.106 2.375 6.128 6.128 0 0 0-.789 1.35 6.104 6.104 0 0 0-.479 2.374 6.1 6.1 0 0 0 1.268 3.725 6.15 6.15 0 0 0 4.106 2.374c.256.031.516.056.781.056s.525-.022.781-.056a6.142 6.142 0 0 0 4.106-2.374zM17.19 6.113l.924.531.781.452.781-.452.919-.531.002-1.968-.921-.531-.784-.452-.779.451-.922.532-.001 1.968zm3.408 25.57l-.921-.532-.781-.452-.781.452-.922.532-.001 1.966.923.531.782.451.78-.449.922-.533-.001-1.966zm11.925-5.819l.001-1.063-1.707-.981-.919.529-.782.451v.901l.001 1.065 1.702.981.924-.533.778-.449.002-.901z' fill=':color:'/%3E%3C/svg%3E")}.snowflakes_gid_value .snowflake__inner_type_5:before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='31.25' height='31.25'%3E%3Cpath d='M20.581 1.176l-3.914 3.915V0h1.041v2.576L19.845.439l.736.737zm-1.615 9.069l.351.217 6.623-6.625-.736-.737-6.048 6.051a7.141 7.141 0 0 0-1.449-.6v-.082l5.082-5.082-.737-.737-5.387 5.388v1.33l.402.093a6.213 6.213 0 0 1 1.899.784zm2.041 2.043c.368.585.63 1.224.786 1.893l.094.403h1.028l5.171-5.173-.736-.737-4.699 4.701a7.523 7.523 0 0 0-.549-1.28l6.048-6.05-.737-.735-6.622 6.625.216.353zm7.368 1.254l1.921-1.923-.736-.735-3.699 3.7h5.39v-1.042h-2.876zm1.185 6.826l.736-.736-1.923-1.923h2.877v-1.042h-5.389l3.699 3.701zm-6.915-2.498l4.705 4.707.736-.736-5.171-5.174h-1.03l-.096.4a6.24 6.24 0 0 1-.795 1.883l-.22.353 6.639 6.641.736-.736-6.061-6.062c.227-.414.414-.84.557-1.276zm-3.7 3.125a6.241 6.241 0 0 1-1.88.794l-.399.096v1.33l5.387 5.387.736-.736-5.082-5.082v-.089a7.322 7.322 0 0 0 1.434-.605l6.061 6.062.736-.736-6.641-6.641-.352.22zM16.667 31.25h1.041v-2.576l2.137 2.137.736-.737-3.914-3.914v5.09zm-5.26-.439l2.134-2.137v2.576h1.042v-5.093l-3.913 3.916.737.738zm.897-9.816l-.352-.222-6.642 6.641.736.736 6.062-6.062c.456.254.937.456 1.433.605v.089l-5.08 5.082.736.736 5.387-5.387v-1.33l-.4-.096a6.175 6.175 0 0 1-1.88-.792zm-2.046-2.047a6.315 6.315 0 0 1-.798-1.883l-.096-.4H8.335l-5.172 5.174.737.736 4.706-4.71c.145.441.329.865.556 1.276L3.1 25.202l.736.736 6.643-6.643-.221-.347zM0 16.667v1.042h2.876L.954 19.632l.736.736 3.698-3.701H0zm1.69-5.783l-.736.735 1.921 1.923H0v1.042h5.39l-3.7-3.7zm6.916 2.498L3.9 8.674l-.736.737 5.172 5.173h1.029l.096-.4a6.15 6.15 0 0 1 .798-1.881l.222-.352L3.837 5.31l-.736.736 6.062 6.06a7.268 7.268 0 0 0-.557 1.276zm-.145-9.996l5.08 5.082v.088c-.497.15-.977.352-1.433.606L6.047 3.101l-.736.737 6.643 6.643.352-.222a6.223 6.223 0 0 1 1.88-.797l.4-.095v-1.33L9.2 2.649l-.739.737zm5.081-.81L11.408.439l-.736.737 3.913 3.917V0h-1.042v2.576zm-1.757 14.831a4.2 4.2 0 0 0 2.06 2.058l.739.338v-3.136h-3.138l.339.74zm0-3.562l-.337.738h3.135v-3.136l-.739.338a4.223 4.223 0 0 0-2.059 2.06zm7.679 3.561l.338-.739h-3.135v3.136l.738-.338a4.204 4.204 0 0 0 2.059-2.059zm0-3.561a4.198 4.198 0 0 0-2.059-2.06l-.738-.34v3.138h3.135l-.338-.738z' fill=':color:'/%3E%3C/svg%3E")}`,Kt=class tt{constructor(r){this.destroyed=!1,this.flakes=[],this.isBody=!1,this.handleResize=()=>{this.params.autoResize&&this.resize()},this.handleOrientationChange=()=>{this.resize()},this.params=this.setParams(r),this.isBody=rs(this.params.container),tt.gid++,this.gid=tt.gid,this.container=this.appendContainer(),this.params.stop&&this.stop(),this.appendStyles(),this.appendFlakes(),this.containerSize={width:this.width(),height:this.height()},window.addEventListener("resize",this.handleResize,!1),screen.orientation&&screen.orientation.addEventListener&&screen.orientation.addEventListener("change",this.handleOrientationChange)}start(){Vr(this.container,"snowflakes_paused")}stop(){Ce(this.container,"snowflakes_paused")}show(){Vr(this.container,"snowflakes_hidden")}hide(){Ce(this.container,"snowflakes_hidden")}resize(){let r=this.width(),a=this.height();if(a===this.containerSize.height)return;this.containerSize.width=r,this.containerSize.height=a;let h=this.getFlakeParams();this.flakes.forEach(f=>f.resize(h)),!this.isBody&&(Gr(this.container),this.updateAnimationStyle(),Xr(this.container))}destroy(){this.destroyed||(this.destroyed=!0,tt.instanceCounter&&tt.instanceCounter--,this.removeStyles(),kn(this.container),this.flakes.forEach(r=>r.destroy()),this.flakes=[],window.removeEventListener("resize",this.handleResize,!1),screen.orientation&&screen.orientation.removeEventListener&&screen.orientation.removeEventListener("change",this.handleOrientationChange,!1))}appendContainer(){let r=document.createElement("div");return Ce(r,"snowflakes"),Ce(r,`snowflakes_gid_${this.gid}`),this.isBody&&Ce(r,"snowflakes_body"),dt(r,{zIndex:String(this.params.zIndex)}),this.params.container.appendChild(r),r}appendStyles(){tt.instanceCounter||(this.mainStyleNode=this.injectStyle(ss)),tt.instanceCounter++,this.imagesStyleNode=this.injectStyle(ls.replace(/:color:/g,encodeURIComponent(this.params.color))),this.animationStyleNode=this.injectStyle(this.getAnimationStyle())}injectStyle(r,a){return os(r.replace(/_gid_value/g,`_gid_${this.gid}`),a)}getFlakeParams(){let r=this.height(),a=this.params;return{containerHeight:r,gid:this.gid,count:a.count,speed:a.speed,rotation:a.rotation,minOpacity:a.minOpacity,maxOpacity:a.maxOpacity,minSize:a.minSize,maxSize:a.maxSize,types:a.types,wind:a.wind}}appendFlakes(){let r=this.getFlakeParams();this.flakes=[];for(let a=0;aa.size-h.size).forEach(a=>{a.appendTo(this.container)})}setParams(r){let a=r||{},h={},f={color:"#5ECDEF",container:document.body,count:50,speed:1,stop:!1,rotation:!0,minOpacity:.6,maxOpacity:1,minSize:10,maxSize:25,types:6,width:void 0,height:void 0,wind:!0,zIndex:9999,autoResize:!0};return Object.keys(f).forEach(y=>{h[y]=typeof a[y]>"u"?f[y]:a[y]}),h}getAnimationStyle(){let r="0px",a=this.params.maxSize*Math.sqrt(2),h=this.isBody?`calc(100vh + ${a}px)`:`${this.height()+a}px`,f=this.gid,y=`@-webkit-keyframes snowflake_gid_${f}_y{from{-webkit-transform:translateY(${r})}to{-webkit-transform:translateY(${h});}} @keyframes snowflake_gid_${f}_y{from{transform:translateY(${r})}to{transform:translateY(${h});}}`;for(let _=0;_<=wo;_++){let O=Yr(_,this.params.minSize,this.params.maxSize)+"px";y+=`@-webkit-keyframes snowflake_gid_${f}_x_${_}{from{-webkit-transform:translateX(0px)}to{-webkit-transform:translateX(${O});}} @keyframes snowflake_gid_${f}_x_${_}{from{transform:translateX(0px)}to{transform:translateX(${O})}}`}return y}updateAnimationStyle(){this.injectStyle(this.getAnimationStyle(),this.animationStyleNode)}removeStyles(){tt.instanceCounter||(kn(this.mainStyleNode),delete this.mainStyleNode),kn(this.imagesStyleNode),delete this.imagesStyleNode,kn(this.animationStyleNode),delete this.animationStyleNode}width(){return this.params.width||(this.isBody?ns():this.params.container.offsetWidth)}height(){return this.params.height||(this.isBody?ts():this.params.container.offsetHeight+this.params.maxSize)}};Kt.instanceCounter=0;Kt.gid=0;function Q(n,r,a,h){var f=arguments.length,y=f<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,a):h,_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(n,r,a,h);else for(var O=n.length-1;O>=0;O--)(_=n[O])&&(y=(f<3?_(y):f>3?_(r,a,y):_(r,a))||y);return f>3&&y&&Object.defineProperty(r,a,y),y}var An=window,$n=An.ShadowRoot&&(An.ShadyCSS===void 0||An.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,xo=Symbol(),Kr=new WeakMap,_o=class{constructor(n,r,a){if(this._$cssResult$=!0,a!==xo)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=n,this.t=r}get styleSheet(){let n=this.o,r=this.t;if($n&&n===void 0){let a=r!==void 0&&r.length===1;a&&(n=Kr.get(r)),n===void 0&&((this.o=n=new CSSStyleSheet).replaceSync(this.cssText),a&&Kr.set(r,n))}return n}toString(){return this.cssText}},Jr=n=>new _o(typeof n=="string"?n:n+"",void 0,xo),V=(n,...r)=>{let a=n.length===1?n[0]:r.reduce((h,f,y)=>h+(_=>{if(_._$cssResult$===!0)return _.cssText;if(typeof _=="number")return _;throw Error("Value passed to 'css' function must be a 'css' function result: "+_+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(f)+n[y+1],n[0]);return new _o(a,n,xo)},So=(n,r)=>{$n?n.adoptedStyleSheets=r.map(a=>a instanceof CSSStyleSheet?a:a.styleSheet):r.forEach(a=>{let h=document.createElement("style"),f=An.litNonce;f!==void 0&&h.setAttribute("nonce",f),h.textContent=a.cssText,n.appendChild(h)})},Tn=$n?n=>n:n=>n instanceof CSSStyleSheet?(r=>{let a="";for(let h of r.cssRules)a+=h.cssText;return Jr(a)})(n):n;var Co,Dn=window,Qr=Dn.trustedTypes,us=Qr?Qr.emptyScript:"",Eo=Dn.reactiveElementPolyfillSupport,Ao={toAttribute(n,r){switch(r){case Boolean:n=n?us:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,r){let a=n;switch(r){case Boolean:a=n!==null;break;case Number:a=n===null?null:Number(n);break;case Object:case Array:try{a=JSON.parse(n)}catch(h){a=null}}return a}},Zr=(n,r)=>r!==n&&(r==r||n==n),ko={attribute:!0,type:String,converter:Ao,reflect:!1,hasChanged:Zr},$o="finalized",ht=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(n){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(n)}static get observedAttributes(){this.finalize();let n=[];return this.elementProperties.forEach((r,a)=>{let h=this._$Ep(a,r);h!==void 0&&(this._$Ev.set(h,a),n.push(h))}),n}static createProperty(n,r=ko){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(n,r),!r.noAccessor&&!this.prototype.hasOwnProperty(n)){let a=typeof n=="symbol"?Symbol():"__"+n,h=this.getPropertyDescriptor(n,a,r);h!==void 0&&Object.defineProperty(this.prototype,n,h)}}static getPropertyDescriptor(n,r,a){return{get(){return this[r]},set(h){let f=this[n];this[r]=h,this.requestUpdate(n,f,a)},configurable:!0,enumerable:!0}}static getPropertyOptions(n){return this.elementProperties.get(n)||ko}static finalize(){if(this.hasOwnProperty($o))return!1;this[$o]=!0;let n=Object.getPrototypeOf(this);if(n.finalize(),n.h!==void 0&&(this.h=[...n.h]),this.elementProperties=new Map(n.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let r=this.properties,a=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let h of a)this.createProperty(h,r[h])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(n){let r=[];if(Array.isArray(n)){let a=new Set(n.flat(1/0).reverse());for(let h of a)r.unshift(Tn(h))}else n!==void 0&&r.push(Tn(n));return r}static _$Ep(n,r){let a=r.attribute;return a===!1?void 0:typeof a=="string"?a:typeof n=="string"?n.toLowerCase():void 0}_$Eu(){var n;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(n=this.constructor.h)===null||n===void 0||n.forEach(r=>r(this))}addController(n){var r,a;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(n),this.renderRoot!==void 0&&this.isConnected&&((a=n.hostConnected)===null||a===void 0||a.call(n))}removeController(n){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(n)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((n,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var n;let r=(n=this.shadowRoot)!==null&&n!==void 0?n:this.attachShadow(this.constructor.shadowRootOptions);return So(r,this.constructor.elementStyles),r}connectedCallback(){var n;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(n=this._$ES)===null||n===void 0||n.forEach(r=>{var a;return(a=r.hostConnected)===null||a===void 0?void 0:a.call(r)})}enableUpdating(n){}disconnectedCallback(){var n;(n=this._$ES)===null||n===void 0||n.forEach(r=>{var a;return(a=r.hostDisconnected)===null||a===void 0?void 0:a.call(r)})}attributeChangedCallback(n,r,a){this._$AK(n,a)}_$EO(n,r,a=ko){var h;let f=this.constructor._$Ep(n,a);if(f!==void 0&&a.reflect===!0){let y=(((h=a.converter)===null||h===void 0?void 0:h.toAttribute)!==void 0?a.converter:Ao).toAttribute(r,a.type);this._$El=n,y==null?this.removeAttribute(f):this.setAttribute(f,y),this._$El=null}}_$AK(n,r){var a;let h=this.constructor,f=h._$Ev.get(n);if(f!==void 0&&this._$El!==f){let y=h.getPropertyOptions(f),_=typeof y.converter=="function"?{fromAttribute:y.converter}:((a=y.converter)===null||a===void 0?void 0:a.fromAttribute)!==void 0?y.converter:Ao;this._$El=f,this[f]=_.fromAttribute(r,y.type),this._$El=null}}requestUpdate(n,r,a){let h=!0;n!==void 0&&(((a=a||this.constructor.getPropertyOptions(n)).hasChanged||Zr)(this[n],r)?(this._$AL.has(n)||this._$AL.set(n,r),a.reflect===!0&&this._$El!==n&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(n,a))):h=!1),!this.isUpdatePending&&h&&(this._$E_=this._$Ej())}_$Ej(){return go(this,null,function*(){this.isUpdatePending=!0;try{yield this._$E_}catch(r){Promise.reject(r)}let n=this.scheduleUpdate();return n!=null&&(yield n),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var n;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((h,f)=>this[f]=h),this._$Ei=void 0);let r=!1,a=this._$AL;try{r=this.shouldUpdate(a),r?(this.willUpdate(a),(n=this._$ES)===null||n===void 0||n.forEach(h=>{var f;return(f=h.hostUpdate)===null||f===void 0?void 0:f.call(h)}),this.update(a)):this._$Ek()}catch(h){throw r=!1,this._$Ek(),h}r&&this._$AE(a)}willUpdate(n){}_$AE(n){var r;(r=this._$ES)===null||r===void 0||r.forEach(a=>{var h;return(h=a.hostUpdated)===null||h===void 0?void 0:h.call(a)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(n)),this.updated(n)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(n){return!0}update(n){this._$EC!==void 0&&(this._$EC.forEach((r,a)=>this._$EO(a,this[a],r)),this._$EC=void 0),this._$Ek()}updated(n){}firstUpdated(n){}};ht[$o]=!0,ht.elementProperties=new Map,ht.elementStyles=[],ht.shadowRootOptions={mode:"open"},Eo==null||Eo({ReactiveElement:ht}),((Co=Dn.reactiveElementVersions)!==null&&Co!==void 0?Co:Dn.reactiveElementVersions=[]).push("1.6.3");var To,On=window,Tt=On.trustedTypes,ei=Tt?Tt.createPolicy("lit-html",{createHTML:n=>n}):void 0,No="$lit$",nt=`lit$${(Math.random()+"").slice(9)}$`,ai="?"+nt,cs=`<${ai}>`,mt=document,Qt=()=>mt.createComment(""),Zt=n=>n===null||typeof n!="object"&&typeof n!="function",si=Array.isArray,ds=n=>si(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",Do=`[ \f\r]`,Jt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ti=/-->/g,ni=/>/g,ft=RegExp(`>|${Do}(?:([^\\s"'>=/]+)(${Do}*=${Do}*(?:[^ \f\r"'\`<>=]|("|')|))|$)`,"g"),oi=/'/g,ri=/"/g,li=/^(?:script|style|textarea|title)$/i,ui=n=>(r,...a)=>({_$litType$:n,strings:r,values:a}),ae=ui(1),_l=ui(2),gt=Symbol.for("lit-noChange"),te=Symbol.for("lit-nothing"),ii=new WeakMap,pt=mt.createTreeWalker(mt,129,null,!1);function ci(n,r){if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return ei!==void 0?ei.createHTML(r):r}var hs=(n,r)=>{let a=n.length-1,h=[],f,y=r===2?"":"",_=Jt;for(let O=0;O"?(_=f!=null?f:Jt,Y=-1):U[1]===void 0?Y=-2:(Y=_.lastIndex-U[2].length,P=U[1],_=U[3]===void 0?ft:U[3]==='"'?ri:oi):_===ri||_===oi?_=ft:_===ti||_===ni?_=Jt:(_=ft,f=void 0);let ce=_===ft&&n[O+1].startsWith("/>")?" ":"";y+=_===Jt?A+cs:Y>=0?(h.push(P),A.slice(0,Y)+No+A.slice(Y)+nt+ce):A+nt+(Y===-2?(h.push(void 0),O):ce)}return[ci(n,y+(n[a]||"")+(r===2?"":"")),h]},zo=class di{constructor({strings:r,_$litType$:a},h){let f;this.parts=[];let y=0,_=0,O=r.length-1,A=this.parts,[P,U]=hs(r,a);if(this.el=di.createElement(P,h),pt.currentNode=this.el.content,a===2){let Y=this.el.content,Z=Y.firstChild;Z.remove(),Y.append(...Z.childNodes)}for(;(f=pt.nextNode())!==null&&A.length0){f.textContent=Tt?Tt.emptyScript:"";for(let ce=0;ce2||a[0]!==""||a[1]!==""?(this._$AH=Array(a.length-1).fill(new String),this.strings=a):this._$AH=te}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(n,r=this,a,h){let f=this.strings,y=!1;if(f===void 0)n=Dt(this,n,r,0),y=!Zt(n)||n!==this._$AH&&n!==gt,y&&(this._$AH=n);else{let _=n,O,A;for(n=f[0],O=0;O{var h,f;let y=(h=a==null?void 0:a.renderBefore)!==null&&h!==void 0?h:r,_=y._$litPart$;if(_===void 0){let O=(f=a==null?void 0:a.renderBefore)!==null&&f!==void 0?f:null;y._$litPart$=_=new jo(r.insertBefore(Qt(),O),O,void 0,a!=null?a:{})}return _._$AI(n),_};var Ro,Po;var Ie=class extends ht{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var n,r;let a=super.createRenderRoot();return(n=(r=this.renderOptions).renderBefore)!==null&&n!==void 0||(r.renderBefore=a.firstChild),a}update(n){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(n),this._$Do=fi(r,this.renderRoot,this.renderOptions)}connectedCallback(){var n;super.connectedCallback(),(n=this._$Do)===null||n===void 0||n.setConnected(!0)}disconnectedCallback(){var n;super.disconnectedCallback(),(n=this._$Do)===null||n===void 0||n.setConnected(!1)}render(){return gt}};Ie.finalized=!0,Ie._$litElement$=!0,(Ro=globalThis.litElementHydrateSupport)===null||Ro===void 0||Ro.call(globalThis,{LitElement:Ie});var Mo=globalThis.litElementPolyfillSupport;Mo==null||Mo({LitElement:Ie});((Po=globalThis.litElementVersions)!==null&&Po!==void 0?Po:globalThis.litElementVersions=[]).push("3.3.3");var Ot=n=>r=>typeof r=="function"?((a,h)=>(customElements.define(a,h),h))(n,r):((a,h)=>{let{kind:f,elements:y}=h;return{kind:f,elements:y,finisher(_){customElements.define(a,_)}}})(n,r);var bs=(n,r)=>r.kind==="method"&&r.descriptor&&!("value"in r.descriptor)?$t(et({},r),{finisher(a){a.createProperty(r.key,n)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:r.key,initializer(){typeof r.initializer=="function"&&(this[r.key]=r.initializer.call(this))},finisher(a){a.createProperty(r.key,n)}},ws=(n,r,a)=>{r.constructor.createProperty(a,n)};function ie(n){return(r,a)=>a!==void 0?ws(n,r,a):bs(n,r)}function Io(n){return ie($t(et({},n),{state:!0}))}var vt=({finisher:n,descriptor:r})=>(a,h)=>{var f;if(h===void 0){let y=(f=a.originalKey)!==null&&f!==void 0?f:a.key,_=r!=null?{kind:"method",placement:"prototype",key:y,descriptor:r(a.key)}:$t(et({},a),{key:y});return n!=null&&(_.finisher=function(O){n(O,y)}),_}{let y=a.constructor;r!==void 0&&Object.defineProperty(a,h,r(h)),n==null||n(y,h)}};function Nt(n,r){return vt({descriptor:a=>{let h={get(){var f,y;return(y=(f=this.renderRoot)===null||f===void 0?void 0:f.querySelector(n))!==null&&y!==void 0?y:null},enumerable:!0,configurable:!0};if(r){let f=typeof a=="symbol"?Symbol():"__"+a;h.get=function(){var y,_;return this[f]===void 0&&(this[f]=(_=(y=this.renderRoot)===null||y===void 0?void 0:y.querySelector(n))!==null&&_!==void 0?_:null),this[f]}}return h}})}var Lo,au=((Lo=window.HTMLSlotElement)===null||Lo===void 0?void 0:Lo.prototype.assignedElements)!=null?(n,r)=>n.assignedElements(r):(n,r)=>n.assignedNodes(r).filter(a=>a.nodeType===Node.ELEMENT_NODE);var xs={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:Es,fromCents:!1},pi=function(n){return Math.round(n)},Bo=function(n){return Math.pow(10,n)},_s=function(n,r){return pi(n/r)*r},Ss=/(\d)(?=(\d{3})+\b)/g,Cs=/(\d)(?=(\d\d)+\d\b)/g;function Le(n,r){var a=this;if(!(a instanceof Le))return new Le(n,r);var h=Object.assign({},xs,r),f=Bo(h.precision),y=zn(n,h);a.intValue=y,a.value=y/f,h.increment=h.increment||1/f,h.useVedic?h.groups=Cs:h.groups=Ss,this.s=h,this.p=f}function zn(n,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,h=0,f=r.decimal,y=r.errorOnInvalid,_=r.precision,O=r.fromCents,A=Bo(_),P=typeof n=="number",U=n instanceof Le;if(U&&O)return n.intValue;if(P||U)h=U?n.value:n;else if(typeof n=="string"){var Y=new RegExp("[^-\\d"+f+"]","g"),Z=new RegExp("\\"+f,"g");h=n.replace(/\((.*)\)/,"-$1").replace(Y,"").replace(Z,"."),h=h||0}else{if(y)throw Error("Invalid Input");h=0}return O||(h*=A,h=h.toFixed(4)),a?pi(h):h}function Es(n,r){var a=r.pattern,h=r.negativePattern,f=r.symbol,y=r.separator,_=r.decimal,O=r.groups,A=(""+n).replace(/^-/,"").split("."),P=A[0],U=A[1];return(n.value>=0?a:h).replace("!",f).replace("#",P.replace(O,"$1"+y)+(U?_+U:""))}Le.prototype={add:function(n){var r=this.intValue,a=this.s,h=this.p;return Le((r+=zn(n,a))/(a.fromCents?1:h),a)},subtract:function(n){var r=this.intValue,a=this.s,h=this.p;return Le((r-=zn(n,a))/(a.fromCents?1:h),a)},multiply:function(n){var r=this.intValue,a=this.s;return Le((r*=n)/(a.fromCents?1:Bo(a.precision)),a)},divide:function(n){var r=this.intValue,a=this.s;return Le(r/=zn(n,a,!1),a)},distribute:function(n){for(var r=this.intValue,a=this.p,h=this.s,f=[],y=Math[r>=0?"floor":"ceil"](r/n),_=Math.abs(r-y*n),O=h.fromCents?1:a;n!==0;n--){var A=Le(y/O,h);_-- >0&&(A=A[r>=0?"add":"subtract"](1/O)),f.push(A)}return f},dollars:function(){return~~this.value},cents:function(){var n=this.intValue,r=this.p;return~~(n%r)},format:function(n){var r=this.s;return typeof n=="function"?n(this,r):r.format(this,Object.assign({},r,n))},toString:function(){var n=this.intValue,r=this.p,a=this.s;return _s(n/r,a.increment).toFixed(a.precision)},toJSON:function(){return this.value}};var Ho=Le;var mi;(function(n){n.CreditCard="Credit Card",n.PayPal="PayPal",n.GooglePay="Google Pay",n.Venmo="Venmo",n.ApplePay="Apple Pay"})(mi||(mi={}));var jn=class Fo{get feeAmountCovered(){return this.coverFees?this.fee:0}get fee(){return Fo.calculateFeeAmount(this.amount)}get total(){return Fo.calculateTotal(this.amount,this.coverFees)}static calculateTotal(r,a){let h=a?this.calculateFeeAmount(r):0,f=r+h;return isNaN(f)?0:this.roundAmount(f)}static calculateFeeAmount(r){let a=r*.02+.49;return isNaN(a)?0:this.roundAmount(a)}static roundAmount(r){return Math.round(r*100)/100}constructor(r){this.donationType=r.donationType,this.amount=r.amount,this.coverFees=r.coverFees}},je;(function(n){n.OneTime="one-time",n.Monthly="monthly",n.Upsell="up_sell"})(je||(je={}));var gi=[5,10,25,50,100,500,1e3],vi=new jn({donationType:je.OneTime,amount:10,coverFees:!1});var yi=class{keydown(n){var r,a;let h=n.key;if(n.metaKey)return;switch(h){case"Tab":case"Delete":case"Backspace":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":return}let f=n.target,y=f.value,_=y.slice(0,(r=f.selectionStart)!==null&&r!==void 0?r:0),O=y.slice((a=f.selectionEnd)!==null&&a!==void 0?a:0),A=`${_}${h}${O}`,P=/^[0-9]+(\.[0-9]{0,2})?$/g;A.match(P)||n.preventDefault()}};var zt;(function(n){n.HideBadge="hidebadge",n.ShowBadge="showbadge",n.HideBadgeLeaveSpacing="hidebadgeleavespacing"})(zt||(zt={}));var en=class extends Ie{constructor(){super(...arguments),this.sectionBadge="0",this.badgeMode=zt.ShowBadge}render(){return ae`
${this.sectionBadge}
${this.headline?ae`
${this.headline}
`:""}
`}static get styles(){let n=V`var(--formSectionBadgeTransition, 0.25s ease-out)`,r=V`var(--formSectionBadgeMargin, 1rem)`,a=V`var(--formSectionBadgeBackgroundColor, #333)`,h=V`var(--formSectionBadgeRadius, 1.2rem)`,f=V`calc(${h} * 2)`,y=V`var(--formSectionBadgeFontSize, 1.8rem)`,_=V`var(--formSectionBadgeFontWeight, bold)`,O=V`var(--formSectionBadgeFontColor, #fff)`,A=V`var(--formSectionTitleFontSize, 1.8rem)`,P=V`var(--formSectionTitleFontWeight, bold)`,U=V`var(--formSectionContentBackgroundColor, transparent)`,Y=V`var(--formSectionTextColor, #333)`,Z=V`calc(${h} * 2)`;return V` :host { display: block; background-color: ${U}; color: ${Y}; } .container { position: relative; padding: 0.5rem; } .content-container { position: relative; left: calc(${f} + ${r}); width: calc(100% - (${f} + ${r})); transition: ${n}; z-index: 1; } .hidebadge .content-container { left: 0; width: 100%; } .hidebadge .badge-container { display: none; } .hidebadgeleavespacing .badge { display: none; } .badge-container { position: absolute; width: ${f}; } .badge { background-color: ${a}; color: ${O}; width: ${f}; height: ${f}; border-radius: ${h}; display: flex; justify-content: center; align-items: center; font-weight: ${_}; font-size: ${y}; } .title { line-height: ${Z}; margin-bottom: 0.5rem; font-size: ${A}; font-weight: ${P}; } `}};Q([ie({type:String})],en.prototype,"sectionBadge",void 0);Q([ie({type:String})],en.prototype,"headline",void 0);Q([ie({type:String})],en.prototype,"badgeMode",void 0);en=Q([Ot("donation-form-section")],en);var tn;(function(n){n.HideNumbers="hidenumbers",n.ShowNumbers="shownumbers"})(tn||(tn={}));var Be;(function(n){n.DonationType="donationType",n.Amount="amount"})(Be||(Be={}));var De;(function(n){n.ValidDonationAmount="valid_donation_amount",n.InvalidDonationAmount="invalid_donation_amount",n.DonationTooHigh="donation_too_high",n.DonationTooLow="donation_too_low"})(De||(De={}));var yt;(function(n){n.Button="button",n.Checkbox="checkbox",n.Hide="hide"})(yt||(yt={}));var Rn;(function(n){n.SingleLine="single-line",n.MultiLine="multi-line"})(Rn||(Rn={}));var pe=class extends Ie{constructor(){super(...arguments),this.donationInfo=vi,this.stepNumberMode=tn.ShowNumbers,this.amountOptions=gi,this.amountSelectionLayout=Rn.MultiLine,this.frequencySelectionMode=yt.Button,this.customAmountMode="display",this.customFeesCheckboxMode="display",this.amountTitleDisplayMode="default",this.customAmountSelected=!1,this.currencyValidator=new yi}render(){let n=this.amountTitleDisplayMode==="default"?"Choose an amount (USD)":"";return ae` ${this.frequencySelectionMode===yt.Button?this.frequencyButtonsTemplate:te} ${this.amountTitleDisplayMode==="slot"?ae``:te}
    ${this.presetAmountsTemplate} ${this.customAmountMode==="display"?ae`
  • ${this.customAmountTemplate}
  • `:te}
${this.error}
${this.customFeesCheckboxMode==="display"?ae`
${this.customFeesCheckboxTemplate} ${this.frequencySelectionMode===yt.Checkbox?this.frequencyCheckboxTemplate:te}
`:te}
`}updated(n){n.has("customAmountSelected")&&this.customAmountButton&&(this.customAmountButton.checked=this.customAmountSelected),n.has("amountOptions")&&(this.customAmountSelected=!1,this.updateSelectedDonationInfo(),this.setupAmountColumnsLayoutConfig()),n.has("amountSelectionLayout")&&this.setupAmountColumnsLayoutConfig(),n.has("donationInfo")&&this.updateSelectedDonationInfo(),n.has("defaultSelectedAmount")&&this.defaultSelectedAmount!==void 0&&(this.customAmountSelected=!1,this.donationInfo=new jn({donationType:this.donationInfo.donationType,amount:this.defaultSelectedAmount,coverFees:this.donationInfo.coverFees}))}get frequencyButtonsTemplate(){return ae`
    ${this.frequencyTemplate}
`}get frequencyCheckboxTemplate(){return ae`
`}get customFeesCheckboxTemplate(){return ae`
`}get amountSelectionSectionNumber(){return this.frequencySelectionMode===yt.Button?2:1}get formSectionNumberMode(){switch(this.stepNumberMode){case tn.ShowNumbers:return zt.ShowBadge;case tn.HideNumbers:return zt.HideBadge}}setupAmountColumnsLayoutConfig(){let n=this.customAmountMode==="hide"&&this.customFeesCheckboxMode==="hide"&&this.frequencySelectionMode===yt.Hide,r=this.amountOptions.length,a=5,h=3;switch(r){case 7:a=5,h=3;break;case 6:a=4,h=2;break;case 5:a=4,h=3;break;case 4:if(n){a=4,h=0;break}a=3,h=2;break;case 3:a=2,h=1;break}this.amountSelectionLayout===Rn.SingleLine&&(a=r+3,h=3),this.style.setProperty("--paymentSelectorAmountColumnCount",`${a}`),this.style.setProperty("--paymentSelectorCustomAmountColSpan",`${h}`)}updateSelectedDonationInfo(){var n,r;if(!this.customAmountSelected&&this.amountOptions.includes(this.donationInfo.amount)){let a=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(`input[type="radio"][name="${Be.Amount}"][value="${this.donationInfo.amount}"]`);a.checked=!0,this.customAmountSelected=!1,this.customAmountInput&&(this.customAmountInput.value="")}else if(this.customAmountSelected=!0,((r=this.shadowRoot)===null||r===void 0?void 0:r.activeElement)!==this.customAmountInput){this.customAmountInput.value=`${this.donationInfo.amount}`;let a=this.getDonationInfoStatus(this.donationInfo.amount);this.handleDonationInfoStatus(a)}}get coverFeesTextTemplate(){let n=Ho(this.donationInfo.fee,{symbol:"$"}).format();return ae` I'll generously add ${n} to cover fees. `}formatShortenedAmount(n){let r=n%1===0?0:2;return Ho(n,{symbol:"$",precision:r}).format()}get frequencyTemplate(){return ae`
  • ${this.getRadioButton({group:Be.DonationType,value:je.OneTime,displayText:"One time",checked:this.donationInfo.donationType===je.OneTime})}
  • ${this.getRadioButton({group:Be.DonationType,value:je.Monthly,displayText:"Monthly",checked:this.donationInfo.donationType===je.Monthly})}
  • `}get presetAmountsTemplate(){return ae` ${this.amountOptions.map(n=>{let r=!this.customAmountSelected&&n===this.donationInfo.amount,a=this.formatShortenedAmount(n);return ae`
  • ${this.getRadioButton({group:Be.Amount,value:`${n}`,displayText:`${a}`,checked:r})}
  • `})} `}getRadioButton(n){let r=`${n.group}-${n.value}-option`;return ae`
    {n.group===Be.Amount&&parseFloat(n.value)===this.donationInfo.amount&&(console.log("SAME VALUE"),this.radioSelected(a))}} />
    `}get customAmountTemplate(){let n=this.amountOptions.includes(this.donationInfo.amount)?"":this.donationInfo.amount;return ae`
    `}customRadioSelected(){this.customAmountInput.focus()}customAmountFocused(n){let r=n.target;this.customAmountSelected=!0,this.handleCustomAmountInput(r.value)}coverFeesChecked(n){let r=n.target.checked;this.updateDonationInfo({coverFees:r})}customAmountChanged(n){let r=n.target.value;this.customAmountSelected=!0,this.handleCustomAmountInput(r)}handleCustomAmountInput(n){let r=parseFloat(n);isNaN(r)?this.dispatchEditDonationError(De.InvalidDonationAmount):this.amountChanged(r)}handleDonationInfoStatus(n){switch(n){case De.ValidDonationAmount:this.error=void 0;break;case De.DonationTooHigh:this.error=ae` To make a donation of $10,000 or more, please contact our philanthropy department at donations@archive.org `,this.dispatchEditDonationError(n);break;case De.DonationTooLow:this.customAmountInput.value.length>0&&(this.error=ae` Please select an amount (minimum $1) `),this.dispatchEditDonationError(n);break;case De.InvalidDonationAmount:this.error=ae` Please enter a valid donation amount `,this.dispatchEditDonationError(n);break}}amountChanged(n){let r=this.getDonationInfoStatus(n);this.handleDonationInfoStatus(r),r===De.ValidDonationAmount&&this.updateDonationInfo({amount:n})}getDonationInfoStatus(n){return isNaN(n)?De.InvalidDonationAmount:n>=1e4?De.DonationTooHigh:n<1?De.DonationTooLow:De.ValidDonationAmount}radioSelected(n){let r=n.target,a=r.name,{value:h}=r;switch(a){case Be.Amount:this.presetAmountChanged(parseFloat(h));break;case Be.DonationType:this.updateDonationInfo({donationType:h});break;default:break}}monthlyCheckboxChecked(n){let r=n.target.checked?je.Monthly:je.OneTime;this.updateDonationInfo({donationType:r})}dispatchEditDonationError(n){let r=new CustomEvent("editDonationError",{detail:{error:n}});this.dispatchEvent(r)}presetAmountChanged(n){this.error=void 0,this.customAmountSelected=!1,this.customAmountInput&&(this.customAmountInput.value=""),this.updateDonationInfo({amount:n})}updateDonationInfo(n){var r,a,h;let f=new jn({donationType:(r=n.donationType)!==null&&r!==void 0?r:this.donationInfo.donationType,amount:(a=n.amount)!==null&&a!==void 0?a:this.donationInfo.amount,coverFees:(h=n.coverFees)!==null&&h!==void 0?h:this.donationInfo.coverFees});this.donationInfo=f;let y=new CustomEvent("donationInfoChanged",{detail:{donationInfo:f}});this.dispatchEvent(y)}static get styles(){let n=V`var(--paymentButtonBorderColor, #333)`,r=V`var(--paymentButtonGridGap, 1rem)`,a=V`var(--paymentButtonFontSize, 1.6rem)`,h=V`var(--paymentButtonFontColor, #000)`,f=V`var(--paymentButtonSelectedFontColor, #000)`,y=V`var(--paymentButtonSelectedColor, #f9bf3b)`,_=V`var(--paymentButtonFocusedOutlineColor, #7fb3f9)`,O=V`var(--paymentButtonColor, #fff)`,A=V`var(--coverFeesFontSize, 1.2rem)`,P=V`var(--coverFeesFontWeight, bold)`,U=V`var(--customAmountWidth, 4rem)`,Y=V`var(--inputFieldFontColor, #333)`,Z=V`var(--inputBorder, 1px solid #d9d9d9)`,ce=V`var(--paymentSelectorAmountColumnCount, 5)`,Fe=V`var(--paymentSelectorCustomAmountColSpan, 3)`;return V` :host { --formSectionContentBackgroundColor: var( --editFormBgColor, transparent ); --formSectionBadgeBackgroundColor: var(--editFormBadgeBgColor, #333); --formSectionBadgeFontColor: var(--editFormBadgeFontColor, #fff); --formSectionTextColor: var(--editFormTextColor, #333); } .errors { color: red; font-size: 1.4rem; margin-top: 0.5rem; } ul { list-style: none; margin: 0; padding: 0; display: grid; grid-gap: ${r}; } li { margin: 0; padding: 0; display: inline-block; } .frequency-selector { grid-template-columns: repeat(2, 1fr); } .amount-selector { grid-template-columns: repeat(${ce}, 1fr); } .custom-amount { grid-column: span ${Fe}; } .selection-button { height: 3rem; } .selection-button label { padding: 0 0.3rem; display: flex; cursor: pointer; text-align: center; font-size: ${a}; font-weight: bold; border: 1px solid ${n}; border-radius: 5px; background-color: #ccc; height: 100%; justify-content: center; align-items: center; } label[for='custom-amount-button'] { padding: 0; display: flex; align-items: center; justify-content: center; } .custom-amount-text { white-space: nowrap; margin-right: 0.5rem; } input[type='radio'] { opacity: 0; width: 0; height: 0; position: absolute; } input[type='radio'] + label { color: ${h}; background-color: ${O}; } input[type='radio']:checked + label { color: ${f}; background-color: ${y}; } input[type='radio']:focus + label { outline: 2px solid ${_}; } .checkbox-options { margin-top: 1rem; } .checkbox-option-container { display: flex; align-items: center; justify-content: center; } .checkbox-option-container input { width: 2rem; } .checkbox-option-container label { font-size: ${A}; font-weight: ${P}; flex: 1; } #custom-amount-input { width: ${U}; font-size: 1.6rem; font-weight: bold; color: ${Y}; padding: 0.1rem; border: ${Z}; appearance: none; -moz-appearance: none; -webkit-appearance: none; } `}};Q([ie({type:Object})],pe.prototype,"donationInfo",void 0);Q([ie({type:String})],pe.prototype,"stepNumberMode",void 0);Q([ie({type:Number})],pe.prototype,"defaultSelectedAmount",void 0);Q([ie({type:Array})],pe.prototype,"amountOptions",void 0);Q([ie({type:String})],pe.prototype,"amountSelectionLayout",void 0);Q([ie({type:String,reflect:!0})],pe.prototype,"frequencySelectionMode",void 0);Q([ie({type:String,reflect:!0})],pe.prototype,"customAmountMode",void 0);Q([ie({type:String,reflect:!0})],pe.prototype,"customFeesCheckboxMode",void 0);Q([ie({type:String,reflect:!0})],pe.prototype,"amountTitleDisplayMode",void 0);Q([ie({type:Object})],pe.prototype,"error",void 0);Q([ie({type:Boolean})],pe.prototype,"customAmountSelected",void 0);Q([Nt("#custom-amount-button")],pe.prototype,"customAmountButton",void 0);Q([Nt("#custom-amount-input")],pe.prototype,"customAmountInput",void 0);pe=Q([Ot("donation-form-edit-donation")],pe);var Ee=class extends Ie{constructor(){super(...arguments),this.goalMessageMode="amount",this.goalNearMessage="We\u2019ve almost reached our goal!",this.goalReachedMessage="We've reached our goal!",this.goalAmount=75e5,this.currentAmountMode="on",this.currentAmount=0,this.thermometerValueWidth=0,this.thermometerFillWidth=0}render(){return ae`
    ${this.thermometerValuePosition==="value-left"?this.thermometerValueTemplate:te}
    ${this.thermometerValuePosition==="value-right"?this.thermometerValueTemplate:te}
    ${this.goalMessageMode!=="off"?ae` `:te}
    `}get thermometerValueTemplate(){return this.currentAmountMode==="off"?ae`${te}`:ae`
    ${this.currentAmountDisplayValue}
    `}get thermometerValuePosition(){return this.thermometerValueWidth+10=this.goalAmount?this.goalReachedMessage:this.goalNearMessage}get currentAmountDisplayValue(){return this.formatNumber(this.currentAmount)}get goalAmountDisplayValue(){return this.formatNumber(this.goalAmount)}formatNumber(n){if(n===0)return"$0";let r="MM",a=n/1e6,h=a<10,f=0;return h?f=Math.round((a+Number.EPSILON)*10)/10:f=Math.round(a),`$${f}${r}`}get currentGoalMessage(){switch(this.goalMessageMode){case"amount":return`${this.goalAmountDisplayValue} goal`;case"message":return this.goalMessage;case"off":return""}}get percentComplete(){return Math.min(this.currentAmount/this.goalAmount*100,100)}static get styles(){let n=V`var(--bannerThermometerHeight, 20px)`,r=V`var(--bannerThermometerCurrentValueLeftColor, #fff)`,a=V`var(--bannerThermometerProgressColor, #23765D)`,h=V`var(--bannerThermometerCurrentValueRightColor, ${a})`,f=V`var(--bannerThermometerBackgroundColor, #B8F5E2)`,y=V`var(--bannerThermometerBorder, 1px solid ${a})`,_=V`var(--bannerThermometerBorderRadius, calc(${n} / 2))`,O=V`var(--bannerThermometerGoalMessagePadding, 0 10px)`,A=V`var(--bannerThermometerGoalValueColor, #2c2c2c)`;return V` :host { display: block; } .container { height: 100%; } .thermometer-message-container { height: 100%; display: flex; align-items: center; } .thermometer-container { height: 100%; flex: 1; } .thermometer-background { background-color: ${f}; padding: 0; height: 100%; border-radius: ${_}; border: ${y}; overflow: hidden; display: flex; align-items: center; } .thermometer-fill { background-color: ${a}; text-align: right; height: 100%; display: flex; justify-content: flex-end; align-items: center; } .thermometer-value { font-weight: bold; } .value-left .thermometer-value { color: ${r}; padding: 0 0.5rem 0 1rem; } .value-right .thermometer-value { color: ${h}; padding: 0 1rem 0 0.5rem; } .donate-goal { text-align: left; padding: ${O}; text-transform: uppercase; font-weight: bold; color: ${A}; } `}};Q([ie({type:String})],Ee.prototype,"goalMessageMode",void 0);Q([ie({type:String})],Ee.prototype,"goalNearMessage",void 0);Q([ie({type:String})],Ee.prototype,"goalReachedMessage",void 0);Q([ie({type:Number})],Ee.prototype,"goalAmount",void 0);Q([ie({type:String})],Ee.prototype,"currentAmountMode",void 0);Q([ie({type:Number})],Ee.prototype,"currentAmount",void 0);Q([ie({type:Object})],Ee.prototype,"resizeObserver",void 0);Q([Nt(".thermometer-value")],Ee.prototype,"thermometerValue",void 0);Q([Nt(".thermometer-fill")],Ee.prototype,"thermometerFill",void 0);Q([Io()],Ee.prototype,"thermometerValueWidth",void 0);Q([Io()],Ee.prototype,"thermometerFillWidth",void 0);Ee=Q([Ot("donation-banner-thermometer")],Ee);var bt=[],ks=function(){return bt.some(function(n){return n.activeTargets.length>0})},As=function(){return bt.some(function(n){return n.skippedTargets.length>0})},bi="ResizeObserver loop completed with undelivered notifications.",$s=function(){var n;typeof ErrorEvent=="function"?n=new ErrorEvent("error",{message:bi}):(n=document.createEvent("Event"),n.initEvent("error",!1,!1),n.message=bi),window.dispatchEvent(n)},on;(function(n){n.BORDER_BOX="border-box",n.CONTENT_BOX="content-box",n.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(on||(on={}));var wt=function(n){return Object.freeze(n)},Ts=function(){function n(r,a){this.inlineSize=r,this.blockSize=a,wt(this)}return n}(),$i=function(){function n(r,a,h,f){return this.x=r,this.y=a,this.width=h,this.height=f,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,wt(this)}return n.prototype.toJSON=function(){var r=this,a=r.x,h=r.y,f=r.top,y=r.right,_=r.bottom,O=r.left,A=r.width,P=r.height;return{x:a,y:h,top:f,right:y,bottom:_,left:O,width:A,height:P}},n.fromRect=function(r){return new n(r.x,r.y,r.width,r.height)},n}(),Uo=function(n){return n instanceof SVGElement&&"getBBox"in n},Ti=function(n){if(Uo(n)){var r=n.getBBox(),a=r.width,h=r.height;return!a&&!h}var f=n,y=f.offsetWidth,_=f.offsetHeight;return!(y||_||n.getClientRects().length)},wi=function(n){var r;if(n instanceof Element)return!0;var a=(r=n==null?void 0:n.ownerDocument)===null||r===void 0?void 0:r.defaultView;return!!(a&&n instanceof a.Element)},Ds=function(n){switch(n.tagName){case"INPUT":if(n.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},nn=typeof window<"u"?window:{},Pn=new WeakMap,xi=/auto|scroll/,Os=/^tb|vertical/,Ns=/msie|trident/i.test(nn.navigator&&nn.navigator.userAgent),He=function(n){return parseFloat(n||"0")},jt=function(n,r,a){return n===void 0&&(n=0),r===void 0&&(r=0),a===void 0&&(a=!1),new Ts((a?r:n)||0,(a?n:r)||0)},_i=wt({devicePixelContentBoxSize:jt(),borderBoxSize:jt(),contentBoxSize:jt(),contentRect:new $i(0,0,0,0)}),Di=function(n,r){if(r===void 0&&(r=!1),Pn.has(n)&&!r)return Pn.get(n);if(Ti(n))return Pn.set(n,_i),_i;var a=getComputedStyle(n),h=Uo(n)&&n.ownerSVGElement&&n.getBBox(),f=!Ns&&a.boxSizing==="border-box",y=Os.test(a.writingMode||""),_=!h&&xi.test(a.overflowY||""),O=!h&&xi.test(a.overflowX||""),A=h?0:He(a.paddingTop),P=h?0:He(a.paddingRight),U=h?0:He(a.paddingBottom),Y=h?0:He(a.paddingLeft),Z=h?0:He(a.borderTopWidth),ce=h?0:He(a.borderRightWidth),Fe=h?0:He(a.borderBottomWidth),K=h?0:He(a.borderLeftWidth),q=Y+P,qe=A+U,X=K+ce,Rt=Z+Fe,Pt=O?n.offsetHeight-Rt-n.clientHeight:0,We=_?n.offsetWidth-X-n.clientWidth:0,sn=f?q+X:0,s=f?qe+Rt:0,Ke=h?h.width:He(a.width)-sn-We,ke=h?h.height:He(a.height)-s-Pt,Je=Ke+q+We+X,ln=ke+qe+Pt+Rt,Mt=wt({devicePixelContentBoxSize:jt(Math.round(Ke*devicePixelRatio),Math.round(ke*devicePixelRatio),y),borderBoxSize:jt(Je,ln,y),contentBoxSize:jt(Ke,ke,y),contentRect:new $i(Y,A,Ke,ke)});return Pn.set(n,Mt),Mt},Oi=function(n,r,a){var h=Di(n,a),f=h.borderBoxSize,y=h.contentBoxSize,_=h.devicePixelContentBoxSize;switch(r){case on.DEVICE_PIXEL_CONTENT_BOX:return _;case on.BORDER_BOX:return f;default:return y}},zs=function(){function n(r){var a=Di(r);this.target=r,this.contentRect=a.contentRect,this.borderBoxSize=wt([a.borderBoxSize]),this.contentBoxSize=wt([a.contentBoxSize]),this.devicePixelContentBoxSize=wt([a.devicePixelContentBoxSize])}return n}(),Ni=function(n){if(Ti(n))return 1/0;for(var r=0,a=n.parentNode;a;)r+=1,a=a.parentNode;return r},js=function(){var n=1/0,r=[];bt.forEach(function(y){if(y.activeTargets.length!==0){var _=[];y.activeTargets.forEach(function(O){var A=new zs(O.target),P=Ni(O.target);_.push(A),O.lastReportedSize=Oi(O.target,O.observedBox),Pn?r.activeTargets.push(a):r.skippedTargets.push(a))})})},Rs=function(){var n=0;for(Si(n);ks();)n=js(),Si(n);return As()&&$s(),n>0},qo,zi=[],Ps=function(){return zi.splice(0).forEach(function(n){return n()})},Ms=function(n){if(!qo){var r=0,a=document.createTextNode(""),h={characterData:!0};new MutationObserver(function(){return Ps()}).observe(a,h),qo=function(){a.textContent="".concat(r?r--:r++)}}zi.push(n),qo()},Is=function(n){Ms(function(){requestAnimationFrame(n)})},Ln=0,Ls=function(){return!!Ln},Bs=250,Hs={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ci=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ei=function(n){return n===void 0&&(n=0),Date.now()+n},Wo=!1,Fs=function(){function n(){var r=this;this.stopped=!0,this.listener=function(){return r.schedule()}}return n.prototype.run=function(r){var a=this;if(r===void 0&&(r=Bs),!Wo){Wo=!0;var h=Ei(r);Is(function(){var f=!1;try{f=Rs()}finally{if(Wo=!1,r=h-Ei(),!Ls())return;f?a.run(1e3):r>0?a.run(r):a.start()}})}},n.prototype.schedule=function(){this.stop(),this.run()},n.prototype.observe=function(){var r=this,a=function(){return r.observer&&r.observer.observe(document.body,Hs)};document.body?a():nn.addEventListener("DOMContentLoaded",a)},n.prototype.start=function(){var r=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ci.forEach(function(a){return nn.addEventListener(a,r.listener,!0)}))},n.prototype.stop=function(){var r=this;this.stopped||(this.observer&&this.observer.disconnect(),Ci.forEach(function(a){return nn.removeEventListener(a,r.listener,!0)}),this.stopped=!0)},n}(),Vo=new Fs,ki=function(n){!Ln&&n>0&&Vo.start(),Ln+=n,!Ln&&Vo.stop()},qs=function(n){return!Uo(n)&&!Ds(n)&&getComputedStyle(n).display==="inline"},Ws=function(){function n(r,a){this.target=r,this.observedBox=a||on.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return n.prototype.isActive=function(){var r=Oi(this.target,this.observedBox,!0);return qs(this.target)&&(this.lastReportedSize=r),this.lastReportedSize.inlineSize!==r.inlineSize||this.lastReportedSize.blockSize!==r.blockSize},n}(),Vs=function(){function n(r,a){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=r,this.callback=a}return n}(),Mn=new WeakMap,Ai=function(n,r){for(var a=0;a=0&&(y&&bt.splice(bt.indexOf(h),1),h.observationTargets.splice(f,1),ki(-1))},n.disconnect=function(r){var a=this,h=Mn.get(r);h.observationTargets.slice().forEach(function(f){return a.unobserve(r,f.target)}),h.activeTargets.splice(0,h.activeTargets.length)},n}(),ji=function(){function n(r){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof r!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");In.connect(this,r)}return n.prototype.observe=function(r,a){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!wi(r))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");In.observe(this,r,a)},n.prototype.unobserve=function(r){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!wi(r))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");In.unobserve(this,r)},n.prototype.disconnect=function(){In.disconnect(this)},n.toString=function(){return"function ResizeObserver () { [polyfill code] }"},n}();var Us=window.ResizeObserver||ji;window.ResizeObserver=Us;var Bn=class{constructor(){this.resizeObserver=new ResizeObserver(n=>{window.requestAnimationFrame(()=>{for(let r of n){let a=this.resizeHandlers.get(r.target);a==null||a.forEach(h=>{h.handleResize(r)})}})}),this.resizeHandlers=new Map}shutdown(){this.resizeHandlers.forEach((n,r)=>{this.resizeObserver.unobserve(r)}),this.resizeHandlers.clear()}addObserver(n){var r;let a=(r=this.resizeHandlers.get(n.target))!==null&&r!==void 0?r:new Set;a.add(n.handler),this.resizeHandlers.set(n.target,a),this.resizeObserver.observe(n.target,n.options)}removeObserver(n){let r=this.resizeHandlers.get(n.target);r&&(r.delete(n.handler),r.size===0&&(this.resizeObserver.unobserve(n.target),this.resizeHandlers.delete(n.target)))}};window.SharedResizeObserver=Bn;var Xs=Object.create,Go=Object.defineProperty,Gs=Object.getOwnPropertyDescriptor,Ys=Object.getOwnPropertyNames,Ks=Object.getPrototypeOf,Js=Object.prototype.hasOwnProperty,Qs=(n,r)=>()=>(r||n((r={exports:{}}).exports,r),r.exports),Zs=(n,r)=>{for(var a in r)Go(n,a,{get:r[a],enumerable:!0})},Xo=(n,r,a,h)=>{if(r&&typeof r=="object"||typeof r=="function")for(let f of Ys(r))!Js.call(n,f)&&f!==a&&Go(n,f,{get:()=>r[f],enumerable:!(h=Gs(r,f))||h.enumerable});return n},el=(n,r,a)=>(Xo(n,r,"default"),a&&Xo(a,r,"default")),Mi=(n,r,a)=>(a=n!=null?Xs(Ks(n)):{},Xo(r||!n||!n.__esModule?Go(a,"default",{value:n,enumerable:!0}):a,n)),Ii=Qs((n,r)=>{(function(a,h){"use strict";typeof r=="object"&&typeof r.exports=="object"?r.exports=a.document?h(a,!0):function(f){if(!f.document)throw new Error("jQuery requires a window with a document");return h(f)}:h(a)})(typeof window<"u"?window:n,function(a,h){"use strict";var f=[],y=Object.getPrototypeOf,_=f.slice,O=f.flat?function(e){return f.flat.call(e)}:function(e){return f.concat.apply([],e)},A=f.push,P=f.indexOf,U={},Y=U.toString,Z=U.hasOwnProperty,ce=Z.toString,Fe=ce.call(Object),K={},q=function(e){return typeof e=="function"&&typeof e.nodeType!="number"&&typeof e.item!="function"},qe=function(e){return e!=null&&e===e.window},X=a.document,Rt={type:!0,src:!0,nonce:!0,noModule:!0};function Pt(e,t,o){o=o||X;var i,l,u=o.createElement("script");if(u.text=e,t)for(i in Rt)l=t[i]||t.getAttribute&&t.getAttribute(i),l&&u.setAttribute(i,l);o.head.appendChild(u).parentNode.removeChild(u)}function We(e){return e==null?e+"":typeof e=="object"||typeof e=="function"?U[Y.call(e)]||"object":typeof e}var sn="3.6.1",s=function(e,t){return new s.fn.init(e,t)};s.fn=s.prototype={jquery:sn,constructor:s,length:0,toArray:function(){return _.call(this)},get:function(e){return e==null?_.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=s.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return s.each(this,e)},map:function(e){return this.pushStack(s.map(this,function(t,o){return e.call(t,o,t)}))},slice:function(){return this.pushStack(_.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(s.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(s.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,o=+e+(e<0?t:0);return this.pushStack(o>=0&&o0&&t-1 in e}var ke=function(e){var t,o,i,l,u,c,g,p,w,S,T,x,C,j,W,R,de,ue,we,ne="sizzle"+1*new Date,F=e.document,ye=0,J=0,le=bn(),Ut=bn(),gn=bn(),xe=bn(),at=function(d,m){return d===m&&(T=!0),0},st={}.hasOwnProperty,be=[],Qe=be.pop,Te=be.push,Ze=be.push,Nr=be.slice,lt=function(d,m){for(var v=0,E=d.length;v+~]|"+ee+")"+ee+"*"),La=new RegExp(ee+"|>"),Ba=new RegExp(lo),Ha=new RegExp("^"+ut+"$"),yn={ID:new RegExp("^#("+ut+")"),CLASS:new RegExp("^\\.("+ut+")"),TAG:new RegExp("^("+ut+"|[*])"),ATTR:new RegExp("^"+zr),PSEUDO:new RegExp("^"+lo),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ee+"*(even|odd|(([+-]|)(\\d*)n|)"+ee+"*(?:([+-]|)"+ee+"*(\\d+)|))"+ee+"*\\)|)","i"),bool:new RegExp("^(?:"+so+")$","i"),needsContext:new RegExp("^"+ee+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ee+"*((?:-\\d)?\\d*)"+ee+"*\\)|)(?=[^-]|$)","i")},Fa=/HTML$/i,qa=/^(?:input|select|textarea|button)$/i,Wa=/^h\d$/i,Xt=/^[^{]+\{\s*\[native \w/,Va=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,uo=/[+~]/,Xe=new RegExp("\\\\[\\da-fA-F]{1,6}"+ee+"?|\\\\([^\\r\\n\\f])","g"),Ge=function(d,m){var v="0x"+d.slice(1)-65536;return m||(v<0?String.fromCharCode(v+65536):String.fromCharCode(v>>10|55296,v&1023|56320))},Rr=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Pr=function(d,m){return m?d==="\0"?"\uFFFD":d.slice(0,-1)+"\\"+d.charCodeAt(d.length-1).toString(16)+" ":"\\"+d},Mr=function(){x()},Ua=xn(function(d){return d.disabled===!0&&d.nodeName.toLowerCase()==="fieldset"},{dir:"parentNode",next:"legend"});try{Ze.apply(be=Nr.call(F.childNodes),F.childNodes),be[F.childNodes.length].nodeType}catch(d){Ze={apply:be.length?function(m,v){Te.apply(m,Nr.call(v))}:function(m,v){for(var E=m.length,b=0;m[E++]=v[b++];);m.length=E-1}}}function oe(d,m,v,E){var b,k,D,N,z,L,M,H=m&&m.ownerDocument,G=m?m.nodeType:9;if(v=v||[],typeof d!="string"||!d||G!==1&&G!==9&&G!==11)return v;if(!E&&(x(m),m=m||C,W)){if(G!==11&&(z=Va.exec(d)))if(b=z[1]){if(G===9)if(D=m.getElementById(b)){if(D.id===b)return v.push(D),v}else return v;else if(H&&(D=H.getElementById(b))&&we(m,D)&&D.id===b)return v.push(D),v}else{if(z[2])return Ze.apply(v,m.getElementsByTagName(d)),v;if((b=z[3])&&o.getElementsByClassName&&m.getElementsByClassName)return Ze.apply(v,m.getElementsByClassName(b)),v}if(o.qsa&&!xe[d+" "]&&(!R||!R.test(d))&&(G!==1||m.nodeName.toLowerCase()!=="object")){if(M=d,H=m,G===1&&(La.test(d)||jr.test(d))){for(H=uo.test(d)&&ho(m.parentNode)||m,(H!==m||!o.scope)&&((N=m.getAttribute("id"))?N=N.replace(Rr,Pr):m.setAttribute("id",N=ne)),L=c(d),k=L.length;k--;)L[k]=(N?"#"+N:":scope")+" "+wn(L[k]);M=L.join(",")}try{return Ze.apply(v,H.querySelectorAll(M)),v}catch(re){xe(d,!0)}finally{N===ne&&m.removeAttribute("id")}}}return p(d.replace(vn,"$1"),m,v,E)}function bn(){var d=[];function m(v,E){return d.push(v+" ")>i.cacheLength&&delete m[d.shift()],m[v+" "]=E}return m}function Ne(d){return d[ne]=!0,d}function ze(d){var m=C.createElement("fieldset");try{return!!d(m)}catch(v){return!1}finally{m.parentNode&&m.parentNode.removeChild(m),m=null}}function co(d,m){for(var v=d.split("|"),E=v.length;E--;)i.attrHandle[v[E]]=m}function Ir(d,m){var v=m&&d,E=v&&d.nodeType===1&&m.nodeType===1&&d.sourceIndex-m.sourceIndex;if(E)return E;if(v){for(;v=v.nextSibling;)if(v===m)return-1}return d?1:-1}function Xa(d){return function(m){var v=m.nodeName.toLowerCase();return v==="input"&&m.type===d}}function Ga(d){return function(m){var v=m.nodeName.toLowerCase();return(v==="input"||v==="button")&&m.type===d}}function Lr(d){return function(m){return"form"in m?m.parentNode&&m.disabled===!1?"label"in m?"label"in m.parentNode?m.parentNode.disabled===d:m.disabled===d:m.isDisabled===d||m.isDisabled!==!d&&Ua(m)===d:m.disabled===d:"label"in m?m.disabled===d:!1}}function ct(d){return Ne(function(m){return m=+m,Ne(function(v,E){for(var b,k=d([],v.length,m),D=k.length;D--;)v[b=k[D]]&&(v[b]=!(E[b]=v[b]))})})}function ho(d){return d&&typeof d.getElementsByTagName<"u"&&d}o=oe.support={},u=oe.isXML=function(d){var m=d&&d.namespaceURI,v=d&&(d.ownerDocument||d).documentElement;return!Fa.test(m||v&&v.nodeName||"HTML")},x=oe.setDocument=function(d){var m,v,E=d?d.ownerDocument||d:F;return E==C||E.nodeType!==9||!E.documentElement||(C=E,j=C.documentElement,W=!u(C),F!=C&&(v=C.defaultView)&&v.top!==v&&(v.addEventListener?v.addEventListener("unload",Mr,!1):v.attachEvent&&v.attachEvent("onunload",Mr)),o.scope=ze(function(b){return j.appendChild(b).appendChild(C.createElement("div")),typeof b.querySelectorAll<"u"&&!b.querySelectorAll(":scope fieldset div").length}),o.attributes=ze(function(b){return b.className="i",!b.getAttribute("className")}),o.getElementsByTagName=ze(function(b){return b.appendChild(C.createComment("")),!b.getElementsByTagName("*").length}),o.getElementsByClassName=Xt.test(C.getElementsByClassName),o.getById=ze(function(b){return j.appendChild(b).id=ne,!C.getElementsByName||!C.getElementsByName(ne).length}),o.getById?(i.filter.ID=function(b){var k=b.replace(Xe,Ge);return function(D){return D.getAttribute("id")===k}},i.find.ID=function(b,k){if(typeof k.getElementById<"u"&&W){var D=k.getElementById(b);return D?[D]:[]}}):(i.filter.ID=function(b){var k=b.replace(Xe,Ge);return function(D){var N=typeof D.getAttributeNode<"u"&&D.getAttributeNode("id");return N&&N.value===k}},i.find.ID=function(b,k){if(typeof k.getElementById<"u"&&W){var D,N,z,L=k.getElementById(b);if(L){if(D=L.getAttributeNode("id"),D&&D.value===b)return[L];for(z=k.getElementsByName(b),N=0;L=z[N++];)if(D=L.getAttributeNode("id"),D&&D.value===b)return[L]}return[]}}),i.find.TAG=o.getElementsByTagName?function(b,k){if(typeof k.getElementsByTagName<"u")return k.getElementsByTagName(b);if(o.qsa)return k.querySelectorAll(b)}:function(b,k){var D,N=[],z=0,L=k.getElementsByTagName(b);if(b==="*"){for(;D=L[z++];)D.nodeType===1&&N.push(D);return N}return L},i.find.CLASS=o.getElementsByClassName&&function(b,k){if(typeof k.getElementsByClassName<"u"&&W)return k.getElementsByClassName(b)},de=[],R=[],(o.qsa=Xt.test(C.querySelectorAll))&&(ze(function(b){var k;j.appendChild(b).innerHTML="",b.querySelectorAll("[msallowcapture^='']").length&&R.push("[*^$]="+ee+`*(?:''|"")`),b.querySelectorAll("[selected]").length||R.push("\\["+ee+"*(?:value|"+so+")"),b.querySelectorAll("[id~="+ne+"-]").length||R.push("~="),k=C.createElement("input"),k.setAttribute("name",""),b.appendChild(k),b.querySelectorAll("[name='']").length||R.push("\\["+ee+"*name"+ee+"*="+ee+`*(?:''|"")`),b.querySelectorAll(":checked").length||R.push(":checked"),b.querySelectorAll("a#"+ne+"+*").length||R.push(".#.+[+~]"),b.querySelectorAll("\\\f"),R.push("[\\r\\n\\f]")}),ze(function(b){b.innerHTML="";var k=C.createElement("input");k.setAttribute("type","hidden"),b.appendChild(k).setAttribute("name","D"),b.querySelectorAll("[name=d]").length&&R.push("name"+ee+"*[*^$|!~]?="),b.querySelectorAll(":enabled").length!==2&&R.push(":enabled",":disabled"),j.appendChild(b).disabled=!0,b.querySelectorAll(":disabled").length!==2&&R.push(":enabled",":disabled"),b.querySelectorAll("*,:x"),R.push(",.*:")})),(o.matchesSelector=Xt.test(ue=j.matches||j.webkitMatchesSelector||j.mozMatchesSelector||j.oMatchesSelector||j.msMatchesSelector))&&ze(function(b){o.disconnectedMatch=ue.call(b,"*"),ue.call(b,"[s!='']:x"),de.push("!=",lo)}),R=R.length&&new RegExp(R.join("|")),de=de.length&&new RegExp(de.join("|")),m=Xt.test(j.compareDocumentPosition),we=m||Xt.test(j.contains)?function(b,k){var D=b.nodeType===9?b.documentElement:b,N=k&&k.parentNode;return b===N||!!(N&&N.nodeType===1&&(D.contains?D.contains(N):b.compareDocumentPosition&&b.compareDocumentPosition(N)&16))}:function(b,k){if(k){for(;k=k.parentNode;)if(k===b)return!0}return!1},at=m?function(b,k){if(b===k)return T=!0,0;var D=!b.compareDocumentPosition-!k.compareDocumentPosition;return D||(D=(b.ownerDocument||b)==(k.ownerDocument||k)?b.compareDocumentPosition(k):1,D&1||!o.sortDetached&&k.compareDocumentPosition(b)===D?b==C||b.ownerDocument==F&&we(F,b)?-1:k==C||k.ownerDocument==F&&we(F,k)?1:S?lt(S,b)-lt(S,k):0:D&4?-1:1)}:function(b,k){if(b===k)return T=!0,0;var D,N=0,z=b.parentNode,L=k.parentNode,M=[b],H=[k];if(!z||!L)return b==C?-1:k==C?1:z?-1:L?1:S?lt(S,b)-lt(S,k):0;if(z===L)return Ir(b,k);for(D=b;D=D.parentNode;)M.unshift(D);for(D=k;D=D.parentNode;)H.unshift(D);for(;M[N]===H[N];)N++;return N?Ir(M[N],H[N]):M[N]==F?-1:H[N]==F?1:0}),C},oe.matches=function(d,m){return oe(d,null,null,m)},oe.matchesSelector=function(d,m){if(x(d),o.matchesSelector&&W&&!xe[m+" "]&&(!de||!de.test(m))&&(!R||!R.test(m)))try{var v=ue.call(d,m);if(v||o.disconnectedMatch||d.document&&d.document.nodeType!==11)return v}catch(E){xe(m,!0)}return oe(m,C,null,[d]).length>0},oe.contains=function(d,m){return(d.ownerDocument||d)!=C&&x(d),we(d,m)},oe.attr=function(d,m){(d.ownerDocument||d)!=C&&x(d);var v=i.attrHandle[m.toLowerCase()],E=v&&st.call(i.attrHandle,m.toLowerCase())?v(d,m,!W):void 0;return E!==void 0?E:o.attributes||!W?d.getAttribute(m):(E=d.getAttributeNode(m))&&E.specified?E.value:null},oe.escape=function(d){return(d+"").replace(Rr,Pr)},oe.error=function(d){throw new Error("Syntax error, unrecognized expression: "+d)},oe.uniqueSort=function(d){var m,v=[],E=0,b=0;if(T=!o.detectDuplicates,S=!o.sortStable&&d.slice(0),d.sort(at),T){for(;m=d[b++];)m===d[b]&&(E=v.push(b));for(;E--;)d.splice(v[E],1)}return S=null,d},l=oe.getText=function(d){var m,v="",E=0,b=d.nodeType;if(b){if(b===1||b===9||b===11){if(typeof d.textContent=="string")return d.textContent;for(d=d.firstChild;d;d=d.nextSibling)v+=l(d)}else if(b===3||b===4)return d.nodeValue}else for(;m=d[E++];)v+=l(m);return v},i=oe.selectors={cacheLength:50,createPseudo:Ne,match:yn,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(d){return d[1]=d[1].replace(Xe,Ge),d[3]=(d[3]||d[4]||d[5]||"").replace(Xe,Ge),d[2]==="~="&&(d[3]=" "+d[3]+" "),d.slice(0,4)},CHILD:function(d){return d[1]=d[1].toLowerCase(),d[1].slice(0,3)==="nth"?(d[3]||oe.error(d[0]),d[4]=+(d[4]?d[5]+(d[6]||1):2*(d[3]==="even"||d[3]==="odd")),d[5]=+(d[7]+d[8]||d[3]==="odd")):d[3]&&oe.error(d[0]),d},PSEUDO:function(d){var m,v=!d[6]&&d[2];return yn.CHILD.test(d[0])?null:(d[3]?d[2]=d[4]||d[5]||"":v&&Ba.test(v)&&(m=c(v,!0))&&(m=v.indexOf(")",v.length-m)-v.length)&&(d[0]=d[0].slice(0,m),d[2]=v.slice(0,m)),d.slice(0,3))}},filter:{TAG:function(d){var m=d.replace(Xe,Ge).toLowerCase();return d==="*"?function(){return!0}:function(v){return v.nodeName&&v.nodeName.toLowerCase()===m}},CLASS:function(d){var m=le[d+" "];return m||(m=new RegExp("(^|"+ee+")"+d+"("+ee+"|$)"))&&le(d,function(v){return m.test(typeof v.className=="string"&&v.className||typeof v.getAttribute<"u"&&v.getAttribute("class")||"")})},ATTR:function(d,m,v){return function(E){var b=oe.attr(E,d);return b==null?m==="!=":m?(b+="",m==="="?b===v:m==="!="?b!==v:m==="^="?v&&b.indexOf(v)===0:m==="*="?v&&b.indexOf(v)>-1:m==="$="?v&&b.slice(-v.length)===v:m==="~="?(" "+b.replace(Ma," ")+" ").indexOf(v)>-1:m==="|="?b===v||b.slice(0,v.length+1)===v+"-":!1):!0}},CHILD:function(d,m,v,E,b){var k=d.slice(0,3)!=="nth",D=d.slice(-4)!=="last",N=m==="of-type";return E===1&&b===0?function(z){return!!z.parentNode}:function(z,L,M){var H,G,re,B,he,fe,_e=k!==D?"nextSibling":"previousSibling",se=z.parentNode,Gt=N&&z.nodeName.toLowerCase(),Yt=!M&&!N,Se=!1;if(se){if(k){for(;_e;){for(B=z;B=B[_e];)if(N?B.nodeName.toLowerCase()===Gt:B.nodeType===1)return!1;fe=_e=d==="only"&&!fe&&"nextSibling"}return!0}if(fe=[D?se.firstChild:se.lastChild],D&&Yt){for(B=se,re=B[ne]||(B[ne]={}),G=re[B.uniqueID]||(re[B.uniqueID]={}),H=G[d]||[],he=H[0]===ye&&H[1],Se=he&&H[2],B=he&&se.childNodes[he];B=++he&&B&&B[_e]||(Se=he=0)||fe.pop();)if(B.nodeType===1&&++Se&&B===z){G[d]=[ye,he,Se];break}}else if(Yt&&(B=z,re=B[ne]||(B[ne]={}),G=re[B.uniqueID]||(re[B.uniqueID]={}),H=G[d]||[],he=H[0]===ye&&H[1],Se=he),Se===!1)for(;(B=++he&&B&&B[_e]||(Se=he=0)||fe.pop())&&!((N?B.nodeName.toLowerCase()===Gt:B.nodeType===1)&&++Se&&(Yt&&(re=B[ne]||(B[ne]={}),G=re[B.uniqueID]||(re[B.uniqueID]={}),G[d]=[ye,Se]),B===z)););return Se-=b,Se===E||Se%E===0&&Se/E>=0}}},PSEUDO:function(d,m){var v,E=i.pseudos[d]||i.setFilters[d.toLowerCase()]||oe.error("unsupported pseudo: "+d);return E[ne]?E(m):E.length>1?(v=[d,d,"",m],i.setFilters.hasOwnProperty(d.toLowerCase())?Ne(function(b,k){for(var D,N=E(b,m),z=N.length;z--;)D=lt(b,N[z]),b[D]=!(k[D]=N[z])}):function(b){return E(b,0,v)}):E}},pseudos:{not:Ne(function(d){var m=[],v=[],E=g(d.replace(vn,"$1"));return E[ne]?Ne(function(b,k,D,N){for(var z,L=E(b,null,N,[]),M=b.length;M--;)(z=L[M])&&(b[M]=!(k[M]=z))}):function(b,k,D){return m[0]=b,E(m,null,D,v),m[0]=null,!v.pop()}}),has:Ne(function(d){return function(m){return oe(d,m).length>0}}),contains:Ne(function(d){return d=d.replace(Xe,Ge),function(m){return(m.textContent||l(m)).indexOf(d)>-1}}),lang:Ne(function(d){return Ha.test(d||"")||oe.error("unsupported lang: "+d),d=d.replace(Xe,Ge).toLowerCase(),function(m){var v;do if(v=W?m.lang:m.getAttribute("xml:lang")||m.getAttribute("lang"))return v=v.toLowerCase(),v===d||v.indexOf(d+"-")===0;while((m=m.parentNode)&&m.nodeType===1);return!1}}),target:function(d){var m=e.location&&e.location.hash;return m&&m.slice(1)===d.id},root:function(d){return d===j},focus:function(d){return d===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(d.type||d.href||~d.tabIndex)},enabled:Lr(!1),disabled:Lr(!0),checked:function(d){var m=d.nodeName.toLowerCase();return m==="input"&&!!d.checked||m==="option"&&!!d.selected},selected:function(d){return d.parentNode&&d.parentNode.selectedIndex,d.selected===!0},empty:function(d){for(d=d.firstChild;d;d=d.nextSibling)if(d.nodeType<6)return!1;return!0},parent:function(d){return!i.pseudos.empty(d)},header:function(d){return Wa.test(d.nodeName)},input:function(d){return qa.test(d.nodeName)},button:function(d){var m=d.nodeName.toLowerCase();return m==="input"&&d.type==="button"||m==="button"},text:function(d){var m;return d.nodeName.toLowerCase()==="input"&&d.type==="text"&&((m=d.getAttribute("type"))==null||m.toLowerCase()==="text")},first:ct(function(){return[0]}),last:ct(function(d,m){return[m-1]}),eq:ct(function(d,m,v){return[v<0?v+m:v]}),even:ct(function(d,m){for(var v=0;vm?m:v;--E>=0;)d.push(E);return d}),gt:ct(function(d,m,v){for(var E=v<0?v+m:v;++E1?function(m,v,E){for(var b=d.length;b--;)if(!d[b](m,v,E))return!1;return!0}:d[0]}function Ya(d,m,v){for(var E=0,b=m.length;E-1&&(D[M]=!(N[M]=G))}}else se=_n(se===N?se.splice(he,se.length):se),b?b(null,N,se,L):Ze.apply(N,se)})}function mo(d){for(var m,v,E,b=d.length,k=i.relative[d[0].type],D=k||i.relative[" "],N=k?1:0,z=xn(function(H){return H===m},D,!0),L=xn(function(H){return lt(m,H)>-1},D,!0),M=[function(H,G,re){var B=!k&&(re||G!==w)||((m=G).nodeType?z(H,G,re):L(H,G,re));return m=null,B}];N1&&fo(M),N>1&&wn(d.slice(0,N-1).concat({value:d[N-2].type===" "?"*":""})).replace(vn,"$1"),v,N0,E=d.length>0,b=function(k,D,N,z,L){var M,H,G,re=0,B="0",he=k&&[],fe=[],_e=w,se=k||E&&i.find.TAG("*",L),Gt=ye+=_e==null?1:Math.random()||.1,Yt=se.length;for(L&&(w=D==C||D||L);B!==Yt&&(M=se[B])!=null;B++){if(E&&M){for(H=0,!D&&M.ownerDocument!=C&&(x(M),N=!W);G=d[H++];)if(G(M,D||C,N)){z.push(M);break}L&&(ye=Gt)}v&&((M=!G&&M)&&re--,k&&he.push(M))}if(re+=B,v&&B!==re){for(H=0;G=m[H++];)G(he,fe,D,N);if(k){if(re>0)for(;B--;)he[B]||fe[B]||(fe[B]=Qe.call(z));fe=_n(fe)}Ze.apply(z,fe),L&&!k&&fe.length>0&&re+m.length>1&&oe.uniqueSort(z)}return L&&(ye=Gt,w=_e),he};return v?Ne(b):b}return g=oe.compile=function(d,m){var v,E=[],b=[],k=gn[d+" "];if(!k){for(m||(m=c(d)),v=m.length;v--;)k=mo(m[v]),k[ne]?E.push(k):b.push(k);k=gn(d,Ka(b,E)),k.selector=d}return k},p=oe.select=function(d,m,v,E){var b,k,D,N,z,L=typeof d=="function"&&d,M=!E&&c(d=L.selector||d);if(v=v||[],M.length===1){if(k=M[0]=M[0].slice(0),k.length>2&&(D=k[0]).type==="ID"&&m.nodeType===9&&W&&i.relative[k[1].type]){if(m=(i.find.ID(D.matches[0].replace(Xe,Ge),m)||[])[0],m)L&&(m=m.parentNode);else return v;d=d.slice(k.shift().value.length)}for(b=yn.needsContext.test(d)?0:k.length;b--&&(D=k[b],!i.relative[N=D.type]);)if((z=i.find[N])&&(E=z(D.matches[0].replace(Xe,Ge),uo.test(k[0].type)&&ho(m.parentNode)||m))){if(k.splice(b,1),d=E.length&&wn(k),!d)return Ze.apply(v,E),v;break}}return(L||g(d,M))(E,m,!W,v,!m||uo.test(d)&&ho(m.parentNode)||m),v},o.sortStable=ne.split("").sort(at).join("")===ne,o.detectDuplicates=!!T,x(),o.sortDetached=ze(function(d){return d.compareDocumentPosition(C.createElement("fieldset"))&1}),ze(function(d){return d.innerHTML="",d.firstChild.getAttribute("href")==="#"})||co("type|href|height|width",function(d,m,v){if(!v)return d.getAttribute(m,m.toLowerCase()==="type"?1:2)}),(!o.attributes||!ze(function(d){return d.innerHTML="",d.firstChild.setAttribute("value",""),d.firstChild.getAttribute("value")===""}))&&co("value",function(d,m,v){if(!v&&d.nodeName.toLowerCase()==="input")return d.defaultValue}),ze(function(d){return d.getAttribute("disabled")==null})||co(so,function(d,m,v){var E;if(!v)return d[m]===!0?m.toLowerCase():(E=d.getAttributeNode(m))&&E.specified?E.value:null}),oe}(a);s.find=ke,s.expr=ke.selectors,s.expr[":"]=s.expr.pseudos,s.uniqueSort=s.unique=ke.uniqueSort,s.text=ke.getText,s.isXMLDoc=ke.isXML,s.contains=ke.contains,s.escapeSelector=ke.escape;var Je=function(e,t,o){for(var i=[],l=o!==void 0;(e=e[t])&&e.nodeType!==9;)if(e.nodeType===1){if(l&&s(e).is(o))break;i.push(e)}return i},ln=function(e,t){for(var o=[];e;e=e.nextSibling)e.nodeType===1&&e!==t&&o.push(e);return o},Mt=s.expr.match.needsContext;function Ae(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var Ko=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Vn(e,t,o){return q(t)?s.grep(e,function(i,l){return!!t.call(i,l,i)!==o}):t.nodeType?s.grep(e,function(i){return i===t!==o}):typeof t!="string"?s.grep(e,function(i){return P.call(t,i)>-1!==o}):s.filter(t,e,o)}s.filter=function(e,t,o){var i=t[0];return o&&(e=":not("+e+")"),t.length===1&&i.nodeType===1?s.find.matchesSelector(i,e)?[i]:[]:s.find.matches(e,s.grep(t,function(l){return l.nodeType===1}))},s.fn.extend({find:function(e){var t,o,i=this.length,l=this;if(typeof e!="string")return this.pushStack(s(e).filter(function(){for(t=0;t1?s.uniqueSort(o):o},filter:function(e){return this.pushStack(Vn(this,e||[],!1))},not:function(e){return this.pushStack(Vn(this,e||[],!0))},is:function(e){return!!Vn(this,typeof e=="string"&&Mt.test(e)?s(e):e||[],!1).length}});var Jo,Bi=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Hi=s.fn.init=function(e,t,o){var i,l;if(!e)return this;if(o=o||Jo,typeof e=="string")if(e[0]==="<"&&e[e.length-1]===">"&&e.length>=3?i=[null,e,null]:i=Bi.exec(e),i&&(i[1]||!t))if(i[1]){if(t=t instanceof s?t[0]:t,s.merge(this,s.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:X,!0)),Ko.test(i[1])&&s.isPlainObject(t))for(i in t)q(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}else return l=X.getElementById(i[2]),l&&(this[0]=l,this.length=1),this;else return!t||t.jquery?(t||o).find(e):this.constructor(t).find(e);else{if(e.nodeType)return this[0]=e,this.length=1,this;if(q(e))return o.ready!==void 0?o.ready(e):e(s)}return s.makeArray(e,this)};Hi.prototype=s.fn,Jo=s(X);var Fi=/^(?:parents|prev(?:Until|All))/,qi={children:!0,contents:!0,next:!0,prev:!0};s.fn.extend({has:function(e){var t=s(e,this),o=t.length;return this.filter(function(){for(var i=0;i-1:o.nodeType===1&&s.find.matchesSelector(o,e))){u.push(o);break}}return this.pushStack(u.length>1?s.uniqueSort(u):u)},index:function(e){return e?typeof e=="string"?P.call(s(e),this[0]):P.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(s.uniqueSort(s.merge(this.get(),s(e,t))))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}});function Qo(e,t){for(;(e=e[t])&&e.nodeType!==1;);return e}s.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return Je(e,"parentNode")},parentsUntil:function(e,t,o){return Je(e,"parentNode",o)},next:function(e){return Qo(e,"nextSibling")},prev:function(e){return Qo(e,"previousSibling")},nextAll:function(e){return Je(e,"nextSibling")},prevAll:function(e){return Je(e,"previousSibling")},nextUntil:function(e,t,o){return Je(e,"nextSibling",o)},prevUntil:function(e,t,o){return Je(e,"previousSibling",o)},siblings:function(e){return ln((e.parentNode||{}).firstChild,e)},children:function(e){return ln(e.firstChild)},contents:function(e){return e.contentDocument!=null&&y(e.contentDocument)?e.contentDocument:(Ae(e,"template")&&(e=e.content||e),s.merge([],e.childNodes))}},function(e,t){s.fn[e]=function(o,i){var l=s.map(this,t,o);return e.slice(-5)!=="Until"&&(i=o),i&&typeof i=="string"&&(l=s.filter(i,l)),this.length>1&&(qi[e]||s.uniqueSort(l),Fi.test(e)&&l.reverse()),this.pushStack(l)}});var Pe=/[^\x20\t\r\n\f]+/g;function Wi(e){var t={};return s.each(e.match(Pe)||[],function(o,i){t[i]=!0}),t}s.Callbacks=function(e){e=typeof e=="string"?Wi(e):s.extend({},e);var t,o,i,l,u=[],c=[],g=-1,p=function(){for(l=l||e.once,i=t=!0;c.length;g=-1)for(o=c.shift();++g-1;)u.splice(x,1),x<=g&&g--}),this},has:function(S){return S?s.inArray(S,u)>-1:u.length>0},empty:function(){return u&&(u=[]),this},disable:function(){return l=c=[],u=o="",this},disabled:function(){return!u},lock:function(){return l=c=[],!o&&!t&&(u=o=""),this},locked:function(){return!!l},fireWith:function(S,T){return l||(T=T||[],T=[S,T.slice?T.slice():T],c.push(T),t||p()),this},fire:function(){return w.fireWith(this,arguments),this},fired:function(){return!!i}};return w};function xt(e){return e}function un(e){throw e}function Zo(e,t,o,i){var l;try{e&&q(l=e.promise)?l.call(e).done(t).fail(o):e&&q(l=e.then)?l.call(e,t,o):t.apply(void 0,[e].slice(i))}catch(u){o.apply(void 0,[u])}}s.extend({Deferred:function(e){var t=[["notify","progress",s.Callbacks("memory"),s.Callbacks("memory"),2],["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),0,"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),1,"rejected"]],o="pending",i={state:function(){return o},always:function(){return l.done(arguments).fail(arguments),this},catch:function(u){return i.then(null,u)},pipe:function(){var u=arguments;return s.Deferred(function(c){s.each(t,function(g,p){var w=q(u[p[4]])&&u[p[4]];l[p[1]](function(){var S=w&&w.apply(this,arguments);S&&q(S.promise)?S.promise().progress(c.notify).done(c.resolve).fail(c.reject):c[p[0]+"With"](this,w?[S]:arguments)})}),u=null}).promise()},then:function(u,c,g){var p=0;function w(S,T,x,C){return function(){var j=this,W=arguments,R=function(){var ue,we;if(!(S=p&&(x!==un&&(j=void 0,W=[ue]),T.rejectWith(j,W))}};S?de():(s.Deferred.getStackHook&&(de.stackTrace=s.Deferred.getStackHook()),a.setTimeout(de))}}return s.Deferred(function(S){t[0][3].add(w(0,S,q(g)?g:xt,S.notifyWith)),t[1][3].add(w(0,S,q(u)?u:xt)),t[2][3].add(w(0,S,q(c)?c:un))}).promise()},promise:function(u){return u!=null?s.extend(u,i):i}},l={};return s.each(t,function(u,c){var g=c[2],p=c[5];i[c[1]]=g.add,p&&g.add(function(){o=p},t[3-u][2].disable,t[3-u][3].disable,t[0][2].lock,t[0][3].lock),g.add(c[3].fire),l[c[0]]=function(){return l[c[0]+"With"](this===l?void 0:this,arguments),this},l[c[0]+"With"]=g.fireWith}),i.promise(l),e&&e.call(l,l),l},when:function(e){var t=arguments.length,o=t,i=Array(o),l=_.call(arguments),u=s.Deferred(),c=function(g){return function(p){i[g]=this,l[g]=arguments.length>1?_.call(arguments):p,--t||u.resolveWith(i,l)}};if(t<=1&&(Zo(e,u.done(c(o)).resolve,u.reject,!t),u.state()==="pending"||q(l[o]&&l[o].then)))return u.then();for(;o--;)Zo(l[o],c(o),u.reject);return u.promise()}});var Vi=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;s.Deferred.exceptionHook=function(e,t){a.console&&a.console.warn&&e&&Vi.test(e.name)&&a.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},s.readyException=function(e){a.setTimeout(function(){throw e})};var Un=s.Deferred();s.fn.ready=function(e){return Un.then(e).catch(function(t){s.readyException(t)}),this},s.extend({isReady:!1,readyWait:1,ready:function(e){(e===!0?--s.readyWait:s.isReady)||(s.isReady=!0,!(e!==!0&&--s.readyWait>0)&&Un.resolveWith(X,[s]))}}),s.ready.then=Un.then;function cn(){X.removeEventListener("DOMContentLoaded",cn),a.removeEventListener("load",cn),s.ready()}X.readyState==="complete"||X.readyState!=="loading"&&!X.documentElement.doScroll?a.setTimeout(s.ready):(X.addEventListener("DOMContentLoaded",cn),a.addEventListener("load",cn));var Ve=function(e,t,o,i,l,u,c){var g=0,p=e.length,w=o==null;if(We(o)==="object"){l=!0;for(g in o)Ve(e,t,g,o[g],!0,u,c)}else if(i!==void 0&&(l=!0,q(i)||(c=!0),w&&(c?(t.call(e,i),t=null):(w=t,t=function(S,T,x){return w.call(s(S),x)})),t))for(;g1,null,!0)},removeData:function(e){return this.each(function(){me.remove(this,e)})}}),s.extend({queue:function(e,t,o){var i;if(e)return t=(t||"fx")+"queue",i=I.get(e,t),o&&(!i||Array.isArray(o)?i=I.access(e,t,s.makeArray(o)):i.push(o)),i||[]},dequeue:function(e,t){t=t||"fx";var o=s.queue(e,t),i=o.length,l=o.shift(),u=s._queueHooks(e,t),c=function(){s.dequeue(e,t)};l==="inprogress"&&(l=o.shift(),i--),l&&(t==="fx"&&o.unshift("inprogress"),delete u.stop,l.call(e,c,u)),!i&&u&&u.empty.fire()},_queueHooks:function(e,t){var o=t+"queueHooks";return I.get(e,o)||I.access(e,o,{empty:s.Callbacks("once memory").add(function(){I.remove(e,[t+"queue",o])})})}}),s.fn.extend({queue:function(e,t){var o=2;return typeof e!="string"&&(t=e,e="fx",o--),arguments.length\x20\t\r\n\f]*)/i,ir=/^$|^module$|\/(?:java|ecma)script/i;(function(){var e=X.createDocumentFragment(),t=e.appendChild(X.createElement("div")),o=X.createElement("input");o.setAttribute("type","radio"),o.setAttribute("checked","checked"),o.setAttribute("name","t"),t.appendChild(o),K.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="",K.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,t.innerHTML="",K.option=!!t.lastChild})();var $e={thead:[1,"","
    "],col:[2,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],_default:[0,"",""]};$e.tbody=$e.tfoot=$e.colgroup=$e.caption=$e.thead,$e.th=$e.td,K.option||($e.optgroup=$e.option=[1,""]);function ge(e,t){var o;return typeof e.getElementsByTagName<"u"?o=e.getElementsByTagName(t||"*"):typeof e.querySelectorAll<"u"?o=e.querySelectorAll(t||"*"):o=[],t===void 0||t&&Ae(e,t)?s.merge([e],o):o}function Xn(e,t){for(var o=0,i=e.length;o-1){l&&l.push(u);continue}if(w=_t(u),c=ge(T.appendChild(u),"script"),w&&Xn(c),o)for(S=0;u=c[S++];)ir.test(u.type||"")&&o.push(u)}return T}var sr=/^([^.]*)(?:\.(.+)|)/;function Ct(){return!0}function Et(){return!1}function ta(e,t){return e===na()==(t==="focus")}function na(){try{return X.activeElement}catch(e){}}function Gn(e,t,o,i,l,u){var c,g;if(typeof t=="object"){typeof o!="string"&&(i=i||o,o=void 0);for(g in t)Gn(e,g,o,i,t[g],u);return e}if(i==null&&l==null?(l=o,i=o=void 0):l==null&&(typeof o=="string"?(l=i,i=void 0):(l=i,i=o,o=void 0)),l===!1)l=Et;else if(!l)return e;return u===1&&(c=l,l=function(p){return s().off(p),c.apply(this,arguments)},l.guid=c.guid||(c.guid=s.guid++)),e.each(function(){s.event.add(this,t,l,i,o)})}s.event={global:{},add:function(e,t,o,i,l){var u,c,g,p,w,S,T,x,C,j,W,R=I.get(e);if(It(e))for(o.handler&&(u=o,o=u.handler,l=u.selector),l&&s.find.matchesSelector(ot,l),o.guid||(o.guid=s.guid++),(p=R.events)||(p=R.events=Object.create(null)),(c=R.handle)||(c=R.handle=function(de){return typeof s<"u"&&s.event.triggered!==de.type?s.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(Pe)||[""],w=t.length;w--;)g=sr.exec(t[w])||[],C=W=g[1],j=(g[2]||"").split(".").sort(),C&&(T=s.event.special[C]||{},C=(l?T.delegateType:T.bindType)||C,T=s.event.special[C]||{},S=s.extend({type:C,origType:W,data:i,handler:o,guid:o.guid,selector:l,needsContext:l&&s.expr.match.needsContext.test(l),namespace:j.join(".")},u),(x=p[C])||(x=p[C]=[],x.delegateCount=0,(!T.setup||T.setup.call(e,i,j,c)===!1)&&e.addEventListener&&e.addEventListener(C,c)),T.add&&(T.add.call(e,S),S.handler.guid||(S.handler.guid=o.guid)),l?x.splice(x.delegateCount++,0,S):x.push(S),s.event.global[C]=!0)},remove:function(e,t,o,i,l){var u,c,g,p,w,S,T,x,C,j,W,R=I.hasData(e)&&I.get(e);if(!(!R||!(p=R.events))){for(t=(t||"").match(Pe)||[""],w=t.length;w--;){if(g=sr.exec(t[w])||[],C=W=g[1],j=(g[2]||"").split(".").sort(),!C){for(C in p)s.event.remove(e,C+t[w],o,i,!0);continue}for(T=s.event.special[C]||{},C=(i?T.delegateType:T.bindType)||C,x=p[C]||[],g=g[2]&&new RegExp("(^|\\.)"+j.join("\\.(?:.*\\.|)")+"(\\.|$)"),c=u=x.length;u--;)S=x[u],(l||W===S.origType)&&(!o||o.guid===S.guid)&&(!g||g.test(S.namespace))&&(!i||i===S.selector||i==="**"&&S.selector)&&(x.splice(u,1),S.selector&&x.delegateCount--,T.remove&&T.remove.call(e,S));c&&!x.length&&((!T.teardown||T.teardown.call(e,j,R.handle)===!1)&&s.removeEvent(e,C,R.handle),delete p[C])}s.isEmptyObject(p)&&I.remove(e,"handle events")}},dispatch:function(e){var t,o,i,l,u,c,g=new Array(arguments.length),p=s.event.fix(e),w=(I.get(this,"events")||Object.create(null))[p.type]||[],S=s.event.special[p.type]||{};for(g[0]=p,t=1;t=1)){for(;w!==this;w=w.parentNode||this)if(w.nodeType===1&&!(e.type==="click"&&w.disabled===!0)){for(u=[],c={},o=0;o-1:s.find(l,this,null,[w]).length),c[l]&&u.push(i);u.length&&g.push({elem:w,handlers:u})}}return w=this,p\s*$/g;function lr(e,t){return Ae(e,"table")&&Ae(t.nodeType!==11?t:t.firstChild,"tr")&&s(e).children("tbody")[0]||e}function aa(e){return e.type=(e.getAttribute("type")!==null)+"/"+e.type,e}function sa(e){return(e.type||"").slice(0,5)==="true/"?e.type=e.type.slice(5):e.removeAttribute("type"),e}function ur(e,t){var o,i,l,u,c,g,p;if(t.nodeType===1){if(I.hasData(e)&&(u=I.get(e),p=u.events,p)){I.remove(t,"handle events");for(l in p)for(o=0,i=p[l].length;o1&&typeof C=="string"&&!K.checkClone&&ra.test(C))return e.each(function(W){var R=e.eq(W);j&&(t[0]=C.call(this,W,R.html())),kt(R,t,o,i)});if(T&&(l=ar(t,e[0].ownerDocument,!1,e,i),u=l.firstChild,l.childNodes.length===1&&(l=u),u||i)){for(c=s.map(ge(l,"script"),aa),g=c.length;S0&&Xn(c,!p&&ge(e,"script")),g},cleanData:function(e){for(var t,o,i,l=s.event.special,u=0;(o=e[u])!==void 0;u++)if(It(o)){if(t=o[I.expando]){if(t.events)for(i in t.events)l[i]?s.event.remove(o,i):s.removeEvent(o,i,t.handle);o[I.expando]=void 0}o[me.expando]&&(o[me.expando]=void 0)}}}),s.fn.extend({detach:function(e){return cr(this,e,!0)},remove:function(e){return cr(this,e)},text:function(e){return Ve(this,function(t){return t===void 0?s.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=t)})},null,e,arguments.length)},append:function(){return kt(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=lr(this,e);t.appendChild(e)}})},prepend:function(){return kt(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=lr(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return kt(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return kt(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;(e=this[t])!=null;t++)e.nodeType===1&&(s.cleanData(ge(e,!1)),e.textContent="");return this},clone:function(e,t){return e=e!=null?e:!1,t=t!=null?t:e,this.map(function(){return s.clone(this,e,t)})},html:function(e){return Ve(this,function(t){var o=this[0]||{},i=0,l=this.length;if(t===void 0&&o.nodeType===1)return o.innerHTML;if(typeof t=="string"&&!oa.test(t)&&!$e[(rr.exec(t)||["",""])[1].toLowerCase()]){t=s.htmlPrefilter(t);try{for(;i=0&&(p+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-u-p-g-.5))||0),p}function br(e,t,o){var i=fn(e),l=!K.boxSizingReliable()||o,u=l&&s.css(e,"boxSizing",!1,i)==="border-box",c=u,g=Ft(e,t,i),p="offset"+t[0].toUpperCase()+t.slice(1);if(Yn.test(g)){if(!o)return g;g="auto"}return(!K.boxSizingReliable()&&u||!K.reliableTrDimensions()&&Ae(e,"tr")||g==="auto"||!parseFloat(g)&&s.css(e,"display",!1,i)==="inline")&&e.getClientRects().length&&(u=s.css(e,"boxSizing",!1,i)==="border-box",c=p in e,c&&(g=e[p])),g=parseFloat(g)||0,g+Qn(e,t,o||(u?"border":"content"),c,i,g)+"px"}s.extend({cssHooks:{opacity:{get:function(e,t){if(t){var o=Ft(e,"opacity");return o===""?"1":o}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!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,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,o,i){if(!(!e||e.nodeType===3||e.nodeType===8||!e.style)){var l,u,c,g=Me(t),p=Kn.test(t),w=e.style;if(p||(t=Jn(g)),c=s.cssHooks[t]||s.cssHooks[g],o!==void 0){if(u=typeof o,u==="string"&&(l=Bt.exec(o))&&l[1]&&(o=nr(e,t,l),u="number"),o==null||o!==o)return;u==="number"&&!p&&(o+=l&&l[3]||(s.cssNumber[g]?"":"px")),!K.clearCloneStyle&&o===""&&t.indexOf("background")===0&&(w[t]="inherit"),(!c||!("set"in c)||(o=c.set(e,o,i))!==void 0)&&(p?w.setProperty(t,o):w[t]=o)}else return c&&"get"in c&&(l=c.get(e,!1,i))!==void 0?l:w[t]}},css:function(e,t,o,i){var l,u,c,g=Me(t),p=Kn.test(t);return p||(t=Jn(g)),c=s.cssHooks[t]||s.cssHooks[g],c&&"get"in c&&(l=c.get(e,!0,o)),l===void 0&&(l=Ft(e,t,i)),l==="normal"&&t in vr&&(l=vr[t]),o===""||o?(u=parseFloat(l),o===!0||isFinite(u)?u||0:l):l}}),s.each(["height","width"],function(e,t){s.cssHooks[t]={get:function(o,i,l){if(i)return ha.test(s.css(o,"display"))&&(!o.getClientRects().length||!o.getBoundingClientRect().width)?dr(o,fa,function(){return br(o,t,l)}):br(o,t,l)},set:function(o,i,l){var u,c=fn(o),g=!K.scrollboxSize()&&c.position==="absolute",p=g||l,w=p&&s.css(o,"boxSizing",!1,c)==="border-box",S=l?Qn(o,t,l,w,c):0;return w&&g&&(S-=Math.ceil(o["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(c[t])-Qn(o,t,"border",!1,c)-.5)),S&&(u=Bt.exec(i))&&(u[3]||"px")!=="px"&&(o.style[t]=i,i=s.css(o,t)),yr(o,i,S)}}}),s.cssHooks.marginLeft=fr(K.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ft(e,"marginLeft"))||e.getBoundingClientRect().left-dr(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),s.each({margin:"",padding:"",border:"Width"},function(e,t){s.cssHooks[e+t]={expand:function(o){for(var i=0,l={},u=typeof o=="string"?o.split(" "):[o];i<4;i++)l[e+Ue[i]+t]=u[i]||u[i-2]||u[0];return l}},e!=="margin"&&(s.cssHooks[e+t].set=yr)}),s.fn.extend({css:function(e,t){return Ve(this,function(o,i,l){var u,c,g={},p=0;if(Array.isArray(i)){for(u=fn(o),c=i.length;p1)}});function ve(e,t,o,i,l){return new ve.prototype.init(e,t,o,i,l)}s.Tween=ve,ve.prototype={constructor:ve,init:function(e,t,o,i,l,u){this.elem=e,this.prop=o,this.easing=l||s.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=u||(s.cssNumber[o]?"":"px")},cur:function(){var e=ve.propHooks[this.prop];return e&&e.get?e.get(this):ve.propHooks._default.get(this)},run:function(e){var t,o=ve.propHooks[this.prop];return this.options.duration?this.pos=t=s.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),o&&o.set?o.set(this):ve.propHooks._default.set(this),this}},ve.prototype.init.prototype=ve.prototype,ve.propHooks={_default:{get:function(e){var t;return e.elem.nodeType!==1||e.elem[e.prop]!=null&&e.elem.style[e.prop]==null?e.elem[e.prop]:(t=s.css(e.elem,e.prop,""),!t||t==="auto"?0:t)},set:function(e){s.fx.step[e.prop]?s.fx.step[e.prop](e):e.elem.nodeType===1&&(s.cssHooks[e.prop]||e.elem.style[Jn(e.prop)]!=null)?s.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},ve.propHooks.scrollTop=ve.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},s.easing={linear:function(e){return e},swing:function(e){return .5-Math.cos(e*Math.PI)/2},_default:"swing"},s.fx=ve.prototype.init,s.fx.step={};var At,pn,pa=/^(?:toggle|show|hide)$/,ma=/queueHooks$/;function Zn(){pn&&(X.hidden===!1&&a.requestAnimationFrame?a.requestAnimationFrame(Zn):a.setTimeout(Zn,s.fx.interval),s.fx.tick())}function wr(){return a.setTimeout(function(){At=void 0}),At=Date.now()}function mn(e,t){var o,i=0,l={height:e};for(t=t?1:0;i<4;i+=2-t)o=Ue[i],l["margin"+o]=l["padding"+o]=e;return t&&(l.opacity=l.width=e),l}function xr(e,t,o){for(var i,l=(Oe.tweeners[t]||[]).concat(Oe.tweeners["*"]),u=0,c=l.length;u1)},removeAttr:function(e){return this.each(function(){s.removeAttr(this,e)})}}),s.extend({attr:function(e,t,o){var i,l,u=e.nodeType;if(!(u===3||u===8||u===2)){if(typeof e.getAttribute>"u")return s.prop(e,t,o);if((u!==1||!s.isXMLDoc(e))&&(l=s.attrHooks[t.toLowerCase()]||(s.expr.match.bool.test(t)?_r:void 0)),o!==void 0){if(o===null){s.removeAttr(e,t);return}return l&&"set"in l&&(i=l.set(e,o,t))!==void 0?i:(e.setAttribute(t,o+""),o)}return l&&"get"in l&&(i=l.get(e,t))!==null?i:(i=s.find.attr(e,t),i!=null?i:void 0)}},attrHooks:{type:{set:function(e,t){if(!K.radioValue&&t==="radio"&&Ae(e,"input")){var o=e.value;return e.setAttribute("type",t),o&&(e.value=o),t}}}},removeAttr:function(e,t){var o,i=0,l=t&&t.match(Pe);if(l&&e.nodeType===1)for(;o=l[i++];)e.removeAttribute(o)}}),_r={set:function(e,t,o){return t===!1?s.removeAttr(e,o):e.setAttribute(o,o),o}},s.each(s.expr.match.bool.source.match(/\w+/g),function(e,t){var o=qt[t]||s.find.attr;qt[t]=function(i,l,u){var c,g,p=l.toLowerCase();return u||(g=qt[p],qt[p]=c,c=o(i,l,u)!=null?p:null,qt[p]=g),c}});var ya=/^(?:input|select|textarea|button)$/i,ba=/^(?:a|area)$/i;s.fn.extend({prop:function(e,t){return Ve(this,s.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[s.propFix[e]||e]})}}),s.extend({prop:function(e,t,o){var i,l,u=e.nodeType;if(!(u===3||u===8||u===2))return(u!==1||!s.isXMLDoc(e))&&(t=s.propFix[t]||t,l=s.propHooks[t]),o!==void 0?l&&"set"in l&&(i=l.set(e,o,t))!==void 0?i:e[t]=o:l&&"get"in l&&(i=l.get(e,t))!==null?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=s.find.attr(e,"tabindex");return t?parseInt(t,10):ya.test(e.nodeName)||ba.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),K.optSelected||(s.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),s.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){s.propFix[this.toLowerCase()]=this});function rt(e){var t=e.match(Pe)||[];return t.join(" ")}function it(e){return e.getAttribute&&e.getAttribute("class")||""}function eo(e){return Array.isArray(e)?e:typeof e=="string"?e.match(Pe)||[]:[]}s.fn.extend({addClass:function(e){var t,o,i,l,u,c;return q(e)?this.each(function(g){s(this).addClass(e.call(this,g,it(this)))}):(t=eo(e),t.length?this.each(function(){if(i=it(this),o=this.nodeType===1&&" "+rt(i)+" ",o){for(u=0;u-1;)o=o.replace(" "+l+" "," ");c=rt(o),i!==c&&this.setAttribute("class",c)}}):this):this.attr("class","")},toggleClass:function(e,t){var o,i,l,u,c=typeof e,g=c==="string"||Array.isArray(e);return q(e)?this.each(function(p){s(this).toggleClass(e.call(this,p,it(this),t),t)}):typeof t=="boolean"&&g?t?this.addClass(e):this.removeClass(e):(o=eo(e),this.each(function(){if(g)for(u=s(this),l=0;l-1)return!0;return!1}});var wa=/\r/g;s.fn.extend({val:function(e){var t,o,i,l=this[0];return arguments.length?(i=q(e),this.each(function(u){var c;this.nodeType===1&&(i?c=e.call(this,u,s(this).val()):c=e,c==null?c="":typeof c=="number"?c+="":Array.isArray(c)&&(c=s.map(c,function(g){return g==null?"":g+""})),t=s.valHooks[this.type]||s.valHooks[this.nodeName.toLowerCase()],(!t||!("set"in t)||t.set(this,c,"value")===void 0)&&(this.value=c))})):l?(t=s.valHooks[l.type]||s.valHooks[l.nodeName.toLowerCase()],t&&"get"in t&&(o=t.get(l,"value"))!==void 0?o:(o=l.value,typeof o=="string"?o.replace(wa,""):o!=null?o:"")):void 0}}),s.extend({valHooks:{option:{get:function(e){var t=s.find.attr(e,"value");return t!=null?t:rt(s.text(e))}},select:{get:function(e){var t,o,i,l=e.options,u=e.selectedIndex,c=e.type==="select-one",g=c?null:[],p=c?u+1:l.length;for(u<0?i=p:i=c?u:0;i-1)&&(o=!0);return o||(e.selectedIndex=-1),u}}}}),s.each(["radio","checkbox"],function(){s.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=s.inArray(s(e).val(),t)>-1}},K.checkOn||(s.valHooks[this].get=function(e){return e.getAttribute("value")===null?"on":e.value})}),K.focusin="onfocusin"in a;var Sr=/^(?:focusinfocus|focusoutblur)$/,Cr=function(e){e.stopPropagation()};s.extend(s.event,{trigger:function(e,t,o,i){var l,u,c,g,p,w,S,T,x=[o||X],C=Z.call(e,"type")?e.type:e,j=Z.call(e,"namespace")?e.namespace.split("."):[];if(u=T=c=o=o||X,!(o.nodeType===3||o.nodeType===8)&&!Sr.test(C+s.event.triggered)&&(C.indexOf(".")>-1&&(j=C.split("."),C=j.shift(),j.sort()),p=C.indexOf(":")<0&&"on"+C,e=e[s.expando]?e:new s.Event(C,typeof e=="object"&&e),e.isTrigger=i?2:3,e.namespace=j.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+j.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=o),t=t==null?[e]:s.makeArray(t,[e]),S=s.event.special[C]||{},!(!i&&S.trigger&&S.trigger.apply(o,t)===!1))){if(!i&&!S.noBubble&&!qe(o)){for(g=S.delegateType||C,Sr.test(g+C)||(u=u.parentNode);u;u=u.parentNode)x.push(u),c=u;c===(o.ownerDocument||X)&&x.push(c.defaultView||c.parentWindow||a)}for(l=0;(u=x[l++])&&!e.isPropagationStopped();)T=u,e.type=l>1?g:S.bindType||C,w=(I.get(u,"events")||Object.create(null))[e.type]&&I.get(u,"handle"),w&&w.apply(u,t),w=p&&u[p],w&&w.apply&&It(u)&&(e.result=w.apply(u,t),e.result===!1&&e.preventDefault());return e.type=C,!i&&!e.isDefaultPrevented()&&(!S._default||S._default.apply(x.pop(),t)===!1)&&It(o)&&p&&q(o[C])&&!qe(o)&&(c=o[p],c&&(o[p]=null),s.event.triggered=C,e.isPropagationStopped()&&T.addEventListener(C,Cr),o[C](),e.isPropagationStopped()&&T.removeEventListener(C,Cr),s.event.triggered=void 0,c&&(o[p]=c)),e.result}},simulate:function(e,t,o){var i=s.extend(new s.Event,o,{type:e,isSimulated:!0});s.event.trigger(i,null,t)}}),s.fn.extend({trigger:function(e,t){return this.each(function(){s.event.trigger(e,t,this)})},triggerHandler:function(e,t){var o=this[0];if(o)return s.event.trigger(e,t,o,!0)}}),K.focusin||s.each({focus:"focusin",blur:"focusout"},function(e,t){var o=function(i){s.event.simulate(t,i.target,s.event.fix(i))};s.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,l=I.access(i,t);l||i.addEventListener(e,o,!0),I.access(i,t,(l||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,l=I.access(i,t)-1;l?I.access(i,t,l):(i.removeEventListener(e,o,!0),I.remove(i,t))}}});var Wt=a.location,Er={guid:Date.now()},to=/\?/;s.parseXML=function(e){var t,o;if(!e||typeof e!="string")return null;try{t=new a.DOMParser().parseFromString(e,"text/xml")}catch(i){}return o=t&&t.getElementsByTagName("parsererror")[0],(!t||o)&&s.error("Invalid XML: "+(o?s.map(o.childNodes,function(i){return i.textContent}).join(` `):e)),t};var xa=/\[\]$/,kr=/\r?\n/g,_a=/^(?:submit|button|image|reset|file)$/i,Sa=/^(?:input|select|textarea|keygen)/i;function no(e,t,o,i){var l;if(Array.isArray(t))s.each(t,function(u,c){o||xa.test(e)?i(e,c):no(e+"["+(typeof c=="object"&&c!=null?u:"")+"]",c,o,i)});else if(!o&&We(t)==="object")for(l in t)no(e+"["+l+"]",t[l],o,i);else i(e,t)}s.param=function(e,t){var o,i=[],l=function(u,c){var g=q(c)?c():c;i[i.length]=encodeURIComponent(u)+"="+encodeURIComponent(g!=null?g:"")};if(e==null)return"";if(Array.isArray(e)||e.jquery&&!s.isPlainObject(e))s.each(e,function(){l(this.name,this.value)});else for(o in e)no(o,e[o],t,l);return i.join("&")},s.fn.extend({serialize:function(){return s.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=s.prop(this,"elements");return e?s.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!s(this).is(":disabled")&&Sa.test(this.nodeName)&&!_a.test(e)&&(this.checked||!Ht.test(e))}).map(function(e,t){var o=s(this).val();return o==null?null:Array.isArray(o)?s.map(o,function(i){return{name:t.name,value:i.replace(kr,`\r `)}}):{name:t.name,value:o.replace(kr,`\r `)}}).get()}});var Ca=/%20/g,Ea=/#.*$/,ka=/([?&])_=[^&]*/,Aa=/^(.*?):[ \t]*([^\r\n]*)$/mg,$a=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ta=/^(?:GET|HEAD)$/,Da=/^\/\//,Ar={},oo={},$r="*/".concat("*"),ro=X.createElement("a");ro.href=Wt.href;function Tr(e){return function(t,o){typeof t!="string"&&(o=t,t="*");var i,l=0,u=t.toLowerCase().match(Pe)||[];if(q(o))for(;i=u[l++];)i[0]==="+"?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(o)):(e[i]=e[i]||[]).push(o)}}function Dr(e,t,o,i){var l={},u=e===oo;function c(g){var p;return l[g]=!0,s.each(e[g]||[],function(w,S){var T=S(t,o,i);if(typeof T=="string"&&!u&&!l[T])return t.dataTypes.unshift(T),c(T),!1;if(u)return!(p=T)}),p}return c(t.dataTypes[0])||!l["*"]&&c("*")}function io(e,t){var o,i,l=s.ajaxSettings.flatOptions||{};for(o in t)t[o]!==void 0&&((l[o]?e:i||(i={}))[o]=t[o]);return i&&s.extend(!0,e,i),e}function Oa(e,t,o){for(var i,l,u,c,g=e.contents,p=e.dataTypes;p[0]==="*";)p.shift(),i===void 0&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i){for(l in g)if(g[l]&&g[l].test(i)){p.unshift(l);break}}if(p[0]in o)u=p[0];else{for(l in o){if(!p[0]||e.converters[l+" "+p[0]]){u=l;break}c||(c=l)}u=u||c}if(u)return u!==p[0]&&p.unshift(u),o[u]}function Na(e,t,o,i){var l,u,c,g,p,w={},S=e.dataTypes.slice();if(S[1])for(c in e.converters)w[c.toLowerCase()]=e.converters[c];for(u=S.shift();u;)if(e.responseFields[u]&&(o[e.responseFields[u]]=t),!p&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),p=u,u=S.shift(),u){if(u==="*")u=p;else if(p!=="*"&&p!==u){if(c=w[p+" "+u]||w["* "+u],!c){for(l in w)if(g=l.split(" "),g[1]===u&&(c=w[p+" "+g[0]]||w["* "+g[0]],c)){c===!0?c=w[l]:w[l]!==!0&&(u=g[0],S.unshift(g[1]));break}}if(c!==!0)if(c&&e.throws)t=c(t);else try{t=c(t)}catch(T){return{state:"parsererror",error:c?T:"No conversion from "+p+" to "+u}}}}return{state:"success",data:t}}s.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Wt.href,type:"GET",isLocal:$a.test(Wt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":$r,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":s.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?io(io(e,s.ajaxSettings),t):io(s.ajaxSettings,e)},ajaxPrefilter:Tr(Ar),ajaxTransport:Tr(oo),ajax:function(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};var o,i,l,u,c,g,p,w,S,T,x=s.ajaxSetup({},t),C=x.context||x,j=x.context&&(C.nodeType||C.jquery)?s(C):s.event,W=s.Deferred(),R=s.Callbacks("once memory"),de=x.statusCode||{},ue={},we={},ne="canceled",F={readyState:0,getResponseHeader:function(J){var le;if(p){if(!u)for(u={};le=Aa.exec(l);)u[le[1].toLowerCase()+" "]=(u[le[1].toLowerCase()+" "]||[]).concat(le[2]);le=u[J.toLowerCase()+" "]}return le==null?null:le.join(", ")},getAllResponseHeaders:function(){return p?l:null},setRequestHeader:function(J,le){return p==null&&(J=we[J.toLowerCase()]=we[J.toLowerCase()]||J,ue[J]=le),this},overrideMimeType:function(J){return p==null&&(x.mimeType=J),this},statusCode:function(J){var le;if(J)if(p)F.always(J[F.status]);else for(le in J)de[le]=[de[le],J[le]];return this},abort:function(J){var le=J||ne;return o&&o.abort(le),ye(0,le),this}};if(W.promise(F),x.url=((e||x.url||Wt.href)+"").replace(Da,Wt.protocol+"//"),x.type=t.method||t.type||x.method||x.type,x.dataTypes=(x.dataType||"*").toLowerCase().match(Pe)||[""],x.crossDomain==null){g=X.createElement("a");try{g.href=x.url,g.href=g.href,x.crossDomain=ro.protocol+"//"+ro.host!=g.protocol+"//"+g.host}catch(J){x.crossDomain=!0}}if(x.data&&x.processData&&typeof x.data!="string"&&(x.data=s.param(x.data,x.traditional)),Dr(Ar,x,t,F),p)return F;w=s.event&&x.global,w&&s.active++===0&&s.event.trigger("ajaxStart"),x.type=x.type.toUpperCase(),x.hasContent=!Ta.test(x.type),i=x.url.replace(Ea,""),x.hasContent?x.data&&x.processData&&(x.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(x.data=x.data.replace(Ca,"+")):(T=x.url.slice(i.length),x.data&&(x.processData||typeof x.data=="string")&&(i+=(to.test(i)?"&":"?")+x.data,delete x.data),x.cache===!1&&(i=i.replace(ka,"$1"),T=(to.test(i)?"&":"?")+"_="+Er.guid+++T),x.url=i+T),x.ifModified&&(s.lastModified[i]&&F.setRequestHeader("If-Modified-Since",s.lastModified[i]),s.etag[i]&&F.setRequestHeader("If-None-Match",s.etag[i])),(x.data&&x.hasContent&&x.contentType!==!1||t.contentType)&&F.setRequestHeader("Content-Type",x.contentType),F.setRequestHeader("Accept",x.dataTypes[0]&&x.accepts[x.dataTypes[0]]?x.accepts[x.dataTypes[0]]+(x.dataTypes[0]!=="*"?", "+$r+"; q=0.01":""):x.accepts["*"]);for(S in x.headers)F.setRequestHeader(S,x.headers[S]);if(x.beforeSend&&(x.beforeSend.call(C,F,x)===!1||p))return F.abort();if(ne="abort",R.add(x.complete),F.done(x.success),F.fail(x.error),o=Dr(oo,x,t,F),!o)ye(-1,"No Transport");else{if(F.readyState=1,w&&j.trigger("ajaxSend",[F,x]),p)return F;x.async&&x.timeout>0&&(c=a.setTimeout(function(){F.abort("timeout")},x.timeout));try{p=!1,o.send(ue,ye)}catch(J){if(p)throw J;ye(-1,J)}}function ye(J,le,Ut,gn){var xe,at,st,be,Qe,Te=le;p||(p=!0,c&&a.clearTimeout(c),o=void 0,l=gn||"",F.readyState=J>0?4:0,xe=J>=200&&J<300||J===304,Ut&&(be=Oa(x,F,Ut)),!xe&&s.inArray("script",x.dataTypes)>-1&&s.inArray("json",x.dataTypes)<0&&(x.converters["text script"]=function(){}),be=Na(x,be,F,xe),xe?(x.ifModified&&(Qe=F.getResponseHeader("Last-Modified"),Qe&&(s.lastModified[i]=Qe),Qe=F.getResponseHeader("etag"),Qe&&(s.etag[i]=Qe)),J===204||x.type==="HEAD"?Te="nocontent":J===304?Te="notmodified":(Te=be.state,at=be.data,st=be.error,xe=!st)):(st=Te,(J||!Te)&&(Te="error",J<0&&(J=0))),F.status=J,F.statusText=(le||Te)+"",xe?W.resolveWith(C,[at,Te,F]):W.rejectWith(C,[F,Te,st]),F.statusCode(de),de=void 0,w&&j.trigger(xe?"ajaxSuccess":"ajaxError",[F,x,xe?at:st]),R.fireWith(C,[F,Te]),w&&(j.trigger("ajaxComplete",[F,x]),--s.active||s.event.trigger("ajaxStop")))}return F},getJSON:function(e,t,o){return s.get(e,t,o,"json")},getScript:function(e,t){return s.get(e,void 0,t,"script")}}),s.each(["get","post"],function(e,t){s[t]=function(o,i,l,u){return q(i)&&(u=u||l,l=i,i=void 0),s.ajax(s.extend({url:o,type:t,dataType:u,data:i,success:l},s.isPlainObject(o)&&o))}}),s.ajaxPrefilter(function(e){var t;for(t in e.headers)t.toLowerCase()==="content-type"&&(e.contentType=e.headers[t]||"")}),s._evalUrl=function(e,t,o){return s.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(i){s.globalEval(i,t,o)}})},s.fn.extend({wrapAll:function(e){var t;return this[0]&&(q(e)&&(e=e.call(this[0])),t=s(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var o=this;o.firstElementChild;)o=o.firstElementChild;return o}).append(this)),this},wrapInner:function(e){return q(e)?this.each(function(t){s(this).wrapInner(e.call(this,t))}):this.each(function(){var t=s(this),o=t.contents();o.length?o.wrapAll(e):t.append(e)})},wrap:function(e){var t=q(e);return this.each(function(o){s(this).wrapAll(t?e.call(this,o):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){s(this).replaceWith(this.childNodes)}),this}}),s.expr.pseudos.hidden=function(e){return!s.expr.pseudos.visible(e)},s.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},s.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(e){}};var za={0:200,1223:204},Vt=s.ajaxSettings.xhr();K.cors=!!Vt&&"withCredentials"in Vt,K.ajax=Vt=!!Vt,s.ajaxTransport(function(e){var t,o;if(K.cors||Vt&&!e.crossDomain)return{send:function(i,l){var u,c=e.xhr();if(c.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(u in e.xhrFields)c[u]=e.xhrFields[u];e.mimeType&&c.overrideMimeType&&c.overrideMimeType(e.mimeType),!e.crossDomain&&!i["X-Requested-With"]&&(i["X-Requested-With"]="XMLHttpRequest");for(u in i)c.setRequestHeader(u,i[u]);t=function(g){return function(){t&&(t=o=c.onload=c.onerror=c.onabort=c.ontimeout=c.onreadystatechange=null,g==="abort"?c.abort():g==="error"?typeof c.status!="number"?l(0,"error"):l(c.status,c.statusText):l(za[c.status]||c.status,c.statusText,(c.responseType||"text")!=="text"||typeof c.responseText!="string"?{binary:c.response}:{text:c.responseText},c.getAllResponseHeaders()))}},c.onload=t(),o=c.onerror=c.ontimeout=t("error"),c.onabort!==void 0?c.onabort=o:c.onreadystatechange=function(){c.readyState===4&&a.setTimeout(function(){t&&o()})},t=t("abort");try{c.send(e.hasContent&&e.data||null)}catch(g){if(t)throw g}},abort:function(){t&&t()}}}),s.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),s.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return s.globalEval(e),e}}}),s.ajaxPrefilter("script",function(e){e.cache===void 0&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),s.ajaxTransport("script",function(e){if(e.crossDomain||e.scriptAttrs){var t,o;return{send:function(i,l){t=s("