PageSourceSearch

https://dingo.care2.com/assets/js/care2/home_page.js?1790195556

js care2.com collected 2026-09-24 08:27:24 UTC 808,641 bytes, 244 lines download raw bytes

1(()=>{var rO=Object.create;var Yo=Object.defineProperty;var iO=Object.getOwnPropertyDescriptor;var nO=Object.getOwnPropertyNames;var sO=Object.getPrototypeOf,aO=Object.prototype.hasOwnProperty;var oO=(r,e,t)=>e in r?Yo(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var l=(r,e)=>Yo(r,"name",{value:e,configurable:!0}),i_=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});var ie=(r,e)=>()=>(r&&(e=r(r=0)),e);var Pe=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),lO=(r,e)=>{for(var t in e)Yo(r,t,{get:e[t],enumerable:!0})},uO=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of nO(e))!aO.call(r,s)&&s!==t&&Yo(r,s,{get:()=>e[s],enumerable:!(i=iO(e,s))||i.enumerable});return r};var mt=(r,e,t)=>(t=r!=null?rO(sO(r)):{},uO(e||!r||!r.__esModule?Yo(t,"default",{value:r,enumerable:!0}):t,r));var Ie=(r,e,t)=>(oO(r,typeof e!="symbol"?e+"":e,t),t),Hh=(r,e,t)=>{if(!e.has(r))throw TypeError("Cannot "+t)};var De=(r,e,t)=>(Hh(r,e,"read from private field"),t?t.call(r):e.get(r)),xe=(r,e,t)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,t)},Le=(r,e,t,i)=>(Hh(r,e,"write to private field"),i?i.call(r,t):e.set(r,t),t);var Ot=(r,e,t)=>(Hh(r,e,"access private method"),t);var s_=Pe((n_,Jc)=>{(function(r,e){"use strict";typeof Jc=="object"&&typeof Jc.exports=="object"?Jc.exports=r.document?e(r,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(r)})(typeof window<"u"?window:n_,function(r,e){"use strict";var t=[],i=Object.getPrototypeOf,s=t.slice,n=t.flat?function(u){return t.flat.call(u)}:function(u){return t.concat.apply([],u)},a=t.push,c=t.indexOf,d={},o=d.toString,p=d.hasOwnProperty,g=p.toString,v=g.call(Object),m={},w=l(function(y){return typeof y=="function"&&typeof y.nodeType!="number"&&typeof y.item!="function"},"isFunction"),b=l(function(y){return y!=null&&y===y.window},"isWindow"),S=r.document,O={type:!0,src:!0,nonce:!0,noModule:!0};function P(u,y,x){x=x||S;var k,A,I=x.createElement("script");if(I.text=u,y)for(k in O)A=y[k]||y.getAttribute&&y.getAttribute(k),A&&I.setAttribute(k,A);x.head.appendChild(I).parentNode.removeChild(I)}l(P,"DOMEval");function N(u){return u==null?u+"":typeof u=="object"||typeof u=="function"?d[o.call(u)]||"object":typeof u}l(N,"toType");var B="3.7.1",q=/HTML$/i,h=l(function(u,y){return new h.fn.init(u,y)},"jQuery");h.fn=h.prototype={jquery:B,constructor:h,length:0,toArray:function(){return s.call(this)},get:function(u){return u==null?s.call(this):u<0?this[u+this.length]:this[u]},pushStack:function(u){var y=h.merge(this.constructor(),u);return y.prevObject=this,y},each:function(u){return h.each(this,u)},map:function(u){return this.pushStack(h.map(this,function(y,x){return u.call(y,x,y)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(h.grep(this,function(u,y){return(y+1)%2}))},odd:function(){return this.pushStack(h.grep(this,function(u,y){return y%2}))},eq:function(u){var y=this.length,x=+u+(u<0?y:0);return this.pushStack(x>=0&&x<y?[this[x]]:[])},end:function(){return this.prevObject||this.constructor()},push:a,sort:t.sort,splice:t.splice},h.extend=h.fn.extend=function(){var u,y,x,k,A,I,L=arguments[0]||{},Y=1,V=arguments.length,te=!1;for(typeof L=="boolean"&&(te=L,L=arguments[Y]||{},Y++),typeof L!="object"&&!w(L)&&(L={}),Y===V&&(L=this,Y--);Y<V;Y++)if((u=arguments[Y])!=null)for(y in u)k=u[y],!(y==="__proto__"||L===k)&&(te&&k&&(h.isPlainObject(k)||(A=Array.isArray(k)))?(x=L[y],A&&!Array.isArray(x)?I=[]:!A&&!h.isPlainObject(x)?I={}:I=x,A=!1,L[y]=h.extend(te,I,k)):k!==void 0&&(L[y]=k));return L},h.extend({expando:"jQuery"+(B+Math.random()).replace(/\D/g,""),isReady:!0,error:function(u){throw new Error(u)},noop:function(){},isPlainObject:function(u){var y,x;return!u||o.call(u)!=="[object Object]"?!1:(y=i(u),y?(x=p.call(y,"constructor")&&y.constructor,typeof x=="function"&&g.call(x)===v):!0)},isEmptyObject:function(u){var y;for(y in u)return!1;return!0},globalEval:function(u,y,x){P(u,{nonce:y&&y.nonce},x)},each:function(u,y){var x,k=0;if(M(u))for(x=u.length;k<x&&y.call(u[k],k,u[k])!==!1;k++);else for(k in u)if(y.call(u[k],k,u[k])===!1)break;return u},text:function(u){var y,x="",k=0,A=u.nodeType;if(!A)for(;y=u[k++];)x+=h.text(y);return A===1||A===11?u.textContent:A===9?u.documentElement.textContent:A===3||A===4?u.nodeValue:x},makeArray:function(u,y){var x=y||[];return u!=null&&(M(Object(u))?h.merge(x,typeof u=="string"?[u]:u):a.call(x,u)),x},inArray:function(u,y,x){return y==null?-1:c.call(y,u,x)},isXMLDoc:function(u){var y=u&&u.namespaceURI,x=u&&(u.ownerDocument||u).documentElement;return!q.test(y||x&&x.nodeName||"HTML")},merge:function(u,y){for(var x=+y.length,k=0,A=u.length;k<x;k++)u[A++]=y[k];return u.length=A,u},grep:function(u,y,x){for(var k,A=[],I=0,L=u.length,Y=!x;I<L;I++)k=!y(u[I],I),k!==Y&&A.push(u[I]);return A},map:function(u,y,x){var k,A,I=0,L=[];if(M(u))for(k=u.length;I<k;I++)A=y(u[I],I,x),A!=null&&L.push(A);else for(I in u)A=y(u[I],I,x),A!=null&&L.push(A);return n(L)},guid:1,support:m}),typeof Symbol=="function"&&(h.fn[Symbol.iterator]=t[Symbol.iterator]),h.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(u,y){d["[object "+y+"]"]=y.toLowerCase()});function M(u){var y=!!u&&"length"in u&&u.length,x=N(u);return w(u)||b(u)?!1:x==="array"||y===0||typeof y=="number"&&y>0&&y-1 in u}l(M,"isArrayLike");function R(u,y){return u.nodeName&&u.nodeName.toLowerCase()===y.toLowerCase()}l(R,"nodeName");var G=t.pop,pe=t.sort,ce=t.splice,be="[\\x20\\t\\r\\n\\f]",Te=new RegExp("^"+be+"+|((?:^|[^\\\\])(?:\\\\.)*)"+be+"+$","g");h.contains=function(u,y){var x=y&&y.parentNode;return u===x||!!(x&&x.nodeType===1&&(u.contains?u.contains(x):u.compareDocumentPosition&&u.compareDocumentPosition(x)&16))};var ze=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function Ke(u,y){return y?u==="\0"?"\uFFFD":u.slice(0,-1)+"\\"+u.charCodeAt(u.length-1).toString(16)+" ":"\\"+u}l(Ke,"fcssescape"),h.escapeSelector=function(u){return(u+"").replace(ze,Ke)};var tt=S,bt=a;(function(){var u,y,x,k,A,I=bt,L,Y,V,te,fe,ge=h.expando,ae=0,we=0,Je=pa(),pt=pa(),nt=pa(),er=pa(),Bt=l(function(z,X){return z===X&&(A=!0),0},"sortOrder"),ei="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ti="(?:\\\\[\\da-fA-F]{1,6}"+be+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",ft="\\["+be+"*("+ti+")(?:"+be+"*([*^$|!~]?=)"+be+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+ti+"))|)"+be+"*\\]",
1sn=":("+ti+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+ft+")*)|.*)\\)|)",yt=new RegExp(be+"+","g"),$t=new RegExp("^"+be+"*,"+be+"*"),ws=new RegExp("^"+be+"*([>+~]|"+be+")"+be+"*"),Mi=new RegExp(be+"|>"),ri=new RegExp(sn),an=new RegExp("^"+ti+"$"),ii={ID:new RegExp("^#("+ti+")"),CLASS:new RegExp("^\\.("+ti+")"),TAG:new RegExp("^("+ti+"|[*])"),ATTR:new RegExp("^"+ft),PSEUDO:new RegExp("^"+sn),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+be+"*(even|odd|(([+-]|)(\\d*)n|)"+be+"*(?:([+-]|)"+be+"*(\\d+)|))"+be+"*\\)|)","i"),bool:new RegExp("^(?:"+ei+")$","i"),needsContext:new RegExp("^"+be+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+be+"*((?:-\\d)?\\d*)"+be+"*\\)|)(?=[^-]|$)","i")},ni=/^(?:input|select|textarea|button)$/i,Ri=/^h\d$/i,Tr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Bo=/[+~]/,yi=new RegExp("\\\\[\\da-fA-F]{1,6}"+be+"?|\\\\([^\\r\\n\\f])","g"),si=l(function(z,X){var ne="0x"+z.slice(1)-65536;return X||(ne<0?String.fromCharCode(ne+65536):String.fromCharCode(ne>>10|55296,ne&1023|56320))},"funescape"),Dh=l(function(){Ni()},"unloadHandler"),Bc=ma(function(z){return z.disabled===!0&&R(z,"fieldset")},{dir:"parentNode",next:"legend"});function Pt(){try{return L.activeElement}catch{}}l(Pt,"safeActiveElement");try{I.apply(t=s.call(tt.childNodes),tt.childNodes),t[tt.childNodes.length].nodeType}catch{I={apply:function(X,ne){bt.apply(X,s.call(ne))},call:function(X){bt.apply(X,s.call(arguments,1))}}}function xt(z,X,ne,le){var me,Ee,Re,We,Ne,lt,Ve,Ge=X&&X.ownerDocument,st=X?X.nodeType:9;if(ne=ne||[],typeof z!="string"||!z||st!==1&&st!==9&&st!==11)return ne;if(!le&&(Ni(X),X=X||L,V)){if(st!==11&&(Ne=Tr.exec(z)))if(me=Ne[1]){if(st===9)if(Re=X.getElementById(me)){if(Re.id===me)return I.call(ne,Re),ne}else return ne;else if(Ge&&(Re=Ge.getElementById(me))&&xt.contains(X,Re)&&Re.id===me)return I.call(ne,Re),ne}else{if(Ne[2])return I.apply(ne,X.getElementsByTagName(z)),ne;if((me=Ne[3])&&X.getElementsByClassName)return I.apply(ne,X.getElementsByClassName(me)),ne}if(!er[z+" "]&&(!te||!te.test(z))){if(Ve=z,Ge=X,st===1&&(Mi.test(z)||ws.test(z))){for(Ge=Bo.test(z)&&zo(X.parentNode)||X,(Ge!=X||!m.scope)&&((We=X.getAttribute("id"))?We=h.escapeSelector(We):X.setAttribute("id",We=ge)),lt=Li(z),Ee=lt.length;Ee--;)lt[Ee]=(We?"#"+We:":scope")+" "+Rn(lt[Ee]);Ve=lt.join(",")}try{return I.apply(ne,Ge.querySelectorAll(Ve)),ne}catch{er(z,!0)}finally{We===ge&&X.removeAttribute("id")}}}return zc(z.replace(Te,"$1"),X,ne,le)}l(xt,"find");function pa(){var z=[];function X(ne,le){return z.push(ne+" ")>y.cacheLength&&delete X[z.shift()],X[ne+" "]=le}
1return l(X,"cache"),X}l(pa,"createCache");function Cr(z){return z[ge]=!0,z}l(Cr,"markFunction");function Fn(z){var X=L.createElement("fieldset");try{return!!z(X)}catch{return!1}finally{X.parentNode&&X.parentNode.removeChild(X),X=null}}l(Fn,"assert");function Ah(z){return function(X){return R(X,"input")&&X.type===z}}l(Ah,"createInputPseudo");function Ih(z){return function(X){return(R(X,"input")||R(X,"button"))&&X.type===z}}l(Ih,"createButtonPseudo");function Mn(z){return function(X){return"form"in X?X.parentNode&&X.disabled===!1?"label"in X?"label"in X.parentNode?X.parentNode.disabled===z:X.disabled===z:X.isDisabled===z||X.isDisabled!==!z&&Bc(X)===z:X.disabled===z:"label"in X?X.disabled===z:!1}}l(Mn,"createDisabledPseudo");function on(z){return Cr(function(X){return X=+X,Cr(function(ne,le){for(var me,Ee=z([],ne.length,X),Re=Ee.length;Re--;)ne[me=Ee[Re]]&&(ne[me]=!(le[me]=ne[me]))})})}l(on,"createPositionalPseudo");function zo(z){return z&&typeof z.getElementsByTagName<"u"&&z}l(zo,"testContext");function Ni(z){var X,ne=z?z.ownerDocument||z:tt;return ne==L||ne.nodeType!==9||!ne.documentElement||(L=ne,Y=L.documentElement,V=!h.isXMLDoc(L),fe=Y.matches||Y.webkitMatchesSelector||Y.msMatchesSelector,Y.msMatchesSelector&&tt!=L&&(X=L.defaultView)&&X.top!==X&&X.addEventListener("unload",Dh),m.getById=Fn(function(le){return Y.appendChild(le).id=h.expando,!L.getElementsByName||!L.getElementsByName(h.expando).length}),m.disconnectedMatch=Fn(function(le){return fe.call(le,"*")}),m.scope=Fn(function(){return L.querySelectorAll(":scope")}),m.cssHas=Fn(function(){try{return L.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),m.getById?(y.filter.ID=function(le){var me=le.replace(yi,si);return function(Ee){return Ee.getAttribute("id")===me}},y.find.ID=function(le,me){if(typeof me.getElementById<"u"&&V){var Ee=me.getElementById(le);return Ee?[Ee]:[]}}):(y.filter.ID=function(le){var me=le.replace(yi,si);return function(Ee){var Re=typeof Ee.getAttributeNode<"u"&&Ee.getAttributeNode("id");return Re&&Re.value===me}},y.find.ID=function(le,me){if(typeof me.getElementById<"u"&&V){var Ee,Re,We,Ne=me.getElementById(le);if(Ne){if(Ee=Ne.getAttributeNode("id"),Ee&&Ee.value===le)return[Ne];for(We=me.getElementsByName(le),Re=0;Ne=We[Re++];)if(Ee=Ne.getAttributeNode("id"),Ee&&Ee.value===le)return[Ne]}return[]}}),y.find.TAG=function(le,me){return typeof me.getElementsByTagName<"u"?me.getElementsByTagName(le):me.querySelectorAll(le)},y.find.CLASS=function(le,me){if(typeof me.getElementsByClassName<"u"&&V)return me.getElementsByClassName(le)},te=[],Fn(function(le){var me;Y.appendChild(le).innerHTML="<a id='"+ge+"' href='' disabled='disabled'></a><select id='"+ge+"-\r\\' disabled='disabled'><option selected=''></option></select>",le.querySelectorAll("[selected]").length||te.push("\\["+be+"*(?:value|"+ei+")"),le.querySelectorAll("[id~="+ge+"-]").length||te.push("~="),le.querySelectorAll("a#"+ge+"+*").length||te.push(".#.+[+~]"),le.querySelectorAll(":checked").length||te.push(":checked"),me=L.createElement("input"),me.setAttribute("type","hidden"),le.appendChild(me).setAttribute("name","D"),Y.appendChild(le).disabled=!0,le.querySelectorAll(":disabled").length!==2&&te.push(":enabled",":disabled"),me=L.createElement("input"),me.setAttribute("name",""),le.appendChild(me),le.querySelectorAll("[name='']").length||te.push("\\["+be+"*name"+be+"*="+be+`*(?:''|"")`)}),m.cssHas||te.push(":has"),te=te.length&&new RegExp(te.join("|")),Bt=l(function(le,me){if(le===me)return A=!0,0;var Ee=!le.compareDocumentPosition-!me.compareDocumentPosition;return Ee||(Ee=(le.ownerDocument||le)==(me.ownerDocument||me)?le.compareDocumentPosition(me):1,Ee&1||!m.sortDetached&&me.compareDocumentPosition(le)===Ee?le===L||le.ownerDocument==tt&&xt.contains(tt,le)?-1:me===L||me.ownerDocument==tt&&xt.contains(tt,me)?1:k?c.call(k,le)-c.call(k,me):0:Ee&4?-1:1)},"sortOrder")),L}l(Ni,"setDocument"),xt.matches=function(z,X){return xt(z,null,null,X)},xt.matchesSelector=function(z,X){if(Ni(z),V&&!er[X+" "]&&(!te||!te.test(X)))try{var ne=fe.call(z,X);if(ne||m.disconnectedMatch||z.document&&z.document.nodeType!==11)return ne}catch{er(X,!0)}return xt(X,L,null,[z]).length>0},xt.contains=function(z,X){return(z.ownerDocument||z)!=L&&Ni(z),h.contains(z,X)},xt.attr=function(z,X){(z.ownerDocument||z)!=L&&Ni(z);var ne=y.attrHandle[X.toLowerCase()],le=ne&&p.call(y.attrHandle,X.toLowerCase())?ne(z,X,!V):void 0;return le!==void 0?le:z.getAttribute(X)},xt.error=function(z){throw new Error("Syntax error, unrecognized expression: "+z)},h.uniqueSort=function(z){var X,ne=[],le=0,me=0;
vendor: 4,369 bytes, line 1
1if(A=!m.sortStable,k=!m.sortStable&&s.call(z,0),pe.call(z,Bt),A){for(;X=z[me++];)X===z[me]&&(le=ne.push(me));for(;le--;)ce.call(z,ne[le],1)}return k=null,z},h.fn.uniqueSort=function(){return this.pushStack(h.uniqueSort(s.apply(this)))},y=h.expr={cacheLength:50,createPseudo:Cr,match:ii,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(z){return z[1]=z[1].replace(yi,si),z[3]=(z[3]||z[4]||z[5]||"").replace(yi,si),z[2]==="~="&&(z[3]=" "+z[3]+" "),z.slice(0,4)},CHILD:function(z){return z[1]=z[1].toLowerCase(),z[1].slice(0,3)==="nth"?(z[3]||xt.error(z[0]),z[4]=+(z[4]?z[5]+(z[6]||1):2*(z[3]==="even"||z[3]==="odd")),z[5]=+(z[7]+z[8]||z[3]==="odd")):z[3]&&xt.error(z[0]),z},PSEUDO:function(z){var X,ne=!z[6]&&z[2];return ii.CHILD.test(z[0])?null:(z[3]?z[2]=z[4]||z[5]||"":ne&&ri.test(ne)&&(X=Li(ne,!0))&&(X=ne.indexOf(")",ne.length-X)-ne.length)&&(z[0]=z[0].slice(0,X),z[2]=ne.slice(0,X)),z.slice(0,3))}},filter:{TAG:function(z){var X=z.replace(yi,si).toLowerCase();return z==="*"?function(){return!0}:function(ne){return R(ne,X)}},CLASS:function(z){var X=Je[z+" "];return X||(X=new RegExp("(^|"+be+")"+z+"("+be+"|$)"))&&Je(z,function(ne){return X.test(typeof ne.className=="string"&&ne.className||typeof ne.getAttribute<"u"&&ne.getAttribute("class")||"")})},ATTR:function(z,X,ne){return function(le){var me=xt.attr(le,z);return me==null?X==="!=":X?(me+="",X==="="?me===ne:X==="!="?me!==ne:X==="^="?ne&&me.indexOf(ne)===0:X==="*="?ne&&me.indexOf(ne)>-1:X==="$="?ne&&me.slice(-ne.length)===ne:X==="~="?(" "+me.replace(yt," ")+" ").indexOf(ne)>-1:X==="|="?me===ne||me.slice(0,ne.length+1)===ne+"-":!1):!0}},CHILD:function(z,X,ne,le,me){var Ee=z.slice(0,3)!=="nth",Re=z.slice(-4)!=="last",We=X==="of-type";return le===1&&me===0?function(Ne){return!!Ne.parentNode}:function(Ne,lt,Ve){var Ge,st,Ye,Dt,fr,nr=Ee!==Re?"nextSibling":"previousSibling",Or=Ne.parentNode,Lr=We&&Ne.nodeName.toLowerCase(),Ln=!Ve&&!We,dr=!1;if(Or){if(Ee){for(;nr;){for(Ye=Ne;Ye=Ye[nr];)if(We?R(Ye,Lr):Ye.nodeType===1)return!1;fr=nr=z==="only"&&!fr&&"nextSibling"}return!0}if(fr=[Re?Or.firstChild:Or.lastChild],Re&&Ln){for(st=Or[ge]||(Or[ge]={}),Ge=st[z]||[],Dt=Ge[0]===ae&&Ge[1],dr=Dt&&Ge[2],Ye=Dt&&Or.childNodes[Dt];Ye=++Dt&&Ye&&Ye[nr]||(dr=Dt=0)||fr.pop();)if(Ye.nodeType===1&&++dr&&Ye===Ne){st[z]=[ae,Dt,dr];break}}else if(Ln&&(st=Ne[ge]||(Ne[ge]={}),Ge=st[z]||[],Dt=Ge[0]===ae&&Ge[1],dr=Dt),dr===!1)for(;(Ye=++Dt&&Ye&&Ye[nr]||(dr=Dt=0)||fr.pop())&&!((We?R(Ye,Lr):Ye.nodeType===1)&&++dr&&(Ln&&(st=Ye[ge]||(Ye[ge]={}),st[z]=[ae,dr]),Ye===Ne)););return dr-=me,dr===le||dr%le===0&&dr/le>=0}}},PSEUDO:function(z,X){var ne,le=y.pseudos[z]||y.setFilters[z.toLowerCase()]||xt.error("unsupported pseudo: "+z);return le[ge]?le(X):le.length>1?(ne=[z,z,"",X],y.setFilters.hasOwnProperty(z.toLowerCase())?Cr(function(me,Ee){for(var Re,We=le(me,X),Ne=We.length;Ne--;)Re=c.call(me,We[Ne]),me[Re]=!(Ee[Re]=We[Ne])}):function(me){return le(me,0,ne)}):le}},pseudos:{not:Cr(function(z){var X=[],ne=[],le=Vo(z.replace(Te,"$1"));return le[ge]?Cr(function(me,Ee,Re,We){for(var Ne,lt=le(me,null,We,[]),Ve=me.length;Ve--;)(Ne=lt[Ve])&&(me[Ve]=!(Ee[Ve]=Ne))}):function(me,Ee,Re){return X[0]=me,le(X,null,Re,ne),X[0]=null,!ne.pop()}}),has:Cr(function(z){return function(X){return xt(z,X).length>0}}),contains:Cr(function(z){return z=z.replace(yi,si),function(X){return(X.textContent||h.text(X)).indexOf(z)>-1}}),lang:Cr(function(z){return an.test(z||"")||xt.error("unsupported lang: "+z),z=z.replace(yi,si).toLowerCase(),function(X){var ne;do if(ne=V?X.lang:X.getAttribute("xml:lang")||X.getAttribute("lang"))return ne=ne.toLowerCase(),ne===z||ne.indexOf(z+"-")===0;while((X=X.parentNode)&&X.nodeType===1);return!1}}),target:function(z){var X=r.location&&r.location.hash;return X&&X.slice(1)===z.id},root:function(z){return z===Y},focus:function(z){return z===Pt()&&L.hasFocus()&&!!(z.type||z.href||~z.tabIndex)},enabled:Mn(!1),disabled:Mn(!0),checked:function(z){return R(z,"input")&&!!z.checked||R(z,"option")&&!!z.selected},selected:function(z){return z.parentNode&&z.parentNode.selectedIndex,z.selected===!0},empty:function(z){for(z=z.firstChild;z;z=z.nextSibling)if(z.nodeType<6)return!1;return!0},parent:function(z){return!y.pseudos.empty(z)},header:function(z){return Ri.test(z.nodeName)}
1,input:function(z){return ni.test(z.nodeName)},button:function(z){return R(z,"input")&&z.type==="button"||R(z,"button")},text:function(z){var X;return R(z,"input")&&z.type==="text"&&((X=z.getAttribute("type"))==null||X.toLowerCase()==="text")},first:on(function(){return[0]}),last:on(function(z,X){return[X-1]}),eq:on(function(z,X,ne){return[ne<0?ne+X:ne]}),even:on(function(z,X){for(var ne=0;ne<X;ne+=2)z.push(ne);return z}),odd:on(function(z,X){for(var ne=1;ne<X;ne+=2)z.push(ne);return z}),lt:on(function(z,X,ne){var le;for(ne<0?le=ne+X:ne>X?le=X:le=ne;--le>=0;)z.push(le);return z}),gt:on(function(z,X,ne){for(var le=ne<0?ne+X:ne;++le<X;)z.push(le);return z})}},y.pseudos.nth=y.pseudos.eq;for(u in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})y.pseudos[u]=Ah(u);for(u in{submit:!0,reset:!0})y.pseudos[u]=Ih(u);function Ss(){}l(Ss,"setFilters"),Ss.prototype=y.filters=y.pseudos,y.setFilters=new Ss;function Li(z,X){var ne,le,me,Ee,Re,We,Ne,lt=pt[z+" "];if(lt)return X?0:lt.slice(0);for(Re=z,We=[],Ne=y.preFilter;Re;){(!ne||(le=$t.exec(Re)))&&(le&&(Re=Re.slice(le[0].length)||Re),We.push(me=[])),ne=!1,(le=ws.exec(Re))&&(ne=le.shift(),me.push({value:ne,type:le[0].replace(Te," ")}),Re=Re.slice(ne.length));for(Ee in y.filter)(le=ii[Ee].exec(Re))&&(!Ne[Ee]||(le=Ne[Ee](le)))&&(ne=le.shift(),me.push({value:ne,type:Ee,matches:le}),Re=Re.slice(ne.length));if(!ne)break}return X?Re.length:Re?xt.error(z):pt(z,We).slice(0)}l(Li,"tokenize");function Rn(z){for(var X=0,ne=z.length,le="";X<ne;X++)le+=z[X].value;return le}l(Rn,"toSelector");function ma(z,X,ne){var le=X.dir,me=X.next,Ee=me||le,Re=ne&&Ee==="parentNode",We=we++;return X.first?function(Ne,lt,Ve){for(;Ne=Ne[le];)if(Ne.nodeType===1||Re)return z(Ne,lt,Ve);return!1}:function(Ne,lt,Ve){var Ge,st,Ye=[ae,We];if(Ve){for(;Ne=Ne[le];)if((Ne.nodeType===1||Re)&&z(Ne,lt,Ve))return!0}else for(;Ne=Ne[le];)if(Ne.nodeType===1||Re)if(st=Ne[ge]||(Ne[ge]={}),me&&R(Ne,me))Ne=Ne[le]||Ne;else{if((Ge=st[Ee])&&Ge[0]===ae&&Ge[1]===We)return Ye[2]=Ge[2];if(st[Ee]=Ye,Ye[2]=z(Ne,lt,Ve))return!0}return!1}}l(ma,"addCombinator");function ya(z){return z.length>1?function(X,ne,le){for(var me=z.length;me--;)if(!z[me](X,ne,le))return!1;return!0}:z[0]}l(ya,"elementMatcher");function Ph(z,X,ne){for(var le=0,me=X.length;le<me;le++)xt(z,X[le],ne);return ne}l(Ph,"multipleContexts");function Nn(z,X,ne,le,me){for(var Ee,Re=[],We=0,Ne=z.length,lt=X!=null;We<Ne;We++)(Ee=z[We])&&(!ne||ne(Ee,le,me))&&(Re.push(Ee),lt&&X.push(We));return Re}l(Nn,"condense");function xs(z,X,ne,le,me,Ee){return le&&!le[ge]&&(le=xs(le)),me&&!me[ge]&&(me=xs(me,Ee)),Cr(function(Re,We,Ne,lt){var Ve,Ge,st,Ye,Dt=[],fr=[],nr=We.length,Or=Re||Ph(X||"*",Ne.nodeType?[Ne]:Ne,[]),Lr=z&&(Re||!X)?Nn(Or,Dt,z,Ne,lt):Or;if(ne?(Ye=me||(Re?z:nr||le)?[]:We,ne(Lr,Ye,Ne,lt)):Ye=Lr,le)for(Ve=Nn(Ye,fr),le(Ve,[],Ne,lt),Ge=Ve.length;Ge--;)(st=Ve[Ge])&&(Ye[fr[Ge]]=!(Lr[fr[Ge]]=st));if(Re){if(me||z){if(me){for(Ve=[],Ge=Ye.length;Ge--;)(st=Ye[Ge])&&Ve.push(Lr[Ge]=st);me(null,Ye=[],Ve,lt)}for(Ge=Ye.length;Ge--;)(st=Ye[Ge])&&(Ve=me?c.call(Re,st):Dt[Ge])>
1-1&&(Re[Ve]=!(We[Ve]=st))}}else Ye=Nn(Ye===We?Ye.splice(nr,Ye.length):Ye),me?me(null,We,Ye,lt):I.apply(We,Ye)})}l(xs,"setMatcher");function ks(z){for(var X,ne,le,me=z.length,Ee=y.relative[z[0].type],Re=Ee||y.relative[" "],We=Ee?1:0,Ne=ma(function(Ge){return Ge===X},Re,!0),lt=ma(function(Ge){return c.call(X,Ge)>-1},Re,!0),Ve=[function(Ge,st,Ye){var Dt=!Ee&&(Ye||st!=x)||((X=st).nodeType?Ne(Ge,st,Ye):lt(Ge,st,Ye));return X=null,Dt}];We<me;We++)if(ne=y.relative[z[We].type])Ve=[ma(ya(Ve),ne)];else{if(ne=y.filter[z[We].type].apply(null,z[We].matches),ne[ge]){for(le=++We;le<me&&!y.relative[z[le].type];le++);return xs(We>1&&ya(Ve),We>1&&Rn(z.slice(0,We-1).concat({value:z[We-2].type===" "?"*":""})).replace(Te,"$1"),ne,We<le&&ks(z.slice(We,le)),le<me&&ks(z=z.slice(le)),le<me&&Rn(z))}Ve.push(ne)}return ya(Ve)}l(ks,"matcherFromTokens");function $h(z,X){var ne=X.length>0,le=z.length>0,me=l(function(Ee,Re,We,Ne,lt){var Ve,Ge,st,Ye=0,Dt="0",fr=Ee&&[],nr=[],Or=x,Lr=Ee||le&&y.find.TAG("*",lt),Ln=ae+=Or==null?1:Math.random()||.1,dr=Lr.length;for(lt&&(x=Re==L||Re||lt);Dt!==dr&&(Ve=Lr[Dt])!=null;Dt++){if(le&&Ve){for(Ge=0,!Re&&Ve.ownerDocument!=L&&(Ni(Ve),We=!V);st=z[Ge++];)if(st(Ve,Re||L,We)){I.call(Ne,Ve);break}lt&&(ae=Ln)}ne&&((Ve=!st&&Ve)&&Ye--,Ee&&fr.push(Ve))}if(Ye+=Dt,ne&&Dt!==Ye){for(Ge=0;st=X[Ge++];)st(fr,nr,Re,We);if(Ee){if(Ye>0)for(;Dt--;)fr[Dt]||nr[Dt]||(nr[Dt]=G.call(Ne));nr=Nn(nr)}I.apply(Ne,nr),lt&&!Ee&&nr.length>0&&Ye+X.length>1&&h.uniqueSort(Ne)}return lt&&(ae=Ln,x=Or),fr},"superMatcher");return ne?Cr(me):me}l($h,"matcherFromGroupMatchers");function Vo(z,X){var ne,le=[],me=[],Ee=nt[z+" "];if(!Ee){for(X||(X=Li(z)),ne=X.length;ne--;)Ee=ks(X[ne]),Ee[ge]?le.push(Ee):me.push(Ee);Ee=nt(z,$h(me,le)),Ee.selector=z}return Ee}l(Vo,"compile");function zc(z,X,ne,le){var me,Ee,Re,We,Ne,lt=typeof z=="function"&&z,Ve=!le&&Li(z=lt.selector||z);if(ne=ne||[],Ve.length===1){if(Ee=Ve[0]=Ve[0].slice(0),Ee.length>2&&(Re=Ee[0]).type==="ID"&&X.nodeType===9&&V&&y.relative[Ee[1].type]){if(X=(y.find.ID(Re.matches[0].replace(yi,si),X)||[])[0],X)lt&&(X=X.parentNode);else return ne;z=z.slice(Ee.shift().value.length)}for(me=ii.needsContext.test(z)?0:Ee.length;me--&&(Re=Ee[me],!y.relative[We=Re.type]);)if((Ne=y.find[We])&&(le=Ne(Re.matches[0].replace(yi,si),Bo.test(Ee[0].type)&&zo(X.parentNode)||X))){if(Ee.splice(me,1),z=le.length&&Rn(Ee),!z)return I.apply(ne,le),ne;break}}return(lt||Vo(z,Ve))(le,X,!V,ne,!X||Bo.test(z)&&zo(X.parentNode)||X),ne}l(zc,"select"),m.sortStable=ge.split("").sort(Bt).join("")===ge,Ni(),m.sortDetached=Fn(function(z){return z.compareDocumentPosition(L.createElement("fieldset"))&1}),h.find=xt,h.expr[":"]=h.expr.pseudos,h.unique=h.uniqueSort,xt.compile=Vo,xt.select=zc,xt.setDocument=Ni,xt.tokenize=Li,xt.escape=h.escapeSelector,xt.getText=h.text,xt.isXML=h.isXMLDoc,xt.selectors=h.expr,xt.support=h.support,xt.uniqueSort=h.uniqueSort})();var je=l(function(u,y,x){for(var k=[],A=x!==void 0;(u=u[y])&&u.nodeType!==9;)if(u.nodeType===1){if(A&&h(u).is(x))break;k.push(u)}return k},"dir"),Ze=l(function(u,y){for(var x=[];u;u=u.nextSibling)u.nodeType===1&&u!==y&&x.push(u);return x},"siblings"),ut=h.expr.match.needsContext,qe=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function C(u,y,x){return w(y)?h.grep(u,function(k,A){return!!y.call(k,A,k)!==x}):y.nodeType?h.grep(u,function(k){return k===y!==x}):typeof y!="string"?h.grep(u,function(k){return c.call(y,k)>-1!==x}):h.filter(y,u,x)}l(C,"winnow"),h.filter=function(u,y,x){var k=y[0];return x&&(u=":not("+u+")"),y.length===1&&k.nodeType===1?h.find.matchesSelector(k,u)?[k]:[]:h.find.matches(u,h.grep(y,function(A){return A.nodeType===1}))},h.fn.extend({find:function(u){var y,x,k=this.length,A=this;if(typeof u!="string")return this.pushStack(h(u).filter(function(){for(y=0;y<k;y++)if(h.contains(A[y],this))return!0}));for(x=this.pushStack([]),y=0;y<k;y++)h.find(u,A[y],x);return k>1?h.uniqueSort(x):x},filter:function(u){return this.pushStack(C(this,u||[],!1))},not:function(u){return this.pushStack(C(this,u||[],!0))},is:function(u){return!!C(this,typeof u=="string"&&ut.test(u)?h(u):u||[],!1).length}});var F,j=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,ee=h.fn.init=function(u,y,x){var k,A;if(!u)return this;if(x=x||F,typeof u=="string")if(u[0]==="<"&&u[u.length-1]===">"&&u.length>=3?k=[null,u,null]:k=j.exec(u),k&&(k[1]||!y))if(k[1]){if(y=y instanceof h?y[0]:y,h.merge
vendor: 4,164 bytes, line 1
1(this,h.parseHTML(k[1],y&&y.nodeType?y.ownerDocument||y:S,!0)),qe.test(k[1])&&h.isPlainObject(y))for(k in y)w(this[k])?this[k](y[k]):this.attr(k,y[k]);return this}else return A=S.getElementById(k[2]),A&&(this[0]=A,this.length=1),this;else return!y||y.jquery?(y||x).find(u):this.constructor(y).find(u);else{if(u.nodeType)return this[0]=u,this.length=1,this;if(w(u))return x.ready!==void 0?x.ready(u):u(h)}return h.makeArray(u,this)};ee.prototype=h.fn,F=h(S);var J=/^(?:parents|prev(?:Until|All))/,Q={children:!0,contents:!0,next:!0,prev:!0};h.fn.extend({has:function(u){var y=h(u,this),x=y.length;return this.filter(function(){for(var k=0;k<x;k++)if(h.contains(this,y[k]))return!0})},closest:function(u,y){var x,k=0,A=this.length,I=[],L=typeof u!="string"&&h(u);if(!ut.test(u)){for(;k<A;k++)for(x=this[k];x&&x!==y;x=x.parentNode)if(x.nodeType<11&&(L?L.index(x)>-1:x.nodeType===1&&h.find.matchesSelector(x,u))){I.push(x);break}}return this.pushStack(I.length>1?h.uniqueSort(I):I)},index:function(u){return u?typeof u=="string"?c.call(h(u),this[0]):c.call(this,u.jquery?u[0]:u):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(u,y){return this.pushStack(h.uniqueSort(h.merge(this.get(),h(u,y))))},addBack:function(u){return this.add(u==null?this.prevObject:this.prevObject.filter(u))}});function oe(u,y){for(;(u=u[y])&&u.nodeType!==1;);return u}l(oe,"sibling"),h.each({parent:function(u){var y=u.parentNode;return y&&y.nodeType!==11?y:null},parents:function(u){return je(u,"parentNode")},parentsUntil:function(u,y,x){return je(u,"parentNode",x)},next:function(u){return oe(u,"nextSibling")},prev:function(u){return oe(u,"previousSibling")},nextAll:function(u){return je(u,"nextSibling")},prevAll:function(u){return je(u,"previousSibling")},nextUntil:function(u,y,x){return je(u,"nextSibling",x)},prevUntil:function(u,y,x){return je(u,"previousSibling",x)},siblings:function(u){return Ze((u.parentNode||{}).firstChild,u)},children:function(u){return Ze(u.firstChild)},contents:function(u){return u.contentDocument!=null&&i(u.contentDocument)?u.contentDocument:(R(u,"template")&&(u=u.content||u),h.merge([],u.childNodes))}},function(u,y){h.fn[u]=function(x,k){var A=h.map(this,y,x);return u.slice(-5)!=="Until"&&(k=x),k&&typeof k=="string"&&(A=h.filter(k,A)),this.length>1&&(Q[u]||h.uniqueSort(A),J.test(u)&&A.reverse()),this.pushStack(A)}});var ve=/[^\x20\t\r\n\f]+/g;function U(u){var y={};return h.each(u.match(ve)||[],function(x,k){y[k]=!0}),y}l(U,"createOptions"),h.Callbacks=function(u){u=typeof u=="string"?U(u):h.extend({},u);var y,x,k,A,I=[],L=[],Y=-1,V=l(function(){for(A=A||u.once,k=y=!0;L.length;Y=-1)for(x=L.shift();++Y<I.length;)I[Y].apply(x[0],x[1])===!1&&u.stopOnFalse&&(Y=I.length,x=!1);u.memory||(x=!1),y=!1,A&&(x?I=[]:I="")},"fire"),te={add:function(){return I&&(x&&!y&&(Y=I.length-1,L.push(x)),l(function fe(ge){h.each(ge,function(ae,we){w(we)?(!u.unique||!te.has(we))&&I.push(we):we&&we.length&&N(we)!=="string"&&fe(we)})},"add")(arguments),x&&!y&&V()),this},remove:function(){return h.each(arguments,function(fe,ge){for(var ae;(ae=h.inArray(ge,I,ae))>-1;)I.splice(ae,1),ae<=Y&&Y--}),this},has:function(fe){return fe?h.inArray(fe,I)>-1:I.length>0},empty:function(){return I&&(I=[]),this},disable:function(){return A=L=[],I=x="",this},disabled:function(){return!I},lock:function(){return A=L=[],!x&&!y&&(I=x=""),this},locked:function(){return!!A},fireWith:function(fe,ge){return A||(ge=ge||[],ge=[fe,ge.slice?ge.slice():ge],L.push(ge),y||V()),this},fire:function(){return te.fireWith(this,arguments),this},fired:function(){return!!k}};return te};function D(u){return u}l(D,"Identity");function W(u){throw u}l(W,"Thrower");function ue(u,y,x,k){var A;try{u&&w(A=u.promise)?A.call(u).done(y).fail(x):u&&w(A=u.then)?A.call(u,y,x):y.apply(void 0,[u].slice(k))}catch(I){x.apply(void 0,[I])}}l(ue,"adoptValue"),h.extend({Deferred:function(u){var y=[["notify","progress",h.Callbacks("memory"),h.Callbacks("memory"),2],["resolve","done",h.Callbacks("once memory"),h.Callbacks("once memory"),0,"resolved"],["reject","fail",h.Callbacks("once memory"),h.Callbacks("once memory"),1,"rejected"]],x="pending",k={state:function(){return x}
1,always:function(){return A.done(arguments).fail(arguments),this},catch:function(I){return k.then(null,I)},pipe:function(){var I=arguments;return h.Deferred(function(L){h.each(y,function(Y,V){var te=w(I[V[4]])&&I[V[4]];A[V[1]](function(){var fe=te&&te.apply(this,arguments);fe&&w(fe.promise)?fe.promise().progress(L.notify).done(L.resolve).fail(L.reject):L[V[0]+"With"](this,te?[fe]:arguments)})}),I=null}).promise()},then:function(I,L,Y){var V=0;function te(fe,ge,ae,we){return function(){var Je=this,pt=arguments,nt=l(function(){var Bt,ei;if(!(fe<V)){if(Bt=ae.apply(Je,pt),Bt===ge.promise())throw new TypeError("Thenable self-resolution");ei=Bt&&(typeof Bt=="object"||typeof Bt=="function")&&Bt.then,w(ei)?we?ei.call(Bt,te(V,ge,D,we),te(V,ge,W,we)):(V++,ei.call(Bt,te(V,ge,D,we),te(V,ge,W,we),te(V,ge,D,ge.notifyWith))):(ae!==D&&(Je=void 0,pt=[Bt]),(we||ge.resolveWith)(Je,pt))}},"mightThrow"),er=we?nt:function(){try{nt()}catch(Bt){h.Deferred.exceptionHook&&h.Deferred.exceptionHook(Bt,er.error),fe+1>=V&&(ae!==W&&(Je=void 0,pt=[Bt]),ge.rejectWith(Je,pt))}};fe?er():(h.Deferred.getErrorHook?er.error=h.Deferred.getErrorHook():h.Deferred.getStackHook&&(er.error=h.Deferred.getStackHook()),r.setTimeout(er))}}return l(te,"resolve"),h.Deferred(function(fe){y[0][3].add(te(0,fe,w(Y)?Y:D,fe.notifyWith)),y[1][3].add(te(0,fe,w(I)?I:D)),y[2][3].add(te(0,fe,w(L)?L:W))}).promise()},promise:function(I){return I!=null?h.extend(I,k):k}},A={};return h.each(y,function(I,L){var Y=L[2],V=L[5];k[L[1]]=Y.add,V&&Y.add(function(){x=V},y[3-I][2].disable,y[3-I][3].disable,y[0][2].lock,y[0][3].lock),Y.add(L[3].fire),A[L[0]]=function(){return A[L[0]+"With"](this===A?void 0:this,arguments),this},A[L[0]+"With"]=Y.fireWith}),k.promise(A),u&&u.call(A,A),A},when:function(u){var y=arguments.length,x=y,k=Array(x),A=s.call(arguments),I=h.Deferred(),L=l(function(Y){return function(V){k[Y]=this,A[Y]=arguments.length>1?s.call(arguments):V,--y||I.resolveWith(k,A)}},"updateFunc");if(y<=1&&(ue(u,I.done(L(x)).resolve,I.reject,!y),I.state()==="pending"||w(A[x]&&A[x].then)))return I.then();for(;x--;)ue(A[x],L(x),I.reject);return I.promise()}});var _e=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;h.Deferred.exceptionHook=function(u,y){r.console&&r.console.warn&&u&&_e.test(u.name)&&r.console.warn("jQuery.Deferred exception: "+u.message,u.stack,y)},h.readyException=function(u){r.setTimeout(function(){throw u})};var he=h.Deferred();h.fn.ready=function(u){return he.then(u).catch(function(y){h.readyException(y)}),this},h.extend({isReady:!1,readyWait:1,ready:function(u){(u===!0?--h.readyWait:h.isReady)||(h.isReady=!0,!(u!==!0&&--h.readyWait>0)&&he.resolveWith(S,[h]))}}),h.ready.then=he.then;function Ce(){S.removeEventListener("DOMContentLoaded",Ce),r.removeEventListener("load",Ce),h.ready()}l(Ce,"completed"),S.readyState==="complete"||S.readyState!=="loading"&&!S.documentElement.doScroll?r.setTimeout(h.ready):(S.addEventListener("DOMContentLoaded",Ce),r.addEventListener("load",Ce));var Ae=l(function(u,y,x,k,A,I,L){var Y=0,V=u.length,te=x==null;if(N(x)==="object"){A=!0;for(Y in x)Ae(u,y,Y,x[Y],!0,I,L)}else if(k!==void 0&&(A=!0,w(k)||(L=!0),te&&(L?(y.call(u,k),y=null):(te=y,y=l(function(fe,ge,ae){return te.call(h(fe),ae)},"fn"))),y))for(;Y<V;Y++)y(u[Y],x,L?k:k.call(u[Y],Y,y(u[Y],x)));return A?u:te?y.call(u):V?y(u[0],x):I},"access"),re=/^-ms-/,se=/-([a-z])/g;function Se(u,y){return y.toUpperCase()}l(Se,"fcamelCase");function $e(u){return u.replace(re,"ms-").replace(se,Se)}l($e,"camelCase");var Fe=l(function(u){return u.nodeType===1||u.nodeType===9||!+u.nodeType},"acceptData");function Ct(){this.expando=h.expando+Ct.uid++}l(Ct,"Data"),Ct.uid=1,Ct.prototype={cache:function(u){var y=u[this.expando];return y||(y={},Fe(u)&&(u.nodeType?u[this.expando]=y:Object.defineProperty(u,this.expando,{value:y,configurable:!0}))),y},set:function(u,y,x){var k,A=this.cache(u);if(typeof y=="string")A[$e(y)]=x;else for(k in y)A[$e(k)]=y[k];return A},get:function(u,y){return y===void 0?this.cache(u):u[this.expando]&&u[this.expando][$e(y)]},access:function(u,y,x){return y===void 0||y&&typeof y=="string"&&x===void 0?this.get(u,y):(this.set(u,y,x),x!==void 0?x:y)},remove:function(u,y){var x,k=u[this.expando];if(k!==void 0){if(y!==void 0)for(Array.isArray(y)?y=y.map($e):(y=$e(y),y=y in k?[y]:y.match(ve)||[]),x=y.length;x--;)delete k[y[x]];(y===void 0||h.isEmptyObject(k))&&(u.nodeType?u[this.expando]=void 0:delete u[this.expando])}},hasData:function(u){var y=u[this.expando];return y!==void 0&&!h.isEmptyObject(y)}};var Oe=new Ct,at=new Ct,It=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,qt=/[A-Z]/g;function ct(u){return u==="true"?!0:u==="false"?!1:u==="null"?null:u===+u+""?+u:It.test(u)?JSON.parse(u):u}l(ct,"getData");function Qt(u,y,x){var k;if(x===void 0&&u.nodeType===1)if(k="data-"+y.replace(qt,"-$&").toLowerCase(),x=u.getAttribute(k),typeof x=="str
1ing"){try{x=ct(x)}catch{}at.set(u,y,x)}else x=void 0;return x}l(Qt,"dataAttr"),h.extend({hasData:function(u){return at.hasData(u)||Oe.hasData(u)},data:function(u,y,x){return at.access(u,y,x)},removeData:function(u,y){at.remove(u,y)},_data:function(u,y,x){return Oe.access(u,y,x)},_removeData:function(u,y){Oe.remove(u,y)}}),h.fn.extend({data:function(u,y){var x,k,A,I=this[0],L=I&&I.attributes;if(u===void 0){if(this.length&&(A=at.get(I),I.nodeType===1&&!Oe.get(I,"hasDataAttrs"))){for(x=L.length;x--;)L[x]&&(k=L[x].name,k.indexOf("data-")===0&&(k=$e(k.slice(5)),Qt(I,k,A[k])));Oe.set(I,"hasDataAttrs",!0)}return A}return typeof u=="object"?this.each(function(){at.set(this,u)}):Ae(this,function(Y){var V;if(I&&Y===void 0)return V=at.get(I,u),V!==void 0||(V=Qt(I,u),V!==void 0)?V:void 0;this.each(function(){at.set(this,u,Y)})},null,y,arguments.length>1,null,!0)},removeData:function(u){return this.each(function(){at.remove(this,u)})}}),h.extend({queue:function(u,y,x){var k;if(u)return y=(y||"fx")+"queue",k=Oe.get(u,y),x&&(!k||Array.isArray(x)?k=Oe.access(u,y,h.makeArray(x)):k.push(x)),k||[]},dequeue:function(u,y){y=y||"fx";var x=h.queue(u,y),k=x.length,A=x.shift(),I=h._queueHooks(u,y),L=l(function(){h.dequeue(u,y)},"next");A==="inprogress"&&(A=x.shift(),k--),A&&(y==="fx"&&x.unshift("inprogress"),delete I.stop,A.call(u,L,I)),!k&&I&&I.empty.fire()},_queueHooks:function(u,y){var x=y+"queueHooks";return Oe.get(u,x)||Oe.access(u,x,{empty:h.Callbacks("once memory").add(function(){Oe.remove(u,[y+"queue",x])})})}}),h.fn.extend({queue:function(u,y){var x=2;return typeof u!="string"&&(y=u,u="fx",x--),arguments.length<x?h.queue(this[0],u):y===void 0?this:this.each(function(){var k=h.queue(this,u,y);h._queueHooks(this,u),u==="fx"&&k[0]!=="inprogress"&&h.dequeue(this,u)})},dequeue:function(u){return this.each(function(){h.dequeue(this,u)})},clearQueue:function(u){return this.queue(u||"fx",[])},promise:function(u,y){var x,k=1,A=h.Deferred(),I=this,L=this.length,Y=l(function(){--k||A.resolveWith(I,[I])},"resolve");for(typeof u!="string"&&(y=u,u=void 0),u=u||"fx";L--;)x=Oe.get(I[L],u+"queueHooks"),x&&x.empty&&(k++,x.empty.add(Y));return Y(),A.promise(y)}});var Ji=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,$i=new RegExp("^(?:([+-])=|)("+Ji+")([a-z%]*)$","i"),$r=["Top","Right","Bottom","Left"],Zr=S.documentElement,Fr=l(function(u){return h.contains(u.ownerDocument,u)},"isAttached"),ia={composed:!0};Zr.getRootNode&&(Fr=l(function(u){return h.contains(u.ownerDocument,u)||u.getRootNode(ia)===u.ownerDocument},"isAttached"));var na=l(function(u,y){return u=y||u,u.style.display==="none"||u.style.display===""&&Fr(u)&&h.css(u,"display")==="none"},"isHiddenWithinTree");function cs(u,y,x,k){var A,I,L=20,Y=k?function(){return k.cur()}:function(){return h.css(u,y,"")},V=Y(),te=x&&x[3]||(h.cssNumber[y]?"":"px"),fe=u.nodeType&&(h.cssNumber[y]||te!=="px"&&+V)&&$i.exec(h.css(u,y));if(fe&&fe[3]!==te){for(V=V/2,te=te||fe[3],fe=+V||1;L--;)h.style(u,y,fe+te),(1-I)*(1-(I=Y()/V||.5))<=0&&(L=0),fe=fe/I;fe=fe*2,h.style(u,y,fe+te),x=x||[]}return x&&(fe=+fe||+V||0,A=x[1]?fe+(x[1]+1)*x[2]:+x[2],k&&(k.unit=te,k.start=fe,k.end=A)),A}l(cs,"adjustCSS");var Ic={};function fs(u){var y,x=u.ownerDocument,k=u.nodeName,A=Ic[k];return A||(y=x.body.appendChild(x.createElement(k)),A=h.css(y,"display"),y.parentNode.removeChild(y),A==="none"&&(A="block"),Ic[k]=A,A)}l(fs,"getDefaultDisplay");function Mr(u,y){for(var x,k,A=[],I=0,L=u.length;I<L;I++)k=u[I],k.style&&(x=k.style.display,y?(x==="none"&&(A[I]=Oe.get(k,"display")||null,A[I]||(k.style.display="")),k.style.display===""&&na(k)&&(A[I]=fs(k))):x!=="none"&&(A[I]="none",Oe.set(k,"display",x)));for(I=0;I<L;I++)A[I]!=null&&(u[I].style.display=A[I]);return u}l(Mr,"showHide"),h.fn.extend({show:function(){return Mr(this,!0)},hide:function(){return Mr(this)},toggle:function(u){return typeof u=="boolean"?u?this.show():this.hide():this.each(function(){na(this)?h(this).show():h(this).hide()})}});var Qi=/^(?:checkbox|radio)$/i,ds=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,He=/^$|^module$|\/(?:java|ecma)script/i;(function(){var u=S.createDocumentFragment(),y=u.appendChild(S.createElement("div")),x=S.createElement("input");x.setAttribute("type","radio"),x.setAttribute("checked","checked"),x.setAttribute("name","t"),y.appendChild(x),m.checkClone
vendor: 4,796 bytes, line 1
1=y.cloneNode(!0).cloneNode(!0).lastChild.checked,y.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!y.cloneNode(!0).lastChild.defaultValue,y.innerHTML="<option></option>",m.option=!!y.lastChild})();var xr={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};xr.tbody=xr.tfoot=xr.colgroup=xr.caption=xr.thead,xr.th=xr.td,m.option||(xr.optgroup=xr.option=[1,"<select multiple='multiple'>","</select>"]);function hr(u,y){var x;return typeof u.getElementsByTagName<"u"?x=u.getElementsByTagName(y||"*"):typeof u.querySelectorAll<"u"?x=u.querySelectorAll(y||"*"):x=[],y===void 0||y&&R(u,y)?h.merge([u],x):x}l(hr,"getAll");function Rr(u,y){for(var x=0,k=u.length;x<k;x++)Oe.set(u[x],"globalEval",!y||Oe.get(y[x],"globalEval"))}l(Rr,"setGlobalEval");var kr=/<|&#?\w+;/;function ot(u,y,x,k,A){for(var I,L,Y,V,te,fe,ge=y.createDocumentFragment(),ae=[],we=0,Je=u.length;we<Je;we++)if(I=u[we],I||I===0)if(N(I)==="object")h.merge(ae,I.nodeType?[I]:I);else if(!kr.test(I))ae.push(y.createTextNode(I));else{for(L=L||ge.appendChild(y.createElement("div")),Y=(ds.exec(I)||["",""])[1].toLowerCase(),V=xr[Y]||xr._default,L.innerHTML=V[1]+h.htmlPrefilter(I)+V[2],fe=V[0];fe--;)L=L.lastChild;h.merge(ae,L.childNodes),L=ge.firstChild,L.textContent=""}for(ge.textContent="",we=0;I=ae[we++];){if(k&&h.inArray(I,k)>-1){A&&A.push(I);continue}if(te=Fr(I),L=hr(ge.appendChild(I),"script"),te&&Rr(L),x)for(fe=0;I=L[fe++];)He.test(I.type||"")&&x.push(I)}return ge}l(ot,"buildFragment");var sa=/^([^.]*)(?:\.(.+)|)/;function gt(){return!0}l(gt,"returnTrue");function Xr(){return!1}l(Xr,"returnFalse");function Po(u,y,x,k,A,I){var L,Y;if(typeof y=="object"){typeof x!="string"&&(k=k||x,x=void 0);for(Y in y)Po(u,Y,x,k,y[Y],I);return u}if(k==null&&A==null?(A=x,k=x=void 0):A==null&&(typeof x=="string"?(A=k,k=void 0):(A=k,k=x,x=void 0)),A===!1)A=Xr;else if(!A)return u;return I===1&&(L=A,A=l(function(V){return h().off(V),L.apply(this,arguments)},"fn"),A.guid=L.guid||(L.guid=h.guid++)),u.each(function(){h.event.add(this,y,A,k,x)})}l(Po,"on"),h.event={global:{},add:function(u,y,x,k,A){var I,L,Y,V,te,fe,ge,ae,we,Je,pt,nt=Oe.get(u);if(Fe(u))for(x.handler&&(I=x,x=I.handler,A=I.selector),A&&h.find.matchesSelector(Zr,A),x.guid||(x.guid=h.guid++),(V=nt.events)||(V=nt.events=Object.create(null)),(L=nt.handle)||(L=nt.handle=function(er){return typeof h<"u"&&h.event.triggered!==er.type?h.event.dispatch.apply(u,arguments):void 0}),y=(y||"").match(ve)||[""],te=y.length;te--;)Y=sa.exec(y[te])||[],we=pt=Y[1],Je=(Y[2]||"").split(".").sort(),we&&(ge=h.event.special[we]||{},we=(A?ge.delegateType:ge.bindType)||we,ge=h.event.special[we]||{},fe=h.extend({type:we,origType:pt,data:k,handler:x,guid:x.guid,selector:A,needsContext:A&&h.expr.match.needsContext.test(A),namespace:Je.join(".")},I),(ae=V[we])||(ae=V[we]=[],ae.delegateCount=0,(!ge.setup||ge.setup.call(u,k,Je,L)===!1)&&u.addEventListener&&u.addEventListener(we,L)),ge.add&&(ge.add.call(u,fe),fe.handler.guid||(fe.handler.guid=x.guid)),A?ae.splice(ae.delegateCount++,0,fe):ae.push(fe),h.event.global[we]=!0)},remove:function(u,y,x,k,A){var I,L,Y,V,te,fe,ge,ae,we,Je,pt,nt=Oe.hasData(u)&&Oe.get(u);if(!(!nt||!(V=nt.events))){for(y=(y||"").match(ve)||[""],te=y.length;te--;){if(Y=sa.exec(y[te])||[],we=pt=Y[1],Je=(Y[2]||"").split(".").sort(),!we){for(we in V)h.event.remove(u,we+y[te],x,k,!0);continue}for(ge=h.event.special[we]||{},we=(k?ge.delegateType:ge.bindType)||we,ae=V[we]||[],Y=Y[2]&&new RegExp("(^|\\.)"+Je.join("\\.(?:.*\\.|)")+"(\\.|$)"),L=I=ae.length;I--;)fe=ae[I],(A||pt===fe.origType)&&(!x||x.guid===fe.guid)&&(!Y||Y.test(fe.namespace))&&(!k||k===fe.selector||k==="**"&&fe.selector)&&(ae.splice(I,1),fe.selector&&ae.delegateCount--,ge.remove&&ge.remove.call(u,fe));L&&!ae.length&&((!ge.teardown||ge.teardown.call(u,Je,nt.handle)===!1)&&h.removeEvent(u,we,nt.handle),delete V[we])}h.isEmptyObject(V)&&Oe.remove(u,"handle events")}},dispatch:function(u){var y,x,k,A,I,L,Y=new Array(arguments.length),V=h.event.fix(u),te=(Oe.get(this,"events")||Object.create(null))[V.type]||[],fe=h.event.special[V.type]||{};for(Y[0]=V,y=1;y<arguments.length;y++)Y[y]=arguments[y];if(V.delegateTarget=this,!(fe.preDispatch&&fe.preDispatch.call(this,V)===!1)){for(L=h.event.handlers.call(this,V,te),y=0;(A=L[y++])&&!V.isPropagationStopped();)for(V.currentTarget=A.elem,x=0;(I=A.handlers[x++])&&!V.isImmediatePropagationStopped();)(!V.rnamespace||I.namespace===!1||V.rnamespace.test(I.namespace))&&(V.handleObj=I,V.data=I.data,k=((h.event.special[I.origType]||{}).handle||I.handler).apply(A.elem,Y),k!==void 0&&(V.result=k)===!1&&(V.preventDefault(),V.stopPropagation()));return fe.postDispatch&&fe.postDispatch.call(this,V),V.result}}
1,handlers:function(u,y){var x,k,A,I,L,Y=[],V=y.delegateCount,te=u.target;if(V&&te.nodeType&&!(u.type==="click"&&u.button>=1)){for(;te!==this;te=te.parentNode||this)if(te.nodeType===1&&!(u.type==="click"&&te.disabled===!0)){for(I=[],L={},x=0;x<V;x++)k=y[x],A=k.selector+" ",L[A]===void 0&&(L[A]=k.needsContext?h(A,this).index(te)>-1:h.find(A,this,null,[te]).length),L[A]&&I.push(k);I.length&&Y.push({elem:te,handlers:I})}}return te=this,V<y.length&&Y.push({elem:te,handlers:y.slice(V)}),Y},addProp:function(u,y){Object.defineProperty(h.Event.prototype,u,{enumerable:!0,configurable:!0,get:w(y)?function(){if(this.originalEvent)return y(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[u]},set:function(x){Object.defineProperty(this,u,{enumerable:!0,configurable:!0,writable:!0,value:x})}})},fix:function(u){return u[h.expando]?u:new h.Event(u)},special:{load:{noBubble:!0},click:{setup:function(u){var y=this||u;return Qi.test(y.type)&&y.click&&R(y,"input")&&en(y,"click",!0),!1},trigger:function(u){var y=this||u;return Qi.test(y.type)&&y.click&&R(y,"input")&&en(y,"click"),!0},_default:function(u){var y=u.target;return Qi.test(y.type)&&y.click&&R(y,"input")&&Oe.get(y,"click")||R(y,"a")}},beforeunload:{postDispatch:function(u){u.result!==void 0&&u.originalEvent&&(u.originalEvent.returnValue=u.result)}}}};function en(u,y,x){if(!x){Oe.get(u,y)===void 0&&h.event.add(u,y,gt);return}Oe.set(u,y,!1),h.event.add(u,y,{namespace:!1,handler:function(k){var A,I=Oe.get(this,y);if(k.isTrigger&1&&this[y]){if(I)(h.event.special[y]||{}).delegateType&&k.stopPropagation();else if(I=s.call(arguments),Oe.set(this,y,I),this[y](),A=Oe.get(this,y),Oe.set(this,y,!1),I!==A)return k.stopImmediatePropagation(),k.preventDefault(),A}else I&&(Oe.set(this,y,h.event.trigger(I[0],I.slice(1),this)),k.stopPropagation(),k.isImmediatePropagationStopped=gt)}})}l(en,"leverageNative"),h.removeEvent=function(u,y,x){u.removeEventListener&&u.removeEventListener(y,x)},h.Event=function(u,y){if(!(this instanceof h.Event))return new h.Event(u,y);u&&u.type?(this.originalEvent=u,this.type=u.type,this.isDefaultPrevented=u.defaultPrevented||u.defaultPrevented===void 0&&u.returnValue===!1?gt:Xr,this.target=u.target&&u.target.nodeType===3?u.target.parentNode:u.target,this.currentTarget=u.currentTarget,this.relatedTarget=u.relatedTarget):this.type=u,y&&h.extend(this,y),this.timeStamp=u&&u.timeStamp||Date.now(),this[h.expando]=!0},h.Event.prototype={constructor:h.Event,isDefaultPrevented:Xr,isPropagationStopped:Xr,isImmediatePropagationStopped:Xr,isSimulated:!1,preventDefault:function(){var u=this.originalEvent;this.isDefaultPrevented=gt,u&&!this.isSimulated&&u.preventDefault()},stopPropagation:function(){var u=this.originalEvent;this.isPropagationStopped=gt,u&&!this.isSimulated&&u.stopPropagation()},stopImmediatePropagation:function(){var u=this.originalEvent;this.isImmediatePropagationStopped=gt,u&&!this.isSimulated&&u.stopImmediatePropagation(),this.stopPropagation()}},h.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},h.event.addProp),h.each({focus:"focusin",blur:"focusout"},function(u,y){function x(k){if(S.documentMode){var A=Oe.get(this,"handle"),I=h.event.fix(k);I.type=k.type==="focusin"?"focus":"blur",I.isSimulated=!0,A(k),I.target===I.currentTarget&&A(I)}else h.event.simulate(y,k.target,h.event.fix(k))}l(x,"focusMappedHandler"),h.event.special[u]={setup:function(){var k;if(en(this,u,!0),S.documentMode)k=Oe.get(this,y),k||this.addEventListener(y,x),Oe.set(this,y,(k||0)+1);else return!1},trigger:function(){return en(this,u),!0},teardown:function(){var k;if(S.documentMode)k=Oe.get(this,y)-1,k?Oe.set(this,y,k):(this.removeEventListener(y,x),Oe.remove(this,y));else return!1},_default:function(k){return Oe.get(k.target,u)},delegateType:y},h.event.special[y]={setup:function(){var k=this.ownerDocument||this.document||this,A=S.documentMode?this:k,I=Oe.get(A,y);I||(S.documentMode?this.addEventListener(y,x):k.addEventListener(u,x,!0)),Oe.set(A,
vendor: 5,946 bytes, line 1
1y,(I||0)+1)},teardown:function(){var k=this.ownerDocument||this.document||this,A=S.documentMode?this:k,I=Oe.get(A,y)-1;I?Oe.set(A,y,I):(S.documentMode?this.removeEventListener(y,x):k.removeEventListener(u,x,!0),Oe.remove(A,y))}}}),h.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(u,y){h.event.special[u]={delegateType:y,bindType:y,handle:function(x){var k,A=this,I=x.relatedTarget,L=x.handleObj;return(!I||I!==A&&!h.contains(A,I))&&(x.type=L.origType,k=L.handler.apply(this,arguments),x.type=y),k}}}),h.fn.extend({on:function(u,y,x,k){return Po(this,u,y,x,k)},one:function(u,y,x,k){return Po(this,u,y,x,k,1)},off:function(u,y,x){var k,A;if(u&&u.preventDefault&&u.handleObj)return k=u.handleObj,h(u.delegateTarget).off(k.namespace?k.origType+"."+k.namespace:k.origType,k.selector,k.handler),this;if(typeof u=="object"){for(A in u)this.off(A,y,u[A]);return this}return(y===!1||typeof y=="function")&&(x=y,y=void 0),x===!1&&(x=Xr),this.each(function(){h.event.remove(this,u,x,y)})}});var ir=/<script|<style|<link/i,pi=/checked\s*(?:[^=]|=\s*.checked.)/i,Jr=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Wt(u,y){return R(u,"table")&&R(y.nodeType!==11?y:y.firstChild,"tr")&&h(u).children("tbody")[0]||u}l(Wt,"manipulationTarget");function Nr(u){return u.type=(u.getAttribute("type")!==null)+"/"+u.type,u}l(Nr,"disableScript");function mi(u){return(u.type||"").slice(0,5)==="true/"?u.type=u.type.slice(5):u.removeAttribute("type"),u}l(mi,"restoreScript");function Fi(u,y){var x,k,A,I,L,Y,V;if(y.nodeType===1){if(Oe.hasData(u)&&(I=Oe.get(u),V=I.events,V)){Oe.remove(y,"handle events");for(A in V)for(x=0,k=V[A].length;x<k;x++)h.event.add(y,A,V[A][x])}at.hasData(u)&&(L=at.access(u),Y=h.extend({},L),at.set(y,Y))}}l(Fi,"cloneCopyEvent");function oh(u,y){var x=y.nodeName.toLowerCase();x==="input"&&Qi.test(u.type)?y.checked=u.checked:(x==="input"||x==="textarea")&&(y.defaultValue=u.defaultValue)}l(oh,"fixInput");function An(u,y,x,k){y=n(y);var A,I,L,Y,V,te,fe=0,ge=u.length,ae=ge-1,we=y[0],Je=w(we);if(Je||ge>1&&typeof we=="string"&&!m.checkClone&&pi.test(we))return u.each(function(pt){var nt=u.eq(pt);Je&&(y[0]=we.call(this,pt,nt.html())),An(nt,y,x,k)});if(ge&&(A=ot(y,u[0].ownerDocument,!1,u,k),I=A.firstChild,A.childNodes.length===1&&(A=I),I||k)){for(L=h.map(hr(A,"script"),Nr),Y=L.length;fe<ge;fe++)V=A,fe!==ae&&(V=h.clone(V,!0,!0),Y&&h.merge(L,hr(V,"script"))),x.call(u[fe],V,fe);if(Y)for(te=L[L.length-1].ownerDocument,h.map(L,mi),fe=0;fe<Y;fe++)V=L[fe],He.test(V.type||"")&&!Oe.access(V,"globalEval")&&h.contains(te,V)&&(V.src&&(V.type||"").toLowerCase()!=="module"?h._evalUrl&&!V.noModule&&h._evalUrl(V.src,{nonce:V.nonce||V.getAttribute("nonce")},te):P(V.textContent.replace(Jr,""),V,te))}return u}l(An,"domManip");function In(u,y,x){for(var k,A=y?h.filter(y,u):u,I=0;(k=A[I])!=null;I++)!x&&k.nodeType===1&&h.cleanData(hr(k)),k.parentNode&&(x&&Fr(k)&&Rr(hr(k,"script")),k.parentNode.removeChild(k));return u}l(In,"remove"),h.extend({htmlPrefilter:function(u){return u},clone:function(u,y,x){var k,A,I,L,Y=u.cloneNode(!0),V=Fr(u);if(!m.noCloneChecked&&(u.nodeType===1||u.nodeType===11)&&!h.isXMLDoc(u))for(L=hr(Y),I=hr(u),k=0,A=I.length;k<A;k++)oh(I[k],L[k]);if(y)if(x)for(I=I||hr(u),L=L||hr(Y),k=0,A=I.length;k<A;k++)Fi(I[k],L[k]);else Fi(u,Y);return L=hr(Y,"script"),L.length>0&&Rr(L,!V&&hr(u,"script")),Y},cleanData:function(u){for(var y,x,k,A=h.event.special,I=0;(x=u[I])!==void 0;I++)if(Fe(x)){if(y=x[Oe.expando]){if(y.events)for(k in y.events)A[k]?h.event.remove(x,k):h.removeEvent(x,k,y.handle);x[Oe.expando]=void 0}x[at.expando]&&(x[at.expando]=void 0)}}}),h.fn.extend({detach:function(u){return In(this,u,!0)},remove:function(u){return In(this,u)},text:function(u){return Ae(this,function(y){return y===void 0?h.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=y)})},null,u,arguments.length)},append:function(){return An(this,arguments,function(u){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var y=Wt(this,u);y.appendChild(u)}})},prepend:function(){return An(this,arguments,function(u){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var y=Wt(this,u);y.insertBefore(u,y.firstChild)}})},before:function(){return An(this,arguments,function(u){this.parentNode&&this.parentNode.insertBefore(u,this)})},after:function(){return An(this,arguments,function(u){this.parentNode&&this.parentNode.insertBefore(u,this.nextSibling)})},empty:function(){for(var u,y=0;(u=this[y])!=null;y++)u.nodeType===1&&(h.cleanData(hr(u,!1)),u.textContent="");return this},clone:function(u,y){return u=u??!1,y=y??u,this.map(function(){return h.clone(this,u,y)})},html:function(u){return Ae(this,function(y){var x=this[0]||{},k=0,A=this.length;if(y===void 0&&x.nodeType===1)return x.innerHTML;if(typeof y=="string"&&!ir.test(y)&&!xr[(ds.exec(y)||["",""])[1].toLowerCase()]){y=h.htmlPrefilter(y);try{for(;k<A;k++)x=this[k]||{},x.nodeType===1&&(h.cleanData(hr(x,!1)),x.innerHTML=y);x=0}catch{}}x&&this.empty().append(y)},null,u,arguments.length)},replaceWith:function(){var u=[];return An(this,arguments,function(y){var x=this.parentNode;h.inArray(this,u)<0&&(h.cleanData(hr(this)),x&&x.replaceChild(y,this))},u)}}),h.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(u,y){h.fn[u]=function(x){for(var k,A=[],I=h(x),L=I.length-1,Y=0;Y<=L;Y++)k=Y===L?this:this.clone(!0),h(I[Y])[y](k),a.apply(A,k.get());return this.pushStack(A)}});var aa=new RegExp("^("+Ji+")(?!px)[a-z%]+$","i"),$o=/^--/,gi=l(function(u){var y=u.ownerDocument.defaultView;return(!y||!y.opener)&&(y=r),y.getComputedStyle(u)},"getStyles"),Pn=l(function(u,y,x){var k,A,I={};for(A in y)I[A]=u.style[A],u.style[A]=y[A];k=x.call(u);for(A in y)u.style[A]=I[A];return k},"swap"),Pc=new RegExp($r.join("|"),"i");(function(){function u(){if(te){V.style.cssText="position:absolute;
1left:-11111px;width:60px;margin-top:1px;padding:0;border:0",te.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Zr.appendChild(V).appendChild(te);var fe=r.getComputedStyle(te);x=fe.top!=="1%",Y=y(fe.marginLeft)===12,te.style.right="60%",I=y(fe.right)===36,k=y(fe.width)===36,te.style.position="absolute",A=y(te.offsetWidth/3)===12,Zr.removeChild(V),te=null}}l(u,"computeStyleTests");function y(fe){return Math.round(parseFloat(fe))}l(y,"roundPixelMeasures");var x,k,A,I,L,Y,V=S.createElement("div"),te=S.createElement("div");te.style&&(te.style.backgroundClip="content-box",te.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle=te.style.backgroundClip==="content-box",h.extend(m,{boxSizingReliable:function(){return u(),k},pixelBoxStyles:function(){return u(),I},pixelPosition:function(){return u(),x},reliableMarginLeft:function(){return u(),Y},scrollboxSize:function(){return u(),A},reliableTrDimensions:function(){var fe,ge,ae,we;return L==null&&(fe=S.createElement("table"),ge=S.createElement("tr"),ae=S.createElement("div"),fe.style.cssText="position:absolute;left:-11111px;border-collapse:separate",ge.style.cssText="box-sizing:content-box;border:1px solid",ge.style.height="1px",ae.style.height="9px",ae.style.display="block",Zr.appendChild(fe).appendChild(ge).appendChild(ae),we=r.getComputedStyle(ge),L=parseInt(we.height,10)+parseInt(we.borderTopWidth,10)+parseInt(we.borderBottomWidth,10)===ge.offsetHeight,Zr.removeChild(fe)),L}}))})();function hs(u,y,x){var k,A,I,L,Y=$o.test(y),V=u.style;return x=x||gi(u),x&&(L=x.getPropertyValue(y)||x[y],Y&&L&&(L=L.replace(Te,"$1")||void 0),L===""&&!Fr(u)&&(L=h.style(u,y)),!m.pixelBoxStyles()&&aa.test(L)&&Pc.test(y)&&(k=V.width,A=V.minWidth,I=V.maxWidth,V.minWidth=V.maxWidth=V.width=L,L=x.width,V.width=k,V.minWidth=A,V.maxWidth=I)),L!==void 0?L+"":L}l(hs,"curCSS");function $c(u,y){return{get:function(){if(u()){delete this.get;return}return(this.get=y).apply(this,arguments)}}}l($c,"addGetHookIf");var Fc=["Webkit","Moz","ms"],Ft=S.createElement("div").style,oa={};function lh(u){for(var y=u[0].toUpperCase()+u.slice(1),x=Fc.length;x--;)if(u=Fc[x]+y,u in Ft)return u}l(lh,"vendorPropName");function la(u){var y=h.cssProps[u]||oa[u];return y||(u in Ft?u:oa[u]=lh(u)||u)}l(la,"finalPropName");var Mc=/^(none|table(?!-c[ea]).+)/,uh={position:"absolute",visibility:"hidden",display:"block"},Rc={letterSpacing:"0",fontWeight:"400"};function Nc(u,y,x){var k=$i.exec(y);return k?Math.max(0,k[2]-(x||0))+(k[3]||"px"):y}l(Nc,"setPositiveNumber");function Fo(u,y,x,k,A,I){var L=y==="width"?1:0,Y=0,V=0,te=0;if(x===(k?"border":"content"))return 0;for(;L<4;L+=2)x==="margin"&&(te+=h.css(u,x+$r[L],!0,A)),k?(x==="content"&&(V-=h.css(u,"padding"+$r[L],!0,A)),x!=="margin"&&(V-=h.css(u,"border"+$r[L]+"Width",!0,A))):(V+=h.css(u,"padding"+$r[L],!0,A),x!=="padding"?V+=h.css(u,"border"+$r[L]+"Width",!0,A):Y+=h.css(u,"border"+$r[L]+"Width",!0,A));return!k&&I>=0&&(V+=Math.max(0,Math.ceil(u["offset"+y[0].toUpperCase()+y.slice(1)]-I-V-Y-.5))||0),V+te}l(Fo,"boxModelAdjustment");function Lc(u,y,x){var k=gi(u),A=!m.boxSizingReliable()||x,I=A&&h.css(u,"boxSizing",!1,k)==="border-box",L=I,Y=hs(u,y,k),V="offset"+y[0].toUpperCase()+y.slice(1);if(aa.test(Y)){if(!x)return Y;Y="auto"}return(!m.boxSizingReliable()&&I||!m.reliableTrDimensions()&&R(u,"tr")||Y==="auto"||!parseFloat(Y)&&h.css(u,"display",!1,k)==="inline")&&u.getClientRects().length&&(I=h.css(u,"boxSizing",!1,k)==="border-box",L=V in u,L&&(Y=u[V])),Y=parseFloat(Y)||0,Y+Fo(u,y,x||(I?"border":"content"),L,k,Y)+"px"}l(Lc,"getWidthOrHeight"),h.extend({cssHooks:{opacity:{get:function(u,y){if(y){var x=hs(u,"opacity");return x===""?"1":x}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(u,y,x,k){if(!(!u||u.nodeType===3||u.nodeType===8||!u.style)){var A,I,L,Y=$e(y),V=$o.test(y),te=u.style;if(V||(y=la(Y)),L=h.cssHooks[y]||h.cssHooks[Y],x!==void 0){if(I=typeof x,I==="string"&&(A=$i.exec(x))&&A[1]&&(x=cs(u,y,A),I="number"),x==null||x!==x)return;I==="number"&&!V&&(x+=A&&A[3]||(h.cssNumber[Y]?"":"px")),!m.clearCloneStyle&&x===""&&y.indexOf("background")===0&&(te[y]="inherit"),(!L||!("set"in L)||(x=L.set(u,x,k))!==void 0)&&(V?te.setProperty(y,x):te[y]=x)}else return L&&"get"in L&&(A=L.get(u,!1,k))!==void 0?A:te[y]}},css:function(u,y,x,k){var A,I,L,Y=$e(y),V=$o.test(y);return V||(y=la(Y)),L=h.cssHooks[y]||h.cssHooks[Y],L&&"get"in L&&(A=L.get(u,!0,x)),A===void 0&&(A=hs(u,y,k)),A==="normal"&&y in Rc&&(A=Rc[y]),x===""||x?(I=parseFloat(A),x===!0||isFinite(I)?I||0:A):A}}),h.each(["height","width"],function(u,y){h.cssHooks[y]={get:function(x,k,A){if(k)return Mc.test(h.css(x,"display"))&&(!x.getClientRects().length||!x.getBoundingClientRect().width)?Pn(x,uh,function(){return Lc(x,y,A)}):Lc(x,y,A)},set:function(x,k,A){var I,L=gi(x),Y=!m.scrollboxSize()&&L.position==="absolute",V=Y||A,te=V&&h.css(x,"boxSizing",!1,L)==="border-box",fe=A?Fo(x,y,A,te,L):0;return te&&Y&&(fe-=Math.ceil(x["offset"+y[0].toUpperCase()+y.slice(1)]-parseFloat(L[y])-Fo(x,y,"border",!1,L)-.5)),fe&&(I=$i.exec(k))&&(I[3]||"px")!=="px"&&(x.style[y]=k,k=h.css(x,y)),Nc(x,k,fe)}}}
vendor: 10,765 bytes, line 1
1),h.cssHooks.marginLeft=$c(m.reliableMarginLeft,function(u,y){if(y)return(parseFloat(hs(u,"marginLeft"))||u.getBoundingClientRect().left-Pn(u,{marginLeft:0},function(){return u.getBoundingClientRect().left}))+"px"}),h.each({margin:"",padding:"",border:"Width"},function(u,y){h.cssHooks[u+y]={expand:function(x){for(var k=0,A={},I=typeof x=="string"?x.split(" "):[x];k<4;k++)A[u+$r[k]+y]=I[k]||I[k-2]||I[0];return A}},u!=="margin"&&(h.cssHooks[u+y].set=Nc)}),h.fn.extend({css:function(u,y){return Ae(this,function(x,k,A){var I,L,Y={},V=0;if(Array.isArray(k)){for(I=gi(x),L=k.length;V<L;V++)Y[k[V]]=h.css(x,k[V],!1,I);return Y}return A!==void 0?h.style(x,k,A):h.css(x,k)},u,y,arguments.length>1)}});function pr(u,y,x,k,A){return new pr.prototype.init(u,y,x,k,A)}l(pr,"Tween"),h.Tween=pr,pr.prototype={constructor:pr,init:function(u,y,x,k,A,I){this.elem=u,this.prop=x,this.easing=A||h.easing._default,this.options=y,this.start=this.now=this.cur(),this.end=k,this.unit=I||(h.cssNumber[x]?"":"px")},cur:function(){var u=pr.propHooks[this.prop];return u&&u.get?u.get(this):pr.propHooks._default.get(this)},run:function(u){var y,x=pr.propHooks[this.prop];return this.options.duration?this.pos=y=h.easing[this.easing](u,this.options.duration*u,0,1,this.options.duration):this.pos=y=u,this.now=(this.end-this.start)*y+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),x&&x.set?x.set(this):pr.propHooks._default.set(this),this}},pr.prototype.init.prototype=pr.prototype,pr.propHooks={_default:{get:function(u){var y;return u.elem.nodeType!==1||u.elem[u.prop]!=null&&u.elem.style[u.prop]==null?u.elem[u.prop]:(y=h.css(u.elem,u.prop,""),!y||y==="auto"?0:y)},set:function(u){h.fx.step[u.prop]?h.fx.step[u.prop](u):u.elem.nodeType===1&&(h.cssHooks[u.prop]||u.elem.style[la(u.prop)]!=null)?h.style(u.elem,u.prop,u.now+u.unit):u.elem[u.prop]=u.now}}},pr.propHooks.scrollTop=pr.propHooks.scrollLeft={set:function(u){u.elem.nodeType&&u.elem.parentNode&&(u.elem[u.prop]=u.now)}},h.easing={linear:function(u){return u},swing:function(u){return .5-Math.cos(u*Math.PI)/2},_default:"swing"},h.fx=pr.prototype.init,h.fx.step={};var tn,ps,ch=/^(?:toggle|show|hide)$/,fh=/queueHooks$/;function Mo(){ps&&(S.hidden===!1&&r.requestAnimationFrame?r.requestAnimationFrame(Mo):r.setTimeout(Mo,h.fx.interval),h.fx.tick())}l(Mo,"schedule");function Ro(){return r.setTimeout(function(){tn=void 0}),tn=Date.now()}l(Ro,"createFxNow");function ua(u,y){var x,k=0,A={height:u};for(y=y?1:0;k<4;k+=2-y)x=$r[k],A["margin"+x]=A["padding"+x]=u;return y&&(A.opacity=A.width=u),A}l(ua,"genFx");function $n(u,y,x){for(var k,A=(cr.tweeners[y]||[]).concat(cr.tweeners["*"]),I=0,L=A.length;I<L;I++)if(k=A[I].call(x,y,u))return k}l($n,"createTween");function ca(u,y,x){var k,A,I,L,Y,V,te,fe,ge="width"in y||"height"in y,ae=this,we={},Je=u.style,pt=u.nodeType&&na(u),nt=Oe.get(u,"fxshow");x.queue||(L=h._queueHooks(u,"fx"),L.unqueued==null&&(L.unqueued=0,Y=L.empty.fire,L.empty.fire=function(){L.unqueued||Y()}),L.unqueued++,ae.always(function(){ae.always(function(){L.unqueued--,h.queue(u,"fx").length||L.empty.fire()})}));for(k in y)if(A=y[k],ch.test(A)){if(delete y[k],I=I||A==="toggle",A===(pt?"hide":"show"))if(A==="show"&&nt&&nt[k]!==void 0)pt=!0;else continue;we[k]=nt&&nt[k]||h.style(u,k)}if(V=!h.isEmptyObject(y),!(!V&&h.isEmptyObject(we))){ge&&u.nodeType===1&&(x.overflow=[Je.overflow,Je.overflowX,Je.overflowY],te=nt&&nt.display,te==null&&(te=Oe.get(u,"display")),fe=h.css(u,"display"),fe==="none"&&(te?fe=te:(Mr([u],!0),te=u.style.display||te,fe=h.css(u,"display"),Mr([u]))),(fe==="inline"||fe==="inline-block"&&te!=null)&&h.css(u,"float")==="none"&&(V||(ae.done(function(){Je.display=te}),te==null&&(fe=Je.display,te=fe==="none"?"":fe)),Je.display="inline-block")),x.overflow&&(Je.overflow="hidden",ae.always(function(){Je.overflow=x.overflow[0],Je.overflowX=x.overflow[1],Je.overflowY=x.overflow[2]})),V=!1;for(k in we)V||(nt?"hidden"in nt&&(pt=nt.hidden):nt=Oe.access(u,"fxshow",{display:te}),I&&(nt.hidden=!pt),pt&&Mr([u],!0),ae.done(function(){pt||Mr([u]),Oe.remove(u,"fxshow");for(k in we)h.style(u,k,we[k])})),V=$n(pt?nt[k]:0,k,ae),k in nt||(nt[k]=V.start,pt&&(V.end=V.start,V.start=0))}}l(ca,"defaultPrefilter");function Hc(u,y){var x,k,A,I,L;for(x in u)if(k=$e(x),A=y[k],I=u[x],Array.isArray(I)&&(A=I[1],I=u[x]=I[0]),x!==k&&(u[k]=I,delete u[x]),L=h.cssHooks[k],L&&"expand"in L){I=L.expand(I),delete u[k];for(x in I)x in u||(u[x]=I[x],y[x]=A)}else y[k]=A}l(Hc,"propFilter");function cr(u,y,x){var k,A,I=0,L=cr.prefilters.length,Y=h.Deferred().always(function(){delete V.elem}),V=l(function(){if(A)return!1;for(var ge=tn||Ro(),ae=Math.max(0,te.startTime+te.duration-ge),we=ae/te.duration||0,Je=1-we,pt=0,nt=te.tweens.length;pt<nt;pt++)te.tweens[pt].run(Je);return Y.notifyWith(u,[te,Je,ae]),Je<1&&nt?ae:(nt||Y.notifyWith(u,[te,1,0]),Y.resolveWith(u,[te]),!1)},"tick"),te=Y.promise({elem:u,props:h.extend({},y),opts:h.extend(!0,{specialEasing:{},easing:h.easing._default},x),originalProperties:y,originalOptions:x,startTime:tn||Ro(),duration:x.duration,tweens:[],createTween:function(ge,ae){var we=h.Tween(u,te.opts,ge,ae,te.opts.specialEasing[ge]||te.opts.easing);return te.tweens.push(we),we},stop:function(ge){var ae=0,we=ge?te.tweens.length:0;if(A)return this;for(A=!0;ae<we;ae++)te.tweens[ae].run(1);return ge?(Y.notifyWith(u,[te,1,0]),Y.resolveWith(u,[te,ge])):Y.rejectWith(u,[te,ge]),this}}),fe=te.props;for(Hc(fe,te.opts.specialEasing);I<L;I++)if(k=cr.prefilters[I].call(te,u,fe,te.opts),k)return w(k.stop)&&(h._queueHooks(te.elem,te.opts.queue).stop=k.stop.bind(k)),k;return h.map(fe,$n,te),w(te.opts.start)&&te.opts.start.call(u,te),te.progress(te.opts.progress).done(te.opts.done,te.opts.complete).fail(te.opts.fail).always(te.opts.always),h.fx.timer(h.extend(V,{elem:u,anim:te,queue:te.opts.queue})),te}l(cr,"Animation"),h.Animation=h.extend(cr,{tweeners:{"*":[function(u,y){var x=this.createTween(u,y);return cs(x.elem,u,$i.exec(y),x),x}]},tweener:function(u,y){w(u)?(y=u,u=["*"]):u=u.match(ve);for(var x,k=0,A=u.length;k<A;k++)x=u[k],cr.tweeners[x]=cr.tweeners[x]||[],cr.tweeners[x].unshift(y)},prefilters:[ca],prefilter:function(u,y){y?cr.prefilters.unshift(u):cr.prefilters.push(u)}}),h.speed=function(u,y,x){var k=u&&typeof u=="object"?h.extend({},u):{complete:x||!x&&y||w(u)&&u,duration:u,easing:x&&y||y&&!w(y)&&y};return h.fx.off?k.duration=0:typeof k.duration!="number"&&(k.duration in h.fx.speeds?k.duration=h.fx.speeds[k.duration]:k.duration=h.fx.speeds._default),(k.queue==null||k.queue===!0)&&(k.queue="fx"),k.old=k.complete,k.complete=function(){w(k.old)&&k.old.call(this),k.queue&&h.dequeue(this,k.queue)},k},h.fn.extend({fadeTo:function(u,y,x,k){return this.filter(na).css("opacity",0).show().end().animate({opacity:y},u,x,k)},animate:function(u,y,x,k){var A=h.isEmptyObject(u),I=h.speed(y,x,k),L=l(function(){var Y=cr(this,h.extend({},u),I);(A||Oe.get(this,"finish"))&&Y.stop(!0)},"doAnimation");return L.finish=L,A||I.queue===!1?this.each(L):this.queue(I.queue,L)},stop:function(u,y,x){var k=l(function(A){var I=A.stop;delete A.stop,I(x)},"stopQueue");return typeof u!="string"&&(x=y,y=u,u=void 0),y&&this.queue(u||"fx",[]),this.each(function(){var A=!0,I=u!=null&&u+"queueHooks",L=h.timers,Y=Oe.get(this);if(I)Y[I]&&Y[I].stop&&k(Y[I]);else for(I in Y)Y[I]&&Y[I].stop&&fh.test(I)&&k(Y[I]);for(I=L.length;I--;)L[I].elem===this&&(u==null||L[I].queue===u)&&(L[I].anim.stop(x),A=!1,L.splice(I,1));(A||!x)&&h.dequeue(this,u)})},finish:function(u){return u!==!1&&(u=u||"fx"),this.each(function(){var y,x=Oe.get(this),k=x[u+"queue"],A=x[u+"queueHooks"],I=h.timers,L=k?k.length:0;for(x.finish=!0,h.queue(this,u,[]),A&&A.stop&&A.stop.call(this,!0),y=I.length;y--;)I[y].elem===this&&I[y].queue===u&&(I[y].anim.stop(!0),I.splice(y,1));for(y=0;y<L;y++)k[y]&&k[y].finish&&k[y].finish.call(this);delete x.finish})}}),h.each(["toggle","show","hide"],function(u,y){var x=h.fn[y];h.fn[y]=function(k,A,I){return k==null||typeof k=="boolean"?x.apply(this,arguments):this.animate(ua(y,!0),k,A,I)}}),h.each({slideDown:ua("show"),slideUp:ua("hide"),slideToggle:ua("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(u,y){h.fn[u]=function(x,k,A){return this.animate(y,x,k,A)}}),h.timers=[],h.fx.tick=function(){var u,y=0,x=h.timers;for(tn=Date.now();y<x.length;y++)u=x[y],!u()&&x[y]===u&&x.splice(y--,1);x.length||h.fx.stop(),tn=void 0},h.fx.timer=function(u){h.timers.push(u),h.fx.start()},h.fx.interval=13,h.fx.start=function(){ps||(ps=!0,Mo())},h.fx.stop=function(){ps=null},h.fx.speeds={slow:600,fast:200,_default:400},h.fn.delay=function(u,y){return u=h.fx&&h.fx.speeds[u]||u,y=y||"fx",this.queue(y,function(x,k){var A=r.setTimeout(x,u);k.stop=function(){r.clearTimeout(A)}})},function(){var u=S.createElement("input"),y=S.createElement("select"),x=y.appendChild(S.createElement("option"));u.type="checkbox",m.checkOn=u.value!=="",m.optSelected=x.selected,u=S.createElement("input"),u.value="t",u.type="radio",m.radioValue=u.value==="t"}();var Qr,ms=h.expr.attrHandle;h.fn.extend({attr:function(u,y){return Ae(this,h.attr,u,y,arguments.length>1)},removeAttr:function(u){return this.each(function(){h.removeAttr(this,u)})}}),h.extend({attr:function(u,y,x){var k,A,I=u.nodeType;if(!(I===3||I===8||I===2)){if(typeof u.getAttribute>"u")return h.prop(u,y,x);if((I!==1||!h.isXMLDoc(u))&&(A=h.attrHooks[y.toLowerCase()]||(h.expr.match.bool.test(y)?Qr:void 0)),x!==void 0){if(x===null){h.removeAttr(u,y);return}return A&&"set"in A&&(k=A.set(u,x,y))!==void 0?k:(u.setAttribute(y,x+""),x)}return A&&"get"in A&&(k=A.get(u,y))!==null?k:(k=h.find.attr(u,y),k??void 0)}},attrHooks:{type:{set:function(u,y){if(!m.radioValue&&y==="radio"&&R(u,"input")){var x=u.value;return u.setAttribute("type",y),x&&(u.value=x),y}}}},removeAttr:function(u,y){var x,k=0,A=y&&y.match(ve);if(A&&u.nodeType===1)for(;x=A[k++];)u.removeAttribute(x)}}),Qr={set:function(u,y,x){return y===!1?h.removeAttr(u,x):u.setAttribute(x,x),x}},h.each(h.expr.match.bool.source.match(/\w+/g),function(u,y){var x=ms[y]||h.find.attr;ms[y]=function(k,A,I){var L,Y,V=A.toLowerCase();return I||(Y=ms[V],ms[V]=L,L=x(k,A,I)!=null?V:null,ms[V]=Y),L}});var dh=/^(?:input|select|textarea|button)$/i,hh=/^(?:a|area)$/i;h.fn.extend({prop:function(u,y){return Ae(this,h.prop,u,y,arguments.length>1)},removeProp:function(u){return this.each(function(){delete this[h.propFix[u]||u]})}}),h.extend({prop:function(u,y,x){var k,A,I=u.nodeType;if(!(I===3||I===8||I===2))return(I!==1||!h.isXMLDoc(u))&&(y=h.propFix[y]||y,A=h.propHooks[y]),x!==void 0?A&&"set"in A&&(k=A.set(u,x,y))!==void 0?k:u[y]=x:A&&"get"in A&&(k=A.get(u,y))!==null?k:u[y]},propHooks:{tabIndex:{get:function(u){var y=h.find.attr(u,"tabindex");return y?parseInt(y,10):dh.test(u.nodeName)||hh.test(u.nodeName)&&u.href?
10:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(h.propHooks.selected={get:function(u){var y=u.parentNode;return y&&y.parentNode&&y.parentNode.selectedIndex,null},set:function(u){var y=u.parentNode;y&&(y.selectedIndex,y.parentNode&&y.parentNode.selectedIndex)}}),h.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){h.propFix[this.toLowerCase()]=this});function rn(u){var y=u.match(ve)||[];return y.join(" ")}l(rn,"stripAndCollapse");function nn(u){return u.getAttribute&&u.getAttribute("class")||""}l(nn,"getClass");function No(u){return Array.isArray(u)?u:typeof u=="string"?u.match(ve)||[]:[]}l(No,"classesToArray"),h.fn.extend({addClass:function(u){var y,x,k,A,I,L;return w(u)?this.each(function(Y){h(this).addClass(u.call(this,Y,nn(this)))}):(y=No(u),y.length?this.each(function(){if(k=nn(this),x=this.nodeType===1&&" "+rn(k)+" ",x){for(I=0;I<y.length;I++)A=y[I],x.indexOf(" "+A+" ")<0&&(x+=A+" ");L=rn(x),k!==L&&this.setAttribute("class",L)}}):this)},removeClass:function(u){var y,x,k,A,I,L;return w(u)?this.each(function(Y){h(this).removeClass(u.call(this,Y,nn(this)))}):arguments.length?(y=No(u),y.length?this.each(function(){if(k=nn(this),x=this.nodeType===1&&" "+rn(k)+" ",x){for(I=0;I<y.length;I++)for(A=y[I];x.indexOf(" "+A+" ")>-1;)x=x.replace(" "+A+" "," ");L=rn(x),k!==L&&this.setAttribute("class",L)}}):this):this.attr("class","")},toggleClass:function(u,y){var x,k,A,I,L=typeof u,Y=L==="string"||Array.isArray(u);return w(u)?this.each(function(V){h(this).toggleClass(u.call(this,V,nn(this),y),y)}):typeof y=="boolean"&&Y?y?this.addClass(u):this.removeClass(u):(x=No(u),this.each(function(){if(Y)for(I=h(this),A=0;A<x.length;A++)k=x[A],I.hasClass(k)?I.removeClass(k):I.addClass(k);else(u===void 0||L==="boolean")&&(k=nn(this),k&&Oe.set(this,"__className__",k),this.setAttribute&&this.setAttribute("class",k||u===!1?"":Oe.get(this,"__className__")||""))}))},hasClass:function(u){var y,x,k=0;for(y=" "+u+" ";x=this[k++];)if(x.nodeType===1&&(" "+rn(nn(x))+" ").indexOf(y)>-1)return!0;return!1}});var ph=/\r/g;h.fn.extend({val:function(u){var y,x,k,A=this[0];return arguments.length?(k=w(u),this.each(function(I){var L;this.nodeType===1&&(k?L=u.call(this,I,h(this).val()):L=u,L==null?L="":typeof L=="number"?L+="":Array.isArray(L)&&(L=h.map(L,function(Y){return Y==null?"":Y+""})),y=h.valHooks[this.type]||h.valHooks[this.nodeName.toLowerCase()],(!y||!("set"in y)||y.set(this,L,"value")===void 0)&&(this.value=L))})):A?(y=h.valHooks[A.type]||h.valHooks[A.nodeName.toLowerCase()],y&&"get"in y&&(x=y.get(A,"value"))!==void 0?x:(x=A.value,typeof x=="string"?x.replace(ph,""):x??"")):void 0}}),h.extend({valHooks:{option:{get:function(u){var y=h.find.attr(u,"value");return y??rn(h.text(u))}},select:{get:function(u){var y,x,k,A=u.options,I=u.selectedIndex,L=u.type==="select-one",Y=L?null:[],V=L?I+1:A.length;for(I<0?k=V:k=L?I:0;k<V;k++)if(x=A[k],(x.selected||k===I)&&!x.disabled&&(!x.parentNode.disabled||!R(x.parentNode,"optgroup"))){if(y=h(x).val(),L)return y;Y.push(y)}return Y},set:function(u,y){for(var x,k,A=u.options,I=h.makeArray(y),L=A.length;L--;)k=A[L],(k.selected=h.inArray(h.valHooks.option.get(k),I)>-1)&&(x=!0);return x||(u.selectedIndex=-1),I}}}}),h.each(["radio","checkbox"],function(){h.valHooks[this]={set:function(u,y){if(Array.isArray(y))return u.checked=h.inArray(h(u).val(),y)>-1}},m.checkOn||(h.valHooks[this].get=function(u){return u.getAttribute("value")===null?"on":u.value})});var gs=r.location,fa={guid:Date.now()},Lo=/\?/;h.parseXML=function(u){var y,x;if(!u||typeof u!="string")return null;try{y=new r.DOMParser().parseFromString(u,"text/xml")}catch{}return x=y&&y.getElementsByTagName("parsererror")[0],(!y||x)&&h.error("Invalid XML: "+(x?h.map(x.childNodes,function(k){return k.textContent}).join(`
2`):u)),y};var Ho=/^(?:focusinfocus|focusoutblur)$/,Uc=l(function(u){u.stopPropagation()},"stopPropagationCallback");h.extend(h.event,{trigger:function(u,y,x,k){var A,I,L,Y,V,te,fe,ge,ae=[x||S],we=p.call(u,"type")?u.type:u,Je=p.call(u,"namespace")?u.namespace.split("."):[];if(I=ge=L=x=x||S,!(x.nodeType===3||x.nodeType===8)&&!Ho.test(we+h.event.triggered)&&(we.indexOf(".")>-1&&(Je=we.split("."),we=Je.shift(),Je.sort()),V=we.indexOf(":")<0&&"on"+we,u=u[h.expando]?u:new h.Event(we,typeof u=="object"&&u),u.isTrigger=k?2:3,u.namespace=Je.join("."),u.rnamespace=u.n
vendor: 17,991 bytes, lines 2-4
2amespace?new RegExp("(^|\\.)"+Je.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,u.result=void 0,u.target||(u.target=x),y=y==null?[u]:h.makeArray(y,[u]),fe=h.event.special[we]||{},!(!k&&fe.trigger&&fe.trigger.apply(x,y)===!1))){if(!k&&!fe.noBubble&&!b(x)){for(Y=fe.delegateType||we,Ho.test(Y+we)||(I=I.parentNode);I;I=I.parentNode)ae.push(I),L=I;L===(x.ownerDocument||S)&&ae.push(L.defaultView||L.parentWindow||r)}for(A=0;(I=ae[A++])&&!u.isPropagationStopped();)ge=I,u.type=A>1?Y:fe.bindType||we,te=(Oe.get(I,"events")||Object.create(null))[u.type]&&Oe.get(I,"handle"),te&&te.apply(I,y),te=V&&I[V],te&&te.apply&&Fe(I)&&(u.result=te.apply(I,y),u.result===!1&&u.preventDefault());return u.type=we,!k&&!u.isDefaultPrevented()&&(!fe._default||fe._default.apply(ae.pop(),y)===!1)&&Fe(x)&&V&&w(x[we])&&!b(x)&&(L=x[V],L&&(x[V]=null),h.event.triggered=we,u.isPropagationStopped()&&ge.addEventListener(we,Uc),x[we](),u.isPropagationStopped()&&ge.removeEventListener(we,Uc),h.event.triggered=void 0,L&&(x[V]=L)),u.result}},simulate:function(u,y,x){var k=h.extend(new h.Event,x,{type:u,isSimulated:!0});h.event.trigger(k,null,y)}}),h.fn.extend({trigger:function(u,y){return this.each(function(){h.event.trigger(u,y,this)})},triggerHandler:function(u,y){var x=this[0];if(x)return h.event.trigger(u,y,x,!0)}});var mh=/\[\]$/,jc=/\r?\n/g,gh=/^(?:submit|button|image|reset|file)$/i,yh=/^(?:input|select|textarea|keygen)/i;function Uo(u,y,x,k){var A;if(Array.isArray(y))h.each(y,function(I,L){x||mh.test(u)?k(u,L):Uo(u+"["+(typeof L=="object"&&L!=null?I:"")+"]",L,x,k)});else if(!x&&N(y)==="object")for(A in y)Uo(u+"["+A+"]",y[A],x,k);else k(u,y)}l(Uo,"buildParams"),h.param=function(u,y){var x,k=[],A=l(function(I,L){var Y=w(L)?L():L;k[k.length]=encodeURIComponent(I)+"="+encodeURIComponent(Y??"")},"add");if(u==null)return"";if(Array.isArray(u)||u.jquery&&!h.isPlainObject(u))h.each(u,function(){A(this.name,this.value)});else for(x in u)Uo(x,u[x],y,A);return k.join("&")},h.fn.extend({serialize:function(){return h.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var u=h.prop(this,"elements");return u?h.makeArray(u):this}).filter(function(){var u=this.type;return this.name&&!h(this).is(":disabled")&&yh.test(this.nodeName)&&!gh.test(u)&&(this.checked||!Qi.test(u))}).map(function(u,y){var x=h(this).val();return x==null?null:Array.isArray(x)?h.map(x,function(k){return{name:y.name,value:k.replace(jc,`\r
3`)}}):{name:y.name,value:x.replace(jc,`\r
4`)}}).get()}});var vh=/%20/g,_h=/#.*$/,bh=/([?&])_=[^&]*/,wh=/^(.*?):[ \t]*([^\r\n]*)$/mg,Sh=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,xh=/^(?:GET|HEAD)$/,kh=/^\/\//,qc={},jo={},da="*/".concat("*"),ys=S.createElement("a");ys.href=gs.href;function Wc(u){return function(y,x){typeof y!="string"&&(x=y,y="*");var k,A=0,I=y.toLowerCase().match(ve)||[];if(w(x))for(;k=I[A++];)k[0]==="+"?(k=k.slice(1)||"*",(u[k]=u[k]||[]).unshift(x)):(u[k]=u[k]||[]).push(x)}}l(Wc,"addToPrefiltersOrTransports");function qo(u,y,x,k){var A={},I=u===jo;function L(Y){var V;return A[Y]=!0,h.each(u[Y]||[],function(te,fe){var ge=fe(y,x,k);if(typeof ge=="string"&&!I&&!A[ge])return y.dataTypes.unshift(ge),L(ge),!1;if(I)return!(V=ge)}),V}return l(L,"inspect"),L(y.dataTypes[0])||!A["*"]&&L("*")}l(qo,"inspectPrefiltersOrTransports");function ha(u,y){var x,k,A=h.ajaxSettings.flatOptions||{};for(x in y)y[x]!==void 0&&((A[x]?u:k||(k={}))[x]=y[x]);return k&&h.extend(!0,u,k),u}l(ha,"ajaxExtend");function Th(u,y,x){for(var k,A,I,L,Y=u.contents,V=u.dataTypes;V[0]==="*";)V.shift(),k===void 0&&(k=u.mimeType||y.getResponseHeader("Content-Type"));if(k){for(A in Y)if(Y[A]&&Y[A].test(k)){V.unshift(A);break}}if(V[0]in x)I=V[0];else{for(A in x){if(!V[0]||u.converters[A+" "+V[0]]){I=A;break}L||(L=A)}I=I||L}if(I)return I!==V[0]&&V.unshift(I),x[I]}l(Th,"ajaxHandleResponses");function Ch(u,y,x,k){var A,I,L,Y,V,te={},fe=u.dataTypes.slice();if(fe[1])for(L in u.converters)te[L.toLowerCase()]=u.converters[L];for(I=fe.shift();I;)if(u.responseFields[I]&&(x[u.responseFields[I]]=y),!V&&k&&u.dataFilter&&(y=u.dataFilter(y,u.dataType)),V=I,I=fe.shift(),I){if(I==="*")I=V;else if(V!=="*"&&V!==I){if(L=te[V+" "+I]||te["* "+I],!L){for(A in te)if(Y=A.split(" "),Y[1]===I&&(L=te[V+" "+Y[0]]||te["* "+Y[0]],L)){L===!0?L=te[A]:te[A]!==!0&&(I=Y[0],fe.unshift(Y[1]));break}}if(L!==!0)if(L&&u.throws)y=L(y);else try{y=L(y)}catch(ge){return{state:"parsererror",error:L?ge:"No conversion from "+V+" to "+I}}}}return{state:"success",data:y}}l(Ch,"ajaxConvert"),h.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:gs.href,type:"GET",isLocal:Sh.test(gs.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":da,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":h.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(u,y){return y?ha(ha(u,h.ajaxSettings),y):ha(h.ajaxSettings,u)},ajaxPrefilter:Wc(qc),ajaxTransport:Wc(jo),ajax:function(u,y){typeof u=="object"&&(y=u,u=void 0),y=y||{};var x,k,A,I,L,Y,V,te,fe,ge,ae=h.ajaxSetup({},y),we=ae.context||ae,Je=ae.context&&(we.nodeType||we.jquery)?h(we):h.event,pt=h.Deferred(),nt=h.Callbacks("once memory"),er=ae.statusCode||{},Bt={},ei={},ti="canceled",ft={readyState:0,getResponseHeader:function(yt){var $t;if(V){if(!I)for(I={};$t=wh.exec(A);)I[$t[1].toLowerCase()+" "]=(I[$t[1].toLowerCase()+" "]||[]).concat($t[2]);$t=I[yt.toLowerCase()+" "]}return $t==null?null:$t.join(", ")},getAllResponseHeaders:function(){return V?A:null},setRequestHeader:function(yt,$t){return V==null&&(yt=ei[yt.toLowerCase()]=ei[yt.toLowerCase()]||yt,Bt[yt]=$t),this},overrideMimeType:function(yt){return V==null&&(ae.mimeType=yt),this},statusCode:function(yt){var $t;if(yt)if(V)ft.always(yt[ft.status]);else for($t in yt)er[$t]=[er[$t],yt[$t]];return this},abort:function(yt){var $t=yt||ti;return x&&x.abort($t),sn(0,$t),this}};if(pt.promise(ft),ae.url=((u||ae.url||gs.href)+"").replace(kh,gs.protocol+"//"),ae.type=y.method||y.type||ae.method||ae.type,ae.dataTypes=(ae.dataType||"*").toLowerCase().match(ve)||[""],ae.crossDomain==null){Y=S.createElement("a");try{Y.href=ae.url,Y.href=Y.href,ae.crossDomain=ys.protocol+"//"+ys.host!=Y.protocol+"//"+Y.host}catch{ae.crossDomain=!0}}if(ae.data&&ae.processData&&typeof ae.data!="string"&&(ae.data=h.param(ae.data,ae.traditional)),qo(qc,ae,y,ft),V)return ft;te=h.event&&ae.global,te&&h.active++===0&&h.event.trigger("ajaxStart"),ae.type=ae.type.toUpperCase(),ae.hasContent=!xh.test(ae.type),k=ae.url.replace(_h,""),ae.hasContent?ae.data&&ae.processData&&(ae.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(ae.data=ae.data.replace(vh,"+")):(ge=ae.url.slice(k.length),ae.data&&(ae.processData||typeof ae.data=="string")&&(k+=(Lo.test(k)?"&":"?")+ae.data,delete ae.data),ae.cache===!1&&(k=k.replace(bh,"$1"),ge=(Lo.test(k)?"&":"?")+"_="+fa.guid+++ge),ae.url=k+ge),ae.ifModified&&(h.lastModified[k]&&ft.setRequestHeader("If-Modified-Since",h.lastModified[k]),h.etag[k]&&ft.setRequestHeader("If-None-Match",h.etag[k])),(ae.data&&ae.hasContent&&ae.contentType!==!1||y.contentType)&&ft.setRequestHeader("Content-Type",ae.contentType),ft.setRequestHeader("Accept",ae.dataTypes[0]&&ae.accepts[ae.dataTypes[0]]?ae.accepts[ae.dataTypes[0]]+(ae.dataTypes[0]!=="*"?", "+da+"; q=0.01":""):ae.accepts["*"]);for(fe in ae.headers)ft.setRequestHeader(fe,ae.headers[fe]);if(ae.beforeSend&&(ae.beforeSend.call(we,ft,ae)===!1||V))return ft.abort();if(ti="abort",nt.add(ae.complete),ft.done(ae.success),ft.fail(ae.error),x=qo(jo,ae,y,ft),!x)sn(-1,"No Transport");else{if(ft.readyState=1,te&&Je.trigger("ajaxSend",[ft,ae]),V)return ft;ae.async&&ae.timeout>0&&(L=r.setTimeout(function(){ft.abort("timeout")},ae.timeout));try{V=!1,x.send(Bt,sn)}catch(yt){if(V)throw yt;sn(-1,yt)}}function sn(yt,$t,ws,Mi){var ri,an,ii,ni,Ri,Tr=$t;V||(V=!0,L&&r.clearTimeout(L),x=void 0,A=Mi||"",ft.readyState=yt>0?4:0,ri=yt>=200&&yt<300||yt===304,ws&&(ni=Th(ae,ft,ws)),!ri&&h.inArray("script",ae.dataTypes)>-1&&h.inArray("json",ae.dataTypes)<0&&(ae.converters["text script"]=function(){}),ni=Ch(ae,ni,ft,ri),ri?(ae.ifModified&&(Ri=ft.getResponseHeader("Last-Modified"),Ri&&(h.lastModified[k]=Ri),Ri=ft.getResponseHeader("etag"),Ri&&(h.etag[k]=Ri)),yt===204||ae.type==="HEAD"?Tr="nocontent":yt===304?Tr="notmodified":(Tr=ni.state,an=ni.data,ii=ni.error,ri=!ii)):(ii=Tr,(yt||!Tr)&&(Tr="error",yt<0&&(yt=0))),ft.status=yt,ft.statusText=($t||Tr)+"",ri?pt.resolveWith(we,[an,Tr,ft]):pt.rejectWith(we,[ft,Tr,ii]),ft.statusCode(er),er=void 0,te&&Je.trigger(ri?"ajaxSuccess":"ajaxError",[ft,ae,ri?an:ii]),nt.fireWith(we,[ft,Tr]),te&&(Je.trigger("ajaxComplete",[ft,ae]),--h.active||h.event.trigger("ajaxStop")))}return l(sn,"done"),ft},getJSON:function(u,y,x){return h.get(u,y,x,"json")},getScript:function(u,y){return h.get(u,void 0,y,"script")}}),h.each(["get","post"],function(u,y){h[y]=function(x,k,A,I){return w(k)&&(I=I||A,A=k,k=void 0),h.ajax(h.extend({url:x,type:y,dataType:I,data:k,success:A},h.isPlainObject(x)&&x))}}),h.ajaxPrefilter(function(u){var y;for(y in u.headers)y.toLowerCase()==="content-type"&&(u.contentType=u.headers[y]||"")}),h._evalUrl=function(u,y,x){return h.ajax({url:u,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(k){h.globalEval(k,y,x)}})},h.fn.extend({wrapAll:function(u){var y;return this[0]&&(w(u)&&(u=u.call(this[0])),y=h(u,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&y.insertBefore(this[0]),y.map(function(){for(var x=this;x.firstElementChild;)x=x.firstElementChild;return x}).append(this)),this},wrapInner:function(u){return w(u)?this.each(function(y){h(this).wrapInner(u.call(this,y))}):this.each(function(){var y=h(this),x=y.contents();x.length?x.wrapAll(u):y.append(u)})},wrap:function(u){var y=w(u);return this.each(function(x){h(this).wrapAll(y?u.call(this,x):u)})},unwrap:function(u){return this.parent(u).not("body").each(function(){h(this).replaceWith(this.childNodes)}),this}}),h.expr.pseudos.hidden=function(u){return!h.expr.pseudos.visible(u)},h.expr.pseudos.visible=function(u){return!!(u.offsetWidth||u.offsetHeight||u.getClientRects().length)},h.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch{}};var Oh={0:200,1223:204},vs=h.ajaxSettings.xhr();m.cors=!!vs&&"withCredentials"in vs,m.ajax=vs=!!vs,h.ajaxTransport(function(u){var y,x;if(m.cors||vs&&!u.crossDomain)return{send:function(k,A){var I,L=u.xhr();if(L.open(u.type,u.url,u.async,u.username,u.password),u.xhrFields)for(I in u.xhrFields)L[I]=u.xhrFields[I];u.mimeType&&L.overrideMimeType&&L.overrideMimeType(u.mimeType),!u.crossDomain&&!k["X-Requested-With"]&&(k["X-Requested-With"]="XMLHttpRequest");for(I in k)L.setRequestHeader(I,k[I]);y=l(function(Y){return function(){y&&(y=x=L.onload=L.onerror=L.onabort=L.ontimeout=L.onreadystatechange=null,Y==="abort"?L.abort():Y==="error"?typeof L.status!="number"?A(0,"error"):A(L.status,L.statusText):A(Oh[L.status]||L.status,L.statusText,(L.responseType||"text")!=="text"||typeof L.responseText!="string"?{binary:L.response}:{text:L.responseText},L.getAllResponseHeaders()))}},"callback"),L.onload=y(),x=L.onerror=L.ontimeout=y("error"),L.onabort!==void 0?L.onabort=x:L.onreadystatechange=function(){L.readyState===4&&r.setTimeout(function(){y&&x()})},y=y("abort");try{L.send(u.hasContent&&u.data||null)}catch(Y){if(y)throw Y}},abort:function(){y&&y()}}}),h.ajaxPrefilter(function(u){u.crossDomain&&(u.contents.script=!1)}),h.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(u){return h.globalEval(u),u}}}),h.ajaxPrefilter("script",function(u){u.cache===void 0&&(u.cache=!1),u.crossDomain&&(u.type="GET")}),h.ajaxTransport("script",function(u){if(u.crossDomain||u.scriptAttrs){var y,x;return{send:function(k,A){y=h("<script>").attr(u.scriptAttrs||{}).prop({charset:u.scriptCharset,src:u.url}).on("load error",x=l(function(I){y.remove(),x=null,I&&A(I.type==="error"?404:200,I.type)},"callback")),S.head.appendChild(y[0])},abort:function(){x&&x()}}}});var Wo=[],At=/(=)\?(?=&|$)|\?\?/;h.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var u=Wo.pop()||h.expando+"_"+fa.guid++;return this[u]=!0,u}}),h.ajaxPrefilter("json jsonp",function(u,y,x){var k,A,I,L=u.jsonp!==!1&&(At.test(u.url)?"url":typeof u.data=="string"&&(u.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&At.test(u.data)&&"data");if(L||u.dataTypes[0]==="jsonp")return k=u.jsonpCallback=w(u.jsonpCallback)?u.jsonpCallback():u.jsonpCallback,L?u[L]=u[L].replace(At,"$1"+k):u.jsonp!==!1&&(u.url+=(Lo.test(u.url)?"&":"?")+u.jsonp+"="+k),u.converters["script json"]=function(){return I||h.error(k+" was not called"),I[0]},u.dataTypes[0]="json",A=r[k],r[k]=function(){I=arguments},x.always(function(){A===void 0?h(r).removeProp(k):r[k]=A,u[k]&&(u.jsonpCallback=y.jsonpCallback,Wo.push(k)),I&&w(A)&&A(I[0]),I=A=void 0}),"script"}),m.createHTMLDocument=function(){var u=S.implementation.createHTMLDocument("").body;return u.innerHTML="<form></form><form></form>",u.childNodes.length===2}(),h.parseHTML=function(u,y,x){if(typeof u!="string")return[];typeof y=="boolean"&&(x=y,y=!1);var k,A,I;return y||(m.createHTMLDocument?(y=S.implementation.createHTMLDocument(""),k=y.createElement("base"),k.href=S.location.href,y.head.appendChild(k)):y=S),A=qe.exec(u),I=!x&&[],A?[y.createElement(A[1])]:(A=ot([u],y,I),I&&I.length&&h(I).remove(),h.merge([],A.childNodes))},h.fn.load=function(u,y,x){var k,A,I,L=this,Y=u.indexOf(" ");return Y>-1&&(k=rn(u.slice(Y)),u=u.slice(0,Y)),w(y)?(x=y,y=void 0):y&&typeof y=="object"&&(A="POST"),L.length>0&&h.ajax({url:u,type:A||"GET",dataType:"html",data:y}).done(function(V){I=arguments,L.html(k?h("<div>").append(h.parseHTML(V)).find(k):V)}).always(x&&function(V,te){L.each(function(){x.apply(this,I||[V.responseText,te,V])})}),this},h.expr.pseudos.animated=function(u){return h.grep(h.timers,function(y){return u===y.elem}).length},h.offset={setOffset:function(u,y,x){var k,A,I,L,Y,V,te,fe=h.css(u,"position"),ge=h(u),ae={};fe==="static"&&(u.style.position="relative"),Y=ge.offset(),I=h.css(u,"top"),V=h.css(u,"left"),te=(fe==="absolute"||fe==="fixed")&&(I+V).indexOf("auto")>-1,te?(k=ge.position(),L=k.top,A=k.left):(L=parseFloat(I)||0,A=parseFloat(V)||0),w(y)&&(y=y.call(u,x,h.extend({},Y))),y.top!=null&&(ae.top=y.top-Y.top+L),y.left!=null&&(ae.left=y.left-Y.left+A),"using"in y?y.using.call(u,ae):ge.css(ae)}},h.fn.extend({offset:function(u){if(arguments.length)return u===void 0?this:this.each(function(A){h.offset.setOffset(this,u,A)});var y,x,k=this[0];if(k)return k.getClientRects().length?(y=k.getBoundingClientRect(),x=k.ownerDocument.defaultView,{top:y.top+x.pageYOffset,left:y.left+x.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var u,y,x,k=this[0],A={top:0,left:0};if(h.css(k,"position")==="fixed")y=k.getBoundingClientRect();else{for(y=this.offset(),x=k.ownerDocument,u=k.offsetParent||x.documentElement;u&&(u===x.body||u===x.documentElement)&&h.css(u,"position")==="static";)u=u.parentNode;u&&u!==k&&u.nodeType===1&&(A=h(u).offset(),A.top+=h.css(u,"borderTopWidth",!0),A.left+=h.css(u,"borderLeftWidth",!0))}return{top:y.top-A.top-h.css(k,"marginTop",!0),left:y.left-A.left-h.css(k,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var u=this.offsetParent;u&&h.css(u,"position")==="static";)u=u.offsetParent;return u||Zr})}}),h.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(u,y){var x=y==="pageYOffset";h.fn[u]=function(k){return Ae(this,function(A,I,L){var Y;if(b(A)?Y=A:A.nodeType===9&&(Y=A.defaultView),L===void 0)return Y?Y[y]:A[I];Y?Y.scrollTo(x?Y.pageXOffset:L,x?L:Y.pageYOffset):A[I]=L},u,k,arguments.length)}}),h.each(["top","left"],function(u,y){h.cssHooks[y]=$c(m.pixelPosition,function(x,k){if(k)return k=hs(x,y),aa.test(k)?h(x).position()[y]+"px":k})}),h.each({Height:"height",Width:"width"},function(u,y){h.each({padding:"inner"+u,content:y,"":"outer"+u},function(x,k){h.fn[k]=function(A,I){var L=arguments.length&&(x||typeof A!="boolean"),Y=x||(A===!0||I===!0?"margin":"border");return Ae(this,function(V,te,fe){var ge;return b(V)?k.indexOf("outer")===0?V["inner"+u]:V.document.documentElement["client"+u]:V.nodeType===9?(ge=V.documentElement,Math.max(V.body["scroll"+u],ge["scroll"+u],V.body["offset"+u],ge["offset"+u],ge["client"+u])):fe===void 0?h.css(V,te,Y):h.style(V,te,fe,Y)},y,L?A:void 0,L)}})}),h.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(u,y){h.fn[y]=function(x){return this.on(y,x)}}),h.fn.extend({bind:function(u,y,x){return this.on(u,null,y,x)},unbind:function(u,y){return this.off(u,null,y)},delegate:function(u,y,x,k){return this.on(y,u,x,k)},undelegate:function(u,y,x){return arguments.length===1?this.off(u,"**"):this.off(y,u||"**",x)},hover:function(u,y){return this.on("mouseenter",u).on("mouseleave",y||u)}}),h.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(u,y){h.fn[y]=function(x,k){return arguments.length>0?this.on(y,null,x,k):this.trigger(y)}});var _s=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;h.proxy=function(u,y){var x,k,A;if(typeof y=="string"&&(x=u[y],y=u,u=x),!!w(u))return k=s.call(arguments,2),A=l(function(){return u.apply(y||this,k.concat(s.call(arguments)))},"proxy"),A.guid=u.guid=u.guid||h.guid++,A},h.holdReady=function(u){u?h.readyWait++:h.ready(!0)},h.isArray=Array.isArray,h.parseJSON=JSON.parse,h.nodeName=R,h.isFunction=w,h.isWindow=b,h.camelCase=$e,h.type=N,h.now=Date.now,h.isNumeric=function(u){var y=h.type(u);
4return(y==="number"||y==="string")&&!isNaN(u-parseFloat(u))},h.trim=function(u){return u==null?"":(u+"").replace(_s,"$1")},typeof define=="function"&&define.amd&&define("jquery",[],function(){return h});var bs=r.jQuery,Eh=r.$;return h.noConflict=function(u){return r.$===h&&(r.$=Eh),u&&r.jQuery===h&&(r.jQuery=bs),h},typeof e>"u"&&(r.jQuery=r.$=h),h})});var Sa=Pe((L2,a_)=>{a_.exports=()=>window?.$?.fn?.jquery?(window.$.fn.jquery!==$.fn.jquery&&console.error("Tried to load version "+$.fn.jquery+", but already loaded version "+window.$.fn.jquery+"."),window.$):window.$=window.jQuery=s_()});var Uh=Pe(()=>{(function(r){"use strict";r($)})(function(r){"use strict";var e=window.Slick||{};e=function(){var t=0;function i(s,n){var a=this,c;a.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:r(s),appendDots:r(s),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(d,o){return r('<button type="button" data-role="none" role="button" tabindex="0" />').text(o+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},a.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},r.extend(a,a.initials),a.activeBreakpoint=null,a.animType=null,a.animProp=null,a.breakpoints=[],a.breakpointSettings=[],a.cssTransitions=!1,a.focussed=!1,a.interrupted=!1,a.hidden="hidden",a.paused=!0,a.positionProp=null,a.respondTo=null,a.rowCount=1,a.shouldClick=!0,a.$slider=r(s),a.$slidesCache=null,a.transformType=null,a.transitionType=null,a.visibilityChange="visibilitychange",a.windowWidth=0,a.windowTimer=null,c=r(s).data("slick")||{},a.options=r.extend({},a.defaults,n,c),a.currentSlide=a.options.initialSlide,a.originalSettings=a.options,typeof document.mozHidden<"u"?(a.hidden="mozHidden",a.visibilityChange="mozvisibilitychange"):typeof document.webkitHidden<"u"&&(a.hidden="webkitHidden",a.visibilityChange="webkitvisibilitychange"),a.autoPlay=r.proxy(a.autoPlay,a),a.autoPlayClear=r.proxy(a.autoPlayClear,a),a.autoPlayIterator=r.proxy(a.autoPlayIterator,a),a.changeSlide=r.proxy(a.changeSlide,a),a.clickHandler=r.proxy(a.clickHandler,a),a.selectHandler=r.proxy(a.selectHandler,a),a.setPosition=r.proxy(a.setPosition,a),a.swipeHandler=r.proxy(a.swipeHandler,a),a.dragHandler=r.proxy(a.dragHandler,a),a.keyHandler=r.proxy(a.keyHandler,a),a.instanceUid=t++,a.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,a.registerBreakpoints(),a.init(!0)}return l(i,"Slick"),i}(),e.prototype.activateADA=function(){var t=this;t.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(t,i,s){var n=this;if(typeof i=="boolean")s=i,i=null;else if(i<0||i>=n.slideCount)return!1;n.unload(),typeof i=="number"?i===0&&n.$slides.length===0?r(t).appendTo(n.$slideTrack):s?r(t).insertBefore(n.$slides.eq(i)):r(t).insertAfter(n.$slides.eq(i)):s===!0?r(t).prependTo(n.$slideTrack):r(t).appendTo(n.$slideTrack),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slides.each(function(a,c){r(c).attr("data-slick-index",a)}),n.$slidesCache=n.$slides,n.reinit()},e.prototype.animateHeight=function(){var t=this;if(t.options.slidesToShow===1&&t.options.adaptiveHeight===!0&&t.options.vertical===!1){var i=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.animate({height:i},t.options.speed)}},e.prototype.animateSlide=function(t,i){var s={},n=this;n.animateHeight(),n.options.rtl===!0&&n.options.vertical===!1&&(t=-t),n.transformsEnabled===!1?n.options.vertical===!1?n.$slideTrack.animate({left:t},n.options.speed,n.options.easing,i):n.$slideTrack.animate({top:t},n.options.speed,n.options.easing,i):n.cssTransitions===!1?(n.options.rtl===!0&&(n.currentLeft=-n.currentLeft),r({animStart:n.currentLeft}).animate({animStart:t},{duration:n.options.speed,easing:n.options.easing,step:function(a){a=Math.ceil(a),n.options.vertical===!1?(s[n.animType]="translate("+a+"px, 0px)",n.$slideTrack.css(s)):(s[n.animType]="translate(0px,"+a+"px)",n.$slideTrack.css(s))},complete:function(){i&&i.call()}})):(n.applyTransition(),t=Math.ceil(t),n.options.vertical===!1?s[n.animType]="translate3d("+t+"px, 0px, 0px)":s[n.animType]="translate3d(0px,"+t+"px, 0px)",n.$slideTrack.css(s),i&&setTimeout(function(){n.disableTransition(),i.call()},n.options.speed))},e.prototype.getNavTarget=function(){var t=this,i=t.options.asNavFor;return i&&i!==null&&(i=r(i).not(t.$slider)),i},e.prototype.asNavFor=function(t){var i=this,s=i.getNavTarget();s!==null&&typeof s=="object"&&s.each(function(){var n=r(this).slick("getSlick");n.unslicked||n.slideHandler(t,!0)})},e.prototype.applyTransition=function(t){var i=this,s={};i.options.fade===!1?s[i.transitionType]=i.transformType+" "+i.options.speed+"ms "+i.options.cssEase:s[i.transitionType]="opacity "+i.options.speed+"ms "+i.options.cssEase,i.options.fade===!1?i.$slideTrack.css(s):i.$slides.eq(t).css(s)},e.prototype.autoPlay=function(){var t=this;t.autoPlayClear(),t.slideCount>t.options.slidesToShow&&(t.autoPlayTimer=setInterval(t.autoPlayIterator,t.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var t=this;t.autoPlayTimer&&clearInterval(t.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var t=this,i=t.currentSlide+t.options.slidesToScroll;!t.paused&&!t.interrupted&&!t.focussed&&(t.options.infinite===!1&&(t.direction===1&&t.currentSlide+1===t.slideCount-1?t.direction=0:t.direction===0&&(i=t.currentSlide-t.options.slidesToScroll,t.currentSlide-1===0&&(t.direction=1))),t.slideHandler(i))},e.prototype.buildArrows=function(){var t=this;t.options.arrows===!0&&(t.$prevArrow=r(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=r(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),t.options.infinite!==!0&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var t=this,i,s;if(t.options.dots===!0&&t.slideCount>t.options.slidesToShow){for(t.$slider.addClass("slick-dotted"),s=r("<ul />
4").addClass(t.options.dotsClass),i=0;i<=t.getDotCount();i+=1)s.append(r("<li />").append(t.options.customPaging.call(this,t,i)));t.$dots=s.appendTo(t.options.appendDots),t.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},e.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each(function(i,s){r(s).attr("data-slick-index",i).data("originalStyling",r(s).attr("style")||"")}),t.$slider.addClass("slick-slider"),t.$slideTrack=t.slideCount===0?r('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),(t.options.centerMode===!0||t.options.swipeToSlide===!0)&&(t.options.slidesToScroll=1),r("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses(typeof t.currentSlide=="number"?t.currentSlide:0),t.options.draggable===!0&&t.$list.addClass("draggable")},e.prototype.buildRows=function(){var t=this,i,s,n,a,c,d,o;if(a=document.createDocumentFragment(),d=t.$slider.children(),t.options.rows>1){for(o=t.options.slidesPerRow*t.options.rows,c=Math.ceil(d.length/o),i=0;i<c;i++){var p=document.createElement("div");for(s=0;s<t.options.rows;s++){var g=document.createElement("div");for(n=0;n<t.options.slidesPerRow;n++){var v=i*o+(s*t.options.slidesPerRow+n);d.get(v)&&g.appendChild(d.get(v))}p.appendChild(g)}a.appendChild(p)}t.$slider.empty().append(a),t.$slider.children().children().children().css({width:100/t.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(t,i){var s=this,n,a,c,d=!1,o=s.$slider.width(),p=window.innerWidth||r(window).width();if(s.respondTo==="window"?c=p:s.respondTo==="slider"?c=o:s.respondTo==="min"&&(c=Math.min(p,o)),s.options.responsive&&s.options.responsive.length&&s.options.responsive!==null){a=null;for(n in s.breakpoints)s.breakpoints.hasOwnProperty(n)&&(s.originalSettings.mobileFirst===!1?c<s.breakpoints[n]&&(a=s.breakpoints[n]):c>s.breakpoints[n]&&(a=s.breakpoints[n]));a!==null?s.activeBreakpoint!==null?(a!==s.activeBreakpoint||i)&&(s.activeBreakpoint=a,s.breakpointSettings[a]==="unslick"?s.unslick(a):(s.options=r.extend({},s.originalSettings,s.breakpointSettings[a]),t===!0&&(s.currentSlide=s.options.initialSlide),s.refresh(t)),d=a):(s.activeBreakpoint=a,s.breakpointSettings[a]==="unslick"?s.unslick(a):(s.options=r.extend({},s.originalSettings,s.breakpointSettings[a]),t===!0&&(s.currentSlide=s.options.initialSlide),s.refresh(t)),d=a):s.activeBreakpoint!==null&&(s.activeBreakpoint=null,s.options=s.originalSettings,t===!0&&(s.currentSlide=s.options.initialSlide),s.refresh(t),d=a),!t&&d!==!1&&s.$slider.trigger("breakpoint",[s,d])}},e.prototype.changeSlide=function(t,i){var s=this,n=r(t.currentTarget),a,c,d;switch(n.is("a")&&t.preventDefault(),n.is("li")||(n=n.closest("li")),d=s.slideCount%s.options.slidesToScroll!==0,a=d?0:(s.slideCount-s.currentSlide)%s.options.slidesToScroll,t.data.message){case"previous":c=a===0?s.options.slidesToScroll:s.options.slidesToShow-a,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide-c,!1,i);break;case"next":c=a===0?s.options.slidesToScroll:a,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide+c,!1,i);break;case"index":var o=t.data.index===0?0:t.data.index||n.index()*s.options.slidesToScroll;s.slideHandler(s.checkNavigable(o),!1,i),n.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(t){var i=this,s,n;if(s=i.getNavigableIndexes(),n=0,t>s[s.length-1])t=s[s.length-1];else for(var a in s){if(t<s[a]){t=n;break}n=s[a]}return t},e.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&t.$dots!==null&&r("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",r.proxy(t.interrupt,t,!0)).off("mouseleave.slick",r.proxy(t.interrupt,t,!1)),t.$slider.off("focus.slick blur.slick"),t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide)),t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler),t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler),t.$list.off("touchend.slick mouseup.slick",t.swipeHandler),t.$list.off("touchcancel.
4slick mouseleave.slick",t.swipeHandler),t.$list.off("click.slick",t.clickHandler),r(document).off(t.visibilityChange,t.visibility),t.cleanUpSlideEvents(),t.options.accessibility===!0&&t.$list.off("keydown.slick",t.keyHandler),t.options.focusOnSelect===!0&&r(t.$slideTrack).children().off("click.slick",t.selectHandler),r(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),r(window).off("resize.slick.slick-"+t.instanceUid,t.resize),r("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),r(window).off("load.slick.slick-"+t.instanceUid,t.setPosition),r(document).off("ready.slick.slick-"+t.instanceUid,t.setPosition)},e.prototype.cleanUpSlideEvents=function(){var t=this;t.$list.off("mouseenter.slick",r.proxy(t.interrupt,t,!0)),t.$list.off("mouseleave.slick",r.proxy(t.interrupt,t,!1))},e.prototype.cleanUpRows=function(){var t=this,i;t.options.rows>1&&(i=t.$slides.children().children(),i.removeAttr("style"),t.$slider.empty().append(i))},e.prototype.clickHandler=function(t){var i=this;i.shouldClick===!1&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},e.prototype.destroy=function(t){var i=this;i.autoPlayClear(),i.touchObject={},i.cleanUpEvents(),r(".slick-cloned",i.$slider).detach(),i.$dots&&i.$dots.remove(),i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove()),i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove()),i.$slides&&(i.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){r(this).attr("style",r(this).data("originalStyling"))}),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides)),i.cleanUpRows(),i.$slider.removeClass("slick-slider"),i.$slider.removeClass("slick-initialized"),i.$slider.removeClass("slick-dotted"),i.unslicked=!0,t||i.$slider.trigger("destroy",[i])},e.prototype.disableTransition=function(t){var i=this,s={};s[i.transitionType]="",i.options.fade===!1?i.$slideTrack.css(s):i.$slides.eq(t).css(s)},e.prototype.fadeSlide=function(t,i){var s=this;s.cssTransitions===!1?(s.$slides.eq(t).css({zIndex:s.options.zIndex}),s.$slides.eq(t).animate({opacity:1},s.options.speed,s.options.easing,i)):(s.applyTransition(t),s.$slides.eq(t).css({opacity:1,zIndex:s.options.zIndex}),i&&setTimeout(function(){s.disableTransition(t),i.call()},s.options.speed))},e.prototype.fadeSlideOut=function(t){var i=this;i.cssTransitions===!1?i.$slides.eq(t).animate({opacity:0,zIndex:i.options.zIndex-2},i.options.speed,i.options.easing):(i.applyTransition(t),i.$slides.eq(t).css({opacity:0,zIndex:i.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(t){var i=this;t!==null&&(i.$slidesCache=i.$slides,i.unload(),i.$slideTrack.children(this.options.slide).detach(),i.$slidesCache.filter(t).appendTo(i.$slideTrack),i.reinit())},e.prototype.focusHandler=function(){var t=this;t.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",function(i){i.stopImmediatePropagation();var s=r(this);setTimeout(function(){t.options.pauseOnFocus&&(t.focussed=s.is(":focus"),t.autoPlay())},0)})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){var t=this;return t.currentSlide},e.prototype.getDotCount=function(){var t=this,i=0,s=0,n=0;if(t.options.infinite===!0)for(;i<t.slideCount;)++n,i=s+t.options.slidesToScroll,s+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(t.options.centerMode===!0)n=t.slideCount;else if(!t.options.asNavFor)n=1+Math.ceil((t.slideCount-t.options.slidesToShow)/t.options.slidesToScroll);else for(;i<t.slideCount;)++n,i=s+t.options.slidesToScroll,s+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return n-1},e.prototype.getLeft=function(t){var i=this,s,n,a=0,c;return i.slideOffset=0,n=i.$slides.first().outerHeight(!0),i.options.infinite===!0?(i.slideCount>i.options.slidesToShow&&(i.slideOffset=i.slideWidth*i.options.slidesToShow*-1,a=n*i.options.slidesToShow*-1),i.slideCount%i.options.slidesToScroll!==0&&t+i.options.slidesToScroll>i.slideCount&&i.slideCount>i.options.slidesToShow&&(t>i.slideCount?(i.slideOffset=(i.options.slidesToShow-(t-i.slideCount))*i.slideWidth*-1,a=(i.options.slidesToShow-(t-i.slideCount))*n*-1):(i.slideOffset=i.slideCount%i.options.slidesToScroll*i.slideWidth*-1,a=i.slideCount%i.options.slidesToScroll*n*-1))):t+i.options.slidesToShow>i.slideCount&&(i.slideOffset=(t+i.options.slidesToShow-i.slideCount)*i.slideWidth,a=(t+i.options.slidesToShow-i.slideCount)*n),i.slideCount<=i.options.slidesToShow&&(i.slideOffset=0,a=0),i.options.centerMode===!0&&i.options.infinite===!0?i.slideOffset+=i.slideWidth*Math.floor(i.options.slidesToShow/2)-i.slideWidth:i.options.centerMode===!0&&(i.slideOffset=0,i.slideOffset+=i.slideWidth*Math.floor(i.options.slidesToShow/2)),i.options.vertical===!1?s=t*i.slideWidth*-1+i.slideOffset:s=t*n*-1+a,i.options.variableWidth===!0&&(i.slideCount<=i.options.slidesToShow||i.options.infinite===!1?c=i.$slideTrack.children(".slick-slide").eq(t):c=i.$slideTrack.children(".slick-slide").eq(t+i.options.slidesToShow),i.options.rtl===!0?c[0]?s=(i.$slideTrack.width()-c[0].offsetLeft-c.width())*-1:s=0:s=c[0]?c[0].offsetLeft*-1:0,i.options.centerMode===!0&&(i.slideCount<=i.options.slidesToShow||i.options.infinite===!1?c=i.$slideTrack.children(".slick-slide").eq(t):c=i.$slideTrack.children(".slick-slide").eq(t+i.options.slidesToShow+1),i.options.rtl===!0?c[0]?s=(i.$slideTrack.width()-c[0].offsetLeft-c.width())*-1:s=0:s=c[0]?c[0].offsetLeft*-1:0,s+=(i.$list.width()-c.outerWidth())/2)),s},e.prototype.getOption=e.prototype.slickGetOption=function(t){var i=this;return i.options[t]},e.prototype.getNavigableIndexes=function(){var t=this,i=0,s=0,n=[],a;for(t.options.infinite===!1?a=t.slideCount:(i=t.options.slidesToScroll*-1,s=t.options.slidesToScroll*-1,a=t.slideCount*2);i<a;)n.push(i),i=s+t.options.slidesToScroll,s+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return n},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var t=this,i,s,n;return n=t.options.centerMode===!0?t.slideWidth*Math.floor(t.options.slidesToShow/2):0,t.options.swipeToSlide===!0?(t.$slideTrack.find(".slick-slide").each(function(a,c){if(c.offsetLeft-n+r(c).outerWidth()/2>t.swipeLeft*-1)return s=c,!1}),i=Math.abs(r(s).attr("data-slick-index")-t.currentSlide)||1,i):t.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(t,i){var s=this;
4s.changeSlide({data:{message:"index",index:parseInt(t)}},i)},e.prototype.init=function(t){var i=this;r(i.$slider).hasClass("slick-initialized")||(r(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots(),i.checkResponsive(!0),i.focusHandler()),t&&i.$slider.trigger("init",[i]),i.options.accessibility===!0&&i.initADA(),i.options.autoplay&&(i.paused=!1,i.autoPlay())},e.prototype.initADA=function(){var t=this;t.$slides.add(t.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),t.$slideTrack.attr("role","listbox"),t.$slides.not(t.$slideTrack.find(".slick-cloned")).each(function(i){r(this).attr({role:"option","aria-describedby":"slick-slide"+t.instanceUid+i})}),t.$dots!==null&&t.$dots.attr("role","tablist").find("li").each(function(i){r(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+t.instanceUid+i,id:"slick-slide"+t.instanceUid+i})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),t.activateADA()},e.prototype.initArrowEvents=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.off("click.slick").on("click.slick",{message:"next"},t.changeSlide))},e.prototype.initDotEvents=function(){var t=this;t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&r("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),t.options.dots===!0&&t.options.pauseOnDotsHover===!0&&r("li",t.$dots).on("mouseenter.slick",r.proxy(t.interrupt,t,!0)).on("mouseleave.slick",r.proxy(t.interrupt,t,!1))},e.prototype.initSlideEvents=function(){var t=this;t.options.pauseOnHover&&(t.$list.on("mouseenter.slick",r.proxy(t.interrupt,t,!0)),t.$list.on("mouseleave.slick",r.proxy(t.interrupt,t,!1)))},e.prototype.initializeEvents=function(){var t=this;t.initArrowEvents(),t.initDotEvents(),t.initSlideEvents(),t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler),t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler),t.$list.on("touchend.slick mouseup.slick",{action:"end"}
4,t.swipeHandler),t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler),t.$list.on("click.slick",t.clickHandler),r(document).on(t.visibilityChange,r.proxy(t.visibility,t)),t.options.accessibility===!0&&t.$list.on("keydown.slick",t.keyHandler),t.options.focusOnSelect===!0&&r(t.$slideTrack).children().on("click.slick",t.selectHandler),r(window).on("orientationchange.slick.slick-"+t.instanceUid,r.proxy(t.orientationChange,t)),r(window).on("resize.slick.slick-"+t.instanceUid,r.proxy(t.resize,t)),r("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault),r(window).on("load.slick.slick-"+t.instanceUid,t.setPosition),r(document).on("ready.slick.slick-"+t.instanceUid,t.setPosition)},e.prototype.initUI=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&t.$dots.show()},e.prototype.keyHandler=function(t){var i=this;t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(t.keyCode===37&&i.options.accessibility===!0?i.changeSlide({data:{message:i.options.rtl===!0?"next":"previous"}}):t.keyCode===39&&i.options.accessibility===!0&&i.changeSlide({data:{message:i.options.rtl===!0?"previous":"next"}}))},e.prototype.lazyLoad=function(){var t=this,i,s,n,a;function c(d){r("img[data-lazy]",d).each(function(){var o=r(this),p=r(this).attr("data-lazy"),g=document.createElement("img");g.onload=function(){o.animate({opacity:0}
4,100,function(){o.attr("src",p).animate({opacity:1},200,function(){o.removeAttr("data-lazy").removeClass("slick-loading")}),t.$slider.trigger("lazyLoaded",[t,o,p])})},g.onerror=function(){o.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),t.$slider.trigger("lazyLoadError",[t,o,p])},g.src=p})}l(c,"loadImages"),t.options.centerMode===!0?t.options.infinite===!0?(n=t.currentSlide+(t.options.slidesToShow/2+1),a=n+t.options.slidesToShow+2):(n=Math.max(0,t.currentSlide-(t.options.slidesToShow/2+1)),a=2+(t.options.slidesToShow/2+1)+t.currentSlide):(n=t.options.infinite?t.options.slidesToShow+t.currentSlide:t.currentSlide,a=Math.ceil(n+t.options.slidesToShow),t.options.fade===!0&&(n>0&&n--,a<=t.slideCount&&a++)),i=t.$slider.find(".slick-slide").slice(n,a),c(i),t.slideCount<=t.options.slidesToShow?(s=t.$slider.find(".slick-slide"),c(s)):t.currentSlide>=t.slideCount-t.options.slidesToShow?(s=t.$slider.find(".slick-cloned").slice(0,t.options.slidesToShow),c(s)):t.currentSlide===0&&(s=t.$slider.find(".slick-cloned").slice(t.options.slidesToShow*-1),c(s))},e.prototype.loadSlider=function(){var t=this;t.setPosition(),t.$slideTrack.css({opacity:1}),t.$slider.removeClass("slick-loading"),t.initUI(),t.options.lazyLoad==="progressive"&&t.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){var t=this;t.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var t=this;t.checkResponsive(),t.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var t=this;t.autoPlayClear(),t.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var t=this;t.autoPlay(),t.options.autoplay=!0,t.paused=!1,t.focussed=!1,t.interrupted=!1},e.prototype.postSlide=function(t){var i=this;i.unslicked||(i.$slider.trigger("afterChange",[i,t]),i.animating=!1,i.setPosition(),i.swipeLeft=null,i.options.autoplay&&i.autoPlay(),i.options.accessibility===!0&&i.initADA())},e.prototype.prev=e.prototype.slickPrev=function(){var t=this;t.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(t){t.preventDefault()},e.prototype.progressiveLazyLoad=function(t){t=t||1;var i=this,s=r("img[data-lazy]",i.$slider),n,a,c;s.length?(n=s.first(),a=n.attr("data-lazy"),c=document.createElement("img"),c.onload=function(){n.attr("src",a).removeAttr("data-lazy").removeClass("slick-loading"),i.options.adaptiveHeight===!0&&i.setPosition(),i.$slider.trigger("lazyLoaded",[i,n,a]),i.progressiveLazyLoad()},c.onerror=function(){t<3?setTimeout(function(){i.progressiveLazyLoad(t+1)},500):(n.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),i.$slider.trigger("lazyLoadError",[i,n,a]),i.progressiveLazyLoad())},c.src=a):i.$slider.trigger("allImagesLoaded",[i])},e.prototype.refresh=function(t){var i=this,s,n;n=i.slideCount-i.options.slidesToShow,!i.options.infinite&&i.currentSlide>n&&(i.currentSlide=n),i.slideCount<=i.options.slidesToShow&&(i.currentSlide=0),s=i.currentSlide,i.destroy(!0),r.extend(i,i.initials,{currentSlide:s}),i.init(),t||i.changeSlide({data:{message:"index",index:s}},!1)},e.prototype.registerBreakpoints=function(){var t=this,i,s,n,a=t.options.responsive||null;if(r.type(a)==="array"&&a.length){t.respondTo=t.options.respondTo||"window";for(i in a)if(n=t.breakpoints.length-1,s=a[i].breakpoint,a.hasOwnProperty(i)){for(;n>=0;)t.breakpoints[n]&&t.breakpoints[n]===s&&t.breakpoints.splice(n,1),n--;t.breakpoints.push(s),t.breakpointSettings[s]=a[i].settings}t.breakpoints.sort(function(c,d){return t.options.mobileFirst?c-d:d-c})}},e.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&t.currentSlide!==0&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.cleanUpSlideEvents(),t.initSlideEvents(),t.checkResponsive(!1,!0),t.options.focusOnSelect===!0&&r(t.$slideTrack).children().on("click.slick",t.selectHandler),t.setSlideClasses(typeof t.currentSlide=="number"?t.currentSlide:0),t.setPosition(),t.focusHandler(),t.paused=!t.o
4ptions.autoplay,t.autoPlay(),t.$slider.trigger("reInit",[t])},e.prototype.resize=function(){var t=this;r(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=r(window).width(),t.checkResponsive(),t.unslicked||t.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(t,i,s){var n=this;if(typeof t=="boolean"?(i=t,t=i===!0?0:n.slideCount-1):t=i===!0?--t:t,n.slideCount<1||t<0||t>n.slideCount-1)return!1;n.unload(),s===!0?n.$slideTrack.children().remove():n.$slideTrack.children(this.options.slide).eq(t).remove(),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slidesCache=n.$slides,n.reinit()},e.prototype.setCSS=function(t){var i=this,s={},n,a;i.options.rtl===!0&&(t=-t),n=i.positionProp=="left"?Math.ceil(t)+"px":"0px",a=i.positionProp=="top"?Math.ceil(t)+"px":"0px",s[i.positionProp]=t,i.transformsEnabled===!1?i.$slideTrack.css(s):(s={},i.cssTransitions===!1?(s[i.animType]="translate("+n+", "+a+")",i.$slideTrack.css(s)):(s[i.animType]="translate3d("+n+", "+a+", 0px)",i.$slideTrack.css(s)))},e.prototype.setDimensions=function(){var t=this;t.options.vertical===!1?t.options.centerMode===!0&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),t.options.centerMode===!0&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),t.options.vertical===!1&&t.options.variableWidth===!1?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):t.options.variableWidth===!0?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length)));var i=t.$slides.first().outerWidth(!0)-t.$slides.first().width();t.options.variableWidth===!1&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-i)},e.prototype.setFade=function(){var t=this,i;t.$slides.each(function(s,n){i=t.slideWidth*s*-1,t.options.rtl===!0?r(n).css({position:"relative",right:i,top:0,zIndex:t.options.zIndex-2,opacity:0}
4):r(n).css({position:"relative",left:i,top:0,zIndex:t.options.zIndex-2,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var t=this;if(t.options.slidesToShow===1&&t.options.adaptiveHeight===!0&&t.options.vertical===!1){var i=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.css("height",i)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var t=this,i,s,n,a,c=!1,d;if(r.type(arguments[0])==="object"?(n=arguments[0],c=arguments[1],d="multiple"):r.type(arguments[0])==="string"&&(n=arguments[0],a=arguments[1],c=arguments[2],arguments[0]==="responsive"&&r.type(arguments[1])==="array"?d="responsive":typeof arguments[1]<"u"&&(d="single")),d==="single")t.options[n]=a;else if(d==="multiple")r.each(n,function(o,p){t.options[o]=p});else if(d==="responsive")for(s in a)if(r.type(t.options.responsive)!=="array")t.options.responsive=[a[s]];else{for(i=t.options.responsive.length-1;i>=0;)t.options.responsive[i].breakpoint===a[s].breakpoint&&t.options.responsive.splice(i,1),i--;t.options.responsive.push(a[s])}c&&(t.unload(),t.reinit())},e.prototype.setPosition=function(){var t=this;t.setDimensions(),t.setHeight(),t.options.fade===!1?t.setCSS(t.getLeft(t.currentSlide)):t.setFade(),t.$slider.trigger("setPosition",[t])},e.prototype.setProps=function(){var t=this,i=document.body.style;t.positionProp=t.options.vertical===!0?"top":"left",t.positionProp==="top"?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),(i.WebkitTransition!==void 0||i.MozTransition!==void 0||i.msTransition!==void 0)&&t.options.useCSS===!0&&(t.cssTransitions=!0),t.options.fade&&(typeof t.options.zIndex=="number"?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),i.OTransform!==void 0&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",i.perspectiveProperty===void 0&&i.webkitPerspective===void 0&&(t.animType=!1)),i.MozTransform!==void 0&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",i.perspectiveProperty===void 0&&i.MozPerspective===void 0&&(t.animType=!1)),i.webkitTransform!==void 0&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",i.perspectiveProperty===void 0&&i.webkitPerspective===void 0&&(t.animType=!1)),i.msTransform!==void 0&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",i.msTransform===void 0&&(t.animType=!1)),i.transform!==void 0&&t.animType!==!1&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.options.useTransform&&t.animType!==null&&t.animType!==!1},e.prototype.setSlideClasses=function(t){var i=this,s,n,a,c;n=i.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),i.$slides.eq(t).addClass("slick-current"),i.options.centerMode===!0?(s=Math.floor(i.options.slidesToShow/2),i.options.infinite===!0&&(t>=s&&t<=i.slideCount-1-s?i.$slides.slice(t-s,t+s+1).addClass("slick-active").attr("aria-hidden","false"):(a=i.options.slidesToShow+t,n.slice(a-s+1,a+s+2).addClass("slick-active").attr("aria-hidden","false")),t===0?n.eq(n.length-1-i.options.slidesToShow).addClass("slick-center"):t===i.slideCount-1&&n.eq(i.options.slidesToShow).addClass("slick-center")),i.$slides.eq(t).addClass("slick-center")):t>=0&&t<=i.slideCount-i.options.slidesToShow?i.$slides.slice(t,t+i.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):n.length<=i.options.slidesToShow?n.addClass("slick-active").attr("aria-hidden","false"):(c=i.slideCount%i.options.slidesToShow,a=i.options.infinite===!0?i.options.slidesToShow+t:t,i.options.slidesToShow==i.options.slidesToScroll&&i.slideCount-t<i.options.slidesToShow?n.slice(a-(i.options.slidesToShow-c),a+c).addClass("slick-active").attr("aria-hidden","false"):n.slice(a,a+i.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")),i.options.lazyLoad==="ondemand"&&i.lazyLoad()},e.prototype.setupInfinite=function(){var t=this,i,s,n;if(t.options.fade===!0&&(t.options.centerMode=!1),t.options.infinite===!0&&t.options.fade===!1&&(s=null,t.slideCount>t.options.slidesToShow)){for(t.options.centerMode===!0?n=t.options.slidesToShow+1:n=t.options.slidesToShow,i=t.slideCount;i>t.slideCount-n;i-=1)s=i-1,r(t.$slides[s]).clone(!0).attr("id","").attr("data-slick-index",s-t.slideCount).prependTo(t.$slideTrack).addClass("slick-cloned");for(i=0;i<n;i+=1)s=i,r(t.$slides[s]).clone(!0).attr("id","").attr("data-slick-index",s+t.slideCount).appendTo(t.$slideTrack).addClass("slick-cloned");t.$slideTrack.find(".slick-cloned").find("[id]").each(function(){r(this).attr("id","")})}},e.prototype.interrupt=function(t){var i=this;t||i.autoPlay(),i.interrupted=t},e.prototype.selectHandler=function(t){var i=this,s=r(t.target).is(".slick-slide")?r(t.target):r(t.target).parents(".slick-slide"),n=parseInt(s.attr("data-slick-index"));if(n||(n=0),i.slideCount<=i.options.slidesToShow){i.setSlideClasses(n),i.asNavFor(n);return}i.slideHandler(n)},e.prototype.slideHandler=function(t,i,s){var n,a,c,d,o=null,p=this,g;
4if(i=i||!1,!(p.animating===!0&&p.options.waitForAnimate===!0)&&!(p.options.fade===!0&&p.currentSlide===t)&&!(p.slideCount<=p.options.slidesToShow)){if(i===!1&&p.asNavFor(t),n=t,o=p.getLeft(n),d=p.getLeft(p.currentSlide),p.currentLeft=p.swipeLeft===null?d:p.swipeLeft,p.options.infinite===!1&&p.options.centerMode===!1&&(t<0||t>p.getDotCount()*p.options.slidesToScroll)){p.options.fade===!1&&(n=p.currentSlide,s!==!0?p.animateSlide(d,function(){p.postSlide(n)}):p.postSlide(n));return}else if(p.options.infinite===!1&&p.options.centerMode===!0&&(t<0||t>p.slideCount-p.options.slidesToScroll)){p.options.fade===!1&&(n=p.currentSlide,s!==!0?p.animateSlide(d,function(){p.postSlide(n)}):p.postSlide(n));return}if(p.options.autoplay&&clearInterval(p.autoPlayTimer),n<0?p.slideCount%p.options.slidesToScroll!==0?a=p.slideCount-p.slideCount%p.options.slidesToScroll:a=p.slideCount+n:n>=p.slideCount?p.slideCount%p.options.slidesToScroll!==0?a=0:a=n-p.slideCount:a=n,p.animating=!0,p.$slider.trigger("beforeChange",[p,p.currentSlide,a]),c=p.currentSlide,p.currentSlide=a,p.setSlideClasses(p.currentSlide),p.options.asNavFor&&(g=p.getNavTarget(),g=g.slick("getSlick"),g.slideCount<=g.options.slidesToShow&&g.setSlideClasses(p.currentSlide)),p.updateDots(),p.updateArrows(),p.options.fade===!0){s!==!0?(p.fadeSlideOut(c),p.fadeSlide(a,function(){p.postSlide(a)})):p.postSlide(a),p.animateHeight();return}s!==!0?p.animateSlide(o,function(){p.postSlide(a)}):p.postSlide(a)}},e.prototype.startLoad=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var t,i,s,n,a=this;return t=a.touchObject.startX-a.touchObject.curX,i=a.touchObject.startY-a.touchObject.curY,s=Math.atan2(i,t),n=Math.round(s*180/Math.PI),n<0&&(n=360-Math.abs(n)),n<=45&&n>=0||n<=360&&n>=315?a.options.rtl===!1?"left":"right":n>=135&&n<=225?a.options.rtl===!1?"right":"left":a.options.verticalSwiping===!0?n>=35&&n<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(t){var i=this,s,n;if(i.dragging=!1,i.interrupted=!1,i.shouldClick=!(i.touchObject.swipeLength>10),i.touchObject.curX===void 0)return!1;if(i.touchObject.edgeHit===!0&&i.$slider.trigger("edge",[i,i.swipeDirection()]),i.touchObject.swipeLength>=i.touchObject.minSwipe){switch(n=i.swipeDirection(),n){case"left":case"down":s=i.options.swipeToSlide?i.checkNavigable(i.currentSlide+i.getSlideCount()):i.currentSlide+i.getSlideCount(),i.currentDirection=0;break;case"right":case"up":s=i.options.swipeToSlide?i.checkNavigable(i.currentSlide-i.getSlideCount()):i.currentSlide-i.getSlideCount(),i.currentDirection=1;break;default:}n!="vertical"&&(i.slideHandler(s),i.touchObject={},i.$slider.trigger("swipe",[i,n]))}else i.touchObject.startX!==i.touchObject.curX&&(i.slideHandler(i.currentSlide),i.touchObject={})},e.prototype.swipeHandler=function(t){var i=this;if(!(i.options.swipe===!1||"ontouchend"in document&&i.options.swipe===!1)&&!(i.options.draggable===!1&&t.type.indexOf("mouse")!==-1))switch(i.touchObject.fingerCount=t.originalEvent&&t.originalEvent.touches!==void 0?t.originalEvent.touches.length:1,i.touchObject.minSwipe=i.listWidth/i.options.touchThreshold,i.options.verticalSwiping===!0&&(i.touchObject.minSwipe=i.listHeight/i.options.touchThreshold),t.data.action){case"start":i.swipeStart(t);break;case"move":i.swipeMove(t);break;case"end":i.swipeEnd(t);break}},e.prototype.swipeMove=function(t){var i=this,s=!1,n,a,c,d,o;if(o=t.originalEvent!==void 0?t.originalEvent.touches:null,!i.dragging||o&&o.length!==1)return!1;if(n=i.getLeft(i.currentSlide),i.touchObject.curX=o!==void 0?o[0].pageX:t.clientX,i.touchObject.curY=o!==void 0?o[0].pageY:t.clientY,i.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(i.touchObject.curX-i.touchObject.startX,2))),i.options.verticalSwiping===!0&&(i.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(i.touchObject.curY-i.touchObject.startY,2)))),a=i.swipeDirection(),a!=="vertical"){if(t.originalEvent!==void 0&&i.touchObject.swipeLength>4&&t.preventDefault(),d=(i.options.rtl===!1?1:-1)*(i.touchObject.curX>i.touchObject.startX?1:-1),i.options.verticalSwiping===!0&&(d=i.touchObject.curY>i.touchObject.startY?1:-1),c=i.touchObject.swipeLength,i.touchObject.edgeHit=!1,i.options.infinite===!1&&(i.currentSlide===0&&a==="right"||i.currentSlide>=i.getDotCount()&&a==="left")&&(c=i.touchObject.swipeLength*i.options.edgeFriction,i.touchObject.edgeHit=!0),i.options.vertical===!1?i.swipeLeft=n+c*d:i.swipeLeft=n+c*(i.$list.height()/i.listWidth)*
4d,i.options.verticalSwiping===!0&&(i.swipeLeft=n+c*d),i.options.fade===!0||i.options.touchMove===!1)return!1;if(i.animating===!0)return i.swipeLeft=null,!1;i.setCSS(i.swipeLeft)}},e.prototype.swipeStart=function(t){var i=this,s;if(i.interrupted=!0,i.touchObject.fingerCount!==1||i.slideCount<=i.options.slidesToShow)return i.touchObject={},!1;t.originalEvent!==void 0&&t.originalEvent.touches!==void 0&&(s=t.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=s!==void 0?s.pageX:t.clientX,i.touchObject.startY=i.touchObject.curY=s!==void 0?s.pageY:t.clientY,i.dragging=!0},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var t=this;t.$slidesCache!==null&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.appendTo(t.$slideTrack),t.reinit())},e.prototype.unload=function(){var t=this;r(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove(),t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove(),t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},e.prototype.unslick=function(t){var i=this;i.$slider.trigger("unslick",[i,t]),i.destroy()},e.prototype.updateArrows=function(){var t=this,i;i=Math.floor(t.options.slidesToShow/2),t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&!t.options.infinite&&(t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),t.currentSlide===0?(t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(t.currentSlide>=t.slideCount-t.options.slidesToShow&&t.options.centerMode===!1||t.currentSlide>=t.slideCount-1&&t.options.centerMode===!0)&&(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var t=this;t.$dots!==null&&(t.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),t.$dots.find("li").eq(Math.floor(t.currentSlide/t.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},e.prototype.visibility=function(){var t=this;t.options.autoplay&&(document[t.hidden]?t.interrupted=!0:t.interrupted=!1)},r.fn.slick=function(){var t=this,i=arguments[0],s=Array.prototype.slice.call(arguments,1),n=t.length,a,c;for(a=0;a<n;a++)if(typeof i=="object"||typeof i>"u"?t[a].slick=new e(t[a],i):c=t[a].slick[i].apply(t[a].slick,s),typeof c<"u")return c;return t}})});var l_=Pe((q2,o_)=>{Uh();function cO(r,e="petitions"){let t=$(r),i=t.find(`.${e}_list`);t.find(`.${e}_group`).css("height","auto"),e=e==="petitions"?"petition":e,i.slick({prevArrow:t.find(".prev"),nextArrow:t.find(".next"),dots:!1,infinite:!1,slide:`.${e}`,slidesToShow:3,slidesToScroll:3,responsive:[{breakpoint:999,settings:{arrows:!1,slidesToShow:1,slidesToScroll:1,variableWidth:!0,touchThreshold:10,swipeToSlide:!0}}]})}l(cO,"trendingPetitionsScrolling");o_.exports=cO});var Wh=Pe((B2,f_)=>{var Qc=[{name:"second",value:1e3},{name:"minute",value:6e4},{name:"hour",value:36e5},{name:"day",value:864e5},{name:"week",value:6048e5}],jh={P:Math.pow(2,50),T:Math.pow(2,40),G:Math.pow(2,30),M:Math.pow(2,20)},Hi=l(r=>typeof r<"u"&&r!==null,"exists"),c_=l(r=>r!==r,"isNaN"),qh=l(r=>isFinite(r)&&!c_(parseFloat(r)),"isFiniteNumber"),u_=l(r=>Object.prototype.toString.call(r)==="[object Array]","isArray"),zt={intword(r,e,t=2){return zt.compactInteger(r,t)},compactInteger(r,e=0){e=Math.max(e,0);let t=parseInt(r,10),i=t<0?"-":"",s=Math.abs(t),n=String(s),a=n.length,c=[13,10,7,4],d=["T","B","M","k"];if(s<1e3)return`${i}${n}`;if(a>c[0]+3)return t.toExponential(e).replace("e+","x10^");let o;for(let O=0;O<c.length;O++){let P=c[O];if(a>=P){o=P;break}}let p=a-o+1,g=n.split(""),v=g.prototype.slice.call(0,p),m=g.prototype.slice.call(p,p+e+1),w=v.join(""),b=m.join("");b.length<e&&(b+=`${Array(e-b.length+1).join("0")}`);let S;if(e===0)S=`${i}${w}${d[c.indexOf(o)]}`;else{let O=(+`${w}.${b}`).toFixed(e);S=`${i}${O}${d[c.indexOf(o)]}`}return S},intComma(r,e=0){return zt.formatNumber(r,e)},intcomma(...r){return zt.intComma(...r)},fileSize(r,e=2){for(let t in jh)if(jh.hasOwnProperty(t)){let i=jh[t];if(r>=i)return`${zt.formatNumber(r/i,e,"")} ${t}B`}return r>=1024?`${zt.formatNumber(r/1024,0)} KB`:zt.formatNumber(r,0)+zt.pluralize(r," byte")},filesize(...r){return zt.fileSize(...r)},formatNumber(r,e=0,t=",",i="."){let s=l((g,v,m)=>m?g.substr(0,m)+v:"","firstComma"),n=l((g,v,m)=>g.substr(m).replace(/(\d{3})(?=\d)/g,`$1${v}`),"commas"),a=l((g,v,m)=>m?v+zt.toFixed(Math.abs(g),m).split(".")[1]:"","decimals"),c=zt.normalizePrecision(e),d=r<0&&"-"||"",o=String(parseInt(zt.toFixed(Math.abs(r||0),c),10)),p=o.length>3?o.length%3:0;return d+s(o,t,p)+n(o,t,p)+a(r,i,c)},toFixed(r,e){e=Hi(e)?e:zt.normalizePrecision(e,0);let t=Math.pow(10,e);return(Math.round(r*t)/t).toFixed(e)},normalizePrecision(r,e){return r=Math.round(Math.abs(r)),c_(r)?e:r},ordinal(r){let e=parseInt(r,10);if(e===0)return r;let t=e%100;if([11,12,13].indexOf(t)>=0)return`${e}th`;let i=e%10,s;switch(i){case 1:s="st";break;case 2:s="nd";break;case 3:s="rd";break;default:s="th"}return`${e}${s}`},times(r,e={}){if(qh(r)&&r>=0){let t=parseFloat(r),i=["never","once","twice"];return Hi(e[t])?String(e[t]):Hi(i[t])&&i[t].toString()||`${t.toString()} times`}return null},pluralize(r,e,t){return Hi(r)&&Hi(e)?(t=Hi(t)?t:`${e}s`,parseInt(r,10)===1?e:t):null},truncate(r,e=100,t="..."){return r.length>e?r.substring(0,e-t.length)+t:r},truncateWords(r,e){let t=r.split(" "),i="",s=0;for(;s<e;)Hi(t[s])&&(i+=`${t[s]} `),s++;return t.length>e?`${i}...`:null},truncatewords(...r){return zt.truncateWords(...r)},boundedNumber(r,e=100,t="+"){let i;return qh(r)&&qh(e)&&r>e&&(i=e+t),(i||r).toString()},truncatenumber(...r){return zt.boundedNumber(...r)},oxford(r,e,t){let i=r.length,s;if(i<2)return String(r);if(i===2)return r.join(" and ");if(Hi(e)&&i>e){let n=i-e;s=e,t=Hi(t)?t:`, and ${n} ${zt.pluralize(n,"other")}`}else s=-1,t=`, and ${r[i-1]}`;return r.slice(0,s).join(", ")+t},dictionary(r,e=" is ",t=", "){let i="";if(Hi(r)&&typeof r=="object"&&!u_(r)){let s=[];for(let n in r)if(r.hasOwnProperty(n)){let a=r[n];s.push(`${n}${e}${a}`)}return s.join(t)}return i},frequency(r,e){if(!u_(r))return null;let t=r.length,i=zt.times(t);return t===0?`${i} ${e}`:`${e} ${i}`},pace(r,e,t="time"){if(r===0||e===0)return`No ${zt.pluralize(0,t)}`;let i="Approximately",s,n,a=r/e;for(let d=0;d<Qc.length;++d){let o=Qc[d];if(n=a*o.value,n>1){s=o.name;break}}s||(i="Less than",n=1,s=Qc[Qc.length-1].name);let c=Math.round(n);return t=zt.pluralize(c,t),`${i} ${c} ${t} per ${s}`},nl2br(r,e="<br/>"){return r.replace(/\n/g,e)},br2nl(r,e=`\r
5`){return r.replace(/\<br\s*\/?\>/g,e)},capitalize(r,e=!1){return`${r.charAt(0).toUpperCase()}${e?r.slice(1).toLowerCase():r.slice(1)}`},capitalizeAll(r){return r.replace(/(?:^|\s)\S/g,e=>e.toUpperCase())},titleCase(r){let e=/\b(a|an|and|at|but|by|de|en|for|if|in|of|on|or|the|to|via|vs?\.?)\b/i,t=/\S+[A-Z]+\S*/,i=/\s+/,s=/-/,n;return n=l((a,c=!1,d=!0)=>{let o=[],p=a.split(c?s:i);for(let g=0;g<p.length;++g){let v=p[g];if(v.indexOf("-")!==-1){o.push(n(v,!0,g===0||g===p.length-1));continue}if(d&&(g===0||g===p.length-1)){o.push(t.test(v)?v:zt.capitalize(v));continue}t.test(v)?o.push(v):e.test(v)?o.push(v.toLowerCase()):o.push(zt.capitalize(v))}return o.join(c?"-":" ")},"doTitleCase"),n(r)},titlecase(...r){return zt.titleCase(...r)}};f_.exports=zt});var d_=Pe(()=>{(function(r){r.fn.loadImages=function(e){return e=e||"lazy-load",this.each(function(){r(this).find("img."+e).each(function(){var t=r(this);t.attr("src",t.attr("rel")).removeClass(e)})})}})(jQuery);(function(r){r.fn.unveil=function(e,t){var i=r(window),s=e||0,n=window.devicePixelRatio>1,a=n?"data-src-retina":"data-src",c=this,d;this.one("unveil",function(){var p=this.getAttribute(a);p=p||this.getAttribute("data-src"),p&&(this.setAttribute("src",p),typeof t=="function"&&t.call(this))});function o(){var p=c.filter(function(){var g=r(this);if(!g.is(":hidden")){var v=i.scrollTop(),m=v+i.height(),w=g.offset().top,b=w+g.height();return b>=v-s&&w<=m+s}});d=p.trigger("unveil"),c=c.not(d)}return l(o,"unveil"),i.on("scroll.unveil resize.unveil lookup.unveil",o),o(),this}})(jQuery)});var Bh=Pe((K2,h_)=>{var ef=Wh();ef.intlFormatNumber=function(r,e=0){return typeof care2IntlNumberFormat=="object"?ef.formatNumber(r,e,care2IntlNumberFormat.grouping,care2IntlNumberFormat.decimal):ef.formatNumber(r,e)};h_.exports=ef});var m_=Pe((Z2,p_)=>{d_();var fO=Bh();function dO(){let r=[],e=$("span.get_signature_count");e.length&&(e.each(function(){let t=$(this);t.removeClass("get_signature_count");let i=t.attr("data-petitionID");i&&($.inArray(i,r)===-1&&r.push(i),t.addClass(`get_count_response_${i}`))}),$.post("/servlets/petitions/get_sig_counts.php",{petitionIDs:r}).done(t=>{$.each(t,(i,s)=>{$(`.get_count_response_${i}`).replaceWith(fO.intlFormatNumber(s))})}),$("img.scroll_unveil").unveil(0,function(){let t=$(this);setTimeout(function(){t.removeClass("scroll_unveil")},250)}))}l(dO,"addSignatureCountsToPetitionList");p_.exports=dO});var zh,Go,g_=ie(()=>
5{zh=class zh extends Error{};l(zh,"IncompleteRequest");Go=zh});var Vh,Ko,y_=ie(()=>{Vh=class Vh extends Error{};l(Vh,"InvalidRequest");Ko=Vh});var Yh,Cs,Gh=ie(()=>{Yh=class Yh extends Error{};l(Yh,"FailedToCreateAccount");Cs=Yh});var Kh,Zo,v_=ie(()=>{Kh=class Kh{};l(Kh,"DuplicateContainerView");Zo=Kh});var Zh,Os,Xh=ie(()=>{Zh=class Zh extends Error{};l(Zh,"SignatureRejected");Os=Zh});var Jh,Es,Qh=ie(()=>{Jh=class Jh extends Error{constructor(e="A new user must be logged in so that a FTS can explore being a petition author."){super(e),this.name="FtsIsNotLoggedIn"}};l(Jh,"FtsIsNotLoggedIn");Es=Jh});var __,b_,Xo,St,Hr=ie(()=>{"use strict";__="SUCCESSFUL",b_="FAILED",Xo=class Xo{constructor({status:e,message:t="OK",data:i={}}){Ie(this,"status");Ie(this,"message");Ie(this,"data");this.status=e,this.message=t,this.data=i}isSuccessful(){return this.status===__}isFailed(){return this.status===b_}static createSuccessful(e="OK",t={}){return new Xo({STATUS_SUCCESSFUL:__,message:e,data:t})}static createFailed(e="An error occurred",t={}){return new Xo({status:b_,message:e,data:t})}};l(Xo,"ApplicationResponse");St=Xo});var ep,dn,tf=ie(()=>{g_();y_();Gh();
5v_();Xh();Qh();Hr();ep=class ep{constructor({systemLogger:e,applicationTranslator:t}){Ie(this,"_systemLogger");Ie(this,"_applicationTranslator");this._systemLogger=e,this._applicationTranslator=t}_handleError(e){return e instanceof Go||e instanceof Ko||e instanceof Es||e instanceof Cs||e instanceof Zo||e instanceof Os?(this._systemLogger.fatal(e.constructor.name,e),St.createFailed(e.message)):(this._systemLogger.fatal("Unknown Error",e),St.createFailed("An unknown error has occurred. Please try again later."))}async _executeAsync(e){try{return await e()}catch(t){return this._handleError(t)}}_execute(e){try{return e()}catch(t){return this._handleError(t)}}async _queryAsync(e){try{return await e()}catch(t){return this._systemLogger.fatal(t.constructor.name,t),null}}};l(ep,"AbstractController");dn=ep});var Qo,el,tl,rl,il,nl,sl,al,xa,ol,ll,tp,Jo,w_=ie(()=>{tf();tp=class tp extends dn{constructor({startUserSession:t,stopUserSession:i,resetUserSession:s,clearUserSessionCaches:n,getCentralizedTracking:a,getSignerDataWithUserDataAsDefault:c,incrementSessionSequence:d,getAllSessionData:o,getUserLoggedInState:p,updateUserSession:g,loadUserSessionFromUrlParams:v,systemLogger:m,applicationTranslator:w}){super({systemLogger:m,applicationTranslator:w});xe(this,Qo,void 0);xe(this,el,void 0);xe(this,tl,void 0);xe(this,rl,void 0);xe(this,il,void 0);xe(this,nl,void 0);xe(this,sl,void 0);xe(this,al,void 0);xe(this,xa,void 0);xe(this,ol,void 0);xe(this,ll,void 0);Le(this,Qo,t),Le(this,el,i),Le(this,tl,s),Le(this,rl,n),Le(this,nl,a),Le(this,al,c),Le(this,il,o),Le(this,sl,p),Le(this,xa,g),Le(this,ol,d),Le(this,ll,v)}startUserSession(t){return this._execute(()=>De(this,Qo).execute(t))}stopUserSession(){return this._execute(()=>De(this,el).execute())}resetUserSession(){return this._execute(()=>De(this,tl).execute())}getUserLoggedInState(){return De(this,sl).query()}isUserLoggedIn(){return this.getUserLoggedInState()}getSignerDataWithUserDataAsDefault(){return De(this,al).query()}getAllSessionData(){return De(this,il).query()}getSignedPetitionIds(){return Object.keys(this.getAllSessionData().petitionsSigned)}getCentralizedTracking(){return De(this,nl).query()}getPetitionsSigned(){return this.getAllSessionData().petitionsSigned}getOptinsAccepted(){return this.getAllSessionData().optinsAccepted}getContainersViewed(){return this.getAllSessionData().containersViewed}updateUserSession(t){return this._execute(()=>De(this,xa).execute(t))}clearSessionCaches(t){return this._execute(()=>De(this,rl).execute(t))}updateUserSessionSigner(t){return this._execute(()=>De(this,xa).execute({signer:t}))}incrementSessionSequence(){return this._execute(()=>De(this,ol).execute())}loadUserSessionFromUrlParams(){return this._execute(()=>De(this,ll).execute())}};Qo=new WeakMap,el=new WeakMap,tl=new WeakMap,rl=new WeakMap,il=new WeakMap,nl=new WeakMap,sl=new WeakMap,al=new WeakMap,xa=new WeakMap,ol=new WeakMap,ll=new WeakMap,l(tp,"SessionController");Jo=tp});var rp,hn,ip,rf,np,nf,sp,sf,ap,vi,op,ka,lp,Zt,up,_i,jn=ie(()=>{rp=class rp extends Error{};l(rp,"LuxonError");hn=rp,ip=class ip extends hn{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}};l(ip,"InvalidDateTimeError");rf=ip,np=class np extends hn{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}};l(np,"InvalidIntervalError");nf=np,sp=class sp extends hn{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}};l(sp,"InvalidDurationError");sf=sp,ap=class ap extends hn{};l(ap,"ConflictingSpecificationError");vi=ap,op=class op extends hn{constructor(e){super(`Invalid unit ${e}`)}};l(op,"InvalidUnitError");ka=op,lp=class lp extends hn{};l(lp,"InvalidArgumentError");Zt=lp,up=class up extends hn{constructor(){super("Zone is an abstract class")}};l(up,"ZoneIsAbstractError");_i=up});var Me,bi,Ur,qn,ul,cp,cl,fl,dl,hl,pl,ml,gl,yl,vl,_l,bl,wl,Sl,xl,fp,kl,Tl,Cl,Ol,El=ie(()=>{Me="numeric",bi="short",Ur="long",qn={year:Me,month:Me,day:Me},ul={year:Me,month:bi,day:Me},cp={year:Me,month:bi,day:Me,weekday:bi},cl={year:Me,month:Ur,day:Me},fl={year:Me,month:Ur,day:Me,weekday:Ur},dl={hour:Me,minute:Me},hl={hour:Me,minute:Me,second:Me},pl={hour:Me,minute:Me,second:Me,timeZoneName:bi},ml={hour:Me,minute:Me,second:Me,timeZoneName:Ur},gl={hour:Me,minute:Me,hourCycle:"h23"},yl={hour:Me,minute:Me,second:Me,hourCycle:"h23"},vl={hour:Me,minute:Me,second:Me,hourCycle:"h23",timeZoneName:bi},_l={hour:Me,minute:Me,second:Me,hourCycle:"h23",timeZoneName:Ur},bl={year:Me,month:Me,day:Me,hour:Me,minute:Me},wl={year:Me,month:Me,day:Me,hour:Me,minute:Me,second:Me},Sl={year:Me,month:bi,day:Me,hour:Me,minute:Me},xl={year:Me,month:bi,day:Me,hour:Me,minute:Me,second:Me},fp={year:Me,month:bi,day:Me,weekday:bi,hour:Me,minute:Me},kl={year:Me,month:Ur,day:Me,hour:Me,minute:Me,timeZoneName:bi},Tl={year:Me,month:Ur,day:Me,hour:Me,minute:Me,second:Me,timeZoneName:bi},Cl={year:Me,month:Ur,day:Me,weekday:Ur,hour:Me,minute:Me,timeZoneName:Ur},Ol={year:Me,month:Ur,day:Me,weekday:Ur,hour:Me,minute:Me,second:Me,timeZoneName:Ur}});var dp,Er,Ds=ie(()=>{jn();dp=class dp{get type(){throw new _i}get name(){throw new _i}get ianaName(){return this.name}get isUniversal(){throw new _i}offsetName(e,t){throw new _i}formatOffset(e,t){throw new _i}offset(e){throw new _i}equals(e){throw new _i}get isValid(){throw new _i}};l(dp,"Zone");Er=dp});
5var hp,of,Wn,lf=ie(()=>{wr();Ds();hp=null,of=class of extends Er{static get instance(){return hp===null&&(hp=new of),hp}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:i}){return uf(e,t,i)}formatOffset(e,t){return Bn(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}};l(of,"SystemZone");Wn=of});function hO(r){return ff[r]||(ff[r]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),ff[r]}function mO(r,e){let t=r.format(e).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(t),[,s,n,a,c,d,o,p]=i;return[a,s,n,c,d,o,p]}function gO(r,e){let t=r.formatToParts(e),i=[];for(let s=0;s<t.length;s++){let{type:n,value:a}=t[s],c=pO[n];n==="era"?i[c]=a:Xe(c)||(i[c]=parseInt(a,10))}return i}var ff,pO,cf,Dl,mr,zn=ie(()=>{wr();Ds();ff={};l(hO,"makeDTF");pO={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};l(mO,"hackyOffset");l(gO,"partsOffset");cf={},Dl=class Dl extends Er{static create(e){return cf[e]||(cf[e]=new Dl(e)),cf[e]}static resetCache(){cf={},ff={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=Dl.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:i}){return uf(e,t,i,this.name)}formatOffset(e,t){return Bn(this.offset(e),t)}offset(e){let t=new Date(e);if(isNaN(t))return NaN;let i=hO(this.name),[s,n,a,c,d,o,p]=i.formatToParts?gO(i,t):mO(i,t);c==="BC"&&(s=-Math.abs(s)+1);let v=Ta({year:s,month:n,day:a,hour:d===24?0:d,minute:o,second:p,millisecond:0}),m=+t,w=m%1e3;return m-=w>=0?w:1e3+w,(v-m)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}};l(Dl,"IANAZone");mr=Dl});function yO(r,e={}){let t=JSON.stringify([r,e]),i=S_[t];return i||(i=new Intl.ListFormat(r,e),S_[t]=i),i}function mp(r,e={}){let t=JSON.stringify([r,e]),i=pp[t];return i||(i=new Intl.DateTimeFormat(r,e),pp[t]=i),i}function vO(r,e={}){let t=JSON.stringify([r,e]),i=gp[t];return i||(i=new Intl.NumberFormat(r,e),gp[t]=i),i}function _O(r,e={}){let{base:t,...i}=e,s=JSON.stringify([r,i]),n=yp[s];return n||(n=new Intl.RelativeTimeFormat(r,e),yp[s]=n),n}function bO(){return Al||(Al=new Intl.DateTimeFormat().resolvedOptions().locale,Al)}function wO(r){let e=x_[r];if(!e){let t=new Intl.Locale(r);e="getWeekInfo"in t?t.getWeekInfo():t.weekInfo,x_[r]=e}return e}function SO(r){let e=r.indexOf("-x-");e!==-1&&(r=r.substring(0,e));let t=r.indexOf("-u-");if(t===-1)return[r];{let i,s;try{i=mp(r).resolvedOptions(),s=r}catch{let d=r.substring(0,t);i=mp(d).resolvedOptions(),s=d}let{numberingSystem:n,calendar:a}=i;return[s,n,a]}}function xO(r,e,t){return(t||e)&&(r.includes("-u-")||(r+="-u"),t&&(r+=`-ca-${t}`),e&&(r+=`-nu-${e}`)),r}function kO(r){let e=[];for(let t=1;t<=12;t++){let i=et.utc(2009,t,1);e.push(r(i))}return e}function TO(r){let e=[];for(let t=1;t<=7;t++){let i=et.utc(2016,11,13+t);e.push(r(i))}return e}function df(r,e,t,i){let s=r.listingMode();return s==="error"?null:s==="en"?t(e):i(e)}function CO(r){return r.numberingSystem&&r.numberingSystem!=="latn"?!1:r.numberingSystem==="latn"||!r.locale||r.locale.startsWith("en")||new Intl.DateTimeFormat(r.intl).resolvedOptions().numberingSystem==="latn"}var S_,pp,gp,yp,Al,x_,wp,vp,Sp,_p,xp,bp,OO,As,Et,Pl=ie(()=>{wr();mf();Vn();Is();zn();S_={};l(yO,"getCachedLF");pp={};l(mp,"getCachedDTF");gp={};l(vO,"getCachedINF");yp={};l(_O,"getCachedRTF");Al=null;l(bO,"systemLocale");x_={};l(wO,"getCachedWeekInfo");l(SO,"parseLocaleString");l(xO,"intlConfigString");l(kO,"mapMonths");l(TO,"mapWeekdays");l(df,"listStuff");l(CO,"supportsFastNumbers");wp=class wp{constructor(e,t,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;let{padTo:s,floor:n,...a}=i;
5if(!t||Object.keys(a).length>0){let c={useGrouping:!1,...i};i.padTo>0&&(c.minimumIntegerDigits=i.padTo),this.inf=vO(e,c)}}format(e){if(this.inf){let t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{let t=this.floor?Math.floor(e):Ca(e,3);return Lt(t,this.padTo)}}};l(wp,"PolyNumberFormatter");vp=wp,Sp=class Sp{constructor(e,t,i){this.opts=i,this.originalZone=void 0;let s;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){let a=-1*(e.offset/60),c=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;e.offset!==0&&mr.create(c).valid?(s=c,this.dt=e):(s="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,s=e.zone.name):(s="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let n={...this.opts};n.timeZone=n.timeZone||s,this.dtf=mp(t,n)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(t=>{if(t.type==="timeZoneName"){let i=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...t,value:i}}else return t}):e}resolvedOptions(){return this.dtf.resolvedOptions()}};l(Sp,"PolyDateFormatter");_p=Sp,xp=class xp{constructor(e,t,i){this.opts={style:"long",...i},!t&&hf()&&(this.rtf=_O(e,i))}format(e,t){return this.rtf?this.rtf.format(e,t):k_(t,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}};l(xp,"PolyRelFormatter");bp=xp,OO={firstDay:1,minimalDays:4,weekend:[6,7]},As=class As{static fromOpts(e){return As.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,i,s,n=!1){let a=e||kt.defaultLocale,c=a||(n?"en-US":bO()),d=t||kt.defaultNumberingSystem,o=i||kt.defaultOutputCalendar,p=Il(s)||kt.defaultWeekSettings;return new As(c,d,o,p,a)}static resetCache(){Al=null,pp={},gp={},yp={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:i,weekSettings:s}={}){return As.create(e,t,i,s)}constructor(e,t,i,s,n){let[a,c,d]=SO(e);this.locale=a,this.numberingSystem=t||c||null,this.outputCalendar=i||d||null,this.weekSettings=s,this.intl=xO(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=n,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=CO(this)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:As.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Il(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return df(this,e,kp,()=>{let i=t?{month:e,day:"numeric"}:{month:e},s=t?"format":"standalone";return this.monthsCache[s][e]||(this.monthsCache[s][e]=kO(n=>this.extract(n,i,"month"))),this.monthsCache[s][e]})}weekdays(e,t=!1){return df(this,e,Tp,()=>{let i=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},s=t?"format":"standalone";return this.weekdaysCache[s][e]||(this.weekdaysCache[s][e]=TO(n=>this.extract(n,i,"weekday"))),this.weekdaysCache[s][e]})}meridiems(){return df(this,void 0,()=>Cp,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[et.utc(2016,11,13,9),et.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e){return df(this,e,Op,()=>{let t={era:e};return this.eraCache[e]||(this.eraCache[e]=[et.utc(-40,1,1),et.utc(2017,1,1)].map(i=>this.extract(i,t,"era"))),this.eraCache[e]}
5)}extract(e,t,i){let s=this.dtFormatter(e,t),n=s.formatToParts(),a=n.find(c=>c.type.toLowerCase()===i);return a?a.value:null}numberFormatter(e={}){return new vp(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new _p(e,this.intl,t)}relFormatter(e={}){return new bp(this.intl,this.isEnglish(),e)}listFormatter(e={}){return yO(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:pf()?wO(this.locale):OO}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}};l(As,"Locale");Et=As});var Dp,Ps,sr,Oa=ie(()=>{wr();Ds();Dp=null,Ps=class Ps extends Er{static get utcInstance(){return Dp===null&&(Dp=new Ps(0)),Dp}static instance(e){return e===0?Ps.utcInstance:new Ps(e)}static parseSpecifier(e){if(e){let t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new Ps($s(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Bn(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Bn(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return Bn(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}};l(Ps,"FixedOffsetZone");sr=Ps});var Ap,Ea,Ip=ie(()=>{Ds();Ap=class Ap extends Er{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};l(Ap,"InvalidZone");Ea=Ap});function wi(r,e){let t;if(Xe(r)||r===null)return e;if(r instanceof Er)return r;if(T_(r)){let i=r.toLowerCase();return i==="default"?e:i==="local"||i==="system"?Wn.instance:i==="utc"||i==="gmt"?sr.utcInstance:sr.parseSpecifier(i)||mr.create(r)}else return Ui(r)?sr.instance(r):typeof r=="object"&&"offset"in r&&typeof r.offset=="function"?r:new Ea(r)}var gf=ie(()=>{Ds();zn();Oa();Ip();wr();lf();l(wi,"normalizeZone")});var C_,O_,E_,D_,A_,I_,P_,$_,Pp,kt,Vn=ie(()=>{lf();zn();Pl();gf();wr();C_=l(()=>Date.now(),"now"),O_="system",E_=null,D_=null,A_=null,I_=60,$_=null,Pp=class Pp{static get now(){return C_}static set now(e){C_=e}static set defaultZone(e){O_=e}static get defaultZone(){return wi(O_,Wn.instance)}static get defaultLocale(){return E_}static set defaultLocale(e){E_=e}static get defaultNumberingSystem(){return D_}static set defaultNumberingSystem(e){D_=e}
5static get defaultOutputCalendar(){return A_}static set defaultOutputCalendar(e){A_=e}static get defaultWeekSettings(){return $_}static set defaultWeekSettings(e){$_=Il(e)}static get twoDigitCutoffYear(){return I_}static set twoDigitCutoffYear(e){I_=e%100}static get throwOnInvalid(){return P_}static set throwOnInvalid(e){P_=e}static resetCaches(){Et.resetCache(),mr.resetCache()}};l(Pp,"Settings");kt=Pp});var $p,ar,$l=ie(()=>{$p=class $p{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}};l($p,"Invalid");ar=$p});function ai(r,e){return new ar("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${r}, which is invalid`)}function yf(r,e,t){let i=new Date(Date.UTC(r,e-1,t));r<100&&r>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);let s=i.getUTCDay();return s===0?7:s}function R_(r,e,t){return t+(Ms(r)?M_:F_)[e-1]}function N_(r,e){let t=Ms(r)?M_:F_,i=t.findIndex(n=>n<e),s=e-t[i];return{month:i+1,day:s}}function vf(r,e){return(r-e+7)%7+1}function Fl(r,e=4,t=1){let{year:i,month:s,day:n}=r,a=R_(i,s,n),c=vf(yf(i,s,n),t),d=Math.floor((a-c+14-e)/7),o;return d<1?(o=i-1,d=Fs(o,e,t)):d>Fs(i,e,t)?(o=i+1,d=1):o=i,{weekYear:o,weekNumber:d,weekday:c,...Rl(r)}}function Fp(r,e=4,t=1){let{weekYear:i,weekNumber:s,weekday:n}=r,a=vf(yf(i,1,e),t),c=Yn(i),d=s*7+n-a-7+e,o;d<1?(o=i-1,d+=Yn(o)):d>c?(o=i+1,d-=Yn(i)):o=i;let{month:p,day:g}=N_(o,d);return{year:o,month:p,day:g,...Rl(r)}}function _f(r){let{year:e,month:t,day:i}=r,s=R_(e,t,i);return{year:e,ordinal:s,...Rl(r)}}function Mp(r){let{year:e,ordinal:t}=r,{month:i,day:s}=N_(e,t);return{year:e,month:i,day:s,...Rl(r)}}function Rp(r,e){if(!Xe(r.localWeekday)||!Xe(r.localWeekNumber)||!Xe(r.localWeekYear)){if(!Xe(r.weekday)||!Xe(r.weekNumber)||!Xe(r.weekYear))throw new vi("Cannot mix locale-based week fields with ISO-based week fields");return Xe(r.localWeekday)||(r.weekday=r.localWeekday),Xe(r.localWeekNumber)||(r.weekNumber=r.localWeekNumber),Xe(r.localWeekYear)||(r.weekYear=r.localWeekYear),delete r.localWeekday,delete r.localWeekNumber,delete r.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function L_(r,e=4,t=1){let i=Ml(r.weekYear),s=jr(r.weekNumber,1,Fs(r.weekYear,e,t)),n=jr(r.weekday,1,7);return i?s?n?!1:ai("weekday",r.weekday):ai("week",r.weekNumber):ai("weekYear",r.weekYear)}function H_(r){let e=Ml(r.year),t=jr(r.ordinal,1,Yn(r.year));return e?t?!1:ai("ordinal",r.ordinal):ai("year",r.year)}function Np(r){let e=Ml(r.year),t=jr(r.month,1,12),i=jr(r.day,1,Da(r.year,r.month));return e?t?i?!1:ai("day",r.day):ai("month",r.month):ai("year",r.year)}function Lp(r){let{hour:e,minute:t,second:i,millisecond:s}=r,n=jr(e,0,23)||e===24&&t===0&&i===0&&s===0,a=jr(t,0,59),c=jr(i,0,59),d=jr(s,0,999);return n?a?c?d?!1:ai("millisecond",s):ai("second",i):ai("minute",t):ai("hour",e)}var F_,M_,Hp=ie(()=>{wr();$l();jn();F_=[0,31,59,90,120,151,181,212,243,273,304,334],M_=[0,31,60,91,121,152,182,213,244,274,305,335];l(ai,"unitOutOfRange");l(yf,"dayOfWeek");l(R_,"computeOrdinal");l(N_,"uncomputeOrdinal");l(vf,"isoWeekdayToLocal");l(Fl,"gregorianToWeek");l(Fp,"weekToGregorian");l(_f,"gregorianToOrdinal");l(Mp,"ordinalToGregorian");l(Rp,"usesLocalWeekValues");l(L_,"hasInvalidWeekData");l(H_,"hasInvalidOrdinalData");l(Np,"hasInvalidGregorianData");l(Lp,"hasInvalidTimeData")});function Xe(r){return typeof r>"u"}function Ui(r){return typeof r=="number"}function Ml(r){return typeof r=="number"&&r%1===0}function T_(r){return typeof r=="string"}function j_(r){return Object.prototype.toString.call(r)==="[object Date]"}function hf(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function pf(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function q_(r){return Array.isArray(r)?r:[r]}function Up(r,e,t){if(r.length!==0)return r.reduce((i,s)=>{let n=[e(s),s];return i&&t(i[0],n[0])===i[0]?i:n},null)[1]}function W_(r,e){return e.reduce((t,i)=>(t[i]=r[i],t),{})}function Gn(r,e){return Object.prototype.hasOwnProperty.call(r,e)}function Il(r){if(r==null)return null;if(typeof r!="object")throw new Zt("Week settings must be an object");
5if(!jr(r.firstDay,1,7)||!jr(r.minimalDays,1,7)||!Array.isArray(r.weekend)||r.weekend.some(e=>!jr(e,1,7)))throw new Zt("Invalid week settings");return{firstDay:r.firstDay,minimalDays:r.minimalDays,weekend:Array.from(r.weekend)}}function jr(r,e,t){return Ml(r)&&r>=e&&r<=t}function EO(r,e){return r-e*Math.floor(r/e)}function Lt(r,e=2){let t=r<0,i;return t?i="-"+(""+-r).padStart(e,"0"):i=(""+r).padStart(e,"0"),i}function pn(r){if(!(Xe(r)||r===null||r===""))return parseInt(r,10)}function Kn(r){if(!(Xe(r)||r===null||r===""))return parseFloat(r)}function Nl(r){if(!(Xe(r)||r===null||r==="")){let e=parseFloat("0."+r)*1e3;return Math.floor(e)}}function Ca(r,e,t=!1){let i=10**e;return(t?Math.trunc:Math.round)(r*i)/i}function Ms(r){return r%4===0&&(r%100!==0||r%400===0)}function Yn(r){return Ms(r)?366:365}function Da(r,e){let t=EO(e-1,12)+1,i=r+(e-t)/12;return t===2?Ms(i)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][t-1]}function Ta(r){let e=Date.UTC(r.year,r.month-1,r.day,r.hour,r.minute,r.second,r.millisecond);return r.year<100&&r.year>=0&&(e=new Date(e),e.setUTCFullYear(r.year,r.month-1,r.day)),+e}function U_(r,e,t){return-vf(yf(r,1,e),t)+e-1}function Fs(r,e=4,t=1){let i=U_(r,e,t),s=U_(r+1,e,t);return(Yn(r)-i+s)/7}function Ll(r){return r>99?r:r>kt.twoDigitCutoffYear?1900+r:2e3+r}function uf(r,e,t,i=null){let s=new Date(r),n={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(n.timeZone=i);let a={timeZoneName:e,...n},c=new Intl.DateTimeFormat(t,a).formatToParts(s).find(d=>d.type.toLowerCase()==="timezonename");return c?c.value:null}function $s(r,e){let t=parseInt(r,10);Number.isNaN(t)&&(t=0);let i=parseInt(e,10)||0,s=t<0||Object.is(t,-0)?-i:i;return t*60+s}function jp(r){let e=Number(r);if(typeof r=="boolean"||r===""||Number.isNaN(e))throw new Zt(`Invalid unit value ${r}`);return e}function Aa(r,e){let t={};for(let i in r)if(Gn(r,i)){let s=r[i];if(s==null)continue;t[e(i)]=jp(s)}return t}function Bn(r,e){let t=Math.trunc(Math.abs(r/60)),i=Math.trunc(Math.abs(r%60)),s=r>=0?"+":"-";switch(e){case"short":return`${s}${Lt(t,2)}:${Lt(i,2)}`;case"narrow":return`${s}${t}${i>0?`:${i}`:""}`;case"techie":return`${s}${Lt(t,2)}${Lt(i,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Rl(r){return W_(r,["hour","minute","second","millisecond"])}var wr=ie(()=>{jn();Vn();Hp();l(Xe,"isUndefined");l(Ui,"isNumber");l(Ml,"isInteger");l(T_,"isString");l(j_,"isDate");l(hf,"hasRelative");l(pf,"hasLocaleWeekInfo");l(q_,"maybeArray");l(Up,"bestBy");l(W_,"pick");l(Gn,"hasOwnProperty");l(Il,"validateWeekSettings");l(jr,"integerBetween");l(EO,"floorMod");l(Lt,"padStart");l(pn,"parseInteger");l(Kn,"parseFloating");l(Nl,"parseMillis");l(Ca,"roundTo");l(Ms,"isLeapYear");l(Yn,"daysInYear");l(Da,"daysInMonth");l(Ta,"objToLocalTS");l(U_,"firstWeekOffset");l(Fs,"weeksInWeekYear");l(Ll,"untruncateYear");l(uf,"parseZoneInfo");l($s,"signedOffset");l(jp,"asNumber");l(Aa,"normalizeObject");l(Bn,"formatOffset");l(Rl,"timeObject")});function kp(r){switch(r){case"narrow":return[...AO];case"short":return[...qp];case"long":return[...DO];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}function Tp(r){switch(r){case"narrow":return[...IO];case"short":return[...Bp];case"long":return[...Wp];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}function Op(r){switch(r){case"narrow":return[...FO];case"short":return[...$O];case"long":return[...PO];default:return null}}function B_(r){return Cp[r.hour<12?0:1]}function z_(r,e){return Tp(e)[r.weekday-1]}function V_(r,e){return kp(e)[r.month-1]}function Y_(r,e){return Op(e)[r.year<0?0:1]}function k_(r,e,t="always",i=!1){let s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},n=["hours","minutes","seconds"].indexOf(r)===-1;if(t==="auto"&&n){let g=r==="days";switch(e){case 1:return g?"tomorrow":`next ${s[r][0]}`;case-1:return g?"yesterday":`last ${s[r][0]}`;case 0:return g?"today":`this ${s[r][0]}`;default:}}let a=Object.is(e,-0)||e<0,c=Math.abs(e),d=c===1,o=s[r],p=i?d?o[1]:o[2]||o[1]:d?s[r][0]:r;return a?`${c} ${p} ago`:`in ${c} ${p}`}var DO,qp,AO,Wp,Bp,IO,Cp,PO,$O,FO,mf=ie(()=>{El();wr();DO=["January","February","March","April","May","June","July","August","September","October","November","December"],qp=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],AO=["J","F","M","A","M","J","J","A","S","O","N","D"];l(kp,"months");
5Wp=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Bp=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],IO=["M","T","W","T","F","S","S"];l(Tp,"weekdays");Cp=["AM","PM"],PO=["Before Christ","Anno Domini"],$O=["BC","AD"],FO=["B","A"];l(Op,"eras");l(B_,"meridiemForDateTime");l(z_,"weekdayForDateTime");l(V_,"monthForDateTime");l(Y_,"eraForDateTime");l(k_,"formatRelativeTime")});function G_(r,e){let t="";for(let i of r)i.literal?t+=i.val:t+=e(i.val);return t}var MO,Rs,or,Hl=ie(()=>{mf();El();wr();l(G_,"stringifyTokens");MO={D:qn,DD:ul,DDD:cl,DDDD:fl,t:dl,tt:hl,ttt:pl,tttt:ml,T:gl,TT:yl,TTT:vl,TTTT:_l,f:bl,ff:Sl,fff:kl,ffff:Cl,F:wl,FF:xl,FFF:Tl,FFFF:Ol},Rs=class Rs{static create(e,t={}){return new Rs(e,t)}static parseFormat(e){let t=null,i="",s=!1,n=[];for(let a=0;a<e.length;a++){let c=e.charAt(a);c==="'"?(i.length>0&&n.push({literal:s||/^\s+$/.test(i),val:i}),t=null,i="",s=!s):s||c===t?i+=c:(i.length>0&&n.push({literal:/^\s+$/.test(i),val:i}),i=c,t=c)}return i.length>0&&n.push({literal:s||/^\s+$/.test(i),val:i}),n}static macroTokenToFormatOpts(e){return MO[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return Lt(e,t);let i={...this.opts};return t>0&&(i.padTo=t),this.loc.numberFormatter(i).format(e)}formatDateTimeFromString(e,t){let i=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",n=l((m,w)=>this.loc.extract(e,m,w),"string"),a=l(m=>e.isOffsetFixed&&e.offset===0&&m.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,m.format):"","formatOffset"),c=l(()=>i?B_(e):n({hour:"numeric",hourCycle:"h12"},"dayperiod"),"meridiem"),d=l((m,w)=>i?V_(e,m):n(w?{month:m}:{month:m,day:"numeric"},"month"),"month"),o=l((m,w)=>i?z_(e,m):n(w?{weekday:m}:{weekday:m,month:"long",day:"numeric"},"weekday"),"weekday"),p=l(m=>{let w=Rs.macroTokenToFormatOpts(m);return w?this.formatWithSystemDefault(e,w):m},"maybeMacro"),g=l(m=>i?Y_(e,m):n({era:m},"era"),"era"),v=l(m=>{switch(m){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return c();case"d":return s?n({day:"numeric"},"day"):this.num(e.day);case"dd":return s?n({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return o("short",!0);case"cccc":return o("long",!0);case"ccccc":return o("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return o("short",!1);case"EEEE":return o("long",!1);case"EEEEE":return o("narrow",!1);case"L":return s?n({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return s?n({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return d("short",!0);case"LLLL":return d("long",!0);case"LLLLL":return d("narrow",!0);case"M":return s?n({month:"numeric"},"month"):this.num(e.month);case"MM":return s?n({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return d("short",!1);case"MMMM":return d("long",!1);case"MMMMM":return d("narrow",!1);case"y":return s?n({year:"numeric"},"year"):this.num(e.year);case"yy":return s?n({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return s?n({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return s?n({year:"numeric"},"year"):this.num(e.year,6);case"G":return g("short");case"GG":return g("long");case"GGGGG":return g("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);
5case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return p(m)}},"tokenToString");return G_(Rs.parseFormat(t),v)}formatDurationFromString(e,t){let i=l(d=>{switch(d[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},"tokenToField"),s=l(d=>o=>{let p=i(o);return p?this.num(d.get(p),o.length):o},"tokenToString"),n=Rs.parseFormat(t),a=n.reduce((d,{literal:o,val:p})=>o?d:d.concat(p),[]),c=e.shiftTo(...a.map(i).filter(d=>d));return G_(n,s(c))}};l(Rs,"Formatter");or=Rs});function Pa(...r){let e=r.reduce((t,i)=>t+i.source,"");return RegExp(`^${e}$`)}function $a(...r){return e=>r.reduce(([t,i,s],n)=>{let[a,c,d]=n(e,s);return[{...t,...a},c||i,d]},[{},null,1]).slice(0,2)}function Fa(r,...e){if(r==null)return[null,null];for(let[t,i]of e){let s=t.exec(r);if(s)return i(s)}return[null,null]}function X_(...r){return(e,t)=>{let i={},s;for(s=0;s<r.length;s++)i[r[s]]=pn(e[t+s]);return[i,null,t+s]}}function Ia(r,e,t){let i=r[e];return Xe(i)?t:pn(i)}function BO(r,e){return[{year:Ia(r,e),month:Ia(r,e+1,1),day:Ia(r,e+2,1)},null,e+3]}function Ma(r,e){return[{hours:Ia(r,e,0),minutes:Ia(r,e+1,0),seconds:Ia(r,e+2,0),milliseconds:Nl(r[e+3])},null,e+4]}function Ul(r,e){let t=!r[e]&&!r[e+1],i=$s(r[e+1],r[e+2]),s=t?null:sr.instance(i);return[{},s,e+3]}function jl(r,e){let t=r[e]?mr.create(r[e]):null;return[{},t,e+1]}function YO(r){let[e,t,i,s,n,a,c,d,o]=r,p=e[0]==="-",g=d&&d[0]==="-",v=l((m,w=!1)=>m!==void 0&&(w||m&&p)?-m:m,"maybeNegate");return[{years:v(Kn(t)),months:v(Kn(i)),weeks:v(Kn(s)),days:v(Kn(n)),hours:v(Kn(a)),minutes:v(Kn(c)),seconds:v(Kn(d),d==="-0"),milliseconds:v(Nl(o),g)}]}function Yp(r,e,t,i,s,n,a){let c={year:e.length===2?Ll(pn(e)):pn(e),month:qp.indexOf(t)+1,day:pn(i),hour:pn(s),minute:pn(n)};return a&&(c.second=pn(a)),r&&(c.weekday=r.length>3?Wp.indexOf(r)+1:Bp.indexOf(r)+1),c}function ZO(r){let[,e,t,i,s,n,a,c,d,o,p,g]=r,v=Yp(e,s,i,t,n,a,c),m;return d?m=GO[d]:o?m=0:m=$s(p,g),[v,new sr(m)]}function XO(r){return r.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function K_(r){let[,e,t,i,s,n,a,c]=r;return[Yp(e,s,i,t,n,a,c),sr.utcInstance]}function tE(r){let[,e,t,i,s,n,a,c]=r;return[Yp(e,c,t,i,s,n,a),sr.utcInstance]}function rb(r){return Fa(r,[rE,tb],[iE,aE],[nE,oE],[sE,lE])}function ib(r){return Fa(XO(r),[KO,ZO])}function nb(r){return Fa(r,[JO,K_],[QO,K_],[eE,tE])}function sb(r){return Fa(r,[VO,YO])}function ab(r){return Fa(r,[zO,uE])}function ob(r){return Fa(r,[cE,tb],[fE,dE])}var Z_,J_,RO,zp,Q_,Vp,NO,LO,HO,UO,jO,qO,eb,WO,zO,VO,GO,KO,JO,QO,eE,rE,iE,nE,sE,tb,aE,oE,lE,uE,cE,fE,dE,Gp=ie(()=>{wr();mf();Oa();zn();Z_=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;l(Pa,"combineRegexes");l($a,"combineExtractors");l(Fa,"parse");l(X_,"simpleParse");J_=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,RO=`(?:${J_.source}?(?:\\[(${Z_.source})\\])?)?`,zp=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Q_=RegExp(`${zp.source}${RO}`),Vp=RegExp(`(?:T${Q_.source})?`),NO=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,LO=/(\d{4})-?W(\d\d)(?:-?(\d))?/,HO=/(\d{4})-?(\d{3})/,UO=X_("weekYear","weekNumber","weekDay"),jO=X_("year","ordinal"),qO=/(\d{4})-(\d\d)-(\d\d)/,eb=RegExp(`${zp.source} ?(?:${J_.source}|(${Z_.source}))?`),WO=RegExp(`(?: ${eb.source})?`);l(Ia,"int");l(BO,"extractISOYmd");l(Ma,"extractISOTime");l(Ul,"extractISOOffset");l(jl,"extractIANAZone");zO=RegExp(`^T?${zp.source}$`),VO=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;l(YO,"extractISODuration");GO={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};l(Yp,"fromStrings");KO=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;l(ZO,"extractRFC2822");l(XO,"preprocessRFC2822");JO=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,QO=/^(Monday|Tuesday|Wednesday|Thursday|Frid
5ay|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,eE=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;l(K_,"extractRFC1123Or850");l(tE,"extractASCII");rE=Pa(NO,Vp),iE=Pa(LO,Vp),nE=Pa(HO,Vp),sE=Pa(Q_),tb=$a(BO,Ma,Ul,jl),aE=$a(UO,Ma,Ul,jl),oE=$a(jO,Ma,Ul,jl),lE=$a(Ma,Ul,jl);l(rb,"parseISODate");l(ib,"parseRFC2822Date");l(nb,"parseHTTPDate");l(sb,"parseISODuration");uE=$a(Ma);l(ab,"parseISOTimeOnly");cE=Pa(qO,WO),fE=Pa(eb),dE=$a(Ma,Ul,jl);l(ob,"parseSQL")});function Zn(r,e,t=!1){let i={values:t?e.values:{...r.values,...e.values||{}},loc:r.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||r.conversionAccuracy,matrix:e.matrix||r.matrix};return new Ht(i)}function fb(r,e){let t=e.milliseconds??0;for(let i of mE.slice(1))e[i]&&(t+=e[i]*r[i].milliseconds);return t}function ub(r,e){let t=fb(r,e)<0?-1:1;Ns.reduceRight((i,s)=>{if(Xe(e[s]))return i;if(i){let n=e[i]*t,a=r[s][i],c=Math.floor(n/a);e[s]+=c*t,e[i]-=c*a*t}return s},null),Ns.reduce((i,s)=>{if(Xe(e[s]))return i;if(i){let n=e[i]%1;e[i]-=n,e[s]+=n*r[i][s]}return s},null)}function gE(r){let e={};for(let[t,i]of Object.entries(r))i!==0&&(e[t]=i);return e}var lb,cb,hE,oi,Ra,pE,Ns,mE,tr,Ht,ql=ie(()=>{jn();Hl();$l();Pl();Gp();wr();Vn();Is();lb="Invalid Duration",cb={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},hE={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...cb},oi=146097/400,Ra=146097/4800,pE={years:{quarters:4,months:12,weeks:oi/7,days:oi,hours:oi*24,minutes:oi*24*60,seconds:oi*24*60*60,milliseconds:oi*24*60*60*1e3},quarters:{months:3,weeks:oi/28,days:oi/4,hours:oi*24/4,minutes:oi*24*60/4,seconds:oi*24*60*60/4,milliseconds:oi*24*60*60*1e3/4},months:{weeks:Ra/7,days:Ra,hours:Ra*24,minutes:Ra*24*60,seconds:Ra*24*60*60,milliseconds:Ra*24*60*60*1e3},...cb},Ns=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],mE=Ns.slice(0).reverse();l(Zn,"clone");l(fb,"durationToMillis");l(ub,"normalizeValues");l(gE,"removeZeroes");tr=class tr{constructor(e){let t=e.conversionAccuracy==="longterm"||!1,i=t?pE:hE;e.matrix&&(i=e.matrix),this.values=e.values,this.loc=e.loc||Et.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=i,this.isLuxonDuration=!0}static fromMillis(e,t){return tr.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!="object")throw new Zt(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new tr({values:Aa(e,tr.normalizeUnit),loc:Et.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(Ui(e))return tr.fromMillis(e);if(tr.isDuration(e))return e;if(typeof e=="object")return tr.fromObject(e);throw new Zt(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){let[i]=sb(e);return i?tr.fromObject(i,t):tr.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){let[i]=ab(e);return i?tr.fromObject(i,t):tr.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new Zt("need to specify a reason the Duration is invalid");let i=e instanceof ar?e:new ar(e,t);if(kt.throwOnInvalid)throw new sf(i);return new tr({invalid:i}
5)}static normalizeUnit(e){let t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!t)throw new ka(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){let i={...t,floor:t.round!==!1&&t.floor!==!1};return this.isValid?or.create(this.loc,i).formatDurationFromString(this,e):lb}toHuman(e={}){if(!this.isValid)return lb;let t=Ns.map(i=>{let s=this.values[i];return Xe(s)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:i.slice(0,-1)}).format(s)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Ca(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},et.fromMillis(t,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?fb(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let t=tr.fromDurationLike(e),i={};for(let s of Ns)(Gn(t.values,s)||Gn(this.values,s))&&(i[s]=t.get(s)+this.get(s));return Zn(this,{values:i},!0)}minus(e){if(!this.isValid)return this;let t=tr.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;let t={};for(let i of Object.keys(this.values))t[i]=jp(e(this.values[i],i));return Zn(this,{values:t},!0)}get(e){return this[tr.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let t={...this.values,...Aa(e,tr.normalizeUnit)};return Zn(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:i,matrix:s}={}){let a={loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:s,conversionAccuracy:i};return Zn(this,a)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return ub(this.matrix,e),Zn(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=gE(this.normalize().shiftToAll().toObject());return Zn(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(a=>tr.normalizeUnit(a));let t={},i={},s=this.toObject(),n;for(let a of Ns)if(e.indexOf(a)>=0){n=a;let c=0;for(let o in i)c+=this.matrix[o][a]*i[o],i[o]=0;Ui(s[a])&&(c+=s[a]);let d=Math.trunc(c);t[a]=d,i[a]=(c*1e3-d*1e3)/1e3}else Ui(s[a])&&(i[a]=s[a]);for(let a in i)i[a]!==0&&(t[n]+=a===n?i[a]:i[a]/this.matrix[n][a]);return ub(this.matrix,t),Zn(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let t of Object.keys(this.values))e[t]=this.values[t]===0?0:-this.values[t];return Zn(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function t(i,s){return i===void 0||i===0?s===void 0||s===0:i===s}l(t,"eq");for(let i of Ns)if(!t(this.values[i],e.values[i]))return!1;return!0}};l(tr,"Duration");Ht=tr});function yE(r,e){return!r||!r.isValid?mn.invalid("missing or invalid start"):!e||!e.isValid?mn.invalid("missing or invalid end"):e<r?mn.invalid("end before start",`The end of an interval must be after its start, but you had start=${r.toISO()} and end=${e.toISO()}`):null}var Na,Xt,mn,Kp=ie(()=>{Is();ql();Vn();jn();$l();Hl();El();Na="Invalid Interval";l(yE,"validateStartEnd");Xt=class Xt{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}
5static invalid(e,t=null){if(!e)throw new Zt("need to specify a reason the Interval is invalid");let i=e instanceof ar?e:new ar(e,t);if(kt.throwOnInvalid)throw new nf(i);return new Xt({invalid:i})}static fromDateTimes(e,t){let i=La(e),s=La(t),n=yE(i,s);return n??new Xt({start:i,end:s})}static after(e,t){let i=Ht.fromDurationLike(t),s=La(e);return Xt.fromDateTimes(s,s.plus(i))}static before(e,t){let i=Ht.fromDurationLike(t),s=La(e);return Xt.fromDateTimes(s.minus(i),s)}static fromISO(e,t){let[i,s]=(e||"").split("/",2);if(i&&s){let n,a;try{n=et.fromISO(i,t),a=n.isValid}catch{a=!1}let c,d;try{c=et.fromISO(s,t),d=c.isValid}catch{d=!1}if(a&&d)return Xt.fromDateTimes(n,c);if(a){let o=Ht.fromISO(s,t);if(o.isValid)return Xt.after(n,o)}else if(d){let o=Ht.fromISO(i,t);if(o.isValid)return Xt.before(c,o)}}return Xt.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;let i=this.start.startOf(e,t),s;return t?.useLocaleWeeks?s=this.end.reconfigure({locale:i.locale}):s=this.end,s=s.startOf(e,t),Math.floor(s.diff(i,e).get(e))+(s.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:t}={}){return this.isValid?Xt.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];let t=e.map(La).filter(a=>this.contains(a)).sort((a,c)=>a.toMillis()-c.toMillis()),i=[],{s}=this,n=0;for(;s<this.e;){let a=t[n]||this.e,c=+a>+this.e?this.e:a;i.push(Xt.fromDateTimes(s,c)),s=c,n+=1}return i}splitBy(e){let t=Ht.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0)return[];let{s:i}=this,s=1,n,a=[];for(;i<this.e;){let c=this.start.plus(t.mapUnits(d=>d*s));n=+c>+this.e?this.e:c,a.push(Xt.fromDateTimes(i,n)),i=n,s+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let t=this.s>e.s?this.s:e.s,i=this.e<e.e?this.e:e.e;return t>=i?null:Xt.fromDateTimes(t,i)}union(e){if(!this.isValid)return this;let t=this.s<e.s?this.s:e.s,i=this.e>e.e?this.e:e.e;return Xt.fromDateTimes(t,i)}static merge(e){let[t,i]=e.sort((s,n)=>s.s-n.s).reduce(([s,n],a)=>n?n.overlaps(a)||n.abutsStart(a)?[s,n.union(a)]:[s.concat([n]),a]:[s,a],[[],null]);return i&&t.push(i),t}static xor(e){let t=null,i=0,s=[],n=e.map(d=>[{time:d.s,type:"s"},{time:d.e,type:"e"}]),a=Array.prototype.concat(...n),c=a.sort((d,o)=>d.time-o.time);for(let d of c)i+=d.type==="s"?1:-1,i===1?t=d.time:(t&&+t!=+d.time&&s.push(Xt.fromDateTimes(t,d.time)),t=null);return Xt.merge(s)}difference(...e){return Xt.xor([this].concat(e)).map(t=>this.intersection(t)).filter(t=>t&&!t.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:Na}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=qn,t={}){return this.isValid?or.create(this.s.loc.clone(t),e).formatInterval(this):Na}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Na}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Na}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Na}toFormat(e,{separator:t=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:Na}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):Ht.invali
5d(this.invalidReason)}mapEndpoints(e){return Xt.fromDateTimes(e(this.s),e(this.e))}};l(Xt,"Interval");mn=Xt});var Zp,gn,Xp=ie(()=>{Is();Vn();Pl();zn();gf();wr();Zp=class Zp{static hasDST(e=kt.defaultZone){let t=et.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return mr.isValidZone(e)}static normalizeZone(e){return wi(e,kt.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||Et.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||Et.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||Et.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:i=null,locObj:s=null,outputCalendar:n="gregory"}={}){return(s||Et.create(t,i,n)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:i=null,locObj:s=null,outputCalendar:n="gregory"}={}){return(s||Et.create(t,i,n)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:i=null,locObj:s=null}={}){return(s||Et.create(t,i,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:i=null,locObj:s=null}={}){return(s||Et.create(t,i,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Et.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Et.create(t,null,"gregory").eras(e)}static features(){return{relative:hf(),localeWeek:pf()}}};l(Zp,"Info");gn=Zp});function db(r,e){let t=l(s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),"utcDayStart"),i=t(e)-t(r);return Math.floor(Ht.fromMillis(i).as("days"))}function vE(r,e,t){let i=[["years",(d,o)=>o.year-d.year],["quarters",(d,o)=>o.quarter-d.quarter+(o.year-d.year)*4],["months",(d,o)=>o.month-d.month+(o.year-d.year)*12],["weeks",(d,o)=>{let p=db(d,o);return(p-p%7)/7}],["days",db]],s={},n=r,a,c;for(let[d,o]of i)t.indexOf(d)>=0&&(a=d,s[d]=o(r,e),c=n.plus(s),c>e?(s[d]--,r=n.plus(s),r>e&&(c=r,s[d]--,r=n.plus(s))):r=c);return[r,s,c,a]}function Jp(r,e,t,i){let[s,n,a,c]=vE(r,e,t),d=e-s,o=t.filter(g=>["hours","minutes","seconds","milliseconds"].indexOf(g)>=0);o.length===0&&(a<e&&(a=s.plus({[c]:1})),a!==s&&(n[c]=(n[c]||0)+d/(a-s)));let p=Ht.fromObject(n,i);return o.length>0?Ht.fromMillis(d,i).shiftTo(...o).plus(p):p}var hb=ie(()=>{ql();l(db,"dayDiff");l(vE,"highOrderDiffs");l(Jp,"default")});function mb(r){let e=parseInt(r,10);if(isNaN(e)){e="";for(let t=0;t<r.length;t++){let i=r.charCodeAt(t);if(r[t].search(Qp.hanidec)!==-1)e+=_E.indexOf(r[t]);else for(let s in pb){let[n,a]=pb[s];i>=n&&i<=a&&(e+=i-n)}}return parseInt(e,10)}else return e}function li({numberingSystem:r},e=""){return new RegExp(`${Qp[r||"latn"]}${e}`)}var Qp,pb,_E,gb=ie(()=>{Qp={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},pb={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},_E=Qp.hanidec.replace(/[\[|\]]/g,"").split("");l(mb,"parseDigits");l(li,"digitRegex")});function Tt(r,e=t=>t){return{regex:r,deser:([t])=>e(mb(t))}}function SE(r){return r.replace(/\./g,"\\.?").replace(bb,_b)}function yb(r){return r.replace(/\./g,"").replace(bb," ").toLowerCase()}function Si(r,e){return r===null?null:{regex:RegExp(r.map(SE).join("|")),deser:([t])=>r.findIndex(i=>yb(t)===yb(i))+e}}function vb(r,e){return{regex:r,deser:([,t,i])=>$s(t,i),groups:e}}function bf(r){return{regex:r,deser:([e])=>e}}
5function xE(r){return r.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function kE(r,e){let t=li(e),i=li(e,"{2}"),s=li(e,"{3}"),n=li(e,"{4}"),a=li(e,"{6}"),c=li(e,"{1,2}"),d=li(e,"{1,3}"),o=li(e,"{1,6}"),p=li(e,"{1,9}"),g=li(e,"{2,4}"),v=li(e,"{4,6}"),m=l(S=>({regex:RegExp(xE(S.val)),deser:([O])=>O,literal:!0}),"literal"),b=l(S=>{if(r.literal)return m(S);switch(S.val){case"G":return Si(e.eras("short"),0);case"GG":return Si(e.eras("long"),0);case"y":return Tt(o);case"yy":return Tt(g,Ll);case"yyyy":return Tt(n);case"yyyyy":return Tt(v);case"yyyyyy":return Tt(a);case"M":return Tt(c);case"MM":return Tt(i);case"MMM":return Si(e.months("short",!0),1);case"MMMM":return Si(e.months("long",!0),1);case"L":return Tt(c);case"LL":return Tt(i);case"LLL":return Si(e.months("short",!1),1);case"LLLL":return Si(e.months("long",!1),1);case"d":return Tt(c);case"dd":return Tt(i);case"o":return Tt(d);case"ooo":return Tt(s);case"HH":return Tt(i);case"H":return Tt(c);case"hh":return Tt(i);case"h":return Tt(c);case"mm":return Tt(i);case"m":return Tt(c);case"q":return Tt(c);case"qq":return Tt(i);case"s":return Tt(c);case"ss":return Tt(i);case"S":return Tt(d);case"SSS":return Tt(s);case"u":return bf(p);case"uu":return bf(c);case"uuu":return Tt(t);case"a":return Si(e.meridiems(),0);case"kkkk":return Tt(n);case"kk":return Tt(g,Ll);case"W":return Tt(c);case"WW":return Tt(i);case"E":case"c":return Tt(t);case"EEE":return Si(e.weekdays("short",!1),1);case"EEEE":return Si(e.weekdays("long",!1),1);case"ccc":return Si(e.weekdays("short",!0),1);case"cccc":return Si(e.weekdays("long",!0),1);case"Z":case"ZZ":return vb(new RegExp(`([+-]${c.source})(?::(${i.source}))?`),2);case"ZZZ":return vb(new RegExp(`([+-]${c.source})(${i.source})?`),2);case"z":return bf(/[a-z_+-/]{1,256}?/i);case" ":return bf(/[^\S\n\r]/);default:return m(S)}},"unitate")(r)||{invalidReason:bE};return b.token=r,b}function CE(r,e,t){let{type:i,value:s}=r;if(i==="literal"){let d=/^\s+$/.test(s);return{literal:!d,val:d?" ":s}}let n=e[i],a=i;i==="hour"&&(e.hour12!=null?a=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?a="hour12":a="hour24":a=t.hour12?"hour12":"hour24");let c=TE[a];if(typeof c=="object"&&(c=c[n]),c)return{literal:!1,val:c}}function OE(r){return[`^${r.map(t=>t.regex).reduce((t,i)=>`${t}(${i.source})`,"")}$`,r]}function EE(r,e,t){let i=r.match(e);if(i){let s={},n=1;for(let a in t)if(Gn(t,a)){let c=t[a],d=c.groups?c.groups+1:1;!c.literal&&c.token&&(s[c.token.val[0]]=c.deser(i.slice(n,n+d))),n+=d}return[i,s]}else return[i,{}]}function DE(r){let e=l(n=>{switch(n){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},"toField"),t=null,i;return Xe(r.z)||(t=mr.create(r.z)),Xe(r.Z)||(t||(t=new sr(r.Z)),i=r.Z),Xe(r.q)||(r.M=(r.q-1)*3+1),Xe(r.h)||(r.h<12&&r.a===1?r.h+=12:r.h===12&&r.a===0&&(r.h=0)),r.G===0&&r.y&&(r.y=-r.y),Xe(r.u)||(r.S=Nl(r.u)),[Object.keys(r).reduce((n,a)=>{let c=e(a);return c&&(n[c]=r[a]),n},{}),t,i]}function AE(){return em||(em=et.fromMillis(1555555555555)),em}function IE(r,e){if(r.literal)return r;let t=or.macroTokenToFormatOpts(r.val),i=im(t,e);return i==null||i.includes(void 0)?r:i}function tm(r,e){return Array.prototype.concat(...r.map(t=>IE(t,e)))}function rm(r,e,t){let i=tm(or.parseFormat(t),r),s=i.map(a=>kE(a,r)),n=s.find(a=>a.invalidReason);if(n)return{input:e,tokens:i,invalidReason:n.invalidReason};{let[a,c]=OE(s),d=RegExp(a,"i"),[o,p]=EE(e,d,c),[g,v,m]=p?DE(p):[null,null,void 0];if(Gn(p,"a")&&Gn(p,"H"))throw new vi("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:i,regex:d,rawMatches:o,matches:p,result:g,zone:v,specificOffset:m}}}function wb(r,e,t){let{result:i,zone:s,specificOffset:n,invalidReason:a}=rm(r,e,t);return[i,s,n,a]}function im(r,e){if(!r)return null;let i=or.create(e,r).dtFormatter(AE()),s=i.formatToParts(),n=i.resolvedOptions();return s.map(a=>
5CE(a,r,n))}var bE,wE,_b,bb,TE,em,Sb=ie(()=>{wr();Hl();Oa();zn();Is();gb();jn();bE="missing Intl.DateTimeFormat.formatToParts support";l(Tt,"intUnit");wE="\xA0",_b=`[ ${wE}]`,bb=new RegExp(_b,"g");l(SE,"fixListRegex");l(yb,"stripInsensitivities");l(Si,"oneOf");l(vb,"offset");l(bf,"simple");l(xE,"escapeToken");l(kE,"unitForToken");TE={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};l(CE,"tokenForPart");l(OE,"buildRegex");l(EE,"match");l(DE,"dateTimeFromMatches");em=null;l(AE,"getDummyDateTime");l(IE,"maybeExpandMacroToken");l(tm,"expandMacroTokens");l(rm,"explainFromTokens");l(wb,"parseFromTokens");l(im,"formatOptsToTokens")});function wf(r){return new ar("unsupported zone",`the zone "${r.name}" is not supported`)}function sm(r){return r.weekData===null&&(r.weekData=Fl(r.c)),r.weekData}function am(r){return r.localWeekData===null&&(r.localWeekData=Fl(r.c,r.loc.getMinDaysInFirstWeek(),r.loc.getStartOfWeek())),r.localWeekData}function Ls(r,e){let t={ts:r.ts,zone:r.zone,c:r.c,o:r.o,loc:r.loc,invalid:r.invalid};return new et({...t,...e,old:t})}function Ab(r,e,t){let i=r-e*60*1e3,s=t.offset(i);if(e===s)return[i,e];i-=(s-e)*60*1e3;let n=t.offset(i);
5return s===n?[i,s]:[r-Math.min(s,n)*60*1e3,Math.max(s,n)]}function Sf(r,e){r+=e*60*1e3;let t=new Date(r);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds()}}function kf(r,e,t){return Ab(Ta(r),e,t)}function kb(r,e){let t=r.o,i=r.c.year+Math.trunc(e.years),s=r.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,n={...r.c,year:i,month:s,day:Math.min(r.c.day,Da(i,s))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},a=Ht.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),c=Ta(n),[d,o]=Ab(c,t,r.zone);return a!==0&&(d+=a,o=r.zone.offset(d)),{ts:d,o}}function Wl(r,e,t,i,s,n){let{setZone:a,zone:c}=t;if(r&&Object.keys(r).length!==0||e){let d=e||c,o=et.fromObject(r,{...t,zone:d,specificOffset:n});return a?o:o.setZone(c)}else return et.invalid(new ar("unparsable",`the input "${s}" can't be parsed as ${i}`))}function xf(r,e,t=!0){return r.isValid?or.create(Et.create("en-US"),{allowZ:t,forceSimple:!0}).formatDateTimeFromString(r,e):null}function om(r,e){let t=r.c.year>9999||r.c.year<0,i="";return t&&r.c.year>=0&&(i+="+"),i+=Lt(r.c.year,t?6:4),e?(i+="-",i+=Lt(r.c.month),i+="-",i+=Lt(r.c.day)):(i+=Lt(r.c.month),i+=Lt(r.c.day)),i}function Tb(r,e,t,i,s,n){let a=Lt(r.c.hour);return e?(a+=":",a+=Lt(r.c.minute),(r.c.millisecond!==0||r.c.second!==0||!t)&&(a+=":")):a+=Lt(r.c.minute),(r.c.millisecond!==0||r.c.second!==0||!t)&&(a+=Lt(r.c.second),(r.c.millisecond!==0||!i)&&(a+=".",a+=Lt(r.c.millisecond,3))),s&&(r.isOffsetFixed&&r.offset===0&&!n?a+="Z":r.o<0?(a+="-",a+=Lt(Math.trunc(-r.o/60)),a+=":",a+=Lt(Math.trunc(-r.o%60))):(a+="+",a+=Lt(Math.trunc(r.o/60)),a+=":",a+=Lt(Math.trunc(r.o%60)))),n&&(a+="["+r.zone.ianaName+"]"),a}function RE(r){let e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[r.toLowerCase()];if(!e)throw new ka(r);return e}function Cb(r){switch(r.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return RE(r)}}function Ob(r,e){let t=wi(e.zone,kt.defaultZone),i=Et.fromObject(e),s=kt.now(),n,a;if(Xe(r.year))n=s;else{for(let o of Pb)Xe(r[o])&&(r[o]=Ib[o]);let c=Np(r)||Lp(r);if(c)return et.invalid(c);let d=t.offset(s);[n,a]=kf(r,d,t)}return new et({ts:n,zone:t,loc:i,o:a})}function Eb(r,e,t){let i=Xe(t.round)?!0:t.round,s=l((a,c)=>(a=Ca(a,i||t.calendary?0:2,!0),e.loc.clone(t).relFormatter(t).format(a,c)),"format"),n=l(a=>t.calendary?e.hasSame(r,a)?0:e.startOf(a).diff(r.startOf(a),a).get(a):e.diff(r,a).get(a),"differ");if(t.unit)return s(n(t.unit),t.unit);for(let a of t.units){let c=n(a);if(Math.abs(c)>=1)return s(c,a)}return s(r>e?-0:0,t.units[t.units.length-1])}function Db(r){let e={},t;return r.length>0&&typeof r[r.length-1]=="object"?(e=r[r.length-1],t=Array.from(r).slice(0,r.length-1)):t=Array.from(r),[e,t]}function La(r){if(et.isDateTime(r))return r;if(r&&r.valueOf&&Ui(r.valueOf()))return et.fromJSDate(r);if(r&&typeof r=="object")return et.fromObject(r);throw new Zt(`Unknown datetime argument: ${r}, of type ${typeof r}`)}var nm,xb,Ib,PE,$E,Pb,FE,ME,Mt,et,Is=ie(()=>{ql();Kp();Vn();Xp();Hl();Oa();Pl();wr();gf();hb();Gp();Sb();Hp();El();jn();$l();nm="Invalid DateTime",xb=864e13;l(wf,"unsupportedZone");l(sm,"possiblyCachedWeekData");l(am,"possiblyCachedLocalWeekData");l(Ls,"clone");l(Ab,"fixOffset");l(Sf,"tsToObj");l(kf,"objToTS");l(kb,"adjustTime");l(Wl,"parseDataToDateTime");l(xf,"toTechFormat");l(om,"toISODate");l(Tb,"toISOTime");Ib={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},PE={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},$E={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Pb=["year","month","day","hour","minute","second","millisecond"],FE=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],ME=["year","ordinal","hour","minute","second","millisecond"];l(RE,"normalizeUnit");l(Cb,"normalizeUnitWithLocalWeeks");l(Ob,"quickDT");l(Eb,"diffRelative");l(Db,"lastOpts");Mt=class Mt{constructor(e){let t=e.zone||kt.defaultZone,i=e.invalid||(Number.isNaN(e.ts)?new ar("invalid input"):null)||(t.isValid?null:wf(t));this.ts=Xe(e.ts)?kt.now():e.ts;let s=null,n=null;if(!i)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[s,n]=[e.old.c,e.old.o];else{let c=t.offset(this.ts);s=Sf(this.ts,c),i=Number.isNaN(s.year)?new ar("invalid input"):null,s=i?null:s,n=i?null:c}this._zone=t,this.loc=e.loc||Et.create(),this.invalid=i,this.weekData=null,this.localWeekData=null,this.c=s,this.o=n,this.isLuxonDateTime=!0}static now(){return new Mt({})}static local(){let[e,t]=Db(arguments),[i,s,n,a,c,d,o]=t;return Ob({year:i,month:s,day:n,hour:a,minute:c,second:d,millisecond:o},e)}static utc(){let[e,t]=Db(arguments),[i,s,n,a,c,d,o]=t;return e.zone=sr.utcInstance,Ob({year:i,month:s,day:n,hour:a,minute:c,second:d,millisecond:o},e)}static fromJSDate(e,t={}){let i=j_(e)?e.valueOf():NaN;
5if(Number.isNaN(i))return Mt.invalid("invalid input");let s=wi(t.zone,kt.defaultZone);return s.isValid?new Mt({ts:i,zone:s,loc:Et.fromObject(t)}):Mt.invalid(wf(s))}static fromMillis(e,t={}){if(Ui(e))return e<-xb||e>xb?Mt.invalid("Timestamp out of range"):new Mt({ts:e,zone:wi(t.zone,kt.defaultZone),loc:Et.fromObject(t)});throw new Zt(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(Ui(e))return new Mt({ts:e*1e3,zone:wi(t.zone,kt.defaultZone),loc:Et.fromObject(t)});throw new Zt("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};let i=wi(t.zone,kt.defaultZone);if(!i.isValid)return Mt.invalid(wf(i));let s=Et.fromObject(t),n=Aa(e,Cb),{minDaysInFirstWeek:a,startOfWeek:c}=Rp(n,s),d=kt.now(),o=Xe(t.specificOffset)?i.offset(d):t.specificOffset,p=!Xe(n.ordinal),g=!Xe(n.year),v=!Xe(n.month)||!Xe(n.day),m=g||v,w=n.weekYear||n.weekNumber;if((m||p)&&w)throw new vi("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(v&&p)throw new vi("Can't mix ordinal dates with month/day");let b=w||n.weekday&&!m,S,O,P=Sf(d,o);b?(S=FE,O=PE,P=Fl(P,a,c)):p?(S=ME,O=$E,P=_f(P)):(S=Pb,O=Ib);let N=!1;for(let pe of S){let ce=n[pe];Xe(ce)?N?n[pe]=O[pe]:n[pe]=P[pe]:N=!0}let B=b?L_(n,a,c):p?H_(n):Np(n),q=B||Lp(n);if(q)return Mt.invalid(q);let h=b?Fp(n,a,c):p?Mp(n):n,[M,R]=kf(h,o,i),G=new Mt({ts:M,zone:i,o:R,loc:s});return n.weekday&&m&&e.weekday!==G.weekday?Mt.invalid("mismatched weekday",`you can't specify both a weekday of ${n.weekday} and a date of ${G.toISO()}`):G}static fromISO(e,t={}){let[i,s]=rb(e);return Wl(i,s,t,"ISO 8601",e)}static fromRFC2822(e,t={}){let[i,s]=ib(e);return Wl(i,s,t,"RFC 2822",e)}static fromHTTP(e,t={}){let[i,s]=nb(e);return Wl(i,s,t,"HTTP",t)}static fromFormat(e,t,i={}){if(Xe(e)||Xe(t))throw new Zt("fromFormat requires an input string and a format");let{locale:s=null,numberingSystem:n=null}=i,a=Et.fromOpts({locale:s,numberingSystem:n,defaultToEN:!0}),[c,d,o,p]=wb(a,e,t);return p?Mt.invalid(p):Wl(c,d,i,`format ${t}`,e,o)}static fromString(e,t,i={}){return Mt.fromFormat(e,t,i)}static fromSQL(e,t={}){let[i,s]=ob(e);return Wl(i,s,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new Zt("need to specify a reason the DateTime is invalid");let i=e instanceof ar?e:new ar(e,t);if(kt.throwOnInvalid)throw new rf(i);return new Mt({invalid:i}
5)}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){let i=im(e,Et.fromObject(t));return i?i.map(s=>s?s.val:null).join(""):null}static expandFormat(e,t={}){return tm(or.parseFormat(e),Et.fromObject(t)).map(s=>s.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?sm(this).weekYear:NaN}get weekNumber(){return this.isValid?sm(this).weekNumber:NaN}get weekday(){return this.isValid?sm(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?am(this).weekday:NaN}get localWeekNumber(){return this.isValid?am(this).weekNumber:NaN}get localWeekYear(){return this.isValid?am(this).weekYear:NaN}get ordinal(){return this.isValid?_f(this.c).ordinal:NaN}get monthShort(){return this.isValid?gn.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?gn.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?gn.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?gn.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let e=864e5,t=6e4,i=Ta(this.c),s=this.zone.offset(i-e),n=this.zone.offset(i+e),a=this.zone.offset(i-s*t),c=this.zone.offset(i-n*t);if(a===c)return[this];let d=i-a*t,o=i-c*t,p=Sf(d,a),g=Sf(o,c);return p.hour===g.hour&&p.minute===g.minute&&p.second===g.second&&p.millisecond===g.millisecond?[Ls(this,{ts:d}),Ls(this,{ts:o})]:[this]}get isInLeapYear(){return Ms(this.year)}get daysInMonth(){return Da(this.year,this.month)}get daysInYear(){return this.isValid?Yn(this.year):NaN}get weeksInWeekYear(){return this.isValid?Fs(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Fs(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:t,numberingSystem:i,calendar:s}=or.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:i,outputCalendar:s}}toUTC(e=0,t={}){return this.setZone(sr.instance(e),t)}toLocal(){return this.setZone(kt.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:i=!1}={}){if(e=wi(e,kt.defaultZone),e.equals(this.zone))return this;if(e.isValid){let s=this.ts;if(t||i){let n=e.offset(this.ts),a=this.toObject();[s]=kf(a,n,e)}return Ls(this,{ts:s,zone:e})}else return Mt.invalid(wf(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:i}={}){let s=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:i});return Ls(this,{loc:s})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let t=Aa(e,Cb),{minDaysInFirstWeek:i,startOfWeek:s}=Rp(t,this.loc),n=!Xe(t.weekYear)||!Xe(t.weekNumber)||!Xe(t.weekday),a=!Xe(t.ordinal),c=!Xe(t.year),d=!Xe(t.month)||!Xe(t.day),o=c||d,p=t.weekYear||t.weekNumber;if((o||a)&&p)throw new vi("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&a)throw new vi("Can't mix ordinal dates with month/day");let g;n?g=Fp({...Fl(this.c,i,s),...t},i,s):Xe(t.ordinal)?(g={...this.toObject(),...t},Xe(t.day)&&(g.day=Math.min(Da(g.year,g.month),g.day))):g=Mp({..._f(this.c),...t});let[v,m]=kf(g,this.o,this.zone);return Ls(this,{ts:v,o:m})}plus(e){if(!this.isValid)return this;let t=Ht.fromDurationLike(e);return Ls(this,kb(this,t))}minus(e){if(!this.isValid)return this;let t=Ht.fromDurationLike(e).negate();return Ls(this,kb(this,t))}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;let i={},s=Ht.normalizeUnit(e);switch(s){case"years":i.month=1;case"quarters":case"months":i.day=1;case"weeks":case"days":i.hour=0;case"hours":i.minute=0;case"minutes":i.second=0;case"seconds":i.millisecond=0;break;case"milliseconds":break}if(s==="weeks")if(t){let n=this.loc.getStartOfWeek(),{weekday:a}=this;a<n&&(i.weekNumber=this.weekNumber-1),i.weekday=n}else i.weekday=1;if(s==="quarters"){let n=Math.ceil(this.month/3);i.month=(n-1)*3+1}return this.set(i)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?or.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):nm}
5toLocaleString(e=qn,t={}){return this.isValid?or.create(this.loc.clone(t),e).formatDateTime(this):nm}toLocaleParts(e={}){return this.isValid?or.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:i=!1,includeOffset:s=!0,extendedZone:n=!1}={}){if(!this.isValid)return null;let a=e==="extended",c=om(this,a);return c+="T",c+=Tb(this,a,t,i,s,n),c}toISODate({format:e="extended"}={}){return this.isValid?om(this,e==="extended"):null}toISOWeekDate(){return xf(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:i=!0,includePrefix:s=!1,extendedZone:n=!1,format:a="extended"}={}){return this.isValid?(s?"T":"")+Tb(this,a==="extended",t,e,i,n):null}toRFC2822(){return xf(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return xf(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?om(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:i=!0}={}){let s="HH:mm:ss.SSS";return(t||e)&&(i&&(s+=" "),t?s+="z":e&&(s+="ZZ")),xf(this,s,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():nm}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",i={}){if(!this.isValid||!e.isValid)return Ht.invalid("created by diffing an invalid DateTime");let s={locale:this.locale,numberingSystem:this.numberingSystem,...i},n=q_(t).map(Ht.normalizeUnit),a=e.valueOf()>this.valueOf(),c=a?this:e,d=a?e:this,o=Jp(c,d,n,s);return a?o.negate():o}diffNow(e="milliseconds",t={}){return this.diff(Mt.now(),e,t)}until(e){return this.isValid?mn.fromDateTimes(this,e):this}hasSame(e,t,i){if(!this.isValid)return!1;let s=e.valueOf(),n=this.setZone(e.zone,{keepLocalTime:!0});return n.startOf(t,i)<=s&&s<=n.endOf(t,i)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let t=e.base||Mt.fromObject({},{zone:this.zone}),i=e.padding?this<t?-e.padding:e.padding:0,s=["years","months","days","hours","minutes","seconds"],n=e.unit;return Array.isArray(e.unit)&&(s=e.unit,n=void 0),Eb(t,this.plus(i),{...e,numeric:"always",units:s,unit:n})}toRelativeCalendar(e={}){return this.isValid?Eb(e.base||Mt.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(Mt.isDateTime))throw new Zt("min requires all arguments be DateTimes");return Up(e,t=>t.valueOf(),Math.min)}static max(...e){if(!e.every(Mt.isDateTime))throw new Zt("max requires all arguments be DateTimes");return Up(e,t=>t.valueOf(),Math.max)}static fromFormatExplain(e,t,i={}){let{locale:s=null,numberingSystem:n=null}=i,a=Et.fromOpts({locale:s,numberingSystem:n,defaultToEN:!0});return rm(a,e,t)}static fromStringExplain(e,t,i={}){return Mt.fromFormatExplain(e,t,i)}static get DATE_SHORT(){return qn}static get DATE_MED(){return ul}static get DATE_MED_WITH_WEEKDAY(){return cp}static get DATE_FULL(){return cl}static get DATE_HUGE(){return fl}static get TIME_SIMPLE(){return dl}static get TIME_WITH_SECONDS(){return hl}static get TIME_WITH_SHORT_OFFSET(){return pl}static get TIME_WITH_LONG_OFFSET(){return ml}static get TIME_24_SIMPLE(){return gl}static get TIME_24_WITH_SECONDS(){return yl}static get TIME_24_WITH_SHORT_OFFSET(){return vl}static get TIME_24_WITH_LONG_OFFSET(){return _l}static get DATETIME_SHORT(){return bl}static get DATETIME_SHORT_WITH_SECONDS(){return wl}static get DATETIME_MED(){return Sl}static get DATETIME_MED_WITH_SECONDS(){return xl}static get DATETIME_MED_WITH_WEEKDAY(){return fp}static get DATETIME_FULL(){return kl}static get DATETIME_FULL_WITH_SECONDS(){return Tl}static get DATETIME_HUGE(){return Cl}static get DATETIME_HUGE_WITH_SECONDS(){return Ol}};l(Mt,"DateTime");et=Mt;l(La,"friendlyDateTime")});var Xn=ie(()=>{Is();ql();Kp();Xp();Ds();Oa();zn();Ip();lf();Vn()});function lm(r){if(typeof r!="string"||r.length<4)return"";let e=r.replace(/\+?\d/g,"*"),t=r.slice(-4);return`${e.slice(0,-4)}${t}`}function Bl(r){if(typeof r!="string"||r.length<4)return!1;for(let e=0;e<r.length-4;e++)if(r[e].match(/\d/))return!1;for(let e=r.length-4;e<r.length;e++)if(!r[e].match(/\d/))return!1;return!0}function zl(r,e){return typeof r!="string"||typeof e!="string"||!r||!e?!1:r.slice(-4)===e.slice(-4)}var Tf=ie(()=>{l(lm,"maskPhone");l(Bl,"isPhoneMasked");l(zl,"areLast4CharsOfPhoneStringsEqual")});var Hs=Pe((ZM,ji)=>{ji.exports.countriesByCode={af:"Afghanistan",ax:"Aland Islands",al:"Albania",dz:"Algeria",as:"American Samoa",ad:"And
5orra",ao:"Angola",ai:"Anguilla",aq:"Antarctica",ag:"Antigua and Barbuda",ar:"Argentina",am:"Armenia",aw:"Aruba",au:"Australia",at:"Austria",az:"Azerbaijan",bs:"Bahamas",bh:"Bahrain",bd:"Bangladesh",bb:"Barbados",by:"Belarus",be:"Belgium",bz:"Belize",bj:"Benin",bm:"Bermuda",bt:"Bhutan",bo:"Bolivia",bq:"Bonaire",ba:"Bosnia and Herzegovina",bw:"Botswana",bv:"Bouvet Island",br:"Brazil",io:"British Indian Ocean Territory",bn:"Brunei Darussalam",bg:"Bulgaria",bf:"Burkina Faso",bi:"Burundi",kh:"Cambodia",cm:"Cameroon",ca:"Canada",cv:"Cape Verde",ky:"Cayman Islands",cf:"Central African Republic",td:"Chad",cl:"Chile",cn:"China",cx:"Christmas Island",cc:"Cocos (Keeling) Islands",co:"Colombia",km:"Comoros",cg:"Congo",cd:"Congo, The Democratic Republic of the",ck:"Cook Islands",cr:"Costa Rica",ci:"Cote d'Ivoire",hr:"Croatia",cu:"Cuba",cw:"Curacao",cy:"Cyprus",cz:"Czech Republic",dk:"Denmark",dj:"Djibouti",dm:"Dominica",do:"Dominican Republic",ec:"Ecuador",eg:"Egypt",sv:"El Salvador",gq:"Equatorial Guinea",er:"Eritrea",ee:"Estonia",sz:"Eswatini",et:"Ethiopia",fk:"Falkland Islands (Malvinas)",fo:"Faroe Islands",fj:"Fiji",fi:"Finland",fr:"France",gf:"French Guiana",pf:"French Polynesia",tf:"French Southern Territories",ga:"Gabon",gm:"Gambia",ge:"Georgia",de:"Germany",gh:"Ghana",gi:"Gibraltar",gr:"Greece",gl:"Greenland",gd:"Grenada",gp:"Guadeloupe",gu:"Guam",gt:"Guatemala",gg:"Guernsey",gn:"Guinea",gw:"Guinea-Bissau",gy:"Guyana",ht:"Haiti",hm:"Heard Island and Mcdonald Islands",hn:"Honduras",hk:"Hong Kong",hu:"Hungary",is:"Iceland",in:"India",id:"Indonesia",ir:"Iran, Islamic Republic Of",iq:"Iraq",ie:"Ireland",im:"Isle of Man",il:"Israel",it:"Italy",jm:"Jamaica",jp:"Japan",je:"Jersey",jo:"Jordan",kz:"Kazakhstan",ke:"Kenya",ki:"Kiribati",kp:"Korea, Democratic People's Republic Of",kr:"Korea, Republic Of",kv:"Kosovo",kw:"Kuwait",kg:"Kyrgyzstan",la:"Lao People's Democratic Republic",lv:"Latvia",lb:"Lebanon",ls:"Lesotho",lr:"Liberia",ly:"Libyan Arab Jamahiriya",li:"Liechtenstein",lt:"Lithuania",lu:"Luxembourg",mo:"Macao",mg:"Madagascar",mw:"Malawi",my:"Malaysia",mv:"Maldives",ml:"Mali",mt:"Malta",mh:"Marshall Islands",mq:"Martinique",mr:"Mauritania",mu:"Mauritius",yt:"Mayotte",mx:"Mexico",fm:"Micronesia, Federated States of",md:"Moldova, Republic Of",mc:"Monaco",mn:"Mongolia",me:"Montenegro",ms:"Montserrat",ma:"Morocco",mz:"Mozambique",mm:"Myanmar",na:"Namibia",nr:"Nauru",np:"Nepal",nl:"Netherlands",nc:"New Caledonia",nz:"New Zealand",ni:"Nicaragua",ne:"Niger",ng:"Nigeria",nu:"Niue",nf:"Norfolk Island",mk:"North Macedonia, Republic of",mp:"Northern Mariana Islands",no:"Norway",om:"Oman",pk:"Pakistan",pw:"Palau",ps:"Palestinian Territory, Occupied",pa:"Panama",pg:"Papua New Guinea",py:"Paraguay",pe:"Peru",ph:"Philippines",pn:"Pitcairn",pl:"Poland",pt:"Portugal",pr:"Puerto Rico",qa:"Qatar",re:"Reunion",ro:"Romania",ru:"Russian Federation",rw:"Rwanda",bl:"Saint Barthelemy",sh:"Saint Helena",kn:"Saint Kitts and Nevis",lc:"Saint Lucia",pm:"Saint Pierre and Miquelon",vc:"Saint Vincent and The Grenadines",ws:"Samoa",sm:"San Marino",st:"Sao Tome and Principe",sa:"Saudi Arabia",sn:"Senegal",rs:"Serbia",sc:"Seychelles",sl:"Sierra Leone",sg:"Singapore",sx:"Sint Maarten",sk:"Slovakia",si:"Slovenia",sb:"Solomon Islands",so:"Somalia",za:"South Africa",gs:"South Georgia and the South Sandwich Islands",ss:"South Sudan",es:"Spain",lk:"Sri Lanka",sd:"Sudan",sr:"Suriname",sj:"Svalbard and Jan Mayen",se:"Sweden",ch:"Switzerland",sy:"Syrian Arab Republic",tw:"Taiwan",tj:"Tajikistan",tz:"Tanzania, United Republic Of",th:"Thailand",tl:"Timor-Leste",tg:"Togo",tk:"Tokelau",to:"Tonga",tt:"Trinidad and Tobago",tn:"Tunisia",tr:"Turkey",tm:"Turkmenistan",tc:"Turks and Caicos Islands",tv:"Tuvalu",ug:"Uganda",ua:"Ukraine",ae:"United Arab Emirates",gb:"United Kingdom",us:"United States",uy:"Uruguay",uz:"Uzbekistan",vu:"Vanuatu",va:"Vatican City",ve:"Venezuela",vn:"Vietnam",vg:"Virgin Islands, British",vi:"Virgin Islands, U.S.",wf:"Wallis and Futuna",eh:"Western Sahara",ye:"Yemen",zm:"Zambia",zw:"Zimbabwe"};ji.exports.countryCodesByName={afghanistan:"af","aland islands":"ax",albania:"al",algeria:"dz","american samoa":"as",andorra:"ad",angola:"ao",anguilla:"ai",antarctica:"aq","antigua and barbuda":"ag",argentina:"ar",armenia:"am",aruba:"aw",australia:"au",austria:"at",azerbaijan:"az",bahamas:"bs",bahrain:"bh",bangladesh:"bd",barbados:"bb",belarus:"by",belgium:"be",belize:"bz",benin:"bj",bermuda:"bm",bhutan:"bt",bolivia:"bo",bonaire:"bq","bosnia and herzegovina":"ba",botswana:"bw","bouvet island":"bv",brazil:"br","british indian ocean territory":"io","brunei darussalam":"bn",bulgaria:"bg","burkina faso":"bf",burundi:"bi",cambodia:"kh",cameroon:"cm",canada:"ca","cape verde":"cv","cayman islands":"ky","central african republic":"cf",chad:"td",chile:"cl",china:"cn","christmas island":"cx","cocos (keeling) islands":"cc",colombia:"c
5o",comoros:"km",congo:"cg","congo, the democratic republic of the":"cd","cook islands":"ck","costa rica":"cr","cote d'ivoire":"ci",croatia:"hr",cuba:"cu",curacao:"cw",cyprus:"cy","czech republic":"cz",denmark:"dk",djibouti:"dj",dominica:"dm","dominican republic":"do",ecuador:"ec",egypt:"eg","el salvador":"sv","equatorial guinea":"gq",eritrea:"er",estonia:"ee",eswatini:"sz",ethiopia:"et","falkland islands (malvinas)":"fk","faroe islands":"fo",fiji:"fj",finland:"fi",france:"fr","french guiana":"gf","french polynesia":"pf","french southern territories":"tf",gabon:"ga",gambia:"gm",georgia:"ge",germany:"de",ghana:"gh",gibraltar:"gi",greece:"gr",greenland:"gl",grenada:"gd",guadeloupe:"gp",guam:"gu",guatemala:"gt",guernsey:"gg",guinea:"gn","guinea-bissau":"gw",guyana:"gy",haiti:"ht","heard island and mcdonald islands":"hm",honduras:"hn","hong kong":"hk",hungary:"hu",iceland:"is",india:"in",indonesia:"id","iran, islamic republic of":"ir",iraq:"iq",ireland:"ie","isle of man":"im",israel:"il",italy:"it",jamaica:"jm",japan:"jp",jersey:"je",jordan:"jo",kazakhstan:"kz",kenya:"ke",kiribati:"ki","korea, democratic people's republic of":"kp","korea, republic of":"kr",kosovo:"kv",kuwait:"kw",kyrgyzstan:"kg","lao people's democratic republic":"la",latvia:"lv",lebanon:"lb",lesotho:"ls",liberia:"lr","libyan arab jamahiriya":"ly",liechtenstein:"li",lithuania:"lt",luxembourg:"lu",macao:"mo",madagascar:"mg",malawi:"mw",malaysia:"my",maldives:"mv",mali:"ml",malta:"mt","marshall islands":"mh",martinique:"mq",mauritania:"mr",mauritius:"mu",mayotte:"yt",mexico:"mx","micronesia, federated states of":"fm","moldova, republic of":"md",monaco:"mc",mongolia:"mn",montenegro:"me",montserrat:"ms",morocco:"ma",mozambique:"mz",myanmar:"mm",namibia:"na",nauru:"nr",nepal:"np",netherlands:"nl","new caledonia":"nc","new zealand":"nz",nicaragua:"ni",niger:"ne",nigeria:"ng",niue:"nu","norfolk island":"nf","north macedonia, republic of":"mk","northern mariana islands":"mp",norway:"no",oman:"om",pakistan:"pk",palau:"pw","palestinian territory, occupied":"ps",panama:"pa","papua new guinea":"pg",paraguay:"py",peru:"pe",philippines:"ph",pitcairn:"pn",poland:"pl",portugal:"pt","puerto rico":"pr",qatar:"qa",reunion:"re",romania:"ro","russian federation":"ru",rwanda:"rw","saint barthelemy":"bl","saint helena":"sh","saint kitts and nevis":"kn","saint lucia":"lc","saint pierre and miquelon":"pm","saint vincent and the grenadines":"vc",samoa:"ws","san marino":"sm","sao tome and principe":"st","saudi arabia":"sa",senegal:"sn",serbia:"rs",seychelles:"sc","sierra leone":"sl",singapore:"sg","sint maarten":"sx",slovakia:"sk",slovenia:"si","solomon islands":"sb",somalia:"so","south africa":"za","south georgia and the south sandwich islands":"gs","south sudan":"ss",spain:"es","sri lanka":"lk",sudan:"sd",suriname:"sr","svalbard and jan mayen":"sj",sweden:"se",switzerland:"ch","syrian arab republic":"sy",taiwan:"tw",tajikistan:"tj","tanzania, united republic of":"tz",thailand:"th","timor-leste":"tl",togo:"tg",tokelau:"tk",tonga:"to","trinidad and tobago":"tt",tunisia:"tn",turkey:"tr",turkmenistan:"tm","turks and caicos islands":"tc",tuvalu:"tv",uganda:"ug",ukraine:"ua","united arab emirates":"ae","united kingdom":"gb","united states":"us",uruguay:"uy",uzbekistan:"uz",vanuatu:"vu","vatican city":"va",venezuela:"ve",vietnam:"vn","virgin islands, british":"vg","virgin islands, u.s.":"vi","wallis and futuna":"wf","western sahara":"eh",yemen:"ye",zambia:"zm",zimbabwe:"zw"};ji.exports.gdprCountriesByCode={ad:"andorra",al:"albania",am:"armenia",at:"austria",be:"belgium",bg:"bulgaria",by:"belarus",ch:"switzerland",cy:"cyprus",cz:"czech republic",de:"germany",dk:"denmark",ee:"estonia",es:"spain",fi:"finland",fr:"france",gb:"united kingdom",gi:"gibraltar",gr:"greece",hr:"croatia",hu:"hungary",ie:"ireland",is:"iceland",it:"italy",kv:"kosovo",li:"liechtenstein",lt:"lithuania",lu:"luxembourg",lv:"latvia",mc:"monaco",mk:"north macedonia, republic of",mt:"malta",nl:"netherlands",no:"norway",pl:"poland",pt:"portugal",ro:"romania",ru:"russian federation",se:"sweden",si:"slovenia",sk:"slovakia",sm:"san marino",tr:"turkey",ua:"ukraine",va:"vatican city"};ji.exports.gdprCountriesByName={albania:"al",andorra:"ad",armenia:"am",austria:"at",belarus:"by",belgium:"be",bulgaria:"bg",croatia:"hr",cyprus:"cy","czech republic":"cz",denmark:"dk",estonia:"ee",f
5inland:"fi",france:"fr",germany:"de",gibraltar:"gi",greece:"gr",hungary:"hu",iceland:"is",ireland:"ie",italy:"it",kosovo:"kv",latvia:"lv",liechtenstein:"li",lithuania:"lt",luxembourg:"lu",malta:"mt",monaco:"mc",netherlands:"nl","north macedonia, republic of":"mk",norway:"no",poland:"pl",portugal:"pt",romania:"ro","russian federation":"ru","san marino":"sm",slovakia:"sk",slovenia:"si",spain:"es",sweden:"se",switzerland:"ch",turkey:"tr",ukraine:"ua","united kingdom":"gb","vatican city":"va"};ji.exports.countriesByID={1:"Afghanistan",240:"Aland Islands",2:"Albania",3:"Algeria",4:"American Samoa",5:"Andorra",6:"Angola",7:"Anguilla",8:"Antarctica",9:"Antigua And Barbuda",10:"Argentina",11:"Armenia",12:"Aruba",13:"Australia",14:"Austria",15:"Azerbaijan",16:"Bahamas",17:"Bahrain",18:"Bangladesh",19:"Barbados",20:"Belarus",21:"Belgium",22:"Belize",23:"Benin",24:"Bermuda",25:"Bhutan",26:"Bolivia",242:"Bonaire",27:"Bosnia And Herzegovina",28:"Botswana",29:"Bouvet Island",30:"Brazil",31:"British Indian Ocean Territory",32:"Brunei Darussalam",33:"Bulgaria",34:"Burkina Faso",35:"Burundi",36:"Cambodia",37:"Cameroon",38:"Canada",39:"Cape Verde",40:"Cayman Islands",41:"Central African Republic",42:"Chad",43:"Chile",44:"China",45:"Christmas Island",46:"Cocos (Keeling) Islands",47:"Colombia",48:"Comoros",49:"Congo",50:"Congo, The Democratic Republic Of The",51:"Cook Islands",52:"Costa Rica",53:"Cote D'Ivoire",54:"Croatia",55:"Cuba",243:"Curacao",56:"Cyprus",57:"Czech Republic",58:"Denmark",59:"Djibouti",60:"Dominica",61:"Dominican Republic",62:"Ecuador",63:"Egypt",64:"El Salvador",65:"Equatorial Guinea",66:"Eritrea",67:"Estonia",204:"Eswatini",68:"Ethiopia",69:"Falkland Islands (Malvinas)",70:"Faroe Islands",71:"Fiji",72:"Finland",73:"France",74:"French Guiana",75:"French Polynesia",76:"French Southern Territories",77:"Gabon",78:"Gambia",79:"Georgia",80:"Germany",81:"Ghana",82:"Gibraltar",83:"Greece",84:"Greenland",85:"Grenada",86:"Guadeloupe",87:"Guam",88:"Guatemala",244:"Guernsey",89:"Guinea",90:"Guinea-Bissau",91:"Guyana",92:"Haiti",93:"Heard Island And Mcdonald Islands",95:"Honduras",96:"Hong Kong",97:"Hungary",98:"Iceland",99:"India",100:"Indonesia",101:"Iran, Islamic Republic Of",102:"Iraq",103:"Ireland",245:"Isle Of Man",104:"Israel",105:"Italy",106:"Jamaica",107:"Japan",246:"Jersey",108:"Jordan",109:"Kazakhstan",110:"Kenya",111:"Kiribati",112:"Korea, Democratic People's Republic Of",113:"Korea, Republic Of",251:"Kosovo",114:"Kuwait",115:"Kyrgyzstan",116:"Lao People's Democratic Republic",117:"Latvia",118:"Lebanon",119:"Lesotho",120:"Liberia",121:"Libyan Arab Jamahiriya",122:"Liechtenstein",123:"Lithuania",124:"Luxembourg",125:"Macao",127:"Madagascar",128:"Malawi",129:"Malaysia",130:"Maldives",131:"Mali",132:"Malta",133:"Marshall Islands",134:"Martinique",135:"Mauritania",136:"Mauritius",137:"Mayotte",138:"Mexico",139:"Micronesia, Federated States Of",140:"Moldova, Republic Of",141:"Monaco",142:"Mongolia",247:"Montenegro",143:"Montserrat",144:"Morocco",145:"Mozambique",146:"Myanmar",147:"Namibia",148:"Nauru",149:"Nepal",150:"Netherlands",152:"New Caledonia",153:"New Zealand",154:"Nicaragua",155:"Niger",156:"Nigeria",157:"Niue",158:"Norfolk Island",126:"North Macedonia, Republic Of",159:"Northern Mariana Islands",160:"Norway",161:"Oman",162:"Pakistan",163:"Palau",164:"Palestinian Territory, Occupied",165:"Panama",166:"Papua New Guinea",167:"Paraguay",168:"Peru",169:"Philippines",170:"Pitcairn",171:"Poland",172:"Portugal",173:"Puerto Rico",174:"Qatar",175:"Reunion",176:"Romania",177:"Russian Federation",178:"Rwanda",241:"Saint Barthelemy",179:"Saint Helena",180:"Saint Kitts And Nevis",181:"Saint Lucia",182:"Saint Pierre And Miquelon",183:"Saint Vincent And The Grenadines",184:"Samoa",185:"San Marino",186:"Sao Tome And Principe",187:"Saudi Arabia",188:"Senegal",248:"Serbia",190:"Seychelles",191:"Sierra Leone",192:"Singapore",250:"Sint Maarten",193:"Slovakia",194:"Slovenia",195:"Solomon Islands",196:"Somalia",197:"South Africa",198:"South Georgia and the South Sandwich Islands",249:"South Sudan",199:"Spain",200:"Sri Lanka",201:"Sudan",202:"Suriname",203:"Svalbard And Jan Mayen",205:"Sweden",206:"Switzerland",207:"Syrian Arab Republic",208:"Taiwan",209
5:"Tajikistan",210:"Tanzania, United Republic Of",211:"Thailand",212:"Timor-Leste",213:"Togo",214:"Tokelau",215:"Tonga",216:"Trinidad And Tobago",217:"Tunisia",218:"Turkey",219:"Turkmenistan",220:"Turks And Caicos Islands",221:"Tuvalu",222:"Uganda",223:"Ukraine",224:"United Arab Emirates",225:"United Kingdom",226:"United States",228:"Uruguay",229:"Uzbekistan",230:"Vanuatu",94:"Vatican City",231:"Venezuela",232:"Vietnam",233:"Virgin Islands, British",234:"Virgin Islands, U.S.",235:"Wallis And Futuna",236:"Western Sahara",237:"Yemen",238:"Zambia",239:"Zimbabwe"};ji.exports.normalizeCountryCode=function(r){if(typeof r!="string"||r==="um"||r.length<2)return"us";if(r.length>2){let e=r.toLowerCase();return ji.exports.countryCodesByName[e]?ji.exports.countryCodesByName[e]:"us"}else return ji.exports.countriesByCode[r.toLowerCase()]?r.toLowerCase():"us"}});var $b=Pe((Cf,Of)=>{(function(r,e){var t={version:"2.14.3",areas:{},apis:{},nsdelim:".",inherit:function(s,n){for(var a in s)n.hasOwnProperty(a)||Object.defineProperty(n,a,Object.getOwnPropertyDescriptor(s,a));return n},stringify:function(s,n){return s===void 0||typeof s=="function"?s+"":JSON.stringify(s,n||t.replace)},parse:function(s,n){try{return JSON.parse(s,n||t.revive)}catch{return s}},fn:function(s,n){t.storeAPI[s]=n;for(var a in t.apis)t.apis[a][s]=n},get:function(s,n){return s.getItem(n)},set:function(s,n,a){s.setItem(n,a)},remove:function(s,n){s.removeItem(n)},key:function(s,n){return s.key(n)},length:function(s){return s.length},clear:function(s){s.clear()},Store:function(s,n,a){var c=t.inherit(t.storeAPI,function(o,p,g){return arguments.length===0?c.getAll():typeof p=="function"?c.transact(o,p,g):p!==void 0?c.set(o,p,g):typeof o=="string"||typeof o=="number"?c.get(o):typeof o=="function"?c.each(o):o?c.setAll(o,p):c.clear()});c._id=s;try{var d="__store2_test";n.setItem(d,"ok"),c._area=n,n.removeItem(d)}catch{c._area=t.storage("fake")}return c._ns=a||"",t.areas[s]||(t.areas[s]=c._area),t.apis[c._ns+c._id]||(t.apis[c._ns+c._id]=c),c},storeAPI:{area:function(s,n){var a=this[s];return(!a||!a.area)&&(a=t.Store(s,n,this._ns),this[s]||(this[s]=a)),a},namespace:function(s,n,a){if(a=a||this._delim||t.nsdelim,!s)return this._ns?this._ns.substring(0,this._ns.length-a.length):"";var c=s,d=this[c];if((!d||!d.namespace)&&(d=t.Store(this._id,this._area,this._ns+c+a),d._delim=a,this[c]||(this[c]=d),!n))for(var o in t.areas)d.area(o,t.areas[o]);return d},isFake:function(s){return s?(this._real=this._area,this._area=t.storage("fake")):s===!1&&(this._area=this._real||this._area),this._area.name==="fake"},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(s){return this._area.has?this._area.has(this._in(s)):this._in(s)in this._area},size:function(){return this.keys().length},each:function(s,n){for(var a=0,c=t.length(this._area);a<c;a++){var d=this._out(t.key(this._area,a));if(d!==void 0&&s.call(this,d,this.get(d),n)===!1)break;c>t.length(this._area)&&(c--,a--)}return n||this},keys:function(s){return this.each(function(n,a,c){c.push(n)},s||[])},get:function(s,n){var a=t.get(this._area,this._in(s)),c;return typeof n=="function"&&(c=n,n=null),a!==null?t.parse(a,c):n??a},getAll:function(s){return this.each(function(n,a,c){c[n]=a},s||{})},transact:function(s,n,a){var c=this.get(s,a),d=n(c);return this.set(s,d===void 0?c:d),this},set:function(s,n,a){var c=this.get(s),d;return c!=null&&a===!1?n:(typeof a=="function"&&(d=a,a=void 0),t.set(this._area,this._in(s),t.stringify(n,d),a)||c)},setAll:function(s,n){var a,c;for(var d in s)c=s[d],this.set(d,c,n)!==c&&(a=!0);return a},add:function(s,n,a){var c=this.get(s);if(c instanceof Array)n=c.concat(n);else if(c!==null){var d=typeof c;if(d===typeof n&&d==="object"){for(var o in n)c[o]=n[o];n=c}else n=c+n}return t.set(this._area,this._in(s),t.stringify(n,a)),n},remove:function(s,n){var a=this.get(s,n);return t.remove(this._area,this._in(s)),a},clear:function(){return this._ns?this.each(function(s){t.remove(this._area,this._in(s))},1):t.clear(this._area),this},clearAll:function(){var s=this._area;for(var n in t.areas)t.areas.hasOwnProperty(n)&&(this._area=t.areas[n],this.clear());return this._area=s,this}
5,_in:function(s){return typeof s!="string"&&(s=t.stringify(s)),this._ns?this._ns+s:s},_out:function(s){return this._ns?s&&s.indexOf(this._ns)===0?s.substring(this._ns.length):void 0:s}},storage:function(s){return t.inherit(t.storageAPI,{items:{},name:s})},storageAPI:{length:0,has:function(s){return this.items.hasOwnProperty(s)},key:function(s){var n=0;for(var a in this.items)if(this.has(a)&&s===n++)return a},setItem:function(s,n){this.has(s)||this.length++,this.items[s]=n},removeItem:function(s){this.has(s)&&(delete this.items[s],this.length--)},getItem:function(s){return this.has(s)?this.items[s]:null},clear:function(){for(var s in this.items)this.removeItem(s)}}},i=t.Store("local",function(){try{return localStorage}catch{}}());i.local=i,i._=t,i.area("session",function(){try{return sessionStorage}catch{}}()),i.area("page",t.storage("page")),typeof e=="function"&&e.amd!==void 0?e("store2",[],function(){return i}):typeof Of<"u"&&Of.exports?Of.exports=i:(r.store&&(t.conflict=r.store),r.store=i)})(Cf,Cf&&Cf.define)});var qi=Pe((Ef,um)=>{(function(r,e){typeof Ef=="object"&&typeof um=="object"?um.exports=e():typeof define=="function"&&define.amd?define([],e):typeof Ef=="object"?Ef.joi=e():r.joi=e()})(self,()=>{return r={7629:(t,i,s)=>{"use strict";let n=s(375),a=s(8571),c=s(9474),d=s(1687),o=s(8652),p=s(8160),g=s(3292),v=s(6354),m=s(8901),w=s(9708),b=s(6914),S=s(2294),O=s(6133),P=s(1152),N=s(8863),B=s(2036),q={Base:class{constructor(h){this.type=h,this.$_root=null,this._definition={},this._reset()}_reset(){this._ids=new S.Ids,this._preferences=null,this._refs=new O.Manager,this._cache=null,this._valids=null,this._invalids=null,this._flags={},this._rules=[],this._singleRules=new Map,this.$_terms={},this.$_temp={ruleset:null,whens:{}}}describe(){return n(typeof w.describe=="function","Manifest functionality disabled"),w.describe(this)}allow(...h){return p.verifyFlat(h,"allow"),this._values(h,"_valids")}alter(h){n(h&&typeof h=="object"&&!Array.isArray(h),"Invalid targets argument"),n(!this._inRuleset(),"Cannot set alterations inside a ruleset");let M=this.clone();M.$_terms.alterations=M.$_terms.alterations||[];for(let R in h){let G=h[R];n(typeof G=="function","Alteration adjuster for",R,"must be a function"),M.$_terms.alterations.push({target:R,adjuster:G})}return M.$_temp.ruleset=!1,M}artifact(h){return n(h!==void 0,"Artifact cannot be undefined"),n(!this._cache,"Cannot set an artifact with a rule cache"),this.$_setFlag("artifact",h)}cast(h){return n(h===!1||typeof h=="string","Invalid to value"),n(h===!1||this._definition.cast[h],"Type",this.type,"does not support casting to",h),this.$_setFlag("cast",h===!1?void 0:h)}default(h,M){return this._default("default",h,M)}description(h){return n(h&&typeof h=="string","Description must be a non-empty string"),this.$_setFlag("description",h)}empty(h){let M=this.clone();return h!==void 0&&(h=M.$_compile(h,{override:!1})),M.$_setFlag("empty",h,{clone:!1})}error(h){return n(h,"Missing error"),n(h instanceof Error||typeof h=="function","Must provide a valid Error object or a function"),this.$_setFlag("error",h)}example(h,M={}){return n(h!==void 0,"Missing example"),p.assertOptions(M,["override"]),this._inner("examples",h,{single:!0,override:M.override})}external(h,M){return typeof h=="object"&&(n(!M,"Cannot combine options with description"),M=h.description,h=h.method),n(typeof h=="function","Method must be a function"),n(M===void 0||M&&typeof M=="string","Description must be a non-empty string"),this._inner("externals",{method:h,description:M},{single:!0})}failover(h,M){return this._default("failover",h,M)}forbidden(){return this.presence("forbidden")}id(h){return h?(n(typeof h=="string","id must be a non-empty string"),n(/^[^\.]+$/.test(h),"id cannot contain period character"),this.$_setFlag("id",h)):this.$_setFlag("id",void 0)}invalid(...h){return this._values(h,"_invalids")}label(h){return n(h&&typeof h=="string","Label name must be a non-empty string"),this.$_setFlag("label",h)}meta(h){return n(h!==void 0,"Meta cannot be undefined"),this._inner("metas",h,{single:!0})}note(...h){n(h.length,"Missing notes");
5for(let M of h)n(M&&typeof M=="string","Notes must be non-empty strings");return this._inner("notes",h)}only(h=!0){return n(typeof h=="boolean","Invalid mode:",h),this.$_setFlag("only",h)}optional(){return this.presence("optional")}prefs(h){n(h,"Missing preferences"),n(h.context===void 0,"Cannot override context"),n(h.externals===void 0,"Cannot override externals"),n(h.warnings===void 0,"Cannot override warnings"),n(h.debug===void 0,"Cannot override debug"),p.checkPreferences(h);let M=this.clone();return M._preferences=p.preferences(M._preferences,h),M}presence(h){return n(["optional","required","forbidden"].includes(h),"Unknown presence mode",h),this.$_setFlag("presence",h)}raw(h=!0){return this.$_setFlag("result",h?"raw":void 0)}result(h){return n(["raw","strip"].includes(h),"Unknown result mode",h),this.$_setFlag("result",h)}required(){return this.presence("required")}strict(h){let M=this.clone(),R=h!==void 0&&!h;return M._preferences=p.preferences(M._preferences,{convert:R}),M}strip(h=!0){return this.$_setFlag("result",h?"strip":void 0)}tag(...h){n(h.length,"Missing tags");for(let M of h)n(M&&typeof M=="string","Tags must be non-empty strings");return this._inner("tags",h)}unit(h){return n(h&&typeof h=="string","Unit name must be a non-empty string"),this.$_setFlag("unit",h)}valid(...h){p.verifyFlat(h,"valid");let M=this.allow(...h);return M.$_setFlag("only",!!M._valids,{clone:!1}),M}when(h,M){let R=this.clone();R.$_terms.whens||(R.$_terms.whens=[]);let G=g.when(R,h,M);if(!["any","link"].includes(R.type)){let pe=G.is?[G]:G.switch;for(let ce of pe)n(!ce.then||ce.then.type==="any"||ce.then.type===R.type,"Cannot combine",R.type,"with",ce.then&&ce.then.type),n(!ce.otherwise||ce.otherwise.type==="any"||ce.otherwise.type===R.type,"Cannot combine",R.type,"with",ce.otherwise&&ce.otherwise.type)}return R.$_terms.whens.push(G),R.$_mutateRebuild()}cache(h){n(!this._inRuleset(),"Cannot set caching inside a ruleset"),n(!this._cache,"Cannot override schema cache"),n(this._flags.artifact===void 0,"Cannot cache a rule with an artifact");let M=this.clone();return M._cache=h||o.provider.provision(),M.$_temp.ruleset=!1,M}clone(){let h=Object.create(Object.getPrototypeOf(this));return this._assign(h)}concat(h){n(p.isSchema(h),"Invalid schema object"),n(this.type==="any"||h.type==="any"||h.type===this.type,"Cannot merge type",this.type,"with another type:",h.type),n(!this._inRuleset(),"Cannot concatenate onto a schema with open ruleset"),n(!h._inRuleset(),"Cannot concatenate a schema with open ruleset");let M=this.clone();if(this.type==="any"&&h.type!=="any"){let R=h.clone();for(let G of Object.keys(M))G!=="type"&&(R[G]=M[G]);M=R}M._ids.concat(h._ids),M._refs.register(h,O.toSibling),M._preferences=M._preferences?p.preferences(M._preferences,h._preferences):h._preferences,M._valids=B.merge(M._valids,h._valids,h._invalids),M._invalids=B.merge(M._invalids,h._invalids,h._valids);for(let R of h._singleRules.keys())M._singleRules.has(R)&&(M._rules=M._rules.filter(G=>G.keep||G.name!==R),M._singleRules.delete(R));for(let R of h._rules)h._definition.rules[R.method].multi||M._singleRules.set(R.name,R),M._rules.push(R);if(M._flags.empty&&h._flags.empty){M._flags.empty=M._flags.empty.c
5oncat(h._flags.empty);let R=Object.assign({},h._flags);delete R.empty,d(M._flags,R)}else if(h._flags.empty){M._flags.empty=h._flags.empty;let R=Object.assign({},h._flags);delete R.empty,d(M._flags,R)}else d(M._flags,h._flags);for(let R in h.$_terms){let G=h.$_terms[R];G?M.$_terms[R]?M.$_terms[R]=M.$_terms[R].concat(G):M.$_terms[R]=G.slice():M.$_terms[R]||(M.$_terms[R]=G)}return this.$_root._tracer&&this.$_root._tracer._combine(M,[this,h]),M.$_mutateRebuild()}extend(h){return n(!h.base,"Cannot extend type with another base"),m.type(this,h)}extract(h){return h=Array.isArray(h)?h:h.split("."),this._ids.reach(h)}fork(h,M){n(!this._inRuleset(),"Cannot fork inside a ruleset");let R=this;for(let G of[].concat(h))G=Array.isArray(G)?G:G.split("."),R=R._ids.fork(G,M,R);return R.$_temp.ruleset=!1,R}rule(h){let M=this._definition;p.assertOptions(h,Object.keys(M.modifiers)),n(this.$_temp.ruleset!==!1,"Cannot apply rules to empty ruleset or the last rule added does not support rule properties");let R=this.$_temp.ruleset===null?this._rules.length-1:this.$_temp.ruleset;n(R>=0&&R<this._rules.length,"Cannot apply rules to empty ruleset");let G=this.clone();for(let pe=R;pe<G._rules.length;++pe){let ce=G._rules[pe],be=a(ce);for(let Te in h)M.modifiers[Te](be,h[Te]),n(be.name===ce.name,"Cannot change rule name");G._rules[pe]=be,G._singleRules.get(be.name)===ce&&G._singleRules.set(be.name,be)}return G.$_temp.ruleset=!1,G.$_mutateRebuild()}get ruleset(){n(!this._inRuleset(),"Cannot start a new ruleset without closing the previous one");let h=this.clone();return h.$_temp.ruleset=h._rules.length,h}get $(){return this.ruleset}tailor(h){h=[].concat(h),n(!this._inRuleset(),"Cannot tailor inside a ruleset");let M=this;if(this.$_terms.alterations)for(let{target:R,adjuster:G}of this.$_terms.alterations)h.includes(R)&&(M=G(M),n(p.isSchema(M),"Alteration adjuster for",R,"failed to return a schema object"));return M=M.$_modify({each:R=>R.tailor(h),ref:!1}),M.$_temp.ruleset=!1,M.$_mutateRebuild()}tracer(){return P.location?P.location(this):this}validate(h,M){return N.entry(h,this,M)}validateAsync(h,M){return N.entryAsync(h,this,M)}$_addRule(h){typeof h=="string"&&(h={name:h}),n(h&&typeof h=="object","Invalid options"),n(h.name&&typeof h.name=="string","Invalid rule name");for(let ce in h)n(ce[0]!=="_","Cannot set private rule properties");let M=Object.assign({},h);M._resolve=[],M.method=M.method||M.name;let R=this._definition.rules[M.method],G=M.args;n(R,"Unknown rule",M.method);let pe=this.clone();if(G){n(Object.keys(G).length===1||Object.keys(G).length===this._definition.rules[M.name].args.length,"Invalid rule definition for",this.type,M.name);for(let ce in G){let be=G[ce];if(R.argsByName){let Te=R.argsByName.get(ce);if(Te.ref&&p.isResolvable(be))M._resolve.push(ce),pe.$_mutateRegister(be);else if(Te.normalize&&(be=Te.normalize(be),G[ce]=be),Te.assert){let ze=p.validateArg(be,ce,Te);n(!ze,ze,"or reference")}}be!==void 0?G[ce]=be:delete G[ce]}}return R.multi||(pe._ruleRemove(M.name,{clone:!1}),pe._singleRules.set(M.name,M)),pe.$_temp.ruleset===!1&&(pe.$_temp.ruleset=null),R.priority?pe._rules.unshift(M):pe._rules.push(M),pe}$_compile(h,M){return g.schema(this.$_root,h,M)}$_createError(h,M,R,G,pe,ce={}){let be=ce.flags!==!1?this._flags:{},Te=ce.messages?b.merge(this._definition.messages,ce.messages):this._definition.messages;return new v.Report(h,M,R,be,Te,G,pe)}$_getFlag(h){return this._flags[h]}$_getRule(h){return this._singleRules.get(h)}$_mapLabels(h){return h=Array.isArray(h)?h:h.split("."),this._ids.labels(h)}$_match(h,M,R,G){(R=Object.assign({},R)).abortEarly=!0,R._externals=!1,M.snapshot();let pe=!N.validate(h,this,M,R,G).errors;return M.restore(),pe}$_modify(h){return p.assertOptions(h,["each","once","ref","schema"]),S.schema(this,h)||this}$_mutateRebuild(){return n(!this._inRuleset(),"Cannot add this rule inside a ruleset"),this._refs.reset(),this._ids.reset(),this.$_modify({each:(h,{source:M,name:R,path:G,key:pe})=>{let ce=this._definition[M][R]&&this._definition[M][R].register;ce!==!1&&this.$_mutateRegister(h,{family:ce,key:pe})}}),this._definition.rebuild&&this._definition.rebuild(this),this.$_temp.ruleset=!1,this}
5$_mutateRegister(h,{family:M,key:R}={}){this._refs.register(h,M),this._ids.register(h,{key:R})}$_property(h){return this._definition.properties[h]}$_reach(h){return this._ids.reach(h)}$_rootReferences(){return this._refs.roots()}$_setFlag(h,M,R={}){n(h[0]==="_"||!this._inRuleset(),"Cannot set flag inside a ruleset");let G=this._definition.flags[h]||{};if(c(M,G.default)&&(M=void 0),c(M,this._flags[h]))return this;let pe=R.clone!==!1?this.clone():this;return M!==void 0?(pe._flags[h]=M,pe.$_mutateRegister(M)):delete pe._flags[h],h[0]!=="_"&&(pe.$_temp.ruleset=!1),pe}$_parent(h,...M){return this[h][p.symbols.parent].call(this,...M)}$_validate(h,M,R){return N.validate(h,this,M,R)}_assign(h){h.type=this.type,h.$_root=this.$_root,h.$_temp=Object.assign({},this.$_temp),h.$_temp.whens={},h._ids=this._ids.clone(),h._preferences=this._preferences,h._valids=this._valids&&this._valids.clone(),h._invalids=this._invalids&&this._invalids.clone(),h._rules=this._rules.slice(),h._singleRules=a(this._singleRules,{shallow:!0}),h._refs=this._refs.clone(),h._flags=Object.assign({},this._flags),h._cache=null,h.$_terms={};for(let M in this.$_terms)h.$_terms[M]=this.$_terms[M]?this.$_terms[M].slice():null;h.$_super={};for(let M in this.$_super)h.$_super[M]=this._super[M].bind(h);return h}_bare(){let h=this.clone();h._reset();let M=h._definition.terms;for(let R in M){let G=M[R];h.$_terms[R]=G.init}return h.$_mutateRebuild()}_default(h,M,R={}){return p.assertOptions(R,"literal"),n(M!==void 0,"Missing",h,"value"),n(typeof M=="function"||!R.literal,"Only function value supports literal option"),typeof M=="function"&&R.literal&&(M={[p.symbols.literal]:!0,literal:M}),this.$_setFlag(h,M)}_generate(h,M,R){if(!this.$_terms.whens)return{schema:this};let G=[],pe=[];for(let Te=0;Te<this.$_terms.whens.length;++Te){let ze=this.$_terms.whens[Te];if(ze.concat){G.push(ze.concat),pe.push(`${Te}.concat`);continue}let Ke=ze.ref?ze.ref.resolve(h,M,R):h,tt=ze.is?[ze]:ze.switch,bt=pe.length;for(let je=0;je<tt.length;++je){let{is:Ze,then:ut,otherwise:qe}=tt[je],C=`${Te}${ze.switch?"."+je:""}`;if(Ze.$_match(Ke,M.nest(Ze,`${C}.is`),R)){if(ut){let F=M.localize([...M.path,`${C}.then`],M.ancestors,M.schemas),{schema:j,id:ee}=ut._generate(h,F,R);G.push(j),pe.push(`${C}.then${ee?`(${ee})`:""}`);break}}else if(qe){let F=M.localize([...M.path,`${C}.otherwise`],M.ancestors,M.schemas),{schema:j,id:ee}=qe._generate(h,F,R);G.push(j),pe.push(`${C}.otherwise${ee?`(${ee})`:""}`);break}}if(ze.break&&pe.length>bt)break}let ce=pe.join(", ");if(M.mainstay.tracer.debug(M,"rule","when",ce),!ce)return{schema:this};if(!M.mainstay.tracer.active&&this.$_temp.whens[ce])return{schema:this.$_temp.whens[ce],id:ce};let be=this;this._definition.generate&&(be=this._definition.generate(this,h,M,R));for(let Te of G)be=be.concat(Te);return this.$_root._tracer&&this.$_root._tracer._combine(be,[this,...G]),this.$_temp.whens[ce]=be,{schema:be,id:ce}}_inner(h,M,R={}){n(!this._inRuleset(),`Cannot set ${h} inside a ruleset`);let G=this.clone();return G.$_terms[h]&&!R.override||(G.$_terms[h]=[]),R.single?G.$_terms[h].push(M):G.$_terms[h].push(...M),G.$_temp.ruleset=!1,G}_inRuleset(){return this.$_temp.ruleset!==null&&this.$_temp.ruleset!==!1}_ruleRemove(h,M={}){if(!this._singleRules.has(h))return this;let R=M.clone!==!1?this.clone():this;R._singleRules.delete(h);let G=[];for(let pe=0;pe<R._rules.length;++pe){let ce=R._rules[pe];ce.name!==h||ce.keep?G.push(ce):R._inRuleset()&&pe<R.$_temp.ruleset&&--R.$_temp.ruleset}return R._rules=G,R}_values(h,M){p.verifyFlat(h,M.slice(1,-1));let R=this.clone(),G=h[0]===p.symbols.override;if(G&&(h=h.slice(1)),!R[M]&&h.length?R[M]=new B:G&&(R[M]=h.length?new B:null,R.$_mutateRebuild()),!R[M])return R;G&&R[M].override();for(let pe of h){n(pe!==void 0,"Cannot call allow/valid/invalid with undefined"),n(pe!==p.symbols.override,"Override must be the first value");let ce=M==="_invalids"?"_valids":"_invalids";R[ce]&&(R[ce].remove(pe),R[ce].length||(n(M==="_valids"||!R._flags.only,"Setting invalid value",pe,"leaves schema rejecting all values due to previous valid rule"),R[ce]=null)),R[M].add(pe,R._refs)}return R}}};
5q.Base.prototype[p.symbols.any]={version:p.version,compile:g.compile,root:"$_root"},q.Base.prototype.isImmutable=!0,q.Base.prototype.deny=q.Base.prototype.invalid,q.Base.prototype.disallow=q.Base.prototype.invalid,q.Base.prototype.equal=q.Base.prototype.valid,q.Base.prototype.exist=q.Base.prototype.required,q.Base.prototype.not=q.Base.prototype.invalid,q.Base.prototype.options=q.Base.prototype.prefs,q.Base.prototype.preferences=q.Base.prototype.prefs,t.exports=new q.Base},8652:(t,i,s)=>{"use strict";let n=s(375),a=s(8571),c=s(8160),d={max:1e3,supported:new Set(["undefined","boolean","number","string"])};i.provider={provision:o=>new d.Cache(o)},d.Cache=class{constructor(o={}){c.assertOptions(o,["max"]),n(o.max===void 0||o.max&&o.max>0&&isFinite(o.max),"Invalid max cache size"),this._max=o.max||d.max,this._map=new Map,this._list=new d.List}get length(){return this._map.size}set(o,p){if(o!==null&&!d.supported.has(typeof o))return;let g=this._map.get(o);if(g)return g.value=p,void this._list.first(g);g=this._list.unshift({key:o,value:p}),this._map.set(o,g),this._compact()}get(o){let p=this._map.get(o);if(p)return this._list.first(p),a(p.value)}_compact(){if(this._map.size>this._max){let o=this._list.pop();this._map.delete(o.key)}}},d.List=class{constructor(){this.tail=null,this.head=null}unshift(o){return o.next=null,o.prev=this.head,this.head&&(this.head.next=o),this.head=o,this.tail||(this.tail=o),o}first(o){o!==this.head&&(this._remove(o),this.unshift(o))}pop(){return this._remove(this.tail)}_remove(o){let{next:p,prev:g}=o;return p.prev=g,g&&(g.next=p),o===this.tail&&(this.tail=p),o.prev=null,o.next=null,o}}},8160:(t,i,s)=>{"use strict";let n=s(375),a=s(7916),c=s(5934),d,o,p={isoDate:/^(?:[-+]\d{2})?(?:\d{4}(?!\d{2}\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\1(?:[12]\d|0[1-9]|3[01]))?|W(?:[0-4]\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?![T]$|[T][\d]+Z$)(?:[T\s](?:(?:(?:[01]\d|2[0-3])(?:(:?)[0-5]\d)?|24\:?00)(?:[.,]\d+(?!:))?)(?:\2[0-5]\d(?:[.,]\d+)?)?(?:[Z]|(?:[+-])(?:[01]\d|2[0-3])(?::?[0-5]\d)?)?)?)?$/};i.version=c.version,i.defaults={abortEarly:!0,allowUnknown:!1,artifacts:!1,cache:!0,context:null,convert:!0,dateFormat:"iso",errors:{escapeHtml:!1,label:"path",language:null,render:!0,stack:!1,wrap:{label:'"',array:"[]"}},externals:!0,messages:{},nonEnumerables:!1,noDefaults:!1,presence:"optional",skipFunctions:!1,stripUnknown:!1,warnings:!1},i.symbols={any:Symbol.for("@hapi/joi/schema"),arraySingle:Symbol("arraySingle"),deepDefault:Symbol("deepDefault"),errors:Symbol("errors"),literal:Symbol("literal"),override:Symbol("override"),parent:Symbol("parent"),prefs:Symbol("prefs"),ref:Symbol("ref"),template:Symbol("template"),values:Symbol("values")},i.assertOptions=function(g,v,m="Options"){n(g&&typeof g=="object"&&!Array.isArray(g),"Options must be of type object");let w=Object.keys(g).filter(b=>!v.includes(b));n(w.length===0,`${m} contain unknown keys: ${w}`)},i.checkPreferences=function(g){o=o||s(3378);let v=o.preferences.validate(g);if(v.error)throw new a([v.error.details[0].message])},i.compare=function(g,v,m){switch(m){case"=":return g===v;case">":return g>v;case"<":return g<v;case">=":return g>=v;case"<=":return g<=v}},i.default=function(g,v){return g===void 0?v:g},i.isIsoDate=function(g){return p.isoDate.test(g)},i.isNumber=function(g){return typeof g=="number"&&!isNaN(g)},i.isResolvable=function(g){return!!g&&(g[i.symbols.ref]||g[i.symbols.template])},i.isSchema=function(g,v={}){let m=g&&g[i.symbols.any];return!!m&&(n(v.legacy||m.version===i.version,"Cannot mix different versions of joi schemas"),!0)},i.isValues=function(g){return g[i.symbols.values]},i.limit=function(g){return Number.isSafeInteger(g)&&g>=0},i.preferences=function(g,v){d=d||s(6914),g=g||{},v=v||{};let m=Object.assign({},g,v);return v.errors&&g.errors&&(m.errors=Object.assign({},g.errors,v.errors),m.errors.wrap=Object.assign({},g.errors.wrap,v.errors.wrap)),v.messages&&(m.messages=d.compile(v.messages,g.messages)),delete m[i.symbols.prefs],m},i.tryWithPath=function(g,v,m={}){try{return g()}catch(w){throw w.path!==void 0?w.path=v+"."+w.path:w.path=v,m.append&&(w.message=`${w.message} (${w.path})`),w}}
5,i.validateArg=function(g,v,{assert:m,message:w}){if(i.isSchema(m)){let b=m.validate(g);return b.error?b.error.message:void 0}if(!m(g))return v?`${v} ${w}`:w},i.verifyFlat=function(g,v){for(let m of g)n(!Array.isArray(m),"Method no longer accepts array arguments:",v)}},3292:(t,i,s)=>{"use strict";let n=s(375),a=s(8160),c=s(6133),d={};i.schema=function(o,p,g={}){a.assertOptions(g,["appendPath","override"]);try{return d.schema(o,p,g)}catch(v){throw g.appendPath&&v.path!==void 0&&(v.message=`${v.message} (${v.path})`),v}},d.schema=function(o,p,g){n(p!==void 0,"Invalid undefined schema"),Array.isArray(p)&&(n(p.length,"Invalid empty array schema"),p.length===1&&(p=p[0]));let v=l((m,...w)=>g.override!==!1?m.valid(o.override,...w):m.valid(...w),"a");if(d.simple(p))return v(o,p);if(typeof p=="function")return o.custom(p);if(n(typeof p=="object","Invalid schema content:",typeof p),a.isResolvable(p))return v(o,p);if(a.isSchema(p))return p;if(Array.isArray(p)){for(let m of p)if(!d.simple(m))return o.alternatives().try(...p);return v(o,...p)}return p instanceof RegExp?o.string().regex(p):p instanceof Date?v(o.date(),p):(n(Object.getPrototypeOf(p)===Object.getPrototypeOf({}),"Schema can only contain plain objects"),o.object().keys(p))},i.ref=function(o,p){return c.isRef(o)?o:c.create(o,p)},i.compile=function(o,p,g={}){a.assertOptions(g,["legacy"]);let v=p&&p[a.symbols.any];if(v)return n(g.legacy||v.version===a.version,"Cannot mix different versions of joi schemas:",v.version,a.version),p;if(typeof p!="object"||!g.legacy)return i.schema(o,p,{appendPath:!0});let m=d.walk(p);return m?m.compile(m.root,p):i.schema(o,p,{appendPath:!0})},d.walk=function(o){if(typeof o!="object")return null;if(Array.isArray(o)){for(let g of o){let v=d.walk(g);if(v)return v}return null}let p=o[a.symbols.any];if(p)return{root:o[p.root],compile:p.compile};n(Object.getPrototypeOf(o)===Object.getPrototypeOf({}),"Schema can only contain plain objects");for(let g in o){let v=d.walk(o[g]);if(v)return v}return null},d.simple=function(o){return o===null||["boolean","string","number"].includes(typeof o)},i.when=function(o,p,g){if(g===void 0&&(n(p&&typeof p=="object","Missing options"),g=p,p=c.create(".")),Array.isArray(g)&&(g={switch:g}),a.assertOptions(g,["is","not","then","otherwise","switch","break"]),a.isSchema(p))return n(g.is===void 0,'"is" can not be used with a schema condition'),n(g.not===void 0,'"not" can not be used with a schema condition'),n(g.switch===void 0,'"switch" can not be used with a schema condition'),d.condition(o,{is:p,then:g.then,otherwise:g.otherwise,break:g.break});if(n(c.isRef(p)||typeof p=="string","Invalid condition:",p),n(g.not===void 0||g.is===void 0,'Cannot combine "is" with "not"'),g.switch===void 0){let m=g;g.not!==void 0&&(m={is:g.not,then:g.otherwise,otherwise:g.then,break:g.break});let w=m.is!==void 0?o.$_compile(m.is):o.$_root.invalid(null,!1,0,"").required();return n(m.then!==void 0||m.otherwise!==void 0,'options must have at least one of "then", "otherwise", or "switch"'),n(m.break===void 0||m.then===void 0||m.otherwise===void 0,"Cannot specify then, otherwise, and break all together"),g.is===void 0||c.isRef(g.is)||a.isSchema(g.is)||(w=w.required()),d.condition(o,{ref:i.ref(p),is:w,then:m.then,otherwise:m.otherwise,break:m.break})}n(Array.isArray(g.switch),'"switch" must be an array'),n(g.is===void 0,'Cannot combine "switch" with "is"'),n(g.not===void 0,'Cannot combine "switch" with "not"'),n(g.then===void 0,'Cannot combine "switch" with "then"');let v={ref:i.ref(p),switch:[],break:g.break};for(let m=0;m<g.switch.length;++m){let w=g.switch[m],b=m===g.switch.length-1;a.assertOptions(w,b?["is","then","otherwise"]:["is","then"]),n(w.is!==void 0,'Switch statement missing "is"'),n(w.then!==void 0,'Switch statement missing "then"');let S={is:o.$_compile(w.is),then:o.$_compile(w.then)};if(c.isRef(w.is)||a.isSchema(w.is)||(S.is=S.is.required()),b){n(g.otherwise===void 0||w.otherwise===void 0,'Cannot specify "otherwise" inside and outside a "switch"');let O=g.otherwise!==void 0?g.otherwise:w.otherwise;O!==void 0&&(n(v.break===void 0,"Cannot specify both otherwise and break"),S.otherwise=o.$_compile(O))}v.switch.push(S)}return v},d.condition=function(o,p){for(let g of["then","otherwise"])p[g]===void 0?delete p[g]:p[g]=o.$_compile(p[g]);return p}},6354:(t,i,s)=>{"use strict";let n=s(5688),a=s(8160),c=s(3328);i.Report=class{constructor(d,o,p,g,v,m,w){if(this.code=d,this.flags=g,this.messages=v,this.path=m.path,this.prefs=w,this.state=m,this.value=o,this.message=null,this.template=null,this.local=p||{},this.local.label=i.label(this.flags,this.state,this.prefs,this.messages),this.value===void 0||this.local.hasOwnProperty("value")||(this.local.value=this.value),this.path.length){let b=this.path[this.path.length-1];typeof b!="object"&&(this.local.key=b)}}_setTemplate(d){if(this.template=d,!this.flags.label&&this.path.length===0){let o=this._template(this.template,"root");o&&(this.local.label=o)}}toString(){if(this.message)return this.message;let d=this.code;
5if(!this.prefs.errors.render)return this.code;let o=this._template(this.template)||this._template(this.prefs.messages)||this._template(this.messages);return o===void 0?`Error code "${d}" is not defined, your custom type is missing the correct messages definition`:(this.message=o.render(this.value,this.state,this.prefs,this.local,{errors:this.prefs.errors,messages:[this.prefs.messages,this.messages]}),this.prefs.errors.label||(this.message=this.message.replace(/^"" /,"").trim()),this.message)}_template(d,o){return i.template(this.value,d,o||this.code,this.state,this.prefs)}},i.path=function(d){let o="";for(let p of d)typeof p!="object"&&(typeof p=="string"?(o&&(o+="."),o+=p):o+=`[${p}]`);return o},i.template=function(d,o,p,g,v){if(!o)return;if(c.isTemplate(o))return p!=="root"?o:null;let m=v.errors.language;if(a.isResolvable(m)&&(m=m.resolve(d,g,v)),m&&o[m]){if(o[m][p]!==void 0)return o[m][p];if(o[m]["*"]!==void 0)return o[m]["*"]}return o[p]?o[p]:o["*"]},i.label=function(d,o,p,g){if(!p.errors.label)return"";if(d.label)return d.label;let v=o.path;return p.errors.label==="key"&&o.path.length>1&&(v=o.path.slice(-1)),i.path(v)||i.template(null,p.messages,"root",o,p)||g&&i.template(null,g,"root",o,p)||"value"},i.process=function(d,o,p){if(!d)return null;let{override:g,message:v,details:m}=i.details(d);if(g)return g;if(p.errors.stack)return new i.ValidationError(v,m,o);let w=Error.stackTraceLimit;Error.stackTraceLimit=0;let b=new i.ValidationError(v,m,o);return Error.stackTraceLimit=w,b},i.details=function(d,o={}){let p=[],g=[];for(let v of d){if(v instanceof Error){if(o.override!==!1)return{override:v};let w=v.toString();p.push(w),g.push({message:w,type:"override",context:{error:v}});continue}let m=v.toString();p.push(m),g.push({message:m,path:v.path.filter(w=>typeof w!="object"),type:v.code,context:v.local})}return p.length>1&&(p=[...new Set(p)]),{message:p.join(". "),details:g}},i.ValidationError=class extends Error{constructor(d,o,p){super(d),this._original=p,this.details=o}static isError(d){return d instanceof i.ValidationError}},i.ValidationError.prototype.isJoi=!0,i.ValidationError.prototype.name="ValidationError",i.ValidationError.prototype.annotate=n.error},8901:(t,i,s)=>{"use strict";let n=s(375),a=s(8571),c=s(8160),d=s(6914),o={};i.type=function(p,g){let v=Object.getPrototypeOf(p),m=a(v),w=p._assign(Object.create(m)),b=Object.assign({},g);delete b.base,m._definition=b;let S=v._definition||{};b.messages=d.merge(S.messages,b.messages),b.properties=Object.assign({},S.properties,b.properties),w.type=b.type,b.flags=Object.assign({},S.flags,b.flags);let O=Object.assign({},S.terms);if(b.terms)for(let q in b.terms){let h=b.terms[q];n(w.$_terms[q]===void 0,"Invalid term override for",b.type,q),w.$_terms[q]=h.init,O[q]=h}b.terms=O,b.args||(b.args=S.args),b.prepare=o.prepare(b.prepare,S.prepare),b.coerce&&(typeof b.coerce=="function"&&(b.coerce={method:b.coerce}),b.coerce.from&&!Array.isArray(b.coerce.from)&&(b.coerce={method:b.coerce.method,from:[].concat(b.coerce.from)})),b.coerce=o.coerce(b.coerce,S.coerce),b.validate=o.validate(b.validate,S.validate);let P=Object.assign({},S.rules);if(b.rules)for(let q in b.rules){let h=b.rules[q];n(typeof h=="object","Invalid rule definition for",b.type,q);let M=h.method;if(M===void 0&&(M=l(function(){return this.$_addRule(q)},"r")),M&&(n(!m[q],"Rule conflict in",b.type,q),m[q]=M),n(!P[q],"Rule conflict in",b.type,q),P[q]=h,h.alias){let R=[].concat(h.alias);for(let G of R)m[G]=h.method}h.args&&(h.argsByName=new Map,h.args=h.args.map(R=>(typeof R=="string"&&(R={name:R}),n(!h.argsByName.has(R.name),"Duplicated argument name",R.name),c.isSchema(R.assert)&&(R.assert=R.assert.strict().label(R.name)),h.argsByName.set(R.name,R),R)))}b.rules=P;let N=Object.assign({},S.modifiers);if(b.modifiers)for(let q in b.modifiers){n(!m[q],"Rule conflict in",b.type,q);let h=b.modifiers[q];n(typeof h=="function","Invalid modifier definition for",b.type,q);let M=l(function(R){return this.rule({[q]:R})},"r");m[q]=M,N[q]=h}if(b.modifiers=N,b.overrides){m._super=v,w.$_super={};for(let q in b.overrides)n(v[q],"Cannot override missing",q),b.overrides[q][c.symbols.parent]=v[q],w.$_super[q]=v[q].bind(w);Object.assign(m,b.overrides)}b.cast=Object.assign({},S.cast,b.cast);let B=Object.assign({},S.manifest,b.manifest);return B.build=o.build(b.manifest&&b.manifest.build,S.manifest&&S.manifest.build),b.manifest=B,b.rebuild=o.rebuild(b.rebuild,S.rebuild),w},o.build=function(p,g){return p&&g?function(v,m){return g(p(v,m),m)}:p||g},o.coerce=function(p,g){return p&&g?{from:p.from&&g.from?[...new Set([...p.from,...g.from])]:null,method(v,m){let w;if((!g.from||g.from.includes(typeof v))&&(w=g.method(v,m),w)){if(w.errors||w.value===void 0)return w;v=w.value}if(!p.from||p.from.includes(typeof v)){let b=p.method(v,m);if(b)return b}return w}}:p||g},o.prepare=function(p,g){return p&&g?function(v,m){let w=p(v,m);if(w){if(w.errors||w.value===void 0)return w;v=w.value}return g(v,m)||w}:p||g},o.rebuild=function(p,g){return p&&g?function(v){g(v),p(v)}:p||g},o.validate=function(p,g){return p&&g?function(v,m){let w=g(v,m);if(w){if(w.errors&&(!Array.isArray(w.errors)||w.errors.length))return w;v=w.value}return p(v,m)||w}:p||g}},5107:(t,i,s)=>{"use strict";let n=s(375),a=s(8571),c=s(8652),d=s(8160),o=s(3292),p=s(6354),g=s(8901),v=s(9708),m=s(6133),w=s(3328),b=s(1152),S,O={types:{alternatives:s(4946),any:s(8068),array:s(546),boolean:s(4937),date:s(7500),function:s(390),link:s(8785),number:s(3832),object:s(8966),string:s(7417),symbol:s(8826)},aliases:{alt:"alternatives",bool:"boolean",func:"function"},root:function(){let P={_types:new Set(Object.keys(O.types))};for(let N of P._types)P[N]=function(...B){return n(!B.length||["alternatives","link","object"].includes(N),"The",N,"type does not allow arguments"),O.generate(this,O.types[N],B)};for(let N of["allow","custom","disallow","equal","exist","forbidden","invali
5d","not","only","optional","options","prefs","preferences","required","strip","valid","when"])P[N]=function(...B){return this.any()[N](...B)};Object.assign(P,O.methods);for(let N in O.aliases){let B=O.aliases[N];P[N]=P[B]}return P.x=P.expression,b.setup&&b.setup(P),P}};O.methods={ValidationError:p.ValidationError,version:d.version,cache:c.provider,assert(P,N,...B){O.assert(P,N,!0,B)},attempt:(P,N,...B)=>O.assert(P,N,!1,B),build(P){return n(typeof v.build=="function","Manifest functionality disabled"),v.build(this,P)},checkPreferences(P){d.checkPreferences(P)},compile(P,N){return o.compile(this,P,N)},defaults(P){n(typeof P=="function","modifier must be a function");let N=Object.assign({},this);for(let B of N._types){let q=P(N[B]());n(d.isSchema(q),"modifier must return a valid schema object"),N[B]=function(...h){return O.generate(this,q,h)}}return N},expression:(...P)=>new w(...P),extend(...P){d.verifyFlat(P,"extend"),S=S||s(3378),n(P.length,"You need to provide at least one extension"),this.assert(P,S.extensions);let N=Object.assign({},this);N._types=new Set(N._types);for(let B of P){typeof B=="function"&&(B=B(N)),this.assert(B,S.extension);let q=O.expandExtension(B,N);for(let h of q){n(N[h.type]===void 0||N._types.has(h.type),"Cannot override name",h.type);let M=h.base||this.any(),R=g.type(M,h);N._types.add(h.type),N[h.type]=function(...G){return O.generate(this,R,G)}}}return N},isError:p.ValidationError.isError,isExpression:w.isTemplate,isRef:m.isRef,isSchema:d.isSchema,in:(...P)=>m.in(...P),override:d.symbols.override,ref:(...P)=>m.create(...P),types(){let P={};for(let N of this._types)P[N]=this[N]();for(let N in O.aliases)P[N]=this[N]();return P}},O.assert=function(P,N,B,q){let h=q[0]instanceof Error||typeof q[0]=="string"?q[0]:null,M=h!==null?q[1]:q[0],R=N.validate(P,d.preferences({errors:{stack:!0}},M||{})),G=R.error;if(!G)return R.value;if(h instanceof Error)throw h;let pe=B&&typeof G.annotate=="function"?G.annotate():G.message;throw G instanceof p.ValidationError==0&&(G=a(G)),G.message=h?`${h} ${pe}`:pe,G},O.generate=function(P,N,B){return n(P,"Must be invoked on a Joi instance."),N.$_root=P,N._definition.args&&B.length?N._definition.args(N,...B):N},O.expandExtension=function(P,N){if(typeof P.type=="string")return[P];let B=[];for(let q of N._types)if(P.type.test(q)){let h=Object.assign({},P);h.type=q,h.base=N[q](),B.push(h)}return B},t.exports=O.root()},6914:(t,i,s)=>{"use strict";let n=s(375),a=s(8571),c=s(3328);i.compile=function(d,o){if(typeof d=="string")return n(!o,"Cannot set single message string"),new c(d);if(c.isTemplate(d))return n(!o,"Cannot set single message template"),d;n(typeof d=="object"&&!Array.isArray(d),"Invalid message options"),o=o?a(o):{};for(let p in d){let g=d[p];if(p==="root"||c.isTemplate(g)){o[p]=g;continue}if(typeof g=="string"){o[p]=new c(g);continue}n(typeof g=="object"&&!Array.isArray(g),"Invalid message for",p);let v=p;for(p in o[v]=o[v]||{},g){let m=g[p];p==="root"||c.isTemplate(m)?o[v][p]=m:(n(typeof m=="string","Invalid message for",p,"in",v),o[v][p]=new c(m))}}return o},i.decompile=function(d){let o={};for(let p in d){let g=d[p];if(p==="root"){o.root=g;continue}if(c.isTemplate(g)){o[p]=g.describe({compact:!0});continue}let v=p;for(p in o[v]={},g){let m=g[p];p!=="root"?o[v][p]=m.describe({compact:!0}):o[v].root=m}}return o},i.merge=function(d,o){if(!d)return i.compile(o);if(!o)return d;if(typeof o=="string")return new c(o);if(c.isTemplate(o))return o;let p=a(d);for(let g in o){let v=o[g];if(g==="root"||c.isTemplate(v)){p[g]=v;continue}if(typeof v=="string"){p[g]=new c(v);continue}n(typeof v=="object"&&!Array.isArray(v),"Invalid message for",g);let m=g;for(g in p[m]=p[m]||{},v){let w=v[g];g==="root"||c.isTemplate(w)?p[m][g]=w:(n(typeof w=="string","Invalid message for",g,"in",m),p[m][g]=new c(w))}}return p}},2294:(t,i,s)=>{"use strict";let n=s(375),a=s(8160),c=s(6133),d={};i.Ids=d.Ids=class{constructor(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}clone(){let o=new d.Ids;return o._byId=new Map(this._byId),o._byKey=new Map(this._byKey),o._schemaChain=this._schemaChain,o}concat(o){o._schemaChain&&(this._schemaChain=!0);
5for(let[p,g]of o._byId.entries())n(!this._byKey.has(p),"Schema id conflicts with existing key:",p),this._byId.set(p,g);for(let[p,g]of o._byKey.entries())n(!this._byId.has(p),"Schema key conflicts with existing id:",p),this._byKey.set(p,g)}fork(o,p,g){let v=this._collect(o);v.push({schema:g});let m=v.shift(),w={id:m.id,schema:p(m.schema)};n(a.isSchema(w.schema),"adjuster function failed to return a joi schema type");for(let b of v)w={id:b.id,schema:d.fork(b.schema,w.id,w.schema)};return w.schema}labels(o,p=[]){let g=o[0],v=this._get(g);if(!v)return[...p,...o].join(".");let m=o.slice(1);return p=[...p,v.schema._flags.label||g],m.length?v.schema._ids.labels(m,p):p.join(".")}reach(o,p=[]){let g=o[0],v=this._get(g);n(v,"Schema does not contain path",[...p,...o].join("."));let m=o.slice(1);return m.length?v.schema._ids.reach(m,[...p,g]):v.schema}register(o,{key:p}={}){if(!o||!a.isSchema(o))return;(o.$_property("schemaChain")||o._ids._schemaChain)&&(this._schemaChain=!0);let g=o._flags.id;if(g){let v=this._byId.get(g);n(!v||v.schema===o,"Cannot add different schemas with the same id:",g),n(!this._byKey.has(g),"Schema id conflicts with existing key:",g),this._byId.set(g,{schema:o,id:g})}p&&(n(!this._byKey.has(p),"Schema already contains key:",p),n(!this._byId.has(p),"Schema key conflicts with existing id:",p),this._byKey.set(p,{schema:o,id:p}))}reset(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}_collect(o,p=[],g=[]){let v=o[0],m=this._get(v);n(m,"Schema does not contain path",[...p,...o].join(".")),g=[m,...g];let w=o.slice(1);return w.length?m.schema._ids._collect(w,[...p,v],g):g}_get(o){return this._byId.get(o)||this._byKey.get(o)}},d.fork=function(o,p,g){let v=i.schema(o,{each:(m,{key:w})=>{if(p===(m._flags.id||w))return g},ref:!1});return v?v.$_mutateRebuild():o},i.schema=function(o,p){let g;for(let v in o._flags){if(v[0]==="_")continue;let m=d.scan(o._flags[v],{source:"flags",name:v},p);m!==void 0&&(g=g||o.clone(),g._flags[v]=m)}for(let v=0;v<o._rules.length;++v){let m=o._rules[v],w=d.scan(m.args,{source:"rules",name:m.name},p);if(w!==void 0){g=g||o.clone();let b=Object.assign({},m);b.args=w,g._rules[v]=b,g._singleRules.get(m.name)===m&&g._singleRules.set(m.name,b)}}for(let v in o.$_terms){if(v[0]==="_")continue;let m=d.scan(o.$_terms[v],{source:"terms",name:v},p);m!==void 0&&(g=g||o.clone(),g.$_terms[v]=m)}return g},d.scan=function(o,p,g,v,m){let w=v||[];if(o===null||typeof o!="object")return;let b;if(Array.isArray(o)){for(let S=0;S<o.length;++S){let O=p.source==="terms"&&p.name==="keys"&&o[S].key,P=d.scan(o[S],p,g,[S,...w],O);P!==void 0&&(b=b||o.slice(),b[S]=P)}return b}if(g.schema!==!1&&a.isSchema(o)||g.ref!==!1&&c.isRef(o)){let S=g.each(o,{...p,path:w,key:m});return S===o?void 0:S}for(let S in o){if(S[0]==="_")continue;let O=d.scan(o[S],p,g,[S,...w],m);O!==void 0&&(b=b||Object.assign({},o),b[S]=O)}return b}},6133:(t,i,s)=>{"use strict";let n=s(375),a=s(8571),c=s(9621),d=s(8160),o,p={symbol:Symbol("ref"),defaults:{adjust:null,in:!1,iterables:null,map:null,separator:".",type:"value"}};i.create=function(g,v={}){n(typeof g=="string","Invalid reference key:",g),d.assertOptions(v,["adjust","ancestor","in","iterables","map","prefix","render","separator"]),n(!v.prefix||typeof v.prefix=="object","options.prefix must be of type object");let m=Object.assign({},p.defaults,v);delete m.prefix;let w=m.separator,b=p.context(g,w,v.prefix);if(m.type=b.type,g=b.key,m.type==="value")if(b.root&&(n(!w||g[0]!==w,"Cannot specify relative path with root prefix"),m.ancestor="root",g||(g=null)),w&&w===g)g=null,m.ancestor=0;else if(m.ancestor!==void 0)n(!w||!g||g[0]!==w,"Cannot combine prefix with ancestor option");else{let[S,O]=p.ancestor(g,w);O&&(g=g.slice(O))===""&&(g=null),m.ancestor=S}
5return m.path=w?g===null?[]:g.split(w):[g],new p.Ref(m)},i.in=function(g,v={}){return i.create(g,{...v,in:!0})},i.isRef=function(g){return!!g&&!!g[d.symbols.ref]},p.Ref=class{constructor(g){n(typeof g=="object","Invalid reference construction"),d.assertOptions(g,["adjust","ancestor","in","iterables","map","path","render","separator","type","depth","key","root","display"]),n([!1,void 0].includes(g.separator)||typeof g.separator=="string"&&g.separator.length===1,"Invalid separator"),n(!g.adjust||typeof g.adjust=="function","options.adjust must be a function"),n(!g.map||Array.isArray(g.map),"options.map must be an array"),n(!g.map||!g.adjust,"Cannot set both map and adjust options"),Object.assign(this,p.defaults,g),n(this.type==="value"||this.ancestor===void 0,"Non-value references cannot reference ancestors"),Array.isArray(this.map)&&(this.map=new Map(this.map)),this.depth=this.path.length,this.key=this.path.length?this.path.join(this.separator):null,this.root=this.path[0],this.updateDisplay()}resolve(g,v,m,w,b={}){return n(!this.in||b.in,"Invalid in() reference usage"),this.type==="global"?this._resolve(m.context,v,b):this.type==="local"?this._resolve(w,v,b):this.ancestor?this.ancestor==="root"?this._resolve(v.ancestors[v.ancestors.length-1],v,b):(n(this.ancestor<=v.ancestors.length,"Invalid reference exceeds the schema root:",this.display),this._resolve(v.ancestors[this.ancestor-1],v,b)):this._resolve(g,v,b)}_resolve(g,v,m){let w;if(this.type==="value"&&v.mainstay.shadow&&m.shadow!==!1&&(w=v.mainstay.shadow.get(this.absolute(v))),w===void 0&&(w=c(g,this.path,{iterables:this.iterables,functions:!0})),this.adjust&&(w=this.adjust(w)),this.map){let b=this.map.get(w);b!==void 0&&(w=b)}return v.mainstay&&v.mainstay.tracer.resolve(v,this,w),w}toString(){return this.display}absolute(g){return[...g.path.slice(0,-this.ancestor),...this.path]}clone(){return new p.Ref(this)}describe(){let g={path:this.path};this.type!=="value"&&(g.type=this.type),this.separator!=="."&&(g.
5separator=this.separator),this.type==="value"&&this.ancestor!==1&&(g.ancestor=this.ancestor),this.map&&(g.map=[...this.map]);for(let v of["adjust","iterables","render"])this[v]!==null&&this[v]!==void 0&&(g[v]=this[v]);return this.in!==!1&&(g.in=!0),{ref:g}}updateDisplay(){let g=this.key!==null?this.key:"";if(this.type!=="value")return void(this.display=`ref:${this.type}:${g}`);if(!this.separator)return void(this.display=`ref:${g}`);if(!this.ancestor)return void(this.display=`ref:${this.separator}${g}`);if(this.ancestor==="root")return void(this.display=`ref:root:${g}`);if(this.ancestor===1)return void(this.display=`ref:${g||".."}`);let v=new Array(this.ancestor+1).fill(this.separator).join("");this.display=`ref:${v}${g||""}`}},p.Ref.prototype[d.symbols.ref]=!0,i.build=function(g){return(g=Object.assign({},p.defaults,g)).type==="value"&&g.ancestor===void 0&&(g.ancestor=1),new p.Ref(g)},p.context=function(g,v,m={}){if(g=g.trim(),m){let w=m.global===void 0?"$":m.global;if(w!==v&&g.startsWith(w))return{key:g.slice(w.length),type:"global"};let b=m.local===void 0?"#":m.local;if(b!==v&&g.startsWith(b))return{key:g.slice(b.length),type:"local"};let S=m.root===void 0?"/":m.root;if(S!==v&&g.startsWith(S))return{key:g.slice(S.length),type:"value",root:!0}}return{key:g,type:"value"}},p.ancestor=function(g,v){if(!v)return[1,0];if(g[0]!==v)return[1,0];if(g[1]!==v)return[0,1];let m=2;for(;g[m]===v;)++m;return[m-1,m]},i.toSibling=0,i.toParent=1,i.Manager=class{constructor(){this.refs=[]}register(g,v){if(g)if(v=v===void 0?i.toParent:v,Array.isArray(g))for(let m of g)this.register(m,v);else if(d.isSchema(g))for(let m of g._refs.refs)m.ancestor-v>=0&&this.refs.push({ancestor:m.ancestor-v,root:m.root});else i.isRef(g)&&g.type==="value"&&g.ancestor-v>=0&&this.refs.push({ancestor:g.ancestor-v,root:g.root}),o=o||s(3328),o.isTemplate(g)&&this.register(g.refs(),v)}get length(){return this.refs.length}clone(){let g=new i.Manager;return g.refs=a(this.refs),g}reset(){this.refs=[]}roots(){return this.refs.filter(g=>!g.ancestor).map(g=>g.root)}}},3378:(t,i,s)=>{"use strict";let n=s(5107),a={};a.wrap=n.string().min(1).max(2).allow(!1),i.preferences=n.object({allowUnknown:n.boolean(),abortEarly:n.boolean(),artifacts:n.boolean(),cache:n.boolean(),context:n.object(),convert:n.boolean(),dateFormat:n.valid("date","iso","string","time","utc"),debug:n.boolean(),errors:{escapeHtml:n.boolean(),label:n.valid("path","key",!1),language:[n.string(),n.object().ref()],render:n.boolean(),stack:n.boolean(),wrap:{label:a.wrap,array:a.wrap,string:a.wrap}},externals:n.boolean(),messages:n.object(),noDefaults:n.boolean(),nonEnumerables:n.boolean(),presence:n.valid("required","optional","forbidden"),skipFunctions:n.boolean(),stripUnknown:n.object({arrays:n.boolean(),objects:n.boolean()}).or("arrays","objects").allow(!0,!1),warnings:n.boolean()}).strict(),a.nameRx=/^[a-zA-Z0-9]\w*$/,a.rule=n.object({alias:n.array().items(n.string().pattern(a.nameRx)).single(),args:n.array().items(n.string(),n.object({name:n.string().pattern(a.nameRx).required(),ref:n.boolean(),assert:n.alternatives([n.function(),n.object().schema()]).conditional("ref",{is:!0,then:n.required()}),normalize:n.function(),message:n.string().when("assert",{is:n.function(),then:n.required()})})),convert:n.boolean(),manifest:n.boolean(),method:n.function().allow(!1),multi:n.boolean(),validate:n.function()}),i.extension=n.object({type:n.alternatives([n.string(),n.object().regex()]).required(),args:n.function(),cast:n.object().pattern(a.nameRx,n.object({from:n.function().maxArity(1).required(),to:n.function().minArity(1).maxArity(2).required()})),base:n.object().schema().when("type",{is:n.object().regex(),then:n.forbidden()}),coerce:[n.function().maxArity(3),n.object({method:n.function().maxArity(3).required(),from:n.array().items(n.string()).single()})],flags:n.object().pattern(a.nameRx,n.object({setter:n.string(),default:n.any()})),manifest:{build:n.function().arity(2)},messages:[n.object(),n.string()],modifiers:n.object().pattern(a.nameRx,n.function().minArity(1).maxArity(2)),overrides:n.object().pattern(a.nameRx,n.function()),prepare:n.function().maxArity(3),rebuild:n.function().arity(1),rules:n.object().pattern(a.nameRx,a.rule),terms:n.object().pattern(a.nameRx,n.object({init:n.array().allow(null).required(),manifest:n.object().pattern(/.+/,[n.valid("schema","single"),n.object({mapped:n.object({from:n.string().required(),to:n.string().required()}).required()})])}
5)),validate:n.function().maxArity(3)}).strict(),i.extensions=n.array().items(n.object(),n.function().arity(1)).strict(),a.desc={buffer:n.object({buffer:n.string()}),func:n.object({function:n.function().required(),options:{literal:!0}}),override:n.object({override:!0}),ref:n.object({ref:n.object({type:n.valid("value","global","local"),path:n.array().required(),separator:n.string().length(1).allow(!1),ancestor:n.number().min(0).integer().allow("root"),map:n.array().items(n.array().length(2)).min(1),adjust:n.function(),iterables:n.boolean(),in:n.boolean(),render:n.boolean()}).required()}),regex:n.object({regex:n.string().min(3)}),special:n.object({special:n.valid("deep").required()}),template:n.object({template:n.string().required(),options:n.object()}),value:n.object({value:n.alternatives([n.object(),n.array()]).required()})},a.desc.entity=n.alternatives([n.array().items(n.link("...")),n.boolean(),n.function(),n.number(),n.string(),a.desc.buffer,a.desc.func,a.desc.ref,a.desc.regex,a.desc.special,a.desc.template,a.desc.value,n.link("/")]),a.desc.values=n.array().items(null,n.boolean(),n.function(),n.number().allow(1/0,-1/0),n.string().allow(""),n.symbol(),a.desc.buffer,a.desc.func,a.desc.override,a.desc.ref,a.desc.regex,a.desc.template,a.desc.value),a.desc.messages=n.object().pattern(/.+/,[n.string(),a.desc.template,n.object().pattern(/.+/,[n.string(),a.desc.template])]),i.description=n.object({type:n.string().required(),flags:n.object({cast:n.string(),default:n.any(),description:n.string(),empty:n.link("/"),failover:a.desc.entity,id:n.string(),label:n.string(),only:!0,presence:["optional","required","forbidden"],result:["raw","strip"],strip:n.boolean(),unit:n.string()}).unknown(),preferences:{allowUnknown:n.boolean(),abortEarly:n.boolean(),artifacts:n.boolean(),cache:n.boolean(),convert:n.boolean(),dateFormat:["date","iso","string","time","utc"],errors:{escapeHtml:n.boolean(),label:["path","key"],language:[n.string(),a.desc.ref],wrap:{label:a.wrap,array:a.wrap}},externals:n.boolean(),messages:a.desc.messages,noDefaults:n.boolean(),nonEnumerables:n.boolean(),presence:["required","optional","forbidden"],skipFunctions:n.boolean(),stripUnknown:n.object({arrays:n.boolean(),objects:n.boolean()}).or("arrays","objects").allow(!0,!1),warnings:n.boolean()},allow:a.desc.values,invalid:a.desc.values,rules:n.array().min(1).items({name:n.string().required(),args:n.object().min(1),keep:n.boolean(),message:[n.string(),a.desc.messages],warn:n.boolean()}),keys:n.object().pattern(/.*/,n.link("/")),link:a.desc.ref}).pattern(/^[a-z]\w*$/,n.any())},493:(t,i,s)=>{"use strict";let n=s(8571),a=s(9621),c=s(8160),d={value:Symbol("value")};t.exports=d.State=class{constructor(o,p,g){this.path=o,this.ancestors=p,this.mainstay=g.mainstay,this.schemas=g.schemas,this.debug=null}localize(o,p=null,g=null){let v=new d.State(o,p,this);return g&&v.schemas&&(v.schemas=[d.schemas(g),...v.schemas]),v}nest(o,p){let g=new d.State(this.path,this.ancestors,this);return g.schemas=g.schemas&&[d.schemas(o),...g.schemas],g.debug=p,g}shadow(o,p){this.mainstay.shadow=this.mainstay.shadow||new d.Shadow,this.mainstay.shadow.set(this.path,o,p)}snapshot(){this.mainstay.shadow&&(this._snapshot=n(this.mainstay.shadow.node(this.path))),this.mainstay.snapshot()}restore(){this.mainstay.shadow&&(this.mainstay.shadow.override(this.path,this._snapshot),this._snapshot=void 0),this.mainstay.restore()}commit(){this.mainstay.shadow&&(this.mainstay.shadow.override(this.path,this._snapshot),this._snapshot=void 0),this.mainstay.commit()}},d.schemas=function(o){return c.isSchema(o)?{schema:o}:o},d.Shadow=class{constructor(){this._values=null}set(o,p,g){if(!o.length||g==="strip"&&typeof o[o.length-1]=="number")return;this._values=this._values||new Map;let v=this._values;for(let m=0;m<o.length;++m){let w=o[m],b=v.get(w);b||(b=new Map,v.set(w,b)),v=b}v[d.value]=p}get(o){let p=this.node(o);if(p)return p[d.value]}node(o){if(this._values)return a(this._values,o,{iterables:!0})}override(o,p){if(!this._values)return;let g=o.slice(0,-1),v=o[o.length-1],m=a(this._values,g,{iterables:!0});p?m.set(v,p):m&&m.delete(v)}}},3328:(t,i,s)=>{"use strict";let n=s(375),a=s(8571),c=s(5277),d=s(1447),o=s(8160),p=s(6354),g=s(6133),v={symbol:Symbol("template"),opens:new Array(1e3).join("\0"),closes:new Array(1e3).join("�"),dateFormat:{date:Date.prototype.toDateString,iso:Date.prototype.toISOString,
5string:Date.prototype.toString,time:Date.prototype.toTimeString,utc:Date.prototype.toUTCString}};t.exports=v.Template=class{constructor(m,w){if(n(typeof m=="string","Template source must be a string"),n(!m.includes("\0")&&!m.includes("�"),"Template source cannot contain reserved control characters"),this.source=m,this.rendered=m,this._template=null,w){let{functions:b,...S}=w;this._settings=Object.keys(S).length?a(S):void 0,this._functions=b,this._functions&&(n(Object.keys(this._functions).every(O=>typeof O=="string"),"Functions keys must be strings"),n(Object.values(this._functions).every(O=>typeof O=="function"),"Functions values must be functions"))}else this._settings=void 0,this._functions=void 0;this._parse()}_parse(){if(!this.source.includes("{"))return;let m=v.encode(this.source),w=v.split(m),b=!1,S=[],O=w.shift();O&&S.push(O);for(let P of w){let N=P[0]!=="{",B=N?"}":"}}",q=P.indexOf(B);if(q===-1||P[1]==="{"){S.push(`{${v.decode(P)}`);continue}let h=P.slice(N?0:1,q),M=h[0]===":";M&&(h=h.slice(1));let R=this._ref(v.decode(h),{raw:N,wrapped:M});S.push(R),typeof R!="string"&&(b=!0);let G=P.slice(q+B.length);G&&S.push(v.decode(G))}b?this._template=S:this.rendered=S.join("")}static date(m,w){return v.dateFormat[w.dateFormat].call(m)}describe(m={}){if(!this._settings&&m.compact)return this.source;let w={template:this.source};return this._settings&&(w.options=this._settings),this._functions&&(w.functions=this._functions),w}static build(m){return new v.Template(m.template,m.options||m.functions?{...m.options,functions:m.functions}:void 0)}isDynamic(){return!!this._template}static isTemplate(m){return!!m&&!!m[o.symbols.template]}refs(){if(!this._template)return;let m=[];for(let w of this._template)typeof w!="string"&&m.push(...w.refs);return m}resolve(m,w,b,S){return this._template&&this._template.length===1?this._part(this._template[0],m,w,b,S,{}):this.render(m,w,b,S)}_part(m,...w){return m.ref?m.ref.resolve(...w):m.formula.evaluate(w)}render(m,w,b,S,O={}){if(!this.isDynamic())return this.rendered;let P=[];for(let N of this._template)if(typeof N=="string")P.push(N);else{let B=this._part(N,m,w,b,S,O),q=v.stringify(B,m,w,b,S,O);if(q!==void 0){let h=N.raw||(O.errors&&O.errors.escapeHtml)===!1?q:c(q);P.push(v.wrap(h,N.wrapped&&b.errors.wrap.label))}}return P.join("")}_ref(m,{raw:w,wrapped:b}){let S=[],O=l(N=>{let B=g.create(N,this._settings);return S.push(B),q=>{let h=B.resolve(...q);return h!==void 0?h:null}},"n");try{let N=this._functions?{...v.functions,...this._functions}:v.functions;var P=new d.Parser(m,{reference:O,functions:N,constants:v.constants})}catch(N){throw N.message=`Invalid template variable "${m}" fails due to: ${N.message}`,N}if(P.single){if(P.single.type==="reference"){let N=S[0];return{ref:N,raw:w,refs:S,wrapped:b||N.type==="local"&&N.key==="label"}}return v.stringify(P.single.value)}return{formula:P,raw:w,refs:S}}toString(){return this.source}},v.Template.prototype[o.symbols.template]=!0,v.Template.prototype.isImmutable=!0,v.encode=function(m){return m.replace(/\\(\{+)/g,(w,b)=>v.opens.slice(0,b.length)).replace(/\\(\}+)/g,(w,b)=>v.closes.slice(0,b.length))},v.decode=function(m){return m.replace(/\u0000/g,"{").replace(/\u0001/g,"}")},v.split=function(m){let w=[],b="";for(let S=0;S<m.length;++S){let O=m[S];if(O==="{"){let P="";for(;S+1<m.length&&m[S+1]==="{";)P+="{",++S;w.push(b),b=P}else b+=O}return w.push(b),w},v.wrap=function(m,w){return w?w.length===1?`${w}${m}${w}`:`${w[0]}${m}${w[1]}`:m},v.stringify=function(m,w,b,S,O,P={}){let N=typeof m,B=S&&S.errors&&S.errors.wrap||{},q=!1;if(g.isRef(m)&&m.render&&(q=m.in,m=m.resolve(w,b,S,O,{in:m.in,...P})),m===null)return"null";if(N==="string")return v.wrap(m,P.arrayItems&&B.string);if(N==="number"||N==="function"||N==="symbol")return m.toString();if(N!=="object")return JSON.stringify(m);if(m instanceof Date)return v.Template.date(m,S);if(m instanceof Map){let M=[];for(let[R,G]of m.entries())M.push(`${R.toString()} -> ${G.toString()}`);m=M}if(!Array.isArray(m))return m.toString();let h=[];for(let M of m)h.push(v.stringify(M,w,b,S,O,{arrayItems:!0,...P}));return v.wrap(h.join(", "),!q&&B.array)},v.constants={true:!0,false:!1,null:null,second:1e3,minute:6e4,hour:36e5,day:864e5},v.functions={if:(m,w,b)=>m?w:b,length:m=>typeof m=="string"?m.length:m&&typeof m=="object"?Array.isArray(m)?m.length:Object.keys(m).length:null,msg(m){let[w,b,S,O,P]=this,N=P.messages;if(!N)return"";let B=p.template(w,N[0],m,b,S)||p.template(w,N[1],m,b,S);return B?B.render(w,b,S,O,P):""},number:m=>typeof m=="number"?m:typeof m=="string"?parseFloat(m):typeof m=="boolean"?m?1:0:m instanceof Date?m.getTime():null}},4946:(t,i,s)=>{"use strict";let n=s(375),a=s(1687),c=s(8068),d=s(8160),o=s(3292),p=s(6354),g=s(6133),v={};t.exports=c.extend({type:"alternatives",flags:{match:{default:"any"}},terms:{matches:{init:[],register:g.toSibling}},args:(m,...w)=>w.length===1&&Array.isArray(w[0])?m.try(...w[0]):m.try(...w),val
5idate(m,w){let{schema:b,error:S,state:O,prefs:P}=w;if(b._flags.match){let B=[],q=[];for(let M=0;M<b.$_terms.matches.length;++M){let R=b.$_terms.matches[M],G=O.nest(R.schema,`match.${M}`);G.snapshot();let pe=R.schema.$_validate(m,G,P);pe.errors?(q.push(pe.errors),G.restore()):(B.push(pe.value),G.commit())}if(B.length===0)return{errors:S("alternatives.any",{details:q.map(M=>p.details(M,{override:!1}))})};if(b._flags.match==="one")return B.length===1?{value:B[0]}:{errors:S("alternatives.one")};if(B.length!==b.$_terms.matches.length)return{errors:S("alternatives.all",{details:q.map(M=>p.details(M,{override:!1}))})};let h=l(M=>M.$_terms.matches.some(R=>R.schema.type==="object"||R.schema.type==="alternatives"&&h(R.schema)),"c");return h(b)?{value:B.reduce((M,R)=>a(M,R,{mergeArrays:!1}))}:{value:B[B.length-1]}}let N=[];for(let B=0;B<b.$_terms.matches.length;++B){let q=b.$_terms.matches[B];if(q.schema){let R=O.nest(q.schema,`match.${B}`);R.snapshot();let G=q.schema.$_validate(m,R,P);if(!G.errors)return R.commit(),G;R.restore(),N.push({schema:q.schema,reports:G.errors});continue}let h=q.ref?q.ref.resolve(m,O,P):m,M=q.is?[q]:q.switch;for(let R=0;R<M.length;++R){let G=M[R],{is:pe,then:ce,otherwise:be}=G,Te=`match.${B}${q.switch?"."+R:""}`;if(pe.$_match(h,O.nest(pe,`${Te}.is`),P)){if(ce)return ce.$_validate(m,O.nest(ce,`${Te}.then`),P)}else if(be)return be.$_validate(m,O.nest(be,`${Te}.otherwise`),P)}}return v.errors(N,w)},rules:{conditional:{method(m,w){n(!this._flags._endedSwitch,"Unreachable condition"),n(!this._flags.match,"Cannot combine match mode",this._flags.match,"with conditional rule"),n(w.break===void 0,"Cannot use break option with alternatives conditional");let b=this.clone(),S=o.when(b,m,w),O=S.is?[S]:S.switch;for(let P of O)if(P.then&&P.otherwise){b.$_setFlag("_endedSwitch",!0,{clone:!1});break}return b.$_terms.matches.push(S),b.$_mutateRebuild()}},match:{method(m){if(n(["any","one","all"].includes(m),"Invalid alternatives match mode",m),m!=="any")for(let w of this.$_terms.matches)n(w.schema,"Cannot combine match mode",m,"with conditional rules");return this.$_setFlag("match",m)}},try:{method(...m){n(m.length,"Missing alternative schemas"),d.verifyFlat(m,"try"),n(!this._flags._endedSwitch,"Unreachable condition");let w=this.clone();for(let b of m)w.$_terms.matches.push({schema:w.$_compile(b)});return w.$_mutateRebuild()}}},overrides:{label(m){return this.$_parent("label",m).$_modify({each:(w,b)=>b.path[0]!=="is"&&typeof w._flags.label!="string"?w.label(m):void 0,ref:!1})}},rebuild(m){m.$_modify({each:w=>{d.isSchema(w)&&w.type==="array"&&m.$_setFlag("_arrayItems",!0,{clone:!1})}})},manifest:{build(m,w){if(w.matches)for(let b of w.matches){let{schema:S,ref:O,is:P,not:N,then:B,otherwise:q}=b;m=S?m.try(S):O?m.conditional(O,{is:P,then:B,not:N,otherwise:q,switch:b.switch}):m.conditional(P,{then:B,otherwise:q})}return m}},messages:{"alternatives.all":"{{#label}} does not match all of the required types","alternatives.any":"{{#label}} does not match any of the allowed types","alternatives.match":"{{#label}} does not match any of the allowed types","alternatives.one":"{{#label}} matches more than one allowed type","alternatives.types":"{{#label}} must be one of {{#types}}"}}),v.errors=function(m,{error:w,state:b}){if(!m.length)return{errors:w("alternatives.any")};if(m.length===1)return{errors:m[0].reports};let S=new Set,O=[];for(let{reports:P,schema:N}of m){if(P.length>1)return v.unmatched(m,w);let B=P[0];if(B instanceof p.Report==0)return v.unmatched(m,w);if(B.state.path.length!==b.path.length){O.push({type:N.type,report:B});continue}if(B.code==="any.only"){for(let M of B.local.valids)S.add(M);continue}let[q,h]=B.code.split(".");h!=="base"?O.push({type:N.type,report:B}):B.code==="object.base"?S.add(B.local.type):S.add(q)}return O.length?O.length===1?{errors:O[0].report}:v.unmatched(m,w):{errors:w("alternatives.types",{types:[...S]})}},v.unmatched=function(m,w){let b=[];for(let S of m)b.push(...S.reports);return{errors:w("alternatives.match",p.details(b,{override:!1}))}}},8068:(t,i,s)=>{"use strict";let n=s(375),a=s(7629),c=s(8160),d=s(6914);t.exports=a.extend({type:"any",flags:{only:{default:!1}},terms:{alterations:{init:null},examples:{init:null},externals:{init:null},metas:{init:[]},notes:{init:[]},shared:{init:null},tags:{init:[]},whens:{init:null}},rules:{custom:{method(o,p){return n(typeof o=="function","Method must be a function"),n(p===void 0||p&&typeof p=="string","Description must be a non-empty string"),this.$_addRule({name:"custom",args:{method:o,description:p}})},validate(o,p,{method:g}){try{return g(o,p)}catch(v){return p.error("any.custom",{error:v})}},args:["method","description"],multi:!0},messages:{method(o){return this.prefs({messages:o})}},shared:{method(o){n(c.isSchema(o)&&o._flags.id,"Schema must be a schema with an id");let p=this.clone();return p.$_terms.shared=p.$_terms.shared||[],p.$_terms.shared.push(o),p.$_mutateRegister(o),p}}
5,warning:{method(o,p){return n(o&&typeof o=="string","Invalid warning code"),this.$_addRule({name:"warning",args:{code:o,local:p},warn:!0})},validate:(o,p,{code:g,local:v})=>p.error(g,v),args:["code","local"],multi:!0}},modifiers:{keep(o,p=!0){o.keep=p},message(o,p){o.message=d.compile(p)},warn(o,p=!0){o.warn=p}},manifest:{build(o,p){for(let g in p){let v=p[g];if(["examples","externals","metas","notes","tags"].includes(g))for(let m of v)o=o[g.slice(0,-1)](m);else if(g!=="alterations")if(g!=="whens"){if(g==="shared")for(let m of v)o=o.shared(m)}else for(let m of v){let{ref:w,is:b,not:S,then:O,otherwise:P,concat:N}=m;o=N?o.concat(N):w?o.when(w,{is:b,not:S,then:O,otherwise:P,switch:m.switch,break:m.break}):o.when(b,{then:O,otherwise:P,break:m.break})}else{let m={};for(let{target:w,adjuster:b}of v)m[w]=b;o=o.alter(m)}}return o}},messages:{"any.custom":"{{#label}} failed custom validation because {{#error.message}}","any.default":"{{#label}} threw an error when running default method","any.failover":"{{#label}} threw an error when running failover method","any.invalid":"{{#label}} contains an invalid value","any.only":'{{#label}} must be {if(#valids.length == 1, "", "one of ")}{{#valids}}',"any.ref":"{{#label}} {{#arg}} references {{:#ref}} which {{#reason}}","any.required":"{{#label}} is required","any.unknown":"{{#label}} is not allowed"}})},546:(t,i,s)=>{"use strict";let n=s(375),a=s(9474),c=s(9621),d=s(8068),o=s(8160),p=s(3292),g={};t.exports=d.extend({type:"array",flags:{single:{default:!1},sparse:{default:!1}},terms:{items:{init:[],manifest:"schema"},ordered:{init:[],manifest:"schema"},_exclusions:{init:[]},_inclusions:{init:[]},_requireds:{init:[]}},coerce:{from:"object",method(v,{schema:m,state:w,prefs:b}){if(!Array.isArray(v))return;let S=m.$_getRule("sort");return S?g.sort(m,v,S.args.options,w,b):void 0}},validate(v,{schema:m,error:w}){if(!Array.isArray(v)){if(m._flags.single){let b=[v];return b[o.symbols.arraySingle]=!0,{value:b}}return{errors:w("array.base")}}if(m.$_getRule("items")||m.$_terms.externals)return{value:v.slice()}},rules:{has:{method(v){v=this.$_compile(v,{appendPath:!0});let m=this.$_addRule({name:"has",args:{schema:v}});return m.$_mutateRegister(v),m},validate(v,{state:m,prefs:w,error:b},{schema:S}){let O=[v,...m.ancestors];for(let N=0;N<v.length;++N){let B=m.localize([...m.path,N],O,S);if(S.$_match(v[N],B,w))return v}let P=S._flags.label;return P?b("array.hasKnown",{patternLabel:P}):b("array.hasUnknown",null)},multi:!0},items:{method(...v){o.verifyFlat(v,"items");let m=this.$_addRule("items");for(let w=0;w<v.length;++w){let b=o.tryWithPath(()=>this.$_compile(v[w]),w,{append:!0});m.$_terms.items.push(b)}return m.$_mutateRebuild()},validate(v,{schema:m,error:w,state:b,prefs:S,errorsArray:O}){let P=m.$_terms._requireds.slice(),N=m.$_terms.ordered.slice(),B=[...m.$_terms._inclusions,...P],q=!v[o.symbols.arraySingle];delete v[o.symbols.arraySingle];let h=O(),M=v.length;for(let R=0;R<M;++R){let G=v[R],pe=!1,ce=!1,be=q?R:new Number(R),Te=[...b.path,be];if(!m._flags.sparse&&G===void 0){if(h.push(w("array.sparse",{key:be,path:Te,pos:R,value:void 0},b.localize(Te))),S.abortEarly)return h;N.shift();continue}let ze=[v,...b.ancestors];for(let je of m.$_terms._exclusions)if(je.$_match(G,b.localize(Te,ze,je),S,{presence:"ignore"})){if(h.push(w("array.excludes",{pos:R,value:G},b.localize(Te))),S.abortEarly)return h;pe=!0,N.shift();break}if(pe)continue;if(m.$_terms.ordered.length){if(N.length){let je=N.shift(),Ze=je.$_validate(G,b.localize(Te,ze,je),S);if(Ze.errors){if(h.push(...Ze.errors),S.abortEarly)return h}else if(je._flags.result==="strip")g.fastSplice(v,R),--R,--M;else{if(!m._flags.sparse&&Ze.value===void 0){if(h.push(w("array.sparse",{key:be,path:Te,pos:R,value:void 0},b.localize(Te))),S.abortEarly)return h;continue}v[R]=Ze.value}continue}if(!m.$_terms.items.length){if(h.push(w("array.orderedLength",{pos:R,limit:m.$_terms.ordered.length})),S.abortEarly)return h;break}}let Ke=[],tt=P.length;for(let je=0;je<tt;++je){let Ze=b.localize(Te,ze,P[je]);Ze.snapshot();let ut=P[je].$_validate(G,Ze,S);if(Ke[je]=ut,!ut.errors){if(Ze.commit(),v[R]=ut.value,ce=!0,g.fastSplice(P,je),--je,--tt,!m._flags.sparse&&ut.value===void 0&&(h.push(w("array.sparse",{key:be,path:Te,pos:R,value:void 0},b.localize(Te))),S.abortEarly))return h;break}
5Ze.restore()}if(ce)continue;let bt=S.stripUnknown&&!!S.stripUnknown.arrays||!1;tt=B.length;for(let je of B){let Ze,ut=P.indexOf(je);if(ut!==-1)Ze=Ke[ut];else{let qe=b.localize(Te,ze,je);if(qe.snapshot(),Ze=je.$_validate(G,qe,S),!Ze.errors){qe.commit(),je._flags.result==="strip"?(g.fastSplice(v,R),--R,--M):m._flags.sparse||Ze.value!==void 0?v[R]=Ze.value:(h.push(w("array.sparse",{key:be,path:Te,pos:R,value:void 0},b.localize(Te))),pe=!0),ce=!0;break}qe.restore()}if(tt===1){if(bt){g.fastSplice(v,R),--R,--M,ce=!0;break}if(h.push(...Ze.errors),S.abortEarly)return h;pe=!0;break}}if(!pe&&(m.$_terms._inclusions.length||m.$_terms._requireds.length)&&!ce){if(bt){g.fastSplice(v,R),--R,--M;continue}if(h.push(w("array.includes",{pos:R,value:G},b.localize(Te))),S.abortEarly)return h}}return P.length&&g.fillMissedErrors(m,h,P,v,b,S),N.length&&(g.fillOrderedErrors(m,h,N,v,b,S),h.length||g.fillDefault(N,v,b,S)),h.length?h:v},priority:!0,manifest:!1},length:{method(v){return this.$_addRule({name:"length",args:{limit:v},operator:"="})},validate:(v,m,{limit:w},{name:b,operator:S,args:O})=>o.compare(v.length,w,S)?v:m.error("array."+b,{limit:O.limit,value:v}),args:[{name:"limit",ref:!0,assert:o.limit,message:"must be a positive integer"}]},max:{method(v){return this.$_addRule({name:"max",method:"length",args:{limit:v},operator:"<="})}},min:{method(v){return this.$_addRule({name:"min",method:"length",args:{limit:v},operator:">="})}},ordered:{method(...v){o.verifyFlat(v,"ordered");let m=this.$_addRule("items");for(let w=0;w<v.length;++w){let b=o.tryWithPath(()=>this.$_compile(v[w]),w,{append:!0});g.validateSingle(b,m),m.$_mutateRegister(b),m.$_terms.ordered.push(b)}return m.$_mutateRebuild()}},single:{method(v){let m=v===void 0||!!v;return n(!m||!this._flags._arrayItems,"Cannot specify single rule when array has array items"),this.$_setFlag("single",m)}},sort:{method(v={}){o.assertOptions(v,["by","order"]);let m={order:v.order||"ascending"};return v.by&&(m.by=p.ref(v.by,{ancestor:0}),n(!m.by.ancestor,"Cannot sort by ancestor")),this.$_addRule({name:"sort",args:{options:m}})},validate(v,{error:m,state:w,prefs:b,schema:S},{options:O}){let{value:P,errors:N}=g.sort(S,v,O,w,b);if(N)return N;for(let B=0;B<v.length;++B)if(v[B]!==P[B])return m("array.sort",{order:O.order,by:O.by?O.by.key:"value"});return v},convert:!0},sparse:{method(v){let m=v===void 0||!!v;return this._flags.sparse===m?this:(m?this.clone():this.$_addRule("items")).$_setFlag("sparse",m,{clone:!1})}},unique:{method(v,m={}){n(!v||typeof v=="function"||typeof v=="string","comparator must be a function or a string"),o.assertOptions(m,["ignoreUndefined","separator"]);let w={name:"unique",args:{options:m,comparator:v}};if(v)if(typeof v=="string"){let b=o.default(m.separator,".");w.path=b?v.split(b):[v]}else w.comparator=v;return this.$_addRule(w)},validate(v,{state:m,error:w,schema:b},{comparator:S,options:O},{comparator:P,path:N}){let B={string:Object.create(null),number:Object.create(null),undefined:Object.create(null),boolean:Object.create(null),bigint:Object.create(null),object:new Map,function:new Map,custom:new Map},q=P||a,h=O.ignoreUndefined;for(let M=0;M<v.length;++M){let R=N?c(v[M],N):v[M],G=P?B.custom:B[typeof R];if(n(G,"Failed to find unique map container for type",typeof R),G instanceof Map){let pe=G.entries(),ce;for(;!(ce=pe.next()).done;)if(q(ce.value[0],R)){let be=m.localize([...m.path,M],[v,...m.ancestors]),Te={pos:M,value:v[M],dupePos:ce.value[1],dupeValue:v[ce.value[1]]};return N&&(Te.path=S),w("array.unique",Te,be)}G.set(R,M)}else{if((!h||R!==void 0)&&G[R]!==void 0){let pe={pos:M,value:v[M],dupePos:G[R],dupeValue:v[G[R]]};return N&&(pe.path=S),w("array.unique",pe,m.localize([...m.path,M],[v,...m.ancestors]))}G[R]=M}}return v},args:["comparator","options"],multi:!0}},cast:{set:{from:Array.isArray,to:(v,m)=>new Set(v)}},rebuild(v){v.$_terms._inclusions=[],v.$_terms._exclusions=[],v.$_terms._requireds=[];for(let m of v.$_terms.items)g.validateSingle(m,v),m._flags.presence==="required"?v.$_terms._requireds.push(m):m._flags.presence==="forbidden"?v.$_terms._exclusions.push(m):v.$_terms._inclusions.push(m);for(let m of v.$_terms.ordered)g.validateSingle(m,v)},manifest:{build:(v,m)=>(m.items&&(v=v.items(...m.items)),m.ordered&&(v=v.ordered(...m.ordered)),v)},messages:{"array.base":"{{#label}} must be an array","array.excludes":"{{#label}} contains an excluded value","array.hasKnown":"{{#label}} does not contain at least one required match for type {:#patternLabel}","array.hasUnknown":"{{#label}} does not contain at least one required match","array.includes":"{{#label}} does not match any of the allowed types","array.includesRequiredBoth":"{{#label}} does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)","array.includesRequiredKnowns":"{{#label}} does not contain {{#knownMisses}}","array.includesRequiredUnknowns":"{{#label}} does not contain {{#unknownMisses}} required value(s)","array.length":"{{#label}} must contain {{#limit}} items","array.max":"{{#label}} must contain less than or equal to {{#limit}} items","array.min":"{{#label}} must contain at least {{#limit}} items","array.orderedLength":"{{#label}} must contain at most {{#limit}} items","array.sort":"{{#label}} must be sorted in {#order} order by {{#by}}","array.sort.mismatching":"{{#label}} cannot be sorted due to mismatching types","array.sort.unsupported":"{{#label}} cannot be sorted due to unsupported type {#type}","array.sparse":"{{#label}} must not be a sparse array item","array.unique":"{{#label}} contains a duplicate value"}}),g.fillMissedErrors=function(v,m,w,b,S,O){let P=[],N=0;for(let B of w){let q=B._flags.label;q?P.push(q):++N}P.length?N?m.push(v.$_createError("array.includesRequiredBoth",b,{knownMisses:P,unknownMisses:N},S,O)):m.push(v.$_createError("array.includesRequiredKnowns",b,{knownMisses:P},S,O)):m.push(v.$_createError("array.includesRequiredUnknowns",b,{unknownMisses:N},S,O))},g.fillOrderedErrors=function(v,m,w,b,S,O){let P=[];for(let N of w)N._flags.presence==="required"&&P.push(N);P.length&&g.fillMissedErrors(v,m,P,b,S,O)},g.fillDefault=function(v,m,w,b){let S=[],O=!0;for(let P=v.length-1;P>=0;--P){let N=v[P],B=[m,...w.ancestors],q=N.$_validate(void 0,w.localize(w.path,B,N),b).value;if(O){if(q===void 0)continue;O=!1}S.unshift(q)}S.length&&m.push(...S)},g.fastSplice=function(v,m){let w=m;for(;w<v.length;)v[w++]=v[w];--v.length},g.validateSingle=function(v,m){(v.type==="array"||v._flags._arrayItems)&&(n(!m._flags.single,"Cannot specify array item with single rule enabled"),m.$_setFlag("_arrayItems",!0,{clone:!1}))},g.sort=function(v,m,w,b,S){let O=w.order==="ascending"?1:-1,P=-1*O,N=O,B=l((q,h)=>{let M=g.compare(q,h,P,N);if(M!==null||(w.by&&(q=w.by.resolve(q,b,S),h=w.by.resolve(h,b,S)),M=g.compare(q,h,P,N),M!==null))return M;let R=typeof q;if(R!==typeof h)throw v.$_createError("array.sort.mismatching",m,null,b,S);
5if(R!=="number"&&R!=="string")throw v.$_createError("array.sort.unsupported",m,{type:R},b,S);return R==="number"?(q-h)*O:q<h?P:N},"l");try{return{value:m.slice().sort(B)}}catch(q){return{errors:q}}},g.compare=function(v,m,w,b){return v===m?0:v===void 0?1:m===void 0?-1:v===null?b:m===null?w:null}},4937:(t,i,s)=>{"use strict";let n=s(375),a=s(8068),c=s(8160),d=s(2036),o={isBool:function(p){return typeof p=="boolean"}};t.exports=a.extend({type:"boolean",flags:{sensitive:{default:!1}},terms:{falsy:{init:null,manifest:"values"},truthy:{init:null,manifest:"values"}},coerce(p,{schema:g}){if(typeof p!="boolean"){if(typeof p=="string"){let v=g._flags.sensitive?p:p.toLowerCase();p=v==="true"||v!=="false"&&p}return typeof p!="boolean"&&(p=g.$_terms.truthy&&g.$_terms.truthy.has(p,null,null,!g._flags.sensitive)||(!g.$_terms.falsy||!g.$_terms.falsy.has(p,null,null,!g._flags.sensitive))&&p),{value:p}}},validate(p,{error:g}){if(typeof p!="boolean")return{value:p,errors:g("boolean.base")}},rules:{truthy:{method(...p){c.verifyFlat(p,"truthy");let g=this.clone();g.$_terms.truthy=g.$_terms.truthy||new d;for(let v=0;v<p.length;++v){let m=p[v];n(m!==void 0,"Cannot call truthy with undefined"),g.$_terms.truthy.add(m)}return g}},falsy:{method(...p){c.verifyFlat(p,"falsy");let g=this.clone();g.$_terms.falsy=g.$_terms.falsy||new d;for(let v=0;v<p.length;++v){let m=p[v];n(m!==void 0,"Cannot call falsy with undefined"),g.$_terms.falsy.add(m)}return g}},sensitive:{method(p=!0){return this.$_setFlag("sensitive",p)}}},cast:{number:{from:o.isBool,to:(p,g)=>p?1:0},string:{from:o.isBool,to:(p,g)=>p?"true":"false"}},manifest:{build:(p,g)=>(g.truthy&&(p=p.truthy(...g.truthy)),g.falsy&&(p=p.falsy(...g.falsy)),p)},messages:{"boolean.base":"{{#label}} must be a boolean"}})},7500:(t,i,s)=>{"use strict";let n=s(375),a=s(8068),c=s(8160),d=s(3328),o={isDate:function(p){return p instanceof Date}};t.exports=a.extend({type:"date",coerce:{from:["number","string"],method:(p,{schema:g})=>({value:o.parse(p,g._flags.format)||p})},validate(p,{schema:g,error:v,prefs:m}){if(p instanceof Date&&!isNaN(p.getTime()))return;let w=g._flags.format;return m.convert&&w&&typeof p=="string"?{value:p,errors:v("date.format",{format:w})}:{value:p,errors:v("date.base")}},rules:{compare:{method:!1,validate(p,g,{date:v},{name:m,operator:w,args:b}){let S=v==="now"?Date.now():v.getTime();return c.compare(p.getTime(),S,w)?p:g.error("date."+m,{limit:b.date,value:p})},args:[{name:"date",ref:!0,normalize:p=>p==="now"?p:o.parse(p),assert:p=>p!==null,message:"must have a valid date format"}]},format:{method(p){return n(["iso","javascript","unix"].includes(p),"Unknown date format",p),this.$_setFlag("format",p)}},greater:{method(p){return this.$_addRule({name:"greater",method:"compare",args:{date:p},operator:">"})}},iso:{method(){return this.format("iso")}},less:{method(p){return this.$_addRule({name:"less",method:"compare",args:{date:p},operator:"<"})}},max:{method(p){return this.$_addRule({name:"max",method:"compare",args:{date:p},operator:"<="})}},min:{method(p){return this.$_addRule({name:"min",method:"compare",args:{date:p},operator:">="})}},timestamp:{method(p="javascript"){return n(["javascript","unix"].includes(p),'"type" must be one of "javascript, unix"'),this.format(p)}}},cast:{number:{from:o.isDate,to:(p,g)=>p.getTime()},string:{from:o.isDate,to:(p,{prefs:g})=>d.date(p,g)}},messages:{"date.base":"{{#label}} must be a valid date","date.format":'{{#label}} must be in {msg("date.format." + #format) || #format} format',"date.greater":"{{#label}} must be greater than {{:#limit}}","date.less":"{{#label}} must be less than {{:#limit}}","date.max":"{{#label}} must be less than or equal to {{:#limit}}","date.min":"{{#label}} must be greater than or equal to {{:#limit}}","date.format.iso":"ISO 8601 date","date.format.javascript":"timestamp or number of milliseconds","date.format.unix":"timestamp or number of seconds"}}),o.parse=function(p,g){if(p instanceof Date)return p;if(typeof p!="string"&&(isNaN(p)||!isFinite(p))||/^\s*$/.test(p))return null;if(g==="iso")return c.isIsoDate(p)?o.date(p.toString()):null;let v=p;if(typeof p=="string"&&/^[+-]?\d+(\.\d+)?$/.test(p)&&(p=parseFloat(p)),g){if(g==="javascript")return o.date(1*p);if(g==="unix")return o.date(1e3*p);if(typeof v=="string")return null}return o.date(p)},o.date=function(p){let g=new Date(p);return isNaN(g.getTime())?null:g}},390:(t,i,s)=>{"use strict";let n=s(375),a=s(7824);t.exports=a.extend({type:"function",properties:{typeof:"function"},rules:{arity:{method(c){return n(Number.isSafeInteger(c)&&c>=0,"n must be a positive integer"),this.$_addRule({name:"arity",args:{n:c}})},validate:(c,d,{n:o})=>c.length===o?c:d.error("function.arity",{n:o})},class:{method(){return this.$_addRule("class")},validate:(c,d)=>/^\s*class\s/.test(c.toString())?c:d.error("function.class",{value:c})},minArity:{method(c){return n(Number.isSafeInteger(c)&&c>0,"n must be a strict positive integer"),this.$_addRule({name:"minArity",args:{n:c}})},validate:(c,d,{n:o})=>c.length>=o?c:d.error("function.minArity",{n:o})},maxArity:{method(c){return n(Number.isSafeInteger(c)&&c>=0,"n must be a positive integer"),this.$_addRule({name:"maxArity",args:{n:c}})},validate:(c,d,{n:o})=>c.length<=o?c:d.error("function.maxArity",{n:o})}},messages:{"function.arity":"{{#label}} must have an arity of {{#n}}","function.class":"{{#label}} must be a class","function.maxArity":"{{#label}} must have an arity lesser or equal to {{#n}}","function.minArity":"{{#label}} must have an arity greater or equal to {{#n}}"}})},7824:(t,i,s)=>{"use strict";let n=s(978),a=s(375),c=s(8571),d=s(3652),o=s(8068),p=s(8160),g=s(3292),v=s(6354),m=s(6133),w=s(3328),b={renameDefaults:{alias:!1,multiple:!1,override:!1}};t.exports=o.extend({type:"_keys",properties:{typeof:"object"},flags:{unknown:{default:void 0}}
5,terms:{dependencies:{init:null},keys:{init:null,manifest:{mapped:{from:"schema",to:"key"}}},patterns:{init:null},renames:{init:null}},args:(S,O)=>S.keys(O),validate(S,{schema:O,error:P,state:N,prefs:B}){if(!S||typeof S!==O.$_property("typeof")||Array.isArray(S))return{value:S,errors:P("object.base",{type:O.$_property("typeof")})};if(!(O.$_terms.renames||O.$_terms.dependencies||O.$_terms.keys||O.$_terms.patterns||O.$_terms.externals))return;S=b.clone(S,B);let q=[];if(O.$_terms.renames&&!b.rename(O,S,N,B,q))return{value:S,errors:q};if(!O.$_terms.keys&&!O.$_terms.patterns&&!O.$_terms.dependencies)return{value:S,errors:q};let h=new Set(Object.keys(S));if(O.$_terms.keys){let M=[S,...N.ancestors];for(let R of O.$_terms.keys){let G=R.key,pe=S[G];h.delete(G);let ce=N.localize([...N.path,G],M,R),be=R.schema.$_validate(pe,ce,B);if(be.errors){if(B.abortEarly)return{value:S,errors:be.errors};be.value!==void 0&&(S[G]=be.value),q.push(...be.errors)}else R.schema._flags.result==="strip"||be.value===void 0&&pe!==void 0?delete S[G]:be.value!==void 0&&(S[G]=be.value)}}if(h.size||O._flags._hasPatternMatch){let M=b.unknown(O,S,h,q,N,B);if(M)return M}if(O.$_terms.dependencies)for(let M of O.$_terms.dependencies){if(M.key!==null&&b.isPresent(M.options)(M.key.resolve(S,N,B,null,{shadow:!1}))===!1)continue;let R=b.dependencies[M.rel](O,M,S,N,B);if(R){let G=O.$_createError(R.code,S,R.context,N,B);if(B.abortEarly)return{value:S,errors:G};q.push(G)}}return{value:S,errors:q}},rules:{and:{method(...S){return p.verifyFlat(S,"and"),b.dependency(this,"and",null,S)}},append:{method(S){return S==null||Object.keys(S).length===0?this:this.keys(S)}},assert:{method(S,O,P){w.isTemplate(S)||(S=g.ref(S)),a(P===void 0||typeof P=="string","Message must be a string"),O=this.$_compile(O,{appendPath:!0});let N=this.$_addRule({name:"assert",args:{subject:S,schema:O,message:P}});return N.$_mutateRegister(S),N.$_mutateRegister(O),N},validate(S,{error:O,prefs:P,state:N},{subject:B,schema:q,message:h}){let M=B.resolve(S,N,P),R=m.isRef(B)?B.absolute(N):[];return q.$_match(M,N.localize(R,[S,...N.ancestors],q),P)?S:O("object.assert",{subject:B,message:h})},args:["subject","schema","message"],multi:!0},instance:{method(S,O){return a(typeof S=="function","constructor must be a function"),O=O||S.name,this.$_addRule({name:"instance",args:{constructor:S,name:O}})},validate:(S,O,{constructor:P,name:N})=>S instanceof P?S:O.error("object.instance",{type:N,value:S}),args:["constructor","name"]},keys:{method(S){a(S===void 0||typeof S=="object","Object schema must be a valid object"),a(!p.isSchema(S),"Object schema cannot be a joi schema");let O=this.clone();if(S)if(Object.keys(S).length){O.$_terms.keys=O.$_terms.keys?O.$_terms.keys.filter(P=>!S.hasOwnProperty(P.key)):new b.Keys;for(let P in S)p.tryWithPath(()=>O.$_terms.keys.push({key:P,schema:this.$_compile(S[P])}),P)}else O.$_terms.keys=new b.Keys;else O.$_terms.keys=null;return O.$_mutateRebuild()}},length:{method(S){return this.$_addRule({name:"length",args:{limit:S},operator:"="})},validate:(S,O,{limit:P},{name:N,operator:B,args:q})=>p.compare(Object.keys(S).length,P,B)?S:O.error("object."+N,{limit:q.limit,value:S}),args:[{name:"limit",ref:!0,assert:p.limit,message:"must be a positive integer"}]},max:{method(S){return this.$_addRule({name:"max",method:"length",args:{limit:S},operator:"<="})}},min:{method(S){return this.$_addRule({name:"min",method:"length",args:{limit:S},operator:">="})}},nand:{method(...S){return p.verifyFlat(S,"nand"),b.dependency(this,"nand",null,S)}},or:{method(...S){return p.verifyFlat(S,"or"),b.dependency(this,"or",null,S)}},oxor:{method(...S){return b.dependency(this,"oxor",null,S)}},pattern:{method(S,O,P={}){let N=S instanceof RegExp;N||(S=this.$_compile(S,{appendPath:!0})),a(O!==void 0,"Invalid rule"),p.assertOptions(P,["fallthrough","matches"]),N&&a(!S.flags.includes("g")&&!S.flags.includes("y"),"pattern should not use global or sticky mode"),O=this.$_compile(O,{appendPath:!0});let B=this.clone();B.$_terms.patterns=B.$_terms.patterns||[];let q={[N?"regex":"schema"]:S,rule:O};return P.matches&&(q.matches=this.$_compile(P.matches),q.matches.type!=="array"&&(q.matches=q.matches.$_root.array().items(q.matches)),B.$_mutateRegister(q.matches),B.$_setFlag("_hasPatternMatch",!0,{clone:!1})),P.fallthrough&&(q.fallthrough=!0),B.$_terms.patterns.push(q),B.$_mutateRegister(O),B}},ref:{method(){return this.$_addRule("ref")},validate:(S,O)=>m.isRef(S)?S:O.error("object.refType",{value:S})},regex:{method(){return this.$_addRule("regex")},validate:(S,O)=>S instanceof RegExp?S:O.error("object.regex",{value:S})},rename:{method(S,O,P={}){a(typeof S=="string"||S instanceof RegExp,"Rename missing the from argument"),a(typeof O=="string"||O instanceof w,"Invalid rename to argument"),a(O!==S,"Cannot rename key to 
5same name:",S),p.assertOptions(P,["alias","ignoreUndefined","override","multiple"]);let N=this.clone();N.$_terms.renames=N.$_terms.renames||[];for(let B of N.$_terms.renames)a(B.from!==S,"Cannot rename the same key multiple times");return O instanceof w&&N.$_mutateRegister(O),N.$_terms.renames.push({from:S,to:O,options:n(b.renameDefaults,P)}),N}},schema:{method(S="any"){return this.$_addRule({name:"schema",args:{type:S}})},validate:(S,O,{type:P})=>!p.isSchema(S)||P!=="any"&&S.type!==P?O.error("object.schema",{type:P}):S},unknown:{method(S){return this.$_setFlag("unknown",S!==!1)}},with:{method(S,O,P={}){return b.dependency(this,"with",S,O,P)}},without:{method(S,O,P={}){return b.dependency(this,"without",S,O,P)}},xor:{method(...S){return p.verifyFlat(S,"xor"),b.dependency(this,"xor",null,S)}}},overrides:{default(S,O){return S===void 0&&(S=p.symbols.deepDefault),this.$_parent("default",S,O)}},rebuild(S){if(S.$_terms.keys){let O=new d.Sorter;for(let P of S.$_terms.keys)p.tryWithPath(()=>O.add(P,{after:P.schema.$_rootReferences(),group:P.key}),P.key);S.$_terms.keys=new b.Keys(...O.nodes)}},manifest:{build(S,O){if(O.keys&&(S=S.keys(O.keys)),O.dependencies)for(let{rel:P,key:N=null,peers:B,options:q}of O.dependencies)S=b.dependency(S,P,N,B,q);if(O.patterns)for(let{regex:P,schema:N,rule:B,fallthrough:q,matches:h}of O.patterns)S=S.pattern(P||N,B,{fallthrough:q,matches:h});if(O.renames)for(let{from:P,to:N,options:B}of O.renames)S=S.rename(P,N,B);return S}},messages:{"object.and":"{{#label}} contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}","object.assert":'{{#label}} is invalid because {if(#subject.key, `"` + #subject.key + `" failed to ` + (#message || "pass the assertion test"), #message || "the assertion failed")}',"object.base":"{{#label}} must be of type {{#type}}","object.instance":"{{#label}} must be an instance of {{:#type}}","object.length":'{{#label}} must have {{#limit}} key{if(#limit == 1, "", "s")}',"object.max":'{{#label}} must have less than or equal to {{#limit}} key{if(#limit == 1, "", "s")}',"object.min":'{{#label}} must have at least {{#limit}} key{if(#limit == 1, "", "s")}',"object.missing":"{{#label}} must contain at least one of {{#peersWithLabels}}","object.nand":"{{:#mainWithLabel}} must not exist simultaneously with {{#peersWithLabels}}","object.oxor":"{{#label}} contains a conflict between optional exclusive peers {{#peersWithLabels}}","object.pattern.match":"{{#label}} keys failed to match pattern requirements","object.refType":"{{#label}} must be a Joi reference","object.regex":"{{#label}} must be a RegExp object","object.rename.multiple":"{{#label}} cannot rename {{:#from}} because multiple renames are disabled and another key was already renamed to {{:#to}}","object.rename.override":"{{#label}} cannot rename {{:#from}} because override is disabled and target {{:#to}} exists","object.schema":"{{#label}} must be a Joi schema of {{#type}} type","object.unknown":"{{#label}} is not allowed","object.with":"{{:#mainWithLabel}} missing required peer {{:#peerWithLabel}}","object.without":"{{:#mainWithLabel}} conflict with forbidden peer {{:#peerWithLabel}}","object.xor":"{{#label}} contains a conflict between exclusive peers {{#peersWithLabels}}"}}),b.clone=function(S,O){if(typeof S=="object"){if(O.nonEnumerables)return c(S,{shallow:!0});let N=Object.create(Object.getPrototypeOf(S));return Object.assign(N,S),N}let P=l(function(...N){return S.apply(this,N)},"r");return P.prototype=c(S.prototype),Object.defineProperty(P,"name",{value:S.name,writable:!1}),Object.defineProperty(P,"length",{value:S.length,writable:!1}),Object.assign(P,S),P},b.dependency=function(S,O,P,N,B){a(P===null||typeof P=="string",O,"key must be a strings"),B||(B=N.length>1&&typeof N[N.length-1]=="object"?N.pop():{}),p.assertOptions(B,["separator","isPresent"]),N=[].concat(N);let q=p.default(B.separator,"."),h=[];for(let R of N)a(typeof R=="string",O,"peers must be strings"),h.push(g.ref(R,{separator:q,ancestor:0,prefix:!1}));P!==null&&(P=g.ref(P,{separator:q,ancestor:0,prefix:!1}));let M=S.clone();return M.$_terms.dependencies=M.$_terms.dependencies||[],M.$_terms.dependencies.push(new b.Dependency(O,P,h,N,B)),M}
5,b.dependencies={and(S,O,P,N,B){let q=[],h=[],M=O.peers.length,R=b.isPresent(O.options);for(let G of O.peers)R(G.resolve(P,N,B,null,{shadow:!1}))===!1?q.push(G.key):h.push(G.key);if(q.length!==M&&h.length!==M)return{code:"object.and",context:{present:h,presentWithLabels:b.keysToLabels(S,h),missing:q,missingWithLabels:b.keysToLabels(S,q)}}},nand(S,O,P,N,B){let q=[],h=b.isPresent(O.options);for(let G of O.peers)h(G.resolve(P,N,B,null,{shadow:!1}))&&q.push(G.key);if(q.length!==O.peers.length)return;let M=O.paths[0],R=O.paths.slice(1);return{code:"object.nand",context:{main:M,mainWithLabel:b.keysToLabels(S,M),peers:R,peersWithLabels:b.keysToLabels(S,R)}}},or(S,O,P,N,B){let q=b.isPresent(O.options);for(let h of O.peers)if(q(h.resolve(P,N,B,null,{shadow:!1})))return;return{code:"object.missing",context:{peers:O.paths,peersWithLabels:b.keysToLabels(S,O.paths)}}},oxor(S,O,P,N,B){let q=[],h=b.isPresent(O.options);for(let R of O.peers)h(R.resolve(P,N,B,null,{shadow:!1}))&&q.push(R.key);if(!q.length||q.length===1)return;let M={peers:O.paths,peersWithLabels:b.keysToLabels(S,O.paths)};return M.present=q,M.presentWithLabels=b.keysToLabels(S,q),{code:"object.oxor",context:M}},with(S,O,P,N,B){let q=b.isPresent(O.options);for(let h of O.peers)if(q(h.resolve(P,N,B,null,{shadow:!1}))===!1)return{code:"object.with",context:{main:O.key.key,mainWithLabel:b.keysToLabels(S,O.key.key),peer:h.key,peerWithLabel:b.keysToLabels(S,h.key)}}},without(S,O,P,N,B){let q=b.isPresent(O.options);for(let h of O.peers)if(q(h.resolve(P,N,B,null,{shadow:!1})))return{code:"object.without",context:{main:O.key.key,mainWithLabel:b.keysToLabels(S,O.key.key),peer:h.key,peerWithLabel:b.keysToLabels(S,h.key)}}},xor(S,O,P,N,B){let q=[],h=b.isPresent(O.options);for(let R of O.peers)h(R.resolve(P,N,B,null,{shadow:!1}))&&q.push(R.key);if(q.length===1)return;let M={peers:O.paths,peersWithLabels:b.keysToLabels(S,O.paths)};return q.length===0?{code:"object.missing",context:M}:(M.present=q,M.presentWithLabels=b.keysToLabels(S,q),{code:"object.xor",context:M})}},b.keysToLabels=function(S,O){return Array.isArray(O)?O.map(P=>S.$_mapLabels(P)):S.$_mapLabels(O)},b.isPresent=function(S){return typeof S.isPresent=="function"?S.isPresent:O=>O!==void 0},b.rename=function(S,O,P,N,B){let q={};for(let h of S.$_terms.renames){let M=[],R=typeof h.from!="string";if(R)for(let G in O){if(O[G]===void 0&&h.options.ignoreUndefined||G===h.to)continue;let pe=h.from.exec(G);pe&&M.push({from:G,to:h.to,match:pe})}else!Object.prototype.hasOwnProperty.call(O,h.from)||O[h.from]===void 0&&h.options.ignoreUndefined||M.push(h);for(let G of M){let pe=G.from,ce=G.to;if(ce instanceof w&&(ce=ce.render(O,P,N,G.match)),pe!==ce){if(!h.options.multiple&&q[ce]&&(B.push(S.$_createError("object.rename.multiple",O,{from:pe,to:ce,pattern:R},P,N)),N.abortEarly)||Object.prototype.hasOwnProperty.call(O,ce)&&!h.options.override&&!q[ce]&&(B.push(S.$_createError("object.rename.override",O,{from:pe,to:ce,pattern:R},P,N)),N.abortEarly))return!1;O[pe]===void 0?delete O[ce]:O[ce]=O[pe],q[ce]=!0,h.options.alias||delete O[pe]}}}return!0},b.unknown=function(S,O,P,N,B,q){if(S.$_terms.patterns){let h=!1,M=S.$_terms.patterns.map(G=>{if(G.matches)return h=!0,[]}),R=[O,...B.ancestors];for(let G of P){let pe=O[G],ce=[...B.path,G];for(let be=0;be<S.$_terms.patterns.length;++be){let Te=S.$_terms.patterns[be];if(Te.regex){let tt=Te.regex.test(G);if(B.mainstay.tracer.debug(B,"rule",`pattern.${be}`,tt?"pass":"error"),!tt)continue}else if(!Te.schema.$_match(G,B.nest(Te.schema,`pattern.${be}`),q))continue;P.delete(G);let ze=B.localize(ce,R,{schema:Te.rule,key:G}),Ke=Te.rule.$_validate(pe,ze,q);if(Ke.errors){if(q.abortEarly)return{value:O,errors:Ke.errors};N.push(...Ke.errors)}if(Te.matches&&M[be].push(G),O[G]=Ke.value,!Te.fallthrough)break}}if(h)for(let G=0;G<M.length;++G){let pe=M[G];if(!pe)continue;let ce=S.$_terms.patterns[G].matches,be=B.localize(B.path,R,ce),Te=ce.$_validate(pe,be,q);if(Te.errors){let ze=v.details(Te.errors,{override:!1});ze.matches=pe;let Ke=S.$_createError("object.pattern.match",O,ze,B,q);if(q.abortEarly)return{value:O,errors:Ke};N.push(Ke)}}}
5if(P.size&&(S.$_terms.keys||S.$_terms.patterns)){if(q.stripUnknown&&S._flags.unknown===void 0||q.skipFunctions){let h=!(!q.stripUnknown||q.stripUnknown!==!0&&!q.stripUnknown.objects);for(let M of P)h?(delete O[M],P.delete(M)):typeof O[M]=="function"&&P.delete(M)}if(!p.default(S._flags.unknown,q.allowUnknown))for(let h of P){let M=B.localize([...B.path,h],[]),R=S.$_createError("object.unknown",O[h],{child:h},M,q,{flags:!1});if(q.abortEarly)return{value:O,errors:R};N.push(R)}}},b.Dependency=class{constructor(S,O,P,N,B){this.rel=S,this.key=O,this.peers=P,this.paths=N,this.options=B}describe(){let S={rel:this.rel,peers:this.paths};return this.key!==null&&(S.key=this.key.key),this.peers[0].separator!=="."&&(S.options={...S.options,separator:this.peers[0].separator}),this.options.isPresent&&(S.options={...S.options,isPresent:this.options.isPresent}),S}},b.Keys=class extends Array{concat(S){let O=this.slice(),P=new Map;for(let N=0;N<O.length;++N)P.set(O[N].key,N);for(let N of S){let B=N.key,q=P.get(B);q!==void 0?O[q]={key:B,schema:O[q].schema.concat(N.schema)}:O.push(N)}return O}}},8785:(t,i,s)=>{"use strict";let n=s(375),a=s(8068),c=s(8160),d=s(3292),o=s(6354),p={};t.exports=a.extend({type:"link",properties:{schemaChain:!0},terms:{link:{init:null,manifest:"single",register:!1}},args:(g,v)=>g.ref(v),validate(g,{schema:v,state:m,prefs:w}){n(v.$_terms.link,"Uninitialized link schema");let b=p.generate(v,g,m,w),S=v.$_terms.link[0].ref;return b.$_validate(g,m.nest(b,`link:${S.display}:${b.type}`),w)},generate:(g,v,m,w)=>p.generate(g,v,m,w),rules:{ref:{method(g){n(!this.$_terms.link,"Cannot reinitialize schema"),g=d.ref(g),n(g.type==="value"||g.type==="local","Invalid reference type:",g.type),n(g.type==="local"||g.ancestor==="root"||g.ancestor>0,"Link cannot reference itself");let v=this.clone();return v.$_terms.link=[{ref:g}],v}},relative:{method(g=!0){return this.$_setFlag("relative",g)}}},overrides:{concat(g){n(this.$_terms.link,"Uninitialized link schema"),n(c.isSchema(g),"Invalid schema object"),n(g.type!=="link","Cannot merge type link with another link");let v=this.clone();return v.$_terms.whens||(v.$_terms.whens=[]),v.$_terms.whens.push({concat:g}),v.$_mutateRebuild()}},manifest:{build:(g,v)=>(n(v.link,"Invalid link description missing link"),g.ref(v.link))}}),p.generate=function(g,v,m,w){let b=m.mainstay.links.get(g);if(b)return b._generate(v,m,w).schema;let S=g.$_terms.link[0].ref,{perspective:O,path:P}=p.perspective(S,m);p.assert(O,"which is outside of schema boundaries",S,g,m,w);try{b=P.length?O.$_reach(P):O}catch{p.assert(!1,"to non-existing schema",S,g,m,w)}return p.assert(b.type!=="link","which is another link",S,g,m,w),g._flags.relative||m.mainstay.links.set(g,b),b._generate(v,m,w).schema},p.perspective=function(g,v){if(g.type==="local"){for(let{schema:m,key:w}of v.schemas){if((m._flags.id||w)===g.path[0])return{perspective:m,path:g.path.slice(1)};if(m.$_terms.shared){for(let b of m.$_terms.shared)if(b._flags.id===g.path[0])return{perspective:b,path:g.path.slice(1)}}}return{perspective:null,path:null}}return g.ancestor==="root"?{perspective:v.schemas[v.schemas.length-1].schema,path:g.path}:{perspective:v.schemas[g.ancestor]&&v.schemas[g.ancestor].schema,path:g.path}},p.assert=function(g,v,m,w,b,S){g||n(!1,`"${o.label(w._flags,b,S)}" contains link reference "${m.display}" ${v}`)}},3832:(t,i,s)=>{"use strict";let n=s(375),a=s(8068),c=s(8160),d={numberRx:/^\s*[+-]?(?:(?:\d+(?:\.\d*)?)|(?:\.\d+))(?:e([+-]?\d+))?\s*$/i,precisionRx:/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/,exponentialPartRegex:/[eE][+-]?\d+$/,leadingSignAndZerosRegex:/^[+-]?(0*)?/,dotRegex:/\./,trailingZerosRegex:/0+$/,decimalPlaces(o){let p=o.toString(),g=p.indexOf("."),v=p.indexOf("e");return(g<0?0:(v<0?p.length:v)-g-1)+(v<0?0:Math.max(0,-parseInt(p.slice(v+1))))}};t.exports=a.extend({type:"number",flags:{unsafe:{default:!1}},coerce:{from:"string",method(o,{schema:p,error:g}){if(!o.match(d.numberRx))return;o=o.trim();let v={value:parseFloat(o)};if(v.value===0&&(v.value=0),!p._flags.unsafe)if(o.match(/e/i)){if(d.extractSignificantDigits(o)!==d.extractSignificantDigits(String(v.value)))return v.errors=g("number.unsafe"),v}else{let m=v.value.toString();if(m.match(/e/i))return v;if(m!==d.normalizeDecimal(o))return v.errors=g("number.unsafe"),v}return v}},validate(o,{schema:p,error:g,prefs:v}){if(o===1/0||o===-1/0)return{value:o,errors:g("number.infinity")};if(!c.isNumber(o))return{value:o,errors:g("number.base")};let m={value:o};if(v.convert){let w=p.$_getRule("precision");if(w){let b=Math.pow(10,w.args.limit);m.value=Math.round(m.value*b)/b}}return m.value===0&&(m.value=0),!p._flags.unsafe&&(o>Number.MAX_SAFE_INTEGER||o<Number.MIN_SAFE_INTEGER)&&(m.errors=g("number.unsafe")),m},rules:{compare:{method:!1,validate:(o,p,{limit:g},{name:v,operator:m,args:w})=>c.compare(o,g,m)?o:p.error("number."+v,{limit:w.limit,value:o}),args:[{name:"limit",ref:!0,assert:c.isNumber,message:"must be a number"}]},greater:{method(o){return this.$_addRule({name:"greater",method:"compare",args:{limit:o},operator:">"})}},integer:{method(){return this.$_addRule("integer")},validate:(o,p)=>Math.trunc(o)-o==0?o:p.error("number.integer")},less:{method(o){return this.$_addRule({name:"less",method:"compare",args:{limit:o},operator:"<"})}},max:{method(o){return this.$_addRule({name:"max",method:"compare",args:{limit:o},operator:"<="})}},min:{method(o){return this.$_addRule({name:"min",method:"compare",args:{limit:o},operator:">="})}},multiple:{method(o){let p=typeof o=="number"?d.decimalPlaces(o):null,g=Math.pow(10,p);return this.$_addRule({name:"multiple",args:{base:o,baseDecimalPlace:p,pfactor:g}})},validate:(o,p,{base:g,baseDecimalPlace:v,pfactor:m},w)=>d.decimalPlaces(o)>v?p.error("number.multiple",{multiple:w.args.base,value:o}):Math.round(m*o)%Math.round(m*g)==0?o:p.error("number.multiple",{multiple:w.args.base,value:o}),args:[{name:"base",ref:!0,assert:o=>typeof o=="number"&&isFinite(o)&&o>0,message:"must be a positive number"},"baseDecimalPlace","pfactor"],multi:!0},negative:{method(){return this.sign("negative")}},port:{method(){return this.$_addRule("port")},validate:(o,p)=>Number.isSafeInteger(o)&&o>=0&&o<=65535?o:p.error("number.port")},positive:{method(){return this.sign("positive")}},precision:{method(o){return n(Number.isSafeInteger(o),"limit must be an integer"),this.$_addRule({name:"precision",args:{limit:o}})},validate(o,p,{limit:g}){let v=o.toString().match(d.precisionRx);return Math.max((v[1]?v[1].length:0)-(v[2]?parseInt(v[2],10):0),0)<=g?o:p.error("number.precision",{limit:g,value:o})},convert:!0},sign:{method(o){return n(["negative","positive"].includes(o),"Invalid sign",o),this.$_addRule({name:"sign",args:{sign:o}})},validate:(o,p,{sign:g})=>g==="negative"&&o<0||g==="positive"&&o>0?o:p.error(`number.${g}`)},unsafe:{method(o=!0){return n(typeof o=="boolean","enabled must be a boolean"),this.$_setFlag("unsafe",o)}}},cast:{string:{from:o=>typeof o=="number",to:(o,p)=>o.toString()}},messages:{"number.base":"{{#label}} must be a number","number.greater":"{{#label}} must be greater than {{#limit}}","number.infinity":"{{#label}} cannot be infinity","number.integer":"{{#label}} must be an integer","number.less":"{{#label}} must be less than {{#limit}}","number.max":"{{#label}} must be less than or equal to {{#limit}}","number.min":"{{#label}} must be greater than or equal to {{#limit}}","number.multiple":"{{#label}} must be a multiple of {{#multiple}}","number.negative":"{{#label}} must be a negative number","number.port":"{{#label}} must be a valid port","number.positive":"{{#label}} must be a positive number","number.precision":"{{#label}} must have no more than {{#limit}} decimal places","number.unsafe":"{{#label}} must be a safe number"}}),d.extractSignificantDigits=function(o){return o.replace(d.exponentialPartRegex,"").replace(d.dotRegex,"").replace(d.trailingZerosRegex,"").replace(d.leadingSignAndZerosRegex,"")},d.normalizeDecimal=function(o){return(o=o.replace(/^\+/,"").replace(/\.0*$/,"").replace(/^(-?)\.([^\.]*)$/,"$10.$2").replace(/^(-?)0+([0-9])/,"$1$2")).includes(".")&&o.endsWith("0")&&(o=o.replace(/0+$/,"")),o==="-0"?"0":o}},8966:(t,i,s)=>{"use strict";let n=s(7824);t.exports=n.extend({type:"object",cast:{map:{from:a=>a&&typeof a=="object",to:(a,c)=>new Map(Object.entries(a))}}})},7417:(t,i,s)=>{"use strict";let n=s(375),a=s(5380),c=s(1745),d=s(9959),o=s(6064),p=s(9926),g=s(5752),v=s(8068),m=s(8160),w={tlds:p instanceof Set&&{tlds:{allow:p,deny:null}},base64Regex:{true:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}==|[\w\-]{3}=)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/},false:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}(==)?|[\w\-]{3}=?)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}(==)?|[A-Za-z0-9+\/]{3}=?)?$/}},dataUriRegex:/^data:[\w+.-]+\/[\w+.-]+;((charset=[\w-]+|base64),)?(.*)$/,hexRegex:{withPrefix:/^0x[0-9a-f]+$/i,withOptionalPrefix:/^(?:0x)?[0-9a-f]+$/i,withoutPrefix:/^[0-9a-f]+$/i},ipRegex:d.regex({cidr:"forbidden"}).regex,isoDurationRegex:/^P(?!$)(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?$/,guidBrackets:{"{":"}","[":"]","(":")","":""},guidVersions:{uuidv1:"1",uuidv2:"2",uuidv3:"3",uuidv4:"4",uuidv5:"5",uuidv6:"6",uuidv7:"7",uuidv8:"8"},guidSeparators:new Set([void 0,!0,!1,"-",":"]),normalizationForms:["NFC","NFD","NFKC","NFKD"]};t.exports=v.extend({type:"string",flags:{insensitive:{default:!1},truncate:{default:!1}},terms:{replacements:{init:null}},coerce:{from:"string",method(b,{schema:S,state:O,prefs:P}){let N=S.$_getRule("normalize");N&&(b=b.normalize(N.args.form));let B=S.$_getRule("case");B&&(b=B.args.direction==="upper"?b.toLocaleUpperCase():b.toLocaleLowerCase());let q=S.$_getRule("trim");if(q&&q.args.enabled&&(b=b.trim()),S.$_terms.replacements)for(let M of S.$_terms.replacements)b=b.replace(M.pattern,M.replacement);let h=S.$_getRule("hex");
5if(h&&h.args.options.byteAligned&&b.length%2!=0&&(b=`0${b}`),S.$_getRule("isoDate")){let M=w.isoDate(b);M&&(b=M)}if(S._flags.truncate){let M=S.$_getRule("max");if(M){let R=M.args.limit;if(m.isResolvable(R)&&(R=R.resolve(b,O,P),!m.limit(R)))return{value:b,errors:S.$_createError("any.ref",R,{ref:M.args.limit,arg:"limit",reason:"must be a positive integer"},O,P)};b=b.slice(0,R)}}return{value:b}}},validate(b,{schema:S,error:O}){if(typeof b!="string")return{value:b,errors:O("string.base")};if(b===""){let P=S.$_getRule("min");return P&&P.args.limit===0?void 0:{value:b,errors:O("string.empty")}}},rules:{alphanum:{method(){return this.$_addRule("alphanum")},validate:(b,S)=>/^[a-zA-Z0-9]+$/.test(b)?b:S.error("string.alphanum")},base64:{method(b={}){return m.assertOptions(b,["paddingRequired","urlSafe"]),b={urlSafe:!1,paddingRequired:!0,...b},n(typeof b.paddingRequired=="boolean","paddingRequired must be boolean"),n(typeof b.urlSafe=="boolean","urlSafe must be boolean"),this.$_addRule({name:"base64",args:{options:b}})},validate:(b,S,{options:O})=>w.base64Regex[O.paddingRequired][O.urlSafe].test(b)?b:S.error("string.base64")},case:{method(b){return n(["lower","upper"].includes(b),"Invalid case:",b),this.$_addRule({name:"case",args:{direction:b}})},validate:(b,S,{direction:O})=>O==="lower"&&b===b.toLocaleLowerCase()||O==="upper"&&b===b.toLocaleUpperCase()?b:S.error(`string.${O}case`),convert:!0},creditCard:{method(){return this.$_addRule("creditCard")},validate(b,S){let O=b.length,P=0,N=1;for(;O--;){let B=b.charAt(O)*N;P+=B-9*(B>9),N^=3}return P>0&&P%10==0?b:S.error("string.creditCard")}},dataUri:{method(b={}){return m.assertOptions(b,["paddingRequired"]),b={paddingRequired:!0,...b},n(typeof b.paddingRequired=="boolean","paddingRequired must be boolean"),this.$_addRule({name:"dataUri",args:{options:b}})},validate(b,S,{options:O}){let P=b.match(w.dataUriRegex);return P&&(!P[2]||P[2]!=="base64"||w.base64Regex[O.paddingRequired].false.test(P[3]))?b:S.error("string.dataUri")}},domain:{method(b){b&&m.assertOptions(b,["allowFullyQualified","allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);let S=w.addressOptions(b);return this.$_addRule({name:"domain",args:{options:b},address:S})},validate:(b,S,O,{address:P})=>a.isValid(b,P)?b:S.error("string.domain")},email:{method(b={}){m.assertOptions(b,["allowFullyQualified","allowUnicode","ignoreLength","maxDomainSegments","minDomainSegments","multiple","separator","tlds"]),n(b.multiple===void 0||typeof b.multiple=="boolean","multiple option must be an boolean");let S=w.addressOptions(b),O=new RegExp(`\\s*[${b.separator?o(b.separator):","}]\\s*`);return this.$_addRule({name:"email",args:{options:b},regex:O,address:S})},validate(b,S,{options:O},{regex:P,address:N}){let B=O.multiple?b.split(P):[b],q=[];for(let h of B)c.isValid(h,N)||q.push(h);return q.length?S.error("string.email",{value:b,invalids:q}):b}},guid:{alias:"uuid",method(b={}){m.assertOptions(b,["version","separator"]);let S="";if(b.version){let N=[].concat(b.version);n(N.length>=1,"version must have at least 1 valid version specified");let B=new Set;for(let q=0;q<N.length;++q){let h=N[q];n(typeof h=="string","version at position "+q+" must be a string");let M=w.guidVersions[h.toLowerCase()];n(M,"version at position "+q+" must be one of "+Object.keys(w.guidVersions).join(", ")),n(!B.has(M),"version at position "+q+" must not be a duplicate"),S+=M,B.add(M)}}n(w.guidSeparators.has(b.separator),'separator must be one of true, false, "-", or ":"');let O=b.separator===void 0?"[:-]?":b.separator===!0?"[:-]":b.separator===!1?"[]?":`\\${b.separator}`,P=new RegExp(`^([\\[{\\(]?)[0-9A-F]{8}(${O})[0-9A-F]{4}\\2?[${S||"0-9A-F"}][0-9A-F]{3}\\2?[${S?"89AB":"0-9A-F"}][0-9A-F]{3}\\2?[0-9A-F]{12}([\\]}\\)]?)$`,"i");return this.$_addRule({name:"guid",args:{options:b},regex:P})},validate(b,S,O,{regex:P}){let N=P.exec(b);return N?w.guidBrackets[N[1]]!==N[N.length-1]?S.error("string.guid"):b:S.error("string.guid")}},hex:{method(b={}){return m.assertOptions(b,["byteAligned","prefix"]),b={byteAligned:!1,prefix:!1,...b},n(typeof b.byteAligned=="boolean","byteAligned must be boolean"),n(typeof b.prefix=="boolean"||b.prefix==="optional",'prefix must be boolean or "optional"'),this.$_addRule({name:"hex",args:{options:b}})},validate:(b,S,{options:O})=>(O.prefix==="optional"?w.hexRegex.withOptionalPrefix:O.prefix===!0?w.hexRegex.withPrefix:w.hexRegex.withoutPrefix).test(b)?O.byteAligned&&b.length%2!=0?S.error("string.hexAlign"):b:S.error("string.hex")},hostname:{method(){return this.$_addRule("hostname")},validate:(b,S)=>a.isValid(b,{minDomainSegments:1})||w.ipRegex.test(b)?b:S.error("string.hostname")},insensitive:{method(){return this.$_setFlag("insensitive",!0)}},ip:{method(b={}
5){m.assertOptions(b,["cidr","version"]);let{cidr:S,versions:O,regex:P}=d.regex(b),N=b.version?O:void 0;return this.$_addRule({name:"ip",args:{options:{cidr:S,version:N}},regex:P})},validate:(b,S,{options:O},{regex:P})=>P.test(b)?b:O.version?S.error("string.ipVersion",{value:b,cidr:O.cidr,version:O.version}):S.error("string.ip",{value:b,cidr:O.cidr})},isoDate:{method(){return this.$_addRule("isoDate")},validate:(b,{error:S})=>w.isoDate(b)?b:S("string.isoDate")},isoDuration:{method(){return this.$_addRule("isoDuration")},validate:(b,S)=>w.isoDurationRegex.test(b)?b:S.error("string.isoDuration")},length:{method(b,S){return w.length(this,"length",b,"=",S)},validate(b,S,{limit:O,encoding:P},{name:N,operator:B,args:q}){let h=!P&&b.length;return m.compare(h,O,B)?b:S.error("string."+N,{limit:q.limit,value:b,encoding:P})},args:[{name:"limit",ref:!0,assert:m.limit,message:"must be a positive integer"},"encoding"]},lowercase:{method(){return this.case("lower")}},max:{method(b,S){return w.length(this,"max",b,"<=",S)},args:["limit","encoding"]},min:{method(b,S){return w.length(this,"min",b,">=",S)},args:["limit","encoding"]},normalize:{method(b="NFC"){return n(w.normalizationForms.includes(b),"normalization form must be one of "+w.normalizationForms.join(", ")),this.$_addRule({name:"normalize",args:{form:b}})},validate:(b,{error:S},{form:O})=>b===b.normalize(O)?b:S("string.normalize",{value:b,form:O}),convert:!0},pattern:{alias:"regex",method(b,S={}){n(b instanceof RegExp,"regex must be a RegExp"),n(!b.flags.includes("g")&&!b.flags.includes("y"),"regex should not use global or sticky mode"),typeof S=="string"&&(S={name:S}),m.assertOptions(S,["invert","name"]);let O=["string.pattern",S.invert?".invert":"",S.name?".name":".base"].join("");return this.$_addRule({name:"pattern",args:{regex:b,options:S},errorCode:O})},validate:(b,S,{regex:O,options:P},{errorCode:N})=>O.test(b)^P.invert?b:S.error(N,{name:P.name,regex:O,value:b}),args:["regex","options"],multi:!0},replace:{method(b,S){typeof b=="string"&&(b=new RegExp(o(b),"g")),n(b instanceof RegExp,"pattern must be a RegExp"),n(typeof S=="string","replacement must be a String");let O=this.clone();return O.$_terms.replacements||(O.$_terms.replacements=[]),O.$_terms.replacements.push({pattern:b,replacement:S}),O}},token:{method(){return this.$_addRule("token")},validate:(b,S)=>/^\w+$/.test(b)?b:S.error("string.token")},trim:{method(b=!0){return n(typeof b=="boolean","enabled must be a boolean"),this.$_addRule({name:"trim",args:{enabled:b}})},validate:(b,S,{enabled:O})=>O&&b!==b.trim()?S.error("string.trim"):b,convert:!0},truncate:{method(b=!0){return n(typeof b=="boolean","enabled must be a boolean"),this.$_setFlag("truncate",b)}},uppercase:{method(){return this.case("upper")}},uri:{method(b={}){m.assertOptions(b,["allowRelative","allowQuerySquareBrackets","domain","relativeOnly","scheme","encodeUri"]),b.domain&&m.assertOptions(b.domain,["allowFullyQualified","allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);let{regex:S,scheme:O}=g.regex(b),P=b.domain?w.addressOptions(b.domain):null;return this.$_addRule({name:"uri",args:{options:b},regex:S,domain:P,scheme:O})},validate(b,S,{options:O},{regex:P,domain:N,scheme:B}){if(["http:/","https:/"].includes(b))return S.error("string.uri");let q=P.exec(b);if(!q&&S.prefs.convert&&O.encodeUri){let h=encodeURI(b);q=P.exec(h),q&&(b=h)}if(q){let h=q[1]||q[2];return!N||O.allowRelative&&!h||a.isValid(h,N)?b:S.error("string.domain",{value:h})}return O.relativeOnly?S.error("string.uriRelativeOnly"):O.scheme?S.error("string.uriCustomScheme",{scheme:B,value:b}):S.error("string.uri")}}},manifest:{build(b,S){if(S.replacements)for(let{pattern:O,replacement:P}of S.replacements)b=b.replace(O,P);return b}},messages:{"string.alphanum":"{{#label}} must only contain alpha-numeric characters","string.base":"{{#label}} must be a string","string.base64":"{{#label}} must be a valid base64 string","string.creditCard":"{{#label}} must be a credit card","string.dataUri":"{{#label}} must be a valid dataUri string","string.domain":"{{#label}} must contain a valid domain name","string.email":"{{#label}} must be a valid email","string.empty":"{{#label}} is not allowed to be empty","string.guid":"{{#label}} must be a valid GUID","string.hex":"{{#label}} must only contain hexadecimal characters","string.hexAlign":"{{#label}} hex decoded representation must be byte aligned","string.hostname":"{{#label}} must be a valid hostname","string.ip":"{{#label}} must be a valid ip address with a {{#cidr}} CIDR","string.ipVersion":"{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR","string.isoDate":"{{#label}} must be in iso format","string.isoDuration":"{{#label}} must be a valid ISO 8601 duration","string.length":"{{#label}} length must be {{#limit}} characters long","string.lowercase":"{{#label}} must only contain lowercase characters","string.max":"{{#label}} length must be less than or equal to {{#limit}} characters long","string.min":"{{#label}} length must be at least {{#limit}} characters long","string.normalize":"{{#label}} must be unicode normalized in the {{#form}} form","string.token":"{{#label}} must only contain alpha-numeric and underscore characters","string.pattern.base":"{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}","string.pattern.name":"{{#label}} with value {:[.]} fails to match the {{#name}} pattern","string.pattern.invert.base":"{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}","string.pattern.invert.name":"{{#label}} with value {:[.]} matches the inverted {{#name}} pattern","string.trim":"{{#label}} must not have leading or trailing whitespace","string.uri":"{{#label}} must be a valid uri","string.uriCustomScheme":"{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern","string.uriRelativeOnly":"{{#label}} must be a valid relative uri","string.uppercase":"{{#label}} must only contain uppercase characters"}}),w.addressOptions=function(b){if(!b)return w.tlds||b;if(n(b.minDomainSegments===void 0||Number.isSafeInteger(b.minDomainSegments)&&b.minDomainSegments>0,"minDomainSegments must be a positive integer"),n(b.maxDomainSegments===void 0||Number.isSafeInteger(b.maxDomainSegments)&&b.maxDomainSegments>0,"maxDomainSegments must be a positive integer"),b.tlds===!1)return b;if(b.tlds===!0||b.tlds===void 0)return n(w.tlds,"Built-in TLD list disabled"),Object.assign({},b,w.tlds);n(typeof b.tlds=="object","tlds must be true, false, or an object");let S=b.tlds.deny;if(S)return Array.isArray(S)&&(b=Object.assign({},b,{tlds:{deny:new Set(S)}})),n(b.tlds.deny instanceof Set,"tlds.deny must be an array, Set, or boolean"),n(!b.tlds.allow,"Cannot specify both tlds.allow and tlds.deny lists"),w.validateTlds(b.tlds.deny,"tlds.deny"),b;let O=b.tlds.allow;return O?O===!0?(n(w.tlds,"Built-in TLD list disabled"),Object.assign({},b,w.tlds)):(Array.isArray(O)&&(b=Object.assign({},b,{tlds:{allow:new Set(O)}}
5)),n(b.tlds.allow instanceof Set,"tlds.allow must be an array, Set, or boolean"),w.validateTlds(b.tlds.allow,"tlds.allow"),b):b},w.validateTlds=function(b,S){for(let O of b)n(a.isValid(O,{minDomainSegments:1,maxDomainSegments:1}),`${S} must contain valid top level domain names`)},w.isoDate=function(b){if(!m.isIsoDate(b))return null;/.*T.*[+-]\d\d$/.test(b)&&(b+="00");let S=new Date(b);return isNaN(S.getTime())?null:S.toISOString()},w.length=function(b,S,O,P,N){return n(!N||!1,"Invalid encoding:",N),b.$_addRule({name:S,method:"length",args:{limit:O,encoding:N},operator:P})}},8826:(t,i,s)=>{"use strict";let n=s(375),a=s(8068),c={};c.Map=class extends Map{slice(){return new c.Map(this)}},t.exports=a.extend({type:"symbol",terms:{map:{init:new c.Map}},coerce:{method(d,{schema:o,error:p}){let g=o.$_terms.map.get(d);return g&&(d=g),o._flags.only&&typeof d!="symbol"?{value:d,errors:p("symbol.map",{map:o.$_terms.map})}:{value:d}}},validate(d,{error:o}){if(typeof d!="symbol")return{value:d,errors:o("symbol.base")}},rules:{map:{method(d){d&&!d[Symbol.iterator]&&typeof d=="object"&&(d=Object.entries(d)),n(d&&d[Symbol.iterator],"Iterable must be an iterable or object");let o=this.clone(),p=[];for(let g of d){n(g&&g[Symbol.iterator],"Entry must be an iterable");let[v,m]=g;n(typeof v!="object"&&typeof v!="function"&&typeof v!="symbol","Key must not be of type object, function, or Symbol"),n(typeof m=="symbol","Value must be a Symbol"),o.$_terms.map.set(v,m),p.push(m)}return o.valid(...p)}}},manifest:{build:(d,o)=>(o.map&&(d=d.map(o.map)),d)},messages:{"symbol.base":"{{#label}} must be a symbol","symbol.map":"{{#label}} must be one of {{#map}}"}})},8863:(t,i,s)=>{"use strict";let n=s(375),a=s(8571),c=s(738),d=s(9621),o=s(8160),p=s(6354),g=s(493),v={result:Symbol("result")};i.entry=function(m,w,b){let S=o.defaults;b&&(n(b.warnings===void 0,"Cannot override warnings preference in synchronous validation"),n(b.artifacts===void 0,"Cannot override artifacts preference in synchronous validation"),S=o.preferences(o.defaults,b));let O=v.entry(m,w,S);n(!O.mainstay.externals.length,"Schema with external rules must use validateAsync()");let P={value:O.value};return O.error&&(P.error=O.error),O.mainstay.warnings.length&&(P.warning=p.details(O.mainstay.warnings)),O.mainstay.debug&&(P.debug=O.mainstay.debug),O.mainstay.artifacts&&(P.artifacts=O.mainstay.artifacts),P},i.entryAsync=async function(m,w,b){let S=o.defaults;b&&(S=o.preferences(o.defaults,b));let O=v.entry(m,w,S),P=O.mainstay;if(O.error)throw P.debug&&(O.error.debug=P.debug),O.error;if(P.externals.length){let B=O.value,q=[];for(let h of P.externals){let M=h.state.path,R=h.schema.type==="link"?P.links.get(h.schema):null,G,pe,ce=B,be=M.length?[B]:[],Te=M.length?d(m,M):m;if(M.length){G=M[M.length-1];let ze=B;for(let Ke of M.slice(0,-1))ze=ze[Ke],be.unshift(ze);pe=be[0],ce=pe[G]}try{let ze=l((tt,bt)=>(R||h.schema).$_createError(tt,ce,bt,h.state,S),"e"),Ke=await h.method(ce,{schema:h.schema,linked:R,state:h.state,prefs:b,original:Te,error:ze,errorsArray:v.errorsArray,warn:(tt,bt)=>P.warnings.push((R||h.schema).$_createError(tt,ce,bt,h.state,S)),message:(tt,bt)=>(R||h.schema).$_createError("external",ce,bt,h.state,S,{messages:tt})});if(Ke===void 0||Ke===ce)continue;if(Ke instanceof p.Report){if(P.tracer.log(h.schema,h.state,"rule","external","error"),q.push(Ke),S.abortEarly)break;continue}if(Array.isArray(Ke)&&Ke[o.symbols.errors]){if(P.tracer.log(h.schema,h.state,"rule","external","error"),q.push(...Ke),S.abortEarly)break;continue}pe?(P.tracer.value(h.state,"rule",ce,Ke,"external"),pe[G]=Ke):(P.tracer.value(h.state,"rule",B,Ke,"external"),B=Ke)}catch(ze){throw S.errors.label&&(ze.message+=` (${h.label})`),ze}}if(O.value=B,q.length)throw O.error=p.process(q,m,S),P.debug&&(O.error.debug=P.debug),O.error}if(!S.warnings&&!S.debug&&!S.artifacts)return O.value;let N={value:O.value};return P.warnings.length&&(N.warning=p.details(P.warnings)),P.debug&&(N.debug=P.debug),P.artifacts&&(N.artifacts=P.artifacts),N},v.Mainstay=class{constructor(m,w,b){this.externals=[],this.warnings=[],this.tracer=m,this.debug=w,this.links=b,this.shadow=null,this.artifacts=null,this._snapshots=[]}snapshot(){this._snapshots.push({externals:this.externals.slice(),warnings:this.warnings.slice()})}restore(){let m=this._snapshots.pop();this.externals=m.externals,this.warnings=m.warnings}commit(){this._snapshots.pop()}},v.entry=function(m,w,b){let{tracer:S,cleanup:O}=v.tracer(w,b),P=b.debug?[]:null,N=w._ids._schemaChain?new Map:null,B=new v.Mainstay(S,P,N),q=w._ids._schemaChain?[{schema:w}]:null,h=new g([],[],{mainstay:B,schemas:q}),M=i.validate(m,w,h,b);O&&w.$_root.untrace();let R=p.process(M.errors,m,b);return{value:M.value,error:R,mainstay:B}},v.tracer=function(m,w){return m.$_root._tracer?{tracer:m.$_root._tracer._register(m)}:w.debug?(n(m.$_root.trace,"Debug mode not supported"),{tracer:m.$_root.trace()._register(m),cleanup:!0}
5):{tracer:v.ignore}},i.validate=function(m,w,b,S,O={}){if(w.$_terms.whens&&(w=w._generate(m,b,S).schema),w._preferences&&(S=v.prefs(w,S)),w._cache&&S.cache){let R=w._cache.get(m);if(b.mainstay.tracer.debug(b,"validate","cached",!!R),R)return R}let P=l((R,G,pe)=>w.$_createError(R,m,G,pe||b,S),"a"),N={original:m,prefs:S,schema:w,state:b,error:P,errorsArray:v.errorsArray,warn:(R,G,pe)=>b.mainstay.warnings.push(P(R,G,pe)),message:(R,G)=>w.$_createError("custom",m,G,b,S,{messages:R})};b.mainstay.tracer.entry(w,b);let B=w._definition;if(B.prepare&&m!==void 0&&S.convert){let R=B.prepare(m,N);if(R){if(b.mainstay.tracer.value(b,"prepare",m,R.value),R.errors)return v.finalize(R.value,[].concat(R.errors),N);m=R.value}}if(B.coerce&&m!==void 0&&S.convert&&(!B.coerce.from||B.coerce.from.includes(typeof m))){let R=B.coerce.method(m,N);if(R){if(b.mainstay.tracer.value(b,"coerced",m,R.value),R.errors)return v.finalize(R.value,[].concat(R.errors),N);m=R.value}}let q=w._flags.empty;q&&q.$_match(v.trim(m,w),b.nest(q),o.defaults)&&(b.mainstay.tracer.value(b,"empty",m,void 0),m=void 0);let h=O.presence||w._flags.presence||(w._flags._endedSwitch?null:S.presence);if(m===void 0){if(h==="forbidden")return v.finalize(m,null,N);if(h==="required")return v.finalize(m,[w.$_createError("any.required",m,null,b,S)],N);if(h==="optional"){if(w._flags.default!==o.symbols.deepDefault)return v.finalize(m,null,N);b.mainstay.tracer.value(b,"default",m,{}),m={}}}else if(h==="forbidden")return v.finalize(m,[w.$_createError("any.unknown",m,null,b,S)],N);let M=[];if(w._valids){let R=w._valids.get(m,b,S,w._flags.insensitive);if(R)return S.convert&&(b.mainstay.tracer.value(b,"valids",m,R.value),m=R.value),b.mainstay.tracer.filter(w,b,"valid",R),v.finalize(m,null,N);if(w._flags.only){let G=w.$_createError("any.only",m,{valids:w._valids.values({display:!0})},b,S);if(S.abortEarly)return v.finalize(m,[G],N);M.push(G)}}if(w._invalids){let R=w._invalids.get(m,b,S,w._flags.insensitive);if(R){b.mainstay.tracer.filter(w,b,"invalid",R);let G=w.$_createError("any.invalid",m,{invalids:w._invalids.values({display:!0})},b,S);if(S.abortEarly)return v.finalize(m,[G],N);M.push(G)}}if(B.validate){let R=B.validate(m,N);if(R&&(b.mainstay.tracer.value(b,"base",m,R.value),m=R.value,R.errors)){if(!Array.isArray(R.errors))return M.push(R.errors),v.finalize(m,M,N);if(R.errors.length)return M.push(...R.errors),v.finalize(m,M,N)}}return w._rules.length?v.rules(m,M,N):v.finalize(m,M,N)},v.rules=function(m,w,b){let{schema:S,state:O,prefs:P}=b;for(let N of S._rules){let B=S._definition.rules[N.method];if(B.convert&&P.convert){O.mainstay.tracer.log(S,O,"rule",N.name,"full");continue}let q,h=N.args;if(N._resolve.length){h=Object.assign({},h);for(let R of N._resolve){let G=B.argsByName.get(R),pe=h[R].resolve(m,O,P),ce=G.normalize?G.normalize(pe):pe,be=o.validateArg(ce,null,G);if(be){q=S.$_createError("any.ref",pe,{arg:R,ref:h[R],reason:be},O,P);break}h[R]=ce}}q=q||B.validate(m,b,h,N);let M=v.rule(q,N);if(M.errors){if(O.mainstay.tracer.log(S,O,"rule",N.name,"error"),N.warn){O.mainstay.warnings.push(...M.errors);continue}if(P.abortEarly)return v.finalize(m,M.errors,b);w.push(...M.errors)}else O.mainstay.tracer.log(S,O,"rule",N.name,"pass"),O.mainstay.tracer.value(O,"rule",m,M.value,N.name),m=M.value}return v.finalize(m,w,b)},v.rule=function(m,w){return m instanceof p.Report?(v.error(m,w),{errors:[m],value:null}):Array.isArray(m)&&m[o.symbols.errors]?(m.forEach(b=>v.error(b,w)),{errors:m,value:null}):{errors:null,value:m}},v.error=function(m,w){return w.message&&m._setTemplate(w.message),m},v.finalize=function(m,w,b){w=w||[];let{schema:S,state:O,prefs:P}=b;if(w.length){let B=v.default("failover",void 0,w,b);B!==void 0&&(O.mainstay.tracer.value(O,"failover",m,B),m=B,w=[])}if(w.length&&S._flags.error)if(typeof S._flags.error=="function"){w=S._flags.error(w),Array.isArray(w)||(w=[w]);for(let B of w)n(B instanceof Error||B instanceof p.Report,"error() must return an Error object")}else w=[S._flags.error];if(m===void 0){let B=v.default("default",m,w,b);O.mainstay.tracer.value(O,"default",m,B),m=B}if(S._flags.cast&&m!==void 0){let B=S._definition.cast[S._flags.cast];if(B.from(m)){let q=B.to(m,b);O.mainstay.tracer.value(O,"cast",m,q,S._flags.cast),m=q}}if(S.$_terms.externals&&P.externals&&P._externals!==!1)for(let{method:B}of S.$_terms.externals)O.mainstay.externals.push({method:B,schema:S,state:O,label:p.label(S._flags,O,P)});let N={value:m,errors:w.length?w:null};return S._flags.result&&(N.value=S._flags.result==="strip"?void 0:b.original,O.mainstay.tracer.value(O,S._flags.result,m,N.value),O.shadow(m,S._flags.result)),S._cache&&P.cache!==!1&&!S._refs.length&&S._cache.set(b.original,N),m===void 0||N.errors||S._flags.artifact===void 0||(O.mainstay.artifacts=O.mainstay.artifacts||new Map,O.mainstay.artifacts.has(S._flags.artifact)||O.mainstay.artifacts.set(S._flags.artifact,[]),O.mainstay.artifacts.get(S._flags.artifact).push(O.path)),N},v.prefs=function(m,w){let b=w===o.defaults;return b&&m._preferences[o.symbols.prefs]?m._preferences[o.symbols.prefs]:(w=o.preferences(w,m._preferences),b&&(m._preferences[o.symbols.prefs]=w),w)},v.default=function(m,w,b,S){let{schema:O,state:P,prefs:N}=S,B=O._flags[m];if(N.noDefaults||B===void 0)return w;if(P.mainstay.tracer.log(O,P,"rule",m,"full"),!B)return B;if(typeof B=="function"){let q=B.length?[a(P.ancestors[0]),S]:[];try{return B(...q)}catch(h){return void b.push(O.$_createError(`any.${m}`,null,{error:h},P,N))}}return typeof B!="object"?B:B[o.symbols.literal]?B.literal:o.isResolvable(B)?B.resolve(w,P,N):a(B)},v.trim=function(m,w){if(typeof m!="string")return m;let b=w.$_getRule("trim");return b&&b.args.enabled?m.trim():m},v.ignore={active:!1,debug:c,entry:c,filter:c,log:c,resolve:c,value:c},v.errorsArray=function(){let m=[];return m[o.symbols.errors]=!0,m}},2036:(t,i,s)=>{"use strict";let n=s(375),a=s(9474),c=s(8160),d={};t.exports=d.Values=class{constructor(o,p){this._values=new Set(o),this._refs=new Set(p),this._lowercase=
5d.lowercases(o),this._override=!1}get length(){return this._values.size+this._refs.size}add(o,p){c.isResolvable(o)?this._refs.has(o)||(this._refs.add(o),p&&p.register(o)):this.has(o,null,null,!1)||(this._values.add(o),typeof o=="string"&&this._lowercase.set(o.toLowerCase(),o))}static merge(o,p,g){if(o=o||new d.Values,p){if(p._override)return p.clone();for(let v of[...p._values,...p._refs])o.add(v)}if(g)for(let v of[...g._values,...g._refs])o.remove(v);return o.length?o:null}remove(o){c.isResolvable(o)?this._refs.delete(o):(this._values.delete(o),typeof o=="string"&&this._lowercase.delete(o.toLowerCase()))}has(o,p,g,v){return!!this.get(o,p,g,v)}get(o,p,g,v){if(!this.length)return!1;if(this._values.has(o))return{value:o};if(typeof o=="string"&&o&&v){let m=this._lowercase.get(o.toLowerCase());if(m)return{value:m}}if(!this._refs.size&&typeof o!="object")return!1;if(typeof o=="object"){for(let m of this._values)if(a(m,o))return{value:m}}if(p)for(let m of this._refs){let w=m.resolve(o,p,g,null,{in:!0});if(w===void 0)continue;let b=m.in&&typeof w=="object"?Array.isArray(w)?w:Object.keys(w):[w];for(let S of b)if(typeof S==typeof o){if(v&&o&&typeof o=="string"){if(S.toLowerCase()===o.toLowerCase())return{value:S,ref:m}}else if(a(S,o))return{value:S,ref:m}}}return!1}override(){this._override=!0}values(o){if(o&&o.display){let p=[];for(let g of[...this._values,...this._refs])g!==void 0&&p.push(g);return p}return Array.from([...this._values,...this._refs])}clone(){let o=new d.Values(this._values,this._refs);return o._override=this._override,o}concat(o){n(!o._override,"Cannot concat override set of values");let p=new d.Values([...this._values,...o._values],[...this._refs,...o._refs]);return p._override=this._override,p}describe(){let o=[];this._override&&o.push({override:!0});for(let p of this._values.values())o.push(p&&typeof p=="object"?{value:p}:p);for(let p of this._refs.values())o.push(p.describe());return o}},d.Values.prototype[c.symbols.values]=!0,d.Values.prototype.slice=d.Values.prototype.clone,d.lowercases=function(o){let p=new Map;if(o)for(let g of o)typeof g=="string"&&p.set(g.toLowerCase(),g);return p}},978:(t,i,s)=>{"use strict";let n=s(375),a=s(8571),c=s(1687),d=s(9621),o={};t.exports=function(p,g,v={}){if(n(p&&typeof p=="object","Invalid defaults value: must be an object"),n(!g||g===!0||typeof g=="object","Invalid source value: must be true, falsy or an object"),n(typeof v=="object","Invalid options: must be an object"),!g)return null;if(v.shallow)return o.applyToDefaultsWithShallow(p,g,v);let m=a(p);if(g===!0)return m;let w=v.nullOverride!==void 0&&v.nullOverride;return c(m,g,{nullOverride:w,mergeArrays:!1})},o.applyToDefaultsWithShallow=function(p,g,v){let m=v.shallow;n(Array.isArray(m),"Invalid keys");let w=new Map,b=g===!0?null:new Set;for(let P of m){P=Array.isArray(P)?P:P.split(".");let N=d(p,P);N&&typeof N=="object"?w.set(N,b&&d(g,P)||N):b&&b.add(P)}let S=a(p,{},w);if(!b)return S;for(let P of b)o.reachCopy(S,g,P);let O=v.nullOverride!==void 0&&v.nullOverride;return c(S,g,{nullOverride:O,mergeArrays:!1})},o.reachCopy=function(p,g,v){for(let b of v){if(!(b in g))return;let S=g[b];if(typeof S!="object"||S===null)return;g=S}let m=g,w=p;for(let b=0;b<v.length-1;++b){let S=v[b];typeof w[S]!="object"&&(w[S]={}),w=w[S]}w[v[v.length-1]]=m}},375:(t,i,s)=>{"use strict";let n=s(7916);t.exports=function(a,...c){if(!a)throw c.length===1&&c[0]instanceof Error?c[0]:new n(c)}},8571:(t,i,s)=>{"use strict";let n=s(9621),a=s(4277),c=s(7043),d={needsProtoHack:new Set([a.set,a.map,a.weakSet,a.weakMap])};t.exports=d.clone=function(o,p={},g=null){if(typeof o!="object"||o===null)return o;let v=d.clone,m=g;if(p.shallow){if(p.shallow!==!0)return d.cloneWithShallow(o,p);v=l(O=>O,"s")}else if(m){let O=m.get(o);if(O)return O}else m=new Map;let w=a.getInternalProto(o);if(w===a.buffer)return!1;if(w===a.date)return new Date(o.getTime());if(w===a.regex)return new RegExp(o);let b=d.base(o,w,p);if(b===o)return o;if(m&&m.set(o,b),w===a.set)for(let O of o)b.add(v(O,p,m));else if(w===a.map)for(let[O,P]of o)b.set(O,v(P,p,m));let S=c.keys(o,p);for(let O of S){if(O==="__proto__")continue;if(w===a.array&&O==="length"){b.length=o.length;continue}let P=Object.getOwnPropertyDescriptor(o,O);P?P.get||P.set?Object.defineProperty(b,O,P):P.enumerable?b[O]=v(o[O],p,m):Object.defineProperty(b,O,{enumerable:!1,writable:!0,configurable:!0,value:v(o[O],p,m)}):Object.defineProperty(b,O,{enumerable:!0,writable:!0,configurable:!0,value:v(o[O],p,m)})}return b},d.cloneWithShallow=function(o,p){let g=p.shallow;(p=Object.assign({},p)).shallow=!1;let v=new Map;for(let m of g){let w=n(o,m);typeof w!="object"&&typeof w!="function"||v.set(w,w)}return d.clone(o,p,v)},d.base=function(o,p,g){if(g.prototype===!1)return d.needsProtoHack.has(p)?new p.constructor:p===a.array?[]:{};
5let v=Object.getPrototypeOf(o);if(v&&v.isImmutable)return o;if(p===a.array){let m=[];return v!==p&&Object.setPrototypeOf(m,v),m}if(d.needsProtoHack.has(p)){let m=new v.constructor;return v!==p&&Object.setPrototypeOf(m,v),m}return Object.create(v)}},9474:(t,i,s)=>{"use strict";let n=s(4277),a={mismatched:null};t.exports=function(c,d,o){return o=Object.assign({prototype:!0},o),!!a.isDeepEqual(c,d,o,[])},a.isDeepEqual=function(c,d,o,p){if(c===d)return c!==0||1/c==1/d;let g=typeof c;if(g!==typeof d||c===null||d===null)return!1;if(g==="function"){if(!o.deepFunction||c.toString()!==d.toString())return!1}else if(g!=="object")return c!=c&&d!=d;let v=a.getSharedType(c,d,!!o.prototype);switch(v){case n.buffer:return!1;case n.promise:return c===d;case n.regex:return c.toString()===d.toString();case a.mismatched:return!1}for(let m=p.length-1;m>=0;--m)if(p[m].isSame(c,d))return!0;p.push(new a.SeenEntry(c,d));try{return!!a.isDeepEqualObj(v,c,d,o,p)}finally{p.pop()}},a.getSharedType=function(c,d,o){if(o)return Object.getPrototypeOf(c)!==Object.getPrototypeOf(d)?a.mismatched:n.getInternalProto(c);let p=n.getInternalProto(c);return p!==n.getInternalProto(d)?a.mismatched:p},a.valueOf=function(c){let d=c.valueOf;if(d===void 0)return c;try{return d.call(c)}catch(o){return o}},a.hasOwnEnumerableProperty=function(c,d){return Object.prototype.propertyIsEnumerable.call(c,d)},a.isSetSimpleEqual=function(c,d){for(let o of Set.prototype.values.call(c))if(!Set.prototype.has.call(d,o))return!1;return!0},a.isDeepEqualObj=function(c,d,o,p,g){let{isDeepEqual:v,valueOf:m,hasOwnEnumerableProperty:w}=a,{keys:b,getOwnPropertySymbols:S}=Object;if(c===n.array){if(!p.part){if(d.length!==o.length)return!1;for(let q=0;q<d.length;++q)if(!v(d[q],o[q],p,g))return!1;return!0}for(let q of d)for(let h of o)if(v(q,h,p,g))return!0}else if(c===n.set){if(d.size!==o.size)return!1;if(!a.isSetSimpleEqual(d,o)){let q=new Set(Set.prototype.values.call(o));for(let h of Set.prototype.values.call(d)){if(q.delete(h))continue;let M=!1;for(let R of q)if(v(h,R,p,g)){q.delete(R),M=!0;break}if(!M)return!1}}}else if(c===n.map){if(d.size!==o.size)return!1;for(let[q,h]of Map.prototype.entries.call(d))if(h===void 0&&!Map.prototype.has.call(o,q)||!v(h,Map.prototype.get.call(o,q),p,g))return!1}else if(c===n.error&&(d.name!==o.name||d.message!==o.message))return!1;let O=m(d),P=m(o);if((d!==O||o!==P)&&!v(O,P,p,g))return!1;let N=b(d);if(!p.part&&N.length!==b(o).length&&!p.skip)return!1;let B=0;for(let q of N)if(p.skip&&p.skip.includes(q))o[q]===void 0&&++B;else if(!w(o,q)||!v(d[q],o[q],p,g))return!1;if(!p.part&&N.length-B!==b(o).length)return!1;if(p.symbols!==!1){let q=S(d),h=new Set(S(o));for(let M of q){if(!p.skip||!p.skip.includes(M)){if(w(d,M)){if(!w(o,M)||!v(d[M],o[M],p,g))return!1}else if(w(o,M))return!1}h.delete(M)}for(let M of h)if(w(o,M))return!1}return!0},a.SeenEntry=class{constructor(c,d){this.obj=c,this.ref=d}isSame(c,d){return this.obj===c&&this.ref===d}}},7916:(t,i,s)=>{"use strict";let n=s(8761);t.exports=class extends Error{constructor(a){super(a.filter(c=>c!=="").map(c=>typeof c=="string"?c:c instanceof Error?c.message:n(c)).join(" ")||"Unknown error"),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,i.assert)}}},5277:t=>{"use strict";let i={};t.exports=function(s){if(!s)return"";let n="";for(let a=0;a<s.length;++a){let c=s.charCodeAt(a);i.isSafe(c)?n+=s[a]:n+=i.escapeHtmlChar(c)}return n},i.escapeHtmlChar=function(s){return i.namedHtml.get(s)||(s>=256?"&#"+s+";":`&#x${s.toString(16).padStart(2,"0")};`)},i.isSafe=function(s){return i.safeCharCodes.has(s)},i.namedHtml=new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[34,"&quot;"],[160,"&nbsp;"],[162,"&cent;"],[163,"&pound;"],[164,"&curren;"],[169,"&copy;"],[174,"&reg;"]]),i.safeCharCodes=function(){let s=new Set;for(let n=32;n<123;++n)(n>=97||n>=65&&n<=90||n>=48&&n<=57||n===32||n===46||n===44||n===45||n===58||n===95)&&s.add(n);return s}()},6064:t=>{"use strict";t.exports=function(i){return i.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,"\\$&")}},738:t=>{"use strict";t.exports=function(){}},1687:(t,i,s)=>{"use strict";let n=s(375),a=s(8571),c=s(7043),d={};t.exports=d.merge=function(o,p,g){if(n(o&&typeof o=="object","Invalid target value: must be an object"),n(p==null||typeof p=="object","Invalid source value: must be null, undefined, or an object"),!p)return o;if(g=Object.assign({nullOverride:!0,mergeArrays:!0},g),Array.isArray(p)){n(Array.isArray(o),"Cannot merge array onto an object"),g.mergeArrays||(o.length=0);for(let m=0;m<p.length;++m)o.push(a(p[m],{symbols:g.symbols}));return o}let v=c.keys(p,g);for(let m=0;m<v.length;++m){let w=v[m];if(w==="__proto__"||!Object.prototype.propertyIsEnumerable.call(p,w))continue;let b=p[w];if(b&&typeof b=="object"){if(o[w]===b)continue;!o[w]||typeof o[w]!="object"||Array.isArray(o[w])!==Array.isArray(b)||b instanceof Date||b instanceof RegExp?o[w]=a(b,{symbols:g.symbols}):d.merge(o[w],b,g)}else(b!=null||g.nullOverride)&&(o[w]=b)}return o}},9621:(t,i,s)=>{"use strict";let n=s(375),a={};t.exports=function(c,d,o){if(d===!1||d==null)return c;typeof(o=o||{})=="string"&&(o={separator:o});let p=Array.isArray(d);
5n(!p||!o.separator,"Separator option is not valid for array-based chain");let g=p?d:d.split(o.separator||"."),v=c;for(let m=0;m<g.length;++m){let w=g[m],b=o.iterables&&a.iterables(v);if(Array.isArray(v)||b==="set"){let S=Number(w);Number.isInteger(S)&&(w=S<0?v.length+S:S)}if(!v||typeof v=="function"&&o.functions===!1||!b&&v[w]===void 0){n(!o.strict||m+1===g.length,"Missing segment",w,"in reach path ",d),n(typeof v=="object"||o.functions===!0||typeof v!="function","Invalid segment",w,"in reach path ",d),v=o.default;break}v=b?b==="set"?[...v][w]:v.get(w):v[w]}return v},a.iterables=function(c){return c instanceof Set?"set":c instanceof Map?"map":void 0}},8761:t=>{"use strict";t.exports=function(...i){try{return JSON.stringify(...i)}catch(s){return"[Cannot display object: "+s.message+"]"}}},4277:(t,i)=>{"use strict";let s={};i=t.exports={array:Array.prototype,buffer:!1,date:Date.prototype,error:Error.prototype,generic:Object.prototype,map:Map.prototype,promise:Promise.prototype,regex:RegExp.prototype,set:Set.prototype,weakMap:WeakMap.prototype,weakSet:WeakSet.prototype},s.typeMap=new Map([["[object Error]",i.error],["[object Map]",i.map],["[object Promise]",i.promise],["[object Set]",i.set],["[object WeakMap]",i.weakMap],["[object WeakSet]",i.weakSet]]),i.getInternalProto=function(n){if(Array.isArray(n))return i.array;if(n instanceof Date)return i.date;if(n instanceof RegExp)return i.regex;if(n instanceof Error)return i.error;let a=Object.prototype.toString.call(n);return s.typeMap.get(a)||i.generic}},7043:(t,i)=>{"use strict";i.keys=function(s,n={}){return n.symbols!==!1?Reflect.ownKeys(s):Object.getOwnPropertyNames(s)}},3652:(t,i,s)=>{"use strict";let n=s(375),a={};i.Sorter=class{constructor(){this._items=[],this.nodes=[]}add(c,d){let o=[].concat((d=d||{}).before||[]),p=[].concat(d.after||[]),g=d.group||"?",v=d.sort||0;n(!o.includes(g),`Item cannot come before itself: ${g}`),n(!o.includes("?"),"Item cannot come before unassociated items"),n(!p.includes(g),`Item cannot come after itself: ${g}`),n(!p.includes("?"),"Item cannot come after unassociated items"),Array.isArray(c)||(c=[c]);for(let m of c){let w={seq:this._items.length,sort:v,before:o,after:p,group:g,node:m};this._items.push(w)}if(!d.manual){let m=this._sort();n(m,"item",g!=="?"?`added into group ${g}`:"","created a dependencies error")}return this.nodes}merge(c){Array.isArray(c)||(c=[c]);for(let o of c)if(o)for(let p of o._items)this._items.push(Object.assign({},p));this._items.sort(a.mergeSort);for(let o=0;o<this._items.length;++o)this._items[o].seq=o;let d=this._sort();return n(d,"merge created a dependencies error"),this.nodes}sort(){let c=this._sort();return n(c,"sort created a dependencies error"),this.nodes}_sort(){let c={},d=Object.create(null),o=Object.create(null);for(let w of this._items){let b=w.seq,S=w.group;o[S]=o[S]||[],o[S].push(b),c[b]=w.before;for(let O of w.after)d[O]=d[O]||[],d[O].push(b)}for(let w in c){let b=[];for(let S in c[w]){let O=c[w][S];o[O]=o[O]||[],b.push(...o[O])}c[w]=b}for(let w in d)if(o[w])for(let b of o[w])c[b].push(...d[w]);let p={};for(let w in c){let b=c[w];for(let S of b)p[S]=p[S]||[],p[S].push(w)}let g={},v=[];for(let w=0;w<this._items.length;++w){let b=w;if(p[w]){b=null;for(let S=0;S<this._items.length;++S){if(g[S]===!0)continue;p[S]||(p[S]=[]);let O=p[S].length,P=0;for(let N=0;N<O;++N)g[p[S][N]]&&++P;if(P===O){b=S;break}}}b!==null&&(g[b]=!0,v.push(b))}if(v.length!==this._items.length)return!1;let m={};for(let w of this._items)m[w.seq]=w;this._items=[],this.nodes=[];for(let w of v){let b=m[w];this.nodes.push(b.node),this._items.push(b)}return!0}},a.mergeSort=(c,d)=>c.sort===d.sort?0:c.sort<d.sort?-1:1}
5,5380:(t,i,s)=>{"use strict";let n=s(443),a=s(2178),c={minDomainSegments:2,nonAsciiRx:/[^\x00-\x7f]/,domainControlRx:/[\x00-\x20@\:\/\\#!\$&\'\(\)\*\+,;=\?]/,tldSegmentRx:/^[a-zA-Z](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,domainSegmentRx:/^[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,URL:n.URL||URL};i.analyze=function(d,o={}){if(!d)return a.code("DOMAIN_NON_EMPTY_STRING");if(typeof d!="string")throw new Error("Invalid input: domain must be a string");if(d.length>256)return a.code("DOMAIN_TOO_LONG");if(c.nonAsciiRx.test(d)){if(o.allowUnicode===!1)return a.code("DOMAIN_INVALID_UNICODE_CHARS");d=d.normalize("NFC")}if(c.domainControlRx.test(d))return a.code("DOMAIN_INVALID_CHARS");d=c.punycode(d),o.allowFullyQualified&&d[d.length-1]==="."&&(d=d.slice(0,-1));let p=o.minDomainSegments||c.minDomainSegments,g=d.split(".");if(g.length<p)return a.code("DOMAIN_SEGMENTS_COUNT");if(o.maxDomainSegments&&g.length>o.maxDomainSegments)return a.code("DOMAIN_SEGMENTS_COUNT_MAX");let v=o.tlds;if(v){let m=g[g.length-1].toLowerCase();if(v.deny&&v.deny.has(m)||v.allow&&!v.allow.has(m))return a.code("DOMAIN_FORBIDDEN_TLDS")}for(let m=0;m<g.length;++m){let w=g[m];if(!w.length)return a.code("DOMAIN_EMPTY_SEGMENT");if(w.length>63)return a.code("DOMAIN_LONG_SEGMENT");if(m<g.length-1){if(!c.domainSegmentRx.test(w))return a.code("DOMAIN_INVALID_CHARS")}else if(!c.tldSegmentRx.test(w))return a.code("DOMAIN_INVALID_TLDS_CHARS")}return null},i.isValid=function(d,o){return!i.analyze(d,o)},c.punycode=function(d){d.includes("%")&&(d=d.replace(/%/g,"%25"));try{return new c.URL(`http://${d}`).host}catch{return d}}},1745:(t,i,s)=>{"use strict";let n=s(9848),a=s(5380),c=s(2178),d={nonAsciiRx:/[^\x00-\x7f]/,encoder:new(n.TextEncoder||TextEncoder)};i.analyze=function(o,p){return d.email(o,p)},i.isValid=function(o,p){return!d.email(o,p)},d.email=function(o,p={}){if(typeof o!="string")throw new Error("Invalid input: email must be a string");if(!o)return c.code("EMPTY_STRING");let g=!d.nonAsciiRx.test(o);if(!g){if(p.allowUnicode===!1)return c.code("FORBIDDEN_UNICODE");o=o.normalize("NFC")}let v=o.split("@");if(v.length!==2)return v.length>2?c.code("MULTIPLE_AT_CHAR"):c.code("MISSING_AT_CHAR");let[m,w]=v;if(!m)return c.code("EMPTY_LOCAL");if(!p.ignoreLength){if(o.length>254)return c.code("ADDRESS_TOO_LONG");if(d.encoder.encode(m).length>64)return c.code("LOCAL_TOO_LONG")}return d.local(m,g)||a.analyze(w,p)},d.local=function(o,p){let g=o.split(".");for(let v of g){if(!v.length)return c.code("EMPTY_LOCAL_SEGMENT");if(p){if(!d.atextRx.test(v))return c.code("INVALID_LOCAL_CHARS")}else for(let m of v){if(d.atextRx.test(m))continue;let w=d.binary(m);if(!d.atomRx.test(w))return c.code("INVALID_LOCAL_CHARS")}}},d.binary=function(o){return Array.from(d.encoder.encode(o)).map(p=>String.fromCharCode(p)).join("")},d.atextRx=/^[\w!#\$%&'\*\+\-/=\?\^`\{\|\}~]+$/,d.atomRx=new RegExp(["(?:[\\xc2-\\xdf][\\x80-\\xbf])","(?:\\xe0[\\xa0-\\xbf][\\x80-\\xbf])|(?:[\\xe1-\\xec][\\x80-\\xbf]{2})|(?:\\xed[\\x80-\\x9f][\\x80-\\xbf])|(?:[\\xee-\\xef][\\x80-\\xbf]{2})","(?:\\xf0[\\x90-\\xbf][\\x80-\\xbf]{2})|(?:[\\xf1-\\xf3][\\x80-\\xbf]{3})|(?:\\xf4[\\x80-\\x8f][\\x80-\\xbf]{2})"].join("|"))},2178:(t,i)=>{"use strict";i.codes={EMPTY_STRING:"Address must be a non-empty string",FORBIDDEN_UNICODE:"Address contains forbidden Unicode characters",MULTIPLE_AT_CHAR:"Address cannot contain more than one @ character",MISSING_AT_CHAR:"Address must contain one @ 
5character",EMPTY_LOCAL:"Address local part cannot be empty",ADDRESS_TOO_LONG:"Address too long",LOCAL_TOO_LONG:"Address local part too long",EMPTY_LOCAL_SEGMENT:"Address local part contains empty dot-separated segment",INVALID_LOCAL_CHARS:"Address local part contains invalid character",DOMAIN_NON_EMPTY_STRING:"Domain must be a non-empty string",DOMAIN_TOO_LONG:"Domain too long",DOMAIN_INVALID_UNICODE_CHARS:"Domain contains forbidden Unicode characters",DOMAIN_INVALID_CHARS:"Domain contains invalid character",DOMAIN_INVALID_TLDS_CHARS:"Domain contains invalid tld character",DOMAIN_SEGMENTS_COUNT:"Domain lacks the minimum required number of segments",DOMAIN_SEGMENTS_COUNT_MAX:"Domain contains too many segments",DOMAIN_FORBIDDEN_TLDS:"Domain uses forbidden TLD",DOMAIN_EMPTY_SEGMENT:"Domain contains empty dot-separated segment",DOMAIN_LONG_SEGMENT:"Domain contains dot-separated segment that is too long"},i.code=function(s){return{code:s,error:i.codes[s]}}},9959:(t,i,s)=>{"use strict";let n=s(375),a=s(5752);i.regex=function(c={}){n(c.cidr===void 0||typeof c.cidr=="string","options.cidr must be a string");let d=c.cidr?c.cidr.toLowerCase():"optional";n(["required","optional","forbidden"].includes(d),"options.cidr must be one of required, optional, forbidden"),n(c.version===void 0||typeof c.version=="string"||Array.isArray(c.version),"options.version must be a string or an array of string");let o=c.version||["ipv4","ipv6","ipvfuture"];Array.isArray(o)||(o=[o]),n(o.length>=1,"options.version must have at least 1 version specified");for(let v=0;v<o.length;++v)n(typeof o[v]=="string","options.version must only contain strings"),o[v]=o[v].toLowerCase(),n(["ipv4","ipv6","ipvfuture"].includes(o[v]),"options.version contains unknown version "+o[v]+" - must be one of ipv4, ipv6, ipvfuture");o=Array.from(new Set(o));let p=`(?:${o.map(v=>{if(d==="forbidden")return a.ip[v];let m=`\\/${v==="ipv4"?a.ip.v4Cidr:a.ip.v6Cidr}`;return d==="required"?`${a.ip[v]}${m}`:`${a.ip[v]}(?:${m})?`}).join("|")})`,g=new RegExp(`^${p}$`);return{cidr:d,versions:o,regex:g,raw:p}}},5752:(t,i,s)=>{"use strict";let n=s(375),a=s(6064),c={generate:function(){let d={},o="\\dA-Fa-f",p="["+o+"]",g="\\w-\\.~",v="!\\$&'\\(\\)\\*\\+,;=",m="%"+o,w=g+m+v+":@",b="["+w+"]",S="(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";d.ipv4address="(?:"+S+"\\.){3}"+S;let O=p+"{1,4}",P="(?:"+O+":"+O+"|"+d.ipv4address+")",N="(?:"+O+":){6}"+P,B="::(?:"+O+":){5}"+P,q="(?:"+O+")?::(?:"+O+":){4}"+P,h="(?:(?:"+O+":){0,1}"+O+")?::(?:"+O+":){3}"+P,M="(?:(?:"+O+":){0,2}"+O+")?::(?:"+O+":){2}"+P,R="(?:(?:"+O+":){0,3}"+O+")?::"+O+":"+P,G="(?:(?:"+O+":){0,4}"+O+")?::"+P,pe="(?:(?:"+O+":){0,5}"+O+")?::"+O,ce="(?:(?:"+O+":){0,6}"+O+")?::";d.ipv4Cidr="(?:\\d|[1-2]\\d|3[0-2])",d.ipv6Cidr="(?:0{0,2}\\d|0?[1-9]\\d|1[01]\\d|12[0-8])",d.ipv6address="(?:"+N+"|"+B+"|"+q+"|"+h+"|"+M+"|"+R+"|"+G+"|"+pe+"|"+ce+")",d.ipvFuture="v"+p+"+\\.["+g+v+":]+",d.scheme="[a-zA-Z][a-zA-Z\\d+-\\.]*",d.schemeRegex=new RegExp(d.scheme);let be="["+g+m+v+":]*",Te="["+g+m+v+"]{1,255}",ze="(?:\\[(?:"+d.ipv6address+"|"+d.ipvFuture+")\\]|"+d.ipv4address+"|"+Te+")",Ke="(?:"+be+"@)?"+ze+"(?::\\d*)?",tt="(?:"+be+"@)?("+ze+")(?::\\d*)?",bt=b+"*",je=b+"+",Ze="(?:\\/"+bt+")*",ut="\\/(?:"+je+Ze+")?",qe=je+Ze,C="["+g+m+v+"@]+"+Ze,F="(?:\\/\\/\\/"+bt+Ze+")";return d.hierPart="(?:(?:\\/\\/"+Ke+Ze+")|"+ut+"|"+qe+"|"+F+")",d.hierPartCapture="(?:(?:\\/\\/"+tt+Ze+")|"+ut+"|"+qe+")",d.relativeRef="(?:(?:\\/\\/"+Ke+Ze+")|"+ut+"|"+C+"|)",d.relativeRefCapture="(?:(?:\\/\\/"+tt+Ze+")|"+ut+"|"+C+"|)",d.query="["+w+"\\/\\?]*(?=#|$)",d.queryWithSquareBrackets="["+w+"\\[\\]\\/\\?]*(?=#|$)",d.fragment="["+w+"\\/\\?]*",d}};c.rfc3986=c.generate(),i.ip={v4Cidr:c.rfc3986.ipv4Cidr,v6Cidr:c.rfc3986.ipv6Cidr,ipv4:c.rfc3986.ipv4address,ipv6:c.rfc3986.ipv6address,ipvfuture:c.rfc3986.ipvFuture},c.createRegex=function(d){let o=c.rfc3986,p="(?:\\?"+(d.allowQuerySquareBrackets?o.queryWithSquareBrackets:o.query)+")?(?:#"+o.fragment+")?",g=d.domain?o.relativeRefCapture:o.relativeRef;if(d.relativeOnly)return c.wrap(g+p);let v="";if(d.scheme){n(d.scheme instanceof RegExp||typeof d.scheme=="string"||Array.isArray(d.scheme),"scheme must be a RegExp, String, or Array");let b=[].concat(d.scheme);n(b.length>=1,"scheme must have at least 1 scheme specified");let S=[];for(let O=0;O<b.length;++O){let P=b[O];n(P instanceof RegExp||typeof P=="string","scheme at position "+O+" must be a RegExp or String"),P instanceof RegExp?S.push(P.source.toString()):(n(o.schemeRegex.test(P),"scheme at position "+O+" must be a valid scheme"),S.push(a(P)))}v=S.join("|")}let m="(?:"+(v?"(?:"+v+")":o.scheme)+":"+(d.domain?o.hierPartCapture:o.hierPart)+")",w=d.allowRelative?"(?:"+m+"|"+g+")":m;return c.wrap(w+p,v)}
5,c.wrap=function(d,o){return{raw:d=`(?=.)(?!https?:/(?:$|[^/]))(?!https?:///)(?!https?:[^/])${d}`,regex:new RegExp(`^${d}$`),scheme:o}},c.uriRegex=c.createRegex({}),i.regex=function(d={}){return d.scheme||d.allowRelative||d.relativeOnly||d.allowQuerySquareBrackets||d.domain?c.createRegex(d):c.uriRegex}},1447:(t,i)=>{"use strict";let s={operators:["!","^","*","/","%","+","-","<","<=",">",">=","==","!=","&&","||","??"],operatorCharacters:["!","^","*","/","%","+","-","<","=",">","&","|","?"],operatorsOrder:[["^"],["*","/","%"],["+","-"],["<","<=",">",">="],["==","!="],["&&"],["||","??"]],operatorsPrefix:["!","n"],literals:{'"':'"',"`":"`","'":"'","[":"]"},numberRx:/^(?:[0-9]*(\.[0-9]*)?){1}$/,tokenRx:/^[\w\$\#\.\@\:\{\}]+$/,symbol:Symbol("formula"),settings:Symbol("settings")};i.Parser=class{constructor(n,a={}){if(!a[s.settings]&&a.constants)for(let c in a.constants){let d=a.constants[c];if(d!==null&&!["boolean","number","string"].includes(typeof d))throw new Error(`Formula constant ${c} contains invalid ${typeof d} value type`)}this.settings=a[s.settings]?a:Object.assign({[s.settings]:!0,constants:{},functions:{}},a),this.single=null,this._parts=null,this._parse(n)}_parse(n){let a=[],c="",d=0,o=!1,p=l(v=>{if(d)throw new Error("Formula missing closing parenthesis");let m=a.length?a[a.length-1]:null;if(o||c||v){if(m&&m.type==="reference"&&v===")")return m.type="function",m.value=this._subFormula(c,m.value),void(c="");if(v===")"){let w=new i.Parser(c,this.settings);a.push({type:"segment",value:w})}else if(o){if(o==="]")return a.push({type:"reference",value:c}),void(c="");a.push({type:"literal",value:c})}else if(s.operatorCharacters.includes(c))m&&m.type==="operator"&&s.operators.includes(m.value+c)?m.value+=c:a.push({type:"operator",value:c});else if(c.match(s.numberRx))a.push({type:"constant",value:parseFloat(c)});else if(this.settings.constants[c]!==void 0)a.push({type:"constant",value:this.settings.constants[c]});else{if(!c.match(s.tokenRx))throw new Error(`Formula contains invalid token: ${c}`);a.push({type:"reference",value:c})}c=""}},"o");for(let v of n)o?v===o?(p(),o=!1):c+=v:d?v==="("?(c+=v,++d):v===")"?(--d,d?c+=v:p(v)):c+=v:v in s.literals?o=s.literals[v]:v==="("?(p(),++d):s.operatorCharacters.includes(v)?(p(),c=v,p()):v!==" "?c+=v:p();p(),a=a.map((v,m)=>v.type!=="operator"||v.value!=="-"||m&&a[m-1].type!=="operator"?v:{type:"operator",value:"n"});let g=!1;for(let v of a){if(v.type==="operator"){if(s.operatorsPrefix.includes(v.value))continue;if(!g)throw new Error("Formula contains an operator in invalid position");if(!s.operators.includes(v.value))throw new Error(`Formula contains an unknown operator ${v.value}`)}else if(g)throw new Error("Formula missing expected operator");g=!g}if(!g)throw new Error("Formula contains invalid trailing operator");a.length===1&&["reference","literal","constant"].includes(a[0].type)&&(this.single={type:a[0].type==="reference"?"reference":"value",value:a[0].value}),this._parts=a.map(v=>{if(v.type==="operator")return s.operatorsPrefix.includes(v.value)?v:v.value;if(v.type!=="reference")return v.value;if(this.settings.tokenRx&&!this.settings.tokenRx.test(v.value))throw new Error(`Formula contains invalid reference ${v.value}`);return this.settings.reference?this.settings.reference(v.value):s.reference(v.value)})}_subFormula(n,a){let c=this.settings.functions[a];if(typeof c!="function")throw new Error(`Formula contains unknown function ${a}`);let d=[];if(n){let o="",p=0,g=!1,v=l(()=>{if(!o)throw new Error(`Formula contains function ${a} with invalid arguments ${n}`);d.push(o),o=""},"o");for(let m=0;m<n.length;++m){let w=n[m];g?(o+=w,w===g&&(g=!1)):w in s.literals&&!p?(o+=w,g=s.literals[w]):w!==","||p?(o+=w,w==="("?++p:w===")"&&--p):v()}v()}return d=d.map(o=>new i.Parser(o,this.settings)),function(o){let p=[];for(let g of d)p.push(g.evaluate(o));return c.call(o,...p)}}evaluate(n){let a=this._parts.slice();for(let c=a.length-2;c>=0;--c){let d=a[c];if(d&&d.type==="operator"){let o=a[c+1];a.splice(c+1,1);let p=s.evaluate(o,n);a[c]=s.single(d.value,p)}}return s.operatorsOrder.forEach(c=>{for(let d=1;d<a.length-1;)if(c.includes(a[d])){let o=a[d],p=s.evaluate(a[d-1],n),g=s.evaluate(a[d+1],n);a.splice(d,2);let v=s.calculate(o,p,g);a[d-1]=v===0?0:v}else d+=2}),s.evaluate(a[0],n)}},i.Parser.prototype[s.symbol]=!0,s.reference=function(n){return function(a){return a&&a[n]!==void 0?a[n]:null}},s.evaluate=function(n,a){return n===null?null:typeof n=="function"?n(a):n[s.symbol]?n.evaluate(a):n},s.single=function(n,a){if(n==="!")return!a;let c=-a;return c===0?0:c},s.calculate=function(n,a,c){if(n==="??")return s.exists(a)?a:c;
5if(typeof a=="string"||typeof c=="string"){if(n==="+")return(a=s.exists(a)?a:"")+(s.exists(c)?c:"")}else switch(n){case"^":return Math.pow(a,c);case"*":return a*c;case"/":return a/c;case"%":return a%c;case"+":return a+c;case"-":return a-c}switch(n){case"<":return a<c;case"<=":return a<=c;case">":return a>c;case">=":return a>=c;case"==":return a===c;case"!=":return a!==c;case"&&":return a&&c;case"||":return a||c}return null},s.exists=function(n){return n!=null}},9926:()=>{},5688:()=>{},9708:()=>{},1152:()=>{},443:()=>{},9848:()=>{},5934:t=>{"use strict";t.exports=JSON.parse('{"version":"17.13.3"}')}},e={},l(function t(i){var s=e[i];if(s!==void 0)return s.exports;var n=e[i]={exports:{}};return r[i](n,n.exports,t),n.exports},"r")(5107);var r,e})});var Jn,cm,Vl,Fb=ie(()=>{Jn=qi(),cm=class cm{constructor({window:e,systemLogger:t}){Ie(this,"_c2EnvProdDefaults",{isProd:!0,isDev:!1,scheme:"https",hostnames:{care2:"www.care2.com",assets:"dingo.care2.com",petition_site:"www.thepetitionsite.com"}});Ie(this,"_window");Ie(this,"_location");Ie(this,"_systemLogger");this._window=e,this._location=e.location,this._systemLogger=t}validateC2EnvData(e){let i=Jn.object({isProd:Jn.boolean().required(),isDev:Jn.boolean().required(),hostnames:Jn.object({care2:Jn.string().required(),assets:Jn.string().required(),petition_site:Jn.string().required()}).required(),scheme:Jn.string().required()}).required().validate(e);return i.error?(this.lastValidationResultsErrorMessage=i.error.message,!1):!0}_guessC2EnvData(){let t=["sb-www","qa81.qaw1","qa82.qaw1","qa83.qaw1","qa84.qaw1","qa85.qaw1","qa86.qaw1"].find(i=>this._location.host.includes(i));if(t||(t=this._location.host.includes("sb-earthworm")?"sb-www":!1),t){let i={};return t==="sb-www"?(i.care2="sb-www.care2.com",i.assets="sb-dingo.care2.com",i.petition_site="sb-www.thepetitionsite.com"):(i.care2=`care2-${t}.care2.com`,i.assets=`dingo-${t}.care2.com`,i.petition_site=`tps-${t}.care2.com`),{isProd:!1,isDev:!0,scheme:"https",hostnames:i}}}
5_getC2EnvWithGuessedAndProdFallbacks(){return this.validateC2EnvData(this._window.c2Env)&&this._window.c2Env||this._guessC2EnvData()||this._c2EnvProdDefaults}isProductionEnvironment(){return this._getC2EnvWithGuessedAndProdFallbacks().isProd}isDevEnvironment(){return this._getC2EnvWithGuessedAndProdFallbacks().isDev}isCurrentDomainCare2(){return this._location.host===this._getC2EnvWithGuessedAndProdFallbacks().hostnames.care2}isCurrentDomainThePetitionSite(){return this._location.host===this._getC2EnvWithGuessedAndProdFallbacks().hostnames.petition_site}getCare2URL(){return this._getC2EnvWithGuessedAndProdFallbacks().scheme+"://"+this._getC2EnvWithGuessedAndProdFallbacks().hostnames.care2}getPetitionSiteURL(){return this._getC2EnvWithGuessedAndProdFallbacks().scheme+"://"+this._getC2EnvWithGuessedAndProdFallbacks().hostnames.petition_site}getOrigin(){return this.isCurrentDomainThePetitionSite?"petitionsite":this.isCurrentDomainCare2?"care2":this._location.hostname.split(".").slice(-2)[0]}getAssetsURL(){return this._getC2EnvWithGuessedAn
5dProdFallbacks().scheme+"://"+this._getC2EnvWithGuessedAndProdFallbacks().hostnames.assets}};l(cm,"Queries");Vl=cm});var Ha,Df,Mb,fm,Yl,Rb=ie(()=>{Ha={DEBUG:"DEBUG",INFO:"INFO",WARN:"WARN",ERROR:"ERROR",FATAL:"FATAL"},fm=class fm{constructor(){xe(this,Df)}parseLogData(e){if(!(e instanceof Error))return e===null?{message:"null"}:typeof e>"u"?{message:"undefined"}:typeof e=="object"?{message:JSON.stringify(e)}:{message:e.toString()};let t={name:e.name==="Error"?void 0:e.name,message:e.message,parameters:e.parameters,filename:e.filename,lineno:e.lineno};t.parameters&&(t.parameters=JSON.stringify(t.parameters));let i=e?.stack||e?.error?.stack;if(!(t.filename||t.lineno)&&i){let s=Ot(this,Df,Mb).call(this,i);s&&(t={...t,...s})}for(let[s,n]of Object.entries(t))n===void 0&&delete t[s];return t}_createLogEntry(e,t={},i=Ha.ERROR){return t instanceof Error?t=this.parseLogData(t):(typeof t=="string"||typeof t=="number"||typeof t=="boolean")&&(t={message:t}),t.level=i,this.createLogEntry(e,t)}async createLogEntry(e,t){throw new Error("AbstractSystemLogger.createLogEntry() not implemented")}debug(e,t){return this._createLogEntry(e,t,Ha.DEBUG)}info(e,t){return this._createLogEntry(e,t,Ha.INFO)}warn(e,t){return this._createLogEntry(e,t,Ha.WARN)}error(e,t){return this._createLogEntry(e,t,Ha.ERROR)}fatal(e,t){return this._createLogEntry(e,t,Ha.FATAL)}};Df=new WeakSet,Mb=l(function(e){let t=e.split(`
6`),i=/(\w+\.js.*):(\d+):(\d+)/;for(let s of t){let n=s.match(i);if(n){let[a,c,d,o]=n;return{filename:c,lineno:d,offset:o}}}},"#parseErrorStack"),l(fm,"AbstractSystemLogger");Yl=fm});var Af=Pe((SR,Nb)=>{Nb.exports=function(r){if(typeof r!="object")return String(r);{let e=[];return JSON.stringify(r,function(t,i){if(typeof i=="object"&&i!==null){if(e.indexOf(i)!==-1)return;e.push(i)}return i})}}});var Lb,dm,Gl,Hb=ie(()=>{Rb();Lb=Af(),dm=class dm extends Yl{async createLogEntry(e,t){t instanceof Error&&(t=this.parseLogData(t)),typeof t=="string"&&(t={message:t.length>300?t.substring(0,300):t});let i={referrer:document.referrer,url:window.location.href,userAgent:navigator.userAgent,data:Lb(t)};return fetch("/servlets/petitions/debug_log.php",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:e,content:Lb(i)})})}};l(dm,"DebugLogSystemLogger");Gl=dm});var Ut,xi=ie(()=>{Hb();Ut=new Gl});var dt,gr=ie(()=>{Fb();xi();dt=new Vl({window,systemLogger:Ut})});var Ua,If,hm,Kl,Ub=ie(()=>{hm=class hm{constructor({location:e,systemLogger:t}){xe(this,Ua,void 0);xe(this,If,void 0);Le(this,Ua,e),Le(this,If,t)}isUnitTestEnvironment(){return De(this,Ua).href.indexOf("http://localhost")===0}isDevAutomationTestingEnvironment(){return De(this,Ua).host.indexOf("selenium")>=0}};Ua=new WeakMap,If=new WeakMap,l(hm,"StagingController");Kl=hm});var Us,Pf=ie(()=>{Ub();xi();Us=new Kl({location:window.location,systemLogger:Ut})});var jb,qb=ie(()=>{jb={MS_MINUTE:6e4,MS_HOUR:36e5,MS_DAY:864e5,MS_WEEK:6048e5}});function yn(r=null){let e=r||Be.getSignerDataWithUserDataAsDefault()?.country||"us";return Wb.gdprCountriesByCode.hasOwnProperty(e)}var Wb,Zl=ie(()=>{Vt();Wb=mt(Hs());l(yn,"isUserSessionSignerGdpr")});function Xl(r,e){return((r||"")+" "+(e?e.charAt(0)+".":"")).trim()}var pm=ie(()=>{l(Xl,"getShortName")});var ui=Pe((BR,zb)=>{Pf();var Bb=qr();zb.exports=function(r,e="",t={}){typeof e=="object"&&(t=e,e="");let i=e;if(Us.isUnitTestEnvironment())return i;typeof window.translationStrings!="object"?Bb("!!! missing translation object on page: %o",location.href).send("missing_translation_object"):typeof window.translationStrings[r]!="string"?Bb("!!! missing translation key = %o on page: %o",r,location.href).send("missing_translation"):i=window.translationStrings[r];for(let s in t)i=i.replace("{"+s+"}",t[s]);return i}});var Vb=Pe((zR,NE)=>{NE.exports={af:"Afrikaans","af-ZA":"Afrikaans (South Africa)",ar:"Arabic","ar-AE":"Arabic (U.A.E.)","ar-BH":"Arabic (Bahrain)","ar-DZ":"Arabic (Algeria)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-YE":"Arabic (Yemen)",az:"Azeri (Latin)","az-AZ":"Azeri (Azerbaijan)",be:"Belarusian","be-BY":"Belarusian (Belarus)",bg:"Bulgarian","bg-BG":"Bulgarian (Bulgaria)","b
6s-BA":"Bosnian (Bosnia and Herzegovina)",ca:"Catalan","ca-ES":"Catalan (Spain)",cs:"Czech","cs-CZ":"Czech (Czech Republic)",cy:"Welsh","cy-GB":"Welsh (United Kingdom)",da:"Danish","da-DK":"Danish (Denmark)",de:"German","de-AT":"German (Austria)","de-CH":"German (Switzerland)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)",dv:"Divehi","dv-MV":"Divehi (Maldives)",el:"Greek","el-GR":"Greek (Greece)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-CB":"English (Caribbean)","en-GB":"English (United Kingdom)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Republic of the Philippines)","en-TT":"English (Trinidad and Tobago)","en-US":"English (United States)","en-ZA":"English (South Africa)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-ES":"Spanish (Spain)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-PY":"Spanish (Paraguay)","es-SV":"Spanish (El Salvador)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",et:"Estonian","et-EE":"Estonian (Estonia)",eu:"Basque","eu-ES":"Basque (Spain)",fa:"Farsi","fa-IR":"Farsi (Iran)",fi:"Finnish","fi-FI":"Finnish (Finland)",fo:"Faroese","fo-FO":"Faroese (Faroe Islands)",fr:"French","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-CH":"French (Switzerland)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Principality of Monaco)",gl:"Galician","gl-ES":"Galician (Spain)",gu:"Gujarati","gu-IN":"Gujarati (India)",he:"Hebrew","he-IL":"Hebrew (Israel)",hi:"Hindi","hi-IN":"Hindi (India)",hr:"Croatian","hr-BA":"Croatian (Bosnia and Herzegovina)","hr-HR":"Croatian (Croatia)",hu:"Hungarian","hu-HU":"Hungarian (Hungary)",hy:"Armenian","hy-AM":"Armenian (Armenia)",id:"Indonesian","id-ID":"Indonesian (Indonesia)",is:"Icelandic","is-IS":"Icelandic (Iceland)",it:"Italian","it-CH":"Italian (Switzerland)","it-IT":"Italian (Italy)",ja:"Japanese","ja-JP":"Japanese (Japan)",ka:"Georgian","ka-GE":"Georgian (Georgia)",kk:"Kazakh","kk-KZ":"Kazakh (Kazakhstan)",kn:"Kannada","kn-IN":"Kannada (India)",ko:"Korean","ko-KR":"Korean (Korea)",kok:"Konkani","kok-IN":"Konkani (India)",ky:"Kyrgyz","ky-KG":"Kyrgyz (Kyrgyzstan)",lt:"Lithuanian","lt-LT":"Lithuanian (Lithuania)",lv:"Latvian","lv-LV":"Latvian (Latvia)",mi:"Maori","mi-NZ":"Maori (New Zealand)",mk:"FYRO Macedonian","mk-MK":"FYRO Macedonian (North Macedonia, Republic of)",mn:"Mongolian","mn-MN":"Mongolian (
6Mongolia)",mr:"Marathi","mr-IN":"Marathi (India)",ms:"Malay","ms-BN":"Malay (Brunei Darussalam)","ms-MY":"Malay (Malaysia)",mt:"Maltese","mt-MT":"Maltese (Malta)",nb:"Norwegian (Bokm?l)","nb-NO":"Norwegian (Bokm?l) (Norway)",nl:"Dutch","nl-BE":"Dutch (Belgium)","nl-NL":"Dutch (Netherlands)","nn-NO":"Norwegian (Nynorsk) (Norway)",ns:"Northern Sotho","ns-ZA":"Northern Sotho (South Africa)",pa:"Punjabi","pa-IN":"Punjabi (India)",pl:"Polish","pl-PL":"Polish (Poland)",ps:"Pashto","ps-AR":"Pashto (Afghanistan)",pt:"Portuguese","pt-BR":"Portuguese (Brazil)","pt-PT":"Portuguese (Portugal)",qu:"Quechua","qu-BO":"Quechua (Bolivia)","qu-EC":"Quechua (Ecuador)","qu-PE":"Quechua (Peru)",ro:"Romanian","ro-RO":"Romanian (Romania)",ru:"Russian","ru-RU":"Russian (Russia)",sa:"Sanskrit","sa-IN":"Sanskrit (India)",se:"Sami (Northern)","se-FI":"Sami (Finland)","se-NO":"Sami (Norway)","se-SE":"Sami (Sweden)",sk:"Slovak","sk-SK":"Slovak (Slovakia)",sl:"Slovenian","sl-SI":"Slovenian (Slovenia)",sq:"Albanian","sq-AL":"Albanian (Albania)","sr-BA":"Serbian (Bosnia and Herzegovina)","sr-SP":"Serbian (Serbia and Montenegro)",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SE":"Swedish (Sweden)",sw:"Swahili","sw-KE":"Swahili (Kenya)",syr:"Syriac","syr-SY":"Syriac (Syria)",ta:"Tamil","ta-IN":"Tamil (India)",te:"Telugu","te-IN":"Telugu (India)",th:"Thai","th-TH":"Thai (Thailand)",tl:"Tagalog","tl-PH":"Tagalog (Philippines)",tn:"Tswana","tn-ZA":"Tswana (South Africa)",tr:"Turkish","tr-TR":"Turkish (Turkey)",tt:"Tatar","tt-RU":"Tatar (Russia)",ts:"Tsonga",uk:"Ukrainian","uk-UA":"Ukrainian (Ukraine)",ur:"Urdu","ur-PK":"Urdu (Islamic Republic of Pakistan)",uz:"Uzbek (Latin)","uz-UZ":"Uzbek (Latin) (Uzbekistan)",vi:"Vietnamese","vi-VN":"Vietnamese (Vietnam)",xh:"Xhosa","xh-ZA":"Xhosa (South Africa)",zh:"Chinese","zh-CN":"Chinese (S)","zh-HK":"Chinese (Hong Kong)","zh-MO":"Chinese (Macau)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (T)",zu:"Zulu","zu-ZA":"Zulu (South Africa)"}});var $f=Pe((VR,Yb)=>{var LE=Vb(),js=class js{constructor(e){typeof e!="string"&&(e=js.defaultLanguage),this.codeID=e.toLowerCase()}get locale(){return this.location?this.code+"_"+this.location:""}get location(){var e=this.codeID.split("-")[1];return typeof e=="string"&&e.match(/^[a-z]{2}$/)?e.toUpperCase():""}get stub(){return this.default?"":"/"+this.codeID}get code(){return this.codeID.split("-")[0]}get default(){return js.isDefault(this.codeID)}static determineLanguageCode(){let e=this.defaultLanguage,t=location.href.match(/.com\/.*?\/([a-zA-Z]{2}|[a-zA-Z\-]{4})/);if(typeof t?.[1]<"u"){let i=t[1];LE.hasOwnProperty(i)&&(e=i)}else e=navigator.language;return e}static isDefault(e){return e===js.defaultLanguage||e===js.defaultLanguageWithLocale}static get defaultLanguage(){return"en"}static get defaultLanguageWithLocale(){return"en-us"}};l(js,"Language");var mm=js;Yb.exports=mm});var Kb=Pe((GR,Gb)=>{var Rf=class Rf{constructor(e=document.location.href){e.match(/(thepetitionsite|care2).com/)||(e="https://www.thepetitionsite.com/");let t=new URL(e);this.protocol=t.protocol||document.location.protocol,this.hostname=t.hostname,this.queryString=t.searchParams.toString(),[,this.language,this.uri]=t.pathname.match(/^(?:\/([a-z]{2}(?:-[a-z]{2})?))?(?:\/(.*))*$/),[,this.fragmentString]=t.hash.split("#"),!Rf.isLanguageSelectorPresent()&&typeof this.language=="string"&&this.language&&(this.uri=this.language+this.uri,this.language="")}static isLanguageSelectorPresent(){return $(".language_selector").length>0}get host(){return this.protocol+"//"+this.hostname}get query(){return Ff(this.queryString)}get fragment(){return Ff(this.fragmentString)}set query(e){this.queryString=$.param($.extend({},this.query,Ff(e)))}set fragment(e){this.fragmentString=$.param($.extend({},this.fragment,Ff(e)))}set url(e){(e.queryString||e.querystring)&&(this.query=e.queryString?e.queryString:e.querystring,delete e.queryString,delete e.querystring),e.fragment&&(this.fragment=e.fragment,delete e.fragment),$.extend(this,e)}get url(){return this.host+Mf(this.language)+Mf(this.uri)+Mf(this.queryString,"?")+Mf(this.fragment,"#")}};l(Rf,"Url");var gm=Rf;Gb.exports=gm;function Ff(r){return typeof r=="string"?r=r.split("&").reduce((e,t)=>
6{let[i,s]=t.split("=");return i!==""&&(typeof s>"u"&&(s=!0),e[i]=s),e},{}):typeof r!="object"&&(r={}),r}l(Ff,"deparam");function Mf(r,e="/"){return typeof r=="string"&&r!==""?e+r:""}l(Mf,"slash")});var Xb=Pe((ZR,Zb)=>{var vm=class vm{constructor(){}add(e,t){typeof this[e]=="function"&&console.log('WARNING: Cannot use reserved key "'+e+'"');let i=typeof t=="string"?$(t):t;return i.length&&(this.remove(e),this[e]=i),this}append(e,t){this.add(e,t),$(document.body).append(this[e])}remove(e){return typeof this[e]=="function"&&console.log('WARNING: Cannot use reserved key "'+e+'"'),this[e]&&(typeof this[e].remove=="function"&&this[e].remove(),delete this[e]),this}};l(vm,"Elements");var ym=vm;Zb.exports=ym});var ki=Pe((rN,Qb)=>{qb();Zl();Vt();pm();var Jb=mt(ui()),HE=$f(),Jl=Kb(),UE=Xb(),jE=new UE,qE={},ja=class ja{constructor(){throw new Error("This page class is a collection of static methods and should not be instantiated.")}static get elements(){return jE}static get desktop(){return!this.mobile&&!this.tablet}static get mobile(){let e=$("#care2_is_mobile");return e.length||(e=$('<div id="care2_is_mobile"></div>'),$(document.body).append(e)),e.is(":visible")}static get tablet(){let e=$("#care2_is_mobile");return e.length||(e=$('<div id="care2_is_mobile"></div>'),$(document.body).append(e)),e.css("position")==="absolute"}static get responsive(){let e=$("#care2_responsive");return e.length||(e=$('<div id="care2_responsive"></div>'),$(document.body).append(e)),e.is(":hidden")}static get url(){let e=new Jl;return e.querystring=e.queryString,e.fragment=e.fragmentString,e}static setURL(e={}){let t=new Jl;return t.url=e,t.url}static get queryString(){return new Jl().query}static get fragment(){return new Jl().fragment}static get user(){return new Proxy({},{get:(e,t)=>{let i=Be.getAllSessionData(),s=Be.getSignerDataWithUserDataAsDefault();if(typeof e[t]!="function"&&s&&s.hasOwnProperty(t))return s[t];if(t==="language")return i.languageCode;if(t==="passportID"||t==="passportId")return s.passportId;if(t==="mostRecentSMSCapableMasked")return s.mostRecentSMSCapableMasked;if(t==="signer")return s;if(t==="petitions")return{signed:i.petitionsSigned,optins:i.optinsAccepted};if(t==="optins")return{accepted:i.optinsAccepted};if(t==="containers")return{views:i.containersViewed,get viewsWithin4hours(){return Object.keys(i.containersViewed).map(a=>{let c=i.containersViewed[a].time,d=c+jb.MS_HOUR*4;return c<d?a:!1}).filter(a=>a)}};if(t==="invalidated")return qE;if(t==="shortname")return!s.firstname||!s.lastname?(0,Jb.default)("name_not_displayed"):Xl(s.firstname,s.lastname);if(t==="defaultCountry")return window.geoIpCountry||"us";if(t==="load")return()=>new $.Deferred().resolve(s).promise();if(t==="merge")return(a={})=>{Object.keys(a).length&&Be.updateUserSessionSigner({signerData:a})};if(t==="isLoggedIn")return()=>Be.isUserLoggedIn();if(t==="isGdpr")return yn();if(t==="write")return(a={})=>{Object.keys(a).length&&Be.updateUserSessionSigner({signerData:a})};if(t==="getValue")return a=>s[a]}})}static languageCheck(){let e=Be.getAllSessionData().languageCode.slice(0,2),t=(typeof ja.url.language!="string"?"":ja.url.language)||HE.defaultLanguage;return e!==t&&Jl.isLanguageSelectorPresent()?ja.setURL({language:e}):!1}};l(ja,"Page");var _m=ja;Qb.exports=_m});var qr=Pe((oN,r0)=>{var e0=mt($b());Vt();gr();Pf();var Lf=Af(),Nf=[],Qn,t0=dt.isDevEnvironment(),WE=Us.isUnitTestEnvironment(),BE=Us.isDevAutomationTestingEnvironment();function zE(...r){return Qn=r,WE||(t0||BE)&&console.warn(bm(Qn)),qa}l(zE,"care2log");var qa={log:()=>qa,trace:r=>{let e=bm(Qn);return Qn.length===1&&typeof Qn[0]=="string"&&(e=r+": "+Qn),Nf.push(e),qa},resetTrace:()=>(Nf=[],qa),send:(r,e=void 0)=>{e||(e=ki()),e.user.load().always(()=>{t0&&console.error(...Qn);let t=bm(Qn),i=Be.getAllSessionData(),s={trace:Nf,page:e,sessionID:i.sessionID,userAgent:navigator.userAgent,referrer:document.referrer,url:document.URL,data:t,sessionStorage:e0.default.session()};$.post("/servlets/petitions/debug_log.php",{type:r,content:Lf(s)})})},send_es:(r,e)=>{let t={trace:Nf,data:e};return $.post("/servlets/petitions/debug_es.php",{type:r,content:Lf(t)}),qa.resetTrace()}};function bm(r){let e;if(typeof r[0]=="string"){let t=r.shift(),i=r.length;for(let s=0;s<i;s++)t.indexOf("%s")>=0?t=t.replace("%s",r[s]):t.indexOf("%i")>
6=0?t=t.replace("%i",parseInt(r[s])):t.indexOf("%d")>=0?t=t.replace("%d",parseInt(r[s])):t.indexOf("%f")>=0?t=t.replace("%f",parseFloat(r[s])):t.indexOf("%o")>=0?t=t.replace("%o",Lf(r[s])):t.indexOf("%O")>=0&&(t=t.replace("%O",Lf(r[s])));e=t}else r.length===1?e=r[0]:e=r;return e}l(bm,"format");r0.exports=zE});var es=Pe((uN,Gt)=>{var VE=qr();Gt.exports.byCountryCode={us:{AL:"Alabama",AK:"Alaska",AZ:"Arizona",AR:"Arkansas",CA:"California",CO:"Colorado",CT:"Connecticut",DE:"Delaware",DC:"District of Columbia",FL:"Florida",GA:"Georgia",HI:"Hawaii",ID:"Idaho",IL:"Illinois",IN:"Indiana",IA:"Iowa",KS:"Kansas",KY:"Kentucky",LA:"Louisiana",ME:"Maine",MD:"Maryland",MA:"Massachusetts",MI:"Michigan",MN:"Minnesota",MS:"Mississippi",MO:"Missouri",MT:"Montana",NE:"Nebraska",NV:"Nevada",NH:"New Hampshire",NJ:"New Jersey",NM:"New Mexico",NY:"New York",NC:"North Carolina",ND:"North Dakota",OH:"Ohio",OK:"Oklahoma",OR:"Oregon",PA:"Pennsylvania",RI:"Rhode Island",SC:"South Carolina",SD:"South Dakota",TN:"Tennessee",TX:"Texas",UT:"Utah",VT:"Vermont",VA:"Virginia",WA:"Washington",WV:"West Virginia",WI:"Wisconsin",WY:"Wyoming",AS:"American Somoa",AA:"Armed Forces Americas",AE:"Armed Forces Europe",AP:"Armed Forces Pacific",FM:"Federated States of Micronesia",GU:"Guam",MH:"Marshall Islands",MP:"Northern Mariana Islands",PW:"Palau",PR:"Puerto Rico",VI:"Virgin Islands"},ca:{AB:"Alberta",BC:"British Columbia",MB:"Manitoba",NB:"New Brunswick",NL:"Newfoundland and Labrador",NT:"Northwest Territories",NS:"Nova Scotia",NU:"Nunavut",ON:"Ontario",PE:"Prince Edward Island",QC:"Quebec",SK:"Saskatchewan",YT:"Yukon"},au:{CT:"Australian Capital Territory",SW:"New South Wales",NT:"Northern Territory",QL:"Queensland",SA:"South Australia",TA:"Tasmania",VI:"Victoria",WA:"Western Australia"},gb:{NE:"North East",NW:"North West",YH:"Yorkshire and The Humber",EM:"East Midlands",WM:"West Midlands",EE:"East of England",LD:"London",SE:"South East",SW:"South West",CI:"Channel Islands",IM:"Isle of Man",NI:"Northern Ireland",SC:"Scotland",WA:"Wales"}};Gt.exports.byCountryCodeLimitedForSignForm={us:Gt.exports.byCountryCode.us,ca:Gt.exports.byCountryCode.ca,au:Gt.exports.byCountryCode.au};Gt.exports.countryCodesWithStates=["us","ca","au"];Gt.exports.byCountryName={"United States":Gt.exports.byCountryCode.us,Canada:Gt.exports.byCountryCode.ca,Australia:Gt.exports.byCountryCode.au,"United Kingdom":Gt.exports.byCountryCode.gb};Gt.exports.getByCountryName=function(r){return Gt.exports.byCountryName?.[r]??null};Gt.exports.getCountriesByStateName=function(r){let e={};for(let t in Gt.exports.byCountryName){let i=Gt.exports.byCountryName[t];for(let[s,n]of Object.entries(i))e[n]=t}return e};Gt.exports.normalizeStateCode=function(r,e){if(!r)return r;if(r.length>2){let t=e?e.toLowerCase():"us",i=Gt.exports.byCountryCode[t];if(i){let s=r.toLowerCase();for(let[n,a]of Object.entries(i))if(a.toLowerCase()===s)return n}}return r.length===2?r.toUpperCase():r};Gt.exports.getStateName=function(r,e){if(typeof r!="string"||typeof e!="string")return VE("invalid arguments: getStateName",{stateCode:r,countryCode:e}).send("getStateName_invalid_args"),"";let t=r.toUpperCase(),i=e?e.toLowerCase():void 0,s=Gt.exports.byCountryCode[i];return s?s[t]??"":""}});var i0,n0,wm,Ti,Hf=ie(()=>{Tf();i0=mt(Hs()),n0=mt(es()),wm=class wm{constructor(e={}){Ie(this,"passportID",null);Ie(this,"firstname","");Ie(this,"lastname","");Ie(this,"email","");Ie(this,"address","");Ie(this,"country","");Ie(this,"city","");Ie(this,"zip","");Ie(this,"state","");Ie(this,"phone","");Ie(this,"phoneCountry",null);Ie(this,"display_name","");Ie(this,"mostRecentSMSCapableMasked","");Ie(this,"isKnownDonor",!1);Ie(this,"emailSignatureRate",null);this.passportID=e.passportID??null,this.firstname=e.firstname??"",this.lastname=e.lastname??"",this.email=e.email??"",this.address=e.address??"",this.country=e.country??"",this.city=e.city??"",this.zip=e.zip??"",this.state=e.state??"",this.phone=e.phone??"",this.phoneCountry=e.phoneCountry??null,this.display_name=e.display_name??"",this.mostRecentSMSCapableMasked=e.mostRecentSMSCapableMasked??"",this.isKnownDonor=!!e.isKnownDonor,this.emailSignatureRate=e.emailSignatureRate??null,this.country&&(this.country=(0,i0.normalizeCountryCode)(this.country)),this.state&&(this.state=(0,n0.normalizeStateCode)(this.state,this.country))}get fullname(){return!this.firstname&&!this.lastname?"":this.firstname?this.lastname?`${this.firstname} ${this.lastname}`:this.firstname:this.lastname}getCanUseSMSPhoneAppendForOptin(e=this.phone){return zl(e,this.mostRecentSMSCapableMasked)}toUserValuesDTO(e={},t=!0){let i={passportID:e.passportID??this.passportID,firstname:e.firstname??this.firstname,lastname:e.lastname??this.lastname,email:e.email??this.email,address:e.address??this.address,city:e.city??this.city,state:e.state??this.state,country:e.country??this.country,zip:e.zip??this.zip,phone:e.phone??this.phone,phoneCountry:e.phoneCountry??this.phoneCountry};return t&&Bl(i.phone)&&(i.phone=""),i}toDTO(){return{passportID:this.passportID,firstname:this.firstname,lastname:this.lastname,fullname:this.fullname,email:this.email,address:this.address,country:this.country,city:this.city,zip:this.zip,state:this.state,phone:this.phone,phoneCountry:this.phoneCountry,display_name:this.display_name,isKnownDonor:this.isKnownDonor,emailSignatureRate:this.emailSignatureRate,mostRecentSMSCapableMasked:this.mostRecentSMSCapableMasked}}};l(wm,"User");Ti=wm});var Sm,s0,a0,o0,xm,l0,u0,c0,f0,d0,h0,p0,m0,g0,y0,km,Ql,eu=ie(()=>{Xn();Sm="stackadapt_ads",s0="pinterest_ads",a0="google_ads",o0="twitter_ads",xm="tiktokjason",l0="taboola",u0="presspc_ad",c0="ar_facebook_ads",f0="ar_facebook_ads_fl_only",d0="gb_facebook_ads",h0="care2",p0="optins",m0="jaa_ad",g0="metacajason",y0="dev_test_pixel",km=class km{constructor(e){this.resetToDefaultState(e)}resetToDefaultState(e={}){this.src=e?.src||null,this.campaign=e?.campaign||null,this.ad_campaign_id=e?.ad_campaign_id,this.ad_id=e?.ad_id,this.ad_set_id=e?.ad_set_id,this.ad_name=e?.ad_name,this.ad_set_name=e?.ad_set_name,this.ad_placement=e?.ad_placement,this.ad_site_source_name=e?.ad_site_source_name,this.ad_petition_id=e?.ad_petition_id,this.expirationTimestamp=e?.expirationTimestamp,this.created=e?.created||et.now().toUnixInteger()}toDTO(){return JSON.parse(JSON.stringify(this))}};l(km,"CentralizedTracking");Ql=km});var tu,Tm,Cm,qs,Om=ie(()=>{Xn();Hf();eu();Cm=class Cm{constructor(e={}){xe(this,tu);this.sessionID=e.sessionID??Ot(this,tu,Tm).call(this),this.sessionSequence=e.sessionSequence??0,this.sessionTimestamp=e.sessionTimestamp??et.now().toUnixInteger(),this.petitionsSigned=e.petitionsSigned??{},this.optinsAccepted=e.optinsAccepted??{},this.containersViewed=e.containersViewed??{},this.facebook=e.facebook??{userID:!1,connected:!1,logged_in:!1,permissions:[]},this.languageCode=e.languageCode??window.languageCode??"en-us",this.user=new Ti(e.user??{}),this.signer=new Ti(e.signer??{}),this.centralizedTracking=new Ql(e.centralizedTracking??{}),this.expirationTimestamp=et.now().plus({years:1}).toUnixInteger(),this.loggedInTimestamp=e?.loggedInTimestamp,this.isNewUserSession=!!e.isNewUserSession,this.token=e?.token}toDTO(){return{sessionID:this.sessionID,sessionSequence:this.sessionSequence,sessionTimestamp:this.sessionTimestamp,petitionsSigned:this.petitionsSigned,optinsAccepted:this.optinsAccepted,
6containersViewed:this.containersViewed,facebook:this.facebook,languageCode:this.languageCode,user:this.user.toDTO(),signer:this.signer.toDTO(),centralizedTracking:this.centralizedTracking.toDTO(),expirationTimestamp:this.expirationTimestamp,loggedInTimestamp:this.loggedInTimestamp,isNewUserSession:this.isNewUserSession,token:this.token}}resetSessionIdAndSequence(){this.sessionID=Ot(this,tu,Tm).call(this),this.sessionSequence=0}};tu=new WeakSet,Tm=l(function(){let e="",t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",i=0,s=Math.random()*4294967295|0;for(;i++<36;){let n=t[i-1],a=s&15,c=n==="x"?a:a&3|8;e+=n==="-"||n==="4"?n:c.toString(16),s=i%8===0?Math.random()*4294967295|0:s>>4}return e},"#generateUserSessionID"),l(Cm,"UserSession");qs=Cm});var Wa,Em,ru,v0=ie(()=>{"use strict";Hr();Om();Em=class Em{constructor({sessionStore:e}){xe(this,Wa,void 0);Le(this,Wa,e)}execute(e={}){let t=De(this,Wa).getUserSession(),i=!!t?.petitionsSigned;if(t&&i)return St.createSuccessful("session already exists",t);let s=new qs({user:e?.userData??{},signer:e?.signerData??{},languageCode:e?.languageCode});return De(this,Wa).create(s.toDTO()),St.createSuccessful("user session started",s.toDTO())}};Wa=new WeakMap,l(Em,"StartUserSession");ru=Em});var Dm,iu,_0=ie(()=>{"use strict";Xn();Om();Dm=class Dm{create(e){throw new Error("Abstract method create not implemented")}getRaw(){throw new Error("Abstract method getRaw not implemented")}update(e){throw new Error("Abstract method update not implemented")}delete(){throw new Error("Abstract method delete not implemented")}isSessionIdExpired(){throw new Error("Abstract method isSessionIdExpired not implemented")}getUserSession(){let e=this.getRaw();if(!e)return null;let t=new qs(e);return this.isSessionIdExpired()&&(t.resetSessionIdAndSequence(),this.update(t.toDTO())),t.expirationTimestamp<et.now().toUnixInteger()?(this.delete(),null):(t.centralizedTracking.expirationTimestamp<et.now().toUnixInteger()&&t.centralizedTracking.resetToDefaultState({}),t)}};l(Dm,"AbstractUserSessionStore");iu=Dm});var ts=Pe((DN,b0)=>{var Qe=l(function(r,e,t){return arguments.length<2?Qe.get(r):Qe.set(r,e,t)},"Cookies");Qe._document=window.document;Qe._cacheKeyPrefix="cookey.";Qe._maxExpireDate=new Date("Fri, 31 Dec 9999 23:59:59 UTC");Qe.defaults={path:"/",secure:!1,samesite:"Lax"};Qe.get=function(r){if(Qe._cachedDocumentCookie!==Qe._document.cookie&&Qe._renewCache(),r){var e=Qe._cache[Qe._cacheKeyPrefix+r];return e===void 0?void 0:decodeURIComponent(e)}else return Qe._cache};Qe.set=function(r,e,t){return t=Qe._getExtendedOptions(t),t.expires=Qe._getExpiresDate(e===void 0?-1:t.expires),Qe._document.cookie=Qe._generateCookieString(r,e,t),Qe};Qe.expire=function(r,e){return Qe.set(r,void 0,e)};Qe._getExtendedOptions=function(r){return{path:r&&r.path||Qe.defaults.path,domain:r&&r.domain||Qe.defaults.domain,expires:r&&r.expires||Qe.defaults.expires,secure:r&&r.secure!==void 0?r.secure:Qe.defaults.secure,samesite:r&&r.samesite!==void 0?r.samesite:Qe.defaults.samesite}};Qe._isValidDate=function(r){return Object.prototype.toString.call(r)==="[object Date]"&&!isNaN(r.getTime())};Qe._getExpiresDate=function(r,e){if(e=e||new Date,typeof r=="number"?r=r===1/0?Qe._maxExpireDate:new Date(e.getTime()+r*1e3):typeof r=="string"&&(r=new Date(r)),r&&!Qe._isValidDate(r))throw new Error("`expires` parameter cannot be converted to a valid Date instance");return r};Qe._generateCookieString=function(r,e,t){r=r.replace(/[^#$&+\^`|]/g,encodeURIComponent),r=r.replace(/\(/g,"%28").replace(/\)/g,"%29"),e=(e+"").replace(/[^!#$&-+\--:<-\[\]-~]/g,encodeURIComponent),t=t||{};var i=r+"="+e;return i+=t.path?";path="+t.path:"",i+=t.domain?";domain="+t.domain:"",i+=t.expires?";expires="+t.expires.toUTCString():"",i+=t.samesite?";SameSite="+t.samesite:";SameSite=Lax",i+=t.secure?";secure":"",i};Qe._getCacheFromString=function(r){for(var e={},t=r?r.split("; "):[],i=0;i<t.length;i++){var s=Qe._getKeyValuePairFromCookieString(t[i]);e[Qe._cacheKeyPrefix+s.key]===void 0&&(e[Qe._cacheKeyPrefix+s.key]=s.value)}return e};Qe._getKeyValuePairFromCookieString=function(r){var e=r.indexOf("=");e=e<0?r.length:e;var t=r.substr(0,e),i;try{i=decodeURIComponent(t)}catch(s){console&&typeof console.error=="function"&&console.error('Could not decode cookie with key "'+t+'"',s)}return{key:i,value:r.substr(e+1)}};Qe._renewCache=function(){Qe._cache=Qe._getCacheFromString(Qe._document.cookie),Qe._cachedDocumentCookie=Qe._document.cookie};Qe._areEnabled=function(){var r="cookies.js",e=Qe.set(r,1).get(r)==="1";return Qe.expire(r),e};Qe.enabled=Qe._areEnabled();b0.exports=Qe});var za,Am,w0,S0,YE,GE,Ba,Uf,x0,jf,k0,qf,T0,Im,nu,C0=ie(()=>{"use strict";Xn();_0();za=mt(ts()),Am="c2_session",w0="c2_session_is_id_expired",S0="c2_event_history_cache",YE=4093,GE=3069,Ba=null,Im=class Im extends iu{constructor(t){super();xe(this,Uf);xe(this,jf);xe(this,qf);Ie(this,"_debugLogSystemLogger");this._debugLogSystemLogger=t}create(t){Ba=t,this.update(t)}update(t){Ba=t;let i=Ot(this,qf,T0).call(this,t);Ot(this,jf,k0).call(this,i.userSessionDTO),Ot(this,Uf,x0).call(this,i.eventHistoryCaches)}isSessionIdExpired(){return(0,za.default)(w0)?!1:((0,za.default)(w0,"true"),!0)}getRaw(){let t=(0,za.default)(Am),i=sessionStorage.getItem(S0)||"{}",s=JSON.parse(i),n=t&&JSON.parse(t);return n?Ba?(n.containersViewed=Ba.containersViewed,n.petitionsSigned=Ba.petitionsSigned,n.optinsAccepted=Ba.optinsAccepted,n):(!n.hasOwnProperty("petitionsSigned")&&(n.containersViewed=s.containersViewed||{},n.petitionsSigned=s.petitionsSigned||{},n.optinsAccepted=s.optinsAccepted||{}),n):null}delete(){(0,za.default)(Am,"",{expires:-1})}};Uf=new WeakSet,x0=l(function(t){sessionStorage.setItem(S0,JSON.stringify(t))},"#storeEventHistoryCaches"),jf=new WeakSet,k0=l(function(t){let i=t?.expirationTimestamp?t.expirationTimestamp-et.now().toUnixInteger():31536e3,s=JSON.stringify(t),n=new TextEncoder().encode(s).length;if(n>YE)throw this._debugLogSystemLogger.error("A User Session Cookie has exceeded the maximum size limit. Session ID: "+t.sessionID+" , Size: "+n),new Error("User session cookie size exceeds maximum allowed size.");n>
6GE&&this._debugLogSystemLogger.warn("A User Session Cookie has exceeded the warning limit. Session ID: "+t.sessionID+" , Size: "+n),(0,za.default)(Am,s,{expires:i})},"#storeUserSessionDTO"),qf=new WeakSet,T0=l(function(t){let i=structuredClone(t),s={containersViewed:i?.containersViewed||{},petitionsSigned:i?.petitionsSigned||{},optinsAccepted:i?.optinsAccepted||{}};return delete i.containersViewed,delete i.petitionsSigned,delete i.optinsAccepted,{eventHistoryCaches:s,userSessionDTO:i}},"#sliceUserSessionDTOIntoPartsPerStore"),l(Im,"MixedSourcesUserSessionStore");nu=Im});var lr,Wi=ie(()=>{C0();xi();lr=new nu(Ut)});var Bi,Va=ie(()=>{v0();Wi();Bi=new ru({sessionStore:lr})});var au,ou,Pm,su,O0=ie(()=>{"use strict";Hr();Pm=class Pm{constructor({actionAlerts:e,sessionStore:t}){xe(this,au,void 0);xe(this,ou,void 0);Le(this,au,e),Le(this,ou,t)}execute(){return De(this,au).setSubscribedToActionAlertsInThisSession(!1),De(this,ou).delete(),St.createSuccessful("user session stopped")}};au=new WeakMap,ou=new WeakMap,l(Pm,"StopUserSession");su=Pm});var Ci=Pe((BN,E0)=>{E0.exports=function(r,e,t=!1){if(typeof r!="string")return t;typeof e!="object"&&typeof e!="function"&&(e=window);let i=r.match(/[^.\]\['"]?([A-Za-z_$][0-9a-zA-Z_$]*|[0-9]*)[^.\]\['"]/g).reduce(function(s,n){return n=Math.floor(n)==n&&$.isNumeric(n)?parseInt(n):n,typeof s>"u"||s===null?s:s[n]},e);return typeof i<"u"&&i!==!1?i:t}});var A0=Pe((zN,D0)=>{var vn={domainThreshold:2,secondLevelThreshold:2,topLevelThreshold:2,defaultDomains:["msn.com","bellsouth.net","telus.net","comcast.net","optusnet.com.au","earthlink.net","qq.com","sky.com","icloud.com","mac.com","sympatico.ca","googlemail.com","att.net","xtra.co.nz","web.de","cox.net","gmail.com","ymail.com","aim.com","rogers.com","verizon.net","rocketmail.com","google.com","optonline.net","sbcglobal.net","aol.com","me.com","btinternet.com","charter.net","shaw.ca"],defaultSecondLevelDomains:["yahoo","hotmail","mail","live","outlook","gmx"],defaultTopLevelDomains:["com","com.au","com.tw","ca","co.nz","co.uk","de","fr","it","ru","net","org","edu","gov","jp","nl","kr","se","eu","ie","co.il","us","at","be","dk","hk","es","gr","ch","no","cz","in","net","net.au","info","biz","mil","co.jp","sg","hu","uk"],run:function(r){r.domains=r.domains||vn.defaultDomains,r.secondLevelDomains=r.
6secondLevelDomains||vn.defaultSecondLevelDomains,r.topLevelDomains=r.topLevelDomains||vn.defaultTopLevelDomains,r.distanceFunction=r.distanceFunction||vn.sift4Distance;var e=l(function(n){return n},"defaultCallback"),t=r.suggested||e,i=r.empty||e,s=vn.suggest(vn.encodeEmail(r.email),r.domains,r.secondLevelDomains,r.topLevelDomains,r.distanceFunction);return s?t(s):i()},suggest:function(r,e,t,i,s){r=r.toLowerCase();var n=this.splitEmail(r);if(t&&i&&t.indexOf(n.secondLevelDomain)!==-1&&i.indexOf(n.topLevelDomain)!==-1)return!1;var a=this.findClosestDomain(n.domain,e,s,this.domainThreshold);if(a)return a==n.domain?!1:{address:n.address,domain:a,full:n.address+"@"+a};var c=this.findClosestDomain(n.secondLevelDomain,t,s,this.secondLevelThreshold),d=this.findClosestDomain(n.topLevelDomain,i,s,this.topLevelThreshold);if(n.domain){var a=n.domain,o=!1;if(c&&c!=n.secondLevelDomain&&(a=a.replace(n.secondLevelDomain,c),o=!0),d&&d!=n.topLevelDomain&&(a=a.replace(new RegExp(n.topLevelDomain+"$"),d),o=!0),o==!0)return{address:n.address,domain:a,full:n.address+"@"+a}}return!1},findClosestDomain:function(r,e,t,i){i=i||this.topLevelThreshold;var s,n=1/0,a=null;if(!r||!e)return!1;t||(t=this.sift4Distance);for(var c=0;c<e.length;c++){if(r===e[c])return r;s=t(r,e[c]),s<n&&(n=s,a=e[c])}return n<=i&&a!==null?a:!1},sift4Distance:function(r,e,t){if(t===void 0&&(t=5),!r||!r.length)return e?e.length:0;if(!e||!e.length)return r.length;for(var i=r.length,s=e.length,n=0,a=0,c=0,d=0,o=0,p=[];n<i&&a<s;){if(r.charAt(n)==e.charAt(a)){d++;for(var g=!1,v=0;v<p.length;){var m=p[v];if(n<=m.c1||a<=m.c2){g=Math.abs(a-n)>=Math.abs(m.c2-m.c1),g?o++:m.trans||(m.trans=!0,o++);break}else n>m.c2&&a>m.c1?p.splice(v,1):v++}p.push({c1:n,c2:a,trans:g})}else{c+=d,d=0,n!=a&&(n=a=Math.min(n,a));for(var v=0;v<t&&(n+v<i||a+v<s);v++){if(n+v<i&&r.charAt(n+v)==e.charAt(a)){n+=v-1,a--;break}if(a+v<s&&r.charAt(n)==e.charAt(a+v)){n--,a+=v-1;break}}}n++,a++,(n>=i||a>=s)&&(c+=d,d=0,n=a=Math.min(n,a))}return c+=d,Math.round(Math.max(i,s)-c+o)},splitEmail:function(r){var e=r.trim().split("@");if(e.length<2)return!1;for(var t=0;t<e.length;t++)if(e[t]==="")return!1;var i=e.pop(),s=i.split("."),n="",a="";if(s.length==0)return!1;if(s.length==1)a=s[0];else{n=s[0];for(var t=1;t<s.length;t++)a+=s[t]+".";a=a.substring(0,a.length-1)}return{topLevelDomain:a,secondLevelDomain:n,domain:i,address:e.join("@")}},encodeEmail:function(r){var e=encodeURI(r);return e=e.replace("%20"," ").replace("%25","%").replace("%5E","^").replace("%60","`").replace("%7B","{").replace("%7C","|").replace("%7D","}"),e}};vn.check=function(r,e={}){return e.domains=e.domains||this.defaultDomains,e.secondLevelDomains=e.secondLevelDomains||this.defaultSecondLevelDomains,e.topLevelDomains=e.topLevelDomains||this.defaultTopLevelDomains,e.distanceFunction=e.distanceFunction||this.sift4Distance,this.suggest(this.encodeEmail(r),e.domains,e.secondLevelDomains,e.topLevelDomains,e.distanceFunction)};D0.exports=function(r,e){return typeof r<"u"&&(r=$(r),r.on("change",t=>{let i=$(t.currentTarget),s=$.trim(i.val());vn.run({email:s,suggested:n=>{e(n)}})})),vn}});var P0=Pe((YN,I0)=>{I0.exports=function(r){var e=r.CARE2=r.CARE2||{},t=r.jQuery=r.jQuery||{},i=r.$=r.$||{};return function(s){typeof define=="function"&&define.amd?define(["jquery"],s):s(t)}(function(s){var n=/\+/g;function a(o){if(d.raw)return o;try{return decodeURIComponent(o.replace(n," "))}catch{}}l(a,"decode");function c(o){o.indexOf('"')===0&&(o=o.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")),o=a(o);try{return d.json?JSON.parse(o):o}catch{}}l(c,"decodeAndParse");var d=s.cookie=function(o,p,g){if(p!==void 0){if(g=s.extend({},d.defaults,g),typeof g.expires=="number"){var v=g.expires,m=g.expires=new Date;m.setDate(m.getDate()+v)}return p=d.json?JSON.stringify(p):String(p),document.cookie=[d.raw?o:encodeURIComponent(o),"=",d.raw?p:encodeURIComponent(p),g.expires?"; expires="+g.expires.toUTCString():"",g.path?"; path="+g.path:"",g.domain?"; domain="+g.domain:"",g.secure?"; secure":""].join("")}for(var w=o?void 0:{},b=document.cookie?document.cookie.split("; "):[],S=0,O=b.length;S<O;S++){var P=b[S].split("="),N=a(P.shift()),B=P.join("=");
6if(o&&o===N){w=c(B);break}!o&&(B=c(B))!==void 0&&(w[N]=B)}return w};d.defaults={},s.removeCookie=function(o,p){return s.cookie(o)!==void 0?(s.cookie(o,"",s.extend({},p,{expires:-1})),!0):!1}}),t}});var Ya=Pe((KN,M0)=>{var KE=Ci(),Nm=qr(),ZE=A0()(),XE=ui(),JE=Sa()(window),ci=window.$=window.jQuery=JE;P0()(window);var zi={address:/^(?=.*[0-9])(?=.*[a-zA-Z])(.+)$/,email:/^[A-Z0-9._%+-]{1,64}@(?:[A-Z0-9-]{1,63}\.){1,125}[A-Z]{2,63}$/i,zip:{five:/^\d{5}$/,four:/^\d{4}$/,us:/(^\d{5}$)|(^\d{5}-\d{4}$)/,gb:/^(GIR 0AA)|(((A[BL]|B[ABDFHLNRSTX]?|C[ABFHMORTVW]|D[ADEGHLNTY]|E[HNX]?|F[KY]|G[LUY]?|H[ADGPRSUX]|I[GMPV]|JE|K[ATWY]|L[ADELNSU]?|M[EKL]?|N[EGNPRW]?|O[LX]|P[AEHLOR]|R[GHM]|S[AEGKLMNOPRSTY]?|T[ADFNQRSW]|UB|W[ADFNRSV]|YO|ZE)[1-9]?[0-9]|((E|N|NW|SE|SW|W)1|EC[1-4]|WC[12])[A-HJKMNPR-Y]|(SW|W)([2-9]|[1-9][0-9])|EC[1-9][0-9])\s*([0-9][ABD-HJLNP-UW-Z]{2})?)$/,nl:/^\d{4} ?[A-Za-z]{2}$/,au:{default:/^\d{4}$/,CT:/^02\d{2}|26[01][0-8]|2609|29[01]\d|2920$/,SW:/^1\d{3}|2[0-57]\d{2}|2619|26[2-9]\d|28[0-8]\d|289[0-8]|292[1-9]|29[3-9]\d$/,NT:/^0[89]\d{2}$/,QL:/^[49]\d{3}$/,SA:/^5\d{3}$/,TA:/^7\d{3}$/,VI:/^[38]\d{3}$/,WA:/^6\d{3}$/}}},ht={},$m=[],Lm="validationCaches",Bf={wasEmailForced(r){return $m.includes(r)},getCache(){let r={email:[],phone:[],zip:[]};try{return JSON.parse(sessionStorage.getItem(Lm))??r}catch{return r}},clearCache(){sessionStorage.removeItem(Lm)},getValidationPromises(){return ht},address(r,e={}){let t=new ci.Deferred;
6if(e.invalidated&&e.invalidated===r)return t.resolve(!0,{isValid:!1}),t.promise();{let i={canForce:!0,isValid:!!r.match(zi.address),error:XE("Validation__response--address",'Addresses usually contain a number and street name. Please correct, or click "{button_text}" to use the address you entered.')};return t.resolve(i.isValid,i),t.promise()}},emailSimple:function(r){return typeof r=="string"&&!!r.match(zi.email)},emailSimplified(r){return new Promise((e,t)=>{if(this.emailSimplifiedCache[r]&&this.emailSimplifiedCache[r]?.status!=="error"){e(this.emailSimplifiedCache[r]);return}ci.ajax("/servlets/validation/email.php",{method:"POST",data:{email:r,language:"en"},timeout:3e4}).done(i=>{this.emailSimplifiedCache[r]=i,e(i)}).fail(i=>{t(i)})})},emailSimplifiedCache:{},email(r,e={}){if(this.emailSimplifiedCache[r]&&this.emailSimplifiedCache[r]?.status!=="error")return new ci.Deferred().resolve(this.emailSimplifiedCache[r].isValid,this.emailSimplifiedCache[r],!0).promise();if(e.validated&&e.validated===r){let t=new ci.Deferred;return t.resolve(!0,{isValid:!0}),t.promise()}
6else if(e.invalidated&&e.invalidated===r){let t=new ci.Deferred;return t.resolve(!0,{isValid:!1}),$m.push(r),t.promise()}else{let t=typeof e.language=="string"&&e.language.split("-")[0].length===2,i=e.language=t?e.language:"en";if(!Fm("email",r)){if($m.includes(r)){let s=new ci.Deferred;return s.resolve(!0,{isValid:!1}),s.promise()}else if(Mm("email",r,e)){Wf("email",r,e);let s=zi.email,n=ZE.check(r),a={error_code:"OK",suggestion:n?n.full:!1,isValid:!0,emailValidationResult:"unknown",failedExternalVerification:"no"};if(!r.match(s))a.error_code="HARD_ERROR",a.isValid=!1,a.validation_response="Provided email address seems to be invalid. Please enter a new email address.",ht.email.promise.resolve(!1,a);else{let c={email:r,language:i},d={url:"/servlets/validation/email.php",data:c};e.timeout&&(d.timeout=e.timeout),ht.email.request=Rm("email",d,c,a),ht.email.request.done(o=>{this.emailSimplifiedCache[r]=o})}}}return ht.email.promise.promise()}},phone(r,e={}){let t=typeof e.country=="string"&&e.country.length===2,i=e.country=t?e.country:"us";if(!Fm("phone",r)&&Mm("phone",r,e)){Wf("phone",r,e);let s={};if(t){let n={phoneNumber:r,countryCode:i},a={url:"/servlets/validation/phone.php",data:n};e.timeout&&(a.timeout=e.timeout),ht.phone.request=Rm("phone",a,n,s)}else{let n=r.replace(/\D+/g,"").length,a=0,c=!1;for(let o=0;o<r.length;o++)if(r[o]==="*"&&a++,a>=5){c=!0;break}let d=c||!(r.replace(/\D+/g,"").indexOf("00000")===0||r.replace(/\D+/g,"").indexOf("11111")===0)&&n>=3&&n<=13&&!r.match(/[^(\d|\-| |\(|\)|\.)]/);s.noCountrySet=!0,ht.phone.promise.resolve(d,s)}}return ht.phone.promise.promise()},zip(r,e={}){let t=typeof e.state=="string"&&e.state?e.state.toUpperCase():"",i=typeof e.country=="string"&&e.country?e.country.toLowerCase():"",s=tD(i,t,r),n=s?!!r.toUpperCase().match(s):!0;if(eD(i)&&n){if(!Fm("zip",r)&&Mm("zip",r,e)){Wf("zip",r,e);let a={},c={},d={url:"https://api.postcodes.io/postcodes/"+r,type:"GET",dataType:"json"};e.timeout&&(d.timeout=e.timeout);let o={resolve:(p,g)=>{F0("zip",ht.zip.value,p,g),ht.zip.promise.resolve(p,g)},done:p=>{o.resolve(!0,p)},fail:p=>{p.jqXHR.status===404?o.resolve(!1,p):(o.resolve(!0,p),(p.jqXHR.status!==0||p.jqXHR.readyState!==0||p.jqXHR.statusText!=="error"&&p.jqXHR.statusText!=="timeout")&&Nm("lib/validation.js : postal code servlet failure: %o",p).send("postal_code_validation_error"))}};ht.zip.request=Rm("zip",d,c,a,o)}return ht.zip.promise.promise()}else return n},password(r){return r.length>=8&&r.length<=15&&r.search(/[a-z]+/i)>-1&&r.search(/[0-9]+/)>-1},required(r){return!!ci.trim(r)},getCacheByTypeAndValue(r,e){let t=this.getCache(),i=!1;return typeof t[r]!="object"&&(t[r]=[]),ci.each(t[r],(s,n)=>{e===n.value&&(i=ci.extend({},n,{index:s}))}),i}};function Fm(r,e){let t=Bf.getCacheByTypeAndValue(r,e);return t?(Wf(r,e,t.resultData),ht[r].promise.resolve(t.isValid,t.resultData,!0),!0):!1}l(Fm,"useCache");function F0(r,e,t,i){let s=Bf.getCache(),n=Bf.getCacheByTypeAndValue(r,e),a={value:e,isValid:t,resultData:i};s[r]||(s[r]=[]),n?s[r][n.index]=a:s[r].push(a),sessionStorage.setItem(Lm,JSON.stringify(s))}l(F0,"setCache");function QE(r,e){let t=Object.getOwnPropertyNames(r),i=Object.getOwnPropertyNames(e);if(t.length!==i.length)return!1;for(let s=0;s<t.length;s++){let n=t[s];if(r[n]!==e[n])return!1}return!0}l(QE,"isEquivalent");function Mm(r,e,t){return typeof ht[r]!="object"||ht[r].value!==e||!QE(ht[r].params,t)}l(Mm,"weNeedANewPromise");function Wf(r,e,t){typeof ht[r]=="object"&&ht[r].request&&!ht[r].requestComplete?(ht[r].abortedPreviousCall=!0,ht[r].request.abort()):typeof ht[r]!="object"&&(ht[r]={abortedPreviousCall:!1}),ht[r].params=t,ht[r].value=e,ht[r].request=!1,ht[r].requestComplete=!1,!ht[r].abortedPreviousCall||!ht[r].promise?ht[r].promise=new ci.Deferred:ht[r].abortedPreviousCall=!1}l(Wf,"createNewPromise");function Rm(r,e,t,i,s=!1){return typeof e.type!="string"&&(e.type="POST"),ci.ajax(e,t).always(()=>{ht[r].requestComplete=!0}).done((n,a,c)=>{if(i=ci.extend(i,n),i.jqXHR=c,typeof s=="object"&&typeof s.done=="function")s.done(i);else if(i.status==="success"&&typeof i.isValid=="boolean"){let d=i.isValid,o=Object.assign({},i);delete o.jqXHR,F0(r,ht[r].value,d,o),ht[r].promise.resolve(d,i)}else Nm(`lib/validation.js : ${r} : fail : requestParameters: %o, resultData: %o`,e,n).send(`validation_${r}_error`),ht[r].promise.reject(!0,i)}).fail(n=>{i.jqXHR=n,ht[r].abortedPreviousCall||(typeof s=="object"&&typeof s.fail=="function"?s.fail(i):((n.status!==0||n.readyState!==0||n.statusText!=="error"&&n.statusText!=="timeout")&&Nm(`lib/validation.js : ${r} : servlet fail : requestParameters: %o, jqXHR: %o`,e,n).send(`validation_${r}_servlet_error`),ht[r].promise.reject(!0,i)))})}l(Rm,"createServletRequest");function eD(r){return r==="gb"}l(eD,"shouldWeUseServletForPostalCodeValidation");function $0(r,e){if(!r.match(zi.zip.us))return!1;r.indexOf("-")&&(r=r.split("-")[0]);let t=!1;for(let i=0;i<e.length;i++)r>
6=e[i].slice(0,5)&&r<=e[i].slice(5)&&(t=!0);return t}l($0,"validateStatePattern");function tD(r,e,t){let i=!1;switch(r){case"us":let s={AA:["3400134093"],AE:["0900009984"],AK:["9950199950"],AL:["3500436925"],AP:["9620096698"],AR:["7160172642","7264472959"],AS:["9679996799"],AZ:["8500186556"],CA:["9000196162"],CO:["8000181658"],CT:["0640106926","0600106389"],DC:["2020120586","2000120091","8888888888","2059020599"],DE:["1970119980"],FL:["3410134997","3200333994"],FM:["9694196944"],GA:["3981339901","3000231999"],GU:["9691096932"],HI:["9680196863","9670196797"],IA:["5000152809"],ID:["8320183406","8341583877"],IL:["6000262999"],IN:["4600147997"],KS:["6832768327","6600267954"],KY:["4599945999","4527545275","4000342788"],LA:["7000171497"],MA:["0100102791","0550105501"],MD:["2060121930","2058820588"],ME:["0390104992"],MH:["9696096970","9689896898"],MI:["4800149971"],MN:["5500156763"],MO:["6300565899","7264372643"],MP:["9695096952"],MS:["3860139776"],MT:["5883858838","5900159937"],NC:["2700628909"],ND:["5884358856","5800158835"],NE:["6800168326","6832869367"],NH:["0303103897"],NJ:["0700108989"],NM:["8700188439"],NV:["8900189883"],NY:["1000114905","0050100501","0639006390"],OH:["4300145274","4527745899"],OK:["7340173951","7300173196","7400174966"],OR:["9700197920"],PA:["1500119612"],PR:["0090100988","0060100795"],PW:["9694096940"],RI:["0280102940"],SC:["2900129945"],SD:["5700157799"],TN:["3701038589"],TX:["7500179999","8851388590","7396073960","7330173344"],UT:["8400184791"],VA:["2200324658","2010120198"],VI:["0080100851"],VT:["0560105907","0500105495"],WA:["9800199403"],WI:["5300154986"],WV:["2470126886"],WY:["8341483414","8200183128"]};typeof s[e]>"u"?i=zi.zip.us:$0(t,s[e])?i=new RegExp("(^"+t+"$)|(^"+t+"-\\d{4}$)"):i=new RegExp("^xxxxx?");break;case"ca":let n="D";switch(e){case"AB":n="T";break;case"BC":n="V";break;case"MB":n="R";break;case"NB":n="E";break;case"NL":n="A";break;case"NT":case"NU":n="X";break;case"NS":n="B";break;case"ON":n="[KLMNP]";break;case"PE":n="C";break;case"QC":n="[GHJ]";break;case"SK":n="S";break;case"YT":n="Y";break;default:n="[TVREAXBKLMNPCGHJSY]";break}i=new RegExp("^"+n+"\\d[A-Za-z]\\s*\\d[A-Za-z]\\d$");break;case"au":i=KE("regularExpressions.zip.au."+e,this,zi.zip.au.default);break;case"gb":i=zi.zip.gb;break;case"de":$0(t,["0100099999"])?i=new RegExp("^"+t+"$"):i=new RegExp("^xxxxx?");break;case"es":case"fr":case"it":i=zi.zip.five;break;case"nz":case"za":i=zi.zip.four;break;case"nl":i=zi.zip.nl;break;default:i=!1;break}return i}l(tD,"getRegularExpressionForCountry");M0.exports=Bf});var lu=Pe((JN,N0)=>{gr();var rD=qr(),iD=dt.getPetitionSiteURL()+"/tps_servlets/",nD=dt.getPetitionSiteURL()+"/servlets/";function R0(r,e={},t){let i=t+r;return $.post({url:i,data:e}).fail(s=>{(s.status!==0||s.readyState!==0||s.statusText!=="error"&&s.statusText!=="timeout")&&rD(`${i} servlet : ${s.statusText} : sendData: %o, jqXHR: %o, headers: %o`,e,s,s.getAllResponseHeaders()).send(i.replace(/[^A-Za-z0-9_-]/g,"-")+"_fail")})}l(R0,"callServlet");function sD(r,e={}){return R0(r,e,nD)}l(sD,"callCare2Servlet");function aD(r,e={}){return R0(r,e,iD)}l(aD,"callTpsServlet");N0.exports={callCare2Servlet:sD,callTpsServlet:aD}});var Yf=Pe((eL,Vf)=>{var oD=Ya(),L0=ts(),lD=lu();function uD(){return!!L0("subscribed-action-alerts-this-session")}l(uD,"getSubscribedToActionAlertsInThisSession");Vf.exports.getSubscribedToActionAlertsInThisSession=uD;Vf.exports.setSubscribedToActionAlertsInThisSession=function(r){r=r||void 0,L0("subscribed-action-alerts-this-session",r)};var Ga={},Hm=class Hm{constructor(e,t,i){this._hasAARecord=e,this._hasVersionedAARecord=t,this._areInternalOptinsBlocked=i}get hasAARecord(){return this._hasAARecord}get hasVersionedAARecord(){return this._hasVersionedAARecord}get areInternalOptinsBlocked(){return this._areInternalOptinsBlocked}};l(Hm,"ActionAlertsSubscriptionDTO");var zf=Hm;function cD(r){let e=new zf(null,null,null);return Ga[r]||(Ga[r]={promise:new $.Deferred,result:e},oD.emailSimple(r)?lD.callCare2Servlet("aa_subscription_status.php",{email:r}).done(t=>{let i=new zf(t.hasAARecord,t.hasVersionedAARecord,t.areInternalOptinsBlocked);Ga[r].promise.resolve(i)}).fail(()=>{}):Ga[r].promise.resolve(e)),Ga[r].promise}l(cD,"getAASubscriptionStatus");Vf.exports.getAASubscriptionStatus=cD});var fD,Ka,Gf=ie(()=>{O0();fD=mt(Yf());Wi();Ka=new su({actionAlerts:fD,sessionStore:lr})});var cu,fu,Um,uu,H0=ie(()=>{"use strict";Hr();Um=class Um{constructor({stopUserSession:e,startUserSession:t}){xe(this,cu,void 0);xe(this,fu,void 0);Le(this,cu,t),Le(this,fu,e)}execute(){return De(this,fu).execute(),De(this,cu).execute(),St.createSuccessful("user session reset")}};cu=new WeakMap,fu=new WeakMap,l(Um,"ResetUserSession");uu=Um});var Kf,jm=ie(()=>{H0();Va();Gf();Kf=new uu({startUserSession:Bi,stopUserSession:Ka})});var hu,qm,du,U0=ie(()=>{"use strict";qm=class qm{constructor({sessionStore:e}){xe(this,hu,void 0);Le(this,hu,e)}query(){let e=De(this,hu).getUserSession();return e?e.toDTO():null}};hu=new WeakMap,l(qm,"GetAllSessionData");du=qm});var fi,Ws=ie(()=>{U0();Wi();fi=new du({sessionStore:lr})});var mu,Wm,pu,j0=ie(()=>{"use strict";Wm=class Wm{constructor({sessionStore:e}){xe(this,mu,void 0);Le(this,mu,e)}query(){return De(this,mu).getUserSession()?.centralizedTracking.toDTO()}};mu=new WeakMap,l(Wm,"GetCentralizedTracking");pu=Wm});var q0,W0=ie(()=>{j0();Wi();q0=new pu({sessionStore:lr})});function gu(r,e,t=!1){let i=Object.keys(new Ti({}).toDTO()),s={};for(let n of i){let a=e[n]??null,c=a!==null&&(t||a!=="");s[n]=c?e[n]:r[n]}return new Ti(s).toDTO()}var Bm=ie(()=>{"use strict";Hf();l(gu,"mergeUserDTOs")});var Bs,vu,_u,Za,Zf,Xf,B0,Jf,z0,Qf,V0,zm,yu,Y0=ie(()=>{"use strict";Hr();Bm();zm=class zm{constructor({sessionStore:e,startUserSession:t,debugLogSystemLogger:i}){xe(this,Za);xe(this,Xf);xe(this,Jf);xe(this,Qf);xe(this,Bs,void 0);xe(this,vu,void 0);xe(this,_u,void 0);Le(this,Bs,e),Le(this,vu,t),Le(this,_u,i)}execute(e){let t=Ot(this,Xf,B0).call(this,e.signer);if(Ot(this,Jf,z0).call(this,e.user,t),Ot(this,Qf,V0).call(this,e.signer,t),e?.user?.mostRecentSMSCapableMasked===""&&(t.user.mostRecentSMSCapableMasked=""),Ot(this,Za,Zf).call(this,t,e,"containersViewed"),Ot(this,Za,Zf).call(this,t,e,"petitionsSigned"),Ot(this,Za,Zf).call(this,t,e,"optinsAccepted"),e.languageCode&&(t.languageCode=e.languageCode),e.centralizedTracking){let i=t.centralizedTracking;if(i.campaign&&!i.ad_petition_id){let s=i.campaign.match(/([a-zA-Z]*)_([0-9]{9})/);s&&(i.ad_petition_id=parseInt(s[2]))}t.centralizedTracking=e.centralizedTracking}return e.isNewUserSession&&(t.isNewUserSession=e.isNewUserSession),De(this,Bs).update(t),St.createSuccessful("user session updated",De(this,Bs).getUserSession())}};Bs=new WeakMap,vu=new WeakMap,_u=new WeakMap,Za=new WeakSet,Zf=l(function(e,t,i,s=20){if(!t?.[i])return;
6i==="optinsAccepted"&&Object.keys(t[i]).forEach(d=>{e[i].hasOwnProperty(d)&&De(this,_u).warn(`A duplicate optin has just been cached in the user session: optinID: ${d}, passportID: ${e.signer.passportID}`)}),Object.assign(e[i],t[i]);let n=e[i],a=Object.keys(n);if(a.length<=s)return;a.sort((d,o)=>n[d].time-n[o].time).slice(0,a.length-s).forEach(d=>{delete n[d]})},"#updateEventHistoryCache"),Xf=new WeakSet,B0=l(function(e){let t=De(this,Bs).getUserSession();return t||De(this,vu).execute({signerData:e}).data},"#getExistingOrNewUserSession"),Jf=new WeakSet,z0=l(function(e,t){e?.country&&!t.user.country&&(t.user.country=e.country)},"#updateUserSessionForUser"),Qf=new WeakSet,V0=l(function(e,t){e&&(t.signer=gu(t.signer,e,!0))},"#updateUserSessionForSigner"),l(zm,"UpdateUserSession");yu=zm});var Xa,ed=ie(()=>{Y0();Wi();Va();xi();Xa=new yu({sessionStore:lr,startUserSession:Bi,debugLogSystemLogger:Ut})});var Ja,Vm,bu,G0=ie(()=>{"use strict";Hr();Vm=class Vm{constructor({sessionStore:e}){xe(this,Ja,void 0);Le(this,Ja,e)}execute({clearContainersViewed:e=!1,clearPetitionsSigned:t=!1,clearOptinsAccepted:i=!1}={}){let s=De(this,Ja).getUserSession();return e&&(s.containersViewed={}),t&&(s.petitionsSigned={}),i&&(s.optinAccepted={}),De(this,Ja).update(s),St.createSuccessful("session caches cleared",s)}};Ja=new WeakMap,l(Vm,"ClearUserSessionCaches");bu=Vm});var K0,Z0=ie(()=>{G0();Wi();K0=new bu({sessionStore:lr})});var Su,Ym,wu,X0=ie(()=>{"use strict";Ym=class Ym{constructor({sessionStore:e}){xe(this,Su,void 0);Le(this,Su,e)}query(){return!!De(this,Su).getUserSession().token}};Su=new WeakMap,l(Ym,"GetUserLoggedInState");wu=Ym});var td,Gm=ie(()=>{X0();Wi();td=new wu({sessionStore:lr})});var ku,Km,xu,J0=ie(()=>{"use strict";Hf();Bm();Km=class Km{constructor({sessionStore:e}){xe(this,ku,void 0);Le(this,ku,e)}query(e=!1){let t=De(this,ku).getUserSession();if(!t)return null;let i=gu(t.user.toDTO(),t.signer.toDTO());return e?new Ti(i):i}};ku=new WeakMap,l(Km,"GetSignerDataWithUserDataAsDefault");xu=Km});var rs,Tu=ie(()=>{J0();Wi();rs=new xu({sessionStore:lr})});var Qa,Ou,Zm,Cu,Q0=ie(()=>{"use strict";Hr();Zm=class Zm{constructor({sessionStore:e,startUserSession:t}){xe(this,Qa,void 0);xe(this,Ou,void 0);Le(this,Qa,e),Le(this,Ou,t)}execute(){let e=De(this,Qa).getUserSession()||De(this,Ou).execute().data;return e.sessionSequence++,De(this,Qa).update(e),St.createSuccessful("session sequence incremented",e)}};Qa=new WeakMap,Ou=new WeakMap,l(Zm,"IncrementSessionSequence");Cu=Zm});var ew,tw=ie(()=>{Q0();Wi();Va();ew=new Cu({sessionStore:lr,startUserSession:Bi})});var nw=Pe(rd=>{"use strict";rd.byteLength=hD;rd.toByteArray=mD;rd.fromByteArray=vD;var Vi=[],di=[],dD=typeof Uint8Array<"u"?Uint8Array:Array,Xm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(zs=0,rw=Xm.length;zs<rw;++zs)Vi[zs]=Xm[zs],di[Xm.charCodeAt(zs)]=zs;var zs,rw;di[45]=62;di[95]=63;function iw(r){var e=r.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=r.indexOf("=");t===-1&&(t=e);var i=t===e?0:4-t%4;return[t,i]}l(iw,"getLens");function hD(r){var e=iw(r),t=e[0],i=e[1];return(t+i)*3/4-i}l(hD,"byteLength");function pD(r,e,t){return(e+t)*3/4-t}l(pD,"_byteLength");function mD(r){var e,t=iw(r),i=t[0],s=t[1],n=new dD(pD(r,i,s)),a=0,c=s>0?i-4:i,d;for(d=0;d<c;d+=4)e=di[r.charCodeAt(d)]<<18|di[r.charCodeAt(d+1)]<<12|di[r.charCodeAt(d+2)]<<6|di[r.charCodeAt(d+3)],n[a++]=e>>16&255,n[a++]=e>>8&255,n[a++]=e&255;return s===2&&(e=di[r.charCodeAt(d)]<<2|di[r.charCodeAt(d+1)]>>4,n[a++]=e&255),s===1&&(e=di[r.charCodeAt(d)]<<10|di[r.charCodeAt(d+1)]<<4|di[r.charCodeAt(d+2)]>>2,n[a++]=e>>8&255,n[a++]=e&255),n}l(mD,"toByteArray");function gD(r){return Vi[r>>18&63]+Vi[r>>12&63]+Vi[r>>6&63]+Vi[r&63]}l(gD,"tripletToBase64");function yD(r,e,t){for(var i,s=[],n=e;n<t;n+=3)i=(r[n]<<16&16711680)+(r[n+1]<<8&65280)+(r[n+2]&255),s.push(gD(i));return s.join("")}l(yD,"encodeChunk");function vD(r){for(var e,t=r.length,i=t%3,s=[],n=16383,a=0,c=t-i;a<c;a+=n)s.push(yD(r,a,a+n>c?c:a+n));return i===1?(e=r[t-1],s.push(Vi[e>>2]+Vi[e<<4&63]+"==")):i===2&&(e=(r[t-2]<<8)+r[t-1],s.push(Vi[e>>10]+Vi[e>>4&63]+Vi[e<<2&63]+"=")),s.join("")}l(vD,"fromByteArray")});var sw=Pe(Jm=>{Jm.read=function(r,e,t,i,s){var n,a,c=s*8-i-1,d=(1<<c)-1,o=d>>1,p=-7,g=t?s-1:0,v=t?-1:1,m=r[e+g];for(g+=v,n=m&(1<<-p)-1,m>>=-p,p+=c;p>0;n=n*256+r[e+g],g+=v,p-=8);for(a=n&(1<<-p)-1,n>>=-p,p+=i;p>0;a=a*256+r[e+g],g+=v,p-=8);if(n===0)n=1-o;else{if(n===d)return a?NaN:(m?-1:1)*(1/0);a=a+Math.pow(2,i),n=n-o}return(m?-1:1)*a*Math.pow(2,n-i)};Jm.write=function(r,e,t,i,s,n){var a,c,d,o=n*8-s-1,p=(1<<o)-1,g=p>>1,v=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=i?0:n-1,w=i?1:-1,b=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,a=p):(a=Math.floor(Math.log(e)/Math.LN2),e*(d=Math.pow(2,-a))<1&&(a--,d*=2),a+g>=1?e+=v/d:e+=v*Math.pow(2,1-g),e*d>=2&&(a++,d/=2),a+g>=p?(c=0,a=p):a+g>=1?(c=(e*d-1)*Math.pow(2,s),a=a+g):(c=e*Math.pow(2,g-1)*Math.pow(2,s),a=0));s>=8;r[t+m]=c&255,m+=w,c/=256,s-=8);for(a=a<<s|c,o+=s;o>0;r[t+m]=a&255,m+=w,a/=256,o-=8);r[t+m-w]|=b*128}});var vw=Pe(to=>{"use strict";var Qm=nw(),eo=sw(),aw=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;to.Buffer=ye;to.SlowBuffer=kD;to.INSPECT_MAX_BYTES=50;var id=2147483647;to.kMaxLength=id;ye.TYPED_ARRAY_SUPPORT=_D();!ye.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");
6function _D(){try{var r=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(r,e),r.foo()===42}catch{return!1}}l(_D,"typedArraySupport");Object.defineProperty(ye.prototype,"parent",{enumerable:!0,get:function(){if(ye.isBuffer(this))return this.buffer}});Object.defineProperty(ye.prototype,"offset",{enumerable:!0,get:function(){if(ye.isBuffer(this))return this.byteOffset}});function _n(r){if(r>id)throw new RangeError('The value "'+r+'" is invalid for option "size"');var e=new Uint8Array(r);return Object.setPrototypeOf(e,ye.prototype),e}l(_n,"createBuffer");function ye(r,e,t){if(typeof r=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ig(r)}return uw(r,e,t)}l(ye,"Buffer");ye.poolSize=8192;function uw(r,e,t){if(typeof r=="string")return wD(r,e);if(ArrayBuffer.isView(r))return SD(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(Yi(r,ArrayBuffer)||r&&Yi(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Yi(r,SharedArrayBuffer)||r&&Yi(r.buffer,SharedArrayBuffer)))return tg(r,e,t);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var i=r.valueOf&&r.valueOf();if(i!=null&&i!==r)return ye.from(i,e,t);var s=xD(r);if(s)return s;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return ye.from(r[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}l(uw,"from");ye.from=function(r,e,t){return uw(r,e,t)};Object.setPrototypeOf(ye.prototype,Uint8Array.prototype);Object.setPrototypeOf(ye,Uint8Array);function cw(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}l(cw,"assertSize");function bD(r,e,t){return cw(r),r<=0?_n(r):e!==void 0?typeof t=="string"?_n(r).fill(e,t):_n(r).fill(e):_n(r)}l(bD,"alloc");ye.alloc=function(r,e,t){return bD(r,e,t)};function ig(r){return cw(r),_n(r<0?0:ng(r)|0)}l(ig,"allocUnsafe");ye.allocUnsafe=function(r){return ig(r)};ye.allocUnsafeSlow=function(r){return ig(r)};function wD(r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!ye.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var t=fw(r,e)|0,i=_n(t),s=i.write(r,e);return s!==t&&(i=i.slice(0,s)),i}l(wD,"fromString");function eg(r){for(var e=r.length<0?0:ng(r.length)|0,t=_n(e),i=0;i<e;i+=1)t[i]=r[i]&255;return t}l(eg,"fromArrayLike");function SD(r){if(Yi(r,Uint8Array)){var e=new Uint8Array(r);return tg(e.buffer,e.byteOffset,e.byteLength)}return eg(r)}l(SD,"fromArrayView");function tg(r,e,t){if(e<0||r.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(r.byteLength<e+(t||0))throw new RangeError('"length" is outside of buffer bounds');var i;return e===void 0&&t===void 0?i=new Uint8Array(r):t===void 0?i=new Uint8Array(r,e):i=new Uint8Array(r,e,t),Object.setPrototypeOf(i,ye.prototype),i}l(tg,"fromArrayBuffer");function xD(r){if(ye.isBuffer(r)){var e=ng(r.length)|0,t=_n(e);return t.length===0||r.copy(t,0,0,e),t}if(r.length!==void 0)return typeof r.length!="number"||sg(r.length)?_n(0):eg(r);if(r.type==="Buffer"&&Array.isArray(r.data))return eg(r.data)}l(xD,"fromObject");function ng(r){if(r>=id)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+id.toString(16)+" bytes");return r|0}l(ng,"checked");function kD(r){return+r!=r&&(r=0),ye.alloc(+r)}l(kD,"SlowBuffer");ye.isBuffer=l(function(e){return e!=null&&e._isBuffer===!0&&e!==ye.prototype},"isBuffer");ye.compare=l(function(e,t){if(Yi(e,Uint8Array)&&(e=ye.from(e,e.offset,e.byteLength)),Yi(t,Uint8Array)&&(t=ye.from(t,t.offset,t.byteLength)),!ye.isBuffer(e)||!ye.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var i=e.length,s=t.length,n=0,a=Math.min(i,s);n<a;++n)if(e[n]!==t[n]){i=e[n],s=t[n];break}return i<s?-1:s<i?1:0},"compare");ye.isEncoding=l(function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},"isEncoding");ye.concat=l(function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return ye.alloc(0);var i;if(t===void 0)for(t=0,i=0;i<e.length;++i)t+=e[i].length;var s=ye.allocUnsafe(t),n=0;for(i=0;i<e.length;++i){var a=e[i];if(Yi(a,Uint8Array))n+a.length>s.length?ye.from(a).copy(s,n):Uint8Array.prototype.set.call(s,a,n);else if(ye.isBuffer(a))a.copy(s,n);else throw new TypeError('"list" argument must be an Array of Buffers');n+=a.length}return s},"concat");function fw(r,e){if(ye.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||Yi(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);var t=r.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&t===0)return 0;for(var s=!1;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return rg(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return yw(r).length;default:if(s)return i?-1:rg(r).length;e=(""+e).toLowerCase(),s=!0}}l(fw,"byteLength");ye.byteLength=fw;function TD(r,e,t){var i=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(r||(r="utf8");;)switch(r){case"hex":return MD(this,e,t);case"utf8":case"utf-8":return hw(this,e,t);case"ascii":return $D(this,e,t);case"latin1":case"binary":return FD(this,e,t);case"base64":return ID(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return RD(this,e,t);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),i=!0}}l(TD,"slowToString");ye.prototype._isBuffer=!0;function Vs(r,e,t){var i=r[e];r[e]=r[t],r[t]=i}l(Vs,"swap");ye.prototype.swap16=l(function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)Vs(this,t,t+1);return this},"swap16");ye.prototype.swap32=l(function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)Vs(this,t,t+3),Vs(this,t+1,t+2);return this},"swap32");ye.prototype.swap64=l(function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)Vs(this,t,t+7),Vs(this,t+1,t+6),Vs(this,t+2,t+5),Vs(this,t+3,t+4);return this},"swap64");ye.prototype.toString=l(function(){var e=this.length;return e===0?"":arguments.length===0?hw(this,0,e):TD.apply(this,arguments)},"toString");
6ye.prototype.toLocaleString=ye.prototype.toString;ye.prototype.equals=l(function(e){if(!ye.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:ye.compare(this,e)===0},"equals");ye.prototype.inspect=l(function(){var e="",t=to.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},"inspect");aw&&(ye.prototype[aw]=ye.prototype.inspect);ye.prototype.compare=l(function(e,t,i,s,n){if(Yi(e,Uint8Array)&&(e=ye.from(e,e.offset,e.byteLength)),!ye.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),i===void 0&&(i=e?e.length:0),s===void 0&&(s=0),n===void 0&&(n=this.length),t<0||i>e.length||s<0||n>this.length)throw new RangeError("out of range index");if(s>=n&&t>=i)return 0;if(s>=n)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,s>>>=0,n>>>=0,this===e)return 0;for(var a=n-s,c=i-t,d=Math.min(a,c),o=this.slice(s,n),p=e.slice(t,i),g=0;g<d;++g)if(o[g]!==p[g]){a=o[g],c=p[g];break}return a<c?-1:c<a?1:0},"compare");function dw(r,e,t,i,s){if(r.length===0)return-1;if(typeof t=="string"?(i=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,sg(t)&&(t=s?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(s)return-1;t=r.length-1}else if(t<0)if(s)t=0;else return-1;if(typeof e=="string"&&(e=ye.from(e,i)),ye.isBuffer(e))return e.length===0?-1:ow(r,e,t,i,s);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?s?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):ow(r,[e],t,i,s);throw new TypeError("val must be string, number or Buffer")}l(dw,"bidirectionalIndexOf");function ow(r,e,t,i,s){var n=1,a=r.length,c=e.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(r.length<2||e.length<2)return-1;n=2,a/=2,c/=2,t/=2}function d(m,w){return n===1?m[w]:m.readUInt16BE(w*n)}l(d,"read");var o;if(s){var p=-1;for(o=t;o<a;o++)if(d(r,o)===d(e,p===-1?0:o-p)){if(p===-1&&(p=o),o-p+1===c)return p*n}else p!==-1&&(o-=o-p),p=-1}else for(t+c>a&&(t=a-c),o=t;o>=0;o--){for(var g=!0,v=0;v<c;v++)if(d(r,o+v)!==d(e,v)){g=!1;break}if(g)return o}return-1}l(ow,"arrayIndexOf");ye.prototype.includes=l(function(e,t,i){return this.indexOf(e,t,i)!==-1},"includes");ye.prototype.indexOf=l(function(e,t,i){return dw(this,e,t,i,!0)},"indexOf");ye.prototype.lastIndexOf=l(function(e,t,i){return dw(this,e,t,i,!1)},"lastIndexOf");function CD(r,e,t,i){t=Number(t)||0;var s=r.length-t;i?(i=Number(i),i>s&&(i=s)):i=s;var n=e.length;i>n/2&&(i=n/2);for(var a=0;a<i;++a){var c=parseInt(e.substr(a*2,2),16);if(sg(c))return a;r[t+a]=c}return a}l(CD,"hexWrite");function OD(r,e,t,i){return nd(rg(e,r.length-t),r,t,i)}l(OD,"utf8Write");function ED(r,e,t,i){return nd(HD(e),r,t,i)}l(ED,"asciiWrite");function DD(r,e,t,i){return nd(yw(e),r,t,i)}l(DD,"base64Write");function AD(r,e,t,i){return nd(UD(e,r.length-t),r,t,i)}l(AD,"ucs2Write");ye.prototype.write=l(function(e,t,i,s){if(t===void 0)s="utf8",i=this.length,t=0;else if(i===void 0&&typeof t=="string")s=t,i=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(i)?(i=i>>>0,s===void 0&&(s="utf8")):(s=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var n=this.length-t;if((i===void 0||i>n)&&(i=n),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");s||(s="utf8");for(var a=!1;;)switch(s){case"hex":return CD(this,e,t,i);case"utf8":case"utf-8":return OD(this,e,t,i);case"ascii":case"latin1":case"binary":return ED(this,e,t,i);case"base64":return DD(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return AD(this,e,t,i);default:if(a)throw new TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),a=!0}},"write");ye.prototype.toJSON=l(function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},"toJSON");function ID(r,e,t){return e===0&&t===r.length?Qm.fromByteArray(r):Qm.fromByteArray(r.slice(e,t))}l(ID,"base64Slice");function hw(r,e,t){t=Math.min(r.length,t);for(var i=[],s=e;s<t;){var n=r[s],a=null,c=n>239?4:n>223?3:n>191?2:1;if(s+c<=t){var d,o,p,g;
6switch(c){case 1:n<128&&(a=n);break;case 2:d=r[s+1],(d&192)===128&&(g=(n&31)<<6|d&63,g>127&&(a=g));break;case 3:d=r[s+1],o=r[s+2],(d&192)===128&&(o&192)===128&&(g=(n&15)<<12|(d&63)<<6|o&63,g>2047&&(g<55296||g>57343)&&(a=g));break;case 4:d=r[s+1],o=r[s+2],p=r[s+3],(d&192)===128&&(o&192)===128&&(p&192)===128&&(g=(n&15)<<18|(d&63)<<12|(o&63)<<6|p&63,g>65535&&g<1114112&&(a=g))}}a===null?(a=65533,c=1):a>65535&&(a-=65536,i.push(a>>>10&1023|55296),a=56320|a&1023),i.push(a),s+=c}return PD(i)}l(hw,"utf8Slice");var lw=4096;function PD(r){var e=r.length;if(e<=lw)return String.fromCharCode.apply(String,r);for(var t="",i=0;i<e;)t+=String.fromCharCode.apply(String,r.slice(i,i+=lw));return t}l(PD,"decodeCodePointsArray");function $D(r,e,t){var i="";t=Math.min(r.length,t);for(var s=e;s<t;++s)i+=String.fromCharCode(r[s]&127);return i}l($D,"asciiSlice");function FD(r,e,t){var i="";t=Math.min(r.length,t);for(var s=e;s<t;++s)i+=String.fromCharCode(r[s]);return i}l(FD,"latin1Slice");function MD(r,e,t){var i=r.length;(!e||e<0)&&(e=0),(!t||t<0||t>i)&&(t=i);for(var s="",n=e;n<t;++n)s+=jD[r[n]];return s}l(MD,"hexSlice");function RD(r,e,t){for(var i=r.slice(e,t),s="",n=0;n<i.length-1;n+=2)s+=String.fromCharCode(i[n]+i[n+1]*256);return s}l(RD,"utf16leSlice");ye.prototype.slice=l(function(e,t){var i=this.length;e=~~e,t=t===void 0?i:~~t,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<e&&(t=e);var s=this.subarray(e,t);return Object.setPrototypeOf(s,ye.prototype),s},"slice");function ur(r,e,t){if(r%1!==0||r<0)throw new RangeError("offset is not uint");if(r+e>t)throw new RangeError("Trying to access beyond buffer length")}l(ur,"checkOffset");ye.prototype.readUintLE=ye.prototype.readUIntLE=l(function(e,t,i){e=e>>>0,t=t>>>0,i||ur(e,t,this.length);for(var s=this[e],n=1,a=0;++a<t&&(n*=256);)s+=this[e+a]*n;return s},"readUIntLE");ye.prototype.readUintBE=ye.prototype.readUIntBE=l(function(e,t,i){e=e>>>0,t=t>>>0,i||ur(e,t,this.length);for(var s=this[e+--t],n=1;t>0&&(n*=256);)s+=this[e+--t]*n;return s},"readUIntBE");ye.prototype.readUint8=ye.prototype.readUInt8=l(function(e,t){return e=e>>>0,t||ur(e,1,this.length),this[e]},"readUInt8");ye.prototype.readUint16LE=ye.prototype.readUInt16LE=l(function(e,t){return e=e>>>0,t||ur(e,2,this.length),this[e]|this[e+1]<<8},"readUInt16LE");ye.prototype.readUint16BE=ye.prototype.readUInt16BE=l(function(e,t){return e=e>>>0,t||ur(e,2,this.length),this[e]<<8|this[e+1]},"readUInt16BE");ye.prototype.readUint32LE=ye.prototype.readUInt32LE=l(function(e,t){return e=e>>>0,t||ur(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},"readUInt32LE");ye.prototype.readUint32BE=ye.prototype.readUInt32BE=l(function(e,t){return e=e>>>0,t||ur(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},"readUInt32BE");ye.prototype.readIntLE=l(function(e,t,i){e=e>>>0,t=t>>>0,i||ur(e,t,this.length);for(var s=this[e],n=1,a=0;++a<t&&(n*=256);)s+=this[e+a]*n;return n*=128,s>=n&&(s-=Math.pow(2,8*t)),s},"readIntLE");ye.prototype.readIntBE=l(function(e,t,i){e=e>>>0,t=t>>>0,i||ur(e,t,this.length);for(var s=t,n=1,a=this[e+--s];s>0&&(n*=256);)a+=this[e+--s]*n;return n*=128,a>=n&&(a-=Math.pow(2,8*t)),a},"readIntBE");ye.prototype.readInt8=l(function(e,t){return e=e>>>0,t||ur(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},"readInt8");ye.prototype.readInt16LE=l(function(e,t){e=e>>>0,t||ur(e,2,this.length);var i=this[e]|this[e+1]<<8;return i&32768?i|4294901760:i},"readInt16LE");ye.prototype.readInt16BE=l(function(e,t){e=e>>>0,t||ur(e,2,this.length);var i=this[e+1]|this[e]<<8;return i&32768?i|4294901760:i},"readInt16BE");ye.prototype.readInt32LE=l(function(e,t){return e=e>>>0,t||ur(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},"readInt32LE");ye.prototype.readInt32BE=l(function(e,t){return e=e>>>0,t||ur(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},"readInt32BE");ye.prototype.readFloatLE=l(function(e,t){return e=e>>>0,t||ur(e,4,this.length),eo.read(this,e,!0,23,4)},"readFloatLE");ye.prototype.readFloatBE=l(function(e,t){return e=e>>>0,t||ur(e,4,this.length),eo.read(this,e,!1,23,4)},"readFloatBE");ye.prototype.readDoubleLE=l(function(e,t){return e=e>>>0,t||ur(e,8,this.length),eo.read(this,e,!0,52,8)},"readDoubleLE");ye.prototype.readDoubleBE=l(function(e,t){return e=e>>>0,t||ur(e,8,this.length),eo.read(this,e,!1,52,8)},"readDoubleBE");function Dr(r,e,t,i,s,n){if(!ye.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>s||e<n)throw new RangeError('"value" argument is out of bounds');if(t+i>r.length)throw new RangeError("Index out of range")}l(Dr,"checkInt");ye.prototype.writeUintLE=ye.prototype.writeUIntLE=l(function(e,t,i,s){if(e=+e,t=t>>>0,i=i>>>0,!s){var n=Math.pow(2,8*i)-1;Dr(this,e,t,i,n,0)}var a=1,c=0;for(this[t]=e&255;++c<i&&(a*=256);)this[t+c]=e/a&255;return t+i},"writeUIntLE");ye.prototype.writeUintBE=ye.prototype.writeUIntBE=l(function(e,t,i,s){if(e=+e,t=t>>>0,i=i>>>0,!s){var n=Math.pow(2,8*i)-1;Dr(this,e,t,i,n,0)}
6var a=i-1,c=1;for(this[t+a]=e&255;--a>=0&&(c*=256);)this[t+a]=e/c&255;return t+i},"writeUIntBE");ye.prototype.writeUint8=ye.prototype.writeUInt8=l(function(e,t,i){return e=+e,t=t>>>0,i||Dr(this,e,t,1,255,0),this[t]=e&255,t+1},"writeUInt8");ye.prototype.writeUint16LE=ye.prototype.writeUInt16LE=l(function(e,t,i){return e=+e,t=t>>>0,i||Dr(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},"writeUInt16LE");ye.prototype.writeUint16BE=ye.prototype.writeUInt16BE=l(function(e,t,i){return e=+e,t=t>>>0,i||Dr(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},"writeUInt16BE");ye.prototype.writeUint32LE=ye.prototype.writeUInt32LE=l(function(e,t,i){return e=+e,t=t>>>0,i||Dr(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},"writeUInt32LE");ye.prototype.writeUint32BE=ye.prototype.writeUInt32BE=l(function(e,t,i){return e=+e,t=t>>>0,i||Dr(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},"writeUInt32BE");ye.prototype.writeIntLE=l(function(e,t,i,s){if(e=+e,t=t>>>0,!s){var n=Math.pow(2,8*i-1);Dr(this,e,t,i,n-1,-n)}var a=0,c=1,d=0;for(this[t]=e&255;++a<i&&(c*=256);)e<0&&d===0&&this[t+a-1]!==0&&(d=1),this[t+a]=(e/c>>0)-d&255;return t+i},"writeIntLE");ye.prototype.writeIntBE=l(function(e,t,i,s){if(e=+e,t=t>>>0,!s){var n=Math.pow(2,8*i-1);Dr(this,e,t,i,n-1,-n)}var a=i-1,c=1,d=0;for(this[t+a]=e&255;--a>=0&&(c*=256);)e<0&&d===0&&this[t+a+1]!==0&&(d=1),this[t+a]=(e/c>>0)-d&255;return t+i},"writeIntBE");ye.prototype.writeInt8=l(function(e,t,i){return e=+e,t=t>>>0,i||Dr(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},"writeInt8");ye.prototype.writeInt16LE=l(function(e,t,i){return e=+e,t=t>>>0,i||Dr(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},"writeInt16LE");ye.prototype.writeInt16BE=l(function(e,t,i){return e=+e,t=t>>>0,i||Dr(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},"writeInt16BE");ye.prototype.writeInt32LE=l(function(e,t,i){return e=+e,t=t>>>0,i||Dr(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},"writeInt32LE");ye.prototype.writeInt32BE=l(function(e,t,i){return e=+e,t=t>>>0,i||Dr(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},"writeInt32BE");function pw(r,e,t,i,s,n){if(t+i>r.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}
6l(pw,"checkIEEE754");function mw(r,e,t,i,s){return e=+e,t=t>>>0,s||pw(r,e,t,4,34028234663852886e22,-34028234663852886e22),eo.write(r,e,t,i,23,4),t+4}l(mw,"writeFloat");ye.prototype.writeFloatLE=l(function(e,t,i){return mw(this,e,t,!0,i)},"writeFloatLE");ye.prototype.writeFloatBE=l(function(e,t,i){return mw(this,e,t,!1,i)},"writeFloatBE");function gw(r,e,t,i,s){return e=+e,t=t>>>0,s||pw(r,e,t,8,17976931348623157e292,-17976931348623157e292),eo.write(r,e,t,i,52,8),t+8}l(gw,"writeDouble");ye.prototype.writeDoubleLE=l(function(e,t,i){return gw(this,e,t,!0,i)},"writeDoubleLE");ye.prototype.writeDoubleBE=l(function(e,t,i){return gw(this,e,t,!1,i)},"writeDoubleBE");ye.prototype.copy=l(function(e,t,i,s){if(!ye.isBuffer(e))throw new TypeError("argument should be a Buffer");if(i||(i=0),!s&&s!==0&&(s=this.length),t>=e.length&&(t=e.length),t||(t=0),s>0&&s<i&&(s=i),s===i||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("sourceEnd out of bounds");s>this.length&&(s=this.length),e.length-t<s-i&&(s=e.length-t+i);var n=s-i;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,i,s):Uint8Array.prototype.set.call(e,this.subarray(i,s),t),n},"copy");ye.prototype.fill=l(function(e,t,i,s){if(typeof e=="string"){if(typeof t=="string"?(s=t,t=0,i=this.length):typeof i=="string"&&(s=i,i=this.length),s!==void 0&&typeof s!="string")throw new TypeError("encoding must be a string");if(typeof s=="string"&&!ye.isEncoding(s))throw new TypeError("Unknown encoding: "+s);if(e.length===1){var n=e.charCodeAt(0);(s==="utf8"&&n<128||s==="latin1")&&(e=n)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;t=t>>>0,i=i===void 0?this.length:i>>>0,e||(e=0);var a;if(typeof e=="number")for(a=t;a<i;++a)this[a]=e;else{var c=ye.isBuffer(e)?e:ye.from(e,s),d=c.length;if(d===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<i-t;++a)this[a+t]=c[a%d]}return this},"fill");var ND=/[^+/0-9A-Za-z-_]/g;function LD(r){if(r=r.split("=")[0],r=r.trim().replace(ND,""),r.length<2)return"";for(;r.length%4!==0;)r=r+"=";return r}l(LD,"base64clean");function rg(r,e){e=e||1/0;for(var t,i=r.length,s=null,n=[],a=0;a<i;++a){if(t=r.charCodeAt(a),t>55295&&t<57344){if(!s){if(t>56319){(e-=3)>-1&&n.push(239,191,189);continue}else if(a+1===i){(e-=3)>-1&&n.push(239,191,189);continue}s=t;continue}if(t<56320){(e-=3)>-1&&n.push(239,191,189),s=t;continue}t=(s-55296<<10|t-56320)+65536}else s&&(e-=3)>-1&&n.push(239,191,189);if(s=null,t<128){if((e-=1)<0)break;n.push(t)}else if(t<2048){if((e-=2)<0)break;n.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;n.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;n.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return n}l(rg,"utf8ToBytes");function HD(r){for(var e=[],t=0;t<r.length;++t)e.push(r.charCodeAt(t)&255);return e}l(HD,"asciiToBytes");function UD(r,e){for(var t,i,s,n=[],a=0;a<r.length&&!((e-=2)<0);++a)t=r.charCodeAt(a),i=t>>8,s=t%256,n.push(s),n.push(i);return n}l(UD,"utf16leToBytes");function yw(r){return Qm.toByteArray(LD(r))}l(yw,"base64ToBytes");function nd(r,e,t,i){for(var s=0;s<i&&!(s+t>=e.length||s>=r.length);++s)e[s+t]=r[s];return s}l(nd,"blitBuffer");function Yi(r,e){return r instanceof e||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===e.name}l(Yi,"isInstance");function sg(r){return r!==r}l(sg,"numberIsNaN");var jD=function(){for(var r="0123456789abcdef",e=new Array(256),t=0;t<16;++t)for(var i=t*16,s=0;s<16;++s)e[i+s]=r[t]+r[s];return e}()});var _w,ag,Eu,bw=ie(()=>{"use strict";_w=mt(vw());Hr();ag=class ag{constructor(e,t,i,s,n){Ie(this,"_getSignerDataWithUserDataAsDefault");Ie(this,"_stopUserSession");Ie(this,"_startUserSession");Ie(this,"_window");Ie(this,"_care2log");this._getSignerDataWithUserDataAsDefault=e,this._stopUserSession=t,this._startUserSession=i,this._window=s,this._care2log=n}execute(){let e=new URLSearchParams(this._window.location.search),t=new URLSearchParams(this._window.location.search),i=this._getSignerDataWithUserDataAsDefault.query(),s=Object.keys(i),n=!1,a=!0,c=!1,d={},o=!e.has("user-encoding-off");if(s.forEach(v=>{if(c)return;let m=e.get(v);if(m){n=!0;try{let w=o?_w.Buffer.from(m,"base64").toString("utf8"):m;if(c=w.includes("\uFFFD"),c){d[v]="";return}d[v]=w,i[v]!==w&&(a=!1)}catch(w){this._care2log(`Failed to decode key ${v} with value ${m}. Error: `+w.message).send("user_data_parsing_error")}}t.delete(v)}),!n)return St.createSuccessful("Nothing to do.");if(c)return St.createFailed("User data contains replacement characters.");t.delete("user-encoding-off");let p=t.toString(),g=this._window.location.pathname+(p?`?${p}`:"")+this._window.location.hash;return this._window.history.replaceState({},"",g),a||(this._stopUserSession.execute(),this._startUserSession.execute({signerData:d})),St.createSuccessful("user session loaded from url params")}};l(ag,"LoadUserSessionFromUrlParams");Eu=ag});var ww,Sw,xw=ie(()=>{bw();Tu();Gf();Va();ww=mt(qr()),Sw=new Eu(rs,Ka,Bi,window,ww.default)});var og,Du,kw=ie(()=>{"use strict";Hr();og=class og{createResponse(e,t,i={}
6){return new St({status:e,message:t,data:i})}createGenericErrorResponse(){return St.createFailed("An unknown error has occurred. Please try again later.",null)}};l(og,"ApplicationTranslator");Du=og});var ro,sd=ie(()=>{kw();ro=new Du});var Be,Vt=ie(()=>{w_();Va();Gf();jm();Ws();W0();ed();Z0();Gm();Tu();tw();xw();sd();xi();Be=new Jo({startUserSession:Bi,stopUserSession:Ka,resetUserSession:Kf,clearUserSessionCaches:K0,getCentralizedTracking:q0,getSignerDataWithUserDataAsDefault:rs,incrementSessionSequence:ew,getAllSessionData:fi,getUserLoggedInState:td,updateUserSession:Xa,loadUserSessionFromUrlParams:Sw,applicationTranslator:ro,systemLogger:Ut})});var Oi=Pe(Wr=>{"use strict";Wr.__esModule=!0;Wr.extend=Tw;Wr.indexOf=VD;Wr.escapeExpression=YD;Wr.isEmpty=GD;Wr.createFrame=KD;Wr.blockParams=ZD;Wr.appendContextPath=XD;var qD={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},WD=/[&<>"'`=]/g,BD=/[&<>"'`=]/;function zD(r){return qD[r]}l(zD,"escapeChar");function Tw(r){for(var e=1;e<arguments.length;e++)for(var t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&(r[t]=arguments[e][t]);return r}l(Tw,"extend");var ug=Object.prototype.toString;Wr.toString=ug;var lg=l(function(e){return typeof e=="function"},"isFunction");lg(/x/)&&(Wr.isFunction=lg=l(function(r){return typeof r=="function"&&ug.call(r)==="[object Function]"},"isFunction"));Wr.isFunction=lg;var Cw=Array.isArray||function(r){return r&&typeof r=="object"?ug.call(r)==="[object Array]":!1};Wr.isArray=Cw;function VD(r,e){for(var t=0,i=r.length;t<i;t++)if(r[t]===e)return t;return-1}l(VD,"indexOf");function YD(r){if(typeof r!="string"){if(r&&r.toHTML)return r.toHTML();if(r==null)return"";if(!r)return r+"";r=""+r}return BD.test(r)?r.replace(WD,zD):r}l(YD,"escapeExpression");function GD(r){return!r&&r!==0?!0:!!(Cw(r)&&r.length===0)}l(GD,"isEmpty");function KD(r){var e=Tw({},r);return e._parent=r,e}l(KD,"createFrame");function ZD(r,e){return r.path=e,r}l(ZD,"blockParams");function XD(r,e){return(r?r+".":"")+e}l(XD,"appendContextPath")});var is=Pe((ad,Ow)=>{"use strict";ad.__esModule=!0;var cg=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function fg(r,e){var t=e&&e.loc,i=void 0,s=void 0,n=void 0,a=void 0;t&&(i=t.start.line,s=t.end.line,n=t.start.column,a=t.end.column,r+=" - "+i+":"+n);for(var c=Error.prototype.constructor.call(this,r),d=0;d<cg.length;d++)this[cg[d]]=c[cg[d]];Error.captureStackTrace&&Error.captureStackTrace(this,fg);try{t&&(this.lineNumber=i,this.endLineNumber=s,Object.defineProperty?(Object.defineProperty(this,"column",{value:n,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=n,this.endColumn=a))}catch{}}l(fg,"Exception");fg.prototype=new Error;ad.default=fg;Ow.exports=ad.default});var Dw=Pe((od,Ew)=>{"use strict";od.__esModule=!0;var dg=Oi();od.default=function(r){r.registerHelper("blockHelperMissing",function(e,t){var i=t.inverse,s=t.fn;if(e===!0)return s(this);if(e===!1||e==null)return i(this);if(dg.isArray(e))return e.length>0?(t.ids&&(t.ids=[t.name]),r.helpers.each(e,t)):i(this);if(t.data&&t.ids){var n=dg.createFrame(t.data);n.contextPath=dg.appendContextPath(t.data.contextPath,t.name),t={data:n}}return s(e,t)})};Ew.exports=od.default});var Iw=Pe((ld,Aw)=>{"use strict";ld.__esModule=!0;function JD(r){return r&&r.__esModule?r:{default:r}}l(JD,"_interopRequireDefault");var Au=Oi(),QD=is(),eA=JD(QD);ld.default=function(r){r.registerHelper("each",function(e,t){if(!t)throw new eA.default("Must pass iterator to #each");var i=t.fn,s=t.inverse,n=0,a="",c=void 0,d=void 0;t.data&&t.ids&&(d=Au.appendContextPath(t.data.contextPath,t.ids[0])+"."),Au.isFunction(e)&&(e=e.call(this)),t.data&&(c=Au.createFrame(t.data));function o(w,b,S){c&&(c.key=w,c.index=b,c.first=b===0,c.last=!!S,d&&(c.contextPath=d+w)),a=a+i(e[w],{data:c,blockParams:Au.blockParams([e[w],w],[d+w,null])})}if(l(o,"execIteration"),e&&typeof e=="object")if(Au.isArray(e))for(var p=e.length;n<p;n++)n in e&&o(n,n,n===e.length-1);else if(typeof Symbol=="function"&&e[Symbol.iterator]){for(var g=[],v=e[Symbol.iterator](),m=v.next();!m.done;m=v.next())g.push(m.value);e=g;for(var p=e.length;n<p;n++)o(n,n,n===e.length-1)}else(function(){var w=void 0;Object.keys(e).forEach(function(b){w!==void 0&&o(w,n-1),w=b,n++}),w!==void 0&&o(w,n-1,!0)})();return n===0&&(a=s(this)),a})};Aw.exports=ld.default});var $w=Pe((ud,Pw)=>{"use strict";ud.__esModule=!0;function tA(r){return r&&r.__esModule?r:{default:r}}l(tA,"_interopRequireDefault");var rA=is(),iA=tA(rA);ud.default=function(r){r.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new iA.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};Pw.exports=ud.default});var Nw=Pe((cd,Rw)=>{"use strict";cd.__esModule=!0;function nA(r){return r&&r.__esModule?r:{default:r}}l(nA,"_interopRequireDefault");var Fw=Oi(),sA=is(),Mw=nA(sA);cd.default=function(r){r.registerHelper("if",function(e,t){if(arguments.length!=2)throw new Mw.default("#if requires exactly one argument");return Fw.isFunction(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||Fw.isEmpty(e)?t.inverse(this):t.fn(this)}),r.registerHelper("unless",function(e,t){if(arguments.length!=2)throw new Mw.default("#unless requires exactly one argument");return r.helpers.if.call(this,e,{fn:t.inverse,inverse:t.fn,hash:t.hash})})};Rw.exports=cd.default});var Hw=Pe((fd,Lw)=>{"use strict";fd.__esModule=!0;fd.default=function(r){r.registerHelper("log",function(){for(var e=[void 0],t=arguments[arguments.length-1],i=0;i<arguments.length-1;i++)e.push(arguments[i]);var s=1;t.hash.level!=null?s=t.hash.level:t.data&&t.data.level!=null&&(s=t.data.level),e[0]=s,r.log.apply(r,e)})};Lw.exports=fd.default});var jw=Pe((dd,Uw)=>{"use strict";dd.__esModule=!0;dd.default=function(r){r.registerHelper("lookup",function(e,t,i){return e&&i.lookupProperty(e,t)})};Uw.exports=dd.default});var Ww=Pe((hd,qw)=>{"use strict";hd.__esModule=!0;function aA(r){return r&&r.__esModule?r:{default:r}}l(aA,"_interopRequireDefault");var Iu=Oi(),oA=is(),lA=aA(oA);hd.default=function(r){r.registerHelper("with",function(e,t){if(arguments.length!=2)throw new lA.default("#with requires exactly one argument");Iu.isFunction(e)&&(e=e.call(this));var i=t.fn;if(Iu.isEmpty(e))return t.inverse(this);var s=t.data;return t.data&&t.ids&&(s=Iu.createFrame(t.data),s.contextPath=Iu.appendContextPath(t.data.contextPath,t.ids[0])),i(e,{data:s,blockParams:Iu.blockParams([e],[s&&s.contextPath])})})};qw.exports=hd.default});var hg=Pe(pd=>{"use strict";pd.__esModule=!0;pd.registerDefaultHelpers=xA;pd.moveHelperToHooks=kA;function Ys(r){return r&&r.__esModule?r:{default:r}}l(Ys,"_interopRequireDefault");var uA=Dw(),cA=Ys(uA),fA=Iw(),dA=Ys(fA),hA=$w(),pA=Ys(hA),mA=Nw(),gA=Ys(mA),yA=Hw(),vA=Ys(yA),_A=jw(),bA=Ys(_A),wA=Ww(),SA=Ys(wA);function xA(r){cA.default(r),dA.default(r),pA.default(r),gA.default(r),vA.default(r),bA.default(r),SA.default(r)}l(xA,"registerDefaultHelpers");function kA(r,e,t){r.helpers[e]&&(r.hooks[e]=r.helpers[e],t||delete r.helpers[e])}l(kA,"moveHelperToHooks")});var zw=Pe((md,Bw)=>{"use strict";md.__esModule=!0;var TA=Oi();md.default=function(r){r.registerDecorator("inline",function(e,t,i,s){var n=e;return t.partials||(t.partials={},n=l(function(a,c){var d=i.partials;i.partials=TA.extend({},d,t.partials);var o=e(a,c);return i.partials=d,o},"ret")),t.partials[s.args[0]]=s.fn,n})};Bw.exports=md.default});var Vw=Pe(pg=>{"use strict";
6pg.__esModule=!0;pg.registerDefaultDecorators=DA;function CA(r){return r&&r.__esModule?r:{default:r}}l(CA,"_interopRequireDefault");var OA=zw(),EA=CA(OA);function DA(r){EA.default(r)}l(DA,"registerDefaultDecorators")});var mg=Pe((gd,Yw)=>{"use strict";gd.__esModule=!0;var AA=Oi(),io={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:l(function(e){if(typeof e=="string"){var t=AA.indexOf(io.methodMap,e.toLowerCase());t>=0?e=t:e=parseInt(e,10)}return e},"lookupLevel"),log:l(function(e){if(e=io.lookupLevel(e),typeof console<"u"&&io.lookupLevel(io.level)<=e){var t=io.methodMap[e];console[t]||(t="log");for(var i=arguments.length,s=Array(i>1?i-1:0),n=1;n<i;n++)s[n-1]=arguments[n];console[t].apply(console,s)}},"log")};gd.default=io;Yw.exports=gd.default});var Gw=Pe(gg=>{"use strict";gg.__esModule=!0;gg.createNewLookupObject=PA;var IA=Oi();function PA(){for(var r=arguments.length,e=Array(r),t=0;t<r;t++)e[t]=arguments[t];return IA.extend.apply(void 0,[Object.create(null)].concat(e))}l(PA,"createNewLookupObject")});var yg=Pe(Pu=>{"use strict";Pu.__esModule=!0;Pu.createProtoAccessControl=RA;Pu.resultIsAllowed=NA;Pu.resetLoggedProperties=HA;function $A(r){return r&&r.__esModule?r:{default:r}}l($A,"_interopRequireDefault");var Kw=Gw(),FA=mg(),MA=$A(FA),yd=Object.create(null);function RA(r){var e=Object.create(null);e.constructor=!1,e.__defineGetter__=!1,e.__defineSetter__=!1,e.__lookupGetter__=!1;var t=Object.create(null);return t.__proto__=!1,{properties:{whitelist:Kw.createNewLookupObject(t,r.allowedProtoProperties),defaultValue:r.allowProtoPropertiesByDefault},methods:{whitelist:Kw.createNewLookupObject(e,r.allowedProtoMethods),defaultValue:r.allowProtoMethodsByDefault}}}l(RA,"createProtoAccessControl");function NA(r,e,t){return Zw(typeof r=="function"?e.methods:e.properties,t)}l(NA,"resultIsAllowed");function Zw(r,e){return r.whitelist[e]!==void 0?r.whitelist[e]===!0:r.defaultValue!==void 0?r.defaultValue:(LA(e),!1)}l(Zw,"checkWhiteList");function LA(r){yd[r]!==!0&&(yd[r]=!0,MA.default.log("error",'Handlebars: Access has been denied to resolve the property "'+r+`" because it is not an "own property" of its parent.
7You can add a runtime option to disable the check or this warning:
8See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}l(LA,"logUnexpecedPropertyAccessOnce");function HA(){Object.keys(yd).forEach(function(r){delete yd[r]})}l(HA,"resetLoggedProperties")});var wg=Pe(Gi=>{"use strict";Gi.__esModule=!0;
8Gi.HandlebarsEnvironment=bg;function Xw(r){return r&&r.__esModule?r:{default:r}}l(Xw,"_interopRequireDefault");var Gs=Oi(),UA=is(),vg=Xw(UA),jA=hg(),qA=Vw(),WA=mg(),vd=Xw(WA),BA=yg(),zA="4.7.8";Gi.VERSION=zA;var VA=8;Gi.COMPILER_REVISION=VA;var YA=7;Gi.LAST_COMPATIBLE_COMPILER_REVISION=YA;var GA={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};Gi.REVISION_CHANGES=GA;var _g="[object Object]";function bg(r,e,t){this.helpers=r||{},this.partials=e||{},this.decorators=t||{},jA.registerDefaultHelpers(this),qA.registerDefaultDecorators(this)}l(bg,"HandlebarsEnvironment");bg.prototype={constructor:bg,logger:vd.default,log:vd.default.log,registerHelper:l(function(e,t){if(Gs.toString.call(e)===_g){if(t)throw new vg.default("Arg not supported with multiple helpers");Gs.extend(this.helpers,e)}else this.helpers[e]=t},"registerHelper"),unregisterHelper:l(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:l(function(e,t){if(Gs.toString.call(e)===_g)Gs.extend(this.partials,e);else{if(typeof t>"u")throw new vg.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},"registerPartial"),unregisterPartial:l(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:l(function(e,t){if(Gs.toString.call(e)===_g){if(t)throw new vg.default("Arg not supported with multiple decorators");Gs.extend(this.decorators,e)}else this.decorators[e]=t},"registerDecorator"),unregisterDecorator:l(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:l(function(){BA.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var KA=vd.default.log;Gi.log=KA;Gi.createFrame=Gs.createFrame;Gi.logger=vd.default});var Qw=Pe((_d,Jw)=>{"use strict";_d.__esModule=!0;function Sg(r){this.string=r}l(Sg,"SafeString");Sg.prototype.toString=Sg.prototype.toHTML=function(){return""+this.string};_d.default=Sg;Jw.exports=_d.default});var eS=Pe(xg=>{"use strict";xg.__esModule=!0;xg.wrapHelper=ZA;function ZA(r,e){if(typeof r!="function")return r;var t=l(function(){var s=arguments[arguments.length-1];return arguments[arguments.length-1]=e(s),r.apply(this,arguments)},"wrapper");return t}l(ZA,"wrapHelper")});var sS=Pe(ns=>{"use strict";ns.__esModule=!0;ns.checkRevision=rI;ns.template=iI;ns.wrapProgram=bd;ns.resolvePartial=nI;ns.invokePartial=sI;ns.noop=iS;function XA(r){return r&&r.__esModule?r:{default:r}}l(XA,"_interopRequireDefault");function JA(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e.default=r,e}l(JA,"_interopRequireWildcard");var QA=Oi(),bn=JA(QA),eI=is(),wn=XA(eI),Sn=wg(),tS=hg(),tI=eS(),rS=yg();function rI(r){var e=r&&r[0]||1,t=Sn.COMPILER_REVISION;if(!(e>=Sn.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Sn.COMPILER_REVISION))if(e<Sn.LAST_COMPATIBLE_COMPILER_REVISION){var i=Sn.REVISION_CHANGES[t],s=Sn.REVISION_CHANGES[e];throw new wn.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+i+") or downgrade your runtime to an older version ("+s+").")}else throw new wn.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+r[1]+").")}l(rI,"checkRevision");function iI(r,e){if(!e)throw new wn.default("No environment passed to template");if(!r||!r.main)throw new wn.default("Unknown template object: "+typeof r);r.main.decorator=r.main_d,e.VM.checkRevision(r.compiler);var t=r.compiler&&r.compiler[0]===7;function i(a,c,d){d.hash&&(c=bn.extend({},c,d.hash),d.ids&&(d.ids[0]=!0)),a=e.VM.resolvePartial.call(this,a,c,d);var o=bn.extend({},d,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),p=e.VM.invokePartial.call(this,a,c,o);if(p==null&&e.compile&&(d.partials[d.name]=e.compile(a,r.compilerOptions,e),p=d.partials[d.name](c,o)),p!=null){if(d.indent){for(var g=p.split(`
9`),v=0,m=g.length;v<m&&!(!g[v]&&v+1===m);v++)g[v]=d.indent+g[v];p=g.join(`
10`)}return p}else throw new wn.default("The partial "+d.name+" could not be compiled when running in runtime-only mode")}l(i,"invokePartialWrapper");var s={strict:l(function(c,d,o){if(!c||!(d in c))throw new wn.default('"'+d+'" not defined in '+c,{loc:o});return s.lookupProperty(c,d)},"strict"),lookupProperty:l(function(c,d){var o=c[d];if(o==null||Object.prototype.hasOwnProperty.call(c,d)||rS.resultIsAllowed(o,s.protoAccessControl,d))return o},"lookupProperty"),lookup:l(function(c,d){for(var o=c.length,p=0;p<o;p++){var g=c[p]&&s.lookupProperty(c[p],d);if(g!=null)return c[p][d]}},"lookup"),lambda:l(function(c,d){return typeof c=="function"?c.call(d):c},"lambda"),escapeExpression:bn.escapeExpression,invokePartial:i,fn:l(function(c){var d=r[c];return d.decorator=r[c+"_d"],d},"fn"),programs:[],program:l(function(c,d,o,p,g){var v=this.programs[c],m=this.fn(c);return d||g||p||o?v=bd(this,c,m,d,o,p,g):v||(v=this.programs[c]=bd(this,c,m)),v},"program"),data:l(function(c,d){for(;c&&d--;)c=c._parent;return c},"data"),mergeIfNeeded:l(function(c,d){var o=c||d;return c&&d&&c!==d&&(o=bn.extend({},d,c)),o},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:r.compiler};function n(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],d=c.data;n._setup(c),!c.partial&&r.useData&&(d=aI(a,d));var o=void 0,p=r.useBlockParams?[]:void 0;r.useDepths&&(c.depths?o=a!=c.depths[0]?[a].concat(c.depths):c.depths:o=[a]);function g(v){return""+r.main(s,v,s.helpers,s.partials,d,p,o)}return l(g,"main"),g=nS(r.main,g,s,c.depths||[],d,p),g(a,c)}
10return l(n,"ret"),n.isTop=!0,n._setup=function(a){if(a.partial)s.protoAccessControl=a.protoAccessControl,s.helpers=a.helpers,s.partials=a.partials,s.decorators=a.decorators,s.hooks=a.hooks;else{var c=bn.extend({},e.helpers,a.helpers);oI(c,s),s.helpers=c,r.usePartial&&(s.partials=s.mergeIfNeeded(a.partials,e.partials)),(r.usePartial||r.useDecorators)&&(s.decorators=bn.extend({},e.decorators,a.decorators)),s.hooks={},s.protoAccessControl=rS.createProtoAccessControl(a);var d=a.allowCallsToHelperMissing||t;tS.moveHelperToHooks(s,"helperMissing",d),tS.moveHelperToHooks(s,"blockHelperMissing",d)}},n._child=function(a,c,d,o){if(r.useBlockParams&&!d)throw new wn.default("must pass block params");if(r.useDepths&&!o)throw new wn.default("must pass parent depths");return bd(s,a,r[a],c,0,d,o)},n}l(iI,"template");function bd(r,e,t,i,s,n,a){function c(d){var o=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=a;return a&&d!=a[0]&&!(d===r.nullContext&&a[0]===null)&&(p=[d].concat(a)),t(r,d,r.helpers,r.partials,o.data||i,n&&[o.blockParams].concat(n),p)}return l(c,"prog"),c=nS(t,c,r,a,i,n),c.program=e,c.depth=a?a.length:0,c.blockParams=s||0,c}l(bd,"wrapProgram");function nI(r,e,t){return r?!r.call&&!t.name&&(t.name=r,r=t.partials[r]):t.name==="@partial-block"?r=t.data["partial-block"]:r=t.partials[t.name],r}l(nI,"resolvePartial");function sI(r,e,t){var i=t.data&&t.data["partial-block"];t.partial=!0,t.ids&&(t.data.contextPath=t.ids[0]||t.data.contextPath);var s=void 0;if(t.fn&&t.fn!==iS&&function(){t.data=Sn.createFrame(t.data);var n=t.fn;s=t.data["partial-block"]=l(function(c){var d=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return d.data=Sn.createFrame(d.data),d.data["partial-block"]=i,n(c,d)},"partialBlockWrapper"),n.partials&&(t.partials=bn.extend({},t.partials,n.partials))}(),r===void 0&&s&&(r=s),r===void 0)throw new wn.default("The partial "+t.name+" could not be found");if(r instanceof Function)return r(e,t)}l(sI,"invokePartial");function iS(){return""}l(iS,"noop");function aI(r,e){return(!e||!("root"in e))&&(e=e?Sn.createFrame(e):{},e.root=r),e}l(aI,"initData");function nS(r,e,t,i,s,n){if(r.decorator){var a={};e=r.decorator(e,a,t,i&&i[0],s,n,i),bn.extend(e,a)}return e}l(nS,"executeDecorators");function oI(r,e){Object.keys(r).forEach(function(t){var i=r[t];r[t]=lI(i,e)})}l(oI,"wrapHelpersToPassLookupProperty");function lI(r,e){var t=e.lookupProperty;return tI.wrapHelper(r,function(i){return bn.extend({lookupProperty:t},i)})}l(lI,"passLookupPropertyOption")});var oS=Pe((wd,aS)=>{"use strict";wd.__esModule=!0;wd.default=function(r){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;r.noConflict=function(){return globalThis.Handlebars===r&&(globalThis.Handlebars=e),r}};aS.exports=wd.default});var dS=Pe((Sd,fS)=>{"use strict";Sd.__esModule=!0;function Tg(r){return r&&r.__esModule?r:{default:r}}l(Tg,"_interopRequireDefault");function Cg(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e.default=r,e}l(Cg,"_interopRequireWildcard");var uI=wg(),lS=Cg(uI),cI=Qw(),fI=Tg(cI),dI=is(),hI=Tg(dI),pI=Oi(),kg=Cg(pI),mI=sS(),uS=Cg(mI),gI=oS(),yI=Tg(gI);function cS(){var r=new lS.HandlebarsEnvironment;return kg.extend(r,lS),r.SafeString=fI.default,r.Exception=hI.default,r.Utils=kg,r.escapeExpression=kg.escapeExpression,r.VM=uS,r.template=function(e){return uS.template(e,r)},r}l(cS,"create");var $u=cS();$u.create=cS;yI.default($u);$u.default=$u;Sd.default=$u;fS.exports=Sd.default});var Br=Pe((uU,hS)=>{hS.exports=dS().default});var no,Rt,zr=ie(()=>{no=mt(Br());Vr();zr();no.registerHelper({});no.registerPartial({ButtonStates:Nt,signatures:Rt});Rt=no.template({1:function(r,e,t,i,s){var n,a=e??(r.nullContext||{}),c=r.lambda,d=r.escapeExpression,o=r.lookupProperty||function(p,g){if(Object.prototype.hasOwnProperty.call(p,g))return p[g]};return'    <div class="signature'+((n=o(t,"if").call(a,e!=null?o(e,"className"):e,{name:"if",hash:{},fn:r.program(2,s,0),inverse:r.noop,data:s,loc:{start:{line:2,column:25},end:{line:2,column:63}}}))!=null?n:"")+`">
11        <div class="signature__name">`+d(c(e!=null?o(e,"name"):e,e))+`</div>
12        <div class="signature__location">`+d(c(e!=null?o(e,"location"):e,e))+`</div>
13        <div class="signature__date">`+d(c(e!=null?o(e,"date"):e,e))+`</div>
14        <div class="signature__answer`+((n=o(t,"if").call(a,e!=null?o(e,"answer"):e,{name:"if",hash:{},fn:r.program(4,s,0),inverse:r.program(6,s,0),data:s,loc:{start:{line:6,column:37},end:{line:6,column:77}}}))!=null?n:"")+'">'+d(c(e!=null?o(e,"answer"):e,e))+`</div>
15    </div>
16`},2:function(r,e,t,i,s){var n=r.lookupProperty||function(a,c){if(Object.prototype.hasOwnProperty.call(a,c))return a[c]};return" "+r.escapeExpression(r.lambda(e!=null?n(e,"className"):e,e))},4:function(r,e,t,i,s){return""},6:function(r,e,t,i,s){return" empty"},compiler:[8,">= 4.3.0"],main:function(r,e,t,i,s){var n,a=r.lookupProperty||function(c,d){if(Object.prototype.hasOwnProperty.call(c,d))return c[d]};
16return(n=a(t,"each").call(e??(r.nullContext||{}),e!=null?a(e,"signatures"):e,{name:"each",hash:{},fn:r.program(1,s,0),inverse:r.noop,data:s,loc:{start:{line:1,column:0},end:{line:8,column:9}}}))!=null?n:""},useData:!0})});var so,Nt,Vr=ie(()=>{so=mt(Br());Vr();zr();so.registerHelper({});so.registerPartial({ButtonStates:Nt,signatures:Rt});Nt=so.template({compiler:[8,">= 4.3.0"],main:function(r,e,t,i,s){var n,a=r.lookupProperty||function(c,d){if(Object.prototype.hasOwnProperty.call(c,d))return c[d]};return'<div class="ready">'+((n=r.invokePartial(a(i,"@partial-block"),e,{name:"@partial-block",data:s,helpers:t,partials:i,decorators:r.decorators}))!=null?n:"")+`</div>
17<div class="loading"><div class="leftEye"></div><div class="rightEye"></div><div class="mouth"></div></div>
18<div class="sending done"><div class="leftEye"></div><div class="rightEye"></div><div class="mouth"></div></div>`},usePartial:!0,useData:!0})});var ao,pS,mS=ie(()=>{ao=mt(Br());Vr();zr();ao.registerHelper({});ao.registerPartial({ButtonStates:Nt,signatures:Rt});pS=ao.template({compiler:[8,">= 4.3.0"],main:function(r,e,t,i,s){var n,a=r.lookupProperty||function(c,d){if(Object.prototype.hasOwnProperty.call(c,d))return c[d]};return`<span class="c2-generic-site-banner__content">
19    `+((n=r.lambda(e!=null?a(e,"innerBannerHTML"):e,e))!=null?n:"")+`
20</span>
21<button
22    class="c2-generic-site-banner__okay-button"
23    aria-label="Close banner"
24>Okay</button>`},useData:!0})});var gS,yS=ie(()=>{gS="c2-generic-site-banner{position:fixed;left:50%;bottom:calc(15px + env(safe-area-inset-bottom));box-sizing:border-box;width:min(400px,100vw - 16px);height:auto;max-height:calc(100vh - 30px);overflow:auto;padding:8px 7px 2px 7px;border:4px solid #27ae60;background-color:#fff;display:grid;grid-template:auto/auto;align-items:center;font-size:1rem;box-shadow:rgba(0,0,0,.5333333333) 0 2px 4px;transform:translateX(-50%)}@supports(height: 100dvh){c2-generic-site-banner{max-height:calc(100dvh - 30px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}}c2-generic-site-banner a{text-decoration:underline}.c2-generic-site-banner__okay-button{color:#fff;padding:5px 10px;border-radius:5px;width:fit-content;font-weight:bold;background-color:#27ae60;border:none;margin:4px 0 8px;justify-self:center}.c2-generic-site-banner__okay-button:hover{cursor:pointer}"});var xd,vS,kd,_S,Td,bS,Og,Fu,wS=ie(()=>{Og=class Og extends HTMLElement{constructor(){super();xe(this,xd);xe(this,kd);xe(this,Td);Ie(this,"_UUID");Ie(this,"_initialRenderCompleted",!1);Ie(this,"_hasNestedHTMLFromSourceDocument",!1);this._UUID=Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}static defineCustomElement(){let t="c2-"+this.name.replace("_","").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();customElements.get(t)||customElements.define(t,this)}get hasNestedHTMLFromSourceDocument(){return this.getAttribute("hasNestedHTMLFromSourceDocument")||this._hasNestedHTMLFromSourceDocument}get _isUsingShadowRoot(){return!!this.shadowRoot}connectedCallback(){this._initialRenderCompleted||(this.hasNestedHTMLFromSourceDocument?setTimeout(()=>{this._render()},0):this._render())}_render(){Ot(this,xd,vS).call(this),Ot(this,kd,_S).call(this)}_html(){throw new Error("C2WebComponent._html() must be implemented.")}_style(){return""}_htmlToElm(t){if(t instanceof HTMLElement)return t;let i=document.createElement("div");return i.innerHTML=t,i.childNodes.length===1?i.childNodes[0]:i.childNodes}};xd=new WeakSet,vS=l(function(){if(this._style()){if(this._isUsingShadowRoot)this.shadowRoot.innerHTML=`<style>${this._style()}</style>`;else if(!document.querySelector(`head style[data-component="${this.constructor.name}"]`)){let t=document.createElement("style");t.textContent=this._style(),t.dataset.component=this.constructor.name,document.head.insertBefore(t,document.head.firstChild)}}},"#renderStyle"),kd=new WeakSet,_S=l(function(){if(Ot(this,Td,bS).call(this))return;let t=this._html();this._isUsingShadowRoot?this.shadowRoot.innerHTML+=t:this.innerHTML+=t},"#renderHtml"),Td=new WeakSet,bS=l(function(){let t=l(n=>n.trim().substring(0,20).replace(/"/g,"'"),"fnGetNormalized20Chars"),i=t(this.innerHTML),s=t(this._html());return i===s},"#doesServerSideRenderedHtmlMatchComponentHtml"),l(Og,"C2WebComponent");Fu=Og});var Ks,Cd,Eg,SS=ie(()=>{mS();yS();wS();Ks=class Ks extends Fu{constructor(t){super();Ie(this,"_innerBannerHTML","");Ie(this,"_elmContent");this._innerBannerHTML=t}_html(){return pS({innerBannerHTML:this._innerBannerHTML})}_style(){return gS}_render(){super._render(),this._innerBannerHTML="",this.querySelector(".c2-generic-site-banner__okay-button").addEventListener("click",()=>{this.remove(),this.dispatchEvent(new CustomEvent(Ks.EVENT_BANNER_CLOSED,{}))}),this._elmContent=this.querySelector(".c2-generic-site-banner__content")}updateInnerBannerHTML(t){this._elmContent.innerHTML=t}static createInstance(t,i=()=>{}){let s=new Ks(t);return s.addEventListener(Ks.EVENT_BANNER_CLOSED,i),s}};l(Ks,"GenericSiteBanner"),Ie(Ks,"EVENT_BANNER_CLOSED","bannerClosed");Cd=Ks;Cd.defineCustomElement();Eg=Cd});async function Od(r,e={}){let t=await fetch(r,{credentials:"same-origin",...e,headers:{"Content-Type":"application/json",...e.headers||{}}}),i=await t.text(),s;try{s=i?JSON.parse(i):null}catch{s={status:"error",message:"Invalid JSON response",raw:i}}if(!t.ok){let n=s?.message||s?.error||t.statusText,a=new Error(n);throw a.status=t.status,a.payload=s,a}return s}var xS=ie(()=>{l(Od,"fetchJson")});function TS(){return Od(kS.currentTPS,{method:"GET"})}function CS(){return Od(kS.currentCare2,{method:"GET"})}var kS,OS=ie(()=>{xS();kS={currentTPS:"/tps_servlets/site_notification/current",currentCare2:"/servlets/site_notification/current"};l(TS,"getCurrentSiteNotificationForTPS");l(CS,"getCurrentSiteNotificationForCare2")});var Dg,Zs,Ed,Dd,Ag=ie(()=>{SS();Dg=mt(ts());OS();
24Zs=class Zs extends Eg{static createSiteNotificationKey(e,t){return`${e}::${t}`}static async checkForAndDisplaySiteNotification(e){let s=(await(e?CS:TS)())?.data;if(!s?.alias||!s?.last_updated||!s?.html)return;let n=Zs.createSiteNotificationKey(s.alias,s.last_updated);if(Dg.default.get(Zs.COOKIE_NAME)===n)return;let d=Eg.createInstance(s.html);document.body.append(d),Dg.default.set(Zs.COOKIE_NAME,n,{expires:60*60*24*365,path:"/",samesite:"Lax"})}};l(Zs,"SiteNotification"),Ie(Zs,"COOKIE_NAME","c2_site_notification");Ed=Zs;Ed.defineCustomElement();Dd=Ed});var vI={};var Ig=ie(()=>{Vt();gr();Ag();Dd.checkForAndDisplaySiteNotification(!0);Be.startUserSession({userData:{country:window.geoIpCountry||"us"},languageCode:window.languageCode??"en-us"});dt.isDevEnvironment()&&(window.c2Dev={sessionController:Be})});function Yr(r,e="",t={}){return _I(r,e,t)}var _I,Xs=ie(()=>{_I=ui();l(Yr,"default")});function Mu(){return dt.getPetitionSiteURL()}var Pg=ie(()=>{gr();l(Mu,"petition_site_url")});var oo,ES,DS=ie(()=>{oo=mt(Br());Xs();Pg();Vr();zr();oo.registerHelper({translate:Yr,petition_site_url:Mu});oo.registerPartial({ButtonStates:Nt,signatures:Rt});ES=oo.template({1:function(r,e,t,i,s){return"hidden"},3:function(r,e,t,i,s){return"email"},5:function(r,e,t,i,s){var n,a=r.lookupProperty||function(c,d){if(Object.prototype.hasOwnProperty.call(c,d))return c[d]};return r.escapeExpression(r.lambda((n=e!=null?a(e,"user"):e)!=null?a(n,"email"):n,e))},compiler:[8,">= 4.3.0"],main:function(r,e,t,i,s){var n,a=e??(r.nullContext||{}),c=r.escapeExpression,d=r.lambda,o=r.lookupProperty||function(p,g){if(Object.prototype.hasOwnProperty.call(p,g))return p[g]};return"<h3>"+c(o(t,"translate").call(a,"onsite_feedback_form",{name:"translate",hash:{},data:s,loc:{start:{line:1,column:4},end:{line:1,column:40}}}))+`</h3>
25<p>`+c(o(t,"translate").call(a,"problem_on_this_page_blurb",{name:"translate",hash:{},data:s,loc:{start:{line:2,column:3},end:{line:2,column:45}}}))+`</p>
26<form action="`+c(o(t,"petition_site_url").call(a,{name:"petition_site_url",hash:{},data:s,loc:{start:{line:3,column:14},end:{line:3,column:35}}}))+`/tps_servlets/help_support.php" method="post">
27    <input type="hidden" name="cs[current_url]" value="`+c(d((n=e!=null?o(e,"location"):e)!=null?o(n,"href"):n,e))+`" />
28    <input type="hidden" name="cs[referrer_url]" value="`+c(d((n=e!=null?o(e,"document"):e)!=null?o(n,"referrer"):n,e))+`" />
29    <input type="hidden" name="cs[userAgent]" value="`+c(d((n=e!=null?o(e,"navigator"):e)!=null?o(n,"userAgent"):n,e))+`" />
30    <input type="`+((n=o(t,"if").call(a,(n=e!=null?o(e,"user"):e)!=null?o(n,"email"):n,{name:"if",hash:{},fn:r.program(1,s,0),inverse:r.program(3,s,0),data:s,loc:{start:{line:7,column:17},end:{line:7,column:61}}}))!=null?n:"")+'" name="cs[email]" value="'+((n=o(t,"if").call(a,(n=e!=null?o(e,"user"):e)!=null?o(n,"email"):n,{name:"if",hash:{},fn:r.program(5,s,0),inverse:r.noop,data:s,loc:{start:{line:7,column:87},end:{line:7,column:126}}}))!=null?n:"")+'" placeholder="'+c(o(t,"translate").call(a,"email_address",{name:"translate",hash:{},data:s,loc:{start:{line:7,column:141},end:{line:7,column:170}}}))+`" />
31    <textarea name="cs[message]"></textarea>
32    <div class="buttons"><a href="#">`+c(o(t,"translate").call(a,"send_feedback",{name:"translate",hash:{},data:s,loc:{start:{line:9,column:37},end:{line:9,column:66}}}))+`</a></div>
33</form>`},useData:!0})});var Mg=Pe((KU,IS)=>{var AS=Ci(),$g=ki(),Ad=class Ad{constructor(e,t,i=!0,s=!1){if(!e)return;let n=`<div id="${e}">
34                <input type="checkbox" id="${e}Trigger" class="modal-state" checked="checked" />
35                <div class="modal-fade-screen">
36                    <div class="modal-inner">`;s||(n+=`<label class="modal-close" for="${e}Trigger"></label>`),n+="</div></div></div>",this.$element=$(n),this.$element.find(".modal-inner").append(t),this.id=e,this.trigger=this.$element.find("#"+e+"Trigger"),this.cleanUpOnClose=i,$g.elements.add(e,this.$element),this.$element.find(".modal-inner").hover(a=>{a.type==="mouseenter"?this.$element.addClass("hover"):a.type==="mouseleave"&&this.$element.removeClass("hover")}
36),this.$element.find(".modal-fade-screen").click({modal:this},a=>{a.target===a.currentTarget&&(this.$element.hasClass("hover")||s||this.hide())}),this.cleanUpOnClose&&this.trigger.change({modal:this},a=>{$(a.target).is(":checked")||a.data.modal.hide()})}addRootClass(e){this.$element.addClass(e)}set $element(e){this._$element=e}get $element(){return this._$element}get element(){return this.$element}set element(e){this.$element=e}setOnClosedEventHandler(e){return this.onClosed=e,this}show(e=document.body){AS("$element.get",this)&&!document.body.contains(this.$element.get(0))&&$(e).append(this.$element),this.trigger.prop("checked",!0)}hide(e=!1){let t=AS("onClosed",this,"missing");typeof t=="function"&&!e&&t(),this.cleanUpOnClose?$g.elements.remove(this.id):this.trigger.prop("checked",!1)}remove(){this.cleanUpOnClose=!0,this.hide()}hideByID(e,t=!1){t?$g.elements.remove("$"+e):$("#"+e+"Trigger").prop("checked",!1)}showByID(e){$("#"+e+"Trigger").prop("checked",!0)}static createGenericModal(e,t=!0){return new Ad("generic-modal",e,t)}};l(Ad,"Modal");var Fg=Ad;IS.exports=Fg});var Lg=Pe((JU,PS)=>{Vt();var bI=Mg(),wI=qr(),Ng=class Ng{constructor(e,t){this.id=e,this.modal=new bI(e,t),setTimeout(()=>{this.modal.show(),this.modal.element.find("form").on("submit",i=>{i.preventDefault();let s=$(i.currentTarget),n=s.attr("action"),a=s.serialize(),c=Be.getAllSessionData();a+="&sessionID="+c.sessionID,$.post(n,a).then(d=>{if(d.success==1){let o=a.split("&").reduce((p,g)=>{var v=g.split("=");return p[v[0]]=v[1]||!0,p},{});wI(`sessionID = ${c.sessionID}`).send("SITE_FEEDBACK")}this.modal.hide()})}),this.modal.element.find(".buttons a").on("click",i=>{i.preventDefault(),this.modal.element.find("form").submit()})},250)}};l(Ng,"Support");var Rg=Ng;PS.exports=Rg});var MS=Pe((t3,FS)=>{Vt();var SI=ki(),xI=Ci(),kI=$f(),$S=Be.getAllSessionData();FS.exports=l(function(){let e=$(".language_selector");e.length&&e.find("a").click(t=>{t.preventDefault();let s=$(t.target).attr("rel"),n=$S.languageCode?$S.languageCode.split("-")[0]:kI.defaultLanguage;s!==n&&$.post("/servlets/localization/url.php",{languageCode:s,url:document.location.href},a=>{Be.updateUserSession({languageCode:s});let c=SI.setURL({language:s});location.href=xI("data.url",a,c)})})},"languageSelector")});var lo,RS,NS=ie(()=>{lo=mt(Br());Xs();Pg();Vr();zr();lo.registerHelper({translate:Yr,petition_site_url:Mu});lo.registerPartial({ButtonStates:Nt,signatures:Rt});RS=lo.template({1:function(r,e,t,i,s){var n=r.lookupProperty||function(a,c){if(Object.prototype.hasOwnProperty.call(a,c))return a[c]};return r.escapeExpression(n(t,"translate").call(e??(r.nullContext||{}),"MediaInquiryForm-description","Contact the Care2 Media Relations team:",{name:"translate",hash:{},data:s,loc:{start:{line:2,column:16},end:{line:2,column:102}}}))},3:function(r,e,t,i,s){var n=r.lookupProperty||function(a,c){if(Object.prototype.hasOwnProperty.call(a,c))return a[c]};return r.escapeExpression(n(t,"translate").call(e??(r.nullContext||{}),"MediaInquiryForm-description-care2","Contact the Care2 Media Relations team:",{name:"translate",hash:{},data:s,loc:{start:{line:2,column:110},end:{line:2,column:202}}}))},5:function(r,e,t,i,s){return"hidden"},7:function(r,e,t,i,s){return"email"},9:function(r,e,t,i,s){var n,a=r.lookupProperty||function(c,d){if(Object.prototype.hasOwnProperty.call(c,d))return c[d]};return r.escapeExpression(r.lambda((n=e!=null?a(e,"user"):e)!=null?a(n,"email"):n,e))},compiler:[8,">= 4.3.0"],main:function(r,e,t,i,s){var n,a=e??(r.nullContext||{}),c=r.escapeExpression,d=r.lambda,o=r.lookupProperty||function(p,g){if(Object.prototype.hasOwnProperty.call(p,g))return p[g]};return"<h3>"+c(o(t,"translate").call(a,"MediaInquiryForm-title","Media Inquiry",{name:"translate",hash:{},data:s,loc:{start:{line:1,column:4},end:{line:1,column:58}}}))+`</h3>
37<p>`+((n=o(t,"if").call(a,e!=null?o(e,"isTPS"):e,{name:"if",hash:{},fn:r.program(1,s,0),inverse:r.program(3,s,0),data:s,loc:{start:{line:2,column:3},end:{line:2,column:209}}}))!=null?n:"")+`</p>
38<form action="`+c(o(t,"petition_site_url").call(a,{name:"petition_site_url",hash:{},data:s,loc:{start:{line:3,column:14},end:{line:3,column:35}}}))+`/tps_servlets/media_inquiry.php" method="post">
39    <input type="hidden" name="cs[current_url]" value="`+c(d((n=e!=null?o(e,"location"):e)!=null?o(n,"href"):n,e))+`" />
40    <input type="hidden" name="cs[petitionTitle]" value="`+c(d(e!=null?o(e,"petitionTitle"):e,e))+`" />
41    <input type="`+((n=o(t,"if").call(a,(n=e!=null?o(e,"user"):e)!=null?o(n,"email"):n,{name:"if",hash:{},fn:r.program(5,s,0),inverse:r.program(7,s,0),data:s,loc:{start:{line:6,column:17},end:{line:6,column:61}}}))!=null?n:"")+'" name="cs[email]" value="'+((n=o(t,"if").call(a,(n=e!=null?o(e,"user"):e)!=null?o(n,"email"):n,{name:"if",hash:{},fn:r.program(9,s,0),inverse:r.noop,data:s,loc:{start:{line:6,column:87},end:{line:6,column:126}}}))!=null?n:"")+'" placeholder="'+c(o(t,"translate").call(a,"email_address",{name:"translate",hash:{},data:s,loc:{start:{line:6,column:141},end:{line:6,column:170}}}))+`" />
42    <textarea name="cs[message]">`+c(o(t,"translate").call(a,"MediaInquiryForm-body","Media Inquiry",{name:"translate",hash:{},data:s,loc:{start:{line:7,column:33},end:{line:7,column:86}}}))+" -- "+c(d((n=e!=null?o(e,"location"):e)!=null?o(n,"href"):n,e))+`</textarea>
43    <div class="buttons"><a href="#">`+c(o(t,"translate").call(a,"MediaInquiryForm-button","Send Inquiry",{name:"translate",hash:{},data:s,loc:{start:{line:8,column:37},end:{line:8,column:91}}}))+`</a></div>
44</form>
45`},useData:!0}
45)});var HS=Pe((l3,LS)=>{var TI=ui();function CI(r,e=!1){let t=location.href,i=r.petitionURL.split("thepetitionsite.com")[1];e&&(i+="?"+e),history.pushState({state:1},TI("petition")+": "+r.title,i);let s=location.href,n=t.match(/\d{3}\/\d{3}\/\d{3}\//)?t.match(/\d{3}\/\d{3}\/\d{3}/)[0]:!1,a=s.match(/\d{3}\/\d{3}\/\d{3}\//)?s.match(/\d{3}\/\d{3}\/\d{3}/)[0]:!1,c=t.match(/TAP=\d*/)?t.match(/TAP=\d*/)[0]:!1,d=t.match(/TAP=\d*/)?t.match(/TAP=\d*/)[0]:!1;n===a&&c!==d&&care2log("changeURL removed ?TAP! : oldLocationHref: %o, newLocationHref: %o",t,s).send("changeURL_removed_TAP",page)}l(CI,"changeURL");LS.exports=CI});function US(){let r,e;return{promise:new Promise((i,s)=>{r=i,e=s}),resolve:r,reject:e}}var jS=ie(()=>{l(US,"withResolvers")});var qS,WS,BS=ie(()=>{qS="482659988595053",WS="v23.0"});function EI(){if(!zS)try{window?.FB?.init({appId:qS,cookie:!0,status:!0,xfbml:!0,version:WS}),OI()}catch(r){if(!(r instanceof ReferenceError))throw r;YS(r)}}var zS,VS,OI,YS,GS=ie(()=>{jS();BS();zS=location.href.indexOf("http://localhost")===0,{promise:VS,resolve:OI,reject:YS}=US();setTimeout(YS,1e4);window.fbAsyncInit=EI;zS||function(r,e,t){var i,s=r.getElementsByTagName(e)[0];r.getElementById(t)||(i=r.createElement(e),i.id=t,i.src="https://connect.facebook.net/en_US/sdk.js",s.parentNode.insertBefore(i,s))}(document,"script","facebook-jssdk");l(EI,"init")});var XS=Pe((v3,ZS)=>{GS();var DI=qr();ZS.exports=r=>{let e=new $.Deferred;return typeof FB!="object"?VS.then(()=>{typeof FB=="object"?KS(r).always(t=>{e.resolve(t)}):(DI("lib/facebook/scrape.js : Facebook object not loading : FB: %o",FB).send("facebook_scrape_error"),e.reject())}):KS(r).always(t=>{e.resolve(t)}),e.promise()};function KS(r){let e=new $.Deferred,t={id:r,scrape:!0};return FB.api("/","post",t,i=>{e.resolve(i)}),e.promise()}l(KS,"scrape")});var JS=Pe((Hg,uo)=>{(function(r,e){typeof Hg=="object"&&typeof uo<"u"?uo.exports=e():typeof define=="function"&&define.amd?define(e):r.moment=e()})(Hg,function(){"use strict";var r;function e(){return r.apply(null,arguments)}l(e,"hooks");function t(f){r=f}l(t,"setHookCallback");function i(f){return f instanceof Array||Object.prototype.toString.call(f)==="[object Array]"}l(i,"isArray");function s(f){return f!=null&&Object.prototype.toString.call(f)==="[object Object]"}l(s,"isObject");function n(f,_){return Object.prototype.hasOwnProperty.call(f,_)}l(n,"hasOwnProp");function a(f){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(f).length===0;var _;for(_ in f)if(n(f,_))return!1;return!0}l(a,"isObjectEmpty");function c(f){return f===void 0}l(c,"isUndefined");function d(f){return typeof f=="number"||Object.prototype.toString.call(f)==="[object Number]"}l(d,"isNumber");function o(f){return f instanceof Date||Object.prototype.toString.call(f)==="[object Date]"}l(o,"isDate");function p(f,_){var T=[],E,H=f.length;for(E=0;E<H;++E)T.push(_(f[E],E));return T}l(p,"map");function g(f,_){for(var T in _)n(_,T)&&(f[T]=_[T]);return n(_,"toString")&&(f.toString=_.toString),n(_,"valueOf")&&(f.valueOf=_.valueOf),f}l(g,"extend");function v(f,_,T,E){return Bc(f,_,T,E,!0).utc()}l(v,"createUTC");function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}l(m,"defaultParsingFlags");function w(f){return f._pf==null&&(f._pf=m()),f._pf}l(w,"getParsingFlags");var b;Array.prototype.some?b=Array.prototype.some:b=l(function(f){var _=Object(this),T=_.length>>>0,E;for(E=0;E<T;E++)if(E in _&&f.call(this,_[E],E,_))return!0;return!1},"some");function S(f){var _=null,T=!1,E=f._d&&!isNaN(f._d.getTime());if(E&&(_=w(f),T=b.call(_.parsedDateParts,function(H){return H!=null}),E=_.overflow<0&&!_.empty&&!_.invalidEra&&!_.invalidMonth&&!_.invalidWeekday&&!_.weekdayMismatch&&!_.nullInput&&!_.invalidFormat&&!_.userInvalidated&&(!_.meridiem||_.meridiem&&T),f._strict&&(E=E&&_.charsLeftOver===0&&_.unusedTokens.length===0&&_.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(f))f._isValid=E;else return E;return f._isValid}l(S,"isValid");function O(f){var _=v(NaN);return f!=null?g(w(_),f):w(_).userInvalidated=!0,_}l(O,"createInvalid");var P=e.momentProperties=[],N=!1;function B(f,_){var T,E,H,Z=P.length;if(c(_._isAMomentObject)||(f._isAMomentObject=_._isAMomentObject),c(_._i)||(f._i=_._i),c(_._f)||(f._f=_._f),c(_._l)||(f._l=_._l),c(_._strict)||(f._strict=_._strict),c(_._tzm)||(f._tzm=_._tzm),c(_._isUTC)||(f._isUTC=_._isUTC),c(_._offset)||(f._offset=_._offset),c(_._pf)||(f._pf=w(_)),c(_._locale)||(f._locale=_._locale),Z>0)for(T=0;T<Z;T++)E=P[T],H=_[E],c(H)||(f[E]=H);return f}l(B,"copyConfig");function q(f){B(this,f),this._d=new Date(f._d!=null?f._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),N===!1&&(N=!0,e.updateOffset(this),N=!1)}l(q,"Moment");function h(f){return f instanceof q||f!=null&&f._isAMomentObject!=null}l(h,"isMoment");function M(f){e.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+f)}l(M,"warn");function R(f,_){var T=!0;return g(function(){if(e.deprecationHandler!=null&&e.deprecationHandler(null,f),T){var E=[],H,Z,de,Ue=arguments.length;for(Z=0;Z<Ue;Z++){if(H="",typeof arguments[Z]=="object"){H+=`
46[`+Z+"] ";for(de in arguments[0])n(arguments[0],de)&&(H+=de+": "+arguments[0][de]+", ");H=H.slice(0,-2)}else H=arguments[Z];E.push(H)}M(f+`
47Arguments: `+Array.prototype.slice.call(E).join("")+`
48`+new Error().stack),T=!1}return _.apply(this,arguments)},_)}l(R,"deprecate");var G={};function pe(f,_){e.deprecationHandler!=null&&e.deprecationHandler(f,_),G[f]||(M(_),G[f]=!0)}l(pe,"deprecateSimple"),e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;function ce(f){return typeof Function<"u"&&f instanceof Function||Object.prototype.toString.call(f)==="[object Function]"}l(ce,"isFunction");function be(f){var _,T;for(T in f)n(f,T)&&(_=f[T],ce(_)?this[T]=_:this["_"+T]=_);this._config=f,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}l(be,"set");function Te(f,_){var T=g({},f),E;for(E in _)n(_,E)&&(s(f[E])&&s(_[E])?(T[E]={},g(T[E],f[E]),g(T[E],_[E])):_[E]!=null?T[E]=_[E]:delete T[E]);for(E in f)n(f,E)&&!n(_,E)&&s(f[E])&&(T[E]=g({},T[E]));return T}l(Te,"mergeConfigs");function ze(f){f!=null&&this.set(f)}l(ze,"Locale");var Ke;Object.keys?Ke=Object.keys:Ke=l(function(f){var _,T=[];for(_ in f)n(f,_)&&T.push(_);return T},"keys");var tt={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function bt(f,_,T){var E=this._calendar[f]||this._calendar.sameElse;return ce(E)?E.call(_,T):E}l(bt,"calendar");function je(f,_,T){var E=""+Math.abs(f),H=_-E.length,Z=f>=0;return(Z?T?"+":"":"-")+Math.pow(10,Math.max(0,H)).toString().substr(1)+E}l(je,"zeroFill");var Ze=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}
48|x|X|zz?|ZZ?|.)/g,ut=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,qe={},C={};function F(f,_,T,E){var H=E;typeof E=="string"&&(H=l(function(){return this[E]()},"func")),f&&(C[f]=H),_&&(C[_[0]]=function(){return je(H.apply(this,arguments),_[1],_[2])}),T&&(C[T]=function(){return this.localeData().ordinal(H.apply(this,arguments),f)})}l(F,"addFormatToken");function j(f){return f.match(/\[[\s\S]/)?f.replace(/^\[|\]$/g,""):f.replace(/\\/g,"")}l(j,"removeFormattingTokens");function ee(f){var _=f.match(Ze),T,E;for(T=0,E=_.length;T<E;T++)C[_[T]]?_[T]=C[_[T]]:_[T]=j(_[T]);return function(H){var Z="",de;for(de=0;de<E;de++)Z+=ce(_[de])?_[de].call(H,f):_[de];return Z}}l(ee,"makeFormatFunction");function J(f,_){return f.isValid()?(_=Q(_,f.localeData()),qe[_]=qe[_]||ee(_),qe[_](f)):f.localeData().invalidDate()}l(J,"formatMoment");function Q(f,_){var T=5;function E(H){return _.longDateFormat(H)||H}for(l(E,"replaceLongDateFormatTokens"),ut.lastIndex=0;T>=0&&ut.test(f);)f=f.replace(ut,E),ut.lastIndex=0,T-=1;return f}l(Q,"expandFormat");var oe={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function ve(f){var _=this._longDateFormat[f],T=this._longDateFormat[f.toUpperCase()];return _||!T?_:(this._longDateFormat[f]=T.match(Ze).map(function(E){return E==="MMMM"||E==="MM"||E==="DD"||E==="dddd"?E.slice(1):E}).join(""),this._longDateFormat[f])}l(ve,"longDateFormat");var U="Invalid date";function D(){return this._invalidDate}l(D,"invalidDate");var W="%d",ue=/\d{1,2}/;function _e(f){return this._ordinal.replace("%d",f)}l(_e,"ordinal");var he={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Ce(f,_,T,E){var H=this._relativeTime[T];return ce(H)?H(f,_,T,E):H.replace(/%d/i,f)}l(Ce,"relativeTime");function Ae(f,_){var T=this._relativeTime[f>0?"future":"past"];return ce(T)?T(_):T.replace(/%s/i,_)}l(Ae,"pastFuture");var re={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function se(f){return typeof f=="string"?re[f]||re[f.toLowerCase()]:void 0}l(se,"normalizeUnits");function Se(f){var _={},T,E;for(E in f)n(f,E)&&(T=se(E),T&&(_[T]=f[E]));return _}l(Se,"normalizeObjectUnits");var $e={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Fe(f){var _=[],T;for(T in f)n(f,T)&&_.push({unit:T,priority:$e[T]});return _.sort(function(E,H){return E.priority-H.priority}),_}l(Fe,"getPrioritizedUnits");var Ct=/\d/,Oe=/\d\d/,at=/\d{3}/,It=/\d{4}/,qt=/[+-]?\d{6}/,ct=/\d\d?/,Qt=/\d\d\d\d?/,Ji=/\d\d\d\d\d\d?/,$i=/\d{1,3}/,$r=/\d{1,4}/,Zr=/[+-]?\d{1,6}/,Fr=/\d+/,ia=/[+-]?\d+/,na=/Z|[+-]\d\d:?\d\d/gi,cs=/Z|[+-]\d\d(?::?\d\d)?/gi,Ic=/[+-]?\d+(\.\d{1,3})?/,fs=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Mr=/^[1-9]\d?/,Qi=/^([1-9]\d|\d)/,ds;ds={};function He(f,_,T){ds[f]=ce(_)?_:function(E,H){return E&&T?T:_}}l(He,"addRegexToken");function xr(f,_){return n(ds,f)?ds[f](_._strict,_._locale):new RegExp(hr(f))}l(xr,"getParseRegexForToken");function hr(f){return Rr(f.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(_,T,E,H,Z){return T||E||H||Z}))}l(hr,"unescapeFormat");function Rr(f){return f.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}l(Rr,"regexEscape");function kr(f){return f<0?Math.ceil(f)||0:Math.floor(f)}l(kr,"absFloor");function ot(f){var _=+f,T=0;return _!==0&&isFinite(_)&&(T=kr(_)),T}l(ot,"toInt");var sa={};function gt(f,_){var T,E=_,H;for(typeof f=="string"&&(f=[f]),d(_)&&(E=l(function(Z,de){de[_]=ot(Z)},"func")),H=f.length,T=0;T<H;T++)sa[f[T]]=E}l(gt,"addParseToken");function Xr(f,_){gt(f,function(T,E,H,Z){H._w=H._w||{},_(T,H._w,H,Z)})}l(Xr,"addWeekParseToken");function Po(f,_,T){_!=null&&n(sa,f)&&sa[f](_,T._a,T,f)}l(Po,"addTimeToArrayFromToken");function en(f){return f%4===0&&f%100!==0||f%400===0}l(en,"isLeapYear");var ir=0,pi=1,Jr=2,Wt=3,Nr=4,mi=5,Fi=6,oh=7,An=8;F("Y",0,0,function(){var f=this.year();return f<=9999?je(f,4):"+"+f}),F(0,["YY",2],0,function(){return this.year()%100}),F(0,["YYYY",4],0,"year"),F(0,["YYYYY",5],0,"year"),F(0,["YYYYYY",6,!0],0,"year"),He("Y",ia),He("YY",ct,Oe),He("YYYY",$r,It),He("YYYYY",Zr,qt),He("YYYYYY",Zr,qt),gt(["YYYYY","YYYYYY"],ir),gt("YYYY",function(f,_){_[ir]=f.length===2?e.parseTwoDigitYear(f):ot(f)}),gt("YY",function(f,_){_[ir]=e.parseTwoDigitYear(f)}),gt("Y",function(f,_){_[ir]=parseInt(f,10)});function In(f){return en(f)?366:365}l(In,"daysInYear"),e.parseTwoDigitYear=function(f){return ot(f)+(ot(f)>68?1900:2e3)};var aa=gi("FullYear",!0);function $o(){return en(this.year())}l($o,"getIsLeapYear");function gi(f,_){return function(T){return T!=null?(Pc(this,f,T),e.updateOffset(this,_),this):Pn(this,f)}}l(gi,"makeGetSet");function Pn(f,_){if(!f.isValid())return NaN;var T=f._d,E=f._isUTC;switch(_){case"Milliseconds":return E?T.getUTCMilliseconds():T.getMilliseconds();case"Seconds":return E?T.getUTCSeconds():T.getSeconds();case"Minutes":return E?T.getUTCMinutes():T.getMinutes();case"Hours":return E?T.getUTCHours():T.getHours();case"Date":return E?T.getUTCDate():T.getDate();case"Day":return E?T.getUTCDay():T.getDay();case"Month":return E?T.getUTCMonth():T.getMonth();case"FullYear":return E?T.getUTCFullYear():T.getFullYear();default:return NaN}}l(Pn,"get");function Pc(f,_,T){var E,H,Z,de,Ue;if(!(!f.isValid()||isNaN(T))){switch(E=f._d,H=f._isUTC,_){case"Milliseconds":return void(H?E.setUTCMilliseconds(T):E.setMilliseconds(T));case"Seconds":return void(H?E.setUTCSeconds(T):E.setSeconds(T));case"Minutes":return void(H?E.setUTCMinutes(T):E.setMinutes(T));case"Hours":return void(H?E.setUTCHours(T):E.setHours(T));case"Date":return void(H?E.setUTCDate(T):E.setDate(T));case"FullYear":break;default:return}Z=T,de=f.month(),Ue=f.date(),Ue=Ue===29&&de===1&&!en(Z)?28:Ue,H?E.setUTCFullYear(Z,de,Ue):E.setFullYear(Z,de,Ue)}}l(Pc,"set$1");function hs(f){return f=se(f),ce(this[f])?this[f]():this}l(hs,"stringGet");function $c(f,_){if(typeof f=="object"){f=Se(f);var T=Fe(f),E,H=T.length;for(E=0;E<H;E++)this[T[E].unit](f[T[E].unit])}else if(f=se(f),ce(this[f]))return this[f](_);return this}l($c,"stringSet");function Fc(f,_){return(f%_+_)%_}l(Fc,"mod");var Ft;Array.prototype.indexOf?Ft=Array.prototype.indexOf:Ft=l(function(f){var _;
vendor: 12,127 bytes, line 48
48for(_=0;_<this.length;++_)if(this[_]===f)return _;return-1},"indexOf");function oa(f,_){if(isNaN(f)||isNaN(_))return NaN;var T=Fc(_,12);return f+=(_-T)/12,T===1?en(f)?29:28:31-T%7%2}l(oa,"daysInMonth"),F("M",["MM",2],"Mo",function(){return this.month()+1}),F("MMM",0,0,function(f){return this.localeData().monthsShort(this,f)}),F("MMMM",0,0,function(f){return this.localeData().months(this,f)}),He("M",ct,Mr),He("MM",ct,Oe),He("MMM",function(f,_){return _.monthsShortRegex(f)}),He("MMMM",function(f,_){return _.monthsRegex(f)}),gt(["M","MM"],function(f,_){_[pi]=ot(f)-1}),gt(["MMM","MMMM"],function(f,_,T,E){var H=T._locale.monthsParse(f,E,T._strict);H!=null?_[pi]=H:w(T).invalidMonth=f});var lh="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),la="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Mc=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,uh=fs,Rc=fs;function Nc(f,_){return f?i(this._months)?this._months[f.month()]:this._months[(this._months.isFormat||Mc).test(_)?"format":"standalone"][f.month()]:i(this._months)?this._months:this._months.standalone}l(Nc,"localeMonths");function Fo(f,_){return f?i(this._monthsShort)?this._monthsShort[f.month()]:this._monthsShort[Mc.test(_)?"format":"standalone"][f.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}l(Fo,"localeMonthsShort");function Lc(f,_,T){var E,H,Z,de=f.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],E=0;E<12;++E)Z=v([2e3,E]),this._shortMonthsParse[E]=this.monthsShort(Z,"").toLocaleLowerCase(),this._longMonthsParse[E]=this.months(Z,"").toLocaleLowerCase();return T?_==="MMM"?(H=Ft.call(this._shortMonthsParse,de),H!==-1?H:null):(H=Ft.call(this._longMonthsParse,de),H!==-1?H:null):_==="MMM"?(H=Ft.call(this._shortMonthsParse,de),H!==-1?H:(H=Ft.call(this._longMonthsParse,de),H!==-1?H:null)):(H=Ft.call(this._longMonthsParse,de),H!==-1?H:(H=Ft.call(this._shortMonthsParse,de),H!==-1?H:null))}l(Lc,"handleStrictParse");function pr(f,_,T){var E,H,Z;if(this._monthsParseExact)return Lc.call(this,f,_,T);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),E=0;E<12;E++){if(H=v([2e3,E]),T&&!this._longMonthsParse[E]&&(this._longMonthsParse[E]=new RegExp("^"+this.months(H,"").replace(".","")+"$","i"),this._shortMonthsParse[E]=new RegExp("^"+this.monthsShort(H,"").replace(".","")+"$","i")),!T&&!this._monthsParse[E]&&(Z="^"+this.months(H,"")+"|^"+this.monthsShort(H,""),this._monthsParse[E]=new RegExp(Z.replace(".",""),"i")),T&&_==="MMMM"&&this._longMonthsParse[E].test(f))return E;if(T&&_==="MMM"&&this._shortMonthsParse[E].test(f))return E;if(!T&&this._monthsParse[E].test(f))return E}}l(pr,"localeMonthsParse");function tn(f,_){if(!f.isValid())return f;if(typeof _=="string"){if(/^\d+$/.test(_))_=ot(_);else if(_=f.localeData().monthsParse(_),!d(_))return f}var T=_,E=f.date();return E=E<29?E:Math.min(E,oa(f.year(),T)),f._isUTC?f._d.setUTCMonth(T,E):f._d.setMonth(T,E),f}l(tn,"setMonth");function ps(f){return f!=null?(tn(this,f),e.updateOffset(this,!0),this):Pn(this,"Month")}l(ps,"getSetMonth");function ch(){return oa(this.year(),this.month())}l(ch,"getDaysInMonth");function fh(f){return this._monthsParseExact?(n(this,"_monthsRegex")||Ro.call(this),f?this._monthsShortStrictRegex:this._monthsShortRegex):(n(this,"_monthsShortRegex")||(this._monthsShortRegex=uh),this._monthsShortStrictRegex&&f?this._monthsShortStrictRegex:this._monthsShortRegex)}l(fh,"monthsShortRegex");function Mo(f){return this._monthsParseExact?(n(this,"_monthsRegex")||Ro.call(this),f?this._monthsStrictRegex:this._monthsRegex):(n(this,"_monthsRegex")||(this._monthsRegex=Rc),this._monthsStrictRegex&&f?this._monthsStrictRegex:this._monthsRegex)}l(Mo,"monthsRegex");function Ro(){function f(rt,vt){return vt.length-rt.length}l(f,"cmpLenRev");var _=[],T=[],E=[],H,Z,de,Ue;for(H=0;H<12;H++)Z=v([2e3,H]),de=Rr(this.monthsShort(Z,"")),Ue=Rr(this.months(Z,"")),_.push(de),T.push(Ue),E.push(Ue),E.push(de);_.sort(f),T.sort(f),E.sort(f),this._monthsRegex=new RegExp("^("+E.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+T.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+_.join("|")+")","i")}l(Ro,"computeMonthsParse");function ua(f,_,T,E,H,Z,de){var Ue;return f<100&&f>=0?(Ue=new Date(f+400,_,T,E,H,Z,de),isFinite(Ue.getFullYear())&&Ue.setFullYear(f)):Ue=new Date(f,_,T,E,H,Z,de),Ue}l(ua,"createDate");function $n(f){var _,T;return f<100&&f>=0?(T=Array.prototype.slice.call(arguments),T[0]=f+400,_=new Date(Date.UTC.apply(null,T)),isFinite(_.getUTCFullYear())&&_.setUTCFullYear(f)):_=new Date(Date.UTC.apply(null,arguments)),_}l($n,"createUTCDate");function ca(f,_,T){var E=7+_-T,H=(7+$n(f,0,E).getUTCDay()-_)%7;return-H+E-1}l(ca,"firstWeekOffset");function Hc(f,_,T,E,H){var Z=(7+T-E)%7,de=ca(f,E,H),Ue=1+7*(_-1)+Z+de,rt,vt;return Ue<=0?(rt=f-1,vt=In(rt)+Ue):Ue>In(f)?(rt=f+1,vt=Ue-In(f)):(rt=f,vt=Ue),{year:rt,dayOfYear:vt}}l(Hc,"dayOfYearFromWeeks");function cr(f,_,T){var E=ca(f.year(),_,T),H=Math.floor((f.dayOfYear()-E-1)/7)+1,Z,de;return H<1?(de=f.year()-1,Z=H+Qr(de,_,T)):H>Qr(f.year(),_,T)?(Z=H-Qr(f.year(),_,T),de=f.year()+1):(de=f.year(),Z=H),{week:Z,year:de}}l(cr,"weekOfYear");function Qr(f,_,T){var E=ca(f,_,T),H=ca(f+1,_,T);return(In(f)-E+H)/7}l(Qr,"weeksInYear"),F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),He("w",ct,Mr),He("ww",ct,Oe),He("W",ct,Mr),He("WW",ct,Oe),Xr(["w","ww","W","WW"],function(f,_,T,E){_[E.substr(0,1)]=ot(f)});function ms(f){return cr(f,this._week.dow,this._week.doy).week}l(ms,"localeWeek");var dh={dow:0,doy:6};function hh(){return this._week.dow}l(hh,"localeFirstDayOfWeek");function rn(){return this._week.doy}l(rn,"localeFirstDayOfYear");function nn(f){var _=this.localeData().week(this);return f==null?_:this.add((f-_)*7,"d")}l(nn,"getSetWeek");function No(f){var _=cr(this,1,4).week;return f==null?_:this.add((f-_)*7,"d")}l(No,"getSetISOWeek"),F("d",0,"do","day"),F("dd",0,0,function(f){return this.localeData().weekdaysMin(this,f)}),F("ddd",0,0,function(f){return this.localeData().weekdaysShort(this,f)}),F("dddd",0,0,function(f){return this.localeData().weekdays(this,f)}),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),He("d",ct),He("e",ct),He("E",ct),He("dd",function(f,_){return _.weekdaysMinRegex(f)}),He("ddd",function(f,_){return _.weekdaysShortRegex(f)}),He("dddd",function(f,_){return _.weekdaysRegex(f)}),Xr(["dd","ddd","dddd"],function(f,_,T,E){var H=T._locale.weekdaysParse(f,E,T._strict);H!=null?_.d=H:w(T).invalidWeekday=f}),Xr(["d","e","E"],function(f,_,T,E){_[E]=ot(f)});function ph(f,_){return typeof f!="string"?f:isNaN(f)?(f=_.weekdaysParse(f),typeof f=="number"?f:null):parseInt(f,10)}l(ph,"parseWeekday");function gs(f,_){return typeof f=="string"?_.weekdaysParse(f)%7||7:isNaN(f)?null:f}l(gs,"parseIsoWeekday");function fa(f,_){return f.slice(_,7).concat(f.slice(0,_))}l(fa,"shiftWeekdays");var Lo="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ho="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Uc="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),mh=fs,jc=fs,gh=fs;function yh(f,_){var T=i(this._weekdays)?this._weekdays:this._weekdays[f&&f!==!0&&this._weekdays.isFormat.test(_)?"format":"standalone"];return f===!0?fa(T,this._week.dow):f?T[f.day()]:T}l(yh,"localeWeekdays");function Uo(f){return f===!0?fa(this._weekdaysShort,this._week.dow):f?this._weekdaysShort[f.day()]:this._weekdaysShort}l(Uo,"localeWeekdaysShort");function vh(f){return f===!0?fa(this._weekdaysMin,this._week.dow):f?this._weekdaysMin[f.day()]:this._weekdaysMin}l(vh,"localeWeekdaysMin");function _h(f,_,T){var E,H,Z,de=f.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],E=0;E<7;++E)Z=v([2e3,1]).day(E),this._minWeekdaysParse[E]=this.weekdaysMin(Z,"").toLocaleLowerCase(),this._shortWeekdaysParse[E]=this.weekdaysShort(Z,"").toLocaleLowerCase(),this._weekdaysParse[E]=this.weekdays(Z,"").toLocaleLowerCase();return T?_==="dddd"?(H=Ft.call(this._weekdaysParse,de),H!==-1?H:null):_==="ddd"?(H=Ft.call(this._shortWeekdaysParse,de),H!==-1?H:null):(H=Ft.call(this._minWeekdaysParse,de),H!==-1?H:null):_==="dddd"?(H=Ft.call(this._weekdaysParse,de),H!==-1||(H=Ft.call(this._shortWeekdaysParse,de),H!==-1)?H:(H=Ft.call(this._minWeekdaysParse,de),H!==-1?H:null)):_==="ddd"?(H=Ft.call(this._shortWeekdaysParse,de),H!==-1||(H=Ft.call(this._weekdaysParse,de),H!==-1)?H:(H=Ft.call(this._minWeekdaysParse,de),H!==-1?H:null)):(H=Ft.call(this._minWeekdaysParse,de),H!==-1||(H=Ft.call(this._weekdaysParse,de),H!==-1)?H:(H=Ft.call(this._shortWeekdaysParse,de),H!==-1?H:null))}l(_h,"handleStrictParse$1");function bh(f,_,T){var E,H,Z;if(this._weekdaysParseExact)return _h.call(this,f,_,T);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),E=0;E<7;E++){if(H=v([2e3,1]).day(E),T&&!this._fullWeekdaysParse[E]&&(this._fullWeekdaysParse[E]=new RegExp("^"+this.weekdays(H,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[E]=new RegExp("^"+this.weekdaysShort(H,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[E]=new RegExp("^"+this.weekdaysMin(H,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[E]||(Z="^"+this.weekdays(H,"")+"|^"+this.weekdaysShort(H,"")+"|^"+this.weekdaysMin(H,""),this._weekdaysParse[E]=new RegExp(Z.replace(".",""),"i")),T&&_==="dddd"&&this._fullWeekdaysParse[E].test(f))return E;if(T&&_==="ddd"&&this._shortWeekdaysParse[E].test(f))return E;if(T&&_==="dd"&&this._minWeekdaysParse[E].test(f))return E;if(!T&&this._weekdaysParse[E].test(f))return E}}l(bh,"localeWeekdaysParse");function wh(f){if(!this.isValid())return f!=null?this:NaN;var _=Pn(this,"Day");return f!=null?(f=ph(f,this.localeData()),this.add(f-_,"d")):_}l(wh,"getSetDayOfWeek");function Sh(f){if(!this.isValid())return f!=null?this:NaN;var _=(this.day()+7-this.localeData()._week.dow)%7;return f==null?_:this.add(f-_,"d")}l(Sh,"getSetLocaleDayOfWeek");function xh(f){if(!this.isValid())return f!=null?this:NaN;if(f!=null){var _=gs(f,this.localeData());return this.day(this.day()%7?_:_-7)}else return this.day()||7}l(xh,"getSetISODayOfWeek");function kh(f){return this._weekdaysParseExact?(n(this,"_weekdaysRegex")||da.call(this),f?this._weekdaysStrictRegex:this._weekdaysRegex):(n(this,"_weekdaysRegex")||(this._weekdaysRegex=mh),this._weekdaysStrictRegex&&f?this._weekdaysStrictRegex:this._weekdaysRegex)}l(kh,"weekdaysRegex");function qc(f){return this._weekdaysParseExact?(n(this,"_weekdaysRegex")||da.call(this),f?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(n(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=jc),this._weekdaysShortStrictRegex&&f?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}l(qc,"weekdaysShortRegex");function jo(f){return this._weekdaysParseExact?(n(this,"_weekdaysRegex")||da.call(this),f?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(n(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=gh),this._weekdaysMinStrictRegex&&f?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}l(jo,"weekdaysMinRegex");function da(){function f(br,fn){return fn.length-br.length}l(f,"cmpLenRev");var _=[],T=[],E=[],H=[],Z,de,Ue,rt,vt;for(Z=0;Z<7;Z++)de=v([2e3,1]).day(Z),Ue=Rr(this.weekdaysMin(de,"")),rt=Rr(this.weekdaysShort(de,"")),vt=Rr(this.weekdays(de,"")),_.push(Ue),T.push(rt),E.push(vt),H.push(Ue),H.push(rt),H.push(vt);_.sort(f),T.sort(f),E.sort(f),H.sort(f),this._weekdaysRegex=new RegExp("^("+H.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+E.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+T.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+_.join("|")+")","i")}l(da,"computeWeekdaysParse");function ys(){return this.hours()%12||12}l(ys,"hFormat");function Wc(){return this.hours()||24}l(Wc,"kFormat"),F("H",["HH",2],0,"hour"),F("h",["hh",2],0,ys),F("k",["kk",2],0,Wc),F("hmm",0,0,function(){return""+ys.apply(this)+je(this.minutes(),2)}
48),F("hmmss",0,0,function(){return""+ys.apply(this)+je(this.minutes(),2)+je(this.seconds(),2)}),F("Hmm",0,0,function(){return""+this.hours()+je(this.minutes(),2)}),F("Hmmss",0,0,function(){return""+this.hours()+je(this.minutes(),2)+je(this.seconds(),2)});function qo(f,_){F(f,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),_)})}l(qo,"meridiem"),qo("a",!0),qo("A",!1);function ha(f,_){return _._meridiemParse}l(ha,"matchMeridiem"),He("a",ha),He("A",ha),He("H",ct,Qi),He("h",ct,Mr),He("k",ct,Mr),He("HH",ct,Oe),He("hh",ct,Oe),He("kk",ct,Oe),He("hmm",Qt),He("hmmss",Ji),He("Hmm",Qt),He("Hmmss",Ji),gt(["H","HH"],Wt),gt(["k","kk"],function(f,_,T){var E=ot(f);_[Wt]=E===24?0:E}),gt(["a","A"],function(f,_,T){T._isPm=T._locale.isPM(f),T._meridiem=f}),gt(["h","hh"],function(f,_,T){_[Wt]=ot(f),w(T).bigHour=!0}),gt("hmm",function(f,_,T){var E=f.length-2;_[Wt]=ot(f.substr(0,E)),_[Nr]=ot(f.substr(E)),w(T).bigHour=!0}),gt("hmmss",function(f,_,T){var E=f.length-4,H=f.length-2;_[Wt]=ot(f.substr(0,E)),_[Nr]=ot(f.substr(E,2)),_[mi]=ot(f.substr(H)),w(T).bigHour=!0}),gt("Hmm",function(f,_,T){var E=f.length-2;_[Wt]=ot(f.substr(0,E)),_[Nr]=ot(f.substr(E))}),gt("Hmmss",function(f,_,T){var E=f.length-4,H=f.length-2;_[Wt]=ot(f.substr(0,E)),_[Nr]=ot(f.substr(E,2)),_[mi]=ot(f.substr(H))});function Th(f){return(f+"").toLowerCase().charAt(0)==="p"}l(Th,"localeIsPM");var Ch=/[ap]\.?m?\.?/i,Oh=gi("Hours",!0);function vs(f,_,T){return f>11?T?"pm":"PM":T?"am":"AM"}l(vs,"localeMeridiem");var Wo={calendar:tt,longDateFormat:oe,invalidDate:U,ordinal:W,dayOfMonthOrdinalParse:ue,relativeTime:he,months:lh,monthsShort:la,week:dh,weekdays:Lo,weekdaysMin:Uc,weekdaysShort:Ho,meridiemParse:Ch},At={},_s={},bs;function Eh(f,_){var T,E=Math.min(f.length,_.length);for(T=0;T<E;T+=1)if(f[T]!==_[T])return T;return E}l(Eh,"commonPrefix");function u(f){return f&&f.toLowerCase().replace("_","-")}l(u,"normalizeLocale");function y(f){for(var _=0,T,E,H,Z;_<f.length;){for(Z=u(f[_]).split("-"),T=Z.length,E=u(f[_+1]),E=E?E.split("-"):null;T>0;){if(H=k(Z.slice(0,T).join("-")),H)return H;if(E&&E.length>=T&&Eh(Z,E)>=T-1)break;T--}_++}return bs}l(y,"chooseLocale");function x(f){return!!(f&&f.match("^[^/\\\\]*$"))}l(x,"isLocaleNameSane");function k(f){var _=null,T;if(At[f]===void 0&&typeof uo<"u"&&uo&&uo.exports&&x(f))try{_=bs._abbr,T=i_,T("./locale/"+f),A(_)}catch{At[f]=null}return At[f]}l(k,"loadLocale");function A(f,_){var T;return f&&(c(_)?T=Y(f):T=I(f,_),T?bs=T:typeof console<"u"&&console.warn&&console.warn("Locale "+f+" not found. Did you forget to load it?")),bs._abbr}l(A,"getSetGlobalLocale");function I(f,_){if(_!==null){var T,E=Wo;if(_.abbr=f,At[f]!=null)pe("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),E=At[f]._config;else if(_.parentLocale!=null)if(At[_.parentLocale]!=null)E=At[_.parentLocale]._config;else if(T=k(_.parentLocale),T!=null)E=T._config;else return _s[_.parentLocale]||(_s[_.parentLocale]=[]),_s[_.parentLocale].push({name:f,config:_}),null;return At[f]=new ze(Te(E,_)),_s[f]&&_s[f].forEach(function(H){I(H.name,H.config)}),A(f),At[f]}else return delete At[f],null}l(I,"defineLocale");function L(f,_){if(_!=null){var T,E,H=Wo;At[f]!=null&&At[f].parentLocale!=null?At[f].set(Te(At[f]._config,_)):(E=k(f),E!=null&&(H=E._config),_=Te(H,_),E==null&&(_.abbr=f),T=new ze(_),T.parentLocale=At[f],At[f]=T),A(f)}else At[f]!=null&&(At[f].parentLocale!=null?(At[f]=At[f].parentLocale,f===A()&&A(f)):At[f]!=null&&delete At[f]);return At[f]}l(L,"updateLocale");function Y(f){var _;if(f&&f._locale&&f._locale._abbr&&(f=f._locale._abbr),!f)return bs;if(!i(f)){if(_=k(f),_)return _;f=[f]}return y(f)}l(Y,"getLocale");function V(){return Ke(At)}l(V,"listLocales");function te(f){var _,T=f._a;return T&&w(f).overflow===-2&&(_=T[pi]<0||T[pi]>11?pi:T[Jr]<1||T[Jr]>oa(T[ir],T[pi])?Jr:T[Wt]<0||T[Wt]>24||T[Wt]===24&&(T[Nr]!==0||T[mi]!==0||T[Fi]!==0)?Wt:T[Nr]<0||T[Nr]>59?Nr:T[mi]<0||T[mi]>59?mi:T[Fi]<0||T[Fi]>999?Fi:-1,w(f)._overflowDayOfYear&&(_<ir||_>Jr)&&(_=Jr),w(f)._overflowWeeks&&_===-1&&(_=oh),w(f)._overflowWeekday&&_===-1&&(_=An),w(f).overflow=_),f}l(te,"checkOverflow");var fe=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ge=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ae=/Z|[+-]\d\d(?::?\d\d)?/,we=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Je=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],pt=/^\/?Date\((-?\d+)/i,nt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,er={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};
vendor: 4,652 bytes, line 48
48function Bt(f){var _,T,E=f._i,H=fe.exec(E)||ge.exec(E),Z,de,Ue,rt,vt=we.length,br=Je.length;if(H){for(w(f).iso=!0,_=0,T=vt;_<T;_++)if(we[_][1].exec(H[1])){de=we[_][0],Z=we[_][2]!==!1;break}if(de==null){f._isValid=!1;return}if(H[3]){for(_=0,T=br;_<T;_++)if(Je[_][1].exec(H[3])){Ue=(H[2]||" ")+Je[_][0];break}if(Ue==null){f._isValid=!1;return}}if(!Z&&Ue!=null){f._isValid=!1;return}if(H[4])if(ae.exec(H[4]))rt="Z";else{f._isValid=!1;return}f._f=de+(Ue||"")+(rt||""),ni(f)}else f._isValid=!1}l(Bt,"configFromISO");function ei(f,_,T,E,H,Z){var de=[ti(f),la.indexOf(_),parseInt(T,10),parseInt(E,10),parseInt(H,10)];return Z&&de.push(parseInt(Z,10)),de}l(ei,"extractFromRFC2822Strings");function ti(f){var _=parseInt(f,10);return _<=49?2e3+_:_<=999?1900+_:_}l(ti,"untruncateYear");function ft(f){return f.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}l(ft,"preprocessRFC2822");function sn(f,_,T){if(f){var E=Ho.indexOf(f),H=new Date(_[0],_[1],_[2]).getDay();if(E!==H)return w(T).weekdayMismatch=!0,T._isValid=!1,!1}return!0}l(sn,"checkWeekday");function yt(f,_,T){if(f)return er[f];if(_)return 0;var E=parseInt(T,10),H=E%100,Z=(E-H)/100;return Z*60+H}l(yt,"calculateOffset");function $t(f){var _=nt.exec(ft(f._i)),T;if(_){if(T=ei(_[4],_[3],_[2],_[5],_[6],_[7]),!sn(_[1],T,f))return;f._a=T,f._tzm=yt(_[8],_[9],_[10]),f._d=$n.apply(null,f._a),f._d.setUTCMinutes(f._d.getUTCMinutes()-f._tzm),w(f).rfc2822=!0}else f._isValid=!1}l($t,"configFromRFC2822");function ws(f){var _=pt.exec(f._i);if(_!==null){f._d=new Date(+_[1]);return}if(Bt(f),f._isValid===!1)delete f._isValid;else return;if($t(f),f._isValid===!1)delete f._isValid;else return;f._strict?f._isValid=!1:e.createFromInputFallback(f)}l(ws,"configFromString"),e.createFromInputFallback=R("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(f){f._d=new Date(f._i+(f._useUTC?" UTC":""))});function Mi(f,_,T){return f??_??T}l(Mi,"defaults");function ri(f){var _=new Date(e.now());return f._useUTC?[_.getUTCFullYear(),_.getUTCMonth(),_.getUTCDate()]:[_.getFullYear(),_.getMonth(),_.getDate()]}l(ri,"currentDateArray");function an(f){var _,T,E=[],H,Z,de;if(!f._d){for(H=ri(f),f._w&&f._a[Jr]==null&&f._a[pi]==null&&ii(f),f._dayOfYear!=null&&(de=Mi(f._a[ir],H[ir]),(f._dayOfYear>In(de)||f._dayOfYear===0)&&(w(f)._overflowDayOfYear=!0),T=$n(de,0,f._dayOfYear),f._a[pi]=T.getUTCMonth(),f._a[Jr]=T.getUTCDate()),_=0;_<3&&f._a[_]==null;++_)f._a[_]=E[_]=H[_];for(;_<7;_++)f._a[_]=E[_]=f._a[_]==null?_===2?1:0:f._a[_];f._a[Wt]===24&&f._a[Nr]===0&&f._a[mi]===0&&f._a[Fi]===0&&(f._nextDay=!0,f._a[Wt]=0),f._d=(f._useUTC?$n:ua).apply(null,E),Z=f._useUTC?f._d.getUTCDay():f._d.getDay(),f._tzm!=null&&f._d.setUTCMinutes(f._d.getUTCMinutes()-f._tzm),f._nextDay&&(f._a[Wt]=24),f._w&&typeof f._w.d<"u"&&f._w.d!==Z&&(w(f).weekdayMismatch=!0)}}l(an,"configFromArray");function ii(f){var _,T,E,H,Z,de,Ue,rt,vt;_=f._w,_.GG!=null||_.W!=null||_.E!=null?(Z=1,de=4,T=Mi(_.GG,f._a[ir],cr(Pt(),1,4).year),E=Mi(_.W,1),H=Mi(_.E,1),(H<1||H>7)&&(rt=!0)):(Z=f._locale._week.dow,de=f._locale._week.doy,vt=cr(Pt(),Z,de),T=Mi(_.gg,f._a[ir],vt.year),E=Mi(_.w,vt.week),_.d!=null?(H=_.d,(H<0||H>6)&&(rt=!0)):_.e!=null?(H=_.e+Z,(_.e<0||_.e>6)&&(rt=!0)):H=Z),E<1||E>Qr(T,Z,de)?w(f)._overflowWeeks=!0:rt!=null?w(f)._overflowWeekday=!0:(Ue=Hc(T,E,H,Z,de),f._a[ir]=Ue.year,f._dayOfYear=Ue.dayOfYear)}l(ii,"dayOfYearFromWeekInfo"),e.ISO_8601=function(){},e.RFC_2822=function(){};function ni(f){if(f._f===e.ISO_8601){Bt(f);return}if(f._f===e.RFC_2822){$t(f);return}f._a=[],w(f).empty=!0;var _=""+f._i,T,E,H,Z,de,Ue=_.length,rt=0,vt,br;for(H=Q(f._f,f._locale).match(Ze)||[],br=H.length,T=0;T<br;T++)Z=H[T],E=(_.match(xr(Z,f))||[])[0],E&&(de=_.substr(0,_.indexOf(E)),de.length>0&&w(f).unusedInput.push(de),_=_.slice(_.indexOf(E)+E.length),rt+=E.length),C[Z]?(E?w(f).empty=!1:w(f).unusedTokens.push(Z),Po(Z,E,f)):f._strict&&!E&&w(f).unusedTokens.push(Z);w(f).charsLeftOver=Ue-rt,_.length>0&&w(f).unusedInput.push(_),f._a[Wt]<=12&&w(f).bigHour===!0&&f._a[Wt]>0&&(w(f).bigHour=void 0),w(f).parsedDateParts=f._a.slice(0),w(f).meridiem=f._meridiem,f._a[Wt]=Ri(f._locale,f._a[Wt],f._meridiem),vt=w(f).era,vt!==null&&(f._a[ir]=f._locale.erasConvertYear(vt,f._a[ir])),an(f),te(f)}l(ni,"configFromStringAndFormat");function Ri(f,_,T){var E;return T==null?_:f.meridiemHour!=null?f.meridiemHour(_,T):(f.isPM!=null&&(E=f.isPM(T),E&&_<12&&(_+=12),!E&&_===12&&(_=0)),_)}
48l(Ri,"meridiemFixWrap");function Tr(f){var _,T,E,H,Z,de,Ue=!1,rt=f._f.length;if(rt===0){w(f).invalidFormat=!0,f._d=new Date(NaN);return}for(H=0;H<rt;H++)Z=0,de=!1,_=B({},f),f._useUTC!=null&&(_._useUTC=f._useUTC),_._f=f._f[H],ni(_),S(_)&&(de=!0),Z+=w(_).charsLeftOver,Z+=w(_).unusedTokens.length*10,w(_).score=Z,Ue?Z<E&&(E=Z,T=_):(E==null||Z<E||de)&&(E=Z,T=_,de&&(Ue=!0));g(f,T||_)}l(Tr,"configFromStringAndArray");function Bo(f){if(!f._d){var _=Se(f._i),T=_.day===void 0?_.date:_.day;f._a=p([_.year,_.month,T,_.hour,_.minute,_.second,_.millisecond],function(E){return E&&parseInt(E,10)}),an(f)}}l(Bo,"configFromObject");function yi(f){var _=new q(te(si(f)));return _._nextDay&&(_.add(1,"d"),_._nextDay=void 0),_}l(yi,"createFromConfig");function si(f){var _=f._i,T=f._f;return f._locale=f._locale||Y(f._l),_===null||T===void 0&&_===""?O({nullInput:!0}):(typeof _=="string"&&(f._i=_=f._locale.preparse(_)),h(_)?new q(te(_)):(o(_)?f._d=_:i(T)?Tr(f):T?ni(f):Dh(f),S(f)||(f._d=null),f))}l(si,"prepareConfig");function Dh(f){var _=f._i;c(_)?f._d=new Date(e.now()):o(_)?f._d=new Date(_.valueOf()):typeof _=="string"?ws(f):i(_)?(f._a=p(_.slice(0),function(T){return parseInt(T,10)}),an(f)):s(_)?Bo(f):d(_)?f._d=new Date(_):e.createFromInputFallback(f)}l(Dh,"configFromInput");function Bc(f,_,T,E,H){var Z={};return(_===!0||_===!1)&&(E=_,_=void 0),(T===!0||T===!1)&&(E=T,T=void 0),(s(f)&&a(f)||i(f)&&f.length===0)&&(f=void 0),Z._isAMomentObject=!0,Z._useUTC=Z._isUTC=H,Z._l=T,Z._i=f,Z._f=_,Z._strict=E,yi(Z)}l(Bc,"createLocalOrUTC");function Pt(f,_,T,E){return Bc(f,_,T,E,!1)}l(Pt,"createLocal");var xt=R("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var f=Pt.apply(null,arguments);return this.isValid()&&f.isValid()?f<this?this:f:O()}),pa=R("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var f=Pt.apply(null,arguments);return this.isValid()&&f.isValid()?f>this?this:f:O()});function Cr(f,_){var T,E;if(_.length===1&&i(_[0])&&(_=_[0]),!_.length)return Pt();for(T=_[0],E=1;E<_.length;++E)(!_[E].isValid()||_[E][f](T))&&(T=_[E]);return T}l(Cr,"pickBy");function Fn(){var f=[].slice.call(arguments,0);return Cr("isBefore",f)}l(Fn,"min");function Ah(){var f=[].slice.call(arguments,0);return Cr("isAfter",f)}l(Ah,"max");var Ih=l(function(){return Date.now?Date.now():+new Date},"now"),Mn=["year","quarter","month","week","day","hour","minute","second","millisecond"];function on(f){var _,T=!1,E,H=Mn.length;for(_ in f)if(n(f,_)&&!(Ft.call(Mn,_)!==-1&&(f[_]==null||!isNaN(f[_]))))return!1;for(E=0;E<H;++E)if(f[Mn[E]]){if(T)return!1;parseFloat(f[Mn[E]])!==ot(f[Mn[E]])&&(T=!0)}return!0}l(on,"isDurationValid");function zo(){return this._isValid}l(zo,"isValid$1");function Ni(){return Ve(NaN)}l(Ni,"createInvalid$1");function Ss(f){var _=Se(f),T=_.year||0,E=_.quarter||0,H=_.month||0,Z=_.week||_.isoWeek||0,de=_.day||0,Ue=_.hour||0,rt=_.minute||0,vt=_.second||0,br=_.millisecond||0;this._isValid=on(_),this._milliseconds=+br+vt*1e3+rt*6e4+Ue*1e3*60*60,this._days=+de+Z*7,this._months=+H+E*3+T*12,this._data={},this._locale=Y(),this._bubble()}l(Ss,"Duration");function Li(f){return f instanceof Ss}l(Li,"isDuration");function Rn(f){return f<0?Math.round(-1*f)*-1:Math.round(f)}l(Rn,"absRound");function ma(f,_,T){var E=Math.min(f.length,_.length),H=Math.abs(f.length-_.length),Z=0,de;for(de=0;de<E;de++)(T&&f[de]!==_[de]||!T&&ot(f[de])!==ot(_[de]))&&Z++;return Z+H}l(ma,"compareArrays");function ya(f,_){F(f,0,0,function(){var T=this.utcOffset(),E="+";return T<0&&(T=-T,E="-"),E+je(~~(T/60),2)+_+je(~~T%60,2)})}l(ya,"offset"),ya("Z",":"),ya("ZZ",""),He("Z",cs),He("ZZ",cs),gt(["Z","ZZ"],function(f,_,T){T._useUTC=!0,T._tzm=Nn(cs,f)});var Ph=/([\+\-]|\d\d)/gi;function Nn(f,_){var T=(_||"").match(f),E,H,Z;return T===null?null:(E=T[T.length-1]||[],H=(E+"").match(Ph)||["-",0,0],Z=+(H[1]*60)+ot(H[2]),Z===0?0:H[0]==="+"?Z:-Z)}l(Nn,"offsetFromString");function xs(f,_){var T,E;return _._isUTC?(T=_.clone(),E=(h(f)||o(f)?f.valueOf():Pt(f).valueOf())-T.valueOf(),T._d.setTime(T._d.valueOf()+E),e.updateOffset(T,!1),T):Pt(f).local()}l(xs,"cloneWithOffset");function ks(f){return-Math.round(f._d.getTimezoneOffset())}l(ks,"getDateOffset"),e.updateOffset=function(){};function $h(f,_,T){var E=this._offset||0,H;if(!this.isValid())return f!=null?this:NaN;if(f!=null){if(typeof f=="string"){if(f=Nn(cs,f),f===null)return this}else Math.abs(f)<16&&!T&&(f=f*60);return!this._isUTC&&_&&(H=ks(this)),this._offset=f,this._isUTC=!0,H!=null&&this.add(H,"m"),E!==f&&(!_||this._changeInProgress?fr(this,Ve(f-E,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?E:ks(this)}l($h,"getSetOffset");function Vo(f,_){return f!=null?(typeof f!="string"&&(f=-f),this.utcOffset(f,_),this):-this.utcOffset()}l(Vo,"getSetZone");function zc(f){return this.utcOffset(0,f)}
48l(zc,"setOffsetToUTC");function z(f){return this._isUTC&&(this.utcOffset(0,f),this._isUTC=!1,f&&this.subtract(ks(this),"m")),this}l(z,"setOffsetToLocal");function X(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var f=Nn(na,this._i);f!=null?this.utcOffset(f):this.utcOffset(0,!0)}return this}l(X,"setOffsetToParsedOffset");function ne(f){return this.isValid()?(f=f?Pt(f).utcOffset():0,(this.utcOffset()-f)%60===0):!1}l(ne,"hasAlignedHourOffset");function le(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}l(le,"isDaylightSavingTime");function me(){if(!c(this._isDSTShifted))return this._isDSTShifted;var f={},_;return B(f,this),f=si(f),f._a?(_=f._isUTC?v(f._a):Pt(f._a),this._isDSTShifted=this.isValid()&&ma(f._a,_.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}l(me,"isDaylightSavingTimeShifted");function Ee(){return this.isValid()?!this._isUTC:!1}l(Ee,"isLocal");function Re(){return this.isValid()?this._isUTC:!1}l(Re,"isUtcOffset");function We(){return this.isValid()?this._isUTC&&this._offset===0:!1}l(We,"isUtc");var Ne=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,lt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ve(f,_){var T=f,E=null,H,Z,de;return Li(f)?T={ms:f._milliseconds,d:f._days,M:f._months}:d(f)||!isNaN(+f)?(T={},_?T[_]=+f:T.milliseconds=+f):(E=Ne.exec(f))?(H=E[1]==="-"?-1:1,T={y:0,d:ot(E[Jr])*H,h:ot(E[Wt])*H,m:ot(E[Nr])*H,s:ot(E[mi])*H,ms:ot(Rn(E[Fi]*1e3))*H}):(E=lt.exec(f))?(H=E[1]==="-"?-1:1,T={y:Ge(E[2],H),M:Ge(E[3],H),w:Ge(E[4],H),d:Ge(E[5],H),h:Ge(E[6],H),m:Ge(E[7],H),s:Ge(E[8],H)}):T==null?T={}:typeof T=="object"&&("from"in T||"to"in T)&&(de=Ye(Pt(T.from),Pt(T.to)),T={},T.ms=de.milliseconds,T.M=de.months),Z=new Ss(T),Li(f)&&n(f,"_locale")&&(Z._locale=f._locale),Li(f)&&n(f,"_isValid")&&(Z._isValid=f._isValid),Z}l(Ve,"createDuration"),Ve.fn=Ss.prototype,Ve.invalid=Ni;function Ge(f,_){var T=f&&parseFloat(f.replace(",","."));return(isNaN(T)?0:T)*_}l(Ge,"parseIso");function st(f,_){var T={};return T.months=_.month()-f.month()+(_.year()-f.year())*12,f.clone().add(T.months,"M").isAfter(_)&&--T.months,T.milliseconds=+_-+f.clone().add(T.months,"M"),T}l(st,"positiveMomentsDifference");function Ye(f,_){var T;return f.isValid()&&_.isValid()?(_=xs(_,f),f.isBefore(_)?T=st(f,_):(T=st(_,f),T.milliseconds=-T.milliseconds,T.months=-T.months),T):{milliseconds:0,months:0}}l(Ye,"momentsDifference");function Dt(f,_){return function(T,E){var H,Z;return E!==null&&!isNaN(+E)&&(pe(_,"moment()."+_+"(period, number) is deprecated. Please use moment()."+_+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),Z=T,T=E,E=Z),H=Ve(T,E),fr(this,H,f),this}}l(Dt,"createAdder");function fr(f,_,T,E){var H=_._milliseconds,Z=Rn(_._days),de=Rn(_._months);f.isValid()&&(E=E??!0,de&&tn(f,Pn(f,"Month")+de*T),Z&&Pc(f,"Date",Pn(f,"Date")+Z*T),H&&f._d.setTime(f._d.valueOf()+H*T),E&&e.updateOffset(f,Z||de))}l(fr,"addSubtract");var nr=Dt(1,"add"),Or=Dt(-1,"subtract");function Lr(f){return typeof f=="string"||f instanceof String}l(Lr,"isString");function Ln(f){return h(f)||o(f)||Lr(f)||d(f)||mT(f)||dr(f)||f===null||f===void 0}l(Ln,"isMomentInput");function dr(f){var _=s(f)&&!a(f),T=!1,E=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],H,Z,de=E.length;for(H=0;H<de;H+=1)Z=E[H],T=T||n(f,Z);return _&&T}l(dr,"isMomentInputObject");function mT(f){var _=i(f),T=!1;return _&&(T=f.filter(function(E){return!d(E)&&Lr(f)}).length===0),_&&T}l(mT,"isNumberOrStringArray");function gT(f){var _=s(f)&&!a(f),T=!1,E=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],H,Z;for(H=0;H<E.length;H+=1)Z=E[H],T=T||n(f,Z);return _&&T}l(gT,"isCalendarSpec");function yT(f,_){var T=f.diff(_,"days",!0);return T<-6?"sameElse":T<-1?"lastWeek":T<0?"lastDay":T<1?"sameDay":T<2?"nextDay":T<7?"nextWeek":"sameElse"}l(yT,"getCalendarFormat");function vT(f,_){arguments.length===1&&(arguments[0]?Ln(arguments[0])?(f=arguments[0],_=void 0):gT(arguments[0])&&(_=arguments[0],f=void 0):(f=void 0,_=void 0));var T=f||Pt(),E=xs(T,this).startOf("day"),H=e.calendarFormat(this,E)||"sameElse",Z=_&&(ce(_[H])?_[H].call(this,T):_[H]);return this.format(Z||this.localeData().calendar(H,this,Pt(T)))}l(vT,"calendar$1");function _T(){return new q(this)}l(_T,"clone");function bT(f,_){var T=h(f)?f:Pt(f);return this.isValid()&&T.isValid()?(_=se(_)||"millisecond",_==="millisecond"?this.valueOf()>T.valueOf():T.valueOf()<this.clone().startOf(_).valueOf()):!1}l(bT,"isAfter");function wT(f,_){var T=h(f)?f:Pt(f);return this.isValid()&&T.isValid()?(_=se(_)||"millisecond",_==="millisecond"?this.valueOf()<T.valueOf():this.clone().endOf(_).valueOf()<T.valueOf()):!1}l(wT,"isBefore");function ST(f,_,T,E){var H=h(f)?f:Pt(f),Z=h(_)?_:Pt(_);return this.isValid()&&H.isValid()&&Z.isValid()?(E=E||"()",(E[0]==="("?this.isAfter(H,T):!this.isBefore(H,T))&&(E[1]===")"?this.isBefore(Z,T):!this.isAfter(Z,T))):!1}l(ST,"isBetween");function xT(f,_){var T=h(f)?f:Pt(f),E;return this.isValid()&&T.isValid()?(_=se(_)||"millisecond",_==="millisecond"?this.valueOf()===T.valueOf():(E=T.valueOf(),this.clone().startOf(_).valueOf()<=E&&E<=this.clone().endOf(_).valueOf())):!1}l(xT,"isSame");function kT(f,_){return this.isSame(f,_)||this.isAfter(f,_)}l(kT,"isSameOrAfter");function TT(f,_){return this.isSame(f,_)||this.isBefore(f,_)}l(TT,"isSameOrBefore");function CT(f,_,T){var E,H,Z;if(!this.isValid())return NaN;if(E=xs(f,this),!E.isValid())return NaN;switch(H=(E.utcOffset()-this.utcOffset())*6e4,_=se(_),_){case"year":Z=Vc(this,E)/12;break;case"month":Z=Vc(this,E);break;case"quarter":Z=Vc(this,E)/3;break;case"second":Z=(this-E)/1e3;break;case"minute":Z=(this-E)/6e4;break;case"hour":Z=(this-E)/36e5;break;case"day":Z=(this-E-H)/864e5;break;case"week":Z=(this-E-H)/6048e5;break;default:Z=this-E}return T?Z:kr(Z)}l(CT,"diff");function Vc(f,_){if(f.date()<_.date())return-Vc(_,f);var T=(_.year()-f.year())*12+(_.month()-f.month()),E=f.clone().add(T,"months"),H,Z;return _-E<0?(H=f.clone().add(T-1,"months"),Z=(_-E)/(E-H)):(H=f.clone().add(T+1,"months"),Z=(_-E)/(H-E)),-(T+Z)||0}l(Vc,"monthDiff"),e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function OT(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}l(OT,"toString");function ET(f){if(!this.isValid())return null;var _=f!==!0,T=_?this.clone().utc():this;return T.year()<0||T.year()>9999?J(T,_?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ce(Date.prototype.toISOString)?_?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",J(T,"Z")):J(T,_?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}l(ET,"toISOString");
48function DT(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var f="moment",_="",T,E,H,Z;return this.isLocal()||(f=this.utcOffset()===0?"moment.utc":"moment.parseZone",_="Z"),T="["+f+'("]',E=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",H="-MM-DD[T]HH:mm:ss.SSS",Z=_+'[")]',this.format(T+E+H+Z)}l(DT,"inspect");function AT(f){f||(f=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var _=J(this,f);return this.localeData().postformat(_)}l(AT,"format");function IT(f,_){return this.isValid()&&(h(f)&&f.isValid()||Pt(f).isValid())?Ve({to:this,from:f}).locale(this.locale()).humanize(!_):this.localeData().invalidDate()}l(IT,"from");function PT(f){return this.from(Pt(),f)}l(PT,"fromNow");function $T(f,_){return this.isValid()&&(h(f)&&f.isValid()||Pt(f).isValid())?Ve({from:this,to:f}).locale(this.locale()).humanize(!_):this.localeData().invalidDate()}l($T,"to");function FT(f){return this.to(Pt(),f)}l(FT,"toNow");function qv(f){var _;return f===void 0?this._locale._abbr:(_=Y(f),_!=null&&(this._locale=_),this)}l(qv,"locale");var Wv=R("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(f){return f===void 0?this.localeData():this.locale(f)});function Bv(){return this._locale}l(Bv,"localeData");var Yc=1e3,va=60*Yc,Gc=60*va,zv=(365*400+97)*24*Gc;function _a(f,_){return(f%_+_)%_}l(_a,"mod$1");function Vv(f,_,T){return f<100&&f>=0?new Date(f+400,_,T)-zv:new Date(f,_,T).valueOf()}l(Vv,"localStartOfDate");function Yv(f,_,T){return f<100&&f>=0?Date.UTC(f+400,_,T)-zv:Date.UTC(f,_,T)}l(Yv,"utcStartOfDate");function MT(f){var _,T;if(f=se(f),f===void 0||f==="millisecond"||!this.isValid())return this;switch(T=this._isUTC?Yv:Vv,f){case"year":_=T(this.year(),0,1);break;case"quarter":_=T(this.year(),this.month()-this.month()%3,1);break;case"month":_=T(this.year(),this.month(),1);break;case"week":_=T(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":_=T(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":_=T(this.year(),this.month(),this.date());break;case"hour":_=this._d.valueOf(),_-=_a(_+(this._isUTC?0:this.utcOffset()*va),Gc);break;case"minute":_=this._d.valueOf(),_-=_a(_,va);break;case"second":_=this._d.valueOf(),_-=_a(_,Yc);break}return this._d.setTime(_),e.updateOffset(this,!0),this}l(MT,"startOf");function RT(f){var _,T;if(f=se(f),f===void 0||f==="millisecond"||!this.isValid())return this;switch(T=this._isUTC?Yv:Vv,f){case"year":_=T(this.year()+1,0,1)-1;break;case"quarter":_=T(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":_=T(this.year(),this.month()+1,1)-1;break;case"week":_=T(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":_=T(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":_=T(this.year(),this.month(),this.date()+1)-1;break;case"hour":_=this._d.valueOf(),_+=Gc-_a(_+(this._isUTC?0:this.utcOffset()*va),Gc)-1;break;case"minute":_=this._d.valueOf(),_+=va-_a(_,va)-1;break;case"second":_=this._d.valueOf(),_+=Yc-_a(_,Yc)-1;break}return this._d.setTime(_),e.updateOffset(this,!0),this}l(RT,"endOf");function NT(){return this._d.valueOf()-(this._offset||0)*6e4}l(NT,"valueOf");function LT(){return Math.floor(this.valueOf()/1e3)}l(LT,"unix");function HT(){return new Date(this.valueOf())}l(HT,"toDate");function UT(){var f=this;return[f.year(),f.month(),f.date(),f.hour(),f.minute(),f.second(),f.millisecond()]}l(UT,"toArray");function jT(){var f=this;return{years:f.year(),months:f.month(),date:f.date(),hours:f.hours(),minutes:f.minutes(),seconds:f.seconds(),milliseconds:f.milliseconds()}}l(jT,"toObject");function qT(){return this.isValid()?this.toISOString():null}l(qT,"toJSON");function WT(){return S(this)}l(WT,"isValid$2");function BT(){return g({},w(this))}l(BT,"parsingFlags");function zT(){return w(this).overflow}l(zT,"invalidAt");function VT(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}l(VT,"creationData"),F("N",0,0,"eraAbbr"),F("NN",0,0,"eraAbbr"),F("NNN",0,0,"eraAbbr"),F("NNNN",0,0,"eraName"),F("NNNNN",0,0,"eraNarrow"),F("y",["y",1],"yo","eraYear"),F("y",["yy",2],0,"eraYear"),F("y",["yyy",3],0,"eraYear"),F("y",["yyyy",4],0,"eraYear"),He("N",Fh),He("NN",Fh),He("NNN",Fh),He("NNNN",iC),He("NNNNN",nC),gt(["N","NN","NNN","NNNN","NNNNN"],function(f,_,T,E){var H=T._locale.erasParse(f,E,T._strict);H?w(T).era=H:w(T).invalidEra=f}),He("y",Fr),He("yy",Fr),He("yyy",Fr),He("yyyy",Fr),He("yo",sC),gt(["y","yy","yyy","yyyy"],ir),gt(["yo"],function(f,_,T,E){var H;T._locale._eraYearOrdinalRegex&&(H=f.match(T._locale._eraYearOrdinalRegex)),T._locale.eraYearOrdinalParse?_[ir]=T._locale.eraYearOrdinalParse(f,H):_[ir]=parseInt(f,10)});function YT(f,_){var T,E,H,Z=this._eras||Y("en")._eras;for(T=0,E=Z.length;T<E;++T){switch(typeof Z[T].since){case"string":H=e(Z[T].since).startOf("day"),Z[T].since=H.valueOf();break}switch(typeof Z[T].until){case"undefined":Z[T].until=1/0;break;case"string":H=e(Z[T].until).startOf("day").valueOf(),Z[T].until=H.valueOf();break}}return Z}l(YT,"localeEras");function GT(f,_,T){var E,H,Z=this.eras(),de,Ue,rt;for(f=f.toUpperCase(),E=0,H=Z.length;E<H;++E)if(de=Z[E].name.toUpperCase(),Ue=Z[E].abbr.toUpperCase(),rt=Z[E].narrow.toUpperCase(),T)switch(_){case"N":case"NN":case"NNN":if(Ue===f)return Z[E];break;case"NNNN":if(de===f)return Z[E];break;case"NNNNN":if(rt===f)return Z[E];break}else if([de,Ue,rt].indexOf(f)>=0)return Z[E]}l(GT,"localeErasParse");function KT(f,_){var T=f.since<=f.until?1:-1;return _===void 0?e(f.since).year():e(f.since).year()+(_-f.offset)*T}l(KT,"localeErasConvertYear");function ZT(){var f,_,T,E=this.localeData().eras();for(f=0,_=E.length;f<_;++f)if(T=this.clone().startOf("day").valueOf(),E[f].since<=T&&T<=E[f].until||E[f].until<=T&&T<=E[f].since)return E[f].name;return""}l(ZT,"getEraName");function XT(){var f,_,T,E=this.localeData().eras();for(f=0,_=E.length;f<_;++f)if(T=this.clone().startOf("day").valueOf(),E[f].since<=T&&T<=E[f].until||E[f].until<=T&&T<=E[f].since)return E[f].narrow;return""}l(XT,"getEraNarrow");function JT(){var f,_,T,E=this.localeData().eras();for(f=0,_=E.length;f<_;++f)if(T=this.clone().startOf("day").valueOf(),E[f].since<=T&&T<=E[f].until||E[f].until<=T&&T<=E[f].since)return E[f].abbr;return""}l(JT,"getEraAbbr");function QT(){var f,_,T,E,H=this.localeData().eras();for(f=0,_=H.length;f<_;++f)if(T=H[f].since<=H[f].until?1:-1,E=this.clone().startOf("day").valueOf(),H[f].since<=E&&E<=H[f].until||H[f].until<=E&&E<=H[f].since)return(this.year()-e(H[f].since).year())*T+H[f].offset;return this.year()}l(QT,"getEraYear");function eC(f){return n(this,"_erasNameRegex")||Mh.call(this),f?this._erasNameRegex:this._erasRegex}l(eC,"erasNameRegex");function tC(f){return n(this,"_erasAbbrRegex")||Mh.call(this),f?this._erasAbbrRegex:this._erasRegex}l(tC,"erasAbbrRegex");function rC(f){return n(this,"_erasNarrowRegex")||Mh.call(this),f?this._erasNarrowRegex:this._erasRegex}l(rC,"erasNarrowRegex");function Fh(f,_){return _.erasAbbrRegex(f)}l(Fh,"matchEraAbbr");function iC(f,_){return _.erasNameRegex(f)}l(iC,"matchEraName");function nC(f,_){return _.erasNarrowRegex(f)}l(nC,"matchEraNarrow");function sC(f,_){return _._eraYearOrdinalRegex||Fr}l(sC,"matchEraYearOrdinal");function Mh(){var f=[],_=[],T=[],E=[],H,Z,de,Ue,rt,vt=this.eras();for(H=0,Z=vt.length;H<Z;++H)de=Rr(vt[H].name),Ue=Rr(vt[H].abbr),rt=Rr(vt[H].narrow),_.push(de),f.push(Ue),T.push(rt),E.push(de),E.push(Ue),E.push(rt);this._erasRegex=new RegExp("^("+E.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+_.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+f.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+T.join("|")+")","i")}l(Mh,"computeErasParse"),F(0,["gg",2],0,function(){return this.weekYear()%100}),F(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Kc(f,_){F(0,[f,f.length],0,_)}l(Kc,"addWeekYearFormatToken"),Kc("gggg","weekYear"),Kc("ggggg","weekYear"),Kc("GGGG","isoWeekYear"),Kc("GGGGG","isoWeekYear"),He("G",ia),He("g",ia),He("GG",ct,Oe),He("gg",ct,Oe),He("GGGG",$r,It),He("gggg",$r,It),He("GGGGG",Zr,qt),He("ggggg",Zr,qt),Xr(["gggg","ggggg","GGGG","GGGGG"],function(f,_,T,E){_[E.substr(0,2)]=ot(f)}),Xr(["gg","GG"],function(f,_,T,E){_[E]=e.parseTwoDigitYear(f)});function aC(f){return Gv.call(this,f,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}l(aC,"getSetWeekYear");function oC(f){return Gv.call(this,f,this.isoWeek(),this.isoWeekday(),1,4)}l(oC,"getSetISOWeekYear");function lC(){return Qr(this.year(),1,4)}l(lC,"getISOWeeksInYear");function uC(){return Qr(this.isoWeekYear(),1,4)}l(uC,"getISOWeeksInISOWeekYear");function cC(){var f=this.localeData()._week;return Qr(this.year(),f.dow,f.doy)}l(cC,"getWeeksInYear");function fC(){var f=this.localeData()._week;return Qr(this.weekYear(),f.dow,f.doy)}l(fC,"getWeeksInWeekYear");function Gv(f,_,T,E,H){var Z;return f==null?cr(this,E,H).year:(Z=Qr(f,E,H),_>Z&&(_=Z),dC.call(this,f,_,T,E,H))}l(Gv,"getSetWeekYearHelper");function dC(f,_,T,E,H){var Z=Hc(f,_,T,E,H),de=$n(Z.year,0,Z.dayOfYear);return this.year(de.getUTCFullYear()),this.month(de.getUTCMonth()),this.date(de.getUTCDate()),this}l(dC,"setWeekAll"),F("Q",0,"Qo","quarter"),He("Q",Ct),gt("Q",function(f,_){_[pi]=(ot(f)-1)*3});function hC(f){return f==null?Math.ceil((this.month()+1)/3):this.month((f-1)*3+this.month()%3)}l(hC,"getSetQuarter"),F("D",["DD",2],"Do","date"),He("D",ct,Mr),He("DD",ct,Oe),He("Do",function(f,_){return f?_._dayOfMonthOrdinalParse||_._ordinalParse:_._dayOfMonthOrdinalParseLenient}
48),gt(["D","DD"],Jr),gt("Do",function(f,_){_[Jr]=ot(f.match(ct)[0])});var Kv=gi("Date",!0);F("DDD",["DDDD",3],"DDDo","dayOfYear"),He("DDD",$i),He("DDDD",at),gt(["DDD","DDDD"],function(f,_,T){T._dayOfYear=ot(f)});function pC(f){var _=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return f==null?_:this.add(f-_,"d")}l(pC,"getSetDayOfYear"),F("m",["mm",2],0,"minute"),He("m",ct,Qi),He("mm",ct,Oe),gt(["m","mm"],Nr);var mC=gi("Minutes",!1);F("s",["ss",2],0,"second"),He("s",ct,Qi),He("ss",ct,Oe),gt(["s","ss"],mi);var gC=gi("Seconds",!1);F("S",0,0,function(){return~~(this.millisecond()/100)}),F(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,function(){return this.millisecond()*10}),F(0,["SSSSS",5],0,function(){return this.millisecond()*100}),F(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),F(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),F(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),F(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),He("S",$i,Ct),He("SS",$i,Oe),He("SSS",$i,at);var Hn,Zv;for(Hn="SSSS";Hn.length<=9;Hn+="S")He(Hn,Fr);function yC(f,_){_[Fi]=ot(("0."+f)*1e3)}for(l(yC,"parseMs"),Hn="S";Hn.length<=9;Hn+="S")gt(Hn,yC);Zv=gi("Milliseconds",!1),F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");function vC(){return this._isUTC?"UTC":""}l(vC,"getZoneAbbr");function _C(){return this._isUTC?"Coordinated Universal Time":""}l(_C,"getZoneName");var ke=q.prototype;ke.add=nr,ke.calendar=vT,ke.clone=_T,ke.diff=CT,ke.endOf=RT,ke.format=AT,ke.from=IT,ke.fromNow=PT,ke.to=$T,ke.toNow=FT,ke.get=hs,ke.invalidAt=zT,ke.isAfter=bT,ke.isBefore=wT,ke.isBetween=ST,ke.isSame=xT,ke.isSameOrAfter=kT,ke.isSameOrBefore=TT,ke.isValid=WT,ke.lang=Wv,ke.locale=qv,ke.localeData=Bv,ke.max=pa,ke.min=xt,ke.parsingFlags=BT,ke.set=$c,ke.startOf=MT,ke.subtract=Or,ke.toArray=UT,ke.toObject=jT,ke.toDate=HT,ke.toISOString=ET,ke.inspect=DT,typeof Symbol<"u"&&Symbol.for!=null&&(ke[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ke.toJSON=qT,ke.toString=OT,ke.unix=LT,ke.valueOf=NT,ke.creationData=VT,ke.eraName=ZT,ke.eraNarrow=XT,ke.eraAbbr=JT,ke.eraYear=QT,ke.year=aa,ke.isLeapYear=$o,ke.weekYear=aC,ke.isoWeekYear=oC,ke.quarter=ke.quarters=hC,ke.month=ps,ke.daysInMonth=ch,ke.week=ke.weeks=nn,ke.isoWeek=ke.isoWeeks=No,ke.weeksInYear=cC,ke.weeksInWeekYear=fC,ke.isoWeeksInYear=lC,ke.isoWeeksInISOWeekYear=uC,ke.date=Kv,ke.day=ke.days=wh,ke.weekday=Sh,ke.isoWeekday=xh,ke.dayOfYear=pC,ke.hour=ke.hours=Oh,ke.minute=ke.minutes=mC,ke.second=ke.seconds=gC,ke.millisecond=ke.milliseconds=Zv,ke.utcOffset=$h,ke.utc=zc,ke.local=z,ke.parseZone=X,ke.hasAlignedHourOffset=ne,ke.isDST=le,ke.isLocal=Ee,ke.isUtcOffset=Re,ke.isUtc=We,ke.isUTC=We,ke.zoneAbbr=vC,ke.zoneName=_C,ke.dates=R("dates accessor is deprecated. Use date instead.",Kv),ke.months=R("months accessor is deprecated. Use month instead",ps),ke.years=R("years accessor is deprecated. Use year instead",aa),ke.zone=R("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Vo),ke.isDSTShifted=R("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",me);function bC(f){return Pt(f*1e3)}l(bC,"createUnix");function wC(){return Pt.apply(null,arguments).parseZone()}l(wC,"createInZone");function Xv(f){return f}l(Xv,"preParsePostFormat");var wt=ze.prototype;wt.calendar=bt,wt.longDateFormat=ve,wt.invalidDate=D,wt.ordinal=_e,wt.preparse=Xv,wt.postformat=Xv,wt.relativeTime=Ce,wt.pastFuture=Ae,wt.set=be,wt.eras=YT,wt.erasParse=GT,wt.erasConvertYear=KT,wt.erasAbbrRegex=tC,wt.erasNameRegex=eC,wt.erasNarrowRegex=rC,wt.months=Nc,wt.monthsShort=Fo,wt.monthsParse=pr,wt.monthsRegex=Mo,wt.monthsShortRegex=fh,wt.week=ms,wt.firstDayOfYear=rn,wt.firstDayOfWeek=hh,wt.weekdays=yh,wt.weekdaysMin=vh,wt.weekdaysShort=Uo,wt.weekdaysParse=bh,wt.weekdaysRegex=kh,wt.weekdaysShortRegex=qc,wt.weekdaysMinRegex=jo,wt.isPM=Th,wt.meridiem=vs;function Zc(f,_,T,E){var H=Y(),Z=v().set(E,_);return H[T](Z,f)}l(Zc,"get$1");function Jv(f,_,T){if(d(f)&&(_=f,f=void 0),f=f||"",_!=null)return Zc(f,_,T,"month");var E,H=[];for(E=0;E<12;E++)H[E]=Zc(f,E,T,"month");return H}l(Jv,"listMonthsImpl");function Rh(f,_,T,E){typeof f=="boolean"?(d(_)&&(T=_,_=void 0),_=_||""):(_=f,T=_,f=!1,d(_)&&(T=_,_=void 0),_=_||"");var H=Y(),Z=f?H._week.dow:0,de,Ue=[];if(T!=null)return Zc(_,(T+Z)%7,E,"day");for(de=0;de<7;de++)Ue[de]=Zc(_,(de+Z)%7,E,"day");return Ue}l(Rh,"listWeekdaysImpl");function SC(f,_){return Jv(f,_,"months")}l(SC,"listMonths");function xC(f,_){return Jv(f,_,"monthsShort")}l(xC,"listMonthsShort");function kC(f,_,T){return Rh(f,_,T,"weekdays")}l(kC,"listWeekdays");function TC(f,_,T){return Rh(f,_,T,"weekdaysShort")}l(TC,"listWeekdaysShort");function CC(f,_,T){return Rh(f,_,T,"weekdaysMin")}l(CC,"listWeekdaysMin"),A("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(f){var _=f%10,T=ot(f%100/10)===1?"th":_===1?"st":_===2?"nd":_===3?"rd":"th";return f+T}}),e.lang=R("moment.lang is deprecated. Use moment.locale instead.",A),e.langData=R("moment.langData is deprecated. Use moment.localeData instead.",Y);var ln=Math.abs;function OC(){var f=this._data;return this._milliseconds=ln(this._milliseconds),this._days=ln(this._days),this._months=ln(this._months),f.milliseconds=ln(f.milliseconds),f.seconds=ln(f.seconds),f.minutes=ln(f.minutes),f.hours=ln(f.hours),f.months=ln(f.months),f.years=ln(f.years),this}l(OC,"abs");function Qv(f,_,T,E){var H=Ve(_,T);return f._milliseconds+=E*H._milliseconds,f._days+=E*H._days,f._months+=E*H._months,f._bubble()}l(Qv,"addSubtract$1");function EC(f,_){return Qv(this,f,_,1)}l(EC,"add$1");function DC(f,_){return Qv(this,f,_,-1)}l(DC,"subtract$1");function e_(f){return f<0?Math.floor(f):Math.ceil(f)}l(e_,"absCeil");function AC(){var f=this._milliseconds,_=this._days,T=this._months,E=this._data,H,Z,de,Ue,rt;return f>=0&&_>=0&&T>=0||f<=0&&_<=0&&T<=0||(f+=e_(Nh(T)+_)*864e5,_=0,T=0),E.milliseconds=f%1e3,H=kr(f/1e3),E.seconds=H%60,Z=kr(H/60),E.minutes=Z%60,de=kr(Z/60),E.hours=de%24,_+=kr(de/24),rt=kr
48(t_(_)),T+=rt,_-=e_(Nh(rt)),Ue=kr(T/12),T%=12,E.days=_,E.months=T,E.years=Ue,this}l(AC,"bubble");function t_(f){return f*4800/146097}l(t_,"daysToMonths");function Nh(f){return f*146097/4800}l(Nh,"monthsToDays");function IC(f){if(!this.isValid())return NaN;var _,T,E=this._milliseconds;if(f=se(f),f==="month"||f==="quarter"||f==="year")switch(_=this._days+E/864e5,T=this._months+t_(_),f){case"month":return T;case"quarter":return T/3;case"year":return T/12}else switch(_=this._days+Math.round(Nh(this._months)),f){case"week":return _/7+E/6048e5;case"day":return _+E/864e5;case"hour":return _*24+E/36e5;case"minute":return _*1440+E/6e4;case"second":return _*86400+E/1e3;case"millisecond":return Math.floor(_*864e5)+E;default:throw new Error("Unknown unit "+f)}}l(IC,"as");function un(f){return function(){return this.as(f)}}l(un,"makeAs");var r_=un("ms"),PC=un("s"),$C=un("m"),FC=un("h"),MC=un("d"),RC=un("w"),NC=un("M"),LC=un("Q"),HC=un("y"),UC=r_;function jC(){return Ve(this)}l(jC,"clone$1");function qC(f){return f=se(f),this.isValid()?this[f+"s"]():NaN}l(qC,"get$2");function Ts(f){return function(){return this.isValid()?this._data[f]:NaN}}l(Ts,"makeGetter");var WC=Ts("milliseconds"),BC=Ts("seconds"),zC=Ts("minutes"),VC=Ts("hours"),YC=Ts("days"),GC=Ts("months"),KC=Ts("years");function ZC(){return kr(this.days()/7)}l(ZC,"weeks");var cn=Math.round,ba={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function XC(f,_,T,E,H){return H.relativeTime(_||1,!!T,f,E)}l(XC,"substituteTimeAgo");function JC(f,_,T,E){var H=Ve(f).abs(),Z=cn(H.as("s")),de=cn(H.as("m")),Ue=cn(H.as("h")),rt=cn(H.as("d")),vt=cn(H.as("M")),br=cn(H.as("w")),fn=cn(H.as("y")),Un=Z<=T.ss&&["s",Z]||Z<T.s&&["ss",Z]||de<=1&&["m"]||de<T.m&&["mm",de]||Ue<=1&&["h"]||Ue<T.h&&["hh",Ue]||rt<=1&&["d"]||rt<T.d&&["dd",rt];return T.w!=null&&(Un=Un||br<=1&&["w"]||br<T.w&&["ww",br]),Un=Un||vt<=1&&["M"]||vt<T.M&&["MM",vt]||fn<=1&&["y"]||["yy",fn],Un[2]=_,Un[3]=+f>0,Un[4]=E,XC.apply(null,Un)}l(JC,"relativeTime$1");function QC(f){return f===void 0?cn:typeof f=="function"?(cn=f,!0):!1}l(QC,"getSetRelativeTimeRounding");function eO(f,_){return ba[f]===void 0?!1:_===void 0?ba[f]:(ba[f]=_,f==="s"&&(ba.ss=_-1),!0)}l(eO,"getSetRelativeTimeThreshold");function tO(f,_){if(!this.isValid())return this.localeData().invalidDate();var T=!1,E=ba,H,Z;return typeof f=="object"&&(_=f,f=!1),typeof f=="boolean"&&(T=f),typeof _=="object"&&(E=Object.assign({},ba,_),_.s!=null&&_.ss==null&&(E.ss=_.s-1)),H=this.localeData(),Z=JC(this,!T,E,H),T&&(Z=H.pastFuture(+this,Z)),H.postformat(Z)}l(tO,"humanize");var Lh=Math.abs;function wa(f){return(f>0)-(f<0)||+f}l(wa,"sign");function Xc(){if(!this.isValid())return this.localeData().invalidDate();var f=Lh(this._milliseconds)/1e3,_=Lh(this._days),T=Lh(this._months),E,H,Z,de,Ue=this.asSeconds(),rt,vt,br,fn;return Ue?(E=kr(f/60),H=kr(E/60),f%=60,E%=60,Z=kr(T/12),T%=12,de=f?f.toFixed(3).replace(/\.?0+$/,""):"",rt=Ue<0?"-":"",vt=wa(this._months)!==wa(Ue)?"-":"",br=wa(this._days)!==wa(Ue)?"-":"",fn=wa(this._milliseconds)!==wa(Ue)?"-":"",rt+"P"+(Z?vt+Z+"Y":"")+(T?vt+T+"M":"")+(_?br+_+"D":"")+(H||E||f?"T":"")+(H?fn+H+"H":"")+(E?fn+E+"M":"")+(f?fn+de+"S":"")):"P0D"}l(Xc,"toISOString$1");var _t=Ss.prototype;_t.isValid=zo,_t.abs=OC,_t.add=EC,_t.subtract=DC,_t.as=IC,_t.asMilliseconds=r_,_t.asSeconds=PC,_t.asMinutes=$C,_t.asHours=FC,_t.asDays=MC,_t.asWeeks=RC,_t.asMonths=NC,_t.asQuarters=LC,_t.asYears=HC,_t.valueOf=UC,_t._bubble=AC,_t.clone=jC,_t.get=qC,_t.milliseconds=WC,_t.seconds=BC,_t.minutes=zC,_t.hours=VC,_t.days=YC,_t.weeks=ZC,_t.months=GC,_t.years=KC,_t.humanize=tO,_t.toISOString=Xc,_t.toString=Xc,_t.toJSON=Xc,_t.locale=qv,_t.localeData=Bv,_t.toIsoString=R("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Xc),_t.lang=Wv,F("X",0,0,"unix"),F("x",0,0,"valueOf"),He("x",ia),He("X",Ic),gt("X",function(f,_,T){T._d=new Date(parseFloat(f)*1e3)}),gt("x",function(f,_,T){T._d=new Date(ot(f))});return e.version="2.30.1",t(Pt),e.fn=ke,e.min=Fn,e.max=Ah,e.now=Ih,e.utc=v,e.unix=bC,e.months=SC,e.isDate=o,e.locale=A,e.invalid=O,e.duration=Ve,e.isMoment=h,e.weekdays=kC,e.parseZone=wC,e.localeData=Y,e.isDuration=Li,e.monthsShort=xC,e.weekdaysMin=CC,e.defineLocale=I,e.updateLocale=L,e.locales=V,e.weekdaysShort=TC,e.normalizeUnits=se,e.relativeTimeRounding=QC,e.relativeTimeThreshold=eO,e.calendarFormat=yT,e.prototype=ke,e.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},e})});var Ei=Pe((w3,ex)=>{var AI=ki(),II=HS(),PI=XS(),QS=ts(),$I=JS(),Ru={SIGN_PAGE:"signPage",NEXT_ACTION_PAGE:"nextActionPage",CONFIRMATION_POPUP:"confirmPage",CONTAINER_LANDING_PAGE:"containerLandingPage",NEXT_ACTION_CONTAINER_PAGE:"nextActionContainerPage"},xn=class xn extends AI{static set firstPetitionSigned(e){this._firstPetitionSigned||(this._firstPetitionSigned=e)}static get firstPetitionSigned(){return this._firstPetitionSigned}static get firstCompletedContainerId(){return this._firstCompletedContainerId}static set firstCompletedContainerId(e){this._firstCompletedContainerId||(this._firstCompletedContainerId=e)}static getTrackingPage(){if(this.confirmPage)return Ru.CONFIRMATION_POPUP;if(this.nextActionPage)return Ru.NEXT_ACTION_PAGE;if(this.containerLandingPage)return Ru.CONTAINER_LANDING_PAGE;if(this.signPage)return Ru.SIGN_PAGE}static get TrackingPages(){return Ru}static get confirmPage(){return!!document.querySelector("#confirmPage")}static get integratedPetition(){return!!(this.confirmPage&&document.querySelector(".optin-confirm-popup__integrated-petition"))}static get nextActionPage(){return!!document.querySelector("#nextActionPage")}static get signPage(){return!!document.querySelector("#signPage")&&!xn.nextActionPage&&!xn.confirmPage}static get containerLandingPage(){return!!document.querySelector(".containerLandingPage")}static get startPageContainerLanding(){let e=$("body.startPageContainerLanding");return e.length&&e.is(":visible")?e:!1}static loadPageFlags(){this.flags={};let e=this.queryString,t=!1,i=location.hash.substring(1),s=i.search(/\?/);switch(s!==-1&&(i=i.slice(0,s)),i){case"published-new":this.flags.publishedNew=!0,this.flags.published=!0,t=!0;break;case"published":this.flags.published=!0,t=!0;break;case"updated":this.flags.updated=!0,t=!0;break;case"share=1":this.flags.share=1,t=!0;break;case"share=2":this.flags.share=2,t=!0;break;case"taf":this.flags.taf=!0;break;case"multi-signer":case"multi_signer":typeof this.mainPetition<"u"&&QS("multi-signer-"+this.mainPetition.petitionID,$I().format("YYYY-MM-DD"));break;case"na-preview":case"na_preview":this.flags.nextActionPreview=!0;break;case"custom-na-preview":case"custom_na_preview":this.flags.customNextActionPreview=!0;break;case"confirm-popup":case"confirm_popup":this.flags.confirmPopUpPreview=!0;break;case"gdpr-confirm-popup":case"gdpr_confirm_popup":this.flags.gdprConfirmPopUpPreview=!0;break;case"author-petition":case"author_petition":this.flags.authorPetitionPreview=!0;break;case"author-popup":case"author_popup":this.flags.authorPopUpPreview=!0;break;case"sign-funnel":case"sign_funnel":this.flags.signFunnelPreview=!0;break;case"sign-funnel-is":case"sign_funnel-is":$("body").append('<div id="confirmPage"></div>'),this.flags.signFunnelPreview=!0;break;case"sign-funnel-gdpr":case"sign_funnel_gdpr":this.flags.signFunnelGdprPreview=!0;break}typeof this.mainPetition<"u"&&(this.flags.multi_signer=!!QS("multi-signer-"+this.mainPetition.petitionID),t&&II(this.mainPetition,location.search.substring(1)),this.flags.updated&&PI(this.mainPetition.canonicalURL)),$.each(e,(n,a)=>{switch(n.toLowerCase()){case"tap":this.flags.publisherID=a,sessionStorage.setItem("publisherID",a);break;case"na-force":case"na_force":this.flags.forceNextActionPetition=a;break;case"is-force":case"is_force":this.flags.forceIntegratedSignaturePetition=a;break;case"z00m":typeof this.mainPetition<"u"&&(this.mainPetition.z00m=a);break;case"redirectid":parseInt(a)>0&&typeof this.mainPetition<"u"&&(this.mainPetition.redirectID=a);break;case"abtesteng18743":window.abTestEng18743=1;break}}),this.flags.publisherID===void 0&&sessionStorage.getItem("publisherID")!==null&&(this.flags.publisherID=sessionStorage.getItem("publisherID")),this.flags.abTestEng18743=!!window.abTestEng18743}};l(xn,"PetitionPage"),Ie(xn,"mainPetition"),Ie(xn,"firstNextActionSeen"),Ie(xn,"_firstPetitionSigned"),Ie(xn,"_firstCompletedContainerId");var Ug=xn;ex.exports=Ug});var rx=Pe((O3,tx)=>{Vt();gr();NS();var FI=Lg(),MI=ki(),k3=ui();function RI(){let r=$("#media_inquiry_form");r.length&&r.on("click",e=>{e.preventDefault();let t=Ei(),i=typeof t.mainPetition=="object"?t.mainPetition.title:"";new FI("siteFeedback",RS({page:MI,location,petitionTitle:i,user:Be.getSignerDataWithUserDataAsDefault(),isTPS:dt.isCurrentDomainThePetitionSite()},{allowProtoPropertiesByDefault:!0,allowProtoMethodsByDefault:!0}))})}l(RI,"addMediaInquiryForm");tx.exports=RI});
48var co,ix,nx=ie(()=>{co=mt(Br());Xs();Vr();zr();co.registerHelper({translate:Yr});co.registerPartial({ButtonStates:Nt,signatures:Rt});ix=co.template({compiler:[8,">= 4.3.0"],main:function(r,e,t,i,s){var n,a=e??(r.nullContext||{}),c=r.escapeExpression,d=r.lookupProperty||function(o,p){if(Object.prototype.hasOwnProperty.call(o,p))return o[p]};return`<div id="cookieNotification">
49    <div id="message">`+c(d(t,"translate").call(a,"cookieNotification--message",{name:"translate",hash:{},data:s,loc:{start:{line:2,column:22},end:{line:2,column:65}}}))+`</div>
50    <a id="accept">`+c(d(t,"translate").call(a,"cookieNotification--accept",{name:"translate",hash:{},data:s,loc:{start:{line:3,column:19},end:{line:3,column:61}}}))+`</a>
51    <span>`+((n=d(t,"translate").call(a,"cookieNotification--learnMore",{name:"translate",hash:{},data:s,loc:{start:{line:4,column:10},end:{line:4,column:57}}}))!=null?n:"")+`</span>
52</div>`},useData:!0})});var ax=Pe(($3,sx)=>{var NI=qr(),LI=lu();window.translationStrings=window.translationStrings||{};sx.exports=l(function(e,t="en"){let i=new $.Deferred,s={languageCode:t,tagNames:[]},n=Object.keys(window.translationStrings);for(let a of e)n.indexOf(a)<0&&s.tagNames.push(a);return s.tagNames.length?LI.callCare2Servlet("localization/translate.php",s).always(a=>{try{a=JSON.parse(a)}catch{i.reject()}a.status==="success"?(window.translationStrings=$.extend({},window.translationStrings,a.data),i.resolve()):(NI(a.errorMessage),i.reject())}):i.resolve(),i},"getTranslations")});var ox=ie(()=>{Sa()(window)});var lx,ux,cx=ie(()=>{xi();Vt();lx=!1,ux=!1;window.addEventListener("unhandledrejection",async r=>{if(!(typeof r.reason>"u"||lx)){lx=!0;try{let e={},t=Be.getAllSessionData();e=Ut.parseLogData(r.reason),e.sessionID=t?.sessionID,e.sessionSequence=t?.sessionSequence,await Ut.fatal("Unhandled Rejection!",e)}catch(e){console.error(e)}}});window.addEventListener("error",async r=>{if(!ux){ux=!0;try{let e={},t=Be.getAllSessionData();e=Ut.parseLogData(r),e.sessionID=t?.sessionID,e.sessionSequence=t?.sessionSequence,await Ut.fatal("Uncaught Error!",e)}catch(e){console.error(e)}}})});var fx=ie(()=>{Vt();Be.startUserSession()});var dx,hx=ie(()=>{Vt();gr();xi();dx=new Promise(async(r,e)=>{try{if(Be.getSignerDataWithUserDataAsDefault()?.country){r();return}let s=await(await fetch(dt.getPetitionSiteURL()+"/tps_servlets/country_from_ip.php")).text(),n;try{n=JSON.parse(s)}catch{throw new Error("Invalid JSON:"+s)}Be.updateUserSession({user:{country:n?.country?.toLowerCase?.()||"us"}}),r()}catch(t){Be.updateUserSession({user:{country:"us"}}),Ut.error("country_bootstrapping_failed",t)}})});var wx=Pe((q3,bx)=>{var HI="2.1.9",fo,Nu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Pd=typeof global<"u"?global:window,Id=function(r){for(var e={},t=0,i=r.length;t<i;t++)e[r.charAt(t)]=t;return e}(Nu),yr=String.fromCharCode,UI=l(function(r){if(r.length<2){var e=r.charCodeAt(0);return e<128?r:e<2048?yr(192|e>>>6)+yr(128|e&63):yr(224|e>>>12&15)+yr(128|e>>>6&63)+yr(128|e&63)}else{var e=65536+(r.charCodeAt(0)-55296)*1024+(r.charCodeAt(1)-56320);return yr(240|e>>>18&7)+yr(128|e>>>12&63)+yr(128|e>>>6&63)+yr(128|e&63)}},"cb_utob"),jI=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,gx=l(function(r){return r.replace(jI,UI)},"utob"),qI=l(function(r){var e=[0,2,1][r.length%3],t=r.charCodeAt(0)<<16|(r.length>1?r.charCodeAt(1):0)<<8|(r.length>2?r.charCodeAt(2):0),i=[Nu.charAt(t>>>18),Nu.charAt(t>>>12&63),e>=2?"=":Nu.charAt(t>>>6&63),e>=1?"=":Nu.charAt(t&63)];return i.join("")},"cb_encode"),yx=Pd.btoa?function(r){return Pd.btoa(r)}:function(r){return r.replace(/[\s\S]{1,3}/g,qI)},px=fo?function(r){return(r.constructor===fo.constructor?r:new fo(r)).toString("base64")}:function(r){return yx(gx(r))},jg=l(function(r,e){return e?px(String(r)).replace(/[+\/]/g,function(t){return t=="+"?"-":"_"}).replace(/=/g,""):px(String(r))},"encode"),WI=l(function(r){return jg(r,!0)},"encodeURI"),BI=new RegExp(["[\xC0-\xDF][\x80-\xBF]","[\xE0-\xEF][\x80-\xBF]{2}","[\xF0-\xF7][\x80-\xBF]{3}"].join("|"),"g"),zI=l(function(r){switch(r.length){case 4:var e=(7&r.charCodeAt(0))<<18|(63&r.charCodeAt(1))<<12|(63&r.charCodeAt(2))<<6|63&r.charCodeAt(3),t=e-65536;return yr((t>>>10)+55296)+yr((t&1023)+56320);case 3:return yr((15&r.charCodeAt(0))<<12|(63&r.charCodeAt(1))<<6|63&r.charCodeAt(2));default:return yr((31&r.charCodeAt(0))<<6|63&r.charCodeAt(1))}},"cb_btou"),vx=l(function(r){return r.replace(BI,zI)},"btou"),VI=l(function(r){var e=r.length,t=e%4,i=(e>0?Id[r.charAt(0)]<<18:0)|(e>1?Id[r.charAt(1)]<<12:0)|(e>2?Id[r.charAt(2)]<<6:0)|(e>3?Id[r.charAt(3)]:0),s=[yr(i>>>16),yr(i>>>8&255),yr(i&255)];return s.length-=[0,0,2,1][t],s.join("")},"cb_decode"),_x=Pd.atob?function(r){return Pd.atob(r)}:function(r){return r.replace(/[\s\S]{1,4}/g,VI)},YI=fo?function(r){return(r.constructor===fo.constructor?r:new fo(r,"base64")).toString()}:function(r){return vx(_x(r))},mx=l(function(r){return YI(String(r).replace(/[-_]/g,function(e){return e=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},"decode"),GI={VERSION:HI,atob:_x,btoa:yx,fromBase64:mx,toBase64:jg,utob:gx,encode:jg,encodeURI:WI,btou:vx,decode:mx};bx.exports=GI});function JI(r){if(r&&typeof r=="string")try{return JSON.parse(xx.fromBase64(r))}catch{return null}return null}var KI,xx,kx,Sx,ZI,Gr,XI,Tx=ie(()=>{Vt();Xn();KI=qr(),xx=wx(),kx="care2.c2_u",Sx=Be.getAllSessionData(),ZI=localStorage.getItem(kx),Gr=JI(ZI),XI=!Gr||Gr.hasBeenMigrated2024||!!Sx.user.firstname||!!Sx.signer.firstname;if(!XI&&Gr){let r=!!Gr?.firstname,t=!!Gr?._signer?.firstname?Gr._signer:r?Gr:!1;t&&Be.updateUserSession({signer:t||{}})}if(Gr&&!Gr.hasBeenMigrated2024&&(Gr.hasBeenMigrated2024=!0,localStorage.setItem(kx,xx.toBase64(JSON.stringify(Gr))),et.fromFormat("3/1/2025","M/d/yyyy").diffNow("months").months<0)){let r=Gr?.passportID||Gr?._signer?.passportID;KI("c2_u migration handled for %i",r).send("c2u_migration_handled")}l(JI,"decodeAndParseLegacyData")});function sP(){return Jt.get("taf_id")?{src:"TAF",campaign:Jt.get("taf_id")}:Jt.get("z00m")&&parseInt(Jt.get("z00m"))>0?{src:"mailing",campaign:Jt.get("z00m")}:document.referrer.match(QI)?{src:"seo",campaign:"google_seo"}:document.referrer.match(tP)?{src:"seo",campaign:"yahoo_seo"}:document.referrer.match(eP)?{src:"seo",campaign:"bing_seo"}:document.referrer.match(rP)?{src:"facebook_organic",campaign:"facebook.com"}:document.referrer.match(iP)?{src:"onsite",campaign:"thepetitionsite.com"}:document.referrer.match(nP)?{src:"onsite",campaign:"care2.com"}:document.referrer.indexOf("://")>0?{src:"referrer",campaign:document.referrer}:{src:null,campaign:null}}
52var QI,eP,tP,rP,iP,nP,Jt,qg,Wg,Cx=ie(()=>{Xn();Vt();QI=/https?:\/\/(www\.|images\.|news\.|video\.|blogsearch\.)?google\.[a-z]{2,3}(\.[a-z]{2,3})?(\/|$|\?)/i,eP=/https?:\/\/([a-z]+\.)?bing\.[a-z]{2,3}(\.[a-z]{2,3})?(\/|$|\?)/i,tP=/https?:\/\/([a-z]+\.)*yahoo\.[a-z]{2,3}(\.[a-z]{2,3})?(\/|$|\?)/i,rP=/https?:\/\/([a-z]+\.)*facebook\.com/i,iP=/https?:\/\/([-a-z\d]+\.)+thepetitionsite\.com/i,nP=/https?:\/\/([-a-z\d]+\.)+care2\.com/i,Jt=new URLSearchParams(location.search),qg=Jt.get("src"),Wg=Jt.get("campaign");if(!(qg&&Wg)){let r=sP();qg=r.src,Wg=r.campaign}Be.updateUserSession({centralizedTracking:{src:qg,campaign:Wg,ad_campaign_id:Jt.get("ad_campaign_id")||Jt.get("campaign_id"),ad_id:Jt.get("ad_id"),ad_set_id:Jt.get("ad_set_id")||Jt.get("adset_id"),ad_petition_id:Jt.get("ad_petition_id"),ad_placement:Jt.get("ad_placement")||Jt.get("placement"),ad_site_source_name:Jt.get("ad_site_source_name")||Jt.get("site_source_name"),ad_set_name:Jt.get("ad_set_name")||Jt.get("adset_name"),ad_name:Jt.get("ad_name"),created:et.now().toUnixInteger()}});l(sP,"parseNonExplicitSrcAndCampaigns")});var aP={};var Ox=ie(()=>{Vt();Be.loadUserSessionFromUrlParams()});var oP,Ex,Dx=ie(()=>{fx();hx();Tx();Cx();oP=dx.then(()=>Promise.resolve().then(()=>(Ox(),aP))),Ex=[oP]});var Vg=Pe((Bg,zg)=>{(function(r,e){typeof Bg=="object"&&typeof zg<"u"?zg.exports=e():typeof define=="function"&&define.amd?define(e):(r=typeof globalThis<"u"?globalThis:r||self).EF=e()})(Bg,function(){"use strict";function r(U,D){if(!(U instanceof D))throw new TypeError("Cannot call a class as a function")}l(r,"n");function e(U,D){for(var W=0;W<D.length;W++){var ue=D[W];ue.enumerable=ue.enumerable||!1,ue.configurable=!0,"value"in ue&&(ue.writable=!0),Object.defineProperty(U,(_e=ue.key,typeof(he=function(Ce,Ae){if(typeof Ce!="object"||Ce===null)return Ce;var re=Ce[Symbol.toPrimitive];if(re===void 0)return(Ae==="string"?String:Number)(Ce);var se=re.call(Ce,Ae||"default");if(typeof se!="object")return se;throw new TypeError("@@toPrimitive must return a primitive value.")}(_e,"string"))=="symbol"?he:String(he)),ue)}var _e,he}l(e,"r");function t(U,D,W){return D&&e(U.prototype,D),W&&e(U,W),Object.defineProperty(U,"prototype",{writable:!1}),U}l(t,"i");function i(U){return(i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(D){return D.__proto__||Object.getPrototypeOf(D)})(U)}l(i,"o");function s(U,D){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(W,ue){return W.__proto__=ue,W})(U,D)}l(s,"a");function n(U,D){if(D&&(typeof D=="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(W){if(W===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W}(U)}l(n,"s");function a(U){var D=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var W,ue=i(U);if(D){var _e=i(this).constructor;W=Reflect.construct(ue,arguments,_e)}else W=ue.apply(this,arguments);return n(this,W)}}l(a,"c");var c=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||c!==void 0&&c,d="URLSearchParams"in c,o="Symbol"in c&&"iterator"in Symbol,p="FileReader"in c&&"Blob"in c&&function(){try{return new Blob,!0}catch{return!1}}(),g="FormData"in c,v="ArrayBuffer"in c;if(v)var m=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],w=ArrayBuffer.isView||function(U){return U&&-1<m.indexOf(Object.prototype.toString.call(U))};function b(U){if(typeof U!="string"&&(U=String(U)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(U)||U==="")throw new TypeError('Invalid character in header field name: "'+U+'"');return U.toLowerCase()}l(b,"y");function S(U){return typeof U!="string"&&(U=String(U)),U}l(S,"m");function O(U){var D={next:function(){var W=U.shift();return{done:W===void 0,value:W}}};return o&&(D[Symbol.iterator]=function(){return D}),D}l(O,"e");function P(U){this.map={}
52,U instanceof P?U.forEach(function(D,W){this.append(W,D)},this):Array.isArray(U)?U.forEach(function(D){this.append(D[0],D[1])},this):U&&Object.getOwnPropertyNames(U).forEach(function(D){this.append(D,U[D])},this)}l(P,"b");function N(U){if(U.bodyUsed)return Promise.reject(new TypeError("Already read"));U.bodyUsed=!0}l(N,"v");function B(U){return new Promise(function(D,W){U.onload=function(){D(U.result)},U.onerror=function(){W(U.error)}})}l(B,"g");function q(U){var D=new FileReader,W=B(D);return D.readAsArrayBuffer(U),W}l(q,"w");function h(U){if(U.slice)return U.slice(0);var D=new Uint8Array(U.byteLength);return D.set(new Uint8Array(U)),D.buffer}l(h,"D");function M(){return this.bodyUsed=!1,this._initBody=function(U){var D;this.bodyUsed=this.bodyUsed,(this._bodyInit=U)?typeof U=="string"?this._bodyText=U:p&&Blob.prototype.isPrototypeOf(U)?this._bodyBlob=U:g&&FormData.prototype.isPrototypeOf(U)?this._bodyFormData=U:d&&URLSearchParams.prototype.isPrototypeOf(U)?this._bodyText=U.toString():v&&p&&(D=U)&&DataView.prototype.isPrototypeOf(D)?(this._bodyArrayBuffer=h(U.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):v&&(ArrayBuffer.prototype.isPrototypeOf(U)||w(U))?this._bodyArrayBuffer=h(U):this._bodyText=U=Object.prototype.toString.call(U):this._bodyText="",this.headers.get("content-type")||(typeof U=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):d&&URLSearchParams.prototype.isPrototypeOf(U)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},p&&(this.blob=function(){var U=N(this);if(U)return U;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var U=N(this);return U||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(q)}),this.text=function(){var U,D,W,ue=N(this);if(ue)return ue;if(this._bodyBlob)return U=this._bodyBlob,D=new FileReader,W=B(D),D.readAsText(U),W;if(this._bodyArrayBuffer)return Promise.resolve(function(_e){for(var he=new Uint8Array(_e),Ce=new Array(he.length),Ae=0;Ae<he.length;Ae++)Ce[Ae]=String.fromCharCode(he[Ae]);return Ce.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},g&&(this.formData=function(){return this.text().then(pe)}),this.json=function(){return this.text().then(JSON.parse)},this}l(M,"P"),P.prototype.append=function(U,D){U=b(U),D=S(D);var W=this.map[U];this.map[U]=W?W+", "+D:D},P.prototype.delete=function(U){delete this.map[b(U)]},P.prototype.get=function(U){return U=b(U),this.has(U)?this.map[U]:null},P.prototype.has=function(U){return this.map.hasOwnProperty(b(U))},P.prototype.set=function(U,D){this.map[b(U)]=S(D)},P.prototype.forEach=function(U,D){for(var W in this.map)this.map.hasOwnProperty(W)&&U.call(D,this.map[W],W,this)},P.prototype.keys=function(){var U=[];return this.forEach(function(D,W){U.push(W)}),O(U)},P.prototype.values=function(){var U=[];return this.forEach(function(D){U.push(D)}),O(U)},P.prototype.entries=function(){var U=[];return this.forEach(function(D,W){U.push([W,D])}),O(U)},o&&(P.prototype[Symbol.iterator]=P.prototype.entries);var R=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function G(U,D){if(!(this instanceof G))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var W,ue,_e=(D=D||{}).body;if(U instanceof G){if(U.bodyUsed)throw new TypeError("Already read");this.url=U.url,this.credentials=U.credentials,D.headers||(this.headers=new P(U.headers)),this.method=U.method,this.mode=U.mode,this.signal=U.signal,_e||U._bodyInit==null||(_e=U._bodyInit,U.bodyUsed=!0)}else this.url=String(U);if(this.credentials=D.credentials||this.credentials||"same-origin",!D.headers&&this.headers||(this.headers=new P(D.headers)),this.method=(W=D.method||this.method||"GET",ue=W.toUpperCase(),-1<R.indexOf(ue)?ue:W),this.mode=D.mode||this.mode||null,this.signal=D.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&_e)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(_e),!(this.method!=="GET"&&this.method!=="HEAD"||D.cache!=="no-store"&&D.cache!=="no-cache")){var he=/([?&])_=[^&]*/;he.test(this.url)?this.url=this.url.replace(he,"$1_="+new Date().getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+new Date().getTime()}}l(G,"T");function pe(U){var D=new FormData;return U.trim().split("&").forEach(function(W){if(W){var ue=W.split("="),_e=ue.shift().replace(/\+/g," "),he=ue.join("=").replace(/\+/g," ");D.append(decodeURIComponent(_e),decodeURIComponent(he))}}),D}l(pe,"j");function ce(U,D){if(!(this instanceof ce))throw new TypeError('Please use the "new" operator, this DOM object c
52onstructor cannot be called as a function.');D=D||{},this.type="default",this.status=D.status===void 0?200:D.status,this.ok=200<=this.status&&this.status<300,this.statusText=D.statusText===void 0?"":""+D.statusText,this.headers=new P(D.headers),this.url=D.url||"",this._initBody(U)}l(ce,"O"),G.prototype.clone=function(){return new G(this,{body:this._bodyInit})},M.call(G.prototype),M.call(ce.prototype),ce.prototype.clone=function(){return new ce(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new P(this.headers),url:this.url})},ce.error=function(){var U=new ce(null,{status:0,statusText:""});return U.type="error",U};var be=[301,302,303,307,308];ce.redirect=function(U,D){if(be.indexOf(D)===-1)throw new RangeError("Invalid status code");return new ce(null,{status:D,headers:{location:U}})};var Te=c.DOMException;try{new Te}catch{(Te=l(function(D,W){this.message=D,this.name=W;var ue=Error(D);this.stack=ue.stack},"k")).prototype=Object.create(Error.prototype),Te.prototype.constructor=Te}function ze(U,D){return new Promise(function(W,ue){var _e=new G(U,D);if(_e.signal&&_e.signal.aborted)return ue(new Te("Aborted","AbortError"));var he=new XMLHttpRequest;function Ce(){he.abort()}l(Ce,"n"),he.onload=function(){var Ae,re,se={status:he.status,statusText:he.statusText,headers:(Ae=he.getAllResponseHeaders()||"",re=new P,Ae.replace(/\r?\n[\t ]+/g," ").split("\r").map(function($e){return $e.indexOf(`
53`)===0?$e.substr(1,$e.length):$e}
53).forEach(function($e){var Fe=$e.split(":"),Ct=Fe.shift().trim();if(Ct){var Oe=Fe.join(":").trim();re.append(Ct,Oe)}}),re)};se.url="responseURL"in he?he.responseURL:se.headers.get("X-Request-URL");var Se="response"in he?he.response:he.responseText;setTimeout(function(){W(new ce(Se,se))},0)},he.onerror=function(){setTimeout(function(){ue(new TypeError("Network request failed"))},0)},he.ontimeout=function(){setTimeout(function(){ue(new TypeError("Network request failed"))},0)},he.onabort=function(){setTimeout(function(){ue(new Te("Aborted","AbortError"))},0)},he.open(_e.method,function(Ae){try{return Ae===""&&c.location.href?c.location.href:Ae}catch{return Ae}}(_e.url),!0),_e.credentials==="include"?he.withCredentials=!0:_e.credentials==="omit"&&(he.withCredentials=!1),"responseType"in he&&(p?he.responseType="blob":v&&_e.headers.get("Content-Type")&&_e.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(he.responseType="arraybuffer")),!D||typeof D.headers!="object"||D.headers instanceof P?_e.headers.forEach(function(Ae,re){he.setRequestHeader(re,Ae)}):Object.getOwnPropertyNames(D.headers).forEach(function(Ae){he.setRequestHeader(Ae,S(D.headers[Ae]))}),_e.signal&&(_e.signal.addEventListener("abort",Ce),he.onreadystatechange=function(){he.readyState===4&&_e.signal.removeEventListener("abort",Ce)}),he.send(_e._bodyInit===void 0?null:_e._bodyInit)})}l(ze,"U"),ze.polyfill=!0,c.fetch||(c.fetch=ze,c.Headers=P,c.Request=G,c.Response=ce);var Ke=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tt(U){var D=this.constructor;return this.then(function(W){return D.resolve(U()).then(function(){return W})},function(W){return D.resolve(U()).then(function(){return D.reject(W)})})}l(tt,"A");function bt(U){return new this(function(D,W){if(!U||U.length===void 0)return W(new TypeError(typeof U+" "+U+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var ue=Array.prototype.slice.call(U);if(ue.length===0)return D([]);var _e=ue.length;function he(Ae,re){if(re&&(typeof re=="object"||typeof re=="function")){var se=re.then;if(typeof se=="function")return void se.call(re,function(Se){he(Ae,Se)},function(Se){ue[Ae]={status:"rejected",reason:Se},--_e==0&&D(ue)})}ue[Ae]={status:"fulfilled",value:re},--_e==0&&D(ue)}l(he,"a");for(var Ce=0;Ce<ue.length;Ce++)he(Ce,ue[Ce])})}l(bt,"L"),function(U){function D(re){var se={next:function(){var Se=re.shift();return{done:Se===void 0,value:Se}}};return Ce&&(se[Symbol.iterator]=function(){return se}),se}l(D,"e");function W(re){return encodeURIComponent(re).replace(/%20/g,"+")}l(W,"r");function ue(re){return decodeURIComponent(String(re).replace(/\+/g," "))}l(ue,"o");var _e,he,Ce=function(){try{return!!Symbol.iterator}catch{return!1}}();!function(){try{var re=U.URLSearchParams;return new re("?a=1").toString()==="a=1"&&typeof re.prototype.set=="function"&&typeof re.prototype.entries=="function"}catch{return!1}}()&&((he=(_e=l(function(re){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var se=typeof re;if(se!="undefined")if(se=="string")re!==""&&this._fromString(re);else if(re instanceof _e){var Se=this;re.forEach(function(Oe,at){Se.append(at,Oe)})}else{if(re===null||se!="object")throw new TypeError("Unsupported input's type for URLSearchParams");if(Object.prototype.toString.call(re)==="[object Array]")for(var $e=0;$e<re.length;$e++){var Fe=re[$e];if(Object.prototype.toString.call(Fe)!=="[object Array]"&&Fe.length===2)throw new TypeError("Expected [string, any] as entry at index "+$e+" of URLSearchParams's input");this.append(Fe[0],Fe[1])}else for(var Ct in re)re.hasOwnProperty(Ct)&&this.append(Ct,re[Ct])}},"a")).prototype).append=function(re,se){re in this._entries?this._entries[re].push(String(se)):this._entries[re]=[String(se)]},he.delete=function(re){delete this._entries[re]},he.get=function(re){return re in this._entries?this._entries[re][0]:null},he.getAll=function(re){return re in this._entries?this._entries[re].slice(0):[]},he.has=function(re){return re in this._entries},he.set=function(re,se){this._entries[re]=[String(se)]},he.forEach=function(re,se){var Se;for(var $e in this._entries)if(this._entries.hasOwnProperty($e)){Se=this._entries[$e];for(var Fe=0;Fe<Se.length;Fe++)re.call(se,Se[Fe],$e,this)}}
53,he.keys=function(){var re=[];return this.forEach(function(se,Se){re.push(Se)}),D(re)},he.values=function(){var re=[];return this.forEach(function(se){re.push(se)}),D(re)},he.entries=function(){var re=[];return this.forEach(function(se,Se){re.push([Se,se])}),D(re)},Ce&&(he[Symbol.iterator]=he.entries),he.toString=function(){var re=[];return this.forEach(function(se,Se){re.push(W(Se)+"="+W(se))}),re.join("&")},U.URLSearchParams=_e);var Ae=U.URLSearchParams.prototype;typeof Ae.sort!="function"&&(Ae.sort=function(){var re=this,se=[];this.forEach(function($e,Fe){se.push([Fe,$e]),re._entries||re.delete(Fe)}),se.sort(function($e,Fe){return $e[0]<Fe[0]?-1:$e[0]>Fe[0]?1:0}),re._entries&&(re._entries={});for(var Se=0;Se<se.length;Se++)this.append(se[Se][0],se[Se][1])}),typeof Ae._fromString!="function"&&Object.defineProperty(Ae,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(re){if(this._entries)this._entries={};else{var se=[];this.forEach(function(Ct,Oe){se.push(Oe)});for(var Se=0;Se<se.length;Se++)this.delete(se[Se])}var $e,Fe=(re=re.replace(/^\?/,"")).split("&");for(Se=0;Se<Fe.length;Se++)$e=Fe[Se].split("="),this.append(ue($e[0]),1<$e.length?ue($e[1]):"")}})}(Ke!==void 0?Ke:typeof window<"u"?window:typeof self<"u"?self:Ke),function(U){var D,W;function ue(he,Ce){typeof he!="string"&&(he=String(he)),Ce&&typeof Ce!="string"&&(Ce=String(Ce));var Ae,re=document;if(Ce&&(U.location===void 0||Ce!==U.location.href)){Ce=Ce.toLowerCase(),(Ae=(re=document.implementation.createHTMLDocument("")).createElement("base")).href=Ce,re.head.appendChild(Ae);try{if(Ae.href.indexOf(Ce)!==0)throw new Error(Ae.href)}catch(It){throw new Error("URL unable to set base "+Ce+" due to "+It)}}var se=re.createElement("a");se.href=he,Ae&&(re.body.appendChild(se),se.href=se.href);var Se=re.createElement("input");if(Se.type="url",Se.value=he,se.protocol===":"||!/:/.test(se.href)||!Se.checkValidity()&&!Ce)throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:se});var $e=new U.URLSearchParams(this.search),Fe=!0,Ct=!0,Oe=this;["append","delete","set"].forEach(function(It){var qt=$e[It];$e[It]=function(){qt.apply($e,arguments),Fe&&(Ct=!1,Oe.search=$e.toString(),Ct=!0)}}),Object.defineProperty(this,"searchParams",{value:$e,enumerable:!0});var at=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==at&&(at=this.search,Ct&&(Fe=!1,this.searchParams._fromString(this.search),Fe=!0))}})}if(l(ue,"e"),!function(){try{var he=new U.URL("b","http://a");return he.pathname="c d",he.href==="http://a/c%20d"&&he.searchParams}catch{return!1}}()&&(D=U.URL,W=ue.prototype,["hash","host","hostname","port","protocol"].forEach(function(he){var Ce;Ce=he,Object.defineProperty(W,Ce,{get:function(){return this._anchorElement[Ce]},set:function(Ae){this._anchorElement[Ce]=Ae},enumerable:!0})}),Object.defineProperty(W,"search",{get:function(){return this._anchorElement.search},set:function(he){this._anchorElement.search=he,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(W,{toString:{get:function(){var he=this;return function(){return he.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(he){this._anchorElement.href=he,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(he){this._anchorElement.pathname=he},enumerable:!0},origin:{get:function(){var he={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],Ce=this._anchorElement.port!=he&&this._anchorElement.port!=="";return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(Ce?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(he){},enumerable:!0},username:{get:function(){return""},set:function(he){},enumerable:!0}}),ue.createObjectURL=function(he){return D.createObjectURL.apply(D,arguments)},ue.revokeObjectURL=function(he){return D.revokeObjectURL.apply(D,arguments)},U.URL=ue),U.location!==void 0&&!("origin"in U.location)){var _e=l(function(){return U.location.protocol+"//"+U.location.hostname+(U.location.port?":"+U.location.port:"")},"r");try{Object.defineProperty(U.location,"origin",{get:_e,enumerable:!0})}catch{setInterval(function(){U.location.origin=_e()},100)}}}(Ke!==void 0?Ke:typeof window<"u"?window:typeof self<"u"?self:Ke);var je=setTimeout;function Ze(U){return!!(U&&U.length!==void 0)}l(Ze,"B");function ut(){}l(ut,"C");function qe(U){if(!(this instanceof qe))throw new TypeError("Promises must be constructed via new");if(typeof U!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],Q(U,this)}l(qe,"F");function C(U,D){for(;U._state===3;)U=U._value;U._state!==0?(U._handled=!0,qe._immediateFn(function(){var W=U._state===1?D.onFulfilled:D.onRejected;if(W!==null){var ue;try{ue=W(U._value)}catch(_e){return void j(D.promise,_e)}F(D.promise,ue)}else(U._state===1?F:j)(D.promise,U._value)})):U._deferreds.push(D)}l(C,"I");function F(U,D){try{if(D===U)throw new TypeError("A promise cannot be resolved with itself.");if(D&&(typeof D=="object"||typeof D=="function")){var W=D.then;if(D instanceof qe)return U._state=3,U._value=D,void ee(U);if(typeof W=="function")return void Q((ue=W,_e=D,function(){ue.a
53pply(_e,arguments)}),U)}U._state=1,U._value=D,ee(U)}catch(he){j(U,he)}var ue,_e}l(F,"H");function j(U,D){U._state=2,U._value=D,ee(U)}l(j,"M");function ee(U){U._state===2&&U._deferreds.length===0&&qe._immediateFn(function(){U._handled||qe._unhandledRejectionFn(U._value)});for(var D=0,W=U._deferreds.length;D<W;D++)C(U,U._deferreds[D]);U._deferreds=null}l(ee,"q");function J(U,D,W){this.onFulfilled=typeof U=="function"?U:null,this.onRejected=typeof D=="function"?D:null,this.promise=W}l(J,"G");function Q(U,D){var W=!1;try{U(function(ue){W||(W=!0,F(D,ue))},function(ue){W||(W=!0,j(D,ue))})}catch(ue){if(W)return;W=!0,j(D,ue)}}l(Q,"N"),qe.prototype.catch=function(U){return this.then(null,U)},qe.prototype.then=function(U,D){var W=new this.constructor(ut);return C(this,new J(U,D,W)),W},qe.prototype.finally=tt,qe.all=function(U){return new qe(function(D,W){if(!Ze(U))return W(new TypeError("Promise.all accepts an array"));var ue=Array.prototype.slice.call(U);if(ue.length===0)return D([]);var _e=ue.length;function he(Ae,re){try{if(re&&(typeof re=="object"||typeof re=="function")){var se=re.then;if(typeof se=="function")return void se.call(re,function(Se){he(Ae,Se)},W)}ue[Ae]=re,--_e==0&&D(ue)}catch(Se){W(Se)}}l(he,"s");for(var Ce=0;Ce<ue.length;Ce++)he(Ce,ue[Ce])})},qe.allSettled=bt,qe.resolve=function(U){return U&&typeof U=="object"&&U.constructor===qe?U:new qe(function(D){D(U)})},qe.reject=function(U){return new qe(function(D,W){W(U)})},qe.race=function(U){return new qe(function(D,W){if(!Ze(U))return W(new TypeError("Promise.race accepts an array"));for(var ue=0,_e=U.length;ue<_e;ue++)qe.resolve(U[ue]).then(D,W)})},qe._immediateFn=typeof setImmediate=="function"?function(U){setImmediate(U)}:function(U){je(U,0)},qe._unhandledRejectionFn=function(U){typeof console<"u"&&console&&console.warn("Possible Unhandled Promise Rejection:",U)};var oe=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}();typeof oe.Promise!="function"?oe.Promise=qe:oe.Promise.prototype.finally?oe.Promise.allSettled||(oe.Promise.allSettled=bt):oe.Promise.prototype.finally=tt;var ve=function(){function U(D){if(r(this,U),this.constructor===U)throw new TypeError("Can not construct abstract class.");if(this._persist===U.prototype._persist)throw new TypeError("Please implement abstract method _persist.");if(this._fetch===U.prototype._fetch)throw new TypeError("Please implement abstract method _fetch.");this.customParamProvider=D,this._trackingDomain="<<.TrackingDomain>>",this._organicEnabled=!1}return l(U,"t"),t(U,[{key:"configure",value:function(D){this._isDefined(D.tracking_domain)&&(this._trackingDomain=D.tracking_domain),this._isDefined(D.tld)&&(this._tld=D.tld),this._isDefined(D.organic)&&(this._isDefined(D.organic.offer_id)&&this._isDefined(D.organic.affiliate_id)?(this._organicEnabled=!0,this._organicOptions=Object.assign(this._getDefaultOrganicClickOptions(),D.organic.options||{},{affiliate_id:D.organic.affiliate_id,offer_id:D.organic.offer_id})):console.warn('Unable to setup organic tracking. Missing "organic.offer_id" or "organic.affiliate_id" parameter.'))}},{key:"getAdvertiserTransactionId",value:function(D){var W=this._fetch("ef_tid_c_a_".concat(D));return W=0<(W=W?W.split("|"):[]).length?W[W.length-1]:this._fetch("ef_tid_i_a_".concat(D))}},{key:"getTransactionId",value:function(D){var W=this._fetch("ef_tid_c_o_".concat(D));return W=(W=0<(W=W?W.split("|"):[]).length?W[W.length-1]:this._fetch("ef_tid_i_o_".concat(D)))||this._fetch("ef_tid_".concat(D))}},{key:"impression",value:function(D){var W=this;return D.offer_id||D.coupon_code?D.do_not_track===!0?Promise.resolve(""):new Promise(function(ue,_e){W._getCustomParams().then(function(he){var Ce=W._isDefined(D.tracking_domain)?D.tracking_domain:W._trackingDomain,Ae=new URL("".concat(Ce,"/sdk/impression")),re=new URLSearchParams(Ae.search);for(var se in he)he.hasOwnProperty(se)&&re.set(se,he[se]);re.set("oid",D.offer_id),re.set("affid",D.affiliate_id||""),re.set("async","json"),W._isDefined(D.sub1)&&re.set("sub1",D.sub1),W._isDefined(D.sub2)&&re.set("sub2",D.sub2),W._isDefined(D.sub3)&&re.set("sub3",D.sub3),W._isDefined(D.sub4)&&re.set("sub4",D.sub4),W._isDefined(D.sub5)&&re.
53set("sub5",D.sub5),W._isDefined(D.adv1)&&re.set("adv1",D.adv1),W._isDefined(D.adv2)&&re.set("adv2",D.adv2),W._isDefined(D.adv3)&&re.set("adv3",D.adv3),W._isDefined(D.adv4)&&re.set("adv4",D.adv4),W._isDefined(D.adv5)&&re.set("adv5",D.adv5),W._isDefined(D.source_id)&&re.set("source_id",D.source_id),W._isDefined(D.creative_id)&&re.set("creative_id",D.creative_id),W._isDefined(D.fbclid)?re.set("fbclid",D.fbclid):W._setDefaultFromURL(re,"fbclid"),W._isDefined(D.gclid)?re.set("gclid",D.gclid):W._setDefaultFromURL(re,"gclid"),W._isDefined(D.ttclid)?re.set("ttclid",D.ttclid):W._setDefaultFromURL(re,"ttclid"),W._isDefined(D.sccid)?re.set("sccid",D.sccid):W._setDefaultFromURL(re,"ScCid"),W._isDefined(D.coupon_code)&&re.set("__cc",D.coupon_code||""),W._isDefined(D.parameters)&&Object.keys(D.parameters).forEach(function(Se){return re.set(Se,D.parameters[Se])}),D.disable_fingerprinting===!0&&re.delete("effp"),Ae.search=re.toString(),fetch(Ae.toString(),{method:"GET",credentials:"include"}).then(function(Se){return Se.json()},function(Se){console.error(Se),ue("")}).then(function(Se){if(Se.transaction_id&&0<Se.transaction_id.length){var $e=W._fetch("ef_tid_i_o_".concat(Se.oid||D.offer_id));W._persist("ef_tid_i_o_".concat(Se.oid||D.offer_id),$e&&0<$e.length?"".concat($e,"|").concat(Se.transaction_id):Se.transaction_id);var Fe=W._fetch("ef_tid_i_a_".concat(Se.aid));W._persist("ef_tid_i_a_".concat(Se.aid),Fe&&0<Fe.length?"".concat(Fe,"|").concat(Se.transaction_id):Se.transaction_id),ue(Se.transaction_id)}})})}):(console.warn('Unable to track. Missing "offer_id" parameter.'),Promise.resolve(""))}},{key:"_getDefaultOrganicClickOptions",value:function(){var D="";return this.urlParameter("fbclid")&&(D="Facebook",this.urlParameter("fbclid").slice(0,3)==="PAA"&&(D="Instagram")),this.urlParameter("gclid")&&(D="Google"),this.urlParameter("ttclid")&&(D="Tiktok"),this.urlParameter("sccid")&&(D="Snapchat"),(this.urlParameter("MSCLKID")||this.urlParameter("msclkid"))&&(D="Microsoft"),this.urlParameter("OutbrainClickId")&&(D="Outbrain"),this.urlParameter("TCLID")&&(D="Taboola"),{sub1:this.urlParameter("sub1")||D,sub2:this.urlParameter("sub2")||document.referrer,sub3:this.urlParameter("sub3")||"/"+window.location.pathname.split("/")[1],sub4:this.urlParameter("sub4")||window.location.pathname,sub5:this.urlParameter("sub5")||window.location.search,source_id:this.urlParameter("source_id")||"organic",transaction_id:this.urlParameter("_ef_transaction_id"),organic:1}}},{key:"click",value:function(D){var W=this;if(D.do_not_track===!0)return Promise.resolve("");if(!D.offer_id&&!D.transaction_id&&!D.coupon_code){if(!this._organicEnabled||this._fetch("ef_witness"))return console.warn('Unable to track. Missing "offer_id" or "transaction_id" parameter.'),Promise.resolve("");D=this._organicOptions}return new Promise(function(ue,_e){W._getCustomParams().then(function(he){var Ce=W._isDefined(D.tracking_domain)?D.tracking_domain:W._trackingDomain,Ae=new URL("".concat(Ce,"/sdk/click")),re=new URLSearchParams(Ae.search);for(var se in he)he.hasOwnProperty(se)&&re.set(se,he[se]);if(re.set("_ef_transaction_id",D.transaction_id||""),re.set("oid",D.offer_id||""),re.set("affid",D.affiliate_id||""),re.set("__cc",D.coupon_code||""),re.set("async","json"),W._isDefined(D.uid)&&re.set("uid",D.uid),W._isDefined(D.sub1)&&re.set("sub1",D.sub1),W._isDefined(D.sub2)&&re.set("sub2",D.sub2),W._isDefined(D.sub3)&&re.set("sub3",D.sub3),W._isDefined(D.sub4)&&re.set("sub4",D.sub4),W._isDefined(D.sub5)&&re.set("sub5",D.sub5),W._isDefined(D.adv1)&&re.set("adv1",D.adv1),W._isDefined(D.adv2)&&re.set("adv2",D.adv2),W._isDefined(D.adv3)&&re.set("adv3",D.adv3),W._isDefined(D.adv4)&&re.set("adv4",D.adv4),W._isDefined(D.adv5)&&re.set("adv5",D.adv5),W._isDefined(D.source_id)&&re.set("source_id",D.source_id),W._isDefined(D.creative_id)&&re.set("creative_id",D.creative_id),W._isDefined(D.organic)&&re.set("__organic_click",D.organic||""),W._isDefined(D.cost)&&re.set("cost",D.cost),W._isDefined(D.fbclid)?re.set("fbclid",D.fbclid):W._setDefaultFromURL(re,"fbclid"),W._isDefined(D.gclid)?re.set("gclid",D.gclid):W._setDefaultFromURL(re,"gclid"),W._isDefined(D.ttclid)?re.set("ttclid",D.ttclid):W._setDefaultFromURL(re,"ttclid"),W._isDefined(D.sccid)?re.set("sccid",D.sccid):W._setDefaultFromURL(re,"ScCid"),D.disable_fingerprinting===!0&&re.delete("effp"),re.set("__rf",document.referrer),W._isDefined(D.offer_id)){var Se=W._fetch("ef_session_".concat(D.offer_id)),$e=Math.floor(100*Math.random());re.set("__efckuq",Se!==""?2*$e+1:$e%2==0?$e:$e+1)}
53W._isDefined(D.parameters)&&Object.keys(D.parameters).forEach(function(Fe){return re.set(Fe,D.parameters[Fe])}),Ae.search=re.toString(),fetch(Ae.toString(),{method:"GET",credentials:"include"}).then(function(Fe){return Fe.json()},function(Fe){console.error(Fe),ue("")}).then(function(Fe){if(Fe.transaction_id&&0<Fe.transaction_id.length){W._persist("ef_witness","1"),W._persist("ef_session_".concat(Fe.oid||D.offer_id),"1",0<Fe.session_duration?Fe.session_duration:720);var Ct=W._fetch("ef_tid_c_o_".concat(Fe.oid||D.offer_id));W._persist("ef_tid_c_o_".concat(Fe.oid||D.offer_id),Ct&&0<Ct.length?"".concat(Ct,"|").concat(Fe.transaction_id):Fe.transaction_id);var Oe=W._fetch("ef_tid_c_a_".concat(Fe.aid));W._persist("ef_tid_c_a_".concat(Fe.aid),Oe&&0<Oe.length?"".concat(Oe,"|").concat(Fe.transaction_id):Fe.transaction_id),ue(Fe.transaction_id)}})})})}},{key:"conversion",value:function(D){var W=this;if(!D.transaction_id){if(this._isDefined(D.offer_id))D.transaction_id=this._fetch("ef_tid_c_o_".concat(D.offer_id)),D.transaction_id||(D.transaction_id=this._fetch("ef_tid_i_o_".concat(D.offer_id))),D.transaction_id||(D.transaction_id=this._fetch("ef_tid_".concat(D.offer_id)));else if(this._isDefined(D.advertiser_id)||this._isDefined(D.aid)){var ue=D.advertiser_id||D.aid;D.transaction_id=this._fetch("ef_tid_c_a_".concat(ue)),D.transaction_id||(D.transaction_id=this._fetch("ef_tid_i_a_".concat(ue))),D.transaction_id||(D.transaction_id=this._fetch("ef_tid_".concat(D.offer_id)))}}return D.transaction_id&&332<D.transaction_id.length&&(D.transaction_id=D.transaction_id.substring(0,33)+D.transaction_id.substring(D.transaction_id.length-297,D.transaction_id.length)),new Promise(function(_e,he){W._getCustomParams().then(function(Ce){var Ae=W._isDefined(D.tracking_domain)?D.tracking_domain:W._trackingDomain,re=new URL("".concat(Ae,"/sdk/conversion")),se=new URLSearchParams(re.search);for(var Se in Ce)Ce.hasOwnProperty(Se)&&se.set(Se,Ce[Se]);se.set("transaction_id",D.transaction_id||""),se.set("event_id",D.event_id||0),W._isDefined(D.offer_id)&&se.set("oid",D.offer_id),W._isDefined(D.affiliate_id)&&se.set("affid",D.affiliate_id),W._isDefined(D.advertiser_id)&&se.set("advid",D.advertiser_id),W._isDefined(D.aid)&&se.set("aid",D.aid),W._isDefined(D.adv_event_id)&&(se.set("adv_event_id",D.adv_event_id),se.delete("event_id")),W._isDefined(D.coupon_code)&&se.set("coupon_code",D.coupon_code),W._isDefined(D.amount)&&se.set("amount",D.amount),W._isDefined(D.adv1)&&se.set("adv1",D.adv1),W._isDefined(D.adv2)&&se.set("adv2",D.adv2),W._isDefined(D.adv3)&&se.set("adv3",D.adv3),W._isDefined(D.adv4)&&se.set("adv4",D.adv4),W._isDefined(D.adv5)&&se.set("adv5",D.adv5),W._isDefined(D.sub1)&&se.set("sub1",D.sub1),W._isDefined(D.sub2)&&se.set("sub2",D.sub2),W._isDefined(D.sub3)&&se.set("sub3",D.sub3),W._isDefined(D.sub4)&&se.set("sub4",D.sub4),W._isDefined(D.sub5)&&se.set("sub5",D.sub5),W._isDefined(D.order_id)&&se.set("order_id",D.order_id),W._isDefined(D.verification_token)&&se.set("verification_token",D.verification_token),W._isDefined(D.email)&&se.set("email",D.email),W._isDefined(D.order)&&se.set("order",JSON.stringify(D.order)),W._isDefined(D.user_id)&&se.set("user_id",D.user_id),D.disable_fingerprinting===!0&&se.delete("effp"),W._isDefined(D.parameters)&&Object.keys(D.parameters).forEach(function($e){return se.set($e,D.parameters[$e])}),se.set("event_source_url",window.location.hostname),re.search=se.toString(),fetch(re.toString(),{method:"GET",headers:{Accept:"application/json"},credentials:"include"}).then(function($e){if($e.status!==200)return{conversion_id:"",transaction_id:"",html_pixel:""};var Fe=$e.json();return Fe.error?{conversion_id:"",transaction_id:"",html_pixel:""}:Fe}).then(function($e){if($e.html_pixel){var Fe=document.createElement("iframe");Fe.width=1,Fe.height=1,Fe.frameBorder=0,document.getElementsByTagName("body")[0].appendChild(Fe),Fe.contentWindow.document.open(),Fe.contentWindow.document.write($e.html_pixel),Fe.contentWindow.document.close()}_e({transaction_id:$e.transaction_id,conversion_id:$e.conversion_id})}).catch(function($e){console.log($e),_e({conversion_id:"",transaction_id:"",html_pixel:""})})})})}},{key:"_getCustomParams",value:function(){return Promise.all([this.customParamProvider,this._getClientHints()]).then(function(D){return D.reduce(function(W,ue){return Object.assign(W,ue)},{})})}},{key:"_getClientHints",value:function(){return window.navigator.userAgentData?navigator.userAgentData.getHighEntropyValues(["platform","platformVersion","model"]).then(function(D){return{sec_ch_ua_platform:D.platform,sec_ch_ua_platform_version:D.platformVersion,sec_ch_ua_model:D.model}}):Promise.resolve({})}},{key:"_fetch",value:function(){throw new TypeError("Do not call abstract method _fetch")}},{key:"_persist",value:function(){throw new TypeError("Do not call abstract method _persist")}},{key:"_isDefined",value:function(D){return D!==void 0&&D!=null}},{key:"_setDefaultFromURL",value:function(D,W){var ue=this.urlParameter(W);this._isDefined(ue)&&D.set(W,ue)}},{key:"urlParameter",value:function(D){return new URL(window.location.href).searchParams.get(D)}}]),U}();return new(function(){(function(W,ue){if(typeof ue!="function"&&ue!==null)throw new TypeError("Super expression must either be null or a function");W.prototype=Object.create(ue&&ue.prototype,{constructor:{value:W,writable:!0,configurable:!0}}),Object.defineProperty(W,"prototype",{writable:!1}),ue&&s(W,ue)})(D,ve);var U=a(D);function D(){return r(this,D),U.call(this,Promise.resolve({}))}return l(D,"t"),t(D,[{key:"_fetch",value:function(W){var ue=document.cookie.split(";").map(function(_e){return _e.split("=")}).reduce(function(_e,he){try{_e[decodeURIComponent(he[0].trim())]=decodeURIComponent(he[1].trim())}catch{}return _e},{});return ue[W]?ue[W].trim():""}},{key:"_persist",value:function(W,ue,_e){var he=2<arguments.length&&_e!==void 0?_e:720,Ce=new Date;Ce.setTime(Ce.getTime()+60*he*60*1e3),1650<ue.length&&(ue=ue.substring(0,33)+ue.substring(ue.length-1616,ue.length)),this._tld?document.cookie="".concat(W,"=").concat(ue,";expires=").concat(Ce.toUTCString(),";path=/;domain=").concat(this._tld):document.cookie="".concat(W,"=").concat(ue,";expires=").concat(Ce.toUTCString(),";path=/")}
53}]),D}())})});function Yt(r,e=""){return Yg.default.urlParameter(r)?Yg.default.urlParameter(r):e}var Yg,Gg=ie(()=>{"use strict";Yg=mt(Vg());l(Yt,"efUrlParameterWithDefault")});function Zg(r,e){if(!(r?.do_not_track||!r.offer_id&&!r.transaction_id&&!r.coupon_code))try{Kg.default.configure({tracking_domain:"https://www.ccpmtrk.com"}),Kg.default.click(r).then(t=>{sessionStorage.setItem("everflow/transactionID",t)}).catch(t=>{Ax(t,e)})}catch(t){Ax(t,e)}}function Ax(r,e){let t={userAgent:navigator.userAgent,referrer:document.referrer,url:document.URL,data:{offer_id:Yt("oid"),affiliate_id:Yt("affid"),coupon_code:Yt("TAP"),src:e,error_message:r?.message}};t.trace=r?.stack,$.post("/servlets/petitions/debug_log.php",{type:"everflow_click_error",content:JSON.stringify(t)})}var Kg,Ix,Px=ie(()=>{"use strict";Kg=mt(Vg());Gg();Ix="tps";l(Zg,"trackClick");l(Ax,"logError")});var $x=ie(()=>{"use strict";Px();Gg();Zg({offer_id:Yt("oid"),affiliate_id:Yt("affid"),coupon_code:Yt("TAP"),sub1:Yt("src")?Yt("src"):Yt("sub1"),sub2:Yt("campaign")?Yt("campaign"):Yt("sub2"),sub3:Yt("sub3"),sub4:Yt("sub4"),sub5:Yt("sub5"),uid:Yt("uid"),source_id:Yt("source_id"),transaction_id:Yt("_ef_transaction_id"),do_not_track:Yt("do_not_track")==="true"},Ix)});var Hu,Uu,Xg,Lu,Fx=ie(()=>{tf();Xg=class Xg extends dn{constructor({signPetition:t,getNextActions:i,systemLogger:s,applicationTranslator:n}){super({systemLogger:s,applicationTranslator:n});xe(this,Hu,void 0);xe(this,Uu,void 0);Le(this,Hu,t),Le(this,Uu,i)}signPetition(t){return this._executeAsync(()=>De(this,Hu).execute(t))}getNextActions(t){return this._queryAsync(()=>De(this,Uu).query(t))}};Hu=new WeakMap,Uu=new WeakMap,l(Xg,"PetitionController");Lu=Xg});var qu,Wu,Bu,zu,Jg,ju,Mx=ie(()=>{tf();Jg=class Jg extends dn{constructor({submitOptin:t,getThirdPartyOptin:i,getInternalOptin:s,clearOptinCaches:n,systemLogger:a,applicationTranslator:c}){super({systemLogger:a,applicationTranslator:c});xe(this,qu,void 0);xe(this,Wu,void 0);xe(this,Bu,void 0);xe(this,zu,void 0);Le(this,qu,t),Le(this,Wu,i),Le(this,Bu,s),Le(this,zu,n)}getThirdPartyOptin(t){return this._queryAsync(()=>De(this,Wu).query(t))}getInternalOptin(t){return this._queryAsync(()=>De(this,Bu).query(t))}clearOptinCaches(){return this._execute(()=>De(this,zu).execute())}submitOptin(t){return this._execute(()=>De(this,qu).execute(t))}};qu=new WeakMap,Wu=new WeakMap,Bu=new WeakMap,zu=new WeakMap,l(Jg,"OptinController");ju=Jg});var Yu,Gu,Qg,Vu,Rx=ie(()=>{"use strict";Qg=class Qg{constructor({optinAPI:e,getAllSessionData:t}){xe(this,Yu,void 0);xe(this,Gu,void 0);Le(this,Yu,e),Le(this,Gu,t)}query(e){let t=De(this,Gu).query();return De(this,Yu).getThirdPartyOptin({data:{...e.data.signerData,petitionID:e.data.petitionData.petitionID,signedPetitions:Object.keys(t.petitionsSigned),previousOptins:Object.keys(t.optinsAccepted)},auth:e.auth})}};Yu=new WeakMap,Gu=new WeakMap,l(Qg,"GetThirdPartyOptin");Vu=Qg});var ey=Pe((vj,Nx)=>{Nx.exports={REQUEST_FROM_NEXT_ACTION_PAGE:8,REQUEST_FROM_MOBILE:16,REQUEST_FROM_FIRST_NEXT_ACTION:128,INTEGRATED_SIGNATURE:512,CONFIRMATION_PAGE:1024,REQUEST_FROM_CONTAINER_LANDING_PAGE:16384}});function kn(){let r=0;return r+=ss.mobile?ho.REQUEST_FROM_MOBILE:0,r+=ss.nextActionPage?ho.REQUEST_FROM_NEXT_ACTION_PAGE:0,r+=ss.containerLandingPage?ho.REQUEST_FROM_CONTAINER_LANDING_PAGE:0,r+=ss.confirmPage?ho.CONFIRMATION_PAGE:0,r+=ss.integratedPetition?ho.INTEGRATED_SIGNATURE:0,r+=ss.firstNextActionSeen&&ss.mainPetition?.petitionID===ss.firstNextActionSeen?ho.REQUEST_FROM_FIRST_NEXT_ACTION:0,r}var ss,ho,Ku=ie(()=>{ss=Ei(),ho=ey();l(kn,"getWebservicesFlags")});var po,ty=ie(()=>{po={}});function Tn(r={}){let e={...po,...r},t=Be.getAllSessionData(),i=ry?.mainPetition?.form?.values.email||t.signer.email,s=Lx.emailSimplifiedCache[i];return s||(s=(Lx.getCache()?.email??[]).find(a=>a.value===i)?.resultData??{}),{acceptedAAInThisSignature:!!e?.acceptedAAInThisSignature,centralTracking:Be.getCentralizedTracking(),flags:kn(),origin:dt.getOrigin(),languageCode:t.languageCode,sessionSequence:t.sessionSequence,sessionId:t.sessionID,isGdpr:yn(ry?.mainPetition?.form?.values.country),publisherID:ry.flags?.publisherID||1,emailValidationResult:s?.emailValidationResult??null,failedExternalVerification:s?.failedExternalVerification??null,everflowTransactionID:sessionStorage.getItem("everflow/transactionID")||void 0,...e}}var Lx,ry,Zu=ie(()=>{Vt();Ku();Zl();gr();ty();Lx=Ya(),ry=Ei();l(Tn,"getWebservicesAuth")});var Kr,Di,Hx=ie(()=>{Kr={NON_GDPR:"",GDPR:"gdpr",SOFT_GDPR:"softGdpr"},Di={signPage:"signPage",confirmPage:"confirmPage",nextActionPage:"nextActionPage"}});var Ux,jx,Xu,Ju,$d=ie(()=>{Ux="optin_checkbox_label",jx="optin_checkbox_label_uk",Xu="sign_the_petition_below_and_get",Ju="sign_the_petition_below_and_get_uk"});var Bx=Pe((Ij,Wx)=>{var lP="xxTrustedFormToken",qx="xxTrustedFormCertUrl",ny=class ny{constructor(){}triggerScript(){this.clearTrustedForm(),$(":input").each(function(){this.type!=="password"&&this.setAttribute("value",$(this).val())});var e=qx,t=!1,i=!1,s=document.createElement("script");s.type="text/javascript",s.async=!0,s.src="http"+(document.location.protocol=="https:"?"s":"")+"://api.trustedform.com/trustedform.js?provide_referrer="+escape(t)+"&field="+escape(e)+"&l="+new Date().getTime()+Math.random()+"&invert_field_sensitivity="+i;var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(s,n)}setTrustedFormCertIdCallback(e){window.trustedFormCertIdCallback=function(t){e(t)}}setTrustedFormCertUrlCallback(e){window.trustedFormCertUrlCallback=function(t){e(t)}}getValues(){let e={};return this.getCertFields().each((t,i)=>{let s=$(i),n=s.attr("name");e[n]=s.val()}),e}clearTrustedForm(){$("script").each((e,t)=>{let i=$(t),s=i.attr("src");typeof s=="string"&&s.indexOf("api.trustedform.com/trustedform.js")>0&&i.remove()}),window.trustedFormCertIdCallback=window.trustedFormCertUrlCallback=null,this.getCertFields().remove()}getCertFields(){return $("input").filter(function(){let e=$(this);return e.attr("name")===lP||e.attr("name")===qx})}};l(ny,"TrustedForm");var iy=ny;Wx.exports=iy});var oy=Pe((Rj,Vx)=>{Zu();ty();Ku();var uP=qr(),cP=Af(),fP=Ci(),dP=20,hP=5,zx=!1,ay=class ay{constructor(e){this.method=e}static setAuth(e,t){if(typeof e=="object")for(let i in e)po[i]=e[i];else typeof e<"u"&&typeof t<"u"&&(po[e]=t);return po}setShortTimeout(){zx=!0}getTimeout(){return zx?hP:dP}
53connect(e,t=kn(),i={}){let s=new $.Deferred,n="/ws/"+this.method,a={data:e},c=1;a.auth=Tn(i),a.auth.flags=t;let d={url:n,timeout:this.getTimeout()*1e3,data:cP(a)};return this.post(d,c,s),s.promise()}post(e,t,i){$.post(e).done(s=>{i.resolve(s)}).fail(s=>{let n=parseInt(fP("status",s,0));t&&n>=500&&n<=599?(t--,this.post(e,t,i)):((n<400&&n!==0||n>499||s.readyState!==0||s.statusText!=="error"&&s.statusText!=="timeout")&&uP("class WebServices : connect : fail : this: %o, jqXHR: %o",this,s).send("web_services_error"),i.reject(s))})}};l(ay,"WebServices");var sy=ay;Vx.exports=sy});var Md,pP,mP,gP,Yx,Fd,Cn,Qu,cy,mo,fy,ly,dy,uy,go=ie(()=>{Zu();Ku();Vt();Md=mt(Hs());Hx();$d();pP=Bx(),mP=ui(),gP=oy(),Yx=3,Fd=class Fd{constructor(e={}){Ie(this,"_$optinHtml",$());Ie(this,"_isProcessed",!1);Ie(this,"_$hardSetAcceptCheckbox");this.optinID=parseInt(e.optinID),this.type=e.type??"Care2",this.checked=!!e.checked,this.url=e.url??null,this.integratedPetitionId=e.integratedPetitionId??null,this.regularLogo=e.regularLogo?.replace("http://","//")??null,this.miniLogo=e.miniLogo?.replace("http://","//")??null,this.label=e.label??"",this.tag=e.tag??"Email Updates",this.infolink=e.infolink??null,this.infohtml=e.infohtml??null,this.languageCode=e.languageCode??null,this.useCustomText=e.useCustomText??null,this.isBTS=e.isBTS??!1,this.signerCountry=e.signerCountry??null,this.questionHtml=e.questionHtml??null,this.thumbnailUrl=e.thumbnailUrl??null,this.acceptHtml=e.acceptHtml??null,this.denyHtml=e.denyHtml??null,this.disclaimerHtml=e.disclaimerHtml??null,this.useTrustedForm=e.useTrustedForm??!1,this.partnerlistID=e.partnerlistID??null,this.version=e.version??0,this.hp=e.hp??0,this.optinID===Yx&&!e.checked&&(this.checked=!0)}get isProcessed(){return this._isProcessed}set isProcessed(e){this._isProcessed=e}get $elmInputCheckbox(){return this._$hardSetAcceptCheckbox?this._$hardSetAcceptCheckbox:this._$optinHtml.find(`#c2optin-${this.optinID}`)}hardSetAcceptInput(e){this._$hardSetAcceptCheckbox=$(e)}get elmInputRadioDeny(){return this._$optinHtml.find(`#c2optin-${this.optinID}-deny`)}set elmInputRadioDeny(e){this._$inputRadioDeny=$(e)}cache$html(e){this._$optinHtml=e}get onSubmit(){return this._onSubmit||(()=>{})}set onSubmit(e){this._onSubmit=e}get translatedLabel(){let e=this.signerCountry==="gb"?Ju:Xu;return mP(e,{tag:this.tag,label:this.label})}toDTO(){return new uy({...this,checked:this.checked,isActionAlertsOptin:this.isActionAlertsOptin()})}toUserSessionEventHistoryCacheItem(){return{[this.optinID]:{checked:this.checked,type:this.t
53ype,optinID:this.optinID,time:Date.now()}}}_submitOptin(e=()=>{}){this.onSubmit(this.toDTO()),e()}isActive(){return!!this.$elmInputCheckbox.length}addMoreInfoLink(){let e="";return this.infolink&&(e+=`<a href="#" class="more_info_link">${this.infolink}</a>`,e+=`<div class="more_info_html">${this.infohtml}</div>`),e}setObjectCacheInDOM(e){e.find("input").data("optin",this)}isInternalOptin(){return this.type==="Care2"}isThirdPartyOptin(){return this.type==="NPO"}remove(){this._$optinHtml.find(".optin--"+this.optinID).remove()}get selected(){return this.$elmInputCheckbox.is(":checked")}get checked(){if(this.isActive()){let e=this.$elmInputCheckbox;return this._checked=e.is(":checked"),this._checked}else return this._checked}set checked(e){this._checked=e;let t=this.$elmInputCheckbox,i=this.elmInputRadioDeny;e?t.prop("checked",!0):i.length?i.prop("checked",!0):t.prop("checked",!1)}triggerTrustedFormScript(){this.useTrustedForm&&!this.trustedFormTriggered&&(this.trustedFormTriggered=!0,new pP().triggerScript())}isActionAlertsOptin(){return this.optinID===Yx}getOptinViewMode(e){return Fd.getOptinViewMode(e)}static getOptinViewMode(e="us"){return["gb","united kingdom"].includes(e.toLowerCase())?Kr.SOFT_GDPR:Md.gdprCountriesByCode.hasOwnProperty(e)||Md.gdprCountriesByName.hasOwnProperty(e)?Kr.GDPR:Kr.NON_GDPR}};l(Fd,"Optin");Cn=Fd,Qu={},cy=class cy{constructor(e,t,i=[]){this.petition=e,this.page=t,this.optins=i}get optinsServedCache(){return Qu}buildPayload(){let e=this.page.user.signer,t=new ly;if(t.petitionID=this.petition.petitionID,t.passportID=e.passportID,t.firstname=e.firstname,t.lastname=e.lastname,t.display_name=e.display_name,t.email=e.email,t.address=e.address,t.city=e.city,t.state=e.state,t.country=e.country,t.zip=e.zip,t.phone=e.phone,t.splitTestVariationName=this.petition.splitTestVariationName,t.signedPetitions=Be.getSignedPetitionIds(),t.optins_served=[],this.optins.length>0)for(let i in this.optins){let s=this.optins[i];if(s===null||s===!1)continue;let n={};n.optinID=s.optinID,n.type=s.type,n.partnerlistID=s.partnerlistID,n.checked=s.checked,n.regularLogo=s.regularLogo,n.miniLogo=s.miniLogo,n.integratedPetitionId=s.integratedPetitionId,n.useCustomText=s.useCustomText,n.isBTS=s.isBTS,n.languageCode=s.languageCode,n.hp=s.hp,n.useTrustedForm=s.useTrustedForm,n.version=s.version,t.optins_served.push(n)}return t}alreadyReported(){let e=Qu[this.petition.petitionID];if(!e)return!1;let t=this.hashOptins(this.optins);return e.includes(t)}hashOptins(){let e="";for(let t in this.optins){let i=this.optins[t];i===null||i===!1?e=e+"null_":e=e+i.optinID.toString()+"_"}return e}send(e=Tn()){if(this.alreadyReported())return;let t="optins/optinServed",i=new gP(t),s=this.buildPayload();i.connect(s,kn(),e),Qu[this.petition.petitionID]||(Qu[this.petition.petitionID]=[]),Qu[this.petition.petitionID].push(this.hashOptins(this.optins))}};l(cy,"OptinsServedReport");mo=cy,fy=class fy{constructor(){Ie(this,"passportID");Ie(this,"firstname");Ie(this,"lastname");Ie(this,"display_name");Ie(this,"email");Ie(this,"address");Ie(this,"city");Ie(this,"state");Ie(this,"country");Ie(this,"zip");Ie(this,"phone");Ie(this,"splitTestVariationName");Ie(this,"optins_served",[])}};l(fy,"OptinsServedPayload");ly=fy,dy=class dy{constructor(e){this.optinID=parseInt(e.optinID),this.type=e.type??null,this.url=e.url??null,this.integratedPetitionId=e.integratedPetitionId??null,this.regularLogo=e.regularLogo??null,this.miniLogo=e.miniLogo??null,this.label=e.label??"",this.tag=e.tag??"Email Updates",this.infolink=e.infolink??null,this.infohtml=e.infohtml??null,this.languageCode=e.languageCode??null,this.useCustomText=e.useCustomText??null,this.isBTS=e.isBTS??!1,this.signerCountry=e.signerCountry??null,this.questionHtml=e.questionHtml??null,this.thumbnailUrl=e.thumbnailUrl??null,this.acceptHtml=e.acceptHtml??null,this.denyHtml=e.denyHtml??null,this.disclaimerHtml=e.disclaimerHtml??null,this.useTrustedForm=e.useTrustedForm??!1,this.partnerlistID=e.partnerlistID??null,this.version=e.version??0,this.hp=e.hp??0,this.checked=e.checked??!1,this.isActionAlertsOptin=e.isActionAlertsOptin??!1}};l(dy,"OptinDTO");uy=dy});var hy,ec,Gx=ie(()=>
53{hy=class hy extends Error{};l(hy,"InvalidApiPayloadError");ec=hy});function Js(r,e,t){let i=r.validate(e);if(i.error){let s=i.error.details[0].context.value;throw new ec(`${t}: ${i.error.message} (got: ${JSON.stringify(s)})`)}}var Rd=ie(()=>{Gx();l(Js,"default")});function Qs(r){if(!r||typeof r!="string")throw new Error("userCountryCode is required to generate a user-values schema");return Ai.object({firstname:Ai.string().required(),lastname:Ai.string().required(),email:Ai.string().required(),address:Ai.string().optional().allow(null,""),city:Ai.string().optional().allow(null,""),state:Ai.string().optional().allow(null,""),country:Ai.string().optional().allow(null,""),zip:Ai.string().optional().allow(null,""),phone:Ai.string().optional().allow(null,""),phoneCountry:Ai.string().optional().allow(null,"")})}var Ai,Zj,Nd=ie(()=>{Ai=qi(),{countryCodesWithStates:Zj}=es();l(Qs,"default")});var hi,yP,Ld,py=ie(()=>{hi=qi(),yP=hi.object({src:hi.string().required().allow(null,"",!1),campaign:hi.string().required().allow(null,"",!1),created:hi.number().required(),ad_campaign_id:hi.string().optional().allow(null,""),ad_id:hi.string().optional().allow(null,""),ad_set_id:hi.string().optional().allow(null,""),ad_name:hi.string().optional().allow(null,""),ad_set_name:hi.string().optional().allow(null,""),ad_placement:hi.string().optional().allow(null,""),ad_site_source_name:hi.string().optional().allow(null,""),ad_petition_id:hi.string().optional().allow(null,"")}),Ld=yP});var Sr,Hd,my=ie(()=>{py();Sr=qi(),Hd=Sr.object({sessionSequence:Sr.number().required(),publisherID:Sr.number().required(),origin:Sr.string().required(),languageCode:Sr.string().required(),centralTracking:Ld,sessionId:Sr.string().required(),emailValidationResult:Sr.string().required().allow(null),failedExternalVerification:Sr.string().required().allow(null),isGdpr:Sr.boolean().required(),acceptedAAInThisSignature:Sr.boolean().required(),everflowTransactionID:Sr.string().optional().allow(null),flags:Sr.number().required(),prev_na_petition:Sr.number().optional(),first_na_petition:Sr.number().optional(),first_na_containerId:Sr.number().optional()})});var as,Kx,Zx=ie(()=>{as=qi(),Kx=as.object({optinID:as.number().required(),checked:as.boolean().required(),integratedPetitionId:as.number().optional().allow(null),isBTS:as.boolean().required(),languageCode:as.string().required(),type:as.string().required(),version:as.number().required()})});function gy(r){return Ki.object({data:Qs(r).concat(Ki.object({passportID:Ki.number().required(),petitionID:Ki.number().required(),optins:Ki.array().items(Kx).required(),previousOptins:Ki.array().items(Ki.number()).required(),signedPetitions:Ki.array().items(Ki.number()).required(),useStoredPhone:Ki.boolean().required()})).required(),auth:Hd.required()})}var Ki,Xx=ie(()=>{Nd();my();Zx();Ki=qi();l(gy,"default")});var Ud,vP,yo,tc,Jx=ie(()=>{go();jd();gr();Rd();Xx();Ud=Ei(),vP=Ci(),yo=class yo{constructor(){Ie(this,"apiEndpointCheckboxes","/ws/optins/checkboxes");Ie(this,"apiEndportOptinInfo","/ws/optins/optinInfo");Ie(this,"apiEndpointSubmit","/ws/optins/process");if(yo.instance)return yo.instance;yo.instance=this,this.internalOptinPromise=!1,this.optinsCache={}}async submitOptin(e){return Js(gy(e.data.country),e,"Invalid submitOptin data"),fetch(this.apiEndpointSubmit,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e),signal:AbortSignal.timeout(1e4)}).then(t=>t.json())}async fetchOptinDetails(e,t,i,s,n){let a=new FormData;a.append("optinID",e),t&&a.append("petitionID",t),i&&a.append("languageCode",i),s&&a.append("forCountry",n);let d=await(await fetch(dt.getPetitionSiteURL()+"/tps_servlets/optins/getOptinDetails.php",{method:"POST",body:a})).json();if(d.error)throw new Error(`
54                <h3>Error Loading Optin Details</h3> 
55                <br/>
56                ${d.error}`);return d}async fetchPetitionDetails(e,t="en"){let i=new FormData;return i.append("petitionID",e),i.append("languageCode",t),(await fetch(dt.getPetitionSiteURL()+"/servlets/petitions/petition.php",{method:"POST",body:i})).json()}
56async getOptinDetails(e,t,i,s,n){let a=await this.fetchOptinDetails(e,t,i,s,n);a.signerCountry=n;let c=new Cn(a);return c.integratedPetitionId&&(c.integratedPetition=new Zi(c.integratedPetitionId),await c.integratedPetition.getData()),c}getThirdPartyOptin(e){let t=this.getOptinsCacheDataKey(e.data.petitionID,e.data.email,e.data.country,e.data.state,e.data.zip),i=this.getOptinCacheOfPetitionForUser(t);return i.thirdPartyOptinPromise||(i.thirdPartyOptinPromise=new Promise((s,n)=>{fetch(this.apiEndpointCheckboxes,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e),signal:AbortSignal.timeout(1e4)}).then(a=>a.json()).then(a=>{!Array.isArray(a.optins)||!a.optins.length?s(null):this.parseWebServicesResultData(a.optins,e.data.country).then(d=>{i.thirdPartyOptin=d.thirdPartyOptin,s(d.thirdPartyOptin)})}).catch(a=>{n("getThirdPartyOptin failed: "+(a?.message??a))})})),i.thirdPartyOptinPromise}getInternalOptin(e){let t=l(i=>{let s=this.getOptinsCacheDataKey(e.data.petitionID,e.data.email,e.data.country,e.data.state,e.data.zip),n=this.getOptinCacheOfPetitionForUser(s);n.internalOptin=i},"fnCacheInternalOptinResultsForPetition");return this._internalOptin&&t(this._internalOptin),this.internalOptinPromise||(this.internalOptinPromise=new Promise((i,s)=>{fetch(this.apiEndportOptinInfo,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({data:{optinID:e.data.optinID,languageCode:Ud.user.language},auth:e.auth}),signal:AbortSignal.timeout(1e4)}).then(n=>n.json()).then(n=>{typeof n!="object"||typeof n.version>"u"?s(null):(n.optinID=3,this.parseWebServicesResultData([n],e.data.country).then(c=>{this._internalOptin=c.internalOptin,t(this._internalOptin),i(c.internalOptin)}))}).catch(n=>{s("getInternalOptin failed: "+(n?.message??n))})})),this.internalOptinPromise}clearOptinsCacheData(){this.optinsCache={}}getOptinsCacheData(e){let t=this.getFormValues(e),i=this.getOptinsCacheDataKey(e.petitionID,t.email,t.country,t.state,t.zip);return typeof this.optinsCache[i]!="object"&&(this.optinsCache[i]=this.getDefaultOptinsCacheData()),this.getOptinCacheOfPetitionForUser(i)}getFormValues(e){return vP("form.values",e,this.getDefaultFormValues())}getCachedThirdPartyOptin(e){return this.getOptinsCacheData(e).thirdPartyOptin}getCachedInternalOptin(e){return this.getOptinsCacheData(e).internalOptin}parseWebServicesResultData(e,t){return new Promise((s,n)=>{let a={thirdPartyOptin:null,internalOptin:null};e.length&&$.each(e,(c,d)=>{$.extend(d,{checked:d.checked,optinID:d.optinID,signerCountry:t});let o=new Cn(d);typeof Ud.flags=="object"&&Ud.flags.forceIntegratedSignaturePetition&&(o.integratedPetitionId=Ud.flags.forceIntegratedSignaturePetition),o.isInternalOptin()?a.internalOptin=o:a.thirdPartyOptin=o,o.integratedPetitionId?(o.integratedPetition=new Zi(o.integratedPetitionId),o.integratedPetition.getData().always(()=>{s(a)})):s(a)})})}getOptinsCacheDataKey(e,t="",i="",s="",n=""){return e+":"+t+":"+i+":"+s+n}getDefaultOptinsCacheData(){return{thirdPartyOptin:null,internalOptin:null,thirdPartyOptinPromise:null}}getDefaultFormValues(){return{email:"",country:"",state:"",zip:""}}getOptinCacheOfPetitionForUser(e){return typeof this.optinsCache[e]!="object"&&(this.optinsCache[e]=this.getDefaultOptinsCacheData()),this.optinsCache[e]}};l(yo,"OptinAPI");tc=yo});var Ii,vo=ie(()=>{Jx();Ii=new tc});var Qx,ek=ie(()=>{Rx();vo();Ws();Qx=new Vu({optinAPI:Ii,getAllSessionData:fi})});var ic,nc,yy,rc,tk=ie(()=>{"use strict";yy=class yy{constructor({optinAPI:e,getAllSessionData:t}){xe(this,ic,void 0);xe(this,nc,void 0);Le(this,ic,e),Le(this,nc,t)}query(e){let t=De(this,nc).query();return De(this,ic).getInternalOptin({data:{...e.data.signerData,optinID:e.data.optinData.optinID,petitionID:e.data.petitionData.petitionID,signedPetitions:Object.keys(t.petitionsSigned),previousOptins:Object.keys(t.optinsAccepted)},auth:e.auth})}};ic=new WeakMap,nc=new WeakMap,l(yy,"GetInternalOptin");rc=yy});var rk,ik=ie(()=>{tk();vo();Ws();rk=new rc({optinAPI:Ii,getAllSessionData:fi})});function sc(r,e=!1){if(e||dt.isProductionEnvironment())return r()}var vy=ie(()=>{gr();l(sc,"executeCallbackIfOnProduction")});var _y,jt,Pi=ie(()=>{gr();vy();_y=class _y{constructor(){Ie(this,"isForceEnabled",!1);Ie(this,"isLibraryInitialized",!1);let e=new URLSearchParams(window.location.search);this.isForceEnabled=e.has("force-enable-tracking-pixels"),this._addLibraryAndInitialize()}_addLibraryAndInitialize(){!this.isLibraryInitialized&&(this.isForceEnabled||dt.isProductionEnvironment())&&(this._library
56Init(),this.isLibraryInitialized=!0)}_libraryInit(){throw new Error("_libraryInit must be implemented by subclass")}executeCallbackIfOnProduction(e){return sc(e,this.isForceEnabled)}};l(_y,"AbstractProductionOnlyPixel");jt=_y});var by=Pe((exports,module)=>{(function(){"use strict";var ERROR="input is invalid type",WINDOW=typeof window=="object",root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&typeof self=="object",NODE_JS=!root.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,AMD=typeof define=="function"&&define.amd,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];(root.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(r){return Object.prototype.toString.call(r)==="[object Array]"}),ARRAY_BUFFER&&(root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(r){return typeof r=="object"&&r.buffer&&r.buffer.constructor===ArrayBuffer});var createOutputMethod=l(function(r,e){return function(t){return new Sha256(e,!0).update(t)[r]()}},"createOutputMethod"),createMethod=l(function(r){var e=createOutputMethod("hex",r);NODE_JS&&(e=nodeWrap(e,r)),e.create=function(){return new Sha256(r)},e.update=function(s){return e.create().update(s)};for(var t=0;t<OUTPUT_TYPES.length;++t){var i=OUTPUT_TYPES[t];e[i]=createOutputMethod(i,r)}return e},"createMethod"),nodeWrap=l(function(method,is224){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),algorithm=is224?"sha224":"sha256",nodeMethod=l(function(r){if(typeof r=="string")return crypto.createHash(algorithm).update(r,"utf8").digest("hex");if(r==null)throw new Error(ERROR);return r.constructor===ArrayBuffer&&(r=new Uint8Array(r)),Array.isArray(r)||ArrayBuffer.isView(r)||r.constructor===Buffer?crypto.createHash(algorithm).update(new Buffer(r)).digest("hex"):method(r)},"nodeMethod");return nodeMethod},"nodeWrap"),createHmacOutputMethod=l(function(r,e){return function(t,i){return new HmacSha256(t,e,!0).update(i)[r]()}},"createHmacOutputMethod"),createHmacMethod=l(function(r){var e=createHmacOutputMethod("hex",r);e.create=function(s){return new HmacSha256(s,r)},e.update=function(s,n){return e.create(s).update(n)};for(var t=0;t<OUTPUT_TYPES.length;++t){var i=OUTPUT_TYPES[t];e[i]=createHmacOutputMethod(i,r)}return e},"createHmacMethod");function Sha256(r,e){e?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=r}l(Sha256,"Sha256"),Sha256.prototype.update=function(r){if(!this.finalized){var e,t=typeof r;if(t!=="string"){if(t==="object"){if(r===null)throw new Error(ERROR);
56if(ARRAY_BUFFER&&r.constructor===ArrayBuffer)r=new Uint8Array(r);else if(!Array.isArray(r)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(r)))throw new Error(ERROR)}else throw new Error(ERROR);e=!0}for(var i,s=0,n,a=r.length,c=this.blocks;s<a;){if(this.hashed&&(this.hashed=!1,c[0]=this.block,c[16]=c[1]=c[2]=c[3]=c[4]=c[5]=c[6]=c[7]=c[8]=c[9]=c[10]=c[11]=c[12]=c[13]=c[14]=c[15]=0),e)for(n=this.start;s<a&&n<64;++s)c[n>>2]|=r[s]<<SHIFT[n++&3];else for(n=this.start;s<a&&n<64;++s)i=r.charCodeAt(s),i<128?c[n>>2]|=i<<SHIFT[n++&3]:i<2048?(c[n>>2]|=(192|i>>6)<<SHIFT[n++&3],c[n>>2]|=(128|i&63)<<SHIFT[n++&3]):i<55296||i>=57344?(c[n>>2]|=(224|i>>12)<<SHIFT[n++&3],c[n>>2]|=(128|i>>6&63)<<SHIFT[n++&3],c[n>>2]|=(128|i&63)<<SHIFT[n++&3]):(i=65536+((i&1023)<<10|r.charCodeAt(++s)&1023),c[n>>2]|=(240|i>>18)<<SHIFT[n++&3],c[n>>2]|=(128|i>>12&63)<<SHIFT[n++&3],c[n>>2]|=(128|i>>6&63)<<SHIFT[n++&3],c[n>>2]|=(128|i&63)<<SHIFT[n++&3]);this.lastByteIndex=n,this.bytes+=n-this.start,n>=64?(this.block=c[16],this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var r=this.blocks,e=this.lastByteIndex;r[16]=this.block,r[e>>2]|=EXTRA[e&3],this.block=r[16],e>=56&&(this.hashed||this.hash(),r[0]=this.block,r[16]=r[1]=r[2]=r[3]=r[4]=r[5]=r[6]=r[7]=r[8]=r[9]=r[10]=r[11]=r[12]=r[13]=r[14]=r[15]=0),r[14]=this.hBytes<<3|this.bytes>>>29,r[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var r=this.h0,e=this.h1,t=this.h2,i=this.h3,s=this.h4,n=this.h5,a=this.h6,c=this.h7,d=this.blocks,o,p,g,v,m,w,b,S,O,P,N;for(o=16;o<64;++o)m=d[o-15],p=(m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3,m=d[o-2],g=(m>>>17|m<<15)^(m>>>19|m<<13)^m>>>10,d[o]=d[o-16]+p+d[o-7]+g<<0;for(N=e&t,o=0;o<64;o+=4)this.first?(this.is224?(S=300032,m=d[0]-1413257819,c=m-150054599<<0,i=m+24177077<<0):(S=704751109,m=d[0]-210244248,c=m-1521486534<<0,i=m+143694565<<0),this.first=!1):(p=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),g=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),S=r&e,v=S^r&t^N,b=s&n^~s&a,m=c+g+b+K[o]+d[o],w=p+v,c=i+m<<0,i=m+w<<0),p=(i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10),g=(c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7),O=i&r,v=O^i&e^S,b=c&s^~c&n,m=a+g+b+K[o+1]+d[o+1],w=p+v,a=t+m<<0,t=m+w<<0,p=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),g=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),P=t&i,v=P^t&r^O,b=a&c^~a&s,m=n+g+b+K[o+2]+d[o+2],w=p+v,n=e+m<<0,e=m+w<<0,p=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),g=(n>>>6|n<<26)^(n>>>11|n<<21)^(n>>>25|n<<7),N=e&t,v=N^e&i^P,b=n&a^~n&c,m=s+g+b+K[o+3]+d[o+3],w=p+v,s=r+m<<0,r=m+w<<0;this.h0=this.h0+r<<0,this.h1=this.h1+e<<0,this.h2=this.h2+t<<0,this.h3=this.h3+i<<0,this.h4=this.h4+s<<0,this.h5=this.h5+n<<0,this.h6=this.h6+a<<0,this.h7=this.h7+c<<0},Sha256.prototype.hex=function(){this.finalize();var r=this.h0,e=this.h1,t=this.h2,i=this.h3,s=this.h4,n=this.h5,a=this.h6,c=this.h7,d=HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[r&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[e&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[t&15]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[i&15]+HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[s&15]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[n&15]+HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[a&15];return this.is224||(d+=HEX_CHARS[c>>28&15]+HEX_CHARS[c>>24&15]+HEX_CHARS[c>>20&15]+HEX_CHARS[c>>16&15]+HEX_CHARS[c>>12&15]+HEX_CHARS[c>>8&15]+HEX_CHARS[c>>4&15]+HEX_CHARS[c&15]),d},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var r=this.h0,e=this.h1,t=this.h2,i=this.h3,s=this.h4,n=this.h5,a=this.h6,c=this.h7,d=[r>>24&255,r>>16&255,r>>8&255,r&255,e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,i>>24&255,i>>16&255,i>>8&255,i&255,s>>24&255,s>>16&255,s>>8&255,s&255,n>>24&255,n>>16&255,n>>8&255,n&255,a>>24&255,a>>16&255,a>>8&255,a&255];return this.is224||d.push(c>>24&255,c>>16&255,c>>8&255,c&255),d},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var r=new ArrayBuffer(this.is224?28:32),e=new DataView(r);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),e.setUint32(20,this.h5),e.setUint32(24,this.h6),this.is224||e.setUint32(28,this.h7),r};function HmacSha256(r,e,t){var i,s=typeof r;if(s==="string"){var n=[],a=r.length,c=0,d;for(i=0;i<a;++i)d=r.charCodeAt(i),d<128?n[c++]=d:d<2048?(n[c++]=192|d>>6,n[c++]=128|d&63):d<55296||d>=57344?(n[c++]=224|d>>12,n[c++]=128|d>>6&63,n[c++]=128|d&63):(d=65536+((d&1023)<<10|r.charCodeAt(++i)&1023),n[c++]=240|d>>18,n[c++]=128|d>>
5612&63,n[c++]=128|d>>6&63,n[c++]=128|d&63);r=n}else if(s==="object"){if(r===null)throw new Error(ERROR);if(ARRAY_BUFFER&&r.constructor===ArrayBuffer)r=new Uint8Array(r);else if(!Array.isArray(r)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(r)))throw new Error(ERROR)}else throw new Error(ERROR);r.length>64&&(r=new Sha256(e,!0).update(r).array());var o=[],p=[];for(i=0;i<64;++i){var g=r[i]||0;o[i]=92^g,p[i]=54^g}Sha256.call(this,e,t),this.update(p),this.oKeyPad=o,this.inner=!0,this.sharedMemory=t}l(HmacSha256,"HmacSha256"),HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var r=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(r),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&define(function(){return exports}))})()});var _P,bP,nk,ak,ok,lk,uk,Sy,ck,fk,dk,hk,_o,sk,xy,wy,wP,rr,pk=ie(()=>{eu();Vt();Pi();_P=Ci(),bP=by(),nk=ki(),ak=u0,ok=c0,lk=f0,uk=d0,Sy=h0,ck=p0,fk=m0,dk=g0,hk=y0,_o={PIXEL_SRC_PRESSPC_AD:ak,PIXEL_SRC_AR_FACEBOOK_ADS:ok,PIXEL_SRC_AR_FACEBOOK_ADS_FL_ONLY:lk,PIXEL_SRC_GB_FACEBOOK_ADS:uk,PIXEL_SRC_CARE2:Sy,PIXEL_SRC_OPTINS:ck,PIXEL_SRC_JAA_AD:fk,PIXEL_SRC_META_CA_JASON:dk,PIXEL_SRC_DEV_TEST_PIXEL:hk},sk={[ak]:"334061498615860",[ok]:"388957491260477",[lk]:"324353013206432",[uk]:"481236789861732",[Sy]:"388957491260477",[ck]:"1927523440903948",[fk]:"1765075690344522",[dk]:"795249356392835",[hk]:"3271785646473380"},xy=class xy extends jt{getPixelIDForSource(e=""){if(typeof e!="string")return;let t=e.trim().toLowerCase();return sk[t]}_libraryInit(){window.fbq||(function(e,t,i,s,n,a,c){e.fbq||(n=e.fbq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)},e._fbq||(e._fbq=n),n.push=n,n.loaded=!0,n.version="2.0",n.queue=[],a=t.createElement(i),a.async=!0,a.src=s,c=t.getElementsByTagName(i)[0],c.parentNode.insertBefore(a,c))}(window,document,"script","//connect.facebook.net/en_US/fbevents.js"),this.fireEvent("init",sk[Sy]))}fireEvent(...e){this.executeCallbackIfOnProduction(()=>{window.fbq.apply(null,e)})}fireEventUnique(...e){this.executeCallbackIfOnProduction(()=>{this.fbqi||(this.fbqi=new wP),this.fbqi.apply(null,e)})}fireEventUniqueWithAdvancedMatching(...e){this.executeCallbackIfOnProduction(()=>{let t=e[0],i=e[1],s=e[2],n=e[3],a=_P("signer.email",nk.user,nk.user.email);a&&(a=a.toLowerCase(),n.ud={em:bP(a)});let c=Be.getAllSessionData(),d=c.sessionID+"_"+c.sessionSequence;this.fireEventUnique(t,i,s,n,d)})}firePurchasePixel(e,t,i){return this.sendFacebookPixel(e,"Purchase",Number.parseFloat(t.toFixed(3)),i)}sendFacebookPixel(e,t,i,s,n){let a={currency:"USD",value:i};return s&&(a.content_ids=s),n&&(a.content_type=n),this.executeCallbackIfOnProduction(()=>{this.fireEventUniqueWithAdvancedMatching("track",e,t,a)}),{pixelID:e,event_name:t,value:i,content_ids:s}}};l(xy,"FacebookEventTracking");wy=xy,wP=l(function(){function r(){if(!window.location.href.match(/^https?:\/\/selenium/)&&arguments.length>0){let e,t,i,s,n;typeof arguments[0]=="string"&&(e=arguments[0]),typeof arguments[1]=="string"&&(t=arguments[1]),typeof arguments[2]=="string"&&(i=arguments[2]),typeof arguments[3]=="object"&&(s=arguments[3]),typeof arguments[4]=="string"&&(n=arguments[4]);let a=[];if(typeof e=="string"&&e.replace(/\s+/gi,"")!==""&&typeof t=="string"&&t.replace(/\s+/gi,"")!==""&&typeof i=="string"&&i.replace(/\s+/gi,"")!==""){switch(a.push("id="+encodeURIComponent(t)),i){case"PageView":case"ViewContent":case"Search":case"AddToCart":case"InitiateCheckout":case"AddPaymentInfo":case"Lead":case"CompleteRegistration":case"Purchase":case"StartTrial":case"AddToWishlist":a.push("ev="+encodeURIComponent(i));break;default:return}if(a.push("dl="+encodeURIComponent(document.location.href)),a.push("rl="+encodeURIComponent(document.referrer)),a.push("if=false"),a.push("ts="+new Date().getTime()),n&&a.push("eid="+n),typeof s=="object")for(let g in s)if(typeof s[g]=="object")if(s[g]instanceof Array){if(s[g].length>0){for(let v=0;v<s[g].length;v++)s[g][v]=(s[g][v]+"").replace(/^\s+|\s+$/gi,"").replace(/\s+/gi," ").replace(/,/gi,"\xA7");
56a.push("cd["+g+"]="+encodeURIComponent(s[g].join(",").replace(/^/gi,'["').replace(/$/gi,'"]').replace(/,/gi,'","').replace(/§/gi,",")))}}else for(let v in s[g])a.push(g+"["+v+"]="+encodeURIComponent(s[g][v]));else(typeof s[g]=="string"||typeof s[g]=="number")&&a.push("cd["+g+"]="+encodeURIComponent(s[g]));let c=new Date().getTime(),d=document.createElement("div");d.innerHTML="<img height='1' width='1' style='display:none;width:1px;height:1px;' id='fb_"+c+"' src='https://www.facebook.com/tr/?"+a.join("&")+"' />";let o=d.children[0];document.getElementsByTagName("body")[0].appendChild(o),setTimeout(function(){$(o).remove()},1e3)}}}return l(r,"fbqi"),r},"fbqi"),rr=new wy});var Cy,ky,Ty,mk=ie(()=>{Pi();Cy=class Cy extends jt{_libraryInit(){typeof window.uetq>"u"&&function(e,t,i,s,n){var a,c,d;e[n]=e[n]||[],a=l(function(){var o={ti:"137005710"};o.q=e[n],e[n]=new UET(o),e[n].push("pageLoad")},"f"),c=t.createElement(i),c.src=s,c.async=1,c.onload=c.onreadystatechange=function(){var o=this.readyState;o&&o!=="loaded"&&o!=="complete"||(a(),c.onload=c.onreadystatechange=null)},d=t.getElementsByTagName(i)[0],d.parentNode.insertBefore(c,d)}(window,document,"script","//bat.bing.com/bat.js","uetq")}fireEvent(...e){this.executeCallbackIfOnProduction(()=>{window.uetq=window.uetq||[],window.uetq.push.apply(window.uetq,e)})}};l(Cy,"BingEventTracking");ky=Cy,Ty=new ky});var SP,xP,Ey,Oy,ac,gk=ie(()=>{Pi();SP=41501525,xP=7779329,Ey=class Ey extends jt{_libraryInit(){let e=SP;window.location.hostname.includes("care2")&&(e=xP),function(t,i,s,n,a,c,d){t.GoogleAnalyticsObject=a,t[a]=t[a]||function(){(t[a].q=t[a].q||[]).push(arguments)}
56,t[a].l=1*new Date,c=i.createElement(s),d=i.getElementsByTagName(s)[0],c.async=1,c.src=n,d.parentNode.insertBefore(c,d)}(window,document,"script","//www.google-analytics.com/analytics.js","ga"),ga("create",`UA-${e}-1`,"auto"),ga("require","displayfeatures")}fireEvent(...e){this.executeCallbackIfOnProduction(()=>{typeof ga=="function"&&ga.apply(ga,e)})}firePetitionSignConfirmationEvent(){this.executeCallbackIfOnProduction(()=>{this.fireEvent("send","event","petition_sign","conf_box")})}};l(Ey,"GoogleAnalyticsEventTracking");Oy=Ey,ac=new Oy});var Ay,Dy,oc,yk=ie(()=>{Pi();window.dataLayer=window.dataLayer||[];Ay=class Ay extends jt{_libraryInit(){let e=$('<script async src="https://www.googletagmanager.com/gtag/js?id=AW-1064448610"><\/script>');$(document.body).append(e),this.fireEvent("js",new Date),this.fireEvent("config","AW-1064448610")}fireEvent(...e){this.executeCallbackIfOnProduction(()=>{window.dataLayer.push(e)})}};l(Ay,"GoogleTagsEventTracking");Dy=Ay,oc=new Dy});var $y,Iy,Py,vk=ie(()=>{Pi();$y=class $y extends jt{_libraryInit(){(function(e){if(!window.pintrk){window.pintrk=function(){window.pintrk.queue.push(Array.prototype.slice.call(arguments))};var t=window.pintrk;t.queue=[],t.version="3.0";var i=document.createElement("script");i.async=!0,i.src=e;var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(i,s)}})("https://s.pinimg.com/ct/core.js")}fireEvent(e,t,i=null){this.executeCallbackIfOnProduction(()=>{this.loadedForUser||(pintrk("load","2613841456128",{em:i}),this.loadedForUser=!0),pintrk("track","checkout",{value:t,order_quantity:e,currency:"USD"})})}};l($y,"PinterestEventTracking");Iy=$y,Py=new Iy});var Ry,Fy,My,_k=ie(()=>{Pi();Ry=class Ry extends jt{_libraryInit(){window.twq||(function(e,t,i,s,n,a){e.twq||(s=e.twq=function(){s.exe?s.exe.apply(s,arguments):s.queue.push(arguments)},s.version="1.1",s.queue=[],n=t.createElement(i),n.async=!0,n.src="//static.ads-twitter.com/uwt.js",a=t.getElementsByTagName(i)[0],a.parentNode.insertBefore(n,a))}(window,document,"script"),twq("init","o5a40"))}_fireEvent(e,t){this.executeCallbackIfOnProduction(()=>{window.twq("track",e,t)})}trackPageView(){this._fireEvent("PageView",{})}trackPurchase(e,t){this._fireEvent("purchase",{value:`${e}`,currency:"USD",num_items:`${t}`})}};l(Ry,"TwitterEventTracking");Fy=Ry,My=new Fy});var Hy,Ny,Ly,bk=ie(()=>{Pi();Hy=class Hy extends jt{_libraryInit(){window.saq||function(e,t,i,s,n,a,c){e.saq||(n=e.saq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)},e._saq||(e._saq=n),n.push=n,n.loaded=!0,n.version="1.0",n.queue=[],a=t.createElement(i),a.async=!0,a.src=s,c=t.getElementsByTagName(i)[0],c.parentNode.insertBefore(a,c))}(window,document,"script","https://tags.srv.stackadapt.com/events.js")}purchaseEvent(e){this.executeCallbackIfOnProduction(()=>{saq("conv","C4PUiGRleC9YFIpRoGsld5",{Optins:e})})}signatureEvent(){this.executeCallbackIfOnProduction(()=>{saq("conv","lY8HH0iCIiLv7hZq4gAlo2")})}};l(Hy,"StackAdaptEventTracking");Ny=Hy,Ly=new Ny});var Uy,qy,jy,qd,wk=ie(()=>{eu();Pi();Uy=1706987,qy=class qy extends jt{_libraryInit(){window._tfa=window._tfa||[],function(e,t,i,s){document.getElementById(s)||(e.async=1,e.src=i,e.id=s,t.parentNode.insertBefore(e,t))}(document.createElement("script"),document.getElementsByTagName("script")[0],`//cdn.taboola.com/libtrc/unip/${Uy}/tfa.js`,"tb_tfa_script")}isTaboolaCentralizedTrackingSrc(e){return(e||"").toLowerCase()===l0}sendPageView(){this.executeCallbackIfOnProduction(()=>{window._tfa.push({notify:"event",name:"page_view",id:Uy})})}sendLead(e){this.executeCallbackIfOnProduction(()=>{window._tfa.push({notify:"event",name:"lead",id:Uy,revenue:e})})}};l(qy,"TaboolaEventTracking");jy=qy,qd=new jy});var kP,zy,Wy,By,Sk=ie(()=>{Pi();kP="D2EUFNJC77U9B02LTOC0",zy=class zy extends jt{_libraryInit(){(function(e,t,i){e.TiktokAnalyticsObject=i;var s=e[i]=e[i]||[];s.methods=["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie","holdConsent","revokeConsent","grantConsent"],s.setAndDefer=function(a,c){a[c]=function(){a.push([c].concat(Array.prototype.slice.call(arguments,0)))}};for(var n=0;n<s.methods.length;n++)s.setAndDefer(s,s.methods[n]);s.instance=function(a){for(var c=s._i[a]||[],d=0;d<s.methods.length;d++)s.setAndDefer(c,s.methods[d]);return c},s.load=function(a,c){var d="https://analytics.tiktok.com/i18n/pixel/events.js",o=c&&c.partner;s._i=s._i||{},s._i[a]=[],s._i[a]._u=d,s._t=s._t||{},s._t[a]=+new Date,s._o=s._o||{},s._o[a]=c||{},c=document.createElement("script"),c.type="text/javascript",c.async=!0,c.src=d+"?sdkid="+a+"&lib="+i,a=document.getElementsByTagName("script")[0],a.parentNode.insertBefore(c,a)},s.load(kP),s.page()})(window,document,"ttq")}completeRegistration(){this.executeCallbackIfOnProduction(()=>{window.ttq.track("CompleteRegistration")})}purchase(e,{content_ids:t=[],content_type:i="product",value:s=0,currency:n="USD"}){this.executeCallbackIfOnProduction(()=>{window.ttq.identify({email:e}),window.ttq.track("Purchase",{content_ids:t,content_type:i,value:s,currency:n})})}};l(zy,"TiktokEventTracking");Wy=zy,By=new Wy});var Yy,Vy,bo,xk=ie(()=>
56{Pi();Yy=class Yy extends jt{_libraryInit(){(function(e,t){e.kwa||(e.kwa=function(){(e.kwa.q=e.kwa.q||[]).push(arguments)});let i=t.createElement("script");i.src="//cdn.keywee.co/dist/analytics.min.js",i.async=!0;let s=t.scripts[0];s.parentNode.insertBefore(i,s)})(window,document),window.kwa("initialize",5420)}completeRegistration(e,t){this.executeCallbackIfOnProduction(()=>{window.kwa("sendFBEvent","CompleteRegistration",{em:e,value:t,currency:"USD",fireOnce:!0})})}donate(e,t){this.executeCallbackIfOnProduction(()=>{window.kwa("sendFBEvent","Donate",{value:t,em:e,currency:"USD",fireOnce:!0})})}purchase(e,t,i){this.executeCallbackIfOnProduction(()=>{window.kwa("sendFBEvent","Purchase",{em:e,value:t,currency:"USD",content_ids:i,fireOnce:!0})})}};l(Yy,"KeyweeEventTracking");Vy=Yy,bo=new Vy});var Zy=Pe((p6,Ky)=>{Sa()(window);var TP="optinAccepted",wo=class wo{constructor(){if(wo.instance)return wo.instance;wo.instance=this}addResultsToDOM(e,t={}){let i=$("#resultsContainer");i.length||(i=$('<div id="resultsContainer"></div>'),$(document.body).append(i)),typeof window.eventTrackingResults>"u"&&(window.eventTrackingResults={});let s=`eventTracking-${e}`,n=$(`#${s}`);n.length&&n.remove(),i.append(`<div id="${s}"></div>`),window.eventTrackingResults[e]=t}};l(wo,"PixelLogger");var Gy=wo;Ky.exports.pixelLogger=new Gy;Ky.exports.LOG_EVENT_OPTIN_ACCEPTED=TP});var kk=Pe((Jy,Wd)=>{gr();var CP=ki();Sa()(window);var OP=qr(),{pixelLogger:EP}
56=Zy(),DP="JavaScript",AP="Html",_CustomPixelFirer=class _CustomPixelFirer{constructor(r){this.pixelLogger=r,this.cachedTrackingPixels=null}_appendTemporaryHtml(r,e=1e3){let t=$(r);$("body").append(t),setTimeout(function(){t.remove()},1e3)}_firePixels(trackingPixels,trackingData,email,passportID,isUsingCache,logEventType){trackingPixels.length!==0&&trackingPixels.forEach(trackingPixel=>{try{if(trackingPixel.type===AP){let r=this._tokenValueReplacement(trackingPixel,trackingData,email,passportID),e=l((t,i,s)=>(this._logPixelError(t,trackingPixel),!1),"fnTemporaryHtmlPixelErrorHandler");window.addEventListener("error",e),this._appendTemporaryHtml(r),window.removeEventListener("error",e),this.pixelLogger.addResultsToDOM(logEventType,{html:r})}else if(trackingPixel.type===DP){isUsingCache||eval(trackingPixel.initSnippet);let pixelFireSource=this._tokenValueReplacement(trackingPixel,trackingData,email,passportID);eval(pixelFireSource),this.pixelLogger.addResultsToDOM(logEventType,{js:pixelFireSource})}}catch(r){this._logPixelError(r,trackingPixel)}})}_getPixelData(r){return new Promise((t,i)=>{$.get(`${dt.getPetitionSiteURL()}/servlets/petitions/tracking_pixels.php?src=${r}`).done(s=>{t(s.trackingPixels)}).fail(()=>{i("request failed")})})}_logPixelError(r,e){OP("Failed to fire tracking pixel : %s : trackingPixel: %o",r,e).send("tracking_pixel_failure",CP)}_tokenValueReplacement(r,e,t,i){let s=r.snippet,n=parseFloat(e.totalValue)*parseFloat(r.valueMultiplier);return s=s.replace(/\*\*optin-total-value\*\*/,n.toFixed(3).toString()),s=s.replace(/\*\*optin-total-quantity\*\*/,e.quantity),s=s.replace(/\*\*optin-email\*\*/,t),s=s.replace(/\*\*optin-passportID\*\*/,i),s}purchaseTracking(r,e,t,i,s){this.cachedTrackingPixels===null?this._getPixelData(r).then(n=>{this._firePixels(n,e,t,i,!1,s),this.cachedTrackingPixels=n}):this._firePixels(this.cachedTrackingPixels,e,t,i,!0,s)}};l(_CustomPixelFirer,"CustomPixelFirer");var Xy=_CustomPixelFirer;Wd.exports=new Xy(EP)});var Qy=Pe((_6,Tk)=>{Vt();Tk.exports=new Proxy({},{get:(r,e)=>{let t=Be.getCentralizedTracking();if(typeof r[e]!="function"&&t.hasOwnProperty(e))return t[e];if(e==="values")return t}})});var Dk=Pe(($6,Ek)=>{pk();mk();gk();yk();vk();_k();bk();Vt();wk();Sk();vy();var ev=mt(ts());xk();eu();var IP=kk(),{pixelLogger:lc,LOG_EVENT_OPTIN_ACCEPTED:Ck}=Zy(),On=ki(),PP=lu(),vr=Qy(),$P=Ci(),uc=by().sha256,FP="2754",Ok="tiktok-page-visits",MP=31536e3,rv=class rv{isUserFromTiktokWithAllowedPublisher(){return this.isUserFromTiktokAllowedPublisher()&&(vr.src||"").toLowerCase()===xm}getTiktokPageVisits(){return JSON.parse((0,ev.default)(Ok)||"{}")}setTiktokPageVisits(e={}){(0,ev.default)(Ok,JSON.stringify(e),MP)}updateTiktokPageVisit(e){let t=this.getTiktokPageVisits();t[e.centralizedTracking.campaign]=e,this.setTiktokPageVisits(t)}getTiktokPageVisitForCurrentCampaign(){return this.getTiktokPageVisits()[vr.campaign]}isUserFromTiktokAllowedPublisher(){return sessionStorage.getItem("publisherID")===FP}getTheMostRecentlySetTiktokPageVisit(){let e=this.getTiktokPageVisits();return Object.values(e).reduce((t,i)=>!t||new Date(i.time)>new Date(t.time)?i:t,null)}findSignedTikTokPageVisit(){let e=this.getTiktokPageVisits();return Object.values(e).find(t=>t.hasSigned===!0)||null}recordTiktokPageVisitForCurrentCampaign(){let e=new Date().toISOString(),t=this.getTiktokPageVisitForCurrentCampaign();if(t){let s=this.getTiktokPageVisits();t.time=e,s[vr.campaign]=t,this.setTiktokPageVisits(s);return}let i={time:e,hasSigned:!1,centralizedTracking:{src:vr.src,campaign:vr.campaign}};this.updateTiktokPageVisit(i)}pageView(){this.isUserFromTiktokWithAllowedPublisher()&&this.recordTiktokPageVisitForCurrentCampaign(),ac.fireEvent("send","pageview"),My.trackPageView(),qd.sendPageView();let e=rr.getPixelIDForSource(vr.src);e&&(rr.fireEventUnique("trackSingle",e,"PageView"),lc.addResultsToDOM("pageView",e))}optinAccepted(e){let t={},i=e?.optinToSend||{},s=i.optinID?[i.optinID]:[],n={quantity:1,totalValue:Number(i.hp||0)},a=vr.values;if(n.totalValue&&qd.isTaboolaCentralizedTrackingSrc(a.src)&&qd.sendLead(n.totalValue),n.totalValue&&typeof vr.values.src<"u")switch(IP.purchaseTracking(vr.values.src,n,e.email,e.passportID,Ck),(vr.values.src||"").toLowerCase()){case s0:t.pinterest=n,Py.fireEvent(n.quantity,n.totalValue,e.email);break;case a0:t.googleTags=["event","conversion",{send_to:"AW-1064448610/YNhqCMTQn-4BEOLkyPsD",value:n.totalValue.toFixed(2).toString(),currency:"USD"}],oc.fireEvent.apply(oc,t.googleTags);break;case o0:My.trackPurchase(n.totalValue,n.quantity);break;case Sm:Ly.purchaseEvent(n.totalValue);break;case xm:this.getTheMostRecentlySetTiktokPageVisit()&&this.isUserFromTiktokAllowedPublisher()&&By.purchase(uc(e.email),{value:n.totalValue,content_ids:s});break}let c=Be.getAllSessionData(),d={pixelsSent:[],petitionID:e.petitionID,optinID:s,passportID:e.passportID,sessionId:c.sessionID,sessionSequence:c.sessionSequence,emailHash:uc(e.email.toLowerCase()),tracking_source:a.src,tracking_campaign:a.campaign,FTS:e.fts},o=rr.getPixelIDForSource(vr.src);if(o){d.pixelsSent=this._fireOptinAcceptedPixelsForFacebookPartners(e.email,o,n.totalValue,s);let p=d.pixelsSent.reduce((g,v)=>g+v.value,0);t.facebook={optinIDs:s,totalValueSent:p,pixelsSent:d.pixelsSent}}else if(e.hasOwnProperty("optinToSend")&&Object.keys(e.optinToSend).length>0){let p=rr.getPixelIDForSource(_o.PIXEL_SRC_OPTINS);d.pixelsSent=[rr.firePurchasePixel(p,0,s)],t.facebook={optinIDs:s,pixelsSent:d.pixelsSent,totalValueSent:0}}d.pixelsSent.length>0&&this.postFacebookPixelEvent(d),lc.addResultsToDOM(Ck,t)}postFacebookPixelEvent(e){sc(()=>{$.post("/servlets/petitions/facebook_pixel_events.php",e)})}petitionSigned(e={}){let t={},i=vr.values,s=[],n=Be.getAllSessionData(),a={pixelsSent:[],petitionID:e.petitionID,passportID:e.passportID,sessionId:n.sessionID,sessionSequence:n.sessionSequence,emailHash:uc(e.email.toLowerCase()),tracking_source:i.src,tracking_campaign:i.campaign,FTS:e.fts},c=this.getTheMostRecentlySetTiktokPageVisit(),d=this.findSignedTikTokPageVisit();
56c&&!d&&this.isUserFromTiktokAllowedPublisher()&&(By.completeRegistration(),c.hasSigned=!0,this.updateTiktokPageVisit(c));let o=rr.getPixelIDForSource(vr.src);if(o){a.pixelsSent=this._firePetitionSignaturePixelsForFacebookPartners(e.email,o,!!e.fts);let p=a.pixelsSent.reduce((g,v)=>g+v.value,0);t.facebook={optinIDs:s,totalValueSent:p,pixelsSent:a.pixelsSent}}a.pixelsSent.length>0&&this.postFacebookPixelEvent(a),(vr?.src||"").toLowerCase()===Sm&&Ly.signatureEvent(),t.bing={ec:"Conversion",ea:"Petition_Signed",ev:1},Ty.fireEvent(t.bing),t.googleAnalytics={hitType:"event",eventCategory:"petition_sign",eventAction:"conf_box",eventValue:"2.00"},ac.fireEvent("send",t.googleAnalytics),ac.firePetitionSignConfirmationEvent(),lc.addResultsToDOM("petitionSigned",t)}petitionCreated(){let e={};e.pinterest={tid:"4MdXljXtqpK",totalValue:30,quantity:1},Py.fireEvent(e.pinterest),e.facebook=["track",rr.getPixelIDForSource(_o.PIXEL_SRC_CARE2),"Lead",{value:"30.00",currency:"USD"}],rr.fireEventUniqueWithAdvancedMatching.apply(rr,e.facebook),e.bing={ec:"Conversion",ea:"Petition_Creation",ev:1},Ty.fireEvent(e.bing),e.googleAnalytics={hitType:"event",eventCategory:"Petition Creation",eventAction:"Petition Created"},ac.fireEvent("send",e.googleAnalytics),lc.addResultsToDOM("petitionCreated",e)}petitionCreateViewed(){let e={};e.care2={passportID:On.user.isLoggedIn()?On.user.passportID:null,language_code:On.user.language,sessionId:Be.getAllSessionData().sessionID,mobile:On.mobile?"Y":"N",z00m:$P("z00m",On.queryString,null)},vr.values&&(e.care2.centralizedTracking=vr.values),PP.callCare2Servlet("petitions/create_seen.php",e.care2),e.googleTags=["event","page_view",{send_to:"AW-1064448610",user_id:On.user.passportID}],oc.fireEvent.apply(oc,e.googleTags),lc.addResultsToDOM("petitionCreateViewed",e)}_fireOptinAcceptedPixelsForFacebookPartners(e,t,i,s){if(i===0||!s.length)return[];let n=[],a=uc(e.toLowerCase());n.push(rr.firePurchasePixel(rr.getPixelIDForSource(_o.PIXEL_SRC_OPTINS),0,s)),t&&(n.push(rr.firePurchasePixel(t,i,s)),bo.purchase(a,i,s),On.user&&On.user.isKnownDonor&&(n.push(rr.sendFacebookPixel(t,"Donate",1,null,null)),bo.donate(1)));let c=rr.getPixelIDForSource(_o.PIXEL_SRC_AR_FACEBOOK_ADS);if(t===c&&On.user?.signer?.state==="FL"){let d=rr.getPixelIDForSource(_o.PIXEL_SRC_AR_FACEBOOK_ADS_FL_ONLY);n.push(rr.firePurchasePixel(d,i,s)),n.push(rr.sendFacebookPixel(t,"Donate",1,null,null)),bo.purchase(a,i,s),bo.donate(a,1)}return n}_firePetitionSignaturePixelsForFacebookPartners(e,t,i){let s=[],n=uc(e.toLowerCase());return t&&i&&(s.push(rr.sendFacebookPixel(t,"CompleteRegistration",0,null,null)),bo.completeRegistration(n,0)),s}};l(rv,"PixelManager");var tv=rv;Ek.exports=new tv});var Pk=Pe((M6,Ik)=>{var RP=window.location.href;function Ak(r){window.history.replaceState({},document.title,r)}l(Ak,"replaceBrowserUrl");function NP(){Ak(RP)}l(NP,"revertToInitialBrowserUrl");Ik.exports={replaceBrowserUrl:Ak,revertToInitialBrowserUrl:NP}});var Fk=Pe((N6,$k)=>{function LP(r){return r.replace(/&?(firstname|lastname|email|address|city|state|country|zip|phone|isKnownDonor|emailSignatureRate)=([^&]*)/g,"")}l(LP,"scrubPPIIFromUrl");$k.exports={scrubPPIIFromUrl:LP}});var zd=Pe((j6,En)=>{gr();var HP=location.href.indexOf("http://localhost")===0,Bd=Ei(),H6=Ci(),ea=HP?!1:Dk(),os=Pk(),UP=Fk();function ta(r){os.replaceBrowserUrl(UP.scrubPPIIFromUrl(r))}l(ta,"removePIIFromBrowserUrl");function jP(r){let e=window.location.href;ta(e),(Bd.mainPetition.redirectID||Bd.mainPetition.z00m)&&Mk(`${dt.getCare2URL()}/servlets/petitions/viewed.php?`+$.param({petitionID:r.petitionID,redirectID:Bd.mainPetition.redirectID,z00m:Bd.mainPetition.z00m,signed:this.signed?1:0})),os.replaceBrowserUrl(e)}l(jP,"trackPetitionPageLoaded");function qP(r,e){let t=window.location.href;ta(t),r.trackPetitionSeen({currentPage:e}),os.replaceBrowserUrl(t)}l(qP,"trackPetitionSeen");function WP(r,e,t,i,s){let n=window.location.href;ta(n),ea&&ea.petitionSigned({petitionID:r,passportID:e,sessionId:t,email:i,fts:s}),os.replaceBrowserUrl(n)}l(WP,"trackPetitionSigned");function BP(r,e,t,i,s,n){let a=window.location.href;ta(a),ea&&ea.optinAccepted({petitionID:r,passportID:e,sessionId:t,email:i,fts:n,optinToSend:s}),os.replaceBrowserUrl(a)}l(BP,"trackOptinAccepted");function zP(){let r=window.location.href;ta(r),ea.petitionCreateViewed(),os.replaceBrowserUrl(r)}l(zP,"trackPetitionCreatePageView");function VP(){let r=window.location.href;ta(r),ea.petitionCreated(),os.replaceBrowserUrl(r)}l(VP,"trackPetitionCreated");function YP(){let r=window.location.href;ta(r),ea.pageView(),os.replaceBrowserUrl(r)}l(YP,"trackPageView");function Mk(r){$("body").append(`<img src="${r}" width="1" height="1" border="0" alt="" />`)}l(Mk,"setPixel");En.exports.trackPetitionCreated=VP;En.exports.trackPetitionPageLoaded=jP;En.exports.trackPetitionSeen=qP;En.exports.trackPetitionSigned=WP;En.exports.trackOptinAccepted=BP;En.exports.setPixel=Mk;En.exports.trackPageView=YP;En.exports.trackPetitionCreatePageView=zP});var Rk,fc,So,dc,xo,Vd,Nk,Yd,Lk,Gd,Hk,iv,cc,Uk=ie(()=>{"use strict";jd();go();Hr();Rk=mt(zd()),iv=class iv{constructor({optinAPI:e,getAllSessionData:t,getSignerDataWithUserDataAsDefault:i,updateUserSession:s}){xe(this,Vd);xe(this,Yd);xe(this,Gd);xe(this,fc,void 0);xe(this,So,void 0);xe(this,dc,void 0);xe(this,xo,void 0);Le(this,fc,e),Le(this,So,t),Le(this,xo,i),Le(this,dc,s)}execute(e){let t=new Cn(e.data.optinData);return Ot(this,Gd,Hk).call(this,e),Ot(this,Vd,Nk).call(this,t),Ot(this,Yd,Lk).call(this,e),St.createSuccessful("Optin submitted successfully.")}};fc=new WeakMap,So=new WeakMap,dc=new WeakMap,xo=new WeakMap,Vd=new WeakSet,Nk=l(function(e){if(!e.checked)return;
56let t={optinsAccepted:e.toUserSessionEventHistoryCacheItem()};if(e.integratedPetitionId){let i=new Zi(e.integratedPetitionId);t.petitionsSigned=i.toUserSessionEventHistoryCacheItem()}De(this,dc).execute(t)},"#updateUserSessionOptinsAccepted"),Yd=new WeakSet,Lk=l(function({data:e}){if(e.optinData.checked){let t=De(this,So).query(),i=De(this,xo).query();(0,Rk.trackOptinAccepted)(e.petitionData.petitionID,i.passportID,t.sessionID,i.email,e.optinData,t.isNewUserSession&&Object.keys(t.petitionsSigned).length===1)}},"#trackOptinAccepted"),Gd=new WeakSet,Hk=l(function({data:e,auth:t}){let{petitionData:i,optinData:s,signerData:n}=e,a=De(this,So).query(),c=De(this,xo).query(!0),d=[{optinID:s.optinID,type:s.type,checked:s.checked,integratedPetitionId:s.integratedPetitionId,languageCode:s.languageCode,isBTS:s.isBTS,version:s.version}],o=e.petitionData.hadPhoneCollection&&c.getCanUseSMSPhoneAppendForOptin(),p={optins:d,useStoredPhone:o,petitionID:i.petitionID,passportID:c.passportID,signedPetitions:Object.keys(a.petitionsSigned),previousOptins:Object.keys(a.optinsAccepted),...c.toUserValuesDTO()};De(this,fc).submitOptin({auth:t,data:p})},"#submitOptin"),l(iv,"SubmitOptin");cc=iv});var jk,qk=ie(()=>{Uk();vo();ed();Ws();Tu();jk=new cc({optinAPI:Ii,getAllSessionData:fi,getSignerDataWithUserDataAsDefault:rs,updateUserSession:Xa})});var pc,nv,hc,Wk=ie(()=>{"use strict";Hr();nv=class nv{constructor({optinAPI:e}){xe(this,pc,void 0);Le(this,pc,e)}execute(){return De(this,pc).clearOptinsCacheData(),St.createSuccessful("optin caches cleared")}};pc=new WeakMap,l(nv,"ClearOptinCaches");hc=nv});var Bk,zk=ie(()=>{Wk();vo();Bk=new hc({optinAPI:Ii})});var mc,sv=ie(()=>{Mx();ek();ik();qk();zk();sd();xi();mc=new ju({submitOptin:jk,getThirdPartyOptin:Qx,getInternalOptin:rk,clearOptinCaches:Bk,systemLogger:Ut,applicationTranslator:ro})});var ko,Vk,Yk=ie(()=>{ko=mt(Br());Vr();zr();ko.registerHelper({});ko.registerPartial({ButtonStates:Nt,signatures:Rt});Vk=ko.template({1:function(r,e,t,i,s){var n,a=r.lambda,c=r.escapeExpression,d=e??(r.nullContext||{}),o=r.lookupProperty||function(p,g){if(Object.prototype.hasOwnProperty.call(p,g))return p[g]};return'<div class="optin optin--'+c(a((n=e!=null?o(e,"optin"):e)!=null?o(n,"optinID"):n,e))+" "+((n=o(t,"if").call(d,e!=null?o(e,"isInternalOptin"):e,{name:"if",hash:{},fn:r.program(2,s,0),inverse:r.program(4,s,0),data:s,loc:{start:{line:2,column:43},end:{line:2,column:105}}}))!=null?n:"")+`">
57    <input name="c2optin-`+c(a((n=e!=null?o(e,"optin"):e)!=null?o(n,"optinID"):n,e))+'" type="checkbox" id="c2optin-'+c(a((n=e!=null?o(e,"optin"):e)!=null?o(n,"optinID"):n,e))+'" value="'+c(a((n=e!=null?o(e,"optin"):e)!=null?o(n,"optinID"):n,e))+'" tabindex="20"'+((n=o(t,"if").call(d,(n=e!=null?o(e,"optin"):e)!=null?o(n,"checked"):n,{name:"if",hash:{},fn:r.program(6,s,0),inverse:r.noop,data:s,loc:{start:{line:3,column:130},end:{line:3,column:166}
57}}))!=null?n:"")+` />
58    <label for="c2optin-`+c(a((n=e!=null?o(e,"optin"):e)!=null?o(n,"optinID"):n,e))+'">'+((n=a(e!=null?o(e,"html"):e,e))!=null?n:"")+`</label>
59</div>
60`},2:function(r,e,t,i,s){return"optin--internal"},4:function(r,e,t,i,s){return"optin--tp"},6:function(r,e,t,i,s){return" checked"},compiler:[8,">= 4.3.0"],main:function(r,e,t,i,s){var n,a=r.lookupProperty||function(c,d){if(Object.prototype.hasOwnProperty.call(c,d))return c[d]};return(n=a(t,"if").call(e??(r.nullContext||{}),(n=e!=null?a(e,"optin"):e)!=null?a(n,"optinID"):n,{name:"if",hash:{},fn:r.program(1,s,0),inverse:r.noop,data:s,loc:{start:{line:1,column:0},end:{line:6,column:7}}}))!=null?n:""},useData:!0})});var To,Gk,Kk=ie(()=>{To=mt(Br());Xs();Vr();zr();To.registerHelper({translate:Yr});To.registerPartial({ButtonStates:Nt,signatures:Rt});Gk=To.template({1:function(r,e,t,i,s){var n,a=r.lambda,c=r.escapeExpression,d=r.lookupProperty||function(o,p){if(Object.prototype.hasOwnProperty.call(o,p))return o[p]};return'    <div class="optin-gdpr optin--'+c(a((n=e!=null?d(e,"optin"):e)!=null?d(n,"optinID"):n,e))+`">
61
62        <div class="question">`+((n=a((n=e!=null?d(e,"optin"):e)!=null?d(n,"questionHtml"):n,e))!=null?n:"")+`</div>
63        <div class="error">`+((n=d(t,"translate").call(e??(r.nullContext||{}),"form_field_error_required-gdpr",{name:"translate",hash:{},data:s,loc:{start:{line:5,column:27},end:{line:5,column:75}}}))!=null?n:"")+`</div>
64        <div class="answers">
65            <div class="accept">
66                <div class="gdpr-optin-radio">
67                    <input class="optin-gdpr__accept-radio" type="radio" id="c2optin-`+c(a((n=e!=null?d(e,"optin"):e)!=null?d(n,"optinID"):n,e))+'" name="c2optin-'+c(a((n=e!=null?d(e,"optin"):e)!=null?d(n,"optinID"):n,e))+'" value="'+c(a((n=e!=null?d(e,"optin"):e)!=null?d(n,"optinID"):n,e))+`" tabindex="20" />
68                    <label class="optin-gdpr__accept" for="c2optin-`+c(a((n=e!=null?d(e,"optin"):e)!=null?d(n,"optinID"):n,e))+'">'+((n=a((n=e!=null?d(e,"optin"):e)!=null?d(n,"acceptHtml"):n,e))!=null?n:"")+`</label>
69                </div>
70            </div>
71            <div class="deny">
72                <div class="gdpr-optin-radio">
73                    <input class="optin-gdpr__deny-radio" type="radio" id="c2optin-`+c(a((n=e!=null?d(e,"optin"):e)!=null?d(n,"optinID"):n,e))+'-deny" name="c2optin-'+c(a((n=e!=null?d(e,"optin"):e)!=null?d(n,"optinID"):n,e))+`" value="0" tabindex="20" />
74                    <label class="optin-gdpr__deny" for="c2optin-`+c(a((n=e!=null?d(e,"optin"):e)!=null?d(n,"optinID"):n,e))+'-deny">'+((n=a((n=e!=null?d(e,"optin"):e)!=null?d(n,"denyHtml"):n,e))!=null?n:"")+`</label>
75                </div>
76            </div>
77        </div>
78    </div>
79`},compiler:[8,">= 4.3.0"],main:function(r,e,t,i,s){var n,a=r.lookupProperty||function(c,d){if(Object.prototype.hasOwnProperty.call(c,d))return c[d]};return(n=a(t,"if").call(e??(r.nullContext||{}),(n=e!=null?a(e,"optin"):e)!=null?a(n,"optinID"):n,{name:"if",hash:{},fn:r.program(1,s,0),inverse:r.noop,data:s,loc:{start:{line:1,column:0},end:{line:21,column:7}}}))!=null?n:""},useData:!0})});var Co,Zk,Xk=ie(()=>{Co=mt(Br());Vr();zr();Co.registerHelper({});Co.registerPartial({ButtonStates:Nt,signatures:Rt});Zk=Co.template({1:function(r,e,t,i,s){var n,a=r.lambda,c=r.escapeExpression,d=r.lookupProperty||function(o,p){if(Object.prototype.hasOwnProperty.call(o,p))return o[p]};return'    <div class="optin-soft-gdpr optin--'+c(a((n=e!=null?d(e,"optin"):e)!=null?d(n,"optinID"):n,e))+`">
80        <input name="c2optin-`+c(a((n=e!=null?d(e,"optin"):e)!=null?d(n,"optinID"):n,e))+'" class="optin-soft-gdpr__checkbox" type="checkbox" id="c2optin-'+c(a((n=e!=null?d(e,"optin"):e)!=null?d(n,"optinID"):n,e))+'" value="'+c(a((n=e!=null?d(e,"optin"):e)!=null?d(n,"optinID"):n,e))+'" tabindex="20"'+((n=d(t,"if").call(e??(r.nullContext||{}),(n=e!=null?d(e,"optin"):e)!=null?d(n,"checked"):n,{name:"if",hash:{},fn:r.program(2,s,0),inverse:r.noop,data:s,loc:{start:{line:3,column:168},end:{line:3,column:204}}}))!=null?n:"")+` />
81        <label class="optin-soft-gdpr__label" for="c2optin-`+c(a((n=e!=null?d(e,"optin"):e)!=null?d(n,"optinID"):n,e))+'">'+((n=a((n=e!=null?d(e,"optin"):e)!=null?d(n,"questionHtml"):n,e))!=null?n:"")+`</label>
82    </div>
83`},2:function(r,e,t,i,s){return" checked"},compiler:[8,">= 4.3.0"],main:function(r,e,t,i,s){var n,a=r.lookupProperty||function(c,d){if(Object.prototype.hasOwnProperty.call(c,d))return c[d]};
83return(n=a(t,"if").call(e??(r.nullContext||{}),(n=e!=null?a(e,"optin"):e)!=null?a(n,"optinID"):n,{name:"if",hash:{},fn:r.program(1,s,0),inverse:r.noop,data:s,loc:{start:{line:1,column:0},end:{line:6,column:7}}}))!=null?n:""},useData:!0})});var Oo,GP,Jk=ie(()=>{Oo=mt(Br());Xs();Vr();zr();Oo.registerHelper({translate:Yr});Oo.registerPartial({ButtonStates:Nt,signatures:Rt});GP=Oo.template({1:function(r,e,t,i,s){return" has-integrated-petition"},3:function(r,e,t,i,s){var n=r.lookupProperty||function(a,c){if(Object.prototype.hasOwnProperty.call(a,c))return a[c]};return'                    <button class="optin-confirm-popup__sign-button" type="button">'+r.escapeExpression(n(t,"translate").call(e??(r.nullContext||{}),"optin-confirm-popup__sign-button",{name:"translate",hash:{},data:s,loc:{start:{line:12,column:83},end:{line:12,column:131}}}))+`</button>
84`},5:function(r,e,t,i,s){var n,a=r.lambda,c=r.escapeExpression,d=e??(r.nullContext||{}),o=r.lookupProperty||function(p,g){if(Object.prototype.hasOwnProperty.call(p,g))return p[g]};return'        <div class="optin-confirm-popup__integrated-petition integratedSignature_'+c(a((n=e!=null?o(e,"integratedPetition"):e)!=null?o(n,"petitionID"):n,e))+`">
85            <h3 class="optin-confirm-popup__double-impact-msg">`+c(o(t,"translate").call(d,"double_your_impact",{name:"translate",hash:{},data:s,loc:{start:{line:19,column:63},end:{line:19,column:97}}}))+`</h3>
86            <div class="optins">
87                <div class="optin optin--`+c(a((n=e!=null?o(e,"optin"):e)!=null?o(n,"optinID"):n,e))+`">
88                    <label class="c2-custom-checkbox__label" for="c2optin-`+c(a((n=e!=null?o(e,"optin"):e)!=null?o(n,"optinID"):n,e))+`">
89                        <input class="c2-custom-checkbox__input" type="checkbox" id="c2optin-`+c(a((n=e!=null?o(e,"optin"):e)!=null?o(n,"optinID"):n,e))+'" value="'+c(a((n=e!=null?o(e,"optin"):e)!=null?o(n,"optinID"):n,e))+'" tabindex="20"'+((n=o(t,"if").call(d,(n=e!=null?o(e,"optin"):e)!=null?o(n,"checked"):n,{name:"if",hash:{},fn:r.program(6,s,0),inverse:r.noop,data:s,loc:{start:{line:23,column:151},end:{line:23,column:187}}}))!=null?n:"")+` />
90                        <div class="c2-custom-checkbox__checkbox"></div>
91                        <span>
92                            `+c(a(e!=null?o(e,"optinLabel"):e,e))+`
93`+((n=o(t,"if").call(d,e!=null?o(e,"moreInfoLink"):e,{name:"if",hash:{},fn:r.program(8,s,0),inverse:r.noop,data:s,loc:{start:{line:27,column:28},end:{line:29,column:35}}}))!=null?n:"")+`                        </span>
94                    </label>
95                </div>
96`+((n=o(t,"if").call(d,e!=null?o(e,"moreInfoLink"):e,{name:"if",hash:{},fn:r.program(10,s,0),inverse:r.noop,data:s,loc:{start:{line:33,column:16},end:{line:35,column:23}}}))!=null?n:"")+`            </div>
97            <div class="optin-confirm-popup__integrated-petition-description">
98                <img src="`+c(a((n=e!=null?o(e,"integratedPetition"):e)!=null?o(n,"wide_image"):n,e))+`" />
99                <h2>`+c(a((n=e!=null?o(e,"integratedPetition"):e)!=null?o(n,"title"):n,e))+`</h2>
100            </div>
101            <div class="optin-confirm-popup__integrated-petition-summary summary">`+((n=a((n=e!=null?o(e,"integratedPetition"):e)!=null?o(n,"summary"):n,e))!=null?n:"")+`</div>
102            <div class="optin-confirm-popup__integrated-petition-sponsor sponsor"><img src="`+c(a((n=e!=null?o(e,"optin"):e)!=null?o(n,"regularLogo"):n,e))+`" /></div>
103            <div class="optin-confirm-popup__integrated-petition-learn-more learn_more"><a href="#" id="integrated_more">`+c(o(t,"translate").call(d,"read_full_petition",{name:"translate",hash:{},data:s,loc:{start:{line:43,column:121},end:{line:43,column:155}}}))+`</a></div>
104        </div>
105`},6:function(r,e,t,i,s){return" checked"},8:function(r,e,t,i,s){var n,a=r.lookupProperty||function(c,d){if(Object.prototype.hasOwnProperty.call(c,d))return c[d]};return'                                <span class="optin-confirm-popup__more-info-link">'+r.escapeExpression(r.lambda((n=e!=null?a(e,"optin"):e)!=null?a(n,"infolink"):n,e))+`</span>
106`},10:function(r,e,t,i,s){var n,a=r.lookupProperty||function(c,d){if(Object.prototype.hasOwnProperty.call(c,d))return c[d]};return'                    <div class="optin-confirm-popup__more-info-html is-hidden">'+((n=r.lambda(e!=null?a(e,"moreInfoHtml"):e,e))!=null?n:"")+`</div>
107`}
107,12:function(r,e,t,i,s){var n,a=e??(r.nullContext||{}),c=r.escapeExpression,d=r.lambda,o=r.lookupProperty||function(p,g){if(Object.prototype.hasOwnProperty.call(p,g))return p[g]};return'        <h3 class="optin-confirm-popup__get-related-updates-msg">'+c(o(t,"translate").call(a,"get_related_updates_from",{name:"translate",hash:{},data:s,loc:{start:{line:46,column:65},end:{line:46,column:105}}}))+`</h3>
108        <div class="optin-confirm-popup__npo-optin">
109            <div class="optins">
110                <div class="optin optin--`+c(d((n=e!=null?o(e,"optin"):e)!=null?o(n,"optinID"):n,e))+`">
111                    <label class="c2-custom-checkbox__label" for="c2optin-`+c(d((n=e!=null?o(e,"optin"):e)!=null?o(n,"optinID"):n,e))+`">
112                        <input class="c2-custom-checkbox__input" type="checkbox" id="c2optin-`+c(d((n=e!=null?o(e,"optin"):e)!=null?o(n,"optinID"):n,e))+'" value="'+c(d((n=e!=null?o(e,"optin"):e)!=null?o(n,"optinID"):n,e))+'" tabindex="20"'+((n=o(t,"if").call(a,(n=e!=null?o(e,"optin"):e)!=null?o(n,"checked"):n,{name:"if",hash:{},fn:r.program(6,s,0),inverse:r.noop,data:s,loc:{start:{line:51,column:151},end:{line:51,column:187}}}))!=null?n:"")+` />
113                        <div class="c2-custom-checkbox__checkbox"></div>
114                        `+((n=d(e!=null?o(e,"optinLabel"):e,e))!=null?n:"")+`
115                    </label>
116                </div>
117                <div class="optin-confirm-popup__npo-optin-sponsor sponsor">
118                    <img src="`+c(d((n=e!=null?o(e,"optin"):e)!=null?o(n,"regularLogo"):n,e))+`" />
119                </div>
120            </div>
121        </div>
122`},compiler:[8,">= 4.3.0"],main:function(r,e,t,i,s){var n,a=e??(r.nullContext||{}),c=r.escapeExpression,d=r.lookupProperty||function(o,p){if(Object.prototype.hasOwnProperty.call(o,p))return o[p]};return'<div class="optin-confirm-popup'+((n=d(t,"if").call(a,e!=null?d(e,"integratedPetition"):e,{name:"if",hash:{},fn:r.program(1,s,0),inverse:r.noop,data:s,loc:{start:{line:1,column:31},end:{line:1,column:88}}}))!=null?n:"")+`">
123    <div class="optin-confirm-popup__thank-you-and-confirm-wrapper">
124        <h1 class="optin-confirm-popup__thank-you-msg">`+c(d(t,"translate").call(a,"thank_you_for_caring",{name:"translate",hash:{},data:s,loc:{start:{line:3,column:55},end:{line:3,column:91}}}))+`</h1>
125        <div class="signature">
126            <div class="name">`+c(r.lambda(e!=null?d(e,"userDisplayName"):e,e))+`</div>
127            <div class="name-underscore__container">
128                <div class="x">x</div>
129                <div class="underscore"></div>
130            </div>
131            <div class="buttons buttons--loading optin-confirm-popup__confirm-buttons">
132`+((n=r.invokePartial(d(i,"ButtonStates"),e,{name:"ButtonStates",fn:r.program(3,s,0),inverse:r.noop,data:s,helpers:t,partials:i,decorators:r.decorators}))!=null?n:"")+`            </div>
133        </div>
134    </div>
135`+((n=d(t,"if").call(a,e!=null?d(e,"integratedPetition"):e,{name:"if",hash:{},fn:r.program(5,s,0),inverse:r.program(12,s,0),data:s,loc:{start:{line:17,column:4},end:{line:61,column:11}}}))!=null?n:"")+`</div>
136`},usePartial:!0,useData:!0})});var Eo,KP,Qk=ie(()=>{Eo=mt(Br());Xs();Vr();zr();Eo.registerHelper({translate:Yr});Eo.registerPartial({ButtonStates:Nt,signatures:Rt});KP=Eo.template({1:function(r,e,t,i,s){var n,a=r.lambda,c=r.escapeExpression,d=e??(r.nullContext||{}),o=r.lookupProperty||function(p,g){if(Object.prototype.hasOwnProperty.call(p,g))return p[g]};return`        <div class="optin_list optins">
137            <div class="optin-gdpr optin--`+c(a((n=e!=null?o(e,"optin"):e)!=null?o(n,"optinID"):n,e))+`">
138
139                <div class="question">`+((n=a((n=e!=null?o(e,"optin"):e)!=null?o(n,"questionHtml"):n,e))!=null?n:"")+`</div>
140                <div class="error">`+((n=o(t,"translate").call(d,"form_field_error_required-gdpr",{name:"translate",hash:{},data:s,loc:{start:{line:15,column:35},end:{line:15,column:83}}}))!=null?n:"")+`</div>
141                <div class="answers">
142                    <div class="accept">
143                        <div class="gdpr-optin-radio">
144                            <input type="radio" id="c2optin-`+c(a((n=e!=null?o(e,"optin"):e)!=null?o(n,"optinID"):n,e))+'" name="c2optin-'+c(a((n=e!=null?o(e,"optin"):e)!=null?o(n,"optinID"):n,e))+'" value="'+c(a((n=e!=null?o(e,"optin"):e)!=null?o(n,"optinID"):n,e))+`" tabindex="20" />
145                            <label class="optin-gdpr__accept" for="c2optin-`+c(a((n=e!=null?o(e,"optin"):e)!=null?o(n,"optinID"):n,e))+`">
146                                `+((n=o(t,"translate").call(d,"gdpr-popup__button--accept","Yes Please!",{name:"translate",hash:{},data:s,loc:{start:{line:21,column:32},end:{line:21,column:90}}}))!=null?n:"")+`
147                            </label>
148                        </div>
149                    </div>
150                    <div class="deny">
151                        <div class="gdpr-optin-radio">
152                            <input type="radio" id="c2optin-`+c(a((n=e!=null?o(e,"optin"):e)!=null?o(n,"optinID"):n,e))+'-deny" name="c2optin-'+c(a((n=e!=null?o(e,"optin"):e)!=null?o(n,"optinID"):n,e))+`" value="
1520" tabindex="20" />
153                            <label class="optin-gdpr__deny" for="c2optin-`+c(a((n=e!=null?o(e,"optin"):e)!=null?o(n,"optinID"):n,e))+`-deny">
154                                `+((n=o(t,"translate").call(d,"gdpr-popup__button--deny","No Thanks",{name:"translate",hash:{},data:s,loc:{start:{line:29,column:32},end:{line:29,column:86}}}))!=null?n:"")+`
155                            </label>
156                        </div>
157                    </div>
158                </div>
159            </div>
160        </div>
161`},compiler:[8,">= 4.3.0"],main:function(r,e,t,i,s){var n,a=r.lambda,c=r.escapeExpression,d=r.lookupProperty||function(o,p){if(Object.prototype.hasOwnProperty.call(o,p))return o[p]};return'<div class="thumbnail"><img src="'+c(a((n=e!=null?d(e,"optin"):e)!=null?d(n,"thumbnailUrl"):n,e))+`" /></div>
162<div class="gdpr-popup__keep-in-touch">
163    <img class="gdpr-popup__keep-in-touch-logo" src="`+c(a((n=e!=null?d(e,"optin"):e)!=null?d(n,"miniLogo"):n,e))+`">
164    <span class="gdpr-popup__keep-in-touch-text">
165        `+((n=d(t,"translate").call(e??(r.nullContext||{}),"gdpr-popup__keep-in-touch","Keep In Touch With {name}",e!=null?d(e,"translationMap"):e,{name:"translate",hash:{},data:s,loc:{start:{line:5,column:8},end:{line:5,column:94}}}))!=null?n:"")+`
166    </span>
167</div>
168<div class="question">`+((n=a((n=e!=null?d(e,"optin"):e)!=null?d(n,"questionHtml"):n,e))!=null?n:"")+`</div>
169<div class="buttons buttons--ready">
170`+((n=r.invokePartial(d(i,"ButtonStates"),e,{name:"ButtonStates",fn:r.program(1,s,0),inverse:r.noop,data:s,helpers:t,partials:i,decorators:r.decorators}))!=null?n:"")+`</div>
171
172<div class="disclaimer">`+((n=a((n=e!=null?d(e,"optin"):e)!=null?d(n,"disclaimerHtml"):n,e))!=null?n:"")+`</div>
173`},usePartial:!0,useData:!0})});var ZP,e1=ie(()=>{Jk();Qk();ZP=mt(ui());$d()});function gc(r,e,t=Di.signPage,i=()=>{}){let s;switch(e){case Kr.GDPR:s=t2(r),t1(r,s);break;case Kr.SOFT_GDPR:s=QP(r),t1(r,s);break;case Kr.NON_GDPR:default:s=e2(r,t),JP(r,s)}return s.find(`[name=c2optin-${r.optinID}]`).on("change",()=>{r.hasHadUserInteraction=!0,i()}),r.cache$html(s),r.setObjectCacheInDOM(s),r.triggerTrustedFormScript(),s}function t1(r,e){e.find(`[name=c2optin-${r.optinID}]`).on("change",()=>{r.checked=e.find(`#c2optin-${r.optinID}`).is(":checked")})}function JP(r,e){let t=e.find(`#c2optin-${r.optinID}`);t.on("change",i=>{r.checked=t.is(":checked")}),e.off().on("click","a.more_info_link",i=>{i.preventDefault();let s=$(i.currentTarget).siblings(".more_info_html").html();new r1.default("optinMoreInfo",s).show()})}function QP(r){let e={optin:r};return r.hasHadUserInteraction||(r.checked=!0),$(Zk(e,{allowProtoPropertiesByDefault:!0,allowProtoMethodsByDefault:!0}))}function e2(r,e){let t="";e===Di.signPage&&(t+=`<h3 class="optins_header ${r.isInternalOptin()?"optins_header--internal":""}">${(0,Kd.default)("keep_me_updated","keep me updated")}</h3>`);let i="",s=typeof r.tag=="string"?r.tag.toLowerCase():"",n=typeof r.label=="string"?r.label:"",a=typeof r.infohtml=="string"?r.infohtml:"";if(!r.isInternalOptin()&&typeof r.miniLogo=="string"&&Zd.default.mobile&&(i+=`<img src="${r.miniLogo}" class="miniLogo" alt="Logo for ${n}" />`),r.useCustomText)i+=a;else if(r.isInternalOptin())i+=n;else if(e===Di.nextActionPage){let o=r.signerCountry==="gb"?jx:Ux,p=(0,Kd.default)(o,{type:s,name:n});i+=p+r.addMoreInfoLink(),r.regularLogo&&(Zd.default.desktop||Zd.default.tablet)&&(i+=`<div class="regularLogo-container"><img src="${r.regularLogo}" class="regularLogo" alt="Logo for ${n}" /></div>`)}else if(e===Di.signPage){let o=n+" "+s;i+=o+r.addMoreInfoLink()}else if(r.integratedPetitionId){let o=r.signerCountry==="gb"?Ju:Xu,p=(0,Kd.default)(o,{tag:s,label:n});i+=p}else i+=a,r.regularLogo&&(i+=`<img src="${r.regularLogo}" class="regularLogo" alt="Logo for ${n}" />`);let c={optin:r,html:i,isInternalOptin:r.isInternalOptin()};t+=Vk(c,{allowProtoMethodsByDefault:!0,allowProtoPropertiesByDefault:!0});let d=$(t);return r.cache$html(d),d}function t2(r){let e={optin:r},t=$(Gk(e,{allowProtoPropertiesByDefault:!0,allowProtoMethodsByDefault:!0}));return r.cache$html(t),t}var Kd,r1,Zd,XP,i1=ie(()=>{go();Yk();Kk();Xk();e1();Kd=mt(ui()),r1=mt(Mg());go();Zd=mt(Ei()),XP=mt(zd());$d();l(gc,"getOnPetitionOptinHTML");l(t1,"attachOnPetitionEventHandlersForGDPR");l(JP,"attachOnPetitionEventHandlersForNonGDPR");l(QP,"getOnPetitionOptinHTMLForSoftGdpr");l(e2,"getOnPetitionOptinHTMLForNonGDPR");l(t2,"getOnPetitionOptinHTMLForGDPR")});function av(r,e,t,i){switch(e){case"==":return r==t?i.fn(this):i.inverse(this);case"===":return r===t?i.fn(this):i.inverse(this);case"!=":return r!=t?i.fn(this):i.inverse(this);case"!==":return r!==t?i.fn(this):i.inverse(this);case"<":return r<t?i.fn(this):i.inverse(this);case"<=":return r<=t?i.fn(this):i.inverse(this);case">":return r>t?i.fn(this):i.inverse(this);case">=":return r>=t?i.fn(this):i.inverse(this);case"&&":return r&&t?i.fn(this):i.inverse(this);case"||":return r||t?i.fn(this):i.inverse(this);default:return i.inverse(this)}}var n1=ie(()=>{l(av,"default")});function ls(r,...e){let t=e.pop();e.push("switchData");let i=[];return $.each(r,(s,n)=>
173{$.inArray(s,e)<0&&(typeof n!="string"&&typeof n!="number"&&(n=""),i.push(`${s}="${n}"`))}),i.join(" ")}var ov=ie(()=>{l(ls,"objectToHtmlAttributes")});function uv(r,e,t,i,s,n){let a="",c=r.key;delete r.key;let d=r.label?r.label:c;r.type=r.type||"text",r.id=e+"_"+c,r.name=r.name?r.name:e+"["+c+"]",r.state=r.state?r.state:r.value?"active":"empty",r.hint=r.placeholder,delete r.label,delete r.placeholder,r.placeholder=r.realPlaceholder;let o;r.skip?(o="skip",delete r.skip,delete r.required):r.required?r.required=o="required":o="optional";let p=[t+"__field",t+"__field__"+c,t+"__field__"+r.type,t+"__field--"+r.state,o].join(" ");a+=`<div id="${e}__field__${c}" class="${p}" data-key="${c}">`,i[c]&&i[c].label?(a+=`<label for="${r.id}" class="country-specific">`,$.each(i[c].label,(m,w)=>{a+=`<span class="country-${m}">${w}</span>`})):a+=`<label for="${r.id}">`,a+=`<span class="default">${d}</span>`,o==="optional"&&(a+=`<span class="optional">&nbsp; *${s("optional")}</span>`),a+="</label>",r.type==="password"&&(a+=`<div class="pwshow" data-for="${r.id}" id="${r.id}_show">${r.show}</div>`),a+=`<div class="${t}__field__input ${t}__field__input__${r.type}">`;let g,v;switch(r.type){case"radio":case"checkbox":let m=0;g=r.value||!1,v=r.values||[],delete r.value,delete r.values,delete r.state;let w=JSON.parse(JSON.stringify(r));$.each(v,(b,S)=>{S&&(w.id=r.id+"_"+m++,a+=`<div class="${t}__field__option">${Xd(r)}`,a+=`<input value="${b}"${g===b?" checked":""} ${ls(r)} />`,a+=`<label for="${w.id}">${S}</label>`,a+="</div>")});break;case"textarea":g=r.value||"",delete r.state,delete r.value,a+=`<textarea ${ls(r)}>${g}</textarea>${Xd(d)}`;break;case"select":g=r.value||!1,v=typeof r.values=="object"&&r.values.length?r.values:[r.values],delete r.type,delete r.value,delete r.values,delete r.state,a+=`<select ${ls(r)}>`,a+=`<option value="">${r.placeholder}</option>`,$.each(v,(b,S)=>{S&&$.each(S,(O,P)=>{typeof P=="object"?(a+=`<optgroup label="${O}">`,$.each(P,(N,B)=>{a+=`<option value="${N}"${g===N?" selected":""}>${B}</option>`}),a+="</optgroup>"):a+=`<option value="${O}"${g===O?" selected":""}>${P}</option>`})}),a+=`</select>${Xd(r)}`;break;case"email":r.autocomplete=r.autocomplete||"email",r.autocorrect=r.autocorrect||"off",r.autocapitalize=r.autocapitalize||"none",r.maxlength=r.maxlength||"50",a+=lv(r);break;case"tel":r.autocomplete=r.autocomplete||"tel",a+=lv(r);break;case"password":default:a+=lv(r);break}return a+="</div></div>",a}function lv(r){return(!r.placeholder||r.placeholder==="")&&delete r.placeholder,`<input ${ls(r,"hint")} />${Xd(r)}`}function Xd(r){return r.hint?`<div class="hint">${r.hint}</div>`:""}var s1=ie(()=>{ov();l(uv,"default");l(lv,"getBasicField");l(Xd,"getFieldHint")});function cv(r,e){if(typeof this.switchData=="object"&&!this.switchData.found&&r==this.switchData.value)return this.switchData.found=!0,e.fn(this)}var a1=ie(()=>{l(cv,"default")});function fv(r){if(typeof this.switchData=="object"&&!this.switchData.found)return r.fn(this)}var o1=ie(()=>{l(fv,"default")});function dv(r,e){return this.switchData={value:r,found:!1},e.fn(this)}var l1=ie(()=>{l(dv,"default")});var Do,u1,c1=ie(()=>
173{Do=mt(Br());n1();ov();s1();a1();o1();l1();Vr();zr();Do.registerHelper({ifCond:av,objectToHtmlAttributes:ls,care2FormField:uv,switchCase:cv,switchDefault:fv,switchCond:dv});Do.registerPartial({ButtonStates:Nt,signatures:Rt});u1=Do.template({1:function(r,e,t,i,s,n,a){var c,d=r.lookupProperty||function(o,p){if(Object.prototype.hasOwnProperty.call(o,p))return o[p]};return`
174`+((c=d(t,"switchCond").call(e??(r.nullContext||{}),e!=null?d(e,"type"):e,{name:"switchCond",hash:{},fn:r.program(2,s,0,n,a),inverse:r.noop,data:s,loc:{start:{line:7,column:8},end:{line:25,column:23}}}))!=null?c:"")+`
175`},2:function(r,e,t,i,s,n,a){var c,d=e??(r.nullContext||{}),o=r.lookupProperty||function(p,g){if(Object.prototype.hasOwnProperty.call(p,g))return p[g]};return"            "+((c=o(t,"switchCase").call(d,"html_break",{name:"switchCase",hash:{},fn:r.program(3,s,0,n,a),inverse:r.noop,data:s,loc:{start:{line:8,column:12},end:{line:8,column:65}}}))!=null?c:"")+`
176`+((c=o(t,"switchCase").call(d,"buttons",{name:"switchCase",hash:{},fn:r.program(5,s,0,n,a),inverse:r.noop,data:s,loc:{start:{line:9,column:12},end:{line:22,column:27}}}))!=null?c:"")+"            "+((c=o(t,"switchCase").call(d,"hidden",{name:"switchCase",hash:{},fn:r.program(12,s,0,n,a),inverse:r.noop,data:s,loc:{start:{line:23,column:12},end:{line:23,column:100}}}))!=null?c:"")+`
177            `+((c=o(t,"switchDefault").call(d,{name:"switchDefault",hash:{},fn:r.program(14,s,0,n,a),inverse:r.noop,data:s,loc:{start:{line:24,column:12},end:{line:24,column:123}}}))!=null?c:"")+`
178`},3:function(r,e,t,i,s){var n,a=r.lookupProperty||function(c,d){if(Object.prototype.hasOwnProperty.call(c,d))return c[d]};return(n=r.lambda(e!=null?a(e,"html"):e,e))!=null?n:""},5:function(r,e,t,i,s,n,a){var c,d=r.lambda,o=r.escapeExpression,p=r.lookupProperty||function(g,v){if(Object.prototype.hasOwnProperty.call(g,v))return g[v]};return'                <div id="'+o(d(a[1]!=null?p(a[1],"id"):a[1],e))+"__"+o(d(e!=null?p(e,"key"):e,e))+'" class="'+o(d(a[1]!=null?p(a[1],"className"):a[1],e))+"__buttons "+o(d(a[1]!=null?p(a[1],"className"):a[1],e))+`__buttons--loading">
179`+((c=r.invokePartial(p(i,"ButtonStates"),e,{name:"ButtonStates",fn:r.program(6,s,0,n,a),inverse:r.noop,data:s,helpers:t,partials:i,decorators:r.decorators}))!=null?c:"")+`                </div>
180`},6:function(r,e,t,i,s){var n,a=r.lookupProperty||function(c,d){if(Object.prototype.hasOwnProperty.call(c,d))return c[d]};return(n=a(t,"each").call(e??(r.nullContext||{}),e!=null?a(e,"buttons"):e,{name:"each",hash:{},fn:r.program(7,s,0),inverse:r.noop,data:s,loc:{start:{line:12,column:24},end:{line:19,column:33}}}))!=null?n:""},7:function(r,e,t,i,s){var n,a=e??(r.nullContext||{}),c=r.lookupProperty||function(d,o){if(Object.prototype.hasOwnProperty.call(d,o))return d[o]};return((n=c(t,"ifCond").call(a,e,"!=","skip",{name:"ifCond",hash:{},fn:r.program(8,s,0),inverse:r.noop,data:s,loc:{start:{line:13,column:28},end:{line:15,column:39}}}))!=null?n:"")+((n=c(t,"ifCond").call(a,e,"==","skip",{name:"ifCond",hash:{},fn:r.program(10,s,0),inverse:r.noop,data:s,loc:{start:{line:16,column:28},end:{line:18,column:39}}}))!=null?n:"")},8:function(r,e,t,i,s){var n=r.lambda,a=r.escapeExpression,c=r.lookupProperty||function(d,o){if(Object.prototype.hasOwnProperty.call(d,o))return d[o]};return'                                <button type="'+a(n(e,e))+'">'+a(n(s&&c(s,"key"),e))+`</button>
181`},10:function(r,e,t,i,s){var n=r.lookupProperty||function(a,c){if(Object.prototype.hasOwnProperty.call(a,c))return a[c]};return'                                <div class="next">'+r.escapeExpression(r.lambda(s&&n(s,"key"),e))+`</div>
182`},12:function(r,e,t,i,s){var n,a=r.lookupProperty||function(c,d){if(Object.prototype.hasOwnProperty.call(c,d))return c[d]};return"<input "+((n=a(t,"objectToHtmlAttributes").call(e??(r.nullContext||{}),e,"key",{name:"objectToHtmlAttributes",hash:{},data:s,loc:{start:{line:23,column:43},end:{line:23,column:82}}}))!=null?n:"")+" />"},14:function(r,e,t,i,s,n,a){var c,d=r.lookupProperty||function(o,p){if(Object.prototype.hasOwnProperty.call(o,p))return o[p]};
182return(c=d(t,"care2FormField").call(e??(r.nullContext||{}),e,a[1]!=null?d(a[1],"id"):a[1],a[1]!=null?d(a[1],"className"):a[1],a[1]!=null?d(a[1],"countries"):a[1],a[1]!=null?d(a[1],"getTranslation"):a[1],{name:"care2FormField",hash:{},data:s,loc:{start:{line:24,column:30},end:{line:24,column:105}}}))!=null?c:""},compiler:[8,">= 4.3.0"],main:function(r,e,t,i,s,n,a){var c,d=r.lambda,o=r.escapeExpression,p=e??(r.nullContext||{}),g=r.lookupProperty||function(v,m){if(Object.prototype.hasOwnProperty.call(v,m))return v[m]};return'<form id="'+o(d(e!=null?g(e,"id"):e,e))+'__form" class="'+o(d(e!=null?g(e,"className"):e,e))+'" '+((c=g(t,"objectToHtmlAttributes").call(p,e!=null?g(e,"attr"):e,{name:"objectToHtmlAttributes",hash:{},data:s,loc:{start:{line:1,column:46},end:{line:1,column:79}}}))!=null?c:"")+`>
183
184    <div class="`+o(d(e!=null?g(e,"className"):e,e))+`__error_message"></div>
185
186`+((c=g(t,"each").call(p,e!=null?g(e,"items"):e,{name:"each",hash:{},fn:r.program(1,s,0,n,a),inverse:r.noop,data:s,loc:{start:{line:5,column:4},end:{line:27,column:13}}}))!=null?c:"")+`
187</form>
188`},usePartial:!0,useData:!0,useDepths:!0})});var d1=Pe((m8,f1)=>{var i2=function(){var r=l(function(d,o){this.items=d,this.settings=o||{diacritics:!0}},"Sifter");r.prototype.tokenize=function(d){if(d=i(String(d||"").toLowerCase()),!d||!d.length)return[];var o,p,g,v,m=[],w=d.split(/ +/);for(o=0,p=w.length;o<p;o++){if(g=s(w[o]),this.settings.diacritics)for(v in a)a.hasOwnProperty(v)&&(g=g.replace(new RegExp(v,"g"),a[v]));m.push({string:w[o],regex:new RegExp(g,"i")})}return m},r.prototype.iterator=function(d,o){var p;n(d)?p=Array.prototype.forEach||function(g){for(var v=0,m=this.length;v<m;v++)g(this[v],v,this)}:p=l(function(g){for(var v in this)this.hasOwnProperty(v)&&g(this[v],v,this)},"iterator"),p.apply(d,[o])},r.prototype.getScoreFunction=function(d,o){var p,g,v,m;p=this,d=p.prepareSearch(d,o),v=d.tokens,g=d.options.fields,m=v.length;var w=l(function(S,O){var P,N;return!S||(S=String(S||""),N=S.search(O.regex),N===-1)?0:(P=O.string.length/S.length,N===0&&(P+=.5),P)},"scoreValue"),b=function(){var S=g.length;return S?S===1?function(O,P){return w(P[g[0]],O)}:function(O,P){for(var N=0,B=0;N<S;N++)B+=w(P[g[N]],O);return B/S}:function(){return 0}}();return m?m===1?function(S){return b(v[0],S)}:d.options.conjunction==="and"?function(S){for(var O,P=0,N=0;P<m;P++){if(O=b(v[P],S),O<=0)return 0;N+=O}return N/m}:function(S){for(var O=0,P=0;O<m;O++)P+=b(v[O],S);return P/m}:function(){return 0}},r.prototype.getSortFunction=function(d,o){var p,g,v,m,w,b,S,O,P,N,B;if(v=this,d=v.prepareSearch(d,o),B=!d.query&&o.sort_empty||o.sort,P=l(function(q,h){return q==="$score"?h.score:v.items[h.id][q]},"get_field"),w=[],B)for(p=0,g=B.length;p<g;p++)(d.query||B[p].field!=="$score")&&w.push(B[p]);if(d.query){for(N=!0,p=0,g=w.length;p<g;p++)if(w[p].field==="$score"){N=!1;break}N&&w.unshift({field:"$score",direction:"desc"})}else for(p=0,g=w.length;p<g;p++)if(w[p].field==="$score"){w.splice(p,1);break}for(O=[],p=0,g=w.length;p<g;p++)O.push(w[p].direction==="desc"?-1:1);return b=w.length,b?b===1?(m=w[0].field,S=O[0],function(q,h){return S*e(P(m,q),P(m,h))}):function(q,h){var M,R,G,pe,ce;for(M=0;M<b;M++)if(ce=w[M].field,R=O[M]*e(P(ce,q),P(ce,h)),R)return R;return 0}:null},r.prototype.prepareSearch=function(d,o){if(typeof d=="object")return d;o=t({},o);var p=o.fields,g=o.sort,v=o.sort_empty;return p&&!n(p)&&(o.fields=[p]),g&&!n(g)&&(o.sort=[g]),v&&!n(v)&&(o.sort_empty=[v]),{options:o,query:String(d||"").toLowerCase(),tokens:this.tokenize(d),total:0,items:[]}},r.prototype.search=function(d,o){var p=this,g,v,m,w,b,S;return m=this.prepareSearch(d,o),o=m.options,d=m.query,S=o.score||p.getScoreFunction(m),d.length?p.iterator(p.items,function(O,P){v=S(O),(o.filter===!1||v>0)&&m.items.push({score:v,id:P})}):p.iterator(p.items,function(O,P){m.items.push({score:1,id:P})}),b=p.getSortFunction(m,o),b&&m.items.sort(b),m.total=m.items.length,typeof o.limit=="number"&&(m.items=m.items.slice(0,o.limit)),m};var e=l(function(d,o){return typeof d=="number"&&typeof o=="number"?d>o?1:d<o?-1:0:(d=c(String(d||"")),o=c(String(o||"")),d>o?1:o>d?-1:0)},"cmp"),t=l(function(d,o){var p,g,v,m;for(p=1,g=arguments.length;p<g;p++)if(m=arguments[p],!!m)for(v in m)m.hasOwnProperty(v)&&(d[v]=m[v]);return d},"extend"),i=l(function(d){return(d+"").replace(/^\s+|\s+$|/g,"")},"trim"),s=l(function(d){return(d+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},"escape_regex"),n=Array.isArray||$&&$.isArray||function(d){return Object.prototype.toString.call(d)==="[object Array]"},a={a:"[a\xC0\xC1\xC2\xC3\xC4\xC5\xE0\xE1\xE2\xE3\xE4\xE5\u0100\u0101\u0105\u0104]",c:"[c\xC7\xE7\u0107\u0106\u010D\u010C]",d:"[d\u0111\u0110\u010F\u010E]",e:"[e\xC8\xC9\xCA\xCB\xE8\xE9\xEA\xEB\u011B\u011A\u0112\u0113\u0119\u0118]",i:"[i\xCC\xCD\xCE\xCF\xEC\xED\xEE\xEF\u012A\u012B]",l:"[l\u0142\u0141]",n:"[n\xD1\xF1\u0148\u0147\u0144\u0143]",o:"[o\xD2\xD3\xD4\xD5\xD5\xD6\xD8\xF2\xF3\xF4\xF5\xF6\xF8\u014C\u014D]",r:"[r\u0159\u0158]",s:"[s\u0160\u0161\u015B\u015A]",t:"[t\u016
1885\u0164]",u:"[u\xD9\xDA\xDB\xDC\xF9\xFA\xFB\xFC\u016F\u016E\u016A\u016B]",y:"[y\u0178\xFF\xFD\xDD]",z:"[z\u017D\u017E\u017C\u017B\u017A\u0179]"},c=function(){var d,o,p,g,v="",m={};for(p in a)if(a.hasOwnProperty(p))for(g=a[p].substring(2,a[p].length-1),v+=g,d=0,o=g.length;d<o;d++)m[g.charAt(d)]=p;var w=new RegExp("["+v+"]","g");return function(b){return b.replace(w,function(S){return m[S]}).toLowerCase()}}();return r}(),n2=function(){var r={};r.mixin=function(t){t.plugins={},t.prototype.initializePlugins=function(i){var s,n,a,c=this,d=[];if(c.plugins={names:[],settings:{},requested:{},loaded:{}},e.isArray(i))for(s=0,n=i.length;s<n;s++)typeof i[s]=="string"?d.push(i[s]):(c.plugins.settings[i[s].name]=i[s].options,d.push(i[s].name));else if(i)for(a in i)i.hasOwnProperty(a)&&(c.plugins.settings[a]=i[a],d.push(a));for(;d.length;)c.require(d.shift())},t.prototype.loadPlugin=function(i){var s=this,n=s.plugins,a=t.plugins[i];if(!t.plugins.hasOwnProperty(i))throw new Error('Unable to find "'+i+'" plugin');n.requested[i]=!0,n.loaded[i]=a.fn.apply(s,[s.plugins.settings[i]||{}]),n.names.push(i)},t.prototype.require=function(i){var s=this,n=s.plugins;if(!s.plugins.loaded.hasOwnProperty(i)){if(n.requested[i])throw new Error('Plugin has circular dependency ("'+i+'")');s.loadPlugin(i)}return n.loaded[i]},t.define=function(i,s){t.plugins[i]={name:i,fn:s}}};var e={isArray:Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"}};return r}(),s2=function(r){"use strict";var e=l(function(C,F){if(!(typeof F=="string"&&!F.length)){var j=typeof F=="string"?new RegExp(F,"i"):F,ee=l(function(J){var Q=0;if(J.nodeType===3){var oe=J.data.search(j);if(oe>=0&&J.data.length>0){var ve=J.data.match(j),U=document.createElement("span");U.className="highlight";var D=J.splitText(oe),W=D.splitText(ve[0].length),ue=D.cloneNode(!0);U.appendChild(ue),D.parentNode.replaceChild(U,D),Q=1}}else if(J.nodeType===1&&J.childNodes&&!/(script|style)/i.test(J.tagName))for(var _e=0;_e<J.childNodes.length;++_e)_e+=ee(J.childNodes[_e]);return Q},"highlight");return C.each(function(){ee(this)})}},"highlight"),t=l(function(){},"MicroEvent");t.prototype={on:function(C,F){this._events=this._events||{},this._events[C]=this._events[C]||[],this._events[C].push(F)},off:function(C,F){var j=arguments.length;if(j===0)return delete this._events;if(j===1)return delete this._events[C];this._events=this._events||{},C in this._events&&this._events[C].splice(this._events[C].indexOf(F),1)},trigger:function(C){if(this._events=this._events||{},C in this._events)for(var F=0;F<this._events[C].length;F++)this._events[C][F].apply(this,Array.prototype.slice.call(arguments,1))}},t.mixin=function(C){for(var F=["on","off","trigger"],j=0;j<F.length;j++)C.prototype[F[j]]=t.prototype[F[j]]};var i=/Mac/.test(navigator.userAgent),s=65,n=188,a=13,c=27,d=37,o=38,p=80,g=39,v=40,m=78,w=8,b=46,S=16,O=i?91:17,P=i?18:17,N=9,B=1,q=2,h=!/android/i.test(window.navigator.userAgent)&&!!document.createElement("form").validity,M=l(function(C){return typeof C<"u"},"isset"),R=l(function(C){return typeof C>"u"||C===null?null:typeof C=="boolean"?C?"1":"0":C+""},"hash_key"),G=l(function(C){return(C+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},"escape_html"),pe=l(function(C){return(C+"").replace(/\$/g,"$$$$")},"escape_replace"),ce={};ce.before=function(C,F,j){var ee=C[F];C[F]=function(){return j.apply(C,arguments),ee.apply(C,arguments)}},ce.after=function(C,F,j){var ee=C[F];C[F]=function(){var J=ee.apply(C,arguments);return j.apply(C,arguments),J}};var be=l(function(C){var F=!1;return function(){F||(F=!0,C.apply(this,arguments))}},"once"),Te=l(function(C,F){var j;return function(){var ee=this,J=arguments;window.clearTimeout(j),j=window.setTimeout(function(){C.apply(ee,J)},F)}},"debounce"),ze=l(function(C,F,j){var ee,J=C.trigger,Q={};C.trigger=function(){var oe=arguments[0];if(F.indexOf(oe)!==-1)Q[oe]=arguments;else return J.apply(C,arguments)},j.apply(C,[]),C.trigger=J;for(ee in Q)Q.hasOwnProperty(ee)&&J.apply(C,Q[ee])},"debounce_events"),Ke=l(function(C,F,j,ee){C.on(F,j,function(J){for(var Q=J.target;Q&&Q.parentNode!==C[0];)Q=Q.parentNode;return J.currentTarget=Q,ee.apply(this,[J])})},"watchChildEvent"),tt=l(function(C){var F={};if("selectionStart"in C)F.start=C.selectionStart,F.length=C.selectionEnd-F.start;else if(document.selection){C.focus();var j=document.selection.createRange(),ee=document.selection.createRange().text.length;j.moveStart("character",-C.value.length),F.start=j.text.length-ee,F.length=ee}return F},"getSelection"),bt=l(function(C,F,j){var ee,J,Q={};if(j)for(ee=0,J=j.length;ee<J;ee++)Q[j[ee]]=C.css(j[ee]);else Q=C.css();F.css(Q)},"transferStyles"),je=l(function(C,F){if(!C)return 0;var j=r("<test>").css({position:"absolute",top:-99999,left:-99999,width:"auto",padding:0,whiteSpace:"pre"}).text(C).appendTo("body");bt(F,j,["letterSpacing","fontSize","fontFamily","fontWeight","textTransform"]);var ee=j.width();return j.remove(),ee},"measureString"),Ze=l(function(C){var F=null,j=l(function(ee,J){var Q,oe,ve,U,D,W,ue,_e;ee=ee||window.event||{},J=J||{},!(ee.metaKey||ee.altKey)&&(!J.force&&C.data("grow")===!1||(Q=C.val(),ee.type&&ee.type.toLowerCase()==="keydown"&&(oe=ee.keyCode,ve=oe>=97&&oe<=122||oe>=65&&oe<=90||oe>=48&&oe<=57||oe===32,oe===b||oe===w?(_e=tt(C[0]),_e.length?Q=Q.substring(0,_e.start)+Q.substring(_e.start+_e.length):oe===w&&_e.start?Q=Q.substring(0,_e.start-1)+Q.substring(_e.start+1):oe===b&&typeof _e.start<"u"&&(Q=Q.substring(0,_e.start)+Q.substring(_e.start+1))):ve&&(W=ee.shiftKey,ue=String.fromCharCode(ee.keyCode),W?ue=ue.toUpperCase():ue=ue.toLowerCase(),Q+=ue)),U=C.attr("placeholder"),!Q&&U&&(Q=U),D=je(Q,C)+4,D!==F&&(F=D,C.width(D),C.triggerHandler("resize"))))},"update");C.on("keydown keyup update blur",j),j()},"autoGrow"),ut=l(function(C){var F=document.createElement("div");return F.appendChild(C.cloneNode(!0)),F.innerHTML},"domToString"),qe=l(function(C,F){var j,ee,J,Q,oe,ve=this;oe=C[0],oe.selectize=ve;var U=window.getComputedStyle&&window.getComputedStyle(oe,null);if(Q=U?U.getPropertyValue("direction"):oe.currentStyle&&oe.currentStyle.direction,Q=Q||C.parents("[dir]:first").attr("dir")||"",r.extend(ve,{order:0,settings:F,$input:C,tabIndex:C.attr("tabindex")||"",tagType:oe.tagName.toLowerCase()==="select"?B:q,rtl:/rtl/i.test(Q),eventNS:".selectize"+ ++qe.count,highlightedValue:null,isOpen:!1,isDisabled:!1,isRequired:C.is("[required]"),isInvalid:!1,isLocked:!1,isFocused:!1,isInputHidden:!1,isSetup:!1,isShiftDown:!1,isCmdDown:!1,isCtrlDown:!1,ignoreFocus:!1,ignoreBlur:!1,ignoreHover:!1,hasOptions:!1,currentResults:null,lastValue:"",caretPos:0,loading:0,loadedSearches:{},$activeOption:null,$activeItems:[],optgroups:{},options:{},userOptions:{},items:[],renderCache:{},onSearchChange:F.loadThrottle===null?ve.onSearchChange:Te(ve.onSearchChange,F.loadThrottle)}),ve.sifter=new i2(this.options,{diacritics:F.diacritics}),ve.settings.options){for(ee=0,J=ve.settings.options.length;ee<J;ee++)ve.registerOption(ve.settings.options[ee]);delete ve.settings.options}if(ve.settings.optgroups){for(ee=0,J=ve.settings.optgroups.length;ee<J;ee++)ve.registerOptionGroup(ve.settings.optgroups[ee]);delete ve.settings.optgroups}ve.settings.mode=ve.settings.mode||(ve.settings.maxItems===1?"single":"multi"),t
188ypeof ve.settings.hideSelected!="boolean"&&(ve.settings.hideSelected=ve.settings.mode==="multi"),ve.initializePlugins(ve.settings.plugins),ve.setupCallbacks(),ve.setupTemplates(),ve.setup()},"Selectize");return t.mixin(qe),n2.mixin(qe),r.extend(qe.prototype,{setup:function(){var C=this,F=C.settings,j=C.eventNS,ee=r(window),J=r(document),Q=C.$input,oe,ve,U,D,W,ue,_e,he,Ce,Ae,re;if(_e=C.settings.mode,Ae=Q.attr("class")||"",oe=r("<div>").addClass(F.wrapperClass).addClass(Ae).addClass(_e),ve=r("<div>").addClass(F.inputClass).addClass("items").appendTo(oe),U=r('<input type="text" autocomplete="off" />').appendTo(ve).attr("tabindex",Q.is(":disabled")?"-1":C.tabIndex),ue=r(F.dropdownParent||oe),D=r("<div>").addClass(F.dropdownClass).addClass(_e).hide().appendTo(ue),W=r("<div>").addClass(F.dropdownContentClass).appendTo(D),C.settings.copyClassesToDropdown&&D.addClass(Ae),oe.css({width:Q[0].style.width}),C.plugins.names.length&&(re="plugin-"+C.plugins.names.join(" plugin-"),oe.addClass(re),D.addClass(re)),(F.maxItems===null||F.maxItems>1)&&C.tagType===B&&Q.attr("multiple","multiple"),C.settings.placeholder&&U.attr("placeholder",F.placeholder),!C.settings.splitOn&&C.settings.delimiter){var se=C.settings.delimiter.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");C.settings.splitOn=new RegExp("\\s*"+se+"+\\s*")}Q.attr("autocorrect")&&U.attr("autocorrect",Q.attr("autocorrect")),Q.attr("autocapitalize")&&U.attr("autocapitalize",Q.attr("autocapitalize")),C.$wrapper=oe,C.$control=ve,C.$control_input=U,C.$dropdown=D,C.$dropdown_content=W,D.on("mouseenter","[data-selectable]",function(){return C.onOptionHover.apply(C,arguments)}),D.on("mousedown click","[data-selectable]",function(){return C.onOptionSelect.apply(C,arguments)}),Ke(ve,"mousedown","*:not(input)",function(){return C.onItemSelect.apply(C,arguments)}),Ze(U),ve.on({mousedown:function(){return C.onMouseDown.apply(C,arguments)},click:function(){return C.onClick.apply(C,arguments)}}),U.on({mousedown:function(Se){Se.stopPropagation()},keydown:function(){return C.onKeyDown.apply(C,arguments)},keyup:function(){return C.onKeyUp.apply(C,arguments)},keypress:function(){return C.onKeyPress.apply(C,arguments)},resize:function(){C.positionDropdown.apply(C,[])},blur:function(){return C.onBlur.apply(C,arguments)},focus:function(){return C.ignoreBlur=!1,C.onFocus.apply(C,arguments)},paste:function(){return C.onPaste.apply(C,arguments)}}),J.on("keydown"+j,function(Se){C.isCmdDown=Se[i?"metaKey":"ctrlKey"],C.isCtrlDown=Se[i?"altKey":"ctrlKey"],C.isShiftDown=Se.shiftKey}),J.on("keyup"+j,function(Se){Se.keyCode===P&&(C.isCtrlDown=!1),Se.keyCode===S&&(C.isShiftDown=!1),Se.keyCode===O&&(C.isCmdDown=!1)}),J.on("mousedown"+j,function(Se){if(C.isFocused){if(Se.target===C.$dropdown[0]||Se.target.parentNode===C.$dropdown[0])return!1;!C.$control.has(Se.target).length&&Se.target!==C.$control[0]&&C.blur(Se.target)}}),ee.on(["scroll"+j,"resize"+j].join(" "),function(){C.isOpen&&C.positionDropdown.apply(C,arguments)}),ee.on("mousemove"+j,function(){C.ignoreHover=!1}),this.revertSettings={$children:Q.children().detach(),tabindex:Q.attr("tabindex")},Q.attr("tabindex",-1).hide().after(C.$wrapper),r.isArray(F.items)&&(C.setValue(F.items),delete F.items),h&&Q.on("invalid"+j,function(Se){Se.preventDefault(),C.isInvalid=!0,C.refreshState()}),C.updateOriginalInput(),C.refreshItems(),C.refreshState(),C.updatePlaceholder(),C.isSetup=!0,Q.is(":disabled")&&C.disable(),C.on("change",this.onChange),Q.data("selectize",C),Q.addClass("selectized"),C.trigger("initialize"),F.preload===!0&&C.onSearchChange("")},setupTemplates:function(){var C=this,F=C.settings.labelField,j=C.settings.optgroupLabelField,ee={optgroup:function(J){return'<div class="optgroup">'+J.html+"</div>"},optgroup_header:function(J,Q){return'<div class="optgroup-header">'+Q(J[j])+"</div>"},option:function(J,Q){return'<div class="option">'+Q(J[F])+"</div>"},item:function(J,Q){return'<div class="item">'+Q(J[F])+"</div>"},option_create:function(J,Q){return'<div class="create">Add <strong>'+Q(J.input)+"</strong>&hellip;</div>"}};C.settings.render=r.extend({},ee,C.settings.render)},setupCallbacks:function(){var C,F,j={initialize:"onInitialize",change:"onChange",item_add:"onItemAdd",item_remove:"onItemRemove",clear:"onClear",option_add:"onOptionAdd",option_remove:"onOptionRemove",option_clear:"onOptionClear",optgroup_add:"onOptionGroupAdd",optgroup_remove:"onOptionGroupRemove",optgroup_clear:"onOptionGroupClear",dropdown_open:"onDropdownOpen",dropdown_close:"onDropdownClose",type:"onType",load:"onLoad",focus:"onFocus",blur:"onBlur"};for(C in j)j.hasOwnProperty(C)&&(F=this.settings[j[C]],F&&this.on(C,F))},onClick:function(C){var F=this;F.isFocused||(F.focus(),C.preventDefault())},onMouseDown:function(C){var F=this,j=C.isDefaultPrevented(),ee=r(C.target);if(F.isFocused){if(C.target!==F.$control_input[0])return F.settings.mode==="single"?F.isOpen?F.close():F.open():j||F.setActiveItem(null),!1}else j||window.setTimeout(function(){F.focus()},0)},onChange:function(){this.$input.trigger("change")},onPaste:function(C){var F=this;F.isFull()||F.isInputHidden||F.isLocked?C.preventDefault():F.settings.splitOn&&setTimeout(function(){for(var j=r.trim(F.$control_input.val()||"").split(F.settings.splitOn),ee=0,J=j.length;ee<J;ee++)F.createItem(j[ee])},0)},onKeyPress:function(C){if(this.isLocked)return C&&C.preventDefault();var F=String.fromCharCode(C.keyCode||C.which);if(this.settings.create&&this.settings.mode==="multi"&&F===this.settings.delimiter)return this.createItem(),C.preventDefault(),!1},onKeyDown:function(C){var F=C.target===this.$control_input[0],j=this;if(j.isLocked){C.keyCode!==N&&C.preventDefault();return}switch(C.keyCode){case s:if(j.isCmdDown){j.selectAll();return}break;case c:j.isOpen&&(C.preventDefault(),C.stopPropagation(),j.close());return;case m:if(!C.ctrlKey||C.altKey)break;case v:if(!j.isOpen&&j.hasOptions)j.open();else if(j.$activeOption){j.ignoreHover=!0;var ee=j.getAdjacentOption(j.$activeOption,1);ee.length&&j.setActiveOption(ee,!0,!0)}C.preventDefault();return;case p:if(!C.ctrlKey||C.altKey)break;case o:if(j.$activeOption){j.ignoreHover=!0;var J=j.getAdjacentOption(j.$activeOption,-1);J.length&&j.setActiveOption(J,!0,!0)}C.preventDefault();return;case a:j.isOpen&&j.$activeOption&&(j.onOptionSelect({currentTarget:j.$activeOption}),C.preventDefault());return;case d:j.advanceSelection(-1,C);return;case g:j.advanceSelection(1,C);return;case N:j.settings.selectOnTab&&j.isOpen&&j.$activeOption&&(j.onOptionSelect({currentTarget:j.$activeOption}),j.isFull()||C.preventDefault()),j.settings.create&&j.createItem()&&C.preventDefault();return;case w:case b:j.deleteSelection(C);return}if((j.isFull()||j.isInputHidden)&&!(i?C.metaKey:C.ctrlKey)){C.preventDefault();return}},onKeyUp:function(C){var F=this;if(F.isLocked)return C&&C.preventDefault();var j=F.$control_input.val()||"";F.lastValue!==j&&(F.lastValue=j,F.onSearchChange(j),F.refreshOptions(),F.trigger("type",j))},onSearchChange:function(C){var F=this,j=F.settings.load;j&&(F.loadedSearches.hasOwnProperty(C)||(F.loadedSearches[C]=!0,F.load(function(ee){j.apply(F,[C,ee])})))},onFocus:function(C){var F=this,j=F.isFocused;if(F.isDisabled)return F.blur(),C&&C.preventDefault(),!1;F.ignoreFocus||(F.isFocused=!0,F.settings.preload==="focus"&&F.onSearchChange(""),j||F.trigger("focus"),F.$activeItems.length||(F.showInput(),F.setActiveItem(null),F.refreshOptions(!!F.settings.openOnFocus)),F.refreshState())},onBlur:function(C,F){var j=this;if(j.isFocused&&(j.isFocused=!1,!j.ignoreFocus)){if(!j.ignoreBlur&&document.activeElement===j.$dropdown_content[0]){j.ignoreBlur=!0,j.onFocus(C);return}var ee=l(function(){j.close(),j.setTextboxValue(""),j.setActiveItem(null),j.setActiveOption(null),j.setCaret(j.items.length),j.refreshState(),F&&F.focus(),j.ignoreFocus=!1,j.trigger("blur")},"deactivate");j.ignoreFocus=!0,j.settings.create&&j.settings.createOnBlur?j.createItem(null,!1,ee):ee()}},onOptionHover:function(C){this.ignoreHover||this.setActiveOption(C.currentTarget,!1)},onOptionSelect:function(C){var F,j,ee,J=this;C.preventDefault&&(C.preventDefault(),C.stopPropagation()),j=r(C.currentTarget),j.hasClass("create")?J.createItem(null,function(){J.settings.closeAfterSelect&&J.close()}
188):(F=j.attr("data-value"),typeof F<"u"&&(J.lastQuery=null,J.setTextboxValue(""),J.addItem(F),J.settings.closeAfterSelect?J.close():!J.settings.hideSelected&&C.type&&/mouse/.test(C.type)&&J.setActiveOption(J.getOption(F))))},onItemSelect:function(C){var F=this;F.isLocked||F.settings.mode==="multi"&&(C.preventDefault(),F.setActiveItem(C.currentTarget,C))},load:function(C){var F=this,j=F.$wrapper.addClass(F.settings.loadingClass);F.loading++,C.apply(F,[function(ee){F.loading=Math.max(F.loading-1,0),ee&&ee.length&&(F.addOption(ee),F.refreshOptions(F.isFocused&&!F.isInputHidden)),F.loading||j.removeClass(F.settings.loadingClass),F.trigger("load",ee)}])},setTextboxValue:function(C){var F=this.$control_input,j=F.val()!==C;j&&(F.val(C).triggerHandler("update"),this.lastValue=C)},getValue:function(){return this.tagType===B&&this.$input.attr("multiple")?this.items:this.items.join(this.settings.delimiter)},setValue:function(C,F){var j=F?[]:["change"];ze(this,j,function(){this.clear(F),this.addItems(C,F)})},setActiveItem:function(C,F){var j=this,ee,J,Q,oe,ve,U,D,W;if(j.settings.mode!=="single"){if(C=r(C),!C.length){r(j.$activeItems).removeClass("active"),j.$activeItems=[],j.isFocused&&j.showInput();return}if(ee=F&&F.type.toLowerCase(),ee==="mousedown"&&j.isShiftDown&&j.$activeItems.length){for(W=j.$control.children(".active:last"),oe=Array.prototype.indexOf.apply(j.$control[0].childNodes,[W[0]]),ve=Array.prototype.indexOf.apply(j.$control[0].childNodes,[C[0]]),oe>ve&&(D=oe,oe=ve,ve=D),J=oe;J<=ve;J++)U=j.$control[0].childNodes[J],j.$activeItems.indexOf(U)===-1&&(r(U).addClass("active"),j.$activeItems.push(U));F.preventDefault()}else ee==="mousedown"&&j.isCtrlDown||ee==="keydown"&&this.isShiftDown?C.hasClass("active")?(Q=j.$activeItems.indexOf(C[0]),j.$activeItems.splice(Q,1),C.removeClass("active")):j.$activeItems.push(C.addClass("active")[0]):(r(j.$activeItems).removeClass("active"),j.$activeItems=[C.addClass("active")[0]]);j.hideInput(),this.isFocused||j.focus()}},setActiveOption:function(C,F,j){var ee,J,Q,oe,ve,U=this;U.$activeOption&&U.$activeOption.removeClass("active"),U.$activeOption=null,C=r(C),C.length&&(U.$activeOption=C.addClass("active"),(F||!M(F))&&(ee=U.$dropdown_content.height(),J=U.$activeOption.outerHeight(!0),F=U.$dropdown_content.scrollTop()||0,Q=U.$activeOption.offset().top-U.$dropdown_content.offset().top+F,oe=Q,ve=Q-ee+J,Q+J>ee+F?U.$dropdown_content.stop().animate({scrollTop:ve},j?U.settings.scrollDuration:0):Q<F&&U.$dropdown_content.stop().animate({scrollTop:oe},j?U.settings.scrollDuration:0)))},selectAll:function(){var C=this;C.settings.mode!=="single"&&(C.$activeItems=Array.prototype.slice.apply(C.$control.children(":not(input)").addClass("active")),C.$activeItems.length&&(C.hideInput(),C.close()),C.focus())},hideInput:function(){var C=this;C.setTextboxValue(""),C.$control_input.css({opacity:0,position:"absolute",left:C.rtl?1e4:-1e4}),C.isInputHidden=!0},showInput:function(){this.$control_input.css({opacity:1,position:"relative",left:0}),this.isInputHidden=!1},focus:function(){var C=this;C.isDisabled||(C.ignoreFocus=!0,C.$control_input[0].focus(),window.setTimeout(function(){C.ignoreFocus=!1,C.onFocus()},0))},blur:function(C){this.$control_input[0].blur(),this.onBlur(null,C)},getScoreFunction:function(C){return this.sifter.getScoreFunction(C,this.getSearchOptions())},getSearchOptions:function(){var C=this.settings,F=C.sortField;return typeof F=="string"&&(F=[{field:F}]),{fields:C.searchField,conjunction:C.searchConjunction,sort:F}},search:function(C){var F,j,ee,J,Q,oe=this,ve=oe.settings,U=this.getSearchOptions();if(ve.score&&(Q=oe.settings.score.apply(this,[C]),typeof Q!="function"))throw new Error('Selectize "score" setting must be a function that returns a function');if(C!==oe.lastQuery?(oe.lastQuery=C,J=oe.sifter.search(C,r.extend(U,{score:Q})),oe.currentResults=J):J=r.extend(!0,{},oe.currentResults),ve.hideSelected)for(F=J.items.length-1;F>=0;F--)oe.items.indexOf(R(J.items[F].id))!==-1&&J.items.splice(F,1);return J},refreshOptions:function(C){var F,j,ee,J,Q,oe,ve,U,D,W,ue,_e,he,Ce,Ae,re;typeof C>"u"&&(C=!0);var se=this,Se=r.trim(se.$control_input.val()),$e=se.search(Se),Fe=se.$dropdown_content,Ct=se.$activeOption&&R(se.$activeOption.attr("data-value"));for(J=$e.items.length,typeof se.settings.maxOptions=="number"&&(J=Math.min(J,se.settings.maxOptions)),Q={},oe=[],F=0;F<J;F++)for(ve=se.options[$e.items[F].id],U=se.render("option",ve),D=ve[se.settings.optgroupField]||"",W=r.isArray(D)?D:[D],j=0,ee=W&&W.length;j<ee;
188j++)D=W[j],se.optgroups.hasOwnProperty(D)||(D=""),Q.hasOwnProperty(D)||(Q[D]=document.createDocumentFragment(),oe.push(D)),Q[D].appendChild(U);for(this.settings.lockOptgroupOrder&&oe.sort(function(Oe,at){var It=se.optgroups[Oe].$order||0,qt=se.optgroups[at].$order||0;return It-qt}),ue=document.createDocumentFragment(),F=0,J=oe.length;F<J;F++)D=oe[F],se.optgroups.hasOwnProperty(D)&&Q[D].childNodes.length?(_e=document.createDocumentFragment(),_e.appendChild(se.render("optgroup_header",se.optgroups[D])),_e.appendChild(Q[D]),ue.appendChild(se.render("optgroup",r.extend({},se.optgroups[D],{html:ut(_e),dom:_e})))):ue.appendChild(Q[D]);if(Fe.html(ue),se.settings.highlight&&$e.query.length&&$e.tokens.length)for(F=0,J=$e.tokens.length;F<J;F++)e(Fe,$e.tokens[F].regex);if(!se.settings.hideSelected)for(F=0,J=se.items.length;F<J;F++)se.getOption(se.items[F]).addClass("selected");he=se.canCreate(Se),he&&(Fe.prepend(se.render("option_create",{input:Se})),re=r(Fe[0].childNodes[0])),se.hasOptions=$e.items.length>0||he,se.hasOptions?($e.items.length>0?(Ae=Ct&&se.getOption(Ct),Ae&&Ae.length?Ce=Ae:se.settings.mode==="single"&&se.items.length&&(Ce=se.getOption(se.items[0])),(!Ce||!Ce.length)&&(re&&!se.settings.addPrecedence?Ce=se.getAdjacentOption(re,1):Ce=Fe.find("[data-selectable]:first"))):Ce=re,se.setActiveOption(Ce),C&&!se.isOpen&&se.open()):(se.setActiveOption(null),C&&se.isOpen&&se.close())},addOption:function(C){var F,j,ee,J=this;if(r.isArray(C)){for(F=0,j=C.length;F<j;F++)J.addOption(C[F]);return}(ee=J.registerOption(C))&&(J.userOptions[ee]=!0,J.lastQuery=null,J.trigger("option_add",ee,C))},registerOption:function(C){var F=R(C[this.settings.valueField]);return typeof F>"u"||F===null||this.options.hasOwnProperty(F)?!1:(C.$order=C.$order||++this.order,this.options[F]=C,F)},registerOptionGroup:function(C){var F=R(C[this.settings.optgroupValueField]);return F?(C.$order=C.$order||++this.order,this.optgroups[F]=C,F):!1},addOptionGroup:function(C,F){F[this.settings.optgroupValueField]=C,(C=this.registerOptionGroup(F))&&this.trigger("optgroup_add",C,F)},removeOptionGroup:function(C){this.optgroups.hasOwnProperty(C)&&(delete this.optgroups[C],this.renderCache={},this.trigger("optgroup_remove",C))},clearOptionGroups:function(){this.optgroups={},this.renderCache={},this.trigger("optgroup_clear")},updateOption:function(C,F){var j=this,ee,J,Q,oe,ve,U,D;if(C=R(C),Q=R(F[j.settings.valueField]),C!==null&&j.options.hasOwnProperty(C)){if(typeof Q!="string")throw new Error("Value must be set in option data");D=j.options[C].$order,Q!==C&&(delete j.options[C],oe=j.items.indexOf(C),oe!==-1&&j.items.splice(oe,1,Q)),F.$order=F.$order||D,j.options[Q]=F,ve=j.renderCache.item,U=j.renderCache.option,ve&&(delete ve[C],delete ve[Q]),U&&(delete U[C],delete U[Q]),j.items.indexOf(Q)!==-1&&(ee=j.getItem(C),J=r(j.render("item",F)),ee.hasClass("active")&&J.addClass("active"),ee.replaceWith(J)),j.lastQuery=null,j.isOpen&&j.refreshOptions(!1)}},removeOption:function(C,F){var j=this;C=R(C);var ee=j.renderCache.item,J=j.renderCache.option;ee&&delete ee[C],J&&delete J[C],delete j.userOptions[C],delete j.options[C],j.lastQuery=null,j.trigger("option_remove",C),j.removeItem(C,F)},clearOptions:function(){var C=this;C.loadedSearches={},C.userOptions={},C.renderCache={},C.options=C.sifter.items={},C.lastQuery=null,C.trigger("option_clear"),C.clear()},getOption:function(C){return this.getElementWithValue(C,this.$dropdown_content.find("[data-selectable]"))},getAdjacentOption:function(C,F){var j=this.$dropdown.find("[data-selectable]"),ee=j.index(C)+F;return ee>=0&&ee<j.length?j.eq(ee):r()},getElementWithValue:function(C,F){if(C=R(C),typeof C<"u"&&C!==null){for(var j=0,ee=F.length;j<ee;j++)if(F[j].getAttribute("data-value")===C)return r(F[j])}return r()},getItem:function(C){return this.getElementWithValue(C,this.$control.children())},addItems:function(C,F){for(var j=r.isArray(C)?C:[C],ee=0,J=j.length;ee<J;ee++)this.isPending=ee<J-1,this.addItem(j[ee],F)},addItem:function(C,F){var j=F?[]:["change"];ze(this,j,function(){var ee,J,Q,oe=this,ve=oe.settings.mode,U,D,W,ue;if(C=R(C),oe.items.indexOf(C)!==-1){ve==="single"&&oe.close();return}oe.options.hasOwnProperty(C)&&(ve==="single"&&oe.clear(F),!(ve==="multi"&&oe.isFull())&&
188(ee=r(oe.render("item",oe.options[C])),ue=oe.isFull(),oe.items.splice(oe.caretPos,0,C),oe.insertAtCaret(ee),(!oe.isPending||!ue&&oe.isFull())&&oe.refreshState(),oe.isSetup&&(Q=oe.$dropdown_content.find("[data-selectable]"),oe.isPending||(J=oe.getOption(C),W=oe.getAdjacentOption(J,1).attr("data-value"),oe.refreshOptions(oe.isFocused&&ve!=="single"),W&&oe.setActiveOption(oe.getOption(W))),!Q.length||oe.isFull()?oe.close():oe.positionDropdown(),oe.updatePlaceholder(),oe.trigger("item_add",C,ee),oe.updateOriginalInput({silent:F}))))})},removeItem:function(C,F){var j=this,ee,J,Q;ee=C instanceof r?C:j.getItem(C),C=R(ee.attr("data-value")),J=j.items.indexOf(C),J!==-1&&(ee.remove(),ee.hasClass("active")&&(Q=j.$activeItems.indexOf(ee[0]),j.$activeItems.splice(Q,1)),j.items.splice(J,1),j.lastQuery=null,!j.settings.persist&&j.userOptions.hasOwnProperty(C)&&j.removeOption(C,F),J<j.caretPos&&j.setCaret(j.caretPos-1),j.refreshState(),j.updatePlaceholder(),j.updateOriginalInput({silent:F}),j.positionDropdown(),j.trigger("item_remove",C,ee))},createItem:function(C,F){var j=this,ee=j.caretPos;C=C||r.trim(j.$control_input.val()||"");var J=arguments[arguments.length-1];if(typeof J!="function"&&(J=l(function(){},"callback")),typeof F!="boolean"&&(F=!0),!j.canCreate(C))return J(),!1;j.lock();var Q=typeof j.settings.create=="function"?this.settings.create:function(U){var D={};return D[j.settings.labelField]=U,D[j.settings.valueField]=U,D},oe=be(function(U){if(j.unlock(),!U||typeof U!="object")return J();var D=R(U[j.settings.valueField]);if(typeof D!="string")return J();j.setTextboxValue(""),j.addOption(U),j.setCaret(ee),j.addItem(D),j.refreshOptions(F&&j.settings.mode!=="single"),J(U)}),ve=Q.apply(this,[C,oe]);return typeof ve<"u"&&oe(ve),!0},refreshItems:function(){this.lastQuery=null,this.isSetup&&this.addItem(this.items),this.refreshState(),this.updateOriginalInput()},refreshState:function(){var C,F=this;F.isRequired&&(F.items.length&&(F.isInvalid=!1),F.$control_input.prop("required",C)),F.refreshClasses()},refreshClasses:function(){var C=this,F=C.isFull(),j=C.isLocked;C.$wrapper.toggleClass("rtl",C.rtl),C.$control.toggleClass("focus",C.isFocused).toggleClass("disabled",C.isDisabled).toggleClass("required",C.isRequired).toggleClass("invalid",C.isInvalid).toggleClass("locked",j).toggleClass("full",F).toggleClass("not-full",!F).toggleClass("input-active",C.isFocused&&!C.isInputHidden).toggleClass("dropdown-active",C.isOpen).toggleClass("has-options",!r.isEmptyObject(C.options)).toggleClass("has-items",C.items.length>0),C.$control_input.data("grow",!F&&!j)},isFull:function(){return this.settings.maxItems!==null&&this.items.length>=this.settings.maxItems},updateOriginalInput:function(C){var F,j,ee,J,Q=this;if(C=C||{},Q.tagType===B){for(ee=[],F=0,j=Q.items.length;F<j;F++)J=Q.options[Q.items[F]][Q.settings.labelField]||"",ee.push('<option value="'+G(Q.items[F])+'" selected="selected">'+G(J)+"</option>");!ee.length&&!this.$input.attr("multiple")&&ee.push('<option value="" selected="selected"></option>'),Q.$input.html(ee.join(""))}else Q.$input.val(Q.getValue()),Q.$input.attr("value",Q.$input.val());Q.isSetup&&(C.silent||Q.trigger("change",Q.$input.val()))},updatePlaceholder:function(){if(this.settings.placeholder){var C=this.$control_input;this.items.length?C.removeAttr("placeholder"):C.attr("placeholder",this.settings.placeholder),C.triggerHandler("update",{force:!0})}},open:function(){var C=this;C.isLocked||C.isOpen||C.settings.mode==="multi"&&C.isFull()||(C.focus(),C.isOpen=!0,C.refreshState(),C.$dropdown.css({visibility:"hidden",display:"block"}),C.positionDropdown(),C.$dropdown.css({visibility:"visible"}),C.trigger("dropdown_open",C.$dropdown))},close:function(){var C=this,F=C.isOpen;C.settings.mode==="single"&&C.items.length&&C.hideInput(),C.isOpen=!1,C.$dropdown.hide(),C.setActiveOption(null),C.refreshState(),F&&C.trigger("dropdown_close",C.$dropdown)},positionDropdown:function(){var C=this.$control,F=this.settings.dropdownParent==="body"?C.offset():C.position();F.top+=C.outerHeight(!0),this.$dropdown.css({width:C.outerWidth(),top:F.top,left
188:F.left})},clear:function(C){var F=this;F.items.length&&(F.$control.children(":not(input)").remove(),F.items=[],F.lastQuery=null,F.setCaret(0),F.setActiveItem(null),F.updatePlaceholder(),F.updateOriginalInput({silent:C}),F.refreshState(),F.showInput(),F.trigger("clear"))},insertAtCaret:function(C){var F=Math.min(this.caretPos,this.items.length);F===0?this.$control.prepend(C):r(this.$control[0].childNodes[F]).before(C),this.setCaret(F+1)},deleteSelection:function(C){var F,j,ee,J,Q,oe,ve,U,D,W=this;if(ee=C&&C.keyCode===w?-1:1,J=tt(W.$control_input[0]),W.$activeOption&&!W.settings.hideSelected&&(ve=W.getAdjacentOption(W.$activeOption,-1).attr("data-value")),Q=[],W.$activeItems.length){for(D=W.$control.children(".active:"+(ee>0?"last":"first")),oe=W.$control.children(":not(input)").index(D),ee>0&&oe++,F=0,j=W.$activeItems.length;F<j;F++)Q.push(r(W.$activeItems[F]).attr("data-value"));C&&(C.preventDefault(),C.stopPropagation())}else(W.isFocused||W.settings.mode==="single")&&W.items.length&&(ee<0&&J.start===0&&J.length===0?Q.push(W.items[W.caretPos-1]):ee>0&&J.start===W.$control_input.val().length&&Q.push(W.items[W.caretPos]));if(!Q.length||typeof W.settings.onDelete=="function"&&W.settings.onDelete.apply(W,[Q])===!1)return!1;for(typeof oe<"u"&&W.setCaret(oe);Q.length;)W.removeItem(Q.pop());return W.showInput(),W.positionDropdown(),W.refreshOptions(!0),ve&&(U=W.getOption(ve),U.length&&W.setActiveOption(U)),!0},advanceSelection:function(C,F){var j,ee,J,Q,oe,ve,U=this;C!==0&&(U.rtl&&(C*=-1),j=C>0?"last":"first",ee=tt(U.$control_input[0]),U.isFocused&&!U.isInputHidden?(Q=U.$control_input.val().length,oe=C<0?ee.start===0&&ee.length===0:ee.start===Q,oe&&!Q&&U.advanceCaret(C,F)):(ve=U.$control.children(".active:"+j),ve.length&&(J=U.$control.children(":not(input)").index(ve),U.setActiveItem(null),U.setCaret(C>0?J+1:J))))},advanceCaret:function(C,F){var j=this,ee,J;C!==0&&(ee=C>0?"next":"prev",j.isShiftDown?(J=j.$control_input[ee](),J.length&&(j.hideInput(),j.setActiveItem(J),F&&F.preventDefault())):j.setCaret(j.caretPos+C))},setCaret:function(C){var F=this;if(F.settings.mode==="single"?C=F.items.length:C=Math.max(0,Math.min(F.items.length,C)),!F.isPending){var j,ee,J,Q,oe;for(Q=F.$control.children(":not(input)"),j=0,ee=Q.length;j<ee;j++)oe=r(Q[j]).detach(),j<C?F.$control_input.before(oe):F.$control.append(oe)}F.caretPos=C},lock:function(){this.close(),this.isLocked=!0,this.refreshState()},unlock:function(){this.isLocked=!1,this.refreshState()},disable:function(){var C=this;C.$input.prop("disabled",!0),C.$control_input.prop("disabled",!0).prop("tabindex",-1),C.isDisabled=!0,C.lock()},enable:function(){var C=this;C.$input.prop("disabled",!1),C.$control_input.prop("disabled",!1).prop("tabindex",C.tabIndex),C.isDisabled=!1,C.unlock()},destroy:function(){var C=this,F=C.eventNS,j=C.revertSettings;C.trigger("destroy"),C.off(),C.$wrapper.remove(),C.$dropdown.remove(),C.$input.html("").append(j.$children).removeAttr("tabindex").removeClass("selectized").attr({tabindex:j.tabindex}).show(),C.$control_input.removeData("grow"),C.$input.removeData("selectize"),r(window).off(F),r(document).off(F),r(document.body).off(F),delete C.$input[0].selectize},render:function(C,F){var j,ee,J,Q="",oe=!1,ve=this,U=/^[\t \r\n]*<([a-z][a-z0-9\-_]*(?:\:[a-z][a-z0-9\-_]*)?)/i;return(C==="option"||C==="item")&&(j=R(F[ve.settings.valueField]),oe=!!j),oe&&(M(ve.renderCache[C])||(ve.renderCache[C]={}),ve.renderCache[C].hasOwnProperty(j))?ve.renderCache[C][j]:(Q=r(ve.settings.render[C].apply(this,[F,G])),C==="option"||C==="option_create"?Q.attr("data-selectable",""):C==="optgroup"&&(ee=F[ve.settings.optgroupValueField]||"",Q.attr("data-group",ee)),(C==="option"||C==="item")&&Q.attr("data-value",j||""),oe&&(ve.renderCache[C][j]=Q[0]),Q[0])},clearCache:function(C){var F=this;typeof C>"u"?F.renderCache={}:delete F.renderCache[C]},canCreate:function(C){var F=this;if(!F.settings.create)return!1;var j=F.settings.createFilter;return C.length&&(typeof j!="function"||j.apply(F,[C]))&&(typeof j!="string"||new RegExp(j).test(C))&&(!(j instanceof RegExp)||j.test(C))}}),qe.count=0,qe.defaults={options:[],optgroups:[],plugins:[],delimiter:",",splitOn:null,persist:!0,diacritics:!0,create:!1,
188createOnBlur:!1,createFilter:null,highlight:!0,openOnFocus:!0,maxOptions:1e3,maxItems:null,hideSelected:null,addPrecedence:!1,selectOnTab:!1,preload:!1,allowEmptyOption:!1,closeAfterSelect:!1,scrollDuration:60,loadThrottle:300,loadingClass:"loading",dataAttr:"data-data",optgroupField:"optgroup",valueField:"value",labelField:"text",optgroupLabelField:"label",optgroupValueField:"value",lockOptgroupOrder:!1,sortField:"$order",searchField:["text"],searchConjunction:"and",mode:null,wrapperClass:"selectize-control",inputClass:"selectize-input",dropdownClass:"selectize-dropdown",dropdownContentClass:"selectize-dropdown-content",dropdownParent:null,copyClassesToDropdown:!0,render:{}},r.fn.selectize=function(C){var F=r.fn.selectize.defaults,j=r.extend({},F,C),ee=j.dataAttr,J=j.labelField,Q=j.valueField,oe=j.optgroupField,ve=j.optgroupLabelField,U=j.optgroupValueField,D=l(function(ue,_e){var he,Ce,Ae,re,se=ue.attr(ee);if(se)for(_e.options=JSON.parse(se),he=0,Ce=_e.options.length;he<Ce;he++)_e.items.push(_e.options[he][Q]);else{var Se=r.trim(ue.val()||"");if(!j.allowEmptyOption&&!Se.length)return;for(Ae=Se.split(j.delimiter),he=0,Ce=Ae.length;he<Ce;he++)re={},re[J]=Ae[he],re[Q]=Ae[he],_e.options.push(re);_e.items=Ae}},"init_textbox"),W=l(function(ue,_e){var he,Ce,Ae,re,se=0,Se=_e.options,$e={},Fe=l(function(at){var It=ee&&at.attr(ee);return typeof It=="string"&&It.length?JSON.parse(It):null},"readData"),Ct=l(function(at,It){at=r(at);var qt=R(at.val());if(!(!qt&&!j.allowEmptyOption)){if($e.hasOwnProperty(qt)){if(It){var ct=$e[qt][oe];ct?r.isArray(ct)?ct.push(It):$e[qt][oe]=[ct,It]:$e[qt][oe]=It}return}var Qt=Fe(at)||{};Qt[J]=Qt[J]||at.text(),Qt[Q]=Qt[Q]||qt,Qt[oe]=Qt[oe]||It,$e[qt]=Qt,Se.push(Qt),at.is(":selected")&&_e.items.push(qt)}},"addOption"),Oe=l(function(at){var It,qt,ct,Qt,Ji;for(at=r(at),ct=at.attr("label"),ct&&(Qt=Fe(at)||{},Qt[ve]=ct,Qt[U]=ct,_e.optgroups.push(Qt)),Ji=r("option",at),It=0,qt=Ji.length;It<qt;It++)Ct(Ji[It],ct)},"addGroup");for(_e.maxItems=ue.attr("multiple")?null:1,re=ue.children(),he=0,Ce=re.length;he<Ce;he++)Ae=re[he].tagName.toLowerCase(),Ae==="optgroup"?Oe(re[he]):Ae==="option"&&Ct(re[he])},"init_select");return this.each(function(){if(!this.selectize){var ue,_e=r(this),he=this.tagName.toLowerCase(),Ce=_e.attr("placeholder")||_e.attr("data-placeholder");!Ce&&!j.allowEmptyOption&&(Ce=_e.children('option[value=""]').text());var Ae={placeholder:Ce,options:[],optgroups:[],items:[]};he==="select"?W(_e,Ae):D(_e,Ae),ue=new qe(_e,r.extend(!0,{},F,Ae,C))}})},r.fn.selectize.defaults=qe.defaults,r.fn.selectize.support={validity:h},qe.define("drag_drop",function(C){if(!r.fn.sortable)throw new Error('The "drag_drop" plugin requires jQuery UI "sortable".');if(this.settings.mode==="multi"){var F=this;F.lock=function(){var j=F.lock;return function(){var ee=F.$control.data("sortable");return ee&&ee.disable(),j.apply(F,arguments)}}(),F.unlock=function(){var j=F.unlock;return function(){var ee=F.$control.data("sortable");return ee&&ee.enable(),j.apply(F,arguments)}}(),F.setup=function(){var j=F.setup;return function(){j.apply(this,arguments);var ee=F.$control.sortable({items:"[data-value]",forcePlaceholderSize:!0,disabled:F.isLocked,start:function(J,Q){Q.placeholder.css("width",Q.helper.css("width")),ee.css({overflow:"visible"})},stop:function(){ee.css({overflow:"hidden"});var J=F.$activeItems?F.$activeItems.slice():null,Q=[];ee.children("[data-value]").each(function(){Q.push(r(this).attr("data-value"))}),F.setValue(Q),F.setActiveItem(J)}})}}()}}),qe.define("dropdown_header",function(C){var F=this;C=r.extend({title:"Untitled",headerClass:"selectize-dropdown-header",titleRowClass:"selectize-dropdown-header-title",labelClass:"selectize-dropdown-header-label",closeClass:"selectize-dropdown-header-close",html:function(j){return'<div class="'+j.headerClass+'"><div class="'+j.titleRowClass+'"><span class="'+j.labelClass+'">'+j.title+'</span><a href="javascript:void(0)" class="'+j.closeClass+'">&times;</a></div></div>'}},C),F.setup=function(){var j=F.setup;return function(){j.apply(F,arguments),F.$dropdown_header=r(C.html(C)),F.$dropdown.prepend(F.$dropdown_header)}}()}),qe.define("optgroup_columns",function(C){var F=this;
188C=r.extend({equalizeWidth:!0,equalizeHeight:!0},C),this.getAdjacentOption=function(J,Q){var oe=J.closest("[data-group]").find("[data-selectable]"),ve=oe.index(J)+Q;return ve>=0&&ve<oe.length?oe.eq(ve):r()},this.onKeyDown=function(){var J=F.onKeyDown;return function(Q){var oe,ve,U,D;if(this.isOpen&&(Q.keyCode===d||Q.keyCode===g)){F.ignoreHover=!0,D=this.$activeOption.closest("[data-group]"),oe=D.find("[data-selectable]").index(this.$activeOption),Q.keyCode===d?D=D.prev("[data-group]"):D=D.next("[data-group]"),U=D.find("[data-selectable]"),ve=U.eq(Math.min(U.length-1,oe)),ve.length&&this.setActiveOption(ve);return}return J.apply(this,arguments)}}();var j=l(function(){var J,Q=j.width,oe=document;return typeof Q>"u"&&(J=oe.createElement("div"),J.innerHTML='<div style="width:50px;height:50px;position:absolute;left:-50px;top:-50px;overflow:auto;"><div style="width:1px;height:100px;"></div></div>',J=J.firstChild,oe.body.appendChild(J),Q=j.width=J.offsetWidth-J.clientWidth,oe.body.removeChild(J)),Q},"getScrollbarWidth"),ee=l(function(){var J,Q,oe,ve,U,D,W;if(W=r("[data-group]",F.$dropdown_content),Q=W.length,!(!Q||!F.$dropdown_content.width())){if(C.equalizeHeight){for(oe=0,J=0;J<Q;J++)oe=Math.max(oe,W.eq(J).height());W.css({height:oe})}C.equalizeWidth&&(D=F.$dropdown_content.innerWidth()-j(),ve=Math.round(D/Q),W.css({width:ve}),Q>1&&(U=D-ve*(Q-1),W.eq(Q-1).css({width:U})))}},"equalizeSizes");(C.equalizeHeight||C.equalizeWidth)&&(ce.after(this,"positionDropdown",ee),ce.after(this,"refreshOptions",ee))}),qe.define("remove_button",function(C){C=r.extend({label:"&times;",title:"Remove",className:"remove",append:!0},C);var F=l(function(ee,J){J.className="remove-single";var Q=ee,oe='<a href="javascript:void(0)" class="'+J.className+'" tabindex="-1" title="'+G(J.title)+'">'+J.label+"</a>",ve=l(function(U,D){return U+D},"append");ee.setup=function(){var U=Q.setup;return function(){if(J.append){var D=r(Q.$input.context).attr("id"),W=r("#"+D),ue=Q.settings.render.item;Q.settings.render.item=function(_e){return ve(ue.apply(ee,arguments),oe)}}U.apply(ee,arguments),ee.$control.on("click","."+J.className,function(_e){_e.preventDefault(),!Q.isLocked&&Q.clear()})}}()},"singleClose"),j=l(function(ee,J){var Q=ee,oe='<a href="javascript:void(0)" class="'+J.className+'" tabindex="-1" title="'+G(J.title)+'">'+J.label+"</a>",ve=l(function(U,D){var W=U.search(/(<\/[^>]+>\s*)$/);return U.substring(0,W)+D+U.substring(W)},"append");ee.setup=function(){var U=Q.setup;return function(){if(J.append){var D=Q.settings.render.item;Q.settings.render.item=function(W){return ve(D.apply(ee,arguments),oe)}}U.apply(ee,arguments),ee.$control.on("click","."+J.className,function(W){if(W.preventDefault(),!Q.isLocked){var ue=r(W.currentTarget).parent();Q.setActiveItem(ue),Q.deleteSelection()&&Q.setCaret(Q.items.length)}})}}()},"multiClose");if(this.settings.mode==="single"){F(this,C);return}else j(this,C)}),qe.define("restore_on_backspace",function(C){var F=this;C.text=C.text||function(j){return j[this.settings.labelField]},this.onKeyDown=function(){var j=F.onKeyDown;return function(ee){var J,Q;if(ee.keyCode===w&&this.$control_input.val()===""&&!this.$activeItems.length&&(J=this.caretPos-1,J>=0&&J<this.items.length)){Q=this.options[this.items[J]],this.deleteSelection(ee)&&(this.setTextboxValue(C.text.apply(this,[Q])),this.refreshOptions(!0)),ee.preventDefault();return}return j.apply(this,arguments)}}()}),qe}(window.$);f1.exports=s2});var h1=Pe(()=>{(function(r){r.fn.mod=function(e){return this.each(function(){let t=r(this),i=t.data("baseClass");i||(i=t.attr("class").split(" ")[0],t.data("baseClass",i));let s=t.data("state");if(s||(s=t.attr("class").match(new RegExp("[^ ]*"+i+"--[^ ]*")),s&&(s=s[0].split("--")[1],t.data("state",s))),e){if(s){let n=t.attr("class").match(new RegExp("[^ ]*"+i+"--"+s));n&&t.removeClass(n[0])}switch(t.data("state",e),t.addClass(`${i}--${e}`),s=e,e){case"disableButtons":t.find('button, input[type="button"], input[type="submit"], input[type="image"], input[type="reset"]').prop("disabled",!0);break;case"disableSubmitButtons":t.find('button[type="submit"], input[type="submit"], input[type="image"]').prop("disabled",!0);break;case"ready":t.find('button, input[type="button"], input[type="submit"], input[type="image"], input[type="reset"]').prop("disabled",!1),t.removeClass(`${i}--disableButtons`),t.removeClass(`${i}--disableSubmitButtons`);break}}return s})},r.fn.modInPlace=function(e){return this.each(function(){let t=r(this),i=t.attr("class").split(" ")[0],s=i.match(/--([a-zA-Z0-9]*[-_]{0,1}[a-zA-Z0-9])*$/),n=s!==null?s[0]:null,a=i;if(n){let c=e===""?"":`--${e}`;
188a=i.replace(n,c)}return t.removeClass(i).addClass(a),a})}})(window.$)});var m1=Pe(p1=>{(function(){var r,e;r=window.jQuery,e=r(window),r.fn.stick_in_parent=function(t){var i,s,n,a,c,d,o,p,g,v,m,w,b;for(t==null&&(t={}),b=t.sticky_class,d=t.inner_scrolling,w=t.recalc_every,m=t.parent,g=t.offset_top,p=t.spacer,n=t.bottoming,g==null&&(g=0),m==null&&(m=void 0),d==null&&(d=!0),b==null&&(b="is_stuck"),i=r(document),n==null&&(n=!0),v=l(function(S){var O,P,N;return window.getComputedStyle?(O=S[0],P=window.getComputedStyle(S[0]),N=parseFloat(P.getPropertyValue("width"))+parseFloat(P.getPropertyValue("margin-left"))+parseFloat(P.getPropertyValue("margin-right")),P.getPropertyValue("box-sizing")!=="border-box"&&(N+=parseFloat(P.getPropertyValue("border-left-width"))+parseFloat(P.getPropertyValue("border-right-width"))+parseFloat(P.getPropertyValue("padding-left"))+parseFloat(P.getPropertyValue("padding-right"))),N):S.outerWidth(!0)},"outer_width"),a=l(function(S,O,P,N,B,q,h,M){var R,G,pe,ce,be,Te,ze,Ke,tt,bt,je,Ze;if(!S.data("sticky_kit")){if(S.data("sticky_kit",!0),be=i.height(),ze=S.parent(),m!=null&&(ze=ze.closest(m)),!ze.length)throw"failed to find stick parent";if(pe=!1,R=!1,je=p!=null?p&&S.closest(p):r("<div />"),je&&je.css("position",S.css("position")),Ke=l(function(){var ut,qe,C;if(!M&&(be=i.height(),ut=parseInt(ze.css("border-top-width"),10),qe=parseInt(ze.css("padding-top"),10),O=parseInt(ze.css("padding-bottom"),10),P=ze.offset().top+ut+qe,N=ze.height(),pe&&(pe=!1,R=!1,p==null&&(S.insertAfter(je),je.detach()),S.css({position:"",top:"",width:"",bottom:""}).removeClass(b),C=!0),B=S.offset().top-(parseInt(S.css("margin-top"),10)||0)-g,q=S.outerHeight(!0),h=S.css("float"),je&&je.css({width:v(S),height:q,display:S.css("display"),"vertical-align":S.css("vertical-align"),float:h}),C))return Ze()},"recalc"),Ke(),q!==N)return ce=void 0,Te=g,bt=w,Ze=l(function(){var ut,qe,C,F,j,ee;if(!M&&(C=!1,bt!=null&&(bt-=1,bt<=0&&(bt=w,Ke(),C=!0)),!C&&i.height()!==be&&(Ke(),C=!0),F=e.scrollTop(),ce!=null&&(qe=F-ce),ce=F,pe?(n&&(j=F+q+Te>N+P,R&&!j&&(R=!1,S.css({position:"fixed",bottom:"",top:Te}).trigger("sticky_kit:unbottom"))),F<B&&(pe=!1,Te=g,p==null&&((h==="left"||h==="right")&&S.insertAfter(je),je.detach()),ut={position:"",width:"",top:""},S.css(ut).removeClass(b).trigger("sticky_kit:unstick")),d&&(ee=e.height(),q+g>ee&&(R||(Te-=qe,Te=Math.max(ee-q,Te),Te=Math.min(g,Te),pe&&S.css({top:Te+"px"}))))):F>B&&(pe=!0,ut={position:"fixed",top:Te},ut.width=S.css("box-sizing")==="border-box"?S.outerWidth()+"px":S.width()+"px",S.css(ut).addClass(b),p==null&&(S.after(je),(h==="left"||h==="right")&&je.append(S)),S.trigger("sticky_kit:stick")),pe&&n&&(j==null&&(j=F+q+Te>N+P),!R&&j)))return R=!0,ze.css("position")==="static"&&ze.css({position:"relative"}),S.css({position:"absolute",bottom:O,top:"auto"}).trigger("sticky_kit:bottom")},"tick"),tt=l(function(){return Ke(),Ze()},"recalc_and_tick"),G=l(function(){if(M=!0,e.off("touchmove",Ze),e.off("scroll",Ze),e.off("resize",tt),r(document.body).off("sticky_kit:recalc",tt),S.off("sticky_kit:detach",G),S.removeData("sticky_kit"),S.css({position:"",bottom:"",top:"",width:""}),ze.position("position",""),pe)return p==null&&((h==="left"||h==="right")&&S.insertAfter(je),je.remove()),S.removeClass(b)},"detach"),e.on("touchmove",Ze),e.on("scroll",Ze),e.on("resize",tt),r(document.body).on("sticky_kit:recalc",tt),S.on("sticky_kit:detach",G),setTimeout(Ze,0)}},"fn"),c=0,o=this.length;c<o;c++)s=this[c],a(r(s));return this}}).call(p1)});var hv=Pe((w8,g1)=>{m1();var Ar=Ei();g1.exports=function(){if(!Ar.signPage)return;Ar.elements.signPage.css("minHeight",0);let r=Ar.elements.signPage.height(),e=Ar.elements.formColumn.height();r>e?Ar.elements.formColumn.data("stick_in_parent")?$(document.body).trigger("sticky_kit:recalc"):(Ar.elements.formColumn.stick_in_parent({spacer:!1,offset_top:50}).on("sticky_kit:stick sticky_kit:unstick sticky_kit:bottom sticky_kit:unbottom",()=>{if(Ar.elements.formColumn.css("position")==="fixed"){let t=($(window).width()-Ar.elements.signPage.width())/2;Ar.elements.append("stuckStyle",`<style> #form-col.is_stuck { right: ${t}px !important; } </style>`)}else Ar.elements.remove("stuckStyle")}
188),Ar.elements.formColumn.data("stick_in_parent",!0)):(Ar.elements.formColumn.trigger("sticky_kit:detach"),Ar.elements.formColumn.data("stick_in_parent",!1),Ar.elements.signPage.css("minHeight",e))}});var pv=Pe((S8,y1)=>{var a2=hv();function o2(r=!1){$("#user_card").remove(),$(".sign-form").find("#form_fields_block, fieldset").css("display","block"),$(".hideMe").removeClass("hideMe").each((e,t)=>{let s=$(t).find(".notab");s.removeClass("notab").prop("tabindex",s.data("tab"))}),r&&$(".nextActionPage--desktop .care2form__field.optional").show(),setTimeout(()=>{a2()},1e3)}l(o2,"showEntireForm");y1.exports=o2});var x1=Pe((O8,vv)=>{Tf();c1();Zl();d1();h1();var v1=Ya(),_1=Ci(),b1=ui(),_r=Ei(),mv=ts(),w1=es().countryCodesWithStates,l2=pv(),u2={attr:{action:"#",method:"post"},className:"care2form",countries:{}},S1={READY:"ready",DISABLED:"disableSubmitButtons",LOADING:"loading"};function c2(r){return r.which!==0&&r.which>27&&r.charCode!==0&&r.charCode>27&&!r.ctrlKey&&!r.metaKey&&!r.altKey}l(c2,"isCharacter");var _v=class _v{constructor(e,t=!1){$.extend(this,u2),$.extend(!0,this,e),this.fields={},this.types={};let i=1;$.each(this.items,(s,n)=>{switch(!n.skip&&!["hidden","buttons","html_break"].find(a=>a===n.type)&&(this.fields[n.key]=new yv(this,n,i++)),n.type){case"hidden":delete n.state,n.name=n.name?n.name:this.id+"["+n.key+"]";break;case"country":n.type="select",n["data-type"]="country",n.values=Hs().countriesByCode,this.types.country=this.fields[n.key];break;case"state":n.type="select",n["data-type"]="state",n.values=es().byCountryCodeLimitedForSignForm,this.types.state=this.fields[n.key];break}}),this.optionalTranslation=b1("optional"),this.$form=$(u1(this,{allowProtoPropertiesByDefault:!0,allowProtoMethodsByDefault:!0})),this.$form.data("care2form",this),this.error_msg=this.$form.find("."+this.className+"__error_message").data("default-msg",this.$form.attr("data-error-msg")),this.$form.find("select").selectize({selectOnTab:!0,allowEmptyOption:!0,render:{optgroup_header:function(){return""},optgroup:function(s,n){return!this.singleGroup||s.label==this.singleGroup?'<div class="optgroup-'+encodeURI(s.label)+'">'+s.html+"</div>":""},item:function(s,n){return'<div data-value="'+s.value+'" class="item">'+s.text+"</div>"},option:function(s,n){return'<div data-value="'+s.value+'" data-selectable="" class="option">'+s.text+"</div>"}}}),this.$form.on("submit.validate",s=>{s.preventDefault(),this.submitForm().always(n=>{typeof this.submitCallback=="function"?this.submitCallback(n):(this.setButtons(S1.READY),n&&this.$form.off("submit.validate").submit())})}),$.each(this.fields,(s,n)=>{let a=this.$form.find("#"+this.id+"__field__"+s);n.assignElements(a),n.wrapper.click({field:n},c=>{c.data.field.inputField.focus()}),n.input.attr("required")?(n.required=!0,n.input.removeAttr("required")):n.required=!1}),this.$form.find("button").each((s,n)=>{$(n).attr("tabindex",100)}),this.types?.country&&!w1.includes(this.types.country.value)&&this.types.state.hideAndOmitFieldFromForm(),t||(this.types.country&&this.types.country.blurChange(!1,!0),$.each(this.fields,(s,n)=>{n.blurChange(!1,!0)}))}submitForm(){let e=new $.Deferred;this.submitting=!0,this.setButtons("sending");let t=[];return $.each(this.fields,(i,s)=>{s.blurChange(!0),t.push(s.promise)}),$.when.apply($,t).done(()=>{e.resolve(this.errorMessage()),this.submitting=!1}),e.promise()}get $buttons(){return this.find("buttons")}find(e){return this.$form.find(`.${this.className}__${e}`)}getTranslation(e){return b1(e)}get values(){let e={};for(let[t,i]of Object.entries(this.fields))e[t]=i.value?.trim(),t==="phone"&&(_r.user.signer.phone!==e[t]?e.phoneCountry=this.fields.country.value:(Bl(_r.user.signer.phone)||(e.phone=_r.user.signer.phone),e.phoneCountry=_r.user.signer.phoneCountry));return e}get fullValues(){let e;return this.$form.serializeArray().reduce((t,i)=>(e=i.name.match(/(^[a-zA-Z_$][0-9a-zA-Z_$]*)\[([0-9a-zA-Z_$]*)\]$/),e?t[e[2]]=i.value:t[i.name]=i.value,t),{})}get custom(){let e={};return $.each(this.fields,(t,i)=>{t.indexOf("custom_")===0&&(e[t]=i.value)}),e}get answer(){let e="";
188return $.each(this.fields,(t,i)=>{t.indexOf("custom_")===0&&i.input.attr("type")==="textarea"&&(e=i.input.val())}),e}setButtons(e){this.$form.find('[class*="__buttons"]').mod(e)}get isFormComplete(){let e=!0;return $.each(this.fields,(t,i)=>{if(i.required&&!i.value&&i.visible)return e=!1,!1}),yn()&&_r.mainPetition.optinInternal&&_r.mainPetition.optinInternal.isVisible()&&!_r.mainPetition.optinInternal.selected&&(e=!1),e}get errors(){let e={};return $.each(this.fields,(t,i)=>{i.error!==null&&(e[t]=i.error)}),e}get changedFields(){let e={};return $.each(this.fields,(t,i)=>{i.value!==i.initialValue&&(e[t]=i)}),e}errorMessage(e){let t=this;return this.$form.find('[class*="--invalid"]').length?(e?t.error_msg.empty().append(e):t.error_msg.empty().append(t.error_msg.data("default-msg")),t.$form.mod("errors"),!1):(t.$form.mod("no_errors"),!0)}};l(_v,"Care2Form");var gv=_v,yc={focus:function(r){r.data.field.focus()},keypress:function(r){c2(r)&&r.data.field.keypress()},blurChange:function(r){let e=$(r.currentTarget);r.data.field.blurChange()},passwordToggle:function(r){r.data.field.passwordToggle()}},bv=class bv{constructor(e,t,i){this.form=e,this.key=t.key,this.type=t.type,this.tabindex=i,this.error=null,this.initialValue=t.value,this.item=t,this.preventPropagation=!1,this.onChange=typeof t.onChange=="function"?t.onChange:!1,this["error-validate"]=t["error-validate"]||"Please enter a valid "+t.label,this["error-required"]=t["error-required"]||"Please enter a valid "+t.label}assignElements(e){if(this.wrapper=e,this.label=this.wrapper.find("> label"),this.visible=!0,this.placeholder=$('<div style="display:none"></div>'),this.state=this.wrapper.mod().data("state"),this.wrapper.find(".selectize-input").length){if(this.input=this.wrapper.find("select"),this.selectize=this.input[0].selectize,this.control=this.selectize.$control_input,this.control.data("field",this),this.item.autocomplete){this.input.removeAttr("autocomplete");let t=this.item.autocomplete;this.autofill=$(`<input id="auto-${this.key}" type="text" autocomplete="${t}" tabindex="-1" />`),this.wrapper.append(this.autofill),this.autofill.css({left:"-10000px",position:"absolute",opacity:0,width:4,height:1}).on("change",{field:this},i=>{let s=$(i.target),n=i.data.field,a=s.val().toLowerCase();$.each(n.selectize.options,(c,d)=>{if(d.text.toLowerCase()===a||d.value.toLowerCase()===a)return n.value=d.value,n.selectize.setActiveOption(n.selectize.getOption(d.value)),n.blurChange(),!1})})}this.input.on("change",{field:this},yc.blurChange)}else this.input=this.wrapper.find(":input");this.input.data("field",this),this.inputField.attr("tabindex",this.tabindex),this.inputField.on("focus",{field:this},yc.focus),this.inputField.on("keypress",{field:this},yc.keypress),this.inputField.on("change",{field:this},yc.blurChange),this.type==="password"&&this.wrapper.find("div.pwshow").on("click",{field:this},yc.passwordToggle)}get inputField(){return this.control?this.control:this.input}get value(){if(this.type==="radio")return this.wrapper.find(":checked").val();if(this.type==="checkbox"){let e=[];return this.wrapper.find(":checked").each((t,i)=>{e.push(i.value)}),e.length>1?e:e.length===1?e[0]:null}else{let e=this.input.val().toString().trim();return e=this.selectize?this.selectize.getValue():e,this.key==="phone"&&_r.user.signer.phone.substr(-4)===e.substr(-4)?_r.user.signer.phone:e}}set value(e){this.selectize?this.selectize.setValue(e):this.input.val(e),this.blurChange()}get care2form(){return this.inputField.closest("form").data("care2form")}showAndIncludeFieldInForm(){return this.visible||(this.visible=!0,this.placeholder.replaceWith(this.wrapper.show())),this}hideAndOmitFieldFromForm(){return this.visible&&(this.visible=!1,this.wrapper.after(this.placeholder),$(document.body).append(this.wrapper.hide())),this}setState(e,t){return this.state=e,this.wrapper.mod(e),this.label.find("span.error-msg").remove(),this.error=null,e==="invalid"&&(this.error=t,this.label.append('<span class="error-msg">'+t+"</span>"),$(this.input).closest(".care2form__field.optional").removeClass("optional"),this.key==="phone"&&(l2(),this.care2form.fields.country.setState("invalid",this["error-required"]))),this}stopPropagation(){return this.preventPropagation=!0,this}isPropagationStopped(){let e=this.preventPropagation;return this.preventPropagation=!1,e}focus(){this.isPropagationStopped()||(this.state!=="valid"&&this.setState("active"),this.selectize&&this.value===""&&this.selectize.setActiveOption(this.selectize.getItem(this.selectize.$dropdown_content.find("div.option").data("value"))))}keypress(){this.isPropagationStopped()||(this.state==="invalid"||this.state!=="active"&&this.value)&&this.setState("active")}blurChange(e=!1,t=!1){if(this.key==="email"&&this.form.id==="sign"&&Ei().mainPetition.setButtonState("loading"),!this.isPropagationStopped()){let i=this.care2form;if(this.promise=!0,typeof i<"u"){if(i.submitting&&this.required&&!v1.required(this.value))this.setState("invalid",this["error-required"]),this.validationData={};else if(!this.value)this.setState("empty"),this.validationData={};else if(this.inputField.attr("validate")){let s=i.fields.country?i.fields.country.value:null,n=i.fields.state?i.fields.state.value:null,a=new $.Deferred;this.promise=a.promise(),this.promise.always((g,v,m)=>{g.trigger("validation",v,m),this.promise=a,typeof this.onChange=="function"&&this.onChange(this,e,t)});let c=this.inputField.attr("validate"),d={country:s,state:n,language:_r.user.language,validated:_1(`validated.${c}`,_r.user,!1)};
188i.submitting&&(d.invalidated=_1(`invalidated.${c}`,_r.user,!1),d.timeout=2e3),this.key==="email"&&!_r.nextActionPage&&_r.user.signer.email!==this.value&&(mv.expire("subscribed-action-alerts-gdpr"),mv.expire("subscribed-action-alerts-non-gdpr"),mv.expire("reauthorized-action-alerts"));let o=this.value,p=_r.user.signer;if(this.key==="phone"){if(zl(_r.user.mostRecentSMSCapableMasked,this.value)){this.isValid=!0,this.setState("valid");return}(Bl(this.value)?zl(p.phone,this.value):p.phone!==this.value)||(d.country=p.phoneCountry,d.phone=p.phone,o=p.phone)}$.when(v1[c](o,d)).always((g,v={})=>{this.isValid=g,this.returnData=v,this.key!=="email"&&(this.validationData=v,g?this.setState("valid"):this.setState("invalid",this["error-validate"])),a.resolve(this,g,v)})}else typeof this.onChange=="function"&&this.onChange(this,e,t),this.setState("valid");if(this.key==="country"&&i.types[this.key]){let s=i.types[this.key],n=i.types.state;if(s.visible&&n){s.selectize.refreshOptions(!1);let a=es().byCountryCodeLimitedForSignForm;if(!w1.includes(this.value))n.selectize.currentGroup=!1,n.selectize.clearOptions(),n.selectize.refreshOptions(!1),n.selectize.setValue(""),n.hideAndOmitFieldFromForm();else if(n.selectize.currentGroup!==this.value){let c=typeof n.selectize.currentGroup>"u"?n.initialValue:"";n.selectize.currentGroup=this.value,n.selectize.clearOptions(),$.each(a[this.value],(d,o)=>{n.selectize.addOption({value:d,text:o}),n.selectize.addItem(d,!0)}),n.selectize.refreshOptions(!1),n.value=c,c===""&&n.setState("empty"),n.showAndIncludeFieldInForm()}}this.refreshCountrySpecificLabels(this.value)}}}}refreshCountrySpecificLabels(e){let t=e||this.form.fields?.country.value||"us";this.care2form.$form.find("label.country-specific").each((i,s)=>{let n=$(s);n.find('span.default, span[class^="country-"]').hide();let a=n.find("span.country-"+t);a.length?a.show():n.find("span.default").show()})}on(e,t){this.buildCallbackArray(e),this._callbacks[e].push(t)}trigger(e,...t){this.buildCallbackArray(e),$.each(this._callbacks[e],(i,s)=>{s.apply(this,t)})}buildCallbackArray(e){this._callbacks||(this._callbacks={}),this._callbacks[e]||(this._callbacks[e]=[])}passwordToggle(){this.input.attr("type")==="password"?this.input.attr("type","text"):this.input.attr("type","password"),this.stopPropagation()}};l(bv,"Field");var yv=bv;vv.exports.Care2Form=gv;vv.exports.BUTTON_STATES=S1});function Qd(r,e){e.setButtonState(us.LOADING);let t=f2.getValidationPromises(),i=typeof t.email<"u"&&t.email.promise.state()==="pending";!r.care2form.submitting&&!i&&e.refreshOptinsForSignPage("",{data:{signerData:{...Be.getSignerDataWithUserDataAsDefault(),...e?.form?.formValues||{}},petitionData:e.toDTO()},auth:Tn()})}function Tv(r){let e=[],t=vc("country",r,"").toLowerCase();$.inArray("city",this.showFields)>=0&&r.city&&e.push(r.city);let i=es().byCountryCodeLimitedForSignForm,s=Hs().countriesByCode;r.state&&$.inArray("state",this.showFields)>=0&&$.inArray(t,I1)>=0?e.push(i[t][r.state]):t&&t!==""&&$.inArray("country",this.showFields)>=0&&e.push(s[t]);let n=r.lastname?Xl(r.firstname,r.lastname):it("name_not_displayed"),a=(()=>{let p=et.fromISO(r.signtime).toRelative();return p.indexOf("seconds")>=0?it("just_now"):p})(),c=e.join(", "),d=r.answer&&$.inArray("custom_1",this.showFields)>=0?r.answer:null,o=r.number;return{date:a,location:c,name:n,answer:d,number:o}}function g2(r,e){if(Be.getAllSessionData().petitionsSigned.hasOwnProperty(r.petitionID))return;let i=e?et.fromISO(e).toMillis():et.now().toMillis();Be.updateUserSession({petitionsSigned:r.toUserSessionEventHistoryCacheItem(i)})}var Kt,vc,wv,k1,T1,C1,it,Sv,f2,us,d2,h2,I1,O1,p2,E1,H8,D1,xv,Jd,A1,m2,kv,Ir,Ov,Zi,Ev,Cv,jd=ie(()=>{sv();Xn();Tf();Vt();Ku();vo();i1();go();Zu();pm();Kt=Ei(),vc=Ci(),wv=Bh(),k1=oy(),T1=$f(),C1=qr(),it=ui(),Sv=lu(),f2=Ya(),{BUTTON_STATES:us}=x1(),{gdprCountriesByCode:d2,gdprCountriesByName:h2}=Hs(),{countryCodesWithStates:I1}=es(),O1=hv(),{getAASubscriptionStatus:p2,getSubscribedToActionAlertsInThisSession:E1}=Yf(),H8=ey(),D1=Qy(),xv="user",Jd="phone",A1="single",m2={FIRST_TIME_SIGNER:1,DEFAULT_OPTINS:2,DEFAULT_NEXT_ACTIONS:4,SUPPRESS_UNDELIVERABLE_EMAIL:8},kv={},Ir={},Ov=class Ov{constructor(e,t={}){Ie(this,"_signForm");Ie(this,"_petitionSignForm");if(t.noCache){this.mergeValidData(t),this.petitionID=parseInt(e),this.flags=0;return}return(!kv[e]||t.reCache)&&(t.reCache=!1,this.mergeValidData(t),this.petitionID=parseInt(e),this.flags=0,k1.setAuth("sessionSequence",this.sessionSequence),kv[e]=this),kv[e]}get form(){return this._signForm||this._petitionSignForm}get petitionSignForm(){return this._petitionSignForm}get phonePetitionSignupText(){}set petitionSignForm(e){this._petitionSignForm=e}set form(e){e?.nodeName==="PETITION-SIGN-FORM"?this._signForm=new Proxy(e,{get:(t,i)=>{if(t.hasOwnProperty(i))return t[i];if(typeof t[i]=="function")return(...a)=>t[i](...a);if(i==="nodeName")return"PETITION-SIGN-FORM";let s={...t.formValues(),fb_publish:t.isFacebookShareCheckboxChecked()?1:0},n={mod:a=>{switch(a){case"ready":t.setProcessingState(!1,"petition proxy: ready");break;case"loading":t.setProcessingState(!0,"petition proxy: loading");break;case"disableSubmitButtons":break}}};if(i==="items")return[];if(i==="form")return{...t.shortNameInputMap,fullValues:s,$buttons:n,values:t.formValues()};if(i==="fields")return t.shortNameInputMap;if(i==="custom"){let a={};
188return Array.from(t.elmCustomInputs).forEach(d=>{a[d.dataset.questionID]=d.value}),a}if(i==="$buttons")return n;if(i==="fullValues"||i==="values")return s}}):this._signForm=e}get containsDomainNameOrUrl(){return this.contains_domain_name_or_url}get btsOptin(){return!!(this.attachedOptin&&this.attachedOptin.isBTS&&this.attachedOptin.checked&&this.confirmed)}get canonicalURL(){let e=$('link[rel="canonical"]');return e.length?e.attr("href"):this.petitionURL}get closed(){return this.is_closed?!0:this.petition_type===xv?!1:et.now().toISODate()>this.stopdate}get collectFields(){if(!this._collectFields){this._collectFields=(this.mask_collfields||this.collfields||[]).join("|").toLowerCase().split("|");let e=this._collectFields.indexOf("name");e===-1?this._collectFields.push("firstname","lastname","anon"):this._collectFields.splice(e,1,"firstname","lastname","anon")}return this._collectFields}get fields(){return this._fields||(this._fields=this.collectFields.reduce((e,t)=>(e[t]={collect:!0,required:$.inArray(t,this.requiredFields)>=0,show:$.inArray(t,this.showFields)>=0},e),{})),this._fields}get goal(){return parseInt(this.ct_signatures_target)}set goal(e){this.ct_signatures_target=parseInt(e)}get goalString(){return this.ct_signatures_target?wv.intlFormatNumber(this.ct_signatures_target,0):"0"}get integratedPetition(){return this.attachedOptin&&this.attachedOptin.integratedPetition&&this.attachedOptin.checked&&this.confirmed?this.attachedOptin.integratedPetition:!1}get hasIntegratedPetition(){return this.attachedOptin&&this.attachedOptin.integratedPetition&&this.attachedOptin.checked?this.attachedOptin.integratedPetition:!1}get internalOptin(){return Ii.getCachedInternalOptin(this)||!1}get isAuthor(){return parseInt(this.authorID)===parseInt(Kt.user.signer.passportID)}get isClosedCustom(){return parseInt(this.closed_type)===3}get isClosedSuccess(){return this.closed_success}get isGdpr(){let e=this.form.fields.country.value.toLowerCase();return Kt.user.isGeoIpGDPR||d2.hasOwnProperty(e)||h2.hasOwnProperty(e)}get isSignatureBarHidden(){return!!this.hide_signature_bar}set isSignatureBarHidden(e){this.hide_signature_bar=Number(e)}get language(){if(!this._language){let e=this.language_code||T1.defaultLanguage;this._language=new T1(e)}return this._language}get localSignaturesCountString(){return this.localSignaturesCount?wv.intlFormatNumber(this.localSignaturesCount,0):"0"}get mainImage(){return this.wide_image}get mainOptin(){let e=!1;return this.attachedOptin?e=this.attachedOptin:this.internalOptin&&(e=this.internalOptin),e}get petitionType(){return this.petition_type===xv?xv:this.flow_template||this.petition_type}get petitionURI(){let e=this.petitionID+"",t=`${e.slice(0,3)}/${e.slice(3,6)}/${e.slice(6,9)}`;return this.urlname?`${t}/${this.urlname}/`:`takeaction/${t}/`}get petitionURL(){return`//${document.domain}${this.language.stub}/${this.petitionURI}`}get isPhoneFlow(){return this.petitionType===Jd}get preferredPetitionID(){return this.integratedPetition?this.integratedPetition.petitionID:this.petitionID}get requiredFields(){if(!this._requiredFields){if(this._requiredFields=(this.mask_reqfields||this.reqfields||[]).join("|").toLowerCase().split("|"),this._requiredFields.includes("name")){let e=this._requiredFields.indexOf("name");this._requiredFields.splice(e,1,"firstname","lastname")}this._requiredFields.includes("phone")&&Kt.user.mostRecentSMSCapableMasked.length>0&&(this._requiredFields.splice("phone",1),Kt.nextActionPage&&(this.fields.phone.required=!1))}return this._requiredFields}get sessionSequence(){return this._sessionSequence||(this._sessionSequence=Be.incrementSessionSequence().data.sessionSequence),this._sessionSequence}get shareParameters(){return{"data-url":this.petitionURL,"data-system_key":this.petitionID,"data-system":this.systemCode}}get shareParametersHTML(){let e=this.shareParameters,t=[];for(let i in e)t.push(`${i}="${e[i]}"`);return t.join(" ")}get showFields(){if(!this._showFields){this._showFields=(this.mask_showfields||this.showfields||[]).join("|").toLowerCase().split("|");let e=this._showFields.indexOf("name");e===-1?this._showFields.push("firstname","lastname"):this._showFields.splice(e,1,"firstname","lastname")}return this._showFields}get signable(){return!this.signed&&!this.closed}get signaturesCountString(){return this.signaturesCount?wv.intlFormatNumber(this.signaturesCount,0):"0"}get signed(){return Be.getPetitionsSigned().hasOwnProperty(this.petitionID)}get signer(){let e=Kt.user.signer,t=vc("form.values",this,{});return $.each(t,(i,s)=>{s&&s!==""&&(e[i]=s)}
188),e.passportID&&!e.email&&C1("class Petition : get signer : page.user.signer: %o, formValues: %o, signer: %o",Kt.user.signer,t,e).send("lib-petition__get-signer"),e}get singlePageFlow(){return $.inArray(this.petitionType,[A1,Jd])>=0&&!this.isGdpr}get splitTestVariationName(){return this.split_test_variation_name?this.split_test_variation_name:""}set splitTestVariationName(e){this.split_test_variation_name=e}get systemCode(){return window.systemCode||6}get tellAFriendParams(){return{petition:this,title:this.short_title?this.short_title:this.title,system_key:this.petitionID,system:this.systemCode,cid:"email_na",nitroAction:"social_share_Email_petition",tf_email_text:this.tf_email_text}}get attachedOptin(){return this.signPageOptin||this.nextActionOptin}get signPageOptin(){return Ii.getCachedThirdPartyOptin(this)||!1}get nextActionOptin(){return this._nextActionOptin||!1}set nextActionOptin(e){this._nextActionOptin=e}get thumbnail(){return this.wide_thumb}getCustomQuestions(){return typeof this.customQuestions<"u"&&Array.isArray(this.customQuestions)?this.customQuestions:[]}buildForm(e){if(e==="sign")throw new Error("Care2Form sign page is deprecated. Use PetitionSignForm instead.");let t=Kt.user.signer,i={id:e,countries:{address:{label:{gb:it("full_postal_address")}},phone:{label:{us:it("phone_with_area_code"),ca:it("phone_with_area_code"),au:it("phone_with_area_code")}},zip:{label:{us:it("zip_code")}},state:{label:{ca:it("province")},get_states:I1}},attr:{action:"javascript:void(0)","data-error-msg":it("please_correct_highlighted_fields")},items:[{key:"terms",type:"hidden",name:"terms",value:1},{key:"sig_number",type:"hidden",name:"sigNumber"},{type:"html_break",html:'<div id="form_fields_block"><fieldset>'}
188]},s=lm(t.phone)||t.mostRecentSMSCapableMasked||"",n={firstname:{autocomplete:"given-name",label:it("first_name"),value:t.firstname||"","error-required":it("form_field_error_required-first_name"),"error-validate":it("form_field_error_validate-first_name"),"data-tf-sensitive":"true"},lastname:{autocomplete:"family-name",label:it("last_name"),value:t.lastname||"","error-required":it("form_field_error_required-last_name"),"error-validate":it("form_field_error_validate-last_name"),"data-tf-sensitive":"true"},email:{type:"email",label:it("email"),validate:"email",triggerFormLoading:!0,value:t.email||"",onChange:(m,w,b)=>{b||Qd(m,this)},"error-required":it("form_field_error_required-email"),"error-validate":it("form_field_error_validate-email"),"data-tf-sensitive":"true"},country:{autocomplete:"country",type:"country",label:it("country"),value:t.country||"us",onChange:(m,w,b)=>{b||Qd(m,this)},"error-required":it("form_field_error_required-country"),"error-validate":it("form_field_error_validate-country"),"data-tf-sensitive":"true"},address:{autocomplete:"address-line1",label:it("street_address"),value:t.address||"","error-required":it("form_field_error_required-address"),"error-validate":it("form_field_error_validate-address"),"data-tf-sensitive":"true"},city:{autocomplete:"city address-level2",label:it("city"),value:t.city||"","error-required":it("form_field_error_required-city"),"error-validate":it("form_field_error_validate-city"),"data-tf-sensitive":"true"},state:{autocomplete:"state address-level1",type:"state",label:it("state"),value:t.state||"",onChange:(m,w,b)=>{b||Qd(m,this)},"error-required":it("form_field_error_required-state"),"error-validate":it("form_field_error_validate-state"),"data-tf-sensitive":"true"},zip:{autocomplete:"postal-code",label:it("postal_code"),validate:"zip",value:t.zip||"",onChange:(m,w,b)=>{b||Qd(m,this)},"error-required":it("form_field_error_required-zip"),"error-validate":it("form_field_error_validate-zip"),"data-tf-sensitive":"true"},phone:{type:"tel",label:it("phone_number"),validate:"phone",value:s,"error-required":it("form_field_error_required-phone"),"error-validate":it("form_field_error_validate-phone"),"data-tf-sensitive":"true"}},a=!1;$.each(n,(m,w)=>{$.inArray(m,this.collectFields)>=0&&($.inArray(m,this.requiredFields)>=0&&(w.required=1),m==="phone"?a=$.extend({key:m},w):(m==="country"&&i.items.push({type:"html_break",html:"</fieldset><fieldset>"}),i.items.push($.extend({key:m},w)),m==="country"&&i.items.push({type:"html_break",html:"</fieldset><fieldset>"})))}),i.items.push({type:"html_break",html:'</fieldset></div><div id="optional_questions">'}),a&&i.items.push(a);let c,d=0,o=!1;$.each(this.getCustomQuestions(),(m,w)=>{d++,c=`custom_${d}`;let b;if(w._collect!=="disabled")switch(w.type){case"radio":case"dropdown":b={key:c,label:w.question,values:{}},b.type=w.type==="radio"?"radio":"select",b.type==="select"&&(b.realPlaceholder=it("please_select")),$.each(w.choices,(S,O)=>{b.values[O[0]]=O[1],O[2]===1&&(b.value=O[0])});break;case"custom":w.question==="___pageid___"?b={type:"html_break",html:`<script id="pageid_script" src="https://centralstation.ceeleads.info/js/pageid.js" type="text/javascript" rel="${c}"><\/script>`}:(b={autocomplete:"off",key:c,type:"textarea",label:it("for_more_impact_add_comment"),realPlaceholder:w.question===it("for_more_impact_add_comment")?null:w.question},o||(o=b,b=!1,w._required&&typeof o=="object"&&(o.required=1)));break}w._required&&typeof b=="object"&&(b.required=1),b&&i.items.push(b)}),o&&i.items.push(o);let p={key:"fb_publish",name:"fb_publish",type:"checkbox",values:{1:it("share_with_my_facebook_friends").replace("{facebook}","Facebook")},value:vc("petitions.publishToFacebook",Kt.user)?1:0,tabindex:"-1",skip:1};e==="sign"&&i.items.push(p),i.items.push({type:"html_break",html:"</div>"});let v={key:"buttons",type:"buttons",buttons:{[this.petitionType===Jd?it("sign_up"):it("sign_now")]:"submit"}};return e==="nextAction"&&(Kt.desktop||Kt.tablet)&&(v.buttons.Skip="skip"),i.items.push(v),(e==="sign"||!Kt.user.signer.passportID)&&i.items.push({key:"display_name",type:"checkbox",tabindex:"-1",values:{1:it("dont_display_my_name")}}),i}getData(){if(!this.petitionDataReady){this.petitionDataReady=new $.Deferred;let e={petitionID:this.petitionID,languageCode:this.language.codeID};Sv.callCare2Servlet("petitions/petition.php",e).done(t=>{this.mergeValidData(t),this.petitionDataReady.resolve()}).fail(t=>{this.petitionDataReady.reject(t.responseText)})}return this.petitionDataReady.promise()}getSignatures(e={}){if(!this.signaturesReady){this.signaturesReady=new $.Deferred,this.draft&&(this.signaturesCount=this.localSignaturesCount=this.localCommentsCount=this.latestSignatureNumber=0);let t=$.extend({petitionID:this.petitionID,type:"all"},e);Sv.callCare2Servlet("petitions/signatures.php",t).done(i=>{this.signaturesCount=i.signature_count,this.localSignaturesCount=i.local_signature_count,this.localCommentsCount=i.local_comment_count,this.latestSignatureNumber=$.isArray(i.signatures)&&i.signatures.length?i.signatures[0].number:this.signatures_count;let s={signatures:[],local_signatures:[],local_comments:[]};$.isArray(i.signatures)&&i.signatures.length&&(s.signatures=i.signatures.map(n=>Tv.apply(this,[n]))),$.isArray(i.local_signatures)&&i.local_signatures.length&&(s.local_signatures=i.local_signatures.map(n=>Tv.apply(this,[n]))),$.isArray(i.local_comments)&&i.local_comments.length&&(s.local_comments=i.local_comments.map(n=>Tv.apply(this,[n]))),this.signaturesReady.resolve(s),this.signaturesReady=!1}).fail(i=>{parseInt(i.status)!==0&&C1("class Petition : getSignatures: signatures servlet fail! Petition: %o : jqXHR: %o",t.petitionID,i).send("signatures_servlet_fail"),this.signaturesReady.reject(i.responseText),this.signaturesReady=!1})}return this.signaturesReady.promise()}getStatus(){if(!this.signableStatusReady){this.signableStatusReady=new $.Deferred;let e=Kt.user.getValue("passportID");if(!e)this.flags|=m2.FIRST_TIME_SIGNER,this.signableStatusReady.resolve();else if(this.signed)this.signableStatusReady.resolve();else{let t=new k1("petitions/signedDate"),i={passportID:e,petitionID:this.petitionID};t.setShortTimeout(),t.connect(i).done(s=>{vc("date",s,"").split("T").length===2&&g2(this,s.date),this.signableStatusReady.resolve()}).fail(s=>{this.signableStatusReady.reject(i,s)})}}return this.signableStatusReady.promise()}handleWindowMessage(e){}mergeValidData(e){let t=["petition_image_caption","org_image","mask_collfields","mask_reqfields","startdate","state","country","ct_signatures_min","ct_signatures_target","url_moreinfo","body","summary","tf_text","show_taf_page","na_light_mode","sponsor_firstname","sponsor_lastname","sponsor_organization","freeform_target","freeform_sponsor","short_title","video_url","urlname","redirect_url","large_promo","embed_image_url","flow_template","signature_list_title","extended_body","hide_signature_bar","signaturesCount","petition_type","title","short_summary","petition_url","image_url","wide_image","wide_thumb","wide_facebook","wide_mobile","stopdate","showfields","reqfields","collfields","authorID","client_name","show_taf_popup","draft","locationID","customQuestions","tf_email_text","language_code","locationType","locationName","closed_
188success","closed_type","closed_message","sign_form_title","closed_header","is_closed","platform","contains_domain_name_or_url"],i=t.length;for(let s=0;s<i;s++){let n=t[s];typeof e[n]<"u"&&(this[n]=e[n])}}resetOptins(){this.form?.nodeName==="PETITION-SIGN-FORM"?this.form.clearOptins():$(".optins").remove()}setButtonState(e,t=!0){typeof this.form=="object"&&(t&&e==us.LOADING?$(".optins").hide():$(".optins").show(),this.form.$buttons.mod(e))}trackPetitionSeen(e={}){if(!this._seen||e.custom_NAP&&!this._custom_NAP_seen){this._seen=!0;let t=e.currentPage?e.currentPage:"signPage";e.custom_NAP&&(this._custom_NAP_seen=!0,this._sessionSequence=!1);let s={flags:kn(),passportID:this.signer.passportID,petitionID:this.preferredPetitionID,publisherID:vc("flags.publisherID",Kt,1),email:this.signer.email||null,platform:"TPS",NAP:Kt.nextActionPage?"Y":"N",custom_NAP:e.custom_NAP?"Y":"N",mobile:Kt.mobile?"Y":"N",IS:t===Kt.TrackingPages.CONFIRMATION_POPUP?"Y":"N",signer_source:"TPS",language_code:this.language.codeID,sessionId:Be.getAllSessionData().sessionID,sessionSequence:this.sessionSequence,splitTestVariationName:this.splitTestVariationName};if(Kt.nextActionPage){let n=Be.getAllSessionData().repeatSignerSplitTesting;n&&$.each(n,(a,c)=>{s["repeatSignerSplitTesting["+a+"]"]=c})}D1.values&&(s.centralizedTracking=D1.values),Sv.callCare2Servlet("petitions/petitions_seen.php",s).done(n=>{})}}shouldRequestInternalOptinForSignPage(e){return new Promise((t,i)=>{if(E1())t(!1);else{if(!e){t(!0);return}p2(e).done(s=>{this.isGdpr&&!s.hasVersionedAARecord||!this.isGdpr&&!s.hasAARecord&&!s.areInternalOptinsBlocked&&!E1()?t(!0):t(!1)}).fail(()=>{t(!0)})}})}shouldAssociateAThirdPartyOptinWithSignPage(){return this.isPhoneFlow}shouldRequestAThirdPartyOptinForSignForm(){return this.isGdpr?!1:[A1,Jd].includes(this.petitionType)}get shouldShowThirdPartyOptinOnNextActionForm(){return!this.isPhoneFlow&&!this.isGdpr}getRefreshOptinsCacheKey(e=""){let t=this.form.fields.email.value,i=this.form.fields.country.value,s=this.form.fields.state?.value||"",n=this.form.fields.zip?.value||"";return(e+"-"+t+"-"+i+"-"+s+"-"+n).toLowerCase()}getPetitionOptinsFromCache(e=""){let t=this.getRefreshOptinsCacheKey(e);return Ir[t]}refreshOptinsForSignPage(e="",t){let i=this.getRefreshOptinsCacheKey(e),s=l(()=>{},"fnReleaseFormLock");if(this.form?.nodeName==="PETITION-SIGN-FORM"&&(s=this.form.setProcessingState(!0,`_handleAppendOptinsToSignPage[${i}]`,!0)),typeof this.form>"u"){let d=new $.Deferred;return d.resolve(),d}this.resetOptins();let n=this.form.fields.email.value,a=this.shouldRequestAThirdPartyOptinForSignForm(),c=l(()=>{if(this.petitionSignForm){this.petitionSignForm.setInternalOptin(Ir[i].internalOptin),this.petitionSignForm.setThirdPartyOptin(Ir[i].thirdPartyOptin),new mo(this,Kt,[Ir[i].thirdPartyOptin]).send(),Ir[i].promise.resolve(),s();return}this._handleAppendOptinsToSignPage(Ir[i].thirdPartyOptin,Ir[i].internalOptin),Ir[i].promise.resolve()},"fnOptinResultsFoundCallback");if(Ir[i]&&i===this.getRefreshOptinsCacheKey(e))Ir[i].promise.state()!=="pending"&&c();else{Ir[i]={promise:new $.Deferred,thirdPartyOptin:null,internalOptin:null};let d=[],o=new $.Deferred,p=new $.Deferred;a&&(d.push(o),mc.getThirdPartyOptin(t).then(g=>{Ir[i].thirdPartyOptin=g,o.resolve()}).catch(()=>{o.resolve()})),d.push(p),this.shouldRequestInternalOptinForSignPage(n).then(g=>{if(g){let v=Object.assign({},t);v.data.optinData={optinID:3},mc.getInternalOptin(v).then(m=>{Ir[i].internalOptin=m,p.resolve()}).catch(()=>{p.resolve()})}else p.resolve()}),$.when.apply($,d).always(()=>{c()})}return Ir[i].promise}getOptinViewMode(){return["gb","united kingdom"].includes(this.form.fields.country.value.toLowerCase())?Kr.SOFT_GDPR:this.isGdpr?Kr.GDPR:Kr.NON_GDPR}appendOptinForNextAction(e){this.nextActionOptin=null;let t=new $.Deferred;this.resetOptins();let i=$('<div class="optins"></div>');if(this.isGdpr)return this.nextActionOptin=e,t.resolve(),t;if(this.nextActionOptin=e,$(".nextAction_"+this.petitionID).find("#nextAction__buttons").after(i),O1(),e){let n=gc(e,this.getOptinViewMode(),Di.nextActionPage);this.shouldShowThirdPartyOptinOnNextActionForm||n.hide(),i.append(n),new mo(this,Kt,[e]).send(),t.resolve(!0)}else this.setButtonState(us.READY),t.resolve(!1);return t}_handleAppendOptinsToSignPage(e=null,t=null){if(this.form?.nodeName==="PETITION-SIGN-FORM"){this.form.setInternalOptin(t),this.form.setThirdPartyOptin(e,!0);return}let i=$('<div class="optins"></div>');if(e){let a=gc(e,this.getOptinViewMode(),Di.signPage,()=>{let c=!this.form.isFormComplete||this.isGdpr&&!e.selected;this.setButtonState(c?us.DISABLED:us.READY)});this.isPhoneFlow&&a.hide(),i.append(a)}if(t){let a;this.isGdpr?(a=gc(t,this.getOptinViewMode(),Di.signPage,()=>{this.setButtonState(us.READY)}),a.show()):(a=gc(t,this.getOptinViewMode(),Di.signPage),a.hide()),i.append(a)}new mo(this,Kt,[e,t]).send(),Kt.nextActionPage?$("#nextAction__buttons").after(i):this.form.$buttons.before(i);let n=us.READY;this.isHardGdpr&&(e||t)&&(n=us.DISABLED),this.setButtonState(n),O1()}get isHardGdpr(){return this.isGdpr&&!this.isSoftGdpr}
188get isSoftGdpr(){return this.getOptinViewMode()===Kr.SOFT_GDPR}toDTO(){return new Cv({...this,splitTestVariationName:this.splitTestVariationName})}toUserSessionEventHistoryCacheItem(e=Date.now()){return{[this.petitionID]:{time:e}}}};l(Ov,"Petition");Zi=Ov,Ev=class Ev{constructor({authorID:e,client_name:t,closed_header:i,closed_message:s,closed_success:n,closed_type:a,collfields:c,contains_domain_name_or_url:d,ct_signatures_target:o,customQuestions:p,draft:g,extended_body:v,hide_signature_bar:m,image_url:w,is_closed:b,language_code:S,locationID:O,locationName:P,locationType:N,petitionID:B,petition_type:q,petition_url:h,reCache:M,reqfields:R,short_summary:G,short_title:pe,show_taf_popup:ce,showfields:be,sign_form_title:Te,stopdate:ze,tf_email_text:Ke,title:tt,wide_facebook:bt,wide_image:je,wide_mobile:Ze,wide_thumb:ut,splitTestVariationName:qe}){this.authorID=e,this.client_name=t,this.closed_header=i,this.closed_message=s,this.closed_success=n,this.closed_type=a,this.collfields=c,this.contains_domain_name_or_url=d,this.ct_signatures_target=o,this.customQuestions=p,this.draft=g,this.extended_body=v,this.hide_signature_bar=m,this.image_url=w,this.is_closed=b,this.language_code=S,this.locationID=O,this.locationName=P,this.locationType=N,this.petitionID=B,this.petition_type=q,this.petition_url=h,this.reCache=M,this.reqfields=R,this.short_summary=G,this.short_title=pe,this.show_taf_popup=ce,this.showfields=be,this.sign_form_title=Te,this.stopdate=ze,this.tf_email_text=Ke,this.title=tt,this.wide_facebook=bt,this.wide_image=je,this.wide_mobile=Ze,this.wide_thumb=ut,this.splitTestVariationName=qe}};l(Ev,"PetitionDTO");Cv=Ev;l(Qd,"onEmailorGeoChange");l(Tv,"parseSignatureDataForSignatureHbs");l(g2,"setUserSigned")});var P1,Ao,ra,bc,wc,Io,Sc,xc,kc,eh,$1,th,F1,rh,M1,Dv,_c,R1=ie(()=>{"use strict";jd();Gh();Xh();Qh();Hr();P1=mt(zd()),Dv=class Dv{constructor({getAllSessionData:e,getSignerDataWithUserDataAsDefault:t,getUserLoggedInState:i,resetUserSession:s,updateUserSession:n,accountAPI:a,petitionAPI:c,systemLogger:d}){xe(this,eh);xe(this,th);xe(this,rh);xe(this,Ao,void 0);xe(this,ra,void 0);xe(this,bc,void 0);xe(this,wc,void 0);xe(this,Io,void 0);xe(this,Sc,void 0);xe(this,xc,void 0);xe(this,kc,void 0);Le(this,Ao,e),Le(this,ra,t),Le(this,bc,i),Le(this,wc,s),Le(this,Io,n),Le(this,Sc,a),Le(this,xc,c),Le(this,kc,d)}async execute(e){let t=new Zi(e.data.petitionData.petitionID);await Ot(this,eh,$1).call(this,t,e);let i=await Ot(this,th,F1).call(this,e);return Ot(this,rh,M1).call(this,e,i.isNewUser),St.createSuccessful("petition signed")}};Ao=new WeakMap,ra=new WeakMap,bc=new WeakMap,wc=new WeakMap,Io=new WeakMap,Sc=new WeakMap,xc=new WeakMap,kc=new WeakMap,eh=new WeakSet,$1=l(async function(e,{data:t,auth:i}){let{signerData:s}=t,n=De(this,ra).query(!0);n.email&&n.email!==s.email&&(De(this,wc).execute(),n=De(this,ra).query(!0));let c=e.petitionID,d=De(this,Ao).query(),o=n.toUserValuesDTO(s),p=typeof s.phone<"u"&&n.getCanUseSMSPhoneAppendForOptin(s.phone),g={...o,useStoredPhone:p,passportID:n.passportID,signedPetitions:Object.keys(d.petitionsSigned),previousOptins:Object.keys(d.optinsAccepted),petitionID:c,custom_questions:s?.custom_questions||[],display_name:s.display_name||n.display_name,isFirstSignatureInSession:Object.keys(d.petitionsSigned).length===0},v=await De(this,xc).signPetition({auth:i,data:g});if(v.status!=="Signed")throw De(this,kc).error("Signature Failure",v),new Os("Could not sign petition");return De(this,Io).execute({petitionsSigned:e.toUserSessionEventHistoryCacheItem()}),v},"#signPetition"),th=new WeakSet,F1=l(async function(e){let t=De(this,ra).query(!0),i=t.toUserValuesDTO(e.data?.signerData,!1),s={passportID:t.passportID,petitionID:e.data.petitionData.petitionID,acceptedAAInThisSignature:e.auth.acceptedAAInThisSignature?"true":"false",...i},n=await De(this,Sc).createAccount({sign:s,action:"getPID",publisherID:e.auth.publisherID,referrer_url:location.href.split("#")[0],centralTracking:e.auth.centralTracking}),a=parseInt(n.passportID);if(!a||isNaN(a))throw new Cs("Could not get user ID");if(n.isNewUser&&!De(this,bc).query())throw new Es("User was not logged in for new signature");return De(this,Io).execute({signer:{...i,passportID:a},isNewUserSession:n.isNewUser}),n},"#getOrCreateAccount"),rh=new WeakSet,M1=l(function(e,t){let i=De(this,Ao).query(),s=t&&Object.keys(i.petitionsSigned).length===1;(0,P1.trackPetitionSigned)(e.data.petitionData.petitionID,i.signer.passportID,i.sessionID,i.signer.email,s)},"#trackPetitionSigned"),l(Dv,"SignPetition");_c=Dv});function Av(r,e,t,i,s=1e4,n="json"){return new Promise((a,c)=>{let d=new XMLHttpRequest;d.open(r,e,!0),d.setRequestHeader("Content-Type","application/json"),d.timeout=s,i&&Object.entries(i).forEac
188h(([o,p])=>{d.setRequestHeader(o,p)}),d.onreadystatechange=function(){d.readyState===4&&(d.status>=200&&d.status<300?(n==="json"&&a(JSON.parse(d.responseText)),a(d.responseText)):c(d.responseText))},d.send(t)})}var N1=ie(()=>{l(Av,"makeXMLHttpRequest")});function Iv(r){return Qs(r).concat(Tc.object({petitionID:Tc.number().required(),custom_questions:Tc.array().required(),display_name:Tc.string().required().valid(null,"","1","0"),passportID:Tc.number().optional().allow(null)}))}var Tc,L1=ie(()=>{Nd();Tc=qi();l(Iv,"default")});function Pv(r){let e=Iv(r).concat(Dn.object({signedPetitions:Dn.array().items(Dn.number()).required(),previousOptins:Dn.array().items(Dn.number()).required(),acceptedAAInThisSignature:Dn.boolean().optional(),isFirstSignatureInSession:Dn.boolean().required(),useStoredPhone:Dn.boolean().required()}));return Dn.object({data:e.required(),auth:Hd.required()})}var Dn,H1=ie(()=>{L1();my();Dn=qi();l(Pv,"default")});var $v,Cc,U1=ie(()=>{N1();H1();Rd();$v=class $v{constructor(){Ie(this,"apiEndpointSign","/ws/petitions/sign");Ie(this,"apiEndpointNextActions","/ws/petitions/nextAction")}signPetition(e){return Js(Pv(e.data.country),e,"Invalid signPetitionData.data"),Av("POST",this.apiEndpointSign,JSON.stringify(e))}async getNextActions(e){let t=new AbortController,i=t.signal;return setTimeout(()=>t.abort(),1e4),await(await fetch(this.apiEndpointNextActions,{method:"POST",body:JSON.stringify(e),signal:i})).json()}};l($v,"PetitionAPI");Cc=$v});var ih,Fv=ie(()=>{U1();ih=new Cc});function Mv(r){return Xi.object({sign:Qs(r).concat(Xi.object({petitionID:Xi.number().required(),acceptedAAInThisSignature:Xi.string().required().allow("1","true","0","false",null),passportID:Xi.number().optional().allow(null)})),action:Xi.string().required().valid("getPID"),referrer_url:Xi.string().required(),custom_questions:Xi.array().optional(),display_name:Xi.string().optional(),centralTracking:Ld.required(),publisherID:Xi.number().optional().allow(null)})}var Xi,j1=ie(()=>{Nd();py();Xi=qi();l(Mv,"default")});var Rv,Oc,q1=ie(()=>{Rd();j1();Rv=class Rv{constructor(){Ie(this,"apiEndpoint","/servlets/petitions/pe_create")}async createAccount(e){return Js(Mv(e.sign.country),e,"Invalid create account data"),$.ajax({url:this.apiEndpoint,data:e,type:"POST",timeout:1e4})}};l(Rv,"AccountAPI");Oc=Rv});var W1,B1=ie(()=>{q1();W1=new Oc});var z1,V1=ie(()=>{R1();Fv();B1();Ws();Gm();jm();ed();Tu();xi();z1=new _c({getAllSessionData:fi,getSignerDataWithUserDataAsDefault:rs,getUserLoggedInState:td,resetUserSession:Kf,updateUserSession:Xa,accountAPI:W1,petitionAPI:ih,systemLogger:Ut})});var Dc,Ac,nh,Y1,Nv,Ec,G1=ie(()=>{"use strict";Nv=class Nv{constructor({petitionAPI:e,getAllSessionData:t}){xe(this,nh);xe(this,Dc,void 0);xe(this,Ac,void 0);Le(this,Dc,e),Le(this,Ac,t)}query(e){let t=De(this,Ac).query(),i=Ot(this,nh,Y1).call(this,e,t);return De(this,Dc).getNextActions({data:{...e.data.signerData,...e.data.sourceData,isFirstSignatureInSession:i,previousOptins:Object.keys(t.optinsAccepted),containerViews:Object.keys(t.containersViewed),signedPetitions:Object.keys(t.petitionsSigned),nextActionTypes:e.data.nextActionData.nextActionTypes},auth:e.auth})}};Dc=new WeakMap,Ac=new WeakMap,nh=new WeakSet,Y1=l(function(e,t){if(!e.data.sourceData.petitionID||!t.petitionsSigned)return!1;let i=t.petitionsSigned;return(Object.keys(t.petitionsSigned)||[]).reduce((a,c)=>!a||i[c]<i[a]?c:a,null)===e.data.sourceData.petitionID},"#getIsFirstSignatureInSession"),l(Nv,"GetNextActions");Ec=Nv});var K1,Z1=ie(()=>{G1();Fv();Ws();K1=new Ec({petitionAPI:ih,getAllSessionData:fi})});var X1,J1=ie(()=>{Fx();V1();Z1();xi();sd();X1=new Lu({signPetition:z1,getNextActions:K1,systemLogger:Ut,applicationTranslator:ro})});var y2,Q1,eT,tT=ie(()=>{Vt();J1();sv();Pf();gr();y2=mt(Yf());Zu();Q1=mt(pv()),eT=mt(Ya());
188if(dt.isDevEnvironment()||localStorage.getItem("c2DevToolsEnabled")==="true"){window.c2Dev={sessionController:Be,petitionController:X1,optinController:mc,stagingController:Us,shortcuts:{actionAlerts:y2,getWebservicesAuth:Tn,validation:eT.default},helpers:{showNextActionForm:Q1.default,petitionSignFormStatePromises:()=>document.querySelector("petition-sign-form")._processingStatePromises,fetchLog:[]}},window.c2Dev.helpers.fetchLog.getMostRecentCheckboxes=l(function(){return this.filter(t=>t.url.includes("checkboxes"))},"getMostRecentCheckboxes");let r=window.fetch;window.fetch=l(function(t,i){let s={url:t,now:Date.now(),src:"Fetch",promise:r(t,i)};return window.c2Dev.helpers.fetchLog.push(s),s.promise},"fetch")}});var rT={};lO(rT,{default:()=>v2});var v2,iT=ie(()=>{ox();cx();Dx();$x();tT();Ag();Dd.checkForAndDisplaySiteNotification(!1);v2=Promise.all(Ex)});var aT=Pe((aB,sT)=>{nx();Zl();gr();var _2=ki(),Lv=ts(),rB=ui(),b2=ax(),w2=Lv.get("C2_CNOTICE")||0,Hv=1;sT.exports=l(function(e){dt.isCurrentDomainThePetitionSite()?Promise.resolve().then(()=>(iT(),rT)).then(({default:t})=>{nT(t,e)}):Promise.resolve().then(()=>(Ig(),vI)).then(({default:t})=>{nT(t,e)})},"cookieNotification");function nT(r,e){r.then(()=>{(_2.fragment.showCNotice||yn()&&w2<Hv)&&S2(e)})}l(nT,"showCookieNotificationAfterPageBootstrap");function S2(r){b2(["cookieNotification--message","cookieNotification--accept","cookieNotification--learnMore"],r.languageCode).done(()=>{let e=$(ix({},{allowProtoPropertiesByDefault:!0,allowProtoMethodsByDefault:!0}));e.on("click",t=>{t.target.id!=="learnMore"&&(t.preventDefault(),e.remove(),Lv("C2_CNOTICE",Hv,{expires:31536e4}))}),Lv("C2_CNOTICE",Hv,{expires:86400}),$("body").append(e)})}l(S2,"showCookieNotification")});var lT=Pe((dB,oT)=>{Ig();Vt();gr();DS();var Pr=ki(),x2=Lg(),k2=MS(),T2=rx(),C2=aT(),Uv=null,sh=class sh{constructor(){return Uv||(Uv=this),Uv}static get instance(){return new sh}init(){if(!this.navReady){this.navReady=$.Deferred();let e=Be.getSignerDataWithUserDataAsDefault(),t=typeof Pr.languageCheck=="function"?Pr.languageCheck():!1;t&&(location.href=t);let i=$("ul.login_links.loggedout"),s=$("ul.login_links.loggedin");Be.isUserLoggedIn()?(i.remove(),O2(s)):(s.remove(),i.fadeIn("slow"));let n=$('<label class="site-feedback__tab" id="siteFeedbackTab" for="siteFeedbackTrigger">site feedback</label>');$(document.body).append(n),n.on("click",()=>{new x2("siteFeedback",ES({user:e,page:Pr,location,document,navigator},{allowProtoPropertiesByDefault:!0,allowProtoMethodsByDefault:!0}))}),C2(e),T2(),E2(e,s)}return k2(),this.navReady.promise()}};l(sh,"Nav");var jv=sh;function O2(r){r.find("label.name").text(Pr.user.firstname),r.is(":hidden")&&r.fadeIn("slow")}l(O2,"updateLoggedInDisplay");function E2(r,e){let t=$(".fixed_header"),i=t.find(".show_form");if(t.length&&(Pr.responsive&&(i.on("click",function(n){if(n.preventDefault(),!Pr.mobile)return!0;let a=t.find("form");$(this).hide(),t.find("a.care2_logo").css({"margin-left":"45px"});let c=a.show().width();a.width(1).find('input[type="text"]').trigger("touchstart"),a.animate({width:c})}),t.find("input").on("touchstart",function(){$(this).focus()})),$(window).scroll(function(n){if(Pr.mobile)return!0;let a=$("header");$(window).scrollTop()>a.height()+a.offset().top?t.addClass("show"):(t.removeClass("show"),$(window).mousedown())}),$(window).scroll(),t.find("a.shortcut_menu").click(function(n){if(Pr.mobile||Pr.tablet)return!0;n.preventDefault();let a=$(this),c=$("#shortcut_menu");if(c.is(":hidden")){c.show();let d=c.width();c.hide();let o=a.offset().left-d;o=o<0?0:o,c.css("left",o).slideDown("slow")}else c.fadeOut("slow")}),$("#shortcut_menu").mouseenter(function(){$(this).data("hovering",!0)}).mouseleave(function(){let n=$(this);n.data("hovering",!1),setTimeout(function(){n.data("hovering")||n.fadeOut("slow")},1e3)}).find("a.close").click(function(n){n.preventDefault();let a=$("#shortcut_menu");a.is(":hidden")||a.fadeOut("slow")}),$(window).mousedown(function(n){let a=$("#shortcut_menu");if(Pr.mobile)return a.hide(),!0;a.data("hovering")||a.fadeOut("slow")})),r&&!dt.isCurrentDomainThePetitionSite()&&$("ul.loggedin li.my a").css({cursor:"pointer"}).on("click touchstart",function(n){if(!Pr.mobile)return!0;n.preventDefault();let a=$(this),c=$("#mobile_my"),d=$("#care2_main_container");if(a.data("working"))return!0;
188if(a.data("working",!0),c.length)c.is(":visible")?(c.hide(),d.show()):(d.hide(),c.show()),a.data("working",!1);else{let o=dt.getAssetsURL()+"/assets/img/loading-dots-ffffff.gif";new Image().src=o,c=$('<div id="mobile_my"><div class="loading" style="text-align:center;padding:25px;"><img src="'+o+'" alt="Loading" /></div><div id="mobile_footer" class="contain_floats"><ul><li><a href="'+dt.getCare2URL()+'/help">HELP</a></li><li><a href="'+dt.getCare2URL()+'/accounts/">MY SETTINGS</a></li></ul><ul><li><a href="'+dt.getCare2URL()+'/passport/subscription_center/">MY SUBSCRIPTIONS</a></li></ul></div></div>'),d.hide(),$("#mobile_my").remove(),$(document.body).append(c),c=$("#mobile_my");let p="",g=3,v={},m=l(function(){if(g--,g<=0){let w=dt.getPetitionSiteURL();typeof v.petition_updates=="object"&&(p+='<div class="mobile_my_content mobile_my_petition"><h3>'+new Date(v.petition_updates.date*1e3).asString("mmm. dd").toUpperCase()+`</h3><p><a href="${w}/petition_feedback/' + userData.petition_updates.petitionID + '">`+v.petition_updates.author+'</a>added an update to<a href="'+v.petition_updates.url+'">'+v.petition_updates.title+'</a></p><div class="more_content"><a href="'+dt.getPetitionSiteURL()+'/my/petitionsite">view all</a></div></div>'),a.data("working",!1),c.find(".loading").replaceWith(p)}},"completeScripts");$.get("/servlets/my_care2.php",function(w){typeof w.ty_note=="object"&&(v.ty_note=w.ty_note),typeof w.my_groups=="object"&&(v.my_groups=w.my_groups),typeof w.petition_updates=="object"&&(v.petition_updates=w.petition_updates),m()})}}),Pr.responsive){let n=$("header").find("ul.login_links.loggedin");if(n.length){let a=$('<div id="mobile_footer_loginlinks"></div>');$(document.body).append(a),a.append(n.clone(!0))}}let s={menu:$("#hamburger_menu"),is_next_action:!1};s.menu.length&&($(document.body).append(s.menu.addClass("initiated")).append($('<div id="contentLayer"></div>')),$.extend(s,{link:$("a.shortcut_menu"),content:$("#care2_wrapper").add("#fixed_header"),mask:$("#contentLayer"),show:function(){if(Pr.desktop)return!0;this.contentWidth||(this.contentWidth=this.content.width()),this.content.css({width:this.contentWidth+" !important"}),this.menu.css("opacity",1),this.mask.show();let n=this;$(window).bind("touchmove",function(a){a.preventDefault()}),n.content.animate({marginLeft:"70%"},{duration:700,complete:function(){}})},hide:function(){if(Pr.desktop)return!0;$(window).unbind("touchmove");let n=this;this.content.animate({marginLeft:0},{duration:700,complete:function(){n.content.removeAttr("style").show(),n.mask.hide(),n.menu.css("opacity",0)}})}}),s.link.click(function(n){n.preventDefault(),s.show()}),s.mask.click(function(){s.hide()}))}l(E2,"finalizeNav");oT.exports=jv.instance});var ah=Sa()(window);Uh();var uT=l_(),D2=Wh(),A2=m_(),fT=600,dT=fT/60,cT=dT-3,I2=dT+3;ah(function(){lT().init(),$2(),uT(".trending_content"),uT(".successes","content"),P2(),F2(),A2(),M2()});function P2(){let r=ah(".site_stats .signatures span"),e=parseInt(r.text().replace(/\D/g,""));e-=fT,setTimeout(()=>{hT(r,e)},1e3)}l(P2,"siteStatsAnimation");function hT(r,e){e+=Math.floor(Math.random()*I2-cT)+cT,r.text(D2.formatNumber(e)),setTimeout(()=>{hT(r,e)},1e3)}l(hT,"animateSiteStats");function $2(){let r=ah("#care2_main_container").find("div.tagline span"),e=r.length;pT(r,0,e)}l($2,"taglineAnimation");function pT(r,e,t){let i=e-1>=0?e-1:t-1,s=e+1<=t-1?e+1:0;r.eq(i).hide();let n=r.eq(e),a=n.text(),c=a.split("");n.text("").show();let d=0;for(;c.length;){let o=c.shift();setTimeout(()=>{n.text((p,g)=>g+o),n.text()===a&&setTimeout(()=>{pT(r,s,t)},2e3)},100*d++)}}l(pT,"animateTagline");function F2(){let r=ah(".testimonials .care2_wrapper");r.slick({dots:!0,arrows:!1,infinite:!0,slide:".testimonial",slidesToShow:1,slidesToScroll:1}).on("beforeChange",()=>{r.data("isAnimating",!0)}).on("afterChange",()=>{r.data("isAnimating",!1)})}l(F2,"testimonialsCarousel");function M2(){(function(r,e){r._sf_startpt=new Date().getTime(),r._sf_async_config=r._sf_async_config||{},r._sf_async_config.domain="care2.com",r._sf_async_config.uid=62058,r._sf_async_config.useCanonical=!0,r._sf_endpt=ne
188w Date().getTime();let t=e.createElement("script"),i=e.getElementsByTagName("script")[0];t.setAttribute("language","javascript"),t.setAttribute("type","text/javascript"),t.setAttribute("src","//static.chartbeat.com/js/chartbeat.js"),i.parentNode.insertBefore(t,i)})(window,document)}l(M2,"loadChartbeat");})();
189/*!
190 * jQuery Cookie Plugin v1.3.1
191 * https://github.com/carhartl/jquery-cookie
192 *
193 * Copyright 2013 Klaus Hartl
194 * Released under the MIT license
195 */
196/**
197 @license Sticky-kit v1.1.3 | MIT | Leaf Corcoran 2015 | http://leafo.net
198 */
199/*! Bundled license information:
200
201jquery/dist/jquery.js:
202  (*!
203   * jQuery JavaScript Library v3.7.1
204   * https://jquery.com/
205   *
206   * Copyright OpenJS Foundation and other contributors
207   * Released under the MIT license
208   * https://jquery.org/license
209   *
210   * Date: 2023-08-28T13:37Z
211   *)
212
213store2/dist/store2.js:
214  (*! store2 - v2.14.3 - 2024-02-14
215  * Copyright (c) 2024 Nathan Bubna; Licensed MIT *)
216
217ieee754/index.js:
218  (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
219
220buffer/index.js:
221  (*!
222   * The buffer module from node.js, for the browser.
223   *
224   * @author   Feross Aboukhadijeh <https://feross.org>
225   * @license  MIT
226   *)
227
228moment/moment.js:
229  (*! moment.js *)
230  (*! version : 2.30.1 *)
231  (*! authors : Tim Wood, Iskren Chernev, Moment.js contributors *)
232  (*! license : MIT *)
233  (*! momentjs.com *)
234
235js-sha256/src/sha256.js:
236  (**
237   * [js-sha256]{@link https://github.com/emn178/js-sha256}
238   *
239   * @version 0.9.0
240   * @author Chen, Yi-Cyuan [[email protected]]
241   * @copyright Chen, Yi-Cyuan 2014-2017
242   * @license MIT
243   *)
244*/

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.